@2uinc/frontend-component-xpert-chatbot 1.3.11-beta.9 → 1.3.11
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/lib/index.min.js +342 -346
- package/package.json +2 -2
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import ue, { useState as pe, useEffect as ye, useCallback as at, useRef as
|
1
|
+
import ue, { useState as pe, useEffect as ye, useCallback as at, useRef as Fe } from "react";
|
2
2
|
const tl = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApiEndpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chat",
|
@@ -182,7 +182,7 @@ const tl = {
|
|
182
182
|
function Ue(e) {
|
183
183
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
184
184
|
}
|
185
|
-
function
|
185
|
+
function Ti(e) {
|
186
186
|
if (e.__esModule)
|
187
187
|
return e;
|
188
188
|
var t = e.default;
|
@@ -203,7 +203,7 @@ function Ii(e) {
|
|
203
203
|
});
|
204
204
|
}), n;
|
205
205
|
}
|
206
|
-
var
|
206
|
+
var Ii = { exports: {} }, ct = {};
|
207
207
|
/*
|
208
208
|
object-assign
|
209
209
|
(c) Sindre Sorhus
|
@@ -265,8 +265,8 @@ function vi(e, t, n) {
|
|
265
265
|
}
|
266
266
|
ct.jsx = vi;
|
267
267
|
ct.jsxs = vi;
|
268
|
-
|
269
|
-
var D =
|
268
|
+
Ii.exports = ct;
|
269
|
+
var D = Ii.exports, ji = { exports: {} }, fl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", dl = fl, hl = dl;
|
270
270
|
function Ei() {
|
271
271
|
}
|
272
272
|
function Si() {
|
@@ -569,7 +569,7 @@ function zi(e) {
|
|
569
569
|
return t;
|
570
570
|
}
|
571
571
|
const yr = /* @__PURE__ */ Object.create(null);
|
572
|
-
function
|
572
|
+
function Tl(e, t) {
|
573
573
|
return {
|
574
574
|
provider: e,
|
575
575
|
prefix: t,
|
@@ -579,14 +579,14 @@ function Il(e, t) {
|
|
579
579
|
}
|
580
580
|
function Re(e, t) {
|
581
581
|
const n = yr[e] || (yr[e] = /* @__PURE__ */ Object.create(null));
|
582
|
-
return n[t] || (n[t] =
|
582
|
+
return n[t] || (n[t] = Tl(e, t));
|
583
583
|
}
|
584
584
|
function Bn(e, t) {
|
585
585
|
return zi(t) ? Oi(t, (n, r) => {
|
586
586
|
r ? e.icons[n] = r : e.missing.add(n);
|
587
587
|
}) : [];
|
588
588
|
}
|
589
|
-
function
|
589
|
+
function Il(e, t, n) {
|
590
590
|
try {
|
591
591
|
if (typeof n.body == "string")
|
592
592
|
return e.icons[t] = { ...n }, !0;
|
@@ -610,7 +610,7 @@ function vl(e, t) {
|
|
610
610
|
if (!n)
|
611
611
|
return !1;
|
612
612
|
const r = Re(n.provider, n.prefix);
|
613
|
-
return
|
613
|
+
return Il(r, n.name, t);
|
614
614
|
}
|
615
615
|
function jl(e, t) {
|
616
616
|
if (typeof e != "object")
|
@@ -678,9 +678,9 @@ function Al(e, t) {
|
|
678
678
|
height: n.height
|
679
679
|
};
|
680
680
|
let o = n.body;
|
681
|
-
[n, r].forEach((
|
682
|
-
const b = [], S =
|
683
|
-
let v =
|
681
|
+
[n, r].forEach((T) => {
|
682
|
+
const b = [], S = T.hFlip, w = T.vFlip;
|
683
|
+
let v = T.rotate;
|
684
684
|
S ? w ? v += 2 : (b.push(
|
685
685
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
686
686
|
), b.push("scale(-1 1)"), i.top = i.left = 0) : w && (b.push(
|
@@ -709,8 +709,8 @@ function Al(e, t) {
|
|
709
709
|
const l = r.width, a = r.height, s = i.width, u = i.height;
|
710
710
|
let c, p;
|
711
711
|
l === null ? (p = a === null ? "1em" : a === "auto" ? u : a, c = Mr(p, s / u)) : (c = l === "auto" ? s : l, p = a === null ? Mr(c, u / s) : a === "auto" ? u : a);
|
712
|
-
const m = {}, f = (
|
713
|
-
Cl(b) || (m[
|
712
|
+
const m = {}, f = (T, b) => {
|
713
|
+
Cl(b) || (m[T] = b.toString());
|
714
714
|
};
|
715
715
|
return f("width", c), f("height", p), m.viewBox = i.left.toString() + " " + i.top.toString() + " " + s.toString() + " " + u.toString(), {
|
716
716
|
attributes: m,
|
@@ -741,7 +741,7 @@ const Nn = /* @__PURE__ */ Object.create(null);
|
|
741
741
|
function Fl(e, t) {
|
742
742
|
Nn[e] = t;
|
743
743
|
}
|
744
|
-
function
|
744
|
+
function Tn(e) {
|
745
745
|
return Nn[e] || Nn[""];
|
746
746
|
}
|
747
747
|
function Qn(e) {
|
@@ -1005,11 +1005,11 @@ function Kl(e, t, n, r) {
|
|
1005
1005
|
const a = Date.now();
|
1006
1006
|
let s = "pending", u = 0, c, p = null, m = [], f = [];
|
1007
1007
|
typeof r == "function" && f.push(r);
|
1008
|
-
function
|
1008
|
+
function T() {
|
1009
1009
|
p && (clearTimeout(p), p = null);
|
1010
1010
|
}
|
1011
1011
|
function b() {
|
1012
|
-
s === "pending" && (s = "aborted"),
|
1012
|
+
s === "pending" && (s = "aborted"), T(), m.forEach((y) => {
|
1013
1013
|
y.status === "pending" && (y.status = "aborted");
|
1014
1014
|
}), m = [];
|
1015
1015
|
}
|
@@ -1057,7 +1057,7 @@ function Kl(e, t, n, r) {
|
|
1057
1057
|
c = U, m.length || (l.length ? _() : v());
|
1058
1058
|
return;
|
1059
1059
|
}
|
1060
|
-
if (
|
1060
|
+
if (T(), j(), !e.random) {
|
1061
1061
|
const q = e.resources.indexOf(y.resource);
|
1062
1062
|
q !== -1 && q !== e.index && (e.index = q);
|
1063
1063
|
}
|
@@ -1068,12 +1068,12 @@ function Kl(e, t, n, r) {
|
|
1068
1068
|
function _() {
|
1069
1069
|
if (s !== "pending")
|
1070
1070
|
return;
|
1071
|
-
|
1071
|
+
T();
|
1072
1072
|
const y = l.shift();
|
1073
1073
|
if (y === void 0) {
|
1074
1074
|
if (m.length) {
|
1075
1075
|
p = setTimeout(() => {
|
1076
|
-
|
1076
|
+
T(), s === "pending" && (j(), v());
|
1077
1077
|
}, e.timeout);
|
1078
1078
|
return;
|
1079
1079
|
}
|
@@ -1143,7 +1143,7 @@ function Jl(e) {
|
|
1143
1143
|
function ea(e, t, n) {
|
1144
1144
|
let r, i;
|
1145
1145
|
if (typeof e == "string") {
|
1146
|
-
const o =
|
1146
|
+
const o = Tn(e);
|
1147
1147
|
if (!o)
|
1148
1148
|
return n(void 0, 424), br;
|
1149
1149
|
i = o.send;
|
@@ -1153,14 +1153,14 @@ function ea(e, t, n) {
|
|
1153
1153
|
const o = Qn(e);
|
1154
1154
|
if (o) {
|
1155
1155
|
r = _i(o);
|
1156
|
-
const l = e.resources ? e.resources[0] : "", a =
|
1156
|
+
const l = e.resources ? e.resources[0] : "", a = Tn(l);
|
1157
1157
|
a && (i = a.send);
|
1158
1158
|
}
|
1159
1159
|
}
|
1160
1160
|
return !r || !i ? (n(void 0, 424), br) : r.query(t, i, n)().abort;
|
1161
1161
|
}
|
1162
1162
|
const wr = "iconify2", st = "iconify", Ui = st + "-count", Dr = st + "-version", Bi = 36e5, ta = 168;
|
1163
|
-
function
|
1163
|
+
function In(e, t) {
|
1164
1164
|
try {
|
1165
1165
|
return e.getItem(t);
|
1166
1166
|
} catch {
|
@@ -1182,7 +1182,7 @@ function kn(e, t) {
|
|
1182
1182
|
return qn(e, Ui, t.toString());
|
1183
1183
|
}
|
1184
1184
|
function vn(e) {
|
1185
|
-
return parseInt(
|
1185
|
+
return parseInt(In(e, Ui)) || 0;
|
1186
1186
|
}
|
1187
1187
|
const Ut = {
|
1188
1188
|
local: !0,
|
@@ -1209,7 +1209,7 @@ function Hi(e, t) {
|
|
1209
1209
|
const n = Yi(e);
|
1210
1210
|
if (!n)
|
1211
1211
|
return;
|
1212
|
-
const r =
|
1212
|
+
const r = In(n, Dr);
|
1213
1213
|
if (r !== wr) {
|
1214
1214
|
if (r) {
|
1215
1215
|
const a = vn(n);
|
@@ -1220,7 +1220,7 @@ function Hi(e, t) {
|
|
1220
1220
|
return;
|
1221
1221
|
}
|
1222
1222
|
const i = Math.floor(Date.now() / Bi) - ta, o = (a) => {
|
1223
|
-
const s = st + a.toString(), u =
|
1223
|
+
const s = st + a.toString(), u = In(n, s);
|
1224
1224
|
if (typeof u == "string") {
|
1225
1225
|
try {
|
1226
1226
|
const c = JSON.parse(u);
|
@@ -1292,7 +1292,7 @@ function ia(e, t) {
|
|
1292
1292
|
}
|
1293
1293
|
t.lastModified && !ra(e, t.lastModified) || Object.keys(t.icons).length && (t.not_found && (t = Object.assign({}, t), delete t.not_found), n("local") || n("session"));
|
1294
1294
|
}
|
1295
|
-
function
|
1295
|
+
function Tr() {
|
1296
1296
|
}
|
1297
1297
|
function oa(e) {
|
1298
1298
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
@@ -1305,7 +1305,7 @@ function la(e, t) {
|
|
1305
1305
|
const { provider: n, prefix: r } = e, i = e.iconsToLoad;
|
1306
1306
|
delete e.iconsToLoad;
|
1307
1307
|
let o;
|
1308
|
-
if (!i || !(o =
|
1308
|
+
if (!i || !(o = Tn(n)))
|
1309
1309
|
return;
|
1310
1310
|
o.prepare(n, r, i).forEach((a) => {
|
1311
1311
|
ea(n, a, (s) => {
|
@@ -1342,7 +1342,7 @@ const aa = (e, t) => {
|
|
1342
1342
|
r.loaded,
|
1343
1343
|
r.missing,
|
1344
1344
|
r.pending,
|
1345
|
-
|
1345
|
+
Tr
|
1346
1346
|
);
|
1347
1347
|
}), () => {
|
1348
1348
|
s = !1;
|
@@ -1363,7 +1363,7 @@ const aa = (e, t) => {
|
|
1363
1363
|
}), o.forEach((s) => {
|
1364
1364
|
const { provider: u, prefix: c } = s;
|
1365
1365
|
i[u][c].length && la(s, i[u][c]);
|
1366
|
-
}), t ? Zl(t, r, o) :
|
1366
|
+
}), t ? Zl(t, r, o) : Tr;
|
1367
1367
|
};
|
1368
1368
|
function ua(e, t) {
|
1369
1369
|
const n = {
|
@@ -1457,7 +1457,7 @@ const $i = {
|
|
1457
1457
|
backgroundColor: "currentColor"
|
1458
1458
|
}, Vi = {
|
1459
1459
|
backgroundColor: "transparent"
|
1460
|
-
},
|
1460
|
+
}, Ir = {
|
1461
1461
|
Image: "var(--svg)",
|
1462
1462
|
Repeat: "no-repeat",
|
1463
1463
|
Size: "100% 100%"
|
@@ -1468,8 +1468,8 @@ const $i = {
|
|
1468
1468
|
};
|
1469
1469
|
for (const e in kr) {
|
1470
1470
|
const t = kr[e];
|
1471
|
-
for (const n in
|
1472
|
-
t[e + n] =
|
1471
|
+
for (const n in Ir)
|
1472
|
+
t[e + n] = Ir[n];
|
1473
1473
|
}
|
1474
1474
|
const ba = {
|
1475
1475
|
...$i,
|
@@ -1528,10 +1528,10 @@ const wa = (e, t, n, r) => {
|
|
1528
1528
|
__html: ya(Pl(c.body, v ? () => v + "ID" + w++ : "iconifyReact"))
|
1529
1529
|
}, ue.createElement("svg", u);
|
1530
1530
|
}
|
1531
|
-
const { body: m, width: f, height:
|
1531
|
+
const { body: m, width: f, height: T } = e, b = l === "mask" || (l === "bg" ? !1 : m.indexOf("currentColor") !== -1), S = fa(m, {
|
1532
1532
|
...p,
|
1533
1533
|
width: f + "",
|
1534
|
-
height:
|
1534
|
+
height: T + ""
|
1535
1535
|
});
|
1536
1536
|
return u.style = {
|
1537
1537
|
...a,
|
@@ -1666,7 +1666,7 @@ class Wi extends ue.Component {
|
|
1666
1666
|
}, r, t._inline, t._ref);
|
1667
1667
|
}
|
1668
1668
|
}
|
1669
|
-
const
|
1669
|
+
const Ae = ue.forwardRef(function(t, n) {
|
1670
1670
|
const r = {
|
1671
1671
|
...t,
|
1672
1672
|
_ref: n,
|
@@ -1730,7 +1730,7 @@ function Vn(e) {
|
|
1730
1730
|
"aria-label": jr["popup.buttons.close"],
|
1731
1731
|
type: "button",
|
1732
1732
|
children: /* @__PURE__ */ D.jsx(
|
1733
|
-
|
1733
|
+
Ae,
|
1734
1734
|
{
|
1735
1735
|
style: {
|
1736
1736
|
color: "#707070",
|
@@ -1867,7 +1867,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1867
1867
|
n === void 0 && (n = !0);
|
1868
1868
|
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", l = o || n && t && e(t.parentNode);
|
1869
1869
|
return l;
|
1870
|
-
},
|
1870
|
+
}, Ta = function(t) {
|
1871
1871
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
1872
1872
|
return r === "" || r === "true";
|
1873
1873
|
}, Ji = function(t, n, r) {
|
@@ -1906,8 +1906,8 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1906
1906
|
}, Ce = function(t) {
|
1907
1907
|
if (!t)
|
1908
1908
|
throw new Error("No node provided");
|
1909
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
1910
|
-
},
|
1909
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ta(t)) && !to(t) ? 0 : t.tabIndex;
|
1910
|
+
}, Ia = function(t, n) {
|
1911
1911
|
var r = Ce(t);
|
1912
1912
|
return r < 0 && n && !to(t) ? 0 : r;
|
1913
1913
|
}, ka = function(t, n) {
|
@@ -2010,7 +2010,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2010
2010
|
}, Fa = function e(t) {
|
2011
2011
|
var n = [], r = [];
|
2012
2012
|
return t.forEach(function(i, o) {
|
2013
|
-
var l = !!i.scopeParent, a = l ? i.scopeParent : i, s =
|
2013
|
+
var l = !!i.scopeParent, a = l ? i.scopeParent : i, s = Ia(a, l), u = l ? e(i.candidates) : a;
|
2014
2014
|
s === 0 ? l ? n.push.apply(n, u) : n.push(a) : r.push({
|
2015
2015
|
documentOrder: o,
|
2016
2016
|
tabIndex: s,
|
@@ -2038,7 +2038,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2038
2038
|
flatten: !0,
|
2039
2039
|
getShadowRoot: n.getShadowRoot
|
2040
2040
|
}) : r = Ji(t, n.includeContainer, Pt.bind(null, n)), r;
|
2041
|
-
},
|
2041
|
+
}, Le = function(t, n) {
|
2042
2042
|
if (n = n || {}, !t)
|
2043
2043
|
throw new Error("No node provided");
|
2044
2044
|
return _e.call(t, Ot) === !1 ? !1 : En(n, t);
|
@@ -2052,7 +2052,7 @@ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2052
2052
|
focusable: io,
|
2053
2053
|
getTabIndex: Ce,
|
2054
2054
|
isFocusable: Et,
|
2055
|
-
isTabbable:
|
2055
|
+
isTabbable: Le,
|
2056
2056
|
tabbable: ro
|
2057
2057
|
}, Symbol.toStringTag, { value: "Module" }));
|
2058
2058
|
/*!
|
@@ -2230,9 +2230,9 @@ var Ar = {
|
|
2230
2230
|
}, m = function() {
|
2231
2231
|
if (l.containerGroups = l.containers.map(function(M) {
|
2232
2232
|
var N = ro(M, o.tabbableOptions), C = io(M, o.tabbableOptions), z = N.length > 0 ? N[0] : void 0, F = N.length > 0 ? N[N.length - 1] : void 0, Y = C.find(function(d) {
|
2233
|
-
return
|
2233
|
+
return Le(d);
|
2234
2234
|
}), V = C.slice().reverse().find(function(d) {
|
2235
|
-
return
|
2235
|
+
return Le(d);
|
2236
2236
|
}), X = !!N.find(function(d) {
|
2237
2237
|
return Ce(d) > 0;
|
2238
2238
|
});
|
@@ -2268,9 +2268,9 @@ var Ar = {
|
|
2268
2268
|
nextTabbableNode: function(ne) {
|
2269
2269
|
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = N.indexOf(ne);
|
2270
2270
|
return h < 0 ? le ? C.slice(C.indexOf(ne) + 1).find(function(re) {
|
2271
|
-
return
|
2271
|
+
return Le(re);
|
2272
2272
|
}) : C.slice(0, C.indexOf(ne)).reverse().find(function(re) {
|
2273
|
-
return
|
2273
|
+
return Le(re);
|
2274
2274
|
}) : N[h + (le ? 1 : -1)];
|
2275
2275
|
}
|
2276
2276
|
};
|
@@ -2286,7 +2286,7 @@ var Ar = {
|
|
2286
2286
|
var N = M.activeElement;
|
2287
2287
|
if (N)
|
2288
2288
|
return N.shadowRoot && N.shadowRoot.activeElement !== null ? E(N.shadowRoot) : N;
|
2289
|
-
},
|
2289
|
+
}, T = function E(M) {
|
2290
2290
|
if (M !== !1 && M !== f(document)) {
|
2291
2291
|
if (!M || !M.focus) {
|
2292
2292
|
E(p());
|
@@ -2312,7 +2312,7 @@ var Ar = {
|
|
2312
2312
|
var se = W.firstTabbableNode;
|
2313
2313
|
return N === se;
|
2314
2314
|
});
|
2315
|
-
if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !
|
2315
|
+
if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
|
2316
2316
|
var ne = d === 0 ? l.tabbableGroups.length - 1 : d - 1, le = l.tabbableGroups[ne];
|
2317
2317
|
Y = Ce(N) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
|
2318
2318
|
} else
|
@@ -2322,7 +2322,7 @@ var Ar = {
|
|
2322
2322
|
var se = W.lastTabbableNode;
|
2323
2323
|
return N === se;
|
2324
2324
|
});
|
2325
|
-
if (h < 0 && (X.container === N || Et(N, o.tabbableOptions) && !
|
2325
|
+
if (h < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Le(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
|
2326
2326
|
var re = h === l.tabbableGroups.length - 1 ? 0 : h + 1, te = l.tabbableGroups[re];
|
2327
2327
|
Y = Ce(N) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
|
2328
2328
|
} else
|
@@ -2377,7 +2377,7 @@ var Ar = {
|
|
2377
2377
|
// outside the trap causing the focus escape we're trying to fix)
|
2378
2378
|
target: l.mostRecentlyFocusedNode,
|
2379
2379
|
isBackward: o.isKeyBackward(l.recentNavEvent)
|
2380
|
-
})),
|
2380
|
+
})), T(z || l.mostRecentlyFocusedNode || p());
|
2381
2381
|
}
|
2382
2382
|
l.recentNavEvent = void 0;
|
2383
2383
|
}, j = function(M) {
|
@@ -2387,7 +2387,7 @@ var Ar = {
|
|
2387
2387
|
event: M,
|
2388
2388
|
isBackward: N
|
2389
2389
|
});
|
2390
|
-
C && (it(M) && M.preventDefault(),
|
2390
|
+
C && (it(M) && M.preventDefault(), T(C));
|
2391
2391
|
}, B = function(M) {
|
2392
2392
|
if (Ha(M) && Ke(o.escapeDeactivates, M) !== !1) {
|
2393
2393
|
M.preventDefault(), a.deactivate();
|
@@ -2400,8 +2400,8 @@ var Ar = {
|
|
2400
2400
|
}, y = function() {
|
2401
2401
|
if (l.active)
|
2402
2402
|
return Ar.activateTrap(i, a), l.delayInitialFocusTimer = o.delayInitialFocus ? Or(function() {
|
2403
|
-
|
2404
|
-
}) :
|
2403
|
+
T(p());
|
2404
|
+
}) : T(p()), r.addEventListener("focusin", v, !0), r.addEventListener("mousedown", w, {
|
2405
2405
|
capture: !0,
|
2406
2406
|
passive: !1
|
2407
2407
|
}), r.addEventListener("touchstart", w, {
|
@@ -2424,7 +2424,7 @@ var Ar = {
|
|
2424
2424
|
return F === l.mostRecentlyFocusedNode;
|
2425
2425
|
});
|
2426
2426
|
});
|
2427
|
-
N &&
|
2427
|
+
N && T(p());
|
2428
2428
|
}, Q = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(U) : void 0, q = function() {
|
2429
2429
|
Q && (Q.disconnect(), l.active && !l.paused && l.containers.map(function(M) {
|
2430
2430
|
Q.observe(M, {
|
@@ -2463,7 +2463,7 @@ var Ar = {
|
|
2463
2463
|
C == null || C();
|
2464
2464
|
var V = function() {
|
2465
2465
|
Or(function() {
|
2466
|
-
Y &&
|
2466
|
+
Y && T(b(l.nodeFocusedBeforeActivation)), z == null || z();
|
2467
2467
|
});
|
2468
2468
|
};
|
2469
2469
|
return Y && F ? (F(b(l.nodeFocusedBeforeActivation)).then(V, V), this) : (V(), this);
|
@@ -2491,7 +2491,7 @@ var Ar = {
|
|
2491
2491
|
const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2492
2492
|
__proto__: null,
|
2493
2493
|
createFocusTrap: Wa
|
2494
|
-
}, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */
|
2494
|
+
}, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ Ti(Za), Xa = /* @__PURE__ */ Ti(_a);
|
2495
2495
|
function He(e) {
|
2496
2496
|
"@babel/helpers - typeof";
|
2497
2497
|
return He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
@@ -2583,7 +2583,7 @@ function ou(e, t) {
|
|
2583
2583
|
}
|
2584
2584
|
return (t === "string" ? String : Number)(e);
|
2585
2585
|
}
|
2586
|
-
var
|
2586
|
+
var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusable, Zn = /* @__PURE__ */ function(e) {
|
2587
2587
|
eu(n, e);
|
2588
2588
|
var t = tu(n);
|
2589
2589
|
function n(r) {
|
@@ -2602,8 +2602,8 @@ var It = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2602
2602
|
}
|
2603
2603
|
var f = u;
|
2604
2604
|
if (typeof u == "string") {
|
2605
|
-
var
|
2606
|
-
if (f = (
|
2605
|
+
var T;
|
2606
|
+
if (f = (T = this.getDocument()) === null || T === void 0 ? void 0 : T.querySelector(u), !f)
|
2607
2607
|
throw new Error("`".concat(a, "` as selector refers to no known node"));
|
2608
2608
|
}
|
2609
2609
|
return f;
|
@@ -2755,14 +2755,14 @@ var It = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2755
2755
|
}, {
|
2756
2756
|
key: "render",
|
2757
2757
|
value: function() {
|
2758
|
-
var i = this, o = this.props.children ?
|
2758
|
+
var i = this, o = this.props.children ? Tt.Children.only(this.props.children) : void 0;
|
2759
2759
|
if (o) {
|
2760
|
-
if (o.type && o.type ===
|
2760
|
+
if (o.type && o.type === Tt.Fragment)
|
2761
2761
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
2762
2762
|
var l = function(u) {
|
2763
2763
|
var c = i.props.containerElements;
|
2764
2764
|
o && (typeof o.ref == "function" ? o.ref(u) : o.ref && (o.ref.current = u)), i.focusTrapElements = c || [u];
|
2765
|
-
}, a =
|
2765
|
+
}, a = Tt.cloneElement(o, {
|
2766
2766
|
ref: l
|
2767
2767
|
});
|
2768
2768
|
return a;
|
@@ -2770,7 +2770,7 @@ var It = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2770
2770
|
return null;
|
2771
2771
|
}
|
2772
2772
|
}]), n;
|
2773
|
-
}(
|
2773
|
+
}(Tt.Component), Je = typeof Element > "u" ? Function : Element;
|
2774
2774
|
Zn.propTypes = {
|
2775
2775
|
active: P.bool,
|
2776
2776
|
paused: P.bool,
|
@@ -2847,7 +2847,7 @@ function Bt({
|
|
2847
2847
|
isNormalSize: r,
|
2848
2848
|
isMounted: i
|
2849
2849
|
}) {
|
2850
|
-
const o = pt(hu), l =
|
2850
|
+
const o = pt(hu), l = Fe(null);
|
2851
2851
|
return du(l), /* @__PURE__ */ D.jsx(
|
2852
2852
|
pu,
|
2853
2853
|
{
|
@@ -2945,7 +2945,7 @@ function lo({ onClose: e, configurations: t }) {
|
|
2945
2945
|
},
|
2946
2946
|
onClick: e,
|
2947
2947
|
children: /* @__PURE__ */ D.jsx(
|
2948
|
-
|
2948
|
+
Ae,
|
2949
2949
|
{
|
2950
2950
|
icon: "material-symbols:close",
|
2951
2951
|
alt: "Close",
|
@@ -2967,37 +2967,40 @@ lo.propTypes = {
|
|
2967
2967
|
function Qt({
|
2968
2968
|
loading: e,
|
2969
2969
|
inputRef: t,
|
2970
|
-
|
2971
|
-
|
2972
|
-
|
2973
|
-
|
2974
|
-
|
2975
|
-
|
2976
|
-
|
2970
|
+
hasError: n,
|
2971
|
+
userInput: r,
|
2972
|
+
handleSend: i,
|
2973
|
+
handleInput: o,
|
2974
|
+
handleChange: l,
|
2975
|
+
handleKeyDown: a,
|
2976
|
+
containerStyle: s,
|
2977
|
+
configurations: u
|
2977
2978
|
}) {
|
2978
|
-
return
|
2979
|
+
return ye(() => {
|
2980
|
+
var c;
|
2981
|
+
(c = t == null ? void 0 : t.current) == null || c.focus();
|
2982
|
+
}, [e, n, t]), /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: s, children: [
|
2979
2983
|
/* @__PURE__ */ D.jsx(
|
2980
2984
|
"textarea",
|
2981
2985
|
{
|
2982
2986
|
disabled: e,
|
2983
|
-
value:
|
2987
|
+
value: r,
|
2984
2988
|
ref: t,
|
2985
|
-
onInput:
|
2986
|
-
onChange:
|
2989
|
+
onInput: o,
|
2990
|
+
onChange: l,
|
2987
2991
|
placeholder: "Write a message",
|
2988
2992
|
cols: "5",
|
2989
2993
|
rows: "1",
|
2990
2994
|
maxLength: "150",
|
2991
|
-
onKeyDown:
|
2995
|
+
onKeyDown: a,
|
2992
2996
|
style: {
|
2993
|
-
outlineColor:
|
2997
|
+
outlineColor: u.primaryColor,
|
2994
2998
|
width: "100%",
|
2995
2999
|
minHeight: "3.25rem",
|
2996
3000
|
borderRadius: "1rem",
|
2997
3001
|
padding: "12.5px 45px 12.5px 12.5px",
|
2998
3002
|
fontFamily: "inherit",
|
2999
|
-
fontSize: "
|
3000
|
-
// required to avoid IOS mobile scaling when input is focused
|
3003
|
+
fontSize: ".9rem",
|
3001
3004
|
fontWeight: "300",
|
3002
3005
|
lineHeight: "1.56rem",
|
3003
3006
|
boxSizing: "border-box",
|
@@ -3010,11 +3013,11 @@ function Qt({
|
|
3010
3013
|
{
|
3011
3014
|
disabled: e,
|
3012
3015
|
className: "xpert-chatbot-popup__input--send-btn",
|
3013
|
-
onClick: (
|
3014
|
-
|
3016
|
+
onClick: (c) => {
|
3017
|
+
c.preventDefault(), i(r);
|
3015
3018
|
},
|
3016
3019
|
"aria-label": "Send message",
|
3017
|
-
children: /* @__PURE__ */ D.jsx(
|
3020
|
+
children: /* @__PURE__ */ D.jsx(Ae, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
3018
3021
|
}
|
3019
3022
|
)
|
3020
3023
|
] });
|
@@ -3022,6 +3025,7 @@ function Qt({
|
|
3022
3025
|
Qt.propTypes = {
|
3023
3026
|
loading: g.bool.isRequired,
|
3024
3027
|
inputRef: g.shape({ current: g.instanceOf(Object) }).isRequired,
|
3028
|
+
hasError: g.bool.isRequired,
|
3025
3029
|
handleSend: g.func.isRequired,
|
3026
3030
|
userInput: g.string.isRequired,
|
3027
3031
|
handleInput: g.func.isRequired,
|
@@ -3075,7 +3079,7 @@ function ao({
|
|
3075
3079
|
className: "xpert-chatbot-popup__disclaimer--instruction",
|
3076
3080
|
children: [
|
3077
3081
|
/* @__PURE__ */ D.jsx("div", { className: "xpert-chatbot-popup__disclaimer__compass-icon", children: /* @__PURE__ */ D.jsx(
|
3078
|
-
|
3082
|
+
Ae,
|
3079
3083
|
{
|
3080
3084
|
icon: yu[c.icon],
|
3081
3085
|
style: { fontSize: "1.75rem" }
|
@@ -3154,7 +3158,7 @@ ao.propTypes = {
|
|
3154
3158
|
}).isRequired
|
3155
3159
|
};
|
3156
3160
|
function uo({ disableScroll: e }) {
|
3157
|
-
const t =
|
3161
|
+
const t = Fe(null);
|
3158
3162
|
return ye(() => {
|
3159
3163
|
var n;
|
3160
3164
|
e || (n = t.current) == null || n.scrollIntoView({
|
@@ -3179,7 +3183,7 @@ uo.propTypes = {
|
|
3179
3183
|
disableScroll: g.bool
|
3180
3184
|
};
|
3181
3185
|
const so = () => {
|
3182
|
-
const e =
|
3186
|
+
const e = Fe(null);
|
3183
3187
|
return ye(() => {
|
3184
3188
|
var t;
|
3185
3189
|
(t = e.current) == null || t.scrollIntoView({
|
@@ -3203,7 +3207,7 @@ const so = () => {
|
|
3203
3207
|
ref: e,
|
3204
3208
|
children: [
|
3205
3209
|
/* @__PURE__ */ D.jsx(
|
3206
|
-
|
3210
|
+
Ae,
|
3207
3211
|
{
|
3208
3212
|
icon: "material-symbols:thunderstorm",
|
3209
3213
|
style: {
|
@@ -3328,7 +3332,7 @@ xe.prototype.line = null;
|
|
3328
3332
|
xe.prototype.source = null;
|
3329
3333
|
xe.prototype.ruleId = null;
|
3330
3334
|
xe.prototype.position = null;
|
3331
|
-
const
|
3335
|
+
const Te = { basename: wu, dirname: Du, extname: Nu, join: Tu, sep: "/" };
|
3332
3336
|
function wu(e, t) {
|
3333
3337
|
if (t !== void 0 && typeof t != "string")
|
3334
3338
|
throw new TypeError('"ext" argument must be a string');
|
@@ -3390,13 +3394,13 @@ function Nu(e) {
|
|
3390
3394
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
3391
3395
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
3392
3396
|
}
|
3393
|
-
function
|
3397
|
+
function Tu(...e) {
|
3394
3398
|
let t = -1, n;
|
3395
3399
|
for (; ++t < e.length; )
|
3396
3400
|
ft(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
3397
|
-
return n === void 0 ? "." :
|
3401
|
+
return n === void 0 ? "." : Iu(n);
|
3398
3402
|
}
|
3399
|
-
function
|
3403
|
+
function Iu(e) {
|
3400
3404
|
ft(e);
|
3401
3405
|
const t = e.charCodeAt(0) === 47;
|
3402
3406
|
let n = ku(e, !t);
|
@@ -3546,7 +3550,7 @@ class po {
|
|
3546
3550
|
* Get the parent path (example: `'~'`).
|
3547
3551
|
*/
|
3548
3552
|
get dirname() {
|
3549
|
-
return typeof this.path == "string" ?
|
3553
|
+
return typeof this.path == "string" ? Te.dirname(this.path) : void 0;
|
3550
3554
|
}
|
3551
3555
|
/**
|
3552
3556
|
* Set the parent path (example: `'~'`).
|
@@ -3554,13 +3558,13 @@ class po {
|
|
3554
3558
|
* Cannot be set if there’s no `path` yet.
|
3555
3559
|
*/
|
3556
3560
|
set dirname(t) {
|
3557
|
-
_r(this.basename, "dirname"), this.path =
|
3561
|
+
_r(this.basename, "dirname"), this.path = Te.join(t || "", this.basename);
|
3558
3562
|
}
|
3559
3563
|
/**
|
3560
3564
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
3561
3565
|
*/
|
3562
3566
|
get basename() {
|
3563
|
-
return typeof this.path == "string" ?
|
3567
|
+
return typeof this.path == "string" ? Te.basename(this.path) : void 0;
|
3564
3568
|
}
|
3565
3569
|
/**
|
3566
3570
|
* Set basename (including extname) (`'index.min.js'`).
|
@@ -3570,13 +3574,13 @@ class po {
|
|
3570
3574
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3571
3575
|
*/
|
3572
3576
|
set basename(t) {
|
3573
|
-
dn(t, "basename"), fn(t, "basename"), this.path =
|
3577
|
+
dn(t, "basename"), fn(t, "basename"), this.path = Te.join(this.dirname || "", t);
|
3574
3578
|
}
|
3575
3579
|
/**
|
3576
3580
|
* Get the extname (including dot) (example: `'.js'`).
|
3577
3581
|
*/
|
3578
3582
|
get extname() {
|
3579
|
-
return typeof this.path == "string" ?
|
3583
|
+
return typeof this.path == "string" ? Te.extname(this.path) : void 0;
|
3580
3584
|
}
|
3581
3585
|
/**
|
3582
3586
|
* Set the extname (including dot) (example: `'.js'`).
|
@@ -3592,13 +3596,13 @@ class po {
|
|
3592
3596
|
if (t.includes(".", 1))
|
3593
3597
|
throw new Error("`extname` cannot contain multiple dots");
|
3594
3598
|
}
|
3595
|
-
this.path =
|
3599
|
+
this.path = Te.join(this.dirname, this.stem + (t || ""));
|
3596
3600
|
}
|
3597
3601
|
/**
|
3598
3602
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
3599
3603
|
*/
|
3600
3604
|
get stem() {
|
3601
|
-
return typeof this.path == "string" ?
|
3605
|
+
return typeof this.path == "string" ? Te.basename(this.path, this.extname) : void 0;
|
3602
3606
|
}
|
3603
3607
|
/**
|
3604
3608
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -3608,7 +3612,7 @@ class po {
|
|
3608
3612
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3609
3613
|
*/
|
3610
3614
|
set stem(t) {
|
3611
|
-
dn(t, "stem"), fn(t, "stem"), this.path =
|
3615
|
+
dn(t, "stem"), fn(t, "stem"), this.path = Te.join(this.dirname || "", t + (this.extname || ""));
|
3612
3616
|
}
|
3613
3617
|
/**
|
3614
3618
|
* Serialize the file.
|
@@ -3688,9 +3692,9 @@ class po {
|
|
3688
3692
|
}
|
3689
3693
|
}
|
3690
3694
|
function fn(e, t) {
|
3691
|
-
if (e && e.includes(
|
3695
|
+
if (e && e.includes(Te.sep))
|
3692
3696
|
throw new Error(
|
3693
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
3697
|
+
"`" + t + "` cannot be a path: did not expect `" + Te.sep + "`"
|
3694
3698
|
);
|
3695
3699
|
}
|
3696
3700
|
function dn(e, t) {
|
@@ -3810,7 +3814,7 @@ const Lu = go().freeze(), ho = {}.hasOwnProperty;
|
|
3810
3814
|
function go() {
|
3811
3815
|
const e = Ou(), t = [];
|
3812
3816
|
let n = {}, r, i = -1;
|
3813
|
-
return o.data = l, o.Parser = void 0, o.Compiler = void 0, o.freeze = a, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync =
|
3817
|
+
return o.data = l, o.Parser = void 0, o.Compiler = void 0, o.freeze = a, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync = T, o;
|
3814
3818
|
function o() {
|
3815
3819
|
const b = go();
|
3816
3820
|
let S = -1;
|
@@ -3927,7 +3931,7 @@ function go() {
|
|
3927
3931
|
}
|
3928
3932
|
}
|
3929
3933
|
}
|
3930
|
-
function
|
3934
|
+
function T(b) {
|
3931
3935
|
let S;
|
3932
3936
|
o.freeze(), hn("processSync", o.Parser), gn("processSync", o.Compiler);
|
3933
3937
|
const w = et(b);
|
@@ -4056,7 +4060,7 @@ function Hu(e, t) {
|
|
4056
4060
|
(t[n].add === "after" ? e : r).push(t[n]);
|
4057
4061
|
ke(e, 0, 0, r);
|
4058
4062
|
}
|
4059
|
-
const qu = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,
|
4063
|
+
const qu = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Ie = Oe(/[A-Za-z]/), me = Oe(/[\dA-Za-z]/), $u = Oe(/[#-'*+\--9=?A-Z^-~]/);
|
4060
4064
|
function zn(e) {
|
4061
4065
|
return (
|
4062
4066
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -4064,7 +4068,7 @@ function zn(e) {
|
|
4064
4068
|
e !== null && (e < 32 || e === 127)
|
4065
4069
|
);
|
4066
4070
|
}
|
4067
|
-
const Ln =
|
4071
|
+
const Ln = Oe(/\d/), Vu = Oe(/[\dA-Fa-f]/), Wu = Oe(/[!-/:-@[-`{-~]/);
|
4068
4072
|
function R(e) {
|
4069
4073
|
return e !== null && e < -2;
|
4070
4074
|
}
|
@@ -4074,8 +4078,8 @@ function de(e) {
|
|
4074
4078
|
function Z(e) {
|
4075
4079
|
return e === -2 || e === -1 || e === 32;
|
4076
4080
|
}
|
4077
|
-
const Zu =
|
4078
|
-
function
|
4081
|
+
const Zu = Oe(qu), Gu = Oe(/\s/);
|
4082
|
+
function Oe(e) {
|
4079
4083
|
return t;
|
4080
4084
|
function t(n) {
|
4081
4085
|
return n !== null && e.test(String.fromCharCode(n));
|
@@ -4176,7 +4180,7 @@ function es(e) {
|
|
4176
4180
|
if (!i)
|
4177
4181
|
return m(j);
|
4178
4182
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
4179
|
-
return
|
4183
|
+
return T(j);
|
4180
4184
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
4181
4185
|
}
|
4182
4186
|
return t.containerState = {}, e.check(
|
@@ -4189,19 +4193,19 @@ function es(e) {
|
|
4189
4193
|
return i && v(), w(r), m(j);
|
4190
4194
|
}
|
4191
4195
|
function p(j) {
|
4192
|
-
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset,
|
4196
|
+
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, T(j);
|
4193
4197
|
}
|
4194
4198
|
function m(j) {
|
4195
4199
|
return t.containerState = {}, e.attempt(
|
4196
4200
|
Jr,
|
4197
4201
|
f,
|
4198
|
-
|
4202
|
+
T
|
4199
4203
|
)(j);
|
4200
4204
|
}
|
4201
4205
|
function f(j) {
|
4202
4206
|
return r++, n.push([t.currentConstruct, t.containerState]), m(j);
|
4203
4207
|
}
|
4204
|
-
function
|
4208
|
+
function T(j) {
|
4205
4209
|
if (j === null) {
|
4206
4210
|
i && v(), w(0), e.consume(j);
|
4207
4211
|
return;
|
@@ -4377,7 +4381,7 @@ function os(e, t, n) {
|
|
4377
4381
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
|
4378
4382
|
}
|
4379
4383
|
function o(f) {
|
4380
|
-
return
|
4384
|
+
return Ie(f) ? (e.consume(f), l) : u(f);
|
4381
4385
|
}
|
4382
4386
|
function l(f) {
|
4383
4387
|
return f === 43 || f === 45 || f === 46 || me(f) ? (r = 1, a(f)) : u(f);
|
@@ -4399,8 +4403,8 @@ function os(e, t, n) {
|
|
4399
4403
|
}
|
4400
4404
|
function m(f) {
|
4401
4405
|
if ((f === 45 || me(f)) && r++ < 63) {
|
4402
|
-
const
|
4403
|
-
return e.consume(f),
|
4406
|
+
const T = f === 45 ? m : p;
|
4407
|
+
return e.consume(f), T;
|
4404
4408
|
}
|
4405
4409
|
return n(f);
|
4406
4410
|
}
|
@@ -4541,10 +4545,10 @@ function fs(e, t, n) {
|
|
4541
4545
|
function f(y) {
|
4542
4546
|
return y === null || R(y) ? p(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
4543
4547
|
contentType: "string"
|
4544
|
-
}),
|
4548
|
+
}), T(y));
|
4545
4549
|
}
|
4546
|
-
function
|
4547
|
-
return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(y)) : y === 96 && y === a ? n(y) : (e.consume(y),
|
4550
|
+
function T(y) {
|
4551
|
+
return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(y)) : y === 96 && y === a ? n(y) : (e.consume(y), T);
|
4548
4552
|
}
|
4549
4553
|
function b(y) {
|
4550
4554
|
return e.attempt(i, B, S)(y);
|
@@ -4706,7 +4710,7 @@ function ws(e, t) {
|
|
4706
4710
|
const n = e[t][1], r = e[t][2];
|
4707
4711
|
let i = t - 1;
|
4708
4712
|
const o = [], l = n._tokenizer || r.parser[n.contentType](n.start), a = l.events, s = [], u = {};
|
4709
|
-
let c, p, m = -1, f = n,
|
4713
|
+
let c, p, m = -1, f = n, T = 0, b = 0;
|
4710
4714
|
const S = [b];
|
4711
4715
|
for (; f; ) {
|
4712
4716
|
for (; e[++i][1] !== f; )
|
@@ -4721,20 +4725,20 @@ function ws(e, t) {
|
|
4721
4725
|
s.unshift([v, v + w.length - 1]), ke(e, v, 2, w);
|
4722
4726
|
}
|
4723
4727
|
for (m = -1; ++m < s.length; )
|
4724
|
-
u[
|
4728
|
+
u[T + s[m][0]] = T + s[m][1], T += s[m][1] - s[m][0] - 1;
|
4725
4729
|
return u;
|
4726
4730
|
}
|
4727
4731
|
const Ds = {
|
4728
|
-
tokenize:
|
4729
|
-
resolve:
|
4732
|
+
tokenize: Is,
|
4733
|
+
resolve: Ts
|
4730
4734
|
}, Ns = {
|
4731
4735
|
tokenize: ks,
|
4732
4736
|
partial: !0
|
4733
4737
|
};
|
4734
|
-
function
|
4738
|
+
function Ts(e) {
|
4735
4739
|
return bo(e), e;
|
4736
4740
|
}
|
4737
|
-
function
|
4741
|
+
function Is(e, t) {
|
4738
4742
|
let n;
|
4739
4743
|
return r;
|
4740
4744
|
function r(a) {
|
@@ -4787,9 +4791,9 @@ function wo(e, t, n, r, i, o, l, a, s) {
|
|
4787
4791
|
}), f(w));
|
4788
4792
|
}
|
4789
4793
|
function f(w) {
|
4790
|
-
return w === 62 ? (e.exit("chunkString"), e.exit(a), m(w)) : w === null || w === 60 || R(w) ? n(w) : (e.consume(w), w === 92 ?
|
4794
|
+
return w === 62 ? (e.exit("chunkString"), e.exit(a), m(w)) : w === null || w === 60 || R(w) ? n(w) : (e.consume(w), w === 92 ? T : f);
|
4791
4795
|
}
|
4792
|
-
function
|
4796
|
+
function T(w) {
|
4793
4797
|
return w === 60 || w === 62 || w === 92 ? (e.consume(w), f) : f(w);
|
4794
4798
|
}
|
4795
4799
|
function b(w) {
|
@@ -5087,20 +5091,20 @@ function Bs(e, t, n) {
|
|
5087
5091
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
|
5088
5092
|
}
|
5089
5093
|
function p(h) {
|
5090
|
-
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) :
|
5094
|
+
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) : Ie(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
|
5091
5095
|
}
|
5092
5096
|
function m(h) {
|
5093
|
-
return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0,
|
5097
|
+
return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0, T) : Ie(h) ? (e.consume(h), i = 4, r.interrupt ? t : d) : n(h);
|
5094
5098
|
}
|
5095
5099
|
function f(h) {
|
5096
5100
|
return h === 45 ? (e.consume(h), r.interrupt ? t : d) : n(h);
|
5097
5101
|
}
|
5098
|
-
function
|
5102
|
+
function T(h) {
|
5099
5103
|
const re = "CDATA[";
|
5100
|
-
return h === re.charCodeAt(a++) ? (e.consume(h), a === re.length ? r.interrupt ? t : M :
|
5104
|
+
return h === re.charCodeAt(a++) ? (e.consume(h), a === re.length ? r.interrupt ? t : M : T) : n(h);
|
5101
5105
|
}
|
5102
5106
|
function b(h) {
|
5103
|
-
return
|
5107
|
+
return Ie(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
|
5104
5108
|
}
|
5105
5109
|
function S(h) {
|
5106
5110
|
if (h === null || h === 47 || h === 62 || de(h)) {
|
@@ -5116,7 +5120,7 @@ function Bs(e, t, n) {
|
|
5116
5120
|
return Z(h) ? (e.consume(h), v) : q(h);
|
5117
5121
|
}
|
5118
5122
|
function j(h) {
|
5119
|
-
return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 ||
|
5123
|
+
return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 || Ie(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), j) : q(h);
|
5120
5124
|
}
|
5121
5125
|
function B(h) {
|
5122
5126
|
return h === 45 || h === 46 || h === 58 || h === 95 || me(h) ? (e.consume(h), B) : _(h);
|
@@ -5173,7 +5177,7 @@ function Bs(e, t, n) {
|
|
5173
5177
|
const re = l.toLowerCase();
|
5174
5178
|
return oi.includes(re) ? (e.consume(h), ne) : M(h);
|
5175
5179
|
}
|
5176
|
-
return
|
5180
|
+
return Ie(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h), V) : M(h);
|
5177
5181
|
}
|
5178
5182
|
function X(h) {
|
5179
5183
|
return h === 93 ? (e.consume(h), d) : M(h);
|
@@ -5216,10 +5220,10 @@ function qs(e, t, n) {
|
|
5216
5220
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
|
5217
5221
|
}
|
5218
5222
|
function s(d) {
|
5219
|
-
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), j) :
|
5223
|
+
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), j) : Ie(d) ? (e.consume(d), U) : n(d);
|
5220
5224
|
}
|
5221
5225
|
function u(d) {
|
5222
|
-
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0,
|
5226
|
+
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, T) : Ie(d) ? (e.consume(d), v) : n(d);
|
5223
5227
|
}
|
5224
5228
|
function c(d) {
|
5225
5229
|
return d === 45 ? (e.consume(d), f) : n(d);
|
@@ -5233,9 +5237,9 @@ function qs(e, t, n) {
|
|
5233
5237
|
function f(d) {
|
5234
5238
|
return d === 62 ? F(d) : d === 45 ? m(d) : p(d);
|
5235
5239
|
}
|
5236
|
-
function
|
5240
|
+
function T(d) {
|
5237
5241
|
const ne = "CDATA[";
|
5238
|
-
return d === ne.charCodeAt(o++) ? (e.consume(d), o === ne.length ? b :
|
5242
|
+
return d === ne.charCodeAt(o++) ? (e.consume(d), o === ne.length ? b : T) : n(d);
|
5239
5243
|
}
|
5240
5244
|
function b(d) {
|
5241
5245
|
return d === null ? n(d) : d === 93 ? (e.consume(d), S) : R(d) ? (l = b, Y(d)) : (e.consume(d), b);
|
@@ -5256,7 +5260,7 @@ function qs(e, t, n) {
|
|
5256
5260
|
return d === 62 ? F(d) : j(d);
|
5257
5261
|
}
|
5258
5262
|
function _(d) {
|
5259
|
-
return
|
5263
|
+
return Ie(d) ? (e.consume(d), y) : n(d);
|
5260
5264
|
}
|
5261
5265
|
function y(d) {
|
5262
5266
|
return d === 45 || me(d) ? (e.consume(d), y) : A(d);
|
@@ -5268,7 +5272,7 @@ function qs(e, t, n) {
|
|
5268
5272
|
return d === 45 || me(d) ? (e.consume(d), U) : d === 47 || d === 62 || de(d) ? Q(d) : n(d);
|
5269
5273
|
}
|
5270
5274
|
function Q(d) {
|
5271
|
-
return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 ||
|
5275
|
+
return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 || Ie(d) ? (e.consume(d), q) : R(d) ? (l = Q, Y(d)) : Z(d) ? (e.consume(d), Q) : F(d);
|
5272
5276
|
}
|
5273
5277
|
function q(d) {
|
5274
5278
|
return d === 45 || d === 46 || d === 58 || d === 95 || me(d) ? (e.consume(d), q) : E(d);
|
@@ -5574,11 +5578,11 @@ function sc(e, t, n) {
|
|
5574
5578
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
5575
5579
|
return a;
|
5576
5580
|
function a(f) {
|
5577
|
-
const
|
5578
|
-
if (
|
5579
|
-
if (r.containerState.type || (r.containerState.type =
|
5581
|
+
const T = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
|
5582
|
+
if (T === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : Ln(f)) {
|
5583
|
+
if (r.containerState.type || (r.containerState.type = T, e.enter(T, {
|
5580
5584
|
_container: !0
|
5581
|
-
})),
|
5585
|
+
})), T === "listUnordered")
|
5582
5586
|
return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(Ct, n, u)(f) : u(f);
|
5583
5587
|
if (!r.interrupt || f === 49)
|
5584
5588
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), s(f);
|
@@ -5748,12 +5752,12 @@ function yc(e) {
|
|
5748
5752
|
}
|
5749
5753
|
}
|
5750
5754
|
const Mc = {
|
5751
|
-
resolveAll:
|
5752
|
-
}, xc =
|
5753
|
-
function
|
5755
|
+
resolveAll: Io()
|
5756
|
+
}, xc = To("string"), bc = To("text");
|
5757
|
+
function To(e) {
|
5754
5758
|
return {
|
5755
5759
|
tokenize: t,
|
5756
|
-
resolveAll:
|
5760
|
+
resolveAll: Io(
|
5757
5761
|
e === "text" ? wc : void 0
|
5758
5762
|
)
|
5759
5763
|
};
|
@@ -5788,7 +5792,7 @@ function Io(e) {
|
|
5788
5792
|
}
|
5789
5793
|
}
|
5790
5794
|
}
|
5791
|
-
function
|
5795
|
+
function Io(e) {
|
5792
5796
|
return t;
|
5793
5797
|
function t(n, r) {
|
5794
5798
|
let i = -1, o;
|
@@ -5872,7 +5876,7 @@ function Dc(e, t, n) {
|
|
5872
5876
|
parser: e,
|
5873
5877
|
sliceStream: f,
|
5874
5878
|
sliceSerialize: m,
|
5875
|
-
now:
|
5879
|
+
now: T,
|
5876
5880
|
defineSkip: b,
|
5877
5881
|
write: p
|
5878
5882
|
};
|
@@ -5882,12 +5886,12 @@ function Dc(e, t, n) {
|
|
5882
5886
|
return l = Me(l, E), S(), l[l.length - 1] !== null ? [] : (U(t, 0), u.events = Gn(o, u.events, u), u.events);
|
5883
5887
|
}
|
5884
5888
|
function m(E, M) {
|
5885
|
-
return
|
5889
|
+
return Tc(f(E), M);
|
5886
5890
|
}
|
5887
5891
|
function f(E) {
|
5888
5892
|
return Nc(l, E);
|
5889
5893
|
}
|
5890
|
-
function
|
5894
|
+
function T() {
|
5891
5895
|
const { line: E, column: M, offset: N, _index: C, _bufferIndex: z } = r;
|
5892
5896
|
return {
|
5893
5897
|
line: E,
|
@@ -5919,11 +5923,11 @@ function Dc(e, t, n) {
|
|
5919
5923
|
}
|
5920
5924
|
function j(E, M) {
|
5921
5925
|
const N = M || {};
|
5922
|
-
return N.type = E, N.start =
|
5926
|
+
return N.type = E, N.start = T(), u.events.push(["enter", N, u]), a.push(N), N;
|
5923
5927
|
}
|
5924
5928
|
function B(E) {
|
5925
5929
|
const M = a.pop();
|
5926
|
-
return M.end =
|
5930
|
+
return M.end = T(), u.events.push(["exit", M, u]), M;
|
5927
5931
|
}
|
5928
5932
|
function _(E, M) {
|
5929
5933
|
U(E, M.from);
|
@@ -5985,7 +5989,7 @@ function Dc(e, t, n) {
|
|
5985
5989
|
), E.resolveTo && (u.events = E.resolveTo(u.events, u));
|
5986
5990
|
}
|
5987
5991
|
function Q() {
|
5988
|
-
const E =
|
5992
|
+
const E = T(), M = u.previous, N = u.currentConstruct, C = u.events.length, z = Array.from(a);
|
5989
5993
|
return {
|
5990
5994
|
restore: F,
|
5991
5995
|
from: C
|
@@ -6012,7 +6016,7 @@ function Nc(e, t) {
|
|
6012
6016
|
}
|
6013
6017
|
return l;
|
6014
6018
|
}
|
6015
|
-
function
|
6019
|
+
function Tc(e, t) {
|
6016
6020
|
let n = -1;
|
6017
6021
|
const r = [];
|
6018
6022
|
let i;
|
@@ -6054,7 +6058,7 @@ function Ic(e, t) {
|
|
6054
6058
|
}
|
6055
6059
|
return r.join("");
|
6056
6060
|
}
|
6057
|
-
const
|
6061
|
+
const Ic = {
|
6058
6062
|
42: fe,
|
6059
6063
|
43: fe,
|
6060
6064
|
45: fe,
|
@@ -6111,7 +6115,7 @@ const Tc = {
|
|
6111
6115
|
attentionMarkers: Ac,
|
6112
6116
|
contentInitial: kc,
|
6113
6117
|
disable: Oc,
|
6114
|
-
document:
|
6118
|
+
document: Ic,
|
6115
6119
|
flow: jc,
|
6116
6120
|
flowInitial: vc,
|
6117
6121
|
insideSpan: Cc,
|
@@ -6247,7 +6251,7 @@ function Qc(e) {
|
|
6247
6251
|
codeTextData: E,
|
6248
6252
|
data: E,
|
6249
6253
|
codeFlowValue: E,
|
6250
|
-
definition: a(
|
6254
|
+
definition: a(ze),
|
6251
6255
|
definitionDestinationString: s,
|
6252
6256
|
definitionLabelString: s,
|
6253
6257
|
definitionTitleString: s,
|
@@ -6262,7 +6266,7 @@ function Qc(e) {
|
|
6262
6266
|
label: s,
|
6263
6267
|
link: a(Mt),
|
6264
6268
|
listItem: a(xt),
|
6265
|
-
listItemValue:
|
6269
|
+
listItemValue: T,
|
6266
6270
|
listOrdered: a(We, f),
|
6267
6271
|
listUnordered: a(We),
|
6268
6272
|
paragraph: a(ln),
|
@@ -6329,12 +6333,12 @@ function Qc(e) {
|
|
6329
6333
|
const n = {};
|
6330
6334
|
return r;
|
6331
6335
|
function r(x) {
|
6332
|
-
let
|
6336
|
+
let I = {
|
6333
6337
|
type: "root",
|
6334
6338
|
children: []
|
6335
6339
|
};
|
6336
6340
|
const O = {
|
6337
|
-
stack: [
|
6341
|
+
stack: [I],
|
6338
6342
|
tokenStack: [],
|
6339
6343
|
config: t,
|
6340
6344
|
enter: u,
|
@@ -6369,7 +6373,7 @@ function Qc(e) {
|
|
6369
6373
|
const ce = O.tokenStack[O.tokenStack.length - 1];
|
6370
6374
|
(ce[1] || ui).call(O, void 0, ce[0]);
|
6371
6375
|
}
|
6372
|
-
for (
|
6376
|
+
for (I.position = {
|
6373
6377
|
start: Se(
|
6374
6378
|
x.length > 0 ? x[0][1].start : {
|
6375
6379
|
line: 1,
|
@@ -6385,11 +6389,11 @@ function Qc(e) {
|
|
6385
6389
|
}
|
6386
6390
|
)
|
6387
6391
|
}, K = -1; ++K < t.transforms.length; )
|
6388
|
-
|
6389
|
-
return
|
6392
|
+
I = t.transforms[K](I) || I;
|
6393
|
+
return I;
|
6390
6394
|
}
|
6391
|
-
function i(x,
|
6392
|
-
let $ =
|
6395
|
+
function i(x, I, O) {
|
6396
|
+
let $ = I - 1, K = -1, ce = !1, Ne, ae, Ze, Ge;
|
6393
6397
|
for (; ++$ <= O; ) {
|
6394
6398
|
const ie = x[$];
|
6395
6399
|
if (ie[1].type === "listUnordered" || ie[1].type === "listOrdered" || ie[1].type === "blockQuote" ? (ie[0] === "enter" ? K++ : K--, Ge = void 0) : ie[1].type === "lineEndingBlank" ? ie[0] === "enter" && (Ne && !Ge && !K && !Ze && (Ze = $), Ge = void 0) : ie[1].type === "linePrefix" || ie[1].type === "listItemValue" || ie[1].type === "listItemMarker" || ie[1].type === "listItemPrefix" || ie[1].type === "listItemPrefixWhitespace" || (Ge = void 0), !K && ie[0] === "enter" && ie[1].type === "listItemPrefix" || K === -1 && ie[0] === "exit" && (ie[1].type === "listUnordered" || ie[1].type === "listOrdered")) {
|
@@ -6418,18 +6422,18 @@ function Qc(e) {
|
|
6418
6422
|
}, x.splice($, 0, ["enter", Ne, ie[2]]), $++, O++, Ze = void 0, Ge = !0);
|
6419
6423
|
}
|
6420
6424
|
}
|
6421
|
-
return x[
|
6425
|
+
return x[I][1]._spread = ce, O;
|
6422
6426
|
}
|
6423
|
-
function o(x,
|
6424
|
-
n[x] =
|
6427
|
+
function o(x, I) {
|
6428
|
+
n[x] = I;
|
6425
6429
|
}
|
6426
6430
|
function l(x) {
|
6427
6431
|
return n[x];
|
6428
6432
|
}
|
6429
|
-
function a(x,
|
6433
|
+
function a(x, I) {
|
6430
6434
|
return O;
|
6431
6435
|
function O($) {
|
6432
|
-
u.call(this, x($), $),
|
6436
|
+
u.call(this, x($), $), I && I.call(this, $);
|
6433
6437
|
}
|
6434
6438
|
}
|
6435
6439
|
function s() {
|
@@ -6438,21 +6442,21 @@ function Qc(e) {
|
|
6438
6442
|
children: []
|
6439
6443
|
});
|
6440
6444
|
}
|
6441
|
-
function u(x,
|
6442
|
-
return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([
|
6443
|
-
start: Se(
|
6445
|
+
function u(x, I, O) {
|
6446
|
+
return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([I, O]), x.position = {
|
6447
|
+
start: Se(I.start)
|
6444
6448
|
}, x;
|
6445
6449
|
}
|
6446
6450
|
function c(x) {
|
6447
|
-
return
|
6448
|
-
function
|
6451
|
+
return I;
|
6452
|
+
function I(O) {
|
6449
6453
|
x && x.call(this, O), p.call(this, O);
|
6450
6454
|
}
|
6451
6455
|
}
|
6452
|
-
function p(x,
|
6456
|
+
function p(x, I) {
|
6453
6457
|
const O = this.stack.pop(), $ = this.tokenStack.pop();
|
6454
6458
|
if ($)
|
6455
|
-
$[0].type !== x.type && (
|
6459
|
+
$[0].type !== x.type && (I ? I.call(this, x, $[0]) : ($[1] || ui).call(this, x, $[0]));
|
6456
6460
|
else
|
6457
6461
|
throw new Error(
|
6458
6462
|
"Cannot close `" + x.type + "` (" + ot({
|
@@ -6468,102 +6472,102 @@ function Qc(e) {
|
|
6468
6472
|
function f() {
|
6469
6473
|
o("expectingFirstListItemValue", !0);
|
6470
6474
|
}
|
6471
|
-
function
|
6475
|
+
function T(x) {
|
6472
6476
|
if (l("expectingFirstListItemValue")) {
|
6473
|
-
const
|
6474
|
-
|
6477
|
+
const I = this.stack[this.stack.length - 2];
|
6478
|
+
I.start = Number.parseInt(this.sliceSerialize(x), 10), o("expectingFirstListItemValue");
|
6475
6479
|
}
|
6476
6480
|
}
|
6477
6481
|
function b() {
|
6478
|
-
const x = this.resume(),
|
6479
|
-
|
6482
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6483
|
+
I.lang = x;
|
6480
6484
|
}
|
6481
6485
|
function S() {
|
6482
|
-
const x = this.resume(),
|
6483
|
-
|
6486
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6487
|
+
I.meta = x;
|
6484
6488
|
}
|
6485
6489
|
function w() {
|
6486
6490
|
l("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
|
6487
6491
|
}
|
6488
6492
|
function v() {
|
6489
|
-
const x = this.resume(),
|
6490
|
-
|
6493
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6494
|
+
I.value = x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
|
6491
6495
|
}
|
6492
6496
|
function j() {
|
6493
|
-
const x = this.resume(),
|
6494
|
-
|
6497
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6498
|
+
I.value = x.replace(/(\r?\n|\r)$/g, "");
|
6495
6499
|
}
|
6496
6500
|
function B(x) {
|
6497
|
-
const
|
6498
|
-
O.label =
|
6501
|
+
const I = this.resume(), O = this.stack[this.stack.length - 1];
|
6502
|
+
O.label = I, O.identifier = Qe(
|
6499
6503
|
this.sliceSerialize(x)
|
6500
6504
|
).toLowerCase();
|
6501
6505
|
}
|
6502
6506
|
function _() {
|
6503
|
-
const x = this.resume(),
|
6504
|
-
|
6507
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6508
|
+
I.title = x;
|
6505
6509
|
}
|
6506
6510
|
function y() {
|
6507
|
-
const x = this.resume(),
|
6508
|
-
|
6511
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6512
|
+
I.url = x;
|
6509
6513
|
}
|
6510
6514
|
function A(x) {
|
6511
|
-
const
|
6512
|
-
if (!
|
6515
|
+
const I = this.stack[this.stack.length - 1];
|
6516
|
+
if (!I.depth) {
|
6513
6517
|
const O = this.sliceSerialize(x).length;
|
6514
|
-
|
6518
|
+
I.depth = O;
|
6515
6519
|
}
|
6516
6520
|
}
|
6517
6521
|
function U() {
|
6518
6522
|
o("setextHeadingSlurpLineEnding", !0);
|
6519
6523
|
}
|
6520
6524
|
function Q(x) {
|
6521
|
-
const
|
6522
|
-
|
6525
|
+
const I = this.stack[this.stack.length - 1];
|
6526
|
+
I.depth = this.sliceSerialize(x).charCodeAt(0) === 61 ? 1 : 2;
|
6523
6527
|
}
|
6524
6528
|
function q() {
|
6525
6529
|
o("setextHeadingSlurpLineEnding");
|
6526
6530
|
}
|
6527
6531
|
function E(x) {
|
6528
|
-
const
|
6529
|
-
let O =
|
6532
|
+
const I = this.stack[this.stack.length - 1];
|
6533
|
+
let O = I.children[I.children.length - 1];
|
6530
6534
|
(!O || O.type !== "text") && (O = bt(), O.position = {
|
6531
6535
|
start: Se(x.start)
|
6532
|
-
},
|
6536
|
+
}, I.children.push(O)), this.stack.push(O);
|
6533
6537
|
}
|
6534
6538
|
function M(x) {
|
6535
|
-
const
|
6536
|
-
|
6539
|
+
const I = this.stack.pop();
|
6540
|
+
I.value += this.sliceSerialize(x), I.position.end = Se(x.end);
|
6537
6541
|
}
|
6538
6542
|
function N(x) {
|
6539
|
-
const
|
6543
|
+
const I = this.stack[this.stack.length - 1];
|
6540
6544
|
if (l("atHardBreak")) {
|
6541
|
-
const O =
|
6545
|
+
const O = I.children[I.children.length - 1];
|
6542
6546
|
O.position.end = Se(x.end), o("atHardBreak");
|
6543
6547
|
return;
|
6544
6548
|
}
|
6545
|
-
!l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(
|
6549
|
+
!l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(I.type) && (E.call(this, x), M.call(this, x));
|
6546
6550
|
}
|
6547
6551
|
function C() {
|
6548
6552
|
o("atHardBreak", !0);
|
6549
6553
|
}
|
6550
6554
|
function z() {
|
6551
|
-
const x = this.resume(),
|
6552
|
-
|
6555
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6556
|
+
I.value = x;
|
6553
6557
|
}
|
6554
6558
|
function F() {
|
6555
|
-
const x = this.resume(),
|
6556
|
-
|
6559
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6560
|
+
I.value = x;
|
6557
6561
|
}
|
6558
6562
|
function Y() {
|
6559
|
-
const x = this.resume(),
|
6560
|
-
|
6563
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6564
|
+
I.value = x;
|
6561
6565
|
}
|
6562
6566
|
function V() {
|
6563
6567
|
const x = this.stack[this.stack.length - 1];
|
6564
6568
|
if (l("inReference")) {
|
6565
|
-
const
|
6566
|
-
x.type += "Reference", x.referenceType =
|
6569
|
+
const I = l("referenceType") || "shortcut";
|
6570
|
+
x.type += "Reference", x.referenceType = I, delete x.url, delete x.title;
|
6567
6571
|
} else
|
6568
6572
|
delete x.identifier, delete x.label;
|
6569
6573
|
o("referenceType");
|
@@ -6571,31 +6575,31 @@ function Qc(e) {
|
|
6571
6575
|
function X() {
|
6572
6576
|
const x = this.stack[this.stack.length - 1];
|
6573
6577
|
if (l("inReference")) {
|
6574
|
-
const
|
6575
|
-
x.type += "Reference", x.referenceType =
|
6578
|
+
const I = l("referenceType") || "shortcut";
|
6579
|
+
x.type += "Reference", x.referenceType = I, delete x.url, delete x.title;
|
6576
6580
|
} else
|
6577
6581
|
delete x.identifier, delete x.label;
|
6578
6582
|
o("referenceType");
|
6579
6583
|
}
|
6580
6584
|
function d(x) {
|
6581
|
-
const
|
6582
|
-
O.label = _c(
|
6585
|
+
const I = this.sliceSerialize(x), O = this.stack[this.stack.length - 2];
|
6586
|
+
O.label = _c(I), O.identifier = Qe(I).toLowerCase();
|
6583
6587
|
}
|
6584
6588
|
function ne() {
|
6585
|
-
const x = this.stack[this.stack.length - 1],
|
6589
|
+
const x = this.stack[this.stack.length - 1], I = this.resume(), O = this.stack[this.stack.length - 1];
|
6586
6590
|
if (o("inReference", !0), O.type === "link") {
|
6587
6591
|
const $ = x.children;
|
6588
6592
|
O.children = $;
|
6589
6593
|
} else
|
6590
|
-
O.alt =
|
6594
|
+
O.alt = I;
|
6591
6595
|
}
|
6592
6596
|
function le() {
|
6593
|
-
const x = this.resume(),
|
6594
|
-
|
6597
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6598
|
+
I.url = x;
|
6595
6599
|
}
|
6596
6600
|
function h() {
|
6597
|
-
const x = this.resume(),
|
6598
|
-
|
6601
|
+
const x = this.resume(), I = this.stack[this.stack.length - 1];
|
6602
|
+
I.title = x;
|
6599
6603
|
}
|
6600
6604
|
function re() {
|
6601
6605
|
o("inReference");
|
@@ -6604,8 +6608,8 @@ function Qc(e) {
|
|
6604
6608
|
o("referenceType", "collapsed");
|
6605
6609
|
}
|
6606
6610
|
function W(x) {
|
6607
|
-
const
|
6608
|
-
O.label =
|
6611
|
+
const I = this.resume(), O = this.stack[this.stack.length - 1];
|
6612
|
+
O.label = I, O.identifier = Qe(
|
6609
6613
|
this.sliceSerialize(x)
|
6610
6614
|
).toLowerCase(), o("referenceType", "full");
|
6611
6615
|
}
|
@@ -6613,24 +6617,24 @@ function Qc(e) {
|
|
6613
6617
|
o("characterReferenceType", x.type);
|
6614
6618
|
}
|
6615
6619
|
function he(x) {
|
6616
|
-
const
|
6620
|
+
const I = this.sliceSerialize(x), O = l("characterReferenceType");
|
6617
6621
|
let $;
|
6618
6622
|
O ? ($ = ko(
|
6619
|
-
|
6623
|
+
I,
|
6620
6624
|
O === "characterReferenceMarkerNumeric" ? 10 : 16
|
6621
|
-
), o("characterReferenceType")) : $ = Xn(
|
6625
|
+
), o("characterReferenceType")) : $ = Xn(I);
|
6622
6626
|
const K = this.stack.pop();
|
6623
6627
|
K.value += $, K.position.end = Se(x.end);
|
6624
6628
|
}
|
6625
6629
|
function ve(x) {
|
6626
6630
|
M.call(this, x);
|
6627
|
-
const
|
6628
|
-
|
6631
|
+
const I = this.stack[this.stack.length - 1];
|
6632
|
+
I.url = this.sliceSerialize(x);
|
6629
6633
|
}
|
6630
6634
|
function Ee(x) {
|
6631
6635
|
M.call(this, x);
|
6632
|
-
const
|
6633
|
-
|
6636
|
+
const I = this.stack[this.stack.length - 1];
|
6637
|
+
I.url = "mailto:" + this.sliceSerialize(x);
|
6634
6638
|
}
|
6635
6639
|
function Ve() {
|
6636
6640
|
return {
|
@@ -6652,7 +6656,7 @@ function Qc(e) {
|
|
6652
6656
|
value: ""
|
6653
6657
|
};
|
6654
6658
|
}
|
6655
|
-
function
|
6659
|
+
function ze() {
|
6656
6660
|
return {
|
6657
6661
|
type: "definition",
|
6658
6662
|
identifier: "",
|
@@ -7119,8 +7123,8 @@ function fp(e, t, n) {
|
|
7119
7123
|
for (; ++s < a; ) {
|
7120
7124
|
const p = t.children[s], m = {}, f = l ? l[s] : void 0;
|
7121
7125
|
f && (m.align = f);
|
7122
|
-
let
|
7123
|
-
p && (
|
7126
|
+
let T = { type: "element", tagName: o, properties: m, children: [] };
|
7127
|
+
p && (T.children = e.all(p), e.patch(p, T), T = e.applyData(t, T)), u.push(T);
|
7124
7128
|
}
|
7125
7129
|
const c = {
|
7126
7130
|
type: "element",
|
@@ -7204,12 +7208,12 @@ const yp = {
|
|
7204
7208
|
tableRow: fp,
|
7205
7209
|
text: gp,
|
7206
7210
|
thematicBreak: mp,
|
7207
|
-
toml:
|
7208
|
-
yaml:
|
7209
|
-
definition:
|
7210
|
-
footnoteDefinition:
|
7211
|
+
toml: It,
|
7212
|
+
yaml: It,
|
7213
|
+
definition: It,
|
7214
|
+
footnoteDefinition: It
|
7211
7215
|
};
|
7212
|
-
function
|
7216
|
+
function It() {
|
7213
7217
|
return null;
|
7214
7218
|
}
|
7215
7219
|
const Oo = (
|
@@ -7274,7 +7278,7 @@ function Ht(e) {
|
|
7274
7278
|
function wp() {
|
7275
7279
|
return !0;
|
7276
7280
|
}
|
7277
|
-
const Dp = !0, fi = !1, Np = "skip",
|
7281
|
+
const Dp = !0, fi = !1, Np = "skip", Tp = (
|
7278
7282
|
/**
|
7279
7283
|
* @type {(
|
7280
7284
|
* (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &
|
@@ -7308,21 +7312,21 @@ const Dp = !0, fi = !1, Np = "skip", Ip = (
|
|
7308
7312
|
}
|
7309
7313
|
return p;
|
7310
7314
|
function p() {
|
7311
|
-
let m = [], f,
|
7312
|
-
if ((!t || i(a, s, u[u.length - 1] || null)) && (m =
|
7315
|
+
let m = [], f, T, b;
|
7316
|
+
if ((!t || i(a, s, u[u.length - 1] || null)) && (m = Ip(n(a, u)), m[0] === fi))
|
7313
7317
|
return m;
|
7314
7318
|
if (a.children && m[0] !== Np)
|
7315
|
-
for (
|
7316
|
-
if (f = l(a.children[
|
7319
|
+
for (T = (r ? a.children.length : -1) + o, b = u.concat(a); T > -1 && T < a.children.length; ) {
|
7320
|
+
if (f = l(a.children[T], T, b)(), f[0] === fi)
|
7317
7321
|
return f;
|
7318
|
-
|
7322
|
+
T = typeof f[1] == "number" ? f[1] : T + o;
|
7319
7323
|
}
|
7320
7324
|
return m;
|
7321
7325
|
}
|
7322
7326
|
}
|
7323
7327
|
}
|
7324
7328
|
);
|
7325
|
-
function
|
7329
|
+
function Ip(e) {
|
7326
7330
|
return Array.isArray(e) ? e : typeof e == "number" ? [Dp, e] : [e];
|
7327
7331
|
}
|
7328
7332
|
const tr = (
|
@@ -7340,7 +7344,7 @@ const tr = (
|
|
7340
7344
|
* @returns {void}
|
7341
7345
|
*/
|
7342
7346
|
function(e, t, n, r) {
|
7343
|
-
typeof t == "function" && typeof n != "function" && (r = n, n = t, t = null),
|
7347
|
+
typeof t == "function" && typeof n != "function" && (r = n, n = t, t = null), Tp(e, t, i, r);
|
7344
7348
|
function i(o, l) {
|
7345
7349
|
const a = l[l.length - 1];
|
7346
7350
|
return n(
|
@@ -8850,38 +8854,38 @@ function nf(e, t) {
|
|
8850
8854
|
).trim();
|
8851
8855
|
}
|
8852
8856
|
var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of = /^\s*/, lf = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, af = /^:\s*/, uf = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, sf = /^[;\s]*/, cf = /^\s+|\s+$/g, pf = `
|
8853
|
-
`, xi = "/", bi = "*",
|
8857
|
+
`, xi = "/", bi = "*", Pe = "", ff = "comment", df = "declaration", hf = function(e, t) {
|
8854
8858
|
if (typeof e != "string")
|
8855
8859
|
throw new TypeError("First argument must be a string");
|
8856
8860
|
if (!e)
|
8857
8861
|
return [];
|
8858
8862
|
t = t || {};
|
8859
8863
|
var n = 1, r = 1;
|
8860
|
-
function i(
|
8861
|
-
var b =
|
8864
|
+
function i(T) {
|
8865
|
+
var b = T.match(rf);
|
8862
8866
|
b && (n += b.length);
|
8863
|
-
var S =
|
8864
|
-
r = ~S ?
|
8867
|
+
var S = T.lastIndexOf(pf);
|
8868
|
+
r = ~S ? T.length - S : r + T.length;
|
8865
8869
|
}
|
8866
8870
|
function o() {
|
8867
|
-
var
|
8871
|
+
var T = { line: n, column: r };
|
8868
8872
|
return function(b) {
|
8869
|
-
return b.position = new l(
|
8873
|
+
return b.position = new l(T), u(), b;
|
8870
8874
|
};
|
8871
8875
|
}
|
8872
|
-
function l(
|
8873
|
-
this.start =
|
8876
|
+
function l(T) {
|
8877
|
+
this.start = T, this.end = { line: n, column: r }, this.source = t.source;
|
8874
8878
|
}
|
8875
8879
|
l.prototype.content = e;
|
8876
|
-
function a(
|
8880
|
+
function a(T) {
|
8877
8881
|
var b = new Error(
|
8878
|
-
t.source + ":" + n + ":" + r + ": " +
|
8882
|
+
t.source + ":" + n + ":" + r + ": " + T
|
8879
8883
|
);
|
8880
|
-
if (b.reason =
|
8884
|
+
if (b.reason = T, b.filename = t.source, b.line = n, b.column = r, b.source = e, !t.silent)
|
8881
8885
|
throw b;
|
8882
8886
|
}
|
8883
|
-
function s(
|
8884
|
-
var b =
|
8887
|
+
function s(T) {
|
8888
|
+
var b = T.exec(e);
|
8885
8889
|
if (b) {
|
8886
8890
|
var S = b[0];
|
8887
8891
|
return i(S), e = e.slice(S.length), b;
|
@@ -8890,50 +8894,50 @@ var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, rf = /\n/g, of
|
|
8890
8894
|
function u() {
|
8891
8895
|
s(of);
|
8892
8896
|
}
|
8893
|
-
function c(
|
8897
|
+
function c(T) {
|
8894
8898
|
var b;
|
8895
|
-
for (
|
8896
|
-
b !== !1 &&
|
8897
|
-
return
|
8899
|
+
for (T = T || []; b = p(); )
|
8900
|
+
b !== !1 && T.push(b);
|
8901
|
+
return T;
|
8898
8902
|
}
|
8899
8903
|
function p() {
|
8900
|
-
var
|
8904
|
+
var T = o();
|
8901
8905
|
if (!(xi != e.charAt(0) || bi != e.charAt(1))) {
|
8902
|
-
for (var b = 2;
|
8906
|
+
for (var b = 2; Pe != e.charAt(b) && (bi != e.charAt(b) || xi != e.charAt(b + 1)); )
|
8903
8907
|
++b;
|
8904
|
-
if (b += 2,
|
8908
|
+
if (b += 2, Pe === e.charAt(b - 1))
|
8905
8909
|
return a("End of comment missing");
|
8906
8910
|
var S = e.slice(2, b - 2);
|
8907
|
-
return r += 2, i(S), e = e.slice(b), r += 2,
|
8911
|
+
return r += 2, i(S), e = e.slice(b), r += 2, T({
|
8908
8912
|
type: ff,
|
8909
8913
|
comment: S
|
8910
8914
|
});
|
8911
8915
|
}
|
8912
8916
|
}
|
8913
8917
|
function m() {
|
8914
|
-
var
|
8918
|
+
var T = o(), b = s(lf);
|
8915
8919
|
if (b) {
|
8916
8920
|
if (p(), !s(af))
|
8917
8921
|
return a("property missing ':'");
|
8918
|
-
var S = s(uf), w =
|
8922
|
+
var S = s(uf), w = T({
|
8919
8923
|
type: df,
|
8920
|
-
property: wi(b[0].replace(Mi,
|
8921
|
-
value: S ? wi(S[0].replace(Mi,
|
8924
|
+
property: wi(b[0].replace(Mi, Pe)),
|
8925
|
+
value: S ? wi(S[0].replace(Mi, Pe)) : Pe
|
8922
8926
|
});
|
8923
8927
|
return s(sf), w;
|
8924
8928
|
}
|
8925
8929
|
}
|
8926
8930
|
function f() {
|
8927
|
-
var
|
8928
|
-
c(
|
8931
|
+
var T = [];
|
8932
|
+
c(T);
|
8929
8933
|
for (var b; b = m(); )
|
8930
|
-
b !== !1 && (
|
8931
|
-
return
|
8934
|
+
b !== !1 && (T.push(b), c(T));
|
8935
|
+
return T;
|
8932
8936
|
}
|
8933
8937
|
return u(), f();
|
8934
8938
|
};
|
8935
8939
|
function wi(e) {
|
8936
|
-
return e ? e.replace(cf,
|
8940
|
+
return e ? e.replace(cf, Pe) : Pe;
|
8937
8941
|
}
|
8938
8942
|
var gf = hf;
|
8939
8943
|
function $o(e, t) {
|
@@ -8967,7 +8971,7 @@ function xf(e, t, n, r) {
|
|
8967
8971
|
const m = t.position || {
|
8968
8972
|
start: { line: null, column: null, offset: null },
|
8969
8973
|
end: { line: null, column: null, offset: null }
|
8970
|
-
}, f = i.components && _n.call(i.components, a) ? i.components[a] : a,
|
8974
|
+
}, f = i.components && _n.call(i.components, a) ? i.components[a] : a, T = typeof f == "string" || f === ue.Fragment;
|
8971
8975
|
if (!Jp.isValidElementType(f))
|
8972
8976
|
throw new TypeError(
|
8973
8977
|
`Component for name \`${a}\` not defined or is not renderable`
|
@@ -8980,15 +8984,15 @@ function xf(e, t, n, r) {
|
|
8980
8984
|
String(s.href || ""),
|
8981
8985
|
t.children,
|
8982
8986
|
typeof s.title == "string" ? s.title : null
|
8983
|
-
)), !
|
8987
|
+
)), !T && a === "code" && r.type === "element" && r.tagName !== "pre" && (s.inline = !0), !T && (a === "h1" || a === "h2" || a === "h3" || a === "h4" || a === "h5" || a === "h6") && (s.level = Number.parseInt(a.charAt(1), 10)), a === "img" && i.transformImageUri && (s.src = i.transformImageUri(
|
8984
8988
|
String(s.src || ""),
|
8985
8989
|
String(s.alt || ""),
|
8986
8990
|
typeof s.title == "string" ? s.title : null
|
8987
|
-
)), !
|
8991
|
+
)), !T && a === "li" && r.type === "element") {
|
8988
8992
|
const b = bf(t);
|
8989
8993
|
s.checked = b && b.properties ? !!b.properties.checked : null, s.index = bn(r, t), s.ordered = r.tagName === "ol";
|
8990
8994
|
}
|
8991
|
-
return !
|
8995
|
+
return !T && (a === "ol" || a === "ul") && (s.ordered = a === "ol", s.depth = e.listDepth), (a === "td" || a === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), T || (s.isHeader = a === "th")), !T && a === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Tf(m)), !T && i.rawSourcePos && (s.sourcePosition = t.position), !T && i.includeElementIndex && (s.index = bn(r, t), s.siblingCount = bn(r)), T || (s.node = t), p.length > 0 ? ue.createElement(f, s, p) : ue.createElement(f, s);
|
8992
8996
|
}
|
8993
8997
|
function bf(e) {
|
8994
8998
|
let t = -1;
|
@@ -9025,7 +9029,7 @@ function Df(e) {
|
|
9025
9029
|
function Nf(e, t) {
|
9026
9030
|
return t.toUpperCase();
|
9027
9031
|
}
|
9028
|
-
function
|
9032
|
+
function Tf(e) {
|
9029
9033
|
return [
|
9030
9034
|
e.start.line,
|
9031
9035
|
":",
|
@@ -9036,7 +9040,7 @@ function If(e) {
|
|
9036
9040
|
e.end.column
|
9037
9041
|
].map(String).join("");
|
9038
9042
|
}
|
9039
|
-
const Di = {}.hasOwnProperty,
|
9043
|
+
const Di = {}.hasOwnProperty, If = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", kt = {
|
9040
9044
|
plugins: { to: "remarkPlugins", id: "change-plugins-to-remarkplugins" },
|
9041
9045
|
renderers: { to: "components", id: "change-renderers-to-components" },
|
9042
9046
|
astPlugins: { id: "remove-buggy-html-in-markdown-parser" },
|
@@ -9065,7 +9069,7 @@ function Wo(e) {
|
|
9065
9069
|
if (Di.call(kt, o) && Di.call(e, o)) {
|
9066
9070
|
const l = kt[o];
|
9067
9071
|
console.warn(
|
9068
|
-
`[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${
|
9072
|
+
`[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${If}#${l.id}> for more info)`
|
9069
9073
|
), delete kt[o];
|
9070
9074
|
}
|
9071
9075
|
const t = Lu().use(Hc).use(e.remarkPlugins || []).use(Lp, {
|
@@ -9170,7 +9174,7 @@ function Zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
9170
9174
|
onClick: () => n(t, "UP"),
|
9171
9175
|
"aria-label": "I like this response",
|
9172
9176
|
children: /* @__PURE__ */ D.jsx(
|
9173
|
-
|
9177
|
+
Ae,
|
9174
9178
|
{
|
9175
9179
|
className: "xpert-chatbot-popup__feedback--btn-up-icon",
|
9176
9180
|
icon: e.feedbackThumbType === "UP" ? "material-symbols:thumb-up" : "material-symbols:thumb-up-outline"
|
@@ -9187,7 +9191,7 @@ function Zo({ message: e, id: t, onFeedbackThumbSelection: n }) {
|
|
9187
9191
|
onClick: () => n(t, "DOWN"),
|
9188
9192
|
"aria-label": "I do not like this response",
|
9189
9193
|
children: /* @__PURE__ */ D.jsx(
|
9190
|
-
|
9194
|
+
Ae,
|
9191
9195
|
{
|
9192
9196
|
className: "xpert-chatbot-popup__feedback--btn-down-icon",
|
9193
9197
|
icon: e.feedbackThumbType === "DOWN" ? "material-symbols:thumb-down" : "material-symbols:thumb-down-outline"
|
@@ -9243,38 +9247,30 @@ ar.propTypes = {
|
|
9243
9247
|
messageRef: g.shape({ current: g.instanceOf(Element) })
|
9244
9248
|
};
|
9245
9249
|
ar.displayName = "AssistantMessageBubble";
|
9246
|
-
const Ef = ar, ur = ({ configurations: e }) =>
|
9247
|
-
|
9248
|
-
|
9249
|
-
|
9250
|
-
|
9251
|
-
|
9252
|
-
|
9253
|
-
|
9254
|
-
|
9255
|
-
|
9256
|
-
|
9257
|
-
|
9258
|
-
|
9259
|
-
|
9260
|
-
|
9261
|
-
|
9262
|
-
|
9263
|
-
|
9264
|
-
|
9265
|
-
|
9266
|
-
|
9267
|
-
|
9268
|
-
|
9269
|
-
|
9270
|
-
}
|
9271
|
-
),
|
9272
|
-
"."
|
9273
|
-
] })
|
9274
|
-
]
|
9275
|
-
}
|
9276
|
-
);
|
9277
|
-
};
|
9250
|
+
const Ef = ar, ur = ({ configurations: e }) => /* @__PURE__ */ D.jsxs(
|
9251
|
+
"div",
|
9252
|
+
{
|
9253
|
+
role: "alert",
|
9254
|
+
"aria-live": "assertive",
|
9255
|
+
className: "xpert-chatbot-popup__conversations_disclaimer--text",
|
9256
|
+
children: [
|
9257
|
+
/* @__PURE__ */ D.jsx("span", { children: e.disclaimerText }),
|
9258
|
+
/* @__PURE__ */ D.jsxs("span", { style: { marginLeft: "0.1875rem" }, children: [
|
9259
|
+
/* @__PURE__ */ D.jsx(
|
9260
|
+
"a",
|
9261
|
+
{
|
9262
|
+
href: e.privacyPolicyLink,
|
9263
|
+
target: "_blank",
|
9264
|
+
rel: "noopener noreferrer",
|
9265
|
+
className: "xpert-chatbot-popup__conversations_disclaimer--text__link",
|
9266
|
+
children: "privacy policy"
|
9267
|
+
}
|
9268
|
+
),
|
9269
|
+
"."
|
9270
|
+
] })
|
9271
|
+
]
|
9272
|
+
}
|
9273
|
+
);
|
9278
9274
|
ur.propTypes = {
|
9279
9275
|
configurations: g.shape({
|
9280
9276
|
disclaimerText: g.string.isRequired,
|
@@ -9362,7 +9358,7 @@ const Of = pr, tn = ({
|
|
9362
9358
|
configurations: l
|
9363
9359
|
}) => {
|
9364
9360
|
var s;
|
9365
|
-
const a =
|
9361
|
+
const a = Fe(null);
|
9366
9362
|
return ye(() => {
|
9367
9363
|
var u;
|
9368
9364
|
(u = a.current) == null || u.scrollIntoView({
|
@@ -9565,7 +9561,7 @@ function Ko({
|
|
9565
9561
|
"aria-label": "Close Xpert dialog",
|
9566
9562
|
type: "button",
|
9567
9563
|
children: /* @__PURE__ */ D.jsx(
|
9568
|
-
|
9564
|
+
Ae,
|
9569
9565
|
{
|
9570
9566
|
icon: "material-symbols:close",
|
9571
9567
|
alt: "Close",
|
@@ -9821,9 +9817,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9821
9817
|
cookieNamePrefix: p,
|
9822
9818
|
proactiveMessagePrefix: m,
|
9823
9819
|
proactiveMessage: f,
|
9824
|
-
disableDisclaimerPage:
|
9820
|
+
disableDisclaimerPage: T,
|
9825
9821
|
conversationHistory: b
|
9826
|
-
} = i, S = pt(Qf), [, w] = pe(!1), [v, j] = pe(Yf), [B, _] = pe(!1), [y, A] = pe(!1), [U, Q] = pe(!1), [q, E] = pe(""), [M, N] = pe(!1), [C, z] = pe(!1), [F, Y] = pe(!0), [V, X] = pe(!1), [d, ne] = pe(!1), le =
|
9822
|
+
} = i, S = pt(Qf), [, w] = pe(!1), [v, j] = pe(Yf), [B, _] = pe(!1), [y, A] = pe(!1), [U, Q] = pe(!1), [q, E] = pe(""), [M, N] = pe(!1), [C, z] = pe(!1), [F, Y] = pe(!0), [V, X] = pe(!1), [d, ne] = pe(!1), le = Fe(null), h = Fe(null), re = Fe(null), te = De.get(`${p}-test`) === "1", W = at(
|
9827
9823
|
({ name: L, payload: x }) => {
|
9828
9824
|
t ? t({ name: L, payload: x }) : re.current.track(
|
9829
9825
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
@@ -9856,9 +9852,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9856
9852
|
}
|
9857
9853
|
if (!x.ok)
|
9858
9854
|
throw new Error(`HTTPError: ${x.status} ${x.statusText}`);
|
9859
|
-
const
|
9855
|
+
const I = await x.json();
|
9860
9856
|
j(
|
9861
|
-
|
9857
|
+
I.map((O) => ({
|
9862
9858
|
...O,
|
9863
9859
|
disableFeedback: !0
|
9864
9860
|
}))
|
@@ -9886,14 +9882,14 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9886
9882
|
console.log("Chatbot - unmount"), clearInterval(L), clearTimeout(x);
|
9887
9883
|
};
|
9888
9884
|
}, [u, s]), ye(() => {
|
9889
|
-
const L = (
|
9885
|
+
const L = (I) => {
|
9890
9886
|
var O, $;
|
9891
|
-
(O =
|
9887
|
+
(O = I == null ? void 0 : I.target) != null && O.href && W({
|
9892
9888
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
9893
9889
|
payload: {
|
9894
9890
|
category: "2u",
|
9895
9891
|
label: "xpert-chatbot",
|
9896
|
-
link: ($ =
|
9892
|
+
link: ($ = I == null ? void 0 : I.target) == null ? void 0 : $.href,
|
9897
9893
|
isTestUser: te
|
9898
9894
|
}
|
9899
9895
|
});
|
@@ -9940,7 +9936,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9940
9936
|
}, Ve = ({
|
9941
9937
|
conversationSize: L,
|
9942
9938
|
userInputMessage: x,
|
9943
|
-
apiResponseMessage:
|
9939
|
+
apiResponseMessage: I,
|
9944
9940
|
elapsedSeconds: O
|
9945
9941
|
}) => {
|
9946
9942
|
W({
|
@@ -9951,27 +9947,27 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9951
9947
|
isTestUser: te,
|
9952
9948
|
conversationSize: L,
|
9953
9949
|
userInputMessage: x,
|
9954
|
-
apiResponseMessage:
|
9950
|
+
apiResponseMessage: I,
|
9955
9951
|
elapsedSeconds: O
|
9956
9952
|
}
|
9957
9953
|
});
|
9958
9954
|
}, ht = (L) => {
|
9959
|
-
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(),
|
9955
|
+
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q), N(!0));
|
9960
9956
|
}, nn = () => {
|
9961
|
-
|
9962
|
-
},
|
9957
|
+
ze(q), N(!0);
|
9958
|
+
}, ze = async (L) => {
|
9963
9959
|
try {
|
9964
9960
|
if (L.trim().length === 0)
|
9965
9961
|
return;
|
9966
9962
|
const x = /* @__PURE__ */ new Date();
|
9967
9963
|
z(!1);
|
9968
|
-
const
|
9964
|
+
const I = v.filter((ae) => ae.role === "user").length + 1;
|
9969
9965
|
W({
|
9970
9966
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.sent`,
|
9971
9967
|
payload: {
|
9972
9968
|
category: "2u",
|
9973
9969
|
label: "xpert-chatbot",
|
9974
|
-
totalUserInputMessagesSent:
|
9970
|
+
totalUserInputMessagesSent: I,
|
9975
9971
|
userInputMessage: L,
|
9976
9972
|
isTestUser: te
|
9977
9973
|
}
|
@@ -10103,9 +10099,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10103
10099
|
}, xt = (L) => {
|
10104
10100
|
E(L.target.value);
|
10105
10101
|
}, ln = (L) => {
|
10106
|
-
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(),
|
10102
|
+
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q));
|
10107
10103
|
}, an = (L, x = "") => {
|
10108
|
-
const
|
10104
|
+
const I = v.map((O, $) => L === $ ? (W({
|
10109
10105
|
name: `${s}.bi.xpert.chatbot.feedback.thumbs.${x.toLowerCase()}.clicked`,
|
10110
10106
|
payload: {
|
10111
10107
|
category: "2u",
|
@@ -10119,7 +10115,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10119
10115
|
...O,
|
10120
10116
|
feedbackThumbType: x
|
10121
10117
|
}) : O);
|
10122
|
-
j(
|
10118
|
+
j(I), ne(!1);
|
10123
10119
|
};
|
10124
10120
|
return (
|
10125
10121
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -10178,7 +10174,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10178
10174
|
style: { display: "flex", flexDirection: "column", height: "100%" },
|
10179
10175
|
"aria-label": "XPERT Chatbot Popup",
|
10180
10176
|
role: "dialog",
|
10181
|
-
children: M ||
|
10177
|
+
children: M || T || v.length > 0 ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
10182
10178
|
/* @__PURE__ */ D.jsx(
|
10183
10179
|
Jo,
|
10184
10180
|
{
|
@@ -10198,8 +10194,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10198
10194
|
loading: B,
|
10199
10195
|
isNormalSize: S || F,
|
10200
10196
|
onFeedbackThumbSelection: an,
|
10201
|
-
onPromptClick:
|
10202
|
-
showDisclaimerText:
|
10197
|
+
onPromptClick: ze,
|
10198
|
+
showDisclaimerText: T,
|
10203
10199
|
configurations: i
|
10204
10200
|
}
|
10205
10201
|
),
|
@@ -10223,7 +10219,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10223
10219
|
inputRef: h,
|
10224
10220
|
hasError: C,
|
10225
10221
|
userInput: q,
|
10226
|
-
handleSend:
|
10222
|
+
handleSend: ze,
|
10227
10223
|
handleInput: We,
|
10228
10224
|
handleChange: xt,
|
10229
10225
|
handleKeyDown: ln,
|