@prose-reader/react-reader 1.296.0 → 1.297.0
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/annotations/useReaderWithAnnotations.d.ts +1 -18
- package/dist/context/useReader.d.ts +1 -18
- package/dist/index.js +645 -643
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsx as a, jsxs as y, Fragment as ve } from "react/jsx-runtime";
|
|
2
2
|
import { c as x } from "react/compiler-runtime";
|
|
3
|
-
import { Presence as
|
|
3
|
+
import { Presence as Ze, Button as ue, IconButton as te, Drawer as he, Portal as bt, Box as le, Stack as ee, Text as U, Textarea as vn, Dialog as ae, List as ge, Link as Mt, Tabs as me, useBreakpointValue as Cn, createToaster as xn, Toaster as yn, Toast as je, Spinner as In, RadioGroup as nt, Slider as fe, HStack as ce, For as Tn, Fieldset as xe, Heading as xt, Kbd as Ft, chakra as kn, Popover as qe, Progress as lt, Collapsible as yt, Field as et, Input as $n } from "@chakra-ui/react";
|
|
4
4
|
import * as de from "react";
|
|
5
|
-
import
|
|
6
|
-
import { FaEdit as
|
|
7
|
-
import { LuNotebookPen as
|
|
8
|
-
import { signal as Ke, useObserve as H, useSignalValue as Tt, useSubscribe as pe, isDefined as
|
|
9
|
-
import { Subject as
|
|
10
|
-
import { pick as
|
|
5
|
+
import Rn, { createContext as Mn, useContext as Xt, memo as N, useState as ne, useEffect as oe, useRef as _e, useLayoutEffect as On } from "react";
|
|
6
|
+
import { FaEdit as An } from "react-icons/fa";
|
|
7
|
+
import { LuNotebookPen as st, LuX as wn, LuBookmark as zn, LuCheck as Pn, LuArrowBigRight as En, LuArrowBigLeft as Dn, LuPause as Bn, LuPlay as Fn, LuChevronDown as Ln, LuCircleHelp as Nn, LuTableOfContents as Hn, LuSearch as Vn, LuZoomOut as Wn, LuZoomIn as Gn, LuGalleryHorizontal as Un, LuCircleCheck as Lt } from "react-icons/lu";
|
|
8
|
+
import { signal as Ke, useObserve as H, useSignalValue as Tt, useSubscribe as pe, isDefined as Jt, useConstant as it, useMemoCompare as jn, useLiveRef as qn, useSignalState as Kn } from "reactjrx";
|
|
9
|
+
import { Subject as Yn, EMPTY as kt, switchMap as Ce, map as J, startWith as $t, tap as Ot, filter as gt, of as pt, NEVER as Ye, withLatestFrom as At, distinctUntilChanged as be, combineLatest as at, throttleTime as en, debounceTime as Zn, shareReplay as Qn, mergeMap as Xn, Observable as Jn, skip as eo, merge as tn, timer as nn, first as to, finalize as no, BehaviorSubject as on, animationFrameScheduler as oo } from "rxjs";
|
|
10
|
+
import { pick as io, watchKeys as ln, isShallowEqual as sn, setPropertyIfChanged as Nt, setStylePropertyIfChanged as Ht, observeIntersection as lo, shouldUseComputedSpreadModeForViewport as so, isHtmlTagElement as ro } from "@prose-reader/core";
|
|
11
11
|
import { createPortal as wt } from "react-dom";
|
|
12
|
-
import { isShallowEqual as
|
|
13
|
-
import { MdScreenRotation as
|
|
14
|
-
import { BiFontSize as
|
|
15
|
-
import { BsBookmarks as
|
|
16
|
-
import { RiGalleryView2 as
|
|
17
|
-
import { RxDoubleArrowUp as
|
|
18
|
-
import
|
|
12
|
+
import { isShallowEqual as ao } from "@prose-reader/shared";
|
|
13
|
+
import { MdScreenRotation as co, MdOutlineFitScreen as fo, MdFullscreenExit as uo, MdFullscreen as ho } from "react-icons/md";
|
|
14
|
+
import { BiFontSize as mo } from "react-icons/bi";
|
|
15
|
+
import { BsBookmarks as go } from "react-icons/bs";
|
|
16
|
+
import { RiGalleryView2 as po } from "react-icons/ri";
|
|
17
|
+
import { RxDoubleArrowUp as bo, RxDoubleArrowLeft as So, RxDoubleArrowDown as _o, RxDoubleArrowRight as vo } from "react-icons/rx";
|
|
18
|
+
import Co from "rc-slider";
|
|
19
19
|
import "rc-slider/assets/index.css";
|
|
20
|
-
import { HiOutlineInformationCircle as
|
|
21
|
-
import { IoIosArrowBack as
|
|
22
|
-
const
|
|
20
|
+
import { HiOutlineInformationCircle as xo } from "react-icons/hi";
|
|
21
|
+
import { IoIosArrowBack as yo, IoMdMore as Io } from "react-icons/io";
|
|
22
|
+
const To = "data-bookmark-area", rn = 5, an = () => ({
|
|
23
23
|
_quickMenuOpen: !1,
|
|
24
24
|
_onQuickMenuOpenChange: (t) => t,
|
|
25
25
|
reader: void 0,
|
|
26
26
|
quickMenuBottomBarBoundingBoxSignal: Ke({
|
|
27
27
|
default: void 0
|
|
28
28
|
}),
|
|
29
|
-
notificationsSubject: new
|
|
29
|
+
notificationsSubject: new Yn(),
|
|
30
30
|
refitMenuOpen: !1,
|
|
31
31
|
onRefitMenuOpenChange: () => {
|
|
32
32
|
},
|
|
@@ -38,22 +38,22 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
|
|
|
38
38
|
uncontrolledFontSize: 1,
|
|
39
39
|
enableFloatingProgress: !0,
|
|
40
40
|
selectedHighlight: void 0
|
|
41
|
-
}),
|
|
42
|
-
default:
|
|
41
|
+
}), zt = Mn(Ke({
|
|
42
|
+
default: an()
|
|
43
43
|
})), ie = (t) => {
|
|
44
|
-
const e = x(9), o =
|
|
44
|
+
const e = x(9), o = Xt(zt);
|
|
45
45
|
let n;
|
|
46
|
-
e[0] !== o || e[1] !== t ? (n = () => o.pipe(
|
|
46
|
+
e[0] !== o || e[1] !== t ? (n = () => o.pipe(ln(t)), e[0] = o, e[1] = t, e[2] = n) : n = e[2];
|
|
47
47
|
let i;
|
|
48
|
-
e[3] !== o.value || e[4] !== t ? (i =
|
|
48
|
+
e[3] !== o.value || e[4] !== t ? (i = io(o.value, t), e[3] = o.value, e[4] = t, e[5] = i) : i = e[5];
|
|
49
49
|
let l;
|
|
50
50
|
e[6] !== i ? (l = {
|
|
51
|
-
compareFn:
|
|
51
|
+
compareFn: sn,
|
|
52
52
|
defaultValue: i
|
|
53
53
|
}, e[6] = i, e[7] = l) : l = e[7];
|
|
54
54
|
let s;
|
|
55
55
|
return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], H(n, l, s).data;
|
|
56
|
-
},
|
|
56
|
+
}, Qe = () => Xt(zt), ko = 24, cn = N((t) => {
|
|
57
57
|
const e = x(9);
|
|
58
58
|
let o, n;
|
|
59
59
|
e[0] !== t ? ({
|
|
@@ -64,7 +64,7 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
|
|
|
64
64
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["quickMenuBottomBarBoundingBoxSignal", "zoomMaxScale"], e[3] = i) : i = e[3];
|
|
65
65
|
const {
|
|
66
66
|
quickMenuBottomBarBoundingBoxSignal: l
|
|
67
|
-
} = ie(i), r = Tt(l)?.borderBoxSize?.[0]?.blockSize ||
|
|
67
|
+
} = ie(i), r = Tt(l)?.borderBoxSize?.[0]?.blockSize || ko;
|
|
68
68
|
let c;
|
|
69
69
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
70
70
|
_open: "fade-in",
|
|
@@ -72,7 +72,7 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
|
|
|
72
72
|
}, e[4] = c) : c = e[4];
|
|
73
73
|
const d = `calc(${r}px + var(--chakra-spacing-4))`;
|
|
74
74
|
let u;
|
|
75
|
-
return e[5] !== o || e[6] !== n || e[7] !== d ? (u = /* @__PURE__ */ a(
|
|
75
|
+
return e[5] !== o || e[6] !== n || e[7] !== d ? (u = /* @__PURE__ */ a(Ze, { animationName: c, animationDuration: "moderate", position: "absolute", bottom: d, right: 4, backgroundColor: "bg.panel", shadow: "sm", borderRadius: "md", p: 2, display: "flex", flexDirection: "row", gap: 2, ...n, children: o }), e[5] = o, e[6] = n, e[7] = d, e[8] = u) : u = e[8], u;
|
|
76
76
|
}), j = () => {
|
|
77
77
|
const t = x(1);
|
|
78
78
|
let e;
|
|
@@ -81,19 +81,19 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
|
|
|
81
81
|
reader: o
|
|
82
82
|
} = ie(e);
|
|
83
83
|
return o;
|
|
84
|
-
},
|
|
84
|
+
}, dn = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, $o = (t) => !!t && "__PROSE_READER_ENHANCER_AUDIO" in t, rt = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, fn = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, un = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, ct = () => {
|
|
85
85
|
const t = x(2), e = j();
|
|
86
86
|
let o;
|
|
87
87
|
return t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
|
|
88
|
-
},
|
|
89
|
-
const t = x(16), e = ct(), o =
|
|
88
|
+
}, Ro = () => {
|
|
89
|
+
const t = x(16), e = ct(), o = Qe();
|
|
90
90
|
let n;
|
|
91
91
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["selectedHighlight"], t[0] = n) : n = t[0];
|
|
92
92
|
const {
|
|
93
93
|
selectedHighlight: i
|
|
94
94
|
} = ie(n);
|
|
95
95
|
let l;
|
|
96
|
-
t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(
|
|
96
|
+
t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(Ce(() => e.selection.selectionEnd$.pipe(J(Mo), $t(!0)))) ?? kt, t[1] = e, t[2] = l) : l = t[2];
|
|
97
97
|
let s;
|
|
98
98
|
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
99
99
|
defaultValue: !1
|
|
@@ -114,7 +114,7 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
|
|
|
114
114
|
}));
|
|
115
115
|
}, t[6] = o, t[7] = e?.selection, t[8] = u) : u = t[8];
|
|
116
116
|
let f;
|
|
117
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(
|
|
117
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(An, {}), t[9] = f) : f = t[9];
|
|
118
118
|
let h;
|
|
119
119
|
t[10] !== u ? (h = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", onClick: u, children: [
|
|
120
120
|
f,
|
|
@@ -122,25 +122,25 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
|
|
|
122
122
|
] }), t[10] = u, t[11] = h) : h = t[11];
|
|
123
123
|
let m;
|
|
124
124
|
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", disabled: !0, children: [
|
|
125
|
-
/* @__PURE__ */ a(
|
|
125
|
+
/* @__PURE__ */ a(st, {}),
|
|
126
126
|
"Bookmark"
|
|
127
127
|
] }), t[12] = m) : m = t[12];
|
|
128
128
|
let g;
|
|
129
|
-
return t[13] !== d || t[14] !== h ? (g = /* @__PURE__ */ y(
|
|
129
|
+
return t[13] !== d || t[14] !== h ? (g = /* @__PURE__ */ y(cn, { present: d, children: [
|
|
130
130
|
h,
|
|
131
131
|
m
|
|
132
132
|
] }), t[13] = d, t[14] = h, t[15] = g) : g = t[15], g;
|
|
133
133
|
};
|
|
134
|
-
function
|
|
134
|
+
function Mo() {
|
|
135
135
|
return !1;
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const Oo = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, hn = de.forwardRef(function(e, o) {
|
|
138
138
|
const n = x(6);
|
|
139
139
|
let i;
|
|
140
140
|
n[0] !== e.children ? (i = e.children ?? /* @__PURE__ */ a(wn, {}), n[0] = e.children, n[1] = i) : i = n[1];
|
|
141
141
|
let l;
|
|
142
142
|
return n[2] !== e || n[3] !== o || n[4] !== i ? (l = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "Close", ref: o, ...e, children: i }), n[2] = e, n[3] = o, n[4] = i, n[5] = l) : l = n[5], l;
|
|
143
|
-
}),
|
|
143
|
+
}), Ao = de.forwardRef(function(e, o) {
|
|
144
144
|
const n = x(17);
|
|
145
145
|
let i, l, s, r, c;
|
|
146
146
|
n[0] !== e ? ({
|
|
@@ -156,23 +156,23 @@ const Ro = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, un = de.for
|
|
|
156
156
|
let h;
|
|
157
157
|
n[10] !== l || n[11] !== f ? (h = /* @__PURE__ */ a(he.Positioner, { padding: l, children: f }), n[10] = l, n[11] = f, n[12] = h) : h = n[12];
|
|
158
158
|
let m;
|
|
159
|
-
return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ a(
|
|
159
|
+
return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ a(bt, { disabled: u, container: s, children: h }), n[13] = s, n[14] = u, n[15] = h, n[16] = m) : m = n[16], m;
|
|
160
160
|
});
|
|
161
161
|
de.forwardRef(function(e, o) {
|
|
162
162
|
const n = x(5);
|
|
163
163
|
let i;
|
|
164
|
-
n[0] !== o ? (i = /* @__PURE__ */ a(
|
|
164
|
+
n[0] !== o ? (i = /* @__PURE__ */ a(hn, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
|
|
165
165
|
let l;
|
|
166
166
|
return n[2] !== e || n[3] !== i ? (l = /* @__PURE__ */ a(he.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[2] = e, n[3] = i, n[4] = l) : l = n[4], l;
|
|
167
167
|
});
|
|
168
168
|
he.Trigger;
|
|
169
|
-
const
|
|
169
|
+
const wo = he.Root;
|
|
170
170
|
he.Footer;
|
|
171
|
-
const
|
|
171
|
+
const zo = he.Header, Po = he.Body, Eo = he.Backdrop;
|
|
172
172
|
he.Description;
|
|
173
173
|
he.Title;
|
|
174
174
|
he.ActionTrigger;
|
|
175
|
-
const
|
|
175
|
+
const It = [
|
|
176
176
|
"rgba(216, 191, 216, 1)",
|
|
177
177
|
// Light purple
|
|
178
178
|
"rgba(255, 225, 125, 1)",
|
|
@@ -183,7 +183,7 @@ const kt = [
|
|
|
183
183
|
// Light blue
|
|
184
184
|
"rgba(255, 182, 193, 1)"
|
|
185
185
|
// Light pink
|
|
186
|
-
],
|
|
186
|
+
], Do = N(() => {
|
|
187
187
|
const t = x(58), e = ct();
|
|
188
188
|
let o;
|
|
189
189
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["selectedHighlight", "onAnnotationCreate", "onAnnotationUpdate", "onAnnotationDelete"], t[0] = o) : o = t[0];
|
|
@@ -192,13 +192,13 @@ const kt = [
|
|
|
192
192
|
onAnnotationCreate: i,
|
|
193
193
|
onAnnotationUpdate: l,
|
|
194
194
|
onAnnotationDelete: s
|
|
195
|
-
} = ie(o), r =
|
|
195
|
+
} = ie(o), r = Qe(), {
|
|
196
196
|
highlight: c,
|
|
197
197
|
selection: d
|
|
198
|
-
} = n ?? {}, [u, f] = ne(
|
|
198
|
+
} = n ?? {}, [u, f] = ne(It[0]), [h, m] = ne(""), g = !!(d ?? c);
|
|
199
199
|
let p;
|
|
200
200
|
t[1] !== r ? (p = () => {
|
|
201
|
-
r.update(
|
|
201
|
+
r.update(Bo);
|
|
202
202
|
}, t[1] = r, t[2] = p) : p = t[2];
|
|
203
203
|
const b = p;
|
|
204
204
|
let S;
|
|
@@ -206,19 +206,19 @@ const kt = [
|
|
|
206
206
|
B.open || b();
|
|
207
207
|
}, t[3] = b, t[4] = S) : S = t[4];
|
|
208
208
|
const _ = S, v = c?.highlightColor, C = c?.notes;
|
|
209
|
-
let
|
|
210
|
-
t[5] !== m ? (
|
|
209
|
+
let T;
|
|
210
|
+
t[5] !== m ? (T = () => {
|
|
211
211
|
m("");
|
|
212
|
-
}, t[5] = m, t[6] =
|
|
212
|
+
}, t[5] = m, t[6] = T) : T = t[6];
|
|
213
213
|
let I;
|
|
214
|
-
t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], oe(
|
|
214
|
+
t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], oe(T, I), oe(() => {
|
|
215
215
|
m(C ?? "");
|
|
216
216
|
}, [C]), oe(() => {
|
|
217
|
-
f(v ||
|
|
217
|
+
f(v || It[0]);
|
|
218
218
|
}, [v, g]);
|
|
219
|
-
let
|
|
220
|
-
t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (
|
|
221
|
-
return e?.annotations.highlightTap$.pipe(
|
|
219
|
+
let k;
|
|
220
|
+
t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (k = function() {
|
|
221
|
+
return e?.annotations.highlightTap$.pipe(Ot((se) => {
|
|
222
222
|
const {
|
|
223
223
|
highlight: L
|
|
224
224
|
} = se;
|
|
@@ -229,31 +229,31 @@ const kt = [
|
|
|
229
229
|
}
|
|
230
230
|
}));
|
|
231
231
|
}));
|
|
232
|
-
}, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] =
|
|
233
|
-
const P =
|
|
232
|
+
}, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = k) : k = t[11], pe(k);
|
|
233
|
+
const P = wo, E = "bottom";
|
|
234
234
|
let M;
|
|
235
|
-
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(
|
|
236
|
-
const
|
|
235
|
+
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(Eo, {}), t[12] = M) : M = t[12];
|
|
236
|
+
const A = Ao, w = zo, $ = "1px", O = c ? "Highlight" : `Selection: "${Oo(d?.selection?.toString() ?? "", 10)}"`;
|
|
237
237
|
let z;
|
|
238
|
-
t[13] !==
|
|
238
|
+
t[13] !== w || t[14] !== O ? (z = /* @__PURE__ */ a(w, { borderBottomWidth: $, children: O }), t[13] = w, t[14] = O, t[15] = z) : z = t[15];
|
|
239
239
|
let D;
|
|
240
|
-
t[16] !== u || t[17] !== f ? (D =
|
|
240
|
+
t[16] !== u || t[17] !== f ? (D = It.map((B) => /* @__PURE__ */ a(le, { bgColor: B, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === B && {
|
|
241
241
|
border: "4px solid white"
|
|
242
242
|
}, onClick: () => f(B) }, B)), t[16] = u, t[17] = f, t[18] = D) : D = t[18];
|
|
243
243
|
let F;
|
|
244
244
|
t[19] !== D ? (F = /* @__PURE__ */ a(ee, { gap: 2, flexDirection: "row", children: D }), t[19] = D, t[20] = F) : F = t[20];
|
|
245
|
-
let
|
|
246
|
-
t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
245
|
+
let Q;
|
|
246
|
+
t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(U, { children: "Annotation:" }), t[21] = Q) : Q = t[21];
|
|
247
247
|
let V;
|
|
248
248
|
t[22] !== m ? (V = (B) => m(B.target.value), t[22] = m, t[23] = V) : V = t[23];
|
|
249
|
-
let G;
|
|
250
|
-
t[24] !== h || t[25] !== V ? (G = /* @__PURE__ */ a(_n, { value: h, onChange: V }), t[24] = h, t[25] = V, t[26] = G) : G = t[26];
|
|
251
249
|
let W;
|
|
252
|
-
t[
|
|
250
|
+
t[24] !== h || t[25] !== V ? (W = /* @__PURE__ */ a(vn, { value: h, onChange: V }), t[24] = h, t[25] = V, t[26] = W) : W = t[26];
|
|
251
|
+
let G;
|
|
252
|
+
t[27] !== F || t[28] !== W ? (G = /* @__PURE__ */ y(ee, { children: [
|
|
253
253
|
F,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
] }), t[27] = F, t[28] =
|
|
254
|
+
Q,
|
|
255
|
+
W
|
|
256
|
+
] }), t[27] = F, t[28] = W, t[29] = G) : G = t[29];
|
|
257
257
|
let q;
|
|
258
258
|
t[30] !== h || t[31] !== i || t[32] !== b || t[33] !== e?.annotations || t[34] !== u || t[35] !== d ? (q = !!d && /* @__PURE__ */ a(ue, { onClick: () => {
|
|
259
259
|
b();
|
|
@@ -264,8 +264,8 @@ const kt = [
|
|
|
264
264
|
});
|
|
265
265
|
B && i?.(B);
|
|
266
266
|
}, children: "Highlight" }), t[30] = h, t[31] = i, t[32] = b, t[33] = e?.annotations, t[34] = u, t[35] = d, t[36] = q) : q = t[36];
|
|
267
|
-
let
|
|
268
|
-
t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== l || t[41] !== b || t[42] !== u ? (
|
|
267
|
+
let Y;
|
|
268
|
+
t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== l || t[41] !== b || t[42] !== u ? (Y = !!c && /* @__PURE__ */ y(ee, { direction: "row", children: [
|
|
269
269
|
/* @__PURE__ */ a(ue, { flex: 1, onClick: () => {
|
|
270
270
|
b(), l?.({
|
|
271
271
|
id: c.id,
|
|
@@ -276,25 +276,25 @@ const kt = [
|
|
|
276
276
|
/* @__PURE__ */ a(ue, { flex: 1, variant: "surface", onClick: () => {
|
|
277
277
|
b(), s?.(c.id);
|
|
278
278
|
}, children: "Remove" })
|
|
279
|
-
] }), t[37] = h, t[38] = c, t[39] = s, t[40] = l, t[41] = b, t[42] = u, t[43] =
|
|
279
|
+
] }), t[37] = h, t[38] = c, t[39] = s, t[40] = l, t[41] = b, t[42] = u, t[43] = Y) : Y = t[43];
|
|
280
280
|
let K;
|
|
281
|
-
t[44] !==
|
|
282
|
-
|
|
281
|
+
t[44] !== G || t[45] !== q || t[46] !== Y ? (K = /* @__PURE__ */ y(Po, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
|
|
282
|
+
G,
|
|
283
283
|
q,
|
|
284
|
-
|
|
285
|
-
] }), t[44] =
|
|
286
|
-
let
|
|
287
|
-
t[48] !==
|
|
284
|
+
Y
|
|
285
|
+
] }), t[44] = G, t[45] = q, t[46] = Y, t[47] = K) : K = t[47];
|
|
286
|
+
let Z;
|
|
287
|
+
t[48] !== A || t[49] !== z || t[50] !== K ? (Z = /* @__PURE__ */ y(A, { children: [
|
|
288
288
|
z,
|
|
289
289
|
K
|
|
290
|
-
] }), t[48] =
|
|
290
|
+
] }), t[48] = A, t[49] = z, t[50] = K, t[51] = Z) : Z = t[51];
|
|
291
291
|
let X;
|
|
292
|
-
return t[52] !== P || t[53] !== g || t[54] !== _ || t[55] !==
|
|
292
|
+
return t[52] !== P || t[53] !== g || t[54] !== _ || t[55] !== Z || t[56] !== M ? (X = /* @__PURE__ */ y(P, { placement: E, onOpenChange: _, open: g, children: [
|
|
293
293
|
M,
|
|
294
|
-
|
|
295
|
-
] }), t[52] = P, t[53] = g, t[54] = _, t[55] =
|
|
294
|
+
Z
|
|
295
|
+
] }), t[52] = P, t[53] = g, t[54] = _, t[55] = Z, t[56] = M, t[57] = X) : X = t[57], X;
|
|
296
296
|
});
|
|
297
|
-
function
|
|
297
|
+
function Bo(t) {
|
|
298
298
|
return {
|
|
299
299
|
...t,
|
|
300
300
|
selectedHighlight: void 0
|
|
@@ -316,38 +316,38 @@ const Ie = de.forwardRef(function(e, o) {
|
|
|
316
316
|
let m;
|
|
317
317
|
n[8] !== i || n[9] !== o || n[10] !== s ? (m = /* @__PURE__ */ a(ae.Positioner, { children: /* @__PURE__ */ a(ae.Content, { ref: o, ...s, asChild: !1, children: i }) }), n[8] = i, n[9] = o, n[10] = s, n[11] = m) : m = n[11];
|
|
318
318
|
let g;
|
|
319
|
-
return n[12] !== l || n[13] !== f || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ y(
|
|
319
|
+
return n[12] !== l || n[13] !== f || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ y(bt, { disabled: f, container: l, children: [
|
|
320
320
|
h,
|
|
321
321
|
m
|
|
322
322
|
] }), n[12] = l, n[13] = f, n[14] = h, n[15] = m, n[16] = g) : g = n[16], g;
|
|
323
|
-
}),
|
|
323
|
+
}), Te = de.forwardRef(function(e, o) {
|
|
324
324
|
const n = x(6);
|
|
325
325
|
let i;
|
|
326
|
-
n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(
|
|
326
|
+
n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(hn, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = i) : i = n[2];
|
|
327
327
|
let l;
|
|
328
328
|
return n[3] !== e || n[4] !== i ? (l = /* @__PURE__ */ a(ae.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[3] = e, n[4] = i, n[5] = l) : l = n[5], l;
|
|
329
|
-
}),
|
|
329
|
+
}), ke = ae.Root, $e = ae.Footer, Re = ae.Header, Me = ae.Body;
|
|
330
330
|
ae.Backdrop;
|
|
331
331
|
const Oe = ae.Title;
|
|
332
332
|
ae.Description;
|
|
333
333
|
ae.Trigger;
|
|
334
|
-
const
|
|
334
|
+
const Ae = ae.ActionTrigger, Fo = (t) => {
|
|
335
335
|
const e = x(7), o = j();
|
|
336
336
|
let n;
|
|
337
337
|
e[0] !== o ? (n = rt(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
|
|
338
338
|
const i = n;
|
|
339
339
|
let l;
|
|
340
|
-
e[2] !== t || e[3] !== i ? (l = () => i?.annotations.annotations$.pipe(J((r) => r.find((c) => c.id === t)),
|
|
340
|
+
e[2] !== t || e[3] !== i ? (l = () => i?.annotations.annotations$.pipe(J((r) => r.find((c) => c.id === t)), gt(Jt), Ce((r) => i.locateResource(r))), e[2] = t, e[3] = i, e[4] = l) : l = e[4];
|
|
341
341
|
let s;
|
|
342
342
|
return e[5] !== i ? (s = [i], e[5] = i, e[6] = s) : s = e[6], H(l, s);
|
|
343
|
-
},
|
|
343
|
+
}, mn = (t) => {
|
|
344
344
|
const e = x(22), {
|
|
345
345
|
id: o,
|
|
346
346
|
onNavigate: n,
|
|
347
347
|
allowLeftIcon: i
|
|
348
348
|
} = t, l = i === void 0 ? !0 : i, s = j(), {
|
|
349
349
|
data: r
|
|
350
|
-
} =
|
|
350
|
+
} = Fo(o);
|
|
351
351
|
let c;
|
|
352
352
|
e[0] !== r?.meta.node?.textContent || e[1] !== r?.meta.range ? (c = r?.meta.range?.toString() || r?.meta.node?.textContent, e[0] = r?.meta.node?.textContent, e[1] = r?.meta.range, e[2] = c) : c = e[2];
|
|
353
353
|
const d = c;
|
|
@@ -356,7 +356,7 @@ const we = ae.ActionTrigger, Do = (t) => {
|
|
|
356
356
|
n(), s?.navigation.goToCfi(r?.meta.cfi ?? "");
|
|
357
357
|
}, e[3] = r?.meta, e[4] = n, e[5] = s?.navigation, e[6] = u) : u = e[6];
|
|
358
358
|
let f;
|
|
359
|
-
e[7] !== l || e[8] !== r?.resource?.notes ? (f = r?.resource?.notes ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(
|
|
359
|
+
e[7] !== l || e[8] !== r?.resource?.notes ? (f = r?.resource?.notes ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(st, {}) }) : l ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(st, {}) }) : null, e[7] = l, e[8] = r?.resource?.notes, e[9] = f) : f = e[9];
|
|
360
360
|
let h;
|
|
361
361
|
e[10] !== r?.meta || e[11] !== d ? (h = d ? /* @__PURE__ */ a(U, { lineClamp: 2, fontSize: "md", children: d }) : /* @__PURE__ */ y(U, { lineClamp: 2, fontSize: "md", fontStyle: "italic", children: [
|
|
362
362
|
"Page ",
|
|
@@ -375,62 +375,62 @@ const we = ae.ActionTrigger, Do = (t) => {
|
|
|
375
375
|
f,
|
|
376
376
|
p
|
|
377
377
|
] }) }), e[18] = u, e[19] = f, e[20] = p, e[21] = b) : b = e[21], b;
|
|
378
|
-
},
|
|
378
|
+
}, St = () => {
|
|
379
379
|
const t = x(5), e = j();
|
|
380
380
|
let o;
|
|
381
381
|
t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
|
|
382
382
|
const n = o;
|
|
383
383
|
let i, l;
|
|
384
|
-
return t[2] !== n ? (i = () => n?.annotations.annotations$.pipe(
|
|
385
|
-
},
|
|
384
|
+
return t[2] !== n ? (i = () => n?.annotations.annotations$.pipe(Ce((s) => n.locateResource(s))), l = [n], t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), H(i, l);
|
|
385
|
+
}, Lo = () => {
|
|
386
386
|
const t = x(4), {
|
|
387
387
|
data: e
|
|
388
|
-
} =
|
|
388
|
+
} = St();
|
|
389
389
|
let o;
|
|
390
|
-
t[0] !== e ? (o = e?.filter(
|
|
390
|
+
t[0] !== e ? (o = e?.filter(No), t[0] = e, t[1] = o) : o = t[1];
|
|
391
391
|
let n;
|
|
392
392
|
return t[2] !== o ? (n = {
|
|
393
393
|
data: o
|
|
394
394
|
}, t[2] = o, t[3] = n) : n = t[3], n;
|
|
395
395
|
};
|
|
396
|
-
function
|
|
396
|
+
function No(t) {
|
|
397
397
|
return t.meta.isCfiRange;
|
|
398
398
|
}
|
|
399
|
-
const
|
|
399
|
+
const Ho = (t) => {
|
|
400
400
|
const e = x(5), {
|
|
401
401
|
onNavigate: o
|
|
402
402
|
} = t, {
|
|
403
403
|
data: n
|
|
404
|
-
} =
|
|
404
|
+
} = Lo();
|
|
405
405
|
let i;
|
|
406
|
-
e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(
|
|
406
|
+
e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(mn, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
|
|
407
407
|
let l;
|
|
408
408
|
return e[3] !== i ? (l = /* @__PURE__ */ a(ge.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
|
|
409
|
-
},
|
|
409
|
+
}, Vo = () => {
|
|
410
410
|
const t = x(4), {
|
|
411
411
|
data: e
|
|
412
|
-
} =
|
|
412
|
+
} = St();
|
|
413
413
|
let o;
|
|
414
|
-
t[0] !== e ? (o = e?.filter(
|
|
414
|
+
t[0] !== e ? (o = e?.filter(Wo), t[0] = e, t[1] = o) : o = t[1];
|
|
415
415
|
let n;
|
|
416
416
|
return t[2] !== o ? (n = {
|
|
417
417
|
data: o
|
|
418
418
|
}, t[2] = o, t[3] = n) : n = t[3], n;
|
|
419
419
|
};
|
|
420
|
-
function
|
|
420
|
+
function Wo(t) {
|
|
421
421
|
return !t.meta.isCfiRange && !t.resource.notes;
|
|
422
422
|
}
|
|
423
|
-
const
|
|
423
|
+
const Go = (t) => {
|
|
424
424
|
const e = x(5), {
|
|
425
425
|
onNavigate: o
|
|
426
426
|
} = t, {
|
|
427
427
|
data: n
|
|
428
|
-
} =
|
|
428
|
+
} = Vo();
|
|
429
429
|
let i;
|
|
430
|
-
e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(
|
|
430
|
+
e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(mn, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
|
|
431
431
|
let l;
|
|
432
432
|
return e[3] !== i ? (l = /* @__PURE__ */ a(ge.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
|
|
433
|
-
},
|
|
433
|
+
}, Uo = N((t) => {
|
|
434
434
|
const e = x(11), {
|
|
435
435
|
onNavigate: o,
|
|
436
436
|
defaultTab: n
|
|
@@ -439,29 +439,29 @@ const Vo = (t) => {
|
|
|
439
439
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (h) => l(h.value), e[0] = s) : s = e[0];
|
|
440
440
|
let r;
|
|
441
441
|
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ y(me.Trigger, { value: "bookmarks", children: [
|
|
442
|
-
/* @__PURE__ */ a(
|
|
442
|
+
/* @__PURE__ */ a(zn, {}),
|
|
443
443
|
"Bookmarks"
|
|
444
444
|
] }), e[1] = r) : r = e[1];
|
|
445
445
|
let c;
|
|
446
446
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ y(me.List, { children: [
|
|
447
447
|
r,
|
|
448
448
|
/* @__PURE__ */ y(me.Trigger, { value: "annotations", children: [
|
|
449
|
-
/* @__PURE__ */ a(
|
|
449
|
+
/* @__PURE__ */ a(st, {}),
|
|
450
450
|
"Annotations"
|
|
451
451
|
] }),
|
|
452
452
|
/* @__PURE__ */ a(me.Indicator, {})
|
|
453
453
|
] }), e[2] = c) : c = e[2];
|
|
454
454
|
let d;
|
|
455
|
-
e[3] !== o ? (d = /* @__PURE__ */ a(me.Content, { value: "bookmarks", children: /* @__PURE__ */ a(
|
|
455
|
+
e[3] !== o ? (d = /* @__PURE__ */ a(me.Content, { value: "bookmarks", children: /* @__PURE__ */ a(Go, { onNavigate: o }) }), e[3] = o, e[4] = d) : d = e[4];
|
|
456
456
|
let u;
|
|
457
|
-
e[5] !== o ? (u = /* @__PURE__ */ a(me.Content, { value: "annotations", children: /* @__PURE__ */ a(
|
|
457
|
+
e[5] !== o ? (u = /* @__PURE__ */ a(me.Content, { value: "annotations", children: /* @__PURE__ */ a(Ho, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
|
|
458
458
|
let f;
|
|
459
459
|
return e[7] !== d || e[8] !== u || e[9] !== i ? (f = /* @__PURE__ */ y(me.Root, { value: i, onValueChange: s, children: [
|
|
460
460
|
c,
|
|
461
461
|
d,
|
|
462
462
|
u
|
|
463
463
|
] }), e[7] = d, e[8] = u, e[9] = i, e[10] = f) : f = e[10], f;
|
|
464
|
-
}),
|
|
464
|
+
}), jo = N((t) => {
|
|
465
465
|
const e = x(15), {
|
|
466
466
|
openWith: o,
|
|
467
467
|
setOpen: n,
|
|
@@ -477,9 +477,9 @@ const Vo = (t) => {
|
|
|
477
477
|
let c;
|
|
478
478
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Annotations" }) }), e[3] = c) : c = e[3];
|
|
479
479
|
let d;
|
|
480
|
-
e[4] !== i || e[5] !== o ? (d = /* @__PURE__ */ a(Me, { flex: 1, children: /* @__PURE__ */ a(
|
|
480
|
+
e[4] !== i || e[5] !== o ? (d = /* @__PURE__ */ a(Me, { flex: 1, children: /* @__PURE__ */ a(Uo, { onNavigate: i, defaultTab: o }) }), e[4] = i, e[5] = o, e[6] = d) : d = e[6];
|
|
481
481
|
let u, f;
|
|
482
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(
|
|
482
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), f = /* @__PURE__ */ a(Te, {}), e[7] = u, e[8] = f) : (u = e[7], f = e[8]);
|
|
483
483
|
let h;
|
|
484
484
|
e[9] !== d ? (h = /* @__PURE__ */ y(Ie, { height: "100%", children: [
|
|
485
485
|
c,
|
|
@@ -488,15 +488,15 @@ const Vo = (t) => {
|
|
|
488
488
|
f
|
|
489
489
|
] }), e[9] = d, e[10] = h) : h = e[10];
|
|
490
490
|
let m;
|
|
491
|
-
return e[11] !== l || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a(
|
|
492
|
-
}),
|
|
491
|
+
return e[11] !== l || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: l, onOpenChange: s, size: r, scrollBehavior: "inside", children: h }), e[11] = l, e[12] = s, e[13] = h, e[14] = m) : m = e[14], m;
|
|
492
|
+
}), qo = (t) => {
|
|
493
493
|
const e = x(5), {
|
|
494
494
|
absolutePageIndex: o,
|
|
495
495
|
itemIndex: n
|
|
496
496
|
} = t, i = j();
|
|
497
497
|
let l, s;
|
|
498
|
-
return e[0] !== o || e[1] !== n || e[2] !== i ? (l = () => i ? n !== void 0 ?
|
|
499
|
-
},
|
|
498
|
+
return e[0] !== o || e[1] !== n || e[2] !== i ? (l = () => i ? n !== void 0 ? pt(i.spine.spineItemsManager.get(n)) : o !== void 0 ? i.spine.pages.observeFromAbsolutePageIndex(o).pipe(J((r) => i.spine.spineItemsManager.get(r?.itemIndex))) : kt : kt, s = [n, o, i], e[0] = o, e[1] = n, e[2] = i, e[3] = l, e[4] = s) : (l = e[3], s = e[4]), H(l, s);
|
|
499
|
+
}, Ko = (t) => {
|
|
500
500
|
const e = x(9), {
|
|
501
501
|
absolutePageIndex: o,
|
|
502
502
|
itemIndex: n
|
|
@@ -508,9 +508,9 @@ const Vo = (t) => {
|
|
|
508
508
|
}, e[0] = o, e[1] = n, e[2] = i) : i = e[2];
|
|
509
509
|
const {
|
|
510
510
|
data: l
|
|
511
|
-
} =
|
|
511
|
+
} = qo(i);
|
|
512
512
|
let s, r;
|
|
513
|
-
e[3] !== l ? (s = () => l ? l.isReady$ :
|
|
513
|
+
e[3] !== l ? (s = () => l ? l.isReady$ : Ye, r = [l], e[3] = l, e[4] = s, e[5] = r) : (s = e[4], r = e[5]);
|
|
514
514
|
const {
|
|
515
515
|
data: c
|
|
516
516
|
} = H(s, r);
|
|
@@ -519,7 +519,7 @@ const Vo = (t) => {
|
|
|
519
519
|
spineItem: l,
|
|
520
520
|
isReady: c
|
|
521
521
|
}, e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
|
|
522
|
-
},
|
|
522
|
+
}, Yo = N((t) => {
|
|
523
523
|
const e = x(17), {
|
|
524
524
|
absolutePageIndex: o,
|
|
525
525
|
left: n,
|
|
@@ -532,9 +532,9 @@ const Vo = (t) => {
|
|
|
532
532
|
}, e[0] = o, e[1] = s) : s = e[1];
|
|
533
533
|
const {
|
|
534
534
|
isReady: r
|
|
535
|
-
} =
|
|
535
|
+
} = Ko(s), {
|
|
536
536
|
data: c
|
|
537
|
-
} =
|
|
537
|
+
} = St();
|
|
538
538
|
let d;
|
|
539
539
|
e[2] !== o || e[3] !== c ? (d = c?.find((C) => C?.meta?.absolutePageIndex === o && !C.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = d) : d = e[4];
|
|
540
540
|
const u = d;
|
|
@@ -559,10 +559,10 @@ const Vo = (t) => {
|
|
|
559
559
|
borderLeft: b
|
|
560
560
|
}, e[6] = p, e[7] = b, e[8] = S) : S = e[8];
|
|
561
561
|
let _;
|
|
562
|
-
e[9] !== f || e[10] !== g || e[11] !== S || e[12] !== i ? (_ = /* @__PURE__ */ a(le, { "data-bookmark-area":
|
|
562
|
+
e[9] !== f || e[10] !== g || e[11] !== S || e[12] !== i ? (_ = /* @__PURE__ */ a(le, { "data-bookmark-area": To, position: "absolute", left: g, transform: "translateX(-100%)", pointerEvents: "none", top: i, width: f, height: f, _before: S }), e[9] = f, e[10] = g, e[11] = S, e[12] = i, e[13] = _) : _ = e[13];
|
|
563
563
|
let v;
|
|
564
|
-
return e[14] !== h || e[15] !== _ ? (v = /* @__PURE__ */ a(
|
|
565
|
-
}),
|
|
564
|
+
return e[14] !== h || e[15] !== _ ? (v = /* @__PURE__ */ a(Ze, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: _ }), e[14] = h, e[15] = _, e[16] = v) : v = e[16], v;
|
|
565
|
+
}), Zo = N(() => {
|
|
566
566
|
const t = x(8), e = j();
|
|
567
567
|
let o;
|
|
568
568
|
t[0] !== e?.layoutInfo$ ? (o = () => e?.layoutInfo$, t[0] = e?.layoutInfo$, t[1] = o) : o = t[1];
|
|
@@ -572,11 +572,11 @@ const Vo = (t) => {
|
|
|
572
572
|
data: i
|
|
573
573
|
} = H(o, n);
|
|
574
574
|
let l;
|
|
575
|
-
t[4] !== i?.pages ? (l = i?.pages.map(
|
|
575
|
+
t[4] !== i?.pages ? (l = i?.pages.map(Qo), t[4] = i?.pages, t[5] = l) : l = t[5];
|
|
576
576
|
let s;
|
|
577
577
|
return t[6] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), t[6] = l, t[7] = s) : s = t[7], s;
|
|
578
578
|
});
|
|
579
|
-
function
|
|
579
|
+
function Qo(t, e) {
|
|
580
580
|
const {
|
|
581
581
|
absoluteLayout: o
|
|
582
582
|
} = t, {
|
|
@@ -584,100 +584,100 @@ function Yo(t, e) {
|
|
|
584
584
|
top: i,
|
|
585
585
|
width: l
|
|
586
586
|
} = o;
|
|
587
|
-
return /* @__PURE__ */ a(
|
|
587
|
+
return /* @__PURE__ */ a(Yo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
|
|
588
588
|
}
|
|
589
|
-
const
|
|
589
|
+
const tt = !0, Xo = 10, Jo = ({
|
|
590
590
|
position: t,
|
|
591
591
|
containerSize: e,
|
|
592
592
|
sizePercent: o
|
|
593
593
|
}) => {
|
|
594
594
|
const n = Math.min(e.width, e.height) * (o / 100);
|
|
595
595
|
return t.x > e.width - n && t.y < n;
|
|
596
|
-
},
|
|
596
|
+
}, ei = () => {
|
|
597
597
|
const t = x(5), e = ct(), {
|
|
598
598
|
data: o
|
|
599
|
-
} =
|
|
599
|
+
} = St(), n = Qe();
|
|
600
600
|
let i, l;
|
|
601
601
|
t[0] !== o || t[1] !== e || t[2] !== n ? (i = () => e ? e.gestures.hooks.register("beforeTapGesture", (r) => {
|
|
602
602
|
const {
|
|
603
603
|
event$: c
|
|
604
604
|
} = r;
|
|
605
|
-
return c.pipe(
|
|
605
|
+
return c.pipe(At(e?.annotations.candidates$), J((d) => {
|
|
606
606
|
const [u, f] = d;
|
|
607
607
|
if (!u.page)
|
|
608
|
-
return
|
|
608
|
+
return tt;
|
|
609
609
|
const {
|
|
610
610
|
spineItem: h,
|
|
611
611
|
spineItemPageIndex: m,
|
|
612
612
|
spineItemPagePosition: g,
|
|
613
613
|
pageSize: p
|
|
614
614
|
} = u.page;
|
|
615
|
-
if (
|
|
615
|
+
if (Jo({
|
|
616
616
|
position: g,
|
|
617
617
|
containerSize: p,
|
|
618
|
-
sizePercent:
|
|
618
|
+
sizePercent: Xo
|
|
619
619
|
})) {
|
|
620
620
|
const S = e.spine.pages.fromSpineItemPageIndex(h, m);
|
|
621
621
|
if (!S)
|
|
622
|
-
return
|
|
622
|
+
return tt;
|
|
623
623
|
const _ = o?.find((C) => C?.meta?.absolutePageIndex === S.absolutePageIndex && C.meta.range === void 0);
|
|
624
624
|
if (_)
|
|
625
|
-
return n.value.onAnnotationDelete?.(_.resource.id), !
|
|
625
|
+
return n.value.onAnnotationDelete?.(_.resource.id), !tt;
|
|
626
626
|
if (f?.[S.absolutePageIndex]) {
|
|
627
627
|
const C = e?.annotations.createAnnotation({
|
|
628
628
|
absolutePageIndex: S.absolutePageIndex
|
|
629
629
|
});
|
|
630
|
-
return C && n.value.onAnnotationCreate?.(C), !
|
|
630
|
+
return C && n.value.onAnnotationCreate?.(C), !tt;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return
|
|
633
|
+
return tt;
|
|
634
634
|
}));
|
|
635
635
|
}) : void 0, l = [e, o, n], t[0] = o, t[1] = e, t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), oe(i, l);
|
|
636
|
-
},
|
|
636
|
+
}, ti = () => {
|
|
637
637
|
const t = x(2), e = ct();
|
|
638
638
|
let o;
|
|
639
639
|
t[0] !== e ? (o = () => e?.gestures.hooks.register("beforeTapGesture", (i) => {
|
|
640
640
|
const {
|
|
641
641
|
event$: l
|
|
642
642
|
} = i;
|
|
643
|
-
return l.pipe(
|
|
643
|
+
return l.pipe(At(e.selection.lastSelectionOnPointerdown$), J((s) => {
|
|
644
644
|
const [r, c] = s, {
|
|
645
645
|
event: d
|
|
646
646
|
} = r, u = d.event.target;
|
|
647
647
|
return !(u && e.annotations.isTargetWithinHighlight(u) || c);
|
|
648
648
|
}));
|
|
649
649
|
}), t[0] = e, t[1] = o) : o = t[1], pe(o);
|
|
650
|
-
},
|
|
651
|
-
const t = x(3), e = ct(), o =
|
|
650
|
+
}, ni = () => {
|
|
651
|
+
const t = x(3), e = ct(), o = Qe();
|
|
652
652
|
let n;
|
|
653
653
|
t[0] !== o || t[1] !== e ? (n = () => {
|
|
654
654
|
if (e) {
|
|
655
|
-
const l = o.pipe(J(
|
|
655
|
+
const l = o.pipe(J(oi), be()), s = o.pipe(J(ii), be()), r = at([s, l]).pipe(J(li));
|
|
656
656
|
e.annotations.update({
|
|
657
657
|
annotations$: r
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
660
|
}, t[0] = o, t[1] = e, t[2] = n) : n = t[2], pe(n);
|
|
661
661
|
};
|
|
662
|
-
function
|
|
662
|
+
function oi(t) {
|
|
663
663
|
return t.selectedHighlight?.highlight?.id;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function ii(t) {
|
|
666
666
|
return t.annotations ?? [];
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function li(t) {
|
|
669
669
|
const [e, o] = t;
|
|
670
670
|
return e.map((n) => ({
|
|
671
671
|
...n,
|
|
672
672
|
selected: n.id === o
|
|
673
673
|
}));
|
|
674
674
|
}
|
|
675
|
-
const
|
|
675
|
+
const Xe = () => {
|
|
676
676
|
const t = x(2), e = j();
|
|
677
677
|
let o;
|
|
678
|
-
return t[0] !== e ? (o =
|
|
679
|
-
},
|
|
680
|
-
const e = x(6), o = t === void 0 ? !0 : t, n =
|
|
678
|
+
return t[0] !== e ? (o = $o(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
|
|
679
|
+
}, si = (t) => {
|
|
680
|
+
const e = x(6), o = t === void 0 ? !0 : t, n = Xe();
|
|
681
681
|
let i;
|
|
682
682
|
e[0] !== n?.audio || e[1] !== o ? (i = () => o ? n?.audio.visualizer$ : void 0, e[0] = n?.audio, e[1] = o, e[2] = i) : i = e[2];
|
|
683
683
|
let l;
|
|
@@ -686,43 +686,43 @@ const Qe = () => {
|
|
|
686
686
|
data: s
|
|
687
687
|
} = H(i, l);
|
|
688
688
|
return s;
|
|
689
|
-
},
|
|
689
|
+
}, ri = (t) => {
|
|
690
690
|
const e = x(8), {
|
|
691
691
|
enabled: o,
|
|
692
692
|
trackId: n
|
|
693
|
-
} = t, i = o === void 0 ? !0 : o, l =
|
|
693
|
+
} = t, i = o === void 0 ? !0 : o, l = Xe();
|
|
694
694
|
let s;
|
|
695
|
-
e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n),
|
|
695
|
+
e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n), be()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
|
|
696
696
|
let r;
|
|
697
697
|
e[4] !== l || e[5] !== i || e[6] !== n ? (r = [i, n, l], e[4] = l, e[5] = i, e[6] = n, e[7] = r) : r = e[7];
|
|
698
698
|
const {
|
|
699
699
|
data: c
|
|
700
700
|
} = H(s, r);
|
|
701
701
|
return c === void 0 ? !1 : c;
|
|
702
|
-
},
|
|
702
|
+
}, ai = "#93c5fd", Vt = "#3b82f6", Wt = 1, ci = 0.1, di = 0.08, Gt = 0.25, Ut = 0.15, fi = 0.02, ui = 0.145, hi = 0.52, mi = 0.16, gi = 0.5, jt = 0.34, ye = (t, e, o) => Math.min(Math.max(t, e), o), mt = (t, e, o) => {
|
|
703
703
|
if (t === e) return +(o >= e);
|
|
704
704
|
const n = ye((o - t) / (e - t), 0, 1);
|
|
705
705
|
return n * n * (3 - 2 * n);
|
|
706
|
-
},
|
|
706
|
+
}, pi = (t) => {
|
|
707
707
|
const e = Math.sin(t * Math.PI * 6 + 0.8), o = Math.sin(t * Math.PI * 14 + 1.7);
|
|
708
708
|
return ye(0.5 + e * 0.3 + o * 0.2, 0, 1);
|
|
709
|
-
},
|
|
709
|
+
}, bi = (t) => Array.from({
|
|
710
710
|
length: t
|
|
711
711
|
}, (e, o) => {
|
|
712
|
-
const n = t === 1 ? 0.5 : o / (t - 1), i = Math.abs(n - 0.5) * 2, l = 1 - mt(
|
|
713
|
-
return ye(
|
|
714
|
-
}),
|
|
712
|
+
const n = t === 1 ? 0.5 : o / (t - 1), i = Math.abs(n - 0.5) * 2, l = 1 - mt(hi, 1, i), s = pi(n), r = l * (1 - jt + s * jt);
|
|
713
|
+
return ye(fi + ui * r, 0, 1);
|
|
714
|
+
}), Si = (t) => t.length === 0 ? 0 : t.reduce((e, o) => e + o, 0) / t.length, _i = (t) => t.some((e) => e > 1e-3), gn = (t) => {
|
|
715
715
|
const e = Math.max(1, Math.floor(t));
|
|
716
716
|
return e % 2 === 0 ? e + 1 : e;
|
|
717
|
-
},
|
|
718
|
-
const o =
|
|
717
|
+
}, vi = (t, e) => {
|
|
718
|
+
const o = gn(e), n = Math.floor(o / 2) + 1, i = Array.from({
|
|
719
719
|
length: n
|
|
720
720
|
}, (r, c) => {
|
|
721
|
-
const d = Math.floor(c * t.length / n), u = Math.max(d + 1, Math.floor((c + 1) * t.length / n)), f =
|
|
721
|
+
const d = Math.floor(c * t.length / n), u = Math.max(d + 1, Math.floor((c + 1) * t.length / n)), f = Si(t.slice(d, u));
|
|
722
722
|
return ye(f, 0, 1);
|
|
723
|
-
}), l = i[0] ??
|
|
723
|
+
}), l = i[0] ?? di, s = i.slice(1);
|
|
724
724
|
return [...s.slice().reverse(), l, ...s];
|
|
725
|
-
},
|
|
725
|
+
}, Ci = (t, {
|
|
726
726
|
topVariable: e,
|
|
727
727
|
topFallback: o,
|
|
728
728
|
bottomVariable: n,
|
|
@@ -733,7 +733,7 @@ const Qe = () => {
|
|
|
733
733
|
topColor: s,
|
|
734
734
|
bottomColor: r
|
|
735
735
|
};
|
|
736
|
-
},
|
|
736
|
+
}, xi = ({
|
|
737
737
|
canvas: t,
|
|
738
738
|
size: e,
|
|
739
739
|
visualizer: o,
|
|
@@ -747,37 +747,37 @@ const Qe = () => {
|
|
|
747
747
|
} = e;
|
|
748
748
|
if (!s || r <= 0 || c <= 0) return i;
|
|
749
749
|
s.clearRect(0, 0, r, c);
|
|
750
|
-
const d =
|
|
750
|
+
const d = _i(o.levels), u = !o.isActive && !d, f = u ? bi(n) : vi(o.levels, n), h = i.length !== f.length ? Array.from({
|
|
751
751
|
length: f.length
|
|
752
|
-
}, () => 0) : i, m = o.isActive ? h.map((C,
|
|
753
|
-
const I = f[
|
|
752
|
+
}, () => 0) : i, m = o.isActive ? h.map((C, T) => {
|
|
753
|
+
const I = f[T] ?? 0;
|
|
754
754
|
return C + (I - C) * 0.28;
|
|
755
|
-
}) : [...f], g = Math.round(ye(r / Math.max(m.length, 1) / 2.8, 1, 4)), p = Math.max(2, Math.floor((r - g * (m.length - 1)) / m.length)), b = p * m.length + g * (m.length - 1), S = Math.max(0, (r - b) / 2), _ = c / 2, v = Math.max(
|
|
755
|
+
}) : [...f], g = Math.round(ye(r / Math.max(m.length, 1) / 2.8, 1, 4)), p = Math.max(2, Math.floor((r - g * (m.length - 1)) / m.length)), b = p * m.length + g * (m.length - 1), S = Math.max(0, (r - b) / 2), _ = c / 2, v = Math.max(Wt, c * (u ? mi : ci));
|
|
756
756
|
s.fillStyle = l;
|
|
757
|
-
for (const [C,
|
|
758
|
-
const I = ye(
|
|
759
|
-
s.globalAlpha = ye((u ?
|
|
757
|
+
for (const [C, T] of m.entries()) {
|
|
758
|
+
const I = ye(T, 0, 1), k = m.length === 1 ? 0.5 : C / (m.length - 1), R = Math.abs(k - 0.5) * 2, P = 1 - mt(0, 1, R), E = I * (1 + Ut * P) / (1 + Ut * P * I), M = u ? I : E ** 1.15, A = Math.max(Wt, M * v), w = Math.min(p / 2, A / 2), $ = Math.round(S + C * (p + g)), O = _ - A / 2, z = mt(0, Gt, k) * (1 - mt(1 - Gt, 1, k));
|
|
759
|
+
s.globalAlpha = ye((u ? gi : o.isActive ? 0.95 : 0.75) * z, 0, 1), s.beginPath(), s.roundRect($, O, p, A, w), s.fill();
|
|
760
760
|
}
|
|
761
761
|
return s.globalAlpha = 1, m;
|
|
762
|
-
},
|
|
762
|
+
}, qt = {
|
|
763
763
|
levels: [],
|
|
764
764
|
isActive: !1,
|
|
765
765
|
trackId: void 0
|
|
766
|
-
},
|
|
766
|
+
}, yi = (t) => {
|
|
767
767
|
const e = x(21), {
|
|
768
768
|
visualizer: o
|
|
769
|
-
} = t, n =
|
|
769
|
+
} = t, n = Cn({
|
|
770
770
|
base: 29,
|
|
771
771
|
md: 35,
|
|
772
772
|
lg: 41,
|
|
773
773
|
xl: 49
|
|
774
774
|
}) ?? 29;
|
|
775
775
|
let i;
|
|
776
|
-
e[0] !== n ? (i =
|
|
777
|
-
const l = i, s = _e(null), r = _e(null), c = _e(void 0), d = _e(o ??
|
|
776
|
+
e[0] !== n ? (i = gn(n), e[0] = n, e[1] = i) : i = e[1];
|
|
777
|
+
const l = i, s = _e(null), r = _e(null), c = _e(void 0), d = _e(o ?? qt);
|
|
778
778
|
let u;
|
|
779
779
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = [], e[2] = u) : u = e[2];
|
|
780
|
-
const f = _e(u), h = _e(
|
|
780
|
+
const f = _e(u), h = _e(Vt);
|
|
781
781
|
let m;
|
|
782
782
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
783
783
|
width: 0,
|
|
@@ -795,11 +795,11 @@ const Qe = () => {
|
|
|
795
795
|
const {
|
|
796
796
|
topColor: z,
|
|
797
797
|
bottomColor: D
|
|
798
|
-
} =
|
|
798
|
+
} = Ci($, {
|
|
799
799
|
topVariable: "--audio-wave-top-color",
|
|
800
|
-
topFallback:
|
|
800
|
+
topFallback: ai,
|
|
801
801
|
bottomVariable: "--audio-wave-bottom-color",
|
|
802
|
-
bottomFallback:
|
|
802
|
+
bottomFallback: Vt
|
|
803
803
|
}), F = O.createLinearGradient(0, 0, 0, g.current.height);
|
|
804
804
|
F.addColorStop(0, z), F.addColorStop(1, D), h.current = F;
|
|
805
805
|
}, e[4] = p) : p = e[4];
|
|
@@ -810,7 +810,7 @@ const Qe = () => {
|
|
|
810
810
|
if (!$)
|
|
811
811
|
return;
|
|
812
812
|
const O = d.current;
|
|
813
|
-
f.current =
|
|
813
|
+
f.current = xi({
|
|
814
814
|
canvas: $,
|
|
815
815
|
size: g.current,
|
|
816
816
|
visualizer: O,
|
|
@@ -825,8 +825,8 @@ const Qe = () => {
|
|
|
825
825
|
c.current !== void 0 && (cancelAnimationFrame(c.current), c.current = void 0);
|
|
826
826
|
}, e[7] = v) : v = e[7];
|
|
827
827
|
const C = v;
|
|
828
|
-
let
|
|
829
|
-
e[8] !== _ ? (
|
|
828
|
+
let T;
|
|
829
|
+
e[8] !== _ ? (T = () => {
|
|
830
830
|
if (c.current !== void 0)
|
|
831
831
|
return;
|
|
832
832
|
const $ = () => {
|
|
@@ -837,31 +837,31 @@ const Qe = () => {
|
|
|
837
837
|
_(), c.current = requestAnimationFrame($);
|
|
838
838
|
};
|
|
839
839
|
c.current = requestAnimationFrame($);
|
|
840
|
-
}, e[8] = _, e[9] =
|
|
841
|
-
const I =
|
|
842
|
-
let
|
|
843
|
-
e[10] !== _ ? (
|
|
840
|
+
}, e[8] = _, e[9] = T) : T = e[9];
|
|
841
|
+
const I = T;
|
|
842
|
+
let k;
|
|
843
|
+
e[10] !== _ ? (k = () => {
|
|
844
844
|
const $ = s.current, O = r.current;
|
|
845
845
|
if (!$ || !O)
|
|
846
846
|
return;
|
|
847
|
-
const z = Math.max(1, O.clientWidth), D = Math.max(1, O.clientHeight), F = window.devicePixelRatio || 1;
|
|
847
|
+
const z = Math.max(1, O.clientWidth), D = Math.max(1, O.clientHeight), F = window.devicePixelRatio || 1, Q = Math.round(z * F), V = Math.round(D * F);
|
|
848
848
|
g.current = {
|
|
849
849
|
width: z,
|
|
850
850
|
height: D
|
|
851
|
-
},
|
|
852
|
-
const
|
|
853
|
-
|
|
854
|
-
}, e[10] = _, e[11] =
|
|
855
|
-
const R =
|
|
851
|
+
}, Nt($, "width", Q), Nt($, "height", V), Ht($.style, "width", `${z}px`), Ht($.style, "height", `${D}px`);
|
|
852
|
+
const W = $.getContext("2d");
|
|
853
|
+
W && W.setTransform(F, 0, 0, F, 0, 0), b(), _();
|
|
854
|
+
}, e[10] = _, e[11] = k) : k = e[11];
|
|
855
|
+
const R = k;
|
|
856
856
|
let P, E;
|
|
857
857
|
e[12] !== _ || e[13] !== I || e[14] !== o ? (P = () => {
|
|
858
|
-
if (d.current = o ??
|
|
858
|
+
if (d.current = o ?? qt, d.current.isActive) {
|
|
859
859
|
I();
|
|
860
860
|
return;
|
|
861
861
|
}
|
|
862
862
|
C(), _();
|
|
863
863
|
}, E = [_, I, C, o], e[12] = _, e[13] = I, e[14] = o, e[15] = P, e[16] = E) : (P = e[15], E = e[16]), oe(P, E);
|
|
864
|
-
let M,
|
|
864
|
+
let M, A;
|
|
865
865
|
e[17] !== R ? (M = () => {
|
|
866
866
|
const $ = r.current;
|
|
867
867
|
if (!$)
|
|
@@ -873,19 +873,19 @@ const Qe = () => {
|
|
|
873
873
|
return O.observe($), () => {
|
|
874
874
|
C(), O.disconnect();
|
|
875
875
|
};
|
|
876
|
-
},
|
|
877
|
-
let
|
|
878
|
-
return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
876
|
+
}, A = [R, C], e[17] = R, e[18] = M, e[19] = A) : (M = e[18], A = e[19]), oe(M, A);
|
|
877
|
+
let w;
|
|
878
|
+
return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(le, { ref: r, position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", px: 8, py: 12, pointerEvents: "none", css: {
|
|
879
879
|
"--audio-wave-top-color": "colors.colorPalette.emphasized",
|
|
880
880
|
"--audio-wave-bottom-color": "colors.colorPalette.solid"
|
|
881
881
|
}, style: {
|
|
882
882
|
WebkitMaskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)",
|
|
883
883
|
maskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)"
|
|
884
|
-
}, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] =
|
|
885
|
-
},
|
|
884
|
+
}, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] = w) : w = e[20], w;
|
|
885
|
+
}, Ii = (t) => {
|
|
886
886
|
const e = x(16), {
|
|
887
887
|
item: o
|
|
888
|
-
} = t, n =
|
|
888
|
+
} = t, n = Xe();
|
|
889
889
|
let i;
|
|
890
890
|
e[0] !== n?.audio || e[1] !== o.renderer ? (i = n?.audio.isAudioRenderer(o.renderer), e[0] = n?.audio, e[1] = o.renderer, e[2] = i) : i = e[2];
|
|
891
891
|
const l = i, s = l ? o.renderer : void 0;
|
|
@@ -901,25 +901,25 @@ const Qe = () => {
|
|
|
901
901
|
enabled: u,
|
|
902
902
|
trackId: o.item.id
|
|
903
903
|
}, e[8] = o.item.id, e[9] = u, e[10] = f) : f = e[10];
|
|
904
|
-
const h =
|
|
904
|
+
const h = ri(f), m = si(h);
|
|
905
905
|
if (!d)
|
|
906
906
|
return null;
|
|
907
907
|
const g = h ? m : void 0;
|
|
908
908
|
let p;
|
|
909
|
-
e[11] !== g ? (p = /* @__PURE__ */ a(
|
|
909
|
+
e[11] !== g ? (p = /* @__PURE__ */ a(yi, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
|
|
910
910
|
let b;
|
|
911
911
|
return e[13] !== d || e[14] !== p ? (b = wt(p, d), e[13] = d, e[14] = p, e[15] = b) : b = e[15], b;
|
|
912
|
-
},
|
|
912
|
+
}, Ti = N((t) => {
|
|
913
913
|
const e = x(7), {
|
|
914
914
|
item: o
|
|
915
915
|
} = t, n = o.containerElement;
|
|
916
916
|
let i;
|
|
917
|
-
e[0] !== o ? (i = /* @__PURE__ */ a(
|
|
917
|
+
e[0] !== o ? (i = /* @__PURE__ */ a(Ii, { item: o }), e[0] = o, e[1] = i) : i = e[1];
|
|
918
918
|
let l;
|
|
919
919
|
e[2] !== n || e[3] !== i ? (l = wt(i, n), e[2] = n, e[3] = i, e[4] = l) : l = e[4];
|
|
920
920
|
let s;
|
|
921
921
|
return e[5] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
|
|
922
|
-
}),
|
|
922
|
+
}), ki = N((t) => {
|
|
923
923
|
const e = x(18), {
|
|
924
924
|
children: o
|
|
925
925
|
} = t, n = j();
|
|
@@ -940,7 +940,7 @@ const Qe = () => {
|
|
|
940
940
|
if (!s)
|
|
941
941
|
return null;
|
|
942
942
|
let u;
|
|
943
|
-
e[8] !== d ? (u = d?.map(
|
|
943
|
+
e[8] !== d ? (u = d?.map($i), e[8] = d, e[9] = u) : u = e[9];
|
|
944
944
|
let f;
|
|
945
945
|
e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ y(ve, { children: [
|
|
946
946
|
o,
|
|
@@ -951,24 +951,24 @@ const Qe = () => {
|
|
|
951
951
|
let m;
|
|
952
952
|
return e[16] !== h ? (m = /* @__PURE__ */ a(ve, { children: h }), e[16] = h, e[17] = m) : m = e[17], m;
|
|
953
953
|
});
|
|
954
|
-
function
|
|
955
|
-
return /* @__PURE__ */ a(
|
|
954
|
+
function $i(t) {
|
|
955
|
+
return /* @__PURE__ */ a(Ti, { item: t }, t.index);
|
|
956
956
|
}
|
|
957
|
-
const Rt =
|
|
957
|
+
const Rt = xn({
|
|
958
958
|
placement: "bottom-end",
|
|
959
959
|
pauseOnPageIdle: !0
|
|
960
|
-
}),
|
|
960
|
+
}), Ri = () => {
|
|
961
961
|
const t = x(1);
|
|
962
962
|
let e;
|
|
963
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(
|
|
963
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(bt, { children: /* @__PURE__ */ a(yn, { toaster: Rt, insetInline: {
|
|
964
964
|
mdDown: "4"
|
|
965
|
-
}, children:
|
|
965
|
+
}, children: Mi }) }), t[0] = e) : e = t[0], e;
|
|
966
966
|
};
|
|
967
|
-
function
|
|
967
|
+
function Mi(t) {
|
|
968
968
|
return /* @__PURE__ */ y(je.Root, { width: {
|
|
969
969
|
md: "sm"
|
|
970
970
|
}, children: [
|
|
971
|
-
t.type === "loading" ? /* @__PURE__ */ a(
|
|
971
|
+
t.type === "loading" ? /* @__PURE__ */ a(In, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(je.Indicator, {}),
|
|
972
972
|
/* @__PURE__ */ y(ee, { gap: "1", flex: "1", maxWidth: "100%", children: [
|
|
973
973
|
t.title && /* @__PURE__ */ a(je.Title, { children: t.title }),
|
|
974
974
|
t.description && /* @__PURE__ */ a(je.Description, { children: t.description })
|
|
@@ -977,29 +977,29 @@ function $i(t) {
|
|
|
977
977
|
t.meta?.closable && /* @__PURE__ */ a(je.CloseTrigger, {})
|
|
978
978
|
] });
|
|
979
979
|
}
|
|
980
|
-
const
|
|
980
|
+
const Oi = (t) => {
|
|
981
981
|
const e = x(25);
|
|
982
982
|
let o, n;
|
|
983
983
|
e[0] !== t ? ({
|
|
984
984
|
children: o,
|
|
985
985
|
...n
|
|
986
986
|
} = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
|
|
987
|
-
const i =
|
|
987
|
+
const i = it(wi);
|
|
988
988
|
let l;
|
|
989
989
|
e[3] !== i.value.fontSizeMenuOpen ? (l = () => Ke({
|
|
990
990
|
default: i.value.fontSizeMenuOpen
|
|
991
991
|
}), e[3] = i.value.fontSizeMenuOpen, e[4] = l) : l = e[4];
|
|
992
|
-
const s =
|
|
992
|
+
const s = it(l), r = Tt(s);
|
|
993
993
|
let c;
|
|
994
|
-
e[5] !== s ? (c = (
|
|
995
|
-
s.update(
|
|
994
|
+
e[5] !== s ? (c = (T) => {
|
|
995
|
+
s.update(T);
|
|
996
996
|
}, e[5] = s, e[6] = c) : c = e[6];
|
|
997
997
|
const d = c;
|
|
998
998
|
let u;
|
|
999
|
-
e[7] !== i ? (u = (
|
|
999
|
+
e[7] !== i ? (u = (T) => {
|
|
1000
1000
|
i.update((I) => ({
|
|
1001
1001
|
...I,
|
|
1002
|
-
_quickMenuOpen: typeof
|
|
1002
|
+
_quickMenuOpen: typeof T == "function" ? T(I._quickMenuOpen) : T
|
|
1003
1003
|
}));
|
|
1004
1004
|
}, e[7] = i, e[8] = u) : u = e[8];
|
|
1005
1005
|
const f = u;
|
|
@@ -1007,16 +1007,16 @@ const Ri = (t) => {
|
|
|
1007
1007
|
e[9] !== i.value.refitMenuOpen ? (h = () => Ke({
|
|
1008
1008
|
default: i.value.refitMenuOpen
|
|
1009
1009
|
}), e[9] = i.value.refitMenuOpen, e[10] = h) : h = e[10];
|
|
1010
|
-
const m =
|
|
1010
|
+
const m = it(h);
|
|
1011
1011
|
let g;
|
|
1012
|
-
e[11] !== m ? (g = (
|
|
1013
|
-
m.update(
|
|
1012
|
+
e[11] !== m ? (g = (T) => {
|
|
1013
|
+
m.update(T);
|
|
1014
1014
|
}, e[11] = m, e[12] = g) : g = e[12];
|
|
1015
|
-
const p = g, b = Tt(m), S =
|
|
1015
|
+
const p = g, b = Tt(m), S = jn(n, ao);
|
|
1016
1016
|
let _, v;
|
|
1017
1017
|
e[13] !== f || e[14] !== S || e[15] !== r || e[16] !== d || e[17] !== p || e[18] !== b || e[19] !== i ? (_ = () => {
|
|
1018
|
-
i.update((
|
|
1019
|
-
...
|
|
1018
|
+
i.update((T) => ({
|
|
1019
|
+
...T,
|
|
1020
1020
|
...S,
|
|
1021
1021
|
onFontSizeMenuOpenChange: d,
|
|
1022
1022
|
fontSizeMenuOpen: r,
|
|
@@ -1026,8 +1026,8 @@ const Ri = (t) => {
|
|
|
1026
1026
|
}));
|
|
1027
1027
|
}, v = [S, f, i, r, d, b, p], e[13] = f, e[14] = S, e[15] = r, e[16] = d, e[17] = p, e[18] = b, e[19] = i, e[20] = _, e[21] = v) : (_ = e[20], v = e[21]), oe(_, v);
|
|
1028
1028
|
let C;
|
|
1029
|
-
return e[22] !== o || e[23] !== i ? (C = /* @__PURE__ */ a(
|
|
1030
|
-
},
|
|
1029
|
+
return e[22] !== o || e[23] !== i ? (C = /* @__PURE__ */ a(zt.Provider, { value: i, children: o }), e[22] = o, e[23] = i, e[24] = C) : C = e[24], C;
|
|
1030
|
+
}, Ai = N((t) => {
|
|
1031
1031
|
const e = x(6);
|
|
1032
1032
|
let o, n;
|
|
1033
1033
|
e[0] !== t ? ({
|
|
@@ -1035,14 +1035,14 @@ const Ri = (t) => {
|
|
|
1035
1035
|
...n
|
|
1036
1036
|
} = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
|
|
1037
1037
|
let i;
|
|
1038
|
-
return e[3] !== o || e[4] !== n ? (i = /* @__PURE__ */ a(
|
|
1038
|
+
return e[3] !== o || e[4] !== n ? (i = /* @__PURE__ */ a(Oi, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = i) : i = e[5], i;
|
|
1039
1039
|
});
|
|
1040
|
-
function
|
|
1040
|
+
function wi() {
|
|
1041
1041
|
return Ke({
|
|
1042
|
-
default:
|
|
1042
|
+
default: an()
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
-
const
|
|
1045
|
+
const ot = de.forwardRef(function(e, o) {
|
|
1046
1046
|
const n = x(16);
|
|
1047
1047
|
let i, l, s, r;
|
|
1048
1048
|
n[0] !== e ? ({
|
|
@@ -1052,18 +1052,18 @@ const nt = de.forwardRef(function(e, o) {
|
|
|
1052
1052
|
...s
|
|
1053
1053
|
} = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r) : (i = n[1], l = n[2], s = n[3], r = n[4]);
|
|
1054
1054
|
let c;
|
|
1055
|
-
n[5] !== l || n[6] !== o ? (c = /* @__PURE__ */ a(
|
|
1055
|
+
n[5] !== l || n[6] !== o ? (c = /* @__PURE__ */ a(nt.ItemHiddenInput, { ref: o, ...l }), n[5] = l, n[6] = o, n[7] = c) : c = n[7];
|
|
1056
1056
|
let d;
|
|
1057
|
-
n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(
|
|
1057
|
+
n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(nt.ItemIndicator, {}), n[8] = d) : d = n[8];
|
|
1058
1058
|
let u;
|
|
1059
|
-
n[9] !== i ? (u = i && /* @__PURE__ */ a(
|
|
1059
|
+
n[9] !== i ? (u = i && /* @__PURE__ */ a(nt.ItemText, { children: i }), n[9] = i, n[10] = u) : u = n[10];
|
|
1060
1060
|
let f;
|
|
1061
|
-
return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (f = /* @__PURE__ */ y(
|
|
1061
|
+
return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (f = /* @__PURE__ */ y(nt.Item, { ref: r, ...s, children: [
|
|
1062
1062
|
c,
|
|
1063
1063
|
d,
|
|
1064
1064
|
u
|
|
1065
1065
|
] }), n[11] = s, n[12] = r, n[13] = c, n[14] = u, n[15] = f) : f = n[15], f;
|
|
1066
|
-
}),
|
|
1066
|
+
}), pn = nt.Root, Pt = de.memo(function(e) {
|
|
1067
1067
|
const o = x(29);
|
|
1068
1068
|
let n, i, l, s, r, c, d;
|
|
1069
1069
|
if (o[0] !== e) {
|
|
@@ -1073,12 +1073,12 @@ const nt = de.forwardRef(function(e, o) {
|
|
|
1073
1073
|
} = e;
|
|
1074
1074
|
l = v;
|
|
1075
1075
|
const {
|
|
1076
|
-
marks:
|
|
1076
|
+
marks: T,
|
|
1077
1077
|
label: I,
|
|
1078
|
-
showValue:
|
|
1078
|
+
showValue: k,
|
|
1079
1079
|
...R
|
|
1080
1080
|
} = C;
|
|
1081
|
-
n = I, r =
|
|
1081
|
+
n = I, r = k, s = R, d = C.defaultValue ?? C.value, i = T?.map(Di), c = i?.some(Bi), o[0] = e, o[1] = n, o[2] = i, o[3] = l, o[4] = s, o[5] = r, o[6] = c, o[7] = d;
|
|
1082
1082
|
} else
|
|
1083
1083
|
n = o[1], i = o[2], l = o[3], s = o[4], r = o[5], c = o[6], d = o[7];
|
|
1084
1084
|
const u = !!c;
|
|
@@ -1093,9 +1093,9 @@ const nt = de.forwardRef(function(e, o) {
|
|
|
1093
1093
|
let g;
|
|
1094
1094
|
o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(fe.Track, { children: /* @__PURE__ */ a(fe.Range, {}) }), o[14] = g) : g = o[14];
|
|
1095
1095
|
let p;
|
|
1096
|
-
o[15] !== d ? (p = /* @__PURE__ */ a(
|
|
1096
|
+
o[15] !== d ? (p = /* @__PURE__ */ a(zi, { value: d }), o[15] = d, o[16] = p) : p = o[16];
|
|
1097
1097
|
let b;
|
|
1098
|
-
o[17] !== i ? (b = /* @__PURE__ */ a(
|
|
1098
|
+
o[17] !== i ? (b = /* @__PURE__ */ a(Ei, { marks: i }), o[17] = i, o[18] = b) : b = o[18];
|
|
1099
1099
|
let S;
|
|
1100
1100
|
o[19] !== m || o[20] !== p || o[21] !== b ? (S = /* @__PURE__ */ y(fe.Control, { "data-has-mark-label": m, children: [
|
|
1101
1101
|
g,
|
|
@@ -1109,44 +1109,44 @@ const nt = de.forwardRef(function(e, o) {
|
|
|
1109
1109
|
S
|
|
1110
1110
|
] }), o[23] = l, o[24] = s, o[25] = f, o[26] = h, o[27] = S, o[28] = _) : _ = o[28], _;
|
|
1111
1111
|
});
|
|
1112
|
-
function
|
|
1112
|
+
function zi(t) {
|
|
1113
1113
|
const e = x(2), {
|
|
1114
1114
|
value: o
|
|
1115
1115
|
} = t;
|
|
1116
1116
|
let n;
|
|
1117
|
-
return e[0] !== o ? (n = /* @__PURE__ */ a(
|
|
1117
|
+
return e[0] !== o ? (n = /* @__PURE__ */ a(Tn, { each: o, children: Pi }), e[0] = o, e[1] = n) : n = e[1], n;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Pi(t, e) {
|
|
1120
1120
|
return /* @__PURE__ */ a(fe.Thumb, { index: e, children: /* @__PURE__ */ a(fe.HiddenInput, {}) }, e);
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const Ei = de.forwardRef(function(e, o) {
|
|
1123
1123
|
const n = x(5), {
|
|
1124
1124
|
marks: i
|
|
1125
1125
|
} = e;
|
|
1126
1126
|
if (!i?.length)
|
|
1127
1127
|
return null;
|
|
1128
1128
|
let l;
|
|
1129
|
-
n[0] !== i ? (l = i.map(
|
|
1129
|
+
n[0] !== i ? (l = i.map(Fi), n[0] = i, n[1] = l) : l = n[1];
|
|
1130
1130
|
let s;
|
|
1131
1131
|
return n[2] !== o || n[3] !== l ? (s = /* @__PURE__ */ a(fe.MarkerGroup, { ref: o, children: l }), n[2] = o, n[3] = l, n[4] = s) : s = n[4], s;
|
|
1132
1132
|
});
|
|
1133
|
-
function
|
|
1133
|
+
function Di(t) {
|
|
1134
1134
|
return typeof t == "number" ? {
|
|
1135
1135
|
value: t,
|
|
1136
1136
|
label: void 0
|
|
1137
1137
|
} : t;
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function Bi(t) {
|
|
1140
1140
|
return t.label;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function Fi(t, e) {
|
|
1143
1143
|
const o = typeof t == "number" ? t : t.value, n = typeof t == "number" ? void 0 : t.label;
|
|
1144
1144
|
return /* @__PURE__ */ y(fe.Marker, { value: o, children: [
|
|
1145
1145
|
/* @__PURE__ */ a(fe.MarkerIndicator, {}),
|
|
1146
1146
|
n
|
|
1147
1147
|
] }, e);
|
|
1148
1148
|
}
|
|
1149
|
-
const
|
|
1149
|
+
const Et = [{
|
|
1150
1150
|
value: "global",
|
|
1151
1151
|
references: ["global"]
|
|
1152
1152
|
}, {
|
|
@@ -1155,11 +1155,11 @@ const Pt = [{
|
|
|
1155
1155
|
}, {
|
|
1156
1156
|
value: "screen",
|
|
1157
1157
|
references: ["mobile", "tablet", "desktop"]
|
|
1158
|
-
}],
|
|
1158
|
+
}], Li = Et.map((t) => t.value), Kt = Et.flatMap((t) => t.references), Ni = (t) => {
|
|
1159
1159
|
if (t)
|
|
1160
|
-
return
|
|
1161
|
-
},
|
|
1162
|
-
const t = x(52), e =
|
|
1160
|
+
return Et.find((e) => e.references.includes(t))?.value;
|
|
1161
|
+
}, Hi = N(() => {
|
|
1162
|
+
const t = x(52), e = Qe();
|
|
1163
1163
|
let o;
|
|
1164
1164
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["fontSizeMenuOpen", "onFontSizeMenuOpenChange", "fontSize", "fontSizeMin", "fontSizeMax", "fontSizeScope", "onFontSizeChange", "onFontSizeScopeChange", "uncontrolledFontSize", "fontSizeValues"], t[0] = o) : o = t[0];
|
|
1165
1165
|
const {
|
|
@@ -1173,7 +1173,7 @@ const Pt = [{
|
|
|
1173
1173
|
fontSizeValues: u,
|
|
1174
1174
|
onFontSizeChange: f,
|
|
1175
1175
|
onFontSizeScopeChange: h
|
|
1176
|
-
} = ie(o), m = s === void 0 ? l : s, g =
|
|
1176
|
+
} = ie(o), m = s === void 0 ? l : s, g = qn(f), [p, b] = ne(d ?? "global");
|
|
1177
1177
|
let S;
|
|
1178
1178
|
t[1] !== e || t[2] !== g ? (S = (L, re) => {
|
|
1179
1179
|
g.current ? g.current(L, re) : e.update((Se) => ({
|
|
@@ -1185,55 +1185,55 @@ const Pt = [{
|
|
|
1185
1185
|
let v;
|
|
1186
1186
|
t[4] !== m || t[5] !== u ? (v = (L) => u?.[L] ?? m, t[4] = m, t[5] = u, t[6] = v) : v = t[6];
|
|
1187
1187
|
const C = v;
|
|
1188
|
-
let
|
|
1189
|
-
t[7] !== h ? (
|
|
1188
|
+
let T;
|
|
1189
|
+
t[7] !== h ? (T = (L) => {
|
|
1190
1190
|
const re = L.value;
|
|
1191
1191
|
h?.(re);
|
|
1192
|
-
}, t[7] = h, t[8] =
|
|
1193
|
-
const I =
|
|
1194
|
-
let
|
|
1195
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1192
|
+
}, t[7] = h, t[8] = T) : T = t[8];
|
|
1193
|
+
const I = T;
|
|
1194
|
+
let k;
|
|
1195
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (L) => {
|
|
1196
1196
|
b(L.value);
|
|
1197
|
-
}, t[9] =
|
|
1198
|
-
const R =
|
|
1197
|
+
}, t[9] = k) : k = t[9];
|
|
1198
|
+
const R = k;
|
|
1199
1199
|
let P;
|
|
1200
1200
|
t[10] !== _ || t[11] !== p ? (P = (L) => {
|
|
1201
1201
|
const re = L.value[0] ?? 0;
|
|
1202
1202
|
_(p, re / 100);
|
|
1203
1203
|
}, t[10] = _, t[11] = p, t[12] = P) : P = t[12];
|
|
1204
1204
|
const E = P;
|
|
1205
|
-
let M,
|
|
1205
|
+
let M, A;
|
|
1206
1206
|
t[13] !== d ? (M = function() {
|
|
1207
1207
|
b(d ?? "global");
|
|
1208
|
-
},
|
|
1209
|
-
let
|
|
1210
|
-
t[16] !== i ? (
|
|
1208
|
+
}, A = [d], t[13] = d, t[14] = M, t[15] = A) : (M = t[14], A = t[15]), oe(M, A);
|
|
1209
|
+
let w;
|
|
1210
|
+
t[16] !== i ? (w = (L) => {
|
|
1211
1211
|
i(L.open);
|
|
1212
|
-
}, t[16] = i, t[17] =
|
|
1212
|
+
}, t[16] = i, t[17] = w) : w = t[17];
|
|
1213
1213
|
let $;
|
|
1214
1214
|
t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Font size" }) }), t[18] = $) : $ = t[18];
|
|
1215
1215
|
let O, z;
|
|
1216
1216
|
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(xe.Legend, { children: "Scope" }), z = /* @__PURE__ */ a(xe.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = O, t[20] = z) : (O = t[19], z = t[20]);
|
|
1217
1217
|
let D;
|
|
1218
|
-
t[21] !== d ? (D =
|
|
1218
|
+
t[21] !== d ? (D = Ni(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
|
|
1219
1219
|
const F = !h;
|
|
1220
|
-
let
|
|
1221
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1220
|
+
let Q;
|
|
1221
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(ce, { gap: 2, children: Li.map(Vi) }), t[23] = Q) : Q = t[23];
|
|
1222
1222
|
let V;
|
|
1223
1223
|
t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(xe.Root, { children: [
|
|
1224
1224
|
O,
|
|
1225
1225
|
z,
|
|
1226
|
-
/* @__PURE__ */ a(xe.Content, { children: /* @__PURE__ */ a(
|
|
1226
|
+
/* @__PURE__ */ a(xe.Content, { children: /* @__PURE__ */ a(pn, { onValueChange: I, value: D, disabled: F, children: Q }) })
|
|
1227
1227
|
] }), t[24] = I, t[25] = D, t[26] = F, t[27] = V) : V = t[27];
|
|
1228
|
-
let G;
|
|
1229
|
-
t[28] !== d ? (G = Ut.map((L) => /* @__PURE__ */ y(me.Trigger, { value: L, textTransform: "capitalize", disabled: L !== "global" && !d, children: [
|
|
1230
|
-
d === L && /* @__PURE__ */ a(zn, {}),
|
|
1231
|
-
L
|
|
1232
|
-
] }, L)), t[28] = d, t[29] = G) : G = t[29];
|
|
1233
1228
|
let W;
|
|
1234
|
-
t[
|
|
1229
|
+
t[28] !== d ? (W = Kt.map((L) => /* @__PURE__ */ y(me.Trigger, { value: L, textTransform: "capitalize", disabled: L !== "global" && !d, children: [
|
|
1230
|
+
d === L && /* @__PURE__ */ a(Pn, {}),
|
|
1231
|
+
L
|
|
1232
|
+
] }, L)), t[28] = d, t[29] = W) : W = t[29];
|
|
1233
|
+
let G;
|
|
1234
|
+
t[30] !== W ? (G = /* @__PURE__ */ a(me.List, { children: W }), t[30] = W, t[31] = G) : G = t[31];
|
|
1235
1235
|
let q;
|
|
1236
|
-
t[32] !== c || t[33] !== r || t[34] !== C || t[35] !== E ? (q =
|
|
1236
|
+
t[32] !== c || t[33] !== r || t[34] !== C || t[35] !== E ? (q = Kt.map((L) => /* @__PURE__ */ a(me.Content, { value: L, children: /* @__PURE__ */ a(Pt, { label: "%", value: [(C(L) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
|
|
1237
1237
|
value: 100,
|
|
1238
1238
|
label: "Publisher"
|
|
1239
1239
|
}, {
|
|
@@ -1243,33 +1243,33 @@ const Pt = [{
|
|
|
1243
1243
|
value: c * 100,
|
|
1244
1244
|
label: `${c * 100}%`
|
|
1245
1245
|
}], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, L)), t[32] = c, t[33] = r, t[34] = C, t[35] = E, t[36] = q) : q = t[36];
|
|
1246
|
-
let
|
|
1247
|
-
t[37] !==
|
|
1248
|
-
|
|
1246
|
+
let Y;
|
|
1247
|
+
t[37] !== G || t[38] !== q || t[39] !== p ? (Y = /* @__PURE__ */ y(me.Root, { value: p, onValueChange: R, fitted: !1, size: "sm", children: [
|
|
1248
|
+
G,
|
|
1249
1249
|
q
|
|
1250
|
-
] }), t[37] =
|
|
1250
|
+
] }), t[37] = G, t[38] = q, t[39] = p, t[40] = Y) : Y = t[40];
|
|
1251
1251
|
let K;
|
|
1252
|
-
t[41] !== V || t[42] !==
|
|
1252
|
+
t[41] !== V || t[42] !== Y ? (K = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(ee, { gap: 4, flex: 1, children: [
|
|
1253
1253
|
V,
|
|
1254
|
-
|
|
1255
|
-
] }) }), t[41] = V, t[42] =
|
|
1256
|
-
let
|
|
1257
|
-
t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1254
|
+
Y
|
|
1255
|
+
] }) }), t[41] = V, t[42] = Y, t[43] = K) : K = t[43];
|
|
1256
|
+
let Z, X;
|
|
1257
|
+
t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), X = /* @__PURE__ */ a(Te, {}), t[44] = Z, t[45] = X) : (Z = t[44], X = t[45]);
|
|
1258
1258
|
let B;
|
|
1259
1259
|
t[46] !== K ? (B = /* @__PURE__ */ y(Ie, { maxH: "40vh", overflow: "auto", children: [
|
|
1260
1260
|
$,
|
|
1261
1261
|
K,
|
|
1262
|
-
|
|
1262
|
+
Z,
|
|
1263
1263
|
X
|
|
1264
1264
|
] }), t[46] = K, t[47] = B) : B = t[47];
|
|
1265
1265
|
let se;
|
|
1266
|
-
return t[48] !== n || t[49] !== B || t[50] !==
|
|
1266
|
+
return t[48] !== n || t[49] !== B || t[50] !== w ? (se = /* @__PURE__ */ a(ke, { lazyMount: !0, open: n, onOpenChange: w, placement: "center", children: B }), t[48] = n, t[49] = B, t[50] = w, t[51] = se) : se = t[51], se;
|
|
1267
1267
|
});
|
|
1268
|
-
function
|
|
1269
|
-
return /* @__PURE__ */ a(
|
|
1268
|
+
function Vi(t) {
|
|
1269
|
+
return /* @__PURE__ */ a(ot, { value: t, children: t }, t);
|
|
1270
1270
|
}
|
|
1271
|
-
const
|
|
1272
|
-
const t = x(8), e = j(), o =
|
|
1271
|
+
const Wi = () => {
|
|
1272
|
+
const t = x(8), e = j(), o = Qe();
|
|
1273
1273
|
let n;
|
|
1274
1274
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["fontSize", "uncontrolledFontSize", "onFontSizeChange"], t[0] = n) : n = t[0];
|
|
1275
1275
|
const {
|
|
@@ -1289,7 +1289,7 @@ const Hi = () => {
|
|
|
1289
1289
|
}, c = [e, s], t[1] = s, t[2] = e, t[3] = r, t[4] = c) : (r = t[3], c = t[4]), oe(r, c);
|
|
1290
1290
|
let d;
|
|
1291
1291
|
return t[5] !== o || t[6] !== e?.settings.values$ ? (d = function() {
|
|
1292
|
-
return e?.settings.values$.pipe(J(
|
|
1292
|
+
return e?.settings.values$.pipe(J(Gi)).subscribe((h) => {
|
|
1293
1293
|
const m = o.value.fontSize ?? o.value.uncontrolledFontSize;
|
|
1294
1294
|
h !== m && (o.value.onFontSizeChange?.("internal", h), o.update((g) => ({
|
|
1295
1295
|
...g,
|
|
@@ -1298,10 +1298,10 @@ const Hi = () => {
|
|
|
1298
1298
|
});
|
|
1299
1299
|
}, t[5] = o, t[6] = e?.settings.values$, t[7] = d) : d = t[7], pe(d), null;
|
|
1300
1300
|
};
|
|
1301
|
-
function
|
|
1301
|
+
function Gi(t) {
|
|
1302
1302
|
return t.fontScale;
|
|
1303
1303
|
}
|
|
1304
|
-
const
|
|
1304
|
+
const Ui = {
|
|
1305
1305
|
x: 0,
|
|
1306
1306
|
y: 0,
|
|
1307
1307
|
width: 0,
|
|
@@ -1311,8 +1311,8 @@ const Wi = {
|
|
|
1311
1311
|
bottom: 0,
|
|
1312
1312
|
right: 0
|
|
1313
1313
|
};
|
|
1314
|
-
function
|
|
1315
|
-
const t = x(7), [e, o] = ne(null), [n, i] = ne(
|
|
1314
|
+
function ji() {
|
|
1315
|
+
const t = x(7), [e, o] = ne(null), [n, i] = ne(Ui);
|
|
1316
1316
|
let l;
|
|
1317
1317
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = new ResizeObserver((u) => {
|
|
1318
1318
|
if (u[0]) {
|
|
@@ -1345,42 +1345,40 @@ function Gi() {
|
|
|
1345
1345
|
return s.observe(e), () => {
|
|
1346
1346
|
s.disconnect();
|
|
1347
1347
|
};
|
|
1348
|
-
}, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]),
|
|
1348
|
+
}, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]), On(r, c);
|
|
1349
1349
|
let d;
|
|
1350
1350
|
return t[4] !== e || t[5] !== n ? (d = [o, n, e], t[4] = e, t[5] = n, t[6] = d) : d = t[6], d;
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1352
|
+
const qi = (t, e, o) => {
|
|
1353
1353
|
const n = x(7), i = j();
|
|
1354
1354
|
let l;
|
|
1355
|
-
n[0] !== i ? (l =
|
|
1355
|
+
n[0] !== i ? (l = fn(i) ? i : void 0, n[0] = i, n[1] = l) : l = n[1];
|
|
1356
1356
|
const s = l;
|
|
1357
1357
|
let r;
|
|
1358
1358
|
n[2] !== t || n[3] !== e || n[4] !== o || n[5] !== s ? (r = () => {
|
|
1359
1359
|
if (!s || !t)
|
|
1360
|
-
return
|
|
1361
|
-
const d = e.didLayout$.pipe(
|
|
1362
|
-
return d.pipe(Xt(100, void 0, {
|
|
1360
|
+
return Ye;
|
|
1361
|
+
const d = e.didLayout$.pipe($t(e.layoutInfo), be(sn), en(100, void 0, {
|
|
1363
1362
|
trailing: !0
|
|
1364
|
-
}),
|
|
1365
|
-
|
|
1366
|
-
|
|
1363
|
+
})), u = lo(t).pipe(J(Yi), $t(!1), be());
|
|
1364
|
+
return at([d, u]).pipe(Ce((f) => {
|
|
1365
|
+
const [, h] = f;
|
|
1366
|
+
return h ? (t.innerHTML = "", s.gallery.snapshot(e, t, o)) : (t.innerHTML = "", Ye);
|
|
1367
|
+
}));
|
|
1367
1368
|
}, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6], pe(r);
|
|
1368
1369
|
};
|
|
1369
|
-
function
|
|
1370
|
+
function Ki(t) {
|
|
1370
1371
|
return t.isIntersecting;
|
|
1371
1372
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return t.some(
|
|
1374
|
-
}
|
|
1375
|
-
function Ki(t) {
|
|
1376
|
-
return t;
|
|
1373
|
+
function Yi(t) {
|
|
1374
|
+
return t.some(Ki);
|
|
1377
1375
|
}
|
|
1378
|
-
const
|
|
1376
|
+
const Zi = N((t) => {
|
|
1379
1377
|
const e = x(16), {
|
|
1380
1378
|
item: o,
|
|
1381
1379
|
onNavigated: n
|
|
1382
|
-
} = t, [i, l, s] =
|
|
1383
|
-
|
|
1380
|
+
} = t, [i, l, s] = ji(), r = j();
|
|
1381
|
+
qi(s, o, l);
|
|
1384
1382
|
let c, d;
|
|
1385
1383
|
e[0] !== o || e[1] !== r ? (c = () => r?.locateResource(o, {
|
|
1386
1384
|
mode: "shallow"
|
|
@@ -1407,7 +1405,7 @@ const Yi = N((t) => {
|
|
|
1407
1405
|
h,
|
|
1408
1406
|
g
|
|
1409
1407
|
] }), e[12] = f, e[13] = h, e[14] = g, e[15] = p) : p = e[15], p;
|
|
1410
|
-
}),
|
|
1408
|
+
}), Qi = N((t) => {
|
|
1411
1409
|
const e = x(23), {
|
|
1412
1410
|
open: o,
|
|
1413
1411
|
setOpen: n
|
|
@@ -1433,13 +1431,13 @@ const Yi = N((t) => {
|
|
|
1433
1431
|
let h;
|
|
1434
1432
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [2, 4], e[9] = h) : h = e[9];
|
|
1435
1433
|
let m;
|
|
1436
|
-
e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(
|
|
1434
|
+
e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Zi, { item: v, onNavigated: () => {
|
|
1437
1435
|
n(!1);
|
|
1438
1436
|
} }, v.item.id)), e[10] = r, e[11] = n, e[12] = m) : m = e[12];
|
|
1439
1437
|
let g;
|
|
1440
1438
|
e[13] !== m ? (g = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(le, { gridTemplateColumns: f, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
|
|
1441
1439
|
let p, b;
|
|
1442
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(
|
|
1440
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(Te, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
|
|
1443
1441
|
let S;
|
|
1444
1442
|
e[17] !== g ? (S = /* @__PURE__ */ y(Ie, { height: "100%", children: [
|
|
1445
1443
|
u,
|
|
@@ -1448,8 +1446,8 @@ const Yi = N((t) => {
|
|
|
1448
1446
|
b
|
|
1449
1447
|
] }), e[17] = g, e[18] = S) : S = e[18];
|
|
1450
1448
|
let _;
|
|
1451
|
-
return e[19] !== o || e[20] !== S || e[21] !== c ? (_ = /* @__PURE__ */ a(
|
|
1452
|
-
}),
|
|
1449
|
+
return e[19] !== o || e[20] !== S || e[21] !== c ? (_ = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: c, size: d, scrollBehavior: "inside", children: S }), e[19] = o, e[20] = S, e[21] = c, e[22] = _) : _ = e[22], _;
|
|
1450
|
+
}), Xi = "@prose-reader/react-reader", Ji = "1.296.0", el = N((t) => {
|
|
1453
1451
|
const e = x(16), {
|
|
1454
1452
|
open: o,
|
|
1455
1453
|
setOpen: n
|
|
@@ -1464,9 +1462,9 @@ const Yi = N((t) => {
|
|
|
1464
1462
|
let s;
|
|
1465
1463
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Help" }) }), e[3] = s) : s = e[3];
|
|
1466
1464
|
let r;
|
|
1467
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(
|
|
1465
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(xt, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = r) : r = e[4];
|
|
1468
1466
|
let c;
|
|
1469
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(
|
|
1467
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Ft, { children: /* @__PURE__ */ a(En, {}) }), e[5] = c) : c = e[5];
|
|
1470
1468
|
let d;
|
|
1471
1469
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ y(ce, { mb: 1, children: [
|
|
1472
1470
|
c,
|
|
@@ -1474,7 +1472,7 @@ const Yi = N((t) => {
|
|
|
1474
1472
|
/* @__PURE__ */ a(U, { children: "Navigate to right page" })
|
|
1475
1473
|
] }), e[6] = d) : d = e[6];
|
|
1476
1474
|
let u;
|
|
1477
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(
|
|
1475
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Ft, { children: /* @__PURE__ */ a(Dn, {}) }), e[7] = u) : u = e[7];
|
|
1478
1476
|
let f;
|
|
1479
1477
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(ee, { children: [
|
|
1480
1478
|
r,
|
|
@@ -1486,7 +1484,7 @@ const Yi = N((t) => {
|
|
|
1486
1484
|
] })
|
|
1487
1485
|
] }), e[8] = f) : f = e[8];
|
|
1488
1486
|
let h;
|
|
1489
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(
|
|
1487
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(xt, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
|
|
1490
1488
|
let m;
|
|
1491
1489
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ee, { children: [
|
|
1492
1490
|
h,
|
|
@@ -1497,11 +1495,11 @@ const Yi = N((t) => {
|
|
|
1497
1495
|
f,
|
|
1498
1496
|
m,
|
|
1499
1497
|
/* @__PURE__ */ y(ee, { children: [
|
|
1500
|
-
/* @__PURE__ */ a(
|
|
1498
|
+
/* @__PURE__ */ a(xt, { mb: 2, as: "h3", size: "lg", children: "About" }),
|
|
1501
1499
|
/* @__PURE__ */ y(U, { children: [
|
|
1502
|
-
|
|
1500
|
+
Xi,
|
|
1503
1501
|
" version: ",
|
|
1504
|
-
|
|
1502
|
+
Ji
|
|
1505
1503
|
] })
|
|
1506
1504
|
] })
|
|
1507
1505
|
] }), e[11] = g) : g = e[11];
|
|
@@ -1509,37 +1507,37 @@ const Yi = N((t) => {
|
|
|
1509
1507
|
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(Ie, { children: [
|
|
1510
1508
|
s,
|
|
1511
1509
|
g,
|
|
1512
|
-
/* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(
|
|
1513
|
-
/* @__PURE__ */ a(
|
|
1510
|
+
/* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }),
|
|
1511
|
+
/* @__PURE__ */ a(Te, {})
|
|
1514
1512
|
] }), e[12] = p) : p = e[12];
|
|
1515
1513
|
let b;
|
|
1516
|
-
return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a(
|
|
1517
|
-
}),
|
|
1514
|
+
return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: l, scrollBehavior: "inside", children: p }), e[13] = o, e[14] = i, e[15] = b) : b = e[15], b;
|
|
1515
|
+
}), Je = () => {
|
|
1518
1516
|
const t = x(3), e = j();
|
|
1519
1517
|
let o, n;
|
|
1520
|
-
return t[0] !== e ? (o = () => e ?
|
|
1518
|
+
return t[0] !== e ? (o = () => e ? at([e.pagination.state$, e.context]).pipe(J(nl)) : Ye, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
|
|
1521
1519
|
};
|
|
1522
|
-
function
|
|
1520
|
+
function tl(t) {
|
|
1523
1521
|
return t.mediaType?.startsWith("image/");
|
|
1524
1522
|
}
|
|
1525
|
-
function
|
|
1526
|
-
const [e, o] = t, n = o.manifest?.spineItems.every(
|
|
1523
|
+
function nl(t) {
|
|
1524
|
+
const [e, o] = t, n = o.manifest?.spineItems.every(tl);
|
|
1527
1525
|
return {
|
|
1528
1526
|
...e,
|
|
1529
1527
|
hasChapters: !o.isFullyPrePaginated && !n
|
|
1530
1528
|
};
|
|
1531
1529
|
}
|
|
1532
|
-
const
|
|
1530
|
+
const ol = {
|
|
1533
1531
|
_open: "fade-in",
|
|
1534
1532
|
_closed: "fade-out"
|
|
1535
|
-
},
|
|
1533
|
+
}, il = () => {
|
|
1536
1534
|
const t = x(6);
|
|
1537
1535
|
let e;
|
|
1538
1536
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["enableFloatingProgress", "quickMenuOpen"], t[0] = e) : e = t[0];
|
|
1539
1537
|
const {
|
|
1540
1538
|
enableFloatingProgress: o,
|
|
1541
1539
|
quickMenuOpen: n
|
|
1542
|
-
} = ie(e), i =
|
|
1540
|
+
} = ie(e), i = Je(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
|
|
1543
1541
|
if (i?.percentageEstimateOfBook === void 0 || !o)
|
|
1544
1542
|
return null;
|
|
1545
1543
|
const r = !n;
|
|
@@ -1549,8 +1547,8 @@ const nl = {
|
|
|
1549
1547
|
" %"
|
|
1550
1548
|
] }) }), t[1] = s, t[2] = c) : c = t[2];
|
|
1551
1549
|
let d;
|
|
1552
|
-
return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(
|
|
1553
|
-
},
|
|
1550
|
+
return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(Ze, { present: r, animationName: ol, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = d) : d = t[5], d;
|
|
1551
|
+
}, ll = () => {
|
|
1554
1552
|
const t = x(3);
|
|
1555
1553
|
let e;
|
|
1556
1554
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Date(), t[0] = e) : e = t[0];
|
|
@@ -1562,8 +1560,8 @@ const nl = {
|
|
|
1562
1560
|
}, 6e4);
|
|
1563
1561
|
return () => clearInterval(s);
|
|
1564
1562
|
}, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), oe(i, l), o;
|
|
1565
|
-
},
|
|
1566
|
-
const e = x(5), o =
|
|
1563
|
+
}, sl = (t) => {
|
|
1564
|
+
const e = x(5), o = ll();
|
|
1567
1565
|
let n;
|
|
1568
1566
|
e[0] !== o ? (n = o.toLocaleTimeString(navigator.language, {
|
|
1569
1567
|
hour: "2-digit",
|
|
@@ -1571,11 +1569,11 @@ const nl = {
|
|
|
1571
1569
|
}), e[0] = o, e[1] = n) : n = e[1];
|
|
1572
1570
|
let i;
|
|
1573
1571
|
return e[2] !== t || e[3] !== n ? (i = /* @__PURE__ */ a(U, { fontSize: "sm", ...t, children: n }), e[2] = t, e[3] = n, e[4] = i) : i = e[4], i;
|
|
1574
|
-
},
|
|
1572
|
+
}, rl = N(() => {
|
|
1575
1573
|
const t = x(1);
|
|
1576
1574
|
let e;
|
|
1577
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(le, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(
|
|
1578
|
-
}),
|
|
1575
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(le, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(sl, {}) }), t[0] = e) : e = t[0], e;
|
|
1576
|
+
}), al = (t, e) => {
|
|
1579
1577
|
const o = x(4), [n, i] = ne();
|
|
1580
1578
|
let l, s;
|
|
1581
1579
|
return o[0] !== e || o[1] !== t ? (l = () => {
|
|
@@ -1591,81 +1589,85 @@ const nl = {
|
|
|
1591
1589
|
window.clearTimeout(r);
|
|
1592
1590
|
};
|
|
1593
1591
|
}, s = [e, t], o[0] = e, o[1] = t, o[2] = l, o[3] = s) : (l = o[2], s = o[3]), oe(l, s), n;
|
|
1594
|
-
},
|
|
1595
|
-
pulse:
|
|
1596
|
-
},
|
|
1592
|
+
}, cl = "_pulse_1detk_1", dl = {
|
|
1593
|
+
pulse: cl
|
|
1594
|
+
}, fl = 100, ul = 900, hl = {
|
|
1597
1595
|
_open: "fade-in",
|
|
1598
|
-
_closed: "fade-out"
|
|
1599
|
-
|
|
1596
|
+
_closed: "fade-out",
|
|
1597
|
+
_motionReduce: "none"
|
|
1598
|
+
}, ml = {
|
|
1599
|
+
base: "moderate",
|
|
1600
|
+
_motionReduce: "0ms"
|
|
1601
|
+
}, gl = ({
|
|
1600
1602
|
manifest: t,
|
|
1601
1603
|
viewport: e
|
|
1602
|
-
}) => e.width === e.height ? !1 :
|
|
1604
|
+
}) => e.width === e.height ? !1 : so({
|
|
1603
1605
|
manifest: t,
|
|
1604
1606
|
viewport: {
|
|
1605
1607
|
height: e.width,
|
|
1606
1608
|
width: e.height
|
|
1607
1609
|
}
|
|
1608
|
-
}),
|
|
1610
|
+
}), pl = ({
|
|
1609
1611
|
manifest: t,
|
|
1610
1612
|
pagination: e,
|
|
1611
1613
|
computedSpreadMode: o,
|
|
1612
1614
|
viewportState: n,
|
|
1613
1615
|
viewport: i
|
|
1614
1616
|
}) => {
|
|
1615
|
-
if (!(n !== "free" || o || !
|
|
1617
|
+
if (!(n !== "free" || o || !gl({
|
|
1616
1618
|
manifest: t,
|
|
1617
1619
|
viewport: i
|
|
1618
1620
|
}) || !(e.beginHasAdjacentSpreadPage || e.endHasAdjacentSpreadPage)))
|
|
1619
1621
|
return [e.beginSpineItemIndex, e.beginPageIndexInSpineItem, e.endSpineItemIndex, e.endPageIndexInSpineItem].map((s) => s ?? "none").join(":");
|
|
1620
|
-
},
|
|
1622
|
+
}, bl = (t) => t.pagination.state$.pipe(ln(["beginHasAdjacentSpreadPage", "beginPageIndexInSpineItem", "beginSpineItemIndex", "endHasAdjacentSpreadPage", "endPageIndexInSpineItem", "endSpineItemIndex"]), Qn({
|
|
1621
1623
|
bufferSize: 1,
|
|
1622
1624
|
refCount: !0
|
|
1623
|
-
})),
|
|
1625
|
+
})), Sl = ({
|
|
1624
1626
|
pagination$: t,
|
|
1625
1627
|
reader: e
|
|
1626
|
-
}) =>
|
|
1628
|
+
}) => at([t, e.spineItemsManager.items$]).pipe(J(([{
|
|
1627
1629
|
beginSpineItemIndex: o
|
|
1628
|
-
}, n]) => o === void 0 ? void 0 : n[o]),
|
|
1629
|
-
const e =
|
|
1630
|
+
}, n]) => o === void 0 ? void 0 : n[o]), be(), Ce((o) => o?.isReady$ ?? pt(!1))), _l = (t) => {
|
|
1631
|
+
const e = bl(t), o = Sl({
|
|
1630
1632
|
pagination$: e,
|
|
1631
1633
|
reader: t
|
|
1632
1634
|
});
|
|
1633
|
-
return
|
|
1635
|
+
return at([e, t.context.manifest$, t.settings.watch(["computedSpreadMode"]), t.viewportState$, t.viewport.watch(["width", "height"]), o]).pipe(Zn(fl), J(([n, i, l, s, r, c]) => {
|
|
1634
1636
|
if (c)
|
|
1635
|
-
return
|
|
1637
|
+
return pl({
|
|
1636
1638
|
manifest: i,
|
|
1637
1639
|
pagination: n,
|
|
1638
1640
|
computedSpreadMode: l.computedSpreadMode ?? !1,
|
|
1639
1641
|
viewportState: s,
|
|
1640
1642
|
viewport: r
|
|
1641
1643
|
});
|
|
1642
|
-
}),
|
|
1643
|
-
},
|
|
1644
|
+
}), be());
|
|
1645
|
+
}, vl = () => {
|
|
1644
1646
|
const t = x(3), e = j();
|
|
1645
1647
|
let o, n;
|
|
1646
|
-
return t[0] !== e ? (o = () => e ?
|
|
1647
|
-
},
|
|
1648
|
-
const t = x(6), e =
|
|
1648
|
+
return t[0] !== e ? (o = () => e ? _l(e) : Ye, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
|
|
1649
|
+
}, Cl = N(() => {
|
|
1650
|
+
const t = x(6), e = vl(), o = al(e, ul), n = o !== void 0;
|
|
1649
1651
|
let i;
|
|
1650
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(le, { alignItems: "center", bg: "
|
|
1652
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(le, { alignItems: "center", bg: "bg.inverted/72", borderRadius: "full", className: dl.pulse, color: "fg.inverted", display: "flex", height: "68px", justifyContent: "center", width: "68px", children: /* @__PURE__ */ a(co, { focusable: !1, size: 34 }) }), t[0] = i) : i = t[0];
|
|
1651
1653
|
let l;
|
|
1652
|
-
t[1] !== o ? (l = /* @__PURE__ */ a(le, { "aria-hidden": !0, position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)", pointerEvents: "none", zIndex: 2, children: i }, o), t[1] = o, t[2] = l) : l = t[2];
|
|
1654
|
+
t[1] !== o ? (l = /* @__PURE__ */ a(le, { "aria-hidden": !0, position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)", pointerEvents: "none", zIndex: 2, "data-spread-rotation-hint": "true", children: i }, o), t[1] = o, t[2] = l) : l = t[2];
|
|
1653
1655
|
let s;
|
|
1654
|
-
return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(
|
|
1655
|
-
}),
|
|
1656
|
+
return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(Ze, { present: n, lazyMount: !0, animationName: hl, animationDuration: ml, children: l }), t[3] = n, t[4] = l, t[5] = s) : s = t[5], s;
|
|
1657
|
+
}), xl = () => {
|
|
1656
1658
|
const t = x(2), e = j();
|
|
1657
1659
|
let o;
|
|
1658
|
-
t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(
|
|
1660
|
+
t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(yl), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
|
|
1659
1661
|
};
|
|
1660
|
-
function
|
|
1661
|
-
if (t.type === "click" &&
|
|
1662
|
+
function yl(t) {
|
|
1663
|
+
if (t.type === "click" && ro(t.target, "a")) {
|
|
1662
1664
|
if (!t.target.href)
|
|
1663
1665
|
return;
|
|
1664
1666
|
const e = new URL(t.target.href);
|
|
1665
1667
|
window.location.host !== e.host && confirm("You are going to be redirected to external link") && window.open(t.target.href, "__blank");
|
|
1666
1668
|
}
|
|
1667
1669
|
}
|
|
1668
|
-
const
|
|
1670
|
+
const Il = () => {
|
|
1669
1671
|
const t = x(3);
|
|
1670
1672
|
let e;
|
|
1671
1673
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["notificationsSubject"], t[0] = e) : e = t[0];
|
|
@@ -1673,8 +1675,8 @@ const xl = () => {
|
|
|
1673
1675
|
notificationsSubject: o
|
|
1674
1676
|
} = ie(e);
|
|
1675
1677
|
let n;
|
|
1676
|
-
t[1] !== o ? (n = () => o.pipe(
|
|
1677
|
-
const s = l.duration ?? 3e3, r = new
|
|
1678
|
+
t[1] !== o ? (n = () => o.pipe(gt(Jt), Xn((l) => {
|
|
1679
|
+
const s = l.duration ?? 3e3, r = new Jn((d) => {
|
|
1678
1680
|
try {
|
|
1679
1681
|
queueMicrotask(() => {
|
|
1680
1682
|
const u = Rt.create({
|
|
@@ -1688,14 +1690,14 @@ const xl = () => {
|
|
|
1688
1690
|
const f = u;
|
|
1689
1691
|
d.error(f);
|
|
1690
1692
|
}
|
|
1691
|
-
}), c = o.pipe(
|
|
1692
|
-
return r.pipe(
|
|
1693
|
+
}), c = o.pipe(eo(1), gt((d) => !!l.key && d?.key === l.key));
|
|
1694
|
+
return r.pipe(Ce((d) => tn(nn(s), l.abort ?? Ye, c).pipe(to(), no(() => {
|
|
1693
1695
|
queueMicrotask(() => {
|
|
1694
1696
|
Rt.dismiss(d);
|
|
1695
1697
|
});
|
|
1696
1698
|
}))));
|
|
1697
1699
|
})), t[1] = o, t[2] = n) : n = t[2], pe(n);
|
|
1698
|
-
},
|
|
1700
|
+
}, Tl = kn(Co), bn = N((t) => {
|
|
1699
1701
|
const e = x(10);
|
|
1700
1702
|
let o;
|
|
1701
1703
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
@@ -1757,9 +1759,9 @@ const xl = () => {
|
|
|
1757
1759
|
}
|
|
1758
1760
|
}, e[5] = r, e[6] = c) : c = e[6];
|
|
1759
1761
|
let d;
|
|
1760
|
-
return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(le, { display: "contents", css: o, children: /* @__PURE__ */ a(
|
|
1761
|
-
}),
|
|
1762
|
-
const t = x(4), e =
|
|
1762
|
+
return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(le, { display: "contents", css: o, children: /* @__PURE__ */ a(Tl, { keyboard: !1, style: n, css: i, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = d) : d = e[9], d;
|
|
1763
|
+
}), kl = () => {
|
|
1764
|
+
const t = x(4), e = Xe();
|
|
1763
1765
|
let o;
|
|
1764
1766
|
t[0] !== e?.audio.state$ ? (o = () => e?.audio.state$, t[0] = e?.audio.state$, t[1] = o) : o = t[1];
|
|
1765
1767
|
let n;
|
|
@@ -1768,14 +1770,14 @@ const xl = () => {
|
|
|
1768
1770
|
data: i
|
|
1769
1771
|
} = H(o, n);
|
|
1770
1772
|
return i;
|
|
1771
|
-
},
|
|
1773
|
+
}, Yt = (t) => {
|
|
1772
1774
|
if (!Number.isFinite(t) || t < 0) return "00:00";
|
|
1773
1775
|
const e = Math.floor(t), o = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), i = e % 60;
|
|
1774
1776
|
return o > 0 ? [o, n, i].map((l) => String(l).padStart(2, "0")).join(":") : [n, i].map((l) => String(l).padStart(2, "0")).join(":");
|
|
1775
|
-
},
|
|
1776
|
-
const e = x(42), o =
|
|
1777
|
+
}, $l = (t) => {
|
|
1778
|
+
const e = x(42), o = Xe(), n = kl(), i = !!n?.currentTrack || (n?.tracks.length ?? 0) > 0, l = n?.duration, s = Math.max(0, l ?? 0), r = typeof l == "number" && l > 0 ? l : void 0, c = r !== void 0, d = r ?? 1, u = c ? Math.min(Math.max(0, n?.currentTime ?? 0), r) : 0, f = !i || !!n?.isLoading || !c, [h, m] = ne(u), g = it(Rl);
|
|
1777
1779
|
let p;
|
|
1778
|
-
if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J(
|
|
1780
|
+
if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J(Ml), Ot((z) => {
|
|
1779
1781
|
g.value || (m(z), g.next(!1));
|
|
1780
1782
|
})), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2], pe(p), !n)
|
|
1781
1783
|
return null;
|
|
@@ -1786,59 +1788,59 @@ const xl = () => {
|
|
|
1786
1788
|
}, e[3] = o?.audio, e[4] = _) : _ = e[4];
|
|
1787
1789
|
const v = !i || n.isLoading;
|
|
1788
1790
|
let C;
|
|
1789
|
-
e[5] !== n.isPlaying ? (C = n.isPlaying ? /* @__PURE__ */ a(
|
|
1790
|
-
let
|
|
1791
|
-
e[7] !== S || e[8] !== _ || e[9] !== v || e[10] !== C ? (
|
|
1791
|
+
e[5] !== n.isPlaying ? (C = n.isPlaying ? /* @__PURE__ */ a(Bn, {}) : /* @__PURE__ */ a(Fn, {}), e[5] = n.isPlaying, e[6] = C) : C = e[6];
|
|
1792
|
+
let T;
|
|
1793
|
+
e[7] !== S || e[8] !== _ || e[9] !== v || e[10] !== C ? (T = /* @__PURE__ */ a(te, { "aria-label": S, size: "sm", variant: "ghost", onClick: _, disabled: v, children: C }), e[7] = S, e[8] = _, e[9] = v, e[10] = C, e[11] = T) : T = e[11];
|
|
1792
1794
|
let I;
|
|
1793
1795
|
e[12] !== g ? (I = (z) => {
|
|
1794
1796
|
const D = Array.isArray(z) ? z[0] : z;
|
|
1795
1797
|
typeof D == "number" && (g.next(!0), m(D));
|
|
1796
1798
|
}, e[12] = g, e[13] = I) : I = e[13];
|
|
1797
|
-
let
|
|
1798
|
-
e[14] !== o?.audio || e[15] !== g ? (
|
|
1799
|
+
let k;
|
|
1800
|
+
e[14] !== o?.audio || e[15] !== g ? (k = (z) => {
|
|
1799
1801
|
const D = Array.isArray(z) ? z[0] : z;
|
|
1800
1802
|
if (typeof D != "number") {
|
|
1801
1803
|
g.next(!1);
|
|
1802
1804
|
return;
|
|
1803
1805
|
}
|
|
1804
1806
|
m(D), o?.audio.setCurrentTime(D), g.next(!1);
|
|
1805
|
-
}, e[14] = o?.audio, e[15] = g, e[16] =
|
|
1807
|
+
}, e[14] = o?.audio, e[15] = g, e[16] = k) : k = e[16];
|
|
1806
1808
|
let R;
|
|
1807
|
-
e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !==
|
|
1809
|
+
e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !== k ? (R = /* @__PURE__ */ a(bn, { value: h, min: 0, max: d, disabled: f, onChange: I, onChangeComplete: k }), e[17] = h, e[18] = f, e[19] = d, e[20] = I, e[21] = k, e[22] = R) : R = e[22];
|
|
1808
1810
|
let P;
|
|
1809
|
-
e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." :
|
|
1811
|
+
e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." : Yt(h), e[23] = n.isLoading, e[24] = h, e[25] = P) : P = e[25];
|
|
1810
1812
|
let E;
|
|
1811
1813
|
e[26] !== P ? (E = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: P }), e[26] = P, e[27] = E) : E = e[27];
|
|
1812
1814
|
let M;
|
|
1813
|
-
e[28] !== s ? (M =
|
|
1814
|
-
let w;
|
|
1815
|
-
e[30] !== M ? (w = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: M }), e[30] = M, e[31] = w) : w = e[31];
|
|
1815
|
+
e[28] !== s ? (M = Yt(s), e[28] = s, e[29] = M) : M = e[29];
|
|
1816
1816
|
let A;
|
|
1817
|
-
e[
|
|
1817
|
+
e[30] !== M ? (A = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: M }), e[30] = M, e[31] = A) : A = e[31];
|
|
1818
|
+
let w;
|
|
1819
|
+
e[32] !== E || e[33] !== A ? (w = /* @__PURE__ */ y(ce, { justifyContent: "space-between", mt: 1, children: [
|
|
1818
1820
|
E,
|
|
1819
|
-
|
|
1820
|
-
] }), e[32] = E, e[33] =
|
|
1821
|
+
A
|
|
1822
|
+
] }), e[32] = E, e[33] = A, e[34] = w) : w = e[34];
|
|
1821
1823
|
let $;
|
|
1822
|
-
e[35] !==
|
|
1824
|
+
e[35] !== w || e[36] !== R ? ($ = /* @__PURE__ */ y(ee, { gap: 0, minW: 0, flex: 1, children: [
|
|
1823
1825
|
R,
|
|
1824
|
-
|
|
1825
|
-
] }), e[35] =
|
|
1826
|
+
w
|
|
1827
|
+
] }), e[35] = w, e[36] = R, e[37] = $) : $ = e[37];
|
|
1826
1828
|
let O;
|
|
1827
|
-
return e[38] !== t || e[39] !== $ || e[40] !==
|
|
1828
|
-
|
|
1829
|
+
return e[38] !== t || e[39] !== $ || e[40] !== T ? (O = /* @__PURE__ */ y(ce, { width: "100%", maxW: "100%", gap: 3, borderRadius: "md", bg: "bg.muted", px: 3, py: 2, ...t, children: [
|
|
1830
|
+
T,
|
|
1829
1831
|
$
|
|
1830
|
-
] }), e[38] = t, e[39] = $, e[40] =
|
|
1832
|
+
] }), e[38] = t, e[39] = $, e[40] = T, e[41] = O) : O = e[41], O;
|
|
1831
1833
|
};
|
|
1832
|
-
function
|
|
1833
|
-
return new
|
|
1834
|
+
function Rl() {
|
|
1835
|
+
return new on(!1);
|
|
1834
1836
|
}
|
|
1835
|
-
function
|
|
1837
|
+
function Ml(t) {
|
|
1836
1838
|
return t.currentTime;
|
|
1837
1839
|
}
|
|
1838
|
-
const
|
|
1839
|
-
const t = x(4), e =
|
|
1840
|
+
const Ol = () => {
|
|
1841
|
+
const t = x(4), e = Xe();
|
|
1840
1842
|
let o;
|
|
1841
|
-
t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(
|
|
1843
|
+
t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(Al), be()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
|
|
1842
1844
|
let n;
|
|
1843
1845
|
t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
|
|
1844
1846
|
const {
|
|
@@ -1846,10 +1848,10 @@ const Rl = () => {
|
|
|
1846
1848
|
} = H(o, n);
|
|
1847
1849
|
return i === void 0 ? !1 : i;
|
|
1848
1850
|
};
|
|
1849
|
-
function
|
|
1851
|
+
function Al(t) {
|
|
1850
1852
|
return t.length > 0;
|
|
1851
1853
|
}
|
|
1852
|
-
const
|
|
1854
|
+
const wl = de.forwardRef(function(e, o) {
|
|
1853
1855
|
const n = x(26);
|
|
1854
1856
|
let i, l, s, r, c, d;
|
|
1855
1857
|
n[0] !== e ? ({
|
|
@@ -1877,13 +1879,13 @@ const Ol = de.forwardRef(function(e, o) {
|
|
|
1877
1879
|
l
|
|
1878
1880
|
] }) }), n[13] = l, n[14] = o, n[15] = g, n[16] = p) : p = n[16];
|
|
1879
1881
|
let b;
|
|
1880
|
-
n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(
|
|
1882
|
+
n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(bt, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
|
|
1881
1883
|
let S;
|
|
1882
1884
|
return n[21] !== r || n[22] !== f || n[23] !== h || n[24] !== b ? (S = /* @__PURE__ */ y(qe.Root, { ...r, positioning: f, children: [
|
|
1883
1885
|
h,
|
|
1884
1886
|
b
|
|
1885
1887
|
] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] = S) : S = n[25], S;
|
|
1886
|
-
}),
|
|
1888
|
+
}), zl = de.forwardRef(function(e, o) {
|
|
1887
1889
|
const n = x(8);
|
|
1888
1890
|
let i, l;
|
|
1889
1891
|
n[0] !== e ? ({
|
|
@@ -1891,15 +1893,15 @@ const Ol = de.forwardRef(function(e, o) {
|
|
|
1891
1893
|
...l
|
|
1892
1894
|
} = e, n[0] = e, n[1] = i, n[2] = l) : (i = n[1], l = n[2]);
|
|
1893
1895
|
let s;
|
|
1894
|
-
n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(
|
|
1896
|
+
n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(xo, {}) }), n[3] = s) : s = n[3];
|
|
1895
1897
|
let r;
|
|
1896
|
-
return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(
|
|
1897
|
-
}),
|
|
1898
|
+
return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(wl, { content: i, ...l, ref: o, children: s }), n[4] = i, n[5] = o, n[6] = l, n[7] = r) : r = n[7], r;
|
|
1899
|
+
}), Pl = de.forwardRef(function(e, o) {
|
|
1898
1900
|
const n = x(4);
|
|
1899
1901
|
let i;
|
|
1900
|
-
n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(
|
|
1902
|
+
n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(lt.Range, {}), n[0] = i) : i = n[0];
|
|
1901
1903
|
let l;
|
|
1902
|
-
return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(
|
|
1904
|
+
return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(lt.Track, { ...e, ref: o, children: i }), n[1] = e, n[2] = o, n[3] = l) : l = n[3], l;
|
|
1903
1905
|
});
|
|
1904
1906
|
de.forwardRef(function(e, o) {
|
|
1905
1907
|
const n = x(11);
|
|
@@ -1910,15 +1912,15 @@ de.forwardRef(function(e, o) {
|
|
|
1910
1912
|
...s
|
|
1911
1913
|
} = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s) : (i = n[1], l = n[2], s = n[3]);
|
|
1912
1914
|
let r;
|
|
1913
|
-
n[4] !== l ? (r = l && /* @__PURE__ */ a(
|
|
1915
|
+
n[4] !== l ? (r = l && /* @__PURE__ */ a(zl, { children: l }), n[4] = l, n[5] = r) : r = n[5];
|
|
1914
1916
|
let c;
|
|
1915
|
-
return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(
|
|
1917
|
+
return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(lt.Label, { ...s, ref: o, children: [
|
|
1916
1918
|
i,
|
|
1917
1919
|
r
|
|
1918
1920
|
] }), n[6] = i, n[7] = o, n[8] = s, n[9] = r, n[10] = c) : c = n[10], c;
|
|
1919
1921
|
});
|
|
1920
|
-
const
|
|
1921
|
-
const t =
|
|
1922
|
+
const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
1923
|
+
const t = Je(), e = t?.numberOfTotalPages === 1, o = (t?.beginNumberOfPagesInSpineItem ?? 0) > 1, n = (t?.endNumberOfPagesInSpineItem ?? 0) > 1, i = (t?.hasChapters ? t?.beginPageIndexInSpineItem : t?.beginAbsolutePageIndex) ?? 0, l = (t?.hasChapters ? t?.endPageIndexInSpineItem : t?.endAbsolutePageIndex) ?? 0, [s = 0, r = 0] = [i, l].sort((u, f) => u - f), c = t?.beginPageIndexInSpineItem !== t?.endPageIndexInSpineItem || t?.beginSpineItemIndex !== t?.endSpineItemIndex, d = t?.hasChapters ? t?.beginNumberOfPagesInSpineItem : t?.numberOfTotalPages;
|
|
1922
1924
|
return {
|
|
1923
1925
|
hasOnlyOnePage: e,
|
|
1924
1926
|
beginPageIndex: i,
|
|
@@ -1930,14 +1932,14 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
1930
1932
|
leftPageIndex: s,
|
|
1931
1933
|
rightPageIndex: r
|
|
1932
1934
|
};
|
|
1933
|
-
},
|
|
1934
|
-
const t = x(24), e =
|
|
1935
|
+
}, Bl = () => {
|
|
1936
|
+
const t = x(24), e = Je(), {
|
|
1935
1937
|
hasOnlyOnePage: o,
|
|
1936
1938
|
leftPageIndex: n,
|
|
1937
1939
|
rightPageIndex: i,
|
|
1938
1940
|
totalApproximatePages: l,
|
|
1939
1941
|
beginAndEndAreDifferent: s
|
|
1940
|
-
} =
|
|
1942
|
+
} = Dt();
|
|
1941
1943
|
let r;
|
|
1942
1944
|
t[0] !== e?.percentageEstimateOfBook ? (r = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), t[0] = e?.percentageEstimateOfBook, t[1] = r) : r = t[1];
|
|
1943
1945
|
const c = r;
|
|
@@ -1949,15 +1951,15 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
1949
1951
|
d = t[3];
|
|
1950
1952
|
const u = d;
|
|
1951
1953
|
let f;
|
|
1952
|
-
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(
|
|
1954
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Pl, { width: 110 }), t[4] = f) : f = t[4];
|
|
1953
1955
|
const h = `${c}%`;
|
|
1954
1956
|
let m;
|
|
1955
1957
|
t[5] !== h ? (m = /* @__PURE__ */ y(ce, { justifyContent: "space-between", children: [
|
|
1956
1958
|
f,
|
|
1957
|
-
/* @__PURE__ */ a(
|
|
1959
|
+
/* @__PURE__ */ a(Dl, { children: h })
|
|
1958
1960
|
] }), t[5] = h, t[6] = m) : m = t[6];
|
|
1959
1961
|
let g;
|
|
1960
|
-
t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(
|
|
1962
|
+
t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(El, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
|
|
1961
1963
|
const p = u ? `Chapter: ${u}` : " ";
|
|
1962
1964
|
let b;
|
|
1963
1965
|
t[10] !== p ? (b = /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: p }), t[10] = p, t[11] = b) : b = t[11];
|
|
@@ -1979,7 +1981,7 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
1979
1981
|
b,
|
|
1980
1982
|
S
|
|
1981
1983
|
] }), t[20] = g, t[21] = b, t[22] = S, t[23] = _) : _ = t[23], _;
|
|
1982
|
-
},
|
|
1984
|
+
}, Sn = N((t) => {
|
|
1983
1985
|
const e = x(12);
|
|
1984
1986
|
let o, n, i;
|
|
1985
1987
|
e[0] !== t ? ({
|
|
@@ -2000,17 +2002,17 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2000
2002
|
_closed: "slide-to-top, fade-out"
|
|
2001
2003
|
}, e[4] = n, e[5] = l, e[6] = s) : (l = e[5], s = e[6]);
|
|
2002
2004
|
let r;
|
|
2003
|
-
return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(
|
|
2004
|
-
}),
|
|
2005
|
-
const t = x(10), o =
|
|
2005
|
+
return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(Ze, { display: "flex", flexDirection: "row", width: "100%", position: "absolute", ...l, animationName: s, animationDuration: "moderate", bgColor: "bg.panel", alignItems: "center", justifyContent: "center", shadow: "md", p: 4, ...i, children: o }), e[7] = o, e[8] = i, e[9] = l, e[10] = s, e[11] = r) : r = e[11], r;
|
|
2006
|
+
}), Fl = () => {
|
|
2007
|
+
const t = x(10), o = Je()?.isUsingSpread, {
|
|
2006
2008
|
beginPageIndex: n,
|
|
2007
2009
|
totalApproximatePages: i
|
|
2008
|
-
} =
|
|
2010
|
+
} = Dt(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
|
|
2009
2011
|
let r;
|
|
2010
2012
|
t[0] !== s ? (r = () => Ke({
|
|
2011
2013
|
default: s || 0
|
|
2012
2014
|
}), t[0] = s, t[1] = r) : r = t[1];
|
|
2013
|
-
const [c, d] =
|
|
2015
|
+
const [c, d] = Kn(r), u = Math.max(0, o ? Math.floor((l - 1) / 2) : l - 1);
|
|
2014
2016
|
let f, h;
|
|
2015
2017
|
t[2] !== s || t[3] !== d ? (f = () => {
|
|
2016
2018
|
d.update(s || 0);
|
|
@@ -2022,8 +2024,8 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2022
2024
|
min: 0,
|
|
2023
2025
|
max: u
|
|
2024
2026
|
}, t[6] = u, t[7] = c, t[8] = d, t[9] = m) : m = t[9], m;
|
|
2025
|
-
},
|
|
2026
|
-
const e = x(21), o = j(), n =
|
|
2027
|
+
}, Ll = (t) => {
|
|
2028
|
+
const e = x(21), o = j(), n = Je(), {
|
|
2027
2029
|
data: i
|
|
2028
2030
|
} = H(() => o?.context, [o]) ?? {};
|
|
2029
2031
|
let l;
|
|
@@ -2033,12 +2035,12 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2033
2035
|
} = l, r = s?.readingDirection === "rtl", c = n?.isUsingSpread, {
|
|
2034
2036
|
totalApproximatePages: d,
|
|
2035
2037
|
isBeginWithinChapter: u
|
|
2036
|
-
} =
|
|
2038
|
+
} = Dt(), f = d === void 0 ? 0 : d, h = u, {
|
|
2037
2039
|
value: m,
|
|
2038
2040
|
valueSignal: g,
|
|
2039
2041
|
min: p,
|
|
2040
2042
|
max: b
|
|
2041
|
-
} =
|
|
2043
|
+
} = Fl();
|
|
2042
2044
|
let S;
|
|
2043
2045
|
e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (S = (R) => {
|
|
2044
2046
|
const [P] = Array.isArray(R) ? R : [R], E = P === void 0 ? 0 : P;
|
|
@@ -2064,9 +2066,9 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2064
2066
|
}
|
|
2065
2067
|
let I;
|
|
2066
2068
|
e[12] !== m ? (I = [m], e[12] = m, e[13] = I) : I = e[13];
|
|
2067
|
-
let
|
|
2068
|
-
return e[14] !== b || e[15] !== p || e[16] !== _ || e[17] !== t || e[18] !== r || e[19] !== I ? (
|
|
2069
|
-
},
|
|
2069
|
+
let k;
|
|
2070
|
+
return e[14] !== b || e[15] !== p || e[16] !== _ || e[17] !== t || e[18] !== r || e[19] !== I ? (k = /* @__PURE__ */ a(bn, { value: I, max: b, min: p, reverse: r, step: 1, onChange: _, ...t }), e[14] = b, e[15] = p, e[16] = _, e[17] = t, e[18] = r, e[19] = I, e[20] = k) : k = e[20], k;
|
|
2071
|
+
}, Nl = N((t) => {
|
|
2070
2072
|
const e = x(109), {
|
|
2071
2073
|
open: o,
|
|
2072
2074
|
onItemClick: n
|
|
@@ -2093,86 +2095,86 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2093
2095
|
data: p
|
|
2094
2096
|
} = H(m, g);
|
|
2095
2097
|
let b;
|
|
2096
|
-
e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(
|
|
2098
|
+
e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(Hl)), e[9] = l?.zoom.state$, e[10] = b) : b = e[10];
|
|
2097
2099
|
let S;
|
|
2098
2100
|
e[11] !== l ? (S = [l], e[11] = l, e[12] = S) : S = e[12];
|
|
2099
2101
|
const {
|
|
2100
2102
|
data: _
|
|
2101
|
-
} = H(b, S), v = _ === "in", C = _ === "out",
|
|
2103
|
+
} = H(b, S), v = _ === "in", C = _ === "out", T = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", k = Ol(), [R, P] = ne(!0);
|
|
2102
2104
|
let E, M;
|
|
2103
2105
|
e[13] !== r ? (E = () => {
|
|
2104
2106
|
if (!i.current)
|
|
2105
2107
|
return;
|
|
2106
|
-
const ht = new ResizeObserver((
|
|
2107
|
-
for (const
|
|
2108
|
-
r.update(
|
|
2108
|
+
const ht = new ResizeObserver((Ct) => {
|
|
2109
|
+
for (const _n of Ct)
|
|
2110
|
+
r.update(_n);
|
|
2109
2111
|
});
|
|
2110
2112
|
return ht.observe(i.current), () => {
|
|
2111
2113
|
ht.disconnect();
|
|
2112
2114
|
};
|
|
2113
2115
|
}, M = [r], e[13] = r, e[14] = E, e[15] = M) : (E = e[14], M = e[15]), oe(E, M);
|
|
2114
|
-
let w;
|
|
2115
|
-
e[16] !== T ? (w = T && /* @__PURE__ */ a(ce, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a(kl, { maxW: 400 }) }), e[16] = T, e[17] = w) : w = e[17];
|
|
2116
2116
|
let A;
|
|
2117
|
-
e[
|
|
2117
|
+
e[16] !== k ? (A = k && /* @__PURE__ */ a(ce, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a($l, { maxW: 400 }) }), e[16] = k, e[17] = A) : A = e[17];
|
|
2118
|
+
let w;
|
|
2119
|
+
e[18] !== l?.navigation ? (w = () => l?.navigation.goToLeftOrTopSpineItem(), e[18] = l?.navigation, e[19] = w) : w = e[19];
|
|
2118
2120
|
const $ = !h?.canGoLeftSpineItem && !h?.canGoTopSpineItem;
|
|
2119
2121
|
let O;
|
|
2120
|
-
e[20] !== I ? (O = I ? /* @__PURE__ */ a(
|
|
2122
|
+
e[20] !== I ? (O = I ? /* @__PURE__ */ a(bo, {}) : /* @__PURE__ */ a(So, {}), e[20] = I, e[21] = O) : O = e[21];
|
|
2121
2123
|
let z;
|
|
2122
|
-
e[22] !==
|
|
2124
|
+
e[22] !== w || e[23] !== $ || e[24] !== O ? (z = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: w, disabled: $, children: O }), e[22] = w, e[23] = $, e[24] = O, e[25] = z) : z = e[25];
|
|
2123
2125
|
let D;
|
|
2124
|
-
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(
|
|
2126
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(Bl, {}), e[26] = D) : D = e[26];
|
|
2125
2127
|
let F;
|
|
2126
2128
|
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ y(ee, { flex: 1, maxW: 400, gap: 2, alignItems: "center", overflow: "auto", px: 4, children: [
|
|
2127
2129
|
D,
|
|
2128
|
-
/* @__PURE__ */ a(
|
|
2130
|
+
/* @__PURE__ */ a(Ll, { style: {
|
|
2129
2131
|
width: "100%",
|
|
2130
2132
|
maxWidth: "300px",
|
|
2131
2133
|
height: "35px"
|
|
2132
2134
|
} })
|
|
2133
2135
|
] }), e[27] = F) : F = e[27];
|
|
2134
|
-
const
|
|
2136
|
+
const Q = !h?.canGoRightSpineItem && !h?.canGoBottomSpineItem;
|
|
2135
2137
|
let V;
|
|
2136
2138
|
e[28] !== l?.navigation ? (V = () => {
|
|
2137
2139
|
l?.navigation.goToRightOrBottomSpineItem();
|
|
2138
2140
|
}, e[28] = l?.navigation, e[29] = V) : V = e[29];
|
|
2139
|
-
let G;
|
|
2140
|
-
e[30] !== I ? (G = I ? /* @__PURE__ */ a(bo, {}) : /* @__PURE__ */ a(So, {}), e[30] = I, e[31] = G) : G = e[31];
|
|
2141
2141
|
let W;
|
|
2142
|
-
e[
|
|
2142
|
+
e[30] !== I ? (W = I ? /* @__PURE__ */ a(_o, {}) : /* @__PURE__ */ a(vo, {}), e[30] = I, e[31] = W) : W = e[31];
|
|
2143
|
+
let G;
|
|
2144
|
+
e[32] !== Q || e[33] !== V || e[34] !== W ? (G = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: Q, onClick: V, children: W }), e[32] = Q, e[33] = V, e[34] = W, e[35] = G) : G = e[35];
|
|
2143
2145
|
let q;
|
|
2144
|
-
e[36] !== z || e[37] !==
|
|
2146
|
+
e[36] !== z || e[37] !== G ? (q = /* @__PURE__ */ y(ce, { flex: 1, alignItems: "center", justifyContent: "center", maxWidth: "100%", px: 4, children: [
|
|
2145
2147
|
z,
|
|
2146
2148
|
F,
|
|
2147
|
-
|
|
2148
|
-
] }), e[36] = z, e[37] =
|
|
2149
|
-
let
|
|
2150
|
-
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2149
|
+
G
|
|
2150
|
+
] }), e[36] = z, e[37] = G, e[38] = q) : q = e[38];
|
|
2151
|
+
let Y;
|
|
2152
|
+
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = (ht) => {
|
|
2151
2153
|
const {
|
|
2152
|
-
open:
|
|
2154
|
+
open: Ct
|
|
2153
2155
|
} = ht;
|
|
2154
|
-
P(
|
|
2155
|
-
}, e[39] =
|
|
2156
|
+
P(Ct);
|
|
2157
|
+
}, e[39] = Y) : Y = e[39];
|
|
2156
2158
|
const K = R ? "rotate(0deg)" : "rotate(180deg)";
|
|
2157
|
-
let
|
|
2158
|
-
e[40] !== K ? (
|
|
2159
|
+
let Z;
|
|
2160
|
+
e[40] !== K ? (Z = /* @__PURE__ */ a(yt.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Ln, { style: {
|
|
2159
2161
|
transform: K
|
|
2160
|
-
} }) }), e[40] = K, e[41] =
|
|
2162
|
+
} }) }), e[40] = K, e[41] = Z) : Z = e[41];
|
|
2161
2163
|
let X;
|
|
2162
2164
|
e[42] !== n ? (X = () => n("help"), e[42] = n, e[43] = X) : X = e[43];
|
|
2163
2165
|
let B;
|
|
2164
|
-
e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(
|
|
2166
|
+
e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(Nn, {}), e[44] = B) : B = e[44];
|
|
2165
2167
|
let se;
|
|
2166
2168
|
e[45] !== X ? (se = /* @__PURE__ */ a(te, { "aria-label": "Help", size: "lg", variant: "ghost", onClick: X, children: B }), e[45] = X, e[46] = se) : se = e[46];
|
|
2167
2169
|
let L;
|
|
2168
2170
|
e[47] !== n ? (L = () => n("toc"), e[47] = n, e[48] = L) : L = e[48];
|
|
2169
2171
|
let re;
|
|
2170
|
-
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(
|
|
2172
|
+
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(Hn, {}), e[49] = re) : re = e[49];
|
|
2171
2173
|
let Se;
|
|
2172
2174
|
e[50] !== L ? (Se = /* @__PURE__ */ a(te, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: L, children: re }), e[50] = L, e[51] = Se) : Se = e[51];
|
|
2173
|
-
let
|
|
2174
|
-
e[52] !== n || e[53] !== l ? (
|
|
2175
|
-
const
|
|
2175
|
+
let we;
|
|
2176
|
+
e[52] !== n || e[53] !== l ? (we = dn(l) && /* @__PURE__ */ a(te, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Vn, {}) }), e[52] = n, e[53] = l, e[54] = we) : we = e[54];
|
|
2177
|
+
const _t = v ? "solid" : "ghost";
|
|
2176
2178
|
let ze;
|
|
2177
2179
|
e[55] !== v || e[56] !== l?.zoom ? (ze = () => {
|
|
2178
2180
|
v ? l?.zoom.exit({
|
|
@@ -2183,26 +2185,26 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2183
2185
|
});
|
|
2184
2186
|
}, e[55] = v, e[56] = l?.zoom, e[57] = ze) : ze = e[57];
|
|
2185
2187
|
let Pe;
|
|
2186
|
-
e[58] !== v ? (Pe = v ? /* @__PURE__ */ a(
|
|
2188
|
+
e[58] !== v ? (Pe = v ? /* @__PURE__ */ a(Wn, {}) : /* @__PURE__ */ a(Gn, {}), e[58] = v, e[59] = Pe) : Pe = e[59];
|
|
2187
2189
|
let Ee;
|
|
2188
|
-
e[60] !==
|
|
2190
|
+
e[60] !== _t || e[61] !== ze || e[62] !== Pe ? (Ee = /* @__PURE__ */ a(te, { "aria-label": "Zoom", size: "lg", variant: _t, onClick: ze, children: Pe }), e[60] = _t, e[61] = ze, e[62] = Pe, e[63] = Ee) : Ee = e[63];
|
|
2189
2191
|
let De;
|
|
2190
2192
|
e[64] !== c ? (De = () => {
|
|
2191
2193
|
c(!0);
|
|
2192
2194
|
}, e[64] = c, e[65] = De) : De = e[65];
|
|
2193
2195
|
let dt;
|
|
2194
|
-
e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dt = /* @__PURE__ */ a(
|
|
2196
|
+
e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dt = /* @__PURE__ */ a(mo, {}), e[66] = dt) : dt = e[66];
|
|
2195
2197
|
let Be;
|
|
2196
2198
|
e[67] !== De ? (Be = /* @__PURE__ */ a(te, { "aria-label": "font size", size: "lg", onClick: De, variant: "ghost", children: dt }), e[67] = De, e[68] = Be) : Be = e[68];
|
|
2197
2199
|
let Fe;
|
|
2198
|
-
e[69] !== n || e[70] !== l ? (Fe = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(
|
|
2200
|
+
e[69] !== n || e[70] !== l ? (Fe = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(go, {}) }), e[69] = n, e[70] = l, e[71] = Fe) : Fe = e[71];
|
|
2199
2201
|
let Le;
|
|
2200
|
-
e[72] !== n || e[73] !== l ? (Le = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(
|
|
2202
|
+
e[72] !== n || e[73] !== l ? (Le = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(st, {}) }), e[72] = n, e[73] = l, e[74] = Le) : Le = e[74];
|
|
2201
2203
|
let Ne;
|
|
2202
|
-
e[75] !==
|
|
2204
|
+
e[75] !== T || e[76] !== d || e[77] !== l ? (Ne = un(l) && /* @__PURE__ */ a(te, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
|
|
2203
2205
|
d(!0);
|
|
2204
|
-
}, disabled: !
|
|
2205
|
-
const
|
|
2206
|
+
}, disabled: !T, children: /* @__PURE__ */ a(fo, {}) }), e[75] = T, e[76] = d, e[77] = l, e[78] = Ne) : Ne = e[78];
|
|
2207
|
+
const vt = C ? "solid" : "ghost";
|
|
2206
2208
|
let He;
|
|
2207
2209
|
e[79] !== C || e[80] !== l?.zoom ? (He = () => {
|
|
2208
2210
|
C ? l?.zoom.exit({
|
|
@@ -2213,16 +2215,16 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2213
2215
|
});
|
|
2214
2216
|
}, e[79] = C, e[80] = l?.zoom, e[81] = He) : He = e[81];
|
|
2215
2217
|
let ft;
|
|
2216
|
-
e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(
|
|
2218
|
+
e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(Un, {}), e[82] = ft) : ft = e[82];
|
|
2217
2219
|
let Ve;
|
|
2218
|
-
e[83] !==
|
|
2220
|
+
e[83] !== vt || e[84] !== He ? (Ve = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: vt, onClick: He, children: ft }), e[83] = vt, e[84] = He, e[85] = Ve) : Ve = e[85];
|
|
2219
2221
|
let We;
|
|
2220
|
-
e[86] !== n || e[87] !== l ? (We =
|
|
2222
|
+
e[86] !== n || e[87] !== l ? (We = fn(l) && /* @__PURE__ */ a(te, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(po, {}) }), e[86] = n, e[87] = l, e[88] = We) : We = e[88];
|
|
2221
2223
|
let Ge;
|
|
2222
|
-
e[89] !== se || e[90] !== Se || e[91] !==
|
|
2224
|
+
e[89] !== se || e[90] !== Se || e[91] !== we || e[92] !== Ee || e[93] !== Be || e[94] !== Fe || e[95] !== Le || e[96] !== Ne || e[97] !== Ve || e[98] !== We ? (Ge = /* @__PURE__ */ a(yt.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ y(le, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
|
|
2223
2225
|
se,
|
|
2224
2226
|
Se,
|
|
2225
|
-
|
|
2227
|
+
we,
|
|
2226
2228
|
Ee,
|
|
2227
2229
|
Be,
|
|
2228
2230
|
Fe,
|
|
@@ -2230,23 +2232,23 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
|
|
|
2230
2232
|
Ne,
|
|
2231
2233
|
Ve,
|
|
2232
2234
|
We
|
|
2233
|
-
] }) }), e[89] = se, e[90] = Se, e[91] =
|
|
2235
|
+
] }) }), e[89] = se, e[90] = Se, e[91] = we, e[92] = Ee, e[93] = Be, e[94] = Fe, e[95] = Le, e[96] = Ne, e[97] = Ve, e[98] = We, e[99] = Ge) : Ge = e[99];
|
|
2234
2236
|
let Ue;
|
|
2235
|
-
e[100] !== R || e[101] !==
|
|
2236
|
-
|
|
2237
|
+
e[100] !== R || e[101] !== Z || e[102] !== Ge ? (Ue = /* @__PURE__ */ a(ce, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(yt.Root, { open: R, flex: 1, onOpenChange: Y, width: "100%", children: [
|
|
2238
|
+
Z,
|
|
2237
2239
|
Ge
|
|
2238
|
-
] }) }), e[100] = R, e[101] =
|
|
2240
|
+
] }) }), e[100] = R, e[101] = Z, e[102] = Ge, e[103] = Ue) : Ue = e[103];
|
|
2239
2241
|
let ut;
|
|
2240
|
-
return e[104] !== o || e[105] !==
|
|
2241
|
-
|
|
2242
|
+
return e[104] !== o || e[105] !== A || e[106] !== q || e[107] !== Ue ? (ut = /* @__PURE__ */ y(Sn, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: i, gap: 4, children: [
|
|
2243
|
+
A,
|
|
2242
2244
|
q,
|
|
2243
2245
|
Ue
|
|
2244
|
-
] }), e[104] = o, e[105] =
|
|
2246
|
+
] }), e[104] = o, e[105] = A, e[106] = q, e[107] = Ue, e[108] = ut) : ut = e[108], ut;
|
|
2245
2247
|
});
|
|
2246
|
-
function
|
|
2248
|
+
function Hl(t) {
|
|
2247
2249
|
return t.currentScale > 1 ? "in" : t.currentScale < 1 ? "out" : void 0;
|
|
2248
2250
|
}
|
|
2249
|
-
const
|
|
2251
|
+
const Vl = () => {
|
|
2250
2252
|
const t = x(5), [e, o] = ne(!1);
|
|
2251
2253
|
let n;
|
|
2252
2254
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = () => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
|
|
@@ -2271,7 +2273,7 @@ const Nl = () => {
|
|
|
2271
2273
|
isFullscreen: e,
|
|
2272
2274
|
onToggleFullscreenClick: i
|
|
2273
2275
|
}, t[3] = e, t[4] = r) : r = t[4], r;
|
|
2274
|
-
},
|
|
2276
|
+
}, Wl = N((t) => {
|
|
2275
2277
|
const e = x(29), {
|
|
2276
2278
|
open: o,
|
|
2277
2279
|
onItemClick: n
|
|
@@ -2285,11 +2287,11 @@ const Nl = () => {
|
|
|
2285
2287
|
} = H(l, s), {
|
|
2286
2288
|
isFullscreen: c,
|
|
2287
2289
|
onToggleFullscreenClick: d
|
|
2288
|
-
} =
|
|
2290
|
+
} = Vl();
|
|
2289
2291
|
let u;
|
|
2290
2292
|
e[4] !== n ? (u = () => n("back"), e[4] = n, e[5] = u) : u = e[5];
|
|
2291
2293
|
let f;
|
|
2292
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(
|
|
2294
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(yo, {}), e[6] = f) : f = e[6];
|
|
2293
2295
|
let h;
|
|
2294
2296
|
e[7] !== u ? (h = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: u, children: f }), e[7] = u, e[8] = h) : h = e[8];
|
|
2295
2297
|
const m = r?.title;
|
|
@@ -2298,11 +2300,11 @@ const Nl = () => {
|
|
|
2298
2300
|
let p;
|
|
2299
2301
|
e[11] !== n ? (p = () => n("more"), e[11] = n, e[12] = p) : p = e[12];
|
|
2300
2302
|
let b;
|
|
2301
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(
|
|
2303
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(Io, {}), e[13] = b) : b = e[13];
|
|
2302
2304
|
let S;
|
|
2303
2305
|
e[14] !== p ? (S = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: p, children: b }), e[14] = p, e[15] = S) : S = e[15];
|
|
2304
2306
|
let _;
|
|
2305
|
-
e[16] !== c ? (_ = c ? /* @__PURE__ */ a(
|
|
2307
|
+
e[16] !== c ? (_ = c ? /* @__PURE__ */ a(uo, {}) : /* @__PURE__ */ a(ho, {}), e[16] = c, e[17] = _) : _ = e[17];
|
|
2306
2308
|
let v;
|
|
2307
2309
|
e[18] !== d || e[19] !== _ ? (v = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: d, children: _ }), e[18] = d, e[19] = _, e[20] = v) : v = e[20];
|
|
2308
2310
|
let C;
|
|
@@ -2310,13 +2312,13 @@ const Nl = () => {
|
|
|
2310
2312
|
S,
|
|
2311
2313
|
v
|
|
2312
2314
|
] }), e[21] = S, e[22] = v, e[23] = C) : C = e[23];
|
|
2313
|
-
let
|
|
2314
|
-
return e[24] !== o || e[25] !== C || e[26] !== h || e[27] !== g ? (
|
|
2315
|
+
let T;
|
|
2316
|
+
return e[24] !== o || e[25] !== C || e[26] !== h || e[27] !== g ? (T = /* @__PURE__ */ y(Sn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
|
|
2315
2317
|
h,
|
|
2316
2318
|
g,
|
|
2317
2319
|
C
|
|
2318
|
-
] }), e[24] = o, e[25] = C, e[26] = h, e[27] = g, e[28] =
|
|
2319
|
-
}),
|
|
2320
|
+
] }), e[24] = o, e[25] = C, e[26] = h, e[27] = g, e[28] = T) : T = e[28], T;
|
|
2321
|
+
}), Bt = () => {
|
|
2320
2322
|
const t = x(4);
|
|
2321
2323
|
let e;
|
|
2322
2324
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["quickMenuOpen", "onQuickMenuOpenChange", "_quickMenuOpen", "_onQuickMenuOpenChange"], t[0] = e) : e = t[0];
|
|
@@ -2328,10 +2330,10 @@ const Nl = () => {
|
|
|
2328
2330
|
} = ie(e), s = o ?? i, r = n ?? l;
|
|
2329
2331
|
let c;
|
|
2330
2332
|
return t[1] !== s || t[2] !== r ? (c = [s, r], t[1] = s, t[2] = r, t[3] = c) : c = t[3], c;
|
|
2331
|
-
},
|
|
2333
|
+
}, Gl = N((t) => {
|
|
2332
2334
|
const e = x(10), {
|
|
2333
2335
|
onItemClick: o
|
|
2334
|
-
} = t, [n] =
|
|
2336
|
+
} = t, [n] = Bt();
|
|
2335
2337
|
let i;
|
|
2336
2338
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["refitMenuOpen", "fontSizeMenuOpen", "selectedHighlight"], e[0] = i) : i = e[0];
|
|
2337
2339
|
const {
|
|
@@ -2340,30 +2342,30 @@ const Nl = () => {
|
|
|
2340
2342
|
selectedHighlight: r
|
|
2341
2343
|
} = ie(i), c = n && !l && !s && !r;
|
|
2342
2344
|
let d;
|
|
2343
|
-
e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(
|
|
2345
|
+
e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(Wl, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = d) : d = e[3];
|
|
2344
2346
|
const u = n && !l && !s;
|
|
2345
2347
|
let f;
|
|
2346
|
-
e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(
|
|
2348
|
+
e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(Nl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = f) : f = e[6];
|
|
2347
2349
|
let h;
|
|
2348
2350
|
return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(ve, { children: [
|
|
2349
2351
|
d,
|
|
2350
2352
|
f
|
|
2351
2353
|
] }), e[7] = d, e[8] = f, e[9] = h) : h = e[9], h;
|
|
2352
|
-
}),
|
|
2353
|
-
const t = x(3), [, e] =
|
|
2354
|
+
}), Ul = () => {
|
|
2355
|
+
const t = x(3), [, e] = Bt(), o = j();
|
|
2354
2356
|
let n;
|
|
2355
|
-
t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(
|
|
2357
|
+
t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(gt(jl), At(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), Ot((l) => {
|
|
2356
2358
|
const [, s, r] = l;
|
|
2357
|
-
e(s || r ? !1 :
|
|
2359
|
+
e(s || r ? !1 : ql);
|
|
2358
2360
|
})), t[0] = e, t[1] = o, t[2] = n) : n = t[2], pe(n);
|
|
2359
2361
|
};
|
|
2360
|
-
function
|
|
2362
|
+
function jl(t) {
|
|
2361
2363
|
return t.type === "tap" && !t.handled;
|
|
2362
2364
|
}
|
|
2363
|
-
function
|
|
2365
|
+
function ql(t) {
|
|
2364
2366
|
return !t;
|
|
2365
2367
|
}
|
|
2366
|
-
const
|
|
2368
|
+
const Kl = de.forwardRef(function(e, o) {
|
|
2367
2369
|
const n = x(21);
|
|
2368
2370
|
let i, l, s, r, c, d;
|
|
2369
2371
|
n[0] !== e ? ({
|
|
@@ -2375,22 +2377,22 @@ const jl = de.forwardRef(function(e, o) {
|
|
|
2375
2377
|
...d
|
|
2376
2378
|
} = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r, n[5] = c, n[6] = d) : (i = n[1], l = n[2], s = n[3], r = n[4], c = n[5], d = n[6]);
|
|
2377
2379
|
let u;
|
|
2378
|
-
n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(
|
|
2380
|
+
n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(et.Label, { children: [
|
|
2379
2381
|
r,
|
|
2380
|
-
/* @__PURE__ */ a(
|
|
2382
|
+
/* @__PURE__ */ a(et.RequiredIndicator, { fallback: c })
|
|
2381
2383
|
] }), n[7] = r, n[8] = c, n[9] = u) : u = n[9];
|
|
2382
2384
|
let f;
|
|
2383
|
-
n[10] !== s ? (f = s && /* @__PURE__ */ a(
|
|
2385
|
+
n[10] !== s ? (f = s && /* @__PURE__ */ a(et.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
|
|
2384
2386
|
let h;
|
|
2385
|
-
n[12] !== l ? (h = l && /* @__PURE__ */ a(
|
|
2387
|
+
n[12] !== l ? (h = l && /* @__PURE__ */ a(et.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
|
|
2386
2388
|
let m;
|
|
2387
|
-
return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(
|
|
2389
|
+
return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(et.Root, { ref: o, ...d, children: [
|
|
2388
2390
|
u,
|
|
2389
2391
|
i,
|
|
2390
2392
|
f,
|
|
2391
2393
|
h
|
|
2392
2394
|
] }), n[14] = i, n[15] = o, n[16] = d, n[17] = u, n[18] = f, n[19] = h, n[20] = m) : m = n[20], m;
|
|
2393
|
-
}),
|
|
2395
|
+
}), Yl = N(() => {
|
|
2394
2396
|
const t = x(39);
|
|
2395
2397
|
let e;
|
|
2396
2398
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["refitMenuOpen", "onRefitMenuOpenChange"], t[0] = e) : e = t[0];
|
|
@@ -2399,7 +2401,7 @@ const jl = de.forwardRef(function(e, o) {
|
|
|
2399
2401
|
onRefitMenuOpenChange: n
|
|
2400
2402
|
} = ie(e), i = j();
|
|
2401
2403
|
let l;
|
|
2402
|
-
t[1] !== i ? (l =
|
|
2404
|
+
t[1] !== i ? (l = un(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
|
|
2403
2405
|
const s = l;
|
|
2404
2406
|
let r;
|
|
2405
2407
|
t[3] !== s?.refit.settings$ ? (r = () => s?.refit.settings$, t[3] = s?.refit.settings$, t[4] = r) : r = t[4];
|
|
@@ -2424,32 +2426,32 @@ const jl = de.forwardRef(function(e, o) {
|
|
|
2424
2426
|
}, t[11] = s?.refit, t[12] = m) : m = t[12];
|
|
2425
2427
|
const g = d?.viewportFit ?? "fit";
|
|
2426
2428
|
let p;
|
|
2427
|
-
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(
|
|
2429
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(ot, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
|
|
2428
2430
|
let b;
|
|
2429
|
-
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(
|
|
2431
|
+
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(ot, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
|
|
2430
2432
|
let S;
|
|
2431
|
-
t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(
|
|
2433
|
+
t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(ot, { value: "fit", children: "Full width (default)" }), t[15] = S) : S = t[15];
|
|
2432
2434
|
let _;
|
|
2433
2435
|
t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ y(ee, { gap: 2, children: [
|
|
2434
2436
|
p,
|
|
2435
2437
|
b,
|
|
2436
2438
|
S,
|
|
2437
|
-
/* @__PURE__ */ a(
|
|
2439
|
+
/* @__PURE__ */ a(ot, { value: "custom", children: "Custom" })
|
|
2438
2440
|
] }), t[16] = _) : _ = t[16];
|
|
2439
2441
|
let v;
|
|
2440
|
-
t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(
|
|
2441
|
-
const C = d?.viewportFit !== "custom",
|
|
2442
|
+
t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(Kl, { label: "Profile", children: /* @__PURE__ */ a(pn, { defaultValue: "fit", onValueChange: m, value: g, children: _ }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
|
|
2443
|
+
const C = d?.viewportFit !== "custom", T = d?.customWidth ?? 60;
|
|
2442
2444
|
let I;
|
|
2443
|
-
t[20] !==
|
|
2444
|
-
let
|
|
2445
|
-
t[22] !== s?.refit ? (
|
|
2445
|
+
t[20] !== T ? (I = [T], t[20] = T, t[21] = I) : I = t[21];
|
|
2446
|
+
let k;
|
|
2447
|
+
t[22] !== s?.refit ? (k = ($) => {
|
|
2446
2448
|
const O = $.value[0] ?? 0;
|
|
2447
2449
|
s?.refit.update({
|
|
2448
2450
|
customWidth: O
|
|
2449
2451
|
});
|
|
2450
|
-
}, t[22] = s?.refit, t[23] =
|
|
2452
|
+
}, t[22] = s?.refit, t[23] = k) : k = t[23];
|
|
2451
2453
|
let R;
|
|
2452
|
-
t[24] !== C || t[25] !== I || t[26] !==
|
|
2454
|
+
t[24] !== C || t[25] !== I || t[26] !== k ? (R = /* @__PURE__ */ a(Pt, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: C, value: I, onValueChange: k }), t[24] = C, t[25] = I, t[26] = k, t[27] = R) : R = t[27];
|
|
2453
2455
|
let P;
|
|
2454
2456
|
t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(xe.Root, { children: [
|
|
2455
2457
|
h,
|
|
@@ -2459,17 +2461,17 @@ const jl = de.forwardRef(function(e, o) {
|
|
|
2459
2461
|
] })
|
|
2460
2462
|
] }) }), t[28] = v, t[29] = R, t[30] = P) : P = t[30];
|
|
2461
2463
|
let E, M;
|
|
2462
|
-
t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(
|
|
2463
|
-
let
|
|
2464
|
-
t[33] !== P ? (
|
|
2464
|
+
t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), M = /* @__PURE__ */ a(Te, {}), t[31] = E, t[32] = M) : (E = t[31], M = t[32]);
|
|
2465
|
+
let A;
|
|
2466
|
+
t[33] !== P ? (A = /* @__PURE__ */ y(Ie, { children: [
|
|
2465
2467
|
f,
|
|
2466
2468
|
P,
|
|
2467
2469
|
E,
|
|
2468
2470
|
M
|
|
2469
|
-
] }), t[33] = P, t[34] =
|
|
2470
|
-
let
|
|
2471
|
-
return t[35] !== o || t[36] !==
|
|
2472
|
-
}),
|
|
2471
|
+
] }), t[33] = P, t[34] = A) : A = t[34];
|
|
2472
|
+
let w;
|
|
2473
|
+
return t[35] !== o || t[36] !== A || t[37] !== u ? (w = /* @__PURE__ */ a(ke, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: A }), t[35] = o, t[36] = A, t[37] = u, t[38] = w) : w = t[38], w;
|
|
2474
|
+
}), Zl = N((t) => {
|
|
2473
2475
|
const e = x(26), {
|
|
2474
2476
|
contextText: o,
|
|
2475
2477
|
startOffset: n,
|
|
@@ -2511,26 +2513,26 @@ const jl = de.forwardRef(function(e, o) {
|
|
|
2511
2513
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
2512
2514
|
textDecoration: "none"
|
|
2513
2515
|
}, e[18] = C) : C = e[18];
|
|
2514
|
-
const
|
|
2516
|
+
const T = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
|
|
2515
2517
|
let I;
|
|
2516
|
-
e[19] !==
|
|
2517
|
-
let
|
|
2518
|
-
return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (
|
|
2518
|
+
e[19] !== T ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style: C, children: T }), e[19] = T, e[20] = I) : I = e[20];
|
|
2519
|
+
let k;
|
|
2520
|
+
return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (k = /* @__PURE__ */ y(Mt, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
|
|
2519
2521
|
v,
|
|
2520
2522
|
I
|
|
2521
|
-
] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] =
|
|
2522
|
-
}),
|
|
2523
|
-
const t = x(13), e =
|
|
2523
|
+
] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] = k) : k = e[25], k;
|
|
2524
|
+
}), Ql = 500, Xl = () => {
|
|
2525
|
+
const t = x(13), e = it(Jl), {
|
|
2524
2526
|
data: o
|
|
2525
2527
|
} = H(e), n = j();
|
|
2526
2528
|
let i;
|
|
2527
|
-
t[0] !== n ? (i =
|
|
2529
|
+
t[0] !== n ? (i = dn(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
|
|
2528
2530
|
const l = i;
|
|
2529
2531
|
let s, r;
|
|
2530
|
-
t[2] !== l || t[3] !== e ? (s = () => e.pipe(
|
|
2532
|
+
t[2] !== l || t[3] !== e ? (s = () => e.pipe(be(), Ce((m) => m === "" || !l ? pt(void 0) : tn(pt({
|
|
2531
2533
|
type: "start",
|
|
2532
2534
|
data: void 0
|
|
2533
|
-
}),
|
|
2535
|
+
}), nn(Ql).pipe(Ce(() => l.search.search(m)), J(es))))), r = [l, e], t[2] = l, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
|
|
2534
2536
|
const {
|
|
2535
2537
|
data: c
|
|
2536
2538
|
} = H(s, r);
|
|
@@ -2545,16 +2547,16 @@ const jl = de.forwardRef(function(e, o) {
|
|
|
2545
2547
|
data: f
|
|
2546
2548
|
}, t[8] = o, t[9] = d, t[10] = u, t[11] = f, t[12] = h) : h = t[12], h;
|
|
2547
2549
|
};
|
|
2548
|
-
function
|
|
2549
|
-
return new
|
|
2550
|
+
function Jl() {
|
|
2551
|
+
return new on("");
|
|
2550
2552
|
}
|
|
2551
|
-
function
|
|
2553
|
+
function es(t) {
|
|
2552
2554
|
return {
|
|
2553
2555
|
type: "end",
|
|
2554
2556
|
data: t
|
|
2555
2557
|
};
|
|
2556
2558
|
}
|
|
2557
|
-
const
|
|
2559
|
+
const ts = N((t) => {
|
|
2558
2560
|
const e = x(31), {
|
|
2559
2561
|
onNavigate: o
|
|
2560
2562
|
} = t, n = j(), {
|
|
@@ -2562,7 +2564,7 @@ const Jl = N((t) => {
|
|
|
2562
2564
|
setValue: l,
|
|
2563
2565
|
status: s,
|
|
2564
2566
|
data: r
|
|
2565
|
-
} =
|
|
2567
|
+
} = Xl();
|
|
2566
2568
|
let c;
|
|
2567
2569
|
e[0] !== l ? (c = (I) => {
|
|
2568
2570
|
l(I.target.value);
|
|
@@ -2581,7 +2583,7 @@ const Jl = N((t) => {
|
|
|
2581
2583
|
data: g
|
|
2582
2584
|
} = H(h, m);
|
|
2583
2585
|
let p;
|
|
2584
|
-
e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a(
|
|
2586
|
+
e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a($n, { placeholder: "Type something...", value: i, onChange: d, flexShrink: 0, variant: "subtle", name: "search", focusRing: "none", focusVisibleRing: "none", outline: "none", focusRingColor: "transparent" }), e[10] = d, e[11] = i, e[12] = p) : p = e[12];
|
|
2585
2587
|
let b;
|
|
2586
2588
|
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
2587
2589
|
overflow: "hidden",
|
|
@@ -2597,7 +2599,7 @@ const Jl = N((t) => {
|
|
|
2597
2599
|
r?.length,
|
|
2598
2600
|
" result(s)"
|
|
2599
2601
|
] }),
|
|
2600
|
-
/* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I,
|
|
2602
|
+
/* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I, k) => /* @__PURE__ */ a(Zl, { contextText: I.meta?.range?.startContainer.parentElement?.textContent ?? "", pageIndex: I.meta?.itemPageIndex, startOffset: I.meta?.range?.startOffset ?? 0, text: i, cfi: I.meta.cfi, onClick: f, absolutePageIndex: I.meta?.absolutePageIndex }, k)) })
|
|
2601
2603
|
] }), e[18] = g, e[19] = r?.length, e[20] = f, e[21] = i, e[22] = s, e[23] = v) : v = e[23];
|
|
2602
2604
|
let C;
|
|
2603
2605
|
e[24] !== S || e[25] !== _ || e[26] !== v ? (C = /* @__PURE__ */ y(ee, { style: b, overflow: "auto", px: 4, flex: 1, children: [
|
|
@@ -2605,12 +2607,12 @@ const Jl = N((t) => {
|
|
|
2605
2607
|
_,
|
|
2606
2608
|
v
|
|
2607
2609
|
] }), e[24] = S, e[25] = _, e[26] = v, e[27] = C) : C = e[27];
|
|
2608
|
-
let
|
|
2609
|
-
return e[28] !== C || e[29] !== p ? (
|
|
2610
|
+
let T;
|
|
2611
|
+
return e[28] !== C || e[29] !== p ? (T = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
|
|
2610
2612
|
p,
|
|
2611
2613
|
C
|
|
2612
|
-
] }), e[28] = C, e[29] = p, e[30] =
|
|
2613
|
-
}),
|
|
2614
|
+
] }), e[28] = C, e[29] = p, e[30] = T) : T = e[30], T;
|
|
2615
|
+
}), ns = N((t) => {
|
|
2614
2616
|
const e = x(14), {
|
|
2615
2617
|
open: o,
|
|
2616
2618
|
setOpen: n,
|
|
@@ -2626,9 +2628,9 @@ const Jl = N((t) => {
|
|
|
2626
2628
|
let r;
|
|
2627
2629
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Search" }) }), e[3] = r) : r = e[3];
|
|
2628
2630
|
let c;
|
|
2629
|
-
e[4] !== i ? (c = /* @__PURE__ */ a(Me, { flex: 1, p: 0, children: /* @__PURE__ */ a(
|
|
2631
|
+
e[4] !== i ? (c = /* @__PURE__ */ a(Me, { flex: 1, p: 0, children: /* @__PURE__ */ a(ts, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
|
|
2630
2632
|
let d, u;
|
|
2631
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(
|
|
2633
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(Te, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
|
|
2632
2634
|
let f;
|
|
2633
2635
|
e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { height: "100%", children: [
|
|
2634
2636
|
r,
|
|
@@ -2637,8 +2639,8 @@ const Jl = N((t) => {
|
|
|
2637
2639
|
u
|
|
2638
2640
|
] }), e[8] = c, e[9] = f) : f = e[9];
|
|
2639
2641
|
let h;
|
|
2640
|
-
return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(
|
|
2641
|
-
}),
|
|
2642
|
+
return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
|
|
2643
|
+
}), os = N((t) => {
|
|
2642
2644
|
const e = x(5), {
|
|
2643
2645
|
onNavigate: o
|
|
2644
2646
|
} = t, n = j(), {
|
|
@@ -2647,7 +2649,7 @@ const Jl = N((t) => {
|
|
|
2647
2649
|
manifest: l
|
|
2648
2650
|
} = i === void 0 ? {} : i, {
|
|
2649
2651
|
nav: s
|
|
2650
|
-
} = l ?? {}, r =
|
|
2652
|
+
} = l ?? {}, r = Je();
|
|
2651
2653
|
s?.toc;
|
|
2652
2654
|
const c = r?.beginAbsolutePageIndex;
|
|
2653
2655
|
let d;
|
|
@@ -2657,25 +2659,25 @@ const Jl = N((t) => {
|
|
|
2657
2659
|
e[0] = r?.beginChapterInfo, e[1] = d;
|
|
2658
2660
|
} else
|
|
2659
2661
|
d = e[1];
|
|
2660
|
-
const u = (_, v, C) => /* @__PURE__ */ y(
|
|
2662
|
+
const u = (_, v, C) => /* @__PURE__ */ y(Rn.Fragment, { children: [
|
|
2661
2663
|
/* @__PURE__ */ a(ge.Item, { pl: 4 * (C + 1), style: {
|
|
2662
2664
|
display: "flex",
|
|
2663
2665
|
alignItems: "center"
|
|
2664
2666
|
}, children: /* @__PURE__ */ y(Mt, { onClick: () => {
|
|
2665
2667
|
o(), n?.navigation.goToUrl(_.href);
|
|
2666
2668
|
}, href: "#", children: [
|
|
2667
|
-
d?.path === _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(
|
|
2668
|
-
d?.path !== _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(
|
|
2669
|
+
d?.path === _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Lt, {}) }),
|
|
2670
|
+
d?.path !== _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Lt, {}) }),
|
|
2669
2671
|
/* @__PURE__ */ y(ee, { gap: 0, children: [
|
|
2670
2672
|
/* @__PURE__ */ a(U, { fontSize: "md", children: _.title || _.path }),
|
|
2671
2673
|
d?.path === _.path && c !== void 0 && /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
|
|
2672
2674
|
] })
|
|
2673
2675
|
] }) }),
|
|
2674
|
-
_.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((
|
|
2676
|
+
_.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((T, I) => u(T, I, C + 1)) })
|
|
2675
2677
|
] }, v), f = ge, h = 3, m = "auto", g = 4, p = 1, b = s?.toc.map((_, v) => u(_, v, 0));
|
|
2676
2678
|
let S;
|
|
2677
2679
|
return e[2] !== f.Root || e[3] !== b ? (S = /* @__PURE__ */ a(f.Root, { gap: h, overflowY: m, py: g, flex: p, children: b }), e[2] = f.Root, e[3] = b, e[4] = S) : S = e[4], S;
|
|
2678
|
-
}),
|
|
2680
|
+
}), is = N((t) => {
|
|
2679
2681
|
const e = x(14), {
|
|
2680
2682
|
open: o,
|
|
2681
2683
|
setOpen: n,
|
|
@@ -2691,9 +2693,9 @@ const Jl = N((t) => {
|
|
|
2691
2693
|
let r;
|
|
2692
2694
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Table of Contents" }) }), e[3] = r) : r = e[3];
|
|
2693
2695
|
let c;
|
|
2694
|
-
e[4] !== i ? (c = /* @__PURE__ */ a(Me, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(
|
|
2696
|
+
e[4] !== i ? (c = /* @__PURE__ */ a(Me, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(os, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
|
|
2695
2697
|
let d, u;
|
|
2696
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(
|
|
2698
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(Te, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
|
|
2697
2699
|
let f;
|
|
2698
2700
|
e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { children: [
|
|
2699
2701
|
r,
|
|
@@ -2702,8 +2704,8 @@ const Jl = N((t) => {
|
|
|
2702
2704
|
u
|
|
2703
2705
|
] }), e[8] = c, e[9] = f) : f = e[9];
|
|
2704
2706
|
let h;
|
|
2705
|
-
return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(
|
|
2706
|
-
}),
|
|
2707
|
+
return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(ke, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
|
|
2708
|
+
}), ls = () => {
|
|
2707
2709
|
const t = x(7), e = j();
|
|
2708
2710
|
let o;
|
|
2709
2711
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["zoomMaxScale"], t[0] = o) : o = t[0];
|
|
@@ -2713,25 +2715,25 @@ const Jl = N((t) => {
|
|
|
2713
2715
|
let i;
|
|
2714
2716
|
t[1] !== e?.gestures.settings || t[2] !== n ? (i = function() {
|
|
2715
2717
|
e?.gestures.settings.update({
|
|
2716
|
-
zoomMaxScale: n ??
|
|
2718
|
+
zoomMaxScale: n ?? rn
|
|
2717
2719
|
});
|
|
2718
2720
|
}, t[1] = e?.gestures.settings, t[2] = n, t[3] = i) : i = t[3];
|
|
2719
2721
|
let l;
|
|
2720
2722
|
t[4] !== e || t[5] !== n ? (l = [e, n], t[4] = e, t[5] = n, t[6] = l) : l = t[6], oe(i, l);
|
|
2721
|
-
},
|
|
2723
|
+
}, Zt = 0.5, Qt = 1, ss = (t, e, o, n) => {
|
|
2722
2724
|
if (t > e && t < e + n)
|
|
2723
2725
|
return e + n;
|
|
2724
2726
|
const i = Math.min(Math.max(t, e), o), l = Math.round((i - e) / n) * n + e;
|
|
2725
2727
|
return Math.round(l * 100) / 100;
|
|
2726
|
-
},
|
|
2728
|
+
}, rs = N(() => {
|
|
2727
2729
|
const t = x(23);
|
|
2728
2730
|
let e;
|
|
2729
2731
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["zoomMaxScale"], t[0] = e) : e = t[0];
|
|
2730
2732
|
const {
|
|
2731
2733
|
zoomMaxScale: o
|
|
2732
|
-
} = ie(e), n = o === void 0 ?
|
|
2734
|
+
} = ie(e), n = o === void 0 ? rn : o, i = j();
|
|
2733
2735
|
let l;
|
|
2734
|
-
t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(
|
|
2736
|
+
t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(as), en(100, oo, {
|
|
2735
2737
|
leading: !0,
|
|
2736
2738
|
trailing: !0
|
|
2737
2739
|
})), t[1] = i?.zoom.state$, t[2] = l) : l = t[2];
|
|
@@ -2741,47 +2743,47 @@ const Jl = N((t) => {
|
|
|
2741
2743
|
data: r
|
|
2742
2744
|
} = H(l, s), c = r === void 0 ? 1 : r;
|
|
2743
2745
|
let d;
|
|
2744
|
-
t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(
|
|
2746
|
+
t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(cs)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
|
|
2745
2747
|
let u;
|
|
2746
2748
|
t[7] !== i ? (u = [i], t[7] = i, t[8] = u) : u = t[8];
|
|
2747
2749
|
const {
|
|
2748
2750
|
data: f
|
|
2749
2751
|
} = H(d, u), h = f === void 0 ? !1 : f;
|
|
2750
2752
|
let m;
|
|
2751
|
-
t[9] !== n || t[10] !== c ? (m =
|
|
2753
|
+
t[9] !== n || t[10] !== c ? (m = ss(c, Qt, n, Zt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
|
|
2752
2754
|
const g = m, p = h && c > 1;
|
|
2753
2755
|
let b;
|
|
2754
2756
|
t[12] !== g ? (b = [g], t[12] = g, t[13] = b) : b = t[13];
|
|
2755
2757
|
let S;
|
|
2756
2758
|
t[14] !== i?.zoom ? (S = (C) => {
|
|
2757
|
-
const
|
|
2758
|
-
|
|
2759
|
+
const T = C.value?.[0] ?? 1;
|
|
2760
|
+
T === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(T, {
|
|
2759
2761
|
constrain: "within-viewport"
|
|
2760
2762
|
});
|
|
2761
2763
|
}, t[14] = i?.zoom, t[15] = S) : S = t[15];
|
|
2762
2764
|
let _;
|
|
2763
|
-
t[16] !== b || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ a(
|
|
2765
|
+
t[16] !== b || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ a(Pt, { value: b, min: Qt, max: n, step: Zt, minWidth: 200, onValueChange: S }), t[16] = b, t[17] = S, t[18] = n, t[19] = _) : _ = t[19];
|
|
2764
2766
|
let v;
|
|
2765
|
-
return t[20] !== _ || t[21] !== p ? (v = /* @__PURE__ */ a(
|
|
2767
|
+
return t[20] !== _ || t[21] !== p ? (v = /* @__PURE__ */ a(cn, { present: p, children: _ }), t[20] = _, t[21] = p, t[22] = v) : v = t[22], v;
|
|
2766
2768
|
});
|
|
2767
|
-
function
|
|
2769
|
+
function as(t) {
|
|
2768
2770
|
return t.currentScale;
|
|
2769
2771
|
}
|
|
2770
|
-
function
|
|
2772
|
+
function cs(t) {
|
|
2771
2773
|
return t.isZooming;
|
|
2772
2774
|
}
|
|
2773
|
-
const
|
|
2775
|
+
const ds = {
|
|
2774
2776
|
_open: "fade-in",
|
|
2775
2777
|
_closed: "fade-out"
|
|
2776
|
-
},
|
|
2778
|
+
}, fs = N(() => (ei(), null)), us = N(() => {
|
|
2777
2779
|
const t = x(1);
|
|
2778
|
-
|
|
2780
|
+
ls(), xl(), Il(), Ul(), ti(), ni();
|
|
2779
2781
|
let e;
|
|
2780
2782
|
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(ve, { children: [
|
|
2781
|
-
/* @__PURE__ */ a(
|
|
2782
|
-
/* @__PURE__ */ a(
|
|
2783
|
+
/* @__PURE__ */ a(Wi, {}),
|
|
2784
|
+
/* @__PURE__ */ a(fs, {})
|
|
2783
2785
|
] }), t[0] = e) : e = t[0], e;
|
|
2784
|
-
}),
|
|
2786
|
+
}), hs = N((t) => {
|
|
2785
2787
|
const e = x(47);
|
|
2786
2788
|
let o, n;
|
|
2787
2789
|
e[0] !== t ? ({
|
|
@@ -2793,70 +2795,70 @@ const as = {
|
|
|
2793
2795
|
const {
|
|
2794
2796
|
enableFloatingTime: l,
|
|
2795
2797
|
onItemClick: s
|
|
2796
|
-
} = ie(i), [r, c] = ne(!1), [d, u] = ne(!1), [f, h] = ne(!1), [m, g] = ne(void 0), [p, b] = ne(!1), [S, _] =
|
|
2798
|
+
} = ie(i), [r, c] = ne(!1), [d, u] = ne(!1), [f, h] = ne(!1), [m, g] = ne(void 0), [p, b] = ne(!1), [S, _] = Bt();
|
|
2797
2799
|
let v;
|
|
2798
2800
|
e[4] !== _ ? (v = () => {
|
|
2799
2801
|
c(!1), u(!1), h(!1), g(void 0), _(!1), b(!1);
|
|
2800
2802
|
}, e[4] = _, e[5] = v) : v = e[5];
|
|
2801
2803
|
const C = v;
|
|
2802
|
-
let k;
|
|
2803
|
-
e[6] !== s ? (k = (B) => {
|
|
2804
|
-
B === "annotations" ? g("annotations") : B === "search" ? h(!0) : B === "help" ? u(!0) : B === "toc" ? c(!0) : B === "bookmarks" ? g("bookmarks") : B === "gallery" && b(!0), s?.(B);
|
|
2805
|
-
}, e[6] = s, e[7] = k) : k = e[7];
|
|
2806
|
-
const I = k;
|
|
2807
2804
|
let T;
|
|
2808
|
-
e[
|
|
2805
|
+
e[6] !== s ? (T = (B) => {
|
|
2806
|
+
B === "annotations" ? g("annotations") : B === "search" ? h(!0) : B === "help" ? u(!0) : B === "toc" ? c(!0) : B === "bookmarks" ? g("bookmarks") : B === "gallery" && b(!0), s?.(B);
|
|
2807
|
+
}, e[6] = s, e[7] = T) : T = e[7];
|
|
2808
|
+
const I = T;
|
|
2809
|
+
let k;
|
|
2810
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(us, {}), e[8] = k) : k = e[8];
|
|
2809
2811
|
let R, P, E;
|
|
2810
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(
|
|
2812
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(ki, { children: /* @__PURE__ */ a(Zo, {}) }), P = /* @__PURE__ */ a(il, {}), E = /* @__PURE__ */ a(Cl, {}), e[9] = R, e[10] = P, e[11] = E) : (R = e[9], P = e[10], E = e[11]);
|
|
2811
2813
|
let M;
|
|
2812
|
-
e[12] !== p ? (M = /* @__PURE__ */ a(
|
|
2813
|
-
let w;
|
|
2814
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(ql, {}), e[14] = w) : w = e[14];
|
|
2814
|
+
e[12] !== p ? (M = /* @__PURE__ */ a(Qi, { open: p, setOpen: b }), e[12] = p, e[13] = M) : M = e[13];
|
|
2815
2815
|
let A;
|
|
2816
|
-
e[
|
|
2816
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(Yl, {}), e[14] = A) : A = e[14];
|
|
2817
|
+
let w;
|
|
2818
|
+
e[15] !== I ? (w = /* @__PURE__ */ a(Gl, { onItemClick: I }), e[15] = I, e[16] = w) : w = e[16];
|
|
2817
2819
|
let $, O, z, D;
|
|
2818
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(
|
|
2820
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(rs, {}), O = /* @__PURE__ */ a(Ro, {}), z = /* @__PURE__ */ a(Do, {}), D = /* @__PURE__ */ a(Hi, {}), e[17] = $, e[18] = O, e[19] = z, e[20] = D) : ($ = e[17], O = e[18], z = e[19], D = e[20]);
|
|
2819
2821
|
let F;
|
|
2820
|
-
e[21] !== d ? (F = /* @__PURE__ */ a(
|
|
2821
|
-
let
|
|
2822
|
-
e[23] !== r || e[24] !== C ? (
|
|
2822
|
+
e[21] !== d ? (F = /* @__PURE__ */ a(el, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
|
|
2823
|
+
let Q;
|
|
2824
|
+
e[23] !== r || e[24] !== C ? (Q = /* @__PURE__ */ a(is, { open: r, setOpen: c, onNavigate: C }), e[23] = r, e[24] = C, e[25] = Q) : Q = e[25];
|
|
2823
2825
|
let V;
|
|
2824
|
-
e[26] !== f || e[27] !== C ? (V = /* @__PURE__ */ a(
|
|
2825
|
-
let G;
|
|
2826
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (B) => g(B ? "annotations" : void 0), e[29] = G) : G = e[29];
|
|
2826
|
+
e[26] !== f || e[27] !== C ? (V = /* @__PURE__ */ a(ns, { open: f, setOpen: h, onNavigate: C }), e[26] = f, e[27] = C, e[28] = V) : V = e[28];
|
|
2827
2827
|
let W;
|
|
2828
|
-
e[
|
|
2828
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (B) => g(B ? "annotations" : void 0), e[29] = W) : W = e[29];
|
|
2829
|
+
let G;
|
|
2830
|
+
e[30] !== m || e[31] !== C ? (G = /* @__PURE__ */ a(jo, { openWith: m, setOpen: W, onNavigate: C }), e[30] = m, e[31] = C, e[32] = G) : G = e[32];
|
|
2829
2831
|
const q = l || S;
|
|
2830
|
-
let
|
|
2831
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2832
|
+
let Y;
|
|
2833
|
+
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(rl, {}), e[33] = Y) : Y = e[33];
|
|
2832
2834
|
let K;
|
|
2833
|
-
e[34] !== q ? (K = /* @__PURE__ */ a(
|
|
2834
|
-
let
|
|
2835
|
-
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2835
|
+
e[34] !== q ? (K = /* @__PURE__ */ a(Ze, { present: q, animationName: ds, animationDuration: "slow", overflow: "hidden", children: Y }), e[34] = q, e[35] = K) : K = e[35];
|
|
2836
|
+
let Z;
|
|
2837
|
+
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(Ri, {}), e[36] = Z) : Z = e[36];
|
|
2836
2838
|
let X;
|
|
2837
|
-
return e[37] !== o || e[38] !== n || e[39] !==
|
|
2838
|
-
|
|
2839
|
+
return e[37] !== o || e[38] !== n || e[39] !== w || e[40] !== F || e[41] !== Q || e[42] !== V || e[43] !== G || e[44] !== K || e[45] !== M ? (X = /* @__PURE__ */ y(ve, { children: [
|
|
2840
|
+
k,
|
|
2839
2841
|
/* @__PURE__ */ y(le, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
|
|
2840
2842
|
o,
|
|
2841
2843
|
R,
|
|
2842
2844
|
P,
|
|
2843
2845
|
E,
|
|
2844
2846
|
M,
|
|
2845
|
-
w,
|
|
2846
2847
|
A,
|
|
2848
|
+
w,
|
|
2847
2849
|
$,
|
|
2848
2850
|
O,
|
|
2849
2851
|
z,
|
|
2850
2852
|
D,
|
|
2851
2853
|
F,
|
|
2852
|
-
|
|
2854
|
+
Q,
|
|
2853
2855
|
V,
|
|
2854
|
-
|
|
2856
|
+
G,
|
|
2855
2857
|
K,
|
|
2856
|
-
|
|
2858
|
+
Z
|
|
2857
2859
|
] })
|
|
2858
|
-
] }), e[37] = o, e[38] = n, e[39] =
|
|
2859
|
-
}),
|
|
2860
|
+
] }), e[37] = o, e[38] = n, e[39] = w, e[40] = F, e[41] = Q, e[42] = V, e[43] = G, e[44] = K, e[45] = M, e[46] = X) : X = e[46], X;
|
|
2861
|
+
}), Ps = N((t) => {
|
|
2860
2862
|
const e = x(16);
|
|
2861
2863
|
let o, n, i;
|
|
2862
2864
|
e[0] !== t ? ({
|
|
@@ -2878,13 +2880,13 @@ const as = {
|
|
|
2878
2880
|
e[8] !== c ? (d = c === void 0 ? {} : c, e[8] = c, e[9] = d) : d = e[9];
|
|
2879
2881
|
const u = d;
|
|
2880
2882
|
let f;
|
|
2881
|
-
e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(
|
|
2883
|
+
e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(hs, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
|
|
2882
2884
|
let h;
|
|
2883
|
-
return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(
|
|
2885
|
+
return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(Ai, { ...n, children: f }), e[13] = n, e[14] = f, e[15] = h) : h = e[15], h;
|
|
2884
2886
|
});
|
|
2885
2887
|
export {
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2888
|
+
To as BOOKMARK_AREA_DATA_ATTRIBUTE,
|
|
2889
|
+
rn as MAX_ZOOM_SCALE,
|
|
2890
|
+
Ps as ReactReader
|
|
2889
2891
|
};
|
|
2890
2892
|
//# sourceMappingURL=index.js.map
|