@aikaara/chat-sdk 1.4.23 → 1.4.25
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-DaEtJOX_.mjs → AikaaraLinkButton-CovBKqQb.mjs} +1 -1
- package/dist/{AikaaraLinkButton-DSIlzetR.cjs → AikaaraLinkButton-Diu5GfRX.cjs} +1 -1
- package/dist/{MountTenant-3lly-tCH.cjs → MountTenant-By02wsL8.cjs} +30 -23
- package/dist/{MountTenant-D-CImtE-.mjs → MountTenant-CM9oOIMB.mjs} +407 -414
- package/dist/cdn/aikaara-chat.iife.js +22 -15
- 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.d.ts +2 -0
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -546,12 +546,12 @@ class tc {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
var ho = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty,
|
|
549
|
+
var ho = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty, Ye = (s, e) => () => (s && (e = s(s = 0)), e), pe = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports), Wt = (s, e) => {
|
|
550
550
|
for (var t in e) ho(s, t, { get: e[t], enumerable: !0 });
|
|
551
551
|
}, oc = (s, e, t, r) => {
|
|
552
552
|
if (e && typeof e == "object" || typeof e == "function") for (let o of nc(e)) !ic.call(s, o) && o !== t && ho(s, o, { get: () => e[o], enumerable: !(r = rc(e, o)) || r.enumerable });
|
|
553
553
|
return s;
|
|
554
|
-
}, Me = (s) => oc(ho({}, "__esModule", { value: !0 }), s), le =
|
|
554
|
+
}, Me = (s) => oc(ho({}, "__esModule", { value: !0 }), s), le = Ye(() => {
|
|
555
555
|
}), Re = {};
|
|
556
556
|
Wt(Re, { _debugEnd: () => Wn, _debugProcess: () => Hn, _events: () => oi, _eventsCount: () => si, _exiting: () => Cn, _fatalExceptions: () => Fn, _getActiveHandles: () => oa, _getActiveRequests: () => ia, _kill: () => Mn, _linkedBinding: () => ra, _maxListeners: () => ii, _preload_modules: () => ri, _rawDebug: () => An, _startProfilerIdleNotifier: () => zn, _stopProfilerIdleNotifier: () => Vn, _tickCallback: () => qn, abort: () => Jn, addListener: () => ai, allowedNodeEnvironmentFlags: () => Bn, arch: () => dn, argv: () => mn, argv0: () => ti, assert: () => sa, binding: () => wn, browser: () => En, chdir: () => xn, config: () => On, cpuUsage: () => Zt, cwd: () => kn, debugPort: () => ei, default: () => po, dlopen: () => na, domain: () => Tn, emit: () => di, emitWarning: () => vn, env: () => pn, execArgv: () => gn, execPath: () => Zn, exit: () => jn, features: () => Dn, hasUncaughtExceptionCaptureCallback: () => aa, hrtime: () => gr, kill: () => Nn, listeners: () => ca, memoryUsage: () => Ln, moduleLoadList: () => In, nextTick: () => ea, off: () => ci, on: () => ct, once: () => li, openStdin: () => Un, pid: () => Qn, platform: () => fn, ppid: () => Xn, prependListener: () => fi, prependOnceListener: () => pi, reallyExit: () => Pn, release: () => Sn, removeAllListeners: () => hi, removeListener: () => ui, resourceUsage: () => Rn, setSourceMapsEnabled: () => ni, setUncaughtExceptionCaptureCallback: () => $n, stderr: () => Gn, stdin: () => Yn, stdout: () => Kn, title: () => hn, umask: () => _n, uptime: () => la, version: () => bn, versions: () => yn });
|
|
557
557
|
function fo(s) {
|
|
@@ -612,7 +612,7 @@ function ct() {
|
|
|
612
612
|
function ca(s) {
|
|
613
613
|
return [];
|
|
614
614
|
}
|
|
615
|
-
var st, Pt, Ct, nr, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Zt, Rn, Ln, Nn, jn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ht, Zr, br, ii, oi, si, ai, li, ci, ui, hi, di, fi, pi, po, ac =
|
|
615
|
+
var st, Pt, Ct, nr, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Zt, Rn, Ln, Nn, jn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ht, Zr, br, ii, oi, si, ai, li, ci, ui, hi, di, fi, pi, po, ac = Ye(() => {
|
|
616
616
|
le(), ue(), ce(), st = [], Pt = !1, nr = -1, ta.prototype.run = function() {
|
|
617
617
|
this.fun.apply(null, this.array);
|
|
618
618
|
}, hn = "browser", dn = "x64", fn = "browser", pn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, mn = ["/usr/bin/node"], gn = [], bn = "v16.8.0", yn = {}, vn = function(s, e) {
|
|
@@ -630,7 +630,7 @@ var st, Pt, Ct, nr, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En,
|
|
|
630
630
|
var e = gr(s);
|
|
631
631
|
return typeof BigInt > "u" ? e[0] * br + e[1] : BigInt(e[0] * br) + BigInt(e[1]);
|
|
632
632
|
}, ii = 10, oi = {}, si = 0, ai = ct, li = ct, ci = ct, ui = ct, hi = ct, di = qe, fi = ct, pi = ct, po = { version: bn, versions: yn, arch: dn, platform: fn, browser: En, release: Sn, _rawDebug: An, moduleLoadList: In, binding: wn, _linkedBinding: ra, _events: oi, _eventsCount: si, _maxListeners: ii, on: ct, addListener: ai, once: li, off: ci, removeListener: ui, removeAllListeners: hi, emit: di, prependListener: fi, prependOnceListener: pi, listeners: ca, domain: Tn, _exiting: Cn, config: On, dlopen: na, uptime: la, _getActiveRequests: ia, _getActiveHandles: oa, reallyExit: Pn, _kill: Mn, cpuUsage: Zt, resourceUsage: Rn, memoryUsage: Ln, kill: Nn, exit: jn, openStdin: Un, allowedNodeEnvironmentFlags: Bn, assert: sa, features: Dn, _fatalExceptions: Fn, setUncaughtExceptionCaptureCallback: $n, hasUncaughtExceptionCaptureCallback: aa, emitWarning: vn, nextTick: ea, _tickCallback: qn, _debugProcess: Hn, _debugEnd: Wn, _startProfilerIdleNotifier: zn, _stopProfilerIdleNotifier: Vn, stdout: Kn, stdin: Yn, stderr: Gn, abort: Jn, umask: _n, chdir: xn, cwd: kn, env: pn, title: hn, argv: mn, execArgv: gn, pid: Qn, ppid: Xn, execPath: Zn, debugPort: ei, hrtime: gr, argv0: ti, _preload_modules: ri, setSourceMapsEnabled: ni };
|
|
633
|
-
}), ce =
|
|
633
|
+
}), ce = Ye(() => {
|
|
634
634
|
ac();
|
|
635
635
|
});
|
|
636
636
|
function lc() {
|
|
@@ -955,8 +955,8 @@ function uc() {
|
|
|
955
955
|
if (d.length < 2 || k.length < 2) return -1;
|
|
956
956
|
he = 2, ke /= 2, z /= 2, A /= 2;
|
|
957
957
|
}
|
|
958
|
-
function ie(Ae,
|
|
959
|
-
return he === 1 ? Ae[
|
|
958
|
+
function ie(Ae, Ie) {
|
|
959
|
+
return he === 1 ? Ae[Ie] : Ae.readUInt16BE(Ie * he);
|
|
960
960
|
}
|
|
961
961
|
let Ee;
|
|
962
962
|
if (X) {
|
|
@@ -966,7 +966,7 @@ function uc() {
|
|
|
966
966
|
} else Ae !== -1 && (Ee -= Ee - Ae), Ae = -1;
|
|
967
967
|
} else for (A + z > ke && (A = ke - z), Ee = A; Ee >= 0; Ee--) {
|
|
968
968
|
let Ae = !0;
|
|
969
|
-
for (let
|
|
969
|
+
for (let Ie = 0; Ie < z; Ie++) if (ie(d, Ee + Ie) !== ie(k, Ie)) {
|
|
970
970
|
Ae = !1;
|
|
971
971
|
break;
|
|
972
972
|
}
|
|
@@ -1049,19 +1049,19 @@ function uc() {
|
|
|
1049
1049
|
for (; X < A; ) {
|
|
1050
1050
|
let he = d[X], ke = null, z = he > 239 ? 4 : he > 223 ? 3 : he > 191 ? 2 : 1;
|
|
1051
1051
|
if (X + z <= A) {
|
|
1052
|
-
let ie, Ee, Ae,
|
|
1052
|
+
let ie, Ee, Ae, Ie;
|
|
1053
1053
|
switch (z) {
|
|
1054
1054
|
case 1:
|
|
1055
1055
|
he < 128 && (ke = he);
|
|
1056
1056
|
break;
|
|
1057
1057
|
case 2:
|
|
1058
|
-
ie = d[X + 1], (ie & 192) === 128 && (
|
|
1058
|
+
ie = d[X + 1], (ie & 192) === 128 && (Ie = (he & 31) << 6 | ie & 63, Ie > 127 && (ke = Ie));
|
|
1059
1059
|
break;
|
|
1060
1060
|
case 3:
|
|
1061
|
-
ie = d[X + 1], Ee = d[X + 2], (ie & 192) === 128 && (Ee & 192) === 128 && (
|
|
1061
|
+
ie = d[X + 1], Ee = d[X + 2], (ie & 192) === 128 && (Ee & 192) === 128 && (Ie = (he & 15) << 12 | (ie & 63) << 6 | Ee & 63, Ie > 2047 && (Ie < 55296 || Ie > 57343) && (ke = Ie));
|
|
1062
1062
|
break;
|
|
1063
1063
|
case 4:
|
|
1064
|
-
ie = d[X + 1], Ee = d[X + 2], Ae = d[X + 3], (ie & 192) === 128 && (Ee & 192) === 128 && (Ae & 192) === 128 && (
|
|
1064
|
+
ie = d[X + 1], Ee = d[X + 2], Ae = d[X + 3], (ie & 192) === 128 && (Ee & 192) === 128 && (Ae & 192) === 128 && (Ie = (he & 15) << 18 | (ie & 63) << 12 | (Ee & 63) << 6 | Ae & 63, Ie > 65535 && Ie < 1114112 && (ke = Ie));
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
ke === null ? (ke = 65533, z = 1) : ke > 65535 && (ke -= 65536, B.push(ke >>> 10 & 1023 | 55296), ke = 56320 | ke & 1023), B.push(ke), X += z;
|
|
@@ -1440,20 +1440,20 @@ function uc() {
|
|
|
1440
1440
|
return k;
|
|
1441
1441
|
})();
|
|
1442
1442
|
function se(d) {
|
|
1443
|
-
return typeof BigInt > "u" ?
|
|
1443
|
+
return typeof BigInt > "u" ? Te : d;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function Te() {
|
|
1446
1446
|
throw new Error("BigInt not supported");
|
|
1447
1447
|
}
|
|
1448
1448
|
return wt;
|
|
1449
1449
|
}
|
|
1450
|
-
var Bt, mi, er, gi, wt, bi, hc =
|
|
1450
|
+
var Bt, mi, er, gi, wt, bi, hc = Ye(() => {
|
|
1451
1451
|
le(), ue(), ce(), Bt = {}, mi = !1, er = {}, gi = !1, wt = {}, bi = !1;
|
|
1452
1452
|
}), De = {};
|
|
1453
1453
|
Wt(De, { Buffer: () => qr, INSPECT_MAX_BYTES: () => ua, default: () => ut, kMaxLength: () => ha });
|
|
1454
|
-
var ut, qr, ua, ha, Fe =
|
|
1454
|
+
var ut, qr, ua, ha, Fe = Ye(() => {
|
|
1455
1455
|
le(), ue(), ce(), hc(), ut = uc(), ut.Buffer, ut.SlowBuffer, ut.INSPECT_MAX_BYTES, ut.kMaxLength, qr = ut.Buffer, ua = ut.INSPECT_MAX_BYTES, ha = ut.kMaxLength;
|
|
1456
|
-
}), ue =
|
|
1456
|
+
}), ue = Ye(() => {
|
|
1457
1457
|
Fe();
|
|
1458
1458
|
}), je = pe((s, e) => {
|
|
1459
1459
|
le(), ue(), ce();
|
|
@@ -1541,7 +1541,7 @@ var ut, qr, ua, ha, Fe = Ge(() => {
|
|
|
1541
1541
|
return "{}";
|
|
1542
1542
|
}
|
|
1543
1543
|
} };
|
|
1544
|
-
}),
|
|
1544
|
+
}), Ke = pe((s, e) => {
|
|
1545
1545
|
le(), ue(), ce();
|
|
1546
1546
|
var { format: t, inspect: r } = da(), { AggregateError: o } = je(), n = globalThis.AggregateError || o, i = /* @__PURE__ */ Symbol("kIsNodeError"), a = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], l = /^([A-Z][a-z0-9]*)+$/, c = "__node_internal_", u = {};
|
|
1547
1547
|
function h(m, _) {
|
|
@@ -1870,7 +1870,7 @@ function dc() {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
return tr;
|
|
1872
1872
|
}
|
|
1873
|
-
var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt =
|
|
1873
|
+
var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ye(() => {
|
|
1874
1874
|
le(), ue(), ce(), tr = {}, yi = !1, Dt = dc(), Dt.once, Dt.once = function(s, e) {
|
|
1875
1875
|
return new Promise((t, r) => {
|
|
1876
1876
|
function o(...i) {
|
|
@@ -1910,9 +1910,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
1910
1910
|
u ? u.reject(c) : o = c, i.return();
|
|
1911
1911
|
}
|
|
1912
1912
|
}, { EventEmitter: fa, defaultMaxListeners: pa, init: ma, listenerCount: ga, on: ba, once: ya } = Dt;
|
|
1913
|
-
}),
|
|
1913
|
+
}), Ge = pe((s, e) => {
|
|
1914
1914
|
le(), ue(), ce();
|
|
1915
|
-
var t = (Fe(), Me(De)), { format: r, inspect: o } = da(), { codes: { ERR_INVALID_ARG_TYPE: n } } =
|
|
1915
|
+
var t = (Fe(), Me(De)), { format: r, inspect: o } = da(), { codes: { ERR_INVALID_ARG_TYPE: n } } = Ke(), { kResistStopPropagation: i, AggregateError: a, SymbolDispose: l } = je(), c = globalThis.AbortSignal || or().AbortSignal, u = globalThis.AbortController || or().AbortController, h = Object.getPrototypeOf(async function() {
|
|
1916
1916
|
}).constructor, p = globalThis.Blob || t.Blob, g = typeof p < "u" ? function(y) {
|
|
1917
1917
|
return y instanceof p;
|
|
1918
1918
|
} : function(y) {
|
|
@@ -1966,7 +1966,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
1966
1966
|
} }, e.exports.promisify.custom = /* @__PURE__ */ Symbol.for("nodejs.util.promisify.custom");
|
|
1967
1967
|
}), sr = pe((s, e) => {
|
|
1968
1968
|
le(), ue(), ce();
|
|
1969
|
-
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: g, StringPrototypeToUpperCase: f, StringPrototypeTrim: b } = je(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: w, ERR_INVALID_ARG_TYPE: m, ERR_INVALID_ARG_VALUE: _, ERR_OUT_OF_RANGE: x, ERR_UNKNOWN_SIGNAL: v } } =
|
|
1969
|
+
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: g, StringPrototypeToUpperCase: f, StringPrototypeTrim: b } = je(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: w, ERR_INVALID_ARG_TYPE: m, ERR_INVALID_ARG_VALUE: _, ERR_OUT_OF_RANGE: x, ERR_UNKNOWN_SIGNAL: v } } = Ke(), { normalizeEncoding: E } = Ge(), { isAsyncFunction: S, isArrayBufferView: I } = Ge().types, O = {};
|
|
1970
1970
|
function P(H) {
|
|
1971
1971
|
return H === (H | 0);
|
|
1972
1972
|
}
|
|
@@ -1992,8 +1992,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
1992
1992
|
}), Y = y((H, me, ve = !1) => {
|
|
1993
1993
|
if (typeof H != "number") throw new m(me, "number", H);
|
|
1994
1994
|
if (!i(H)) throw new x(me, "an integer", H);
|
|
1995
|
-
let se = ve ? 1 : 0,
|
|
1996
|
-
if (H < se || H >
|
|
1995
|
+
let se = ve ? 1 : 0, Te = 4294967295;
|
|
1996
|
+
if (H < se || H > Te) throw new x(me, `>= ${se} && <= ${Te}`, H);
|
|
1997
1997
|
});
|
|
1998
1998
|
function V(H, me) {
|
|
1999
1999
|
if (typeof H != "string") throw new m(me, "string", H);
|
|
@@ -2004,7 +2004,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
var F = y((H, me, ve) => {
|
|
2006
2006
|
if (!r(ve, H)) {
|
|
2007
|
-
let se = "must be one of: " + o(n(ve, (
|
|
2007
|
+
let se = "must be one of: " + o(n(ve, (Te) => typeof Te == "string" ? `'${Te}'` : g(Te)), ", ");
|
|
2008
2008
|
throw new _(me, H, se);
|
|
2009
2009
|
}
|
|
2010
2010
|
});
|
|
@@ -2015,8 +2015,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2015
2015
|
return H == null || !h(H, me) ? ve : H[me];
|
|
2016
2016
|
}
|
|
2017
2017
|
var Q = y((H, me, ve = null) => {
|
|
2018
|
-
let se = M(ve, "allowArray", !1),
|
|
2019
|
-
if (!M(ve, "nullable", !1) && H === null || !se && t(H) || typeof H != "object" && (!
|
|
2018
|
+
let se = M(ve, "allowArray", !1), Te = M(ve, "allowFunction", !1);
|
|
2019
|
+
if (!M(ve, "nullable", !1) && H === null || !se && t(H) || typeof H != "object" && (!Te || typeof H != "function")) throw new m(me, "Object", H);
|
|
2020
2020
|
}), be = y((H, me) => {
|
|
2021
2021
|
if (H != null && typeof H != "object" && typeof H != "function") throw new m(me, "a dictionary", H);
|
|
2022
2022
|
}), te = y((H, me, ve = 0) => {
|
|
@@ -2037,9 +2037,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2037
2037
|
function N(H, me) {
|
|
2038
2038
|
te(H, me);
|
|
2039
2039
|
for (let ve = 0; ve < H.length; ve++) {
|
|
2040
|
-
let se = H[ve],
|
|
2041
|
-
if (se == null) throw new m(
|
|
2042
|
-
ge(se,
|
|
2040
|
+
let se = H[ve], Te = `${me}[${ve}]`;
|
|
2041
|
+
if (se == null) throw new m(Te, "AbortSignal", se);
|
|
2042
|
+
ge(se, Te);
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
2045
|
function ne(H, me = "signal") {
|
|
@@ -2078,8 +2078,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2078
2078
|
let me = H.length, ve = "";
|
|
2079
2079
|
if (me === 0) return ve;
|
|
2080
2080
|
for (let se = 0; se < me; se++) {
|
|
2081
|
-
let
|
|
2082
|
-
fe(
|
|
2081
|
+
let Te = H[se];
|
|
2082
|
+
fe(Te, "hints"), ve += Te, se !== me - 1 && (ve += ", ");
|
|
2083
2083
|
}
|
|
2084
2084
|
return ve;
|
|
2085
2085
|
}
|
|
@@ -2281,7 +2281,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2281
2281
|
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: F, kIsDisturbed: c, isErrored: Z, kIsErrored: i, isReadable: P, kIsReadable: a, kIsClosedPromise: u, kControllerErrorFunction: h, kIsWritable: l, isClosed: U, isDuplexNodeStream: f, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: O, isReadableErrored: D, isNodeStream: b, isWebStream: _, isWritable: j, isWritableNodeStream: g, isWritableStream: w, isWritableEnded: E, isWritableFinished: S, isWritableErrored: q, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
|
|
2282
2282
|
}), St = pe((s, e) => {
|
|
2283
2283
|
le(), ue(), ce();
|
|
2284
|
-
var t = Lt(), { AbortError: r, codes: o } =
|
|
2284
|
+
var t = Lt(), { AbortError: r, codes: o } = Ke(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = o, { kEmptyObject: a, once: l } = Ge(), { validateAbortSignal: c, validateFunction: u, validateObject: h, validateBoolean: p } = sr(), { Promise: g, PromisePrototypeThen: f, SymbolDispose: b } = je(), { isClosed: y, isReadable: w, isReadableNodeStream: m, isReadableStream: _, isReadableFinished: x, isReadableErrored: v, isWritable: E, isWritableNodeStream: S, isWritableStream: I, isWritableFinished: O, isWritableErrored: P, isNodeStream: j, willEmitClose: T, kIsClosedPromise: q } = mt(), D;
|
|
2285
2285
|
function U(F) {
|
|
2286
2286
|
return F.setHeader && typeof F.abort == "function";
|
|
2287
2287
|
}
|
|
@@ -2325,7 +2325,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2325
2325
|
};
|
|
2326
2326
|
if (Z.signal.aborted) t.nextTick(H);
|
|
2327
2327
|
else {
|
|
2328
|
-
D = D ||
|
|
2328
|
+
D = D || Ge().addAbortListener;
|
|
2329
2329
|
let me = D(Z.signal, H), ve = M;
|
|
2330
2330
|
M = l((...se) => {
|
|
2331
2331
|
me[b](), ve.apply(F, se);
|
|
@@ -2340,7 +2340,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2340
2340
|
Q = !0, M.call(F, new r(void 0, { cause: Z.signal.reason }));
|
|
2341
2341
|
}, Z.signal.aborted) t.nextTick(be);
|
|
2342
2342
|
else {
|
|
2343
|
-
D = D ||
|
|
2343
|
+
D = D || Ge().addAbortListener;
|
|
2344
2344
|
let we = D(Z.signal, be), K = M;
|
|
2345
2345
|
M = l((...N) => {
|
|
2346
2346
|
we[b](), K.apply(F, N);
|
|
@@ -2363,7 +2363,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2363
2363
|
e.exports = Y, e.exports.finished = re;
|
|
2364
2364
|
}), zt = pe((s, e) => {
|
|
2365
2365
|
le(), ue(), ce();
|
|
2366
|
-
var t = Lt(), { aggregateTwoErrors: r, codes: { ERR_MULTIPLE_CALLBACK: o }, AbortError: n } =
|
|
2366
|
+
var t = Lt(), { aggregateTwoErrors: r, codes: { ERR_MULTIPLE_CALLBACK: o }, AbortError: n } = Ke(), { Symbol: i } = je(), { kIsDestroyed: a, isDestroyed: l, isFinished: c, isServerRequest: u } = mt(), h = i("kDestroy"), p = i("kConstruct");
|
|
2367
2367
|
function g(T, q, D) {
|
|
2368
2368
|
T && (T.stack, q && !q.errored && (q.errored = T), D && !D.errored && (D.errored = T));
|
|
2369
2369
|
}
|
|
@@ -2486,7 +2486,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2486
2486
|
e.exports = { Stream: n, prependListener: i };
|
|
2487
2487
|
}), zr = pe((s, e) => {
|
|
2488
2488
|
le(), ue(), ce();
|
|
2489
|
-
var { SymbolDispose: t } = je(), { AbortError: r, codes: o } =
|
|
2489
|
+
var { SymbolDispose: t } = je(), { AbortError: r, codes: o } = Ke(), { isNodeStream: n, isWebStream: i, kControllerErrorFunction: a } = mt(), l = St(), { ERR_INVALID_ARG_TYPE: c } = o, u, h = (p, g) => {
|
|
2490
2490
|
if (typeof p != "object" || !("aborted" in p)) throw new c(g, "AbortSignal", p);
|
|
2491
2491
|
};
|
|
2492
2492
|
e.exports.addAbortSignal = function(p, g) {
|
|
@@ -2501,7 +2501,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2501
2501
|
};
|
|
2502
2502
|
if (p.aborted) f();
|
|
2503
2503
|
else {
|
|
2504
|
-
u = u ||
|
|
2504
|
+
u = u || Ge().addAbortListener;
|
|
2505
2505
|
let b = u(p, f);
|
|
2506
2506
|
l(g, b[t]);
|
|
2507
2507
|
}
|
|
@@ -2509,7 +2509,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2509
2509
|
};
|
|
2510
2510
|
}), fc = pe((s, e) => {
|
|
2511
2511
|
le(), ue(), ce();
|
|
2512
|
-
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = je(), { Buffer: i } = (Fe(), Me(De)), { inspect: a } =
|
|
2512
|
+
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = je(), { Buffer: i } = (Fe(), Me(De)), { inspect: a } = Ge();
|
|
2513
2513
|
e.exports = class {
|
|
2514
2514
|
constructor() {
|
|
2515
2515
|
this.head = null, this.tail = null, this.length = 0;
|
|
@@ -2588,7 +2588,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2588
2588
|
};
|
|
2589
2589
|
}), Vr = pe((s, e) => {
|
|
2590
2590
|
le(), ue(), ce();
|
|
2591
|
-
var { MathFloor: t, NumberIsInteger: r } = je(), { validateInteger: o } = sr(), { ERR_INVALID_ARG_VALUE: n } =
|
|
2591
|
+
var { MathFloor: t, NumberIsInteger: r } = je(), { validateInteger: o } = sr(), { ERR_INVALID_ARG_VALUE: n } = Ke().codes, i = 16 * 1024, a = 16;
|
|
2592
2592
|
function l(p, g, f) {
|
|
2593
2593
|
return p.highWaterMark != null ? p.highWaterMark : g ? p[f] : null;
|
|
2594
2594
|
}
|
|
@@ -2782,7 +2782,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
}), va = pe((s, e) => {
|
|
2784
2784
|
le(), ue(), ce();
|
|
2785
|
-
var t = Lt(), { PromisePrototypeThen: r, SymbolAsyncIterator: o, SymbolIterator: n } = je(), { Buffer: i } = (Fe(), Me(De)), { ERR_INVALID_ARG_TYPE: a, ERR_STREAM_NULL_VALUES: l } =
|
|
2785
|
+
var t = Lt(), { PromisePrototypeThen: r, SymbolAsyncIterator: o, SymbolIterator: n } = je(), { Buffer: i } = (Fe(), Me(De)), { ERR_INVALID_ARG_TYPE: a, ERR_STREAM_NULL_VALUES: l } = Ke().codes;
|
|
2786
2786
|
function c(u, h, p) {
|
|
2787
2787
|
let g;
|
|
2788
2788
|
if (typeof h == "string" || h instanceof i) return new u({ objectMode: !0, ...p, read() {
|
|
@@ -2833,9 +2833,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2833
2833
|
le(), ue(), ce();
|
|
2834
2834
|
var t = Lt(), { ArrayPrototypeIndexOf: r, NumberIsInteger: o, NumberIsNaN: n, NumberParseInt: i, ObjectDefineProperties: a, ObjectKeys: l, ObjectSetPrototypeOf: c, Promise: u, SafeSet: h, SymbolAsyncDispose: p, SymbolAsyncIterator: g, Symbol: f } = je();
|
|
2835
2835
|
e.exports = se, se.ReadableState = ve;
|
|
2836
|
-
var { EventEmitter: b } = (Rt(), Me(xt)), { Stream: y, prependListener: w } = mo(), { Buffer: m } = (Fe(), Me(De)), { addAbortSignal: _ } = zr(), x = St(), v =
|
|
2836
|
+
var { EventEmitter: b } = (Rt(), Me(xt)), { Stream: y, prependListener: w } = mo(), { Buffer: m } = (Fe(), Me(De)), { addAbortSignal: _ } = zr(), x = St(), v = Ge().debuglog("stream", (C) => {
|
|
2837
2837
|
v = C;
|
|
2838
|
-
}), E = fc(), S = zt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Vr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } =
|
|
2838
|
+
}), E = fc(), S = zt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Vr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = Ke(), { validateObject: Y } = sr(), V = f("kPaused"), { StringDecoder: re } = mc(), F = va();
|
|
2839
2839
|
c(se.prototype, y.prototype), c(se, y);
|
|
2840
2840
|
var Z = () => {
|
|
2841
2841
|
}, { errorOrDestroy: M } = S, Q = 1, be = 2, te = 4, we = 8, K = 16, N = 32, ne = 64, W = 128, G = 256, J = 512, ge = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
@@ -2865,11 +2865,11 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
2865
2865
|
let C;
|
|
2866
2866
|
return this.destroyed || (C = this.readableEnded ? null : new ae(), this.destroy(C)), new u((L, _e) => x(this, (xe) => xe && xe !== C ? _e(xe) : L(null)));
|
|
2867
2867
|
}, se.prototype.push = function(C, L) {
|
|
2868
|
-
return
|
|
2868
|
+
return Te(this, C, L, !1);
|
|
2869
2869
|
}, se.prototype.unshift = function(C, L) {
|
|
2870
|
-
return
|
|
2870
|
+
return Te(this, C, L, !0);
|
|
2871
2871
|
};
|
|
2872
|
-
function
|
|
2872
|
+
function Te(C, L, _e, xe) {
|
|
2873
2873
|
v("readableAddChunk", L);
|
|
2874
2874
|
let Se = C._readableState, Be;
|
|
2875
2875
|
if ((Se.state & Q) === 0 && (typeof L == "string" ? (_e = _e || Se.defaultEncoding, Se.encoding !== _e && (xe && Se.encoding ? L = m.from(L, _e).toString(Se.encoding) : (L = m.from(L, _e), _e = ""))) : L instanceof m ? _e = "" : y._isUint8Array(L) ? (L = y._uint8ArrayToBuffer(L), _e = "") : L != null && (Be = new j("chunk", ["string", "Buffer", "Uint8Array"], L))), Be) M(C, Be);
|
|
@@ -3019,7 +3019,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3019
3019
|
return xe === -1 ? this : (L.pipes.splice(xe, 1), L.pipes.length === 0 && this.pause(), C.emit("unpipe", this, _e), this);
|
|
3020
3020
|
}, se.prototype.on = function(C, L) {
|
|
3021
3021
|
let _e = y.prototype.on.call(this, C, L), xe = this._readableState;
|
|
3022
|
-
return C === "data" ? (xe.readableListening = this.listenerCount("readable") > 0, xe.flowing !== !1 && this.resume()) : C === "readable" && !xe.endEmitted && !xe.readableListening && (xe.readableListening = xe.needReadable = !0, xe.flowing = !1, xe.emittedReadable = !1, v("on readable", xe.length, xe.reading), xe.length ? he(this) : xe.reading || t.nextTick(
|
|
3022
|
+
return C === "data" ? (xe.readableListening = this.listenerCount("readable") > 0, xe.flowing !== !1 && this.resume()) : C === "readable" && !xe.endEmitted && !xe.readableListening && (xe.readableListening = xe.needReadable = !0, xe.flowing = !1, xe.emittedReadable = !1, v("on readable", xe.length, xe.reading), xe.length ? he(this) : xe.reading || t.nextTick(Ie, this)), _e;
|
|
3023
3023
|
}, se.prototype.addListener = se.prototype.on, se.prototype.removeListener = function(C, L) {
|
|
3024
3024
|
let _e = y.prototype.removeListener.call(this, C, L);
|
|
3025
3025
|
return C === "readable" && t.nextTick(Ae, this), _e;
|
|
@@ -3031,7 +3031,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3031
3031
|
let L = C._readableState;
|
|
3032
3032
|
L.readableListening = C.listenerCount("readable") > 0, L.resumeScheduled && L[V] === !1 ? L.flowing = !0 : C.listenerCount("data") > 0 ? C.resume() : L.readableListening || (L.flowing = null);
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function Ie(C) {
|
|
3035
3035
|
v("readable nexttick read 0"), C.read(0);
|
|
3036
3036
|
}
|
|
3037
3037
|
se.prototype.resume = function() {
|
|
@@ -3154,9 +3154,9 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
function nt(C) {
|
|
3156
3156
|
let L = C._readableState;
|
|
3157
|
-
v("endReadable", L.endEmitted), L.endEmitted || (L.ended = !0, t.nextTick(
|
|
3157
|
+
v("endReadable", L.endEmitted), L.endEmitted || (L.ended = !0, t.nextTick(Je, L, C));
|
|
3158
3158
|
}
|
|
3159
|
-
function
|
|
3159
|
+
function Je(C, L) {
|
|
3160
3160
|
if (v("endReadableNT", C.endEmitted, C.length), !C.errored && !C.closeEmitted && !C.endEmitted && C.length === 0) {
|
|
3161
3161
|
if (C.endEmitted = !0, L.emit("end"), L.writable && L.allowHalfOpen === !1) t.nextTick(cr, L);
|
|
3162
3162
|
else if (C.autoDestroy) {
|
|
@@ -3189,7 +3189,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3189
3189
|
le(), ue(), ce();
|
|
3190
3190
|
var t = Lt(), { ArrayPrototypeSlice: r, Error: o, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: i, ObjectDefineProperties: a, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: h } = je();
|
|
3191
3191
|
e.exports = Y, Y.WritableState = U;
|
|
3192
|
-
var { EventEmitter: p } = (Rt(), Me(xt)), g = mo().Stream, { Buffer: f } = (Fe(), Me(De)), b = zt(), { addAbortSignal: y } = zr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Vr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } =
|
|
3192
|
+
var { EventEmitter: p } = (Rt(), Me(xt)), g = mo().Stream, { Buffer: f } = (Fe(), Me(De)), b = zt(), { addAbortSignal: y } = zr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Vr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } = Ke().codes, { errorOrDestroy: T } = b;
|
|
3193
3193
|
l(Y.prototype, g.prototype), l(Y, g);
|
|
3194
3194
|
function q() {
|
|
3195
3195
|
}
|
|
@@ -3296,15 +3296,15 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3296
3296
|
if ($.bufferProcessing = !0, ye > 1 && R._writev) {
|
|
3297
3297
|
$.pendingcb -= ye - 1;
|
|
3298
3298
|
let me = $.allNoop ? q : (se) => {
|
|
3299
|
-
for (let
|
|
3299
|
+
for (let Te = H; Te < ee.length; ++Te) ee[Te].callback(se);
|
|
3300
3300
|
}, ve = $.allNoop && H === 0 ? ee : r(ee, H);
|
|
3301
3301
|
ve.allBuffers = $.allBuffers, F(R, $, !0, $.length, ve, "", me), ae($);
|
|
3302
3302
|
} else {
|
|
3303
3303
|
do {
|
|
3304
3304
|
let { chunk: me, encoding: ve, callback: se } = ee[H];
|
|
3305
3305
|
ee[H++] = null;
|
|
3306
|
-
let
|
|
3307
|
-
F(R, $, !1,
|
|
3306
|
+
let Te = fe ? 1 : me.length;
|
|
3307
|
+
F(R, $, !1, Te, me, ve, se);
|
|
3308
3308
|
} while (H < ee.length && !$.writing);
|
|
3309
3309
|
H === ee.length ? ae($) : H > 256 ? (ee.splice(0, H), $.bufferedIndex = 0) : $.bufferedIndex = H;
|
|
3310
3310
|
}
|
|
@@ -3417,7 +3417,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3417
3417
|
};
|
|
3418
3418
|
}), gc = pe((s, e) => {
|
|
3419
3419
|
le(), ue(), ce();
|
|
3420
|
-
var t = Lt(), r = (Fe(), Me(De)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), g = St(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } =
|
|
3420
|
+
var t = Lt(), r = (Fe(), Me(De)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), g = St(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = zt(), m = ft(), _ = Kr(), x = go(), { createDeferredPromise: v } = Ge(), E = va(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3421
3421
|
return D instanceof S;
|
|
3422
3422
|
} : function(D) {
|
|
3423
3423
|
return !1;
|
|
@@ -3578,7 +3578,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3578
3578
|
le(), ue(), ce();
|
|
3579
3579
|
var { ObjectSetPrototypeOf: t, Symbol: r } = je();
|
|
3580
3580
|
e.exports = l;
|
|
3581
|
-
var { ERR_METHOD_NOT_IMPLEMENTED: o } =
|
|
3581
|
+
var { ERR_METHOD_NOT_IMPLEMENTED: o } = Ke().codes, n = ft(), { getHighWaterMark: i } = Vr();
|
|
3582
3582
|
t(l.prototype, n.prototype), t(l, n);
|
|
3583
3583
|
var a = r("kCallback");
|
|
3584
3584
|
function l(h) {
|
|
@@ -3630,7 +3630,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3630
3630
|
};
|
|
3631
3631
|
}), bo = pe((s, e) => {
|
|
3632
3632
|
le(), ue(), ce();
|
|
3633
|
-
var t = Lt(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = je(), a = St(), { once: l } =
|
|
3633
|
+
var t = Lt(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = je(), a = St(), { once: l } = Ge(), c = zt(), u = ft(), { aggregateTwoErrors: h, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: g, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: b, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ke(), { validateFunction: m, validateAbortSignal: _ } = sr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: j } = mt(), T = globalThis.AbortController || or().AbortController, q, D, U;
|
|
3634
3634
|
function ae(te, we, K) {
|
|
3635
3635
|
let N = !1;
|
|
3636
3636
|
te.on("close", () => {
|
|
@@ -3702,7 +3702,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3702
3702
|
function J() {
|
|
3703
3703
|
fe(new w());
|
|
3704
3704
|
}
|
|
3705
|
-
U = U ||
|
|
3705
|
+
U = U || Ge().addAbortListener;
|
|
3706
3706
|
let ge;
|
|
3707
3707
|
W && (ge = U(W, J));
|
|
3708
3708
|
let oe, R, $ = [], ee = 0;
|
|
@@ -3710,21 +3710,21 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3710
3710
|
fe(ve, --ee === 0);
|
|
3711
3711
|
}
|
|
3712
3712
|
function fe(ve, se) {
|
|
3713
|
-
var
|
|
3713
|
+
var Te;
|
|
3714
3714
|
if (ve && (!oe || oe.code === "ERR_STREAM_PREMATURE_CLOSE") && (oe = ve), !(!oe && !se)) {
|
|
3715
3715
|
for (; $.length; ) $.shift()(oe);
|
|
3716
|
-
(
|
|
3716
|
+
(Te = ge) === null || Te === void 0 || Te[i](), N.abort(), se && (oe || G.forEach((d) => d()), t.nextTick(we, oe, R));
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
3719
3719
|
let ye;
|
|
3720
3720
|
for (let ve = 0; ve < te.length; ve++) {
|
|
3721
|
-
let se = te[ve],
|
|
3721
|
+
let se = te[ve], Te = ve < te.length - 1, d = ve > 0, k = Te || K?.end !== !1, A = ve === te.length - 1;
|
|
3722
3722
|
if (S(se)) {
|
|
3723
3723
|
let B = function(X) {
|
|
3724
3724
|
X && X.name !== "AbortError" && X.code !== "ERR_STREAM_PREMATURE_CLOSE" && de(X);
|
|
3725
3725
|
};
|
|
3726
3726
|
if (k) {
|
|
3727
|
-
let { destroy: X, cleanup: he } = ae(se,
|
|
3727
|
+
let { destroy: X, cleanup: he } = ae(se, Te, d);
|
|
3728
3728
|
$.push(X), v(se) && A && G.push(he);
|
|
3729
3729
|
}
|
|
3730
3730
|
se.on("error", B), v(se) && A && G.push(() => {
|
|
@@ -3739,7 +3739,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3739
3739
|
var H;
|
|
3740
3740
|
ye = V((H = ye) === null || H === void 0 ? void 0 : H.readable);
|
|
3741
3741
|
} else ye = V(ye);
|
|
3742
|
-
if (ye = se(ye, { signal: ne }),
|
|
3742
|
+
if (ye = se(ye, { signal: ne }), Te) {
|
|
3743
3743
|
if (!x(ye, !0)) throw new g("AsyncIterable", `transform[${ve - 1}]`, ye);
|
|
3744
3744
|
} else {
|
|
3745
3745
|
var me;
|
|
@@ -3798,7 +3798,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3798
3798
|
e.exports = { pipelineImpl: Q, pipeline: M };
|
|
3799
3799
|
}), ka = pe((s, e) => {
|
|
3800
3800
|
le(), ue(), ce();
|
|
3801
|
-
var { pipeline: t } = bo(), r = ft(), { destroyer: o } = zt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: g, ERR_MISSING_ARGS: f } } =
|
|
3801
|
+
var { pipeline: t } = bo(), r = ft(), { destroyer: o } = zt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: g, ERR_MISSING_ARGS: f } } = Ke(), b = St();
|
|
3802
3802
|
e.exports = function(...y) {
|
|
3803
3803
|
if (y.length === 0) throw new f("streams");
|
|
3804
3804
|
if (y.length === 1) return r.from(y[0]);
|
|
@@ -3894,7 +3894,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3894
3894
|
};
|
|
3895
3895
|
}), bc = pe((s, e) => {
|
|
3896
3896
|
le(), ue(), ce();
|
|
3897
|
-
var t = globalThis.AbortController || or().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } =
|
|
3897
|
+
var t = globalThis.AbortController || or().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = sr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: g } = St(), f = ka(), { addAbortSignalNoValidate: b } = zr(), { isWritable: y, isNodeStream: w } = mt(), { deprecate: m } = Ge(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: j, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
|
|
3898
3898
|
function U(W, G) {
|
|
3899
3899
|
if (G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
|
|
3900
3900
|
let J = f(this, W);
|
|
@@ -3907,7 +3907,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3907
3907
|
G?.concurrency != null && (J = v(G.concurrency));
|
|
3908
3908
|
let ge = J - 1;
|
|
3909
3909
|
return G?.highWaterMark != null && (ge = v(G.highWaterMark)), c(J, "options.concurrency", 1), c(ge, "options.highWaterMark", 0), ge += J, (async function* () {
|
|
3910
|
-
let oe =
|
|
3910
|
+
let oe = Ge().AbortSignalAny([G?.signal].filter(x)), R = this, $ = [], ee = { signal: oe }, de, fe, ye = !1, H = 0;
|
|
3911
3911
|
function me() {
|
|
3912
3912
|
ye = !0, ve();
|
|
3913
3913
|
}
|
|
@@ -3917,7 +3917,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3917
3917
|
function se() {
|
|
3918
3918
|
fe && !ye && H < J && $.length < ge && (fe(), fe = null);
|
|
3919
3919
|
}
|
|
3920
|
-
async function
|
|
3920
|
+
async function Te() {
|
|
3921
3921
|
try {
|
|
3922
3922
|
for await (let d of R) {
|
|
3923
3923
|
if (ye) return;
|
|
@@ -3940,7 +3940,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
3940
3940
|
ye = !0, de && (de(), de = null);
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
|
-
|
|
3943
|
+
Te();
|
|
3944
3944
|
try {
|
|
3945
3945
|
for (; ; ) {
|
|
3946
3946
|
for (; $.length > 0; ) {
|
|
@@ -4089,7 +4089,7 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
4089
4089
|
e.exports = { finished: l, pipeline: c };
|
|
4090
4090
|
}), Sa = pe((s, e) => {
|
|
4091
4091
|
le(), ue(), ce();
|
|
4092
|
-
var { Buffer: t } = (Fe(), Me(De)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } =
|
|
4092
|
+
var { Buffer: t } = (Fe(), Me(De)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = Ge(), { streamReturningOperators: a, promiseReturningOperators: l } = bc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = ka(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Vr(), { pipeline: g } = bo(), { destroyer: f } = zt(), b = St(), y = xa(), w = mt(), m = e.exports = mo().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 = Kr();
|
|
4094
4094
|
for (let x of o(a)) {
|
|
4095
4095
|
let v = function(...S) {
|
|
@@ -5066,8 +5066,8 @@ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
|
|
|
5066
5066
|
l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), N.write(t.SUBSCRIBE_HEADER[1][J ? 1 : 0][0]), D(N, $), f(N, ge), ee !== null && ee.write();
|
|
5067
5067
|
let de = !0;
|
|
5068
5068
|
for (let fe of oe) {
|
|
5069
|
-
let ye = fe.topic, H = fe.qos, me = +fe.nl, ve = +fe.rap, se = fe.rh,
|
|
5070
|
-
U(N, ye),
|
|
5069
|
+
let ye = fe.topic, H = fe.qos, me = +fe.nl, ve = +fe.rap, se = fe.rh, Te;
|
|
5070
|
+
U(N, ye), Te = t.SUBSCRIBE_OPTIONS_QOS[H], W === 5 && (Te |= me ? t.SUBSCRIBE_OPTIONS_NL : 0, Te |= ve ? t.SUBSCRIBE_OPTIONS_RAP : 0, Te |= se ? t.SUBSCRIBE_OPTIONS_RH[se] : 0), de = N.write(r.from([Te]));
|
|
5071
5071
|
}
|
|
5072
5072
|
return de;
|
|
5073
5073
|
}
|
|
@@ -9138,7 +9138,7 @@ function wu() {
|
|
|
9138
9138
|
});
|
|
9139
9139
|
} }, yr;
|
|
9140
9140
|
}
|
|
9141
|
-
var yr, ki, _t, _u =
|
|
9141
|
+
var yr, ki, _t, _u = Ye(() => {
|
|
9142
9142
|
le(), ue(), ce(), yr = {}, ki = !1, _t = wu(), _t.decode, _t.encode, _t.toASCII, _t.toUnicode, _t.ucs2, _t.version;
|
|
9143
9143
|
});
|
|
9144
9144
|
function ku() {
|
|
@@ -9423,7 +9423,7 @@ function ju() {
|
|
|
9423
9423
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9424
9424
|
}, Or;
|
|
9425
9425
|
}
|
|
9426
|
-
var xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, Bi, vr, Di, wr, Fi, _r, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Ft, Ji, Or, Qi, Uu =
|
|
9426
|
+
var xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, Bi, vr, Di, wr, Fi, _r, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Ft, Ji, Or, Qi, Uu = Ye(() => {
|
|
9427
9427
|
le(), ue(), ce(), xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, Ci = {}, Oi = !1, Pi = {}, Mi = !1, Ri = {}, Li = !1, Ni = {}, ji = !1, Ui = {}, Bi = !1, vr = {}, Di = !1, wr = {}, Fi = !1, _r = {}, $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, Ft = {}, Ji = !1, Or = {}, Qi = !1;
|
|
9428
9428
|
});
|
|
9429
9429
|
function _o(s) {
|
|
@@ -9484,7 +9484,7 @@ function vt() {
|
|
|
9484
9484
|
function Ku(s) {
|
|
9485
9485
|
return [];
|
|
9486
9486
|
}
|
|
9487
|
-
var at, Mt, Ot, ir, Lo, No, jo, Uo, Bo, Do, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, hr, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, dt, tn, Pr, As, Is, Ts, Cs, Os, Ps, Ms, Rs, Ls, Ns, js, ko, nl =
|
|
9487
|
+
var at, Mt, Ot, ir, Lo, No, jo, Uo, Bo, Do, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, hr, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, dt, tn, Pr, As, Is, Ts, Cs, Os, Ps, Ms, Rs, Ls, Ns, js, ko, nl = Ye(() => {
|
|
9488
9488
|
le(), ue(), ce(), at = [], Mt = !1, ir = -1, rl.prototype.run = function() {
|
|
9489
9489
|
this.fun.apply(null, this.array);
|
|
9490
9490
|
}, Lo = "browser", No = "x64", jo = "browser", Uo = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Bo = ["/usr/bin/node"], Do = [], Fo = "v16.8.0", $o = {}, qo = function(s, e) {
|
|
@@ -9654,7 +9654,7 @@ function Gu() {
|
|
|
9654
9654
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9655
9655
|
return o.posix = o, Mr = o, Mr;
|
|
9656
9656
|
}
|
|
9657
|
-
var Mr, Xi, Zi, Yu =
|
|
9657
|
+
var Mr, Xi, Zi, Yu = Ye(() => {
|
|
9658
9658
|
le(), ue(), ce(), nl(), Mr = {}, Xi = !1, Zi = Gu();
|
|
9659
9659
|
}), il = {};
|
|
9660
9660
|
Wt(il, { URL: () => pl, Url: () => cl, default: () => We, fileURLToPath: () => sl, format: () => ul, parse: () => fl, pathToFileURL: () => al, resolve: () => hl, resolveObject: () => dl });
|
|
@@ -9670,14 +9670,14 @@ function Ju() {
|
|
|
9670
9670
|
if (typeof z == "number") {
|
|
9671
9671
|
var Ae = z < 0 ? -P(-z) : P(z);
|
|
9672
9672
|
if (Ae !== z) {
|
|
9673
|
-
var
|
|
9674
|
-
return _.call(
|
|
9673
|
+
var Ie = String(Ae), Oe = m.call(ie, Ie.length + 1);
|
|
9674
|
+
return _.call(Ie, Ee, "$&_") + "." + _.call(_.call(Oe, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
9675
9675
|
}
|
|
9676
9676
|
}
|
|
9677
9677
|
return _.call(ie, Ee, "$&_");
|
|
9678
9678
|
}
|
|
9679
9679
|
var re = ll, F = re.custom, Z = G(F) ? F : null;
|
|
9680
|
-
Rr = function z(ie, Ee, Ae,
|
|
9680
|
+
Rr = function z(ie, Ee, Ae, Ie) {
|
|
9681
9681
|
var Oe = Ee || {};
|
|
9682
9682
|
if (oe(Oe, "quoteStyle") && Oe.quoteStyle !== "single" && Oe.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
9683
9683
|
if (oe(Oe, "maxStringLength") && (typeof Oe.maxStringLength == "number" ? Oe.maxStringLength < 0 && Oe.maxStringLength !== 1 / 0 : Oe.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -9702,17 +9702,17 @@ function Ju() {
|
|
|
9702
9702
|
var jt = typeof Oe.depth > "u" ? 5 : Oe.depth;
|
|
9703
9703
|
if (typeof Ae > "u" && (Ae = 0), Ae >= jt && jt > 0 && typeof ie == "object") return be(ie) ? "[Array]" : "[Object]";
|
|
9704
9704
|
var nt = X(Oe, Ae);
|
|
9705
|
-
if (typeof
|
|
9706
|
-
else if (ee(
|
|
9707
|
-
function
|
|
9708
|
-
if (yt && (
|
|
9705
|
+
if (typeof Ie > "u") Ie = [];
|
|
9706
|
+
else if (ee(Ie, ie) >= 0) return "[Circular]";
|
|
9707
|
+
function Je(it, yt, At) {
|
|
9708
|
+
if (yt && (Ie = O.call(Ie), Ie.push(yt)), At) {
|
|
9709
9709
|
var ot = { depth: Oe.depth };
|
|
9710
|
-
return oe(Oe, "quoteStyle") && (ot.quoteStyle = Oe.quoteStyle), z(it, ot, Ae + 1,
|
|
9710
|
+
return oe(Oe, "quoteStyle") && (ot.quoteStyle = Oe.quoteStyle), z(it, ot, Ae + 1, Ie);
|
|
9711
9711
|
}
|
|
9712
|
-
return z(it, Oe, Ae + 1,
|
|
9712
|
+
return z(it, Oe, Ae + 1, Ie);
|
|
9713
9713
|
}
|
|
9714
9714
|
if (typeof ie == "function" && !we(ie)) {
|
|
9715
|
-
var cr = $(ie), Ut = ke(ie,
|
|
9715
|
+
var cr = $(ie), Ut = ke(ie, Je);
|
|
9716
9716
|
return "[Function" + (cr ? ": " + cr : " (anonymous)") + "]" + (Ut.length > 0 ? " { " + I.call(Ut, ", ") + " }" : "");
|
|
9717
9717
|
}
|
|
9718
9718
|
if (G(ie)) {
|
|
@@ -9725,12 +9725,12 @@ function Ju() {
|
|
|
9725
9725
|
}
|
|
9726
9726
|
if (be(ie)) {
|
|
9727
9727
|
if (ie.length === 0) return "[]";
|
|
9728
|
-
var xe = ke(ie,
|
|
9728
|
+
var xe = ke(ie, Je);
|
|
9729
9729
|
return nt && !B(xe) ? "[" + he(xe, nt) + "]" : "[ " + I.call(xe, ", ") + " ]";
|
|
9730
9730
|
}
|
|
9731
9731
|
if (K(ie)) {
|
|
9732
|
-
var Se = ke(ie,
|
|
9733
|
-
return !("cause" in Error.prototype) && "cause" in ie && !ae.call(ie, "cause") ? "{ [" + String(ie) + "] " + I.call(S.call("[cause]: " +
|
|
9732
|
+
var Se = ke(ie, Je);
|
|
9733
|
+
return !("cause" in Error.prototype) && "cause" in ie && !ae.call(ie, "cause") ? "{ [" + String(ie) + "] " + I.call(S.call("[cause]: " + Je(ie.cause), Se), ", ") + " }" : Se.length === 0 ? "[" + String(ie) + "]" : "{ [" + String(ie) + "] " + I.call(Se, ", ") + " }";
|
|
9734
9734
|
}
|
|
9735
9735
|
if (typeof ie == "object" && et) {
|
|
9736
9736
|
if (Z && typeof ie[Z] == "function" && re) return re(ie, { depth: jt - Ae });
|
|
@@ -9739,26 +9739,26 @@ function Ju() {
|
|
|
9739
9739
|
if (de(ie)) {
|
|
9740
9740
|
var Be = [];
|
|
9741
9741
|
return r && r.call(ie, function(it, yt) {
|
|
9742
|
-
Be.push(
|
|
9742
|
+
Be.push(Je(yt, ie, !0) + " => " + Je(it, ie));
|
|
9743
9743
|
}), A("Map", t.call(ie), Be, nt);
|
|
9744
9744
|
}
|
|
9745
9745
|
if (H(ie)) {
|
|
9746
9746
|
var ze = [];
|
|
9747
9747
|
return a && a.call(ie, function(it) {
|
|
9748
|
-
ze.push(
|
|
9748
|
+
ze.push(Je(it, ie));
|
|
9749
9749
|
}), A("Set", i.call(ie), ze, nt);
|
|
9750
9750
|
}
|
|
9751
9751
|
if (fe(ie)) return k("WeakMap");
|
|
9752
9752
|
if (me(ie)) return k("WeakSet");
|
|
9753
9753
|
if (ye(ie)) return k("WeakRef");
|
|
9754
|
-
if (ne(ie)) return d(
|
|
9755
|
-
if (J(ie)) return d(
|
|
9754
|
+
if (ne(ie)) return d(Je(Number(ie)));
|
|
9755
|
+
if (J(ie)) return d(Je(j.call(ie)));
|
|
9756
9756
|
if (W(ie)) return d(f.call(ie));
|
|
9757
|
-
if (N(ie)) return d(
|
|
9757
|
+
if (N(ie)) return d(Je(String(ie)));
|
|
9758
9758
|
if (typeof window < "u" && ie === window) return "{ [object Window] }";
|
|
9759
9759
|
if (typeof globalThis < "u" && ie === globalThis || typeof Lr < "u" && ie === Lr) return "{ [object globalThis] }";
|
|
9760
9760
|
if (!te(ie) && !we(ie)) {
|
|
9761
|
-
var Ze = ke(ie,
|
|
9761
|
+
var Ze = ke(ie, Je), Yt = Y ? Y(ie) === Object.prototype : ie instanceof Object || ie.constructor === Object, Jt = ie instanceof Object ? "" : "null prototype", Qt = !Yt && U && Object(ie) === ie && U in ie ? m.call(R(ie), 8, -1) : Jt ? "Object" : "", ur = Yt || typeof ie.constructor != "function" ? "" : ie.constructor.name ? ie.constructor.name + " " : "", Et = ur + (Qt || Jt ? "[" + I.call(S.call([], Qt || [], Jt || []), ": ") + "] " : "");
|
|
9762
9762
|
return Ze.length === 0 ? Et + "{}" : nt ? Et + "{" + he(Ze, nt) + "}" : Et + "{ " + I.call(Ze, ", ") + " }";
|
|
9763
9763
|
}
|
|
9764
9764
|
return String(ie);
|
|
@@ -9900,10 +9900,10 @@ function Ju() {
|
|
|
9900
9900
|
var Ee = z.length - ie.maxStringLength, Ae = "... " + Ee + " more character" + (Ee > 1 ? "s" : "");
|
|
9901
9901
|
return se(m.call(z, 0, ie.maxStringLength), ie) + Ae;
|
|
9902
9902
|
}
|
|
9903
|
-
var
|
|
9904
|
-
return M(
|
|
9903
|
+
var Ie = _.call(_.call(z, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Te);
|
|
9904
|
+
return M(Ie, "single", ie);
|
|
9905
9905
|
}
|
|
9906
|
-
function
|
|
9906
|
+
function Te(z) {
|
|
9907
9907
|
var ie = z.charCodeAt(0), Ee = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[ie];
|
|
9908
9908
|
return Ee ? "\\" + Ee : "\\x" + (ie < 16 ? "0" : "") + x.call(ie.toString(16));
|
|
9909
9909
|
}
|
|
@@ -9914,8 +9914,8 @@ function Ju() {
|
|
|
9914
9914
|
return z + " { ? }";
|
|
9915
9915
|
}
|
|
9916
9916
|
function A(z, ie, Ee, Ae) {
|
|
9917
|
-
var
|
|
9918
|
-
return z + " (" + ie + ") {" +
|
|
9917
|
+
var Ie = Ae ? he(Ee, Ae) : I.call(Ee, ", ");
|
|
9918
|
+
return z + " (" + ie + ") {" + Ie + "}";
|
|
9919
9919
|
}
|
|
9920
9920
|
function B(z) {
|
|
9921
9921
|
for (var ie = 0; ie < z.length; ie++) if (ee(z[ie], `
|
|
@@ -9940,7 +9940,7 @@ function Ju() {
|
|
|
9940
9940
|
var Ee = be(z), Ae = [];
|
|
9941
9941
|
if (Ee) {
|
|
9942
9942
|
Ae.length = z.length;
|
|
9943
|
-
for (var
|
|
9943
|
+
for (var Ie = 0; Ie < z.length; Ie++) Ae[Ie] = oe(z, Ie) ? ie(z[Ie], z) : "";
|
|
9944
9944
|
}
|
|
9945
9945
|
var Oe = typeof T == "function" ? T(z) : [], et;
|
|
9946
9946
|
if (D) {
|
|
@@ -10465,7 +10465,7 @@ function al(s) {
|
|
|
10465
10465
|
return e.includes("%") && (e = e.replace(wl, "%25")), !Hr && e.includes("\\") && (e = e.replace(_l, "%5C")), e.includes(`
|
|
10466
10466
|
`) && (e = e.replace(kl, "%0A")), e.includes("\r") && (e = e.replace(xl, "%0D")), e.includes(" ") && (e = e.replace(Sl, "%09")), r.pathname = e, r;
|
|
10467
10467
|
}
|
|
10468
|
-
var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, Fr, so, kt, ao, We, Us, cl, ul, hl, dl, fl, pl, ml, gl, bl, yl, Hr, vl, wl, _l, kl, xl, Sl, ih =
|
|
10468
|
+
var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, Fr, so, kt, ao, We, Us, cl, ul, hl, dl, fl, pl, ml, gl, bl, yl, Hr, vl, wl, _l, kl, xl, Sl, ih = Ye(() => {
|
|
10469
10469
|
le(), ue(), ce(), _u(), Uu(), Yu(), nl(), ll = Object.freeze(/* @__PURE__ */ Object.create(null)), Rr = {}, eo = !1, Lr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Nr = {}, to = !1, jr = {}, ro = !1, Ur = {}, no = !1, Br = {}, io = !1, Dr = {}, oo = !1, Fr = {}, so = !1, kt = {}, ao = !1, We = th(), We.parse, We.resolve, We.resolveObject, We.format, We.Url, Us = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, We.URL = typeof URL < "u" ? URL : null, We.pathToFileURL = al, We.fileURLToPath = sl, cl = We.Url, ul = We.format, hl = We.resolve, dl = We.resolveObject, fl = We.parse, pl = We.URL, ml = 92, gl = 47, bl = 97, yl = 122, Hr = Us === "win32", vl = /\//g, wl = /%/g, _l = /\\/g, kl = /\n/g, xl = /\r/g, Sl = /\t/g;
|
|
10470
10470
|
}), oh = pe((s, e) => {
|
|
10471
10471
|
le(), ue(), ce(), e.exports = function() {
|
|
@@ -10610,12 +10610,12 @@ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, Fr, so, kt, ao, We,
|
|
|
10610
10610
|
};
|
|
10611
10611
|
s.browserStreamBuilder = y;
|
|
10612
10612
|
}), Eo = {};
|
|
10613
|
-
Wt(Eo, { Server: () =>
|
|
10614
|
-
function
|
|
10613
|
+
Wt(Eo, { Server: () => Ne, Socket: () => Ne, Stream: () => Ne, _createServerHandle: () => Ne, _normalizeArgs: () => Ne, _setSimultaneousAccepts: () => Ne, connect: () => Ne, createConnection: () => Ne, createServer: () => Ne, default: () => El, isIP: () => Ne, isIPv4: () => Ne, isIPv6: () => Ne });
|
|
10614
|
+
function Ne() {
|
|
10615
10615
|
throw new Error("Node.js net module is not supported by JSPM core outside of Node.js");
|
|
10616
10616
|
}
|
|
10617
|
-
var El, Al =
|
|
10618
|
-
le(), ue(), ce(), El = { _createServerHandle:
|
|
10617
|
+
var El, Al = Ye(() => {
|
|
10618
|
+
le(), ue(), ce(), El = { _createServerHandle: Ne, _normalizeArgs: Ne, _setSimultaneousAccepts: Ne, connect: Ne, createConnection: Ne, createServer: Ne, isIP: Ne, isIPv4: Ne, isIPv6: Ne, Server: Ne, Socket: Ne, Stream: Ne };
|
|
10619
10619
|
}), Il = pe((s, e) => {
|
|
10620
10620
|
le(), ue(), ce(), e.exports = {};
|
|
10621
10621
|
}), Bs = pe((s) => {
|
|
@@ -10632,7 +10632,7 @@ var El, Al = Ge(() => {
|
|
|
10632
10632
|
s.default = i;
|
|
10633
10633
|
}), Tl = {};
|
|
10634
10634
|
Wt(Tl, { default: () => Cl });
|
|
10635
|
-
var Cl, sh =
|
|
10635
|
+
var Cl, sh = Ye(() => {
|
|
10636
10636
|
le(), ue(), ce(), Cl = {};
|
|
10637
10637
|
}), Ds = pe((s) => {
|
|
10638
10638
|
le(), ue(), ce();
|
|
@@ -11965,7 +11965,7 @@ function Ah(s) {
|
|
|
11965
11965
|
}
|
|
11966
11966
|
};
|
|
11967
11967
|
}
|
|
11968
|
-
const Ih = "^[A-Z]{4}
|
|
11968
|
+
const Ih = "^[A-Z]{4}0[A-Z0-9]{6}$", Th = "^[0-9]{6}$", Ch = {
|
|
11969
11969
|
id: "salary-hra",
|
|
11970
11970
|
title: "Salary / HRA / Allowances",
|
|
11971
11971
|
icon: "💰",
|
|
@@ -11973,39 +11973,18 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = "^[0-9
|
|
|
11973
11973
|
repeatable: { maxCount: 4, labelTemplate: "Employer {index}" },
|
|
11974
11974
|
entryIcon: "🏢",
|
|
11975
11975
|
fields: [
|
|
11976
|
-
{
|
|
11977
|
-
id: "employerDetails",
|
|
11978
|
-
type: "group",
|
|
11979
|
-
title: "Employer Details",
|
|
11980
|
-
fields: [
|
|
11981
|
-
{ id: "employerName", type: "text", label: "Employer Name", required: !0 },
|
|
11982
|
-
{
|
|
11983
|
-
id: "employerTan",
|
|
11984
|
-
type: "text",
|
|
11985
|
-
label: "TAN (Tax Deduction Account Number)",
|
|
11986
|
-
required: !0,
|
|
11987
|
-
pattern: Ih,
|
|
11988
|
-
maxLength: 10
|
|
11989
|
-
}
|
|
11990
|
-
]
|
|
11991
|
-
},
|
|
11992
11976
|
{
|
|
11993
11977
|
id: "salaryComponents",
|
|
11994
11978
|
type: "group",
|
|
11995
11979
|
title: "Salary Components",
|
|
11996
11980
|
fields: [
|
|
11997
|
-
{ id: "basicSalary", type: "number", label: "Basic Salary", currency: "₹", required: !0, min: 0 },
|
|
11998
|
-
{ id: "hraReceived", type: "number", label: "HRA Received", currency: "₹", min: 0 },
|
|
11999
|
-
{ id: "leaveTravelAllowance", type: "number", label: "Leave Travel Allowance", currency: "₹", min: 0 },
|
|
12000
|
-
{ id: "anyOtherAllowance", type: "number", label: "Other Allowances", currency: "₹", min: 0 },
|
|
12001
|
-
{ id: "leaveEncashment", type: "number", label: "Leave Encashment", currency: "₹", min: 0 },
|
|
12002
11981
|
{ id: "grossSalary", type: "number", label: "Gross Salary (Total)", currency: "₹", min: 0 },
|
|
12003
11982
|
{ id: "totalTdsDeposited", type: "number", label: "TDS Deducted by Employer", currency: "₹", min: 0 }
|
|
12004
11983
|
]
|
|
12005
11984
|
}
|
|
12006
11985
|
],
|
|
12007
11986
|
submitLabel: "Save"
|
|
12008
|
-
},
|
|
11987
|
+
}, Oh = {
|
|
12009
11988
|
id: "other-sources",
|
|
12010
11989
|
title: "Income from Other Sources",
|
|
12011
11990
|
icon: "💵",
|
|
@@ -12030,7 +12009,7 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = "^[0-9
|
|
|
12030
12009
|
}
|
|
12031
12010
|
],
|
|
12032
12011
|
submitLabel: "Save"
|
|
12033
|
-
},
|
|
12012
|
+
}, Ph = {
|
|
12034
12013
|
id: "business-profession",
|
|
12035
12014
|
title: "Business / Profession",
|
|
12036
12015
|
icon: "💼",
|
|
@@ -12040,15 +12019,15 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = "^[0-9
|
|
|
12040
12019
|
type: "group",
|
|
12041
12020
|
title: "Business Details",
|
|
12042
12021
|
fields: [
|
|
12043
|
-
{ id: "
|
|
12044
|
-
{ id: "
|
|
12022
|
+
{ id: "businessType", type: "text", label: "Business / Profession Name" },
|
|
12023
|
+
{ id: "natureOfBusiness", type: "text", label: "Nature of Work" },
|
|
12045
12024
|
{ id: "grossReceipts", type: "number", label: "Gross Receipts / Turnover", currency: "₹", min: 0 },
|
|
12046
|
-
{ id: "netProfit", type: "number", label: "Net Profit", currency: "₹" }
|
|
12025
|
+
{ id: "netProfit", type: "number", label: "Net Profit", currency: "₹", readOnly: !0 }
|
|
12047
12026
|
]
|
|
12048
12027
|
}
|
|
12049
12028
|
],
|
|
12050
12029
|
submitLabel: "Save"
|
|
12051
|
-
},
|
|
12030
|
+
}, Mh = {
|
|
12052
12031
|
id: "bank-details",
|
|
12053
12032
|
title: "Personal / Bank Details",
|
|
12054
12033
|
icon: "🏦",
|
|
@@ -12060,7 +12039,7 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = "^[0-9
|
|
|
12060
12039
|
fields: [
|
|
12061
12040
|
{ id: "aadhaarNumber", type: "text", label: "Aadhaar Number", maxLength: 12 },
|
|
12062
12041
|
{ id: "bankAccountNumber", type: "text", label: "Bank Account Number", required: !0 },
|
|
12063
|
-
{ id: "bankIfscCode", type: "text", label: "IFSC Code", required: !0, pattern:
|
|
12042
|
+
{ id: "bankIfscCode", type: "text", label: "IFSC Code", required: !0, pattern: Ih, maxLength: 11 }
|
|
12064
12043
|
]
|
|
12065
12044
|
},
|
|
12066
12045
|
{
|
|
@@ -12072,17 +12051,17 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = "^[0-9
|
|
|
12072
12051
|
{ id: "immovableAssetDescription", type: "text", label: "Description" },
|
|
12073
12052
|
{ id: "immovableAssetFlatNo", type: "text", label: "Flat / House No." },
|
|
12074
12053
|
{ id: "immovableAssetArea", type: "text", label: "Area / Locality" },
|
|
12075
|
-
{ id: "immovableAssetPincode", type: "text", label: "Pincode", maxLength: 6, pattern:
|
|
12054
|
+
{ id: "immovableAssetPincode", type: "text", label: "Pincode", maxLength: 6, pattern: Th },
|
|
12076
12055
|
{ id: "immovableAssetCost", type: "number", label: "Cost of Asset", currency: "₹", min: 0 }
|
|
12077
12056
|
]
|
|
12078
12057
|
}
|
|
12079
12058
|
],
|
|
12080
12059
|
submitLabel: "Save"
|
|
12081
|
-
},
|
|
12082
|
-
|
|
12083
|
-
Mh,
|
|
12060
|
+
}, Rh = [
|
|
12061
|
+
Ch,
|
|
12084
12062
|
Ph,
|
|
12085
|
-
|
|
12063
|
+
Oh,
|
|
12064
|
+
Mh
|
|
12086
12065
|
// Hidden for now — re-enable to restore the full set:
|
|
12087
12066
|
// capitalGains,
|
|
12088
12067
|
// cryptoIncome,
|
|
@@ -12093,16 +12072,16 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = "^[0-9
|
|
|
12093
12072
|
// taxPaidTds,
|
|
12094
12073
|
// haveAQuestion,
|
|
12095
12074
|
];
|
|
12096
|
-
function
|
|
12075
|
+
function Lh(s, e) {
|
|
12097
12076
|
const t = s || {}, r = {
|
|
12098
12077
|
userId: lr(e.userId),
|
|
12099
12078
|
assessmentYear: e.assessmentYear,
|
|
12100
12079
|
isRevised: e.isRevised || "N"
|
|
12101
12080
|
};
|
|
12102
|
-
r.us80cAmount =
|
|
12103
|
-
income:
|
|
12104
|
-
}, r.exemptIncomeAmount =
|
|
12105
|
-
{ name: Pe(t.exemptIncomeNature) ?? "Exempt income", value: String(
|
|
12081
|
+
r.us80cAmount = Ce(t.us80cAmount), r.us80dForSelfAndFamilyAmount = Ce(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = Ce(t.us80dForParentsAmount), r.hasParentOverSixty = lo(t.hasParentOverSixty), r.preventiveHealthCheckUp = Ce(t.preventiveHealthCheckUp), r.medicalExpenditure = Ce(t.medicalExpenditure), r.savingBankInterest = Ce(t.savingBankInterest), r.fdInterest = Ce(t.fdInterest), r.dividend = Ce(t.dividend), r.anyOtherIncome = Ce(t.anyOtherIncome), r.cryptoSellValue = Ce(t.cryptoSellPrice), r.cryptoPurchaseAmount = Ce(t.cryptoPurchasePrice), r.vdaPurchaseCost = Ce(t.cryptoPurchasePrice), r.businessName = Pe(t.businessType), r.businessAnnualTurnOver = Ce(t.grossReceipts), r.agricultureDetails = {
|
|
12082
|
+
income: Ce(t.agricultureIncome)
|
|
12083
|
+
}, r.exemptIncomeAmount = Ce(t.exemptIncome), r.exemptIncomeNature = Pe(t.exemptIncomeNature), Ce(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
|
|
12084
|
+
{ name: Pe(t.exemptIncomeNature) ?? "Exempt income", value: String(Ce(t.exemptIncome)) }
|
|
12106
12085
|
]), r.bankAccountNumber = Pe(t.bankAccountNumber), r.bankIfscCode = Pe(t.bankIfscCode), (Pe(t.bankAccountNumber) || Pe(t.bankIfscCode)) && (r.bankDetails = [
|
|
12107
12086
|
{ bankAccountNumber: Pe(t.bankAccountNumber), bankIfscCode: Pe(t.bankIfscCode) }
|
|
12108
12087
|
]);
|
|
@@ -12111,44 +12090,44 @@ function Nh(s, e) {
|
|
|
12111
12090
|
flatNo: Pe(t.immovableAssetFlatNo),
|
|
12112
12091
|
area: Pe(t.immovableAssetArea),
|
|
12113
12092
|
pinCode: Pe(t.immovableAssetPincode),
|
|
12114
|
-
amount:
|
|
12093
|
+
amount: Ce(t.immovableAssetCost)
|
|
12115
12094
|
};
|
|
12116
12095
|
Object.values(o).some((a) => a !== void 0) && (r.immovableAsset = [o]);
|
|
12117
|
-
const n = nn(t.hpDetails,
|
|
12096
|
+
const n = nn(t.hpDetails, Nh);
|
|
12118
12097
|
n.length && (r.hpDetails = n);
|
|
12119
|
-
const i = nn(t.salaryDetails,
|
|
12098
|
+
const i = nn(t.salaryDetails, jh);
|
|
12120
12099
|
if (i.length) {
|
|
12121
12100
|
r.salaryIncome = i;
|
|
12122
12101
|
const a = nn(t.salaryDetails, (c) => ({
|
|
12123
|
-
grossSalary:
|
|
12102
|
+
grossSalary: Ce(c.grossSalary),
|
|
12124
12103
|
employerName: Pe(c.employerName)
|
|
12125
12104
|
}));
|
|
12126
12105
|
a.length && (r.salary = a);
|
|
12127
12106
|
const l = Ml(t.salaryDetails)[0] ?? {};
|
|
12128
|
-
r.hraAmount =
|
|
12107
|
+
r.hraAmount = Ce(l.hraReceived), r.leaveTravelAllowanceAmount = Ce(l.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = Ce(l.leaveEncashment), r.anyOtherAllowanceAmount = Ce(l.anyOtherAllowance), r.salaryIncomeFlag = !0;
|
|
12129
12108
|
}
|
|
12130
12109
|
return Wr(r);
|
|
12131
12110
|
}
|
|
12132
|
-
function
|
|
12111
|
+
function Nh(s) {
|
|
12133
12112
|
const e = {
|
|
12134
12113
|
loanType: "HOME_LOAN",
|
|
12135
12114
|
loanTakenFrom: Pe(s.loanTakenFrom),
|
|
12136
12115
|
bankOrInstituteName: Pe(s.lenderName),
|
|
12137
12116
|
loanAccountNo: Pe(s.loanAccountNumber),
|
|
12138
|
-
loanSanctionDate:
|
|
12139
|
-
totalLoanAmount:
|
|
12140
|
-
interest:
|
|
12117
|
+
loanSanctionDate: $h(s.sanctionDate),
|
|
12118
|
+
totalLoanAmount: Ce(s.totalLoanAmount),
|
|
12119
|
+
interest: Ce(s.homeLoanInterest)
|
|
12141
12120
|
}, t = Object.entries(e).some(([r, o]) => r !== "loanType" && o !== void 0);
|
|
12142
12121
|
return {
|
|
12143
12122
|
typeOfHouseProperty: Pe(s.typeOfHouseProperty),
|
|
12144
12123
|
hasRentalIncome: s.typeOfHouseProperty === "LOP" ? !0 : lo(s.hasRentalIncome),
|
|
12145
|
-
homeLoanInterest:
|
|
12146
|
-
homeLoanPrinciple:
|
|
12124
|
+
homeLoanInterest: Ce(s.homeLoanInterest),
|
|
12125
|
+
homeLoanPrinciple: Ce(s.homeLoanPrinciple),
|
|
12147
12126
|
housePropertyAddress: Pe(s.housePropertyAddress),
|
|
12148
12127
|
housePropertyPincode: Pe(s.housePropertyPincode),
|
|
12149
|
-
rentalIncome:
|
|
12128
|
+
rentalIncome: Ce(s.rentalIncome),
|
|
12150
12129
|
nameOfTenant: Pe(s.nameOfTenant),
|
|
12151
|
-
propertyTax:
|
|
12130
|
+
propertyTax: Ce(s.propertyTax),
|
|
12152
12131
|
hasCoOwnedProperty: lo(s.hasCoOwnedProperty),
|
|
12153
12132
|
coOwnerName: Pe(s.coOwnerName),
|
|
12154
12133
|
coOwnerPan: Pe(s.coOwnerPan),
|
|
@@ -12156,26 +12135,26 @@ function jh(s) {
|
|
|
12156
12135
|
loanDetails: t ? [e] : void 0
|
|
12157
12136
|
};
|
|
12158
12137
|
}
|
|
12159
|
-
function
|
|
12138
|
+
function jh(s) {
|
|
12160
12139
|
return {
|
|
12161
|
-
grossSalaryIncome:
|
|
12162
|
-
salary:
|
|
12140
|
+
grossSalaryIncome: Ce(s.grossSalary),
|
|
12141
|
+
salary: Ce(s.basicSalary),
|
|
12163
12142
|
employer: {
|
|
12164
12143
|
employerName: Pe(s.employerName),
|
|
12165
12144
|
employerTan: Pe(s.employerTan)
|
|
12166
12145
|
},
|
|
12167
12146
|
allowance: {
|
|
12168
|
-
hraAmount:
|
|
12169
|
-
leaveTravelAllowanceAmount:
|
|
12170
|
-
leaveEncashmentAllowanceAmount:
|
|
12171
|
-
anyOtherAllowanceAmount:
|
|
12147
|
+
hraAmount: Ce(s.hraReceived),
|
|
12148
|
+
leaveTravelAllowanceAmount: Ce(s.leaveTravelAllowance),
|
|
12149
|
+
leaveEncashmentAllowanceAmount: Ce(s.leaveEncashment),
|
|
12150
|
+
anyOtherAllowanceAmount: Ce(s.anyOtherAllowance)
|
|
12172
12151
|
}
|
|
12173
12152
|
};
|
|
12174
12153
|
}
|
|
12175
|
-
function
|
|
12154
|
+
function Uh(s, e) {
|
|
12176
12155
|
const t = [];
|
|
12177
12156
|
for (const r of s) {
|
|
12178
|
-
const o = Pe(r.employerName), n = Pe(r.employerTan), i =
|
|
12157
|
+
const o = Pe(r.employerName), n = Pe(r.employerTan), i = Ce(r.grossSalary), a = Ce(r.basicSalary), l = Ce(r.totalTdsDeposited);
|
|
12179
12158
|
o === void 0 && n === void 0 && i === void 0 && a === void 0 && l === void 0 || t.push({
|
|
12180
12159
|
grossSalary: i ?? 0,
|
|
12181
12160
|
basicSalary: a ?? 0,
|
|
@@ -12191,7 +12170,7 @@ function Bh(s, e) {
|
|
|
12191
12170
|
salary: t
|
|
12192
12171
|
} : null;
|
|
12193
12172
|
}
|
|
12194
|
-
function
|
|
12173
|
+
function Bh(s, e) {
|
|
12195
12174
|
const t = Pe(s.aadhaarNumber), r = Pe(s.bankAccountNumber), o = Pe(s.bankIfscCode);
|
|
12196
12175
|
return t === void 0 && r === void 0 && o === void 0 ? null : {
|
|
12197
12176
|
userId: lr(e.userId),
|
|
@@ -12200,19 +12179,19 @@ function Dh(s, e) {
|
|
|
12200
12179
|
bankDetails: [{ bankAccountNumber: r, bankIfscCode: o }]
|
|
12201
12180
|
};
|
|
12202
12181
|
}
|
|
12203
|
-
function
|
|
12182
|
+
function Dh(s, e) {
|
|
12204
12183
|
return {
|
|
12205
12184
|
userId: lr(e.userId),
|
|
12206
12185
|
assessmentYear: e.assessmentYear,
|
|
12207
|
-
savingBankInterest:
|
|
12208
|
-
fdInterest:
|
|
12209
|
-
dividend:
|
|
12210
|
-
anyOtherIncome:
|
|
12186
|
+
savingBankInterest: Ce(s.savingBankInterest) ?? 0,
|
|
12187
|
+
fdInterest: Ce(s.fdInterest) ?? 0,
|
|
12188
|
+
dividend: Ce(s.dividend) ?? 0,
|
|
12189
|
+
anyOtherIncome: Ce(s.anyOtherIncome) ?? 0
|
|
12211
12190
|
};
|
|
12212
12191
|
}
|
|
12213
|
-
function
|
|
12214
|
-
const t = Pe(s.
|
|
12215
|
-
return t === void 0 && r === void 0 && o === void 0
|
|
12192
|
+
function Fh(s, e) {
|
|
12193
|
+
const t = Pe(s.businessType), r = Pe(s.natureOfBusiness), o = Ce(s.grossReceipts);
|
|
12194
|
+
return t === void 0 && r === void 0 && o === void 0 ? null : {
|
|
12216
12195
|
userId: lr(e.userId),
|
|
12217
12196
|
assessmentYear: e.assessmentYear,
|
|
12218
12197
|
presumptiveIncome: [
|
|
@@ -12220,8 +12199,7 @@ function $h(s, e) {
|
|
|
12220
12199
|
businessType: t ?? "",
|
|
12221
12200
|
businessCode: r ?? "",
|
|
12222
12201
|
cashAmount: 0,
|
|
12223
|
-
bankAmount: o ?? 0
|
|
12224
|
-
netProfit: n ?? 0
|
|
12202
|
+
bankAmount: o ?? 0
|
|
12225
12203
|
}
|
|
12226
12204
|
]
|
|
12227
12205
|
};
|
|
@@ -12231,7 +12209,7 @@ function lr(s) {
|
|
|
12231
12209
|
const e = Number(s);
|
|
12232
12210
|
return Number.isFinite(e) && String(e) === String(s) ? e : s;
|
|
12233
12211
|
}
|
|
12234
|
-
function
|
|
12212
|
+
function Ce(s) {
|
|
12235
12213
|
if (s == null || s === "") return;
|
|
12236
12214
|
const e = typeof s == "number" ? s : Number(s);
|
|
12237
12215
|
return Number.isFinite(e) ? e : void 0;
|
|
@@ -12244,7 +12222,7 @@ function Pe(s) {
|
|
|
12244
12222
|
function lo(s) {
|
|
12245
12223
|
return s === !0 || s === !1 ? s : void 0;
|
|
12246
12224
|
}
|
|
12247
|
-
function
|
|
12225
|
+
function $h(s) {
|
|
12248
12226
|
const e = Pe(s);
|
|
12249
12227
|
if (e)
|
|
12250
12228
|
return e.includes("T") ? e : /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00Z` : e;
|
|
@@ -12270,13 +12248,13 @@ function Wr(s) {
|
|
|
12270
12248
|
}
|
|
12271
12249
|
return s;
|
|
12272
12250
|
}
|
|
12273
|
-
function
|
|
12274
|
-
const e = s && typeof s == "object" ? s : {}, t = {}, r =
|
|
12251
|
+
function qh(s) {
|
|
12252
|
+
const e = s && typeof s == "object" ? s : {}, t = {}, r = Ve(e.employers), o = Ve(e.taxPaid?.onSalary);
|
|
12275
12253
|
r.length && (t.salaryDetails = r.map((l) => {
|
|
12276
|
-
const c = on(l.salary), u = on(l.perquisites), h = on(l.profitsInLieuOfSalaryType), p = c + u + h, g =
|
|
12254
|
+
const c = on(l.salary), u = on(l.perquisites), h = on(l.profitsInLieuOfSalaryType), p = c + u + h, g = Wh(l.allowance);
|
|
12277
12255
|
return {
|
|
12278
|
-
employerName:
|
|
12279
|
-
employerTan:
|
|
12256
|
+
employerName: Le(l.employerName),
|
|
12257
|
+
employerTan: Le(l.employerTAN),
|
|
12280
12258
|
basicSalary: c || void 0,
|
|
12281
12259
|
// salaryBreakup.salary
|
|
12282
12260
|
grossSalary: p || void 0,
|
|
@@ -12284,67 +12262,75 @@ function Hh(s) {
|
|
|
12284
12262
|
leaveTravelAllowance: g.lta,
|
|
12285
12263
|
leaveEncashment: g.leaveEncashment,
|
|
12286
12264
|
anyOtherAllowance: g.other,
|
|
12287
|
-
totalTdsDeposited:
|
|
12265
|
+
totalTdsDeposited: Hh(l, o, r) ?? Ue(l.totalTdsDeposited)
|
|
12288
12266
|
};
|
|
12289
12267
|
}));
|
|
12290
|
-
const n =
|
|
12268
|
+
const n = Ve(e.houseProperties);
|
|
12291
12269
|
n.length && (t.hpDetails = n.map((l) => {
|
|
12292
|
-
const c =
|
|
12270
|
+
const c = Ve(l.loanDetails), u = c.length ? c[0] : void 0, h = Ue(l.grossAnnualRentReceived), p = c.length ? c.reduce((w, m) => w + (Ue(m.interest) ?? 0), 0) : void 0, g = Ve(l.tenant), f = Ve(l.coOwners), b = g[0], y = f[0];
|
|
12293
12271
|
return {
|
|
12294
|
-
typeOfHouseProperty:
|
|
12295
|
-
loanTakenFrom:
|
|
12296
|
-
lenderName:
|
|
12297
|
-
loanAccountNumber:
|
|
12298
|
-
sanctionDate:
|
|
12272
|
+
typeOfHouseProperty: Le(l.propertyType),
|
|
12273
|
+
loanTakenFrom: Le(u?.loanTakenFrom),
|
|
12274
|
+
lenderName: Le(u?.bankOrInstituteName),
|
|
12275
|
+
loanAccountNumber: Le(u?.loanAccountNo),
|
|
12276
|
+
sanctionDate: Le(u?.loanSanctionDate),
|
|
12299
12277
|
totalLoanAmount: Ue(u?.totalLoanAmount),
|
|
12300
12278
|
outstandingAmount: Ue(u?.loanOutstandingAmount),
|
|
12301
12279
|
homeLoanInterest: p,
|
|
12302
12280
|
homeLoanPrinciple: void 0,
|
|
12303
|
-
housePropertyAddress:
|
|
12304
|
-
housePropertyPincode:
|
|
12281
|
+
housePropertyAddress: Le(l.address),
|
|
12282
|
+
housePropertyPincode: Le(l.pinCode),
|
|
12305
12283
|
rentalIncome: h,
|
|
12306
|
-
nameOfTenant:
|
|
12284
|
+
nameOfTenant: Le(b?.name),
|
|
12307
12285
|
propertyTax: Ue(l.propertyTax),
|
|
12308
12286
|
hasCoOwnedProperty: f.length > 0,
|
|
12309
|
-
coOwnerName:
|
|
12310
|
-
coOwnerPan:
|
|
12287
|
+
coOwnerName: Le(y?.name),
|
|
12288
|
+
coOwnerPan: Le(y?.panNumber),
|
|
12311
12289
|
coOwnerShare: Ue(y?.share)?.toString()
|
|
12312
12290
|
};
|
|
12313
|
-
})), t.us80cAmount = fr(
|
|
12314
|
-
|
|
12291
|
+
})), t.us80cAmount = fr(Ve(e.deductionUS80CDetails).map((l) => Ue(l.amount))), t.us80dForSelfAndFamilyAmount = fr(
|
|
12292
|
+
Ve(e.deductionUS80DDetails).map((l) => Ue(l.healthInsuranceAmount))
|
|
12315
12293
|
), t.anyOtherIncome = fr(
|
|
12316
|
-
|
|
12317
|
-
), t.dividend = fr(
|
|
12294
|
+
Ve(e.incomes).filter((l) => Le(l.incomeType) !== "SALARY" && Le(l.incomeType) !== "BUSINESS").map((l) => Ue(l.amount))
|
|
12295
|
+
), t.dividend = fr(Ve(e.dividendIncomes).map((l) => Ue(l.income)));
|
|
12318
12296
|
const i = e.business;
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12297
|
+
if (i) {
|
|
12298
|
+
const c = Ve(i.presumptiveIncomes)[0];
|
|
12299
|
+
if (c) {
|
|
12300
|
+
t.businessType = Le(c.businessType), t.natureOfBusiness = Le(c.natureOfBusiness);
|
|
12301
|
+
const h = Ve(c.incomes).filter((p) => Le(p.incomeType) === "BANK");
|
|
12302
|
+
t.grossReceipts = h.reduce((p, g) => p + (Ue(g.receipts) ?? 0), 0) || void 0, t.netProfit = h.reduce((p, g) => p + (Ue(g.presumptiveIncome) ?? 0), 0) || void 0;
|
|
12303
|
+
}
|
|
12304
|
+
}
|
|
12305
|
+
t.agricultureIncome = Ue(e.agriculturalDetails?.income), t.aadhaarNumber = Le(e.aadharNumber);
|
|
12306
|
+
const a = Ve(e.bankDetails)[0];
|
|
12307
|
+
return a && (t.bankAccountNumber = Le(a.accountNumber), t.bankIfscCode = Le(a.ifsCode)), Rl(t);
|
|
12322
12308
|
}
|
|
12323
12309
|
function on(s) {
|
|
12324
|
-
return
|
|
12310
|
+
return Ve(s).reduce((e, t) => e + (Ue(t.taxableAmount) ?? 0), 0);
|
|
12325
12311
|
}
|
|
12326
|
-
function
|
|
12312
|
+
function Hh(s, e, t) {
|
|
12327
12313
|
if (!e.length) return;
|
|
12328
|
-
const r =
|
|
12314
|
+
const r = Le(s.employerTAN)?.trim().toUpperCase();
|
|
12329
12315
|
if (r) {
|
|
12330
12316
|
for (const n of e)
|
|
12331
|
-
if (
|
|
12317
|
+
if (Le(n.deductorTAN)?.trim().toUpperCase() === r) return Ue(n.totalTdsDeposited);
|
|
12332
12318
|
}
|
|
12333
|
-
const o =
|
|
12319
|
+
const o = Le(s.employerName)?.trim().toLowerCase();
|
|
12334
12320
|
if (o) {
|
|
12335
12321
|
for (const n of e)
|
|
12336
|
-
if (
|
|
12322
|
+
if (Le(n.deductorName)?.trim().toLowerCase() === o) return Ue(n.totalTdsDeposited);
|
|
12337
12323
|
}
|
|
12338
12324
|
if (t.length === 1 && e.length === 1)
|
|
12339
12325
|
return Ue(e[0].totalTdsDeposited);
|
|
12340
12326
|
}
|
|
12341
|
-
function
|
|
12342
|
-
const e =
|
|
12327
|
+
function Wh(s) {
|
|
12328
|
+
const e = Ve(s);
|
|
12343
12329
|
if (!e.length) return {};
|
|
12344
12330
|
let t, r, o, n;
|
|
12345
12331
|
for (const i of e) {
|
|
12346
12332
|
const a = Ue(i.exemptAmount) ?? Ue(i.allowanceAmount);
|
|
12347
|
-
switch (
|
|
12333
|
+
switch (Le(i.allowanceType)?.toUpperCase()) {
|
|
12348
12334
|
case "HRA":
|
|
12349
12335
|
case "HOUSE_RENT_ALLOWANCE":
|
|
12350
12336
|
t = a;
|
|
@@ -12368,14 +12354,14 @@ function fr(s) {
|
|
|
12368
12354
|
r != null && (e += r, t = !0);
|
|
12369
12355
|
return t ? e : void 0;
|
|
12370
12356
|
}
|
|
12371
|
-
function
|
|
12357
|
+
function Ve(s) {
|
|
12372
12358
|
return Array.isArray(s) ? s.filter((e) => e && typeof e == "object") : [];
|
|
12373
12359
|
}
|
|
12374
12360
|
function Ue(s) {
|
|
12375
12361
|
if (typeof s == "number" && Number.isFinite(s)) return s;
|
|
12376
12362
|
if (typeof s == "string" && s.trim() !== "" && Number.isFinite(Number(s))) return Number(s);
|
|
12377
12363
|
}
|
|
12378
|
-
function
|
|
12364
|
+
function Le(s) {
|
|
12379
12365
|
if (s == null) return;
|
|
12380
12366
|
const e = String(s).trim();
|
|
12381
12367
|
return e === "" ? void 0 : e;
|
|
@@ -12393,23 +12379,23 @@ function sn() {
|
|
|
12393
12379
|
return console.warn(
|
|
12394
12380
|
"[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
|
|
12395
12381
|
), null;
|
|
12396
|
-
const t = s.__aikaara_descriptor__ ?? {}, r =
|
|
12382
|
+
const t = s.__aikaara_descriptor__ ?? {}, r = Qh(t);
|
|
12397
12383
|
if (!r)
|
|
12398
12384
|
return console.warn(
|
|
12399
12385
|
"[smart-edit] API disabled: could not resolve a TaxBuddy API host from the descriptor (cloud / upload / pan / leader endpoints)."
|
|
12400
12386
|
), null;
|
|
12401
|
-
const o =
|
|
12387
|
+
const o = Xh(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", i = e.getChatJwt, a = async () => n || await i(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : ed(e.identity)) || void 0;
|
|
12402
12388
|
return console.info("[smart-edit] API config — base:", r, "· userId:", l ?? "(none)"), {
|
|
12403
12389
|
baseUrl: r,
|
|
12404
12390
|
getToken: a,
|
|
12405
|
-
headers:
|
|
12406
|
-
assessmentYear: t.itr?.assessmentYear ||
|
|
12391
|
+
headers: Zh(t.auth?.headers),
|
|
12392
|
+
assessmentYear: t.itr?.assessmentYear || td(),
|
|
12407
12393
|
isRevised: "N",
|
|
12408
12394
|
userId: l,
|
|
12409
12395
|
submitUrl: t.itr?.automationSubmitUrl || void 0
|
|
12410
12396
|
};
|
|
12411
12397
|
}
|
|
12412
|
-
async function
|
|
12398
|
+
async function zh(s) {
|
|
12413
12399
|
const e = await s.getToken(), t = s.userId;
|
|
12414
12400
|
if (!t)
|
|
12415
12401
|
throw new Error(
|
|
@@ -12427,10 +12413,10 @@ async function Vh(s) {
|
|
|
12427
12413
|
const o = await r.text().catch(() => "");
|
|
12428
12414
|
throw new Error(`[smart-edit] GET /itr/latest-itr → ${r.status} ${o.slice(0, 200)}`);
|
|
12429
12415
|
}
|
|
12430
|
-
return
|
|
12416
|
+
return qh(Ao(await r.json().catch(() => ({}))));
|
|
12431
12417
|
}
|
|
12432
|
-
async function
|
|
12433
|
-
const t = await s.getToken(), r = s.userId, o =
|
|
12418
|
+
async function Vh(s, e) {
|
|
12419
|
+
const t = await s.getToken(), r = s.userId, o = Lh(e, {
|
|
12434
12420
|
userId: r,
|
|
12435
12421
|
assessmentYear: s.assessmentYear,
|
|
12436
12422
|
isRevised: s.isRevised
|
|
@@ -12452,16 +12438,16 @@ async function Kh(s, e) {
|
|
|
12452
12438
|
}
|
|
12453
12439
|
return Ao(await a.json().catch(() => ({})));
|
|
12454
12440
|
}
|
|
12455
|
-
async function
|
|
12441
|
+
async function Kh(s, e) {
|
|
12456
12442
|
return Qr(s, `${s.baseUrl}/itr/v1/automation/salary`, e);
|
|
12457
12443
|
}
|
|
12458
|
-
async function
|
|
12444
|
+
async function Gh(s, e) {
|
|
12459
12445
|
return Qr(s, `${s.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
|
|
12460
12446
|
}
|
|
12461
|
-
async function
|
|
12447
|
+
async function Yh(s, e) {
|
|
12462
12448
|
return Qr(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
|
|
12463
12449
|
}
|
|
12464
|
-
async function
|
|
12450
|
+
async function Jh(s, e) {
|
|
12465
12451
|
return Qr(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
|
|
12466
12452
|
}
|
|
12467
12453
|
async function Qr(s, e, t) {
|
|
@@ -12479,7 +12465,7 @@ async function Qr(s, e, t) {
|
|
|
12479
12465
|
}
|
|
12480
12466
|
return Ao(await n.json().catch(() => ({})));
|
|
12481
12467
|
}
|
|
12482
|
-
function
|
|
12468
|
+
function Qh(s) {
|
|
12483
12469
|
const e = [
|
|
12484
12470
|
s.cloud?.listEndpoint,
|
|
12485
12471
|
s.cloud?.downloadEndpoint,
|
|
@@ -12497,7 +12483,7 @@ function Xh(s) {
|
|
|
12497
12483
|
}
|
|
12498
12484
|
return null;
|
|
12499
12485
|
}
|
|
12500
|
-
function
|
|
12486
|
+
function Xh(s) {
|
|
12501
12487
|
if (!s || typeof localStorage > "u") return null;
|
|
12502
12488
|
try {
|
|
12503
12489
|
const e = localStorage.getItem(`aikaara_sso:${s}`);
|
|
@@ -12508,7 +12494,7 @@ function Zh(s) {
|
|
|
12508
12494
|
return null;
|
|
12509
12495
|
}
|
|
12510
12496
|
}
|
|
12511
|
-
function
|
|
12497
|
+
function Zh(s) {
|
|
12512
12498
|
const e = {};
|
|
12513
12499
|
if (!s) return e;
|
|
12514
12500
|
const t = /^(authorization|content-type|accept)$/i;
|
|
@@ -12516,7 +12502,7 @@ function ed(s) {
|
|
|
12516
12502
|
!t.test(r) && typeof o == "string" && (e[r] = o);
|
|
12517
12503
|
return e;
|
|
12518
12504
|
}
|
|
12519
|
-
function
|
|
12505
|
+
function ed(s) {
|
|
12520
12506
|
if (!s) return;
|
|
12521
12507
|
const e = s.userId ?? s.id ?? s.ext_uid ?? s.extUid;
|
|
12522
12508
|
return e == null || e === "" ? void 0 : String(e);
|
|
@@ -12528,11 +12514,11 @@ function Ao(s) {
|
|
|
12528
12514
|
}
|
|
12529
12515
|
return {};
|
|
12530
12516
|
}
|
|
12531
|
-
function
|
|
12517
|
+
function td() {
|
|
12532
12518
|
const s = /* @__PURE__ */ new Date(), e = s.getMonth() >= 3 ? s.getFullYear() : s.getFullYear() - 1;
|
|
12533
12519
|
return `${e}-${e + 1}`;
|
|
12534
12520
|
}
|
|
12535
|
-
class
|
|
12521
|
+
class rd {
|
|
12536
12522
|
client;
|
|
12537
12523
|
panel;
|
|
12538
12524
|
bubble;
|
|
@@ -12671,11 +12657,11 @@ class nd {
|
|
|
12671
12657
|
*/
|
|
12672
12658
|
async openSmartEdit() {
|
|
12673
12659
|
const e = this.ensureSmartEditModal();
|
|
12674
|
-
e.open({ schemas:
|
|
12660
|
+
e.open({ schemas: Rh, data: {} });
|
|
12675
12661
|
const t = sn();
|
|
12676
12662
|
if (!(!t || !t.baseUrl))
|
|
12677
12663
|
try {
|
|
12678
|
-
const r = await
|
|
12664
|
+
const r = await zh(t);
|
|
12679
12665
|
e.setData(r);
|
|
12680
12666
|
} catch (r) {
|
|
12681
12667
|
console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
|
|
@@ -12708,16 +12694,16 @@ class nd {
|
|
|
12708
12694
|
const o = { userId: r.userId, assessmentYear: r.assessmentYear };
|
|
12709
12695
|
try {
|
|
12710
12696
|
if (e === "salary-hra") {
|
|
12711
|
-
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], i =
|
|
12712
|
-
i && await
|
|
12697
|
+
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], i = Uh(n, o);
|
|
12698
|
+
i && await Kh(r, i);
|
|
12713
12699
|
} else if (e === "bank-details") {
|
|
12714
|
-
const n =
|
|
12715
|
-
n && await
|
|
12700
|
+
const n = Bh(t, o);
|
|
12701
|
+
n && await Gh(r, n);
|
|
12716
12702
|
} else if (e === "other-sources")
|
|
12717
|
-
await
|
|
12703
|
+
await Yh(r, Dh(t, o));
|
|
12718
12704
|
else if (e === "business-profession") {
|
|
12719
|
-
const n =
|
|
12720
|
-
n && await
|
|
12705
|
+
const n = Fh(t, o);
|
|
12706
|
+
n && await Jh(r, n);
|
|
12721
12707
|
}
|
|
12722
12708
|
} catch (n) {
|
|
12723
12709
|
console.warn("[smart-edit] section save failed", e, n), this.errorBanner.show("Failed to save. Please try again.", 4e3);
|
|
@@ -12737,7 +12723,7 @@ class nd {
|
|
|
12737
12723
|
return;
|
|
12738
12724
|
}
|
|
12739
12725
|
try {
|
|
12740
|
-
await
|
|
12726
|
+
await Vh(t, e);
|
|
12741
12727
|
} catch (r) {
|
|
12742
12728
|
console.warn("[smart-edit] save failed", r), this.errorBanner.show(
|
|
12743
12729
|
"Failed to save your ITR details. Please try again.",
|
|
@@ -12753,7 +12739,7 @@ class nd {
|
|
|
12753
12739
|
}, 200)));
|
|
12754
12740
|
}
|
|
12755
12741
|
}
|
|
12756
|
-
class
|
|
12742
|
+
class nd extends HTMLElement {
|
|
12757
12743
|
shadow;
|
|
12758
12744
|
controller = null;
|
|
12759
12745
|
_config = {};
|
|
@@ -13022,7 +13008,7 @@ class id extends HTMLElement {
|
|
|
13022
13008
|
}
|
|
13023
13009
|
async initController() {
|
|
13024
13010
|
const e = this.getConfig(), t = e.transport ?? "aikaara";
|
|
13025
|
-
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new
|
|
13011
|
+
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new rd(e, this.shadow, {
|
|
13026
13012
|
uploadAdapter: this._config.uploadAdapter,
|
|
13027
13013
|
historyAdapter: this._config.historyAdapter
|
|
13028
13014
|
}), await this.controller.connect());
|
|
@@ -13042,7 +13028,7 @@ class id extends HTMLElement {
|
|
|
13042
13028
|
}
|
|
13043
13029
|
}
|
|
13044
13030
|
}
|
|
13045
|
-
class
|
|
13031
|
+
class id extends HTMLElement {
|
|
13046
13032
|
shadow;
|
|
13047
13033
|
constructor() {
|
|
13048
13034
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -13095,12 +13081,12 @@ class od extends HTMLElement {
|
|
|
13095
13081
|
t && (t.innerHTML = e);
|
|
13096
13082
|
}
|
|
13097
13083
|
}
|
|
13098
|
-
const
|
|
13084
|
+
const od = [
|
|
13099
13085
|
{ id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
|
|
13100
13086
|
];
|
|
13101
|
-
class
|
|
13087
|
+
class sd extends HTMLElement {
|
|
13102
13088
|
shadow;
|
|
13103
|
-
actions =
|
|
13089
|
+
actions = od;
|
|
13104
13090
|
menuOpen = !1;
|
|
13105
13091
|
outsideClickHandler = null;
|
|
13106
13092
|
static get observedAttributes() {
|
|
@@ -13326,7 +13312,7 @@ class ad extends HTMLElement {
|
|
|
13326
13312
|
this.setAttribute("status", e);
|
|
13327
13313
|
}
|
|
13328
13314
|
}
|
|
13329
|
-
const
|
|
13315
|
+
const ad = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, ld = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, cd = {
|
|
13330
13316
|
""": '"',
|
|
13331
13317
|
"'": "'",
|
|
13332
13318
|
"<": "<",
|
|
@@ -13334,14 +13320,14 @@ const ld = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
|
|
|
13334
13320
|
"&": "&",
|
|
13335
13321
|
" ": " "
|
|
13336
13322
|
};
|
|
13337
|
-
function
|
|
13338
|
-
return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) =>
|
|
13323
|
+
function ud(s) {
|
|
13324
|
+
return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => cd[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, "&");
|
|
13339
13325
|
}
|
|
13340
13326
|
function $t(s) {
|
|
13341
|
-
if (
|
|
13327
|
+
if (ad.test(s))
|
|
13342
13328
|
return s;
|
|
13343
|
-
const e =
|
|
13344
|
-
let t =
|
|
13329
|
+
const e = ld.test(s) ? ud(s) : s;
|
|
13330
|
+
let t = hd(e);
|
|
13345
13331
|
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(
|
|
13346
13332
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
13347
13333
|
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
@@ -13353,7 +13339,7 @@ function $t(s) {
|
|
|
13353
13339
|
}
|
|
13354
13340
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
13355
13341
|
}
|
|
13356
|
-
function
|
|
13342
|
+
function hd(s) {
|
|
13357
13343
|
const e = {
|
|
13358
13344
|
"&": "&",
|
|
13359
13345
|
"<": "<",
|
|
@@ -13363,7 +13349,7 @@ function dd(s) {
|
|
|
13363
13349
|
};
|
|
13364
13350
|
return s.replace(/[&<>"']/g, (t) => e[t]);
|
|
13365
13351
|
}
|
|
13366
|
-
const
|
|
13352
|
+
const dd = /* @__PURE__ */ new Set([
|
|
13367
13353
|
"p",
|
|
13368
13354
|
"br",
|
|
13369
13355
|
"hr",
|
|
@@ -13398,7 +13384,7 @@ const fd = /* @__PURE__ */ new Set([
|
|
|
13398
13384
|
"tr",
|
|
13399
13385
|
"th",
|
|
13400
13386
|
"td"
|
|
13401
|
-
]),
|
|
13387
|
+
]), fd = {
|
|
13402
13388
|
a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
|
|
13403
13389
|
img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
|
|
13404
13390
|
code: /* @__PURE__ */ new Set(["class"]),
|
|
@@ -13415,12 +13401,12 @@ function Ll(s) {
|
|
|
13415
13401
|
for (const t of e)
|
|
13416
13402
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
13417
13403
|
const r = t, o = r.tagName.toLowerCase();
|
|
13418
|
-
if (!
|
|
13404
|
+
if (!dd.has(o)) {
|
|
13419
13405
|
const a = document.createTextNode(r.textContent || "");
|
|
13420
13406
|
s.replaceChild(a, t);
|
|
13421
13407
|
continue;
|
|
13422
13408
|
}
|
|
13423
|
-
const n =
|
|
13409
|
+
const n = fd[o] || /* @__PURE__ */ new Set(), i = Array.from(r.attributes);
|
|
13424
13410
|
for (const a of i)
|
|
13425
13411
|
n.has(a.name) || r.removeAttribute(a.name);
|
|
13426
13412
|
if (r.hasAttribute("href")) {
|
|
@@ -13430,7 +13416,7 @@ function Ll(s) {
|
|
|
13430
13416
|
Ll(t);
|
|
13431
13417
|
}
|
|
13432
13418
|
}
|
|
13433
|
-
function
|
|
13419
|
+
function pd(s, e = {}) {
|
|
13434
13420
|
const { width: t = 600, height: r = 700, closeOnTypes: o } = e, n = Math.round(window.screenX + (window.outerWidth - t) / 2), i = Math.round(window.screenY + (window.outerHeight - r) / 2), a = window.open(
|
|
13435
13421
|
s,
|
|
13436
13422
|
"aikaara_popup",
|
|
@@ -13448,7 +13434,7 @@ function md(s, e = {}) {
|
|
|
13448
13434
|
}, 500);
|
|
13449
13435
|
return a;
|
|
13450
13436
|
}
|
|
13451
|
-
function
|
|
13437
|
+
function md(s) {
|
|
13452
13438
|
const e = Date.now() - s.getTime(), t = Math.round(e / 1e3);
|
|
13453
13439
|
if (t < 5) return "just now";
|
|
13454
13440
|
if (t < 60) return `${t}s ago`;
|
|
@@ -13459,7 +13445,7 @@ function gd(s) {
|
|
|
13459
13445
|
const n = Math.round(o / 24);
|
|
13460
13446
|
return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : s.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
|
|
13461
13447
|
}
|
|
13462
|
-
class
|
|
13448
|
+
class gd extends HTMLElement {
|
|
13463
13449
|
shadow;
|
|
13464
13450
|
container;
|
|
13465
13451
|
welcomeMessage = "";
|
|
@@ -13712,7 +13698,7 @@ class bd extends HTMLElement {
|
|
|
13712
13698
|
if (n.role === "user") {
|
|
13713
13699
|
const i = n.metadata?.attributes?.action;
|
|
13714
13700
|
if (i) {
|
|
13715
|
-
const a =
|
|
13701
|
+
const a = bd(i);
|
|
13716
13702
|
if (i.message_id && t.set(i.message_id, a), Object.keys(a).length > 0)
|
|
13717
13703
|
for (let l = o - 1; l >= 0; l--) {
|
|
13718
13704
|
const c = e[l];
|
|
@@ -13850,7 +13836,7 @@ class bd extends HTMLElement {
|
|
|
13850
13836
|
case "date":
|
|
13851
13837
|
return r;
|
|
13852
13838
|
case "relative":
|
|
13853
|
-
return
|
|
13839
|
+
return md(t);
|
|
13854
13840
|
case "time-24":
|
|
13855
13841
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
13856
13842
|
case "time-seconds":
|
|
@@ -13876,7 +13862,7 @@ class bd extends HTMLElement {
|
|
|
13876
13862
|
return;
|
|
13877
13863
|
}
|
|
13878
13864
|
if (o === "popup") {
|
|
13879
|
-
|
|
13865
|
+
pd(e);
|
|
13880
13866
|
return;
|
|
13881
13867
|
}
|
|
13882
13868
|
const n = this.getOrCreateModal(), i = r?.title ?? t ?? "Link";
|
|
@@ -13884,7 +13870,7 @@ class bd extends HTMLElement {
|
|
|
13884
13870
|
requestAnimationFrame(() => n.show?.(e, i));
|
|
13885
13871
|
return;
|
|
13886
13872
|
}
|
|
13887
|
-
const a =
|
|
13873
|
+
const a = yd(e), l = Nl(r.fetch.url, a), c = {
|
|
13888
13874
|
accept: "application/json",
|
|
13889
13875
|
...r.fetch.headers ?? {}
|
|
13890
13876
|
}, u = r.fetch.authHeader ?? "session";
|
|
@@ -13930,7 +13916,7 @@ class bd extends HTMLElement {
|
|
|
13930
13916
|
return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
|
|
13931
13917
|
}
|
|
13932
13918
|
}
|
|
13933
|
-
function
|
|
13919
|
+
function bd(s) {
|
|
13934
13920
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
|
|
13935
13921
|
for (const [r, o] of Object.entries(s))
|
|
13936
13922
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
@@ -13940,7 +13926,7 @@ function zs(s, e) {
|
|
|
13940
13926
|
const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
13941
13927
|
return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(s);
|
|
13942
13928
|
}
|
|
13943
|
-
function
|
|
13929
|
+
function yd(s) {
|
|
13944
13930
|
try {
|
|
13945
13931
|
const e = new URL(s), t = {};
|
|
13946
13932
|
return e.searchParams.forEach((r, o) => {
|
|
@@ -13963,7 +13949,7 @@ function co(s, e) {
|
|
|
13963
13949
|
}
|
|
13964
13950
|
return s;
|
|
13965
13951
|
}
|
|
13966
|
-
class
|
|
13952
|
+
class vd extends HTMLElement {
|
|
13967
13953
|
shadow;
|
|
13968
13954
|
templatePayload = null;
|
|
13969
13955
|
attachments = [];
|
|
@@ -14079,7 +14065,7 @@ class wd extends HTMLElement {
|
|
|
14079
14065
|
renderAttachments() {
|
|
14080
14066
|
return this.attachments.length ? `<div class="attachments">${this.attachments.map(
|
|
14081
14067
|
(t) => `<a class="attachment" href="${Vs(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
|
|
14082
|
-
📎 ${
|
|
14068
|
+
📎 ${wd(t.fileName)}
|
|
14083
14069
|
</a>`
|
|
14084
14070
|
).join("")}</div>` : "";
|
|
14085
14071
|
}
|
|
@@ -14087,10 +14073,10 @@ class wd extends HTMLElement {
|
|
|
14087
14073
|
function Vs(s) {
|
|
14088
14074
|
return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14089
14075
|
}
|
|
14090
|
-
function
|
|
14076
|
+
function wd(s) {
|
|
14091
14077
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14092
14078
|
}
|
|
14093
|
-
class
|
|
14079
|
+
class _d extends HTMLElement {
|
|
14094
14080
|
shadow;
|
|
14095
14081
|
textarea;
|
|
14096
14082
|
sendBtn;
|
|
@@ -14241,7 +14227,7 @@ class kd extends HTMLElement {
|
|
|
14241
14227
|
this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, 120) + "px";
|
|
14242
14228
|
}
|
|
14243
14229
|
}
|
|
14244
|
-
class
|
|
14230
|
+
class kd extends HTMLElement {
|
|
14245
14231
|
shadow;
|
|
14246
14232
|
constructor() {
|
|
14247
14233
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -14290,7 +14276,7 @@ class xd extends HTMLElement {
|
|
|
14290
14276
|
this.removeAttribute("visible");
|
|
14291
14277
|
}
|
|
14292
14278
|
}
|
|
14293
|
-
class
|
|
14279
|
+
class xd extends HTMLElement {
|
|
14294
14280
|
shadow;
|
|
14295
14281
|
bubble;
|
|
14296
14282
|
constructor() {
|
|
@@ -14355,7 +14341,7 @@ class Sd extends HTMLElement {
|
|
|
14355
14341
|
this.bubble?.classList.remove("cursor");
|
|
14356
14342
|
}
|
|
14357
14343
|
}
|
|
14358
|
-
class
|
|
14344
|
+
class Sd extends HTMLElement {
|
|
14359
14345
|
shadow;
|
|
14360
14346
|
container;
|
|
14361
14347
|
dismissTimer = null;
|
|
@@ -14428,7 +14414,7 @@ function jl(s) {
|
|
|
14428
14414
|
});
|
|
14429
14415
|
return an.set(s, t), t;
|
|
14430
14416
|
}
|
|
14431
|
-
function
|
|
14417
|
+
function Ed(s, e = 5e3) {
|
|
14432
14418
|
return new Promise((t, r) => {
|
|
14433
14419
|
const o = setTimeout(() => r(new Error(`Custom element <${s}> not registered within ${e}ms`)), e);
|
|
14434
14420
|
customElements.whenDefined(s).then(() => {
|
|
@@ -14436,14 +14422,14 @@ function Ad(s, e = 5e3) {
|
|
|
14436
14422
|
});
|
|
14437
14423
|
});
|
|
14438
14424
|
}
|
|
14439
|
-
const
|
|
14425
|
+
const Ad = {
|
|
14440
14426
|
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-C82ApGKH.mjs").then(({ registerAikaaraPaymentLink: s }) => s())
|
|
14441
14427
|
};
|
|
14442
|
-
function
|
|
14428
|
+
function Id(s) {
|
|
14443
14429
|
const e = `template:${s}`, t = window.__aikaara_descriptor__?.components?.[e];
|
|
14444
14430
|
return t && t.kind === "iife-element" ? { render: t.tag, scriptUrl: t.scriptUrl, props: t.props } : window.__aikaara_descriptor__?.templates?.[s];
|
|
14445
14431
|
}
|
|
14446
|
-
class
|
|
14432
|
+
class Td extends HTMLElement {
|
|
14447
14433
|
shadow;
|
|
14448
14434
|
payloadData = null;
|
|
14449
14435
|
innerMessage = "";
|
|
@@ -14467,7 +14453,7 @@ class Cd extends HTMLElement {
|
|
|
14467
14453
|
this.render(), this.addEventListener("template-action", (e) => {
|
|
14468
14454
|
const t = e.detail, r = this.getAttribute("message-id");
|
|
14469
14455
|
if (r && t?.attributes?.action) {
|
|
14470
|
-
const o =
|
|
14456
|
+
const o = Pd(t.attributes.action);
|
|
14471
14457
|
if (Object.keys(o).length > 0)
|
|
14472
14458
|
try {
|
|
14473
14459
|
localStorage.setItem(`aikaara_form:${r}`, JSON.stringify(o));
|
|
@@ -14543,8 +14529,8 @@ class Cd extends HTMLElement {
|
|
|
14543
14529
|
<slot></slot>
|
|
14544
14530
|
`; this.firstChild; ) this.removeChild(this.firstChild);
|
|
14545
14531
|
if (!e) return;
|
|
14546
|
-
const r = t ?
|
|
14547
|
-
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) && jl(r.scriptUrl).then(() =>
|
|
14532
|
+
const r = t ? Id(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Ad[o];
|
|
14533
|
+
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) && jl(r.scriptUrl).then(() => Ed(o)).then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, i)), customElements.get(o)) {
|
|
14548
14534
|
const i = document.createElement(o);
|
|
14549
14535
|
if (r?.props) {
|
|
14550
14536
|
for (const [a, l] of Object.entries(r.props))
|
|
@@ -14631,7 +14617,7 @@ class Cd extends HTMLElement {
|
|
|
14631
14617
|
*/
|
|
14632
14618
|
mountLinkButton(e) {
|
|
14633
14619
|
const t = this.renderGen;
|
|
14634
|
-
import("./AikaaraLinkButton-
|
|
14620
|
+
import("./AikaaraLinkButton-CovBKqQb.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
14635
14621
|
if (t !== this.renderGen) return;
|
|
14636
14622
|
r();
|
|
14637
14623
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -14640,7 +14626,7 @@ class Cd extends HTMLElement {
|
|
|
14640
14626
|
url: e.url ?? "",
|
|
14641
14627
|
openLinkInNewTab: e.openLinkInNewTab,
|
|
14642
14628
|
orderId: e.orderId,
|
|
14643
|
-
extra:
|
|
14629
|
+
extra: Od(e),
|
|
14644
14630
|
messageId: this.getAttribute("message-id") ?? void 0
|
|
14645
14631
|
}), this.appendChild(n);
|
|
14646
14632
|
});
|
|
@@ -14650,26 +14636,26 @@ class Cd extends HTMLElement {
|
|
|
14650
14636
|
t.setPayload(e), this.appendChild(t);
|
|
14651
14637
|
}
|
|
14652
14638
|
}
|
|
14653
|
-
const
|
|
14639
|
+
const Cd = /* @__PURE__ */ new Set([
|
|
14654
14640
|
"type",
|
|
14655
14641
|
"url",
|
|
14656
14642
|
"name",
|
|
14657
14643
|
"openLinkInNewTab",
|
|
14658
14644
|
"orderId"
|
|
14659
14645
|
]);
|
|
14660
|
-
function
|
|
14646
|
+
function Od(s) {
|
|
14661
14647
|
const e = {};
|
|
14662
14648
|
for (const [t, r] of Object.entries(s))
|
|
14663
|
-
|
|
14649
|
+
Cd.has(t) || (e[t] = r);
|
|
14664
14650
|
return e;
|
|
14665
14651
|
}
|
|
14666
|
-
function
|
|
14652
|
+
function Pd(s) {
|
|
14667
14653
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType", "serviceType"]), t = {};
|
|
14668
14654
|
for (const [r, o] of Object.entries(s))
|
|
14669
14655
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
14670
14656
|
return t;
|
|
14671
14657
|
}
|
|
14672
|
-
class
|
|
14658
|
+
class Md extends HTMLElement {
|
|
14673
14659
|
shadow;
|
|
14674
14660
|
static get observedAttributes() {
|
|
14675
14661
|
return ["text", "subtext"];
|
|
@@ -14718,7 +14704,7 @@ class Rd extends HTMLElement {
|
|
|
14718
14704
|
function Ks(s) {
|
|
14719
14705
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14720
14706
|
}
|
|
14721
|
-
class
|
|
14707
|
+
class Rd extends HTMLElement {
|
|
14722
14708
|
shadow;
|
|
14723
14709
|
data = null;
|
|
14724
14710
|
selected = /* @__PURE__ */ new Set();
|
|
@@ -14943,7 +14929,7 @@ function It(s) {
|
|
|
14943
14929
|
function ln(s) {
|
|
14944
14930
|
return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14945
14931
|
}
|
|
14946
|
-
class
|
|
14932
|
+
class Ld extends HTMLElement {
|
|
14947
14933
|
shadow;
|
|
14948
14934
|
data = null;
|
|
14949
14935
|
constructor() {
|
|
@@ -15012,14 +14998,14 @@ class Nd extends HTMLElement {
|
|
|
15012
14998
|
button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
|
|
15013
14999
|
button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
|
|
15014
15000
|
</style>
|
|
15015
|
-
<button type="button">${
|
|
15001
|
+
<button type="button">${Nd(e)}</button>
|
|
15016
15002
|
`, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
|
|
15017
15003
|
}
|
|
15018
15004
|
}
|
|
15019
|
-
function
|
|
15005
|
+
function Nd(s) {
|
|
15020
15006
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15021
15007
|
}
|
|
15022
|
-
class
|
|
15008
|
+
class jd extends HTMLElement {
|
|
15023
15009
|
shadow;
|
|
15024
15010
|
data = null;
|
|
15025
15011
|
dismissed = !1;
|
|
@@ -15111,7 +15097,7 @@ class Ud extends HTMLElement {
|
|
|
15111
15097
|
function cn(s) {
|
|
15112
15098
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15113
15099
|
}
|
|
15114
|
-
class
|
|
15100
|
+
class Ud extends HTMLElement {
|
|
15115
15101
|
shadow;
|
|
15116
15102
|
data = null;
|
|
15117
15103
|
_value = "";
|
|
@@ -15218,7 +15204,7 @@ function Xt(s) {
|
|
|
15218
15204
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
15219
15205
|
);
|
|
15220
15206
|
}
|
|
15221
|
-
class
|
|
15207
|
+
class Bd extends HTMLElement {
|
|
15222
15208
|
static get observedAttributes() {
|
|
15223
15209
|
return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base", "api-key"];
|
|
15224
15210
|
}
|
|
@@ -15272,7 +15258,7 @@ class Dd extends HTMLElement {
|
|
|
15272
15258
|
const l = Object.keys(n).length > 0 ? n : void 0;
|
|
15273
15259
|
return this.mountInflight = (async () => {
|
|
15274
15260
|
try {
|
|
15275
|
-
this.mounted = await
|
|
15261
|
+
this.mounted = await wf({
|
|
15276
15262
|
container: this,
|
|
15277
15263
|
slug: e,
|
|
15278
15264
|
configBase: this.getAttribute("config-base") ?? void 0,
|
|
@@ -15301,7 +15287,7 @@ class Dd extends HTMLElement {
|
|
|
15301
15287
|
})(), this.mountInflight;
|
|
15302
15288
|
}
|
|
15303
15289
|
}
|
|
15304
|
-
class
|
|
15290
|
+
class Dd extends HTMLElement {
|
|
15305
15291
|
shadow;
|
|
15306
15292
|
root = null;
|
|
15307
15293
|
iframe = null;
|
|
@@ -15418,7 +15404,7 @@ class Fd extends HTMLElement {
|
|
|
15418
15404
|
});
|
|
15419
15405
|
}
|
|
15420
15406
|
}
|
|
15421
|
-
const
|
|
15407
|
+
const Fd = [
|
|
15422
15408
|
{ label: "Self-filing guidance" },
|
|
15423
15409
|
{ label: "Smart tax suggestions" },
|
|
15424
15410
|
{ label: "Auto-fetch 26AS / AIS" },
|
|
@@ -15426,7 +15412,7 @@ const $d = [
|
|
|
15426
15412
|
{ label: "Dedicated tax expert" },
|
|
15427
15413
|
{ label: "End-to-end filing" },
|
|
15428
15414
|
{ label: "Document handling" }
|
|
15429
|
-
],
|
|
15415
|
+
], $d = [
|
|
15430
15416
|
{
|
|
15431
15417
|
label: "DIY",
|
|
15432
15418
|
match: ["DIY", "DIY_SALARY"],
|
|
@@ -15449,11 +15435,11 @@ const $d = [
|
|
|
15449
15435
|
features: [!0, !0, !0, !0, !0, !0, !0]
|
|
15450
15436
|
}
|
|
15451
15437
|
];
|
|
15452
|
-
class
|
|
15438
|
+
class qd extends HTMLElement {
|
|
15453
15439
|
shadow;
|
|
15454
15440
|
data = null;
|
|
15455
|
-
columns =
|
|
15456
|
-
features =
|
|
15441
|
+
columns = $d;
|
|
15442
|
+
features = Fd;
|
|
15457
15443
|
constructor() {
|
|
15458
15444
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
15459
15445
|
}
|
|
@@ -15586,7 +15572,7 @@ function un(s) {
|
|
|
15586
15572
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
15587
15573
|
);
|
|
15588
15574
|
}
|
|
15589
|
-
class
|
|
15575
|
+
class Hd extends HTMLElement {
|
|
15590
15576
|
shadow;
|
|
15591
15577
|
root = null;
|
|
15592
15578
|
schemas = [];
|
|
@@ -15677,7 +15663,7 @@ class Wd extends HTMLElement {
|
|
|
15677
15663
|
`;
|
|
15678
15664
|
const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
|
|
15679
15665
|
(i) => `
|
|
15680
|
-
<button class="chip" type="button" data-section-id="${
|
|
15666
|
+
<button class="chip" type="button" data-section-id="${zd(i.id)}">
|
|
15681
15667
|
<span class="chip-icon">${i.icon ?? "📄"}</span>
|
|
15682
15668
|
<span class="chip-label">${Ys(i.title)}</span>
|
|
15683
15669
|
</button>`
|
|
@@ -15710,7 +15696,7 @@ class Wd extends HTMLElement {
|
|
|
15710
15696
|
e.classList.remove("view-picker"), e.classList.add("view-form");
|
|
15711
15697
|
const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
|
|
15712
15698
|
r.innerHTML = `
|
|
15713
|
-
<button class="icon-btn back-btn" type="button" aria-label="Back">${
|
|
15699
|
+
<button class="icon-btn back-btn" type="button" aria-label="Back">${Wd}</button>
|
|
15714
15700
|
<div class="modal-title">${Ys(t?.title ?? "Edit")}</div>
|
|
15715
15701
|
<button class="icon-btn close-btn" type="button" aria-label="Close">${Gs}</button>
|
|
15716
15702
|
`;
|
|
@@ -15886,14 +15872,14 @@ class Wd extends HTMLElement {
|
|
|
15886
15872
|
`;
|
|
15887
15873
|
}
|
|
15888
15874
|
}
|
|
15889
|
-
const Gs = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',
|
|
15890
|
-
function
|
|
15875
|
+
const Gs = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>', Wd = '<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>';
|
|
15876
|
+
function zd(s) {
|
|
15891
15877
|
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
15892
15878
|
}
|
|
15893
15879
|
function Ys(s) {
|
|
15894
15880
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
15895
15881
|
}
|
|
15896
|
-
class
|
|
15882
|
+
class Vd extends HTMLElement {
|
|
15897
15883
|
shadow;
|
|
15898
15884
|
schema = null;
|
|
15899
15885
|
value = {};
|
|
@@ -16049,11 +16035,11 @@ class Kd extends HTMLElement {
|
|
|
16049
16035
|
return `<textarea class="input textarea" id="${n}" ${i} rows="${a.rows ?? 4}" placeholder="${Tt(a.placeholder ?? "")}" ${a.maxLength ? `maxlength="${a.maxLength}"` : ""}>${Qe(String(o ?? ""))}</textarea>`;
|
|
16050
16036
|
}
|
|
16051
16037
|
if (e.type === "number") {
|
|
16052
|
-
const a = e;
|
|
16038
|
+
const a = e, l = a.currency ? `<span class="prefix">${Qe(a.currency)}</span>` : "", c = a.readOnly ? "disabled" : "", u = a.readOnly ? "input--readonly" : "";
|
|
16053
16039
|
return `
|
|
16054
16040
|
<div class="input-with-prefix">
|
|
16055
|
-
${
|
|
16056
|
-
<input type="number" class="input" id="${n}" ${i} value="${Tt(String(o ?? ""))}" placeholder="${Tt(a.placeholder ?? "")}" ${a.min !== void 0 ? `min="${a.min}"` : ""} ${a.max !== void 0 ? `max="${a.max}"` : ""}/>
|
|
16041
|
+
${l}
|
|
16042
|
+
<input type="number" class="input ${u}" id="${n}" ${i} value="${Tt(String(o ?? ""))}" placeholder="${Tt(a.placeholder ?? "")}" ${a.min !== void 0 ? `min="${a.min}"` : ""} ${a.max !== void 0 ? `max="${a.max}"` : ""} ${c}/>
|
|
16057
16043
|
</div>`;
|
|
16058
16044
|
}
|
|
16059
16045
|
if (e.type === "date")
|
|
@@ -16209,6 +16195,13 @@ class Kd extends HTMLElement {
|
|
|
16209
16195
|
outline: none;
|
|
16210
16196
|
transition: border-color 150ms, box-shadow 150ms;
|
|
16211
16197
|
}
|
|
16198
|
+
.input--readonly, .input--readonly:focus, .input[disabled] {
|
|
16199
|
+
background: var(--aikaara-readonly-bg, #f1f5f9);
|
|
16200
|
+
color: var(--aikaara-text-muted, #64748b);
|
|
16201
|
+
cursor: not-allowed;
|
|
16202
|
+
border-color: var(--aikaara-input-border, #e2e8f0);
|
|
16203
|
+
box-shadow: none;
|
|
16204
|
+
}
|
|
16212
16205
|
.textarea { resize: vertical; min-height: 70px; line-height: 1.45; }
|
|
16213
16206
|
.input:focus {
|
|
16214
16207
|
border-color: var(--aikaara-primary, #2563eb);
|
|
@@ -16296,33 +16289,33 @@ function Tt(s) {
|
|
|
16296
16289
|
function Qe(s) {
|
|
16297
16290
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
16298
16291
|
}
|
|
16299
|
-
function
|
|
16292
|
+
function Kd() {
|
|
16300
16293
|
const s = [
|
|
16301
|
-
["aikaara-chat-widget",
|
|
16302
|
-
["aikaara-chat-bubble",
|
|
16303
|
-
["aikaara-chat-header",
|
|
16304
|
-
["aikaara-message-list",
|
|
16305
|
-
["aikaara-message-bubble",
|
|
16306
|
-
["aikaara-chat-input",
|
|
16307
|
-
["aikaara-typing-indicator",
|
|
16308
|
-
["aikaara-streaming-message",
|
|
16309
|
-
["aikaara-error-banner",
|
|
16310
|
-
["aikaara-template-renderer",
|
|
16311
|
-
["aikaara-system-pill",
|
|
16312
|
-
["aikaara-option-list",
|
|
16313
|
-
["aikaara-submit-action",
|
|
16314
|
-
["aikaara-modal-action",
|
|
16315
|
-
["aikaara-text-input",
|
|
16316
|
-
["aikaara-chat",
|
|
16317
|
-
["aikaara-link-modal",
|
|
16318
|
-
["aikaara-compare-plans",
|
|
16319
|
-
["aikaara-smart-edit-modal",
|
|
16320
|
-
["aikaara-schema-form",
|
|
16294
|
+
["aikaara-chat-widget", nd],
|
|
16295
|
+
["aikaara-chat-bubble", id],
|
|
16296
|
+
["aikaara-chat-header", sd],
|
|
16297
|
+
["aikaara-message-list", gd],
|
|
16298
|
+
["aikaara-message-bubble", vd],
|
|
16299
|
+
["aikaara-chat-input", _d],
|
|
16300
|
+
["aikaara-typing-indicator", kd],
|
|
16301
|
+
["aikaara-streaming-message", xd],
|
|
16302
|
+
["aikaara-error-banner", Sd],
|
|
16303
|
+
["aikaara-template-renderer", Td],
|
|
16304
|
+
["aikaara-system-pill", Md],
|
|
16305
|
+
["aikaara-option-list", Rd],
|
|
16306
|
+
["aikaara-submit-action", Ld],
|
|
16307
|
+
["aikaara-modal-action", jd],
|
|
16308
|
+
["aikaara-text-input", Ud],
|
|
16309
|
+
["aikaara-chat", Bd],
|
|
16310
|
+
["aikaara-link-modal", Dd],
|
|
16311
|
+
["aikaara-compare-plans", qd],
|
|
16312
|
+
["aikaara-smart-edit-modal", Hd],
|
|
16313
|
+
["aikaara-schema-form", Vd]
|
|
16321
16314
|
];
|
|
16322
16315
|
for (const [e, t] of s)
|
|
16323
16316
|
customElements.get(e) || customElements.define(e, t);
|
|
16324
16317
|
}
|
|
16325
|
-
|
|
16318
|
+
Kd();
|
|
16326
16319
|
function pr(s, e, t = "") {
|
|
16327
16320
|
if (!e) return t;
|
|
16328
16321
|
const r = e.split(".");
|
|
@@ -16348,7 +16341,7 @@ function Js(s) {
|
|
|
16348
16341
|
async function Ht(s) {
|
|
16349
16342
|
return typeof s == "function" ? await s() : s;
|
|
16350
16343
|
}
|
|
16351
|
-
class
|
|
16344
|
+
class Gd {
|
|
16352
16345
|
constructor(e, t) {
|
|
16353
16346
|
this.descriptor = e, this.sessionToken = t;
|
|
16354
16347
|
}
|
|
@@ -16399,10 +16392,10 @@ class Yd {
|
|
|
16399
16392
|
return this.cache = { token: h, requestId: g, fullName: f, userId: b, expiresAt: y }, this.cache;
|
|
16400
16393
|
}
|
|
16401
16394
|
}
|
|
16402
|
-
async function
|
|
16395
|
+
async function Yd(s) {
|
|
16403
16396
|
const e = {};
|
|
16404
16397
|
for (const t of s.spec) {
|
|
16405
|
-
const r = await
|
|
16398
|
+
const r = await Jd(t, s.providers);
|
|
16406
16399
|
if (r !== void 0 && r !== "")
|
|
16407
16400
|
e[t.name] = r;
|
|
16408
16401
|
else {
|
|
@@ -16415,11 +16408,11 @@ async function Jd(s) {
|
|
|
16415
16408
|
}
|
|
16416
16409
|
return e;
|
|
16417
16410
|
}
|
|
16418
|
-
async function
|
|
16411
|
+
async function Jd(s, e) {
|
|
16419
16412
|
const t = s.key ?? s.name;
|
|
16420
16413
|
switch (s.source) {
|
|
16421
16414
|
case "cookie":
|
|
16422
|
-
return
|
|
16415
|
+
return Qd(t);
|
|
16423
16416
|
case "localStorage":
|
|
16424
16417
|
return mr(() => window.localStorage.getItem(t) ?? void 0);
|
|
16425
16418
|
case "sessionStorage":
|
|
@@ -16427,7 +16420,7 @@ async function Qd(s, e) {
|
|
|
16427
16420
|
case "url_param":
|
|
16428
16421
|
return mr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
|
|
16429
16422
|
case "header_meta":
|
|
16430
|
-
return mr(() => document.querySelector(`meta[name="${
|
|
16423
|
+
return mr(() => document.querySelector(`meta[name="${Xd(t)}"]`)?.content ?? void 0);
|
|
16431
16424
|
case "callback": {
|
|
16432
16425
|
const r = e?.[s.name];
|
|
16433
16426
|
if (!r) return;
|
|
@@ -16438,7 +16431,7 @@ async function Qd(s, e) {
|
|
|
16438
16431
|
return;
|
|
16439
16432
|
}
|
|
16440
16433
|
}
|
|
16441
|
-
function
|
|
16434
|
+
function Qd(s) {
|
|
16442
16435
|
if (typeof document > "u") return;
|
|
16443
16436
|
const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16444
16437
|
for (const r of t) {
|
|
@@ -16460,11 +16453,11 @@ function mr(s) {
|
|
|
16460
16453
|
return;
|
|
16461
16454
|
}
|
|
16462
16455
|
}
|
|
16463
|
-
function
|
|
16456
|
+
function Xd(s) {
|
|
16464
16457
|
return s.replace(/["\\]/g, "\\$&");
|
|
16465
16458
|
}
|
|
16466
|
-
const
|
|
16467
|
-
class
|
|
16459
|
+
const Zd = 1800;
|
|
16460
|
+
class ef {
|
|
16468
16461
|
constructor(e) {
|
|
16469
16462
|
this.opts = e, this.cache = this.loadCache();
|
|
16470
16463
|
}
|
|
@@ -16493,7 +16486,7 @@ class tf {
|
|
|
16493
16486
|
throw new Error(
|
|
16494
16487
|
"[aikaara-chat-sdk] SsoExchangeAdapter.exchange() requires descriptor.sso.collect; v2 partner-token flow should be handled by TokenDiscoveryReader instead."
|
|
16495
16488
|
);
|
|
16496
|
-
const e = await
|
|
16489
|
+
const e = await Yd({
|
|
16497
16490
|
spec: this.opts.descriptor.collect,
|
|
16498
16491
|
providers: this.opts.providers
|
|
16499
16492
|
}), t = JSON.stringify({ credentials: e }), r = {
|
|
@@ -16531,7 +16524,7 @@ class tf {
|
|
|
16531
16524
|
return this.cache = u, this.persistCache(u), u;
|
|
16532
16525
|
}
|
|
16533
16526
|
computeExpiry() {
|
|
16534
|
-
const e = this.opts.descriptor.cacheTtlSec ??
|
|
16527
|
+
const e = this.opts.descriptor.cacheTtlSec ?? Zd;
|
|
16535
16528
|
if (!(!this.opts.descriptor.cacheKey || e <= 0))
|
|
16536
16529
|
return Date.now() + e * 1e3;
|
|
16537
16530
|
}
|
|
@@ -16564,8 +16557,8 @@ class tf {
|
|
|
16564
16557
|
}
|
|
16565
16558
|
}
|
|
16566
16559
|
}
|
|
16567
|
-
const
|
|
16568
|
-
async function
|
|
16560
|
+
const tf = 3e4, rf = 2e3, nf = 100;
|
|
16561
|
+
async function of(s) {
|
|
16569
16562
|
const { descriptor: e } = s, t = e.tokenSourceConfig ?? {};
|
|
16570
16563
|
switch (e.tokenSource) {
|
|
16571
16564
|
case "init": {
|
|
@@ -16574,37 +16567,37 @@ async function sf(s) {
|
|
|
16574
16567
|
return { token: s.initToken, source: "init" };
|
|
16575
16568
|
}
|
|
16576
16569
|
case "query": {
|
|
16577
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16570
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = af(r);
|
|
16578
16571
|
if (!o) throw new Xe("query", `?${r}= not present`);
|
|
16579
16572
|
return { token: o, source: "query" };
|
|
16580
16573
|
}
|
|
16581
16574
|
case "hash": {
|
|
16582
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16575
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = lf(r);
|
|
16583
16576
|
if (!o) throw new Xe("hash", `#${r}= not present`);
|
|
16584
16577
|
return { token: o, source: "hash" };
|
|
16585
16578
|
}
|
|
16586
16579
|
case "postmsg": {
|
|
16587
|
-
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n =
|
|
16588
|
-
return { token: await
|
|
16580
|
+
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = ff(typeof t.origins == "string" ? t.origins : ""), i = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : tf;
|
|
16581
|
+
return { token: await df({ type: r, key: o, origins: n, timeoutMs: i }), source: "postmsg" };
|
|
16589
16582
|
}
|
|
16590
16583
|
case "cookie": {
|
|
16591
16584
|
const r = typeof t.name == "string" && t.name ? t.name : "";
|
|
16592
16585
|
if (!r) throw new Xe("cookie", "cookie.name not configured");
|
|
16593
|
-
const o =
|
|
16586
|
+
const o = cf(r);
|
|
16594
16587
|
if (!o) throw new Xe("cookie", `cookie "${r}" not set`);
|
|
16595
16588
|
return { token: o, source: "cookie" };
|
|
16596
16589
|
}
|
|
16597
16590
|
case "storage": {
|
|
16598
16591
|
const r = t.store === "session" ? "session" : "local", o = typeof t.key == "string" && t.key ? t.key : "", n = typeof t.path == "string" ? t.path : "";
|
|
16599
16592
|
if (!o) throw new Xe("storage", "storage.key not configured");
|
|
16600
|
-
const i =
|
|
16593
|
+
const i = uf(r, o, n);
|
|
16601
16594
|
if (!i) throw new Xe("storage", `${r}Storage["${o}"] not set`);
|
|
16602
16595
|
return { token: i, source: "storage" };
|
|
16603
16596
|
}
|
|
16604
16597
|
case "global": {
|
|
16605
16598
|
const r = typeof t.path == "string" ? t.path : "";
|
|
16606
16599
|
if (!r) throw new Xe("global", "global.path not configured");
|
|
16607
|
-
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs :
|
|
16600
|
+
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : rf, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : nf, i = await hf(r, o, n);
|
|
16608
16601
|
if (!i) throw new Xe("global", `window.${r} not present`);
|
|
16609
16602
|
return { token: i, source: "global" };
|
|
16610
16603
|
}
|
|
@@ -16617,7 +16610,7 @@ async function sf(s) {
|
|
|
16617
16610
|
}
|
|
16618
16611
|
}
|
|
16619
16612
|
}
|
|
16620
|
-
class
|
|
16613
|
+
class sf {
|
|
16621
16614
|
constructor(e) {
|
|
16622
16615
|
this.opts = e;
|
|
16623
16616
|
}
|
|
@@ -16628,7 +16621,7 @@ class af {
|
|
|
16628
16621
|
/** Resolve the token. Returns cache if present. */
|
|
16629
16622
|
async get() {
|
|
16630
16623
|
if (this.cached) return this.cached;
|
|
16631
|
-
const e = await
|
|
16624
|
+
const e = await of(this.opts);
|
|
16632
16625
|
return this.cached = e, e;
|
|
16633
16626
|
}
|
|
16634
16627
|
/**
|
|
@@ -16645,7 +16638,7 @@ class Xe extends Error {
|
|
|
16645
16638
|
super(`[aikaara-chat-sdk] token-discovery (${e}): ${t}`), this.source = e, this.name = "TokenDiscoveryError";
|
|
16646
16639
|
}
|
|
16647
16640
|
}
|
|
16648
|
-
function
|
|
16641
|
+
function af(s) {
|
|
16649
16642
|
if (!(typeof window > "u"))
|
|
16650
16643
|
try {
|
|
16651
16644
|
const e = window.location.search.slice(1);
|
|
@@ -16659,7 +16652,7 @@ function lf(s) {
|
|
|
16659
16652
|
return;
|
|
16660
16653
|
}
|
|
16661
16654
|
}
|
|
16662
|
-
function
|
|
16655
|
+
function lf(s) {
|
|
16663
16656
|
if (!(typeof window > "u"))
|
|
16664
16657
|
try {
|
|
16665
16658
|
const e = window.location.hash.replace(/^#/, "");
|
|
@@ -16668,7 +16661,7 @@ function cf(s) {
|
|
|
16668
16661
|
return;
|
|
16669
16662
|
}
|
|
16670
16663
|
}
|
|
16671
|
-
function
|
|
16664
|
+
function cf(s) {
|
|
16672
16665
|
if (typeof document > "u") return;
|
|
16673
16666
|
const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16674
16667
|
for (const r of t) {
|
|
@@ -16683,7 +16676,7 @@ function uf(s) {
|
|
|
16683
16676
|
}
|
|
16684
16677
|
}
|
|
16685
16678
|
}
|
|
16686
|
-
function
|
|
16679
|
+
function uf(s, e, t) {
|
|
16687
16680
|
if (!(typeof window > "u"))
|
|
16688
16681
|
try {
|
|
16689
16682
|
const o = (s === "session" ? window.sessionStorage : window.localStorage).getItem(e);
|
|
@@ -16701,7 +16694,7 @@ function hf(s, e, t) {
|
|
|
16701
16694
|
return;
|
|
16702
16695
|
}
|
|
16703
16696
|
}
|
|
16704
|
-
async function
|
|
16697
|
+
async function hf(s, e, t) {
|
|
16705
16698
|
if (typeof window > "u") return;
|
|
16706
16699
|
const r = Date.now() + e;
|
|
16707
16700
|
for (; Date.now() < r; ) {
|
|
@@ -16716,7 +16709,7 @@ async function df(s, e, t) {
|
|
|
16716
16709
|
await new Promise((n) => setTimeout(n, t));
|
|
16717
16710
|
}
|
|
16718
16711
|
}
|
|
16719
|
-
function
|
|
16712
|
+
function df(s) {
|
|
16720
16713
|
return new Promise((e, t) => {
|
|
16721
16714
|
if (typeof window > "u") {
|
|
16722
16715
|
t(new Xe("postmsg", "no window"));
|
|
@@ -16738,7 +16731,7 @@ function ff(s) {
|
|
|
16738
16731
|
window.addEventListener("message", n);
|
|
16739
16732
|
});
|
|
16740
16733
|
}
|
|
16741
|
-
function
|
|
16734
|
+
function ff(s) {
|
|
16742
16735
|
return s ? s.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
|
|
16743
16736
|
}
|
|
16744
16737
|
function Ul(s, e) {
|
|
@@ -16752,7 +16745,7 @@ function Ul(s, e) {
|
|
|
16752
16745
|
return;
|
|
16753
16746
|
return r;
|
|
16754
16747
|
}
|
|
16755
|
-
function
|
|
16748
|
+
function pf() {
|
|
16756
16749
|
const s = typeof crypto < "u" ? crypto : null;
|
|
16757
16750
|
if (s?.randomUUID) return s.randomUUID();
|
|
16758
16751
|
if (s?.getRandomValues) {
|
|
@@ -16766,9 +16759,9 @@ function mf() {
|
|
|
16766
16759
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
16767
16760
|
});
|
|
16768
16761
|
}
|
|
16769
|
-
const
|
|
16762
|
+
const mf = "aikaara_chat:requestId";
|
|
16770
16763
|
function Io(s, e, t) {
|
|
16771
|
-
const r = `${
|
|
16764
|
+
const r = `${mf}:${s}:${e}`;
|
|
16772
16765
|
return t ? `${r}:${t}` : r;
|
|
16773
16766
|
}
|
|
16774
16767
|
function Bl(s, e, t) {
|
|
@@ -16778,13 +16771,13 @@ function Bl(s, e, t) {
|
|
|
16778
16771
|
return null;
|
|
16779
16772
|
}
|
|
16780
16773
|
}
|
|
16781
|
-
function
|
|
16774
|
+
function gf(s, e, t, r) {
|
|
16782
16775
|
try {
|
|
16783
16776
|
localStorage.setItem(Io(s, e, r), t);
|
|
16784
16777
|
} catch {
|
|
16785
16778
|
}
|
|
16786
16779
|
}
|
|
16787
|
-
function
|
|
16780
|
+
function _f(s, e, t) {
|
|
16788
16781
|
try {
|
|
16789
16782
|
localStorage.removeItem(Io(s, e, t));
|
|
16790
16783
|
} catch {
|
|
@@ -16833,7 +16826,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16833
16826
|
_ = x;
|
|
16834
16827
|
break;
|
|
16835
16828
|
}
|
|
16836
|
-
if (y = x.status, w = await x.text().catch(() => ""), m < c.length &&
|
|
16829
|
+
if (y = x.status, w = await x.text().catch(() => ""), m < c.length && bf(y, w)) {
|
|
16837
16830
|
const E = c[m++];
|
|
16838
16831
|
console.warn(
|
|
16839
16832
|
`[aikaara-chat-sdk] preflight #${u} ${g} ${p} → ${y} (transient). Retry #${m} in ${E}ms.`
|
|
@@ -16887,7 +16880,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16887
16880
|
}
|
|
16888
16881
|
return { captured: l };
|
|
16889
16882
|
}
|
|
16890
|
-
async function
|
|
16883
|
+
async function kf(s) {
|
|
16891
16884
|
const e = s.steps ?? [];
|
|
16892
16885
|
return e.some((r) => r.trigger === "on-method-select") ? (await uo(
|
|
16893
16886
|
e,
|
|
@@ -16903,7 +16896,7 @@ async function xf(s) {
|
|
|
16903
16896
|
"on-method-select"
|
|
16904
16897
|
)).captured : {};
|
|
16905
16898
|
}
|
|
16906
|
-
function
|
|
16899
|
+
function bf(s, e) {
|
|
16907
16900
|
if (s === 503 || s === 504 || s === 502) return !0;
|
|
16908
16901
|
if (s === 401 || s === 403) return e.trim().length === 0;
|
|
16909
16902
|
if (s === 500) {
|
|
@@ -16929,7 +16922,7 @@ async function Dl(s, e) {
|
|
|
16929
16922
|
return r;
|
|
16930
16923
|
}
|
|
16931
16924
|
function Fl(s, e) {
|
|
16932
|
-
return s.replace("{projectId}", e).replace("{uuid}",
|
|
16925
|
+
return s.replace("{projectId}", e).replace("{uuid}", pf().replace(/-/g, ""));
|
|
16933
16926
|
}
|
|
16934
16927
|
function $l(s) {
|
|
16935
16928
|
const e = s._preload;
|
|
@@ -16941,7 +16934,7 @@ function $l(s) {
|
|
|
16941
16934
|
);
|
|
16942
16935
|
t.length !== 0 && Promise.allSettled(t.map((r) => jl(r)));
|
|
16943
16936
|
}
|
|
16944
|
-
async function
|
|
16937
|
+
async function yf(s) {
|
|
16945
16938
|
const e = {
|
|
16946
16939
|
...s.config ?? (s.configUrl ? await Dl(s.configUrl, s.configHeaders) : {}),
|
|
16947
16940
|
...s.overrides ?? {}
|
|
@@ -16951,7 +16944,7 @@ async function vf(s) {
|
|
|
16951
16944
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
16952
16945
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
16953
16946
|
const o = r?.projectId ?? "", n = s.identity.userId, i = s.conversationScope || void 0, a = s.forceNewConversation ? null : Bl(n, o, i), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = s.conversationId ?? a ?? Fl(l, o);
|
|
16954
|
-
(s.conversationId || !a || s.forceNewConversation) && o &&
|
|
16947
|
+
(s.conversationId || !a || s.forceNewConversation) && o && gf(n, o, c, i);
|
|
16955
16948
|
const u = await s.tokenProvider(), h = s.tokenProvider, p = s.historyTokenProvider ?? h, g = r ? {
|
|
16956
16949
|
mqttEndpoint: r.mqttEndpoint,
|
|
16957
16950
|
jwtToken: u,
|
|
@@ -17039,13 +17032,13 @@ async function vf(s) {
|
|
|
17039
17032
|
}
|
|
17040
17033
|
};
|
|
17041
17034
|
}
|
|
17042
|
-
function
|
|
17035
|
+
function vf(s) {
|
|
17043
17036
|
if (typeof s != "string") return s;
|
|
17044
17037
|
const e = document.querySelector(s);
|
|
17045
17038
|
if (!e) throw new Error(`mountFromSlug: container "${s}" not found`);
|
|
17046
17039
|
return e;
|
|
17047
17040
|
}
|
|
17048
|
-
async function
|
|
17041
|
+
async function wf(s) {
|
|
17049
17042
|
const e = (s.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(s.slug)}`;
|
|
17050
17043
|
let r = null;
|
|
17051
17044
|
try {
|
|
@@ -17095,7 +17088,7 @@ async function _f(s) {
|
|
|
17095
17088
|
let i = null, a = s.user.id, l = s.user.name, c = "", u = s.user.token, h = null;
|
|
17096
17089
|
const p = await Ht(s.user.token).catch(() => ""), g = typeof p == "string" && p.length > 0;
|
|
17097
17090
|
if (!g && o.sso?.tokenSource) {
|
|
17098
|
-
h = new
|
|
17091
|
+
h = new sf({
|
|
17099
17092
|
descriptor: {
|
|
17100
17093
|
provider: o.sso.provider,
|
|
17101
17094
|
flow: o.sso.flow,
|
|
@@ -17112,7 +17105,7 @@ async function _f(s) {
|
|
|
17112
17105
|
u = async () => (await h.get()).token, s.user.identity && !s.user.identity.partnerToken && (s.user.identity.partnerToken = I.token);
|
|
17113
17106
|
} else if (!g && o.sso && o.sso.collect && o.sso.collect.length > 0) {
|
|
17114
17107
|
const I = `${e}/api/v1/projects/by-slug/${encodeURIComponent(s.slug)}/sso_exchange`;
|
|
17115
|
-
i = await new
|
|
17108
|
+
i = await new ef({
|
|
17116
17109
|
descriptor: o.sso,
|
|
17117
17110
|
providers: s.user.credentialProviders,
|
|
17118
17111
|
exchangeUrl: I
|
|
@@ -17134,7 +17127,7 @@ async function _f(s) {
|
|
|
17134
17127
|
}
|
|
17135
17128
|
I.captured.userId && (a = I.captured.userId), I.captured.requestId && (b = I.captured.requestId);
|
|
17136
17129
|
}
|
|
17137
|
-
const y = new
|
|
17130
|
+
const y = new Gd(o.auth, u);
|
|
17138
17131
|
if (f) {
|
|
17139
17132
|
const I = o.tiledesk?.projectId ?? "", O = I ? Bl(a, I) : null, P = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", j = O ?? (I ? Fl(P, I) : "");
|
|
17140
17133
|
y.prime(f, { requestId: j, fullName: l });
|
|
@@ -17165,8 +17158,8 @@ async function _f(s) {
|
|
|
17165
17158
|
fieldName: x.fieldName,
|
|
17166
17159
|
extraFields: x.extraFields,
|
|
17167
17160
|
headers: async () => ({ authorization: await v() })
|
|
17168
|
-
}) : void 0), S = await
|
|
17169
|
-
container:
|
|
17161
|
+
}) : void 0), S = await yf({
|
|
17162
|
+
container: vf(s.container),
|
|
17170
17163
|
config: o,
|
|
17171
17164
|
// SSO-issued Aikaara user token, used by the ActionCable transport.
|
|
17172
17165
|
// Tiledesk-only widgets ignore this; falls back to `userId` inside `mount`.
|
|
@@ -17222,50 +17215,50 @@ async function _f(s) {
|
|
|
17222
17215
|
}
|
|
17223
17216
|
export {
|
|
17224
17217
|
To as A,
|
|
17225
|
-
|
|
17218
|
+
wf as B,
|
|
17226
17219
|
ql as C,
|
|
17227
|
-
|
|
17220
|
+
yf as D,
|
|
17228
17221
|
Qs as E,
|
|
17229
17222
|
Ol as F,
|
|
17230
|
-
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17223
|
+
kf as G,
|
|
17224
|
+
pd as H,
|
|
17225
|
+
Bd as I,
|
|
17226
|
+
qd as J,
|
|
17227
|
+
Dd as K,
|
|
17228
|
+
jd as L,
|
|
17236
17229
|
ec as M,
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
|
|
17240
|
-
|
|
17241
|
-
|
|
17242
|
-
|
|
17230
|
+
Rd as N,
|
|
17231
|
+
Vd as O,
|
|
17232
|
+
Hd as P,
|
|
17233
|
+
Ld as Q,
|
|
17234
|
+
Md as R,
|
|
17235
|
+
Gd as S,
|
|
17243
17236
|
ph as T,
|
|
17244
|
-
|
|
17245
|
-
|
|
17246
|
-
|
|
17237
|
+
Td as U,
|
|
17238
|
+
Ud as V,
|
|
17239
|
+
id as a,
|
|
17247
17240
|
wh as b,
|
|
17248
|
-
|
|
17249
|
-
|
|
17250
|
-
|
|
17251
|
-
|
|
17252
|
-
|
|
17253
|
-
|
|
17254
|
-
|
|
17255
|
-
|
|
17241
|
+
sd as c,
|
|
17242
|
+
_d as d,
|
|
17243
|
+
nd as e,
|
|
17244
|
+
Sd as f,
|
|
17245
|
+
vd as g,
|
|
17246
|
+
gd as h,
|
|
17247
|
+
xd as i,
|
|
17248
|
+
kd as j,
|
|
17256
17249
|
Zl as k,
|
|
17257
17250
|
Xl as l,
|
|
17258
17251
|
tc as m,
|
|
17259
|
-
|
|
17252
|
+
ef as n,
|
|
17260
17253
|
Xe as o,
|
|
17261
|
-
|
|
17262
|
-
|
|
17263
|
-
|
|
17264
|
-
|
|
17254
|
+
sf as p,
|
|
17255
|
+
_f as q,
|
|
17256
|
+
Kd as r,
|
|
17257
|
+
Yd as s,
|
|
17265
17258
|
Pl as t,
|
|
17266
17259
|
Sh as u,
|
|
17267
17260
|
Ah as v,
|
|
17268
|
-
|
|
17261
|
+
of as w,
|
|
17269
17262
|
yh as x,
|
|
17270
17263
|
bh as y,
|
|
17271
17264
|
gh as z
|