@readerseye2/cr_viewer 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3496,10 +3496,10 @@ const wl = /* @__PURE__ */ xe(
|
|
|
3496
3496
|
return yl(so(bt, Vt, J));
|
|
3497
3497
|
}
|
|
3498
3498
|
const Ne = ki(Oe, Te, le);
|
|
3499
|
-
let
|
|
3500
|
-
re ? K === 0 && ne === 0 && se > 0 ? (
|
|
3501
|
-
const ut = so(
|
|
3502
|
-
return { bottom: Qe, itemHeight: me, items: ut, itemWidth: Te, offsetBottom: Je, offsetTop:
|
|
3499
|
+
let Ae, $e;
|
|
3500
|
+
re ? K === 0 && ne === 0 && se > 0 ? (Ae = 0, $e = se - 1) : (Ae = Ne * Sn((K + we) / (me + we)), $e = Ne * oo((ne + we) / (me + we)) - 1, $e = Vn(z - 1, Kt($e, Ne - 1)), Ae = Vn($e, Kt(0, Ae))) : (Ae = 0, $e = -1);
|
|
3501
|
+
const ut = so(Ae, $e, J), { bottom: Qe, top: Ge } = lo(V, H, oe, ut), ot = oo(z / Ne), Je = ot * me + (ot - 1) * we - Qe;
|
|
3502
|
+
return { bottom: Qe, itemHeight: me, items: ut, itemWidth: Te, offsetBottom: Je, offsetTop: Ge, top: Ge };
|
|
3503
3503
|
}
|
|
3504
3504
|
)
|
|
3505
3505
|
),
|
|
@@ -5050,8 +5050,9 @@ function Ta() {
|
|
|
5050
5050
|
fontSize: r,
|
|
5051
5051
|
lineHeight: o,
|
|
5052
5052
|
overflow: "hidden",
|
|
5053
|
-
|
|
5054
|
-
|
|
5053
|
+
WebkitTextSizeAdjust: "none",
|
|
5054
|
+
MozTextSizeAdjust: "none",
|
|
5055
|
+
textSizeAdjust: "none"
|
|
5055
5056
|
}),
|
|
5056
5057
|
[n, i.bg, i.fg, r, o]
|
|
5057
5058
|
), b = ve(
|
|
@@ -5075,7 +5076,7 @@ function Ma(e) {
|
|
|
5075
5076
|
function Ea(e) {
|
|
5076
5077
|
return rt({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z", opacity: ".87" }, child: [] }, { tag: "path", attr: { d: "M17.51 3.87 15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12l8.13-8.13z" }, child: [] }] })(e);
|
|
5077
5078
|
}
|
|
5078
|
-
const Oa = "_wrap_1hfub_4", Pa = "_visible_1hfub_25", Ba = "_compact_1hfub_31", za = "_row2_1hfub_34", Aa = "_controls_1hfub_44", La = "_row1_1hfub_52", Ga = "_groupExpand_1hfub_80", Ha = "_groupPlayback_1hfub_81", Na = "_groupSpeed_1hfub_82", Fa = "_groupFeatures_1hfub_83", Wa = "_groupNav_1hfub_84", Da = "_btn_1hfub_116", $a = "_btnForbidden_1hfub_141", Va = "_btnActive_1hfub_147", qa = "_label_1hfub_158", ja = "_compactBtn_1hfub_168",
|
|
5079
|
+
const Oa = "_wrap_1hfub_4", Pa = "_visible_1hfub_25", Ba = "_compact_1hfub_31", za = "_row2_1hfub_34", Aa = "_controls_1hfub_44", La = "_row1_1hfub_52", Ga = "_groupExpand_1hfub_80", Ha = "_groupPlayback_1hfub_81", Na = "_groupSpeed_1hfub_82", Fa = "_groupFeatures_1hfub_83", Wa = "_groupNav_1hfub_84", Da = "_btn_1hfub_116", $a = "_btnForbidden_1hfub_141", Va = "_btnActive_1hfub_147", qa = "_label_1hfub_158", ja = "_compactBtn_1hfub_168", Le = {
|
|
5079
5080
|
wrap: Oa,
|
|
5080
5081
|
visible: Pa,
|
|
5081
5082
|
compact: Ba,
|
|
@@ -5539,7 +5540,7 @@ function Ic() {
|
|
|
5539
5540
|
return /* @__PURE__ */ X(
|
|
5540
5541
|
"div",
|
|
5541
5542
|
{
|
|
5542
|
-
className: `${
|
|
5543
|
+
className: `${Le.wrap} ${e ? Le.visible : ""} ${d ? Le.compact : ""}`,
|
|
5543
5544
|
onClick: (C) => {
|
|
5544
5545
|
C.stopPropagation();
|
|
5545
5546
|
},
|
|
@@ -5549,21 +5550,21 @@ function Ic() {
|
|
|
5549
5550
|
children: [
|
|
5550
5551
|
!d && /* @__PURE__ */ x(nc, {}),
|
|
5551
5552
|
/* @__PURE__ */ x("div", { style: d ? { display: "none" } : void 0, children: r && !o ? /* @__PURE__ */ x(Ka, {}) : /* @__PURE__ */ x(oc, {}) }),
|
|
5552
|
-
/* @__PURE__ */ X("div", { className:
|
|
5553
|
-
/* @__PURE__ */ X("div", { className:
|
|
5554
|
-
/* @__PURE__ */ x("div", { className:
|
|
5553
|
+
/* @__PURE__ */ X("div", { className: Le.controls, children: [
|
|
5554
|
+
/* @__PURE__ */ X("div", { className: Le.row1, children: [
|
|
5555
|
+
/* @__PURE__ */ x("div", { className: Le.groupExpand, children: /* @__PURE__ */ x(
|
|
5555
5556
|
"button",
|
|
5556
5557
|
{
|
|
5557
5558
|
type: "button",
|
|
5558
5559
|
onClick: (C) => {
|
|
5559
5560
|
C.stopPropagation(), v();
|
|
5560
5561
|
},
|
|
5561
|
-
className:
|
|
5562
|
+
className: Le.compactBtn,
|
|
5562
5563
|
title: d ? "오버레이 확대" : "오버레이 축소",
|
|
5563
5564
|
children: d ? /* @__PURE__ */ x(wc, { size: 24 }) : /* @__PURE__ */ x(xc, { size: 24 })
|
|
5564
5565
|
}
|
|
5565
5566
|
) }),
|
|
5566
|
-
/* @__PURE__ */ X("div", { className:
|
|
5567
|
+
/* @__PURE__ */ X("div", { className: Le.groupPlayback, children: [
|
|
5567
5568
|
/* @__PURE__ */ x(xo, { direction: "left" }),
|
|
5568
5569
|
/* @__PURE__ */ x(
|
|
5569
5570
|
yc,
|
|
@@ -5576,10 +5577,10 @@ function Ic() {
|
|
|
5576
5577
|
),
|
|
5577
5578
|
/* @__PURE__ */ x(xo, { direction: "right" })
|
|
5578
5579
|
] }),
|
|
5579
|
-
/* @__PURE__ */ x("div", { className:
|
|
5580
|
+
/* @__PURE__ */ x("div", { className: Le.groupSpeed, children: /* @__PURE__ */ x(pc, {}) })
|
|
5580
5581
|
] }),
|
|
5581
|
-
/* @__PURE__ */ X("div", { className:
|
|
5582
|
-
/* @__PURE__ */ X("div", { className:
|
|
5582
|
+
/* @__PURE__ */ X("div", { className: Le.row2, children: [
|
|
5583
|
+
/* @__PURE__ */ X("div", { className: Le.groupFeatures, children: [
|
|
5583
5584
|
r && /* @__PURE__ */ X(
|
|
5584
5585
|
"button",
|
|
5585
5586
|
{
|
|
@@ -5587,11 +5588,11 @@ function Ic() {
|
|
|
5587
5588
|
onClick: (C) => {
|
|
5588
5589
|
C.stopPropagation(), c();
|
|
5589
5590
|
},
|
|
5590
|
-
className: `${
|
|
5591
|
+
className: `${Le.btn} ${o ? "" : Le.btnActive}`,
|
|
5591
5592
|
title: "오디오북 음소거 전환",
|
|
5592
5593
|
children: [
|
|
5593
5594
|
o ? /* @__PURE__ */ x(ka, { size: 18 }) : /* @__PURE__ */ x(Ra, { size: 18 }),
|
|
5594
|
-
/* @__PURE__ */ x("span", { className:
|
|
5595
|
+
/* @__PURE__ */ x("span", { className: Le.label, children: "오디오북" })
|
|
5595
5596
|
]
|
|
5596
5597
|
}
|
|
5597
5598
|
),
|
|
@@ -5602,11 +5603,11 @@ function Ic() {
|
|
|
5602
5603
|
onClick: (C) => {
|
|
5603
5604
|
C.stopPropagation(), l();
|
|
5604
5605
|
},
|
|
5605
|
-
className: `${
|
|
5606
|
+
className: `${Le.btn} ${i ? Le.btnActive : ""}`,
|
|
5606
5607
|
title: "포인터 표시",
|
|
5607
5608
|
children: [
|
|
5608
5609
|
/* @__PURE__ */ x(_a, { size: 18 }),
|
|
5609
|
-
/* @__PURE__ */ x("span", { className:
|
|
5610
|
+
/* @__PURE__ */ x("span", { className: Le.label, children: "포인터" })
|
|
5610
5611
|
]
|
|
5611
5612
|
}
|
|
5612
5613
|
),
|
|
@@ -5618,16 +5619,16 @@ function Ic() {
|
|
|
5618
5619
|
C.stopPropagation(), a();
|
|
5619
5620
|
},
|
|
5620
5621
|
disabled: !n,
|
|
5621
|
-
className: `${
|
|
5622
|
+
className: `${Le.btn} ${s ? Le.btnActive : ""} ${n ? "" : Le.btnForbidden}`,
|
|
5622
5623
|
title: "끊어읽기 표시",
|
|
5623
5624
|
children: [
|
|
5624
5625
|
/* @__PURE__ */ x(Ma, { size: 18 }),
|
|
5625
|
-
/* @__PURE__ */ x("span", { className:
|
|
5626
|
+
/* @__PURE__ */ x("span", { className: Le.label, children: "끊어읽기" })
|
|
5626
5627
|
]
|
|
5627
5628
|
}
|
|
5628
5629
|
)
|
|
5629
5630
|
] }),
|
|
5630
|
-
/* @__PURE__ */ X("div", { className:
|
|
5631
|
+
/* @__PURE__ */ X("div", { className: Le.groupNav, children: [
|
|
5631
5632
|
/* @__PURE__ */ x(xa, {}),
|
|
5632
5633
|
/* @__PURE__ */ x(Cn, {})
|
|
5633
5634
|
] })
|
|
@@ -5670,7 +5671,7 @@ function Pc() {
|
|
|
5670
5671
|
)
|
|
5671
5672
|
] }) });
|
|
5672
5673
|
}
|
|
5673
|
-
const Bc = N.memo(Pc), zc = "_wrap_62su0_7", Ac = "_wrapHidden_62su0_29", Lc = "_wrapVisible_62su0_35", Gc = "_scrollArea_62su0_71", Hc = "_row_62su0_81", Nc = "_label_62su0_89", Fc = "_btn_62su0_95", Wc = "_btnActive_62su0_106", Dc = "_btnSmall_62su0_110", $c = "_pill_62su0_122", Vc = "_themeCircle_62su0_133", qc = "_themeCircleActive_62su0_146", jc = "_stepRow_62su0_151", Uc = "_stepLabel_62su0_159", Kc = "_levelBox_62su0_172", Qc = "_inlineFlex_62su0_177",
|
|
5674
|
+
const Bc = N.memo(Pc), zc = "_wrap_62su0_7", Ac = "_wrapHidden_62su0_29", Lc = "_wrapVisible_62su0_35", Gc = "_scrollArea_62su0_71", Hc = "_row_62su0_81", Nc = "_label_62su0_89", Fc = "_btn_62su0_95", Wc = "_btnActive_62su0_106", Dc = "_btnSmall_62su0_110", $c = "_pill_62su0_122", Vc = "_themeCircle_62su0_133", qc = "_themeCircleActive_62su0_146", jc = "_stepRow_62su0_151", Uc = "_stepLabel_62su0_159", Kc = "_levelBox_62su0_172", Qc = "_inlineFlex_62su0_177", ze = {
|
|
5674
5675
|
wrap: zc,
|
|
5675
5676
|
wrapHidden: Ac,
|
|
5676
5677
|
wrapVisible: Lc,
|
|
@@ -5689,21 +5690,21 @@ const Bc = N.memo(Pc), zc = "_wrap_62su0_7", Ac = "_wrapHidden_62su0_29", Lc = "
|
|
|
5689
5690
|
inlineFlex: Qc
|
|
5690
5691
|
};
|
|
5691
5692
|
function Yc({ visible: e }) {
|
|
5692
|
-
const t = Y((h) => h.mode), n = Y((h) => h.setMode), r = Y((h) => h.theme), o = Y((h) => h.setTheme), i = Y((h) => h.fontFamily), s = Y((h) => h.setFontFamily), c = Y((h) => h.resetToDefaults), l = Y((h) => h.getFontLevel()), a = Y((h) => h.getLineLevel()), d = Y((h) => h.getMarginLevel()), v = Y((h) => h.setFontLevel), g = Y((h) => h.setLineLevel), b = Y((h) => h.setMarginLevel), m = Y((h) => h.pointerStyle), y = Y((h) => h.setPointerStyle), p = Y((h) => h.pointerColor), f = Y((h) => h.setPointerColor), u = Y((h) => h.breakMarks), T = Y((h) => h.toggleBreakMark), k = Y((h) => h.getBreakGapLevel()), R = Y((h) => h.setBreakGapLevel), C = `${
|
|
5693
|
+
const t = Y((h) => h.mode), n = Y((h) => h.setMode), r = Y((h) => h.theme), o = Y((h) => h.setTheme), i = Y((h) => h.fontFamily), s = Y((h) => h.setFontFamily), c = Y((h) => h.resetToDefaults), l = Y((h) => h.getFontLevel()), a = Y((h) => h.getLineLevel()), d = Y((h) => h.getMarginLevel()), v = Y((h) => h.setFontLevel), g = Y((h) => h.setLineLevel), b = Y((h) => h.setMarginLevel), m = Y((h) => h.pointerStyle), y = Y((h) => h.setPointerStyle), p = Y((h) => h.pointerColor), f = Y((h) => h.setPointerColor), u = Y((h) => h.breakMarks), T = Y((h) => h.toggleBreakMark), k = Y((h) => h.getBreakGapLevel()), R = Y((h) => h.setBreakGapLevel), C = `${ze.wrap} ${e ? ze.wrapVisible : ze.wrapHidden}`;
|
|
5693
5694
|
return /* @__PURE__ */ X("div", { className: C, role: "dialog", "aria-modal": "true", "aria-label": "뷰어 설정", children: [
|
|
5694
|
-
/* @__PURE__ */ X("div", { className:
|
|
5695
|
-
/* @__PURE__ */ x(jt, { label: "열람방식", children: /* @__PURE__ */ X("div", { className:
|
|
5695
|
+
/* @__PURE__ */ X("div", { className: ze.scrollArea, children: [
|
|
5696
|
+
/* @__PURE__ */ x(jt, { label: "열람방식", children: /* @__PURE__ */ X("div", { className: ze.inlineFlex, children: [
|
|
5696
5697
|
/* @__PURE__ */ x(Lt, { active: t === "page", onClick: () => n("page"), children: "페이지" }),
|
|
5697
5698
|
/* @__PURE__ */ x(Lt, { active: t === "scroll", onClick: () => n("scroll"), children: "스크롤" })
|
|
5698
5699
|
] }) }),
|
|
5699
|
-
/* @__PURE__ */ x(jt, { label: "테마", children: /* @__PURE__ */ x("div", { className:
|
|
5700
|
+
/* @__PURE__ */ x(jt, { label: "테마", children: /* @__PURE__ */ x("div", { className: ze.inlineFlex, children: Object.keys(bn).map((h) => {
|
|
5700
5701
|
const S = h, I = bn[S];
|
|
5701
5702
|
return /* @__PURE__ */ x(
|
|
5702
5703
|
"button",
|
|
5703
5704
|
{
|
|
5704
5705
|
type: "button",
|
|
5705
5706
|
onClick: () => o(S),
|
|
5706
|
-
className: `${
|
|
5707
|
+
className: `${ze.themeCircle} ${r === h ? ze.themeCircleActive : ""}`,
|
|
5707
5708
|
style: { background: I.bg, color: I.fg, fontFamily: i },
|
|
5708
5709
|
title: String(h),
|
|
5709
5710
|
"aria-label": `테마: ${String(h)}`,
|
|
@@ -5712,7 +5713,7 @@ function Yc({ visible: e }) {
|
|
|
5712
5713
|
`${h}_tc_button`
|
|
5713
5714
|
);
|
|
5714
5715
|
}) }) }),
|
|
5715
|
-
/* @__PURE__ */ x(jt, { label: "글꼴", children: /* @__PURE__ */ x("div", { className:
|
|
5716
|
+
/* @__PURE__ */ x(jt, { label: "글꼴", children: /* @__PURE__ */ x("div", { className: ze.inlineFlex, children: Ko.map((h) => /* @__PURE__ */ x(
|
|
5716
5717
|
Lt,
|
|
5717
5718
|
{
|
|
5718
5719
|
active: i === h.value,
|
|
@@ -5755,7 +5756,7 @@ function Yc({ visible: e }) {
|
|
|
5755
5756
|
onInc: () => b(Math.min(5, d + 1))
|
|
5756
5757
|
}
|
|
5757
5758
|
),
|
|
5758
|
-
/* @__PURE__ */ x(jt, { label: "포인터", children: /* @__PURE__ */ X("div", { className:
|
|
5759
|
+
/* @__PURE__ */ x(jt, { label: "포인터", children: /* @__PURE__ */ X("div", { className: ze.inlineFlex, children: [
|
|
5759
5760
|
/* @__PURE__ */ x(Lt, { active: m === "highlight", onClick: () => y("highlight"), children: "형광펜" }),
|
|
5760
5761
|
/* @__PURE__ */ x(Lt, { active: m === "underline", onClick: () => y("underline"), children: "밑줄" }),
|
|
5761
5762
|
/* @__PURE__ */ x(
|
|
@@ -5775,7 +5776,7 @@ function Yc({ visible: e }) {
|
|
|
5775
5776
|
}
|
|
5776
5777
|
)
|
|
5777
5778
|
] }) }),
|
|
5778
|
-
/* @__PURE__ */ x(jt, { label: "끊기표시", children: /* @__PURE__ */ x("div", { className:
|
|
5779
|
+
/* @__PURE__ */ x(jt, { label: "끊기표시", children: /* @__PURE__ */ x("div", { className: ze.inlineFlex, children: /* @__PURE__ */ x(Lt, { active: u.slash, onClick: () => T("slash"), children: "슬래쉬" }) }) }),
|
|
5779
5780
|
/* @__PURE__ */ x(
|
|
5780
5781
|
pn,
|
|
5781
5782
|
{
|
|
@@ -5788,12 +5789,12 @@ function Yc({ visible: e }) {
|
|
|
5788
5789
|
}
|
|
5789
5790
|
)
|
|
5790
5791
|
] }),
|
|
5791
|
-
/* @__PURE__ */ x("div", { className:
|
|
5792
|
+
/* @__PURE__ */ x("div", { className: ze.inlineFlex, style: { justifyContent: "center" }, children: /* @__PURE__ */ x("button", { type: "button", onClick: c, className: ze.pill, children: "보기 설정 초기화" }) })
|
|
5792
5793
|
] });
|
|
5793
5794
|
}
|
|
5794
5795
|
function jt({ label: e, children: t }) {
|
|
5795
|
-
return /* @__PURE__ */ X("div", { className:
|
|
5796
|
-
/* @__PURE__ */ x("label", { className:
|
|
5796
|
+
return /* @__PURE__ */ X("div", { className: ze.row, children: [
|
|
5797
|
+
/* @__PURE__ */ x("label", { className: ze.label, children: e }),
|
|
5797
5798
|
t
|
|
5798
5799
|
] });
|
|
5799
5800
|
}
|
|
@@ -5809,7 +5810,7 @@ function Lt({
|
|
|
5809
5810
|
type: "button",
|
|
5810
5811
|
onClick: t,
|
|
5811
5812
|
title: n,
|
|
5812
|
-
className: `${
|
|
5813
|
+
className: `${ze.btn} ${e ? ze.btnActive : ""}`,
|
|
5813
5814
|
children: r
|
|
5814
5815
|
}
|
|
5815
5816
|
);
|
|
@@ -5823,28 +5824,28 @@ function pn({
|
|
|
5823
5824
|
onInc: i
|
|
5824
5825
|
}) {
|
|
5825
5826
|
const s = t <= n, c = t >= r;
|
|
5826
|
-
return /* @__PURE__ */ X("div", { className:
|
|
5827
|
-
/* @__PURE__ */ x("label", { className:
|
|
5828
|
-
/* @__PURE__ */ X("div", { className:
|
|
5827
|
+
return /* @__PURE__ */ X("div", { className: ze.stepRow, children: [
|
|
5828
|
+
/* @__PURE__ */ x("label", { className: ze.stepLabel, children: e }),
|
|
5829
|
+
/* @__PURE__ */ X("div", { className: ze.inlineFlex, children: [
|
|
5829
5830
|
/* @__PURE__ */ x(
|
|
5830
5831
|
"button",
|
|
5831
5832
|
{
|
|
5832
5833
|
type: "button",
|
|
5833
5834
|
onClick: o,
|
|
5834
5835
|
disabled: s,
|
|
5835
|
-
className:
|
|
5836
|
+
className: ze.btnSmall,
|
|
5836
5837
|
"aria-label": "감소",
|
|
5837
5838
|
children: "−"
|
|
5838
5839
|
}
|
|
5839
5840
|
),
|
|
5840
|
-
/* @__PURE__ */ x("div", { className:
|
|
5841
|
+
/* @__PURE__ */ x("div", { className: ze.levelBox, children: t }),
|
|
5841
5842
|
/* @__PURE__ */ x(
|
|
5842
5843
|
"button",
|
|
5843
5844
|
{
|
|
5844
5845
|
type: "button",
|
|
5845
5846
|
onClick: i,
|
|
5846
5847
|
disabled: c,
|
|
5847
|
-
className:
|
|
5848
|
+
className: ze.btnSmall,
|
|
5848
5849
|
"aria-label": "증가",
|
|
5849
5850
|
children: "+"
|
|
5850
5851
|
}
|
|
@@ -7179,8 +7180,8 @@ async function Ou({
|
|
|
7179
7180
|
if (M.dataset.block = String(H), M.innerHTML = "", oe.kind === "image") {
|
|
7180
7181
|
const Te = oe.block, Oe = ke(Te);
|
|
7181
7182
|
M.appendChild(Oe);
|
|
7182
|
-
const Ne = Oe.getBoundingClientRect(), { mt:
|
|
7183
|
-
F[H] = { contentH: Math.ceil(Ne.height), mt:
|
|
7183
|
+
const Ne = Oe.getBoundingClientRect(), { mt: Ae, mb: $e } = sr(Oe);
|
|
7184
|
+
F[H] = { contentH: Math.ceil(Ne.height), mt: Ae, mb: $e }, await D(24);
|
|
7184
7185
|
continue;
|
|
7185
7186
|
}
|
|
7186
7187
|
const V = oe.block, J = V.list ? (V.list.level ?? 0) * 24 : 0, se = oe.paraIndex ?? 0, re = g[se] ?? (((f = V.list) == null ? void 0 : f.kind) === "bullet" ? ((u = V.list) == null ? void 0 : u.glyph) ?? "•" : void 0);
|
|
@@ -7191,15 +7192,15 @@ async function Ou({
|
|
|
7191
7192
|
Oe.dataset.variant = "no";
|
|
7192
7193
|
const Ne = document.createElement("span");
|
|
7193
7194
|
Ne.textContent = `${re} `, Ne.style.minWidth = "16px", Ne.style.display = "inline-block", Ne.style.whiteSpace = "nowrap", Ne.style.userSelect = "none", Te.appendChild(Ne), ue(Te, V.runs), ue(Oe, V.runs);
|
|
7194
|
-
const
|
|
7195
|
-
|
|
7195
|
+
const Ae = document.createDocumentFragment();
|
|
7196
|
+
Ae.appendChild(Te), Ae.appendChild(Oe), M.appendChild(Ae);
|
|
7196
7197
|
} else {
|
|
7197
7198
|
const Te = q(V, J);
|
|
7198
7199
|
Te.dataset.variant = "with", ue(Te, V.runs), M.appendChild(Te);
|
|
7199
7200
|
}
|
|
7200
7201
|
const le = M.querySelector('p[data-variant="with"]'), we = M.querySelector('p[data-variant="no"]'), me = we ?? le;
|
|
7201
7202
|
if (le && me) {
|
|
7202
|
-
const Te = Ho(le), Oe = Ho(me), { mt: Ne, mb:
|
|
7203
|
+
const Te = Ho(le), Oe = Ho(me), { mt: Ne, mb: Ae } = sr(le), { mt: $e, mb: ut } = sr(me), Qe = ((T = V.runs) == null ? void 0 : T.length) ?? 0, Ge = we ? Oe : Te, ot = we ? $e : Ne, Je = we ? ut : Ae;
|
|
7203
7204
|
if (H < 3) {
|
|
7204
7205
|
const bt = le.getBoundingClientRect().height;
|
|
7205
7206
|
console.log(
|
|
@@ -7209,9 +7210,9 @@ async function Ou({
|
|
|
7209
7210
|
B.set(H, {
|
|
7210
7211
|
runsLen: Qe,
|
|
7211
7212
|
lastBottomWith: Te,
|
|
7212
|
-
lastBottomNo:
|
|
7213
|
+
lastBottomNo: Ge,
|
|
7213
7214
|
mtWith: Ne,
|
|
7214
|
-
mbWith:
|
|
7215
|
+
mbWith: Ae,
|
|
7215
7216
|
mtNo: ot,
|
|
7216
7217
|
mbNo: Je
|
|
7217
7218
|
});
|
|
@@ -7233,9 +7234,9 @@ async function Ou({
|
|
|
7233
7234
|
let se = -1, re;
|
|
7234
7235
|
for (; Q < r.length; ) {
|
|
7235
7236
|
if (lt(p, y), r[Q].kind === "image") {
|
|
7236
|
-
const
|
|
7237
|
+
const Ge = F[Q] ?? { contentH: 0, mt: 0, mb: 0 }, Je = (oe === 0 ? Ge.mt : V + Ge.mt) + Ge.contentH;
|
|
7237
7238
|
if (_(Je, oe)) {
|
|
7238
|
-
oe += Je, se = Q, re = void 0, V =
|
|
7239
|
+
oe += Je, se = Q, re = void 0, V = Ge.mb, Q += 1, z = void 0, K = null, ne = null;
|
|
7239
7240
|
continue;
|
|
7240
7241
|
}
|
|
7241
7242
|
if (oe === 0) {
|
|
@@ -7254,16 +7255,16 @@ async function Ou({
|
|
|
7254
7255
|
Q += 1, z = void 0, K = null, ne = null;
|
|
7255
7256
|
continue;
|
|
7256
7257
|
}
|
|
7257
|
-
const Te = me > 0, Oe = Re(le, me, we - 1, Te),
|
|
7258
|
-
if (_(
|
|
7259
|
-
oe +=
|
|
7258
|
+
const Te = me > 0, Oe = Re(le, me, we - 1, Te), Ae = (oe === 0 ? Oe.top : V + Oe.top) + Oe.content;
|
|
7259
|
+
if (_(Ae, oe)) {
|
|
7260
|
+
oe += Ae, se = Q, re = we - 1, V = Oe.mb, Q += 1, z = void 0, K = null, ne = null;
|
|
7260
7261
|
continue;
|
|
7261
7262
|
}
|
|
7262
7263
|
let $e = me, ut = we - 1, Qe = me - 1;
|
|
7263
7264
|
for (; $e <= ut; ) {
|
|
7264
7265
|
lt(p, y);
|
|
7265
|
-
const
|
|
7266
|
-
_(Je, oe) ? (Qe =
|
|
7266
|
+
const Ge = $e + ut >> 1, ot = Re(le, me, Ge, Te), Je = (oe === 0 ? ot.top : V + ot.top) + ot.content;
|
|
7267
|
+
_(Je, oe) ? (Qe = Ge, $e = Ge + 1) : ut = Ge - 1;
|
|
7267
7268
|
}
|
|
7268
7269
|
if (Qe >= me) {
|
|
7269
7270
|
ee.push({
|
|
@@ -7283,13 +7284,13 @@ async function Ou({
|
|
|
7283
7284
|
}), V = 0;
|
|
7284
7285
|
break;
|
|
7285
7286
|
} else {
|
|
7286
|
-
const
|
|
7287
|
+
const Ge = me;
|
|
7287
7288
|
ee.push({
|
|
7288
7289
|
startBlock: H,
|
|
7289
7290
|
endBlock: Q,
|
|
7290
7291
|
...J != null ? { startOffsetInBlock: J } : {},
|
|
7291
|
-
endOffsetInBlock:
|
|
7292
|
-
}), z =
|
|
7292
|
+
endOffsetInBlock: Ge
|
|
7293
|
+
}), z = Ge + 1, K = Q, ne = Ge, V = 0;
|
|
7293
7294
|
break;
|
|
7294
7295
|
}
|
|
7295
7296
|
}
|
|
@@ -7365,11 +7366,11 @@ function Lu() {
|
|
|
7365
7366
|
var $;
|
|
7366
7367
|
return Au((($ = t == null ? void 0 : t.ast) == null ? void 0 : $.blocks) ?? []);
|
|
7367
7368
|
}, [t]), f = ve(() => {
|
|
7368
|
-
const $ = [],
|
|
7369
|
+
const $ = [], He = Or();
|
|
7369
7370
|
return p.forEach((We) => {
|
|
7370
7371
|
if (We.kind === "paragraph") {
|
|
7371
7372
|
const Ct = We.paraIndex;
|
|
7372
|
-
$[Ct] = Pr(We.block,
|
|
7373
|
+
$[Ct] = Pr(We.block, He);
|
|
7373
7374
|
}
|
|
7374
7375
|
}), $;
|
|
7375
7376
|
}, [p]), [u, T] = et({
|
|
@@ -7384,11 +7385,13 @@ function Lu() {
|
|
|
7384
7385
|
fontSize: d,
|
|
7385
7386
|
lineHeight: v,
|
|
7386
7387
|
overflow: "hidden",
|
|
7387
|
-
WebkitOverflowScrolling: "touch",
|
|
7388
7388
|
width: "100%",
|
|
7389
7389
|
height: "100%",
|
|
7390
7390
|
position: "relative",
|
|
7391
|
-
boxSizing: "border-box"
|
|
7391
|
+
boxSizing: "border-box",
|
|
7392
|
+
WebkitTextSizeAdjust: "none",
|
|
7393
|
+
MozTextSizeAdjust: "none",
|
|
7394
|
+
textSizeAdjust: "none"
|
|
7392
7395
|
}),
|
|
7393
7396
|
[a, l.bg, l.fg, d, v]
|
|
7394
7397
|
), {
|
|
@@ -7397,11 +7400,11 @@ function Lu() {
|
|
|
7397
7400
|
slash: M
|
|
7398
7401
|
} = Y(
|
|
7399
7402
|
nn(($) => {
|
|
7400
|
-
var
|
|
7403
|
+
var He;
|
|
7401
7404
|
return {
|
|
7402
7405
|
showSplit: $.showSplit,
|
|
7403
7406
|
breakGapPx: $.breakGapPx ?? 0,
|
|
7404
|
-
slash: ((
|
|
7407
|
+
slash: ((He = $.breakMarks) == null ? void 0 : He.slash) ?? !1
|
|
7405
7408
|
};
|
|
7406
7409
|
})
|
|
7407
7410
|
), B = Rt();
|
|
@@ -7413,8 +7416,8 @@ function Lu() {
|
|
|
7413
7416
|
}, [u, B]);
|
|
7414
7417
|
const F = Z(() => {
|
|
7415
7418
|
console.log("@@@@@@recalc호출");
|
|
7416
|
-
const $ = y.current,
|
|
7417
|
-
if (console.log("showSplit", A), !$ || !
|
|
7419
|
+
const $ = y.current, He = le.current, We = we.current;
|
|
7420
|
+
if (console.log("showSplit", A), !$ || !He || !We || p.length === 0) {
|
|
7418
7421
|
T({ pages: [], pageByRunIndex: null }), R(0);
|
|
7419
7422
|
return;
|
|
7420
7423
|
}
|
|
@@ -7423,7 +7426,7 @@ function Lu() {
|
|
|
7423
7426
|
try {
|
|
7424
7427
|
const it = s.getState().playbackScale, { pages: Bt, pageByRunIndex: Di } = await Ou({
|
|
7425
7428
|
viewHost: $,
|
|
7426
|
-
measureRoot:
|
|
7429
|
+
measureRoot: He,
|
|
7427
7430
|
contentArea: We,
|
|
7428
7431
|
items: p,
|
|
7429
7432
|
cfgMaxWidth: m,
|
|
@@ -7466,12 +7469,12 @@ function Lu() {
|
|
|
7466
7469
|
b,
|
|
7467
7470
|
e
|
|
7468
7471
|
]), D = j(($) => $.setCurrentGlobalRunIndex), q = j(($) => {
|
|
7469
|
-
var
|
|
7470
|
-
return ((
|
|
7472
|
+
var He;
|
|
7473
|
+
return ((He = $.layout) == null ? void 0 : He.prefix) ?? [];
|
|
7471
7474
|
}), ue = _e(($) => $.syncToGI), de = Z(
|
|
7472
7475
|
($) => {
|
|
7473
|
-
const
|
|
7474
|
-
if (We < 0 || We >=
|
|
7476
|
+
const He = u.pages.length + 1, We = k + $;
|
|
7477
|
+
if (We < 0 || We >= He) return;
|
|
7475
7478
|
const Ct = k === u.pages.length;
|
|
7476
7479
|
if (We === u.pages.length) {
|
|
7477
7480
|
R(We);
|
|
@@ -7491,14 +7494,14 @@ function Lu() {
|
|
|
7491
7494
|
}, [S, de]), Re = Z(() => {
|
|
7492
7495
|
S || C.current !== 0 ? (O("next"), I(!1)) : de(1);
|
|
7493
7496
|
}, [S, de]), ee = kn(), Q = Z(() => {
|
|
7494
|
-
const { isSettingsOpen: $, setSettingsOpen:
|
|
7495
|
-
$ ?
|
|
7497
|
+
const { isSettingsOpen: $, setSettingsOpen: He, toggleOverlays: We } = ee.getState();
|
|
7498
|
+
$ ? He(!1) : We();
|
|
7496
7499
|
}, [ee]), z = u.pages.length + 1, K = ((zr = y.current) == null ? void 0 : zr.clientWidth) || 400, ne = Z(($) => {
|
|
7497
7500
|
var it;
|
|
7498
|
-
const
|
|
7499
|
-
if (!
|
|
7501
|
+
const He = h.current;
|
|
7502
|
+
if (!He) return;
|
|
7500
7503
|
const We = ((it = y.current) == null ? void 0 : it.clientWidth) || 1, Ct = $ / We * 33.333;
|
|
7501
|
-
|
|
7504
|
+
He.style.transform = `translate3d(${-33.333 + Ct}%, 0, 0)`;
|
|
7502
7505
|
}, []), H = Z(
|
|
7503
7506
|
($) => {
|
|
7504
7507
|
k === 0 && $ > 0 || k >= z - 1 && $ < 0 || (C.current = $, ne($), S || I(!0));
|
|
@@ -7511,8 +7514,8 @@ function Lu() {
|
|
|
7511
7514
|
}, []), V = Z(
|
|
7512
7515
|
($) => {
|
|
7513
7516
|
if ($.target !== $.currentTarget || $.propertyName !== "transform") return;
|
|
7514
|
-
const
|
|
7515
|
-
w(!0), O(null), C.current = 0,
|
|
7517
|
+
const He = _;
|
|
7518
|
+
w(!0), O(null), C.current = 0, He === "prev" ? de(-1) : He === "next" && de(1);
|
|
7516
7519
|
},
|
|
7517
7520
|
[_, de]
|
|
7518
7521
|
);
|
|
@@ -7527,10 +7530,7 @@ function Lu() {
|
|
|
7527
7530
|
($) => i || zu($) ? !0 : Bu($),
|
|
7528
7531
|
[i]
|
|
7529
7532
|
), re = Z(
|
|
7530
|
-
($) =>
|
|
7531
|
-
const ze = J.getState().status;
|
|
7532
|
-
return ze === "playing" || ze === "loading" ? !0 : se($);
|
|
7533
|
-
},
|
|
7533
|
+
($) => J.getState().status === "playing" ? !0 : se($),
|
|
7534
7534
|
[J, se]
|
|
7535
7535
|
), pe = hu({
|
|
7536
7536
|
onPrev: ke,
|
|
@@ -7579,8 +7579,8 @@ function Lu() {
|
|
|
7579
7579
|
b,
|
|
7580
7580
|
t == null ? void 0 : t.section_id
|
|
7581
7581
|
]), pu([y], Oe);
|
|
7582
|
-
const
|
|
7583
|
-
Se(() => (
|
|
7582
|
+
const Ae = j(($) => $.registerSectionScrollApi);
|
|
7583
|
+
Se(() => (Ae({
|
|
7584
7584
|
// 페이지 모드에서는 GI 기반 스크롤 불필요 - 더미 구현
|
|
7585
7585
|
ensureVisibleGI: () => Promise.resolve(!0),
|
|
7586
7586
|
scrollToGI: () => Promise.resolve(!0),
|
|
@@ -7592,8 +7592,8 @@ function Lu() {
|
|
|
7592
7592
|
scrollToGIAtOffset: () => Promise.resolve(),
|
|
7593
7593
|
// 페이지 이동 구현
|
|
7594
7594
|
stepPage: de
|
|
7595
|
-
}), () =>
|
|
7596
|
-
const $e = t.quizzes && t.quizzes.length > 0, ut = u.pages.length > 0 && k === u.pages.length, Qe = k > 0 ? k - 1 : null,
|
|
7595
|
+
}), () => Ae(void 0)), [Ae, de]);
|
|
7596
|
+
const $e = t.quizzes && t.quizzes.length > 0, ut = u.pages.length > 0 && k === u.pages.length, Qe = k > 0 ? k - 1 : null, Ge = k < z - 1 ? k + 1 : null, ot = ve(() => _ === "prev" ? "translate3d(0%, 0, 0)" : _ === "next" ? "translate3d(-66.666%, 0, 0)" : "translate3d(-33.333%, 0, 0)", [_]), Je = ($) => n ? null : $ === u.pages.length ? /* @__PURE__ */ X(
|
|
7597
7597
|
"div",
|
|
7598
7598
|
{
|
|
7599
7599
|
style: {
|
|
@@ -7622,7 +7622,7 @@ function Lu() {
|
|
|
7622
7622
|
backfaceVisibility: "hidden",
|
|
7623
7623
|
WebkitBackfaceVisibility: "hidden"
|
|
7624
7624
|
}, Vt = !P && (!S || _ !== null);
|
|
7625
|
-
return console.log("여기리랜더"), /* @__PURE__ */ X("div", { ref: y, style: { ...E, touchAction: "
|
|
7625
|
+
return console.log("여기리랜더"), /* @__PURE__ */ X("div", { ref: y, style: { ...E, touchAction: "none" }, ...pe, children: [
|
|
7626
7626
|
/* @__PURE__ */ X(
|
|
7627
7627
|
"div",
|
|
7628
7628
|
{
|
|
@@ -7643,7 +7643,7 @@ function Lu() {
|
|
|
7643
7643
|
children: [
|
|
7644
7644
|
/* @__PURE__ */ x("div", { style: bt, children: Qe !== null && Je(Qe) }),
|
|
7645
7645
|
/* @__PURE__ */ x("div", { style: bt, children: Je(k) }),
|
|
7646
|
-
/* @__PURE__ */ x("div", { style: bt, children:
|
|
7646
|
+
/* @__PURE__ */ x("div", { style: bt, children: Ge !== null && Je(Ge) })
|
|
7647
7647
|
]
|
|
7648
7648
|
}
|
|
7649
7649
|
),
|
|
@@ -8875,7 +8875,9 @@ function zd() {
|
|
|
8875
8875
|
// 텍스트 선택 방지
|
|
8876
8876
|
userSelect: "none",
|
|
8877
8877
|
WebkitUserSelect: "none",
|
|
8878
|
-
WebkitTouchCallout: "none"
|
|
8878
|
+
WebkitTouchCallout: "none",
|
|
8879
|
+
// 모바일 기본 터치 동작 차단 (스와이프 페이지 넘김용)
|
|
8880
|
+
touchAction: "none"
|
|
8879
8881
|
},
|
|
8880
8882
|
children: [
|
|
8881
8883
|
e === "scroll" ? /* @__PURE__ */ x(Ta, {}) : /* @__PURE__ */ x(Lu, {}),
|