alit-layout 1.0.27 → 1.0.28

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 +634 -634
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, openBlock as i, createElementBlock as u, Fragment as P, renderList as Z, createElementVNode as f, normalizeStyle as Q, unref as x, toDisplayString as J, createCommentVNode as D, ref as q, watch as De, normalizeClass as oe, computed as A, createBlock as j, createTextVNode as Ue, createVNode as V, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
1
+ import { defineComponent as ee, openBlock as i, createElementBlock as u, Fragment as P, renderList as Z, createElementVNode as f, normalizeStyle as q, unref as x, toDisplayString as J, createCommentVNode as D, ref as Y, watch as De, normalizeClass as oe, computed as A, createBlock as V, createTextVNode as Ue, createVNode as X, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
2
2
  const rt = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -56,7 +56,7 @@ const rt = {
56
56
  { name: "8k", code: "8k", size: "370*260mm", isMultCol: !0 },
57
57
  { name: "16k", code: "16k", size: "185*260mm" },
58
58
  { name: "B4", code: "b4", size: "353*250mm" }
59
- ], g = {
59
+ ], b = {
60
60
  a3: {
61
61
  width: 1588,
62
62
  height: 1124
@@ -169,134 +169,134 @@ const rt = {
169
169
  }, ct = {
170
170
  article: {
171
171
  a3: {
172
- top: g.a3.width / 420 * 20.5,
173
- right: g.a3.width / 420 * 20.5,
174
- bottom: g.a3.width / 420 * 20.5,
175
- left: g.a3.width / 420 * 20.5
172
+ top: b.a3.width / 420 * 20.5,
173
+ right: b.a3.width / 420 * 20.5,
174
+ bottom: b.a3.width / 420 * 20.5,
175
+ left: b.a3.width / 420 * 20.5
176
176
  },
177
177
  "a3+": {
178
- top: g["a3+"].width / 420 * 20.5,
179
- right: g["a3+"].width / 420 * 20.5,
180
- bottom: g["a3+"].width / 420 * 20.5,
181
- left: g["a3+"].width / 420 * 20.5
178
+ top: b["a3+"].width / 420 * 20.5,
179
+ right: b["a3+"].width / 420 * 20.5,
180
+ bottom: b["a3+"].width / 420 * 20.5,
181
+ left: b["a3+"].width / 420 * 20.5
182
182
  },
183
183
  a4: {
184
- top: g.a4.width / 210 * 20.5,
185
- right: g.a4.width / 210 * 20.5,
186
- bottom: g.a4.width / 210 * 20.5,
187
- left: g.a4.width / 210 * 20.5
184
+ top: b.a4.width / 210 * 20.5,
185
+ right: b.a4.width / 210 * 20.5,
186
+ bottom: b.a4.width / 210 * 20.5,
187
+ left: b.a4.width / 210 * 20.5
188
188
  },
189
189
  a4x: {
190
- top: g.b4.width / 353 * 20,
191
- right: g.b4.width / 353 * 20,
192
- bottom: g.b4.width / 353 * 20,
193
- left: g.b4.width / 353 * 20
190
+ top: b.b4.width / 353 * 20,
191
+ right: b.b4.width / 353 * 20,
192
+ bottom: b.b4.width / 353 * 20,
193
+ left: b.b4.width / 353 * 20
194
194
  },
195
195
  "8k": {
196
- top: g["8k"].width / 370 * 17.5,
197
- right: g["8k"].width / 370 * 17.5,
198
- bottom: g["8k"].width / 370 * 17.5,
199
- left: g["8k"].width / 370 * 17.5
196
+ top: b["8k"].width / 370 * 17.5,
197
+ right: b["8k"].width / 370 * 17.5,
198
+ bottom: b["8k"].width / 370 * 17.5,
199
+ left: b["8k"].width / 370 * 17.5
200
200
  },
201
201
  "16k": {
202
- top: g["16k"].width / 185 * 14.5,
203
- right: g["16k"].width / 185 * 14.5,
204
- bottom: g["16k"].width / 185 * 14.5,
205
- left: g["16k"].width / 185 * 14.5
202
+ top: b["16k"].width / 185 * 14.5,
203
+ right: b["16k"].width / 185 * 14.5,
204
+ bottom: b["16k"].width / 185 * 14.5,
205
+ left: b["16k"].width / 185 * 14.5
206
206
  },
207
207
  b4: {
208
- top: g.b4.width / 353 * 17.5,
209
- right: g.b4.width / 353 * 17.5,
210
- bottom: g.b4.width / 353 * 17.5,
211
- left: g.b4.width / 353 * 17.5
208
+ top: b.b4.width / 353 * 17.5,
209
+ right: b.b4.width / 353 * 17.5,
210
+ bottom: b.b4.width / 353 * 17.5,
211
+ left: b.b4.width / 353 * 17.5
212
212
  }
213
213
  },
214
214
  sheet: {
215
215
  a3: {
216
- top: g.a3.width / 420 * 19,
217
- right: g.a3.width / 420 * 19,
218
- bottom: g.a3.width / 420 * 19,
219
- left: g.a3.width / 420 * 19
216
+ top: b.a3.width / 420 * 19,
217
+ right: b.a3.width / 420 * 19,
218
+ bottom: b.a3.width / 420 * 19,
219
+ left: b.a3.width / 420 * 19
220
220
  },
221
221
  "a3+": {
222
- top: g["a3+"].width / 420 * 19,
223
- right: g["a3+"].width / 420 * 19,
224
- bottom: g["a3+"].width / 420 * 19,
225
- left: g["a3+"].width / 420 * 19
222
+ top: b["a3+"].width / 420 * 19,
223
+ right: b["a3+"].width / 420 * 19,
224
+ bottom: b["a3+"].width / 420 * 19,
225
+ left: b["a3+"].width / 420 * 19
226
226
  },
227
227
  a4: {
228
- top: g.a4.width / 210 * 19,
229
- right: g.a4.width / 210 * 19,
230
- bottom: g.a4.width / 210 * 19,
231
- left: g.a4.width / 210 * 19
228
+ top: b.a4.width / 210 * 19,
229
+ right: b.a4.width / 210 * 19,
230
+ bottom: b.a4.width / 210 * 19,
231
+ left: b.a4.width / 210 * 19
232
232
  },
233
233
  a4x: {
234
- top: g.b4.width / 353 * 20,
235
- right: g.b4.width / 353 * 20,
236
- bottom: g.b4.width / 353 * 20,
237
- left: g.b4.width / 353 * 20
234
+ top: b.b4.width / 353 * 20,
235
+ right: b.b4.width / 353 * 20,
236
+ bottom: b.b4.width / 353 * 20,
237
+ left: b.b4.width / 353 * 20
238
238
  },
239
239
  "8k": {
240
- top: g["8k"].width / 370 * 16,
241
- right: g["8k"].width / 370 * 16,
242
- bottom: g["8k"].width / 370 * 16,
243
- left: g["8k"].width / 370 * 16
240
+ top: b["8k"].width / 370 * 16,
241
+ right: b["8k"].width / 370 * 16,
242
+ bottom: b["8k"].width / 370 * 16,
243
+ left: b["8k"].width / 370 * 16
244
244
  },
245
245
  "16k": {
246
- top: g["16k"].width / 185 * 15,
247
- right: g["16k"].width / 185 * 15,
248
- bottom: g["16k"].width / 185 * 15,
249
- left: g["16k"].width / 185 * 15
246
+ top: b["16k"].width / 185 * 15,
247
+ right: b["16k"].width / 185 * 15,
248
+ bottom: b["16k"].width / 185 * 15,
249
+ left: b["16k"].width / 185 * 15
250
250
  },
251
251
  b4: {
252
- top: g.b4.width / 353 * 19,
253
- right: g.b4.width / 353 * 19,
254
- bottom: g.b4.width / 353 * 19,
255
- left: g.b4.width / 353 * 19
252
+ top: b.b4.width / 353 * 19,
253
+ right: b.b4.width / 353 * 19,
254
+ bottom: b.b4.width / 353 * 19,
255
+ left: b.b4.width / 353 * 19
256
256
  }
257
257
  },
258
258
  sheetCard: {
259
259
  a3: {
260
- top: g.a3.width / 420 * 19,
261
- right: g.a3.width / 420 * 19,
262
- bottom: g.a3.width / 420 * 19,
263
- left: g.a3.width / 420 * 19
260
+ top: b.a3.width / 420 * 19,
261
+ right: b.a3.width / 420 * 19,
262
+ bottom: b.a3.width / 420 * 19,
263
+ left: b.a3.width / 420 * 19
264
264
  },
265
265
  "a3+": {
266
- top: g["a3+"].width / 420 * 19,
267
- right: g["a3+"].width / 420 * 19,
268
- bottom: g["a3+"].width / 420 * 19,
269
- left: g["a3+"].width / 420 * 19
266
+ top: b["a3+"].width / 420 * 19,
267
+ right: b["a3+"].width / 420 * 19,
268
+ bottom: b["a3+"].width / 420 * 19,
269
+ left: b["a3+"].width / 420 * 19
270
270
  },
271
271
  a4: {
272
- top: g.a4.width / 210 * 19,
273
- right: g.a4.width / 210 * 19,
274
- bottom: g.a4.width / 210 * 19,
275
- left: g.a4.width / 210 * 19
272
+ top: b.a4.width / 210 * 19,
273
+ right: b.a4.width / 210 * 19,
274
+ bottom: b.a4.width / 210 * 19,
275
+ left: b.a4.width / 210 * 19
276
276
  },
277
277
  a4x: {
278
- top: g.b4.width / 353 * 20,
279
- right: g.b4.width / 353 * 20,
280
- bottom: g.b4.width / 353 * 20,
281
- left: g.b4.width / 353 * 20
278
+ top: b.b4.width / 353 * 20,
279
+ right: b.b4.width / 353 * 20,
280
+ bottom: b.b4.width / 353 * 20,
281
+ left: b.b4.width / 353 * 20
282
282
  },
283
283
  "8k": {
284
- top: g["8k"].width / 370 * 16,
285
- right: g["8k"].width / 370 * 16,
286
- bottom: g["8k"].width / 370 * 16,
287
- left: g["8k"].width / 370 * 16
284
+ top: b["8k"].width / 370 * 16,
285
+ right: b["8k"].width / 370 * 16,
286
+ bottom: b["8k"].width / 370 * 16,
287
+ left: b["8k"].width / 370 * 16
288
288
  },
289
289
  "16k": {
290
- top: g["16k"].width / 185 * 15,
291
- right: g["16k"].width / 185 * 15,
292
- bottom: g["16k"].width / 185 * 15,
293
- left: g["16k"].width / 185 * 15
290
+ top: b["16k"].width / 185 * 15,
291
+ right: b["16k"].width / 185 * 15,
292
+ bottom: b["16k"].width / 185 * 15,
293
+ left: b["16k"].width / 185 * 15
294
294
  },
295
295
  b4: {
296
- top: g.b4.width / 353 * 19,
297
- right: g.b4.width / 353 * 19,
298
- bottom: g.b4.width / 353 * 19,
299
- left: g.b4.width / 353 * 19
296
+ top: b.b4.width / 353 * 19,
297
+ right: b.b4.width / 353 * 19,
298
+ bottom: b.b4.width / 353 * 19,
299
+ left: b.b4.width / 353 * 19
300
300
  }
301
301
  }
302
302
  }, Qt = {
@@ -420,7 +420,7 @@ const rt = {
420
420
  2: 20
421
421
  }
422
422
  }
423
- }, Kt = 10, jt = {
423
+ }, jt = 10, Kt = {
424
424
  base: {
425
425
  secTitleFlag: "副标题",
426
426
  authorFlag: "命题人",
@@ -574,12 +574,12 @@ const rt = {
574
574
  { name: "自动", code: Qe.auto },
575
575
  { name: "开", code: Qe.on },
576
576
  { name: "关", code: Qe.off }
577
- ], Ke = {
577
+ ], je = {
578
578
  step: "step",
579
579
  custom: "custom"
580
580
  }, ao = [
581
- { name: "分段", code: Ke.step },
582
- { name: "自编", code: Ke.custom }
581
+ { name: "分段", code: je.step },
582
+ { name: "自编", code: je.custom }
583
583
  ], L = {
584
584
  choice_1: "choice-1",
585
585
  choice_2: "choice-2",
@@ -1405,7 +1405,7 @@ const rt = {
1405
1405
  value: 24,
1406
1406
  height: 16
1407
1407
  }
1408
- }, je = {
1408
+ }, Ke = {
1409
1409
  stand: {
1410
1410
  name: "标准",
1411
1411
  code: "stand",
@@ -1465,25 +1465,25 @@ const rt = {
1465
1465
  fontFamily: io,
1466
1466
  fontSize: co,
1467
1467
  fontWeight: ro,
1468
- formatConfig: jt,
1468
+ formatConfig: Kt,
1469
1469
  halfScoreType: Qe,
1470
1470
  halfScoreTypeOption: oo,
1471
1471
  layoutMode: Xt,
1472
1472
  otherLayout: so,
1473
1473
  otherLayoutKey: Mt,
1474
1474
  paddDiff: Qt,
1475
- pageMargin: Kt,
1475
+ pageMargin: jt,
1476
1476
  pagePadding: ct,
1477
1477
  pagePointPosition: ze,
1478
- pageSize: g,
1478
+ pageSize: b,
1479
1479
  pageTitleBlockCol: Vt,
1480
1480
  paper: Oe,
1481
1481
  problemLayout: no,
1482
1482
  problemLayoutKey: y,
1483
1483
  problemLayoutVal: L,
1484
- scoreLineSize: je,
1484
+ scoreLineSize: Ke,
1485
1485
  scoreLineStyle: Ze,
1486
- scoreLineType: Ke,
1486
+ scoreLineType: je,
1487
1487
  scoreLineTypeOption: ao,
1488
1488
  seatType: xe,
1489
1489
  seatTypeOption: Jt,
@@ -1610,7 +1610,7 @@ const rt = {
1610
1610
  };
1611
1611
  return { left: `${o * r + d}px`, ...p[s] };
1612
1612
  }, c = (o) => {
1613
- const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((N) => N === o);
1613
+ const s = (b[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((N) => N === o);
1614
1614
  return { top: `${s * p + t.padding.top - 10}px`, width: "11px", ...d };
1615
1615
  };
1616
1616
  return (o, s) => {
@@ -1619,26 +1619,26 @@ const rt = {
1619
1619
  (i(), u(P, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
1620
1620
  key: d,
1621
1621
  class: "absolute w-8 bg-black point_item",
1622
- style: Q(a(d)),
1622
+ style: q(a(d)),
1623
1623
  "data-xine": x(k).point + d
1624
1624
  }, null, 12, yo)), 64)),
1625
1625
  (i(!0), u(P, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (d) => (i(), u(P, { key: d }, [
1626
1626
  (i(), u(P, null, Z(["t", "b"], (p) => f("span", {
1627
1627
  key: p,
1628
1628
  class: "absolute bg-black w-8 point_item",
1629
- style: Q(n(d, p)),
1629
+ style: q(n(d, p)),
1630
1630
  "data-xine": x(k).point + p
1631
1631
  }, null, 12, _o)), 64))
1632
1632
  ], 64))), 128)),
1633
1633
  (i(), u(P, null, Z(["l", "r"], (d) => f("span", {
1634
1634
  key: d,
1635
1635
  class: "absolute bg-black h-8",
1636
- style: Q(c(d)),
1636
+ style: q(c(d)),
1637
1637
  "data-xine": x(k).point + d
1638
1638
  }, null, 12, fo)), 64)),
1639
1639
  f("p", {
1640
1640
  class: "absolute leading-none text-0",
1641
- style: Q(l()),
1641
+ style: q(l()),
1642
1642
  "data-xine": x(k).page
1643
1643
  }, [
1644
1644
  (i(!0), u(P, null, Z(o.currentPage + 1, (d, p) => (i(), u("span", {
@@ -1650,11 +1650,11 @@ const rt = {
1650
1650
  o.currentPage % 2 ? D("", !0) : (i(), u("span", {
1651
1651
  key: 0,
1652
1652
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1653
- style: Q({ right: `${o.padding.right - 12}px` })
1653
+ style: q({ right: `${o.padding.right - 12}px` })
1654
1654
  }, "提示:本卷" + J((r = x(Oe).find((d) => d.code === o.layout.paper)) == null ? void 0 : r.name) + "纸张", 5)),
1655
1655
  f("span", {
1656
1656
  class: "absolute text-sm red_sheet",
1657
- style: Q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
1657
+ style: q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
1658
1658
  }, J(o.currentPage + 1) + "/" + J(o.totalPage), 5)
1659
1659
  ], 64);
1660
1660
  };
@@ -1683,7 +1683,7 @@ const de = (e, t) => {
1683
1683
  },
1684
1684
  emits: ["change", "input", "focus", "blur"],
1685
1685
  setup(e, { emit: t }) {
1686
- const a = e, l = q(a.value), n = q(!1);
1686
+ const a = e, l = Y(a.value), n = Y(!1);
1687
1687
  De(() => a.value, () => {
1688
1688
  l.value = a.value;
1689
1689
  });
@@ -1729,7 +1729,7 @@ const de = (e, t) => {
1729
1729
  right: `${l.value.right + 97}px`,
1730
1730
  bottom: `${l.value.bottom - 25}px`
1731
1731
  }));
1732
- return (c, o) => (i(), j(et, {
1732
+ return (c, o) => (i(), V(et, {
1733
1733
  class: "absolute w-72 text-sm",
1734
1734
  value: c.info.slogan,
1735
1735
  maxLength: 12,
@@ -1737,7 +1737,7 @@ const de = (e, t) => {
1737
1737
  size: "small",
1738
1738
  autoLine: "",
1739
1739
  dir: "right",
1740
- style: Q(n.value),
1740
+ style: q(n.value),
1741
1741
  onChange: o[0] || (o[0] = (s) => t("change", { slogin: s }))
1742
1742
  }, null, 8, ["value", "style"]));
1743
1743
  }
@@ -1777,7 +1777,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1777
1777
  return (t, a) => (i(), u("div", Lo, [
1778
1778
  t.layout.secrecyFlag ? (i(), u("p", Fo, [
1779
1779
  Ue("绝密"),
1780
- V(_e, {
1780
+ X(_e, {
1781
1781
  name: "fiveArrow",
1782
1782
  width: 1.4,
1783
1783
  class: "px-0 py-0"
@@ -1820,7 +1820,7 @@ const _e = /* @__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__ */ ee({
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__ */ ee({
1824
1824
  __name: "title",
1825
1825
  props: {
1826
1826
  info: {},
@@ -1839,23 +1839,23 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1839
1839
  "data-xine": x(k).art_code
1840
1840
  }, null, 8, Ao),
1841
1841
  f("div", No, [
1842
- V(Be, {
1842
+ X(Be, {
1843
1843
  class: "w-full text-center border-2 border-transparent focus:border-current",
1844
1844
  value: o.info.title,
1845
- style: Q(o.fontConfig.titleStyle),
1845
+ style: q(o.fontConfig.titleStyle),
1846
1846
  onChange: s[0] || (s[0] = (r) => t("change", { title: r }))
1847
1847
  }, null, 8, ["value", "style"]),
1848
- o.layout.secTitleFlag ? (i(), j(Be, {
1848
+ o.layout.secTitleFlag ? (i(), V(Be, {
1849
1849
  key: 0,
1850
1850
  class: "w-full text-center border-2 border-transparent focus:border-current",
1851
1851
  value: o.info.secTitle,
1852
- style: Q(o.fontConfig.halfTitleStyle),
1852
+ style: q(o.fontConfig.halfTitleStyle),
1853
1853
  onChange: s[1] || (s[1] = (r) => t("change", { secTitle: r }))
1854
1854
  }, null, 8, ["value", "style"])) : D("", !0),
1855
1855
  f("div", Bo, [
1856
1856
  o.layout.examExtentFlag ? (i(), u("p", Oo, [
1857
1857
  zo,
1858
- V(Be, {
1858
+ X(Be, {
1859
1859
  class: "flex-1",
1860
1860
  value: o.info.extent,
1861
1861
  onChange: s[2] || (s[2] = (r) => t("change", { extent: r }))
@@ -1863,7 +1863,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1863
1863
  ])) : D("", !0),
1864
1864
  o.layout.examTimeFlag ? (i(), u("p", Ho, [
1865
1865
  Ro,
1866
- V(et, {
1866
+ X(et, {
1867
1867
  value: o.info.time,
1868
1868
  class: "text-center",
1869
1869
  type: "number",
@@ -1876,7 +1876,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1876
1876
  ])) : D("", !0),
1877
1877
  o.layout.authorFlag ? (i(), u("p", Go, [
1878
1878
  Yo,
1879
- V(Be, {
1879
+ X(Be, {
1880
1880
  class: "flex-1",
1881
1881
  value: o.info.author,
1882
1882
  onChange: s[4] || (s[4] = (r) => t("change", { author: r }))
@@ -1884,34 +1884,34 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1884
1884
  ])) : D("", !0),
1885
1885
  o.layout.reviewerFlag ? (i(), u("p", qo, [
1886
1886
  Qo,
1887
- V(Be, {
1887
+ X(Be, {
1888
1888
  class: "flex-1",
1889
1889
  value: o.info.reviewer,
1890
1890
  onChange: s[5] || (s[5] = (r) => t("change", { reviewer: r }))
1891
1891
  }, null, 8, ["value"])
1892
1892
  ])) : D("", !0),
1893
1893
  o.layout.totalScoreFlag ? (i(), u("p", Uo, [
1894
- Ko,
1895
- c.value ? (i(), j(_e, {
1894
+ jo,
1895
+ c.value ? (i(), V(_e, {
1896
1896
  key: 0,
1897
1897
  name: c.value,
1898
1898
  class: "p-0 -translate-y-[1px]"
1899
- }, null, 8, ["name"])) : (i(), u("span", jo, "分")),
1899
+ }, null, 8, ["name"])) : (i(), u("span", Ko, "分")),
1900
1900
  f("span", null, ":" + J(l.value + (o.layout.writeScoreFlag ? o.info.writeScore : 0)), 1),
1901
- c.value ? (i(), j(_e, {
1901
+ c.value ? (i(), V(_e, {
1902
1902
  key: 2,
1903
1903
  name: c.value,
1904
1904
  class: "p-0 -translate-y-[1px]"
1905
1905
  }, null, 8, ["name"])) : (i(), u("span", Vo, "分")),
1906
1906
  o.layout.writeScoreFlag ? (i(), u(P, { key: 4 }, [
1907
1907
  f("span", null, "(试题" + J(l.value), 1),
1908
- c.value ? (i(), j(_e, {
1908
+ c.value ? (i(), V(_e, {
1909
1909
  key: 0,
1910
1910
  name: c.value,
1911
1911
  class: "p-0 -translate-y-[1px]"
1912
1912
  }, null, 8, ["name"])) : (i(), u("span", Xo, "分")),
1913
1913
  f("span", null, "+卷面" + J(o.info.writeScore || 0), 1),
1914
- c.value ? (i(), j(_e, {
1914
+ c.value ? (i(), V(_e, {
1915
1915
  key: 2,
1916
1916
  name: c.value,
1917
1917
  class: "p-0 -translate-y-[1px]"
@@ -1920,7 +1920,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1920
1920
  ], 64)) : D("", !0),
1921
1921
  n.value ? (i(), u(P, { key: 5 }, [
1922
1922
  f("span", null, ";附加题:" + J(n.value), 1),
1923
- c.value ? (i(), j(_e, {
1923
+ c.value ? (i(), V(_e, {
1924
1924
  key: 0,
1925
1925
  name: c.value,
1926
1926
  class: "p-0 -translate-y-[1px]"
@@ -1944,7 +1944,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1944
1944
  key: c,
1945
1945
  class: "flex flex-1"
1946
1946
  }, [
1947
- V(et, {
1947
+ X(et, {
1948
1948
  value: l.extent[c],
1949
1949
  class: "px-0",
1950
1950
  placeholder: "",
@@ -1962,7 +1962,7 @@ const _e = /* @__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
- V(_e, {
1965
+ X(_e, {
1966
1966
  class: "pt-1",
1967
1967
  name: "fiveArrow"
1968
1968
  }),
@@ -1995,7 +1995,7 @@ const wt = /* @__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
- V(_e, {
1998
+ X(_e, {
1999
1999
  class: "px-1 pt-1",
2000
2000
  name: "fiveArrow"
2001
2001
  }),
@@ -2033,7 +2033,7 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2033
2033
  key: c,
2034
2034
  class: "flex flex-1"
2035
2035
  }, [
2036
- V(et, {
2036
+ X(et, {
2037
2037
  value: l.extent[c],
2038
2038
  class: "px-0",
2039
2039
  placeholder: "",
@@ -2060,22 +2060,22 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2060
2060
  const a = e, l = A(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
2061
2061
  return (n, c) => n.isBindFlag ? D("", !0) : (i(), u("div", ga, [
2062
2062
  l.value ? (i(), u(P, { key: 0 }, [
2063
- n.layout.seatType === x(xe).none ? (i(), j(vt, {
2063
+ n.layout.seatType === x(xe).none ? (i(), V(vt, {
2064
2064
  key: 0,
2065
2065
  extent: n.info.extentInfo,
2066
2066
  onChange: c[0] || (c[0] = (o) => t("change", o))
2067
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(xt, { key: 2 })) : D("", !0)
2067
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), V(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), V(xt, { key: 2 })) : D("", !0)
2068
2068
  ], 64)) : D("", !0),
2069
- V(_a, {
2069
+ X(_a, {
2070
2070
  extent: n.info.extentInfo,
2071
2071
  onChange: c[1] || (c[1] = (o) => t("change", o))
2072
2072
  }, null, 8, ["extent"]),
2073
2073
  l.value ? D("", !0) : (i(), u(P, { key: 1 }, [
2074
- n.layout.seatType === x(xe).none ? (i(), j(vt, {
2074
+ n.layout.seatType === x(xe).none ? (i(), V(vt, {
2075
2075
  key: 0,
2076
2076
  extent: n.info.extentInfo,
2077
2077
  onChange: c[2] || (c[2] = (o) => t("change", o))
2078
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(xt, { key: 2 })) : D("", !0)
2078
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), V(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), V(xt, { 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",
@@ -2130,7 +2130,7 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2130
2130
  f("p", Ta, [
2131
2131
  Ia,
2132
2132
  f("span", La, [
2133
- V(_e, { name: "rightArrow" }),
2133
+ X(_e, { name: "rightArrow" }),
2134
2134
  f("span", {
2135
2135
  class: "flex items-center leading-4",
2136
2136
  "data-xine": x(k).lack
@@ -2200,7 +2200,7 @@ const za = {
2200
2200
  styleInfo: {}
2201
2201
  },
2202
2202
  setup(e, { expose: t }) {
2203
- const a = e, l = q(), n = q();
2203
+ const a = e, l = Y(), n = Y();
2204
2204
  t({ col: l, colView: n });
2205
2205
  const c = A(() => {
2206
2206
  const { top: r, width: d, height: p, left: N } = a.styleInfo;
@@ -2220,24 +2220,24 @@ const za = {
2220
2220
  r.showColBorder ? (i(), u("div", {
2221
2221
  key: 0,
2222
2222
  class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
2223
- style: Q(c.value)
2223
+ style: q(c.value)
2224
2224
  }, [
2225
2225
  f("span", {
2226
2226
  class: "absolute border border-black",
2227
- style: Q(o.value)
2227
+ style: q(o.value)
2228
2228
  }, null, 4)
2229
2229
  ], 6)) : D("", !0),
2230
2230
  f("div", {
2231
2231
  class: "absolute overflow-hidden",
2232
2232
  ref_key: "colView",
2233
2233
  ref: n,
2234
- style: Q(r.styleInfo)
2234
+ style: q(r.styleInfo)
2235
2235
  }, [
2236
2236
  f("div", {
2237
2237
  ref_key: "col",
2238
2238
  ref: l,
2239
2239
  class: "overflow-hidden __col__",
2240
- style: Q({ height: r.styleInfo.contentHeight })
2240
+ style: q({ height: r.styleInfo.contentHeight })
2241
2241
  }, [
2242
2242
  it(r.$slots, "default", {}, void 0, !0)
2243
2243
  ], 4)
@@ -2245,8 +2245,8 @@ const za = {
2245
2245
  ], 64));
2246
2246
  }
2247
2247
  });
2248
- const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
2249
- ja
2248
+ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), ja = ["data-xine"], Ka = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
2249
+ Ka
2250
2250
  ], Xa = ["data-xine"], Ja = /* @__PURE__ */ ee({
2251
2251
  __name: "bind",
2252
2252
  props: {
@@ -2256,10 +2256,10 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2256
2256
  isBindFlag: { type: Boolean }
2257
2257
  },
2258
2258
  setup(e) {
2259
- const t = q(), a = ["学校", "班级", "准考证号", "姓名"];
2259
+ const t = Y(), a = ["学校", "班级", "准考证号", "姓名"];
2260
2260
  return (l, n) => l.isBindFlag ? (i(), u("div", {
2261
2261
  key: 0,
2262
- style: Q({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
2262
+ style: q({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
2263
2263
  class: oe([l.currentPage % 2 && "right_view"]),
2264
2264
  ref_key: "view",
2265
2265
  ref: t
@@ -2267,11 +2267,11 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2267
2267
  l.currentPage % 2 ? (i(), u("div", {
2268
2268
  key: 0,
2269
2269
  class: "flex items-center justify-center origin-top-left border-b end_view",
2270
- style: Q({ width: `${l.height - 20}px`, height: `${l.width}px` })
2270
+ style: q({ width: `${l.height - 20}px`, height: `${l.width}px` })
2271
2271
  }, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(), u("div", {
2272
2272
  key: 1,
2273
2273
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2274
- style: Q({ width: `${l.height - 20}px` })
2274
+ style: q({ width: `${l.height - 20}px` })
2275
2275
  }, [
2276
2276
  (i(), u(P, null, Z(a, (c) => f("p", {
2277
2277
  key: c,
@@ -2283,7 +2283,7 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (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)
@@ -2313,11 +2313,11 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2313
2313
  }, [
2314
2314
  (i(!0), u(P, null, Z(l.value, (o, s) => (i(), u("li", {
2315
2315
  class: "flex items-center justify-center relative score_line",
2316
- style: Q({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2316
+ style: q({ width: `${x(Ke)[n.layout.scoreLineSize].value}px` }),
2317
2317
  "data-xine": x(k).score_item
2318
2318
  }, [
2319
2319
  f("span", il, J(o), 1),
2320
- V(_e, {
2320
+ X(_e, {
2321
2321
  class: "p-0",
2322
2322
  name: a[s]
2323
2323
  }, null, 8, ["name"])
@@ -2333,26 +2333,26 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2333
2333
  static: { type: Boolean }
2334
2334
  },
2335
2335
  setup(e) {
2336
- const t = e, a = q(), l = q(!1), n = q(!1), c = q(!1), o = q([]), s = A(() => t.layout.scoreAddStars === Ze.star.code);
2336
+ const t = e, a = Y(), l = Y(!1), n = Y(!1), c = Y(!1), o = Y([]), s = A(() => t.layout.scoreAddStars === Ze.star.code);
2337
2337
  De(() => [t.item.score], () => r()), Xe(() => {
2338
2338
  r();
2339
2339
  });
2340
2340
  const r = () => {
2341
2341
  !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
2342
2342
  let p = [];
2343
- if (t.item.scoreLineType === Ke.custom)
2343
+ if (t.item.scoreLineType === je.custom)
2344
2344
  p = [[...t.item.customScore, 0]];
2345
2345
  else if (t.item.scoreStep)
2346
2346
  p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((N) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * N)).reverse());
2347
2347
  else {
2348
- const N = a.value.offsetWidth, h = je[t.layout.scoreLineSize].value + 1;
2348
+ const N = a.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
2349
2349
  l.value = N - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), p.push([...Array(10).keys()].reverse()), c.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2350
2350
  }
2351
2351
  t.item.hasHalfScore && p.push([0.5]), o.value = p, n.value = !!p.flat().find((N) => `${N}`.length > 3);
2352
2352
  });
2353
2353
  }, d = (p) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - p - 1] : [k.score_base, k.score_tenbit][o.value.length - p - 1];
2354
2354
  return (p, N) => p.layout.handReadFlag ? (i(), u(P, { key: 0 }, [
2355
- p.layout.simpleScoreBarFlag && !p.static ? (i(), j(rl, {
2355
+ p.layout.simpleScoreBarFlag && !p.static ? (i(), V(rl, {
2356
2356
  key: 0,
2357
2357
  item: p.item,
2358
2358
  layout: p.layout
@@ -2368,15 +2368,15 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2368
2368
  class: "flex divide-x divide-solid",
2369
2369
  "data-xine": d(F)
2370
2370
  }, [
2371
- (i(!0), u(P, null, Z(h, (G) => (i(), u("li", {
2371
+ (i(!0), u(P, null, Z(h, (Q) => (i(), u("li", {
2372
2372
  class: "flex items-center justify-center flex-shrink-0 score_line",
2373
- style: Q({ width: `${x(je)[p.layout.scoreLineSize].value}px` }),
2374
- "data-xine": G.toString() ? x(k).score_item : ""
2373
+ style: q({ width: `${x(Ke)[p.layout.scoreLineSize].value}px` }),
2374
+ "data-xine": Q.toString() ? x(k).score_item : ""
2375
2375
  }, [
2376
2376
  f("span", {
2377
2377
  class: oe(["whitespace-nowrap", s.value && "origin-right", n.value && "scale-75"])
2378
- }, J(p.layout.minusFlag && G.toString().length && !s.value ? "-" : "") + J(G), 3),
2379
- s.value && G.toString().length ? (i(), j(_e, {
2378
+ }, J(p.layout.minusFlag && Q.toString().length && !s.value ? "-" : "") + J(Q), 3),
2379
+ s.value && Q.toString().length ? (i(), V(_e, {
2380
2380
  key: 0,
2381
2381
  class: "px-0 py-0 -translate-y-[1px]",
2382
2382
  name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
@@ -2400,7 +2400,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2400
2400
  }, [
2401
2401
  pl,
2402
2402
  ml,
2403
- V(tt, {
2403
+ X(tt, {
2404
2404
  item: { ...t.info, score: t.info.writeScore, hasHalfScore: t.layout.halfScoreFlag },
2405
2405
  layout: t.layout,
2406
2406
  static: ""
@@ -2432,7 +2432,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2432
2432
  "data-tag": t.item.__tag__,
2433
2433
  "data-block": x(ut)
2434
2434
  }, [
2435
- V(Ae, {
2435
+ X(Ae, {
2436
2436
  "data-content": t.item.id,
2437
2437
  data: t.item.content
2438
2438
  }, null, 8, ["data-content", "data"])
@@ -2489,7 +2489,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2489
2489
  ], 8, Fl)
2490
2490
  ])) : D("", !0)
2491
2491
  ])
2492
- ], 42, xl)) : (i(), j(vl, {
2492
+ ], 42, xl)) : (i(), V(vl, {
2493
2493
  key: 0,
2494
2494
  class: oe([s.isActive && "border-current", s.isFirst && "mt-9"]),
2495
2495
  item: s.item,
@@ -2515,10 +2515,10 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2515
2515
  }, [
2516
2516
  (i(!0), u(P, null, Z(t.item.optList, (l, n) => (i(), u("span", {
2517
2517
  class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[n]) && "bg-success border-success"]),
2518
- style: Q({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
2518
+ style: q({ 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
- V(_e, {
2521
+ X(_e, {
2522
2522
  width: 1,
2523
2523
  name: x(kt)[n]
2524
2524
  }, null, 8, ["name"])
@@ -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__ */ ee({
@@ -2551,20 +2551,20 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2551
2551
  l.item.style[x(y)[l.layout.mode].decide_a] === x(L).decide_1 ? (i(), u(P, { key: 0 }, [
2552
2552
  f("span", {
2553
2553
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2554
- style: Q(a.value),
2554
+ style: q(a.value),
2555
2555
  "data-xine": x(k).fill + "0"
2556
2556
  }, [
2557
- V(_e, {
2557
+ X(_e, {
2558
2558
  name: "right",
2559
2559
  width: 1
2560
2560
  })
2561
2561
  ], 14, ql),
2562
2562
  f("span", {
2563
2563
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2564
- style: Q(a.value),
2564
+ style: q(a.value),
2565
2565
  "data-xine": x(k).fill + "1"
2566
2566
  }, [
2567
- V(_e, {
2567
+ X(_e, {
2568
2568
  name: "wrong",
2569
2569
  width: 1
2570
2570
  })
@@ -2572,12 +2572,12 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2572
2572
  ], 64)) : (i(), u(P, { key: 1 }, [
2573
2573
  f("span", {
2574
2574
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2575
- style: Q(a.value),
2575
+ style: q(a.value),
2576
2576
  "data-xine": x(k).fill + "0"
2577
- }, jl, 14, Ul),
2577
+ }, Kl, 14, Ul),
2578
2578
  f("span", {
2579
2579
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2580
- style: Q(a.value),
2580
+ style: q(a.value),
2581
2581
  "data-xine": x(k).fill + "1"
2582
2582
  }, Jl, 14, Vl)
2583
2583
  ], 64))
@@ -2607,7 +2607,7 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2607
2607
  }, [
2608
2608
  l.showScoreCn ? (i(), u("span", ln, [
2609
2609
  f("span", null, J(l.layout.minusFlag && !a.value ? "-" : "") + J(l.item.score), 1),
2610
- a.value ? (i(), j(_e, {
2610
+ a.value ? (i(), V(_e, {
2611
2611
  key: 0,
2612
2612
  class: "px-0 py-0 -translate-y-[1px]",
2613
2613
  name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
@@ -2627,10 +2627,10 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2627
2627
  return (a, l) => (i(), u(P, null, [
2628
2628
  f("div", {
2629
2629
  class: "flex-1 border-b self-stretch red_sheet",
2630
- style: Q({ height: `${20 + a.item.style[x(y)[t.layout.mode].fill_e]}px` }),
2630
+ style: q({ height: `${20 + a.item.style[x(y)[t.layout.mode].fill_e]}px` }),
2631
2631
  "data-xine": x(k).fill_line
2632
2632
  }, null, 12, rn),
2633
- a.layout.handReadFlag ? (i(), j(sn, {
2633
+ a.layout.handReadFlag ? (i(), V(sn, {
2634
2634
  key: 0,
2635
2635
  item: a.item,
2636
2636
  layout: a.layout,
@@ -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
- V(tt, {
2663
+ X(tt, {
2664
2664
  item: t.item,
2665
2665
  layout: t.layout
2666
2666
  }, null, 8, ["item", "layout"])
2667
2667
  ])
2668
2668
  ], 8, pn)),
2669
- V(Ae, {
2669
+ X(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, a) => (i(), u(P, null, [
2687
2687
  bn,
2688
- V(tt, {
2688
+ X(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(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2718
2718
  layout: {}
2719
2719
  },
2720
2720
  setup(e) {
2721
- const t = e, a = q(0), l = q({}), n = q(), c = q(), o = q([]), s = A(() => {
2721
+ const t = e, a = Y(0), l = Y({}), n = Y(), c = Y(), o = Y([]), s = 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, N.value.length, 0);
2723
2723
  return h ? Math.ceil(h / (a.value || h)) : 0;
2724
2724
  }), r = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = A(() => ({
@@ -2732,15 +2732,15 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2732
2732
  a.value = Math.floor(n.value.offsetWidth / r.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2733
2733
  if (!n.value)
2734
2734
  return;
2735
- const T = n.value.getBoundingClientRect(), B = c.value[0].getBoundingClientRect();
2735
+ const $ = n.value.getBoundingClientRect(), z = c.value[0].getBoundingClientRect();
2736
2736
  l.value = {
2737
- left: `${B.left - T.left}px`,
2738
- top: `${B.top - T.top}px`
2737
+ left: `${z.left - $.left}px`,
2738
+ top: `${z.top - $.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], G = Math.floor(h / F), Y = Math.round(G / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
2743
- o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, G) - 1 || 0).keys()].map((T) => (T + 1) * Y).concat(h / F < 2 ? F : h).filter((T) => T);
2742
+ const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Q = Math.floor(h / F), j = Math.round(Q / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
2743
+ o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Q) - 1 || 0).keys()].map(($) => ($ + 1) * j).concat(h / F < 2 ? F : h).filter(($) => $);
2744
2744
  }), (h, F) => (i(), u("div", {
2745
2745
  class: "w-full relative min-h-[10rem]",
2746
2746
  ref_key: "view",
@@ -2754,13 +2754,13 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2754
2754
  }, [
2755
2755
  it(h.$slots, "default"),
2756
2756
  f("div", On, [
2757
- V(tt, {
2757
+ X(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 ? (i(), j(Ae, {
2763
+ h.item.beforeArt && !h.item.startAnswerLen ? (i(), V(Ae, {
2764
2764
  key: 1,
2765
2765
  data: h.item.beforeArt,
2766
2766
  "data-bart": h.item.id,
@@ -2771,31 +2771,31 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2771
2771
  "data-block": x(Ee),
2772
2772
  "data-guide": h.item.id,
2773
2773
  class: oe(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2774
- style: Q({ ...l.value, width: d.value.width, lineHeight: `${r.value + 7}px` })
2774
+ style: q({ ...l.value, width: d.value.width, lineHeight: `${r.value + 7}px` })
2775
2775
  }, J(h.item.beforeGuide), 15, zn)) : D("", !0),
2776
- (i(!0), u(P, null, Z(s.value, (G, Y) => (i(), u("p", {
2776
+ (i(!0), u(P, null, Z(s.value, (Q, j) => (i(), u("p", {
2777
2777
  ref_for: !0,
2778
2778
  ref_key: "line",
2779
2779
  ref: c,
2780
2780
  class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2781
2781
  "data-block": x(ke),
2782
- "data-size": h.item.startAnswerLen + (Y + 1) * a.value,
2783
- style: Q(d.value)
2782
+ "data-size": h.item.startAnswerLen + (j + 1) * a.value,
2783
+ style: q(d.value)
2784
2784
  }, [
2785
- h.item.artBlock ? (i(!0), u(P, { key: 0 }, Z(a.value, (T, B) => (i(), u("span", {
2786
- class: oe([N.value[Y * a.value + B] && "flex items-center justify-center"]),
2787
- style: Q(p.value)
2788
- }, J(N.value[Y * a.value + B]), 7))), 256)) : D("", !0),
2789
- (i(!0), u(P, null, Z(o.value, (T) => (i(), u(P, null, [
2790
- h.item.startAnswerLen + Y * a.value < T && h.item.startAnswerLen + (Y + 1) * a.value >= T ? (i(), u("span", {
2785
+ h.item.artBlock ? (i(!0), u(P, { key: 0 }, Z(a.value, ($, z) => (i(), u("span", {
2786
+ class: oe([N.value[j * a.value + z] && "flex items-center justify-center"]),
2787
+ style: q(p.value)
2788
+ }, J(N.value[j * a.value + z]), 7))), 256)) : D("", !0),
2789
+ (i(!0), u(P, null, Z(o.value, ($) => (i(), u(P, null, [
2790
+ h.item.startAnswerLen + j * a.value < $ && h.item.startAnswerLen + (j + 1) * a.value >= $ ? (i(), u("span", {
2791
2791
  key: 0,
2792
2792
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2793
- style: Q({ left: `${(T - h.item.startAnswerLen) % a.value * r.value}px` }),
2793
+ style: q({ left: `${($ - h.item.startAnswerLen) % a.value * r.value}px` }),
2794
2794
  "data-block": x(Ee)
2795
- }, J(T), 13, Rn)) : D("", !0)
2795
+ }, J($), 13, Rn)) : D("", !0)
2796
2796
  ], 64))), 256))
2797
2797
  ], 14, Hn))), 256)),
2798
- h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(), j(Ae, {
2798
+ h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(), V(Ae, {
2799
2799
  key: 3,
2800
2800
  data: h.item.afterArt,
2801
2801
  "data-aart": h.item.id,
@@ -2815,13 +2815,13 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2815
2815
  class: "px-2 py-3 w-full border border-dashed rounded-lg",
2816
2816
  "data-block": x(ut)
2817
2817
  }, [
2818
- V(Ae, {
2818
+ X(Ae, {
2819
2819
  "data-content": a.item.id,
2820
2820
  data: a.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__ */ ee({
@@ -2835,14 +2835,14 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2835
2835
  const t = e, a = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((c) => c.split(".")).map((c) => t.isFull ? c : c.map((o, s) => s === c.length - 1 ? o : ""))), l = A(() => t.width ? `${t.width}em` : "");
2836
2836
  return (n, c) => (i(), u("span", {
2837
2837
  class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2838
- style: Q({ width: l.value }),
2838
+ style: q({ width: l.value }),
2839
2839
  "data-block": x(Ee)
2840
2840
  }, [
2841
2841
  (i(!0), u(P, null, Z(a.value, (o, s) => (i(), u(P, null, [
2842
2842
  s ? (i(), u("span", Qn, " - ")) : D("", !0),
2843
2843
  o[0] ? (i(), u("span", Un, J(o[0]), 1)) : D("", !0),
2844
- o[1] ? (i(), u("span", Kn, "(" + J(o[1]) + ")", 1)) : D("", !0),
2845
- o[2] ? (i(), u("span", jn, J(o[2]), 1)) : D("", !0)
2844
+ o[1] ? (i(), u("span", jn, "(" + J(o[1]) + ")", 1)) : D("", !0),
2845
+ o[2] ? (i(), u("span", Kn, J(o[2]), 1)) : D("", !0)
2846
2846
  ], 64))), 256))
2847
2847
  ], 14, qn));
2848
2848
  }
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2894
2894
  dbclick: null
2895
2895
  },
2896
2896
  setup(e, { emit: t }) {
2897
- const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = q(""), c = A(() => {
2897
+ const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), c = A(() => {
2898
2898
  const _ = a ? {
2899
2899
  choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
2900
2900
  fillSheet: [m.fill, m.fill_english]
@@ -2921,13 +2921,13 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2921
2921
  }), _ = _.map((C) => {
2922
2922
  var w;
2923
2923
  if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === L.choice_3) {
2924
- const R = Math.floor(e.width / (Math.max(...C.children.map((O) => O.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2924
+ const R = Math.floor(e.width / (Math.max(...C.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2925
2925
  if (C.children.length > R * 5) {
2926
- const O = C.children.length % 4 > 4 ? 5 : 4;
2927
- return [...Array(Math.ceil(C.children.length / (R * O))).keys()].map((ye, pe) => ({
2926
+ const B = C.children.length % 4 > 4 ? 5 : 4;
2927
+ return [...Array(Math.ceil(C.children.length / (R * B))).keys()].map((ye, pe) => ({
2928
2928
  ...C,
2929
2929
  groupIndex: pe,
2930
- children: C.children.slice(pe * R * O, (pe + 1) * R * O)
2930
+ children: C.children.slice(pe * R * B, (pe + 1) * R * B)
2931
2931
  }));
2932
2932
  } else
2933
2933
  return C;
@@ -2971,20 +2971,20 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2971
2971
  })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((fe) => {
2972
2972
  var ue;
2973
2973
  return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
2974
- })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), O = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * O) / (O - 1) - 10;
2974
+ })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * B) / (B - 1) - 10;
2975
2975
  switch (_.styleInfo[y[e.layout.mode].choice_a]) {
2976
2976
  case L.choice_1:
2977
2977
  _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2978
2978
  "grid-auto-flow": e.noPortrait ? "row" : "column",
2979
- "grid-template-columns": `repeat(${O}, 1fr)`,
2980
- "grid-template-rows": `repeat(${Math.ceil(_.children.length / O)}, 1fr)`,
2979
+ "grid-template-columns": `repeat(${B}, 1fr)`,
2980
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
2981
2981
  "column-gap": `${ye}px`
2982
2982
  });
2983
2983
  break;
2984
2984
  case L.choice_3:
2985
2985
  C = {
2986
- "grid-template-columns": `repeat(${O}, 1fr)`,
2987
- "grid-template-rows": `repeat(${Math.ceil(_.children.length / O)}, 1fr)`
2986
+ "grid-template-columns": `repeat(${B}, 1fr)`,
2987
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
2988
2988
  }, _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2989
2989
  ...C,
2990
2990
  "grid-auto-flow": e.noPortrait ? "row" : "column",
@@ -2997,8 +2997,8 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2997
2997
  ComputPolymerItemStyle: (_, C) => {
2998
2998
  var w;
2999
2999
  if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === L.choice_2) {
3000
- const R = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), O = Math.floor(e.width / (R * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - R * O * _.style[y[e.layout.mode].choice_c]) / (O - 1 || 1);
3001
- if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * O) || O < 2))
3000
+ const R = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (R * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - R * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
3001
+ if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
3002
3002
  return {
3003
3003
  "margin-right": `${ye}px`
3004
3004
  };
@@ -3011,15 +3011,15 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
3011
3011
  if (!a)
3012
3012
  return w;
3013
3013
  if (l.includes(_.problemType)) {
3014
- let O = {};
3014
+ let B = {};
3015
3015
  if (Object.values(rt).includes(e.data.problemType)) {
3016
3016
  const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, pe = Math.min(Math.floor(e.width / ye), e.data.style[y[e.layout.mode].choice_d] || 10);
3017
- O = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
3017
+ B = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
3018
3018
  }
3019
3019
  w = {
3020
3020
  ...w,
3021
3021
  display: "inline-flex",
3022
- ...O
3022
+ ...B
3023
3023
  };
3024
3024
  } else
3025
3025
  [m.fill, m.fill_english].includes(_.problemType) && (w = {
@@ -3065,27 +3065,27 @@ function os(e, t, a, l, n, c) {
3065
3065
  key: 0,
3066
3066
  "data-block": l.ComputBlock(s),
3067
3067
  class: oe([...l.ComputPolymerCls(s)]),
3068
- style: Q(l.ComputPolymerStyle(s))
3068
+ style: q(l.ComputPolymerStyle(s))
3069
3069
  }, [
3070
3070
  (i(!0), u(P, null, Z(s.children, (r, d) => {
3071
3071
  var p;
3072
3072
  return i(), u("div", {
3073
3073
  class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
3074
- style: Q(l.ComputPolymerItemStyle(r, d)),
3074
+ style: q(l.ComputPolymerItemStyle(r, d)),
3075
3075
  "data-tag": r.__tag__,
3076
3076
  "data-block": l.ComputBlock(r),
3077
3077
  "data-xine": l.Gps_cls.item + r._sub,
3078
3078
  onMouseenter: (N) => l.handleHoverIn(r),
3079
3079
  onMouseleave: (N) => l.handleHoverOut(r)
3080
3080
  }, [
3081
- r.problemType ? (i(), j(o, {
3081
+ r.problemType ? (i(), V(o, {
3082
3082
  key: 0,
3083
3083
  sub: r.sub,
3084
3084
  isFull: !!l.ModuleTag,
3085
3085
  width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0,
3086
3086
  class: oe(["sub_item", l.ComputAbs(r) && "absolute left-0 top-3 left_sub"])
3087
3087
  }, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
3088
- (i(), j(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), null, 16))
3088
+ (i(), V(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), null, 16))
3089
3089
  ], 46, Zn);
3090
3090
  }), 256))
3091
3091
  ], 14, Jn)) : (i(!0), u(P, { key: 1 }, Z(s.children, (r, d) => {
@@ -3093,7 +3093,7 @@ function os(e, t, a, l, n, c) {
3093
3093
  return i(), u(P, null, [
3094
3094
  f("div", {
3095
3095
  class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
3096
- style: Q(l.ComputStyle(r, d)),
3096
+ style: q(l.ComputStyle(r, d)),
3097
3097
  "data-tag": r.__tag__,
3098
3098
  "data-block": l.ComputBlock(r),
3099
3099
  "data-xine": l.Gps_cls.item + r._sub,
@@ -3102,15 +3102,15 @@ function os(e, t, a, l, n, c) {
3102
3102
  onMouseenter: (N) => l.handleHoverIn(r),
3103
3103
  onMouseleave: (N) => l.handleHoverOut(r)
3104
3104
  }, [
3105
- r.problemType && !l.ComputAbs(r) ? (i(), j(o, {
3105
+ r.problemType && !l.ComputAbs(r) ? (i(), V(o, {
3106
3106
  key: 0,
3107
3107
  sub: r.sub,
3108
3108
  isFull: !!l.ModuleTag,
3109
3109
  width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
3110
3110
  }, null, 8, ["sub", "isFull", "width"])) : D("", !0),
3111
- (i(), j(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), {
3111
+ (i(), V(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), {
3112
3112
  default: Ft(() => [
3113
- V(o, {
3113
+ X(o, {
3114
3114
  sub: r.sub,
3115
3115
  isFull: !!l.ModuleTag,
3116
3116
  width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
@@ -3124,8 +3124,8 @@ function os(e, t, a, l, n, c) {
3124
3124
  }), 256))
3125
3125
  ], 64))), 256);
3126
3126
  }
3127
- const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10, z = (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, a) => {
3128
- const l = z(se(`${k.item}${e._sub}`, t));
3127
+ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10, O = (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, a) => {
3128
+ const l = O(se(`${k.item}${e._sub}`, t));
3129
3129
  return !(l.top >= a.top + a.height || l.top + l.height < a.top);
3130
3130
  }, ce = (e, t, a = !1) => !e || !t ? null : {
3131
3131
  x: e.x - t.x,
@@ -3140,7 +3140,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3140
3140
  width: 0,
3141
3141
  height: 0
3142
3142
  };
3143
- const c = z(e), o = Math.min(t.height, c.y < t.y ? c.y + c.height - t.y : c.y + c.height > t.y + t.height || n ? t.y + t.height - c.y : c.height);
3143
+ const c = O(e), o = Math.min(t.height, c.y < t.y ? c.y + c.height - t.y : c.y + c.height > t.y + t.height || n ? t.y + t.height - c.y : c.height);
3144
3144
  return o > 5 ? {
3145
3145
  x: c.x - a.x,
3146
3146
  y: Math.max(c.y, t.y) + (l ? 1 : 0) - a.y,
@@ -3163,8 +3163,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3163
3163
  return null;
3164
3164
  const l = {
3165
3165
  // area: GetPosition(el, config.pageDom[0]),
3166
- area: ce(z(a), z(e.pageDom[0])),
3167
- list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((c) => ce(z(c), z(e.pageDom[0]), !0)))
3166
+ area: ce(O(a), O(e.pageDom[0])),
3167
+ list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((c) => ce(O(c), O(e.pageDom[0]), !0)))
3168
3168
  };
3169
3169
  return {
3170
3170
  choiceGridSequenceNOList: [...Array(10).keys()],
@@ -3181,35 +3181,35 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3181
3181
  cardColumnCount: e.layout.column,
3182
3182
  cardColumnCount2: e.layout.backColumn,
3183
3183
  doubleCard: !0,
3184
- paperWidth: Math.round(g[e.layout.paper].width * Fe),
3185
- paperHeight: Math.round(g[e.layout.paper].height * Fe)
3184
+ paperWidth: Math.round(b[e.layout.paper].width * Fe),
3185
+ paperHeight: Math.round(b[e.layout.paper].height * Fe)
3186
3186
  }), ss = (e) => {
3187
- const t = z(e.pageDom[0]), a = z(e.pageDom[1]), l = (n) => {
3187
+ const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (n) => {
3188
3188
  var o;
3189
3189
  const c = e.layout.backColumn > 2 ? {
3190
- trdLeftTopPos: ne(ce(z(Te(`${k.point}t`, e.pageDom[n])[1]), z(e.pageDom[n]))),
3191
- trdLeftBottomPos: ne(ce(z(Te(`${k.point}b`, e.pageDom[n])[1]), z(e.pageDom[n])))
3190
+ trdLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[1]), O(e.pageDom[n]))),
3191
+ trdLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[1]), O(e.pageDom[n])))
3192
3192
  } : {};
3193
3193
  return (o = Oe.find((s) => s.code === e.layout.paper)) != null && o.isMultCol ? {
3194
- secLeftTopPos: ne(ce(z(Te(`${k.point}t`, e.pageDom[n])[0]), z(e.pageDom[n]))),
3195
- secLeftBottomPos: ne(ce(z(Te(`${k.point}b`, e.pageDom[n])[0]), z(e.pageDom[n]))),
3194
+ secLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3195
+ secLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3196
3196
  ...c
3197
3197
  } : null;
3198
3198
  };
3199
3199
  return {
3200
3200
  // 取第一/二页定位点信息
3201
- leftTopPos: ne(ce(z(se(`${k.point}lt`, e.pageDom[0])), t)),
3202
- rightTopPos: ne(ce(z(se(`${k.point}rt`, e.pageDom[0])), t)),
3203
- leftBottomPos: ne(ce(z(se(`${k.point}lb`, e.pageDom[0])), t)),
3204
- rightBottomPos: ne(ce(z(se(`${k.point}rb`, e.pageDom[0])), t)),
3201
+ leftTopPos: ne(ce(O(se(`${k.point}lt`, e.pageDom[0])), t)),
3202
+ rightTopPos: ne(ce(O(se(`${k.point}rt`, e.pageDom[0])), t)),
3203
+ leftBottomPos: ne(ce(O(se(`${k.point}lb`, e.pageDom[0])), t)),
3204
+ rightBottomPos: ne(ce(O(se(`${k.point}rb`, e.pageDom[0])), t)),
3205
3205
  // waistAuxAnchorInfo: getAuxInfo(0, true),
3206
3206
  verticalAuxInfo: [
3207
- ne(ce(z(se(`${k.point}l`, e.pageDom[0])), t)),
3208
- ne(ce(z(se(`${k.point}r`, e.pageDom[0])), t))
3207
+ ne(ce(O(se(`${k.point}l`, e.pageDom[0])), t)),
3208
+ ne(ce(O(se(`${k.point}r`, e.pageDom[0])), t))
3209
3209
  ],
3210
3210
  verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
3211
- ne(ce(z(se(`${k.point}l`, e.pageDom[1])), a)),
3212
- ne(ce(z(se(`${k.point}r`, e.pageDom[1])), a))
3211
+ ne(ce(O(se(`${k.point}l`, e.pageDom[1])), a)),
3212
+ ne(ce(O(se(`${k.point}r`, e.pageDom[1])), a))
3213
3213
  ] : null,
3214
3214
  auxAnchorInfo: l(0),
3215
3215
  auxAnchorInfo2: e.pageDom[1] ? l(1) : null
@@ -3220,8 +3220,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3220
3220
  const l = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3221
3221
  t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
3222
3222
  }
3223
- let a = ce(z(se(k.page, e.pageDom[e.pageTotal - 1])), z(e.pageDom[e.pageTotal - 1]));
3224
- return a = { ...a, y: a.y % (g[e.layout.paper].height + (e.pageMargin || 0)) }, [
3223
+ let a = ce(O(se(k.page, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]));
3224
+ return a = { ...a, y: a.y % (b[e.layout.paper].height + (e.pageMargin || 0)) }, [
3225
3225
  {
3226
3226
  // 固定值
3227
3227
  choiceQuestionCount: 1,
@@ -3230,7 +3230,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3230
3230
  // 页码区块位置,部分需动态获取 x y width height
3231
3231
  choiceQuestionPosition: ne(a, !0),
3232
3232
  // 页码点区块第一个页码点的位置,部分需动态获取
3233
- firstChoicePosition: ne(ce(z(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), z(e.pageDom[e.pageTotal - 1]))),
3233
+ firstChoicePosition: ne(ce(O(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]))),
3234
3234
  // 页码点最大值,展开为数组
3235
3235
  choiceGridSequenceNOList: dt.filter((l, n) => n < e.pageTotal),
3236
3236
  // 排列方向
@@ -3249,9 +3249,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3249
3249
  // 固定值
3250
3250
  questionNOList: [1],
3251
3251
  // 方框业务坐标
3252
- choiceQuestionPosition: ne(ce(z(t), z(e.pageDom[0])), !0),
3252
+ choiceQuestionPosition: ne(ce(O(t), O(e.pageDom[0])), !0),
3253
3253
  // 数据坐标
3254
- firstChoicePosition: ne(ce(z(t), z(e.pageDom[0]))),
3254
+ firstChoicePosition: ne(ce(O(t), O(e.pageDom[0]))),
3255
3255
  // 固定值
3256
3256
  choiceGridSequenceNOList: [
3257
3257
  "true"
@@ -3262,7 +3262,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3262
3262
  xColOffset: 0
3263
3263
  } : null;
3264
3264
  }, cs = (e) => {
3265
- let t = ce(z(se(k.en_code, e.pageDom[0])), z(e.pageDom[0]));
3265
+ let t = ce(O(se(k.en_code, e.pageDom[0])), O(e.pageDom[0]));
3266
3266
  return ne(t);
3267
3267
  }, ds = (e) => {
3268
3268
  const t = se(k.write_view, e.pageDom[0]);
@@ -3272,9 +3272,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3272
3272
  return {
3273
3273
  id: "0",
3274
3274
  problemType: m.slove,
3275
- position: ce(z(t), z(e.pageDom[0])),
3275
+ position: ce(O(t), O(e.pageDom[0])),
3276
3276
  scoreList: a.map((l, n) => ({
3277
- position: ce(z(a[n]), z(e.pageDom[0])),
3277
+ position: ce(O(a[n]), O(e.pageDom[0])),
3278
3278
  itemPosition: {
3279
3279
  width: a[n].offsetWidth
3280
3280
  },
@@ -3335,56 +3335,56 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3335
3335
  return [...Array(e.pageDom.length).keys()].map((n) => {
3336
3336
  const c = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
3337
3337
  return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => c + s < t.length).map((o, s) => {
3338
- const r = e.pageDom[n], d = z(r), p = e.colDom[c + s], N = z(p), h = e.colViewDom[c + s], F = z(h), G = t[c + s].data.map((T) => T.children.filter((B) => B.problemType)).flat(), Y = t[c + s].data.filter((T) => [ve.one_choice, ve.another_choice].includes(T.problemType) && T.children.length).map((T) => {
3339
- const B = se(`${k.choice}${T.id}`, p);
3340
- return B ? {
3338
+ const r = e.pageDom[n], d = O(r), p = e.colDom[c + s], N = O(p), h = e.colViewDom[c + s], F = O(h), Q = t[c + s].data.map(($) => $.children.filter((z) => z.problemType)).flat(), j = t[c + s].data.filter(($) => [ve.one_choice, ve.another_choice].includes($.problemType) && $.children.length).map(($) => {
3339
+ const z = se(`${k.choice}${$.id}`, p);
3340
+ return z ? {
3341
3341
  id: `${++a}`,
3342
- baseIndex: parseInt(T.children[0]._sub),
3343
- position: ce(z(B), d),
3344
- problemType: T.problemType,
3342
+ baseIndex: parseInt($.children[0]._sub),
3343
+ position: ce(O(z), d),
3344
+ problemType: $.problemType,
3345
3345
  isOneChoice: !0,
3346
- optList: Te(k.fill, B).map((v, E) => ({
3346
+ optList: Te(k.fill, z).map((g, E) => ({
3347
3347
  id: `${a}.${E + 1}`,
3348
- position: ce(z(v), d)
3349
- })).filter((v) => v.position)
3348
+ position: ce(O(g), d)
3349
+ })).filter((g) => g.position)
3350
3350
  } : {};
3351
- }).filter((T) => T.position);
3352
- return G.filter((T) => ls(T, p, N)).map((T, B, v) => {
3351
+ }).filter(($) => $.position);
3352
+ return Q.filter(($) => ls($, p, N)).map(($, z, g) => {
3353
3353
  let E = {};
3354
- l[T._sub] ? l[T._sub] += 1 : l[T._sub] = 1;
3355
- const X = se(`${k.item}${T._sub}`, p);
3356
- switch (T.problemType) {
3354
+ l[$._sub] ? l[$._sub] += 1 : l[$._sub] = 1;
3355
+ const W = se(`${k.item}${$._sub}`, p);
3356
+ switch ($.problemType) {
3357
3357
  case m.choice:
3358
3358
  case m.choice_english:
3359
3359
  case m.choice_multiple:
3360
3360
  case m.cloze:
3361
3361
  E = {
3362
- score: T.score,
3363
- isColumn: T.style[y[e.layout.mode].choice_a] !== L.choice_2,
3364
- optList: T.optList.map((w, R) => ({
3365
- id: `${T._sub}.${R + 1}`,
3366
- position: Me(se(`${k.fill}${R}`, X), F, d)
3362
+ score: $.score,
3363
+ isColumn: $.style[y[e.layout.mode].choice_a] !== L.choice_2,
3364
+ optList: $.optList.map((w, R) => ({
3365
+ id: `${$._sub}.${R + 1}`,
3366
+ position: Me(se(`${k.fill}${R}`, W), F, d)
3367
3367
  })).filter((w) => w.position)
3368
3368
  };
3369
3369
  break;
3370
3370
  case m.decide:
3371
3371
  E = {
3372
3372
  optList: [0, 1].map((w, R) => ({
3373
- id: `${T._sub}.${R + 1}`,
3374
- position: Me(se(`${k.fill}${R}`, X), F, d)
3373
+ id: `${$._sub}.${R + 1}`,
3374
+ position: Me(se(`${k.fill}${R}`, W), F, d)
3375
3375
  })).filter((w) => w.position)
3376
3376
  };
3377
3377
  break;
3378
3378
  case m.fill:
3379
3379
  case m.fill_english:
3380
- const H = Te(k.fill, X), _ = Te(k.fill_line, X);
3380
+ const H = Te(k.fill, W), _ = Te(k.fill_line, W);
3381
3381
  E = {
3382
- children: [T.score].flat().map((w, R, O) => ({
3383
- id: O.length > 1 ? `${T._sub}.${R + 1}` : T._sub,
3382
+ children: [$.score].flat().map((w, R, B) => ({
3383
+ id: B.length > 1 ? `${$._sub}.${R + 1}` : $._sub,
3384
3384
  score: w,
3385
- problemType: T.problemType,
3386
- isHiddenContent: !T.style[y[e.layout.mode].fill_b],
3387
- position: Me(X, F, d),
3385
+ problemType: $.problemType,
3386
+ isHiddenContent: !$.style[y[e.layout.mode].fill_b],
3387
+ position: Me(W, F, d),
3388
3388
  scorePosition: Me(H[R], F, d),
3389
3389
  answerPosition: Me(_[R], F, d)
3390
3390
  })).filter((w) => w.position)
@@ -3393,32 +3393,32 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3393
3393
  case m.slove:
3394
3394
  case m.easy_slove:
3395
3395
  case m.art:
3396
- const C = se(k.score, X);
3396
+ const C = se(k.score, W);
3397
3397
  E = {
3398
3398
  scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, R) => {
3399
3399
  if (!w)
3400
3400
  return {};
3401
- const O = Te(k.score_item, w);
3401
+ const B = Te(k.score_item, w);
3402
3402
  return {
3403
3403
  position: Me(w, F, d, !0),
3404
3404
  itemPosition: {
3405
- width: O[0].offsetWidth
3405
+ width: B[0].offsetWidth
3406
3406
  },
3407
- score: O.map((ye) => Math.abs(parseFloat(ye.innerText)) * (R ? 1 : 10))
3407
+ score: B.map((ye) => Math.abs(parseFloat(ye.innerText)) * (R ? 1 : 10))
3408
3408
  };
3409
3409
  }).filter((w) => w.position) : null
3410
3410
  };
3411
3411
  }
3412
3412
  return {
3413
- id: T._sub,
3414
- elId: T.id,
3415
- colIndex: l[T._sub],
3416
- problemType: T.problemType,
3417
- rootProblemType: T.rootProblemType,
3418
- position: Me(X, F, d, !1, B === v.length - 1 && [m.slove].includes(T.problemType)),
3413
+ id: $._sub,
3414
+ elId: $.id,
3415
+ colIndex: l[$._sub],
3416
+ problemType: $.problemType,
3417
+ rootProblemType: $.rootProblemType,
3418
+ position: Me(W, F, d, !1, z === g.length - 1 && [m.slove].includes($.problemType)),
3419
3419
  ...E
3420
3420
  };
3421
- }).concat(Y).filter((T) => T.position);
3421
+ }).concat(j).filter(($) => $.position);
3422
3422
  });
3423
3423
  }).map((n) => n.flat());
3424
3424
  }, ps = (e) => {
@@ -3554,47 +3554,47 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3554
3554
  let o = [], s = [], r = [];
3555
3555
  return c.cardCuttingSectionList.forEach((d, p, N) => {
3556
3556
  const h = l(d, 1);
3557
- let F = !1;
3558
- if (r.find((Y) => l(Y, 1) === h && Y.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (r.push(d), F = p < N.length - 1), F)
3557
+ let F = !1, Q = !1;
3558
+ if (r.find(($) => l($, 1) === h && $.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (r.push(d), F = p < N.length - 1, Q = !0), F)
3559
3559
  return;
3560
- let G = !1;
3561
- if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(d), G = !0), r.length) {
3560
+ let j = !1;
3561
+ if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(d), j = !0), r.length) {
3562
3562
  if (r.length === 1)
3563
3563
  o.push(r[0]);
3564
3564
  else {
3565
- const Y = r.map((E) => E.subjectiveQuestionSectionList || []).flat(), T = r.map((E) => E.choiceQuestionPartialSectionList || []).flat(), B = T.length ? { choiceQuestionPartialSectionList: T } : {}, v = Y.length ? { subjectiveQuestionSectionList: Y } : {};
3565
+ const $ = r.map((W) => W.subjectiveQuestionSectionList || []).flat(), z = r.map((W) => W.choiceQuestionPartialSectionList || []).flat(), g = z.length ? { choiceQuestionPartialSectionList: z } : {}, E = $.length ? { subjectiveQuestionSectionList: $ } : {};
3566
3566
  o.push({
3567
3567
  ...r[0],
3568
3568
  cuttingSectionQuestionType: r[0].rootProblemType || r[0].cuttingSectionQuestionType,
3569
- ...B,
3570
- ...v
3569
+ ...g,
3570
+ ...E
3571
3571
  });
3572
3572
  }
3573
3573
  r = [];
3574
3574
  }
3575
- G || (p < N.length - 1 ? r.push(d) : o.push(d));
3575
+ j || Q || r.push(d);
3576
3576
  }), o = o.map((d) => ({ ...d, sectionID: l(d, 1) })), { ...c, cardCuttingSectionList: [...o, ...s] };
3577
3577
  }).map((c) => {
3578
3578
  const o = c.cardCuttingSectionList.map((s) => {
3579
3579
  var N;
3580
3580
  let r = [], d = [];
3581
- (N = s.subjectiveQuestionSectionList) == null || N.forEach((h, F, G) => {
3582
- const Y = l(h, Math.max(h.sectionID.split(".").length - 1, 1));
3583
- let T = !1;
3584
- if (d.find((B) => l(B, Math.max(B.sectionID.split(".").length - 1, 1)) === Y && B.secitonSeqID === h.secitonSeqID) && (d.push(h), T = F < G.length - 1), !T) {
3581
+ (N = s.subjectiveQuestionSectionList) == null || N.forEach((h, F, Q) => {
3582
+ const j = l(h, Math.max(h.sectionID.split(".").length - 1, 1));
3583
+ let $ = !1, z = !1;
3584
+ if (d.find((g) => l(g, Math.max(g.sectionID.split(".").length - 1, 2)) === j && g.secitonSeqID === h.secitonSeqID) && (d.push(h), $ = F < Q.length - 1, z = !0), !$) {
3585
3585
  if (d.length) {
3586
3586
  if (d.length === 1)
3587
3587
  r.push(d[0]);
3588
3588
  else {
3589
- const B = d.map((E) => E.singleBlankSectionList || []).flat(), v = B.length ? { singleBlankSectionList: B, unitCount: B.length } : {};
3589
+ const g = d.map((W) => W.singleBlankSectionList || []).flat(), E = g.length ? { singleBlankSectionList: g, unitCount: g.length } : {};
3590
3590
  r.push({
3591
3591
  ...d[0],
3592
- ...v
3592
+ ...E
3593
3593
  });
3594
3594
  }
3595
3595
  d = [];
3596
3596
  }
3597
- F < G.length - 1 ? d.push(h) : r.push(h);
3597
+ z || d.push(h);
3598
3598
  }
3599
3599
  });
3600
3600
  const p = Math.max(...r.map((h) => h.sectionID.split(".").length));
@@ -3608,7 +3608,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3608
3608
  return console.log(n), console.log(a), n;
3609
3609
  }, ys = (e, t) => {
3610
3610
  var l;
3611
- const a = z(e.pageDom[0]);
3611
+ const a = O(e.pageDom[0]);
3612
3612
  return {
3613
3613
  // 正文code
3614
3614
  cardID: e.textCode,
@@ -3625,8 +3625,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3625
3625
  // 试卷二维码
3626
3626
  cardSerialNumber: {
3627
3627
  // 条形码虚线框位置, x, y, width, height
3628
- encodePictureArea: ne(ce(z(se(k.art_code, e.pageDom[0])), a), !0),
3629
- qrCodePosition: ne(ce(z(se(k.art_code, e.pageDom[0])), a)),
3628
+ encodePictureArea: ne(ce(O(se(k.art_code, e.pageDom[0])), a), !0),
3629
+ qrCodePosition: ne(ce(O(se(k.art_code, e.pageDom[0])), a)),
3630
3630
  // 条形码或二维码,不确定,固定此值
3631
3631
  pictureType: "TYPE_QRCODE"
3632
3632
  },
@@ -3657,7 +3657,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3657
3657
  layerType: ns(e),
3658
3658
  // 定位点信息
3659
3659
  ...ss(e),
3660
- pottedLineXPos: e.bindWidth ? (l = ne(ce(z(se(k.bind_line, e.pageDom[0])), a))) == null ? void 0 : l.x : 0,
3660
+ pottedLineXPos: e.bindWidth ? (l = ne(ce(O(se(k.bind_line, e.pageDom[0])), a))) == null ? void 0 : l.x : 0,
3661
3661
  // 页码点信息
3662
3662
  pageSideAnchorsList: is(e),
3663
3663
  // 缺考标记
@@ -3672,7 +3672,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3672
3672
  return {
3673
3673
  engineData: s,
3674
3674
  pageTotal: t.pageTotal,
3675
- format: g[t.layout.paper],
3675
+ format: b[t.layout.paper],
3676
3676
  localData: c,
3677
3677
  extendInfo: { shortCoordinate: r }
3678
3678
  };
@@ -3689,19 +3689,19 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3689
3689
  },
3690
3690
  emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
3691
3691
  setup(e, { emit: t }) {
3692
- const a = e, l = q([]);
3692
+ const a = e, l = Y([]);
3693
3693
  De(() => [a.ColList, a.ImgData, a.TxtData], () => {
3694
3694
  l.value = [], setTimeout(() => {
3695
3695
  var d;
3696
3696
  a.ColList.forEach((p, N) => {
3697
3697
  p.data.map((h) => h.children).flat().filter((h) => [m.slove, m.art].includes(h.problemType) && !h.chunk).forEach((h) => {
3698
- var T;
3699
- const F = (T = a.ColDom[N].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : T.querySelector(`*[data-xine="${k.score}"]`);
3698
+ var $;
3699
+ const F = ($ = a.ColDom[N].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : $.querySelector(`*[data-xine="${k.score}"]`);
3700
3700
  if (!F)
3701
3701
  return;
3702
3702
  F.classList.remove("err_lack");
3703
- const G = window.getComputedStyle(F), Y = [...Array.from(F.children)].map((B) => B.offsetWidth).reduce((B, v) => B + v, 0);
3704
- F.offsetWidth - parseFloat(G.borderLeft) - parseFloat(G.borderRight) < Y && (l.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3703
+ const Q = window.getComputedStyle(F), j = [...Array.from(F.children)].map((z) => z.offsetWidth).reduce((z, g) => z + g, 0);
3704
+ F.offsetWidth - parseFloat(Q.borderLeft) - parseFloat(Q.borderRight) < j && (l.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3705
3705
  });
3706
3706
  });
3707
3707
  const o = (d = document.querySelector(".__layout__")) == null ? void 0 : d.getBoundingClientRect();
@@ -3731,7 +3731,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3731
3731
  class: oe(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
3732
3732
  }, [
3733
3733
  f("span", bs, [
3734
- V(_e, {
3734
+ X(_e, {
3735
3735
  width: 1.6,
3736
3736
  name: l.value.length ? "wrong" : "right"
3737
3737
  }, null, 8, ["name"])
@@ -3782,37 +3782,37 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3782
3782
  return c || (c = Ve(e), he(c).top + c.offsetHeight - t > a && (c = st(c, t, a))), c;
3783
3783
  }, Lt = (e, t, a, l) => {
3784
3784
  const n = (o, s = a) => {
3785
- var Y, T, B;
3786
- const r = o.map((v) => {
3787
- const E = he(v);
3785
+ var j, $, z;
3786
+ const r = o.map((g) => {
3787
+ const E = he(g);
3788
3788
  return {
3789
- el: v,
3789
+ el: g,
3790
3790
  top: E.top - t,
3791
3791
  left: E.left
3792
3792
  };
3793
- }), d = r.filter((v) => v.el.offsetHeight + v.top > s).sort((v, E) => v.top - E.top), p = (Y = d.shift()) == null ? void 0 : Y.el;
3793
+ }), d = r.filter((g) => g.el.offsetHeight + g.top > s).sort((g, E) => g.top - E.top), p = (j = d.shift()) == null ? void 0 : j.el;
3794
3794
  if (!p) {
3795
- const v = document.createElement("div");
3796
- return (T = o[0].parentElement) == null || T.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
3795
+ const g = document.createElement("div");
3796
+ return ($ = o[0].parentElement) == null || $.appendChild(g), g.style.height = s - (he(g).top - t) + "px", g;
3797
3797
  }
3798
3798
  const N = he(p), h = N.top - t, F = N.left;
3799
- if (d.filter((v) => v.top < h + p.offsetHeight && v.top + v.el.offsetHeight - 1 > h && (v.left + v.el.offsetWidth - 1 < F || v.left + 1 > F + p.offsetWidth)).length) {
3800
- const v = (B = r.filter((E) => E.top < h).pop()) == null ? void 0 : B.el;
3801
- if (v != null && v.children.length) {
3802
- const E = nt(v);
3803
- return n(E, h) || v;
3799
+ if (d.filter((g) => g.top < h + p.offsetHeight && g.top + g.el.offsetHeight - 1 > h && (g.left + g.el.offsetWidth - 1 < F || g.left + 1 > F + p.offsetWidth)).length) {
3800
+ const g = (z = r.filter((E) => E.top < h).pop()) == null ? void 0 : z.el;
3801
+ if (g != null && g.children.length) {
3802
+ const E = nt(g);
3803
+ return n(E, h) || g;
3804
3804
  } else
3805
- return v ? he(v).top - t + v.offsetHeight > h ? It(v, t, h) : v : st(p.parentElement, t, h);
3805
+ return g ? he(g).top - t + g.offsetHeight > h ? It(g, t, h) : g : st(p.parentElement, t, h);
3806
3806
  } else {
3807
- const v = getComputedStyle(p);
3808
- if (h + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > s)
3807
+ const g = getComputedStyle(p);
3808
+ if (h + (parseFloat(g.fontSize) + (parseFloat(g.lineHeight) - parseFloat(g.fontSize)) / 2) > s)
3809
3809
  return st(p, t, h);
3810
3810
  const E = Ts(p, s - h, s, l);
3811
3811
  if (E)
3812
3812
  return Ve(E);
3813
3813
  if (p.children.length) {
3814
- const X = nt(p);
3815
- return n(X, s);
3814
+ const W = nt(p);
3815
+ return n(W, s);
3816
3816
  } else
3817
3817
  return It(p, t, s);
3818
3818
  }
@@ -3827,8 +3827,8 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3827
3827
  console.time("layout");
3828
3828
  const s = he(t).top;
3829
3829
  let r = {}, d = 0, p = 0;
3830
- const N = (v) => {
3831
- const E = v % (l + n), X = Math.floor(v / (l + n)) * 2 + (E >= l ? 1 : 0), H = c(v, X);
3830
+ const N = (g) => {
3831
+ const E = g % (l + n), W = Math.floor(g / (l + n)) * 2 + (E >= l ? 1 : 0), H = c(g, W);
3832
3832
  r = {
3833
3833
  top: s,
3834
3834
  width: parseFloat(H.width),
@@ -3836,7 +3836,7 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3836
3836
  };
3837
3837
  };
3838
3838
  let h = [], F = 0;
3839
- const G = () => {
3839
+ const Q = () => {
3840
3840
  N(h.length), t.style.width = `${r.width}px`, h.push({
3841
3841
  top: 0,
3842
3842
  data: [],
@@ -3844,74 +3844,74 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3844
3844
  height: r.height
3845
3845
  }), o([...h]);
3846
3846
  };
3847
- G();
3848
- const Y = (v) => {
3849
- const E = getComputedStyle(v);
3850
- return he(v).top - r.top + parseFloat(E.borderTop) + parseFloat(E.paddingTop) + parseFloat(E.lineHeight) > h[h.length - 1].height;
3851
- }, T = (v) => {
3852
- const E = getComputedStyle(v);
3853
- return he(v).top + v.offsetHeight - r.top - (v.dataset.block === ke ? 0 : parseFloat(E.paddingBottom) - parseFloat(E.borderBottom)) <= h[h.length - 1].height;
3854
- }, B = (v = JSON.parse(JSON.stringify(a[F] || {}))) => {
3855
- if (F >= a.length || !Object.keys(v).length) {
3847
+ Q();
3848
+ const j = (g) => {
3849
+ const E = getComputedStyle(g);
3850
+ return he(g).top - r.top + parseFloat(E.borderTop) + parseFloat(E.paddingTop) + parseFloat(E.lineHeight) > h[h.length - 1].height;
3851
+ }, $ = (g) => {
3852
+ const E = getComputedStyle(g);
3853
+ return he(g).top + g.offsetHeight - r.top - (g.dataset.block === ke ? 0 : parseFloat(E.paddingBottom) - parseFloat(E.borderBottom)) <= h[h.length - 1].height;
3854
+ }, z = (g = JSON.parse(JSON.stringify(a[F] || {}))) => {
3855
+ if (F >= a.length || !Object.keys(g).length) {
3856
3856
  o([...h], !0), console.timeEnd("layout"), h = [], d = 0;
3857
3857
  return;
3858
3858
  }
3859
- h[h.length - 1].data.push({ ...v }), o([...h]), window.requestAnimationFrame(() => {
3860
- const E = Tt(v.__tag__, t), X = !v.isHidden && he(E);
3859
+ h[h.length - 1].data.push({ ...g }), o([...h]), window.requestAnimationFrame(() => {
3860
+ const E = Tt(g.__tag__, t), W = !g.isHidden && he(E);
3861
3861
  let H = null;
3862
3862
  if (p) {
3863
3863
  const _ = E.querySelector(`*[data-hutkey="${p}"]`), C = he(_);
3864
3864
  h[h.length - 1].top = r.top - C.top, h[h.length - 1].height = r.height - h[h.length - 1].top, p = 0;
3865
3865
  }
3866
- if (X && X.height + X.top - r.top > h[h.length - 1].height)
3867
- if (v.problemType)
3868
- h[h.length - 1].data.pop(), G(), B({ ...v });
3869
- else if (T(E))
3870
- G(), F++, B();
3871
- else if (Y(E))
3872
- h[h.length - 1].data.pop(), G(), B({ ...v });
3866
+ if (W && W.height + W.top - r.top > h[h.length - 1].height)
3867
+ if (g.problemType)
3868
+ h[h.length - 1].data.pop(), Q(), z({ ...g });
3869
+ else if ($(E))
3870
+ Q(), F++, z();
3871
+ else if (j(E))
3872
+ h[h.length - 1].data.pop(), Q(), z({ ...g });
3873
3873
  else {
3874
3874
  H = Lt(E, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3875
- const _ = E.querySelector(`*[data-content="${v.id}"]`);
3876
- h[h.length - 1].height = he(H.cut).top - r.top, G(), _ != null && _.contains(H.cut) ? (p = Date.now(), H.cut.dataset.hutkey = p, B({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), B({ ...v }));
3875
+ const _ = E.querySelector(`*[data-content="${g.id}"]`);
3876
+ h[h.length - 1].height = he(H.cut).top - r.top, Q(), _ != null && _.contains(H.cut) ? (p = Date.now(), H.cut.dataset.hutkey = p, z({ ...g, content: _.innerHTML })) : (h[h.length - 1].data.pop(), z({ ...g }));
3877
3877
  }
3878
3878
  else {
3879
3879
  let _ = [], C = [];
3880
- v.children.some((w, R) => {
3881
- const O = Tt(w.__tag__, t), ye = he(O);
3880
+ g.children.some((w, R) => {
3881
+ const B = Tt(w.__tag__, t), ye = he(B);
3882
3882
  if (d) {
3883
- const pe = O.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3883
+ const pe = B.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3884
3884
  h[h.length - 1].top = r.top - ie.top, h[h.length - 1].height = r.height - h[h.length - 1].top, d = 0;
3885
3885
  }
3886
3886
  if (ye.height + ye.top - r.top > h[h.length - 1].height) {
3887
- if (T(O))
3888
- _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3889
- else if (Y(O))
3890
- C = v.children.slice(R);
3887
+ if ($(B))
3888
+ _.push(w), C = R < g.children.length - 1 ? g.children.slice(R + 1) : [];
3889
+ else if (j(B))
3890
+ C = g.children.slice(R);
3891
3891
  else {
3892
- H = Lt(O, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3893
- const pe = O.querySelector(`*[data-content="${w.id}"]`);
3894
- if (O === H.targetEl)
3895
- _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3892
+ H = Lt(B, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3893
+ const pe = B.querySelector(`*[data-content="${w.id}"]`);
3894
+ if (B === H.targetEl)
3895
+ _.push(w), C = R < g.children.length - 1 ? g.children.slice(R + 1) : [];
3896
3896
  else if (pe && pe.contains(H.cut))
3897
- d = Date.now(), H.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = he(H.cut).top - r.top;
3897
+ d = Date.now(), H.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < g.children.length - 1 ? g.children.slice(R + 1) : []], h[h.length - 1].height = he(H.cut).top - r.top;
3898
3898
  else {
3899
3899
  if (!C.length) {
3900
3900
  let ie = { ...w };
3901
3901
  switch (w.problemType) {
3902
3902
  case at.slove:
3903
- const fe = O.querySelector(`*[data-area="${w.id}"]`);
3904
- fe != null && fe.contains(H.cut) && (d = Date.now(), H.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), O.contains(H.targetEl) && (w.chunk += 1);
3903
+ const fe = B.querySelector(`*[data-area="${w.id}"]`);
3904
+ fe != null && fe.contains(H.cut) && (d = Date.now(), H.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), B.contains(H.targetEl) && (w.chunk += 1);
3905
3905
  break;
3906
3906
  case at.art:
3907
- const ue = O.querySelector(`*[data-bart="${w.id}"]`), M = H.targetEl.dataset.block === ke && H.targetEl.dataset.size ? H.targetEl : null, $ = O.querySelector(`*[data-aart="${w.id}"]`);
3907
+ const ue = B.querySelector(`*[data-bart="${w.id}"]`), M = H.targetEl.dataset.block === ke && H.targetEl.dataset.size ? H.targetEl : null, S = B.querySelector(`*[data-aart="${w.id}"]`);
3908
3908
  if (ue != null && ue.contains(H.cut))
3909
3909
  d = Date.now(), H.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
3910
3910
  else if (M) {
3911
- const S = parseInt(M.dataset.size);
3911
+ const T = parseInt(M.dataset.size);
3912
3912
  if (!w.artBlock)
3913
- if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > S) {
3914
- const K = O.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
3913
+ if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > T) {
3914
+ const K = B.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
3915
3915
  if (we.height + we.top - r.top > r.height) {
3916
3916
  K.innerHTML = w.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
3917
3917
  const ae = he(M).top + M.offsetHeight, re = [...Array.from(K.children)].findIndex((be) => he(be).top > ae);
@@ -3920,25 +3920,25 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3920
3920
  w.beforeGuide = "";
3921
3921
  } else
3922
3922
  w.beforeGuide = "";
3923
- ie.endAnswerLen = S, w.startAnswerLen = S;
3923
+ ie.endAnswerLen = T, w.startAnswerLen = T;
3924
3924
  } else
3925
- $ != null && $.contains(H.cut) ? (d = Date.now(), H.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = $.innerHTML) : H.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === H.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3926
- O.contains(H.targetEl) && (w.chunk += 1);
3925
+ S != null && S.contains(H.cut) ? (d = Date.now(), H.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = S.innerHTML) : H.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === H.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3926
+ B.contains(H.targetEl) && (w.chunk += 1);
3927
3927
  break;
3928
3928
  }
3929
- O.contains(H.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(H.cut).top - r.top);
3929
+ B.contains(H.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(H.cut).top - r.top);
3930
3930
  }
3931
- C = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
3931
+ C = [w, ...R < g.children.length - 1 ? g.children.slice(R + 1) : []];
3932
3932
  }
3933
3933
  }
3934
3934
  return !0;
3935
3935
  } else
3936
3936
  _.push(w);
3937
- }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (G(), B({ ...v, isHidden: !0, children: C })) : (o([...h]), F++, B());
3937
+ }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Q(), z({ ...g, isHidden: !0, children: C })) : (o([...h]), F++, z());
3938
3938
  }
3939
3939
  });
3940
3940
  };
3941
- B();
3941
+ z();
3942
3942
  }, zt = window.CKEDITOR;
3943
3943
  zt.disableAutoInline = !0;
3944
3944
  const pt = `dx${Math.random().toString(32).substring(2)}`;
@@ -3957,7 +3957,7 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3957
3957
  },
3958
3958
  emits: ["change", "focus", "blur"],
3959
3959
  setup(e, { emit: t }) {
3960
- const a = e, l = Wt("ckeditorOrigin", ""), n = q();
3960
+ const a = e, l = Wt("ckeditorOrigin", ""), n = Y();
3961
3961
  De(() => a.readonly, () => c()), Xe(() => c());
3962
3962
  const c = () => {
3963
3963
  if (window.CKEDITOR) {
@@ -3990,19 +3990,19 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3990
3990
  });
3991
3991
  const N = (h = p) => {
3992
3992
  [...Array.from(h.childNodes)].forEach((F) => {
3993
- var G;
3993
+ var Q;
3994
3994
  if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
3995
3995
  N(F);
3996
3996
  else if (F.nodeType === Node.TEXT_NODE) {
3997
- const Y = document.createElement("span");
3998
- Y.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 && (Y.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (B) => B.length > 5 ? `<span style="word-break: break-all">${B}</span>` : B)), (G = F.parentElement) == null || G.replaceChild(Y, F);
3997
+ const j = document.createElement("span");
3998
+ j.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 && (j.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (z) => z.length > 5 ? `<span style="word-break: break-all">${z}</span>` : z)), (Q = F.parentElement) == null || Q.replaceChild(j, F);
3999
3999
  }
4000
4000
  });
4001
4001
  };
4002
4002
  return N(), p.innerHTML;
4003
4003
  };
4004
4004
  return (d, p) => (i(), u("div", Fs, [
4005
- a.readonly ? (i(), j(Ae, {
4005
+ a.readonly ? (i(), V(Ae, {
4006
4006
  key: 1,
4007
4007
  data: a.value,
4008
4008
  class: "raw_view"
@@ -4072,49 +4072,49 @@ const As = {
4072
4072
  { left: "0", top: "100%", cursor: "nesw-resize" },
4073
4073
  { left: "50%", top: "100%", cursor: "ns-resize" },
4074
4074
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4075
- ], o = q({}), s = q(), r = q(0), d = q(0), p = q(), N = q(), h = q({}), F = q(!1), G = q(), Y = q(), T = q(), B = A(() => a.imgData.map((M) => ({
4075
+ ], o = Y({}), s = Y(), r = Y(0), d = Y(0), p = Y(), N = Y(), h = Y({}), F = Y(!1), Q = Y(), j = Y(), $ = Y(), z = A(() => a.imgData.map((M) => ({
4076
4076
  ...M,
4077
- top: M.top - Math.floor(M.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4078
- }))), v = A(() => a.txtData.map((M) => ({
4077
+ top: M.top - Math.floor(M.top / (b[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4078
+ }))), g = A(() => a.txtData.map((M) => ({
4079
4079
  ...M,
4080
- top: M.top - Math.floor(M.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4081
- }))), E = A(() => G.value ? G.value.split("-")[0] === "img" ? B.value.find(($) => $.key === G.value) : v.value.find(($) => $.key === G.value) : null), X = A(() => E.value ? { [E.value.key]: { ...s.value } } : {});
4080
+ top: M.top - Math.floor(M.top / (b[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4081
+ }))), E = A(() => Q.value ? Q.value.split("-")[0] === "img" ? z.value.find((S) => S.key === Q.value) : g.value.find((S) => S.key === Q.value) : null), W = A(() => E.value ? { [E.value.key]: { ...s.value } } : {});
4082
4082
  Xe(() => {
4083
4083
  p.value = document.body.querySelector(".__layout__");
4084
4084
  });
4085
4085
  const H = (M) => {
4086
4086
  s.value = { ...E.value, left: Math.max(M.x, 0), top: Math.max(M.y, 0) }, clearTimeout(N.value), N.value = setTimeout(() => {
4087
- var $;
4088
- (($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4087
+ var S;
4088
+ ((S = E.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4089
4089
  }, 400);
4090
4090
  }, _ = (M) => {
4091
4091
  F.value = M;
4092
4092
  }, C = () => {
4093
- const M = E.value, $ = M.left + M.width / 2, S = M.top + M.height / 2, K = p.value.getBoundingClientRect() || {};
4094
- h.value = { x: $ + K.left, y: S + K.top }, p.value.addEventListener("mousemove", w), p.value.addEventListener("mouseleave", R), p.value.addEventListener("mouseup", R);
4093
+ const M = E.value, S = M.left + M.width / 2, T = M.top + M.height / 2, K = p.value.getBoundingClientRect() || {};
4094
+ h.value = { x: S + K.left, y: T + K.top }, p.value.addEventListener("mousemove", w), p.value.addEventListener("mouseleave", R), p.value.addEventListener("mouseup", R);
4095
4095
  }, w = (M) => {
4096
4096
  M.stopPropagation(), M.preventDefault();
4097
- const $ = M.clientX - h.value.x, S = h.value.y - M.clientY, K = Math.atan2(S, $) / (Math.PI / 180);
4097
+ const S = M.clientX - h.value.x, T = h.value.y - M.clientY, K = Math.atan2(T, S) / (Math.PI / 180);
4098
4098
  s.value = { ...E.value, rotate: -parseInt(K.toString()) };
4099
4099
  }, R = (M) => {
4100
4100
  M.stopPropagation(), M.preventDefault(), t("changeAbsImgItem", s.value), p.value.removeEventListener("mousemove", w), p.value.removeEventListener("mouseleave", R), p.value.removeEventListener("mouseup", R);
4101
- }, O = (M, $) => {
4102
- var S;
4103
- M.stopPropagation(), r.value = $, o.value = { x: M.clientX, y: M.clientY, ...E.value }, ((S = E.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4101
+ }, B = (M, S) => {
4102
+ var T;
4103
+ M.stopPropagation(), r.value = S, o.value = { x: M.clientX, y: M.clientY, ...E.value }, ((T = E.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4104
4104
  }, ye = (M) => {
4105
- const $ = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, S = { ...E.value }, K = $.x > $.y ? "width" : "height";
4105
+ const S = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, T = { ...E.value }, K = S.x > S.y ? "width" : "height";
4106
4106
  [
4107
4107
  // 0
4108
4108
  () => {
4109
4109
  const ae = {
4110
- width: o.value.width - $.x,
4111
- height: o.value.width * (1 - $.y / o.value.height)
4110
+ width: o.value.width - S.x,
4111
+ height: o.value.width * (1 - S.y / o.value.height)
4112
4112
  }[K], re = {
4113
- width: o.value.height * (1 - $.x / o.value.width),
4114
- height: o.value.height - $.y
4113
+ width: o.value.height * (1 - S.x / o.value.width),
4114
+ height: o.value.height - S.y
4115
4115
  }[K];
4116
4116
  s.value = {
4117
- ...S,
4117
+ ...T,
4118
4118
  width: ae,
4119
4119
  height: re,
4120
4120
  left: o.value.left - (ae - o.value.width),
@@ -4123,9 +4123,9 @@ const As = {
4123
4123
  },
4124
4124
  // 1
4125
4125
  () => {
4126
- const ae = o.value.width * (1 - $.y / o.value.height), re = o.value.height - $.y;
4126
+ const ae = o.value.width * (1 - S.y / o.value.height), re = o.value.height - S.y;
4127
4127
  s.value = {
4128
- ...S,
4128
+ ...T,
4129
4129
  width: ae,
4130
4130
  height: re,
4131
4131
  left: o.value.left - (ae - o.value.width) / 2,
@@ -4135,14 +4135,14 @@ const As = {
4135
4135
  // 2
4136
4136
  () => {
4137
4137
  const ae = {
4138
- width: o.value.height * (1 + $.x / o.value.width),
4139
- height: o.value.height - $.y
4138
+ width: o.value.height * (1 + S.x / o.value.width),
4139
+ height: o.value.height - S.y
4140
4140
  }[K];
4141
4141
  s.value = {
4142
- ...S,
4142
+ ...T,
4143
4143
  width: {
4144
- width: o.value.width + $.x,
4145
- height: o.value.width * (1 - $.y / o.value.height)
4144
+ width: o.value.width + S.x,
4145
+ height: o.value.width * (1 - S.y / o.value.height)
4146
4146
  }[K],
4147
4147
  height: ae,
4148
4148
  top: o.value.top - (ae - o.value.height)
@@ -4150,9 +4150,9 @@ const As = {
4150
4150
  },
4151
4151
  // 3
4152
4152
  () => {
4153
- const ae = o.value.width - $.x, re = o.value.height * (1 - $.x / o.value.width);
4153
+ const ae = o.value.width - S.x, re = o.value.height * (1 - S.x / o.value.width);
4154
4154
  s.value = {
4155
- ...S,
4155
+ ...T,
4156
4156
  width: ae,
4157
4157
  height: re,
4158
4158
  left: o.value.left - (ae - o.value.width),
@@ -4161,9 +4161,9 @@ const As = {
4161
4161
  },
4162
4162
  // 4
4163
4163
  () => {
4164
- const ae = o.value.width + $.x, re = o.value.height * (1 + $.x / o.value.width);
4164
+ const ae = o.value.width + S.x, re = o.value.height * (1 + S.x / o.value.width);
4165
4165
  s.value = {
4166
- ...S,
4166
+ ...T,
4167
4167
  width: ae,
4168
4168
  height: re,
4169
4169
  top: o.value.top - (re - o.value.height) / 2
@@ -4172,14 +4172,14 @@ const As = {
4172
4172
  // 5
4173
4173
  () => {
4174
4174
  const ae = {
4175
- width: o.value.width - $.x,
4176
- height: o.value.width * (1 + $.y / o.value.height)
4175
+ width: o.value.width - S.x,
4176
+ height: o.value.width * (1 + S.y / o.value.height)
4177
4177
  }[K], re = {
4178
- width: o.value.height * (1 - $.x / o.value.width),
4179
- height: o.value.height + $.y
4178
+ width: o.value.height * (1 - S.x / o.value.width),
4179
+ height: o.value.height + S.y
4180
4180
  }[K];
4181
4181
  s.value = {
4182
- ...S,
4182
+ ...T,
4183
4183
  width: ae,
4184
4184
  height: re,
4185
4185
  left: o.value.left - (ae - o.value.width)
@@ -4187,9 +4187,9 @@ const As = {
4187
4187
  },
4188
4188
  // 6
4189
4189
  () => {
4190
- const ae = o.value.width * (1 + $.y / o.value.height), re = o.value.height + $.y;
4190
+ const ae = o.value.width * (1 + S.y / o.value.height), re = o.value.height + S.y;
4191
4191
  s.value = {
4192
- ...S,
4192
+ ...T,
4193
4193
  width: ae,
4194
4194
  height: re,
4195
4195
  left: o.value.left - (ae - o.value.width) / 2
@@ -4198,62 +4198,62 @@ const As = {
4198
4198
  // 7
4199
4199
  () => {
4200
4200
  const ae = {
4201
- width: o.value.width + $.x,
4202
- height: o.value.width * (1 + $.y / o.value.height)
4201
+ width: o.value.width + S.x,
4202
+ height: o.value.width * (1 + S.y / o.value.height)
4203
4203
  }[K], re = {
4204
- width: o.value.height * (1 + $.x / o.value.width),
4205
- height: o.value.height + $.y
4204
+ width: o.value.height * (1 + S.x / o.value.width),
4205
+ height: o.value.height + S.y
4206
4206
  }[K];
4207
4207
  s.value = {
4208
- ...S,
4208
+ ...T,
4209
4209
  width: ae,
4210
4210
  height: re
4211
4211
  };
4212
4212
  }
4213
4213
  ][r.value]();
4214
4214
  }, pe = (M) => {
4215
- const $ = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, S = { ...E.value }, K = [
4215
+ const S = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, T = { ...E.value }, K = [
4216
4216
  {
4217
- ...S,
4218
- width: o.value.width - $.x,
4219
- height: o.value.height - $.y,
4220
- left: o.value.left + $.x,
4221
- top: o.value.top + $.y
4217
+ ...T,
4218
+ width: o.value.width - S.x,
4219
+ height: o.value.height - S.y,
4220
+ left: o.value.left + S.x,
4221
+ top: o.value.top + S.y
4222
4222
  },
4223
4223
  {
4224
- ...S,
4225
- height: o.value.height - $.y,
4226
- top: o.value.top + $.y
4224
+ ...T,
4225
+ height: o.value.height - S.y,
4226
+ top: o.value.top + S.y
4227
4227
  },
4228
4228
  {
4229
- ...S,
4230
- width: o.value.width + $.x,
4231
- height: o.value.height - $.y,
4232
- top: o.value.top + $.y
4229
+ ...T,
4230
+ width: o.value.width + S.x,
4231
+ height: o.value.height - S.y,
4232
+ top: o.value.top + S.y
4233
4233
  },
4234
4234
  {
4235
- ...S,
4236
- width: o.value.width - $.x,
4237
- left: o.value.left + $.x
4235
+ ...T,
4236
+ width: o.value.width - S.x,
4237
+ left: o.value.left + S.x
4238
4238
  },
4239
4239
  {
4240
- ...S,
4241
- width: o.value.width + $.x
4240
+ ...T,
4241
+ width: o.value.width + S.x
4242
4242
  },
4243
4243
  {
4244
- ...S,
4245
- width: o.value.width - $.x,
4246
- height: o.value.height + $.y,
4247
- left: o.value.left + $.x
4244
+ ...T,
4245
+ width: o.value.width - S.x,
4246
+ height: o.value.height + S.y,
4247
+ left: o.value.left + S.x
4248
4248
  },
4249
4249
  {
4250
- ...S,
4251
- height: o.value.height + $.y
4250
+ ...T,
4251
+ height: o.value.height + S.y
4252
4252
  },
4253
4253
  {
4254
- ...S,
4255
- width: o.value.width + $.x,
4256
- height: o.value.height + $.y
4254
+ ...T,
4255
+ width: o.value.width + S.x,
4256
+ height: o.value.height + S.y
4257
4257
  }
4258
4258
  ];
4259
4259
  s.value = K[r.value];
@@ -4266,50 +4266,50 @@ const As = {
4266
4266
  return;
4267
4267
  }
4268
4268
  t("changeAbsTxtItem", { ...E.value, content: M });
4269
- }, ue = (M, $) => {
4269
+ }, ue = (M, S) => {
4270
4270
  var K;
4271
- const S = document.body.querySelector(`.cke_editor_${pt}`);
4272
- !M && ((K = ($ == null ? void 0 : $.target).dataset) != null && K.safe || [...Y.value, ...T.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (G.value = M == null ? void 0 : M.key, s.value = M ? { ...M } : null);
4271
+ const T = document.body.querySelector(`.cke_editor_${pt}`);
4272
+ !M && ((K = (S == null ? void 0 : S.target).dataset) != null && K.safe || [...j.value, ...$.value].find((we) => we.contains(S == null ? void 0 : S.target)) || T && window.getComputedStyle(T).display !== "none") || (Q.value = M == null ? void 0 : M.key, s.value = M ? { ...M } : null);
4273
4273
  };
4274
- return (M, $) => (i(), u(P, null, [
4275
- (i(!0), u(P, null, Z(B.value, (S) => {
4276
- var K, we, ae, re, be, b, I;
4274
+ return (M, S) => (i(), u(P, null, [
4275
+ (i(!0), u(P, null, Z(z.value, (T) => {
4276
+ var K, we, ae, re, be, v, I;
4277
4277
  return gt((i(), u("div", {
4278
- key: S.id,
4278
+ key: T.id,
4279
4279
  ref_for: !0,
4280
4280
  ref_key: "imgViewList",
4281
- ref: Y,
4281
+ ref: j,
4282
4282
  "data-safe": "true",
4283
- class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === S.key ? "z-8" : "z-7"]),
4284
- style: Q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = X.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
4285
- onMousedown: Le((le) => ue(S), ["stop"]),
4283
+ class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === T.key ? "z-8" : "z-7"]),
4284
+ style: q({ left: Math.max(((we = W.value[T.key]) == null ? void 0 : we.left) || T.left, 0) + "px", top: Math.max(((ae = W.value[T.key]) == null ? void 0 : ae.top) || T.top, 0) + "px", width: (((re = W.value[T.key]) == null ? void 0 : re.width) || T.width) + "px", height: (((be = W.value[T.key]) == null ? void 0 : be.height) || T.height) + "px", transform: `rotate(${((v = W.value[T.key]) == null ? void 0 : v.rotate) || T.rotate}deg)` }),
4285
+ onMousedown: Le((le) => ue(T), ["stop"]),
4286
4286
  "data-block": x(Ee)
4287
4287
  }, [
4288
4288
  f("img", {
4289
- src: S.url
4289
+ src: T.url
4290
4290
  }, null, 8, Bs),
4291
- ((I = E.value) == null ? void 0 : I.key) === S.key ? (i(), u(P, { key: 0 }, [
4291
+ ((I = E.value) == null ? void 0 : I.key) === T.key ? (i(), u(P, { key: 0 }, [
4292
4292
  f("span", Os, [
4293
- V(_e, {
4293
+ X(_e, {
4294
4294
  name: "close",
4295
4295
  width: 2,
4296
4296
  class: "cursor-pointer",
4297
- onClick: (le) => t("delAbsImgItem", S)
4297
+ onClick: (le) => t("delAbsImgItem", T)
4298
4298
  }, null, 8, ["onClick"])
4299
4299
  ]),
4300
4300
  f("div", zs, [
4301
- (i(), u(P, null, Z(8, (le, W) => f("div", {
4301
+ (i(), u(P, null, Z(8, (le, G) => f("div", {
4302
4302
  key: le,
4303
4303
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4304
- style: Q({ ...c[W], transform: "translate(-50%, -50%)" }),
4305
- onMousedown: Le((te) => O(te, W), ["stop"])
4304
+ style: q({ ...c[G], transform: "translate(-50%, -50%)" }),
4305
+ onMousedown: Le((te) => B(te, G), ["stop"])
4306
4306
  }, null, 44, Hs)), 64))
4307
4307
  ]),
4308
4308
  f("span", {
4309
4309
  class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
4310
4310
  onMousedown: Le(C, ["stop"])
4311
4311
  }, [
4312
- V(_e, {
4312
+ X(_e, {
4313
4313
  name: "reset",
4314
4314
  width: 2
4315
4315
  })
@@ -4320,45 +4320,45 @@ const As = {
4320
4320
  [x(l), (le) => ue(null, le)]
4321
4321
  ]);
4322
4322
  }), 128)),
4323
- (i(!0), u(P, null, Z(v.value, (S) => {
4324
- var K, we, ae, re, be, b, I;
4323
+ (i(!0), u(P, null, Z(g.value, (T) => {
4324
+ var K, we, ae, re, be, v, I;
4325
4325
  return gt((i(), u("div", {
4326
- key: S.id,
4326
+ key: T.id,
4327
4327
  ref_for: !0,
4328
4328
  ref_key: "txtViewList",
4329
- ref: T,
4329
+ ref: $,
4330
4330
  disabled: F.value,
4331
4331
  "data-safe": "true",
4332
- class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === S.key ? "z-8 bg-white" : "z-7"]),
4333
- style: Q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
4334
- onMousedown: Le((le) => ue(S), ["stop"]),
4332
+ class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === T.key ? "z-8 bg-white" : "z-7"]),
4333
+ style: q({ left: Math.max(((we = W.value[T.key]) == null ? void 0 : we.left) || T.left, 0) + "px", top: Math.max(((ae = W.value[T.key]) == null ? void 0 : ae.top) || T.top, 0) + "px", width: (((re = W.value[T.key]) == null ? void 0 : re.width) || T.width) + "px", height: (((be = W.value[T.key]) == null ? void 0 : be.height) || T.height) + "px" }),
4334
+ onMousedown: Le((le) => ue(T), ["stop"]),
4335
4335
  "data-block": x(Ee)
4336
4336
  }, [
4337
- (i(), j(Ms, {
4337
+ (i(), V(Ms, {
4338
4338
  key: d.value,
4339
4339
  class: "border-0 relative z-4",
4340
- readonly: ((b = E.value) == null ? void 0 : b.key) !== S.key,
4341
- value: S.content,
4342
- name: S.id.toString(),
4340
+ readonly: ((v = E.value) == null ? void 0 : v.key) !== T.key,
4341
+ value: T.content,
4342
+ name: T.id.toString(),
4343
4343
  onChange: fe,
4344
- onFocus: $[0] || ($[0] = (le) => _(!0)),
4345
- onBlur: $[1] || ($[1] = (le) => _(!1))
4344
+ onFocus: S[0] || (S[0] = (le) => _(!0)),
4345
+ onBlur: S[1] || (S[1] = (le) => _(!1))
4346
4346
  }, null, 8, ["readonly", "value", "name"])),
4347
- ((I = E.value) == null ? void 0 : I.key) === S.key ? (i(), u(P, { key: 0 }, [
4347
+ ((I = E.value) == null ? void 0 : I.key) === T.key ? (i(), u(P, { key: 0 }, [
4348
4348
  f("span", Gs, [
4349
- V(_e, {
4349
+ X(_e, {
4350
4350
  name: "close",
4351
4351
  width: 2,
4352
4352
  class: "cursor-pointer",
4353
- onClick: (le) => t("delAbsTxtItem", S)
4353
+ onClick: (le) => t("delAbsTxtItem", T)
4354
4354
  }, null, 8, ["onClick"])
4355
4355
  ]),
4356
4356
  f("div", Ys, [
4357
- (i(), u(P, null, Z(8, (le, W) => f("div", {
4357
+ (i(), u(P, null, Z(8, (le, G) => f("div", {
4358
4358
  key: le,
4359
4359
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4360
- style: Q({ ...c[W], transform: "translate(-50%, -50%)" }),
4361
- onMousedown: (te) => O(te, W)
4360
+ style: q({ ...c[G], transform: "translate(-50%, -50%)" }),
4361
+ onMousedown: (te) => B(te, G)
4362
4362
  }, null, 44, qs)), 64))
4363
4363
  ])
4364
4364
  ], 64)) : D("", !0)
@@ -4370,7 +4370,7 @@ const As = {
4370
4370
  ], 64));
4371
4371
  }
4372
4372
  });
4373
- const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["viewBox"], js = {
4373
+ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["viewBox"], Ks = {
4374
4374
  x: "0",
4375
4375
  y: "0",
4376
4376
  width: "100%",
@@ -4393,74 +4393,74 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4393
4393
  setup(e, { emit: t }) {
4394
4394
  const a = e;
4395
4395
  Gt("ckeditorOrigin", a.ckeditorOrigin);
4396
- const l = q([]), n = q([]), c = q(2), o = q(0), s = q(0), r = q(), d = q([]), p = q([]), N = q([]), h = q([]), F = A(() => a.data.map((b) => ({
4397
- ...b,
4396
+ const l = Y([]), n = Y([]), c = Y(2), o = Y(0), s = Y(0), r = Y(), d = Y([]), p = Y([]), N = Y([]), h = Y([]), F = A(() => a.data.map((v) => ({
4397
+ ...v,
4398
4398
  __tag__: Ct(),
4399
- rawChildren: b.children,
4400
- children: b.children.map((I) => ({ ...I, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
4401
- }))), G = A(() => {
4402
- const b = F.value[F.value.length - 1], I = b.rawChildren[b.rawChildren.length - 1];
4403
- return X.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
4404
- }), Y = A(() => {
4405
- var b;
4406
- return a.layout.bindFlag && !!((b = Oe.find((I) => I.code === a.layout.paper)) != null && b.isMultCol);
4407
- }), T = A(() => a.isFinal ? 0 : 10), B = A(() => a.isFinal ? 10 : 0), v = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || c.value || 1), E = A(() => Math.ceil(v.value / 2) * 2), X = A(() => ["sheet", "sheetCard"].includes(a.layout.mode)), H = A(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = A(() => g[a.layout.paper].width - _.value.left - _.value.right), w = A(() => g[a.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), O = A(() => ({
4408
- width: `${g[a.layout.paper].width}px`,
4409
- height: `${(g[a.layout.paper].height + T.value) * E.value - T.value}px`
4399
+ rawChildren: v.children,
4400
+ children: v.children.map((I) => ({ ...I, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
4401
+ }))), Q = A(() => {
4402
+ const v = F.value[F.value.length - 1], I = v.rawChildren[v.rawChildren.length - 1];
4403
+ return W.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
4404
+ }), j = A(() => {
4405
+ var v;
4406
+ return a.layout.bindFlag && !!((v = Oe.find((I) => I.code === a.layout.paper)) != null && v.isMultCol);
4407
+ }), $ = A(() => a.isFinal ? 0 : 10), z = A(() => a.isFinal ? 10 : 0), g = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || c.value || 1), E = A(() => Math.ceil(g.value / 2) * 2), W = A(() => ["sheet", "sheetCard"].includes(a.layout.mode)), H = A(() => W.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = A(() => b[a.layout.paper].width - _.value.left - _.value.right), w = A(() => b[a.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (C.value - (s.value ? s.value + T(0) : 0) + T(0)) / a.layout.column - T(0)), B = A(() => ({
4408
+ width: `${b[a.layout.paper].width}px`,
4409
+ height: `${(b[a.layout.paper].height + $.value) * E.value - $.value}px`
4410
4410
  })), ye = A(() => ({
4411
- width: `${g[a.layout.paper].width}px`,
4412
- height: `${g[a.layout.paper].height}px`,
4411
+ width: `${b[a.layout.paper].width}px`,
4412
+ height: `${b[a.layout.paper].height}px`,
4413
4413
  padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
4414
- marginBottom: `${T.value}px`
4414
+ marginBottom: `${$.value}px`
4415
4415
  })), pe = A(() => {
4416
4416
  var I;
4417
- const b = (I = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : I.isMultCol;
4417
+ const v = (I = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : I.isMultCol;
4418
4418
  return {
4419
- left: `${_.value.left + (s.value ? s.value + S(0) : 0)}px`,
4419
+ left: `${_.value.left + (s.value ? s.value + T(0) : 0)}px`,
4420
4420
  top: `${_.value.top}px`,
4421
- width: b ? `${R.value}px` : `${C.value}px`
4421
+ width: v ? `${R.value}px` : `${C.value}px`
4422
4422
  };
4423
4423
  });
4424
4424
  De(() => [JSON.stringify({ ...a.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(a.fontConfig), JSON.stringify(a.info), JSON.stringify(a.data)].join(""), () => {
4425
4425
  setTimeout(() => {
4426
4426
  re();
4427
4427
  }, 100);
4428
- }, { immediate: !0 }), De(() => Y.value, () => {
4429
- s.value = Y.value ? 100 : 0;
4428
+ }, { immediate: !0 }), De(() => j.value, () => {
4429
+ s.value = j.value ? 100 : 0;
4430
4430
  }, { immediate: !0 });
4431
- const ie = (b) => b % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (b, I) => Math.floor(I / 2) * (a.layout.column + a.layout.backColumn) + I % 2 * a.layout.column + b, ue = (b) => {
4432
- const I = b % (a.layout.column + a.layout.backColumn);
4431
+ const ie = (v) => v % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (v, I) => Math.floor(I / 2) * (a.layout.column + a.layout.backColumn) + I % 2 * a.layout.column + v, ue = (v) => {
4432
+ const I = v % (a.layout.column + a.layout.backColumn);
4433
4433
  return I >= a.layout.column ? I - a.layout.column : I;
4434
- }, M = (b, I) => {
4435
- b ? d.value[I] = b : d.value.splice(I, 1);
4436
- }, $ = (b, I) => {
4437
- b ? p.value[I] = b : p.value.splice(I, 1);
4438
- }, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, K = (b, I = !1) => (C.value - (s.value ? s.value + S(b) : 0) + S(b)) / ie(b) - S(b) - H.value.left - H.value.right + (I ? H.value.left + H.value.right : 0), we = (b, I) => {
4439
- var W, te;
4440
- const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((W = N.value[Math.min(I, 1)]) == null ? void 0 : W.offsetHeight) || 0;
4434
+ }, M = (v, I) => {
4435
+ v ? d.value[I] = v : d.value.splice(I, 1);
4436
+ }, S = (v, I) => {
4437
+ v ? p.value[I] = v : p.value.splice(I, 1);
4438
+ }, T = (v) => Pt[a.layout.mode][a.layout.paper][ie(v)] || 0, K = (v, I = !1) => (C.value - (s.value ? s.value + T(v) : 0) + T(v)) / ie(v) - T(v) - H.value.left - H.value.right + (I ? H.value.left + H.value.right : 0), we = (v, I) => {
4439
+ var G, te;
4440
+ const le = v % (a.layout.column + a.layout.backColumn) ? 0 : ((G = N.value[Math.min(I, 1)]) == null ? void 0 : G.offsetHeight) || 0;
4441
4441
  return {
4442
- left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value + S(b) : 0) + H.value.left + ue(b) * (K(b) + S(b) + H.value.left + H.value.right)}px`,
4443
- top: `${le + _.value.top + (!I && !b ? 0 : H.value.top)}px`,
4444
- width: `${K(b)}px`,
4445
- height: `${w.value - le - (!I && !b ? 0 : H.value.top) - H.value.bottom}px`,
4446
- contentHeight: `${(te = l.value[b]) == null ? void 0 : te.height}px`
4442
+ left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value + T(v) : 0) + H.value.left + ue(v) * (K(v) + T(v) + H.value.left + H.value.right)}px`,
4443
+ top: `${le + _.value.top + (!I && !v ? 0 : H.value.top)}px`,
4444
+ width: `${K(v)}px`,
4445
+ height: `${w.value - le - (!I && !v ? 0 : H.value.top) - H.value.bottom}px`,
4446
+ contentHeight: `${(te = l.value[v]) == null ? void 0 : te.height}px`
4447
4447
  };
4448
- }, ae = (b, I = !1) => {
4449
- n.value = b.map((le) => ({ ...le })), I && (l.value = [...b], o.value += 1, Je(() => {
4450
- c.value = Math.ceil(l.value.length / a.layout.column), n.value = [], p.value.forEach((le, W) => {
4448
+ }, ae = (v, I = !1) => {
4449
+ n.value = v.map((le) => ({ ...le })), I && (l.value = [...v], o.value += 1, Je(() => {
4450
+ c.value = Math.ceil(l.value.length / a.layout.column), n.value = [], p.value.forEach((le, G) => {
4451
4451
  var te, Se;
4452
- !le || !le.col || ((te = l.value[W]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[W]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4452
+ !le || !le.col || ((te = l.value[G]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[G]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4453
4453
  }), setTimeout(() => {
4454
4454
  const le = _s({
4455
4455
  config: {
4456
4456
  ...a.info,
4457
4457
  layout: a.layout,
4458
- pageTotal: v.value,
4458
+ pageTotal: g.value,
4459
4459
  bindWidth: s.value,
4460
- pageMargin: T.value,
4461
- pageDom: d.value.slice(0, v.value),
4462
- colDom: p.value.map((W) => W.col),
4463
- colViewDom: p.value.map((W) => W.colView)
4460
+ pageMargin: $.value,
4461
+ pageDom: d.value.slice(0, g.value),
4462
+ colDom: p.value.map((G) => G.col),
4463
+ colViewDom: p.value.map((G) => G.colView)
4464
4464
  },
4465
4465
  data: l.value
4466
4466
  });
@@ -4476,161 +4476,161 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4476
4476
  getColSize: we,
4477
4477
  change: ae
4478
4478
  });
4479
- }, be = (b = { type: U.page, value: {} }) => {
4480
- t("toggleActive", b);
4479
+ }, be = (v = { type: U.page, value: {} }) => {
4480
+ t("toggleActive", v);
4481
4481
  };
4482
- return (b, I) => {
4482
+ return (v, I) => {
4483
4483
  var le;
4484
4484
  return i(), u(P, null, [
4485
- b.readonly ? D("", !0) : (i(), j($s, {
4485
+ v.readonly ? D("", !0) : (i(), V($s, {
4486
4486
  key: 0,
4487
4487
  ColList: l.value,
4488
- ColDom: p.value.map((W) => W.col),
4489
- ImgData: b.imgData,
4490
- TxtData: b.txtData,
4491
- onDelAbsImgItem: I[0] || (I[0] = (W) => t("delAbsImgItem", W)),
4492
- onDelAbsTxtItem: I[1] || (I[1] = (W) => t("delAbsTxtItem", W)),
4493
- onChangeLayoutStatus: I[2] || (I[2] = (W) => t("changeLayoutStatus", W))
4488
+ ColDom: p.value.map((G) => G.col),
4489
+ ImgData: v.imgData,
4490
+ TxtData: v.txtData,
4491
+ onDelAbsImgItem: I[0] || (I[0] = (G) => t("delAbsImgItem", G)),
4492
+ onDelAbsTxtItem: I[1] || (I[1] = (G) => t("delAbsTxtItem", G)),
4493
+ onChangeLayoutStatus: I[2] || (I[2] = (G) => t("changeLayoutStatus", G))
4494
4494
  }, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
4495
4495
  f("div", {
4496
4496
  class: "flex-1 overflow-auto relative z-1",
4497
4497
  id: "alit-layout",
4498
- onClick: I[14] || (I[14] = (W) => be())
4498
+ onClick: I[14] || (I[14] = (G) => be())
4499
4499
  }, [
4500
4500
  f("div", {
4501
4501
  class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
4502
4502
  ref_key: "rawDom",
4503
4503
  ref: r
4504
4504
  }, [
4505
- n.value.length ? (i(!0), u(P, { key: 0 }, Z((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (W, te) => (i(), u(P, null, [
4506
- W.isHidden ? D("", !0) : (i(), j(St, {
4505
+ n.value.length ? (i(!0), u(P, { key: 0 }, Z((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (G, te) => (i(), u(P, null, [
4506
+ G.isHidden ? D("", !0) : (i(), V(St, {
4507
4507
  key: 0,
4508
- item: W,
4509
- showColBorder: X.value,
4508
+ item: G,
4509
+ showColBorder: W.value,
4510
4510
  isFirst: !te && n.value.length === 1,
4511
- layout: b.layout
4511
+ layout: v.layout
4512
4512
  }, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
4513
- X.value ? (i(), u("div", {
4513
+ W.value ? (i(), u("div", {
4514
4514
  key: 1,
4515
- class: oe([!W.children.length && W.problemType && "p-1 min-h-[2rem]"])
4515
+ class: oe([!G.children.length && G.problemType && "p-1 min-h-[2rem]"])
4516
4516
  }, [
4517
- (i(), j(Ge, {
4518
- data: W,
4517
+ (i(), V(Ge, {
4518
+ data: G,
4519
4519
  key: n.value.length,
4520
- layout: b.layout,
4521
- target: b.target,
4520
+ layout: v.layout,
4521
+ target: v.target,
4522
4522
  noPortrait: "",
4523
4523
  width: K(n.value.length - 1) - 10
4524
4524
  }, null, 8, ["data", "layout", "target", "width"]))
4525
- ], 2)) : (i(), j(Ge, {
4526
- data: W,
4525
+ ], 2)) : (i(), V(Ge, {
4526
+ data: G,
4527
4527
  key: n.value.length,
4528
- layout: b.layout,
4529
- target: b.target,
4528
+ layout: v.layout,
4529
+ target: v.target,
4530
4530
  width: K(n.value.length - 1)
4531
4531
  }, null, 8, ["data", "layout", "target", "width"]))
4532
4532
  ], 64))), 256)) : D("", !0)
4533
4533
  ], 512),
4534
4534
  f("div", {
4535
- class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
4536
- style: Q(O.value)
4535
+ class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", v.layout.redFlag && "red_mode", v.readonly && "pointer-events-none"]),
4536
+ style: q(B.value)
4537
4537
  }, [
4538
- V(Us, {
4539
- imgData: b.imgData,
4540
- txtData: b.txtData,
4541
- layout: b.layout,
4542
- pageMargin: B.value,
4543
- onChangeAbsImgItem: I[3] || (I[3] = (W) => t("changeAbsImgItem", W)),
4544
- onDelAbsImgItem: I[4] || (I[4] = (W) => t("delAbsImgItem", W)),
4545
- onChangeAbsTxtItem: I[5] || (I[5] = (W) => t("changeAbsTxtItem", W)),
4546
- onDelAbsTxtItem: I[6] || (I[6] = (W) => t("delAbsTxtItem", W))
4538
+ X(Us, {
4539
+ imgData: v.imgData,
4540
+ txtData: v.txtData,
4541
+ layout: v.layout,
4542
+ pageMargin: z.value,
4543
+ onChangeAbsImgItem: I[3] || (I[3] = (G) => t("changeAbsImgItem", G)),
4544
+ onDelAbsImgItem: I[4] || (I[4] = (G) => t("delAbsImgItem", G)),
4545
+ onChangeAbsTxtItem: I[5] || (I[5] = (G) => t("changeAbsTxtItem", G)),
4546
+ onDelAbsTxtItem: I[6] || (I[6] = (G) => t("delAbsTxtItem", G))
4547
4547
  }, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
4548
4548
  (i(), u("svg", {
4549
- viewBox: `0 0 ${parseFloat(O.value.width)} ${parseFloat(O.value.height)}`,
4549
+ viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
4550
4550
  version: "1.1",
4551
4551
  xmlns: "http://www.w3.org/2000/svg",
4552
4552
  key: o.value
4553
4553
  }, [
4554
- (i(), u("foreignObject", js, [
4555
- (i(!0), u(P, null, Z(E.value, (W, te) => (i(), u("div", {
4556
- key: W,
4554
+ (i(), u("foreignObject", Ks, [
4555
+ (i(!0), u(P, null, Z(E.value, (G, te) => (i(), u("div", {
4556
+ key: G,
4557
4557
  class: "bg-white relative flex justify-between overflow-hidden box-border",
4558
4558
  ref_for: !0,
4559
4559
  ref: (Se) => M(Se, te),
4560
- style: Q(ye.value)
4560
+ style: q(ye.value)
4561
4561
  }, [
4562
- te < v.value ? (i(), u(P, { key: 0 }, [
4563
- V(wo, {
4564
- layout: b.layout,
4562
+ te < g.value ? (i(), u(P, { key: 0 }, [
4563
+ X(wo, {
4564
+ layout: v.layout,
4565
4565
  currentPage: te,
4566
- totalPage: v.value,
4567
- columnContentWidth: K(te % 2 ? b.layout.column : 0, !0),
4568
- columnMargin: S(te % 2 ? b.layout.column : 0),
4566
+ totalPage: g.value,
4567
+ columnContentWidth: K(te % 2 ? v.layout.column : 0, !0),
4568
+ columnMargin: T(te % 2 ? v.layout.column : 0),
4569
4569
  bindWidth: s.value,
4570
4570
  padding: _.value
4571
4571
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
4572
- b.layout.sloganFlag ? (i(), j($o, {
4572
+ v.layout.sloganFlag ? (i(), V($o, {
4573
4573
  key: 0,
4574
- info: b.info,
4575
- layout: b.layout,
4574
+ info: v.info,
4575
+ layout: v.layout,
4576
4576
  onChange: I[7] || (I[7] = (Se) => t("changeInfo", Se))
4577
4577
  }, null, 8, ["info", "layout"])) : D("", !0),
4578
- V(Za, {
4578
+ X(Za, {
4579
4579
  ref_for: !0,
4580
4580
  ref_key: "bindDom",
4581
4581
  ref: h,
4582
4582
  currentPage: te,
4583
4583
  width: s.value,
4584
4584
  height: w.value,
4585
- isBindFlag: Y.value
4585
+ isBindFlag: j.value
4586
4586
  }, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
4587
- !(te % 2) || te === 1 && v.value < 3 ? (i(), u("div", {
4587
+ !(te % 2) || te === 1 && g.value < 3 ? (i(), u("div", {
4588
4588
  key: 1,
4589
4589
  ref_for: !0,
4590
4590
  ref_key: "titleDom",
4591
4591
  ref: N,
4592
- class: oe(["absolute text-black", te === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
4593
- style: Q(pe.value)
4592
+ class: oe(["absolute text-black", te === 1 && g.value < 3 && "opacity-0 pointer-events-none"]),
4593
+ style: q(pe.value)
4594
4594
  }, [
4595
- V(Po, {
4596
- layout: b.layout,
4597
- code: b.info.textCode
4595
+ X(Po, {
4596
+ layout: v.layout,
4597
+ code: v.info.textCode
4598
4598
  }, null, 8, ["layout", "code"]),
4599
- V(ta, {
4600
- info: b.info,
4601
- layout: b.layout,
4602
- fontConfig: b.fontConfig,
4603
- data: b.data,
4599
+ X(ta, {
4600
+ info: v.info,
4601
+ layout: v.layout,
4602
+ fontConfig: v.fontConfig,
4603
+ data: v.data,
4604
4604
  onChange: I[8] || (I[8] = (Se) => t("changeInfo", Se))
4605
4605
  }, null, 8, ["info", "layout", "fontConfig", "data"]),
4606
- V(ka, {
4607
- layout: b.layout,
4608
- info: b.info,
4609
- isBindFlag: Y.value,
4606
+ X(ka, {
4607
+ layout: v.layout,
4608
+ info: v.info,
4609
+ isBindFlag: j.value,
4610
4610
  onChange: I[9] || (I[9] = (Se) => t("changeExtentInfo", Se))
4611
4611
  }, null, 8, ["layout", "info", "isBindFlag"]),
4612
- V(Ba, {
4613
- layout: b.layout,
4614
- isBindFlag: Y.value
4612
+ X(Ba, {
4613
+ layout: v.layout,
4614
+ isBindFlag: j.value
4615
4615
  }, null, 8, ["layout", "isBindFlag"]),
4616
- te ? D("", !0) : (i(), j(Ya, {
4616
+ te ? D("", !0) : (i(), V(Ya, {
4617
4617
  key: 0,
4618
- layout: b.layout,
4619
- data: b.data
4618
+ layout: v.layout,
4619
+ data: v.data
4620
4620
  }, null, 8, ["layout", "data"])),
4621
- b.layout.writeScoreFlag && !te ? (i(), j(_l, {
4621
+ v.layout.writeScoreFlag && !te ? (i(), V(_l, {
4622
4622
  key: 1,
4623
- info: b.info,
4624
- layout: b.layout
4623
+ info: v.info,
4624
+ layout: v.layout
4625
4625
  }, null, 8, ["info", "layout"])) : D("", !0)
4626
4626
  ], 6)) : D("", !0),
4627
- (i(!0), u(P, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Pe) => (i(), j(Qa, {
4627
+ (i(!0), u(P, null, Z(te % 2 ? v.layout.backColumn : v.layout.column, (Se, Pe) => (i(), V(Qa, {
4628
4628
  ref_for: !0,
4629
- ref: (We) => $(We, fe(Pe, te)),
4629
+ ref: (We) => S(We, fe(Pe, te)),
4630
4630
  styleInfo: we(fe(Pe, te), te),
4631
- column: b.layout.column,
4631
+ column: v.layout.column,
4632
4632
  currentColumn: fe(Pe, te),
4633
- showColBorder: X.value
4633
+ showColBorder: W.value
4634
4634
  }, {
4635
4635
  default: Ft(() => {
4636
4636
  var We;
@@ -4638,40 +4638,40 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4638
4638
  (i(!0), u(P, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
4639
4639
  var mt;
4640
4640
  return i(), u(P, null, [
4641
- ge.isHidden ? D("", !0) : (i(), j(St, {
4641
+ ge.isHidden ? D("", !0) : (i(), V(St, {
4642
4642
  key: 0,
4643
4643
  item: ge,
4644
- showColBorder: X.value,
4644
+ showColBorder: W.value,
4645
4645
  isFirst: !te && !Pe && !Ht,
4646
- layout: b.layout,
4647
- isActive: ((mt = b.target.value) == null ? void 0 : mt.id) === ge.id,
4646
+ layout: v.layout,
4647
+ isActive: ((mt = v.target.value) == null ? void 0 : mt.id) === ge.id,
4648
4648
  onClick: (Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }),
4649
4649
  onDbclick: (Ce) => t("dbHeadLineClick", ge)
4650
4650
  }, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
4651
- X.value ? (i(), u("div", {
4651
+ W.value ? (i(), u("div", {
4652
4652
  key: 1,
4653
- class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(U).headline && b.target.value.id === ge.id && "active_headline"]),
4653
+ class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", v.target.type === x(U).headline && v.target.value.id === ge.id && "active_headline"]),
4654
4654
  onClick: Le((Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }), ["stop"]),
4655
4655
  onDblclick: (Ce) => t("dbHeadLineClick", ge)
4656
4656
  }, [
4657
- V(Ge, {
4657
+ X(Ge, {
4658
4658
  data: ge,
4659
- layout: b.layout,
4660
- target: b.target,
4659
+ layout: v.layout,
4660
+ target: v.target,
4661
4661
  width: K(fe(Pe, te)) - 10,
4662
4662
  onClick: I[10] || (I[10] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
4663
4663
  onDbclick: I[11] || (I[11] = (Ce) => t("dbProblemClick", Ce))
4664
4664
  }, null, 8, ["data", "layout", "target", "width"]),
4665
- ge.children.length && ge.children[ge.children.length - 1].id === G.value ? (i(), u("div", {
4665
+ ge.children.length && ge.children[ge.children.length - 1].id === Q.value ? (i(), u("div", {
4666
4666
  key: 0,
4667
4667
  class: "border-t",
4668
4668
  "data-block": x(Ee)
4669
4669
  }, null, 8, Xs)) : D("", !0)
4670
- ], 42, Vs)) : (i(), j(Ge, {
4670
+ ], 42, Vs)) : (i(), V(Ge, {
4671
4671
  key: 2,
4672
4672
  data: ge,
4673
- layout: b.layout,
4674
- target: b.target,
4673
+ layout: v.layout,
4674
+ target: v.target,
4675
4675
  width: K(fe(Pe, te)),
4676
4676
  onClick: I[12] || (I[12] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
4677
4677
  onDbclick: I[13] || (I[13] = (Ce) => t("dbProblemClick", Ce))
@@ -4685,7 +4685,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["vi
4685
4685
  ], 64)) : D("", !0)
4686
4686
  ], 4))), 128))
4687
4687
  ]))
4688
- ], 8, Ks))
4688
+ ], 8, js))
4689
4689
  ], 6)
4690
4690
  ])
4691
4691
  ], 64);