alit-layout 1.0.17 → 1.0.19

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 +612 -612
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as J, openBlock as s, createElementBlock as d, Fragment as E, renderList as X, createElementVNode as f, normalizeStyle as Y, unref as x, toDisplayString as V, createCommentVNode as D, ref as G, watch as Ae, normalizeClass as ae, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as Re, popScopeId as We, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as It, inject as Rt, withDirectives as ft, provide as Wt } from "vue";
2
- const Lt = {
1
+ import { defineComponent as J, openBlock as s, createElementBlock as d, Fragment as E, renderList as X, createElementVNode as f, normalizeStyle as Y, unref as x, toDisplayString as V, createCommentVNode as D, ref as G, watch as De, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ue, createVNode as j, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Lt, inject as Rt, withDirectives as gt, provide as Wt } from "vue";
2
+ const rt = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
5
5
  // 多选题
@@ -9,7 +9,7 @@ const Lt = {
9
9
  // 完形填空
10
10
  cloze: "CLOZE_TEST"
11
11
  }, Ft = {
12
- ...Lt,
12
+ ...rt,
13
13
  // 判断题
14
14
  decide: "TRUE_OR_FALSE"
15
15
  }, at = {
@@ -48,7 +48,7 @@ const Lt = {
48
48
  }, p = {
49
49
  ...Ft,
50
50
  ...at
51
- }, ze = [
51
+ }, Oe = [
52
52
  { name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
53
53
  { name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0 },
54
54
  { name: "A4", code: "a4", size: "210*297mm" },
@@ -166,7 +166,7 @@ const Lt = {
166
166
  { name: "两栏", code: 2 }
167
167
  ]
168
168
  }
169
- }, rt = {
169
+ }, ct = {
170
170
  article: {
171
171
  a3: {
172
172
  top: g.a3.width / 420 * 20.5,
@@ -420,7 +420,7 @@ const Lt = {
420
420
  2: 20
421
421
  }
422
422
  }
423
- }, Ut = 10, Kt = {
423
+ }, Ut = 10, jt = {
424
424
  base: {
425
425
  secTitleFlag: "副标题",
426
426
  authorFlag: "命题人",
@@ -501,7 +501,7 @@ const Lt = {
501
501
  simpleScoreBarFlag: "简易打分条",
502
502
  scoreTipFlag: "计分提示"
503
503
  }
504
- }, jt = {
504
+ }, Kt = {
505
505
  a3: {
506
506
  2: 1,
507
507
  3: 1
@@ -555,31 +555,31 @@ const Lt = {
555
555
  }, Jt = [
556
556
  { name: "整卷", code: lt.wide },
557
557
  { name: "大题", code: lt.local }
558
- ], Qe = {
558
+ ], qe = {
559
559
  system: "system",
560
560
  second: "level_2",
561
561
  three: "level_3"
562
562
  }, Zt = [
563
- { name: "自增", code: Qe.system },
564
- { name: "二级", code: Qe.second },
565
- { name: "三级", code: Qe.three }
563
+ { name: "自增", code: qe.system },
564
+ { name: "二级", code: qe.second },
565
+ { name: "三级", code: qe.three }
566
566
  ], eo = [
567
567
  { name: "缩进", code: !0 },
568
568
  { name: "不缩进", code: !1 }
569
- ], Ue = {
569
+ ], Qe = {
570
570
  auto: "auto",
571
571
  on: "on",
572
572
  off: "off"
573
573
  }, to = [
574
- { name: "自动", code: Ue.auto },
575
- { name: "开", code: Ue.on },
576
- { name: "关", code: Ue.off }
577
- ], De = {
574
+ { name: "自动", code: Qe.auto },
575
+ { name: "开", code: Qe.on },
576
+ { name: "关", code: Qe.off }
577
+ ], je = {
578
578
  step: "step",
579
579
  custom: "custom"
580
580
  }, oo = [
581
- { name: "分段", code: De.step },
582
- { name: "自编", code: De.custom }
581
+ { name: "分段", code: je.step },
582
+ { name: "自编", code: je.custom }
583
583
  ], I = {
584
584
  choice_1: "choice-1",
585
585
  choice_2: "choice-2",
@@ -1167,7 +1167,7 @@ const Lt = {
1167
1167
  label: "列数",
1168
1168
  target: [q.headline],
1169
1169
  key: y.sheetCard.choice_d,
1170
- show: (e) => e.style[y.sheetCard.choice_a] !== I.choice_2,
1170
+ show: (e) => Object.values(rt).includes(e.problemType) && e.style[y.sheetCard.choice_a] !== I.choice_2,
1171
1171
  min: () => 2,
1172
1172
  max: () => 10
1173
1173
  }
@@ -1405,7 +1405,7 @@ const Lt = {
1405
1405
  value: 24,
1406
1406
  height: 16
1407
1407
  }
1408
- }, je = {
1408
+ }, Ke = {
1409
1409
  stand: {
1410
1410
  name: "标准",
1411
1411
  code: "stand",
@@ -1427,7 +1427,7 @@ const Lt = {
1427
1427
  code: "star",
1428
1428
  value: "star"
1429
1429
  }
1430
- }, He = {
1430
+ }, ze = {
1431
1431
  left_down: {
1432
1432
  name: "左下",
1433
1433
  code: "left_down",
@@ -1465,25 +1465,25 @@ const Lt = {
1465
1465
  fontFamily: so,
1466
1466
  fontSize: ro,
1467
1467
  fontWeight: io,
1468
- formatConfig: Kt,
1469
- halfScoreType: Ue,
1468
+ formatConfig: jt,
1469
+ halfScoreType: Qe,
1470
1470
  halfScoreTypeOption: to,
1471
1471
  layoutMode: Vt,
1472
1472
  otherLayout: no,
1473
1473
  otherLayoutKey: Mt,
1474
1474
  paddDiff: qt,
1475
1475
  pageMargin: Ut,
1476
- pagePadding: rt,
1477
- pagePointPosition: He,
1476
+ pagePadding: ct,
1477
+ pagePointPosition: ze,
1478
1478
  pageSize: g,
1479
- pageTitleBlockCol: jt,
1480
- paper: ze,
1479
+ pageTitleBlockCol: Kt,
1480
+ paper: Oe,
1481
1481
  problemLayout: lo,
1482
1482
  problemLayoutKey: y,
1483
1483
  problemLayoutVal: I,
1484
- scoreLineSize: je,
1484
+ scoreLineSize: Ke,
1485
1485
  scoreLineStyle: Ze,
1486
- scoreLineType: De,
1486
+ scoreLineType: je,
1487
1487
  scoreLineTypeOption: oo,
1488
1488
  seatType: xe,
1489
1489
  seatTypeOption: Xt,
@@ -1492,10 +1492,10 @@ const Lt = {
1492
1492
  subIndentOption: eo,
1493
1493
  subRange: lt,
1494
1494
  subRangeOption: Jt,
1495
- subRule: Qe,
1495
+ subRule: qe,
1496
1496
  subRuleOption: Zt,
1497
1497
  toolGroup: q
1498
- }, Symbol.toStringTag, { value: "Module" })), ct = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
1498
+ }, Symbol.toStringTag, { value: "Module" })), dt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), ho = "TF".split(""), po = {
1499
1499
  a4: "TYPE_A4",
1500
1500
  a4x: "TYPE_A4",
1501
1501
  a3: "TYPE_A3",
@@ -1585,21 +1585,21 @@ const Lt = {
1585
1585
  padding: {}
1586
1586
  },
1587
1587
  setup(e) {
1588
- const t = e, o = (l) => ({
1588
+ const t = e, o = (a) => ({
1589
1589
  lt: { left: `${t.padding.left - 20}px`, top: `${t.padding.top - 20}px` },
1590
1590
  rt: { right: `${t.padding.right - 20}px`, top: `${t.padding.top - 20}px` },
1591
1591
  lb: { left: `${t.padding.left - 20}px`, bottom: `${t.padding.bottom - 20}px` },
1592
1592
  rb: { right: `${t.padding.right - 20}px`, bottom: `${t.padding.bottom - 20}px` }
1593
- })[l], a = () => ({
1594
- [He.left_down.code]: {
1593
+ })[a], l = () => ({
1594
+ [ze.left_down.code]: {
1595
1595
  left: `${t.padding.left - 20 + 100}px`,
1596
1596
  bottom: `${t.padding.bottom - 20}px`
1597
1597
  },
1598
- [He.right_up.code]: {
1598
+ [ze.right_up.code]: {
1599
1599
  right: `${t.padding.right - 20 + 100}px`,
1600
1600
  top: `${t.padding.top - 20}px`
1601
1601
  }
1602
- })[t.layout.pagePoint], n = (l, i) => {
1602
+ })[t.layout.pagePoint], n = (a, i) => {
1603
1603
  const c = t.columnContentWidth + t.columnMargin, u = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, m = {
1604
1604
  t: {
1605
1605
  top: `${t.padding.top - 20}px`
@@ -1608,12 +1608,12 @@ const Lt = {
1608
1608
  bottom: `${t.padding.bottom - 20}px`
1609
1609
  }
1610
1610
  };
1611
- return { left: `${l * c + u}px`, ...m[i] };
1612
- }, r = (l) => {
1613
- const i = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((O) => O === l);
1611
+ return { left: `${a * c + u}px`, ...m[i] };
1612
+ }, r = (a) => {
1613
+ const i = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((O) => O === a);
1614
1614
  return { top: `${i * m + t.padding.top - 10}px`, width: "11px", ...u };
1615
1615
  };
1616
- return (l, i) => {
1616
+ return (a, i) => {
1617
1617
  var c;
1618
1618
  return s(), d(E, null, [
1619
1619
  (s(), d(E, null, X(["lt", "rt", "lb", "rb"], (u) => f("span", {
@@ -1622,7 +1622,7 @@ const Lt = {
1622
1622
  style: Y(o(u)),
1623
1623
  "data-xine": x(k).point + u
1624
1624
  }, null, 12, yo)), 64)),
1625
- (s(!0), d(E, null, X((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(E, { key: u }, [
1625
+ (s(!0), d(E, null, X((a.currentPage % 2 ? a.layout.backColumn : a.layout.column) - 1, (u) => (s(), d(E, { key: u }, [
1626
1626
  (s(), d(E, null, X(["t", "b"], (m) => f("span", {
1627
1627
  key: m,
1628
1628
  class: "absolute bg-black w-8 point_item",
@@ -1638,32 +1638,32 @@ const Lt = {
1638
1638
  }, null, 12, fo)), 64)),
1639
1639
  f("p", {
1640
1640
  class: "absolute leading-none text-0",
1641
- style: Y(a()),
1641
+ style: Y(l()),
1642
1642
  "data-xine": x(k).page
1643
1643
  }, [
1644
- (s(!0), d(E, null, X(l.currentPage + 1, (u, m) => (s(), d("span", {
1644
+ (s(!0), d(E, null, X(a.currentPage + 1, (u, m) => (s(), d("span", {
1645
1645
  key: u,
1646
1646
  class: "inline-block bg-black mx-2 page_item",
1647
1647
  "data-xine": x(k).page_item + m
1648
1648
  }, null, 8, bo))), 128))
1649
1649
  ], 12, go),
1650
- l.currentPage % 2 ? D("", !0) : (s(), d("span", {
1650
+ a.currentPage % 2 ? D("", !0) : (s(), d("span", {
1651
1651
  key: 0,
1652
1652
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1653
- style: Y({ right: `${l.padding.right - 12}px` })
1654
- }, "提示:本卷" + V((c = x(ze).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
1653
+ style: Y({ right: `${a.padding.right - 12}px` })
1654
+ }, "提示:本卷" + V((c = x(Oe).find((u) => u.code === a.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
1655
1655
  f("span", {
1656
1656
  class: "absolute text-sm red_sheet",
1657
- style: Y({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
1658
- }, V(l.currentPage + 1) + "/" + V(l.totalPage), 5)
1657
+ style: Y({ right: `${a.padding.bottom - 20 + 75}px`, bottom: `${a.padding.bottom - 20 - 3}px` })
1658
+ }, V(a.currentPage + 1) + "/" + V(a.totalPage), 5)
1659
1659
  ], 64);
1660
1660
  };
1661
1661
  }
1662
1662
  });
1663
1663
  const de = (e, t) => {
1664
1664
  const o = e.__vccOpts || e;
1665
- for (const [a, n] of t)
1666
- o[a] = n;
1665
+ for (const [l, n] of t)
1666
+ o[l] = n;
1667
1667
  return o;
1668
1668
  }, wo = /* @__PURE__ */ de(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
1669
1669
  key: 0,
@@ -1683,33 +1683,33 @@ const de = (e, t) => {
1683
1683
  },
1684
1684
  emits: ["change", "input", "focus", "blur"],
1685
1685
  setup(e, { emit: t }) {
1686
- const o = e, a = G(o.value), n = G(!1);
1687
- Ae(() => o.value, () => {
1688
- a.value = o.value;
1686
+ const o = e, l = G(o.value), n = G(!1);
1687
+ De(() => o.value, () => {
1688
+ l.value = o.value;
1689
1689
  });
1690
1690
  const r = (u) => {
1691
- a.value = u.target.value, t("input", o.type === "number" ? parseFloat(a.value) : a.value);
1692
- }, l = (u) => {
1693
- a.value = u.target.value, t("change", o.type === "number" ? parseFloat(a.value) : a.value), setTimeout(() => {
1694
- a.value = o.value;
1691
+ l.value = u.target.value, t("input", o.type === "number" ? parseFloat(l.value) : l.value);
1692
+ }, a = (u) => {
1693
+ l.value = u.target.value, t("change", o.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
1694
+ l.value = o.value;
1695
1695
  }, 400);
1696
1696
  }, i = (u) => {
1697
- a.value = u.target.value, t("focus", o.type === "number" ? parseFloat(a.value) : a.value), n.value = !0;
1697
+ l.value = u.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value), n.value = !0;
1698
1698
  }, c = () => {
1699
- t("blur", o.type === "number" ? parseFloat(`${a.value}`) : a.value), n.value = !1;
1699
+ t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), n.value = !1;
1700
1700
  };
1701
1701
  return (u, m) => (s(), d("div", {
1702
- class: ae(["flex-1 flex items-center border rounded-lg", u.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
1702
+ class: te(["flex-1 flex items-center border rounded-lg", u.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
1703
1703
  }, [
1704
1704
  f("div", xo, [
1705
1705
  f("input", {
1706
- class: ae(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
1706
+ class: te(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
1707
1707
  type: u.type,
1708
1708
  placeholder: u.placeholder,
1709
1709
  maxlength: u.maxLength,
1710
- value: a.value,
1710
+ value: l.value,
1711
1711
  onInput: r,
1712
- onChange: l,
1712
+ onChange: a,
1713
1713
  onFocus: i,
1714
1714
  onBlur: c
1715
1715
  }, null, 42, ko)
@@ -1725,11 +1725,11 @@ const de = (e, t) => {
1725
1725
  },
1726
1726
  emits: ["change"],
1727
1727
  setup(e, { emit: t }) {
1728
- const o = e, a = A(() => rt[o.layout.mode][o.layout.paper]), n = A(() => ({
1729
- right: `${a.value.right + 97}px`,
1730
- bottom: `${a.value.bottom - 25}px`
1728
+ const o = e, l = A(() => ct[o.layout.mode][o.layout.paper]), n = A(() => ({
1729
+ right: `${l.value.right + 97}px`,
1730
+ bottom: `${l.value.bottom - 25}px`
1731
1731
  }));
1732
- return (r, l) => (s(), U(et, {
1732
+ return (r, a) => (s(), U(et, {
1733
1733
  class: "absolute w-72 text-sm",
1734
1734
  value: r.info.slogan,
1735
1735
  maxLength: 12,
@@ -1738,7 +1738,7 @@ const de = (e, t) => {
1738
1738
  autoLine: "",
1739
1739
  dir: "right",
1740
1740
  style: Y(n.value),
1741
- onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
1741
+ onChange: a[0] || (a[0] = (i) => t("change", { slogin: i }))
1742
1742
  }, null, 8, ["value", "style"]));
1743
1743
  }
1744
1744
  }), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ J({
@@ -1750,16 +1750,16 @@ const de = (e, t) => {
1750
1750
  },
1751
1751
  emits: ["click"],
1752
1752
  setup(e, { emit: t }) {
1753
- const o = e, a = A(() => `#icon-${o.name}`);
1753
+ const o = e, l = A(() => `#icon-${o.name}`);
1754
1754
  return (n, r) => (s(), d("span", {
1755
1755
  class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
1756
- onClick: r[0] || (r[0] = (l) => t("click"))
1756
+ onClick: r[0] || (r[0] = (a) => t("click"))
1757
1757
  }, [
1758
1758
  (s(), d("svg", {
1759
1759
  width: n.width + "rem",
1760
1760
  height: (n.height || n.width) + "rem"
1761
1761
  }, [
1762
- f("use", { "xlink:href": a.value }, null, 8, To)
1762
+ f("use", { "xlink:href": l.value }, null, 8, To)
1763
1763
  ], 8, So))
1764
1764
  ]));
1765
1765
  }
@@ -1776,18 +1776,18 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1776
1776
  setup(e) {
1777
1777
  return (t, o) => (s(), d("div", Lo, [
1778
1778
  t.layout.secrecyFlag ? (s(), d("p", Fo, [
1779
- Ke("绝密"),
1780
- K(ye, {
1779
+ Ue("绝密"),
1780
+ j(ye, {
1781
1781
  name: "fiveArrow",
1782
1782
  width: 1.4,
1783
1783
  class: "px-0 py-0"
1784
1784
  }),
1785
- Ke("启用前")
1785
+ Ue("启用前")
1786
1786
  ])) : D("", !0),
1787
1787
  f("p", Eo, "ID:" + V(t.code), 1)
1788
1788
  ]));
1789
1789
  }
1790
- }), Po = ["innerHTML"], Oe = /* @__PURE__ */ J({
1790
+ }), Po = ["innerHTML"], Be = /* @__PURE__ */ J({
1791
1791
  __name: "index",
1792
1792
  props: {
1793
1793
  value: {},
@@ -1796,13 +1796,13 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1796
1796
  },
1797
1797
  emits: ["change"],
1798
1798
  setup(e, { emit: t }) {
1799
- const o = e, a = (n) => {
1799
+ const o = e, l = (n) => {
1800
1800
  t("change", n.target.innerHTML, o.name);
1801
1801
  };
1802
1802
  return (n, r) => (s(), d("div", {
1803
1803
  innerHTML: n.value,
1804
1804
  contenteditable: "",
1805
- onBlur: a
1805
+ onBlur: l
1806
1806
  }, null, 40, Po));
1807
1807
  }
1808
1808
  }), Do = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
@@ -1820,7 +1820,7 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1820
1820
  }, Qo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
1821
1821
  key: 4,
1822
1822
  class: "flex items-center mx-4"
1823
- }, Ko = /* @__PURE__ */ f("span", null, "总", -1), jo = { key: 1 }, Vo = { key: 3 }, Xo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ J({
1823
+ }, jo = /* @__PURE__ */ f("span", null, "总", -1), Ko = { key: 1 }, Vo = { key: 3 }, Xo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ J({
1824
1824
  __name: "title",
1825
1825
  props: {
1826
1826
  info: {},
@@ -1830,41 +1830,41 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1830
1830
  },
1831
1831
  emits: ["change"],
1832
1832
  setup(e, { emit: t }) {
1833
- const o = e, a = A(() => o.data.filter((l) => ![ve.another, ve.another_choice, ve.one_choice].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), n = A(() => o.data.filter((l) => [ve.another].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), r = A(() => o.layout.scoreAddStars === Ze.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
- return (l, i) => (s(), d("div", Do, [
1833
+ const o = e, l = A(() => o.data.filter((a) => ![ve.another, ve.another_choice, ve.one_choice].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, i) => a + i, 0)), n = A(() => o.data.filter((a) => [ve.another].includes(a.problemType)).map((a) => a.totalScore || 0).reduce((a, i) => a + i, 0)), r = A(() => o.layout.scoreAddStars === Ze.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
+ return (a, i) => (s(), d("div", Do, [
1835
1835
  f("img", {
1836
- src: l.info.qrCode,
1836
+ src: a.info.qrCode,
1837
1837
  alt: "QRCode",
1838
1838
  class: "flex-shrink-0 w-28 h-28",
1839
1839
  "data-xine": x(k).art_code
1840
1840
  }, null, 8, Ao),
1841
1841
  f("div", No, [
1842
- K(Oe, {
1842
+ j(Be, {
1843
1843
  class: "w-full text-center border-2 border-transparent focus:border-current",
1844
- value: l.info.title,
1845
- style: Y(l.fontConfig.titleStyle),
1844
+ value: a.info.title,
1845
+ style: Y(a.fontConfig.titleStyle),
1846
1846
  onChange: i[0] || (i[0] = (c) => t("change", { title: c }))
1847
1847
  }, null, 8, ["value", "style"]),
1848
- l.layout.secTitleFlag ? (s(), U(Oe, {
1848
+ a.layout.secTitleFlag ? (s(), U(Be, {
1849
1849
  key: 0,
1850
1850
  class: "w-full text-center border-2 border-transparent focus:border-current",
1851
- value: l.info.secTitle,
1852
- style: Y(l.fontConfig.halfTitleStyle),
1851
+ value: a.info.secTitle,
1852
+ style: Y(a.fontConfig.halfTitleStyle),
1853
1853
  onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
1854
1854
  }, null, 8, ["value", "style"])) : D("", !0),
1855
1855
  f("div", Bo, [
1856
- l.layout.examExtentFlag ? (s(), d("p", Oo, [
1856
+ a.layout.examExtentFlag ? (s(), d("p", Oo, [
1857
1857
  zo,
1858
- K(Oe, {
1858
+ j(Be, {
1859
1859
  class: "flex-1",
1860
- value: l.info.extent,
1860
+ value: a.info.extent,
1861
1861
  onChange: i[2] || (i[2] = (c) => t("change", { extent: c }))
1862
1862
  }, null, 8, ["value"])
1863
1863
  ])) : D("", !0),
1864
- l.layout.examTimeFlag ? (s(), d("p", Ho, [
1864
+ a.layout.examTimeFlag ? (s(), d("p", Ho, [
1865
1865
  Ro,
1866
- K(et, {
1867
- value: l.info.time,
1866
+ j(et, {
1867
+ value: a.info.time,
1868
1868
  class: "text-center",
1869
1869
  type: "number",
1870
1870
  autoLine: "",
@@ -1874,43 +1874,43 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1874
1874
  }, null, 8, ["value"]),
1875
1875
  Wo
1876
1876
  ])) : D("", !0),
1877
- l.layout.authorFlag ? (s(), d("p", Go, [
1877
+ a.layout.authorFlag ? (s(), d("p", Go, [
1878
1878
  Yo,
1879
- K(Oe, {
1879
+ j(Be, {
1880
1880
  class: "flex-1",
1881
- value: l.info.author,
1881
+ value: a.info.author,
1882
1882
  onChange: i[4] || (i[4] = (c) => t("change", { author: c }))
1883
1883
  }, null, 8, ["value"])
1884
1884
  ])) : D("", !0),
1885
- l.layout.reviewerFlag ? (s(), d("p", qo, [
1885
+ a.layout.reviewerFlag ? (s(), d("p", qo, [
1886
1886
  Qo,
1887
- K(Oe, {
1887
+ j(Be, {
1888
1888
  class: "flex-1",
1889
- value: l.info.reviewer,
1889
+ value: a.info.reviewer,
1890
1890
  onChange: i[5] || (i[5] = (c) => t("change", { reviewer: c }))
1891
1891
  }, null, 8, ["value"])
1892
1892
  ])) : D("", !0),
1893
- l.layout.totalScoreFlag ? (s(), d("p", Uo, [
1894
- Ko,
1893
+ a.layout.totalScoreFlag ? (s(), d("p", Uo, [
1894
+ jo,
1895
1895
  r.value ? (s(), U(ye, {
1896
1896
  key: 0,
1897
1897
  name: r.value,
1898
1898
  class: "p-0 -translate-y-[1px]"
1899
- }, null, 8, ["name"])) : (s(), d("span", jo, "分")),
1900
- f("span", null, ":" + V(a.value + (l.layout.writeScoreFlag ? l.info.writeScore : 0)), 1),
1899
+ }, null, 8, ["name"])) : (s(), d("span", Ko, "分")),
1900
+ f("span", null, ":" + V(l.value + (a.layout.writeScoreFlag ? a.info.writeScore : 0)), 1),
1901
1901
  r.value ? (s(), U(ye, {
1902
1902
  key: 2,
1903
1903
  name: r.value,
1904
1904
  class: "p-0 -translate-y-[1px]"
1905
1905
  }, null, 8, ["name"])) : (s(), d("span", Vo, "分")),
1906
- l.layout.writeScoreFlag ? (s(), d(E, { key: 4 }, [
1907
- f("span", null, "(试题" + V(a.value), 1),
1906
+ a.layout.writeScoreFlag ? (s(), d(E, { key: 4 }, [
1907
+ f("span", null, "(试题" + V(l.value), 1),
1908
1908
  r.value ? (s(), U(ye, {
1909
1909
  key: 0,
1910
1910
  name: r.value,
1911
1911
  class: "p-0 -translate-y-[1px]"
1912
1912
  }, null, 8, ["name"])) : (s(), d("span", Xo, "分")),
1913
- f("span", null, "+卷面" + V(l.info.writeScore || 0), 1),
1913
+ f("span", null, "+卷面" + V(a.info.writeScore || 0), 1),
1914
1914
  r.value ? (s(), U(ye, {
1915
1915
  key: 2,
1916
1916
  name: r.value,
@@ -1931,7 +1931,7 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1931
1931
  ])
1932
1932
  ]));
1933
1933
  }
1934
- }), oa = { class: "flex-1 flex flex-col ml-2" }, gt = /* @__PURE__ */ J({
1934
+ }), oa = { class: "flex-1 flex flex-col ml-2" }, bt = /* @__PURE__ */ J({
1935
1935
  __name: "examInfoNone",
1936
1936
  props: {
1937
1937
  extent: {}
@@ -1939,17 +1939,17 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1939
1939
  emits: ["change"],
1940
1940
  setup(e, { emit: t }) {
1941
1941
  const o = ["examNumField", "examRoomField", "seatField"];
1942
- return (a, n) => (s(), d("ul", oa, [
1942
+ return (l, n) => (s(), d("ul", oa, [
1943
1943
  (s(), d(E, null, X(o, (r) => f("li", {
1944
1944
  key: r,
1945
1945
  class: "flex flex-1"
1946
1946
  }, [
1947
- K(et, {
1948
- value: a.extent[r],
1947
+ j(et, {
1948
+ value: l.extent[r],
1949
1949
  class: "px-0",
1950
1950
  placeholder: "",
1951
1951
  autoLine: "",
1952
- onChange: (l) => t("change", { [r]: l })
1952
+ onChange: (a) => t("change", { [r]: a })
1953
1953
  }, null, 8, ["value", "onChange"])
1954
1954
  ])), 64))
1955
1955
  ]));
@@ -1962,18 +1962,18 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1962
1962
  "data-xine": x(k).en_num_view
1963
1963
  }, [
1964
1964
  f("p", la, [
1965
- K(ye, {
1965
+ j(ye, {
1966
1966
  class: "pt-1",
1967
1967
  name: "fiveArrow"
1968
1968
  }),
1969
- Ke("座位号")
1969
+ Ue("座位号")
1970
1970
  ]),
1971
1971
  f("div", {
1972
1972
  class: "flex-1 flex flex-col",
1973
1973
  "data-xine": x(k).en_num
1974
1974
  }, [
1975
- (s(), d(E, null, X(3, (a, n) => f("p", {
1976
- key: a,
1975
+ (s(), d(E, null, X(3, (l, n) => f("p", {
1976
+ key: l,
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
  }, [
@@ -1987,7 +1987,7 @@ const ye = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1987
1987
  ], 8, aa));
1988
1988
  }
1989
1989
  });
1990
- const bt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ J({
1990
+ const vt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ J({
1991
1991
  __name: "examInfoShort",
1992
1992
  setup(e) {
1993
1993
  return (t, o) => (s(), d("div", {
@@ -1995,19 +1995,19 @@ const bt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
1995
1995
  "data-xine": x(k).en_num_view
1996
1996
  }, [
1997
1997
  f("p", da, [
1998
- K(ye, {
1998
+ j(ye, {
1999
1999
  class: "px-1 pt-1",
2000
2000
  name: "fiveArrow"
2001
2001
  }),
2002
- Ke("短学号")
2002
+ Ue("短学号")
2003
2003
  ]),
2004
2004
  f("div", {
2005
2005
  class: "flex-1 flex flex-col",
2006
2006
  "data-xine": x(k).en_num
2007
2007
  }, [
2008
- (s(), d(E, null, X(4, (a, n) => f("p", {
2009
- key: a,
2010
- class: ae(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
2008
+ (s(), d(E, null, X(4, (l, n) => f("p", {
2009
+ key: l,
2010
+ class: te(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
2011
2011
  "data-xine": x(k).en_num_group
2012
2012
  }, [
2013
2013
  (s(), d(E, null, X(10, (r) => f("span", {
@@ -2020,7 +2020,7 @@ const bt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
2020
2020
  ], 8, ca));
2021
2021
  }
2022
2022
  });
2023
- const vt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ J({
2023
+ const wt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { class: "flex-1 flex flex-col" }, _a = /* @__PURE__ */ J({
2024
2024
  __name: "examInfoBase",
2025
2025
  props: {
2026
2026
  extent: {}
@@ -2028,22 +2028,22 @@ const vt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2028
2028
  emits: ["change"],
2029
2029
  setup(e, { emit: t }) {
2030
2030
  const o = ["nameField", "classField", "scoreField"];
2031
- return (a, n) => (s(), d("ul", ya, [
2031
+ return (l, n) => (s(), d("ul", ya, [
2032
2032
  (s(), d(E, null, X(o, (r) => f("li", {
2033
2033
  key: r,
2034
2034
  class: "flex flex-1"
2035
2035
  }, [
2036
- K(et, {
2037
- value: a.extent[r],
2036
+ j(et, {
2037
+ value: l.extent[r],
2038
2038
  class: "px-0",
2039
2039
  placeholder: "",
2040
2040
  autoLine: "",
2041
- onChange: (l) => t("change", { [r]: l })
2041
+ onChange: (a) => t("change", { [r]: a })
2042
2042
  }, null, 8, ["value", "onChange"])
2043
2043
  ])), 64))
2044
2044
  ]));
2045
2045
  }
2046
- }), fa = (e) => (Re("data-v-44e44996"), e = e(), We(), e), ga = {
2046
+ }), fa = (e) => (He("data-v-44e44996"), e = e(), Re(), e), ga = {
2047
2047
  key: 0,
2048
2048
  class: "flex"
2049
2049
  }, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ f("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
@@ -2057,25 +2057,25 @@ const vt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2057
2057
  },
2058
2058
  emits: ["change"],
2059
2059
  setup(e, { emit: t }) {
2060
- const o = e, a = A(() => o.layout.column >= 3 && o.layout.seatType === xe.none);
2060
+ const o = e, l = A(() => o.layout.column >= 3 && o.layout.seatType === xe.none);
2061
2061
  return (n, r) => n.isBindFlag ? D("", !0) : (s(), d("div", ga, [
2062
- a.value ? (s(), d(E, { key: 0 }, [
2063
- n.layout.seatType === x(xe).none ? (s(), U(gt, {
2062
+ l.value ? (s(), d(E, { key: 0 }, [
2063
+ n.layout.seatType === x(xe).none ? (s(), U(bt, {
2064
2064
  key: 0,
2065
2065
  extent: n.info.extentInfo,
2066
- onChange: r[0] || (r[0] = (l) => t("change", l))
2067
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(bt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(vt, { key: 2 })) : D("", !0)
2066
+ onChange: r[0] || (r[0] = (a) => t("change", a))
2067
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(vt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(wt, { key: 2 })) : D("", !0)
2068
2068
  ], 64)) : D("", !0),
2069
- K(_a, {
2069
+ j(_a, {
2070
2070
  extent: n.info.extentInfo,
2071
- onChange: r[1] || (r[1] = (l) => t("change", l))
2071
+ onChange: r[1] || (r[1] = (a) => t("change", a))
2072
2072
  }, null, 8, ["extent"]),
2073
- a.value ? D("", !0) : (s(), d(E, { key: 1 }, [
2074
- n.layout.seatType === x(xe).none ? (s(), U(gt, {
2073
+ l.value ? D("", !0) : (s(), d(E, { key: 1 }, [
2074
+ n.layout.seatType === x(xe).none ? (s(), U(bt, {
2075
2075
  key: 0,
2076
2076
  extent: n.info.extentInfo,
2077
- onChange: r[2] || (r[2] = (l) => t("change", l))
2078
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(bt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(vt, { key: 2 })) : D("", !0)
2077
+ onChange: r[2] || (r[2] = (a) => t("change", a))
2078
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (s(), U(vt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (s(), U(wt, { key: 2 })) : D("", !0)
2079
2079
  ], 64)),
2080
2080
  f("div", {
2081
2081
  class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
@@ -2084,16 +2084,16 @@ const vt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2084
2084
  ]));
2085
2085
  }
2086
2086
  });
2087
- const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e) => (Re("data-v-936c144e"), e = e(), We(), e), Ca = {
2087
+ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
2088
2088
  key: 0,
2089
2089
  class: "flex border mt-2 red_sheet"
2090
- }, $a = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("span", null, "[", -1)), Ma = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Pa = [
2090
+ }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Pa = [
2091
2091
  Ea,
2092
2092
  Ma
2093
- ], Da = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
2093
+ ], Da = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
2094
2094
  /* @__PURE__ */ f("span", null, "正确填涂示例"),
2095
2095
  /* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
2096
- ], -1)), Aa = /* @__PURE__ */ Be(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ J({
2096
+ ], -1)), Aa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ J({
2097
2097
  __name: "notice",
2098
2098
  props: {
2099
2099
  layout: {},
@@ -2101,20 +2101,20 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
2101
2101
  },
2102
2102
  setup(e) {
2103
2103
  const t = e, o = A(() => {
2104
- const a = {
2104
+ const l = {
2105
2105
  [xe.none]: "",
2106
2106
  [xe.seat]: "座位号或",
2107
2107
  [xe.shortId]: "短学号或"
2108
2108
  };
2109
2109
  return [
2110
- `1.答题前,考生先将自己的基本信息填写清楚,并认真核对${t.isBindFlag ? "" : a[t.layout.seatType]}条形码上的信息;`,
2110
+ `1.答题前,考生先将自己的基本信息填写清楚,并认真核对${t.isBindFlag ? "" : l[t.layout.seatType]}条形码上的信息;`,
2111
2111
  "2.选择题部分请按题号用2B铅笔填图方框,修改时用橡皮檫干净,不留痕迹;",
2112
2112
  "3.非选择题部分请按题号用0.5毫米黑色墨水签字笔书写,否则作答无效;",
2113
2113
  "4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
2114
2114
  ];
2115
2115
  });
2116
- return (a, n) => (s(), d(E, null, [
2117
- a.layout.noteFlag ? (s(), d("div", Ca, [
2116
+ return (l, n) => (s(), d(E, null, [
2117
+ l.layout.noteFlag ? (s(), d("div", Ca, [
2118
2118
  $a,
2119
2119
  f("div", Sa, [
2120
2120
  (s(!0), d(E, null, X(o.value, (r) => (s(), d("p", {
@@ -2123,14 +2123,14 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
2123
2123
  }, V(r), 1))), 128))
2124
2124
  ])
2125
2125
  ])) : D("", !0),
2126
- a.layout.lackFlag ? (s(), d("div", {
2126
+ l.layout.lackFlag ? (s(), d("div", {
2127
2127
  key: 1,
2128
- class: ae(["flex border text-sm red_sheet", a.layout.noteFlag ? "border-t-0" : "mt-2"])
2128
+ class: te(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
2129
2129
  }, [
2130
2130
  f("p", Ta, [
2131
2131
  Ia,
2132
2132
  f("span", La, [
2133
- K(ye, { name: "rightArrow" }),
2133
+ j(ye, { name: "rightArrow" }),
2134
2134
  f("span", {
2135
2135
  class: "flex items-center leading-4",
2136
2136
  "data-xine": x(k).lack
@@ -2143,23 +2143,23 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Be = (e)
2143
2143
  ], 64));
2144
2144
  }
2145
2145
  });
2146
- const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), wt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, a = "children") => {
2146
+ const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), xt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", o = !0, l = "children") => {
2147
2147
  let n = [];
2148
- const r = (l) => {
2149
- (l[a] || []).length ? (o && n.push(t ? l[t] : l[a]), l[a].forEach((i) => r(i))) : n.push(t ? l[t] : l);
2148
+ const r = (a) => {
2149
+ (a[l] || []).length ? (o && n.push(t ? a[t] : a[l]), a[l].forEach((i) => r(i))) : n.push(t ? a[t] : a);
2150
2150
  };
2151
- return e.forEach((l) => r(l)), n.flat(5);
2151
+ return e.forEach((a) => r(a)), n.flat(5);
2152
2152
  };
2153
2153
  function Pt(e) {
2154
2154
  if (e < 0 || e > 99)
2155
2155
  throw Error("下标超限");
2156
2156
  const t = "零一二三四五六七八九".split("");
2157
- return [...Array(100)].map((a, n) => {
2158
- const r = Math.floor(n / t.length), l = n % t.length;
2159
- return r ? `${r > 1 ? t[r] : ""}十${l ? t[l] : ""}` : t[l];
2157
+ return [...Array(100)].map((l, n) => {
2158
+ const r = Math.floor(n / t.length), a = n % t.length;
2159
+ return r ? `${r > 1 ? t[r] : ""}十${a ? t[a] : ""}` : t[a];
2160
2160
  })[e + 1];
2161
2161
  }
2162
- function xt(e) {
2162
+ function kt(e) {
2163
2163
  return window.btoa(`${e || ""}${Math.random().toString(32).substr(2)}${Date.now()}`);
2164
2164
  }
2165
2165
  const za = {
@@ -2178,14 +2178,14 @@ const za = {
2178
2178
  data: {}
2179
2179
  },
2180
2180
  setup(e) {
2181
- const t = e, o = A(() => t.data.filter((a) => a.problemType));
2182
- return (a, n) => a.layout.scoreFlag ? (s(), d("ul", za, [
2181
+ const t = e, o = A(() => t.data.filter((l) => l.problemType));
2182
+ return (l, n) => l.layout.scoreFlag ? (s(), d("ul", za, [
2183
2183
  Ha,
2184
- (s(!0), d(E, null, X(o.value, (r, l) => (s(), d("li", {
2184
+ (s(!0), d(E, null, X(o.value, (r, a) => (s(), d("li", {
2185
2185
  key: r.id,
2186
2186
  class: "flex-1 flex flex-col border-l"
2187
2187
  }, [
2188
- f("p", Ra, V(x(Pt)(l)), 1),
2188
+ f("p", Ra, V(x(Pt)(a)), 1),
2189
2189
  Wa
2190
2190
  ]))), 128)),
2191
2191
  Ga
@@ -2200,8 +2200,8 @@ const za = {
2200
2200
  styleInfo: {}
2201
2201
  },
2202
2202
  setup(e, { expose: t }) {
2203
- const o = e, a = G(), n = G();
2204
- t({ col: a, colView: n });
2203
+ const o = e, l = G(), n = G();
2204
+ t({ col: l, colView: n });
2205
2205
  const r = A(() => {
2206
2206
  const { top: c, width: u, height: m, left: O } = o.styleInfo;
2207
2207
  return {
@@ -2210,7 +2210,7 @@ const za = {
2210
2210
  width: `${parseFloat(u) + $e.left + $e.right}px`,
2211
2211
  height: `${parseFloat(m) + (o.currentColumn ? $e.top : 0) + $e.bottom}px`
2212
2212
  };
2213
- }), l = A(() => ({
2213
+ }), a = A(() => ({
2214
2214
  left: `${$e.left - 1}px`,
2215
2215
  top: `${$e.top - 1}px`,
2216
2216
  bottom: `${$e.bottom - 1}px`,
@@ -2219,12 +2219,12 @@ const za = {
2219
2219
  return (c, u) => (s(), d(E, null, [
2220
2220
  c.showColBorder ? (s(), d("div", {
2221
2221
  key: 0,
2222
- class: ae(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
2222
+ class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
2223
2223
  style: Y(r.value)
2224
2224
  }, [
2225
2225
  f("span", {
2226
2226
  class: "absolute border border-black",
2227
- style: Y(l.value)
2227
+ style: Y(a.value)
2228
2228
  }, null, 4)
2229
2229
  ], 6)) : D("", !0),
2230
2230
  f("div", {
@@ -2235,7 +2235,7 @@ const za = {
2235
2235
  }, [
2236
2236
  f("div", {
2237
2237
  ref_key: "col",
2238
- ref: a,
2238
+ ref: l,
2239
2239
  class: "overflow-hidden __col__",
2240
2240
  style: Y({ height: c.styleInfo.contentHeight })
2241
2241
  }, [
@@ -2245,8 +2245,8 @@ const za = {
2245
2245
  ], 64));
2246
2246
  }
2247
2247
  });
2248
- const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (Re("data-v-3f588317"), e = e(), We(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
2249
- ja
2248
+ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), ja = ["data-xine"], Ka = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
2249
+ Ka
2250
2250
  ], Xa = ["data-xine"], Ja = /* @__PURE__ */ J({
2251
2251
  __name: "bind",
2252
2252
  props: {
@@ -2257,21 +2257,21 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2257
2257
  },
2258
2258
  setup(e) {
2259
2259
  const t = G(), o = ["学校", "班级", "准考证号", "姓名"];
2260
- return (a, n) => a.isBindFlag ? (s(), d("div", {
2260
+ return (l, n) => l.isBindFlag ? (s(), d("div", {
2261
2261
  key: 0,
2262
- style: Y({ width: `${a.currentPage % 2 ? 0 : a.width}px`, height: `${a.height - 20}px` }),
2263
- class: ae([a.currentPage % 2 && "right_view"]),
2262
+ style: Y({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
2263
+ class: te([l.currentPage % 2 && "right_view"]),
2264
2264
  ref_key: "view",
2265
2265
  ref: t
2266
2266
  }, [
2267
- a.currentPage % 2 ? (s(), d("div", {
2267
+ l.currentPage % 2 ? (s(), d("div", {
2268
2268
  key: 0,
2269
2269
  class: "flex items-center justify-center origin-top-left border-b end_view",
2270
- style: Y({ width: `${a.height - 20}px`, height: `${a.width}px` })
2270
+ style: Y({ width: `${l.height - 20}px`, height: `${l.width}px` })
2271
2271
  }, "当前位置为密封线位置,请勿在此处作答", 4)) : (s(), d("div", {
2272
2272
  key: 1,
2273
2273
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2274
- style: Y({ width: `${a.height - 20}px` })
2274
+ style: Y({ width: `${l.height - 20}px` })
2275
2275
  }, [
2276
2276
  (s(), d(E, null, X(o, (r) => f("p", {
2277
2277
  key: r,
@@ -2283,7 +2283,7 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2283
2283
  f("div", {
2284
2284
  class: "flex items-center justify-center border border-dashed font-bold w-80 h-40",
2285
2285
  "data-xine": x(k).en_code
2286
- }, Va, 8, Ka),
2286
+ }, Va, 8, ja),
2287
2287
  f("span", {
2288
2288
  "data-xine": x(k).bind_line
2289
2289
  }, null, 8, Xa)
@@ -2291,14 +2291,14 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2291
2291
  ], 6)) : D("", !0);
2292
2292
  }
2293
2293
  });
2294
- const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", kt = "MC5sZGN2NzJ0ZXE0bw", dt = "MC5yYjk3NGY2OTcyOA", ut = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ J({
2294
+ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", Ct = "MC5sZGN2NzJ0ZXE0bw", ut = "MC5yYjk3NGY2OTcyOA", ht = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ J({
2295
2295
  __name: "simple",
2296
2296
  props: {
2297
2297
  item: {},
2298
2298
  layout: {}
2299
2299
  },
2300
2300
  setup(e) {
2301
- const t = e, o = ["right", "half_right", "wrong"], a = A(() => {
2301
+ const t = e, o = ["right", "half_right", "wrong"], l = A(() => {
2302
2302
  const n = t.item.score;
2303
2303
  return [n, Math.round(n / 2 * 100) / 100, 0];
2304
2304
  });
@@ -2311,13 +2311,13 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2311
2311
  class: "flex h-full divide-x divide-solid",
2312
2312
  "data-xine": x(k).score_base
2313
2313
  }, [
2314
- (s(!0), d(E, null, X(a.value, (l, i) => (s(), d("li", {
2314
+ (s(!0), d(E, null, X(l.value, (a, i) => (s(), d("li", {
2315
2315
  class: "flex items-center justify-center relative score_line",
2316
- style: Y({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2316
+ style: Y({ width: `${x(Ke)[n.layout.scoreLineSize].value}px` }),
2317
2317
  "data-xine": x(k).score_item
2318
2318
  }, [
2319
- f("span", il, V(l), 1),
2320
- K(ye, {
2319
+ f("span", il, V(a), 1),
2320
+ j(ye, {
2321
2321
  class: "p-0",
2322
2322
  name: o[i]
2323
2323
  }, null, 8, ["name"])
@@ -2333,24 +2333,24 @@ 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, o = G(), a = G(!1), n = G(!1), r = G(!1), l = G([]), i = A(() => t.layout.scoreAddStars === Ze.star.code);
2337
- Ae(() => [t.item.score], () => c()), Xe(() => {
2336
+ const t = e, o = G(), l = G(!1), n = G(!1), r = G(!1), a = G([]), i = A(() => t.layout.scoreAddStars === Ze.star.code);
2337
+ De(() => [t.item.score], () => c()), Xe(() => {
2338
2338
  c();
2339
2339
  });
2340
2340
  const c = () => {
2341
2341
  !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
2342
2342
  let m = [];
2343
- if (t.item.scoreLineType === De.custom)
2343
+ if (t.item.scoreLineType === je.custom)
2344
2344
  m = [[...t.item.customScore, 0]];
2345
- else if (t.item.scoreLineType === De.step)
2345
+ else if (t.item.scoreStep)
2346
2346
  m.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((O) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * O)).reverse());
2347
- else if (t.item.scoreLineType === De.none) {
2348
- const O = o.value.offsetWidth, h = je[t.layout.scoreLineSize].value + 1;
2349
- a.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, a.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), m.push([...Array(10).keys()].reverse()), r.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2347
+ else {
2348
+ const O = o.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
2349
+ l.value = O - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), m.push([...Array(10).keys()].reverse()), r.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2350
2350
  }
2351
- t.item.hasHalfScore && m.push([0.5]), l.value = m, n.value = !!m.flat().find((O) => `${O}`.length > 3);
2351
+ t.item.hasHalfScore && m.push([0.5]), a.value = m, n.value = !!m.flat().find((O) => `${O}`.length > 3);
2352
2352
  });
2353
- }, u = (m) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][l.value.length - m - 1] : [k.score_base, k.score_tenbit][l.value.length - m - 1];
2353
+ }, u = (m) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][a.value.length - m - 1] : [k.score_base, k.score_tenbit][a.value.length - m - 1];
2354
2354
  return (m, O) => m.layout.handReadFlag ? (s(), d(E, { key: 0 }, [
2355
2355
  m.layout.simpleScoreBarFlag && !m.static ? (s(), U(rl, {
2356
2356
  key: 0,
@@ -2360,21 +2360,21 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2360
2360
  key: 1,
2361
2361
  ref_key: "view",
2362
2362
  ref: o,
2363
- class: "inline-flex max-w-full border border-l-2 border-r-2 divide-x divide-solid",
2363
+ class: te([a.value.length ? "inline-flex" : "flex-1", "max-w-full border border-l-2 border-r-2 divide-x divide-solid"]),
2364
2364
  "data-block": x(ke),
2365
2365
  "data-xine": x(k).score
2366
2366
  }, [
2367
- (s(!0), d(E, null, X(l.value, (h, F) => (s(), d("ul", {
2367
+ (s(!0), d(E, null, X(a.value, (h, F) => (s(), d("ul", {
2368
2368
  class: "flex divide-x divide-solid",
2369
2369
  "data-xine": u(F)
2370
2370
  }, [
2371
2371
  (s(!0), d(E, null, X(h, (Z) => (s(), d("li", {
2372
2372
  class: "flex items-center justify-center flex-shrink-0 score_line",
2373
- style: Y({ width: `${x(je)[m.layout.scoreLineSize].value}px` }),
2373
+ style: Y({ width: `${x(Ke)[m.layout.scoreLineSize].value}px` }),
2374
2374
  "data-xine": Z.toString() ? x(k).score_item : ""
2375
2375
  }, [
2376
2376
  f("span", {
2377
- class: ae(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
2377
+ class: te(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
2378
2378
  }, V(m.layout.minusFlag && Z.toString().length && !i.value ? "-" : "") + V(Z), 3),
2379
2379
  i.value && Z.toString().length ? (s(), U(ye, {
2380
2380
  key: 0,
@@ -2384,10 +2384,10 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2384
2384
  }, null, 8, ["name", "width"])) : D("", !0)
2385
2385
  ], 12, ul))), 256))
2386
2386
  ], 8, dl))), 256))
2387
- ], 8, cl))
2387
+ ], 10, cl))
2388
2388
  ], 64)) : D("", !0);
2389
2389
  }
2390
- }), At = (e) => (Re("data-v-a8dbd3b0"), e = e(), We(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ J({
2390
+ }), At = (e) => (He("data-v-a8dbd3b0"), e = e(), Re(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ J({
2391
2391
  __name: "writeScore",
2392
2392
  props: {
2393
2393
  info: {},
@@ -2400,7 +2400,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2400
2400
  }, [
2401
2401
  pl,
2402
2402
  ml,
2403
- K(tt, {
2403
+ j(tt, {
2404
2404
  item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
2405
2405
  layout: t.layout,
2406
2406
  static: ""
@@ -2415,13 +2415,13 @@ const _l = /* @__PURE__ */ de(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
2415
2415
  },
2416
2416
  setup(e) {
2417
2417
  const t = e;
2418
- return (o, a) => (s(), d("div", {
2418
+ return (o, l) => (s(), d("div", {
2419
2419
  innerHTML: t.data,
2420
2420
  class: "base-problem-font problem-base"
2421
2421
  }, null, 8, fl));
2422
2422
  }
2423
2423
  });
2424
- const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ J({
2424
+ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ J({
2425
2425
  __name: "notArea",
2426
2426
  props: {
2427
2427
  item: {}
@@ -2430,15 +2430,15 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2430
2430
  return (t, o) => (s(), d("div", {
2431
2431
  class: "py-2 border border-dashed rounded-lg mx-1 my-2",
2432
2432
  "data-tag": t.item.__tag__,
2433
- "data-block": x(dt)
2433
+ "data-block": x(ut)
2434
2434
  }, [
2435
- K(Ne, {
2435
+ j(Ae, {
2436
2436
  "data-content": t.item.id,
2437
2437
  data: t.item.content
2438
2438
  }, null, 8, ["data-content", "data"])
2439
2439
  ], 8, bl));
2440
2440
  }
2441
- }), wl = (e) => (Re("data-v-257ae24a"), e = e(), We(), e), xl = ["data-tag", "data-block"], kl = {
2441
+ }), wl = (e) => (He("data-v-257ae24a"), e = e(), Re(), e), xl = ["data-tag", "data-block"], kl = {
2442
2442
  key: 0,
2443
2443
  class: "flex-shrink-0"
2444
2444
  }, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
@@ -2455,10 +2455,10 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2455
2455
  },
2456
2456
  emits: ["click", "dbclick"],
2457
2457
  setup(e, { emit: t }) {
2458
- const o = e, a = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((i) => i.problemType) : null), n = A(() => [ve.another_choice].includes(o.item.problemType)), r = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.length : [...new Set(Oa(o.item.rawChildren.filter((i) => i.problemType), "sub").flat().map((i) => (i || "").split(".")[0]))].length), l = A(() => [...new Set(o.item.rawChildren.map((i) => [...new Set(i.sub.map((c) => c.split(".")[0]))]).map((i) => i.length > 1 ? `${i[0]}-${i[i.length - 1]}` : i[0]))]);
2458
+ const o = e, l = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((i) => i.problemType) : null), n = A(() => [ve.another_choice].includes(o.item.problemType)), r = A(() => [ve.one_choice].includes(o.item.problemType) ? o.item.rawChildren.length : [...new Set(Oa(o.item.rawChildren.filter((i) => i.problemType), "sub").flat().map((i) => (i || "").split(".")[0]))].length), a = A(() => [...new Set(o.item.rawChildren.map((i) => [...new Set(i.sub.map((c) => c.split(".")[0]))]).map((i) => i.length > 1 ? `${i[0]}-${i[i.length - 1]}` : i[0]))]);
2459
2459
  return (i, c) => i.item.problemType ? (s(), d("div", {
2460
2460
  key: 1,
2461
- class: ae(["flex items-baseline relative headline_item", i.showColBorder && "pl-2 mx-1 z-2", !i.isFirst && "headline_view"]),
2461
+ class: te(["flex items-baseline relative headline_item", i.showColBorder && "pl-2 mx-1 z-2", !i.isFirst && "headline_view"]),
2462
2462
  onClick: c[2] || (c[2] = Le((u) => t("click", i.item), ["stop"])),
2463
2463
  "data-tag": i.item.__tag__,
2464
2464
  "data-block": x(ke),
@@ -2471,15 +2471,15 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2471
2471
  i.item.desc ? (s(), d("span", $l, "(" + V(i.item.desc) + ")", 1)) : D("", !0),
2472
2472
  i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" + V(r.value) + "题,共" + V(i.item.totalScore) + "分)", 1)) : D("", !0)
2473
2473
  ]),
2474
- a.value || n.value ? (s(), d("div", Tl, [
2475
- a.value ? (s(), d("p", Il, "请在以下" + V(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2474
+ l.value || n.value ? (s(), d("div", Tl, [
2475
+ l.value ? (s(), d("p", Il, "请在以下" + V(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2476
2476
  f("p", {
2477
2477
  class: "flex flex-wrap",
2478
2478
  "data-block": x(ke),
2479
2479
  "data-xine": x(k).choice + i.item.id
2480
2480
  }, [
2481
2481
  El,
2482
- (s(!0), d(E, null, X(l.value, (u, m) => (s(), d("span", Ml, [
2482
+ (s(!0), d(E, null, X(a.value, (u, m) => (s(), d("span", Ml, [
2483
2483
  f("span", null, V(u), 1),
2484
2484
  f("span", {
2485
2485
  class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
@@ -2491,14 +2491,14 @@ const Ne = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2491
2491
  ])
2492
2492
  ], 42, xl)) : (s(), U(vl, {
2493
2493
  key: 0,
2494
- class: ae([i.isActive && "border-current", i.isFirst && "mt-9"]),
2494
+ class: te([i.isActive && "border-current", i.isFirst && "mt-9"]),
2495
2495
  item: i.item,
2496
2496
  onClick: c[0] || (c[0] = Le((u) => t("click", i.item), ["stop"])),
2497
2497
  onDblclick: c[1] || (c[1] = Le((u) => t("dbclick", i.item), ["stop"]))
2498
2498
  }, null, 8, ["class", "item"]));
2499
2499
  }
2500
2500
  });
2501
- const Ct = /* @__PURE__ */ de(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
2501
+ const $t = /* @__PURE__ */ de(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
2502
2502
  function Nl(e, t) {
2503
2503
  return null;
2504
2504
  }
@@ -2513,14 +2513,14 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2513
2513
  class: "flex items-center red_sheet",
2514
2514
  "data-block": x(ke)
2515
2515
  }, [
2516
- (s(!0), d(E, null, X(t.item.optList, (a, n) => (s(), d("span", {
2517
- class: ae(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
2516
+ (s(!0), d(E, null, X(t.item.optList, (l, n) => (s(), d("span", {
2517
+ class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(xt)[n]) && "bg-success border-success"]),
2518
2518
  style: Y({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
2519
2519
  "data-xine": x(k).fill + n
2520
2520
  }, [
2521
- K(ye, {
2521
+ j(ye, {
2522
2522
  width: 1,
2523
- name: x(wt)[n]
2523
+ name: x(xt)[n]
2524
2524
  }, null, 8, ["name"])
2525
2525
  ], 14, zl))), 256))
2526
2526
  ], 8, Ol));
@@ -2529,8 +2529,8 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2529
2529
  function Wl(e, t) {
2530
2530
  return null;
2531
2531
  }
2532
- const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2533
- Kl
2532
+ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], jl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), Kl = [
2533
+ jl
2534
2534
  ], Vl = ["data-xine"], Xl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
2535
2535
  Xl
2536
2536
  ], Zl = /* @__PURE__ */ J({
@@ -2544,39 +2544,39 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2544
2544
  width: `${Ie[t.layout.fillSize].value + 1}px`,
2545
2545
  height: `${Ie[t.layout.fillSize].height + 1}px`
2546
2546
  }));
2547
- return (a, n) => (s(), d("div", {
2547
+ return (l, n) => (s(), d("div", {
2548
2548
  class: "flex red_sheet",
2549
2549
  "data-block": x(ke)
2550
2550
  }, [
2551
- a.item.style[x(y)[a.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(E, { key: 0 }, [
2551
+ l.item.style[x(y)[l.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(E, { key: 0 }, [
2552
2552
  f("span", {
2553
- class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2553
+ class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2554
2554
  style: Y(o.value),
2555
2555
  "data-xine": x(k).fill + "0"
2556
2556
  }, [
2557
- K(ye, {
2557
+ j(ye, {
2558
2558
  name: "right",
2559
2559
  width: 1
2560
2560
  })
2561
2561
  ], 14, ql),
2562
2562
  f("span", {
2563
- class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2563
+ class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2564
2564
  style: Y(o.value),
2565
2565
  "data-xine": x(k).fill + "1"
2566
2566
  }, [
2567
- K(ye, {
2567
+ j(ye, {
2568
2568
  name: "wrong",
2569
2569
  width: 1
2570
2570
  })
2571
2571
  ], 14, Ql)
2572
2572
  ], 64)) : (s(), d(E, { key: 1 }, [
2573
2573
  f("span", {
2574
- class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2574
+ class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2575
2575
  style: Y(o.value),
2576
2576
  "data-xine": x(k).fill + "0"
2577
- }, jl, 14, Ul),
2577
+ }, Kl, 14, Ul),
2578
2578
  f("span", {
2579
- class: ae(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2579
+ class: te(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2580
2580
  style: Y(o.value),
2581
2581
  "data-xine": x(k).fill + "1"
2582
2582
  }, Jl, 14, Vl)
@@ -2599,18 +2599,18 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2599
2599
  },
2600
2600
  setup(e) {
2601
2601
  const t = e, o = A(() => t.layout.scoreAddStars === Ze.star.code);
2602
- return (a, n) => a.layout.handReadFlag ? (s(), d("div", {
2602
+ return (l, n) => l.layout.handReadFlag ? (s(), d("div", {
2603
2603
  key: 0,
2604
2604
  class: "score_fill flex items-center",
2605
2605
  "data-block": x(ke),
2606
2606
  "data-xine": x(k).fill
2607
2607
  }, [
2608
- a.showScoreCn ? (s(), d("span", ln, [
2609
- f("span", null, V(a.layout.minusFlag && !o.value ? "-" : "") + V(a.item.score), 1),
2608
+ l.showScoreCn ? (s(), d("span", ln, [
2609
+ f("span", null, V(l.layout.minusFlag && !o.value ? "-" : "") + V(l.item.score), 1),
2610
2610
  o.value ? (s(), U(ye, {
2611
2611
  key: 0,
2612
2612
  class: "px-0 py-0 -translate-y-[1px]",
2613
- name: a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2613
+ name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2614
2614
  width: 1.2
2615
2615
  }, null, 8, ["name"])) : (s(), d("span", nn, "分"))
2616
2616
  ])) : D("", !0)
@@ -2624,7 +2624,7 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2624
2624
  },
2625
2625
  setup(e) {
2626
2626
  const t = e;
2627
- return (o, a) => (s(), d(E, null, [
2627
+ return (o, l) => (s(), d(E, null, [
2628
2628
  f("div", {
2629
2629
  class: "flex-1 border-b self-stretch red_sheet",
2630
2630
  style: Y({ height: `${20 + o.item.style[x(y)[t.layout.mode].fill_e]}px` }),
@@ -2651,7 +2651,7 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
2651
2651
  },
2652
2652
  setup(e) {
2653
2653
  return (t, o) => (s(), d("div", {
2654
- class: ae(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
2654
+ class: te(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
2655
2655
  }, [
2656
2656
  t.item.chunk ? D("", !0) : (s(), d("div", {
2657
2657
  key: 0,
@@ -2660,13 +2660,13 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
2660
2660
  }, [
2661
2661
  it(t.$slots, "default"),
2662
2662
  f("div", mn, [
2663
- K(tt, {
2663
+ j(tt, {
2664
2664
  item: t.item,
2665
2665
  layout: t.layout
2666
2666
  }, null, 8, ["item", "layout"])
2667
2667
  ])
2668
2668
  ], 8, pn)),
2669
- K(Ne, {
2669
+ j(Ae, {
2670
2670
  "data-area": t.item.id,
2671
2671
  data: t.item.answerArea
2672
2672
  }, null, 8, ["data-area", "data"])
@@ -2685,7 +2685,7 @@ const gn = /* @__PURE__ */ de(_n, [["render", fn]]), bn = /* @__PURE__ */ f("div
2685
2685
  setup(e) {
2686
2686
  return (t, o) => (s(), d(E, null, [
2687
2687
  bn,
2688
- K(tt, {
2688
+ j(tt, {
2689
2689
  item: t.item,
2690
2690
  layout: t.layout
2691
2691
  }, null, 8, ["item", "layout"])
@@ -2718,7 +2718,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2718
2718
  layout: {}
2719
2719
  },
2720
2720
  setup(e) {
2721
- const t = e, o = G(0), a = G({}), n = G(), r = G(), l = G([]), i = A(() => {
2721
+ const t = e, o = G(0), l = G({}), n = G(), r = G(), a = G([]), i = A(() => {
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, O.value.length, 0);
2723
2723
  return h ? Math.ceil(h / (o.value || h)) : 0;
2724
2724
  }), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), u = A(() => ({
@@ -2733,14 +2733,14 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2733
2733
  if (!n.value)
2734
2734
  return;
2735
2735
  const L = n.value.getBoundingClientRect(), W = r.value[0].getBoundingClientRect();
2736
- a.value = {
2736
+ l.value = {
2737
2737
  left: `${W.left - L.left}px`,
2738
2738
  top: `${W.top - L.top}px`
2739
2739
  };
2740
2740
  }, 20);
2741
2741
  });
2742
- const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Z = Math.floor(h / F), te = Math.round(Z / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
2743
- l.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Z) - 1 || 0).keys()].map((L) => (L + 1) * te).concat(h / F < 2 ? F : h).filter((L) => L);
2742
+ const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Z = Math.floor(h / F), oe = Math.round(Z / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
2743
+ a.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Z) - 1 || 0).keys()].map((L) => (L + 1) * oe).concat(h / F < 2 ? F : h).filter((L) => L);
2744
2744
  }), (h, F) => (s(), d("div", {
2745
2745
  class: "w-full relative min-h-[10rem]",
2746
2746
  ref_key: "view",
@@ -2754,13 +2754,13 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2754
2754
  }, [
2755
2755
  it(h.$slots, "default"),
2756
2756
  f("div", On, [
2757
- K(tt, {
2757
+ j(tt, {
2758
2758
  item: h.item,
2759
2759
  layout: h.layout
2760
2760
  }, null, 8, ["item", "layout"])
2761
2761
  ])
2762
2762
  ], 8, Bn)),
2763
- h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(Ne, {
2763
+ h.item.beforeArt && !h.item.startAnswerLen ? (s(), U(Ae, {
2764
2764
  key: 1,
2765
2765
  data: h.item.beforeArt,
2766
2766
  "data-bart": h.item.id,
@@ -2770,24 +2770,24 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2770
2770
  key: 2,
2771
2771
  "data-block": x(Ee),
2772
2772
  "data-guide": h.item.id,
2773
- class: ae(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2774
- style: Y({ ...a.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
2773
+ class: te(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2774
+ style: Y({ ...l.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
2775
2775
  }, V(h.item.beforeGuide), 15, zn)) : D("", !0),
2776
- (s(!0), d(E, null, X(i.value, (Z, te) => (s(), d("p", {
2776
+ (s(!0), d(E, null, X(i.value, (Z, oe) => (s(), d("p", {
2777
2777
  ref_for: !0,
2778
2778
  ref_key: "line",
2779
2779
  ref: r,
2780
- class: ae(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2780
+ class: te(["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
- "data-size": h.item.startAnswerLen + (te + 1) * o.value,
2782
+ "data-size": h.item.startAnswerLen + (oe + 1) * o.value,
2783
2783
  style: Y(u.value)
2784
2784
  }, [
2785
2785
  h.item.artBlock ? (s(!0), d(E, { key: 0 }, X(o.value, (L, W) => (s(), d("span", {
2786
- class: ae([O.value[te * o.value + W] && "flex items-center justify-center"]),
2786
+ class: te([O.value[oe * o.value + W] && "flex items-center justify-center"]),
2787
2787
  style: Y(m.value)
2788
- }, V(O.value[te * o.value + W]), 7))), 256)) : D("", !0),
2789
- (s(!0), d(E, null, X(l.value, (L) => (s(), d(E, null, [
2790
- h.item.startAnswerLen + te * o.value < L && h.item.startAnswerLen + (te + 1) * o.value >= L ? (s(), d("span", {
2788
+ }, V(O.value[oe * o.value + W]), 7))), 256)) : D("", !0),
2789
+ (s(!0), d(E, null, X(a.value, (L) => (s(), d(E, null, [
2790
+ h.item.startAnswerLen + oe * o.value < L && h.item.startAnswerLen + (oe + 1) * o.value >= L ? (s(), d("span", {
2791
2791
  key: 0,
2792
2792
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2793
2793
  style: Y({ left: `${(L - h.item.startAnswerLen) % o.value * c.value}px` }),
@@ -2795,7 +2795,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2795
2795
  }, V(L), 13, Rn)) : D("", !0)
2796
2796
  ], 64))), 256))
2797
2797
  ], 14, Hn))), 256)),
2798
- h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(Ne, {
2798
+ h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (s(), U(Ae, {
2799
2799
  key: 3,
2800
2800
  data: h.item.afterArt,
2801
2801
  "data-aart": h.item.id,
@@ -2811,17 +2811,17 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2811
2811
  },
2812
2812
  emits: ["change"],
2813
2813
  setup(e, { emit: t }) {
2814
- return (o, a) => (s(), d("div", {
2814
+ return (o, l) => (s(), d("div", {
2815
2815
  class: "px-2 py-3 w-full border border-dashed rounded-lg",
2816
- "data-block": x(dt)
2816
+ "data-block": x(ut)
2817
2817
  }, [
2818
- K(Ne, {
2818
+ j(Ae, {
2819
2819
  "data-content": o.item.id,
2820
2820
  data: o.item.content
2821
2821
  }, null, 8, ["data-content", "data"])
2822
2822
  ], 8, Gn));
2823
2823
  }
2824
- }), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, Kn = { key: 2 }, jn = {
2824
+ }), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, jn = { key: 2 }, Kn = {
2825
2825
  key: 3,
2826
2826
  class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
2827
2827
  }, Vn = /* @__PURE__ */ J({
@@ -2832,17 +2832,17 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2832
2832
  width: {}
2833
2833
  },
2834
2834
  setup(e) {
2835
- const t = e, o = A(() => (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((l, i) => i === r.length - 1 ? l : ""))), a = A(() => t.width ? `${t.width}em` : "");
2835
+ const t = e, o = A(() => (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((a, i) => i === r.length - 1 ? a : ""))), l = A(() => t.width ? `${t.width}em` : "");
2836
2836
  return (n, r) => (s(), d("span", {
2837
- class: ae(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2838
- style: Y({ width: a.value }),
2837
+ class: te(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2838
+ style: Y({ width: l.value }),
2839
2839
  "data-block": x(Ee)
2840
2840
  }, [
2841
- (s(!0), d(E, null, X(o.value, (l, i) => (s(), d(E, null, [
2841
+ (s(!0), d(E, null, X(o.value, (a, i) => (s(), d(E, null, [
2842
2842
  i ? (s(), d("span", Qn, " - ")) : D("", !0),
2843
- l[0] ? (s(), d("span", Un, V(l[0]), 1)) : D("", !0),
2844
- l[1] ? (s(), d("span", Kn, "(" + V(l[1]) + ")", 1)) : D("", !0),
2845
- l[2] ? (s(), d("span", jn, V(l[2]), 1)) : D("", !0)
2843
+ a[0] ? (s(), d("span", Un, V(a[0]), 1)) : D("", !0),
2844
+ a[1] ? (s(), d("span", jn, "(" + V(a[1]) + ")", 1)) : D("", !0),
2845
+ a[2] ? (s(), d("span", Kn, V(a[2]), 1)) : D("", !0)
2846
2846
  ], 64))), 256))
2847
2847
  ], 14, qn));
2848
2848
  }
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2894
2894
  dbclick: null
2895
2895
  },
2896
2896
  setup(e, { emit: t }) {
2897
- const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", a = Object.values(Ft), n = G(""), r = A(() => {
2897
+ const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Ft), n = G(""), r = A(() => {
2898
2898
  const _ = o ? {
2899
2899
  choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
2900
2900
  fillSheet: [p.fill, p.fill_english]
@@ -2903,11 +2903,11 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2903
2903
  fill: [p.fill, p.fill_english]
2904
2904
  };
2905
2905
  return Object.keys(p).reduce((C, v) => ({ ...C, [p[v]]: Object.keys(_).find((z) => _[z].includes(p[v])) || `${v}${o}` }), {});
2906
- }), l = A(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), i = A(() => {
2906
+ }), a = A(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), i = A(() => {
2907
2907
  let _ = [];
2908
2908
  return e.data.children.forEach((C) => {
2909
2909
  let v = _[_.length - 1];
2910
- (C.polymerId || a.includes(e.data.problemType)) && a.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !== I.choice_1 || C.style[y[e.layout.mode].choice_b] === I.portrait) ? (!v || v.type !== "polymer" || v.polymerId !== C.polymerId) && (_.push({
2910
+ (C.polymerId || l.includes(e.data.problemType)) && l.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !== I.choice_1 || C.style[y[e.layout.mode].choice_b] === I.portrait) ? (!v || v.type !== "polymer" || v.polymerId !== C.polymerId) && (_.push({
2911
2911
  type: "polymer",
2912
2912
  problemType: C.problemType,
2913
2913
  polymerId: C.polymerId,
@@ -2940,7 +2940,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2940
2940
  C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
2941
2941
  }), _;
2942
2942
  }), u = A(() => {
2943
- if (a.includes(e.data.problemType)) {
2943
+ if (l.includes(e.data.problemType)) {
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
@@ -2955,7 +2955,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2955
2955
  Gps_cls: k,
2956
2956
  hoverActive: n,
2957
2957
  ModuleTag: o,
2958
- ChoiceType: l,
2958
+ ChoiceType: a,
2959
2959
  GroupData: i,
2960
2960
  PolymerData: c,
2961
2961
  SubWidthInfo: u,
@@ -2990,7 +2990,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2990
2990
  },
2991
2991
  ComputPolymerItemStyle: (_, C) => {
2992
2992
  var v;
2993
- if (a.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === I.choice_2) {
2993
+ if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === I.choice_2) {
2994
2994
  const z = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((v = _.children[0]) == null ? void 0 : v.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (z * _.style[y[e.layout.mode].choice_c] + 10)), me = (e.width - z * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
2995
2995
  if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
2996
2996
  return {
@@ -3004,9 +3004,9 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
3004
3004
  let v = {};
3005
3005
  if (!o)
3006
3006
  return v;
3007
- if (a.includes(_.problemType)) {
3007
+ if (l.includes(_.problemType)) {
3008
3008
  let B = {};
3009
- if (Object.values(Lt).includes(e.data.problemType)) {
3009
+ if (Object.values(rt).includes(e.data.problemType)) {
3010
3010
  const me = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((z = e.data.children[0]) == null ? void 0 : z.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / me), e.data.style[y[e.layout.mode].choice_d] || 10);
3011
3011
  B = C % he ? { minWidth: `${me}px`, marginLeft: `${(e.width - me * he) / (he - 1) - 5}px` } : { minWidth: `${me}px` };
3012
3012
  }
@@ -3025,7 +3025,7 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
3025
3025
  return v;
3026
3026
  },
3027
3027
  ComputBlock: (_) => {
3028
- const C = [...a, p.fill, p.fill_english];
3028
+ const C = [...l, p.fill, p.fill_english];
3029
3029
  if (o && (C.includes(_.problemType) || typeof _.groupIndex == "number"))
3030
3030
  return ke;
3031
3031
  },
@@ -3052,81 +3052,81 @@ const An = /* @__PURE__ */ de(Pn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
3052
3052
  };
3053
3053
  }
3054
3054
  }, 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 };
3055
- function os(e, t, o, a, n, r) {
3056
- const l = Ht("Sub");
3057
- return s(!0), d(E, null, X(a.GroupData, (i) => (s(), d(E, null, [
3055
+ function os(e, t, o, l, n, r) {
3056
+ const a = Ht("Sub");
3057
+ return s(!0), d(E, null, X(l.GroupData, (i) => (s(), d(E, null, [
3058
3058
  i.type === "polymer" ? (s(), d("div", {
3059
3059
  key: 0,
3060
- "data-block": a.ComputBlock(i),
3061
- class: ae([...a.ComputPolymerCls(i)]),
3062
- style: Y(a.ComputPolymerStyle(i))
3060
+ "data-block": l.ComputBlock(i),
3061
+ class: te([...l.ComputPolymerCls(i)]),
3062
+ style: Y(l.ComputPolymerStyle(i))
3063
3063
  }, [
3064
3064
  (s(!0), d(E, null, X(i.children, (c, u) => {
3065
3065
  var m;
3066
3066
  return s(), d("div", {
3067
- class: ae(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3068
- style: Y(a.ComputPolymerItemStyle(c, u)),
3067
+ class: te(["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", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3068
+ style: Y(l.ComputPolymerItemStyle(c, u)),
3069
3069
  "data-tag": c.__tag__,
3070
- "data-block": a.ComputBlock(c),
3071
- "data-xine": a.Gps_cls.item + c._sub,
3072
- onMouseenter: (O) => a.handleHoverIn(c),
3073
- onMouseleave: (O) => a.handleHoverOut(c)
3070
+ "data-block": l.ComputBlock(c),
3071
+ "data-xine": l.Gps_cls.item + c._sub,
3072
+ onMouseenter: (O) => l.handleHoverIn(c),
3073
+ onMouseleave: (O) => l.handleHoverOut(c)
3074
3074
  }, [
3075
- c.problemType ? (s(), U(l, {
3075
+ c.problemType ? (s(), U(a, {
3076
3076
  key: 0,
3077
3077
  sub: c.sub,
3078
- isFull: !!a.ModuleTag,
3079
- width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0,
3080
- class: ae(["sub_item", a.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
3078
+ isFull: !!l.ModuleTag,
3079
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0,
3080
+ class: te(["sub_item", l.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
3081
3081
  }, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
3082
- (s(), U(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), null, 16))
3082
+ (s(), U(yt(l.ComputName(c)), _t(ft({ item: c, layout: o.layout, ...l.ComputPayload(c, u) })), null, 16))
3083
3083
  ], 46, Zn);
3084
3084
  }), 256))
3085
3085
  ], 14, Jn)) : (s(!0), d(E, { key: 1 }, X(i.children, (c, u) => {
3086
3086
  var m;
3087
3087
  return s(), d(E, null, [
3088
3088
  f("div", {
3089
- class: ae(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3090
- style: Y(a.ComputStyle(c, u)),
3089
+ class: te(["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", ((m = o.target.value) == null ? void 0 : m.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3090
+ style: Y(l.ComputStyle(c, u)),
3091
3091
  "data-tag": c.__tag__,
3092
- "data-block": a.ComputBlock(c),
3093
- "data-xine": a.Gps_cls.item + c._sub,
3094
- onClick: (O) => a.handleClick(O, c),
3095
- onDblclick: (O) => a.handleDblClick(O, c),
3096
- onMouseenter: (O) => a.handleHoverIn(c),
3097
- onMouseleave: (O) => a.handleHoverOut(c)
3092
+ "data-block": l.ComputBlock(c),
3093
+ "data-xine": l.Gps_cls.item + c._sub,
3094
+ onClick: (O) => l.handleClick(O, c),
3095
+ onDblclick: (O) => l.handleDblClick(O, c),
3096
+ onMouseenter: (O) => l.handleHoverIn(c),
3097
+ onMouseleave: (O) => l.handleHoverOut(c)
3098
3098
  }, [
3099
- c.problemType && !a.ComputAbs(c) ? (s(), U(l, {
3099
+ c.problemType && !l.ComputAbs(c) ? (s(), U(a, {
3100
3100
  key: 0,
3101
3101
  sub: c.sub,
3102
- isFull: !!a.ModuleTag,
3103
- width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
3102
+ isFull: !!l.ModuleTag,
3103
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
3104
3104
  }, null, 8, ["sub", "isFull", "width"])) : D("", !0),
3105
- (s(), U(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), {
3106
- default: It(() => [
3107
- K(l, {
3105
+ (s(), U(yt(l.ComputName(c)), _t(ft({ item: c, layout: o.layout, ...l.ComputPayload(c, u) })), {
3106
+ default: Lt(() => [
3107
+ j(a, {
3108
3108
  sub: c.sub,
3109
- isFull: !!a.ModuleTag,
3110
- width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
3109
+ isFull: !!l.ModuleTag,
3110
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
3111
3111
  }, null, 8, ["sub", "isFull", "width"])
3112
3112
  ]),
3113
3113
  _: 2
3114
3114
  }, 1040))
3115
3115
  ], 46, es),
3116
- c.polymerId && a.PolymerData[c.polymerId][a.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) : D("", !0)
3116
+ c.polymerId && l.PolymerData[c.polymerId][l.PolymerData[c.polymerId].length - 1] === c.id ? (s(), d("div", ts)) : D("", !0)
3117
3117
  ], 64);
3118
3118
  }), 256))
3119
3119
  ], 64))), 256);
3120
3120
  }
3121
- const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, o) => {
3122
- const a = N(se(`${k.item}${e._sub}`, t));
3123
- return !(a.top >= o.top + o.height || a.top + a.height < o.top);
3121
+ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as = 10, N = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, o) => {
3122
+ const l = N(se(`${k.item}${e._sub}`, t));
3123
+ return !(l.top >= o.top + o.height || l.top + l.height < o.top);
3124
3124
  }, ce = (e, t, o = !1) => !e || !t ? null : {
3125
3125
  x: e.x - t.x,
3126
3126
  y: e.y - t.y + (o ? 1 : 0),
3127
3127
  width: e.width,
3128
3128
  height: e.height - (o ? 2 : 0)
3129
- }, Pe = (e, t, o, a = !1, n = !1) => {
3129
+ }, Pe = (e, t, o, l = !1, n = !1) => {
3130
3130
  if (!e)
3131
3131
  return {
3132
3132
  x: 0,
@@ -3134,41 +3134,41 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3134
3134
  width: 0,
3135
3135
  height: 0
3136
3136
  };
3137
- const r = N(e), l = 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);
3138
- return l > 5 ? {
3137
+ const r = N(e), a = 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);
3138
+ return a > 5 ? {
3139
3139
  x: r.x - o.x,
3140
- y: Math.max(r.y, t.y) + (a ? 1 : 0) - o.y,
3140
+ y: Math.max(r.y, t.y) + (l ? 1 : 0) - o.y,
3141
3141
  width: r.width,
3142
- height: l - (a ? 2 : 0)
3142
+ height: a - (l ? 2 : 0)
3143
3143
  } : null;
3144
3144
  }, ne = (e, t = !1) => {
3145
3145
  if (!e)
3146
3146
  return null;
3147
- const o = t ? Nt : 0, a = e || { x: 0, y: 0, width: 0, height: 0 };
3147
+ const o = t ? Nt : 0, l = e || { x: 0, y: 0, width: 0, height: 0 };
3148
3148
  return {
3149
- x: Math.round(a.x * Fe - o),
3150
- y: Math.round(a.y * Fe - o),
3151
- width: Math.round(a.width * Fe + o * 2),
3152
- height: Math.round(a.height * Fe + o * 2)
3149
+ x: Math.round(l.x * Fe - o),
3150
+ y: Math.round(l.y * Fe - o),
3151
+ width: Math.round(l.width * Fe + o * 2),
3152
+ height: Math.round(l.height * Fe + o * 2)
3153
3153
  };
3154
3154
  }, Bt = (e, t = k.en_num) => {
3155
3155
  const o = se(t);
3156
3156
  if (!o)
3157
3157
  return null;
3158
- const a = {
3158
+ const l = {
3159
3159
  // area: GetPosition(el, config.pageDom[0]),
3160
3160
  area: ce(N(o), N(e.pageDom[0])),
3161
3161
  list: Te(k.en_num_group, o).map((n) => Te(k.en_num_item, n).map((r) => ce(N(r), N(e.pageDom[0]), !0)))
3162
3162
  };
3163
3163
  return {
3164
3164
  choiceGridSequenceNOList: [...Array(10).keys()],
3165
- yRowOffset: Math.round((a.list[1][0].y - a.list[0][0].y - a.list[0][0].height) * Fe),
3166
- firstChoicePosition: ne(a.list[0][0]),
3165
+ yRowOffset: Math.round((l.list[1][0].y - l.list[0][0].y - l.list[0][0].height) * Fe),
3166
+ firstChoicePosition: ne(l.list[0][0]),
3167
3167
  crosswised: !0,
3168
- choiceQuestionPosition: ne(a.area),
3169
- choiceQuestionCount: a.list.length,
3170
- xColOffset: Math.round((a.list[0][1].x - a.list[0][0].x - a.list[0][0].width) * Fe),
3171
- questionNOList: [...Array(a.list.length).keys()].map((n, r) => r + 1)
3168
+ choiceQuestionPosition: ne(l.area),
3169
+ choiceQuestionCount: l.list.length,
3170
+ xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
3171
+ questionNOList: [...Array(l.list.length).keys()].map((n, r) => r + 1)
3172
3172
  };
3173
3173
  }, ns = (e) => ({
3174
3174
  cardSizeType: po[e.layout.paper],
@@ -3178,13 +3178,13 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3178
3178
  paperWidth: Math.round(g[e.layout.paper].width * Fe),
3179
3179
  paperHeight: Math.round(g[e.layout.paper].height * Fe)
3180
3180
  }), ss = (e) => {
3181
- const t = N(e.pageDom[0]), o = N(e.pageDom[1]), a = (n) => {
3182
- var l;
3181
+ const t = N(e.pageDom[0]), o = N(e.pageDom[1]), l = (n) => {
3182
+ var a;
3183
3183
  const r = e.layout.backColumn > 2 ? {
3184
3184
  trdLeftTopPos: ne(ce(N(Te(`${k.point}t`, e.pageDom[n])[1]), N(e.pageDom[n]))),
3185
3185
  trdLeftBottomPos: ne(ce(N(Te(`${k.point}b`, e.pageDom[n])[1]), N(e.pageDom[n])))
3186
3186
  } : {};
3187
- return (l = ze.find((i) => i.code === e.layout.paper)) != null && l.isMultCol ? {
3187
+ return (a = Oe.find((i) => i.code === e.layout.paper)) != null && a.isMultCol ? {
3188
3188
  secLeftTopPos: ne(ce(N(Te(`${k.point}t`, e.pageDom[n])[0]), N(e.pageDom[n]))),
3189
3189
  secLeftBottomPos: ne(ce(N(Te(`${k.point}b`, e.pageDom[n])[0]), N(e.pageDom[n]))),
3190
3190
  ...r
@@ -3205,14 +3205,14 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3205
3205
  ne(ce(N(se(`${k.point}l`, e.pageDom[1])), o)),
3206
3206
  ne(ce(N(se(`${k.point}r`, e.pageDom[1])), o))
3207
3207
  ] : null,
3208
- auxAnchorInfo: a(0),
3209
- auxAnchorInfo2: e.pageDom[1] ? a(1) : null
3208
+ auxAnchorInfo: l(0),
3209
+ auxAnchorInfo2: e.pageDom[1] ? l(1) : null
3210
3210
  };
3211
3211
  }, is = (e) => {
3212
3212
  let t = 10;
3213
3213
  if (e.pageDom[1]) {
3214
- const a = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3215
- t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - a.left - a.width;
3214
+ const l = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3215
+ t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
3216
3216
  }
3217
3217
  let o = ce(N(se(k.page, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]));
3218
3218
  return o = { ...o, y: o.y % (g[e.layout.paper].height + (e.pageMargin || 0)) }, [
@@ -3226,7 +3226,7 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3226
3226
  // 页码点区块第一个页码点的位置,部分需动态获取
3227
3227
  firstChoicePosition: ne(ce(N(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), N(e.pageDom[e.pageTotal - 1]))),
3228
3228
  // 页码点最大值,展开为数组
3229
- choiceGridSequenceNOList: ct.filter((a, n) => n < e.pageTotal),
3229
+ choiceGridSequenceNOList: dt.filter((l, n) => n < e.pageTotal),
3230
3230
  // 排列方向
3231
3231
  crosswised: !0,
3232
3232
  // 两个页码点之间的间距,纵排此项赋值
@@ -3267,7 +3267,7 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3267
3267
  id: "0",
3268
3268
  problemType: p.slove,
3269
3269
  position: ce(N(t), N(e.pageDom[0])),
3270
- scoreList: o.map((a, n) => ({
3270
+ scoreList: o.map((l, n) => ({
3271
3271
  position: ce(N(o[n]), N(e.pageDom[0])),
3272
3272
  itemPosition: {
3273
3273
  width: o[n].offsetWidth
@@ -3276,18 +3276,18 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3276
3276
  }))
3277
3277
  };
3278
3278
  }, us = (e, t) => {
3279
- const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], a = as + Nt, n = (r) => parseFloat(r.toFixed(2));
3279
+ const o = [p.slove, p.art, p.synthesis, p.fill, p.fill_english, p.mix], l = as + Nt, n = (r) => parseFloat(r.toFixed(2));
3280
3280
  return t.flat().filter((r) => o.includes(r.problemType) && r.colIndex < 2).map((r) => {
3281
3281
  switch (r.problemType) {
3282
3282
  case p.fill:
3283
3283
  case p.fill_english:
3284
- return e.layout.notHandReadFlag && r.isHiddenContent ? [] : r.children.map((l) => {
3285
- const i = l.scorePosition;
3284
+ return e.layout.notHandReadFlag && r.isHiddenContent ? [] : r.children.map((a) => {
3285
+ const i = a.scorePosition;
3286
3286
  return {
3287
- sub: l.id,
3287
+ sub: a.id,
3288
3288
  position: {
3289
- x: n(i.x - l.position.x),
3290
- y: n(i.y - l.position.y) + a * (r.colIndex - 1),
3289
+ x: n(i.x - a.position.x),
3290
+ y: n(i.y - a.position.y) + l * (r.colIndex - 1),
3291
3291
  width: i.width,
3292
3292
  height: i.height
3293
3293
  }
@@ -3299,37 +3299,37 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3299
3299
  sub: r.id,
3300
3300
  position: {
3301
3301
  x: n(r.scoreList[0].position.x - r.position.x),
3302
- y: n(r.scoreList[0].position.y - r.position.y) + a * (r.colIndex - 1),
3303
- width: r.scoreList.map((l) => l.position.width).reduce((l, i) => l + i, 0),
3302
+ y: n(r.scoreList[0].position.y - r.position.y) + l * (r.colIndex - 1),
3303
+ width: r.scoreList.map((a) => a.position.width).reduce((a, i) => a + i, 0),
3304
3304
  height: r.scoreList[0].position.height
3305
3305
  }
3306
3306
  }];
3307
3307
  case p.mix:
3308
- return e.notHandReadFlag && r.isHiddenContent ? [] : (r.children || []).filter((l) => [p.fill, p.fill_english, p.easy_slove].includes(l.problemType)).map((l) => [p.easy_slove].includes(l.problemType) ? {
3309
- sub: l.id,
3308
+ return e.notHandReadFlag && r.isHiddenContent ? [] : (r.children || []).filter((a) => [p.fill, p.fill_english, p.easy_slove].includes(a.problemType)).map((a) => [p.easy_slove].includes(a.problemType) ? {
3309
+ sub: a.id,
3310
3310
  position: {
3311
- x: n(l.scoreList[0].position.x - (l.isHiddenContent ? l.position.x : r.position.x)),
3312
- y: n(l.scoreList[0].position.y - (l.isHiddenContent ? l.position.y : r.position.y)) + a * (r.colIndex - 1),
3313
- width: l.scoreList.map((i) => i.position.width).reduce((i, c) => i + c, 0),
3314
- height: l.position.height
3311
+ x: n(a.scoreList[0].position.x - (a.isHiddenContent ? a.position.x : r.position.x)),
3312
+ y: n(a.scoreList[0].position.y - (a.isHiddenContent ? a.position.y : r.position.y)) + l * (r.colIndex - 1),
3313
+ width: a.scoreList.map((i) => i.position.width).reduce((i, c) => i + c, 0),
3314
+ height: a.position.height
3315
3315
  }
3316
3316
  } : {
3317
- sub: l.id,
3317
+ sub: a.id,
3318
3318
  position: {
3319
- x: n(l.scorePosition.x - (l.isHiddenContent ? l.rawPosition.x : r.position.x)),
3320
- y: n(l.scorePosition.y - (l.isHiddenContent ? l.rawPosition.y : r.position.y)) + a * (r.colIndex - 1),
3321
- width: l.scorePosition.width,
3322
- height: l.scorePosition.height
3319
+ x: n(a.scorePosition.x - (a.isHiddenContent ? a.rawPosition.x : r.position.x)),
3320
+ y: n(a.scorePosition.y - (a.isHiddenContent ? a.rawPosition.y : r.position.y)) + l * (r.colIndex - 1),
3321
+ width: a.scorePosition.width,
3322
+ height: a.scorePosition.height
3323
3323
  }
3324
3324
  });
3325
3325
  }
3326
3326
  }).flat();
3327
3327
  }, hs = (e, t) => {
3328
- let o = 0, a = {};
3328
+ let o = 0, l = {};
3329
3329
  return [...Array(e.pageDom.length).keys()].map((n) => {
3330
3330
  const r = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
3331
- return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((l, i) => r + i < t.length).map((l, i) => {
3332
- const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], F = N(h), Z = t[r + i].data.map((L) => L.children.filter((W) => W.problemType)).flat(), te = t[r + i].data.filter((L) => [ve.one_choice, ve.another_choice].includes(L.problemType) && L.children.length).map((L) => {
3331
+ return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((a, i) => r + i < t.length).map((a, i) => {
3332
+ const c = e.pageDom[n], u = N(c), m = e.colDom[r + i], O = N(m), h = e.colViewDom[r + i], F = N(h), Z = t[r + i].data.map((L) => L.children.filter((W) => W.problemType)).flat(), oe = t[r + i].data.filter((L) => [ve.one_choice, ve.another_choice].includes(L.problemType) && L.children.length).map((L) => {
3333
3333
  const W = se(`${k.choice}${L.id}`, m);
3334
3334
  return W ? {
3335
3335
  id: `${++o}`,
@@ -3345,8 +3345,8 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3345
3345
  }).filter((L) => L.position);
3346
3346
  return Z.filter((L) => ls(L, m, O)).map((L, W, w) => {
3347
3347
  let M = {};
3348
- a[L._sub] ? a[L._sub] += 1 : a[L._sub] = 1;
3349
- const j = se(`${k.item}${L._sub}`, m);
3348
+ l[L._sub] ? l[L._sub] += 1 : l[L._sub] = 1;
3349
+ const K = se(`${k.item}${L._sub}`, m);
3350
3350
  switch (L.problemType) {
3351
3351
  case p.choice:
3352
3352
  case p.choice_english:
@@ -3357,7 +3357,7 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3357
3357
  isColumn: L.style[y[e.layout.mode].choice_a] !== I.choice_2,
3358
3358
  optList: L.optList.map((v, z) => ({
3359
3359
  id: `${L._sub}.${z + 1}`,
3360
- position: Pe(se(`${k.fill}${z}`, j), F, u)
3360
+ position: Pe(se(`${k.fill}${z}`, K), F, u)
3361
3361
  })).filter((v) => v.position)
3362
3362
  };
3363
3363
  break;
@@ -3365,20 +3365,20 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3365
3365
  M = {
3366
3366
  optList: [0, 1].map((v, z) => ({
3367
3367
  id: `${L._sub}.${z}`,
3368
- position: Pe(se(`${k.fill}${z}`, j), F, u)
3368
+ position: Pe(se(`${k.fill}${z}`, K), F, u)
3369
3369
  })).filter((v) => v.position)
3370
3370
  };
3371
3371
  break;
3372
3372
  case p.fill:
3373
3373
  case p.fill_english:
3374
- const H = Te(k.fill, j), _ = Te(k.fill_line, j);
3374
+ const H = Te(k.fill, K), _ = Te(k.fill_line, K);
3375
3375
  M = {
3376
3376
  children: [L.score].flat().map((v, z, B) => ({
3377
3377
  id: B.length > 1 ? `${L._sub}.${z + 1}` : L._sub,
3378
3378
  score: v,
3379
3379
  problemType: L.problemType,
3380
3380
  isHiddenContent: !L.style[y[e.layout.mode].fill_b],
3381
- position: Pe(j, F, u),
3381
+ position: Pe(K, F, u),
3382
3382
  scorePosition: Pe(H[z], F, u),
3383
3383
  answerPosition: Pe(_[z], F, u)
3384
3384
  })).filter((v) => v.position)
@@ -3387,7 +3387,7 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3387
3387
  case p.slove:
3388
3388
  case p.easy_slove:
3389
3389
  case p.art:
3390
- const C = se(k.score, j);
3390
+ const C = se(k.score, K);
3391
3391
  M = {
3392
3392
  scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((v, z) => {
3393
3393
  if (!v)
@@ -3406,26 +3406,26 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3406
3406
  return {
3407
3407
  id: L._sub,
3408
3408
  elId: L.id,
3409
- colIndex: a[L._sub],
3409
+ colIndex: l[L._sub],
3410
3410
  problemType: L.problemType,
3411
- position: Pe(j, F, u, !1, W === w.length - 1 && [p.slove].includes(L.problemType)),
3411
+ position: Pe(K, F, u, !1, W === w.length - 1 && [p.slove].includes(L.problemType)),
3412
3412
  ...M
3413
3413
  };
3414
- }).concat(te).filter((L) => L.position);
3414
+ }).concat(oe).filter((L) => L.position);
3415
3415
  });
3416
3416
  }).map((n) => n.flat());
3417
3417
  }, ps = (e) => {
3418
- const t = (a = e, n = !1) => ({
3418
+ const t = (l = e, n = !1) => ({
3419
3419
  // 块位置
3420
- sectionPosition: ne(a.position, !0),
3420
+ sectionPosition: ne(l.position, !0),
3421
3421
  // 块ID,前端生成,同一道题同一个ID
3422
- sectionID: a.id,
3422
+ sectionID: l.id,
3423
3423
  // 块内序号ID,按切块自增
3424
- secitonSeqID: a.colIndex || 1,
3424
+ secitonSeqID: l.colIndex || 1,
3425
3425
  // 需要保存文件,固定值
3426
3426
  needSavedFile: !!n || [p.mix].includes(e.problemType),
3427
3427
  // 题型
3428
- cuttingSectionQuestionType: mo[a.problemType || e.problemType]
3428
+ cuttingSectionQuestionType: mo[l.problemType || e.problemType]
3429
3429
  });
3430
3430
  let o = {};
3431
3431
  switch (e.problemType) {
@@ -3442,10 +3442,10 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3442
3442
  // 选项是否为横排
3443
3443
  crosswised: e.isColumn,
3444
3444
  // 单个选项的信息数组
3445
- choiceUnitSectionList: e.optList.map((a, n) => ({
3446
- ...t(a, !0),
3447
- choicePosition: ne(a.position),
3448
- choiceResult: [p.decide].includes(e.problemType) ? ho[n] : ct[n]
3445
+ choiceUnitSectionList: e.optList.map((l, n) => ({
3446
+ ...t(l, !0),
3447
+ choicePosition: ne(l.position),
3448
+ choiceResult: [p.decide].includes(e.problemType) ? ho[n] : dt[n]
3449
3449
  }))
3450
3450
  }]
3451
3451
  };
@@ -3458,13 +3458,13 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3458
3458
  // 子题数 最小1 填空题取空数
3459
3459
  unitCount: (e.children || [e]).length,
3460
3460
  // 每个小题的切图块
3461
- singleBlankSectionList: (e.children || [e]).map((a) => ({
3462
- ...t(a, !0),
3463
- answerPosition: ne(a.answerPosition, !0),
3464
- correctFrame: a.scorePosition ? [{
3465
- correctSectionPosition: ne(a.scorePosition, !0),
3466
- firstBlockPostion: ne(a.scorePosition),
3467
- gridScoresList: [a.score].flat(),
3461
+ singleBlankSectionList: (e.children || [e]).map((l) => ({
3462
+ ...t(l, !0),
3463
+ answerPosition: ne(l.answerPosition, !0),
3464
+ correctFrame: l.scorePosition ? [{
3465
+ correctSectionPosition: ne(l.scorePosition, !0),
3466
+ firstBlockPostion: ne(l.scorePosition),
3467
+ gridScoresList: [l.score].flat(),
3468
3468
  lineMeanGetScore: !1,
3469
3469
  weight: 1
3470
3470
  }] : []
@@ -3484,10 +3484,10 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3484
3484
  singleBlankSectionList: [{
3485
3485
  ...t(e, !0),
3486
3486
  answerPosition: null,
3487
- correctFrame: (e.scoreList || []).map((a) => ({
3488
- correctSectionPosition: ne(a.position, !0),
3489
- firstBlockPostion: ne({ ...a.position, ...a.itemPosition }),
3490
- gridScoresList: [a.score].flat(),
3487
+ correctFrame: (e.scoreList || []).map((l) => ({
3488
+ correctSectionPosition: ne(l.position, !0),
3489
+ firstBlockPostion: ne({ ...l.position, ...l.itemPosition }),
3490
+ gridScoresList: [l.score].flat(),
3491
3491
  lineMeanGetScore: !0,
3492
3492
  weight: 1
3493
3493
  }))
@@ -3510,9 +3510,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3510
3510
  // 选项横排
3511
3511
  crosswised: !0,
3512
3512
  // 单个选项的信息数组
3513
- choiceUnitSectionList: e.optList.map((a, n) => ({
3514
- ...t(a),
3515
- choicePosition: ne(a.position),
3513
+ choiceUnitSectionList: e.optList.map((l, n) => ({
3514
+ ...t(l),
3515
+ choicePosition: ne(l.position),
3516
3516
  choiceResult: (e.baseIndex + n).toString()
3517
3517
  }))
3518
3518
  }]
@@ -3535,14 +3535,14 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3535
3535
  // 固定值
3536
3536
  splitFileList: [],
3537
3537
  // 依据当前页码设置答案
3538
- answerResultList: ct.slice(e.layout.pagePoint === He.right_up ? e.pageTotal - o - 1 : 0, e.layout.pagePoint === He.right_up ? e.pageTotal : o + 1),
3538
+ answerResultList: dt.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - o - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : o + 1),
3539
3539
  // 固定值
3540
3540
  noAnswerTag: !1
3541
3541
  }],
3542
3542
  // 按题切块信息
3543
- cardCuttingSectionList: t[o].map((a) => ps(a)).flat()
3543
+ cardCuttingSectionList: t[o].map((l) => ps(l)).flat()
3544
3544
  })), ys = (e, t) => {
3545
- var a;
3545
+ var l;
3546
3546
  const o = N(e.pageDom[0]);
3547
3547
  return {
3548
3548
  // 正文code
@@ -3592,7 +3592,7 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3592
3592
  layerType: ns(e),
3593
3593
  // 定位点信息
3594
3594
  ...ss(e),
3595
- pottedLineXPos: e.bindWidth ? (a = ne(ce(N(se(k.bind_line, e.pageDom[0])), o))) == null ? void 0 : a.x : 0,
3595
+ pottedLineXPos: e.bindWidth ? (l = ne(ce(N(se(k.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
3596
3596
  // 页码点信息
3597
3597
  pageSideAnchorsList: is(e),
3598
3598
  // 缺考标记
@@ -3601,9 +3601,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3601
3601
  oneFullPageCardList: t
3602
3602
  };
3603
3603
  }, _s = (e) => {
3604
- const { config: t, data: o } = e, a = ds(t), n = hs(t, o);
3605
- a && n[0].unshift(a);
3606
- const r = us(t, n), l = ms(t, n), i = ys(t, l), c = Bt(t, k.en_num_view) || {};
3604
+ const { config: t, data: o } = e, l = ds(t), n = hs(t, o);
3605
+ l && n[0].unshift(l);
3606
+ const r = us(t, n), a = ms(t, n), i = ys(t, a), c = Bt(t, k.en_num_view) || {};
3607
3607
  return {
3608
3608
  engineData: i,
3609
3609
  pageTotal: t.pageTotal,
@@ -3624,9 +3624,9 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3624
3624
  },
3625
3625
  emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
3626
3626
  setup(e, { emit: t }) {
3627
- const o = e, a = G([]);
3628
- Ae(() => [o.ColList, o.ImgData, o.TxtData], () => {
3629
- a.value = [], setTimeout(() => {
3627
+ const o = e, l = G([]);
3628
+ De(() => [o.ColList, o.ImgData, o.TxtData], () => {
3629
+ l.value = [], setTimeout(() => {
3630
3630
  var u;
3631
3631
  o.ColList.forEach((m, O) => {
3632
3632
  m.data.map((h) => h.children).flat().filter((h) => [p.slove, p.art].includes(h.problemType) && !h.chunk).forEach((h) => {
@@ -3635,46 +3635,46 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3635
3635
  if (!F)
3636
3636
  return;
3637
3637
  F.classList.remove("err_lack");
3638
- const Z = window.getComputedStyle(F), te = [...Array.from(F.children)].map((W) => W.offsetWidth).reduce((W, w) => W + w, 0);
3639
- F.offsetWidth - parseFloat(Z.borderLeft) - parseFloat(Z.borderRight) < te && (a.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3638
+ const Z = window.getComputedStyle(F), oe = [...Array.from(F.children)].map((W) => W.offsetWidth).reduce((W, w) => W + w, 0);
3639
+ F.offsetWidth - parseFloat(Z.borderLeft) - parseFloat(Z.borderRight) < oe && (l.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3640
3640
  });
3641
3641
  });
3642
- const l = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
3643
- if (!l)
3642
+ const a = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
3643
+ if (!a)
3644
3644
  return;
3645
3645
  let i = [], c = [];
3646
3646
  o.ImgData.forEach((m) => {
3647
- (m.left + m.width > l.width || m.top + m.height > l.height) && i.push(m);
3647
+ (m.left + m.width > a.width || m.top + m.height > a.height) && i.push(m);
3648
3648
  }), o.TxtData.forEach((m) => {
3649
- (m.left + m.width > l.width || m.top + m.height > l.height) && c.push(m);
3650
- }), i.length && a.value.push({ type: "absImg", value: i, msg: `${i.length}张插入图片溢出`, fn: n }), c.length && a.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: r }), t("changeLayoutStatus", a.value.length ? "error" : "ok");
3649
+ (m.left + m.width > a.width || m.top + m.height > a.height) && c.push(m);
3650
+ }), i.length && l.value.push({ type: "absImg", value: i, msg: `${i.length}张插入图片溢出`, fn: n }), c.length && l.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: r }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
3651
3651
  }, 500);
3652
3652
  });
3653
3653
  const n = () => {
3654
3654
  var i;
3655
- (((i = a.value.find((c) => c.type === "absImg")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsImgItem", c));
3655
+ (((i = l.value.find((c) => c.type === "absImg")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsImgItem", c));
3656
3656
  }, r = () => {
3657
3657
  var i;
3658
- (((i = a.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
3658
+ (((i = l.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
3659
3659
  };
3660
- return (l, i) => (s(), d("div", fs, [
3660
+ return (a, i) => (s(), d("div", fs, [
3661
3661
  f("div", gs, [
3662
3662
  f("div", {
3663
- class: ae(["layt-moni_status", a.value.length ? "layt-moni_err" : "layt-moni_success"])
3663
+ class: te(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
3664
3664
  }, null, 2),
3665
3665
  f("div", {
3666
- class: ae(["layt-moni_info", a.value.length ? "layt-moni_err" : "layt-moni_success"])
3666
+ class: te(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
3667
3667
  }, [
3668
3668
  f("span", bs, [
3669
- K(ye, {
3669
+ j(ye, {
3670
3670
  width: 1.6,
3671
- name: a.value.length ? "wrong" : "right"
3671
+ name: l.value.length ? "wrong" : "right"
3672
3672
  }, null, 8, ["name"])
3673
3673
  ]),
3674
- f("span", vs, "排版" + V(a.value.length ? "异常" : "良好"), 1)
3674
+ f("span", vs, "排版" + V(l.value.length ? "异常" : "良好"), 1)
3675
3675
  ], 2),
3676
- a.value.length ? (s(), d("ul", ws, [
3677
- (s(!0), d(E, null, X(a.value, (c, u) => (s(), d("li", {
3676
+ l.value.length ? (s(), d("ul", ws, [
3677
+ (s(!0), d(E, null, X(l.value, (c, u) => (s(), d("li", {
3678
3678
  key: u,
3679
3679
  class: "layt-moni_err_item"
3680
3680
  }, [
@@ -3690,45 +3690,45 @@ const Ye = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Nt = 4, as =
3690
3690
  ]));
3691
3691
  }
3692
3692
  });
3693
- const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e) => e == null ? void 0 : e.getBoundingClientRect(), $t = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ut].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, ut].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
3693
+ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e) => e == null ? void 0 : e.getBoundingClientRect(), St = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ht].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, ht].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
3694
3694
  const t = e.parentElement, o = document.createElement("span");
3695
- return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ut, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
3696
- }, Ts = (e, t, o, a) => {
3695
+ return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = ht, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
3696
+ }, Ts = (e, t, o, l) => {
3697
3697
  let n = null;
3698
- if (e.dataset.block === dt && !e.dataset.used) {
3698
+ if (e.dataset.block === ut && !e.dataset.used) {
3699
3699
  const r = window.getComputedStyle(e);
3700
3700
  t - parseFloat(r.paddingTop) - parseFloat(r.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
3701
3701
  } else
3702
- e.dataset.block === kt ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${kt}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && a || al.includes(e.tagName.toLowerCase())) && (n = e);
3702
+ e.dataset.block === Ct ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < o - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${Ct}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (n = e);
3703
3703
  return n;
3704
- }, St = (e, t, o) => {
3705
- const a = e.textContent || "", n = a.split("").map((c) => `<span>${c}</span>`).join("");
3704
+ }, Tt = (e, t, o) => {
3705
+ const l = e.textContent || "", n = l.split("").map((c) => `<span>${c}</span>`).join("");
3706
3706
  e.innerHTML = n;
3707
3707
  const r = [...Array.from(e.children)].findIndex((c) => ue(c).top - t + c.offsetHeight > o);
3708
3708
  if (r < 1)
3709
- return e.innerHTML = a, e;
3710
- const l = document.createElement("span");
3711
- l.textContent = a.slice(0, r);
3709
+ return e.innerHTML = l, e;
3710
+ const a = document.createElement("span");
3711
+ a.textContent = l.slice(0, r);
3712
3712
  const i = document.createElement("span");
3713
- return i.textContent = a.slice(r), e.innerHTML = "", e.append(l, i), l;
3713
+ return i.textContent = l.slice(r), e.innerHTML = "", e.append(a, i), a;
3714
3714
  }, st = (e, t, o) => {
3715
- const a = nt("", e.parentElement), n = a.findIndex((l) => l === e);
3716
- let r = a.filter((l, i) => ue(l).top + l.offsetHeight - 1 < ue(e).top || i < n && ue(l).top < ue(e).top).reverse()[0];
3715
+ const l = nt("", e.parentElement), n = l.findIndex((a) => a === e);
3716
+ let r = l.filter((a, i) => ue(a).top + a.offsetHeight - 1 < ue(e).top || i < n && ue(a).top < ue(e).top).reverse()[0];
3717
3717
  return r || (r = Ve(e), ue(r).top + r.offsetHeight - t > o && (r = st(r, t, o))), r;
3718
- }, Tt = (e, t, o, a) => {
3719
- const n = (l, i = o) => {
3720
- var te, L, W;
3721
- const c = l.map((w) => {
3718
+ }, It = (e, t, o, l) => {
3719
+ const n = (a, i = o) => {
3720
+ var oe, L, W;
3721
+ const c = a.map((w) => {
3722
3722
  const M = ue(w);
3723
3723
  return {
3724
3724
  el: w,
3725
3725
  top: M.top - t,
3726
3726
  left: M.left
3727
3727
  };
3728
- }), u = c.filter((w) => w.el.offsetHeight + w.top > i).sort((w, M) => w.top - M.top), m = (te = u.shift()) == null ? void 0 : te.el;
3728
+ }), u = c.filter((w) => w.el.offsetHeight + w.top > i).sort((w, M) => w.top - M.top), m = (oe = u.shift()) == null ? void 0 : oe.el;
3729
3729
  if (!m) {
3730
3730
  const w = document.createElement("div");
3731
- return (L = l[0].parentElement) == null || L.appendChild(w), w.style.height = i - (ue(w).top - t) + "px", w;
3731
+ return (L = a[0].parentElement) == null || L.appendChild(w), w.style.height = i - (ue(w).top - t) + "px", w;
3732
3732
  }
3733
3733
  const O = ue(m), h = O.top - t, F = O.left;
3734
3734
  if (u.filter((w) => w.top < h + m.offsetHeight && w.top + w.el.offsetHeight - 1 > h && (w.left + w.el.offsetWidth - 1 < F || w.left + 1 > F + m.offsetWidth)).length) {
@@ -3737,33 +3737,33 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
3737
3737
  const M = nt(w);
3738
3738
  return n(M, h) || w;
3739
3739
  } else
3740
- return w ? ue(w).top - t + w.offsetHeight > h ? St(w, t, h) : w : st(m.parentElement, t, h);
3740
+ return w ? ue(w).top - t + w.offsetHeight > h ? Tt(w, t, h) : w : st(m.parentElement, t, h);
3741
3741
  } else {
3742
3742
  const w = getComputedStyle(m);
3743
3743
  if (h + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > i)
3744
3744
  return st(m, t, h);
3745
- const M = Ts(m, i - h, i, a);
3745
+ const M = Ts(m, i - h, i, l);
3746
3746
  if (M)
3747
3747
  return Ve(M);
3748
3748
  if (m.children.length) {
3749
- const j = nt(m);
3750
- return n(j, i);
3749
+ const K = nt(m);
3750
+ return n(K, i);
3751
3751
  } else
3752
- return St(m, t, i);
3752
+ return Tt(m, t, i);
3753
3753
  }
3754
3754
  }, r = n([e]);
3755
3755
  return { cut: Ss(r), targetEl: r };
3756
3756
  }, Is = (e) => {
3757
- const { el: t, data: o, column: a, backColumn: n, getColSize: r, change: l } = e;
3757
+ const { el: t, data: o, column: l, backColumn: n, getColSize: r, change: a } = e;
3758
3758
  if (!t || !o.length) {
3759
- l([], !0);
3759
+ a([], !0);
3760
3760
  return;
3761
3761
  }
3762
3762
  console.time("layout");
3763
3763
  const i = ue(t).top;
3764
3764
  let c = {}, u = 0, m = 0;
3765
3765
  const O = (w) => {
3766
- const M = w % (a + n), j = Math.floor(w / (a + n)) * 2 + (M >= a ? 1 : 0), H = r(w, j);
3766
+ const M = w % (l + n), K = Math.floor(w / (l + n)) * 2 + (M >= l ? 1 : 0), H = r(w, K);
3767
3767
  c = {
3768
3768
  top: i,
3769
3769
  width: parseFloat(H.width),
@@ -3777,10 +3777,10 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
3777
3777
  data: [],
3778
3778
  width: c.width,
3779
3779
  height: c.height
3780
- }), l([...h]);
3780
+ }), a([...h]);
3781
3781
  };
3782
3782
  Z();
3783
- const te = (w) => {
3783
+ const oe = (w) => {
3784
3784
  const M = getComputedStyle(w);
3785
3785
  return ue(w).top - c.top + parseFloat(M.borderTop) + parseFloat(M.paddingTop) + parseFloat(M.lineHeight) > h[h.length - 1].height;
3786
3786
  }, L = (w) => {
@@ -3788,32 +3788,32 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
3788
3788
  return ue(w).top + w.offsetHeight - c.top - (w.dataset.block === ke ? 0 : parseFloat(M.paddingBottom) - parseFloat(M.borderBottom)) <= h[h.length - 1].height;
3789
3789
  }, W = (w = JSON.parse(JSON.stringify(o[F] || {}))) => {
3790
3790
  if (F >= o.length || !Object.keys(w).length) {
3791
- l([...h], !0), console.timeEnd("layout"), h = [], u = 0;
3791
+ a([...h], !0), console.timeEnd("layout"), h = [], u = 0;
3792
3792
  return;
3793
3793
  }
3794
- h[h.length - 1].data.push({ ...w }), l([...h]), window.requestAnimationFrame(() => {
3795
- const M = $t(w.__tag__, t), j = !w.isHidden && ue(M);
3794
+ h[h.length - 1].data.push({ ...w }), a([...h]), window.requestAnimationFrame(() => {
3795
+ const M = St(w.__tag__, t), K = !w.isHidden && ue(M);
3796
3796
  let H = null;
3797
3797
  if (m) {
3798
3798
  const _ = M.querySelector(`*[data-hutkey="${m}"]`), C = ue(_);
3799
3799
  h[h.length - 1].top = c.top - C.top, h[h.length - 1].height = c.height - h[h.length - 1].top, m = 0;
3800
3800
  }
3801
- if (j && j.height + j.top - c.top > h[h.length - 1].height)
3801
+ if (K && K.height + K.top - c.top > h[h.length - 1].height)
3802
3802
  if (w.problemType)
3803
3803
  h[h.length - 1].data.pop(), Z(), W({ ...w });
3804
3804
  else if (L(M))
3805
3805
  Z(), F++, W();
3806
- else if (te(M))
3806
+ else if (oe(M))
3807
3807
  h[h.length - 1].data.pop(), Z(), W({ ...w });
3808
3808
  else {
3809
- H = Tt(M, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3809
+ H = It(M, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
3810
3810
  const _ = M.querySelector(`*[data-content="${w.id}"]`);
3811
3811
  h[h.length - 1].height = ue(H.cut).top - c.top, Z(), _ != null && _.contains(H.cut) ? (m = Date.now(), H.cut.dataset.hutkey = m, W({ ...w, content: _.innerHTML })) : (h[h.length - 1].data.pop(), W({ ...w }));
3812
3812
  }
3813
3813
  else {
3814
3814
  let _ = [], C = [];
3815
3815
  w.children.some((v, z) => {
3816
- const B = $t(v.__tag__, t), me = ue(B);
3816
+ const B = St(v.__tag__, t), me = ue(B);
3817
3817
  if (u) {
3818
3818
  const he = B.querySelector(`*[data-cutkey="${u}"]`), ie = ue(he);
3819
3819
  h[h.length - 1].top = c.top - ie.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
@@ -3821,10 +3821,10 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
3821
3821
  if (me.height + me.top - c.top > h[h.length - 1].height) {
3822
3822
  if (L(B))
3823
3823
  _.push(v), C = z < w.children.length - 1 ? w.children.slice(z + 1) : [];
3824
- else if (te(B))
3824
+ else if (oe(B))
3825
3825
  C = w.children.slice(z);
3826
3826
  else {
3827
- H = Tt(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3827
+ H = It(B, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
3828
3828
  const he = B.querySelector(`*[data-content="${v.id}"]`);
3829
3829
  if (B === H.targetEl)
3830
3830
  _.push(v), C = z < w.children.length - 1 ? w.children.slice(z + 1) : [];
@@ -3849,7 +3849,7 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
3849
3849
  const Q = B.querySelector(`*[data-guide="${v.id}"]`), we = ue(Q);
3850
3850
  if (we.height + we.top - c.top > c.height) {
3851
3851
  Q.innerHTML = v.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
3852
- const oe = ue(P).top + P.offsetHeight, re = [...Array.from(Q.children)].findIndex((be) => ue(be).top > oe);
3852
+ const ae = ue(P).top + P.offsetHeight, re = [...Array.from(Q.children)].findIndex((be) => ue(be).top > ae);
3853
3853
  ie.beforeGuide = v.beforeGuide.substring(0, re), v.beforeGuide = v.beforeGuide.substring(re);
3854
3854
  } else
3855
3855
  v.beforeGuide = "";
@@ -3869,16 +3869,16 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), ue = (e)
3869
3869
  return !0;
3870
3870
  } else
3871
3871
  _.push(v);
3872
- }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Z(), W({ ...w, isHidden: !0, children: C })) : (l([...h]), F++, W());
3872
+ }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Z(), W({ ...w, isHidden: !0, children: C })) : (a([...h]), F++, W());
3873
3873
  }
3874
3874
  });
3875
3875
  };
3876
3876
  W();
3877
3877
  }, Ot = window.CKEDITOR;
3878
3878
  Ot.disableAutoInline = !0;
3879
- const ht = `dx${Math.random().toString(32).substring(2)}`;
3879
+ const pt = `dx${Math.random().toString(32).substring(2)}`;
3880
3880
  function Ls(e, t) {
3881
- return Ot[e](ht, {
3881
+ return Ot[e](pt, {
3882
3882
  filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
3883
3883
  uploadUrl: `${t}ckeditor/uploadImg`
3884
3884
  });
@@ -3892,8 +3892,8 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3892
3892
  },
3893
3893
  emits: ["change", "focus", "blur"],
3894
3894
  setup(e, { emit: t }) {
3895
- const o = e, a = Rt("ckeditorOrigin", ""), n = G();
3896
- Ae(() => o.readonly, () => r()), Xe(() => r());
3895
+ const o = e, l = Rt("ckeditorOrigin", ""), n = G();
3896
+ De(() => o.readonly, () => r()), Xe(() => r());
3897
3897
  const r = () => {
3898
3898
  if (window.CKEDITOR) {
3899
3899
  if (o.readonly) {
@@ -3901,7 +3901,7 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3901
3901
  return;
3902
3902
  }
3903
3903
  Je(() => {
3904
- n.value = Ls("inline", a), n.value && n.value.on("instanceReady", (u) => {
3904
+ n.value = Ls("inline", l), n.value && n.value.on("instanceReady", (u) => {
3905
3905
  n.value.setData(o.value);
3906
3906
  });
3907
3907
  });
@@ -3911,7 +3911,7 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3911
3911
  r();
3912
3912
  }, u.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
3913
3913
  }
3914
- }, l = () => {
3914
+ }, a = () => {
3915
3915
  t("blur");
3916
3916
  const u = c(n.value.getData());
3917
3917
  u !== o.value && t("change", u, o.name);
@@ -3929,15 +3929,15 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3929
3929
  if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
3930
3930
  O(F);
3931
3931
  else if (F.nodeType === Node.TEXT_NODE) {
3932
- const te = document.createElement("span");
3933
- te.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (te.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (W) => W.length > 5 ? `<span style="word-break: break-all">${W}</span>` : W)), (Z = F.parentElement) == null || Z.replaceChild(te, F);
3932
+ const oe = document.createElement("span");
3933
+ oe.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (oe.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (W) => W.length > 5 ? `<span style="word-break: break-all">${W}</span>` : W)), (Z = F.parentElement) == null || Z.replaceChild(oe, F);
3934
3934
  }
3935
3935
  });
3936
3936
  };
3937
3937
  return O(), m.innerHTML;
3938
3938
  };
3939
3939
  return (u, m) => (s(), d("div", Fs, [
3940
- o.readonly ? (s(), U(Ne, {
3940
+ o.readonly ? (s(), U(Ae, {
3941
3941
  key: 1,
3942
3942
  data: o.value,
3943
3943
  class: "raw_view"
@@ -3946,42 +3946,42 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3946
3946
  class: "overflow-auto outline-none whitespace-normal editor_view",
3947
3947
  disabled: o.readonly,
3948
3948
  contentEditable: !o.readonly,
3949
- id: x(ht),
3949
+ id: x(pt),
3950
3950
  onFocus: i,
3951
- onBlur: l
3951
+ onBlur: a
3952
3952
  }, null, 40, Es))
3953
3953
  ]));
3954
3954
  }
3955
3955
  });
3956
3956
  const Ps = /* @__PURE__ */ de(Ms, [["__scopeId", "data-v-1398ac85"]]);
3957
- let qe = (e) => {
3957
+ let Ye = (e) => {
3958
3958
  };
3959
3959
  const Ds = {
3960
3960
  updated: function(e, t) {
3961
- document.body.removeEventListener("click", qe), qe = (o) => {
3961
+ document.body.removeEventListener("click", Ye), Ye = (o) => {
3962
3962
  !e.contains(o.target) && t.value && t.value(o);
3963
- }, document.body.addEventListener("click", qe);
3963
+ }, document.body.addEventListener("click", Ye);
3964
3964
  },
3965
3965
  unmounted: () => {
3966
- document.body.removeEventListener("click", qe);
3966
+ document.body.removeEventListener("click", Ye);
3967
3967
  }
3968
3968
  };
3969
3969
  let ot = null;
3970
3970
  const As = {
3971
3971
  mounted: (e, t) => {
3972
- let o = {}, a = !1, n = !1, r = e.offsetParent, l = {}, i = {};
3972
+ let o = {}, l = !1, n = !1, r = e.offsetParent, a = {}, i = {};
3973
3973
  const c = e.querySelector(".move-target") || e;
3974
3974
  c.style.cursor = "move", c.addEventListener("mousedown", (u) => {
3975
- a = !0, n = !!e.dataset.safe, r = e.offsetParent;
3975
+ l = !0, n = !!e.dataset.safe, r = e.offsetParent;
3976
3976
  const m = window.getComputedStyle(e);
3977
- o = { x: u.clientX, y: u.clientY }, l = { x: parseInt(m.left), y: parseInt(m.top) };
3977
+ o = { x: u.clientX, y: u.clientY }, a = { x: parseInt(m.left), y: parseInt(m.top) };
3978
3978
  }), document.addEventListener("mouseup", (u) => {
3979
- a = !1;
3979
+ l = !1;
3980
3980
  }), ot = (u) => {
3981
- if (!a || e.getAttribute("disabled") === "true")
3981
+ if (!l || e.getAttribute("disabled") === "true")
3982
3982
  return;
3983
3983
  u.stopPropagation(), u.preventDefault(), i = { x: u.clientX, y: u.clientY };
3984
- const m = n ? Math.min(Math.max(i.x - o.x + l.x, 0), r.offsetWidth - e.offsetWidth) : i.x - o.x + l.x, O = n ? Math.min(Math.max(i.y - o.y + l.y, 0), r.offsetHeight - e.offsetHeight) : i.y - o.y + l.y;
3984
+ const m = n ? Math.min(Math.max(i.x - o.x + a.x, 0), r.offsetWidth - e.offsetWidth) : i.x - o.x + a.x, O = n ? Math.min(Math.max(i.y - o.y + a.y, 0), r.offsetHeight - e.offsetHeight) : i.y - o.y + a.y;
3985
3985
  e.style.left = `${m}px`, e.style.top = `${O}px`, t.value && typeof t.value == "function" && t.value({ x: m, y: O });
3986
3986
  }, document.addEventListener("mousemove", ot);
3987
3987
  },
@@ -3998,7 +3998,7 @@ const As = {
3998
3998
  },
3999
3999
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4000
4000
  setup(e, { emit: t }) {
4001
- const o = e, a = Ds, n = As, r = [
4001
+ const o = e, l = Ds, n = As, r = [
4002
4002
  { left: "0", top: "0", cursor: "nwse-resize" },
4003
4003
  { left: "50%", top: "0", cursor: "ns-resize" },
4004
4004
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4007,13 +4007,13 @@ const As = {
4007
4007
  { left: "0", top: "100%", cursor: "nesw-resize" },
4008
4008
  { left: "50%", top: "100%", cursor: "ns-resize" },
4009
4009
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4010
- ], l = G({}), i = G(), c = G(0), u = G(0), m = G(), O = G(), h = G({}), F = G(!1), Z = G(), te = G(), L = G(), W = A(() => o.imgData.map((P) => ({
4010
+ ], a = G({}), i = G(), c = G(0), u = G(0), m = G(), O = G(), h = G({}), F = G(!1), Z = G(), oe = G(), L = G(), W = A(() => o.imgData.map((P) => ({
4011
4011
  ...P,
4012
4012
  top: P.top - Math.floor(P.top / (g[o.layout.paper].height + o.pageMargin)) * o.pageMargin
4013
4013
  }))), w = A(() => o.txtData.map((P) => ({
4014
4014
  ...P,
4015
4015
  top: P.top - Math.floor(P.top / (g[o.layout.paper].height + o.pageMargin)) * o.pageMargin
4016
- }))), M = A(() => Z.value ? Z.value.split("-")[0] === "img" ? W.value.find(($) => $.key === Z.value) : w.value.find(($) => $.key === Z.value) : null), j = A(() => M.value ? { [M.value.key]: { ...i.value } } : {});
4016
+ }))), M = A(() => Z.value ? Z.value.split("-")[0] === "img" ? W.value.find(($) => $.key === Z.value) : w.value.find(($) => $.key === Z.value) : null), K = A(() => M.value ? { [M.value.key]: { ...i.value } } : {});
4017
4017
  Xe(() => {
4018
4018
  m.value = document.body.querySelector(".__layout__");
4019
4019
  });
@@ -4035,160 +4035,160 @@ const As = {
4035
4035
  P.stopPropagation(), P.preventDefault(), t("changeAbsImgItem", i.value), m.value.removeEventListener("mousemove", v), m.value.removeEventListener("mouseleave", z), m.value.removeEventListener("mouseup", z);
4036
4036
  }, B = (P, $) => {
4037
4037
  var S;
4038
- P.stopPropagation(), c.value = $, l.value = { x: P.clientX, y: P.clientY, ...M.value }, ((S = M.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? m.value.addEventListener("mousemove", me) : m.value.addEventListener("mousemove", he), m.value.addEventListener("mouseleave", ie), m.value.addEventListener("mouseup", ie);
4038
+ P.stopPropagation(), c.value = $, a.value = { x: P.clientX, y: P.clientY, ...M.value }, ((S = M.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? m.value.addEventListener("mousemove", me) : m.value.addEventListener("mousemove", he), m.value.addEventListener("mouseleave", ie), m.value.addEventListener("mouseup", ie);
4039
4039
  }, me = (P) => {
4040
- const $ = { x: P.clientX - l.value.x, y: P.clientY - l.value.y }, S = { ...M.value }, Q = $.x > $.y ? "width" : "height";
4040
+ const $ = { x: P.clientX - a.value.x, y: P.clientY - a.value.y }, S = { ...M.value }, Q = $.x > $.y ? "width" : "height";
4041
4041
  [
4042
4042
  // 0
4043
4043
  () => {
4044
- const oe = {
4045
- width: l.value.width - $.x,
4046
- height: l.value.width * (1 - $.y / l.value.height)
4044
+ const ae = {
4045
+ width: a.value.width - $.x,
4046
+ height: a.value.width * (1 - $.y / a.value.height)
4047
4047
  }[Q], re = {
4048
- width: l.value.height * (1 - $.x / l.value.width),
4049
- height: l.value.height - $.y
4048
+ width: a.value.height * (1 - $.x / a.value.width),
4049
+ height: a.value.height - $.y
4050
4050
  }[Q];
4051
4051
  i.value = {
4052
4052
  ...S,
4053
- width: oe,
4053
+ width: ae,
4054
4054
  height: re,
4055
- left: l.value.left - (oe - l.value.width),
4056
- top: l.value.top - (re - l.value.height)
4055
+ left: a.value.left - (ae - a.value.width),
4056
+ top: a.value.top - (re - a.value.height)
4057
4057
  };
4058
4058
  },
4059
4059
  // 1
4060
4060
  () => {
4061
- const oe = l.value.width * (1 - $.y / l.value.height), re = l.value.height - $.y;
4061
+ const ae = a.value.width * (1 - $.y / a.value.height), re = a.value.height - $.y;
4062
4062
  i.value = {
4063
4063
  ...S,
4064
- width: oe,
4064
+ width: ae,
4065
4065
  height: re,
4066
- left: l.value.left - (oe - l.value.width) / 2,
4067
- top: l.value.top - (re - l.value.height)
4066
+ left: a.value.left - (ae - a.value.width) / 2,
4067
+ top: a.value.top - (re - a.value.height)
4068
4068
  };
4069
4069
  },
4070
4070
  // 2
4071
4071
  () => {
4072
- const oe = {
4073
- width: l.value.height * (1 + $.x / l.value.width),
4074
- height: l.value.height - $.y
4072
+ const ae = {
4073
+ width: a.value.height * (1 + $.x / a.value.width),
4074
+ height: a.value.height - $.y
4075
4075
  }[Q];
4076
4076
  i.value = {
4077
4077
  ...S,
4078
4078
  width: {
4079
- width: l.value.width + $.x,
4080
- height: l.value.width * (1 - $.y / l.value.height)
4079
+ width: a.value.width + $.x,
4080
+ height: a.value.width * (1 - $.y / a.value.height)
4081
4081
  }[Q],
4082
- height: oe,
4083
- top: l.value.top - (oe - l.value.height)
4082
+ height: ae,
4083
+ top: a.value.top - (ae - a.value.height)
4084
4084
  };
4085
4085
  },
4086
4086
  // 3
4087
4087
  () => {
4088
- const oe = l.value.width - $.x, re = l.value.height * (1 - $.x / l.value.width);
4088
+ const ae = a.value.width - $.x, re = a.value.height * (1 - $.x / a.value.width);
4089
4089
  i.value = {
4090
4090
  ...S,
4091
- width: oe,
4091
+ width: ae,
4092
4092
  height: re,
4093
- left: l.value.left - (oe - l.value.width),
4094
- top: l.value.top - (re - l.value.height) / 2
4093
+ left: a.value.left - (ae - a.value.width),
4094
+ top: a.value.top - (re - a.value.height) / 2
4095
4095
  };
4096
4096
  },
4097
4097
  // 4
4098
4098
  () => {
4099
- const oe = l.value.width + $.x, re = l.value.height * (1 + $.x / l.value.width);
4099
+ const ae = a.value.width + $.x, re = a.value.height * (1 + $.x / a.value.width);
4100
4100
  i.value = {
4101
4101
  ...S,
4102
- width: oe,
4102
+ width: ae,
4103
4103
  height: re,
4104
- top: l.value.top - (re - l.value.height) / 2
4104
+ top: a.value.top - (re - a.value.height) / 2
4105
4105
  };
4106
4106
  },
4107
4107
  // 5
4108
4108
  () => {
4109
- const oe = {
4110
- width: l.value.width - $.x,
4111
- height: l.value.width * (1 + $.y / l.value.height)
4109
+ const ae = {
4110
+ width: a.value.width - $.x,
4111
+ height: a.value.width * (1 + $.y / a.value.height)
4112
4112
  }[Q], re = {
4113
- width: l.value.height * (1 - $.x / l.value.width),
4114
- height: l.value.height + $.y
4113
+ width: a.value.height * (1 - $.x / a.value.width),
4114
+ height: a.value.height + $.y
4115
4115
  }[Q];
4116
4116
  i.value = {
4117
4117
  ...S,
4118
- width: oe,
4118
+ width: ae,
4119
4119
  height: re,
4120
- left: l.value.left - (oe - l.value.width)
4120
+ left: a.value.left - (ae - a.value.width)
4121
4121
  };
4122
4122
  },
4123
4123
  // 6
4124
4124
  () => {
4125
- const oe = l.value.width * (1 + $.y / l.value.height), re = l.value.height + $.y;
4125
+ const ae = a.value.width * (1 + $.y / a.value.height), re = a.value.height + $.y;
4126
4126
  i.value = {
4127
4127
  ...S,
4128
- width: oe,
4128
+ width: ae,
4129
4129
  height: re,
4130
- left: l.value.left - (oe - l.value.width) / 2
4130
+ left: a.value.left - (ae - a.value.width) / 2
4131
4131
  };
4132
4132
  },
4133
4133
  // 7
4134
4134
  () => {
4135
- const oe = {
4136
- width: l.value.width + $.x,
4137
- height: l.value.width * (1 + $.y / l.value.height)
4135
+ const ae = {
4136
+ width: a.value.width + $.x,
4137
+ height: a.value.width * (1 + $.y / a.value.height)
4138
4138
  }[Q], re = {
4139
- width: l.value.height * (1 + $.x / l.value.width),
4140
- height: l.value.height + $.y
4139
+ width: a.value.height * (1 + $.x / a.value.width),
4140
+ height: a.value.height + $.y
4141
4141
  }[Q];
4142
4142
  i.value = {
4143
4143
  ...S,
4144
- width: oe,
4144
+ width: ae,
4145
4145
  height: re
4146
4146
  };
4147
4147
  }
4148
4148
  ][c.value]();
4149
4149
  }, he = (P) => {
4150
- const $ = { x: P.clientX - l.value.x, y: P.clientY - l.value.y }, S = { ...M.value }, Q = [
4150
+ const $ = { x: P.clientX - a.value.x, y: P.clientY - a.value.y }, S = { ...M.value }, Q = [
4151
4151
  {
4152
4152
  ...S,
4153
- width: l.value.width - $.x,
4154
- height: l.value.height - $.y,
4155
- left: l.value.left + $.x,
4156
- top: l.value.top + $.y
4153
+ width: a.value.width - $.x,
4154
+ height: a.value.height - $.y,
4155
+ left: a.value.left + $.x,
4156
+ top: a.value.top + $.y
4157
4157
  },
4158
4158
  {
4159
4159
  ...S,
4160
- height: l.value.height - $.y,
4161
- top: l.value.top + $.y
4160
+ height: a.value.height - $.y,
4161
+ top: a.value.top + $.y
4162
4162
  },
4163
4163
  {
4164
4164
  ...S,
4165
- width: l.value.width + $.x,
4166
- height: l.value.height - $.y,
4167
- top: l.value.top + $.y
4165
+ width: a.value.width + $.x,
4166
+ height: a.value.height - $.y,
4167
+ top: a.value.top + $.y
4168
4168
  },
4169
4169
  {
4170
4170
  ...S,
4171
- width: l.value.width - $.x,
4172
- left: l.value.left + $.x
4171
+ width: a.value.width - $.x,
4172
+ left: a.value.left + $.x
4173
4173
  },
4174
4174
  {
4175
4175
  ...S,
4176
- width: l.value.width + $.x
4176
+ width: a.value.width + $.x
4177
4177
  },
4178
4178
  {
4179
4179
  ...S,
4180
- width: l.value.width - $.x,
4181
- height: l.value.height + $.y,
4182
- left: l.value.left + $.x
4180
+ width: a.value.width - $.x,
4181
+ height: a.value.height + $.y,
4182
+ left: a.value.left + $.x
4183
4183
  },
4184
4184
  {
4185
4185
  ...S,
4186
- height: l.value.height + $.y
4186
+ height: a.value.height + $.y
4187
4187
  },
4188
4188
  {
4189
4189
  ...S,
4190
- width: l.value.width + $.x,
4191
- height: l.value.height + $.y
4190
+ width: a.value.width + $.x,
4191
+ height: a.value.height + $.y
4192
4192
  }
4193
4193
  ];
4194
4194
  i.value = Q[c.value];
@@ -4203,20 +4203,20 @@ const As = {
4203
4203
  t("changeAbsTxtItem", { ...M.value, content: P });
4204
4204
  }, fe = (P, $) => {
4205
4205
  var Q;
4206
- const S = document.body.querySelector(`.cke_editor_${ht}`);
4207
- !P && ((Q = ($ == null ? void 0 : $.target).dataset) != null && Q.safe || [...te.value, ...L.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (Z.value = P == null ? void 0 : P.key, i.value = P ? { ...P } : null);
4206
+ const S = document.body.querySelector(`.cke_editor_${pt}`);
4207
+ !P && ((Q = ($ == null ? void 0 : $.target).dataset) != null && Q.safe || [...oe.value, ...L.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (Z.value = P == null ? void 0 : P.key, i.value = P ? { ...P } : null);
4208
4208
  };
4209
4209
  return (P, $) => (s(), d(E, null, [
4210
4210
  (s(!0), d(E, null, X(W.value, (S) => {
4211
- var Q, we, oe, re, be, b, T;
4212
- return ft((s(), d("div", {
4211
+ var Q, we, ae, re, be, b, T;
4212
+ return gt((s(), d("div", {
4213
4213
  key: S.id,
4214
4214
  ref_for: !0,
4215
4215
  ref_key: "imgViewList",
4216
- ref: te,
4216
+ ref: oe,
4217
4217
  "data-safe": "true",
4218
- class: ae(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8" : "z-7"]),
4219
- style: Y({ left: Math.max(((we = j.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((oe = j.value[S.key]) == null ? void 0 : oe.top) || S.top, 0) + "px", width: (((re = j.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = j.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = j.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
4218
+ class: te(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8" : "z-7"]),
4219
+ style: Y({ left: Math.max(((we = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = K.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = K.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = K.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = K.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
4220
4220
  onMousedown: Le((le) => fe(S), ["stop"]),
4221
4221
  "data-block": x(Ee)
4222
4222
  }, [
@@ -4225,7 +4225,7 @@ const As = {
4225
4225
  }, null, 8, Bs),
4226
4226
  ((T = M.value) == null ? void 0 : T.key) === S.key ? (s(), d(E, { key: 0 }, [
4227
4227
  f("span", Os, [
4228
- K(ye, {
4228
+ j(ye, {
4229
4229
  name: "close",
4230
4230
  width: 2,
4231
4231
  class: "cursor-pointer",
@@ -4244,7 +4244,7 @@ const As = {
4244
4244
  class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
4245
4245
  onMousedown: Le(C, ["stop"])
4246
4246
  }, [
4247
- K(ye, {
4247
+ j(ye, {
4248
4248
  name: "reset",
4249
4249
  width: 2
4250
4250
  })
@@ -4252,20 +4252,20 @@ const As = {
4252
4252
  ], 64)) : D("", !0)
4253
4253
  ], 46, Ns)), [
4254
4254
  [x(n), H],
4255
- [x(a), (le) => fe(null, le)]
4255
+ [x(l), (le) => fe(null, le)]
4256
4256
  ]);
4257
4257
  }), 128)),
4258
4258
  (s(!0), d(E, null, X(w.value, (S) => {
4259
- var Q, we, oe, re, be, b, T;
4260
- return ft((s(), d("div", {
4259
+ var Q, we, ae, re, be, b, T;
4260
+ return gt((s(), d("div", {
4261
4261
  key: S.id,
4262
4262
  ref_for: !0,
4263
4263
  ref_key: "txtViewList",
4264
4264
  ref: L,
4265
4265
  disabled: F.value,
4266
4266
  "data-safe": "true",
4267
- class: ae(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8 bg-white" : "z-7"]),
4268
- style: Y({ left: Math.max(((we = j.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((oe = j.value[S.key]) == null ? void 0 : oe.top) || S.top, 0) + "px", width: (((re = j.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = j.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
4267
+ class: te(["absolute", ((Q = M.value) == null ? void 0 : Q.key) === S.key ? "z-8 bg-white" : "z-7"]),
4268
+ style: Y({ left: Math.max(((we = K.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = K.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = K.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = K.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
4269
4269
  onMousedown: Le((le) => fe(S), ["stop"]),
4270
4270
  "data-block": x(Ee)
4271
4271
  }, [
@@ -4281,7 +4281,7 @@ const As = {
4281
4281
  }, null, 8, ["readonly", "value", "name"])),
4282
4282
  ((T = M.value) == null ? void 0 : T.key) === S.key ? (s(), d(E, { key: 0 }, [
4283
4283
  f("span", Gs, [
4284
- K(ye, {
4284
+ j(ye, {
4285
4285
  name: "close",
4286
4286
  width: 2,
4287
4287
  class: "cursor-pointer",
@@ -4299,13 +4299,13 @@ const As = {
4299
4299
  ], 64)) : D("", !0)
4300
4300
  ], 46, Ws)), [
4301
4301
  [x(n), H],
4302
- [x(a), (le) => fe(null, le)]
4302
+ [x(l), (le) => fe(null, le)]
4303
4303
  ]);
4304
4304
  }), 128))
4305
4305
  ], 64));
4306
4306
  }
4307
4307
  });
4308
- const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["viewBox"], js = {
4308
+ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["viewBox"], Ks = {
4309
4309
  x: "0",
4310
4310
  y: "0",
4311
4311
  width: "100%",
@@ -4328,18 +4328,18 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4328
4328
  setup(e, { emit: t }) {
4329
4329
  const o = e;
4330
4330
  Wt("ckeditorOrigin", o.ckeditorOrigin);
4331
- const a = G([]), n = G([]), r = G(2), l = G(0), i = G(0), c = G(), u = G([]), m = G([]), O = G([]), h = G([]), F = A(() => o.data.map((b) => ({
4331
+ const l = G([]), n = G([]), r = G(2), a = G(0), i = G(0), c = G(), u = G([]), m = G([]), O = G([]), h = G([]), F = A(() => o.data.map((b) => ({
4332
4332
  ...b,
4333
- __tag__: xt(),
4333
+ __tag__: kt(),
4334
4334
  rawChildren: b.children,
4335
- children: b.children.map((T) => ({ ...T, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: xt() }))
4335
+ children: b.children.map((T) => ({ ...T, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: kt() }))
4336
4336
  }))), Z = A(() => {
4337
4337
  const b = F.value[F.value.length - 1], T = b.rawChildren[b.rawChildren.length - 1];
4338
- return j.value && [p.slove].includes(T == null ? void 0 : T.problemType) && T.id;
4339
- }), te = A(() => {
4338
+ return K.value && [p.slove].includes(T == null ? void 0 : T.problemType) && T.id;
4339
+ }), oe = A(() => {
4340
4340
  var b;
4341
- return o.layout.bindFlag && !!((b = ze.find((T) => T.code === o.layout.paper)) != null && b.isMultCol);
4342
- }), L = A(() => o.isFinal ? 0 : 10), W = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), M = A(() => Math.ceil(w.value / 2) * 2), j = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => j.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), C = A(() => g[o.layout.paper].width - _.value.left - _.value.right), v = A(() => g[o.layout.paper].height - _.value.top - _.value.bottom), z = A(() => (C.value - (i.value ? i.value + S(0) : 0) + S(0)) / o.layout.column - S(0)), B = A(() => ({
4341
+ return o.layout.bindFlag && !!((b = Oe.find((T) => T.code === o.layout.paper)) != null && b.isMultCol);
4342
+ }), L = A(() => o.isFinal ? 0 : 10), W = A(() => o.isFinal ? 10 : 0), w = A(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), M = A(() => Math.ceil(w.value / 2) * 2), K = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), H = A(() => K.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || ct[o.layout.mode][o.layout.paper]), C = A(() => g[o.layout.paper].width - _.value.left - _.value.right), v = A(() => g[o.layout.paper].height - _.value.top - _.value.bottom), z = A(() => (C.value - (i.value ? i.value + S(0) : 0) + S(0)) / o.layout.column - S(0)), B = A(() => ({
4343
4343
  width: `${g[o.layout.paper].width}px`,
4344
4344
  height: `${(g[o.layout.paper].height + L.value) * M.value - L.value}px`
4345
4345
  })), me = A(() => ({
@@ -4349,19 +4349,19 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4349
4349
  marginBottom: `${L.value}px`
4350
4350
  })), he = A(() => {
4351
4351
  var T;
4352
- const b = (T = ze.find((le) => le.code === o.layout.paper)) == null ? void 0 : T.isMultCol;
4352
+ const b = (T = Oe.find((le) => le.code === o.layout.paper)) == null ? void 0 : T.isMultCol;
4353
4353
  return {
4354
4354
  left: `${_.value.left + (i.value ? i.value + S(0) : 0)}px`,
4355
4355
  top: `${_.value.top}px`,
4356
4356
  width: b ? `${z.value}px` : `${C.value}px`
4357
4357
  };
4358
4358
  });
4359
- Ae(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
4359
+ De(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
4360
4360
  setTimeout(() => {
4361
4361
  re();
4362
4362
  }, 100);
4363
- }, { immediate: !0 }), Ae(() => te.value, () => {
4364
- i.value = te.value ? 100 : 0;
4363
+ }, { immediate: !0 }), De(() => oe.value, () => {
4364
+ i.value = oe.value ? 100 : 0;
4365
4365
  }, { immediate: !0 });
4366
4366
  const ie = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _e = (b, T) => Math.floor(T / 2) * (o.layout.column + o.layout.backColumn) + T % 2 * o.layout.column + b, fe = (b) => {
4367
4367
  const T = b % (o.layout.column + o.layout.backColumn);
@@ -4378,13 +4378,13 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4378
4378
  top: `${le + _.value.top + (!T && !b ? 0 : H.value.top)}px`,
4379
4379
  width: `${Q(b)}px`,
4380
4380
  height: `${v.value - le - (!T && !b ? 0 : H.value.top) - H.value.bottom}px`,
4381
- contentHeight: `${(ee = a.value[b]) == null ? void 0 : ee.height}px`
4381
+ contentHeight: `${(ee = l.value[b]) == null ? void 0 : ee.height}px`
4382
4382
  };
4383
- }, oe = (b, T = !1) => {
4384
- n.value = b.map((le) => ({ ...le })), T && (a.value = [...b], l.value += 1, Je(() => {
4385
- r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], m.value.forEach((le, R) => {
4383
+ }, ae = (b, T = !1) => {
4384
+ n.value = b.map((le) => ({ ...le })), T && (l.value = [...b], a.value += 1, Je(() => {
4385
+ r.value = Math.ceil(l.value.length / o.layout.column), n.value = [], m.value.forEach((le, R) => {
4386
4386
  var ee, Se;
4387
- !le || !le.col || ((ee = a.value[R]) != null && ee.top ? le.col.style.marginTop = `${(Se = a.value[R]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4387
+ !le || !le.col || ((ee = l.value[R]) != null && ee.top ? le.col.style.marginTop = `${(Se = l.value[R]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4388
4388
  }), o.isFinal && setTimeout(() => {
4389
4389
  const le = _s({
4390
4390
  config: {
@@ -4397,7 +4397,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4397
4397
  colDom: m.value.map((R) => R.col),
4398
4398
  colViewDom: m.value.map((R) => R.colView)
4399
4399
  },
4400
- data: a.value
4400
+ data: l.value
4401
4401
  });
4402
4402
  t("getFinalData", le);
4403
4403
  }, 500);
@@ -4409,7 +4409,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4409
4409
  column: o.layout.column,
4410
4410
  backColumn: o.layout.backColumn || o.layout.column,
4411
4411
  getColSize: we,
4412
- change: oe
4412
+ change: ae
4413
4413
  });
4414
4414
  }, be = (b = { type: q.page, value: {} }) => {
4415
4415
  t("toggleActive", b);
@@ -4419,7 +4419,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4419
4419
  return s(), d(E, null, [
4420
4420
  b.readonly ? D("", !0) : (s(), U($s, {
4421
4421
  key: 0,
4422
- ColList: a.value,
4422
+ ColList: l.value,
4423
4423
  ColDom: m.value.map((R) => R.col),
4424
4424
  ImgData: b.imgData,
4425
4425
  TxtData: b.txtData,
@@ -4438,18 +4438,18 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4438
4438
  ref: c
4439
4439
  }, [
4440
4440
  n.value.length ? (s(!0), d(E, { key: 0 }, X((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (R, ee) => (s(), d(E, null, [
4441
- R.isHidden ? D("", !0) : (s(), U(Ct, {
4441
+ R.isHidden ? D("", !0) : (s(), U($t, {
4442
4442
  key: 0,
4443
4443
  item: R,
4444
- showColBorder: j.value,
4444
+ showColBorder: K.value,
4445
4445
  isFirst: !ee && n.value.length === 1,
4446
4446
  layout: b.layout
4447
4447
  }, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
4448
- j.value ? (s(), d("div", {
4448
+ K.value ? (s(), d("div", {
4449
4449
  key: 1,
4450
- class: ae([!R.children.length && R.problemType && "p-1 min-h-[2rem]"])
4450
+ class: te([!R.children.length && R.problemType && "p-1 min-h-[2rem]"])
4451
4451
  }, [
4452
- (s(), U(Ye, {
4452
+ (s(), U(Ge, {
4453
4453
  data: R,
4454
4454
  key: n.value.length,
4455
4455
  layout: b.layout,
@@ -4457,7 +4457,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4457
4457
  noPortrait: "",
4458
4458
  width: Q(n.value.length - 1) - 10
4459
4459
  }, null, 8, ["data", "layout", "target", "width"]))
4460
- ], 2)) : (s(), U(Ye, {
4460
+ ], 2)) : (s(), U(Ge, {
4461
4461
  data: R,
4462
4462
  key: n.value.length,
4463
4463
  layout: b.layout,
@@ -4467,10 +4467,10 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4467
4467
  ], 64))), 256)) : D("", !0)
4468
4468
  ], 512),
4469
4469
  f("div", {
4470
- class: ae(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
4470
+ class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
4471
4471
  style: Y(B.value)
4472
4472
  }, [
4473
- K(Us, {
4473
+ j(Us, {
4474
4474
  imgData: b.imgData,
4475
4475
  txtData: b.txtData,
4476
4476
  layout: b.layout,
@@ -4484,9 +4484,9 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4484
4484
  viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
4485
4485
  version: "1.1",
4486
4486
  xmlns: "http://www.w3.org/2000/svg",
4487
- key: l.value
4487
+ key: a.value
4488
4488
  }, [
4489
- (s(), d("foreignObject", js, [
4489
+ (s(), d("foreignObject", Ks, [
4490
4490
  (s(!0), d(E, null, X(M.value, (R, ee) => (s(), d("div", {
4491
4491
  key: R,
4492
4492
  class: "bg-white relative flex justify-between overflow-hidden box-border",
@@ -4495,7 +4495,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4495
4495
  style: Y(me.value)
4496
4496
  }, [
4497
4497
  ee < w.value ? (s(), d(E, { key: 0 }, [
4498
- K(wo, {
4498
+ j(wo, {
4499
4499
  layout: b.layout,
4500
4500
  currentPage: ee,
4501
4501
  totalPage: w.value,
@@ -4510,43 +4510,43 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4510
4510
  layout: b.layout,
4511
4511
  onChange: T[7] || (T[7] = (Se) => t("changeInfo", Se))
4512
4512
  }, null, 8, ["info", "layout"])) : D("", !0),
4513
- K(Za, {
4513
+ j(Za, {
4514
4514
  ref_for: !0,
4515
4515
  ref_key: "bindDom",
4516
4516
  ref: h,
4517
4517
  currentPage: ee,
4518
4518
  width: i.value,
4519
4519
  height: v.value,
4520
- isBindFlag: te.value
4520
+ isBindFlag: oe.value
4521
4521
  }, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
4522
4522
  !(ee % 2) || ee === 1 && w.value < 3 ? (s(), d("div", {
4523
4523
  key: 1,
4524
4524
  ref_for: !0,
4525
4525
  ref_key: "titleDom",
4526
4526
  ref: O,
4527
- class: ae(["absolute text-black", ee === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
4527
+ class: te(["absolute text-black", ee === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
4528
4528
  style: Y(he.value)
4529
4529
  }, [
4530
- K(Mo, {
4530
+ j(Mo, {
4531
4531
  layout: b.layout,
4532
4532
  code: b.info.textCode
4533
4533
  }, null, 8, ["layout", "code"]),
4534
- K(ta, {
4534
+ j(ta, {
4535
4535
  info: b.info,
4536
4536
  layout: b.layout,
4537
4537
  fontConfig: b.fontConfig,
4538
4538
  data: b.data,
4539
4539
  onChange: T[8] || (T[8] = (Se) => t("changeInfo", Se))
4540
4540
  }, null, 8, ["info", "layout", "fontConfig", "data"]),
4541
- K(ka, {
4541
+ j(ka, {
4542
4542
  layout: b.layout,
4543
4543
  info: b.info,
4544
- isBindFlag: te.value,
4544
+ isBindFlag: oe.value,
4545
4545
  onChange: T[9] || (T[9] = (Se) => t("changeExtentInfo", Se))
4546
4546
  }, null, 8, ["layout", "info", "isBindFlag"]),
4547
- K(Ba, {
4547
+ j(Ba, {
4548
4548
  layout: b.layout,
4549
- isBindFlag: te.value
4549
+ isBindFlag: oe.value
4550
4550
  }, null, 8, ["layout", "isBindFlag"]),
4551
4551
  ee ? D("", !0) : (s(), U(Ya, {
4552
4552
  key: 0,
@@ -4561,35 +4561,35 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4561
4561
  ], 6)) : D("", !0),
4562
4562
  (s(!0), d(E, null, X(ee % 2 ? b.layout.backColumn : b.layout.column, (Se, Me) => (s(), U(Qa, {
4563
4563
  ref_for: !0,
4564
- ref: (Ge) => $(Ge, _e(Me, ee)),
4564
+ ref: (We) => $(We, _e(Me, ee)),
4565
4565
  styleInfo: we(_e(Me, ee), ee),
4566
4566
  column: b.layout.column,
4567
4567
  currentColumn: _e(Me, ee),
4568
- showColBorder: j.value
4568
+ showColBorder: K.value
4569
4569
  }, {
4570
- default: It(() => {
4571
- var Ge;
4570
+ default: Lt(() => {
4571
+ var We;
4572
4572
  return [
4573
- (s(!0), d(E, null, X(((Ge = a.value[_e(Me, ee)]) == null ? void 0 : Ge.data) || [], (ge, zt) => {
4574
- var pt;
4573
+ (s(!0), d(E, null, X(((We = l.value[_e(Me, ee)]) == null ? void 0 : We.data) || [], (ge, zt) => {
4574
+ var mt;
4575
4575
  return s(), d(E, null, [
4576
- ge.isHidden ? D("", !0) : (s(), U(Ct, {
4576
+ ge.isHidden ? D("", !0) : (s(), U($t, {
4577
4577
  key: 0,
4578
4578
  item: ge,
4579
- showColBorder: j.value,
4579
+ showColBorder: K.value,
4580
4580
  isFirst: !ee && !Me && !zt,
4581
4581
  layout: b.layout,
4582
- isActive: ((pt = b.target.value) == null ? void 0 : pt.id) === ge.id,
4582
+ isActive: ((mt = b.target.value) == null ? void 0 : mt.id) === ge.id,
4583
4583
  onClick: (Ce) => be({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }),
4584
4584
  onDbclick: (Ce) => t("dbHeadLineClick", ge)
4585
4585
  }, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
4586
- j.value ? (s(), d("div", {
4586
+ K.value ? (s(), d("div", {
4587
4587
  key: 1,
4588
- class: ae([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(q).headline && b.target.value.id === ge.id && "active_headline"]),
4588
+ class: te([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(q).headline && b.target.value.id === ge.id && "active_headline"]),
4589
4589
  onClick: Le((Ce) => be({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }), ["stop"]),
4590
4590
  onDblclick: (Ce) => t("dbHeadLineClick", ge)
4591
4591
  }, [
4592
- K(Ye, {
4592
+ j(Ge, {
4593
4593
  data: ge,
4594
4594
  layout: b.layout,
4595
4595
  target: b.target,
@@ -4602,7 +4602,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4602
4602
  class: "border-t",
4603
4603
  "data-block": x(Ee)
4604
4604
  }, null, 8, Xs)) : D("", !0)
4605
- ], 42, Vs)) : (s(), U(Ye, {
4605
+ ], 42, Vs)) : (s(), U(Ge, {
4606
4606
  key: 2,
4607
4607
  data: ge,
4608
4608
  layout: b.layout,
@@ -4620,7 +4620,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4620
4620
  ], 64)) : D("", !0)
4621
4621
  ], 4))), 128))
4622
4622
  ]))
4623
- ], 8, Ks))
4623
+ ], 8, js))
4624
4624
  ], 6)
4625
4625
  ])
4626
4626
  ], 64);