bi-components-library 1.1.46 → 1.1.47

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 CHANGED
@@ -558,47 +558,47 @@ const { Option: wl } = pr, Il = ({
558
558
  current: 1,
559
559
  pageSize: i,
560
560
  total: 0
561
- }), [b, g] = te({}), [y, T] = te({}), [x] = qn.useForm(), A = J(c);
561
+ }), [b, g] = te({}), [y, T] = te({}), [C] = qn.useForm(), A = J(c);
562
562
  A.current = c;
563
563
  const S = J(o);
564
564
  S.current = o;
565
565
  const v = J(!1), _ = Cn(() => e.map((N) => {
566
- const { sortable: C, render: P, ...H } = N;
566
+ const { sortable: x, render: P, ...H } = N;
567
567
  return {
568
568
  ...H,
569
- sorter: C ? !0 : void 0,
569
+ sorter: x ? !0 : void 0,
570
570
  render: P || (($) => $)
571
571
  };
572
572
  }), [e]), w = ie(async (N = {}) => {
573
573
  if (t) {
574
574
  h(!0);
575
575
  try {
576
- const C = {
576
+ const x = {
577
577
  page: A.current.current,
578
578
  pageSize: A.current.pageSize,
579
579
  sortField: y.field,
580
580
  sortOrder: y.order,
581
581
  searchParams: { ...b, ...S.current },
582
582
  ...N
583
- }, P = await t(C);
583
+ }, P = await t(x);
584
584
  P.success && (p(P.data), f((H) => ({
585
585
  ...H,
586
586
  total: P.total,
587
- current: C.page || H.current
587
+ current: x.page || H.current
588
588
  })));
589
- } catch (C) {
590
- console.error("加载数据失败:", C);
589
+ } catch (x) {
590
+ console.error("加载数据失败:", x);
591
591
  } finally {
592
592
  h(!1);
593
593
  }
594
594
  }
595
595
  }, [t, y, b]), O = ie((N) => {
596
- g(N), f((C) => ({ ...C, current: 1 }));
596
+ g(N), f((x) => ({ ...x, current: 1 }));
597
597
  }, []), I = ie(() => {
598
- x.resetFields(), g({}), f((N) => ({ ...N, current: 1 }));
599
- }, [x]), D = ie(() => {
598
+ C.resetFields(), g({}), f((N) => ({ ...N, current: 1 }));
599
+ }, [C]), D = ie(() => {
600
600
  w();
601
- }, [w]), F = ie((N, C, P) => {
601
+ }, [w]), F = ie((N, x, P) => {
602
602
  const H = {
603
603
  current: N.current || 1,
604
604
  pageSize: N.pageSize || i,
@@ -616,10 +616,10 @@ const { Option: wl } = pr, Il = ({
616
616
  r && n.length > 0 && /* @__PURE__ */ G(Pa, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ de(
617
617
  qn,
618
618
  {
619
- form: x,
619
+ form: C,
620
620
  layout: "inline",
621
621
  onFinish: O,
622
- initialValues: n.reduce((N, C) => (C.defaultValue !== void 0 && (N[C.key] = C.defaultValue), N), {}),
622
+ initialValues: n.reduce((N, x) => (x.defaultValue !== void 0 && (N[x.key] = x.defaultValue), N), {}),
623
623
  children: [
624
624
  n.map((N) => /* @__PURE__ */ G(qn.Item, { name: N.key, label: N.label, children: N.type === "input" ? /* @__PURE__ */ G(
625
625
  Ra,
@@ -633,7 +633,7 @@ const { Option: wl } = pr, Il = ({
633
633
  placeholder: N.placeholder || `请选择${N.label}`,
634
634
  style: { width: 200 },
635
635
  allowClear: !0,
636
- children: N.options?.map((C) => /* @__PURE__ */ G(wl, { value: C.value, children: C.label }, C.value))
636
+ children: N.options?.map((x) => /* @__PURE__ */ G(wl, { value: x.value, children: x.label }, x.value))
637
637
  }
638
638
  ) }, N.key)),
639
639
  /* @__PURE__ */ G(qn.Item, { children: /* @__PURE__ */ de(al, { children: [
@@ -655,7 +655,7 @@ const { Option: wl } = pr, Il = ({
655
655
  ...c,
656
656
  showSizeChanger: !0,
657
657
  showQuickJumper: !0,
658
- showTotal: (N, C) => `第 ${C[0]}-${C[1]} 条/共 ${N} 条`,
658
+ showTotal: (N, x) => `第 ${x[0]}-${x[1]} 条/共 ${N} 条`,
659
659
  pageSizeOptions: s
660
660
  },
661
661
  onChange: F,
@@ -753,7 +753,7 @@ const Ll = ({ host: e, onChange: t }) => {
753
753
  }, [o, u, r]), f = Se.useCallback(() => {
754
754
  const b = E.current;
755
755
  if (!b) return;
756
- const g = b.querySelector(".ant-select-selection-item"), y = b.querySelector(".ant-select-selection-placeholder"), T = g || y, x = (T?.textContent || "").trim() || c(), A = b.querySelector(".ant-select-selector"), S = T || A || b, v = window.getComputedStyle(S), _ = T ? v.fontSize : "16px", w = v.fontFamily || "sans-serif", O = v.fontWeight || "400", D = `${v.fontStyle || "normal"} ${O} ${_} ${w}`, N = document.createElement("canvas").getContext("2d"), C = N ? Math.ceil((N.font = D, N.measureText(x).width || 0)) : 0;
756
+ const g = b.querySelector(".ant-select-selection-item"), y = b.querySelector(".ant-select-selection-placeholder"), T = g || y, C = (T?.textContent || "").trim() || c(), A = b.querySelector(".ant-select-selector"), S = T || A || b, v = window.getComputedStyle(S), _ = T ? v.fontSize : "16px", w = v.fontFamily || "sans-serif", O = v.fontWeight || "400", D = `${v.fontStyle || "normal"} ${O} ${_} ${w}`, N = document.createElement("canvas").getContext("2d"), x = N ? Math.ceil((N.font = D, N.measureText(C).width || 0)) : 0;
757
757
  let P = 0;
758
758
  if (A) {
759
759
  const Q = window.getComputedStyle(A);
@@ -765,7 +765,7 @@ const Ll = ({ host: e, onChange: t }) => {
765
765
  const Q = window.getComputedStyle(q);
766
766
  Q.display !== "none" && Q.visibility !== "hidden" && (k = Math.ceil(q.getBoundingClientRect().width));
767
767
  }
768
- const W = Math.max(36, C + P + $ + k + 6);
768
+ const W = Math.max(36, x + P + $ + k + 6);
769
769
  p((Q) => Q === W ? Q : W);
770
770
  }, [c]);
771
771
  return Ze(() => {
@@ -899,8 +899,8 @@ function Ml(e, t, n, r, a) {
899
899
  }
900
900
  const Rl = ({ host: e, onChange: t }) => {
901
901
  const n = e.dataset.key || "", r = e.dataset.placeholder || "", a = e.dataset.tooltip || "", i = e.dataset.allowNewline !== "0", s = Cn(() => Dl(e.dataset.value || ""), [e]), [u, o] = te(s), l = J(s), m = Cn(() => {
902
- const x = Number.parseFloat(e.dataset.estimatedWidth || "");
903
- return Number.isFinite(x) && x > 0 ? x : 64;
902
+ const C = Number.parseFloat(e.dataset.estimatedWidth || "");
903
+ return Number.isFinite(C) && C > 0 ? C : 64;
904
904
  }, [e]), [p, E] = te(m), h = J(null), c = (u || "").trim().length > 0, f = !!a && !c, b = (u || "").includes(`
905
905
  `);
906
906
  ne(() => {
@@ -911,48 +911,48 @@ const Rl = ({ host: e, onChange: t }) => {
911
911
  e.classList.toggle("rte-variable-multiline", b);
912
912
  }, [e, b]);
913
913
  const g = Se.useCallback(() => {
914
- const x = h.current;
915
- if (!x) return;
916
- const A = x.querySelector("textarea");
914
+ const C = h.current;
915
+ if (!C) return;
916
+ const A = C.querySelector("textarea");
917
917
  if (!A) return;
918
- const S = window.getComputedStyle(A), v = S.fontStyle || "normal", _ = S.fontWeight || "400", w = S.fontSize || "16px", O = S.fontFamily || "sans-serif", I = `${v} ${_} ${w} ${O}`, D = Number.parseFloat(S.paddingLeft) || 0, F = Number.parseFloat(S.paddingRight) || 0, N = (u && u.length > 0 ? u : r) || " ", C = Ml(N, I, S.letterSpacing || "0", D, F), H = Math.max(24, Math.min(600, C + 2));
918
+ const S = window.getComputedStyle(A), v = S.fontStyle || "normal", _ = S.fontWeight || "400", w = S.fontSize || "16px", O = S.fontFamily || "sans-serif", I = `${v} ${_} ${w} ${O}`, D = Number.parseFloat(S.paddingLeft) || 0, F = Number.parseFloat(S.paddingRight) || 0, N = (u && u.length > 0 ? u : r) || " ", x = Ml(N, I, S.letterSpacing || "0", D, F), H = Math.max(24, Math.min(600, x + 2));
919
919
  E(($) => $ === H ? $ : H);
920
920
  }, [r, u]);
921
921
  ne(() => {
922
- const x = h.current;
923
- if (!x || typeof ResizeObserver > "u") return;
922
+ const C = h.current;
923
+ if (!C || typeof ResizeObserver > "u") return;
924
924
  let A = 0;
925
925
  const S = new ResizeObserver(() => {
926
926
  A && window.cancelAnimationFrame(A), A = window.requestAnimationFrame(() => {
927
927
  t(n, l.current);
928
928
  });
929
929
  });
930
- return S.observe(x), () => {
930
+ return S.observe(C), () => {
931
931
  A && window.cancelAnimationFrame(A), S.disconnect();
932
932
  };
933
933
  }, [n, t]), Ze(() => {
934
- const x = window.requestAnimationFrame(() => {
934
+ const C = window.requestAnimationFrame(() => {
935
935
  g();
936
936
  });
937
937
  return () => {
938
- window.cancelAnimationFrame(x);
938
+ window.cancelAnimationFrame(C);
939
939
  };
940
940
  }, [g]), ne(() => {
941
941
  if (!("fonts" in document)) return;
942
- let x = !1;
942
+ let C = !1;
943
943
  const A = document.fonts;
944
944
  if (A?.ready)
945
945
  return A.ready.then(() => {
946
- x || g();
946
+ C || g();
947
947
  }), () => {
948
- x = !0;
948
+ C = !0;
949
949
  };
950
950
  }, [g]);
951
- const y = (x) => {
952
- const A = x.target.value ?? "";
951
+ const y = (C) => {
952
+ const A = C.target.value ?? "";
953
953
  o(A), e.setAttribute("data-value", Pl(A)), t(n, A);
954
- }, T = (x) => {
955
- x.key === "Enter" && !i && x.preventDefault();
954
+ }, T = (C) => {
955
+ C.key === "Enter" && !i && C.preventDefault();
956
956
  };
957
957
  return hr(
958
958
  /* @__PURE__ */ de(
@@ -1065,8 +1065,8 @@ function Fl(e, t = []) {
1065
1065
  if (Number.isNaN(f))
1066
1066
  E.value = "";
1067
1067
  else {
1068
- const b = E.getAttribute("min"), g = E.getAttribute("max"), y = b !== null ? parseInt(b, 10) : 0, T = g !== null ? parseInt(g, 10) : 1 / 0, x = Math.min(Math.max(f, y), T);
1069
- E.value = String(x);
1068
+ const b = E.getAttribute("min"), g = E.getAttribute("max"), y = b !== null ? parseInt(b, 10) : 0, T = g !== null ? parseInt(g, 10) : 1 / 0, C = Math.min(Math.max(f, y), T);
1069
+ E.value = String(C);
1070
1070
  }
1071
1071
  } else if (h === "0") {
1072
1072
  const f = E.getAttribute("min");
@@ -1159,7 +1159,9 @@ function $l(e, t, n = []) {
1159
1159
  const o = u.dataset.key;
1160
1160
  if (!o) return;
1161
1161
  const l = u.innerText.replace(/[\u200B\n]/g, "").trim();
1162
- r.current(o, l);
1162
+ requestAnimationFrame(() => {
1163
+ u.isConnected && r.current(o, l);
1164
+ });
1163
1165
  };
1164
1166
  return a.addEventListener("focusout", i, !1), () => {
1165
1167
  a.removeEventListener("focusout", i, !1);
@@ -1231,18 +1233,18 @@ ${(e || "").replace(/\r\n/g, `
1231
1233
  }
1232
1234
  const E = 10 * 1024 * 1024, h = (f) => f.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name || ""), c = (f) => h(f) && f.size > E;
1233
1235
  if (n && p.target.files && p.target.files.length > 0) {
1234
- const f = n, b = e.find((x) => x.type === "upload" && x.key === f), g = Array.from(p.target.files), y = g.filter((x) => !c(x)), T = g.length - y.length;
1236
+ const f = n, b = e.find((C) => C.type === "upload" && C.key === f), g = Array.from(p.target.files), y = g.filter((C) => !c(C)), T = g.length - y.length;
1235
1237
  if (T > 0 && t.error(
1236
1238
  `已自动过滤 ${T} 张超过 10MB 的图片,仅允许上传 10MB 以内图片`
1237
1239
  ), b && typeof b.maxCount == "number" && typeof b.minCount == "number") {
1238
- const x = b.maxCount, A = typeof a == "number" ? a : 0;
1240
+ const C = b.maxCount, A = typeof a == "number" ? a : 0;
1239
1241
  o((S) => {
1240
1242
  const v = { ...S };
1241
- let _ = Math.min(Math.max(A, 0), x - 1);
1243
+ let _ = Math.min(Math.max(A, 0), C - 1);
1242
1244
  for (const w of y) {
1243
- for (; _ < x && v[`${f}-${_}`] != null; )
1245
+ for (; _ < C && v[`${f}-${_}`] != null; )
1244
1246
  _ += 1;
1245
- if (_ >= x) break;
1247
+ if (_ >= C) break;
1246
1248
  v[`${f}-${_}`] = w, _ += 1;
1247
1249
  }
1248
1250
  return v;
@@ -1320,20 +1322,20 @@ ${(e || "").replace(/\r\n/g, `
1320
1322
  t.current.querySelectorAll('[data-type="variable"]').forEach((y) => {
1321
1323
  const T = y.dataset.key;
1322
1324
  if (T) {
1323
- const x = y.innerText.replace(/[\u200B\n]/g, "").trim();
1324
- x && (c[T] = x);
1325
+ const C = y.innerText.replace(/[\u200B\n]/g, "").trim();
1326
+ C && (c[T] = C);
1325
1327
  }
1326
1328
  }), t.current.querySelectorAll('[data-type="select"]').forEach((y) => {
1327
1329
  const T = y.dataset.key;
1328
1330
  if (T) {
1329
- const x = (y.getAttribute("data-value") || "").trim();
1330
- x && (c[T] = x);
1331
+ const C = (y.getAttribute("data-value") || "").trim();
1332
+ C && (c[T] = C);
1331
1333
  }
1332
1334
  }), t.current.querySelectorAll('[data-type="textarea"]').forEach((y) => {
1333
1335
  const T = y.dataset.key;
1334
1336
  if (T) {
1335
- const x = y.value.replace(/[\u200B]/g, "").trim();
1336
- x && (c[T] = x);
1337
+ const C = y.value.replace(/[\u200B]/g, "").trim();
1338
+ C && (c[T] = C);
1337
1339
  }
1338
1340
  }), s.current[E] = {
1339
1341
  variableValues: c,
@@ -1466,8 +1468,8 @@ ${(e || "").replace(/\r\n/g, `
1466
1468
  const F = Vl(D);
1467
1469
  if (l.current) {
1468
1470
  const N = f();
1469
- F.forEach((C, P) => {
1470
- N[`${S}__module_${P}`] = C.content;
1471
+ F.forEach((x, P) => {
1472
+ N[`${S}__module_${P}`] = x.content;
1471
1473
  }), l.current.__tempVariableValues = N;
1472
1474
  }
1473
1475
  a((N) => ({
@@ -1504,18 +1506,18 @@ ${(e || "").replace(/\r\n/g, `
1504
1506
  if (w?.lastParsedText && w.lastParsedText === _ && w.status === "success")
1505
1507
  return;
1506
1508
  if (!t) {
1507
- const N = Ws(_), C = Dr({
1509
+ const N = Ws(_), x = Dr({
1508
1510
  modules: [{ title: "内容", content: js(N), markdown: N }]
1509
1511
  });
1510
1512
  if (l.current) {
1511
1513
  const P = f();
1512
- C.forEach((H, $) => {
1514
+ x.forEach((H, $) => {
1513
1515
  P[`${S}__module_${$}`] = H.content;
1514
1516
  }), l.current.__tempVariableValues = P;
1515
1517
  }
1516
1518
  s((P) => ({
1517
1519
  ...P,
1518
- [S]: { status: "success", error: void 0, lastParsedText: _, modules: C }
1520
+ [S]: { status: "success", error: void 0, lastParsedText: _, modules: x }
1519
1521
  }));
1520
1522
  return;
1521
1523
  }
@@ -1526,8 +1528,8 @@ ${(e || "").replace(/\r\n/g, `
1526
1528
  }));
1527
1529
  const I = 500, D = Date.now();
1528
1530
  setTimeout(() => {
1529
- t({ text: _ }).then((C) => {
1530
- const P = Dr(C), H = Date.now() - D, $ = Math.max(0, I - H);
1531
+ t({ text: _ }).then((x) => {
1532
+ const P = Dr(x), H = Date.now() - D, $ = Math.max(0, I - H);
1531
1533
  setTimeout(() => {
1532
1534
  if (l.current) {
1533
1535
  const q = f();
@@ -1540,8 +1542,8 @@ ${(e || "").replace(/\r\n/g, `
1540
1542
  [S]: { status: "success", error: void 0, lastParsedText: _, modules: P }
1541
1543
  }));
1542
1544
  }, $);
1543
- }).catch((C) => {
1544
- const P = C instanceof Error ? C.message : String(C);
1545
+ }).catch((x) => {
1546
+ const P = x instanceof Error ? x.message : String(x);
1545
1547
  s((H) => ({
1546
1548
  ...H,
1547
1549
  [S]: {
@@ -1583,8 +1585,8 @@ ${(e || "").replace(/\r\n/g, `
1583
1585
  }));
1584
1586
  const I = 500, D = Date.now();
1585
1587
  setTimeout(() => {
1586
- n({ text: _ }).then((C) => {
1587
- const P = Dr(C), H = Date.now() - D, $ = Math.max(0, I - H);
1588
+ n({ text: _ }).then((x) => {
1589
+ const P = Dr(x), H = Date.now() - D, $ = Math.max(0, I - H);
1588
1590
  setTimeout(() => {
1589
1591
  if (l.current) {
1590
1592
  const q = f();
@@ -1597,8 +1599,8 @@ ${(e || "").replace(/\r\n/g, `
1597
1599
  [S]: { status: "success", error: void 0, lastParsedText: _, modules: P }
1598
1600
  }));
1599
1601
  }, $);
1600
- }).catch((C) => {
1601
- const P = C instanceof Error ? C.message : String(C);
1602
+ }).catch((x) => {
1603
+ const P = x instanceof Error ? x.message : String(x);
1602
1604
  o((H) => ({
1603
1605
  ...H,
1604
1606
  [S]: {
@@ -1628,12 +1630,12 @@ ${(e || "").replace(/\r\n/g, `
1628
1630
  }, [E, y]);
1629
1631
  const T = ie((S, v) => {
1630
1632
  m.current(S, v);
1631
- }, [m]), x = ie((S, v) => {
1633
+ }, [m]), C = ie((S, v) => {
1632
1634
  p.current(S, v);
1633
1635
  }, [p]), A = ie((S, v) => {
1634
1636
  E.current(S, v);
1635
1637
  }, [E]);
1636
- return { handleReportUrlBlur: T, handleMarkdownBlur: x, handleMarkdownNameBlur: A };
1638
+ return { handleReportUrlBlur: T, handleMarkdownBlur: C, handleMarkdownNameBlur: A };
1637
1639
  }, jl = ({
1638
1640
  collapsed: e,
1639
1641
  collapseTransitionMs: t,
@@ -1662,7 +1664,7 @@ ${(e || "").replace(/\r\n/g, `
1662
1664
  const g = n.current, y = a.current;
1663
1665
  if (!(!g || !y))
1664
1666
  try {
1665
- const T = window.getComputedStyle(y), x = Number.parseFloat(T.paddingTop) || 0, A = Number.parseFloat(T.lineHeight) || 34, S = Math.max(0, Math.ceil(x + A)), v = y.getBoundingClientRect(), _ = document.createRange();
1667
+ const T = window.getComputedStyle(y), C = Number.parseFloat(T.paddingTop) || 0, A = Number.parseFloat(T.lineHeight) || 34, S = Math.max(0, Math.ceil(C + A)), v = y.getBoundingClientRect(), _ = document.createRange();
1666
1668
  _.selectNodeContents(y);
1667
1669
  const w = Array.from(_.getClientRects());
1668
1670
  let O = S > 0 ? S : 58;
@@ -1698,7 +1700,7 @@ ${(e || "").replace(/\r\n/g, `
1698
1700
  if (e) return;
1699
1701
  const g = n.current, y = r.current, T = a.current;
1700
1702
  if (!g) return;
1701
- const x = () => {
1703
+ const C = () => {
1702
1704
  b.current = {
1703
1705
  ts: Date.now(),
1704
1706
  contentScrollTop: g.scrollTop || 0,
@@ -1706,14 +1708,14 @@ ${(e || "").replace(/\r\n/g, `
1706
1708
  editorScrollTop: T?.scrollTop || 0
1707
1709
  };
1708
1710
  };
1709
- x();
1711
+ C();
1710
1712
  const A = () => {
1711
- x(), console.log(
1713
+ C(), console.log(
1712
1714
  `[RTE collapse debug][${i.current}] (expanded) content scroll`,
1713
1715
  b.current
1714
1716
  );
1715
1717
  }, S = () => {
1716
- x(), console.log(
1718
+ C(), console.log(
1717
1719
  `[RTE collapse debug][${i.current}] (expanded) body scroll`,
1718
1720
  b.current
1719
1721
  );
@@ -1735,7 +1737,7 @@ ${(e || "").replace(/\r\n/g, `
1735
1737
  if (!e) return;
1736
1738
  const g = n.current, y = r.current, T = a.current;
1737
1739
  if (!g) return;
1738
- const x = () => ({
1740
+ const C = () => ({
1739
1741
  content: {
1740
1742
  scrollTop: g.scrollTop,
1741
1743
  scrollLeft: g.scrollLeft,
@@ -1756,9 +1758,9 @@ ${(e || "").replace(/\r\n/g, `
1756
1758
  } : void 0,
1757
1759
  style: (() => {
1758
1760
  try {
1759
- const C = window.getComputedStyle(g), P = y ? window.getComputedStyle(y) : void 0;
1761
+ const x = window.getComputedStyle(g), P = y ? window.getComputedStyle(y) : void 0;
1760
1762
  return {
1761
- contentOverflow: `${C.overflow}/${C.overflowY}`,
1763
+ contentOverflow: `${x.overflow}/${x.overflowY}`,
1762
1764
  bodyOverflow: P ? `${P.overflow}/${P.overflowY}` : void 0,
1763
1765
  bodyMaxHeight: P?.maxHeight,
1764
1766
  bodyHeight: P?.height
@@ -1775,46 +1777,46 @@ ${(e || "").replace(/\r\n/g, `
1775
1777
  b.current
1776
1778
  ), console.log(
1777
1779
  `[RTE collapse debug][${i.current}] lock start (before reset)`,
1778
- x()
1780
+ C()
1779
1781
  ), A(), console.log(
1780
1782
  `[RTE collapse debug][${i.current}] lock start (after reset)`,
1781
- x()
1783
+ C()
1782
1784
  ), window.requestAnimationFrame(() => {
1783
1785
  console.log(
1784
1786
  `[RTE collapse debug][${i.current}] lock start (after rAF)`,
1785
- x()
1787
+ C()
1786
1788
  );
1787
1789
  });
1788
- const _ = (C) => {
1789
- C.preventDefault(), C.stopPropagation(), A(), console.log(
1790
+ const _ = (x) => {
1791
+ x.preventDefault(), x.stopPropagation(), A(), console.log(
1790
1792
  `[RTE collapse debug][${i.current}] prevented scroll event`,
1791
- { type: C.type },
1792
- x()
1793
+ { type: x.type },
1794
+ C()
1793
1795
  );
1794
1796
  }, w = () => console.log(
1795
1797
  `[RTE collapse debug][${i.current}] content scroll event`,
1796
- x()
1798
+ C()
1797
1799
  ), O = () => console.log(
1798
1800
  `[RTE collapse debug][${i.current}] body scroll event`,
1799
- x()
1801
+ C()
1800
1802
  );
1801
1803
  g.addEventListener("wheel", _, { passive: !1 }), g.addEventListener("touchmove", _, { passive: !1 }), g.addEventListener("scroll", w, { passive: !0 }), y && (y.addEventListener("wheel", _, { passive: !1 }), y.addEventListener("touchmove", _, { passive: !1 }), y.addEventListener("scroll", O, { passive: !0 }));
1802
1804
  const I = performance.now();
1803
1805
  let D = 0;
1804
- const F = (C) => {
1805
- A(), C - I < v && (D = window.requestAnimationFrame(F));
1806
+ const F = (x) => {
1807
+ A(), x - I < v && (D = window.requestAnimationFrame(F));
1806
1808
  };
1807
1809
  D = window.requestAnimationFrame(F);
1808
1810
  const N = window.setTimeout(() => {
1809
1811
  A(), console.log(
1810
1812
  `[RTE collapse debug][${i.current}] lock end (after timeout)`,
1811
- x()
1813
+ C()
1812
1814
  );
1813
1815
  }, v);
1814
1816
  return () => {
1815
1817
  g.removeEventListener("wheel", _), g.removeEventListener("touchmove", _), g.removeEventListener("scroll", w), y && (y.removeEventListener("wheel", _), y.removeEventListener("touchmove", _), y.removeEventListener("scroll", O)), window.cancelAnimationFrame(D), window.clearTimeout(N), console.log(
1816
1818
  `[RTE collapse debug][${i.current}] lock cleanup`,
1817
- x()
1819
+ C()
1818
1820
  );
1819
1821
  };
1820
1822
  }, [e, t, r, n, i, a]), ne(() => {
@@ -2066,9 +2068,9 @@ function mr(e, t) {
2066
2068
  }
2067
2069
  })();
2068
2070
  y > 0 ? r.style.setProperty("--rte-icon-pad-right", `${y}px`) : r.style.removeProperty("--rte-icon-pad-right");
2069
- const T = 2, x = y > 0 ? y : 8, A = Math.max(
2071
+ const T = 2, C = y > 0 ? y : 8, A = Math.max(
2070
2072
  24,
2071
- Math.min(600, Math.ceil(g + 8 + x + T))
2073
+ Math.min(600, Math.ceil(g + 8 + C + T))
2072
2074
  );
2073
2075
  r.style.minWidth = `${A}px`;
2074
2076
  } else
@@ -2177,7 +2179,7 @@ function Ba(e, t, n) {
2177
2179
  }
2178
2180
  }
2179
2181
  return !1;
2180
- }), y = g.some(Boolean), T = y ? g.findIndex(Boolean) : -1, x = (v) => {
2182
+ }), y = g.some(Boolean), T = y ? g.findIndex(Boolean) : -1, C = (v) => {
2181
2183
  for (const _ of c[v] || [])
2182
2184
  if (_.type !== "other") {
2183
2185
  if (_.type === "upload") {
@@ -2232,7 +2234,7 @@ function Ba(e, t, n) {
2232
2234
  }
2233
2235
  };
2234
2236
  for (let v = 0; v < c.length; v++)
2235
- !y || v === T ? x(v) : A(v);
2237
+ !y || v === T ? C(v) : A(v);
2236
2238
  e.current.querySelectorAll('[data-group="separator"]').forEach((v) => {
2237
2239
  v.closest('[data-rte-force-hidden="1"]') || (y ? i(v) : v.style.setProperty("display", "inline-flex", "important"));
2238
2240
  });
@@ -2280,13 +2282,13 @@ function Ba(e, t, n) {
2280
2282
  for (const y of g) {
2281
2283
  if (y.dataset.variableRender === "antd-textarea") {
2282
2284
  const T = y.dataset.value || "";
2283
- let x = T;
2285
+ let C = T;
2284
2286
  try {
2285
- x = decodeURIComponent(T);
2287
+ C = decodeURIComponent(T);
2286
2288
  } catch {
2287
- x = T;
2289
+ C = T;
2288
2290
  }
2289
- if (x.trim().length > 0) {
2291
+ if (C.trim().length > 0) {
2290
2292
  l[c] = !0;
2291
2293
  break;
2292
2294
  }
@@ -2388,7 +2390,7 @@ function Xs(e, t, n, r) {
2388
2390
  f.exclusionGroup === "separator" && c.push(b);
2389
2391
  });
2390
2392
  for (const f of c) {
2391
- const g = s.filter((x) => typeof x.__index == "number" && x.__index < f).sort((x, A) => (A.__index ?? 0) - (x.__index ?? 0))[0], T = s.filter((x) => typeof x.__index == "number" && x.__index > f).sort((x, A) => (x.__index ?? 0) - (A.__index ?? 0))[0];
2393
+ const g = s.filter((C) => typeof C.__index == "number" && C.__index < f).sort((C, A) => (A.__index ?? 0) - (C.__index ?? 0))[0], T = s.filter((C) => typeof C.__index == "number" && C.__index > f).sort((C, A) => (C.__index ?? 0) - (A.__index ?? 0))[0];
2392
2394
  g && T && o.push([g, T]);
2393
2395
  }
2394
2396
  }
@@ -2519,8 +2521,8 @@ function Xs(e, t, n, r) {
2519
2521
  );
2520
2522
  if (T.length === 0)
2521
2523
  continue;
2522
- for (let x = 0; x < T.length; x++) {
2523
- const S = T[x].dataset.key;
2524
+ for (let C = 0; C < T.length; C++) {
2525
+ const S = T[C].dataset.key;
2524
2526
  S && n[S] != null && (y += 1);
2525
2527
  }
2526
2528
  if (y >= g.minCount) {
@@ -2542,8 +2544,8 @@ function Xs(e, t, n, r) {
2542
2544
  continue;
2543
2545
  A.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (T += 1);
2544
2546
  }
2545
- const x = g.minCount && g.minCount > 0 ? g.minCount : 1;
2546
- if (T >= x) {
2547
+ const C = g.minCount && g.minCount > 0 ? g.minCount : 1;
2548
+ if (T >= C) {
2547
2549
  b = !0;
2548
2550
  break;
2549
2551
  }
@@ -2740,8 +2742,8 @@ const Jl = ({
2740
2742
  (O === b || O.contains(f)) && (g = !0);
2741
2743
  }), !g)
2742
2744
  return;
2743
- const y = b.dataset.multiKey, T = b.dataset.key, x = b.dataset.index;
2744
- if (!y || !T || x === void 0) return;
2745
+ const y = b.dataset.multiKey, T = b.dataset.key, C = b.dataset.index;
2746
+ if (!y || !T || C === void 0) return;
2745
2747
  const A = c.relatedTarget;
2746
2748
  if (!(!A || !r.current.contains(A)))
2747
2749
  return;
@@ -2751,7 +2753,7 @@ const Jl = ({
2751
2753
  if (I.length > 1) {
2752
2754
  const D = e.find((F) => F.type === "multi-variable" && F.key === y);
2753
2755
  if (D) {
2754
- const F = i[y] || 1, N = parseInt(x, 10), C = D.maxCount || 9, P = [];
2756
+ const F = i[y] || 1, N = parseInt(C, 10), x = D.maxCount || 9, P = [];
2755
2757
  for (let W = 0; W < F; W++) {
2756
2758
  const Q = `${y}_${W}`, R = r.current.querySelector(
2757
2759
  `[data-type="variable"][data-key="${Q}"][data-multi-key="${y}"]`
@@ -2762,8 +2764,8 @@ const Jl = ({
2762
2764
  }
2763
2765
  }
2764
2766
  P.splice(N, 1, ...I);
2765
- const H = P.slice(0, C);
2766
- H.length > 0 && H[H.length - 1] !== "" && H.length < C && H.push("");
2767
+ const H = P.slice(0, x);
2768
+ H.length > 0 && H[H.length - 1] !== "" && H.length < x && H.push("");
2767
2769
  const $ = Math.max(H.length, 1), q = {};
2768
2770
  H.forEach((W, Q) => {
2769
2771
  W && (q[`${y}_${Q}`] = W);
@@ -2825,16 +2827,16 @@ const Jl = ({
2825
2827
  const g = (...T) => {
2826
2828
  }, y = (T) => {
2827
2829
  try {
2828
- const x = window.getSelection();
2829
- if (!x) return g(T, "no selection");
2830
- const A = x.rangeCount > 0 ? x.getRangeAt(0) : null;
2830
+ const C = window.getSelection();
2831
+ if (!C) return g(T, "no selection");
2832
+ const A = C.rangeCount > 0 ? C.getRangeAt(0) : null;
2831
2833
  g(T, {
2832
- rangeCount: x.rangeCount,
2833
- isCollapsed: x.isCollapsed,
2834
- anchorNode: x.anchorNode?.nodeType === Node.TEXT_NODE ? "TEXT" : x.anchorNode?.nodeName,
2835
- anchorOffset: x.anchorOffset,
2836
- focusNode: x.focusNode?.nodeType === Node.TEXT_NODE ? "TEXT" : x.focusNode?.nodeName,
2837
- focusOffset: x.focusOffset,
2834
+ rangeCount: C.rangeCount,
2835
+ isCollapsed: C.isCollapsed,
2836
+ anchorNode: C.anchorNode?.nodeType === Node.TEXT_NODE ? "TEXT" : C.anchorNode?.nodeName,
2837
+ anchorOffset: C.anchorOffset,
2838
+ focusNode: C.focusNode?.nodeType === Node.TEXT_NODE ? "TEXT" : C.focusNode?.nodeName,
2839
+ focusOffset: C.focusOffset,
2838
2840
  range: A ? {
2839
2841
  startContainer: A.startContainer.nodeType === Node.TEXT_NODE ? "TEXT" : A.startContainer.nodeName,
2840
2842
  startOffset: A.startOffset,
@@ -2850,20 +2852,20 @@ const Jl = ({
2850
2852
  if (e)
2851
2853
  return;
2852
2854
  t && n?.(!1);
2853
- const x = T.target;
2854
- if (g("click", { tag: x.tagName, cls: x.className }), y("before click"), x.closest('[data-type="datepicker"]'))
2855
+ const C = T.target;
2856
+ if (g("click", { tag: C.tagName, cls: C.className }), y("before click"), C.closest('[data-type="datepicker"]'))
2855
2857
  return;
2856
- if (x.closest(".tag-close-btn")) {
2858
+ if (C.closest(".tag-close-btn")) {
2857
2859
  T.preventDefault(), T.stopPropagation();
2858
2860
  return;
2859
2861
  }
2860
2862
  if (r.length === 0)
2861
2863
  return;
2862
- const v = (N, C) => {
2864
+ const v = (N, x) => {
2863
2865
  if (!i.current) return;
2864
2866
  Array.from(i.current.children).forEach((H) => {
2865
2867
  if (H !== N)
2866
- if (C)
2868
+ if (x)
2867
2869
  H.dataset.prevDisplay === void 0 && (H.dataset.prevDisplay = H.style.display || ""), H.dataset.rteForceHidden = "1", H.style.setProperty("display", "none", "important");
2868
2870
  else {
2869
2871
  if (H.dataset.prevDisplay !== void 0) {
@@ -2874,34 +2876,34 @@ const Jl = ({
2874
2876
  delete H.dataset.rteForceHidden;
2875
2877
  }
2876
2878
  });
2877
- }, _ = x.closest(".rte-textarea-toggle");
2879
+ }, _ = C.closest(".rte-textarea-toggle");
2878
2880
  if (_) {
2879
2881
  T.preventDefault(), T.stopPropagation();
2880
- const N = _.closest(".rte-textarea-wrapper"), C = N?.querySelector('[data-type="textarea"]'), H = !(_.getAttribute("data-expanded") === "true");
2882
+ const N = _.closest(".rte-textarea-wrapper"), x = N?.querySelector('[data-type="textarea"]'), H = !(_.getAttribute("data-expanded") === "true");
2881
2883
  _.setAttribute("data-expanded", String(H)), _.textContent = H ? "收起" : "展开", N && N.classList.toggle("rte-textarea-expanded", H);
2882
2884
  const $ = N?.closest(".rte-textarea-required");
2883
- if ($ ? $.classList.toggle("rte-textarea-overlay", H) : N && N.classList.toggle("rte-textarea-overlay", H), C)
2885
+ if ($ ? $.classList.toggle("rte-textarea-overlay", H) : N && N.classList.toggle("rte-textarea-overlay", H), x)
2884
2886
  if (H)
2885
- C.classList.add("rte-textarea-expanded"), C.style.maxHeight = "none", C.style.height = "100%";
2887
+ x.classList.add("rte-textarea-expanded"), x.style.maxHeight = "none", x.style.height = "100%";
2886
2888
  else {
2887
- C.classList.remove("rte-textarea-expanded");
2888
- const q = C.dataset.maxHeight || "252";
2889
- C.style.maxHeight = `${q}px`, C.style.height = "auto";
2889
+ x.classList.remove("rte-textarea-expanded");
2890
+ const q = x.dataset.maxHeight || "252";
2891
+ x.style.maxHeight = `${q}px`, x.style.height = "auto";
2890
2892
  }
2891
2893
  i.current && (H ? i.current.classList.add("rte-overlay-active") : i.current.classList.remove("rte-overlay-active"));
2892
2894
  return;
2893
2895
  }
2894
- const w = x.closest(".rte-richtext-toggle");
2896
+ const w = C.closest(".rte-richtext-toggle");
2895
2897
  if (w) {
2896
2898
  T.preventDefault(), T.stopPropagation();
2897
- const N = w.closest(".rte-richtext-wrapper"), C = N?.querySelector('[data-type="richtext"]'), H = !(w.getAttribute("data-expanded") === "true");
2899
+ const N = w.closest(".rte-richtext-wrapper"), x = N?.querySelector('[data-type="richtext"]'), H = !(w.getAttribute("data-expanded") === "true");
2898
2900
  ((W, Q) => {
2899
2901
  W.setAttribute("data-expanded", String(Q)), W.innerHTML = Q ? '<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>';
2900
2902
  })(w, H);
2901
2903
  const q = N?.closest(".rte-richtext-required");
2902
2904
  q ? q.classList.toggle("rte-richtext-expanded", H) : N && N.classList.toggle("rte-richtext-expanded", H);
2903
2905
  const k = N?.closest(".exclusion-wrapper") || N?.parentElement;
2904
- if (C && (H ? (C.style.height = "100%", C.style.overflow = "auto") : (C.style.height = "", C.style.overflow = "")), k && (k.classList.toggle("rte-richtext-host-expanded", H), v(k, H)), i.current) {
2906
+ if (x && (H ? (x.style.height = "100%", x.style.overflow = "auto") : (x.style.height = "", x.style.overflow = "")), k && (k.classList.toggle("rte-richtext-host-expanded", H), v(k, H)), i.current) {
2905
2907
  if (i.current.classList.toggle("rte-richtext-fullscreen-active", H), s.current?.classList.toggle("rte-richtext-container-expanded", H), s.current)
2906
2908
  if (H) {
2907
2909
  const W = Math.ceil(s.current.getBoundingClientRect().height || 0);
@@ -2924,31 +2926,31 @@ const Jl = ({
2924
2926
  }
2925
2927
  return;
2926
2928
  }
2927
- if (x.closest('[data-type="text"]')) {
2929
+ if (C.closest('[data-type="text"]')) {
2928
2930
  T.preventDefault(), T.stopPropagation();
2929
2931
  const N = window.getSelection();
2930
2932
  N && N.removeAllRanges();
2931
2933
  return;
2932
2934
  }
2933
- if (a && x.closest(".tag-node")) {
2935
+ if (a && C.closest(".tag-node")) {
2934
2936
  T.preventDefault(), T.stopPropagation();
2935
- const C = window.getSelection();
2936
- C && C.removeAllRanges();
2937
+ const x = window.getSelection();
2938
+ x && x.removeAllRanges();
2937
2939
  return;
2938
2940
  }
2939
- const I = x.closest('[data-type="variable"]');
2941
+ const I = C.closest('[data-type="variable"]');
2940
2942
  if (I) {
2941
2943
  if (f.current)
2942
2944
  return;
2943
2945
  if (I.dataset.variableRender !== "antd-textarea") {
2944
- const N = !!x.closest(".variable-info-icon"), C = I.classList.contains("show-placeholder") || (I.innerText || "").replace(/[\u200B\n]/g, "").trim().length === 0;
2946
+ const N = !!C.closest(".variable-info-icon"), x = I.classList.contains("show-placeholder") || (I.innerText || "").replace(/[\u200B\n]/g, "").trim().length === 0;
2945
2947
  if (g("v1 variable click", {
2946
2948
  key: I.dataset.key,
2947
- isPlaceholder: C,
2949
+ isPlaceholder: x,
2948
2950
  isOnIcon: N,
2949
2951
  classes: I.className,
2950
2952
  innerText: I.innerText
2951
- }), C && !N) {
2953
+ }), x && !N) {
2952
2954
  T.preventDefault();
2953
2955
  const P = () => {
2954
2956
  try {
@@ -2971,11 +2973,11 @@ const Jl = ({
2971
2973
  }, 10);
2972
2974
  return;
2973
2975
  }
2974
- const D = x.closest(".file-remove-btn");
2976
+ const D = C.closest(".file-remove-btn");
2975
2977
  if (D) {
2976
2978
  T.preventDefault(), T.stopPropagation();
2977
- const N = D.closest('[data-type="upload"]'), C = N?.dataset.key, P = N?.dataset.batchKey;
2978
- if (C)
2979
+ const N = D.closest('[data-type="upload"]'), x = N?.dataset.key, P = N?.dataset.batchKey;
2980
+ if (x)
2979
2981
  if (P) {
2980
2982
  const H = r.find(
2981
2983
  ($) => $.type === "upload" && $.key === P
@@ -2986,7 +2988,7 @@ const Jl = ({
2986
2988
  const k = { ...q }, W = [];
2987
2989
  for (let Q = 0; Q < $; Q++) {
2988
2990
  const R = `${P}-${Q}`, re = k[R];
2989
- re != null && R !== C && W.push(re);
2991
+ re != null && R !== x && W.push(re);
2990
2992
  }
2991
2993
  for (let Q = 0; Q < $; Q++)
2992
2994
  delete k[`${P}-${Q}`];
@@ -2995,18 +2997,18 @@ const Jl = ({
2995
2997
  }), k;
2996
2998
  });
2997
2999
  } else
2998
- p(C);
3000
+ p(x);
2999
3001
  } else
3000
- p(C);
3002
+ p(x);
3001
3003
  return;
3002
3004
  }
3003
- const F = x.closest('[data-type="upload"]');
3005
+ const F = C.closest('[data-type="upload"]');
3004
3006
  if (F) {
3005
- const N = F.dataset.key, C = F.dataset.batchKey, P = F.dataset.batchIndex;
3007
+ const N = F.dataset.key, x = F.dataset.batchKey, P = F.dataset.batchIndex;
3006
3008
  if (N) {
3007
- const H = C || N, $ = r.find((q) => q.type === "upload" && q.key === H);
3008
- if (u.current && ($?.accept ? u.current.accept = $.accept : $?.acceptType === "image" ? u.current.accept = "image/*" : $?.acceptType === "file" ? u.current.accept = ".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json" : u.current.accept = ""), C) {
3009
- const q = r.find((k) => k.type === "upload" && k.key === C);
3009
+ const H = x || N, $ = r.find((q) => q.type === "upload" && q.key === H);
3010
+ if (u.current && ($?.accept ? u.current.accept = $.accept : $?.acceptType === "image" ? u.current.accept = "image/*" : $?.acceptType === "file" ? u.current.accept = ".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json" : u.current.accept = ""), x) {
3011
+ const q = r.find((k) => k.type === "upload" && k.key === x);
3010
3012
  if (q && typeof q.maxCount == "number" && typeof q.minCount == "number") {
3011
3013
  const k = q.maxCount, W = l[N] != null, Q = P != null ? Number.parseInt(P, 10) : NaN;
3012
3014
  if (W) {
@@ -3015,8 +3017,8 @@ const Jl = ({
3015
3017
  }
3016
3018
  let R = 0;
3017
3019
  for (let re = 0; re < k; re++)
3018
- l[`${C}-${re}`] != null && (R += 1);
3019
- R < k && u.current ? (u.current.multiple = !0, E(C), h(Number.isFinite(Q) ? Q : null), c(null), o?.(), u.current.click()) : (u.current && (u.current.multiple = !1), E(null), h(null), c(N), o?.(), u.current?.click());
3020
+ l[`${x}-${re}`] != null && (R += 1);
3021
+ R < k && u.current ? (u.current.multiple = !0, E(x), h(Number.isFinite(Q) ? Q : null), c(null), o?.(), u.current.click()) : (u.current && (u.current.multiple = !1), E(null), h(null), c(N), o?.(), u.current?.click());
3020
3022
  } else
3021
3023
  u.current && (u.current.multiple = !1), E(null), h(null), c(N), o?.(), u.current?.click();
3022
3024
  } else
@@ -3074,8 +3076,8 @@ const Jl = ({
3074
3076
  const g = b.dataset.key;
3075
3077
  if (!g) return;
3076
3078
  b.innerText.replace(/[\u200B\n]/g, "").trim() || a((T) => {
3077
- const x = T[g];
3078
- return !x || x.status === "idle" && (!x.modules || x.modules.length === 0) ? T : {
3079
+ const C = T[g];
3080
+ return !C || C.status === "idle" && (!C.modules || C.modules.length === 0) ? T : {
3079
3081
  ...T,
3080
3082
  [g]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
3081
3083
  };
@@ -3086,8 +3088,8 @@ const Jl = ({
3086
3088
  const g = b.dataset.key;
3087
3089
  if (!g) return;
3088
3090
  b.innerText.replace(/[\u200B\n]/g, "").trim() || i((T) => {
3089
- const x = T[g];
3090
- return !x || x.status === "idle" && (!x.modules || x.modules.length === 0) ? T : {
3091
+ const C = T[g];
3092
+ return !C || C.status === "idle" && (!C.modules || C.modules.length === 0) ? T : {
3091
3093
  ...T,
3092
3094
  [g]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
3093
3095
  };
@@ -3097,13 +3099,12 @@ const Jl = ({
3097
3099
  ).forEach((b) => {
3098
3100
  const g = b.dataset.key;
3099
3101
  if (!g) return;
3100
- const y = b.innerText.replace(/[\u200B\n]/g, "").trim();
3101
- s((T) => {
3102
- const x = T[g];
3103
- return !x || x.status === "idle" && (!x.modules || x.modules.length === 0) ? T : !y || x.lastParsedText && y !== x.lastParsedText ? {
3102
+ b.innerText.replace(/[\u200B\n]/g, "").trim() || s((T) => {
3103
+ const C = T[g];
3104
+ return !C || C.status === "idle" && (!C.modules || C.modules.length === 0) ? T : {
3104
3105
  ...T,
3105
3106
  [g]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
3106
- } : T;
3107
+ };
3107
3108
  });
3108
3109
  }), t.current && t.current.querySelectorAll(
3109
3110
  '[data-type="richtext"][data-node-type="markdown-module"]'
@@ -3111,14 +3112,14 @@ const Jl = ({
3111
3112
  const g = b.dataset.key;
3112
3113
  if (!g) return;
3113
3114
  b.innerText.replace(/[\u200B\n]/g, "").trim() || (i((T) => {
3114
- const x = T[g];
3115
- return !x || x.status === "idle" ? T : {
3115
+ const C = T[g];
3116
+ return !C || C.status === "idle" ? T : {
3116
3117
  ...T,
3117
3118
  [g]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
3118
3119
  };
3119
3120
  }), s((T) => {
3120
- const x = T[g];
3121
- return !x || x.status === "idle" ? T : {
3121
+ const C = T[g];
3122
+ return !C || C.status === "idle" ? T : {
3122
3123
  ...T,
3123
3124
  [g]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
3124
3125
  };
@@ -3130,8 +3131,8 @@ const Jl = ({
3130
3131
  (b.innerText || "").includes(`
3131
3132
  `), y = b.offsetHeight > 32, T = g || y;
3132
3133
  b.classList.toggle("rte-variable-multiline", T), b.classList.toggle("rte-variable-force-block", T);
3133
- const x = b.closest(".rte-inline-group");
3134
- x && x.classList.toggle("rte-inline-group-force-block", T);
3134
+ const C = b.closest(".rte-inline-group");
3135
+ C && C.classList.toggle("rte-inline-group-force-block", T);
3135
3136
  const A = b.closest(".required-upload-group, .required-multi-first");
3136
3137
  A && A.classList.toggle("rte-required-group-force-block", T);
3137
3138
  const S = b.querySelector(".variable-info-icon");
@@ -3163,7 +3164,7 @@ const Jl = ({
3163
3164
  y.push(O);
3164
3165
  }
3165
3166
  }
3166
- const x = (y[y.length - 1] || "") === "";
3167
+ const C = (y[y.length - 1] || "") === "";
3167
3168
  let A = !1, S = -1;
3168
3169
  for (let v = 0; v < y.length - 1; v++)
3169
3170
  if (y[v] === "") {
@@ -3175,12 +3176,12 @@ const Jl = ({
3175
3176
  if (v && v.rangeCount > 0) {
3176
3177
  const D = v.getRangeAt(0), F = D.startContainer, N = F.nodeType === Node.ELEMENT_NODE ? F.closest('[data-type="variable"][data-multi-key]') : F.parentElement?.closest('[data-type="variable"][data-multi-key]');
3177
3178
  if (N) {
3178
- const C = N.dataset.key;
3179
- if (C) {
3179
+ const x = N.dataset.key;
3180
+ if (x) {
3180
3181
  const P = document.createRange();
3181
3182
  P.setStartBefore(N), P.setEnd(D.startContainer, D.startOffset);
3182
3183
  const H = P.toString().length;
3183
- h.current = { key: C, offset: H };
3184
+ h.current = { key: x, offset: H };
3184
3185
  }
3185
3186
  }
3186
3187
  }
@@ -3192,13 +3193,13 @@ const Jl = ({
3192
3193
  _.forEach((D, F) => {
3193
3194
  D && (w[`${f.key}_${F}`] = D);
3194
3195
  });
3195
- const O = Math.max(x ? _.length : _.length + 1, 1);
3196
+ const O = Math.max(C ? _.length : _.length + 1, 1);
3196
3197
  t.current.querySelectorAll('[data-type="variable"]').forEach((D) => {
3197
3198
  const F = D.dataset.key, N = D.dataset.multiKey;
3198
3199
  if (F && N !== f.key) {
3199
- const C = (D.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
3200
+ const x = (D.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
3200
3201
  `).trim();
3201
- C && (w[F] = C);
3202
+ x && (w[F] = x);
3202
3203
  }
3203
3204
  }), t.current.__tempVariableValues = w, E((D) => ({
3204
3205
  ...D,
@@ -3206,7 +3207,7 @@ const Jl = ({
3206
3207
  }));
3207
3208
  return;
3208
3209
  }
3209
- if (!x) {
3210
+ if (!C) {
3210
3211
  const v = g - 1, _ = `${f.key}_${v}`, w = t.current.querySelector(
3211
3212
  `[data-type="variable"][data-key="${_}"][data-multi-key="${f.key}"]`
3212
3213
  );
@@ -3216,12 +3217,12 @@ const Jl = ({
3216
3217
  if (I && I.rangeCount > 0) {
3217
3218
  const D = I.getRangeAt(0), F = D.startContainer, N = F.nodeType === Node.ELEMENT_NODE ? F.closest('[data-type="variable"][data-multi-key]') : F.parentElement?.closest('[data-type="variable"][data-multi-key]');
3218
3219
  if (N) {
3219
- const C = N.dataset.key;
3220
- if (C) {
3220
+ const x = N.dataset.key;
3221
+ if (x) {
3221
3222
  const P = document.createRange();
3222
3223
  P.setStartBefore(N), P.setEnd(D.startContainer, D.startOffset);
3223
3224
  const H = P.toString().length;
3224
- h.current = { key: C, offset: H };
3225
+ h.current = { key: x, offset: H };
3225
3226
  }
3226
3227
  }
3227
3228
  }
@@ -3451,7 +3452,7 @@ const Jl = ({
3451
3452
  if (!y) return;
3452
3453
  const T = f;
3453
3454
  T.focus();
3454
- const x = document.createTreeWalker(T, NodeFilter.SHOW_TEXT), A = x.nextNode() ? x.currentNode : null, S = document.createRange();
3455
+ const C = document.createTreeWalker(T, NodeFilter.SHOW_TEXT), A = C.nextNode() ? C.currentNode : null, S = document.createRange();
3455
3456
  A ? (S.setStart(A, 0), S.collapse(!0)) : (S.selectNodeContents(T), S.collapse(!0)), y.removeAllRanges(), y.addRange(S), u("raf after setRange (mousedown)");
3456
3457
  });
3457
3458
  return;
@@ -3482,8 +3483,8 @@ const Jl = ({
3482
3483
  if (!g) return;
3483
3484
  const y = c;
3484
3485
  y.focus();
3485
- const T = document.createTreeWalker(y, NodeFilter.SHOW_TEXT), x = T.nextNode() ? T.currentNode : null, A = document.createRange();
3486
- x ? (A.setStart(x, 0), A.collapse(!0)) : (A.selectNodeContents(y), A.collapse(!0)), g.removeAllRanges(), g.addRange(A), u("raf after setRange (mouseup)");
3486
+ const T = document.createTreeWalker(y, NodeFilter.SHOW_TEXT), C = T.nextNode() ? T.currentNode : null, A = document.createRange();
3487
+ C ? (A.setStart(C, 0), A.collapse(!0)) : (A.selectNodeContents(y), A.collapse(!0)), g.removeAllRanges(), g.addRange(A), u("raf after setRange (mouseup)");
3487
3488
  }));
3488
3489
  }
3489
3490
  i.current = null, a.current = !1;
@@ -3497,10 +3498,10 @@ const Jl = ({
3497
3498
  if (f) {
3498
3499
  const b = document.createRange(), g = c.textContent || "";
3499
3500
  if (g.replace(/\u200B/g, "")) {
3500
- let T = 0, x = g.length;
3501
- g.startsWith("​") && (T = 1), g.endsWith("​") && g.length > 1 && (x = g.length - 1);
3501
+ let T = 0, C = g.length;
3502
+ g.startsWith("​") && (T = 1), g.endsWith("​") && g.length > 1 && (C = g.length - 1);
3502
3503
  const A = c.firstChild;
3503
- A && A.nodeType === Node.TEXT_NODE ? (b.setStart(A, T), b.setEnd(A, x)) : b.selectNodeContents(c);
3504
+ A && A.nodeType === Node.TEXT_NODE ? (b.setStart(A, T), b.setEnd(A, C)) : b.selectNodeContents(c);
3504
3505
  } else
3505
3506
  b.selectNodeContents(c), b.collapse(!0);
3506
3507
  f.removeAllRanges(), f.addRange(b);
@@ -3534,10 +3535,10 @@ const Jl = ({
3534
3535
  const f = (E.clipboardData.getData("text/plain") || "").replace(/\r\n/g, `
3535
3536
  `).replace(/\n+$/g, ""), b = window.getSelection();
3536
3537
  if (b && b.rangeCount > 0) {
3537
- const x = b.anchorNode;
3538
- if (x) {
3538
+ const C = b.anchorNode;
3539
+ if (C) {
3539
3540
  let A = null;
3540
- if (x.nodeType === Node.ELEMENT_NODE ? A = x.closest('[data-type="variable"]') : x.nodeType === Node.TEXT_NODE && x.parentElement && (A = x.parentElement.closest('[data-type="variable"]')), A) {
3541
+ if (C.nodeType === Node.ELEMENT_NODE ? A = C.closest('[data-type="variable"]') : C.nodeType === Node.TEXT_NODE && C.parentElement && (A = C.parentElement.closest('[data-type="variable"]')), A) {
3541
3542
  const S = A.dataset.multiKey;
3542
3543
  if (S) {
3543
3544
  const w = /[、,,\s\n\r\t]+/, O = f.split(w).map((I) => I.trim()).filter((I) => I.length > 0);
@@ -3549,22 +3550,22 @@ const Jl = ({
3549
3550
  ...k,
3550
3551
  [S]: N
3551
3552
  }));
3552
- const C = [];
3553
+ const x = [];
3553
3554
  for (let k = 0; k < F; k++) {
3554
3555
  const W = `${S}_${k}`, Q = a.current.querySelector(
3555
3556
  `[data-type="variable"][data-key="${W}"][data-multi-key="${S}"]`
3556
3557
  );
3557
3558
  if (Q) {
3558
3559
  const R = Q.innerText.replace(/[\u200B\n]/g, "").trim();
3559
- C.push(R);
3560
+ x.push(R);
3560
3561
  }
3561
3562
  }
3562
- C.splice(
3563
+ x.splice(
3563
3564
  I,
3564
3565
  1,
3565
3566
  ...O.slice(0, D - I)
3566
3567
  );
3567
- const P = C.slice(0, D);
3568
+ const P = x.slice(0, D);
3568
3569
  P.length > 0 && P[P.length - 1] !== "" && P.length < D && P.push("");
3569
3570
  const H = Math.max(P.length, 1), $ = {};
3570
3571
  P.forEach((k, W) => {
@@ -3595,7 +3596,7 @@ const Jl = ({
3595
3596
  (P) => P.type === "multi-variable" && P.key === D
3596
3597
  )?.allowNewline !== !1;
3597
3598
  const F = A.dataset.key;
3598
- return t.find((C) => C.type === "variable" && C.key === F)?.allowNewline !== !1;
3599
+ return t.find((x) => x.type === "variable" && x.key === F)?.allowNewline !== !1;
3599
3600
  })(), O = window.getSelection();
3600
3601
  if (O && O.rangeCount > 0) {
3601
3602
  const I = O.getRangeAt(0);
@@ -3605,8 +3606,8 @@ const Jl = ({
3605
3606
  for (let P = 0; P < N.length; P++)
3606
3607
  D.appendChild(document.createTextNode(N[P])), w && P < N.length - 1 && D.appendChild(document.createElement("br"));
3607
3608
  I.insertNode(D), O.removeAllRanges();
3608
- const C = document.createRange();
3609
- C.selectNodeContents(A), C.collapse(!1), O.addRange(C);
3609
+ const x = document.createRange();
3610
+ x.selectNodeContents(A), x.collapse(!1), O.addRange(x);
3610
3611
  }
3611
3612
  i();
3612
3613
  return;
@@ -3617,10 +3618,10 @@ const Jl = ({
3617
3618
  let g = !1, y = "";
3618
3619
  const T = window.getSelection();
3619
3620
  if (T && T.rangeCount > 0) {
3620
- const x = T.anchorNode;
3621
- if (x) {
3621
+ const C = T.anchorNode;
3622
+ if (C) {
3622
3623
  let A = null;
3623
- if (x.nodeType === Node.ELEMENT_NODE ? A = x.closest('[data-type="variable"]') : x.nodeType === Node.TEXT_NODE && x.parentElement && (A = x.parentElement.closest('[data-type="variable"]')), A) {
3624
+ if (C.nodeType === Node.ELEMENT_NODE ? A = C.closest('[data-type="variable"]') : C.nodeType === Node.TEXT_NODE && C.parentElement && (A = C.parentElement.closest('[data-type="variable"]')), A) {
3624
3625
  const S = A.getAttribute("data-node-type") || "", v = A.dataset.key;
3625
3626
  if (S === "markdown" && v && /20\d{2}-\d{2}-\d{2}/.test(f))
3626
3627
  g = !0, y = v, m.current[v] = f, p((_) => ({
@@ -3704,7 +3705,7 @@ const Jl = ({
3704
3705
  const b = f, g = b.dataset.type, y = b.dataset.key;
3705
3706
  if (g === "variable" && y) {
3706
3707
  let T = "";
3707
- const x = document.createTreeWalker(
3708
+ const C = document.createTreeWalker(
3708
3709
  b,
3709
3710
  NodeFilter.SHOW_TEXT,
3710
3711
  {
@@ -3714,8 +3715,8 @@ const Jl = ({
3714
3715
  }
3715
3716
  }
3716
3717
  );
3717
- for (; x.nextNode(); )
3718
- T += x.currentNode.textContent || "";
3718
+ for (; C.nextNode(); )
3719
+ T += C.currentNode.textContent || "";
3719
3720
  const A = T.replace(/[\u200B\n]/g, "").trim();
3720
3721
  if (A) {
3721
3722
  const S = b.dataset.multiKey;
@@ -3752,35 +3753,35 @@ const Jl = ({
3752
3753
  const T = (b.getAttribute("data-value") || "").trim();
3753
3754
  T && (E[y] = T, p += T);
3754
3755
  } else if (g === "textarea" && y) {
3755
- const x = (b.value || "").replace(/\u200B/g, "").trim();
3756
- x && (E[y] = x, p += x);
3756
+ const C = (b.value || "").replace(/\u200B/g, "").trim();
3757
+ C && (E[y] = C, p += C);
3757
3758
  } else if (g === "richtext" && y) {
3758
- const T = b, x = T.dataset.nodeType, A = (T.textContent || "").replace(/\u200B/g, "").trim();
3759
+ const T = b, C = T.dataset.nodeType, A = (T.textContent || "").replace(/\u200B/g, "").trim();
3759
3760
  if (A)
3760
- if (x === "report-module" || x === "markdown-module") {
3761
+ if (C === "report-module" || C === "markdown-module") {
3761
3762
  (!E[y] || !Array.isArray(E[y])) && (E[y] = []);
3762
3763
  const S = E[y];
3763
3764
  S.push(A), S.length > 1 && (p += " "), p += A;
3764
3765
  } else
3765
3766
  E[y] = A, p += A;
3766
3767
  } else if (g === "datepicker" && y) {
3767
- const x = (b.getAttribute("data-value") || "").trim();
3768
- if (x)
3769
- if (x.includes(",")) {
3770
- const A = x.split(",");
3771
- A.length === 2 ? (E[y] = A, p += `[${A[0]}, ${A[1]}]`) : (E[y] = x, p += x);
3768
+ const C = (b.getAttribute("data-value") || "").trim();
3769
+ if (C)
3770
+ if (C.includes(",")) {
3771
+ const A = C.split(",");
3772
+ A.length === 2 ? (E[y] = A, p += `[${A[0]}, ${A[1]}]`) : (E[y] = C, p += C);
3772
3773
  } else
3773
- E[y] = x, p += x;
3774
+ E[y] = C, p += C;
3774
3775
  } else if (g === "number-input" && y) {
3775
- const x = (b.value || "").trim();
3776
- x && (E[y] = x, p += x);
3776
+ const C = (b.value || "").trim();
3777
+ C && (E[y] = C, p += C);
3777
3778
  } else if (g === "upload" && y) {
3778
3779
  const T = b.dataset.batchKey;
3779
3780
  if (T) {
3780
- const x = e.find((A) => A.type === "upload" && A.key === T);
3781
- if (x && typeof x.maxCount == "number" && typeof x.minCount == "number") {
3781
+ const C = e.find((A) => A.type === "upload" && A.key === T);
3782
+ if (C && typeof C.maxCount == "number" && typeof C.minCount == "number") {
3782
3783
  const A = [];
3783
- for (let S = 0; S < x.maxCount; S++) {
3784
+ for (let S = 0; S < C.maxCount; S++) {
3784
3785
  const v = `${T}-${S}`, _ = t[v];
3785
3786
  _ && A.push(_);
3786
3787
  }
@@ -4347,7 +4348,7 @@ function Cc() {
4347
4348
  let f = n.slidesOffsetAfter;
4348
4349
  typeof f == "function" && (f = n.slidesOffsetAfter.call(e));
4349
4350
  const b = e.snapGrid.length, g = e.slidesGrid.length, y = e.size - c - f;
4350
- let T = n.spaceBetween, x = -c, A = 0, S = 0;
4351
+ let T = n.spaceBetween, C = -c, A = 0, S = 0;
4351
4352
  if (typeof y > "u")
4352
4353
  return;
4353
4354
  typeof T == "string" && T.indexOf("%") >= 0 ? T = parseFloat(T.replace("%", "")) / 100 * y : typeof T == "string" && (T = parseFloat(T)), e.virtualSize = -T - c - f, l.forEach((O) => {
@@ -4369,21 +4370,21 @@ function Cc() {
4369
4370
  if (F && (I.style.transform = "none"), N && (I.style.webkitTransform = "none"), n.roundLengths)
4370
4371
  _ = e.isHorizontal() ? Ea(I, "width") : Ea(I, "height");
4371
4372
  else {
4372
- const C = t(D, "width"), P = t(D, "padding-left"), H = t(D, "padding-right"), $ = t(D, "margin-left"), q = t(D, "margin-right"), k = D.getPropertyValue("box-sizing");
4373
+ const x = t(D, "width"), P = t(D, "padding-left"), H = t(D, "padding-right"), $ = t(D, "margin-left"), q = t(D, "margin-right"), k = D.getPropertyValue("box-sizing");
4373
4374
  if (k && k === "border-box")
4374
- _ = C + $ + q;
4375
+ _ = x + $ + q;
4375
4376
  else {
4376
4377
  const {
4377
4378
  clientWidth: W,
4378
4379
  offsetWidth: Q
4379
4380
  } = I;
4380
- _ = C + P + H + $ + q + (Q - W);
4381
+ _ = x + P + H + $ + q + (Q - W);
4381
4382
  }
4382
4383
  }
4383
4384
  F && (I.style.transform = F), N && (I.style.webkitTransform = N), n.roundLengths && (_ = Math.floor(_));
4384
4385
  } else
4385
4386
  _ = (y - (n.slidesPerView - 1) * T) / n.slidesPerView, n.roundLengths && (_ = Math.floor(_)), I && (I.style[e.getDirectionLabel("width")] = `${_}px`);
4386
- I && (I.swiperSlideSize = _), h.push(_), n.centeredSlides ? (x = x + _ / 2 + A / 2 + T, A === 0 && O !== 0 && (x = x - y / 2 - T), O === 0 && (x = x - y / 2 - T), Math.abs(x) < 1 / 1e3 && (x = 0), n.roundLengths && (x = Math.floor(x)), S % n.slidesPerGroup === 0 && p.push(x), E.push(x)) : (n.roundLengths && (x = Math.floor(x)), (S - Math.min(e.params.slidesPerGroupSkip, S)) % e.params.slidesPerGroup === 0 && p.push(x), E.push(x), x = x + _ + T), e.virtualSize += _ + T, A = _, S += 1;
4387
+ I && (I.swiperSlideSize = _), h.push(_), n.centeredSlides ? (C = C + _ / 2 + A / 2 + T, A === 0 && O !== 0 && (C = C - y / 2 - T), O === 0 && (C = C - y / 2 - T), Math.abs(C) < 1 / 1e3 && (C = 0), n.roundLengths && (C = Math.floor(C)), S % n.slidesPerGroup === 0 && p.push(C), E.push(C)) : (n.roundLengths && (C = Math.floor(C)), (S - Math.min(e.params.slidesPerGroupSkip, S)) % e.params.slidesPerGroup === 0 && p.push(C), E.push(C), C = C + _ + T), e.virtualSize += _ + T, A = _, S += 1;
4387
4388
  }
4388
4389
  }
4389
4390
  if (e.virtualSize = Math.max(e.virtualSize, y) + f, i && s && (n.effect === "slide" || n.effect === "coverflow") && (r.style.width = `${e.virtualSize + T}px`), n.setWrapperSize && (r.style[e.getDirectionLabel("width")] = `${e.virtualSize + T}px`), v && e.grid.updateWrapperSize(_, p), !n.centeredSlides) {
@@ -4393,8 +4394,8 @@ function Cc() {
4393
4394
  let N;
4394
4395
  if (n.slidesPerView === "auto") {
4395
4396
  N = 1;
4396
- let C = 0;
4397
- for (let P = h.length - 1; P >= 0 && (C += h[P] + (P < h.length - 1 ? T : 0), C <= y); P -= 1)
4397
+ let x = 0;
4398
+ for (let P = h.length - 1; P >= 0 && (x += h[P] + (P < h.length - 1 ? T : 0), x <= y); P -= 1)
4398
4399
  N = h.length - P;
4399
4400
  } else
4400
4401
  N = Math.floor(n.slidesPerView);
@@ -4402,8 +4403,8 @@ function Cc() {
4402
4403
  }
4403
4404
  const F = [];
4404
4405
  for (let N = 0; N < p.length; N += 1) {
4405
- let C = p[N];
4406
- n.roundLengths && (C = Math.floor(C)), I ? N <= D && F.push(C) : p[N] <= e.virtualSize - y && F.push(C);
4406
+ let x = p[N];
4407
+ n.roundLengths && (x = Math.floor(x)), I ? N <= D && F.push(x) : p[N] <= e.virtualSize - y && F.push(x);
4407
4408
  }
4408
4409
  p = F, Math.floor(e.virtualSize - y) - Math.floor(p[p.length - 1]) > 1 && (I || p.push(e.virtualSize - y));
4409
4410
  }
@@ -4970,8 +4971,8 @@ function Gc(e, t = !0, n) {
4970
4971
  let b = i[c.indexOf(h) - 1];
4971
4972
  if (typeof b > "u" && (a.cssMode || f)) {
4972
4973
  let y;
4973
- i.forEach((T, x) => {
4974
- h >= T && (y = x);
4974
+ i.forEach((T, C) => {
4975
+ h >= T && (y = C);
4975
4976
  }), typeof y < "u" && (b = f ? i[y] : i[y > 0 ? y - 1 : y]);
4976
4977
  }
4977
4978
  let g = 0;
@@ -5107,19 +5108,19 @@ function Qc({
5107
5108
  }
5108
5109
  let T = h.slidesPerView;
5109
5110
  T === "auto" ? T = o.slidesPerViewDynamic() : (T = Math.ceil(parseFloat(h.slidesPerView, 10)), y && T % 2 === 0 && (T = T + 1));
5110
- const x = h.slidesPerGroupAuto ? T : h.slidesPerGroup;
5111
- let A = y ? Math.max(x, Math.ceil(T / 2)) : x;
5112
- A % x !== 0 && (A += x - A % x), A += h.loopAdditionalSlides, o.loopedSlides = A;
5111
+ const C = h.slidesPerGroupAuto ? T : h.slidesPerGroup;
5112
+ let A = y ? Math.max(C, Math.ceil(T / 2)) : C;
5113
+ A % C !== 0 && (A += C - A % C), A += h.loopAdditionalSlides, o.loopedSlides = A;
5113
5114
  const S = o.grid && h.grid && h.grid.rows > 1;
5114
5115
  l.length < T + A || o.params.effect === "cards" && l.length < T + A * 2 ? ir("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : S && h.grid.fill === "row" && ir("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
5115
5116
  const v = [], _ = [], w = S ? Math.ceil(l.length / h.grid.rows) : l.length, O = i && w - g < T && !y;
5116
5117
  let I = O ? g : o.activeIndex;
5117
5118
  typeof a > "u" ? a = o.getSlideIndex(l.find(($) => $.classList.contains(h.slideActiveClass))) : I = a;
5118
5119
  const D = n === "next" || !n, F = n === "prev" || !n;
5119
- let N = 0, C = 0;
5120
+ let N = 0, x = 0;
5120
5121
  const H = (S ? l[a].column : a) + (y && typeof r > "u" ? -T / 2 + 0.5 : 0);
5121
5122
  if (H < A) {
5122
- N = Math.max(A - H, x);
5123
+ N = Math.max(A - H, C);
5123
5124
  for (let $ = 0; $ < A - H; $ += 1) {
5124
5125
  const q = $ - Math.floor($ / w) * w;
5125
5126
  if (S) {
@@ -5130,8 +5131,8 @@ function Qc({
5130
5131
  v.push(w - q - 1);
5131
5132
  }
5132
5133
  } else if (H + T > w - A) {
5133
- C = Math.max(H - (w - A * 2), x), O && (C = Math.max(C, T - w + g + 1));
5134
- for (let $ = 0; $ < C; $ += 1) {
5134
+ x = Math.max(H - (w - A * 2), C), O && (x = Math.max(x, T - w + g + 1));
5135
+ for (let $ = 0; $ < x; $ += 1) {
5135
5136
  const q = $ - Math.floor($ / w) * w;
5136
5137
  S ? l.forEach((k, W) => {
5137
5138
  k.column === q && _.push(W);
@@ -5157,8 +5158,8 @@ function Qc({
5157
5158
  }
5158
5159
  } else if (_.length > 0 && D)
5159
5160
  if (typeof e > "u") {
5160
- const $ = o.slidesGrid[I], k = o.slidesGrid[I - C] - $;
5161
- u ? o.setTranslate(o.translate - k) : (o.slideTo(I - C, 0, !1, !0), r && (o.touchEventsData.startTranslate = o.touchEventsData.startTranslate - k, o.touchEventsData.currentTranslate = o.touchEventsData.currentTranslate - k));
5161
+ const $ = o.slidesGrid[I], k = o.slidesGrid[I - x] - $;
5162
+ u ? o.setTranslate(o.translate - k) : (o.slideTo(I - x, 0, !1, !0), r && (o.touchEventsData.startTranslate = o.touchEventsData.startTranslate - k, o.touchEventsData.currentTranslate = o.touchEventsData.currentTranslate - k));
5162
5163
  } else {
5163
5164
  const $ = S ? _.length / h.grid.rows : _.length;
5164
5165
  o.slideTo(o.activeIndex - $, 0, !1, !0);
@@ -5383,16 +5384,16 @@ function id(e) {
5383
5384
  return;
5384
5385
  }
5385
5386
  n.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = c + r.startTranslate;
5386
- let T = !0, x = a.resistanceRatio;
5387
- if (a.touchReleaseOnEdges && (x = 0), c > 0 ? (g && y && r.allowThresholdMove && r.currentTranslate > (a.centeredSlides ? n.minTranslate() - n.slidesSizesGrid[n.activeIndex + 1] - (a.slidesPerView !== "auto" && n.slides.length - a.slidesPerView >= 2 ? n.slidesSizesGrid[n.activeIndex + 1] + n.params.spaceBetween : 0) - n.params.spaceBetween : n.minTranslate()) && n.loopFix({
5387
+ let T = !0, C = a.resistanceRatio;
5388
+ if (a.touchReleaseOnEdges && (C = 0), c > 0 ? (g && y && r.allowThresholdMove && r.currentTranslate > (a.centeredSlides ? n.minTranslate() - n.slidesSizesGrid[n.activeIndex + 1] - (a.slidesPerView !== "auto" && n.slides.length - a.slidesPerView >= 2 ? n.slidesSizesGrid[n.activeIndex + 1] + n.params.spaceBetween : 0) - n.params.spaceBetween : n.minTranslate()) && n.loopFix({
5388
5389
  direction: "prev",
5389
5390
  setTranslate: !0,
5390
5391
  activeSlideIndex: 0
5391
- }), r.currentTranslate > n.minTranslate() && (T = !1, a.resistance && (r.currentTranslate = n.minTranslate() - 1 + (-n.minTranslate() + r.startTranslate + c) ** x))) : c < 0 && (g && y && r.allowThresholdMove && r.currentTranslate < (a.centeredSlides ? n.maxTranslate() + n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween + (a.slidesPerView !== "auto" && n.slides.length - a.slidesPerView >= 2 ? n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween : 0) : n.maxTranslate()) && n.loopFix({
5392
+ }), r.currentTranslate > n.minTranslate() && (T = !1, a.resistance && (r.currentTranslate = n.minTranslate() - 1 + (-n.minTranslate() + r.startTranslate + c) ** C))) : c < 0 && (g && y && r.allowThresholdMove && r.currentTranslate < (a.centeredSlides ? n.maxTranslate() + n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween + (a.slidesPerView !== "auto" && n.slides.length - a.slidesPerView >= 2 ? n.slidesSizesGrid[n.slidesSizesGrid.length - 1] + n.params.spaceBetween : 0) : n.maxTranslate()) && n.loopFix({
5392
5393
  direction: "next",
5393
5394
  setTranslate: !0,
5394
5395
  activeSlideIndex: n.slides.length - (a.slidesPerView === "auto" ? n.slidesPerViewDynamic() : Math.ceil(parseFloat(a.slidesPerView, 10)))
5395
- }), r.currentTranslate < n.maxTranslate() && (T = !1, a.resistance && (r.currentTranslate = n.maxTranslate() + 1 - (n.maxTranslate() - r.startTranslate - c) ** x))), T && (o.preventedByNestedSwiper = !0), !n.allowSlideNext && n.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && n.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && !n.allowSlideNext && (r.currentTranslate = r.startTranslate), a.threshold > 0)
5396
+ }), r.currentTranslate < n.maxTranslate() && (T = !1, a.resistance && (r.currentTranslate = n.maxTranslate() + 1 - (n.maxTranslate() - r.startTranslate - c) ** C))), T && (o.preventedByNestedSwiper = !0), !n.allowSlideNext && n.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && n.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !n.allowSlidePrev && !n.allowSlideNext && (r.currentTranslate = r.startTranslate), a.threshold > 0)
5396
5397
  if (Math.abs(c) > a.threshold || r.allowThresholdMove) {
5397
5398
  if (!r.allowThresholdMove) {
5398
5399
  r.allowThresholdMove = !0, i.startX = i.currentX, i.startY = i.currentY, r.currentTranslate = r.startTranslate, i.diff = n.isHorizontal() ? i.currentX - i.startX : i.currentY - i.startY;
@@ -5460,19 +5461,19 @@ function sd(e) {
5460
5461
  }
5461
5462
  let g = null, y = null;
5462
5463
  s.rewind && (t.isBeginning ? y = s.virtual && s.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (g = 0));
5463
- const T = (h - l[f]) / b, x = f < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
5464
+ const T = (h - l[f]) / b, C = f < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup;
5464
5465
  if (E > s.longSwipesMs) {
5465
5466
  if (!s.longSwipes) {
5466
5467
  t.slideTo(t.activeIndex);
5467
5468
  return;
5468
5469
  }
5469
- t.swipeDirection === "next" && (T >= s.longSwipesRatio ? t.slideTo(s.rewind && t.isEnd ? g : f + x) : t.slideTo(f)), t.swipeDirection === "prev" && (T > 1 - s.longSwipesRatio ? t.slideTo(f + x) : y !== null && T < 0 && Math.abs(T) > s.longSwipesRatio ? t.slideTo(y) : t.slideTo(f));
5470
+ t.swipeDirection === "next" && (T >= s.longSwipesRatio ? t.slideTo(s.rewind && t.isEnd ? g : f + C) : t.slideTo(f)), t.swipeDirection === "prev" && (T > 1 - s.longSwipesRatio ? t.slideTo(f + C) : y !== null && T < 0 && Math.abs(T) > s.longSwipesRatio ? t.slideTo(y) : t.slideTo(f));
5470
5471
  } else {
5471
5472
  if (!s.shortSwipes) {
5472
5473
  t.slideTo(t.activeIndex);
5473
5474
  return;
5474
5475
  }
5475
- t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(f + x) : t.slideTo(f) : (t.swipeDirection === "next" && t.slideTo(g !== null ? g : f + x), t.swipeDirection === "prev" && t.slideTo(y !== null ? y : f));
5476
+ t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(f + C) : t.slideTo(f) : (t.swipeDirection === "next" && t.slideTo(g !== null ? g : f + C), t.swipeDirection === "prev" && t.slideTo(y !== null ? y : f));
5476
5477
  }
5477
5478
  }
5478
5479
  function Ci() {
@@ -5587,12 +5588,12 @@ function hd() {
5587
5588
  });
5588
5589
  const g = p.direction && p.direction !== r.direction, y = r.loop && (p.slidesPerView !== r.slidesPerView || g), T = r.loop;
5589
5590
  g && n && e.changeDirection(), Ye(e.params, p);
5590
- const x = e.params.enabled, A = e.params.loop;
5591
+ const C = e.params.enabled, A = e.params.loop;
5591
5592
  Object.assign(e, {
5592
5593
  allowTouchMove: e.params.allowTouchMove,
5593
5594
  allowSlideNext: e.params.allowSlideNext,
5594
5595
  allowSlidePrev: e.params.allowSlidePrev
5595
- }), b && !x ? e.disable() : !b && x && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", p), n && (y ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !T && A ? (e.loopCreate(t), e.updateSlides()) : T && !A && e.loopDestroy()), e.emit("breakpoint", p);
5596
+ }), b && !C ? e.disable() : !b && C && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", p), n && (y ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !T && A ? (e.loopCreate(t), e.updateSlides()) : T && !A && e.loopDestroy()), e.emit("breakpoint", p);
5596
5597
  }
5597
5598
  function md(e, t = "window", n) {
5598
5599
  if (!e || t === "container" && !n) return;
@@ -6314,19 +6315,19 @@ function _d({
6314
6315
  virtual: h,
6315
6316
  thumbs: c
6316
6317
  } = e;
6317
- let f, b, g, y, T, x, A, S;
6318
+ let f, b, g, y, T, C, A, S;
6318
6319
  r.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed && l.thumbs && (!l.thumbs.swiper || l.thumbs.swiper.destroyed) && (f = !0), r.includes("controller") && n.controller && n.controller.control && l.controller && !l.controller.control && (b = !0), r.includes("pagination") && n.pagination && (n.pagination.el || u) && (l.pagination || l.pagination === !1) && m && !m.el && (g = !0), r.includes("scrollbar") && n.scrollbar && (n.scrollbar.el || s) && (l.scrollbar || l.scrollbar === !1) && E && !E.el && (y = !0), r.includes("navigation") && n.navigation && (n.navigation.prevEl || i) && (n.navigation.nextEl || a) && (l.navigation || l.navigation === !1) && p && !p.prevEl && !p.nextEl && (T = !0);
6319
6320
  const v = (_) => {
6320
6321
  e[_] && (e[_].destroy(), _ === "navigation" ? (e.isElement && (e[_].prevEl.remove(), e[_].nextEl.remove()), l[_].prevEl = void 0, l[_].nextEl = void 0, e[_].prevEl = void 0, e[_].nextEl = void 0) : (e.isElement && e[_].el.remove(), l[_].el = void 0, e[_].el = void 0));
6321
6322
  };
6322
- r.includes("loop") && e.isElement && (l.loop && !n.loop ? x = !0 : !l.loop && n.loop ? A = !0 : S = !0), o.forEach((_) => {
6323
+ r.includes("loop") && e.isElement && (l.loop && !n.loop ? C = !0 : !l.loop && n.loop ? A = !0 : S = !0), o.forEach((_) => {
6323
6324
  if (Lt(l[_]) && Lt(n[_]))
6324
6325
  Object.assign(l[_], n[_]), (_ === "navigation" || _ === "pagination" || _ === "scrollbar") && "enabled" in n[_] && !n[_].enabled && v(_);
6325
6326
  else {
6326
6327
  const w = n[_];
6327
6328
  (w === !0 || w === !1) && (_ === "navigation" || _ === "pagination" || _ === "scrollbar") ? w === !1 && v(_) : l[_] = n[_];
6328
6329
  }
6329
- }), o.includes("controller") && !b && e.controller && e.controller.control && l.controller && l.controller.control && (e.controller.control = l.controller.control), r.includes("children") && t && h && l.virtual.enabled ? (h.slides = t, h.update(!0)) : r.includes("virtual") && h && l.virtual.enabled && (t && (h.slides = t), h.update(!0)), r.includes("children") && t && l.loop && (S = !0), f && c.init() && c.update(!0), b && (e.controller.control = l.controller.control), g && (e.isElement && (!u || typeof u == "string") && (u = document.createElement("div"), u.classList.add("swiper-pagination"), u.part.add("pagination"), e.el.appendChild(u)), u && (l.pagination.el = u), m.init(), m.render(), m.update()), y && (e.isElement && (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-scrollbar"), s.part.add("scrollbar"), e.el.appendChild(s)), s && (l.scrollbar.el = s), E.init(), E.updateSize(), E.setTranslate()), T && (e.isElement && ((!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-next"), An(a, e.navigation.arrowSvg), a.part.add("button-next"), e.el.appendChild(a)), (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-prev"), An(i, e.navigation.arrowSvg), i.part.add("button-prev"), e.el.appendChild(i))), a && (l.navigation.nextEl = a), i && (l.navigation.prevEl = i), p.init(), p.update()), r.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), r.includes("direction") && e.changeDirection(n.direction, !1), (x || S) && e.loopDestroy(), (A || S) && e.loopCreate(), e.update();
6330
+ }), o.includes("controller") && !b && e.controller && e.controller.control && l.controller && l.controller.control && (e.controller.control = l.controller.control), r.includes("children") && t && h && l.virtual.enabled ? (h.slides = t, h.update(!0)) : r.includes("virtual") && h && l.virtual.enabled && (t && (h.slides = t), h.update(!0)), r.includes("children") && t && l.loop && (S = !0), f && c.init() && c.update(!0), b && (e.controller.control = l.controller.control), g && (e.isElement && (!u || typeof u == "string") && (u = document.createElement("div"), u.classList.add("swiper-pagination"), u.part.add("pagination"), e.el.appendChild(u)), u && (l.pagination.el = u), m.init(), m.render(), m.update()), y && (e.isElement && (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-scrollbar"), s.part.add("scrollbar"), e.el.appendChild(s)), s && (l.scrollbar.el = s), E.init(), E.updateSize(), E.setTranslate()), T && (e.isElement && ((!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-next"), An(a, e.navigation.arrowSvg), a.part.add("button-next"), e.el.appendChild(a)), (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-prev"), An(i, e.navigation.arrowSvg), i.part.add("button-prev"), e.el.appendChild(i))), a && (l.navigation.nextEl = a), i && (l.navigation.prevEl = i), p.init(), p.update()), r.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), r.includes("direction") && e.changeDirection(n.direction, !1), (C || S) && e.loopDestroy(), (A || S) && e.loopCreate(), e.update();
6330
6331
  }
6331
6332
  function kd(e = {}, t = !0) {
6332
6333
  const n = {
@@ -6454,7 +6455,7 @@ const Si = /* @__PURE__ */ Ys(null), Od = /* @__PURE__ */ Ys(null), po = /* @__P
6454
6455
  ...i
6455
6456
  } = {}, s) => {
6456
6457
  let u = !1;
6457
- const [o, l] = te("swiper"), [m, p] = te(null), [E, h] = te(!1), c = J(!1), f = J(null), b = J(null), g = J(null), y = J(null), T = J(null), x = J(null), A = J(null), S = J(null), {
6458
+ const [o, l] = te("swiper"), [m, p] = te(null), [E, h] = te(!1), c = J(!1), f = J(null), b = J(null), g = J(null), y = J(null), T = J(null), C = J(null), A = J(null), S = J(null), {
6458
6459
  params: v,
6459
6460
  passedParams: _,
6460
6461
  rest: w,
@@ -6487,7 +6488,7 @@ const Si = /* @__PURE__ */ Ys(null), Od = /* @__PURE__ */ Ys(null), po = /* @__P
6487
6488
  }
6488
6489
  };
6489
6490
  f.current || N(), b.current && b.current.on("_beforeBreakpoint", F);
6490
- const C = () => {
6491
+ const x = () => {
6491
6492
  u || !O || !b.current || Object.keys(O).forEach(($) => {
6492
6493
  b.current.on($, O[$]);
6493
6494
  });
@@ -6505,7 +6506,7 @@ const Si = /* @__PURE__ */ Ys(null), Od = /* @__PURE__ */ Ys(null), po = /* @__P
6505
6506
  return b.current.destroyed && N(), Nd({
6506
6507
  el: f.current,
6507
6508
  nextEl: T.current,
6508
- prevEl: x.current,
6509
+ prevEl: C.current,
6509
6510
  paginationEl: A.current,
6510
6511
  scrollbarEl: S.current,
6511
6512
  swiper: b.current
@@ -6513,7 +6514,7 @@ const Si = /* @__PURE__ */ Ys(null), Od = /* @__PURE__ */ Ys(null), po = /* @__P
6513
6514
  b.current && !b.current.destroyed && b.current.destroy(!0, !1);
6514
6515
  };
6515
6516
  }, []), pn(() => {
6516
- C();
6517
+ x();
6517
6518
  const $ = vd(_, g.current, I, y.current, (q) => q.key);
6518
6519
  return g.current = _, y.current = I, $.length && b.current && !b.current.destroyed && _d({
6519
6520
  swiper: b.current,
@@ -6521,7 +6522,7 @@ const Si = /* @__PURE__ */ Ys(null), Od = /* @__PURE__ */ Ys(null), po = /* @__P
6521
6522
  passedParams: _,
6522
6523
  changedParams: $,
6523
6524
  nextEl: T.current,
6524
- prevEl: x.current,
6525
+ prevEl: C.current,
6525
6526
  scrollbarEl: S.current,
6526
6527
  paginationEl: A.current
6527
6528
  }), () => {
@@ -6544,7 +6545,7 @@ const Si = /* @__PURE__ */ Ys(null), Od = /* @__PURE__ */ Ys(null), po = /* @__P
6544
6545
  }, D["container-start"], /* @__PURE__ */ Se.createElement(n, {
6545
6546
  className: Sd(v.wrapperClass)
6546
6547
  }, D["wrapper-start"], H(), D["wrapper-end"]), so(v) && /* @__PURE__ */ Se.createElement(Se.Fragment, null, /* @__PURE__ */ Se.createElement("div", {
6547
- ref: x,
6548
+ ref: C,
6548
6549
  className: "swiper-button-prev"
6549
6550
  }), /* @__PURE__ */ Se.createElement("div", {
6550
6551
  ref: T,
@@ -6570,8 +6571,8 @@ const ho = /* @__PURE__ */ Gs(({
6570
6571
  ...o
6571
6572
  } = {}, l) => {
6572
6573
  const m = J(null), [p, E] = te("swiper-slide"), [h, c] = te(!1);
6573
- function f(T, x, A) {
6574
- x === m.current && E(A);
6574
+ function f(T, C, A) {
6575
+ C === m.current && E(A);
6575
6576
  }
6576
6577
  pn(() => {
6577
6578
  if (typeof u < "u" && (m.current.swiperSlideIndex = u), l && (l.current = m.current), !(!m.current || !r)) {
@@ -6737,12 +6738,12 @@ function Dd({
6737
6738
  let y = b.includes(g) || f.includes(g);
6738
6739
  if (e.isElement && !y) {
6739
6740
  const T = c.path || c.composedPath && c.composedPath();
6740
- T && (y = T.find((x) => f.includes(x) || b.includes(x)));
6741
+ T && (y = T.find((C) => f.includes(C) || b.includes(C)));
6741
6742
  }
6742
6743
  if (e.params.navigation.hideOnClick && !y) {
6743
6744
  if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === g || e.pagination.el.contains(g))) return;
6744
6745
  let T;
6745
- f.length ? T = f[0].classList.contains(e.params.navigation.hiddenClass) : b.length && (T = b[0].classList.contains(e.params.navigation.hiddenClass)), r(T === !0 ? "navigationShow" : "navigationHide"), [...f, ...b].filter((x) => !!x).forEach((x) => x.classList.toggle(e.params.navigation.hiddenClass));
6746
+ f.length ? T = f[0].classList.contains(e.params.navigation.hiddenClass) : b.length && (T = b[0].classList.contains(e.params.navigation.hiddenClass)), r(T === !0 ? "navigationShow" : "navigationHide"), [...f, ...b].filter((C) => !!C).forEach((C) => C.classList.toggle(e.params.navigation.hiddenClass));
6746
6747
  }
6747
6748
  });
6748
6749
  const p = () => {
@@ -6827,8 +6828,8 @@ function Pd({
6827
6828
  const T = or(y) * e.params.slidesPerGroup;
6828
6829
  if (e.params.loop) {
6829
6830
  if (e.realIndex === T) return;
6830
- const x = l(e.realIndex, T, e.slides.length);
6831
- x === "next" ? e.slideNext() : x === "previous" ? e.slidePrev() : e.slideToLoop(T);
6831
+ const C = l(e.realIndex, T, e.slides.length);
6832
+ C === "next" ? e.slideNext() : C === "previous" ? e.slidePrev() : e.slideToLoop(T);
6832
6833
  } else
6833
6834
  e.slideTo(T);
6834
6835
  }
@@ -6837,54 +6838,54 @@ function Pd({
6837
6838
  if (u()) return;
6838
6839
  let T = e.pagination.el;
6839
6840
  T = Oe(T);
6840
- let x, A;
6841
+ let C, A;
6841
6842
  const S = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, v = e.params.loop ? Math.ceil(S / e.params.slidesPerGroup) : e.snapGrid.length;
6842
- if (e.params.loop ? (A = e.previousRealIndex || 0, x = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (x = e.snapIndex, A = e.previousSnapIndex) : (A = e.previousIndex || 0, x = e.activeIndex || 0), y.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
6843
+ if (e.params.loop ? (A = e.previousRealIndex || 0, C = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (C = e.snapIndex, A = e.previousSnapIndex) : (A = e.previousIndex || 0, C = e.activeIndex || 0), y.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
6843
6844
  const _ = e.pagination.bullets;
6844
6845
  let w, O, I;
6845
6846
  if (y.dynamicBullets && (i = Ea(_[0], e.isHorizontal() ? "width" : "height"), T.forEach((D) => {
6846
6847
  D.style[e.isHorizontal() ? "width" : "height"] = `${i * (y.dynamicMainBullets + 4)}px`;
6847
- }), y.dynamicMainBullets > 1 && A !== void 0 && (s += x - (A || 0), s > y.dynamicMainBullets - 1 ? s = y.dynamicMainBullets - 1 : s < 0 && (s = 0)), w = Math.max(x - s, 0), O = w + (Math.min(_.length, y.dynamicMainBullets) - 1), I = (O + w) / 2), _.forEach((D) => {
6848
+ }), y.dynamicMainBullets > 1 && A !== void 0 && (s += C - (A || 0), s > y.dynamicMainBullets - 1 ? s = y.dynamicMainBullets - 1 : s < 0 && (s = 0)), w = Math.max(C - s, 0), O = w + (Math.min(_.length, y.dynamicMainBullets) - 1), I = (O + w) / 2), _.forEach((D) => {
6848
6849
  const F = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((N) => `${y.bulletActiveClass}${N}`)].map((N) => typeof N == "string" && N.includes(" ") ? N.split(" ") : N).flat();
6849
6850
  D.classList.remove(...F);
6850
6851
  }), T.length > 1)
6851
6852
  _.forEach((D) => {
6852
6853
  const F = or(D);
6853
- F === x ? D.classList.add(...y.bulletActiveClass.split(" ")) : e.isElement && D.setAttribute("part", "bullet"), y.dynamicBullets && (F >= w && F <= O && D.classList.add(...`${y.bulletActiveClass}-main`.split(" ")), F === w && o(D, "prev"), F === O && o(D, "next"));
6854
+ F === C ? D.classList.add(...y.bulletActiveClass.split(" ")) : e.isElement && D.setAttribute("part", "bullet"), y.dynamicBullets && (F >= w && F <= O && D.classList.add(...`${y.bulletActiveClass}-main`.split(" ")), F === w && o(D, "prev"), F === O && o(D, "next"));
6854
6855
  });
6855
6856
  else {
6856
- const D = _[x];
6857
+ const D = _[C];
6857
6858
  if (D && D.classList.add(...y.bulletActiveClass.split(" ")), e.isElement && _.forEach((F, N) => {
6858
- F.setAttribute("part", N === x ? "bullet-active" : "bullet");
6859
+ F.setAttribute("part", N === C ? "bullet-active" : "bullet");
6859
6860
  }), y.dynamicBullets) {
6860
6861
  const F = _[w], N = _[O];
6861
- for (let C = w; C <= O; C += 1)
6862
- _[C] && _[C].classList.add(...`${y.bulletActiveClass}-main`.split(" "));
6862
+ for (let x = w; x <= O; x += 1)
6863
+ _[x] && _[x].classList.add(...`${y.bulletActiveClass}-main`.split(" "));
6863
6864
  o(F, "prev"), o(N, "next");
6864
6865
  }
6865
6866
  }
6866
6867
  if (y.dynamicBullets) {
6867
6868
  const D = Math.min(_.length, y.dynamicMainBullets + 4), F = (i * D - i) / 2 - I * i, N = g ? "right" : "left";
6868
- _.forEach((C) => {
6869
- C.style[e.isHorizontal() ? N : "top"] = `${F}px`;
6869
+ _.forEach((x) => {
6870
+ x.style[e.isHorizontal() ? N : "top"] = `${F}px`;
6870
6871
  });
6871
6872
  }
6872
6873
  }
6873
6874
  T.forEach((_, w) => {
6874
6875
  if (y.type === "fraction" && (_.querySelectorAll(rn(y.currentClass)).forEach((O) => {
6875
- O.textContent = y.formatFractionCurrent(x + 1);
6876
+ O.textContent = y.formatFractionCurrent(C + 1);
6876
6877
  }), _.querySelectorAll(rn(y.totalClass)).forEach((O) => {
6877
6878
  O.textContent = y.formatFractionTotal(v);
6878
6879
  })), y.type === "progressbar") {
6879
6880
  let O;
6880
6881
  y.progressbarOpposite ? O = e.isHorizontal() ? "vertical" : "horizontal" : O = e.isHorizontal() ? "horizontal" : "vertical";
6881
- const I = (x + 1) / v;
6882
+ const I = (C + 1) / v;
6882
6883
  let D = 1, F = 1;
6883
6884
  O === "horizontal" ? D = I : F = I, _.querySelectorAll(rn(y.progressbarFillClass)).forEach((N) => {
6884
6885
  N.style.transform = `translate3d(0,0,0) scaleX(${D}) scaleY(${F})`, N.style.transitionDuration = `${e.params.speed}ms`;
6885
6886
  });
6886
6887
  }
6887
- y.type === "custom" && y.renderCustom ? (An(_, y.renderCustom(e, x + 1, v)), w === 0 && r("paginationRender", _)) : (w === 0 && r("paginationRender", _), r("paginationUpdate", _)), e.params.watchOverflow && e.enabled && _.classList[e.isLocked ? "add" : "remove"](y.lockClass);
6888
+ y.type === "custom" && y.renderCustom ? (An(_, y.renderCustom(e, C + 1, v)), w === 0 && r("paginationRender", _)) : (w === 0 && r("paginationRender", _), r("paginationUpdate", _)), e.params.watchOverflow && e.enabled && _.classList[e.isLocked ? "add" : "remove"](y.lockClass);
6888
6889
  });
6889
6890
  }
6890
6891
  function E() {
@@ -6893,15 +6894,15 @@ function Pd({
6893
6894
  const y = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
6894
6895
  let T = e.pagination.el;
6895
6896
  T = Oe(T);
6896
- let x = "";
6897
+ let C = "";
6897
6898
  if (g.type === "bullets") {
6898
6899
  let A = e.params.loop ? Math.ceil(y / e.params.slidesPerGroup) : e.snapGrid.length;
6899
6900
  e.params.freeMode && e.params.freeMode.enabled && A > y && (A = y);
6900
6901
  for (let S = 0; S < A; S += 1)
6901
- g.renderBullet ? x += g.renderBullet.call(e, S, g.bulletClass) : x += `<${g.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${g.bulletClass}"></${g.bulletElement}>`;
6902
+ g.renderBullet ? C += g.renderBullet.call(e, S, g.bulletClass) : C += `<${g.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${g.bulletClass}"></${g.bulletElement}>`;
6902
6903
  }
6903
- g.type === "fraction" && (g.renderFraction ? x = g.renderFraction.call(e, g.currentClass, g.totalClass) : x = `<span class="${g.currentClass}"></span> / <span class="${g.totalClass}"></span>`), g.type === "progressbar" && (g.renderProgressbar ? x = g.renderProgressbar.call(e, g.progressbarFillClass) : x = `<span class="${g.progressbarFillClass}"></span>`), e.pagination.bullets = [], T.forEach((A) => {
6904
- g.type !== "custom" && An(A, x || ""), g.type === "bullets" && e.pagination.bullets.push(...A.querySelectorAll(rn(g.bulletClass)));
6904
+ g.type === "fraction" && (g.renderFraction ? C = g.renderFraction.call(e, g.currentClass, g.totalClass) : C = `<span class="${g.currentClass}"></span> / <span class="${g.totalClass}"></span>`), g.type === "progressbar" && (g.renderProgressbar ? C = g.renderProgressbar.call(e, g.progressbarFillClass) : C = `<span class="${g.progressbarFillClass}"></span>`), e.pagination.bullets = [], T.forEach((A) => {
6905
+ g.type !== "custom" && An(A, C || ""), g.type === "bullets" && e.pagination.bullets.push(...A.querySelectorAll(rn(g.bulletClass)));
6905
6906
  }), g.type !== "custom" && r("paginationRender", T[0]);
6906
6907
  }
6907
6908
  function h() {
@@ -6952,11 +6953,11 @@ function Pd({
6952
6953
  }), n("lock unlock", () => {
6953
6954
  p();
6954
6955
  }), n("click", (g, y) => {
6955
- const T = y.target, x = Oe(e.pagination.el);
6956
- if (e.params.pagination.el && e.params.pagination.hideOnClick && x && x.length > 0 && !T.classList.contains(e.params.pagination.bulletClass)) {
6956
+ const T = y.target, C = Oe(e.pagination.el);
6957
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && C && C.length > 0 && !T.classList.contains(e.params.pagination.bulletClass)) {
6957
6958
  if (e.navigation && (e.navigation.nextEl && T === e.navigation.nextEl || e.navigation.prevEl && T === e.navigation.prevEl)) return;
6958
- const A = x[0].classList.contains(e.params.pagination.hiddenClass);
6959
- r(A === !0 ? "paginationShow" : "paginationHide"), x.forEach((S) => S.classList.toggle(e.params.pagination.hiddenClass));
6959
+ const A = C[0].classList.contains(e.params.pagination.hiddenClass);
6960
+ r(A === !0 ? "paginationShow" : "paginationHide"), C.forEach((S) => S.classList.toggle(e.params.pagination.hiddenClass));
6960
6961
  }
6961
6962
  });
6962
6963
  const f = () => {
@@ -8193,16 +8194,16 @@ function jd() {
8193
8194
  if (!b) return [];
8194
8195
  g = g || {};
8195
8196
  var y = 1, T = 1;
8196
- function x(N) {
8197
- var C = N.match(t);
8198
- C && (y += C.length);
8197
+ function C(N) {
8198
+ var x = N.match(t);
8199
+ x && (y += x.length);
8199
8200
  var P = N.lastIndexOf(o);
8200
8201
  T = ~P ? N.length - P : T + N.length;
8201
8202
  }
8202
8203
  function A() {
8203
8204
  var N = { line: y, column: T };
8204
- return function(C) {
8205
- return C.position = new S(N), w(), C;
8205
+ return function(x) {
8206
+ return x.position = new S(N), w(), x;
8206
8207
  };
8207
8208
  }
8208
8209
  function S(N) {
@@ -8210,48 +8211,48 @@ function jd() {
8210
8211
  }
8211
8212
  S.prototype.content = b;
8212
8213
  function v(N) {
8213
- var C = new Error(
8214
+ var x = new Error(
8214
8215
  g.source + ":" + y + ":" + T + ": " + N
8215
8216
  );
8216
- if (C.reason = N, C.filename = g.source, C.line = y, C.column = T, C.source = b, !g.silent) throw C;
8217
+ if (x.reason = N, x.filename = g.source, x.line = y, x.column = T, x.source = b, !g.silent) throw x;
8217
8218
  }
8218
8219
  function _(N) {
8219
- var C = N.exec(b);
8220
- if (C) {
8221
- var P = C[0];
8222
- return x(P), b = b.slice(P.length), C;
8220
+ var x = N.exec(b);
8221
+ if (x) {
8222
+ var P = x[0];
8223
+ return C(P), b = b.slice(P.length), x;
8223
8224
  }
8224
8225
  }
8225
8226
  function w() {
8226
8227
  _(n);
8227
8228
  }
8228
8229
  function O(N) {
8229
- var C;
8230
- for (N = N || []; C = I(); )
8231
- C !== !1 && N.push(C);
8230
+ var x;
8231
+ for (N = N || []; x = I(); )
8232
+ x !== !1 && N.push(x);
8232
8233
  return N;
8233
8234
  }
8234
8235
  function I() {
8235
8236
  var N = A();
8236
8237
  if (!(l != b.charAt(0) || m != b.charAt(1))) {
8237
- for (var C = 2; p != b.charAt(C) && (m != b.charAt(C) || l != b.charAt(C + 1)); )
8238
- ++C;
8239
- if (C += 2, p === b.charAt(C - 1))
8238
+ for (var x = 2; p != b.charAt(x) && (m != b.charAt(x) || l != b.charAt(x + 1)); )
8239
+ ++x;
8240
+ if (x += 2, p === b.charAt(x - 1))
8240
8241
  return v("End of comment missing");
8241
- var P = b.slice(2, C - 2);
8242
- return T += 2, x(P), b = b.slice(C), T += 2, N({
8242
+ var P = b.slice(2, x - 2);
8243
+ return T += 2, C(P), b = b.slice(x), T += 2, N({
8243
8244
  type: E,
8244
8245
  comment: P
8245
8246
  });
8246
8247
  }
8247
8248
  }
8248
8249
  function D() {
8249
- var N = A(), C = _(r);
8250
- if (C) {
8250
+ var N = A(), x = _(r);
8251
+ if (x) {
8251
8252
  if (I(), !_(a)) return v("property missing ':'");
8252
8253
  var P = _(i), H = N({
8253
8254
  type: h,
8254
- property: f(C[0].replace(e, p)),
8255
+ property: f(x[0].replace(e, p)),
8255
8256
  value: P ? f(P[0].replace(e, p)) : p
8256
8257
  });
8257
8258
  return _(s), H;
@@ -8260,8 +8261,8 @@ function jd() {
8260
8261
  function F() {
8261
8262
  var N = [];
8262
8263
  O(N);
8263
- for (var C; C = D(); )
8264
- C !== !1 && (N.push(C), O(N));
8264
+ for (var x; x = D(); )
8265
+ x !== !1 && (N.push(x), O(N));
8265
8266
  return N;
8266
8267
  }
8267
8268
  return w(), F();
@@ -8943,28 +8944,28 @@ function Df(e) {
8943
8944
  return u;
8944
8945
  function u(T) {
8945
8946
  if (r < n.length) {
8946
- const x = n[r];
8947
- return t.containerState = x[1], e.attempt(x[0].continuation, o, l)(T);
8947
+ const C = n[r];
8948
+ return t.containerState = C[1], e.attempt(C[0].continuation, o, l)(T);
8948
8949
  }
8949
8950
  return l(T);
8950
8951
  }
8951
8952
  function o(T) {
8952
8953
  if (r++, t.containerState._closeFlow) {
8953
8954
  t.containerState._closeFlow = void 0, a && y();
8954
- const x = t.events.length;
8955
- let A = x, S;
8955
+ const C = t.events.length;
8956
+ let A = C, S;
8956
8957
  for (; A--; )
8957
8958
  if (t.events[A][0] === "exit" && t.events[A][1].type === "chunkFlow") {
8958
8959
  S = t.events[A][1].end;
8959
8960
  break;
8960
8961
  }
8961
8962
  g(r);
8962
- let v = x;
8963
+ let v = C;
8963
8964
  for (; v < t.events.length; )
8964
8965
  t.events[v][1].end = {
8965
8966
  ...S
8966
8967
  }, v++;
8967
- return ut(t.events, A + 1, 0, t.events.slice(x)), t.events.length = v, l(T);
8968
+ return ut(t.events, A + 1, 0, t.events.slice(C)), t.events.length = v, l(T);
8968
8969
  }
8969
8970
  return u(T);
8970
8971
  }
@@ -9008,9 +9009,9 @@ function Df(e) {
9008
9009
  }
9009
9010
  return Z(T) ? (e.consume(T), b(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, u) : (e.consume(T), f);
9010
9011
  }
9011
- function b(T, x) {
9012
+ function b(T, C) {
9012
9013
  const A = t.sliceStream(T);
9013
- if (x && A.push(null), T.previous = i, i && (i.next = T), i = T, a.defineSkip(T.start), a.write(A), t.parser.lazy[T.start.line]) {
9014
+ if (C && A.push(null), T.previous = i, i && (i.next = T), i = T, a.defineSkip(T.start), a.write(A), t.parser.lazy[T.start.line]) {
9014
9015
  let S = a.events.length;
9015
9016
  for (; S--; )
9016
9017
  if (
@@ -9038,9 +9039,9 @@ function Df(e) {
9038
9039
  }
9039
9040
  }
9040
9041
  function g(T) {
9041
- let x = n.length;
9042
- for (; x-- > T; ) {
9043
- const A = n[x];
9042
+ let C = n.length;
9043
+ for (; C-- > T; ) {
9044
+ const A = n[C];
9044
9045
  t.containerState = A[1], A[0].exit.call(t, e);
9045
9046
  }
9046
9047
  n.length = T;
@@ -9297,7 +9298,7 @@ function Gf(e, t, n) {
9297
9298
  return S === u ? (s++, e.consume(S), m) : s < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), me(S) ? ge(e, p, "whitespace")(S) : p(S));
9298
9299
  }
9299
9300
  function p(S) {
9300
- return S === null || Z(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Vi, f, x)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
9301
+ return S === null || Z(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Vi, f, C)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
9301
9302
  contentType: "string"
9302
9303
  }), E(S));
9303
9304
  }
@@ -9313,7 +9314,7 @@ function Gf(e, t, n) {
9313
9314
  return S === null || Z(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(S)) : S === 96 && S === u ? n(S) : (e.consume(S), c);
9314
9315
  }
9315
9316
  function f(S) {
9316
- return e.attempt(a, x, b)(S);
9317
+ return e.attempt(a, C, b)(S);
9317
9318
  }
9318
9319
  function b(S) {
9319
9320
  return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), g;
@@ -9322,31 +9323,31 @@ function Gf(e, t, n) {
9322
9323
  return i > 0 && me(S) ? ge(e, y, "linePrefix", i + 1)(S) : y(S);
9323
9324
  }
9324
9325
  function y(S) {
9325
- return S === null || Z(S) ? e.check(Vi, f, x)(S) : (e.enter("codeFlowValue"), T(S));
9326
+ return S === null || Z(S) ? e.check(Vi, f, C)(S) : (e.enter("codeFlowValue"), T(S));
9326
9327
  }
9327
9328
  function T(S) {
9328
9329
  return S === null || Z(S) ? (e.exit("codeFlowValue"), y(S)) : (e.consume(S), T);
9329
9330
  }
9330
- function x(S) {
9331
+ function C(S) {
9331
9332
  return e.exit("codeFenced"), t(S);
9332
9333
  }
9333
9334
  function A(S, v, _) {
9334
9335
  let w = 0;
9335
9336
  return O;
9336
- function O(C) {
9337
- return S.enter("lineEnding"), S.consume(C), S.exit("lineEnding"), I;
9337
+ function O(x) {
9338
+ return S.enter("lineEnding"), S.consume(x), S.exit("lineEnding"), I;
9338
9339
  }
9339
- function I(C) {
9340
- return S.enter("codeFencedFence"), me(C) ? ge(S, D, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : D(C);
9340
+ function I(x) {
9341
+ return S.enter("codeFencedFence"), me(x) ? ge(S, D, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : D(x);
9341
9342
  }
9342
- function D(C) {
9343
- return C === u ? (S.enter("codeFencedFenceSequence"), F(C)) : _(C);
9343
+ function D(x) {
9344
+ return x === u ? (S.enter("codeFencedFenceSequence"), F(x)) : _(x);
9344
9345
  }
9345
- function F(C) {
9346
- return C === u ? (w++, S.consume(C), F) : w >= s ? (S.exit("codeFencedFenceSequence"), me(C) ? ge(S, N, "whitespace")(C) : N(C)) : _(C);
9346
+ function F(x) {
9347
+ return x === u ? (w++, S.consume(x), F) : w >= s ? (S.exit("codeFencedFenceSequence"), me(x) ? ge(S, N, "whitespace")(x) : N(x)) : _(x);
9347
9348
  }
9348
- function N(C) {
9349
- return C === null || Z(C) ? (S.exit("codeFencedFence"), v(C)) : _(C);
9349
+ function N(x) {
9350
+ return x === null || Z(x) ? (S.exit("codeFencedFence"), v(x)) : _(x);
9350
9351
  }
9351
9352
  }
9352
9353
  }
@@ -10027,10 +10028,10 @@ function xp(e, t, n) {
10027
10028
  return me(R) ? (e.consume(R), y) : O(R);
10028
10029
  }
10029
10030
  function T(R) {
10030
- return R === 47 ? (e.consume(R), O) : R === 58 || R === 95 || it(R) ? (e.consume(R), x) : me(R) ? (e.consume(R), T) : O(R);
10031
+ return R === 47 ? (e.consume(R), O) : R === 58 || R === 95 || it(R) ? (e.consume(R), C) : me(R) ? (e.consume(R), T) : O(R);
10031
10032
  }
10032
- function x(R) {
10033
- return R === 45 || R === 46 || R === 58 || R === 95 || We(R) ? (e.consume(R), x) : A(R);
10033
+ function C(R) {
10034
+ return R === 45 || R === 46 || R === 58 || R === 95 || We(R) ? (e.consume(R), C) : A(R);
10034
10035
  }
10035
10036
  function A(R) {
10036
10037
  return R === 61 ? (e.consume(R), S) : me(R) ? (e.consume(R), A) : T(R);
@@ -10060,9 +10061,9 @@ function xp(e, t, n) {
10060
10061
  return e.check(yp, N, Q)(R);
10061
10062
  }
10062
10063
  function N(R) {
10063
- return e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), C;
10064
+ return e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), x;
10064
10065
  }
10065
- function C(R) {
10066
+ function x(R) {
10066
10067
  return R === null || Z(R) ? F(R) : (e.enter("htmlFlowData"), D(R));
10067
10068
  }
10068
10069
  function P(R) {
@@ -10153,9 +10154,9 @@ function _p(e, t, n) {
10153
10154
  return k === null || k === 62 ? P(k) : Z(k) ? (s = y, H(k)) : (e.consume(k), y);
10154
10155
  }
10155
10156
  function T(k) {
10156
- return k === null ? n(k) : k === 63 ? (e.consume(k), x) : Z(k) ? (s = T, H(k)) : (e.consume(k), T);
10157
+ return k === null ? n(k) : k === 63 ? (e.consume(k), C) : Z(k) ? (s = T, H(k)) : (e.consume(k), T);
10157
10158
  }
10158
- function x(k) {
10159
+ function C(k) {
10159
10160
  return k === 62 ? P(k) : T(k);
10160
10161
  }
10161
10162
  function A(k) {
@@ -10183,12 +10184,12 @@ function _p(e, t, n) {
10183
10184
  return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), a = k, F) : Z(k) ? (s = D, H(k)) : me(k) ? (e.consume(k), D) : (e.consume(k), N);
10184
10185
  }
10185
10186
  function F(k) {
10186
- return k === a ? (e.consume(k), a = void 0, C) : k === null ? n(k) : Z(k) ? (s = F, H(k)) : (e.consume(k), F);
10187
+ return k === a ? (e.consume(k), a = void 0, x) : k === null ? n(k) : Z(k) ? (s = F, H(k)) : (e.consume(k), F);
10187
10188
  }
10188
10189
  function N(k) {
10189
10190
  return k === null || k === 34 || k === 39 || k === 60 || k === 61 || k === 96 ? n(k) : k === 47 || k === 62 || Ne(k) ? w(k) : (e.consume(k), N);
10190
10191
  }
10191
- function C(k) {
10192
+ function x(k) {
10192
10193
  return k === 47 || k === 62 || Ne(k) ? w(k) : n(k);
10193
10194
  }
10194
10195
  function P(k) {
@@ -10739,7 +10740,7 @@ function fh(e, t, n) {
10739
10740
  check: v(S),
10740
10741
  consume: y,
10741
10742
  enter: T,
10742
- exit: x,
10743
+ exit: C,
10743
10744
  interrupt: v(S, {
10744
10745
  interrupt: !0
10745
10746
  })
@@ -10772,14 +10773,14 @@ function fh(e, t, n) {
10772
10773
  _index: D,
10773
10774
  line: F,
10774
10775
  column: N,
10775
- offset: C
10776
+ offset: x
10776
10777
  } = r;
10777
10778
  return {
10778
10779
  _bufferIndex: I,
10779
10780
  _index: D,
10780
10781
  line: F,
10781
10782
  column: N,
10782
- offset: C
10783
+ offset: x
10783
10784
  };
10784
10785
  }
10785
10786
  function f(I) {
@@ -10809,7 +10810,7 @@ function fh(e, t, n) {
10809
10810
  const F = D || {};
10810
10811
  return F.type = I, F.start = c(), l.events.push(["enter", F, l]), u.push(F), F;
10811
10812
  }
10812
- function x(I) {
10813
+ function C(I) {
10813
10814
  const D = u.pop();
10814
10815
  return D.end = c(), l.events.push(["exit", D, l]), D;
10815
10816
  }
@@ -10821,7 +10822,7 @@ function fh(e, t, n) {
10821
10822
  }
10822
10823
  function v(I, D) {
10823
10824
  return F;
10824
- function F(N, C, P) {
10825
+ function F(N, x, P) {
10825
10826
  let H, $, q, k;
10826
10827
  return Array.isArray(N) ? (
10827
10828
  /* c8 ignore next 1 */
@@ -10863,7 +10864,7 @@ function fh(e, t, n) {
10863
10864
  }
10864
10865
  }
10865
10866
  function re(ae) {
10866
- return I(q, k), C;
10867
+ return I(q, k), x;
10867
10868
  }
10868
10869
  function pe(ae) {
10869
10870
  return k.restore(), ++$ < H.length ? R(H[$]) : P;
@@ -10874,13 +10875,13 @@ function fh(e, t, n) {
10874
10875
  I.resolveAll && !i.includes(I) && i.push(I), I.resolve && ut(l.events, D, l.events.length - D, I.resolve(l.events.slice(D), l)), I.resolveTo && (l.events = I.resolveTo(l.events, l));
10875
10876
  }
10876
10877
  function w() {
10877
- const I = c(), D = l.previous, F = l.currentConstruct, N = l.events.length, C = Array.from(u);
10878
+ const I = c(), D = l.previous, F = l.currentConstruct, N = l.events.length, x = Array.from(u);
10878
10879
  return {
10879
10880
  from: N,
10880
10881
  restore: P
10881
10882
  };
10882
10883
  function P() {
10883
- r = I, l.previous = D, l.currentConstruct = F, l.events.length = N, u = C, O();
10884
+ r = I, l.previous = D, l.currentConstruct = F, l.events.length = N, u = x, O();
10884
10885
  }
10885
10886
  }
10886
10887
  function O() {
@@ -11086,11 +11087,11 @@ function Ch(e) {
11086
11087
  codeFencedFenceMeta: c,
11087
11088
  codeFlowValue: O,
11088
11089
  codeIndented: o(g),
11089
- codeText: o(C),
11090
+ codeText: o(x),
11090
11091
  codeTextData: O,
11091
11092
  data: O,
11092
11093
  definition: o(),
11093
- definitionDestinationString: x,
11094
+ definitionDestinationString: C,
11094
11095
  definitionLabelString: y,
11095
11096
  definitionTitleString: T,
11096
11097
  emphasis: o(),
@@ -11296,7 +11297,7 @@ function Ch(e) {
11296
11297
  const V = this.resume(), K = this.stack[this.stack.length - 1];
11297
11298
  K.title = V;
11298
11299
  }
11299
- function x() {
11300
+ function C() {
11300
11301
  const V = this.resume(), K = this.stack[this.stack.length - 1];
11301
11302
  K.url = V;
11302
11303
  }
@@ -11350,7 +11351,7 @@ function Ch(e) {
11350
11351
  const V = this.resume(), K = this.stack[this.stack.length - 1];
11351
11352
  K.value = V;
11352
11353
  }
11353
- function C() {
11354
+ function x() {
11354
11355
  const V = this.resume(), K = this.stack[this.stack.length - 1];
11355
11356
  K.value = V;
11356
11357
  }
@@ -20642,37 +20643,37 @@ function ai(e, t) {
20642
20643
  continue;
20643
20644
  }
20644
20645
  const y = i + 1;
20645
- let T = y, x = y, A;
20646
+ let T = y, C = y, A;
20646
20647
  if (g === 35) {
20647
- x = ++T;
20648
- const F = e.charCodeAt(x);
20649
- F === 88 || F === 120 ? (A = "hexadecimal", x = ++T) : A = "decimal";
20648
+ C = ++T;
20649
+ const F = e.charCodeAt(C);
20650
+ F === 88 || F === 120 ? (A = "hexadecimal", C = ++T) : A = "decimal";
20650
20651
  } else
20651
20652
  A = "named";
20652
20653
  let S = "", v = "", _ = "";
20653
20654
  const w = A === "named" ? Ps : A === "decimal" ? Fu : hE;
20654
- for (x--; ++x <= e.length; ) {
20655
- const F = e.charCodeAt(x);
20655
+ for (C--; ++C <= e.length; ) {
20656
+ const F = e.charCodeAt(C);
20656
20657
  if (!w(F))
20657
20658
  break;
20658
20659
  _ += String.fromCharCode(F), A === "named" && pE.includes(_) && (S = _, v = kn(_));
20659
20660
  }
20660
- let O = e.charCodeAt(x) === 59;
20661
+ let O = e.charCodeAt(C) === 59;
20661
20662
  if (O) {
20662
- x++;
20663
+ C++;
20663
20664
  const F = A === "named" ? kn(_) : !1;
20664
20665
  F && (S = _, v = F);
20665
20666
  }
20666
- let I = 1 + x - y, D = "";
20667
+ let I = 1 + C - y, D = "";
20667
20668
  if (!(!O && n.nonTerminated === !1)) if (!_)
20668
20669
  A !== "named" && f(4, I);
20669
20670
  else if (A === "named") {
20670
20671
  if (O && !v)
20671
20672
  f(5, 1);
20672
- else if (S !== _ && (x = T + S.length, I = 1 + x - T, O = !1), !O) {
20673
+ else if (S !== _ && (C = T + S.length, I = 1 + C - T, O = !1), !O) {
20673
20674
  const F = S ? 1 : 3;
20674
20675
  if (n.attribute) {
20675
- const N = e.charCodeAt(x);
20676
+ const N = e.charCodeAt(C);
20676
20677
  N === 61 ? (f(F, I), v = "") : Ps(N) ? v = "" : f(F, I);
20677
20678
  } else
20678
20679
  f(F, I);
@@ -20696,16 +20697,16 @@ function ai(e, t) {
20696
20697
  }
20697
20698
  }
20698
20699
  if (D) {
20699
- b(), E = c(), i = x - 1, p += x - y + 1, a.push(D);
20700
+ b(), E = c(), i = C - 1, p += C - y + 1, a.push(D);
20700
20701
  const F = c();
20701
20702
  F.offset++, n.reference && n.reference.call(
20702
20703
  n.referenceContext || void 0,
20703
20704
  D,
20704
20705
  { start: E, end: F },
20705
- e.slice(y - 1, x)
20706
+ e.slice(y - 1, C)
20706
20707
  ), E = F;
20707
20708
  } else
20708
- _ = e.slice(y - 1, x), u += _, p += _.length, i = x - 1;
20709
+ _ = e.slice(y - 1, C), u += _, p += _.length, i = C - 1;
20709
20710
  } else
20710
20711
  h === 10 && (m++, s++, p = 0), Number.isNaN(h) ? b() : (u += String.fromCharCode(h), p++);
20711
20712
  return a.join("");
@@ -20989,66 +20990,66 @@ function HE(e) {
20989
20990
  function si(e, t, n, r, a, i, s, u, o, l, m, p, E, h, c) {
20990
20991
  let f, b;
20991
20992
  return g;
20992
- function g(C) {
20993
- return e.enter(r), e.enter(a), e.consume(C), e.exit(a), y;
20993
+ function g(x) {
20994
+ return e.enter(r), e.enter(a), e.consume(x), e.exit(a), y;
20994
20995
  }
20995
- function y(C) {
20996
- return C === 35 ? (f = s, T(C)) : C === 46 ? (f = u, T(C)) : c && me(C) ? ge(e, y, "whitespace")(C) : !c && Ne(C) ? mt(e, y)(C) : C === null || Z(C) || vn(C) || Nn(C) && C !== 45 && C !== 95 ? N(C) : (e.enter(i), e.enter(o), e.consume(C), S);
20996
+ function y(x) {
20997
+ return x === 35 ? (f = s, T(x)) : x === 46 ? (f = u, T(x)) : c && me(x) ? ge(e, y, "whitespace")(x) : !c && Ne(x) ? mt(e, y)(x) : x === null || Z(x) || vn(x) || Nn(x) && x !== 45 && x !== 95 ? N(x) : (e.enter(i), e.enter(o), e.consume(x), S);
20997
20998
  }
20998
- function T(C) {
20999
+ function T(x) {
20999
21000
  const P = (
21000
21001
  /** @type {TokenType} */
21001
21002
  f + "Marker"
21002
21003
  );
21003
- return e.enter(i), e.enter(f), e.enter(P), e.consume(C), e.exit(P), x;
21004
+ return e.enter(i), e.enter(f), e.enter(P), e.consume(x), e.exit(P), C;
21004
21005
  }
21005
- function x(C) {
21006
- if (C === null || C === 34 || C === 35 || C === 39 || C === 46 || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || Ne(C))
21007
- return n(C);
21006
+ function C(x) {
21007
+ if (x === null || x === 34 || x === 35 || x === 39 || x === 46 || x === 60 || x === 61 || x === 62 || x === 96 || x === 125 || Ne(x))
21008
+ return n(x);
21008
21009
  const P = (
21009
21010
  /** @type {TokenType} */
21010
21011
  f + "Value"
21011
21012
  );
21012
- return e.enter(P), e.consume(C), A;
21013
+ return e.enter(P), e.consume(x), A;
21013
21014
  }
21014
- function A(C) {
21015
- if (C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96)
21016
- return n(C);
21017
- if (C === 35 || C === 46 || C === 125 || Ne(C)) {
21015
+ function A(x) {
21016
+ if (x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 62 || x === 96)
21017
+ return n(x);
21018
+ if (x === 35 || x === 46 || x === 125 || Ne(x)) {
21018
21019
  const P = (
21019
21020
  /** @type {TokenType} */
21020
21021
  f + "Value"
21021
21022
  );
21022
- return e.exit(P), e.exit(f), e.exit(i), y(C);
21023
+ return e.exit(P), e.exit(f), e.exit(i), y(x);
21023
21024
  }
21024
- return e.consume(C), A;
21025
+ return e.consume(x), A;
21025
21026
  }
21026
- function S(C) {
21027
- return C === null || Z(C) || vn(C) || Nn(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(o), c && me(C) ? ge(e, v, "whitespace")(C) : !c && Ne(C) ? mt(e, v)(C) : v(C)) : (e.consume(C), S);
21027
+ function S(x) {
21028
+ return x === null || Z(x) || vn(x) || Nn(x) && x !== 45 && x !== 46 && x !== 58 && x !== 95 ? (e.exit(o), c && me(x) ? ge(e, v, "whitespace")(x) : !c && Ne(x) ? mt(e, v)(x) : v(x)) : (e.consume(x), S);
21028
21029
  }
21029
- function v(C) {
21030
- return C === 61 ? (e.enter(l), e.consume(C), e.exit(l), _) : (e.exit(i), y(C));
21030
+ function v(x) {
21031
+ return x === 61 ? (e.enter(l), e.consume(x), e.exit(l), _) : (e.exit(i), y(x));
21031
21032
  }
21032
- function _(C) {
21033
- return C === null || C === 60 || C === 61 || C === 62 || C === 96 || C === 125 || c && Z(C) ? n(C) : C === 34 || C === 39 ? (e.enter(m), e.enter(E), e.consume(C), e.exit(E), b = C, O) : c && me(C) ? ge(e, _, "whitespace")(C) : !c && Ne(C) ? mt(e, _)(C) : (e.enter(p), e.enter(h), e.consume(C), b = void 0, w);
21033
+ function _(x) {
21034
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 || x === 125 || c && Z(x) ? n(x) : x === 34 || x === 39 ? (e.enter(m), e.enter(E), e.consume(x), e.exit(E), b = x, O) : c && me(x) ? ge(e, _, "whitespace")(x) : !c && Ne(x) ? mt(e, _)(x) : (e.enter(p), e.enter(h), e.consume(x), b = void 0, w);
21034
21035
  }
21035
- function w(C) {
21036
- return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 125 || Ne(C) ? (e.exit(h), e.exit(p), e.exit(i), y(C)) : (e.consume(C), w);
21036
+ function w(x) {
21037
+ return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 125 || Ne(x) ? (e.exit(h), e.exit(p), e.exit(i), y(x)) : (e.consume(x), w);
21037
21038
  }
21038
- function O(C) {
21039
- return C === b ? (e.enter(E), e.consume(C), e.exit(E), e.exit(m), e.exit(i), F) : (e.enter(p), I(C));
21039
+ function O(x) {
21040
+ return x === b ? (e.enter(E), e.consume(x), e.exit(E), e.exit(m), e.exit(i), F) : (e.enter(p), I(x));
21040
21041
  }
21041
- function I(C) {
21042
- return C === b ? (e.exit(p), O(C)) : C === null ? n(C) : Z(C) ? c ? n(C) : mt(e, I)(C) : (e.enter(h), e.consume(C), D);
21042
+ function I(x) {
21043
+ return x === b ? (e.exit(p), O(x)) : x === null ? n(x) : Z(x) ? c ? n(x) : mt(e, I)(x) : (e.enter(h), e.consume(x), D);
21043
21044
  }
21044
- function D(C) {
21045
- return C === b || C === null || Z(C) ? (e.exit(h), I(C)) : (e.consume(C), D);
21045
+ function D(x) {
21046
+ return x === b || x === null || Z(x) ? (e.exit(h), I(x)) : (e.consume(x), D);
21046
21047
  }
21047
- function F(C) {
21048
- return C === 125 || Ne(C) ? y(C) : N(C);
21048
+ function F(x) {
21049
+ return x === 125 || Ne(x) ? y(x) : N(x);
21049
21050
  }
21050
- function N(C) {
21051
- return C === 125 ? (e.enter(a), e.consume(C), e.exit(a), e.exit(r), t) : n(C);
21051
+ function N(x) {
21052
+ return x === 125 ? (e.enter(a), e.consume(x), e.exit(a), e.exit(r), t) : n(x);
21052
21053
  }
21053
21054
  }
21054
21055
  function oi(e, t, n, r, a, i, s) {
@@ -21142,7 +21143,7 @@ function zE(e, t, n) {
21142
21143
  const O = e.exit("chunkDocument");
21143
21144
  return r.parser.lazy[O.start.line] = !1, S(w);
21144
21145
  }
21145
- return Z(w) ? e.check(jn, x, A)(w) : (e.consume(w), g);
21146
+ return Z(w) ? e.check(jn, C, A)(w) : (e.consume(w), g);
21146
21147
  }
21147
21148
  function y(w) {
21148
21149
  const O = e.enter("chunkDocument", {
@@ -21154,7 +21155,7 @@ function zE(e, t, n) {
21154
21155
  function T(w) {
21155
21156
  return e.enter("directiveContainerContent"), f(w);
21156
21157
  }
21157
- function x(w) {
21158
+ function C(w) {
21158
21159
  e.consume(w);
21159
21160
  const O = e.exit("chunkDocument");
21160
21161
  return r.parser.lazy[O.start.line] = !1, f;
@@ -21176,9 +21177,9 @@ function zE(e, t, n) {
21176
21177
  return w.enter("directiveContainerFence"), w.enter("directiveContainerSequence"), N(P);
21177
21178
  }
21178
21179
  function N(P) {
21179
- return P === 58 ? (w.consume(P), D++, N) : D < s ? I(P) : (w.exit("directiveContainerSequence"), ge(w, C, "whitespace")(P));
21180
+ return P === 58 ? (w.consume(P), D++, N) : D < s ? I(P) : (w.exit("directiveContainerSequence"), ge(w, x, "whitespace")(P));
21180
21181
  }
21181
- function C(P) {
21182
+ function x(P) {
21182
21183
  return P === null || Z(P) ? (w.exit("directiveContainerFence"), O(P)) : I(P);
21183
21184
  }
21184
21185
  }
@@ -21349,17 +21350,17 @@ const ha = {
21349
21350
  ne(() => () => {
21350
21351
  E();
21351
21352
  }, [E]);
21352
- const [f, b] = te(0), g = J(null), [y, T] = te(!1), x = J(/* @__PURE__ */ new Map()), [A, S] = te(357), [v, _] = te("bottom");
21353
+ const [f, b] = te(0), g = J(null), [y, T] = te(!1), C = J(/* @__PURE__ */ new Map()), [A, S] = te(357), [v, _] = te("bottom");
21353
21354
  return ne(() => {
21354
21355
  b(0), T(!1), _("bottom");
21355
21356
  }, [r?.key, r?.type]), ne(() => {
21356
- const O = x.current, I = /* @__PURE__ */ new Set(), D = (F) => {
21357
+ const O = C.current, I = /* @__PURE__ */ new Set(), D = (F) => {
21357
21358
  if (!F || I.has(F) || O.has(F)) return;
21358
21359
  I.add(F);
21359
21360
  const N = new window.Image();
21360
21361
  N.decoding = "async", N.onload = () => {
21361
- const C = N.naturalWidth || N.width || 0, P = N.naturalHeight || N.height || 0;
21362
- C > 0 && P > 0 && O.set(F, `${C} / ${P}`);
21362
+ const x = N.naturalWidth || N.width || 0, P = N.naturalHeight || N.height || 0;
21363
+ x > 0 && P > 0 && O.set(F, `${x} / ${P}`);
21363
21364
  }, N.src = F;
21364
21365
  };
21365
21366
  e.forEach((F) => {
@@ -21389,7 +21390,7 @@ const ha = {
21389
21390
  ".rte-steps-tooltip-step-badge"
21390
21391
  );
21391
21392
  if (!I || !D || !F) return;
21392
- const N = window.getComputedStyle(I), C = Number.parseFloat(N.paddingLeft) || 0, P = Number.parseFloat(N.paddingRight) || 0, H = Math.ceil(D.getBoundingClientRect().width || 0), $ = Math.ceil(F.getBoundingClientRect().width || 0), k = H + 16 + $ + Math.ceil(C + P), W = 357, Q = Math.max(240, Math.floor(window.innerWidth - 32));
21393
+ const N = window.getComputedStyle(I), x = Number.parseFloat(N.paddingLeft) || 0, P = Number.parseFloat(N.paddingRight) || 0, H = Math.ceil(D.getBoundingClientRect().width || 0), $ = Math.ceil(F.getBoundingClientRect().width || 0), k = H + 16 + $ + Math.ceil(x + P), W = 357, Q = Math.max(240, Math.floor(window.innerWidth - 32));
21393
21394
  S(Math.min(Math.max(k, W), Q));
21394
21395
  const R = r?.anchorEl;
21395
21396
  if (R) {
@@ -21431,7 +21432,7 @@ const ha = {
21431
21432
  const $ = H.data, q = Math.max(0, $.images?.length || 0);
21432
21433
  if (q <= 0)
21433
21434
  return { node: $.title, steps: !1 };
21434
- const k = Math.min(Math.max(f, 0), q - 1), W = Array.isArray($.stepDescriptions) && $.stepDescriptions[k] || "", Q = ($.disclaimer || "").trim(), R = Array.isArray($.images) ? $.images[k] : void 0, re = typeof R == "string" ? x.current.get(R) : void 0;
21435
+ const k = Math.min(Math.max(f, 0), q - 1), W = Array.isArray($.stepDescriptions) && $.stepDescriptions[k] || "", Q = ($.disclaimer || "").trim(), R = Array.isArray($.images) ? $.images[k] : void 0, re = typeof R == "string" ? C.current.get(R) : void 0;
21435
21436
  return { node: /* @__PURE__ */ de(
21436
21437
  "div",
21437
21438
  {
@@ -21595,7 +21596,7 @@ const ha = {
21595
21596
  boxShadow: "0 4px 20px 0 rgba(129, 124, 143, 0.2)",
21596
21597
  border: "0.5px solid #E5E5E5"
21597
21598
  });
21598
- const N = "#0A0A0A", C = v;
21599
+ const N = "#0A0A0A", x = v;
21599
21600
  return hr(
21600
21601
  /* @__PURE__ */ G(
21601
21602
  il,
@@ -21606,8 +21607,8 @@ const ha = {
21606
21607
  autoAdjustOverflow: !D,
21607
21608
  align: D ? {
21608
21609
  // 自适应:下方空间不足时翻到上方
21609
- points: C === "top" ? ["bc", "tc"] : ["tc", "bc"],
21610
- offset: C === "top" ? [0, -4] : [0, 4]
21610
+ points: x === "top" ? ["bc", "tc"] : ["tc", "bc"],
21611
+ offset: x === "top" ? [0, -4] : [0, 4]
21611
21612
  } : void 0,
21612
21613
  title: r.type === "upload-preview" ? /* @__PURE__ */ G(
21613
21614
  "div",
@@ -21636,7 +21637,7 @@ const ha = {
21636
21637
  }
21637
21638
  ),
21638
21639
  open: i,
21639
- placement: D ? C === "top" ? "top" : "bottom" : r.type === "upload-preview" ? "topLeft" : "top",
21640
+ placement: D ? x === "top" ? "top" : "bottom" : r.type === "upload-preview" ? "topLeft" : "top",
21640
21641
  getPopupContainer: () => document.body,
21641
21642
  overlayInnerStyle: I,
21642
21643
  overlayClassName: "rte-tooltip-overlay",
@@ -21688,7 +21689,7 @@ const ha = {
21688
21689
  }, hb = (e, t, n) => {
21689
21690
  const r = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "";
21690
21691
  if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
21691
- const T = ot(e.tooltip), x = T ? ` data-tooltip="${fe(T)}"` : "", A = e.minCount || 1, S = e.maxCount || 3;
21692
+ const T = ot(e.tooltip), C = T ? ` data-tooltip="${fe(T)}"` : "", A = e.minCount || 1, S = e.maxCount || 3;
21692
21693
  let v = 0;
21693
21694
  for (let I = 0; I < S; I++) {
21694
21695
  const D = `${e.key}-${I}`;
@@ -21697,10 +21698,10 @@ const ha = {
21697
21698
  const _ = Math.min(S, Math.max(A, v + (v < S ? 1 : 0)));
21698
21699
  let w = "";
21699
21700
  for (let I = 0; I < _; I++) {
21700
- const D = `${e.key}-${I}`, F = t[D] !== null && t[D] !== void 0, N = F ? t[D] : null, C = F ? t[D]?.name : e.text, P = F ? "" : "hidden", H = T && !F ? "" : "hidden", $ = F ? "has-file" : "", q = F && C ? ` data-file-name="${C.replace(/"/g, "&quot;")}"` : "";
21701
+ const D = `${e.key}-${I}`, F = t[D] !== null && t[D] !== void 0, N = F ? t[D] : null, x = F ? t[D]?.name : e.text, P = F ? "" : "hidden", H = T && !F ? "" : "hidden", $ = F ? "has-file" : "", q = F && x ? ` data-file-name="${x.replace(/"/g, "&quot;")}"` : "";
21701
21702
  let k = "";
21702
21703
  F && N ? ga(N) ? k = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(N)}" alt="preview" />` : k = "<i class='iconfont icon-exlwenjian'></i>" : k = "<i class='iconfont icon-shangchuan1'></i>";
21703
- const W = ` data-batch-key="${e.key}"`, Q = ` data-batch-index="${I}"`, R = `<span contenteditable="false" data-type="upload" data-key="${D}"${W}${Q}${x} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${$}"><span class="upload-icon">${k}</span><span class="upload-label"${q}>${C || e.text}</span>${T ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${H}" data-upload-key="${D}" data-tooltip="${fe(T)}" ></i>` : ""}<span class="file-remove-btn ${P}" title="移除文件">×</span></span></span>`;
21704
+ const W = ` data-batch-key="${e.key}"`, Q = ` data-batch-index="${I}"`, R = `<span contenteditable="false" data-type="upload" data-key="${D}"${W}${Q}${C} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${$}"><span class="upload-icon">${k}</span><span class="upload-label"${q}>${x || e.text}</span>${T ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${H}" data-upload-key="${D}" data-tooltip="${fe(T)}" ></i>` : ""}<span class="file-remove-btn ${P}" title="移除文件">×</span></span></span>`;
21704
21705
  w += R;
21705
21706
  }
21706
21707
  return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Fs}<span class="rte-upload-batch-chips">${w}${n}</span></span>` : `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${w}${n}</span>`;
@@ -21752,7 +21753,7 @@ const ha = {
21752
21753
  const o = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", l = ot(e.tooltip);
21753
21754
  let m = "";
21754
21755
  for (let p = 0; p < i; p++) {
21755
- const E = `${e.key}_${p}`, h = t[E] || "", c = !h, f = c ? "​" : fe(h).replace(/\n/g, "<br/>"), b = c ? "show-placeholder" : "", g = l && c ? "rte-variable-with-icon" : "", y = l ? ` data-tooltip="${fe(l)}" data-variable-key="${e.key || ""}"` : "", T = l && c ? "" : "hidden", x = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", A = `<span contenteditable="true" data-type="variable" data-key="${E}" data-multi-key="${e.key}" data-index="${p}" data-placeholder="${e.placeholder || ""}"${x}${y} class="variable-chip ${b}${g ? ` ${g}` : ""}">${f}${l ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${T}" data-variable-key="${e.key}" data-tooltip="${fe(l)}" ></i>` : ""}</span>`;
21756
+ const E = `${e.key}_${p}`, h = t[E] || "", c = !h, f = c ? "​" : fe(h).replace(/\n/g, "<br/>"), b = c ? "show-placeholder" : "", g = l && c ? "rte-variable-with-icon" : "", y = l ? ` data-tooltip="${fe(l)}" data-variable-key="${e.key || ""}"` : "", T = l && c ? "" : "hidden", C = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", A = `<span contenteditable="true" data-type="variable" data-key="${E}" data-multi-key="${e.key}" data-index="${p}" data-placeholder="${e.placeholder || ""}"${C}${y} class="variable-chip ${b}${g ? ` ${g}` : ""}">${f}${l ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${T}" data-variable-key="${e.key}" data-tooltip="${fe(l)}" ></i>` : ""}</span>`;
21756
21757
  p === 0 ? m += `<span ${o} class="exclusion-wrapper required-upload-group required-multi-first">${Ob}${A}</span>` : m += A;
21757
21758
  }
21758
21759
  return m;
@@ -21786,8 +21787,8 @@ function Pb(e, t, n, r, a, i = {}, s, u) {
21786
21787
  const O = `<span ${c.exclusionGroup ? `data-group="${c.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, I = "</span>";
21787
21788
  let D = "";
21788
21789
  c.className ? D = `<span class="${c.className}">${c.text ?? ""}</span>` : D = c.text ?? "";
21789
- const F = f, { uploadHtml: N, hintHtml: C } = pb(F, n);
21790
- E.push(O + D + N + I + C), h += 2;
21790
+ const F = f, { uploadHtml: N, hintHtml: x } = pb(F, n);
21791
+ E.push(O + D + N + I + x), h += 2;
21791
21792
  continue;
21792
21793
  }
21793
21794
  if (_) {
@@ -21799,7 +21800,7 @@ function Pb(e, t, n, r, a, i = {}, s, u) {
21799
21800
  continue;
21800
21801
  }
21801
21802
  }
21802
- const y = c.exclusionGroup ? `data-group="${c.exclusionGroup}"` : "", T = c.exclusionGroup ? `<span ${y} class="exclusion-wrapper">` : "", x = c.exclusionGroup ? "</span>" : "";
21803
+ const y = c.exclusionGroup ? `data-group="${c.exclusionGroup}"` : "", T = c.exclusionGroup ? `<span ${y} class="exclusion-wrapper">` : "", C = c.exclusionGroup ? "</span>" : "";
21803
21804
  let A = "";
21804
21805
  if (c.type === "tag")
21805
21806
  A = lb(c, { lockStructure: r, hideButtons: s });
@@ -21817,7 +21818,7 @@ function Pb(e, t, n, r, a, i = {}, s, u) {
21817
21818
  const v = !!f && f.type === "text" && !f.className && !f.exclusionGroup && l(f.text), _ = v ? (f.text ?? "").trim() : "", w = _ ? p(_) : "";
21818
21819
  v && (b = !0), A = hb(c, n, w);
21819
21820
  } else c.type === "select" && c.key ? A = gb(c, a) : c.type === "textarea" && c.key ? A = bb(c, a) : c.type === "richtext" && c.key ? A = yb(c, a) : c.type === "report-module" && c.key ? A = kb(c, a) : c.type === "markdown-module" && c.key ? A = Nb(c, a) : c.type === "datepicker" && c.key ? A = wb(c, a) : c.type === "number-input" && c.key ? A = Lb(c, a) : c.type === "multi-variable" && c.key && (A = Db(c, a, i));
21820
- const S = T + A + x;
21821
+ const S = T + A + C;
21821
21822
  if (c.type === "text" && !c.className && !c.exclusionGroup) {
21822
21823
  if (l(c.text) && E.length > 0) {
21823
21824
  const _ = E[E.length - 1], w = (c.text ?? "").trim();
@@ -21854,8 +21855,8 @@ function Pb(e, t, n, r, a, i = {}, s, u) {
21854
21855
  }
21855
21856
  A.nodeType === Node.ELEMENT_NODE && A.tagName === "BR" && f.removeChild(A);
21856
21857
  });
21857
- const x = document.createTextNode("​");
21858
- T && T.parentNode === f ? f.insertBefore(x, T) : f.firstChild ? f.insertBefore(x, f.firstChild) : f.appendChild(x), f.classList.add("show-placeholder");
21858
+ const C = document.createTextNode("​");
21859
+ T && T.parentNode === f ? f.insertBefore(C, T) : f.firstChild ? f.insertBefore(C, f.firstChild) : f.appendChild(C), f.classList.add("show-placeholder");
21859
21860
  }
21860
21861
  });
21861
21862
  }, 0));
@@ -21930,7 +21931,7 @@ function Mb(e, t, n, r) {
21930
21931
  f.exclusionGroup === "separator" && c.push(b);
21931
21932
  });
21932
21933
  for (const f of c) {
21933
- const g = s.filter((x) => typeof x.__index == "number" && x.__index < f).sort((x, A) => (A.__index ?? 0) - (x.__index ?? 0))[0], T = s.filter((x) => typeof x.__index == "number" && x.__index > f).sort((x, A) => (x.__index ?? 0) - (A.__index ?? 0))[0];
21934
+ const g = s.filter((C) => typeof C.__index == "number" && C.__index < f).sort((C, A) => (A.__index ?? 0) - (C.__index ?? 0))[0], T = s.filter((C) => typeof C.__index == "number" && C.__index > f).sort((C, A) => (C.__index ?? 0) - (A.__index ?? 0))[0];
21934
21935
  g && T && o.push([g, T]);
21935
21936
  }
21936
21937
  }
@@ -22063,8 +22064,8 @@ function Mb(e, t, n, r) {
22063
22064
  );
22064
22065
  if (T.length === 0)
22065
22066
  continue;
22066
- for (let x = 0; x < T.length; x++) {
22067
- const S = T[x].dataset.key;
22067
+ for (let C = 0; C < T.length; C++) {
22068
+ const S = T[C].dataset.key;
22068
22069
  S && n[S] != null && (y += 1);
22069
22070
  }
22070
22071
  if (y >= g.minCount) {
@@ -22086,8 +22087,8 @@ function Mb(e, t, n, r) {
22086
22087
  continue;
22087
22088
  A.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (T += 1);
22088
22089
  }
22089
- const x = g.minCount && g.minCount > 0 ? g.minCount : 1;
22090
- if (T >= x) {
22090
+ const C = g.minCount && g.minCount > 0 ? g.minCount : 1;
22091
+ if (T >= C) {
22091
22092
  b = !0;
22092
22093
  break;
22093
22094
  }
@@ -22259,21 +22260,27 @@ function Rb(e, t, n, r, a = {}, i, s, u, o, l) {
22259
22260
  e.current && e.current.querySelectorAll('[data-type="variable"]').forEach((y) => {
22260
22261
  const T = y.dataset.key;
22261
22262
  if (!T) return;
22262
- let x = "";
22263
+ let C = "";
22263
22264
  if (y.dataset.variableRender === "antd-textarea") {
22264
22265
  const A = (y.getAttribute("data-value") || "").trim();
22265
22266
  try {
22266
- x = A ? decodeURIComponent(A).replace(/\r\n/g, `
22267
+ C = A ? decodeURIComponent(A).replace(/\r\n/g, `
22267
22268
  `).trim() : "";
22268
22269
  } catch {
22269
- x = A.trim();
22270
+ C = A.trim();
22270
22271
  }
22271
22272
  } else {
22272
22273
  const A = (y.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
22273
22274
  `);
22274
- x = A.replace(/\n/g, "").trim().length > 0 ? A : "";
22275
+ C = A.replace(/\n/g, "").trim().length > 0 ? A : "";
22276
+ }
22277
+ if (C)
22278
+ m.current.add(T);
22279
+ else if (m.current.has(T)) {
22280
+ c.add(T);
22281
+ const A = y.getAttribute("data-node-type");
22282
+ A === "report-url" ? c.add(`${T}__url`) : A === "markdown-name" && c.add(`${T}__name`);
22275
22283
  }
22276
- !x && m.current.has(T) && c.add(T);
22277
22284
  });
22278
22285
  const b = e.current.__tempVariableValues;
22279
22286
  if (b ? (h = b, setTimeout(() => {
@@ -22338,12 +22345,12 @@ function Rb(e, t, n, r, a = {}, i, s, u, o, l) {
22338
22345
  const g = new Set(
22339
22346
  t.filter((T) => T.type === "upload" && T.key).map((T) => T.key)
22340
22347
  ), y = {};
22341
- Object.entries(l).forEach(([T, x]) => {
22342
- g.has(T) || (Array.isArray(x) ? x.forEach((A, S) => {
22348
+ Object.entries(l).forEach(([T, C]) => {
22349
+ g.has(T) || (Array.isArray(C) ? C.forEach((A, S) => {
22343
22350
  A != null && String(A).trim() !== "" && (y[`${T}_${S}`] = String(A));
22344
- }) : x != null && String(x).trim() !== "" && (t.find((S) => S.key === T && S.type === "report-url") ? y[`${T}__url`] = String(x) : y[T] = String(x)));
22345
- }), Object.entries(y).forEach(([T, x]) => {
22346
- !(T in h) && !c.has(T) && (h[T] = x);
22351
+ }) : C != null && String(C).trim() !== "" && (t.find((S) => S.key === T && S.type === "report-url") ? y[`${T}__url`] = String(C) : y[T] = String(C)));
22352
+ }), Object.entries(y).forEach(([T, C]) => {
22353
+ !(T in h) && !c.has(T) && (h[T] = C);
22347
22354
  });
22348
22355
  }
22349
22356
  if (Pb(
@@ -22365,12 +22372,12 @@ function Rb(e, t, n, r, a = {}, i, s, u, o, l) {
22365
22372
  );
22366
22373
  if (T) {
22367
22374
  if (T.dataset.variableRender === "antd-textarea") {
22368
- const x = T.querySelector("textarea");
22369
- if (x) {
22370
- x.focus();
22375
+ const C = T.querySelector("textarea");
22376
+ if (C) {
22377
+ C.focus();
22371
22378
  try {
22372
- const A = x.value?.length ?? 0;
22373
- x.setSelectionRange(Math.min(y, A), Math.min(y, A));
22379
+ const A = C.value?.length ?? 0;
22380
+ C.setSelectionRange(Math.min(y, A), Math.min(y, A));
22374
22381
  } catch {
22375
22382
  }
22376
22383
  i.current = null;
@@ -22378,7 +22385,7 @@ function Rb(e, t, n, r, a = {}, i, s, u, o, l) {
22378
22385
  }
22379
22386
  }
22380
22387
  try {
22381
- const x = document.createRange(), A = document.createTreeWalker(
22388
+ const C = document.createRange(), A = document.createTreeWalker(
22382
22389
  T,
22383
22390
  NodeFilter.SHOW_TEXT,
22384
22391
  null
@@ -22393,19 +22400,19 @@ function Rb(e, t, n, r, a = {}, i, s, u, o, l) {
22393
22400
  S += O;
22394
22401
  }
22395
22402
  if (v) {
22396
- x.setStart(v, Math.min(_, v.textContent?.length || 0)), x.collapse(!0);
22403
+ C.setStart(v, Math.min(_, v.textContent?.length || 0)), C.collapse(!0);
22397
22404
  const w = window.getSelection();
22398
- w && (w.removeAllRanges(), w.addRange(x), T.focus());
22405
+ w && (w.removeAllRanges(), w.addRange(C), T.focus());
22399
22406
  } else {
22400
- x.selectNodeContents(T), x.collapse(!1);
22407
+ C.selectNodeContents(T), C.collapse(!1);
22401
22408
  const w = window.getSelection();
22402
- w && (w.removeAllRanges(), w.addRange(x), T.focus());
22409
+ w && (w.removeAllRanges(), w.addRange(C), T.focus());
22403
22410
  }
22404
22411
  } catch {
22405
- const x = document.createRange();
22406
- x.selectNodeContents(T), x.collapse(!1);
22412
+ const C = document.createRange();
22413
+ C.selectNodeContents(T), C.collapse(!1);
22407
22414
  const A = window.getSelection();
22408
- A && (A.removeAllRanges(), A.addRange(x), T.focus());
22415
+ A && (A.removeAllRanges(), A.addRange(C), T.focus());
22409
22416
  }
22410
22417
  i.current = null;
22411
22418
  }
@@ -22624,9 +22631,9 @@ function qb(e, t) {
22624
22631
  const T = window.getSelection();
22625
22632
  if (!T || T.rangeCount === 0 || t.current || a || m || Date.now() - p < 500)
22626
22633
  return;
22627
- const x = T.getRangeAt(0);
22628
- if (!x.collapsed)
22629
- return e.current.contains(x.commonAncestorContainer), void 0;
22634
+ const C = T.getRangeAt(0);
22635
+ if (!C.collapsed)
22636
+ return e.current.contains(C.commonAncestorContainer), void 0;
22630
22637
  const A = T.anchorNode;
22631
22638
  if (!A || !e.current.contains(A))
22632
22639
  return;
@@ -22673,17 +22680,17 @@ function $u() {
22673
22680
  e.exports = r();
22674
22681
  })(zb, function() {
22675
22682
  var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", u = "minute", o = "hour", l = "day", m = "week", p = "month", E = "quarter", h = "year", c = "date", f = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
22676
- var C = ["th", "st", "nd", "rd"], P = N % 100;
22677
- return "[" + N + (C[(P - 20) % 10] || C[P] || C[0]) + "]";
22678
- } }, T = function(N, C, P) {
22683
+ var x = ["th", "st", "nd", "rd"], P = N % 100;
22684
+ return "[" + N + (x[(P - 20) % 10] || x[P] || x[0]) + "]";
22685
+ } }, T = function(N, x, P) {
22679
22686
  var H = String(N);
22680
- return !H || H.length >= C ? N : "" + Array(C + 1 - H.length).join(P) + N;
22681
- }, x = { s: T, z: function(N) {
22682
- var C = -N.utcOffset(), P = Math.abs(C), H = Math.floor(P / 60), $ = P % 60;
22683
- return (C <= 0 ? "+" : "-") + T(H, 2, "0") + ":" + T($, 2, "0");
22684
- }, m: function N(C, P) {
22685
- if (C.date() < P.date()) return -N(P, C);
22686
- var H = 12 * (P.year() - C.year()) + (P.month() - C.month()), $ = C.clone().add(H, p), q = P - $ < 0, k = C.clone().add(H + (q ? -1 : 1), p);
22687
+ return !H || H.length >= x ? N : "" + Array(x + 1 - H.length).join(P) + N;
22688
+ }, C = { s: T, z: function(N) {
22689
+ var x = -N.utcOffset(), P = Math.abs(x), H = Math.floor(P / 60), $ = P % 60;
22690
+ return (x <= 0 ? "+" : "-") + T(H, 2, "0") + ":" + T($, 2, "0");
22691
+ }, m: function N(x, P) {
22692
+ if (x.date() < P.date()) return -N(P, x);
22693
+ var H = 12 * (P.year() - x.year()) + (P.month() - x.month()), $ = x.clone().add(H, p), q = P - $ < 0, k = x.clone().add(H + (q ? -1 : 1), p);
22687
22694
  return +(-(H + (P - $) / (q ? $ - k : k - $)) || 0);
22688
22695
  }, a: function(N) {
22689
22696
  return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
@@ -22695,33 +22702,33 @@ function $u() {
22695
22702
  S[A] = y;
22696
22703
  var v = "$isDayjsObject", _ = function(N) {
22697
22704
  return N instanceof D || !(!N || !N[v]);
22698
- }, w = function N(C, P, H) {
22705
+ }, w = function N(x, P, H) {
22699
22706
  var $;
22700
- if (!C) return A;
22701
- if (typeof C == "string") {
22702
- var q = C.toLowerCase();
22707
+ if (!x) return A;
22708
+ if (typeof x == "string") {
22709
+ var q = x.toLowerCase();
22703
22710
  S[q] && ($ = q), P && (S[q] = P, $ = q);
22704
- var k = C.split("-");
22711
+ var k = x.split("-");
22705
22712
  if (!$ && k.length > 1) return N(k[0]);
22706
22713
  } else {
22707
- var W = C.name;
22708
- S[W] = C, $ = W;
22714
+ var W = x.name;
22715
+ S[W] = x, $ = W;
22709
22716
  }
22710
22717
  return !H && $ && (A = $), $ || !H && A;
22711
- }, O = function(N, C) {
22718
+ }, O = function(N, x) {
22712
22719
  if (_(N)) return N.clone();
22713
- var P = typeof C == "object" ? C : {};
22720
+ var P = typeof x == "object" ? x : {};
22714
22721
  return P.date = N, P.args = arguments, new D(P);
22715
- }, I = x;
22716
- I.l = w, I.i = _, I.w = function(N, C) {
22717
- return O(N, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
22722
+ }, I = C;
22723
+ I.l = w, I.i = _, I.w = function(N, x) {
22724
+ return O(N, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset });
22718
22725
  };
22719
22726
  var D = function() {
22720
22727
  function N(P) {
22721
22728
  this.$L = w(P.locale, null, !0), this.parse(P), this.$x = this.$x || P.x || {}, this[v] = !0;
22722
22729
  }
22723
- var C = N.prototype;
22724
- return C.parse = function(P) {
22730
+ var x = N.prototype;
22731
+ return x.parse = function(P) {
22725
22732
  this.$d = function(H) {
22726
22733
  var $ = H.date, q = H.utc;
22727
22734
  if ($ === null) return /* @__PURE__ */ new Date(NaN);
@@ -22736,27 +22743,27 @@ function $u() {
22736
22743
  }
22737
22744
  return new Date($);
22738
22745
  }(P), this.init();
22739
- }, C.init = function() {
22746
+ }, x.init = function() {
22740
22747
  var P = this.$d;
22741
22748
  this.$y = P.getFullYear(), this.$M = P.getMonth(), this.$D = P.getDate(), this.$W = P.getDay(), this.$H = P.getHours(), this.$m = P.getMinutes(), this.$s = P.getSeconds(), this.$ms = P.getMilliseconds();
22742
- }, C.$utils = function() {
22749
+ }, x.$utils = function() {
22743
22750
  return I;
22744
- }, C.isValid = function() {
22751
+ }, x.isValid = function() {
22745
22752
  return this.$d.toString() !== f;
22746
- }, C.isSame = function(P, H) {
22753
+ }, x.isSame = function(P, H) {
22747
22754
  var $ = O(P);
22748
22755
  return this.startOf(H) <= $ && $ <= this.endOf(H);
22749
- }, C.isAfter = function(P, H) {
22756
+ }, x.isAfter = function(P, H) {
22750
22757
  return O(P) < this.startOf(H);
22751
- }, C.isBefore = function(P, H) {
22758
+ }, x.isBefore = function(P, H) {
22752
22759
  return this.endOf(H) < O(P);
22753
- }, C.$g = function(P, H, $) {
22760
+ }, x.$g = function(P, H, $) {
22754
22761
  return I.u(P) ? this[H] : this.set($, P);
22755
- }, C.unix = function() {
22762
+ }, x.unix = function() {
22756
22763
  return Math.floor(this.valueOf() / 1e3);
22757
- }, C.valueOf = function() {
22764
+ }, x.valueOf = function() {
22758
22765
  return this.$d.getTime();
22759
- }, C.startOf = function(P, H) {
22766
+ }, x.startOf = function(P, H) {
22760
22767
  var $ = this, q = !!I.u(H) || H, k = I.p(P), W = function(xe, be) {
22761
22768
  var Be = I.w($.$u ? Date.UTC($.$y, be, xe) : new Date($.$y, be, xe), $);
22762
22769
  return q ? Be : Be.endOf(l);
@@ -22783,20 +22790,20 @@ function $u() {
22783
22790
  default:
22784
22791
  return this.clone();
22785
22792
  }
22786
- }, C.endOf = function(P) {
22793
+ }, x.endOf = function(P) {
22787
22794
  return this.startOf(P, !1);
22788
- }, C.$set = function(P, H) {
22795
+ }, x.$set = function(P, H) {
22789
22796
  var $, q = I.p(P), k = "set" + (this.$u ? "UTC" : ""), W = ($ = {}, $[l] = k + "Date", $[c] = k + "Date", $[p] = k + "Month", $[h] = k + "FullYear", $[o] = k + "Hours", $[u] = k + "Minutes", $[s] = k + "Seconds", $[i] = k + "Milliseconds", $)[q], Q = q === l ? this.$D + (H - this.$W) : H;
22790
22797
  if (q === p || q === h) {
22791
22798
  var R = this.clone().set(c, 1);
22792
22799
  R.$d[W](Q), R.init(), this.$d = R.set(c, Math.min(this.$D, R.daysInMonth())).$d;
22793
22800
  } else W && this.$d[W](Q);
22794
22801
  return this.init(), this;
22795
- }, C.set = function(P, H) {
22802
+ }, x.set = function(P, H) {
22796
22803
  return this.clone().$set(P, H);
22797
- }, C.get = function(P) {
22804
+ }, x.get = function(P) {
22798
22805
  return this[I.p(P)]();
22799
- }, C.add = function(P, H) {
22806
+ }, x.add = function(P, H) {
22800
22807
  var $, q = this;
22801
22808
  P = Number(P);
22802
22809
  var k = I.p(H), W = function(re) {
@@ -22809,9 +22816,9 @@ function $u() {
22809
22816
  if (k === m) return W(7);
22810
22817
  var Q = ($ = {}, $[u] = r, $[o] = a, $[s] = n, $)[k] || 1, R = this.$d.getTime() + P * Q;
22811
22818
  return I.w(R, this);
22812
- }, C.subtract = function(P, H) {
22819
+ }, x.subtract = function(P, H) {
22813
22820
  return this.add(-1 * P, H);
22814
- }, C.format = function(P) {
22821
+ }, x.format = function(P) {
22815
22822
  var H = this, $ = this.$locale();
22816
22823
  if (!this.isValid()) return $.invalidDate || f;
22817
22824
  var q = P || "YYYY-MM-DDTHH:mm:ssZ", k = I.z(this), W = this.$H, Q = this.$m, R = this.$M, re = $.weekdays, pe = $.months, ae = $.meridiem, ee = function(be, Be, ct, gt) {
@@ -22877,9 +22884,9 @@ function $u() {
22877
22884
  return null;
22878
22885
  }(be) || k.replace(":", "");
22879
22886
  });
22880
- }, C.utcOffset = function() {
22887
+ }, x.utcOffset = function() {
22881
22888
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
22882
- }, C.diff = function(P, H, $) {
22889
+ }, x.diff = function(P, H, $) {
22883
22890
  var q, k = this, W = I.p(H), Q = O(P), R = (Q.utcOffset() - this.utcOffset()) * r, re = this - Q, pe = function() {
22884
22891
  return I.m(k, Q);
22885
22892
  };
@@ -22912,32 +22919,32 @@ function $u() {
22912
22919
  q = re;
22913
22920
  }
22914
22921
  return $ ? q : I.a(q);
22915
- }, C.daysInMonth = function() {
22922
+ }, x.daysInMonth = function() {
22916
22923
  return this.endOf(p).$D;
22917
- }, C.$locale = function() {
22924
+ }, x.$locale = function() {
22918
22925
  return S[this.$L];
22919
- }, C.locale = function(P, H) {
22926
+ }, x.locale = function(P, H) {
22920
22927
  if (!P) return this.$L;
22921
22928
  var $ = this.clone(), q = w(P, H, !0);
22922
22929
  return q && ($.$L = q), $;
22923
- }, C.clone = function() {
22930
+ }, x.clone = function() {
22924
22931
  return I.w(this.$d, this);
22925
- }, C.toDate = function() {
22932
+ }, x.toDate = function() {
22926
22933
  return new Date(this.valueOf());
22927
- }, C.toJSON = function() {
22934
+ }, x.toJSON = function() {
22928
22935
  return this.isValid() ? this.toISOString() : null;
22929
- }, C.toISOString = function() {
22936
+ }, x.toISOString = function() {
22930
22937
  return this.$d.toISOString();
22931
- }, C.toString = function() {
22938
+ }, x.toString = function() {
22932
22939
  return this.$d.toUTCString();
22933
22940
  }, N;
22934
22941
  }(), F = D.prototype;
22935
22942
  return O.prototype = F, [["$ms", i], ["$s", s], ["$m", u], ["$H", o], ["$W", l], ["$M", p], ["$y", h], ["$D", c]].forEach(function(N) {
22936
- F[N[1]] = function(C) {
22937
- return this.$g(C, N[0], N[1]);
22943
+ F[N[1]] = function(x) {
22944
+ return this.$g(x, N[0], N[1]);
22938
22945
  };
22939
- }), O.extend = function(N, C) {
22940
- return N.$i || (N(C, D, O), N.$i = !0), O;
22946
+ }), O.extend = function(N, x) {
22947
+ return N.$i || (N(x, D, O), N.$i = !0), O;
22941
22948
  }, O.locale = w, O.isDayjs = _, O.unix = function(N) {
22942
22949
  return O(1e3 * N);
22943
22950
  }, O.en = S[A], O.Ls = S, O.p = {}, O;
@@ -23195,15 +23202,15 @@ const { RangePicker: Zb } = sl, ey = ({ host: e, onChange: t }) => {
23195
23202
  reportAnalyze: g,
23196
23203
  markdownAnalyze: y,
23197
23204
  markdownNameAnalyze: T,
23198
- onCollapsedChange: x,
23205
+ onCollapsedChange: C,
23199
23206
  collapseTransitionMs: A = 260,
23200
23207
  debugTooltipSticky: S = !1,
23201
23208
  nodeValues: v
23202
23209
  }) => {
23203
- const [_, w] = ol.useMessage(), O = J(null), I = J(null), D = J(null), F = J(null), N = J(null), C = J("");
23204
- if (!C.current) {
23210
+ const [_, w] = ol.useMessage(), O = J(null), I = J(null), D = J(null), F = J(null), N = J(null), x = J("");
23211
+ if (!x.current) {
23205
23212
  const Ee = Math.random().toString(36).slice(2, 8);
23206
- C.current = `rte_${Ee}`;
23213
+ x.current = `rte_${Ee}`;
23207
23214
  }
23208
23215
  const [P, H] = te({}), [$, q] = te(null), [k, W] = te(null), [Q, R] = te(null), { tooltipPortal: re, setPopoverVisible: pe } = ub({
23209
23216
  config: e,
@@ -23368,7 +23375,7 @@ const { RangePicker: Zb } = sl, ey = ({ host: e, onChange: t }) => {
23368
23375
  contentRef: I,
23369
23376
  contentBodyRef: D,
23370
23377
  editorRef: F,
23371
- debugIdRef: C,
23378
+ debugIdRef: x,
23372
23379
  setCollapsedContentMaxHeightPx: kr,
23373
23380
  setExpandedContentMaxHeightPx: vr,
23374
23381
  setIsCollapseAnimating: Ir,
@@ -23407,7 +23414,7 @@ const { RangePicker: Zb } = sl, ey = ({ host: e, onChange: t }) => {
23407
23414
  const Wu = Zl({
23408
23415
  disabled: r,
23409
23416
  collapsed: b,
23410
- onCollapsedChange: x,
23417
+ onCollapsedChange: C,
23411
23418
  config: e,
23412
23419
  lockStructure: i,
23413
23420
  editorRef: F,
@@ -23738,7 +23745,7 @@ const zs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
23738
23745
  }) => {
23739
23746
  const [E, h] = te(5), c = Math.ceil(r / n), f = Cn(() => a.length >= c, [a, c]), b = () => Array.from(
23740
23747
  { length: c },
23741
- (T, x) => x + 1
23748
+ (T, C) => C + 1
23742
23749
  ).filter((T) => !a.includes(T)).slice(0, E);
23743
23750
  return /* @__PURE__ */ de("div", { className: "pagination_footer", children: [
23744
23751
  /* @__PURE__ */ de("div", { className: "pagination_leftWrap", children: [
@@ -23783,9 +23790,9 @@ const zs = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
23783
23790
  showSizeChanger: !1,
23784
23791
  showQuickJumper: !1,
23785
23792
  showTotal: () => "",
23786
- itemRender: (y, T, x) => {
23793
+ itemRender: (y, T, C) => {
23787
23794
  const A = a.includes(y);
23788
- return T === "prev" || T === "next" || T === "jump-prev" || T === "jump-next" ? /* @__PURE__ */ G("div", { className: "pageBox", children: x }) : /* @__PURE__ */ de(
23795
+ return T === "prev" || T === "next" || T === "jump-prev" || T === "jump-next" ? /* @__PURE__ */ G("div", { className: "pageBox", children: C }) : /* @__PURE__ */ de(
23789
23796
  "div",
23790
23797
  {
23791
23798
  className: "pageBox",
@@ -23974,36 +23981,36 @@ const oy = ({
23974
23981
  onChange: i,
23975
23982
  ...s
23976
23983
  }) => {
23977
- const [u, o] = te(""), [l, m] = te(0), [p, E] = te(!1), [h, c] = te(!1), [f, b] = te(!1), g = J(void 0), y = J(void 0), T = J(e), x = J(l), A = J(h), S = J(u);
23984
+ const [u, o] = te(""), [l, m] = te(0), [p, E] = te(!1), [h, c] = te(!1), [f, b] = te(!1), g = J(void 0), y = J(void 0), T = J(e), C = J(l), A = J(h), S = J(u);
23978
23985
  ne(() => {
23979
- T.current = e, x.current = l, A.current = h, S.current = u;
23986
+ T.current = e, C.current = l, A.current = h, S.current = u;
23980
23987
  });
23981
- const v = ie((N, C) => {
23988
+ const v = ie((N, x) => {
23982
23989
  let P = 0;
23983
23990
  b(!0);
23984
23991
  const H = () => {
23985
- P < N.length ? (o(N.slice(0, P + 1)), P++, y.current = window.setTimeout(H, n)) : (b(!1), C?.());
23992
+ P < N.length ? (o(N.slice(0, P + 1)), P++, y.current = window.setTimeout(H, n)) : (b(!1), x?.());
23986
23993
  };
23987
23994
  H();
23988
23995
  }, [n]), _ = ie((N) => {
23989
- let C = S.current.length;
23996
+ let x = S.current.length;
23990
23997
  const P = () => {
23991
- C > 0 ? (o(S.current.slice(0, C - 1)), C--, y.current = window.setTimeout(P, n / 2)) : N?.();
23998
+ x > 0 ? (o(S.current.slice(0, x - 1)), x--, y.current = window.setTimeout(P, n / 2)) : N?.();
23992
23999
  };
23993
24000
  P();
23994
24001
  }, [n]), w = ie(() => {
23995
24002
  if (T.current.length === 0 || A.current) return;
23996
24003
  E(!0);
23997
- const N = T.current[x.current];
24004
+ const N = T.current[C.current];
23998
24005
  S.current ? _(() => {
23999
24006
  v(N, () => {
24000
24007
  g.current = window.setTimeout(() => {
24001
- m((C) => (C + 1) % T.current.length), E(!1);
24008
+ m((x) => (x + 1) % T.current.length), E(!1);
24002
24009
  }, 2e3);
24003
24010
  });
24004
24011
  }) : v(N, () => {
24005
24012
  g.current = window.setTimeout(() => {
24006
- m((C) => (C + 1) % T.current.length), E(!1);
24013
+ m((x) => (x + 1) % T.current.length), E(!1);
24007
24014
  }, 2e3);
24008
24015
  });
24009
24016
  }, [_, v]);
@@ -24155,9 +24162,9 @@ const uy = ({
24155
24162
  ...h
24156
24163
  // 其他原生属性
24157
24164
  }) => {
24158
- const [c, f] = te(""), [b, g] = te(0), [y, T] = te(!1), [x, A] = te(!1), [S, v] = te(!1), [_, w] = te(a || ""), O = J(void 0), I = J(void 0), D = J(e), F = J(b), N = J(x), C = J(c), P = J(null);
24165
+ const [c, f] = te(""), [b, g] = te(0), [y, T] = te(!1), [C, A] = te(!1), [S, v] = te(!1), [_, w] = te(a || ""), O = J(void 0), I = J(void 0), D = J(e), F = J(b), N = J(C), x = J(c), P = J(null);
24159
24166
  ne(() => {
24160
- D.current = e, F.current = b, N.current = x, C.current = c;
24167
+ D.current = e, F.current = b, N.current = C, x.current = c;
24161
24168
  });
24162
24169
  const H = ie((ee, he) => {
24163
24170
  let xe = 0;
@@ -24167,16 +24174,16 @@ const uy = ({
24167
24174
  };
24168
24175
  be();
24169
24176
  }, [n]), $ = ie((ee) => {
24170
- let he = C.current.length;
24177
+ let he = x.current.length;
24171
24178
  const xe = () => {
24172
- he > 0 ? (f(C.current.slice(0, he - 1)), he--, I.current = window.setTimeout(xe, n / 2)) : ee?.();
24179
+ he > 0 ? (f(x.current.slice(0, he - 1)), he--, I.current = window.setTimeout(xe, n / 2)) : ee?.();
24173
24180
  };
24174
24181
  xe();
24175
24182
  }, [n]), q = ie(() => {
24176
24183
  if (D.current.length === 0 || N.current) return;
24177
24184
  T(!0);
24178
24185
  const ee = D.current[F.current];
24179
- C.current ? $(() => {
24186
+ x.current ? $(() => {
24180
24187
  H(ee, () => {
24181
24188
  O.current = window.setTimeout(() => {
24182
24189
  g((he) => (he + 1) % D.current.length), T(!1);
@@ -24188,11 +24195,11 @@ const uy = ({
24188
24195
  }, 2e3);
24189
24196
  });
24190
24197
  }, [$, H]);
24191
- ne(() => (r && e.length > 0 && !x && q(), () => {
24198
+ ne(() => (r && e.length > 0 && !C && q(), () => {
24192
24199
  O.current && window.clearTimeout(O.current), I.current && window.clearTimeout(I.current);
24193
- }), [b, x, r, e.length, q]), ne(() => {
24194
- !y && r && e.length > 0 && !x && q();
24195
- }, [b, y, r, e.length, x, q]);
24200
+ }), [b, C, r, e.length, q]), ne(() => {
24201
+ !y && r && e.length > 0 && !C && q();
24202
+ }, [b, y, r, e.length, C, q]);
24196
24203
  const k = (ee) => {
24197
24204
  A(!0), O.current && window.clearTimeout(O.current), I.current && window.clearTimeout(I.current), T(!1), v(!1), h.onFocus?.(ee);
24198
24205
  }, W = (ee) => {
@@ -24221,7 +24228,7 @@ const uy = ({
24221
24228
  ee.target.style.borderColor = "#d9d9d9", ee.target.style.boxShadow = "none", W(ee);
24222
24229
  },
24223
24230
  onKeyDown: re,
24224
- placeholder: x || pe ? t : "",
24231
+ placeholder: C || pe ? t : "",
24225
24232
  maxLength: u,
24226
24233
  rows: p,
24227
24234
  disabled: m,
@@ -24245,7 +24252,7 @@ const uy = ({
24245
24252
  ...h
24246
24253
  }
24247
24254
  ),
24248
- !x && !pe && c && /* @__PURE__ */ de(
24255
+ !C && !pe && c && /* @__PURE__ */ de(
24249
24256
  "div",
24250
24257
  {
24251
24258
  style: {
@@ -24445,23 +24452,23 @@ const qu = ({
24445
24452
  style: c,
24446
24453
  ...f
24447
24454
  }) => {
24448
- const b = J(null), [g, y] = te(!1), [T, x] = te(!1), [A, S] = te(!1), v = ie(() => {
24455
+ const b = J(null), [g, y] = te(!1), [T, C] = te(!1), [A, S] = te(!1), v = ie(() => {
24449
24456
  b.current && (b.current.play(), y(!0), m?.());
24450
24457
  }, [m]), _ = ie(() => {
24451
24458
  b.current && (b.current.pause(), y(!1), p?.());
24452
24459
  }, [p]), w = ie((H) => {
24453
24460
  H.stopPropagation(), g ? _() : v();
24454
24461
  }, [g, v, _]), O = ie(() => {
24455
- x(!0), u && !g && v();
24462
+ C(!0), u && !g && v();
24456
24463
  }, [u, g, v]), I = ie(() => {
24457
- x(!1), u && g && _();
24464
+ C(!1), u && g && _();
24458
24465
  }, [u, g, _]), D = ie(() => {
24459
24466
  S(!0), l?.();
24460
24467
  }, [l]), F = ie(() => {
24461
24468
  y(!0), m?.();
24462
24469
  }, [m]), N = ie(() => {
24463
24470
  y(!1), p?.();
24464
- }, [p]), C = ie(() => {
24471
+ }, [p]), x = ie(() => {
24465
24472
  y(!1), E?.();
24466
24473
  }, [E]), P = ie((H) => {
24467
24474
  o?.(H);
@@ -24496,7 +24503,7 @@ const qu = ({
24496
24503
  onLoadedData: D,
24497
24504
  onPlay: F,
24498
24505
  onPause: N,
24499
- onEnded: C,
24506
+ onEnded: x,
24500
24507
  muted: !0,
24501
24508
  loop: !0
24502
24509
  }
@@ -24639,14 +24646,14 @@ const ly = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
24639
24646
  return b < 576 ? a.xs || 1 : b < 768 ? a.sm || 2 : b < 992 ? a.md || 3 : b < 1200 ? a.lg || 4 : b < 1600 ? a.xl || 5 : a.xxl || 6;
24640
24647
  }, [r, t, a]), h = ie(() => {
24641
24648
  if (!o.current) return;
24642
- const b = l, g = o.current, T = (g.offsetWidth - n * (b - 1)) / b, x = new Array(b).fill(0);
24649
+ const b = l, g = o.current, T = (g.offsetWidth - n * (b - 1)) / b, C = new Array(b).fill(0);
24643
24650
  e.forEach((S, v) => {
24644
24651
  const _ = S.id || v, w = p.current.get(_);
24645
24652
  if (!w) return;
24646
- const O = Math.min(...x), I = x.indexOf(O), D = I * (T + n), F = x[I];
24647
- w.style.position = "absolute", w.style.left = `${D}px`, w.style.top = `${F}px`, w.style.width = `${T}px`, x[I] += w.offsetHeight + n;
24653
+ const O = Math.min(...C), I = C.indexOf(O), D = I * (T + n), F = C[I];
24654
+ w.style.position = "absolute", w.style.left = `${D}px`, w.style.top = `${F}px`, w.style.width = `${T}px`, C[I] += w.offsetHeight + n;
24648
24655
  });
24649
- const A = Math.max(...x);
24656
+ const A = Math.max(...C);
24650
24657
  g.style.height = `${A}px`;
24651
24658
  }, [e, l, n]);
24652
24659
  ne(() => {
@@ -24682,8 +24689,8 @@ const ly = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
24682
24689
  return /* @__PURE__ */ G(
24683
24690
  "div",
24684
24691
  {
24685
- ref: (x) => {
24686
- x ? p.current.set(y, x) : p.current.delete(y);
24692
+ ref: (C) => {
24693
+ C ? p.current.set(y, C) : p.current.delete(y);
24687
24694
  },
24688
24695
  className: "waterfall-item",
24689
24696
  children: T === "video" ? /* @__PURE__ */ G("div", { style: {
@@ -24940,9 +24947,9 @@ const Xn = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
24940
24947
  r.forEach((g, y) => {
24941
24948
  const T = y + o;
24942
24949
  if (T >= a.length) return;
24943
- const x = a[T];
24944
- let A = x.split(/[\r\n]+/).map((_) => _.trim()).filter((_) => _ !== "");
24945
- A.length < m && (A = gy(x));
24950
+ const C = a[T];
24951
+ let A = C.split(/[\r\n]+/).map((_) => _.trim()).filter((_) => _ !== "");
24952
+ A.length < m && (A = gy(C));
24946
24953
  const S = (_) => A.length === m * 2 ? A[_ * 2] ?? "" : A[_] ?? "", v = {};
24947
24954
  v[fn("日期")] = g, l.forEach((_, w) => {
24948
24955
  const O = S(w), I = my(O), D = fn(_);
@@ -24952,12 +24959,12 @@ const Xn = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
24952
24959
  const E = u.filter((g) => {
24953
24960
  const y = fn(g);
24954
24961
  return p.some((T) => {
24955
- const x = T[y];
24956
- return x !== void 0 && String(x).trim() !== "";
24962
+ const C = T[y];
24963
+ return C !== void 0 && String(C).trim() !== "";
24957
24964
  });
24958
24965
  }), h = `| ${E.join(" | ")} |`, c = `| ${E.map(() => "---").join(" | ")} |`, f = p.map((g) => `| ${E.map((T) => {
24959
- const x = fn(T);
24960
- return g[x] ?? "-";
24966
+ const C = fn(T);
24967
+ return g[C] ?? "-";
24961
24968
  }).join(" | ")} |`);
24962
24969
  return {
24963
24970
  markdown: [h, c, ...f].join(`