bi-components-library 1.2.85 → 1.2.87
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/bi-components-library.css +1 -1
- package/dist/index.es.js +630 -600
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -567,7 +567,7 @@ const { Option: nd } = al, rd = ({
|
|
|
567
567
|
return {
|
|
568
568
|
...H,
|
|
569
569
|
sorter: x ? !0 : void 0,
|
|
570
|
-
render: I || ((
|
|
570
|
+
render: I || ((R) => R)
|
|
571
571
|
};
|
|
572
572
|
}), [e]), A = ue(async (L = {}) => {
|
|
573
573
|
if (t) {
|
|
@@ -603,11 +603,11 @@ const { Option: nd } = al, rd = ({
|
|
|
603
603
|
current: L.current || 1,
|
|
604
604
|
pageSize: L.pageSize || r,
|
|
605
605
|
total: L.total || 0
|
|
606
|
-
},
|
|
606
|
+
}, R = {
|
|
607
607
|
field: I?.field,
|
|
608
608
|
order: I?.order
|
|
609
609
|
};
|
|
610
|
-
v(H), m(
|
|
610
|
+
v(H), m(R);
|
|
611
611
|
}, [r]);
|
|
612
612
|
return ne(() => {
|
|
613
613
|
const L = Object.keys(s).length > 0;
|
|
@@ -759,13 +759,13 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
759
759
|
const z = window.getComputedStyle(T);
|
|
760
760
|
I = (Number.parseFloat(z.paddingLeft) || 0) + (Number.parseFloat(z.paddingRight) || 0);
|
|
761
761
|
}
|
|
762
|
-
const H = b.querySelector(".ant-select-arrow"),
|
|
762
|
+
const H = b.querySelector(".ant-select-arrow"), R = H ? Math.ceil(H.getBoundingClientRect().width) : 12, $ = b.querySelector(".ant-select-clear");
|
|
763
763
|
let _ = 0;
|
|
764
764
|
if ($) {
|
|
765
765
|
const z = window.getComputedStyle($);
|
|
766
766
|
z.display !== "none" && z.visibility !== "hidden" && (_ = Math.ceil($.getBoundingClientRect().width));
|
|
767
767
|
}
|
|
768
|
-
const Y = Math.max(36, x + I +
|
|
768
|
+
const Y = Math.max(36, x + I + R + _ + 6);
|
|
769
769
|
d((z) => z === Y ? z : Y);
|
|
770
770
|
}, [E]);
|
|
771
771
|
return Ge(() => {
|
|
@@ -913,7 +913,7 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
913
913
|
}, [s, y, l]), k = Le.useCallback(() => {
|
|
914
914
|
const A = b.current;
|
|
915
915
|
if (!A) return;
|
|
916
|
-
const O = A.querySelector(".ant-select-selection-item"), D = A.querySelector(".ant-select-selection-placeholder"), F = O || D, M = (F?.textContent || "").trim() || N(), L = A.querySelector(".ant-select-selector"), x = F || L || A, I = window.getComputedStyle(x), H = F ? I.fontSize : "16px",
|
|
916
|
+
const O = A.querySelector(".ant-select-selection-item"), D = A.querySelector(".ant-select-selection-placeholder"), F = O || D, M = (F?.textContent || "").trim() || N(), L = A.querySelector(".ant-select-selector"), x = F || L || A, I = window.getComputedStyle(x), H = F ? I.fontSize : "16px", R = I.fontFamily || "sans-serif", $ = I.fontWeight || "400", Y = `${I.fontStyle || "normal"} ${$} ${H} ${R}`, S = document.createElement("canvas").getContext("2d"), q = S ? Math.ceil((S.font = Y, S.measureText(M).width || 0)) : 0;
|
|
917
917
|
let V = 0;
|
|
918
918
|
if (L) {
|
|
919
919
|
const Te = window.getComputedStyle(L);
|
|
@@ -925,8 +925,8 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
925
925
|
const Te = window.getComputedStyle(te);
|
|
926
926
|
Te.display !== "none" && Te.visibility !== "hidden" && (de = Math.ceil(te.getBoundingClientRect().width));
|
|
927
927
|
}
|
|
928
|
-
const
|
|
929
|
-
v((Te) => Te ===
|
|
928
|
+
const be = Math.min(240, Math.max(80, q + V + j + de + 4));
|
|
929
|
+
v((Te) => Te === be ? Te : be);
|
|
930
930
|
}, [N]);
|
|
931
931
|
return Ge(() => {
|
|
932
932
|
const A = window.requestAnimationFrame(() => {
|
|
@@ -1059,7 +1059,7 @@ const je = (e) => e === "multi-variable" || e === "multi-variable-select", id =
|
|
|
1059
1059
|
const w = Le.useCallback(() => s.length >= 2 ? s.join("-") : l || "请选择省市区", [s, l]), T = Le.useCallback(() => {
|
|
1060
1060
|
const C = v.current;
|
|
1061
1061
|
if (!C) return;
|
|
1062
|
-
const N = w(), k = C.querySelector(".ant-select-selector"), A = C.querySelector(".ant-select-selection-item") || C.querySelector(".ant-select-selection-placeholder"), O = A || k || C, D = window.getComputedStyle(O), F = A ? D.fontSize : "16px", M = D.fontFamily || "sans-serif", L = D.fontWeight || "400", I = `${D.fontStyle || "normal"} ${L} ${F} ${M}`,
|
|
1062
|
+
const N = w(), k = C.querySelector(".ant-select-selector"), A = C.querySelector(".ant-select-selection-item") || C.querySelector(".ant-select-selection-placeholder"), O = A || k || C, D = window.getComputedStyle(O), F = A ? D.fontSize : "16px", M = D.fontFamily || "sans-serif", L = D.fontWeight || "400", I = `${D.fontStyle || "normal"} ${L} ${F} ${M}`, R = document.createElement("canvas").getContext("2d"), $ = R ? Math.ceil((R.font = I, R.measureText(N).width || 0)) : 0;
|
|
1063
1063
|
let _ = 0;
|
|
1064
1064
|
if (k) {
|
|
1065
1065
|
const S = window.getComputedStyle(k);
|
|
@@ -1223,10 +1223,10 @@ const bd = ({ host: e, onChange: t }) => {
|
|
|
1223
1223
|
if (!T) return;
|
|
1224
1224
|
const C = T.querySelector("textarea");
|
|
1225
1225
|
if (!C) return;
|
|
1226
|
-
const N = window.getComputedStyle(C), k = N.fontStyle || "normal", A = N.fontWeight || "400", O = N.fontSize || "16px", D = N.fontFamily || "sans-serif", F = `${k} ${A} ${O} ${D}`, M = Number.parseFloat(N.paddingLeft) || 0, L = Number.parseFloat(N.paddingRight) || 0, x = (u && u.length > 0 ? u : l) || " ", I = hd(x, F, N.letterSpacing || "0", M, L),
|
|
1227
|
-
`) ||
|
|
1226
|
+
const N = window.getComputedStyle(C), k = N.fontStyle || "normal", A = N.fontWeight || "400", O = N.fontSize || "16px", D = N.fontFamily || "sans-serif", F = `${k} ${A} ${O} ${D}`, M = Number.parseFloat(N.paddingLeft) || 0, L = Number.parseFloat(N.paddingRight) || 0, x = (u && u.length > 0 ? u : l) || " ", I = hd(x, F, N.letterSpacing || "0", M, L), R = Math.max(24, Math.min(600, I + 2)), $ = e.closest(".rte-editor"), _ = $ ? window.getComputedStyle($) : null, Y = _ && Number.parseFloat(_.paddingLeft) || 0, z = _ && Number.parseFloat(_.paddingRight) || 0, S = $ ? Math.max(0, $.clientWidth - Y - z) : 1 / 0, V = (u || "").includes(`
|
|
1227
|
+
`) || R > S;
|
|
1228
1228
|
y((j) => j === V ? j : V);
|
|
1229
|
-
const K = V && Number.isFinite(S) ? Math.max(24, S) :
|
|
1229
|
+
const K = V && Number.isFinite(S) ? Math.max(24, S) : R;
|
|
1230
1230
|
h((j) => j === K ? j : K);
|
|
1231
1231
|
}, [e, l, u]);
|
|
1232
1232
|
ne(() => {
|
|
@@ -1359,7 +1359,7 @@ const bd = ({ host: e, onChange: t }) => {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
return r.observe(l, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
1361
1361
|
}, [e]), t;
|
|
1362
|
-
},
|
|
1362
|
+
}, he = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), st = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", vd = (e) => {
|
|
1363
1363
|
const t = (e?.name || "").toLowerCase(), a = /\.(png|jpe?g|gif|webp|bmp|svg)$/.test(t), l = (e?.type || "").toLowerCase();
|
|
1364
1364
|
return a || (l === "image/png" || l === "image/jpeg" || l === "image/gif" || l === "image/webp" || l === "image/bmp" || l === "image/svg+xml");
|
|
1365
1365
|
}, Ll = (e) => {
|
|
@@ -1396,8 +1396,11 @@ function da(e, t) {
|
|
|
1396
1396
|
e.current.querySelectorAll('[data-type="variable"]').forEach((l) => {
|
|
1397
1397
|
if (l.dataset.variableRender === "antd-textarea")
|
|
1398
1398
|
return;
|
|
1399
|
-
|
|
1400
|
-
|
|
1399
|
+
let n = "";
|
|
1400
|
+
if (l.childNodes.forEach((f) => {
|
|
1401
|
+
f.nodeType === Node.TEXT_NODE && (n += f.textContent || "");
|
|
1402
|
+
}), n.replace(/\u200B/g, "").trim().length === 0) {
|
|
1403
|
+
const f = l.querySelector(".variable-info-icon, .rte-tutorial-btn"), E = typeof window < "u" ? window.getSelection() : null;
|
|
1401
1404
|
if (!!(E && (E.anchorNode && l.contains(E.anchorNode) || E.focusNode && l.contains(E.focusNode))) && !0)
|
|
1402
1405
|
Array.from(l.childNodes).forEach((g) => {
|
|
1403
1406
|
g.nodeType === Node.ELEMENT_NODE && g.tagName === "BR" && l.removeChild(g);
|
|
@@ -1430,15 +1433,23 @@ function da(e, t) {
|
|
|
1430
1433
|
}
|
|
1431
1434
|
})(), T = (() => {
|
|
1432
1435
|
if (!!!l.querySelector(
|
|
1433
|
-
".variable-info-icon, .rte-report-dropdown-host"
|
|
1436
|
+
".variable-info-icon, .rte-report-dropdown-host, .rte-tutorial-btn"
|
|
1434
1437
|
)) return 0;
|
|
1435
|
-
const M = l.querySelector(".
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1438
|
+
const M = l.querySelector(".rte-tutorial-btn:not(.hidden)");
|
|
1439
|
+
if (M)
|
|
1440
|
+
try {
|
|
1441
|
+
const I = window.getComputedStyle(M), H = Math.ceil(M.getBoundingClientRect().width || 0) || 60, R = Math.ceil(Number.parseFloat(I.right || "0")) || 4;
|
|
1442
|
+
return Math.max(16, Math.min(160, H + R + 4));
|
|
1443
|
+
} catch {
|
|
1444
|
+
return 80;
|
|
1445
|
+
}
|
|
1446
|
+
const L = l.querySelector(".variable-info-icon.hidden");
|
|
1447
|
+
L && L.classList.remove("hidden");
|
|
1448
|
+
const x = l.querySelector(".variable-info-icon:not(.hidden)");
|
|
1449
|
+
if (!x) return 24;
|
|
1439
1450
|
try {
|
|
1440
|
-
const
|
|
1441
|
-
return Math.max(16, Math.min(120,
|
|
1451
|
+
const I = window.getComputedStyle(x), H = Math.ceil(x.getBoundingClientRect().width || 0) || 16, R = Math.ceil(Number.parseFloat(I.right || "0")) || 4;
|
|
1452
|
+
return Math.max(16, Math.min(120, H + R + 2));
|
|
1442
1453
|
} catch {
|
|
1443
1454
|
return 24;
|
|
1444
1455
|
}
|
|
@@ -1456,7 +1467,11 @@ function da(e, t) {
|
|
|
1456
1467
|
l.style.minWidth = "";
|
|
1457
1468
|
} else
|
|
1458
1469
|
l.classList.remove("show-placeholder"), l.style.minWidth = "", l.style.removeProperty("--rte-icon-pad-right");
|
|
1459
|
-
|
|
1470
|
+
let i = "";
|
|
1471
|
+
l.childNodes.forEach((f) => {
|
|
1472
|
+
f.nodeType === Node.TEXT_NODE && (i += f.textContent || "");
|
|
1473
|
+
});
|
|
1474
|
+
const u = !!l.querySelector("br") || i.includes(`
|
|
1460
1475
|
`), s = l.offsetHeight > 32, o = u || s;
|
|
1461
1476
|
l.classList.toggle("rte-variable-multiline", o), l.classList.toggle("rte-variable-force-block", o);
|
|
1462
1477
|
const c = l.closest(".rte-inline-group");
|
|
@@ -1599,7 +1614,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1599
1614
|
\`\`\``, qu = (e) => {
|
|
1600
1615
|
const t = (e || "").replace(/\r\n/g, `
|
|
1601
1616
|
`).trim(), a = t.match(/^```[a-zA-Z0-9_-]*\n([\s\S]*?)\n```$/);
|
|
1602
|
-
return a ? `<pre><code>${
|
|
1617
|
+
return a ? `<pre><code>${he(a[1] || "")}</code></pre>` : `<div style="white-space:pre-wrap;">${he(t)}</div>`;
|
|
1603
1618
|
}, zu = (e) => {
|
|
1604
1619
|
const t = e.trim();
|
|
1605
1620
|
if (!t) return { url: "" };
|
|
@@ -1814,7 +1829,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1814
1829
|
ne(() => {
|
|
1815
1830
|
!s || !H || v((q) => q === H ? q : H);
|
|
1816
1831
|
}, [s, H, N.signature]);
|
|
1817
|
-
const
|
|
1832
|
+
const R = h?.tabs.find((q) => q.key === E), $ = R ? F(R.items) : [], _ = Z(null), Y = ue((q) => {
|
|
1818
1833
|
const V = q.currentTarget;
|
|
1819
1834
|
V.classList.add("is-scrolling"), _.current && window.clearTimeout(_.current), _.current = window.setTimeout(() => {
|
|
1820
1835
|
V.classList.remove("is-scrolling"), _.current = null;
|
|
@@ -1835,16 +1850,16 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1835
1850
|
},
|
|
1836
1851
|
q.key
|
|
1837
1852
|
)) }) }),
|
|
1838
|
-
/* @__PURE__ */ G("div", { className: "rte-report-dropdown-list", onScroll: Y, children: !
|
|
1853
|
+
/* @__PURE__ */ G("div", { className: "rte-report-dropdown-list", onScroll: Y, children: !R || $.length === 0 ? /* @__PURE__ */ pe("div", { className: "rte-report-dropdown-empty", children: [
|
|
1839
1854
|
/* @__PURE__ */ G("img", { className: "rte-report-dropdown-empty-img", src: wd, alt: "" }),
|
|
1840
1855
|
/* @__PURE__ */ pe("div", { className: "rte-report-dropdown-empty-text", children: [
|
|
1841
1856
|
/* @__PURE__ */ G("span", { className: "rte-report-dropdown-empty-label", children: D ? "未找到匹配的报告" : "暂无生成的报告" }),
|
|
1842
|
-
|
|
1857
|
+
R?.agentType != null && l && /* @__PURE__ */ G(
|
|
1843
1858
|
"span",
|
|
1844
1859
|
{
|
|
1845
1860
|
className: "rte-report-dropdown-empty-link",
|
|
1846
1861
|
onMouseDown: () => {
|
|
1847
|
-
l(
|
|
1862
|
+
l(R.agentType), o(!1);
|
|
1848
1863
|
},
|
|
1849
1864
|
children: "去生成"
|
|
1850
1865
|
}
|
|
@@ -2469,13 +2484,13 @@ const Fd = ({
|
|
|
2469
2484
|
if (!x) return;
|
|
2470
2485
|
const I = L.getAttribute("data-node-type") || "";
|
|
2471
2486
|
if (I === "report-url") {
|
|
2472
|
-
const
|
|
2473
|
-
|
|
2487
|
+
const R = L.getAttribute("data-report-url");
|
|
2488
|
+
R && (A[`${x}__url`] = R);
|
|
2474
2489
|
return;
|
|
2475
2490
|
}
|
|
2476
2491
|
if (I === "markdown-name") {
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2492
|
+
const R = L.innerText.replace(/[\n]/g, "").trim();
|
|
2493
|
+
R && (A[`${x}__name`] = R);
|
|
2479
2494
|
return;
|
|
2480
2495
|
}
|
|
2481
2496
|
const H = L.innerText.replace(/[\n]/g, "").trim();
|
|
@@ -2741,10 +2756,10 @@ const Fd = ({
|
|
|
2741
2756
|
...Y,
|
|
2742
2757
|
[M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: x }
|
|
2743
2758
|
}));
|
|
2744
|
-
const
|
|
2759
|
+
const R = 500, $ = Date.now();
|
|
2745
2760
|
setTimeout(() => {
|
|
2746
2761
|
t({ text: x }).then((z) => {
|
|
2747
|
-
const S = cn(z), q = Date.now() - $, V = Math.max(0,
|
|
2762
|
+
const S = cn(z), q = Date.now() - $, V = Math.max(0, R - q);
|
|
2748
2763
|
setTimeout(() => {
|
|
2749
2764
|
if (o.current) {
|
|
2750
2765
|
const K = y();
|
|
@@ -2797,10 +2812,10 @@ const Fd = ({
|
|
|
2797
2812
|
...Y,
|
|
2798
2813
|
[M]: { ...Y[M], status: "loading", error: void 0, lastParsedText: x }
|
|
2799
2814
|
}));
|
|
2800
|
-
const
|
|
2815
|
+
const R = 500, $ = Date.now();
|
|
2801
2816
|
setTimeout(() => {
|
|
2802
2817
|
a({ text: x }).then((z) => {
|
|
2803
|
-
const S = cn(z), q = Date.now() - $, V = Math.max(0,
|
|
2818
|
+
const S = cn(z), q = Date.now() - $, V = Math.max(0, R - q);
|
|
2804
2819
|
setTimeout(() => {
|
|
2805
2820
|
if (o.current) {
|
|
2806
2821
|
const K = y();
|
|
@@ -2853,10 +2868,10 @@ const Fd = ({
|
|
|
2853
2868
|
const I = (L || "").trim();
|
|
2854
2869
|
if (!I || !v || !b || !/^https?:\/\//i.test(I)) return;
|
|
2855
2870
|
const H = w(M);
|
|
2856
|
-
v({ url: I, nodeKey: M, nodeType: x }).then(({ name:
|
|
2871
|
+
v({ url: I, nodeKey: M, nodeType: x }).then(({ name: R, url: $ }) => {
|
|
2857
2872
|
if (!T(M, H)) return;
|
|
2858
2873
|
const _ = $ || I;
|
|
2859
|
-
b.current(M,
|
|
2874
|
+
b.current(M, R, _), x === "multi-variable-select" && c.current(M, _);
|
|
2860
2875
|
}).catch(() => {
|
|
2861
2876
|
});
|
|
2862
2877
|
},
|
|
@@ -3036,7 +3051,7 @@ const Fd = ({
|
|
|
3036
3051
|
}), s === "error" && u?.error && n.push({
|
|
3037
3052
|
type: "text",
|
|
3038
3053
|
className: "rte-report-error",
|
|
3039
|
-
text: `解析失败:${
|
|
3054
|
+
text: `解析失败:${he(u.error)}
|
|
3040
3055
|
`
|
|
3041
3056
|
}), o.length > 0 && (o.forEach((c, d) => {
|
|
3042
3057
|
n.push({
|
|
@@ -3084,7 +3099,7 @@ const Fd = ({
|
|
|
3084
3099
|
n.push(i), s === "error" && u?.error && n.push({
|
|
3085
3100
|
type: "text",
|
|
3086
3101
|
className: "rte-markdown-error",
|
|
3087
|
-
text: `解析失败:${
|
|
3102
|
+
text: `解析失败:${he(u.error)}
|
|
3088
3103
|
`
|
|
3089
3104
|
});
|
|
3090
3105
|
else
|
|
@@ -3096,7 +3111,7 @@ const Fd = ({
|
|
|
3096
3111
|
}) : s === "error" && u?.error && n.push({
|
|
3097
3112
|
type: "text",
|
|
3098
3113
|
className: "rte-markdown-error",
|
|
3099
|
-
text: `解析失败:${
|
|
3114
|
+
text: `解析失败:${he(u.error)}
|
|
3100
3115
|
`
|
|
3101
3116
|
}), o.length > 0 && s !== "loading" && o.forEach((d, h) => {
|
|
3102
3117
|
n.push({
|
|
@@ -3122,7 +3137,7 @@ const Fd = ({
|
|
|
3122
3137
|
}), s === "error" && u?.error && n.push({
|
|
3123
3138
|
type: "text",
|
|
3124
3139
|
className: "rte-markdown-error",
|
|
3125
|
-
text: `解析失败:${
|
|
3140
|
+
text: `解析失败:${he(u.error)}
|
|
3126
3141
|
`
|
|
3127
3142
|
}), o.length > 0 && s !== "loading" && (o.forEach((c, d) => {
|
|
3128
3143
|
n.push({
|
|
@@ -3905,7 +3920,7 @@ const Vd = ({
|
|
|
3905
3920
|
if (L.length > 1) {
|
|
3906
3921
|
const x = e.find((I) => je(I.type) && I.key === T);
|
|
3907
3922
|
if (x) {
|
|
3908
|
-
const I = r[T] || 1, H = parseInt(N, 10),
|
|
3923
|
+
const I = r[T] || 1, H = parseInt(N, 10), R = x.maxCount || 9, $ = [];
|
|
3909
3924
|
for (let q = 0; q < I; q++) {
|
|
3910
3925
|
const V = `${T}_${q}`, K = l.current.querySelector(
|
|
3911
3926
|
`[data-type="variable"][data-key="${V}"][data-multi-key="${T}"]`
|
|
@@ -3916,8 +3931,8 @@ const Vd = ({
|
|
|
3916
3931
|
}
|
|
3917
3932
|
}
|
|
3918
3933
|
$.splice(H, 1, ...L);
|
|
3919
|
-
const _ = $.slice(0,
|
|
3920
|
-
_.length > 0 && _[_.length - 1] !== "" && _.length <
|
|
3934
|
+
const _ = $.slice(0, R);
|
|
3935
|
+
_.length > 0 && _[_.length - 1] !== "" && _.length < R && _.push("");
|
|
3921
3936
|
const Y = Math.max(_.length, 1), z = {};
|
|
3922
3937
|
_.forEach((q, V) => {
|
|
3923
3938
|
q && (z[`${T}_${V}`] = q);
|
|
@@ -4057,8 +4072,8 @@ const Vd = ({
|
|
|
4057
4072
|
if (L) {
|
|
4058
4073
|
k.preventDefault(), k.stopPropagation();
|
|
4059
4074
|
const z = L.closest(".rte-richtext-wrapper"), S = z?.querySelector('[data-type="richtext"]'), V = !(L.getAttribute("data-expanded") === "true");
|
|
4060
|
-
((de,
|
|
4061
|
-
de.setAttribute("data-expanded", String(
|
|
4075
|
+
((de, be) => {
|
|
4076
|
+
de.setAttribute("data-expanded", String(be)), de.innerHTML = be ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
|
|
4062
4077
|
})(L, V);
|
|
4063
4078
|
const j = z?.closest(".rte-richtext-required");
|
|
4064
4079
|
j ? j.classList.toggle("rte-richtext-expanded", V) : z && z.classList.toggle("rte-richtext-expanded", V);
|
|
@@ -4143,10 +4158,10 @@ const Vd = ({
|
|
|
4143
4158
|
});
|
|
4144
4159
|
return;
|
|
4145
4160
|
}
|
|
4146
|
-
const
|
|
4147
|
-
if (
|
|
4161
|
+
const R = A.closest('[data-type="video-upload"]');
|
|
4162
|
+
if (R) {
|
|
4148
4163
|
k.preventDefault(), k.stopPropagation();
|
|
4149
|
-
const z =
|
|
4164
|
+
const z = R.dataset.key;
|
|
4150
4165
|
z && m?.current && w && (w.current = z, m.current.value = "", m.current.click());
|
|
4151
4166
|
return;
|
|
4152
4167
|
}
|
|
@@ -4163,14 +4178,14 @@ const Vd = ({
|
|
|
4163
4178
|
const K = V.maxCount;
|
|
4164
4179
|
c((j) => {
|
|
4165
4180
|
const te = { ...j }, de = [];
|
|
4166
|
-
for (let
|
|
4167
|
-
const Te = `${q}-${
|
|
4181
|
+
for (let be = 0; be < K; be++) {
|
|
4182
|
+
const Te = `${q}-${be}`, Be = te[Te];
|
|
4168
4183
|
Be != null && Te !== S && de.push(Be);
|
|
4169
4184
|
}
|
|
4170
|
-
for (let
|
|
4171
|
-
delete te[`${q}-${
|
|
4172
|
-
return de.forEach((
|
|
4173
|
-
te[`${q}-${Te}`] =
|
|
4185
|
+
for (let be = 0; be < K; be++)
|
|
4186
|
+
delete te[`${q}-${be}`];
|
|
4187
|
+
return de.forEach((be, Te) => {
|
|
4188
|
+
te[`${q}-${Te}`] = be;
|
|
4174
4189
|
}), te;
|
|
4175
4190
|
});
|
|
4176
4191
|
} else
|
|
@@ -4198,8 +4213,8 @@ const Vd = ({
|
|
|
4198
4213
|
if (u.current && (j?.accept ? u.current.accept = j.accept : j?.acceptType === "image" ? u.current.accept = "image/*" : j?.acceptType === "file" ? u.current.accept = ".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json" : u.current.accept = ""), S) {
|
|
4199
4214
|
const te = l.find((de) => de.type === "upload" && de.key === S);
|
|
4200
4215
|
if (te && typeof te.maxCount == "number" && typeof te.minCount == "number") {
|
|
4201
|
-
const de = te.maxCount,
|
|
4202
|
-
if (
|
|
4216
|
+
const de = te.maxCount, be = o[z] != null, Te = q != null ? Number.parseInt(q, 10) : NaN;
|
|
4217
|
+
if (be) {
|
|
4203
4218
|
u.current && (u.current.multiple = !1), h(null), f(null), E(z), s?.(), u.current?.click();
|
|
4204
4219
|
return;
|
|
4205
4220
|
}
|
|
@@ -4435,10 +4450,10 @@ const Vd = ({
|
|
|
4435
4450
|
z && (x[_] = z);
|
|
4436
4451
|
}
|
|
4437
4452
|
}), t.current.__tempVariableValues = x;
|
|
4438
|
-
const
|
|
4453
|
+
const R = [];
|
|
4439
4454
|
for (let $ = O; $ < T; $++)
|
|
4440
|
-
|
|
4441
|
-
Ba({ keys:
|
|
4455
|
+
R.push(`${m.key}_${$}`);
|
|
4456
|
+
Ba({ keys: R }), document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close")), h(($) => ({
|
|
4442
4457
|
...$,
|
|
4443
4458
|
[m.key]: I
|
|
4444
4459
|
}));
|
|
@@ -4452,7 +4467,7 @@ const Vd = ({
|
|
|
4452
4467
|
`).trim().length > 0 && T < w) {
|
|
4453
4468
|
const x = window.getSelection();
|
|
4454
4469
|
if (x && x.rangeCount > 0) {
|
|
4455
|
-
const H = x.getRangeAt(0),
|
|
4470
|
+
const H = x.getRangeAt(0), R = H.startContainer, $ = R.nodeType === Node.ELEMENT_NODE ? R.closest('[data-type="variable"][data-multi-key]') : R.parentElement?.closest('[data-type="variable"][data-multi-key]');
|
|
4456
4471
|
if ($) {
|
|
4457
4472
|
const _ = $.dataset.key;
|
|
4458
4473
|
if (_) {
|
|
@@ -4565,6 +4580,8 @@ const Vd = ({
|
|
|
4565
4580
|
}
|
|
4566
4581
|
}
|
|
4567
4582
|
if (u.key === "Enter") {
|
|
4583
|
+
if (u.nativeEvent.isComposing || u.keyCode === 229)
|
|
4584
|
+
return;
|
|
4568
4585
|
const c = u.target, d = c?.closest?.('[data-type="variable"]'), h = !!c?.closest?.('[data-type="richtext"]'), f = c?.tagName === "TEXTAREA" || !!c?.closest?.('[data-type="textarea"]');
|
|
4569
4586
|
if (d) {
|
|
4570
4587
|
const E = d.getAttribute("data-node-type") || "";
|
|
@@ -4934,13 +4951,13 @@ const Vd = ({
|
|
|
4934
4951
|
}
|
|
4935
4952
|
if (L && v?.(), M.length > 0) {
|
|
4936
4953
|
const I = f.reduce(($, _) => $ + _.size, 0), H = [];
|
|
4937
|
-
let
|
|
4954
|
+
let R = I;
|
|
4938
4955
|
for (const $ of M) {
|
|
4939
|
-
if (
|
|
4956
|
+
if (R + $.size > 52428800) {
|
|
4940
4957
|
E.error("文件总大小不能超过 50MB");
|
|
4941
4958
|
break;
|
|
4942
4959
|
}
|
|
4943
|
-
H.push($),
|
|
4960
|
+
H.push($), R += $.size;
|
|
4944
4961
|
}
|
|
4945
4962
|
H.length > 0 && h(($) => [...H, ...$]);
|
|
4946
4963
|
}
|
|
@@ -4962,29 +4979,29 @@ const Vd = ({
|
|
|
4962
4979
|
if (F.nodeType === Node.ELEMENT_NODE ? M = F.closest('[data-type="variable"]') : F.nodeType === Node.TEXT_NODE && F.parentElement && (M = F.parentElement.closest('[data-type="variable"]')), M) {
|
|
4963
4980
|
const L = M.dataset.multiKey;
|
|
4964
4981
|
if (L) {
|
|
4965
|
-
const H = /[、,,\s\n\r\t]+/,
|
|
4966
|
-
if (
|
|
4982
|
+
const H = /[、,,\s\n\r\t]+/, R = N.split(H).map(($) => $.trim()).filter(($) => $.length > 0);
|
|
4983
|
+
if (R.length > 1) {
|
|
4967
4984
|
const $ = parseInt(M.dataset.index || "0", 10), _ = t.find(
|
|
4968
4985
|
(de) => je(de.type) && de.key === L
|
|
4969
|
-
)?.maxCount || 9, Y = a[L] || 1, z = Math.min($ +
|
|
4986
|
+
)?.maxCount || 9, Y = a[L] || 1, z = Math.min($ + R.length, _);
|
|
4970
4987
|
z > Y && l((te) => ({
|
|
4971
4988
|
...te,
|
|
4972
4989
|
[L]: z
|
|
4973
4990
|
}));
|
|
4974
4991
|
const S = [];
|
|
4975
4992
|
for (let te = 0; te < Y; te++) {
|
|
4976
|
-
const de = `${L}_${te}`,
|
|
4993
|
+
const de = `${L}_${te}`, be = n.current.querySelector(
|
|
4977
4994
|
`[data-type="variable"][data-key="${de}"][data-multi-key="${L}"]`
|
|
4978
4995
|
);
|
|
4979
|
-
if (
|
|
4980
|
-
const Te =
|
|
4996
|
+
if (be) {
|
|
4997
|
+
const Te = be.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4981
4998
|
S.push(Te);
|
|
4982
4999
|
}
|
|
4983
5000
|
}
|
|
4984
5001
|
S.splice(
|
|
4985
5002
|
$,
|
|
4986
5003
|
1,
|
|
4987
|
-
...
|
|
5004
|
+
...R.slice(0, _ - $)
|
|
4988
5005
|
);
|
|
4989
5006
|
const q = S.slice(0, _);
|
|
4990
5007
|
q.length > 0 && q[q.length - 1] !== "" && q.length < _ && q.push("");
|
|
@@ -4994,8 +5011,8 @@ const Vd = ({
|
|
|
4994
5011
|
}), n.current.querySelectorAll(
|
|
4995
5012
|
'[data-type="variable"]'
|
|
4996
5013
|
).forEach((te) => {
|
|
4997
|
-
const de = te.dataset.key,
|
|
4998
|
-
if (de &&
|
|
5014
|
+
const de = te.dataset.key, be = te.dataset.multiKey;
|
|
5015
|
+
if (de && be !== L) {
|
|
4999
5016
|
const Te = te.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
5000
5017
|
Te && (K[de] = Te);
|
|
5001
5018
|
}
|
|
@@ -5018,17 +5035,17 @@ const Vd = ({
|
|
|
5018
5035
|
)?.allowNewline !== !1;
|
|
5019
5036
|
const Y = M.dataset.key;
|
|
5020
5037
|
return t.find((S) => S.type === "variable" && S.key === Y)?.allowNewline !== !1;
|
|
5021
|
-
})(),
|
|
5022
|
-
if (
|
|
5023
|
-
const $ =
|
|
5038
|
+
})(), R = window.getSelection();
|
|
5039
|
+
if (R && R.rangeCount > 0) {
|
|
5040
|
+
const $ = R.getRangeAt(0);
|
|
5024
5041
|
$.deleteContents();
|
|
5025
5042
|
const _ = document.createDocumentFragment(), z = (H ? N : N.replace(/\n+/g, " ")).split(`
|
|
5026
5043
|
`);
|
|
5027
5044
|
for (let q = 0; q < z.length; q++)
|
|
5028
5045
|
_.appendChild(document.createTextNode(z[q])), H && q < z.length - 1 && _.appendChild(document.createElement("br"));
|
|
5029
|
-
$.insertNode(_),
|
|
5046
|
+
$.insertNode(_), R.removeAllRanges();
|
|
5030
5047
|
const S = document.createRange();
|
|
5031
|
-
S.selectNodeContents(M), S.collapse(!1),
|
|
5048
|
+
S.selectNodeContents(M), S.collapse(!1), R.addRange(S);
|
|
5032
5049
|
}
|
|
5033
5050
|
r();
|
|
5034
5051
|
return;
|
|
@@ -5862,15 +5879,15 @@ function mf() {
|
|
|
5862
5879
|
if (M && (D.style.transform = "none"), L && (D.style.webkitTransform = "none"), a.roundLengths)
|
|
5863
5880
|
k = e.isHorizontal() ? pi(D, "width") : pi(D, "height");
|
|
5864
5881
|
else {
|
|
5865
|
-
const x = t(F, "width"), I = t(F, "padding-left"), H = t(F, "padding-right"),
|
|
5882
|
+
const x = t(F, "width"), I = t(F, "padding-left"), H = t(F, "padding-right"), R = t(F, "margin-left"), $ = t(F, "margin-right"), _ = F.getPropertyValue("box-sizing");
|
|
5866
5883
|
if (_ && _ === "border-box")
|
|
5867
|
-
k = x +
|
|
5884
|
+
k = x + R + $;
|
|
5868
5885
|
else {
|
|
5869
5886
|
const {
|
|
5870
5887
|
clientWidth: Y,
|
|
5871
5888
|
offsetWidth: z
|
|
5872
5889
|
} = D;
|
|
5873
|
-
k = x + I + H +
|
|
5890
|
+
k = x + I + H + R + $ + (z - Y);
|
|
5874
5891
|
}
|
|
5875
5892
|
}
|
|
5876
5893
|
M && (D.style.transform = M), L && (D.style.webkitTransform = L), a.roundLengths && (k = Math.floor(k));
|
|
@@ -6607,14 +6624,14 @@ function Gf({
|
|
|
6607
6624
|
o.length < m + T || s.params.effect === "cards" && o.length < m + T * 2 ? Dl("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : C && f.grid.fill === "row" && Dl("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
6608
6625
|
const N = [], k = [], A = C ? Math.ceil(o.length / f.grid.rows) : o.length, O = r && A - y < m && !g;
|
|
6609
6626
|
let D = O ? y : s.activeIndex;
|
|
6610
|
-
typeof n > "u" ? n = s.getSlideIndex(o.find((
|
|
6627
|
+
typeof n > "u" ? n = s.getSlideIndex(o.find((R) => R.classList.contains(f.slideActiveClass))) : D = n;
|
|
6611
6628
|
const F = a === "next" || !a, M = a === "prev" || !a;
|
|
6612
6629
|
let L = 0, x = 0;
|
|
6613
6630
|
const H = (C ? o[n].column : n) + (g && typeof l > "u" ? -m / 2 + 0.5 : 0);
|
|
6614
6631
|
if (H < T) {
|
|
6615
6632
|
L = Math.max(T - H, w);
|
|
6616
|
-
for (let
|
|
6617
|
-
const $ =
|
|
6633
|
+
for (let R = 0; R < T - H; R += 1) {
|
|
6634
|
+
const $ = R - Math.floor(R / A) * A;
|
|
6618
6635
|
if (C) {
|
|
6619
6636
|
const _ = A - $ - 1;
|
|
6620
6637
|
for (let Y = o.length - 1; Y >= 0; Y -= 1)
|
|
@@ -6624,8 +6641,8 @@ function Gf({
|
|
|
6624
6641
|
}
|
|
6625
6642
|
} else if (H + m > A - T) {
|
|
6626
6643
|
x = Math.max(H - (A - T * 2), w), O && (x = Math.max(x, m - A + y + 1));
|
|
6627
|
-
for (let
|
|
6628
|
-
const $ =
|
|
6644
|
+
for (let R = 0; R < x; R += 1) {
|
|
6645
|
+
const $ = R - Math.floor(R / A) * A;
|
|
6629
6646
|
C ? o.forEach((_, Y) => {
|
|
6630
6647
|
_.column === $ && k.push(Y);
|
|
6631
6648
|
}) : k.push($);
|
|
@@ -6633,32 +6650,32 @@ function Gf({
|
|
|
6633
6650
|
}
|
|
6634
6651
|
if (s.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
6635
6652
|
s.__preventObserver__ = !1;
|
|
6636
|
-
}), s.params.effect === "cards" && o.length < m + T * 2 && (k.includes(n) && k.splice(k.indexOf(n), 1), N.includes(n) && N.splice(N.indexOf(n), 1)), M && N.forEach((
|
|
6637
|
-
o[
|
|
6638
|
-
}), F && k.forEach((
|
|
6639
|
-
o[
|
|
6640
|
-
}), s.recalcSlides(), f.slidesPerView === "auto" ? s.updateSlides() : C && (N.length > 0 && M || k.length > 0 && F) && s.slides.forEach((
|
|
6641
|
-
s.grid.updateSlide($,
|
|
6653
|
+
}), s.params.effect === "cards" && o.length < m + T * 2 && (k.includes(n) && k.splice(k.indexOf(n), 1), N.includes(n) && N.splice(N.indexOf(n), 1)), M && N.forEach((R) => {
|
|
6654
|
+
o[R].swiperLoopMoveDOM = !0, h.prepend(o[R]), o[R].swiperLoopMoveDOM = !1;
|
|
6655
|
+
}), F && k.forEach((R) => {
|
|
6656
|
+
o[R].swiperLoopMoveDOM = !0, h.append(o[R]), o[R].swiperLoopMoveDOM = !1;
|
|
6657
|
+
}), s.recalcSlides(), f.slidesPerView === "auto" ? s.updateSlides() : C && (N.length > 0 && M || k.length > 0 && F) && s.slides.forEach((R, $) => {
|
|
6658
|
+
s.grid.updateSlide($, R, s.slides);
|
|
6642
6659
|
}), f.watchSlidesProgress && s.updateSlidesOffset(), t) {
|
|
6643
6660
|
if (N.length > 0 && M) {
|
|
6644
6661
|
if (typeof e > "u") {
|
|
6645
|
-
const
|
|
6662
|
+
const R = s.slidesGrid[D], _ = s.slidesGrid[D + L] - R;
|
|
6646
6663
|
u ? s.setTranslate(s.translate - _) : (s.slideTo(D + Math.ceil(L), 0, !1, !0), l && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - _, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - _));
|
|
6647
6664
|
} else if (l) {
|
|
6648
|
-
const
|
|
6649
|
-
s.slideTo(s.activeIndex +
|
|
6665
|
+
const R = C ? N.length / f.grid.rows : N.length;
|
|
6666
|
+
s.slideTo(s.activeIndex + R, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
|
|
6650
6667
|
}
|
|
6651
6668
|
} else if (k.length > 0 && F)
|
|
6652
6669
|
if (typeof e > "u") {
|
|
6653
|
-
const
|
|
6670
|
+
const R = s.slidesGrid[D], _ = s.slidesGrid[D - x] - R;
|
|
6654
6671
|
u ? s.setTranslate(s.translate - _) : (s.slideTo(D - x, 0, !1, !0), l && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - _, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - _));
|
|
6655
6672
|
} else {
|
|
6656
|
-
const
|
|
6657
|
-
s.slideTo(s.activeIndex -
|
|
6673
|
+
const R = C ? k.length / f.grid.rows : k.length;
|
|
6674
|
+
s.slideTo(s.activeIndex - R, 0, !1, !0);
|
|
6658
6675
|
}
|
|
6659
6676
|
}
|
|
6660
6677
|
if (s.allowSlidePrev = c, s.allowSlideNext = d, s.controller && s.controller.control && !i) {
|
|
6661
|
-
const
|
|
6678
|
+
const R = {
|
|
6662
6679
|
slideRealIndex: e,
|
|
6663
6680
|
direction: a,
|
|
6664
6681
|
setTranslate: l,
|
|
@@ -6667,11 +6684,11 @@ function Gf({
|
|
|
6667
6684
|
};
|
|
6668
6685
|
Array.isArray(s.controller.control) ? s.controller.control.forEach(($) => {
|
|
6669
6686
|
!$.destroyed && $.params.loop && $.loopFix({
|
|
6670
|
-
...
|
|
6687
|
+
...R,
|
|
6671
6688
|
slideTo: $.params.slidesPerView === f.slidesPerView ? t : !1
|
|
6672
6689
|
});
|
|
6673
6690
|
}) : s.controller.control instanceof s.constructor && s.controller.control.params.loop && s.controller.control.loopFix({
|
|
6674
|
-
...
|
|
6691
|
+
...R,
|
|
6675
6692
|
slideTo: s.controller.control.params.slidesPerView === f.slidesPerView ? t : !1
|
|
6676
6693
|
});
|
|
6677
6694
|
}
|
|
@@ -7959,16 +7976,16 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
7959
7976
|
f(!h);
|
|
7960
7977
|
};
|
|
7961
7978
|
Object.assign(N.on, {
|
|
7962
|
-
_containerClasses(
|
|
7979
|
+
_containerClasses(R, $) {
|
|
7963
7980
|
o($);
|
|
7964
7981
|
}
|
|
7965
7982
|
});
|
|
7966
7983
|
const L = () => {
|
|
7967
7984
|
Object.assign(N.on, O), u = !0;
|
|
7968
|
-
const
|
|
7985
|
+
const R = {
|
|
7969
7986
|
...N
|
|
7970
7987
|
};
|
|
7971
|
-
if (delete
|
|
7988
|
+
if (delete R.wrapperClass, b.current = new vr(R), b.current.virtual && b.current.params.virtual.enabled) {
|
|
7972
7989
|
b.current.virtual.slides = D;
|
|
7973
7990
|
const $ = {
|
|
7974
7991
|
cache: !1,
|
|
@@ -7981,12 +7998,12 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
7981
7998
|
};
|
|
7982
7999
|
v.current || L(), b.current && b.current.on("_beforeBreakpoint", M);
|
|
7983
8000
|
const x = () => {
|
|
7984
|
-
u || !O || !b.current || Object.keys(O).forEach((
|
|
7985
|
-
b.current.on(
|
|
8001
|
+
u || !O || !b.current || Object.keys(O).forEach((R) => {
|
|
8002
|
+
b.current.on(R, O[R]);
|
|
7986
8003
|
});
|
|
7987
8004
|
}, I = () => {
|
|
7988
|
-
!O || !b.current || Object.keys(O).forEach((
|
|
7989
|
-
b.current.off(
|
|
8005
|
+
!O || !b.current || Object.keys(O).forEach((R) => {
|
|
8006
|
+
b.current.off(R, O[R]);
|
|
7990
8007
|
});
|
|
7991
8008
|
};
|
|
7992
8009
|
ne(() => () => {
|
|
@@ -8007,12 +8024,12 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
8007
8024
|
};
|
|
8008
8025
|
}, []), Fa(() => {
|
|
8009
8026
|
x();
|
|
8010
|
-
const
|
|
8011
|
-
return y.current = k, g.current = D,
|
|
8027
|
+
const R = xp(k, y.current, D, g.current, ($) => $.key);
|
|
8028
|
+
return y.current = k, g.current = D, R.length && b.current && !b.current.destroyed && Ep({
|
|
8012
8029
|
swiper: b.current,
|
|
8013
8030
|
slides: D,
|
|
8014
8031
|
passedParams: k,
|
|
8015
|
-
changedParams:
|
|
8032
|
+
changedParams: R,
|
|
8016
8033
|
nextEl: m.current,
|
|
8017
8034
|
prevEl: w.current,
|
|
8018
8035
|
scrollbarEl: C.current,
|
|
@@ -8024,7 +8041,7 @@ const gi = /* @__PURE__ */ Hu(null), Sp = /* @__PURE__ */ Hu(null), rs = /* @__P
|
|
|
8024
8041
|
wp(b.current);
|
|
8025
8042
|
}, [c]);
|
|
8026
8043
|
function H() {
|
|
8027
|
-
return N.virtual ? Cp(b.current, D, c) : D.map((
|
|
8044
|
+
return N.virtual ? Cp(b.current, D, c) : D.map((R, $) => /* @__PURE__ */ Le.cloneElement(R, {
|
|
8028
8045
|
swiper: b.current,
|
|
8029
8046
|
swiperSlideIndex: $
|
|
8030
8047
|
}));
|
|
@@ -11339,14 +11356,14 @@ function hb(e, t, a) {
|
|
|
11339
11356
|
return S === 45 ? (e.consume(S), _) : F(S);
|
|
11340
11357
|
}
|
|
11341
11358
|
function H(S) {
|
|
11342
|
-
return S === 47 ? (e.consume(S), i = "",
|
|
11359
|
+
return S === 47 ? (e.consume(S), i = "", R) : F(S);
|
|
11343
11360
|
}
|
|
11344
|
-
function
|
|
11361
|
+
function R(S) {
|
|
11345
11362
|
if (S === 62) {
|
|
11346
11363
|
const q = i.toLowerCase();
|
|
11347
11364
|
return $i.includes(q) ? (e.consume(S), Y) : F(S);
|
|
11348
11365
|
}
|
|
11349
|
-
return gt(S) && i.length < 8 ? (e.consume(S), i += String.fromCharCode(S),
|
|
11366
|
+
return gt(S) && i.length < 8 ? (e.consume(S), i += String.fromCharCode(S), R) : F(S);
|
|
11350
11367
|
}
|
|
11351
11368
|
function $(S) {
|
|
11352
11369
|
return S === 93 ? (e.consume(S), _) : F(S);
|
|
@@ -11465,9 +11482,9 @@ function gb(e, t, a) {
|
|
|
11465
11482
|
return _ === 62 ? (e.consume(_), e.exit("htmlTextData"), e.exit("htmlText"), t) : a(_);
|
|
11466
11483
|
}
|
|
11467
11484
|
function H(_) {
|
|
11468
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"),
|
|
11485
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), R;
|
|
11469
11486
|
}
|
|
11470
|
-
function
|
|
11487
|
+
function R(_) {
|
|
11471
11488
|
return Se(_) ? _e(e, $, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : $(_);
|
|
11472
11489
|
}
|
|
11473
11490
|
function $(_) {
|
|
@@ -12092,7 +12109,7 @@ function rm(e, t, a) {
|
|
|
12092
12109
|
function N(D, F) {
|
|
12093
12110
|
return M;
|
|
12094
12111
|
function M(L, x, I) {
|
|
12095
|
-
let H,
|
|
12112
|
+
let H, R, $, _;
|
|
12096
12113
|
return Array.isArray(L) ? (
|
|
12097
12114
|
/* c8 ignore next 1 */
|
|
12098
12115
|
z(L)
|
|
@@ -12106,17 +12123,17 @@ function rm(e, t, a) {
|
|
|
12106
12123
|
function Y(K) {
|
|
12107
12124
|
return j;
|
|
12108
12125
|
function j(te) {
|
|
12109
|
-
const de = te !== null && K[te],
|
|
12126
|
+
const de = te !== null && K[te], be = te !== null && K.null, Te = [
|
|
12110
12127
|
// To do: add more extension tests.
|
|
12111
12128
|
/* c8 ignore next 2 */
|
|
12112
12129
|
...Array.isArray(de) ? de : de ? [de] : [],
|
|
12113
|
-
...Array.isArray(
|
|
12130
|
+
...Array.isArray(be) ? be : be ? [be] : []
|
|
12114
12131
|
];
|
|
12115
12132
|
return z(Te)(te);
|
|
12116
12133
|
}
|
|
12117
12134
|
}
|
|
12118
12135
|
function z(K) {
|
|
12119
|
-
return H = K,
|
|
12136
|
+
return H = K, R = 0, K.length === 0 ? I : S(K[R]);
|
|
12120
12137
|
}
|
|
12121
12138
|
function S(K) {
|
|
12122
12139
|
return j;
|
|
@@ -12136,7 +12153,7 @@ function rm(e, t, a) {
|
|
|
12136
12153
|
return D($, _), x;
|
|
12137
12154
|
}
|
|
12138
12155
|
function V(K) {
|
|
12139
|
-
return _.restore(), ++
|
|
12156
|
+
return _.restore(), ++R < H.length ? S(H[R]) : I;
|
|
12140
12157
|
}
|
|
12141
12158
|
}
|
|
12142
12159
|
}
|
|
@@ -12300,7 +12317,7 @@ function bm(e) {
|
|
|
12300
12317
|
autolinkProtocol: A,
|
|
12301
12318
|
autolinkEmail: A,
|
|
12302
12319
|
atxHeading: r(Ye),
|
|
12303
|
-
blockQuote: r(
|
|
12320
|
+
blockQuote: r(be),
|
|
12304
12321
|
characterEscape: A,
|
|
12305
12322
|
characterReference: A,
|
|
12306
12323
|
codeFenced: r(Te),
|
|
@@ -12372,7 +12389,7 @@ function bm(e) {
|
|
|
12372
12389
|
htmlTextData: O,
|
|
12373
12390
|
image: s(H),
|
|
12374
12391
|
label: $,
|
|
12375
|
-
labelText:
|
|
12392
|
+
labelText: R,
|
|
12376
12393
|
lineEnding: D,
|
|
12377
12394
|
link: s(I),
|
|
12378
12395
|
listItem: s(),
|
|
@@ -12642,7 +12659,7 @@ function bm(e) {
|
|
|
12642
12659
|
delete J.identifier, delete J.label;
|
|
12643
12660
|
this.data.referenceType = void 0;
|
|
12644
12661
|
}
|
|
12645
|
-
function
|
|
12662
|
+
function R(J) {
|
|
12646
12663
|
const ie = this.sliceSerialize(J), ge = this.stack[this.stack.length - 2];
|
|
12647
12664
|
ge.label = fm(ie), ge.identifier = ca(ie).toLowerCase();
|
|
12648
12665
|
}
|
|
@@ -12696,7 +12713,7 @@ function bm(e) {
|
|
|
12696
12713
|
const ie = this.stack[this.stack.length - 1];
|
|
12697
12714
|
ie.url = "mailto:" + this.sliceSerialize(J);
|
|
12698
12715
|
}
|
|
12699
|
-
function
|
|
12716
|
+
function be() {
|
|
12700
12717
|
return {
|
|
12701
12718
|
type: "blockquote",
|
|
12702
12719
|
children: []
|
|
@@ -16173,17 +16190,17 @@ const ae = p, Sv = {
|
|
|
16173
16190
|
[ee.XMLNS]: /* @__PURE__ */ new Set()
|
|
16174
16191
|
}, rr = /* @__PURE__ */ new Set([ae.H1, ae.H2, ae.H3, ae.H4, ae.H5, ae.H6]);
|
|
16175
16192
|
W.STYLE, W.SCRIPT, W.XMP, W.IFRAME, W.NOEMBED, W.NOFRAMES, W.PLAINTEXT;
|
|
16176
|
-
var
|
|
16193
|
+
var B;
|
|
16177
16194
|
(function(e) {
|
|
16178
16195
|
e[e.DATA = 0] = "DATA", e[e.RCDATA = 1] = "RCDATA", e[e.RAWTEXT = 2] = "RAWTEXT", e[e.SCRIPT_DATA = 3] = "SCRIPT_DATA", e[e.PLAINTEXT = 4] = "PLAINTEXT", e[e.TAG_OPEN = 5] = "TAG_OPEN", e[e.END_TAG_OPEN = 6] = "END_TAG_OPEN", e[e.TAG_NAME = 7] = "TAG_NAME", e[e.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", e[e.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", e[e.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", e[e.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", e[e.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", e[e.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", e[e.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", e[e.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", e[e.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", e[e.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", e[e.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", e[e.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", e[e.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", e[e.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", e[e.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", e[e.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", e[e.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", e[e.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", e[e.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", e[e.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", e[e.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", e[e.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", e[e.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", e[e.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", e[e.COMMENT_START = 42] = "COMMENT_START", e[e.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", e[e.COMMENT = 44] = "COMMENT", e[e.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", e[e.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", e[e.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", e[e.COMMENT_END = 50] = "COMMENT_END", e[e.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", e[e.DOCTYPE = 52] = "DOCTYPE", e[e.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", e[e.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", e[e.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", e[e.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", e[e.CDATA_SECTION = 68] = "CDATA_SECTION", e[e.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", e[e.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", e[e.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", e[e.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
|
|
16179
|
-
})(
|
|
16196
|
+
})(B || (B = {}));
|
|
16180
16197
|
const He = {
|
|
16181
|
-
DATA:
|
|
16182
|
-
RCDATA:
|
|
16183
|
-
RAWTEXT:
|
|
16184
|
-
SCRIPT_DATA:
|
|
16185
|
-
PLAINTEXT:
|
|
16186
|
-
CDATA_SECTION:
|
|
16198
|
+
DATA: B.DATA,
|
|
16199
|
+
RCDATA: B.RCDATA,
|
|
16200
|
+
RAWTEXT: B.RAWTEXT,
|
|
16201
|
+
SCRIPT_DATA: B.SCRIPT_DATA,
|
|
16202
|
+
PLAINTEXT: B.PLAINTEXT,
|
|
16203
|
+
CDATA_SECTION: B.CDATA_SECTION
|
|
16187
16204
|
};
|
|
16188
16205
|
function _v(e) {
|
|
16189
16206
|
return e >= P.DIGIT_0 && e <= P.DIGIT_9;
|
|
@@ -16214,7 +16231,7 @@ function Nv(e) {
|
|
|
16214
16231
|
}
|
|
16215
16232
|
class Iv {
|
|
16216
16233
|
constructor(t, a) {
|
|
16217
|
-
this.options = t, this.handler = a, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state =
|
|
16234
|
+
this.options = t, this.handler = a, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = B.DATA, this.returnState = B.DATA, this.entityStartPos = 0, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = { name: "", value: "" }, this.preprocessor = new bv(a), this.currentLocation = this.getCurrentLocation(-1), this.entityDecoder = new wv(mv, (l, n) => {
|
|
16218
16235
|
this.preprocessor.pos = this.entityStartPos + n - 1, this._flushCodePointConsumedAsCharacterReference(l);
|
|
16219
16236
|
}, a.onParseError ? {
|
|
16220
16237
|
missingSemicolonAfterCharacterReference: () => {
|
|
@@ -16420,10 +16437,10 @@ class Iv {
|
|
|
16420
16437
|
}
|
|
16421
16438
|
// Character reference helpers
|
|
16422
16439
|
_startCharacterReference() {
|
|
16423
|
-
this.returnState = this.state, this.state =
|
|
16440
|
+
this.returnState = this.state, this.state = B.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? _t.Attribute : _t.Legacy);
|
|
16424
16441
|
}
|
|
16425
16442
|
_isCharacterReferenceInAttribute() {
|
|
16426
|
-
return this.returnState ===
|
|
16443
|
+
return this.returnState === B.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === B.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === B.ATTRIBUTE_VALUE_UNQUOTED;
|
|
16427
16444
|
}
|
|
16428
16445
|
_flushCodePointConsumedAsCharacterReference(t) {
|
|
16429
16446
|
this._isCharacterReferenceInAttribute() ? this.currentAttr.value += String.fromCodePoint(t) : this._emitCodePoint(t);
|
|
@@ -16431,295 +16448,295 @@ class Iv {
|
|
|
16431
16448
|
// Calling states this way turns out to be much faster than any other approach.
|
|
16432
16449
|
_callState(t) {
|
|
16433
16450
|
switch (this.state) {
|
|
16434
|
-
case
|
|
16451
|
+
case B.DATA: {
|
|
16435
16452
|
this._stateData(t);
|
|
16436
16453
|
break;
|
|
16437
16454
|
}
|
|
16438
|
-
case
|
|
16455
|
+
case B.RCDATA: {
|
|
16439
16456
|
this._stateRcdata(t);
|
|
16440
16457
|
break;
|
|
16441
16458
|
}
|
|
16442
|
-
case
|
|
16459
|
+
case B.RAWTEXT: {
|
|
16443
16460
|
this._stateRawtext(t);
|
|
16444
16461
|
break;
|
|
16445
16462
|
}
|
|
16446
|
-
case
|
|
16463
|
+
case B.SCRIPT_DATA: {
|
|
16447
16464
|
this._stateScriptData(t);
|
|
16448
16465
|
break;
|
|
16449
16466
|
}
|
|
16450
|
-
case
|
|
16467
|
+
case B.PLAINTEXT: {
|
|
16451
16468
|
this._statePlaintext(t);
|
|
16452
16469
|
break;
|
|
16453
16470
|
}
|
|
16454
|
-
case
|
|
16471
|
+
case B.TAG_OPEN: {
|
|
16455
16472
|
this._stateTagOpen(t);
|
|
16456
16473
|
break;
|
|
16457
16474
|
}
|
|
16458
|
-
case
|
|
16475
|
+
case B.END_TAG_OPEN: {
|
|
16459
16476
|
this._stateEndTagOpen(t);
|
|
16460
16477
|
break;
|
|
16461
16478
|
}
|
|
16462
|
-
case
|
|
16479
|
+
case B.TAG_NAME: {
|
|
16463
16480
|
this._stateTagName(t);
|
|
16464
16481
|
break;
|
|
16465
16482
|
}
|
|
16466
|
-
case
|
|
16483
|
+
case B.RCDATA_LESS_THAN_SIGN: {
|
|
16467
16484
|
this._stateRcdataLessThanSign(t);
|
|
16468
16485
|
break;
|
|
16469
16486
|
}
|
|
16470
|
-
case
|
|
16487
|
+
case B.RCDATA_END_TAG_OPEN: {
|
|
16471
16488
|
this._stateRcdataEndTagOpen(t);
|
|
16472
16489
|
break;
|
|
16473
16490
|
}
|
|
16474
|
-
case
|
|
16491
|
+
case B.RCDATA_END_TAG_NAME: {
|
|
16475
16492
|
this._stateRcdataEndTagName(t);
|
|
16476
16493
|
break;
|
|
16477
16494
|
}
|
|
16478
|
-
case
|
|
16495
|
+
case B.RAWTEXT_LESS_THAN_SIGN: {
|
|
16479
16496
|
this._stateRawtextLessThanSign(t);
|
|
16480
16497
|
break;
|
|
16481
16498
|
}
|
|
16482
|
-
case
|
|
16499
|
+
case B.RAWTEXT_END_TAG_OPEN: {
|
|
16483
16500
|
this._stateRawtextEndTagOpen(t);
|
|
16484
16501
|
break;
|
|
16485
16502
|
}
|
|
16486
|
-
case
|
|
16503
|
+
case B.RAWTEXT_END_TAG_NAME: {
|
|
16487
16504
|
this._stateRawtextEndTagName(t);
|
|
16488
16505
|
break;
|
|
16489
16506
|
}
|
|
16490
|
-
case
|
|
16507
|
+
case B.SCRIPT_DATA_LESS_THAN_SIGN: {
|
|
16491
16508
|
this._stateScriptDataLessThanSign(t);
|
|
16492
16509
|
break;
|
|
16493
16510
|
}
|
|
16494
|
-
case
|
|
16511
|
+
case B.SCRIPT_DATA_END_TAG_OPEN: {
|
|
16495
16512
|
this._stateScriptDataEndTagOpen(t);
|
|
16496
16513
|
break;
|
|
16497
16514
|
}
|
|
16498
|
-
case
|
|
16515
|
+
case B.SCRIPT_DATA_END_TAG_NAME: {
|
|
16499
16516
|
this._stateScriptDataEndTagName(t);
|
|
16500
16517
|
break;
|
|
16501
16518
|
}
|
|
16502
|
-
case
|
|
16519
|
+
case B.SCRIPT_DATA_ESCAPE_START: {
|
|
16503
16520
|
this._stateScriptDataEscapeStart(t);
|
|
16504
16521
|
break;
|
|
16505
16522
|
}
|
|
16506
|
-
case
|
|
16523
|
+
case B.SCRIPT_DATA_ESCAPE_START_DASH: {
|
|
16507
16524
|
this._stateScriptDataEscapeStartDash(t);
|
|
16508
16525
|
break;
|
|
16509
16526
|
}
|
|
16510
|
-
case
|
|
16527
|
+
case B.SCRIPT_DATA_ESCAPED: {
|
|
16511
16528
|
this._stateScriptDataEscaped(t);
|
|
16512
16529
|
break;
|
|
16513
16530
|
}
|
|
16514
|
-
case
|
|
16531
|
+
case B.SCRIPT_DATA_ESCAPED_DASH: {
|
|
16515
16532
|
this._stateScriptDataEscapedDash(t);
|
|
16516
16533
|
break;
|
|
16517
16534
|
}
|
|
16518
|
-
case
|
|
16535
|
+
case B.SCRIPT_DATA_ESCAPED_DASH_DASH: {
|
|
16519
16536
|
this._stateScriptDataEscapedDashDash(t);
|
|
16520
16537
|
break;
|
|
16521
16538
|
}
|
|
16522
|
-
case
|
|
16539
|
+
case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {
|
|
16523
16540
|
this._stateScriptDataEscapedLessThanSign(t);
|
|
16524
16541
|
break;
|
|
16525
16542
|
}
|
|
16526
|
-
case
|
|
16543
|
+
case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {
|
|
16527
16544
|
this._stateScriptDataEscapedEndTagOpen(t);
|
|
16528
16545
|
break;
|
|
16529
16546
|
}
|
|
16530
|
-
case
|
|
16547
|
+
case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {
|
|
16531
16548
|
this._stateScriptDataEscapedEndTagName(t);
|
|
16532
16549
|
break;
|
|
16533
16550
|
}
|
|
16534
|
-
case
|
|
16551
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPE_START: {
|
|
16535
16552
|
this._stateScriptDataDoubleEscapeStart(t);
|
|
16536
16553
|
break;
|
|
16537
16554
|
}
|
|
16538
|
-
case
|
|
16555
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED: {
|
|
16539
16556
|
this._stateScriptDataDoubleEscaped(t);
|
|
16540
16557
|
break;
|
|
16541
16558
|
}
|
|
16542
|
-
case
|
|
16559
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {
|
|
16543
16560
|
this._stateScriptDataDoubleEscapedDash(t);
|
|
16544
16561
|
break;
|
|
16545
16562
|
}
|
|
16546
|
-
case
|
|
16563
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {
|
|
16547
16564
|
this._stateScriptDataDoubleEscapedDashDash(t);
|
|
16548
16565
|
break;
|
|
16549
16566
|
}
|
|
16550
|
-
case
|
|
16567
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {
|
|
16551
16568
|
this._stateScriptDataDoubleEscapedLessThanSign(t);
|
|
16552
16569
|
break;
|
|
16553
16570
|
}
|
|
16554
|
-
case
|
|
16571
|
+
case B.SCRIPT_DATA_DOUBLE_ESCAPE_END: {
|
|
16555
16572
|
this._stateScriptDataDoubleEscapeEnd(t);
|
|
16556
16573
|
break;
|
|
16557
16574
|
}
|
|
16558
|
-
case
|
|
16575
|
+
case B.BEFORE_ATTRIBUTE_NAME: {
|
|
16559
16576
|
this._stateBeforeAttributeName(t);
|
|
16560
16577
|
break;
|
|
16561
16578
|
}
|
|
16562
|
-
case
|
|
16579
|
+
case B.ATTRIBUTE_NAME: {
|
|
16563
16580
|
this._stateAttributeName(t);
|
|
16564
16581
|
break;
|
|
16565
16582
|
}
|
|
16566
|
-
case
|
|
16583
|
+
case B.AFTER_ATTRIBUTE_NAME: {
|
|
16567
16584
|
this._stateAfterAttributeName(t);
|
|
16568
16585
|
break;
|
|
16569
16586
|
}
|
|
16570
|
-
case
|
|
16587
|
+
case B.BEFORE_ATTRIBUTE_VALUE: {
|
|
16571
16588
|
this._stateBeforeAttributeValue(t);
|
|
16572
16589
|
break;
|
|
16573
16590
|
}
|
|
16574
|
-
case
|
|
16591
|
+
case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {
|
|
16575
16592
|
this._stateAttributeValueDoubleQuoted(t);
|
|
16576
16593
|
break;
|
|
16577
16594
|
}
|
|
16578
|
-
case
|
|
16595
|
+
case B.ATTRIBUTE_VALUE_SINGLE_QUOTED: {
|
|
16579
16596
|
this._stateAttributeValueSingleQuoted(t);
|
|
16580
16597
|
break;
|
|
16581
16598
|
}
|
|
16582
|
-
case
|
|
16599
|
+
case B.ATTRIBUTE_VALUE_UNQUOTED: {
|
|
16583
16600
|
this._stateAttributeValueUnquoted(t);
|
|
16584
16601
|
break;
|
|
16585
16602
|
}
|
|
16586
|
-
case
|
|
16603
|
+
case B.AFTER_ATTRIBUTE_VALUE_QUOTED: {
|
|
16587
16604
|
this._stateAfterAttributeValueQuoted(t);
|
|
16588
16605
|
break;
|
|
16589
16606
|
}
|
|
16590
|
-
case
|
|
16607
|
+
case B.SELF_CLOSING_START_TAG: {
|
|
16591
16608
|
this._stateSelfClosingStartTag(t);
|
|
16592
16609
|
break;
|
|
16593
16610
|
}
|
|
16594
|
-
case
|
|
16611
|
+
case B.BOGUS_COMMENT: {
|
|
16595
16612
|
this._stateBogusComment(t);
|
|
16596
16613
|
break;
|
|
16597
16614
|
}
|
|
16598
|
-
case
|
|
16615
|
+
case B.MARKUP_DECLARATION_OPEN: {
|
|
16599
16616
|
this._stateMarkupDeclarationOpen(t);
|
|
16600
16617
|
break;
|
|
16601
16618
|
}
|
|
16602
|
-
case
|
|
16619
|
+
case B.COMMENT_START: {
|
|
16603
16620
|
this._stateCommentStart(t);
|
|
16604
16621
|
break;
|
|
16605
16622
|
}
|
|
16606
|
-
case
|
|
16623
|
+
case B.COMMENT_START_DASH: {
|
|
16607
16624
|
this._stateCommentStartDash(t);
|
|
16608
16625
|
break;
|
|
16609
16626
|
}
|
|
16610
|
-
case
|
|
16627
|
+
case B.COMMENT: {
|
|
16611
16628
|
this._stateComment(t);
|
|
16612
16629
|
break;
|
|
16613
16630
|
}
|
|
16614
|
-
case
|
|
16631
|
+
case B.COMMENT_LESS_THAN_SIGN: {
|
|
16615
16632
|
this._stateCommentLessThanSign(t);
|
|
16616
16633
|
break;
|
|
16617
16634
|
}
|
|
16618
|
-
case
|
|
16635
|
+
case B.COMMENT_LESS_THAN_SIGN_BANG: {
|
|
16619
16636
|
this._stateCommentLessThanSignBang(t);
|
|
16620
16637
|
break;
|
|
16621
16638
|
}
|
|
16622
|
-
case
|
|
16639
|
+
case B.COMMENT_LESS_THAN_SIGN_BANG_DASH: {
|
|
16623
16640
|
this._stateCommentLessThanSignBangDash(t);
|
|
16624
16641
|
break;
|
|
16625
16642
|
}
|
|
16626
|
-
case
|
|
16643
|
+
case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {
|
|
16627
16644
|
this._stateCommentLessThanSignBangDashDash(t);
|
|
16628
16645
|
break;
|
|
16629
16646
|
}
|
|
16630
|
-
case
|
|
16647
|
+
case B.COMMENT_END_DASH: {
|
|
16631
16648
|
this._stateCommentEndDash(t);
|
|
16632
16649
|
break;
|
|
16633
16650
|
}
|
|
16634
|
-
case
|
|
16651
|
+
case B.COMMENT_END: {
|
|
16635
16652
|
this._stateCommentEnd(t);
|
|
16636
16653
|
break;
|
|
16637
16654
|
}
|
|
16638
|
-
case
|
|
16655
|
+
case B.COMMENT_END_BANG: {
|
|
16639
16656
|
this._stateCommentEndBang(t);
|
|
16640
16657
|
break;
|
|
16641
16658
|
}
|
|
16642
|
-
case
|
|
16659
|
+
case B.DOCTYPE: {
|
|
16643
16660
|
this._stateDoctype(t);
|
|
16644
16661
|
break;
|
|
16645
16662
|
}
|
|
16646
|
-
case
|
|
16663
|
+
case B.BEFORE_DOCTYPE_NAME: {
|
|
16647
16664
|
this._stateBeforeDoctypeName(t);
|
|
16648
16665
|
break;
|
|
16649
16666
|
}
|
|
16650
|
-
case
|
|
16667
|
+
case B.DOCTYPE_NAME: {
|
|
16651
16668
|
this._stateDoctypeName(t);
|
|
16652
16669
|
break;
|
|
16653
16670
|
}
|
|
16654
|
-
case
|
|
16671
|
+
case B.AFTER_DOCTYPE_NAME: {
|
|
16655
16672
|
this._stateAfterDoctypeName(t);
|
|
16656
16673
|
break;
|
|
16657
16674
|
}
|
|
16658
|
-
case
|
|
16675
|
+
case B.AFTER_DOCTYPE_PUBLIC_KEYWORD: {
|
|
16659
16676
|
this._stateAfterDoctypePublicKeyword(t);
|
|
16660
16677
|
break;
|
|
16661
16678
|
}
|
|
16662
|
-
case
|
|
16679
|
+
case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {
|
|
16663
16680
|
this._stateBeforeDoctypePublicIdentifier(t);
|
|
16664
16681
|
break;
|
|
16665
16682
|
}
|
|
16666
|
-
case
|
|
16683
|
+
case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {
|
|
16667
16684
|
this._stateDoctypePublicIdentifierDoubleQuoted(t);
|
|
16668
16685
|
break;
|
|
16669
16686
|
}
|
|
16670
|
-
case
|
|
16687
|
+
case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {
|
|
16671
16688
|
this._stateDoctypePublicIdentifierSingleQuoted(t);
|
|
16672
16689
|
break;
|
|
16673
16690
|
}
|
|
16674
|
-
case
|
|
16691
|
+
case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {
|
|
16675
16692
|
this._stateAfterDoctypePublicIdentifier(t);
|
|
16676
16693
|
break;
|
|
16677
16694
|
}
|
|
16678
|
-
case
|
|
16695
|
+
case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {
|
|
16679
16696
|
this._stateBetweenDoctypePublicAndSystemIdentifiers(t);
|
|
16680
16697
|
break;
|
|
16681
16698
|
}
|
|
16682
|
-
case
|
|
16699
|
+
case B.AFTER_DOCTYPE_SYSTEM_KEYWORD: {
|
|
16683
16700
|
this._stateAfterDoctypeSystemKeyword(t);
|
|
16684
16701
|
break;
|
|
16685
16702
|
}
|
|
16686
|
-
case
|
|
16703
|
+
case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {
|
|
16687
16704
|
this._stateBeforeDoctypeSystemIdentifier(t);
|
|
16688
16705
|
break;
|
|
16689
16706
|
}
|
|
16690
|
-
case
|
|
16707
|
+
case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {
|
|
16691
16708
|
this._stateDoctypeSystemIdentifierDoubleQuoted(t);
|
|
16692
16709
|
break;
|
|
16693
16710
|
}
|
|
16694
|
-
case
|
|
16711
|
+
case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {
|
|
16695
16712
|
this._stateDoctypeSystemIdentifierSingleQuoted(t);
|
|
16696
16713
|
break;
|
|
16697
16714
|
}
|
|
16698
|
-
case
|
|
16715
|
+
case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {
|
|
16699
16716
|
this._stateAfterDoctypeSystemIdentifier(t);
|
|
16700
16717
|
break;
|
|
16701
16718
|
}
|
|
16702
|
-
case
|
|
16719
|
+
case B.BOGUS_DOCTYPE: {
|
|
16703
16720
|
this._stateBogusDoctype(t);
|
|
16704
16721
|
break;
|
|
16705
16722
|
}
|
|
16706
|
-
case
|
|
16723
|
+
case B.CDATA_SECTION: {
|
|
16707
16724
|
this._stateCdataSection(t);
|
|
16708
16725
|
break;
|
|
16709
16726
|
}
|
|
16710
|
-
case
|
|
16727
|
+
case B.CDATA_SECTION_BRACKET: {
|
|
16711
16728
|
this._stateCdataSectionBracket(t);
|
|
16712
16729
|
break;
|
|
16713
16730
|
}
|
|
16714
|
-
case
|
|
16731
|
+
case B.CDATA_SECTION_END: {
|
|
16715
16732
|
this._stateCdataSectionEnd(t);
|
|
16716
16733
|
break;
|
|
16717
16734
|
}
|
|
16718
|
-
case
|
|
16735
|
+
case B.CHARACTER_REFERENCE: {
|
|
16719
16736
|
this._stateCharacterReference();
|
|
16720
16737
|
break;
|
|
16721
16738
|
}
|
|
16722
|
-
case
|
|
16739
|
+
case B.AMBIGUOUS_AMPERSAND: {
|
|
16723
16740
|
this._stateAmbiguousAmpersand(t);
|
|
16724
16741
|
break;
|
|
16725
16742
|
}
|
|
@@ -16733,7 +16750,7 @@ class Iv {
|
|
|
16733
16750
|
_stateData(t) {
|
|
16734
16751
|
switch (t) {
|
|
16735
16752
|
case P.LESS_THAN_SIGN: {
|
|
16736
|
-
this.state =
|
|
16753
|
+
this.state = B.TAG_OPEN;
|
|
16737
16754
|
break;
|
|
16738
16755
|
}
|
|
16739
16756
|
case P.AMPERSAND: {
|
|
@@ -16761,7 +16778,7 @@ class Iv {
|
|
|
16761
16778
|
break;
|
|
16762
16779
|
}
|
|
16763
16780
|
case P.LESS_THAN_SIGN: {
|
|
16764
|
-
this.state =
|
|
16781
|
+
this.state = B.RCDATA_LESS_THAN_SIGN;
|
|
16765
16782
|
break;
|
|
16766
16783
|
}
|
|
16767
16784
|
case P.NULL: {
|
|
@@ -16781,7 +16798,7 @@ class Iv {
|
|
|
16781
16798
|
_stateRawtext(t) {
|
|
16782
16799
|
switch (t) {
|
|
16783
16800
|
case P.LESS_THAN_SIGN: {
|
|
16784
|
-
this.state =
|
|
16801
|
+
this.state = B.RAWTEXT_LESS_THAN_SIGN;
|
|
16785
16802
|
break;
|
|
16786
16803
|
}
|
|
16787
16804
|
case P.NULL: {
|
|
@@ -16801,7 +16818,7 @@ class Iv {
|
|
|
16801
16818
|
_stateScriptData(t) {
|
|
16802
16819
|
switch (t) {
|
|
16803
16820
|
case P.LESS_THAN_SIGN: {
|
|
16804
|
-
this.state =
|
|
16821
|
+
this.state = B.SCRIPT_DATA_LESS_THAN_SIGN;
|
|
16805
16822
|
break;
|
|
16806
16823
|
}
|
|
16807
16824
|
case P.NULL: {
|
|
@@ -16836,19 +16853,19 @@ class Iv {
|
|
|
16836
16853
|
//------------------------------------------------------------------
|
|
16837
16854
|
_stateTagOpen(t) {
|
|
16838
16855
|
if (Pt(t))
|
|
16839
|
-
this._createStartTagToken(), this.state =
|
|
16856
|
+
this._createStartTagToken(), this.state = B.TAG_NAME, this._stateTagName(t);
|
|
16840
16857
|
else
|
|
16841
16858
|
switch (t) {
|
|
16842
16859
|
case P.EXCLAMATION_MARK: {
|
|
16843
|
-
this.state =
|
|
16860
|
+
this.state = B.MARKUP_DECLARATION_OPEN;
|
|
16844
16861
|
break;
|
|
16845
16862
|
}
|
|
16846
16863
|
case P.SOLIDUS: {
|
|
16847
|
-
this.state =
|
|
16864
|
+
this.state = B.END_TAG_OPEN;
|
|
16848
16865
|
break;
|
|
16849
16866
|
}
|
|
16850
16867
|
case P.QUESTION_MARK: {
|
|
16851
|
-
this._err(X.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state =
|
|
16868
|
+
this._err(X.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = B.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
16852
16869
|
break;
|
|
16853
16870
|
}
|
|
16854
16871
|
case P.EOF: {
|
|
@@ -16856,18 +16873,18 @@ class Iv {
|
|
|
16856
16873
|
break;
|
|
16857
16874
|
}
|
|
16858
16875
|
default:
|
|
16859
|
-
this._err(X.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state =
|
|
16876
|
+
this._err(X.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = B.DATA, this._stateData(t);
|
|
16860
16877
|
}
|
|
16861
16878
|
}
|
|
16862
16879
|
// End tag open state
|
|
16863
16880
|
//------------------------------------------------------------------
|
|
16864
16881
|
_stateEndTagOpen(t) {
|
|
16865
16882
|
if (Pt(t))
|
|
16866
|
-
this._createEndTagToken(), this.state =
|
|
16883
|
+
this._createEndTagToken(), this.state = B.TAG_NAME, this._stateTagName(t);
|
|
16867
16884
|
else
|
|
16868
16885
|
switch (t) {
|
|
16869
16886
|
case P.GREATER_THAN_SIGN: {
|
|
16870
|
-
this._err(X.missingEndTagName), this.state =
|
|
16887
|
+
this._err(X.missingEndTagName), this.state = B.DATA;
|
|
16871
16888
|
break;
|
|
16872
16889
|
}
|
|
16873
16890
|
case P.EOF: {
|
|
@@ -16875,7 +16892,7 @@ class Iv {
|
|
|
16875
16892
|
break;
|
|
16876
16893
|
}
|
|
16877
16894
|
default:
|
|
16878
|
-
this._err(X.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state =
|
|
16895
|
+
this._err(X.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = B.BOGUS_COMMENT, this._stateBogusComment(t);
|
|
16879
16896
|
}
|
|
16880
16897
|
}
|
|
16881
16898
|
// Tag name state
|
|
@@ -16887,15 +16904,15 @@ class Iv {
|
|
|
16887
16904
|
case P.LINE_FEED:
|
|
16888
16905
|
case P.TABULATION:
|
|
16889
16906
|
case P.FORM_FEED: {
|
|
16890
|
-
this.state =
|
|
16907
|
+
this.state = B.BEFORE_ATTRIBUTE_NAME;
|
|
16891
16908
|
break;
|
|
16892
16909
|
}
|
|
16893
16910
|
case P.SOLIDUS: {
|
|
16894
|
-
this.state =
|
|
16911
|
+
this.state = B.SELF_CLOSING_START_TAG;
|
|
16895
16912
|
break;
|
|
16896
16913
|
}
|
|
16897
16914
|
case P.GREATER_THAN_SIGN: {
|
|
16898
|
-
this.state =
|
|
16915
|
+
this.state = B.DATA, this.emitCurrentTagToken();
|
|
16899
16916
|
break;
|
|
16900
16917
|
}
|
|
16901
16918
|
case P.NULL: {
|
|
@@ -16913,12 +16930,12 @@ class Iv {
|
|
|
16913
16930
|
// RCDATA less-than sign state
|
|
16914
16931
|
//------------------------------------------------------------------
|
|
16915
16932
|
_stateRcdataLessThanSign(t) {
|
|
16916
|
-
t === P.SOLIDUS ? this.state =
|
|
16933
|
+
t === P.SOLIDUS ? this.state = B.RCDATA_END_TAG_OPEN : (this._emitChars("<"), this.state = B.RCDATA, this._stateRcdata(t));
|
|
16917
16934
|
}
|
|
16918
16935
|
// RCDATA end tag open state
|
|
16919
16936
|
//------------------------------------------------------------------
|
|
16920
16937
|
_stateRcdataEndTagOpen(t) {
|
|
16921
|
-
Pt(t) ? (this.state =
|
|
16938
|
+
Pt(t) ? (this.state = B.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(t)) : (this._emitChars("</"), this.state = B.RCDATA, this._stateRcdata(t));
|
|
16922
16939
|
}
|
|
16923
16940
|
handleSpecialEndTag(t) {
|
|
16924
16941
|
if (!this.preprocessor.startsWith(this.lastStartTagName, !1))
|
|
@@ -16930,11 +16947,11 @@ class Iv {
|
|
|
16930
16947
|
case P.LINE_FEED:
|
|
16931
16948
|
case P.TABULATION:
|
|
16932
16949
|
case P.FORM_FEED:
|
|
16933
|
-
return this._advanceBy(this.lastStartTagName.length), this.state =
|
|
16950
|
+
return this._advanceBy(this.lastStartTagName.length), this.state = B.BEFORE_ATTRIBUTE_NAME, !1;
|
|
16934
16951
|
case P.SOLIDUS:
|
|
16935
|
-
return this._advanceBy(this.lastStartTagName.length), this.state =
|
|
16952
|
+
return this._advanceBy(this.lastStartTagName.length), this.state = B.SELF_CLOSING_START_TAG, !1;
|
|
16936
16953
|
case P.GREATER_THAN_SIGN:
|
|
16937
|
-
return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state =
|
|
16954
|
+
return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state = B.DATA, !1;
|
|
16938
16955
|
default:
|
|
16939
16956
|
return !this._ensureHibernation();
|
|
16940
16957
|
}
|
|
@@ -16942,69 +16959,69 @@ class Iv {
|
|
|
16942
16959
|
// RCDATA end tag name state
|
|
16943
16960
|
//------------------------------------------------------------------
|
|
16944
16961
|
_stateRcdataEndTagName(t) {
|
|
16945
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
16962
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.RCDATA, this._stateRcdata(t));
|
|
16946
16963
|
}
|
|
16947
16964
|
// RAWTEXT less-than sign state
|
|
16948
16965
|
//------------------------------------------------------------------
|
|
16949
16966
|
_stateRawtextLessThanSign(t) {
|
|
16950
|
-
t === P.SOLIDUS ? this.state =
|
|
16967
|
+
t === P.SOLIDUS ? this.state = B.RAWTEXT_END_TAG_OPEN : (this._emitChars("<"), this.state = B.RAWTEXT, this._stateRawtext(t));
|
|
16951
16968
|
}
|
|
16952
16969
|
// RAWTEXT end tag open state
|
|
16953
16970
|
//------------------------------------------------------------------
|
|
16954
16971
|
_stateRawtextEndTagOpen(t) {
|
|
16955
|
-
Pt(t) ? (this.state =
|
|
16972
|
+
Pt(t) ? (this.state = B.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(t)) : (this._emitChars("</"), this.state = B.RAWTEXT, this._stateRawtext(t));
|
|
16956
16973
|
}
|
|
16957
16974
|
// RAWTEXT end tag name state
|
|
16958
16975
|
//------------------------------------------------------------------
|
|
16959
16976
|
_stateRawtextEndTagName(t) {
|
|
16960
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
16977
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.RAWTEXT, this._stateRawtext(t));
|
|
16961
16978
|
}
|
|
16962
16979
|
// Script data less-than sign state
|
|
16963
16980
|
//------------------------------------------------------------------
|
|
16964
16981
|
_stateScriptDataLessThanSign(t) {
|
|
16965
16982
|
switch (t) {
|
|
16966
16983
|
case P.SOLIDUS: {
|
|
16967
|
-
this.state =
|
|
16984
|
+
this.state = B.SCRIPT_DATA_END_TAG_OPEN;
|
|
16968
16985
|
break;
|
|
16969
16986
|
}
|
|
16970
16987
|
case P.EXCLAMATION_MARK: {
|
|
16971
|
-
this.state =
|
|
16988
|
+
this.state = B.SCRIPT_DATA_ESCAPE_START, this._emitChars("<!");
|
|
16972
16989
|
break;
|
|
16973
16990
|
}
|
|
16974
16991
|
default:
|
|
16975
|
-
this._emitChars("<"), this.state =
|
|
16992
|
+
this._emitChars("<"), this.state = B.SCRIPT_DATA, this._stateScriptData(t);
|
|
16976
16993
|
}
|
|
16977
16994
|
}
|
|
16978
16995
|
// Script data end tag open state
|
|
16979
16996
|
//------------------------------------------------------------------
|
|
16980
16997
|
_stateScriptDataEndTagOpen(t) {
|
|
16981
|
-
Pt(t) ? (this.state =
|
|
16998
|
+
Pt(t) ? (this.state = B.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(t)) : (this._emitChars("</"), this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16982
16999
|
}
|
|
16983
17000
|
// Script data end tag name state
|
|
16984
17001
|
//------------------------------------------------------------------
|
|
16985
17002
|
_stateScriptDataEndTagName(t) {
|
|
16986
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
17003
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16987
17004
|
}
|
|
16988
17005
|
// Script data escape start state
|
|
16989
17006
|
//------------------------------------------------------------------
|
|
16990
17007
|
_stateScriptDataEscapeStart(t) {
|
|
16991
|
-
t === P.HYPHEN_MINUS ? (this.state =
|
|
17008
|
+
t === P.HYPHEN_MINUS ? (this.state = B.SCRIPT_DATA_ESCAPE_START_DASH, this._emitChars("-")) : (this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16992
17009
|
}
|
|
16993
17010
|
// Script data escape start dash state
|
|
16994
17011
|
//------------------------------------------------------------------
|
|
16995
17012
|
_stateScriptDataEscapeStartDash(t) {
|
|
16996
|
-
t === P.HYPHEN_MINUS ? (this.state =
|
|
17013
|
+
t === P.HYPHEN_MINUS ? (this.state = B.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-")) : (this.state = B.SCRIPT_DATA, this._stateScriptData(t));
|
|
16997
17014
|
}
|
|
16998
17015
|
// Script data escaped state
|
|
16999
17016
|
//------------------------------------------------------------------
|
|
17000
17017
|
_stateScriptDataEscaped(t) {
|
|
17001
17018
|
switch (t) {
|
|
17002
17019
|
case P.HYPHEN_MINUS: {
|
|
17003
|
-
this.state =
|
|
17020
|
+
this.state = B.SCRIPT_DATA_ESCAPED_DASH, this._emitChars("-");
|
|
17004
17021
|
break;
|
|
17005
17022
|
}
|
|
17006
17023
|
case P.LESS_THAN_SIGN: {
|
|
17007
|
-
this.state =
|
|
17024
|
+
this.state = B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
17008
17025
|
break;
|
|
17009
17026
|
}
|
|
17010
17027
|
case P.NULL: {
|
|
@@ -17024,15 +17041,15 @@ class Iv {
|
|
|
17024
17041
|
_stateScriptDataEscapedDash(t) {
|
|
17025
17042
|
switch (t) {
|
|
17026
17043
|
case P.HYPHEN_MINUS: {
|
|
17027
|
-
this.state =
|
|
17044
|
+
this.state = B.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-");
|
|
17028
17045
|
break;
|
|
17029
17046
|
}
|
|
17030
17047
|
case P.LESS_THAN_SIGN: {
|
|
17031
|
-
this.state =
|
|
17048
|
+
this.state = B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
17032
17049
|
break;
|
|
17033
17050
|
}
|
|
17034
17051
|
case P.NULL: {
|
|
17035
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17052
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_ESCAPED, this._emitChars(Re);
|
|
17036
17053
|
break;
|
|
17037
17054
|
}
|
|
17038
17055
|
case P.EOF: {
|
|
@@ -17040,7 +17057,7 @@ class Iv {
|
|
|
17040
17057
|
break;
|
|
17041
17058
|
}
|
|
17042
17059
|
default:
|
|
17043
|
-
this.state =
|
|
17060
|
+
this.state = B.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
|
|
17044
17061
|
}
|
|
17045
17062
|
}
|
|
17046
17063
|
// Script data escaped dash dash state
|
|
@@ -17052,15 +17069,15 @@ class Iv {
|
|
|
17052
17069
|
break;
|
|
17053
17070
|
}
|
|
17054
17071
|
case P.LESS_THAN_SIGN: {
|
|
17055
|
-
this.state =
|
|
17072
|
+
this.state = B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
|
|
17056
17073
|
break;
|
|
17057
17074
|
}
|
|
17058
17075
|
case P.GREATER_THAN_SIGN: {
|
|
17059
|
-
this.state =
|
|
17076
|
+
this.state = B.SCRIPT_DATA, this._emitChars(">");
|
|
17060
17077
|
break;
|
|
17061
17078
|
}
|
|
17062
17079
|
case P.NULL: {
|
|
17063
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17080
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_ESCAPED, this._emitChars(Re);
|
|
17064
17081
|
break;
|
|
17065
17082
|
}
|
|
17066
17083
|
case P.EOF: {
|
|
@@ -17068,23 +17085,23 @@ class Iv {
|
|
|
17068
17085
|
break;
|
|
17069
17086
|
}
|
|
17070
17087
|
default:
|
|
17071
|
-
this.state =
|
|
17088
|
+
this.state = B.SCRIPT_DATA_ESCAPED, this._emitCodePoint(t);
|
|
17072
17089
|
}
|
|
17073
17090
|
}
|
|
17074
17091
|
// Script data escaped less-than sign state
|
|
17075
17092
|
//------------------------------------------------------------------
|
|
17076
17093
|
_stateScriptDataEscapedLessThanSign(t) {
|
|
17077
|
-
t === P.SOLIDUS ? this.state =
|
|
17094
|
+
t === P.SOLIDUS ? this.state = B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Pt(t) ? (this._emitChars("<"), this.state = B.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(t)) : (this._emitChars("<"), this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17078
17095
|
}
|
|
17079
17096
|
// Script data escaped end tag open state
|
|
17080
17097
|
//------------------------------------------------------------------
|
|
17081
17098
|
_stateScriptDataEscapedEndTagOpen(t) {
|
|
17082
|
-
Pt(t) ? (this.state =
|
|
17099
|
+
Pt(t) ? (this.state = B.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(t)) : (this._emitChars("</"), this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17083
17100
|
}
|
|
17084
17101
|
// Script data escaped end tag name state
|
|
17085
17102
|
//------------------------------------------------------------------
|
|
17086
17103
|
_stateScriptDataEscapedEndTagName(t) {
|
|
17087
|
-
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state =
|
|
17104
|
+
this.handleSpecialEndTag(t) && (this._emitChars("</"), this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17088
17105
|
}
|
|
17089
17106
|
// Script data double escape start state
|
|
17090
17107
|
//------------------------------------------------------------------
|
|
@@ -17093,19 +17110,19 @@ class Iv {
|
|
|
17093
17110
|
this._emitCodePoint(t);
|
|
17094
17111
|
for (let a = 0; a < et.SCRIPT.length; a++)
|
|
17095
17112
|
this._emitCodePoint(this._consume());
|
|
17096
|
-
this.state =
|
|
17097
|
-
} else this._ensureHibernation() || (this.state =
|
|
17113
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
17114
|
+
} else this._ensureHibernation() || (this.state = B.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
17098
17115
|
}
|
|
17099
17116
|
// Script data double escaped state
|
|
17100
17117
|
//------------------------------------------------------------------
|
|
17101
17118
|
_stateScriptDataDoubleEscaped(t) {
|
|
17102
17119
|
switch (t) {
|
|
17103
17120
|
case P.HYPHEN_MINUS: {
|
|
17104
|
-
this.state =
|
|
17121
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH, this._emitChars("-");
|
|
17105
17122
|
break;
|
|
17106
17123
|
}
|
|
17107
17124
|
case P.LESS_THAN_SIGN: {
|
|
17108
|
-
this.state =
|
|
17125
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
|
|
17109
17126
|
break;
|
|
17110
17127
|
}
|
|
17111
17128
|
case P.NULL: {
|
|
@@ -17125,15 +17142,15 @@ class Iv {
|
|
|
17125
17142
|
_stateScriptDataDoubleEscapedDash(t) {
|
|
17126
17143
|
switch (t) {
|
|
17127
17144
|
case P.HYPHEN_MINUS: {
|
|
17128
|
-
this.state =
|
|
17145
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, this._emitChars("-");
|
|
17129
17146
|
break;
|
|
17130
17147
|
}
|
|
17131
17148
|
case P.LESS_THAN_SIGN: {
|
|
17132
|
-
this.state =
|
|
17149
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
|
|
17133
17150
|
break;
|
|
17134
17151
|
}
|
|
17135
17152
|
case P.NULL: {
|
|
17136
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17153
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Re);
|
|
17137
17154
|
break;
|
|
17138
17155
|
}
|
|
17139
17156
|
case P.EOF: {
|
|
@@ -17141,7 +17158,7 @@ class Iv {
|
|
|
17141
17158
|
break;
|
|
17142
17159
|
}
|
|
17143
17160
|
default:
|
|
17144
|
-
this.state =
|
|
17161
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
|
|
17145
17162
|
}
|
|
17146
17163
|
}
|
|
17147
17164
|
// Script data double escaped dash dash state
|
|
@@ -17153,15 +17170,15 @@ class Iv {
|
|
|
17153
17170
|
break;
|
|
17154
17171
|
}
|
|
17155
17172
|
case P.LESS_THAN_SIGN: {
|
|
17156
|
-
this.state =
|
|
17173
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
|
|
17157
17174
|
break;
|
|
17158
17175
|
}
|
|
17159
17176
|
case P.GREATER_THAN_SIGN: {
|
|
17160
|
-
this.state =
|
|
17177
|
+
this.state = B.SCRIPT_DATA, this._emitChars(">");
|
|
17161
17178
|
break;
|
|
17162
17179
|
}
|
|
17163
17180
|
case P.NULL: {
|
|
17164
|
-
this._err(X.unexpectedNullCharacter), this.state =
|
|
17181
|
+
this._err(X.unexpectedNullCharacter), this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Re);
|
|
17165
17182
|
break;
|
|
17166
17183
|
}
|
|
17167
17184
|
case P.EOF: {
|
|
@@ -17169,13 +17186,13 @@ class Iv {
|
|
|
17169
17186
|
break;
|
|
17170
17187
|
}
|
|
17171
17188
|
default:
|
|
17172
|
-
this.state =
|
|
17189
|
+
this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(t);
|
|
17173
17190
|
}
|
|
17174
17191
|
}
|
|
17175
17192
|
// Script data double escaped less-than sign state
|
|
17176
17193
|
//------------------------------------------------------------------
|
|
17177
17194
|
_stateScriptDataDoubleEscapedLessThanSign(t) {
|
|
17178
|
-
t === P.SOLIDUS ? (this.state =
|
|
17195
|
+
t === P.SOLIDUS ? (this.state = B.SCRIPT_DATA_DOUBLE_ESCAPE_END, this._emitChars("/")) : (this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
|
|
17179
17196
|
}
|
|
17180
17197
|
// Script data double escape end state
|
|
17181
17198
|
//------------------------------------------------------------------
|
|
@@ -17184,8 +17201,8 @@ class Iv {
|
|
|
17184
17201
|
this._emitCodePoint(t);
|
|
17185
17202
|
for (let a = 0; a < et.SCRIPT.length; a++)
|
|
17186
17203
|
this._emitCodePoint(this._consume());
|
|
17187
|
-
this.state =
|
|
17188
|
-
} else this._ensureHibernation() || (this.state =
|
|
17204
|
+
this.state = B.SCRIPT_DATA_ESCAPED;
|
|
17205
|
+
} else this._ensureHibernation() || (this.state = B.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
|
|
17189
17206
|
}
|
|
17190
17207
|
// Before attribute name state
|
|
17191
17208
|
//------------------------------------------------------------------
|
|
@@ -17199,15 +17216,15 @@ class Iv {
|
|
|
17199
17216
|
case P.SOLIDUS:
|
|
17200
17217
|
case P.GREATER_THAN_SIGN:
|
|
17201
17218
|
case P.EOF: {
|
|
17202
|
-
this.state =
|
|
17219
|
+
this.state = B.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
|
|
17203
17220
|
break;
|
|
17204
17221
|
}
|
|
17205
17222
|
case P.EQUALS_SIGN: {
|
|
17206
|
-
this._err(X.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state =
|
|
17223
|
+
this._err(X.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = B.ATTRIBUTE_NAME;
|
|
17207
17224
|
break;
|
|
17208
17225
|
}
|
|
17209
17226
|
default:
|
|
17210
|
-
this._createAttr(""), this.state =
|
|
17227
|
+
this._createAttr(""), this.state = B.ATTRIBUTE_NAME, this._stateAttributeName(t);
|
|
17211
17228
|
}
|
|
17212
17229
|
}
|
|
17213
17230
|
// Attribute name state
|
|
@@ -17221,11 +17238,11 @@ class Iv {
|
|
|
17221
17238
|
case P.SOLIDUS:
|
|
17222
17239
|
case P.GREATER_THAN_SIGN:
|
|
17223
17240
|
case P.EOF: {
|
|
17224
|
-
this._leaveAttrName(), this.state =
|
|
17241
|
+
this._leaveAttrName(), this.state = B.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(t);
|
|
17225
17242
|
break;
|
|
17226
17243
|
}
|
|
17227
17244
|
case P.EQUALS_SIGN: {
|
|
17228
|
-
this._leaveAttrName(), this.state =
|
|
17245
|
+
this._leaveAttrName(), this.state = B.BEFORE_ATTRIBUTE_VALUE;
|
|
17229
17246
|
break;
|
|
17230
17247
|
}
|
|
17231
17248
|
case P.QUOTATION_MARK:
|
|
@@ -17252,15 +17269,15 @@ class Iv {
|
|
|
17252
17269
|
case P.FORM_FEED:
|
|
17253
17270
|
break;
|
|
17254
17271
|
case P.SOLIDUS: {
|
|
17255
|
-
this.state =
|
|
17272
|
+
this.state = B.SELF_CLOSING_START_TAG;
|
|
17256
17273
|
break;
|
|
17257
17274
|
}
|
|
17258
17275
|
case P.EQUALS_SIGN: {
|
|
17259
|
-
this.state =
|
|
17276
|
+
this.state = B.BEFORE_ATTRIBUTE_VALUE;
|
|
17260
17277
|
break;
|
|
17261
17278
|
}
|
|
17262
17279
|
case P.GREATER_THAN_SIGN: {
|
|
17263
|
-
this.state =
|
|
17280
|
+
this.state = B.DATA, this.emitCurrentTagToken();
|
|
17264
17281
|
break;
|
|
17265
17282
|
}
|
|
17266
17283
|
case P.EOF: {
|
|
@@ -17268,7 +17285,7 @@ class Iv {
|
|
|
17268
17285
|
break;
|
|
17269
17286
|
}
|
|
17270
17287
|
default:
|
|
17271
|
-
this._createAttr(""), this.state =
|
|
17288
|
+
this._createAttr(""), this.state = B.ATTRIBUTE_NAME, this._stateAttributeName(t);
|
|
17272
17289
|
}
|
|
17273
17290
|
}
|
|
17274
17291
|
// Before attribute value state
|
|
@@ -17281,19 +17298,19 @@ class Iv {
|
|
|
17281
17298
|
case P.FORM_FEED:
|
|
17282
17299
|
break;
|
|
17283
17300
|
case P.QUOTATION_MARK: {
|
|
17284
|
-
this.state =
|
|
17301
|
+
this.state = B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
|
|
17285
17302
|
break;
|
|
17286
17303
|
}
|
|
17287
17304
|
case P.APOSTROPHE: {
|
|
17288
|
-
this.state =
|
|
17305
|
+
this.state = B.ATTRIBUTE_VALUE_SINGLE_QUOTED;
|
|
17289
17306
|
break;
|
|
17290
17307
|
}
|
|
17291
17308
|
case P.GREATER_THAN_SIGN: {
|
|
17292
|
-
this._err(X.missingAttributeValue), this.state =
|
|
17309
|
+
this._err(X.missingAttributeValue), this.state = B.DATA, this.emitCurrentTagToken();
|
|
17293
17310
|
break;
|
|
17294
17311
|
}
|
|
17295
17312
|
default:
|
|
17296
|
-
this.state =
|
|
17313
|
+
this.state = B.ATTRIBUTE_VALUE_UNQUOTED, this._stateAttributeValueUnquoted(t);
|
|
17297
17314
|
}
|
|
17298
17315
|
}
|
|
17299
17316
|
// Attribute value (double-quoted) state
|
|
@@ -17301,7 +17318,7 @@ class Iv {
|
|
|
17301
17318
|
_stateAttributeValueDoubleQuoted(t) {
|
|
17302
17319
|
switch (t) {
|
|
17303
17320
|
case P.QUOTATION_MARK: {
|
|
17304
|
-
this.state =
|
|
17321
|
+
this.state = B.AFTER_ATTRIBUTE_VALUE_QUOTED;
|
|
17305
17322
|
break;
|
|
17306
17323
|
}
|
|
17307
17324
|
case P.AMPERSAND: {
|
|
@@ -17325,7 +17342,7 @@ class Iv {
|
|
|
17325
17342
|
_stateAttributeValueSingleQuoted(t) {
|
|
17326
17343
|
switch (t) {
|
|
17327
17344
|
case P.APOSTROPHE: {
|
|
17328
|
-
this.state =
|
|
17345
|
+
this.state = B.AFTER_ATTRIBUTE_VALUE_QUOTED;
|
|
17329
17346
|
break;
|
|
17330
17347
|
}
|
|
17331
17348
|
case P.AMPERSAND: {
|
|
@@ -17352,7 +17369,7 @@ class Iv {
|
|
|
17352
17369
|
case P.LINE_FEED:
|
|
17353
17370
|
case P.TABULATION:
|
|
17354
17371
|
case P.FORM_FEED: {
|
|
17355
|
-
this._leaveAttrValue(), this.state =
|
|
17372
|
+
this._leaveAttrValue(), this.state = B.BEFORE_ATTRIBUTE_NAME;
|
|
17356
17373
|
break;
|
|
17357
17374
|
}
|
|
17358
17375
|
case P.AMPERSAND: {
|
|
@@ -17360,7 +17377,7 @@ class Iv {
|
|
|
17360
17377
|
break;
|
|
17361
17378
|
}
|
|
17362
17379
|
case P.GREATER_THAN_SIGN: {
|
|
17363
|
-
this._leaveAttrValue(), this.state =
|
|
17380
|
+
this._leaveAttrValue(), this.state = B.DATA, this.emitCurrentTagToken();
|
|
17364
17381
|
break;
|
|
17365
17382
|
}
|
|
17366
17383
|
case P.NULL: {
|
|
@@ -17391,15 +17408,15 @@ class Iv {
|
|
|
17391
17408
|
case P.LINE_FEED:
|
|
17392
17409
|
case P.TABULATION:
|
|
17393
17410
|
case P.FORM_FEED: {
|
|
17394
|
-
this._leaveAttrValue(), this.state =
|
|
17411
|
+
this._leaveAttrValue(), this.state = B.BEFORE_ATTRIBUTE_NAME;
|
|
17395
17412
|
break;
|
|
17396
17413
|
}
|
|
17397
17414
|
case P.SOLIDUS: {
|
|
17398
|
-
this._leaveAttrValue(), this.state =
|
|
17415
|
+
this._leaveAttrValue(), this.state = B.SELF_CLOSING_START_TAG;
|
|
17399
17416
|
break;
|
|
17400
17417
|
}
|
|
17401
17418
|
case P.GREATER_THAN_SIGN: {
|
|
17402
|
-
this._leaveAttrValue(), this.state =
|
|
17419
|
+
this._leaveAttrValue(), this.state = B.DATA, this.emitCurrentTagToken();
|
|
17403
17420
|
break;
|
|
17404
17421
|
}
|
|
17405
17422
|
case P.EOF: {
|
|
@@ -17407,7 +17424,7 @@ class Iv {
|
|
|
17407
17424
|
break;
|
|
17408
17425
|
}
|
|
17409
17426
|
default:
|
|
17410
|
-
this._err(X.missingWhitespaceBetweenAttributes), this.state =
|
|
17427
|
+
this._err(X.missingWhitespaceBetweenAttributes), this.state = B.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
17411
17428
|
}
|
|
17412
17429
|
}
|
|
17413
17430
|
// Self-closing start tag state
|
|
@@ -17416,7 +17433,7 @@ class Iv {
|
|
|
17416
17433
|
switch (t) {
|
|
17417
17434
|
case P.GREATER_THAN_SIGN: {
|
|
17418
17435
|
const a = this.currentToken;
|
|
17419
|
-
a.selfClosing = !0, this.state =
|
|
17436
|
+
a.selfClosing = !0, this.state = B.DATA, this.emitCurrentTagToken();
|
|
17420
17437
|
break;
|
|
17421
17438
|
}
|
|
17422
17439
|
case P.EOF: {
|
|
@@ -17424,7 +17441,7 @@ class Iv {
|
|
|
17424
17441
|
break;
|
|
17425
17442
|
}
|
|
17426
17443
|
default:
|
|
17427
|
-
this._err(X.unexpectedSolidusInTag), this.state =
|
|
17444
|
+
this._err(X.unexpectedSolidusInTag), this.state = B.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
|
|
17428
17445
|
}
|
|
17429
17446
|
}
|
|
17430
17447
|
// Bogus comment state
|
|
@@ -17433,7 +17450,7 @@ class Iv {
|
|
|
17433
17450
|
const a = this.currentToken;
|
|
17434
17451
|
switch (t) {
|
|
17435
17452
|
case P.GREATER_THAN_SIGN: {
|
|
17436
|
-
this.state =
|
|
17453
|
+
this.state = B.DATA, this.emitCurrentComment(a);
|
|
17437
17454
|
break;
|
|
17438
17455
|
}
|
|
17439
17456
|
case P.EOF: {
|
|
@@ -17451,24 +17468,24 @@ class Iv {
|
|
|
17451
17468
|
// Markup declaration open state
|
|
17452
17469
|
//------------------------------------------------------------------
|
|
17453
17470
|
_stateMarkupDeclarationOpen(t) {
|
|
17454
|
-
this._consumeSequenceIfMatch(et.DASH_DASH, !0) ? (this._createCommentToken(et.DASH_DASH.length + 1), this.state =
|
|
17471
|
+
this._consumeSequenceIfMatch(et.DASH_DASH, !0) ? (this._createCommentToken(et.DASH_DASH.length + 1), this.state = B.COMMENT_START) : this._consumeSequenceIfMatch(et.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(et.DOCTYPE.length + 1), this.state = B.DOCTYPE) : this._consumeSequenceIfMatch(et.CDATA_START, !0) ? this.inForeignNode ? this.state = B.CDATA_SECTION : (this._err(X.cdataInHtmlContent), this._createCommentToken(et.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = B.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(X.incorrectlyOpenedComment), this._createCommentToken(2), this.state = B.BOGUS_COMMENT, this._stateBogusComment(t));
|
|
17455
17472
|
}
|
|
17456
17473
|
// Comment start state
|
|
17457
17474
|
//------------------------------------------------------------------
|
|
17458
17475
|
_stateCommentStart(t) {
|
|
17459
17476
|
switch (t) {
|
|
17460
17477
|
case P.HYPHEN_MINUS: {
|
|
17461
|
-
this.state =
|
|
17478
|
+
this.state = B.COMMENT_START_DASH;
|
|
17462
17479
|
break;
|
|
17463
17480
|
}
|
|
17464
17481
|
case P.GREATER_THAN_SIGN: {
|
|
17465
|
-
this._err(X.abruptClosingOfEmptyComment), this.state =
|
|
17482
|
+
this._err(X.abruptClosingOfEmptyComment), this.state = B.DATA;
|
|
17466
17483
|
const a = this.currentToken;
|
|
17467
17484
|
this.emitCurrentComment(a);
|
|
17468
17485
|
break;
|
|
17469
17486
|
}
|
|
17470
17487
|
default:
|
|
17471
|
-
this.state =
|
|
17488
|
+
this.state = B.COMMENT, this._stateComment(t);
|
|
17472
17489
|
}
|
|
17473
17490
|
}
|
|
17474
17491
|
// Comment start dash state
|
|
@@ -17477,11 +17494,11 @@ class Iv {
|
|
|
17477
17494
|
const a = this.currentToken;
|
|
17478
17495
|
switch (t) {
|
|
17479
17496
|
case P.HYPHEN_MINUS: {
|
|
17480
|
-
this.state =
|
|
17497
|
+
this.state = B.COMMENT_END;
|
|
17481
17498
|
break;
|
|
17482
17499
|
}
|
|
17483
17500
|
case P.GREATER_THAN_SIGN: {
|
|
17484
|
-
this._err(X.abruptClosingOfEmptyComment), this.state =
|
|
17501
|
+
this._err(X.abruptClosingOfEmptyComment), this.state = B.DATA, this.emitCurrentComment(a);
|
|
17485
17502
|
break;
|
|
17486
17503
|
}
|
|
17487
17504
|
case P.EOF: {
|
|
@@ -17489,7 +17506,7 @@ class Iv {
|
|
|
17489
17506
|
break;
|
|
17490
17507
|
}
|
|
17491
17508
|
default:
|
|
17492
|
-
a.data += "-", this.state =
|
|
17509
|
+
a.data += "-", this.state = B.COMMENT, this._stateComment(t);
|
|
17493
17510
|
}
|
|
17494
17511
|
}
|
|
17495
17512
|
// Comment state
|
|
@@ -17498,11 +17515,11 @@ class Iv {
|
|
|
17498
17515
|
const a = this.currentToken;
|
|
17499
17516
|
switch (t) {
|
|
17500
17517
|
case P.HYPHEN_MINUS: {
|
|
17501
|
-
this.state =
|
|
17518
|
+
this.state = B.COMMENT_END_DASH;
|
|
17502
17519
|
break;
|
|
17503
17520
|
}
|
|
17504
17521
|
case P.LESS_THAN_SIGN: {
|
|
17505
|
-
a.data += "<", this.state =
|
|
17522
|
+
a.data += "<", this.state = B.COMMENT_LESS_THAN_SIGN;
|
|
17506
17523
|
break;
|
|
17507
17524
|
}
|
|
17508
17525
|
case P.NULL: {
|
|
@@ -17523,7 +17540,7 @@ class Iv {
|
|
|
17523
17540
|
const a = this.currentToken;
|
|
17524
17541
|
switch (t) {
|
|
17525
17542
|
case P.EXCLAMATION_MARK: {
|
|
17526
|
-
a.data += "!", this.state =
|
|
17543
|
+
a.data += "!", this.state = B.COMMENT_LESS_THAN_SIGN_BANG;
|
|
17527
17544
|
break;
|
|
17528
17545
|
}
|
|
17529
17546
|
case P.LESS_THAN_SIGN: {
|
|
@@ -17531,23 +17548,23 @@ class Iv {
|
|
|
17531
17548
|
break;
|
|
17532
17549
|
}
|
|
17533
17550
|
default:
|
|
17534
|
-
this.state =
|
|
17551
|
+
this.state = B.COMMENT, this._stateComment(t);
|
|
17535
17552
|
}
|
|
17536
17553
|
}
|
|
17537
17554
|
// Comment less-than sign bang state
|
|
17538
17555
|
//------------------------------------------------------------------
|
|
17539
17556
|
_stateCommentLessThanSignBang(t) {
|
|
17540
|
-
t === P.HYPHEN_MINUS ? this.state =
|
|
17557
|
+
t === P.HYPHEN_MINUS ? this.state = B.COMMENT_LESS_THAN_SIGN_BANG_DASH : (this.state = B.COMMENT, this._stateComment(t));
|
|
17541
17558
|
}
|
|
17542
17559
|
// Comment less-than sign bang dash state
|
|
17543
17560
|
//------------------------------------------------------------------
|
|
17544
17561
|
_stateCommentLessThanSignBangDash(t) {
|
|
17545
|
-
t === P.HYPHEN_MINUS ? this.state =
|
|
17562
|
+
t === P.HYPHEN_MINUS ? this.state = B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH : (this.state = B.COMMENT_END_DASH, this._stateCommentEndDash(t));
|
|
17546
17563
|
}
|
|
17547
17564
|
// Comment less-than sign bang dash dash state
|
|
17548
17565
|
//------------------------------------------------------------------
|
|
17549
17566
|
_stateCommentLessThanSignBangDashDash(t) {
|
|
17550
|
-
t !== P.GREATER_THAN_SIGN && t !== P.EOF && this._err(X.nestedComment), this.state =
|
|
17567
|
+
t !== P.GREATER_THAN_SIGN && t !== P.EOF && this._err(X.nestedComment), this.state = B.COMMENT_END, this._stateCommentEnd(t);
|
|
17551
17568
|
}
|
|
17552
17569
|
// Comment end dash state
|
|
17553
17570
|
//------------------------------------------------------------------
|
|
@@ -17555,7 +17572,7 @@ class Iv {
|
|
|
17555
17572
|
const a = this.currentToken;
|
|
17556
17573
|
switch (t) {
|
|
17557
17574
|
case P.HYPHEN_MINUS: {
|
|
17558
|
-
this.state =
|
|
17575
|
+
this.state = B.COMMENT_END;
|
|
17559
17576
|
break;
|
|
17560
17577
|
}
|
|
17561
17578
|
case P.EOF: {
|
|
@@ -17563,7 +17580,7 @@ class Iv {
|
|
|
17563
17580
|
break;
|
|
17564
17581
|
}
|
|
17565
17582
|
default:
|
|
17566
|
-
a.data += "-", this.state =
|
|
17583
|
+
a.data += "-", this.state = B.COMMENT, this._stateComment(t);
|
|
17567
17584
|
}
|
|
17568
17585
|
}
|
|
17569
17586
|
// Comment end state
|
|
@@ -17572,11 +17589,11 @@ class Iv {
|
|
|
17572
17589
|
const a = this.currentToken;
|
|
17573
17590
|
switch (t) {
|
|
17574
17591
|
case P.GREATER_THAN_SIGN: {
|
|
17575
|
-
this.state =
|
|
17592
|
+
this.state = B.DATA, this.emitCurrentComment(a);
|
|
17576
17593
|
break;
|
|
17577
17594
|
}
|
|
17578
17595
|
case P.EXCLAMATION_MARK: {
|
|
17579
|
-
this.state =
|
|
17596
|
+
this.state = B.COMMENT_END_BANG;
|
|
17580
17597
|
break;
|
|
17581
17598
|
}
|
|
17582
17599
|
case P.HYPHEN_MINUS: {
|
|
@@ -17588,7 +17605,7 @@ class Iv {
|
|
|
17588
17605
|
break;
|
|
17589
17606
|
}
|
|
17590
17607
|
default:
|
|
17591
|
-
a.data += "--", this.state =
|
|
17608
|
+
a.data += "--", this.state = B.COMMENT, this._stateComment(t);
|
|
17592
17609
|
}
|
|
17593
17610
|
}
|
|
17594
17611
|
// Comment end bang state
|
|
@@ -17597,11 +17614,11 @@ class Iv {
|
|
|
17597
17614
|
const a = this.currentToken;
|
|
17598
17615
|
switch (t) {
|
|
17599
17616
|
case P.HYPHEN_MINUS: {
|
|
17600
|
-
a.data += "--!", this.state =
|
|
17617
|
+
a.data += "--!", this.state = B.COMMENT_END_DASH;
|
|
17601
17618
|
break;
|
|
17602
17619
|
}
|
|
17603
17620
|
case P.GREATER_THAN_SIGN: {
|
|
17604
|
-
this._err(X.incorrectlyClosedComment), this.state =
|
|
17621
|
+
this._err(X.incorrectlyClosedComment), this.state = B.DATA, this.emitCurrentComment(a);
|
|
17605
17622
|
break;
|
|
17606
17623
|
}
|
|
17607
17624
|
case P.EOF: {
|
|
@@ -17609,7 +17626,7 @@ class Iv {
|
|
|
17609
17626
|
break;
|
|
17610
17627
|
}
|
|
17611
17628
|
default:
|
|
17612
|
-
a.data += "--!", this.state =
|
|
17629
|
+
a.data += "--!", this.state = B.COMMENT, this._stateComment(t);
|
|
17613
17630
|
}
|
|
17614
17631
|
}
|
|
17615
17632
|
// DOCTYPE state
|
|
@@ -17620,11 +17637,11 @@ class Iv {
|
|
|
17620
17637
|
case P.LINE_FEED:
|
|
17621
17638
|
case P.TABULATION:
|
|
17622
17639
|
case P.FORM_FEED: {
|
|
17623
|
-
this.state =
|
|
17640
|
+
this.state = B.BEFORE_DOCTYPE_NAME;
|
|
17624
17641
|
break;
|
|
17625
17642
|
}
|
|
17626
17643
|
case P.GREATER_THAN_SIGN: {
|
|
17627
|
-
this.state =
|
|
17644
|
+
this.state = B.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
|
|
17628
17645
|
break;
|
|
17629
17646
|
}
|
|
17630
17647
|
case P.EOF: {
|
|
@@ -17634,14 +17651,14 @@ class Iv {
|
|
|
17634
17651
|
break;
|
|
17635
17652
|
}
|
|
17636
17653
|
default:
|
|
17637
|
-
this._err(X.missingWhitespaceBeforeDoctypeName), this.state =
|
|
17654
|
+
this._err(X.missingWhitespaceBeforeDoctypeName), this.state = B.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
|
|
17638
17655
|
}
|
|
17639
17656
|
}
|
|
17640
17657
|
// Before DOCTYPE name state
|
|
17641
17658
|
//------------------------------------------------------------------
|
|
17642
17659
|
_stateBeforeDoctypeName(t) {
|
|
17643
17660
|
if (Ma(t))
|
|
17644
|
-
this._createDoctypeToken(String.fromCharCode(Tl(t))), this.state =
|
|
17661
|
+
this._createDoctypeToken(String.fromCharCode(Tl(t))), this.state = B.DOCTYPE_NAME;
|
|
17645
17662
|
else
|
|
17646
17663
|
switch (t) {
|
|
17647
17664
|
case P.SPACE:
|
|
@@ -17650,13 +17667,13 @@ class Iv {
|
|
|
17650
17667
|
case P.FORM_FEED:
|
|
17651
17668
|
break;
|
|
17652
17669
|
case P.NULL: {
|
|
17653
|
-
this._err(X.unexpectedNullCharacter), this._createDoctypeToken(Re), this.state =
|
|
17670
|
+
this._err(X.unexpectedNullCharacter), this._createDoctypeToken(Re), this.state = B.DOCTYPE_NAME;
|
|
17654
17671
|
break;
|
|
17655
17672
|
}
|
|
17656
17673
|
case P.GREATER_THAN_SIGN: {
|
|
17657
17674
|
this._err(X.missingDoctypeName), this._createDoctypeToken(null);
|
|
17658
17675
|
const a = this.currentToken;
|
|
17659
|
-
a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17676
|
+
a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17660
17677
|
break;
|
|
17661
17678
|
}
|
|
17662
17679
|
case P.EOF: {
|
|
@@ -17666,7 +17683,7 @@ class Iv {
|
|
|
17666
17683
|
break;
|
|
17667
17684
|
}
|
|
17668
17685
|
default:
|
|
17669
|
-
this._createDoctypeToken(String.fromCodePoint(t)), this.state =
|
|
17686
|
+
this._createDoctypeToken(String.fromCodePoint(t)), this.state = B.DOCTYPE_NAME;
|
|
17670
17687
|
}
|
|
17671
17688
|
}
|
|
17672
17689
|
// DOCTYPE name state
|
|
@@ -17678,11 +17695,11 @@ class Iv {
|
|
|
17678
17695
|
case P.LINE_FEED:
|
|
17679
17696
|
case P.TABULATION:
|
|
17680
17697
|
case P.FORM_FEED: {
|
|
17681
|
-
this.state =
|
|
17698
|
+
this.state = B.AFTER_DOCTYPE_NAME;
|
|
17682
17699
|
break;
|
|
17683
17700
|
}
|
|
17684
17701
|
case P.GREATER_THAN_SIGN: {
|
|
17685
|
-
this.state =
|
|
17702
|
+
this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17686
17703
|
break;
|
|
17687
17704
|
}
|
|
17688
17705
|
case P.NULL: {
|
|
@@ -17708,7 +17725,7 @@ class Iv {
|
|
|
17708
17725
|
case P.FORM_FEED:
|
|
17709
17726
|
break;
|
|
17710
17727
|
case P.GREATER_THAN_SIGN: {
|
|
17711
|
-
this.state =
|
|
17728
|
+
this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17712
17729
|
break;
|
|
17713
17730
|
}
|
|
17714
17731
|
case P.EOF: {
|
|
@@ -17716,7 +17733,7 @@ class Iv {
|
|
|
17716
17733
|
break;
|
|
17717
17734
|
}
|
|
17718
17735
|
default:
|
|
17719
|
-
this._consumeSequenceIfMatch(et.PUBLIC, !1) ? this.state =
|
|
17736
|
+
this._consumeSequenceIfMatch(et.PUBLIC, !1) ? this.state = B.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(et.SYSTEM, !1) ? this.state = B.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(X.invalidCharacterSequenceAfterDoctypeName), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
|
|
17720
17737
|
}
|
|
17721
17738
|
}
|
|
17722
17739
|
// After DOCTYPE public keyword state
|
|
@@ -17728,19 +17745,19 @@ class Iv {
|
|
|
17728
17745
|
case P.LINE_FEED:
|
|
17729
17746
|
case P.TABULATION:
|
|
17730
17747
|
case P.FORM_FEED: {
|
|
17731
|
-
this.state =
|
|
17748
|
+
this.state = B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
17732
17749
|
break;
|
|
17733
17750
|
}
|
|
17734
17751
|
case P.QUOTATION_MARK: {
|
|
17735
|
-
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state =
|
|
17752
|
+
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
17736
17753
|
break;
|
|
17737
17754
|
}
|
|
17738
17755
|
case P.APOSTROPHE: {
|
|
17739
|
-
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state =
|
|
17756
|
+
this._err(X.missingWhitespaceAfterDoctypePublicKeyword), a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
17740
17757
|
break;
|
|
17741
17758
|
}
|
|
17742
17759
|
case P.GREATER_THAN_SIGN: {
|
|
17743
|
-
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17760
|
+
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17744
17761
|
break;
|
|
17745
17762
|
}
|
|
17746
17763
|
case P.EOF: {
|
|
@@ -17748,7 +17765,7 @@ class Iv {
|
|
|
17748
17765
|
break;
|
|
17749
17766
|
}
|
|
17750
17767
|
default:
|
|
17751
|
-
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17768
|
+
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17752
17769
|
}
|
|
17753
17770
|
}
|
|
17754
17771
|
// Before DOCTYPE public identifier state
|
|
@@ -17762,15 +17779,15 @@ class Iv {
|
|
|
17762
17779
|
case P.FORM_FEED:
|
|
17763
17780
|
break;
|
|
17764
17781
|
case P.QUOTATION_MARK: {
|
|
17765
|
-
a.publicId = "", this.state =
|
|
17782
|
+
a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
|
|
17766
17783
|
break;
|
|
17767
17784
|
}
|
|
17768
17785
|
case P.APOSTROPHE: {
|
|
17769
|
-
a.publicId = "", this.state =
|
|
17786
|
+
a.publicId = "", this.state = B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
|
|
17770
17787
|
break;
|
|
17771
17788
|
}
|
|
17772
17789
|
case P.GREATER_THAN_SIGN: {
|
|
17773
|
-
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17790
|
+
this._err(X.missingDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17774
17791
|
break;
|
|
17775
17792
|
}
|
|
17776
17793
|
case P.EOF: {
|
|
@@ -17778,7 +17795,7 @@ class Iv {
|
|
|
17778
17795
|
break;
|
|
17779
17796
|
}
|
|
17780
17797
|
default:
|
|
17781
|
-
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state =
|
|
17798
|
+
this._err(X.missingQuoteBeforeDoctypePublicIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17782
17799
|
}
|
|
17783
17800
|
}
|
|
17784
17801
|
// DOCTYPE public identifier (double-quoted) state
|
|
@@ -17787,7 +17804,7 @@ class Iv {
|
|
|
17787
17804
|
const a = this.currentToken;
|
|
17788
17805
|
switch (t) {
|
|
17789
17806
|
case P.QUOTATION_MARK: {
|
|
17790
|
-
this.state =
|
|
17807
|
+
this.state = B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
17791
17808
|
break;
|
|
17792
17809
|
}
|
|
17793
17810
|
case P.NULL: {
|
|
@@ -17795,7 +17812,7 @@ class Iv {
|
|
|
17795
17812
|
break;
|
|
17796
17813
|
}
|
|
17797
17814
|
case P.GREATER_THAN_SIGN: {
|
|
17798
|
-
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17815
|
+
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17799
17816
|
break;
|
|
17800
17817
|
}
|
|
17801
17818
|
case P.EOF: {
|
|
@@ -17812,7 +17829,7 @@ class Iv {
|
|
|
17812
17829
|
const a = this.currentToken;
|
|
17813
17830
|
switch (t) {
|
|
17814
17831
|
case P.APOSTROPHE: {
|
|
17815
|
-
this.state =
|
|
17832
|
+
this.state = B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
|
|
17816
17833
|
break;
|
|
17817
17834
|
}
|
|
17818
17835
|
case P.NULL: {
|
|
@@ -17820,7 +17837,7 @@ class Iv {
|
|
|
17820
17837
|
break;
|
|
17821
17838
|
}
|
|
17822
17839
|
case P.GREATER_THAN_SIGN: {
|
|
17823
|
-
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17840
|
+
this._err(X.abruptDoctypePublicIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17824
17841
|
break;
|
|
17825
17842
|
}
|
|
17826
17843
|
case P.EOF: {
|
|
@@ -17840,19 +17857,19 @@ class Iv {
|
|
|
17840
17857
|
case P.LINE_FEED:
|
|
17841
17858
|
case P.TABULATION:
|
|
17842
17859
|
case P.FORM_FEED: {
|
|
17843
|
-
this.state =
|
|
17860
|
+
this.state = B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
|
|
17844
17861
|
break;
|
|
17845
17862
|
}
|
|
17846
17863
|
case P.GREATER_THAN_SIGN: {
|
|
17847
|
-
this.state =
|
|
17864
|
+
this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17848
17865
|
break;
|
|
17849
17866
|
}
|
|
17850
17867
|
case P.QUOTATION_MARK: {
|
|
17851
|
-
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state =
|
|
17868
|
+
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17852
17869
|
break;
|
|
17853
17870
|
}
|
|
17854
17871
|
case P.APOSTROPHE: {
|
|
17855
|
-
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state =
|
|
17872
|
+
this._err(X.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17856
17873
|
break;
|
|
17857
17874
|
}
|
|
17858
17875
|
case P.EOF: {
|
|
@@ -17860,7 +17877,7 @@ class Iv {
|
|
|
17860
17877
|
break;
|
|
17861
17878
|
}
|
|
17862
17879
|
default:
|
|
17863
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17880
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17864
17881
|
}
|
|
17865
17882
|
}
|
|
17866
17883
|
// Between DOCTYPE public and system identifiers state
|
|
@@ -17874,15 +17891,15 @@ class Iv {
|
|
|
17874
17891
|
case P.FORM_FEED:
|
|
17875
17892
|
break;
|
|
17876
17893
|
case P.GREATER_THAN_SIGN: {
|
|
17877
|
-
this.emitCurrentDoctype(a), this.state =
|
|
17894
|
+
this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17878
17895
|
break;
|
|
17879
17896
|
}
|
|
17880
17897
|
case P.QUOTATION_MARK: {
|
|
17881
|
-
a.systemId = "", this.state =
|
|
17898
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17882
17899
|
break;
|
|
17883
17900
|
}
|
|
17884
17901
|
case P.APOSTROPHE: {
|
|
17885
|
-
a.systemId = "", this.state =
|
|
17902
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17886
17903
|
break;
|
|
17887
17904
|
}
|
|
17888
17905
|
case P.EOF: {
|
|
@@ -17890,7 +17907,7 @@ class Iv {
|
|
|
17890
17907
|
break;
|
|
17891
17908
|
}
|
|
17892
17909
|
default:
|
|
17893
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17910
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17894
17911
|
}
|
|
17895
17912
|
}
|
|
17896
17913
|
// After DOCTYPE system keyword state
|
|
@@ -17902,19 +17919,19 @@ class Iv {
|
|
|
17902
17919
|
case P.LINE_FEED:
|
|
17903
17920
|
case P.TABULATION:
|
|
17904
17921
|
case P.FORM_FEED: {
|
|
17905
|
-
this.state =
|
|
17922
|
+
this.state = B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
17906
17923
|
break;
|
|
17907
17924
|
}
|
|
17908
17925
|
case P.QUOTATION_MARK: {
|
|
17909
|
-
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state =
|
|
17926
|
+
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17910
17927
|
break;
|
|
17911
17928
|
}
|
|
17912
17929
|
case P.APOSTROPHE: {
|
|
17913
|
-
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state =
|
|
17930
|
+
this._err(X.missingWhitespaceAfterDoctypeSystemKeyword), a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17914
17931
|
break;
|
|
17915
17932
|
}
|
|
17916
17933
|
case P.GREATER_THAN_SIGN: {
|
|
17917
|
-
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17934
|
+
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17918
17935
|
break;
|
|
17919
17936
|
}
|
|
17920
17937
|
case P.EOF: {
|
|
@@ -17922,7 +17939,7 @@ class Iv {
|
|
|
17922
17939
|
break;
|
|
17923
17940
|
}
|
|
17924
17941
|
default:
|
|
17925
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17942
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17926
17943
|
}
|
|
17927
17944
|
}
|
|
17928
17945
|
// Before DOCTYPE system identifier state
|
|
@@ -17936,15 +17953,15 @@ class Iv {
|
|
|
17936
17953
|
case P.FORM_FEED:
|
|
17937
17954
|
break;
|
|
17938
17955
|
case P.QUOTATION_MARK: {
|
|
17939
|
-
a.systemId = "", this.state =
|
|
17956
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
|
|
17940
17957
|
break;
|
|
17941
17958
|
}
|
|
17942
17959
|
case P.APOSTROPHE: {
|
|
17943
|
-
a.systemId = "", this.state =
|
|
17960
|
+
a.systemId = "", this.state = B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
|
|
17944
17961
|
break;
|
|
17945
17962
|
}
|
|
17946
17963
|
case P.GREATER_THAN_SIGN: {
|
|
17947
|
-
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17964
|
+
this._err(X.missingDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.DATA, this.emitCurrentDoctype(a);
|
|
17948
17965
|
break;
|
|
17949
17966
|
}
|
|
17950
17967
|
case P.EOF: {
|
|
@@ -17952,7 +17969,7 @@ class Iv {
|
|
|
17952
17969
|
break;
|
|
17953
17970
|
}
|
|
17954
17971
|
default:
|
|
17955
|
-
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state =
|
|
17972
|
+
this._err(X.missingQuoteBeforeDoctypeSystemIdentifier), a.forceQuirks = !0, this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
17956
17973
|
}
|
|
17957
17974
|
}
|
|
17958
17975
|
// DOCTYPE system identifier (double-quoted) state
|
|
@@ -17961,7 +17978,7 @@ class Iv {
|
|
|
17961
17978
|
const a = this.currentToken;
|
|
17962
17979
|
switch (t) {
|
|
17963
17980
|
case P.QUOTATION_MARK: {
|
|
17964
|
-
this.state =
|
|
17981
|
+
this.state = B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
17965
17982
|
break;
|
|
17966
17983
|
}
|
|
17967
17984
|
case P.NULL: {
|
|
@@ -17969,7 +17986,7 @@ class Iv {
|
|
|
17969
17986
|
break;
|
|
17970
17987
|
}
|
|
17971
17988
|
case P.GREATER_THAN_SIGN: {
|
|
17972
|
-
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
17989
|
+
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17973
17990
|
break;
|
|
17974
17991
|
}
|
|
17975
17992
|
case P.EOF: {
|
|
@@ -17986,7 +18003,7 @@ class Iv {
|
|
|
17986
18003
|
const a = this.currentToken;
|
|
17987
18004
|
switch (t) {
|
|
17988
18005
|
case P.APOSTROPHE: {
|
|
17989
|
-
this.state =
|
|
18006
|
+
this.state = B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
|
|
17990
18007
|
break;
|
|
17991
18008
|
}
|
|
17992
18009
|
case P.NULL: {
|
|
@@ -17994,7 +18011,7 @@ class Iv {
|
|
|
17994
18011
|
break;
|
|
17995
18012
|
}
|
|
17996
18013
|
case P.GREATER_THAN_SIGN: {
|
|
17997
|
-
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state =
|
|
18014
|
+
this._err(X.abruptDoctypeSystemIdentifier), a.forceQuirks = !0, this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
17998
18015
|
break;
|
|
17999
18016
|
}
|
|
18000
18017
|
case P.EOF: {
|
|
@@ -18016,7 +18033,7 @@ class Iv {
|
|
|
18016
18033
|
case P.FORM_FEED:
|
|
18017
18034
|
break;
|
|
18018
18035
|
case P.GREATER_THAN_SIGN: {
|
|
18019
|
-
this.emitCurrentDoctype(a), this.state =
|
|
18036
|
+
this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
18020
18037
|
break;
|
|
18021
18038
|
}
|
|
18022
18039
|
case P.EOF: {
|
|
@@ -18024,7 +18041,7 @@ class Iv {
|
|
|
18024
18041
|
break;
|
|
18025
18042
|
}
|
|
18026
18043
|
default:
|
|
18027
|
-
this._err(X.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state =
|
|
18044
|
+
this._err(X.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = B.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
|
|
18028
18045
|
}
|
|
18029
18046
|
}
|
|
18030
18047
|
// Bogus DOCTYPE state
|
|
@@ -18033,7 +18050,7 @@ class Iv {
|
|
|
18033
18050
|
const a = this.currentToken;
|
|
18034
18051
|
switch (t) {
|
|
18035
18052
|
case P.GREATER_THAN_SIGN: {
|
|
18036
|
-
this.emitCurrentDoctype(a), this.state =
|
|
18053
|
+
this.emitCurrentDoctype(a), this.state = B.DATA;
|
|
18037
18054
|
break;
|
|
18038
18055
|
}
|
|
18039
18056
|
case P.NULL: {
|
|
@@ -18051,7 +18068,7 @@ class Iv {
|
|
|
18051
18068
|
_stateCdataSection(t) {
|
|
18052
18069
|
switch (t) {
|
|
18053
18070
|
case P.RIGHT_SQUARE_BRACKET: {
|
|
18054
|
-
this.state =
|
|
18071
|
+
this.state = B.CDATA_SECTION_BRACKET;
|
|
18055
18072
|
break;
|
|
18056
18073
|
}
|
|
18057
18074
|
case P.EOF: {
|
|
@@ -18065,14 +18082,14 @@ class Iv {
|
|
|
18065
18082
|
// CDATA section bracket state
|
|
18066
18083
|
//------------------------------------------------------------------
|
|
18067
18084
|
_stateCdataSectionBracket(t) {
|
|
18068
|
-
t === P.RIGHT_SQUARE_BRACKET ? this.state =
|
|
18085
|
+
t === P.RIGHT_SQUARE_BRACKET ? this.state = B.CDATA_SECTION_END : (this._emitChars("]"), this.state = B.CDATA_SECTION, this._stateCdataSection(t));
|
|
18069
18086
|
}
|
|
18070
18087
|
// CDATA section end state
|
|
18071
18088
|
//------------------------------------------------------------------
|
|
18072
18089
|
_stateCdataSectionEnd(t) {
|
|
18073
18090
|
switch (t) {
|
|
18074
18091
|
case P.GREATER_THAN_SIGN: {
|
|
18075
|
-
this.state =
|
|
18092
|
+
this.state = B.DATA;
|
|
18076
18093
|
break;
|
|
18077
18094
|
}
|
|
18078
18095
|
case P.RIGHT_SQUARE_BRACKET: {
|
|
@@ -18080,7 +18097,7 @@ class Iv {
|
|
|
18080
18097
|
break;
|
|
18081
18098
|
}
|
|
18082
18099
|
default:
|
|
18083
|
-
this._emitChars("]]"), this.state =
|
|
18100
|
+
this._emitChars("]]"), this.state = B.CDATA_SECTION, this._stateCdataSection(t);
|
|
18084
18101
|
}
|
|
18085
18102
|
}
|
|
18086
18103
|
// Character reference state
|
|
@@ -18094,7 +18111,7 @@ class Iv {
|
|
|
18094
18111
|
this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
|
|
18095
18112
|
return;
|
|
18096
18113
|
}
|
|
18097
|
-
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && du(this.preprocessor.peek(1)) ?
|
|
18114
|
+
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(P.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && du(this.preprocessor.peek(1)) ? B.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
|
|
18098
18115
|
}
|
|
18099
18116
|
// Ambiguos ampersand state
|
|
18100
18117
|
//------------------------------------------------------------------
|
|
@@ -22775,7 +22792,7 @@ const ny = {
|
|
|
22775
22792
|
b();
|
|
22776
22793
|
}, [b]), ne(() => {
|
|
22777
22794
|
if (!n?.anchorEl || !i) return;
|
|
22778
|
-
const I = n.anchorEl,
|
|
22795
|
+
const I = n.anchorEl, R = (() => {
|
|
22779
22796
|
let Y = I.parentElement;
|
|
22780
22797
|
for (; Y && Y !== document.body; ) {
|
|
22781
22798
|
const S = getComputedStyle(Y).overflowY;
|
|
@@ -22785,7 +22802,7 @@ const ny = {
|
|
|
22785
22802
|
}
|
|
22786
22803
|
return document.scrollingElement || document.documentElement;
|
|
22787
22804
|
})(), $ = (Y) => {
|
|
22788
|
-
Y.target?.closest?.(".rte-tooltip-overlay") &&
|
|
22805
|
+
Y.target?.closest?.(".rte-tooltip-overlay") && R && (Y.preventDefault(), R.scrollTop += Y.deltaY, Y.deltaX && (R.scrollLeft += Y.deltaX));
|
|
22789
22806
|
};
|
|
22790
22807
|
window.addEventListener("wheel", $, { passive: !1, capture: !0 });
|
|
22791
22808
|
const _ = () => {
|
|
@@ -22806,7 +22823,7 @@ const ny = {
|
|
|
22806
22823
|
return ne(() => {
|
|
22807
22824
|
w(0), N(!1), L("bottom"), A(0);
|
|
22808
22825
|
}, [n?.key, n?.type]), ne(() => {
|
|
22809
|
-
const I = O.current, H = /* @__PURE__ */ new Set(),
|
|
22826
|
+
const I = O.current, H = /* @__PURE__ */ new Set(), R = ($) => {
|
|
22810
22827
|
if (!$ || H.has($) || I.has($)) return;
|
|
22811
22828
|
H.add($);
|
|
22812
22829
|
const _ = new window.Image();
|
|
@@ -22830,7 +22847,7 @@ const ny = {
|
|
|
22830
22847
|
Array.isArray(S) && S.forEach((q) => {
|
|
22831
22848
|
const V = q?.images;
|
|
22832
22849
|
Array.isArray(V) && V.forEach((K) => {
|
|
22833
|
-
typeof K == "string" &&
|
|
22850
|
+
typeof K == "string" && R(K);
|
|
22834
22851
|
});
|
|
22835
22852
|
});
|
|
22836
22853
|
});
|
|
@@ -22843,7 +22860,7 @@ const ny = {
|
|
|
22843
22860
|
const I = requestAnimationFrame(() => {
|
|
22844
22861
|
const H = document.querySelector(".rte-steps-tooltip");
|
|
22845
22862
|
if (!H) return;
|
|
22846
|
-
const
|
|
22863
|
+
const R = 632, $ = Math.max(240, Math.floor(window.innerWidth - 32)), _ = Math.min(R, $);
|
|
22847
22864
|
F(_);
|
|
22848
22865
|
const Y = n?.anchorEl;
|
|
22849
22866
|
if (Y) {
|
|
@@ -22877,7 +22894,7 @@ const ny = {
|
|
|
22877
22894
|
borderRadius: 8,
|
|
22878
22895
|
border: "0.5px solid #E5E5E5",
|
|
22879
22896
|
boxShadow: "0 4px 20px 0 rgba(129, 124, 143, 0.2)"
|
|
22880
|
-
},
|
|
22897
|
+
}, R = !1;
|
|
22881
22898
|
const $ = fy, _ = (S) => {
|
|
22882
22899
|
const q = py(S);
|
|
22883
22900
|
if (!q) return null;
|
|
@@ -22886,7 +22903,7 @@ const ny = {
|
|
|
22886
22903
|
const V = q.data, K = Array.isArray(V.platforms) ? V.platforms : [], j = K.length;
|
|
22887
22904
|
if (j === 0)
|
|
22888
22905
|
return { node: V.title, steps: !1 };
|
|
22889
|
-
const te = Math.min(Math.max(k, 0), j - 1), de = K[te],
|
|
22906
|
+
const te = Math.min(Math.max(k, 0), j - 1), de = K[te], be = Array.isArray(de?.images) ? de.images : [], Te = Array.isArray(de?.stepDescriptions) ? de.stepDescriptions : [], Be = Math.min(be.length, Te.length);
|
|
22890
22907
|
if (Be <= 0)
|
|
22891
22908
|
return { node: V.title, steps: !1 };
|
|
22892
22909
|
const Ie = Math.min(Math.max(m, 0), Be - 1), xt = Te[Ie] || "", Ye = (V.disclaimer || "").trim(), ot = j > 1, Lt = (Oe) => {
|
|
@@ -22938,7 +22955,7 @@ const ny = {
|
|
|
22938
22955
|
T.current = Oe;
|
|
22939
22956
|
},
|
|
22940
22957
|
onSlideChange: (Oe) => w(Oe.activeIndex),
|
|
22941
|
-
children:
|
|
22958
|
+
children: be.map((Oe, Ze) => /* @__PURE__ */ G(is, { children: /* @__PURE__ */ G(
|
|
22942
22959
|
"img",
|
|
22943
22960
|
{
|
|
22944
22961
|
className: "rte-steps-tooltip-img",
|
|
@@ -23036,25 +23053,25 @@ const ny = {
|
|
|
23036
23053
|
if (n.type === "upload") {
|
|
23037
23054
|
const S = n.anchorEl.dataset.tooltip, q = _(S);
|
|
23038
23055
|
if (q)
|
|
23039
|
-
I = q.node,
|
|
23056
|
+
I = q.node, R = q.steps;
|
|
23040
23057
|
else {
|
|
23041
23058
|
const V = e.find(
|
|
23042
23059
|
(j) => j.type === "upload" && j.key === n.key
|
|
23043
23060
|
), K = _(
|
|
23044
23061
|
typeof V?.tooltip == "string" ? V?.tooltip : V?.tooltip ? JSON.stringify(V.tooltip) : ""
|
|
23045
23062
|
);
|
|
23046
|
-
I = K?.node || "",
|
|
23063
|
+
I = K?.node || "", R = K?.steps || !1;
|
|
23047
23064
|
}
|
|
23048
23065
|
} else if (n.type === "tag") {
|
|
23049
23066
|
const S = n.anchorEl.dataset.tooltip, q = _(S);
|
|
23050
|
-
I = q?.node || "",
|
|
23067
|
+
I = q?.node || "", R = q?.steps || !1;
|
|
23051
23068
|
} else if (n.type === "upload-label")
|
|
23052
23069
|
I = n.anchorEl.querySelector(
|
|
23053
23070
|
".upload-label[data-file-name], .video-label[data-file-name]"
|
|
23054
23071
|
)?.dataset.fileName || n.anchorEl.dataset.fileName || "";
|
|
23055
23072
|
else if (n.type === "variable") {
|
|
23056
23073
|
const S = n.anchorEl.dataset.tooltip, q = _(S);
|
|
23057
|
-
I = q?.node || "",
|
|
23074
|
+
I = q?.node || "", R = q?.steps || !1;
|
|
23058
23075
|
} else if (n.type === "upload-preview") {
|
|
23059
23076
|
const S = t[n.key];
|
|
23060
23077
|
let q = null, V = !1;
|
|
@@ -23084,7 +23101,7 @@ const ny = {
|
|
|
23084
23101
|
}) : I = "";
|
|
23085
23102
|
}
|
|
23086
23103
|
if (!I) return null;
|
|
23087
|
-
|
|
23104
|
+
R && (H = {
|
|
23088
23105
|
background: "#fff",
|
|
23089
23106
|
padding: 0,
|
|
23090
23107
|
borderRadius: 12,
|
|
@@ -23100,11 +23117,13 @@ const ny = {
|
|
|
23100
23117
|
arrow: !1,
|
|
23101
23118
|
zIndex: 999,
|
|
23102
23119
|
destroyTooltipOnHide: !1,
|
|
23103
|
-
autoAdjustOverflow: !
|
|
23104
|
-
align:
|
|
23120
|
+
autoAdjustOverflow: !R,
|
|
23121
|
+
align: R ? {
|
|
23105
23122
|
// 自适应:下方空间不足时翻到上方
|
|
23106
23123
|
points: z === "top" ? ["bc", "tc"] : ["tc", "bc"],
|
|
23107
|
-
offset: z === "top" ? [0, -4] : [0, 4]
|
|
23124
|
+
offset: z === "top" ? [0, -4] : [0, 4],
|
|
23125
|
+
// 水平方向自动平移避开视口边界(垂直由上方 stepsPlacement 手动控制)
|
|
23126
|
+
overflow: { adjustX: 1, adjustY: 0 }
|
|
23108
23127
|
} : void 0,
|
|
23109
23128
|
title: n.type === "upload-preview" ? /* @__PURE__ */ G(
|
|
23110
23129
|
"div",
|
|
@@ -23118,7 +23137,7 @@ const ny = {
|
|
|
23118
23137
|
},
|
|
23119
23138
|
children: I
|
|
23120
23139
|
}
|
|
23121
|
-
) :
|
|
23140
|
+
) : R ? I : /* @__PURE__ */ G(
|
|
23122
23141
|
"div",
|
|
23123
23142
|
{
|
|
23124
23143
|
style: { maxWidth: "200px", fontSize: "12px", color: Y },
|
|
@@ -23133,7 +23152,7 @@ const ny = {
|
|
|
23133
23152
|
}
|
|
23134
23153
|
),
|
|
23135
23154
|
open: i,
|
|
23136
|
-
placement:
|
|
23155
|
+
placement: R ? z === "top" ? "top" : "bottom" : n.type === "upload-preview" ? "topLeft" : "top",
|
|
23137
23156
|
getPopupContainer: () => document.body,
|
|
23138
23157
|
overlayInnerStyle: H,
|
|
23139
23158
|
overlayClassName: "rte-tooltip-overlay",
|
|
@@ -23151,28 +23170,28 @@ const ny = {
|
|
|
23151
23170
|
}
|
|
23152
23171
|
)
|
|
23153
23172
|
},
|
|
23154
|
-
`${n.key}-${n.type}-${
|
|
23173
|
+
`${n.key}-${n.type}-${R ? z : "plain"}`
|
|
23155
23174
|
),
|
|
23156
23175
|
document.body
|
|
23157
23176
|
);
|
|
23158
23177
|
})() : null, setPopoverVisible: g };
|
|
23159
23178
|
}, my = (e, t) => {
|
|
23160
|
-
const a = t.hideButtons === "hideTagClose", l = t.lockStructure || a ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', n = t.lockStructure ? ' data-locked="true"' : "", r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23179
|
+
const a = t.hideButtons === "hideTagClose", l = t.lockStructure || a ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', n = t.lockStructure ? ' data-locked="true"' : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}" data-tag-key="${e.key || ""}"` : "";
|
|
23161
23180
|
return `<span contenteditable="false" class="tag-node group"${n}${i}><span class="tag-label">${e.text}</span>${l}</span>`;
|
|
23162
23181
|
}, vy = (e, t) => {
|
|
23163
23182
|
const a = t ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', n = (e.text ?? "").replace(/\n/g, "<br/>");
|
|
23164
23183
|
return e.className ? `<span data-type="text" class="${e.className}"${a}>${n}</span>` : t ? `<span data-type="text"${a}>${n}</span>` : `<span data-type="text" contenteditable="false">${n}</span>`;
|
|
23165
23184
|
}, gy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Lo = (e, t) => {
|
|
23166
|
-
const l = (e.key ? t[e.key] : void 0) || e.text || "", n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23185
|
+
const l = (e.key ? t[e.key] : void 0) || e.text || "", n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}" data-variable-key="${e.key || ""}"` : "";
|
|
23167
23186
|
if (e.useAntd === !0) {
|
|
23168
|
-
const h = l ? encodeURIComponent(l) : "", f =
|
|
23187
|
+
const h = l ? encodeURIComponent(l) : "", f = he(e.placeholder || ""), E = e.allowNewline === !1 ? ' data-allow-newline="0"' : ' data-allow-newline="1"', v = Ll(l || e.placeholder || ""), b = r && !l ? 18 : 0;
|
|
23169
23188
|
return `<span contenteditable="false" data-type="variable" data-variable-render="antd-textarea" data-key="${e.key}" data-value="${h}" data-placeholder="${f}" data-estimated-width="${Math.min(
|
|
23170
23189
|
600,
|
|
23171
23190
|
v + b
|
|
23172
23191
|
)}"${E}${n}${i} class="rte-variable-host-v2"></span>`;
|
|
23173
23192
|
}
|
|
23174
|
-
const u = !l, s = u ? "" :
|
|
23175
|
-
return `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${n}${i} class="variable-chip ${o}${c ? ` ${c}` : ""}">${s}${r ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${d}" data-variable-key="${e.key}" data-tooltip="${
|
|
23193
|
+
const u = !l, s = u ? "" : he(l).replace(/\n/g, "<br/>"), o = u ? "show-placeholder" : "", c = r && u ? "rte-variable-with-icon" : "", d = r && u ? "" : "hidden";
|
|
23194
|
+
return `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${n}${i} class="variable-chip ${o}${c ? ` ${c}` : ""}">${s}${r ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${d}" data-variable-key="${e.key}" data-tooltip="${he(r)}" ></i>` : ""}</span>`;
|
|
23176
23195
|
}, Ey = (e, t) => {
|
|
23177
23196
|
const a = Lo(e, t);
|
|
23178
23197
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${gy}${a}</span>` : a;
|
|
@@ -23187,7 +23206,7 @@ const ny = {
|
|
|
23187
23206
|
} catch {
|
|
23188
23207
|
return !1;
|
|
23189
23208
|
}
|
|
23190
|
-
}, or = (e, t, a) => `<span contenteditable="false" class="rte-tutorial-btn${a ? " hidden" : ""}" data-upload-key="${e}" data-tooltip="${
|
|
23209
|
+
}, or = (e, t, a) => `<span contenteditable="false" class="rte-tutorial-btn${a ? " hidden" : ""}" data-upload-key="${e}" data-tooltip="${he(t)}"><i class="iconfont icon-tishi rte-tutorial-btn-icon"></i><span class="rte-tutorial-btn-text">查看教程</span></span>`, yy = (e) => /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(e);
|
|
23191
23210
|
function cr(e, t) {
|
|
23192
23211
|
if (e == null)
|
|
23193
23212
|
return { hasFile: !1, fileName: t, uploadIcon: "<i class='iconfont icon-shangchuan1'></i>" };
|
|
@@ -23199,12 +23218,12 @@ function cr(e, t) {
|
|
|
23199
23218
|
return { hasFile: !0, fileName: e.name, uploadIcon: a };
|
|
23200
23219
|
}
|
|
23201
23220
|
const Oo = (e, t) => {
|
|
23202
|
-
const a = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", l = st(e.tooltip), n = l ? ` data-tooltip="${
|
|
23221
|
+
const a = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", l = st(e.tooltip), n = l ? ` data-tooltip="${he(l)}"` : "", { hasFile: r, fileName: i, uploadIcon: u } = cr(t[e.key], e.text), s = r ? "" : "hidden", o = l && !r ? "" : "hidden", c = r ? "has-file" : "", d = (r ? i : e.text || e.placeholder) || "", h = d ? ` data-file-name="${d.replace(/"/g, """)}"` : "", f = (e.text || "").trim(), v = r && f.length >= 12 ? `<span ${a} contenteditable="false" class="exclusion-wrapper upload-hint">${f}</span>` : "", b = sr(l), y = b ? or(e.key, l, r) : "", g = l && !b ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${o}" data-upload-key="${e.key}" data-tooltip="${he(l)}" ></i>` : "";
|
|
23203
23222
|
return { uploadHtml: `<span contenteditable="false" data-type="upload" data-key="${e.key}"${n} class="upload-chip"><span class="upload-inner-wrapper ${c}"><span class="upload-icon">${u}</span><span class="upload-label"${h}>${i || e.text}</span>${y}${g}<span class="file-remove-btn ${s}" title="移除文件">×</span></span></span>`, hintHtml: v };
|
|
23204
23223
|
}, Do = (e, t, a) => {
|
|
23205
23224
|
const l = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "";
|
|
23206
23225
|
if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
|
|
23207
|
-
const C = st(e.tooltip), N = C ? ` data-tooltip="${
|
|
23226
|
+
const C = st(e.tooltip), N = C ? ` data-tooltip="${he(C)}"` : "", k = e.minCount || 1, A = e.maxCount || 3;
|
|
23208
23227
|
let O = 0;
|
|
23209
23228
|
for (let x = 0; x < A; x++) {
|
|
23210
23229
|
const I = `${e.key}-${x}`;
|
|
@@ -23213,12 +23232,12 @@ const Oo = (e, t) => {
|
|
|
23213
23232
|
const D = Math.min(A, Math.max(k, O + (O < A ? 1 : 0))), F = sr(C);
|
|
23214
23233
|
let M = "";
|
|
23215
23234
|
for (let x = 0; x < D; x++) {
|
|
23216
|
-
const I = `${e.key}-${x}`, { hasFile: H, fileName:
|
|
23235
|
+
const I = `${e.key}-${x}`, { hasFile: H, fileName: R, uploadIcon: $ } = cr(t[I], e.text), _ = H ? "" : "hidden", Y = C && !H ? "" : "hidden", z = H ? "has-file" : "", S = (H ? R : e.text || e.placeholder) || "", q = S ? ` data-file-name="${S.replace(/"/g, """)}"` : "", V = ` data-batch-key="${e.key}"`, K = ` data-batch-index="${x}"`, j = F ? or(I, C, H) : "", te = C && !F ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${Y}" data-upload-key="${I}" data-tooltip="${he(C)}" ></i>` : "", de = `<span contenteditable="false" data-type="upload" data-key="${I}"${V}${K}${N} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${z}"><span class="upload-icon">${$}</span><span class="upload-label"${q}>${R || e.text}</span>${j}${te}<span class="file-remove-btn ${_}" title="移除文件">×</span></span></span>`;
|
|
23217
23236
|
M += de;
|
|
23218
23237
|
}
|
|
23219
23238
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Ou}<span class="rte-upload-batch-chips">${M}${a}</span></span>` : `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${M}${a}</span>`;
|
|
23220
23239
|
}
|
|
23221
|
-
const r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23240
|
+
const r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}"` : "", { hasFile: u, fileName: s, uploadIcon: o } = cr(t[e.key], e.text), c = u ? "" : "hidden", d = r && !u ? "" : "hidden", h = u ? "has-file" : "", f = (u ? s : e.text || e.placeholder) || "", E = f ? ` data-file-name="${f.replace(/"/g, """)}"` : "", v = (e.text || "").trim(), y = u && e.showHint === !0 && v.length >= 12 ? `<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${v}</span>` : "", g = sr(r), m = g ? or(e.key, r, u) : "", w = r && !g ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${d}" data-upload-key="${e.key}" data-tooltip="${he(r)}" ></i>` : "", T = `<span contenteditable="false" data-type="upload" data-key="${e.key}"${i} class="upload-chip"><span class="upload-inner-wrapper ${h}"><span class="upload-icon">${o}</span><span class="upload-label"${E}>${s || e.text}</span>${m}${w}<span class="file-remove-btn ${c}" title="移除文件">×</span></span></span>`;
|
|
23222
23241
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Ou}${T}${a}</span>${y}` : T + a + y;
|
|
23223
23242
|
}, Ty = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, xy = (e, t) => {
|
|
23224
23243
|
const a = t[e.key] || e.defaultValue || "", l = encodeURIComponent(JSON.stringify(e.options || [])), n = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", r = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", i = e.required ? ' data-required="true"' : "", u = `<span data-type="select" data-key="${e.key}" data-value="${a}" data-options="${l}"${n}${r}${i} class="rte-select-host"></span>`;
|
|
@@ -23230,34 +23249,34 @@ const Oo = (e, t) => {
|
|
|
23230
23249
|
const l = t[e.key] || e.text || "", n = typeof e.minHeight == "number" ? e.minHeight : 40, r = typeof e.maxHeight == "number" ? e.maxHeight : 160, i = Math.max(r, n), u = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", s = e.expandable !== !1, o = l, c = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${u} style="min-height:${n}px;max-height:${i}px;overflow:auto;">${o}</div>`, d = s ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>` : "", h = `<div class="rte-richtext-wrapper${s ? " rte-richtext-toggleable" : ""}" data-key="${e.key}">${c}${d}</div>`, f = `<div class="rte-richtext-container" data-key="${e.key}">${h}</div>`;
|
|
23231
23250
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${f}</div>` : f;
|
|
23232
23251
|
}, Sy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, _y = (e, t, a) => {
|
|
23233
|
-
const l = `${e.key}__url`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : void 0, i = e.key ? t[e.key] : void 0, u = r ?? i ?? e.text ?? "", s = !u, o = s ? "" : u, c = s ? "show-placeholder" : "", d = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", h = st(e.tooltip), f = h ? ` data-tooltip="${
|
|
23252
|
+
const l = `${e.key}__url`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : void 0, i = e.key ? t[e.key] : void 0, u = r ?? i ?? e.text ?? "", s = !u, o = s ? "" : u, c = s ? "show-placeholder" : "", d = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", h = st(e.tooltip), f = h ? ` data-tooltip="${he(h)}" data-variable-key="${e.key || ""}"` : "", E = s ? "" : "hidden", v = !!a, b = (v || h) && s ? "rte-variable-with-icon" : "";
|
|
23234
23253
|
let y = "";
|
|
23235
|
-
v ? y = `<span contenteditable="false" class="rte-report-dropdown-host ${E}" data-key="${e.key}" data-node-type="report-url"></span>` : h && (y = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${
|
|
23236
|
-
const g = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${
|
|
23254
|
+
v ? y = `<span contenteditable="false" class="rte-report-dropdown-host ${E}" data-key="${e.key}" data-node-type="report-url"></span>` : h && (y = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${he(h)}" ></i>`);
|
|
23255
|
+
const g = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${he(
|
|
23237
23256
|
e.placeholder || ""
|
|
23238
23257
|
)}"${d}${f} class="variable-chip rte-report-url ${c}${b ? ` ${b}` : ""}">${o}${y}</span>`;
|
|
23239
23258
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Sy}${g}</span>` : g;
|
|
23240
23259
|
}, ky = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ny = (e, t) => {
|
|
23241
|
-
const a = `${e.key}__name`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = st(e.tooltip), h = d ? ` data-tooltip="${
|
|
23260
|
+
const a = `${e.key}__name`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = st(e.tooltip), h = d ? ` data-tooltip="${he(d)}" data-variable-key="${e.key || ""}"` : "", f = d && u ? "rte-variable-with-icon" : "", E = d && u ? "" : "hidden", v = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown-name" data-placeholder="${he(
|
|
23242
23261
|
e.placeholder || ""
|
|
23243
|
-
)}"${c}${h} class="variable-chip rte-markdown-name ${o}${f ? ` ${f}` : ""}">${s}${d ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${
|
|
23262
|
+
)}"${c}${h} class="variable-chip rte-markdown-name ${o}${f ? ` ${f}` : ""}">${s}${d ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${he(d)}" ></i>` : ""}</span>`;
|
|
23244
23263
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${ky}${v}</span>` : v;
|
|
23245
23264
|
}, Iy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ly = (e, t) => {
|
|
23246
|
-
const a = e.sourceTextKey || `${e.key}__sourceText`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = e.sourceTextKey ? ` data-source-text-key="${
|
|
23265
|
+
const a = e.sourceTextKey || `${e.key}__sourceText`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = e.sourceTextKey ? ` data-source-text-key="${he(e.sourceTextKey)}"` : "", h = st(e.tooltip), f = h ? ` data-tooltip="${he(h)}" data-variable-key="${e.key || ""}"` : "", E = h && u ? "rte-variable-with-icon" : "", v = h && u ? "" : "hidden", b = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${he(
|
|
23247
23266
|
e.placeholder || ""
|
|
23248
|
-
)}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E ? ` ${E}` : ""}">${s}${h ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${v}" data-variable-key="${e.key}" data-tooltip="${
|
|
23267
|
+
)}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E ? ` ${E}` : ""}">${s}${h ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${v}" data-variable-key="${e.key}" data-tooltip="${he(h)}" ></i>` : ""}</span>`;
|
|
23249
23268
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Iy}${b}</span>` : b;
|
|
23250
23269
|
}, Oy = (e, t) => {
|
|
23251
|
-
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${
|
|
23270
|
+
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${he(e.placeholder)}"` : "", c = r, d = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" data-module-index="${a}" class="rte-richtext rte-report-module"${o} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`, h = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${d}</div>`, f = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${h}</div>`;
|
|
23252
23271
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${f}</div>` : f;
|
|
23253
23272
|
}, Dy = (e, t) => {
|
|
23254
|
-
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${
|
|
23273
|
+
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${he(e.placeholder)}"` : "", c = r, h = typeof c == "string" && c.startsWith("请补充:") ? ' data-is-placeholder="true"' : "", f = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${a}" class="rte-richtext rte-markdown-module"${o}${h} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`, E = `<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${f}</div>`, v = `<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${E}</div>`;
|
|
23255
23274
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${v}</div>` : v;
|
|
23256
23275
|
}, Py = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, My = (e, t) => {
|
|
23257
23276
|
const a = t[e.key] || "", l = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", n = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", r = e.disableFuture ? ' data-disable-future="true"' : "", i = `<div data-type="datepicker" data-key="${e.key}" data-value="${a}" class="rte-datepicker-host"${l}${n}${r}></div>`;
|
|
23258
23277
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Py}${i}</span>` : i;
|
|
23259
23278
|
}, Ry = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, By = (e, t) => {
|
|
23260
|
-
const a = t[e.key] || (typeof e.defaultNumber == "number" ? String(e.defaultNumber) : ""), l = typeof e.min == "number" ? ` min="${e.min}"` : "", n = typeof e.max == "number" ? ` max="${e.max}"` : "", r = e.placeholder ?
|
|
23279
|
+
const a = t[e.key] || (typeof e.defaultNumber == "number" ? String(e.defaultNumber) : ""), l = typeof e.min == "number" ? ` min="${e.min}"` : "", n = typeof e.max == "number" ? ` max="${e.max}"` : "", r = e.placeholder ? he(e.placeholder) : "", i = r ? ` placeholder="${r}"` : "", u = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", s = a || e.placeholder || "", o = Ll(s), c = `<input type="text" inputmode="numeric" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${he(a)}" style="width: ${o}px;"${l}${n}${i}${u} />`, h = `<span class="rte-number-input-wrap" data-placeholder="${r}" data-has-value="${a ? "1" : "0"}">${c}</span>`;
|
|
23261
23280
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Ry}${h}</span>` : h;
|
|
23262
23281
|
}, Fy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Po = (e, t, a, l) => {
|
|
23263
23282
|
const n = e.maxCount || 9, r = a[e.key] || 1, i = Math.min(r, n);
|
|
@@ -23265,9 +23284,9 @@ const Oo = (e, t) => {
|
|
|
23265
23284
|
const o = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", c = st(e.tooltip);
|
|
23266
23285
|
let d = "";
|
|
23267
23286
|
for (let h = 0; h < i; h++) {
|
|
23268
|
-
const f = `${e.key}_${h}`, E = t[f] || "", v = !E, b = v ? "" :
|
|
23287
|
+
const f = `${e.key}_${h}`, E = t[f] || "", v = !E, b = v ? "" : he(E).replace(/\n/g, "<br/>"), y = v ? "show-placeholder" : "", g = c && v ? "rte-variable-with-icon" : "", m = c ? ` data-tooltip="${he(c)}" data-variable-key="${e.key || ""}"` : "", w = c && v ? "" : "hidden", T = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", C = l && c;
|
|
23269
23288
|
let N = "";
|
|
23270
|
-
C ? N = `<span contenteditable="false" class="rte-report-dropdown-host ${w}" data-key="${f}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : c && (N = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${w}" data-variable-key="${e.key}" data-tooltip="${
|
|
23289
|
+
C ? N = `<span contenteditable="false" class="rte-report-dropdown-host ${w}" data-key="${f}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : c && (N = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${w}" data-variable-key="${e.key}" data-tooltip="${he(c)}" ></i>`);
|
|
23271
23290
|
const k = `<span contenteditable="true" data-type="variable" data-key="${f}" data-multi-key="${e.key}" data-index="${h}" data-placeholder="${e.placeholder || ""}"${T}${m} class="variable-chip ${y}${g ? ` ${g}` : ""}">${b}${N}</span>`;
|
|
23272
23291
|
h === 0 ? d += `<span ${o} class="exclusion-wrapper required-upload-group required-multi-first">${Fy}${k}</span>` : d += k;
|
|
23273
23292
|
}
|
|
@@ -23276,9 +23295,9 @@ const Oo = (e, t) => {
|
|
|
23276
23295
|
const u = st(e.tooltip);
|
|
23277
23296
|
let s = "";
|
|
23278
23297
|
for (let o = 0; o < i; o++) {
|
|
23279
|
-
const c = `${e.key}_${o}`, d = t[c] || "", h = !d, f = h ? "" :
|
|
23298
|
+
const c = `${e.key}_${o}`, d = t[c] || "", h = !d, f = h ? "" : he(d).replace(/\n/g, "<br/>"), E = h ? "show-placeholder" : "", v = u && h ? "rte-variable-with-icon" : "", b = u ? ` data-tooltip="${he(u)}" data-variable-key="${e.key || ""}"` : "", y = u && h ? "" : "hidden", g = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", m = l && u;
|
|
23280
23299
|
let w = "";
|
|
23281
|
-
m ? w = `<span contenteditable="false" class="rte-report-dropdown-host ${y}" data-key="${c}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : u && (w = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${
|
|
23300
|
+
m ? w = `<span contenteditable="false" class="rte-report-dropdown-host ${y}" data-key="${c}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : u && (w = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${he(u)}" ></i>`);
|
|
23282
23301
|
const T = `<span contenteditable="true" data-type="variable" data-key="${c}" data-multi-key="${e.key}" data-index="${o}" data-placeholder="${e.placeholder || ""}"${g}${b} class="variable-chip ${E}${v ? ` ${v}` : ""}">${f}${w}</span>`;
|
|
23283
23302
|
s += T;
|
|
23284
23303
|
}
|
|
@@ -23286,40 +23305,51 @@ const Oo = (e, t) => {
|
|
|
23286
23305
|
}, Hy = (e, t, a) => Po(e, t, a, !0).replace(
|
|
23287
23306
|
/data-node-type="multi-variable"/g,
|
|
23288
23307
|
'data-node-type="multi-variable-select"'
|
|
23289
|
-
), dr = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`,
|
|
23290
|
-
const
|
|
23308
|
+
), dr = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, $y = (e) => {
|
|
23309
|
+
const t = (e ?? "").trim();
|
|
23310
|
+
if (!t || !(t.startsWith("{") && t.endsWith("}"))) return !1;
|
|
23311
|
+
try {
|
|
23312
|
+
const a = JSON.parse(t);
|
|
23313
|
+
if (!a || typeof a != "object") return !1;
|
|
23314
|
+
const l = a;
|
|
23315
|
+
return l.type === "steps" && Array.isArray(l.platforms) && l.platforms.length > 0;
|
|
23316
|
+
} catch {
|
|
23317
|
+
return !1;
|
|
23318
|
+
}
|
|
23319
|
+
}, Uy = (e, t, a) => `<span contenteditable="false" class="rte-tutorial-btn" data-upload-key="${e}" data-tooltip="${he(t)}"><i class="iconfont icon-tishi rte-tutorial-btn-icon"></i><span class="rte-tutorial-btn-text">查看教程</span></span>`, Mo = (e, t) => {
|
|
23320
|
+
const a = e.key, l = t[a], n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}"` : "";
|
|
23291
23321
|
let u;
|
|
23292
23322
|
if (l?.status === "loading") {
|
|
23293
23323
|
const o = typeof l.progress == "number" ? Math.min(Math.max(l.progress, 0), 100) : 0, c = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3Crect fill='%23999' width='1' height='1'/%3E%3C/svg%3E", d = 2 * Math.PI * 6.5, h = d * (1 - o / 100), f = `<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${d}" stroke-dashoffset="${h}" transform="rotate(-90 8 8)"/></svg>`;
|
|
23294
23324
|
u = `<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${c}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${f}</span><span class="video-label">解析中...</span></span>`;
|
|
23295
23325
|
} else if (l?.status === "success" && l.videoUrl) {
|
|
23296
23326
|
const o = l.fileName || "视频", c = '<svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg>';
|
|
23297
|
-
u = `<span class="video-inner-wrapper video-url-inner has-video">${l.thumbnail ? `<span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${
|
|
23327
|
+
u = `<span class="video-inner-wrapper video-url-inner has-video">${l.thumbnail ? `<span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${he(l.thumbnail)}" alt="thumbnail" />${c}</span>` : `<span class="video-thumbnail-wrapper"><span class="video-thumbnail video-thumbnail-placeholder"><i class="iconfont icon-shipin" style="font-size:20px;color:#8c8c8c;"></i></span>${c}</span>`}<span class="video-label" data-file-name="${he(o)}">${he(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`;
|
|
23298
23328
|
} else {
|
|
23299
|
-
const o = e.placeholder || "请粘贴想要分析的抖音视频链接", c = r ? "rte-variable-with-icon" : "",
|
|
23300
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${
|
|
23329
|
+
const o = e.placeholder || "请粘贴想要分析的抖音视频链接", c = $y(r), d = r ? "rte-variable-with-icon" : "", h = r ? c ? Uy(a, r) : `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon" data-variable-key="${a}" data-tooltip="${he(r)}" ></i>` : "", f = `<span contenteditable="true" data-type="variable" data-key="${a}" data-node-type="video-url" data-placeholder="${he(o)}"${n}${i} class="variable-chip rte-video-url show-placeholder${d ? ` ${d}` : ""}">${h}</span>`;
|
|
23330
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${f}</span>` : f;
|
|
23301
23331
|
}
|
|
23302
23332
|
const s = `<span contenteditable="false" data-type="video-url" data-key="${a}"${i}${n} class="video-chip">${u}</span>`;
|
|
23303
23333
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${s}</span>` : s;
|
|
23304
23334
|
}, Ro = (e, t) => {
|
|
23305
|
-
const a = e.key, l = t[a], n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${
|
|
23335
|
+
const a = e.key, l = t[a], n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = st(e.tooltip), i = r ? ` data-tooltip="${he(r)}"` : "";
|
|
23306
23336
|
let u;
|
|
23307
23337
|
if (l?.status === "loading") {
|
|
23308
23338
|
const o = typeof l.progress == "number" ? Math.min(Math.max(l.progress, 0), 100) : 0, c = l.fileName || "上传中...", d = l.thumbnail || "", h = 2 * Math.PI * 6.5, f = h * (1 - o / 100), E = `<svg class="video-upload-progress-ring" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="6.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.5"/><circle cx="8" cy="8" r="6.5" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="${h}" stroke-dashoffset="${f}" transform="rotate(-90 8 8)"/></svg>`;
|
|
23309
|
-
u = `<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${
|
|
23339
|
+
u = `<span class="video-inner-wrapper video-upload-inner video-uploading"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${he(d)}" alt="thumbnail" /><span class="video-thumbnail-overlay"></span>${E}</span><span class="video-label">${he(c)}</span></span>`;
|
|
23310
23340
|
} else if (l?.status === "success" && l.thumbnail && l.videoUrl) {
|
|
23311
23341
|
const o = l.fileName || "视频文件";
|
|
23312
|
-
u = `<span class="video-inner-wrapper video-upload-inner has-video"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${
|
|
23342
|
+
u = `<span class="video-inner-wrapper video-upload-inner has-video"><span class="video-thumbnail-wrapper"><img class="video-thumbnail" src="${he(l.thumbnail)}" alt="thumbnail" /><svg class="video-play-icon" viewBox="0 0 16 16" width="16" height="16"><circle cx="8" cy="8" r="8" fill="rgba(0,0,0,0.5)"/><polygon points="6.5,4.5 6.5,11.5 12,8" fill="#fff"/></svg></span><span class="video-label" data-file-name="${he(o)}">${he(o)}</span><span class="video-remove-btn" title="移除视频">×</span></span>`;
|
|
23313
23343
|
} else {
|
|
23314
23344
|
const o = e.text || "请上传想要分析的视频文件", c = r ? "" : "hidden";
|
|
23315
|
-
u = `<span class="video-inner-wrapper video-upload-inner"><i class="iconfont icon-shangchuan1" style="font-size:16px;"></i><span class="video-label"${` data-file-name="${
|
|
23345
|
+
u = `<span class="video-inner-wrapper video-upload-inner"><i class="iconfont icon-shangchuan1" style="font-size:16px;"></i><span class="video-label"${` data-file-name="${he(o).replace(/"/g, """)}"`}>${he(o)}</span>${r ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${c}" data-upload-key="${a}" data-tooltip="${he(r)}" ></i>` : ""}</span>`;
|
|
23316
23346
|
}
|
|
23317
23347
|
const s = `<span contenteditable="false" data-type="video-upload" data-key="${a}"${i}${n} class="video-chip">${u}</span>`;
|
|
23318
23348
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${dr}${s}</span>` : s;
|
|
23319
|
-
},
|
|
23349
|
+
}, qy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, zy = (e, t) => {
|
|
23320
23350
|
const a = t[e.key] || e.defaultValue || "", l = encodeURIComponent(JSON.stringify(e.options || [])), n = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", r = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", i = e.required ? ' data-required="true"' : "", u = `<span data-type="searchable-select" data-key="${e.key}" data-value="${a}" data-options="${l}"${n}${r}${i} class="rte-searchable-select-host"></span>`;
|
|
23321
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${
|
|
23322
|
-
},
|
|
23351
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${qy}${u}</span>` : u;
|
|
23352
|
+
}, Vy = [
|
|
23323
23353
|
{
|
|
23324
23354
|
label: "北京市",
|
|
23325
23355
|
value: "北京市",
|
|
@@ -29175,11 +29205,11 @@ const Oo = (e, t) => {
|
|
|
29175
29205
|
}
|
|
29176
29206
|
]
|
|
29177
29207
|
}
|
|
29178
|
-
],
|
|
29179
|
-
const a = t[e.key] || e.defaultValue || "", l = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions :
|
|
29180
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${
|
|
29208
|
+
], Gy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Yy = (e, t) => {
|
|
29209
|
+
const a = t[e.key] || e.defaultValue || "", l = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : Vy, n = encodeURIComponent(JSON.stringify(l)), r = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", i = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", u = e.required ? ' data-required="true"' : "", s = `<span data-type="cascader" data-key="${e.key}" data-value="${a}" data-options="${n}"${r}${i}${u} class="rte-cascader-host"></span>`;
|
|
29210
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Gy}${s}</span>` : s;
|
|
29181
29211
|
};
|
|
29182
|
-
function
|
|
29212
|
+
function Wy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
29183
29213
|
if (!e.current) return;
|
|
29184
29214
|
const c = /[;;,,。.!!??::、]/, d = (b) => {
|
|
29185
29215
|
const y = (b ?? "").trim();
|
|
@@ -29230,7 +29260,7 @@ function Gy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29230
29260
|
else if (b.type === "upload" && b.key) {
|
|
29231
29261
|
const A = !!y && y.type === "text" && !y.className && !y.exclusionGroup && d(y.text), O = A ? (y.text ?? "").trim() : "", D = O ? f(O) : "";
|
|
29232
29262
|
A && (g = !0), N = Do(b, a, D);
|
|
29233
|
-
} else b.type === "select" && b.key ? N = xy(b, n) : b.type === "textarea" && b.key ? N = Ay(b, n) : b.type === "richtext" && b.key ? N = Cy(b, n) : b.type === "report-module" && b.key ? N = Oy(b, n) : b.type === "markdown-module" && b.key ? N = Dy(b, n) : b.type === "datepicker" && b.key ? N = My(b, n) : b.type === "number-input" && b.key ? N = By(b, n) : b.type === "multi-variable" && b.key ? N = Po(b, n, r, !1) : b.type === "multi-variable-select" && b.key ? N = Hy(b, n, r) : b.type === "video-url" && b.key ? N = Mo(b, s || {}) : b.type === "video-upload" && b.key ? N = Ro(b, s || {}) : b.type === "searchable-select" && b.key ? N =
|
|
29263
|
+
} else b.type === "select" && b.key ? N = xy(b, n) : b.type === "textarea" && b.key ? N = Ay(b, n) : b.type === "richtext" && b.key ? N = Cy(b, n) : b.type === "report-module" && b.key ? N = Oy(b, n) : b.type === "markdown-module" && b.key ? N = Dy(b, n) : b.type === "datepicker" && b.key ? N = My(b, n) : b.type === "number-input" && b.key ? N = By(b, n) : b.type === "multi-variable" && b.key ? N = Po(b, n, r, !1) : b.type === "multi-variable-select" && b.key ? N = Hy(b, n, r) : b.type === "video-url" && b.key ? N = Mo(b, s || {}) : b.type === "video-upload" && b.key ? N = Ro(b, s || {}) : b.type === "searchable-select" && b.key ? N = zy(b, n) : b.type === "cascader" && b.key && (N = Yy(b, n));
|
|
29234
29264
|
const k = T + N + C;
|
|
29235
29265
|
if (b.type === "text" && !b.className && !b.exclusionGroup) {
|
|
29236
29266
|
if (d(b.text) && E.length > 0) {
|
|
@@ -29277,11 +29307,11 @@ function Gy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29277
29307
|
const Bo = (e) => {
|
|
29278
29308
|
const t = document.createElement("template");
|
|
29279
29309
|
return t.innerHTML = e.trim(), Array.from(t.content.childNodes);
|
|
29280
|
-
},
|
|
29310
|
+
}, jy = (e) => Bo(e).filter((t) => t.nodeType === Node.ELEMENT_NODE), Un = (e, t) => {
|
|
29281
29311
|
if (!e) return;
|
|
29282
29312
|
const a = Bo(t);
|
|
29283
29313
|
a.length > 0 && e.replaceWith(...a);
|
|
29284
|
-
}, qn = (e) => e?.closest(".required-upload-group") || null,
|
|
29314
|
+
}, qn = (e) => e?.closest(".required-upload-group") || null, Ky = (e, t) => {
|
|
29285
29315
|
if (!t) return "";
|
|
29286
29316
|
const a = new Set(
|
|
29287
29317
|
e.filter((n) => (n.type === "upload" || n.type === "video-upload" || n.type === "video-url") && n.key).map((n) => n.key)
|
|
@@ -29289,7 +29319,7 @@ const Bo = (e) => {
|
|
|
29289
29319
|
return Object.entries(t).forEach(([n, r]) => {
|
|
29290
29320
|
a.has(n) || (l[n] = r);
|
|
29291
29321
|
}), JSON.stringify(l);
|
|
29292
|
-
},
|
|
29322
|
+
}, Xy = (e, t, a, l) => {
|
|
29293
29323
|
t.forEach((n) => {
|
|
29294
29324
|
if (n.key) {
|
|
29295
29325
|
if (n.type === "upload") {
|
|
@@ -29302,7 +29332,7 @@ const Bo = (e) => {
|
|
|
29302
29332
|
const u = e.querySelector(`[data-type="upload"][data-key="${n.key}"]`), s = qn(u), c = s && !n.required ? (() => {
|
|
29303
29333
|
const { uploadHtml: b, hintHtml: y } = Oo(n, a);
|
|
29304
29334
|
return b + y;
|
|
29305
|
-
})() : i, d =
|
|
29335
|
+
})() : i, d = jy(c), h = d.find((b) => b.matches('[data-type="upload"]')) || d.find((b) => b.querySelector('[data-type="upload"]'))?.querySelector(
|
|
29306
29336
|
'[data-type="upload"]'
|
|
29307
29337
|
) || null, f = d.find((b) => b.matches(".upload-hint")) || d.find((b) => b.querySelector(".upload-hint"))?.querySelector(".upload-hint") || null, E = s || u, v = E?.nextElementSibling?.classList.contains("upload-hint") ? E.nextElementSibling : null;
|
|
29308
29338
|
u && h && u.replaceWith(h), v && f ? v.replaceWith(f) : v ? v.remove() : f && (s || h || u)?.insertAdjacentElement("afterend", f);
|
|
@@ -29320,7 +29350,7 @@ const Bo = (e) => {
|
|
|
29320
29350
|
}
|
|
29321
29351
|
});
|
|
29322
29352
|
};
|
|
29323
|
-
function
|
|
29353
|
+
function Qy(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
29324
29354
|
const f = Z(/* @__PURE__ */ new Set()), E = Z(""), v = Z(!1), b = Z(""), y = Z({}), g = ue(() => {
|
|
29325
29355
|
if (!e.current) return;
|
|
29326
29356
|
if (t.length === 0) {
|
|
@@ -29333,11 +29363,11 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29333
29363
|
multiVariableCounts: n,
|
|
29334
29364
|
hideButtons: u,
|
|
29335
29365
|
nodeDefaults: s,
|
|
29336
|
-
nodeValues:
|
|
29366
|
+
nodeValues: Ky(t, o),
|
|
29337
29367
|
hasReportDropdown: d
|
|
29338
29368
|
});
|
|
29339
29369
|
if (!!!e.current.__tempVariableValues && b.current === m && e.current.childNodes.length > 0) {
|
|
29340
|
-
|
|
29370
|
+
Xy(e.current, t, a, c), setTimeout(() => {
|
|
29341
29371
|
da(e), Wa(e, t, a, c);
|
|
29342
29372
|
}, 0);
|
|
29343
29373
|
return;
|
|
@@ -29362,24 +29392,24 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29362
29392
|
!D && !x.getAttribute("data-report-url") && h?.current && delete h.current[I];
|
|
29363
29393
|
let H = "";
|
|
29364
29394
|
if (x.dataset.variableRender === "antd-textarea") {
|
|
29365
|
-
const
|
|
29395
|
+
const R = (x.getAttribute("data-value") || "").trim();
|
|
29366
29396
|
try {
|
|
29367
|
-
H =
|
|
29397
|
+
H = R ? decodeURIComponent(R).replace(/\r\n/g, `
|
|
29368
29398
|
`).trim() : "";
|
|
29369
29399
|
} catch {
|
|
29370
|
-
H =
|
|
29400
|
+
H = R.trim();
|
|
29371
29401
|
}
|
|
29372
29402
|
} else {
|
|
29373
|
-
const
|
|
29403
|
+
const R = (x.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
|
|
29374
29404
|
`);
|
|
29375
|
-
H =
|
|
29405
|
+
H = R.replace(/\n/g, "").trim().length > 0 ? R : "";
|
|
29376
29406
|
}
|
|
29377
29407
|
if (H)
|
|
29378
29408
|
f.current.add(I);
|
|
29379
29409
|
else if (f.current.has(I)) {
|
|
29380
29410
|
O.add(I);
|
|
29381
|
-
const
|
|
29382
|
-
|
|
29411
|
+
const R = x.getAttribute("data-node-type");
|
|
29412
|
+
R === "report-url" ? O.add(`${I}__url`) : R === "markdown-name" && O.add(`${I}__name`);
|
|
29383
29413
|
}
|
|
29384
29414
|
});
|
|
29385
29415
|
}
|
|
@@ -29473,28 +29503,28 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29473
29503
|
), x = {};
|
|
29474
29504
|
N || Object.entries(o).forEach(([I, H]) => {
|
|
29475
29505
|
if (!Array.isArray(H)) return;
|
|
29476
|
-
let
|
|
29506
|
+
let R = 0;
|
|
29477
29507
|
for (let _ = 0; _ < H.length; _++)
|
|
29478
|
-
`${I}_${_}` in k &&
|
|
29508
|
+
`${I}_${_}` in k && R++;
|
|
29479
29509
|
let $ = -1;
|
|
29480
29510
|
for (let _ = 0; _ < H.length; _++)
|
|
29481
29511
|
f.current.has(`${I}_${_}`) && ($ = _);
|
|
29482
|
-
if ($ >=
|
|
29483
|
-
for (let _ =
|
|
29512
|
+
if ($ >= R && R < H.length)
|
|
29513
|
+
for (let _ = R; _ < H.length; _++)
|
|
29484
29514
|
O.add(`${I}_${_}`);
|
|
29485
29515
|
}), Object.entries(o).forEach(([I, H]) => {
|
|
29486
|
-
L.has(I) || (Array.isArray(H) ? H.forEach((
|
|
29487
|
-
|
|
29516
|
+
L.has(I) || (Array.isArray(H) ? H.forEach((R, $) => {
|
|
29517
|
+
R != null && String(R).trim() !== "" && (x[`${I}_${$}`] = String(R));
|
|
29488
29518
|
}) : H != null && String(H).trim() !== "" && (t.find(($) => $.key === I && $.type === "report-url") ? x[`${I}__url`] = String(H) : x[I] = String(H)));
|
|
29489
29519
|
}), Object.entries(x).forEach(([I, H]) => {
|
|
29490
|
-
const
|
|
29491
|
-
!$ && (!
|
|
29520
|
+
const R = I in k, $ = O.has(I), _ = y.current[I] !== H;
|
|
29521
|
+
!$ && (!R || _) && (k[I] = H);
|
|
29492
29522
|
});
|
|
29493
29523
|
for (const I of Object.keys(y.current))
|
|
29494
29524
|
!(I in x) && I in k && delete k[I];
|
|
29495
29525
|
y.current = x;
|
|
29496
29526
|
}
|
|
29497
|
-
if (
|
|
29527
|
+
if (Wy(
|
|
29498
29528
|
e,
|
|
29499
29529
|
t,
|
|
29500
29530
|
a,
|
|
@@ -29511,10 +29541,10 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29511
29541
|
`[data-type="variable"][data-key="${L}"]`
|
|
29512
29542
|
);
|
|
29513
29543
|
if (!H) continue;
|
|
29514
|
-
const
|
|
29515
|
-
|
|
29544
|
+
const R = H.querySelector(".rte-report-dropdown-host");
|
|
29545
|
+
R && (R.style.display = "", R.style.visibility = "", R.classList.remove("hidden"), R.classList.add("rte-report-dropdown-host-quiet"));
|
|
29516
29546
|
const $ = [document.createTextNode(x)];
|
|
29517
|
-
|
|
29547
|
+
R && $.push(R), H.setAttribute("data-report-url", I), H.setAttribute("data-report-name", x), H.removeAttribute("data-tooltip"), H.contentEditable = "false", H.classList.add("rte-report-name-chip"), H.classList.remove("show-placeholder", "rte-variable-with-icon"), H.replaceChildren(...$), zn(H);
|
|
29518
29548
|
}
|
|
29519
29549
|
if (N && (v.current = !1), setTimeout(() => {
|
|
29520
29550
|
if (da(e), h?.current)
|
|
@@ -29535,8 +29565,8 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29535
29565
|
if (!I) continue;
|
|
29536
29566
|
const H = I.querySelector(".rte-report-dropdown-host");
|
|
29537
29567
|
H && (H.style.display = "", H.style.visibility = "", H.classList.remove("hidden"), H.classList.add("rte-report-dropdown-host-quiet"));
|
|
29538
|
-
const
|
|
29539
|
-
H &&
|
|
29568
|
+
const R = [document.createTextNode(x.name)];
|
|
29569
|
+
H && R.push(H), I.classList.remove("show-placeholder", "rte-variable-with-icon"), I.classList.add("rte-report-name-chip"), I.setAttribute("data-report-url", x.url), I.setAttribute("data-report-name", x.name), I.contentEditable = "false", I.replaceChildren(...R), zn(I);
|
|
29540
29570
|
}
|
|
29541
29571
|
Wa(e, t, a, c);
|
|
29542
29572
|
}, 0), r?.current) {
|
|
@@ -29552,8 +29582,8 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29552
29582
|
if (H) {
|
|
29553
29583
|
H.focus();
|
|
29554
29584
|
try {
|
|
29555
|
-
const
|
|
29556
|
-
H.setSelectionRange(Math.min(x,
|
|
29585
|
+
const R = H.value?.length ?? 0;
|
|
29586
|
+
H.setSelectionRange(Math.min(x, R), Math.min(x, R));
|
|
29557
29587
|
} catch {
|
|
29558
29588
|
}
|
|
29559
29589
|
r.current = null;
|
|
@@ -29561,14 +29591,14 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29561
29591
|
}
|
|
29562
29592
|
}
|
|
29563
29593
|
try {
|
|
29564
|
-
const H = document.createRange(),
|
|
29594
|
+
const H = document.createRange(), R = document.createTreeWalker(
|
|
29565
29595
|
I,
|
|
29566
29596
|
NodeFilter.SHOW_TEXT,
|
|
29567
29597
|
null
|
|
29568
29598
|
);
|
|
29569
29599
|
let $ = 0, _ = null, Y = 0;
|
|
29570
|
-
for (;
|
|
29571
|
-
const z =
|
|
29600
|
+
for (; R.nextNode(); ) {
|
|
29601
|
+
const z = R.currentNode, S = z.textContent?.length || 0;
|
|
29572
29602
|
if ($ + S >= x) {
|
|
29573
29603
|
_ = z, Y = x - $;
|
|
29574
29604
|
break;
|
|
@@ -29587,8 +29617,8 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29587
29617
|
} catch {
|
|
29588
29618
|
const H = document.createRange();
|
|
29589
29619
|
H.selectNodeContents(I), H.collapse(!1);
|
|
29590
|
-
const
|
|
29591
|
-
|
|
29620
|
+
const R = window.getSelection();
|
|
29621
|
+
R && (R.removeAllRanges(), R.addRange(H), I.focus());
|
|
29592
29622
|
}
|
|
29593
29623
|
r.current = null;
|
|
29594
29624
|
}
|
|
@@ -29599,7 +29629,7 @@ function Ky(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29599
29629
|
g();
|
|
29600
29630
|
}, [g]);
|
|
29601
29631
|
}
|
|
29602
|
-
function
|
|
29632
|
+
function Jy(e, t, a, l, n) {
|
|
29603
29633
|
ne(() => {
|
|
29604
29634
|
const r = e.current;
|
|
29605
29635
|
if (!r) return;
|
|
@@ -29651,14 +29681,14 @@ function Xy(e, t, a, l, n) {
|
|
|
29651
29681
|
const o = (y) => {
|
|
29652
29682
|
const g = y.currentTarget, m = g.dataset.uploadKey;
|
|
29653
29683
|
if (m) {
|
|
29654
|
-
const w = g.closest('[data-type="upload"]');
|
|
29684
|
+
const w = g.closest('[data-type="upload"], [data-node-type="video-url"]');
|
|
29655
29685
|
l({ key: m, anchorEl: w || g, type: "upload" });
|
|
29656
29686
|
}
|
|
29657
29687
|
}, c = (y) => {
|
|
29658
29688
|
if (n) return;
|
|
29659
29689
|
const g = y.relatedTarget;
|
|
29660
29690
|
if (g?.closest?.(".rte-tooltip-overlay")) return;
|
|
29661
|
-
const w = y.currentTarget.closest('[data-type="upload"]');
|
|
29691
|
+
const w = y.currentTarget.closest('[data-type="upload"], [data-node-type="video-url"]');
|
|
29662
29692
|
g && w?.contains(g) || l(null);
|
|
29663
29693
|
}, d = /* @__PURE__ */ new WeakSet(), h = () => {
|
|
29664
29694
|
r.querySelectorAll(".rte-tutorial-btn").forEach((y) => {
|
|
@@ -29691,7 +29721,7 @@ function Xy(e, t, a, l, n) {
|
|
|
29691
29721
|
};
|
|
29692
29722
|
}, [t, a, e, l, n]);
|
|
29693
29723
|
}
|
|
29694
|
-
function
|
|
29724
|
+
function Zy(e, t, a, l, n) {
|
|
29695
29725
|
ne(() => {
|
|
29696
29726
|
const r = e.current;
|
|
29697
29727
|
if (!r) return;
|
|
@@ -29720,7 +29750,7 @@ function Qy(e, t, a, l, n) {
|
|
|
29720
29750
|
};
|
|
29721
29751
|
}, [t, e, a, l, n]);
|
|
29722
29752
|
}
|
|
29723
|
-
function
|
|
29753
|
+
function eT(e, t, a, l) {
|
|
29724
29754
|
ne(() => {
|
|
29725
29755
|
const n = e.current;
|
|
29726
29756
|
if (!n) return;
|
|
@@ -29750,7 +29780,7 @@ function Jy(e, t, a, l) {
|
|
|
29750
29780
|
};
|
|
29751
29781
|
}, [t, e, a, l]);
|
|
29752
29782
|
}
|
|
29753
|
-
function
|
|
29783
|
+
function tT(e, t, a, l, n) {
|
|
29754
29784
|
ne(() => {
|
|
29755
29785
|
const r = e.current;
|
|
29756
29786
|
if (!r) return;
|
|
@@ -29781,7 +29811,7 @@ function Zy(e, t, a, l, n) {
|
|
|
29781
29811
|
};
|
|
29782
29812
|
}, [t, a, e, l, n]);
|
|
29783
29813
|
}
|
|
29784
|
-
function
|
|
29814
|
+
function aT(e, t, a, l, n, r, i, u) {
|
|
29785
29815
|
ne(() => {
|
|
29786
29816
|
const s = setTimeout(() => {
|
|
29787
29817
|
Wa(e, t, a, n), br(e, t, a, l, n, {
|
|
@@ -29792,7 +29822,7 @@ function eT(e, t, a, l, n, r, i, u) {
|
|
|
29792
29822
|
return () => clearTimeout(s);
|
|
29793
29823
|
}, [a, t, e, l, n, r, i, u]);
|
|
29794
29824
|
}
|
|
29795
|
-
function
|
|
29825
|
+
function lT(e, t) {
|
|
29796
29826
|
const a = Z(0), l = Z(0);
|
|
29797
29827
|
ne(() => {
|
|
29798
29828
|
if (!e.current) return;
|
|
@@ -29862,12 +29892,12 @@ function tT(e, t) {
|
|
|
29862
29892
|
};
|
|
29863
29893
|
}, [e, t]);
|
|
29864
29894
|
}
|
|
29865
|
-
var kl = { exports: {} },
|
|
29895
|
+
var kl = { exports: {} }, nT = kl.exports, Du;
|
|
29866
29896
|
function Fo() {
|
|
29867
29897
|
return Du || (Du = 1, function(e, t) {
|
|
29868
29898
|
(function(a, l) {
|
|
29869
29899
|
e.exports = l();
|
|
29870
|
-
})(
|
|
29900
|
+
})(nT, function() {
|
|
29871
29901
|
var a = 1e3, l = 6e4, n = 36e5, r = "millisecond", i = "second", u = "minute", s = "hour", o = "day", c = "week", d = "month", h = "quarter", f = "year", E = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
|
|
29872
29902
|
var x = ["th", "st", "nd", "rd"], I = L % 100;
|
|
29873
29903
|
return "[" + L + (x[(I - 20) % 10] || x[I] || x[0]) + "]";
|
|
@@ -29875,12 +29905,12 @@ function Fo() {
|
|
|
29875
29905
|
var H = String(L);
|
|
29876
29906
|
return !H || H.length >= x ? L : "" + Array(x + 1 - H.length).join(I) + L;
|
|
29877
29907
|
}, w = { s: m, z: function(L) {
|
|
29878
|
-
var x = -L.utcOffset(), I = Math.abs(x), H = Math.floor(I / 60),
|
|
29879
|
-
return (x <= 0 ? "+" : "-") + m(H, 2, "0") + ":" + m(
|
|
29908
|
+
var x = -L.utcOffset(), I = Math.abs(x), H = Math.floor(I / 60), R = I % 60;
|
|
29909
|
+
return (x <= 0 ? "+" : "-") + m(H, 2, "0") + ":" + m(R, 2, "0");
|
|
29880
29910
|
}, m: function L(x, I) {
|
|
29881
29911
|
if (x.date() < I.date()) return -L(I, x);
|
|
29882
|
-
var H = 12 * (I.year() - x.year()) + (I.month() - x.month()),
|
|
29883
|
-
return +(-(H + (I -
|
|
29912
|
+
var H = 12 * (I.year() - x.year()) + (I.month() - x.month()), R = x.clone().add(H, d), $ = I - R < 0, _ = x.clone().add(H + ($ ? -1 : 1), d);
|
|
29913
|
+
return +(-(H + (I - R) / ($ ? R - _ : _ - R)) || 0);
|
|
29884
29914
|
}, a: function(L) {
|
|
29885
29915
|
return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
|
|
29886
29916
|
}, p: function(L) {
|
|
@@ -29892,18 +29922,18 @@ function Fo() {
|
|
|
29892
29922
|
var N = "$isDayjsObject", k = function(L) {
|
|
29893
29923
|
return L instanceof F || !(!L || !L[N]);
|
|
29894
29924
|
}, A = function L(x, I, H) {
|
|
29895
|
-
var
|
|
29925
|
+
var R;
|
|
29896
29926
|
if (!x) return T;
|
|
29897
29927
|
if (typeof x == "string") {
|
|
29898
29928
|
var $ = x.toLowerCase();
|
|
29899
|
-
C[$] && (
|
|
29929
|
+
C[$] && (R = $), I && (C[$] = I, R = $);
|
|
29900
29930
|
var _ = x.split("-");
|
|
29901
|
-
if (!
|
|
29931
|
+
if (!R && _.length > 1) return L(_[0]);
|
|
29902
29932
|
} else {
|
|
29903
29933
|
var Y = x.name;
|
|
29904
|
-
C[Y] = x,
|
|
29934
|
+
C[Y] = x, R = Y;
|
|
29905
29935
|
}
|
|
29906
|
-
return !H &&
|
|
29936
|
+
return !H && R && (T = R), R || !H && T;
|
|
29907
29937
|
}, O = function(L, x) {
|
|
29908
29938
|
if (k(L)) return L.clone();
|
|
29909
29939
|
var I = typeof x == "object" ? x : {};
|
|
@@ -29919,18 +29949,18 @@ function Fo() {
|
|
|
29919
29949
|
var x = L.prototype;
|
|
29920
29950
|
return x.parse = function(I) {
|
|
29921
29951
|
this.$d = function(H) {
|
|
29922
|
-
var
|
|
29923
|
-
if (
|
|
29924
|
-
if (D.u(
|
|
29925
|
-
if (
|
|
29926
|
-
if (typeof
|
|
29927
|
-
var _ =
|
|
29952
|
+
var R = H.date, $ = H.utc;
|
|
29953
|
+
if (R === null) return /* @__PURE__ */ new Date(NaN);
|
|
29954
|
+
if (D.u(R)) return /* @__PURE__ */ new Date();
|
|
29955
|
+
if (R instanceof Date) return new Date(R);
|
|
29956
|
+
if (typeof R == "string" && !/Z$/i.test(R)) {
|
|
29957
|
+
var _ = R.match(b);
|
|
29928
29958
|
if (_) {
|
|
29929
29959
|
var Y = _[2] - 1 || 0, z = (_[7] || "0").substring(0, 3);
|
|
29930
29960
|
return $ ? new Date(Date.UTC(_[1], Y, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, z)) : new Date(_[1], Y, _[3] || 1, _[4] || 0, _[5] || 0, _[6] || 0, z);
|
|
29931
29961
|
}
|
|
29932
29962
|
}
|
|
29933
|
-
return new Date(
|
|
29963
|
+
return new Date(R);
|
|
29934
29964
|
}(I), this.init();
|
|
29935
29965
|
}, x.init = function() {
|
|
29936
29966
|
var I = this.$d;
|
|
@@ -29940,24 +29970,24 @@ function Fo() {
|
|
|
29940
29970
|
}, x.isValid = function() {
|
|
29941
29971
|
return this.$d.toString() !== v;
|
|
29942
29972
|
}, x.isSame = function(I, H) {
|
|
29943
|
-
var
|
|
29944
|
-
return this.startOf(H) <=
|
|
29973
|
+
var R = O(I);
|
|
29974
|
+
return this.startOf(H) <= R && R <= this.endOf(H);
|
|
29945
29975
|
}, x.isAfter = function(I, H) {
|
|
29946
29976
|
return O(I) < this.startOf(H);
|
|
29947
29977
|
}, x.isBefore = function(I, H) {
|
|
29948
29978
|
return this.endOf(H) < O(I);
|
|
29949
|
-
}, x.$g = function(I, H,
|
|
29950
|
-
return D.u(I) ? this[H] : this.set(
|
|
29979
|
+
}, x.$g = function(I, H, R) {
|
|
29980
|
+
return D.u(I) ? this[H] : this.set(R, I);
|
|
29951
29981
|
}, x.unix = function() {
|
|
29952
29982
|
return Math.floor(this.valueOf() / 1e3);
|
|
29953
29983
|
}, x.valueOf = function() {
|
|
29954
29984
|
return this.$d.getTime();
|
|
29955
29985
|
}, x.startOf = function(I, H) {
|
|
29956
|
-
var
|
|
29957
|
-
var Te = D.w(
|
|
29986
|
+
var R = this, $ = !!D.u(H) || H, _ = D.p(I), Y = function(de, be) {
|
|
29987
|
+
var Te = D.w(R.$u ? Date.UTC(R.$y, be, de) : new Date(R.$y, be, de), R);
|
|
29958
29988
|
return $ ? Te : Te.endOf(o);
|
|
29959
|
-
}, z = function(de,
|
|
29960
|
-
return D.w(
|
|
29989
|
+
}, z = function(de, be) {
|
|
29990
|
+
return D.w(R.toDate()[de].apply(R.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(be)), R);
|
|
29961
29991
|
}, S = this.$W, q = this.$M, V = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
29962
29992
|
switch (_) {
|
|
29963
29993
|
case f:
|
|
@@ -29982,7 +30012,7 @@ function Fo() {
|
|
|
29982
30012
|
}, x.endOf = function(I) {
|
|
29983
30013
|
return this.startOf(I, !1);
|
|
29984
30014
|
}, x.$set = function(I, H) {
|
|
29985
|
-
var
|
|
30015
|
+
var R, $ = D.p(I), _ = "set" + (this.$u ? "UTC" : ""), Y = (R = {}, R[o] = _ + "Date", R[E] = _ + "Date", R[d] = _ + "Month", R[f] = _ + "FullYear", R[s] = _ + "Hours", R[u] = _ + "Minutes", R[i] = _ + "Seconds", R[r] = _ + "Milliseconds", R)[$], z = $ === o ? this.$D + (H - this.$W) : H;
|
|
29986
30016
|
if ($ === d || $ === f) {
|
|
29987
30017
|
var S = this.clone().set(E, 1);
|
|
29988
30018
|
S.$d[Y](z), S.init(), this.$d = S.set(E, Math.min(this.$D, S.daysInMonth())).$d;
|
|
@@ -29993,7 +30023,7 @@ function Fo() {
|
|
|
29993
30023
|
}, x.get = function(I) {
|
|
29994
30024
|
return this[D.p(I)]();
|
|
29995
30025
|
}, x.add = function(I, H) {
|
|
29996
|
-
var
|
|
30026
|
+
var R, $ = this;
|
|
29997
30027
|
I = Number(I);
|
|
29998
30028
|
var _ = D.p(H), Y = function(q) {
|
|
29999
30029
|
var V = O($);
|
|
@@ -30003,22 +30033,22 @@ function Fo() {
|
|
|
30003
30033
|
if (_ === f) return this.set(f, this.$y + I);
|
|
30004
30034
|
if (_ === o) return Y(1);
|
|
30005
30035
|
if (_ === c) return Y(7);
|
|
30006
|
-
var z = (
|
|
30036
|
+
var z = (R = {}, R[u] = l, R[s] = n, R[i] = a, R)[_] || 1, S = this.$d.getTime() + I * z;
|
|
30007
30037
|
return D.w(S, this);
|
|
30008
30038
|
}, x.subtract = function(I, H) {
|
|
30009
30039
|
return this.add(-1 * I, H);
|
|
30010
30040
|
}, x.format = function(I) {
|
|
30011
|
-
var H = this,
|
|
30012
|
-
if (!this.isValid()) return
|
|
30013
|
-
var $ = I || "YYYY-MM-DDTHH:mm:ssZ", _ = D.z(this), Y = this.$H, z = this.$m, S = this.$M, q =
|
|
30014
|
-
return
|
|
30015
|
-
}, te = function(
|
|
30016
|
-
return D.s(Y % 12 || 12,
|
|
30017
|
-
}, de = K || function(
|
|
30018
|
-
var Ie =
|
|
30041
|
+
var H = this, R = this.$locale();
|
|
30042
|
+
if (!this.isValid()) return R.invalidDate || v;
|
|
30043
|
+
var $ = I || "YYYY-MM-DDTHH:mm:ssZ", _ = D.z(this), Y = this.$H, z = this.$m, S = this.$M, q = R.weekdays, V = R.months, K = R.meridiem, j = function(be, Te, Be, Ie) {
|
|
30044
|
+
return be && (be[Te] || be(H, $)) || Be[Te].slice(0, Ie);
|
|
30045
|
+
}, te = function(be) {
|
|
30046
|
+
return D.s(Y % 12 || 12, be, "0");
|
|
30047
|
+
}, de = K || function(be, Te, Be) {
|
|
30048
|
+
var Ie = be < 12 ? "AM" : "PM";
|
|
30019
30049
|
return Be ? Ie.toLowerCase() : Ie;
|
|
30020
30050
|
};
|
|
30021
|
-
return $.replace(y, function(
|
|
30051
|
+
return $.replace(y, function(be, Te) {
|
|
30022
30052
|
return Te || function(Be) {
|
|
30023
30053
|
switch (Be) {
|
|
30024
30054
|
case "YY":
|
|
@@ -30030,7 +30060,7 @@ function Fo() {
|
|
|
30030
30060
|
case "MM":
|
|
30031
30061
|
return D.s(S + 1, 2, "0");
|
|
30032
30062
|
case "MMM":
|
|
30033
|
-
return j(
|
|
30063
|
+
return j(R.monthsShort, S, V, 3);
|
|
30034
30064
|
case "MMMM":
|
|
30035
30065
|
return j(V, S);
|
|
30036
30066
|
case "D":
|
|
@@ -30040,9 +30070,9 @@ function Fo() {
|
|
|
30040
30070
|
case "d":
|
|
30041
30071
|
return String(H.$W);
|
|
30042
30072
|
case "dd":
|
|
30043
|
-
return j(
|
|
30073
|
+
return j(R.weekdaysMin, H.$W, q, 2);
|
|
30044
30074
|
case "ddd":
|
|
30045
|
-
return j(
|
|
30075
|
+
return j(R.weekdaysShort, H.$W, q, 3);
|
|
30046
30076
|
case "dddd":
|
|
30047
30077
|
return q[H.$W];
|
|
30048
30078
|
case "H":
|
|
@@ -30071,11 +30101,11 @@ function Fo() {
|
|
|
30071
30101
|
return _;
|
|
30072
30102
|
}
|
|
30073
30103
|
return null;
|
|
30074
|
-
}(
|
|
30104
|
+
}(be) || _.replace(":", "");
|
|
30075
30105
|
});
|
|
30076
30106
|
}, x.utcOffset = function() {
|
|
30077
30107
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
30078
|
-
}, x.diff = function(I, H,
|
|
30108
|
+
}, x.diff = function(I, H, R) {
|
|
30079
30109
|
var $, _ = this, Y = D.p(H), z = O(I), S = (z.utcOffset() - this.utcOffset()) * l, q = this - z, V = function() {
|
|
30080
30110
|
return D.m(_, z);
|
|
30081
30111
|
};
|
|
@@ -30107,15 +30137,15 @@ function Fo() {
|
|
|
30107
30137
|
default:
|
|
30108
30138
|
$ = q;
|
|
30109
30139
|
}
|
|
30110
|
-
return
|
|
30140
|
+
return R ? $ : D.a($);
|
|
30111
30141
|
}, x.daysInMonth = function() {
|
|
30112
30142
|
return this.endOf(d).$D;
|
|
30113
30143
|
}, x.$locale = function() {
|
|
30114
30144
|
return C[this.$L];
|
|
30115
30145
|
}, x.locale = function(I, H) {
|
|
30116
30146
|
if (!I) return this.$L;
|
|
30117
|
-
var
|
|
30118
|
-
return $ && (
|
|
30147
|
+
var R = this.clone(), $ = A(I, H, !0);
|
|
30148
|
+
return $ && (R.$L = $), R;
|
|
30119
30149
|
}, x.clone = function() {
|
|
30120
30150
|
return D.w(this.$d, this);
|
|
30121
30151
|
}, x.toDate = function() {
|
|
@@ -30140,14 +30170,14 @@ function Fo() {
|
|
|
30140
30170
|
});
|
|
30141
30171
|
}(kl)), kl.exports;
|
|
30142
30172
|
}
|
|
30143
|
-
var
|
|
30144
|
-
const Nl = /* @__PURE__ */ Er(
|
|
30145
|
-
var Il = { exports: {} },
|
|
30146
|
-
function
|
|
30173
|
+
var rT = Fo();
|
|
30174
|
+
const Nl = /* @__PURE__ */ Er(rT);
|
|
30175
|
+
var Il = { exports: {} }, iT = Il.exports, Pu;
|
|
30176
|
+
function uT() {
|
|
30147
30177
|
return Pu || (Pu = 1, function(e, t) {
|
|
30148
30178
|
(function(a, l) {
|
|
30149
30179
|
e.exports = l(Fo());
|
|
30150
|
-
})(
|
|
30180
|
+
})(iT, function(a) {
|
|
30151
30181
|
function l(i) {
|
|
30152
30182
|
return i && typeof i == "object" && "default" in i ? i : { default: i };
|
|
30153
30183
|
}
|
|
@@ -30161,7 +30191,7 @@ function rT() {
|
|
|
30161
30191
|
});
|
|
30162
30192
|
}(Il)), Il.exports;
|
|
30163
30193
|
}
|
|
30164
|
-
|
|
30194
|
+
uT();
|
|
30165
30195
|
function el(e) {
|
|
30166
30196
|
"@babel/helpers - typeof";
|
|
30167
30197
|
return el = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -30170,7 +30200,7 @@ function el(e) {
|
|
|
30170
30200
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
30171
30201
|
}, el(e);
|
|
30172
30202
|
}
|
|
30173
|
-
function
|
|
30203
|
+
function sT(e, t) {
|
|
30174
30204
|
if (el(e) != "object" || !e) return e;
|
|
30175
30205
|
var a = e[Symbol.toPrimitive];
|
|
30176
30206
|
if (a !== void 0) {
|
|
@@ -30180,12 +30210,12 @@ function iT(e, t) {
|
|
|
30180
30210
|
}
|
|
30181
30211
|
return (t === "string" ? String : Number)(e);
|
|
30182
30212
|
}
|
|
30183
|
-
function
|
|
30184
|
-
var t =
|
|
30213
|
+
function oT(e) {
|
|
30214
|
+
var t = sT(e, "string");
|
|
30185
30215
|
return el(t) == "symbol" ? t : t + "";
|
|
30186
30216
|
}
|
|
30187
|
-
function
|
|
30188
|
-
return (t =
|
|
30217
|
+
function cT(e, t, a) {
|
|
30218
|
+
return (t = oT(t)) in e ? Object.defineProperty(e, t, {
|
|
30189
30219
|
value: a,
|
|
30190
30220
|
enumerable: !0,
|
|
30191
30221
|
configurable: !0,
|
|
@@ -30206,19 +30236,19 @@ function Ru(e) {
|
|
|
30206
30236
|
for (var t = 1; t < arguments.length; t++) {
|
|
30207
30237
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
30208
30238
|
t % 2 ? Mu(Object(a), !0).forEach(function(l) {
|
|
30209
|
-
|
|
30239
|
+
cT(e, l, a[l]);
|
|
30210
30240
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Mu(Object(a)).forEach(function(l) {
|
|
30211
30241
|
Object.defineProperty(e, l, Object.getOwnPropertyDescriptor(a, l));
|
|
30212
30242
|
});
|
|
30213
30243
|
}
|
|
30214
30244
|
return e;
|
|
30215
30245
|
}
|
|
30216
|
-
var
|
|
30246
|
+
var dT = {
|
|
30217
30247
|
yearFormat: "YYYY",
|
|
30218
30248
|
dayFormat: "D",
|
|
30219
30249
|
cellMeridiemFormat: "A",
|
|
30220
30250
|
monthBeforeYear: !0
|
|
30221
|
-
},
|
|
30251
|
+
}, fT = Ru(Ru({}, dT), {}, {
|
|
30222
30252
|
locale: "zh_CN",
|
|
30223
30253
|
today: "今天",
|
|
30224
30254
|
now: "此刻",
|
|
@@ -30246,7 +30276,7 @@ var oT = {
|
|
|
30246
30276
|
cellDateFormat: "D",
|
|
30247
30277
|
monthBeforeYear: !1
|
|
30248
30278
|
});
|
|
30249
|
-
const
|
|
30279
|
+
const pT = {
|
|
30250
30280
|
placeholder: "请选择时间",
|
|
30251
30281
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
30252
30282
|
}, Ho = {
|
|
@@ -30261,12 +30291,12 @@ const dT = {
|
|
|
30261
30291
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
30262
30292
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
30263
30293
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
30264
|
-
},
|
|
30265
|
-
timePickerLocale: Object.assign({},
|
|
30294
|
+
}, fT),
|
|
30295
|
+
timePickerLocale: Object.assign({}, pT)
|
|
30266
30296
|
};
|
|
30267
30297
|
Ho.lang.ok = "确定";
|
|
30268
30298
|
Nl.locale("zh-cn");
|
|
30269
|
-
const { RangePicker:
|
|
30299
|
+
const { RangePicker: hT } = Oc, bT = ({ host: e, onChange: t }) => {
|
|
30270
30300
|
const a = e.dataset.key, l = e.dataset.value, n = e.dataset.placeholder, r = e.dataset.limitRange ? parseInt(e.dataset.limitRange, 10) : void 0, i = e.dataset.disableFuture === "true", [u, s] = re(() => {
|
|
30271
30301
|
if (!l) return null;
|
|
30272
30302
|
const v = l.split(",");
|
|
@@ -30289,7 +30319,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30289
30319
|
lineHeight: "30px"
|
|
30290
30320
|
},
|
|
30291
30321
|
children: /* @__PURE__ */ G(
|
|
30292
|
-
|
|
30322
|
+
hT,
|
|
30293
30323
|
{
|
|
30294
30324
|
value: u,
|
|
30295
30325
|
disabledDate: (v) => v ? i && v.isAfter(Nl(), "day") ? !0 : !r || !o || !o[0] ? !1 : Math.abs(v.diff(o[0], "days")) > r : !1,
|
|
@@ -30319,7 +30349,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30319
30349
|
),
|
|
30320
30350
|
e
|
|
30321
30351
|
);
|
|
30322
|
-
},
|
|
30352
|
+
}, mT = (e) => {
|
|
30323
30353
|
const [t, a] = re([]);
|
|
30324
30354
|
return ne(() => {
|
|
30325
30355
|
const l = e.current;
|
|
@@ -30330,7 +30360,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30330
30360
|
const o = s.getAttribute("data-key");
|
|
30331
30361
|
o && u.push(
|
|
30332
30362
|
/* @__PURE__ */ G(
|
|
30333
|
-
|
|
30363
|
+
bT,
|
|
30334
30364
|
{
|
|
30335
30365
|
host: s,
|
|
30336
30366
|
onChange: () => {
|
|
@@ -30370,7 +30400,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30370
30400
|
});
|
|
30371
30401
|
return r.observe(l, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
30372
30402
|
}, [e]), t;
|
|
30373
|
-
},
|
|
30403
|
+
}, vT = ({
|
|
30374
30404
|
config: e,
|
|
30375
30405
|
onSend: t,
|
|
30376
30406
|
isProcessing: a = !1,
|
|
@@ -30405,12 +30435,12 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30405
30435
|
videoUrlParse: x,
|
|
30406
30436
|
videoUpload: I,
|
|
30407
30437
|
reportListFetch: H,
|
|
30408
|
-
onReportGoGenerate:
|
|
30438
|
+
onReportGoGenerate: R,
|
|
30409
30439
|
onViewReport: $,
|
|
30410
30440
|
hideCurrentSessionReport: _,
|
|
30411
30441
|
reportNameResolve: Y
|
|
30412
30442
|
}) => {
|
|
30413
|
-
const [z, S] = Dc.useMessage(), q = Z(null), V = Z(null), K = Z(null), j = Z(null), te = Z(null), de = Z(null), [
|
|
30443
|
+
const [z, S] = Dc.useMessage(), q = Z(null), V = Z(null), K = Z(null), j = Z(null), te = Z(null), de = Z(null), [be, Te] = re(!1), Be = Z("");
|
|
30414
30444
|
if (!Be.current) {
|
|
30415
30445
|
const Q = Math.random().toString(36).slice(2, 8);
|
|
30416
30446
|
Be.current = `rte_${Q}`;
|
|
@@ -30680,12 +30710,12 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30680
30710
|
j,
|
|
30681
30711
|
H,
|
|
30682
30712
|
uc,
|
|
30683
|
-
|
|
30713
|
+
R,
|
|
30684
30714
|
$,
|
|
30685
30715
|
`${sc}::${JSON.stringify(bt)}`,
|
|
30686
30716
|
_
|
|
30687
30717
|
);
|
|
30688
|
-
|
|
30718
|
+
Qy(j, De, Ie, r, bt, Jl, void 0, f, void 0, O, ct, !!H, zt);
|
|
30689
30719
|
const nn = Z(/* @__PURE__ */ new Set()), Qr = Z(De), Jr = Z(O);
|
|
30690
30720
|
(Qr.current !== De || Jr.current !== O) && (Qr.current = De, Jr.current = O, nn.current = /* @__PURE__ */ new Set()), ne(() => {
|
|
30691
30721
|
if (!O || !De || De.length === 0) return;
|
|
@@ -30795,9 +30825,9 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30795
30825
|
});
|
|
30796
30826
|
}
|
|
30797
30827
|
}
|
|
30798
|
-
}, [O, e, Ot]), Ed(j),
|
|
30828
|
+
}, [O, e, Ot]), Ed(j), Jy(j, De, Ie, We, A), Zy(j, De, We, f, A), tT(j, De, Ie, We, A), eT(j, De, We, A);
|
|
30799
30829
|
const rn = !!w;
|
|
30800
|
-
|
|
30830
|
+
aT(
|
|
30801
30831
|
j,
|
|
30802
30832
|
De,
|
|
30803
30833
|
Ie,
|
|
@@ -30808,7 +30838,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30808
30838
|
rn
|
|
30809
30839
|
), Md(j, x, ct, ga, [De]);
|
|
30810
30840
|
const cc = Rd(I, ga, j);
|
|
30811
|
-
Bd(j, ct, We, A),
|
|
30841
|
+
Bd(j, ct, We, A), lT(j, Ql);
|
|
30812
30842
|
const ti = ud(j), dc = od(j), fc = dd(j), ai = md(j);
|
|
30813
30843
|
ne(() => {
|
|
30814
30844
|
if (!j.current) return;
|
|
@@ -30817,7 +30847,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
30817
30847
|
ce.innerHTML = se ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
|
|
30818
30848
|
});
|
|
30819
30849
|
}, [De, j]);
|
|
30820
|
-
const li =
|
|
30850
|
+
const li = mT(j), { measureExpandedContentHeight: _a } = Ud({
|
|
30821
30851
|
collapsed: m,
|
|
30822
30852
|
collapseTransitionMs: k,
|
|
30823
30853
|
contentRef: V,
|
|
@@ -31013,14 +31043,14 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
31013
31043
|
// 折叠时覆盖 CSS 的 min-height:58px,否则 min-height > max-height 时 min-height 优先,导致露出第二行
|
|
31014
31044
|
minHeight: m ? 0 : void 0,
|
|
31015
31045
|
overflow: wc,
|
|
31016
|
-
overscrollBehavior:
|
|
31046
|
+
overscrollBehavior: be ? "contain" : "auto",
|
|
31017
31047
|
transition: Ac,
|
|
31018
31048
|
willChange: "max-height"
|
|
31019
31049
|
}, si = e.find((Q) => Q.type === "tag"), Yt = si?.text ? i.find((Q) => Q.label === si.text) : void 0;
|
|
31020
31050
|
return /* @__PURE__ */ pe(
|
|
31021
31051
|
"div",
|
|
31022
31052
|
{
|
|
31023
|
-
className: `rich-text-editor ${
|
|
31053
|
+
className: `rich-text-editor ${be ? "rte-editor-selected" : ""}`,
|
|
31024
31054
|
style: Ec,
|
|
31025
31055
|
"data-disabled": l,
|
|
31026
31056
|
ref: q,
|
|
@@ -31286,7 +31316,7 @@ const { RangePicker: fT } = Oc, pT = ({ host: e, onChange: t }) => {
|
|
|
31286
31316
|
}
|
|
31287
31317
|
);
|
|
31288
31318
|
};
|
|
31289
|
-
|
|
31319
|
+
vT.__docgenInfo = {
|
|
31290
31320
|
displayName: "RichTextEditor",
|
|
31291
31321
|
description: "结构化富文本输入组件,支持标签、变量输入块、文件上传以及互斥显示逻辑。",
|
|
31292
31322
|
props: {
|
|
@@ -31314,12 +31344,12 @@ bT.__docgenInfo = {
|
|
|
31314
31344
|
}
|
|
31315
31345
|
}
|
|
31316
31346
|
};
|
|
31317
|
-
const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==",
|
|
31347
|
+
const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFSSURBVHgB3ZTtccIwDIaVXv83I2SDZgSP0BHMBG0naEZhA2boBGQDswHdQJUOGRxjO0Z8HPDe6eJzJD2W4gjgEYSIn2xwK6EIFHqBGysJpMP3ZB0oRbEtmal1NtIxl4OWWsoxEsvqofJ0rgTNASOYq+7SXKDsuYvAcgkq/PWwBLQWqIfdjeRStaBUc4qzgLi9/BzJNmS/sh6bpvmrTfSFacU3scWy1mQryWdSnXiFE8QVUJINLTuyhWzzz/1OZmTN9hEckqtfUOwIGlGCpVRjE+94JFqpMtTeVzO8/UmPxpZU8Qa7aln8Tb9pfwla4WHWrjPvvbbnTBsX7PmLs83EDAH0BxSw1G31+/1FoDg/vPcXR+wocQS1apj4+P92FfhOoLyuBfYlmPgYnGoCjWADzAkzUyJ430awLmphPaxWQVU22BuuApPkHaanjcXSN3t6/QNjTMSJWDcs1QAAAABJRU5ErkJggg==", gT = [
|
|
31318
31348
|
{ label: "5页", value: 5 },
|
|
31319
31349
|
{ label: "10页", value: 10 },
|
|
31320
31350
|
{ label: "15页", value: 15 },
|
|
31321
31351
|
{ label: "30页", value: 30 }
|
|
31322
|
-
],
|
|
31352
|
+
], ET = ({
|
|
31323
31353
|
autoLoading: e,
|
|
31324
31354
|
batchSize: t,
|
|
31325
31355
|
loadingProgress: a,
|
|
@@ -31382,7 +31412,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31382
31412
|
{
|
|
31383
31413
|
value: t,
|
|
31384
31414
|
onChange: n,
|
|
31385
|
-
options:
|
|
31415
|
+
options: gT,
|
|
31386
31416
|
disabled: e,
|
|
31387
31417
|
size: "small",
|
|
31388
31418
|
className: "auto_load_select",
|
|
@@ -31392,7 +31422,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31392
31422
|
]
|
|
31393
31423
|
}
|
|
31394
31424
|
)
|
|
31395
|
-
] }),
|
|
31425
|
+
] }), yT = ({
|
|
31396
31426
|
current: e,
|
|
31397
31427
|
loadIcon: t,
|
|
31398
31428
|
pageSize: a,
|
|
@@ -31426,7 +31456,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31426
31456
|
"条数据"
|
|
31427
31457
|
] }),
|
|
31428
31458
|
!v && /* @__PURE__ */ G(
|
|
31429
|
-
|
|
31459
|
+
ET,
|
|
31430
31460
|
{
|
|
31431
31461
|
loadIcon: t || void 0,
|
|
31432
31462
|
autoLoading: i,
|
|
@@ -31473,7 +31503,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31473
31503
|
}
|
|
31474
31504
|
)
|
|
31475
31505
|
] });
|
|
31476
|
-
},
|
|
31506
|
+
}, TT = (e) => {
|
|
31477
31507
|
const {
|
|
31478
31508
|
loading: t,
|
|
31479
31509
|
autoLoading: a,
|
|
@@ -31510,7 +31540,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31510
31540
|
}
|
|
31511
31541
|
),
|
|
31512
31542
|
/* @__PURE__ */ G(
|
|
31513
|
-
|
|
31543
|
+
yT,
|
|
31514
31544
|
{
|
|
31515
31545
|
loading: t,
|
|
31516
31546
|
autoLoading: a,
|
|
@@ -31528,7 +31558,7 @@ const Bu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31528
31558
|
)
|
|
31529
31559
|
] });
|
|
31530
31560
|
};
|
|
31531
|
-
|
|
31561
|
+
TT.__docgenInfo = {
|
|
31532
31562
|
displayName: "VirtualTable",
|
|
31533
31563
|
description: "虚拟滚动表格组件,支持分页、数据缓存和自动加载功能。",
|
|
31534
31564
|
props: {
|
|
@@ -31635,7 +31665,7 @@ ET.__docgenInfo = {
|
|
|
31635
31665
|
}
|
|
31636
31666
|
}
|
|
31637
31667
|
};
|
|
31638
|
-
const
|
|
31668
|
+
const xT = ({
|
|
31639
31669
|
texts: e = [],
|
|
31640
31670
|
placeholder: t = "请输入内容",
|
|
31641
31671
|
animationSpeed: a = 100,
|
|
@@ -31750,7 +31780,7 @@ const yT = ({
|
|
|
31750
31780
|
` })
|
|
31751
31781
|
] });
|
|
31752
31782
|
};
|
|
31753
|
-
|
|
31783
|
+
xT.__docgenInfo = {
|
|
31754
31784
|
displayName: "DynamicInput",
|
|
31755
31785
|
description: "动态文案输入框组件,支持流式文字动画效果",
|
|
31756
31786
|
props: {
|
|
@@ -31795,7 +31825,7 @@ yT.__docgenInfo = {
|
|
|
31795
31825
|
}
|
|
31796
31826
|
}
|
|
31797
31827
|
};
|
|
31798
|
-
const
|
|
31828
|
+
const wT = ({
|
|
31799
31829
|
texts: e = [],
|
|
31800
31830
|
// 动态文案数组,默认为空数组
|
|
31801
31831
|
placeholder: t = "请输入内容",
|
|
@@ -31832,11 +31862,11 @@ const TT = ({
|
|
|
31832
31862
|
const H = ue((j, te) => {
|
|
31833
31863
|
let de = 0;
|
|
31834
31864
|
N(!0);
|
|
31835
|
-
const
|
|
31836
|
-
de < j.length ? (v(j.slice(0, de + 1)), de++, D.current = window.setTimeout(
|
|
31865
|
+
const be = () => {
|
|
31866
|
+
de < j.length ? (v(j.slice(0, de + 1)), de++, D.current = window.setTimeout(be, a)) : (N(!1), te?.());
|
|
31837
31867
|
};
|
|
31838
|
-
|
|
31839
|
-
}, [a]),
|
|
31868
|
+
be();
|
|
31869
|
+
}, [a]), R = ue((j) => {
|
|
31840
31870
|
let te = x.current.length;
|
|
31841
31871
|
const de = () => {
|
|
31842
31872
|
te > 0 ? (v(x.current.slice(0, te - 1)), te--, D.current = window.setTimeout(de, a / 2)) : j?.();
|
|
@@ -31846,7 +31876,7 @@ const TT = ({
|
|
|
31846
31876
|
if (F.current.length === 0 || L.current) return;
|
|
31847
31877
|
m(!0);
|
|
31848
31878
|
const j = F.current[M.current];
|
|
31849
|
-
x.current ?
|
|
31879
|
+
x.current ? R(() => {
|
|
31850
31880
|
H(j, () => {
|
|
31851
31881
|
O.current = window.setTimeout(() => {
|
|
31852
31882
|
y((te) => (te + 1) % F.current.length), m(!1);
|
|
@@ -31857,7 +31887,7 @@ const TT = ({
|
|
|
31857
31887
|
y((te) => (te + 1) % F.current.length), m(!1);
|
|
31858
31888
|
}, 2e3);
|
|
31859
31889
|
});
|
|
31860
|
-
}, [
|
|
31890
|
+
}, [R, H]);
|
|
31861
31891
|
ne(() => (l && e.length > 0 && !w && $(), () => {
|
|
31862
31892
|
O.current && window.clearTimeout(O.current), D.current && window.clearTimeout(D.current);
|
|
31863
31893
|
}), [b, w, l, e.length, $]), ne(() => {
|
|
@@ -32009,7 +32039,7 @@ const TT = ({
|
|
|
32009
32039
|
` })
|
|
32010
32040
|
] });
|
|
32011
32041
|
};
|
|
32012
|
-
|
|
32042
|
+
wT.__docgenInfo = {
|
|
32013
32043
|
displayName: "DynamicTextArea",
|
|
32014
32044
|
description: "动态文案文本域组件,支持流式文字动画效果",
|
|
32015
32045
|
props: {
|
|
@@ -32285,7 +32315,7 @@ $o.__docgenInfo = {
|
|
|
32285
32315
|
}
|
|
32286
32316
|
}
|
|
32287
32317
|
};
|
|
32288
|
-
const
|
|
32318
|
+
const AT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mkv"].some((a) => e.toLowerCase().includes(a)), CT = (e) => e.type ? e.type : AT(e.url) ? "video" : "image", ST = ({
|
|
32289
32319
|
items: e,
|
|
32290
32320
|
columns: t,
|
|
32291
32321
|
gap: a = 0,
|
|
@@ -32348,7 +32378,7 @@ const xT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32348
32378
|
...i
|
|
32349
32379
|
},
|
|
32350
32380
|
children: e.map((b, y) => {
|
|
32351
|
-
const g = b.id || y, m =
|
|
32381
|
+
const g = b.id || y, m = CT(b);
|
|
32352
32382
|
return /* @__PURE__ */ G(
|
|
32353
32383
|
"div",
|
|
32354
32384
|
{
|
|
@@ -32399,7 +32429,7 @@ const xT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32399
32429
|
}
|
|
32400
32430
|
);
|
|
32401
32431
|
};
|
|
32402
|
-
|
|
32432
|
+
ST.__docgenInfo = {
|
|
32403
32433
|
displayName: "Waterfall",
|
|
32404
32434
|
description: "瀑布流布局组件,支持图片和视频混合展示",
|
|
32405
32435
|
props: {
|
|
@@ -32516,7 +32546,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32516
32546
|
旺旺咨询量: "wangwangConsultationCount",
|
|
32517
32547
|
自然流量转化金额: "organicTrafficAmount",
|
|
32518
32548
|
自然流量曝光量: "organicTrafficImpressions"
|
|
32519
|
-
},
|
|
32549
|
+
}, _T = [
|
|
32520
32550
|
"日期",
|
|
32521
32551
|
"展现量",
|
|
32522
32552
|
"点击量",
|
|
@@ -32577,7 +32607,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32577
32607
|
"成交新客占比",
|
|
32578
32608
|
"自然流量转化金额",
|
|
32579
32609
|
"自然流量曝光量"
|
|
32580
|
-
], Ra = (e) => Ya[e] ?? e,
|
|
32610
|
+
], Ra = (e) => Ya[e] ?? e, kT = (e) => e ? !!(Ya[e] !== void 0 || e.length <= 20 && /[\u4e00-\u9fff]/.test(e)) : !1, NT = (e) => {
|
|
32581
32611
|
const t = e.trim();
|
|
32582
32612
|
if (!t) return [];
|
|
32583
32613
|
const a = t.split(/[\r\n]+/).map((i) => i.trim()).filter(Boolean);
|
|
@@ -32594,28 +32624,28 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32594
32624
|
const u = i.some((s) => Ya[s] !== void 0);
|
|
32595
32625
|
return i.length >= 2 && u ? i : [];
|
|
32596
32626
|
}
|
|
32597
|
-
const n = a.filter(
|
|
32627
|
+
const n = a.filter(kT);
|
|
32598
32628
|
return n.some((i) => Ya[i] !== void 0) && n.length >= 2 && n.length / a.length >= 0.5 ? n : [];
|
|
32599
|
-
},
|
|
32629
|
+
}, IT = (e) => {
|
|
32600
32630
|
if (!e || e.trim() === "") return "";
|
|
32601
32631
|
const t = e.trim();
|
|
32602
32632
|
if (t.toLowerCase() === "nan") return "NaN";
|
|
32603
32633
|
const a = t.match(/^(.+?)([+-]\d)/);
|
|
32604
32634
|
return a ? a[1].trim() : t;
|
|
32605
|
-
},
|
|
32635
|
+
}, LT = (e) => e.replace(/[\u00a0\u3000]/g, " ").replace(/[–—]/g, "-").replace(/%(\d)/g, "% $1").replace(/NaN(\d)/gi, "NaN $1").replace(/(\.\d+)(\d,\d{3})/g, "$1 $2").replace(/(\.\d+)(\d+\.)/g, "$1 $2").replace(/(\.\d{2})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").replace(/(,\d{3})(\d+[+-]\d+\.?\d*%)/g, "$1 $2").split(/\s+/).map((a) => a.trim()).filter((a) => a !== ""), OT = (e) => {
|
|
32606
32636
|
const t = (e || "").replace(/[\u00a0\u3000]/g, " "), a = /20\d{2}-\d{2}-\d{2}/g, l = t.match(a) || [];
|
|
32607
32637
|
if (l.length === 0)
|
|
32608
32638
|
return { markdown: "", jsonData: [] };
|
|
32609
|
-
const n = t.split(a).filter((y) => y.trim() !== ""), r = n.length > 0 ?
|
|
32639
|
+
const n = t.split(a).filter((y) => y.trim() !== ""), r = n.length > 0 ? NT(n[0]) : [], i = r.length >= 2, u = i ? r : _T, s = i || n.length > 0 && n[0].includes("展现量") ? 1 : 0, o = u.filter((y) => y !== "日期"), c = o.length, d = [];
|
|
32610
32640
|
l.forEach((y, g) => {
|
|
32611
32641
|
const m = g + s;
|
|
32612
32642
|
if (m >= n.length) return;
|
|
32613
32643
|
const w = n[m];
|
|
32614
32644
|
let T = w.split(/[\r\n]+/).map((k) => k.trim()).filter((k) => k !== "");
|
|
32615
|
-
T.length < c && (T =
|
|
32645
|
+
T.length < c && (T = LT(w));
|
|
32616
32646
|
const C = (k) => T.length === c * 2 ? T[k * 2] ?? "" : T[k] ?? "", N = {};
|
|
32617
32647
|
N[Ra("日期")] = y, o.forEach((k, A) => {
|
|
32618
|
-
const O = C(A), D =
|
|
32648
|
+
const O = C(A), D = IT(O), F = Ra(k);
|
|
32619
32649
|
N[F] = D;
|
|
32620
32650
|
}), d.push(N);
|
|
32621
32651
|
});
|
|
@@ -32634,7 +32664,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32634
32664
|
`),
|
|
32635
32665
|
jsonData: d
|
|
32636
32666
|
};
|
|
32637
|
-
},
|
|
32667
|
+
}, DT = (e) => {
|
|
32638
32668
|
if (!e)
|
|
32639
32669
|
return "";
|
|
32640
32670
|
const t = e.trim().split(`
|
|
@@ -32654,7 +32684,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32654
32684
|
c += `<td style="${o}">${wl(E)}</td>`;
|
|
32655
32685
|
}), c += "</tr>";
|
|
32656
32686
|
}), c += "</tbody></table></div>", c;
|
|
32657
|
-
},
|
|
32687
|
+
}, PT = (e) => {
|
|
32658
32688
|
const t = [], a = e.querySelector("thead tr");
|
|
32659
32689
|
if (!a) return t;
|
|
32660
32690
|
const l = [];
|
|
@@ -32669,22 +32699,22 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32669
32699
|
i[d] = h === "-" ? "" : h;
|
|
32670
32700
|
}), Object.keys(i).length > 0 && t.push(i);
|
|
32671
32701
|
}), t;
|
|
32672
|
-
},
|
|
32673
|
-
const a =
|
|
32702
|
+
}, UT = (e) => async (t) => {
|
|
32703
|
+
const a = OT(t.text);
|
|
32674
32704
|
return e && e(a.jsonData), {
|
|
32675
32705
|
modules: [
|
|
32676
32706
|
{
|
|
32677
32707
|
title: "推广分析表格",
|
|
32678
|
-
content:
|
|
32708
|
+
content: DT(a.markdown),
|
|
32679
32709
|
markdown: a.markdown
|
|
32680
32710
|
}
|
|
32681
32711
|
]
|
|
32682
32712
|
};
|
|
32683
|
-
},
|
|
32713
|
+
}, qT = (e, t, a) => {
|
|
32684
32714
|
const l = parseFloat(String(e.get("grossProfitMargin") || "0")) || 0, n = parseFloat(String(e.get("refundRate") || "0")) || 0;
|
|
32685
32715
|
let r = [];
|
|
32686
32716
|
if (t) {
|
|
32687
|
-
const i =
|
|
32717
|
+
const i = PT(t);
|
|
32688
32718
|
i.length > 0 && (r = i);
|
|
32689
32719
|
}
|
|
32690
32720
|
return r.length === 0 && a && a.length > 0 && (r = a), {
|
|
@@ -32692,7 +32722,7 @@ const wl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32692
32722
|
refundRate: n,
|
|
32693
32723
|
tableData: r
|
|
32694
32724
|
};
|
|
32695
|
-
},
|
|
32725
|
+
}, zT = {
|
|
32696
32726
|
algorithm: Fc.defaultAlgorithm,
|
|
32697
32727
|
token: {
|
|
32698
32728
|
// 主色
|
|
@@ -32764,23 +32794,23 @@ export {
|
|
|
32764
32794
|
ad as BackButton,
|
|
32765
32795
|
Kc as Button,
|
|
32766
32796
|
Xc as Card,
|
|
32767
|
-
|
|
32768
|
-
|
|
32797
|
+
xT as DynamicInput,
|
|
32798
|
+
wT as DynamicTextArea,
|
|
32769
32799
|
td as EmptyAndSpin,
|
|
32770
32800
|
Ya as HEADER_TO_FIELD,
|
|
32771
32801
|
ld as LinkButton,
|
|
32772
32802
|
Jc as PageTable,
|
|
32773
|
-
|
|
32803
|
+
vT as RichTextEditor,
|
|
32774
32804
|
$o as VideoCard,
|
|
32775
|
-
|
|
32776
|
-
|
|
32805
|
+
TT as VirtualTable,
|
|
32806
|
+
ST as Waterfall,
|
|
32777
32807
|
ed as XcIcon,
|
|
32778
|
-
|
|
32779
|
-
|
|
32808
|
+
qT as buildPromotionSendPayload,
|
|
32809
|
+
UT as createMarkdownAnalyze,
|
|
32780
32810
|
wl as escapeHtml,
|
|
32781
|
-
|
|
32782
|
-
|
|
32783
|
-
|
|
32784
|
-
|
|
32811
|
+
PT as extractTableDataFromHtml,
|
|
32812
|
+
zT as lightTheme,
|
|
32813
|
+
OT as parsePromotionTableMarkdown,
|
|
32814
|
+
DT as renderMarkdownToHtml
|
|
32785
32815
|
};
|
|
32786
32816
|
//# sourceMappingURL=index.es.js.map
|