bi-components-library 1.2.10 → 1.2.12

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
@@ -562,14 +562,14 @@ const { Option: bc } = Un, Tc = ({
562
562
  w.current = y;
563
563
  const _ = Z(u);
564
564
  _.current = u;
565
- const P = Z(!1), A = kt(() => e.map((k) => {
566
- const { sortable: C, render: B, ...$ } = k;
565
+ const D = Z(!1), A = kt(() => e.map((N) => {
566
+ const { sortable: C, render: B, ...$ } = N;
567
567
  return {
568
568
  ...$,
569
569
  sorter: C ? !0 : void 0,
570
570
  render: B || ((H) => H)
571
571
  };
572
- }), [e]), x = ue(async (k = {}) => {
572
+ }), [e]), x = ue(async (N = {}) => {
573
573
  if (t) {
574
574
  p(!0);
575
575
  try {
@@ -579,7 +579,7 @@ const { Option: bc } = Un, Tc = ({
579
579
  sortField: b.field,
580
580
  sortOrder: b.order,
581
581
  searchParams: { ...m, ..._.current },
582
- ...k
582
+ ...N
583
583
  }, B = await t(C);
584
584
  B.success && (f(B.data), h(($) => ({
585
585
  ...$,
@@ -592,17 +592,17 @@ const { Option: bc } = Un, Tc = ({
592
592
  p(!1);
593
593
  }
594
594
  }
595
- }, [t, b, m]), S = ue((k) => {
596
- E(k), h((C) => ({ ...C, current: 1 }));
597
- }, []), N = ue(() => {
598
- v.resetFields(), E({}), h((k) => ({ ...k, current: 1 }));
595
+ }, [t, b, m]), S = ue((N) => {
596
+ E(N), h((C) => ({ ...C, current: 1 }));
597
+ }, []), k = ue(() => {
598
+ v.resetFields(), E({}), h((N) => ({ ...N, current: 1 }));
599
599
  }, [v]), O = ue(() => {
600
600
  x();
601
- }, [x]), D = ue((k, C, B) => {
601
+ }, [x]), P = ue((N, C, B) => {
602
602
  const $ = {
603
- current: k.current || 1,
604
- pageSize: k.pageSize || i,
605
- total: k.total || 0
603
+ current: N.current || 1,
604
+ pageSize: N.pageSize || i,
605
+ total: N.total || 0
606
606
  }, H = {
607
607
  field: B?.field,
608
608
  order: B?.order
@@ -610,8 +610,8 @@ const { Option: bc } = Un, Tc = ({
610
610
  h($), T(H);
611
611
  }, [i]);
612
612
  return se(() => {
613
- const k = Object.keys(u).length > 0;
614
- (o && !P.current || k) && (x(), P.current = !0);
613
+ const N = Object.keys(u).length > 0;
614
+ (o && !D.current || N) && (x(), D.current = !0);
615
615
  }, [o, u, x]), /* @__PURE__ */ fe("div", { children: [
616
616
  r && n.length > 0 && /* @__PURE__ */ V(ei, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ fe(
617
617
  nr,
@@ -619,26 +619,26 @@ const { Option: bc } = Un, Tc = ({
619
619
  form: v,
620
620
  layout: "inline",
621
621
  onFinish: S,
622
- initialValues: n.reduce((k, C) => (C.defaultValue !== void 0 && (k[C.key] = C.defaultValue), k), {}),
622
+ initialValues: n.reduce((N, C) => (C.defaultValue !== void 0 && (N[C.key] = C.defaultValue), N), {}),
623
623
  children: [
624
- n.map((k) => /* @__PURE__ */ V(nr.Item, { name: k.key, label: k.label, children: k.type === "input" ? /* @__PURE__ */ V(
624
+ n.map((N) => /* @__PURE__ */ V(nr.Item, { name: N.key, label: N.label, children: N.type === "input" ? /* @__PURE__ */ V(
625
625
  ni,
626
626
  {
627
- placeholder: k.placeholder || `请输入${k.label}`,
627
+ placeholder: N.placeholder || `请输入${N.label}`,
628
628
  style: { width: 200 }
629
629
  }
630
630
  ) : /* @__PURE__ */ V(
631
631
  Un,
632
632
  {
633
- placeholder: k.placeholder || `请选择${k.label}`,
633
+ placeholder: N.placeholder || `请选择${N.label}`,
634
634
  style: { width: 200 },
635
635
  allowClear: !0,
636
- children: k.options?.map((C) => /* @__PURE__ */ V(bc, { value: C.value, children: C.label }, C.value))
636
+ children: N.options?.map((C) => /* @__PURE__ */ V(bc, { value: C.value, children: C.label }, C.value))
637
637
  }
638
- ) }, k.key)),
638
+ ) }, N.key)),
639
639
  /* @__PURE__ */ V(nr.Item, { children: /* @__PURE__ */ fe(Wl, { children: [
640
640
  /* @__PURE__ */ V(Ft, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ V(rc, {}), children: "查询" }),
641
- /* @__PURE__ */ V(Ft, { onClick: N, children: "重置" }),
641
+ /* @__PURE__ */ V(Ft, { onClick: k, children: "重置" }),
642
642
  a && /* @__PURE__ */ V(Ft, { icon: /* @__PURE__ */ V(ac, {}), onClick: O, children: "刷新" })
643
643
  ] }) })
644
644
  ]
@@ -655,10 +655,10 @@ const { Option: bc } = Un, Tc = ({
655
655
  ...y,
656
656
  showSizeChanger: !0,
657
657
  showQuickJumper: !0,
658
- showTotal: (k, C) => `第 ${C[0]}-${C[1]} 条/共 ${k} 条`,
658
+ showTotal: (N, C) => `第 ${C[0]}-${C[1]} 条/共 ${N} 条`,
659
659
  pageSizeOptions: s
660
660
  },
661
- onChange: D,
661
+ onChange: P,
662
662
  scroll: { x: "max-content", y: "50vh" }
663
663
  }
664
664
  )
@@ -753,7 +753,7 @@ const yc = ({ host: e, onChange: t }) => {
753
753
  }, [u, o, r]), h = _e.useCallback(() => {
754
754
  const m = g.current;
755
755
  if (!m) return;
756
- const E = m.querySelector(".ant-select-selection-item"), b = m.querySelector(".ant-select-selection-placeholder"), T = E || b, v = (T?.textContent || "").trim() || y(), w = m.querySelector(".ant-select-selector"), _ = T || w || m, P = window.getComputedStyle(_), A = T ? P.fontSize : "16px", x = P.fontFamily || "sans-serif", S = P.fontWeight || "400", O = `${P.fontStyle || "normal"} ${S} ${A} ${x}`, k = document.createElement("canvas").getContext("2d"), C = k ? Math.ceil((k.font = O, k.measureText(v).width || 0)) : 0;
756
+ const E = m.querySelector(".ant-select-selection-item"), b = m.querySelector(".ant-select-selection-placeholder"), T = E || b, v = (T?.textContent || "").trim() || y(), w = m.querySelector(".ant-select-selector"), _ = T || w || m, D = window.getComputedStyle(_), A = T ? D.fontSize : "16px", x = D.fontFamily || "sans-serif", S = D.fontWeight || "400", O = `${D.fontStyle || "normal"} ${S} ${A} ${x}`, N = document.createElement("canvas").getContext("2d"), C = N ? Math.ceil((N.font = O, N.measureText(v).width || 0)) : 0;
757
757
  let B = 0;
758
758
  if (w) {
759
759
  const X = window.getComputedStyle(w);
@@ -879,24 +879,24 @@ const yc = ({ host: e, onChange: t }) => {
879
879
  }, [o, g]), b = kt(() => {
880
880
  const x = c.trim();
881
881
  if (!x) return E;
882
- const S = x.toLowerCase(), N = E.filter(
883
- (D) => D.label.toLowerCase().includes(S) || D.value.toLowerCase().includes(S)
882
+ const S = x.toLowerCase(), k = E.filter(
883
+ (P) => P.label.toLowerCase().includes(S) || P.value.toLowerCase().includes(S)
884
884
  );
885
885
  return E.some(
886
- (D) => D.label === x || D.value === x
887
- ) ? N : [{ label: x, value: x, isCustom: !0 }, ...N];
886
+ (P) => P.label === x || P.value === x
887
+ ) ? k : [{ label: x, value: x, isCustom: !0 }, ...k];
888
888
  }, [E, c]), T = (x) => {
889
889
  if (x == null) return;
890
- o.some((N) => N.value === x) ? g && p(null) : p(x), l(x), f(""), e.setAttribute("data-value", x), t(n, x);
890
+ o.some((k) => k.value === x) ? g && p(null) : p(x), l(x), f(""), e.setAttribute("data-value", x), t(n, x);
891
891
  }, v = (x) => {
892
892
  f(x);
893
893
  }, w = (x) => {
894
894
  if (x.key === "Enter" && c.trim()) {
895
895
  x.preventDefault(), x.stopPropagation();
896
- const S = c.trim(), N = o.find(
896
+ const S = c.trim(), k = o.find(
897
897
  (O) => O.label === S || O.value === S
898
898
  );
899
- N ? T(N.value) : (p(S), l(S), f(""), e.setAttribute("data-value", S), t(n, S));
899
+ k ? T(k.value) : (p(S), l(S), f(""), e.setAttribute("data-value", S), t(n, S));
900
900
  }
901
901
  }, _ = () => {
902
902
  p(null), l(void 0), f(""), e.setAttribute("data-value", ""), t(n, "");
@@ -904,7 +904,7 @@ const yc = ({ host: e, onChange: t }) => {
904
904
  se(() => {
905
905
  l(s || void 0);
906
906
  }, [s]);
907
- const P = _e.useCallback(() => {
907
+ const D = _e.useCallback(() => {
908
908
  if (u != null && u !== "") {
909
909
  const x = E.find((S) => String(S.value) === String(u));
910
910
  return x ? typeof x.label == "string" ? x.label : String(x.label ?? u) : String(u);
@@ -913,10 +913,10 @@ const yc = ({ host: e, onChange: t }) => {
913
913
  }, [u, E, r]), A = _e.useCallback(() => {
914
914
  const x = m.current;
915
915
  if (!x) return;
916
- const S = x.querySelector(".ant-select-selection-item"), N = x.querySelector(".ant-select-selection-placeholder"), O = S || N, D = (O?.textContent || "").trim() || P(), k = x.querySelector(".ant-select-selector"), C = O || k || x, B = window.getComputedStyle(C), $ = O ? B.fontSize : "16px", H = B.fontFamily || "sans-serif", q = B.fontWeight || "400", z = `${B.fontStyle || "normal"} ${q} ${$} ${H}`, R = document.createElement("canvas").getContext("2d"), W = R ? Math.ceil((R.font = z, R.measureText(D).width || 0)) : 0;
916
+ const S = x.querySelector(".ant-select-selection-item"), k = x.querySelector(".ant-select-selection-placeholder"), O = S || k, P = (O?.textContent || "").trim() || D(), N = x.querySelector(".ant-select-selector"), C = O || N || x, B = window.getComputedStyle(C), $ = O ? B.fontSize : "16px", H = B.fontFamily || "sans-serif", q = B.fontWeight || "400", z = `${B.fontStyle || "normal"} ${q} ${$} ${H}`, R = document.createElement("canvas").getContext("2d"), W = R ? Math.ceil((R.font = z, R.measureText(P).width || 0)) : 0;
917
917
  let te = 0;
918
- if (k) {
919
- const ce = window.getComputedStyle(k);
918
+ if (N) {
919
+ const ce = window.getComputedStyle(N);
920
920
  te = (Number.parseFloat(ce.paddingLeft) || 0) + (Number.parseFloat(ce.paddingRight) || 0);
921
921
  }
922
922
  const oe = x.querySelector(".ant-select-arrow");
@@ -928,7 +928,7 @@ const yc = ({ host: e, onChange: t }) => {
928
928
  }
929
929
  const re = Math.min(240, Math.max(80, W + te + 4));
930
930
  h((ce) => ce === re ? ce : re);
931
- }, [P]);
931
+ }, [D]);
932
932
  return Ze(() => {
933
933
  const x = window.requestAnimationFrame(() => {
934
934
  A();
@@ -1083,7 +1083,7 @@ const wc = ({ host: e, onChange: t }) => {
1083
1083
  if (!v) return;
1084
1084
  const w = v.querySelector("textarea");
1085
1085
  if (!w) return;
1086
- const _ = window.getComputedStyle(w), P = _.fontStyle || "normal", A = _.fontWeight || "400", x = _.fontSize || "16px", S = _.fontFamily || "sans-serif", N = `${P} ${A} ${x} ${S}`, O = Number.parseFloat(_.paddingLeft) || 0, D = Number.parseFloat(_.paddingRight) || 0, k = (o && o.length > 0 ? o : r) || " ", C = vc(k, N, _.letterSpacing || "0", O, D), $ = Math.max(24, Math.min(600, C + 2));
1086
+ const _ = window.getComputedStyle(w), D = _.fontStyle || "normal", A = _.fontWeight || "400", x = _.fontSize || "16px", S = _.fontFamily || "sans-serif", k = `${D} ${A} ${x} ${S}`, O = Number.parseFloat(_.paddingLeft) || 0, P = Number.parseFloat(_.paddingRight) || 0, N = (o && o.length > 0 ? o : r) || " ", C = vc(N, k, _.letterSpacing || "0", O, P), $ = Math.max(24, Math.min(600, C + 2));
1087
1087
  g((H) => H === $ ? H : $);
1088
1088
  }, [r, o]);
1089
1089
  se(() => {
@@ -1407,15 +1407,15 @@ ${(e || "").replace(/\r\n/g, `
1407
1407
  ), m && typeof m.maxCount == "number" && typeof m.minCount == "number") {
1408
1408
  const v = m.maxCount, w = typeof a == "number" ? a : 0;
1409
1409
  u((_) => {
1410
- const P = { ..._ };
1410
+ const D = { ..._ };
1411
1411
  let A = Math.min(Math.max(w, 0), v - 1);
1412
1412
  for (const x of b) {
1413
- for (; A < v && P[`${h}-${A}`] != null; )
1413
+ for (; A < v && D[`${h}-${A}`] != null; )
1414
1414
  A += 1;
1415
1415
  if (A >= v) break;
1416
- P[`${h}-${A}`] = x, A += 1;
1416
+ D[`${h}-${A}`] = x, A += 1;
1417
1417
  }
1418
- return P;
1418
+ return D;
1419
1419
  });
1420
1420
  }
1421
1421
  } else if (r && f.target.files[0]) {
@@ -1715,32 +1715,32 @@ const Uc = (e) => {
1715
1715
  }, [u]), se(() => {
1716
1716
  b.current = c;
1717
1717
  }, [c]), se(() => {
1718
- const _ = T(v.current), P = T(e);
1719
- if (_ && _ !== P && t.current) {
1718
+ const _ = T(v.current), D = T(e);
1719
+ if (_ && _ !== D && t.current) {
1720
1720
  const A = {};
1721
- t.current.querySelectorAll('[data-type="variable"]').forEach((D) => {
1722
- const k = D.dataset.key;
1723
- if (k) {
1724
- const C = D.innerText.replace(/[\u200B\n]/g, "").trim();
1725
- C && (A[k] = C);
1721
+ t.current.querySelectorAll('[data-type="variable"]').forEach((P) => {
1722
+ const N = P.dataset.key;
1723
+ if (N) {
1724
+ const C = P.innerText.replace(/[\u200B\n]/g, "").trim();
1725
+ C && (A[N] = C);
1726
1726
  }
1727
- }), t.current.querySelectorAll('[data-type="select"]').forEach((D) => {
1728
- const k = D.dataset.key;
1729
- if (k) {
1730
- const C = (D.getAttribute("data-value") || "").trim();
1731
- C && (A[k] = C);
1727
+ }), t.current.querySelectorAll('[data-type="select"]').forEach((P) => {
1728
+ const N = P.dataset.key;
1729
+ if (N) {
1730
+ const C = (P.getAttribute("data-value") || "").trim();
1731
+ C && (A[N] = C);
1732
1732
  }
1733
- }), t.current.querySelectorAll('[data-type="searchable-select"]').forEach((D) => {
1734
- const k = D.dataset.key;
1735
- if (k) {
1736
- const C = (D.getAttribute("data-value") || "").trim();
1737
- C && (A[k] = C);
1733
+ }), t.current.querySelectorAll('[data-type="searchable-select"]').forEach((P) => {
1734
+ const N = P.dataset.key;
1735
+ if (N) {
1736
+ const C = (P.getAttribute("data-value") || "").trim();
1737
+ C && (A[N] = C);
1738
1738
  }
1739
- }), t.current.querySelectorAll('[data-type="textarea"]').forEach((D) => {
1740
- const k = D.dataset.key;
1741
- if (k) {
1742
- const C = D.value.replace(/[\u200B]/g, "").trim();
1743
- C && (A[k] = C);
1739
+ }), t.current.querySelectorAll('[data-type="textarea"]').forEach((P) => {
1740
+ const N = P.dataset.key;
1741
+ if (N) {
1742
+ const C = P.value.replace(/[\u200B]/g, "").trim();
1743
+ C && (A[N] = C);
1744
1744
  }
1745
1745
  }), p.current[_] = {
1746
1746
  variableValues: A,
@@ -1751,10 +1751,10 @@ const Uc = (e) => {
1751
1751
  markdownNameAnalyzeState: { ...b.current }
1752
1752
  };
1753
1753
  }
1754
- if (P && p.current[P]) {
1755
- const A = p.current[P];
1754
+ if (D && p.current[D]) {
1755
+ const A = p.current[D];
1756
1756
  w.current = A, r(A.files), i(A.multiVariableCounts), o(A.reportAnalyzeState), l(A.markdownAnalyzeState), f(A.markdownNameAnalyzeState);
1757
- } else if (P) {
1757
+ } else if (D) {
1758
1758
  w.current = null;
1759
1759
  const A = {};
1760
1760
  e.forEach((x) => {
@@ -1850,8 +1850,8 @@ const Uc = (e) => {
1850
1850
  markdownNameAnalyzeStateRef: y
1851
1851
  }) => {
1852
1852
  const h = ue(() => Vc(l), [l]), m = ue(
1853
- (_, P) => {
1854
- const A = (P || "").trim();
1853
+ (_, D) => {
1854
+ const A = (D || "").trim();
1855
1855
  if (!_) return;
1856
1856
  if (!A) {
1857
1857
  a((O) => ({
@@ -1881,25 +1881,25 @@ const Uc = (e) => {
1881
1881
  }
1882
1882
  ]
1883
1883
  })))(S).then((O) => {
1884
- const D = qc(O);
1884
+ const P = qc(O);
1885
1885
  if (l.current) {
1886
- const k = h();
1887
- D.forEach((C, B) => {
1888
- k[`${_}__module_${B}`] = C.content;
1889
- }), l.current.__tempVariableValues = k;
1886
+ const N = h();
1887
+ P.forEach((C, B) => {
1888
+ N[`${_}__module_${B}`] = C.content;
1889
+ }), l.current.__tempVariableValues = N;
1890
1890
  }
1891
- a((k) => ({
1892
- ...k,
1893
- [_]: { status: "success", error: void 0, lastParsedUrl: A, modules: D }
1891
+ a((N) => ({
1892
+ ...N,
1893
+ [_]: { status: "success", error: void 0, lastParsedUrl: A, modules: P }
1894
1894
  }));
1895
1895
  }).catch((O) => {
1896
- const D = O instanceof Error ? O.message : String(O);
1897
- a((k) => ({
1898
- ...k,
1896
+ const P = O instanceof Error ? O.message : String(O);
1897
+ a((N) => ({
1898
+ ...N,
1899
1899
  [_]: {
1900
- ...k[_] || { modules: [] },
1900
+ ...N[_] || { modules: [] },
1901
1901
  status: "error",
1902
- error: D || "解析失败",
1902
+ error: P || "解析失败",
1903
1903
  lastParsedUrl: A,
1904
1904
  modules: []
1905
1905
  }
@@ -1908,12 +1908,12 @@ const Uc = (e) => {
1908
1908
  },
1909
1909
  [h, l, e, r, a]
1910
1910
  ), E = ue(
1911
- (_, P) => {
1912
- const A = (P || "").trim();
1911
+ (_, D) => {
1912
+ const A = (D || "").trim();
1913
1913
  if (!_) return;
1914
1914
  if (!A) {
1915
- s((k) => ({
1916
- ...k,
1915
+ s((N) => ({
1916
+ ...N,
1917
1917
  [_]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
1918
1918
  }));
1919
1919
  return;
@@ -1922,8 +1922,8 @@ const Uc = (e) => {
1922
1922
  if (x?.lastParsedText && x.lastParsedText === A && x.status === "success")
1923
1923
  return;
1924
1924
  if (!t) {
1925
- const k = So(A), C = Qr({
1926
- modules: [{ title: "内容", content: _o(k), markdown: k }]
1925
+ const N = So(A), C = Qr({
1926
+ modules: [{ title: "内容", content: _o(N), markdown: N }]
1927
1927
  });
1928
1928
  if (l.current) {
1929
1929
  const B = h();
@@ -1938,14 +1938,14 @@ const Uc = (e) => {
1938
1938
  return;
1939
1939
  }
1940
1940
  const S = p.current[_]?.status === "loading";
1941
- S || s((k) => ({
1942
- ...k,
1943
- [_]: { ...k[_], status: "loading", error: void 0, lastParsedText: A }
1941
+ S || s((N) => ({
1942
+ ...N,
1943
+ [_]: { ...N[_], status: "loading", error: void 0, lastParsedText: A }
1944
1944
  }));
1945
- const N = 500, O = Date.now();
1945
+ const k = 500, O = Date.now();
1946
1946
  setTimeout(() => {
1947
1947
  t({ text: A }).then((C) => {
1948
- const B = Qr(C), $ = Date.now() - O, H = Math.max(0, N - $);
1948
+ const B = Qr(C), $ = Date.now() - O, H = Math.max(0, k - $);
1949
1949
  setTimeout(() => {
1950
1950
  if (l.current) {
1951
1951
  const q = h();
@@ -1981,12 +1981,12 @@ const Uc = (e) => {
1981
1981
  s
1982
1982
  ]
1983
1983
  ), b = ue(
1984
- (_, P) => {
1985
- const A = (P || "").trim();
1984
+ (_, D) => {
1985
+ const A = (D || "").trim();
1986
1986
  if (!_) return;
1987
1987
  if (!A) {
1988
- u((k) => ({
1989
- ...k,
1988
+ u((N) => ({
1989
+ ...N,
1990
1990
  [_]: { status: "idle", modules: [], lastParsedText: void 0, error: void 0 }
1991
1991
  }));
1992
1992
  return;
@@ -1994,14 +1994,14 @@ const Uc = (e) => {
1994
1994
  const x = y.current[_];
1995
1995
  if (x?.lastParsedText && x.lastParsedText === A && x.status === "success" || !n) return;
1996
1996
  const S = y.current[_]?.status === "loading";
1997
- S || u((k) => ({
1998
- ...k,
1999
- [_]: { ...k[_], status: "loading", error: void 0, lastParsedText: A }
1997
+ S || u((N) => ({
1998
+ ...N,
1999
+ [_]: { ...N[_], status: "loading", error: void 0, lastParsedText: A }
2000
2000
  }));
2001
- const N = 500, O = Date.now();
2001
+ const k = 500, O = Date.now();
2002
2002
  setTimeout(() => {
2003
2003
  n({ text: A }).then((C) => {
2004
- const B = Qr(C), $ = Date.now() - O, H = Math.max(0, N - $);
2004
+ const B = Qr(C), $ = Date.now() - O, H = Math.max(0, k - $);
2005
2005
  setTimeout(() => {
2006
2006
  if (l.current) {
2007
2007
  const q = h();
@@ -2043,12 +2043,12 @@ const Uc = (e) => {
2043
2043
  }, [f, E]), Ze(() => {
2044
2044
  g.current = b;
2045
2045
  }, [g, b]);
2046
- const T = ue((_, P) => {
2047
- c.current(_, P);
2048
- }, [c]), v = ue((_, P) => {
2049
- f.current(_, P);
2050
- }, [f]), w = ue((_, P) => {
2051
- g.current(_, P);
2046
+ const T = ue((_, D) => {
2047
+ c.current(_, D);
2048
+ }, [c]), v = ue((_, D) => {
2049
+ f.current(_, D);
2050
+ }, [f]), w = ue((_, D) => {
2051
+ g.current(_, D);
2052
2052
  }, [g]);
2053
2053
  return { handleReportUrlBlur: T, handleMarkdownBlur: v, handleMarkdownNameBlur: w };
2054
2054
  }, Yc = ({
@@ -2082,19 +2082,19 @@ const Uc = (e) => {
2082
2082
  const v = T.getBoundingClientRect(), w = document.createRange();
2083
2083
  w.selectNodeContents(T);
2084
2084
  const _ = Array.from(w.getClientRects());
2085
- let P;
2085
+ let D;
2086
2086
  if (_.length > 0) {
2087
- const A = Math.min(..._.map((N) => N.top)), x = 2;
2087
+ const A = Math.min(..._.map((k) => k.top)), x = 2;
2088
2088
  let S = 0;
2089
- for (const N of _)
2090
- Math.abs(N.top - A) <= x && (S = Math.max(S, N.bottom));
2091
- P = S > 0 ? Math.max(0, Math.ceil(S - v.top)) : 58;
2089
+ for (const k of _)
2090
+ Math.abs(k.top - A) <= x && (S = Math.max(S, k.bottom));
2091
+ D = S > 0 ? Math.max(0, Math.ceil(S - v.top)) : 58;
2092
2092
  } else {
2093
2093
  const A = window.getComputedStyle(T), x = Number.parseFloat(A.paddingTop) || 0, S = Number.parseFloat(A.lineHeight) || 34;
2094
- P = Math.max(0, Math.ceil(x + S)) || 58;
2094
+ D = Math.max(0, Math.ceil(x + S)) || 58;
2095
2095
  }
2096
- if (!Number.isFinite(P) || P <= 0) return;
2097
- s((A) => A === P ? A : P);
2096
+ if (!Number.isFinite(D) || D <= 0) return;
2097
+ s((A) => A === D ? A : D);
2098
2098
  } catch {
2099
2099
  }
2100
2100
  }, [
@@ -2114,21 +2114,21 @@ const Uc = (e) => {
2114
2114
  if (!b) return;
2115
2115
  const w = () => {
2116
2116
  b.scrollTop = 0, b.scrollLeft = 0, T && (T.scrollTop = 0, T.scrollLeft = 0), v && (v.scrollTop = 0, v.scrollLeft = 0);
2117
- }, P = (typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : 260) + 220;
2117
+ }, D = (typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : 260) + 220;
2118
2118
  w();
2119
- const A = (D) => {
2120
- D.preventDefault(), D.stopPropagation(), w();
2119
+ const A = (P) => {
2120
+ P.preventDefault(), P.stopPropagation(), w();
2121
2121
  };
2122
2122
  b.addEventListener("wheel", A, { passive: !1 }), b.addEventListener("touchmove", A, { passive: !1 }), T && (T.addEventListener("wheel", A, { passive: !1 }), T.addEventListener("touchmove", A, { passive: !1 }));
2123
2123
  const x = performance.now();
2124
2124
  let S = 0;
2125
- const N = (D) => {
2126
- w(), D - x < P && (S = window.requestAnimationFrame(N));
2125
+ const k = (P) => {
2126
+ w(), P - x < D && (S = window.requestAnimationFrame(k));
2127
2127
  };
2128
- S = window.requestAnimationFrame(N);
2128
+ S = window.requestAnimationFrame(k);
2129
2129
  const O = window.setTimeout(() => {
2130
2130
  w();
2131
- }, P);
2131
+ }, D);
2132
2132
  return () => {
2133
2133
  b.removeEventListener("wheel", A), b.removeEventListener("touchmove", A), T && (T.removeEventListener("wheel", A), T.removeEventListener("touchmove", A)), window.cancelAnimationFrame(S), window.clearTimeout(O);
2134
2134
  };
@@ -2369,22 +2369,22 @@ function Nr(e, t) {
2369
2369
  if (h) {
2370
2370
  const b = (() => {
2371
2371
  try {
2372
- const P = Xc(h, r);
2373
- if (!P || !Number.isFinite(P)) {
2372
+ const D = Xc(h, r);
2373
+ if (!D || !Number.isFinite(D)) {
2374
2374
  const A = br(h);
2375
2375
  return Math.max(0, A - 22);
2376
2376
  }
2377
- return P;
2377
+ return D;
2378
2378
  } catch {
2379
- const P = br(h);
2380
- return Math.max(0, P - 22);
2379
+ const D = br(h);
2380
+ return Math.max(0, D - 22);
2381
2381
  }
2382
2382
  })(), T = (() => {
2383
2383
  if (!r.classList.contains("rte-variable-with-icon")) return 0;
2384
- const P = r.querySelector(".variable-info-icon:not(.hidden)");
2385
- if (!P) return 24;
2384
+ const D = r.querySelector(".variable-info-icon:not(.hidden)");
2385
+ if (!D) return 24;
2386
2386
  try {
2387
- const A = window.getComputedStyle(P), x = Math.ceil(P.getBoundingClientRect().width || 0) || 16, S = Math.ceil(Number.parseFloat(A.right || "0")) || 4;
2387
+ const A = window.getComputedStyle(D), x = Math.ceil(D.getBoundingClientRect().width || 0) || 16, S = Math.ceil(Number.parseFloat(A.right || "0")) || 4;
2388
2388
  return Math.max(16, Math.min(120, x + S + 2));
2389
2389
  } catch {
2390
2390
  return 24;
@@ -2446,14 +2446,14 @@ function ri(e, t, n, r) {
2446
2446
  }
2447
2447
  m.length && h.push(m);
2448
2448
  const E = (x) => {
2449
- const S = t.find((N) => N.type === "upload" && N.key === x);
2449
+ const S = t.find((k) => k.type === "upload" && k.key === x);
2450
2450
  return S ? typeof S.maxCount == "number" && S.maxCount > 1 ? S.maxCount : 1 : 0;
2451
2451
  }, b = h.map((x) => {
2452
2452
  for (const S of x)
2453
2453
  if (S.type !== "other") {
2454
2454
  if (S.type === "video-url" || S.type === "video-upload") {
2455
- const N = r?.[S.key];
2456
- if (N?.status === "success" && N.videoUrl || N?.status === "loading") return !0;
2455
+ const k = r?.[S.key];
2456
+ if (k?.status === "success" && k.videoUrl || k?.status === "loading") return !0;
2457
2457
  if (S.type === "video-url") {
2458
2458
  const O = e.current.querySelector(
2459
2459
  `[data-type="variable"][data-node-type="video-url"][data-key="${S.key}"]`
@@ -2465,27 +2465,27 @@ function ri(e, t, n, r) {
2465
2465
  }
2466
2466
  if (S.type === "upload") {
2467
2467
  if (n[S.key] !== null && n[S.key] !== void 0) return !0;
2468
- const N = E(S.key);
2469
- for (let O = 0; O < N; O++) {
2470
- const D = `${S.key}-${O}`;
2471
- if (n[D] !== null && n[D] !== void 0) return !0;
2468
+ const k = E(S.key);
2469
+ for (let O = 0; O < k; O++) {
2470
+ const P = `${S.key}-${O}`;
2471
+ if (n[P] !== null && n[P] !== void 0) return !0;
2472
2472
  }
2473
2473
  continue;
2474
2474
  }
2475
2475
  if (S.type === "multi-variable") {
2476
- const N = e.current.querySelectorAll(
2476
+ const k = e.current.querySelectorAll(
2477
2477
  `[data-type="variable"][data-multi-key="${S.key}"]`
2478
2478
  );
2479
- for (const O of N) {
2479
+ for (const O of k) {
2480
2480
  if (O.dataset.variableRender === "antd-textarea") {
2481
- const D = O.dataset.value || "";
2482
- let k = D;
2481
+ const P = O.dataset.value || "";
2482
+ let N = P;
2483
2483
  try {
2484
- k = decodeURIComponent(D);
2484
+ N = decodeURIComponent(P);
2485
2485
  } catch {
2486
- k = D;
2486
+ N = P;
2487
2487
  }
2488
- if (k.trim().length > 0) return !0;
2488
+ if (N.trim().length > 0) return !0;
2489
2489
  continue;
2490
2490
  }
2491
2491
  if (!O.classList.contains("show-placeholder") && O.innerText.replace(/[\u200B\n]/g, "").trim().length > 0)
@@ -2500,14 +2500,14 @@ function ri(e, t, n, r) {
2500
2500
  const O = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
2501
2501
  if (!O) continue;
2502
2502
  if (O.dataset.variableRender === "antd-textarea") {
2503
- const D = O.dataset.value || "";
2504
- let k = D;
2503
+ const P = O.dataset.value || "";
2504
+ let N = P;
2505
2505
  try {
2506
- k = decodeURIComponent(D);
2506
+ N = decodeURIComponent(P);
2507
2507
  } catch {
2508
- k = D;
2508
+ N = P;
2509
2509
  }
2510
- if (k.trim().length > 0) return !0;
2510
+ if (N.trim().length > 0) return !0;
2511
2511
  } else if (!O.classList.contains("show-placeholder") && O.innerText.replace(/[\u200B\n]/g, "").trim().length > 0)
2512
2512
  return !0;
2513
2513
  continue;
@@ -2520,8 +2520,8 @@ function ri(e, t, n, r) {
2520
2520
  for (const S of h[x] || [])
2521
2521
  if (S.type !== "other") {
2522
2522
  if (S.type === "video-url" || S.type === "video-upload") {
2523
- const N = w(S.key);
2524
- N && i(N.closest(".exclusion-wrapper") || N);
2523
+ const k = w(S.key);
2524
+ k && i(k.closest(".exclusion-wrapper") || k);
2525
2525
  continue;
2526
2526
  }
2527
2527
  if (S.type === "upload") {
@@ -2534,27 +2534,27 @@ function ri(e, t, n, r) {
2534
2534
  e.current.querySelectorAll(
2535
2535
  `[data-type="variable"][data-multi-key="${S.key}"]`
2536
2536
  ).forEach((O) => {
2537
- const D = O.closest(".exclusion-wrapper") || O;
2538
- i(D);
2537
+ const P = O.closest(".exclusion-wrapper") || O;
2538
+ i(P);
2539
2539
  });
2540
2540
  continue;
2541
2541
  }
2542
2542
  if (S.type === "variable") {
2543
- const N = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
2544
- N && i(N.closest(".exclusion-wrapper") || N), e.current.querySelectorAll(
2543
+ const k = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
2544
+ k && i(k.closest(".exclusion-wrapper") || k), e.current.querySelectorAll(
2545
2545
  `[data-node-type="markdown-module"][data-key="${S.key}"]`
2546
- ).forEach((D) => {
2547
- const k = D.closest(".exclusion-wrapper") || D.closest(".rte-markdown-module-container") || D;
2548
- i(k);
2546
+ ).forEach((P) => {
2547
+ const N = P.closest(".exclusion-wrapper") || P.closest(".rte-markdown-module-container") || P;
2548
+ i(N);
2549
2549
  });
2550
2550
  }
2551
2551
  }
2552
- }, P = (x) => {
2552
+ }, D = (x) => {
2553
2553
  for (const S of h[x] || [])
2554
2554
  if (S.type !== "other") {
2555
2555
  if (S.type === "video-url" || S.type === "video-upload") {
2556
- const N = w(S.key);
2557
- N && s(N.closest(".exclusion-wrapper") || N);
2556
+ const k = w(S.key);
2557
+ k && s(k.closest(".exclusion-wrapper") || k);
2558
2558
  continue;
2559
2559
  }
2560
2560
  if (S.type === "upload") {
@@ -2570,18 +2570,18 @@ function ri(e, t, n, r) {
2570
2570
  continue;
2571
2571
  }
2572
2572
  if (S.type === "variable") {
2573
- const N = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
2574
- N && s(N.closest(".exclusion-wrapper") || N), e.current.querySelectorAll(
2573
+ const k = e.current.querySelector(`[data-type="variable"][data-key="${S.key}"]`);
2574
+ k && s(k.closest(".exclusion-wrapper") || k), e.current.querySelectorAll(
2575
2575
  `[data-node-type="markdown-module"][data-key="${S.key}"]`
2576
- ).forEach((D) => {
2577
- const k = D.closest(".exclusion-wrapper") || D.closest(".rte-markdown-module-container") || D;
2578
- s(k);
2576
+ ).forEach((P) => {
2577
+ const N = P.closest(".exclusion-wrapper") || P.closest(".rte-markdown-module-container") || P;
2578
+ s(N);
2579
2579
  });
2580
2580
  }
2581
2581
  }
2582
2582
  };
2583
2583
  for (let x = 0; x < h.length; x++)
2584
- !T || x === v ? _(x) : P(x);
2584
+ !T || x === v ? _(x) : D(x);
2585
2585
  e.current.querySelectorAll('[data-group="separator"]').forEach((x) => {
2586
2586
  x.closest('[data-rte-force-hidden="1"]') || (T ? s(x) : x.style.setProperty("display", "inline-flex", "important"));
2587
2587
  });
@@ -2700,7 +2700,7 @@ function ai(e, t, n, r, a) {
2700
2700
  T = _;
2701
2701
  break;
2702
2702
  }
2703
- return b.filter((_, P) => P !== T).map((_) => (_.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
2703
+ return b.filter((_, D) => D !== T).map((_) => (_.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
2704
2704
  `).trim() || E;
2705
2705
  }, s = (h) => h ? !!h.closest('[data-rte-force-hidden="1"]') : !1, o = [];
2706
2706
  for (let h = 0; h < t.length; h++) {
@@ -2892,8 +2892,8 @@ function ai(e, t, n, r, a) {
2892
2892
  if (v.length === 0)
2893
2893
  continue;
2894
2894
  for (let w = 0; w < v.length; w++) {
2895
- const P = v[w].dataset.key;
2896
- P && n[P] != null && (T += 1);
2895
+ const D = v[w].dataset.key;
2896
+ D && n[D] != null && (T += 1);
2897
2897
  }
2898
2898
  if (T >= b.minCount) {
2899
2899
  E = !0;
@@ -3135,8 +3135,8 @@ const Kc = ({
3135
3135
  if (!E || !r.current.contains(E))
3136
3136
  return;
3137
3137
  let b = !1;
3138
- if (l.forEach((S, N) => {
3139
- (N === E || N.contains(m)) && (b = !0);
3138
+ if (l.forEach((S, k) => {
3139
+ (k === E || k.contains(m)) && (b = !0);
3140
3140
  }), !b)
3141
3141
  return;
3142
3142
  const T = E.dataset.multiKey, v = E.dataset.key, w = E.dataset.index;
@@ -3146,12 +3146,12 @@ const Kc = ({
3146
3146
  return;
3147
3147
  const A = E.innerText.replace(/[\u200B\n]/g, "").trim(), x = /[、,,\s]+/;
3148
3148
  if (x.test(A)) {
3149
- const O = A.split(x).map((D) => D.trim()).filter((D) => D.length > 0).slice(0, 9);
3149
+ const O = A.split(x).map((P) => P.trim()).filter((P) => P.length > 0).slice(0, 9);
3150
3150
  if (O.length > 1) {
3151
- const D = e.find((k) => k.type === "multi-variable" && k.key === T);
3152
- if (D) {
3153
- const k = i[T] || 1, C = parseInt(w, 10), B = D.maxCount || 9, $ = [];
3154
- for (let X = 0; X < k; X++) {
3151
+ const P = e.find((N) => N.type === "multi-variable" && N.key === T);
3152
+ if (P) {
3153
+ const N = i[T] || 1, C = parseInt(w, 10), B = P.maxCount || 9, $ = [];
3154
+ for (let X = 0; X < N; X++) {
3155
3155
  const R = `${T}_${X}`, W = r.current.querySelector(
3156
3156
  `[data-type="variable"][data-key="${R}"][data-multi-key="${T}"]`
3157
3157
  );
@@ -3227,7 +3227,7 @@ const Kc = ({
3227
3227
  onImagePreview: w
3228
3228
  }) => {
3229
3229
  const _ = (...A) => {
3230
- }, P = (A) => {
3230
+ }, D = (A) => {
3231
3231
  try {
3232
3232
  const x = window.getSelection();
3233
3233
  if (!x) return _(A, "no selection");
@@ -3255,7 +3255,7 @@ const Kc = ({
3255
3255
  return;
3256
3256
  t && n?.(!1);
3257
3257
  const x = A.target;
3258
- if (_("click", { tag: x.tagName, cls: x.className }), P("before click"), x.closest('[data-type="datepicker"]'))
3258
+ if (_("click", { tag: x.tagName, cls: x.className }), D("before click"), x.closest('[data-type="datepicker"]'))
3259
3259
  return;
3260
3260
  if (x.closest(".tag-close-btn")) {
3261
3261
  A.preventDefault(), A.stopPropagation();
@@ -3278,11 +3278,11 @@ const Kc = ({
3278
3278
  delete W.dataset.rteForceHidden;
3279
3279
  }
3280
3280
  });
3281
- }, D = x.closest(".rte-textarea-toggle");
3282
- if (D) {
3281
+ }, P = x.closest(".rte-textarea-toggle");
3282
+ if (P) {
3283
3283
  A.preventDefault(), A.stopPropagation();
3284
- const z = D.closest(".rte-textarea-wrapper"), X = z?.querySelector('[data-type="textarea"]'), W = !(D.getAttribute("data-expanded") === "true");
3285
- D.setAttribute("data-expanded", String(W)), D.textContent = W ? "收起" : "展开", z && z.classList.toggle("rte-textarea-expanded", W);
3284
+ const z = P.closest(".rte-textarea-wrapper"), X = z?.querySelector('[data-type="textarea"]'), W = !(P.getAttribute("data-expanded") === "true");
3285
+ P.setAttribute("data-expanded", String(W)), P.textContent = W ? "收起" : "展开", z && z.classList.toggle("rte-textarea-expanded", W);
3286
3286
  const te = z?.closest(".rte-textarea-required");
3287
3287
  if (te ? te.classList.toggle("rte-textarea-overlay", W) : z && z.classList.toggle("rte-textarea-overlay", W), X)
3288
3288
  if (W)
@@ -3295,13 +3295,13 @@ const Kc = ({
3295
3295
  i.current && (W ? i.current.classList.add("rte-overlay-active") : i.current.classList.remove("rte-overlay-active"));
3296
3296
  return;
3297
3297
  }
3298
- const k = x.closest(".rte-richtext-toggle");
3299
- if (k) {
3298
+ const N = x.closest(".rte-richtext-toggle");
3299
+ if (N) {
3300
3300
  A.preventDefault(), A.stopPropagation();
3301
- const z = k.closest(".rte-richtext-wrapper"), X = z?.querySelector('[data-type="richtext"]'), W = !(k.getAttribute("data-expanded") === "true");
3301
+ const z = N.closest(".rte-richtext-wrapper"), X = z?.querySelector('[data-type="richtext"]'), W = !(N.getAttribute("data-expanded") === "true");
3302
3302
  ((re, ce) => {
3303
3303
  re.setAttribute("data-expanded", String(ce)), re.innerHTML = ce ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
3304
- })(k, W);
3304
+ })(N, W);
3305
3305
  const oe = z?.closest(".rte-richtext-required");
3306
3306
  oe ? oe.classList.toggle("rte-richtext-expanded", W) : z && z.classList.toggle("rte-richtext-expanded", W);
3307
3307
  const j = z?.closest(".exclusion-wrapper") || z?.parentElement;
@@ -3360,12 +3360,12 @@ const Kc = ({
3360
3360
  const W = window.getSelection();
3361
3361
  if (!W) return;
3362
3362
  const te = document.createTreeWalker(B, NodeFilter.SHOW_TEXT), oe = te.nextNode() ? te.currentNode : null, j = document.createRange();
3363
- oe ? (j.setStart(oe, 0), j.collapse(!0)) : (j.selectNodeContents(B), j.collapse(!0)), W.removeAllRanges(), W.addRange(j), P("after placeCaretLeft()");
3363
+ oe ? (j.setStart(oe, 0), j.collapse(!0)) : (j.selectNodeContents(B), j.collapse(!0)), W.removeAllRanges(), W.addRange(j), D("after placeCaretLeft()");
3364
3364
  } catch {
3365
3365
  }
3366
3366
  };
3367
3367
  setTimeout(() => {
3368
- window.requestAnimationFrame(R), window.requestAnimationFrame(() => P("post-raf (click)"));
3368
+ window.requestAnimationFrame(R), window.requestAnimationFrame(() => D("post-raf (click)"));
3369
3369
  }, 0);
3370
3370
  }
3371
3371
  }
@@ -3562,18 +3562,18 @@ const Kc = ({
3562
3562
  const b = E.innerText || "", T = !!E.querySelector("br") || b.includes(`
3563
3563
  `), v = E.offsetHeight > 32, _ = b.replace(/\u200B/g, "").trim().length > 0 && (T || v);
3564
3564
  E.classList.toggle("rte-variable-multiline", _), E.classList.toggle("rte-variable-force-block", _);
3565
- const P = E.closest(".rte-inline-group");
3566
- P && P.classList.toggle("rte-inline-group-force-block", _);
3565
+ const D = E.closest(".rte-inline-group");
3566
+ D && D.classList.toggle("rte-inline-group-force-block", _);
3567
3567
  const A = E.closest(".required-upload-group, .required-multi-first");
3568
3568
  A && A.classList.toggle("rte-required-group-force-block", _);
3569
3569
  const x = E.querySelector(".variable-info-icon");
3570
3570
  if (x) {
3571
3571
  let S = !1;
3572
- const N = document.createTreeWalker(E, NodeFilter.SHOW_TEXT, {
3572
+ const k = document.createTreeWalker(E, NodeFilter.SHOW_TEXT, {
3573
3573
  acceptNode: (O) => x.contains(O) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
3574
3574
  });
3575
- for (; N.nextNode(); )
3576
- if (N.currentNode.textContent?.replace(/[\u200B\n]/g, "").trim()) {
3575
+ for (; k.nextNode(); )
3576
+ if (k.currentNode.textContent?.replace(/[\u200B\n]/g, "").trim()) {
3577
3577
  S = !0;
3578
3578
  break;
3579
3579
  }
@@ -3590,51 +3590,51 @@ const Kc = ({
3590
3590
  `[data-type="variable"][data-key="${x}"][data-multi-key="${m.key}"]`
3591
3591
  );
3592
3592
  if (S) {
3593
- const N = (S.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
3593
+ const k = (S.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
3594
3594
  `).trim();
3595
- T.push(N);
3595
+ T.push(k);
3596
3596
  }
3597
3597
  }
3598
3598
  const w = (T[T.length - 1] || "") === "";
3599
- let _ = !1, P = -1;
3599
+ let _ = !1, D = -1;
3600
3600
  for (let A = 0; A < T.length - 1; A++)
3601
3601
  if (T[A] === "") {
3602
- _ = !0, P = A;
3602
+ _ = !0, D = A;
3603
3603
  break;
3604
3604
  }
3605
- if (_ && P >= 0) {
3605
+ if (_ && D >= 0) {
3606
3606
  const A = window.getSelection();
3607
3607
  if (A && A.rangeCount > 0) {
3608
- const D = A.getRangeAt(0), k = D.startContainer, C = k.nodeType === Node.ELEMENT_NODE ? k.closest('[data-type="variable"][data-multi-key]') : k.parentElement?.closest('[data-type="variable"][data-multi-key]');
3608
+ const P = A.getRangeAt(0), N = P.startContainer, C = N.nodeType === Node.ELEMENT_NODE ? N.closest('[data-type="variable"][data-multi-key]') : N.parentElement?.closest('[data-type="variable"][data-multi-key]');
3609
3609
  if (C) {
3610
3610
  const B = C.dataset.key;
3611
3611
  if (B) {
3612
3612
  const $ = document.createRange();
3613
- $.setStartBefore(C), $.setEnd(D.startContainer, D.startOffset);
3613
+ $.setStartBefore(C), $.setEnd(P.startContainer, P.startOffset);
3614
3614
  const H = $.toString().length;
3615
3615
  p.current = { key: B, offset: H };
3616
3616
  }
3617
3617
  }
3618
3618
  }
3619
3619
  const x = [...T];
3620
- for (let D = P; D < x.length - 1; D++)
3621
- x[D] = x[D + 1];
3620
+ for (let P = D; P < x.length - 1; P++)
3621
+ x[P] = x[P + 1];
3622
3622
  x.pop();
3623
3623
  const S = {};
3624
- x.forEach((D, k) => {
3625
- D && (S[`${m.key}_${k}`] = D);
3624
+ x.forEach((P, N) => {
3625
+ P && (S[`${m.key}_${N}`] = P);
3626
3626
  });
3627
- const N = Math.max(w ? x.length : x.length + 1, 1);
3628
- t.current.querySelectorAll('[data-type="variable"]').forEach((D) => {
3629
- const k = D.dataset.key, C = D.dataset.multiKey;
3630
- if (k && C !== m.key) {
3631
- const B = (D.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
3627
+ const k = Math.max(w ? x.length : x.length + 1, 1);
3628
+ t.current.querySelectorAll('[data-type="variable"]').forEach((P) => {
3629
+ const N = P.dataset.key, C = P.dataset.multiKey;
3630
+ if (N && C !== m.key) {
3631
+ const B = (P.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
3632
3632
  `).trim();
3633
- B && (S[k] = B);
3633
+ B && (S[N] = B);
3634
3634
  }
3635
- }), t.current.__tempVariableValues = S, g((D) => ({
3636
- ...D,
3637
- [m.key]: N
3635
+ }), t.current.__tempVariableValues = S, g((P) => ({
3636
+ ...P,
3637
+ [m.key]: k
3638
3638
  }));
3639
3639
  return;
3640
3640
  }
@@ -3646,19 +3646,19 @@ const Kc = ({
3646
3646
  `).trim().length > 0 && b < E) {
3647
3647
  const O = window.getSelection();
3648
3648
  if (O && O.rangeCount > 0) {
3649
- const D = O.getRangeAt(0), k = D.startContainer, C = k.nodeType === Node.ELEMENT_NODE ? k.closest('[data-type="variable"][data-multi-key]') : k.parentElement?.closest('[data-type="variable"][data-multi-key]');
3649
+ const P = O.getRangeAt(0), N = P.startContainer, C = N.nodeType === Node.ELEMENT_NODE ? N.closest('[data-type="variable"][data-multi-key]') : N.parentElement?.closest('[data-type="variable"][data-multi-key]');
3650
3650
  if (C) {
3651
3651
  const B = C.dataset.key;
3652
3652
  if (B) {
3653
3653
  const $ = document.createRange();
3654
- $.setStartBefore(C), $.setEnd(D.startContainer, D.startOffset);
3654
+ $.setStartBefore(C), $.setEnd(P.startContainer, P.startOffset);
3655
3655
  const H = $.toString().length;
3656
3656
  p.current = { key: B, offset: H };
3657
3657
  }
3658
3658
  }
3659
3659
  }
3660
- g((D) => ({
3661
- ...D,
3660
+ g((P) => ({
3661
+ ...P,
3662
3662
  [m.key]: b + 1
3663
3663
  }));
3664
3664
  }
@@ -4026,11 +4026,11 @@ const Kc = ({
4026
4026
  "xml"
4027
4027
  ], x = [];
4028
4028
  let S = !1;
4029
- for (const N of m) {
4030
- const O = (N.name || "").split(".").pop()?.toLowerCase() || "";
4031
- A.includes(O) ? x.push(N) : S = !0;
4029
+ for (const k of m) {
4030
+ const O = (k.name || "").split(".").pop()?.toLowerCase() || "";
4031
+ A.includes(O) ? x.push(k) : S = !0;
4032
4032
  }
4033
- S && p?.(), x.length > 0 && g((N) => [...x, ...N]);
4033
+ S && p?.(), x.length > 0 && g((k) => [...x, ...k]);
4034
4034
  return;
4035
4035
  }
4036
4036
  const E = y.target;
@@ -4050,11 +4050,11 @@ const Kc = ({
4050
4050
  if (A.nodeType === Node.ELEMENT_NODE ? x = A.closest('[data-type="variable"]') : A.nodeType === Node.TEXT_NODE && A.parentElement && (x = A.parentElement.closest('[data-type="variable"]')), x) {
4051
4051
  const S = x.dataset.multiKey;
4052
4052
  if (S) {
4053
- const D = /[、,,\s\n\r\t]+/, k = T.split(D).map((C) => C.trim()).filter((C) => C.length > 0);
4054
- if (k.length > 1) {
4053
+ const P = /[、,,\s\n\r\t]+/, N = T.split(P).map((C) => C.trim()).filter((C) => C.length > 0);
4054
+ if (N.length > 1) {
4055
4055
  const C = parseInt(x.dataset.index || "0", 10), B = t.find(
4056
4056
  (te) => te.type === "multi-variable" && te.key === S
4057
- )?.maxCount || 9, $ = n[S] || 1, H = Math.min(C + k.length, B);
4057
+ )?.maxCount || 9, $ = n[S] || 1, H = Math.min(C + N.length, B);
4058
4058
  H > $ && r((W) => ({
4059
4059
  ...W,
4060
4060
  [S]: H
@@ -4072,7 +4072,7 @@ const Kc = ({
4072
4072
  q.splice(
4073
4073
  C,
4074
4074
  1,
4075
- ...k.slice(0, B - C)
4075
+ ...N.slice(0, B - C)
4076
4076
  );
4077
4077
  const I = q.slice(0, B);
4078
4078
  I.length > 0 && I[I.length - 1] !== "" && I.length < B && I.push("");
@@ -4094,9 +4094,9 @@ const Kc = ({
4094
4094
  return;
4095
4095
  }
4096
4096
  }
4097
- const N = x.getAttribute("data-node-type") || "";
4098
- if (!(N === "markdown" || N === "report-url" || N === "markdown-name")) {
4099
- const D = (() => {
4097
+ const k = x.getAttribute("data-node-type") || "";
4098
+ if (!(k === "markdown" || k === "report-url" || k === "markdown-name")) {
4099
+ const P = (() => {
4100
4100
  const C = x.getAttribute("data-node-type") || "";
4101
4101
  if (C === "report-url" || C === "markdown" || C === "markdown-name") return !1;
4102
4102
  const B = x.dataset.multiKey;
@@ -4106,17 +4106,17 @@ const Kc = ({
4106
4106
  )?.allowNewline !== !1;
4107
4107
  const $ = x.dataset.key;
4108
4108
  return t.find((q) => q.type === "variable" && q.key === $)?.allowNewline !== !1;
4109
- })(), k = window.getSelection();
4110
- if (k && k.rangeCount > 0) {
4111
- const C = k.getRangeAt(0);
4109
+ })(), N = window.getSelection();
4110
+ if (N && N.rangeCount > 0) {
4111
+ const C = N.getRangeAt(0);
4112
4112
  C.deleteContents();
4113
- const B = document.createDocumentFragment(), H = (D ? T : T.replace(/\n+/g, " ")).split(`
4113
+ const B = document.createDocumentFragment(), H = (P ? T : T.replace(/\n+/g, " ")).split(`
4114
4114
  `);
4115
4115
  for (let I = 0; I < H.length; I++)
4116
- B.appendChild(document.createTextNode(H[I])), D && I < H.length - 1 && B.appendChild(document.createElement("br"));
4117
- C.insertNode(B), k.removeAllRanges();
4116
+ B.appendChild(document.createTextNode(H[I])), P && I < H.length - 1 && B.appendChild(document.createElement("br"));
4117
+ C.insertNode(B), N.removeAllRanges();
4118
4118
  const q = document.createRange();
4119
- q.selectNodeContents(x), q.collapse(!1), k.addRange(q);
4119
+ q.selectNodeContents(x), q.collapse(!1), N.addRange(q);
4120
4120
  }
4121
4121
  i();
4122
4122
  return;
@@ -4125,28 +4125,28 @@ const Kc = ({
4125
4125
  }
4126
4126
  }
4127
4127
  let w = !1, _ = "";
4128
- const P = window.getSelection();
4129
- if (P && P.rangeCount > 0) {
4130
- const A = P.anchorNode;
4128
+ const D = window.getSelection();
4129
+ if (D && D.rangeCount > 0) {
4130
+ const A = D.anchorNode;
4131
4131
  if (A) {
4132
4132
  let x = null;
4133
4133
  if (A.nodeType === Node.ELEMENT_NODE ? x = A.closest('[data-type="variable"]') : A.nodeType === Node.TEXT_NODE && A.parentElement && (x = A.parentElement.closest('[data-type="variable"]')), x) {
4134
- const S = x.getAttribute("data-node-type") || "", N = x.dataset.key;
4135
- if (S === "markdown" && N && /20\d{2}-\d{2}-\d{2}/.test(T))
4136
- w = !0, _ = N, c.current[N] = T, f((O) => ({
4134
+ const S = x.getAttribute("data-node-type") || "", k = x.dataset.key;
4135
+ if (S === "markdown" && k && /20\d{2}-\d{2}-\d{2}/.test(T))
4136
+ w = !0, _ = k, c.current[k] = T, f((O) => ({
4137
4137
  ...O,
4138
- [N]: { ...O[N], status: "loading", error: void 0 }
4138
+ [k]: { ...O[k], status: "loading", error: void 0 }
4139
4139
  }));
4140
- else if (S === "report-url" && N) {
4140
+ else if (S === "report-url" && k) {
4141
4141
  document.execCommand("insertText", !1, T), i(), setTimeout(() => {
4142
4142
  const O = x.innerText.replace(/[\u200B\n]/g, "").trim();
4143
- o.current(N, O);
4143
+ o.current(k, O);
4144
4144
  }, 0);
4145
4145
  return;
4146
- } else if (S === "markdown-name" && N) {
4146
+ } else if (S === "markdown-name" && k) {
4147
4147
  document.execCommand("insertText", !1, T), i(), setTimeout(() => {
4148
4148
  const O = x.innerText.replace(/[\u200B\n]/g, "").trim();
4149
- u.current(N, O);
4149
+ u.current(k, O);
4150
4150
  }, 0);
4151
4151
  return;
4152
4152
  }
@@ -4239,7 +4239,7 @@ const nd = ({
4239
4239
  const T = b, v = T.dataset.type, w = T.dataset.key;
4240
4240
  if (v === "variable" && w) {
4241
4241
  let _ = "";
4242
- const P = document.createTreeWalker(
4242
+ const D = document.createTreeWalker(
4243
4243
  T,
4244
4244
  NodeFilter.SHOW_TEXT,
4245
4245
  {
@@ -4249,8 +4249,8 @@ const nd = ({
4249
4249
  }
4250
4250
  }
4251
4251
  );
4252
- for (; P.nextNode(); )
4253
- _ += P.currentNode.textContent || "";
4252
+ for (; D.nextNode(); )
4253
+ _ += D.currentNode.textContent || "";
4254
4254
  const A = _.replace(/[\u200B\n]/g, "").trim();
4255
4255
  if (A) {
4256
4256
  const x = T.dataset.multiKey;
@@ -4279,45 +4279,45 @@ const nd = ({
4279
4279
  const O = h[S];
4280
4280
  Array.isArray(O) ? O.push(A) : h[S] = [String(O), A];
4281
4281
  }
4282
- const N = `${w}__markdown`;
4283
- h[N] === void 0 && (h[N] = [So(A)]);
4282
+ const k = `${w}__markdown`;
4283
+ h[k] === void 0 && (h[k] = [So(A)]);
4284
4284
  }
4285
4285
  }
4286
4286
  } else if ((v === "select" || v === "searchable-select") && w) {
4287
4287
  const _ = (T.getAttribute("data-value") || "").trim();
4288
4288
  _ && (h[w] = _, y += _);
4289
4289
  } else if (v === "textarea" && w) {
4290
- const P = (T.value || "").replace(/\u200B/g, "").trim();
4291
- P && (h[w] = P, y += P);
4290
+ const D = (T.value || "").replace(/\u200B/g, "").trim();
4291
+ D && (h[w] = D, y += D);
4292
4292
  } else if (v === "richtext" && w) {
4293
- const _ = T, P = _.dataset.nodeType, A = (_.textContent || "").replace(/\u200B/g, "").trim();
4293
+ const _ = T, D = _.dataset.nodeType, A = (_.textContent || "").replace(/\u200B/g, "").trim();
4294
4294
  if (A)
4295
- if (P === "report-module" || P === "markdown-module") {
4295
+ if (D === "report-module" || D === "markdown-module") {
4296
4296
  (!h[w] || !Array.isArray(h[w])) && (h[w] = []);
4297
4297
  const x = h[w];
4298
4298
  x.push(A), x.length > 1 && (y += " "), y += A;
4299
4299
  } else
4300
4300
  h[w] = A, y += A;
4301
4301
  } else if (v === "datepicker" && w) {
4302
- const P = (T.getAttribute("data-value") || "").trim();
4303
- if (P)
4304
- if (P.includes(",")) {
4305
- const A = P.split(",");
4306
- A.length === 2 ? (h[w] = A, y += `[${A[0]}, ${A[1]}]`) : (h[w] = P, y += P);
4302
+ const D = (T.getAttribute("data-value") || "").trim();
4303
+ if (D)
4304
+ if (D.includes(",")) {
4305
+ const A = D.split(",");
4306
+ A.length === 2 ? (h[w] = A, y += `[${A[0]}, ${A[1]}]`) : (h[w] = D, y += D);
4307
4307
  } else
4308
- h[w] = P, y += P;
4308
+ h[w] = D, y += D;
4309
4309
  } else if (v === "number-input" && w) {
4310
- const P = (T.value || "").trim();
4311
- P && (h[w] = P, y += P);
4310
+ const D = (T.value || "").trim();
4311
+ D && (h[w] = D, y += D);
4312
4312
  } else if (v === "upload" && w) {
4313
4313
  const _ = T.dataset.batchKey;
4314
4314
  if (_) {
4315
- const P = e.find((A) => A.type === "upload" && A.key === _);
4316
- if (P && typeof P.maxCount == "number" && typeof P.minCount == "number") {
4315
+ const D = e.find((A) => A.type === "upload" && A.key === _);
4316
+ if (D && typeof D.maxCount == "number" && typeof D.minCount == "number") {
4317
4317
  const A = [];
4318
- for (let x = 0; x < P.maxCount; x++) {
4319
- const S = `${_}-${x}`, N = t[S];
4320
- N && A.push(N);
4318
+ for (let x = 0; x < D.maxCount; x++) {
4319
+ const S = `${_}-${x}`, k = t[S];
4320
+ k && A.push(k);
4321
4321
  }
4322
4322
  h[_] || (h[_] = A.length > 0 ? A : null, A.length > 0 && (y += ` [附带${A.length}个文件: ${A.map((x) => typeof x == "string" ? x.split("/").pop() || "file" : x.name).join(", ")}] `));
4323
4323
  } else if (h[w] = t[w] ?? null, t[w]) {
@@ -4325,15 +4325,15 @@ const nd = ({
4325
4325
  y += ` [附带文件: ${typeof A == "string" ? A.split("/").pop() || "file" : A.name}] `;
4326
4326
  }
4327
4327
  } else if (h[w] = t[w] ?? null, t[w]) {
4328
- const P = t[w];
4329
- y += ` [附带文件: ${typeof P == "string" ? P.split("/").pop() || "file" : P.name}] `;
4328
+ const D = t[w];
4329
+ y += ` [附带文件: ${typeof D == "string" ? D.split("/").pop() || "file" : D.name}] `;
4330
4330
  }
4331
4331
  } else if ((v === "video-url" || v === "video-upload") && w) {
4332
4332
  const _ = g?.[w];
4333
4333
  if (_?.status === "success" && _.videoUrl) {
4334
4334
  h[w] = _.videoUrl, _.file && (h[`${w}__file`] = _.file);
4335
- const P = _.fileName || "视频";
4336
- y += ` [附带视频: ${P}] `;
4335
+ const D = _.fileName || "视频";
4336
+ y += ` [附带视频: ${D}] `;
4337
4337
  }
4338
4338
  } else {
4339
4339
  if (T.classList.contains("tag-close-btn") || T.classList.contains("file-remove-btn") || T.classList.contains("video-remove-btn")) return;
@@ -4364,8 +4364,8 @@ const nd = ({
4364
4364
  } else if (Array.isArray(v) && e.find((_) => _.type === "upload" && _.key === T)) {
4365
4365
  for (let _ = 0; _ < v.length; _++)
4366
4366
  if (typeof v[_] == "string" && v[_].startsWith("http")) {
4367
- const P = await Xi(v[_]);
4368
- P && (v[_] = P);
4367
+ const D = await Xi(v[_]);
4368
+ D && (v[_] = D);
4369
4369
  }
4370
4370
  }
4371
4371
  }
@@ -4380,8 +4380,8 @@ const nd = ({
4380
4380
  (x) => x.type === "multi-variable" && x.key === T
4381
4381
  ), _ = e.some(
4382
4382
  (x) => x.type === "report-url" && x.key === T
4383
- ), P = T.endsWith("__markdown");
4384
- w || _ || P || T === "url" ? v.forEach((x) => {
4383
+ ), D = T.endsWith("__markdown");
4384
+ w || _ || D || T === "url" ? v.forEach((x) => {
4385
4385
  x != null && x !== "" && b.append(T, String(x));
4386
4386
  }) : v.forEach((x, S) => {
4387
4387
  x != null && (x instanceof File ? b.append(`${T}[${S}]`, x) : typeof x == "string" ? b.append(`${T}[${S}]`, x) : b.append(`${T}[${S}]`, String(x)));
@@ -4898,8 +4898,8 @@ function Td() {
4898
4898
  }
4899
4899
  function yd() {
4900
4900
  const e = this;
4901
- function t(S, N) {
4902
- return parseFloat(S.getPropertyValue(e.getDirectionLabel(N)) || 0);
4901
+ function t(S, k) {
4902
+ return parseFloat(S.getPropertyValue(e.getDirectionLabel(k)) || 0);
4903
4903
  }
4904
4904
  const n = e.params, {
4905
4905
  wrapperEl: r,
@@ -4920,21 +4920,21 @@ function yd() {
4920
4920
  typeof T == "string" && T.indexOf("%") >= 0 ? T = parseFloat(T.replace("%", "")) / 100 * b : typeof T == "string" && (T = parseFloat(T)), e.virtualSize = -T - y - h, l.forEach((S) => {
4921
4921
  i ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
4922
4922
  }), n.centeredSlides && n.cssMode && (Wt(r, "--swiper-centered-offset-before", ""), Wt(r, "--swiper-centered-offset-after", "")), n.cssMode && (Wt(r, "--swiper-slides-offset-before", `${y}px`), Wt(r, "--swiper-slides-offset-after", `${h}px`));
4923
- const P = n.grid && n.grid.rows > 1 && e.grid;
4924
- P ? e.grid.initSlides(l) : e.grid && e.grid.unsetSlides();
4923
+ const D = n.grid && n.grid.rows > 1 && e.grid;
4924
+ D ? e.grid.initSlides(l) : e.grid && e.grid.unsetSlides();
4925
4925
  let A;
4926
4926
  const x = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((S) => typeof n.breakpoints[S].slidesPerView < "u").length > 0;
4927
4927
  for (let S = 0; S < c; S += 1) {
4928
4928
  A = 0;
4929
- const N = l[S];
4930
- if (!(N && (P && e.grid.updateSlide(S, N, l), wt(N, "display") === "none"))) {
4929
+ const k = l[S];
4930
+ if (!(k && (D && e.grid.updateSlide(S, k, l), wt(k, "display") === "none"))) {
4931
4931
  if (o && n.slidesPerView === "auto")
4932
- n.virtual.slidesPerViewAutoSlideSize && (A = n.virtual.slidesPerViewAutoSlideSize), A && N && (n.roundLengths && (A = Math.floor(A)), N.style[e.getDirectionLabel("width")] = `${A}px`);
4932
+ n.virtual.slidesPerViewAutoSlideSize && (A = n.virtual.slidesPerViewAutoSlideSize), A && k && (n.roundLengths && (A = Math.floor(A)), k.style[e.getDirectionLabel("width")] = `${A}px`);
4933
4933
  else if (n.slidesPerView === "auto") {
4934
- x && (N.style[e.getDirectionLabel("width")] = "");
4935
- const O = getComputedStyle(N), D = N.style.transform, k = N.style.webkitTransform;
4936
- if (D && (N.style.transform = "none"), k && (N.style.webkitTransform = "none"), n.roundLengths)
4937
- A = e.isHorizontal() ? Pa(N, "width") : Pa(N, "height");
4934
+ x && (k.style[e.getDirectionLabel("width")] = "");
4935
+ const O = getComputedStyle(k), P = k.style.transform, N = k.style.webkitTransform;
4936
+ if (P && (k.style.transform = "none"), N && (k.style.webkitTransform = "none"), n.roundLengths)
4937
+ A = e.isHorizontal() ? Pa(k, "width") : Pa(k, "height");
4938
4938
  else {
4939
4939
  const C = t(O, "width"), B = t(O, "padding-left"), $ = t(O, "padding-right"), H = t(O, "margin-left"), q = t(O, "margin-right"), I = O.getPropertyValue("box-sizing");
4940
4940
  if (I && I === "border-box")
@@ -4943,51 +4943,51 @@ function yd() {
4943
4943
  const {
4944
4944
  clientWidth: z,
4945
4945
  offsetWidth: X
4946
- } = N;
4946
+ } = k;
4947
4947
  A = C + B + $ + H + q + (X - z);
4948
4948
  }
4949
4949
  }
4950
- D && (N.style.transform = D), k && (N.style.webkitTransform = k), n.roundLengths && (A = Math.floor(A));
4950
+ P && (k.style.transform = P), N && (k.style.webkitTransform = N), n.roundLengths && (A = Math.floor(A));
4951
4951
  } else
4952
- A = (b - (n.slidesPerView - 1) * T) / n.slidesPerView, n.roundLengths && (A = Math.floor(A)), N && (N.style[e.getDirectionLabel("width")] = `${A}px`);
4953
- N && (N.swiperSlideSize = A), p.push(A), n.centeredSlides ? (v = v + A / 2 + w / 2 + T, w === 0 && S !== 0 && (v = v - b / 2 - T), S === 0 && (v = v - b / 2 - T), Math.abs(v) < 1 / 1e3 && (v = 0), n.roundLengths && (v = Math.floor(v)), _ % n.slidesPerGroup === 0 && f.push(v), g.push(v)) : (n.roundLengths && (v = Math.floor(v)), (_ - Math.min(e.params.slidesPerGroupSkip, _)) % e.params.slidesPerGroup === 0 && f.push(v), g.push(v), v = v + A + T), e.virtualSize += A + T, w = A, _ += 1;
4952
+ A = (b - (n.slidesPerView - 1) * T) / n.slidesPerView, n.roundLengths && (A = Math.floor(A)), k && (k.style[e.getDirectionLabel("width")] = `${A}px`);
4953
+ k && (k.swiperSlideSize = A), p.push(A), n.centeredSlides ? (v = v + A / 2 + w / 2 + T, w === 0 && S !== 0 && (v = v - b / 2 - T), S === 0 && (v = v - b / 2 - T), Math.abs(v) < 1 / 1e3 && (v = 0), n.roundLengths && (v = Math.floor(v)), _ % n.slidesPerGroup === 0 && f.push(v), g.push(v)) : (n.roundLengths && (v = Math.floor(v)), (_ - Math.min(e.params.slidesPerGroupSkip, _)) % e.params.slidesPerGroup === 0 && f.push(v), g.push(v), v = v + A + T), e.virtualSize += A + T, w = A, _ += 1;
4954
4954
  }
4955
4955
  }
4956
- if (e.virtualSize = Math.max(e.virtualSize, b) + h, 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`), P && e.grid.updateWrapperSize(A, f), !n.centeredSlides) {
4957
- const S = n.slidesPerView !== "auto" && n.slidesPerView % 1 !== 0, N = n.snapToSlideEdge && !n.loop && (n.slidesPerView === "auto" || S);
4956
+ if (e.virtualSize = Math.max(e.virtualSize, b) + h, 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`), D && e.grid.updateWrapperSize(A, f), !n.centeredSlides) {
4957
+ const S = n.slidesPerView !== "auto" && n.slidesPerView % 1 !== 0, k = n.snapToSlideEdge && !n.loop && (n.slidesPerView === "auto" || S);
4958
4958
  let O = f.length;
4959
- if (N) {
4960
- let k;
4959
+ if (k) {
4960
+ let N;
4961
4961
  if (n.slidesPerView === "auto") {
4962
- k = 1;
4962
+ N = 1;
4963
4963
  let C = 0;
4964
4964
  for (let B = p.length - 1; B >= 0 && (C += p[B] + (B < p.length - 1 ? T : 0), C <= b); B -= 1)
4965
- k = p.length - B;
4965
+ N = p.length - B;
4966
4966
  } else
4967
- k = Math.floor(n.slidesPerView);
4968
- O = Math.max(c - k, 0);
4967
+ N = Math.floor(n.slidesPerView);
4968
+ O = Math.max(c - N, 0);
4969
4969
  }
4970
- const D = [];
4971
- for (let k = 0; k < f.length; k += 1) {
4972
- let C = f[k];
4973
- n.roundLengths && (C = Math.floor(C)), N ? k <= O && D.push(C) : f[k] <= e.virtualSize - b && D.push(C);
4970
+ const P = [];
4971
+ for (let N = 0; N < f.length; N += 1) {
4972
+ let C = f[N];
4973
+ n.roundLengths && (C = Math.floor(C)), k ? N <= O && P.push(C) : f[N] <= e.virtualSize - b && P.push(C);
4974
4974
  }
4975
- f = D, Math.floor(e.virtualSize - b) - Math.floor(f[f.length - 1]) > 1 && (N || f.push(e.virtualSize - b));
4975
+ f = P, Math.floor(e.virtualSize - b) - Math.floor(f[f.length - 1]) > 1 && (k || f.push(e.virtualSize - b));
4976
4976
  }
4977
4977
  if (o && n.loop) {
4978
4978
  const S = p[0] + T;
4979
4979
  if (n.slidesPerGroup > 1) {
4980
- const N = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / n.slidesPerGroup), O = S * n.slidesPerGroup;
4981
- for (let D = 0; D < N; D += 1)
4980
+ const k = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / n.slidesPerGroup), O = S * n.slidesPerGroup;
4981
+ for (let P = 0; P < k; P += 1)
4982
4982
  f.push(f[f.length - 1] + O);
4983
4983
  }
4984
- for (let N = 0; N < e.virtual.slidesBefore + e.virtual.slidesAfter; N += 1)
4984
+ for (let k = 0; k < e.virtual.slidesBefore + e.virtual.slidesAfter; k += 1)
4985
4985
  n.slidesPerGroup === 1 && f.push(f[f.length - 1] + S), g.push(g[g.length - 1] + S), e.virtualSize += S;
4986
4986
  }
4987
4987
  if (f.length === 0 && (f = [0]), T !== 0) {
4988
4988
  const S = e.isHorizontal() && i ? "marginLeft" : e.getDirectionLabel("marginRight");
4989
- l.filter((N, O) => !n.cssMode || n.loop ? !0 : O !== l.length - 1).forEach((N) => {
4990
- N.style[S] = `${T}px`;
4989
+ l.filter((k, O) => !n.cssMode || n.loop ? !0 : O !== l.length - 1).forEach((k) => {
4990
+ k.style[S] = `${T}px`;
4991
4991
  });
4992
4992
  }
4993
4993
  if (n.centeredSlides && n.centeredSlidesBounds) {
@@ -4995,21 +4995,21 @@ function yd() {
4995
4995
  p.forEach((O) => {
4996
4996
  S += O + (T || 0);
4997
4997
  }), S -= T;
4998
- const N = S > b ? S - b : 0;
4999
- f = f.map((O) => O <= 0 ? -y : O > N ? N + h : O);
4998
+ const k = S > b ? S - b : 0;
4999
+ f = f.map((O) => O <= 0 ? -y : O > k ? k + h : O);
5000
5000
  }
5001
5001
  if (n.centerInsufficientSlides) {
5002
5002
  let S = 0;
5003
5003
  p.forEach((O) => {
5004
5004
  S += O + (T || 0);
5005
5005
  }), S -= T;
5006
- const N = (y || 0) + (h || 0);
5007
- if (S + N < b) {
5008
- const O = (b - S - N) / 2;
5009
- f.forEach((D, k) => {
5010
- f[k] = D - O;
5011
- }), g.forEach((D, k) => {
5012
- g[k] = D + O;
5006
+ const k = (y || 0) + (h || 0);
5007
+ if (S + k < b) {
5008
+ const O = (b - S - k) / 2;
5009
+ f.forEach((P, N) => {
5010
+ f[N] = P - O;
5011
+ }), g.forEach((P, N) => {
5012
+ g[N] = P + O;
5013
5013
  });
5014
5014
  }
5015
5015
  }
@@ -5020,12 +5020,12 @@ function yd() {
5020
5020
  slidesSizesGrid: p
5021
5021
  }), n.centeredSlides && n.cssMode && !n.centeredSlidesBounds) {
5022
5022
  Wt(r, "--swiper-centered-offset-before", `${-f[0]}px`), Wt(r, "--swiper-centered-offset-after", `${e.size / 2 - p[p.length - 1] / 2}px`);
5023
- const S = -e.snapGrid[0], N = -e.slidesGrid[0];
5024
- e.snapGrid = e.snapGrid.map((O) => O + S), e.slidesGrid = e.slidesGrid.map((O) => O + N);
5023
+ const S = -e.snapGrid[0], k = -e.slidesGrid[0];
5024
+ e.snapGrid = e.snapGrid.map((O) => O + S), e.slidesGrid = e.slidesGrid.map((O) => O + k);
5025
5025
  }
5026
5026
  if (c !== u && e.emit("slidesLengthChange"), f.length !== m && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), g.length !== E && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !o && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
5027
- const S = `${n.containerModifierClass}backface-hidden`, N = e.el.classList.contains(S);
5028
- c <= n.maxBackfaceHiddenSlides ? N || e.el.classList.add(S) : N && e.el.classList.remove(S);
5027
+ const S = `${n.containerModifierClass}backface-hidden`, k = e.el.classList.contains(S);
5028
+ c <= n.maxBackfaceHiddenSlides ? k || e.el.classList.add(S) : k && e.el.classList.remove(S);
5029
5029
  }
5030
5030
  }
5031
5031
  function xd(e) {
@@ -5406,9 +5406,9 @@ function $d(e = 0, t, n = !0, r, a) {
5406
5406
  m >= u.length && (m = u.length - 1);
5407
5407
  const E = -u[m];
5408
5408
  if (o.normalizeSlideIndex)
5409
- for (let P = 0; P < l.length; P += 1) {
5410
- const A = -Math.floor(E * 100), x = Math.floor(l[P] * 100), S = Math.floor(l[P + 1] * 100);
5411
- typeof l[P + 1] < "u" ? A >= x && A < S - (S - x) / 2 ? s = P : A >= x && A < S && (s = P + 1) : A >= x && (s = P);
5409
+ for (let D = 0; D < l.length; D += 1) {
5410
+ const A = -Math.floor(E * 100), x = Math.floor(l[D] * 100), S = Math.floor(l[D + 1] * 100);
5411
+ typeof l[D + 1] < "u" ? A >= x && A < S - (S - x) / 2 ? s = D : A >= x && A < S && (s = D + 1) : A >= x && (s = D);
5412
5412
  }
5413
5413
  if (i.initialized && s !== f && (!i.allowSlideNext && (g ? E > i.translate && E > i.minTranslate() : E < i.translate && E < i.minTranslate()) || !i.allowSlidePrev && E > i.translate && E > i.maxTranslate() && (f || 0) !== s))
5414
5414
  return !1;
@@ -5419,11 +5419,11 @@ function $d(e = 0, t, n = !0, r, a) {
5419
5419
  if (!(T && a) && (g && -E === i.translate || !g && E === i.translate))
5420
5420
  return i.updateActiveIndex(s), o.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), o.effect !== "slide" && i.setTranslate(E), b !== "reset" && (i.transitionStart(n, b), i.transitionEnd(n, b)), !1;
5421
5421
  if (o.cssMode) {
5422
- const P = i.isHorizontal(), A = g ? E : -E;
5422
+ const D = i.isHorizontal(), A = g ? E : -E;
5423
5423
  if (t === 0)
5424
5424
  T && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), T && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
5425
- p[P ? "scrollLeft" : "scrollTop"] = A;
5426
- })) : p[P ? "scrollLeft" : "scrollTop"] = A, T && requestAnimationFrame(() => {
5425
+ p[D ? "scrollLeft" : "scrollTop"] = A;
5426
+ })) : p[D ? "scrollLeft" : "scrollTop"] = A, T && requestAnimationFrame(() => {
5427
5427
  i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
5428
5428
  });
5429
5429
  else {
@@ -5431,10 +5431,10 @@ function $d(e = 0, t, n = !0, r, a) {
5431
5431
  return No({
5432
5432
  swiper: i,
5433
5433
  targetPosition: A,
5434
- side: P ? "left" : "top"
5434
+ side: D ? "left" : "top"
5435
5435
  }), !0;
5436
5436
  p.scrollTo({
5437
- [P ? "left" : "top"]: A,
5437
+ [D ? "left" : "top"]: A,
5438
5438
  behavior: "smooth"
5439
5439
  });
5440
5440
  }
@@ -5679,22 +5679,22 @@ function Xd({
5679
5679
  w % v !== 0 && (w += v - w % v), w += p.loopAdditionalSlides, u.loopedSlides = w;
5680
5680
  const _ = u.grid && p.grid && p.grid.rows > 1;
5681
5681
  l.length < T + w || u.params.effect === "cards" && l.length < T + w * 2 ? yr("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") : _ && p.grid.fill === "row" && yr("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
5682
- const P = [], A = [], x = _ ? Math.ceil(l.length / p.grid.rows) : l.length, S = i && x - E < T && !b;
5683
- let N = S ? E : u.activeIndex;
5684
- typeof a > "u" ? a = u.getSlideIndex(l.find((H) => H.classList.contains(p.slideActiveClass))) : N = a;
5685
- const O = n === "next" || !n, D = n === "prev" || !n;
5686
- let k = 0, C = 0;
5682
+ const D = [], A = [], x = _ ? Math.ceil(l.length / p.grid.rows) : l.length, S = i && x - E < T && !b;
5683
+ let k = S ? E : u.activeIndex;
5684
+ typeof a > "u" ? a = u.getSlideIndex(l.find((H) => H.classList.contains(p.slideActiveClass))) : k = a;
5685
+ const O = n === "next" || !n, P = n === "prev" || !n;
5686
+ let N = 0, C = 0;
5687
5687
  const $ = (_ ? l[a].column : a) + (b && typeof r > "u" ? -T / 2 + 0.5 : 0);
5688
5688
  if ($ < w) {
5689
- k = Math.max(w - $, v);
5689
+ N = Math.max(w - $, v);
5690
5690
  for (let H = 0; H < w - $; H += 1) {
5691
5691
  const q = H - Math.floor(H / x) * x;
5692
5692
  if (_) {
5693
5693
  const I = x - q - 1;
5694
5694
  for (let z = l.length - 1; z >= 0; z -= 1)
5695
- l[z].column === I && P.push(z);
5695
+ l[z].column === I && D.push(z);
5696
5696
  } else
5697
- P.push(x - q - 1);
5697
+ D.push(x - q - 1);
5698
5698
  }
5699
5699
  } else if ($ + T > x - w) {
5700
5700
  C = Math.max($ - (x - w * 2), v), S && (C = Math.max(C, T - x + E + 1));
@@ -5707,25 +5707,25 @@ function Xd({
5707
5707
  }
5708
5708
  if (u.__preventObserver__ = !0, requestAnimationFrame(() => {
5709
5709
  u.__preventObserver__ = !1;
5710
- }), u.params.effect === "cards" && l.length < T + w * 2 && (A.includes(a) && A.splice(A.indexOf(a), 1), P.includes(a) && P.splice(P.indexOf(a), 1)), D && P.forEach((H) => {
5710
+ }), u.params.effect === "cards" && l.length < T + w * 2 && (A.includes(a) && A.splice(A.indexOf(a), 1), D.includes(a) && D.splice(D.indexOf(a), 1)), P && D.forEach((H) => {
5711
5711
  l[H].swiperLoopMoveDOM = !0, g.prepend(l[H]), l[H].swiperLoopMoveDOM = !1;
5712
5712
  }), O && A.forEach((H) => {
5713
5713
  l[H].swiperLoopMoveDOM = !0, g.append(l[H]), l[H].swiperLoopMoveDOM = !1;
5714
- }), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : _ && (P.length > 0 && D || A.length > 0 && O) && u.slides.forEach((H, q) => {
5714
+ }), u.recalcSlides(), p.slidesPerView === "auto" ? u.updateSlides() : _ && (D.length > 0 && P || A.length > 0 && O) && u.slides.forEach((H, q) => {
5715
5715
  u.grid.updateSlide(q, H, u.slides);
5716
5716
  }), p.watchSlidesProgress && u.updateSlidesOffset(), t) {
5717
- if (P.length > 0 && D) {
5717
+ if (D.length > 0 && P) {
5718
5718
  if (typeof e > "u") {
5719
- const H = u.slidesGrid[N], I = u.slidesGrid[N + k] - H;
5720
- o ? u.setTranslate(u.translate - I) : (u.slideTo(N + Math.ceil(k), 0, !1, !0), r && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - I, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - I));
5719
+ const H = u.slidesGrid[k], I = u.slidesGrid[k + N] - H;
5720
+ o ? u.setTranslate(u.translate - I) : (u.slideTo(k + Math.ceil(N), 0, !1, !0), r && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - I, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - I));
5721
5721
  } else if (r) {
5722
- const H = _ ? P.length / p.grid.rows : P.length;
5722
+ const H = _ ? D.length / p.grid.rows : D.length;
5723
5723
  u.slideTo(u.activeIndex + H, 0, !1, !0), u.touchEventsData.currentTranslate = u.translate;
5724
5724
  }
5725
5725
  } else if (A.length > 0 && O)
5726
5726
  if (typeof e > "u") {
5727
- const H = u.slidesGrid[N], I = u.slidesGrid[N - C] - H;
5728
- o ? u.setTranslate(u.translate - I) : (u.slideTo(N - C, 0, !1, !0), r && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - I, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - I));
5727
+ const H = u.slidesGrid[k], I = u.slidesGrid[k - C] - H;
5728
+ o ? u.setTranslate(u.translate - I) : (u.slideTo(k - C, 0, !1, !0), r && (u.touchEventsData.startTranslate = u.touchEventsData.startTranslate - I, u.touchEventsData.currentTranslate = u.touchEventsData.currentTranslate - I));
5729
5729
  } else {
5730
5730
  const H = _ ? A.length / p.grid.rows : A.length;
5731
5731
  u.slideTo(u.activeIndex - H, 0, !1, !0);
@@ -6149,8 +6149,8 @@ function pf() {
6149
6149
  const f = (l in i ? i[l] : void 0) || e.originalParams, g = es(e, r), p = es(e, f), y = e.params.grabCursor, h = f.grabCursor, m = r.enabled;
6150
6150
  g && !p ? (a.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !g && p && (a.classList.add(`${r.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && r.grid.fill === "column") && a.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), y && !h ? e.unsetGrabCursor() : !y && h && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((_) => {
6151
6151
  if (typeof f[_] > "u") return;
6152
- const P = r[_] && r[_].enabled, A = f[_] && f[_].enabled;
6153
- P && !A && e[_].disable(), !P && A && e[_].enable();
6152
+ const D = r[_] && r[_].enabled, A = f[_] && f[_].enabled;
6153
+ D && !A && e[_].disable(), !D && A && e[_].enable();
6154
6154
  });
6155
6155
  const E = f.direction && f.direction !== r.direction, b = r.loop && (f.slidesPerView !== r.slidesPerView || E), T = r.loop;
6156
6156
  E && n && e.changeDirection(), Qe(e.params, f);
@@ -6883,15 +6883,15 @@ function Sf({
6883
6883
  } = e;
6884
6884
  let h, m, E, b, T, v, w, _;
6885
6885
  r.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed && l.thumbs && (!l.thumbs.swiper || l.thumbs.swiper.destroyed) && (h = !0), r.includes("controller") && n.controller && n.controller.control && l.controller && !l.controller.control && (m = !0), r.includes("pagination") && n.pagination && (n.pagination.el || o) && (l.pagination || l.pagination === !1) && c && !c.el && (E = !0), r.includes("scrollbar") && n.scrollbar && (n.scrollbar.el || s) && (l.scrollbar || l.scrollbar === !1) && g && !g.el && (b = !0), r.includes("navigation") && n.navigation && (n.navigation.prevEl || i) && (n.navigation.nextEl || a) && (l.navigation || l.navigation === !1) && f && !f.prevEl && !f.nextEl && (T = !0);
6886
- const P = (A) => {
6886
+ const D = (A) => {
6887
6887
  e[A] && (e[A].destroy(), A === "navigation" ? (e.isElement && (e[A].prevEl.remove(), e[A].nextEl.remove()), l[A].prevEl = void 0, l[A].nextEl = void 0, e[A].prevEl = void 0, e[A].nextEl = void 0) : (e.isElement && e[A].el.remove(), l[A].el = void 0, e[A].el = void 0));
6888
6888
  };
6889
6889
  r.includes("loop") && e.isElement && (l.loop && !n.loop ? v = !0 : !l.loop && n.loop ? w = !0 : _ = !0), u.forEach((A) => {
6890
6890
  if ($t(l[A]) && $t(n[A]))
6891
- Object.assign(l[A], n[A]), (A === "navigation" || A === "pagination" || A === "scrollbar") && "enabled" in n[A] && !n[A].enabled && P(A);
6891
+ Object.assign(l[A], n[A]), (A === "navigation" || A === "pagination" || A === "scrollbar") && "enabled" in n[A] && !n[A].enabled && D(A);
6892
6892
  else {
6893
6893
  const x = n[A];
6894
- (x === !0 || x === !1) && (A === "navigation" || A === "pagination" || A === "scrollbar") ? x === !1 && P(A) : l[A] = n[A];
6894
+ (x === !0 || x === !1) && (A === "navigation" || A === "pagination" || A === "scrollbar") ? x === !1 && D(A) : l[A] = n[A];
6895
6895
  }
6896
6896
  }), u.includes("controller") && !m && e.controller && e.controller.control && l.controller && l.controller.control && (e.controller.control = l.controller.control), r.includes("children") && t && p && l.virtual.enabled ? (p.slides = t, p.update(!0)) : r.includes("virtual") && p && l.virtual.enabled && (t && (p.slides = t), p.update(!0)), r.includes("children") && t && l.loop && (_ = !0), h && y.init() && y.update(!0), m && (e.controller.control = l.controller.control), E && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (l.pagination.el = o), c.init(), c.render(), c.update()), b && (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), g.init(), g.updateSize(), g.setTranslate()), T && (e.isElement && ((!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-next"), Dn(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"), Dn(i, e.navigation.arrowSvg), i.part.add("button-prev"), e.el.appendChild(i))), a && (l.navigation.nextEl = a), i && (l.navigation.prevEl = i), f.init(), f.update()), r.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), r.includes("direction") && e.changeDirection(n.direction, !1), (v || _) && e.loopDestroy(), (w || _) && e.loopCreate(), e.update();
6897
6897
  }
@@ -7022,38 +7022,38 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
7022
7022
  } = {}, s) => {
7023
7023
  let o = !1;
7024
7024
  const [u, l] = ae("swiper"), [c, f] = ae(null), [g, p] = ae(!1), y = Z(!1), h = Z(null), m = Z(null), E = Z(null), b = Z(null), T = Z(null), v = Z(null), w = Z(null), _ = Z(null), {
7025
- params: P,
7025
+ params: D,
7026
7026
  passedParams: A,
7027
7027
  rest: x,
7028
7028
  events: S
7029
7029
  } = _f(i), {
7030
- slides: N,
7030
+ slides: k,
7031
7031
  slots: O
7032
- } = kf(r), D = () => {
7032
+ } = kf(r), P = () => {
7033
7033
  p(!g);
7034
7034
  };
7035
- Object.assign(P.on, {
7035
+ Object.assign(D.on, {
7036
7036
  _containerClasses(H, q) {
7037
7037
  l(q);
7038
7038
  }
7039
7039
  });
7040
- const k = () => {
7041
- Object.assign(P.on, S), o = !0;
7040
+ const N = () => {
7041
+ Object.assign(D.on, S), o = !0;
7042
7042
  const H = {
7043
- ...P
7043
+ ...D
7044
7044
  };
7045
7045
  if (delete H.wrapperClass, m.current = new si(H), m.current.virtual && m.current.params.virtual.enabled) {
7046
- m.current.virtual.slides = N;
7046
+ m.current.virtual.slides = k;
7047
7047
  const q = {
7048
7048
  cache: !1,
7049
- slides: N,
7049
+ slides: k,
7050
7050
  renderExternal: f,
7051
7051
  renderExternalUpdate: !1
7052
7052
  };
7053
7053
  Jt(m.current.params.virtual, q), Jt(m.current.originalParams.virtual, q);
7054
7054
  }
7055
7055
  };
7056
- h.current || k(), m.current && m.current.on("_beforeBreakpoint", D);
7056
+ h.current || N(), m.current && m.current.on("_beforeBreakpoint", P);
7057
7057
  const C = () => {
7058
7058
  o || !S || !m.current || Object.keys(S).forEach((H) => {
7059
7059
  m.current.on(H, S[H]);
@@ -7064,27 +7064,27 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
7064
7064
  });
7065
7065
  };
7066
7066
  se(() => () => {
7067
- m.current && m.current.off("_beforeBreakpoint", D);
7067
+ m.current && m.current.off("_beforeBreakpoint", P);
7068
7068
  }), se(() => {
7069
7069
  !y.current && m.current && (m.current.emitSlidesClasses(), y.current = !0);
7070
7070
  }), Sn(() => {
7071
7071
  if (s && (s.current = h.current), !!h.current)
7072
- return m.current.destroyed && k(), vf({
7072
+ return m.current.destroyed && N(), vf({
7073
7073
  el: h.current,
7074
7074
  nextEl: T.current,
7075
7075
  prevEl: v.current,
7076
7076
  paginationEl: w.current,
7077
7077
  scrollbarEl: _.current,
7078
7078
  swiper: m.current
7079
- }, P), a && !m.current.destroyed && a(m.current), () => {
7079
+ }, D), a && !m.current.destroyed && a(m.current), () => {
7080
7080
  m.current && !m.current.destroyed && m.current.destroy(!0, !1);
7081
7081
  };
7082
7082
  }, []), Sn(() => {
7083
7083
  C();
7084
- const H = wf(A, E.current, N, b.current, (q) => q.key);
7085
- return E.current = A, b.current = N, H.length && m.current && !m.current.destroyed && Sf({
7084
+ const H = wf(A, E.current, k, b.current, (q) => q.key);
7085
+ return E.current = A, b.current = k, H.length && m.current && !m.current.destroyed && Sf({
7086
7086
  swiper: m.current,
7087
- slides: N,
7087
+ slides: k,
7088
7088
  passedParams: A,
7089
7089
  changedParams: H,
7090
7090
  nextEl: T.current,
@@ -7098,7 +7098,7 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
7098
7098
  Nf(m.current);
7099
7099
  }, [c]);
7100
7100
  function $() {
7101
- return P.virtual ? If(m.current, N, c) : N.map((H, q) => /* @__PURE__ */ _e.cloneElement(H, {
7101
+ return D.virtual ? If(m.current, k, c) : k.map((H, q) => /* @__PURE__ */ _e.cloneElement(H, {
7102
7102
  swiper: m.current,
7103
7103
  swiperSlideIndex: q
7104
7104
  }));
@@ -7109,17 +7109,17 @@ const ts = /* @__PURE__ */ Ao(null), Lf = /* @__PURE__ */ Ao(null), qo = /* @__P
7109
7109
  }, x), /* @__PURE__ */ _e.createElement(Lf.Provider, {
7110
7110
  value: m.current
7111
7111
  }, O["container-start"], /* @__PURE__ */ _e.createElement(n, {
7112
- className: Af(P.wrapperClass)
7113
- }, O["wrapper-start"], $(), O["wrapper-end"]), Ro(P) && /* @__PURE__ */ _e.createElement(_e.Fragment, null, /* @__PURE__ */ _e.createElement("div", {
7112
+ className: Af(D.wrapperClass)
7113
+ }, O["wrapper-start"], $(), O["wrapper-end"]), Ro(D) && /* @__PURE__ */ _e.createElement(_e.Fragment, null, /* @__PURE__ */ _e.createElement("div", {
7114
7114
  ref: v,
7115
7115
  className: "swiper-button-prev"
7116
7116
  }), /* @__PURE__ */ _e.createElement("div", {
7117
7117
  ref: T,
7118
7118
  className: "swiper-button-next"
7119
- })), Fo(P) && /* @__PURE__ */ _e.createElement("div", {
7119
+ })), Fo(D) && /* @__PURE__ */ _e.createElement("div", {
7120
7120
  ref: _,
7121
7121
  className: "swiper-scrollbar"
7122
- }), Bo(P) && /* @__PURE__ */ _e.createElement("div", {
7122
+ }), Bo(D) && /* @__PURE__ */ _e.createElement("div", {
7123
7123
  ref: w,
7124
7124
  className: "swiper-pagination"
7125
7125
  }), O["container-end"]));
@@ -7405,35 +7405,35 @@ function Df({
7405
7405
  let T = e.pagination.el;
7406
7406
  T = Be(T);
7407
7407
  let v, w;
7408
- const _ = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, P = e.params.loop ? Math.ceil(_ / e.params.slidesPerGroup) : e.snapGrid.length;
7408
+ const _ = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, D = e.params.loop ? Math.ceil(_ / e.params.slidesPerGroup) : e.snapGrid.length;
7409
7409
  if (e.params.loop ? (w = e.previousRealIndex || 0, v = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (v = e.snapIndex, w = e.previousSnapIndex) : (w = e.previousIndex || 0, v = e.activeIndex || 0), b.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
7410
7410
  const A = e.pagination.bullets;
7411
- let x, S, N;
7411
+ let x, S, k;
7412
7412
  if (b.dynamicBullets && (i = Pa(A[0], e.isHorizontal() ? "width" : "height"), T.forEach((O) => {
7413
7413
  O.style[e.isHorizontal() ? "width" : "height"] = `${i * (b.dynamicMainBullets + 4)}px`;
7414
- }), b.dynamicMainBullets > 1 && w !== void 0 && (s += v - (w || 0), s > b.dynamicMainBullets - 1 ? s = b.dynamicMainBullets - 1 : s < 0 && (s = 0)), x = Math.max(v - s, 0), S = x + (Math.min(A.length, b.dynamicMainBullets) - 1), N = (S + x) / 2), A.forEach((O) => {
7415
- const D = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((k) => `${b.bulletActiveClass}${k}`)].map((k) => typeof k == "string" && k.includes(" ") ? k.split(" ") : k).flat();
7416
- O.classList.remove(...D);
7414
+ }), b.dynamicMainBullets > 1 && w !== void 0 && (s += v - (w || 0), s > b.dynamicMainBullets - 1 ? s = b.dynamicMainBullets - 1 : s < 0 && (s = 0)), x = Math.max(v - s, 0), S = x + (Math.min(A.length, b.dynamicMainBullets) - 1), k = (S + x) / 2), A.forEach((O) => {
7415
+ const P = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((N) => `${b.bulletActiveClass}${N}`)].map((N) => typeof N == "string" && N.includes(" ") ? N.split(" ") : N).flat();
7416
+ O.classList.remove(...P);
7417
7417
  }), T.length > 1)
7418
7418
  A.forEach((O) => {
7419
- const D = Cr(O);
7420
- D === v ? O.classList.add(...b.bulletActiveClass.split(" ")) : e.isElement && O.setAttribute("part", "bullet"), b.dynamicBullets && (D >= x && D <= S && O.classList.add(...`${b.bulletActiveClass}-main`.split(" ")), D === x && u(O, "prev"), D === S && u(O, "next"));
7419
+ const P = Cr(O);
7420
+ P === v ? O.classList.add(...b.bulletActiveClass.split(" ")) : e.isElement && O.setAttribute("part", "bullet"), b.dynamicBullets && (P >= x && P <= S && O.classList.add(...`${b.bulletActiveClass}-main`.split(" ")), P === x && u(O, "prev"), P === S && u(O, "next"));
7421
7421
  });
7422
7422
  else {
7423
7423
  const O = A[v];
7424
- if (O && O.classList.add(...b.bulletActiveClass.split(" ")), e.isElement && A.forEach((D, k) => {
7425
- D.setAttribute("part", k === v ? "bullet-active" : "bullet");
7424
+ if (O && O.classList.add(...b.bulletActiveClass.split(" ")), e.isElement && A.forEach((P, N) => {
7425
+ P.setAttribute("part", N === v ? "bullet-active" : "bullet");
7426
7426
  }), b.dynamicBullets) {
7427
- const D = A[x], k = A[S];
7427
+ const P = A[x], N = A[S];
7428
7428
  for (let C = x; C <= S; C += 1)
7429
7429
  A[C] && A[C].classList.add(...`${b.bulletActiveClass}-main`.split(" "));
7430
- u(D, "prev"), u(k, "next");
7430
+ u(P, "prev"), u(N, "next");
7431
7431
  }
7432
7432
  }
7433
7433
  if (b.dynamicBullets) {
7434
- const O = Math.min(A.length, b.dynamicMainBullets + 4), D = (i * O - i) / 2 - N * i, k = E ? "right" : "left";
7434
+ const O = Math.min(A.length, b.dynamicMainBullets + 4), P = (i * O - i) / 2 - k * i, N = E ? "right" : "left";
7435
7435
  A.forEach((C) => {
7436
- C.style[e.isHorizontal() ? k : "top"] = `${D}px`;
7436
+ C.style[e.isHorizontal() ? N : "top"] = `${P}px`;
7437
7437
  });
7438
7438
  }
7439
7439
  }
@@ -7441,17 +7441,17 @@ function Df({
7441
7441
  if (b.type === "fraction" && (A.querySelectorAll(mn(b.currentClass)).forEach((S) => {
7442
7442
  S.textContent = b.formatFractionCurrent(v + 1);
7443
7443
  }), A.querySelectorAll(mn(b.totalClass)).forEach((S) => {
7444
- S.textContent = b.formatFractionTotal(P);
7444
+ S.textContent = b.formatFractionTotal(D);
7445
7445
  })), b.type === "progressbar") {
7446
7446
  let S;
7447
7447
  b.progressbarOpposite ? S = e.isHorizontal() ? "vertical" : "horizontal" : S = e.isHorizontal() ? "horizontal" : "vertical";
7448
- const N = (v + 1) / P;
7449
- let O = 1, D = 1;
7450
- S === "horizontal" ? O = N : D = N, A.querySelectorAll(mn(b.progressbarFillClass)).forEach((k) => {
7451
- k.style.transform = `translate3d(0,0,0) scaleX(${O}) scaleY(${D})`, k.style.transitionDuration = `${e.params.speed}ms`;
7448
+ const k = (v + 1) / D;
7449
+ let O = 1, P = 1;
7450
+ S === "horizontal" ? O = k : P = k, A.querySelectorAll(mn(b.progressbarFillClass)).forEach((N) => {
7451
+ N.style.transform = `translate3d(0,0,0) scaleX(${O}) scaleY(${P})`, N.style.transitionDuration = `${e.params.speed}ms`;
7452
7452
  });
7453
7453
  }
7454
- b.type === "custom" && b.renderCustom ? (Dn(A, b.renderCustom(e, v + 1, P)), x === 0 && r("paginationRender", A)) : (x === 0 && r("paginationRender", A), r("paginationUpdate", A)), e.params.watchOverflow && e.enabled && A.classList[e.isLocked ? "add" : "remove"](b.lockClass);
7454
+ b.type === "custom" && b.renderCustom ? (Dn(A, b.renderCustom(e, v + 1, D)), x === 0 && r("paginationRender", A)) : (x === 0 && r("paginationRender", A), r("paginationUpdate", A)), e.params.watchOverflow && e.enabled && A.classList[e.isLocked ? "add" : "remove"](b.lockClass);
7455
7455
  });
7456
7456
  }
7457
7457
  function g() {
@@ -8760,30 +8760,30 @@ function Wf() {
8760
8760
  if (!m) return [];
8761
8761
  E = E || {};
8762
8762
  var b = 1, T = 1;
8763
- function v(k) {
8764
- var C = k.match(t);
8763
+ function v(N) {
8764
+ var C = N.match(t);
8765
8765
  C && (b += C.length);
8766
- var B = k.lastIndexOf(u);
8767
- T = ~B ? k.length - B : T + k.length;
8766
+ var B = N.lastIndexOf(u);
8767
+ T = ~B ? N.length - B : T + N.length;
8768
8768
  }
8769
8769
  function w() {
8770
- var k = { line: b, column: T };
8770
+ var N = { line: b, column: T };
8771
8771
  return function(C) {
8772
- return C.position = new _(k), x(), C;
8772
+ return C.position = new _(N), x(), C;
8773
8773
  };
8774
8774
  }
8775
- function _(k) {
8776
- this.start = k, this.end = { line: b, column: T }, this.source = E.source;
8775
+ function _(N) {
8776
+ this.start = N, this.end = { line: b, column: T }, this.source = E.source;
8777
8777
  }
8778
8778
  _.prototype.content = m;
8779
- function P(k) {
8779
+ function D(N) {
8780
8780
  var C = new Error(
8781
- E.source + ":" + b + ":" + T + ": " + k
8781
+ E.source + ":" + b + ":" + T + ": " + N
8782
8782
  );
8783
- if (C.reason = k, C.filename = E.source, C.line = b, C.column = T, C.source = m, !E.silent) throw C;
8783
+ if (C.reason = N, C.filename = E.source, C.line = b, C.column = T, C.source = m, !E.silent) throw C;
8784
8784
  }
8785
- function A(k) {
8786
- var C = k.exec(m);
8785
+ function A(N) {
8786
+ var C = N.exec(m);
8787
8787
  if (C) {
8788
8788
  var B = C[0];
8789
8789
  return v(B), m = m.slice(B.length), C;
@@ -8792,31 +8792,31 @@ function Wf() {
8792
8792
  function x() {
8793
8793
  A(n);
8794
8794
  }
8795
- function S(k) {
8795
+ function S(N) {
8796
8796
  var C;
8797
- for (k = k || []; C = N(); )
8798
- C !== !1 && k.push(C);
8799
- return k;
8797
+ for (N = N || []; C = k(); )
8798
+ C !== !1 && N.push(C);
8799
+ return N;
8800
8800
  }
8801
- function N() {
8802
- var k = w();
8801
+ function k() {
8802
+ var N = w();
8803
8803
  if (!(l != m.charAt(0) || c != m.charAt(1))) {
8804
8804
  for (var C = 2; f != m.charAt(C) && (c != m.charAt(C) || l != m.charAt(C + 1)); )
8805
8805
  ++C;
8806
8806
  if (C += 2, f === m.charAt(C - 1))
8807
- return P("End of comment missing");
8807
+ return D("End of comment missing");
8808
8808
  var B = m.slice(2, C - 2);
8809
- return T += 2, v(B), m = m.slice(C), T += 2, k({
8809
+ return T += 2, v(B), m = m.slice(C), T += 2, N({
8810
8810
  type: g,
8811
8811
  comment: B
8812
8812
  });
8813
8813
  }
8814
8814
  }
8815
8815
  function O() {
8816
- var k = w(), C = A(r);
8816
+ var N = w(), C = A(r);
8817
8817
  if (C) {
8818
- if (N(), !A(a)) return P("property missing ':'");
8819
- var B = A(i), $ = k({
8818
+ if (k(), !A(a)) return D("property missing ':'");
8819
+ var B = A(i), $ = N({
8820
8820
  type: p,
8821
8821
  property: h(C[0].replace(e, f)),
8822
8822
  value: B ? h(B[0].replace(e, f)) : f
@@ -8824,14 +8824,14 @@ function Wf() {
8824
8824
  return A(s), $;
8825
8825
  }
8826
8826
  }
8827
- function D() {
8828
- var k = [];
8829
- S(k);
8827
+ function P() {
8828
+ var N = [];
8829
+ S(N);
8830
8830
  for (var C; C = O(); )
8831
- C !== !1 && (k.push(C), S(k));
8832
- return k;
8831
+ C !== !1 && (N.push(C), S(N));
8832
+ return N;
8833
8833
  }
8834
- return x(), D();
8834
+ return x(), P();
8835
8835
  }
8836
8836
  function h(m) {
8837
8837
  return m ? m.replace(o, f) : f;
@@ -9526,12 +9526,12 @@ function Lp(e) {
9526
9526
  break;
9527
9527
  }
9528
9528
  E(r);
9529
- let P = v;
9530
- for (; P < t.events.length; )
9531
- t.events[P][1].end = {
9529
+ let D = v;
9530
+ for (; D < t.events.length; )
9531
+ t.events[D][1].end = {
9532
9532
  ..._
9533
- }, P++;
9534
- return ft(t.events, w + 1, 0, t.events.slice(v)), t.events.length = P, l(T);
9533
+ }, D++;
9534
+ return ft(t.events, w + 1, 0, t.events.slice(v)), t.events.length = D, l(T);
9535
9535
  }
9536
9536
  return o(T);
9537
9537
  }
@@ -9587,8 +9587,8 @@ function Lp(e) {
9587
9587
  a.events[_][1].end.offset > s)
9588
9588
  )
9589
9589
  return;
9590
- const P = t.events.length;
9591
- let A = P, x, S;
9590
+ const D = t.events.length;
9591
+ let A = D, x, S;
9592
9592
  for (; A--; )
9593
9593
  if (t.events[A][0] === "exit" && t.events[A][1].type === "chunkFlow") {
9594
9594
  if (x) {
@@ -9597,11 +9597,11 @@ function Lp(e) {
9597
9597
  }
9598
9598
  x = !0;
9599
9599
  }
9600
- for (E(r), _ = P; _ < t.events.length; )
9600
+ for (E(r), _ = D; _ < t.events.length; )
9601
9601
  t.events[_][1].end = {
9602
9602
  ...S
9603
9603
  }, _++;
9604
- ft(t.events, A + 1, 0, t.events.slice(P)), t.events.length = _;
9604
+ ft(t.events, A + 1, 0, t.events.slice(D)), t.events.length = _;
9605
9605
  }
9606
9606
  }
9607
9607
  function E(T) {
@@ -9857,8 +9857,8 @@ function zp(e, t, n) {
9857
9857
  return l(_);
9858
9858
  }
9859
9859
  function l(_) {
9860
- const P = r.events[r.events.length - 1];
9861
- return i = P && P[1].type === "linePrefix" ? P[2].sliceSerialize(P[1], !0).length : 0, o = _, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(_);
9860
+ const D = r.events[r.events.length - 1];
9861
+ return i = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, o = _, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(_);
9862
9862
  }
9863
9863
  function c(_) {
9864
9864
  return _ === o ? (s++, e.consume(_), c) : s < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), be(_) ? Te(e, f, "whitespace")(_) : f(_));
@@ -9897,23 +9897,23 @@ function zp(e, t, n) {
9897
9897
  function v(_) {
9898
9898
  return e.exit("codeFenced"), t(_);
9899
9899
  }
9900
- function w(_, P, A) {
9900
+ function w(_, D, A) {
9901
9901
  let x = 0;
9902
9902
  return S;
9903
9903
  function S(C) {
9904
- return _.enter("lineEnding"), _.consume(C), _.exit("lineEnding"), N;
9904
+ return _.enter("lineEnding"), _.consume(C), _.exit("lineEnding"), k;
9905
9905
  }
9906
- function N(C) {
9906
+ function k(C) {
9907
9907
  return _.enter("codeFencedFence"), be(C) ? Te(_, O, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : O(C);
9908
9908
  }
9909
9909
  function O(C) {
9910
- return C === o ? (_.enter("codeFencedFenceSequence"), D(C)) : A(C);
9910
+ return C === o ? (_.enter("codeFencedFenceSequence"), P(C)) : A(C);
9911
9911
  }
9912
- function D(C) {
9913
- return C === o ? (x++, _.consume(C), D) : x >= s ? (_.exit("codeFencedFenceSequence"), be(C) ? Te(_, k, "whitespace")(C) : k(C)) : A(C);
9912
+ function P(C) {
9913
+ return C === o ? (x++, _.consume(C), P) : x >= s ? (_.exit("codeFencedFenceSequence"), be(C) ? Te(_, N, "whitespace")(C) : N(C)) : A(C);
9914
9914
  }
9915
- function k(C) {
9916
- return C === null || ie(C) ? (_.exit("codeFencedFence"), P(C)) : A(C);
9915
+ function N(C) {
9916
+ return C === null || ie(C) ? (_.exit("codeFencedFence"), D(C)) : A(C);
9917
9917
  }
9918
9918
  }
9919
9919
  }
@@ -10603,10 +10603,10 @@ function Th(e, t, n) {
10603
10603
  return R === 61 ? (e.consume(R), _) : be(R) ? (e.consume(R), w) : T(R);
10604
10604
  }
10605
10605
  function _(R) {
10606
- return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 34 || R === 39 ? (e.consume(R), u = R, P) : be(R) ? (e.consume(R), _) : A(R);
10606
+ return R === null || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 34 || R === 39 ? (e.consume(R), u = R, D) : be(R) ? (e.consume(R), _) : A(R);
10607
10607
  }
10608
- function P(R) {
10609
- return R === u ? (e.consume(R), u = null, x) : R === null || ie(R) ? n(R) : (e.consume(R), P);
10608
+ function D(R) {
10609
+ return R === u ? (e.consume(R), u = null, x) : R === null || ie(R) ? n(R) : (e.consume(R), D);
10610
10610
  }
10611
10611
  function A(R) {
10612
10612
  return R === null || R === 34 || R === 39 || R === 47 || R === 60 || R === 61 || R === 62 || R === 96 || Le(R) ? w(R) : (e.consume(R), A);
@@ -10615,22 +10615,22 @@ function Th(e, t, n) {
10615
10615
  return R === 47 || R === 62 || be(R) ? T(R) : n(R);
10616
10616
  }
10617
10617
  function S(R) {
10618
- return R === 62 ? (e.consume(R), N) : n(R);
10618
+ return R === 62 ? (e.consume(R), k) : n(R);
10619
10619
  }
10620
- function N(R) {
10621
- return R === null || ie(R) ? O(R) : be(R) ? (e.consume(R), N) : n(R);
10620
+ function k(R) {
10621
+ return R === null || ie(R) ? O(R) : be(R) ? (e.consume(R), k) : n(R);
10622
10622
  }
10623
10623
  function O(R) {
10624
- return R === 45 && a === 2 ? (e.consume(R), B) : R === 60 && a === 1 ? (e.consume(R), $) : R === 62 && a === 4 ? (e.consume(R), z) : R === 63 && a === 3 ? (e.consume(R), I) : R === 93 && a === 5 ? (e.consume(R), q) : ie(R) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(gh, X, D)(R)) : R === null || ie(R) ? (e.exit("htmlFlowData"), D(R)) : (e.consume(R), O);
10624
+ return R === 45 && a === 2 ? (e.consume(R), B) : R === 60 && a === 1 ? (e.consume(R), $) : R === 62 && a === 4 ? (e.consume(R), z) : R === 63 && a === 3 ? (e.consume(R), I) : R === 93 && a === 5 ? (e.consume(R), q) : ie(R) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(gh, X, P)(R)) : R === null || ie(R) ? (e.exit("htmlFlowData"), P(R)) : (e.consume(R), O);
10625
10625
  }
10626
- function D(R) {
10627
- return e.check(Eh, k, X)(R);
10626
+ function P(R) {
10627
+ return e.check(Eh, N, X)(R);
10628
10628
  }
10629
- function k(R) {
10629
+ function N(R) {
10630
10630
  return e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), C;
10631
10631
  }
10632
10632
  function C(R) {
10633
- return R === null || ie(R) ? D(R) : (e.enter("htmlFlowData"), O(R));
10633
+ return R === null || ie(R) ? P(R) : (e.enter("htmlFlowData"), O(R));
10634
10634
  }
10635
10635
  function B(R) {
10636
10636
  return R === 45 ? (e.consume(R), I) : O(R);
@@ -10729,10 +10729,10 @@ function Ah(e, t, n) {
10729
10729
  return ct(I) ? (e.consume(I), _) : n(I);
10730
10730
  }
10731
10731
  function _(I) {
10732
- return I === 45 || Je(I) ? (e.consume(I), _) : P(I);
10732
+ return I === 45 || Je(I) ? (e.consume(I), _) : D(I);
10733
10733
  }
10734
- function P(I) {
10735
- return ie(I) ? (s = P, $(I)) : be(I) ? (e.consume(I), P) : B(I);
10734
+ function D(I) {
10735
+ return ie(I) ? (s = D, $(I)) : be(I) ? (e.consume(I), D) : B(I);
10736
10736
  }
10737
10737
  function A(I) {
10738
10738
  return I === 45 || Je(I) ? (e.consume(I), A) : I === 47 || I === 62 || Le(I) ? x(I) : n(I);
@@ -10741,19 +10741,19 @@ function Ah(e, t, n) {
10741
10741
  return I === 47 ? (e.consume(I), B) : I === 58 || I === 95 || ct(I) ? (e.consume(I), S) : ie(I) ? (s = x, $(I)) : be(I) ? (e.consume(I), x) : B(I);
10742
10742
  }
10743
10743
  function S(I) {
10744
- return I === 45 || I === 46 || I === 58 || I === 95 || Je(I) ? (e.consume(I), S) : N(I);
10744
+ return I === 45 || I === 46 || I === 58 || I === 95 || Je(I) ? (e.consume(I), S) : k(I);
10745
10745
  }
10746
- function N(I) {
10747
- return I === 61 ? (e.consume(I), O) : ie(I) ? (s = N, $(I)) : be(I) ? (e.consume(I), N) : x(I);
10746
+ function k(I) {
10747
+ return I === 61 ? (e.consume(I), O) : ie(I) ? (s = k, $(I)) : be(I) ? (e.consume(I), k) : x(I);
10748
10748
  }
10749
10749
  function O(I) {
10750
- return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), a = I, D) : ie(I) ? (s = O, $(I)) : be(I) ? (e.consume(I), O) : (e.consume(I), k);
10750
+ return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), a = I, P) : ie(I) ? (s = O, $(I)) : be(I) ? (e.consume(I), O) : (e.consume(I), N);
10751
10751
  }
10752
- function D(I) {
10753
- return I === a ? (e.consume(I), a = void 0, C) : I === null ? n(I) : ie(I) ? (s = D, $(I)) : (e.consume(I), D);
10752
+ function P(I) {
10753
+ return I === a ? (e.consume(I), a = void 0, C) : I === null ? n(I) : ie(I) ? (s = P, $(I)) : (e.consume(I), P);
10754
10754
  }
10755
- function k(I) {
10756
- return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 || Le(I) ? x(I) : (e.consume(I), k);
10755
+ function N(I) {
10756
+ return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 || Le(I) ? x(I) : (e.consume(I), N);
10757
10757
  }
10758
10758
  function C(I) {
10759
10759
  return I === 47 || I === 62 || Le(I) ? x(I) : n(I);
@@ -11302,12 +11302,12 @@ function cm(e, t, n) {
11302
11302
  const a = {}, i = [];
11303
11303
  let s = [], o = [];
11304
11304
  const u = {
11305
- attempt: P(w),
11306
- check: P(_),
11305
+ attempt: D(w),
11306
+ check: D(_),
11307
11307
  consume: b,
11308
11308
  enter: T,
11309
11309
  exit: v,
11310
- interrupt: P(_, {
11310
+ interrupt: D(_, {
11311
11311
  interrupt: !0
11312
11312
  })
11313
11313
  }, l = {
@@ -11324,82 +11324,82 @@ function cm(e, t, n) {
11324
11324
  };
11325
11325
  let c = t.tokenize.call(l, u);
11326
11326
  return t.resolveAll && i.push(t), l;
11327
- function f(N) {
11328
- return s = tt(s, N), m(), s[s.length - 1] !== null ? [] : (A(t, 0), l.events = fi(i, l.events, l), l.events);
11327
+ function f(k) {
11328
+ return s = tt(s, k), m(), s[s.length - 1] !== null ? [] : (A(t, 0), l.events = fi(i, l.events, l), l.events);
11329
11329
  }
11330
- function g(N, O) {
11331
- return fm(p(N), O);
11330
+ function g(k, O) {
11331
+ return fm(p(k), O);
11332
11332
  }
11333
- function p(N) {
11334
- return dm(s, N);
11333
+ function p(k) {
11334
+ return dm(s, k);
11335
11335
  }
11336
11336
  function y() {
11337
11337
  const {
11338
- _bufferIndex: N,
11338
+ _bufferIndex: k,
11339
11339
  _index: O,
11340
- line: D,
11341
- column: k,
11340
+ line: P,
11341
+ column: N,
11342
11342
  offset: C
11343
11343
  } = r;
11344
11344
  return {
11345
- _bufferIndex: N,
11345
+ _bufferIndex: k,
11346
11346
  _index: O,
11347
- line: D,
11348
- column: k,
11347
+ line: P,
11348
+ column: N,
11349
11349
  offset: C
11350
11350
  };
11351
11351
  }
11352
- function h(N) {
11353
- a[N.line] = N.column, S();
11352
+ function h(k) {
11353
+ a[k.line] = k.column, S();
11354
11354
  }
11355
11355
  function m() {
11356
- let N;
11356
+ let k;
11357
11357
  for (; r._index < s.length; ) {
11358
11358
  const O = s[r._index];
11359
11359
  if (typeof O == "string")
11360
- for (N = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === N && r._bufferIndex < O.length; )
11360
+ for (k = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === k && r._bufferIndex < O.length; )
11361
11361
  E(O.charCodeAt(r._bufferIndex));
11362
11362
  else
11363
11363
  E(O);
11364
11364
  }
11365
11365
  }
11366
- function E(N) {
11367
- c = c(N);
11366
+ function E(k) {
11367
+ c = c(k);
11368
11368
  }
11369
- function b(N) {
11370
- ie(N) ? (r.line++, r.column = 1, r.offset += N === -3 ? 2 : 1, S()) : N !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
11369
+ function b(k) {
11370
+ ie(k) ? (r.line++, r.column = 1, r.offset += k === -3 ? 2 : 1, S()) : k !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
11371
11371
  // strings.
11372
11372
  /** @type {string} */
11373
- s[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = N;
11373
+ s[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = k;
11374
11374
  }
11375
- function T(N, O) {
11376
- const D = O || {};
11377
- return D.type = N, D.start = y(), l.events.push(["enter", D, l]), o.push(D), D;
11375
+ function T(k, O) {
11376
+ const P = O || {};
11377
+ return P.type = k, P.start = y(), l.events.push(["enter", P, l]), o.push(P), P;
11378
11378
  }
11379
- function v(N) {
11379
+ function v(k) {
11380
11380
  const O = o.pop();
11381
11381
  return O.end = y(), l.events.push(["exit", O, l]), O;
11382
11382
  }
11383
- function w(N, O) {
11384
- A(N, O.from);
11383
+ function w(k, O) {
11384
+ A(k, O.from);
11385
11385
  }
11386
- function _(N, O) {
11386
+ function _(k, O) {
11387
11387
  O.restore();
11388
11388
  }
11389
- function P(N, O) {
11390
- return D;
11391
- function D(k, C, B) {
11389
+ function D(k, O) {
11390
+ return P;
11391
+ function P(N, C, B) {
11392
11392
  let $, H, q, I;
11393
- return Array.isArray(k) ? (
11393
+ return Array.isArray(N) ? (
11394
11394
  /* c8 ignore next 1 */
11395
- X(k)
11396
- ) : "tokenize" in k ? (
11395
+ X(N)
11396
+ ) : "tokenize" in N ? (
11397
11397
  // Looks like a construct.
11398
11398
  X([
11399
11399
  /** @type {Construct} */
11400
- k
11400
+ N
11401
11401
  ])
11402
- ) : z(k);
11402
+ ) : z(N);
11403
11403
  function z(oe) {
11404
11404
  return j;
11405
11405
  function j(re) {
@@ -11430,24 +11430,24 @@ function cm(e, t, n) {
11430
11430
  }
11431
11431
  }
11432
11432
  function W(oe) {
11433
- return N(q, I), C;
11433
+ return k(q, I), C;
11434
11434
  }
11435
11435
  function te(oe) {
11436
11436
  return I.restore(), ++H < $.length ? R($[H]) : B;
11437
11437
  }
11438
11438
  }
11439
11439
  }
11440
- function A(N, O) {
11441
- N.resolveAll && !i.includes(N) && i.push(N), N.resolve && ft(l.events, O, l.events.length - O, N.resolve(l.events.slice(O), l)), N.resolveTo && (l.events = N.resolveTo(l.events, l));
11440
+ function A(k, O) {
11441
+ k.resolveAll && !i.includes(k) && i.push(k), k.resolve && ft(l.events, O, l.events.length - O, k.resolve(l.events.slice(O), l)), k.resolveTo && (l.events = k.resolveTo(l.events, l));
11442
11442
  }
11443
11443
  function x() {
11444
- const N = y(), O = l.previous, D = l.currentConstruct, k = l.events.length, C = Array.from(o);
11444
+ const k = y(), O = l.previous, P = l.currentConstruct, N = l.events.length, C = Array.from(o);
11445
11445
  return {
11446
- from: k,
11446
+ from: N,
11447
11447
  restore: B
11448
11448
  };
11449
11449
  function B() {
11450
- r = N, l.previous = O, l.currentConstruct = D, l.events.length = k, o = C, S();
11450
+ r = k, l.previous = O, l.currentConstruct = P, l.events.length = N, o = C, S();
11451
11451
  }
11452
11452
  }
11453
11453
  function S() {
@@ -11663,14 +11663,14 @@ function ym(e) {
11663
11663
  emphasis: u(),
11664
11664
  hardBreakEscape: u(O),
11665
11665
  hardBreakTrailing: u(O),
11666
- htmlFlow: u(D),
11666
+ htmlFlow: u(P),
11667
11667
  htmlFlowData: S,
11668
- htmlText: u(k),
11668
+ htmlText: u(N),
11669
11669
  htmlTextData: S,
11670
11670
  image: u($),
11671
11671
  label: q,
11672
11672
  labelText: H,
11673
- lineEnding: N,
11673
+ lineEnding: k,
11674
11674
  link: u(B),
11675
11675
  listItem: u(),
11676
11676
  listOrdered: u(),
@@ -11681,7 +11681,7 @@ function ym(e) {
11681
11681
  resourceTitleString: z,
11682
11682
  resource: X,
11683
11683
  setextHeading: u(A),
11684
- setextHeadingLineSequence: P,
11684
+ setextHeadingLineSequence: D,
11685
11685
  setextHeadingText: _,
11686
11686
  strong: u(),
11687
11687
  thematicBreak: u()
@@ -11877,7 +11877,7 @@ function ym(e) {
11877
11877
  function _() {
11878
11878
  this.data.setextHeadingSlurpLineEnding = !0;
11879
11879
  }
11880
- function P(Y) {
11880
+ function D(Y) {
11881
11881
  const ee = this.stack[this.stack.length - 1];
11882
11882
  ee.depth = this.sliceSerialize(Y).codePointAt(0) === 61 ? 1 : 2;
11883
11883
  }
@@ -11897,7 +11897,7 @@ function ym(e) {
11897
11897
  const ee = this.stack.pop();
11898
11898
  ee.value += this.sliceSerialize(Y), ee.position.end = At(Y.end);
11899
11899
  }
11900
- function N(Y) {
11900
+ function k(Y) {
11901
11901
  const ee = this.stack[this.stack.length - 1];
11902
11902
  if (this.data.atHardBreak) {
11903
11903
  const de = ee.children[ee.children.length - 1];
@@ -11909,11 +11909,11 @@ function ym(e) {
11909
11909
  function O() {
11910
11910
  this.data.atHardBreak = !0;
11911
11911
  }
11912
- function D() {
11912
+ function P() {
11913
11913
  const Y = this.resume(), ee = this.stack[this.stack.length - 1];
11914
11914
  ee.value = Y;
11915
11915
  }
11916
- function k() {
11916
+ function N() {
11917
11917
  const Y = this.resume(), ee = this.stack[this.stack.length - 1];
11918
11918
  ee.value = Y;
11919
11919
  }
@@ -21212,65 +21212,65 @@ function _i(e, t) {
21212
21212
  let T = b, v = b, w;
21213
21213
  if (E === 35) {
21214
21214
  v = ++T;
21215
- const D = e.charCodeAt(v);
21216
- D === 88 || D === 120 ? (w = "hexadecimal", v = ++T) : w = "decimal";
21215
+ const P = e.charCodeAt(v);
21216
+ P === 88 || P === 120 ? (w = "hexadecimal", v = ++T) : w = "decimal";
21217
21217
  } else
21218
21218
  w = "named";
21219
- let _ = "", P = "", A = "";
21219
+ let _ = "", D = "", A = "";
21220
21220
  const x = w === "named" ? fo : w === "decimal" ? pl : fb;
21221
21221
  for (v--; ++v <= e.length; ) {
21222
- const D = e.charCodeAt(v);
21223
- if (!x(D))
21222
+ const P = e.charCodeAt(v);
21223
+ if (!x(P))
21224
21224
  break;
21225
- A += String.fromCharCode(D), w === "named" && db.includes(A) && (_ = A, P = Rn(A));
21225
+ A += String.fromCharCode(P), w === "named" && db.includes(A) && (_ = A, D = Rn(A));
21226
21226
  }
21227
21227
  let S = e.charCodeAt(v) === 59;
21228
21228
  if (S) {
21229
21229
  v++;
21230
- const D = w === "named" ? Rn(A) : !1;
21231
- D && (_ = A, P = D);
21230
+ const P = w === "named" ? Rn(A) : !1;
21231
+ P && (_ = A, D = P);
21232
21232
  }
21233
- let N = 1 + v - b, O = "";
21233
+ let k = 1 + v - b, O = "";
21234
21234
  if (!(!S && n.nonTerminated === !1)) if (!A)
21235
- w !== "named" && h(4, N);
21235
+ w !== "named" && h(4, k);
21236
21236
  else if (w === "named") {
21237
- if (S && !P)
21237
+ if (S && !D)
21238
21238
  h(5, 1);
21239
- else if (_ !== A && (v = T + _.length, N = 1 + v - T, S = !1), !S) {
21240
- const D = _ ? 1 : 3;
21239
+ else if (_ !== A && (v = T + _.length, k = 1 + v - T, S = !1), !S) {
21240
+ const P = _ ? 1 : 3;
21241
21241
  if (n.attribute) {
21242
- const k = e.charCodeAt(v);
21243
- k === 61 ? (h(D, N), P = "") : fo(k) ? P = "" : h(D, N);
21242
+ const N = e.charCodeAt(v);
21243
+ N === 61 ? (h(P, k), D = "") : fo(N) ? D = "" : h(P, k);
21244
21244
  } else
21245
- h(D, N);
21245
+ h(P, k);
21246
21246
  }
21247
- O = P;
21247
+ O = D;
21248
21248
  } else {
21249
- S || h(2, N);
21250
- let D = Number.parseInt(
21249
+ S || h(2, k);
21250
+ let P = Number.parseInt(
21251
21251
  A,
21252
21252
  w === "hexadecimal" ? 16 : 10
21253
21253
  );
21254
- if (mb(D))
21255
- h(7, N), O = "�";
21256
- else if (D in co)
21257
- h(6, N), O = co[D];
21254
+ if (mb(P))
21255
+ h(7, k), O = "�";
21256
+ else if (P in co)
21257
+ h(6, k), O = co[P];
21258
21258
  else {
21259
- let k = "";
21260
- gb(D) && h(6, N), D > 65535 && (D -= 65536, k += String.fromCharCode(
21261
- D >>> 10 | 55296
21262
- ), D = 56320 | D & 1023), O = k + String.fromCharCode(D);
21259
+ let N = "";
21260
+ gb(P) && h(6, k), P > 65535 && (P -= 65536, N += String.fromCharCode(
21261
+ P >>> 10 | 55296
21262
+ ), P = 56320 | P & 1023), O = N + String.fromCharCode(P);
21263
21263
  }
21264
21264
  }
21265
21265
  if (O) {
21266
21266
  m(), g = y(), i = v - 1, f += v - b + 1, a.push(O);
21267
- const D = y();
21268
- D.offset++, n.reference && n.reference.call(
21267
+ const P = y();
21268
+ P.offset++, n.reference && n.reference.call(
21269
21269
  n.referenceContext || void 0,
21270
21270
  O,
21271
- { start: g, end: D },
21271
+ { start: g, end: P },
21272
21272
  e.slice(b - 1, v)
21273
- ), g = D;
21273
+ ), g = P;
21274
21274
  } else
21275
21275
  A = e.slice(b - 1, v), o += A, f += A.length, i = v - 1;
21276
21276
  } else
@@ -21560,7 +21560,7 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, y) {
21560
21560
  return e.enter(r), e.enter(a), e.consume(C), e.exit(a), b;
21561
21561
  }
21562
21562
  function b(C) {
21563
- return C === 35 ? (h = s, T(C)) : C === 46 ? (h = o, T(C)) : y && be(C) ? Te(e, b, "whitespace")(C) : !y && Le(C) ? bt(e, b)(C) : C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 95 ? k(C) : (e.enter(i), e.enter(u), e.consume(C), _);
21563
+ return C === 35 ? (h = s, T(C)) : C === 46 ? (h = o, T(C)) : y && be(C) ? Te(e, b, "whitespace")(C) : !y && Le(C) ? bt(e, b)(C) : C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 95 ? N(C) : (e.enter(i), e.enter(u), e.consume(C), _);
21564
21564
  }
21565
21565
  function T(C) {
21566
21566
  const B = (
@@ -21591,9 +21591,9 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, y) {
21591
21591
  return e.consume(C), w;
21592
21592
  }
21593
21593
  function _(C) {
21594
- return C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(u), y && be(C) ? Te(e, P, "whitespace")(C) : !y && Le(C) ? bt(e, P)(C) : P(C)) : (e.consume(C), _);
21594
+ return C === null || ie(C) || Fn(C) || Bn(C) && C !== 45 && C !== 46 && C !== 58 && C !== 95 ? (e.exit(u), y && be(C) ? Te(e, D, "whitespace")(C) : !y && Le(C) ? bt(e, D)(C) : D(C)) : (e.consume(C), _);
21595
21595
  }
21596
- function P(C) {
21596
+ function D(C) {
21597
21597
  return C === 61 ? (e.enter(l), e.consume(C), e.exit(l), A) : (e.exit(i), b(C));
21598
21598
  }
21599
21599
  function A(C) {
@@ -21603,18 +21603,18 @@ function wi(e, t, n, r, a, i, s, o, u, l, c, f, g, p, y) {
21603
21603
  return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 125 || Le(C) ? (e.exit(p), e.exit(f), e.exit(i), b(C)) : (e.consume(C), x);
21604
21604
  }
21605
21605
  function S(C) {
21606
- return C === m ? (e.enter(g), e.consume(C), e.exit(g), e.exit(c), e.exit(i), D) : (e.enter(f), N(C));
21606
+ return C === m ? (e.enter(g), e.consume(C), e.exit(g), e.exit(c), e.exit(i), P) : (e.enter(f), k(C));
21607
21607
  }
21608
- function N(C) {
21609
- return C === m ? (e.exit(f), S(C)) : C === null ? n(C) : ie(C) ? y ? n(C) : bt(e, N)(C) : (e.enter(p), e.consume(C), O);
21608
+ function k(C) {
21609
+ return C === m ? (e.exit(f), S(C)) : C === null ? n(C) : ie(C) ? y ? n(C) : bt(e, k)(C) : (e.enter(p), e.consume(C), O);
21610
21610
  }
21611
21611
  function O(C) {
21612
- return C === m || C === null || ie(C) ? (e.exit(p), N(C)) : (e.consume(C), O);
21612
+ return C === m || C === null || ie(C) ? (e.exit(p), k(C)) : (e.consume(C), O);
21613
21613
  }
21614
- function D(C) {
21615
- return C === 125 || Le(C) ? b(C) : k(C);
21614
+ function P(C) {
21615
+ return C === 125 || Le(C) ? b(C) : N(C);
21616
21616
  }
21617
- function k(C) {
21617
+ function N(C) {
21618
21618
  return C === 125 ? (e.enter(a), e.consume(C), e.exit(a), e.exit(r), t) : n(C);
21619
21619
  }
21620
21620
  }
@@ -21690,10 +21690,10 @@ function Ub(e, t, n) {
21690
21690
  return Te(e, p, "whitespace")(x);
21691
21691
  }
21692
21692
  function p(x) {
21693
- return e.exit("directiveContainerFence"), x === null ? P(x) : ie(x) ? r.interrupt ? t(x) : e.attempt(ur, y, P)(x) : n(x);
21693
+ return e.exit("directiveContainerFence"), x === null ? D(x) : ie(x) ? r.interrupt ? t(x) : e.attempt(ur, y, D)(x) : n(x);
21694
21694
  }
21695
21695
  function y(x) {
21696
- return x === null ? P(x) : ie(x) ? e.check(ur, T, P)(x) : (e.enter("directiveContainerContent"), h(x));
21696
+ return x === null ? D(x) : ie(x) ? e.check(ur, T, D)(x) : (e.enter("directiveContainerContent"), h(x));
21697
21697
  }
21698
21698
  function h(x) {
21699
21699
  return e.attempt({
@@ -21731,22 +21731,22 @@ function Ub(e, t, n) {
21731
21731
  return r.parser.lazy[S.start.line] = !1, _(x);
21732
21732
  }
21733
21733
  function _(x) {
21734
- return e.exit("directiveContainerContent"), P(x);
21734
+ return e.exit("directiveContainerContent"), D(x);
21735
21735
  }
21736
- function P(x) {
21736
+ function D(x) {
21737
21737
  return e.exit("directiveContainer"), t(x);
21738
21738
  }
21739
- function A(x, S, N) {
21739
+ function A(x, S, k) {
21740
21740
  let O = 0;
21741
- return Te(x, D, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
21742
- function D(B) {
21743
- return x.enter("directiveContainerFence"), x.enter("directiveContainerSequence"), k(B);
21741
+ return Te(x, P, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
21742
+ function P(B) {
21743
+ return x.enter("directiveContainerFence"), x.enter("directiveContainerSequence"), N(B);
21744
21744
  }
21745
- function k(B) {
21746
- return B === 58 ? (x.consume(B), O++, k) : O < s ? N(B) : (x.exit("directiveContainerSequence"), Te(x, C, "whitespace")(B));
21745
+ function N(B) {
21746
+ return B === 58 ? (x.consume(B), O++, N) : O < s ? k(B) : (x.exit("directiveContainerSequence"), Te(x, C, "whitespace")(B));
21747
21747
  }
21748
21748
  function C(B) {
21749
- return B === null || ie(B) ? (x.exit("directiveContainerFence"), S(B)) : N(B);
21749
+ return B === null || ie(B) ? (x.exit("directiveContainerFence"), S(B)) : k(B);
21750
21750
  }
21751
21751
  }
21752
21752
  }
@@ -21899,9 +21899,9 @@ const Oa = {
21899
21899
  }, []), y = ue(() => {
21900
21900
  p(), o(!0);
21901
21901
  }, [p]), h = ue(
21902
- (N) => {
21903
- if (p(), N) {
21904
- i(N), o(!1), c.current = window.requestAnimationFrame(() => {
21902
+ (k) => {
21903
+ if (p(), k) {
21904
+ i(k), o(!1), c.current = window.requestAnimationFrame(() => {
21905
21905
  c.current = null, o(!0);
21906
21906
  });
21907
21907
  return;
@@ -21917,21 +21917,21 @@ const Oa = {
21917
21917
  se(() => () => {
21918
21918
  p();
21919
21919
  }, [p]);
21920
- const [m, E] = ae(0), b = Z(null), [T, v] = ae(!1), w = Z(/* @__PURE__ */ new Map()), [_, P] = ae(357), [A, x] = ae("bottom");
21920
+ const [m, E] = ae(0), b = Z(null), [T, v] = ae(!1), w = Z(/* @__PURE__ */ new Map()), [_, D] = ae(357), [A, x] = ae("bottom");
21921
21921
  return se(() => {
21922
21922
  E(0), v(!1), x("bottom");
21923
21923
  }, [a?.key, a?.type]), se(() => {
21924
- const N = w.current, O = /* @__PURE__ */ new Set(), D = (k) => {
21925
- if (!k || O.has(k) || N.has(k)) return;
21926
- O.add(k);
21924
+ const k = w.current, O = /* @__PURE__ */ new Set(), P = (N) => {
21925
+ if (!N || O.has(N) || k.has(N)) return;
21926
+ O.add(N);
21927
21927
  const C = new window.Image();
21928
21928
  C.decoding = "async", C.onload = () => {
21929
21929
  const B = C.naturalWidth || C.width || 0, $ = C.naturalHeight || C.height || 0;
21930
- B > 0 && $ > 0 && N.set(k, `${B} / ${$}`);
21931
- }, C.src = k;
21930
+ B > 0 && $ > 0 && k.set(N, `${B} / ${$}`);
21931
+ }, C.src = N;
21932
21932
  };
21933
- e.forEach((k) => {
21934
- const C = k.tooltip;
21933
+ e.forEach((N) => {
21934
+ const C = N.tooltip;
21935
21935
  if (!C) return;
21936
21936
  const $ = typeof C == "string" ? (() => {
21937
21937
  try {
@@ -21943,22 +21943,22 @@ const Oa = {
21943
21943
  if (!$ || $.type !== "steps") return;
21944
21944
  const H = $.images;
21945
21945
  Array.isArray(H) && H.forEach((q) => {
21946
- typeof q == "string" && D(q);
21946
+ typeof q == "string" && P(q);
21947
21947
  });
21948
21948
  });
21949
21949
  }, [e]), Ze(() => {
21950
21950
  if (!s) return;
21951
21951
  if (a?.type !== "upload" && a?.type !== "tag" && a?.type !== "variable") {
21952
- P(null);
21952
+ D(null);
21953
21953
  return;
21954
21954
  }
21955
- const N = requestAnimationFrame(() => {
21956
- const O = document.querySelector(".rte-steps-tooltip"), D = document.querySelector(".rte-steps-tooltip-title"), k = document.querySelector(
21955
+ const k = requestAnimationFrame(() => {
21956
+ const O = document.querySelector(".rte-steps-tooltip"), P = document.querySelector(".rte-steps-tooltip-title"), N = document.querySelector(
21957
21957
  ".rte-steps-tooltip-step-badge"
21958
21958
  );
21959
- if (!O || !D || !k) return;
21960
- const C = window.getComputedStyle(O), B = Number.parseFloat(C.paddingLeft) || 0, $ = Number.parseFloat(C.paddingRight) || 0, H = Math.ceil(D.getBoundingClientRect().width || 0), q = Math.ceil(k.getBoundingClientRect().width || 0), z = H + 16 + q + Math.ceil(B + $), X = 357, R = Math.max(240, Math.floor(window.innerWidth - 32));
21961
- P(Math.min(Math.max(z, X), R));
21959
+ if (!O || !P || !N) return;
21960
+ const C = window.getComputedStyle(O), B = Number.parseFloat(C.paddingLeft) || 0, $ = Number.parseFloat(C.paddingRight) || 0, H = Math.ceil(P.getBoundingClientRect().width || 0), q = Math.ceil(N.getBoundingClientRect().width || 0), z = H + 16 + q + Math.ceil(B + $), X = 357, R = Math.max(240, Math.floor(window.innerWidth - 32));
21961
+ D(Math.min(Math.max(z, X), R));
21962
21962
  const W = a?.anchorEl;
21963
21963
  if (W) {
21964
21964
  const te = W.getBoundingClientRect(), oe = O.getBoundingClientRect(), j = Math.ceil(oe.height || 0), re = Math.max(
@@ -21968,7 +21968,7 @@ const Oa = {
21968
21968
  x(we ? "top" : "bottom");
21969
21969
  }
21970
21970
  });
21971
- return () => cancelAnimationFrame(N);
21971
+ return () => cancelAnimationFrame(k);
21972
21972
  }, [
21973
21973
  s,
21974
21974
  a?.key,
@@ -21977,21 +21977,21 @@ const Oa = {
21977
21977
  a?.anchorEl
21978
21978
  ]), se(() => {
21979
21979
  if (!n) return;
21980
- const N = (O) => {
21980
+ const k = (O) => {
21981
21981
  O.key === "Escape" && h(null);
21982
21982
  };
21983
- return window.addEventListener("keydown", N, !0), () => window.removeEventListener("keydown", N, !0);
21983
+ return window.addEventListener("keydown", k, !0), () => window.removeEventListener("keydown", k, !0);
21984
21984
  }, [n, h]), { tooltipPortal: a?.anchorEl ? (() => {
21985
21985
  if (!document.body.contains(a.anchorEl))
21986
21986
  return null;
21987
- let N = "", O = {
21987
+ let k = "", O = {
21988
21988
  background: "#fff",
21989
21989
  padding: 12,
21990
21990
  borderRadius: 8,
21991
21991
  border: "0.5px solid #E5E5E5",
21992
21992
  boxShadow: "0 4px 20px 0 rgba(129, 124, 143, 0.2)"
21993
- }, D = !1;
21994
- const k = ($) => {
21993
+ }, P = !1;
21994
+ const N = ($) => {
21995
21995
  const H = iT($);
21996
21996
  if (!H) return null;
21997
21997
  if (H.kind === "text")
@@ -22121,39 +22121,39 @@ const Oa = {
22121
22121
  ), steps: !0 };
22122
22122
  };
22123
22123
  if (a.type === "upload") {
22124
- const $ = a.anchorEl.dataset.tooltip, H = k($);
22124
+ const $ = a.anchorEl.dataset.tooltip, H = N($);
22125
22125
  if (H)
22126
- N = H.node, D = H.steps;
22126
+ k = H.node, P = H.steps;
22127
22127
  else {
22128
22128
  const q = e.find(
22129
22129
  (z) => z.type === "upload" && z.key === a.key
22130
- ), I = k(
22130
+ ), I = N(
22131
22131
  typeof q?.tooltip == "string" ? q?.tooltip : q?.tooltip ? JSON.stringify(q.tooltip) : ""
22132
22132
  );
22133
- N = I?.node || "", D = I?.steps || !1;
22133
+ k = I?.node || "", P = I?.steps || !1;
22134
22134
  }
22135
22135
  } else if (a.type === "tag") {
22136
- const $ = a.anchorEl.dataset.tooltip, H = k($);
22137
- N = H?.node || "", D = H?.steps || !1;
22136
+ const $ = a.anchorEl.dataset.tooltip, H = N($);
22137
+ k = H?.node || "", P = H?.steps || !1;
22138
22138
  } else if (a.type === "upload-label")
22139
- N = a.anchorEl.querySelector(
22139
+ k = a.anchorEl.querySelector(
22140
22140
  ".upload-label[data-file-name]"
22141
22141
  )?.dataset.fileName || a.anchorEl.dataset.fileName || "";
22142
22142
  else if (a.type === "variable") {
22143
- const $ = a.anchorEl.dataset.tooltip, H = k($);
22144
- N = H?.node || "", D = H?.steps || !1;
22143
+ const $ = a.anchorEl.dataset.tooltip, H = N($);
22144
+ k = H?.node || "", P = H?.steps || !1;
22145
22145
  } else if (a.type === "upload-preview") {
22146
22146
  const $ = t[a.key];
22147
22147
  let H = null, q = !1;
22148
- typeof $ == "string" ? H = $ : $ instanceof File && ($.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test($.name || "")) && (H = URL.createObjectURL($), q = !0), H ? (N = /* @__PURE__ */ V("div", { className: "rte-upload-preview", children: /* @__PURE__ */ V("img", { className: "rte-upload-preview-img", src: H, alt: "preview" }) }), O = {
22148
+ typeof $ == "string" ? H = $ : $ instanceof File && ($.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test($.name || "")) && (H = URL.createObjectURL($), q = !0), H ? (k = /* @__PURE__ */ V("div", { className: "rte-upload-preview", children: /* @__PURE__ */ V("img", { className: "rte-upload-preview-img", src: H, alt: "preview" }) }), O = {
22149
22149
  background: "#fff",
22150
22150
  padding: 0,
22151
22151
  borderRadius: 4,
22152
22152
  boxShadow: "0 2px 12px 0 rgba(153, 153, 153, 0.25)"
22153
- }, q && setTimeout(() => URL.revokeObjectURL(H), 1e3)) : N = "";
22153
+ }, q && setTimeout(() => URL.revokeObjectURL(H), 1e3)) : k = "";
22154
22154
  } else if (a.type === "video-preview") {
22155
22155
  const $ = r?.[a.key];
22156
- $?.status === "success" && $.videoUrl ? (N = /* @__PURE__ */ V("div", { className: "rte-video-preview", children: /* @__PURE__ */ V(
22156
+ $?.status === "success" && $.videoUrl ? (k = /* @__PURE__ */ V("div", { className: "rte-video-preview", children: /* @__PURE__ */ V(
22157
22157
  "video",
22158
22158
  {
22159
22159
  src: $.videoUrl,
@@ -22168,10 +22168,10 @@ const Oa = {
22168
22168
  padding: 0,
22169
22169
  borderRadius: 8,
22170
22170
  boxShadow: "0 2px 12px 0 rgba(153, 153, 153, 0.25)"
22171
- }) : N = "";
22171
+ }) : k = "";
22172
22172
  }
22173
- if (!N) return null;
22174
- D && (O = {
22173
+ if (!k) return null;
22174
+ P && (O = {
22175
22175
  background: "#fff",
22176
22176
  padding: 0,
22177
22177
  borderRadius: 12,
@@ -22186,8 +22186,8 @@ const Oa = {
22186
22186
  arrow: !1,
22187
22187
  zIndex: 999,
22188
22188
  destroyTooltipOnHide: !1,
22189
- autoAdjustOverflow: !D,
22190
- align: D ? {
22189
+ autoAdjustOverflow: !P,
22190
+ align: P ? {
22191
22191
  // 自适应:下方空间不足时翻到上方
22192
22192
  points: B === "top" ? ["bc", "tc"] : ["tc", "bc"],
22193
22193
  offset: B === "top" ? [0, -4] : [0, 4]
@@ -22202,9 +22202,9 @@ const Oa = {
22202
22202
  onClick: ($) => {
22203
22203
  $.preventDefault(), $.stopPropagation();
22204
22204
  },
22205
- children: N
22205
+ children: k
22206
22206
  }
22207
- ) : D ? N : /* @__PURE__ */ V(
22207
+ ) : P ? k : /* @__PURE__ */ V(
22208
22208
  "div",
22209
22209
  {
22210
22210
  style: { maxWidth: "200px", fontSize: "12px", color: C },
@@ -22215,11 +22215,11 @@ const Oa = {
22215
22215
  onClick: ($) => {
22216
22216
  $.preventDefault(), $.stopPropagation();
22217
22217
  },
22218
- children: N
22218
+ children: k
22219
22219
  }
22220
22220
  ),
22221
22221
  open: s,
22222
- placement: D ? B === "top" ? "top" : "bottom" : a.type === "upload-preview" ? "topLeft" : "top",
22222
+ placement: P ? B === "top" ? "top" : "bottom" : a.type === "upload-preview" ? "topLeft" : "top",
22223
22223
  getPopupContainer: () => document.body,
22224
22224
  overlayInnerStyle: O,
22225
22225
  overlayClassName: "rte-tooltip-overlay",
@@ -22282,13 +22282,13 @@ const fT = (e, t) => {
22282
22282
  const b = rt(e.tooltip), T = b ? ` data-tooltip="${le(b)}"` : "", v = e.minCount || 1, w = e.maxCount || 3;
22283
22283
  let _ = 0;
22284
22284
  for (let S = 0; S < w; S++) {
22285
- const N = `${e.key}-${S}`;
22286
- t[N] != null && (_ += 1);
22285
+ const k = `${e.key}-${S}`;
22286
+ t[k] != null && (_ += 1);
22287
22287
  }
22288
- const P = Math.min(w, Math.max(v, _ + (_ < w ? 1 : 0)));
22288
+ const D = Math.min(w, Math.max(v, _ + (_ < w ? 1 : 0)));
22289
22289
  let A = "";
22290
- for (let S = 0; S < P; S++) {
22291
- const N = `${e.key}-${S}`, { hasFile: O, fileName: D, uploadIcon: k } = Qa(t[N], e.text), C = O ? "" : "hidden", B = b && !O ? "" : "hidden", $ = O ? "has-file" : "", H = O && D ? ` data-file-name="${D.replace(/"/g, "&quot;")}"` : "", q = ` data-batch-key="${e.key}"`, I = ` data-batch-index="${S}"`, z = `<span contenteditable="false" data-type="upload" data-key="${N}"${q}${I}${T} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${$}"><span class="upload-icon">${k}</span><span class="upload-label"${H}>${D || e.text}</span>${b ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${B}" data-upload-key="${N}" data-tooltip="${le(b)}" ></i>` : ""}<span class="file-remove-btn ${C}" title="移除文件">×</span></span></span>`;
22290
+ for (let S = 0; S < D; S++) {
22291
+ const k = `${e.key}-${S}`, { hasFile: O, fileName: P, uploadIcon: N } = Qa(t[k], e.text), C = O ? "" : "hidden", B = b && !O ? "" : "hidden", $ = O ? "has-file" : "", H = O && P ? ` data-file-name="${P.replace(/"/g, "&quot;")}"` : "", q = ` data-batch-key="${e.key}"`, I = ` data-batch-index="${S}"`, z = `<span contenteditable="false" data-type="upload" data-key="${k}"${q}${I}${T} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${$}"><span class="upload-icon">${N}</span><span class="upload-label"${H}>${P || e.text}</span>${b ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${B}" data-upload-key="${k}" data-tooltip="${le(b)}" ></i>` : ""}<span class="file-remove-btn ${C}" title="移除文件">×</span></span></span>`;
22292
22292
  A += z;
22293
22293
  }
22294
22294
  return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${go}<span class="rte-upload-batch-chips">${A}${n}</span></span>` : `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${A}${n}</span>`;
@@ -22401,19 +22401,19 @@ function BT(e, t, n, r, a, i = {}, s, o, u) {
22401
22401
  if (h.type === "text" && (h.text?.includes("icon-bitian") || h.className === "rte-text-required") && m) {
22402
22402
  const A = m.type === "upload" && m.exclusionGroup === "fileInput" && h.exclusionGroup === "fileInput" && h.exclusionGroup === m.exclusionGroup, x = m.type === "variable" && m.exclusionGroup === "textInput" && h.exclusionGroup === "textInput" && h.exclusionGroup === m.exclusionGroup;
22403
22403
  if (A) {
22404
- const N = `<span ${h.exclusionGroup ? `data-group="${h.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
22405
- let D = "";
22406
- h.className ? D = `<span class="${h.className}">${h.text ?? ""}</span>` : D = h.text ?? "";
22407
- const k = m, { uploadHtml: C, hintHtml: B } = fT(k, n);
22408
- p.push(N + D + C + O + B), y += 2;
22404
+ const k = `<span ${h.exclusionGroup ? `data-group="${h.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
22405
+ let P = "";
22406
+ h.className ? P = `<span class="${h.className}">${h.text ?? ""}</span>` : P = h.text ?? "";
22407
+ const N = m, { uploadHtml: C, hintHtml: B } = fT(N, n);
22408
+ p.push(k + P + C + O + B), y += 2;
22409
22409
  continue;
22410
22410
  }
22411
22411
  if (x) {
22412
- const N = `<span ${h.exclusionGroup ? `data-group="${h.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
22413
- let D = "";
22414
- h.className ? D = `<span class="${h.className}">${h.text ?? ""}</span>` : D = h.text ?? "";
22412
+ const k = `<span ${h.exclusionGroup ? `data-group="${h.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
22413
+ let P = "";
22414
+ h.className ? P = `<span class="${h.className}">${h.text ?? ""}</span>` : P = h.text ?? "";
22415
22415
  const C = hl(m, a);
22416
- p.push(N + D + C + O), y += 2;
22416
+ p.push(k + P + C + O), y += 2;
22417
22417
  continue;
22418
22418
  }
22419
22419
  }
@@ -22435,7 +22435,7 @@ function BT(e, t, n, r, a, i = {}, s, o, u) {
22435
22435
  const A = !!m && m.type === "text" && !m.className && !m.exclusionGroup && c(m.text), x = A ? (m.text ?? "").trim() : "", S = x ? g(x) : "";
22436
22436
  A && (E = !0), _ = pT(h, n, S);
22437
22437
  } else h.type === "select" && h.key ? _ = mT(h, a) : h.type === "textarea" && h.key ? _ = ET(h, a) : h.type === "richtext" && h.key ? _ = bT(h, a) : h.type === "report-module" && h.key ? _ = _T(h, a) : h.type === "markdown-module" && h.key ? _ = vT(h, a) : h.type === "datepicker" && h.key ? _ = NT(h, a) : h.type === "number-input" && h.key ? _ = IT(h, a) : h.type === "multi-variable" && h.key ? _ = OT(h, a, i) : h.type === "video-url" && h.key ? _ = DT(h, u || {}) : h.type === "video-upload" && h.key ? _ = PT(h, u || {}) : h.type === "searchable-select" && h.key && (_ = RT(h, a));
22438
- const P = v + _ + w;
22438
+ const D = v + _ + w;
22439
22439
  if (h.type === "text" && !h.className && !h.exclusionGroup) {
22440
22440
  if (c(h.text) && p.length > 0) {
22441
22441
  const x = p[p.length - 1], S = (h.text ?? "").trim();
@@ -22448,14 +22448,14 @@ function BT(e, t, n, r, a, i = {}, s, o, u) {
22448
22448
  p[p.length - 1] = `<span class="rte-inline-group">${x}${g(A.punct)}</span>`;
22449
22449
  const S = A.rest;
22450
22450
  if (S) {
22451
- const N = S.replace(/\n/g, "<br/>");
22452
- p.push(`<span data-type="text" contenteditable="false">${N}</span>`);
22451
+ const k = S.replace(/\n/g, "<br/>");
22452
+ p.push(`<span data-type="text" contenteditable="false">${k}</span>`);
22453
22453
  }
22454
22454
  y++;
22455
22455
  continue;
22456
22456
  }
22457
22457
  }
22458
- p.push(P), y += E ? 2 : 1;
22458
+ p.push(D), y += E ? 2 : 1;
22459
22459
  }
22460
22460
  e.current && (e.current.innerHTML = p.join(""), setTimeout(() => {
22461
22461
  if (!e.current) return;
@@ -22490,12 +22490,12 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
22490
22490
  const E = p.current;
22491
22491
  let b = {};
22492
22492
  const T = /* @__PURE__ */ new Set();
22493
- e.current && !E && e.current.querySelectorAll('[data-type="variable"]').forEach((P) => {
22494
- const A = P.dataset.key;
22493
+ e.current && !E && e.current.querySelectorAll('[data-type="variable"]').forEach((D) => {
22494
+ const A = D.dataset.key;
22495
22495
  if (!A) return;
22496
22496
  let x = "";
22497
- if (P.dataset.variableRender === "antd-textarea") {
22498
- const S = (P.getAttribute("data-value") || "").trim();
22497
+ if (D.dataset.variableRender === "antd-textarea") {
22498
+ const S = (D.getAttribute("data-value") || "").trim();
22499
22499
  try {
22500
22500
  x = S ? decodeURIComponent(S).replace(/\r\n/g, `
22501
22501
  `).trim() : "";
@@ -22503,7 +22503,7 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
22503
22503
  x = S.trim();
22504
22504
  }
22505
22505
  } else {
22506
- const S = (P.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
22506
+ const S = (D.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
22507
22507
  `);
22508
22508
  x = S.replace(/\n/g, "").trim().length > 0 ? S : "";
22509
22509
  }
@@ -22511,26 +22511,22 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
22511
22511
  f.current.add(A);
22512
22512
  else if (f.current.has(A)) {
22513
22513
  T.add(A);
22514
- const S = P.getAttribute("data-node-type");
22514
+ const S = D.getAttribute("data-node-type");
22515
22515
  S === "report-url" ? T.add(`${A}__url`) : S === "markdown-name" && T.add(`${A}__name`);
22516
22516
  }
22517
22517
  });
22518
22518
  const w = e.current.__tempVariableValues;
22519
- if (console.log("[RTE-init] path decision", {
22520
- hasTempValues: !!w,
22521
- configJustChanged: E,
22522
- tempValuesKeys: w ? Object.keys(w) : null
22523
- }), w ? (b = w, setTimeout(() => {
22519
+ if (w ? (b = w, setTimeout(() => {
22524
22520
  if (e.current) {
22525
22521
  const _ = e.current;
22526
22522
  _.__tempVariableValues === w && delete _.__tempVariableValues;
22527
22523
  }
22528
- }, 100)) : E || (e.current.querySelectorAll('[data-type="variable"]').forEach((D) => {
22529
- const k = D.dataset.key;
22530
- if (k) {
22524
+ }, 100)) : E || (e.current.querySelectorAll('[data-type="variable"]').forEach((P) => {
22525
+ const N = P.dataset.key;
22526
+ if (N) {
22531
22527
  const B = (() => {
22532
- if (D.dataset.variableRender === "antd-textarea") {
22533
- const q = (D.getAttribute("data-value") || "").trim();
22528
+ if (P.dataset.variableRender === "antd-textarea") {
22529
+ const q = (P.getAttribute("data-value") || "").trim();
22534
22530
  if (!q) return "";
22535
22531
  try {
22536
22532
  return decodeURIComponent(q).replace(/\r\n/g, `
@@ -22539,83 +22535,76 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
22539
22535
  return q.trim();
22540
22536
  }
22541
22537
  }
22542
- const $ = (D.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
22538
+ const $ = (P.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
22543
22539
  `);
22544
22540
  return $.replace(/\n/g, "").trim().length > 0 ? $ : "";
22545
22541
  })();
22546
- B && (D.getAttribute("data-node-type") === "report-url" ? b[`${k}__url`] = B : D.getAttribute("data-node-type") === "markdown-name" ? b[`${k}__name`] = B : b[k] = B);
22547
- }
22548
- }), e.current.querySelectorAll('[data-type="select"]').forEach((D) => {
22549
- const k = D.dataset.key;
22550
- if (k) {
22551
- const C = (D.getAttribute("data-value") || "").trim();
22552
- C && (b[k] = C);
22553
- }
22554
- }), e.current.querySelectorAll('[data-type="searchable-select"]').forEach((D) => {
22555
- const k = D.dataset.key;
22556
- if (k) {
22557
- const C = (D.getAttribute("data-value") || "").trim();
22558
- C && (b[k] = C);
22559
- }
22560
- }), e.current.querySelectorAll('[data-type="textarea"]').forEach((D) => {
22561
- const k = D.dataset.key;
22562
- if (k) {
22563
- const C = D.value.replace(/[\u200B]/g, "").trim();
22564
- C && (b[k] = C);
22565
- }
22566
- }), e.current.querySelectorAll('[data-type="richtext"]').forEach((D) => {
22567
- const k = D.dataset.key;
22568
- if (k) {
22569
- const C = D.getAttribute("data-node-type") || "", B = C === "report-module" || C === "markdown-module", $ = B ? (D.innerHTML || "").replace(/[\u200B]/g, "").trim() : (D.textContent || "").replace(/[\u200B]/g, "").trim();
22542
+ B && (P.getAttribute("data-node-type") === "report-url" ? b[`${N}__url`] = B : P.getAttribute("data-node-type") === "markdown-name" ? b[`${N}__name`] = B : b[N] = B);
22543
+ }
22544
+ }), e.current.querySelectorAll('[data-type="select"]').forEach((P) => {
22545
+ const N = P.dataset.key;
22546
+ if (N) {
22547
+ const C = (P.getAttribute("data-value") || "").trim();
22548
+ C && (b[N] = C);
22549
+ }
22550
+ }), e.current.querySelectorAll('[data-type="searchable-select"]').forEach((P) => {
22551
+ const N = P.dataset.key;
22552
+ if (N) {
22553
+ const C = (P.getAttribute("data-value") || "").trim();
22554
+ C && (b[N] = C);
22555
+ }
22556
+ }), e.current.querySelectorAll('[data-type="textarea"]').forEach((P) => {
22557
+ const N = P.dataset.key;
22558
+ if (N) {
22559
+ const C = P.value.replace(/[\u200B]/g, "").trim();
22560
+ C && (b[N] = C);
22561
+ }
22562
+ }), e.current.querySelectorAll('[data-type="richtext"]').forEach((P) => {
22563
+ const N = P.dataset.key;
22564
+ if (N) {
22565
+ const C = P.getAttribute("data-node-type") || "", B = C === "report-module" || C === "markdown-module", $ = B ? (P.innerHTML || "").replace(/[\u200B]/g, "").trim() : (P.textContent || "").replace(/[\u200B]/g, "").trim();
22570
22566
  if (B) {
22571
- const H = Number.parseInt(D.getAttribute("data-module-index") || "0", 10);
22572
- b[`${k}__module_${Number.isFinite(H) ? H : 0}`] = $;
22573
- } else $ && (b[k] = $);
22574
- }
22575
- }), e.current.querySelectorAll('[data-type="datepicker"]').forEach((D) => {
22576
- const k = D.dataset.key;
22577
- if (k) {
22578
- const C = (D.getAttribute("data-value") || "").trim();
22579
- C && (b[k] = C);
22580
- }
22581
- }), e.current.querySelectorAll('[data-type="number-input"]').forEach((D) => {
22582
- const k = D.dataset.key;
22583
- if (k) {
22584
- const C = (D.value || "").trim();
22585
- C && (b[k] = C);
22567
+ const H = Number.parseInt(P.getAttribute("data-module-index") || "0", 10);
22568
+ b[`${N}__module_${Number.isFinite(H) ? H : 0}`] = $;
22569
+ } else $ && (b[N] = $);
22570
+ }
22571
+ }), e.current.querySelectorAll('[data-type="datepicker"]').forEach((P) => {
22572
+ const N = P.dataset.key;
22573
+ if (N) {
22574
+ const C = (P.getAttribute("data-value") || "").trim();
22575
+ C && (b[N] = C);
22576
+ }
22577
+ }), e.current.querySelectorAll('[data-type="number-input"]').forEach((P) => {
22578
+ const N = P.dataset.key;
22579
+ if (N) {
22580
+ const C = (P.value || "").trim();
22581
+ C && (b[N] = C);
22586
22582
  }
22587
22583
  })), l && Object.keys(l).length > 0) {
22588
22584
  const _ = new Set(
22589
22585
  t.filter((A) => A.type === "upload" && A.key).map((A) => A.key)
22590
- ), P = {};
22586
+ ), D = {};
22591
22587
  E || Object.entries(l).forEach(([A, x]) => {
22592
22588
  if (!Array.isArray(x)) return;
22593
22589
  let S = 0;
22594
22590
  for (let O = 0; O < x.length; O++)
22595
22591
  `${A}_${O}` in b && S++;
22596
- let N = -1;
22592
+ let k = -1;
22597
22593
  for (let O = 0; O < x.length; O++)
22598
- f.current.has(`${A}_${O}`) && (N = O);
22599
- if (N >= S && S < x.length)
22594
+ f.current.has(`${A}_${O}`) && (k = O);
22595
+ if (k >= S && S < x.length)
22600
22596
  for (let O = S; O < x.length; O++)
22601
22597
  T.add(`${A}_${O}`);
22602
22598
  }), Object.entries(l).forEach(([A, x]) => {
22603
- _.has(A) || (Array.isArray(x) ? x.forEach((S, N) => {
22604
- S != null && String(S).trim() !== "" && (P[`${A}_${N}`] = String(S));
22605
- }) : x != null && String(x).trim() !== "" && (t.find((N) => N.key === A && N.type === "report-url") ? P[`${A}__url`] = String(x) : P[A] = String(x)));
22606
- }), Object.entries(P).forEach(([A, x]) => {
22607
- const S = A in b, N = T.has(A), O = y.current[A] !== x;
22608
- console.log(`[RTE-init] merge key="${A}" action=${N ? "SKIP(cleared)" : S ? O ? "OVERRIDE(changed)" : "SKIP(exists)" : "FILL(empty)"}`, {
22609
- inVar: S,
22610
- inCleared: N,
22611
- keyValueChanged: O,
22612
- domValue: b[A],
22613
- nodeValue: x,
22614
- prevValue: y.current[A]
22615
- }), !N && (!S || O) && (b[A] = x);
22616
- }), y.current = P;
22617
- }
22618
- if (console.log("[RTE-init] FINAL variableValues", { ...b }), BT(
22599
+ _.has(A) || (Array.isArray(x) ? x.forEach((S, k) => {
22600
+ S != null && String(S).trim() !== "" && (D[`${A}_${k}`] = String(S));
22601
+ }) : x != null && String(x).trim() !== "" && (t.find((k) => k.key === A && k.type === "report-url") ? D[`${A}__url`] = String(x) : D[A] = String(x)));
22602
+ }), Object.entries(D).forEach(([A, x]) => {
22603
+ const S = A in b, k = T.has(A), O = y.current[A] !== x;
22604
+ !k && (!S || O) && (b[A] = x);
22605
+ }), y.current = D;
22606
+ }
22607
+ if (BT(
22619
22608
  e,
22620
22609
  t,
22621
22610
  n,
@@ -22628,7 +22617,7 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
22628
22617
  ), E && (p.current = !1), setTimeout(() => {
22629
22618
  Nr(e);
22630
22619
  }, 0), i?.current) {
22631
- const { key: _, offset: P } = i.current;
22620
+ const { key: _, offset: D } = i.current;
22632
22621
  setTimeout(() => {
22633
22622
  if (!e.current) return;
22634
22623
  const A = e.current.querySelector(
@@ -22641,7 +22630,7 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
22641
22630
  x.focus();
22642
22631
  try {
22643
22632
  const S = x.value?.length ?? 0;
22644
- x.setSelectionRange(Math.min(P, S), Math.min(P, S));
22633
+ x.setSelectionRange(Math.min(D, S), Math.min(D, S));
22645
22634
  } catch {
22646
22635
  }
22647
22636
  i.current = null;
@@ -22654,23 +22643,23 @@ function FT(e, t, n, r, a = {}, i, s, o, u, l, c) {
22654
22643
  NodeFilter.SHOW_TEXT,
22655
22644
  null
22656
22645
  );
22657
- let N = 0, O = null, D = 0;
22646
+ let k = 0, O = null, P = 0;
22658
22647
  for (; S.nextNode(); ) {
22659
- const k = S.currentNode, C = k.textContent?.length || 0;
22660
- if (N + C >= P) {
22661
- O = k, D = P - N;
22648
+ const N = S.currentNode, C = N.textContent?.length || 0;
22649
+ if (k + C >= D) {
22650
+ O = N, P = D - k;
22662
22651
  break;
22663
22652
  }
22664
- N += C;
22653
+ k += C;
22665
22654
  }
22666
22655
  if (O) {
22667
- x.setStart(O, Math.min(D, O.textContent?.length || 0)), x.collapse(!0);
22668
- const k = window.getSelection();
22669
- k && (k.removeAllRanges(), k.addRange(x), A.focus());
22656
+ x.setStart(O, Math.min(P, O.textContent?.length || 0)), x.collapse(!0);
22657
+ const N = window.getSelection();
22658
+ N && (N.removeAllRanges(), N.addRange(x), A.focus());
22670
22659
  } else {
22671
22660
  x.selectNodeContents(A), x.collapse(!1);
22672
- const k = window.getSelection();
22673
- k && (k.removeAllRanges(), k.addRange(x), A.focus());
22661
+ const N = window.getSelection();
22662
+ N && (N.removeAllRanges(), N.addRange(x), A.focus());
22674
22663
  }
22675
22664
  } catch {
22676
22665
  const x = document.createRange();
@@ -22895,15 +22884,15 @@ function VT(e, t) {
22895
22884
  const w = T.anchorNode;
22896
22885
  if (!w || !e.current.contains(w))
22897
22886
  return;
22898
- let _ = !1, P = !1;
22887
+ let _ = !1, D = !1;
22899
22888
  if (w.nodeType === Node.ELEMENT_NODE) {
22900
22889
  const x = w;
22901
- (x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (P = !0);
22890
+ (x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (D = !0);
22902
22891
  } else if (w.parentElement) {
22903
22892
  const x = w.parentElement;
22904
- (x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (P = !0);
22893
+ (x.closest('[data-type="datepicker"]') || x.closest(".rte-datepicker-wrapper") || x.closest(".rte-datepicker-host")) && (_ = !0), (x.closest('[data-type="select"]') || x.closest(".rte-select-wrapper") || x.closest(".rte-select-host")) && (D = !0);
22905
22894
  }
22906
- if (_ || P)
22895
+ if (_ || D)
22907
22896
  return;
22908
22897
  let A = null;
22909
22898
  if (w.nodeType === Node.ELEMENT_NODE ? A = w.closest('[data-type="variable"]') : w.nodeType === Node.TEXT_NODE && w.parentElement && (A = w.parentElement.closest('[data-type="variable"]')), !A) {
@@ -22912,14 +22901,14 @@ function VT(e, t) {
22912
22901
  const x = e.current.querySelectorAll('[data-type="variable"]');
22913
22902
  if (x.length > 0) {
22914
22903
  let S = null;
22915
- for (const N of Array.from(x))
22916
- if (N.style.display !== "none") {
22917
- S = N;
22904
+ for (const k of Array.from(x))
22905
+ if (k.style.display !== "none") {
22906
+ S = k;
22918
22907
  break;
22919
22908
  }
22920
22909
  if (!S && x.length > 0 && (S = x[0]), S) {
22921
- const N = document.createRange();
22922
- N.selectNodeContents(S), N.collapse(!1), T.removeAllRanges(), T.addRange(N), S.focus();
22910
+ const k = document.createRange();
22911
+ k.selectNodeContents(S), k.collapse(!1), T.removeAllRanges(), T.addRange(k), S.focus();
22923
22912
  } else
22924
22913
  T.removeAllRanges();
22925
22914
  } else
@@ -22937,60 +22926,60 @@ function ml() {
22937
22926
  (function(n, r) {
22938
22927
  e.exports = r();
22939
22928
  })(GT, function() {
22940
- var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", o = "minute", u = "hour", l = "day", c = "week", f = "month", g = "quarter", p = "year", y = "date", h = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|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, b = { 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(k) {
22941
- var C = ["th", "st", "nd", "rd"], B = k % 100;
22942
- return "[" + k + (C[(B - 20) % 10] || C[B] || C[0]) + "]";
22943
- } }, T = function(k, C, B) {
22944
- var $ = String(k);
22945
- return !$ || $.length >= C ? k : "" + Array(C + 1 - $.length).join(B) + k;
22946
- }, v = { s: T, z: function(k) {
22947
- var C = -k.utcOffset(), B = Math.abs(C), $ = Math.floor(B / 60), H = B % 60;
22929
+ var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", o = "minute", u = "hour", l = "day", c = "week", f = "month", g = "quarter", p = "year", y = "date", h = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|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, b = { 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) {
22930
+ var C = ["th", "st", "nd", "rd"], B = N % 100;
22931
+ return "[" + N + (C[(B - 20) % 10] || C[B] || C[0]) + "]";
22932
+ } }, T = function(N, C, B) {
22933
+ var $ = String(N);
22934
+ return !$ || $.length >= C ? N : "" + Array(C + 1 - $.length).join(B) + N;
22935
+ }, v = { s: T, z: function(N) {
22936
+ var C = -N.utcOffset(), B = Math.abs(C), $ = Math.floor(B / 60), H = B % 60;
22948
22937
  return (C <= 0 ? "+" : "-") + T($, 2, "0") + ":" + T(H, 2, "0");
22949
- }, m: function k(C, B) {
22950
- if (C.date() < B.date()) return -k(B, C);
22938
+ }, m: function N(C, B) {
22939
+ if (C.date() < B.date()) return -N(B, C);
22951
22940
  var $ = 12 * (B.year() - C.year()) + (B.month() - C.month()), H = C.clone().add($, f), q = B - H < 0, I = C.clone().add($ + (q ? -1 : 1), f);
22952
22941
  return +(-($ + (B - H) / (q ? H - I : I - H)) || 0);
22953
- }, a: function(k) {
22954
- return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
22955
- }, p: function(k) {
22956
- return { M: f, y: p, w: c, d: l, D: y, h: u, m: o, s, ms: i, Q: g }[k] || String(k || "").toLowerCase().replace(/s$/, "");
22957
- }, u: function(k) {
22958
- return k === void 0;
22942
+ }, a: function(N) {
22943
+ return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
22944
+ }, p: function(N) {
22945
+ return { M: f, y: p, w: c, d: l, D: y, h: u, m: o, s, ms: i, Q: g }[N] || String(N || "").toLowerCase().replace(/s$/, "");
22946
+ }, u: function(N) {
22947
+ return N === void 0;
22959
22948
  } }, w = "en", _ = {};
22960
22949
  _[w] = b;
22961
- var P = "$isDayjsObject", A = function(k) {
22962
- return k instanceof O || !(!k || !k[P]);
22963
- }, x = function k(C, B, $) {
22950
+ var D = "$isDayjsObject", A = function(N) {
22951
+ return N instanceof O || !(!N || !N[D]);
22952
+ }, x = function N(C, B, $) {
22964
22953
  var H;
22965
22954
  if (!C) return w;
22966
22955
  if (typeof C == "string") {
22967
22956
  var q = C.toLowerCase();
22968
22957
  _[q] && (H = q), B && (_[q] = B, H = q);
22969
22958
  var I = C.split("-");
22970
- if (!H && I.length > 1) return k(I[0]);
22959
+ if (!H && I.length > 1) return N(I[0]);
22971
22960
  } else {
22972
22961
  var z = C.name;
22973
22962
  _[z] = C, H = z;
22974
22963
  }
22975
22964
  return !$ && H && (w = H), H || !$ && w;
22976
- }, S = function(k, C) {
22977
- if (A(k)) return k.clone();
22965
+ }, S = function(N, C) {
22966
+ if (A(N)) return N.clone();
22978
22967
  var B = typeof C == "object" ? C : {};
22979
- return B.date = k, B.args = arguments, new O(B);
22980
- }, N = v;
22981
- N.l = x, N.i = A, N.w = function(k, C) {
22982
- return S(k, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
22968
+ return B.date = N, B.args = arguments, new O(B);
22969
+ }, k = v;
22970
+ k.l = x, k.i = A, k.w = function(N, C) {
22971
+ return S(N, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
22983
22972
  };
22984
22973
  var O = function() {
22985
- function k(B) {
22986
- this.$L = x(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[P] = !0;
22974
+ function N(B) {
22975
+ this.$L = x(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[D] = !0;
22987
22976
  }
22988
- var C = k.prototype;
22977
+ var C = N.prototype;
22989
22978
  return C.parse = function(B) {
22990
22979
  this.$d = function($) {
22991
22980
  var H = $.date, q = $.utc;
22992
22981
  if (H === null) return /* @__PURE__ */ new Date(NaN);
22993
- if (N.u(H)) return /* @__PURE__ */ new Date();
22982
+ if (k.u(H)) return /* @__PURE__ */ new Date();
22994
22983
  if (H instanceof Date) return new Date(H);
22995
22984
  if (typeof H == "string" && !/Z$/i.test(H)) {
22996
22985
  var I = H.match(m);
@@ -23005,7 +22994,7 @@ function ml() {
23005
22994
  var B = this.$d;
23006
22995
  this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
23007
22996
  }, C.$utils = function() {
23008
- return N;
22997
+ return k;
23009
22998
  }, C.isValid = function() {
23010
22999
  return this.$d.toString() !== h;
23011
23000
  }, C.isSame = function(B, $) {
@@ -23016,17 +23005,17 @@ function ml() {
23016
23005
  }, C.isBefore = function(B, $) {
23017
23006
  return this.endOf($) < S(B);
23018
23007
  }, C.$g = function(B, $, H) {
23019
- return N.u(B) ? this[$] : this.set(H, B);
23008
+ return k.u(B) ? this[$] : this.set(H, B);
23020
23009
  }, C.unix = function() {
23021
23010
  return Math.floor(this.valueOf() / 1e3);
23022
23011
  }, C.valueOf = function() {
23023
23012
  return this.$d.getTime();
23024
23013
  }, C.startOf = function(B, $) {
23025
- var H = this, q = !!N.u($) || $, I = N.p(B), z = function(ce, Ee) {
23026
- var we = N.w(H.$u ? Date.UTC(H.$y, Ee, ce) : new Date(H.$y, Ee, ce), H);
23014
+ var H = this, q = !!k.u($) || $, I = k.p(B), z = function(ce, Ee) {
23015
+ var we = k.w(H.$u ? Date.UTC(H.$y, Ee, ce) : new Date(H.$y, Ee, ce), H);
23027
23016
  return q ? we : we.endOf(l);
23028
23017
  }, X = function(ce, Ee) {
23029
- return N.w(H.toDate()[ce].apply(H.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ee)), H);
23018
+ return k.w(H.toDate()[ce].apply(H.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ee)), H);
23030
23019
  }, R = this.$W, W = this.$M, te = this.$D, oe = "set" + (this.$u ? "UTC" : "");
23031
23020
  switch (I) {
23032
23021
  case p:
@@ -23051,7 +23040,7 @@ function ml() {
23051
23040
  }, C.endOf = function(B) {
23052
23041
  return this.startOf(B, !1);
23053
23042
  }, C.$set = function(B, $) {
23054
- var H, q = N.p(B), I = "set" + (this.$u ? "UTC" : ""), z = (H = {}, H[l] = I + "Date", H[y] = I + "Date", H[f] = I + "Month", H[p] = I + "FullYear", H[u] = I + "Hours", H[o] = I + "Minutes", H[s] = I + "Seconds", H[i] = I + "Milliseconds", H)[q], X = q === l ? this.$D + ($ - this.$W) : $;
23043
+ var H, q = k.p(B), I = "set" + (this.$u ? "UTC" : ""), z = (H = {}, H[l] = I + "Date", H[y] = I + "Date", H[f] = I + "Month", H[p] = I + "FullYear", H[u] = I + "Hours", H[o] = I + "Minutes", H[s] = I + "Seconds", H[i] = I + "Milliseconds", H)[q], X = q === l ? this.$D + ($ - this.$W) : $;
23055
23044
  if (q === f || q === p) {
23056
23045
  var R = this.clone().set(y, 1);
23057
23046
  R.$d[z](X), R.init(), this.$d = R.set(y, Math.min(this.$D, R.daysInMonth())).$d;
@@ -23060,29 +23049,29 @@ function ml() {
23060
23049
  }, C.set = function(B, $) {
23061
23050
  return this.clone().$set(B, $);
23062
23051
  }, C.get = function(B) {
23063
- return this[N.p(B)]();
23052
+ return this[k.p(B)]();
23064
23053
  }, C.add = function(B, $) {
23065
23054
  var H, q = this;
23066
23055
  B = Number(B);
23067
- var I = N.p($), z = function(W) {
23056
+ var I = k.p($), z = function(W) {
23068
23057
  var te = S(q);
23069
- return N.w(te.date(te.date() + Math.round(W * B)), q);
23058
+ return k.w(te.date(te.date() + Math.round(W * B)), q);
23070
23059
  };
23071
23060
  if (I === f) return this.set(f, this.$M + B);
23072
23061
  if (I === p) return this.set(p, this.$y + B);
23073
23062
  if (I === l) return z(1);
23074
23063
  if (I === c) return z(7);
23075
23064
  var X = (H = {}, H[o] = r, H[u] = a, H[s] = n, H)[I] || 1, R = this.$d.getTime() + B * X;
23076
- return N.w(R, this);
23065
+ return k.w(R, this);
23077
23066
  }, C.subtract = function(B, $) {
23078
23067
  return this.add(-1 * B, $);
23079
23068
  }, C.format = function(B) {
23080
23069
  var $ = this, H = this.$locale();
23081
23070
  if (!this.isValid()) return H.invalidDate || h;
23082
- var q = B || "YYYY-MM-DDTHH:mm:ssZ", I = N.z(this), z = this.$H, X = this.$m, R = this.$M, W = H.weekdays, te = H.months, oe = H.meridiem, j = function(Ee, we, Ve, Tt) {
23071
+ var q = B || "YYYY-MM-DDTHH:mm:ssZ", I = k.z(this), z = this.$H, X = this.$m, R = this.$M, W = H.weekdays, te = H.months, oe = H.meridiem, j = function(Ee, we, Ve, Tt) {
23083
23072
  return Ee && (Ee[we] || Ee($, q)) || Ve[we].slice(0, Tt);
23084
23073
  }, re = function(Ee) {
23085
- return N.s(z % 12 || 12, Ee, "0");
23074
+ return k.s(z % 12 || 12, Ee, "0");
23086
23075
  }, ce = oe || function(Ee, we, Ve) {
23087
23076
  var Tt = Ee < 12 ? "AM" : "PM";
23088
23077
  return Ve ? Tt.toLowerCase() : Tt;
@@ -23093,11 +23082,11 @@ function ml() {
23093
23082
  case "YY":
23094
23083
  return String($.$y).slice(-2);
23095
23084
  case "YYYY":
23096
- return N.s($.$y, 4, "0");
23085
+ return k.s($.$y, 4, "0");
23097
23086
  case "M":
23098
23087
  return R + 1;
23099
23088
  case "MM":
23100
- return N.s(R + 1, 2, "0");
23089
+ return k.s(R + 1, 2, "0");
23101
23090
  case "MMM":
23102
23091
  return j(H.monthsShort, R, te, 3);
23103
23092
  case "MMMM":
@@ -23105,7 +23094,7 @@ function ml() {
23105
23094
  case "D":
23106
23095
  return $.$D;
23107
23096
  case "DD":
23108
- return N.s($.$D, 2, "0");
23097
+ return k.s($.$D, 2, "0");
23109
23098
  case "d":
23110
23099
  return String($.$W);
23111
23100
  case "dd":
@@ -23117,7 +23106,7 @@ function ml() {
23117
23106
  case "H":
23118
23107
  return String(z);
23119
23108
  case "HH":
23120
- return N.s(z, 2, "0");
23109
+ return k.s(z, 2, "0");
23121
23110
  case "h":
23122
23111
  return re(1);
23123
23112
  case "hh":
@@ -23129,13 +23118,13 @@ function ml() {
23129
23118
  case "m":
23130
23119
  return String(X);
23131
23120
  case "mm":
23132
- return N.s(X, 2, "0");
23121
+ return k.s(X, 2, "0");
23133
23122
  case "s":
23134
23123
  return String($.$s);
23135
23124
  case "ss":
23136
- return N.s($.$s, 2, "0");
23125
+ return k.s($.$s, 2, "0");
23137
23126
  case "SSS":
23138
- return N.s($.$ms, 3, "0");
23127
+ return k.s($.$ms, 3, "0");
23139
23128
  case "Z":
23140
23129
  return I;
23141
23130
  }
@@ -23145,8 +23134,8 @@ function ml() {
23145
23134
  }, C.utcOffset = function() {
23146
23135
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
23147
23136
  }, C.diff = function(B, $, H) {
23148
- var q, I = this, z = N.p($), X = S(B), R = (X.utcOffset() - this.utcOffset()) * r, W = this - X, te = function() {
23149
- return N.m(I, X);
23137
+ var q, I = this, z = k.p($), X = S(B), R = (X.utcOffset() - this.utcOffset()) * r, W = this - X, te = function() {
23138
+ return k.m(I, X);
23150
23139
  };
23151
23140
  switch (z) {
23152
23141
  case p:
@@ -23176,7 +23165,7 @@ function ml() {
23176
23165
  default:
23177
23166
  q = W;
23178
23167
  }
23179
- return H ? q : N.a(q);
23168
+ return H ? q : k.a(q);
23180
23169
  }, C.daysInMonth = function() {
23181
23170
  return this.endOf(f).$D;
23182
23171
  }, C.$locale = function() {
@@ -23186,7 +23175,7 @@ function ml() {
23186
23175
  var H = this.clone(), q = x(B, $, !0);
23187
23176
  return q && (H.$L = q), H;
23188
23177
  }, C.clone = function() {
23189
- return N.w(this.$d, this);
23178
+ return k.w(this.$d, this);
23190
23179
  }, C.toDate = function() {
23191
23180
  return new Date(this.valueOf());
23192
23181
  }, C.toJSON = function() {
@@ -23195,16 +23184,16 @@ function ml() {
23195
23184
  return this.$d.toISOString();
23196
23185
  }, C.toString = function() {
23197
23186
  return this.$d.toUTCString();
23198
- }, k;
23199
- }(), D = O.prototype;
23200
- return S.prototype = D, [["$ms", i], ["$s", s], ["$m", o], ["$H", u], ["$W", l], ["$M", f], ["$y", p], ["$D", y]].forEach(function(k) {
23201
- D[k[1]] = function(C) {
23202
- return this.$g(C, k[0], k[1]);
23187
+ }, N;
23188
+ }(), P = O.prototype;
23189
+ return S.prototype = P, [["$ms", i], ["$s", s], ["$m", o], ["$H", u], ["$W", l], ["$M", f], ["$y", p], ["$D", y]].forEach(function(N) {
23190
+ P[N[1]] = function(C) {
23191
+ return this.$g(C, N[0], N[1]);
23203
23192
  };
23204
- }), S.extend = function(k, C) {
23205
- return k.$i || (k(C, O, S), k.$i = !0), S;
23206
- }, S.locale = x, S.isDayjs = A, S.unix = function(k) {
23207
- return S(1e3 * k);
23193
+ }), S.extend = function(N, C) {
23194
+ return N.$i || (N(C, O, S), N.$i = !0), S;
23195
+ }, S.locale = x, S.isDayjs = A, S.unix = function(N) {
23196
+ return S(1e3 * N);
23208
23197
  }, S.en = _[w], S.Ls = _, S.p = {}, S;
23209
23198
  });
23210
23199
  }(hr)), hr.exports;
@@ -23463,14 +23452,14 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
23463
23452
  reportAnalyze: v,
23464
23453
  markdownAnalyze: w,
23465
23454
  markdownNameAnalyze: _,
23466
- onCollapsedChange: P,
23455
+ onCollapsedChange: D,
23467
23456
  collapseTransitionMs: A = 260,
23468
23457
  debugTooltipSticky: x = !1,
23469
23458
  nodeValues: S,
23470
- onFilesChange: N,
23459
+ onFilesChange: k,
23471
23460
  onFooterFilesChange: O,
23472
- showFooterUpload: D = !0,
23473
- videoUrlParse: k,
23461
+ showFooterUpload: P = !0,
23462
+ videoUrlParse: N,
23474
23463
  videoUpload: C
23475
23464
  }) => {
23476
23465
  const [B, $] = Kl.useMessage(), H = Z(null), q = Z(null), I = Z(null), z = Z(null), X = Z(null), R = Z(null), W = Z("");
@@ -23480,8 +23469,8 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
23480
23469
  }
23481
23470
  const [te, oe] = ae({});
23482
23471
  se(() => {
23483
- N?.(te);
23484
- }, [te, N]);
23472
+ k?.(te);
23473
+ }, [te, k]);
23485
23474
  const [j, re] = ae([]);
23486
23475
  se(() => {
23487
23476
  O?.(j);
@@ -23699,7 +23688,7 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
23699
23688
  er.current(xe, Ie);
23700
23689
  }, 100));
23701
23690
  }
23702
- }, [S, e, er]), HT(z, ke, te, yt, x), $T(z, ke, yt, p, x), qT(z, ke, te, yt, x), UT(z, ke, yt, x), zT(z, ke, te, Jn, et, S), Fc(z, k, et, Gt, [ke]);
23691
+ }, [S, e, er]), HT(z, ke, te, yt, x), $T(z, ke, yt, p, x), qT(z, ke, te, yt, x), UT(z, ke, yt, x), zT(z, ke, te, Jn, et, S), Fc(z, N, et, Gt, [ke]);
23703
23692
  const Il = Hc(C, Gt);
23704
23693
  $c(z, et, yt, x), VT(z, mt);
23705
23694
  const zi = xc(z), Ll = Ac(z), Vi = Nc(z);
@@ -23755,7 +23744,7 @@ const { RangePicker: ty } = Xl, ny = ({ host: e, onChange: t }) => {
23755
23744
  const Dl = Qc({
23756
23745
  disabled: r,
23757
23746
  collapsed: T,
23758
- onCollapsedChange: P,
23747
+ onCollapsedChange: D,
23759
23748
  config: e,
23760
23749
  lockStructure: i,
23761
23750
  editorRef: z,
@@ -24448,35 +24437,35 @@ const ly = ({
24448
24437
  se(() => {
24449
24438
  T.current = e, v.current = l, w.current = p, _.current = o;
24450
24439
  });
24451
- const P = ue((k, C) => {
24440
+ const D = ue((N, C) => {
24452
24441
  let B = 0;
24453
24442
  m(!0);
24454
24443
  const $ = () => {
24455
- B < k.length ? (u(k.slice(0, B + 1)), B++, b.current = window.setTimeout($, n)) : (m(!1), C?.());
24444
+ B < N.length ? (u(N.slice(0, B + 1)), B++, b.current = window.setTimeout($, n)) : (m(!1), C?.());
24456
24445
  };
24457
24446
  $();
24458
- }, [n]), A = ue((k) => {
24447
+ }, [n]), A = ue((N) => {
24459
24448
  let C = _.current.length;
24460
24449
  const B = () => {
24461
- C > 0 ? (u(_.current.slice(0, C - 1)), C--, b.current = window.setTimeout(B, n / 2)) : k?.();
24450
+ C > 0 ? (u(_.current.slice(0, C - 1)), C--, b.current = window.setTimeout(B, n / 2)) : N?.();
24462
24451
  };
24463
24452
  B();
24464
24453
  }, [n]), x = ue(() => {
24465
24454
  if (T.current.length === 0 || w.current) return;
24466
24455
  g(!0);
24467
- const k = T.current[v.current];
24456
+ const N = T.current[v.current];
24468
24457
  _.current ? A(() => {
24469
- P(k, () => {
24458
+ D(N, () => {
24470
24459
  E.current = window.setTimeout(() => {
24471
24460
  c((C) => (C + 1) % T.current.length), g(!1);
24472
24461
  }, 2e3);
24473
24462
  });
24474
- }) : P(k, () => {
24463
+ }) : D(N, () => {
24475
24464
  E.current = window.setTimeout(() => {
24476
24465
  c((C) => (C + 1) % T.current.length), g(!1);
24477
24466
  }, 2e3);
24478
24467
  });
24479
- }, [A, P]);
24468
+ }, [A, D]);
24480
24469
  return se(() => (r && e.length > 0 && !p && x(), () => {
24481
24470
  E.current && window.clearTimeout(E.current), b.current && window.clearTimeout(b.current);
24482
24471
  }), [l, p, r, e.length, x]), se(() => {
@@ -24487,14 +24476,14 @@ const ly = ({
24487
24476
  {
24488
24477
  ...s,
24489
24478
  value: a,
24490
- onChange: (k) => {
24491
- i?.(k.target.value), s.onChange?.(k);
24479
+ onChange: (N) => {
24480
+ i?.(N.target.value), s.onChange?.(N);
24492
24481
  },
24493
- onFocus: (k) => {
24494
- y(!0), E.current && window.clearTimeout(E.current), b.current && window.clearTimeout(b.current), g(!1), m(!1), s.onFocus?.(k);
24482
+ onFocus: (N) => {
24483
+ y(!0), E.current && window.clearTimeout(E.current), b.current && window.clearTimeout(b.current), g(!1), m(!1), s.onFocus?.(N);
24495
24484
  },
24496
- onBlur: (k) => {
24497
- y(!1), !a && e.length > 0 && (u(""), c(0)), s.onBlur?.(k);
24485
+ onBlur: (N) => {
24486
+ y(!1), !a && e.length > 0 && (u(""), c(0)), s.onBlur?.(N);
24498
24487
  },
24499
24488
  placeholder: p || a ? t : o || t,
24500
24489
  style: {
@@ -24625,27 +24614,27 @@ const cy = ({
24625
24614
  ...p
24626
24615
  // 其他原生属性
24627
24616
  }) => {
24628
- const [y, h] = ae(""), [m, E] = ae(0), [b, T] = ae(!1), [v, w] = ae(!1), [_, P] = ae(!1), [A, x] = ae(a || ""), S = Z(void 0), N = Z(void 0), O = Z(e), D = Z(m), k = Z(v), C = Z(y), B = Z(null);
24617
+ const [y, h] = ae(""), [m, E] = ae(0), [b, T] = ae(!1), [v, w] = ae(!1), [_, D] = ae(!1), [A, x] = ae(a || ""), S = Z(void 0), k = Z(void 0), O = Z(e), P = Z(m), N = Z(v), C = Z(y), B = Z(null);
24629
24618
  se(() => {
24630
- O.current = e, D.current = m, k.current = v, C.current = y;
24619
+ O.current = e, P.current = m, N.current = v, C.current = y;
24631
24620
  });
24632
24621
  const $ = ue((j, re) => {
24633
24622
  let ce = 0;
24634
- P(!0);
24623
+ D(!0);
24635
24624
  const Ee = () => {
24636
- ce < j.length ? (h(j.slice(0, ce + 1)), ce++, N.current = window.setTimeout(Ee, n)) : (P(!1), re?.());
24625
+ ce < j.length ? (h(j.slice(0, ce + 1)), ce++, k.current = window.setTimeout(Ee, n)) : (D(!1), re?.());
24637
24626
  };
24638
24627
  Ee();
24639
24628
  }, [n]), H = ue((j) => {
24640
24629
  let re = C.current.length;
24641
24630
  const ce = () => {
24642
- re > 0 ? (h(C.current.slice(0, re - 1)), re--, N.current = window.setTimeout(ce, n / 2)) : j?.();
24631
+ re > 0 ? (h(C.current.slice(0, re - 1)), re--, k.current = window.setTimeout(ce, n / 2)) : j?.();
24643
24632
  };
24644
24633
  ce();
24645
24634
  }, [n]), q = ue(() => {
24646
- if (O.current.length === 0 || k.current) return;
24635
+ if (O.current.length === 0 || N.current) return;
24647
24636
  T(!0);
24648
- const j = O.current[D.current];
24637
+ const j = O.current[P.current];
24649
24638
  C.current ? H(() => {
24650
24639
  $(j, () => {
24651
24640
  S.current = window.setTimeout(() => {
@@ -24659,12 +24648,12 @@ const cy = ({
24659
24648
  });
24660
24649
  }, [H, $]);
24661
24650
  se(() => (r && e.length > 0 && !v && q(), () => {
24662
- S.current && window.clearTimeout(S.current), N.current && window.clearTimeout(N.current);
24651
+ S.current && window.clearTimeout(S.current), k.current && window.clearTimeout(k.current);
24663
24652
  }), [m, v, r, e.length, q]), se(() => {
24664
24653
  !b && r && e.length > 0 && !v && q();
24665
24654
  }, [m, b, r, e.length, v, q]);
24666
24655
  const I = (j) => {
24667
- w(!0), S.current && window.clearTimeout(S.current), N.current && window.clearTimeout(N.current), T(!1), P(!1), p.onFocus?.(j);
24656
+ w(!0), S.current && window.clearTimeout(S.current), k.current && window.clearTimeout(k.current), T(!1), D(!1), p.onFocus?.(j);
24668
24657
  }, z = (j) => {
24669
24658
  w(!1), !a && e.length > 0 && (h(""), E(0)), p.onBlur?.(j);
24670
24659
  }, X = (j) => {
@@ -24915,21 +24904,21 @@ const El = ({
24915
24904
  style: y,
24916
24905
  ...h
24917
24906
  }) => {
24918
- const m = Z(null), [E, b] = ae(!1), [T, v] = ae(!1), [w, _] = ae(!1), P = ue(() => {
24907
+ const m = Z(null), [E, b] = ae(!1), [T, v] = ae(!1), [w, _] = ae(!1), D = ue(() => {
24919
24908
  m.current && (m.current.play(), b(!0), c?.());
24920
24909
  }, [c]), A = ue(() => {
24921
24910
  m.current && (m.current.pause(), b(!1), f?.());
24922
24911
  }, [f]), x = ue(($) => {
24923
- $.stopPropagation(), E ? A() : P();
24924
- }, [E, P, A]), S = ue(() => {
24925
- v(!0), o && !E && P();
24926
- }, [o, E, P]), N = ue(() => {
24912
+ $.stopPropagation(), E ? A() : D();
24913
+ }, [E, D, A]), S = ue(() => {
24914
+ v(!0), o && !E && D();
24915
+ }, [o, E, D]), k = ue(() => {
24927
24916
  v(!1), o && E && A();
24928
24917
  }, [o, E, A]), O = ue(() => {
24929
24918
  _(!0), l?.();
24930
- }, [l]), D = ue(() => {
24919
+ }, [l]), P = ue(() => {
24931
24920
  b(!0), c?.();
24932
- }, [c]), k = ue(() => {
24921
+ }, [c]), N = ue(() => {
24933
24922
  b(!1), f?.();
24934
24923
  }, [f]), C = ue(() => {
24935
24924
  b(!1), g?.();
@@ -24953,7 +24942,7 @@ const El = ({
24953
24942
  },
24954
24943
  bordered: !1,
24955
24944
  onMouseEnter: S,
24956
- onMouseLeave: N,
24945
+ onMouseLeave: k,
24957
24946
  onClick: B,
24958
24947
  children: /* @__PURE__ */ fe("div", { className: "video-card-container", children: [
24959
24948
  /* @__PURE__ */ V(
@@ -24964,8 +24953,8 @@ const El = ({
24964
24953
  poster: t,
24965
24954
  preload: "metadata",
24966
24955
  onLoadedData: O,
24967
- onPlay: D,
24968
- onPause: k,
24956
+ onPlay: P,
24957
+ onPause: N,
24969
24958
  onEnded: C,
24970
24959
  muted: !0,
24971
24960
  loop: !0
@@ -25110,11 +25099,11 @@ const dy = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
25110
25099
  }, [r, t, a]), p = ue(() => {
25111
25100
  if (!u.current) return;
25112
25101
  const m = l, E = u.current, T = (E.offsetWidth - n * (m - 1)) / m, v = new Array(m).fill(0);
25113
- e.forEach((_, P) => {
25114
- const A = _.id || P, x = f.current.get(A);
25102
+ e.forEach((_, D) => {
25103
+ const A = _.id || D, x = f.current.get(A);
25115
25104
  if (!x) return;
25116
- const S = Math.min(...v), N = v.indexOf(S), O = N * (T + n), D = v[N];
25117
- x.style.position = "absolute", x.style.left = `${O}px`, x.style.top = `${D}px`, x.style.width = `${T}px`, v[N] += x.offsetHeight + n;
25105
+ const S = Math.min(...v), k = v.indexOf(S), O = k * (T + n), P = v[k];
25106
+ x.style.position = "absolute", x.style.left = `${O}px`, x.style.top = `${P}px`, x.style.width = `${T}px`, v[k] += x.offsetHeight + n;
25118
25107
  });
25119
25108
  const w = Math.max(...v);
25120
25109
  E.style.height = `${w}px`;
@@ -25413,11 +25402,11 @@ const lr = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
25413
25402
  const v = a[T];
25414
25403
  let w = v.split(/[\r\n]+/).map((A) => A.trim()).filter((A) => A !== "");
25415
25404
  w.length < c && (w = by(v));
25416
- const _ = (A) => w.length === c * 2 ? w[A * 2] ?? "" : w[A] ?? "", P = {};
25417
- P[An("日期")] = E, l.forEach((A, x) => {
25418
- const S = _(x), N = Ey(S), O = An(A);
25419
- P[O] = N;
25420
- }), f.push(P);
25405
+ const _ = (A) => w.length === c * 2 ? w[A * 2] ?? "" : w[A] ?? "", D = {};
25406
+ D[An("日期")] = E, l.forEach((A, x) => {
25407
+ const S = _(x), k = Ey(S), O = An(A);
25408
+ D[O] = k;
25409
+ }), f.push(D);
25421
25410
  });
25422
25411
  const g = o.filter((E) => {
25423
25412
  const b = An(E);