alit-layout 1.0.22 → 1.0.23

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.
Files changed (2) hide show
  1. package/dist/index.es.js +256 -256
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1600,7 +1600,7 @@ const rt = {
1600
1600
  top: `${t.padding.top - 20}px`
1601
1601
  }
1602
1602
  })[t.layout.pagePoint], n = (o, s) => {
1603
- const r = t.columnContentWidth + t.columnMargin, d = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, p = {
1603
+ const c = t.columnContentWidth + t.columnMargin, d = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, p = {
1604
1604
  t: {
1605
1605
  top: `${t.padding.top - 20}px`
1606
1606
  },
@@ -1608,13 +1608,13 @@ const rt = {
1608
1608
  bottom: `${t.padding.bottom - 20}px`
1609
1609
  }
1610
1610
  };
1611
- return { left: `${o * r + d}px`, ...p[s] };
1612
- }, c = (o) => {
1611
+ return { left: `${o * c + d}px`, ...p[s] };
1612
+ }, r = (o) => {
1613
1613
  const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((A) => A === o);
1614
1614
  return { top: `${s * p + t.padding.top - 10}px`, width: "11px", ...d };
1615
1615
  };
1616
1616
  return (o, s) => {
1617
- var r;
1617
+ var c;
1618
1618
  return i(), u(E, null, [
1619
1619
  (i(), u(E, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
1620
1620
  key: d,
@@ -1633,7 +1633,7 @@ const rt = {
1633
1633
  (i(), u(E, null, Z(["l", "r"], (d) => f("span", {
1634
1634
  key: d,
1635
1635
  class: "absolute bg-black h-8",
1636
- style: q(c(d)),
1636
+ style: q(r(d)),
1637
1637
  "data-xine": x(k).point + d
1638
1638
  }, null, 12, fo)), 64)),
1639
1639
  f("p", {
@@ -1651,7 +1651,7 @@ const rt = {
1651
1651
  key: 0,
1652
1652
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1653
1653
  style: q({ right: `${o.padding.right - 12}px` })
1654
- }, "提示:本卷" + J((r = x(Oe).find((d) => d.code === o.layout.paper)) == null ? void 0 : r.name) + "纸张", 5)),
1654
+ }, "提示:本卷" + J((c = x(Oe).find((d) => d.code === o.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
1655
1655
  f("span", {
1656
1656
  class: "absolute text-sm red_sheet",
1657
1657
  style: q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
@@ -1687,7 +1687,7 @@ const de = (e, t) => {
1687
1687
  Me(() => a.value, () => {
1688
1688
  l.value = a.value;
1689
1689
  });
1690
- const c = (d) => {
1690
+ const r = (d) => {
1691
1691
  l.value = d.target.value, t("input", a.type === "number" ? parseFloat(l.value) : l.value);
1692
1692
  }, o = (d) => {
1693
1693
  l.value = d.target.value, t("change", a.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
@@ -1695,7 +1695,7 @@ const de = (e, t) => {
1695
1695
  }, 400);
1696
1696
  }, s = (d) => {
1697
1697
  l.value = d.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value), n.value = !0;
1698
- }, r = () => {
1698
+ }, c = () => {
1699
1699
  t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value), n.value = !1;
1700
1700
  };
1701
1701
  return (d, p) => (i(), u("div", {
@@ -1708,10 +1708,10 @@ const de = (e, t) => {
1708
1708
  placeholder: d.placeholder,
1709
1709
  maxlength: d.maxLength,
1710
1710
  value: l.value,
1711
- onInput: c,
1711
+ onInput: r,
1712
1712
  onChange: o,
1713
1713
  onFocus: s,
1714
- onBlur: r
1714
+ onBlur: c
1715
1715
  }, null, 42, ko)
1716
1716
  ]),
1717
1717
  d.unit ? (i(), u("span", Co, J(d.unit), 1)) : M("", !0)
@@ -1729,9 +1729,9 @@ const de = (e, t) => {
1729
1729
  right: `${l.value.right + 97}px`,
1730
1730
  bottom: `${l.value.bottom - 25}px`
1731
1731
  }));
1732
- return (c, o) => (i(), j(et, {
1732
+ return (r, o) => (i(), j(et, {
1733
1733
  class: "absolute w-72 text-sm",
1734
- value: c.info.slogan,
1734
+ value: r.info.slogan,
1735
1735
  maxLength: 12,
1736
1736
  placeholder: "",
1737
1737
  size: "small",
@@ -1751,9 +1751,9 @@ const de = (e, t) => {
1751
1751
  emits: ["click"],
1752
1752
  setup(e, { emit: t }) {
1753
1753
  const a = e, l = N(() => `#icon-${a.name}`);
1754
- return (n, c) => (i(), u("span", {
1754
+ return (n, r) => (i(), u("span", {
1755
1755
  class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
1756
- onClick: c[0] || (c[0] = (o) => t("click"))
1756
+ onClick: r[0] || (r[0] = (o) => t("click"))
1757
1757
  }, [
1758
1758
  (i(), u("svg", {
1759
1759
  width: n.width + "rem",
@@ -1799,7 +1799,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1799
1799
  const a = e, l = (n) => {
1800
1800
  t("change", n.target.innerHTML, a.name);
1801
1801
  };
1802
- return (n, c) => (i(), u("div", {
1802
+ return (n, r) => (i(), u("div", {
1803
1803
  innerHTML: n.value,
1804
1804
  contenteditable: "",
1805
1805
  onBlur: l
@@ -1830,7 +1830,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1830
1830
  },
1831
1831
  emits: ["change"],
1832
1832
  setup(e, { emit: t }) {
1833
- const a = e, l = N(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = N(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), c = N(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1833
+ const a = e, l = N(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = N(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), r = N(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
1834
  return (o, s) => (i(), u("div", Mo, [
1835
1835
  f("img", {
1836
1836
  src: o.info.qrCode,
@@ -1843,14 +1843,14 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1843
1843
  class: "w-full text-center border-2 border-transparent focus:border-current",
1844
1844
  value: o.info.title,
1845
1845
  style: q(o.fontConfig.titleStyle),
1846
- onChange: s[0] || (s[0] = (r) => t("change", { title: r }))
1846
+ onChange: s[0] || (s[0] = (c) => t("change", { title: c }))
1847
1847
  }, null, 8, ["value", "style"]),
1848
1848
  o.layout.secTitleFlag ? (i(), j(Be, {
1849
1849
  key: 0,
1850
1850
  class: "w-full text-center border-2 border-transparent focus:border-current",
1851
1851
  value: o.info.secTitle,
1852
1852
  style: q(o.fontConfig.halfTitleStyle),
1853
- onChange: s[1] || (s[1] = (r) => t("change", { secTitle: r }))
1853
+ onChange: s[1] || (s[1] = (c) => t("change", { secTitle: c }))
1854
1854
  }, null, 8, ["value", "style"])) : M("", !0),
1855
1855
  f("div", Bo, [
1856
1856
  o.layout.examExtentFlag ? (i(), u("p", Oo, [
@@ -1858,7 +1858,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1858
1858
  V(Be, {
1859
1859
  class: "flex-1",
1860
1860
  value: o.info.extent,
1861
- onChange: s[2] || (s[2] = (r) => t("change", { extent: r }))
1861
+ onChange: s[2] || (s[2] = (c) => t("change", { extent: c }))
1862
1862
  }, null, 8, ["value"])
1863
1863
  ])) : M("", !0),
1864
1864
  o.layout.examTimeFlag ? (i(), u("p", Ho, [
@@ -1870,7 +1870,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1870
1870
  autoLine: "",
1871
1871
  size: "small",
1872
1872
  placeholder: "",
1873
- onChange: s[3] || (s[3] = (r) => t("change", { time: r }))
1873
+ onChange: s[3] || (s[3] = (c) => t("change", { time: c }))
1874
1874
  }, null, 8, ["value"]),
1875
1875
  Wo
1876
1876
  ])) : M("", !0),
@@ -1879,7 +1879,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1879
1879
  V(Be, {
1880
1880
  class: "flex-1",
1881
1881
  value: o.info.author,
1882
- onChange: s[4] || (s[4] = (r) => t("change", { author: r }))
1882
+ onChange: s[4] || (s[4] = (c) => t("change", { author: c }))
1883
1883
  }, null, 8, ["value"])
1884
1884
  ])) : M("", !0),
1885
1885
  o.layout.reviewerFlag ? (i(), u("p", qo, [
@@ -1887,42 +1887,42 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1887
1887
  V(Be, {
1888
1888
  class: "flex-1",
1889
1889
  value: o.info.reviewer,
1890
- onChange: s[5] || (s[5] = (r) => t("change", { reviewer: r }))
1890
+ onChange: s[5] || (s[5] = (c) => t("change", { reviewer: c }))
1891
1891
  }, null, 8, ["value"])
1892
1892
  ])) : M("", !0),
1893
1893
  o.layout.totalScoreFlag ? (i(), u("p", Uo, [
1894
1894
  Ko,
1895
- c.value ? (i(), j(_e, {
1895
+ r.value ? (i(), j(_e, {
1896
1896
  key: 0,
1897
- name: c.value,
1897
+ name: r.value,
1898
1898
  class: "p-0 -translate-y-[1px]"
1899
1899
  }, null, 8, ["name"])) : (i(), u("span", jo, "分")),
1900
1900
  f("span", null, ":" + J(l.value + (o.layout.writeScoreFlag ? o.info.writeScore : 0)), 1),
1901
- c.value ? (i(), j(_e, {
1901
+ r.value ? (i(), j(_e, {
1902
1902
  key: 2,
1903
- name: c.value,
1903
+ name: r.value,
1904
1904
  class: "p-0 -translate-y-[1px]"
1905
1905
  }, null, 8, ["name"])) : (i(), u("span", Vo, "分")),
1906
1906
  o.layout.writeScoreFlag ? (i(), u(E, { key: 4 }, [
1907
1907
  f("span", null, "(试题" + J(l.value), 1),
1908
- c.value ? (i(), j(_e, {
1908
+ r.value ? (i(), j(_e, {
1909
1909
  key: 0,
1910
- name: c.value,
1910
+ name: r.value,
1911
1911
  class: "p-0 -translate-y-[1px]"
1912
1912
  }, null, 8, ["name"])) : (i(), u("span", Xo, "分")),
1913
1913
  f("span", null, "+卷面" + J(o.info.writeScore || 0), 1),
1914
- c.value ? (i(), j(_e, {
1914
+ r.value ? (i(), j(_e, {
1915
1915
  key: 2,
1916
- name: c.value,
1916
+ name: r.value,
1917
1917
  class: "p-0 -translate-y-[1px]"
1918
1918
  }, null, 8, ["name"])) : (i(), u("span", Jo, "分")),
1919
1919
  Zo
1920
1920
  ], 64)) : M("", !0),
1921
1921
  n.value ? (i(), u(E, { key: 5 }, [
1922
1922
  f("span", null, ";附加题:" + J(n.value), 1),
1923
- c.value ? (i(), j(_e, {
1923
+ r.value ? (i(), j(_e, {
1924
1924
  key: 0,
1925
- name: c.value,
1925
+ name: r.value,
1926
1926
  class: "p-0 -translate-y-[1px]"
1927
1927
  }, null, 8, ["name"])) : (i(), u("span", ea, "分"))
1928
1928
  ], 64)) : M("", !0)
@@ -1940,16 +1940,16 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1940
1940
  setup(e, { emit: t }) {
1941
1941
  const a = ["examNumField", "examRoomField", "seatField"];
1942
1942
  return (l, n) => (i(), u("ul", oa, [
1943
- (i(), u(E, null, Z(a, (c) => f("li", {
1944
- key: c,
1943
+ (i(), u(E, null, Z(a, (r) => f("li", {
1944
+ key: r,
1945
1945
  class: "flex flex-1"
1946
1946
  }, [
1947
1947
  V(et, {
1948
- value: l.extent[c],
1948
+ value: l.extent[r],
1949
1949
  class: "px-0",
1950
1950
  placeholder: "",
1951
1951
  autoLine: "",
1952
- onChange: (o) => t("change", { [c]: o })
1952
+ onChange: (o) => t("change", { [r]: o })
1953
1953
  }, null, 8, ["value", "onChange"])
1954
1954
  ])), 64))
1955
1955
  ]));
@@ -1977,11 +1977,11 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1977
1977
  class: "flex-1 flex items-center text-0 px-1 border-t",
1978
1978
  "data-xine": x(k).en_num_group
1979
1979
  }, [
1980
- (i(), u(E, null, Z(10, (c) => f("span", {
1981
- key: c,
1980
+ (i(), u(E, null, Z(10, (r) => f("span", {
1981
+ key: r,
1982
1982
  class: "flex items-center justify-between flex-nowrap item",
1983
1983
  "data-xine": x(k).en_num_item
1984
- }, J(c - 1), 9, ia)), 64))
1984
+ }, J(r - 1), 9, ia)), 64))
1985
1985
  ], 8, sa)), 64))
1986
1986
  ], 8, na)
1987
1987
  ], 8, aa));
@@ -2010,11 +2010,11 @@ const wt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
2010
2010
  class: oe(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
2011
2011
  "data-xine": x(k).en_num_group
2012
2012
  }, [
2013
- (i(), u(E, null, Z(10, (c) => f("span", {
2014
- key: c,
2013
+ (i(), u(E, null, Z(10, (r) => f("span", {
2014
+ key: r,
2015
2015
  class: "flex items-center justify-between flex-nowrap item",
2016
2016
  "data-xine": x(k).en_num_item
2017
- }, J(c - 1), 9, pa)), 64))
2017
+ }, J(r - 1), 9, pa)), 64))
2018
2018
  ], 10, ha)), 64))
2019
2019
  ], 8, ua)
2020
2020
  ], 8, ca));
@@ -2029,16 +2029,16 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2029
2029
  setup(e, { emit: t }) {
2030
2030
  const a = ["nameField", "classField", "scoreField"];
2031
2031
  return (l, n) => (i(), u("ul", ya, [
2032
- (i(), u(E, null, Z(a, (c) => f("li", {
2033
- key: c,
2032
+ (i(), u(E, null, Z(a, (r) => f("li", {
2033
+ key: r,
2034
2034
  class: "flex flex-1"
2035
2035
  }, [
2036
2036
  V(et, {
2037
- value: l.extent[c],
2037
+ value: l.extent[r],
2038
2038
  class: "px-0",
2039
2039
  placeholder: "",
2040
2040
  autoLine: "",
2041
- onChange: (o) => t("change", { [c]: o })
2041
+ onChange: (o) => t("change", { [r]: o })
2042
2042
  }, null, 8, ["value", "onChange"])
2043
2043
  ])), 64))
2044
2044
  ]));
@@ -2058,23 +2058,23 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2058
2058
  emits: ["change"],
2059
2059
  setup(e, { emit: t }) {
2060
2060
  const a = e, l = N(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
2061
- return (n, c) => n.isBindFlag ? M("", !0) : (i(), u("div", ga, [
2061
+ return (n, r) => n.isBindFlag ? M("", !0) : (i(), u("div", ga, [
2062
2062
  l.value ? (i(), u(E, { key: 0 }, [
2063
2063
  n.layout.seatType === x(xe).none ? (i(), j(vt, {
2064
2064
  key: 0,
2065
2065
  extent: n.info.extentInfo,
2066
- onChange: c[0] || (c[0] = (o) => t("change", o))
2066
+ onChange: r[0] || (r[0] = (o) => t("change", o))
2067
2067
  }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(xt, { key: 2 })) : M("", !0)
2068
2068
  ], 64)) : M("", !0),
2069
2069
  V(_a, {
2070
2070
  extent: n.info.extentInfo,
2071
- onChange: c[1] || (c[1] = (o) => t("change", o))
2071
+ onChange: r[1] || (r[1] = (o) => t("change", o))
2072
2072
  }, null, 8, ["extent"]),
2073
2073
  l.value ? M("", !0) : (i(), u(E, { key: 1 }, [
2074
2074
  n.layout.seatType === x(xe).none ? (i(), j(vt, {
2075
2075
  key: 0,
2076
2076
  extent: n.info.extentInfo,
2077
- onChange: c[2] || (c[2] = (o) => t("change", o))
2077
+ onChange: r[2] || (r[2] = (o) => t("change", o))
2078
2078
  }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(xt, { key: 2 })) : M("", !0)
2079
2079
  ], 64)),
2080
2080
  f("div", {
@@ -2117,10 +2117,10 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2117
2117
  l.layout.noteFlag ? (i(), u("div", Ca, [
2118
2118
  $a,
2119
2119
  f("div", Sa, [
2120
- (i(!0), u(E, null, Z(a.value, (c) => (i(), u("p", {
2121
- key: c,
2120
+ (i(!0), u(E, null, Z(a.value, (r) => (i(), u("p", {
2121
+ key: r,
2122
2122
  class: "px-2 origin-left scale-75 tip_item"
2123
- }, J(c), 1))), 128))
2123
+ }, J(r), 1))), 128))
2124
2124
  ])
2125
2125
  ])) : M("", !0),
2126
2126
  l.layout.lackFlag ? (i(), u("div", {
@@ -2145,18 +2145,18 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2145
2145
  });
2146
2146
  const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", a = !0, l = "children") => {
2147
2147
  let n = [];
2148
- const c = (o) => {
2149
- (o[l] || []).length ? (a && n.push(t ? o[t] : o[l]), o[l].forEach((s) => c(s))) : n.push(t ? o[t] : o);
2148
+ const r = (o) => {
2149
+ (o[l] || []).length ? (a && n.push(t ? o[t] : o[l]), o[l].forEach((s) => r(s))) : n.push(t ? o[t] : o);
2150
2150
  };
2151
- return e.forEach((o) => c(o)), n.flat(5);
2151
+ return e.forEach((o) => r(o)), n.flat(5);
2152
2152
  };
2153
2153
  function Mt(e) {
2154
2154
  if (e < 0 || e > 99)
2155
2155
  throw Error("下标超限");
2156
2156
  const t = "零一二三四五六七八九".split("");
2157
2157
  return [...Array(100)].map((l, n) => {
2158
- const c = Math.floor(n / t.length), o = n % t.length;
2159
- return c ? `${c > 1 ? t[c] : ""}十${o ? t[o] : ""}` : t[o];
2158
+ const r = Math.floor(n / t.length), o = n % t.length;
2159
+ return r ? `${r > 1 ? t[r] : ""}十${o ? t[o] : ""}` : t[o];
2160
2160
  })[e + 1];
2161
2161
  }
2162
2162
  function Ct(e) {
@@ -2181,8 +2181,8 @@ const za = {
2181
2181
  const t = e, a = N(() => t.data.filter((l) => l.problemType));
2182
2182
  return (l, n) => l.layout.scoreFlag ? (i(), u("ul", za, [
2183
2183
  Ha,
2184
- (i(!0), u(E, null, Z(a.value, (c, o) => (i(), u("li", {
2185
- key: c.id,
2184
+ (i(!0), u(E, null, Z(a.value, (r, o) => (i(), u("li", {
2185
+ key: r.id,
2186
2186
  class: "flex-1 flex flex-col border-l"
2187
2187
  }, [
2188
2188
  f("p", Ra, J(x(Mt)(o)), 1),
@@ -2202,10 +2202,10 @@ const za = {
2202
2202
  setup(e, { expose: t }) {
2203
2203
  const a = e, l = Y(), n = Y();
2204
2204
  t({ col: l, colView: n });
2205
- const c = N(() => {
2206
- const { top: r, width: d, height: p, left: A } = a.styleInfo;
2205
+ const r = N(() => {
2206
+ const { top: c, width: d, height: p, left: A } = a.styleInfo;
2207
2207
  return {
2208
- top: `${parseFloat(r) - (a.currentColumn ? $e.top : 1)}px`,
2208
+ top: `${parseFloat(c) - (a.currentColumn ? $e.top : 1)}px`,
2209
2209
  left: `${parseFloat(A) - $e.left}px`,
2210
2210
  width: `${parseFloat(d) + $e.left + $e.right}px`,
2211
2211
  height: `${parseFloat(p) + (a.currentColumn ? $e.top : 0) + $e.bottom}px`
@@ -2216,11 +2216,11 @@ const za = {
2216
2216
  bottom: `${$e.bottom - 1}px`,
2217
2217
  right: `${$e.right - 1}px`
2218
2218
  })), s = N(() => a.column < 3 || a.currentColumn % 3 === 1);
2219
- return (r, d) => (i(), u(E, null, [
2220
- r.showColBorder ? (i(), u("div", {
2219
+ return (c, d) => (i(), u(E, null, [
2220
+ c.showColBorder ? (i(), u("div", {
2221
2221
  key: 0,
2222
2222
  class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
2223
- style: q(c.value)
2223
+ style: q(r.value)
2224
2224
  }, [
2225
2225
  f("span", {
2226
2226
  class: "absolute border border-black",
@@ -2231,15 +2231,15 @@ const za = {
2231
2231
  class: "absolute overflow-hidden",
2232
2232
  ref_key: "colView",
2233
2233
  ref: n,
2234
- style: q(r.styleInfo)
2234
+ style: q(c.styleInfo)
2235
2235
  }, [
2236
2236
  f("div", {
2237
2237
  ref_key: "col",
2238
2238
  ref: l,
2239
2239
  class: "overflow-hidden __col__",
2240
- style: q({ height: r.styleInfo.contentHeight })
2240
+ style: q({ height: c.styleInfo.contentHeight })
2241
2241
  }, [
2242
- it(r.$slots, "default", {}, void 0, !0)
2242
+ it(c.$slots, "default", {}, void 0, !0)
2243
2243
  ], 4)
2244
2244
  ], 4)
2245
2245
  ], 64));
@@ -2273,11 +2273,11 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2273
2273
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2274
2274
  style: q({ width: `${l.height - 20}px` })
2275
2275
  }, [
2276
- (i(), u(E, null, Z(a, (c) => f("p", {
2277
- key: c,
2276
+ (i(), u(E, null, Z(a, (r) => f("p", {
2277
+ key: r,
2278
2278
  class: "flex items-end flex-1 mr-4"
2279
2279
  }, [
2280
- f("span", null, J(c), 1),
2280
+ f("span", null, J(r), 1),
2281
2281
  Ua
2282
2282
  ])), 64)),
2283
2283
  f("div", {
@@ -2302,7 +2302,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2302
2302
  const n = t.item.score;
2303
2303
  return [n, Math.round(n / 2 * 100) / 100, 0];
2304
2304
  });
2305
- return (n, c) => (i(), u("div", {
2305
+ return (n, r) => (i(), u("div", {
2306
2306
  class: "flex border-x-2 border-y divide-x divide-solid",
2307
2307
  "data-block": x(ke),
2308
2308
  "data-xine": x(k).score
@@ -2333,11 +2333,11 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2333
2333
  static: { type: Boolean }
2334
2334
  },
2335
2335
  setup(e) {
2336
- const t = e, a = Y(), l = Y(!1), n = Y(!1), c = Y(!1), o = Y([]), s = N(() => t.layout.scoreAddStars === Ze.star.code);
2337
- Me(() => [t.item.score], () => r()), Xe(() => {
2338
- r();
2336
+ const t = e, a = Y(), l = Y(!1), n = Y(!1), r = Y(!1), o = Y([]), s = N(() => t.layout.scoreAddStars === Ze.star.code);
2337
+ Me(() => [t.item.score], () => c()), Xe(() => {
2338
+ c();
2339
2339
  });
2340
- const r = () => {
2340
+ const c = () => {
2341
2341
  !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
2342
2342
  let p = [];
2343
2343
  if (t.item.scoreLineType === Ke.custom)
@@ -2346,7 +2346,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2346
2346
  p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((A) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * A)).reverse());
2347
2347
  else {
2348
2348
  const A = a.value.offsetWidth, h = je[t.layout.scoreLineSize].value + 1;
2349
- l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((T) => T && T * 10).reverse()), p.push([...Array(10).keys()].reverse()), c.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2349
+ l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((T) => T && T * 10).reverse()), p.push([...Array(10).keys()].reverse()), r.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2350
2350
  }
2351
2351
  t.item.hasHalfScore && p.push([0.5]), o.value = p, n.value = !!p.flat().find((A) => `${A}`.length > 3);
2352
2352
  });
@@ -2455,21 +2455,21 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2455
2455
  },
2456
2456
  emits: ["click", "dbclick"],
2457
2457
  setup(e, { emit: t }) {
2458
- const a = e, l = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), n = N(() => [ve.another_choice].includes(a.item.problemType)), c = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = N(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((r) => r.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2459
- return (s, r) => s.item.problemType ? (i(), u("div", {
2458
+ const a = e, l = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), n = N(() => [ve.another_choice].includes(a.item.problemType)), r = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = N(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((c) => c.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2459
+ return (s, c) => s.item.problemType ? (i(), u("div", {
2460
2460
  key: 1,
2461
2461
  class: oe(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view"]),
2462
- onClick: r[2] || (r[2] = Le((d) => t("click", s.item), ["stop"])),
2462
+ onClick: c[2] || (c[2] = Le((d) => t("click", s.item), ["stop"])),
2463
2463
  "data-tag": s.item.__tag__,
2464
2464
  "data-block": x(ke),
2465
- onDblclick: r[3] || (r[3] = Le((d) => t("dbclick", s.item), ["stop"]))
2465
+ onDblclick: c[3] || (c[3] = Le((d) => t("dbclick", s.item), ["stop"]))
2466
2466
  }, [
2467
2467
  !s.layout.listIndexFlag && s.item.sub ? (i(), u("span", kl, J(x(Mt)(s.item.sub - 1)) + "、", 1)) : M("", !0),
2468
2468
  f("div", null, [
2469
2469
  f("div", Cl, [
2470
2470
  f("span", null, J(s.item.name), 1),
2471
2471
  s.item.desc ? (i(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : M("", !0),
2472
- s.layout.scoreTipFlag ? (i(), u("span", Sl, "(共" + J(c.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : M("", !0)
2472
+ s.layout.scoreTipFlag ? (i(), u("span", Sl, "(共" + J(r.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : M("", !0)
2473
2473
  ]),
2474
2474
  l.value || n.value ? (i(), u("div", Tl, [
2475
2475
  l.value ? (i(), u("p", Il, "请在以下" + J(s.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (i(), u("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
@@ -2493,8 +2493,8 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2493
2493
  key: 0,
2494
2494
  class: oe([s.isActive && "border-current", s.isFirst && "mt-9"]),
2495
2495
  item: s.item,
2496
- onClick: r[0] || (r[0] = Le((d) => t("click", s.item), ["stop"])),
2497
- onDblclick: r[1] || (r[1] = Le((d) => t("dbclick", s.item), ["stop"]))
2496
+ onClick: c[0] || (c[0] = Le((d) => t("click", s.item), ["stop"])),
2497
+ onDblclick: c[1] || (c[1] = Le((d) => t("dbclick", s.item), ["stop"]))
2498
2498
  }, null, 8, ["class", "item"]));
2499
2499
  }
2500
2500
  });
@@ -2718,21 +2718,21 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2718
2718
  layout: {}
2719
2719
  },
2720
2720
  setup(e) {
2721
- const t = e, a = Y(0), l = Y({}), n = Y(), c = Y(), o = Y([]), s = N(() => {
2721
+ const t = e, a = Y(0), l = Y({}), n = Y(), r = Y(), o = Y([]), s = N(() => {
2722
2722
  const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
2723
2723
  return h ? Math.ceil(h / (a.value || h)) : 0;
2724
- }), r = N(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = N(() => ({
2725
- width: `${a.value * r.value}px`,
2726
- height: `${r.value}px`
2724
+ }), c = N(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = N(() => ({
2725
+ width: `${a.value * c.value}px`,
2726
+ height: `${c.value}px`
2727
2727
  })), p = N(() => ({
2728
- width: `${r.value}px`
2728
+ width: `${c.value}px`
2729
2729
  })), A = N(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
2730
2730
  return Xe(() => {
2731
2731
  Je(() => {
2732
- a.value = Math.floor(n.value.offsetWidth / r.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2732
+ a.value = Math.floor(n.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2733
2733
  if (!n.value)
2734
2734
  return;
2735
- const I = n.value.getBoundingClientRect(), H = c.value[0].getBoundingClientRect();
2735
+ const I = n.value.getBoundingClientRect(), H = r.value[0].getBoundingClientRect();
2736
2736
  l.value = {
2737
2737
  left: `${H.left - I.left}px`,
2738
2738
  top: `${H.top - I.top}px`
@@ -2771,12 +2771,12 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2771
2771
  "data-block": x(Ee),
2772
2772
  "data-guide": h.item.id,
2773
2773
  class: oe(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2774
- style: q({ ...l.value, width: d.value.width, lineHeight: `${r.value + 7}px` })
2774
+ style: q({ ...l.value, width: d.value.width, lineHeight: `${c.value + 7}px` })
2775
2775
  }, J(h.item.beforeGuide), 15, zn)) : M("", !0),
2776
2776
  (i(!0), u(E, null, Z(s.value, (Q, G) => (i(), u("p", {
2777
2777
  ref_for: !0,
2778
2778
  ref_key: "line",
2779
- ref: c,
2779
+ ref: r,
2780
2780
  class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2781
2781
  "data-block": x(ke),
2782
2782
  "data-size": h.item.startAnswerLen + (G + 1) * a.value,
@@ -2790,7 +2790,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2790
2790
  h.item.startAnswerLen + G * a.value < I && h.item.startAnswerLen + (G + 1) * a.value >= I ? (i(), u("span", {
2791
2791
  key: 0,
2792
2792
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2793
- style: q({ left: `${(I - h.item.startAnswerLen) % a.value * r.value}px` }),
2793
+ style: q({ left: `${(I - h.item.startAnswerLen) % a.value * c.value}px` }),
2794
2794
  "data-block": x(Ee)
2795
2795
  }, J(I), 13, Rn)) : M("", !0)
2796
2796
  ], 64))), 256))
@@ -2832,8 +2832,8 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2832
2832
  width: {}
2833
2833
  },
2834
2834
  setup(e) {
2835
- const t = e, a = N(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((c) => c.split(".")).map((c) => t.isFull ? c : c.map((o, s) => s === c.length - 1 ? o : ""))), l = N(() => t.width ? `${t.width}em` : "");
2836
- return (n, c) => (i(), u("span", {
2835
+ const t = e, a = N(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((o, s) => s === r.length - 1 ? o : ""))), l = N(() => t.width ? `${t.width}em` : "");
2836
+ return (n, r) => (i(), u("span", {
2837
2837
  class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2838
2838
  style: q({ width: l.value }),
2839
2839
  "data-block": x(Ee)
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2894
2894
  dbclick: null
2895
2895
  },
2896
2896
  setup(e, { emit: t }) {
2897
- const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), c = N(() => {
2897
+ const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), r = N(() => {
2898
2898
  const _ = a ? {
2899
2899
  choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
2900
2900
  fillSheet: [m.fill, m.fill_english]
@@ -2934,7 +2934,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2934
2934
  } else
2935
2935
  return C;
2936
2936
  }).flat(), _;
2937
- }), r = N(() => {
2937
+ }), c = N(() => {
2938
2938
  let _ = {};
2939
2939
  return e.data.children.forEach((C) => {
2940
2940
  C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
@@ -2944,7 +2944,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2944
2944
  const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
2945
2945
  return { [`h${e.data.id}`]: Math.max(..._) };
2946
2946
  } else
2947
- return Object.keys(r.value).map((_) => {
2947
+ return Object.keys(c.value).map((_) => {
2948
2948
  const C = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId === _).map((w) => w.subStr.length);
2949
2949
  return {
2950
2950
  [_]: Math.max(...C)
@@ -2957,9 +2957,9 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2957
2957
  ModuleTag: a,
2958
2958
  ChoiceType: o,
2959
2959
  GroupData: s,
2960
- PolymerData: r,
2960
+ PolymerData: c,
2961
2961
  SubWidthInfo: d,
2962
- ComputName: (_) => _.problemType ? c.value[_.problemType] : "notArea",
2962
+ ComputName: (_) => _.problemType ? r.value[_.problemType] : "notArea",
2963
2963
  ComputAbs: (_) => a && [m.slove, m.art].includes(_.problemType),
2964
2964
  ComputPolymerCls: (_) => [m.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === F.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
2965
2965
  ComputPolymerStyle: (_) => {
@@ -3058,7 +3058,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
3058
3058
  };
3059
3059
  }
3060
3060
  }, Jn = ["data-block"], Zn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], es = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ts = { key: 0 };
3061
- function os(e, t, a, l, n, c) {
3061
+ function os(e, t, a, l, n, r) {
3062
3062
  const o = Rt("Sub");
3063
3063
  return i(!0), u(E, null, Z(l.GroupData, (s) => (i(), u(E, null, [
3064
3064
  s.type === "polymer" ? (i(), u("div", {
@@ -3067,59 +3067,59 @@ function os(e, t, a, l, n, c) {
3067
3067
  class: oe([...l.ComputPolymerCls(s)]),
3068
3068
  style: q(l.ComputPolymerStyle(s))
3069
3069
  }, [
3070
- (i(!0), u(E, null, Z(s.children, (r, d) => {
3070
+ (i(!0), u(E, null, Z(s.children, (c, d) => {
3071
3071
  var p;
3072
3072
  return i(), u("div", {
3073
- class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
3074
- style: q(l.ComputPolymerItemStyle(r, d)),
3075
- "data-tag": r.__tag__,
3076
- "data-block": l.ComputBlock(r),
3077
- "data-xine": l.Gps_cls.item + r._sub,
3078
- onMouseenter: (A) => l.handleHoverIn(r),
3079
- onMouseleave: (A) => l.handleHoverOut(r)
3073
+ class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3074
+ style: q(l.ComputPolymerItemStyle(c, d)),
3075
+ "data-tag": c.__tag__,
3076
+ "data-block": l.ComputBlock(c),
3077
+ "data-xine": l.Gps_cls.item + c._sub,
3078
+ onMouseenter: (A) => l.handleHoverIn(c),
3079
+ onMouseleave: (A) => l.handleHoverOut(c)
3080
3080
  }, [
3081
- r.problemType ? (i(), j(o, {
3081
+ c.problemType ? (i(), j(o, {
3082
3082
  key: 0,
3083
- sub: r.sub,
3083
+ sub: c.sub,
3084
3084
  isFull: !!l.ModuleTag,
3085
- width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0,
3086
- class: oe(["sub_item", l.ComputAbs(r) && "absolute left-0 top-3 left_sub"])
3085
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0,
3086
+ class: oe(["sub_item", l.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
3087
3087
  }, null, 8, ["sub", "isFull", "width", "class"])) : M("", !0),
3088
- (i(), j(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), null, 16))
3088
+ (i(), j(yt(l.ComputName(c)), _t(ft({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), null, 16))
3089
3089
  ], 46, Zn);
3090
3090
  }), 256))
3091
- ], 14, Jn)) : (i(!0), u(E, { key: 1 }, Z(s.children, (r, d) => {
3091
+ ], 14, Jn)) : (i(!0), u(E, { key: 1 }, Z(s.children, (c, d) => {
3092
3092
  var p;
3093
3093
  return i(), u(E, null, [
3094
3094
  f("div", {
3095
- class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
3096
- style: q(l.ComputStyle(r, d)),
3097
- "data-tag": r.__tag__,
3098
- "data-block": l.ComputBlock(r),
3099
- "data-xine": l.Gps_cls.item + r._sub,
3100
- onClick: (A) => l.handleClick(A, r),
3101
- onDblclick: (A) => l.handleDblClick(A, r),
3102
- onMouseenter: (A) => l.handleHoverIn(r),
3103
- onMouseleave: (A) => l.handleHoverOut(r)
3095
+ class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3096
+ style: q(l.ComputStyle(c, d)),
3097
+ "data-tag": c.__tag__,
3098
+ "data-block": l.ComputBlock(c),
3099
+ "data-xine": l.Gps_cls.item + c._sub,
3100
+ onClick: (A) => l.handleClick(A, c),
3101
+ onDblclick: (A) => l.handleDblClick(A, c),
3102
+ onMouseenter: (A) => l.handleHoverIn(c),
3103
+ onMouseleave: (A) => l.handleHoverOut(c)
3104
3104
  }, [
3105
- r.problemType && !l.ComputAbs(r) ? (i(), j(o, {
3105
+ c.problemType && !l.ComputAbs(c) ? (i(), j(o, {
3106
3106
  key: 0,
3107
- sub: r.sub,
3107
+ sub: c.sub,
3108
3108
  isFull: !!l.ModuleTag,
3109
- width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
3109
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
3110
3110
  }, null, 8, ["sub", "isFull", "width"])) : M("", !0),
3111
- (i(), j(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), {
3111
+ (i(), j(yt(l.ComputName(c)), _t(ft({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), {
3112
3112
  default: Ft(() => [
3113
3113
  V(o, {
3114
- sub: r.sub,
3114
+ sub: c.sub,
3115
3115
  isFull: !!l.ModuleTag,
3116
- width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
3116
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
3117
3117
  }, null, 8, ["sub", "isFull", "width"])
3118
3118
  ]),
3119
3119
  _: 2
3120
3120
  }, 1040))
3121
3121
  ], 46, es),
3122
- r.polymerId && l.PolymerData[r.polymerId][l.PolymerData[r.polymerId].length - 1] === r.id ? (i(), u("div", ts)) : M("", !0)
3122
+ c.polymerId && l.PolymerData[c.polymerId][l.PolymerData[c.polymerId].length - 1] === c.id ? (i(), u("div", ts)) : M("", !0)
3123
3123
  ], 64);
3124
3124
  }), 256))
3125
3125
  ], 64))), 256);
@@ -3140,11 +3140,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3140
3140
  width: 0,
3141
3141
  height: 0
3142
3142
  };
3143
- const c = O(e), o = Math.min(t.height, c.y < t.y ? c.y + c.height - t.y : c.y + c.height > t.y + t.height || n ? t.y + t.height - c.y : c.height);
3143
+ const r = O(e), o = Math.min(t.height, r.y < t.y ? r.y + r.height - t.y : r.y + r.height > t.y + t.height || n ? t.y + t.height - r.y : r.height);
3144
3144
  return o > 5 ? {
3145
- x: c.x - a.x,
3146
- y: Math.max(c.y, t.y) + (l ? 1 : 0) - a.y,
3147
- width: c.width,
3145
+ x: r.x - a.x,
3146
+ y: Math.max(r.y, t.y) + (l ? 1 : 0) - a.y,
3147
+ width: r.width,
3148
3148
  height: o - (l ? 2 : 0)
3149
3149
  } : null;
3150
3150
  }, ne = (e, t = !1) => {
@@ -3164,7 +3164,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3164
3164
  const l = {
3165
3165
  // area: GetPosition(el, config.pageDom[0]),
3166
3166
  area: ce(O(a), O(e.pageDom[0])),
3167
- list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((c) => ce(O(c), O(e.pageDom[0]), !0)))
3167
+ list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((r) => ce(O(r), O(e.pageDom[0]), !0)))
3168
3168
  };
3169
3169
  return {
3170
3170
  choiceGridSequenceNOList: [...Array(10).keys()],
@@ -3174,7 +3174,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3174
3174
  choiceQuestionPosition: ne(l.area),
3175
3175
  choiceQuestionCount: l.list.length,
3176
3176
  xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
3177
- questionNOList: [...Array(l.list.length).keys()].map((n, c) => c + 1)
3177
+ questionNOList: [...Array(l.list.length).keys()].map((n, r) => r + 1)
3178
3178
  };
3179
3179
  }, ns = (e) => ({
3180
3180
  cardSizeType: mo[e.layout.paper],
@@ -3186,14 +3186,14 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3186
3186
  }), ss = (e) => {
3187
3187
  const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (n) => {
3188
3188
  var o;
3189
- const c = e.layout.backColumn > 2 ? {
3189
+ const r = e.layout.backColumn > 2 ? {
3190
3190
  trdLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[1]), O(e.pageDom[n]))),
3191
3191
  trdLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[1]), O(e.pageDom[n])))
3192
3192
  } : {};
3193
3193
  return (o = Oe.find((s) => s.code === e.layout.paper)) != null && o.isMultCol ? {
3194
3194
  secLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3195
3195
  secLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3196
- ...c
3196
+ ...r
3197
3197
  } : null;
3198
3198
  };
3199
3199
  return {
@@ -3282,18 +3282,18 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3282
3282
  }))
3283
3283
  };
3284
3284
  }, us = (e, t) => {
3285
- const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt, n = (c) => parseFloat(c.toFixed(2));
3286
- return t.flat().filter((c) => a.includes(c.problemType) && c.colIndex < 2).map((c) => {
3287
- switch (c.problemType) {
3285
+ const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt, n = (r) => parseFloat(r.toFixed(2));
3286
+ return t.flat().filter((r) => a.includes(r.problemType) && r.colIndex < 2).map((r) => {
3287
+ switch (r.problemType) {
3288
3288
  case m.fill:
3289
3289
  case m.fill_english:
3290
- return e.layout.notHandReadFlag && c.isHiddenContent ? [] : c.children.map((o) => {
3290
+ return e.layout.notHandReadFlag && r.isHiddenContent ? [] : r.children.map((o) => {
3291
3291
  const s = o.scorePosition;
3292
3292
  return {
3293
3293
  sub: o.id,
3294
3294
  position: {
3295
3295
  x: n(s.x - o.position.x),
3296
- y: n(s.y - o.position.y) + l * (c.colIndex - 1),
3296
+ y: n(s.y - o.position.y) + l * (r.colIndex - 1),
3297
3297
  width: s.width,
3298
3298
  height: s.height
3299
3299
  }
@@ -3302,28 +3302,28 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3302
3302
  case m.slove:
3303
3303
  case m.art:
3304
3304
  return e.notHandReadFlag ? [] : [{
3305
- sub: c.id,
3305
+ sub: r.id,
3306
3306
  position: {
3307
- x: n(c.scoreList[0].position.x - c.position.x),
3308
- y: n(c.scoreList[0].position.y - c.position.y) + l * (c.colIndex - 1),
3309
- width: c.scoreList.map((o) => o.position.width).reduce((o, s) => o + s, 0),
3310
- height: c.scoreList[0].position.height
3307
+ x: n(r.scoreList[0].position.x - r.position.x),
3308
+ y: n(r.scoreList[0].position.y - r.position.y) + l * (r.colIndex - 1),
3309
+ width: r.scoreList.map((o) => o.position.width).reduce((o, s) => o + s, 0),
3310
+ height: r.scoreList[0].position.height
3311
3311
  }
3312
3312
  }];
3313
3313
  case m.mix:
3314
- return e.notHandReadFlag && c.isHiddenContent ? [] : (c.children || []).filter((o) => [m.fill, m.fill_english, m.easy_slove].includes(o.problemType)).map((o) => [m.easy_slove].includes(o.problemType) ? {
3314
+ return e.notHandReadFlag && r.isHiddenContent ? [] : (r.children || []).filter((o) => [m.fill, m.fill_english, m.easy_slove].includes(o.problemType)).map((o) => [m.easy_slove].includes(o.problemType) ? {
3315
3315
  sub: o.id,
3316
3316
  position: {
3317
- x: n(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : c.position.x)),
3318
- y: n(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : c.position.y)) + l * (c.colIndex - 1),
3319
- width: o.scoreList.map((s) => s.position.width).reduce((s, r) => s + r, 0),
3317
+ x: n(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : r.position.x)),
3318
+ y: n(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : r.position.y)) + l * (r.colIndex - 1),
3319
+ width: o.scoreList.map((s) => s.position.width).reduce((s, c) => s + c, 0),
3320
3320
  height: o.position.height
3321
3321
  }
3322
3322
  } : {
3323
3323
  sub: o.id,
3324
3324
  position: {
3325
- x: n(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : c.position.x)),
3326
- y: n(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : c.position.y)) + l * (c.colIndex - 1),
3325
+ x: n(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : r.position.x)),
3326
+ y: n(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : r.position.y)) + l * (r.colIndex - 1),
3327
3327
  width: o.scorePosition.width,
3328
3328
  height: o.scorePosition.height
3329
3329
  }
@@ -3333,9 +3333,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3333
3333
  }, hs = (e, t) => {
3334
3334
  let a = 0, l = {};
3335
3335
  return [...Array(e.pageDom.length).keys()].map((n) => {
3336
- const c = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
3337
- return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => c + s < t.length).map((o, s) => {
3338
- const r = e.pageDom[n], d = O(r), p = e.colDom[c + s], A = O(p), h = e.colViewDom[c + s], T = O(h), Q = t[c + s].data.map((I) => I.children.filter((H) => H.problemType)).flat(), G = t[c + s].data.filter((I) => [ve.one_choice, ve.another_choice].includes(I.problemType) && I.children.length).map((I) => {
3336
+ const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
3337
+ return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => r + s < t.length).map((o, s) => {
3338
+ const c = e.pageDom[n], d = O(c), p = e.colDom[r + s], A = O(p), h = e.colViewDom[r + s], T = O(h), Q = t[r + s].data.map((I) => I.children.filter((H) => H.problemType)).flat(), G = t[r + s].data.filter((I) => [ve.one_choice, ve.another_choice].includes(I.problemType) && I.children.length).map((I) => {
3339
3339
  const H = se(`${k.choice}${I.id}`, p);
3340
3340
  return H ? {
3341
3341
  id: `${++a}`,
@@ -3532,9 +3532,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3532
3532
  ...a
3533
3533
  };
3534
3534
  }, ms = (e, t) => {
3535
- const a = [...Array(e.pageTotal).keys()].map((c) => ({
3535
+ const a = [...Array(e.pageTotal).keys()].map((r) => ({
3536
3536
  // 当前页数
3537
- pageIndexID: c + 1,
3537
+ pageIndexID: r + 1,
3538
3538
  // 保留字段
3539
3539
  hasCardSerialNumber: !0,
3540
3540
  // 页码点信息
@@ -3544,43 +3544,43 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3544
3544
  // 固定值
3545
3545
  splitFileList: [],
3546
3546
  // 依据当前页码设置答案
3547
- answerResultList: dt.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - c - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : c + 1),
3547
+ answerResultList: dt.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - r - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : r + 1),
3548
3548
  // 固定值
3549
3549
  noAnswerTag: !1
3550
3550
  }],
3551
3551
  // 按题切块信息
3552
- cardCuttingSectionList: t[c].map((o) => ps(o)).flat()
3553
- })), l = (c, o) => (c.sectionID || "").split(".").filter((s, r) => r < o).join("."), n = a.map((c) => {
3554
- let o = [], s = [], r = [];
3555
- return c.cardCuttingSectionList.forEach((d, p, A) => {
3552
+ cardCuttingSectionList: t[r].map((o) => ps(o)).flat()
3553
+ })), l = (r, o) => (r.sectionID || "").split(".").filter((s, c) => c < o).join("."), n = a.map((r) => {
3554
+ let o = [], s = [], c = [];
3555
+ return r.cardCuttingSectionList.forEach((d, p, A) => {
3556
3556
  const h = l(d, 1);
3557
- if (p < A.length - 1 && r.find((T) => l(T, 1) === h && T.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable)
3558
- r.push(d);
3557
+ if (p < A.length - 1 && c.find((T) => l(T, 1) === h && T.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable)
3558
+ c.push(d);
3559
3559
  else {
3560
3560
  let T = !1;
3561
- if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable ? (s.push(d), T = !0) : p === A.length - 1 && r.push(d), r.length) {
3562
- if (r.length === 1)
3563
- o.push(r[0]);
3561
+ if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(d), T = !0), c.length) {
3562
+ if (c.length === 1)
3563
+ o.push(c[0]);
3564
3564
  else {
3565
- const Q = r.map((v) => v.subjectiveQuestionSectionList || []).flat(), G = r.map((v) => v.choiceQuestionPartialSectionList || []).flat(), I = G.length ? { choiceQuestionPartialSectionList: G } : {}, H = Q.length ? { subjectiveQuestionSectionList: Q } : {};
3565
+ const Q = c.map((v) => v.subjectiveQuestionSectionList || []).flat(), G = c.map((v) => v.choiceQuestionPartialSectionList || []).flat(), I = G.length ? { choiceQuestionPartialSectionList: G } : {}, H = Q.length ? { subjectiveQuestionSectionList: Q } : {};
3566
3566
  o.push({
3567
- ...r[0],
3568
- cuttingSectionQuestionType: r[0].rootProblemType,
3567
+ ...c[0],
3568
+ cuttingSectionQuestionType: c[0].rootProblemType,
3569
3569
  ...I,
3570
3570
  ...H
3571
3571
  });
3572
3572
  }
3573
- r = [];
3573
+ c = [];
3574
3574
  }
3575
- if (p === A.length - 1 || T)
3575
+ if (T)
3576
3576
  return;
3577
- r.push(d);
3577
+ p === A.length - 1 ? o.push(d) : c.push(d);
3578
3578
  }
3579
- }), o = o.map((d) => ({ ...d, sectionID: l(d, 1) })), { ...c, cardCuttingSectionList: [...o, ...s] };
3580
- }).map((c) => {
3581
- const o = c.cardCuttingSectionList.map((s) => {
3579
+ }), o = o.map((d) => ({ ...d, sectionID: l(d, 1) })), { ...r, cardCuttingSectionList: [...o, ...s] };
3580
+ }).map((r) => {
3581
+ const o = r.cardCuttingSectionList.map((s) => {
3582
3582
  var p;
3583
- let r = [], d = [];
3583
+ let c = [], d = [];
3584
3584
  return (p = s.subjectiveQuestionSectionList) == null || p.forEach((A, h, T) => {
3585
3585
  const Q = l(A, 2);
3586
3586
  if (h < T.length - 1 && d.find((G) => l(G, 2) === Q && G.secitonSeqID === A.secitonSeqID))
@@ -3588,10 +3588,10 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3588
3588
  else {
3589
3589
  if (h === T.length - 1 && d.push(A), d.length) {
3590
3590
  if (d.length === 1)
3591
- r.push(d[0]);
3591
+ c.push(d[0]);
3592
3592
  else {
3593
3593
  const G = d.map((H) => H.singleBlankSectionList || []).flat(), I = G.length ? { singleBlankSectionList: G } : {};
3594
- r.push({
3594
+ c.push({
3595
3595
  ...d[0],
3596
3596
  sectionID: l(d[0], 2),
3597
3597
  ...I
@@ -3603,12 +3603,12 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3603
3603
  return;
3604
3604
  d.push(A);
3605
3605
  }
3606
- }), r.length ? {
3606
+ }), c.length ? {
3607
3607
  ...s,
3608
- subjectiveQuestionSectionList: r
3608
+ subjectiveQuestionSectionList: c
3609
3609
  } : s;
3610
3610
  });
3611
- return { ...c, cardCuttingSectionList: o };
3611
+ return { ...r, cardCuttingSectionList: o };
3612
3612
  });
3613
3613
  return console.log(n), console.log(a), n;
3614
3614
  }, ys = (e, t) => {
@@ -3673,13 +3673,13 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3673
3673
  }, _s = (e) => {
3674
3674
  const { config: t, data: a } = e, l = ds(t), n = hs(t, a);
3675
3675
  l && n[0].unshift(l);
3676
- const c = us(t, n), o = ms(t, n), s = ys(t, o), r = Ot(t, k.en_num_view) || {};
3676
+ const r = us(t, n), o = ms(t, n), s = ys(t, o), c = Ot(t, k.en_num_view) || {};
3677
3677
  return {
3678
3678
  engineData: s,
3679
3679
  pageTotal: t.pageTotal,
3680
3680
  format: g[t.layout.paper],
3681
- localData: c,
3682
- extendInfo: { shortCoordinate: r }
3681
+ localData: r,
3682
+ extendInfo: { shortCoordinate: c }
3683
3683
  };
3684
3684
  }, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
3685
3685
  key: 0,
@@ -3712,20 +3712,20 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3712
3712
  const o = (d = document.querySelector(".__layout__")) == null ? void 0 : d.getBoundingClientRect();
3713
3713
  if (!o)
3714
3714
  return;
3715
- let s = [], r = [];
3715
+ let s = [], c = [];
3716
3716
  a.ImgData.forEach((p) => {
3717
3717
  (p.left + p.width > o.width || p.top + p.height > o.height) && s.push(p);
3718
3718
  }), a.TxtData.forEach((p) => {
3719
- (p.left + p.width > o.width || p.top + p.height > o.height) && r.push(p);
3720
- }), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: n }), r.length && l.value.push({ type: "absTxt", value: r, msg: `${r.length}条插入文本溢出`, fn: c }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
3719
+ (p.left + p.width > o.width || p.top + p.height > o.height) && c.push(p);
3720
+ }), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: n }), c.length && l.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: r }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
3721
3721
  }, 500);
3722
3722
  });
3723
3723
  const n = () => {
3724
3724
  var s;
3725
- (((s = l.value.find((r) => r.type === "absImg")) == null ? void 0 : s.value) || []).forEach((r) => t("delAbsImgItem", r));
3726
- }, c = () => {
3725
+ (((s = l.value.find((c) => c.type === "absImg")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsImgItem", c));
3726
+ }, r = () => {
3727
3727
  var s;
3728
- (((s = l.value.find((r) => r.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((r) => t("delAbsTxtItem", r));
3728
+ (((s = l.value.find((c) => c.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsTxtItem", c));
3729
3729
  };
3730
3730
  return (o, s) => (i(), u("div", fs, [
3731
3731
  f("div", gs, [
@@ -3744,16 +3744,16 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3744
3744
  f("span", vs, "排版" + J(l.value.length ? "异常" : "良好"), 1)
3745
3745
  ], 2),
3746
3746
  l.value.length ? (i(), u("ul", ws, [
3747
- (i(!0), u(E, null, Z(l.value, (r, d) => (i(), u("li", {
3747
+ (i(!0), u(E, null, Z(l.value, (c, d) => (i(), u("li", {
3748
3748
  key: d,
3749
3749
  class: "layt-moni_err_item"
3750
3750
  }, [
3751
- f("span", xs, J(r.msg), 1),
3752
- r.fn ? (i(), u("span", {
3751
+ f("span", xs, J(c.msg), 1),
3752
+ c.fn ? (i(), u("span", {
3753
3753
  key: 0,
3754
3754
  class: "layt-moni_err_item_fn",
3755
- onClick: r.fn
3756
- }, J(r.btnTxt || "删除"), 9, ks)) : M("", !0)
3755
+ onClick: c.fn
3756
+ }, J(c.btnTxt || "删除"), 9, ks)) : M("", !0)
3757
3757
  ]))), 128))
3758
3758
  ])) : M("", !0)
3759
3759
  ])
@@ -3766,43 +3766,43 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3766
3766
  }, Ts = (e, t, a, l) => {
3767
3767
  let n = null;
3768
3768
  if (e.dataset.block === ut && !e.dataset.used) {
3769
- const c = window.getComputedStyle(e);
3770
- t - parseFloat(c.paddingTop) - parseFloat(c.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
3769
+ const r = window.getComputedStyle(e);
3770
+ t - parseFloat(r.paddingTop) - parseFloat(r.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
3771
3771
  } else
3772
3772
  e.dataset.block === $t ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < a - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > a || t > a / 3 && e.offsetHeight + (e.offsetHeight > a / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (n = e);
3773
3773
  return n;
3774
3774
  }, It = (e, t, a) => {
3775
- const l = e.textContent || "", n = l.split("").map((r) => `<span>${r}</span>`).join("");
3775
+ const l = e.textContent || "", n = l.split("").map((c) => `<span>${c}</span>`).join("");
3776
3776
  e.innerHTML = n;
3777
- const c = [...Array.from(e.children)].findIndex((r) => he(r).top - t + r.offsetHeight > a);
3778
- if (c < 1)
3777
+ const r = [...Array.from(e.children)].findIndex((c) => he(c).top - t + c.offsetHeight > a);
3778
+ if (r < 1)
3779
3779
  return e.innerHTML = l, e;
3780
3780
  const o = document.createElement("span");
3781
- o.textContent = l.slice(0, c);
3781
+ o.textContent = l.slice(0, r);
3782
3782
  const s = document.createElement("span");
3783
- return s.textContent = l.slice(c), e.innerHTML = "", e.append(o, s), o;
3783
+ return s.textContent = l.slice(r), e.innerHTML = "", e.append(o, s), o;
3784
3784
  }, st = (e, t, a) => {
3785
3785
  const l = nt("", e.parentElement), n = l.findIndex((o) => o === e);
3786
- let c = l.filter((o, s) => he(o).top + o.offsetHeight - 1 < he(e).top || s < n && he(o).top < he(e).top).reverse()[0];
3787
- return c || (c = Ve(e), he(c).top + c.offsetHeight - t > a && (c = st(c, t, a))), c;
3786
+ let r = l.filter((o, s) => he(o).top + o.offsetHeight - 1 < he(e).top || s < n && he(o).top < he(e).top).reverse()[0];
3787
+ return r || (r = Ve(e), he(r).top + r.offsetHeight - t > a && (r = st(r, t, a))), r;
3788
3788
  }, Lt = (e, t, a, l) => {
3789
3789
  const n = (o, s = a) => {
3790
3790
  var G, I, H;
3791
- const r = o.map((v) => {
3791
+ const c = o.map((v) => {
3792
3792
  const P = he(v);
3793
3793
  return {
3794
3794
  el: v,
3795
3795
  top: P.top - t,
3796
3796
  left: P.left
3797
3797
  };
3798
- }), d = r.filter((v) => v.el.offsetHeight + v.top > s).sort((v, P) => v.top - P.top), p = (G = d.shift()) == null ? void 0 : G.el;
3798
+ }), d = c.filter((v) => v.el.offsetHeight + v.top > s).sort((v, P) => v.top - P.top), p = (G = d.shift()) == null ? void 0 : G.el;
3799
3799
  if (!p) {
3800
3800
  const v = document.createElement("div");
3801
3801
  return (I = o[0].parentElement) == null || I.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
3802
3802
  }
3803
3803
  const A = he(p), h = A.top - t, T = A.left;
3804
3804
  if (d.filter((v) => v.top < h + p.offsetHeight && v.top + v.el.offsetHeight - 1 > h && (v.left + v.el.offsetWidth - 1 < T || v.left + 1 > T + p.offsetWidth)).length) {
3805
- const v = (H = r.filter((P) => P.top < h).pop()) == null ? void 0 : H.el;
3805
+ const v = (H = c.filter((P) => P.top < h).pop()) == null ? void 0 : H.el;
3806
3806
  if (v != null && v.children.length) {
3807
3807
  const P = nt(v);
3808
3808
  return n(P, h) || v;
@@ -3821,20 +3821,20 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3821
3821
  } else
3822
3822
  return It(p, t, s);
3823
3823
  }
3824
- }, c = n([e]);
3825
- return { cut: Ss(c), targetEl: c };
3824
+ }, r = n([e]);
3825
+ return { cut: Ss(r), targetEl: r };
3826
3826
  }, Is = (e) => {
3827
- const { el: t, data: a, column: l, backColumn: n, getColSize: c, change: o } = e;
3827
+ const { el: t, data: a, column: l, backColumn: n, getColSize: r, change: o } = e;
3828
3828
  if (!t || !a.length) {
3829
3829
  o([], !0);
3830
3830
  return;
3831
3831
  }
3832
3832
  console.time("layout");
3833
3833
  const s = he(t).top;
3834
- let r = {}, d = 0, p = 0;
3834
+ let c = {}, d = 0, p = 0;
3835
3835
  const A = (v) => {
3836
- const P = v % (l + n), X = Math.floor(v / (l + n)) * 2 + (P >= l ? 1 : 0), z = c(v, X);
3837
- r = {
3836
+ const P = v % (l + n), X = Math.floor(v / (l + n)) * 2 + (P >= l ? 1 : 0), z = r(v, X);
3837
+ c = {
3838
3838
  top: s,
3839
3839
  width: parseFloat(z.width),
3840
3840
  height: parseFloat(z.height)
@@ -3842,20 +3842,20 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3842
3842
  };
3843
3843
  let h = [], T = 0;
3844
3844
  const Q = () => {
3845
- A(h.length), t.style.width = `${r.width}px`, h.push({
3845
+ A(h.length), t.style.width = `${c.width}px`, h.push({
3846
3846
  top: 0,
3847
3847
  data: [],
3848
- width: r.width,
3849
- height: r.height
3848
+ width: c.width,
3849
+ height: c.height
3850
3850
  }), o([...h]);
3851
3851
  };
3852
3852
  Q();
3853
3853
  const G = (v) => {
3854
3854
  const P = getComputedStyle(v);
3855
- return he(v).top - r.top + parseFloat(P.borderTop) + parseFloat(P.paddingTop) + parseFloat(P.lineHeight) > h[h.length - 1].height;
3855
+ return he(v).top - c.top + parseFloat(P.borderTop) + parseFloat(P.paddingTop) + parseFloat(P.lineHeight) > h[h.length - 1].height;
3856
3856
  }, I = (v) => {
3857
3857
  const P = getComputedStyle(v);
3858
- return he(v).top + v.offsetHeight - r.top - (v.dataset.block === ke ? 0 : parseFloat(P.paddingBottom) - parseFloat(P.borderBottom)) <= h[h.length - 1].height;
3858
+ return he(v).top + v.offsetHeight - c.top - (v.dataset.block === ke ? 0 : parseFloat(P.paddingBottom) - parseFloat(P.borderBottom)) <= h[h.length - 1].height;
3859
3859
  }, H = (v = JSON.parse(JSON.stringify(a[T] || {}))) => {
3860
3860
  if (T >= a.length || !Object.keys(v).length) {
3861
3861
  o([...h], !0), console.timeEnd("layout"), h = [], d = 0;
@@ -3866,9 +3866,9 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3866
3866
  let z = null;
3867
3867
  if (p) {
3868
3868
  const _ = P.querySelector(`*[data-hutkey="${p}"]`), C = he(_);
3869
- h[h.length - 1].top = r.top - C.top, h[h.length - 1].height = r.height - h[h.length - 1].top, p = 0;
3869
+ h[h.length - 1].top = c.top - C.top, h[h.length - 1].height = c.height - h[h.length - 1].top, p = 0;
3870
3870
  }
3871
- if (X && X.height + X.top - r.top > h[h.length - 1].height)
3871
+ if (X && X.height + X.top - c.top > h[h.length - 1].height)
3872
3872
  if (v.problemType)
3873
3873
  h[h.length - 1].data.pop(), Q(), H({ ...v });
3874
3874
  else if (I(P))
@@ -3876,9 +3876,9 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3876
3876
  else if (G(P))
3877
3877
  h[h.length - 1].data.pop(), Q(), H({ ...v });
3878
3878
  else {
3879
- z = Lt(P, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3879
+ z = Lt(P, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
3880
3880
  const _ = P.querySelector(`*[data-content="${v.id}"]`);
3881
- h[h.length - 1].height = he(z.cut).top - r.top, Q(), _ != null && _.contains(z.cut) ? (p = Date.now(), z.cut.dataset.hutkey = p, H({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), H({ ...v }));
3881
+ h[h.length - 1].height = he(z.cut).top - c.top, Q(), _ != null && _.contains(z.cut) ? (p = Date.now(), z.cut.dataset.hutkey = p, H({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), H({ ...v }));
3882
3882
  }
3883
3883
  else {
3884
3884
  let _ = [], C = [];
@@ -3886,20 +3886,20 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3886
3886
  const B = Tt(w.__tag__, t), ye = he(B);
3887
3887
  if (d) {
3888
3888
  const pe = B.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3889
- h[h.length - 1].top = r.top - ie.top, h[h.length - 1].height = r.height - h[h.length - 1].top, d = 0;
3889
+ h[h.length - 1].top = c.top - ie.top, h[h.length - 1].height = c.height - h[h.length - 1].top, d = 0;
3890
3890
  }
3891
- if (ye.height + ye.top - r.top > h[h.length - 1].height) {
3891
+ if (ye.height + ye.top - c.top > h[h.length - 1].height) {
3892
3892
  if (I(B))
3893
3893
  _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3894
3894
  else if (G(B))
3895
3895
  C = v.children.slice(R);
3896
3896
  else {
3897
- z = Lt(B, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3897
+ z = Lt(B, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
3898
3898
  const pe = B.querySelector(`*[data-content="${w.id}"]`);
3899
3899
  if (B === z.targetEl)
3900
3900
  _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3901
3901
  else if (pe && pe.contains(z.cut))
3902
- d = Date.now(), z.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = he(z.cut).top - r.top;
3902
+ d = Date.now(), z.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = he(z.cut).top - c.top;
3903
3903
  else {
3904
3904
  if (!C.length) {
3905
3905
  let ie = { ...w };
@@ -3917,7 +3917,7 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3917
3917
  if (!w.artBlock)
3918
3918
  if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > S) {
3919
3919
  const K = B.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
3920
- if (we.height + we.top - r.top > r.height) {
3920
+ if (we.height + we.top - c.top > c.height) {
3921
3921
  K.innerHTML = w.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
3922
3922
  const ae = he(D).top + D.offsetHeight, re = [...Array.from(K.children)].findIndex((be) => he(be).top > ae);
3923
3923
  ie.beforeGuide = w.beforeGuide.substring(0, re), w.beforeGuide = w.beforeGuide.substring(re);
@@ -3931,7 +3931,7 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3931
3931
  B.contains(z.targetEl) && (w.chunk += 1);
3932
3932
  break;
3933
3933
  }
3934
- B.contains(z.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(z.cut).top - r.top);
3934
+ B.contains(z.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(z.cut).top - c.top);
3935
3935
  }
3936
3936
  C = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
3937
3937
  }
@@ -3963,8 +3963,8 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3963
3963
  emits: ["change", "focus", "blur"],
3964
3964
  setup(e, { emit: t }) {
3965
3965
  const a = e, l = Wt("ckeditorOrigin", ""), n = Y();
3966
- Me(() => a.readonly, () => c()), Xe(() => c());
3967
- const c = () => {
3966
+ Me(() => a.readonly, () => r()), Xe(() => r());
3967
+ const r = () => {
3968
3968
  if (window.CKEDITOR) {
3969
3969
  if (a.readonly) {
3970
3970
  n.value && (n.value.destroy(), n.value = null);
@@ -3978,16 +3978,16 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3978
3978
  } else {
3979
3979
  const d = document.createElement("script");
3980
3980
  d.type = "text/javascript", document.body.appendChild(d), d.onload = () => {
3981
- c();
3981
+ r();
3982
3982
  }, d.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
3983
3983
  }
3984
3984
  }, o = () => {
3985
3985
  t("blur");
3986
- const d = r(n.value.getData());
3986
+ const d = c(n.value.getData());
3987
3987
  d !== a.value && t("change", d, a.name);
3988
3988
  }, s = () => {
3989
3989
  t("focus");
3990
- }, r = (d) => {
3990
+ }, c = (d) => {
3991
3991
  const p = document.createElement("div");
3992
3992
  p.innerHTML = d, [...Array.from(p.querySelectorAll("*"))].forEach((h) => {
3993
3993
  const T = window.getComputedStyle(h);
@@ -4039,10 +4039,10 @@ const Ms = {
4039
4039
  let ot = null;
4040
4040
  const As = {
4041
4041
  mounted: (e, t) => {
4042
- let a = {}, l = !1, n = !1, c = e.offsetParent, o = {}, s = {};
4043
- const r = e.querySelector(".move-target") || e;
4044
- r.style.cursor = "move", r.addEventListener("mousedown", (d) => {
4045
- l = !0, n = !!e.dataset.safe, c = e.offsetParent;
4042
+ let a = {}, l = !1, n = !1, r = e.offsetParent, o = {}, s = {};
4043
+ const c = e.querySelector(".move-target") || e;
4044
+ c.style.cursor = "move", c.addEventListener("mousedown", (d) => {
4045
+ l = !0, n = !!e.dataset.safe, r = e.offsetParent;
4046
4046
  const p = window.getComputedStyle(e);
4047
4047
  a = { x: d.clientX, y: d.clientY }, o = { x: parseInt(p.left), y: parseInt(p.top) };
4048
4048
  }), document.addEventListener("mouseup", (d) => {
@@ -4051,7 +4051,7 @@ const As = {
4051
4051
  if (!l || e.getAttribute("disabled") === "true")
4052
4052
  return;
4053
4053
  d.stopPropagation(), d.preventDefault(), s = { x: d.clientX, y: d.clientY };
4054
- const p = n ? Math.min(Math.max(s.x - a.x + o.x, 0), c.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, A = n ? Math.min(Math.max(s.y - a.y + o.y, 0), c.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
4054
+ const p = n ? Math.min(Math.max(s.x - a.x + o.x, 0), r.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, A = n ? Math.min(Math.max(s.y - a.y + o.y, 0), r.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
4055
4055
  e.style.left = `${p}px`, e.style.top = `${A}px`, t.value && typeof t.value == "function" && t.value({ x: p, y: A });
4056
4056
  }, document.addEventListener("mousemove", ot);
4057
4057
  },
@@ -4068,7 +4068,7 @@ const As = {
4068
4068
  },
4069
4069
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4070
4070
  setup(e, { emit: t }) {
4071
- const a = e, l = Ms, n = As, c = [
4071
+ const a = e, l = Ms, n = As, r = [
4072
4072
  { left: "0", top: "0", cursor: "nwse-resize" },
4073
4073
  { left: "50%", top: "0", cursor: "ns-resize" },
4074
4074
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4077,7 +4077,7 @@ const As = {
4077
4077
  { left: "0", top: "100%", cursor: "nesw-resize" },
4078
4078
  { left: "50%", top: "100%", cursor: "ns-resize" },
4079
4079
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4080
- ], o = Y({}), s = Y(), r = Y(0), d = Y(0), p = Y(), A = Y(), h = Y({}), T = Y(!1), Q = Y(), G = Y(), I = Y(), H = N(() => a.imgData.map((D) => ({
4080
+ ], o = Y({}), s = Y(), c = Y(0), d = Y(0), p = Y(), A = Y(), h = Y({}), T = Y(!1), Q = Y(), G = Y(), I = Y(), H = N(() => a.imgData.map((D) => ({
4081
4081
  ...D,
4082
4082
  top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4083
4083
  }))), v = N(() => a.txtData.map((D) => ({
@@ -4105,7 +4105,7 @@ const As = {
4105
4105
  D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", s.value), p.value.removeEventListener("mousemove", w), p.value.removeEventListener("mouseleave", R), p.value.removeEventListener("mouseup", R);
4106
4106
  }, B = (D, $) => {
4107
4107
  var S;
4108
- D.stopPropagation(), r.value = $, o.value = { x: D.clientX, y: D.clientY, ...P.value }, ((S = P.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4108
+ D.stopPropagation(), c.value = $, o.value = { x: D.clientX, y: D.clientY, ...P.value }, ((S = P.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4109
4109
  }, ye = (D) => {
4110
4110
  const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = $.x > $.y ? "width" : "height";
4111
4111
  [
@@ -4215,7 +4215,7 @@ const As = {
4215
4215
  height: re
4216
4216
  };
4217
4217
  }
4218
- ][r.value]();
4218
+ ][c.value]();
4219
4219
  }, pe = (D) => {
4220
4220
  const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = [
4221
4221
  {
@@ -4261,7 +4261,7 @@ const As = {
4261
4261
  height: o.value.height + $.y
4262
4262
  }
4263
4263
  ];
4264
- s.value = K[r.value];
4264
+ s.value = K[c.value];
4265
4265
  }, ie = () => {
4266
4266
  var D;
4267
4267
  p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((D = P.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
@@ -4306,7 +4306,7 @@ const As = {
4306
4306
  (i(), u(E, null, Z(8, (le, W) => f("div", {
4307
4307
  key: le,
4308
4308
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4309
- style: q({ ...c[W], transform: "translate(-50%, -50%)" }),
4309
+ style: q({ ...r[W], transform: "translate(-50%, -50%)" }),
4310
4310
  onMousedown: Le((te) => B(te, W), ["stop"])
4311
4311
  }, null, 44, Hs)), 64))
4312
4312
  ]),
@@ -4362,7 +4362,7 @@ const As = {
4362
4362
  (i(), u(E, null, Z(8, (le, W) => f("div", {
4363
4363
  key: le,
4364
4364
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4365
- style: q({ ...c[W], transform: "translate(-50%, -50%)" }),
4365
+ style: q({ ...r[W], transform: "translate(-50%, -50%)" }),
4366
4366
  onMousedown: (te) => B(te, W)
4367
4367
  }, null, 44, qs)), 64))
4368
4368
  ])
@@ -4398,7 +4398,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4398
4398
  setup(e, { emit: t }) {
4399
4399
  const a = e;
4400
4400
  Gt("ckeditorOrigin", a.ckeditorOrigin);
4401
- const l = Y([]), n = Y([]), c = Y(2), o = Y(0), s = Y(0), r = Y(), d = Y([]), p = Y([]), A = Y([]), h = Y([]), T = N(() => a.data.map((b) => ({
4401
+ const l = Y([]), n = Y([]), r = Y(2), o = Y(0), s = Y(0), c = Y(), d = Y([]), p = Y([]), A = Y([]), h = Y([]), T = N(() => a.data.map((b) => ({
4402
4402
  ...b,
4403
4403
  __tag__: Ct(),
4404
4404
  rawChildren: b.children,
@@ -4409,7 +4409,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4409
4409
  }), G = N(() => {
4410
4410
  var b;
4411
4411
  return a.layout.bindFlag && !!((b = Oe.find((L) => L.code === a.layout.paper)) != null && b.isMultCol);
4412
- }), I = N(() => a.isFinal ? 0 : 10), H = N(() => a.isFinal ? 10 : 0), v = N(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || c.value || 1), P = N(() => Math.ceil(v.value / 2) * 2), X = N(() => ["sheet", "sheetCard"].includes(a.layout.mode)), z = N(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = N(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = N(() => g[a.layout.paper].width - _.value.left - _.value.right), w = N(() => g[a.layout.paper].height - _.value.top - _.value.bottom), R = N(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), B = N(() => ({
4412
+ }), I = N(() => a.isFinal ? 0 : 10), H = N(() => a.isFinal ? 10 : 0), v = N(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || r.value || 1), P = N(() => Math.ceil(v.value / 2) * 2), X = N(() => ["sheet", "sheetCard"].includes(a.layout.mode)), z = N(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = N(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = N(() => g[a.layout.paper].width - _.value.left - _.value.right), w = N(() => g[a.layout.paper].height - _.value.top - _.value.bottom), R = N(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), B = N(() => ({
4413
4413
  width: `${g[a.layout.paper].width}px`,
4414
4414
  height: `${(g[a.layout.paper].height + I.value) * P.value - I.value}px`
4415
4415
  })), ye = N(() => ({
@@ -4452,7 +4452,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4452
4452
  };
4453
4453
  }, ae = (b, L = !1) => {
4454
4454
  n.value = b.map((le) => ({ ...le })), L && (l.value = [...b], o.value += 1, Je(() => {
4455
- c.value = Math.ceil(l.value.length / a.layout.column), n.value = [], p.value.forEach((le, W) => {
4455
+ r.value = Math.ceil(l.value.length / a.layout.column), n.value = [], p.value.forEach((le, W) => {
4456
4456
  var te, Se;
4457
4457
  !le || !le.col || ((te = l.value[W]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[W]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4458
4458
  }), setTimeout(() => {
@@ -4474,7 +4474,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4474
4474
  }));
4475
4475
  }, re = () => {
4476
4476
  Is({
4477
- el: r.value,
4477
+ el: c.value,
4478
4478
  data: T.value,
4479
4479
  column: a.layout.column,
4480
4480
  backColumn: a.layout.backColumn || a.layout.column,
@@ -4505,7 +4505,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4505
4505
  f("div", {
4506
4506
  class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
4507
4507
  ref_key: "rawDom",
4508
- ref: r
4508
+ ref: c
4509
4509
  }, [
4510
4510
  n.value.length ? (i(!0), u(E, { key: 0 }, Z((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (W, te) => (i(), u(E, null, [
4511
4511
  W.isHidden ? M("", !0) : (i(), j(St, {