bi-components-library 1.2.33 → 1.2.34
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/index.es.js +437 -436
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +16 -16
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as U, jsxs as be, Fragment as Dl } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import Ne, { useState as le, useRef as Z, useMemo as Ot, useCallback as ie, useEffect as re, useLayoutEffect as Ye, forwardRef as ku, createContext as Nu } from "react";
|
|
3
3
|
import { Button as $t, Card as rr, Modal as uc, Table as ir, Flex as ti, Spin as Iu, Empty as sc, Select as Ga, Form as ul, Input as ur, Space as oc, Cascader as cc, Popover as dc, Tooltip as fc, Image as xl, DatePicker as pc, message as hc, Dropdown as bc, Progress as mc, Pagination as vc, theme as gc } from "antd";
|
|
4
4
|
import { createFromIconfontCN as Ec, LeftOutlined as yc, SearchOutlined as Tc, ReloadOutlined as xc, InfoCircleOutlined as Cc, SendOutlined as Ac, PauseCircleOutlined as Sc, PlayCircleOutlined as _c } from "@ant-design/icons";
|
|
5
5
|
import { createPortal as Vt } from "react-dom";
|
|
@@ -732,7 +732,7 @@ Bc.__docgenInfo = {
|
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
734
|
const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", Fc = ({ host: e, onChange: t }) => {
|
|
735
|
-
const a = e.dataset.key, l = e.dataset.placeholder, n = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", r = e.dataset.required === "true", i = e.dataset.value || "", u =
|
|
735
|
+
const a = e.dataset.key, l = e.dataset.placeholder, n = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", r = e.dataset.required === "true", i = e.dataset.value || "", u = Ne.useMemo(() => {
|
|
736
736
|
try {
|
|
737
737
|
return JSON.parse(n);
|
|
738
738
|
} catch {
|
|
@@ -744,13 +744,13 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", Fc =
|
|
|
744
744
|
re(() => {
|
|
745
745
|
o(i || void 0);
|
|
746
746
|
}, [i]);
|
|
747
|
-
const y =
|
|
747
|
+
const y = Ne.useCallback(() => {
|
|
748
748
|
if (s != null && s !== "") {
|
|
749
749
|
const h = u.find((v) => String(v.value) === String(s));
|
|
750
750
|
return h ? typeof h.label == "string" ? h.label : String(h.label ?? s) : String(s);
|
|
751
751
|
}
|
|
752
752
|
return l || "请选择";
|
|
753
|
-
}, [s, u, l]), b =
|
|
753
|
+
}, [s, u, l]), b = Ne.useCallback(() => {
|
|
754
754
|
const h = m.current;
|
|
755
755
|
if (!h) return;
|
|
756
756
|
const v = h.querySelector(".ant-select-selection-item"), g = h.querySelector(".ant-select-selection-placeholder"), E = v || g, A = (E?.textContent || "").trim() || y(), w = h.querySelector(".ant-select-selector"), S = E || w || h, O = window.getComputedStyle(S), k = E ? O.fontSize : "16px", T = O.fontFamily || "sans-serif", _ = O.fontWeight || "400", N = `${O.fontStyle || "normal"} ${_} ${k} ${T}`, L = document.createElement("canvas").getContext("2d"), C = L ? Math.ceil((L.font = N, L.measureText(A).width || 0)) : 0;
|
|
@@ -904,30 +904,29 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", Fc =
|
|
|
904
904
|
re(() => {
|
|
905
905
|
o(i || void 0);
|
|
906
906
|
}, [i]);
|
|
907
|
-
const O =
|
|
907
|
+
const O = Ne.useCallback(() => {
|
|
908
908
|
if (s != null && s !== "") {
|
|
909
909
|
const T = v.find((_) => String(_.value) === String(s));
|
|
910
910
|
return T ? typeof T.label == "string" ? T.label : String(T.label ?? s) : String(s);
|
|
911
911
|
}
|
|
912
912
|
return l || "请选择";
|
|
913
|
-
}, [s, v, l]), k =
|
|
913
|
+
}, [s, v, l]), k = Ne.useCallback(() => {
|
|
914
914
|
const T = h.current;
|
|
915
915
|
if (!T) return;
|
|
916
916
|
const _ = T.querySelector(".ant-select-selection-item"), x = T.querySelector(".ant-select-selection-placeholder"), N = _ || x, M = (N?.textContent || "").trim() || O(), L = T.querySelector(".ant-select-selector"), C = N || L || T, P = window.getComputedStyle(C), F = N ? P.fontSize : "16px", H = P.fontFamily || "sans-serif", q = P.fontWeight || "400", V = `${P.fontStyle || "normal"} ${q} ${F} ${H}`, R = document.createElement("canvas").getContext("2d"), j = R ? Math.ceil((R.font = V, R.measureText(M).width || 0)) : 0;
|
|
917
917
|
let ue = 0;
|
|
918
918
|
if (L) {
|
|
919
|
-
const
|
|
920
|
-
ue = (Number.parseFloat(
|
|
921
|
-
}
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
b((ce) => ce === ne ? ce : ne);
|
|
919
|
+
const Te = window.getComputedStyle(L);
|
|
920
|
+
ue = (Number.parseFloat(Te.paddingLeft) || 0) + (Number.parseFloat(Te.paddingRight) || 0);
|
|
921
|
+
}
|
|
922
|
+
const X = T.querySelector(".ant-select-arrow"), K = X ? Math.ceil(X.getBoundingClientRect().width) : 12, ne = T.querySelector(".ant-select-clear");
|
|
923
|
+
let pe = 0;
|
|
924
|
+
if (ne) {
|
|
925
|
+
const Te = window.getComputedStyle(ne);
|
|
926
|
+
Te.display !== "none" && Te.visibility !== "hidden" && (pe = Math.ceil(ne.getBoundingClientRect().width));
|
|
927
|
+
}
|
|
928
|
+
const de = Math.min(240, Math.max(80, j + ue + K + pe + 4));
|
|
929
|
+
b((Te) => Te === de ? Te : de);
|
|
931
930
|
}, [O]);
|
|
932
931
|
return Ye(() => {
|
|
933
932
|
const T = window.requestAnimationFrame(() => {
|
|
@@ -1035,13 +1034,13 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", Fc =
|
|
|
1035
1034
|
return r.observe(l, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
1036
1035
|
}, [e]), t;
|
|
1037
1036
|
}, qc = ({ host: e, onChange: t }) => {
|
|
1038
|
-
const a = e.dataset.key, l = e.dataset.placeholder, n = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", r = e.dataset.value || "", i =
|
|
1037
|
+
const a = e.dataset.key, l = e.dataset.placeholder, n = e.dataset.options ? decodeURIComponent(e.dataset.options) : "[]", r = e.dataset.value || "", i = Ne.useMemo(() => {
|
|
1039
1038
|
try {
|
|
1040
1039
|
return JSON.parse(n);
|
|
1041
1040
|
} catch {
|
|
1042
1041
|
return [];
|
|
1043
1042
|
}
|
|
1044
|
-
}, [n]), u =
|
|
1043
|
+
}, [n]), u = Ne.useCallback((S) => S ? S.split("-") : [], []), [s, o] = le(() => u(r)), [c, d] = le(100), [m, p] = le(0), y = Z(u(r)), b = Z(null), h = s.length >= 2, v = (S) => {
|
|
1045
1044
|
o(S), y.current = S;
|
|
1046
1045
|
const O = S.join("-");
|
|
1047
1046
|
e.setAttribute("data-value", O), t(a, O);
|
|
@@ -1057,7 +1056,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", Fc =
|
|
|
1057
1056
|
re(() => {
|
|
1058
1057
|
o(u(r));
|
|
1059
1058
|
}, [r, u]);
|
|
1060
|
-
const A =
|
|
1059
|
+
const A = Ne.useCallback(() => s.length >= 2 ? s.join("-") : l || "请选择省市区", [s, l]), w = Ne.useCallback(() => {
|
|
1061
1060
|
const S = b.current;
|
|
1062
1061
|
if (!S) return;
|
|
1063
1062
|
const O = A(), k = S.querySelector(".ant-select-selector"), T = S.querySelector(".ant-select-selection-item") || S.querySelector(".ant-select-selection-placeholder"), _ = T || k || S, x = window.getComputedStyle(_), N = T ? x.fontSize : "16px", M = x.fontFamily || "sans-serif", L = x.fontWeight || "400", P = `${x.fontStyle || "normal"} ${L} ${N} ${M}`, H = document.createElement("canvas").getContext("2d"), q = H ? Math.ceil((H.font = P, H.measureText(O).width || 0)) : 0;
|
|
@@ -1220,7 +1219,7 @@ const Wc = ({ host: e, onChange: t }) => {
|
|
|
1220
1219
|
}, [u]), re(() => {
|
|
1221
1220
|
e.classList.toggle("rte-variable-multiline", h);
|
|
1222
1221
|
}, [e, h]);
|
|
1223
|
-
const v =
|
|
1222
|
+
const v = Ne.useCallback(() => {
|
|
1224
1223
|
const A = p.current;
|
|
1225
1224
|
if (!A) return;
|
|
1226
1225
|
const w = A.querySelector("textarea");
|
|
@@ -1922,50 +1921,50 @@ function ud(e, t, a, l, n = []) {
|
|
|
1922
1921
|
};
|
|
1923
1922
|
}, [e, t, i, ...n]);
|
|
1924
1923
|
}
|
|
1925
|
-
function sd(e, t) {
|
|
1924
|
+
function sd(e, t, a) {
|
|
1926
1925
|
return ie(
|
|
1927
|
-
async (
|
|
1926
|
+
async (l, n) => {
|
|
1928
1927
|
if (!e) return;
|
|
1929
|
-
t((
|
|
1930
|
-
...
|
|
1931
|
-
[
|
|
1928
|
+
t((s) => ({
|
|
1929
|
+
...s,
|
|
1930
|
+
[l]: { status: "loading", file: n, fileName: n.name, progress: 0 }
|
|
1932
1931
|
}));
|
|
1933
|
-
const
|
|
1934
|
-
|
|
1935
|
-
const
|
|
1936
|
-
return !
|
|
1932
|
+
const r = await rd(n).catch(() => "");
|
|
1933
|
+
r && t((s) => {
|
|
1934
|
+
const o = s[l];
|
|
1935
|
+
return !o || o.status !== "loading" ? s : { ...s, [l]: { ...o, thumbnail: r } };
|
|
1937
1936
|
});
|
|
1938
|
-
const
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1937
|
+
const i = 2 * Math.PI * 6.5, u = (s) => {
|
|
1938
|
+
const o = Math.min(Math.max(s, 0), 100), c = a.current?.querySelector(
|
|
1939
|
+
`[data-type="video-upload"][data-key="${l}"] .video-upload-progress-ring circle:last-child`
|
|
1940
|
+
);
|
|
1941
|
+
c && c.setAttribute("stroke-dashoffset", String(i * (1 - o / 100)));
|
|
1943
1942
|
};
|
|
1944
1943
|
try {
|
|
1945
|
-
const
|
|
1946
|
-
t((
|
|
1947
|
-
...
|
|
1948
|
-
[
|
|
1944
|
+
const s = await e(n, u);
|
|
1945
|
+
t((o) => ({
|
|
1946
|
+
...o,
|
|
1947
|
+
[l]: {
|
|
1949
1948
|
status: "success",
|
|
1950
|
-
videoUrl:
|
|
1951
|
-
thumbnail:
|
|
1952
|
-
file:
|
|
1953
|
-
fileName:
|
|
1949
|
+
videoUrl: s.videoUrl,
|
|
1950
|
+
thumbnail: s.thumbnail || r,
|
|
1951
|
+
file: n,
|
|
1952
|
+
fileName: n.name
|
|
1954
1953
|
}
|
|
1955
1954
|
}));
|
|
1956
|
-
} catch (
|
|
1957
|
-
t((
|
|
1958
|
-
...
|
|
1959
|
-
[
|
|
1955
|
+
} catch (s) {
|
|
1956
|
+
t((o) => ({
|
|
1957
|
+
...o,
|
|
1958
|
+
[l]: {
|
|
1960
1959
|
status: "error",
|
|
1961
|
-
file:
|
|
1962
|
-
fileName:
|
|
1963
|
-
errorMsg:
|
|
1960
|
+
file: n,
|
|
1961
|
+
fileName: n.name,
|
|
1962
|
+
errorMsg: s instanceof Error ? s.message : "上传失败"
|
|
1964
1963
|
}
|
|
1965
1964
|
}));
|
|
1966
1965
|
}
|
|
1967
1966
|
},
|
|
1968
|
-
[e, t]
|
|
1967
|
+
[e, t, a]
|
|
1969
1968
|
);
|
|
1970
1969
|
}
|
|
1971
1970
|
function od(e, t, a, l) {
|
|
@@ -3561,7 +3560,8 @@ const Ed = ({
|
|
|
3561
3560
|
a,
|
|
3562
3561
|
r,
|
|
3563
3562
|
n,
|
|
3564
|
-
i
|
|
3563
|
+
i,
|
|
3564
|
+
u
|
|
3565
3565
|
]);
|
|
3566
3566
|
}, yd = ({
|
|
3567
3567
|
disabled: e,
|
|
@@ -3650,8 +3650,8 @@ const Ed = ({
|
|
|
3650
3650
|
Y.classList.add("rte-textarea-expanded"), Y.style.maxHeight = "none", Y.style.height = "100%";
|
|
3651
3651
|
else {
|
|
3652
3652
|
Y.classList.remove("rte-textarea-expanded");
|
|
3653
|
-
const
|
|
3654
|
-
Y.style.maxHeight = `${
|
|
3653
|
+
const X = Y.dataset.maxHeight || "252";
|
|
3654
|
+
Y.style.maxHeight = `${X}px`, Y.style.height = "auto";
|
|
3655
3655
|
}
|
|
3656
3656
|
r.current && (j ? r.current.classList.add("rte-overlay-active") : r.current.classList.remove("rte-overlay-active"));
|
|
3657
3657
|
return;
|
|
@@ -3660,13 +3660,13 @@ const Ed = ({
|
|
|
3660
3660
|
if (L) {
|
|
3661
3661
|
k.preventDefault(), k.stopPropagation();
|
|
3662
3662
|
const V = L.closest(".rte-richtext-wrapper"), Y = V?.querySelector('[data-type="richtext"]'), j = !(L.getAttribute("data-expanded") === "true");
|
|
3663
|
-
((ne,
|
|
3664
|
-
ne.setAttribute("data-expanded", String(
|
|
3663
|
+
((ne, pe) => {
|
|
3664
|
+
ne.setAttribute("data-expanded", String(pe)), ne.innerHTML = pe ? '<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>';
|
|
3665
3665
|
})(L, j);
|
|
3666
|
-
const
|
|
3667
|
-
|
|
3668
|
-
const
|
|
3669
|
-
if (Y && (j ? (Y.style.height = "100%", Y.style.overflow = "auto") : (Y.style.height = "", Y.style.overflow = "")),
|
|
3666
|
+
const X = V?.closest(".rte-richtext-required");
|
|
3667
|
+
X ? X.classList.toggle("rte-richtext-expanded", j) : V && V.classList.toggle("rte-richtext-expanded", j);
|
|
3668
|
+
const K = V?.closest(".exclusion-wrapper") || V?.parentElement;
|
|
3669
|
+
if (Y && (j ? (Y.style.height = "100%", Y.style.overflow = "auto") : (Y.style.height = "", Y.style.overflow = "")), K && (K.classList.toggle("rte-richtext-host-expanded", j), N(K, j)), r.current) {
|
|
3670
3670
|
if (r.current.classList.toggle("rte-richtext-fullscreen-active", j), i.current?.classList.toggle("rte-richtext-container-expanded", j), i.current)
|
|
3671
3671
|
if (j) {
|
|
3672
3672
|
const ne = Math.ceil(i.current.getBoundingClientRect().height || 0);
|
|
@@ -3720,8 +3720,8 @@ const Ed = ({
|
|
|
3720
3720
|
P.focus();
|
|
3721
3721
|
const j = window.getSelection();
|
|
3722
3722
|
if (!j) return;
|
|
3723
|
-
const ue = document.createTreeWalker(P, NodeFilter.SHOW_TEXT),
|
|
3724
|
-
|
|
3723
|
+
const ue = document.createTreeWalker(P, NodeFilter.SHOW_TEXT), X = ue.nextNode() ? ue.currentNode : null, K = document.createRange();
|
|
3724
|
+
X ? (K.setStart(X, 0), K.collapse(!0)) : (K.selectNodeContents(P), K.collapse(!0)), j.removeAllRanges(), j.addRange(K), O("after placeCaretLeft()");
|
|
3725
3725
|
} catch {
|
|
3726
3726
|
}
|
|
3727
3727
|
};
|
|
@@ -3764,17 +3764,17 @@ const Ed = ({
|
|
|
3764
3764
|
);
|
|
3765
3765
|
if (j && typeof j.maxCount == "number" && typeof j.minCount == "number") {
|
|
3766
3766
|
const ue = j.maxCount;
|
|
3767
|
-
c((
|
|
3768
|
-
const
|
|
3769
|
-
for (let
|
|
3770
|
-
const
|
|
3771
|
-
|
|
3767
|
+
c((X) => {
|
|
3768
|
+
const K = { ...X }, ne = [];
|
|
3769
|
+
for (let pe = 0; pe < ue; pe++) {
|
|
3770
|
+
const de = `${R}-${pe}`, Te = K[de];
|
|
3771
|
+
Te != null && de !== Y && ne.push(Te);
|
|
3772
3772
|
}
|
|
3773
|
-
for (let
|
|
3774
|
-
delete
|
|
3775
|
-
return ne.forEach((
|
|
3776
|
-
|
|
3777
|
-
}),
|
|
3773
|
+
for (let pe = 0; pe < ue; pe++)
|
|
3774
|
+
delete K[`${R}-${pe}`];
|
|
3775
|
+
return ne.forEach((pe, de) => {
|
|
3776
|
+
K[`${R}-${de}`] = pe;
|
|
3777
|
+
}), K;
|
|
3778
3778
|
});
|
|
3779
3779
|
} else
|
|
3780
3780
|
d(Y);
|
|
@@ -3793,19 +3793,19 @@ const Ed = ({
|
|
|
3793
3793
|
w(ne);
|
|
3794
3794
|
return;
|
|
3795
3795
|
}
|
|
3796
|
-
const ue = Y || V,
|
|
3797
|
-
if (u.current && (
|
|
3798
|
-
const
|
|
3799
|
-
if (
|
|
3800
|
-
const ne =
|
|
3801
|
-
if (
|
|
3796
|
+
const ue = Y || V, X = l.find((K) => K.type === "upload" && K.key === ue);
|
|
3797
|
+
if (u.current && (X?.accept ? u.current.accept = X.accept : X?.acceptType === "image" ? u.current.accept = "image/*" : X?.acceptType === "file" ? u.current.accept = ".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json" : u.current.accept = ""), Y) {
|
|
3798
|
+
const K = l.find((ne) => ne.type === "upload" && ne.key === Y);
|
|
3799
|
+
if (K && typeof K.maxCount == "number" && typeof K.minCount == "number") {
|
|
3800
|
+
const ne = K.maxCount, pe = o[V] != null, de = R != null ? Number.parseInt(R, 10) : NaN;
|
|
3801
|
+
if (pe) {
|
|
3802
3802
|
u.current && (u.current.multiple = !1), m(null), p(null), y(V), s?.(), u.current?.click();
|
|
3803
3803
|
return;
|
|
3804
3804
|
}
|
|
3805
|
-
let
|
|
3805
|
+
let Te = 0;
|
|
3806
3806
|
for (let Me = 0; Me < ne; Me++)
|
|
3807
|
-
o[`${Y}-${Me}`] != null && (
|
|
3808
|
-
|
|
3807
|
+
o[`${Y}-${Me}`] != null && (Te += 1);
|
|
3808
|
+
Te < ne && u.current ? (u.current.multiple = !0, m(Y), p(Number.isFinite(de) ? de : null), y(null), s?.(), u.current.click()) : (u.current && (u.current.multiple = !1), m(null), p(null), y(V), s?.(), u.current?.click());
|
|
3809
3809
|
} else
|
|
3810
3810
|
u.current && (u.current.multiple = !1), m(null), p(null), y(V), s?.(), u.current?.click();
|
|
3811
3811
|
} else
|
|
@@ -4061,7 +4061,8 @@ const Ed = ({
|
|
|
4061
4061
|
i,
|
|
4062
4062
|
m,
|
|
4063
4063
|
n,
|
|
4064
|
-
b
|
|
4064
|
+
b,
|
|
4065
|
+
y
|
|
4065
4066
|
]), xd = ({
|
|
4066
4067
|
disabled: e,
|
|
4067
4068
|
lockStructure: t,
|
|
@@ -4532,20 +4533,20 @@ const Ed = ({
|
|
|
4532
4533
|
const C = /[、,,\s\n\r\t]+/, P = w.split(C).map((F) => F.trim()).filter((F) => F.length > 0);
|
|
4533
4534
|
if (P.length > 1) {
|
|
4534
4535
|
const F = parseInt(x.dataset.index || "0", 10), H = t.find(
|
|
4535
|
-
(
|
|
4536
|
+
(K) => Ge(K.type) && K.key === N
|
|
4536
4537
|
)?.maxCount || 9, q = a[N] || 1, I = Math.min(F + P.length, H);
|
|
4537
|
-
I > q && l((
|
|
4538
|
-
...
|
|
4538
|
+
I > q && l((X) => ({
|
|
4539
|
+
...X,
|
|
4539
4540
|
[N]: I
|
|
4540
4541
|
}));
|
|
4541
4542
|
const V = [];
|
|
4542
|
-
for (let
|
|
4543
|
-
const
|
|
4544
|
-
`[data-type="variable"][data-key="${
|
|
4543
|
+
for (let X = 0; X < q; X++) {
|
|
4544
|
+
const K = `${N}_${X}`, ne = n.current.querySelector(
|
|
4545
|
+
`[data-type="variable"][data-key="${K}"][data-multi-key="${N}"]`
|
|
4545
4546
|
);
|
|
4546
4547
|
if (ne) {
|
|
4547
|
-
const
|
|
4548
|
-
V.push(
|
|
4548
|
+
const pe = ne.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4549
|
+
V.push(pe);
|
|
4549
4550
|
}
|
|
4550
4551
|
}
|
|
4551
4552
|
V.splice(
|
|
@@ -4556,18 +4557,18 @@ const Ed = ({
|
|
|
4556
4557
|
const Y = V.slice(0, H);
|
|
4557
4558
|
Y.length > 0 && Y[Y.length - 1] !== "" && Y.length < H && Y.push("");
|
|
4558
4559
|
const R = Math.max(Y.length, 1), j = {};
|
|
4559
|
-
Y.forEach((
|
|
4560
|
-
|
|
4560
|
+
Y.forEach((X, K) => {
|
|
4561
|
+
X && (j[`${N}_${K}`] = X);
|
|
4561
4562
|
}), n.current.querySelectorAll(
|
|
4562
4563
|
'[data-type="variable"]'
|
|
4563
|
-
).forEach((
|
|
4564
|
-
const
|
|
4565
|
-
if (
|
|
4566
|
-
const
|
|
4567
|
-
|
|
4564
|
+
).forEach((X) => {
|
|
4565
|
+
const K = X.dataset.key, ne = X.dataset.multiKey;
|
|
4566
|
+
if (K && ne !== N) {
|
|
4567
|
+
const pe = X.innerText.replace(/[\u200B\n]/g, "").trim();
|
|
4568
|
+
pe && (j[K] = pe);
|
|
4568
4569
|
}
|
|
4569
|
-
}), n.current.__tempVariableValues = j, l((
|
|
4570
|
-
...
|
|
4570
|
+
}), n.current.__tempVariableValues = j, l((X) => ({
|
|
4571
|
+
...X,
|
|
4571
4572
|
[N]: R
|
|
4572
4573
|
}));
|
|
4573
4574
|
return;
|
|
@@ -7443,7 +7444,7 @@ function Wu(e) {
|
|
|
7443
7444
|
}
|
|
7444
7445
|
function ju(e) {
|
|
7445
7446
|
const t = [];
|
|
7446
|
-
return
|
|
7447
|
+
return Ne.Children.toArray(e).forEach((a) => {
|
|
7447
7448
|
Wu(a) ? t.push(a) : a.props && a.props.children && ju(a.props.children).forEach((l) => t.push(l));
|
|
7448
7449
|
}), t;
|
|
7449
7450
|
}
|
|
@@ -7454,7 +7455,7 @@ function Jf(e) {
|
|
|
7454
7455
|
"wrapper-start": [],
|
|
7455
7456
|
"wrapper-end": []
|
|
7456
7457
|
};
|
|
7457
|
-
return
|
|
7458
|
+
return Ne.Children.toArray(e).forEach((l) => {
|
|
7458
7459
|
if (Wu(l))
|
|
7459
7460
|
t.push(l);
|
|
7460
7461
|
else if (l.props && l.props.slot && a[l.props.slot])
|
|
@@ -7484,7 +7485,7 @@ function Zf(e, t, a) {
|
|
|
7484
7485
|
} = a, u = e.params.loop ? -t.length : 0, s = e.params.loop ? t.length * 2 : t.length, o = [];
|
|
7485
7486
|
for (let c = u; c < s; c += 1)
|
|
7486
7487
|
c >= r && c <= i && o.push(t[l(c)]);
|
|
7487
|
-
return o.map((c, d) => /* @__PURE__ */
|
|
7488
|
+
return o.map((c, d) => /* @__PURE__ */ Ne.cloneElement(c, {
|
|
7488
7489
|
swiper: e,
|
|
7489
7490
|
style: n,
|
|
7490
7491
|
key: c.props.virtualIndex || c.key || `slide-${d}`
|
|
@@ -7579,28 +7580,28 @@ const si = /* @__PURE__ */ Nu(null), ep = /* @__PURE__ */ Nu(null), Xu = /* @__P
|
|
|
7579
7580
|
Qf(h.current);
|
|
7580
7581
|
}, [c]);
|
|
7581
7582
|
function F() {
|
|
7582
|
-
return O.virtual ? Zf(h.current, x, c) : x.map((H, q) => /* @__PURE__ */
|
|
7583
|
+
return O.virtual ? Zf(h.current, x, c) : x.map((H, q) => /* @__PURE__ */ Ne.cloneElement(H, {
|
|
7583
7584
|
swiper: h.current,
|
|
7584
7585
|
swiperSlideIndex: q
|
|
7585
7586
|
}));
|
|
7586
7587
|
}
|
|
7587
|
-
return /* @__PURE__ */
|
|
7588
|
+
return /* @__PURE__ */ Ne.createElement(t, kl({
|
|
7588
7589
|
ref: b,
|
|
7589
7590
|
className: Yu(`${s}${e ? ` ${e}` : ""}`)
|
|
7590
|
-
}, T), /* @__PURE__ */
|
|
7591
|
+
}, T), /* @__PURE__ */ Ne.createElement(ep.Provider, {
|
|
7591
7592
|
value: h.current
|
|
7592
|
-
}, N["container-start"], /* @__PURE__ */
|
|
7593
|
+
}, N["container-start"], /* @__PURE__ */ Ne.createElement(a, {
|
|
7593
7594
|
className: Yf(O.wrapperClass)
|
|
7594
|
-
}, N["wrapper-start"], F(), N["wrapper-end"]), zu(O) && /* @__PURE__ */
|
|
7595
|
+
}, N["wrapper-start"], F(), N["wrapper-end"]), zu(O) && /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, /* @__PURE__ */ Ne.createElement("div", {
|
|
7595
7596
|
ref: A,
|
|
7596
7597
|
className: "swiper-button-prev"
|
|
7597
|
-
}), /* @__PURE__ */
|
|
7598
|
+
}), /* @__PURE__ */ Ne.createElement("div", {
|
|
7598
7599
|
ref: E,
|
|
7599
7600
|
className: "swiper-button-next"
|
|
7600
|
-
})), Gu(O) && /* @__PURE__ */
|
|
7601
|
+
})), Gu(O) && /* @__PURE__ */ Ne.createElement("div", {
|
|
7601
7602
|
ref: S,
|
|
7602
7603
|
className: "swiper-scrollbar"
|
|
7603
|
-
}), Vu(O) && /* @__PURE__ */
|
|
7604
|
+
}), Vu(O) && /* @__PURE__ */ Ne.createElement("div", {
|
|
7604
7605
|
ref: w,
|
|
7605
7606
|
className: "swiper-pagination"
|
|
7606
7607
|
}), N["container-end"]));
|
|
@@ -7642,24 +7643,24 @@ const Ku = /* @__PURE__ */ ku(({
|
|
|
7642
7643
|
}, v = () => typeof t == "function" ? t(h) : t, g = () => {
|
|
7643
7644
|
y(!0);
|
|
7644
7645
|
};
|
|
7645
|
-
return /* @__PURE__ */
|
|
7646
|
+
return /* @__PURE__ */ Ne.createElement(e, kl({
|
|
7646
7647
|
ref: c,
|
|
7647
7648
|
className: Yu(`${d}${a ? ` ${a}` : ""}`),
|
|
7648
7649
|
"data-swiper-slide-index": i,
|
|
7649
7650
|
onLoad: g
|
|
7650
|
-
}, s), n && /* @__PURE__ */
|
|
7651
|
+
}, s), n && /* @__PURE__ */ Ne.createElement(si.Provider, {
|
|
7651
7652
|
value: h
|
|
7652
|
-
}, /* @__PURE__ */
|
|
7653
|
+
}, /* @__PURE__ */ Ne.createElement("div", {
|
|
7653
7654
|
className: "swiper-zoom-container",
|
|
7654
7655
|
"data-swiper-zoom": typeof n == "number" ? n : void 0
|
|
7655
|
-
}, v(), r && !p && /* @__PURE__ */
|
|
7656
|
+
}, v(), r && !p && /* @__PURE__ */ Ne.createElement("div", {
|
|
7656
7657
|
className: "swiper-lazy-preloader",
|
|
7657
7658
|
ref: (E) => {
|
|
7658
7659
|
E && (E.lazyPreloaderManaged = !0);
|
|
7659
7660
|
}
|
|
7660
|
-
}))), !n && /* @__PURE__ */
|
|
7661
|
+
}))), !n && /* @__PURE__ */ Ne.createElement(si.Provider, {
|
|
7661
7662
|
value: h
|
|
7662
|
-
}, v(), r && !p && /* @__PURE__ */
|
|
7663
|
+
}, v(), r && !p && /* @__PURE__ */ Ne.createElement("div", {
|
|
7663
7664
|
className: "swiper-lazy-preloader",
|
|
7664
7665
|
ref: (E) => {
|
|
7665
7666
|
E && (E.lazyPreloaderManaged = !0);
|
|
@@ -9908,7 +9909,7 @@ function se(e) {
|
|
|
9908
9909
|
function Re(e) {
|
|
9909
9910
|
return e !== null && (e < 0 || e === 32);
|
|
9910
9911
|
}
|
|
9911
|
-
function
|
|
9912
|
+
function Se(e) {
|
|
9912
9913
|
return e === -2 || e === -1 || e === 32;
|
|
9913
9914
|
}
|
|
9914
9915
|
const Ua = Pt(new RegExp("\\p{P}|\\p{S}", "u")), qa = Pt(/\s/);
|
|
@@ -9937,15 +9938,15 @@ function na(e) {
|
|
|
9937
9938
|
}
|
|
9938
9939
|
return t.join("") + e.slice(l);
|
|
9939
9940
|
}
|
|
9940
|
-
function
|
|
9941
|
+
function _e(e, t, a, l) {
|
|
9941
9942
|
const n = l ? l - 1 : Number.POSITIVE_INFINITY;
|
|
9942
9943
|
let r = 0;
|
|
9943
9944
|
return i;
|
|
9944
9945
|
function i(s) {
|
|
9945
|
-
return
|
|
9946
|
+
return Se(s) ? (e.enter(a), u(s)) : t(s);
|
|
9946
9947
|
}
|
|
9947
9948
|
function u(s) {
|
|
9948
|
-
return
|
|
9949
|
+
return Se(s) && r++ < n ? (e.consume(s), u) : (e.exit(a), t(s));
|
|
9949
9950
|
}
|
|
9950
9951
|
}
|
|
9951
9952
|
const Qp = {
|
|
@@ -9960,7 +9961,7 @@ function Jp(e) {
|
|
|
9960
9961
|
e.consume(u);
|
|
9961
9962
|
return;
|
|
9962
9963
|
}
|
|
9963
|
-
return e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"),
|
|
9964
|
+
return e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), _e(e, t, "linePrefix");
|
|
9964
9965
|
}
|
|
9965
9966
|
function n(u) {
|
|
9966
9967
|
return e.enter("paragraph"), r(u);
|
|
@@ -10098,7 +10099,7 @@ function eh(e) {
|
|
|
10098
10099
|
}
|
|
10099
10100
|
}
|
|
10100
10101
|
function th(e, t, a) {
|
|
10101
|
-
return
|
|
10102
|
+
return _e(e, e.attempt(this.parser.constructs.document, t, a), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
10102
10103
|
}
|
|
10103
10104
|
function _i(e) {
|
|
10104
10105
|
if (e === null || Re(e) || qa(e))
|
|
@@ -10238,7 +10239,7 @@ const Fl = {
|
|
|
10238
10239
|
function ih(e, t, a) {
|
|
10239
10240
|
return l;
|
|
10240
10241
|
function l(r) {
|
|
10241
|
-
return
|
|
10242
|
+
return Se(r) ? _e(e, n, "linePrefix")(r) : n(r);
|
|
10242
10243
|
}
|
|
10243
10244
|
function n(r) {
|
|
10244
10245
|
return r === null || se(r) ? t(r) : a(r);
|
|
@@ -10265,14 +10266,14 @@ function uh(e, t, a) {
|
|
|
10265
10266
|
return a(i);
|
|
10266
10267
|
}
|
|
10267
10268
|
function r(i) {
|
|
10268
|
-
return
|
|
10269
|
+
return Se(i) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(i), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(i));
|
|
10269
10270
|
}
|
|
10270
10271
|
}
|
|
10271
10272
|
function sh(e, t, a) {
|
|
10272
10273
|
const l = this;
|
|
10273
10274
|
return n;
|
|
10274
10275
|
function n(i) {
|
|
10275
|
-
return
|
|
10276
|
+
return Se(i) ? _e(e, r, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i) : r(i);
|
|
10276
10277
|
}
|
|
10277
10278
|
function r(i) {
|
|
10278
10279
|
return e.attempt(bs, t, a)(i);
|
|
@@ -10342,7 +10343,7 @@ function fh(e, t, a) {
|
|
|
10342
10343
|
return r = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, u = S, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(S);
|
|
10343
10344
|
}
|
|
10344
10345
|
function c(S) {
|
|
10345
|
-
return S === u ? (i++, e.consume(S), c) : i < 3 ? a(S) : (e.exit("codeFencedFenceSequence"),
|
|
10346
|
+
return S === u ? (i++, e.consume(S), c) : i < 3 ? a(S) : (e.exit("codeFencedFenceSequence"), Se(S) ? _e(e, d, "whitespace")(S) : d(S));
|
|
10346
10347
|
}
|
|
10347
10348
|
function d(S) {
|
|
10348
10349
|
return S === null || se(S) ? (e.exit("codeFencedFence"), l.interrupt ? t(S) : e.check(ki, b, A)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
@@ -10350,7 +10351,7 @@ function fh(e, t, a) {
|
|
|
10350
10351
|
}), m(S));
|
|
10351
10352
|
}
|
|
10352
10353
|
function m(S) {
|
|
10353
|
-
return S === null || se(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(S)) :
|
|
10354
|
+
return S === null || se(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(S)) : Se(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), _e(e, p, "whitespace")(S)) : S === 96 && S === u ? a(S) : (e.consume(S), m);
|
|
10354
10355
|
}
|
|
10355
10356
|
function p(S) {
|
|
10356
10357
|
return S === null || se(S) ? d(S) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -10367,7 +10368,7 @@ function fh(e, t, a) {
|
|
|
10367
10368
|
return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), v;
|
|
10368
10369
|
}
|
|
10369
10370
|
function v(S) {
|
|
10370
|
-
return r > 0 &&
|
|
10371
|
+
return r > 0 && Se(S) ? _e(e, g, "linePrefix", r + 1)(S) : g(S);
|
|
10371
10372
|
}
|
|
10372
10373
|
function g(S) {
|
|
10373
10374
|
return S === null || se(S) ? e.check(ki, b, A)(S) : (e.enter("codeFlowValue"), E(S));
|
|
@@ -10385,13 +10386,13 @@ function fh(e, t, a) {
|
|
|
10385
10386
|
return S.enter("lineEnding"), S.consume(C), S.exit("lineEnding"), x;
|
|
10386
10387
|
}
|
|
10387
10388
|
function x(C) {
|
|
10388
|
-
return S.enter("codeFencedFence"),
|
|
10389
|
+
return S.enter("codeFencedFence"), Se(C) ? _e(S, N, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : N(C);
|
|
10389
10390
|
}
|
|
10390
10391
|
function N(C) {
|
|
10391
10392
|
return C === u ? (S.enter("codeFencedFenceSequence"), M(C)) : k(C);
|
|
10392
10393
|
}
|
|
10393
10394
|
function M(C) {
|
|
10394
|
-
return C === u ? (T++, S.consume(C), M) : T >= i ? (S.exit("codeFencedFenceSequence"),
|
|
10395
|
+
return C === u ? (T++, S.consume(C), M) : T >= i ? (S.exit("codeFencedFenceSequence"), Se(C) ? _e(S, L, "whitespace")(C) : L(C)) : k(C);
|
|
10395
10396
|
}
|
|
10396
10397
|
function L(C) {
|
|
10397
10398
|
return C === null || se(C) ? (S.exit("codeFencedFence"), O(C)) : k(C);
|
|
@@ -10419,7 +10420,7 @@ function bh(e, t, a) {
|
|
|
10419
10420
|
const l = this;
|
|
10420
10421
|
return n;
|
|
10421
10422
|
function n(o) {
|
|
10422
|
-
return e.enter("codeIndented"),
|
|
10423
|
+
return e.enter("codeIndented"), _e(e, r, "linePrefix", 5)(o);
|
|
10423
10424
|
}
|
|
10424
10425
|
function r(o) {
|
|
10425
10426
|
const c = l.events[l.events.length - 1];
|
|
@@ -10439,7 +10440,7 @@ function mh(e, t, a) {
|
|
|
10439
10440
|
const l = this;
|
|
10440
10441
|
return n;
|
|
10441
10442
|
function n(i) {
|
|
10442
|
-
return l.parser.lazy[l.now().line] ? a(i) : se(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n) :
|
|
10443
|
+
return l.parser.lazy[l.now().line] ? a(i) : se(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n) : _e(e, r, "linePrefix", 5)(i);
|
|
10443
10444
|
}
|
|
10444
10445
|
function r(i) {
|
|
10445
10446
|
const u = l.events[l.events.length - 1];
|
|
@@ -10743,7 +10744,7 @@ function wh(e, t, a) {
|
|
|
10743
10744
|
const l = this;
|
|
10744
10745
|
return n;
|
|
10745
10746
|
function n(i) {
|
|
10746
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"),
|
|
10747
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), _e(e, r, "linePrefix");
|
|
10747
10748
|
}
|
|
10748
10749
|
function r(i) {
|
|
10749
10750
|
if (i === null || se(i))
|
|
@@ -10797,7 +10798,7 @@ function ys(e, t, a, l, n, r) {
|
|
|
10797
10798
|
}), d(p));
|
|
10798
10799
|
}
|
|
10799
10800
|
function d(p) {
|
|
10800
|
-
return p === null || p === 91 || p === 93 || se(p) || u++ > 999 ? (e.exit("chunkString"), c(p)) : (e.consume(p), s || (s = !
|
|
10801
|
+
return p === null || p === 91 || p === 93 || se(p) || u++ > 999 ? (e.exit("chunkString"), c(p)) : (e.consume(p), s || (s = !Se(p)), p === 92 ? m : d);
|
|
10801
10802
|
}
|
|
10802
10803
|
function m(p) {
|
|
10803
10804
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), u++, d) : d(p);
|
|
@@ -10813,7 +10814,7 @@ function Ts(e, t, a, l, n, r) {
|
|
|
10813
10814
|
return m === i ? (e.enter(n), e.consume(m), e.exit(n), e.exit(l), t) : (e.enter(r), o(m));
|
|
10814
10815
|
}
|
|
10815
10816
|
function o(m) {
|
|
10816
|
-
return m === i ? (e.exit(r), s(i)) : m === null ? a(m) : se(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"),
|
|
10817
|
+
return m === i ? (e.exit(r), s(i)) : m === null ? a(m) : se(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), _e(e, o, "linePrefix")) : (e.enter("chunkString", {
|
|
10817
10818
|
contentType: "string"
|
|
10818
10819
|
}), c(m));
|
|
10819
10820
|
}
|
|
@@ -10828,7 +10829,7 @@ function Tt(e, t) {
|
|
|
10828
10829
|
let a;
|
|
10829
10830
|
return l;
|
|
10830
10831
|
function l(n) {
|
|
10831
|
-
return se(n) ? (e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), a = !0, l) :
|
|
10832
|
+
return se(n) ? (e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), a = !0, l) : Se(n) ? _e(e, l, a ? "linePrefix" : "lineSuffix")(n) : t(n);
|
|
10832
10833
|
}
|
|
10833
10834
|
}
|
|
10834
10835
|
const kh = {
|
|
@@ -10880,7 +10881,7 @@ function Ih(e, t, a) {
|
|
|
10880
10881
|
return e.attempt(Nh, d, d)(p);
|
|
10881
10882
|
}
|
|
10882
10883
|
function d(p) {
|
|
10883
|
-
return
|
|
10884
|
+
return Se(p) ? _e(e, m, "whitespace")(p) : m(p);
|
|
10884
10885
|
}
|
|
10885
10886
|
function m(p) {
|
|
10886
10887
|
return p === null || se(p) ? (e.exit("definition"), l.parser.defined.push(n), t(p)) : a(p);
|
|
@@ -10895,7 +10896,7 @@ function Lh(e, t, a) {
|
|
|
10895
10896
|
return Ts(e, r, a, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(u);
|
|
10896
10897
|
}
|
|
10897
10898
|
function r(u) {
|
|
10898
|
-
return
|
|
10899
|
+
return Se(u) ? _e(e, i, "whitespace")(u) : i(u);
|
|
10899
10900
|
}
|
|
10900
10901
|
function i(u) {
|
|
10901
10902
|
return u === null || se(u) ? t(u) : a(u);
|
|
@@ -10945,7 +10946,7 @@ function Rh(e, t, a) {
|
|
|
10945
10946
|
return c === 35 && l++ < 6 ? (e.consume(c), i) : c === null || Re(c) ? (e.exit("atxHeadingSequence"), u(c)) : a(c);
|
|
10946
10947
|
}
|
|
10947
10948
|
function u(c) {
|
|
10948
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || se(c) ? (e.exit("atxHeading"), t(c)) :
|
|
10949
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || se(c) ? (e.exit("atxHeading"), t(c)) : Se(c) ? _e(e, u, "whitespace")(c) : (e.enter("atxHeadingText"), o(c));
|
|
10949
10950
|
}
|
|
10950
10951
|
function s(c) {
|
|
10951
10952
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), u(c));
|
|
@@ -11072,19 +11073,19 @@ function qh(e, t, a) {
|
|
|
11072
11073
|
return R === 62 ? (e.consume(R), l.interrupt ? t : N) : a(R);
|
|
11073
11074
|
}
|
|
11074
11075
|
function g(R) {
|
|
11075
|
-
return
|
|
11076
|
+
return Se(R) ? (e.consume(R), g) : _(R);
|
|
11076
11077
|
}
|
|
11077
11078
|
function E(R) {
|
|
11078
|
-
return R === 47 ? (e.consume(R), _) : R === 58 || R === 95 || pt(R) ? (e.consume(R), A) :
|
|
11079
|
+
return R === 47 ? (e.consume(R), _) : R === 58 || R === 95 || pt(R) ? (e.consume(R), A) : Se(R) ? (e.consume(R), E) : _(R);
|
|
11079
11080
|
}
|
|
11080
11081
|
function A(R) {
|
|
11081
11082
|
return R === 45 || R === 46 || R === 58 || R === 95 || lt(R) ? (e.consume(R), A) : w(R);
|
|
11082
11083
|
}
|
|
11083
11084
|
function w(R) {
|
|
11084
|
-
return R === 61 ? (e.consume(R), S) :
|
|
11085
|
+
return R === 61 ? (e.consume(R), S) : Se(R) ? (e.consume(R), w) : E(R);
|
|
11085
11086
|
}
|
|
11086
11087
|
function S(R) {
|
|
11087
|
-
return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? a(R) : R === 34 || R === 39 ? (e.consume(R), s = R, O) :
|
|
11088
|
+
return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? a(R) : R === 34 || R === 39 ? (e.consume(R), s = R, O) : Se(R) ? (e.consume(R), S) : k(R);
|
|
11088
11089
|
}
|
|
11089
11090
|
function O(R) {
|
|
11090
11091
|
return R === s ? (e.consume(R), s = null, T) : R === null || se(R) ? a(R) : (e.consume(R), O);
|
|
@@ -11093,13 +11094,13 @@ function qh(e, t, a) {
|
|
|
11093
11094
|
return R === null || R === 34 || R === 39 || R === 47 || R === 60 || R === 61 || R === 62 || R === 96 || Re(R) ? w(R) : (e.consume(R), k);
|
|
11094
11095
|
}
|
|
11095
11096
|
function T(R) {
|
|
11096
|
-
return R === 47 || R === 62 ||
|
|
11097
|
+
return R === 47 || R === 62 || Se(R) ? E(R) : a(R);
|
|
11097
11098
|
}
|
|
11098
11099
|
function _(R) {
|
|
11099
11100
|
return R === 62 ? (e.consume(R), x) : a(R);
|
|
11100
11101
|
}
|
|
11101
11102
|
function x(R) {
|
|
11102
|
-
return R === null || se(R) ? N(R) :
|
|
11103
|
+
return R === null || se(R) ? N(R) : Se(R) ? (e.consume(R), x) : a(R);
|
|
11103
11104
|
}
|
|
11104
11105
|
function N(R) {
|
|
11105
11106
|
return R === 45 && n === 2 ? (e.consume(R), P) : R === 60 && n === 1 ? (e.consume(R), F) : R === 62 && n === 4 ? (e.consume(R), V) : R === 63 && n === 3 ? (e.consume(R), I) : R === 93 && n === 5 ? (e.consume(R), q) : se(R) && (n === 6 || n === 7) ? (e.exit("htmlFlowData"), e.check(Hh, Y, M)(R)) : R === null || se(R) ? (e.exit("htmlFlowData"), M(R)) : (e.consume(R), N);
|
|
@@ -11213,22 +11214,22 @@ function Yh(e, t, a) {
|
|
|
11213
11214
|
return I === 45 || lt(I) ? (e.consume(I), S) : O(I);
|
|
11214
11215
|
}
|
|
11215
11216
|
function O(I) {
|
|
11216
|
-
return se(I) ? (i = O, F(I)) :
|
|
11217
|
+
return se(I) ? (i = O, F(I)) : Se(I) ? (e.consume(I), O) : P(I);
|
|
11217
11218
|
}
|
|
11218
11219
|
function k(I) {
|
|
11219
11220
|
return I === 45 || lt(I) ? (e.consume(I), k) : I === 47 || I === 62 || Re(I) ? T(I) : a(I);
|
|
11220
11221
|
}
|
|
11221
11222
|
function T(I) {
|
|
11222
|
-
return I === 47 ? (e.consume(I), P) : I === 58 || I === 95 || pt(I) ? (e.consume(I), _) : se(I) ? (i = T, F(I)) :
|
|
11223
|
+
return I === 47 ? (e.consume(I), P) : I === 58 || I === 95 || pt(I) ? (e.consume(I), _) : se(I) ? (i = T, F(I)) : Se(I) ? (e.consume(I), T) : P(I);
|
|
11223
11224
|
}
|
|
11224
11225
|
function _(I) {
|
|
11225
11226
|
return I === 45 || I === 46 || I === 58 || I === 95 || lt(I) ? (e.consume(I), _) : x(I);
|
|
11226
11227
|
}
|
|
11227
11228
|
function x(I) {
|
|
11228
|
-
return I === 61 ? (e.consume(I), N) : se(I) ? (i = x, F(I)) :
|
|
11229
|
+
return I === 61 ? (e.consume(I), N) : se(I) ? (i = x, F(I)) : Se(I) ? (e.consume(I), x) : T(I);
|
|
11229
11230
|
}
|
|
11230
11231
|
function N(I) {
|
|
11231
|
-
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? a(I) : I === 34 || I === 39 ? (e.consume(I), n = I, M) : se(I) ? (i = N, F(I)) :
|
|
11232
|
+
return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? a(I) : I === 34 || I === 39 ? (e.consume(I), n = I, M) : se(I) ? (i = N, F(I)) : Se(I) ? (e.consume(I), N) : (e.consume(I), L);
|
|
11232
11233
|
}
|
|
11233
11234
|
function M(I) {
|
|
11234
11235
|
return I === n ? (e.consume(I), n = void 0, C) : I === null ? a(I) : se(I) ? (i = M, F(I)) : (e.consume(I), M);
|
|
@@ -11246,7 +11247,7 @@ function Yh(e, t, a) {
|
|
|
11246
11247
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), H;
|
|
11247
11248
|
}
|
|
11248
11249
|
function H(I) {
|
|
11249
|
-
return
|
|
11250
|
+
return Se(I) ? _e(e, q, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(I) : q(I);
|
|
11250
11251
|
}
|
|
11251
11252
|
function q(I) {
|
|
11252
11253
|
return e.enter("htmlTextData"), i(I);
|
|
@@ -11433,7 +11434,7 @@ const bn = {
|
|
|
11433
11434
|
function ib(e, t) {
|
|
11434
11435
|
return a;
|
|
11435
11436
|
function a(l) {
|
|
11436
|
-
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"),
|
|
11437
|
+
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), _e(e, t, "linePrefix");
|
|
11437
11438
|
}
|
|
11438
11439
|
}
|
|
11439
11440
|
const ml = {
|
|
@@ -11453,7 +11454,7 @@ function ub(e, t, a) {
|
|
|
11453
11454
|
return o === n ? (e.enter("thematicBreakSequence"), s(o)) : l >= 3 && (o === null || se(o)) ? (e.exit("thematicBreak"), t(o)) : a(o);
|
|
11454
11455
|
}
|
|
11455
11456
|
function s(o) {
|
|
11456
|
-
return o === n ? (e.consume(o), l++, s) : (e.exit("thematicBreakSequence"),
|
|
11457
|
+
return o === n ? (e.consume(o), l++, s) : (e.exit("thematicBreakSequence"), Se(o) ? _e(e, u, "whitespace")(o) : u(o));
|
|
11457
11458
|
}
|
|
11458
11459
|
}
|
|
11459
11460
|
const Qe = {
|
|
@@ -11501,7 +11502,7 @@ function cb(e, t, a) {
|
|
|
11501
11502
|
return l.containerState.initialBlankLine = !0, r++, m(p);
|
|
11502
11503
|
}
|
|
11503
11504
|
function d(p) {
|
|
11504
|
-
return
|
|
11505
|
+
return Se(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), m) : a(p);
|
|
11505
11506
|
}
|
|
11506
11507
|
function m(p) {
|
|
11507
11508
|
return l.containerState.size = r + l.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(p);
|
|
@@ -11511,18 +11512,18 @@ function db(e, t, a) {
|
|
|
11511
11512
|
const l = this;
|
|
11512
11513
|
return l.containerState._closeFlow = void 0, e.check(Fl, n, r);
|
|
11513
11514
|
function n(u) {
|
|
11514
|
-
return l.containerState.furtherBlankLines = l.containerState.furtherBlankLines || l.containerState.initialBlankLine,
|
|
11515
|
+
return l.containerState.furtherBlankLines = l.containerState.furtherBlankLines || l.containerState.initialBlankLine, _e(e, t, "listItemIndent", l.containerState.size + 1)(u);
|
|
11515
11516
|
}
|
|
11516
11517
|
function r(u) {
|
|
11517
|
-
return l.containerState.furtherBlankLines || !
|
|
11518
|
+
return l.containerState.furtherBlankLines || !Se(u) ? (l.containerState.furtherBlankLines = void 0, l.containerState.initialBlankLine = void 0, i(u)) : (l.containerState.furtherBlankLines = void 0, l.containerState.initialBlankLine = void 0, e.attempt(ob, t, i)(u));
|
|
11518
11519
|
}
|
|
11519
11520
|
function i(u) {
|
|
11520
|
-
return l.containerState._closeFlow = !0, l.interrupt = void 0,
|
|
11521
|
+
return l.containerState._closeFlow = !0, l.interrupt = void 0, _e(e, e.attempt(Qe, t, a), "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(u);
|
|
11521
11522
|
}
|
|
11522
11523
|
}
|
|
11523
11524
|
function fb(e, t, a) {
|
|
11524
11525
|
const l = this;
|
|
11525
|
-
return
|
|
11526
|
+
return _e(e, n, "listItemIndent", l.containerState.size + 1);
|
|
11526
11527
|
function n(r) {
|
|
11527
11528
|
const i = l.events[l.events.length - 1];
|
|
11528
11529
|
return i && i[1].type === "listItemIndent" && i[2].sliceSerialize(i[1], !0).length === l.containerState.size ? t(r) : a(r);
|
|
@@ -11533,10 +11534,10 @@ function pb(e) {
|
|
|
11533
11534
|
}
|
|
11534
11535
|
function hb(e, t, a) {
|
|
11535
11536
|
const l = this;
|
|
11536
|
-
return
|
|
11537
|
+
return _e(e, n, "listItemPrefixWhitespace", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
11537
11538
|
function n(r) {
|
|
11538
11539
|
const i = l.events[l.events.length - 1];
|
|
11539
|
-
return !
|
|
11540
|
+
return !Se(r) && i && i[1].type === "listItemPrefixWhitespace" ? t(r) : a(r);
|
|
11540
11541
|
}
|
|
11541
11542
|
}
|
|
11542
11543
|
const Li = {
|
|
@@ -11585,7 +11586,7 @@ function mb(e, t, a) {
|
|
|
11585
11586
|
return e.enter("setextHeadingLineSequence"), u(o);
|
|
11586
11587
|
}
|
|
11587
11588
|
function u(o) {
|
|
11588
|
-
return o === n ? (e.consume(o), u) : (e.exit("setextHeadingLineSequence"),
|
|
11589
|
+
return o === n ? (e.consume(o), u) : (e.exit("setextHeadingLineSequence"), Se(o) ? _e(e, s, "lineSuffix")(o) : s(o));
|
|
11589
11590
|
}
|
|
11590
11591
|
function s(o) {
|
|
11591
11592
|
return o === null || se(o) ? (e.exit("setextHeadingLine"), t(o)) : a(o);
|
|
@@ -11600,7 +11601,7 @@ function gb(e) {
|
|
|
11600
11601
|
Fl,
|
|
11601
11602
|
l,
|
|
11602
11603
|
// Try to parse initial flow (essentially, only code).
|
|
11603
|
-
e.attempt(this.parser.constructs.flowInitial, n,
|
|
11604
|
+
e.attempt(this.parser.constructs.flowInitial, n, _e(e, e.attempt(this.parser.constructs.flow, n, e.attempt(Ch, n)), "linePrefix"))
|
|
11604
11605
|
);
|
|
11605
11606
|
return a;
|
|
11606
11607
|
function l(r) {
|
|
@@ -11881,25 +11882,25 @@ function Db(e, t, a) {
|
|
|
11881
11882
|
L
|
|
11882
11883
|
])
|
|
11883
11884
|
) : V(L);
|
|
11884
|
-
function V(
|
|
11885
|
-
return
|
|
11886
|
-
function
|
|
11887
|
-
const
|
|
11885
|
+
function V(X) {
|
|
11886
|
+
return K;
|
|
11887
|
+
function K(ne) {
|
|
11888
|
+
const pe = ne !== null && X[ne], de = ne !== null && X.null, Te = [
|
|
11888
11889
|
// To do: add more extension tests.
|
|
11889
11890
|
/* c8 ignore next 2 */
|
|
11890
|
-
...Array.isArray(
|
|
11891
|
-
...Array.isArray(
|
|
11891
|
+
...Array.isArray(pe) ? pe : pe ? [pe] : [],
|
|
11892
|
+
...Array.isArray(de) ? de : de ? [de] : []
|
|
11892
11893
|
];
|
|
11893
|
-
return Y(
|
|
11894
|
+
return Y(Te)(ne);
|
|
11894
11895
|
}
|
|
11895
11896
|
}
|
|
11896
|
-
function Y(
|
|
11897
|
-
return F =
|
|
11897
|
+
function Y(X) {
|
|
11898
|
+
return F = X, H = 0, X.length === 0 ? P : R(X[H]);
|
|
11898
11899
|
}
|
|
11899
|
-
function R(
|
|
11900
|
-
return
|
|
11901
|
-
function
|
|
11902
|
-
return I = T(), q =
|
|
11900
|
+
function R(X) {
|
|
11901
|
+
return K;
|
|
11902
|
+
function K(ne) {
|
|
11903
|
+
return I = T(), q = X, X.partial || (o.currentConstruct = X), X.name && o.parser.constructs.disable.null.includes(X.name) ? ue() : X.tokenize.call(
|
|
11903
11904
|
// If we do have fields, create an object w/ `context` as its
|
|
11904
11905
|
// prototype.
|
|
11905
11906
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -11910,10 +11911,10 @@ function Db(e, t, a) {
|
|
|
11910
11911
|
)(ne);
|
|
11911
11912
|
}
|
|
11912
11913
|
}
|
|
11913
|
-
function j(
|
|
11914
|
+
function j(X) {
|
|
11914
11915
|
return x(q, I), C;
|
|
11915
11916
|
}
|
|
11916
|
-
function ue(
|
|
11917
|
+
function ue(X) {
|
|
11917
11918
|
return I.restore(), ++H < F.length ? R(F[H]) : P;
|
|
11918
11919
|
}
|
|
11919
11920
|
}
|
|
@@ -12078,13 +12079,13 @@ function zb(e) {
|
|
|
12078
12079
|
autolinkProtocol: T,
|
|
12079
12080
|
autolinkEmail: T,
|
|
12080
12081
|
atxHeading: r(Ja),
|
|
12081
|
-
blockQuote: r(
|
|
12082
|
+
blockQuote: r(de),
|
|
12082
12083
|
characterEscape: T,
|
|
12083
12084
|
characterReference: T,
|
|
12084
|
-
codeFenced: r(
|
|
12085
|
+
codeFenced: r(Te),
|
|
12085
12086
|
codeFencedFenceInfo: i,
|
|
12086
12087
|
codeFencedFenceMeta: i,
|
|
12087
|
-
codeIndented: r(
|
|
12088
|
+
codeIndented: r(Te, i),
|
|
12088
12089
|
codeText: r(Me, i),
|
|
12089
12090
|
codeTextData: T,
|
|
12090
12091
|
data: T,
|
|
@@ -12120,14 +12121,14 @@ function zb(e) {
|
|
|
12120
12121
|
atxHeading: s(),
|
|
12121
12122
|
atxHeadingSequence: w,
|
|
12122
12123
|
autolink: s(),
|
|
12123
|
-
autolinkEmail:
|
|
12124
|
+
autolinkEmail: pe,
|
|
12124
12125
|
autolinkProtocol: ne,
|
|
12125
12126
|
blockQuote: s(),
|
|
12126
12127
|
characterEscapeValue: _,
|
|
12127
12128
|
characterReferenceMarkerHexadecimal: ue,
|
|
12128
12129
|
characterReferenceMarkerNumeric: ue,
|
|
12129
|
-
characterReferenceValue:
|
|
12130
|
-
characterReference:
|
|
12130
|
+
characterReferenceValue: X,
|
|
12131
|
+
characterReference: K,
|
|
12131
12132
|
codeFenced: s(h),
|
|
12132
12133
|
codeFencedFence: b,
|
|
12133
12134
|
codeFencedFenceInfo: p,
|
|
@@ -12186,20 +12187,20 @@ function zb(e) {
|
|
|
12186
12187
|
resume: c,
|
|
12187
12188
|
data: a
|
|
12188
12189
|
}, ye = [];
|
|
12189
|
-
let
|
|
12190
|
-
for (; ++
|
|
12191
|
-
if (W[
|
|
12192
|
-
if (W[
|
|
12193
|
-
ye.push(
|
|
12190
|
+
let Ae = -1;
|
|
12191
|
+
for (; ++Ae < W.length; )
|
|
12192
|
+
if (W[Ae][1].type === "listOrdered" || W[Ae][1].type === "listUnordered")
|
|
12193
|
+
if (W[Ae][0] === "enter")
|
|
12194
|
+
ye.push(Ae);
|
|
12194
12195
|
else {
|
|
12195
12196
|
const et = ye.pop();
|
|
12196
|
-
|
|
12197
|
+
Ae = n(W, et, Ae);
|
|
12197
12198
|
}
|
|
12198
|
-
for (
|
|
12199
|
-
const et = t[W[
|
|
12200
|
-
As.call(et, W[
|
|
12201
|
-
sliceSerialize: W[
|
|
12202
|
-
}, me), W[
|
|
12199
|
+
for (Ae = -1; ++Ae < W.length; ) {
|
|
12200
|
+
const et = t[W[Ae][0]];
|
|
12201
|
+
As.call(et, W[Ae][1].type) && et[W[Ae][1].type].call(Object.assign({
|
|
12202
|
+
sliceSerialize: W[Ae][2].sliceSerialize
|
|
12203
|
+
}, me), W[Ae][1]);
|
|
12203
12204
|
}
|
|
12204
12205
|
if (me.tokenStack.length > 0) {
|
|
12205
12206
|
const et = me.tokenStack[me.tokenStack.length - 1];
|
|
@@ -12216,23 +12217,23 @@ function zb(e) {
|
|
|
12216
12217
|
column: 1,
|
|
12217
12218
|
offset: 0
|
|
12218
12219
|
})
|
|
12219
|
-
},
|
|
12220
|
-
ae = t.transforms[
|
|
12220
|
+
}, Ae = -1; ++Ae < t.transforms.length; )
|
|
12221
|
+
ae = t.transforms[Ae](ae) || ae;
|
|
12221
12222
|
return ae;
|
|
12222
12223
|
}
|
|
12223
12224
|
function n(W, ae, me) {
|
|
12224
|
-
let ye = ae - 1,
|
|
12225
|
+
let ye = ae - 1, Ae = -1, et = !1, vt, je, xt, Mt;
|
|
12225
12226
|
for (; ++ye <= me; ) {
|
|
12226
12227
|
const He = W[ye];
|
|
12227
12228
|
switch (He[1].type) {
|
|
12228
12229
|
case "listUnordered":
|
|
12229
12230
|
case "listOrdered":
|
|
12230
12231
|
case "blockQuote": {
|
|
12231
|
-
He[0] === "enter" ?
|
|
12232
|
+
He[0] === "enter" ? Ae++ : Ae--, Mt = void 0;
|
|
12232
12233
|
break;
|
|
12233
12234
|
}
|
|
12234
12235
|
case "lineEndingBlank": {
|
|
12235
|
-
He[0] === "enter" && (vt && !Mt && !
|
|
12236
|
+
He[0] === "enter" && (vt && !Mt && !Ae && !xt && (xt = ye), Mt = void 0);
|
|
12236
12237
|
break;
|
|
12237
12238
|
}
|
|
12238
12239
|
case "linePrefix":
|
|
@@ -12244,7 +12245,7 @@ function zb(e) {
|
|
|
12244
12245
|
default:
|
|
12245
12246
|
Mt = void 0;
|
|
12246
12247
|
}
|
|
12247
|
-
if (!
|
|
12248
|
+
if (!Ae && He[0] === "enter" && He[1].type === "listItemPrefix" || Ae === -1 && He[0] === "exit" && (He[1].type === "listUnordered" || He[1].type === "listOrdered")) {
|
|
12248
12249
|
if (vt) {
|
|
12249
12250
|
let Ct = ye;
|
|
12250
12251
|
for (je = void 0; Ct--; ) {
|
|
@@ -12453,14 +12454,14 @@ function zb(e) {
|
|
|
12453
12454
|
function ue(W) {
|
|
12454
12455
|
this.data.characterReferenceType = W.type;
|
|
12455
12456
|
}
|
|
12456
|
-
function
|
|
12457
|
+
function X(W) {
|
|
12457
12458
|
const ae = this.sliceSerialize(W), me = this.data.characterReferenceType;
|
|
12458
12459
|
let ye;
|
|
12459
12460
|
me ? (ye = hs(ae, me === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ye = $a(ae);
|
|
12460
|
-
const
|
|
12461
|
-
|
|
12461
|
+
const Ae = this.stack[this.stack.length - 1];
|
|
12462
|
+
Ae.value += ye;
|
|
12462
12463
|
}
|
|
12463
|
-
function
|
|
12464
|
+
function K(W) {
|
|
12464
12465
|
const ae = this.stack.pop();
|
|
12465
12466
|
ae.position.end = _t(W.end);
|
|
12466
12467
|
}
|
|
@@ -12469,18 +12470,18 @@ function zb(e) {
|
|
|
12469
12470
|
const ae = this.stack[this.stack.length - 1];
|
|
12470
12471
|
ae.url = this.sliceSerialize(W);
|
|
12471
12472
|
}
|
|
12472
|
-
function
|
|
12473
|
+
function pe(W) {
|
|
12473
12474
|
_.call(this, W);
|
|
12474
12475
|
const ae = this.stack[this.stack.length - 1];
|
|
12475
12476
|
ae.url = "mailto:" + this.sliceSerialize(W);
|
|
12476
12477
|
}
|
|
12477
|
-
function
|
|
12478
|
+
function de() {
|
|
12478
12479
|
return {
|
|
12479
12480
|
type: "blockquote",
|
|
12480
12481
|
children: []
|
|
12481
12482
|
};
|
|
12482
12483
|
}
|
|
12483
|
-
function
|
|
12484
|
+
function Te() {
|
|
12484
12485
|
return {
|
|
12485
12486
|
type: "code",
|
|
12486
12487
|
lang: null,
|
|
@@ -22041,7 +22042,7 @@ function Lr(e, t, a, l, n, r, i, u, s, o, c, d, m, p, y) {
|
|
|
22041
22042
|
return e.enter(l), e.enter(n), e.consume(C), e.exit(n), g;
|
|
22042
22043
|
}
|
|
22043
22044
|
function g(C) {
|
|
22044
|
-
return C === 35 ? (b = i, E(C)) : C === 46 ? (b = u, E(C)) : y &&
|
|
22045
|
+
return C === 35 ? (b = i, E(C)) : C === 46 ? (b = u, E(C)) : y && Se(C) ? _e(e, g, "whitespace")(C) : !y && Re(C) ? Tt(e, g)(C) : C === null || se(C) || qa(C) || Ua(C) && C !== 45 && C !== 95 ? L(C) : (e.enter(r), e.enter(s), e.consume(C), S);
|
|
22045
22046
|
}
|
|
22046
22047
|
function E(C) {
|
|
22047
22048
|
const P = (
|
|
@@ -22072,13 +22073,13 @@ function Lr(e, t, a, l, n, r, i, u, s, o, c, d, m, p, y) {
|
|
|
22072
22073
|
return e.consume(C), w;
|
|
22073
22074
|
}
|
|
22074
22075
|
function S(C) {
|
|
22075
|
-
return C === null || se(C) || qa(C) || Ua(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(s), y &&
|
|
22076
|
+
return C === null || se(C) || qa(C) || Ua(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(s), y && Se(C) ? _e(e, O, "whitespace")(C) : !y && Re(C) ? Tt(e, O)(C) : O(C)) : (e.consume(C), S);
|
|
22076
22077
|
}
|
|
22077
22078
|
function O(C) {
|
|
22078
22079
|
return C === 61 ? (e.enter(o), e.consume(C), e.exit(o), k) : (e.exit(r), g(C));
|
|
22079
22080
|
}
|
|
22080
22081
|
function k(C) {
|
|
22081
|
-
return C === null || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || y && se(C) ? a(C) : C === 34 || C === 39 ? (e.enter(c), e.enter(m), e.consume(C), e.exit(m), h = C, _) : y &&
|
|
22082
|
+
return C === null || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || y && se(C) ? a(C) : C === 34 || C === 39 ? (e.enter(c), e.enter(m), e.consume(C), e.exit(m), h = C, _) : y && Se(C) ? _e(e, k, "whitespace")(C) : !y && Re(C) ? Tt(e, k)(C) : (e.enter(d), e.enter(p), e.consume(C), h = void 0, T);
|
|
22082
22083
|
}
|
|
22083
22084
|
function T(C) {
|
|
22084
22085
|
return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96 ? a(C) : C === 125 || Re(C) ? (e.exit(p), e.exit(d), e.exit(r), g(C)) : (e.consume(C), T);
|
|
@@ -22168,7 +22169,7 @@ function cE(e, t, a) {
|
|
|
22168
22169
|
return T === 123 ? e.attempt(oE, m, m)(T) : m(T);
|
|
22169
22170
|
}
|
|
22170
22171
|
function m(T) {
|
|
22171
|
-
return
|
|
22172
|
+
return _e(e, p, "whitespace")(T);
|
|
22172
22173
|
}
|
|
22173
22174
|
function p(T) {
|
|
22174
22175
|
return e.exit("directiveContainerFence"), T === null ? O(T) : se(T) ? l.interrupt ? t(T) : e.attempt(pl, y, O)(T) : a(T);
|
|
@@ -22180,7 +22181,7 @@ function cE(e, t, a) {
|
|
|
22180
22181
|
return e.attempt({
|
|
22181
22182
|
tokenize: k,
|
|
22182
22183
|
partial: !0
|
|
22183
|
-
}, S, r ?
|
|
22184
|
+
}, S, r ? _e(e, h, "linePrefix", r + 1) : h)(T);
|
|
22184
22185
|
}
|
|
22185
22186
|
function h(T) {
|
|
22186
22187
|
return T === null ? S(T) : se(T) ? e.check(pl, g, S)(T) : g(T);
|
|
@@ -22219,12 +22220,12 @@ function cE(e, t, a) {
|
|
|
22219
22220
|
}
|
|
22220
22221
|
function k(T, _, x) {
|
|
22221
22222
|
let N = 0;
|
|
22222
|
-
return
|
|
22223
|
+
return _e(T, M, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
22223
22224
|
function M(P) {
|
|
22224
22225
|
return T.enter("directiveContainerFence"), T.enter("directiveContainerSequence"), L(P);
|
|
22225
22226
|
}
|
|
22226
22227
|
function L(P) {
|
|
22227
|
-
return P === 58 ? (T.consume(P), N++, L) : N < i ? x(P) : (T.exit("directiveContainerSequence"),
|
|
22228
|
+
return P === 58 ? (T.consume(P), N++, L) : N < i ? x(P) : (T.exit("directiveContainerSequence"), _e(T, C, "whitespace")(P));
|
|
22228
22229
|
}
|
|
22229
22230
|
function C(P) {
|
|
22230
22231
|
return P === null || se(P) ? (T.exit("directiveContainerFence"), _(P)) : x(P);
|
|
@@ -22272,7 +22273,7 @@ function vE(e, t, a) {
|
|
|
22272
22273
|
return c === 123 ? e.attempt(mE, s, s)(c) : s(c);
|
|
22273
22274
|
}
|
|
22274
22275
|
function s(c) {
|
|
22275
|
-
return
|
|
22276
|
+
return _e(e, o, "whitespace")(c);
|
|
22276
22277
|
}
|
|
22277
22278
|
function o(c) {
|
|
22278
22279
|
return c === null || se(c) ? (e.exit("directiveLeaf"), t(c)) : a(c);
|
|
@@ -22442,11 +22443,11 @@ const Fn = {
|
|
|
22442
22443
|
O(Math.min(Math.max(V, Y), R));
|
|
22443
22444
|
const j = n?.anchorEl;
|
|
22444
22445
|
if (j) {
|
|
22445
|
-
const ue = j.getBoundingClientRect(),
|
|
22446
|
+
const ue = j.getBoundingClientRect(), X = N.getBoundingClientRect(), K = Math.ceil(X.height || 0), ne = Math.max(
|
|
22446
22447
|
0,
|
|
22447
22448
|
Math.floor(window.innerHeight - ue.bottom)
|
|
22448
|
-
),
|
|
22449
|
-
T(
|
|
22449
|
+
), pe = Math.max(0, Math.floor(ue.top)), Te = ne < K + 12 && pe > ne;
|
|
22450
|
+
T(Te ? "top" : "bottom");
|
|
22450
22451
|
}
|
|
22451
22452
|
});
|
|
22452
22453
|
return () => cancelAnimationFrame(x);
|
|
@@ -22490,8 +22491,8 @@ const Fn = {
|
|
|
22490
22491
|
onMouseLeave: () => {
|
|
22491
22492
|
a || b(null);
|
|
22492
22493
|
},
|
|
22493
|
-
onClick: (
|
|
22494
|
-
|
|
22494
|
+
onClick: (K) => {
|
|
22495
|
+
K.preventDefault(), K.stopPropagation();
|
|
22495
22496
|
},
|
|
22496
22497
|
children: [
|
|
22497
22498
|
/* @__PURE__ */ be("div", { className: "rte-steps-tooltip-header", children: [
|
|
@@ -22509,7 +22510,7 @@ const Fn = {
|
|
|
22509
22510
|
remarkPlugins: [Bn, Hn],
|
|
22510
22511
|
rehypePlugins: [wn, [kn, Fn]],
|
|
22511
22512
|
components: {
|
|
22512
|
-
p: ({ children:
|
|
22513
|
+
p: ({ children: K }) => /* @__PURE__ */ U("p", { style: { margin: 0 }, children: K })
|
|
22513
22514
|
},
|
|
22514
22515
|
children: q.description
|
|
22515
22516
|
}
|
|
@@ -22527,9 +22528,9 @@ const Fn = {
|
|
|
22527
22528
|
preview: {
|
|
22528
22529
|
visible: E,
|
|
22529
22530
|
current: V,
|
|
22530
|
-
onVisibleChange: (
|
|
22531
|
-
onChange: (
|
|
22532
|
-
const ne = Math.min(Math.max(
|
|
22531
|
+
onVisibleChange: (K) => A(K),
|
|
22532
|
+
onChange: (K) => {
|
|
22533
|
+
const ne = Math.min(Math.max(K, 0), I - 1);
|
|
22533
22534
|
v(ne), g.current?.slideTo(ne);
|
|
22534
22535
|
}
|
|
22535
22536
|
},
|
|
@@ -22541,15 +22542,15 @@ const Fn = {
|
|
|
22541
22542
|
navigation: !0,
|
|
22542
22543
|
pagination: { clickable: !0 },
|
|
22543
22544
|
initialSlide: V,
|
|
22544
|
-
onSwiper: (
|
|
22545
|
-
g.current =
|
|
22545
|
+
onSwiper: (K) => {
|
|
22546
|
+
g.current = K;
|
|
22546
22547
|
},
|
|
22547
|
-
onSlideChange: (
|
|
22548
|
-
children: q.images.map((
|
|
22548
|
+
onSlideChange: (K) => v(K.activeIndex),
|
|
22549
|
+
children: q.images.map((K, ne) => /* @__PURE__ */ U(Ku, { children: /* @__PURE__ */ U(
|
|
22549
22550
|
xl,
|
|
22550
22551
|
{
|
|
22551
22552
|
className: "rte-steps-tooltip-img",
|
|
22552
|
-
src:
|
|
22553
|
+
src: K,
|
|
22553
22554
|
alt: `step-${ne + 1}`,
|
|
22554
22555
|
width: "100%",
|
|
22555
22556
|
style: { width: "100%", display: "block" },
|
|
@@ -22564,7 +22565,7 @@ const Fn = {
|
|
|
22564
22565
|
v(ne), g.current?.slideTo(ne), A(!0);
|
|
22565
22566
|
}
|
|
22566
22567
|
}
|
|
22567
|
-
) }, `${
|
|
22568
|
+
) }, `${K}-${ne}`))
|
|
22568
22569
|
},
|
|
22569
22570
|
`${n.key}-${n.type}`
|
|
22570
22571
|
)
|
|
@@ -22578,7 +22579,7 @@ const Fn = {
|
|
|
22578
22579
|
remarkPlugins: [Bn, Hn],
|
|
22579
22580
|
rehypePlugins: [wn, [kn, Fn]],
|
|
22580
22581
|
components: {
|
|
22581
|
-
p: ({ children:
|
|
22582
|
+
p: ({ children: K }) => /* @__PURE__ */ U("p", { style: { margin: 0 }, children: K })
|
|
22582
22583
|
},
|
|
22583
22584
|
children: Y
|
|
22584
22585
|
}
|
|
@@ -22591,7 +22592,7 @@ const Fn = {
|
|
|
22591
22592
|
remarkPlugins: [Bn, Hn],
|
|
22592
22593
|
rehypePlugins: [wn, [kn, Fn]],
|
|
22593
22594
|
components: {
|
|
22594
|
-
p: ({ children:
|
|
22595
|
+
p: ({ children: K }) => /* @__PURE__ */ U("p", { style: { margin: 0 }, children: K })
|
|
22595
22596
|
},
|
|
22596
22597
|
children: R
|
|
22597
22598
|
}
|
|
@@ -29406,29 +29407,29 @@ function Ao() {
|
|
|
29406
29407
|
}, C.valueOf = function() {
|
|
29407
29408
|
return this.$d.getTime();
|
|
29408
29409
|
}, C.startOf = function(P, F) {
|
|
29409
|
-
var H = this, q = !!x.u(F) || F, I = x.p(P), V = function(
|
|
29410
|
-
var
|
|
29411
|
-
return q ?
|
|
29412
|
-
}, Y = function(
|
|
29413
|
-
return x.w(H.toDate()[
|
|
29414
|
-
}, R = this.$W, j = this.$M, ue = this.$D,
|
|
29410
|
+
var H = this, q = !!x.u(F) || F, I = x.p(P), V = function(pe, de) {
|
|
29411
|
+
var Te = x.w(H.$u ? Date.UTC(H.$y, de, pe) : new Date(H.$y, de, pe), H);
|
|
29412
|
+
return q ? Te : Te.endOf(o);
|
|
29413
|
+
}, Y = function(pe, de) {
|
|
29414
|
+
return x.w(H.toDate()[pe].apply(H.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), H);
|
|
29415
|
+
}, R = this.$W, j = this.$M, ue = this.$D, X = "set" + (this.$u ? "UTC" : "");
|
|
29415
29416
|
switch (I) {
|
|
29416
29417
|
case p:
|
|
29417
29418
|
return q ? V(1, 0) : V(31, 11);
|
|
29418
29419
|
case d:
|
|
29419
29420
|
return q ? V(1, j) : V(0, j + 1);
|
|
29420
29421
|
case c:
|
|
29421
|
-
var
|
|
29422
|
+
var K = this.$locale().weekStart || 0, ne = (R < K ? R + 7 : R) - K;
|
|
29422
29423
|
return V(q ? ue - ne : ue + (6 - ne), j);
|
|
29423
29424
|
case o:
|
|
29424
29425
|
case y:
|
|
29425
|
-
return Y(
|
|
29426
|
+
return Y(X + "Hours", 0);
|
|
29426
29427
|
case s:
|
|
29427
|
-
return Y(
|
|
29428
|
+
return Y(X + "Minutes", 1);
|
|
29428
29429
|
case u:
|
|
29429
|
-
return Y(
|
|
29430
|
+
return Y(X + "Seconds", 2);
|
|
29430
29431
|
case i:
|
|
29431
|
-
return Y(
|
|
29432
|
+
return Y(X + "Milliseconds", 3);
|
|
29432
29433
|
default:
|
|
29433
29434
|
return this.clone();
|
|
29434
29435
|
}
|
|
@@ -29463,16 +29464,16 @@ function Ao() {
|
|
|
29463
29464
|
}, C.format = function(P) {
|
|
29464
29465
|
var F = this, H = this.$locale();
|
|
29465
29466
|
if (!this.isValid()) return H.invalidDate || b;
|
|
29466
|
-
var q = P || "YYYY-MM-DDTHH:mm:ssZ", I = x.z(this), V = this.$H, Y = this.$m, R = this.$M, j = H.weekdays, ue = H.months,
|
|
29467
|
-
return
|
|
29468
|
-
}, ne = function(
|
|
29469
|
-
return x.s(V % 12 || 12,
|
|
29470
|
-
},
|
|
29471
|
-
var Ze =
|
|
29467
|
+
var q = P || "YYYY-MM-DDTHH:mm:ssZ", I = x.z(this), V = this.$H, Y = this.$m, R = this.$M, j = H.weekdays, ue = H.months, X = H.meridiem, K = function(de, Te, Me, Ze) {
|
|
29468
|
+
return de && (de[Te] || de(F, q)) || Me[Te].slice(0, Ze);
|
|
29469
|
+
}, ne = function(de) {
|
|
29470
|
+
return x.s(V % 12 || 12, de, "0");
|
|
29471
|
+
}, pe = X || function(de, Te, Me) {
|
|
29472
|
+
var Ze = de < 12 ? "AM" : "PM";
|
|
29472
29473
|
return Me ? Ze.toLowerCase() : Ze;
|
|
29473
29474
|
};
|
|
29474
|
-
return q.replace(v, function(
|
|
29475
|
-
return
|
|
29475
|
+
return q.replace(v, function(de, Te) {
|
|
29476
|
+
return Te || function(Me) {
|
|
29476
29477
|
switch (Me) {
|
|
29477
29478
|
case "YY":
|
|
29478
29479
|
return String(F.$y).slice(-2);
|
|
@@ -29483,9 +29484,9 @@ function Ao() {
|
|
|
29483
29484
|
case "MM":
|
|
29484
29485
|
return x.s(R + 1, 2, "0");
|
|
29485
29486
|
case "MMM":
|
|
29486
|
-
return
|
|
29487
|
+
return K(H.monthsShort, R, ue, 3);
|
|
29487
29488
|
case "MMMM":
|
|
29488
|
-
return
|
|
29489
|
+
return K(ue, R);
|
|
29489
29490
|
case "D":
|
|
29490
29491
|
return F.$D;
|
|
29491
29492
|
case "DD":
|
|
@@ -29493,9 +29494,9 @@ function Ao() {
|
|
|
29493
29494
|
case "d":
|
|
29494
29495
|
return String(F.$W);
|
|
29495
29496
|
case "dd":
|
|
29496
|
-
return
|
|
29497
|
+
return K(H.weekdaysMin, F.$W, j, 2);
|
|
29497
29498
|
case "ddd":
|
|
29498
|
-
return
|
|
29499
|
+
return K(H.weekdaysShort, F.$W, j, 3);
|
|
29499
29500
|
case "dddd":
|
|
29500
29501
|
return j[F.$W];
|
|
29501
29502
|
case "H":
|
|
@@ -29507,9 +29508,9 @@ function Ao() {
|
|
|
29507
29508
|
case "hh":
|
|
29508
29509
|
return ne(2);
|
|
29509
29510
|
case "a":
|
|
29510
|
-
return
|
|
29511
|
+
return pe(V, Y, !0);
|
|
29511
29512
|
case "A":
|
|
29512
|
-
return
|
|
29513
|
+
return pe(V, Y, !1);
|
|
29513
29514
|
case "m":
|
|
29514
29515
|
return String(Y);
|
|
29515
29516
|
case "mm":
|
|
@@ -29524,7 +29525,7 @@ function Ao() {
|
|
|
29524
29525
|
return I;
|
|
29525
29526
|
}
|
|
29526
29527
|
return null;
|
|
29527
|
-
}(
|
|
29528
|
+
}(de) || I.replace(":", "");
|
|
29528
29529
|
});
|
|
29529
29530
|
}, C.utcOffset = function() {
|
|
29530
29531
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -29862,28 +29863,28 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
29862
29863
|
onViewReport: q,
|
|
29863
29864
|
reportNameResolve: I
|
|
29864
29865
|
}) => {
|
|
29865
|
-
const [V, Y] = hc.useMessage(), R = Z(null), j = Z(null), ue = Z(null),
|
|
29866
|
-
if (!
|
|
29866
|
+
const [V, Y] = hc.useMessage(), R = Z(null), j = Z(null), ue = Z(null), X = Z(null), K = Z(null), ne = Z(null), pe = Z("");
|
|
29867
|
+
if (!pe.current) {
|
|
29867
29868
|
const J = Math.random().toString(36).slice(2, 8);
|
|
29868
|
-
|
|
29869
|
+
pe.current = `rte_${J}`;
|
|
29869
29870
|
}
|
|
29870
|
-
const [
|
|
29871
|
+
const [de, Te] = le({});
|
|
29871
29872
|
re(() => {
|
|
29872
|
-
x?.(
|
|
29873
|
-
}, [
|
|
29873
|
+
x?.(de);
|
|
29874
|
+
}, [de, x]);
|
|
29874
29875
|
const [Me, Ze] = le([]), sa = Z(!1);
|
|
29875
29876
|
re(() => {
|
|
29876
29877
|
if (!L) return;
|
|
29877
|
-
if (!(L.length === Me.length && L.every((oe,
|
|
29878
|
-
const ve = Me[
|
|
29878
|
+
if (!(L.length === Me.length && L.every((oe, ce) => {
|
|
29879
|
+
const ve = Me[ce];
|
|
29879
29880
|
return ve && oe.name === ve.name && oe.size === ve.size && oe.lastModified === ve.lastModified;
|
|
29880
29881
|
})))
|
|
29881
29882
|
if (L.reduce((ve, he) => ve + he.size, 0) > 52428800) {
|
|
29882
29883
|
const ve = [];
|
|
29883
29884
|
let he = 0;
|
|
29884
|
-
for (const
|
|
29885
|
-
if (he +
|
|
29886
|
-
ve.push(
|
|
29885
|
+
for (const we of L) {
|
|
29886
|
+
if (he + we.size > 52428800) break;
|
|
29887
|
+
ve.push(we), he += we.size;
|
|
29887
29888
|
}
|
|
29888
29889
|
V.error("文件总大小不能超过 50MB"), Ze(ve);
|
|
29889
29890
|
} else
|
|
@@ -29895,9 +29896,9 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
29895
29896
|
}
|
|
29896
29897
|
N?.(Me);
|
|
29897
29898
|
}, [Me, N]);
|
|
29898
|
-
const [Ja, oa] = le(null), [Za, el] = le(null), [tl, ca] = le(null), [ut, da] = le({}), [Yl, Wl] = le(""), [jl, W] = le(!1), ae = Z(null), me = Z(null), { tooltipPortal: ye, setPopoverVisible:
|
|
29899
|
+
const [Ja, oa] = le(null), [Za, el] = le(null), [tl, ca] = le(null), [ut, da] = le({}), [Yl, Wl] = le(""), [jl, W] = le(!1), ae = Z(null), me = Z(null), { tooltipPortal: ye, setPopoverVisible: Ae } = NE({
|
|
29899
29900
|
config: e,
|
|
29900
|
-
files:
|
|
29901
|
+
files: de,
|
|
29901
29902
|
debugTooltipSticky: T,
|
|
29902
29903
|
videoState: ut
|
|
29903
29904
|
}), { handleFileChange: et, handleRemoveFile: vt } = ld({
|
|
@@ -29909,7 +29910,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
29909
29910
|
setActiveFileKey: oa,
|
|
29910
29911
|
setActiveBatchKey: el,
|
|
29911
29912
|
setActiveBatchStartIndex: ca,
|
|
29912
|
-
setFiles:
|
|
29913
|
+
setFiles: Te
|
|
29913
29914
|
}), je = Z(null), [xt, Mt] = le({ showLeft: !1, showRight: !1 }), He = ie(() => {
|
|
29914
29915
|
const J = je.current;
|
|
29915
29916
|
J && Mt({
|
|
@@ -29918,21 +29919,21 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
29918
29919
|
});
|
|
29919
29920
|
}, []), Ct = ie((J) => {
|
|
29920
29921
|
if (!J.target.files || J.target.files.length === 0) return;
|
|
29921
|
-
const oe = 10 * 1024 * 1024,
|
|
29922
|
-
Ze((
|
|
29923
|
-
const
|
|
29924
|
-
let
|
|
29922
|
+
const oe = 10 * 1024 * 1024, ce = 50 * 1024 * 1024, ve = (we) => we.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(we.name || ""), he = Array.from(J.target.files).filter((we) => ve(we) && we.size > oe ? (V.error("图片大小不能超过 10MB"), !1) : !0);
|
|
29923
|
+
Ze((we) => {
|
|
29924
|
+
const xe = we.reduce((Oe, Pe) => Oe + Pe.size, 0), Ce = [];
|
|
29925
|
+
let ke = xe;
|
|
29925
29926
|
for (const Oe of he) {
|
|
29926
|
-
if (
|
|
29927
|
+
if (ke + Oe.size > ce) {
|
|
29927
29928
|
V.error("文件总大小不能超过 50MB");
|
|
29928
29929
|
break;
|
|
29929
29930
|
}
|
|
29930
|
-
|
|
29931
|
+
Ce.push(Oe), ke += Oe.size;
|
|
29931
29932
|
}
|
|
29932
|
-
return
|
|
29933
|
+
return Ce.length > 0 ? [...we, ...Ce] : we;
|
|
29933
29934
|
}), J.target.value = "", setTimeout(He, 0);
|
|
29934
29935
|
}, [V, He]), st = ie((J) => {
|
|
29935
|
-
Ze((oe) => oe.filter((
|
|
29936
|
+
Ze((oe) => oe.filter((ce, ve) => ve !== J)), setTimeout(He, 0);
|
|
29936
29937
|
}, [He]), wo = ie(() => {
|
|
29937
29938
|
const J = je.current;
|
|
29938
29939
|
J && J.scrollBy({ left: 200, behavior: "smooth" });
|
|
@@ -29947,8 +29948,8 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
29947
29948
|
} = Cd({
|
|
29948
29949
|
lockStructure: r,
|
|
29949
29950
|
onAgentExit: s,
|
|
29950
|
-
editorRef:
|
|
29951
|
-
setPopoverVisible:
|
|
29951
|
+
editorRef: X,
|
|
29952
|
+
setPopoverVisible: Ae,
|
|
29952
29953
|
isDraggingRef: Xl,
|
|
29953
29954
|
mouseDownPosRef: No
|
|
29954
29955
|
}), [Pr, al] = le(!1), Mr = Z(null), [Po, Rr] = le(!0), Mo = Z(0), [Br, Ro] = le(58), [Bo, Fo] = le(58), [Fr, Ho] = le(!1), [ll, Kl] = le(null), fa = Z(!1), pa = Z(!1), ct = Z(null), [Ql, ha] = le({}), At = Z(() => {
|
|
@@ -29970,9 +29971,9 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
29970
29971
|
});
|
|
29971
29972
|
fd({
|
|
29972
29973
|
config: e,
|
|
29973
|
-
editorRef:
|
|
29974
|
-
files:
|
|
29975
|
-
setFiles:
|
|
29974
|
+
editorRef: X,
|
|
29975
|
+
files: de,
|
|
29976
|
+
setFiles: Te,
|
|
29976
29977
|
multiVariableCounts: gt,
|
|
29977
29978
|
setMultiVariableCounts: ba,
|
|
29978
29979
|
reportAnalyzeState: Ql,
|
|
@@ -29987,15 +29988,15 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
29987
29988
|
if (_ !== qr.current && (qr.current = _, _)) {
|
|
29988
29989
|
const J = {};
|
|
29989
29990
|
let oe = !1;
|
|
29990
|
-
e.forEach((
|
|
29991
|
-
if (Ge(
|
|
29992
|
-
const ve = _[
|
|
29991
|
+
e.forEach((ce) => {
|
|
29992
|
+
if (Ge(ce.type) && ce.key) {
|
|
29993
|
+
const ve = _[ce.key], he = Array.isArray(ve) ? ve.filter((we) => we.trim().length > 0) : ve;
|
|
29993
29994
|
if (Array.isArray(he) && he.length > 0) {
|
|
29994
|
-
const
|
|
29995
|
-
gt[
|
|
29995
|
+
const we = ce.maxCount ?? 9, xe = Math.min(he.length + 1, we);
|
|
29996
|
+
gt[ce.key] !== xe && (J[ce.key] = xe, oe = !0);
|
|
29996
29997
|
}
|
|
29997
29998
|
}
|
|
29998
|
-
}), oe && ba((
|
|
29999
|
+
}), oe && ba((ce) => ({ ...ce, ...J }));
|
|
29999
30000
|
}
|
|
30000
30001
|
const Le = vd({
|
|
30001
30002
|
config: e,
|
|
@@ -30013,7 +30014,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30013
30014
|
setMarkdownAnalyzeState: nl,
|
|
30014
30015
|
markdownNameAnalyzeState: Bt,
|
|
30015
30016
|
setMarkdownNameAnalyzeState: Zl,
|
|
30016
|
-
editorRef:
|
|
30017
|
+
editorRef: X,
|
|
30017
30018
|
reportAnalyzeRef: At,
|
|
30018
30019
|
markdownAnalyzeRef: Hr,
|
|
30019
30020
|
markdownNameAnalyzeRef: $r,
|
|
@@ -30022,193 +30023,193 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30022
30023
|
reportNameResolve: I,
|
|
30023
30024
|
applyReportNameChipRef: il
|
|
30024
30025
|
});
|
|
30025
|
-
Kc(
|
|
30026
|
-
if (!
|
|
30026
|
+
Kc(X, Uo, [Le]), ed(X, zo, [Le]), td(X, qo, [Le]), Ye(() => {
|
|
30027
|
+
if (!X.current || !I) return;
|
|
30027
30028
|
const J = /* @__PURE__ */ new Map(), oe = window.setTimeout(() => {
|
|
30028
|
-
if (!
|
|
30029
|
-
|
|
30029
|
+
if (!X.current) return;
|
|
30030
|
+
X.current.querySelectorAll(
|
|
30030
30031
|
'[data-type="variable"][data-multi-key]'
|
|
30031
30032
|
).forEach((ve) => {
|
|
30032
30033
|
const he = () => {
|
|
30033
30034
|
if (ve.getAttribute("data-report-url")) return;
|
|
30034
|
-
const
|
|
30035
|
-
if (!
|
|
30036
|
-
const
|
|
30037
|
-
zr(
|
|
30035
|
+
const we = ve.dataset.key;
|
|
30036
|
+
if (!we) return;
|
|
30037
|
+
const xe = ve.innerText.replace(/[\u200B\n]/g, "").trim(), Ce = ve.dataset.multiKey, Oe = (Ce ? Le.find((Pe) => Ge(Pe.type) && Pe.key === Ce) : void 0)?.type === "multi-variable-select" ? "multi-variable-select" : "multi-variable";
|
|
30038
|
+
zr(we, xe, Oe);
|
|
30038
30039
|
};
|
|
30039
30040
|
ve.addEventListener("blur", he, !1), J.set(ve, he);
|
|
30040
30041
|
});
|
|
30041
30042
|
}, 0);
|
|
30042
30043
|
return () => {
|
|
30043
|
-
window.clearTimeout(oe), J.forEach((
|
|
30044
|
+
window.clearTimeout(oe), J.forEach((ce, ve) => ve.removeEventListener("blur", ce, !1)), J.clear();
|
|
30044
30045
|
};
|
|
30045
|
-
}, [
|
|
30046
|
-
rl.current[J] = { name: oe, url:
|
|
30047
|
-
const ve =
|
|
30046
|
+
}, [X, zr, Le, gt]), Xc(X, [Le]), il.current = (J, oe, ce) => {
|
|
30047
|
+
rl.current[J] = { name: oe, url: ce };
|
|
30048
|
+
const ve = X.current;
|
|
30048
30049
|
if (!ve) return;
|
|
30049
30050
|
const he = ve.querySelector(
|
|
30050
30051
|
`[data-type="variable"][data-key="${J}"]`
|
|
30051
30052
|
);
|
|
30052
|
-
if (!he || he.getAttribute("data-report-url") ===
|
|
30053
|
+
if (!he || he.getAttribute("data-report-url") === ce) return;
|
|
30053
30054
|
he.classList.remove("show-placeholder", "rte-variable-with-icon"), he.classList.add("rte-report-name-chip");
|
|
30054
|
-
const
|
|
30055
|
+
const we = he.querySelector(".rte-report-dropdown-host");
|
|
30055
30056
|
for (; he.firstChild; ) he.removeChild(he.firstChild);
|
|
30056
|
-
he.appendChild(document.createTextNode(oe)),
|
|
30057
|
+
he.appendChild(document.createTextNode(oe)), we && (we.style.display = "none", he.appendChild(we)), he.setAttribute("data-report-url", ce), he.setAttribute("data-report-name", oe), he.contentEditable = "false", setTimeout(() => {
|
|
30057
30058
|
Qr.current();
|
|
30058
30059
|
}, 0);
|
|
30059
30060
|
};
|
|
30060
30061
|
const Vo = ie(
|
|
30061
|
-
(J, oe,
|
|
30062
|
-
|
|
30063
|
-
At.current(J,
|
|
30064
|
-
}, 0)) : (oe === "multi-variable" || oe === "multi-variable-select") && (il.current(J,
|
|
30065
|
-
At.current(J,
|
|
30062
|
+
(J, oe, ce) => {
|
|
30063
|
+
X.current && (oe === "report-url" ? (il.current(J, ce.name, ce.url), setTimeout(() => {
|
|
30064
|
+
At.current(J, ce.url);
|
|
30065
|
+
}, 0)) : (oe === "multi-variable" || oe === "multi-variable-select") && (il.current(J, ce.name, ce.url), oe === "multi-variable-select" && setTimeout(() => {
|
|
30066
|
+
At.current(J, ce.url);
|
|
30066
30067
|
}, 0)));
|
|
30067
30068
|
},
|
|
30068
|
-
[
|
|
30069
|
+
[X, At]
|
|
30069
30070
|
), Go = Zc(
|
|
30070
|
-
|
|
30071
|
+
X,
|
|
30071
30072
|
F,
|
|
30072
30073
|
Vo,
|
|
30073
30074
|
H,
|
|
30074
30075
|
q,
|
|
30075
30076
|
gt
|
|
30076
30077
|
);
|
|
30077
|
-
cy(
|
|
30078
|
+
cy(X, Le, de, r, gt, Mr, void 0, p, void 0, _, ut, !!F, rl);
|
|
30078
30079
|
const en = Z(/* @__PURE__ */ new Set()), Vr = Z(Le), Gr = Z(_);
|
|
30079
30080
|
(Vr.current !== Le || Gr.current !== _) && (Vr.current = Le, Gr.current = _, en.current = /* @__PURE__ */ new Set()), re(() => {
|
|
30080
30081
|
if (!_ || !Le || Le.length === 0) return;
|
|
30081
|
-
const J = Le.filter((
|
|
30082
|
+
const J = Le.filter((xe) => xe.type === "upload" && xe.key);
|
|
30082
30083
|
if (J.length === 0) return;
|
|
30083
|
-
const oe = {},
|
|
30084
|
-
|
|
30084
|
+
const oe = {}, ce = (xe, Ce) => {
|
|
30085
|
+
Ce && (Ce instanceof File ? oe[xe] = Ce : typeof Ce == "string" && Ce.trim() && (oe[xe] = Ce.trim()));
|
|
30085
30086
|
};
|
|
30086
|
-
for (const
|
|
30087
|
-
const
|
|
30088
|
-
if (en.current.has(
|
|
30089
|
-
const
|
|
30090
|
-
if (Array.isArray(
|
|
30091
|
-
Oe ?
|
|
30087
|
+
for (const xe of J) {
|
|
30088
|
+
const Ce = xe.key;
|
|
30089
|
+
if (en.current.has(Ce)) continue;
|
|
30090
|
+
const ke = _[Ce], Oe = typeof xe.maxCount == "number" && xe.maxCount > 1;
|
|
30091
|
+
if (Array.isArray(ke) && ke.length > 0) {
|
|
30092
|
+
Oe ? ke.forEach((Pe, Xe) => ce(`${Ce}-${Xe}`, Pe)) : ce(Ce, ke[0]);
|
|
30092
30093
|
continue;
|
|
30093
30094
|
}
|
|
30094
|
-
if (
|
|
30095
|
-
|
|
30095
|
+
if (ke && !Array.isArray(ke)) {
|
|
30096
|
+
ce(Ce, ke);
|
|
30096
30097
|
continue;
|
|
30097
30098
|
}
|
|
30098
30099
|
if (Oe)
|
|
30099
|
-
for (let Pe = 0; Pe <
|
|
30100
|
-
const Xe = `${
|
|
30100
|
+
for (let Pe = 0; Pe < xe.maxCount; Pe++) {
|
|
30101
|
+
const Xe = `${Ce}-${Pe}`, St = _[Xe];
|
|
30101
30102
|
if (!St) break;
|
|
30102
|
-
|
|
30103
|
+
ce(Xe, St);
|
|
30103
30104
|
}
|
|
30104
30105
|
}
|
|
30105
30106
|
if (Object.keys(oe).length === 0) return;
|
|
30106
|
-
for (const
|
|
30107
|
-
_[
|
|
30108
|
-
|
|
30109
|
-
const
|
|
30110
|
-
let
|
|
30107
|
+
for (const xe of J)
|
|
30108
|
+
_[xe.key] !== void 0 && en.current.add(xe.key);
|
|
30109
|
+
Te((xe) => {
|
|
30110
|
+
const Ce = { ...xe };
|
|
30111
|
+
let ke = !1;
|
|
30111
30112
|
for (const Oe of J) {
|
|
30112
30113
|
const Pe = Oe.key;
|
|
30113
30114
|
if (_[Pe] === void 0) continue;
|
|
30114
30115
|
if (typeof Oe.maxCount == "number" && Oe.maxCount > 1)
|
|
30115
30116
|
for (let St = 0; St < Oe.maxCount; St++) {
|
|
30116
30117
|
const tn = `${Pe}-${St}`;
|
|
30117
|
-
!oe[tn] &&
|
|
30118
|
+
!oe[tn] && xe[tn] && (Ce[tn] = null, ke = !0);
|
|
30118
30119
|
}
|
|
30119
30120
|
}
|
|
30120
30121
|
for (const [Oe, Pe] of Object.entries(oe))
|
|
30121
|
-
|
|
30122
|
-
return
|
|
30122
|
+
xe[Oe] !== Pe && (Ce[Oe] = Pe, ke = !0);
|
|
30123
|
+
return ke ? Ce : xe;
|
|
30123
30124
|
});
|
|
30124
30125
|
const ve = Object.entries(oe).filter(
|
|
30125
|
-
([,
|
|
30126
|
+
([, xe]) => typeof xe == "string"
|
|
30126
30127
|
);
|
|
30127
30128
|
if (ve.length === 0) return;
|
|
30128
|
-
const he = async (
|
|
30129
|
-
const
|
|
30129
|
+
const he = async (xe) => {
|
|
30130
|
+
const Ce = xe.split("/").pop()?.split("?")[0] || "file", ke = decodeURIComponent(Ce), Oe = async (Pe) => {
|
|
30130
30131
|
const Xe = await Pe.blob();
|
|
30131
|
-
return new File([Xe],
|
|
30132
|
+
return new File([Xe], ke, { type: Xe.type || "application/octet-stream" });
|
|
30132
30133
|
};
|
|
30133
30134
|
try {
|
|
30134
|
-
const Pe = `/api/image-proxy?url=${encodeURIComponent(
|
|
30135
|
+
const Pe = `/api/image-proxy?url=${encodeURIComponent(xe)}`, Xe = await fetch(Pe);
|
|
30135
30136
|
if (Xe.ok) return Oe(Xe);
|
|
30136
30137
|
} catch {
|
|
30137
30138
|
}
|
|
30138
30139
|
return null;
|
|
30139
30140
|
};
|
|
30140
|
-
let
|
|
30141
|
+
let we = !1;
|
|
30141
30142
|
return Promise.all(
|
|
30142
|
-
ve.map(async ([
|
|
30143
|
-
const
|
|
30144
|
-
return
|
|
30143
|
+
ve.map(async ([xe, Ce]) => {
|
|
30144
|
+
const ke = await he(Ce);
|
|
30145
|
+
return ke ? { key: xe, file: ke } : null;
|
|
30145
30146
|
})
|
|
30146
|
-
).then((
|
|
30147
|
-
if (
|
|
30148
|
-
const
|
|
30149
|
-
for (const
|
|
30150
|
-
|
|
30151
|
-
Object.keys(
|
|
30152
|
-
const Oe = { ...
|
|
30147
|
+
).then((xe) => {
|
|
30148
|
+
if (we) return;
|
|
30149
|
+
const Ce = {};
|
|
30150
|
+
for (const ke of xe)
|
|
30151
|
+
ke && (Ce[ke.key] = ke.file);
|
|
30152
|
+
Object.keys(Ce).length > 0 && Te((ke) => {
|
|
30153
|
+
const Oe = { ...ke };
|
|
30153
30154
|
let Pe = !1;
|
|
30154
|
-
for (const [Xe, St] of Object.entries(
|
|
30155
|
+
for (const [Xe, St] of Object.entries(Ce))
|
|
30155
30156
|
typeof Oe[Xe] == "string" && (Oe[Xe] = St, Pe = !0);
|
|
30156
|
-
return Pe ? Oe :
|
|
30157
|
+
return Pe ? Oe : ke;
|
|
30157
30158
|
});
|
|
30158
30159
|
}), () => {
|
|
30159
|
-
|
|
30160
|
+
we = !0;
|
|
30160
30161
|
};
|
|
30161
30162
|
}, [_, Le]);
|
|
30162
30163
|
const ma = Z(/* @__PURE__ */ new Set()), Yr = Z(""), Wr = (e || []).filter((J) => J.key && J.type !== "report-module" && J.type !== "markdown-module").map((J) => `${J.type}:${J.key}`).join("|");
|
|
30163
30164
|
Yr.current !== Wr && (Yr.current = Wr, ma.current = /* @__PURE__ */ new Set()), re(() => {
|
|
30164
30165
|
if (!_ || !e || e.length === 0) return;
|
|
30165
|
-
const J = e.filter((
|
|
30166
|
+
const J = e.filter((ce) => ce.type === "report-url" && ce.key), oe = e.filter((ce) => ce.type === "multi-variable-select" && ce.key);
|
|
30166
30167
|
if (!(J.length === 0 && oe.length === 0)) {
|
|
30167
|
-
for (const
|
|
30168
|
-
const ve =
|
|
30168
|
+
for (const ce of J) {
|
|
30169
|
+
const ve = ce.key;
|
|
30169
30170
|
if (ma.current.has(ve)) continue;
|
|
30170
30171
|
const he = _[ve] ?? _[`${ve}__url`];
|
|
30171
30172
|
if (!he || typeof he == "string" && !he.trim()) continue;
|
|
30172
|
-
const
|
|
30173
|
-
|
|
30174
|
-
At.current(ve,
|
|
30173
|
+
const we = Array.isArray(he) ? he[0] : String(he);
|
|
30174
|
+
we && (ma.current.add(ve), setTimeout(() => {
|
|
30175
|
+
At.current(ve, we);
|
|
30175
30176
|
}, 100));
|
|
30176
30177
|
}
|
|
30177
|
-
for (const
|
|
30178
|
-
const ve =
|
|
30179
|
-
!Array.isArray(he) || he.length === 0 || he.forEach((
|
|
30180
|
-
const
|
|
30181
|
-
if (!
|
|
30182
|
-
const
|
|
30183
|
-
ma.current.has(
|
|
30184
|
-
At.current(
|
|
30178
|
+
for (const ce of oe) {
|
|
30179
|
+
const ve = ce.key, he = _[ve];
|
|
30180
|
+
!Array.isArray(he) || he.length === 0 || he.forEach((we, xe) => {
|
|
30181
|
+
const Ce = typeof we == "string" ? we.trim() : "";
|
|
30182
|
+
if (!Ce) return;
|
|
30183
|
+
const ke = `${ve}_${xe}`;
|
|
30184
|
+
ma.current.has(ke) || (ma.current.add(ke), setTimeout(() => {
|
|
30185
|
+
At.current(ke, Ce);
|
|
30185
30186
|
}, 100));
|
|
30186
30187
|
});
|
|
30187
30188
|
}
|
|
30188
30189
|
}
|
|
30189
|
-
}, [_, e, At]), dy(
|
|
30190
|
-
const Yo = sd(P, da);
|
|
30191
|
-
od(
|
|
30192
|
-
const jr = Hc(
|
|
30190
|
+
}, [_, e, At]), dy(X, Le, de, Ae, T), fy(X, Le, Ae, p, T), hy(X, Le, de, Ae, T), py(X, Le, Ae, T), by(X, Le, de, al, ut, _), ud(X, C, ut, da, [Le]);
|
|
30191
|
+
const Yo = sd(P, da, X);
|
|
30192
|
+
od(X, ut, Ae, T), my(X, Xl);
|
|
30193
|
+
const jr = Hc(X), Wo = Uc(X), jo = zc(X), Xr = jc(X);
|
|
30193
30194
|
re(() => {
|
|
30194
|
-
if (!
|
|
30195
|
-
|
|
30196
|
-
const
|
|
30197
|
-
oe.innerHTML =
|
|
30195
|
+
if (!X.current) return;
|
|
30196
|
+
X.current.querySelectorAll(".rte-richtext-toggle").forEach((oe) => {
|
|
30197
|
+
const ce = oe.getAttribute("data-expanded") === "true";
|
|
30198
|
+
oe.innerHTML = ce ? '<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>';
|
|
30198
30199
|
});
|
|
30199
|
-
}, [Le,
|
|
30200
|
-
const Kr = Ny(
|
|
30200
|
+
}, [Le, X]);
|
|
30201
|
+
const Kr = Ny(X), { measureExpandedContentHeight: va } = bd({
|
|
30201
30202
|
collapsed: E,
|
|
30202
30203
|
collapseTransitionMs: k,
|
|
30203
30204
|
contentRef: j,
|
|
30204
30205
|
contentBodyRef: ue,
|
|
30205
|
-
editorRef:
|
|
30206
|
-
debugIdRef:
|
|
30206
|
+
editorRef: X,
|
|
30207
|
+
debugIdRef: pe,
|
|
30207
30208
|
setCollapsedContentMaxHeightPx: Ro,
|
|
30208
30209
|
setExpandedContentMaxHeightPx: Fo,
|
|
30209
30210
|
setIsCollapseAnimating: Ho,
|
|
30210
30211
|
effectiveConfig: Le,
|
|
30211
|
-
files:
|
|
30212
|
+
files: de,
|
|
30212
30213
|
multiVariableCounts: gt,
|
|
30213
30214
|
selectPortalsLength: jr.length,
|
|
30214
30215
|
datePickerPortalsLength: Kr.length,
|
|
@@ -30233,9 +30234,9 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30233
30234
|
Kl(null), va(), fa.current = !1, pa.current = !1;
|
|
30234
30235
|
});
|
|
30235
30236
|
}));
|
|
30236
|
-
}, [
|
|
30237
|
+
}, [de, va]), md({
|
|
30237
30238
|
config: e,
|
|
30238
|
-
editorRef:
|
|
30239
|
+
editorRef: X,
|
|
30239
30240
|
setIsEmpty: Rr,
|
|
30240
30241
|
setIsFormValid: al
|
|
30241
30242
|
});
|
|
@@ -30245,12 +30246,12 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30245
30246
|
onCollapsedChange: O,
|
|
30246
30247
|
config: e,
|
|
30247
30248
|
lockStructure: r,
|
|
30248
|
-
editorRef:
|
|
30249
|
+
editorRef: X,
|
|
30249
30250
|
containerRef: R,
|
|
30250
|
-
fileInputRef:
|
|
30251
|
+
fileInputRef: K,
|
|
30251
30252
|
onBeforeFilePickerOpen: Xo,
|
|
30252
|
-
files:
|
|
30253
|
-
setFiles:
|
|
30253
|
+
files: de,
|
|
30254
|
+
setFiles: Te,
|
|
30254
30255
|
handleRemoveFile: vt,
|
|
30255
30256
|
setActiveBatchKey: el,
|
|
30256
30257
|
setActiveBatchStartIndex: ca,
|
|
@@ -30266,7 +30267,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30266
30267
|
}
|
|
30267
30268
|
}), ga = Td({
|
|
30268
30269
|
config: e,
|
|
30269
|
-
editorRef:
|
|
30270
|
+
editorRef: X,
|
|
30270
30271
|
setIsEmpty: Rr,
|
|
30271
30272
|
setIsFormValid: al,
|
|
30272
30273
|
setReportAnalyzeState: ha,
|
|
@@ -30275,7 +30276,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30275
30276
|
collapsed: E,
|
|
30276
30277
|
measureExpandedContentHeight: va,
|
|
30277
30278
|
effectiveConfig: Le,
|
|
30278
|
-
files:
|
|
30279
|
+
files: de,
|
|
30279
30280
|
multiVariableCounts: gt,
|
|
30280
30281
|
setMultiVariableCounts: ba,
|
|
30281
30282
|
savedCursorRef: Mr,
|
|
@@ -30288,7 +30289,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30288
30289
|
config: e,
|
|
30289
30290
|
multiVariableCounts: gt,
|
|
30290
30291
|
setMultiVariableCounts: ba,
|
|
30291
|
-
editorRef:
|
|
30292
|
+
editorRef: X,
|
|
30292
30293
|
handleInput: ga,
|
|
30293
30294
|
markdownAnalyzeRef: Hr,
|
|
30294
30295
|
reportAnalyzeRef: At,
|
|
@@ -30304,21 +30305,21 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30304
30305
|
Ed({
|
|
30305
30306
|
config: e,
|
|
30306
30307
|
effectiveConfig: Le,
|
|
30307
|
-
files:
|
|
30308
|
-
editorRef:
|
|
30308
|
+
files: de,
|
|
30309
|
+
editorRef: X,
|
|
30309
30310
|
setIsFormValid: al,
|
|
30310
30311
|
multiVariableCounts: gt,
|
|
30311
30312
|
setMultiVariableCounts: ba,
|
|
30312
30313
|
videoState: ut
|
|
30313
30314
|
});
|
|
30314
30315
|
const Jo = ie((J, oe) => {
|
|
30315
|
-
delete rl.current[J], oe === "report-url" && ha((
|
|
30316
|
-
...
|
|
30316
|
+
delete rl.current[J], oe === "report-url" && ha((ce) => ({
|
|
30317
|
+
...ce,
|
|
30317
30318
|
[J]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
|
|
30318
30319
|
}));
|
|
30319
30320
|
}, [ha]), Jr = Sd({
|
|
30320
30321
|
config: e,
|
|
30321
|
-
files:
|
|
30322
|
+
files: de,
|
|
30322
30323
|
footerFiles: Me,
|
|
30323
30324
|
onFooterFilesClear: () => Ze([]),
|
|
30324
30325
|
onSend: t,
|
|
@@ -30326,7 +30327,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30326
30327
|
disabled: l,
|
|
30327
30328
|
loading: o,
|
|
30328
30329
|
isFormValid: Pr,
|
|
30329
|
-
editorRef:
|
|
30330
|
+
editorRef: X,
|
|
30330
30331
|
markdownAnalyzeState: Rt,
|
|
30331
30332
|
markdownNameAnalyzeState: Bt,
|
|
30332
30333
|
videoState: ut
|
|
@@ -30334,7 +30335,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30334
30335
|
disabled: l,
|
|
30335
30336
|
lockStructure: r,
|
|
30336
30337
|
config: e,
|
|
30337
|
-
editorRef:
|
|
30338
|
+
editorRef: X,
|
|
30338
30339
|
handleInput: ga,
|
|
30339
30340
|
onEnterSend: Jr,
|
|
30340
30341
|
onReportChipDeleted: Jo
|
|
@@ -30391,9 +30392,9 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30391
30392
|
ref: je,
|
|
30392
30393
|
onScroll: He,
|
|
30393
30394
|
children: Me.map((J, oe) => {
|
|
30394
|
-
const
|
|
30395
|
+
const ce = J.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(J.name || ""), ve = J.size < 1024 ? `${J.size}B` : J.size < 1024 * 1024 ? `${Math.round(J.size / 1024)}KB` : `${(J.size / (1024 * 1024)).toFixed(1)}MB`;
|
|
30395
30396
|
return /* @__PURE__ */ be("div", { className: "rte-footer-file-chip", children: [
|
|
30396
|
-
|
|
30397
|
+
ce ? /* @__PURE__ */ U(
|
|
30397
30398
|
xl,
|
|
30398
30399
|
{
|
|
30399
30400
|
style: {
|
|
@@ -30453,7 +30454,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30453
30454
|
/* @__PURE__ */ U(
|
|
30454
30455
|
"div",
|
|
30455
30456
|
{
|
|
30456
|
-
ref:
|
|
30457
|
+
ref: X,
|
|
30457
30458
|
className: `rte-editor ${e.length === 0 ? "rte-editor-default" : ""} ${Po && c ? "rte-editor-empty" : ""}`,
|
|
30458
30459
|
contentEditable: e.length === 0,
|
|
30459
30460
|
suppressContentEditableWarning: !0,
|
|
@@ -30472,7 +30473,7 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30472
30473
|
"input",
|
|
30473
30474
|
{
|
|
30474
30475
|
type: "file",
|
|
30475
|
-
ref:
|
|
30476
|
+
ref: K,
|
|
30476
30477
|
className: "rte-file-input",
|
|
30477
30478
|
accept: ".csv,.xlsx,.xls,.txt,.pdf,image/*",
|
|
30478
30479
|
onChange: et
|
|
@@ -30486,8 +30487,8 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30486
30487
|
className: "rte-file-input",
|
|
30487
30488
|
accept: "video/*",
|
|
30488
30489
|
onChange: (J) => {
|
|
30489
|
-
const oe = J.target.files?.[0],
|
|
30490
|
-
oe && oe.size > 1024 * 1024 * 1024 ? V.warning("视频文件不能超过1GB") : oe &&
|
|
30490
|
+
const oe = J.target.files?.[0], ce = me.current;
|
|
30491
|
+
oe && oe.size > 1024 * 1024 * 1024 ? V.warning("视频文件不能超过1GB") : oe && ce && Yo(ce, oe), me.current = null, ae.current && (ae.current.value = "");
|
|
30491
30492
|
}
|
|
30492
30493
|
}
|
|
30493
30494
|
)
|
|
@@ -30553,9 +30554,9 @@ const { RangePicker: wy } = pc, ky = ({ host: e, onChange: t }) => {
|
|
|
30553
30554
|
/* @__PURE__ */ U("span", { className: "rte-brand-text", style: { marginLeft: "4px" }, children: "SealSeek 2.0" })
|
|
30554
30555
|
] }),
|
|
30555
30556
|
(() => {
|
|
30556
|
-
const J = e.find((
|
|
30557
|
+
const J = e.find((ce) => ce.type === "tag");
|
|
30557
30558
|
if (!J || !J.text) return null;
|
|
30558
|
-
const oe = i.find((
|
|
30559
|
+
const oe = i.find((ce) => ce.label === J.text);
|
|
30559
30560
|
return !oe || oe.points === void 0 || oe.points === null ? null : /* @__PURE__ */ be("div", { className: "rte-points-badge", style: { position: "relative" }, children: [
|
|
30560
30561
|
/* @__PURE__ */ U("i", { className: "iconfont icon-jifen", style: { marginRight: "4px", fontSize: "16px" } }),
|
|
30561
30562
|
/* @__PURE__ */ be("span", { style: { fontSize: "16px", lineHeight: "22px" }, children: [
|
|
@@ -31142,30 +31143,30 @@ const Ry = ({
|
|
|
31142
31143
|
re(() => {
|
|
31143
31144
|
N.current = e, M.current = h, L.current = A, C.current = y;
|
|
31144
31145
|
});
|
|
31145
|
-
const F = ie((
|
|
31146
|
-
let
|
|
31146
|
+
const F = ie((K, ne) => {
|
|
31147
|
+
let pe = 0;
|
|
31147
31148
|
O(!0);
|
|
31148
|
-
const
|
|
31149
|
-
|
|
31149
|
+
const de = () => {
|
|
31150
|
+
pe < K.length ? (b(K.slice(0, pe + 1)), pe++, x.current = window.setTimeout(de, a)) : (O(!1), ne?.());
|
|
31150
31151
|
};
|
|
31151
|
-
|
|
31152
|
-
}, [a]), H = ie((
|
|
31152
|
+
de();
|
|
31153
|
+
}, [a]), H = ie((K) => {
|
|
31153
31154
|
let ne = C.current.length;
|
|
31154
|
-
const
|
|
31155
|
-
ne > 0 ? (b(C.current.slice(0, ne - 1)), ne--, x.current = window.setTimeout(
|
|
31155
|
+
const pe = () => {
|
|
31156
|
+
ne > 0 ? (b(C.current.slice(0, ne - 1)), ne--, x.current = window.setTimeout(pe, a / 2)) : K?.();
|
|
31156
31157
|
};
|
|
31157
|
-
|
|
31158
|
+
pe();
|
|
31158
31159
|
}, [a]), q = ie(() => {
|
|
31159
31160
|
if (N.current.length === 0 || L.current) return;
|
|
31160
31161
|
E(!0);
|
|
31161
|
-
const
|
|
31162
|
+
const K = N.current[M.current];
|
|
31162
31163
|
C.current ? H(() => {
|
|
31163
|
-
F(
|
|
31164
|
+
F(K, () => {
|
|
31164
31165
|
_.current = window.setTimeout(() => {
|
|
31165
31166
|
v((ne) => (ne + 1) % N.current.length), E(!1);
|
|
31166
31167
|
}, 2e3);
|
|
31167
31168
|
});
|
|
31168
|
-
}) : F(
|
|
31169
|
+
}) : F(K, () => {
|
|
31169
31170
|
_.current = window.setTimeout(() => {
|
|
31170
31171
|
v((ne) => (ne + 1) % N.current.length), E(!1);
|
|
31171
31172
|
}, 2e3);
|
|
@@ -31176,19 +31177,19 @@ const Ry = ({
|
|
|
31176
31177
|
}), [h, A, l, e.length, q]), re(() => {
|
|
31177
31178
|
!g && l && e.length > 0 && !A && q();
|
|
31178
31179
|
}, [h, g, l, e.length, A, q]);
|
|
31179
|
-
const I = (
|
|
31180
|
-
w(!0), _.current && window.clearTimeout(_.current), x.current && window.clearTimeout(x.current), E(!1), O(!1), p.onFocus?.(
|
|
31181
|
-
}, V = (
|
|
31182
|
-
w(!1), !n && e.length > 0 && (b(""), v(0)), p.onBlur?.(
|
|
31183
|
-
}, Y = (
|
|
31184
|
-
const ne =
|
|
31185
|
-
u && ne.length > u || (r ? r(ne) : T(ne), p.onChange?.(
|
|
31180
|
+
const I = (K) => {
|
|
31181
|
+
w(!0), _.current && window.clearTimeout(_.current), x.current && window.clearTimeout(x.current), E(!1), O(!1), p.onFocus?.(K);
|
|
31182
|
+
}, V = (K) => {
|
|
31183
|
+
w(!1), !n && e.length > 0 && (b(""), v(0)), p.onBlur?.(K);
|
|
31184
|
+
}, Y = (K) => {
|
|
31185
|
+
const ne = K.target.value;
|
|
31186
|
+
u && ne.length > u || (r ? r(ne) : T(ne), p.onChange?.(K));
|
|
31186
31187
|
}, R = () => {
|
|
31187
|
-
const
|
|
31188
|
-
|
|
31189
|
-
}, j = (
|
|
31190
|
-
(
|
|
31191
|
-
}, ue = r ? n : k,
|
|
31188
|
+
const K = r ? n : k;
|
|
31189
|
+
K.trim() && !c && (i?.(K), r || T(""));
|
|
31190
|
+
}, j = (K) => {
|
|
31191
|
+
(K.ctrlKey || K.metaKey) && K.key === "Enter" && (K.preventDefault(), R()), p.onKeyDown?.(K);
|
|
31192
|
+
}, ue = r ? n : k, X = c || !ue.trim() || (u ? ue.length > u : !1);
|
|
31192
31193
|
return /* @__PURE__ */ be("div", { style: { position: "relative", ...m }, children: [
|
|
31193
31194
|
/* @__PURE__ */ be("div", { style: { position: "relative" }, children: [
|
|
31194
31195
|
/* @__PURE__ */ U(
|
|
@@ -31197,11 +31198,11 @@ const Ry = ({
|
|
|
31197
31198
|
ref: P,
|
|
31198
31199
|
value: r ? n : k,
|
|
31199
31200
|
onChange: Y,
|
|
31200
|
-
onFocus: (
|
|
31201
|
-
|
|
31201
|
+
onFocus: (K) => {
|
|
31202
|
+
K.target.style.borderColor = "#1890ff", K.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", I(K);
|
|
31202
31203
|
},
|
|
31203
|
-
onBlur: (
|
|
31204
|
-
|
|
31204
|
+
onBlur: (K) => {
|
|
31205
|
+
K.target.style.borderColor = "#d9d9d9", K.target.style.boxShadow = "none", V(K);
|
|
31205
31206
|
},
|
|
31206
31207
|
onKeyDown: j,
|
|
31207
31208
|
placeholder: A || ue ? t : "",
|
|
@@ -31283,7 +31284,7 @@ const Ry = ({
|
|
|
31283
31284
|
size: "small",
|
|
31284
31285
|
icon: /* @__PURE__ */ U(Ac, {}),
|
|
31285
31286
|
onClick: R,
|
|
31286
|
-
disabled:
|
|
31287
|
+
disabled: X,
|
|
31287
31288
|
style: {
|
|
31288
31289
|
borderRadius: 6,
|
|
31289
31290
|
minWidth: 32,
|