@aikaara/chat-sdk 1.5.13 → 1.5.14
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-CuJK7ray.cjs → AikaaraLinkButton-BISqvimu.cjs} +1 -1
- package/dist/{AikaaraLinkButton-Bz3x34El.mjs → AikaaraLinkButton-Qdt9GbUN.mjs} +1 -1
- package/dist/{MountTenant-DZJ4y1Ek.mjs → MountTenant-B5XQ9fsG.mjs} +543 -537
- package/dist/{MountTenant-BLLdcdt6.cjs → MountTenant-C1cW0p6o.cjs} +29 -29
- package/dist/cdn/aikaara-chat.iife.js +83 -83
- package/dist/headless.cjs +1 -1
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class Gl {
|
|
2
2
|
identifier;
|
|
3
3
|
callbacks = {};
|
|
4
4
|
sendFn;
|
|
@@ -63,7 +63,7 @@ class Po {
|
|
|
63
63
|
this.ws && (this.ws.onclose = null, this.ws.close(), this.ws = null), this.subscriptions.forEach((e) => e._notifyDisconnected()), this.subscriptions.clear();
|
|
64
64
|
}
|
|
65
65
|
subscribe(e) {
|
|
66
|
-
const t = JSON.stringify(e), r = new
|
|
66
|
+
const t = JSON.stringify(e), r = new Gl(t, (o) => {
|
|
67
67
|
this.send({
|
|
68
68
|
command: "message",
|
|
69
69
|
identifier: t,
|
|
@@ -163,8 +163,8 @@ class ta {
|
|
|
163
163
|
this.handlers.clear();
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
class
|
|
166
|
+
const Yl = 1e3, Jl = 10, Ql = 400, Xl = 600, Oo = "#6366f1", Zl = 12, ec = "system-ui, -apple-system, sans-serif", Mo = "Type a message...", tc = "bottom-right", rc = "light", nc = { x: 20, y: 20 }, tn = "aikaara_conversation_id";
|
|
167
|
+
class ic extends ta {
|
|
168
168
|
client;
|
|
169
169
|
config;
|
|
170
170
|
state = "disconnected";
|
|
@@ -221,13 +221,13 @@ class nc extends ta {
|
|
|
221
221
|
this.state !== e && (this.state = e, this.emit("connection:state", e));
|
|
222
222
|
}
|
|
223
223
|
scheduleReconnect() {
|
|
224
|
-
const e = this.config.maxReconnectAttempts ??
|
|
224
|
+
const e = this.config.maxReconnectAttempts ?? Jl;
|
|
225
225
|
if (this.reconnectAttempt >= e) {
|
|
226
226
|
this.emit("error", new Error("Max reconnection attempts reached"));
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
229
|
this.setState("reconnecting");
|
|
230
|
-
const r = (this.config.reconnectInterval ??
|
|
230
|
+
const r = (this.config.reconnectInterval ?? Yl) * Math.pow(2, this.reconnectAttempt);
|
|
231
231
|
this.reconnectAttempt++, this.reconnectTimer = setTimeout(async () => {
|
|
232
232
|
try {
|
|
233
233
|
const o = this.buildWsUrl(this.config.baseUrl, this.config.userToken);
|
|
@@ -247,7 +247,7 @@ class nc extends ta {
|
|
|
247
247
|
return `${e.replace(/^http/, "ws")}/cable?token=${t}`;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
class
|
|
250
|
+
class oc {
|
|
251
251
|
baseUrl;
|
|
252
252
|
apiKey;
|
|
253
253
|
authToken;
|
|
@@ -354,7 +354,7 @@ class ic {
|
|
|
354
354
|
return r && (n.body = JSON.stringify(r)), fetch(e, n);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
class
|
|
357
|
+
class sc {
|
|
358
358
|
_messages = [];
|
|
359
359
|
optimisticCounter = 0;
|
|
360
360
|
get messages() {
|
|
@@ -512,7 +512,7 @@ function ra(i) {
|
|
|
512
512
|
const r = e.payload?.elements?.[0]?.action?.url;
|
|
513
513
|
return typeof r == "string" ? r : void 0;
|
|
514
514
|
}
|
|
515
|
-
class
|
|
515
|
+
class ac {
|
|
516
516
|
_conversationId;
|
|
517
517
|
persist;
|
|
518
518
|
constructor(e, t = !0) {
|
|
@@ -546,23 +546,23 @@ class sc {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
var po = Object.defineProperty,
|
|
549
|
+
var po = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, cc = Object.getOwnPropertyNames, uc = Object.prototype.hasOwnProperty, Je = (i, e) => () => (i && (e = i(i = 0)), e), pe = (i, e) => () => (e || i((e = { exports: {} }).exports, e), e.exports), Gt = (i, e) => {
|
|
550
550
|
for (var t in e) po(i, t, { get: e[t], enumerable: !0 });
|
|
551
|
-
},
|
|
552
|
-
if (e && typeof e == "object" || typeof e == "function") for (let o of
|
|
551
|
+
}, dc = (i, e, t, r) => {
|
|
552
|
+
if (e && typeof e == "object" || typeof e == "function") for (let o of cc(e)) !uc.call(i, o) && o !== t && po(i, o, { get: () => e[o], enumerable: !(r = lc(e, o)) || r.enumerable });
|
|
553
553
|
return i;
|
|
554
|
-
}, Re = (i) =>
|
|
554
|
+
}, Re = (i) => dc(po({}, "__esModule", { value: !0 }), i), le = Je(() => {
|
|
555
555
|
}), Ne = {};
|
|
556
556
|
Gt(Ne, { _debugEnd: () => Kn, _debugProcess: () => Vn, _events: () => li, _eventsCount: () => ci, _exiting: () => Mn, _fatalExceptions: () => Hn, _getActiveHandles: () => ca, _getActiveRequests: () => la, _kill: () => Nn, _linkedBinding: () => sa, _maxListeners: () => ai, _preload_modules: () => oi, _rawDebug: () => Cn, _startProfilerIdleNotifier: () => Gn, _stopProfilerIdleNotifier: () => Yn, _tickCallback: () => zn, abort: () => Zn, addListener: () => ui, allowedNodeEnvironmentFlags: () => $n, arch: () => mn, argv: () => yn, argv0: () => ii, assert: () => ua, binding: () => xn, browser: () => Tn, chdir: () => An, config: () => Ln, cpuUsage: () => nr, cwd: () => En, debugPort: () => ni, default: () => go, dlopen: () => aa, domain: () => On, emit: () => mi, emitWarning: () => kn, env: () => bn, execArgv: () => vn, execPath: () => ri, exit: () => Bn, features: () => qn, hasUncaughtExceptionCaptureCallback: () => da, hrtime: () => vr, kill: () => Dn, listeners: () => fa, memoryUsage: () => Un, moduleLoadList: () => Pn, nextTick: () => ia, off: () => hi, on: () => dt, once: () => di, openStdin: () => Fn, pid: () => ei, platform: () => gn, ppid: () => ti, prependListener: () => gi, prependOnceListener: () => bi, reallyExit: () => Rn, release: () => In, removeAllListeners: () => pi, removeListener: () => fi, resourceUsage: () => jn, setSourceMapsEnabled: () => si, setUncaughtExceptionCaptureCallback: () => Wn, stderr: () => Qn, stdin: () => Xn, stdout: () => Jn, title: () => pn, umask: () => Sn, uptime: () => ha, version: () => wn, versions: () => _n });
|
|
557
557
|
function mo(i) {
|
|
558
558
|
throw new Error("Node.js process " + i + " is not supported by JSPM core outside of Node.js");
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function hc() {
|
|
561
561
|
!Nt || !Lt || (Nt = !1, Lt.length ? lt = Lt.concat(lt) : ar = -1, lt.length && na());
|
|
562
562
|
}
|
|
563
563
|
function na() {
|
|
564
564
|
if (!Nt) {
|
|
565
|
-
var i = setTimeout(
|
|
565
|
+
var i = setTimeout(hc, 0);
|
|
566
566
|
Nt = !0;
|
|
567
567
|
for (var e = lt.length; e; ) {
|
|
568
568
|
for (Lt = lt, lt = []; ++ar < e; ) Lt && Lt[ar].run();
|
|
@@ -612,7 +612,7 @@ function dt() {
|
|
|
612
612
|
function fa(i) {
|
|
613
613
|
return [];
|
|
614
614
|
}
|
|
615
|
-
var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, Pn, On, Mn, Ln, Rn, Nn, nr, jn, Un, Dn, Bn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, oi, si, ft, rn, wr, ai, li, ci, ui, di, hi, fi, pi, mi, gi, bi, go,
|
|
615
|
+
var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, Pn, On, Mn, Ln, Rn, Nn, nr, jn, Un, Dn, Bn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, oi, si, ft, rn, wr, ai, li, ci, ui, di, hi, fi, pi, mi, gi, bi, go, fc = Je(() => {
|
|
616
616
|
le(), ue(), ce(), lt = [], Nt = !1, ar = -1, oa.prototype.run = function() {
|
|
617
617
|
this.fun.apply(null, this.array);
|
|
618
618
|
}, pn = "browser", mn = "x64", gn = "browser", bn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, yn = ["/usr/bin/node"], vn = [], wn = "v16.8.0", _n = {}, kn = function(i, e) {
|
|
@@ -631,9 +631,9 @@ var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn,
|
|
|
631
631
|
return typeof BigInt > "u" ? e[0] * wr + e[1] : BigInt(e[0] * wr) + BigInt(e[1]);
|
|
632
632
|
}, ai = 10, li = {}, ci = 0, ui = dt, di = dt, hi = dt, fi = dt, pi = dt, mi = He, gi = dt, bi = dt, go = { version: wn, versions: _n, arch: mn, platform: gn, browser: Tn, release: In, _rawDebug: Cn, moduleLoadList: Pn, binding: xn, _linkedBinding: sa, _events: li, _eventsCount: ci, _maxListeners: ai, on: dt, addListener: ui, once: di, off: hi, removeListener: fi, removeAllListeners: pi, emit: mi, prependListener: gi, prependOnceListener: bi, listeners: fa, domain: On, _exiting: Mn, config: Ln, dlopen: aa, uptime: ha, _getActiveRequests: la, _getActiveHandles: ca, reallyExit: Rn, _kill: Nn, cpuUsage: nr, resourceUsage: jn, memoryUsage: Un, kill: Dn, exit: Bn, openStdin: Fn, allowedNodeEnvironmentFlags: $n, assert: ua, features: qn, _fatalExceptions: Hn, setUncaughtExceptionCaptureCallback: Wn, hasUncaughtExceptionCaptureCallback: da, emitWarning: kn, nextTick: ia, _tickCallback: zn, _debugProcess: Vn, _debugEnd: Kn, _startProfilerIdleNotifier: Gn, _stopProfilerIdleNotifier: Yn, stdout: Jn, stdin: Xn, stderr: Qn, abort: Zn, umask: Sn, chdir: An, cwd: En, env: bn, title: pn, argv: yn, execArgv: vn, pid: ei, ppid: ti, execPath: ri, debugPort: ni, hrtime: vr, argv0: ii, _preload_modules: oi, setSourceMapsEnabled: si };
|
|
633
633
|
}), ce = Je(() => {
|
|
634
|
-
|
|
634
|
+
fc();
|
|
635
635
|
});
|
|
636
|
-
function
|
|
636
|
+
function pc() {
|
|
637
637
|
if (yi) return qt;
|
|
638
638
|
yi = !0, qt.byteLength = a, qt.toByteArray = c, qt.fromByteArray = p;
|
|
639
639
|
for (var i = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) i[o] = r[o], e[r.charCodeAt(o)] = o;
|
|
@@ -671,7 +671,7 @@ function fc() {
|
|
|
671
671
|
}
|
|
672
672
|
return qt;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function mc() {
|
|
675
675
|
return vi ? ir : (vi = !0, ir.read = function(i, e, t, r, o) {
|
|
676
676
|
var n, s, a = o * 8 - r - 1, l = (1 << a) - 1, c = l >> 1, u = -7, d = t ? o - 1 : 0, p = t ? -1 : 1, g = i[e + d];
|
|
677
677
|
for (d += p, n = g & (1 << -u) - 1, g >>= -u, u += a; u > 0; n = n * 256 + i[e + d], d += p, u -= 8) ;
|
|
@@ -689,10 +689,10 @@ function pc() {
|
|
|
689
689
|
i[t + g - f] |= b * 128;
|
|
690
690
|
}, ir);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function gc() {
|
|
693
693
|
if (wi) return Et;
|
|
694
694
|
wi = !0;
|
|
695
|
-
let i =
|
|
695
|
+
let i = pc(), e = mc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
696
696
|
Et.Buffer = s, Et.SlowBuffer = w, Et.INSPECT_MAX_BYTES = 50;
|
|
697
697
|
let r = 2147483647;
|
|
698
698
|
Et.kMaxLength = r, s.TYPED_ARRAY_SUPPORT = o(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
|
|
@@ -1447,12 +1447,12 @@ function mc() {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return Et;
|
|
1449
1449
|
}
|
|
1450
|
-
var qt, yi, ir, vi, Et, wi,
|
|
1450
|
+
var qt, yi, ir, vi, Et, wi, bc = Je(() => {
|
|
1451
1451
|
le(), ue(), ce(), qt = {}, yi = !1, ir = {}, vi = !1, Et = {}, wi = !1;
|
|
1452
1452
|
}), Fe = {};
|
|
1453
1453
|
Gt(Fe, { Buffer: () => zr, INSPECT_MAX_BYTES: () => pa, default: () => ht, kMaxLength: () => ma });
|
|
1454
1454
|
var ht, zr, pa, ma, $e = Je(() => {
|
|
1455
|
-
le(), ue(), ce(),
|
|
1455
|
+
le(), ue(), ce(), bc(), ht = gc(), ht.Buffer, ht.SlowBuffer, ht.INSPECT_MAX_BYTES, ht.kMaxLength, zr = ht.Buffer, pa = ht.INSPECT_MAX_BYTES, ma = ht.kMaxLength;
|
|
1456
1456
|
}), ue = Je(() => {
|
|
1457
1457
|
$e();
|
|
1458
1458
|
}), De = pe((i, e) => {
|
|
@@ -1699,7 +1699,7 @@ var ht, zr, pa, ma, $e = Je(() => {
|
|
|
1699
1699
|
e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
|
|
1700
1700
|
}), Tt = {};
|
|
1701
1701
|
Gt(Tt, { EventEmitter: () => ba, default: () => Ht, defaultMaxListeners: () => ya, init: () => va, listenerCount: () => wa, on: () => _a, once: () => ka });
|
|
1702
|
-
function
|
|
1702
|
+
function yc() {
|
|
1703
1703
|
if (_i) return or;
|
|
1704
1704
|
_i = !0;
|
|
1705
1705
|
var i = typeof Reflect == "object" ? Reflect : null, e = i && typeof i.apply == "function" ? i.apply : function(x, v, S) {
|
|
@@ -1871,7 +1871,7 @@ function bc() {
|
|
|
1871
1871
|
return or;
|
|
1872
1872
|
}
|
|
1873
1873
|
var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
1874
|
-
le(), ue(), ce(), or = {}, _i = !1, Ht =
|
|
1874
|
+
le(), ue(), ce(), or = {}, _i = !1, Ht = yc(), Ht.once, Ht.once = function(i, e) {
|
|
1875
1875
|
return new Promise((t, r) => {
|
|
1876
1876
|
function o(...s) {
|
|
1877
1877
|
n !== void 0 && i.removeListener("error", n), t(s);
|
|
@@ -2507,7 +2507,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
return g;
|
|
2509
2509
|
};
|
|
2510
|
-
}),
|
|
2510
|
+
}), vc = pe((i, e) => {
|
|
2511
2511
|
le(), ue(), ce();
|
|
2512
2512
|
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = De(), { Buffer: s } = ($e(), Re(Fe)), { inspect: a } = Ye();
|
|
2513
2513
|
e.exports = class {
|
|
@@ -2610,7 +2610,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2610
2610
|
return c(p.objectMode);
|
|
2611
2611
|
}
|
|
2612
2612
|
e.exports = { getHighWaterMark: d, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
|
|
2613
|
-
}),
|
|
2613
|
+
}), wc = pe((i, e) => {
|
|
2614
2614
|
le(), ue(), ce();
|
|
2615
2615
|
var t = ($e(), Re(Fe)), r = t.Buffer;
|
|
2616
2616
|
function o(s, a) {
|
|
@@ -2634,9 +2634,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2634
2634
|
if (typeof s != "number") throw new TypeError("Argument must be a number");
|
|
2635
2635
|
return t.SlowBuffer(s);
|
|
2636
2636
|
};
|
|
2637
|
-
}),
|
|
2637
|
+
}), _c = pe((i) => {
|
|
2638
2638
|
le(), ue(), ce();
|
|
2639
|
-
var e =
|
|
2639
|
+
var e = wc().Buffer, t = e.isEncoding || function(m) {
|
|
2640
2640
|
switch (m = "" + m, m && m.toLowerCase()) {
|
|
2641
2641
|
case "hex":
|
|
2642
2642
|
case "utf8":
|
|
@@ -2835,7 +2835,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
2835
2835
|
e.exports = ae, ae.ReadableState = ve;
|
|
2836
2836
|
var { EventEmitter: b } = (Ut(), Re(Tt)), { Stream: y, prependListener: w } = bo(), { Buffer: m } = ($e(), Re(Fe)), { addAbortSignal: _ } = Gr(), x = Ct(), v = Ye().debuglog("stream", (C) => {
|
|
2837
2837
|
v = C;
|
|
2838
|
-
}), S =
|
|
2838
|
+
}), S = vc(), E = Yt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = Yr(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: B, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: $, ERR_STREAM_PUSH_AFTER_EOF: M, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: oe } = Ke(), { validateObject: Y } = dr(), W = f("kPaused"), { StringDecoder: ee } = _c(), D = xa();
|
|
2839
2839
|
c(ae.prototype, y.prototype), c(ae, y);
|
|
2840
2840
|
var X = () => {
|
|
2841
2841
|
}, { errorOrDestroy: L } = E, J = 1, ge = 2, re = 4, we = 8, K = 16, j = 32, ne = 64, z = 128, G = 256, Q = 512, be = 1024, se = 2048, R = 4096, q = 8192, te = 16384, he = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
@@ -3415,7 +3415,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
3415
3415
|
}, Y.toWeb = function(R) {
|
|
3416
3416
|
return se().newWritableStreamFromStreamWritable(R);
|
|
3417
3417
|
};
|
|
3418
|
-
}),
|
|
3418
|
+
}), kc = pe((i, e) => {
|
|
3419
3419
|
le(), ue(), ce();
|
|
3420
3420
|
var t = Dt(), r = ($e(), Re(Fe)), { isReadable: o, isWritable: n, isIterable: s, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: d, isWritableStream: p } = bt(), g = Ct(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = Yt(), m = mt(), _ = Jr(), x = yo(), { createDeferredPromise: v } = Ye(), S = xa(), E = globalThis.Blob || r.Blob, I = typeof E < "u" ? function(M) {
|
|
3421
3421
|
return M instanceof E;
|
|
@@ -3572,7 +3572,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
3572
3572
|
};
|
|
3573
3573
|
var d;
|
|
3574
3574
|
l.from = function(p) {
|
|
3575
|
-
return d || (d =
|
|
3575
|
+
return d || (d = kc()), d(p, "body");
|
|
3576
3576
|
};
|
|
3577
3577
|
}), Sa = pe((i, e) => {
|
|
3578
3578
|
le(), ue(), ce();
|
|
@@ -3892,7 +3892,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
3892
3892
|
!T && v !== null && (T = new p()), x = null, m = null, _ = null, v === null ? $(T) : (v = $, n(P) && o(P, T));
|
|
3893
3893
|
}, S;
|
|
3894
3894
|
};
|
|
3895
|
-
}),
|
|
3895
|
+
}), xc = pe((i, e) => {
|
|
3896
3896
|
le(), ue(), ce();
|
|
3897
3897
|
var t = globalThis.AbortController || cr().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: s }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = dr(), d = De().Symbol("kWeak"), p = De().Symbol("kResistStopPropagation"), { finished: g } = Ct(), f = Aa(), { addAbortSignalNoValidate: b } = Gr(), { isWritable: y, isNodeStream: w } = bt(), { deprecate: m } = Ye(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: S, NumberIsNaN: E, Promise: I, PromiseReject: P, PromiseResolve: O, PromisePrototypeThen: B, Symbol: T } = De(), $ = T("kEmpty"), M = T("kEof");
|
|
3898
3898
|
function U(z, G) {
|
|
@@ -4089,7 +4089,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4089
4089
|
e.exports = { finished: l, pipeline: c };
|
|
4090
4090
|
}), Ta = pe((i, e) => {
|
|
4091
4091
|
le(), ue(), ce();
|
|
4092
|
-
var { Buffer: t } = ($e(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = De(), { promisify: { custom: s } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } =
|
|
4092
|
+
var { Buffer: t } = ($e(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = De(), { promisify: { custom: s } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } = xc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = Aa(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Yr(), { pipeline: g } = vo(), { destroyer: f } = Yt(), b = Ct(), y = Ia(), w = bt(), m = e.exports = bo().Stream;
|
|
4093
4093
|
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = Jr();
|
|
4094
4094
|
for (let x of o(a)) {
|
|
4095
4095
|
let v = function(...E) {
|
|
@@ -4124,7 +4124,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4124
4124
|
e.exports = t.Readable, e.exports._uint8ArrayToBuffer = t._uint8ArrayToBuffer, e.exports._isUint8Array = t._isUint8Array, e.exports.isDisturbed = t.isDisturbed, e.exports.isErrored = t.isErrored, e.exports.isReadable = t.isReadable, e.exports.Readable = t.Readable, e.exports.Writable = t.Writable, e.exports.Duplex = t.Duplex, e.exports.Transform = t.Transform, e.exports.PassThrough = t.PassThrough, e.exports.addAbortSignal = t.addAbortSignal, e.exports.finished = t.finished, e.exports.destroy = t.destroy, e.exports.destroy = o, e.exports.pipeline = t.pipeline, e.exports.compose = t.compose, Object.defineProperty(t, "promises", { configurable: !0, enumerable: !0, get() {
|
|
4125
4125
|
return r;
|
|
4126
4126
|
} }), e.exports.Stream = t.Stream, e.exports.default = e.exports;
|
|
4127
|
-
}),
|
|
4127
|
+
}), Sc = pe((i, e) => {
|
|
4128
4128
|
le(), ue(), ce(), typeof Object.create == "function" ? e.exports = function(t, r) {
|
|
4129
4129
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
4130
4130
|
} : e.exports = function(t, r) {
|
|
@@ -4135,7 +4135,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4135
4135
|
o.prototype = r.prototype, t.prototype = new o(), t.prototype.constructor = t;
|
|
4136
4136
|
}
|
|
4137
4137
|
};
|
|
4138
|
-
}),
|
|
4138
|
+
}), Ec = pe((i, e) => {
|
|
4139
4139
|
le(), ue(), ce();
|
|
4140
4140
|
var { Buffer: t } = ($e(), Re(Fe)), r = /* @__PURE__ */ Symbol.for("BufferList");
|
|
4141
4141
|
function o(n) {
|
|
@@ -4259,9 +4259,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4259
4259
|
}, o.isBufferList = function(n) {
|
|
4260
4260
|
return n != null && n[r];
|
|
4261
4261
|
}, e.exports = o;
|
|
4262
|
-
}),
|
|
4262
|
+
}), Ac = pe((i, e) => {
|
|
4263
4263
|
le(), ue(), ce();
|
|
4264
|
-
var t = Bt().Duplex, r =
|
|
4264
|
+
var t = Bt().Duplex, r = Sc(), o = Ec();
|
|
4265
4265
|
function n(s) {
|
|
4266
4266
|
if (!(this instanceof n)) return new n(s);
|
|
4267
4267
|
if (typeof s == "function") {
|
|
@@ -4291,7 +4291,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4291
4291
|
}, n.prototype._isBufferList = function(s) {
|
|
4292
4292
|
return s instanceof n || s instanceof o || n.isBufferList(s);
|
|
4293
4293
|
}, n.isBufferList = o.isBufferList, e.exports = n, e.exports.BufferListStream = n, e.exports.BufferList = o;
|
|
4294
|
-
}),
|
|
4294
|
+
}), Ic = pe((i, e) => {
|
|
4295
4295
|
le(), ue(), ce();
|
|
4296
4296
|
var t = class {
|
|
4297
4297
|
constructor() {
|
|
@@ -4325,7 +4325,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4325
4325
|
})));
|
|
4326
4326
|
}
|
|
4327
4327
|
t.PUBLISH_HEADER = o("publish"), t.SUBSCRIBE_HEADER = o("subscribe"), t.SUBSCRIBE_OPTIONS_QOS_MASK = 3, t.SUBSCRIBE_OPTIONS_NL_MASK = 1, t.SUBSCRIBE_OPTIONS_NL_SHIFT = 2, t.SUBSCRIBE_OPTIONS_RAP_MASK = 1, t.SUBSCRIBE_OPTIONS_RAP_SHIFT = 3, t.SUBSCRIBE_OPTIONS_RH_MASK = 3, t.SUBSCRIBE_OPTIONS_RH_SHIFT = 4, t.SUBSCRIBE_OPTIONS_RH = [0, 16, 32], t.SUBSCRIBE_OPTIONS_NL = 4, t.SUBSCRIBE_OPTIONS_RAP = 8, t.SUBSCRIBE_OPTIONS_QOS = [0, 1, 2], t.UNSUBSCRIBE_HEADER = o("unsubscribe"), t.ACKS = { unsuback: o("unsuback"), puback: o("puback"), pubcomp: o("pubcomp"), pubrel: o("pubrel"), pubrec: o("pubrec") }, t.SUBACK_HEADER = r.from([t.codes.suback << t.CMD_SHIFT]), t.VERSION3 = r.from([3]), t.VERSION4 = r.from([4]), t.VERSION5 = r.from([5]), t.VERSION131 = r.from([131]), t.VERSION132 = r.from([132]), t.QOS = [0, 1, 2].map((n) => r.from([n])), t.EMPTY = { pingreq: r.from([t.codes.pingreq << 4, 0]), pingresp: r.from([t.codes.pingresp << 4, 0]), disconnect: r.from([t.codes.disconnect << 4, 0]) }, t.MQTT5_PUBACK_PUBREC_CODES = { 0: "Success", 16: "No matching subscribers", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 144: "Topic Name invalid", 145: "Packet identifier in use", 151: "Quota exceeded", 153: "Payload format invalid" }, t.MQTT5_PUBREL_PUBCOMP_CODES = { 0: "Success", 146: "Packet Identifier not found" }, t.MQTT5_SUBACK_CODES = { 0: "Granted QoS 0", 1: "Granted QoS 1", 2: "Granted QoS 2", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use", 151: "Quota exceeded", 158: "Shared Subscriptions not supported", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, t.MQTT5_UNSUBACK_CODES = { 0: "Success", 17: "No subscription existed", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use" }, t.MQTT5_DISCONNECT_CODES = { 0: "Normal disconnection", 4: "Disconnect with Will Message", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 135: "Not authorized", 137: "Server busy", 139: "Server shutting down", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, t.MQTT5_AUTH_CODES = { 0: "Success", 24: "Continue authentication", 25: "Re-authenticate" };
|
|
4328
|
-
}),
|
|
4328
|
+
}), Tc = pe((i, e) => {
|
|
4329
4329
|
le(), ue(), ce();
|
|
4330
4330
|
var t = 1e3, r = t * 60, o = r * 60, n = o * 24, s = n * 7, a = n * 365.25;
|
|
4331
4331
|
e.exports = function(p, g) {
|
|
@@ -4397,10 +4397,10 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4397
4397
|
var y = g >= f * 1.5;
|
|
4398
4398
|
return Math.round(p / f) + " " + b + (y ? "s" : "");
|
|
4399
4399
|
}
|
|
4400
|
-
}),
|
|
4400
|
+
}), Cc = pe((i, e) => {
|
|
4401
4401
|
le(), ue(), ce();
|
|
4402
4402
|
function t(r) {
|
|
4403
|
-
n.debug = n, n.default = n, n.coerce = d, n.disable = c, n.enable = a, n.enabled = u, n.humanize =
|
|
4403
|
+
n.debug = n, n.default = n, n.coerce = d, n.disable = c, n.enable = a, n.enabled = u, n.humanize = Tc(), n.destroy = p, Object.keys(r).forEach((g) => {
|
|
4404
4404
|
n[g] = r[g];
|
|
4405
4405
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
4406
4406
|
function o(g) {
|
|
@@ -4510,7 +4510,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4510
4510
|
} catch {
|
|
4511
4511
|
}
|
|
4512
4512
|
}
|
|
4513
|
-
e.exports =
|
|
4513
|
+
e.exports = Cc()(i);
|
|
4514
4514
|
var { formatters: a } = e.exports;
|
|
4515
4515
|
a.j = function(l) {
|
|
4516
4516
|
try {
|
|
@@ -4519,9 +4519,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4519
4519
|
return "[UnexpectedJSONParseError]: " + c.message;
|
|
4520
4520
|
}
|
|
4521
4521
|
};
|
|
4522
|
-
}),
|
|
4522
|
+
}), Pc = pe((i, e) => {
|
|
4523
4523
|
le(), ue(), ce();
|
|
4524
|
-
var t =
|
|
4524
|
+
var t = Ac(), { EventEmitter: r } = (Ut(), Re(Tt)), o = Ic(), n = Ca(), s = gt()("mqtt-packet:parser"), a = class ki extends r {
|
|
4525
4525
|
constructor() {
|
|
4526
4526
|
super(), this.parser = this.constructor.parser;
|
|
4527
4527
|
}
|
|
@@ -4872,7 +4872,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4872
4872
|
}
|
|
4873
4873
|
};
|
|
4874
4874
|
e.exports = a;
|
|
4875
|
-
}),
|
|
4875
|
+
}), Oc = pe((i, e) => {
|
|
4876
4876
|
le(), ue(), ce();
|
|
4877
4877
|
var { Buffer: t } = ($e(), Re(Fe)), r = 65536, o = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
|
|
4878
4878
|
function s(u) {
|
|
@@ -4894,7 +4894,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4894
4894
|
return d.writeUInt32BE(u, 0), d;
|
|
4895
4895
|
}
|
|
4896
4896
|
e.exports = { cache: o, generateCache: a, generateNumber: s, genBufVariableByteInt: l, generate4ByteBuffer: c };
|
|
4897
|
-
}),
|
|
4897
|
+
}), Mc = pe((i, e) => {
|
|
4898
4898
|
le(), ue(), ce(), typeof Ne > "u" || !Ne.version || Ne.version.indexOf("v0.") === 0 || Ne.version.indexOf("v1.") === 0 && Ne.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: t } : e.exports = Ne;
|
|
4899
4899
|
function t(r, o, n, s) {
|
|
4900
4900
|
if (typeof r != "function") throw new TypeError('"callback" argument must be a function');
|
|
@@ -4924,7 +4924,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
}), Pa = pe((i, e) => {
|
|
4926
4926
|
le(), ue(), ce();
|
|
4927
|
-
var t = Ca(), { Buffer: r } = ($e(), Re(Fe)), o = r.allocUnsafe(0), n = r.from([0]), s =
|
|
4927
|
+
var t = Ca(), { Buffer: r } = ($e(), Re(Fe)), o = r.allocUnsafe(0), n = r.from([0]), s = Oc(), a = Mc().nextTick, l = gt()("mqtt-packet:writeToStream"), c = s.cache, u = s.generateNumber, d = s.generateCache, p = s.genBufVariableByteInt, g = s.generate4ByteBuffer, f = Y, b = !0;
|
|
4928
4928
|
function y(K, j, ne) {
|
|
4929
4929
|
switch (l("generate called"), j.cork && (j.cork(), a(w, j)), b && (b = !1, d()), l("generate: packet.cmd: %s", K.cmd), K.cmd) {
|
|
4930
4930
|
case "connect":
|
|
@@ -5305,7 +5305,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5305
5305
|
return typeof K == "string" || K instanceof r;
|
|
5306
5306
|
}
|
|
5307
5307
|
e.exports = y;
|
|
5308
|
-
}),
|
|
5308
|
+
}), Lc = pe((i, e) => {
|
|
5309
5309
|
le(), ue(), ce();
|
|
5310
5310
|
var t = Pa(), { EventEmitter: r } = (Ut(), Re(Tt)), { Buffer: o } = ($e(), Re(Fe));
|
|
5311
5311
|
function n(a, l) {
|
|
@@ -5331,9 +5331,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5331
5331
|
}
|
|
5332
5332
|
};
|
|
5333
5333
|
e.exports = n;
|
|
5334
|
-
}),
|
|
5335
|
-
le(), ue(), ce(), i.parser =
|
|
5336
|
-
}),
|
|
5334
|
+
}), Rc = pe((i) => {
|
|
5335
|
+
le(), ue(), ce(), i.parser = Pc().parser, i.generate = Lc(), i.writeToStream = Pa();
|
|
5336
|
+
}), Nc = pe((i, e) => {
|
|
5337
5337
|
le(), ue(), ce(), e.exports = r;
|
|
5338
5338
|
function t(n) {
|
|
5339
5339
|
return n instanceof zr ? zr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
|
|
@@ -5433,8 +5433,8 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5433
5433
|
return s.pop(), a.pop(), f;
|
|
5434
5434
|
}
|
|
5435
5435
|
}
|
|
5436
|
-
}),
|
|
5437
|
-
le(), ue(), ce(), e.exports =
|
|
5436
|
+
}), jc = pe((i, e) => {
|
|
5437
|
+
le(), ue(), ce(), e.exports = Nc()();
|
|
5438
5438
|
}), Oa = pe((i) => {
|
|
5439
5439
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.validateTopic = e, i.validateTopics = t;
|
|
5440
5440
|
function e(r) {
|
|
@@ -5486,7 +5486,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5486
5486
|
}
|
|
5487
5487
|
};
|
|
5488
5488
|
i.default = o;
|
|
5489
|
-
}),
|
|
5489
|
+
}), Uc = pe((i) => {
|
|
5490
5490
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
5491
5491
|
var e = [0, 16, 128, 131, 135, 144, 145, 151, 153], t = (r, o, n) => {
|
|
5492
5492
|
r.log("handlePublish: packet %o", o), n = typeof n < "u" ? n : r.noop;
|
|
@@ -5541,7 +5541,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
};
|
|
5543
5543
|
i.default = t;
|
|
5544
|
-
}),
|
|
5544
|
+
}), Dc = pe((i, e) => {
|
|
5545
5545
|
e.exports = { version: "5.15.0" };
|
|
5546
5546
|
}), Jt = pe((i) => {
|
|
5547
5547
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.MQTTJS_VERSION = i.nextTick = i.ErrorWithSubackPacket = i.ErrorWithReasonCode = void 0, i.applyMixin = r;
|
|
@@ -5570,7 +5570,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
i.nextTick = typeof Ne?.nextTick == "function" ? Ne.nextTick : (o) => {
|
|
5572
5572
|
setTimeout(o, 0);
|
|
5573
|
-
}, i.MQTTJS_VERSION =
|
|
5573
|
+
}, i.MQTTJS_VERSION = Dc().version;
|
|
5574
5574
|
}), Qr = pe((i) => {
|
|
5575
5575
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.ReasonCodes = void 0;
|
|
5576
5576
|
var e = Jt();
|
|
@@ -5624,7 +5624,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5624
5624
|
r.disconnecting && Object.keys(r.outgoing).length === 0 && r.emit("outgoingEmpty");
|
|
5625
5625
|
};
|
|
5626
5626
|
i.default = t;
|
|
5627
|
-
}),
|
|
5627
|
+
}), Bc = pe((i) => {
|
|
5628
5628
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
5629
5629
|
var e = Jt(), t = Qr(), r = (o, n) => {
|
|
5630
5630
|
let { options: s } = o, a = s.protocolVersion, l = a === 5 ? n.reasonCode : n.returnCode;
|
|
@@ -5646,7 +5646,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
5646
5646
|
});
|
|
5647
5647
|
};
|
|
5648
5648
|
i.default = r;
|
|
5649
|
-
}),
|
|
5649
|
+
}), Fc = pe((i) => {
|
|
5650
5650
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.LRUCache = void 0;
|
|
5651
5651
|
var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof Ne == "object" && Ne ? Ne : {}, o = (g, f, b, y) => {
|
|
5652
5652
|
typeof r.emitWarning == "function" ? r.emitWarning(g, f, b, y) : console.error(`[${b}] ${f}: ${g}`);
|
|
@@ -6190,7 +6190,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6190
6190
|
var r = class extends t {
|
|
6191
6191
|
};
|
|
6192
6192
|
i.Container = r;
|
|
6193
|
-
}),
|
|
6193
|
+
}), $c = pe((i) => {
|
|
6194
6194
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6195
6195
|
var e = yt(), t = class extends e.Base {
|
|
6196
6196
|
constructor(o = []) {
|
|
@@ -6214,7 +6214,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6214
6214
|
}
|
|
6215
6215
|
}, r = t;
|
|
6216
6216
|
i.default = r;
|
|
6217
|
-
}),
|
|
6217
|
+
}), qc = pe((i) => {
|
|
6218
6218
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6219
6219
|
var e = yt(), t = class extends e.Base {
|
|
6220
6220
|
constructor(o = []) {
|
|
@@ -6246,7 +6246,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
}, r = t;
|
|
6248
6248
|
i.default = r;
|
|
6249
|
-
}),
|
|
6249
|
+
}), Hc = pe((i) => {
|
|
6250
6250
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6251
6251
|
var e = yt(), t = class extends e.Base {
|
|
6252
6252
|
constructor(o = [], n = function(a, l) {
|
|
@@ -6344,7 +6344,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
};
|
|
6346
6346
|
i.RandomIterator = r;
|
|
6347
|
-
}),
|
|
6347
|
+
}), Wc = pe((i) => {
|
|
6348
6348
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6349
6349
|
var e = r(wo()), t = ja();
|
|
6350
6350
|
function r(a) {
|
|
@@ -6445,7 +6445,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6445
6445
|
}
|
|
6446
6446
|
}, s = n;
|
|
6447
6447
|
i.default = s;
|
|
6448
|
-
}),
|
|
6448
|
+
}), zc = pe((i) => {
|
|
6449
6449
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6450
6450
|
var e = o(wo()), t = yt(), r = vt();
|
|
6451
6451
|
function o(l) {
|
|
@@ -6630,7 +6630,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6630
6630
|
}
|
|
6631
6631
|
}, a = s;
|
|
6632
6632
|
i.default = a;
|
|
6633
|
-
}),
|
|
6633
|
+
}), Vc = pe((i) => {
|
|
6634
6634
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6635
6635
|
var e = r(wo()), t = ja();
|
|
6636
6636
|
function r(a) {
|
|
@@ -6815,7 +6815,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6815
6815
|
}
|
|
6816
6816
|
}, s = n;
|
|
6817
6817
|
i.default = s;
|
|
6818
|
-
}),
|
|
6818
|
+
}), Kc = pe((i) => {
|
|
6819
6819
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.TreeNodeEnableIndex = i.TreeNode = void 0;
|
|
6820
6820
|
var e = class {
|
|
6821
6821
|
constructor(r, o) {
|
|
@@ -6872,7 +6872,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
6872
6872
|
i.TreeNodeEnableIndex = t;
|
|
6873
6873
|
}), Fa = pe((i) => {
|
|
6874
6874
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
6875
|
-
var e =
|
|
6875
|
+
var e = Kc(), t = yt(), r = vt(), o = class extends t.Container {
|
|
6876
6876
|
constructor(s = function(l, c) {
|
|
6877
6877
|
return l < c ? -1 : l > c ? 1 : 0;
|
|
6878
6878
|
}, a = !1) {
|
|
@@ -7150,7 +7150,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7150
7150
|
}
|
|
7151
7151
|
}, o = r;
|
|
7152
7152
|
i.default = o;
|
|
7153
|
-
}),
|
|
7153
|
+
}), Gc = pe((i) => {
|
|
7154
7154
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7155
7155
|
var e = o(Fa()), t = o($a()), r = vt();
|
|
7156
7156
|
function o(l) {
|
|
@@ -7229,7 +7229,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7229
7229
|
}
|
|
7230
7230
|
}, a = s;
|
|
7231
7231
|
i.default = a;
|
|
7232
|
-
}),
|
|
7232
|
+
}), Yc = pe((i) => {
|
|
7233
7233
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7234
7234
|
var e = o(Fa()), t = o($a()), r = vt();
|
|
7235
7235
|
function o(l) {
|
|
@@ -7407,7 +7407,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7407
7407
|
}
|
|
7408
7408
|
};
|
|
7409
7409
|
i.HashContainer = s;
|
|
7410
|
-
}),
|
|
7410
|
+
}), Jc = pe((i) => {
|
|
7411
7411
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7412
7412
|
var e = za(), t = vt(), r = class Va extends e.HashContainerIterator {
|
|
7413
7413
|
constructor(a, l, c, u) {
|
|
@@ -7470,7 +7470,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7470
7470
|
}
|
|
7471
7471
|
}, n = o;
|
|
7472
7472
|
i.default = n;
|
|
7473
|
-
}),
|
|
7473
|
+
}), Qc = pe((i) => {
|
|
7474
7474
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
|
|
7475
7475
|
var e = za(), t = o(Wa()), r = vt();
|
|
7476
7476
|
function o(l) {
|
|
@@ -7553,7 +7553,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7553
7553
|
}
|
|
7554
7554
|
}, a = s;
|
|
7555
7555
|
i.default = a;
|
|
7556
|
-
}),
|
|
7556
|
+
}), Xc = pe((i) => {
|
|
7557
7557
|
le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), Object.defineProperty(i, "Deque", { enumerable: !0, get: function() {
|
|
7558
7558
|
return s.default;
|
|
7559
7559
|
} }), Object.defineProperty(i, "HashMap", { enumerable: !0, get: function() {
|
|
@@ -7575,13 +7575,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7575
7575
|
} }), Object.defineProperty(i, "Vector", { enumerable: !0, get: function() {
|
|
7576
7576
|
return o.default;
|
|
7577
7577
|
} });
|
|
7578
|
-
var e = d(
|
|
7578
|
+
var e = d($c()), t = d(qc()), r = d(Hc()), o = d(Wc()), n = d(zc()), s = d(Vc()), a = d(Gc()), l = d(Yc()), c = d(Jc()), u = d(Qc());
|
|
7579
7579
|
function d(p) {
|
|
7580
7580
|
return p && p.t ? p : { default: p };
|
|
7581
7581
|
}
|
|
7582
|
-
}),
|
|
7582
|
+
}), Zc = pe((i, e) => {
|
|
7583
7583
|
le(), ue(), ce();
|
|
7584
|
-
var t =
|
|
7584
|
+
var t = Xc().OrderedSet, r = gt()("number-allocator:trace"), o = gt()("number-allocator:error");
|
|
7585
7585
|
function n(a, l) {
|
|
7586
7586
|
this.low = a, this.high = l;
|
|
7587
7587
|
}
|
|
@@ -7642,11 +7642,11 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7642
7642
|
}, e.exports = s;
|
|
7643
7643
|
}), Ga = pe((i, e) => {
|
|
7644
7644
|
le(), ue(), ce();
|
|
7645
|
-
var t =
|
|
7645
|
+
var t = Zc();
|
|
7646
7646
|
e.exports.NumberAllocator = t;
|
|
7647
|
-
}),
|
|
7647
|
+
}), eu = pe((i) => {
|
|
7648
7648
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7649
|
-
var e =
|
|
7649
|
+
var e = Fc(), t = Ga(), r = class {
|
|
7650
7650
|
aliasToTopic;
|
|
7651
7651
|
topicToAlias;
|
|
7652
7652
|
max;
|
|
@@ -7675,13 +7675,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7675
7675
|
}
|
|
7676
7676
|
};
|
|
7677
7677
|
i.default = r;
|
|
7678
|
-
}),
|
|
7678
|
+
}), tu = pe((i) => {
|
|
7679
7679
|
le(), ue(), ce();
|
|
7680
7680
|
var e = i && i.__importDefault || function(s) {
|
|
7681
7681
|
return s && s.__esModule ? s : { default: s };
|
|
7682
7682
|
};
|
|
7683
7683
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7684
|
-
var t = Qr(), r = e(
|
|
7684
|
+
var t = Qr(), r = e(eu()), o = Jt(), n = (s, a) => {
|
|
7685
7685
|
s.log("_handleConnack");
|
|
7686
7686
|
let { options: l } = s, c = l.protocolVersion === 5 ? a.reasonCode : a.returnCode;
|
|
7687
7687
|
if (clearTimeout(s.connackTimer), delete s.topicAliasSend, a.properties) {
|
|
@@ -7701,7 +7701,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7701
7701
|
}
|
|
7702
7702
|
};
|
|
7703
7703
|
i.default = n;
|
|
7704
|
-
}),
|
|
7704
|
+
}), ru = pe((i) => {
|
|
7705
7705
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7706
7706
|
var e = (t, r, o) => {
|
|
7707
7707
|
t.log("handling pubrel packet");
|
|
@@ -7714,13 +7714,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7714
7714
|
});
|
|
7715
7715
|
};
|
|
7716
7716
|
i.default = e;
|
|
7717
|
-
}),
|
|
7717
|
+
}), nu = pe((i) => {
|
|
7718
7718
|
le(), ue(), ce();
|
|
7719
7719
|
var e = i && i.__importDefault || function(l) {
|
|
7720
7720
|
return l && l.__esModule ? l : { default: l };
|
|
7721
7721
|
};
|
|
7722
7722
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7723
|
-
var t = e(
|
|
7723
|
+
var t = e(Uc()), r = e(Bc()), o = e(tu()), n = e(Qr()), s = e(ru()), a = (l, c, u) => {
|
|
7724
7724
|
let { options: d } = l;
|
|
7725
7725
|
if (d.protocolVersion === 5 && d.properties && d.properties.maximumPacketSize && d.properties.maximumPacketSize < c.length) return l.emit("error", new Error(`exceeding packets size ${c.cmd}`)), l.end({ reasonCode: 149, properties: { reasonString: "Maximum packet size was exceeded" } }), l;
|
|
7726
7726
|
switch (l.log("_handlePacket :: emitting packetreceive"), l.emit("packetreceive", c), c.cmd) {
|
|
@@ -7778,7 +7778,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7778
7778
|
}
|
|
7779
7779
|
};
|
|
7780
7780
|
i.default = e;
|
|
7781
|
-
}),
|
|
7781
|
+
}), iu = pe((i) => {
|
|
7782
7782
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
7783
7783
|
var e = class {
|
|
7784
7784
|
aliasToTopic;
|
|
@@ -7798,7 +7798,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7798
7798
|
}
|
|
7799
7799
|
};
|
|
7800
7800
|
i.default = e;
|
|
7801
|
-
}),
|
|
7801
|
+
}), ou = pe((i) => {
|
|
7802
7802
|
le(), ue(), ce();
|
|
7803
7803
|
var e = i && i.__importDefault || function(n) {
|
|
7804
7804
|
return n && n.__esModule ? n : { default: n };
|
|
@@ -7818,7 +7818,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7818
7818
|
}, e.exports.__esModule = !0, e.exports.default = e.exports, t(r);
|
|
7819
7819
|
}
|
|
7820
7820
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7821
|
-
}),
|
|
7821
|
+
}), su = pe((i, e) => {
|
|
7822
7822
|
le(), ue(), ce();
|
|
7823
7823
|
var t = Xr().default;
|
|
7824
7824
|
function r(o, n) {
|
|
@@ -7832,28 +7832,28 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7832
7832
|
return (n === "string" ? String : Number)(o);
|
|
7833
7833
|
}
|
|
7834
7834
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7835
|
-
}),
|
|
7835
|
+
}), au = pe((i, e) => {
|
|
7836
7836
|
le(), ue(), ce();
|
|
7837
|
-
var t = Xr().default, r =
|
|
7837
|
+
var t = Xr().default, r = su();
|
|
7838
7838
|
function o(n) {
|
|
7839
7839
|
var s = r(n, "string");
|
|
7840
7840
|
return t(s) == "symbol" ? s : s + "";
|
|
7841
7841
|
}
|
|
7842
7842
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7843
|
-
}),
|
|
7843
|
+
}), lu = pe((i, e) => {
|
|
7844
7844
|
le(), ue(), ce();
|
|
7845
|
-
var t =
|
|
7845
|
+
var t = au();
|
|
7846
7846
|
function r(o, n, s) {
|
|
7847
7847
|
return (n = t(n)) in o ? Object.defineProperty(o, n, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : o[n] = s, o;
|
|
7848
7848
|
}
|
|
7849
7849
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7850
|
-
}),
|
|
7850
|
+
}), cu = pe((i, e) => {
|
|
7851
7851
|
le(), ue(), ce();
|
|
7852
7852
|
function t(r) {
|
|
7853
7853
|
if (Array.isArray(r)) return r;
|
|
7854
7854
|
}
|
|
7855
7855
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7856
|
-
}),
|
|
7856
|
+
}), uu = pe((i, e) => {
|
|
7857
7857
|
le(), ue(), ce();
|
|
7858
7858
|
function t(r, o) {
|
|
7859
7859
|
var n = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -7877,7 +7877,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7877
7877
|
}
|
|
7878
7878
|
}
|
|
7879
7879
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7880
|
-
}),
|
|
7880
|
+
}), du = pe((i, e) => {
|
|
7881
7881
|
le(), ue(), ce();
|
|
7882
7882
|
function t(r, o) {
|
|
7883
7883
|
(o == null || o > r.length) && (o = r.length);
|
|
@@ -7885,9 +7885,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7885
7885
|
return s;
|
|
7886
7886
|
}
|
|
7887
7887
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7888
|
-
}),
|
|
7888
|
+
}), hu = pe((i, e) => {
|
|
7889
7889
|
le(), ue(), ce();
|
|
7890
|
-
var t =
|
|
7890
|
+
var t = du();
|
|
7891
7891
|
function r(o, n) {
|
|
7892
7892
|
if (o) {
|
|
7893
7893
|
if (typeof o == "string") return t(o, n);
|
|
@@ -7896,16 +7896,16 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
|
|
|
7896
7896
|
}
|
|
7897
7897
|
}
|
|
7898
7898
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7899
|
-
}),
|
|
7899
|
+
}), fu = pe((i, e) => {
|
|
7900
7900
|
le(), ue(), ce();
|
|
7901
7901
|
function t() {
|
|
7902
7902
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7903
7903
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
7904
7904
|
}
|
|
7905
7905
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7906
|
-
}),
|
|
7906
|
+
}), pu = pe((i, e) => {
|
|
7907
7907
|
le(), ue(), ce();
|
|
7908
|
-
var t =
|
|
7908
|
+
var t = cu(), r = uu(), o = hu(), n = fu();
|
|
7909
7909
|
function s(a, l) {
|
|
7910
7910
|
return t(a) || r(a, l) || o(a, l) || n();
|
|
7911
7911
|
}
|
|
@@ -7938,7 +7938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7938
7938
|
}, c = /* @__PURE__ */ new WeakMap(), u = o(c), d = l(u, c), p = r(d);
|
|
7939
7939
|
t.addUniqueNumber = p, t.generateUniqueNumber = d;
|
|
7940
7940
|
});
|
|
7941
|
-
}),
|
|
7941
|
+
}), mu = pe((i, e) => {
|
|
7942
7942
|
le(), ue(), ce();
|
|
7943
7943
|
function t(o, n, s, a, l, c, u) {
|
|
7944
7944
|
try {
|
|
@@ -8094,7 +8094,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8094
8094
|
return new r(t().w(n, s, a, l), c || Promise);
|
|
8095
8095
|
}
|
|
8096
8096
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8097
|
-
}),
|
|
8097
|
+
}), gu = pe((i, e) => {
|
|
8098
8098
|
le(), ue(), ce();
|
|
8099
8099
|
var t = tl();
|
|
8100
8100
|
function r(o, n, s, a, l) {
|
|
@@ -8104,7 +8104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8104
8104
|
});
|
|
8105
8105
|
}
|
|
8106
8106
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8107
|
-
}),
|
|
8107
|
+
}), bu = pe((i, e) => {
|
|
8108
8108
|
le(), ue(), ce();
|
|
8109
8109
|
function t(r) {
|
|
8110
8110
|
var o = Object(r), n = [];
|
|
@@ -8115,7 +8115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8115
8115
|
};
|
|
8116
8116
|
}
|
|
8117
8117
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8118
|
-
}),
|
|
8118
|
+
}), yu = pe((i, e) => {
|
|
8119
8119
|
le(), ue(), ce();
|
|
8120
8120
|
var t = Xr().default;
|
|
8121
8121
|
function r(o) {
|
|
@@ -8130,9 +8130,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8130
8130
|
throw new TypeError(t(o) + " is not iterable");
|
|
8131
8131
|
}
|
|
8132
8132
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8133
|
-
}),
|
|
8133
|
+
}), vu = pe((i, e) => {
|
|
8134
8134
|
le(), ue(), ce();
|
|
8135
|
-
var t = Qa(), r = Za(), o =
|
|
8135
|
+
var t = Qa(), r = Za(), o = gu(), n = tl(), s = el(), a = bu(), l = yu();
|
|
8136
8136
|
function c() {
|
|
8137
8137
|
var u = r(), d = u.m(c), p = (Object.getPrototypeOf ? Object.getPrototypeOf(d) : d.__proto__).constructor;
|
|
8138
8138
|
function g(y) {
|
|
@@ -8179,18 +8179,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8179
8179
|
}, e.exports.__esModule = !0, e.exports.default = e.exports)();
|
|
8180
8180
|
}
|
|
8181
8181
|
e.exports = c, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8182
|
-
}),
|
|
8182
|
+
}), wu = pe((i, e) => {
|
|
8183
8183
|
le(), ue(), ce();
|
|
8184
|
-
var t =
|
|
8184
|
+
var t = vu()();
|
|
8185
8185
|
e.exports = t;
|
|
8186
8186
|
try {
|
|
8187
8187
|
regeneratorRuntime = t;
|
|
8188
8188
|
} catch {
|
|
8189
8189
|
typeof globalThis == "object" ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t);
|
|
8190
8190
|
}
|
|
8191
|
-
}),
|
|
8191
|
+
}), _u = pe((i, e) => {
|
|
8192
8192
|
le(), ue(), ce(), (function(t, r) {
|
|
8193
|
-
typeof i == "object" && typeof e < "u" ? r(i,
|
|
8193
|
+
typeof i == "object" && typeof e < "u" ? r(i, lu(), pu(), Ja(), mu(), wu()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/defineProperty", "@babel/runtime/helpers/slicedToArray", "fast-unique-numbers", "@babel/runtime/helpers/asyncToGenerator", "@babel/runtime/regenerator"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.brokerFactory = {}, t._defineProperty, t._slicedToArray, t.fastUniqueNumbers, t._asyncToGenerator, t._regeneratorRuntime));
|
|
8194
8194
|
})(i, function(t, r, o, n, s, a) {
|
|
8195
8195
|
var l = function(m) {
|
|
8196
8196
|
return typeof m.start == "function";
|
|
@@ -8319,9 +8319,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8319
8319
|
};
|
|
8320
8320
|
t.createBroker = w;
|
|
8321
8321
|
});
|
|
8322
|
-
}),
|
|
8322
|
+
}), ku = pe((i, e) => {
|
|
8323
8323
|
le(), ue(), ce(), (function(t, r) {
|
|
8324
|
-
typeof i == "object" && typeof e < "u" ? r(i, Xr(),
|
|
8324
|
+
typeof i == "object" && typeof e < "u" ? r(i, Xr(), _u(), Ja()) : 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
|
})(i, function(t, r, o, n) {
|
|
8326
8326
|
var s = /* @__PURE__ */ new Map([[0, null]]), a = /* @__PURE__ */ new Map([[0, null]]), l = o.createBroker({ clearInterval: function(u) {
|
|
8327
8327
|
var d = u.call;
|
|
@@ -8369,9 +8369,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8369
8369
|
};
|
|
8370
8370
|
t.load = c, t.wrap = l;
|
|
8371
8371
|
});
|
|
8372
|
-
}),
|
|
8372
|
+
}), xu = pe((i, e) => {
|
|
8373
8373
|
le(), ue(), ce(), (function(t, r) {
|
|
8374
|
-
typeof i == "object" && typeof e < "u" ? r(i,
|
|
8374
|
+
typeof i == "object" && typeof e < "u" ? r(i, ku()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimers = {}, t.workerTimersBroker));
|
|
8375
8375
|
})(i, function(t, r) {
|
|
8376
8376
|
var o = function(d, p) {
|
|
8377
8377
|
var g = null;
|
|
@@ -8399,7 +8399,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8399
8399
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.isReactNativeBrowser = i.isWebWorker = void 0;
|
|
8400
8400
|
var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Ne?.versions ? !Object.prototype.hasOwnProperty.call(Ne.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
|
i.isWebWorker = t(), i.isReactNativeBrowser = r(), i.default = o;
|
|
8402
|
-
}),
|
|
8402
|
+
}), Su = pe((i) => {
|
|
8403
8403
|
le(), ue(), ce();
|
|
8404
8404
|
var e = i && i.__createBinding || (Object.create ? function(c, u, d, p) {
|
|
8405
8405
|
p === void 0 && (p = d);
|
|
@@ -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(i, "__esModule", { value: !0 });
|
|
8432
|
-
var o =
|
|
8432
|
+
var o = xu(), n = r(Zr()), s = { 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;
|
|
@@ -8446,7 +8446,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8446
8446
|
return o && o.__esModule ? o : { default: o };
|
|
8447
8447
|
};
|
|
8448
8448
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
8449
|
-
var t = e(
|
|
8449
|
+
var t = e(Su()), r = class {
|
|
8450
8450
|
_keepalive;
|
|
8451
8451
|
timerId;
|
|
8452
8452
|
timer;
|
|
@@ -8519,7 +8519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8519
8519
|
return v && v.__esModule ? v : { default: v };
|
|
8520
8520
|
};
|
|
8521
8521
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
8522
|
-
var n = o(
|
|
8522
|
+
var n = o(Rc()), s = Bt(), a = o(jc()), l = o(gt()), c = r(Oa()), u = o(Ma()), d = o(nu()), p = o(Ya()), g = o(iu()), f = Jt(), b = ou(), y = o(rl()), w = r(Zr()), m = globalThis.setImmediate || ((...v) => {
|
|
8523
8523
|
let S = v.shift();
|
|
8524
8524
|
(0, f.nextTick)(() => {
|
|
8525
8525
|
S(...v);
|
|
@@ -9021,7 +9021,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9021
9021
|
}
|
|
9022
9022
|
};
|
|
9023
9023
|
i.default = x;
|
|
9024
|
-
}),
|
|
9024
|
+
}), Eu = pe((i) => {
|
|
9025
9025
|
le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
9026
9026
|
var e = Ga(), t = class {
|
|
9027
9027
|
numberAllocator;
|
|
@@ -9047,7 +9047,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9047
9047
|
};
|
|
9048
9048
|
i.default = t;
|
|
9049
9049
|
});
|
|
9050
|
-
function
|
|
9050
|
+
function Au() {
|
|
9051
9051
|
if (Ei) return _r;
|
|
9052
9052
|
Ei = !0;
|
|
9053
9053
|
let i = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, s = 72, a = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, d = /[\x2E\u3002\uFF0E\uFF61]/g, p = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, g = e - t, f = Math.floor, b = String.fromCharCode;
|
|
@@ -9138,10 +9138,10 @@ function Eu() {
|
|
|
9138
9138
|
});
|
|
9139
9139
|
} }, _r;
|
|
9140
9140
|
}
|
|
9141
|
-
var _r, Ei, At,
|
|
9142
|
-
le(), ue(), ce(), _r = {}, Ei = !1, At =
|
|
9141
|
+
var _r, Ei, At, Iu = Je(() => {
|
|
9142
|
+
le(), ue(), ce(), _r = {}, Ei = !1, At = Au(), At.decode, At.encode, At.toASCII, At.toUnicode, At.ucs2, At.version;
|
|
9143
9143
|
});
|
|
9144
|
-
function
|
|
9144
|
+
function Tu() {
|
|
9145
9145
|
return Ii || (Ii = !0, Ai = function() {
|
|
9146
9146
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
9147
9147
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -9160,16 +9160,16 @@ function Iu() {
|
|
|
9160
9160
|
return !0;
|
|
9161
9161
|
}), Ai;
|
|
9162
9162
|
}
|
|
9163
|
-
function
|
|
9163
|
+
function Cu() {
|
|
9164
9164
|
return Ci || (Ci = !0, Ti = Error), Ti;
|
|
9165
9165
|
}
|
|
9166
|
-
function
|
|
9166
|
+
function Pu() {
|
|
9167
9167
|
return Oi || (Oi = !0, Pi = EvalError), Pi;
|
|
9168
9168
|
}
|
|
9169
|
-
function
|
|
9169
|
+
function Ou() {
|
|
9170
9170
|
return Li || (Li = !0, Mi = RangeError), Mi;
|
|
9171
9171
|
}
|
|
9172
|
-
function
|
|
9172
|
+
function Mu() {
|
|
9173
9173
|
return Ni || (Ni = !0, Ri = ReferenceError), Ri;
|
|
9174
9174
|
}
|
|
9175
9175
|
function nl() {
|
|
@@ -9178,18 +9178,18 @@ function nl() {
|
|
|
9178
9178
|
function hr() {
|
|
9179
9179
|
return Bi || (Bi = !0, Di = TypeError), Di;
|
|
9180
9180
|
}
|
|
9181
|
-
function
|
|
9181
|
+
function Lu() {
|
|
9182
9182
|
return $i || ($i = !0, Fi = URIError), Fi;
|
|
9183
9183
|
}
|
|
9184
|
-
function
|
|
9184
|
+
function Ru() {
|
|
9185
9185
|
if (qi) return kr;
|
|
9186
9186
|
qi = !0;
|
|
9187
|
-
var i = typeof Symbol < "u" && Symbol, e =
|
|
9187
|
+
var i = typeof Symbol < "u" && Symbol, e = Tu();
|
|
9188
9188
|
return kr = function() {
|
|
9189
9189
|
return typeof i != "function" || typeof Symbol != "function" || typeof i("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
|
|
9190
9190
|
}, kr;
|
|
9191
9191
|
}
|
|
9192
|
-
function
|
|
9192
|
+
function Nu() {
|
|
9193
9193
|
if (Hi) return xr;
|
|
9194
9194
|
Hi = !0;
|
|
9195
9195
|
var i = { __proto__: null, foo: {} }, e = Object;
|
|
@@ -9197,7 +9197,7 @@ function Ru() {
|
|
|
9197
9197
|
return { __proto__: i }.foo === i.foo && !(i instanceof e);
|
|
9198
9198
|
}, xr;
|
|
9199
9199
|
}
|
|
9200
|
-
function
|
|
9200
|
+
function ju() {
|
|
9201
9201
|
if (Wi) return Sr;
|
|
9202
9202
|
Wi = !0;
|
|
9203
9203
|
var i = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(a, l) {
|
|
@@ -9232,10 +9232,10 @@ function Nu() {
|
|
|
9232
9232
|
function _o() {
|
|
9233
9233
|
if (zi) return Er;
|
|
9234
9234
|
zi = !0;
|
|
9235
|
-
var i =
|
|
9235
|
+
var i = ju();
|
|
9236
9236
|
return Er = Function.prototype.bind || i, Er;
|
|
9237
9237
|
}
|
|
9238
|
-
function
|
|
9238
|
+
function Uu() {
|
|
9239
9239
|
if (Vi) return Ar;
|
|
9240
9240
|
Vi = !0;
|
|
9241
9241
|
var i = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = _o();
|
|
@@ -9244,7 +9244,7 @@ function ju() {
|
|
|
9244
9244
|
function Qt() {
|
|
9245
9245
|
if (Ki) return Ir;
|
|
9246
9246
|
Ki = !0;
|
|
9247
|
-
var i, e =
|
|
9247
|
+
var i, e = Cu(), t = Pu(), r = Ou(), o = Mu(), n = nl(), s = hr(), a = Lu(), l = Function, c = function(Y) {
|
|
9248
9248
|
try {
|
|
9249
9249
|
return l('"use strict"; return (' + Y + ").constructor;")();
|
|
9250
9250
|
} catch {
|
|
@@ -9267,7 +9267,7 @@ function Qt() {
|
|
|
9267
9267
|
return d;
|
|
9268
9268
|
}
|
|
9269
9269
|
}
|
|
9270
|
-
})() : d, g =
|
|
9270
|
+
})() : d, g = Ru()(), f = Nu()(), b = Object.getPrototypeOf || (f ? function(Y) {
|
|
9271
9271
|
return Y.__proto__;
|
|
9272
9272
|
} : null), y = {}, w = typeof Uint8Array > "u" || !b ? i : b(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? i : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? i : ArrayBuffer, "%ArrayIteratorPrototype%": g && b ? b([][Symbol.iterator]()) : i, "%AsyncFromSyncIteratorPrototype%": i, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? i : Atomics, "%BigInt%": typeof BigInt > "u" ? i : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? i : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? i : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? i : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? i : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? i : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? i : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? i : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? i : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? i : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": g && b ? b(b([][Symbol.iterator]())) : i, "%JSON%": typeof JSON == "object" ? JSON : i, "%Map%": typeof Map > "u" ? i : Map, "%MapIteratorPrototype%": typeof Map > "u" || !g || !b ? i : b((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? i : Promise, "%Proxy%": typeof Proxy > "u" ? i : Proxy, "%RangeError%": r, "%ReferenceError%": o, "%Reflect%": typeof Reflect > "u" ? i : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? i : Set, "%SetIteratorPrototype%": typeof Set > "u" || !g || !b ? i : b((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? i : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": g && b ? b(""[Symbol.iterator]()) : i, "%Symbol%": g ? Symbol : i, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": s, "%Uint8Array%": typeof Uint8Array > "u" ? i : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? i : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? i : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? i : Uint32Array, "%URIError%": a, "%WeakMap%": typeof WeakMap > "u" ? i : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? i : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? i : WeakSet };
|
|
9273
9273
|
if (b) try {
|
|
@@ -9289,7 +9289,7 @@ function Qt() {
|
|
|
9289
9289
|
X && b && (ee = b(X.prototype));
|
|
9290
9290
|
}
|
|
9291
9291
|
return m[W] = ee, ee;
|
|
9292
|
-
}, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = _o(), E =
|
|
9292
|
+
}, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = _o(), E = Uu(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), O = S.call(Function.call, String.prototype.replace), B = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, M = /\\(\\)?/g, U = function(Y) {
|
|
9293
9293
|
var W = B(Y, 0, 1), ee = B(Y, -1);
|
|
9294
9294
|
if (W === "%" && ee !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
|
|
9295
9295
|
if (ee === "%" && W !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
|
|
@@ -9353,7 +9353,7 @@ function il() {
|
|
|
9353
9353
|
}
|
|
9354
9354
|
return Cr = e, Cr;
|
|
9355
9355
|
}
|
|
9356
|
-
function
|
|
9356
|
+
function Du() {
|
|
9357
9357
|
if (Ji) return Pr;
|
|
9358
9358
|
Ji = !0;
|
|
9359
9359
|
var i = ko(), e = nl(), t = hr(), r = il();
|
|
@@ -9370,7 +9370,7 @@ function Uu() {
|
|
|
9370
9370
|
else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9371
9371
|
}, Pr;
|
|
9372
9372
|
}
|
|
9373
|
-
function
|
|
9373
|
+
function Bu() {
|
|
9374
9374
|
if (Qi) return Or;
|
|
9375
9375
|
Qi = !0;
|
|
9376
9376
|
var i = ko(), e = function() {
|
|
@@ -9385,10 +9385,10 @@ function Du() {
|
|
|
9385
9385
|
}
|
|
9386
9386
|
}, Or = e, Or;
|
|
9387
9387
|
}
|
|
9388
|
-
function
|
|
9388
|
+
function Fu() {
|
|
9389
9389
|
if (Xi) return Mr;
|
|
9390
9390
|
Xi = !0;
|
|
9391
|
-
var i = Qt(), e =
|
|
9391
|
+
var i = Qt(), e = Du(), t = Bu()(), r = il(), o = hr(), n = i("%Math.floor%");
|
|
9392
9392
|
return Mr = function(s, a) {
|
|
9393
9393
|
if (typeof s != "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");
|
|
@@ -9400,10 +9400,10 @@ function Bu() {
|
|
|
9400
9400
|
return (c || u || !l) && (t ? e(s, "length", a, !0, !0) : e(s, "length", a)), s;
|
|
9401
9401
|
}, Mr;
|
|
9402
9402
|
}
|
|
9403
|
-
function
|
|
9403
|
+
function $u() {
|
|
9404
9404
|
if (Zi) return Wt;
|
|
9405
9405
|
Zi = !0;
|
|
9406
|
-
var i = _o(), e = Qt(), t =
|
|
9406
|
+
var i = _o(), e = Qt(), t = Fu(), r = hr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), s = e("%Reflect.apply%", !0) || i.call(n, o), a = ko(), l = e("%Math.max%");
|
|
9407
9407
|
Wt = function(u) {
|
|
9408
9408
|
if (typeof u != "function") throw new r("a function is required");
|
|
9409
9409
|
var d = s(i, n, arguments);
|
|
@@ -9414,27 +9414,27 @@ function Fu() {
|
|
|
9414
9414
|
};
|
|
9415
9415
|
return a ? a(Wt, "apply", { value: c }) : Wt.apply = c, Wt;
|
|
9416
9416
|
}
|
|
9417
|
-
function
|
|
9417
|
+
function qu() {
|
|
9418
9418
|
if (eo) return Lr;
|
|
9419
9419
|
eo = !0;
|
|
9420
|
-
var i = Qt(), e =
|
|
9420
|
+
var i = Qt(), e = $u(), t = e(i("String.prototype.indexOf"));
|
|
9421
9421
|
return Lr = function(r, o) {
|
|
9422
9422
|
var n = i(r, !!o);
|
|
9423
9423
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9424
9424
|
}, Lr;
|
|
9425
9425
|
}
|
|
9426
|
-
var Ai, Ii, Ti, Ci, Pi, Oi, Mi, Li, Ri, Ni, ji, Ui, Di, Bi, Fi, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Pr, Ji, Or, Qi, Mr, Xi, Wt, Zi, Lr, eo,
|
|
9426
|
+
var Ai, Ii, Ti, Ci, Pi, Oi, Mi, Li, Ri, Ni, ji, Ui, Di, Bi, Fi, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Pr, Ji, Or, Qi, Mr, Xi, Wt, Zi, Lr, eo, Hu = Je(() => {
|
|
9427
9427
|
le(), ue(), ce(), Ai = {}, Ii = !1, Ti = {}, Ci = !1, Pi = {}, Oi = !1, Mi = {}, Li = !1, Ri = {}, Ni = !1, ji = {}, Ui = !1, Di = {}, Bi = !1, Fi = {}, $i = !1, kr = {}, qi = !1, xr = {}, Hi = !1, Sr = {}, Wi = !1, Er = {}, zi = !1, Ar = {}, Vi = !1, Ir = {}, Ki = !1, Tr = {}, Gi = !1, Cr = {}, Yi = !1, Pr = {}, Ji = !1, Or = {}, Qi = !1, Mr = {}, Xi = !1, Wt = {}, Zi = !1, Lr = {}, eo = !1;
|
|
9428
9428
|
});
|
|
9429
9429
|
function xo(i) {
|
|
9430
9430
|
throw new Error("Node.js process " + i + " is not supported by JSPM core outside of Node.js");
|
|
9431
9431
|
}
|
|
9432
|
-
function
|
|
9432
|
+
function Wu() {
|
|
9433
9433
|
!jt || !Rt || (jt = !1, Rt.length ? ct = Rt.concat(ct) : lr = -1, ct.length && ol());
|
|
9434
9434
|
}
|
|
9435
9435
|
function ol() {
|
|
9436
9436
|
if (!jt) {
|
|
9437
|
-
var i = setTimeout(
|
|
9437
|
+
var i = setTimeout(Wu, 0);
|
|
9438
9438
|
jt = !0;
|
|
9439
9439
|
for (var e = ct.length; e; ) {
|
|
9440
9440
|
for (Rt = ct, ct = []; ++lr < e; ) Rt && Rt[lr].run();
|
|
@@ -9443,7 +9443,7 @@ function ol() {
|
|
|
9443
9443
|
Rt = null, jt = !1, clearTimeout(i);
|
|
9444
9444
|
}
|
|
9445
9445
|
}
|
|
9446
|
-
function
|
|
9446
|
+
function zu(i) {
|
|
9447
9447
|
var e = new Array(arguments.length - 1);
|
|
9448
9448
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
9449
9449
|
ct.push(new sl(i, e)), ct.length === 1 && !jt && setTimeout(ol, 0);
|
|
@@ -9453,25 +9453,25 @@ function sl(i, e) {
|
|
|
9453
9453
|
}
|
|
9454
9454
|
function We() {
|
|
9455
9455
|
}
|
|
9456
|
-
function
|
|
9456
|
+
function Vu(i) {
|
|
9457
9457
|
xo("_linkedBinding");
|
|
9458
9458
|
}
|
|
9459
|
-
function
|
|
9459
|
+
function Ku(i) {
|
|
9460
9460
|
xo("dlopen");
|
|
9461
9461
|
}
|
|
9462
|
-
function
|
|
9462
|
+
function Gu() {
|
|
9463
9463
|
return [];
|
|
9464
9464
|
}
|
|
9465
|
-
function
|
|
9465
|
+
function Yu() {
|
|
9466
9466
|
return [];
|
|
9467
9467
|
}
|
|
9468
|
-
function
|
|
9468
|
+
function Ju(i, e) {
|
|
9469
9469
|
if (!i) throw new Error(e || "assertion error");
|
|
9470
9470
|
}
|
|
9471
|
-
function
|
|
9471
|
+
function Qu() {
|
|
9472
9472
|
return !1;
|
|
9473
9473
|
}
|
|
9474
|
-
function
|
|
9474
|
+
function Xu() {
|
|
9475
9475
|
return pt.now() / 1e3;
|
|
9476
9476
|
}
|
|
9477
9477
|
function nn(i) {
|
|
@@ -9481,7 +9481,7 @@ function nn(i) {
|
|
|
9481
9481
|
function kt() {
|
|
9482
9482
|
return So;
|
|
9483
9483
|
}
|
|
9484
|
-
function
|
|
9484
|
+
function Zu(i) {
|
|
9485
9485
|
return [];
|
|
9486
9486
|
}
|
|
9487
9487
|
var ct, jt, Rt, lr, jo, Uo, Do, Bo, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, ts, rs, mr, ns, is, os, ss, as, ls, cs, us, ds, hs, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, As, Is, pt, on, Rr, Ts, Cs, Ps, Os, Ms, Ls, Rs, Ns, js, Us, Ds, So, al = Je(() => {
|
|
@@ -9501,9 +9501,9 @@ var ct, jt, Rt, lr, jo, Uo, Do, Bo, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo,
|
|
|
9501
9501
|
}, ns = mr, is = mr, os = We, ss = We, as = We, ls = {}, cs = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, us = We, ds = We, hs = We, fs = We, ps = We, ms = We, gs = We, bs = void 0, ys = void 0, vs = void 0, ws = We, _s = 2, ks = 1, xs = "/bin/usr/node", Ss = 9229, Es = "node", As = [], Is = We, pt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, pt.now === void 0 && (on = Date.now(), pt.timing && pt.timing.navigationStart && (on = pt.timing.navigationStart), pt.now = () => Date.now() - on), Rr = 1e9, nn.bigint = function(i) {
|
|
9502
9502
|
var e = nn(i);
|
|
9503
9503
|
return typeof BigInt > "u" ? e[0] * Rr + e[1] : BigInt(e[0] * Rr) + BigInt(e[1]);
|
|
9504
|
-
}, Ts = 10, Cs = {}, Ps = 0, Os = kt, Ms = kt, Ls = kt, Rs = kt, Ns = kt, js = We, Us = kt, Ds = kt, So = { version: qo, versions: Ho, arch: Uo, platform: Do, release: Yo, _rawDebug: Jo, moduleLoadList: Qo, binding: zo, _linkedBinding:
|
|
9504
|
+
}, Ts = 10, Cs = {}, Ps = 0, Os = kt, Ms = kt, Ls = kt, Rs = kt, Ns = kt, js = We, Us = kt, Ds = kt, So = { version: qo, versions: Ho, arch: Uo, platform: Do, release: Yo, _rawDebug: Jo, moduleLoadList: Qo, binding: zo, _linkedBinding: Vu, _events: Cs, _eventsCount: Ps, _maxListeners: Ts, on: kt, addListener: Os, once: Ms, off: Ls, removeListener: Rs, removeAllListeners: Ns, emit: js, prependListener: Us, prependOnceListener: Ds, listeners: Zu, domain: Xo, _exiting: Zo, config: es, dlopen: Ku, uptime: Xu, _getActiveRequests: Gu, _getActiveHandles: Yu, reallyExit: ts, _kill: rs, cpuUsage: mr, resourceUsage: ns, memoryUsage: is, kill: os, exit: ss, openStdin: as, allowedNodeEnvironmentFlags: ls, assert: Ju, features: cs, _fatalExceptions: us, setUncaughtExceptionCaptureCallback: ds, hasUncaughtExceptionCaptureCallback: Qu, emitWarning: Wo, nextTick: zu, _tickCallback: hs, _debugProcess: fs, _debugEnd: ps, _startProfilerIdleNotifier: ms, _stopProfilerIdleNotifier: gs, stdout: bs, stdin: vs, stderr: ys, abort: ws, umask: Vo, chdir: Go, cwd: Ko, env: Bo, title: jo, argv: Fo, execArgv: $o, pid: _s, ppid: ks, execPath: xs, debugPort: Ss, hrtime: nn, argv0: Es, _preload_modules: As, setSourceMapsEnabled: Is };
|
|
9505
9505
|
});
|
|
9506
|
-
function
|
|
9506
|
+
function ed() {
|
|
9507
9507
|
if (to) return Nr;
|
|
9508
9508
|
to = !0;
|
|
9509
9509
|
var i = So;
|
|
@@ -9654,11 +9654,11 @@ function Zu() {
|
|
|
9654
9654
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9655
9655
|
return o.posix = o, Nr = o, Nr;
|
|
9656
9656
|
}
|
|
9657
|
-
var Nr, to, ro,
|
|
9658
|
-
le(), ue(), ce(), al(), Nr = {}, to = !1, ro =
|
|
9657
|
+
var Nr, to, ro, td = Je(() => {
|
|
9658
|
+
le(), ue(), ce(), al(), Nr = {}, to = !1, ro = ed();
|
|
9659
9659
|
}), ll = {};
|
|
9660
9660
|
Gt(ll, { URL: () => yl, Url: () => fl, default: () => ze, fileURLToPath: () => ul, format: () => pl, parse: () => bl, pathToFileURL: () => dl, resolve: () => ml, resolveObject: () => gl });
|
|
9661
|
-
function
|
|
9661
|
+
function rd() {
|
|
9662
9662
|
if (no) return jr;
|
|
9663
9663
|
no = !0;
|
|
9664
9664
|
var i = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = i && e && typeof e.get == "function" ? e.get : null, r = i && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, s = 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, d = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, g = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, b = 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, S = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, P = Array.prototype.slice, O = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, M = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === M || !0) ? Symbol.toStringTag : null, oe = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(V) {
|
|
@@ -9953,10 +9953,10 @@ function td() {
|
|
|
9953
9953
|
}
|
|
9954
9954
|
return jr;
|
|
9955
9955
|
}
|
|
9956
|
-
function
|
|
9956
|
+
function nd() {
|
|
9957
9957
|
if (io) return Dr;
|
|
9958
9958
|
io = !0;
|
|
9959
|
-
var i = Qt(), e =
|
|
9959
|
+
var i = Qt(), e = qu(), t = rd(), r = hr(), o = i("%WeakMap%", !0), n = i("%Map%", !0), s = 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), d = 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
|
}, g = function(y, w) {
|
|
9962
9962
|
var m = p(y, w);
|
|
@@ -10098,10 +10098,10 @@ function cl() {
|
|
|
10098
10098
|
};
|
|
10099
10099
|
return Fr = { arrayToObject: n, assign: a, combine: f, compact: d, decode: l, encode: u, isBuffer: g, isRegExp: p, maybeMap: b, merge: s }, Fr;
|
|
10100
10100
|
}
|
|
10101
|
-
function
|
|
10101
|
+
function id() {
|
|
10102
10102
|
if (ao) return $r;
|
|
10103
10103
|
ao = !0;
|
|
10104
|
-
var i =
|
|
10104
|
+
var i = nd(), e = cl(), t = Eo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(b) {
|
|
10105
10105
|
return b + "[]";
|
|
10106
10106
|
}, comma: "comma", indices: function(b, y) {
|
|
10107
10107
|
return b + "[" + y + "]";
|
|
@@ -10190,7 +10190,7 @@ function nd() {
|
|
|
10190
10190
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), B.length > 0 ? T + B : "";
|
|
10191
10191
|
}, $r;
|
|
10192
10192
|
}
|
|
10193
|
-
function
|
|
10193
|
+
function od() {
|
|
10194
10194
|
if (lo) return qr;
|
|
10195
10195
|
lo = !0;
|
|
10196
10196
|
var i = cl(), 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: i.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
|
|
@@ -10263,13 +10263,13 @@ function id() {
|
|
|
10263
10263
|
return f.allowSparse === !0 ? y : i.compact(y);
|
|
10264
10264
|
}, qr;
|
|
10265
10265
|
}
|
|
10266
|
-
function
|
|
10266
|
+
function sd() {
|
|
10267
10267
|
if (co) return Hr;
|
|
10268
10268
|
co = !0;
|
|
10269
|
-
var i =
|
|
10269
|
+
var i = id(), e = od(), t = Eo();
|
|
10270
10270
|
return Hr = { formats: t, parse: e, stringify: i }, Hr;
|
|
10271
10271
|
}
|
|
10272
|
-
function
|
|
10272
|
+
function ad() {
|
|
10273
10273
|
if (uo) return It;
|
|
10274
10274
|
uo = !0;
|
|
10275
10275
|
var i = At;
|
|
@@ -10277,7 +10277,7 @@ function sd() {
|
|
|
10277
10277
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
10278
10278
|
}
|
|
10279
10279
|
var t = /^([a-z0-9.+-]+:)/i, r = /:[0-9]*$/, o = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
|
|
10280
|
-
`, " "], s = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(s), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, d = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, g = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, b = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y =
|
|
10280
|
+
`, " "], s = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(s), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, d = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, g = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, b = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = sd();
|
|
10281
10281
|
function w(v, S, E) {
|
|
10282
10282
|
if (v && typeof v == "object" && v instanceof e) return v;
|
|
10283
10283
|
var I = new e();
|
|
@@ -10434,9 +10434,9 @@ function ul(i) {
|
|
|
10434
10434
|
if (typeof i == "string") i = new URL(i);
|
|
10435
10435
|
else if (!(i instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
|
|
10436
10436
|
if (i.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
|
|
10437
|
-
return Vr ?
|
|
10437
|
+
return Vr ? ld(i) : cd(i);
|
|
10438
10438
|
}
|
|
10439
|
-
function
|
|
10439
|
+
function ld(i) {
|
|
10440
10440
|
let e = i.hostname, t = i.pathname;
|
|
10441
10441
|
for (let r = 0; r < t.length; r++) if (t[r] === "%") {
|
|
10442
10442
|
let o = t.codePointAt(r + 2) || 32;
|
|
@@ -10449,7 +10449,7 @@ function ad(i) {
|
|
|
10449
10449
|
return t.slice(1);
|
|
10450
10450
|
}
|
|
10451
10451
|
}
|
|
10452
|
-
function
|
|
10452
|
+
function cd(i) {
|
|
10453
10453
|
if (i.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname");
|
|
10454
10454
|
let e = i.pathname;
|
|
10455
10455
|
for (let t = 0; t < e.length; t++) if (e[t] === "%") {
|
|
@@ -10465,9 +10465,9 @@ function dl(i) {
|
|
|
10465
10465
|
return e.includes("%") && (e = e.replace(Sl, "%25")), !Vr && e.includes("\\") && (e = e.replace(El, "%5C")), e.includes(`
|
|
10466
10466
|
`) && (e = e.replace(Al, "%0A")), e.includes("\r") && (e = e.replace(Il, "%0D")), e.includes(" ") && (e = e.replace(Tl, "%09")), r.pathname = e, r;
|
|
10467
10467
|
}
|
|
10468
|
-
var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze, Bs, fl, pl, ml, gl, bl, yl, vl, wl, _l, kl, Vr, xl, Sl, El, Al, Il, Tl,
|
|
10469
|
-
le(), ue(), ce(),
|
|
10470
|
-
}),
|
|
10468
|
+
var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze, Bs, fl, pl, ml, gl, bl, yl, vl, wl, _l, kl, Vr, xl, Sl, El, Al, Il, Tl, ud = Je(() => {
|
|
10469
|
+
le(), ue(), ce(), Iu(), Hu(), td(), al(), hl = Object.freeze(/* @__PURE__ */ Object.create(null)), jr = {}, no = !1, Ur = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Dr = {}, io = !1, Br = {}, oo = !1, Fr = {}, so = !1, $r = {}, ao = !1, qr = {}, lo = !1, Hr = {}, co = !1, It = {}, uo = !1, ze = ad(), ze.parse, ze.resolve, ze.resolveObject, ze.format, ze.Url, Bs = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, ze.URL = typeof URL < "u" ? URL : null, ze.pathToFileURL = dl, ze.fileURLToPath = ul, fl = ze.Url, pl = ze.format, ml = ze.resolve, gl = ze.resolveObject, bl = ze.parse, yl = ze.URL, vl = 92, wl = 47, _l = 97, kl = 122, Vr = Bs === "win32", xl = /\//g, Sl = /%/g, El = /\\/g, Al = /\n/g, Il = /\r/g, Tl = /\t/g;
|
|
10470
|
+
}), dd = pe((i, e) => {
|
|
10471
10471
|
le(), ue(), ce(), e.exports = function() {
|
|
10472
10472
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
10473
10473
|
};
|
|
@@ -10521,7 +10521,7 @@ var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze,
|
|
|
10521
10521
|
return w && w.__esModule ? w : { default: w };
|
|
10522
10522
|
};
|
|
10523
10523
|
Object.defineProperty(i, "__esModule", { value: !0 }), i.streamBuilder = i.browserStreamBuilder = void 0;
|
|
10524
|
-
var t = ($e(), Re(Fe)), r = e(
|
|
10524
|
+
var t = ($e(), Re(Fe)), r = e(dd()), o = e(gt()), n = Bt(), s = e(Zr()), a = Ao(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
|
|
10525
10525
|
function u(w, m) {
|
|
10526
10526
|
let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
|
|
10527
10527
|
return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
|
|
@@ -10632,7 +10632,7 @@ var Cl, Pl = Je(() => {
|
|
|
10632
10632
|
i.default = s;
|
|
10633
10633
|
}), Ml = {};
|
|
10634
10634
|
Gt(Ml, { default: () => Ll });
|
|
10635
|
-
var Ll,
|
|
10635
|
+
var Ll, hd = Je(() => {
|
|
10636
10636
|
le(), ue(), ce(), Ll = {};
|
|
10637
10637
|
}), $s = pe((i) => {
|
|
10638
10638
|
le(), ue(), ce();
|
|
@@ -10640,7 +10640,7 @@ var Ll, dd = Je(() => {
|
|
|
10640
10640
|
return c && c.__esModule ? c : { default: c };
|
|
10641
10641
|
};
|
|
10642
10642
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
10643
|
-
var t = (
|
|
10643
|
+
var t = (hd(), Re(Ml)), r = e((Pl(), Re(Io))), o = e(gt()), n = e(Ol()), s = (0, o.default)("mqttjs:tls");
|
|
10644
10644
|
function a(c) {
|
|
10645
10645
|
let { host: u, port: d, socksProxy: p, ...g } = c;
|
|
10646
10646
|
if (p !== void 0) {
|
|
@@ -10771,13 +10771,13 @@ var Ll, dd = Je(() => {
|
|
|
10771
10771
|
return o = f.my, o.connectSocket({ url: y, protocols: b }), n = l(), s = new r.BufferedDuplex(f, n, o), d(), s;
|
|
10772
10772
|
};
|
|
10773
10773
|
i.default = p;
|
|
10774
|
-
}),
|
|
10774
|
+
}), fd = pe((i) => {
|
|
10775
10775
|
le(), ue(), ce();
|
|
10776
10776
|
var e = i && i.__importDefault || function(d) {
|
|
10777
10777
|
return d && d.__esModule ? d : { default: d };
|
|
10778
10778
|
};
|
|
10779
10779
|
Object.defineProperty(i, "__esModule", { value: !0 }), i.connectAsync = u;
|
|
10780
|
-
var t = e(gt()), r = e((
|
|
10780
|
+
var t = e(gt()), r = e((ud(), Re(ll))), o = e(xi()), n = e(Zr());
|
|
10781
10781
|
typeof Ne?.nextTick != "function" && (Ne.nextTick = setImmediate);
|
|
10782
10782
|
var s = (0, t.default)("mqttjs"), a = null;
|
|
10783
10783
|
function l(d) {
|
|
@@ -10885,11 +10885,11 @@ var Ll, dd = Je(() => {
|
|
|
10885
10885
|
i.MqttClient = s.default;
|
|
10886
10886
|
var a = n(Ya());
|
|
10887
10887
|
i.DefaultMessageIdProvider = a.default;
|
|
10888
|
-
var l = n(
|
|
10888
|
+
var l = n(Eu());
|
|
10889
10889
|
i.UniqueMessageIdProvider = l.default;
|
|
10890
10890
|
var c = n(Ma());
|
|
10891
10891
|
i.Store = c.default;
|
|
10892
|
-
var u = r(
|
|
10892
|
+
var u = r(fd());
|
|
10893
10893
|
i.connect = u.default, Object.defineProperty(i, "connectAsync", { enumerable: !0, get: function() {
|
|
10894
10894
|
return u.connectAsync;
|
|
10895
10895
|
} });
|
|
@@ -10899,7 +10899,7 @@ var Ll, dd = Je(() => {
|
|
|
10899
10899
|
Object.defineProperty(i, "ReasonCodes", { enumerable: !0, get: function() {
|
|
10900
10900
|
return p.ReasonCodes;
|
|
10901
10901
|
} });
|
|
10902
|
-
}),
|
|
10902
|
+
}), pd = pe((i) => {
|
|
10903
10903
|
le(), ue(), ce();
|
|
10904
10904
|
var e = i && i.__createBinding || (Object.create ? function(s, a, l, c) {
|
|
10905
10905
|
c === void 0 && (c = l);
|
|
@@ -10934,25 +10934,25 @@ var Ll, dd = Je(() => {
|
|
|
10934
10934
|
var n = r(Ws());
|
|
10935
10935
|
i.default = n, o(Ws(), i);
|
|
10936
10936
|
});
|
|
10937
|
-
const
|
|
10938
|
-
const
|
|
10937
|
+
const md = pd();
|
|
10938
|
+
const gd = {
|
|
10939
10939
|
inbound: "apps/{appId}/users/{userId}/messages/{conversationId}/clientadded",
|
|
10940
10940
|
inboundUpdate: "apps/{appId}/users/{userId}/messages/{conversationId}/{messageId}/update",
|
|
10941
10941
|
outbound: "apps/{appId}/outgoing/users/{userId}/messages/{conversationId}/outgoing",
|
|
10942
10942
|
presence: "apps/{appId}/users/{userId}/presence/{clientId}",
|
|
10943
10943
|
wildcardSubscribe: "apps/{appId}/users/{userId}/#"
|
|
10944
|
-
},
|
|
10944
|
+
}, bd = 300, yd = {
|
|
10945
10945
|
templateId: "7",
|
|
10946
10946
|
type: "link",
|
|
10947
10947
|
isDeepLink: !0
|
|
10948
|
-
},
|
|
10948
|
+
}, vd = {
|
|
10949
10949
|
channelType: "group",
|
|
10950
10950
|
channel: "chat21",
|
|
10951
10951
|
requestChannel: "chat21",
|
|
10952
10952
|
platform: "WEBSITE",
|
|
10953
10953
|
medium: "CHATBUDDY"
|
|
10954
10954
|
};
|
|
10955
|
-
class
|
|
10955
|
+
class wd {
|
|
10956
10956
|
client = null;
|
|
10957
10957
|
config;
|
|
10958
10958
|
currentToken;
|
|
@@ -10979,7 +10979,7 @@ class vd {
|
|
|
10979
10979
|
inboundRegex;
|
|
10980
10980
|
inboundUpdateRegex;
|
|
10981
10981
|
constructor(e) {
|
|
10982
|
-
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...
|
|
10982
|
+
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...gd, ...e.topicTemplates ?? {} }, this.maxReconnectAttempts = e.maxReconnectAttempts ?? 1 / 0, this.reconnectMaxDelayMs = e.reconnectMaxDelayMs ?? 3e4, this.inboundRegex = this.buildTopicRegex(
|
|
10983
10983
|
this.topics.inbound,
|
|
10984
10984
|
["conversationId"]
|
|
10985
10985
|
), this.inboundUpdateRegex = this.buildTopicRegex(
|
|
@@ -11031,7 +11031,7 @@ class vd {
|
|
|
11031
11031
|
() => c("connect-timeout"),
|
|
11032
11032
|
r + 500
|
|
11033
11033
|
);
|
|
11034
|
-
this.client =
|
|
11034
|
+
this.client = md.connect(this.config.mqttEndpoint, o), this.client.on("connect", () => {
|
|
11035
11035
|
if (this.connectedAt = Date.now(), a || l(() => n()), this.debugLog("CONNECT", { endpoint: this.config.mqttEndpoint, clientId: this.clientId }), this.notifyStateChange(!0), this.config.enablePresence !== !1) {
|
|
11036
11036
|
const d = this.config.presencePayloadConnected ?? { connected: !0 };
|
|
11037
11037
|
this.client.publish(e, JSON.stringify(d), { qos: 0, retain: !1 }), this.debugLog("PUBLISH", { topic: e, payload: d });
|
|
@@ -11096,9 +11096,9 @@ class vd {
|
|
|
11096
11096
|
publishFileMessage(e, t) {
|
|
11097
11097
|
if (!this.client) return;
|
|
11098
11098
|
const r = {
|
|
11099
|
-
...
|
|
11099
|
+
...yd,
|
|
11100
11100
|
...this.config.fileTemplate ?? {},
|
|
11101
|
-
...
|
|
11101
|
+
..._d(t)
|
|
11102
11102
|
}, o = {
|
|
11103
11103
|
metadata: {
|
|
11104
11104
|
contentType: "300",
|
|
@@ -11137,7 +11137,7 @@ class vd {
|
|
|
11137
11137
|
* Send a read receipt for a message. Tiledesk widgets publish
|
|
11138
11138
|
* `{"status":300}` to apps/{appId}/users/{userId}/messages/{convId}/{msgId}/update.
|
|
11139
11139
|
*/
|
|
11140
|
-
publishReadReceipt(e, t, r =
|
|
11140
|
+
publishReadReceipt(e, t, r = bd) {
|
|
11141
11141
|
if (!this.client) return;
|
|
11142
11142
|
const o = this.renderTemplate(this.topics.inboundUpdate, { conversationId: e, messageId: t });
|
|
11143
11143
|
this.client.publish(o, JSON.stringify({ status: r }), {
|
|
@@ -11268,7 +11268,7 @@ class vd {
|
|
|
11268
11268
|
this.messageHandlers.forEach((c) => c(o, l));
|
|
11269
11269
|
}
|
|
11270
11270
|
buildOutgoingEnvelope(e, t) {
|
|
11271
|
-
const r = { ...
|
|
11271
|
+
const r = { ...vd, ...this.config.messageDefaults ?? {} }, o = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), s = {
|
|
11272
11272
|
projectId: this.config.projectId,
|
|
11273
11273
|
...r.departmentId ? { departmentId: r.departmentId } : {},
|
|
11274
11274
|
...this.config.userName ? { userFullname: this.config.userName } : {},
|
|
@@ -11342,16 +11342,16 @@ class vd {
|
|
|
11342
11342
|
return new RegExp(`^${r}$`);
|
|
11343
11343
|
}
|
|
11344
11344
|
}
|
|
11345
|
-
function
|
|
11345
|
+
function _d(i) {
|
|
11346
11346
|
const e = {};
|
|
11347
11347
|
for (const [t, r] of Object.entries(i))
|
|
11348
11348
|
r !== void 0 && (e[t] = r);
|
|
11349
11349
|
return e;
|
|
11350
11350
|
}
|
|
11351
|
-
function
|
|
11351
|
+
function kd(i, e) {
|
|
11352
11352
|
return (i.sender ?? "").toString() === e;
|
|
11353
11353
|
}
|
|
11354
|
-
function
|
|
11354
|
+
function xd(i, e) {
|
|
11355
11355
|
const t = (i.sender ?? "").toString(), r = e.systemSenders ?? ["metadata", "system"], o = e.botSenderPrefix ?? "bot_";
|
|
11356
11356
|
return t ? t === e.userId ? "user" : t.startsWith(o) ? "assistant" : r.includes(t) ? "system" : "agent" : "system";
|
|
11357
11357
|
}
|
|
@@ -11372,7 +11372,7 @@ function Rl(i) {
|
|
|
11372
11372
|
}
|
|
11373
11373
|
return e;
|
|
11374
11374
|
}
|
|
11375
|
-
function
|
|
11375
|
+
function Sd(i) {
|
|
11376
11376
|
const e = Rl(i);
|
|
11377
11377
|
if (e.contentType !== "300") return null;
|
|
11378
11378
|
const t = e.payload, r = t && Array.isArray(t.elements) ? t.elements : null;
|
|
@@ -11386,10 +11386,10 @@ function xd(i) {
|
|
|
11386
11386
|
};
|
|
11387
11387
|
}
|
|
11388
11388
|
function zs(i, e, t) {
|
|
11389
|
-
const r =
|
|
11389
|
+
const r = xd(i, t), o = Rl(i), n = Sd(i);
|
|
11390
11390
|
let s = "";
|
|
11391
11391
|
o.innerMessage ? s = o.innerMessage : typeof i.text == "string" && (i.text.trim().startsWith("{") ? o.contentType !== "300" && (s = i.text) : s = i.text);
|
|
11392
|
-
const a = typeof i.message_id == "string" ? i.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof i.timestamp == "number" ? new Date(i.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof i.status == "number" ?
|
|
11392
|
+
const a = typeof i.message_id == "string" ? i.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof i.timestamp == "number" ? new Date(i.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof i.status == "number" ? Ed(i.status) : "delivered", d = {
|
|
11393
11393
|
id: a,
|
|
11394
11394
|
externalId: a,
|
|
11395
11395
|
conversationId: e,
|
|
@@ -11416,10 +11416,10 @@ function zs(i, e, t) {
|
|
|
11416
11416
|
}
|
|
11417
11417
|
]), { message: d, template: o };
|
|
11418
11418
|
}
|
|
11419
|
-
function
|
|
11419
|
+
function Ed(i) {
|
|
11420
11420
|
return i < 0 ? "error" : i >= 250 ? "read" : i >= 150 ? "delivered" : "sent";
|
|
11421
11421
|
}
|
|
11422
|
-
class
|
|
11422
|
+
class Ad extends ta {
|
|
11423
11423
|
connection = null;
|
|
11424
11424
|
tiledesk = null;
|
|
11425
11425
|
api;
|
|
@@ -11432,7 +11432,7 @@ class Ed extends ta {
|
|
|
11432
11432
|
historyAdapter;
|
|
11433
11433
|
tiledeskUnsubs = [];
|
|
11434
11434
|
constructor(e, t) {
|
|
11435
|
-
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new
|
|
11435
|
+
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new oc(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new sc(), this.conversationManager = new ac(e.conversationId), this.usesAikaara() && (this.connection = new ic(e), this.connection.on("connection:state", (r) => {
|
|
11436
11436
|
this.emit("connection:state", r), this.config.onConnectionStateChange?.(r);
|
|
11437
11437
|
}), this.connection.on("error", (r) => {
|
|
11438
11438
|
this.emit("error", r), this.config.onError?.(r);
|
|
@@ -11452,7 +11452,7 @@ class Ed extends ta {
|
|
|
11452
11452
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledesk` (TiledeskTransportConfig)");
|
|
11453
11453
|
if (!t?.userId)
|
|
11454
11454
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledeskIdentity.userId`");
|
|
11455
|
-
this.tiledesk = new
|
|
11455
|
+
this.tiledesk = new wd({
|
|
11456
11456
|
...e,
|
|
11457
11457
|
userId: t.userId,
|
|
11458
11458
|
userName: t.userName ?? e.userName,
|
|
@@ -11668,7 +11668,7 @@ class Ed extends ta {
|
|
|
11668
11668
|
systemSenders: this.config.tiledesk?.messageDefaults?.attributes?.systemSenders
|
|
11669
11669
|
});
|
|
11670
11670
|
if (this.mode === "dual" && s.role === "assistant") return;
|
|
11671
|
-
if (
|
|
11671
|
+
if (kd(e, n)) {
|
|
11672
11672
|
const u = this.messageStore.reconcileOptimistic(s);
|
|
11673
11673
|
if (u) {
|
|
11674
11674
|
this.emit("message:updated", u);
|
|
@@ -11818,12 +11818,12 @@ const Vs = {
|
|
|
11818
11818
|
doc: "application/msword",
|
|
11819
11819
|
json: "application/json"
|
|
11820
11820
|
};
|
|
11821
|
-
function
|
|
11821
|
+
function Id(i) {
|
|
11822
11822
|
const e = i.lastIndexOf(".");
|
|
11823
11823
|
return e < 0 || e === i.length - 1 ? "" : i.slice(e + 1).toLowerCase();
|
|
11824
11824
|
}
|
|
11825
|
-
function
|
|
11826
|
-
const r =
|
|
11825
|
+
function Td(i, e, t) {
|
|
11826
|
+
const r = Id(i.name || "");
|
|
11827
11827
|
if (r && e && e[r]) return e[r];
|
|
11828
11828
|
const o = i.type;
|
|
11829
11829
|
return o && o.trim().length > 0 ? o : r && Vs[r] ? Vs[r] : t;
|
|
@@ -11831,7 +11831,7 @@ function Id(i, e, t) {
|
|
|
11831
11831
|
function sn(i, e) {
|
|
11832
11832
|
return i.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
11833
11833
|
}
|
|
11834
|
-
function
|
|
11834
|
+
function Cd(i, e) {
|
|
11835
11835
|
const t = e.split(".");
|
|
11836
11836
|
let r = i;
|
|
11837
11837
|
for (const o of t)
|
|
@@ -11840,11 +11840,11 @@ function Td(i, e) {
|
|
|
11840
11840
|
else return "";
|
|
11841
11841
|
return typeof r == "string" ? r : "";
|
|
11842
11842
|
}
|
|
11843
|
-
function
|
|
11843
|
+
function Pd(i) {
|
|
11844
11844
|
const e = i.signedUrlPath || "data.s3SignedUrl";
|
|
11845
11845
|
return {
|
|
11846
11846
|
async upload(t, r) {
|
|
11847
|
-
const o = t.name || `upload-${Date.now()}`, n =
|
|
11847
|
+
const o = t.name || `upload-${Date.now()}`, n = Td(
|
|
11848
11848
|
t,
|
|
11849
11849
|
i.contentTypeMap,
|
|
11850
11850
|
i.contentTypeFallback ?? "application/octet-stream"
|
|
@@ -11870,7 +11870,7 @@ function Cd(i) {
|
|
|
11870
11870
|
});
|
|
11871
11871
|
if (!d.ok)
|
|
11872
11872
|
throw new Error(`Sign request failed: ${d.status}`);
|
|
11873
|
-
const p = await d.json().catch(() => ({})), g =
|
|
11873
|
+
const p = await d.json().catch(() => ({})), g = Cd(p, e);
|
|
11874
11874
|
if (!g) throw new Error(`Sign response missing path "${e}"`);
|
|
11875
11875
|
const f = i.s3HostRewrite ? g.replace(/^https:\/\/[^/]+/i, i.s3HostRewrite) : g, b = await fetch(f, {
|
|
11876
11876
|
method: "PUT",
|
|
@@ -11937,9 +11937,9 @@ function Nl(i) {
|
|
|
11937
11937
|
}
|
|
11938
11938
|
};
|
|
11939
11939
|
}
|
|
11940
|
-
const
|
|
11941
|
-
function
|
|
11942
|
-
const e = i.apiBase.replace(/\/$/, ""), t = i.pageSize ?? 200, r = i.pathTemplate ??
|
|
11940
|
+
const Od = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
|
|
11941
|
+
function Md(i) {
|
|
11942
|
+
const e = i.apiBase.replace(/\/$/, ""), t = i.pageSize ?? 200, r = i.pathTemplate ?? Od;
|
|
11943
11943
|
return {
|
|
11944
11944
|
async fetchMessages(o, n) {
|
|
11945
11945
|
const s = r.replace("{userId}", encodeURIComponent(n.userId)).replace("{conversationId}", encodeURIComponent(o)).replace("{appId}", encodeURIComponent(n.appId ?? "tilechat")).replace("{projectId}", encodeURIComponent(n.projectId ?? "")).replace("{pageSize}", String(t)), a = s.startsWith("http") ? s : `${e}${s.startsWith("/") ? s : `/${s}`}`, l = {
|
|
@@ -11965,7 +11965,7 @@ function Od(i) {
|
|
|
11965
11965
|
}
|
|
11966
11966
|
};
|
|
11967
11967
|
}
|
|
11968
|
-
const
|
|
11968
|
+
const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9]{6}$", Nd = {
|
|
11969
11969
|
id: "house-property",
|
|
11970
11970
|
title: "House Property",
|
|
11971
11971
|
icon: "🏠",
|
|
@@ -12039,7 +12039,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12039
12039
|
}
|
|
12040
12040
|
],
|
|
12041
12041
|
submitLabel: "Save"
|
|
12042
|
-
},
|
|
12042
|
+
}, jd = {
|
|
12043
12043
|
id: "salary-hra",
|
|
12044
12044
|
title: "Salary / HRA / Allowances",
|
|
12045
12045
|
icon: "💰",
|
|
@@ -12064,7 +12064,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12064
12064
|
// Optional: the pattern check only fires on a non-empty value, so a
|
|
12065
12065
|
// blank TAN saves cleanly while a malformed one is still caught.
|
|
12066
12066
|
label: "TAN (Tax Deduction Account Number)",
|
|
12067
|
-
pattern:
|
|
12067
|
+
pattern: Ld,
|
|
12068
12068
|
maxLength: 10
|
|
12069
12069
|
}
|
|
12070
12070
|
]
|
|
@@ -12092,7 +12092,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12092
12092
|
}
|
|
12093
12093
|
],
|
|
12094
12094
|
submitLabel: "Save"
|
|
12095
|
-
},
|
|
12095
|
+
}, Ud = {
|
|
12096
12096
|
id: "deductions",
|
|
12097
12097
|
title: "Deductions",
|
|
12098
12098
|
icon: "📋",
|
|
@@ -12313,7 +12313,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12313
12313
|
}
|
|
12314
12314
|
],
|
|
12315
12315
|
submitLabel: "Save"
|
|
12316
|
-
},
|
|
12316
|
+
}, Dd = {
|
|
12317
12317
|
id: "other-sources",
|
|
12318
12318
|
title: "Income from Other Sources",
|
|
12319
12319
|
icon: "💵",
|
|
@@ -12369,7 +12369,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12369
12369
|
}
|
|
12370
12370
|
],
|
|
12371
12371
|
submitLabel: "Save"
|
|
12372
|
-
},
|
|
12372
|
+
}, Bd = {
|
|
12373
12373
|
id: "crypto-income",
|
|
12374
12374
|
title: "Crypto Income",
|
|
12375
12375
|
icon: "🪙",
|
|
@@ -12398,7 +12398,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12398
12398
|
}
|
|
12399
12399
|
],
|
|
12400
12400
|
submitLabel: "Save"
|
|
12401
|
-
},
|
|
12401
|
+
}, Fd = {
|
|
12402
12402
|
id: "business-profession",
|
|
12403
12403
|
title: "Business / Profession",
|
|
12404
12404
|
icon: "💼",
|
|
@@ -12474,7 +12474,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12474
12474
|
}
|
|
12475
12475
|
],
|
|
12476
12476
|
submitLabel: "Save"
|
|
12477
|
-
},
|
|
12477
|
+
}, $d = {
|
|
12478
12478
|
id: "agricultural-income",
|
|
12479
12479
|
title: "Agricultural Income",
|
|
12480
12480
|
icon: "🌾",
|
|
@@ -12538,7 +12538,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12538
12538
|
}
|
|
12539
12539
|
],
|
|
12540
12540
|
submitLabel: "Save"
|
|
12541
|
-
},
|
|
12541
|
+
}, qd = {
|
|
12542
12542
|
id: "bank-details",
|
|
12543
12543
|
title: "Personal / Bank Details",
|
|
12544
12544
|
icon: "🏦",
|
|
@@ -12568,7 +12568,7 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12568
12568
|
type: "text",
|
|
12569
12569
|
label: "IFSC Code",
|
|
12570
12570
|
required: !0,
|
|
12571
|
-
pattern:
|
|
12571
|
+
pattern: Rd,
|
|
12572
12572
|
maxLength: 11
|
|
12573
12573
|
}
|
|
12574
12574
|
]
|
|
@@ -12591,22 +12591,22 @@ const Md = "^[A-Z]{4}[0-9]{5}[A-Z]$", Ld = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
|
|
|
12591
12591
|
// },
|
|
12592
12592
|
],
|
|
12593
12593
|
submitLabel: "Save"
|
|
12594
|
-
},
|
|
12595
|
-
Nd,
|
|
12596
|
-
Bd,
|
|
12597
|
-
Ud,
|
|
12598
|
-
Dd,
|
|
12599
|
-
Rd,
|
|
12594
|
+
}, Hd = [
|
|
12600
12595
|
jd,
|
|
12601
12596
|
Fd,
|
|
12602
|
-
|
|
12597
|
+
Dd,
|
|
12598
|
+
Bd,
|
|
12599
|
+
Nd,
|
|
12600
|
+
Ud,
|
|
12601
|
+
$d,
|
|
12602
|
+
qd
|
|
12603
12603
|
// Hidden for now — re-enable to restore the full set:
|
|
12604
12604
|
// capitalGains,
|
|
12605
12605
|
// exemptIncome,
|
|
12606
12606
|
// taxPaidTds,
|
|
12607
12607
|
// haveAQuestion,
|
|
12608
12608
|
];
|
|
12609
|
-
function
|
|
12609
|
+
function Wd(i, e) {
|
|
12610
12610
|
const t = i || {}, r = {
|
|
12611
12611
|
userId: tt(e.userId),
|
|
12612
12612
|
assessmentYear: e.assessmentYear,
|
|
@@ -12614,13 +12614,11 @@ function Hd(i, e) {
|
|
|
12614
12614
|
// though only the bank/aadhaar section exposes it for editing.
|
|
12615
12615
|
aadhaarNumber: Ee(t.aadhaarNumber),
|
|
12616
12616
|
isRevised: e.isRevised || "N",
|
|
12617
|
-
timestamp:
|
|
12617
|
+
timestamp: ih()
|
|
12618
12618
|
};
|
|
12619
|
-
r.us80cAmount = xe(t.us80cAmount), r.us80dForSelfAndFamilyAmount = xe(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = xe(t.us80dForParentsAmount), r.hasParentOverSixty = ur(t.hasParentOverSixty), r.preventiveHealthCheckUp = xe(t.preventiveHealthCheckUp), r.medicalExpenditure = xe(t.medicalExpenditure), r.savingBankInterest = xe(t.savingBankInterest), r.fdInterest = xe(t.fdInterest), r.dividend = xe(t.dividend), r.anyOtherIncome = xe(t.anyOtherIncome), r.cryptoSellValue = xe(t.cryptoSellPrice), r.cryptoPurchaseAmount = xe(t.cryptoPurchasePrice), r.vdaPurchaseCost = xe(t.cryptoPurchasePrice);
|
|
12619
|
+
r.us80cAmount = xe(t.us80cAmount), r.us80dForSelfAndFamilyAmount = xe(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = xe(t.us80dForParentsAmount), r.hasParentOverSixty = ur(t.hasParentOverSixty), r.preventiveHealthCheckUp = xe(t.preventiveHealthCheckUp), r.medicalExpenditure = xe(t.medicalExpenditure), r.savingBankInterest = xe(t.savingBankInterest), r.fdInterest = xe(t.fdInterest), r.dividend = xe(t.dividend), r.anyOtherIncome = xe(t.anyOtherIncome), r.familyPension = xe(t.familyPension), r.cryptoSellValue = xe(t.cryptoSellPrice), r.cryptoPurchaseAmount = xe(t.cryptoPurchasePrice), r.vdaPurchaseCost = xe(t.cryptoPurchasePrice);
|
|
12620
12620
|
const o = (xe(t.bizReceiptsBank) ?? 0) + (xe(t.bizReceiptsCash) ?? 0), n = (xe(t.profReceiptsBank) ?? 0) + (xe(t.profReceiptsCash) ?? 0), s = Ee(t.bizName) !== void 0 || o > 0;
|
|
12621
|
-
r.businessName = Ee(s ? t.bizName : t.profName), r.businessAnnualTurnOver = s ? o || void 0 : n || void 0, r.agricultureDetails =
|
|
12622
|
-
income: xe(t.agricultureIncome)
|
|
12623
|
-
}, r.exemptIncomeAmount = xe(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), xe(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
|
|
12621
|
+
r.businessName = Ee(s ? t.bizName : t.profName), r.businessAnnualTurnOver = s ? o || void 0 : n || void 0, r.agricultureDetails = Dl(t), r.exemptIncomeAmount = xe(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), xe(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
|
|
12624
12622
|
{ name: Ee(t.exemptIncomeNature) ?? "Exempt income", value: String(xe(t.exemptIncome)) }
|
|
12625
12623
|
]), r.bankAccountNumber = Ee(t.bankAccountNumber), r.bankIfscCode = Ee(t.bankIfscCode), (Ee(t.bankAccountNumber) || Ee(t.bankIfscCode)) && (r.bankDetails = [
|
|
12626
12624
|
{ bankAccountNumber: Ee(t.bankAccountNumber), bankIfscCode: Ee(t.bankIfscCode) }
|
|
@@ -12633,9 +12631,9 @@ function Hd(i, e) {
|
|
|
12633
12631
|
amount: xe(t.immovableAssetCost)
|
|
12634
12632
|
};
|
|
12635
12633
|
Object.values(a).some((u) => u !== void 0) && (r.immovableAsset = [a]);
|
|
12636
|
-
const l = an(t.hpDetails,
|
|
12634
|
+
const l = an(t.hpDetails, zd);
|
|
12637
12635
|
l.length && (r.hpDetails = l);
|
|
12638
|
-
const c = an(t.salaryDetails,
|
|
12636
|
+
const c = an(t.salaryDetails, Vd);
|
|
12639
12637
|
if (c.length) {
|
|
12640
12638
|
r.salaryIncome = c;
|
|
12641
12639
|
const u = an(t.salaryDetails, (p) => ({
|
|
@@ -12648,7 +12646,7 @@ function Hd(i, e) {
|
|
|
12648
12646
|
}
|
|
12649
12647
|
return et(r);
|
|
12650
12648
|
}
|
|
12651
|
-
function
|
|
12649
|
+
function zd(i) {
|
|
12652
12650
|
const e = {
|
|
12653
12651
|
loanType: "HOME_LOAN",
|
|
12654
12652
|
loanTakenFrom: Ee(i.loanTakenFrom),
|
|
@@ -12676,10 +12674,13 @@ function Wd(i) {
|
|
|
12676
12674
|
loanDetails: t ? [e] : void 0
|
|
12677
12675
|
};
|
|
12678
12676
|
}
|
|
12679
|
-
function
|
|
12677
|
+
function Vd(i) {
|
|
12680
12678
|
return {
|
|
12681
12679
|
grossSalaryIncome: xe(i.grossSalary),
|
|
12682
12680
|
salary: xe(i.basicSalary),
|
|
12681
|
+
// Present in the reference /automation/data payload. Without it the
|
|
12682
|
+
// recalculate overwrote each employer's TDS with nothing.
|
|
12683
|
+
totalTdsDeposited: xe(i.totalTdsDeposited),
|
|
12683
12684
|
employer: {
|
|
12684
12685
|
employerName: Ee(i.employerName),
|
|
12685
12686
|
employerTan: Ee(i.employerTan)
|
|
@@ -12692,7 +12693,7 @@ function zd(i) {
|
|
|
12692
12693
|
}
|
|
12693
12694
|
};
|
|
12694
12695
|
}
|
|
12695
|
-
function
|
|
12696
|
+
function Kd(i, e) {
|
|
12696
12697
|
const t = [];
|
|
12697
12698
|
for (const r of i) {
|
|
12698
12699
|
const o = Ee(r.employerName), n = Ee(r.employerTan), s = xe(r.grossSalary), a = xe(r.basicSalary), l = xe(r.totalTdsDeposited);
|
|
@@ -12711,7 +12712,7 @@ function Vd(i, e) {
|
|
|
12711
12712
|
salary: t
|
|
12712
12713
|
} : null;
|
|
12713
12714
|
}
|
|
12714
|
-
function
|
|
12715
|
+
function Gd(i, e) {
|
|
12715
12716
|
const t = Ee(i.aadhaarNumber), r = Ee(i.bankAccountNumber), o = Ee(i.bankIfscCode);
|
|
12716
12717
|
return t === void 0 && r === void 0 && o === void 0 ? null : {
|
|
12717
12718
|
userId: tt(e.userId),
|
|
@@ -12720,7 +12721,7 @@ function Kd(i, e) {
|
|
|
12720
12721
|
bankDetails: [{ bankAccountNumber: r, bankIfscCode: o }]
|
|
12721
12722
|
};
|
|
12722
12723
|
}
|
|
12723
|
-
function
|
|
12724
|
+
function Yd(i, e) {
|
|
12724
12725
|
return {
|
|
12725
12726
|
userId: tt(e.userId),
|
|
12726
12727
|
assessmentYear: e.assessmentYear,
|
|
@@ -12731,7 +12732,7 @@ function Gd(i, e) {
|
|
|
12731
12732
|
familyPension: xe(i.familyPension) ?? 0
|
|
12732
12733
|
};
|
|
12733
12734
|
}
|
|
12734
|
-
function
|
|
12735
|
+
function Jd(i, e) {
|
|
12735
12736
|
const t = xe(i.cryptoSellPrice), r = xe(i.cryptoPurchasePrice);
|
|
12736
12737
|
return t === void 0 && r === void 0 ? null : {
|
|
12737
12738
|
userId: tt(e.userId),
|
|
@@ -12740,7 +12741,7 @@ function Yd(i, e) {
|
|
|
12740
12741
|
vdaSellCost: t ?? 0
|
|
12741
12742
|
};
|
|
12742
12743
|
}
|
|
12743
|
-
function
|
|
12744
|
+
function Qd(i, e) {
|
|
12744
12745
|
const t = (o, n, s, a) => {
|
|
12745
12746
|
const l = Ee(i[o]), c = Ee(i[n]), u = xe(i[s]), d = xe(i[a]);
|
|
12746
12747
|
return l === void 0 && c === void 0 && u === void 0 && d === void 0 ? null : {
|
|
@@ -12759,15 +12760,15 @@ function Jd(i, e) {
|
|
|
12759
12760
|
presumptiveIncome: r
|
|
12760
12761
|
} : null;
|
|
12761
12762
|
}
|
|
12762
|
-
function
|
|
12763
|
+
function Xd(i) {
|
|
12763
12764
|
return Ee(i.lenderName) !== void 0 || Ee(i.loanAccountNumber) !== void 0 || xe(i.totalLoanAmount) !== void 0 || xe(i.outstandingAmount) !== void 0 || xe(i.homeLoanInterest) !== void 0;
|
|
12764
12765
|
}
|
|
12765
12766
|
function Ul(i) {
|
|
12766
12767
|
const e = Ee(i.typeOfHouseProperty)?.toUpperCase();
|
|
12767
12768
|
return xe(i.rentalIncome) !== void 0 || Ee(i.nameOfTenant) !== void 0 || e === "LOP" || e === "DLOP";
|
|
12768
12769
|
}
|
|
12769
|
-
function
|
|
12770
|
-
const t = en(i.hpDetails).filter(
|
|
12770
|
+
function Zd(i, e) {
|
|
12771
|
+
const t = en(i.hpDetails).filter(Xd).map((r) => {
|
|
12771
12772
|
const o = et({
|
|
12772
12773
|
loanType: "HOMELOAN",
|
|
12773
12774
|
bankOrInstituteName: Ee(r.lenderName),
|
|
@@ -12797,7 +12798,7 @@ function Xd(i, e) {
|
|
|
12797
12798
|
hpDetails: t
|
|
12798
12799
|
} : null;
|
|
12799
12800
|
}
|
|
12800
|
-
function
|
|
12801
|
+
function eh(i, e) {
|
|
12801
12802
|
const t = en(i.hpDetails).filter(Ul).map(
|
|
12802
12803
|
(r) => et({
|
|
12803
12804
|
typeOfHouseProperty: Ee(r.typeOfHouseProperty),
|
|
@@ -12817,7 +12818,7 @@ function Zd(i, e) {
|
|
|
12817
12818
|
hpDetails: t
|
|
12818
12819
|
} : null;
|
|
12819
12820
|
}
|
|
12820
|
-
function
|
|
12821
|
+
function th(i, e) {
|
|
12821
12822
|
const t = i || {}, r = (g) => ({
|
|
12822
12823
|
userId: tt(e.userId),
|
|
12823
12824
|
assessmentYear: e.assessmentYear,
|
|
@@ -12905,7 +12906,7 @@ function eh(i, e) {
|
|
|
12905
12906
|
})
|
|
12906
12907
|
), o;
|
|
12907
12908
|
}
|
|
12908
|
-
function
|
|
12909
|
+
function rh(i, e) {
|
|
12909
12910
|
const t = i || {}, r = xe(t.us80gDonationAmount), o = Ee(t.us80gNameOfCharity);
|
|
12910
12911
|
return r === void 0 && o === void 0 ? null : {
|
|
12911
12912
|
userId: tt(e.userId),
|
|
@@ -12921,25 +12922,30 @@ function th(i, e) {
|
|
|
12921
12922
|
]
|
|
12922
12923
|
};
|
|
12923
12924
|
}
|
|
12924
|
-
function
|
|
12925
|
-
const
|
|
12926
|
-
landInAcre: xe(
|
|
12927
|
-
nameOfDistrict: Ee(
|
|
12928
|
-
pinCode: Ee(
|
|
12929
|
-
owner: Ee(
|
|
12930
|
-
typeOfLand: Ee(
|
|
12931
|
-
}) ?? {},
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
agricultureDetails: et({
|
|
12936
|
-
income: r,
|
|
12925
|
+
function Dl(i) {
|
|
12926
|
+
const e = i || {}, t = xe(e.agricultureIncome), r = xe(e.agricultureExpenditure), o = et({
|
|
12927
|
+
landInAcre: xe(e.agricultureLandInAcre),
|
|
12928
|
+
nameOfDistrict: Ee(e.agricultureLandDistrict),
|
|
12929
|
+
pinCode: Ee(e.agricultureLandPincode),
|
|
12930
|
+
owner: Ee(e.agricultureLandOwner),
|
|
12931
|
+
typeOfLand: Ee(e.agricultureLandType)
|
|
12932
|
+
}) ?? {}, n = Object.keys(o).length > 0;
|
|
12933
|
+
if (!(t === void 0 && r === void 0 && !n))
|
|
12934
|
+
return et({
|
|
12935
|
+
income: t,
|
|
12937
12936
|
// Documented as optional and defaulting to 0; sent explicitly so
|
|
12938
12937
|
// clearing the field actually clears the stored value.
|
|
12939
|
-
expenditure:
|
|
12940
|
-
agricultureLandDetails:
|
|
12941
|
-
})
|
|
12942
|
-
|
|
12938
|
+
expenditure: r ?? 0,
|
|
12939
|
+
agricultureLandDetails: n ? [o] : void 0
|
|
12940
|
+
});
|
|
12941
|
+
}
|
|
12942
|
+
function nh(i, e) {
|
|
12943
|
+
const t = Dl(i);
|
|
12944
|
+
return t ? {
|
|
12945
|
+
userId: tt(e.userId),
|
|
12946
|
+
assessmentYear: e.assessmentYear,
|
|
12947
|
+
agricultureDetails: t
|
|
12948
|
+
} : null;
|
|
12943
12949
|
}
|
|
12944
12950
|
function tt(i) {
|
|
12945
12951
|
if (i === void 0 || i === "") return;
|
|
@@ -12959,7 +12965,7 @@ function Ee(i) {
|
|
|
12959
12965
|
function ur(i) {
|
|
12960
12966
|
return i === !0 || i === !1 ? i : void 0;
|
|
12961
12967
|
}
|
|
12962
|
-
function
|
|
12968
|
+
function ih() {
|
|
12963
12969
|
const i = /* @__PURE__ */ new Date(), e = (t, r = 2) => String(t).padStart(r, "0");
|
|
12964
12970
|
return `${i.getFullYear()}-${e(i.getMonth() + 1)}-${e(i.getDate())}T${e(i.getHours())}:${e(i.getMinutes())}:${e(i.getSeconds())}.${e(i.getMilliseconds(), 3)}`;
|
|
12965
12971
|
}
|
|
@@ -12989,10 +12995,10 @@ function et(i) {
|
|
|
12989
12995
|
}
|
|
12990
12996
|
return i;
|
|
12991
12997
|
}
|
|
12992
|
-
function
|
|
12998
|
+
function oh(i) {
|
|
12993
12999
|
const e = i && typeof i == "object" ? i : {}, t = {}, r = je(e.employers), o = je(e.taxPaid?.onSalary);
|
|
12994
13000
|
r.length && (t.salaryDetails = r.map((M) => {
|
|
12995
|
-
const U = ln(M.salary), oe = ln(M.perquisites), Y = ln(M.profitsInLieuOfSalaryType), W = U + oe + Y, ee =
|
|
13001
|
+
const U = ln(M.salary), oe = ln(M.perquisites), Y = ln(M.profitsInLieuOfSalaryType), W = U + oe + Y, ee = ch(M.allowance);
|
|
12996
13002
|
return {
|
|
12997
13003
|
employerName: Ce(M.employerName),
|
|
12998
13004
|
employerTan: Ce(M.employerTAN),
|
|
@@ -13003,7 +13009,7 @@ function ih(i) {
|
|
|
13003
13009
|
leaveTravelAllowance: ee.lta,
|
|
13004
13010
|
leaveEncashment: ee.leaveEncashment,
|
|
13005
13011
|
anyOtherAllowance: ee.other,
|
|
13006
|
-
totalTdsDeposited:
|
|
13012
|
+
totalTdsDeposited: lh(M, o, r) ?? Le(M.totalTdsDeposited)
|
|
13007
13013
|
};
|
|
13008
13014
|
}));
|
|
13009
13015
|
const n = je(e.houseProperties);
|
|
@@ -13060,7 +13066,7 @@ function ih(i) {
|
|
|
13060
13066
|
g?.insurerName ?? b?.insurerName
|
|
13061
13067
|
), t.us80dForParentsPolicyNumber = Ce(
|
|
13062
13068
|
g?.policyNo ?? b?.accountNo
|
|
13063
|
-
), t.hasParentOverSixty =
|
|
13069
|
+
), t.hasParentOverSixty = uh(
|
|
13064
13070
|
e.systemFlags?.hasParentOverSixty
|
|
13065
13071
|
), t.us80ccd1bAmount = void 0, t.us80ccd1bPanNo = Ce(e.pranNumber), t.us80ccd2Amount = void 0;
|
|
13066
13072
|
const w = je(e.donations)[0];
|
|
@@ -13118,17 +13124,17 @@ function ih(i) {
|
|
|
13118
13124
|
const T = je(
|
|
13119
13125
|
P?.agricultureLandDetails ?? P?.agriculturalLandDetails ?? e.agriculturalLandDetails
|
|
13120
13126
|
)[0];
|
|
13121
|
-
T && (t.agricultureLandInAcre = Le(T.landInAcre), t.agricultureLandDistrict = Ce(T.nameOfDistrict), t.agricultureLandPincode = Ce(T.pinCode), t.agricultureLandOwner =
|
|
13127
|
+
T && (t.agricultureLandInAcre = Le(T.landInAcre), t.agricultureLandDistrict = Ce(T.nameOfDistrict), t.agricultureLandPincode = Ce(T.pinCode), t.agricultureLandOwner = sh(T.owner), t.agricultureLandType = ah(T.typeOfLand)), t.aadhaarNumber = Ce(e.aadharNumber);
|
|
13122
13128
|
const $ = je(e.bankDetails)[0];
|
|
13123
|
-
return $ && (t.bankAccountNumber = Ce($.accountNumber), t.bankIfscCode = Ce($.ifsCode)),
|
|
13129
|
+
return $ && (t.bankAccountNumber = Ce($.accountNumber), t.bankIfscCode = Ce($.ifsCode)), Bl(t);
|
|
13124
13130
|
}
|
|
13125
|
-
function
|
|
13131
|
+
function sh(i) {
|
|
13126
13132
|
const e = Ce(i)?.trim();
|
|
13127
13133
|
if (!e) return;
|
|
13128
13134
|
const t = e.toUpperCase();
|
|
13129
13135
|
return t === "O" || t === "OWNED" ? "Owned" : t === "H" || t.startsWith("HELD") ? "Held on lease" : e;
|
|
13130
13136
|
}
|
|
13131
|
-
function
|
|
13137
|
+
function ah(i) {
|
|
13132
13138
|
const e = Ce(i)?.trim();
|
|
13133
13139
|
if (!e) return;
|
|
13134
13140
|
const t = e.toUpperCase();
|
|
@@ -13146,7 +13152,7 @@ function ln(i) {
|
|
|
13146
13152
|
0
|
|
13147
13153
|
);
|
|
13148
13154
|
}
|
|
13149
|
-
function
|
|
13155
|
+
function lh(i, e, t) {
|
|
13150
13156
|
if (!e.length) return;
|
|
13151
13157
|
const r = Ce(i.employerTAN)?.trim().toUpperCase();
|
|
13152
13158
|
if (r) {
|
|
@@ -13163,7 +13169,7 @@ function ah(i, e, t) {
|
|
|
13163
13169
|
if (t.length === 1 && e.length === 1)
|
|
13164
13170
|
return Le(e[0].totalTdsDeposited);
|
|
13165
13171
|
}
|
|
13166
|
-
function
|
|
13172
|
+
function ch(i) {
|
|
13167
13173
|
const e = je(i);
|
|
13168
13174
|
if (!e.length) return {};
|
|
13169
13175
|
let t, r, o, n;
|
|
@@ -13206,7 +13212,7 @@ function Ce(i) {
|
|
|
13206
13212
|
const e = String(i).trim();
|
|
13207
13213
|
return e === "" ? void 0 : e;
|
|
13208
13214
|
}
|
|
13209
|
-
function
|
|
13215
|
+
function uh(i) {
|
|
13210
13216
|
if (typeof i == "boolean") return i;
|
|
13211
13217
|
if (typeof i == "string") {
|
|
13212
13218
|
const e = i.trim().toLowerCase();
|
|
@@ -13216,10 +13222,10 @@ function ch(i) {
|
|
|
13216
13222
|
if (typeof i == "number")
|
|
13217
13223
|
return i === 1 ? !0 : i === 0 ? !1 : void 0;
|
|
13218
13224
|
}
|
|
13219
|
-
function
|
|
13225
|
+
function Bl(i) {
|
|
13220
13226
|
const e = {};
|
|
13221
13227
|
for (const [t, r] of Object.entries(i))
|
|
13222
|
-
r !== void 0 && (Array.isArray(r) ? e[t] = r.map((o) => o && typeof o == "object" ?
|
|
13228
|
+
r !== void 0 && (Array.isArray(r) ? e[t] = r.map((o) => o && typeof o == "object" ? Bl(o) : o) : e[t] = r);
|
|
13223
13229
|
return e;
|
|
13224
13230
|
}
|
|
13225
13231
|
function cn() {
|
|
@@ -13229,23 +13235,23 @@ function cn() {
|
|
|
13229
13235
|
return console.warn(
|
|
13230
13236
|
"[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
|
|
13231
13237
|
), null;
|
|
13232
|
-
const t = i.__aikaara_descriptor__ ?? {}, r =
|
|
13238
|
+
const t = i.__aikaara_descriptor__ ?? {}, r = _h(t);
|
|
13233
13239
|
if (!r)
|
|
13234
13240
|
return console.warn(
|
|
13235
13241
|
"[smart-edit] API disabled: could not resolve a TaxBuddy API host from the descriptor (cloud / upload / pan / leader endpoints)."
|
|
13236
13242
|
), null;
|
|
13237
|
-
const o =
|
|
13243
|
+
const o = kh(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", s = e.getChatJwt, a = async () => n || await s(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : Sh(e.identity)) || void 0;
|
|
13238
13244
|
return console.info("[smart-edit] API config — base:", r, "· userId:", l ?? "(none)"), {
|
|
13239
13245
|
baseUrl: r,
|
|
13240
13246
|
getToken: a,
|
|
13241
|
-
headers:
|
|
13242
|
-
assessmentYear: t.itr?.assessmentYear ||
|
|
13247
|
+
headers: xh(t.auth?.headers),
|
|
13248
|
+
assessmentYear: t.itr?.assessmentYear || Eh(),
|
|
13243
13249
|
isRevised: "N",
|
|
13244
13250
|
userId: l,
|
|
13245
13251
|
submitUrl: t.itr?.automationSubmitUrl || void 0
|
|
13246
13252
|
};
|
|
13247
13253
|
}
|
|
13248
|
-
async function
|
|
13254
|
+
async function dh(i) {
|
|
13249
13255
|
const e = await i.getToken(), t = i.userId;
|
|
13250
13256
|
if (!t)
|
|
13251
13257
|
throw new Error(
|
|
@@ -13263,11 +13269,11 @@ async function uh(i) {
|
|
|
13263
13269
|
const o = await r.text().catch(() => "");
|
|
13264
13270
|
throw new Error(`[smart-edit] GET /itr/latest-itr → ${r.status} ${o.slice(0, 200)}`);
|
|
13265
13271
|
}
|
|
13266
|
-
return
|
|
13272
|
+
return oh(To(await r.json().catch(() => ({}))));
|
|
13267
13273
|
}
|
|
13268
|
-
async function
|
|
13274
|
+
async function hh(i, e) {
|
|
13269
13275
|
const t = await i.getToken(), r = i.userId, o = {
|
|
13270
|
-
...
|
|
13276
|
+
...Wd(e, {
|
|
13271
13277
|
userId: r,
|
|
13272
13278
|
assessmentYear: i.assessmentYear,
|
|
13273
13279
|
isRevised: i.isRevised
|
|
@@ -13291,31 +13297,31 @@ async function dh(i, e) {
|
|
|
13291
13297
|
}
|
|
13292
13298
|
return To(await a.json().catch(() => ({})));
|
|
13293
13299
|
}
|
|
13294
|
-
async function
|
|
13300
|
+
async function fh(i, e) {
|
|
13295
13301
|
return wt(i, `${i.baseUrl}/itr/v1/automation/salary`, e);
|
|
13296
13302
|
}
|
|
13297
|
-
async function
|
|
13303
|
+
async function ph(i, e) {
|
|
13298
13304
|
return wt(i, `${i.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
|
|
13299
13305
|
}
|
|
13300
13306
|
async function Gs(i, e) {
|
|
13301
13307
|
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13302
13308
|
}
|
|
13303
|
-
async function ph(i, e) {
|
|
13304
|
-
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13305
|
-
}
|
|
13306
13309
|
async function mh(i, e) {
|
|
13307
13310
|
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13308
13311
|
}
|
|
13309
13312
|
async function gh(i, e) {
|
|
13310
|
-
return wt(i, `${i.baseUrl}/itr/v1/automation/
|
|
13313
|
+
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13311
13314
|
}
|
|
13312
13315
|
async function bh(i, e) {
|
|
13313
|
-
return wt(i,
|
|
13316
|
+
return wt(i, `${i.baseUrl}/itr/v1/automation/deductions`, e);
|
|
13314
13317
|
}
|
|
13315
13318
|
async function yh(i, e) {
|
|
13316
|
-
return wt(i, `${i.baseUrl}/itr/v1/automation/
|
|
13319
|
+
return wt(i, i.submitUrl || `${i.baseUrl}/itr/v1/automation/data`, e);
|
|
13317
13320
|
}
|
|
13318
13321
|
async function vh(i, e) {
|
|
13322
|
+
return wt(i, `${i.baseUrl}/itr/v1/automation/hp-income`, e);
|
|
13323
|
+
}
|
|
13324
|
+
async function wh(i, e) {
|
|
13319
13325
|
return wt(i, `${i.baseUrl}/itr/v1/automation/vda`, e);
|
|
13320
13326
|
}
|
|
13321
13327
|
async function wt(i, e, t) {
|
|
@@ -13333,7 +13339,7 @@ async function wt(i, e, t) {
|
|
|
13333
13339
|
}
|
|
13334
13340
|
return To(await n.json().catch(() => ({})));
|
|
13335
13341
|
}
|
|
13336
|
-
function
|
|
13342
|
+
function _h(i) {
|
|
13337
13343
|
const e = [
|
|
13338
13344
|
i.cloud?.listEndpoint,
|
|
13339
13345
|
i.cloud?.downloadEndpoint,
|
|
@@ -13351,7 +13357,7 @@ function wh(i) {
|
|
|
13351
13357
|
}
|
|
13352
13358
|
return null;
|
|
13353
13359
|
}
|
|
13354
|
-
function
|
|
13360
|
+
function kh(i) {
|
|
13355
13361
|
if (!i || typeof localStorage > "u") return null;
|
|
13356
13362
|
try {
|
|
13357
13363
|
const e = localStorage.getItem(`aikaara_sso:${i}`);
|
|
@@ -13362,7 +13368,7 @@ function _h(i) {
|
|
|
13362
13368
|
return null;
|
|
13363
13369
|
}
|
|
13364
13370
|
}
|
|
13365
|
-
function
|
|
13371
|
+
function xh(i) {
|
|
13366
13372
|
const e = {};
|
|
13367
13373
|
if (!i) return e;
|
|
13368
13374
|
const t = /^(authorization|content-type|accept)$/i;
|
|
@@ -13370,7 +13376,7 @@ function kh(i) {
|
|
|
13370
13376
|
!t.test(r) && typeof o == "string" && (e[r] = o);
|
|
13371
13377
|
return e;
|
|
13372
13378
|
}
|
|
13373
|
-
function
|
|
13379
|
+
function Sh(i) {
|
|
13374
13380
|
if (!i) return;
|
|
13375
13381
|
const e = i.userId ?? i.id ?? i.ext_uid ?? i.extUid;
|
|
13376
13382
|
return e == null || e === "" ? void 0 : String(e);
|
|
@@ -13382,11 +13388,11 @@ function To(i) {
|
|
|
13382
13388
|
}
|
|
13383
13389
|
return {};
|
|
13384
13390
|
}
|
|
13385
|
-
function
|
|
13391
|
+
function Eh() {
|
|
13386
13392
|
const i = /* @__PURE__ */ new Date(), e = i.getMonth() >= 3 ? i.getFullYear() : i.getFullYear() - 1;
|
|
13387
13393
|
return `${e}-${e + 1}`;
|
|
13388
13394
|
}
|
|
13389
|
-
class
|
|
13395
|
+
class Ah {
|
|
13390
13396
|
client;
|
|
13391
13397
|
panel;
|
|
13392
13398
|
bubble;
|
|
@@ -13398,7 +13404,7 @@ class Eh {
|
|
|
13398
13404
|
isEmbed = !1;
|
|
13399
13405
|
smartEditModal = null;
|
|
13400
13406
|
constructor(e, t, r) {
|
|
13401
|
-
this.client = new
|
|
13407
|
+
this.client = new Ad(e, {
|
|
13402
13408
|
uploadAdapter: r?.uploadAdapter,
|
|
13403
13409
|
historyAdapter: r?.historyAdapter
|
|
13404
13410
|
}), this.isEmbed = e.display === "embed", this.bubble = t.querySelector("aikaara-chat-bubble"), this.panel = t.querySelector(".aikaara-panel"), this.header = t.querySelector("aikaara-chat-header"), this.messageList = t.querySelector("aikaara-message-list"), this.input = t.querySelector("aikaara-chat-input"), this.errorBanner = t.querySelector("aikaara-error-banner"), e.welcomeMessage && this.messageList.setWelcomeMessage(e.welcomeMessage), e.showTimestamps !== void 0 && this.messageList.setShowTimestamps(e.showTimestamps), (e.linkHandlers || e.getLinkBearer) && this.messageList.setLinkConfig(e.linkHandlers ?? [], e.getLinkBearer), e.chatActions !== void 0 && this.header.setActions(e.chatActions), this.wireEvents();
|
|
@@ -13525,11 +13531,11 @@ class Eh {
|
|
|
13525
13531
|
*/
|
|
13526
13532
|
async openSmartEdit() {
|
|
13527
13533
|
const e = this.ensureSmartEditModal();
|
|
13528
|
-
e.open({ schemas:
|
|
13534
|
+
e.open({ schemas: Hd, data: {} });
|
|
13529
13535
|
const t = cn();
|
|
13530
13536
|
if (!(!t || !t.baseUrl))
|
|
13531
13537
|
try {
|
|
13532
|
-
const r = await
|
|
13538
|
+
const r = await dh(t);
|
|
13533
13539
|
e.setData(r);
|
|
13534
13540
|
} catch (r) {
|
|
13535
13541
|
console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
|
|
@@ -13562,32 +13568,32 @@ class Eh {
|
|
|
13562
13568
|
const o = { userId: r.userId, assessmentYear: r.assessmentYear };
|
|
13563
13569
|
try {
|
|
13564
13570
|
if (e === "salary-hra") {
|
|
13565
|
-
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], s =
|
|
13566
|
-
s && await
|
|
13571
|
+
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], s = Kd(n, o);
|
|
13572
|
+
s && await fh(r, s);
|
|
13567
13573
|
} else if (e === "bank-details") {
|
|
13568
|
-
const n =
|
|
13569
|
-
n && await
|
|
13574
|
+
const n = Gd(t, o);
|
|
13575
|
+
n && await ph(r, n);
|
|
13570
13576
|
} else if (e === "other-sources")
|
|
13571
|
-
await Gs(r,
|
|
13577
|
+
await Gs(r, Yd(t, o));
|
|
13572
13578
|
else if (e === "business-profession") {
|
|
13573
|
-
const n =
|
|
13574
|
-
n && await
|
|
13579
|
+
const n = Qd(t, o);
|
|
13580
|
+
n && await mh(r, n);
|
|
13575
13581
|
} else if (e === "crypto-income") {
|
|
13576
|
-
const n =
|
|
13577
|
-
n && await
|
|
13582
|
+
const n = Jd(t, o);
|
|
13583
|
+
n && await wh(r, n);
|
|
13578
13584
|
} else if (e === "agricultural-income") {
|
|
13579
|
-
const n =
|
|
13580
|
-
n && await
|
|
13585
|
+
const n = nh(t, o);
|
|
13586
|
+
n && await gh(r, n);
|
|
13581
13587
|
} else if (e === "deductions") {
|
|
13582
|
-
for (const s of
|
|
13583
|
-
await
|
|
13584
|
-
const n =
|
|
13588
|
+
for (const s of th(t, o))
|
|
13589
|
+
await bh(r, s);
|
|
13590
|
+
const n = rh(t, o);
|
|
13585
13591
|
n && await Gs(r, n);
|
|
13586
13592
|
} else if (e === "house-property") {
|
|
13587
|
-
const n =
|
|
13588
|
-
n && await
|
|
13589
|
-
const s =
|
|
13590
|
-
s && await
|
|
13593
|
+
const n = Zd(t, o);
|
|
13594
|
+
n && await yh(r, n);
|
|
13595
|
+
const s = eh(t, o);
|
|
13596
|
+
s && await vh(r, s);
|
|
13591
13597
|
}
|
|
13592
13598
|
} catch (n) {
|
|
13593
13599
|
console.warn("[smart-edit] section save failed", e, n), this.errorBanner.show("Failed to save. Please try again.", 4e3);
|
|
@@ -13607,7 +13613,7 @@ class Eh {
|
|
|
13607
13613
|
return;
|
|
13608
13614
|
}
|
|
13609
13615
|
try {
|
|
13610
|
-
await
|
|
13616
|
+
await hh(t, e);
|
|
13611
13617
|
} catch (r) {
|
|
13612
13618
|
console.warn("[smart-edit] save failed", r), this.errorBanner.show(
|
|
13613
13619
|
"Failed to save your ITR details. Please try again.",
|
|
@@ -13623,7 +13629,7 @@ class Eh {
|
|
|
13623
13629
|
}, 200)));
|
|
13624
13630
|
}
|
|
13625
13631
|
}
|
|
13626
|
-
class
|
|
13632
|
+
class Ih extends HTMLElement {
|
|
13627
13633
|
shadow;
|
|
13628
13634
|
controller = null;
|
|
13629
13635
|
_config = {};
|
|
@@ -13669,13 +13675,13 @@ class Ah extends HTMLElement {
|
|
|
13669
13675
|
apiKey: this.getAttribute("api-key") || this._config.apiKey,
|
|
13670
13676
|
title: this.getAttribute("title") || this._config.title || "Chat",
|
|
13671
13677
|
subtitle: this.getAttribute("subtitle") || this._config.subtitle,
|
|
13672
|
-
theme: this.getAttribute("theme") || this._config.theme ||
|
|
13678
|
+
theme: this.getAttribute("theme") || this._config.theme || rc,
|
|
13673
13679
|
primaryColor: this.getAttribute("primary-color") || this._config.primaryColor || Oo,
|
|
13674
|
-
position: this.getAttribute("position") || this._config.position ||
|
|
13675
|
-
width: Number(this.getAttribute("width")) || this._config.width ||
|
|
13676
|
-
height: Number(this.getAttribute("height")) || this._config.height ||
|
|
13677
|
-
fontFamily: this._config.fontFamily ||
|
|
13678
|
-
borderRadius: this._config.borderRadius ??
|
|
13680
|
+
position: this.getAttribute("position") || this._config.position || tc,
|
|
13681
|
+
width: Number(this.getAttribute("width")) || this._config.width || Ql,
|
|
13682
|
+
height: Number(this.getAttribute("height")) || this._config.height || Xl,
|
|
13683
|
+
fontFamily: this._config.fontFamily || ec,
|
|
13684
|
+
borderRadius: this._config.borderRadius ?? Zl,
|
|
13679
13685
|
placeholder: this.getAttribute("placeholder") || this._config.placeholder || Mo,
|
|
13680
13686
|
welcomeMessage: this.getAttribute("welcome-message") || this._config.welcomeMessage,
|
|
13681
13687
|
avatarUrl: this.getAttribute("avatar-url") || this._config.avatarUrl,
|
|
@@ -13689,7 +13695,7 @@ class Ah extends HTMLElement {
|
|
|
13689
13695
|
chatActions: this._config.chatActions,
|
|
13690
13696
|
showBubble: this._config.showBubble ?? !0,
|
|
13691
13697
|
display: (this.getAttribute("display") || this._config.display) ?? "popup",
|
|
13692
|
-
offset: this._config.offset ||
|
|
13698
|
+
offset: this._config.offset || nc,
|
|
13693
13699
|
conversationId: this._config.conversationId,
|
|
13694
13700
|
systemPromptId: this._config.systemPromptId,
|
|
13695
13701
|
channel: this._config.channel,
|
|
@@ -13892,7 +13898,7 @@ class Ah extends HTMLElement {
|
|
|
13892
13898
|
}
|
|
13893
13899
|
async initController() {
|
|
13894
13900
|
const e = this.getConfig(), t = e.transport ?? "aikaara";
|
|
13895
|
-
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new
|
|
13901
|
+
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new Ah(e, this.shadow, {
|
|
13896
13902
|
uploadAdapter: this._config.uploadAdapter,
|
|
13897
13903
|
historyAdapter: this._config.historyAdapter
|
|
13898
13904
|
}), await this.controller.connect());
|
|
@@ -13912,7 +13918,7 @@ class Ah extends HTMLElement {
|
|
|
13912
13918
|
}
|
|
13913
13919
|
}
|
|
13914
13920
|
}
|
|
13915
|
-
class
|
|
13921
|
+
class Th extends HTMLElement {
|
|
13916
13922
|
shadow;
|
|
13917
13923
|
constructor() {
|
|
13918
13924
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -13965,12 +13971,12 @@ class Ih extends HTMLElement {
|
|
|
13965
13971
|
t && (t.innerHTML = e);
|
|
13966
13972
|
}
|
|
13967
13973
|
}
|
|
13968
|
-
const
|
|
13974
|
+
const Ch = [
|
|
13969
13975
|
{ id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
|
|
13970
13976
|
];
|
|
13971
|
-
class
|
|
13977
|
+
class Ph extends HTMLElement {
|
|
13972
13978
|
shadow;
|
|
13973
|
-
actions =
|
|
13979
|
+
actions = Ch;
|
|
13974
13980
|
menuOpen = !1;
|
|
13975
13981
|
outsideClickHandler = null;
|
|
13976
13982
|
static get observedAttributes() {
|
|
@@ -14196,7 +14202,7 @@ class Ch extends HTMLElement {
|
|
|
14196
14202
|
this.setAttribute("status", e);
|
|
14197
14203
|
}
|
|
14198
14204
|
}
|
|
14199
|
-
const
|
|
14205
|
+
const Oh = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, Mh = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, Lh = {
|
|
14200
14206
|
""": '"',
|
|
14201
14207
|
"'": "'",
|
|
14202
14208
|
"<": "<",
|
|
@@ -14204,14 +14210,14 @@ const Ph = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
|
|
|
14204
14210
|
"&": "&",
|
|
14205
14211
|
" ": " "
|
|
14206
14212
|
};
|
|
14207
|
-
function
|
|
14208
|
-
return i.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) =>
|
|
14213
|
+
function Rh(i) {
|
|
14214
|
+
return i.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => Lh[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, "&");
|
|
14209
14215
|
}
|
|
14210
14216
|
function zt(i) {
|
|
14211
|
-
if (
|
|
14217
|
+
if (Oh.test(i))
|
|
14212
14218
|
return i;
|
|
14213
|
-
const e =
|
|
14214
|
-
let t =
|
|
14219
|
+
const e = Mh.test(i) ? Rh(i) : i;
|
|
14220
|
+
let t = Nh(e);
|
|
14215
14221
|
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(
|
|
14216
14222
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
14217
14223
|
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
@@ -14223,7 +14229,7 @@ function zt(i) {
|
|
|
14223
14229
|
}
|
|
14224
14230
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
14225
14231
|
}
|
|
14226
|
-
function
|
|
14232
|
+
function Nh(i) {
|
|
14227
14233
|
const e = {
|
|
14228
14234
|
"&": "&",
|
|
14229
14235
|
"<": "<",
|
|
@@ -14233,7 +14239,7 @@ function Rh(i) {
|
|
|
14233
14239
|
};
|
|
14234
14240
|
return i.replace(/[&<>"']/g, (t) => e[t]);
|
|
14235
14241
|
}
|
|
14236
|
-
const
|
|
14242
|
+
const jh = /* @__PURE__ */ new Set([
|
|
14237
14243
|
"p",
|
|
14238
14244
|
"br",
|
|
14239
14245
|
"hr",
|
|
@@ -14268,7 +14274,7 @@ const Nh = /* @__PURE__ */ new Set([
|
|
|
14268
14274
|
"tr",
|
|
14269
14275
|
"th",
|
|
14270
14276
|
"td"
|
|
14271
|
-
]),
|
|
14277
|
+
]), Uh = {
|
|
14272
14278
|
a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
|
|
14273
14279
|
img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
|
|
14274
14280
|
code: /* @__PURE__ */ new Set(["class"]),
|
|
@@ -14278,29 +14284,29 @@ const Nh = /* @__PURE__ */ new Set([
|
|
|
14278
14284
|
};
|
|
14279
14285
|
function Vt(i) {
|
|
14280
14286
|
const e = document.createElement("template");
|
|
14281
|
-
return e.innerHTML = i,
|
|
14287
|
+
return e.innerHTML = i, Fl(e.content), e.innerHTML;
|
|
14282
14288
|
}
|
|
14283
|
-
function
|
|
14289
|
+
function Fl(i) {
|
|
14284
14290
|
const e = Array.from(i.childNodes);
|
|
14285
14291
|
for (const t of e)
|
|
14286
14292
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
14287
14293
|
const r = t, o = r.tagName.toLowerCase();
|
|
14288
|
-
if (!
|
|
14294
|
+
if (!jh.has(o)) {
|
|
14289
14295
|
const a = document.createTextNode(r.textContent || "");
|
|
14290
14296
|
i.replaceChild(a, t);
|
|
14291
14297
|
continue;
|
|
14292
14298
|
}
|
|
14293
|
-
const n =
|
|
14299
|
+
const n = Uh[o] || /* @__PURE__ */ new Set(), s = Array.from(r.attributes);
|
|
14294
14300
|
for (const a of s)
|
|
14295
14301
|
n.has(a.name) || r.removeAttribute(a.name);
|
|
14296
14302
|
if (r.hasAttribute("href")) {
|
|
14297
14303
|
const a = r.getAttribute("href") || "";
|
|
14298
14304
|
!a.startsWith("http://") && !a.startsWith("https://") && !a.startsWith("/") && r.removeAttribute("href");
|
|
14299
14305
|
}
|
|
14300
|
-
|
|
14306
|
+
Fl(t);
|
|
14301
14307
|
}
|
|
14302
14308
|
}
|
|
14303
|
-
function
|
|
14309
|
+
function Dh(i, e = {}) {
|
|
14304
14310
|
const { width: t = 600, height: r = 700, closeOnTypes: o } = e, n = Math.round(window.screenX + (window.outerWidth - t) / 2), s = Math.round(window.screenY + (window.outerHeight - r) / 2), a = window.open(
|
|
14305
14311
|
i,
|
|
14306
14312
|
"aikaara_popup",
|
|
@@ -14318,7 +14324,7 @@ function Uh(i, e = {}) {
|
|
|
14318
14324
|
}, 500);
|
|
14319
14325
|
return a;
|
|
14320
14326
|
}
|
|
14321
|
-
function
|
|
14327
|
+
function Bh(i) {
|
|
14322
14328
|
const e = Date.now() - i.getTime(), t = Math.round(e / 1e3);
|
|
14323
14329
|
if (t < 5) return "just now";
|
|
14324
14330
|
if (t < 60) return `${t}s ago`;
|
|
@@ -14329,7 +14335,7 @@ function Dh(i) {
|
|
|
14329
14335
|
const n = Math.round(o / 24);
|
|
14330
14336
|
return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : i.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
|
|
14331
14337
|
}
|
|
14332
|
-
class
|
|
14338
|
+
class Fh extends HTMLElement {
|
|
14333
14339
|
shadow;
|
|
14334
14340
|
container;
|
|
14335
14341
|
welcomeMessage = "";
|
|
@@ -14582,7 +14588,7 @@ class Bh extends HTMLElement {
|
|
|
14582
14588
|
if (n.role === "user") {
|
|
14583
14589
|
const s = n.metadata?.attributes?.action;
|
|
14584
14590
|
if (s) {
|
|
14585
|
-
const a =
|
|
14591
|
+
const a = $h(s);
|
|
14586
14592
|
if (s.message_id && t.set(s.message_id, a), Object.keys(a).length > 0)
|
|
14587
14593
|
for (let l = o - 1; l >= 0; l--) {
|
|
14588
14594
|
const c = e[l];
|
|
@@ -14720,7 +14726,7 @@ class Bh extends HTMLElement {
|
|
|
14720
14726
|
case "date":
|
|
14721
14727
|
return r;
|
|
14722
14728
|
case "relative":
|
|
14723
|
-
return
|
|
14729
|
+
return Bh(t);
|
|
14724
14730
|
case "time-24":
|
|
14725
14731
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
14726
14732
|
case "time-seconds":
|
|
@@ -14746,7 +14752,7 @@ class Bh extends HTMLElement {
|
|
|
14746
14752
|
return;
|
|
14747
14753
|
}
|
|
14748
14754
|
if (o === "popup") {
|
|
14749
|
-
|
|
14755
|
+
Dh(e);
|
|
14750
14756
|
return;
|
|
14751
14757
|
}
|
|
14752
14758
|
const n = this.getOrCreateModal(), s = r?.title ?? t ?? "Link";
|
|
@@ -14754,7 +14760,7 @@ class Bh extends HTMLElement {
|
|
|
14754
14760
|
requestAnimationFrame(() => n.show?.(e, s));
|
|
14755
14761
|
return;
|
|
14756
14762
|
}
|
|
14757
|
-
const a =
|
|
14763
|
+
const a = qh(e), l = $l(r.fetch.url, a), c = {
|
|
14758
14764
|
accept: "application/json",
|
|
14759
14765
|
...r.fetch.headers ?? {}
|
|
14760
14766
|
}, u = r.fetch.authHeader ?? "session";
|
|
@@ -14800,7 +14806,7 @@ class Bh extends HTMLElement {
|
|
|
14800
14806
|
return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
|
|
14801
14807
|
}
|
|
14802
14808
|
}
|
|
14803
|
-
function
|
|
14809
|
+
function $h(i) {
|
|
14804
14810
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
|
|
14805
14811
|
for (const [r, o] of Object.entries(i))
|
|
14806
14812
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
@@ -14810,7 +14816,7 @@ function Ys(i, e) {
|
|
|
14810
14816
|
const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
14811
14817
|
return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(i);
|
|
14812
14818
|
}
|
|
14813
|
-
function
|
|
14819
|
+
function qh(i) {
|
|
14814
14820
|
try {
|
|
14815
14821
|
const e = new URL(i), t = {};
|
|
14816
14822
|
return e.searchParams.forEach((r, o) => {
|
|
@@ -14820,11 +14826,11 @@ function $h(i) {
|
|
|
14820
14826
|
return {};
|
|
14821
14827
|
}
|
|
14822
14828
|
}
|
|
14823
|
-
function
|
|
14829
|
+
function $l(i, e) {
|
|
14824
14830
|
return i.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
14825
14831
|
}
|
|
14826
14832
|
function ho(i, e) {
|
|
14827
|
-
if (typeof i == "string") return
|
|
14833
|
+
if (typeof i == "string") return $l(i, e);
|
|
14828
14834
|
if (Array.isArray(i)) return i.map((t) => ho(t, e));
|
|
14829
14835
|
if (i && typeof i == "object") {
|
|
14830
14836
|
const t = {};
|
|
@@ -14833,7 +14839,7 @@ function ho(i, e) {
|
|
|
14833
14839
|
}
|
|
14834
14840
|
return i;
|
|
14835
14841
|
}
|
|
14836
|
-
class
|
|
14842
|
+
class Hh extends HTMLElement {
|
|
14837
14843
|
shadow;
|
|
14838
14844
|
templatePayload = null;
|
|
14839
14845
|
attachments = [];
|
|
@@ -14949,7 +14955,7 @@ class qh extends HTMLElement {
|
|
|
14949
14955
|
renderAttachments() {
|
|
14950
14956
|
return this.attachments.length ? `<div class="attachments">${this.attachments.map(
|
|
14951
14957
|
(t) => `<a class="attachment" href="${Js(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
|
|
14952
|
-
📎 ${
|
|
14958
|
+
📎 ${Wh(t.fileName)}
|
|
14953
14959
|
</a>`
|
|
14954
14960
|
).join("")}</div>` : "";
|
|
14955
14961
|
}
|
|
@@ -14957,10 +14963,10 @@ class qh extends HTMLElement {
|
|
|
14957
14963
|
function Js(i) {
|
|
14958
14964
|
return String(i).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14959
14965
|
}
|
|
14960
|
-
function
|
|
14966
|
+
function Wh(i) {
|
|
14961
14967
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14962
14968
|
}
|
|
14963
|
-
class
|
|
14969
|
+
class zh extends HTMLElement {
|
|
14964
14970
|
shadow;
|
|
14965
14971
|
textarea;
|
|
14966
14972
|
sendBtn;
|
|
@@ -15111,7 +15117,7 @@ class Wh extends HTMLElement {
|
|
|
15111
15117
|
this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, 120) + "px";
|
|
15112
15118
|
}
|
|
15113
15119
|
}
|
|
15114
|
-
class
|
|
15120
|
+
class Vh extends HTMLElement {
|
|
15115
15121
|
shadow;
|
|
15116
15122
|
constructor() {
|
|
15117
15123
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -15160,7 +15166,7 @@ class zh extends HTMLElement {
|
|
|
15160
15166
|
this.removeAttribute("visible");
|
|
15161
15167
|
}
|
|
15162
15168
|
}
|
|
15163
|
-
class
|
|
15169
|
+
class Kh extends HTMLElement {
|
|
15164
15170
|
shadow;
|
|
15165
15171
|
bubble;
|
|
15166
15172
|
constructor() {
|
|
@@ -15225,7 +15231,7 @@ class Vh extends HTMLElement {
|
|
|
15225
15231
|
this.bubble?.classList.remove("cursor");
|
|
15226
15232
|
}
|
|
15227
15233
|
}
|
|
15228
|
-
class
|
|
15234
|
+
class Gh extends HTMLElement {
|
|
15229
15235
|
shadow;
|
|
15230
15236
|
container;
|
|
15231
15237
|
dismissTimer = null;
|
|
@@ -15272,7 +15278,7 @@ class Kh extends HTMLElement {
|
|
|
15272
15278
|
}
|
|
15273
15279
|
}
|
|
15274
15280
|
const un = /* @__PURE__ */ new Map();
|
|
15275
|
-
function
|
|
15281
|
+
function ql(i) {
|
|
15276
15282
|
const e = un.get(i);
|
|
15277
15283
|
if (e) return e;
|
|
15278
15284
|
const t = new Promise((r, o) => {
|
|
@@ -15298,7 +15304,7 @@ function $l(i) {
|
|
|
15298
15304
|
});
|
|
15299
15305
|
return un.set(i, t), t;
|
|
15300
15306
|
}
|
|
15301
|
-
function
|
|
15307
|
+
function Yh(i, e = 5e3) {
|
|
15302
15308
|
return new Promise((t, r) => {
|
|
15303
15309
|
const o = setTimeout(() => r(new Error(`Custom element <${i}> not registered within ${e}ms`)), e);
|
|
15304
15310
|
customElements.whenDefined(i).then(() => {
|
|
@@ -15306,14 +15312,14 @@ function Gh(i, e = 5e3) {
|
|
|
15306
15312
|
});
|
|
15307
15313
|
});
|
|
15308
15314
|
}
|
|
15309
|
-
const
|
|
15315
|
+
const Jh = {
|
|
15310
15316
|
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-ZYn2r5t-.mjs").then(({ registerAikaaraPaymentLink: i }) => i())
|
|
15311
15317
|
};
|
|
15312
|
-
function
|
|
15318
|
+
function Qh(i) {
|
|
15313
15319
|
const e = `template:${i}`, t = window.__aikaara_descriptor__?.components?.[e];
|
|
15314
15320
|
return t && t.kind === "iife-element" ? { render: t.tag, scriptUrl: t.scriptUrl, props: t.props } : window.__aikaara_descriptor__?.templates?.[i];
|
|
15315
15321
|
}
|
|
15316
|
-
class
|
|
15322
|
+
class Xh extends HTMLElement {
|
|
15317
15323
|
shadow;
|
|
15318
15324
|
payloadData = null;
|
|
15319
15325
|
innerMessage = "";
|
|
@@ -15337,7 +15343,7 @@ class Qh extends HTMLElement {
|
|
|
15337
15343
|
this.render(), this.addEventListener("template-action", (e) => {
|
|
15338
15344
|
const t = e.detail, r = this.getAttribute("message-id");
|
|
15339
15345
|
if (r && t?.attributes?.action) {
|
|
15340
|
-
const o =
|
|
15346
|
+
const o = tf(t.attributes.action);
|
|
15341
15347
|
if (Object.keys(o).length > 0)
|
|
15342
15348
|
try {
|
|
15343
15349
|
localStorage.setItem(`aikaara_form:${r}`, JSON.stringify(o));
|
|
@@ -15413,8 +15419,8 @@ class Qh extends HTMLElement {
|
|
|
15413
15419
|
<slot></slot>
|
|
15414
15420
|
`; this.firstChild; ) this.removeChild(this.firstChild);
|
|
15415
15421
|
if (!e) return;
|
|
15416
|
-
const r = t ?
|
|
15417
|
-
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, s)) : r?.scriptUrl && !customElements.get(o) &&
|
|
15422
|
+
const r = t ? Qh(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Jh[o];
|
|
15423
|
+
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, s)) : r?.scriptUrl && !customElements.get(o) && ql(r.scriptUrl).then(() => Yh(o)).then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, s)), customElements.get(o)) {
|
|
15418
15424
|
const s = document.createElement(o);
|
|
15419
15425
|
if (r?.props) {
|
|
15420
15426
|
for (const [a, l] of Object.entries(r.props))
|
|
@@ -15501,7 +15507,7 @@ class Qh extends HTMLElement {
|
|
|
15501
15507
|
*/
|
|
15502
15508
|
mountLinkButton(e) {
|
|
15503
15509
|
const t = this.renderGen;
|
|
15504
|
-
import("./AikaaraLinkButton-
|
|
15510
|
+
import("./AikaaraLinkButton-Qdt9GbUN.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
15505
15511
|
if (t !== this.renderGen) return;
|
|
15506
15512
|
r();
|
|
15507
15513
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -15510,7 +15516,7 @@ class Qh extends HTMLElement {
|
|
|
15510
15516
|
url: e.url ?? "",
|
|
15511
15517
|
openLinkInNewTab: e.openLinkInNewTab,
|
|
15512
15518
|
orderId: e.orderId,
|
|
15513
|
-
extra:
|
|
15519
|
+
extra: ef(e),
|
|
15514
15520
|
messageId: this.getAttribute("message-id") ?? void 0
|
|
15515
15521
|
}), this.appendChild(n);
|
|
15516
15522
|
});
|
|
@@ -15520,26 +15526,26 @@ class Qh extends HTMLElement {
|
|
|
15520
15526
|
t.setPayload(e), this.appendChild(t);
|
|
15521
15527
|
}
|
|
15522
15528
|
}
|
|
15523
|
-
const
|
|
15529
|
+
const Zh = /* @__PURE__ */ new Set([
|
|
15524
15530
|
"type",
|
|
15525
15531
|
"url",
|
|
15526
15532
|
"name",
|
|
15527
15533
|
"openLinkInNewTab",
|
|
15528
15534
|
"orderId"
|
|
15529
15535
|
]);
|
|
15530
|
-
function
|
|
15536
|
+
function ef(i) {
|
|
15531
15537
|
const e = {};
|
|
15532
15538
|
for (const [t, r] of Object.entries(i))
|
|
15533
|
-
|
|
15539
|
+
Zh.has(t) || (e[t] = r);
|
|
15534
15540
|
return e;
|
|
15535
15541
|
}
|
|
15536
|
-
function
|
|
15542
|
+
function tf(i) {
|
|
15537
15543
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType", "serviceType"]), t = {};
|
|
15538
15544
|
for (const [r, o] of Object.entries(i))
|
|
15539
15545
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
15540
15546
|
return t;
|
|
15541
15547
|
}
|
|
15542
|
-
class
|
|
15548
|
+
class rf extends HTMLElement {
|
|
15543
15549
|
shadow;
|
|
15544
15550
|
static get observedAttributes() {
|
|
15545
15551
|
return ["text", "subtext"];
|
|
@@ -15588,7 +15594,7 @@ class tf extends HTMLElement {
|
|
|
15588
15594
|
function Qs(i) {
|
|
15589
15595
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15590
15596
|
}
|
|
15591
|
-
class
|
|
15597
|
+
class nf extends HTMLElement {
|
|
15592
15598
|
shadow;
|
|
15593
15599
|
data = null;
|
|
15594
15600
|
selected = /* @__PURE__ */ new Set();
|
|
@@ -15813,7 +15819,7 @@ function Mt(i) {
|
|
|
15813
15819
|
function dn(i) {
|
|
15814
15820
|
return String(i).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
15815
15821
|
}
|
|
15816
|
-
class
|
|
15822
|
+
class of extends HTMLElement {
|
|
15817
15823
|
shadow;
|
|
15818
15824
|
data = null;
|
|
15819
15825
|
constructor() {
|
|
@@ -15882,14 +15888,14 @@ class nf extends HTMLElement {
|
|
|
15882
15888
|
button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
|
|
15883
15889
|
button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
|
|
15884
15890
|
</style>
|
|
15885
|
-
<button type="button">${
|
|
15891
|
+
<button type="button">${sf(e)}</button>
|
|
15886
15892
|
`, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
|
|
15887
15893
|
}
|
|
15888
15894
|
}
|
|
15889
|
-
function
|
|
15895
|
+
function sf(i) {
|
|
15890
15896
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15891
15897
|
}
|
|
15892
|
-
class
|
|
15898
|
+
class af extends HTMLElement {
|
|
15893
15899
|
shadow;
|
|
15894
15900
|
data = null;
|
|
15895
15901
|
dismissed = !1;
|
|
@@ -15981,7 +15987,7 @@ class sf extends HTMLElement {
|
|
|
15981
15987
|
function hn(i) {
|
|
15982
15988
|
return String(i).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15983
15989
|
}
|
|
15984
|
-
class
|
|
15990
|
+
class lf extends HTMLElement {
|
|
15985
15991
|
shadow;
|
|
15986
15992
|
data = null;
|
|
15987
15993
|
_value = "";
|
|
@@ -16088,7 +16094,7 @@ function rr(i) {
|
|
|
16088
16094
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
16089
16095
|
);
|
|
16090
16096
|
}
|
|
16091
|
-
class
|
|
16097
|
+
class cf extends HTMLElement {
|
|
16092
16098
|
static get observedAttributes() {
|
|
16093
16099
|
return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base", "api-key"];
|
|
16094
16100
|
}
|
|
@@ -16142,7 +16148,7 @@ class lf extends HTMLElement {
|
|
|
16142
16148
|
const l = Object.keys(n).length > 0 ? n : void 0;
|
|
16143
16149
|
return this.mountInflight = (async () => {
|
|
16144
16150
|
try {
|
|
16145
|
-
this.mounted = await
|
|
16151
|
+
this.mounted = await Wf({
|
|
16146
16152
|
container: this,
|
|
16147
16153
|
slug: e,
|
|
16148
16154
|
configBase: this.getAttribute("config-base") ?? void 0,
|
|
@@ -16171,7 +16177,7 @@ class lf extends HTMLElement {
|
|
|
16171
16177
|
})(), this.mountInflight;
|
|
16172
16178
|
}
|
|
16173
16179
|
}
|
|
16174
|
-
class
|
|
16180
|
+
class uf extends HTMLElement {
|
|
16175
16181
|
shadow;
|
|
16176
16182
|
root = null;
|
|
16177
16183
|
iframe = null;
|
|
@@ -16288,7 +16294,7 @@ class cf extends HTMLElement {
|
|
|
16288
16294
|
});
|
|
16289
16295
|
}
|
|
16290
16296
|
}
|
|
16291
|
-
const
|
|
16297
|
+
const df = [
|
|
16292
16298
|
{ label: "Self-filing guidance" },
|
|
16293
16299
|
{ label: "Smart tax suggestions" },
|
|
16294
16300
|
{ label: "Auto-fetch 26AS / AIS" },
|
|
@@ -16296,7 +16302,7 @@ const uf = [
|
|
|
16296
16302
|
{ label: "Dedicated tax expert" },
|
|
16297
16303
|
{ label: "End-to-end filing" },
|
|
16298
16304
|
{ label: "Document handling" }
|
|
16299
|
-
],
|
|
16305
|
+
], hf = [
|
|
16300
16306
|
{
|
|
16301
16307
|
label: "DIY",
|
|
16302
16308
|
match: ["DIY", "DIY_SALARY"],
|
|
@@ -16319,11 +16325,11 @@ const uf = [
|
|
|
16319
16325
|
features: [!0, !0, !0, !0, !0, !0, !0]
|
|
16320
16326
|
}
|
|
16321
16327
|
];
|
|
16322
|
-
class
|
|
16328
|
+
class ff extends HTMLElement {
|
|
16323
16329
|
shadow;
|
|
16324
16330
|
data = null;
|
|
16325
|
-
columns =
|
|
16326
|
-
features =
|
|
16331
|
+
columns = hf;
|
|
16332
|
+
features = df;
|
|
16327
16333
|
constructor() {
|
|
16328
16334
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
16329
16335
|
}
|
|
@@ -16456,7 +16462,7 @@ function fn(i) {
|
|
|
16456
16462
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
16457
16463
|
);
|
|
16458
16464
|
}
|
|
16459
|
-
class
|
|
16465
|
+
class pf extends HTMLElement {
|
|
16460
16466
|
shadow;
|
|
16461
16467
|
root = null;
|
|
16462
16468
|
schemas = [];
|
|
@@ -16547,7 +16553,7 @@ class ff extends HTMLElement {
|
|
|
16547
16553
|
`;
|
|
16548
16554
|
const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
|
|
16549
16555
|
(s) => `
|
|
16550
|
-
<button class="chip" type="button" data-section-id="${
|
|
16556
|
+
<button class="chip" type="button" data-section-id="${gf(s.id)}">
|
|
16551
16557
|
<span class="chip-icon">${s.icon ?? "📄"}</span>
|
|
16552
16558
|
<span class="chip-label">${Zs(s.title)}</span>
|
|
16553
16559
|
</button>`
|
|
@@ -16580,7 +16586,7 @@ class ff extends HTMLElement {
|
|
|
16580
16586
|
e.classList.remove("view-picker"), e.classList.add("view-form");
|
|
16581
16587
|
const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
|
|
16582
16588
|
r.innerHTML = `
|
|
16583
|
-
<button class="icon-btn back-btn" type="button" aria-label="Back">${
|
|
16589
|
+
<button class="icon-btn back-btn" type="button" aria-label="Back">${mf}</button>
|
|
16584
16590
|
<div class="modal-title">${Zs(t?.title ?? "Edit")}</div>
|
|
16585
16591
|
<button class="icon-btn close-btn" type="button" aria-label="Close">${Xs}</button>
|
|
16586
16592
|
`;
|
|
@@ -16756,14 +16762,14 @@ class ff extends HTMLElement {
|
|
|
16756
16762
|
`;
|
|
16757
16763
|
}
|
|
16758
16764
|
}
|
|
16759
|
-
const Xs = '<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>',
|
|
16760
|
-
function
|
|
16765
|
+
const Xs = '<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>', mf = '<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>';
|
|
16766
|
+
function gf(i) {
|
|
16761
16767
|
return i.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
16762
16768
|
}
|
|
16763
16769
|
function Zs(i) {
|
|
16764
16770
|
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
16765
16771
|
}
|
|
16766
|
-
class
|
|
16772
|
+
class bf extends HTMLElement {
|
|
16767
16773
|
shadow;
|
|
16768
16774
|
schema = null;
|
|
16769
16775
|
value = {};
|
|
@@ -17219,33 +17225,33 @@ function St(i) {
|
|
|
17219
17225
|
function Ge(i) {
|
|
17220
17226
|
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
17221
17227
|
}
|
|
17222
|
-
function
|
|
17228
|
+
function yf() {
|
|
17223
17229
|
const i = [
|
|
17224
|
-
["aikaara-chat-widget",
|
|
17225
|
-
["aikaara-chat-bubble",
|
|
17226
|
-
["aikaara-chat-header",
|
|
17227
|
-
["aikaara-message-list",
|
|
17228
|
-
["aikaara-message-bubble",
|
|
17229
|
-
["aikaara-chat-input",
|
|
17230
|
-
["aikaara-typing-indicator",
|
|
17231
|
-
["aikaara-streaming-message",
|
|
17232
|
-
["aikaara-error-banner",
|
|
17233
|
-
["aikaara-template-renderer",
|
|
17234
|
-
["aikaara-system-pill",
|
|
17235
|
-
["aikaara-option-list",
|
|
17236
|
-
["aikaara-submit-action",
|
|
17237
|
-
["aikaara-modal-action",
|
|
17238
|
-
["aikaara-text-input",
|
|
17239
|
-
["aikaara-chat",
|
|
17240
|
-
["aikaara-link-modal",
|
|
17241
|
-
["aikaara-compare-plans",
|
|
17242
|
-
["aikaara-smart-edit-modal",
|
|
17243
|
-
["aikaara-schema-form",
|
|
17230
|
+
["aikaara-chat-widget", Ih],
|
|
17231
|
+
["aikaara-chat-bubble", Th],
|
|
17232
|
+
["aikaara-chat-header", Ph],
|
|
17233
|
+
["aikaara-message-list", Fh],
|
|
17234
|
+
["aikaara-message-bubble", Hh],
|
|
17235
|
+
["aikaara-chat-input", zh],
|
|
17236
|
+
["aikaara-typing-indicator", Vh],
|
|
17237
|
+
["aikaara-streaming-message", Kh],
|
|
17238
|
+
["aikaara-error-banner", Gh],
|
|
17239
|
+
["aikaara-template-renderer", Xh],
|
|
17240
|
+
["aikaara-system-pill", rf],
|
|
17241
|
+
["aikaara-option-list", nf],
|
|
17242
|
+
["aikaara-submit-action", of],
|
|
17243
|
+
["aikaara-modal-action", af],
|
|
17244
|
+
["aikaara-text-input", lf],
|
|
17245
|
+
["aikaara-chat", cf],
|
|
17246
|
+
["aikaara-link-modal", uf],
|
|
17247
|
+
["aikaara-compare-plans", ff],
|
|
17248
|
+
["aikaara-smart-edit-modal", pf],
|
|
17249
|
+
["aikaara-schema-form", bf]
|
|
17244
17250
|
];
|
|
17245
17251
|
for (const [e, t] of i)
|
|
17246
17252
|
customElements.get(e) || customElements.define(e, t);
|
|
17247
17253
|
}
|
|
17248
|
-
|
|
17254
|
+
yf();
|
|
17249
17255
|
function br(i, e, t = "") {
|
|
17250
17256
|
if (!e) return t;
|
|
17251
17257
|
const r = e.split(".");
|
|
@@ -17271,7 +17277,7 @@ function ea(i) {
|
|
|
17271
17277
|
async function Kt(i) {
|
|
17272
17278
|
return typeof i == "function" ? await i() : i;
|
|
17273
17279
|
}
|
|
17274
|
-
class
|
|
17280
|
+
class vf {
|
|
17275
17281
|
constructor(e, t) {
|
|
17276
17282
|
this.descriptor = e, this.sessionToken = t;
|
|
17277
17283
|
}
|
|
@@ -17322,10 +17328,10 @@ class yf {
|
|
|
17322
17328
|
return this.cache = { token: d, requestId: g, fullName: f, userId: b, expiresAt: y }, this.cache;
|
|
17323
17329
|
}
|
|
17324
17330
|
}
|
|
17325
|
-
async function
|
|
17331
|
+
async function wf(i) {
|
|
17326
17332
|
const e = {};
|
|
17327
17333
|
for (const t of i.spec) {
|
|
17328
|
-
const r = await
|
|
17334
|
+
const r = await _f(t, i.providers);
|
|
17329
17335
|
if (r !== void 0 && r !== "")
|
|
17330
17336
|
e[t.name] = r;
|
|
17331
17337
|
else {
|
|
@@ -17338,11 +17344,11 @@ async function vf(i) {
|
|
|
17338
17344
|
}
|
|
17339
17345
|
return e;
|
|
17340
17346
|
}
|
|
17341
|
-
async function
|
|
17347
|
+
async function _f(i, e) {
|
|
17342
17348
|
const t = i.key ?? i.name;
|
|
17343
17349
|
switch (i.source) {
|
|
17344
17350
|
case "cookie":
|
|
17345
|
-
return
|
|
17351
|
+
return kf(t);
|
|
17346
17352
|
case "localStorage":
|
|
17347
17353
|
return yr(() => window.localStorage.getItem(t) ?? void 0);
|
|
17348
17354
|
case "sessionStorage":
|
|
@@ -17350,7 +17356,7 @@ async function wf(i, e) {
|
|
|
17350
17356
|
case "url_param":
|
|
17351
17357
|
return yr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
|
|
17352
17358
|
case "header_meta":
|
|
17353
|
-
return yr(() => document.querySelector(`meta[name="${
|
|
17359
|
+
return yr(() => document.querySelector(`meta[name="${xf(t)}"]`)?.content ?? void 0);
|
|
17354
17360
|
case "callback": {
|
|
17355
17361
|
const r = e?.[i.name];
|
|
17356
17362
|
if (!r) return;
|
|
@@ -17361,7 +17367,7 @@ async function wf(i, e) {
|
|
|
17361
17367
|
return;
|
|
17362
17368
|
}
|
|
17363
17369
|
}
|
|
17364
|
-
function
|
|
17370
|
+
function kf(i) {
|
|
17365
17371
|
if (typeof document > "u") return;
|
|
17366
17372
|
const e = encodeURIComponent(i), t = document.cookie ? document.cookie.split("; ") : [];
|
|
17367
17373
|
for (const r of t) {
|
|
@@ -17383,11 +17389,11 @@ function yr(i) {
|
|
|
17383
17389
|
return;
|
|
17384
17390
|
}
|
|
17385
17391
|
}
|
|
17386
|
-
function
|
|
17392
|
+
function xf(i) {
|
|
17387
17393
|
return i.replace(/["\\]/g, "\\$&");
|
|
17388
17394
|
}
|
|
17389
|
-
const
|
|
17390
|
-
class
|
|
17395
|
+
const Sf = 1800;
|
|
17396
|
+
class Ef {
|
|
17391
17397
|
constructor(e) {
|
|
17392
17398
|
this.opts = e, this.cache = this.loadCache();
|
|
17393
17399
|
}
|
|
@@ -17416,7 +17422,7 @@ class Sf {
|
|
|
17416
17422
|
throw new Error(
|
|
17417
17423
|
"[aikaara-chat-sdk] SsoExchangeAdapter.exchange() requires descriptor.sso.collect; v2 partner-token flow should be handled by TokenDiscoveryReader instead."
|
|
17418
17424
|
);
|
|
17419
|
-
const e = await
|
|
17425
|
+
const e = await wf({
|
|
17420
17426
|
spec: this.opts.descriptor.collect,
|
|
17421
17427
|
providers: this.opts.providers
|
|
17422
17428
|
}), t = JSON.stringify({ credentials: e }), r = {
|
|
@@ -17454,7 +17460,7 @@ class Sf {
|
|
|
17454
17460
|
return this.cache = u, this.persistCache(u), u;
|
|
17455
17461
|
}
|
|
17456
17462
|
computeExpiry() {
|
|
17457
|
-
const e = this.opts.descriptor.cacheTtlSec ??
|
|
17463
|
+
const e = this.opts.descriptor.cacheTtlSec ?? Sf;
|
|
17458
17464
|
if (!(!this.opts.descriptor.cacheKey || e <= 0))
|
|
17459
17465
|
return Date.now() + e * 1e3;
|
|
17460
17466
|
}
|
|
@@ -17487,8 +17493,8 @@ class Sf {
|
|
|
17487
17493
|
}
|
|
17488
17494
|
}
|
|
17489
17495
|
}
|
|
17490
|
-
const
|
|
17491
|
-
async function
|
|
17496
|
+
const Af = 3e4, If = 2e3, Tf = 100;
|
|
17497
|
+
async function Cf(i) {
|
|
17492
17498
|
const { descriptor: e } = i, t = e.tokenSourceConfig ?? {};
|
|
17493
17499
|
switch (e.tokenSource) {
|
|
17494
17500
|
case "init": {
|
|
@@ -17497,37 +17503,37 @@ async function Tf(i) {
|
|
|
17497
17503
|
return { token: i.initToken, source: "init" };
|
|
17498
17504
|
}
|
|
17499
17505
|
case "query": {
|
|
17500
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
17506
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = Of(r);
|
|
17501
17507
|
if (!o) throw new Xe("query", `?${r}= not present`);
|
|
17502
17508
|
return { token: o, source: "query" };
|
|
17503
17509
|
}
|
|
17504
17510
|
case "hash": {
|
|
17505
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
17511
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = Mf(r);
|
|
17506
17512
|
if (!o) throw new Xe("hash", `#${r}= not present`);
|
|
17507
17513
|
return { token: o, source: "hash" };
|
|
17508
17514
|
}
|
|
17509
17515
|
case "postmsg": {
|
|
17510
|
-
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n =
|
|
17511
|
-
return { token: await
|
|
17516
|
+
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = Uf(typeof t.origins == "string" ? t.origins : ""), s = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : Af;
|
|
17517
|
+
return { token: await jf({ type: r, key: o, origins: n, timeoutMs: s }), source: "postmsg" };
|
|
17512
17518
|
}
|
|
17513
17519
|
case "cookie": {
|
|
17514
17520
|
const r = typeof t.name == "string" && t.name ? t.name : "";
|
|
17515
17521
|
if (!r) throw new Xe("cookie", "cookie.name not configured");
|
|
17516
|
-
const o =
|
|
17522
|
+
const o = Lf(r);
|
|
17517
17523
|
if (!o) throw new Xe("cookie", `cookie "${r}" not set`);
|
|
17518
17524
|
return { token: o, source: "cookie" };
|
|
17519
17525
|
}
|
|
17520
17526
|
case "storage": {
|
|
17521
17527
|
const r = t.store === "session" ? "session" : "local", o = typeof t.key == "string" && t.key ? t.key : "", n = typeof t.path == "string" ? t.path : "";
|
|
17522
17528
|
if (!o) throw new Xe("storage", "storage.key not configured");
|
|
17523
|
-
const s =
|
|
17529
|
+
const s = Rf(r, o, n);
|
|
17524
17530
|
if (!s) throw new Xe("storage", `${r}Storage["${o}"] not set`);
|
|
17525
17531
|
return { token: s, source: "storage" };
|
|
17526
17532
|
}
|
|
17527
17533
|
case "global": {
|
|
17528
17534
|
const r = typeof t.path == "string" ? t.path : "";
|
|
17529
17535
|
if (!r) throw new Xe("global", "global.path not configured");
|
|
17530
|
-
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs :
|
|
17536
|
+
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : If, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : Tf, s = await Nf(r, o, n);
|
|
17531
17537
|
if (!s) throw new Xe("global", `window.${r} not present`);
|
|
17532
17538
|
return { token: s, source: "global" };
|
|
17533
17539
|
}
|
|
@@ -17540,7 +17546,7 @@ async function Tf(i) {
|
|
|
17540
17546
|
}
|
|
17541
17547
|
}
|
|
17542
17548
|
}
|
|
17543
|
-
class
|
|
17549
|
+
class Pf {
|
|
17544
17550
|
constructor(e) {
|
|
17545
17551
|
this.opts = e;
|
|
17546
17552
|
}
|
|
@@ -17551,7 +17557,7 @@ class Cf {
|
|
|
17551
17557
|
/** Resolve the token. Returns cache if present. */
|
|
17552
17558
|
async get() {
|
|
17553
17559
|
if (this.cached) return this.cached;
|
|
17554
|
-
const e = await
|
|
17560
|
+
const e = await Cf(this.opts);
|
|
17555
17561
|
return this.cached = e, e;
|
|
17556
17562
|
}
|
|
17557
17563
|
/**
|
|
@@ -17568,7 +17574,7 @@ class Xe extends Error {
|
|
|
17568
17574
|
super(`[aikaara-chat-sdk] token-discovery (${e}): ${t}`), this.source = e, this.name = "TokenDiscoveryError";
|
|
17569
17575
|
}
|
|
17570
17576
|
}
|
|
17571
|
-
function
|
|
17577
|
+
function Of(i) {
|
|
17572
17578
|
if (!(typeof window > "u"))
|
|
17573
17579
|
try {
|
|
17574
17580
|
const e = window.location.search.slice(1);
|
|
@@ -17582,7 +17588,7 @@ function Pf(i) {
|
|
|
17582
17588
|
return;
|
|
17583
17589
|
}
|
|
17584
17590
|
}
|
|
17585
|
-
function
|
|
17591
|
+
function Mf(i) {
|
|
17586
17592
|
if (!(typeof window > "u"))
|
|
17587
17593
|
try {
|
|
17588
17594
|
const e = window.location.hash.replace(/^#/, "");
|
|
@@ -17591,7 +17597,7 @@ function Of(i) {
|
|
|
17591
17597
|
return;
|
|
17592
17598
|
}
|
|
17593
17599
|
}
|
|
17594
|
-
function
|
|
17600
|
+
function Lf(i) {
|
|
17595
17601
|
if (typeof document > "u") return;
|
|
17596
17602
|
const e = encodeURIComponent(i), t = document.cookie ? document.cookie.split("; ") : [];
|
|
17597
17603
|
for (const r of t) {
|
|
@@ -17606,7 +17612,7 @@ function Mf(i) {
|
|
|
17606
17612
|
}
|
|
17607
17613
|
}
|
|
17608
17614
|
}
|
|
17609
|
-
function
|
|
17615
|
+
function Rf(i, e, t) {
|
|
17610
17616
|
if (!(typeof window > "u"))
|
|
17611
17617
|
try {
|
|
17612
17618
|
const o = (i === "session" ? window.sessionStorage : window.localStorage).getItem(e);
|
|
@@ -17618,17 +17624,17 @@ function Lf(i, e, t) {
|
|
|
17618
17624
|
} catch {
|
|
17619
17625
|
return o;
|
|
17620
17626
|
}
|
|
17621
|
-
const s =
|
|
17627
|
+
const s = Hl(n, t);
|
|
17622
17628
|
return typeof s == "string" ? s : void 0;
|
|
17623
17629
|
} catch {
|
|
17624
17630
|
return;
|
|
17625
17631
|
}
|
|
17626
17632
|
}
|
|
17627
|
-
async function
|
|
17633
|
+
async function Nf(i, e, t) {
|
|
17628
17634
|
if (typeof window > "u") return;
|
|
17629
17635
|
const r = Date.now() + e;
|
|
17630
17636
|
for (; Date.now() < r; ) {
|
|
17631
|
-
const o =
|
|
17637
|
+
const o = Hl(window, i);
|
|
17632
17638
|
if (typeof o == "string" && o.length > 0) return o;
|
|
17633
17639
|
if (typeof o == "function")
|
|
17634
17640
|
try {
|
|
@@ -17639,7 +17645,7 @@ async function Rf(i, e, t) {
|
|
|
17639
17645
|
await new Promise((n) => setTimeout(n, t));
|
|
17640
17646
|
}
|
|
17641
17647
|
}
|
|
17642
|
-
function
|
|
17648
|
+
function jf(i) {
|
|
17643
17649
|
return new Promise((e, t) => {
|
|
17644
17650
|
if (typeof window > "u") {
|
|
17645
17651
|
t(new Xe("postmsg", "no window"));
|
|
@@ -17661,10 +17667,10 @@ function Nf(i) {
|
|
|
17661
17667
|
window.addEventListener("message", n);
|
|
17662
17668
|
});
|
|
17663
17669
|
}
|
|
17664
|
-
function
|
|
17670
|
+
function Uf(i) {
|
|
17665
17671
|
return i ? i.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
|
|
17666
17672
|
}
|
|
17667
|
-
function
|
|
17673
|
+
function Hl(i, e) {
|
|
17668
17674
|
if (!e) return i;
|
|
17669
17675
|
const t = e.split(".").filter(Boolean);
|
|
17670
17676
|
let r = i;
|
|
@@ -17675,7 +17681,7 @@ function ql(i, e) {
|
|
|
17675
17681
|
return;
|
|
17676
17682
|
return r;
|
|
17677
17683
|
}
|
|
17678
|
-
function
|
|
17684
|
+
function Df() {
|
|
17679
17685
|
const i = typeof crypto < "u" ? crypto : null;
|
|
17680
17686
|
if (i?.randomUUID) return i.randomUUID();
|
|
17681
17687
|
if (i?.getRandomValues) {
|
|
@@ -17689,25 +17695,25 @@ function Uf() {
|
|
|
17689
17695
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
17690
17696
|
});
|
|
17691
17697
|
}
|
|
17692
|
-
const
|
|
17698
|
+
const Bf = "aikaara_chat:requestId";
|
|
17693
17699
|
function Co(i, e, t) {
|
|
17694
|
-
const r = `${
|
|
17700
|
+
const r = `${Bf}:${i}:${e}`;
|
|
17695
17701
|
return t ? `${r}:${t}` : r;
|
|
17696
17702
|
}
|
|
17697
|
-
function
|
|
17703
|
+
function Wl(i, e, t) {
|
|
17698
17704
|
try {
|
|
17699
17705
|
return localStorage.getItem(Co(i, e, t));
|
|
17700
17706
|
} catch {
|
|
17701
17707
|
return null;
|
|
17702
17708
|
}
|
|
17703
17709
|
}
|
|
17704
|
-
function
|
|
17710
|
+
function Ff(i, e, t, r) {
|
|
17705
17711
|
try {
|
|
17706
17712
|
localStorage.setItem(Co(i, e, r), t);
|
|
17707
17713
|
} catch {
|
|
17708
17714
|
}
|
|
17709
17715
|
}
|
|
17710
|
-
function
|
|
17716
|
+
function zf(i, e, t) {
|
|
17711
17717
|
try {
|
|
17712
17718
|
localStorage.removeItem(Co(i, e, t));
|
|
17713
17719
|
} catch {
|
|
@@ -17756,7 +17762,7 @@ async function fo(i, e, t = "before-chat") {
|
|
|
17756
17762
|
_ = x;
|
|
17757
17763
|
break;
|
|
17758
17764
|
}
|
|
17759
|
-
if (y = x.status, w = await x.text().catch(() => ""), m < c.length &&
|
|
17765
|
+
if (y = x.status, w = await x.text().catch(() => ""), m < c.length && $f(y, w)) {
|
|
17760
17766
|
const S = c[m++];
|
|
17761
17767
|
console.warn(
|
|
17762
17768
|
`[aikaara-chat-sdk] preflight #${u} ${g} ${p} → ${y} (transient). Retry #${m} in ${S}ms.`
|
|
@@ -17810,7 +17816,7 @@ async function fo(i, e, t = "before-chat") {
|
|
|
17810
17816
|
}
|
|
17811
17817
|
return { captured: l };
|
|
17812
17818
|
}
|
|
17813
|
-
async function
|
|
17819
|
+
async function Vf(i) {
|
|
17814
17820
|
const e = i.steps ?? [];
|
|
17815
17821
|
return e.some((r) => r.trigger === "on-method-select") ? (await fo(
|
|
17816
17822
|
e,
|
|
@@ -17826,7 +17832,7 @@ async function zf(i) {
|
|
|
17826
17832
|
"on-method-select"
|
|
17827
17833
|
)).captured : {};
|
|
17828
17834
|
}
|
|
17829
|
-
function
|
|
17835
|
+
function $f(i, e) {
|
|
17830
17836
|
if (i === 503 || i === 504 || i === 502) return !0;
|
|
17831
17837
|
if (i === 401 || i === 403) return e.trim().length === 0;
|
|
17832
17838
|
if (i === 500) {
|
|
@@ -17835,7 +17841,7 @@ function Ff(i, e) {
|
|
|
17835
17841
|
}
|
|
17836
17842
|
return !1;
|
|
17837
17843
|
}
|
|
17838
|
-
async function
|
|
17844
|
+
async function zl(i, e) {
|
|
17839
17845
|
const t = await fetch(i, {
|
|
17840
17846
|
method: "GET",
|
|
17841
17847
|
headers: { accept: "application/json", ...e ?? {} }
|
|
@@ -17851,10 +17857,10 @@ async function Wl(i, e) {
|
|
|
17851
17857
|
}
|
|
17852
17858
|
return r;
|
|
17853
17859
|
}
|
|
17854
|
-
function
|
|
17855
|
-
return i.replace("{projectId}", e).replace("{uuid}",
|
|
17860
|
+
function Vl(i, e) {
|
|
17861
|
+
return i.replace("{projectId}", e).replace("{uuid}", Df().replace(/-/g, ""));
|
|
17856
17862
|
}
|
|
17857
|
-
function
|
|
17863
|
+
function Kl(i) {
|
|
17858
17864
|
const e = i._preload;
|
|
17859
17865
|
if (!Array.isArray(e) || e.length === 0) return;
|
|
17860
17866
|
const t = Array.from(
|
|
@@ -17862,19 +17868,19 @@ function Vl(i) {
|
|
|
17862
17868
|
e.map((r) => r && typeof r == "object" ? r.scriptUrl : null).filter((r) => typeof r == "string" && r.length > 0)
|
|
17863
17869
|
)
|
|
17864
17870
|
);
|
|
17865
|
-
t.length !== 0 && Promise.allSettled(t.map((r) =>
|
|
17871
|
+
t.length !== 0 && Promise.allSettled(t.map((r) => ql(r)));
|
|
17866
17872
|
}
|
|
17867
|
-
async function
|
|
17873
|
+
async function qf(i) {
|
|
17868
17874
|
const e = {
|
|
17869
|
-
...i.config ?? (i.configUrl ? await
|
|
17875
|
+
...i.config ?? (i.configUrl ? await zl(i.configUrl, i.configHeaders) : {}),
|
|
17870
17876
|
...i.overrides ?? {}
|
|
17871
17877
|
};
|
|
17872
|
-
|
|
17878
|
+
Kl(e);
|
|
17873
17879
|
const t = e.transport ?? "tiledesk", r = e.tiledesk;
|
|
17874
17880
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
17875
17881
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
17876
|
-
const o = r?.projectId ?? "", n = i.identity.userId, s = i.conversationScope || void 0, a = i.forceNewConversation ? null :
|
|
17877
|
-
(i.conversationId || !a || i.forceNewConversation) && o &&
|
|
17882
|
+
const o = r?.projectId ?? "", n = i.identity.userId, s = i.conversationScope || void 0, a = i.forceNewConversation ? null : Wl(n, o, s), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = i.conversationId ?? a ?? Vl(l, o);
|
|
17883
|
+
(i.conversationId || !a || i.forceNewConversation) && o && Ff(n, o, c, s);
|
|
17878
17884
|
const u = await i.tokenProvider(), d = i.tokenProvider, p = i.historyTokenProvider ?? d, g = r ? {
|
|
17879
17885
|
mqttEndpoint: r.mqttEndpoint,
|
|
17880
17886
|
jwtToken: u,
|
|
@@ -17906,7 +17912,7 @@ async function $f(i) {
|
|
|
17906
17912
|
endpoint: e.uploadEndpoint,
|
|
17907
17913
|
fieldName: e.uploadFieldName,
|
|
17908
17914
|
extraFields: e.uploadExtraFields
|
|
17909
|
-
}) : void 0), b = i.historyAdapter ?? (e.historyApiBase ?
|
|
17915
|
+
}) : void 0), b = i.historyAdapter ?? (e.historyApiBase ? Md({
|
|
17910
17916
|
apiBase: e.historyApiBase,
|
|
17911
17917
|
pageSize: e.historyPageSize ?? 200,
|
|
17912
17918
|
pathTemplate: e.historyPathTemplate,
|
|
@@ -17962,17 +17968,17 @@ async function $f(i) {
|
|
|
17962
17968
|
}
|
|
17963
17969
|
};
|
|
17964
17970
|
}
|
|
17965
|
-
function
|
|
17971
|
+
function Hf(i) {
|
|
17966
17972
|
if (typeof i != "string") return i;
|
|
17967
17973
|
const e = document.querySelector(i);
|
|
17968
17974
|
if (!e) throw new Error(`mountFromSlug: container "${i}" not found`);
|
|
17969
17975
|
return e;
|
|
17970
17976
|
}
|
|
17971
|
-
async function
|
|
17977
|
+
async function Wf(i) {
|
|
17972
17978
|
const e = (i.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(i.slug)}`;
|
|
17973
17979
|
let r = null;
|
|
17974
17980
|
try {
|
|
17975
|
-
r = await
|
|
17981
|
+
r = await zl(t, i.configHeaders);
|
|
17976
17982
|
} catch (I) {
|
|
17977
17983
|
if (!i.fallbackConfig) throw I;
|
|
17978
17984
|
console.warn(
|
|
@@ -17985,7 +17991,7 @@ async function Hf(i) {
|
|
|
17985
17991
|
...r ?? {},
|
|
17986
17992
|
...i.overrides ?? {}
|
|
17987
17993
|
};
|
|
17988
|
-
if (
|
|
17994
|
+
if (Kl(o), o.templates && Object.keys(o.templates).length > 0) {
|
|
17989
17995
|
o.components = { ...o.components ?? {} };
|
|
17990
17996
|
for (const [I, P] of Object.entries(o.templates)) {
|
|
17991
17997
|
const O = `template:${I}`;
|
|
@@ -18018,7 +18024,7 @@ async function Hf(i) {
|
|
|
18018
18024
|
let s = null, a = i.user.id, l = i.user.name, c = "", u = i.user.token, d = null;
|
|
18019
18025
|
const p = await Kt(i.user.token).catch(() => ""), g = typeof p == "string" && p.length > 0;
|
|
18020
18026
|
if (!g && o.sso?.tokenSource) {
|
|
18021
|
-
d = new
|
|
18027
|
+
d = new Pf({
|
|
18022
18028
|
descriptor: {
|
|
18023
18029
|
provider: o.sso.provider,
|
|
18024
18030
|
flow: o.sso.flow,
|
|
@@ -18035,7 +18041,7 @@ async function Hf(i) {
|
|
|
18035
18041
|
u = async () => (await d.get()).token, i.user.identity && !i.user.identity.partnerToken && (i.user.identity.partnerToken = I.token);
|
|
18036
18042
|
} else if (!g && o.sso && o.sso.collect && o.sso.collect.length > 0) {
|
|
18037
18043
|
const I = `${e}/api/v1/projects/by-slug/${encodeURIComponent(i.slug)}/sso_exchange`;
|
|
18038
|
-
s = await new
|
|
18044
|
+
s = await new Ef({
|
|
18039
18045
|
descriptor: o.sso,
|
|
18040
18046
|
providers: i.user.credentialProviders,
|
|
18041
18047
|
exchangeUrl: I
|
|
@@ -18057,9 +18063,9 @@ async function Hf(i) {
|
|
|
18057
18063
|
}
|
|
18058
18064
|
I.captured.userId && (a = I.captured.userId), I.captured.requestId && (b = I.captured.requestId);
|
|
18059
18065
|
}
|
|
18060
|
-
const y = new
|
|
18066
|
+
const y = new vf(o.auth, u);
|
|
18061
18067
|
if (f) {
|
|
18062
|
-
const I = o.tiledesk?.projectId ?? "", P = I ?
|
|
18068
|
+
const I = o.tiledesk?.projectId ?? "", P = I ? Wl(a, I) : null, O = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", B = P ?? (I ? Vl(O, I) : "");
|
|
18063
18069
|
y.prime(f, { requestId: B, fullName: l });
|
|
18064
18070
|
}
|
|
18065
18071
|
const w = await y.get();
|
|
@@ -18080,7 +18086,7 @@ async function Hf(i) {
|
|
|
18080
18086
|
} catch (I) {
|
|
18081
18087
|
return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
|
|
18082
18088
|
}
|
|
18083
|
-
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Kt(i.user.token)}`, S = i.hooks?.upload ?? (x && x.mode === "presigned-3step" ?
|
|
18089
|
+
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Kt(i.user.token)}`, S = i.hooks?.upload ?? (x && x.mode === "presigned-3step" ? Pd({
|
|
18084
18090
|
...x,
|
|
18085
18091
|
authHeader: v
|
|
18086
18092
|
}) : x && x.mode === "direct" ? Nl({
|
|
@@ -18088,8 +18094,8 @@ async function Hf(i) {
|
|
|
18088
18094
|
fieldName: x.fieldName,
|
|
18089
18095
|
extraFields: x.extraFields,
|
|
18090
18096
|
headers: async () => ({ authorization: await v() })
|
|
18091
|
-
}) : void 0), E = await
|
|
18092
|
-
container:
|
|
18097
|
+
}) : void 0), E = await qf({
|
|
18098
|
+
container: Hf(i.container),
|
|
18093
18099
|
config: o,
|
|
18094
18100
|
// SSO-issued Aikaara user token, used by the ActionCable transport.
|
|
18095
18101
|
// Tiledesk-only widgets ignore this; falls back to `userId` inside `mount`.
|
|
@@ -18145,51 +18151,51 @@ async function Hf(i) {
|
|
|
18145
18151
|
}
|
|
18146
18152
|
export {
|
|
18147
18153
|
Po as A,
|
|
18148
|
-
|
|
18149
|
-
|
|
18150
|
-
|
|
18154
|
+
Wf as B,
|
|
18155
|
+
Gl as C,
|
|
18156
|
+
qf as D,
|
|
18151
18157
|
ta as E,
|
|
18152
18158
|
Rl as F,
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
|
|
18167
|
-
|
|
18168
|
-
|
|
18169
|
-
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
18159
|
+
Vf as G,
|
|
18160
|
+
Dh as H,
|
|
18161
|
+
cf as I,
|
|
18162
|
+
ff as J,
|
|
18163
|
+
uf as K,
|
|
18164
|
+
af as L,
|
|
18165
|
+
sc as M,
|
|
18166
|
+
nf as N,
|
|
18167
|
+
bf as O,
|
|
18168
|
+
pf as P,
|
|
18169
|
+
of as Q,
|
|
18170
|
+
rf as R,
|
|
18171
|
+
vf as S,
|
|
18172
|
+
wd as T,
|
|
18173
|
+
Xh as U,
|
|
18174
|
+
lf as V,
|
|
18175
|
+
Th as a,
|
|
18176
|
+
Ad as b,
|
|
18177
|
+
Ph as c,
|
|
18178
|
+
zh as d,
|
|
18179
|
+
Ih as e,
|
|
18180
|
+
Gh as f,
|
|
18181
|
+
Hh as g,
|
|
18182
|
+
Fh as h,
|
|
18183
|
+
Kh as i,
|
|
18184
|
+
Vh as j,
|
|
18185
|
+
oc as k,
|
|
18186
|
+
ic as l,
|
|
18187
|
+
ac as m,
|
|
18188
|
+
Ef as n,
|
|
18183
18189
|
Xe as o,
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18190
|
+
Pf as p,
|
|
18191
|
+
zf as q,
|
|
18192
|
+
yf as r,
|
|
18193
|
+
wf as s,
|
|
18188
18194
|
Nl as t,
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
18193
|
-
|
|
18194
|
-
|
|
18195
|
+
Pd as u,
|
|
18196
|
+
Md as v,
|
|
18197
|
+
Cf as w,
|
|
18198
|
+
Sd as x,
|
|
18199
|
+
xd as y,
|
|
18200
|
+
kd as z
|
|
18195
18201
|
};
|