@aikaara/chat-sdk 1.5.1 → 1.5.3
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-DFT_nAv9.cjs → AikaaraLinkButton-CBAy6ItK.cjs} +1 -1
- package/dist/{AikaaraLinkButton-CnvirM17.mjs → AikaaraLinkButton-DsJc3CEK.mjs} +1 -1
- package/dist/{MountTenant-wJ3Clo04.cjs → MountTenant-BEaYaZMk.cjs} +36 -36
- package/dist/{MountTenant-YqTsrEgP.mjs → MountTenant-DcEbdQPG.mjs} +620 -585
- package/dist/cdn/aikaara-chat.iife.js +53 -53
- 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
|
@@ -446,7 +446,7 @@ class ec {
|
|
|
446
446
|
for (const r of e) {
|
|
447
447
|
const o = Po(t, r);
|
|
448
448
|
if (o) {
|
|
449
|
-
const n =
|
|
449
|
+
const n = qr(o), i = qr(r);
|
|
450
450
|
!n && i && Object.assign(o, r, { id: o.id });
|
|
451
451
|
continue;
|
|
452
452
|
}
|
|
@@ -461,7 +461,7 @@ class ec {
|
|
|
461
461
|
function Po(s, e, t = 15e3) {
|
|
462
462
|
const r = e.attachments && e.attachments[0], o = (e.metadata ?? {}).attributes;
|
|
463
463
|
if (!(!!r || !!(o && o.fileMessage))) return null;
|
|
464
|
-
const i =
|
|
464
|
+
const i = qr(e), a = Mo(e), l = Ro(e);
|
|
465
465
|
if (!i && !a && !l) return null;
|
|
466
466
|
const c = new Date(e.createdAt).getTime();
|
|
467
467
|
for (let u = s.length - 1; u >= 0; u--) {
|
|
@@ -469,7 +469,7 @@ function Po(s, e, t = 15e3) {
|
|
|
469
469
|
if (!(!!p || !!(b && b.fileMessage))) continue;
|
|
470
470
|
const g = (h.content || "").trim().toLowerCase();
|
|
471
471
|
if (g === "file_uploaded" || g === "file_upload" || Math.abs(c - new Date(h.createdAt).getTime()) > t) continue;
|
|
472
|
-
const y =
|
|
472
|
+
const y = qr(h);
|
|
473
473
|
if (i && y && i === y) return h;
|
|
474
474
|
const w = Mo(h);
|
|
475
475
|
if (a && w && a === w) return h;
|
|
@@ -494,7 +494,7 @@ function Ro(s) {
|
|
|
494
494
|
const n = s.template?.payload?.elements?.[0]?.description;
|
|
495
495
|
if (typeof n == "string" && n) return n;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function qr(s) {
|
|
498
498
|
const e = s.attachments && s.attachments[0];
|
|
499
499
|
if (e && typeof e.cloudFileId == "string")
|
|
500
500
|
return e.cloudFileId;
|
|
@@ -546,40 +546,40 @@ class tc {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
var ho = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty, Je = (s, e) => () => (s && (e = s(s = 0)), e), pe = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports),
|
|
549
|
+
var ho = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty, Je = (s, e) => () => (s && (e = s(s = 0)), e), pe = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports), zt = (s, e) => {
|
|
550
550
|
for (var t in e) ho(s, t, { get: e[t], enumerable: !0 });
|
|
551
551
|
}, oc = (s, e, t, r) => {
|
|
552
552
|
if (e && typeof e == "object" || typeof e == "function") for (let o of nc(e)) !ic.call(s, o) && o !== t && ho(s, o, { get: () => e[o], enumerable: !(r = rc(e, o)) || r.enumerable });
|
|
553
553
|
return s;
|
|
554
554
|
}, Me = (s) => oc(ho({}, "__esModule", { value: !0 }), s), le = Je(() => {
|
|
555
555
|
}), Le = {};
|
|
556
|
-
|
|
556
|
+
zt(Le, { _debugEnd: () => Wn, _debugProcess: () => Hn, _events: () => oi, _eventsCount: () => si, _exiting: () => Cn, _fatalExceptions: () => $n, _getActiveHandles: () => oa, _getActiveRequests: () => ia, _kill: () => Mn, _linkedBinding: () => ra, _maxListeners: () => ii, _preload_modules: () => ri, _rawDebug: () => An, _startProfilerIdleNotifier: () => zn, _stopProfilerIdleNotifier: () => Vn, _tickCallback: () => qn, abort: () => Jn, addListener: () => ai, allowedNodeEnvironmentFlags: () => Bn, arch: () => dn, argv: () => mn, argv0: () => ti, assert: () => sa, binding: () => wn, browser: () => En, chdir: () => xn, config: () => On, cpuUsage: () => tr, cwd: () => kn, debugPort: () => ei, default: () => po, dlopen: () => na, domain: () => Tn, emit: () => di, emitWarning: () => vn, env: () => pn, execArgv: () => gn, execPath: () => Zn, exit: () => jn, features: () => Dn, hasUncaughtExceptionCaptureCallback: () => aa, hrtime: () => br, kill: () => Nn, listeners: () => ca, memoryUsage: () => Ln, moduleLoadList: () => In, nextTick: () => ea, off: () => ci, on: () => ct, once: () => li, openStdin: () => Un, pid: () => Qn, platform: () => fn, ppid: () => Xn, prependListener: () => fi, prependOnceListener: () => pi, reallyExit: () => Pn, release: () => Sn, removeAllListeners: () => hi, removeListener: () => ui, resourceUsage: () => Rn, setSourceMapsEnabled: () => ni, setUncaughtExceptionCaptureCallback: () => Fn, stderr: () => Gn, stdin: () => Yn, stdout: () => Kn, title: () => hn, umask: () => _n, uptime: () => la, version: () => bn, versions: () => yn });
|
|
557
557
|
function fo(s) {
|
|
558
558
|
throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
|
|
559
559
|
}
|
|
560
560
|
function sc() {
|
|
561
|
-
!
|
|
561
|
+
!Mt || !Ot || (Mt = !1, Ot.length ? st = Ot.concat(st) : or = -1, st.length && Zs());
|
|
562
562
|
}
|
|
563
563
|
function Zs() {
|
|
564
|
-
if (!
|
|
564
|
+
if (!Mt) {
|
|
565
565
|
var s = setTimeout(sc, 0);
|
|
566
|
-
|
|
566
|
+
Mt = !0;
|
|
567
567
|
for (var e = st.length; e; ) {
|
|
568
|
-
for (
|
|
569
|
-
|
|
568
|
+
for (Ot = st, st = []; ++or < e; ) Ot && Ot[or].run();
|
|
569
|
+
or = -1, e = st.length;
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
Ot = null, Mt = !1, clearTimeout(s);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
function ea(s) {
|
|
575
575
|
var e = new Array(arguments.length - 1);
|
|
576
576
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
577
|
-
st.push(new ta(s, e)), st.length === 1 && !
|
|
577
|
+
st.push(new ta(s, e)), st.length === 1 && !Mt && setTimeout(Zs, 0);
|
|
578
578
|
}
|
|
579
579
|
function ta(s, e) {
|
|
580
580
|
this.fun = s, this.array = e;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function He() {
|
|
583
583
|
}
|
|
584
584
|
function ra(s) {
|
|
585
585
|
fo("_linkedBinding");
|
|
@@ -602,9 +602,9 @@ function aa() {
|
|
|
602
602
|
function la() {
|
|
603
603
|
return ht.now() / 1e3;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function br(s) {
|
|
606
606
|
var e = Math.floor((Date.now() - ht.now()) * 1e-3), t = ht.now() * 1e-3, r = Math.floor(t) + e, o = Math.floor(t % 1 * 1e9);
|
|
607
|
-
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o +=
|
|
607
|
+
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += yr)), [r, o];
|
|
608
608
|
}
|
|
609
609
|
function ct() {
|
|
610
610
|
return po;
|
|
@@ -612,8 +612,8 @@ function ct() {
|
|
|
612
612
|
function ca(s) {
|
|
613
613
|
return [];
|
|
614
614
|
}
|
|
615
|
-
var st,
|
|
616
|
-
le(), ue(), ce(), st = [],
|
|
615
|
+
var st, Mt, Ot, or, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, tr, Rn, Ln, Nn, jn, Un, Bn, Dn, $n, Fn, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ht, Zr, yr, ii, oi, si, ai, li, ci, ui, hi, di, fi, pi, po, ac = Je(() => {
|
|
616
|
+
le(), ue(), ce(), st = [], Mt = !1, or = -1, ta.prototype.run = function() {
|
|
617
617
|
this.fun.apply(null, this.array);
|
|
618
618
|
}, hn = "browser", dn = "x64", fn = "browser", pn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, mn = ["/usr/bin/node"], gn = [], bn = "v16.8.0", yn = {}, vn = function(s, e) {
|
|
619
619
|
console.warn((e ? e + ": " : "") + s);
|
|
@@ -624,18 +624,18 @@ var st, Pt, Ct, ir, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En,
|
|
|
624
624
|
}, kn = function() {
|
|
625
625
|
return "/";
|
|
626
626
|
}, xn = function(s) {
|
|
627
|
-
}, Sn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, En = !0, An =
|
|
627
|
+
}, Sn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, En = !0, An = He, In = [], Tn = {}, Cn = !1, On = {}, Pn = He, Mn = He, tr = function() {
|
|
628
628
|
return {};
|
|
629
|
-
}, Rn =
|
|
630
|
-
var e =
|
|
631
|
-
return typeof BigInt > "u" ? e[0] *
|
|
632
|
-
}, ii = 10, oi = {}, si = 0, ai = ct, li = ct, ci = ct, ui = ct, hi = ct, di =
|
|
629
|
+
}, Rn = tr, Ln = tr, Nn = He, jn = He, Un = He, Bn = {}, Dn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, $n = He, Fn = He, qn = He, Hn = He, Wn = He, zn = He, Vn = He, Kn = void 0, Gn = void 0, Yn = void 0, Jn = He, Qn = 2, Xn = 1, Zn = "/bin/usr/node", ei = 9229, ti = "node", ri = [], ni = He, ht = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ht.now === void 0 && (Zr = Date.now(), ht.timing && ht.timing.navigationStart && (Zr = ht.timing.navigationStart), ht.now = () => Date.now() - Zr), yr = 1e9, br.bigint = function(s) {
|
|
630
|
+
var e = br(s);
|
|
631
|
+
return typeof BigInt > "u" ? e[0] * yr + e[1] : BigInt(e[0] * yr) + BigInt(e[1]);
|
|
632
|
+
}, ii = 10, oi = {}, si = 0, ai = ct, li = ct, ci = ct, ui = ct, hi = ct, di = He, fi = ct, pi = ct, po = { version: bn, versions: yn, arch: dn, platform: fn, browser: En, release: Sn, _rawDebug: An, moduleLoadList: In, binding: wn, _linkedBinding: ra, _events: oi, _eventsCount: si, _maxListeners: ii, on: ct, addListener: ai, once: li, off: ci, removeListener: ui, removeAllListeners: hi, emit: di, prependListener: fi, prependOnceListener: pi, listeners: ca, domain: Tn, _exiting: Cn, config: On, dlopen: na, uptime: la, _getActiveRequests: ia, _getActiveHandles: oa, reallyExit: Pn, _kill: Mn, cpuUsage: tr, resourceUsage: Rn, memoryUsage: Ln, kill: Nn, exit: jn, openStdin: Un, allowedNodeEnvironmentFlags: Bn, assert: sa, features: Dn, _fatalExceptions: $n, setUncaughtExceptionCaptureCallback: Fn, hasUncaughtExceptionCaptureCallback: aa, emitWarning: vn, nextTick: ea, _tickCallback: qn, _debugProcess: Hn, _debugEnd: Wn, _startProfilerIdleNotifier: zn, _stopProfilerIdleNotifier: Vn, stdout: Kn, stdin: Yn, stderr: Gn, abort: Jn, umask: _n, chdir: xn, cwd: kn, env: pn, title: hn, argv: mn, execArgv: gn, pid: Qn, ppid: Xn, execPath: Zn, debugPort: ei, hrtime: br, argv0: ti, _preload_modules: ri, setSourceMapsEnabled: ni };
|
|
633
633
|
}), ce = Je(() => {
|
|
634
634
|
ac();
|
|
635
635
|
});
|
|
636
636
|
function lc() {
|
|
637
|
-
if (mi) return
|
|
638
|
-
mi = !0,
|
|
637
|
+
if (mi) return Dt;
|
|
638
|
+
mi = !0, Dt.byteLength = a, Dt.toByteArray = c, Dt.fromByteArray = p;
|
|
639
639
|
for (var s = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) s[o] = r[o], e[r.charCodeAt(o)] = o;
|
|
640
640
|
e[45] = 62, e[95] = 63;
|
|
641
641
|
function i(b) {
|
|
@@ -669,10 +669,10 @@ function lc() {
|
|
|
669
669
|
for (var d, g = b.length, y = g % 3, w = [], m = 16383, _ = 0, x = g - y; _ < x; _ += m) w.push(h(b, _, _ + m > x ? x : _ + m));
|
|
670
670
|
return y === 1 ? (d = b[g - 1], w.push(s[d >> 2] + s[d << 4 & 63] + "==")) : y === 2 && (d = (b[g - 2] << 8) + b[g - 1], w.push(s[d >> 10] + s[d >> 4 & 63] + s[d << 2 & 63] + "=")), w.join("");
|
|
671
671
|
}
|
|
672
|
-
return
|
|
672
|
+
return Dt;
|
|
673
673
|
}
|
|
674
674
|
function cc() {
|
|
675
|
-
return gi ?
|
|
675
|
+
return gi ? rr : (gi = !0, rr.read = function(s, e, t, r, o) {
|
|
676
676
|
var n, i, a = o * 8 - r - 1, l = (1 << a) - 1, c = l >> 1, u = -7, h = t ? o - 1 : 0, p = t ? -1 : 1, b = s[e + h];
|
|
677
677
|
for (h += p, n = b & (1 << -u) - 1, b >>= -u, u += a; u > 0; n = n * 256 + s[e + h], h += p, u -= 8) ;
|
|
678
678
|
for (i = n & (1 << -u) - 1, n >>= -u, u += r; u > 0; i = i * 256 + s[e + h], h += p, u -= 8) ;
|
|
@@ -682,12 +682,12 @@ function cc() {
|
|
|
682
682
|
i = i + Math.pow(2, r), n = n - c;
|
|
683
683
|
}
|
|
684
684
|
return (b ? -1 : 1) * i * Math.pow(2, n - r);
|
|
685
|
-
},
|
|
685
|
+
}, rr.write = function(s, e, t, r, o, n) {
|
|
686
686
|
var i, a, l, c = n * 8 - o - 1, u = (1 << c) - 1, h = u >> 1, p = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = r ? 0 : n - 1, d = r ? 1 : -1, g = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
687
687
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, i = u) : (i = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -i)) < 1 && (i--, l *= 2), i + h >= 1 ? e += p / l : e += p * Math.pow(2, 1 - h), e * l >= 2 && (i++, l /= 2), i + h >= u ? (a = 0, i = u) : i + h >= 1 ? (a = (e * l - 1) * Math.pow(2, o), i = i + h) : (a = e * Math.pow(2, h - 1) * Math.pow(2, o), i = 0)); o >= 8; s[t + b] = a & 255, b += d, a /= 256, o -= 8) ;
|
|
688
688
|
for (i = i << o | a, c += o; c > 0; s[t + b] = i & 255, b += d, i /= 256, c -= 8) ;
|
|
689
689
|
s[t + b - d] |= g * 128;
|
|
690
|
-
},
|
|
690
|
+
}, rr);
|
|
691
691
|
}
|
|
692
692
|
function uc() {
|
|
693
693
|
if (bi) return _t;
|
|
@@ -1447,15 +1447,15 @@ function uc() {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return _t;
|
|
1449
1449
|
}
|
|
1450
|
-
var
|
|
1451
|
-
le(), ue(), ce(),
|
|
1452
|
-
}),
|
|
1453
|
-
|
|
1454
|
-
var ut,
|
|
1455
|
-
le(), ue(), ce(), hc(), ut = uc(), ut.Buffer, ut.SlowBuffer, ut.INSPECT_MAX_BYTES, ut.kMaxLength,
|
|
1450
|
+
var Dt, mi, rr, gi, _t, bi, hc = Je(() => {
|
|
1451
|
+
le(), ue(), ce(), Dt = {}, mi = !1, rr = {}, gi = !1, _t = {}, bi = !1;
|
|
1452
|
+
}), $e = {};
|
|
1453
|
+
zt($e, { Buffer: () => Hr, INSPECT_MAX_BYTES: () => ua, default: () => ut, kMaxLength: () => ha });
|
|
1454
|
+
var ut, Hr, ua, ha, Fe = Je(() => {
|
|
1455
|
+
le(), ue(), ce(), hc(), ut = uc(), ut.Buffer, ut.SlowBuffer, ut.INSPECT_MAX_BYTES, ut.kMaxLength, Hr = ut.Buffer, ua = ut.INSPECT_MAX_BYTES, ha = ut.kMaxLength;
|
|
1456
1456
|
}), ue = Je(() => {
|
|
1457
|
-
|
|
1458
|
-
}),
|
|
1457
|
+
Fe();
|
|
1458
|
+
}), Ue = pe((s, e) => {
|
|
1459
1459
|
le(), ue(), ce();
|
|
1460
1460
|
var t = class extends Error {
|
|
1461
1461
|
constructor(r) {
|
|
@@ -1543,7 +1543,7 @@ var ut, qr, ua, ha, $e = Je(() => {
|
|
|
1543
1543
|
} };
|
|
1544
1544
|
}), Ke = pe((s, e) => {
|
|
1545
1545
|
le(), ue(), ce();
|
|
1546
|
-
var { format: t, inspect: r } = da(), { AggregateError: o } =
|
|
1546
|
+
var { format: t, inspect: r } = da(), { AggregateError: o } = Ue(), n = globalThis.AggregateError || o, i = /* @__PURE__ */ Symbol("kIsNodeError"), a = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], l = /^([A-Z][a-z0-9]*)+$/, c = "__node_internal_", u = {};
|
|
1547
1547
|
function h(m, _) {
|
|
1548
1548
|
if (!m) throw new u.ERR_INTERNAL_ASSERTION(_);
|
|
1549
1549
|
}
|
|
@@ -1693,14 +1693,14 @@ var ut, qr, ua, ha, $e = Je(() => {
|
|
|
1693
1693
|
} else v = r(x);
|
|
1694
1694
|
return `The value of "${m}" is out of range. It must be ${_}. Received ${v}`;
|
|
1695
1695
|
}, RangeError), d("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), d("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), d("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), d("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), d("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), d("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), d("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), d("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), d("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), d("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), e.exports = { AbortError: w, aggregateTwoErrors: g(y), hideStackFrames: g, codes: u };
|
|
1696
|
-
}),
|
|
1696
|
+
}), ar = pe((s, e) => {
|
|
1697
1697
|
le(), ue(), ce();
|
|
1698
1698
|
var { AbortController: t, AbortSignal: r } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
|
|
1699
1699
|
e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
|
|
1700
1700
|
}), St = {};
|
|
1701
|
-
|
|
1701
|
+
zt(St, { EventEmitter: () => fa, default: () => $t, defaultMaxListeners: () => pa, init: () => ma, listenerCount: () => ga, on: () => ba, once: () => ya });
|
|
1702
1702
|
function dc() {
|
|
1703
|
-
if (yi) return
|
|
1703
|
+
if (yi) return nr;
|
|
1704
1704
|
yi = !0;
|
|
1705
1705
|
var s = typeof Reflect == "object" ? Reflect : null, e = s && typeof s.apply == "function" ? s.apply : function(x, v, E) {
|
|
1706
1706
|
return Function.prototype.apply.call(x, v, E);
|
|
@@ -1719,7 +1719,7 @@ function dc() {
|
|
|
1719
1719
|
function n() {
|
|
1720
1720
|
n.init.call(this);
|
|
1721
1721
|
}
|
|
1722
|
-
|
|
1722
|
+
nr = n, nr.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 a(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 dc() {
|
|
|
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 nr;
|
|
1872
1872
|
}
|
|
1873
|
-
var
|
|
1874
|
-
le(), ue(), ce(),
|
|
1873
|
+
var nr, yi, $t, fa, pa, ma, ga, ba, ya, Lt = Je(() => {
|
|
1874
|
+
le(), ue(), ce(), nr = {}, yi = !1, $t = dc(), $t.once, $t.once = function(s, e) {
|
|
1875
1875
|
return new Promise((t, r) => {
|
|
1876
1876
|
function o(...i) {
|
|
1877
1877
|
n !== void 0 && s.removeListener("error", n), t(i);
|
|
@@ -1881,7 +1881,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1881
1881
|
s.removeListener(name, o), r(i);
|
|
1882
1882
|
}, s.once("error", n)), s.once(e, o);
|
|
1883
1883
|
});
|
|
1884
|
-
},
|
|
1884
|
+
}, $t.on = function(s, e) {
|
|
1885
1885
|
let t = [], r = [], o = null, n = !1, i = { async next() {
|
|
1886
1886
|
let c = t.shift();
|
|
1887
1887
|
if (c) return createIterResult(c, !1);
|
|
@@ -1909,10 +1909,10 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1909
1909
|
let u = r.shift();
|
|
1910
1910
|
u ? u.reject(c) : o = c, i.return();
|
|
1911
1911
|
}
|
|
1912
|
-
}, { EventEmitter: fa, defaultMaxListeners: pa, init: ma, listenerCount: ga, on: ba, once: ya } =
|
|
1912
|
+
}, { EventEmitter: fa, defaultMaxListeners: pa, init: ma, listenerCount: ga, on: ba, once: ya } = $t;
|
|
1913
1913
|
}), Ye = pe((s, e) => {
|
|
1914
1914
|
le(), ue(), ce();
|
|
1915
|
-
var t = (
|
|
1915
|
+
var t = (Fe(), Me($e)), { format: r, inspect: o } = da(), { codes: { ERR_INVALID_ARG_TYPE: n } } = Ke(), { kResistStopPropagation: i, AggregateError: a, SymbolDispose: l } = Ue(), c = globalThis.AbortSignal || ar().AbortSignal, u = globalThis.AbortController || ar().AbortController, h = Object.getPrototypeOf(async function() {
|
|
1916
1916
|
}).constructor, p = globalThis.Blob || t.Blob, b = typeof p < "u" ? function(y) {
|
|
1917
1917
|
return y instanceof p;
|
|
1918
1918
|
} : function(y) {
|
|
@@ -1945,7 +1945,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1945
1945
|
return ArrayBuffer.isView(y);
|
|
1946
1946
|
} }, isBlob: b, deprecate(y, w) {
|
|
1947
1947
|
return y;
|
|
1948
|
-
}, addAbortListener: (
|
|
1948
|
+
}, addAbortListener: (Lt(), Me(St)).addAbortListener || function(y, w) {
|
|
1949
1949
|
if (y === void 0) throw new n("signal", "AbortSignal", y);
|
|
1950
1950
|
d(y, "signal"), g(w, "listener");
|
|
1951
1951
|
let m;
|
|
@@ -1964,9 +1964,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1964
1964
|
y.forEach((_) => _.removeEventListener("abort", m));
|
|
1965
1965
|
}, { once: !0 }), w.signal;
|
|
1966
1966
|
} }, e.exports.promisify.custom = /* @__PURE__ */ Symbol.for("nodejs.util.promisify.custom");
|
|
1967
|
-
}),
|
|
1967
|
+
}), lr = pe((s, e) => {
|
|
1968
1968
|
le(), ue(), ce();
|
|
1969
|
-
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: d, StringPrototypeTrim: g } =
|
|
1969
|
+
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: d, StringPrototypeTrim: g } = Ue(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: w, ERR_INVALID_ARG_TYPE: m, ERR_INVALID_ARG_VALUE: _, ERR_OUT_OF_RANGE: x, ERR_UNKNOWN_SIGNAL: v } } = Ke(), { normalizeEncoding: E } = Ye(), { isAsyncFunction: S, isArrayBufferView: I } = Ye().types, O = {};
|
|
1970
1970
|
function P(H) {
|
|
1971
1971
|
return H === (H | 0);
|
|
1972
1972
|
}
|
|
@@ -2086,7 +2086,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2086
2086
|
throw new _("hints", H, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
|
|
2087
2087
|
}
|
|
2088
2088
|
e.exports = { isInt32: P, isUint32: j, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: K, validateAbortSignalArray: N, validateBoolean: Z, validateBuffer: W, validateDictionary: be, validateEncoding: G, validateFunction: oe, validateInt32: ae, validateInteger: U, validateNumber: re, validateObject: Q, validateOneOf: $, validatePlainFunction: R, validatePort: J, validateSignalName: ne, validateString: V, validateUint32: Y, validateUndefined: F, validateUnion: ee, validateAbortSignal: ge, validateLinkHeaderValue: ye };
|
|
2089
|
-
}),
|
|
2089
|
+
}), Nt = pe((s, e) => {
|
|
2090
2090
|
le(), ue(), ce();
|
|
2091
2091
|
var t = e.exports = {}, r, o;
|
|
2092
2092
|
function n() {
|
|
@@ -2174,7 +2174,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2174
2174
|
};
|
|
2175
2175
|
}), mt = pe((s, e) => {
|
|
2176
2176
|
le(), ue(), ce();
|
|
2177
|
-
var { SymbolAsyncIterator: t, SymbolIterator: r, SymbolFor: o } =
|
|
2177
|
+
var { SymbolAsyncIterator: t, SymbolIterator: r, SymbolFor: o } = Ue(), n = o("nodejs.stream.destroyed"), i = o("nodejs.stream.errored"), a = 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
2178
|
function p(M, Q = !1) {
|
|
2179
2179
|
var be;
|
|
2180
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));
|
|
@@ -2281,7 +2281,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2281
2281
|
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: $, kIsDisturbed: c, isErrored: Z, kIsErrored: i, isReadable: P, kIsReadable: a, kIsClosedPromise: u, kControllerErrorFunction: h, kIsWritable: l, isClosed: U, isDuplexNodeStream: d, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: O, isReadableErrored: D, isNodeStream: g, isWebStream: _, isWritable: j, isWritableNodeStream: b, isWritableStream: w, isWritableEnded: E, isWritableFinished: S, isWritableErrored: q, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
|
|
2282
2282
|
}), Et = pe((s, e) => {
|
|
2283
2283
|
le(), ue(), ce();
|
|
2284
|
-
var t =
|
|
2284
|
+
var t = Nt(), { AbortError: r, codes: o } = Ke(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = o, { kEmptyObject: a, once: l } = Ye(), { validateAbortSignal: c, validateFunction: u, validateObject: h, validateBoolean: p } = lr(), { Promise: b, PromisePrototypeThen: d, SymbolDispose: g } = Ue(), { isClosed: y, isReadable: w, isReadableNodeStream: m, isReadableStream: _, isReadableFinished: x, isReadableErrored: v, isWritable: E, isWritableNodeStream: S, isWritableStream: I, isWritableFinished: O, isWritableErrored: P, isNodeStream: j, willEmitClose: T, kIsClosedPromise: q } = mt(), D;
|
|
2285
2285
|
function U($) {
|
|
2286
2286
|
return $.setHeader && typeof $.abort == "function";
|
|
2287
2287
|
}
|
|
@@ -2361,9 +2361,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2361
2361
|
});
|
|
2362
2362
|
}
|
|
2363
2363
|
e.exports = Y, e.exports.finished = re;
|
|
2364
|
-
}),
|
|
2364
|
+
}), Vt = pe((s, e) => {
|
|
2365
2365
|
le(), ue(), ce();
|
|
2366
|
-
var t =
|
|
2366
|
+
var t = Nt(), { aggregateTwoErrors: r, codes: { ERR_MULTIPLE_CALLBACK: o }, AbortError: n } = Ke(), { Symbol: i } = Ue(), { kIsDestroyed: a, isDestroyed: l, isFinished: c, isServerRequest: u } = mt(), h = i("kDestroy"), p = i("kConstruct");
|
|
2367
2367
|
function b(T, q, D) {
|
|
2368
2368
|
T && (T.stack, q && !q.errored && (q.errored = T), D && !D.errored && (D.errored = T));
|
|
2369
2369
|
}
|
|
@@ -2449,7 +2449,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2449
2449
|
e.exports = { construct: v, destroyer: j, destroy: d, undestroy: _, errorOrDestroy: x };
|
|
2450
2450
|
}), mo = pe((s, e) => {
|
|
2451
2451
|
le(), ue(), ce();
|
|
2452
|
-
var { ArrayIsArray: t, ObjectSetPrototypeOf: r } =
|
|
2452
|
+
var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = Ue(), { EventEmitter: o } = (Lt(), Me(St));
|
|
2453
2453
|
function n(a) {
|
|
2454
2454
|
o.call(this, a);
|
|
2455
2455
|
}
|
|
@@ -2484,9 +2484,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2484
2484
|
!a._events || !a._events[l] ? a.on(l, c) : t(a._events[l]) ? a._events[l].unshift(c) : a._events[l] = [c, a._events[l]];
|
|
2485
2485
|
}
|
|
2486
2486
|
e.exports = { Stream: n, prependListener: i };
|
|
2487
|
-
}),
|
|
2487
|
+
}), Vr = pe((s, e) => {
|
|
2488
2488
|
le(), ue(), ce();
|
|
2489
|
-
var { SymbolDispose: t } =
|
|
2489
|
+
var { SymbolDispose: t } = Ue(), { AbortError: r, codes: o } = Ke(), { isNodeStream: n, isWebStream: i, kControllerErrorFunction: a } = mt(), l = Et(), { ERR_INVALID_ARG_TYPE: c } = o, u, h = (p, b) => {
|
|
2490
2490
|
if (typeof p != "object" || !("aborted" in p)) throw new c(b, "AbortSignal", p);
|
|
2491
2491
|
};
|
|
2492
2492
|
e.exports.addAbortSignal = function(p, b) {
|
|
@@ -2509,7 +2509,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2509
2509
|
};
|
|
2510
2510
|
}), fc = pe((s, e) => {
|
|
2511
2511
|
le(), ue(), ce();
|
|
2512
|
-
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } =
|
|
2512
|
+
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = Ue(), { Buffer: i } = (Fe(), Me($e)), { inspect: a } = Ye();
|
|
2513
2513
|
e.exports = class {
|
|
2514
2514
|
constructor() {
|
|
2515
2515
|
this.head = null, this.tail = null, this.length = 0;
|
|
@@ -2586,9 +2586,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2586
2586
|
return a(this, { ...c, depth: 0, customInspect: !1 });
|
|
2587
2587
|
}
|
|
2588
2588
|
};
|
|
2589
|
-
}),
|
|
2589
|
+
}), Kr = pe((s, e) => {
|
|
2590
2590
|
le(), ue(), ce();
|
|
2591
|
-
var { MathFloor: t, NumberIsInteger: r } =
|
|
2591
|
+
var { MathFloor: t, NumberIsInteger: r } = Ue(), { validateInteger: o } = lr(), { ERR_INVALID_ARG_VALUE: n } = Ke().codes, i = 16 * 1024, a = 16;
|
|
2592
2592
|
function l(p, b, d) {
|
|
2593
2593
|
return p.highWaterMark != null ? p.highWaterMark : b ? p[d] : null;
|
|
2594
2594
|
}
|
|
@@ -2612,7 +2612,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2612
2612
|
e.exports = { getHighWaterMark: h, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
|
|
2613
2613
|
}), pc = pe((s, e) => {
|
|
2614
2614
|
le(), ue(), ce();
|
|
2615
|
-
var t = (
|
|
2615
|
+
var t = (Fe(), Me($e)), r = t.Buffer;
|
|
2616
2616
|
function o(i, a) {
|
|
2617
2617
|
for (var l in i) a[l] = i[l];
|
|
2618
2618
|
}
|
|
@@ -2782,7 +2782,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
}), va = pe((s, e) => {
|
|
2784
2784
|
le(), ue(), ce();
|
|
2785
|
-
var t =
|
|
2785
|
+
var t = Nt(), { PromisePrototypeThen: r, SymbolAsyncIterator: o, SymbolIterator: n } = Ue(), { Buffer: i } = (Fe(), Me($e)), { ERR_INVALID_ARG_TYPE: a, ERR_STREAM_NULL_VALUES: l } = Ke().codes;
|
|
2786
2786
|
function c(u, h, p) {
|
|
2787
2787
|
let b;
|
|
2788
2788
|
if (typeof h == "string" || h instanceof i) return new u({ objectMode: !0, ...p, read() {
|
|
@@ -2829,13 +2829,13 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2829
2829
|
return g;
|
|
2830
2830
|
}
|
|
2831
2831
|
e.exports = c;
|
|
2832
|
-
}),
|
|
2832
|
+
}), Gr = pe((s, e) => {
|
|
2833
2833
|
le(), ue(), ce();
|
|
2834
|
-
var t =
|
|
2834
|
+
var t = Nt(), { ArrayPrototypeIndexOf: r, NumberIsInteger: o, NumberIsNaN: n, NumberParseInt: i, ObjectDefineProperties: a, ObjectKeys: l, ObjectSetPrototypeOf: c, Promise: u, SafeSet: h, SymbolAsyncDispose: p, SymbolAsyncIterator: b, Symbol: d } = Ue();
|
|
2835
2835
|
e.exports = se, se.ReadableState = ve;
|
|
2836
|
-
var { EventEmitter: g } = (
|
|
2836
|
+
var { EventEmitter: g } = (Lt(), Me(St)), { Stream: y, prependListener: w } = mo(), { Buffer: m } = (Fe(), Me($e)), { addAbortSignal: _ } = Vr(), x = Et(), v = Ye().debuglog("stream", (C) => {
|
|
2837
2837
|
v = C;
|
|
2838
|
-
}), E = fc(), S =
|
|
2838
|
+
}), E = fc(), S = Vt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Kr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, 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 } = Ke(), { validateObject: Y } = lr(), V = d("kPaused"), { StringDecoder: re } = mc(), $ = va();
|
|
2839
2839
|
c(se.prototype, y.prototype), c(se, y);
|
|
2840
2840
|
var Z = () => {
|
|
2841
2841
|
}, { errorOrDestroy: M } = S, Q = 1, be = 2, te = 4, we = 8, K = 16, N = 32, ne = 64, W = 128, G = 256, J = 512, ge = 1024, oe = 2048, R = 4096, F = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
@@ -2925,7 +2925,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2925
2925
|
L.state &= ~N, L.reading || (C = B(_e, L));
|
|
2926
2926
|
}
|
|
2927
2927
|
let Se;
|
|
2928
|
-
return C > 0 ? Se =
|
|
2928
|
+
return C > 0 ? Se = Ut(C, L) : Se = null, Se === null ? (L.needReadable = L.length <= L.highWaterMark, C = 0) : (L.length -= C, L.multiAwaitDrain ? L.awaitDrainWriters.clear() : L.awaitDrainWriters = null), L.length === 0 && (L.ended || (L.needReadable = !0), _e !== C && L.ended && nt(this)), Se !== null && !L.errorEmitted && !L.closeEmitted && (L.dataEmitted = !0, this.emit("data", Se)), Se;
|
|
2929
2929
|
};
|
|
2930
2930
|
function X(C, L) {
|
|
2931
2931
|
if (v("onEofChunk"), !L.ended) {
|
|
@@ -2962,23 +2962,23 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2962
2962
|
let Se = (!L || L.end !== !1) && C !== t.stdout && C !== t.stderr ? Ve : It;
|
|
2963
2963
|
xe.endEmitted ? t.nextTick(Se) : _e.once("end", Se), C.on("unpipe", Be);
|
|
2964
2964
|
function Be(ot, lt) {
|
|
2965
|
-
v("onunpipe"), ot === _e && lt && lt.hasUnpiped === !1 && (lt.hasUnpiped = !0,
|
|
2965
|
+
v("onunpipe"), ot === _e && lt && lt.hasUnpiped === !1 && (lt.hasUnpiped = !0, Xt());
|
|
2966
2966
|
}
|
|
2967
2967
|
function Ve() {
|
|
2968
2968
|
v("onend"), C.end();
|
|
2969
2969
|
}
|
|
2970
|
-
let Ze,
|
|
2971
|
-
function
|
|
2972
|
-
v("cleanup"), C.removeListener("close", it), C.removeListener("finish", yt), Ze && C.removeListener("drain", Ze), C.removeListener("error", At), C.removeListener("unpipe", Be), _e.removeListener("end", Ve), _e.removeListener("end", It), _e.removeListener("data",
|
|
2970
|
+
let Ze, Qt = !1;
|
|
2971
|
+
function Xt() {
|
|
2972
|
+
v("cleanup"), C.removeListener("close", it), C.removeListener("finish", yt), Ze && C.removeListener("drain", Ze), C.removeListener("error", At), C.removeListener("unpipe", Be), _e.removeListener("end", Ve), _e.removeListener("end", It), _e.removeListener("data", dr), Qt = !0, Ze && xe.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Ze();
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2975
|
-
|
|
2974
|
+
function Zt() {
|
|
2975
|
+
Qt || (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()), Ze || (Ze = Ee(_e, C), C.on("drain", Ze));
|
|
2976
2976
|
}
|
|
2977
|
-
_e.on("data",
|
|
2978
|
-
function
|
|
2977
|
+
_e.on("data", dr);
|
|
2978
|
+
function dr(ot) {
|
|
2979
2979
|
v("ondata");
|
|
2980
2980
|
let lt = C.write(ot);
|
|
2981
|
-
v("dest.write", lt), lt === !1 &&
|
|
2981
|
+
v("dest.write", lt), lt === !1 && Zt();
|
|
2982
2982
|
}
|
|
2983
2983
|
function At(ot) {
|
|
2984
2984
|
if (v("onerror", ot), It(), C.removeListener("error", At), C.listenerCount("error") === 0) {
|
|
@@ -2998,7 +2998,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2998
2998
|
function It() {
|
|
2999
2999
|
v("unpipe"), _e.unpipe(C);
|
|
3000
3000
|
}
|
|
3001
|
-
return C.emit("pipe", _e), C.writableNeedDrain === !0 ?
|
|
3001
|
+
return C.emit("pipe", _e), C.writableNeedDrain === !0 ? Zt() : xe.flowing || (v("pipe resume"), _e.resume()), C;
|
|
3002
3002
|
};
|
|
3003
3003
|
function Ee(C, L) {
|
|
3004
3004
|
return function() {
|
|
@@ -3073,11 +3073,11 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3073
3073
|
}
|
|
3074
3074
|
return this;
|
|
3075
3075
|
}, se.prototype[b] = function() {
|
|
3076
|
-
return
|
|
3076
|
+
return qe(this);
|
|
3077
3077
|
}, se.prototype.iterator = function(C) {
|
|
3078
|
-
return C !== void 0 && Y(C, "options"),
|
|
3078
|
+
return C !== void 0 && Y(C, "options"), qe(this, C);
|
|
3079
3079
|
};
|
|
3080
|
-
function
|
|
3080
|
+
function qe(C, L) {
|
|
3081
3081
|
typeof C.read != "function" && (C = se.wrap(C, { objectMode: !0 }));
|
|
3082
3082
|
let _e = rt(C, L);
|
|
3083
3083
|
return _e.stream = C, _e;
|
|
@@ -3146,8 +3146,8 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3146
3146
|
return this[V] !== !1;
|
|
3147
3147
|
}, set(C) {
|
|
3148
3148
|
this[V] = !!C;
|
|
3149
|
-
} } }), se._fromList =
|
|
3150
|
-
function
|
|
3149
|
+
} } }), se._fromList = Ut;
|
|
3150
|
+
function Ut(C, L) {
|
|
3151
3151
|
if (L.length === 0) return null;
|
|
3152
3152
|
let _e;
|
|
3153
3153
|
return L.objectMode ? _e = L.buffer.shift() : !C || C >= L.length ? (L.decoder ? _e = L.buffer.join("") : L.buffer.length === 1 ? _e = L.buffer.first() : _e = L.buffer.concat(L.length), L.buffer.clear()) : _e = L.buffer.consume(C, L.decoder), _e;
|
|
@@ -3158,27 +3158,27 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
function Qe(C, L) {
|
|
3160
3160
|
if (v("endReadableNT", C.endEmitted, C.length), !C.errored && !C.closeEmitted && !C.endEmitted && C.length === 0) {
|
|
3161
|
-
if (C.endEmitted = !0, L.emit("end"), L.writable && L.allowHalfOpen === !1) t.nextTick(
|
|
3161
|
+
if (C.endEmitted = !0, L.emit("end"), L.writable && L.allowHalfOpen === !1) t.nextTick(hr, L);
|
|
3162
3162
|
else if (C.autoDestroy) {
|
|
3163
3163
|
let _e = L._writableState;
|
|
3164
3164
|
(!_e || _e.autoDestroy && (_e.finished || _e.writable === !1)) && L.destroy();
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function hr(C) {
|
|
3169
3169
|
C.writable && !C.writableEnded && !C.destroyed && C.end();
|
|
3170
3170
|
}
|
|
3171
3171
|
se.from = function(C, L) {
|
|
3172
3172
|
return $(se, C, L);
|
|
3173
3173
|
};
|
|
3174
|
-
var
|
|
3175
|
-
function
|
|
3176
|
-
return
|
|
3174
|
+
var Bt;
|
|
3175
|
+
function Jt() {
|
|
3176
|
+
return Bt === void 0 && (Bt = {}), Bt;
|
|
3177
3177
|
}
|
|
3178
3178
|
se.fromWeb = function(C, L) {
|
|
3179
|
-
return
|
|
3179
|
+
return Jt().newStreamReadableFromReadableStream(C, L);
|
|
3180
3180
|
}, se.toWeb = function(C, L) {
|
|
3181
|
-
return
|
|
3181
|
+
return Jt().newReadableStreamFromStreamReadable(C, L);
|
|
3182
3182
|
}, se.wrap = function(C, L) {
|
|
3183
3183
|
var _e, xe;
|
|
3184
3184
|
return new se({ objectMode: (_e = (xe = C.readableObjectMode) !== null && xe !== void 0 ? xe : C.objectMode) !== null && _e !== void 0 ? _e : !0, ...L, destroy(Se, Be) {
|
|
@@ -3187,9 +3187,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3187
3187
|
};
|
|
3188
3188
|
}), go = pe((s, e) => {
|
|
3189
3189
|
le(), ue(), ce();
|
|
3190
|
-
var t =
|
|
3190
|
+
var t = Nt(), { ArrayPrototypeSlice: r, Error: o, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: i, ObjectDefineProperties: a, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: h } = Ue();
|
|
3191
3191
|
e.exports = Y, Y.WritableState = U;
|
|
3192
|
-
var { EventEmitter: p } = (
|
|
3192
|
+
var { EventEmitter: p } = (Lt(), Me(St)), b = mo().Stream, { Buffer: d } = (Fe(), Me($e)), g = Vt(), { addAbortSignal: y } = Vr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Kr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } = Ke().codes, { errorOrDestroy: T } = g;
|
|
3193
3193
|
l(Y.prototype, b.prototype), l(Y, b);
|
|
3194
3194
|
function q() {
|
|
3195
3195
|
}
|
|
@@ -3417,11 +3417,11 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3417
3417
|
};
|
|
3418
3418
|
}), gc = pe((s, e) => {
|
|
3419
3419
|
le(), ue(), ce();
|
|
3420
|
-
var t =
|
|
3420
|
+
var t = Nt(), r = (Fe(), Me($e)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), b = Et(), { AbortError: d, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = Vt(), m = ft(), _ = Gr(), x = go(), { createDeferredPromise: v } = Ye(), E = va(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3421
3421
|
return D instanceof S;
|
|
3422
3422
|
} : function(D) {
|
|
3423
3423
|
return !1;
|
|
3424
|
-
}, O = globalThis.AbortController ||
|
|
3424
|
+
}, O = globalThis.AbortController || ar().AbortController, { FunctionPrototypeCall: P } = Ue(), j = class extends m {
|
|
3425
3425
|
constructor(D) {
|
|
3426
3426
|
super(D), D?.readable === !1 && (this._readableState.readable = !1, this._readableState.ended = !0, this._readableState.endEmitted = !0), D?.writable === !1 && (this._writableState.writable = !1, this._writableState.ending = !0, this._writableState.ended = !0, this._writableState.finished = !0);
|
|
3427
3427
|
}
|
|
@@ -3541,9 +3541,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3541
3541
|
}
|
|
3542
3542
|
}), ft = pe((s, e) => {
|
|
3543
3543
|
le(), ue(), ce();
|
|
3544
|
-
var { ObjectDefineProperties: t, ObjectGetOwnPropertyDescriptor: r, ObjectKeys: o, ObjectSetPrototypeOf: n } =
|
|
3544
|
+
var { ObjectDefineProperties: t, ObjectGetOwnPropertyDescriptor: r, ObjectKeys: o, ObjectSetPrototypeOf: n } = Ue();
|
|
3545
3545
|
e.exports = l;
|
|
3546
|
-
var i =
|
|
3546
|
+
var i = Gr(), a = go();
|
|
3547
3547
|
n(l.prototype, i.prototype), n(l, i);
|
|
3548
3548
|
{
|
|
3549
3549
|
let p = o(a.prototype);
|
|
@@ -3576,9 +3576,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3576
3576
|
};
|
|
3577
3577
|
}), wa = pe((s, e) => {
|
|
3578
3578
|
le(), ue(), ce();
|
|
3579
|
-
var { ObjectSetPrototypeOf: t, Symbol: r } =
|
|
3579
|
+
var { ObjectSetPrototypeOf: t, Symbol: r } = Ue();
|
|
3580
3580
|
e.exports = l;
|
|
3581
|
-
var { ERR_METHOD_NOT_IMPLEMENTED: o } = Ke().codes, n = ft(), { getHighWaterMark: i } =
|
|
3581
|
+
var { ERR_METHOD_NOT_IMPLEMENTED: o } = Ke().codes, n = ft(), { getHighWaterMark: i } = Kr();
|
|
3582
3582
|
t(l.prototype, n.prototype), t(l, n);
|
|
3583
3583
|
var a = r("kCallback");
|
|
3584
3584
|
function l(h) {
|
|
@@ -3617,7 +3617,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3617
3617
|
};
|
|
3618
3618
|
}), _a = pe((s, e) => {
|
|
3619
3619
|
le(), ue(), ce();
|
|
3620
|
-
var { ObjectSetPrototypeOf: t } =
|
|
3620
|
+
var { ObjectSetPrototypeOf: t } = Ue();
|
|
3621
3621
|
e.exports = o;
|
|
3622
3622
|
var r = wa();
|
|
3623
3623
|
t(o.prototype, r.prototype), t(o, r);
|
|
@@ -3630,7 +3630,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3630
3630
|
};
|
|
3631
3631
|
}), bo = pe((s, e) => {
|
|
3632
3632
|
le(), ue(), ce();
|
|
3633
|
-
var t =
|
|
3633
|
+
var t = Nt(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = Ue(), a = Et(), { once: l } = Ye(), c = Vt(), u = ft(), { aggregateTwoErrors: h, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: d, ERR_STREAM_DESTROYED: g, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ke(), { validateFunction: m, validateAbortSignal: _ } = lr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: j } = mt(), T = globalThis.AbortController || ar().AbortController, q, D, U;
|
|
3634
3634
|
function ae(te, we, K) {
|
|
3635
3635
|
let N = !1;
|
|
3636
3636
|
te.on("close", () => {
|
|
@@ -3652,7 +3652,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3652
3652
|
throw new p("val", ["Readable", "Iterable", "AsyncIterable"], te);
|
|
3653
3653
|
}
|
|
3654
3654
|
async function* re(te) {
|
|
3655
|
-
D || (D =
|
|
3655
|
+
D || (D = Gr()), yield* D.prototype[n].call(te);
|
|
3656
3656
|
}
|
|
3657
3657
|
async function $(te, we, K, { end: N }) {
|
|
3658
3658
|
let ne, W = null, G = (oe) => {
|
|
@@ -3798,7 +3798,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3798
3798
|
e.exports = { pipelineImpl: Q, pipeline: M };
|
|
3799
3799
|
}), ka = pe((s, e) => {
|
|
3800
3800
|
le(), ue(), ce();
|
|
3801
|
-
var { pipeline: t } = bo(), r = ft(), { destroyer: o } =
|
|
3801
|
+
var { pipeline: t } = bo(), r = ft(), { destroyer: o } = Vt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: b, ERR_MISSING_ARGS: d } } = Ke(), g = Et();
|
|
3802
3802
|
e.exports = function(...y) {
|
|
3803
3803
|
if (y.length === 0) throw new d("streams");
|
|
3804
3804
|
if (y.length === 1) return r.from(y[0]);
|
|
@@ -3894,7 +3894,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3894
3894
|
};
|
|
3895
3895
|
}), bc = pe((s, e) => {
|
|
3896
3896
|
le(), ue(), ce();
|
|
3897
|
-
var t = globalThis.AbortController ||
|
|
3897
|
+
var t = globalThis.AbortController || ar().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = lr(), h = Ue().Symbol("kWeak"), p = Ue().Symbol("kResistStopPropagation"), { finished: b } = Et(), d = ka(), { addAbortSignalNoValidate: g } = Vr(), { isWritable: y, isNodeStream: w } = mt(), { deprecate: m } = Ye(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: j, Symbol: T } = Ue(), q = T("kEmpty"), D = T("kEof");
|
|
3898
3898
|
function U(W, G) {
|
|
3899
3899
|
if (G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
|
|
3900
3900
|
let J = d(this, W);
|
|
@@ -4072,7 +4072,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4072
4072
|
e.exports.streamReturningOperators = { asIndexedPairs: m(Y, "readable.asIndexedPairs will be removed in a future version."), drop: N, filter: M, flatMap: we, map: ae, take: ne, compose: U }, e.exports.promiseReturningOperators = { every: re, forEach: Z, reduce: be, toArray: te, some: V, find: $ };
|
|
4073
4073
|
}), xa = pe((s, e) => {
|
|
4074
4074
|
le(), ue(), ce();
|
|
4075
|
-
var { ArrayPrototypePop: t, Promise: r } =
|
|
4075
|
+
var { ArrayPrototypePop: t, Promise: r } = Ue(), { isIterable: o, isNodeStream: n, isWebStream: i } = mt(), { pipelineImpl: a } = bo(), { finished: l } = Et();
|
|
4076
4076
|
Sa();
|
|
4077
4077
|
function c(...u) {
|
|
4078
4078
|
return new r((h, p) => {
|
|
@@ -4089,8 +4089,8 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4089
4089
|
e.exports = { finished: l, pipeline: c };
|
|
4090
4090
|
}), Sa = pe((s, e) => {
|
|
4091
4091
|
le(), ue(), ce();
|
|
4092
|
-
var { Buffer: t } = (
|
|
4093
|
-
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable =
|
|
4092
|
+
var { Buffer: t } = (Fe(), Me($e)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = Ue(), { promisify: { custom: i } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } = bc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = ka(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Kr(), { pipeline: b } = bo(), { destroyer: d } = Vt(), g = Et(), y = xa(), w = mt(), m = e.exports = mo().Stream;
|
|
4093
|
+
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = Gr();
|
|
4094
4094
|
for (let x of o(a)) {
|
|
4095
4095
|
let v = function(...S) {
|
|
4096
4096
|
if (new.target) throw c();
|
|
@@ -4106,7 +4106,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4106
4106
|
r(v, "name", { __proto__: null, value: E.name }), r(v, "length", { __proto__: null, value: E.length }), r(m.Readable.prototype, x, { __proto__: null, value: v, enumerable: !1, configurable: !0, writable: !0 });
|
|
4107
4107
|
}
|
|
4108
4108
|
m.Writable = go(), m.Duplex = ft(), m.Transform = wa(), m.PassThrough = _a(), m.pipeline = b;
|
|
4109
|
-
var { addAbortSignal: _ } =
|
|
4109
|
+
var { addAbortSignal: _ } = Vr();
|
|
4110
4110
|
m.addAbortSignal = _, m.finished = g, m.destroy = d, m.compose = u, m.setDefaultHighWaterMark = h, m.getDefaultHighWaterMark = p, r(m, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
|
|
4111
4111
|
return y;
|
|
4112
4112
|
} }), r(b, i, { __proto__: null, enumerable: !0, get() {
|
|
@@ -4118,7 +4118,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4118
4118
|
}, m._uint8ArrayToBuffer = function(x) {
|
|
4119
4119
|
return t.from(x.buffer, x.byteOffset, x.byteLength);
|
|
4120
4120
|
};
|
|
4121
|
-
}),
|
|
4121
|
+
}), jt = pe((s, e) => {
|
|
4122
4122
|
le(), ue(), ce();
|
|
4123
4123
|
var t = Sa(), r = xa(), o = t.Readable.destroy;
|
|
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() {
|
|
@@ -4137,7 +4137,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4137
4137
|
};
|
|
4138
4138
|
}), vc = pe((s, e) => {
|
|
4139
4139
|
le(), ue(), ce();
|
|
4140
|
-
var { Buffer: t } = (
|
|
4140
|
+
var { Buffer: t } = (Fe(), Me($e)), r = /* @__PURE__ */ Symbol.for("BufferList");
|
|
4141
4141
|
function o(n) {
|
|
4142
4142
|
if (!(this instanceof o)) return new o(n);
|
|
4143
4143
|
o._init.call(this, n);
|
|
@@ -4261,7 +4261,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4261
4261
|
}, e.exports = o;
|
|
4262
4262
|
}), wc = pe((s, e) => {
|
|
4263
4263
|
le(), ue(), ce();
|
|
4264
|
-
var t =
|
|
4264
|
+
var t = jt().Duplex, r = yc(), o = vc();
|
|
4265
4265
|
function n(i) {
|
|
4266
4266
|
if (!(this instanceof n)) return new n(i);
|
|
4267
4267
|
if (typeof i == "function") {
|
|
@@ -4301,7 +4301,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4301
4301
|
e.exports = t;
|
|
4302
4302
|
}), Ea = pe((s, e) => {
|
|
4303
4303
|
le(), ue(), ce();
|
|
4304
|
-
var t = e.exports, { Buffer: r } = (
|
|
4304
|
+
var t = e.exports, { Buffer: r } = (Fe(), Me($e));
|
|
4305
4305
|
t.types = { 0: "reserved", 1: "connect", 2: "connack", 3: "publish", 4: "puback", 5: "pubrec", 6: "pubrel", 7: "pubcomp", 8: "subscribe", 9: "suback", 10: "unsubscribe", 11: "unsuback", 12: "pingreq", 13: "pingresp", 14: "disconnect", 15: "auth" }, t.requiredHeaderFlags = { 1: 0, 2: 0, 4: 0, 5: 0, 6: 2, 7: 0, 8: 2, 9: 0, 10: 2, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0 }, t.requiredHeaderFlagsErrors = {};
|
|
4306
4306
|
for (let n in t.requiredHeaderFlags) {
|
|
4307
4307
|
let i = t.requiredHeaderFlags[n];
|
|
@@ -4521,7 +4521,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4521
4521
|
};
|
|
4522
4522
|
}), Sc = pe((s, e) => {
|
|
4523
4523
|
le(), ue(), ce();
|
|
4524
|
-
var t = wc(), { EventEmitter: r } = (
|
|
4524
|
+
var t = wc(), { EventEmitter: r } = (Lt(), Me(St)), o = _c(), n = Ea(), i = pt()("mqtt-packet:parser"), a = class vi extends r {
|
|
4525
4525
|
constructor() {
|
|
4526
4526
|
super(), this.parser = this.constructor.parser;
|
|
4527
4527
|
}
|
|
@@ -4874,7 +4874,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4874
4874
|
e.exports = a;
|
|
4875
4875
|
}), Ec = pe((s, e) => {
|
|
4876
4876
|
le(), ue(), ce();
|
|
4877
|
-
var { Buffer: t } = (
|
|
4877
|
+
var { Buffer: t } = (Fe(), Me($e)), r = 65536, o = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
|
|
4878
4878
|
function i(u) {
|
|
4879
4879
|
let h = t.allocUnsafe(2);
|
|
4880
4880
|
return h.writeUInt8(u >> 8, 0), h.writeUInt8(u & 255, 1), h;
|
|
@@ -4924,7 +4924,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
}), Aa = pe((s, e) => {
|
|
4926
4926
|
le(), ue(), ce();
|
|
4927
|
-
var t = Ea(), { Buffer: r } = (
|
|
4927
|
+
var t = Ea(), { Buffer: r } = (Fe(), Me($e)), o = r.allocUnsafe(0), n = r.from([0]), i = Ec(), a = Ac().nextTick, l = pt()("mqtt-packet:writeToStream"), c = i.cache, u = i.generateNumber, h = i.generateCache, p = i.genBufVariableByteInt, b = i.generate4ByteBuffer, d = Y, g = !0;
|
|
4928
4928
|
function y(K, N, ne) {
|
|
4929
4929
|
switch (l("generate called"), N.cork && (N.cork(), a(w, N)), g && (g = !1, h()), l("generate: packet.cmd: %s", K.cmd), K.cmd) {
|
|
4930
4930
|
case "connect":
|
|
@@ -5307,7 +5307,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5307
5307
|
e.exports = y;
|
|
5308
5308
|
}), Ic = pe((s, e) => {
|
|
5309
5309
|
le(), ue(), ce();
|
|
5310
|
-
var t = Aa(), { EventEmitter: r } = (
|
|
5310
|
+
var t = Aa(), { EventEmitter: r } = (Lt(), Me(St)), { Buffer: o } = (Fe(), Me($e));
|
|
5311
5311
|
function n(a, l) {
|
|
5312
5312
|
let c = new i();
|
|
5313
5313
|
return t(a, c, l), c.concat();
|
|
@@ -5336,7 +5336,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5336
5336
|
}), Cc = pe((s, e) => {
|
|
5337
5337
|
le(), ue(), ce(), e.exports = r;
|
|
5338
5338
|
function t(n) {
|
|
5339
|
-
return n instanceof
|
|
5339
|
+
return n instanceof Hr ? Hr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
|
|
5340
5340
|
}
|
|
5341
5341
|
function r(n) {
|
|
5342
5342
|
if (n = n || {}, n.circles) return o(n);
|
|
@@ -5452,7 +5452,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
}), Ta = pe((s) => {
|
|
5454
5454
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
5455
|
-
var e =
|
|
5455
|
+
var e = jt(), t = { objectMode: !0 }, r = { clean: !0 }, o = class {
|
|
5456
5456
|
options;
|
|
5457
5457
|
_inflights;
|
|
5458
5458
|
constructor(n) {
|
|
@@ -5543,7 +5543,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5543
5543
|
s.default = t;
|
|
5544
5544
|
}), Mc = pe((s, e) => {
|
|
5545
5545
|
e.exports = { version: "5.15.0" };
|
|
5546
|
-
}),
|
|
5546
|
+
}), Kt = pe((s) => {
|
|
5547
5547
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.MQTTJS_VERSION = s.nextTick = s.ErrorWithSubackPacket = s.ErrorWithReasonCode = void 0, s.applyMixin = r;
|
|
5548
5548
|
var e = class Ca extends Error {
|
|
5549
5549
|
code;
|
|
@@ -5571,9 +5571,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5571
5571
|
s.nextTick = typeof Le?.nextTick == "function" ? Le.nextTick : (o) => {
|
|
5572
5572
|
setTimeout(o, 0);
|
|
5573
5573
|
}, s.MQTTJS_VERSION = Mc().version;
|
|
5574
|
-
}),
|
|
5574
|
+
}), Yr = pe((s) => {
|
|
5575
5575
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.ReasonCodes = void 0;
|
|
5576
|
-
var e =
|
|
5576
|
+
var e = Kt();
|
|
5577
5577
|
s.ReasonCodes = { 0: "", 1: "Unacceptable protocol version", 2: "Identifier rejected", 3: "Server unavailable", 4: "Bad username or password", 5: "Not authorized", 16: "No matching subscribers", 17: "No subscription existed", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 132: "Unsupported Protocol Version", 133: "Client Identifier not valid", 134: "Bad User Name or Password", 135: "Not authorized", 136: "Server unavailable", 137: "Server busy", 138: "Banned", 139: "Server shutting down", 140: "Bad authentication method", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 145: "Packet identifier in use", 146: "Packet Identifier not found", 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" };
|
|
5578
5578
|
var t = (r, o) => {
|
|
5579
5579
|
let { messageId: n } = o, i = o.cmd, a = null, l = r.outgoing[n] ? r.outgoing[n].cb : null, c = null;
|
|
@@ -5626,7 +5626,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5626
5626
|
s.default = t;
|
|
5627
5627
|
}), Rc = pe((s) => {
|
|
5628
5628
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
5629
|
-
var e =
|
|
5629
|
+
var e = Kt(), t = Yr(), r = (o, n) => {
|
|
5630
5630
|
let { options: i } = o, a = i.protocolVersion, l = a === 5 ? n.reasonCode : n.returnCode;
|
|
5631
5631
|
if (a !== 5) {
|
|
5632
5632
|
let c = new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${a}`, l);
|
|
@@ -5681,19 +5681,19 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5681
5681
|
constructor(b) {
|
|
5682
5682
|
super(b), this.fill(0);
|
|
5683
5683
|
}
|
|
5684
|
-
}, h = class
|
|
5684
|
+
}, h = class ir {
|
|
5685
5685
|
heap;
|
|
5686
5686
|
length;
|
|
5687
5687
|
static #l = !1;
|
|
5688
5688
|
static create(d) {
|
|
5689
5689
|
let g = c(d);
|
|
5690
5690
|
if (!g) return [];
|
|
5691
|
-
|
|
5692
|
-
let y = new
|
|
5693
|
-
return
|
|
5691
|
+
ir.#l = !0;
|
|
5692
|
+
let y = new ir(d, g);
|
|
5693
|
+
return ir.#l = !1, y;
|
|
5694
5694
|
}
|
|
5695
5695
|
constructor(d, g) {
|
|
5696
|
-
if (!
|
|
5696
|
+
if (!ir.#l) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
5697
5697
|
this.heap = new g(d), this.length = 0;
|
|
5698
5698
|
}
|
|
5699
5699
|
push(d) {
|
|
@@ -7681,7 +7681,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7681
7681
|
return i && i.__esModule ? i : { default: i };
|
|
7682
7682
|
};
|
|
7683
7683
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
7684
|
-
var t =
|
|
7684
|
+
var t = Yr(), r = e(Gc()), o = Kt(), n = (i, a) => {
|
|
7685
7685
|
i.log("_handleConnack");
|
|
7686
7686
|
let { options: l } = i, c = l.protocolVersion === 5 ? a.reasonCode : a.returnCode;
|
|
7687
7687
|
if (clearTimeout(i.connackTimer), delete i.topicAliasSend, a.properties) {
|
|
@@ -7720,7 +7720,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7720
7720
|
return l && l.__esModule ? l : { default: l };
|
|
7721
7721
|
};
|
|
7722
7722
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
7723
|
-
var t = e(Pc()), r = e(Rc()), o = e(Yc()), n = e(
|
|
7723
|
+
var t = e(Pc()), r = e(Rc()), o = e(Yc()), n = e(Yr()), i = e(Jc()), a = (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) {
|
|
@@ -7804,10 +7804,10 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7804
7804
|
return n && n.__esModule ? n : { default: n };
|
|
7805
7805
|
};
|
|
7806
7806
|
Object.defineProperty(s, "__esModule", { value: !0 }), s.TypedEventEmitter = void 0;
|
|
7807
|
-
var t = e((
|
|
7807
|
+
var t = e((Lt(), Me(St))), r = Kt(), o = class {
|
|
7808
7808
|
};
|
|
7809
7809
|
s.TypedEventEmitter = o, (0, r.applyMixin)(o, t.default);
|
|
7810
|
-
}),
|
|
7810
|
+
}), Jr = pe((s, e) => {
|
|
7811
7811
|
le(), ue(), ce();
|
|
7812
7812
|
function t(r) {
|
|
7813
7813
|
"@babel/helpers - typeof";
|
|
@@ -7820,7 +7820,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7820
7820
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7821
7821
|
}), eu = pe((s, e) => {
|
|
7822
7822
|
le(), ue(), ce();
|
|
7823
|
-
var t =
|
|
7823
|
+
var t = Jr().default;
|
|
7824
7824
|
function r(o, n) {
|
|
7825
7825
|
if (t(o) != "object" || !o) return o;
|
|
7826
7826
|
var i = o[Symbol.toPrimitive];
|
|
@@ -7834,7 +7834,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7834
7834
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7835
7835
|
}), tu = pe((s, e) => {
|
|
7836
7836
|
le(), ue(), ce();
|
|
7837
|
-
var t =
|
|
7837
|
+
var t = Jr().default, r = eu();
|
|
7838
7838
|
function o(n) {
|
|
7839
7839
|
var i = r(n, "string");
|
|
7840
7840
|
return t(i) == "symbol" ? i : i + "";
|
|
@@ -8117,7 +8117,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8117
8117
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8118
8118
|
}), du = pe((s, e) => {
|
|
8119
8119
|
le(), ue(), ce();
|
|
8120
|
-
var t =
|
|
8120
|
+
var t = Jr().default;
|
|
8121
8121
|
function r(o) {
|
|
8122
8122
|
if (o != null) {
|
|
8123
8123
|
var n = o[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], i = 0;
|
|
@@ -8321,7 +8321,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8321
8321
|
});
|
|
8322
8322
|
}), gu = pe((s, e) => {
|
|
8323
8323
|
le(), ue(), ce(), (function(t, r) {
|
|
8324
|
-
typeof s == "object" && typeof e < "u" ? r(s,
|
|
8324
|
+
typeof s == "object" && typeof e < "u" ? r(s, Jr(), mu(), Va()) : 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
|
})(s, function(t, r, o, n) {
|
|
8326
8326
|
var i = /* @__PURE__ */ new Map([[0, null]]), a = /* @__PURE__ */ new Map([[0, null]]), l = o.createBroker({ clearInterval: function(u) {
|
|
8327
8327
|
var h = u.call;
|
|
@@ -8395,7 +8395,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8395
8395
|
};
|
|
8396
8396
|
t.clearInterval = a, t.clearTimeout = l, t.setInterval = c, t.setTimeout = u;
|
|
8397
8397
|
});
|
|
8398
|
-
}),
|
|
8398
|
+
}), Qr = pe((s) => {
|
|
8399
8399
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.isReactNativeBrowser = s.isWebWorker = void 0;
|
|
8400
8400
|
var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Le?.versions ? !Object.prototype.hasOwnProperty.call(Le.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
|
s.isWebWorker = t(), s.isReactNativeBrowser = r(), s.default = o;
|
|
@@ -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(s, "__esModule", { value: !0 });
|
|
8432
|
-
var o = bu(), n = r(
|
|
8432
|
+
var o = bu(), n = r(Qr()), i = { set: o.setInterval, clear: o.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
|
|
8433
8433
|
switch (c) {
|
|
8434
8434
|
case "native":
|
|
8435
8435
|
return a;
|
|
@@ -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(s, "__esModule", { value: !0 });
|
|
8522
|
-
var n = o(Tc()), i =
|
|
8522
|
+
var n = o(Tc()), i = jt(), a = o(Oc()), l = o(pt()), c = r(Ia()), u = o(Ta()), h = o(Qc()), p = o(za()), b = o(Xc()), d = Kt(), g = Zc(), y = o(Xa()), w = r(Qr()), m = globalThis.setImmediate || ((...v) => {
|
|
8523
8523
|
let E = v.shift();
|
|
8524
8524
|
(0, d.nextTick)(() => {
|
|
8525
8525
|
E(...v);
|
|
@@ -9048,7 +9048,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9048
9048
|
s.default = t;
|
|
9049
9049
|
});
|
|
9050
9050
|
function wu() {
|
|
9051
|
-
if (ki) return
|
|
9051
|
+
if (ki) return vr;
|
|
9052
9052
|
ki = !0;
|
|
9053
9053
|
let s = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, i = 72, a = 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, d = Math.floor, g = String.fromCharCode;
|
|
9054
9054
|
function y(P) {
|
|
@@ -9128,7 +9128,7 @@ function wu() {
|
|
|
9128
9128
|
}
|
|
9129
9129
|
return j.join("");
|
|
9130
9130
|
};
|
|
9131
|
-
return
|
|
9131
|
+
return vr = { version: "2.3.1", ucs2: { decode: _, encode: x }, decode: I, encode: O, toASCII: function(P) {
|
|
9132
9132
|
return m(P, function(j) {
|
|
9133
9133
|
return u.test(j) ? "xn--" + O(j) : j;
|
|
9134
9134
|
});
|
|
@@ -9136,10 +9136,10 @@ function wu() {
|
|
|
9136
9136
|
return m(P, function(j) {
|
|
9137
9137
|
return c.test(j) ? I(j.slice(4).toLowerCase()) : j;
|
|
9138
9138
|
});
|
|
9139
|
-
} },
|
|
9139
|
+
} }, vr;
|
|
9140
9140
|
}
|
|
9141
|
-
var
|
|
9142
|
-
le(), ue(), ce(),
|
|
9141
|
+
var vr, ki, kt, _u = Je(() => {
|
|
9142
|
+
le(), ue(), ce(), vr = {}, ki = !1, kt = wu(), kt.decode, kt.encode, kt.toASCII, kt.toUnicode, kt.ucs2, kt.version;
|
|
9143
9143
|
});
|
|
9144
9144
|
function ku() {
|
|
9145
9145
|
return Si || (Si = !0, xi = function() {
|
|
@@ -9175,30 +9175,30 @@ function Au() {
|
|
|
9175
9175
|
function Za() {
|
|
9176
9176
|
return Li || (Li = !0, Ri = SyntaxError), Ri;
|
|
9177
9177
|
}
|
|
9178
|
-
function
|
|
9178
|
+
function cr() {
|
|
9179
9179
|
return ji || (ji = !0, Ni = TypeError), Ni;
|
|
9180
9180
|
}
|
|
9181
9181
|
function Iu() {
|
|
9182
9182
|
return Bi || (Bi = !0, Ui = URIError), Ui;
|
|
9183
9183
|
}
|
|
9184
9184
|
function Tu() {
|
|
9185
|
-
if (Di) return
|
|
9185
|
+
if (Di) return wr;
|
|
9186
9186
|
Di = !0;
|
|
9187
9187
|
var s = typeof Symbol < "u" && Symbol, e = ku();
|
|
9188
|
-
return
|
|
9188
|
+
return wr = function() {
|
|
9189
9189
|
return typeof s != "function" || typeof Symbol != "function" || typeof s("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
|
|
9190
|
-
},
|
|
9190
|
+
}, wr;
|
|
9191
9191
|
}
|
|
9192
9192
|
function Cu() {
|
|
9193
|
-
if ($i) return
|
|
9193
|
+
if ($i) return _r;
|
|
9194
9194
|
$i = !0;
|
|
9195
9195
|
var s = { __proto__: null, foo: {} }, e = Object;
|
|
9196
|
-
return
|
|
9196
|
+
return _r = function() {
|
|
9197
9197
|
return { __proto__: s }.foo === s.foo && !(s instanceof e);
|
|
9198
|
-
},
|
|
9198
|
+
}, _r;
|
|
9199
9199
|
}
|
|
9200
9200
|
function Ou() {
|
|
9201
|
-
if (Fi) return
|
|
9201
|
+
if (Fi) return kr;
|
|
9202
9202
|
Fi = !0;
|
|
9203
9203
|
var s = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(a, l) {
|
|
9204
9204
|
for (var c = [], u = 0; u < a.length; u += 1) c[u] = a[u];
|
|
@@ -9211,7 +9211,7 @@ function Ou() {
|
|
|
9211
9211
|
for (var c = "", u = 0; u < a.length; u += 1) c += a[u], u + 1 < a.length && (c += l);
|
|
9212
9212
|
return c;
|
|
9213
9213
|
};
|
|
9214
|
-
return
|
|
9214
|
+
return kr = function(a) {
|
|
9215
9215
|
var l = this;
|
|
9216
9216
|
if (typeof l != "function" || e.apply(l) !== r) throw new TypeError(s + l);
|
|
9217
9217
|
for (var c = n(arguments, 1), u, h = function() {
|
|
@@ -9227,24 +9227,24 @@ function Ou() {
|
|
|
9227
9227
|
g.prototype = l.prototype, u.prototype = new g(), g.prototype = null;
|
|
9228
9228
|
}
|
|
9229
9229
|
return u;
|
|
9230
|
-
},
|
|
9230
|
+
}, kr;
|
|
9231
9231
|
}
|
|
9232
9232
|
function vo() {
|
|
9233
|
-
if (qi) return
|
|
9233
|
+
if (qi) return xr;
|
|
9234
9234
|
qi = !0;
|
|
9235
9235
|
var s = Ou();
|
|
9236
|
-
return
|
|
9236
|
+
return xr = Function.prototype.bind || s, xr;
|
|
9237
9237
|
}
|
|
9238
9238
|
function Pu() {
|
|
9239
|
-
if (Hi) return
|
|
9239
|
+
if (Hi) return Sr;
|
|
9240
9240
|
Hi = !0;
|
|
9241
9241
|
var s = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = vo();
|
|
9242
|
-
return
|
|
9242
|
+
return Sr = t.call(s, e), Sr;
|
|
9243
9243
|
}
|
|
9244
|
-
function
|
|
9245
|
-
if (Wi) return
|
|
9244
|
+
function Gt() {
|
|
9245
|
+
if (Wi) return Er;
|
|
9246
9246
|
Wi = !0;
|
|
9247
|
-
var s, e = xu(), t = Su(), r = Eu(), o = Au(), n = Za(), i =
|
|
9247
|
+
var s, e = xu(), t = Su(), r = Eu(), o = Au(), n = Za(), i = cr(), a = Iu(), l = Function, c = function(Y) {
|
|
9248
9248
|
try {
|
|
9249
9249
|
return l('"use strict"; return (' + Y + ").constructor;")();
|
|
9250
9250
|
} catch {
|
|
@@ -9306,7 +9306,7 @@ function Kt() {
|
|
|
9306
9306
|
}
|
|
9307
9307
|
throw new n("intrinsic " + Y + " does not exist!");
|
|
9308
9308
|
};
|
|
9309
|
-
return
|
|
9309
|
+
return Er = function(Y, V) {
|
|
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");
|
|
@@ -9329,35 +9329,35 @@ function Kt() {
|
|
|
9329
9329
|
}
|
|
9330
9330
|
}
|
|
9331
9331
|
return Q;
|
|
9332
|
-
},
|
|
9332
|
+
}, Er;
|
|
9333
9333
|
}
|
|
9334
9334
|
function wo() {
|
|
9335
|
-
if (zi) return
|
|
9335
|
+
if (zi) return Ar;
|
|
9336
9336
|
zi = !0;
|
|
9337
|
-
var s =
|
|
9337
|
+
var s = Gt(), e = s("%Object.defineProperty%", !0) || !1;
|
|
9338
9338
|
if (e) try {
|
|
9339
9339
|
e({}, "a", { value: 1 });
|
|
9340
9340
|
} catch {
|
|
9341
9341
|
e = !1;
|
|
9342
9342
|
}
|
|
9343
|
-
return
|
|
9343
|
+
return Ar = e, Ar;
|
|
9344
9344
|
}
|
|
9345
9345
|
function el() {
|
|
9346
|
-
if (Vi) return
|
|
9346
|
+
if (Vi) return Ir;
|
|
9347
9347
|
Vi = !0;
|
|
9348
|
-
var s =
|
|
9348
|
+
var s = Gt(), e = s("%Object.getOwnPropertyDescriptor%", !0);
|
|
9349
9349
|
if (e) try {
|
|
9350
9350
|
e([], "length");
|
|
9351
9351
|
} catch {
|
|
9352
9352
|
e = null;
|
|
9353
9353
|
}
|
|
9354
|
-
return
|
|
9354
|
+
return Ir = e, Ir;
|
|
9355
9355
|
}
|
|
9356
9356
|
function Mu() {
|
|
9357
|
-
if (Ki) return
|
|
9357
|
+
if (Ki) return Tr;
|
|
9358
9358
|
Ki = !0;
|
|
9359
|
-
var s = wo(), e = Za(), t =
|
|
9360
|
-
return
|
|
9359
|
+
var s = wo(), e = Za(), t = cr(), r = el();
|
|
9360
|
+
return Tr = function(o, n, i) {
|
|
9361
9361
|
if (!o || typeof o != "object" && typeof o != "function") throw new t("`obj` must be an object or a function`");
|
|
9362
9362
|
if (typeof n != "string" && typeof n != "symbol") throw new t("`property` must be a string or a symbol`");
|
|
9363
9363
|
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new t("`nonEnumerable`, if provided, must be a boolean or null");
|
|
@@ -9368,10 +9368,10 @@ function Mu() {
|
|
|
9368
9368
|
if (s) s(o, n, { configurable: c === null && h ? h.configurable : !c, enumerable: a === null && h ? h.enumerable : !a, value: i, writable: l === null && h ? h.writable : !l });
|
|
9369
9369
|
else if (u || !a && !l && !c) o[n] = i;
|
|
9370
9370
|
else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9371
|
-
},
|
|
9371
|
+
}, Tr;
|
|
9372
9372
|
}
|
|
9373
9373
|
function Ru() {
|
|
9374
|
-
if (Gi) return
|
|
9374
|
+
if (Gi) return Cr;
|
|
9375
9375
|
Gi = !0;
|
|
9376
9376
|
var s = wo(), e = function() {
|
|
9377
9377
|
return !!s;
|
|
@@ -9383,13 +9383,13 @@ function Ru() {
|
|
|
9383
9383
|
} catch {
|
|
9384
9384
|
return !0;
|
|
9385
9385
|
}
|
|
9386
|
-
},
|
|
9386
|
+
}, Cr = e, Cr;
|
|
9387
9387
|
}
|
|
9388
9388
|
function Lu() {
|
|
9389
|
-
if (Yi) return
|
|
9389
|
+
if (Yi) return Or;
|
|
9390
9390
|
Yi = !0;
|
|
9391
|
-
var s =
|
|
9392
|
-
return
|
|
9391
|
+
var s = Gt(), e = Mu(), t = Ru()(), r = el(), o = cr(), n = s("%Math.floor%");
|
|
9392
|
+
return Or = function(i, a) {
|
|
9393
9393
|
if (typeof i != "function") throw new o("`fn` is not a function");
|
|
9394
9394
|
if (typeof a != "number" || a < 0 || a > 4294967295 || n(a) !== a) throw new o("`length` must be a positive 32-bit integer");
|
|
9395
9395
|
var l = arguments.length > 2 && !!arguments[2], c = !0, u = !0;
|
|
@@ -9398,13 +9398,13 @@ function Lu() {
|
|
|
9398
9398
|
h && !h.configurable && (c = !1), h && !h.writable && (u = !1);
|
|
9399
9399
|
}
|
|
9400
9400
|
return (c || u || !l) && (t ? e(i, "length", a, !0, !0) : e(i, "length", a)), i;
|
|
9401
|
-
},
|
|
9401
|
+
}, Or;
|
|
9402
9402
|
}
|
|
9403
9403
|
function Nu() {
|
|
9404
|
-
if (Ji) return
|
|
9404
|
+
if (Ji) return Ft;
|
|
9405
9405
|
Ji = !0;
|
|
9406
|
-
var s = vo(), e =
|
|
9407
|
-
|
|
9406
|
+
var s = vo(), e = Gt(), t = Lu(), r = cr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), i = e("%Reflect.apply%", !0) || s.call(n, o), a = wo(), l = e("%Math.max%");
|
|
9407
|
+
Ft = function(u) {
|
|
9408
9408
|
if (typeof u != "function") throw new r("a function is required");
|
|
9409
9409
|
var h = i(s, n, arguments);
|
|
9410
9410
|
return t(h, 1 + l(0, u.length - (arguments.length - 1)), !0);
|
|
@@ -9412,46 +9412,46 @@ function Nu() {
|
|
|
9412
9412
|
var c = function() {
|
|
9413
9413
|
return i(s, o, arguments);
|
|
9414
9414
|
};
|
|
9415
|
-
return a ? a(
|
|
9415
|
+
return a ? a(Ft, "apply", { value: c }) : Ft.apply = c, Ft;
|
|
9416
9416
|
}
|
|
9417
9417
|
function ju() {
|
|
9418
|
-
if (Qi) return
|
|
9418
|
+
if (Qi) return Pr;
|
|
9419
9419
|
Qi = !0;
|
|
9420
|
-
var s =
|
|
9421
|
-
return
|
|
9420
|
+
var s = Gt(), e = Nu(), t = e(s("String.prototype.indexOf"));
|
|
9421
|
+
return Pr = function(r, o) {
|
|
9422
9422
|
var n = s(r, !!o);
|
|
9423
9423
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9424
|
-
},
|
|
9424
|
+
}, Pr;
|
|
9425
9425
|
}
|
|
9426
|
-
var xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, Bi,
|
|
9427
|
-
le(), ue(), ce(), xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, Ci = {}, Oi = !1, Pi = {}, Mi = !1, Ri = {}, Li = !1, Ni = {}, ji = !1, Ui = {}, Bi = !1,
|
|
9426
|
+
var xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, Bi, wr, Di, _r, $i, kr, Fi, xr, qi, Sr, Hi, Er, Wi, Ar, zi, Ir, Vi, Tr, Ki, Cr, Gi, Or, Yi, Ft, Ji, Pr, Qi, Uu = Je(() => {
|
|
9427
|
+
le(), ue(), ce(), xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, Ci = {}, Oi = !1, Pi = {}, Mi = !1, Ri = {}, Li = !1, Ni = {}, ji = !1, Ui = {}, Bi = !1, wr = {}, Di = !1, _r = {}, $i = !1, kr = {}, Fi = !1, xr = {}, qi = !1, Sr = {}, Hi = !1, Er = {}, Wi = !1, Ar = {}, zi = !1, Ir = {}, Vi = !1, Tr = {}, Ki = !1, Cr = {}, Gi = !1, Or = {}, Yi = !1, Ft = {}, Ji = !1, Pr = {}, Qi = !1;
|
|
9428
9428
|
});
|
|
9429
9429
|
function _o(s) {
|
|
9430
9430
|
throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
|
|
9431
9431
|
}
|
|
9432
9432
|
function Bu() {
|
|
9433
|
-
!
|
|
9433
|
+
!Rt || !Pt || (Rt = !1, Pt.length ? at = Pt.concat(at) : sr = -1, at.length && tl());
|
|
9434
9434
|
}
|
|
9435
9435
|
function tl() {
|
|
9436
|
-
if (!
|
|
9436
|
+
if (!Rt) {
|
|
9437
9437
|
var s = setTimeout(Bu, 0);
|
|
9438
|
-
|
|
9438
|
+
Rt = !0;
|
|
9439
9439
|
for (var e = at.length; e; ) {
|
|
9440
|
-
for (
|
|
9441
|
-
|
|
9440
|
+
for (Pt = at, at = []; ++sr < e; ) Pt && Pt[sr].run();
|
|
9441
|
+
sr = -1, e = at.length;
|
|
9442
9442
|
}
|
|
9443
|
-
|
|
9443
|
+
Pt = null, Rt = !1, clearTimeout(s);
|
|
9444
9444
|
}
|
|
9445
9445
|
}
|
|
9446
9446
|
function Du(s) {
|
|
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
|
-
at.push(new rl(s, e)), at.length === 1 && !
|
|
9449
|
+
at.push(new rl(s, e)), at.length === 1 && !Rt && setTimeout(tl, 0);
|
|
9450
9450
|
}
|
|
9451
9451
|
function rl(s, e) {
|
|
9452
9452
|
this.fun = s, this.array = e;
|
|
9453
9453
|
}
|
|
9454
|
-
function
|
|
9454
|
+
function We() {
|
|
9455
9455
|
}
|
|
9456
9456
|
function $u(s) {
|
|
9457
9457
|
_o("_linkedBinding");
|
|
@@ -9476,7 +9476,7 @@ function Vu() {
|
|
|
9476
9476
|
}
|
|
9477
9477
|
function en(s) {
|
|
9478
9478
|
var e = Math.floor((Date.now() - dt.now()) * 1e-3), t = dt.now() * 1e-3, r = Math.floor(t) + e, o = Math.floor(t % 1 * 1e9);
|
|
9479
|
-
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o +=
|
|
9479
|
+
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += Mr)), [r, o];
|
|
9480
9480
|
}
|
|
9481
9481
|
function vt() {
|
|
9482
9482
|
return ko;
|
|
@@ -9484,8 +9484,8 @@ function vt() {
|
|
|
9484
9484
|
function Ku(s) {
|
|
9485
9485
|
return [];
|
|
9486
9486
|
}
|
|
9487
|
-
var at,
|
|
9488
|
-
le(), ue(), ce(), at = [],
|
|
9487
|
+
var at, Rt, Pt, sr, Lo, No, jo, Uo, Bo, Do, $o, Fo, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, fr, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, dt, tn, Mr, As, Is, Ts, Cs, Os, Ps, Ms, Rs, Ls, Ns, js, ko, nl = Je(() => {
|
|
9488
|
+
le(), ue(), ce(), at = [], Rt = !1, sr = -1, rl.prototype.run = function() {
|
|
9489
9489
|
this.fun.apply(null, this.array);
|
|
9490
9490
|
}, Lo = "browser", No = "x64", jo = "browser", Uo = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Bo = ["/usr/bin/node"], Do = [], $o = "v16.8.0", Fo = {}, qo = function(s, e) {
|
|
9491
9491
|
console.warn((e ? e + ": " : "") + s);
|
|
@@ -9496,15 +9496,15 @@ var at, Mt, Ot, or, Lo, No, jo, Uo, Bo, Do, $o, Fo, qo, Ho, Wo, zo, Vo, Ko, Go,
|
|
|
9496
9496
|
}, zo = function() {
|
|
9497
9497
|
return "/";
|
|
9498
9498
|
}, Vo = function(s) {
|
|
9499
|
-
}, Ko = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Go =
|
|
9499
|
+
}, Ko = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Go = We, Yo = [], Jo = {}, Qo = !1, Xo = {}, Zo = We, es = We, fr = function() {
|
|
9500
9500
|
return {};
|
|
9501
|
-
}, ts =
|
|
9501
|
+
}, ts = fr, rs = fr, ns = We, is = We, os = We, ss = {}, as = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, ls = We, cs = We, us = We, hs = We, ds = We, fs = We, ps = We, ms = void 0, gs = void 0, bs = void 0, ys = We, vs = 2, ws = 1, _s = "/bin/usr/node", ks = 9229, xs = "node", Ss = [], Es = We, dt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, dt.now === void 0 && (tn = Date.now(), dt.timing && dt.timing.navigationStart && (tn = dt.timing.navigationStart), dt.now = () => Date.now() - tn), Mr = 1e9, en.bigint = function(s) {
|
|
9502
9502
|
var e = en(s);
|
|
9503
|
-
return typeof BigInt > "u" ? e[0] *
|
|
9504
|
-
}, As = 10, Is = {}, Ts = 0, Cs = vt, Os = vt, Ps = vt, Ms = vt, Rs = vt, Ls =
|
|
9503
|
+
return typeof BigInt > "u" ? e[0] * Mr + e[1] : BigInt(e[0] * Mr) + BigInt(e[1]);
|
|
9504
|
+
}, As = 10, Is = {}, Ts = 0, Cs = vt, Os = vt, Ps = vt, Ms = vt, Rs = vt, Ls = We, Ns = vt, js = vt, ko = { version: $o, versions: Fo, arch: No, platform: jo, release: Ko, _rawDebug: Go, moduleLoadList: Yo, binding: Ho, _linkedBinding: $u, _events: Is, _eventsCount: Ts, _maxListeners: As, on: vt, addListener: Cs, once: Os, off: Ps, removeListener: Ms, removeAllListeners: Rs, emit: Ls, prependListener: Ns, prependOnceListener: js, listeners: Ku, domain: Jo, _exiting: Qo, config: Xo, dlopen: Fu, uptime: Vu, _getActiveRequests: qu, _getActiveHandles: Hu, reallyExit: Zo, _kill: es, cpuUsage: fr, resourceUsage: ts, memoryUsage: rs, kill: ns, exit: is, openStdin: os, allowedNodeEnvironmentFlags: ss, assert: Wu, features: as, _fatalExceptions: ls, setUncaughtExceptionCaptureCallback: cs, hasUncaughtExceptionCaptureCallback: zu, emitWarning: qo, nextTick: Du, _tickCallback: us, _debugProcess: hs, _debugEnd: ds, _startProfilerIdleNotifier: fs, _stopProfilerIdleNotifier: ps, stdout: ms, stdin: bs, stderr: gs, abort: ys, umask: Wo, chdir: Vo, cwd: zo, env: Uo, title: Lo, argv: Bo, execArgv: Do, pid: vs, ppid: ws, execPath: _s, debugPort: ks, hrtime: en, argv0: xs, _preload_modules: Ss, setSourceMapsEnabled: Es };
|
|
9505
9505
|
});
|
|
9506
9506
|
function Gu() {
|
|
9507
|
-
if (Xi) return
|
|
9507
|
+
if (Xi) return Rr;
|
|
9508
9508
|
Xi = !0;
|
|
9509
9509
|
var s = ko;
|
|
9510
9510
|
function e(n) {
|
|
@@ -9652,14 +9652,14 @@ function Gu() {
|
|
|
9652
9652
|
}
|
|
9653
9653
|
return u === -1 || p === -1 || g === 0 || g === 1 && u === p - 1 && u === h + 1 ? p !== -1 && (h === 0 && l ? i.base = i.name = n.slice(1, p) : i.base = i.name = n.slice(h, p)) : (h === 0 && l ? (i.name = n.slice(1, u), i.base = n.slice(1, p)) : (i.name = n.slice(h, u), i.base = n.slice(h, p)), i.ext = n.slice(u, p)), h > 0 ? i.dir = n.slice(0, h - 1) : l && (i.dir = "/"), i;
|
|
9654
9654
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9655
|
-
return o.posix = o,
|
|
9655
|
+
return o.posix = o, Rr = o, Rr;
|
|
9656
9656
|
}
|
|
9657
|
-
var
|
|
9658
|
-
le(), ue(), ce(), nl(),
|
|
9657
|
+
var Rr, Xi, Zi, Yu = Je(() => {
|
|
9658
|
+
le(), ue(), ce(), nl(), Rr = {}, Xi = !1, Zi = Gu();
|
|
9659
9659
|
}), il = {};
|
|
9660
|
-
|
|
9660
|
+
zt(il, { URL: () => pl, Url: () => cl, default: () => ze, fileURLToPath: () => sl, format: () => ul, parse: () => fl, pathToFileURL: () => al, resolve: () => hl, resolveObject: () => dl });
|
|
9661
9661
|
function Ju() {
|
|
9662
|
-
if (eo) return
|
|
9662
|
+
if (eo) return Lr;
|
|
9663
9663
|
eo = !0;
|
|
9664
9664
|
var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && 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, a = 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, d = 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, j = 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) {
|
|
9665
9665
|
return z.__proto__;
|
|
@@ -9677,7 +9677,7 @@ function Ju() {
|
|
|
9677
9677
|
return _.call(ie, Ee, "$&_");
|
|
9678
9678
|
}
|
|
9679
9679
|
var re = ll, $ = re.custom, Z = G($) ? $ : null;
|
|
9680
|
-
|
|
9680
|
+
Lr = function z(ie, Ee, Ae, Te) {
|
|
9681
9681
|
var Oe = Ee || {};
|
|
9682
9682
|
if (oe(Oe, "quoteStyle") && Oe.quoteStyle !== "single" && Oe.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
9683
9683
|
if (oe(Oe, "maxStringLength") && (typeof Oe.maxStringLength == "number" ? Oe.maxStringLength < 0 && Oe.maxStringLength !== 1 / 0 : Oe.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -9692,15 +9692,15 @@ function Ju() {
|
|
|
9692
9692
|
if (typeof ie == "string") return se(ie, Oe);
|
|
9693
9693
|
if (typeof ie == "number") {
|
|
9694
9694
|
if (ie === 0) return 1 / 0 / ie > 0 ? "0" : "-0";
|
|
9695
|
-
var
|
|
9696
|
-
return tt ? V(ie,
|
|
9695
|
+
var qe = String(ie);
|
|
9696
|
+
return tt ? V(ie, qe) : qe;
|
|
9697
9697
|
}
|
|
9698
9698
|
if (typeof ie == "bigint") {
|
|
9699
9699
|
var rt = String(ie) + "n";
|
|
9700
9700
|
return tt ? V(ie, rt) : rt;
|
|
9701
9701
|
}
|
|
9702
|
-
var
|
|
9703
|
-
if (typeof Ae > "u" && (Ae = 0), Ae >=
|
|
9702
|
+
var Ut = typeof Oe.depth > "u" ? 5 : Oe.depth;
|
|
9703
|
+
if (typeof Ae > "u" && (Ae = 0), Ae >= Ut && Ut > 0 && typeof ie == "object") return be(ie) ? "[Array]" : "[Object]";
|
|
9704
9704
|
var nt = X(Oe, Ae);
|
|
9705
9705
|
if (typeof Te > "u") Te = [];
|
|
9706
9706
|
else if (ee(Te, ie) >= 0) return "[Circular]";
|
|
@@ -9712,12 +9712,12 @@ function Ju() {
|
|
|
9712
9712
|
return z(it, Oe, Ae + 1, Te);
|
|
9713
9713
|
}
|
|
9714
9714
|
if (typeof ie == "function" && !we(ie)) {
|
|
9715
|
-
var
|
|
9716
|
-
return "[Function" + (
|
|
9715
|
+
var hr = F(ie), Bt = ke(ie, Qe);
|
|
9716
|
+
return "[Function" + (hr ? ": " + hr : " (anonymous)") + "]" + (Bt.length > 0 ? " { " + I.call(Bt, ", ") + " }" : "");
|
|
9717
9717
|
}
|
|
9718
9718
|
if (G(ie)) {
|
|
9719
|
-
var
|
|
9720
|
-
return typeof ie == "object" && !D ? f(
|
|
9719
|
+
var Jt = D ? _.call(String(ie), /^(Symbol\(.*\))_[^)]*$/, "$1") : q.call(ie);
|
|
9720
|
+
return typeof ie == "object" && !D ? f(Jt) : Jt;
|
|
9721
9721
|
}
|
|
9722
9722
|
if (ve(ie)) {
|
|
9723
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", Oe);
|
|
@@ -9733,7 +9733,7 @@ function Ju() {
|
|
|
9733
9733
|
return !("cause" in Error.prototype) && "cause" in ie && !ae.call(ie, "cause") ? "{ [" + String(ie) + "] " + I.call(S.call("[cause]: " + Qe(ie.cause), Se), ", ") + " }" : Se.length === 0 ? "[" + String(ie) + "]" : "{ [" + String(ie) + "] " + I.call(Se, ", ") + " }";
|
|
9734
9734
|
}
|
|
9735
9735
|
if (typeof ie == "object" && et) {
|
|
9736
|
-
if (Z && typeof ie[Z] == "function" && re) return re(ie, { depth:
|
|
9736
|
+
if (Z && typeof ie[Z] == "function" && re) return re(ie, { depth: Ut - Ae });
|
|
9737
9737
|
if (et !== "symbol" && typeof ie.inspect == "function") return ie.inspect();
|
|
9738
9738
|
}
|
|
9739
9739
|
if (de(ie)) {
|
|
@@ -9756,9 +9756,9 @@ function Ju() {
|
|
|
9756
9756
|
if (W(ie)) return f(d.call(ie));
|
|
9757
9757
|
if (N(ie)) return f(Qe(String(ie)));
|
|
9758
9758
|
if (typeof window < "u" && ie === window) return "{ [object Window] }";
|
|
9759
|
-
if (typeof globalThis < "u" && ie === globalThis || typeof
|
|
9759
|
+
if (typeof globalThis < "u" && ie === globalThis || typeof Nr < "u" && ie === Nr) return "{ [object globalThis] }";
|
|
9760
9760
|
if (!te(ie) && !we(ie)) {
|
|
9761
|
-
var Ze = ke(ie, Qe),
|
|
9761
|
+
var Ze = ke(ie, Qe), Qt = Y ? Y(ie) === Object.prototype : ie instanceof Object || ie.constructor === Object, Xt = ie instanceof Object ? "" : "null prototype", Zt = !Qt && U && Object(ie) === ie && U in ie ? m.call(R(ie), 8, -1) : Xt ? "Object" : "", dr = Qt || typeof ie.constructor != "function" ? "" : ie.constructor.name ? ie.constructor.name + " " : "", At = dr + (Zt || Xt ? "[" + I.call(S.call([], Zt || [], Xt || []), ": ") + "] " : "");
|
|
9762
9762
|
return Ze.length === 0 ? At + "{}" : nt ? At + "{" + he(Ze, nt) + "}" : At + "{ " + I.call(Ze, ", ") + " }";
|
|
9763
9763
|
}
|
|
9764
9764
|
return String(ie);
|
|
@@ -9810,7 +9810,7 @@ function Ju() {
|
|
|
9810
9810
|
return !1;
|
|
9811
9811
|
}
|
|
9812
9812
|
var ge = Object.prototype.hasOwnProperty || function(z) {
|
|
9813
|
-
return z in (this ||
|
|
9813
|
+
return z in (this || Nr);
|
|
9814
9814
|
};
|
|
9815
9815
|
function oe(z, ie) {
|
|
9816
9816
|
return ge.call(z, ie);
|
|
@@ -9947,16 +9947,16 @@ function Ju() {
|
|
|
9947
9947
|
et = {};
|
|
9948
9948
|
for (var tt = 0; tt < Oe.length; tt++) et["$" + Oe[tt]] = Oe[tt];
|
|
9949
9949
|
}
|
|
9950
|
-
for (var
|
|
9950
|
+
for (var qe in z) oe(z, qe) && (Ee && String(Number(qe)) === qe && qe < z.length || D && et["$" + qe] instanceof Symbol || (E.call(/[^\w$]/, qe) ? Ae.push(ie(qe, z) + ": " + ie(z[qe], z)) : Ae.push(qe + ": " + ie(z[qe], z))));
|
|
9951
9951
|
if (typeof T == "function") for (var rt = 0; rt < Oe.length; rt++) ae.call(z, Oe[rt]) && Ae.push("[" + ie(Oe[rt]) + "]: " + ie(z[Oe[rt]], z));
|
|
9952
9952
|
return Ae;
|
|
9953
9953
|
}
|
|
9954
|
-
return
|
|
9954
|
+
return Lr;
|
|
9955
9955
|
}
|
|
9956
9956
|
function Qu() {
|
|
9957
|
-
if (to) return
|
|
9957
|
+
if (to) return jr;
|
|
9958
9958
|
to = !0;
|
|
9959
|
-
var s =
|
|
9959
|
+
var s = Gt(), e = ju(), t = Ju(), r = cr(), o = s("%WeakMap%", !0), n = s("%Map%", !0), i = e("WeakMap.prototype.get", !0), a = 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);
|
|
@@ -9967,7 +9967,7 @@ function Qu() {
|
|
|
9967
9967
|
}, g = function(y, w) {
|
|
9968
9968
|
return !!p(y, w);
|
|
9969
9969
|
};
|
|
9970
|
-
return
|
|
9970
|
+
return jr = function() {
|
|
9971
9971
|
var y, w, m, _ = { assert: function(x) {
|
|
9972
9972
|
if (!_.has(x)) throw new r("Side channel does not contain " + t(x));
|
|
9973
9973
|
}, get: function(x) {
|
|
@@ -9987,20 +9987,20 @@ function Qu() {
|
|
|
9987
9987
|
o && x && (typeof x == "object" || typeof x == "function") ? (y || (y = new o()), a(y, x, v)) : n ? (w || (w = new n()), u(w, x, v)) : (m || (m = { key: {}, next: null }), d(m, x, v));
|
|
9988
9988
|
} };
|
|
9989
9989
|
return _;
|
|
9990
|
-
},
|
|
9990
|
+
}, jr;
|
|
9991
9991
|
}
|
|
9992
9992
|
function xo() {
|
|
9993
|
-
if (ro) return
|
|
9993
|
+
if (ro) return Ur;
|
|
9994
9994
|
ro = !0;
|
|
9995
9995
|
var s = String.prototype.replace, e = /%20/g, t = { RFC1738: "RFC1738", RFC3986: "RFC3986" };
|
|
9996
|
-
return
|
|
9996
|
+
return Ur = { default: t.RFC3986, formatters: { RFC1738: function(r) {
|
|
9997
9997
|
return s.call(r, e, "+");
|
|
9998
9998
|
}, RFC3986: function(r) {
|
|
9999
9999
|
return String(r);
|
|
10000
|
-
} }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 },
|
|
10000
|
+
} }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 }, Ur;
|
|
10001
10001
|
}
|
|
10002
10002
|
function ol() {
|
|
10003
|
-
if (no) return
|
|
10003
|
+
if (no) return Br;
|
|
10004
10004
|
no = !0;
|
|
10005
10005
|
var s = xo(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = (function() {
|
|
10006
10006
|
for (var y = [], w = 0; w < 256; ++w) y.push("%" + ((w < 16 ? "0" : "") + w.toString(16)).toUpperCase());
|
|
@@ -10096,10 +10096,10 @@ function ol() {
|
|
|
10096
10096
|
}
|
|
10097
10097
|
return w(y);
|
|
10098
10098
|
};
|
|
10099
|
-
return
|
|
10099
|
+
return Br = { arrayToObject: n, assign: a, combine: d, compact: h, decode: l, encode: u, isBuffer: b, isRegExp: p, maybeMap: g, merge: i }, Br;
|
|
10100
10100
|
}
|
|
10101
10101
|
function Xu() {
|
|
10102
|
-
if (io) return
|
|
10102
|
+
if (io) return Dr;
|
|
10103
10103
|
io = !0;
|
|
10104
10104
|
var s = Qu(), e = ol(), t = xo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(g) {
|
|
10105
10105
|
return g + "[]";
|
|
@@ -10175,7 +10175,7 @@ function Xu() {
|
|
|
10175
10175
|
var v = typeof g.allowDots > "u" ? g.encodeDotInKeys === !0 ? !0 : u.allowDots : !!g.allowDots;
|
|
10176
10176
|
return { addQueryPrefix: typeof g.addQueryPrefix == "boolean" ? g.addQueryPrefix : u.addQueryPrefix, allowDots: v, allowEmptyArrays: typeof g.allowEmptyArrays == "boolean" ? !!g.allowEmptyArrays : u.allowEmptyArrays, arrayFormat: x, charset: y, charsetSentinel: typeof g.charsetSentinel == "boolean" ? g.charsetSentinel : u.charsetSentinel, commaRoundTrip: g.commaRoundTrip, delimiter: typeof g.delimiter > "u" ? u.delimiter : g.delimiter, encode: typeof g.encode == "boolean" ? g.encode : u.encode, encodeDotInKeys: typeof g.encodeDotInKeys == "boolean" ? g.encodeDotInKeys : u.encodeDotInKeys, encoder: typeof g.encoder == "function" ? g.encoder : u.encoder, encodeValuesOnly: typeof g.encodeValuesOnly == "boolean" ? g.encodeValuesOnly : u.encodeValuesOnly, filter: _, format: w, formatter: m, serializeDate: typeof g.serializeDate == "function" ? g.serializeDate : u.serializeDate, skipNulls: typeof g.skipNulls == "boolean" ? g.skipNulls : u.skipNulls, sort: typeof g.sort == "function" ? g.sort : null, strictNullHandling: typeof g.strictNullHandling == "boolean" ? g.strictNullHandling : u.strictNullHandling };
|
|
10177
10177
|
};
|
|
10178
|
-
return
|
|
10178
|
+
return Dr = function(g, y) {
|
|
10179
10179
|
var w = g, m = d(y), _, x;
|
|
10180
10180
|
typeof m.filter == "function" ? (x = m.filter, w = x("", w)) : n(m.filter) && (x = m.filter, _ = x);
|
|
10181
10181
|
var v = [];
|
|
@@ -10188,10 +10188,10 @@ function Xu() {
|
|
|
10188
10188
|
}
|
|
10189
10189
|
var j = v.join(m.delimiter), T = m.addQueryPrefix === !0 ? "?" : "";
|
|
10190
10190
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), j.length > 0 ? T + j : "";
|
|
10191
|
-
},
|
|
10191
|
+
}, Dr;
|
|
10192
10192
|
}
|
|
10193
10193
|
function Zu() {
|
|
10194
|
-
if (oo) return
|
|
10194
|
+
if (oo) return $r;
|
|
10195
10195
|
oo = !0;
|
|
10196
10196
|
var s = ol(), 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: s.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, d) {
|
|
@@ -10253,7 +10253,7 @@ function Zu() {
|
|
|
10253
10253
|
var g = typeof p.allowDots > "u" ? p.decodeDotInKeys === !0 ? !0 : r.allowDots : !!p.allowDots;
|
|
10254
10254
|
return { allowDots: g, allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : r.allowEmptyArrays, allowPrototypes: typeof p.allowPrototypes == "boolean" ? p.allowPrototypes : r.allowPrototypes, allowSparse: typeof p.allowSparse == "boolean" ? p.allowSparse : r.allowSparse, arrayLimit: typeof p.arrayLimit == "number" ? p.arrayLimit : r.arrayLimit, charset: b, charsetSentinel: typeof p.charsetSentinel == "boolean" ? p.charsetSentinel : r.charsetSentinel, comma: typeof p.comma == "boolean" ? p.comma : r.comma, decodeDotInKeys: typeof p.decodeDotInKeys == "boolean" ? p.decodeDotInKeys : r.decodeDotInKeys, decoder: typeof p.decoder == "function" ? p.decoder : r.decoder, delimiter: typeof p.delimiter == "string" || s.isRegExp(p.delimiter) ? p.delimiter : r.delimiter, depth: typeof p.depth == "number" || p.depth === !1 ? +p.depth : r.depth, duplicates: d, ignoreQueryPrefix: p.ignoreQueryPrefix === !0, interpretNumericEntities: typeof p.interpretNumericEntities == "boolean" ? p.interpretNumericEntities : r.interpretNumericEntities, parameterLimit: typeof p.parameterLimit == "number" ? p.parameterLimit : r.parameterLimit, parseArrays: p.parseArrays !== !1, plainObjects: typeof p.plainObjects == "boolean" ? p.plainObjects : r.plainObjects, strictDepth: typeof p.strictDepth == "boolean" ? !!p.strictDepth : r.strictDepth, strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : r.strictNullHandling };
|
|
10255
10255
|
};
|
|
10256
|
-
return
|
|
10256
|
+
return $r = function(p, b) {
|
|
10257
10257
|
var d = h(b);
|
|
10258
10258
|
if (p === "" || p === null || typeof p > "u") return d.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
10259
10259
|
for (var g = typeof p == "string" ? l(p, d) : p, y = d.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, w = Object.keys(g), m = 0; m < w.length; ++m) {
|
|
@@ -10261,13 +10261,13 @@ function Zu() {
|
|
|
10261
10261
|
y = s.merge(y, x, d);
|
|
10262
10262
|
}
|
|
10263
10263
|
return d.allowSparse === !0 ? y : s.compact(y);
|
|
10264
|
-
},
|
|
10264
|
+
}, $r;
|
|
10265
10265
|
}
|
|
10266
10266
|
function eh() {
|
|
10267
|
-
if (so) return
|
|
10267
|
+
if (so) return Fr;
|
|
10268
10268
|
so = !0;
|
|
10269
10269
|
var s = Xu(), e = Zu(), t = xo();
|
|
10270
|
-
return
|
|
10270
|
+
return Fr = { formats: t, parse: e, stringify: s }, Fr;
|
|
10271
10271
|
}
|
|
10272
10272
|
function th() {
|
|
10273
10273
|
if (ao) return xt;
|
|
@@ -10434,7 +10434,7 @@ function sl(s) {
|
|
|
10434
10434
|
if (typeof s == "string") s = new URL(s);
|
|
10435
10435
|
else if (!(s instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
|
|
10436
10436
|
if (s.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
|
|
10437
|
-
return
|
|
10437
|
+
return Wr ? rh(s) : nh(s);
|
|
10438
10438
|
}
|
|
10439
10439
|
function rh(s) {
|
|
10440
10440
|
let e = s.hostname, t = s.pathname;
|
|
@@ -10460,20 +10460,20 @@ function nh(s) {
|
|
|
10460
10460
|
}
|
|
10461
10461
|
function al(s) {
|
|
10462
10462
|
let e = Zi.resolve(s), t = s.charCodeAt(s.length - 1);
|
|
10463
|
-
(t === gl ||
|
|
10463
|
+
(t === gl || Wr && t === ml) && e[e.length - 1] !== Zi.sep && (e += "/");
|
|
10464
10464
|
let r = new URL("file://");
|
|
10465
|
-
return e.includes("%") && (e = e.replace(wl, "%25")), !
|
|
10465
|
+
return e.includes("%") && (e = e.replace(wl, "%25")), !Wr && e.includes("\\") && (e = e.replace(_l, "%5C")), e.includes(`
|
|
10466
10466
|
`) && (e = e.replace(kl, "%0A")), e.includes("\r") && (e = e.replace(xl, "%0D")), e.includes(" ") && (e = e.replace(Sl, "%09")), r.pathname = e, r;
|
|
10467
10467
|
}
|
|
10468
|
-
var ll,
|
|
10469
|
-
le(), ue(), ce(), _u(), Uu(), Yu(), nl(), ll = Object.freeze(/* @__PURE__ */ Object.create(null)),
|
|
10468
|
+
var ll, Lr, eo, Nr, jr, to, Ur, ro, Br, no, Dr, io, $r, oo, Fr, so, xt, ao, ze, Us, cl, ul, hl, dl, fl, pl, ml, gl, bl, yl, Wr, vl, wl, _l, kl, xl, Sl, ih = Je(() => {
|
|
10469
|
+
le(), ue(), ce(), _u(), Uu(), Yu(), nl(), ll = Object.freeze(/* @__PURE__ */ Object.create(null)), Lr = {}, eo = !1, Nr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, jr = {}, to = !1, Ur = {}, ro = !1, Br = {}, no = !1, Dr = {}, io = !1, $r = {}, oo = !1, Fr = {}, so = !1, xt = {}, ao = !1, ze = th(), ze.parse, ze.resolve, ze.resolveObject, ze.format, ze.Url, Us = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, ze.URL = typeof URL < "u" ? URL : null, ze.pathToFileURL = al, ze.fileURLToPath = sl, cl = ze.Url, ul = ze.format, hl = ze.resolve, dl = ze.resolveObject, fl = ze.parse, pl = ze.URL, ml = 92, gl = 47, bl = 97, yl = 122, Wr = Us === "win32", vl = /\//g, wl = /%/g, _l = /\\/g, kl = /\n/g, xl = /\r/g, Sl = /\t/g;
|
|
10470
10470
|
}), oh = pe((s, 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
|
};
|
|
10474
10474
|
}), So = pe((s) => {
|
|
10475
10475
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.BufferedDuplex = void 0, s.writev = r;
|
|
10476
|
-
var e =
|
|
10476
|
+
var e = jt(), t = (Fe(), Me($e));
|
|
10477
10477
|
function r(n, i) {
|
|
10478
10478
|
let a = new Array(n.length);
|
|
10479
10479
|
for (let l = 0; l < n.length; l++) typeof n[l].chunk == "string" ? a[l] = t.Buffer.from(n[l].chunk, "utf8") : a[l] = n[l].chunk;
|
|
@@ -10515,13 +10515,13 @@ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, $r, so, xt, ao, We,
|
|
|
10515
10515
|
}
|
|
10516
10516
|
};
|
|
10517
10517
|
s.BufferedDuplex = o;
|
|
10518
|
-
}),
|
|
10518
|
+
}), pr = pe((s) => {
|
|
10519
10519
|
le(), ue(), ce();
|
|
10520
10520
|
var e = s && s.__importDefault || function(w) {
|
|
10521
10521
|
return w && w.__esModule ? w : { default: w };
|
|
10522
10522
|
};
|
|
10523
10523
|
Object.defineProperty(s, "__esModule", { value: !0 }), s.streamBuilder = s.browserStreamBuilder = void 0;
|
|
10524
|
-
var t = (
|
|
10524
|
+
var t = (Fe(), Me($e)), r = e(oh()), o = e(pt()), n = jt(), i = e(Qr()), a = So(), 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)), _;
|
|
@@ -10610,12 +10610,12 @@ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, $r, so, xt, ao, We,
|
|
|
10610
10610
|
};
|
|
10611
10611
|
s.browserStreamBuilder = y;
|
|
10612
10612
|
}), Eo = {};
|
|
10613
|
-
|
|
10614
|
-
function
|
|
10613
|
+
zt(Eo, { Server: () => je, Socket: () => je, Stream: () => je, _createServerHandle: () => je, _normalizeArgs: () => je, _setSimultaneousAccepts: () => je, connect: () => je, createConnection: () => je, createServer: () => je, default: () => El, isIP: () => je, isIPv4: () => je, isIPv6: () => je });
|
|
10614
|
+
function je() {
|
|
10615
10615
|
throw new Error("Node.js net module is not supported by JSPM core outside of Node.js");
|
|
10616
10616
|
}
|
|
10617
10617
|
var El, Al = Je(() => {
|
|
10618
|
-
le(), ue(), ce(), El = { _createServerHandle:
|
|
10618
|
+
le(), ue(), ce(), El = { _createServerHandle: je, _normalizeArgs: je, _setSimultaneousAccepts: je, connect: je, createConnection: je, createServer: je, isIP: je, isIPv4: je, isIPv6: je, Server: je, Socket: je, Stream: je };
|
|
10619
10619
|
}), Il = pe((s, e) => {
|
|
10620
10620
|
le(), ue(), ce(), e.exports = {};
|
|
10621
10621
|
}), Bs = pe((s) => {
|
|
@@ -10631,7 +10631,7 @@ var El, Al = Je(() => {
|
|
|
10631
10631
|
};
|
|
10632
10632
|
s.default = i;
|
|
10633
10633
|
}), Tl = {};
|
|
10634
|
-
|
|
10634
|
+
zt(Tl, { default: () => Cl });
|
|
10635
10635
|
var Cl, sh = Je(() => {
|
|
10636
10636
|
le(), ue(), ce(), Cl = {};
|
|
10637
10637
|
}), Ds = pe((s) => {
|
|
@@ -10663,7 +10663,7 @@ var Cl, sh = Je(() => {
|
|
|
10663
10663
|
s.default = l;
|
|
10664
10664
|
}), $s = pe((s) => {
|
|
10665
10665
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
10666
|
-
var e = (
|
|
10666
|
+
var e = (Fe(), Me($e)), t = jt(), r = So(), o, n, i;
|
|
10667
10667
|
function a() {
|
|
10668
10668
|
let p = new t.Transform();
|
|
10669
10669
|
return p._write = (b, d, g) => {
|
|
@@ -10718,7 +10718,7 @@ var Cl, sh = Je(() => {
|
|
|
10718
10718
|
s.default = h;
|
|
10719
10719
|
}), Fs = pe((s) => {
|
|
10720
10720
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
10721
|
-
var e = (
|
|
10721
|
+
var e = (Fe(), Me($e)), t = jt(), r = So(), o, n, i, a = !1;
|
|
10722
10722
|
function l() {
|
|
10723
10723
|
let b = new t.Transform();
|
|
10724
10724
|
return b._write = (d, g, y) => {
|
|
@@ -10777,7 +10777,7 @@ var Cl, sh = Je(() => {
|
|
|
10777
10777
|
return h && h.__esModule ? h : { default: h };
|
|
10778
10778
|
};
|
|
10779
10779
|
Object.defineProperty(s, "__esModule", { value: !0 }), s.connectAsync = u;
|
|
10780
|
-
var t = e(pt()), r = e((ih(), Me(il))), o = e(wi()), n = e(
|
|
10780
|
+
var t = e(pt()), r = e((ih(), Me(il))), o = e(wi()), n = e(Qr());
|
|
10781
10781
|
typeof Le?.nextTick != "function" && (Le.nextTick = setImmediate);
|
|
10782
10782
|
var i = (0, t.default)("mqttjs"), a = null;
|
|
10783
10783
|
function l(h) {
|
|
@@ -10811,7 +10811,7 @@ var Cl, sh = Je(() => {
|
|
|
10811
10811
|
throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`);
|
|
10812
10812
|
}
|
|
10813
10813
|
} else throw new Error("Missing secure protocol key");
|
|
10814
|
-
if (a || (a = {}, !n.default && !p.forceNativeWebSocket ? (a.ws =
|
|
10814
|
+
if (a || (a = {}, !n.default && !p.forceNativeWebSocket ? (a.ws = pr().streamBuilder, a.wss = pr().streamBuilder, a.mqtt = Bs().default, a.tcp = Bs().default, a.ssl = Ds().default, a.tls = a.ssl, a.mqtts = Ds().default) : (a.ws = pr().browserStreamBuilder, a.wss = pr().browserStreamBuilder, a.wx = $s().default, a.wxs = $s().default, a.ali = Fs().default, a.alis = Fs().default)), !a[p.protocol]) {
|
|
10815
10815
|
let g = ["mqtts", "wss"].indexOf(p.protocol) !== -1;
|
|
10816
10816
|
p.protocol = ["mqtt", "mqtts", "ws", "wss", "wx", "wxs", "ali", "alis"].filter((y, w) => g && w % 2 === 0 ? !1 : typeof a[y] == "function")[0];
|
|
10817
10817
|
}
|
|
@@ -10894,8 +10894,8 @@ var Cl, sh = Je(() => {
|
|
|
10894
10894
|
return u.connectAsync;
|
|
10895
10895
|
} });
|
|
10896
10896
|
var h = n(Xa());
|
|
10897
|
-
s.KeepaliveManager = h.default, s.Client = i.default, o(wi(), s), o(
|
|
10898
|
-
var p =
|
|
10897
|
+
s.KeepaliveManager = h.default, s.Client = i.default, o(wi(), s), o(Kt(), s), o(Ia(), s);
|
|
10898
|
+
var p = Yr();
|
|
10899
10899
|
Object.defineProperty(s, "ReasonCodes", { enumerable: !0, get: function() {
|
|
10900
10900
|
return p.ReasonCodes;
|
|
10901
10901
|
} });
|
|
@@ -12021,12 +12021,30 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12021
12021
|
title: "Other Income",
|
|
12022
12022
|
fields: [
|
|
12023
12023
|
{ id: "dividend", type: "number", label: "Dividend Income", currency: "₹", min: 0 },
|
|
12024
|
-
{ id: "anyOtherIncome", type: "number", label: "Any Other Income", currency: "₹", min: 0 }
|
|
12024
|
+
{ id: "anyOtherIncome", type: "number", label: "Any Other Income", currency: "₹", min: 0 },
|
|
12025
|
+
{ id: "familyPension", type: "number", label: "Family Pension", currency: "₹", min: 0 }
|
|
12025
12026
|
]
|
|
12026
12027
|
}
|
|
12027
12028
|
],
|
|
12028
12029
|
submitLabel: "Save"
|
|
12029
12030
|
}, Ph = {
|
|
12031
|
+
id: "crypto-income",
|
|
12032
|
+
title: "Crypto Income",
|
|
12033
|
+
icon: "🪙",
|
|
12034
|
+
fields: [
|
|
12035
|
+
{
|
|
12036
|
+
id: "cryptoGroup",
|
|
12037
|
+
type: "group",
|
|
12038
|
+
title: "Virtual Digital Assets",
|
|
12039
|
+
hint: "Gains from crypto / VDAs are taxed at a flat 30%",
|
|
12040
|
+
fields: [
|
|
12041
|
+
{ id: "cryptoSellPrice", type: "number", label: "Total Sale Value", currency: "₹", min: 0 },
|
|
12042
|
+
{ id: "cryptoPurchasePrice", type: "number", label: "Total Cost of Acquisition", currency: "₹", min: 0 }
|
|
12043
|
+
]
|
|
12044
|
+
}
|
|
12045
|
+
],
|
|
12046
|
+
submitLabel: "Save"
|
|
12047
|
+
}, Mh = {
|
|
12030
12048
|
id: "business-profession",
|
|
12031
12049
|
title: "Business / Profession",
|
|
12032
12050
|
icon: "💼",
|
|
@@ -12066,7 +12084,7 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12066
12084
|
}
|
|
12067
12085
|
],
|
|
12068
12086
|
submitLabel: "Save"
|
|
12069
|
-
},
|
|
12087
|
+
}, Rh = {
|
|
12070
12088
|
id: "bank-details",
|
|
12071
12089
|
title: "Personal / Bank Details",
|
|
12072
12090
|
icon: "🏦",
|
|
@@ -12101,14 +12119,14 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12101
12119
|
// },
|
|
12102
12120
|
],
|
|
12103
12121
|
submitLabel: "Save"
|
|
12104
|
-
},
|
|
12122
|
+
}, Lh = [
|
|
12105
12123
|
Ch,
|
|
12106
|
-
|
|
12124
|
+
Mh,
|
|
12107
12125
|
Oh,
|
|
12108
|
-
|
|
12126
|
+
Ph,
|
|
12127
|
+
Rh
|
|
12109
12128
|
// Hidden for now — re-enable to restore the full set:
|
|
12110
12129
|
// capitalGains,
|
|
12111
|
-
// cryptoIncome,
|
|
12112
12130
|
// agriculturalIncome,
|
|
12113
12131
|
// exemptIncome,
|
|
12114
12132
|
// houseProperty,
|
|
@@ -12116,9 +12134,9 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12116
12134
|
// taxPaidTds,
|
|
12117
12135
|
// haveAQuestion,
|
|
12118
12136
|
];
|
|
12119
|
-
function
|
|
12137
|
+
function Nh(s, e) {
|
|
12120
12138
|
const t = s || {}, r = {
|
|
12121
|
-
userId:
|
|
12139
|
+
userId: Yt(e.userId),
|
|
12122
12140
|
assessmentYear: e.assessmentYear,
|
|
12123
12141
|
isRevised: e.isRevised || "N"
|
|
12124
12142
|
};
|
|
@@ -12139,9 +12157,9 @@ function Lh(s, e) {
|
|
|
12139
12157
|
amount: Ie(t.immovableAssetCost)
|
|
12140
12158
|
};
|
|
12141
12159
|
Object.values(a).some((u) => u !== void 0) && (r.immovableAsset = [a]);
|
|
12142
|
-
const l = nn(t.hpDetails,
|
|
12160
|
+
const l = nn(t.hpDetails, jh);
|
|
12143
12161
|
l.length && (r.hpDetails = l);
|
|
12144
|
-
const c = nn(t.salaryDetails,
|
|
12162
|
+
const c = nn(t.salaryDetails, Uh);
|
|
12145
12163
|
if (c.length) {
|
|
12146
12164
|
r.salaryIncome = c;
|
|
12147
12165
|
const u = nn(t.salaryDetails, (p) => ({
|
|
@@ -12152,15 +12170,15 @@ function Lh(s, e) {
|
|
|
12152
12170
|
const h = Ml(t.salaryDetails)[0] ?? {};
|
|
12153
12171
|
r.hraAmount = Ie(h.hraReceived), r.leaveTravelAllowanceAmount = Ie(h.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = Ie(h.leaveEncashment), r.anyOtherAllowanceAmount = Ie(h.anyOtherAllowance), r.salaryIncomeFlag = !0;
|
|
12154
12172
|
}
|
|
12155
|
-
return
|
|
12173
|
+
return zr(r);
|
|
12156
12174
|
}
|
|
12157
|
-
function
|
|
12175
|
+
function jh(s) {
|
|
12158
12176
|
const e = {
|
|
12159
12177
|
loanType: "HOME_LOAN",
|
|
12160
12178
|
loanTakenFrom: Pe(s.loanTakenFrom),
|
|
12161
12179
|
bankOrInstituteName: Pe(s.lenderName),
|
|
12162
12180
|
loanAccountNo: Pe(s.loanAccountNumber),
|
|
12163
|
-
loanSanctionDate:
|
|
12181
|
+
loanSanctionDate: Hh(s.sanctionDate),
|
|
12164
12182
|
totalLoanAmount: Ie(s.totalLoanAmount),
|
|
12165
12183
|
interest: Ie(s.homeLoanInterest)
|
|
12166
12184
|
}, t = Object.entries(e).some(([r, o]) => r !== "loanType" && o !== void 0);
|
|
@@ -12181,7 +12199,7 @@ function Nh(s) {
|
|
|
12181
12199
|
loanDetails: t ? [e] : void 0
|
|
12182
12200
|
};
|
|
12183
12201
|
}
|
|
12184
|
-
function
|
|
12202
|
+
function Uh(s) {
|
|
12185
12203
|
return {
|
|
12186
12204
|
grossSalaryIncome: Ie(s.grossSalary),
|
|
12187
12205
|
salary: Ie(s.basicSalary),
|
|
@@ -12197,7 +12215,7 @@ function jh(s) {
|
|
|
12197
12215
|
}
|
|
12198
12216
|
};
|
|
12199
12217
|
}
|
|
12200
|
-
function
|
|
12218
|
+
function Bh(s, e) {
|
|
12201
12219
|
const t = [];
|
|
12202
12220
|
for (const r of s) {
|
|
12203
12221
|
const o = Pe(r.employerName), n = Pe(r.employerTan), i = Ie(r.grossSalary), a = Ie(r.basicSalary), l = Ie(r.totalTdsDeposited);
|
|
@@ -12210,32 +12228,42 @@ function Uh(s, e) {
|
|
|
12210
12228
|
});
|
|
12211
12229
|
}
|
|
12212
12230
|
return t.length ? {
|
|
12213
|
-
userId:
|
|
12231
|
+
userId: Yt(e.userId),
|
|
12214
12232
|
assessmentYear: e.assessmentYear,
|
|
12215
12233
|
forceUpdate: !0,
|
|
12216
12234
|
salary: t
|
|
12217
12235
|
} : null;
|
|
12218
12236
|
}
|
|
12219
|
-
function
|
|
12237
|
+
function Dh(s, e) {
|
|
12220
12238
|
const t = Pe(s.aadhaarNumber), r = Pe(s.bankAccountNumber), o = Pe(s.bankIfscCode);
|
|
12221
12239
|
return t === void 0 && r === void 0 && o === void 0 ? null : {
|
|
12222
|
-
userId:
|
|
12240
|
+
userId: Yt(e.userId),
|
|
12223
12241
|
assessmentYear: e.assessmentYear,
|
|
12224
12242
|
aadhaarNumber: t ?? "",
|
|
12225
12243
|
bankDetails: [{ bankAccountNumber: r, bankIfscCode: o }]
|
|
12226
12244
|
};
|
|
12227
12245
|
}
|
|
12228
|
-
function
|
|
12246
|
+
function $h(s, e) {
|
|
12229
12247
|
return {
|
|
12230
|
-
userId:
|
|
12248
|
+
userId: Yt(e.userId),
|
|
12231
12249
|
assessmentYear: e.assessmentYear,
|
|
12232
12250
|
savingBankInterest: Ie(s.savingBankInterest) ?? 0,
|
|
12233
12251
|
fdInterest: Ie(s.fdInterest) ?? 0,
|
|
12234
12252
|
dividend: Ie(s.dividend) ?? 0,
|
|
12235
|
-
anyOtherIncome: Ie(s.anyOtherIncome) ?? 0
|
|
12253
|
+
anyOtherIncome: Ie(s.anyOtherIncome) ?? 0,
|
|
12254
|
+
familyPension: Ie(s.familyPension) ?? 0
|
|
12236
12255
|
};
|
|
12237
12256
|
}
|
|
12238
|
-
function
|
|
12257
|
+
function Fh(s, e) {
|
|
12258
|
+
const t = Ie(s.cryptoSellPrice), r = Ie(s.cryptoPurchasePrice);
|
|
12259
|
+
return t === void 0 && r === void 0 ? null : {
|
|
12260
|
+
userId: Yt(e.userId),
|
|
12261
|
+
assessmentYear: e.assessmentYear,
|
|
12262
|
+
vdaPurchaseCost: r ?? 0,
|
|
12263
|
+
vdaSellCost: t ?? 0
|
|
12264
|
+
};
|
|
12265
|
+
}
|
|
12266
|
+
function qh(s, e) {
|
|
12239
12267
|
const t = (o, n, i, a) => {
|
|
12240
12268
|
const l = Pe(s[o]), c = Pe(s[n]), u = Ie(s[i]), h = Ie(s[a]);
|
|
12241
12269
|
return l === void 0 && c === void 0 && u === void 0 && h === void 0 ? null : {
|
|
@@ -12249,12 +12277,12 @@ function $h(s, e) {
|
|
|
12249
12277
|
t("profName", "profNature", "profReceiptsBank", "profReceiptsCash")
|
|
12250
12278
|
].filter((o) => o !== null);
|
|
12251
12279
|
return r.length ? {
|
|
12252
|
-
userId:
|
|
12280
|
+
userId: Yt(e.userId),
|
|
12253
12281
|
assessmentYear: e.assessmentYear,
|
|
12254
12282
|
presumptiveIncome: r
|
|
12255
12283
|
} : null;
|
|
12256
12284
|
}
|
|
12257
|
-
function
|
|
12285
|
+
function Yt(s) {
|
|
12258
12286
|
if (s === void 0 || s === "") return;
|
|
12259
12287
|
const e = Number(s);
|
|
12260
12288
|
return Number.isFinite(e) && String(e) === String(s) ? e : s;
|
|
@@ -12272,7 +12300,7 @@ function Pe(s) {
|
|
|
12272
12300
|
function lo(s) {
|
|
12273
12301
|
return s === !0 || s === !1 ? s : void 0;
|
|
12274
12302
|
}
|
|
12275
|
-
function
|
|
12303
|
+
function Hh(s) {
|
|
12276
12304
|
const e = Pe(s);
|
|
12277
12305
|
if (e)
|
|
12278
12306
|
return e.includes("T") ? e : /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00Z` : e;
|
|
@@ -12281,85 +12309,85 @@ function Ml(s) {
|
|
|
12281
12309
|
return Array.isArray(s) ? s.filter((e) => e && typeof e == "object") : [];
|
|
12282
12310
|
}
|
|
12283
12311
|
function nn(s, e) {
|
|
12284
|
-
return Ml(s).map((t) =>
|
|
12312
|
+
return Ml(s).map((t) => zr(e(t))).filter((t) => t !== void 0);
|
|
12285
12313
|
}
|
|
12286
|
-
function
|
|
12314
|
+
function zr(s) {
|
|
12287
12315
|
if (Array.isArray(s)) {
|
|
12288
|
-
const e = s.map(
|
|
12316
|
+
const e = s.map(zr).filter((t) => t !== void 0);
|
|
12289
12317
|
return e.length ? e : void 0;
|
|
12290
12318
|
}
|
|
12291
12319
|
if (s && typeof s == "object") {
|
|
12292
12320
|
const e = {};
|
|
12293
12321
|
for (const [t, r] of Object.entries(s)) {
|
|
12294
|
-
const o =
|
|
12322
|
+
const o = zr(r);
|
|
12295
12323
|
o !== void 0 && (e[t] = o);
|
|
12296
12324
|
}
|
|
12297
12325
|
return Object.keys(e).length ? e : void 0;
|
|
12298
12326
|
}
|
|
12299
12327
|
return s;
|
|
12300
12328
|
}
|
|
12301
|
-
function
|
|
12302
|
-
const e = s && typeof s == "object" ? s : {}, t = {}, r =
|
|
12303
|
-
r.length && (t.salaryDetails = r.map((
|
|
12304
|
-
const
|
|
12329
|
+
function Wh(s) {
|
|
12330
|
+
const e = s && typeof s == "object" ? s : {}, t = {}, r = De(e.employers), o = De(e.taxPaid?.onSalary);
|
|
12331
|
+
r.length && (t.salaryDetails = r.map((h) => {
|
|
12332
|
+
const p = on(h.salary), b = on(h.perquisites), d = on(h.profitsInLieuOfSalaryType), g = p + b + d, y = Vh(h.allowance);
|
|
12305
12333
|
return {
|
|
12306
|
-
employerName: Re(
|
|
12307
|
-
employerTan: Re(
|
|
12308
|
-
basicSalary:
|
|
12334
|
+
employerName: Re(h.employerName),
|
|
12335
|
+
employerTan: Re(h.employerTAN),
|
|
12336
|
+
basicSalary: p || void 0,
|
|
12309
12337
|
// salaryBreakup.salary
|
|
12310
|
-
grossSalary:
|
|
12311
|
-
hraReceived:
|
|
12312
|
-
leaveTravelAllowance:
|
|
12313
|
-
leaveEncashment:
|
|
12314
|
-
anyOtherAllowance:
|
|
12315
|
-
totalTdsDeposited:
|
|
12338
|
+
grossSalary: g || void 0,
|
|
12339
|
+
hraReceived: y.hra,
|
|
12340
|
+
leaveTravelAllowance: y.lta,
|
|
12341
|
+
leaveEncashment: y.leaveEncashment,
|
|
12342
|
+
anyOtherAllowance: y.other,
|
|
12343
|
+
totalTdsDeposited: zh(h, o, r) ?? Ne(h.totalTdsDeposited)
|
|
12316
12344
|
};
|
|
12317
12345
|
}));
|
|
12318
|
-
const n =
|
|
12319
|
-
n.length && (t.hpDetails = n.map((
|
|
12320
|
-
const
|
|
12346
|
+
const n = De(e.houseProperties);
|
|
12347
|
+
n.length && (t.hpDetails = n.map((h) => {
|
|
12348
|
+
const p = De(h.loanDetails), b = p.length ? p[0] : void 0, d = Ne(h.grossAnnualRentReceived), g = p.length ? p.reduce((x, v) => x + (Ne(v.interest) ?? 0), 0) : void 0, y = De(h.tenant), w = De(h.coOwners), m = y[0], _ = w[0];
|
|
12321
12349
|
return {
|
|
12322
|
-
typeOfHouseProperty: Re(
|
|
12323
|
-
loanTakenFrom: Re(
|
|
12324
|
-
lenderName: Re(
|
|
12325
|
-
loanAccountNumber: Re(
|
|
12326
|
-
sanctionDate: Re(
|
|
12327
|
-
totalLoanAmount:
|
|
12328
|
-
outstandingAmount:
|
|
12329
|
-
homeLoanInterest:
|
|
12350
|
+
typeOfHouseProperty: Re(h.propertyType),
|
|
12351
|
+
loanTakenFrom: Re(b?.loanTakenFrom),
|
|
12352
|
+
lenderName: Re(b?.bankOrInstituteName),
|
|
12353
|
+
loanAccountNumber: Re(b?.loanAccountNo),
|
|
12354
|
+
sanctionDate: Re(b?.loanSanctionDate),
|
|
12355
|
+
totalLoanAmount: Ne(b?.totalLoanAmount),
|
|
12356
|
+
outstandingAmount: Ne(b?.loanOutstandingAmount),
|
|
12357
|
+
homeLoanInterest: g,
|
|
12330
12358
|
homeLoanPrinciple: void 0,
|
|
12331
|
-
housePropertyAddress: Re(
|
|
12332
|
-
housePropertyPincode: Re(
|
|
12333
|
-
rentalIncome:
|
|
12334
|
-
nameOfTenant: Re(
|
|
12335
|
-
propertyTax:
|
|
12336
|
-
hasCoOwnedProperty:
|
|
12337
|
-
coOwnerName: Re(
|
|
12338
|
-
coOwnerPan: Re(
|
|
12339
|
-
coOwnerShare:
|
|
12359
|
+
housePropertyAddress: Re(h.address),
|
|
12360
|
+
housePropertyPincode: Re(h.pinCode),
|
|
12361
|
+
rentalIncome: d,
|
|
12362
|
+
nameOfTenant: Re(m?.name),
|
|
12363
|
+
propertyTax: Ne(h.propertyTax),
|
|
12364
|
+
hasCoOwnedProperty: w.length > 0,
|
|
12365
|
+
coOwnerName: Re(_?.name),
|
|
12366
|
+
coOwnerPan: Re(_?.panNumber),
|
|
12367
|
+
coOwnerShare: Ne(_?.share)?.toString()
|
|
12340
12368
|
};
|
|
12341
|
-
})), t.us80cAmount =
|
|
12342
|
-
|
|
12369
|
+
})), t.us80cAmount = Tt(De(e.deductionUS80CDetails).map((h) => Ne(h.amount))), t.us80dForSelfAndFamilyAmount = Tt(
|
|
12370
|
+
De(e.deductionUS80DDetails).map((h) => Ne(h.healthInsuranceAmount))
|
|
12343
12371
|
);
|
|
12344
|
-
const i =
|
|
12345
|
-
t.savingBankInterest = a("SAVING_INTEREST"), t.fdInterest = a("FD_RD_INTEREST"), t.anyOtherIncome = a("ANY_OTHER"), t.dividend =
|
|
12372
|
+
const i = De(e.incomes), a = (h) => Tt(i.filter((p) => Re(p.incomeType) === h).map((p) => Ne(p.amount)));
|
|
12373
|
+
t.savingBankInterest = a("SAVING_INTEREST"), t.fdInterest = a("FD_RD_INTEREST"), t.anyOtherIncome = a("ANY_OTHER"), t.familyPension = a("FAMILY_PENSION"), t.dividend = Tt(De(e.dividendIncomes).map((h) => Ne(h.income)));
|
|
12346
12374
|
const l = e.business;
|
|
12347
12375
|
if (l) {
|
|
12348
|
-
const
|
|
12349
|
-
const
|
|
12350
|
-
return
|
|
12351
|
-
},
|
|
12352
|
-
if (!
|
|
12353
|
-
const
|
|
12354
|
-
t[
|
|
12376
|
+
const h = De(l.presumptiveIncomes), p = (g) => {
|
|
12377
|
+
const y = De(g.incomes), w = (m) => Ne(y.find((_) => Re(_.incomeType) === m)?.receipts) ?? 0;
|
|
12378
|
+
return w("ANY_OTHER") > 0 ? !0 : w("BANK") > 0 || w("CASH") > 0 ? !1 : !!Re(g.businessType)?.toUpperCase().includes("PROFESSION");
|
|
12379
|
+
}, b = (g) => h.find((y) => p(y) === g), d = (g, y) => {
|
|
12380
|
+
if (!g) return;
|
|
12381
|
+
const w = De(g.incomes), m = (x) => Ne(w.find((v) => Re(v.incomeType) === x)?.receipts), _ = m("BANK") || m("ANY_OTHER");
|
|
12382
|
+
t[y.name] = Re(g.businessType), t[y.nature] = Re(g.natureOfBusiness), t[y.bank] = _ || void 0, t[y.cash] = m("CASH") || void 0, t[y.net] = Tt(w.map((x) => Ne(x.presumptiveIncome))) || void 0;
|
|
12355
12383
|
};
|
|
12356
|
-
b(
|
|
12384
|
+
d(b(!1), {
|
|
12357
12385
|
name: "bizName",
|
|
12358
12386
|
nature: "bizNature",
|
|
12359
12387
|
bank: "bizReceiptsBank",
|
|
12360
12388
|
cash: "bizReceiptsCash",
|
|
12361
12389
|
net: "bizNetProfit"
|
|
12362
|
-
}), b(
|
|
12390
|
+
}), d(b(!0), {
|
|
12363
12391
|
name: "profName",
|
|
12364
12392
|
nature: "profNature",
|
|
12365
12393
|
bank: "profReceiptsBank",
|
|
@@ -12367,34 +12395,35 @@ function qh(s) {
|
|
|
12367
12395
|
net: "profNetProfit"
|
|
12368
12396
|
});
|
|
12369
12397
|
}
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12398
|
+
const c = De(e.capitalGain).filter((h) => Re(h.assetType)?.toUpperCase() === "VDA").flatMap((h) => De(h.assetDetails));
|
|
12399
|
+
c.length && (t.cryptoSellPrice = Tt(c.map((h) => Ne(h.sellValue))), t.cryptoPurchasePrice = Tt(c.map((h) => Ne(h.purchaseCost)))), t.agricultureIncome = Ne(e.agriculturalDetails?.income), t.aadhaarNumber = Re(e.aadharNumber);
|
|
12400
|
+
const u = De(e.bankDetails)[0];
|
|
12401
|
+
return u && (t.bankAccountNumber = Re(u.accountNumber), t.bankIfscCode = Re(u.ifsCode)), Rl(t);
|
|
12373
12402
|
}
|
|
12374
12403
|
function on(s) {
|
|
12375
|
-
return
|
|
12404
|
+
return De(s).reduce((e, t) => e + (Ne(t.taxableAmount) ?? 0), 0);
|
|
12376
12405
|
}
|
|
12377
|
-
function
|
|
12406
|
+
function zh(s, e, t) {
|
|
12378
12407
|
if (!e.length) return;
|
|
12379
12408
|
const r = Re(s.employerTAN)?.trim().toUpperCase();
|
|
12380
12409
|
if (r) {
|
|
12381
12410
|
for (const n of e)
|
|
12382
|
-
if (Re(n.deductorTAN)?.trim().toUpperCase() === r) return
|
|
12411
|
+
if (Re(n.deductorTAN)?.trim().toUpperCase() === r) return Ne(n.totalTdsDeposited);
|
|
12383
12412
|
}
|
|
12384
12413
|
const o = Re(s.employerName)?.trim().toLowerCase();
|
|
12385
12414
|
if (o) {
|
|
12386
12415
|
for (const n of e)
|
|
12387
|
-
if (Re(n.deductorName)?.trim().toLowerCase() === o) return
|
|
12416
|
+
if (Re(n.deductorName)?.trim().toLowerCase() === o) return Ne(n.totalTdsDeposited);
|
|
12388
12417
|
}
|
|
12389
12418
|
if (t.length === 1 && e.length === 1)
|
|
12390
|
-
return
|
|
12419
|
+
return Ne(e[0].totalTdsDeposited);
|
|
12391
12420
|
}
|
|
12392
|
-
function
|
|
12393
|
-
const e =
|
|
12421
|
+
function Vh(s) {
|
|
12422
|
+
const e = De(s);
|
|
12394
12423
|
if (!e.length) return {};
|
|
12395
12424
|
let t, r, o, n;
|
|
12396
12425
|
for (const i of e) {
|
|
12397
|
-
const a =
|
|
12426
|
+
const a = Ne(i.exemptAmount) ?? Ne(i.allowanceAmount);
|
|
12398
12427
|
switch (Re(i.allowanceType)?.toUpperCase()) {
|
|
12399
12428
|
case "HRA":
|
|
12400
12429
|
case "HOUSE_RENT_ALLOWANCE":
|
|
@@ -12408,21 +12437,21 @@ function Wh(s) {
|
|
|
12408
12437
|
o = a;
|
|
12409
12438
|
break;
|
|
12410
12439
|
default:
|
|
12411
|
-
n = (n ?? 0) + (
|
|
12440
|
+
n = (n ?? 0) + (Ne(i.allowanceAmount) ?? 0);
|
|
12412
12441
|
}
|
|
12413
12442
|
}
|
|
12414
12443
|
return { hra: t, lta: r, leaveEncashment: o, other: n };
|
|
12415
12444
|
}
|
|
12416
|
-
function
|
|
12445
|
+
function Tt(s) {
|
|
12417
12446
|
let e = 0, t = !1;
|
|
12418
12447
|
for (const r of s)
|
|
12419
12448
|
r != null && (e += r, t = !0);
|
|
12420
12449
|
return t ? e : void 0;
|
|
12421
12450
|
}
|
|
12422
|
-
function
|
|
12451
|
+
function De(s) {
|
|
12423
12452
|
return Array.isArray(s) ? s.filter((e) => e && typeof e == "object") : [];
|
|
12424
12453
|
}
|
|
12425
|
-
function
|
|
12454
|
+
function Ne(s) {
|
|
12426
12455
|
if (typeof s == "number" && Number.isFinite(s)) return s;
|
|
12427
12456
|
if (typeof s == "string" && s.trim() !== "" && Number.isFinite(Number(s))) return Number(s);
|
|
12428
12457
|
}
|
|
@@ -12444,23 +12473,23 @@ function sn() {
|
|
|
12444
12473
|
return console.warn(
|
|
12445
12474
|
"[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
|
|
12446
12475
|
), null;
|
|
12447
|
-
const t = s.__aikaara_descriptor__ ?? {}, r =
|
|
12476
|
+
const t = s.__aikaara_descriptor__ ?? {}, r = ed(t);
|
|
12448
12477
|
if (!r)
|
|
12449
12478
|
return console.warn(
|
|
12450
12479
|
"[smart-edit] API disabled: could not resolve a TaxBuddy API host from the descriptor (cloud / upload / pan / leader endpoints)."
|
|
12451
12480
|
), null;
|
|
12452
|
-
const o =
|
|
12481
|
+
const o = td(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", i = e.getChatJwt, a = async () => n || await i(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : nd(e.identity)) || void 0;
|
|
12453
12482
|
return console.info("[smart-edit] API config — base:", r, "· userId:", l ?? "(none)"), {
|
|
12454
12483
|
baseUrl: r,
|
|
12455
12484
|
getToken: a,
|
|
12456
|
-
headers:
|
|
12457
|
-
assessmentYear: t.itr?.assessmentYear ||
|
|
12485
|
+
headers: rd(t.auth?.headers),
|
|
12486
|
+
assessmentYear: t.itr?.assessmentYear || id(),
|
|
12458
12487
|
isRevised: "N",
|
|
12459
12488
|
userId: l,
|
|
12460
12489
|
submitUrl: t.itr?.automationSubmitUrl || void 0
|
|
12461
12490
|
};
|
|
12462
12491
|
}
|
|
12463
|
-
async function
|
|
12492
|
+
async function Kh(s) {
|
|
12464
12493
|
const e = await s.getToken(), t = s.userId;
|
|
12465
12494
|
if (!t)
|
|
12466
12495
|
throw new Error(
|
|
@@ -12478,11 +12507,11 @@ async function zh(s) {
|
|
|
12478
12507
|
const o = await r.text().catch(() => "");
|
|
12479
12508
|
throw new Error(`[smart-edit] GET /itr/latest-itr → ${r.status} ${o.slice(0, 200)}`);
|
|
12480
12509
|
}
|
|
12481
|
-
return
|
|
12510
|
+
return Wh(Ao(await r.json().catch(() => ({}))));
|
|
12482
12511
|
}
|
|
12483
|
-
async function
|
|
12512
|
+
async function Gh(s, e) {
|
|
12484
12513
|
const t = await s.getToken(), r = s.userId, o = {
|
|
12485
|
-
...
|
|
12514
|
+
...Nh(e, {
|
|
12486
12515
|
userId: r,
|
|
12487
12516
|
assessmentYear: s.assessmentYear,
|
|
12488
12517
|
isRevised: s.isRevised
|
|
@@ -12506,19 +12535,22 @@ async function Vh(s, e) {
|
|
|
12506
12535
|
}
|
|
12507
12536
|
return Ao(await a.json().catch(() => ({})));
|
|
12508
12537
|
}
|
|
12509
|
-
async function Kh(s, e) {
|
|
12510
|
-
return Qr(s, `${s.baseUrl}/itr/v1/automation/salary`, e);
|
|
12511
|
-
}
|
|
12512
|
-
async function Gh(s, e) {
|
|
12513
|
-
return Qr(s, `${s.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
|
|
12514
|
-
}
|
|
12515
12538
|
async function Yh(s, e) {
|
|
12516
|
-
return
|
|
12539
|
+
return ur(s, `${s.baseUrl}/itr/v1/automation/salary`, e);
|
|
12517
12540
|
}
|
|
12518
12541
|
async function Jh(s, e) {
|
|
12519
|
-
return
|
|
12542
|
+
return ur(s, `${s.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
|
|
12543
|
+
}
|
|
12544
|
+
async function Qh(s, e) {
|
|
12545
|
+
return ur(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
|
|
12520
12546
|
}
|
|
12521
|
-
async function
|
|
12547
|
+
async function Xh(s, e) {
|
|
12548
|
+
return ur(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
|
|
12549
|
+
}
|
|
12550
|
+
async function Zh(s, e) {
|
|
12551
|
+
return ur(s, `${s.baseUrl}/itr/v1/automation/vda`, e);
|
|
12552
|
+
}
|
|
12553
|
+
async function ur(s, e, t) {
|
|
12522
12554
|
const o = {
|
|
12523
12555
|
accept: "application/json",
|
|
12524
12556
|
"content-type": "application/json",
|
|
@@ -12533,7 +12565,7 @@ async function Qr(s, e, t) {
|
|
|
12533
12565
|
}
|
|
12534
12566
|
return Ao(await n.json().catch(() => ({})));
|
|
12535
12567
|
}
|
|
12536
|
-
function
|
|
12568
|
+
function ed(s) {
|
|
12537
12569
|
const e = [
|
|
12538
12570
|
s.cloud?.listEndpoint,
|
|
12539
12571
|
s.cloud?.downloadEndpoint,
|
|
@@ -12551,7 +12583,7 @@ function Qh(s) {
|
|
|
12551
12583
|
}
|
|
12552
12584
|
return null;
|
|
12553
12585
|
}
|
|
12554
|
-
function
|
|
12586
|
+
function td(s) {
|
|
12555
12587
|
if (!s || typeof localStorage > "u") return null;
|
|
12556
12588
|
try {
|
|
12557
12589
|
const e = localStorage.getItem(`aikaara_sso:${s}`);
|
|
@@ -12562,7 +12594,7 @@ function Xh(s) {
|
|
|
12562
12594
|
return null;
|
|
12563
12595
|
}
|
|
12564
12596
|
}
|
|
12565
|
-
function
|
|
12597
|
+
function rd(s) {
|
|
12566
12598
|
const e = {};
|
|
12567
12599
|
if (!s) return e;
|
|
12568
12600
|
const t = /^(authorization|content-type|accept)$/i;
|
|
@@ -12570,7 +12602,7 @@ function Zh(s) {
|
|
|
12570
12602
|
!t.test(r) && typeof o == "string" && (e[r] = o);
|
|
12571
12603
|
return e;
|
|
12572
12604
|
}
|
|
12573
|
-
function
|
|
12605
|
+
function nd(s) {
|
|
12574
12606
|
if (!s) return;
|
|
12575
12607
|
const e = s.userId ?? s.id ?? s.ext_uid ?? s.extUid;
|
|
12576
12608
|
return e == null || e === "" ? void 0 : String(e);
|
|
@@ -12582,11 +12614,11 @@ function Ao(s) {
|
|
|
12582
12614
|
}
|
|
12583
12615
|
return {};
|
|
12584
12616
|
}
|
|
12585
|
-
function
|
|
12617
|
+
function id() {
|
|
12586
12618
|
const s = /* @__PURE__ */ new Date(), e = s.getMonth() >= 3 ? s.getFullYear() : s.getFullYear() - 1;
|
|
12587
12619
|
return `${e}-${e + 1}`;
|
|
12588
12620
|
}
|
|
12589
|
-
class
|
|
12621
|
+
class od {
|
|
12590
12622
|
client;
|
|
12591
12623
|
panel;
|
|
12592
12624
|
bubble;
|
|
@@ -12725,11 +12757,11 @@ class rd {
|
|
|
12725
12757
|
*/
|
|
12726
12758
|
async openSmartEdit() {
|
|
12727
12759
|
const e = this.ensureSmartEditModal();
|
|
12728
|
-
e.open({ schemas:
|
|
12760
|
+
e.open({ schemas: Lh, data: {} });
|
|
12729
12761
|
const t = sn();
|
|
12730
12762
|
if (!(!t || !t.baseUrl))
|
|
12731
12763
|
try {
|
|
12732
|
-
const r = await
|
|
12764
|
+
const r = await Kh(t);
|
|
12733
12765
|
e.setData(r);
|
|
12734
12766
|
} catch (r) {
|
|
12735
12767
|
console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
|
|
@@ -12762,16 +12794,19 @@ class rd {
|
|
|
12762
12794
|
const o = { userId: r.userId, assessmentYear: r.assessmentYear };
|
|
12763
12795
|
try {
|
|
12764
12796
|
if (e === "salary-hra") {
|
|
12765
|
-
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], i =
|
|
12766
|
-
i && await
|
|
12797
|
+
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], i = Bh(n, o);
|
|
12798
|
+
i && await Yh(r, i);
|
|
12767
12799
|
} else if (e === "bank-details") {
|
|
12768
|
-
const n =
|
|
12769
|
-
n && await
|
|
12800
|
+
const n = Dh(t, o);
|
|
12801
|
+
n && await Jh(r, n);
|
|
12770
12802
|
} else if (e === "other-sources")
|
|
12771
|
-
await
|
|
12803
|
+
await Qh(r, $h(t, o));
|
|
12772
12804
|
else if (e === "business-profession") {
|
|
12773
|
-
const n =
|
|
12774
|
-
n && await
|
|
12805
|
+
const n = qh(t, o);
|
|
12806
|
+
n && await Xh(r, n);
|
|
12807
|
+
} else if (e === "crypto-income") {
|
|
12808
|
+
const n = Fh(t, o);
|
|
12809
|
+
n && await Zh(r, n);
|
|
12775
12810
|
}
|
|
12776
12811
|
} catch (n) {
|
|
12777
12812
|
console.warn("[smart-edit] section save failed", e, n), this.errorBanner.show("Failed to save. Please try again.", 4e3);
|
|
@@ -12791,7 +12826,7 @@ class rd {
|
|
|
12791
12826
|
return;
|
|
12792
12827
|
}
|
|
12793
12828
|
try {
|
|
12794
|
-
await
|
|
12829
|
+
await Gh(t, e);
|
|
12795
12830
|
} catch (r) {
|
|
12796
12831
|
console.warn("[smart-edit] save failed", r), this.errorBanner.show(
|
|
12797
12832
|
"Failed to save your ITR details. Please try again.",
|
|
@@ -12807,7 +12842,7 @@ class rd {
|
|
|
12807
12842
|
}, 200)));
|
|
12808
12843
|
}
|
|
12809
12844
|
}
|
|
12810
|
-
class
|
|
12845
|
+
class sd extends HTMLElement {
|
|
12811
12846
|
shadow;
|
|
12812
12847
|
controller = null;
|
|
12813
12848
|
_config = {};
|
|
@@ -13076,7 +13111,7 @@ class nd extends HTMLElement {
|
|
|
13076
13111
|
}
|
|
13077
13112
|
async initController() {
|
|
13078
13113
|
const e = this.getConfig(), t = e.transport ?? "aikaara";
|
|
13079
|
-
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new
|
|
13114
|
+
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new od(e, this.shadow, {
|
|
13080
13115
|
uploadAdapter: this._config.uploadAdapter,
|
|
13081
13116
|
historyAdapter: this._config.historyAdapter
|
|
13082
13117
|
}), await this.controller.connect());
|
|
@@ -13096,7 +13131,7 @@ class nd extends HTMLElement {
|
|
|
13096
13131
|
}
|
|
13097
13132
|
}
|
|
13098
13133
|
}
|
|
13099
|
-
class
|
|
13134
|
+
class ad extends HTMLElement {
|
|
13100
13135
|
shadow;
|
|
13101
13136
|
constructor() {
|
|
13102
13137
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -13149,12 +13184,12 @@ class id extends HTMLElement {
|
|
|
13149
13184
|
t && (t.innerHTML = e);
|
|
13150
13185
|
}
|
|
13151
13186
|
}
|
|
13152
|
-
const
|
|
13187
|
+
const ld = [
|
|
13153
13188
|
{ id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
|
|
13154
13189
|
];
|
|
13155
|
-
class
|
|
13190
|
+
class cd extends HTMLElement {
|
|
13156
13191
|
shadow;
|
|
13157
|
-
actions =
|
|
13192
|
+
actions = ld;
|
|
13158
13193
|
menuOpen = !1;
|
|
13159
13194
|
outsideClickHandler = null;
|
|
13160
13195
|
static get observedAttributes() {
|
|
@@ -13380,7 +13415,7 @@ class sd extends HTMLElement {
|
|
|
13380
13415
|
this.setAttribute("status", e);
|
|
13381
13416
|
}
|
|
13382
13417
|
}
|
|
13383
|
-
const
|
|
13418
|
+
const ud = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, hd = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, dd = {
|
|
13384
13419
|
""": '"',
|
|
13385
13420
|
"'": "'",
|
|
13386
13421
|
"<": "<",
|
|
@@ -13388,14 +13423,14 @@ const ad = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
|
|
|
13388
13423
|
"&": "&",
|
|
13389
13424
|
" ": " "
|
|
13390
13425
|
};
|
|
13391
|
-
function
|
|
13392
|
-
return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) =>
|
|
13426
|
+
function fd(s) {
|
|
13427
|
+
return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => dd[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, "&");
|
|
13393
13428
|
}
|
|
13394
|
-
function
|
|
13395
|
-
if (
|
|
13429
|
+
function qt(s) {
|
|
13430
|
+
if (ud.test(s))
|
|
13396
13431
|
return s;
|
|
13397
|
-
const e =
|
|
13398
|
-
let t =
|
|
13432
|
+
const e = hd.test(s) ? fd(s) : s;
|
|
13433
|
+
let t = pd(e);
|
|
13399
13434
|
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(
|
|
13400
13435
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
13401
13436
|
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
@@ -13407,7 +13442,7 @@ function Ft(s) {
|
|
|
13407
13442
|
}
|
|
13408
13443
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
13409
13444
|
}
|
|
13410
|
-
function
|
|
13445
|
+
function pd(s) {
|
|
13411
13446
|
const e = {
|
|
13412
13447
|
"&": "&",
|
|
13413
13448
|
"<": "<",
|
|
@@ -13417,7 +13452,7 @@ function hd(s) {
|
|
|
13417
13452
|
};
|
|
13418
13453
|
return s.replace(/[&<>"']/g, (t) => e[t]);
|
|
13419
13454
|
}
|
|
13420
|
-
const
|
|
13455
|
+
const md = /* @__PURE__ */ new Set([
|
|
13421
13456
|
"p",
|
|
13422
13457
|
"br",
|
|
13423
13458
|
"hr",
|
|
@@ -13452,7 +13487,7 @@ const dd = /* @__PURE__ */ new Set([
|
|
|
13452
13487
|
"tr",
|
|
13453
13488
|
"th",
|
|
13454
13489
|
"td"
|
|
13455
|
-
]),
|
|
13490
|
+
]), gd = {
|
|
13456
13491
|
a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
|
|
13457
13492
|
img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
|
|
13458
13493
|
code: /* @__PURE__ */ new Set(["class"]),
|
|
@@ -13460,7 +13495,7 @@ const dd = /* @__PURE__ */ new Set([
|
|
|
13460
13495
|
span: /* @__PURE__ */ new Set(["class"]),
|
|
13461
13496
|
div: /* @__PURE__ */ new Set(["class"])
|
|
13462
13497
|
};
|
|
13463
|
-
function
|
|
13498
|
+
function Ht(s) {
|
|
13464
13499
|
const e = document.createElement("template");
|
|
13465
13500
|
return e.innerHTML = s, Ll(e.content), e.innerHTML;
|
|
13466
13501
|
}
|
|
@@ -13469,12 +13504,12 @@ function Ll(s) {
|
|
|
13469
13504
|
for (const t of e)
|
|
13470
13505
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
13471
13506
|
const r = t, o = r.tagName.toLowerCase();
|
|
13472
|
-
if (!
|
|
13507
|
+
if (!md.has(o)) {
|
|
13473
13508
|
const a = document.createTextNode(r.textContent || "");
|
|
13474
13509
|
s.replaceChild(a, t);
|
|
13475
13510
|
continue;
|
|
13476
13511
|
}
|
|
13477
|
-
const n =
|
|
13512
|
+
const n = gd[o] || /* @__PURE__ */ new Set(), i = Array.from(r.attributes);
|
|
13478
13513
|
for (const a of i)
|
|
13479
13514
|
n.has(a.name) || r.removeAttribute(a.name);
|
|
13480
13515
|
if (r.hasAttribute("href")) {
|
|
@@ -13484,7 +13519,7 @@ function Ll(s) {
|
|
|
13484
13519
|
Ll(t);
|
|
13485
13520
|
}
|
|
13486
13521
|
}
|
|
13487
|
-
function
|
|
13522
|
+
function bd(s, e = {}) {
|
|
13488
13523
|
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), a = window.open(
|
|
13489
13524
|
s,
|
|
13490
13525
|
"aikaara_popup",
|
|
@@ -13502,7 +13537,7 @@ function pd(s, e = {}) {
|
|
|
13502
13537
|
}, 500);
|
|
13503
13538
|
return a;
|
|
13504
13539
|
}
|
|
13505
|
-
function
|
|
13540
|
+
function yd(s) {
|
|
13506
13541
|
const e = Date.now() - s.getTime(), t = Math.round(e / 1e3);
|
|
13507
13542
|
if (t < 5) return "just now";
|
|
13508
13543
|
if (t < 60) return `${t}s ago`;
|
|
@@ -13513,7 +13548,7 @@ function md(s) {
|
|
|
13513
13548
|
const n = Math.round(o / 24);
|
|
13514
13549
|
return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : s.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
|
|
13515
13550
|
}
|
|
13516
|
-
class
|
|
13551
|
+
class vd extends HTMLElement {
|
|
13517
13552
|
shadow;
|
|
13518
13553
|
container;
|
|
13519
13554
|
welcomeMessage = "";
|
|
@@ -13741,7 +13776,7 @@ class gd extends HTMLElement {
|
|
|
13741
13776
|
renderMessages(e) {
|
|
13742
13777
|
if (!this.container) return;
|
|
13743
13778
|
if (this.container.innerHTML = "", e.length === 0 && this.welcomeMessage) {
|
|
13744
|
-
this.container.innerHTML = `<div class="welcome">${qt(
|
|
13779
|
+
this.container.innerHTML = `<div class="welcome">${Ht(qt(this.welcomeMessage))}</div>`;
|
|
13745
13780
|
return;
|
|
13746
13781
|
}
|
|
13747
13782
|
const t = this.computeConsumedIds(e);
|
|
@@ -13766,7 +13801,7 @@ class gd extends HTMLElement {
|
|
|
13766
13801
|
if (n.role === "user") {
|
|
13767
13802
|
const i = n.metadata?.attributes?.action;
|
|
13768
13803
|
if (i) {
|
|
13769
|
-
const a =
|
|
13804
|
+
const a = wd(i);
|
|
13770
13805
|
if (i.message_id && t.set(i.message_id, a), Object.keys(a).length > 0)
|
|
13771
13806
|
for (let l = o - 1; l >= 0; l--) {
|
|
13772
13807
|
const c = e[l];
|
|
@@ -13791,7 +13826,7 @@ class gd extends HTMLElement {
|
|
|
13791
13826
|
}
|
|
13792
13827
|
updateStreamingContent(e) {
|
|
13793
13828
|
const t = this.container.querySelector('[data-streaming="true"] .bubble');
|
|
13794
|
-
t && (t.innerHTML = qt(
|
|
13829
|
+
t && (t.innerHTML = Ht(qt(e)), t.classList.add("streaming-cursor"), this.scrollToBottom());
|
|
13795
13830
|
}
|
|
13796
13831
|
finalizeStreaming() {
|
|
13797
13832
|
const e = this.container.querySelector('[data-streaming="true"]');
|
|
@@ -13820,7 +13855,7 @@ class gd extends HTMLElement {
|
|
|
13820
13855
|
const o = document.createElement("div");
|
|
13821
13856
|
o.classList.add("bubble", e.role);
|
|
13822
13857
|
const i = !!e.template?.contentType && e.role !== "user";
|
|
13823
|
-
e.role === "user" ? !!e.attachments?.length && !e.content?.trim() ? o.classList.add("attachment-only") : o.textContent = e.content : i ? e.content && (o.innerHTML = qt(
|
|
13858
|
+
e.role === "user" ? !!e.attachments?.length && !e.content?.trim() ? o.classList.add("attachment-only") : o.textContent = e.content : i ? e.content && (o.innerHTML = Ht(qt(e.content))) : (o.innerHTML = Ht(qt(e.content || "")), e.status === "streaming" && o.classList.add("streaming-cursor"));
|
|
13824
13859
|
let a = null;
|
|
13825
13860
|
if (e.template?.contentType) {
|
|
13826
13861
|
const h = document.createElement("aikaara-template-renderer");
|
|
@@ -13904,7 +13939,7 @@ class gd extends HTMLElement {
|
|
|
13904
13939
|
case "date":
|
|
13905
13940
|
return r;
|
|
13906
13941
|
case "relative":
|
|
13907
|
-
return
|
|
13942
|
+
return yd(t);
|
|
13908
13943
|
case "time-24":
|
|
13909
13944
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
13910
13945
|
case "time-seconds":
|
|
@@ -13930,7 +13965,7 @@ class gd extends HTMLElement {
|
|
|
13930
13965
|
return;
|
|
13931
13966
|
}
|
|
13932
13967
|
if (o === "popup") {
|
|
13933
|
-
|
|
13968
|
+
bd(e);
|
|
13934
13969
|
return;
|
|
13935
13970
|
}
|
|
13936
13971
|
const n = this.getOrCreateModal(), i = r?.title ?? t ?? "Link";
|
|
@@ -13938,7 +13973,7 @@ class gd extends HTMLElement {
|
|
|
13938
13973
|
requestAnimationFrame(() => n.show?.(e, i));
|
|
13939
13974
|
return;
|
|
13940
13975
|
}
|
|
13941
|
-
const a =
|
|
13976
|
+
const a = _d(e), l = Nl(r.fetch.url, a), c = {
|
|
13942
13977
|
accept: "application/json",
|
|
13943
13978
|
...r.fetch.headers ?? {}
|
|
13944
13979
|
}, u = r.fetch.authHeader ?? "session";
|
|
@@ -13984,7 +14019,7 @@ class gd extends HTMLElement {
|
|
|
13984
14019
|
return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
|
|
13985
14020
|
}
|
|
13986
14021
|
}
|
|
13987
|
-
function
|
|
14022
|
+
function wd(s) {
|
|
13988
14023
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
|
|
13989
14024
|
for (const [r, o] of Object.entries(s))
|
|
13990
14025
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
@@ -13994,7 +14029,7 @@ function zs(s, e) {
|
|
|
13994
14029
|
const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
13995
14030
|
return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(s);
|
|
13996
14031
|
}
|
|
13997
|
-
function
|
|
14032
|
+
function _d(s) {
|
|
13998
14033
|
try {
|
|
13999
14034
|
const e = new URL(s), t = {};
|
|
14000
14035
|
return e.searchParams.forEach((r, o) => {
|
|
@@ -14017,7 +14052,7 @@ function co(s, e) {
|
|
|
14017
14052
|
}
|
|
14018
14053
|
return s;
|
|
14019
14054
|
}
|
|
14020
|
-
class
|
|
14055
|
+
class kd extends HTMLElement {
|
|
14021
14056
|
shadow;
|
|
14022
14057
|
templatePayload = null;
|
|
14023
14058
|
attachments = [];
|
|
@@ -14040,7 +14075,7 @@ class vd extends HTMLElement {
|
|
|
14040
14075
|
this.attachments = e, this.render();
|
|
14041
14076
|
}
|
|
14042
14077
|
render() {
|
|
14043
|
-
const e = this.getAttribute("role") || "user", t = this.getAttribute("content") || "", r = this.getAttribute("timestamp") || "", o = this.getAttribute("status") || "", n = this.getAttribute("content-type") || "", i = this.getAttribute("template-id") || "", a = this.getAttribute("inner-message") || "", l = e === "user" ? document.createTextNode(t).textContent || "" : qt(
|
|
14078
|
+
const e = this.getAttribute("role") || "user", t = this.getAttribute("content") || "", r = this.getAttribute("timestamp") || "", o = this.getAttribute("status") || "", n = this.getAttribute("content-type") || "", i = this.getAttribute("template-id") || "", a = this.getAttribute("inner-message") || "", l = e === "user" ? document.createTextNode(t).textContent || "" : Ht(qt(t)), c = e === "user" && o, u = o === "sending" ? "○" : o === "sent" ? "✓" : o === "delivered" || o === "read" ? "✓✓" : "";
|
|
14044
14079
|
this.shadow.innerHTML = `
|
|
14045
14080
|
<style>
|
|
14046
14081
|
:host { display: flex; flex-direction: column; }
|
|
@@ -14133,7 +14168,7 @@ class vd extends HTMLElement {
|
|
|
14133
14168
|
renderAttachments() {
|
|
14134
14169
|
return this.attachments.length ? `<div class="attachments">${this.attachments.map(
|
|
14135
14170
|
(t) => `<a class="attachment" href="${Vs(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
|
|
14136
|
-
📎 ${
|
|
14171
|
+
📎 ${xd(t.fileName)}
|
|
14137
14172
|
</a>`
|
|
14138
14173
|
).join("")}</div>` : "";
|
|
14139
14174
|
}
|
|
@@ -14141,10 +14176,10 @@ class vd extends HTMLElement {
|
|
|
14141
14176
|
function Vs(s) {
|
|
14142
14177
|
return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14143
14178
|
}
|
|
14144
|
-
function
|
|
14179
|
+
function xd(s) {
|
|
14145
14180
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14146
14181
|
}
|
|
14147
|
-
class
|
|
14182
|
+
class Sd extends HTMLElement {
|
|
14148
14183
|
shadow;
|
|
14149
14184
|
textarea;
|
|
14150
14185
|
sendBtn;
|
|
@@ -14295,7 +14330,7 @@ class _d extends HTMLElement {
|
|
|
14295
14330
|
this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, 120) + "px";
|
|
14296
14331
|
}
|
|
14297
14332
|
}
|
|
14298
|
-
class
|
|
14333
|
+
class Ed extends HTMLElement {
|
|
14299
14334
|
shadow;
|
|
14300
14335
|
constructor() {
|
|
14301
14336
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -14344,7 +14379,7 @@ class kd extends HTMLElement {
|
|
|
14344
14379
|
this.removeAttribute("visible");
|
|
14345
14380
|
}
|
|
14346
14381
|
}
|
|
14347
|
-
class
|
|
14382
|
+
class Ad extends HTMLElement {
|
|
14348
14383
|
shadow;
|
|
14349
14384
|
bubble;
|
|
14350
14385
|
constructor() {
|
|
@@ -14403,13 +14438,13 @@ class xd extends HTMLElement {
|
|
|
14403
14438
|
`, this.bubble = this.shadow.querySelector(".bubble");
|
|
14404
14439
|
}
|
|
14405
14440
|
updateContent(e) {
|
|
14406
|
-
this.bubble && (this.bubble.innerHTML = qt(
|
|
14441
|
+
this.bubble && (this.bubble.innerHTML = Ht(qt(e)), this.bubble.classList.add("cursor"));
|
|
14407
14442
|
}
|
|
14408
14443
|
finalize() {
|
|
14409
14444
|
this.bubble?.classList.remove("cursor");
|
|
14410
14445
|
}
|
|
14411
14446
|
}
|
|
14412
|
-
class
|
|
14447
|
+
class Id extends HTMLElement {
|
|
14413
14448
|
shadow;
|
|
14414
14449
|
container;
|
|
14415
14450
|
dismissTimer = null;
|
|
@@ -14482,7 +14517,7 @@ function jl(s) {
|
|
|
14482
14517
|
});
|
|
14483
14518
|
return an.set(s, t), t;
|
|
14484
14519
|
}
|
|
14485
|
-
function
|
|
14520
|
+
function Td(s, e = 5e3) {
|
|
14486
14521
|
return new Promise((t, r) => {
|
|
14487
14522
|
const o = setTimeout(() => r(new Error(`Custom element <${s}> not registered within ${e}ms`)), e);
|
|
14488
14523
|
customElements.whenDefined(s).then(() => {
|
|
@@ -14490,14 +14525,14 @@ function Ed(s, e = 5e3) {
|
|
|
14490
14525
|
});
|
|
14491
14526
|
});
|
|
14492
14527
|
}
|
|
14493
|
-
const
|
|
14528
|
+
const Cd = {
|
|
14494
14529
|
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-CL4O6gbc.mjs").then(({ registerAikaaraPaymentLink: s }) => s())
|
|
14495
14530
|
};
|
|
14496
|
-
function
|
|
14531
|
+
function Od(s) {
|
|
14497
14532
|
const e = `template:${s}`, t = window.__aikaara_descriptor__?.components?.[e];
|
|
14498
14533
|
return t && t.kind === "iife-element" ? { render: t.tag, scriptUrl: t.scriptUrl, props: t.props } : window.__aikaara_descriptor__?.templates?.[s];
|
|
14499
14534
|
}
|
|
14500
|
-
class
|
|
14535
|
+
class Pd extends HTMLElement {
|
|
14501
14536
|
shadow;
|
|
14502
14537
|
payloadData = null;
|
|
14503
14538
|
innerMessage = "";
|
|
@@ -14521,7 +14556,7 @@ class Td extends HTMLElement {
|
|
|
14521
14556
|
this.render(), this.addEventListener("template-action", (e) => {
|
|
14522
14557
|
const t = e.detail, r = this.getAttribute("message-id");
|
|
14523
14558
|
if (r && t?.attributes?.action) {
|
|
14524
|
-
const o =
|
|
14559
|
+
const o = Ld(t.attributes.action);
|
|
14525
14560
|
if (Object.keys(o).length > 0)
|
|
14526
14561
|
try {
|
|
14527
14562
|
localStorage.setItem(`aikaara_form:${r}`, JSON.stringify(o));
|
|
@@ -14597,8 +14632,8 @@ class Td extends HTMLElement {
|
|
|
14597
14632
|
<slot></slot>
|
|
14598
14633
|
`; this.firstChild; ) this.removeChild(this.firstChild);
|
|
14599
14634
|
if (!e) return;
|
|
14600
|
-
const r = t ?
|
|
14601
|
-
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) && jl(r.scriptUrl).then(() =>
|
|
14635
|
+
const r = t ? Od(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Cd[o];
|
|
14636
|
+
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) && jl(r.scriptUrl).then(() => Td(o)).then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, i)), customElements.get(o)) {
|
|
14602
14637
|
const i = document.createElement(o);
|
|
14603
14638
|
if (r?.props) {
|
|
14604
14639
|
for (const [a, l] of Object.entries(r.props))
|
|
@@ -14685,7 +14720,7 @@ class Td extends HTMLElement {
|
|
|
14685
14720
|
*/
|
|
14686
14721
|
mountLinkButton(e) {
|
|
14687
14722
|
const t = this.renderGen;
|
|
14688
|
-
import("./AikaaraLinkButton-
|
|
14723
|
+
import("./AikaaraLinkButton-DsJc3CEK.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
14689
14724
|
if (t !== this.renderGen) return;
|
|
14690
14725
|
r();
|
|
14691
14726
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -14694,7 +14729,7 @@ class Td extends HTMLElement {
|
|
|
14694
14729
|
url: e.url ?? "",
|
|
14695
14730
|
openLinkInNewTab: e.openLinkInNewTab,
|
|
14696
14731
|
orderId: e.orderId,
|
|
14697
|
-
extra:
|
|
14732
|
+
extra: Rd(e),
|
|
14698
14733
|
messageId: this.getAttribute("message-id") ?? void 0
|
|
14699
14734
|
}), this.appendChild(n);
|
|
14700
14735
|
});
|
|
@@ -14704,26 +14739,26 @@ class Td extends HTMLElement {
|
|
|
14704
14739
|
t.setPayload(e), this.appendChild(t);
|
|
14705
14740
|
}
|
|
14706
14741
|
}
|
|
14707
|
-
const
|
|
14742
|
+
const Md = /* @__PURE__ */ new Set([
|
|
14708
14743
|
"type",
|
|
14709
14744
|
"url",
|
|
14710
14745
|
"name",
|
|
14711
14746
|
"openLinkInNewTab",
|
|
14712
14747
|
"orderId"
|
|
14713
14748
|
]);
|
|
14714
|
-
function
|
|
14749
|
+
function Rd(s) {
|
|
14715
14750
|
const e = {};
|
|
14716
14751
|
for (const [t, r] of Object.entries(s))
|
|
14717
|
-
|
|
14752
|
+
Md.has(t) || (e[t] = r);
|
|
14718
14753
|
return e;
|
|
14719
14754
|
}
|
|
14720
|
-
function
|
|
14755
|
+
function Ld(s) {
|
|
14721
14756
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType", "serviceType"]), t = {};
|
|
14722
14757
|
for (const [r, o] of Object.entries(s))
|
|
14723
14758
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
14724
14759
|
return t;
|
|
14725
14760
|
}
|
|
14726
|
-
class
|
|
14761
|
+
class Nd extends HTMLElement {
|
|
14727
14762
|
shadow;
|
|
14728
14763
|
static get observedAttributes() {
|
|
14729
14764
|
return ["text", "subtext"];
|
|
@@ -14772,7 +14807,7 @@ class Md extends HTMLElement {
|
|
|
14772
14807
|
function Ks(s) {
|
|
14773
14808
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14774
14809
|
}
|
|
14775
|
-
class
|
|
14810
|
+
class jd extends HTMLElement {
|
|
14776
14811
|
shadow;
|
|
14777
14812
|
data = null;
|
|
14778
14813
|
selected = /* @__PURE__ */ new Set();
|
|
@@ -14864,7 +14899,7 @@ class Rd extends HTMLElement {
|
|
|
14864
14899
|
<path d="M3 8 L7 12 L13 4" />
|
|
14865
14900
|
</svg>
|
|
14866
14901
|
</span>
|
|
14867
|
-
<span class="text">${
|
|
14902
|
+
<span class="text">${Ct(e)}</span>
|
|
14868
14903
|
</div>
|
|
14869
14904
|
`, !this.preSelectedDisabled) {
|
|
14870
14905
|
const c = this.shadow.querySelector(".row");
|
|
@@ -14919,8 +14954,8 @@ class Rd extends HTMLElement {
|
|
|
14919
14954
|
.row[aria-checked="true"] .dot { opacity: 1; transform: scale(1); }
|
|
14920
14955
|
.label { flex: 1; }
|
|
14921
14956
|
</style>
|
|
14922
|
-
${e ? `<div class="title">${
|
|
14923
|
-
<div class="list" role="radiogroup" aria-label="${
|
|
14957
|
+
${e ? `<div class="title">${Ct(e)}</div>` : ""}
|
|
14958
|
+
<div class="list" role="radiogroup" aria-label="${Ct(e ?? this.data.name)}">
|
|
14924
14959
|
${t.map((a) => {
|
|
14925
14960
|
const l = this.selected.has(a.value);
|
|
14926
14961
|
return `
|
|
@@ -14928,7 +14963,7 @@ class Rd extends HTMLElement {
|
|
|
14928
14963
|
aria-checked="${l}" aria-disabled="${this.preSelectedDisabled}"
|
|
14929
14964
|
data-value="${ln(a.value)}">
|
|
14930
14965
|
<span class="circle" aria-hidden="true"><span class="dot"></span></span>
|
|
14931
|
-
<span class="label">${
|
|
14966
|
+
<span class="label">${Ct(a.label)}</span>
|
|
14932
14967
|
</div>`;
|
|
14933
14968
|
}).join("")}
|
|
14934
14969
|
</div>
|
|
@@ -14973,8 +15008,8 @@ class Rd extends HTMLElement {
|
|
|
14973
15008
|
border-color: var(--aikaara-option-selected-border, var(--aikaara-primary, #6366f1));
|
|
14974
15009
|
}
|
|
14975
15010
|
</style>
|
|
14976
|
-
${e ? `<div class="title">${
|
|
14977
|
-
<div class="grid" role="${o ? "group" : "radiogroup"}" aria-label="${
|
|
15011
|
+
${e ? `<div class="title">${Ct(e)}</div>` : ""}
|
|
15012
|
+
<div class="grid" role="${o ? "group" : "radiogroup"}" aria-label="${Ct(e ?? this.data.name)}">
|
|
14978
15013
|
${t.map(
|
|
14979
15014
|
(i) => `
|
|
14980
15015
|
<button class="opt" type="button"
|
|
@@ -14982,7 +15017,7 @@ class Rd extends HTMLElement {
|
|
|
14982
15017
|
role="${o ? "checkbox" : "radio"}"
|
|
14983
15018
|
aria-pressed="${this.selected.has(i.value)}"
|
|
14984
15019
|
${this.preSelectedDisabled ? 'disabled aria-disabled="true"' : ""}>
|
|
14985
|
-
${
|
|
15020
|
+
${Ct(i.label)}
|
|
14986
15021
|
</button>`
|
|
14987
15022
|
).join("")}
|
|
14988
15023
|
</div>
|
|
@@ -14991,13 +15026,13 @@ class Rd extends HTMLElement {
|
|
|
14991
15026
|
});
|
|
14992
15027
|
}
|
|
14993
15028
|
}
|
|
14994
|
-
function
|
|
15029
|
+
function Ct(s) {
|
|
14995
15030
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14996
15031
|
}
|
|
14997
15032
|
function ln(s) {
|
|
14998
15033
|
return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14999
15034
|
}
|
|
15000
|
-
class
|
|
15035
|
+
class Ud extends HTMLElement {
|
|
15001
15036
|
shadow;
|
|
15002
15037
|
data = null;
|
|
15003
15038
|
constructor() {
|
|
@@ -15066,14 +15101,14 @@ class Ld extends HTMLElement {
|
|
|
15066
15101
|
button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
|
|
15067
15102
|
button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
|
|
15068
15103
|
</style>
|
|
15069
|
-
<button type="button">${
|
|
15104
|
+
<button type="button">${Bd(e)}</button>
|
|
15070
15105
|
`, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
|
|
15071
15106
|
}
|
|
15072
15107
|
}
|
|
15073
|
-
function
|
|
15108
|
+
function Bd(s) {
|
|
15074
15109
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15075
15110
|
}
|
|
15076
|
-
class
|
|
15111
|
+
class Dd extends HTMLElement {
|
|
15077
15112
|
shadow;
|
|
15078
15113
|
data = null;
|
|
15079
15114
|
dismissed = !1;
|
|
@@ -15165,7 +15200,7 @@ class jd extends HTMLElement {
|
|
|
15165
15200
|
function cn(s) {
|
|
15166
15201
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15167
15202
|
}
|
|
15168
|
-
class
|
|
15203
|
+
class $d extends HTMLElement {
|
|
15169
15204
|
shadow;
|
|
15170
15205
|
data = null;
|
|
15171
15206
|
_value = "";
|
|
@@ -15248,15 +15283,15 @@ class Ud extends HTMLElement {
|
|
|
15248
15283
|
}
|
|
15249
15284
|
:host([data-consumed]) input { pointer-events: none; opacity: 0.65; background: var(--aikaara-input-bg, #f9fafb); }
|
|
15250
15285
|
</style>
|
|
15251
|
-
<label>${
|
|
15286
|
+
<label>${er(e)}${o}</label>
|
|
15252
15287
|
<input
|
|
15253
15288
|
type="text"
|
|
15254
|
-
placeholder="${
|
|
15255
|
-
value="${
|
|
15256
|
-
aria-label="${
|
|
15289
|
+
placeholder="${er(t)}"
|
|
15290
|
+
value="${er(this._value)}"
|
|
15291
|
+
aria-label="${er(e)}"
|
|
15257
15292
|
aria-invalid="false"
|
|
15258
15293
|
/>
|
|
15259
|
-
<div class="error" role="alert">${
|
|
15294
|
+
<div class="error" role="alert">${er(this._error)}</div>
|
|
15260
15295
|
`;
|
|
15261
15296
|
const n = this.shadow.querySelector("input");
|
|
15262
15297
|
n.addEventListener("input", () => {
|
|
@@ -15266,13 +15301,13 @@ class Ud extends HTMLElement {
|
|
|
15266
15301
|
});
|
|
15267
15302
|
}
|
|
15268
15303
|
}
|
|
15269
|
-
function
|
|
15304
|
+
function er(s) {
|
|
15270
15305
|
return String(s).replace(
|
|
15271
15306
|
/[&<>"']/g,
|
|
15272
15307
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
15273
15308
|
);
|
|
15274
15309
|
}
|
|
15275
|
-
class
|
|
15310
|
+
class Fd extends HTMLElement {
|
|
15276
15311
|
static get observedAttributes() {
|
|
15277
15312
|
return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base", "api-key"];
|
|
15278
15313
|
}
|
|
@@ -15326,7 +15361,7 @@ class Bd extends HTMLElement {
|
|
|
15326
15361
|
const l = Object.keys(n).length > 0 ? n : void 0;
|
|
15327
15362
|
return this.mountInflight = (async () => {
|
|
15328
15363
|
try {
|
|
15329
|
-
this.mounted = await
|
|
15364
|
+
this.mounted = await xf({
|
|
15330
15365
|
container: this,
|
|
15331
15366
|
slug: e,
|
|
15332
15367
|
configBase: this.getAttribute("config-base") ?? void 0,
|
|
@@ -15355,7 +15390,7 @@ class Bd extends HTMLElement {
|
|
|
15355
15390
|
})(), this.mountInflight;
|
|
15356
15391
|
}
|
|
15357
15392
|
}
|
|
15358
|
-
class
|
|
15393
|
+
class qd extends HTMLElement {
|
|
15359
15394
|
shadow;
|
|
15360
15395
|
root = null;
|
|
15361
15396
|
iframe = null;
|
|
@@ -15472,7 +15507,7 @@ class Dd extends HTMLElement {
|
|
|
15472
15507
|
});
|
|
15473
15508
|
}
|
|
15474
15509
|
}
|
|
15475
|
-
const
|
|
15510
|
+
const Hd = [
|
|
15476
15511
|
{ label: "Self-filing guidance" },
|
|
15477
15512
|
{ label: "Smart tax suggestions" },
|
|
15478
15513
|
{ label: "Auto-fetch 26AS / AIS" },
|
|
@@ -15480,7 +15515,7 @@ const $d = [
|
|
|
15480
15515
|
{ label: "Dedicated tax expert" },
|
|
15481
15516
|
{ label: "End-to-end filing" },
|
|
15482
15517
|
{ label: "Document handling" }
|
|
15483
|
-
],
|
|
15518
|
+
], Wd = [
|
|
15484
15519
|
{
|
|
15485
15520
|
label: "DIY",
|
|
15486
15521
|
match: ["DIY", "DIY_SALARY"],
|
|
@@ -15503,11 +15538,11 @@ const $d = [
|
|
|
15503
15538
|
features: [!0, !0, !0, !0, !0, !0, !0]
|
|
15504
15539
|
}
|
|
15505
15540
|
];
|
|
15506
|
-
class
|
|
15541
|
+
class zd extends HTMLElement {
|
|
15507
15542
|
shadow;
|
|
15508
15543
|
data = null;
|
|
15509
|
-
columns =
|
|
15510
|
-
features =
|
|
15544
|
+
columns = Wd;
|
|
15545
|
+
features = Hd;
|
|
15511
15546
|
constructor() {
|
|
15512
15547
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
15513
15548
|
}
|
|
@@ -15640,7 +15675,7 @@ function un(s) {
|
|
|
15640
15675
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
15641
15676
|
);
|
|
15642
15677
|
}
|
|
15643
|
-
class
|
|
15678
|
+
class Vd extends HTMLElement {
|
|
15644
15679
|
shadow;
|
|
15645
15680
|
root = null;
|
|
15646
15681
|
schemas = [];
|
|
@@ -15731,7 +15766,7 @@ class Hd extends HTMLElement {
|
|
|
15731
15766
|
`;
|
|
15732
15767
|
const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
|
|
15733
15768
|
(i) => `
|
|
15734
|
-
<button class="chip" type="button" data-section-id="${
|
|
15769
|
+
<button class="chip" type="button" data-section-id="${Gd(i.id)}">
|
|
15735
15770
|
<span class="chip-icon">${i.icon ?? "📄"}</span>
|
|
15736
15771
|
<span class="chip-label">${Ys(i.title)}</span>
|
|
15737
15772
|
</button>`
|
|
@@ -15764,7 +15799,7 @@ class Hd extends HTMLElement {
|
|
|
15764
15799
|
e.classList.remove("view-picker"), e.classList.add("view-form");
|
|
15765
15800
|
const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
|
|
15766
15801
|
r.innerHTML = `
|
|
15767
|
-
<button class="icon-btn back-btn" type="button" aria-label="Back">${
|
|
15802
|
+
<button class="icon-btn back-btn" type="button" aria-label="Back">${Kd}</button>
|
|
15768
15803
|
<div class="modal-title">${Ys(t?.title ?? "Edit")}</div>
|
|
15769
15804
|
<button class="icon-btn close-btn" type="button" aria-label="Close">${Gs}</button>
|
|
15770
15805
|
`;
|
|
@@ -15940,14 +15975,14 @@ class Hd extends HTMLElement {
|
|
|
15940
15975
|
`;
|
|
15941
15976
|
}
|
|
15942
15977
|
}
|
|
15943
|
-
const Gs = '<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>',
|
|
15944
|
-
function
|
|
15978
|
+
const Gs = '<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>', Kd = '<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>';
|
|
15979
|
+
function Gd(s) {
|
|
15945
15980
|
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
15946
15981
|
}
|
|
15947
15982
|
function Ys(s) {
|
|
15948
15983
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
15949
15984
|
}
|
|
15950
|
-
class
|
|
15985
|
+
class Yd extends HTMLElement {
|
|
15951
15986
|
shadow;
|
|
15952
15987
|
schema = null;
|
|
15953
15988
|
value = {};
|
|
@@ -16403,34 +16438,34 @@ function wt(s) {
|
|
|
16403
16438
|
function Ge(s) {
|
|
16404
16439
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
16405
16440
|
}
|
|
16406
|
-
function
|
|
16441
|
+
function Jd() {
|
|
16407
16442
|
const s = [
|
|
16408
|
-
["aikaara-chat-widget",
|
|
16409
|
-
["aikaara-chat-bubble",
|
|
16410
|
-
["aikaara-chat-header",
|
|
16411
|
-
["aikaara-message-list",
|
|
16412
|
-
["aikaara-message-bubble",
|
|
16413
|
-
["aikaara-chat-input",
|
|
16414
|
-
["aikaara-typing-indicator",
|
|
16415
|
-
["aikaara-streaming-message",
|
|
16416
|
-
["aikaara-error-banner",
|
|
16417
|
-
["aikaara-template-renderer",
|
|
16418
|
-
["aikaara-system-pill",
|
|
16419
|
-
["aikaara-option-list",
|
|
16420
|
-
["aikaara-submit-action",
|
|
16421
|
-
["aikaara-modal-action",
|
|
16422
|
-
["aikaara-text-input",
|
|
16423
|
-
["aikaara-chat",
|
|
16424
|
-
["aikaara-link-modal",
|
|
16425
|
-
["aikaara-compare-plans",
|
|
16426
|
-
["aikaara-smart-edit-modal",
|
|
16427
|
-
["aikaara-schema-form",
|
|
16443
|
+
["aikaara-chat-widget", sd],
|
|
16444
|
+
["aikaara-chat-bubble", ad],
|
|
16445
|
+
["aikaara-chat-header", cd],
|
|
16446
|
+
["aikaara-message-list", vd],
|
|
16447
|
+
["aikaara-message-bubble", kd],
|
|
16448
|
+
["aikaara-chat-input", Sd],
|
|
16449
|
+
["aikaara-typing-indicator", Ed],
|
|
16450
|
+
["aikaara-streaming-message", Ad],
|
|
16451
|
+
["aikaara-error-banner", Id],
|
|
16452
|
+
["aikaara-template-renderer", Pd],
|
|
16453
|
+
["aikaara-system-pill", Nd],
|
|
16454
|
+
["aikaara-option-list", jd],
|
|
16455
|
+
["aikaara-submit-action", Ud],
|
|
16456
|
+
["aikaara-modal-action", Dd],
|
|
16457
|
+
["aikaara-text-input", $d],
|
|
16458
|
+
["aikaara-chat", Fd],
|
|
16459
|
+
["aikaara-link-modal", qd],
|
|
16460
|
+
["aikaara-compare-plans", zd],
|
|
16461
|
+
["aikaara-smart-edit-modal", Vd],
|
|
16462
|
+
["aikaara-schema-form", Yd]
|
|
16428
16463
|
];
|
|
16429
16464
|
for (const [e, t] of s)
|
|
16430
16465
|
customElements.get(e) || customElements.define(e, t);
|
|
16431
16466
|
}
|
|
16432
|
-
|
|
16433
|
-
function
|
|
16467
|
+
Jd();
|
|
16468
|
+
function mr(s, e, t = "") {
|
|
16434
16469
|
if (!e) return t;
|
|
16435
16470
|
const r = e.split(".");
|
|
16436
16471
|
let o = s;
|
|
@@ -16452,10 +16487,10 @@ function Js(s) {
|
|
|
16452
16487
|
return 0;
|
|
16453
16488
|
}
|
|
16454
16489
|
}
|
|
16455
|
-
async function
|
|
16490
|
+
async function Wt(s) {
|
|
16456
16491
|
return typeof s == "function" ? await s() : s;
|
|
16457
16492
|
}
|
|
16458
|
-
class
|
|
16493
|
+
class Qd {
|
|
16459
16494
|
constructor(e, t) {
|
|
16460
16495
|
this.descriptor = e, this.sessionToken = t;
|
|
16461
16496
|
}
|
|
@@ -16489,7 +16524,7 @@ class Gd {
|
|
|
16489
16524
|
}), this.inflight);
|
|
16490
16525
|
}
|
|
16491
16526
|
async fetchOnce() {
|
|
16492
|
-
const e = await
|
|
16527
|
+
const e = await Wt(this.sessionToken), t = this.descriptor.authHeader ?? "Authorization", r = this.descriptor.authHeaderTemplate ?? "Bearer {token}", o = {
|
|
16493
16528
|
accept: "application/json",
|
|
16494
16529
|
...this.descriptor.headers ?? {},
|
|
16495
16530
|
[t]: r.replace("{token}", e)
|
|
@@ -16500,16 +16535,16 @@ class Gd {
|
|
|
16500
16535
|
const w = await a.text().catch(() => "");
|
|
16501
16536
|
throw new Error(`Session auth failed: ${a.status} ${w.slice(0, 200)}`);
|
|
16502
16537
|
}
|
|
16503
|
-
const l = await a.json().catch(() => ({})), c =
|
|
16538
|
+
const l = await a.json().catch(() => ({})), c = mr(l, this.descriptor.tokenPath ?? "data.token"), u = this.descriptor.tokenStripPrefix, h = u ? c.replace(new RegExp(`^${u}`, "i"), "").trim() : c;
|
|
16504
16539
|
if (!h) throw new Error("Session auth response missing token");
|
|
16505
|
-
const p =
|
|
16540
|
+
const p = mr(l, this.descriptor.requestIdPath ?? "data.requestId"), b = this.cache?.requestId || p || "", d = mr(l, this.descriptor.fullNamePath ?? "data.fullName"), g = mr(l, this.descriptor.userPath ?? "data.userId"), y = Js(h) || Date.now() + 3600 * 1e3;
|
|
16506
16541
|
return this.cache = { token: h, requestId: b, fullName: d, userId: g, expiresAt: y }, this.cache;
|
|
16507
16542
|
}
|
|
16508
16543
|
}
|
|
16509
|
-
async function
|
|
16544
|
+
async function Xd(s) {
|
|
16510
16545
|
const e = {};
|
|
16511
16546
|
for (const t of s.spec) {
|
|
16512
|
-
const r = await
|
|
16547
|
+
const r = await Zd(t, s.providers);
|
|
16513
16548
|
if (r !== void 0 && r !== "")
|
|
16514
16549
|
e[t.name] = r;
|
|
16515
16550
|
else {
|
|
@@ -16522,19 +16557,19 @@ async function Yd(s) {
|
|
|
16522
16557
|
}
|
|
16523
16558
|
return e;
|
|
16524
16559
|
}
|
|
16525
|
-
async function
|
|
16560
|
+
async function Zd(s, e) {
|
|
16526
16561
|
const t = s.key ?? s.name;
|
|
16527
16562
|
switch (s.source) {
|
|
16528
16563
|
case "cookie":
|
|
16529
|
-
return
|
|
16564
|
+
return ef(t);
|
|
16530
16565
|
case "localStorage":
|
|
16531
|
-
return
|
|
16566
|
+
return gr(() => window.localStorage.getItem(t) ?? void 0);
|
|
16532
16567
|
case "sessionStorage":
|
|
16533
|
-
return
|
|
16568
|
+
return gr(() => window.sessionStorage.getItem(t) ?? void 0);
|
|
16534
16569
|
case "url_param":
|
|
16535
|
-
return
|
|
16570
|
+
return gr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
|
|
16536
16571
|
case "header_meta":
|
|
16537
|
-
return
|
|
16572
|
+
return gr(() => document.querySelector(`meta[name="${tf(t)}"]`)?.content ?? void 0);
|
|
16538
16573
|
case "callback": {
|
|
16539
16574
|
const r = e?.[s.name];
|
|
16540
16575
|
if (!r) return;
|
|
@@ -16545,7 +16580,7 @@ async function Jd(s, e) {
|
|
|
16545
16580
|
return;
|
|
16546
16581
|
}
|
|
16547
16582
|
}
|
|
16548
|
-
function
|
|
16583
|
+
function ef(s) {
|
|
16549
16584
|
if (typeof document > "u") return;
|
|
16550
16585
|
const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16551
16586
|
for (const r of t) {
|
|
@@ -16560,18 +16595,18 @@ function Qd(s) {
|
|
|
16560
16595
|
}
|
|
16561
16596
|
}
|
|
16562
16597
|
}
|
|
16563
|
-
function
|
|
16598
|
+
function gr(s) {
|
|
16564
16599
|
try {
|
|
16565
16600
|
return s();
|
|
16566
16601
|
} catch {
|
|
16567
16602
|
return;
|
|
16568
16603
|
}
|
|
16569
16604
|
}
|
|
16570
|
-
function
|
|
16605
|
+
function tf(s) {
|
|
16571
16606
|
return s.replace(/["\\]/g, "\\$&");
|
|
16572
16607
|
}
|
|
16573
|
-
const
|
|
16574
|
-
class
|
|
16608
|
+
const rf = 1800;
|
|
16609
|
+
class nf {
|
|
16575
16610
|
constructor(e) {
|
|
16576
16611
|
this.opts = e, this.cache = this.loadCache();
|
|
16577
16612
|
}
|
|
@@ -16600,7 +16635,7 @@ class ef {
|
|
|
16600
16635
|
throw new Error(
|
|
16601
16636
|
"[aikaara-chat-sdk] SsoExchangeAdapter.exchange() requires descriptor.sso.collect; v2 partner-token flow should be handled by TokenDiscoveryReader instead."
|
|
16602
16637
|
);
|
|
16603
|
-
const e = await
|
|
16638
|
+
const e = await Xd({
|
|
16604
16639
|
spec: this.opts.descriptor.collect,
|
|
16605
16640
|
providers: this.opts.providers
|
|
16606
16641
|
}), t = JSON.stringify({ credentials: e }), r = {
|
|
@@ -16638,7 +16673,7 @@ class ef {
|
|
|
16638
16673
|
return this.cache = u, this.persistCache(u), u;
|
|
16639
16674
|
}
|
|
16640
16675
|
computeExpiry() {
|
|
16641
|
-
const e = this.opts.descriptor.cacheTtlSec ??
|
|
16676
|
+
const e = this.opts.descriptor.cacheTtlSec ?? rf;
|
|
16642
16677
|
if (!(!this.opts.descriptor.cacheKey || e <= 0))
|
|
16643
16678
|
return Date.now() + e * 1e3;
|
|
16644
16679
|
}
|
|
@@ -16671,8 +16706,8 @@ class ef {
|
|
|
16671
16706
|
}
|
|
16672
16707
|
}
|
|
16673
16708
|
}
|
|
16674
|
-
const
|
|
16675
|
-
async function
|
|
16709
|
+
const of = 3e4, sf = 2e3, af = 100;
|
|
16710
|
+
async function lf(s) {
|
|
16676
16711
|
const { descriptor: e } = s, t = e.tokenSourceConfig ?? {};
|
|
16677
16712
|
switch (e.tokenSource) {
|
|
16678
16713
|
case "init": {
|
|
@@ -16681,37 +16716,37 @@ async function of(s) {
|
|
|
16681
16716
|
return { token: s.initToken, source: "init" };
|
|
16682
16717
|
}
|
|
16683
16718
|
case "query": {
|
|
16684
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16719
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = uf(r);
|
|
16685
16720
|
if (!o) throw new Xe("query", `?${r}= not present`);
|
|
16686
16721
|
return { token: o, source: "query" };
|
|
16687
16722
|
}
|
|
16688
16723
|
case "hash": {
|
|
16689
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16724
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = hf(r);
|
|
16690
16725
|
if (!o) throw new Xe("hash", `#${r}= not present`);
|
|
16691
16726
|
return { token: o, source: "hash" };
|
|
16692
16727
|
}
|
|
16693
16728
|
case "postmsg": {
|
|
16694
|
-
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n =
|
|
16695
|
-
return { token: await
|
|
16729
|
+
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = gf(typeof t.origins == "string" ? t.origins : ""), i = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : of;
|
|
16730
|
+
return { token: await mf({ type: r, key: o, origins: n, timeoutMs: i }), source: "postmsg" };
|
|
16696
16731
|
}
|
|
16697
16732
|
case "cookie": {
|
|
16698
16733
|
const r = typeof t.name == "string" && t.name ? t.name : "";
|
|
16699
16734
|
if (!r) throw new Xe("cookie", "cookie.name not configured");
|
|
16700
|
-
const o =
|
|
16735
|
+
const o = df(r);
|
|
16701
16736
|
if (!o) throw new Xe("cookie", `cookie "${r}" not set`);
|
|
16702
16737
|
return { token: o, source: "cookie" };
|
|
16703
16738
|
}
|
|
16704
16739
|
case "storage": {
|
|
16705
16740
|
const r = t.store === "session" ? "session" : "local", o = typeof t.key == "string" && t.key ? t.key : "", n = typeof t.path == "string" ? t.path : "";
|
|
16706
16741
|
if (!o) throw new Xe("storage", "storage.key not configured");
|
|
16707
|
-
const i =
|
|
16742
|
+
const i = ff(r, o, n);
|
|
16708
16743
|
if (!i) throw new Xe("storage", `${r}Storage["${o}"] not set`);
|
|
16709
16744
|
return { token: i, source: "storage" };
|
|
16710
16745
|
}
|
|
16711
16746
|
case "global": {
|
|
16712
16747
|
const r = typeof t.path == "string" ? t.path : "";
|
|
16713
16748
|
if (!r) throw new Xe("global", "global.path not configured");
|
|
16714
|
-
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs :
|
|
16749
|
+
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : sf, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : af, i = await pf(r, o, n);
|
|
16715
16750
|
if (!i) throw new Xe("global", `window.${r} not present`);
|
|
16716
16751
|
return { token: i, source: "global" };
|
|
16717
16752
|
}
|
|
@@ -16724,7 +16759,7 @@ async function of(s) {
|
|
|
16724
16759
|
}
|
|
16725
16760
|
}
|
|
16726
16761
|
}
|
|
16727
|
-
class
|
|
16762
|
+
class cf {
|
|
16728
16763
|
constructor(e) {
|
|
16729
16764
|
this.opts = e;
|
|
16730
16765
|
}
|
|
@@ -16735,7 +16770,7 @@ class sf {
|
|
|
16735
16770
|
/** Resolve the token. Returns cache if present. */
|
|
16736
16771
|
async get() {
|
|
16737
16772
|
if (this.cached) return this.cached;
|
|
16738
|
-
const e = await
|
|
16773
|
+
const e = await lf(this.opts);
|
|
16739
16774
|
return this.cached = e, e;
|
|
16740
16775
|
}
|
|
16741
16776
|
/**
|
|
@@ -16752,7 +16787,7 @@ class Xe extends Error {
|
|
|
16752
16787
|
super(`[aikaara-chat-sdk] token-discovery (${e}): ${t}`), this.source = e, this.name = "TokenDiscoveryError";
|
|
16753
16788
|
}
|
|
16754
16789
|
}
|
|
16755
|
-
function
|
|
16790
|
+
function uf(s) {
|
|
16756
16791
|
if (!(typeof window > "u"))
|
|
16757
16792
|
try {
|
|
16758
16793
|
const e = window.location.search.slice(1);
|
|
@@ -16766,7 +16801,7 @@ function af(s) {
|
|
|
16766
16801
|
return;
|
|
16767
16802
|
}
|
|
16768
16803
|
}
|
|
16769
|
-
function
|
|
16804
|
+
function hf(s) {
|
|
16770
16805
|
if (!(typeof window > "u"))
|
|
16771
16806
|
try {
|
|
16772
16807
|
const e = window.location.hash.replace(/^#/, "");
|
|
@@ -16775,7 +16810,7 @@ function lf(s) {
|
|
|
16775
16810
|
return;
|
|
16776
16811
|
}
|
|
16777
16812
|
}
|
|
16778
|
-
function
|
|
16813
|
+
function df(s) {
|
|
16779
16814
|
if (typeof document > "u") return;
|
|
16780
16815
|
const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16781
16816
|
for (const r of t) {
|
|
@@ -16790,7 +16825,7 @@ function cf(s) {
|
|
|
16790
16825
|
}
|
|
16791
16826
|
}
|
|
16792
16827
|
}
|
|
16793
|
-
function
|
|
16828
|
+
function ff(s, e, t) {
|
|
16794
16829
|
if (!(typeof window > "u"))
|
|
16795
16830
|
try {
|
|
16796
16831
|
const o = (s === "session" ? window.sessionStorage : window.localStorage).getItem(e);
|
|
@@ -16808,7 +16843,7 @@ function uf(s, e, t) {
|
|
|
16808
16843
|
return;
|
|
16809
16844
|
}
|
|
16810
16845
|
}
|
|
16811
|
-
async function
|
|
16846
|
+
async function pf(s, e, t) {
|
|
16812
16847
|
if (typeof window > "u") return;
|
|
16813
16848
|
const r = Date.now() + e;
|
|
16814
16849
|
for (; Date.now() < r; ) {
|
|
@@ -16823,7 +16858,7 @@ async function hf(s, e, t) {
|
|
|
16823
16858
|
await new Promise((n) => setTimeout(n, t));
|
|
16824
16859
|
}
|
|
16825
16860
|
}
|
|
16826
|
-
function
|
|
16861
|
+
function mf(s) {
|
|
16827
16862
|
return new Promise((e, t) => {
|
|
16828
16863
|
if (typeof window > "u") {
|
|
16829
16864
|
t(new Xe("postmsg", "no window"));
|
|
@@ -16845,7 +16880,7 @@ function df(s) {
|
|
|
16845
16880
|
window.addEventListener("message", n);
|
|
16846
16881
|
});
|
|
16847
16882
|
}
|
|
16848
|
-
function
|
|
16883
|
+
function gf(s) {
|
|
16849
16884
|
return s ? s.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
|
|
16850
16885
|
}
|
|
16851
16886
|
function Ul(s, e) {
|
|
@@ -16859,7 +16894,7 @@ function Ul(s, e) {
|
|
|
16859
16894
|
return;
|
|
16860
16895
|
return r;
|
|
16861
16896
|
}
|
|
16862
|
-
function
|
|
16897
|
+
function bf() {
|
|
16863
16898
|
const s = typeof crypto < "u" ? crypto : null;
|
|
16864
16899
|
if (s?.randomUUID) return s.randomUUID();
|
|
16865
16900
|
if (s?.getRandomValues) {
|
|
@@ -16873,9 +16908,9 @@ function pf() {
|
|
|
16873
16908
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
16874
16909
|
});
|
|
16875
16910
|
}
|
|
16876
|
-
const
|
|
16911
|
+
const yf = "aikaara_chat:requestId";
|
|
16877
16912
|
function Io(s, e, t) {
|
|
16878
|
-
const r = `${
|
|
16913
|
+
const r = `${yf}:${s}:${e}`;
|
|
16879
16914
|
return t ? `${r}:${t}` : r;
|
|
16880
16915
|
}
|
|
16881
16916
|
function Bl(s, e, t) {
|
|
@@ -16885,13 +16920,13 @@ function Bl(s, e, t) {
|
|
|
16885
16920
|
return null;
|
|
16886
16921
|
}
|
|
16887
16922
|
}
|
|
16888
|
-
function
|
|
16923
|
+
function vf(s, e, t, r) {
|
|
16889
16924
|
try {
|
|
16890
16925
|
localStorage.setItem(Io(s, e, r), t);
|
|
16891
16926
|
} catch {
|
|
16892
16927
|
}
|
|
16893
16928
|
}
|
|
16894
|
-
function
|
|
16929
|
+
function Sf(s, e, t) {
|
|
16895
16930
|
try {
|
|
16896
16931
|
localStorage.removeItem(Io(s, e, t));
|
|
16897
16932
|
} catch {
|
|
@@ -16923,7 +16958,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16923
16958
|
return h;
|
|
16924
16959
|
}
|
|
16925
16960
|
return u;
|
|
16926
|
-
}, a = await
|
|
16961
|
+
}, a = await Wt(e.sessionToken), l = {}, c = [800, 1500, 3e3, 5e3, 8e3];
|
|
16927
16962
|
for (let u = 0; u < r.length; u++) {
|
|
16928
16963
|
const h = r[u], p = n(h.url), b = h.method ?? (h.body ? "POST" : "GET"), d = { accept: "application/json", ...h.headers ?? {} };
|
|
16929
16964
|
if ((h.authHeader ?? "session") === "session") {
|
|
@@ -16940,7 +16975,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16940
16975
|
_ = x;
|
|
16941
16976
|
break;
|
|
16942
16977
|
}
|
|
16943
|
-
if (y = x.status, w = await x.text().catch(() => ""), m < c.length &&
|
|
16978
|
+
if (y = x.status, w = await x.text().catch(() => ""), m < c.length && wf(y, w)) {
|
|
16944
16979
|
const E = c[m++];
|
|
16945
16980
|
console.warn(
|
|
16946
16981
|
`[aikaara-chat-sdk] preflight #${u} ${b} ${p} → ${y} (transient). Retry #${m} in ${E}ms.`
|
|
@@ -16994,7 +17029,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16994
17029
|
}
|
|
16995
17030
|
return { captured: l };
|
|
16996
17031
|
}
|
|
16997
|
-
async function
|
|
17032
|
+
async function Ef(s) {
|
|
16998
17033
|
const e = s.steps ?? [];
|
|
16999
17034
|
return e.some((r) => r.trigger === "on-method-select") ? (await uo(
|
|
17000
17035
|
e,
|
|
@@ -17010,7 +17045,7 @@ async function kf(s) {
|
|
|
17010
17045
|
"on-method-select"
|
|
17011
17046
|
)).captured : {};
|
|
17012
17047
|
}
|
|
17013
|
-
function
|
|
17048
|
+
function wf(s, e) {
|
|
17014
17049
|
if (s === 503 || s === 504 || s === 502) return !0;
|
|
17015
17050
|
if (s === 401 || s === 403) return e.trim().length === 0;
|
|
17016
17051
|
if (s === 500) {
|
|
@@ -17036,7 +17071,7 @@ async function Dl(s, e) {
|
|
|
17036
17071
|
return r;
|
|
17037
17072
|
}
|
|
17038
17073
|
function $l(s, e) {
|
|
17039
|
-
return s.replace("{projectId}", e).replace("{uuid}",
|
|
17074
|
+
return s.replace("{projectId}", e).replace("{uuid}", bf().replace(/-/g, ""));
|
|
17040
17075
|
}
|
|
17041
17076
|
function Fl(s) {
|
|
17042
17077
|
const e = s._preload;
|
|
@@ -17048,7 +17083,7 @@ function Fl(s) {
|
|
|
17048
17083
|
);
|
|
17049
17084
|
t.length !== 0 && Promise.allSettled(t.map((r) => jl(r)));
|
|
17050
17085
|
}
|
|
17051
|
-
async function
|
|
17086
|
+
async function _f(s) {
|
|
17052
17087
|
const e = {
|
|
17053
17088
|
...s.config ?? (s.configUrl ? await Dl(s.configUrl, s.configHeaders) : {}),
|
|
17054
17089
|
...s.overrides ?? {}
|
|
@@ -17058,7 +17093,7 @@ async function yf(s) {
|
|
|
17058
17093
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
17059
17094
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
17060
17095
|
const o = r?.projectId ?? "", n = s.identity.userId, i = s.conversationScope || void 0, a = s.forceNewConversation ? null : Bl(n, o, i), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = s.conversationId ?? a ?? $l(l, o);
|
|
17061
|
-
(s.conversationId || !a || s.forceNewConversation) && o &&
|
|
17096
|
+
(s.conversationId || !a || s.forceNewConversation) && o && vf(n, o, c, i);
|
|
17062
17097
|
const u = await s.tokenProvider(), h = s.tokenProvider, p = s.historyTokenProvider ?? h, b = r ? {
|
|
17063
17098
|
mqttEndpoint: r.mqttEndpoint,
|
|
17064
17099
|
jwtToken: u,
|
|
@@ -17146,13 +17181,13 @@ async function yf(s) {
|
|
|
17146
17181
|
}
|
|
17147
17182
|
};
|
|
17148
17183
|
}
|
|
17149
|
-
function
|
|
17184
|
+
function kf(s) {
|
|
17150
17185
|
if (typeof s != "string") return s;
|
|
17151
17186
|
const e = document.querySelector(s);
|
|
17152
17187
|
if (!e) throw new Error(`mountFromSlug: container "${s}" not found`);
|
|
17153
17188
|
return e;
|
|
17154
17189
|
}
|
|
17155
|
-
async function
|
|
17190
|
+
async function xf(s) {
|
|
17156
17191
|
const e = (s.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(s.slug)}`;
|
|
17157
17192
|
let r = null;
|
|
17158
17193
|
try {
|
|
@@ -17200,9 +17235,9 @@ async function wf(s) {
|
|
|
17200
17235
|
`mountFromSlug: widget_configs/${s.slug} descriptor must include "auth" block`
|
|
17201
17236
|
);
|
|
17202
17237
|
let i = null, a = s.user.id, l = s.user.name, c = "", u = s.user.token, h = null;
|
|
17203
|
-
const p = await
|
|
17238
|
+
const p = await Wt(s.user.token).catch(() => ""), b = typeof p == "string" && p.length > 0;
|
|
17204
17239
|
if (!b && o.sso?.tokenSource) {
|
|
17205
|
-
h = new
|
|
17240
|
+
h = new cf({
|
|
17206
17241
|
descriptor: {
|
|
17207
17242
|
provider: o.sso.provider,
|
|
17208
17243
|
flow: o.sso.flow,
|
|
@@ -17219,7 +17254,7 @@ async function wf(s) {
|
|
|
17219
17254
|
u = async () => (await h.get()).token, s.user.identity && !s.user.identity.partnerToken && (s.user.identity.partnerToken = I.token);
|
|
17220
17255
|
} else if (!b && o.sso && o.sso.collect && o.sso.collect.length > 0) {
|
|
17221
17256
|
const I = `${e}/api/v1/projects/by-slug/${encodeURIComponent(s.slug)}/sso_exchange`;
|
|
17222
|
-
i = await new
|
|
17257
|
+
i = await new nf({
|
|
17223
17258
|
descriptor: o.sso,
|
|
17224
17259
|
providers: s.user.credentialProviders,
|
|
17225
17260
|
exchangeUrl: I
|
|
@@ -17241,7 +17276,7 @@ async function wf(s) {
|
|
|
17241
17276
|
}
|
|
17242
17277
|
I.captured.userId && (a = I.captured.userId), I.captured.requestId && (g = I.captured.requestId);
|
|
17243
17278
|
}
|
|
17244
|
-
const y = new
|
|
17279
|
+
const y = new Qd(o.auth, u);
|
|
17245
17280
|
if (d) {
|
|
17246
17281
|
const I = o.tiledesk?.projectId ?? "", O = I ? Bl(a, I) : null, P = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", j = O ?? (I ? $l(P, I) : "");
|
|
17247
17282
|
y.prime(d, { requestId: j, fullName: l });
|
|
@@ -17251,7 +17286,7 @@ async function wf(s) {
|
|
|
17251
17286
|
const m = w.fullName || l || a;
|
|
17252
17287
|
window.__aikaara_runtime__ = {
|
|
17253
17288
|
getChatJwt: async () => (await y.get()).token,
|
|
17254
|
-
getSessionToken: () =>
|
|
17289
|
+
getSessionToken: () => Wt(s.user.token),
|
|
17255
17290
|
identity: s.user.identity,
|
|
17256
17291
|
slug: s.slug,
|
|
17257
17292
|
// aikaara-ai base — lets the SDK derive same-origin API routes such as
|
|
@@ -17264,7 +17299,7 @@ async function wf(s) {
|
|
|
17264
17299
|
} catch (I) {
|
|
17265
17300
|
return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
|
|
17266
17301
|
}
|
|
17267
|
-
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await
|
|
17302
|
+
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Wt(s.user.token)}`, E = s.hooks?.upload ?? (x && x.mode === "presigned-3step" ? Sh({
|
|
17268
17303
|
...x,
|
|
17269
17304
|
authHeader: v
|
|
17270
17305
|
}) : x && x.mode === "direct" ? Pl({
|
|
@@ -17272,8 +17307,8 @@ async function wf(s) {
|
|
|
17272
17307
|
fieldName: x.fieldName,
|
|
17273
17308
|
extraFields: x.extraFields,
|
|
17274
17309
|
headers: async () => ({ authorization: await v() })
|
|
17275
|
-
}) : void 0), S = await
|
|
17276
|
-
container:
|
|
17310
|
+
}) : void 0), S = await _f({
|
|
17311
|
+
container: kf(s.container),
|
|
17277
17312
|
config: o,
|
|
17278
17313
|
// SSO-issued Aikaara user token, used by the ActionCable transport.
|
|
17279
17314
|
// Tiledesk-only widgets ignore this; falls back to `userId` inside `mount`.
|
|
@@ -17297,7 +17332,7 @@ async function wf(s) {
|
|
|
17297
17332
|
conversationScope: s.conversationScope,
|
|
17298
17333
|
onError: s.hooks?.onError,
|
|
17299
17334
|
onMessage: s.hooks?.onMessage,
|
|
17300
|
-
getLinkBearer: async (I) => I === "none" ? null : I === "chat" ? (await y.get()).token :
|
|
17335
|
+
getLinkBearer: async (I) => I === "none" ? null : I === "chat" ? (await y.get()).token : Wt(s.user.token)
|
|
17301
17336
|
});
|
|
17302
17337
|
return Object.assign(S, {
|
|
17303
17338
|
fullName: m,
|
|
@@ -17329,50 +17364,50 @@ async function wf(s) {
|
|
|
17329
17364
|
}
|
|
17330
17365
|
export {
|
|
17331
17366
|
To as A,
|
|
17332
|
-
|
|
17367
|
+
xf as B,
|
|
17333
17368
|
ql as C,
|
|
17334
|
-
|
|
17369
|
+
_f as D,
|
|
17335
17370
|
Qs as E,
|
|
17336
17371
|
Ol as F,
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
|
|
17372
|
+
Ef as G,
|
|
17373
|
+
bd as H,
|
|
17374
|
+
Fd as I,
|
|
17375
|
+
zd as J,
|
|
17376
|
+
qd as K,
|
|
17377
|
+
Dd as L,
|
|
17343
17378
|
ec as M,
|
|
17344
|
-
|
|
17345
|
-
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17379
|
+
jd as N,
|
|
17380
|
+
Yd as O,
|
|
17381
|
+
Vd as P,
|
|
17382
|
+
Ud as Q,
|
|
17383
|
+
Nd as R,
|
|
17384
|
+
Qd as S,
|
|
17350
17385
|
ph as T,
|
|
17351
|
-
|
|
17352
|
-
|
|
17353
|
-
|
|
17386
|
+
Pd as U,
|
|
17387
|
+
$d as V,
|
|
17388
|
+
ad as a,
|
|
17354
17389
|
wh as b,
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17390
|
+
cd as c,
|
|
17391
|
+
Sd as d,
|
|
17392
|
+
sd as e,
|
|
17393
|
+
Id as f,
|
|
17394
|
+
kd as g,
|
|
17395
|
+
vd as h,
|
|
17396
|
+
Ad as i,
|
|
17397
|
+
Ed as j,
|
|
17363
17398
|
Zl as k,
|
|
17364
17399
|
Xl as l,
|
|
17365
17400
|
tc as m,
|
|
17366
|
-
|
|
17401
|
+
nf as n,
|
|
17367
17402
|
Xe as o,
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17403
|
+
cf as p,
|
|
17404
|
+
Sf as q,
|
|
17405
|
+
Jd as r,
|
|
17406
|
+
Xd as s,
|
|
17372
17407
|
Pl as t,
|
|
17373
17408
|
Sh as u,
|
|
17374
17409
|
Ah as v,
|
|
17375
|
-
|
|
17410
|
+
lf as w,
|
|
17376
17411
|
yh as x,
|
|
17377
17412
|
bh as y,
|
|
17378
17413
|
gh as z
|