bi-components-library 1.2.63 → 1.2.65
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 +649 -640
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as V, jsxs as he, Fragment as
|
|
1
|
+
import { jsx as V, jsxs as he, Fragment as $l } from "react/jsx-runtime";
|
|
2
2
|
import Ie, { useState as ie, useRef as Z, useMemo as wt, useCallback as ue, useEffect as re, useLayoutEffect as Xe, forwardRef as Uu, createContext as qu } from "react";
|
|
3
|
-
import { Button as Gt, Card as gr, Modal as Ic, Table as Er, Flex as hi, Spin as zu, Empty as Lc, Select as el, Form as bl, Input as yr, Space as Oc, Cascader as Dc, Popover as Pc, Tooltip as Mc, Image as
|
|
3
|
+
import { Button as Gt, Card as gr, Modal as Ic, Table as Er, Flex as hi, Spin as zu, Empty as Lc, Select as el, Form as bl, Input as yr, Space as Oc, Cascader as Dc, Popover as Pc, Tooltip as Mc, Image as Xn, DatePicker as Rc, message as Bc, Dropdown as Fc, Progress as Hc, Pagination as $c, theme as Uc } from "antd";
|
|
4
4
|
import { createFromIconfontCN as qc, LeftOutlined as zc, SearchOutlined as Vc, ReloadOutlined as Gc, CloseCircleFilled as Yc, InfoCircleOutlined as Wc, SendOutlined as jc, PauseCircleOutlined as Kc, PlayCircleOutlined as Xc } from "@ant-design/icons";
|
|
5
5
|
import { createPortal as Pt, flushSync as Qc } from "react-dom";
|
|
6
6
|
const Jc = ({
|
|
@@ -150,7 +150,7 @@ const ed = ({
|
|
|
150
150
|
showDefaultFooter: e = !0,
|
|
151
151
|
...t
|
|
152
152
|
}) => {
|
|
153
|
-
const a = t.footer !== void 0 ? t.footer : e ? (l, { OkBtn: n, CancelBtn: r }) => /* @__PURE__ */ he(
|
|
153
|
+
const a = t.footer !== void 0 ? t.footer : e ? (l, { OkBtn: n, CancelBtn: r }) => /* @__PURE__ */ he($l, { children: [
|
|
154
154
|
/* @__PURE__ */ V(n, {}),
|
|
155
155
|
/* @__PURE__ */ V(r, {})
|
|
156
156
|
] }) : null;
|
|
@@ -916,17 +916,17 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", od =
|
|
|
916
916
|
const I = A.querySelector(".ant-select-selection-item"), N = A.querySelector(".ant-select-selection-placeholder"), P = I || N, O = (P?.textContent || "").trim() || L(), w = A.querySelector(".ant-select-selector"), T = P || w || A, M = window.getComputedStyle(T), q = P ? M.fontSize : "16px", H = M.fontFamily || "sans-serif", F = M.fontWeight || "400", z = `${M.fontStyle || "normal"} ${F} ${q} ${H}`, D = document.createElement("canvas").getContext("2d"), $ = D ? Math.ceil((D.font = z, D.measureText(O).width || 0)) : 0;
|
|
917
917
|
let K = 0;
|
|
918
918
|
if (w) {
|
|
919
|
-
const
|
|
920
|
-
K = (Number.parseFloat(
|
|
919
|
+
const Ee = window.getComputedStyle(w);
|
|
920
|
+
K = (Number.parseFloat(Ee.paddingLeft) || 0) + (Number.parseFloat(Ee.paddingRight) || 0);
|
|
921
921
|
}
|
|
922
922
|
const J = A.querySelector(".ant-select-arrow"), Y = J ? Math.ceil(J.getBoundingClientRect().width) : 12, le = A.querySelector(".ant-select-clear");
|
|
923
|
-
let
|
|
923
|
+
let fe = 0;
|
|
924
924
|
if (le) {
|
|
925
|
-
const
|
|
926
|
-
|
|
925
|
+
const Ee = window.getComputedStyle(le);
|
|
926
|
+
Ee.display !== "none" && Ee.visibility !== "hidden" && (fe = Math.ceil(le.getBoundingClientRect().width));
|
|
927
927
|
}
|
|
928
|
-
const
|
|
929
|
-
E((
|
|
928
|
+
const me = Math.min(240, Math.max(80, $ + K + Y + fe + 4));
|
|
929
|
+
E((Ee) => Ee === me ? Ee : me);
|
|
930
930
|
}, [L]);
|
|
931
931
|
return Xe(() => {
|
|
932
932
|
const A = window.requestAnimationFrame(() => {
|
|
@@ -1462,7 +1462,7 @@ function Td(e, t, a = []) {
|
|
|
1462
1462
|
const pe = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), ut = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", xd = (e) => {
|
|
1463
1463
|
const t = (e?.name || "").toLowerCase(), a = /\.(png|jpe?g|gif|webp|bmp|svg)$/.test(t), l = (e?.type || "").toLowerCase();
|
|
1464
1464
|
return a || (l === "image/png" || l === "image/jpeg" || l === "image/gif" || l === "image/webp" || l === "image/bmp" || l === "image/svg+xml");
|
|
1465
|
-
},
|
|
1465
|
+
}, Il = (e) => {
|
|
1466
1466
|
const t = (e || "").trim() || " ";
|
|
1467
1467
|
let a = 0;
|
|
1468
1468
|
for (let l = 0; l < t.length; l++) {
|
|
@@ -1498,7 +1498,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1498
1498
|
title: l,
|
|
1499
1499
|
content: n.length > 0 ? n : `请补充:${l}`
|
|
1500
1500
|
};
|
|
1501
|
-
}),
|
|
1501
|
+
}), dn = (e) => (e?.modules || []).map((t, a) => {
|
|
1502
1502
|
const l = (t?.title || `模块${a + 1}`).trim() || `模块${a + 1}`, n = (t?.markdown || "").trim(), r = (t?.content || "").trim() || (n ? Gu(n) : "");
|
|
1503
1503
|
return {
|
|
1504
1504
|
title: l,
|
|
@@ -1570,8 +1570,8 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1570
1570
|
nextOffsetX: Y,
|
|
1571
1571
|
ts: performance.now().toFixed(1)
|
|
1572
1572
|
}), b(Y);
|
|
1573
|
-
const le = 240,
|
|
1574
|
-
return g(
|
|
1573
|
+
const le = 240, fe = window.innerHeight - K.bottom;
|
|
1574
|
+
return g(fe < le ? "topLeft" : "bottomLeft"), !0;
|
|
1575
1575
|
}, [C, e, s]), w = ue(async () => {
|
|
1576
1576
|
if (Date.now() - x.current > 200) {
|
|
1577
1577
|
console.log("[RTE-REPORT] openDropdown skip: not user-initiated");
|
|
@@ -1702,7 +1702,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1702
1702
|
overflow: { adjustX: !1, adjustY: !1 }
|
|
1703
1703
|
}),
|
|
1704
1704
|
[m, v]
|
|
1705
|
-
), D = /* @__PURE__ */ V("div", { className: "rte-report-dropdown-panel", onMouseDown: ($) => $.preventDefault(), children: c ? /* @__PURE__ */ V("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ V(zu, { size: "small" }) }) : h ? /* @__PURE__ */ he(
|
|
1705
|
+
), D = /* @__PURE__ */ V("div", { className: "rte-report-dropdown-panel", onMouseDown: ($) => $.preventDefault(), children: c ? /* @__PURE__ */ V("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ V(zu, { size: "small" }) }) : h ? /* @__PURE__ */ he($l, { children: [
|
|
1706
1706
|
h.tabs.length > 1 && /* @__PURE__ */ V("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ V("div", { className: "rte-report-dropdown-tab-inner", children: h.tabs.map(($) => /* @__PURE__ */ V(
|
|
1707
1707
|
"div",
|
|
1708
1708
|
{
|
|
@@ -2587,7 +2587,7 @@ const Hd = ({
|
|
|
2587
2587
|
if (M?.lastParsedText && M.lastParsedText === T && M.status === "success")
|
|
2588
2588
|
return;
|
|
2589
2589
|
if (!t) {
|
|
2590
|
-
const z = Vu(T), W =
|
|
2590
|
+
const z = Vu(T), W = dn({
|
|
2591
2591
|
modules: [{ title: "内容", content: Gu(z), markdown: z }]
|
|
2592
2592
|
});
|
|
2593
2593
|
if (o.current) {
|
|
@@ -2610,7 +2610,7 @@ const Hd = ({
|
|
|
2610
2610
|
const H = 500, F = Date.now();
|
|
2611
2611
|
setTimeout(() => {
|
|
2612
2612
|
t({ text: T }).then((W) => {
|
|
2613
|
-
const D =
|
|
2613
|
+
const D = dn(W), $ = Date.now() - F, K = Math.max(0, H - $);
|
|
2614
2614
|
setTimeout(() => {
|
|
2615
2615
|
if (o.current) {
|
|
2616
2616
|
const J = g();
|
|
@@ -2666,7 +2666,7 @@ const Hd = ({
|
|
|
2666
2666
|
const H = 500, F = Date.now();
|
|
2667
2667
|
setTimeout(() => {
|
|
2668
2668
|
a({ text: T }).then((W) => {
|
|
2669
|
-
const D =
|
|
2669
|
+
const D = dn(W), $ = Date.now() - F, K = Math.max(0, H - $);
|
|
2670
2670
|
setTimeout(() => {
|
|
2671
2671
|
if (o.current) {
|
|
2672
2672
|
const J = g();
|
|
@@ -3056,12 +3056,12 @@ function Va(e, t) {
|
|
|
3056
3056
|
try {
|
|
3057
3057
|
const A = Gd(g, l);
|
|
3058
3058
|
if (!A || !Number.isFinite(A)) {
|
|
3059
|
-
const I =
|
|
3059
|
+
const I = Il(g);
|
|
3060
3060
|
return Math.max(0, I - 22);
|
|
3061
3061
|
}
|
|
3062
3062
|
return A;
|
|
3063
3063
|
} catch {
|
|
3064
|
-
const A =
|
|
3064
|
+
const A = Il(g);
|
|
3065
3065
|
return Math.max(0, A - 22);
|
|
3066
3066
|
}
|
|
3067
3067
|
})(), C = (() => {
|
|
@@ -4017,8 +4017,8 @@ const Yd = ({
|
|
|
4017
4017
|
if (w) {
|
|
4018
4018
|
k.preventDefault(), k.stopPropagation();
|
|
4019
4019
|
const z = w.closest(".rte-richtext-wrapper"), W = z?.querySelector('[data-type="richtext"]'), $ = !(w.getAttribute("data-expanded") === "true");
|
|
4020
|
-
((le,
|
|
4021
|
-
le.setAttribute("data-expanded", String(
|
|
4020
|
+
((le, fe) => {
|
|
4021
|
+
le.setAttribute("data-expanded", String(fe)), le.innerHTML = fe ? '<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>';
|
|
4022
4022
|
})(w, $);
|
|
4023
4023
|
const J = z?.closest(".rte-richtext-required");
|
|
4024
4024
|
J ? J.classList.toggle("rte-richtext-expanded", $) : z && z.classList.toggle("rte-richtext-expanded", $);
|
|
@@ -4123,14 +4123,14 @@ const Yd = ({
|
|
|
4123
4123
|
const K = $.maxCount;
|
|
4124
4124
|
c((J) => {
|
|
4125
4125
|
const Y = { ...J }, le = [];
|
|
4126
|
-
for (let
|
|
4127
|
-
const
|
|
4128
|
-
|
|
4126
|
+
for (let fe = 0; fe < K; fe++) {
|
|
4127
|
+
const me = `${D}-${fe}`, Ee = Y[me];
|
|
4128
|
+
Ee != null && me !== W && le.push(Ee);
|
|
4129
4129
|
}
|
|
4130
|
-
for (let
|
|
4131
|
-
delete Y[`${D}-${
|
|
4132
|
-
return le.forEach((
|
|
4133
|
-
Y[`${D}-${
|
|
4130
|
+
for (let fe = 0; fe < K; fe++)
|
|
4131
|
+
delete Y[`${D}-${fe}`];
|
|
4132
|
+
return le.forEach((fe, me) => {
|
|
4133
|
+
Y[`${D}-${me}`] = fe;
|
|
4134
4134
|
}), Y;
|
|
4135
4135
|
});
|
|
4136
4136
|
} else
|
|
@@ -4154,15 +4154,15 @@ const Yd = ({
|
|
|
4154
4154
|
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 = ""), W) {
|
|
4155
4155
|
const Y = l.find((le) => le.type === "upload" && le.key === W);
|
|
4156
4156
|
if (Y && typeof Y.maxCount == "number" && typeof Y.minCount == "number") {
|
|
4157
|
-
const le = Y.maxCount,
|
|
4158
|
-
if (
|
|
4157
|
+
const le = Y.maxCount, fe = o[z] != null, me = D != null ? Number.parseInt(D, 10) : NaN;
|
|
4158
|
+
if (fe) {
|
|
4159
4159
|
u.current && (u.current.multiple = !1), h(null), f(null), y(z), s?.(), u.current?.click();
|
|
4160
4160
|
return;
|
|
4161
4161
|
}
|
|
4162
|
-
let
|
|
4162
|
+
let Ee = 0;
|
|
4163
4163
|
for (let je = 0; je < le; je++)
|
|
4164
|
-
o[`${W}-${je}`] != null && (
|
|
4165
|
-
|
|
4164
|
+
o[`${W}-${je}`] != null && (Ee += 1);
|
|
4165
|
+
Ee < le && u.current ? (u.current.multiple = !0, h(W), f(Number.isFinite(me) ? me : null), y(null), s?.(), u.current.click()) : (u.current && (u.current.multiple = !1), h(null), f(null), y(z), s?.(), u.current?.click());
|
|
4166
4166
|
} else
|
|
4167
4167
|
u.current && (u.current.multiple = !1), h(null), f(null), y(z), s?.(), u.current?.click();
|
|
4168
4168
|
} else
|
|
@@ -4921,7 +4921,7 @@ const Yd = ({
|
|
|
4921
4921
|
const q = /[、,,\s\n\r\t]+/, H = L.split(q).map((F) => F.trim()).filter((F) => F.length > 0);
|
|
4922
4922
|
if (H.length > 1) {
|
|
4923
4923
|
const F = parseInt(O.dataset.index || "0", 10), _ = t.find(
|
|
4924
|
-
(
|
|
4924
|
+
(fe) => Ge(fe.type) && fe.key === w
|
|
4925
4925
|
)?.maxCount || 9, z = a[w] || 1, W = Math.min(F + H.length, _);
|
|
4926
4926
|
W > z && l((le) => ({
|
|
4927
4927
|
...le,
|
|
@@ -4929,12 +4929,12 @@ const Yd = ({
|
|
|
4929
4929
|
}));
|
|
4930
4930
|
const D = [];
|
|
4931
4931
|
for (let le = 0; le < z; le++) {
|
|
4932
|
-
const
|
|
4933
|
-
`[data-type="variable"][data-key="${
|
|
4932
|
+
const fe = `${w}_${le}`, me = n.current.querySelector(
|
|
4933
|
+
`[data-type="variable"][data-key="${fe}"][data-multi-key="${w}"]`
|
|
4934
4934
|
);
|
|
4935
|
-
if (
|
|
4936
|
-
const
|
|
4937
|
-
D.push(
|
|
4935
|
+
if (me) {
|
|
4936
|
+
const Ee = me.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4937
|
+
D.push(Ee);
|
|
4938
4938
|
}
|
|
4939
4939
|
}
|
|
4940
4940
|
D.splice(
|
|
@@ -4945,15 +4945,15 @@ const Yd = ({
|
|
|
4945
4945
|
const $ = D.slice(0, _);
|
|
4946
4946
|
$.length > 0 && $[$.length - 1] !== "" && $.length < _ && $.push("");
|
|
4947
4947
|
const K = Math.max($.length, 1), J = {};
|
|
4948
|
-
$.forEach((le,
|
|
4949
|
-
le && (J[`${w}_${
|
|
4948
|
+
$.forEach((le, fe) => {
|
|
4949
|
+
le && (J[`${w}_${fe}`] = le);
|
|
4950
4950
|
}), n.current.querySelectorAll(
|
|
4951
4951
|
'[data-type="variable"]'
|
|
4952
4952
|
).forEach((le) => {
|
|
4953
|
-
const
|
|
4954
|
-
if (
|
|
4955
|
-
const
|
|
4956
|
-
|
|
4953
|
+
const fe = le.dataset.key, me = le.dataset.multiKey;
|
|
4954
|
+
if (fe && me !== w) {
|
|
4955
|
+
const Ee = le.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4956
|
+
Ee && (J[fe] = Ee);
|
|
4957
4957
|
}
|
|
4958
4958
|
}), n.current.__tempVariableValues = J, l((le) => ({
|
|
4959
4959
|
...le,
|
|
@@ -5422,7 +5422,7 @@ function tf(e) {
|
|
|
5422
5422
|
function ju(e, t = 0) {
|
|
5423
5423
|
return setTimeout(e, t);
|
|
5424
5424
|
}
|
|
5425
|
-
function
|
|
5425
|
+
function Ll() {
|
|
5426
5426
|
return Date.now();
|
|
5427
5427
|
}
|
|
5428
5428
|
function af(e) {
|
|
@@ -5504,14 +5504,14 @@ function uf(e, t) {
|
|
|
5504
5504
|
let l = t.contains(e);
|
|
5505
5505
|
return !l && a.HTMLSlotElement && t instanceof HTMLSlotElement && (l = [...t.assignedElements()].includes(e), l || (l = rf(e, t))), l;
|
|
5506
5506
|
}
|
|
5507
|
-
function
|
|
5507
|
+
function Ol(e) {
|
|
5508
5508
|
try {
|
|
5509
5509
|
console.warn(e);
|
|
5510
5510
|
return;
|
|
5511
5511
|
} catch {
|
|
5512
5512
|
}
|
|
5513
5513
|
}
|
|
5514
|
-
function
|
|
5514
|
+
function Dl(e, t = []) {
|
|
5515
5515
|
const a = document.createElement(e);
|
|
5516
5516
|
return a.classList.add(...Array.isArray(t) ? t : ef(t)), a;
|
|
5517
5517
|
}
|
|
@@ -5534,7 +5534,7 @@ function of(e, t) {
|
|
|
5534
5534
|
function Ot(e, t) {
|
|
5535
5535
|
return Qe().getComputedStyle(e, null).getPropertyValue(t);
|
|
5536
5536
|
}
|
|
5537
|
-
function
|
|
5537
|
+
function Pl(e) {
|
|
5538
5538
|
let t = e, a;
|
|
5539
5539
|
if (t) {
|
|
5540
5540
|
for (a = 0; (t = t.previousSibling) !== null; )
|
|
@@ -5561,7 +5561,7 @@ function Ya(e, t = "") {
|
|
|
5561
5561
|
createHTML: (a) => a
|
|
5562
5562
|
}).createHTML(t) : e.innerHTML = t;
|
|
5563
5563
|
}
|
|
5564
|
-
let
|
|
5564
|
+
let fn;
|
|
5565
5565
|
function cf() {
|
|
5566
5566
|
const e = Qe(), t = Kt();
|
|
5567
5567
|
return {
|
|
@@ -5570,9 +5570,9 @@ function cf() {
|
|
|
5570
5570
|
};
|
|
5571
5571
|
}
|
|
5572
5572
|
function Qu() {
|
|
5573
|
-
return
|
|
5573
|
+
return fn || (fn = cf()), fn;
|
|
5574
5574
|
}
|
|
5575
|
-
let
|
|
5575
|
+
let pn;
|
|
5576
5576
|
function df({
|
|
5577
5577
|
userAgent: e
|
|
5578
5578
|
} = {}) {
|
|
@@ -5587,9 +5587,9 @@ function df({
|
|
|
5587
5587
|
return !o && f && t.touch && y.indexOf(`${i}x${u}`) >= 0 && (o = n.match(/(Version)\/([\d.]+)/), o || (o = [0, 1, "13_0_0"]), f = !1), s && !h && (r.os = "android", r.android = !0), (o || d || c) && (r.os = "ios", r.ios = !0), r;
|
|
5588
5588
|
}
|
|
5589
5589
|
function Ju(e = {}) {
|
|
5590
|
-
return
|
|
5590
|
+
return pn || (pn = df(e)), pn;
|
|
5591
5591
|
}
|
|
5592
|
-
let
|
|
5592
|
+
let hn;
|
|
5593
5593
|
function ff() {
|
|
5594
5594
|
const e = Qe(), t = Ju();
|
|
5595
5595
|
let a = !1;
|
|
@@ -5613,7 +5613,7 @@ function ff() {
|
|
|
5613
5613
|
};
|
|
5614
5614
|
}
|
|
5615
5615
|
function Zu() {
|
|
5616
|
-
return
|
|
5616
|
+
return hn || (hn = ff()), hn;
|
|
5617
5617
|
}
|
|
5618
5618
|
function pf({
|
|
5619
5619
|
swiper: e,
|
|
@@ -5980,7 +5980,7 @@ function Tf(e) {
|
|
|
5980
5980
|
isEnd: i
|
|
5981
5981
|
}), (a.watchSlidesProgress || a.centeredSlides && a.autoHeight) && t.updateSlidesProgress(e), r && !s && t.emit("reachBeginning toEdge"), i && !o && t.emit("reachEnd toEdge"), (s && !r || o && !i) && t.emit("fromEdge"), t.emit("progress", n);
|
|
5982
5982
|
}
|
|
5983
|
-
const
|
|
5983
|
+
const bn = (e, t, a) => {
|
|
5984
5984
|
t && !e.classList.contains(a) ? e.classList.add(a) : !t && e.classList.contains(a) && e.classList.remove(a);
|
|
5985
5985
|
};
|
|
5986
5986
|
function xf() {
|
|
@@ -6000,7 +6000,7 @@ function xf() {
|
|
|
6000
6000
|
else
|
|
6001
6001
|
i ? (s = t.find((d) => d.column === n), c = t.find((d) => d.column === n + 1), o = t.find((d) => d.column === n - 1)) : s = t[n];
|
|
6002
6002
|
s && (i || (c = of(s, `.${a.slideClass}, swiper-slide`)[0], a.loop && !c && (c = t[0]), o = sf(s, `.${a.slideClass}, swiper-slide`)[0], a.loop && !o === 0 && (o = t[t.length - 1]))), t.forEach((d) => {
|
|
6003
|
-
|
|
6003
|
+
bn(d, d === s, a.slideActiveClass), bn(d, d === c, a.slideNextClass), bn(d, d === o, a.slidePrevClass);
|
|
6004
6004
|
}), e.emitSlidesClasses();
|
|
6005
6005
|
}
|
|
6006
6006
|
const Cl = (e, t) => {
|
|
@@ -6012,7 +6012,7 @@ const Cl = (e, t) => {
|
|
|
6012
6012
|
l.shadowRoot && (n = l.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`), n && !n.lazyPreloaderManaged && n.remove());
|
|
6013
6013
|
})), n && !n.lazyPreloaderManaged && n.remove();
|
|
6014
6014
|
}
|
|
6015
|
-
},
|
|
6015
|
+
}, mn = (e, t) => {
|
|
6016
6016
|
if (!e.slides[t]) return;
|
|
6017
6017
|
const a = e.slides[t].querySelector('[loading="lazy"]');
|
|
6018
6018
|
a && a.removeAttribute("loading");
|
|
@@ -6028,7 +6028,7 @@ const Cl = (e, t) => {
|
|
|
6028
6028
|
u.push(...Array.from({
|
|
6029
6029
|
length: t
|
|
6030
6030
|
}).map((s, o) => i + l + o)), e.slides.forEach((s, o) => {
|
|
6031
|
-
u.includes(s.column) &&
|
|
6031
|
+
u.includes(s.column) && mn(e, o);
|
|
6032
6032
|
});
|
|
6033
6033
|
return;
|
|
6034
6034
|
}
|
|
@@ -6036,11 +6036,11 @@ const Cl = (e, t) => {
|
|
|
6036
6036
|
if (e.params.rewind || e.params.loop)
|
|
6037
6037
|
for (let i = n - t; i <= r + t; i += 1) {
|
|
6038
6038
|
const u = (i % a + a) % a;
|
|
6039
|
-
(u < n || u > r) &&
|
|
6039
|
+
(u < n || u > r) && mn(e, u);
|
|
6040
6040
|
}
|
|
6041
6041
|
else
|
|
6042
6042
|
for (let i = Math.max(n - t, 0); i <= Math.min(r + t, a - 1); i += 1)
|
|
6043
|
-
i !== n && (i > r || i < n) &&
|
|
6043
|
+
i !== n && (i > r || i < n) && mn(e, i);
|
|
6044
6044
|
};
|
|
6045
6045
|
function Cf(e) {
|
|
6046
6046
|
const {
|
|
@@ -6483,7 +6483,7 @@ function Gf(e, t) {
|
|
|
6483
6483
|
l.loopAddBlankSlides && (l.slidesPerGroup > 1 || u) && i();
|
|
6484
6484
|
const s = l.slidesPerGroup * (u ? l.grid.rows : 1), o = a.slides.length % s !== 0, c = u && a.slides.length % l.grid.rows !== 0, d = (f) => {
|
|
6485
6485
|
for (let y = 0; y < f; y += 1) {
|
|
6486
|
-
const E = a.isElement ?
|
|
6486
|
+
const E = a.isElement ? Dl("swiper-slide", [l.slideBlankClass]) : Dl("div", [l.slideClass, l.slideBlankClass]);
|
|
6487
6487
|
a.slidesEl.append(E);
|
|
6488
6488
|
}
|
|
6489
6489
|
};
|
|
@@ -6492,14 +6492,14 @@ function Gf(e, t) {
|
|
|
6492
6492
|
const f = s - a.slides.length % s;
|
|
6493
6493
|
d(f), a.recalcSlides(), a.updateSlides();
|
|
6494
6494
|
} else
|
|
6495
|
-
|
|
6495
|
+
Ol("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
6496
6496
|
r();
|
|
6497
6497
|
} else if (c) {
|
|
6498
6498
|
if (l.loopAddBlankSlides) {
|
|
6499
6499
|
const f = l.grid.rows - a.slides.length % l.grid.rows;
|
|
6500
6500
|
d(f), a.recalcSlides(), a.updateSlides();
|
|
6501
6501
|
} else
|
|
6502
|
-
|
|
6502
|
+
Ol("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
6503
6503
|
r();
|
|
6504
6504
|
} else
|
|
6505
6505
|
r();
|
|
@@ -6545,7 +6545,7 @@ function Yf({
|
|
|
6545
6545
|
let C = m ? Math.max(x, Math.ceil(b / 2)) : x;
|
|
6546
6546
|
C % x !== 0 && (C += x - C % x), C += f.loopAdditionalSlides, s.loopedSlides = C;
|
|
6547
6547
|
const S = s.grid && f.grid && f.grid.rows > 1;
|
|
6548
|
-
o.length < b + C || s.params.effect === "cards" && o.length < b + C * 2 ?
|
|
6548
|
+
o.length < b + C || s.params.effect === "cards" && o.length < b + C * 2 ? Ol("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") : S && f.grid.fill === "row" && Ol("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
6549
6549
|
const L = [], k = [], A = S ? Math.ceil(o.length / f.grid.rows) : o.length, I = r && A - g < b && !m;
|
|
6550
6550
|
let N = I ? g : s.activeIndex;
|
|
6551
6551
|
typeof n > "u" ? n = s.getSlideIndex(o.find((H) => H.classList.contains(f.slideActiveClass))) : N = n;
|
|
@@ -6716,7 +6716,7 @@ function Zf(e) {
|
|
|
6716
6716
|
allowTouchCallbacks: !0,
|
|
6717
6717
|
isScrolling: void 0,
|
|
6718
6718
|
startMoving: void 0
|
|
6719
|
-
}), i.startX = f, i.startY = y, n.touchStartTime =
|
|
6719
|
+
}), i.startX = f, i.startY = y, n.touchStartTime = Ll(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
|
|
6720
6720
|
let E = !0;
|
|
6721
6721
|
s.matches(n.focusableElements) && (E = !1, s.nodeName === "SELECT" && (n.isTouched = !1)), a.activeElement && a.activeElement.matches(n.focusableElements) && a.activeElement !== s && (l.pointerType === "mouse" || l.pointerType !== "mouse" && !s.matches(n.focusableElements)) && a.activeElement.blur();
|
|
6722
6722
|
const v = E && t.allowTouchMove && r.touchStartPreventDefault;
|
|
@@ -6753,7 +6753,7 @@ function ep(e) {
|
|
|
6753
6753
|
startY: d,
|
|
6754
6754
|
currentX: c,
|
|
6755
6755
|
currentY: d
|
|
6756
|
-
}), l.touchStartTime =
|
|
6756
|
+
}), l.touchStartTime = Ll());
|
|
6757
6757
|
return;
|
|
6758
6758
|
}
|
|
6759
6759
|
if (n.touchReleaseOnEdges && !n.loop)
|
|
@@ -6865,12 +6865,12 @@ function tp(e) {
|
|
|
6865
6865
|
return;
|
|
6866
6866
|
}
|
|
6867
6867
|
i.grabCursor && a.isMoved && a.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
|
|
6868
|
-
const d =
|
|
6868
|
+
const d = Ll(), h = d - a.touchStartTime;
|
|
6869
6869
|
if (t.allowClick) {
|
|
6870
6870
|
const C = l.path || l.composedPath && l.composedPath();
|
|
6871
6871
|
t.updateClickedSlide(C && C[0] || l.target, C), t.emit("tap click", l), h < 300 && d - a.lastClickTime < 300 && t.emit("doubleTap doubleClick", l);
|
|
6872
6872
|
}
|
|
6873
|
-
if (a.lastClickTime =
|
|
6873
|
+
if (a.lastClickTime = Ll(), ju(() => {
|
|
6874
6874
|
t.destroyed || (t.allowClick = !0);
|
|
6875
6875
|
}), !a.isTouched || !a.isMoved || !t.swipeDirection || u.diff === 0 && !a.loopSwapReset || a.currentTranslate === a.startTranslate && !a.loopSwapReset) {
|
|
6876
6876
|
a.isTouched = !1, a.isMoved = !1, a.startMoving = !1;
|
|
@@ -7263,7 +7263,7 @@ function gp(e, t) {
|
|
|
7263
7263
|
}), at(t, l);
|
|
7264
7264
|
};
|
|
7265
7265
|
}
|
|
7266
|
-
const
|
|
7266
|
+
const vn = {
|
|
7267
7267
|
eventsEmitter: bf,
|
|
7268
7268
|
update: wf,
|
|
7269
7269
|
translate: Of,
|
|
@@ -7275,7 +7275,7 @@ const gn = {
|
|
|
7275
7275
|
breakpoints: dp,
|
|
7276
7276
|
checkOverflow: vp,
|
|
7277
7277
|
classes: bp
|
|
7278
|
-
},
|
|
7278
|
+
}, gn = {};
|
|
7279
7279
|
let Cr = class Ct {
|
|
7280
7280
|
constructor(...t) {
|
|
7281
7281
|
let a, l;
|
|
@@ -7307,7 +7307,7 @@ let Cr = class Ct {
|
|
|
7307
7307
|
});
|
|
7308
7308
|
});
|
|
7309
7309
|
const u = at({}, tr, i);
|
|
7310
|
-
return r.params = at({}, u,
|
|
7310
|
+
return r.params = at({}, u, gn, l), r.originalParams = at({}, r.params), r.passedParams = at({}, l), r.params && r.params.on && Object.keys(r.params.on).forEach((s) => {
|
|
7311
7311
|
r.on(s, r.params.on[s]);
|
|
7312
7312
|
}), r.params && r.params.onAny && r.onAny(r.params.onAny), Object.assign(r, {
|
|
7313
7313
|
enabled: r.params.enabled,
|
|
@@ -7398,8 +7398,8 @@ let Cr = class Ct {
|
|
|
7398
7398
|
const {
|
|
7399
7399
|
slidesEl: a,
|
|
7400
7400
|
params: l
|
|
7401
|
-
} = this, n = mt(a, `.${l.slideClass}, swiper-slide`), r =
|
|
7402
|
-
return
|
|
7401
|
+
} = this, n = mt(a, `.${l.slideClass}, swiper-slide`), r = Pl(n[0]);
|
|
7402
|
+
return Pl(t) - r;
|
|
7403
7403
|
}
|
|
7404
7404
|
getSlideIndexByData(t) {
|
|
7405
7405
|
return this.getSlideIndex(this.slides.find((a) => a.getAttribute("data-swiper-slide-index") * 1 === t));
|
|
@@ -7521,7 +7521,7 @@ let Cr = class Ct {
|
|
|
7521
7521
|
l.swiper = a, l.parentNode && l.parentNode.host && l.parentNode.host.nodeName === a.params.swiperElementNodeName.toUpperCase() && (a.isElement = !0);
|
|
7522
7522
|
const n = () => `.${(a.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
7523
7523
|
let i = l && l.shadowRoot && l.shadowRoot.querySelector ? l.shadowRoot.querySelector(n()) : mt(l, n())[0];
|
|
7524
|
-
return !i && a.params.createElements && (i =
|
|
7524
|
+
return !i && a.params.createElements && (i = Dl("div", a.params.wrapperClass), l.append(i), mt(l, `.${a.params.slideClass}`).forEach((u) => {
|
|
7525
7525
|
i.append(u);
|
|
7526
7526
|
})), Object.assign(a, {
|
|
7527
7527
|
el: l,
|
|
@@ -7560,10 +7560,10 @@ let Cr = class Ct {
|
|
|
7560
7560
|
}), t !== !1 && (l.el && typeof l.el != "string" && (l.el.swiper = null), tf(l)), l.destroyed = !0), null;
|
|
7561
7561
|
}
|
|
7562
7562
|
static extendDefaults(t) {
|
|
7563
|
-
at(
|
|
7563
|
+
at(gn, t);
|
|
7564
7564
|
}
|
|
7565
7565
|
static get extendedDefaults() {
|
|
7566
|
-
return
|
|
7566
|
+
return gn;
|
|
7567
7567
|
}
|
|
7568
7568
|
static get defaults() {
|
|
7569
7569
|
return tr;
|
|
@@ -7577,9 +7577,9 @@ let Cr = class Ct {
|
|
|
7577
7577
|
return Array.isArray(t) ? (t.forEach((a) => Ct.installModule(a)), Ct) : (Ct.installModule(t), Ct);
|
|
7578
7578
|
}
|
|
7579
7579
|
};
|
|
7580
|
-
Object.keys(
|
|
7581
|
-
Object.keys(
|
|
7582
|
-
Cr.prototype[t] =
|
|
7580
|
+
Object.keys(vn).forEach((e) => {
|
|
7581
|
+
Object.keys(vn[e]).forEach((t) => {
|
|
7582
|
+
Cr.prototype[t] = vn[e][t];
|
|
7583
7583
|
});
|
|
7584
7584
|
});
|
|
7585
7585
|
Cr.use([pf, hf]);
|
|
@@ -7814,15 +7814,15 @@ function Cp(e, t, a, l, n) {
|
|
|
7814
7814
|
const Ap = (e) => {
|
|
7815
7815
|
!e || e.destroyed || !e.params.virtual || e.params.virtual && !e.params.virtual.enabled || (e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.emit("_virtualUpdated"), e.parallax && e.params.parallax && e.params.parallax.enabled && e.parallax.setTranslate());
|
|
7816
7816
|
};
|
|
7817
|
-
function
|
|
7818
|
-
return
|
|
7817
|
+
function Ml() {
|
|
7818
|
+
return Ml = Object.assign ? Object.assign.bind() : function(e) {
|
|
7819
7819
|
for (var t = 1; t < arguments.length; t++) {
|
|
7820
7820
|
var a = arguments[t];
|
|
7821
7821
|
for (var l in a)
|
|
7822
7822
|
Object.prototype.hasOwnProperty.call(a, l) && (e[l] = a[l]);
|
|
7823
7823
|
}
|
|
7824
7824
|
return e;
|
|
7825
|
-
},
|
|
7825
|
+
}, Ml.apply(this, arguments);
|
|
7826
7826
|
}
|
|
7827
7827
|
function us(e) {
|
|
7828
7828
|
return e.type && e.type.displayName && e.type.displayName.includes("SwiperSlide");
|
|
@@ -7970,7 +7970,7 @@ const Ti = /* @__PURE__ */ qu(null), _p = /* @__PURE__ */ qu(null), os = /* @__P
|
|
|
7970
7970
|
swiperSlideIndex: F
|
|
7971
7971
|
}));
|
|
7972
7972
|
}
|
|
7973
|
-
return /* @__PURE__ */ Ie.createElement(t,
|
|
7973
|
+
return /* @__PURE__ */ Ie.createElement(t, Ml({
|
|
7974
7974
|
ref: E,
|
|
7975
7975
|
className: is(`${s}${e ? ` ${e}` : ""}`)
|
|
7976
7976
|
}, A), /* @__PURE__ */ Ie.createElement(_p.Provider, {
|
|
@@ -8028,7 +8028,7 @@ const cs = /* @__PURE__ */ Uu(({
|
|
|
8028
8028
|
}, g = () => typeof t == "function" ? t(v) : t, m = () => {
|
|
8029
8029
|
y(!0);
|
|
8030
8030
|
};
|
|
8031
|
-
return /* @__PURE__ */ Ie.createElement(e,
|
|
8031
|
+
return /* @__PURE__ */ Ie.createElement(e, Ml({
|
|
8032
8032
|
ref: c,
|
|
8033
8033
|
className: is(`${d}${a ? ` ${a}` : ""}`),
|
|
8034
8034
|
"data-swiper-slide-index": i,
|
|
@@ -8057,7 +8057,7 @@ function ds(e, t, a, l) {
|
|
|
8057
8057
|
return e.params.createElements && Object.keys(l).forEach((n) => {
|
|
8058
8058
|
if (!a[n] && a.auto === !0) {
|
|
8059
8059
|
let r = mt(e.el, `.${l[n]}`)[0];
|
|
8060
|
-
r || (r =
|
|
8060
|
+
r || (r = Dl("div", l[n]), r.className = l[n], e.el.append(r)), a[n] = r, t[n] = r;
|
|
8061
8061
|
}
|
|
8062
8062
|
}), a;
|
|
8063
8063
|
}
|
|
@@ -8258,7 +8258,7 @@ function Np({
|
|
|
8258
8258
|
if (!m)
|
|
8259
8259
|
return;
|
|
8260
8260
|
g.preventDefault();
|
|
8261
|
-
const b =
|
|
8261
|
+
const b = Pl(m) * e.params.slidesPerGroup;
|
|
8262
8262
|
if (e.params.loop) {
|
|
8263
8263
|
if (e.realIndex === b) return;
|
|
8264
8264
|
const x = o(e.realIndex, b, e.slides.length);
|
|
@@ -8283,7 +8283,7 @@ function Np({
|
|
|
8283
8283
|
P.classList.remove(...O);
|
|
8284
8284
|
}), b.length > 1)
|
|
8285
8285
|
k.forEach((P) => {
|
|
8286
|
-
const O =
|
|
8286
|
+
const O = Pl(P);
|
|
8287
8287
|
O === x ? P.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), m.dynamicBullets && (O >= A && O <= I && P.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), O === A && s(P, "prev"), O === I && s(P, "next"));
|
|
8288
8288
|
});
|
|
8289
8289
|
else {
|
|
@@ -8508,7 +8508,7 @@ const lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8508
8508
|
number: ae,
|
|
8509
8509
|
overloadedBoolean: ar,
|
|
8510
8510
|
spaceSeparated: Le
|
|
8511
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8511
|
+
}, Symbol.toStringTag, { value: "Module" })), En = (
|
|
8512
8512
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
8513
8513
|
Object.keys(lr)
|
|
8514
8514
|
);
|
|
@@ -8529,9 +8529,9 @@ class Ar extends et {
|
|
|
8529
8529
|
constructor(t, a, l, n) {
|
|
8530
8530
|
let r = -1;
|
|
8531
8531
|
if (super(t, a), wi(this, "space", n), typeof l == "number")
|
|
8532
|
-
for (; ++r <
|
|
8533
|
-
const i =
|
|
8534
|
-
wi(this,
|
|
8532
|
+
for (; ++r < En.length; ) {
|
|
8533
|
+
const i = En[r];
|
|
8534
|
+
wi(this, En[r], (l & lr[i]) === lr[i]);
|
|
8535
8535
|
}
|
|
8536
8536
|
}
|
|
8537
8537
|
}
|
|
@@ -9578,7 +9578,7 @@ const Rp = oa({
|
|
|
9578
9578
|
xLinkType: "xlinkType",
|
|
9579
9579
|
xmlnsXLink: "xmlnsXlink"
|
|
9580
9580
|
}, Hp = /[A-Z]/g, _i = /-[a-z]/g, $p = /^data[-\w.:]+$/i;
|
|
9581
|
-
function
|
|
9581
|
+
function Ul(e, t) {
|
|
9582
9582
|
const a = Wa(t);
|
|
9583
9583
|
let l = t, n = et;
|
|
9584
9584
|
if (a in e.normal)
|
|
@@ -9615,9 +9615,9 @@ function ys(e) {
|
|
|
9615
9615
|
function Sr(e) {
|
|
9616
9616
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9617
9617
|
}
|
|
9618
|
-
var ta = {},
|
|
9618
|
+
var ta = {}, yn, Ni;
|
|
9619
9619
|
function zp() {
|
|
9620
|
-
if (Ni) return
|
|
9620
|
+
if (Ni) return yn;
|
|
9621
9621
|
Ni = 1;
|
|
9622
9622
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, a = /^\s*/, l = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, n = /^:\s*/, r = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, i = /^[;\s]*/, u = /^\s+|\s+$/g, s = `
|
|
9623
9623
|
`, o = "/", c = "*", d = "", h = "comment", f = "declaration";
|
|
@@ -9703,7 +9703,7 @@ function zp() {
|
|
|
9703
9703
|
function E(v) {
|
|
9704
9704
|
return v ? v.replace(u, d) : d;
|
|
9705
9705
|
}
|
|
9706
|
-
return
|
|
9706
|
+
return yn = y, yn;
|
|
9707
9707
|
}
|
|
9708
9708
|
var Ii;
|
|
9709
9709
|
function Vp() {
|
|
@@ -9759,7 +9759,7 @@ function Yp() {
|
|
|
9759
9759
|
return l.default = l, _a = l, _a;
|
|
9760
9760
|
}
|
|
9761
9761
|
var Wp = Yp();
|
|
9762
|
-
const jp = /* @__PURE__ */ Sr(Wp),
|
|
9762
|
+
const jp = /* @__PURE__ */ Sr(Wp), ql = Ts("end"), gt = Ts("start");
|
|
9763
9763
|
function Ts(e) {
|
|
9764
9764
|
return t;
|
|
9765
9765
|
function t(a) {
|
|
@@ -9773,7 +9773,7 @@ function Ts(e) {
|
|
|
9773
9773
|
}
|
|
9774
9774
|
}
|
|
9775
9775
|
function xs(e) {
|
|
9776
|
-
const t = gt(e), a =
|
|
9776
|
+
const t = gt(e), a = ql(e);
|
|
9777
9777
|
if (t && a)
|
|
9778
9778
|
return { start: t, end: a };
|
|
9779
9779
|
}
|
|
@@ -10077,7 +10077,7 @@ function kr(e, t) {
|
|
|
10077
10077
|
return a;
|
|
10078
10078
|
}
|
|
10079
10079
|
function ch(e, t, a) {
|
|
10080
|
-
const l =
|
|
10080
|
+
const l = Ul(e.schema, t);
|
|
10081
10081
|
if (!(a == null || typeof a == "number" && Number.isNaN(a))) {
|
|
10082
10082
|
if (Array.isArray(a) && (a = l.commaSeparated ? fs(a) : ys(a)), l.property === "style") {
|
|
10083
10083
|
let n = typeof a == "object" ? a : dh(e, String(a));
|
|
@@ -10164,7 +10164,7 @@ function ph(e) {
|
|
|
10164
10164
|
function hh(e) {
|
|
10165
10165
|
return "-" + e.toLowerCase();
|
|
10166
10166
|
}
|
|
10167
|
-
const
|
|
10167
|
+
const Tn = {
|
|
10168
10168
|
action: ["form"],
|
|
10169
10169
|
cite: ["blockquote", "del", "ins", "q"],
|
|
10170
10170
|
data: ["object"],
|
|
@@ -10288,7 +10288,7 @@ function rr(e) {
|
|
|
10288
10288
|
);
|
|
10289
10289
|
}
|
|
10290
10290
|
const ir = Rt(/\d/), xh = Rt(/[\dA-Fa-f]/), Ch = Rt(/[!-/:-@[-`{-~]/);
|
|
10291
|
-
function
|
|
10291
|
+
function de(e) {
|
|
10292
10292
|
return e !== null && e < -2;
|
|
10293
10293
|
}
|
|
10294
10294
|
function Re(e) {
|
|
@@ -10363,7 +10363,7 @@ function Sh(e) {
|
|
|
10363
10363
|
e.exit("chunkText"), e.exit("paragraph"), e.consume(u);
|
|
10364
10364
|
return;
|
|
10365
10365
|
}
|
|
10366
|
-
return
|
|
10366
|
+
return de(u) ? (e.consume(u), e.exit("chunkText"), r) : (e.consume(u), i);
|
|
10367
10367
|
}
|
|
10368
10368
|
}
|
|
10369
10369
|
const wh = {
|
|
@@ -10440,7 +10440,7 @@ function _h(e) {
|
|
|
10440
10440
|
v(e.exit("chunkFlow"), !0), g(0), e.consume(b);
|
|
10441
10441
|
return;
|
|
10442
10442
|
}
|
|
10443
|
-
return
|
|
10443
|
+
return de(b) ? (e.consume(b), v(e.exit("chunkFlow")), l = 0, t.interrupt = void 0, u) : (e.consume(b), E);
|
|
10444
10444
|
}
|
|
10445
10445
|
function v(b, x) {
|
|
10446
10446
|
const C = t.sliceStream(b);
|
|
@@ -10617,7 +10617,7 @@ function Oh(e, t, a) {
|
|
|
10617
10617
|
return a(f);
|
|
10618
10618
|
}
|
|
10619
10619
|
}
|
|
10620
|
-
const
|
|
10620
|
+
const zl = {
|
|
10621
10621
|
partial: !0,
|
|
10622
10622
|
tokenize: Dh
|
|
10623
10623
|
};
|
|
@@ -10627,7 +10627,7 @@ function Dh(e, t, a) {
|
|
|
10627
10627
|
return we(r) ? _e(e, n, "linePrefix")(r) : n(r);
|
|
10628
10628
|
}
|
|
10629
10629
|
function n(r) {
|
|
10630
|
-
return r === null ||
|
|
10630
|
+
return r === null || de(r) ? t(r) : a(r);
|
|
10631
10631
|
}
|
|
10632
10632
|
}
|
|
10633
10633
|
const Ns = {
|
|
@@ -10731,20 +10731,20 @@ function Hh(e, t, a) {
|
|
|
10731
10731
|
return S === u ? (i++, e.consume(S), c) : i < 3 ? a(S) : (e.exit("codeFencedFenceSequence"), we(S) ? _e(e, d, "whitespace")(S) : d(S));
|
|
10732
10732
|
}
|
|
10733
10733
|
function d(S) {
|
|
10734
|
-
return S === null ||
|
|
10734
|
+
return S === null || de(S) ? (e.exit("codeFencedFence"), l.interrupt ? t(S) : e.check(Ui, E, x)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
10735
10735
|
contentType: "string"
|
|
10736
10736
|
}), h(S));
|
|
10737
10737
|
}
|
|
10738
10738
|
function h(S) {
|
|
10739
|
-
return S === null ||
|
|
10739
|
+
return S === null || de(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(S)) : we(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), _e(e, f, "whitespace")(S)) : S === 96 && S === u ? a(S) : (e.consume(S), h);
|
|
10740
10740
|
}
|
|
10741
10741
|
function f(S) {
|
|
10742
|
-
return S === null ||
|
|
10742
|
+
return S === null || de(S) ? d(S) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
10743
10743
|
contentType: "string"
|
|
10744
10744
|
}), y(S));
|
|
10745
10745
|
}
|
|
10746
10746
|
function y(S) {
|
|
10747
|
-
return S === null ||
|
|
10747
|
+
return S === null || de(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(S)) : S === 96 && S === u ? a(S) : (e.consume(S), y);
|
|
10748
10748
|
}
|
|
10749
10749
|
function E(S) {
|
|
10750
10750
|
return e.attempt(n, x, v)(S);
|
|
@@ -10756,10 +10756,10 @@ function Hh(e, t, a) {
|
|
|
10756
10756
|
return r > 0 && we(S) ? _e(e, m, "linePrefix", r + 1)(S) : m(S);
|
|
10757
10757
|
}
|
|
10758
10758
|
function m(S) {
|
|
10759
|
-
return S === null ||
|
|
10759
|
+
return S === null || de(S) ? e.check(Ui, E, x)(S) : (e.enter("codeFlowValue"), b(S));
|
|
10760
10760
|
}
|
|
10761
10761
|
function b(S) {
|
|
10762
|
-
return S === null ||
|
|
10762
|
+
return S === null || de(S) ? (e.exit("codeFlowValue"), m(S)) : (e.consume(S), b);
|
|
10763
10763
|
}
|
|
10764
10764
|
function x(S) {
|
|
10765
10765
|
return e.exit("codeFenced"), t(S);
|
|
@@ -10780,7 +10780,7 @@ function Hh(e, t, a) {
|
|
|
10780
10780
|
return T === u ? (A++, S.consume(T), O) : A >= i ? (S.exit("codeFencedFenceSequence"), we(T) ? _e(S, w, "whitespace")(T) : w(T)) : k(T);
|
|
10781
10781
|
}
|
|
10782
10782
|
function w(T) {
|
|
10783
|
-
return T === null ||
|
|
10783
|
+
return T === null || de(T) ? (S.exit("codeFencedFence"), L(T)) : k(T);
|
|
10784
10784
|
}
|
|
10785
10785
|
}
|
|
10786
10786
|
}
|
|
@@ -10794,7 +10794,7 @@ function $h(e, t, a) {
|
|
|
10794
10794
|
return l.parser.lazy[l.now().line] ? a(i) : t(i);
|
|
10795
10795
|
}
|
|
10796
10796
|
}
|
|
10797
|
-
const
|
|
10797
|
+
const xn = {
|
|
10798
10798
|
name: "codeIndented",
|
|
10799
10799
|
tokenize: qh
|
|
10800
10800
|
}, Uh = {
|
|
@@ -10812,10 +10812,10 @@ function qh(e, t, a) {
|
|
|
10812
10812
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? i(o) : a(o);
|
|
10813
10813
|
}
|
|
10814
10814
|
function i(o) {
|
|
10815
|
-
return o === null ? s(o) :
|
|
10815
|
+
return o === null ? s(o) : de(o) ? e.attempt(Uh, i, s)(o) : (e.enter("codeFlowValue"), u(o));
|
|
10816
10816
|
}
|
|
10817
10817
|
function u(o) {
|
|
10818
|
-
return o === null ||
|
|
10818
|
+
return o === null || de(o) ? (e.exit("codeFlowValue"), i(o)) : (e.consume(o), u);
|
|
10819
10819
|
}
|
|
10820
10820
|
function s(o) {
|
|
10821
10821
|
return e.exit("codeIndented"), t(o);
|
|
@@ -10825,11 +10825,11 @@ function zh(e, t, a) {
|
|
|
10825
10825
|
const l = this;
|
|
10826
10826
|
return n;
|
|
10827
10827
|
function n(i) {
|
|
10828
|
-
return l.parser.lazy[l.now().line] ? a(i) :
|
|
10828
|
+
return l.parser.lazy[l.now().line] ? a(i) : de(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n) : _e(e, r, "linePrefix", 5)(i);
|
|
10829
10829
|
}
|
|
10830
10830
|
function r(i) {
|
|
10831
10831
|
const u = l.events[l.events.length - 1];
|
|
10832
|
-
return u && u[1].type === "linePrefix" && u[2].sliceSerialize(u[1], !0).length >= 4 ? t(i) :
|
|
10832
|
+
return u && u[1].type === "linePrefix" && u[2].sliceSerialize(u[1], !0).length >= 4 ? t(i) : de(i) ? n(i) : a(i);
|
|
10833
10833
|
}
|
|
10834
10834
|
}
|
|
10835
10835
|
const Vh = {
|
|
@@ -10864,10 +10864,10 @@ function Wh(e, t, a) {
|
|
|
10864
10864
|
return d === 96 ? (e.consume(d), l++, u) : (e.exit("codeTextSequence"), s(d));
|
|
10865
10865
|
}
|
|
10866
10866
|
function s(d) {
|
|
10867
|
-
return d === null ? a(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), s) : d === 96 ? (r = e.enter("codeTextSequence"), n = 0, c(d)) :
|
|
10867
|
+
return d === null ? a(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), s) : d === 96 ? (r = e.enter("codeTextSequence"), n = 0, c(d)) : de(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), s) : (e.enter("codeTextData"), o(d));
|
|
10868
10868
|
}
|
|
10869
10869
|
function o(d) {
|
|
10870
|
-
return d === null || d === 32 || d === 96 ||
|
|
10870
|
+
return d === null || d === 32 || d === 96 || de(d) ? (e.exit("codeTextData"), s(d)) : (e.consume(d), o);
|
|
10871
10871
|
}
|
|
10872
10872
|
function c(d) {
|
|
10873
10873
|
return d === 96 ? (e.consume(d), n++, c) : n === l ? (e.exit("codeTextSequence"), e.exit("codeText"), t(d)) : (r.type = "codeTextData", o(d));
|
|
@@ -11113,7 +11113,7 @@ function Zh(e, t) {
|
|
|
11113
11113
|
}), n(u);
|
|
11114
11114
|
}
|
|
11115
11115
|
function n(u) {
|
|
11116
|
-
return u === null ? r(u) :
|
|
11116
|
+
return u === null ? r(u) : de(u) ? e.check(Qh, i, r)(u) : (e.consume(u), n);
|
|
11117
11117
|
}
|
|
11118
11118
|
function r(u) {
|
|
11119
11119
|
return e.exit("chunkContent"), e.exit("content"), t(u);
|
|
@@ -11132,7 +11132,7 @@ function eb(e, t, a) {
|
|
|
11132
11132
|
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), _e(e, r, "linePrefix");
|
|
11133
11133
|
}
|
|
11134
11134
|
function r(i) {
|
|
11135
|
-
if (i === null ||
|
|
11135
|
+
if (i === null || de(i))
|
|
11136
11136
|
return a(i);
|
|
11137
11137
|
const u = l.events[l.events.length - 1];
|
|
11138
11138
|
return !l.parser.constructs.disable.null.includes("codeIndented") && u && u[1].type === "linePrefix" && u[2].sliceSerialize(u[1], !0).length >= 4 ? t(i) : e.interrupt(l.parser.constructs.flow, a, t)(i);
|
|
@@ -11153,7 +11153,7 @@ function Ds(e, t, a, l, n, r, i, u, s) {
|
|
|
11153
11153
|
}), f(g));
|
|
11154
11154
|
}
|
|
11155
11155
|
function f(g) {
|
|
11156
|
-
return g === 62 ? (e.exit("chunkString"), e.exit(u), h(g)) : g === null || g === 60 ||
|
|
11156
|
+
return g === 62 ? (e.exit("chunkString"), e.exit(u), h(g)) : g === null || g === 60 || de(g) ? a(g) : (e.consume(g), g === 92 ? y : f);
|
|
11157
11157
|
}
|
|
11158
11158
|
function y(g) {
|
|
11159
11159
|
return g === 60 || g === 62 || g === 92 ? (e.consume(g), f) : f(g);
|
|
@@ -11178,12 +11178,12 @@ function Ps(e, t, a, l, n, r) {
|
|
|
11178
11178
|
// which doesn’t need this.
|
|
11179
11179
|
// Hidden footnotes hook.
|
|
11180
11180
|
/* c8 ignore next 3 */
|
|
11181
|
-
f === 94 && !u && "_hiddenFootnoteSupport" in i.parser.constructs ? a(f) : f === 93 ? (e.exit(r), e.enter(n), e.consume(f), e.exit(n), e.exit(l), t) :
|
|
11181
|
+
f === 94 && !u && "_hiddenFootnoteSupport" in i.parser.constructs ? a(f) : f === 93 ? (e.exit(r), e.enter(n), e.consume(f), e.exit(n), e.exit(l), t) : de(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), c) : (e.enter("chunkString", {
|
|
11182
11182
|
contentType: "string"
|
|
11183
11183
|
}), d(f));
|
|
11184
11184
|
}
|
|
11185
11185
|
function d(f) {
|
|
11186
|
-
return f === null || f === 91 || f === 93 ||
|
|
11186
|
+
return f === null || f === 91 || f === 93 || de(f) || u++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), s || (s = !we(f)), f === 92 ? h : d);
|
|
11187
11187
|
}
|
|
11188
11188
|
function h(f) {
|
|
11189
11189
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), u++, d) : d(f);
|
|
@@ -11199,12 +11199,12 @@ function Ms(e, t, a, l, n, r) {
|
|
|
11199
11199
|
return h === i ? (e.enter(n), e.consume(h), e.exit(n), e.exit(l), t) : (e.enter(r), o(h));
|
|
11200
11200
|
}
|
|
11201
11201
|
function o(h) {
|
|
11202
|
-
return h === i ? (e.exit(r), s(i)) : h === null ? a(h) :
|
|
11202
|
+
return h === i ? (e.exit(r), s(i)) : h === null ? a(h) : de(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), _e(e, o, "linePrefix")) : (e.enter("chunkString", {
|
|
11203
11203
|
contentType: "string"
|
|
11204
11204
|
}), c(h));
|
|
11205
11205
|
}
|
|
11206
11206
|
function c(h) {
|
|
11207
|
-
return h === i || h === null ||
|
|
11207
|
+
return h === i || h === null || de(h) ? (e.exit("chunkString"), o(h)) : (e.consume(h), h === 92 ? d : c);
|
|
11208
11208
|
}
|
|
11209
11209
|
function d(h) {
|
|
11210
11210
|
return h === i || h === 92 ? (e.consume(h), c) : c(h);
|
|
@@ -11214,7 +11214,7 @@ function St(e, t) {
|
|
|
11214
11214
|
let a;
|
|
11215
11215
|
return l;
|
|
11216
11216
|
function l(n) {
|
|
11217
|
-
return
|
|
11217
|
+
return de(n) ? (e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), a = !0, l) : we(n) ? _e(e, l, a ? "linePrefix" : "lineSuffix")(n) : t(n);
|
|
11218
11218
|
}
|
|
11219
11219
|
}
|
|
11220
11220
|
const tb = {
|
|
@@ -11269,7 +11269,7 @@ function lb(e, t, a) {
|
|
|
11269
11269
|
return we(f) ? _e(e, h, "whitespace")(f) : h(f);
|
|
11270
11270
|
}
|
|
11271
11271
|
function h(f) {
|
|
11272
|
-
return f === null ||
|
|
11272
|
+
return f === null || de(f) ? (e.exit("definition"), l.parser.defined.push(n), t(f)) : a(f);
|
|
11273
11273
|
}
|
|
11274
11274
|
}
|
|
11275
11275
|
function nb(e, t, a) {
|
|
@@ -11284,7 +11284,7 @@ function nb(e, t, a) {
|
|
|
11284
11284
|
return we(u) ? _e(e, i, "whitespace")(u) : i(u);
|
|
11285
11285
|
}
|
|
11286
11286
|
function i(u) {
|
|
11287
|
-
return u === null ||
|
|
11287
|
+
return u === null || de(u) ? t(u) : a(u);
|
|
11288
11288
|
}
|
|
11289
11289
|
}
|
|
11290
11290
|
const rb = {
|
|
@@ -11297,7 +11297,7 @@ function ib(e, t, a) {
|
|
|
11297
11297
|
return e.enter("hardBreakEscape"), e.consume(r), n;
|
|
11298
11298
|
}
|
|
11299
11299
|
function n(r) {
|
|
11300
|
-
return
|
|
11300
|
+
return de(r) ? (e.exit("hardBreakEscape"), t(r)) : a(r);
|
|
11301
11301
|
}
|
|
11302
11302
|
}
|
|
11303
11303
|
const ub = {
|
|
@@ -11331,7 +11331,7 @@ function ob(e, t, a) {
|
|
|
11331
11331
|
return c === 35 && l++ < 6 ? (e.consume(c), i) : c === null || Re(c) ? (e.exit("atxHeadingSequence"), u(c)) : a(c);
|
|
11332
11332
|
}
|
|
11333
11333
|
function u(c) {
|
|
11334
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null ||
|
|
11334
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || de(c) ? (e.exit("atxHeading"), t(c)) : we(c) ? _e(e, u, "whitespace")(c) : (e.enter("atxHeadingText"), o(c));
|
|
11335
11335
|
}
|
|
11336
11336
|
function s(c) {
|
|
11337
11337
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), u(c));
|
|
@@ -11473,7 +11473,7 @@ function bb(e, t, a) {
|
|
|
11473
11473
|
return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? a(D) : D === 34 || D === 39 ? (e.consume(D), s = D, L) : we(D) ? (e.consume(D), S) : k(D);
|
|
11474
11474
|
}
|
|
11475
11475
|
function L(D) {
|
|
11476
|
-
return D === s ? (e.consume(D), s = null, A) : D === null ||
|
|
11476
|
+
return D === s ? (e.consume(D), s = null, A) : D === null || de(D) ? a(D) : (e.consume(D), L);
|
|
11477
11477
|
}
|
|
11478
11478
|
function k(D) {
|
|
11479
11479
|
return D === null || D === 34 || D === 39 || D === 47 || D === 60 || D === 61 || D === 62 || D === 96 || Re(D) ? C(D) : (e.consume(D), k);
|
|
@@ -11485,10 +11485,10 @@ function bb(e, t, a) {
|
|
|
11485
11485
|
return D === 62 ? (e.consume(D), N) : a(D);
|
|
11486
11486
|
}
|
|
11487
11487
|
function N(D) {
|
|
11488
|
-
return D === null ||
|
|
11488
|
+
return D === null || de(D) ? P(D) : we(D) ? (e.consume(D), N) : a(D);
|
|
11489
11489
|
}
|
|
11490
11490
|
function P(D) {
|
|
11491
|
-
return D === 45 && n === 2 ? (e.consume(D), M) : D === 60 && n === 1 ? (e.consume(D), q) : D === 62 && n === 4 ? (e.consume(D), z) : D === 63 && n === 3 ? (e.consume(D), _) : D === 93 && n === 5 ? (e.consume(D), F) :
|
|
11491
|
+
return D === 45 && n === 2 ? (e.consume(D), M) : D === 60 && n === 1 ? (e.consume(D), q) : D === 62 && n === 4 ? (e.consume(D), z) : D === 63 && n === 3 ? (e.consume(D), _) : D === 93 && n === 5 ? (e.consume(D), F) : de(D) && (n === 6 || n === 7) ? (e.exit("htmlFlowData"), e.check(fb, W, O)(D)) : D === null || de(D) ? (e.exit("htmlFlowData"), O(D)) : (e.consume(D), P);
|
|
11492
11492
|
}
|
|
11493
11493
|
function O(D) {
|
|
11494
11494
|
return e.check(pb, w, W)(D);
|
|
@@ -11497,7 +11497,7 @@ function bb(e, t, a) {
|
|
|
11497
11497
|
return e.enter("lineEnding"), e.consume(D), e.exit("lineEnding"), T;
|
|
11498
11498
|
}
|
|
11499
11499
|
function T(D) {
|
|
11500
|
-
return D === null ||
|
|
11500
|
+
return D === null || de(D) ? O(D) : (e.enter("htmlFlowData"), P(D));
|
|
11501
11501
|
}
|
|
11502
11502
|
function M(D) {
|
|
11503
11503
|
return D === 45 ? (e.consume(D), _) : P(D);
|
|
@@ -11519,7 +11519,7 @@ function bb(e, t, a) {
|
|
|
11519
11519
|
return D === 62 ? (e.consume(D), z) : D === 45 && n === 2 ? (e.consume(D), _) : P(D);
|
|
11520
11520
|
}
|
|
11521
11521
|
function z(D) {
|
|
11522
|
-
return D === null ||
|
|
11522
|
+
return D === null || de(D) ? (e.exit("htmlFlowData"), W(D)) : (e.consume(D), z);
|
|
11523
11523
|
}
|
|
11524
11524
|
function W(D) {
|
|
11525
11525
|
return e.exit("htmlFlow"), t(D);
|
|
@@ -11529,7 +11529,7 @@ function mb(e, t, a) {
|
|
|
11529
11529
|
const l = this;
|
|
11530
11530
|
return n;
|
|
11531
11531
|
function n(i) {
|
|
11532
|
-
return
|
|
11532
|
+
return de(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), r) : a(i);
|
|
11533
11533
|
}
|
|
11534
11534
|
function r(i) {
|
|
11535
11535
|
return l.parser.lazy[l.now().line] ? a(i) : t(i);
|
|
@@ -11538,7 +11538,7 @@ function mb(e, t, a) {
|
|
|
11538
11538
|
function vb(e, t, a) {
|
|
11539
11539
|
return l;
|
|
11540
11540
|
function l(n) {
|
|
11541
|
-
return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), e.attempt(
|
|
11541
|
+
return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), e.attempt(zl, t, a);
|
|
11542
11542
|
}
|
|
11543
11543
|
}
|
|
11544
11544
|
const gb = {
|
|
@@ -11562,7 +11562,7 @@ function Eb(e, t, a) {
|
|
|
11562
11562
|
return _ === 45 ? (e.consume(_), f) : a(_);
|
|
11563
11563
|
}
|
|
11564
11564
|
function d(_) {
|
|
11565
|
-
return _ === null ? a(_) : _ === 45 ? (e.consume(_), h) :
|
|
11565
|
+
return _ === null ? a(_) : _ === 45 ? (e.consume(_), h) : de(_) ? (i = d, q(_)) : (e.consume(_), d);
|
|
11566
11566
|
}
|
|
11567
11567
|
function h(_) {
|
|
11568
11568
|
return _ === 45 ? (e.consume(_), f) : d(_);
|
|
@@ -11575,7 +11575,7 @@ function Eb(e, t, a) {
|
|
|
11575
11575
|
return _ === z.charCodeAt(r++) ? (e.consume(_), r === z.length ? E : y) : a(_);
|
|
11576
11576
|
}
|
|
11577
11577
|
function E(_) {
|
|
11578
|
-
return _ === null ? a(_) : _ === 93 ? (e.consume(_), v) :
|
|
11578
|
+
return _ === null ? a(_) : _ === 93 ? (e.consume(_), v) : de(_) ? (i = E, q(_)) : (e.consume(_), E);
|
|
11579
11579
|
}
|
|
11580
11580
|
function v(_) {
|
|
11581
11581
|
return _ === 93 ? (e.consume(_), g) : E(_);
|
|
@@ -11584,10 +11584,10 @@ function Eb(e, t, a) {
|
|
|
11584
11584
|
return _ === 62 ? M(_) : _ === 93 ? (e.consume(_), g) : E(_);
|
|
11585
11585
|
}
|
|
11586
11586
|
function m(_) {
|
|
11587
|
-
return _ === null || _ === 62 ? M(_) :
|
|
11587
|
+
return _ === null || _ === 62 ? M(_) : de(_) ? (i = m, q(_)) : (e.consume(_), m);
|
|
11588
11588
|
}
|
|
11589
11589
|
function b(_) {
|
|
11590
|
-
return _ === null ? a(_) : _ === 63 ? (e.consume(_), x) :
|
|
11590
|
+
return _ === null ? a(_) : _ === 63 ? (e.consume(_), x) : de(_) ? (i = b, q(_)) : (e.consume(_), b);
|
|
11591
11591
|
}
|
|
11592
11592
|
function x(_) {
|
|
11593
11593
|
return _ === 62 ? M(_) : b(_);
|
|
@@ -11599,25 +11599,25 @@ function Eb(e, t, a) {
|
|
|
11599
11599
|
return _ === 45 || lt(_) ? (e.consume(_), S) : L(_);
|
|
11600
11600
|
}
|
|
11601
11601
|
function L(_) {
|
|
11602
|
-
return
|
|
11602
|
+
return de(_) ? (i = L, q(_)) : we(_) ? (e.consume(_), L) : M(_);
|
|
11603
11603
|
}
|
|
11604
11604
|
function k(_) {
|
|
11605
11605
|
return _ === 45 || lt(_) ? (e.consume(_), k) : _ === 47 || _ === 62 || Re(_) ? A(_) : a(_);
|
|
11606
11606
|
}
|
|
11607
11607
|
function A(_) {
|
|
11608
|
-
return _ === 47 ? (e.consume(_), M) : _ === 58 || _ === 95 || bt(_) ? (e.consume(_), I) :
|
|
11608
|
+
return _ === 47 ? (e.consume(_), M) : _ === 58 || _ === 95 || bt(_) ? (e.consume(_), I) : de(_) ? (i = A, q(_)) : we(_) ? (e.consume(_), A) : M(_);
|
|
11609
11609
|
}
|
|
11610
11610
|
function I(_) {
|
|
11611
11611
|
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || lt(_) ? (e.consume(_), I) : N(_);
|
|
11612
11612
|
}
|
|
11613
11613
|
function N(_) {
|
|
11614
|
-
return _ === 61 ? (e.consume(_), P) :
|
|
11614
|
+
return _ === 61 ? (e.consume(_), P) : de(_) ? (i = N, q(_)) : we(_) ? (e.consume(_), N) : A(_);
|
|
11615
11615
|
}
|
|
11616
11616
|
function P(_) {
|
|
11617
|
-
return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? a(_) : _ === 34 || _ === 39 ? (e.consume(_), n = _, O) :
|
|
11617
|
+
return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? a(_) : _ === 34 || _ === 39 ? (e.consume(_), n = _, O) : de(_) ? (i = P, q(_)) : we(_) ? (e.consume(_), P) : (e.consume(_), w);
|
|
11618
11618
|
}
|
|
11619
11619
|
function O(_) {
|
|
11620
|
-
return _ === n ? (e.consume(_), n = void 0, T) : _ === null ? a(_) :
|
|
11620
|
+
return _ === n ? (e.consume(_), n = void 0, T) : _ === null ? a(_) : de(_) ? (i = O, q(_)) : (e.consume(_), O);
|
|
11621
11621
|
}
|
|
11622
11622
|
function w(_) {
|
|
11623
11623
|
return _ === null || _ === 34 || _ === 39 || _ === 60 || _ === 61 || _ === 96 ? a(_) : _ === 47 || _ === 62 || Re(_) ? A(_) : (e.consume(_), w);
|
|
@@ -11812,7 +11812,7 @@ function Ob(e, t, a) {
|
|
|
11812
11812
|
return i === 94 && "_hiddenFootnoteSupport" in l.parser.constructs ? a(i) : t(i);
|
|
11813
11813
|
}
|
|
11814
11814
|
}
|
|
11815
|
-
const
|
|
11815
|
+
const Cn = {
|
|
11816
11816
|
name: "lineEnding",
|
|
11817
11817
|
tokenize: Db
|
|
11818
11818
|
};
|
|
@@ -11836,7 +11836,7 @@ function Pb(e, t, a) {
|
|
|
11836
11836
|
return n = o, u(o);
|
|
11837
11837
|
}
|
|
11838
11838
|
function u(o) {
|
|
11839
|
-
return o === n ? (e.enter("thematicBreakSequence"), s(o)) : l >= 3 && (o === null ||
|
|
11839
|
+
return o === n ? (e.enter("thematicBreakSequence"), s(o)) : l >= 3 && (o === null || de(o)) ? (e.exit("thematicBreak"), t(o)) : a(o);
|
|
11840
11840
|
}
|
|
11841
11841
|
function s(o) {
|
|
11842
11842
|
return o === n ? (e.consume(o), l++, s) : (e.exit("thematicBreakSequence"), we(o) ? _e(e, u, "whitespace")(o) : u(o));
|
|
@@ -11877,7 +11877,7 @@ function Bb(e, t, a) {
|
|
|
11877
11877
|
}
|
|
11878
11878
|
function o(f) {
|
|
11879
11879
|
return e.enter("listItemMarker"), e.consume(f), e.exit("listItemMarker"), l.containerState.marker = l.containerState.marker || f, e.check(
|
|
11880
|
-
|
|
11880
|
+
zl,
|
|
11881
11881
|
// Can’t be empty when interrupting.
|
|
11882
11882
|
l.interrupt ? a : c,
|
|
11883
11883
|
e.attempt(Mb, h, d)
|
|
@@ -11895,7 +11895,7 @@ function Bb(e, t, a) {
|
|
|
11895
11895
|
}
|
|
11896
11896
|
function Fb(e, t, a) {
|
|
11897
11897
|
const l = this;
|
|
11898
|
-
return l.containerState._closeFlow = void 0, e.check(
|
|
11898
|
+
return l.containerState._closeFlow = void 0, e.check(zl, n, r);
|
|
11899
11899
|
function n(u) {
|
|
11900
11900
|
return l.containerState.furtherBlankLines = l.containerState.furtherBlankLines || l.containerState.initialBlankLine, _e(e, t, "listItemIndent", l.containerState.size + 1)(u);
|
|
11901
11901
|
}
|
|
@@ -11974,7 +11974,7 @@ function zb(e, t, a) {
|
|
|
11974
11974
|
return o === n ? (e.consume(o), u) : (e.exit("setextHeadingLineSequence"), we(o) ? _e(e, s, "lineSuffix")(o) : s(o));
|
|
11975
11975
|
}
|
|
11976
11976
|
function s(o) {
|
|
11977
|
-
return o === null ||
|
|
11977
|
+
return o === null || de(o) ? (e.exit("setextHeadingLine"), t(o)) : a(o);
|
|
11978
11978
|
}
|
|
11979
11979
|
}
|
|
11980
11980
|
const Vb = {
|
|
@@ -11983,7 +11983,7 @@ const Vb = {
|
|
|
11983
11983
|
function Gb(e) {
|
|
11984
11984
|
const t = this, a = e.attempt(
|
|
11985
11985
|
// Try to parse a blank line.
|
|
11986
|
-
|
|
11986
|
+
zl,
|
|
11987
11987
|
l,
|
|
11988
11988
|
// Try to parse initial flow (essentially, only code).
|
|
11989
11989
|
e.attempt(this.parser.constructs.flowInitial, n, _e(e, e.attempt(this.parser.constructs.flow, n, e.attempt(Xh, n)), "linePrefix"))
|
|
@@ -12112,9 +12112,9 @@ const Xb = {
|
|
|
12112
12112
|
}, Qb = {
|
|
12113
12113
|
91: tb
|
|
12114
12114
|
}, Jb = {
|
|
12115
|
-
[-2]:
|
|
12116
|
-
[-1]:
|
|
12117
|
-
32:
|
|
12115
|
+
[-2]: xn,
|
|
12116
|
+
[-1]: xn,
|
|
12117
|
+
32: xn
|
|
12118
12118
|
}, Zb = {
|
|
12119
12119
|
35: ub,
|
|
12120
12120
|
42: Al,
|
|
@@ -12128,9 +12128,9 @@ const Xb = {
|
|
|
12128
12128
|
38: Ls,
|
|
12129
12129
|
92: Is
|
|
12130
12130
|
}, tm = {
|
|
12131
|
-
[-5]:
|
|
12132
|
-
[-4]:
|
|
12133
|
-
[-3]:
|
|
12131
|
+
[-5]: Cn,
|
|
12132
|
+
[-4]: Cn,
|
|
12133
|
+
[-3]: Cn,
|
|
12134
12134
|
33: Nb,
|
|
12135
12135
|
38: Ls,
|
|
12136
12136
|
42: ur,
|
|
@@ -12234,7 +12234,7 @@ function im(e, t, a) {
|
|
|
12234
12234
|
c = c(N);
|
|
12235
12235
|
}
|
|
12236
12236
|
function m(N) {
|
|
12237
|
-
|
|
12237
|
+
de(N) ? (l.line++, l.column = 1, l.offset += N === -3 ? 2 : 1, I()) : N !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
12238
12238
|
// strings.
|
|
12239
12239
|
/** @type {string} */
|
|
12240
12240
|
i[l._index].length && (l._bufferIndex = -1, l._index++)), o.previous = N;
|
|
@@ -12270,13 +12270,13 @@ function im(e, t, a) {
|
|
|
12270
12270
|
function z(J) {
|
|
12271
12271
|
return Y;
|
|
12272
12272
|
function Y(le) {
|
|
12273
|
-
const
|
|
12273
|
+
const fe = le !== null && J[le], me = le !== null && J.null, Ee = [
|
|
12274
12274
|
// To do: add more extension tests.
|
|
12275
12275
|
/* c8 ignore next 2 */
|
|
12276
|
-
...Array.isArray(
|
|
12277
|
-
...Array.isArray(
|
|
12276
|
+
...Array.isArray(fe) ? fe : fe ? [fe] : [],
|
|
12277
|
+
...Array.isArray(me) ? me : me ? [me] : []
|
|
12278
12278
|
];
|
|
12279
|
-
return W(
|
|
12279
|
+
return W(Ee)(le);
|
|
12280
12280
|
}
|
|
12281
12281
|
}
|
|
12282
12282
|
function W(J) {
|
|
@@ -12464,13 +12464,13 @@ function mm(e) {
|
|
|
12464
12464
|
autolinkProtocol: A,
|
|
12465
12465
|
autolinkEmail: A,
|
|
12466
12466
|
atxHeading: r(nt),
|
|
12467
|
-
blockQuote: r(
|
|
12467
|
+
blockQuote: r(me),
|
|
12468
12468
|
characterEscape: A,
|
|
12469
12469
|
characterReference: A,
|
|
12470
|
-
codeFenced: r(
|
|
12470
|
+
codeFenced: r(Ee),
|
|
12471
12471
|
codeFencedFenceInfo: i,
|
|
12472
12472
|
codeFencedFenceMeta: i,
|
|
12473
|
-
codeIndented: r(
|
|
12473
|
+
codeIndented: r(Ee, i),
|
|
12474
12474
|
codeText: r(je, i),
|
|
12475
12475
|
codeTextData: A,
|
|
12476
12476
|
data: A,
|
|
@@ -12486,14 +12486,14 @@ function mm(e) {
|
|
|
12486
12486
|
htmlFlowData: A,
|
|
12487
12487
|
htmlText: r(Jt, i),
|
|
12488
12488
|
htmlTextData: A,
|
|
12489
|
-
image: r(
|
|
12489
|
+
image: r(Ql),
|
|
12490
12490
|
label: i,
|
|
12491
12491
|
link: r(ha),
|
|
12492
12492
|
listItem: r(sl),
|
|
12493
12493
|
listItemValue: h,
|
|
12494
12494
|
listOrdered: r(ul, d),
|
|
12495
12495
|
listUnordered: r(ul),
|
|
12496
|
-
paragraph: r(
|
|
12496
|
+
paragraph: r(Jl),
|
|
12497
12497
|
reference: D,
|
|
12498
12498
|
referenceString: i,
|
|
12499
12499
|
resourceDestinationString: i,
|
|
@@ -12506,7 +12506,7 @@ function mm(e) {
|
|
|
12506
12506
|
atxHeading: s(),
|
|
12507
12507
|
atxHeadingSequence: C,
|
|
12508
12508
|
autolink: s(),
|
|
12509
|
-
autolinkEmail:
|
|
12509
|
+
autolinkEmail: fe,
|
|
12510
12510
|
autolinkProtocol: le,
|
|
12511
12511
|
blockQuote: s(),
|
|
12512
12512
|
characterEscapeValue: I,
|
|
@@ -12562,7 +12562,7 @@ function mm(e) {
|
|
|
12562
12562
|
type: "root",
|
|
12563
12563
|
children: []
|
|
12564
12564
|
};
|
|
12565
|
-
const
|
|
12565
|
+
const be = {
|
|
12566
12566
|
stack: [ne],
|
|
12567
12567
|
tokenStack: [],
|
|
12568
12568
|
config: t,
|
|
@@ -12585,11 +12585,11 @@ function mm(e) {
|
|
|
12585
12585
|
const Ke = t[X[ke][0]];
|
|
12586
12586
|
Fs.call(Ke, X[ke][1].type) && Ke[X[ke][1].type].call(Object.assign({
|
|
12587
12587
|
sliceSerialize: X[ke][2].sliceSerialize
|
|
12588
|
-
},
|
|
12588
|
+
}, be), X[ke][1]);
|
|
12589
12589
|
}
|
|
12590
|
-
if (
|
|
12591
|
-
const Ke =
|
|
12592
|
-
(Ke[1] || Yi).call(
|
|
12590
|
+
if (be.tokenStack.length > 0) {
|
|
12591
|
+
const Ke = be.tokenStack[be.tokenStack.length - 1];
|
|
12592
|
+
(Ke[1] || Yi).call(be, void 0, Ke[0]);
|
|
12593
12593
|
}
|
|
12594
12594
|
for (ne.position = {
|
|
12595
12595
|
start: kt(X.length > 0 ? X[0][1].start : {
|
|
@@ -12606,9 +12606,9 @@ function mm(e) {
|
|
|
12606
12606
|
ne = t.transforms[ke](ne) || ne;
|
|
12607
12607
|
return ne;
|
|
12608
12608
|
}
|
|
12609
|
-
function n(X, ne,
|
|
12609
|
+
function n(X, ne, be) {
|
|
12610
12610
|
let Ce = ne - 1, ke = -1, Ke = !1, yt, Ve, Ft, Ht;
|
|
12611
|
-
for (; ++Ce <=
|
|
12611
|
+
for (; ++Ce <= be; ) {
|
|
12612
12612
|
const He = X[Ce];
|
|
12613
12613
|
switch (He[1].type) {
|
|
12614
12614
|
case "listUnordered":
|
|
@@ -12640,7 +12640,7 @@ function mm(e) {
|
|
|
12640
12640
|
Ve && (X[Ve][1].type = "lineEndingBlank", Ke = !0), ot[1].type = "lineEnding", Ve = Tt;
|
|
12641
12641
|
} else if (!(ot[1].type === "linePrefix" || ot[1].type === "blockQuotePrefix" || ot[1].type === "blockQuotePrefixWhitespace" || ot[1].type === "blockQuoteMarker" || ot[1].type === "listItemIndent")) break;
|
|
12642
12642
|
}
|
|
12643
|
-
Ft && (!Ve || Ft < Ve) && (yt._spread = !0), yt.end = Object.assign({}, Ve ? X[Ve][1].start : He[1].end), X.splice(Ve || Ce, 0, ["exit", yt, He[2]]), Ce++,
|
|
12643
|
+
Ft && (!Ve || Ft < Ve) && (yt._spread = !0), yt.end = Object.assign({}, Ve ? X[Ve][1].start : He[1].end), X.splice(Ve || Ce, 0, ["exit", yt, He[2]]), Ce++, be++;
|
|
12644
12644
|
}
|
|
12645
12645
|
if (He[1].type === "listItemPrefix") {
|
|
12646
12646
|
const Tt = {
|
|
@@ -12650,15 +12650,15 @@ function mm(e) {
|
|
|
12650
12650
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
12651
12651
|
end: void 0
|
|
12652
12652
|
};
|
|
12653
|
-
yt = Tt, X.splice(Ce, 0, ["enter", Tt, He[2]]), Ce++,
|
|
12653
|
+
yt = Tt, X.splice(Ce, 0, ["enter", Tt, He[2]]), Ce++, be++, Ft = void 0, Ht = !0;
|
|
12654
12654
|
}
|
|
12655
12655
|
}
|
|
12656
12656
|
}
|
|
12657
|
-
return X[ne][1]._spread = Ke,
|
|
12657
|
+
return X[ne][1]._spread = Ke, be;
|
|
12658
12658
|
}
|
|
12659
12659
|
function r(X, ne) {
|
|
12660
|
-
return
|
|
12661
|
-
function
|
|
12660
|
+
return be;
|
|
12661
|
+
function be(Ce) {
|
|
12662
12662
|
u.call(this, X(Ce), Ce), ne && ne.call(this, Ce);
|
|
12663
12663
|
}
|
|
12664
12664
|
}
|
|
@@ -12668,8 +12668,8 @@ function mm(e) {
|
|
|
12668
12668
|
children: []
|
|
12669
12669
|
});
|
|
12670
12670
|
}
|
|
12671
|
-
function u(X, ne,
|
|
12672
|
-
this.stack[this.stack.length - 1].children.push(X), this.stack.push(X), this.tokenStack.push([ne,
|
|
12671
|
+
function u(X, ne, be) {
|
|
12672
|
+
this.stack[this.stack.length - 1].children.push(X), this.stack.push(X), this.tokenStack.push([ne, be || void 0]), X.position = {
|
|
12673
12673
|
start: kt(ne.start),
|
|
12674
12674
|
// @ts-expect-error: `end` will be patched later.
|
|
12675
12675
|
end: void 0
|
|
@@ -12677,19 +12677,19 @@ function mm(e) {
|
|
|
12677
12677
|
}
|
|
12678
12678
|
function s(X) {
|
|
12679
12679
|
return ne;
|
|
12680
|
-
function ne(
|
|
12681
|
-
X && X.call(this,
|
|
12680
|
+
function ne(be) {
|
|
12681
|
+
X && X.call(this, be), o.call(this, be);
|
|
12682
12682
|
}
|
|
12683
12683
|
}
|
|
12684
12684
|
function o(X, ne) {
|
|
12685
|
-
const
|
|
12685
|
+
const be = this.stack.pop(), Ce = this.tokenStack.pop();
|
|
12686
12686
|
if (Ce)
|
|
12687
12687
|
Ce[0].type !== X.type && (ne ? ne.call(this, X, Ce[0]) : (Ce[1] || Yi).call(this, X, Ce[0]));
|
|
12688
12688
|
else throw new Error("Cannot close `" + X.type + "` (" + Ra({
|
|
12689
12689
|
start: X.start,
|
|
12690
12690
|
end: X.end
|
|
12691
12691
|
}) + "): it’s not open");
|
|
12692
|
-
|
|
12692
|
+
be.position.end = kt(X.end);
|
|
12693
12693
|
}
|
|
12694
12694
|
function c() {
|
|
12695
12695
|
return mh(this.stack.pop());
|
|
@@ -12723,8 +12723,8 @@ function mm(e) {
|
|
|
12723
12723
|
ne.value = X.replace(/(\r?\n|\r)$/g, "");
|
|
12724
12724
|
}
|
|
12725
12725
|
function m(X) {
|
|
12726
|
-
const ne = this.resume(),
|
|
12727
|
-
|
|
12726
|
+
const ne = this.resume(), be = this.stack[this.stack.length - 1];
|
|
12727
|
+
be.label = ne, be.identifier = ua(this.sliceSerialize(X)).toLowerCase();
|
|
12728
12728
|
}
|
|
12729
12729
|
function b() {
|
|
12730
12730
|
const X = this.resume(), ne = this.stack[this.stack.length - 1];
|
|
@@ -12737,8 +12737,8 @@ function mm(e) {
|
|
|
12737
12737
|
function C(X) {
|
|
12738
12738
|
const ne = this.stack[this.stack.length - 1];
|
|
12739
12739
|
if (!ne.depth) {
|
|
12740
|
-
const
|
|
12741
|
-
ne.depth =
|
|
12740
|
+
const be = this.sliceSerialize(X).length;
|
|
12741
|
+
ne.depth = be;
|
|
12742
12742
|
}
|
|
12743
12743
|
}
|
|
12744
12744
|
function S() {
|
|
@@ -12752,13 +12752,13 @@ function mm(e) {
|
|
|
12752
12752
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
12753
12753
|
}
|
|
12754
12754
|
function A(X) {
|
|
12755
|
-
const
|
|
12756
|
-
let Ce =
|
|
12755
|
+
const be = this.stack[this.stack.length - 1].children;
|
|
12756
|
+
let Ce = be[be.length - 1];
|
|
12757
12757
|
(!Ce || Ce.type !== "text") && (Ce = st(), Ce.position = {
|
|
12758
12758
|
start: kt(X.start),
|
|
12759
12759
|
// @ts-expect-error: we’ll add `end` later.
|
|
12760
12760
|
end: void 0
|
|
12761
|
-
},
|
|
12761
|
+
}, be.push(Ce)), this.stack.push(Ce);
|
|
12762
12762
|
}
|
|
12763
12763
|
function I(X) {
|
|
12764
12764
|
const ne = this.stack.pop();
|
|
@@ -12767,8 +12767,8 @@ function mm(e) {
|
|
|
12767
12767
|
function N(X) {
|
|
12768
12768
|
const ne = this.stack[this.stack.length - 1];
|
|
12769
12769
|
if (this.data.atHardBreak) {
|
|
12770
|
-
const
|
|
12771
|
-
|
|
12770
|
+
const be = ne.children[ne.children.length - 1];
|
|
12771
|
+
be.position.end = kt(X.end), this.data.atHardBreak = void 0;
|
|
12772
12772
|
return;
|
|
12773
12773
|
}
|
|
12774
12774
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ne.type) && (A.call(this, X), I.call(this, X));
|
|
@@ -12807,16 +12807,16 @@ function mm(e) {
|
|
|
12807
12807
|
this.data.referenceType = void 0;
|
|
12808
12808
|
}
|
|
12809
12809
|
function H(X) {
|
|
12810
|
-
const ne = this.sliceSerialize(X),
|
|
12811
|
-
|
|
12810
|
+
const ne = this.sliceSerialize(X), be = this.stack[this.stack.length - 2];
|
|
12811
|
+
be.label = pm(ne), be.identifier = ua(ne).toLowerCase();
|
|
12812
12812
|
}
|
|
12813
12813
|
function F() {
|
|
12814
|
-
const X = this.stack[this.stack.length - 1], ne = this.resume(),
|
|
12815
|
-
if (this.data.inReference = !0,
|
|
12814
|
+
const X = this.stack[this.stack.length - 1], ne = this.resume(), be = this.stack[this.stack.length - 1];
|
|
12815
|
+
if (this.data.inReference = !0, be.type === "link") {
|
|
12816
12816
|
const Ce = X.children;
|
|
12817
|
-
|
|
12817
|
+
be.children = Ce;
|
|
12818
12818
|
} else
|
|
12819
|
-
|
|
12819
|
+
be.alt = ne;
|
|
12820
12820
|
}
|
|
12821
12821
|
function _() {
|
|
12822
12822
|
const X = this.resume(), ne = this.stack[this.stack.length - 1];
|
|
@@ -12833,16 +12833,16 @@ function mm(e) {
|
|
|
12833
12833
|
this.data.referenceType = "collapsed";
|
|
12834
12834
|
}
|
|
12835
12835
|
function $(X) {
|
|
12836
|
-
const ne = this.resume(),
|
|
12837
|
-
|
|
12836
|
+
const ne = this.resume(), be = this.stack[this.stack.length - 1];
|
|
12837
|
+
be.label = ne, be.identifier = ua(this.sliceSerialize(X)).toLowerCase(), this.data.referenceType = "full";
|
|
12838
12838
|
}
|
|
12839
12839
|
function K(X) {
|
|
12840
12840
|
this.data.characterReferenceType = X.type;
|
|
12841
12841
|
}
|
|
12842
12842
|
function J(X) {
|
|
12843
|
-
const ne = this.sliceSerialize(X),
|
|
12843
|
+
const ne = this.sliceSerialize(X), be = this.data.characterReferenceType;
|
|
12844
12844
|
let Ce;
|
|
12845
|
-
|
|
12845
|
+
be ? (Ce = ks(ne, be === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ce = Ka(ne);
|
|
12846
12846
|
const ke = this.stack[this.stack.length - 1];
|
|
12847
12847
|
ke.value += Ce;
|
|
12848
12848
|
}
|
|
@@ -12855,18 +12855,18 @@ function mm(e) {
|
|
|
12855
12855
|
const ne = this.stack[this.stack.length - 1];
|
|
12856
12856
|
ne.url = this.sliceSerialize(X);
|
|
12857
12857
|
}
|
|
12858
|
-
function
|
|
12858
|
+
function fe(X) {
|
|
12859
12859
|
I.call(this, X);
|
|
12860
12860
|
const ne = this.stack[this.stack.length - 1];
|
|
12861
12861
|
ne.url = "mailto:" + this.sliceSerialize(X);
|
|
12862
12862
|
}
|
|
12863
|
-
function
|
|
12863
|
+
function me() {
|
|
12864
12864
|
return {
|
|
12865
12865
|
type: "blockquote",
|
|
12866
12866
|
children: []
|
|
12867
12867
|
};
|
|
12868
12868
|
}
|
|
12869
|
-
function
|
|
12869
|
+
function Ee() {
|
|
12870
12870
|
return {
|
|
12871
12871
|
type: "code",
|
|
12872
12872
|
lang: null,
|
|
@@ -12914,7 +12914,7 @@ function mm(e) {
|
|
|
12914
12914
|
value: ""
|
|
12915
12915
|
};
|
|
12916
12916
|
}
|
|
12917
|
-
function
|
|
12917
|
+
function Ql() {
|
|
12918
12918
|
return {
|
|
12919
12919
|
type: "image",
|
|
12920
12920
|
title: null,
|
|
@@ -12947,7 +12947,7 @@ function mm(e) {
|
|
|
12947
12947
|
children: []
|
|
12948
12948
|
};
|
|
12949
12949
|
}
|
|
12950
|
-
function
|
|
12950
|
+
function Jl() {
|
|
12951
12951
|
return {
|
|
12952
12952
|
type: "paragraph",
|
|
12953
12953
|
children: []
|
|
@@ -13275,7 +13275,7 @@ function Fm(e, t) {
|
|
|
13275
13275
|
tagName: "tbody",
|
|
13276
13276
|
properties: {},
|
|
13277
13277
|
children: e.wrap(a, !0)
|
|
13278
|
-
}, u = gt(t.children[1]), s =
|
|
13278
|
+
}, u = gt(t.children[1]), s = ql(t.children[t.children.length - 1]);
|
|
13279
13279
|
u && s && (i.position = { start: u, end: s }), n.push(i);
|
|
13280
13280
|
}
|
|
13281
13281
|
const r = {
|
|
@@ -13385,13 +13385,13 @@ const Vm = {
|
|
|
13385
13385
|
};
|
|
13386
13386
|
function vl() {
|
|
13387
13387
|
}
|
|
13388
|
-
const qs = -1,
|
|
13388
|
+
const qs = -1, Vl = 0, Ba = 1, Rl = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, zs = 7, Vs = 8, Xi = typeof self == "object" ? self : globalThis, Gm = (e, t) => {
|
|
13389
13389
|
const a = (n, r) => (e.set(r, n), n), l = (n) => {
|
|
13390
13390
|
if (e.has(n))
|
|
13391
13391
|
return e.get(n);
|
|
13392
13392
|
const [r, i] = t[n];
|
|
13393
13393
|
switch (r) {
|
|
13394
|
-
case
|
|
13394
|
+
case Vl:
|
|
13395
13395
|
case qs:
|
|
13396
13396
|
return a(i, n);
|
|
13397
13397
|
case Ba: {
|
|
@@ -13400,7 +13400,7 @@ const qs = -1, Gl = 0, Ba = 1, Bl = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, zs = 7, V
|
|
|
13400
13400
|
u.push(l(s));
|
|
13401
13401
|
return u;
|
|
13402
13402
|
}
|
|
13403
|
-
case
|
|
13403
|
+
case Rl: {
|
|
13404
13404
|
const u = a({}, n);
|
|
13405
13405
|
for (const [s, o] of i)
|
|
13406
13406
|
u[l(s)] = l(o);
|
|
@@ -13445,13 +13445,13 @@ const qs = -1, Gl = 0, Ba = 1, Bl = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, zs = 7, V
|
|
|
13445
13445
|
}, Qi = (e) => Gm(/* @__PURE__ */ new Map(), e)(0), aa = "", { toString: Ym } = {}, { keys: Wm } = Object, Na = (e) => {
|
|
13446
13446
|
const t = typeof e;
|
|
13447
13447
|
if (t !== "object" || !e)
|
|
13448
|
-
return [
|
|
13448
|
+
return [Vl, t];
|
|
13449
13449
|
const a = Ym.call(e).slice(8, -1);
|
|
13450
13450
|
switch (a) {
|
|
13451
13451
|
case "Array":
|
|
13452
13452
|
return [Ba, aa];
|
|
13453
13453
|
case "Object":
|
|
13454
|
-
return [
|
|
13454
|
+
return [Rl, aa];
|
|
13455
13455
|
case "Date":
|
|
13456
13456
|
return [Lr, aa];
|
|
13457
13457
|
case "RegExp":
|
|
@@ -13463,8 +13463,8 @@ const qs = -1, Gl = 0, Ba = 1, Bl = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, zs = 7, V
|
|
|
13463
13463
|
case "DataView":
|
|
13464
13464
|
return [Ba, a];
|
|
13465
13465
|
}
|
|
13466
|
-
return a.includes("Array") ? [Ba, a] : a.includes("Error") ? [zs, a] : [
|
|
13467
|
-
}, gl = ([e, t]) => e ===
|
|
13466
|
+
return a.includes("Array") ? [Ba, a] : a.includes("Error") ? [zs, a] : [Rl, a];
|
|
13467
|
+
}, gl = ([e, t]) => e === Vl && (t === "function" || t === "symbol"), jm = (e, t, a, l) => {
|
|
13468
13468
|
const n = (i, u) => {
|
|
13469
13469
|
const s = l.push(i) - 1;
|
|
13470
13470
|
return a.set(u, s), s;
|
|
@@ -13473,7 +13473,7 @@ const qs = -1, Gl = 0, Ba = 1, Bl = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, zs = 7, V
|
|
|
13473
13473
|
return a.get(i);
|
|
13474
13474
|
let [u, s] = Na(i);
|
|
13475
13475
|
switch (u) {
|
|
13476
|
-
case
|
|
13476
|
+
case Vl: {
|
|
13477
13477
|
let c = i;
|
|
13478
13478
|
switch (s) {
|
|
13479
13479
|
case "bigint":
|
|
@@ -13500,7 +13500,7 @@ const qs = -1, Gl = 0, Ba = 1, Bl = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, zs = 7, V
|
|
|
13500
13500
|
c.push(r(h));
|
|
13501
13501
|
return d;
|
|
13502
13502
|
}
|
|
13503
|
-
case
|
|
13503
|
+
case Rl: {
|
|
13504
13504
|
if (s)
|
|
13505
13505
|
switch (s) {
|
|
13506
13506
|
case "BigInt":
|
|
@@ -13649,7 +13649,7 @@ const Gs = (
|
|
|
13649
13649
|
if (e == null)
|
|
13650
13650
|
return t0;
|
|
13651
13651
|
if (typeof e == "function")
|
|
13652
|
-
return
|
|
13652
|
+
return Gl(e);
|
|
13653
13653
|
if (typeof e == "object")
|
|
13654
13654
|
return Array.isArray(e) ? Jm(e) : (
|
|
13655
13655
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
@@ -13669,7 +13669,7 @@ function Jm(e) {
|
|
|
13669
13669
|
let a = -1;
|
|
13670
13670
|
for (; ++a < e.length; )
|
|
13671
13671
|
t[a] = Gs(e[a]);
|
|
13672
|
-
return
|
|
13672
|
+
return Gl(l);
|
|
13673
13673
|
function l(...n) {
|
|
13674
13674
|
let r = -1;
|
|
13675
13675
|
for (; ++r < t.length; )
|
|
@@ -13682,7 +13682,7 @@ function Zm(e) {
|
|
|
13682
13682
|
/** @type {Record<string, unknown>} */
|
|
13683
13683
|
e
|
|
13684
13684
|
);
|
|
13685
|
-
return
|
|
13685
|
+
return Gl(a);
|
|
13686
13686
|
function a(l) {
|
|
13687
13687
|
const n = (
|
|
13688
13688
|
/** @type {Record<string, unknown>} */
|
|
@@ -13696,12 +13696,12 @@ function Zm(e) {
|
|
|
13696
13696
|
}
|
|
13697
13697
|
}
|
|
13698
13698
|
function e0(e) {
|
|
13699
|
-
return
|
|
13699
|
+
return Gl(t);
|
|
13700
13700
|
function t(a) {
|
|
13701
13701
|
return a && a.type === e;
|
|
13702
13702
|
}
|
|
13703
13703
|
}
|
|
13704
|
-
function
|
|
13704
|
+
function Gl(e) {
|
|
13705
13705
|
return t;
|
|
13706
13706
|
function t(a, l, n) {
|
|
13707
13707
|
return !!(a0(a) && e.call(
|
|
@@ -13766,7 +13766,7 @@ function Ws(e, t, a, l) {
|
|
|
13766
13766
|
function r0(e) {
|
|
13767
13767
|
return Array.isArray(e) ? e : typeof e == "number" ? [l0, e] : e == null ? Ys : [e];
|
|
13768
13768
|
}
|
|
13769
|
-
function
|
|
13769
|
+
function Yl(e, t, a, l) {
|
|
13770
13770
|
let n, r, i;
|
|
13771
13771
|
typeof t == "function" && typeof a != "function" ? (r = void 0, i = t, n = a) : (r = t, i = a, n = l), Ws(e, r, u, n);
|
|
13772
13772
|
function u(s, o) {
|
|
@@ -13789,7 +13789,7 @@ function u0(e, t) {
|
|
|
13789
13789
|
patch: s0,
|
|
13790
13790
|
wrap: d0
|
|
13791
13791
|
};
|
|
13792
|
-
return
|
|
13792
|
+
return Yl(e, function(c) {
|
|
13793
13793
|
if (c.type === "definition" || c.type === "footnoteDefinition") {
|
|
13794
13794
|
const d = c.type === "definition" ? l : n, h = String(c.identifier).toUpperCase();
|
|
13795
13795
|
d.has(h) || d.set(h, c);
|
|
@@ -13893,9 +13893,9 @@ function au(e) {
|
|
|
13893
13893
|
if (e)
|
|
13894
13894
|
throw e;
|
|
13895
13895
|
}
|
|
13896
|
-
var
|
|
13896
|
+
var An, lu;
|
|
13897
13897
|
function p0() {
|
|
13898
|
-
if (lu) return
|
|
13898
|
+
if (lu) return An;
|
|
13899
13899
|
lu = 1;
|
|
13900
13900
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, n = function(o) {
|
|
13901
13901
|
return typeof Array.isArray == "function" ? Array.isArray(o) : t.call(o) === "[object Array]";
|
|
@@ -13924,17 +13924,17 @@ function p0() {
|
|
|
13924
13924
|
} else return;
|
|
13925
13925
|
return o[c];
|
|
13926
13926
|
};
|
|
13927
|
-
return
|
|
13927
|
+
return An = function s() {
|
|
13928
13928
|
var o, c, d, h, f, y, E = arguments[0], v = 1, g = arguments.length, m = !1;
|
|
13929
13929
|
for (typeof E == "boolean" && (m = E, E = arguments[1] || {}, v = 2), (E == null || typeof E != "object" && typeof E != "function") && (E = {}); v < g; ++v)
|
|
13930
13930
|
if (o = arguments[v], o != null)
|
|
13931
13931
|
for (c in o)
|
|
13932
13932
|
d = u(E, c), h = u(o, c), E !== h && (m && h && (r(h) || (f = n(h))) ? (f ? (f = !1, y = d && n(d) ? d : []) : y = d && r(d) ? d : {}, i(E, { name: c, newValue: s(m, y, h) })) : typeof h < "u" && i(E, { name: c, newValue: h }));
|
|
13933
13933
|
return E;
|
|
13934
|
-
},
|
|
13934
|
+
}, An;
|
|
13935
13935
|
}
|
|
13936
13936
|
var h0 = p0();
|
|
13937
|
-
const
|
|
13937
|
+
const Sn = /* @__PURE__ */ Sr(h0);
|
|
13938
13938
|
function or(e) {
|
|
13939
13939
|
if (typeof e != "object" || e === null)
|
|
13940
13940
|
return !1;
|
|
@@ -14150,7 +14150,7 @@ function w0(e) {
|
|
|
14150
14150
|
}
|
|
14151
14151
|
return decodeURIComponent(t);
|
|
14152
14152
|
}
|
|
14153
|
-
const
|
|
14153
|
+
const wn = (
|
|
14154
14154
|
/** @type {const} */
|
|
14155
14155
|
[
|
|
14156
14156
|
"history",
|
|
@@ -14188,13 +14188,13 @@ class js {
|
|
|
14188
14188
|
let a;
|
|
14189
14189
|
t ? cr(t) ? a = { path: t } : typeof t == "string" || _0(t) ? a = { value: t } : a = t : a = {}, this.cwd = "cwd" in a ? "" : C0.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
14190
14190
|
let l = -1;
|
|
14191
|
-
for (; ++l <
|
|
14192
|
-
const r =
|
|
14191
|
+
for (; ++l < wn.length; ) {
|
|
14192
|
+
const r = wn[l];
|
|
14193
14193
|
r in a && a[r] !== void 0 && a[r] !== null && (this[r] = r === "history" ? [...a[r]] : a[r]);
|
|
14194
14194
|
}
|
|
14195
14195
|
let n;
|
|
14196
14196
|
for (n in a)
|
|
14197
|
-
|
|
14197
|
+
wn.includes(n) || (this[n] = a[n]);
|
|
14198
14198
|
}
|
|
14199
14199
|
/**
|
|
14200
14200
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -14218,7 +14218,7 @@ class js {
|
|
|
14218
14218
|
* Nothing.
|
|
14219
14219
|
*/
|
|
14220
14220
|
set basename(t) {
|
|
14221
|
-
|
|
14221
|
+
kn(t, "basename"), _n(t, "basename"), this.path = pt.join(this.dirname || "", t);
|
|
14222
14222
|
}
|
|
14223
14223
|
/**
|
|
14224
14224
|
* Get the parent path (example: `'~'`).
|
|
@@ -14264,7 +14264,7 @@ class js {
|
|
|
14264
14264
|
* Nothing.
|
|
14265
14265
|
*/
|
|
14266
14266
|
set extname(t) {
|
|
14267
|
-
if (
|
|
14267
|
+
if (_n(t, "extname"), nu(this.dirname, "extname"), t) {
|
|
14268
14268
|
if (t.codePointAt(0) !== 46)
|
|
14269
14269
|
throw new Error("`extname` must start with `.`");
|
|
14270
14270
|
if (t.includes(".", 1))
|
|
@@ -14294,7 +14294,7 @@ class js {
|
|
|
14294
14294
|
* Nothing.
|
|
14295
14295
|
*/
|
|
14296
14296
|
set path(t) {
|
|
14297
|
-
cr(t) && (t = S0(t)),
|
|
14297
|
+
cr(t) && (t = S0(t)), kn(t, "path"), this.path !== t && this.history.push(t);
|
|
14298
14298
|
}
|
|
14299
14299
|
/**
|
|
14300
14300
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -14318,7 +14318,7 @@ class js {
|
|
|
14318
14318
|
* Nothing.
|
|
14319
14319
|
*/
|
|
14320
14320
|
set stem(t) {
|
|
14321
|
-
|
|
14321
|
+
kn(t, "stem"), _n(t, "stem"), this.path = pt.join(this.dirname || "", t + (this.extname || ""));
|
|
14322
14322
|
}
|
|
14323
14323
|
// Normal prototypal methods.
|
|
14324
14324
|
/**
|
|
@@ -14531,13 +14531,13 @@ class js {
|
|
|
14531
14531
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
14532
14532
|
}
|
|
14533
14533
|
}
|
|
14534
|
-
function
|
|
14534
|
+
function _n(e, t) {
|
|
14535
14535
|
if (e && e.includes(pt.sep))
|
|
14536
14536
|
throw new Error(
|
|
14537
14537
|
"`" + t + "` cannot be a path: did not expect `" + pt.sep + "`"
|
|
14538
14538
|
);
|
|
14539
14539
|
}
|
|
14540
|
-
function
|
|
14540
|
+
function kn(e, t) {
|
|
14541
14541
|
if (!e)
|
|
14542
14542
|
throw new Error("`" + t + "` cannot be empty");
|
|
14543
14543
|
}
|
|
@@ -14598,7 +14598,7 @@ class Mr extends k0 {
|
|
|
14598
14598
|
const l = this.attachers[a];
|
|
14599
14599
|
t.use(...l);
|
|
14600
14600
|
}
|
|
14601
|
-
return t.data(
|
|
14601
|
+
return t.data(Sn(!0, {}, this.namespace)), t;
|
|
14602
14602
|
}
|
|
14603
14603
|
/**
|
|
14604
14604
|
* Configure the processor with info available to all plugins.
|
|
@@ -14660,7 +14660,7 @@ class Mr extends k0 {
|
|
|
14660
14660
|
* the entire dataset when getting without key.
|
|
14661
14661
|
*/
|
|
14662
14662
|
data(t, a) {
|
|
14663
|
-
return typeof t == "string" ? arguments.length === 2 ? (
|
|
14663
|
+
return typeof t == "string" ? arguments.length === 2 ? (Ln("data", this.frozen), this.namespace[t] = a, this) : N0.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Ln("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
14664
14664
|
}
|
|
14665
14665
|
/**
|
|
14666
14666
|
* Freeze a processor.
|
|
@@ -14714,7 +14714,7 @@ class Mr extends k0 {
|
|
|
14714
14714
|
parse(t) {
|
|
14715
14715
|
this.freeze();
|
|
14716
14716
|
const a = El(t), l = this.parser || this.Parser;
|
|
14717
|
-
return
|
|
14717
|
+
return Nn("parse", l), l(String(a), a);
|
|
14718
14718
|
}
|
|
14719
14719
|
/**
|
|
14720
14720
|
* Process the given file as configured on the processor.
|
|
@@ -14760,7 +14760,7 @@ class Mr extends k0 {
|
|
|
14760
14760
|
*/
|
|
14761
14761
|
process(t, a) {
|
|
14762
14762
|
const l = this;
|
|
14763
|
-
return this.freeze(),
|
|
14763
|
+
return this.freeze(), Nn("process", this.parser || this.Parser), In("process", this.compiler || this.Compiler), a ? n(void 0, a) : new Promise(n);
|
|
14764
14764
|
function n(r, i) {
|
|
14765
14765
|
const u = El(t), s = (
|
|
14766
14766
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -14819,7 +14819,7 @@ class Mr extends k0 {
|
|
|
14819
14819
|
*/
|
|
14820
14820
|
processSync(t) {
|
|
14821
14821
|
let a = !1, l;
|
|
14822
|
-
return this.freeze(),
|
|
14822
|
+
return this.freeze(), Nn("processSync", this.parser || this.Parser), In("processSync", this.compiler || this.Compiler), this.process(t, n), iu("processSync", "process", a), l;
|
|
14823
14823
|
function n(r, i) {
|
|
14824
14824
|
a = !0, au(r), l = i;
|
|
14825
14825
|
}
|
|
@@ -14934,7 +14934,7 @@ class Mr extends k0 {
|
|
|
14934
14934
|
stringify(t, a) {
|
|
14935
14935
|
this.freeze();
|
|
14936
14936
|
const l = El(a), n = this.compiler || this.Compiler;
|
|
14937
|
-
return
|
|
14937
|
+
return In("stringify", n), ru(t), n(t, l);
|
|
14938
14938
|
}
|
|
14939
14939
|
/**
|
|
14940
14940
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -14995,7 +14995,7 @@ class Mr extends k0 {
|
|
|
14995
14995
|
*/
|
|
14996
14996
|
use(t, ...a) {
|
|
14997
14997
|
const l = this.attachers, n = this.namespace;
|
|
14998
|
-
if (
|
|
14998
|
+
if (Ln("use", this.frozen), t != null) if (typeof t == "function")
|
|
14999
14999
|
s(t, a);
|
|
15000
15000
|
else if (typeof t == "object")
|
|
15001
15001
|
Array.isArray(t) ? u(t) : i(t);
|
|
@@ -15022,7 +15022,7 @@ class Mr extends k0 {
|
|
|
15022
15022
|
throw new Error(
|
|
15023
15023
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
15024
15024
|
);
|
|
15025
|
-
u(o.plugins), o.settings && (n.settings =
|
|
15025
|
+
u(o.plugins), o.settings && (n.settings = Sn(!0, n.settings, o.settings));
|
|
15026
15026
|
}
|
|
15027
15027
|
function u(o) {
|
|
15028
15028
|
let c = -1;
|
|
@@ -15046,21 +15046,21 @@ class Mr extends k0 {
|
|
|
15046
15046
|
else if (c.length > 0) {
|
|
15047
15047
|
let [f, ...y] = c;
|
|
15048
15048
|
const E = l[h][1];
|
|
15049
|
-
or(E) && or(f) && (f =
|
|
15049
|
+
or(E) && or(f) && (f = Sn(!0, E, f)), l[h] = [o, f, ...y];
|
|
15050
15050
|
}
|
|
15051
15051
|
}
|
|
15052
15052
|
}
|
|
15053
15053
|
}
|
|
15054
15054
|
const I0 = new Mr().freeze();
|
|
15055
|
-
function
|
|
15055
|
+
function Nn(e, t) {
|
|
15056
15056
|
if (typeof t != "function")
|
|
15057
15057
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
15058
15058
|
}
|
|
15059
|
-
function
|
|
15059
|
+
function In(e, t) {
|
|
15060
15060
|
if (typeof t != "function")
|
|
15061
15061
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
15062
15062
|
}
|
|
15063
|
-
function
|
|
15063
|
+
function Ln(e, t) {
|
|
15064
15064
|
if (t)
|
|
15065
15065
|
throw new Error(
|
|
15066
15066
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
@@ -15122,7 +15122,7 @@ const P0 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
15122
15122
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
15123
15123
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
15124
15124
|
];
|
|
15125
|
-
function
|
|
15125
|
+
function On(e) {
|
|
15126
15126
|
const t = B0(e), a = F0(e);
|
|
15127
15127
|
return H0(t.runSync(t.parse(a), a), e);
|
|
15128
15128
|
}
|
|
@@ -15138,8 +15138,8 @@ function H0(e, t) {
|
|
|
15138
15138
|
const a = t.allowedElements, l = t.allowElement, n = t.components, r = t.disallowedElements, i = t.skipHtml, u = t.unwrapDisallowed, s = t.urlTransform || $0;
|
|
15139
15139
|
for (const c of R0)
|
|
15140
15140
|
Object.hasOwn(t, c.from) && ("" + c.from + (c.to ? "use `" + c.to + "` instead" : "remove it") + P0 + c.id, void 0);
|
|
15141
|
-
return
|
|
15142
|
-
Fragment:
|
|
15141
|
+
return Yl(e, o), Zp(e, {
|
|
15142
|
+
Fragment: $l,
|
|
15143
15143
|
components: n,
|
|
15144
15144
|
ignoreInvalidStyle: !0,
|
|
15145
15145
|
jsx: V,
|
|
@@ -15152,9 +15152,9 @@ function H0(e, t) {
|
|
|
15152
15152
|
return i ? h.children.splice(d, 1) : h.children[d] = { type: "text", value: c.value }, d;
|
|
15153
15153
|
if (c.type === "element") {
|
|
15154
15154
|
let f;
|
|
15155
|
-
for (f in
|
|
15156
|
-
if (Object.hasOwn(
|
|
15157
|
-
const y = c.properties[f], E =
|
|
15155
|
+
for (f in Tn)
|
|
15156
|
+
if (Object.hasOwn(Tn, f) && Object.hasOwn(c.properties, f)) {
|
|
15157
|
+
const y = c.properties[f], E = Tn[f];
|
|
15158
15158
|
(E === null || E.includes(c.tagName)) && (c.properties[f] = s(String(y || ""), f, c));
|
|
15159
15159
|
}
|
|
15160
15160
|
}
|
|
@@ -15241,7 +15241,7 @@ function q0(e) {
|
|
|
15241
15241
|
return !!("children" in e && Array.isArray(e.children));
|
|
15242
15242
|
}
|
|
15243
15243
|
function z0(e, t, a, l) {
|
|
15244
|
-
const n =
|
|
15244
|
+
const n = Ul(e, a);
|
|
15245
15245
|
let r;
|
|
15246
15246
|
if (l != null) {
|
|
15247
15247
|
if (typeof l == "number") {
|
|
@@ -15493,7 +15493,7 @@ function Z0(e, t, a) {
|
|
|
15493
15493
|
let i;
|
|
15494
15494
|
if (a.attrs)
|
|
15495
15495
|
for (i in a.attrs)
|
|
15496
|
-
Xs.call(a.attrs, i) && (r[
|
|
15496
|
+
Xs.call(a.attrs, i) && (r[Ul(e.schema, i).property] = la(
|
|
15497
15497
|
a.attrs[i]
|
|
15498
15498
|
));
|
|
15499
15499
|
a.startTag;
|
|
@@ -15606,7 +15606,7 @@ function sv(e, t) {
|
|
|
15606
15606
|
return u.childNodes = Br(e.children, u, l), da(e, u), e.tagName === "template" && e.content && (u.content = nv(e.content, l)), u;
|
|
15607
15607
|
}
|
|
15608
15608
|
function ov(e, t, a) {
|
|
15609
|
-
const l =
|
|
15609
|
+
const l = Ul(e, t);
|
|
15610
15610
|
if (a === !1 || a === null || a === void 0 || typeof a == "number" && Number.isNaN(a) || !a && l.boolean)
|
|
15611
15611
|
return;
|
|
15612
15612
|
Array.isArray(a) && (a = l.commaSeparated ? fs(a) : ys(a));
|
|
@@ -18276,7 +18276,7 @@ const ro = /* @__PURE__ */ new Set([p.DD, p.DT, p.LI, p.OPTGROUP, p.OPTION, p.P,
|
|
|
18276
18276
|
p.TH,
|
|
18277
18277
|
p.THEAD,
|
|
18278
18278
|
p.TR
|
|
18279
|
-
]),
|
|
18279
|
+
]), Bl = /* @__PURE__ */ new Set([
|
|
18280
18280
|
p.APPLET,
|
|
18281
18281
|
p.CAPTION,
|
|
18282
18282
|
p.HTML,
|
|
@@ -18286,7 +18286,7 @@ const ro = /* @__PURE__ */ new Set([p.DD, p.DT, p.LI, p.OPTGROUP, p.OPTION, p.P,
|
|
|
18286
18286
|
p.TD,
|
|
18287
18287
|
p.TEMPLATE,
|
|
18288
18288
|
p.TH
|
|
18289
|
-
]), Lv = /* @__PURE__ */ new Set([...
|
|
18289
|
+
]), Lv = /* @__PURE__ */ new Set([...Bl, p.OL, p.UL]), Ov = /* @__PURE__ */ new Set([...Bl, p.BUTTON]), vu = /* @__PURE__ */ new Set([p.ANNOTATION_XML, p.MI, p.MN, p.MO, p.MS, p.MTEXT]), gu = /* @__PURE__ */ new Set([p.DESC, p.FOREIGN_OBJECT, p.TITLE]), Dv = /* @__PURE__ */ new Set([p.TR, p.TEMPLATE, p.HTML]), Pv = /* @__PURE__ */ new Set([p.TBODY, p.TFOOT, p.THEAD, p.TEMPLATE, p.HTML]), Mv = /* @__PURE__ */ new Set([p.TABLE, p.TEMPLATE, p.HTML]), Rv = /* @__PURE__ */ new Set([p.TD, p.TH]);
|
|
18290
18290
|
class Bv {
|
|
18291
18291
|
get currentTmplContentOrNode() {
|
|
18292
18292
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
@@ -18415,7 +18415,7 @@ class Bv {
|
|
|
18415
18415
|
return !0;
|
|
18416
18416
|
}
|
|
18417
18417
|
hasInScope(t) {
|
|
18418
|
-
return this.hasInDynamicScope(t,
|
|
18418
|
+
return this.hasInDynamicScope(t, Bl);
|
|
18419
18419
|
}
|
|
18420
18420
|
hasInListItemScope(t) {
|
|
18421
18421
|
return this.hasInDynamicScope(t, Lv);
|
|
@@ -18430,7 +18430,7 @@ class Bv {
|
|
|
18430
18430
|
case ee.HTML: {
|
|
18431
18431
|
if (pr.has(a))
|
|
18432
18432
|
return !0;
|
|
18433
|
-
if (
|
|
18433
|
+
if (Bl.has(a))
|
|
18434
18434
|
return !1;
|
|
18435
18435
|
break;
|
|
18436
18436
|
}
|
|
@@ -18502,7 +18502,7 @@ class Bv {
|
|
|
18502
18502
|
this.pop();
|
|
18503
18503
|
}
|
|
18504
18504
|
}
|
|
18505
|
-
const
|
|
18505
|
+
const Dn = 3;
|
|
18506
18506
|
var ht;
|
|
18507
18507
|
(function(e) {
|
|
18508
18508
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
@@ -18530,16 +18530,16 @@ class Fv {
|
|
|
18530
18530
|
return l;
|
|
18531
18531
|
}
|
|
18532
18532
|
_ensureNoahArkCondition(t) {
|
|
18533
|
-
if (this.entries.length <
|
|
18533
|
+
if (this.entries.length < Dn)
|
|
18534
18534
|
return;
|
|
18535
18535
|
const a = this.treeAdapter.getAttrList(t), l = this._getNoahArkConditionCandidates(t, a);
|
|
18536
|
-
if (l.length <
|
|
18536
|
+
if (l.length < Dn)
|
|
18537
18537
|
return;
|
|
18538
18538
|
const n = new Map(a.map((i) => [i.name, i.value]));
|
|
18539
18539
|
let r = 0;
|
|
18540
18540
|
for (let i = 0; i < l.length; i++) {
|
|
18541
18541
|
const u = l[i];
|
|
18542
|
-
u.attrs.every((s) => n.get(s.name) === s.value) && (r += 1, r >=
|
|
18542
|
+
u.attrs.every((s) => n.get(s.name) === s.value) && (r += 1, r >= Dn && this.entries.splice(u.idx, 1));
|
|
18543
18543
|
}
|
|
18544
18544
|
}
|
|
18545
18545
|
//Mutations
|
|
@@ -19496,7 +19496,7 @@ class Cu {
|
|
|
19496
19496
|
case U.IN_TABLE:
|
|
19497
19497
|
case U.IN_TABLE_BODY:
|
|
19498
19498
|
case U.IN_ROW: {
|
|
19499
|
-
|
|
19499
|
+
Pn(this, t);
|
|
19500
19500
|
break;
|
|
19501
19501
|
}
|
|
19502
19502
|
case U.IN_TABLE_TEXT: {
|
|
@@ -19504,11 +19504,11 @@ class Cu {
|
|
|
19504
19504
|
break;
|
|
19505
19505
|
}
|
|
19506
19506
|
case U.IN_COLUMN_GROUP: {
|
|
19507
|
-
|
|
19507
|
+
Fl(this, t);
|
|
19508
19508
|
break;
|
|
19509
19509
|
}
|
|
19510
19510
|
case U.AFTER_BODY: {
|
|
19511
|
-
|
|
19511
|
+
Hl(this, t);
|
|
19512
19512
|
break;
|
|
19513
19513
|
}
|
|
19514
19514
|
case U.AFTER_AFTER_BODY: {
|
|
@@ -19555,15 +19555,15 @@ class Cu {
|
|
|
19555
19555
|
case U.IN_TABLE:
|
|
19556
19556
|
case U.IN_TABLE_BODY:
|
|
19557
19557
|
case U.IN_ROW: {
|
|
19558
|
-
|
|
19558
|
+
Pn(this, t);
|
|
19559
19559
|
break;
|
|
19560
19560
|
}
|
|
19561
19561
|
case U.IN_COLUMN_GROUP: {
|
|
19562
|
-
|
|
19562
|
+
Fl(this, t);
|
|
19563
19563
|
break;
|
|
19564
19564
|
}
|
|
19565
19565
|
case U.AFTER_BODY: {
|
|
19566
|
-
|
|
19566
|
+
Hl(this, t);
|
|
19567
19567
|
break;
|
|
19568
19568
|
}
|
|
19569
19569
|
case U.AFTER_AFTER_BODY: {
|
|
@@ -19701,11 +19701,11 @@ class Cu {
|
|
|
19701
19701
|
break;
|
|
19702
19702
|
}
|
|
19703
19703
|
case U.IN_TABLE_BODY: {
|
|
19704
|
-
|
|
19704
|
+
Kl(this, t);
|
|
19705
19705
|
break;
|
|
19706
19706
|
}
|
|
19707
19707
|
case U.IN_ROW: {
|
|
19708
|
-
|
|
19708
|
+
Xl(this, t);
|
|
19709
19709
|
break;
|
|
19710
19710
|
}
|
|
19711
19711
|
case U.IN_CELL: {
|
|
@@ -19778,7 +19778,7 @@ class Cu {
|
|
|
19778
19778
|
break;
|
|
19779
19779
|
}
|
|
19780
19780
|
case U.IN_BODY: {
|
|
19781
|
-
|
|
19781
|
+
jl(this, t);
|
|
19782
19782
|
break;
|
|
19783
19783
|
}
|
|
19784
19784
|
case U.TEXT: {
|
|
@@ -19941,7 +19941,7 @@ class Cu {
|
|
|
19941
19941
|
case U.IN_TABLE:
|
|
19942
19942
|
case U.IN_TABLE_BODY:
|
|
19943
19943
|
case U.IN_ROW: {
|
|
19944
|
-
|
|
19944
|
+
Pn(this, t);
|
|
19945
19945
|
break;
|
|
19946
19946
|
}
|
|
19947
19947
|
case U.IN_TABLE_TEXT: {
|
|
@@ -20229,9 +20229,9 @@ function Ag(e, t) {
|
|
|
20229
20229
|
}
|
|
20230
20230
|
}
|
|
20231
20231
|
function qa(e, t) {
|
|
20232
|
-
e._insertFakeElement(G.BODY, p.BODY), e.insertionMode = U.IN_BODY,
|
|
20232
|
+
e._insertFakeElement(G.BODY, p.BODY), e.insertionMode = U.IN_BODY, Wl(e, t);
|
|
20233
20233
|
}
|
|
20234
|
-
function
|
|
20234
|
+
function Wl(e, t) {
|
|
20235
20235
|
switch (t.type) {
|
|
20236
20236
|
case Ae.CHARACTER: {
|
|
20237
20237
|
ho(e, t);
|
|
@@ -20250,7 +20250,7 @@ function jl(e, t) {
|
|
|
20250
20250
|
break;
|
|
20251
20251
|
}
|
|
20252
20252
|
case Ae.END_TAG: {
|
|
20253
|
-
|
|
20253
|
+
jl(e, t);
|
|
20254
20254
|
break;
|
|
20255
20255
|
}
|
|
20256
20256
|
case Ae.EOF: {
|
|
@@ -20636,7 +20636,7 @@ function vo(e, t) {
|
|
|
20636
20636
|
break;
|
|
20637
20637
|
}
|
|
20638
20638
|
}
|
|
20639
|
-
function
|
|
20639
|
+
function jl(e, t) {
|
|
20640
20640
|
switch (t.tagID) {
|
|
20641
20641
|
case p.A:
|
|
20642
20642
|
case p.B:
|
|
@@ -20747,7 +20747,7 @@ function oE(e, t) {
|
|
|
20747
20747
|
function cE(e, t) {
|
|
20748
20748
|
e._err(t, j.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
|
|
20749
20749
|
}
|
|
20750
|
-
function
|
|
20750
|
+
function Pn(e, t) {
|
|
20751
20751
|
if (e.openElements.currentTagId !== void 0 && fo.has(e.openElements.currentTagId))
|
|
20752
20752
|
switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = U.IN_TABLE_TEXT, t.type) {
|
|
20753
20753
|
case Ae.CHARACTER: {
|
|
@@ -20775,7 +20775,7 @@ function hE(e, t) {
|
|
|
20775
20775
|
e.openElements.clearBackToTableContext(), e._insertElement(t, ee.HTML), e.insertionMode = U.IN_TABLE_BODY;
|
|
20776
20776
|
}
|
|
20777
20777
|
function bE(e, t) {
|
|
20778
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(G.TBODY, p.TBODY), e.insertionMode = U.IN_TABLE_BODY,
|
|
20778
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(G.TBODY, p.TBODY), e.insertionMode = U.IN_TABLE_BODY, Kl(e, t);
|
|
20779
20779
|
}
|
|
20780
20780
|
function mE(e, t) {
|
|
20781
20781
|
e.openElements.hasInTableScope(p.TABLE) && (e.openElements.popUntilTagNamePopped(p.TABLE), e._resetInsertionMode(), e._processStartTag(t));
|
|
@@ -20862,7 +20862,7 @@ function Ja(e, t) {
|
|
|
20862
20862
|
}
|
|
20863
20863
|
function nl(e, t) {
|
|
20864
20864
|
const a = e.fosterParentingEnabled;
|
|
20865
|
-
e.fosterParentingEnabled = !0,
|
|
20865
|
+
e.fosterParentingEnabled = !0, Wl(e, t), e.fosterParentingEnabled = a;
|
|
20866
20866
|
}
|
|
20867
20867
|
function Eo(e, t) {
|
|
20868
20868
|
e.pendingCharacterTokens.push(t);
|
|
@@ -20905,7 +20905,7 @@ function yE(e, t) {
|
|
|
20905
20905
|
case p.TR:
|
|
20906
20906
|
break;
|
|
20907
20907
|
default:
|
|
20908
|
-
|
|
20908
|
+
jl(e, t);
|
|
20909
20909
|
}
|
|
20910
20910
|
}
|
|
20911
20911
|
function Ur(e, t) {
|
|
@@ -20923,7 +20923,7 @@ function Ur(e, t) {
|
|
|
20923
20923
|
break;
|
|
20924
20924
|
}
|
|
20925
20925
|
default:
|
|
20926
|
-
|
|
20926
|
+
Fl(e, t);
|
|
20927
20927
|
}
|
|
20928
20928
|
}
|
|
20929
20929
|
function TE(e, t) {
|
|
@@ -20939,13 +20939,13 @@ function TE(e, t) {
|
|
|
20939
20939
|
case p.COL:
|
|
20940
20940
|
break;
|
|
20941
20941
|
default:
|
|
20942
|
-
|
|
20942
|
+
Fl(e, t);
|
|
20943
20943
|
}
|
|
20944
20944
|
}
|
|
20945
|
-
function
|
|
20945
|
+
function Fl(e, t) {
|
|
20946
20946
|
e.openElements.currentTagId === p.COLGROUP && (e.openElements.pop(), e.insertionMode = U.IN_TABLE, e._processToken(t));
|
|
20947
20947
|
}
|
|
20948
|
-
function
|
|
20948
|
+
function Kl(e, t) {
|
|
20949
20949
|
switch (t.tagID) {
|
|
20950
20950
|
case p.TR: {
|
|
20951
20951
|
e.openElements.clearBackToTableBodyContext(), e._insertElement(t, ee.HTML), e.insertionMode = U.IN_ROW;
|
|
@@ -20953,7 +20953,7 @@ function Xl(e, t) {
|
|
|
20953
20953
|
}
|
|
20954
20954
|
case p.TH:
|
|
20955
20955
|
case p.TD: {
|
|
20956
|
-
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(G.TR, p.TR), e.insertionMode = U.IN_ROW,
|
|
20956
|
+
e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(G.TR, p.TR), e.insertionMode = U.IN_ROW, Xl(e, t);
|
|
20957
20957
|
break;
|
|
20958
20958
|
}
|
|
20959
20959
|
case p.CAPTION:
|
|
@@ -20995,7 +20995,7 @@ function br(e, t) {
|
|
|
20995
20995
|
Ja(e, t);
|
|
20996
20996
|
}
|
|
20997
20997
|
}
|
|
20998
|
-
function
|
|
20998
|
+
function Xl(e, t) {
|
|
20999
20999
|
switch (t.tagID) {
|
|
21000
21000
|
case p.TH:
|
|
21001
21001
|
case p.TD: {
|
|
@@ -21009,7 +21009,7 @@ function Ql(e, t) {
|
|
|
21009
21009
|
case p.TFOOT:
|
|
21010
21010
|
case p.THEAD:
|
|
21011
21011
|
case p.TR: {
|
|
21012
|
-
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = U.IN_TABLE_BODY,
|
|
21012
|
+
e.openElements.hasInTableScope(p.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = U.IN_TABLE_BODY, Kl(e, t));
|
|
21013
21013
|
break;
|
|
21014
21014
|
}
|
|
21015
21015
|
default:
|
|
@@ -21046,7 +21046,7 @@ function xo(e, t) {
|
|
|
21046
21046
|
}
|
|
21047
21047
|
function xE(e, t) {
|
|
21048
21048
|
const a = t.tagID;
|
|
21049
|
-
To.has(a) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(),
|
|
21049
|
+
To.has(a) ? (e.openElements.hasInTableScope(p.TD) || e.openElements.hasInTableScope(p.TH)) && (e._closeTableCell(), Xl(e, t)) : We(e, t);
|
|
21050
21050
|
}
|
|
21051
21051
|
function CE(e, t) {
|
|
21052
21052
|
const a = t.tagID;
|
|
@@ -21071,7 +21071,7 @@ function CE(e, t) {
|
|
|
21071
21071
|
case p.HTML:
|
|
21072
21072
|
break;
|
|
21073
21073
|
default:
|
|
21074
|
-
|
|
21074
|
+
jl(e, t);
|
|
21075
21075
|
}
|
|
21076
21076
|
}
|
|
21077
21077
|
function Co(e, t) {
|
|
@@ -21164,12 +21164,12 @@ function wE(e, t) {
|
|
|
21164
21164
|
break;
|
|
21165
21165
|
}
|
|
21166
21166
|
case p.TR: {
|
|
21167
|
-
e.tmplInsertionModeStack[0] = U.IN_TABLE_BODY, e.insertionMode = U.IN_TABLE_BODY,
|
|
21167
|
+
e.tmplInsertionModeStack[0] = U.IN_TABLE_BODY, e.insertionMode = U.IN_TABLE_BODY, Kl(e, t);
|
|
21168
21168
|
break;
|
|
21169
21169
|
}
|
|
21170
21170
|
case p.TD:
|
|
21171
21171
|
case p.TH: {
|
|
21172
|
-
e.tmplInsertionModeStack[0] = U.IN_ROW, e.insertionMode = U.IN_ROW,
|
|
21172
|
+
e.tmplInsertionModeStack[0] = U.IN_ROW, e.insertionMode = U.IN_ROW, Xl(e, t);
|
|
21173
21173
|
break;
|
|
21174
21174
|
}
|
|
21175
21175
|
default:
|
|
@@ -21183,7 +21183,7 @@ function So(e, t) {
|
|
|
21183
21183
|
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(p.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : $r(e, t);
|
|
21184
21184
|
}
|
|
21185
21185
|
function kE(e, t) {
|
|
21186
|
-
t.tagID === p.HTML ? We(e, t) :
|
|
21186
|
+
t.tagID === p.HTML ? We(e, t) : Hl(e, t);
|
|
21187
21187
|
}
|
|
21188
21188
|
function wo(e, t) {
|
|
21189
21189
|
var a;
|
|
@@ -21194,10 +21194,10 @@ function wo(e, t) {
|
|
|
21194
21194
|
l && !(!((a = e.treeAdapter.getNodeSourceCodeLocation(l)) === null || a === void 0) && a.endTag) && e._setEndLocation(l, t);
|
|
21195
21195
|
}
|
|
21196
21196
|
} else
|
|
21197
|
-
|
|
21197
|
+
Hl(e, t);
|
|
21198
21198
|
}
|
|
21199
|
-
function
|
|
21200
|
-
e.insertionMode = U.IN_BODY,
|
|
21199
|
+
function Hl(e, t) {
|
|
21200
|
+
e.insertionMode = U.IN_BODY, Wl(e, t);
|
|
21201
21201
|
}
|
|
21202
21202
|
function NE(e, t) {
|
|
21203
21203
|
switch (t.tagID) {
|
|
@@ -21241,7 +21241,7 @@ function DE(e, t) {
|
|
|
21241
21241
|
t.tagID === p.HTML ? We(e, t) : wl(e, t);
|
|
21242
21242
|
}
|
|
21243
21243
|
function wl(e, t) {
|
|
21244
|
-
e.insertionMode = U.IN_BODY,
|
|
21244
|
+
e.insertionMode = U.IN_BODY, Wl(e, t);
|
|
21245
21245
|
}
|
|
21246
21246
|
function PE(e, t) {
|
|
21247
21247
|
switch (t.tagID) {
|
|
@@ -21316,7 +21316,7 @@ function ko(e, t) {
|
|
|
21316
21316
|
// To do: support `space`?
|
|
21317
21317
|
file: n.options.file
|
|
21318
21318
|
});
|
|
21319
|
-
return n.stitches &&
|
|
21319
|
+
return n.stitches && Yl(i, "comment", function(u, s, o) {
|
|
21320
21320
|
const c = (
|
|
21321
21321
|
/** @type {Stitch} */
|
|
21322
21322
|
/** @type {unknown} */
|
|
@@ -21449,7 +21449,7 @@ function jE(e, t) {
|
|
|
21449
21449
|
function KE(e, t) {
|
|
21450
21450
|
const a = e.tagName.toLowerCase();
|
|
21451
21451
|
if (!t.parser.tokenizer.inForeignNode && cv.includes(a) || t.parser.tokenizer.state === Be.PLAINTEXT) return;
|
|
21452
|
-
pa(t,
|
|
21452
|
+
pa(t, ql(e));
|
|
21453
21453
|
const l = {
|
|
21454
21454
|
type: Ae.END_TAG,
|
|
21455
21455
|
tagName: a,
|
|
@@ -21474,7 +21474,7 @@ function rl(e) {
|
|
|
21474
21474
|
line: void 0,
|
|
21475
21475
|
column: void 0,
|
|
21476
21476
|
offset: void 0
|
|
21477
|
-
}, a =
|
|
21477
|
+
}, a = ql(e) || {
|
|
21478
21478
|
line: void 0,
|
|
21479
21479
|
column: void 0,
|
|
21480
21480
|
offset: void 0
|
|
@@ -21491,7 +21491,7 @@ function rl(e) {
|
|
|
21491
21491
|
function QE(e) {
|
|
21492
21492
|
return "children" in e ? jt({ ...e, children: [] }) : jt(e);
|
|
21493
21493
|
}
|
|
21494
|
-
function
|
|
21494
|
+
function Mn(e) {
|
|
21495
21495
|
return function(t, a) {
|
|
21496
21496
|
return (
|
|
21497
21497
|
/** @type {Root} */
|
|
@@ -21877,7 +21877,7 @@ function ku(e, t) {
|
|
|
21877
21877
|
if (t.length > 4 && t.slice(0, 4).toLowerCase() === "data")
|
|
21878
21878
|
return a;
|
|
21879
21879
|
}
|
|
21880
|
-
function
|
|
21880
|
+
function Rn(e) {
|
|
21881
21881
|
return function(t) {
|
|
21882
21882
|
return (
|
|
21883
21883
|
/** @type {Root} */
|
|
@@ -22221,36 +22221,36 @@ function S1() {
|
|
|
22221
22221
|
canContainEols: ["textDirective"],
|
|
22222
22222
|
enter: {
|
|
22223
22223
|
directiveContainer: _1,
|
|
22224
|
-
directiveContainerAttributes:
|
|
22224
|
+
directiveContainerAttributes: Fn,
|
|
22225
22225
|
directiveContainerLabel: I1,
|
|
22226
22226
|
directiveLeaf: k1,
|
|
22227
|
-
directiveLeafAttributes:
|
|
22227
|
+
directiveLeafAttributes: Fn,
|
|
22228
22228
|
directiveText: N1,
|
|
22229
|
-
directiveTextAttributes:
|
|
22229
|
+
directiveTextAttributes: Fn
|
|
22230
22230
|
},
|
|
22231
22231
|
exit: {
|
|
22232
|
-
directiveContainer:
|
|
22233
|
-
directiveContainerAttributeClassValue:
|
|
22234
|
-
directiveContainerAttributeIdValue:
|
|
22235
|
-
directiveContainerAttributeName:
|
|
22236
|
-
directiveContainerAttributeValue:
|
|
22237
|
-
directiveContainerAttributes:
|
|
22232
|
+
directiveContainer: Vn,
|
|
22233
|
+
directiveContainerAttributeClassValue: $n,
|
|
22234
|
+
directiveContainerAttributeIdValue: Hn,
|
|
22235
|
+
directiveContainerAttributeName: qn,
|
|
22236
|
+
directiveContainerAttributeValue: Un,
|
|
22237
|
+
directiveContainerAttributes: zn,
|
|
22238
22238
|
directiveContainerLabel: L1,
|
|
22239
|
-
directiveContainerName:
|
|
22240
|
-
directiveLeaf:
|
|
22241
|
-
directiveLeafAttributeClassValue:
|
|
22242
|
-
directiveLeafAttributeIdValue:
|
|
22243
|
-
directiveLeafAttributeName:
|
|
22244
|
-
directiveLeafAttributeValue:
|
|
22245
|
-
directiveLeafAttributes:
|
|
22246
|
-
directiveLeafName:
|
|
22247
|
-
directiveText:
|
|
22248
|
-
directiveTextAttributeClassValue:
|
|
22249
|
-
directiveTextAttributeIdValue:
|
|
22250
|
-
directiveTextAttributeName:
|
|
22251
|
-
directiveTextAttributeValue:
|
|
22252
|
-
directiveTextAttributes:
|
|
22253
|
-
directiveTextName:
|
|
22239
|
+
directiveContainerName: Bn,
|
|
22240
|
+
directiveLeaf: Vn,
|
|
22241
|
+
directiveLeafAttributeClassValue: $n,
|
|
22242
|
+
directiveLeafAttributeIdValue: Hn,
|
|
22243
|
+
directiveLeafAttributeName: qn,
|
|
22244
|
+
directiveLeafAttributeValue: Un,
|
|
22245
|
+
directiveLeafAttributes: zn,
|
|
22246
|
+
directiveLeafName: Bn,
|
|
22247
|
+
directiveText: Vn,
|
|
22248
|
+
directiveTextAttributeClassValue: $n,
|
|
22249
|
+
directiveTextAttributeIdValue: Hn,
|
|
22250
|
+
directiveTextAttributeName: qn,
|
|
22251
|
+
directiveTextAttributeValue: Un,
|
|
22252
|
+
directiveTextAttributes: zn,
|
|
22253
|
+
directiveTextName: Bn
|
|
22254
22254
|
}
|
|
22255
22255
|
};
|
|
22256
22256
|
}
|
|
@@ -22352,7 +22352,7 @@ function N1(e) {
|
|
|
22352
22352
|
function zr(e, t) {
|
|
22353
22353
|
this.enter({ type: e, name: "", attributes: {}, children: [] }, t);
|
|
22354
22354
|
}
|
|
22355
|
-
function
|
|
22355
|
+
function Bn(e) {
|
|
22356
22356
|
const t = this.stack[this.stack.length - 1];
|
|
22357
22357
|
t.type === "containerDirective" || t.type === "leafDirective" || t.type, t.name = this.sliceSerialize(e);
|
|
22358
22358
|
}
|
|
@@ -22365,31 +22365,31 @@ function I1(e) {
|
|
|
22365
22365
|
function L1(e) {
|
|
22366
22366
|
this.exit(e);
|
|
22367
22367
|
}
|
|
22368
|
-
function
|
|
22368
|
+
function Fn() {
|
|
22369
22369
|
this.data.directiveAttributes = [], this.buffer();
|
|
22370
22370
|
}
|
|
22371
|
-
function
|
|
22371
|
+
function Hn(e) {
|
|
22372
22372
|
this.data.directiveAttributes.push([
|
|
22373
22373
|
"id",
|
|
22374
22374
|
qr(this.sliceSerialize(e), { attribute: !0 })
|
|
22375
22375
|
]);
|
|
22376
22376
|
}
|
|
22377
|
-
function
|
|
22377
|
+
function $n(e) {
|
|
22378
22378
|
this.data.directiveAttributes.push([
|
|
22379
22379
|
"class",
|
|
22380
22380
|
qr(this.sliceSerialize(e), { attribute: !0 })
|
|
22381
22381
|
]);
|
|
22382
22382
|
}
|
|
22383
|
-
function
|
|
22383
|
+
function Un(e) {
|
|
22384
22384
|
const t = this.data.directiveAttributes;
|
|
22385
22385
|
t[t.length - 1][1] = qr(this.sliceSerialize(e), {
|
|
22386
22386
|
attribute: !0
|
|
22387
22387
|
});
|
|
22388
22388
|
}
|
|
22389
|
-
function
|
|
22389
|
+
function qn(e) {
|
|
22390
22390
|
this.data.directiveAttributes.push([this.sliceSerialize(e), ""]);
|
|
22391
22391
|
}
|
|
22392
|
-
function
|
|
22392
|
+
function zn() {
|
|
22393
22393
|
const e = this.data.directiveAttributes, t = {};
|
|
22394
22394
|
let a = -1;
|
|
22395
22395
|
for (; ++a < e.length; ) {
|
|
@@ -22400,7 +22400,7 @@ function Vn() {
|
|
|
22400
22400
|
const l = this.stack[this.stack.length - 1];
|
|
22401
22401
|
l.type === "containerDirective" || l.type === "leafDirective" || l.type, l.attributes = t;
|
|
22402
22402
|
}
|
|
22403
|
-
function
|
|
22403
|
+
function Vn(e) {
|
|
22404
22404
|
this.exit(e);
|
|
22405
22405
|
}
|
|
22406
22406
|
function O1() {
|
|
@@ -22427,7 +22427,7 @@ function Vr(e, t, a, l, n, r, i, u, s, o, c, d, h, f, y) {
|
|
|
22427
22427
|
return e.enter(l), e.enter(n), e.consume(T), e.exit(n), m;
|
|
22428
22428
|
}
|
|
22429
22429
|
function m(T) {
|
|
22430
|
-
return T === 35 ? (E = i, b(T)) : T === 46 ? (E = u, b(T)) : y && we(T) ? _e(e, m, "whitespace")(T) : !y && Re(T) ? St(e, m)(T) : T === null ||
|
|
22430
|
+
return T === 35 ? (E = i, b(T)) : T === 46 ? (E = u, b(T)) : y && we(T) ? _e(e, m, "whitespace")(T) : !y && Re(T) ? St(e, m)(T) : T === null || de(T) || Qa(T) || Xa(T) && T !== 45 && T !== 95 ? w(T) : (e.enter(r), e.enter(s), e.consume(T), S);
|
|
22431
22431
|
}
|
|
22432
22432
|
function b(T) {
|
|
22433
22433
|
const M = (
|
|
@@ -22458,13 +22458,13 @@ function Vr(e, t, a, l, n, r, i, u, s, o, c, d, h, f, y) {
|
|
|
22458
22458
|
return e.consume(T), C;
|
|
22459
22459
|
}
|
|
22460
22460
|
function S(T) {
|
|
22461
|
-
return T === null ||
|
|
22461
|
+
return T === null || de(T) || Qa(T) || Xa(T) && T !== 45 && T !== 46 && T !== 58 && T !== 95 ? (e.exit(s), y && we(T) ? _e(e, L, "whitespace")(T) : !y && Re(T) ? St(e, L)(T) : L(T)) : (e.consume(T), S);
|
|
22462
22462
|
}
|
|
22463
22463
|
function L(T) {
|
|
22464
22464
|
return T === 61 ? (e.enter(o), e.consume(T), e.exit(o), k) : (e.exit(r), m(T));
|
|
22465
22465
|
}
|
|
22466
22466
|
function k(T) {
|
|
22467
|
-
return T === null || T === 60 || T === 61 || T === 62 || T === 96 || T === 125 || y &&
|
|
22467
|
+
return T === null || T === 60 || T === 61 || T === 62 || T === 96 || T === 125 || y && de(T) ? a(T) : T === 34 || T === 39 ? (e.enter(c), e.enter(h), e.consume(T), e.exit(h), v = T, I) : y && we(T) ? _e(e, k, "whitespace")(T) : !y && Re(T) ? St(e, k)(T) : (e.enter(d), e.enter(f), e.consume(T), v = void 0, A);
|
|
22468
22468
|
}
|
|
22469
22469
|
function A(T) {
|
|
22470
22470
|
return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 62 || T === 96 ? a(T) : T === 125 || Re(T) ? (e.exit(f), e.exit(d), e.exit(r), m(T)) : (e.consume(T), A);
|
|
@@ -22473,10 +22473,10 @@ function Vr(e, t, a, l, n, r, i, u, s, o, c, d, h, f, y) {
|
|
|
22473
22473
|
return T === v ? (e.enter(h), e.consume(T), e.exit(h), e.exit(c), e.exit(r), O) : (e.enter(d), N(T));
|
|
22474
22474
|
}
|
|
22475
22475
|
function N(T) {
|
|
22476
|
-
return T === v ? (e.exit(d), I(T)) : T === null ? a(T) :
|
|
22476
|
+
return T === v ? (e.exit(d), I(T)) : T === null ? a(T) : de(T) ? y ? a(T) : St(e, N)(T) : (e.enter(f), e.consume(T), P);
|
|
22477
22477
|
}
|
|
22478
22478
|
function P(T) {
|
|
22479
|
-
return T === v || T === null ||
|
|
22479
|
+
return T === v || T === null || de(T) ? (e.exit(f), N(T)) : (e.consume(T), P);
|
|
22480
22480
|
}
|
|
22481
22481
|
function O(T) {
|
|
22482
22482
|
return T === 125 || Re(T) ? m(T) : w(T);
|
|
@@ -22505,7 +22505,7 @@ function Gr(e, t, a, l, n, r, i) {
|
|
|
22505
22505
|
return o && (o.next = g), o = g, f(v);
|
|
22506
22506
|
}
|
|
22507
22507
|
function f(v) {
|
|
22508
|
-
return v === null || u > 999 || v === 91 && ++s > 32 ? a(v) : v === 93 && !s-- ? (e.exit("chunkText"), E(v)) :
|
|
22508
|
+
return v === null || u > 999 || v === 91 && ++s > 32 ? a(v) : v === 93 && !s-- ? (e.exit("chunkText"), E(v)) : de(v) ? i ? a(v) : (e.consume(v), e.exit("chunkText"), h) : (e.consume(v), v === 92 ? y : f);
|
|
22509
22509
|
}
|
|
22510
22510
|
function y(v) {
|
|
22511
22511
|
return v === 91 || v === 92 || v === 93 ? (e.consume(v), u++, f) : f(v);
|
|
@@ -22518,10 +22518,10 @@ function Yr(e, t, a, l) {
|
|
|
22518
22518
|
const n = this;
|
|
22519
22519
|
return r;
|
|
22520
22520
|
function r(u) {
|
|
22521
|
-
return u === null ||
|
|
22521
|
+
return u === null || de(u) || Xa(u) || Qa(u) ? a(u) : (e.enter(l), e.consume(u), i);
|
|
22522
22522
|
}
|
|
22523
22523
|
function i(u) {
|
|
22524
|
-
return u === null ||
|
|
22524
|
+
return u === null || de(u) || Qa(u) || Xa(u) && u !== 45 && u !== 95 ? (e.exit(l), n.previous === 45 || n.previous === 95 ? a(u) : t(u)) : (e.consume(u), i);
|
|
22525
22525
|
}
|
|
22526
22526
|
}
|
|
22527
22527
|
const P1 = {
|
|
@@ -22557,10 +22557,10 @@ function B1(e, t, a) {
|
|
|
22557
22557
|
return _e(e, f, "whitespace")(A);
|
|
22558
22558
|
}
|
|
22559
22559
|
function f(A) {
|
|
22560
|
-
return e.exit("directiveContainerFence"), A === null ? L(A) :
|
|
22560
|
+
return e.exit("directiveContainerFence"), A === null ? L(A) : de(A) ? l.interrupt ? t(A) : e.attempt(Tl, y, L)(A) : a(A);
|
|
22561
22561
|
}
|
|
22562
22562
|
function y(A) {
|
|
22563
|
-
return A === null ? L(A) :
|
|
22563
|
+
return A === null ? L(A) : de(A) ? e.check(Tl, b, L)(A) : (e.enter("directiveContainerContent"), E(A));
|
|
22564
22564
|
}
|
|
22565
22565
|
function E(A) {
|
|
22566
22566
|
return e.attempt({
|
|
@@ -22569,14 +22569,14 @@ function B1(e, t, a) {
|
|
|
22569
22569
|
}, S, r ? _e(e, v, "linePrefix", r + 1) : v)(A);
|
|
22570
22570
|
}
|
|
22571
22571
|
function v(A) {
|
|
22572
|
-
return A === null ? S(A) :
|
|
22572
|
+
return A === null ? S(A) : de(A) ? e.check(Tl, m, S)(A) : m(A);
|
|
22573
22573
|
}
|
|
22574
22574
|
function g(A) {
|
|
22575
22575
|
if (A === null) {
|
|
22576
22576
|
const I = e.exit("chunkDocument");
|
|
22577
22577
|
return l.parser.lazy[I.start.line] = !1, S(A);
|
|
22578
22578
|
}
|
|
22579
|
-
return
|
|
22579
|
+
return de(A) ? e.check(Tl, x, C)(A) : (e.consume(A), g);
|
|
22580
22580
|
}
|
|
22581
22581
|
function m(A) {
|
|
22582
22582
|
const I = e.enter("chunkDocument", {
|
|
@@ -22613,7 +22613,7 @@ function B1(e, t, a) {
|
|
|
22613
22613
|
return M === 58 ? (A.consume(M), P++, w) : P < i ? N(M) : (A.exit("directiveContainerSequence"), _e(A, T, "whitespace")(M));
|
|
22614
22614
|
}
|
|
22615
22615
|
function T(M) {
|
|
22616
|
-
return M === null ||
|
|
22616
|
+
return M === null || de(M) ? (A.exit("directiveContainerFence"), I(M)) : N(M);
|
|
22617
22617
|
}
|
|
22618
22618
|
}
|
|
22619
22619
|
}
|
|
@@ -22661,7 +22661,7 @@ function V1(e, t, a) {
|
|
|
22661
22661
|
return _e(e, o, "whitespace")(c);
|
|
22662
22662
|
}
|
|
22663
22663
|
function o(c) {
|
|
22664
|
-
return c === null ||
|
|
22664
|
+
return c === null || de(c) ? (e.exit("directiveLeaf"), t(c)) : a(c);
|
|
22665
22665
|
}
|
|
22666
22666
|
}
|
|
22667
22667
|
function G1(e, t, a) {
|
|
@@ -22715,11 +22715,11 @@ function ey() {
|
|
|
22715
22715
|
}
|
|
22716
22716
|
};
|
|
22717
22717
|
}
|
|
22718
|
-
function
|
|
22718
|
+
function Gn() {
|
|
22719
22719
|
const t = /** @type {Processor<Root>} */ this.data(), a = t.micromarkExtensions || (t.micromarkExtensions = []), l = t.fromMarkdownExtensions || (t.fromMarkdownExtensions = []), n = t.toMarkdownExtensions || (t.toMarkdownExtensions = []);
|
|
22720
22720
|
a.push(ey()), l.push(S1()), n.push(w1());
|
|
22721
22721
|
}
|
|
22722
|
-
const
|
|
22722
|
+
const Yn = {
|
|
22723
22723
|
...na,
|
|
22724
22724
|
// 允许极少量内联 HTML 做颜色/强调(配合 markdown)
|
|
22725
22725
|
// 注意:只在 tooltip 文案这类“配置端可控”的内容使用
|
|
@@ -22734,8 +22734,8 @@ const Wn = {
|
|
|
22734
22734
|
"color"
|
|
22735
22735
|
]
|
|
22736
22736
|
}
|
|
22737
|
-
},
|
|
22738
|
-
|
|
22737
|
+
}, Wn = () => (e) => {
|
|
22738
|
+
Yl(e, (t) => {
|
|
22739
22739
|
const a = t;
|
|
22740
22740
|
if (!a || a.type !== "textDirective" && a.type !== "leafDirective" && a.type !== "containerDirective" || a.name !== "color") return;
|
|
22741
22741
|
const l = a.attributes || {}, n = l.hex ?? l.color ?? l.value, r = typeof n == "string" ? n.trim() : "", i = /^#([0-9a-fA-F]{6})$/.test(r) ? r : "#7C3AED", u = l.bold, o = `${u === !0 || u === "true" || u === 1 || u === "1" ? "font-weight:700;" : ""}color:${i};`;
|
|
@@ -22831,8 +22831,8 @@ const Wn = {
|
|
|
22831
22831
|
const K = $.getBoundingClientRect(), J = P.getBoundingClientRect(), Y = Math.ceil(J.height || 0), le = Math.max(
|
|
22832
22832
|
0,
|
|
22833
22833
|
Math.floor(window.innerHeight - K.bottom)
|
|
22834
|
-
),
|
|
22835
|
-
A(
|
|
22834
|
+
), fe = Math.max(0, Math.floor(K.top)), Ee = le < Y + 12 && fe > le;
|
|
22835
|
+
A(Ee ? "top" : "bottom");
|
|
22836
22836
|
}
|
|
22837
22837
|
});
|
|
22838
22838
|
return () => cancelAnimationFrame(N);
|
|
@@ -22890,10 +22890,10 @@ const Wn = {
|
|
|
22890
22890
|
] })
|
|
22891
22891
|
] }),
|
|
22892
22892
|
F.description ? /* @__PURE__ */ V("div", { className: "rte-steps-tooltip-desc", children: /* @__PURE__ */ V(
|
|
22893
|
-
|
|
22893
|
+
On,
|
|
22894
22894
|
{
|
|
22895
|
-
remarkPlugins: [
|
|
22896
|
-
rehypePlugins: [
|
|
22895
|
+
remarkPlugins: [Gn, Wn],
|
|
22896
|
+
rehypePlugins: [Mn, [Rn, Yn]],
|
|
22897
22897
|
components: {
|
|
22898
22898
|
p: ({ children: Y }) => /* @__PURE__ */ V("p", { style: { margin: 0 }, children: Y })
|
|
22899
22899
|
},
|
|
@@ -22908,7 +22908,7 @@ const Wn = {
|
|
|
22908
22908
|
"--rte-steps-tooltip-aspect": K
|
|
22909
22909
|
} : void 0,
|
|
22910
22910
|
children: /* @__PURE__ */ V(
|
|
22911
|
-
|
|
22911
|
+
Xn.PreviewGroup,
|
|
22912
22912
|
{
|
|
22913
22913
|
preview: {
|
|
22914
22914
|
visible: b,
|
|
@@ -22932,7 +22932,7 @@ const Wn = {
|
|
|
22932
22932
|
},
|
|
22933
22933
|
onSlideChange: (Y) => g(Y.activeIndex),
|
|
22934
22934
|
children: F.images.map((Y, le) => /* @__PURE__ */ V(cs, { children: /* @__PURE__ */ V(
|
|
22935
|
-
|
|
22935
|
+
Xn,
|
|
22936
22936
|
{
|
|
22937
22937
|
className: "rte-steps-tooltip-img",
|
|
22938
22938
|
src: Y,
|
|
@@ -22959,10 +22959,10 @@ const Wn = {
|
|
|
22959
22959
|
}
|
|
22960
22960
|
),
|
|
22961
22961
|
/* @__PURE__ */ V("div", { className: "rte-steps-tooltip-footer", children: /* @__PURE__ */ V("div", { className: "rte-steps-tooltip-step-text", children: /* @__PURE__ */ V(
|
|
22962
|
-
|
|
22962
|
+
On,
|
|
22963
22963
|
{
|
|
22964
|
-
remarkPlugins: [
|
|
22965
|
-
rehypePlugins: [
|
|
22964
|
+
remarkPlugins: [Gn, Wn],
|
|
22965
|
+
rehypePlugins: [Mn, [Rn, Yn]],
|
|
22966
22966
|
components: {
|
|
22967
22967
|
p: ({ children: Y }) => /* @__PURE__ */ V("p", { style: { margin: 0 }, children: Y })
|
|
22968
22968
|
},
|
|
@@ -22972,10 +22972,10 @@ const Wn = {
|
|
|
22972
22972
|
D ? /* @__PURE__ */ he("div", { className: "rte-steps-tooltip-disclaimer", children: [
|
|
22973
22973
|
/* @__PURE__ */ V("span", { className: "rte-steps-tooltip-disclaimer-icon", children: "⚠" }),
|
|
22974
22974
|
/* @__PURE__ */ V("div", { className: "rte-steps-tooltip-disclaimer-text", children: /* @__PURE__ */ V(
|
|
22975
|
-
|
|
22975
|
+
On,
|
|
22976
22976
|
{
|
|
22977
|
-
remarkPlugins: [
|
|
22978
|
-
rehypePlugins: [
|
|
22977
|
+
remarkPlugins: [Gn, Wn],
|
|
22978
|
+
rehypePlugins: [Mn, [Rn, Yn]],
|
|
22979
22979
|
components: {
|
|
22980
22980
|
p: ({ children: Y }) => /* @__PURE__ */ V("p", { style: { margin: 0 }, children: Y })
|
|
22981
22981
|
},
|
|
@@ -23118,7 +23118,7 @@ const Wn = {
|
|
|
23118
23118
|
}, ry = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ro = (e, t) => {
|
|
23119
23119
|
const l = (e.key ? t[e.key] : void 0) || e.text || "", n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = ut(e.tooltip), i = r ? ` data-tooltip="${pe(r)}" data-variable-key="${e.key || ""}"` : "";
|
|
23120
23120
|
if (e.useAntd === !0) {
|
|
23121
|
-
const h = l ? encodeURIComponent(l) : "", f = pe(e.placeholder || ""), y = e.allowNewline === !1 ? ' data-allow-newline="0"' : ' data-allow-newline="1"', E =
|
|
23121
|
+
const h = l ? encodeURIComponent(l) : "", f = pe(e.placeholder || ""), y = e.allowNewline === !1 ? ' data-allow-newline="0"' : ' data-allow-newline="1"', E = Il(l || e.placeholder || ""), v = r && !l ? 18 : 0;
|
|
23122
23122
|
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(
|
|
23123
23123
|
600,
|
|
23124
23124
|
E + v
|
|
@@ -23199,7 +23199,7 @@ const Bo = (e, t) => {
|
|
|
23199
23199
|
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>`;
|
|
23200
23200
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Ty}${i}</span>` : i;
|
|
23201
23201
|
}, Cy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ay = (e, t) => {
|
|
23202
|
-
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 ? pe(e.placeholder) : "", i = r ? ` placeholder="${r}"` : "", u = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", s = a || e.placeholder || "", o =
|
|
23202
|
+
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 ? pe(e.placeholder) : "", i = r ? ` placeholder="${r}"` : "", u = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", s = a || e.placeholder || "", o = Il(s), c = `<input type="text" inputmode="numeric" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${pe(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>`;
|
|
23203
23203
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Cy}${h}</span>` : h;
|
|
23204
23204
|
}, Sy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ho = (e, t, a, l) => {
|
|
23205
23205
|
const n = e.maxCount || 9, r = a[e.key] || 1, i = Math.min(r, n);
|
|
@@ -29219,11 +29219,11 @@ function Oy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29219
29219
|
const qo = (e) => {
|
|
29220
29220
|
const t = document.createElement("template");
|
|
29221
29221
|
return t.innerHTML = e.trim(), Array.from(t.content.childNodes);
|
|
29222
|
-
}, Dy = (e) => qo(e).filter((t) => t.nodeType === Node.ELEMENT_NODE),
|
|
29222
|
+
}, Dy = (e) => qo(e).filter((t) => t.nodeType === Node.ELEMENT_NODE), jn = (e, t) => {
|
|
29223
29223
|
if (!e) return;
|
|
29224
29224
|
const a = qo(t);
|
|
29225
29225
|
a.length > 0 && e.replaceWith(...a);
|
|
29226
|
-
},
|
|
29226
|
+
}, Kn = (e) => e?.closest(".required-upload-group") || null, Py = (e, t) => {
|
|
29227
29227
|
if (!t) return "";
|
|
29228
29228
|
const a = new Set(
|
|
29229
29229
|
e.filter((n) => (n.type === "upload" || n.type === "video-upload" || n.type === "video-url") && n.key).map((n) => n.key)
|
|
@@ -29238,10 +29238,10 @@ const qo = (e) => {
|
|
|
29238
29238
|
const r = typeof n.maxCount == "number" && typeof n.minCount == "number" && n.maxCount > 1, i = Fo(n, a, "");
|
|
29239
29239
|
if (r) {
|
|
29240
29240
|
const v = e.querySelector(`[data-batch-key="${n.key}"]`), g = (n.required ? v?.closest(".rte-required-upload-batch") : v?.closest(".rte-upload-batch-chips")) || null;
|
|
29241
|
-
|
|
29241
|
+
jn(g, i);
|
|
29242
29242
|
return;
|
|
29243
29243
|
}
|
|
29244
|
-
const u = e.querySelector(`[data-type="upload"][data-key="${n.key}"]`), s =
|
|
29244
|
+
const u = e.querySelector(`[data-type="upload"][data-key="${n.key}"]`), s = Kn(u), c = s && !n.required ? (() => {
|
|
29245
29245
|
const { uploadHtml: v, hintHtml: g } = Bo(n, a);
|
|
29246
29246
|
return v + g;
|
|
29247
29247
|
})() : i, d = Dy(c), h = d.find((v) => v.matches('[data-type="upload"]')) || d.find((v) => v.querySelector('[data-type="upload"]'))?.querySelector(
|
|
@@ -29251,13 +29251,13 @@ const qo = (e) => {
|
|
|
29251
29251
|
return;
|
|
29252
29252
|
}
|
|
29253
29253
|
if (n.type === "video-url") {
|
|
29254
|
-
const r = e.querySelector(`[data-type="video-url"][data-key="${n.key}"]`) || e.querySelector(`[data-type="variable"][data-node-type="video-url"][data-key="${n.key}"]`), i = n.required ?
|
|
29255
|
-
|
|
29254
|
+
const r = e.querySelector(`[data-type="video-url"][data-key="${n.key}"]`) || e.querySelector(`[data-type="variable"][data-node-type="video-url"][data-key="${n.key}"]`), i = n.required ? Kn(r) : null;
|
|
29255
|
+
jn(i || r, $o(n, l || {}));
|
|
29256
29256
|
return;
|
|
29257
29257
|
}
|
|
29258
29258
|
if (n.type === "video-upload") {
|
|
29259
|
-
const r = e.querySelector(`[data-type="video-upload"][data-key="${n.key}"]`), i = n.required ?
|
|
29260
|
-
|
|
29259
|
+
const r = e.querySelector(`[data-type="video-upload"][data-key="${n.key}"]`), i = n.required ? Kn(r) : null;
|
|
29260
|
+
jn(i || r, Uo(n, l || {}));
|
|
29261
29261
|
}
|
|
29262
29262
|
}
|
|
29263
29263
|
});
|
|
@@ -29867,11 +29867,11 @@ function zo() {
|
|
|
29867
29867
|
}, T.valueOf = function() {
|
|
29868
29868
|
return this.$d.getTime();
|
|
29869
29869
|
}, T.startOf = function(M, q) {
|
|
29870
|
-
var H = this, F = !!N.u(q) || q, _ = N.p(M), z = function(
|
|
29871
|
-
var
|
|
29872
|
-
return F ?
|
|
29873
|
-
}, W = function(
|
|
29874
|
-
return N.w(H.toDate()[
|
|
29870
|
+
var H = this, F = !!N.u(q) || q, _ = N.p(M), z = function(fe, me) {
|
|
29871
|
+
var Ee = N.w(H.$u ? Date.UTC(H.$y, me, fe) : new Date(H.$y, me, fe), H);
|
|
29872
|
+
return F ? Ee : Ee.endOf(o);
|
|
29873
|
+
}, W = function(fe, me) {
|
|
29874
|
+
return N.w(H.toDate()[fe].apply(H.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), H);
|
|
29875
29875
|
}, D = this.$W, $ = this.$M, K = this.$D, J = "set" + (this.$u ? "UTC" : "");
|
|
29876
29876
|
switch (_) {
|
|
29877
29877
|
case f:
|
|
@@ -29924,16 +29924,16 @@ function zo() {
|
|
|
29924
29924
|
}, T.format = function(M) {
|
|
29925
29925
|
var q = this, H = this.$locale();
|
|
29926
29926
|
if (!this.isValid()) return H.invalidDate || E;
|
|
29927
|
-
var F = M || "YYYY-MM-DDTHH:mm:ssZ", _ = N.z(this), z = this.$H, W = this.$m, D = this.$M, $ = H.weekdays, K = H.months, J = H.meridiem, Y = function(
|
|
29928
|
-
return
|
|
29929
|
-
}, le = function(
|
|
29930
|
-
return N.s(z % 12 || 12,
|
|
29931
|
-
},
|
|
29932
|
-
var Me =
|
|
29927
|
+
var F = M || "YYYY-MM-DDTHH:mm:ssZ", _ = N.z(this), z = this.$H, W = this.$m, D = this.$M, $ = H.weekdays, K = H.months, J = H.meridiem, Y = function(me, Ee, je, Me) {
|
|
29928
|
+
return me && (me[Ee] || me(q, F)) || je[Ee].slice(0, Me);
|
|
29929
|
+
}, le = function(me) {
|
|
29930
|
+
return N.s(z % 12 || 12, me, "0");
|
|
29931
|
+
}, fe = J || function(me, Ee, je) {
|
|
29932
|
+
var Me = me < 12 ? "AM" : "PM";
|
|
29933
29933
|
return je ? Me.toLowerCase() : Me;
|
|
29934
29934
|
};
|
|
29935
|
-
return F.replace(g, function(
|
|
29936
|
-
return
|
|
29935
|
+
return F.replace(g, function(me, Ee) {
|
|
29936
|
+
return Ee || function(je) {
|
|
29937
29937
|
switch (je) {
|
|
29938
29938
|
case "YY":
|
|
29939
29939
|
return String(q.$y).slice(-2);
|
|
@@ -29968,9 +29968,9 @@ function zo() {
|
|
|
29968
29968
|
case "hh":
|
|
29969
29969
|
return le(2);
|
|
29970
29970
|
case "a":
|
|
29971
|
-
return
|
|
29971
|
+
return fe(z, W, !0);
|
|
29972
29972
|
case "A":
|
|
29973
|
-
return
|
|
29973
|
+
return fe(z, W, !1);
|
|
29974
29974
|
case "m":
|
|
29975
29975
|
return String(W);
|
|
29976
29976
|
case "mm":
|
|
@@ -29985,7 +29985,7 @@ function zo() {
|
|
|
29985
29985
|
return _;
|
|
29986
29986
|
}
|
|
29987
29987
|
return null;
|
|
29988
|
-
}(
|
|
29988
|
+
}(me) || _.replace(":", "");
|
|
29989
29989
|
});
|
|
29990
29990
|
}, T.utcOffset = function() {
|
|
29991
29991
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -30324,7 +30324,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30324
30324
|
hideCurrentSessionReport: _,
|
|
30325
30325
|
reportNameResolve: z
|
|
30326
30326
|
}) => {
|
|
30327
|
-
const [W, D] = Bc.useMessage(), $ = Z(null), K = Z(null), J = Z(null), Y = Z(null), le = Z(null),
|
|
30327
|
+
const [W, D] = Bc.useMessage(), $ = Z(null), K = Z(null), J = Z(null), Y = Z(null), le = Z(null), fe = Z(null), [me, Ee] = ie(!1), je = Z("");
|
|
30328
30328
|
if (!je.current) {
|
|
30329
30329
|
const Q = Math.random().toString(36).slice(2, 8);
|
|
30330
30330
|
je.current = `rte_${Q}`;
|
|
@@ -30336,18 +30336,18 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30336
30336
|
const [nt, Et] = ie([]), Jt = Z(!1);
|
|
30337
30337
|
re(() => {
|
|
30338
30338
|
if (!w) return;
|
|
30339
|
-
if (!(w.length === nt.length && w.every((
|
|
30340
|
-
const
|
|
30341
|
-
return
|
|
30339
|
+
if (!(w.length === nt.length && w.every((oe, se) => {
|
|
30340
|
+
const ve = nt[se];
|
|
30341
|
+
return ve && oe.name === ve.name && oe.size === ve.size && oe.lastModified === ve.lastModified;
|
|
30342
30342
|
})))
|
|
30343
|
-
if (w.reduce((
|
|
30344
|
-
const
|
|
30345
|
-
let
|
|
30346
|
-
for (const
|
|
30347
|
-
if (
|
|
30348
|
-
|
|
30343
|
+
if (w.reduce((ve, ye) => ve + ye.size, 0) > 52428800) {
|
|
30344
|
+
const ve = [];
|
|
30345
|
+
let ye = 0;
|
|
30346
|
+
for (const ce of w) {
|
|
30347
|
+
if (ye + ce.size > 52428800) break;
|
|
30348
|
+
ve.push(ce), ye += ce.size;
|
|
30349
30349
|
}
|
|
30350
|
-
W.error("文件总大小不能超过 50MB"), Et(
|
|
30350
|
+
W.error("文件总大小不能超过 50MB"), Et(ve);
|
|
30351
30351
|
} else
|
|
30352
30352
|
Jt.current = !0, Et(w);
|
|
30353
30353
|
}, [w]), re(() => {
|
|
@@ -30357,7 +30357,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30357
30357
|
}
|
|
30358
30358
|
P?.(nt);
|
|
30359
30359
|
}, [nt, P]);
|
|
30360
|
-
const [
|
|
30360
|
+
const [Ql, ha] = ie(null), [ul, sl] = ie(null), [Jl, ol] = ie(null), [st, ba] = ie({}), [X, ne] = ie(""), [be, Ce] = ie(!1), ke = Z(null), Ke = Z(null), { tooltipPortal: yt, setPopoverVisible: Ve } = ay({
|
|
30361
30361
|
config: e,
|
|
30362
30362
|
files: Me,
|
|
30363
30363
|
debugTooltipSticky: A,
|
|
@@ -30366,8 +30366,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30366
30366
|
config: e,
|
|
30367
30367
|
messageApi: W,
|
|
30368
30368
|
activeBatchKey: ul,
|
|
30369
|
-
activeFileKey:
|
|
30370
|
-
activeBatchStartIndex:
|
|
30369
|
+
activeFileKey: Ql,
|
|
30370
|
+
activeBatchStartIndex: Jl,
|
|
30371
30371
|
setActiveFileKey: ha,
|
|
30372
30372
|
setActiveBatchKey: sl,
|
|
30373
30373
|
setActiveBatchStartIndex: ol,
|
|
@@ -30380,21 +30380,21 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30380
30380
|
});
|
|
30381
30381
|
}, []), Yo = ue((Q) => {
|
|
30382
30382
|
if (!Q.target.files || Q.target.files.length === 0) return;
|
|
30383
|
-
const
|
|
30384
|
-
Et((
|
|
30385
|
-
const
|
|
30386
|
-
let Se =
|
|
30387
|
-
for (const Ne of
|
|
30388
|
-
if (Se + Ne.size >
|
|
30383
|
+
const oe = 10 * 1024 * 1024, se = 50 * 1024 * 1024, ve = (ce) => ce.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ce.name || ""), ye = Array.from(Q.target.files).filter((ce) => ve(ce) && ce.size > oe ? (W.error("图片大小不能超过 10MB"), !1) : !0);
|
|
30384
|
+
Et((ce) => {
|
|
30385
|
+
const ge = ce.reduce((Ne, De) => Ne + De.size, 0), xe = [];
|
|
30386
|
+
let Se = ge;
|
|
30387
|
+
for (const Ne of ye) {
|
|
30388
|
+
if (Se + Ne.size > se) {
|
|
30389
30389
|
W.error("文件总大小不能超过 50MB");
|
|
30390
30390
|
break;
|
|
30391
30391
|
}
|
|
30392
30392
|
xe.push(Ne), Se += Ne.size;
|
|
30393
30393
|
}
|
|
30394
|
-
return xe.length > 0 ? [...
|
|
30394
|
+
return xe.length > 0 ? [...ce, ...xe] : ce;
|
|
30395
30395
|
}), Q.target.value = "", setTimeout(ma, 0);
|
|
30396
30396
|
}, [W, ma]), Wo = ue((Q) => {
|
|
30397
|
-
Et((
|
|
30397
|
+
Et((oe) => oe.filter((se, ve) => ve !== Q)), setTimeout(ma, 0);
|
|
30398
30398
|
}, [ma]), jo = ue(() => {
|
|
30399
30399
|
const Q = He.current;
|
|
30400
30400
|
Q && Q.scrollBy({ left: 200, behavior: "smooth" });
|
|
@@ -30402,12 +30402,12 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30402
30402
|
const Q = He.current;
|
|
30403
30403
|
Q && Q.scrollBy({ left: -200, behavior: "smooth" });
|
|
30404
30404
|
}, []), Wr = ue(() => {
|
|
30405
|
-
l ||
|
|
30405
|
+
l || Ee(!0);
|
|
30406
30406
|
}, [l]);
|
|
30407
30407
|
re(() => {
|
|
30408
|
-
l &&
|
|
30408
|
+
l && Ee(!1);
|
|
30409
30409
|
}, [l]), re(() => {
|
|
30410
|
-
const Q = (
|
|
30410
|
+
const Q = (ve) => ve instanceof Element ? !!ve.closest(
|
|
30411
30411
|
[
|
|
30412
30412
|
".rte-agent-dropdown",
|
|
30413
30413
|
".rte-report-dropdown-overlay",
|
|
@@ -30416,24 +30416,24 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30416
30416
|
".ant-select-dropdown",
|
|
30417
30417
|
".ant-image-preview-root"
|
|
30418
30418
|
].join(",")
|
|
30419
|
-
) : !1,
|
|
30420
|
-
const
|
|
30421
|
-
|
|
30422
|
-
},
|
|
30423
|
-
const
|
|
30424
|
-
if (
|
|
30425
|
-
if (
|
|
30426
|
-
l ||
|
|
30419
|
+
) : !1, oe = (ve) => {
|
|
30420
|
+
const ye = $.current, ce = ve.target;
|
|
30421
|
+
ye && (ce instanceof Node && ye.contains(ce) || Q(ce) || Ee(!1));
|
|
30422
|
+
}, se = (ve) => {
|
|
30423
|
+
const ye = $.current, ce = ve.target;
|
|
30424
|
+
if (ye) {
|
|
30425
|
+
if (ce instanceof Node && ye.contains(ce)) {
|
|
30426
|
+
l || Ee(!0);
|
|
30427
30427
|
return;
|
|
30428
30428
|
}
|
|
30429
|
-
Q(
|
|
30429
|
+
Q(ce) || Ee(!1);
|
|
30430
30430
|
}
|
|
30431
30431
|
};
|
|
30432
|
-
return document.addEventListener("mousedown",
|
|
30433
|
-
document.removeEventListener("mousedown",
|
|
30432
|
+
return document.addEventListener("mousedown", oe, !0), document.addEventListener("focusin", se, !0), () => {
|
|
30433
|
+
document.removeEventListener("mousedown", oe, !0), document.removeEventListener("focusin", se, !0);
|
|
30434
30434
|
};
|
|
30435
30435
|
}, [l]);
|
|
30436
|
-
const
|
|
30436
|
+
const Zl = Z(!1), Xo = Z(null), {
|
|
30437
30437
|
handleMouseDown: Qo,
|
|
30438
30438
|
handleMouseMove: Jo,
|
|
30439
30439
|
handleMouseUp: Zo,
|
|
@@ -30443,27 +30443,27 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30443
30443
|
onAgentExit: s,
|
|
30444
30444
|
editorRef: Y,
|
|
30445
30445
|
setPopoverVisible: Ve,
|
|
30446
|
-
isDraggingRef:
|
|
30446
|
+
isDraggingRef: Zl,
|
|
30447
30447
|
mouseDownPosRef: Xo
|
|
30448
|
-
}), [jr, cl] = ie(!1),
|
|
30449
|
-
}), $t = Z({}),
|
|
30450
|
-
|
|
30451
|
-
|
|
30448
|
+
}), [jr, cl] = ie(!1), en = Z(null), [Kr, Xr] = ie(!0), tc = Z(0), [Qr, ac] = ie(58), [lc, nc] = ie(58), [Jr, rc] = ie(!1), [dl, tn] = ie(null), va = Z(!1), ga = Z(!1), ft = Z(null), [Zt, Ea] = ie({}), _t = Z(() => {
|
|
30449
|
+
}), $t = Z({}), an = Z(!1), fl = Z(null), ya = ue(() => {
|
|
30450
|
+
an.current = !0, fl.current !== null && window.clearTimeout(fl.current), fl.current = window.setTimeout(() => {
|
|
30451
|
+
an.current = !1, fl.current = null;
|
|
30452
30452
|
}, 50);
|
|
30453
30453
|
}, []), [Ut, pl] = ie({}), Zr = Z(() => {
|
|
30454
|
-
}), ic = Z({}),
|
|
30454
|
+
}), ic = Z({}), ln = Z(Ut);
|
|
30455
30455
|
re(() => {
|
|
30456
|
-
|
|
30456
|
+
ln.current = Ut;
|
|
30457
30457
|
}, [Ut]);
|
|
30458
|
-
const [qt,
|
|
30458
|
+
const [qt, nn] = ie({}), ei = Z(() => {
|
|
30459
30459
|
}), ti = Z(qt);
|
|
30460
30460
|
re(() => {
|
|
30461
30461
|
ti.current = qt;
|
|
30462
30462
|
}, [qt]);
|
|
30463
30463
|
const [xt, Ta] = ie(() => {
|
|
30464
30464
|
const Q = {};
|
|
30465
|
-
return e.forEach((
|
|
30466
|
-
Ge(
|
|
30465
|
+
return e.forEach((oe) => {
|
|
30466
|
+
Ge(oe.type) && oe.key && (Q[oe.key] = 1);
|
|
30467
30467
|
}), Q;
|
|
30468
30468
|
});
|
|
30469
30469
|
Hd({
|
|
@@ -30478,23 +30478,23 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30478
30478
|
markdownAnalyzeState: Ut,
|
|
30479
30479
|
setMarkdownAnalyzeState: pl,
|
|
30480
30480
|
markdownNameAnalyzeState: qt,
|
|
30481
|
-
setMarkdownNameAnalyzeState:
|
|
30481
|
+
setMarkdownNameAnalyzeState: nn,
|
|
30482
30482
|
nodeValues: I,
|
|
30483
30483
|
resolvedReportNamesRef: $t
|
|
30484
30484
|
});
|
|
30485
30485
|
const ai = Z(I);
|
|
30486
30486
|
if (I !== ai.current && (ai.current = I, I)) {
|
|
30487
30487
|
const Q = {};
|
|
30488
|
-
let
|
|
30489
|
-
e.forEach((
|
|
30490
|
-
if (Ge(
|
|
30491
|
-
const
|
|
30492
|
-
if (Array.isArray(
|
|
30493
|
-
const
|
|
30494
|
-
xt[
|
|
30488
|
+
let oe = !1;
|
|
30489
|
+
e.forEach((se) => {
|
|
30490
|
+
if (Ge(se.type) && se.key) {
|
|
30491
|
+
const ve = I[se.key], ye = Array.isArray(ve) ? ve.filter((ce) => ce.trim().length > 0) : ve;
|
|
30492
|
+
if (Array.isArray(ye) && ye.length > 0) {
|
|
30493
|
+
const ce = se.maxCount ?? 9, ge = Math.min(ye.length + 1, ce);
|
|
30494
|
+
xt[se.key] !== ge && (Q[se.key] = ge, oe = !0);
|
|
30495
30495
|
}
|
|
30496
30496
|
}
|
|
30497
|
-
}),
|
|
30497
|
+
}), oe && (ya(), Ta((se) => ({ ...se, ...Q })));
|
|
30498
30498
|
}
|
|
30499
30499
|
const Oe = Vd({
|
|
30500
30500
|
config: e,
|
|
@@ -30511,12 +30511,12 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30511
30511
|
markdownAnalyzeState: Ut,
|
|
30512
30512
|
setMarkdownAnalyzeState: pl,
|
|
30513
30513
|
markdownNameAnalyzeState: qt,
|
|
30514
|
-
setMarkdownNameAnalyzeState:
|
|
30514
|
+
setMarkdownNameAnalyzeState: nn,
|
|
30515
30515
|
editorRef: Y,
|
|
30516
30516
|
reportAnalyzeRef: _t,
|
|
30517
30517
|
markdownAnalyzeRef: Zr,
|
|
30518
30518
|
markdownNameAnalyzeRef: ei,
|
|
30519
|
-
markdownAnalyzeStateRef:
|
|
30519
|
+
markdownAnalyzeStateRef: ln,
|
|
30520
30520
|
markdownNameAnalyzeStateRef: ti,
|
|
30521
30521
|
reportNameResolve: z,
|
|
30522
30522
|
applyReportNameChipRef: hl
|
|
@@ -30524,69 +30524,69 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30524
30524
|
Td(Y, uc, [Oe]), Id(Y, oc, [Oe]), Ld(Y, sc, [Oe]), re(() => {
|
|
30525
30525
|
const Q = Y.current;
|
|
30526
30526
|
if (!Q || !z) return;
|
|
30527
|
-
const
|
|
30528
|
-
const
|
|
30529
|
-
if (!
|
|
30530
|
-
const
|
|
30531
|
-
if (!
|
|
30532
|
-
const
|
|
30533
|
-
if (!
|
|
30534
|
-
const
|
|
30535
|
-
if (
|
|
30527
|
+
const oe = (se) => {
|
|
30528
|
+
const ve = se.target;
|
|
30529
|
+
if (!ve) return;
|
|
30530
|
+
const ye = ve.closest?.('[data-type="variable"][data-multi-key]');
|
|
30531
|
+
if (!ye) return;
|
|
30532
|
+
const ce = ye.dataset.key;
|
|
30533
|
+
if (!ce) return;
|
|
30534
|
+
const ge = en.current?.key === ce;
|
|
30535
|
+
if (an.current && (ge || !Q.contains(ye)))
|
|
30536
30536
|
return;
|
|
30537
|
-
const xe = Q.contains(
|
|
30538
|
-
`[data-type="variable"][data-key="${
|
|
30537
|
+
const xe = Q.contains(ye) ? ye : Q.querySelector(
|
|
30538
|
+
`[data-type="variable"][data-key="${ce}"]`
|
|
30539
30539
|
);
|
|
30540
30540
|
if (!xe || xe.getAttribute("data-report-url")) return;
|
|
30541
30541
|
const Se = (xe.innerText || "").replace(/[\u200B\n]/g, "").trim(), Ne = xe.dataset.multiKey, ze = (Ne ? Oe.find((ct) => Ge(ct.type) && ct.key === Ne) : void 0)?.type === "multi-variable-select" ? "multi-variable-select" : "multi-variable";
|
|
30542
|
-
li(
|
|
30542
|
+
li(ce, Se, ze);
|
|
30543
30543
|
};
|
|
30544
|
-
return Q.addEventListener("focusout",
|
|
30545
|
-
}, [Y, li, Oe, z]), yd(Y, [Oe]), hl.current = (Q,
|
|
30546
|
-
const
|
|
30547
|
-
if (!
|
|
30548
|
-
let
|
|
30544
|
+
return Q.addEventListener("focusout", oe), () => Q.removeEventListener("focusout", oe);
|
|
30545
|
+
}, [Y, li, Oe, z]), yd(Y, [Oe]), hl.current = (Q, oe, se, ve) => {
|
|
30546
|
+
const ye = Y.current;
|
|
30547
|
+
if (!ye) return;
|
|
30548
|
+
let ce = ye.querySelector(
|
|
30549
30549
|
`[data-type="variable"][data-key="${Q}"]`
|
|
30550
30550
|
);
|
|
30551
|
-
if (
|
|
30551
|
+
if (ce && !document.body.contains(ce)) {
|
|
30552
30552
|
const Se = document.querySelectorAll(
|
|
30553
30553
|
`.rte-editor [data-type="variable"][data-key="${Q}"]`
|
|
30554
30554
|
);
|
|
30555
30555
|
let Ne = null;
|
|
30556
30556
|
Se.forEach((De) => {
|
|
30557
30557
|
!Ne && document.body.contains(De) && (Ne = De);
|
|
30558
|
-
}),
|
|
30558
|
+
}), ce = Ne;
|
|
30559
30559
|
}
|
|
30560
|
-
if (!
|
|
30561
|
-
$t.current[Q] = { name:
|
|
30560
|
+
if (!ce) {
|
|
30561
|
+
$t.current[Q] = { name: oe, url: se };
|
|
30562
30562
|
return;
|
|
30563
30563
|
}
|
|
30564
|
-
if (
|
|
30565
|
-
$t.current[Q] = { name:
|
|
30564
|
+
if (ce.getAttribute("data-report-url") === se) {
|
|
30565
|
+
$t.current[Q] = { name: oe, url: se };
|
|
30566
30566
|
return;
|
|
30567
30567
|
}
|
|
30568
|
-
if (!
|
|
30569
|
-
const Se =
|
|
30570
|
-
if (!(!Se && Ne === "") && !(Se ===
|
|
30568
|
+
if (!ve?.forceApply) {
|
|
30569
|
+
const Se = ce.getAttribute("data-report-url"), Ne = (ce.innerText || "").replace(/[\u200B\n]/g, "").trim();
|
|
30570
|
+
if (!(!Se && Ne === "") && !(Se === se || Ne === se)) return;
|
|
30571
30571
|
}
|
|
30572
|
-
$t.current[Q] = { name:
|
|
30573
|
-
const
|
|
30574
|
-
|
|
30575
|
-
const xe = [document.createTextNode(
|
|
30576
|
-
|
|
30572
|
+
$t.current[Q] = { name: oe, url: se };
|
|
30573
|
+
const ge = ce.querySelector(".rte-report-dropdown-host");
|
|
30574
|
+
ge && (ge.style.display = "", ge.style.visibility = "", ge.classList.remove("hidden"), ge.classList.add("rte-report-dropdown-host-quiet"));
|
|
30575
|
+
const xe = [document.createTextNode(oe)];
|
|
30576
|
+
ge && xe.push(ge), ce.classList.remove("show-placeholder", "rte-variable-with-icon"), ce.classList.add("rte-report-name-chip"), ce.setAttribute("data-report-url", se), ce.setAttribute("data-report-name", oe), ce.contentEditable = "false", ce.replaceChildren(...xe), Qn(ce), document.dispatchEvent(
|
|
30577
30577
|
new CustomEvent("rte-report-dropdown-force-close", {
|
|
30578
30578
|
detail: { key: Q }
|
|
30579
30579
|
})
|
|
30580
30580
|
), setTimeout(() => {
|
|
30581
|
-
|
|
30581
|
+
sn.current();
|
|
30582
30582
|
}, 0);
|
|
30583
30583
|
};
|
|
30584
30584
|
const cc = ue(
|
|
30585
|
-
(Q,
|
|
30586
|
-
Y.current && (
|
|
30587
|
-
_t.current(Q,
|
|
30588
|
-
}, 0)) : (
|
|
30589
|
-
_t.current(Q,
|
|
30585
|
+
(Q, oe, se) => {
|
|
30586
|
+
Y.current && (oe === "report-url" ? (hl.current(Q, se.name, se.url, { forceApply: !0 }), setTimeout(() => {
|
|
30587
|
+
_t.current(Q, se.url);
|
|
30588
|
+
}, 0)) : (oe === "multi-variable" || oe === "multi-variable-select") && (hl.current(Q, se.name, se.url, { forceApply: !0 }), oe === "multi-variable-select" && setTimeout(() => {
|
|
30589
|
+
_t.current(Q, se.url);
|
|
30590
30590
|
}, 0)));
|
|
30591
30591
|
},
|
|
30592
30592
|
[Y, _t]
|
|
@@ -30599,79 +30599,79 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30599
30599
|
`${dc}::${JSON.stringify(xt)}`,
|
|
30600
30600
|
_
|
|
30601
30601
|
);
|
|
30602
|
-
Ry(Y, Oe, Me, r, xt,
|
|
30603
|
-
const
|
|
30604
|
-
(ni.current !== Oe || ri.current !== I) && (ni.current = Oe, ri.current = I,
|
|
30602
|
+
Ry(Y, Oe, Me, r, xt, en, void 0, f, void 0, I, st, !!q, $t);
|
|
30603
|
+
const rn = Z(/* @__PURE__ */ new Set()), ni = Z(Oe), ri = Z(I);
|
|
30604
|
+
(ni.current !== Oe || ri.current !== I) && (ni.current = Oe, ri.current = I, rn.current = /* @__PURE__ */ new Set()), re(() => {
|
|
30605
30605
|
if (!I || !Oe || Oe.length === 0) return;
|
|
30606
|
-
const Q = Oe.filter((
|
|
30606
|
+
const Q = Oe.filter((ge) => ge.type === "upload" && ge.key);
|
|
30607
30607
|
if (Q.length === 0) return;
|
|
30608
|
-
const
|
|
30609
|
-
xe && (xe instanceof File ?
|
|
30608
|
+
const oe = {}, se = (ge, xe) => {
|
|
30609
|
+
xe && (xe instanceof File ? oe[ge] = xe : typeof xe == "string" && xe.trim() && (oe[ge] = xe.trim()));
|
|
30610
30610
|
};
|
|
30611
|
-
for (const
|
|
30612
|
-
const xe =
|
|
30613
|
-
if (
|
|
30614
|
-
const Se = I[xe], Ne = typeof
|
|
30611
|
+
for (const ge of Q) {
|
|
30612
|
+
const xe = ge.key;
|
|
30613
|
+
if (rn.current.has(xe)) continue;
|
|
30614
|
+
const Se = I[xe], Ne = typeof ge.maxCount == "number" && ge.maxCount > 1;
|
|
30615
30615
|
if (Array.isArray(Se) && Se.length > 0) {
|
|
30616
|
-
Ne ? Se.forEach((De, ze) =>
|
|
30616
|
+
Ne ? Se.forEach((De, ze) => se(`${xe}-${ze}`, De)) : se(xe, Se[0]);
|
|
30617
30617
|
continue;
|
|
30618
30618
|
}
|
|
30619
30619
|
if (Se && !Array.isArray(Se)) {
|
|
30620
|
-
|
|
30620
|
+
se(xe, Se);
|
|
30621
30621
|
continue;
|
|
30622
30622
|
}
|
|
30623
30623
|
if (Ne)
|
|
30624
|
-
for (let De = 0; De <
|
|
30624
|
+
for (let De = 0; De < ge.maxCount; De++) {
|
|
30625
30625
|
const ze = `${xe}-${De}`, ct = I[ze];
|
|
30626
30626
|
if (!ct) break;
|
|
30627
|
-
|
|
30627
|
+
se(ze, ct);
|
|
30628
30628
|
}
|
|
30629
30629
|
}
|
|
30630
|
-
if (Object.keys(
|
|
30631
|
-
for (const
|
|
30632
|
-
I[
|
|
30633
|
-
Bt((
|
|
30634
|
-
const xe = { ...
|
|
30630
|
+
if (Object.keys(oe).length === 0) return;
|
|
30631
|
+
for (const ge of Q)
|
|
30632
|
+
I[ge.key] !== void 0 && rn.current.add(ge.key);
|
|
30633
|
+
Bt((ge) => {
|
|
30634
|
+
const xe = { ...ge };
|
|
30635
30635
|
let Se = !1;
|
|
30636
30636
|
for (const Ne of Q) {
|
|
30637
30637
|
const De = Ne.key;
|
|
30638
30638
|
if (I[De] === void 0) continue;
|
|
30639
30639
|
if (typeof Ne.maxCount == "number" && Ne.maxCount > 1)
|
|
30640
30640
|
for (let ct = 0; ct < Ne.maxCount; ct++) {
|
|
30641
|
-
const
|
|
30642
|
-
!
|
|
30641
|
+
const cn = `${De}-${ct}`;
|
|
30642
|
+
!oe[cn] && ge[cn] && (xe[cn] = null, Se = !0);
|
|
30643
30643
|
}
|
|
30644
30644
|
}
|
|
30645
|
-
for (const [Ne, De] of Object.entries(
|
|
30646
|
-
|
|
30647
|
-
return Se ? xe :
|
|
30645
|
+
for (const [Ne, De] of Object.entries(oe))
|
|
30646
|
+
ge[Ne] !== De && (xe[Ne] = De, Se = !0);
|
|
30647
|
+
return Se ? xe : ge;
|
|
30648
30648
|
});
|
|
30649
|
-
const
|
|
30650
|
-
([,
|
|
30649
|
+
const ve = Object.entries(oe).filter(
|
|
30650
|
+
([, ge]) => typeof ge == "string"
|
|
30651
30651
|
);
|
|
30652
|
-
if (
|
|
30653
|
-
const
|
|
30654
|
-
const xe =
|
|
30652
|
+
if (ve.length === 0) return;
|
|
30653
|
+
const ye = async (ge) => {
|
|
30654
|
+
const xe = ge.split("/").pop()?.split("?")[0] || "file", Se = decodeURIComponent(xe), Ne = async (De) => {
|
|
30655
30655
|
const ze = await De.blob();
|
|
30656
30656
|
return new File([ze], Se, { type: ze.type || "application/octet-stream" });
|
|
30657
30657
|
};
|
|
30658
30658
|
try {
|
|
30659
|
-
const De = `/api/image-proxy?url=${encodeURIComponent(
|
|
30659
|
+
const De = `/api/image-proxy?url=${encodeURIComponent(ge)}`, ze = await fetch(De);
|
|
30660
30660
|
if (ze.ok) return Ne(ze);
|
|
30661
30661
|
} catch {
|
|
30662
30662
|
}
|
|
30663
30663
|
return null;
|
|
30664
30664
|
};
|
|
30665
|
-
let
|
|
30665
|
+
let ce = !1;
|
|
30666
30666
|
return Promise.all(
|
|
30667
|
-
|
|
30668
|
-
const Se = await
|
|
30669
|
-
return Se ? { key:
|
|
30667
|
+
ve.map(async ([ge, xe]) => {
|
|
30668
|
+
const Se = await ye(xe);
|
|
30669
|
+
return Se ? { key: ge, file: Se } : null;
|
|
30670
30670
|
})
|
|
30671
|
-
).then((
|
|
30672
|
-
if (
|
|
30671
|
+
).then((ge) => {
|
|
30672
|
+
if (ce) return;
|
|
30673
30673
|
const xe = {};
|
|
30674
|
-
for (const Se of
|
|
30674
|
+
for (const Se of ge)
|
|
30675
30675
|
Se && (xe[Se.key] = Se.file);
|
|
30676
30676
|
Object.keys(xe).length > 0 && Bt((Se) => {
|
|
30677
30677
|
const Ne = { ...Se };
|
|
@@ -30681,30 +30681,30 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30681
30681
|
return De ? Ne : Se;
|
|
30682
30682
|
});
|
|
30683
30683
|
}), () => {
|
|
30684
|
-
|
|
30684
|
+
ce = !0;
|
|
30685
30685
|
};
|
|
30686
30686
|
}, [I, Oe]);
|
|
30687
30687
|
const xa = Z(/* @__PURE__ */ new Set()), ii = Z(""), ui = (e || []).filter((Q) => Q.key && Q.type !== "report-module" && Q.type !== "markdown-module").map((Q) => `${Q.type}:${Q.key}`).join("|");
|
|
30688
30688
|
ii.current !== ui && (ii.current = ui, xa.current = /* @__PURE__ */ new Set()), re(() => {
|
|
30689
30689
|
if (!I || !e || e.length === 0) return;
|
|
30690
|
-
const Q = e.filter((
|
|
30691
|
-
if (!(Q.length === 0 &&
|
|
30692
|
-
for (const
|
|
30693
|
-
const
|
|
30694
|
-
if (xa.current.has(
|
|
30695
|
-
const
|
|
30696
|
-
if (!
|
|
30697
|
-
const
|
|
30698
|
-
|
|
30699
|
-
_t.current(
|
|
30690
|
+
const Q = e.filter((se) => se.type === "report-url" && se.key), oe = e.filter((se) => se.type === "multi-variable-select" && se.key);
|
|
30691
|
+
if (!(Q.length === 0 && oe.length === 0)) {
|
|
30692
|
+
for (const se of Q) {
|
|
30693
|
+
const ve = se.key;
|
|
30694
|
+
if (xa.current.has(ve)) continue;
|
|
30695
|
+
const ye = I[ve] ?? I[`${ve}__url`];
|
|
30696
|
+
if (!ye || typeof ye == "string" && !ye.trim()) continue;
|
|
30697
|
+
const ce = Array.isArray(ye) ? ye[0] : String(ye);
|
|
30698
|
+
ce && (xa.current.add(ve), setTimeout(() => {
|
|
30699
|
+
_t.current(ve, ce);
|
|
30700
30700
|
}, 100));
|
|
30701
30701
|
}
|
|
30702
|
-
for (const
|
|
30703
|
-
const
|
|
30704
|
-
!Array.isArray(
|
|
30705
|
-
const xe = typeof
|
|
30702
|
+
for (const se of oe) {
|
|
30703
|
+
const ve = se.key, ye = I[ve];
|
|
30704
|
+
!Array.isArray(ye) || ye.length === 0 || ye.forEach((ce, ge) => {
|
|
30705
|
+
const xe = typeof ce == "string" ? ce.trim() : "";
|
|
30706
30706
|
if (!xe) return;
|
|
30707
|
-
const Se = `${
|
|
30707
|
+
const Se = `${ve}_${ge}`;
|
|
30708
30708
|
xa.current.has(Se) || (xa.current.add(Se), setTimeout(() => {
|
|
30709
30709
|
_t.current(Se, xe);
|
|
30710
30710
|
}, 100));
|
|
@@ -30712,7 +30712,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30712
30712
|
}
|
|
30713
30713
|
}
|
|
30714
30714
|
}, [I, e, _t]), By(Y, Oe, Me, Ve, A), Fy(Y, Oe, Ve, f, A), $y(Y, Oe, Me, Ve, A), Hy(Y, Oe, Ve, A);
|
|
30715
|
-
const
|
|
30715
|
+
const un = !!x;
|
|
30716
30716
|
Uy(
|
|
30717
30717
|
Y,
|
|
30718
30718
|
Oe,
|
|
@@ -30721,16 +30721,16 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30721
30721
|
st,
|
|
30722
30722
|
I,
|
|
30723
30723
|
Zt,
|
|
30724
|
-
|
|
30724
|
+
un
|
|
30725
30725
|
), Rd(Y, T, st, ba, [Oe]);
|
|
30726
30726
|
const pc = Bd(M, ba, Y);
|
|
30727
|
-
Fd(Y, st, Ve, A), qy(Y,
|
|
30727
|
+
Fd(Y, st, Ve, A), qy(Y, Zl);
|
|
30728
30728
|
const si = cd(Y), hc = fd(Y), bc = hd(Y), oi = Ed(Y);
|
|
30729
30729
|
re(() => {
|
|
30730
30730
|
if (!Y.current) return;
|
|
30731
|
-
Y.current.querySelectorAll(".rte-richtext-toggle").forEach((
|
|
30732
|
-
const
|
|
30733
|
-
|
|
30731
|
+
Y.current.querySelectorAll(".rte-richtext-toggle").forEach((oe) => {
|
|
30732
|
+
const se = oe.getAttribute("data-expanded") === "true";
|
|
30733
|
+
oe.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>';
|
|
30734
30734
|
});
|
|
30735
30735
|
}, [Oe, Y]);
|
|
30736
30736
|
const ci = tT(Y), { measureExpandedContentHeight: Ca } = qd({
|
|
@@ -30753,20 +30753,20 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30753
30753
|
if (b) return;
|
|
30754
30754
|
const Q = J.current;
|
|
30755
30755
|
if (!Q) return;
|
|
30756
|
-
const
|
|
30757
|
-
|
|
30756
|
+
const oe = Math.ceil(Q.getBoundingClientRect().height || 0);
|
|
30757
|
+
oe > 0 && tn(oe), va.current = !0, ga.current = !1, ft.current && (window.clearTimeout(ft.current), ft.current = null);
|
|
30758
30758
|
};
|
|
30759
30759
|
re(() => {
|
|
30760
30760
|
const Q = () => {
|
|
30761
30761
|
va.current && (ga.current = !0, ft.current && window.clearTimeout(ft.current), ft.current = window.setTimeout(() => {
|
|
30762
|
-
ft.current = null, va.current = !1, ga.current = !1,
|
|
30762
|
+
ft.current = null, va.current = !1, ga.current = !1, tn(null), window.requestAnimationFrame(() => Ca());
|
|
30763
30763
|
}, 450));
|
|
30764
30764
|
};
|
|
30765
30765
|
return window.addEventListener("focus", Q), () => window.removeEventListener("focus", Q);
|
|
30766
30766
|
}, [Ca]), re(() => {
|
|
30767
30767
|
!va.current || !ga.current || (ft.current && (window.clearTimeout(ft.current), ft.current = null), window.requestAnimationFrame(() => {
|
|
30768
30768
|
window.requestAnimationFrame(() => {
|
|
30769
|
-
|
|
30769
|
+
tn(null), Ca(), va.current = !1, ga.current = !1;
|
|
30770
30770
|
});
|
|
30771
30771
|
}));
|
|
30772
30772
|
}, [Me, Ca]), zd({
|
|
@@ -30791,7 +30791,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30791
30791
|
setActiveBatchKey: sl,
|
|
30792
30792
|
setActiveBatchStartIndex: ol,
|
|
30793
30793
|
setActiveFileKey: ha,
|
|
30794
|
-
isDraggingRef:
|
|
30794
|
+
isDraggingRef: Zl,
|
|
30795
30795
|
richtextPrevScrollTopRef: tc,
|
|
30796
30796
|
videoState: st,
|
|
30797
30797
|
setVideoState: ba,
|
|
@@ -30807,20 +30807,20 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30807
30807
|
setIsFormValid: cl,
|
|
30808
30808
|
setReportAnalyzeState: Ea,
|
|
30809
30809
|
setMarkdownAnalyzeState: pl,
|
|
30810
|
-
setMarkdownNameAnalyzeState:
|
|
30810
|
+
setMarkdownNameAnalyzeState: nn,
|
|
30811
30811
|
collapsed: b,
|
|
30812
30812
|
measureExpandedContentHeight: Ca,
|
|
30813
30813
|
effectiveConfig: Oe,
|
|
30814
30814
|
files: Me,
|
|
30815
30815
|
multiVariableCounts: xt,
|
|
30816
30816
|
setMultiVariableCounts: Ta,
|
|
30817
|
-
savedCursorRef:
|
|
30817
|
+
savedCursorRef: en,
|
|
30818
30818
|
videoState: st,
|
|
30819
30819
|
resolvedReportNamesRef: $t,
|
|
30820
30820
|
reportAnalyzeState: Zt,
|
|
30821
|
-
requireReportUrlAnalyze:
|
|
30822
|
-
}),
|
|
30823
|
-
|
|
30821
|
+
requireReportUrlAnalyze: un
|
|
30822
|
+
}), sn = Z(Aa);
|
|
30823
|
+
sn.current = Aa;
|
|
30824
30824
|
const gc = Qd({
|
|
30825
30825
|
disabled: l,
|
|
30826
30826
|
config: e,
|
|
@@ -30831,7 +30831,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30831
30831
|
markdownAnalyzeRef: Zr,
|
|
30832
30832
|
reportAnalyzeRef: _t,
|
|
30833
30833
|
markdownNameAnalyzeRef: ei,
|
|
30834
|
-
markdownAnalyzeStateRef:
|
|
30834
|
+
markdownAnalyzeStateRef: ln,
|
|
30835
30835
|
markdownRawTextRef: ic,
|
|
30836
30836
|
setMarkdownAnalyzeState: pl,
|
|
30837
30837
|
setFooterFiles: Et,
|
|
@@ -30849,20 +30849,20 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30849
30849
|
setMultiVariableCounts: Ta,
|
|
30850
30850
|
videoState: st,
|
|
30851
30851
|
reportAnalyzeState: Zt,
|
|
30852
|
-
requireReportUrlAnalyze:
|
|
30852
|
+
requireReportUrlAnalyze: un
|
|
30853
30853
|
});
|
|
30854
|
-
const
|
|
30855
|
-
delete $t.current[Q], Pa({ keys: [Q] }),
|
|
30856
|
-
...
|
|
30854
|
+
const on = ue((Q, oe) => {
|
|
30855
|
+
delete $t.current[Q], Pa({ keys: [Q] }), oe === "report-url" && Ea((se) => ({
|
|
30856
|
+
...se,
|
|
30857
30857
|
[Q]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
|
|
30858
30858
|
}));
|
|
30859
30859
|
}, [Ea]), Ec = ue(
|
|
30860
30860
|
(Q) => {
|
|
30861
30861
|
ya();
|
|
30862
|
-
const { nodeKey:
|
|
30863
|
-
|
|
30862
|
+
const { nodeKey: oe, nodeType: se } = Nd(Q);
|
|
30863
|
+
on(oe, se), Q.focus(), sn.current();
|
|
30864
30864
|
},
|
|
30865
|
-
[
|
|
30865
|
+
[on, ya]
|
|
30866
30866
|
), yc = kd(
|
|
30867
30867
|
Y,
|
|
30868
30868
|
Ec,
|
|
@@ -30888,7 +30888,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30888
30888
|
editorRef: Y,
|
|
30889
30889
|
handleInput: Aa,
|
|
30890
30890
|
onEnterSend: di,
|
|
30891
|
-
onReportChipDeleted:
|
|
30891
|
+
onReportChipDeleted: on
|
|
30892
30892
|
}), xc = {
|
|
30893
30893
|
...n ? { width: typeof n == "number" ? `${n}px` : n } : {},
|
|
30894
30894
|
...d ? { border: d } : {},
|
|
@@ -30913,14 +30913,14 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30913
30913
|
// 折叠时覆盖 CSS 的 min-height:58px,否则 min-height > max-height 时 min-height 优先,导致露出第二行
|
|
30914
30914
|
minHeight: b ? 0 : void 0,
|
|
30915
30915
|
overflow: _c,
|
|
30916
|
-
overscrollBehavior:
|
|
30916
|
+
overscrollBehavior: me ? "contain" : "auto",
|
|
30917
30917
|
transition: kc,
|
|
30918
30918
|
willChange: "max-height"
|
|
30919
30919
|
};
|
|
30920
30920
|
return /* @__PURE__ */ he(
|
|
30921
30921
|
"div",
|
|
30922
30922
|
{
|
|
30923
|
-
className: `rich-text-editor ${
|
|
30923
|
+
className: `rich-text-editor ${me ? "rte-editor-selected" : ""}`,
|
|
30924
30924
|
style: xc,
|
|
30925
30925
|
"data-disabled": l,
|
|
30926
30926
|
ref: $,
|
|
@@ -30943,54 +30943,63 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30943
30943
|
className: "rte-footer-files-list",
|
|
30944
30944
|
ref: He,
|
|
30945
30945
|
onScroll: ma,
|
|
30946
|
-
children: nt.map((Q,
|
|
30947
|
-
const
|
|
30948
|
-
return /* @__PURE__ */ he(
|
|
30949
|
-
|
|
30950
|
-
|
|
30951
|
-
|
|
30952
|
-
|
|
30953
|
-
|
|
30954
|
-
|
|
30955
|
-
|
|
30956
|
-
|
|
30957
|
-
|
|
30958
|
-
|
|
30959
|
-
// mask:false
|
|
30960
|
-
},
|
|
30961
|
-
className: "rte-footer-file-thumb",
|
|
30962
|
-
src: URL.createObjectURL(Q),
|
|
30963
|
-
alt: Q.name
|
|
30964
|
-
}
|
|
30965
|
-
) : /* @__PURE__ */ V("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ V("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ V("use", { xlinkHref: `#${(() => {
|
|
30966
|
-
const be = (Q.name || "").split(".").pop()?.toLowerCase() || "";
|
|
30967
|
-
return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(be) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(be) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(be) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(be) ? "icon-txt" : be === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(be) ? "icon-a-htmljson" : be === "md" ? "icon-md" : "icon-lianjie";
|
|
30968
|
-
})()}` }) }) }),
|
|
30969
|
-
/* @__PURE__ */ he("div", { className: "rte-footer-file-info", children: [
|
|
30970
|
-
/* @__PURE__ */ V("span", { className: "rte-footer-file-name", title: Q.name, children: Q.name }),
|
|
30971
|
-
/* @__PURE__ */ V("span", { className: "rte-footer-file-size", children: ge })
|
|
30972
|
-
] }),
|
|
30973
|
-
/* @__PURE__ */ V(
|
|
30974
|
-
"span",
|
|
30975
|
-
{
|
|
30976
|
-
className: "rte-footer-file-remove",
|
|
30977
|
-
onClick: () => Wo(se),
|
|
30978
|
-
children: /* @__PURE__ */ V(
|
|
30979
|
-
"i",
|
|
30946
|
+
children: nt.map((Q, oe) => {
|
|
30947
|
+
const se = Q.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Q.name || ""), ve = Q.size < 1024 ? `${Q.size}B` : Q.size < 1024 * 1024 ? `${Math.round(Q.size / 1024)}KB` : `${(Q.size / (1024 * 1024)).toFixed(1)}MB`, ye = se ? URL.createObjectURL(Q) : "";
|
|
30948
|
+
return /* @__PURE__ */ he(
|
|
30949
|
+
"div",
|
|
30950
|
+
{
|
|
30951
|
+
className: "rte-footer-file-chip",
|
|
30952
|
+
style: se ? { cursor: "pointer" } : void 0,
|
|
30953
|
+
onClick: se ? () => {
|
|
30954
|
+
ne(ye), Ce(!0);
|
|
30955
|
+
} : void 0,
|
|
30956
|
+
children: [
|
|
30957
|
+
se ? /* @__PURE__ */ V(
|
|
30958
|
+
"img",
|
|
30980
30959
|
{
|
|
30981
|
-
className: "iconfont icon-guanbi ",
|
|
30982
30960
|
style: {
|
|
30983
|
-
width: "
|
|
30984
|
-
height: "
|
|
30985
|
-
|
|
30986
|
-
|
|
30987
|
-
|
|
30988
|
-
|
|
30961
|
+
width: "32px",
|
|
30962
|
+
height: "32px",
|
|
30963
|
+
objectFit: "cover"
|
|
30964
|
+
},
|
|
30965
|
+
className: "rte-footer-file-thumb",
|
|
30966
|
+
src: ye,
|
|
30967
|
+
alt: Q.name
|
|
30968
|
+
}
|
|
30969
|
+
) : /* @__PURE__ */ V("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ V("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ V("use", { xlinkHref: `#${(() => {
|
|
30970
|
+
const ce = (Q.name || "").split(".").pop()?.toLowerCase() || "";
|
|
30971
|
+
return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(ce) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(ce) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(ce) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(ce) ? "icon-txt" : ce === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(ce) ? "icon-a-htmljson" : ce === "md" ? "icon-md" : "icon-lianjie";
|
|
30972
|
+
})()}` }) }) }),
|
|
30973
|
+
/* @__PURE__ */ he("div", { className: "rte-footer-file-info", children: [
|
|
30974
|
+
/* @__PURE__ */ V("span", { className: "rte-footer-file-name", title: Q.name, children: Q.name }),
|
|
30975
|
+
/* @__PURE__ */ V("span", { className: "rte-footer-file-size", children: ve })
|
|
30976
|
+
] }),
|
|
30977
|
+
/* @__PURE__ */ V(
|
|
30978
|
+
"span",
|
|
30979
|
+
{
|
|
30980
|
+
className: "rte-footer-file-remove",
|
|
30981
|
+
onClick: (ce) => {
|
|
30982
|
+
ce.stopPropagation(), Wo(oe);
|
|
30983
|
+
},
|
|
30984
|
+
children: /* @__PURE__ */ V(
|
|
30985
|
+
"i",
|
|
30986
|
+
{
|
|
30987
|
+
className: "iconfont icon-guanbi ",
|
|
30988
|
+
style: {
|
|
30989
|
+
width: "8px",
|
|
30990
|
+
height: "8px",
|
|
30991
|
+
fontSize: "8px",
|
|
30992
|
+
display: "flex",
|
|
30993
|
+
alignItems: "center"
|
|
30994
|
+
}
|
|
30995
|
+
}
|
|
30996
|
+
)
|
|
30989
30997
|
}
|
|
30990
30998
|
)
|
|
30991
|
-
|
|
30992
|
-
|
|
30993
|
-
|
|
30999
|
+
]
|
|
31000
|
+
},
|
|
31001
|
+
`${Q.name}-${Q.size}-${oe}`
|
|
31002
|
+
);
|
|
30994
31003
|
})
|
|
30995
31004
|
}
|
|
30996
31005
|
),
|
|
@@ -31043,8 +31052,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
31043
31052
|
className: "rte-file-input",
|
|
31044
31053
|
accept: "video/*",
|
|
31045
31054
|
onChange: (Q) => {
|
|
31046
|
-
const
|
|
31047
|
-
|
|
31055
|
+
const oe = Q.target.files?.[0], se = Ke.current;
|
|
31056
|
+
oe && oe.size > 1024 * 1024 * 1024 ? W.warning("视频文件不能超过1GB") : oe && se && pc(se, oe), Ke.current = null, ke.current && (ke.current.value = "");
|
|
31048
31057
|
}
|
|
31049
31058
|
}
|
|
31050
31059
|
)
|
|
@@ -31081,12 +31090,12 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
31081
31090
|
] })
|
|
31082
31091
|
}
|
|
31083
31092
|
) }),
|
|
31084
|
-
!e.find((Q) => Q.type === "tag") && /* @__PURE__ */ he(
|
|
31093
|
+
!e.find((Q) => Q.type === "tag") && /* @__PURE__ */ he($l, { children: [
|
|
31085
31094
|
/* @__PURE__ */ V(
|
|
31086
31095
|
"div",
|
|
31087
31096
|
{
|
|
31088
31097
|
className: "rte-footer-upload-btn",
|
|
31089
|
-
onClick: () =>
|
|
31098
|
+
onClick: () => fe.current?.click(),
|
|
31090
31099
|
title: "上传文件",
|
|
31091
31100
|
children: /* @__PURE__ */ V("i", { className: "iconfont icon-lianjie", style: { fontSize: "16px" } })
|
|
31092
31101
|
}
|
|
@@ -31095,7 +31104,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
31095
31104
|
"input",
|
|
31096
31105
|
{
|
|
31097
31106
|
type: "file",
|
|
31098
|
-
ref:
|
|
31107
|
+
ref: fe,
|
|
31099
31108
|
className: "rte-file-input",
|
|
31100
31109
|
accept: ".pdf,.xla,.xlb,.xlc,.xlm,.xls,.xlsx,.xlt,.xlw,.csv,.tsv,.iif,.doc,.docx,.dot,.odt,.rtf,.pot,.ppa,.pps,.ppt,.pptx,.pwz,.wiz,.asm,.bat,.c,.cc,.conf,.cpp,.css,.cxx,.def,.dic,.eml,.h,.hh,.htm,.html,.ics,.ifb,.in,.js,.json,.ksh,.png,.jpeg,.jpg,.gif,.webp,.md,.php,.pkl,.rb,.tar,.tex,.ts,.txt,.xml,",
|
|
31101
31110
|
multiple: !0,
|
|
@@ -31110,16 +31119,16 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
31110
31119
|
/* @__PURE__ */ V("span", { className: "rte-brand-text", style: { marginLeft: "4px" }, children: "SealSeek 2.0" })
|
|
31111
31120
|
] }),
|
|
31112
31121
|
(() => {
|
|
31113
|
-
const Q = e.find((
|
|
31122
|
+
const Q = e.find((se) => se.type === "tag");
|
|
31114
31123
|
if (!Q || !Q.text) return null;
|
|
31115
|
-
const
|
|
31116
|
-
return !
|
|
31124
|
+
const oe = i.find((se) => se.label === Q.text);
|
|
31125
|
+
return !oe || oe.points === void 0 || oe.points === null ? null : /* @__PURE__ */ he("div", { className: "rte-points-badge", style: { position: "relative" }, children: [
|
|
31117
31126
|
/* @__PURE__ */ V("i", { className: "iconfont icon-jifen", style: { marginRight: "4px", fontSize: "16px" } }),
|
|
31118
31127
|
/* @__PURE__ */ he("span", { style: { fontSize: "16px", lineHeight: "22px" }, children: [
|
|
31119
31128
|
"-",
|
|
31120
|
-
String(
|
|
31129
|
+
String(oe.points)
|
|
31121
31130
|
] }),
|
|
31122
|
-
|
|
31131
|
+
oe.labelValue === 2 && /* @__PURE__ */ V("div", { className: "rte-limited-free-badge", children: /* @__PURE__ */ V("span", { className: "rte-limited-free-text", children: "限时免费" }) })
|
|
31123
31132
|
] });
|
|
31124
31133
|
})(),
|
|
31125
31134
|
/* @__PURE__ */ V(
|
|
@@ -31136,12 +31145,12 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
31136
31145
|
] }),
|
|
31137
31146
|
yt,
|
|
31138
31147
|
/* @__PURE__ */ V(
|
|
31139
|
-
|
|
31148
|
+
Xn,
|
|
31140
31149
|
{
|
|
31141
31150
|
style: { display: "none" },
|
|
31142
31151
|
src: X,
|
|
31143
31152
|
preview: {
|
|
31144
|
-
visible:
|
|
31153
|
+
visible: be,
|
|
31145
31154
|
onVisibleChange: (Q) => Ce(Q)
|
|
31146
31155
|
}
|
|
31147
31156
|
}
|
|
@@ -31701,18 +31710,18 @@ const sT = ({
|
|
|
31701
31710
|
P.current = e, O.current = v, w.current = x, T.current = y;
|
|
31702
31711
|
});
|
|
31703
31712
|
const q = ue((Y, le) => {
|
|
31704
|
-
let
|
|
31713
|
+
let fe = 0;
|
|
31705
31714
|
L(!0);
|
|
31706
|
-
const
|
|
31707
|
-
|
|
31715
|
+
const me = () => {
|
|
31716
|
+
fe < Y.length ? (E(Y.slice(0, fe + 1)), fe++, N.current = window.setTimeout(me, a)) : (L(!1), le?.());
|
|
31708
31717
|
};
|
|
31709
|
-
|
|
31718
|
+
me();
|
|
31710
31719
|
}, [a]), H = ue((Y) => {
|
|
31711
31720
|
let le = T.current.length;
|
|
31712
|
-
const
|
|
31713
|
-
le > 0 ? (E(T.current.slice(0, le - 1)), le--, N.current = window.setTimeout(
|
|
31721
|
+
const fe = () => {
|
|
31722
|
+
le > 0 ? (E(T.current.slice(0, le - 1)), le--, N.current = window.setTimeout(fe, a / 2)) : Y?.();
|
|
31714
31723
|
};
|
|
31715
|
-
|
|
31724
|
+
fe();
|
|
31716
31725
|
}, [a]), F = ue(() => {
|
|
31717
31726
|
if (P.current.length === 0 || w.current) return;
|
|
31718
31727
|
b(!0);
|