@prose-reader/react-reader 1.291.0 → 1.293.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/index.js CHANGED
@@ -1,32 +1,32 @@
1
- import { jsx as a, jsxs as y, Fragment as _e } from "react/jsx-runtime";
2
- import { c as x } from "react/compiler-runtime";
3
- import { Presence as rt, Button as fe, IconButton as ee, Drawer as ue, Portal as mt, Box as he, Stack as J, Text as q, Textarea as Sn, Dialog as re, List as ge, Link as Rt, Tabs as me, useBreakpointValue as _n, createToaster as vn, Toaster as Cn, Toast as Ue, Spinner as xn, RadioGroup as et, Slider as de, HStack as ae, For as yn, Fieldset as Ce, Heading as Ct, Kbd as Dt, chakra as kn, Popover as qe, Progress as ot, Collapsible as xt, Field as Xe, Input as Tn } from "@chakra-ui/react";
4
- import * as ce from "react";
5
- import In, { createContext as $n, useContext as Yt, memo as L, useState as ne, useEffect as ie, useRef as Se, useLayoutEffect as Rn } from "react";
1
+ import { jsx as a, jsxs as y, Fragment as ve } from "react/jsx-runtime";
2
+ import { c as C } from "react/compiler-runtime";
3
+ import { Presence as Ye, Button as ue, IconButton as te, Drawer as he, Portal as pt, Box as le, Stack as ee, Text as U, Textarea as _n, Dialog as ae, List as ge, Link as Mt, Tabs as me, useBreakpointValue as vn, createToaster as xn, Toaster as Cn, Toast as je, Spinner as yn, RadioGroup as tt, Slider as fe, HStack as ce, For as In, Fieldset as Ce, Heading as yt, Kbd as Bt, chakra as kn, Popover as qe, Progress as it, Collapsible as It, Field as Je, Input as Tn } from "@chakra-ui/react";
4
+ import * as de from "react";
5
+ import $n, { createContext as Rn, useContext as Yt, memo as N, useState as ne, useEffect as oe, useRef as _e, useLayoutEffect as Mn } from "react";
6
6
  import { FaEdit as On } from "react-icons/fa";
7
- import { LuNotebookPen as it, LuX as Mn, LuBookmark as zn, LuCheck as An, LuArrowBigRight as wn, LuArrowBigLeft as Pn, LuPause as En, LuPlay as Dn, LuChevronDown as Bn, LuCircleHelp as Fn, LuTableOfContents as Ln, LuSearch as Nn, LuZoomOut as Hn, LuZoomIn as Vn, LuGalleryHorizontal as Wn, LuCircleCheck as Bt } from "react-icons/lu";
8
- import { signal as je, useObserve as N, useSignalValue as kt, useSubscribe as pe, isDefined as Zt, useConstant as nt, useMemoCompare as Gn, useLiveRef as Un, useSignalState as qn } from "reactjrx";
9
- import { Subject as jn, EMPTY as Tt, switchMap as ve, map as te, startWith as Qt, tap as gt, filter as lt, of as It, NEVER as pt, withLatestFrom as Ot, distinctUntilChanged as Ye, combineLatest as Kt, throttleTime as Xt, first as Jt, mergeMap as Yn, Observable as Zn, skip as Qn, merge as en, timer as tn, finalize as Kn, BehaviorSubject as nn, animationFrameScheduler as Xn } from "rxjs";
10
- import { pick as Jn, watchKeys as eo, isShallowEqual as on, observeIntersection as to, isHtmlTagElement as no } from "@prose-reader/core";
11
- import { createPortal as Mt } from "react-dom";
12
- import { isShallowEqual as oo } from "@prose-reader/shared";
13
- import { BiFontSize as io } from "react-icons/bi";
14
- import { BsBookmarks as lo } from "react-icons/bs";
15
- import { MdOutlineFitScreen as so, MdFullscreenExit as ro, MdFullscreen as ao } from "react-icons/md";
16
- import { RiGalleryView2 as co } from "react-icons/ri";
17
- import { RxDoubleArrowUp as fo, RxDoubleArrowLeft as uo, RxDoubleArrowDown as ho, RxDoubleArrowRight as mo } from "react-icons/rx";
18
- import go from "rc-slider";
7
+ import { LuNotebookPen as lt, LuX as wn, LuBookmark as An, LuCheck as zn, LuArrowBigRight as Pn, LuArrowBigLeft as En, LuPause as Dn, LuPlay as Bn, LuChevronDown as Fn, LuCircleHelp as Ln, LuTableOfContents as Nn, LuSearch as Hn, LuZoomOut as Vn, LuZoomIn as Wn, LuGalleryHorizontal as Gn, LuCircleCheck as Ft } from "react-icons/lu";
8
+ import { signal as Ke, useObserve as H, useSignalValue as Tt, useSubscribe as pe, isDefined as Zt, useConstant as ot, useMemoCompare as Un, useLiveRef as jn, useSignalState as qn } from "reactjrx";
9
+ import { Subject as Kn, EMPTY as $t, switchMap as be, map as J, startWith as Qt, tap as bt, filter as st, of as gt, NEVER as at, withLatestFrom as Ot, distinctUntilChanged as xe, combineLatest as St, throttleTime as Xt, first as Jt, debounceTime as Yn, shareReplay as Zn, mergeMap as Qn, Observable as Xn, skip as Jn, merge as en, timer as tn, finalize as eo, BehaviorSubject as nn, animationFrameScheduler as to } from "rxjs";
10
+ import { pick as no, watchKeys as on, isShallowEqual as ln, observeIntersection as oo, shouldUseComputedSpreadModeForViewport as io, isHtmlTagElement as lo } from "@prose-reader/core";
11
+ import { createPortal as wt } from "react-dom";
12
+ import { isShallowEqual as so } from "@prose-reader/shared";
13
+ import { MdScreenRotation as ro, MdOutlineFitScreen as ao, MdFullscreenExit as co, MdFullscreen as fo } from "react-icons/md";
14
+ import { BiFontSize as uo } from "react-icons/bi";
15
+ import { BsBookmarks as ho } from "react-icons/bs";
16
+ import { RiGalleryView2 as mo } from "react-icons/ri";
17
+ import { RxDoubleArrowUp as go, RxDoubleArrowLeft as po, RxDoubleArrowDown as bo, RxDoubleArrowRight as So } from "react-icons/rx";
18
+ import _o from "rc-slider";
19
19
  import "rc-slider/assets/index.css";
20
- import { HiOutlineInformationCircle as po } from "react-icons/hi";
21
- import { IoIosArrowBack as bo, IoMdMore as So } from "react-icons/io";
22
- const _o = "data-bookmark-area", ln = 5, sn = () => ({
20
+ import { HiOutlineInformationCircle as vo } from "react-icons/hi";
21
+ import { IoIosArrowBack as xo, IoMdMore as Co } from "react-icons/io";
22
+ const yo = "data-bookmark-area", sn = 5, rn = () => ({
23
23
  _quickMenuOpen: !1,
24
24
  _onQuickMenuOpenChange: (t) => t,
25
25
  reader: void 0,
26
- quickMenuBottomBarBoundingBoxSignal: je({
26
+ quickMenuBottomBarBoundingBoxSignal: Ke({
27
27
  default: void 0
28
28
  }),
29
- notificationsSubject: new jn(),
29
+ notificationsSubject: new Kn(),
30
30
  refitMenuOpen: !1,
31
31
  onRefitMenuOpenChange: () => {
32
32
  },
@@ -38,23 +38,23 @@ const _o = "data-bookmark-area", ln = 5, sn = () => ({
38
38
  uncontrolledFontSize: 1,
39
39
  enableFloatingProgress: !0,
40
40
  selectedHighlight: void 0
41
- }), zt = $n(je({
42
- default: sn()
43
- })), oe = (t) => {
44
- const e = x(9), o = Yt(zt);
41
+ }), At = Rn(Ke({
42
+ default: rn()
43
+ })), ie = (t) => {
44
+ const e = C(9), o = Yt(At);
45
45
  let n;
46
- e[0] !== o || e[1] !== t ? (n = () => o.pipe(eo(t)), e[0] = o, e[1] = t, e[2] = n) : n = e[2];
46
+ e[0] !== o || e[1] !== t ? (n = () => o.pipe(on(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 = Jn(o.value, t), e[3] = o.value, e[4] = t, e[5] = i) : i = e[5];
48
+ e[3] !== o.value || e[4] !== t ? (i = no(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: on,
51
+ compareFn: ln,
52
52
  defaultValue: i
53
53
  }, e[6] = i, e[7] = l) : l = e[7];
54
54
  let s;
55
- return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], N(n, l, s).data;
56
- }, Ze = () => Yt(zt), vo = 24, rn = L((t) => {
57
- const e = x(9);
55
+ return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], H(n, l, s).data;
56
+ }, Ze = () => Yt(At), Io = 24, an = N((t) => {
57
+ const e = C(9);
58
58
  let o, n;
59
59
  e[0] !== t ? ({
60
60
  children: o,
@@ -64,7 +64,7 @@ const _o = "data-bookmark-area", ln = 5, sn = () => ({
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
- } = oe(i), r = kt(l)?.borderBoxSize?.[0]?.blockSize || vo;
67
+ } = ie(i), r = Tt(l)?.borderBoxSize?.[0]?.blockSize || Io;
68
68
  let c;
69
69
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
70
70
  _open: "fade-in",
@@ -72,28 +72,28 @@ const _o = "data-bookmark-area", ln = 5, sn = () => ({
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(rt, { 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
- }), Z = () => {
77
- const t = x(1);
75
+ return e[5] !== o || e[6] !== n || e[7] !== d ? (u = /* @__PURE__ */ a(Ye, { 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
+ }), j = () => {
77
+ const t = C(1);
78
78
  let e;
79
79
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["reader"], t[0] = e) : e = t[0];
80
80
  const {
81
81
  reader: o
82
- } = oe(e);
82
+ } = ie(e);
83
83
  return o;
84
- }, an = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, Co = (t) => !!t && "__PROSE_READER_ENHANCER_AUDIO" in t, st = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, cn = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, dn = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, at = () => {
85
- const t = x(2), e = Z();
84
+ }, cn = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, ko = (t) => !!t && "__PROSE_READER_ENHANCER_AUDIO" in t, rt = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, dn = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, fn = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, ct = () => {
85
+ const t = C(2), e = j();
86
86
  let o;
87
- return t[0] !== e ? (o = st(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
88
- }, xo = () => {
89
- const t = x(16), e = at(), o = Ze();
87
+ return t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
88
+ }, To = () => {
89
+ const t = C(16), e = ct(), o = Ze();
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
- } = oe(n);
94
+ } = ie(n);
95
95
  let l;
96
- t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(ve(() => e.selection.selectionEnd$.pipe(te(yo), Qt(!0)))) ?? Tt, t[1] = e, t[2] = l) : l = t[2];
96
+ t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(be(() => e.selection.selectionEnd$.pipe(J($o), Qt(!0)))) ?? $t, 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
@@ -102,7 +102,7 @@ const _o = "data-bookmark-area", ln = 5, sn = () => ({
102
102
  t[4] !== e ? (r = [e], t[4] = e, t[5] = r) : r = t[5];
103
103
  const {
104
104
  data: c
105
- } = N(l, s, r), d = c && !i;
105
+ } = H(l, s, r), d = c && !i;
106
106
  let u;
107
107
  t[6] !== o || t[7] !== e?.selection ? (u = () => {
108
108
  const p = e?.selection.getSelection();
@@ -116,32 +116,32 @@ const _o = "data-bookmark-area", ln = 5, sn = () => ({
116
116
  let f;
117
117
  t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(On, {}), t[9] = f) : f = t[9];
118
118
  let h;
119
- t[10] !== u ? (h = /* @__PURE__ */ y(fe, { variant: "outline", size: "sm", onClick: u, children: [
119
+ t[10] !== u ? (h = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", onClick: u, children: [
120
120
  f,
121
121
  "Annotate"
122
122
  ] }), t[10] = u, t[11] = h) : h = t[11];
123
123
  let m;
124
- t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(fe, { variant: "outline", size: "sm", disabled: !0, children: [
125
- /* @__PURE__ */ a(it, {}),
124
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", disabled: !0, children: [
125
+ /* @__PURE__ */ a(lt, {}),
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(rn, { present: d, children: [
129
+ return t[13] !== d || t[14] !== h ? (g = /* @__PURE__ */ y(an, { 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 yo() {
134
+ function $o() {
135
135
  return !1;
136
136
  }
137
- const ko = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, fn = ce.forwardRef(function(e, o) {
138
- const n = x(6);
137
+ const Ro = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, un = de.forwardRef(function(e, o) {
138
+ const n = C(6);
139
139
  let i;
140
- n[0] !== e.children ? (i = e.children ?? /* @__PURE__ */ a(Mn, {}), n[0] = e.children, n[1] = i) : i = n[1];
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
- return n[2] !== e || n[3] !== o || n[4] !== i ? (l = /* @__PURE__ */ a(ee, { 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
- }), To = ce.forwardRef(function(e, o) {
144
- const n = x(17);
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
+ }), Mo = de.forwardRef(function(e, o) {
144
+ const n = C(17);
145
145
  let i, l, s, r, c;
146
146
  n[0] !== e ? ({
147
147
  children: i,
@@ -152,27 +152,27 @@ const ko = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, fn = ce.for
152
152
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r, n[5] = c) : (i = n[1], l = n[2], s = n[3], r = n[4], c = n[5]);
153
153
  const u = !(c === void 0 ? !0 : c);
154
154
  let f;
155
- n[6] !== i || n[7] !== o || n[8] !== r ? (f = /* @__PURE__ */ a(ue.Content, { ref: o, ...r, asChild: !1, children: i }), n[6] = i, n[7] = o, n[8] = r, n[9] = f) : f = n[9];
155
+ n[6] !== i || n[7] !== o || n[8] !== r ? (f = /* @__PURE__ */ a(he.Content, { ref: o, ...r, asChild: !1, children: i }), n[6] = i, n[7] = o, n[8] = r, n[9] = f) : f = n[9];
156
156
  let h;
157
- n[10] !== l || n[11] !== f ? (h = /* @__PURE__ */ a(ue.Positioner, { padding: l, children: f }), n[10] = l, n[11] = f, n[12] = h) : h = n[12];
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(mt, { disabled: u, container: s, children: h }), n[13] = s, n[14] = u, n[15] = h, n[16] = m) : m = n[16], m;
159
+ return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ a(pt, { 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
- ce.forwardRef(function(e, o) {
162
- const n = x(5);
161
+ de.forwardRef(function(e, o) {
162
+ const n = C(5);
163
163
  let i;
164
- n[0] !== o ? (i = /* @__PURE__ */ a(fn, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
164
+ n[0] !== o ? (i = /* @__PURE__ */ a(un, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
165
165
  let l;
166
- return n[2] !== e || n[3] !== i ? (l = /* @__PURE__ */ a(ue.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;
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
- ue.Trigger;
169
- const Io = ue.Root;
170
- ue.Footer;
171
- const $o = ue.Header, Ro = ue.Body, Oo = ue.Backdrop;
172
- ue.Description;
173
- ue.Title;
174
- ue.ActionTrigger;
175
- const yt = [
168
+ he.Trigger;
169
+ const Oo = he.Root;
170
+ he.Footer;
171
+ const wo = he.Header, Ao = he.Body, zo = he.Backdrop;
172
+ he.Description;
173
+ he.Title;
174
+ he.ActionTrigger;
175
+ const kt = [
176
176
  "rgba(216, 191, 216, 1)",
177
177
  // Light purple
178
178
  "rgba(255, 225, 125, 1)",
@@ -183,8 +183,8 @@ const yt = [
183
183
  // Light blue
184
184
  "rgba(255, 182, 193, 1)"
185
185
  // Light pink
186
- ], Mo = L(() => {
187
- const t = x(58), e = at();
186
+ ], Po = N(() => {
187
+ const t = C(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];
190
190
  const {
@@ -192,116 +192,116 @@ const yt = [
192
192
  onAnnotationCreate: i,
193
193
  onAnnotationUpdate: l,
194
194
  onAnnotationDelete: s
195
- } = oe(o), r = Ze(), {
195
+ } = ie(o), r = Ze(), {
196
196
  highlight: c,
197
197
  selection: d
198
- } = n ?? {}, [u, f] = ne(yt[0]), [h, m] = ne(""), g = !!(d ?? c);
198
+ } = n ?? {}, [u, f] = ne(kt[0]), [h, m] = ne(""), g = !!(d ?? c);
199
199
  let p;
200
200
  t[1] !== r ? (p = () => {
201
- r.update(zo);
201
+ r.update(Eo);
202
202
  }, t[1] = r, t[2] = p) : p = t[2];
203
203
  const b = p;
204
204
  let S;
205
- t[3] !== b ? (S = (Y) => {
206
- Y.open || b();
205
+ t[3] !== b ? (S = (B) => {
206
+ B.open || b();
207
207
  }, t[3] = b, t[4] = S) : S = t[4];
208
- const _ = S, v = c?.highlightColor, C = c?.notes;
209
- let T;
210
- t[5] !== m ? (T = () => {
211
- m("");
212
- }, t[5] = m, t[6] = T) : T = t[6];
208
+ const _ = S, v = c?.highlightColor, x = c?.notes;
213
209
  let k;
214
- t[7] !== g ? (k = [g], t[7] = g, t[8] = k) : k = t[8], ie(T, k), ie(() => {
215
- m(C ?? "");
216
- }, [C]), ie(() => {
217
- f(v || yt[0]);
218
- }, [v, g]);
210
+ t[5] !== m ? (k = () => {
211
+ m("");
212
+ }, t[5] = m, t[6] = k) : k = t[6];
219
213
  let I;
220
- t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (I = function() {
221
- return e?.annotations.highlightTap$.pipe(gt((le) => {
214
+ t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], oe(k, I), oe(() => {
215
+ m(x ?? "");
216
+ }, [x]), oe(() => {
217
+ f(v || kt[0]);
218
+ }, [v, g]);
219
+ let T;
220
+ t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (T = function() {
221
+ return e?.annotations.highlightTap$.pipe(bt((se) => {
222
222
  const {
223
- highlight: F
224
- } = le;
225
- r.update((se) => ({
226
- ...se,
223
+ highlight: L
224
+ } = se;
225
+ r.update((re) => ({
226
+ ...re,
227
227
  selectedHighlight: {
228
- highlight: F
228
+ highlight: L
229
229
  }
230
230
  }));
231
231
  }));
232
- }, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = I) : I = t[11], pe(I);
233
- const P = Io, E = "bottom";
232
+ }, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = T) : T = t[11], pe(T);
233
+ const P = Oo, E = "bottom";
234
+ let M;
235
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(zo, {}), t[12] = M) : M = t[12];
236
+ const w = Mo, A = wo, $ = "1px", O = c ? "Highlight" : `Selection: "${Ro(d?.selection?.toString() ?? "", 10)}"`;
234
237
  let z;
235
- t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(Oo, {}), t[12] = z) : z = t[12];
236
- const O = To, A = $o, $ = "1px", M = c ? "Highlight" : `Selection: "${ko(d?.selection?.toString() ?? "", 10)}"`;
237
- let w;
238
- t[13] !== A || t[14] !== M ? (w = /* @__PURE__ */ a(A, { borderBottomWidth: $, children: M }), t[13] = A, t[14] = M, t[15] = w) : w = t[15];
238
+ t[13] !== A || t[14] !== O ? (z = /* @__PURE__ */ a(A, { borderBottomWidth: $, children: O }), t[13] = A, t[14] = O, t[15] = z) : z = t[15];
239
239
  let D;
240
- t[16] !== u || t[17] !== f ? (D = yt.map((Y) => /* @__PURE__ */ a(he, { bgColor: Y, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === Y && {
240
+ t[16] !== u || t[17] !== f ? (D = kt.map((B) => /* @__PURE__ */ a(le, { bgColor: B, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === B && {
241
241
  border: "4px solid white"
242
- }, onClick: () => f(Y) }, Y)), t[16] = u, t[17] = f, t[18] = D) : D = t[18];
243
- let B;
244
- t[19] !== D ? (B = /* @__PURE__ */ a(J, { gap: 2, flexDirection: "row", children: D }), t[19] = D, t[20] = B) : B = t[20];
245
- let Q;
246
- t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(q, { children: "Annotation:" }), t[21] = Q) : Q = t[21];
247
- let W;
248
- t[22] !== m ? (W = (Y) => m(Y.target.value), t[22] = m, t[23] = W) : W = t[23];
249
- let H;
250
- t[24] !== h || t[25] !== W ? (H = /* @__PURE__ */ a(Sn, { value: h, onChange: W }), t[24] = h, t[25] = W, t[26] = H) : H = t[26];
251
- let j;
252
- t[27] !== B || t[28] !== H ? (j = /* @__PURE__ */ y(J, { children: [
253
- B,
254
- Q,
255
- H
256
- ] }), t[27] = B, t[28] = H, t[29] = j) : j = t[29];
242
+ }, onClick: () => f(B) }, B)), t[16] = u, t[17] = f, t[18] = D) : D = t[18];
243
+ let F;
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 Y;
246
+ t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(U, { children: "Annotation:" }), t[21] = Y) : Y = t[21];
247
+ let V;
248
+ t[22] !== m ? (V = (B) => m(B.target.value), t[22] = m, t[23] = V) : V = t[23];
257
249
  let G;
258
- t[30] !== h || t[31] !== i || t[32] !== b || t[33] !== e?.annotations || t[34] !== u || t[35] !== d ? (G = !!d && /* @__PURE__ */ a(fe, { onClick: () => {
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
+ let W;
252
+ t[27] !== F || t[28] !== G ? (W = /* @__PURE__ */ y(ee, { children: [
253
+ F,
254
+ Y,
255
+ G
256
+ ] }), t[27] = F, t[28] = G, t[29] = W) : W = t[29];
257
+ let q;
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();
260
- const Y = e?.annotations.createAnnotation({
260
+ const B = e?.annotations.createAnnotation({
261
261
  ...d,
262
262
  highlightColor: u,
263
263
  notes: h
264
264
  });
265
- Y && i?.(Y);
266
- }, children: "Highlight" }), t[30] = h, t[31] = i, t[32] = b, t[33] = e?.annotations, t[34] = u, t[35] = d, t[36] = G) : G = t[36];
267
- let U;
268
- t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== l || t[41] !== b || t[42] !== u ? (U = !!c && /* @__PURE__ */ y(J, { direction: "row", children: [
269
- /* @__PURE__ */ a(fe, { flex: 1, onClick: () => {
265
+ B && i?.(B);
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 Z;
268
+ t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== l || t[41] !== b || t[42] !== u ? (Z = !!c && /* @__PURE__ */ y(ee, { direction: "row", children: [
269
+ /* @__PURE__ */ a(ue, { flex: 1, onClick: () => {
270
270
  b(), l?.({
271
271
  id: c.id,
272
272
  highlightColor: u,
273
273
  notes: h
274
274
  });
275
275
  }, children: "Update" }),
276
- /* @__PURE__ */ a(fe, { flex: 1, variant: "surface", onClick: () => {
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] = U) : U = t[43];
280
- let X;
281
- t[44] !== j || t[45] !== G || t[46] !== U ? (X = /* @__PURE__ */ y(Ro, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
282
- j,
283
- G,
284
- U
285
- ] }), t[44] = j, t[45] = G, t[46] = U, t[47] = X) : X = t[47];
279
+ ] }), t[37] = h, t[38] = c, t[39] = s, t[40] = l, t[41] = b, t[42] = u, t[43] = Z) : Z = t[43];
286
280
  let K;
287
- t[48] !== O || t[49] !== w || t[50] !== X ? (K = /* @__PURE__ */ y(O, { children: [
288
- w,
289
- X
290
- ] }), t[48] = O, t[49] = w, t[50] = X, t[51] = K) : K = t[51];
291
- let V;
292
- return t[52] !== P || t[53] !== g || t[54] !== _ || t[55] !== K || t[56] !== z ? (V = /* @__PURE__ */ y(P, { placement: E, onOpenChange: _, open: g, children: [
281
+ t[44] !== W || t[45] !== q || t[46] !== Z ? (K = /* @__PURE__ */ y(Ao, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
282
+ W,
283
+ q,
284
+ Z
285
+ ] }), t[44] = W, t[45] = q, t[46] = Z, t[47] = K) : K = t[47];
286
+ let Q;
287
+ t[48] !== w || t[49] !== z || t[50] !== K ? (Q = /* @__PURE__ */ y(w, { children: [
293
288
  z,
294
289
  K
295
- ] }), t[52] = P, t[53] = g, t[54] = _, t[55] = K, t[56] = z, t[57] = V) : V = t[57], V;
290
+ ] }), t[48] = w, t[49] = z, t[50] = K, t[51] = Q) : Q = t[51];
291
+ let X;
292
+ return t[52] !== P || t[53] !== g || t[54] !== _ || t[55] !== Q || t[56] !== M ? (X = /* @__PURE__ */ y(P, { placement: E, onOpenChange: _, open: g, children: [
293
+ M,
294
+ Q
295
+ ] }), t[52] = P, t[53] = g, t[54] = _, t[55] = Q, t[56] = M, t[57] = X) : X = t[57], X;
296
296
  });
297
- function zo(t) {
297
+ function Eo(t) {
298
298
  return {
299
299
  ...t,
300
300
  selectedHighlight: void 0
301
301
  };
302
302
  }
303
- const ye = ce.forwardRef(function(e, o) {
304
- const n = x(17);
303
+ const Ie = de.forwardRef(function(e, o) {
304
+ const n = C(17);
305
305
  let i, l, s, r, c;
306
306
  n[0] !== e ? ({
307
307
  children: i,
@@ -312,42 +312,42 @@ const ye = ce.forwardRef(function(e, o) {
312
312
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r, n[5] = c) : (i = n[1], l = n[2], s = n[3], r = n[4], c = n[5]);
313
313
  const d = r === void 0 ? !0 : r, u = c === void 0 ? !0 : c, f = !d;
314
314
  let h;
315
- n[6] !== u ? (h = u && /* @__PURE__ */ a(re.Backdrop, {}), n[6] = u, n[7] = h) : h = n[7];
315
+ n[6] !== u ? (h = u && /* @__PURE__ */ a(ae.Backdrop, {}), n[6] = u, n[7] = h) : h = n[7];
316
316
  let m;
317
- n[8] !== i || n[9] !== o || n[10] !== s ? (m = /* @__PURE__ */ a(re.Positioner, { children: /* @__PURE__ */ a(re.Content, { ref: o, ...s, asChild: !1, children: i }) }), n[8] = i, n[9] = o, n[10] = s, n[11] = m) : m = n[11];
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(mt, { disabled: f, container: l, children: [
319
+ return n[12] !== l || n[13] !== f || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ y(pt, { 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
- }), ke = ce.forwardRef(function(e, o) {
324
- const n = x(6);
323
+ }), ke = de.forwardRef(function(e, o) {
324
+ const n = C(6);
325
325
  let i;
326
- n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(fn, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = i) : i = n[2];
326
+ n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(un, { 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
- return n[3] !== e || n[4] !== i ? (l = /* @__PURE__ */ a(re.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
- }), Te = re.Root, Ie = re.Footer, $e = re.Header, Re = re.Body;
330
- re.Backdrop;
331
- const Oe = re.Title;
332
- re.Description;
333
- re.Trigger;
334
- const Me = re.ActionTrigger, Ao = (t) => {
335
- const e = x(7), o = Z();
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
+ }), Te = ae.Root, $e = ae.Footer, Re = ae.Header, Me = ae.Body;
330
+ ae.Backdrop;
331
+ const Oe = ae.Title;
332
+ ae.Description;
333
+ ae.Trigger;
334
+ const we = ae.ActionTrigger, Do = (t) => {
335
+ const e = C(7), o = j();
336
336
  let n;
337
- e[0] !== o ? (n = st(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
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(te((r) => r.find((c) => c.id === t)), lt(Zt), ve((r) => i.locateResource(r))), e[2] = t, e[3] = i, e[4] = l) : l = e[4];
340
+ e[2] !== t || e[3] !== i ? (l = () => i?.annotations.annotations$.pipe(J((r) => r.find((c) => c.id === t)), st(Zt), be((r) => i.locateResource(r))), e[2] = t, e[3] = i, e[4] = l) : l = e[4];
341
341
  let s;
342
- return e[5] !== i ? (s = [i], e[5] = i, e[6] = s) : s = e[6], N(l, s);
343
- }, un = (t) => {
344
- const e = x(22), {
342
+ return e[5] !== i ? (s = [i], e[5] = i, e[6] = s) : s = e[6], H(l, s);
343
+ }, hn = (t) => {
344
+ const e = C(22), {
345
345
  id: o,
346
346
  onNavigate: n,
347
347
  allowLeftIcon: i
348
- } = t, l = i === void 0 ? !0 : i, s = Z(), {
348
+ } = t, l = i === void 0 ? !0 : i, s = j(), {
349
349
  data: r
350
- } = Ao(o);
350
+ } = Do(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,82 +356,82 @@ const Me = re.ActionTrigger, Ao = (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(it, {}) }) : l ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(it, {}) }) : null, e[7] = l, e[8] = r?.resource?.notes, e[9] = f) : f = e[9];
359
+ e[7] !== l || e[8] !== r?.resource?.notes ? (f = r?.resource?.notes ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(lt, {}) }) : l ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(lt, {}) }) : null, e[7] = l, e[8] = r?.resource?.notes, e[9] = f) : f = e[9];
360
360
  let h;
361
- e[10] !== r?.meta || e[11] !== d ? (h = d ? /* @__PURE__ */ a(q, { lineClamp: 2, fontSize: "md", children: d }) : /* @__PURE__ */ y(q, { lineClamp: 2, fontSize: "md", fontStyle: "italic", children: [
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 ",
363
363
  (r?.meta.absolutePageIndex ?? 0) + 1
364
364
  ] }), e[10] = r?.meta, e[11] = d, e[12] = h) : h = e[12];
365
365
  const m = `Book page: ${r?.meta?.absolutePageIndex !== void 0 ? r.meta.absolutePageIndex + 1 : "unknown (not loaded)"}`;
366
366
  let g;
367
- e[13] !== m ? (g = /* @__PURE__ */ a(q, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: m }), e[13] = m, e[14] = g) : g = e[14];
367
+ e[13] !== m ? (g = /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: m }), e[13] = m, e[14] = g) : g = e[14];
368
368
  let p;
369
- e[15] !== h || e[16] !== g ? (p = /* @__PURE__ */ y(J, { gap: 0, children: [
369
+ e[15] !== h || e[16] !== g ? (p = /* @__PURE__ */ y(ee, { gap: 0, children: [
370
370
  h,
371
371
  g
372
372
  ] }), e[15] = h, e[16] = g, e[17] = p) : p = e[17];
373
373
  let b;
374
- return e[18] !== u || e[19] !== f || e[20] !== p ? (b = /* @__PURE__ */ a(ge.Item, { children: /* @__PURE__ */ y(Rt, { href: "#", onClick: u, children: [
374
+ return e[18] !== u || e[19] !== f || e[20] !== p ? (b = /* @__PURE__ */ a(ge.Item, { children: /* @__PURE__ */ y(Mt, { href: "#", onClick: u, children: [
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
- }, bt = () => {
379
- const t = x(5), e = Z();
378
+ }, _t = () => {
379
+ const t = C(5), e = j();
380
380
  let o;
381
- t[0] !== e ? (o = st(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
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(ve((s) => n.locateResource(s))), l = [n], t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), N(i, l);
385
- }, wo = () => {
386
- const t = x(4), {
384
+ return t[2] !== n ? (i = () => n?.annotations.annotations$.pipe(be((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
+ }, Bo = () => {
386
+ const t = C(4), {
387
387
  data: e
388
- } = bt();
388
+ } = _t();
389
389
  let o;
390
- t[0] !== e ? (o = e?.filter(Po), t[0] = e, t[1] = o) : o = t[1];
390
+ t[0] !== e ? (o = e?.filter(Fo), 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 Po(t) {
396
+ function Fo(t) {
397
397
  return t.meta.isCfiRange;
398
398
  }
399
- const Eo = (t) => {
400
- const e = x(5), {
399
+ const Lo = (t) => {
400
+ const e = C(5), {
401
401
  onNavigate: o
402
402
  } = t, {
403
403
  data: n
404
- } = wo();
404
+ } = Bo();
405
405
  let i;
406
- e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(un, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
406
+ e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(hn, { 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
- }, Do = () => {
410
- const t = x(4), {
409
+ }, No = () => {
410
+ const t = C(4), {
411
411
  data: e
412
- } = bt();
412
+ } = _t();
413
413
  let o;
414
- t[0] !== e ? (o = e?.filter(Bo), t[0] = e, t[1] = o) : o = t[1];
414
+ t[0] !== e ? (o = e?.filter(Ho), 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 Bo(t) {
420
+ function Ho(t) {
421
421
  return !t.meta.isCfiRange && !t.resource.notes;
422
422
  }
423
- const Fo = (t) => {
424
- const e = x(5), {
423
+ const Vo = (t) => {
424
+ const e = C(5), {
425
425
  onNavigate: o
426
426
  } = t, {
427
427
  data: n
428
- } = Do();
428
+ } = No();
429
429
  let i;
430
- e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(un, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
430
+ e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(hn, { 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
- }, Lo = L((t) => {
434
- const e = x(11), {
433
+ }, Wo = N((t) => {
434
+ const e = C(11), {
435
435
  onNavigate: o,
436
436
  defaultTab: n
437
437
  } = t, [i, l] = ne(n ?? "bookmarks");
@@ -439,30 +439,30 @@ const Fo = (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(zn, {}),
442
+ /* @__PURE__ */ a(An, {}),
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(it, {}),
449
+ /* @__PURE__ */ a(lt, {}),
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(Fo, { onNavigate: o }) }), e[3] = o, e[4] = d) : d = e[4];
455
+ e[3] !== o ? (d = /* @__PURE__ */ a(me.Content, { value: "bookmarks", children: /* @__PURE__ */ a(Vo, { 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(Eo, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
457
+ e[5] !== o ? (u = /* @__PURE__ */ a(me.Content, { value: "annotations", children: /* @__PURE__ */ a(Lo, { 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
- }), No = L((t) => {
465
- const e = x(15), {
464
+ }), Go = N((t) => {
465
+ const e = C(15), {
466
466
  openWith: o,
467
467
  setOpen: n,
468
468
  onNavigate: i
@@ -475,13 +475,13 @@ const Fo = (t) => {
475
475
  md: "lg"
476
476
  }, e[2] = r) : r = e[2];
477
477
  let c;
478
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Oe, { children: "Annotations" }) }), e[3] = c) : c = e[3];
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(Re, { flex: 1, children: /* @__PURE__ */ a(Lo, { onNavigate: i, defaultTab: o }) }), e[4] = i, e[5] = o, e[6] = d) : d = e[6];
480
+ e[4] !== i || e[5] !== o ? (d = /* @__PURE__ */ a(Me, { flex: 1, children: /* @__PURE__ */ a(Wo, { 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(Ie, { children: /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(fe, { variant: "outline", children: "Cancel" }) }) }), f = /* @__PURE__ */ a(ke, {}), e[7] = u, e[8] = f) : (u = e[7], f = e[8]);
482
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), f = /* @__PURE__ */ a(ke, {}), e[7] = u, e[8] = f) : (u = e[7], f = e[8]);
483
483
  let h;
484
- e[9] !== d ? (h = /* @__PURE__ */ y(ye, { height: "100%", children: [
484
+ e[9] !== d ? (h = /* @__PURE__ */ y(Ie, { height: "100%", children: [
485
485
  c,
486
486
  d,
487
487
  u,
@@ -489,15 +489,15 @@ const Fo = (t) => {
489
489
  ] }), e[9] = d, e[10] = h) : h = e[10];
490
490
  let m;
491
491
  return e[11] !== l || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a(Te, { 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
- }), Ho = (t) => {
493
- const e = x(5), {
492
+ }), Uo = (t) => {
493
+ const e = C(5), {
494
494
  absolutePageIndex: o,
495
495
  itemIndex: n
496
- } = t, i = Z();
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 ? It(i.spine.spineItemsManager.get(n)) : o !== void 0 ? i.spine.pages.observeFromAbsolutePageIndex(o).pipe(te((r) => i.spine.spineItemsManager.get(r?.itemIndex))) : Tt : Tt, 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]), N(l, s);
499
- }, Vo = (t) => {
500
- const e = x(9), {
498
+ return e[0] !== o || e[1] !== n || e[2] !== i ? (l = () => i ? n !== void 0 ? gt(i.spine.spineItemsManager.get(n)) : o !== void 0 ? i.spine.pages.observeFromAbsolutePageIndex(o).pipe(J((r) => i.spine.spineItemsManager.get(r?.itemIndex))) : $t : $t, 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
+ }, jo = (t) => {
500
+ const e = C(9), {
501
501
  absolutePageIndex: o,
502
502
  itemIndex: n
503
503
  } = t;
@@ -508,19 +508,19 @@ const Fo = (t) => {
508
508
  }, e[0] = o, e[1] = n, e[2] = i) : i = e[2];
509
509
  const {
510
510
  data: l
511
- } = Ho(i);
511
+ } = Uo(i);
512
512
  let s, r;
513
- e[3] !== l ? (s = () => l ? l.isReady$ : pt, r = [l], e[3] = l, e[4] = s, e[5] = r) : (s = e[4], r = e[5]);
513
+ e[3] !== l ? (s = () => l ? l.isReady$ : at, 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
- } = N(s, r);
516
+ } = H(s, r);
517
517
  let d;
518
518
  return e[6] !== c || e[7] !== l ? (d = {
519
519
  spineItem: l,
520
520
  isReady: c
521
521
  }, e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
522
- }, Wo = L((t) => {
523
- const e = x(17), {
522
+ }, qo = N((t) => {
523
+ const e = C(17), {
524
524
  absolutePageIndex: o,
525
525
  left: n,
526
526
  top: i,
@@ -532,11 +532,11 @@ const Fo = (t) => {
532
532
  }, e[0] = o, e[1] = s) : s = e[1];
533
533
  const {
534
534
  isReady: r
535
- } = Vo(s), {
535
+ } = jo(s), {
536
536
  data: c
537
- } = bt();
537
+ } = _t();
538
538
  let d;
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];
539
+ e[2] !== o || e[3] !== c ? (d = c?.find((x) => x?.meta?.absolutePageIndex === o && !x.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = d) : d = e[4];
540
540
  const u = d;
541
541
  if (!r)
542
542
  return null;
@@ -559,24 +559,24 @@ const Fo = (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(he, { "data-bookmark-area": _o, 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];
562
+ e[9] !== f || e[10] !== g || e[11] !== S || e[12] !== i ? (_ = /* @__PURE__ */ a(le, { "data-bookmark-area": yo, 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(rt, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: _ }), e[14] = h, e[15] = _, e[16] = v) : v = e[16], v;
565
- }), Go = L(() => {
566
- const t = x(8), e = Z();
564
+ return e[14] !== h || e[15] !== _ ? (v = /* @__PURE__ */ a(Ye, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: _ }), e[14] = h, e[15] = _, e[16] = v) : v = e[16], v;
565
+ }), Ko = N(() => {
566
+ const t = C(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];
569
569
  let n;
570
570
  t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
571
571
  const {
572
572
  data: i
573
- } = N(o, n);
573
+ } = H(o, n);
574
574
  let l;
575
- t[4] !== i?.pages ? (l = i?.pages.map(Uo), t[4] = i?.pages, t[5] = l) : l = t[5];
575
+ t[4] !== i?.pages ? (l = i?.pages.map(Yo), t[4] = i?.pages, t[5] = l) : l = t[5];
576
576
  let s;
577
- return t[6] !== l ? (s = /* @__PURE__ */ a(_e, { children: l }), t[6] = l, t[7] = s) : s = t[7], s;
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 Uo(t, e) {
579
+ function Yo(t, e) {
580
580
  const {
581
581
  absoluteLayout: o
582
582
  } = t, {
@@ -584,88 +584,88 @@ function Uo(t, e) {
584
584
  top: i,
585
585
  width: l
586
586
  } = o;
587
- return /* @__PURE__ */ a(Wo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
587
+ return /* @__PURE__ */ a(qo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
588
588
  }
589
- const Je = !0, qo = 10, jo = ({
589
+ const et = !0, Zo = 10, Qo = ({
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
- }, Yo = () => {
597
- const t = x(5), e = at(), {
596
+ }, Xo = () => {
597
+ const t = C(5), e = ct(), {
598
598
  data: o
599
- } = bt(), n = Ze();
599
+ } = _t(), n = Ze();
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(Ot(e?.annotations.candidates$), te((d) => {
605
+ return c.pipe(Ot(e?.annotations.candidates$), J((d) => {
606
606
  const [u, f] = d;
607
607
  if (!u.page)
608
- return Je;
608
+ return et;
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 (jo({
615
+ if (Qo({
616
616
  position: g,
617
617
  containerSize: p,
618
- sizePercent: qo
618
+ sizePercent: Zo
619
619
  })) {
620
620
  const S = e.spine.pages.fromSpineItemPageIndex(h, m);
621
621
  if (!S)
622
- return Je;
623
- const _ = o?.find((C) => C?.meta?.absolutePageIndex === S.absolutePageIndex && C.meta.range === void 0);
622
+ return et;
623
+ const _ = o?.find((x) => x?.meta?.absolutePageIndex === S.absolutePageIndex && x.meta.range === void 0);
624
624
  if (_)
625
- return n.value.onAnnotationDelete?.(_.resource.id), !Je;
625
+ return n.value.onAnnotationDelete?.(_.resource.id), !et;
626
626
  if (f?.[S.absolutePageIndex]) {
627
- const C = e?.annotations.createAnnotation({
627
+ const x = e?.annotations.createAnnotation({
628
628
  absolutePageIndex: S.absolutePageIndex
629
629
  });
630
- return C && n.value.onAnnotationCreate?.(C), !Je;
630
+ return x && n.value.onAnnotationCreate?.(x), !et;
631
631
  }
632
632
  }
633
- return Je;
633
+ return et;
634
634
  }));
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]), ie(i, l);
636
- }, Zo = () => {
637
- const t = x(2), e = at();
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
+ }, Jo = () => {
637
+ const t = C(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(Ot(e.selection.lastSelectionOnPointerdown$), te((s) => {
643
+ return l.pipe(Ot(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
- }, Qo = () => {
651
- const t = x(3), e = at(), o = Ze();
650
+ }, ei = () => {
651
+ const t = C(3), e = ct(), o = Ze();
652
652
  let n;
653
653
  t[0] !== o || t[1] !== e ? (n = () => {
654
654
  if (e) {
655
- const l = o.pipe(te(Ko), Ye()), s = o.pipe(te(Xo), Ye()), r = Kt([s, l]).pipe(te(Jo));
655
+ const l = o.pipe(J(ti), xe()), s = o.pipe(J(ni), xe()), r = St([s, l]).pipe(J(oi));
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 Ko(t) {
662
+ function ti(t) {
663
663
  return t.selectedHighlight?.highlight?.id;
664
664
  }
665
- function Xo(t) {
665
+ function ni(t) {
666
666
  return t.annotations ?? [];
667
667
  }
668
- function Jo(t) {
668
+ function oi(t) {
669
669
  const [e, o] = t;
670
670
  return e.map((n) => ({
671
671
  ...n,
@@ -673,56 +673,56 @@ function Jo(t) {
673
673
  }));
674
674
  }
675
675
  const Qe = () => {
676
- const t = x(2), e = Z();
676
+ const t = C(2), e = j();
677
677
  let o;
678
- return t[0] !== e ? (o = Co(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
679
- }, ei = (t) => {
680
- const e = x(6), o = t === void 0 ? !0 : t, n = Qe();
678
+ return t[0] !== e ? (o = ko(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
679
+ }, ii = (t) => {
680
+ const e = C(6), o = t === void 0 ? !0 : t, n = Qe();
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;
684
684
  e[3] !== n || e[4] !== o ? (l = [o, n], e[3] = n, e[4] = o, e[5] = l) : l = e[5];
685
685
  const {
686
686
  data: s
687
- } = N(i, l);
687
+ } = H(i, l);
688
688
  return s;
689
- }, ti = (t) => {
690
- const e = x(8), {
689
+ }, li = (t) => {
690
+ const e = C(8), {
691
691
  enabled: o,
692
692
  trackId: n
693
693
  } = t, i = o === void 0 ? !0 : o, l = Qe();
694
694
  let s;
695
- e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(te((u) => u.currentTrack?.id === n), Ye()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
695
+ e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n), xe()) : 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
- } = N(s, r);
700
+ } = H(s, r);
701
701
  return c === void 0 ? !1 : c;
702
- }, ni = "#93c5fd", Ft = "#3b82f6", Lt = 1, oi = 0.1, ii = 0.08, Nt = 0.25, Ht = 0.15, li = 0.02, si = 0.145, ri = 0.52, ai = 0.16, ci = 0.5, Vt = 0.34, xe = (t, e, o) => Math.min(Math.max(t, e), o), ht = (t, e, o) => {
702
+ }, si = "#93c5fd", Lt = "#3b82f6", Nt = 1, ri = 0.1, ai = 0.08, Ht = 0.25, Vt = 0.15, ci = 0.02, di = 0.145, fi = 0.52, ui = 0.16, hi = 0.5, Wt = 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
- const n = xe((o - t) / (e - t), 0, 1);
704
+ const n = ye((o - t) / (e - t), 0, 1);
705
705
  return n * n * (3 - 2 * n);
706
- }, di = (t) => {
706
+ }, mi = (t) => {
707
707
  const e = Math.sin(t * Math.PI * 6 + 0.8), o = Math.sin(t * Math.PI * 14 + 1.7);
708
- return xe(0.5 + e * 0.3 + o * 0.2, 0, 1);
709
- }, fi = (t) => Array.from({
708
+ return ye(0.5 + e * 0.3 + o * 0.2, 0, 1);
709
+ }, gi = (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 - ht(ri, 1, i), s = di(n), r = l * (1 - Vt + s * Vt);
713
- return xe(li + si * r, 0, 1);
714
- }), ui = (t) => t.length === 0 ? 0 : t.reduce((e, o) => e + o, 0) / t.length, hi = (t) => t.some((e) => e > 1e-3), hn = (t) => {
712
+ const n = t === 1 ? 0.5 : o / (t - 1), i = Math.abs(n - 0.5) * 2, l = 1 - mt(fi, 1, i), s = mi(n), r = l * (1 - Wt + s * Wt);
713
+ return ye(ci + di * r, 0, 1);
714
+ }), pi = (t) => t.length === 0 ? 0 : t.reduce((e, o) => e + o, 0) / t.length, bi = (t) => t.some((e) => e > 1e-3), mn = (t) => {
715
715
  const e = Math.max(1, Math.floor(t));
716
716
  return e % 2 === 0 ? e + 1 : e;
717
- }, mi = (t, e) => {
718
- const o = hn(e), n = Math.floor(o / 2) + 1, i = Array.from({
717
+ }, Si = (t, e) => {
718
+ const o = mn(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 = ui(t.slice(d, u));
722
- return xe(f, 0, 1);
723
- }), l = i[0] ?? ii, s = i.slice(1);
721
+ const d = Math.floor(c * t.length / n), u = Math.max(d + 1, Math.floor((c + 1) * t.length / n)), f = pi(t.slice(d, u));
722
+ return ye(f, 0, 1);
723
+ }), l = i[0] ?? ai, s = i.slice(1);
724
724
  return [...s.slice().reverse(), l, ...s];
725
- }, gi = (t, {
725
+ }, _i = (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
- }, pi = ({
736
+ }, vi = ({
737
737
  canvas: t,
738
738
  size: e,
739
739
  visualizer: o,
@@ -747,61 +747,61 @@ 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 = hi(o.levels), u = !o.isActive && !d, f = u ? fi(n) : mi(o.levels, n), h = i.length !== f.length ? Array.from({
750
+ const d = bi(o.levels), u = !o.isActive && !d, f = u ? gi(n) : Si(o.levels, n), h = i.length !== f.length ? Array.from({
751
751
  length: f.length
752
- }, () => 0) : i, m = o.isActive ? h.map((C, T) => {
753
- const k = f[T] ?? 0;
754
- return C + (k - C) * 0.28;
755
- }) : [...f], g = Math.round(xe(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(Lt, c * (u ? ai : oi));
752
+ }, () => 0) : i, m = o.isActive ? h.map((x, k) => {
753
+ const I = f[k] ?? 0;
754
+ return x + (I - x) * 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(Nt, c * (u ? ui : ri));
756
756
  s.fillStyle = l;
757
- for (const [C, T] of m.entries()) {
758
- const k = xe(T, 0, 1), I = m.length === 1 ? 0.5 : C / (m.length - 1), R = Math.abs(I - 0.5) * 2, P = 1 - ht(0, 1, R), E = k * (1 + Ht * P) / (1 + Ht * P * k), z = u ? k : E ** 1.15, O = Math.max(Lt, z * v), A = Math.min(p / 2, O / 2), $ = Math.round(S + C * (p + g)), M = _ - O / 2, w = ht(0, Nt, I) * (1 - ht(1 - Nt, 1, I));
759
- s.globalAlpha = xe((u ? ci : o.isActive ? 0.95 : 0.75) * w, 0, 1), s.beginPath(), s.roundRect($, M, p, O, A), s.fill();
757
+ for (const [x, k] of m.entries()) {
758
+ const I = ye(k, 0, 1), T = m.length === 1 ? 0.5 : x / (m.length - 1), R = Math.abs(T - 0.5) * 2, P = 1 - mt(0, 1, R), E = I * (1 + Vt * P) / (1 + Vt * P * I), M = u ? I : E ** 1.15, w = Math.max(Nt, M * v), A = Math.min(p / 2, w / 2), $ = Math.round(S + x * (p + g)), O = _ - w / 2, z = mt(0, Ht, T) * (1 - mt(1 - Ht, 1, T));
759
+ s.globalAlpha = ye((u ? hi : o.isActive ? 0.95 : 0.75) * z, 0, 1), s.beginPath(), s.roundRect($, O, p, w, A), s.fill();
760
760
  }
761
761
  return s.globalAlpha = 1, m;
762
- }, Wt = {
762
+ }, Gt = {
763
763
  levels: [],
764
764
  isActive: !1,
765
765
  trackId: void 0
766
- }, bi = (t) => {
767
- const e = x(21), {
766
+ }, xi = (t) => {
767
+ const e = C(21), {
768
768
  visualizer: o
769
- } = t, n = _n({
769
+ } = t, n = vn({
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 = hn(n), e[0] = n, e[1] = i) : i = e[1];
777
- const l = i, s = Se(null), r = Se(null), c = Se(void 0), d = Se(o ?? Wt);
776
+ e[0] !== n ? (i = mn(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 ?? Gt);
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 = Se(u), h = Se(Ft);
780
+ const f = _e(u), h = _e(Lt);
781
781
  let m;
782
782
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
783
783
  width: 0,
784
784
  height: 0
785
785
  }, e[3] = m) : m = e[3];
786
- const g = Se(m);
786
+ const g = _e(m);
787
787
  let p;
788
788
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
789
789
  const $ = s.current;
790
790
  if (!$ || g.current.height <= 0)
791
791
  return;
792
- const M = $.getContext("2d");
793
- if (!M)
792
+ const O = $.getContext("2d");
793
+ if (!O)
794
794
  return;
795
795
  const {
796
- topColor: w,
796
+ topColor: z,
797
797
  bottomColor: D
798
- } = gi($, {
798
+ } = _i($, {
799
799
  topVariable: "--audio-wave-top-color",
800
- topFallback: ni,
800
+ topFallback: si,
801
801
  bottomVariable: "--audio-wave-bottom-color",
802
- bottomFallback: Ft
803
- }), B = M.createLinearGradient(0, 0, 0, g.current.height);
804
- B.addColorStop(0, w), B.addColorStop(1, D), h.current = B;
802
+ bottomFallback: Lt
803
+ }), F = O.createLinearGradient(0, 0, 0, g.current.height);
804
+ F.addColorStop(0, z), F.addColorStop(1, D), h.current = F;
805
805
  }, e[4] = p) : p = e[4];
806
806
  const b = p;
807
807
  let S;
@@ -809,11 +809,11 @@ const Qe = () => {
809
809
  const $ = s.current;
810
810
  if (!$)
811
811
  return;
812
- const M = d.current;
813
- f.current = pi({
812
+ const O = d.current;
813
+ f.current = vi({
814
814
  canvas: $,
815
815
  size: g.current,
816
- visualizer: M,
816
+ visualizer: O,
817
817
  displayBarCount: l,
818
818
  displayedBars: f.current,
819
819
  fillStyle: h.current
@@ -824,9 +824,9 @@ const Qe = () => {
824
824
  e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
825
825
  c.current !== void 0 && (cancelAnimationFrame(c.current), c.current = void 0);
826
826
  }, e[7] = v) : v = e[7];
827
- const C = v;
828
- let T;
829
- e[8] !== _ ? (T = () => {
827
+ const x = v;
828
+ let k;
829
+ e[8] !== _ ? (k = () => {
830
830
  if (c.current !== void 0)
831
831
  return;
832
832
  const $ = () => {
@@ -837,53 +837,53 @@ const Qe = () => {
837
837
  _(), c.current = requestAnimationFrame($);
838
838
  };
839
839
  c.current = requestAnimationFrame($);
840
- }, e[8] = _, e[9] = T) : T = e[9];
841
- const k = T;
842
- let I;
843
- e[10] !== _ ? (I = () => {
844
- const $ = s.current, M = r.current;
845
- if (!$ || !M)
840
+ }, e[8] = _, e[9] = k) : k = e[9];
841
+ const I = k;
842
+ let T;
843
+ e[10] !== _ ? (T = () => {
844
+ const $ = s.current, O = r.current;
845
+ if (!$ || !O)
846
846
  return;
847
- const w = Math.max(1, M.clientWidth), D = Math.max(1, M.clientHeight), B = window.devicePixelRatio || 1;
847
+ const z = Math.max(1, O.clientWidth), D = Math.max(1, O.clientHeight), F = window.devicePixelRatio || 1;
848
848
  g.current = {
849
- width: w,
849
+ width: z,
850
850
  height: D
851
- }, $.width = Math.round(w * B), $.height = Math.round(D * B), $.style.width = `${w}px`, $.style.height = `${D}px`;
852
- const Q = $.getContext("2d");
853
- Q && Q.setTransform(B, 0, 0, B, 0, 0), b(), _();
854
- }, e[10] = _, e[11] = I) : I = e[11];
855
- const R = I;
851
+ }, $.width = Math.round(z * F), $.height = Math.round(D * F), $.style.width = `${z}px`, $.style.height = `${D}px`;
852
+ const Y = $.getContext("2d");
853
+ Y && Y.setTransform(F, 0, 0, F, 0, 0), b(), _();
854
+ }, e[10] = _, e[11] = T) : T = e[11];
855
+ const R = T;
856
856
  let P, E;
857
- e[12] !== _ || e[13] !== k || e[14] !== o ? (P = () => {
858
- if (d.current = o ?? Wt, d.current.isActive) {
859
- k();
857
+ e[12] !== _ || e[13] !== I || e[14] !== o ? (P = () => {
858
+ if (d.current = o ?? Gt, d.current.isActive) {
859
+ I();
860
860
  return;
861
861
  }
862
- C(), _();
863
- }, E = [_, k, C, o], e[12] = _, e[13] = k, e[14] = o, e[15] = P, e[16] = E) : (P = e[15], E = e[16]), ie(P, E);
864
- let z, O;
865
- e[17] !== R ? (z = () => {
862
+ x(), _();
863
+ }, E = [_, I, x, 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, w;
865
+ e[17] !== R ? (M = () => {
866
866
  const $ = r.current;
867
867
  if (!$)
868
868
  return;
869
869
  R();
870
- const M = new ResizeObserver(() => {
870
+ const O = new ResizeObserver(() => {
871
871
  R();
872
872
  });
873
- return M.observe($), () => {
874
- C(), M.disconnect();
873
+ return O.observe($), () => {
874
+ x(), O.disconnect();
875
875
  };
876
- }, O = [R, C], e[17] = R, e[18] = z, e[19] = O) : (z = e[18], O = e[19]), ie(z, O);
876
+ }, w = [R, x], e[17] = R, e[18] = M, e[19] = w) : (M = e[18], w = e[19]), oe(M, w);
877
877
  let A;
878
- return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(he, { ref: r, position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", px: 8, py: 12, pointerEvents: "none", css: {
878
+ return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__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
884
  }, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] = A) : A = e[20], A;
885
- }, Si = (t) => {
886
- const e = x(16), {
885
+ }, Ci = (t) => {
886
+ const e = C(16), {
887
887
  item: o
888
888
  } = t, n = Qe();
889
889
  let i;
@@ -895,128 +895,128 @@ const Qe = () => {
895
895
  e[5] !== s || e[6] !== l ? (c = [s, l], e[5] = s, e[6] = l, e[7] = c) : c = e[7];
896
896
  const {
897
897
  data: d
898
- } = N(r, c), u = !!d;
898
+ } = H(r, c), u = !!d;
899
899
  let f;
900
900
  e[8] !== o.item.id || e[9] !== u ? (f = {
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 = ti(f), m = ei(h);
904
+ const h = li(f), m = ii(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(bi, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
909
+ e[11] !== g ? (p = /* @__PURE__ */ a(xi, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
910
910
  let b;
911
- return e[13] !== d || e[14] !== p ? (b = Mt(p, d), e[13] = d, e[14] = p, e[15] = b) : b = e[15], b;
912
- }, _i = L((t) => {
913
- const e = x(7), {
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
+ }, yi = N((t) => {
913
+ const e = C(7), {
914
914
  item: o
915
915
  } = t, n = o.containerElement;
916
916
  let i;
917
- e[0] !== o ? (i = /* @__PURE__ */ a(Si, { item: o }), e[0] = o, e[1] = i) : i = e[1];
917
+ e[0] !== o ? (i = /* @__PURE__ */ a(Ci, { item: o }), e[0] = o, e[1] = i) : i = e[1];
918
918
  let l;
919
- e[2] !== n || e[3] !== i ? (l = Mt(i, n), e[2] = n, e[3] = i, e[4] = l) : l = e[4];
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
- return e[5] !== l ? (s = /* @__PURE__ */ a(_e, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
922
- }), vi = L((t) => {
923
- const e = x(18), {
921
+ return e[5] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
922
+ }), Ii = N((t) => {
923
+ const e = C(18), {
924
924
  children: o
925
- } = t, n = Z();
925
+ } = t, n = j();
926
926
  let i;
927
927
  e[0] !== n?.spine.element$ ? (i = () => n?.spine.element$, e[0] = n?.spine.element$, e[1] = i) : i = e[1];
928
928
  let l;
929
929
  e[2] !== n ? (l = [n], e[2] = n, e[3] = l) : l = e[3];
930
930
  const {
931
931
  data: s
932
- } = N(i, l);
932
+ } = H(i, l);
933
933
  let r;
934
934
  e[4] !== n?.spine.spineItemsManager.items$ ? (r = () => n?.spine.spineItemsManager.items$, e[4] = n?.spine.spineItemsManager.items$, e[5] = r) : r = e[5];
935
935
  let c;
936
936
  e[6] !== n ? (c = [n], e[6] = n, e[7] = c) : c = e[7];
937
937
  const {
938
938
  data: d
939
- } = N(r, c);
939
+ } = H(r, c);
940
940
  if (!s)
941
941
  return null;
942
942
  let u;
943
- e[8] !== d ? (u = d?.map(Ci), e[8] = d, e[9] = u) : u = e[9];
943
+ e[8] !== d ? (u = d?.map(ki), e[8] = d, e[9] = u) : u = e[9];
944
944
  let f;
945
- e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ y(_e, { children: [
945
+ e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ y(ve, { children: [
946
946
  o,
947
947
  u
948
948
  ] }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
949
949
  let h;
950
- e[13] !== s || e[14] !== f ? (h = Mt(f, s), e[13] = s, e[14] = f, e[15] = h) : h = e[15];
950
+ e[13] !== s || e[14] !== f ? (h = wt(f, s), e[13] = s, e[14] = f, e[15] = h) : h = e[15];
951
951
  let m;
952
- return e[16] !== h ? (m = /* @__PURE__ */ a(_e, { children: h }), e[16] = h, e[17] = m) : m = e[17], m;
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 Ci(t) {
955
- return /* @__PURE__ */ a(_i, { item: t }, t.index);
954
+ function ki(t) {
955
+ return /* @__PURE__ */ a(yi, { item: t }, t.index);
956
956
  }
957
- const $t = vn({
957
+ const Rt = xn({
958
958
  placement: "bottom-end",
959
959
  pauseOnPageIdle: !0
960
- }), xi = () => {
961
- const t = x(1);
960
+ }), Ti = () => {
961
+ const t = C(1);
962
962
  let e;
963
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(mt, { children: /* @__PURE__ */ a(Cn, { toaster: $t, insetInline: {
963
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(pt, { children: /* @__PURE__ */ a(Cn, { toaster: Rt, insetInline: {
964
964
  mdDown: "4"
965
- }, children: yi }) }), t[0] = e) : e = t[0], e;
965
+ }, children: $i }) }), t[0] = e) : e = t[0], e;
966
966
  };
967
- function yi(t) {
968
- return /* @__PURE__ */ y(Ue.Root, { width: {
967
+ function $i(t) {
968
+ return /* @__PURE__ */ y(je.Root, { width: {
969
969
  md: "sm"
970
970
  }, children: [
971
- t.type === "loading" ? /* @__PURE__ */ a(xn, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(Ue.Indicator, {}),
972
- /* @__PURE__ */ y(J, { gap: "1", flex: "1", maxWidth: "100%", children: [
973
- t.title && /* @__PURE__ */ a(Ue.Title, { children: t.title }),
974
- t.description && /* @__PURE__ */ a(Ue.Description, { children: t.description })
971
+ t.type === "loading" ? /* @__PURE__ */ a(yn, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(je.Indicator, {}),
972
+ /* @__PURE__ */ y(ee, { gap: "1", flex: "1", maxWidth: "100%", children: [
973
+ t.title && /* @__PURE__ */ a(je.Title, { children: t.title }),
974
+ t.description && /* @__PURE__ */ a(je.Description, { children: t.description })
975
975
  ] }),
976
- t.action && /* @__PURE__ */ a(Ue.ActionTrigger, { children: t.action.label }),
977
- t.meta?.closable && /* @__PURE__ */ a(Ue.CloseTrigger, {})
976
+ t.action && /* @__PURE__ */ a(je.ActionTrigger, { children: t.action.label }),
977
+ t.meta?.closable && /* @__PURE__ */ a(je.CloseTrigger, {})
978
978
  ] });
979
979
  }
980
- const ki = (t) => {
981
- const e = x(25);
980
+ const Ri = (t) => {
981
+ const e = C(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 = nt(Ii);
987
+ const i = ot(Oi);
988
988
  let l;
989
- e[3] !== i.value.fontSizeMenuOpen ? (l = () => je({
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 = nt(l), r = kt(s);
992
+ const s = ot(l), r = Tt(s);
993
993
  let c;
994
- e[5] !== s ? (c = (T) => {
995
- s.update(T);
994
+ e[5] !== s ? (c = (k) => {
995
+ s.update(k);
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 = (T) => {
1000
- i.update((k) => ({
1001
- ...k,
1002
- _quickMenuOpen: typeof T == "function" ? T(k._quickMenuOpen) : T
999
+ e[7] !== i ? (u = (k) => {
1000
+ i.update((I) => ({
1001
+ ...I,
1002
+ _quickMenuOpen: typeof k == "function" ? k(I._quickMenuOpen) : k
1003
1003
  }));
1004
1004
  }, e[7] = i, e[8] = u) : u = e[8];
1005
1005
  const f = u;
1006
1006
  let h;
1007
- e[9] !== i.value.refitMenuOpen ? (h = () => je({
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 = nt(h);
1010
+ const m = ot(h);
1011
1011
  let g;
1012
- e[11] !== m ? (g = (T) => {
1013
- m.update(T);
1012
+ e[11] !== m ? (g = (k) => {
1013
+ m.update(k);
1014
1014
  }, e[11] = m, e[12] = g) : g = e[12];
1015
- const p = g, b = kt(m), S = Gn(n, oo);
1015
+ const p = g, b = Tt(m), S = Un(n, so);
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((T) => ({
1019
- ...T,
1018
+ i.update((k) => ({
1019
+ ...k,
1020
1020
  ...S,
1021
1021
  onFontSizeMenuOpenChange: d,
1022
1022
  fontSizeMenuOpen: r,
@@ -1024,26 +1024,26 @@ const ki = (t) => {
1024
1024
  refitMenuOpen: b,
1025
1025
  _onQuickMenuOpenChange: f
1026
1026
  }));
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]), ie(_, v);
1028
- let C;
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
- }, Ti = L((t) => {
1031
- const e = x(6);
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
+ let x;
1029
+ return e[22] !== o || e[23] !== i ? (x = /* @__PURE__ */ a(At.Provider, { value: i, children: o }), e[22] = o, e[23] = i, e[24] = x) : x = e[24], x;
1030
+ }, Mi = N((t) => {
1031
+ const e = C(6);
1032
1032
  let o, n;
1033
1033
  e[0] !== t ? ({
1034
1034
  children: o,
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(ki, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = i) : i = e[5], i;
1038
+ return e[3] !== o || e[4] !== n ? (i = /* @__PURE__ */ a(Ri, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = i) : i = e[5], i;
1039
1039
  });
1040
- function Ii() {
1041
- return je({
1042
- default: sn()
1040
+ function Oi() {
1041
+ return Ke({
1042
+ default: rn()
1043
1043
  });
1044
1044
  }
1045
- const tt = ce.forwardRef(function(e, o) {
1046
- const n = x(16);
1045
+ const nt = de.forwardRef(function(e, o) {
1046
+ const n = C(16);
1047
1047
  let i, l, s, r;
1048
1048
  n[0] !== e ? ({
1049
1049
  children: i,
@@ -1052,101 +1052,101 @@ const tt = ce.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(et.ItemHiddenInput, { ref: o, ...l }), n[5] = l, n[6] = o, n[7] = c) : c = n[7];
1055
+ n[5] !== l || n[6] !== o ? (c = /* @__PURE__ */ a(tt.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(et.ItemIndicator, {}), n[8] = d) : d = n[8];
1057
+ n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(tt.ItemIndicator, {}), n[8] = d) : d = n[8];
1058
1058
  let u;
1059
- n[9] !== i ? (u = i && /* @__PURE__ */ a(et.ItemText, { children: i }), n[9] = i, n[10] = u) : u = n[10];
1059
+ n[9] !== i ? (u = i && /* @__PURE__ */ a(tt.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(et.Item, { ref: r, ...s, children: [
1061
+ return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (f = /* @__PURE__ */ y(tt.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
- }), mn = et.Root, At = ce.memo(function(e) {
1067
- const o = x(29);
1066
+ }), gn = tt.Root, zt = de.memo(function(e) {
1067
+ const o = C(29);
1068
1068
  let n, i, l, s, r, c, d;
1069
1069
  if (o[0] !== e) {
1070
1070
  const {
1071
1071
  ref: v,
1072
- ...C
1072
+ ...x
1073
1073
  } = e;
1074
1074
  l = v;
1075
1075
  const {
1076
- marks: T,
1077
- label: k,
1078
- showValue: I,
1076
+ marks: k,
1077
+ label: I,
1078
+ showValue: T,
1079
1079
  ...R
1080
- } = C;
1081
- n = k, r = I, s = R, d = C.defaultValue ?? C.value, i = T?.map(Mi), c = i?.some(zi), o[0] = e, o[1] = n, o[2] = i, o[3] = l, o[4] = s, o[5] = r, o[6] = c, o[7] = d;
1080
+ } = x;
1081
+ n = I, r = T, s = R, d = x.defaultValue ?? x.value, i = k?.map(Pi), c = i?.some(Ei), 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;
1085
1085
  let f;
1086
- o[8] !== n || o[9] !== r ? (f = n && !r && /* @__PURE__ */ a(de.Label, { children: n }), o[8] = n, o[9] = r, o[10] = f) : f = o[10];
1086
+ o[8] !== n || o[9] !== r ? (f = n && !r && /* @__PURE__ */ a(fe.Label, { children: n }), o[8] = n, o[9] = r, o[10] = f) : f = o[10];
1087
1087
  let h;
1088
- o[11] !== n || o[12] !== r ? (h = n && r && /* @__PURE__ */ y(ae, { justify: "space-between", children: [
1089
- /* @__PURE__ */ a(de.Label, { children: n }),
1090
- /* @__PURE__ */ a(de.ValueText, {})
1088
+ o[11] !== n || o[12] !== r ? (h = n && r && /* @__PURE__ */ y(ce, { justify: "space-between", children: [
1089
+ /* @__PURE__ */ a(fe.Label, { children: n }),
1090
+ /* @__PURE__ */ a(fe.ValueText, {})
1091
1091
  ] }), o[11] = n, o[12] = r, o[13] = h) : h = o[13];
1092
1092
  const m = u || void 0;
1093
1093
  let g;
1094
- o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(de.Track, { children: /* @__PURE__ */ a(de.Range, {}) }), o[14] = g) : g = o[14];
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($i, { value: d }), o[15] = d, o[16] = p) : p = o[16];
1096
+ o[15] !== d ? (p = /* @__PURE__ */ a(wi, { value: d }), o[15] = d, o[16] = p) : p = o[16];
1097
1097
  let b;
1098
- o[17] !== i ? (b = /* @__PURE__ */ a(Oi, { marks: i }), o[17] = i, o[18] = b) : b = o[18];
1098
+ o[17] !== i ? (b = /* @__PURE__ */ a(zi, { marks: i }), o[17] = i, o[18] = b) : b = o[18];
1099
1099
  let S;
1100
- o[19] !== m || o[20] !== p || o[21] !== b ? (S = /* @__PURE__ */ y(de.Control, { "data-has-mark-label": m, children: [
1100
+ o[19] !== m || o[20] !== p || o[21] !== b ? (S = /* @__PURE__ */ y(fe.Control, { "data-has-mark-label": m, children: [
1101
1101
  g,
1102
1102
  p,
1103
1103
  b
1104
1104
  ] }), o[19] = m, o[20] = p, o[21] = b, o[22] = S) : S = o[22];
1105
1105
  let _;
1106
- return o[23] !== l || o[24] !== s || o[25] !== f || o[26] !== h || o[27] !== S ? (_ = /* @__PURE__ */ y(de.Root, { ref: l, thumbAlignment: "center", ...s, children: [
1106
+ return o[23] !== l || o[24] !== s || o[25] !== f || o[26] !== h || o[27] !== S ? (_ = /* @__PURE__ */ y(fe.Root, { ref: l, thumbAlignment: "center", ...s, children: [
1107
1107
  f,
1108
1108
  h,
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 $i(t) {
1113
- const e = x(2), {
1112
+ function wi(t) {
1113
+ const e = C(2), {
1114
1114
  value: o
1115
1115
  } = t;
1116
1116
  let n;
1117
- return e[0] !== o ? (n = /* @__PURE__ */ a(yn, { each: o, children: Ri }), e[0] = o, e[1] = n) : n = e[1], n;
1117
+ return e[0] !== o ? (n = /* @__PURE__ */ a(In, { each: o, children: Ai }), e[0] = o, e[1] = n) : n = e[1], n;
1118
1118
  }
1119
- function Ri(t, e) {
1120
- return /* @__PURE__ */ a(de.Thumb, { index: e, children: /* @__PURE__ */ a(de.HiddenInput, {}) }, e);
1119
+ function Ai(t, e) {
1120
+ return /* @__PURE__ */ a(fe.Thumb, { index: e, children: /* @__PURE__ */ a(fe.HiddenInput, {}) }, e);
1121
1121
  }
1122
- const Oi = ce.forwardRef(function(e, o) {
1123
- const n = x(5), {
1122
+ const zi = de.forwardRef(function(e, o) {
1123
+ const n = C(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(Ai), n[0] = i, n[1] = l) : l = n[1];
1129
+ n[0] !== i ? (l = i.map(Di), n[0] = i, n[1] = l) : l = n[1];
1130
1130
  let s;
1131
- return n[2] !== o || n[3] !== l ? (s = /* @__PURE__ */ a(de.MarkerGroup, { ref: o, children: l }), n[2] = o, n[3] = l, n[4] = s) : s = n[4], s;
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 Mi(t) {
1133
+ function Pi(t) {
1134
1134
  return typeof t == "number" ? {
1135
1135
  value: t,
1136
1136
  label: void 0
1137
1137
  } : t;
1138
1138
  }
1139
- function zi(t) {
1139
+ function Ei(t) {
1140
1140
  return t.label;
1141
1141
  }
1142
- function Ai(t, e) {
1142
+ function Di(t, e) {
1143
1143
  const o = typeof t == "number" ? t : t.value, n = typeof t == "number" ? void 0 : t.label;
1144
- return /* @__PURE__ */ y(de.Marker, { value: o, children: [
1145
- /* @__PURE__ */ a(de.MarkerIndicator, {}),
1144
+ return /* @__PURE__ */ y(fe.Marker, { value: o, children: [
1145
+ /* @__PURE__ */ a(fe.MarkerIndicator, {}),
1146
1146
  n
1147
1147
  ] }, e);
1148
1148
  }
1149
- const wt = [{
1149
+ const Pt = [{
1150
1150
  value: "global",
1151
1151
  references: ["global"]
1152
1152
  }, {
@@ -1155,11 +1155,11 @@ const wt = [{
1155
1155
  }, {
1156
1156
  value: "screen",
1157
1157
  references: ["mobile", "tablet", "desktop"]
1158
- }], wi = wt.map((t) => t.value), Gt = wt.flatMap((t) => t.references), Pi = (t) => {
1158
+ }], Bi = Pt.map((t) => t.value), Ut = Pt.flatMap((t) => t.references), Fi = (t) => {
1159
1159
  if (t)
1160
- return wt.find((e) => e.references.includes(t))?.value;
1161
- }, Ei = L(() => {
1162
- const t = x(52), e = Ze();
1160
+ return Pt.find((e) => e.references.includes(t))?.value;
1161
+ }, Li = N(() => {
1162
+ const t = C(52), e = Ze();
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,67 +1173,67 @@ const wt = [{
1173
1173
  fontSizeValues: u,
1174
1174
  onFontSizeChange: f,
1175
1175
  onFontSizeScopeChange: h
1176
- } = oe(o), m = s === void 0 ? l : s, g = Un(f), [p, b] = ne(d ?? "global");
1176
+ } = ie(o), m = s === void 0 ? l : s, g = jn(f), [p, b] = ne(d ?? "global");
1177
1177
  let S;
1178
- t[1] !== e || t[2] !== g ? (S = (F, se) => {
1179
- g.current ? g.current(F, se) : e.update((be) => ({
1180
- ...be,
1181
- uncontrolledFontSize: se
1178
+ t[1] !== e || t[2] !== g ? (S = (L, re) => {
1179
+ g.current ? g.current(L, re) : e.update((Se) => ({
1180
+ ...Se,
1181
+ uncontrolledFontSize: re
1182
1182
  }));
1183
1183
  }, t[1] = e, t[2] = g, t[3] = S) : S = t[3];
1184
1184
  const _ = S;
1185
1185
  let v;
1186
- t[4] !== m || t[5] !== u ? (v = (F) => u?.[F] ?? m, t[4] = m, t[5] = u, t[6] = v) : v = t[6];
1187
- const C = v;
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
+ const x = v;
1188
+ let k;
1189
+ t[7] !== h ? (k = (L) => {
1190
+ const re = L.value;
1191
+ h?.(re);
1192
+ }, t[7] = h, t[8] = k) : k = t[8];
1193
+ const I = k;
1188
1194
  let T;
1189
- t[7] !== h ? (T = (F) => {
1190
- const se = F.value;
1191
- h?.(se);
1192
- }, t[7] = h, t[8] = T) : T = t[8];
1193
- const k = T;
1194
- let I;
1195
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (F) => {
1196
- b(F.value);
1197
- }, t[9] = I) : I = t[9];
1198
- const R = I;
1195
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = (L) => {
1196
+ b(L.value);
1197
+ }, t[9] = T) : T = t[9];
1198
+ const R = T;
1199
1199
  let P;
1200
- t[10] !== _ || t[11] !== p ? (P = (F) => {
1201
- const se = F.value[0] ?? 0;
1202
- _(p, se / 100);
1200
+ t[10] !== _ || t[11] !== p ? (P = (L) => {
1201
+ const re = L.value[0] ?? 0;
1202
+ _(p, re / 100);
1203
1203
  }, t[10] = _, t[11] = p, t[12] = P) : P = t[12];
1204
1204
  const E = P;
1205
- let z, O;
1206
- t[13] !== d ? (z = function() {
1205
+ let M, w;
1206
+ t[13] !== d ? (M = function() {
1207
1207
  b(d ?? "global");
1208
- }, O = [d], t[13] = d, t[14] = z, t[15] = O) : (z = t[14], O = t[15]), ie(z, O);
1208
+ }, w = [d], t[13] = d, t[14] = M, t[15] = w) : (M = t[14], w = t[15]), oe(M, w);
1209
1209
  let A;
1210
- t[16] !== i ? (A = (F) => {
1211
- i(F.open);
1210
+ t[16] !== i ? (A = (L) => {
1211
+ i(L.open);
1212
1212
  }, t[16] = i, t[17] = A) : A = t[17];
1213
1213
  let $;
1214
- t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Oe, { children: "Font size" }) }), t[18] = $) : $ = t[18];
1215
- let M, w;
1216
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(Ce.Legend, { children: "Scope" }), w = /* @__PURE__ */ a(Ce.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = M, t[20] = w) : (M = t[19], w = t[20]);
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
+ let O, z;
1216
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(Ce.Legend, { children: "Scope" }), z = /* @__PURE__ */ a(Ce.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 = Pi(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
1219
- const B = !h;
1220
- let Q;
1221
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(ae, { gap: 2, children: wi.map(Di) }), t[23] = Q) : Q = t[23];
1222
- let W;
1223
- t[24] !== k || t[25] !== D || t[26] !== B ? (W = /* @__PURE__ */ y(Ce.Root, { children: [
1224
- M,
1225
- w,
1226
- /* @__PURE__ */ a(Ce.Content, { children: /* @__PURE__ */ a(mn, { onValueChange: k, value: D, disabled: B, children: Q }) })
1227
- ] }), t[24] = k, t[25] = D, t[26] = B, t[27] = W) : W = t[27];
1228
- let H;
1229
- t[28] !== d ? (H = Gt.map((F) => /* @__PURE__ */ y(me.Trigger, { value: F, textTransform: "capitalize", disabled: F !== "global" && !d, children: [
1230
- d === F && /* @__PURE__ */ a(An, {}),
1231
- F
1232
- ] }, F)), t[28] = d, t[29] = H) : H = t[29];
1233
- let j;
1234
- t[30] !== H ? (j = /* @__PURE__ */ a(me.List, { children: H }), t[30] = H, t[31] = j) : j = t[31];
1218
+ t[21] !== d ? (D = Fi(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
1219
+ const F = !h;
1220
+ let Y;
1221
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(ce, { gap: 2, children: Bi.map(Ni) }), t[23] = Y) : Y = t[23];
1222
+ let V;
1223
+ t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(Ce.Root, { children: [
1224
+ O,
1225
+ z,
1226
+ /* @__PURE__ */ a(Ce.Content, { children: /* @__PURE__ */ a(gn, { onValueChange: I, value: D, disabled: F, children: Y }) })
1227
+ ] }), t[24] = I, t[25] = D, t[26] = F, t[27] = V) : V = t[27];
1235
1228
  let G;
1236
- t[32] !== c || t[33] !== r || t[34] !== C || t[35] !== E ? (G = Gt.map((F) => /* @__PURE__ */ a(me.Content, { value: F, children: /* @__PURE__ */ a(At, { label: "%", value: [(C(F) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
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
+ let W;
1234
+ t[30] !== G ? (W = /* @__PURE__ */ a(me.List, { children: G }), t[30] = G, t[31] = W) : W = t[31];
1235
+ let q;
1236
+ t[32] !== c || t[33] !== r || t[34] !== x || t[35] !== E ? (q = Ut.map((L) => /* @__PURE__ */ a(me.Content, { value: L, children: /* @__PURE__ */ a(zt, { label: "%", value: [(x(L) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
1237
1237
  value: 100,
1238
1238
  label: "Publisher"
1239
1239
  }, {
@@ -1242,40 +1242,40 @@ const wt = [{
1242
1242
  }, {
1243
1243
  value: c * 100,
1244
1244
  label: `${c * 100}%`
1245
- }], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, F)), t[32] = c, t[33] = r, t[34] = C, t[35] = E, t[36] = G) : G = t[36];
1246
- let U;
1247
- t[37] !== j || t[38] !== G || t[39] !== p ? (U = /* @__PURE__ */ y(me.Root, { value: p, onValueChange: R, fitted: !1, size: "sm", children: [
1248
- j,
1249
- G
1250
- ] }), t[37] = j, t[38] = G, t[39] = p, t[40] = U) : U = t[40];
1251
- let X;
1252
- t[41] !== W || t[42] !== U ? (X = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ y(J, { gap: 4, flex: 1, children: [
1245
+ }], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, L)), t[32] = c, t[33] = r, t[34] = x, t[35] = E, t[36] = q) : q = t[36];
1246
+ let Z;
1247
+ t[37] !== W || t[38] !== q || t[39] !== p ? (Z = /* @__PURE__ */ y(me.Root, { value: p, onValueChange: R, fitted: !1, size: "sm", children: [
1253
1248
  W,
1254
- U
1255
- ] }) }), t[41] = W, t[42] = U, t[43] = X) : X = t[43];
1256
- let K, V;
1257
- t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(fe, { variant: "outline", children: "Close" }) }) }), V = /* @__PURE__ */ a(ke, {}), t[44] = K, t[45] = V) : (K = t[44], V = t[45]);
1258
- let Y;
1259
- t[46] !== X ? (Y = /* @__PURE__ */ y(ye, { maxH: "40vh", overflow: "auto", children: [
1249
+ q
1250
+ ] }), t[37] = W, t[38] = q, t[39] = p, t[40] = Z) : Z = t[40];
1251
+ let K;
1252
+ t[41] !== V || t[42] !== Z ? (K = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(ee, { gap: 4, flex: 1, children: [
1253
+ V,
1254
+ Z
1255
+ ] }) }), t[41] = V, t[42] = Z, t[43] = K) : K = t[43];
1256
+ let Q, X;
1257
+ t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), X = /* @__PURE__ */ a(ke, {}), t[44] = Q, t[45] = X) : (Q = t[44], X = t[45]);
1258
+ let B;
1259
+ t[46] !== K ? (B = /* @__PURE__ */ y(Ie, { maxH: "40vh", overflow: "auto", children: [
1260
1260
  $,
1261
- X,
1262
1261
  K,
1263
- V
1264
- ] }), t[46] = X, t[47] = Y) : Y = t[47];
1265
- let le;
1266
- return t[48] !== n || t[49] !== Y || t[50] !== A ? (le = /* @__PURE__ */ a(Te, { lazyMount: !0, open: n, onOpenChange: A, placement: "center", children: Y }), t[48] = n, t[49] = Y, t[50] = A, t[51] = le) : le = t[51], le;
1262
+ Q,
1263
+ X
1264
+ ] }), t[46] = K, t[47] = B) : B = t[47];
1265
+ let se;
1266
+ return t[48] !== n || t[49] !== B || t[50] !== A ? (se = /* @__PURE__ */ a(Te, { lazyMount: !0, open: n, onOpenChange: A, placement: "center", children: B }), t[48] = n, t[49] = B, t[50] = A, t[51] = se) : se = t[51], se;
1267
1267
  });
1268
- function Di(t) {
1269
- return /* @__PURE__ */ a(tt, { value: t, children: t }, t);
1268
+ function Ni(t) {
1269
+ return /* @__PURE__ */ a(nt, { value: t, children: t }, t);
1270
1270
  }
1271
- const Bi = () => {
1272
- const t = x(8), e = Z(), o = Ze();
1271
+ const Hi = () => {
1272
+ const t = C(8), e = j(), o = Ze();
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 {
1276
1276
  fontSize: i,
1277
1277
  uncontrolledFontSize: l
1278
- } = oe(n), s = i ?? l;
1278
+ } = ie(n), s = i ?? l;
1279
1279
  let r, c;
1280
1280
  t[1] !== s || t[2] !== e ? (r = function() {
1281
1281
  if (e && s) {
@@ -1286,10 +1286,10 @@ const Bi = () => {
1286
1286
  }, 200);
1287
1287
  return () => clearTimeout(h);
1288
1288
  }
1289
- }, c = [e, s], t[1] = s, t[2] = e, t[3] = r, t[4] = c) : (r = t[3], c = t[4]), ie(r, c);
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(te(Fi)).subscribe((h) => {
1292
+ return e?.settings.values$.pipe(J(Vi)).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 Bi = () => {
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 Fi(t) {
1301
+ function Vi(t) {
1302
1302
  return t.fontScale;
1303
1303
  }
1304
- const Li = {
1304
+ const Wi = {
1305
1305
  x: 0,
1306
1306
  y: 0,
1307
1307
  width: 0,
@@ -1311,8 +1311,8 @@ const Li = {
1311
1311
  bottom: 0,
1312
1312
  right: 0
1313
1313
  };
1314
- function Ni() {
1315
- const t = x(7), [e, o] = ne(null), [n, i] = ne(Li);
1314
+ function Gi() {
1315
+ const t = C(7), [e, o] = ne(null), [n, i] = ne(Wi);
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,49 +1345,49 @@ function Ni() {
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]), Rn(r, c);
1348
+ }, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]), Mn(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 Hi = (t, e, o) => {
1353
- const n = x(7), i = Z();
1352
+ const Ui = (t, e, o) => {
1353
+ const n = C(7), i = j();
1354
1354
  let l;
1355
- n[0] !== i ? (l = cn(i) ? i : void 0, n[0] = i, n[1] = l) : l = n[1];
1355
+ n[0] !== i ? (l = dn(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 pt;
1361
- const d = e.didLayout$.pipe(Qt(e.layoutInfo), Ye(on)), u = to(t).pipe(te(Wi));
1360
+ return at;
1361
+ const d = e.didLayout$.pipe(Qt(e.layoutInfo), xe(ln)), u = oo(t).pipe(J(qi));
1362
1362
  return d.pipe(Xt(100, void 0, {
1363
1363
  trailing: !0
1364
- }), ve(() => u.pipe(gt((f) => {
1364
+ }), be(() => u.pipe(bt((f) => {
1365
1365
  f || (t.innerHTML = "");
1366
- }), lt(Gi), Jt()).pipe(ve(() => (t.innerHTML = "", s?.gallery.snapshot(e, t, o))))));
1366
+ }), st(Ki), Jt()).pipe(be(() => (t.innerHTML = "", s?.gallery.snapshot(e, t, o))))));
1367
1367
  }, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6], pe(r);
1368
1368
  };
1369
- function Vi(t) {
1369
+ function ji(t) {
1370
1370
  return t.isIntersecting;
1371
1371
  }
1372
- function Wi(t) {
1373
- return t.some(Vi);
1372
+ function qi(t) {
1373
+ return t.some(ji);
1374
1374
  }
1375
- function Gi(t) {
1375
+ function Ki(t) {
1376
1376
  return t;
1377
1377
  }
1378
- const Ui = L((t) => {
1379
- const e = x(16), {
1378
+ const Yi = N((t) => {
1379
+ const e = C(16), {
1380
1380
  item: o,
1381
1381
  onNavigated: n
1382
- } = t, [i, l, s] = Ni(), r = Z();
1383
- Hi(s, o, l);
1382
+ } = t, [i, l, s] = Gi(), r = j();
1383
+ Ui(s, o, l);
1384
1384
  let c, d;
1385
1385
  e[0] !== o || e[1] !== r ? (c = () => r?.locateResource(o, {
1386
1386
  mode: "shallow"
1387
1387
  }), d = [r, o], e[0] = o, e[1] = r, e[2] = c, e[3] = d) : (c = e[2], d = e[3]);
1388
1388
  const {
1389
1389
  data: u
1390
- } = N(c, d);
1390
+ } = H(c, d);
1391
1391
  let f;
1392
1392
  e[4] !== o || e[5] !== n || e[6] !== r?.navigation ? (f = () => {
1393
1393
  n(), r?.navigation.goToSpineItem({
@@ -1395,30 +1395,30 @@ const Ui = L((t) => {
1395
1395
  });
1396
1396
  }, e[4] = o, e[5] = n, e[6] = r?.navigation, e[7] = f) : f = e[7];
1397
1397
  let h;
1398
- e[8] !== i ? (h = /* @__PURE__ */ a(he, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: i }), e[8] = i, e[9] = h) : h = e[9];
1398
+ e[8] !== i ? (h = /* @__PURE__ */ a(le, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: i }), e[8] = i, e[9] = h) : h = e[9];
1399
1399
  const m = (u?.meta?.absolutePageIndex ?? 0) + 1;
1400
1400
  let g;
1401
- e[10] !== m ? (g = /* @__PURE__ */ y(q, { position: "absolute", bottom: 0, left: "0", right: "0", textAlign: "center", bgColor: "white", p: 4, fontSize: "xs", children: [
1401
+ e[10] !== m ? (g = /* @__PURE__ */ y(U, { position: "absolute", bottom: 0, left: "0", right: "0", textAlign: "center", bgColor: "white", p: 4, fontSize: "xs", children: [
1402
1402
  "Page ",
1403
1403
  m
1404
1404
  ] }), e[10] = m, e[11] = g) : g = e[11];
1405
1405
  let p;
1406
- return e[12] !== f || e[13] !== h || e[14] !== g ? (p = /* @__PURE__ */ y(he, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: f, children: [
1406
+ return e[12] !== f || e[13] !== h || e[14] !== g ? (p = /* @__PURE__ */ y(le, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: f, children: [
1407
1407
  h,
1408
1408
  g
1409
1409
  ] }), e[12] = f, e[13] = h, e[14] = g, e[15] = p) : p = e[15], p;
1410
- }), qi = L((t) => {
1411
- const e = x(23), {
1410
+ }), Zi = N((t) => {
1411
+ const e = C(23), {
1412
1412
  open: o,
1413
1413
  setOpen: n
1414
- } = t, i = Z();
1414
+ } = t, i = j();
1415
1415
  let l;
1416
1416
  e[0] !== i?.spineItemsManager.items$ ? (l = () => i?.spineItemsManager.items$, e[0] = i?.spineItemsManager.items$, e[1] = l) : l = e[1];
1417
1417
  let s;
1418
1418
  e[2] !== i ? (s = [i], e[2] = i, e[3] = s) : s = e[3];
1419
1419
  const {
1420
1420
  data: r
1421
- } = N(l, s);
1421
+ } = H(l, s);
1422
1422
  let c;
1423
1423
  e[4] !== n ? (c = (v) => n(v.open), e[4] = n, e[5] = c) : c = e[5];
1424
1424
  let d;
@@ -1427,21 +1427,21 @@ const Ui = L((t) => {
1427
1427
  md: "lg"
1428
1428
  }, e[6] = d) : d = e[6];
1429
1429
  let u;
1430
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Oe, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1430
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1431
1431
  let f;
1432
1432
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = ["repeat(2, minmax(0, 1fr))", "repeat(3, minmax(0, 1fr))"], e[8] = f) : f = e[8];
1433
1433
  let h;
1434
1434
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [2, 4], e[9] = h) : h = e[9];
1435
1435
  let m;
1436
- e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Ui, { item: v, onNavigated: () => {
1436
+ e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Yi, { item: v, onNavigated: () => {
1437
1437
  n(!1);
1438
1438
  } }, v.item.id)), e[10] = r, e[11] = n, e[12] = m) : m = e[12];
1439
1439
  let g;
1440
- e[13] !== m ? (g = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(he, { gridTemplateColumns: f, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
1440
+ 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
1441
  let p, b;
1442
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(fe, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(ke, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
1442
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(ke, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
1443
1443
  let S;
1444
- e[17] !== g ? (S = /* @__PURE__ */ y(ye, { height: "100%", children: [
1444
+ e[17] !== g ? (S = /* @__PURE__ */ y(Ie, { height: "100%", children: [
1445
1445
  u,
1446
1446
  g,
1447
1447
  p,
@@ -1449,8 +1449,8 @@ const Ui = L((t) => {
1449
1449
  ] }), e[17] = g, e[18] = S) : S = e[18];
1450
1450
  let _;
1451
1451
  return e[19] !== o || e[20] !== S || e[21] !== c ? (_ = /* @__PURE__ */ a(Te, { 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], _;
1452
- }), ji = "@prose-reader/react-reader", Yi = "1.290.0", Zi = L((t) => {
1453
- const e = x(16), {
1452
+ }), Qi = "@prose-reader/react-reader", Xi = "1.292.0", Ji = N((t) => {
1453
+ const e = C(16), {
1454
1454
  open: o,
1455
1455
  setOpen: n
1456
1456
  } = t;
@@ -1462,96 +1462,96 @@ const Ui = L((t) => {
1462
1462
  md: "lg"
1463
1463
  }, e[2] = l) : l = e[2];
1464
1464
  let s;
1465
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Oe, { children: "Help" }) }), e[3] = s) : s = e[3];
1465
+ 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
1466
  let r;
1467
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Ct, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = r) : r = e[4];
1467
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = r) : r = e[4];
1468
1468
  let c;
1469
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Dt, { children: /* @__PURE__ */ a(wn, {}) }), e[5] = c) : c = e[5];
1469
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(Pn, {}) }), e[5] = c) : c = e[5];
1470
1470
  let d;
1471
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ y(ae, { mb: 1, children: [
1471
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ y(ce, { mb: 1, children: [
1472
1472
  c,
1473
1473
  " ",
1474
- /* @__PURE__ */ a(q, { children: "Navigate to right page" })
1474
+ /* @__PURE__ */ a(U, { children: "Navigate to right page" })
1475
1475
  ] }), e[6] = d) : d = e[6];
1476
1476
  let u;
1477
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Dt, { children: /* @__PURE__ */ a(Pn, {}) }), e[7] = u) : u = e[7];
1477
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(En, {}) }), e[7] = u) : u = e[7];
1478
1478
  let f;
1479
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(J, { children: [
1479
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(ee, { children: [
1480
1480
  r,
1481
1481
  d,
1482
- /* @__PURE__ */ y(ae, { mb: 1, children: [
1482
+ /* @__PURE__ */ y(ce, { mb: 1, children: [
1483
1483
  u,
1484
1484
  " ",
1485
- /* @__PURE__ */ a(q, { children: "Navigate to left page" })
1485
+ /* @__PURE__ */ a(U, { children: "Navigate to left page" })
1486
1486
  ] })
1487
1487
  ] }), e[8] = f) : f = e[8];
1488
1488
  let h;
1489
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(Ct, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
1489
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
1490
1490
  let m;
1491
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(J, { children: [
1491
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ee, { children: [
1492
1492
  h,
1493
- /* @__PURE__ */ a(ae, { mb: 1, children: /* @__PURE__ */ a(q, { children: "Tap on the top right corner of a page bookmark it" }) })
1493
+ /* @__PURE__ */ a(ce, { mb: 1, children: /* @__PURE__ */ a(U, { children: "Tap on the top right corner of a page bookmark it" }) })
1494
1494
  ] }), e[10] = m) : m = e[10];
1495
1495
  let g;
1496
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ y(Re, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1496
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ y(Me, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1497
1497
  f,
1498
1498
  m,
1499
- /* @__PURE__ */ y(J, { children: [
1500
- /* @__PURE__ */ a(Ct, { mb: 2, as: "h3", size: "lg", children: "About" }),
1501
- /* @__PURE__ */ y(q, { children: [
1502
- ji,
1499
+ /* @__PURE__ */ y(ee, { children: [
1500
+ /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "About" }),
1501
+ /* @__PURE__ */ y(U, { children: [
1502
+ Qi,
1503
1503
  " version: ",
1504
- Yi
1504
+ Xi
1505
1505
  ] })
1506
1506
  ] })
1507
1507
  ] }), e[11] = g) : g = e[11];
1508
1508
  let p;
1509
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(ye, { children: [
1509
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(Ie, { children: [
1510
1510
  s,
1511
1511
  g,
1512
- /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(fe, { variant: "outline", children: "Cancel" }) }) }),
1512
+ /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }),
1513
1513
  /* @__PURE__ */ a(ke, {})
1514
1514
  ] }), e[12] = p) : p = e[12];
1515
1515
  let b;
1516
1516
  return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a(Te, { 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;
1517
- }), Ke = () => {
1518
- const t = x(3), e = Z();
1517
+ }), Xe = () => {
1518
+ const t = C(3), e = j();
1519
1519
  let o, n;
1520
- return t[0] !== e ? (o = () => e ? Kt([e.pagination.state$, e.context]).pipe(te(Ki)) : pt, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), N(o, n).data;
1520
+ return t[0] !== e ? (o = () => e ? St([e.pagination.state$, e.context]).pipe(J(tl)) : at, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1521
1521
  };
1522
- function Qi(t) {
1522
+ function el(t) {
1523
1523
  return t.mediaType?.startsWith("image/");
1524
1524
  }
1525
- function Ki(t) {
1526
- const [e, o] = t, n = o.manifest?.spineItems.every(Qi);
1525
+ function tl(t) {
1526
+ const [e, o] = t, n = o.manifest?.spineItems.every(el);
1527
1527
  return {
1528
1528
  ...e,
1529
1529
  hasChapters: !o.isFullyPrePaginated && !n
1530
1530
  };
1531
1531
  }
1532
- const Xi = {
1532
+ const nl = {
1533
1533
  _open: "fade-in",
1534
1534
  _closed: "fade-out"
1535
- }, Ji = () => {
1536
- const t = x(6);
1535
+ }, ol = () => {
1536
+ const t = C(6);
1537
1537
  let e;
1538
1538
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["enableFloatingProgress", "quickMenuOpen"], t[0] = e) : e = t[0];
1539
1539
  const {
1540
1540
  enableFloatingProgress: o,
1541
1541
  quickMenuOpen: n
1542
- } = oe(e), i = Ke(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
1542
+ } = ie(e), i = Xe(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
1543
1543
  if (i?.percentageEstimateOfBook === void 0 || !o)
1544
1544
  return null;
1545
1545
  const r = !n;
1546
1546
  let c;
1547
- t[1] !== s ? (c = /* @__PURE__ */ a(he, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ y(q, { fontSize: "sm", children: [
1547
+ t[1] !== s ? (c = /* @__PURE__ */ a(le, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ y(U, { fontSize: "sm", children: [
1548
1548
  s,
1549
1549
  " %"
1550
1550
  ] }) }), t[1] = s, t[2] = c) : c = t[2];
1551
1551
  let d;
1552
- return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(rt, { present: r, animationName: Xi, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = d) : d = t[5], d;
1553
- }, el = () => {
1554
- const t = x(3);
1552
+ return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(Ye, { present: r, animationName: nl, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = d) : d = t[5], d;
1553
+ }, il = () => {
1554
+ const t = C(3);
1555
1555
  let e;
1556
1556
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Date(), t[0] = e) : e = t[0];
1557
1557
  const [o, n] = ne(e);
@@ -1561,46 +1561,123 @@ const Xi = {
1561
1561
  n(/* @__PURE__ */ new Date());
1562
1562
  }, 6e4);
1563
1563
  return () => clearInterval(s);
1564
- }, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), ie(i, l), o;
1565
- }, tl = (t) => {
1566
- const e = x(5), o = el();
1564
+ }, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), oe(i, l), o;
1565
+ }, ll = (t) => {
1566
+ const e = C(5), o = il();
1567
1567
  let n;
1568
1568
  e[0] !== o ? (n = o.toLocaleTimeString(navigator.language, {
1569
1569
  hour: "2-digit",
1570
1570
  minute: "2-digit"
1571
1571
  }), e[0] = o, e[1] = n) : n = e[1];
1572
1572
  let i;
1573
- return e[2] !== t || e[3] !== n ? (i = /* @__PURE__ */ a(q, { fontSize: "sm", ...t, children: n }), e[2] = t, e[3] = n, e[4] = i) : i = e[4], i;
1574
- }, nl = L(() => {
1575
- const t = x(1);
1573
+ 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
+ }, sl = N(() => {
1575
+ const t = C(1);
1576
1576
  let e;
1577
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(he, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(tl, {}) }), t[0] = e) : e = t[0], e;
1578
- }), ol = () => {
1579
- const t = x(2), e = Z();
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(ll, {}) }), t[0] = e) : e = t[0], e;
1578
+ }), rl = (t, e) => {
1579
+ const o = C(4), [n, i] = ne();
1580
+ let l, s;
1581
+ return o[0] !== e || o[1] !== t ? (l = () => {
1582
+ if (t === void 0) {
1583
+ i(void 0);
1584
+ return;
1585
+ }
1586
+ i(t);
1587
+ const r = window.setTimeout(() => {
1588
+ i((c) => Object.is(c, t) ? void 0 : c);
1589
+ }, e);
1590
+ return () => {
1591
+ window.clearTimeout(r);
1592
+ };
1593
+ }, 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
+ }, al = "_pulse_1detk_1", cl = {
1595
+ pulse: al
1596
+ }, dl = 100, fl = 900, ul = {
1597
+ _open: "fade-in",
1598
+ _closed: "fade-out"
1599
+ }, hl = ({
1600
+ manifest: t,
1601
+ viewport: e
1602
+ }) => e.width === e.height ? !1 : io({
1603
+ manifest: t,
1604
+ viewport: {
1605
+ height: e.width,
1606
+ width: e.height
1607
+ }
1608
+ }), ml = ({
1609
+ manifest: t,
1610
+ pagination: e,
1611
+ computedSpreadMode: o,
1612
+ viewportState: n,
1613
+ viewport: i
1614
+ }) => {
1615
+ if (!(n !== "free" || o || !hl({
1616
+ manifest: t,
1617
+ viewport: i
1618
+ }) || !(e.beginHasAdjacentSpreadPage || e.endHasAdjacentSpreadPage)))
1619
+ return [e.beginSpineItemIndex, e.beginPageIndexInSpineItem, e.endSpineItemIndex, e.endPageIndexInSpineItem].map((s) => s ?? "none").join(":");
1620
+ }, gl = (t) => t.pagination.state$.pipe(on(["beginHasAdjacentSpreadPage", "beginPageIndexInSpineItem", "beginSpineItemIndex", "endHasAdjacentSpreadPage", "endPageIndexInSpineItem", "endSpineItemIndex"]), Zn({
1621
+ bufferSize: 1,
1622
+ refCount: !0
1623
+ })), pl = ({
1624
+ pagination$: t,
1625
+ reader: e
1626
+ }) => St([t, e.spineItemsManager.items$]).pipe(J(([{
1627
+ beginSpineItemIndex: o
1628
+ }, n]) => o === void 0 ? void 0 : n[o]), xe(), be((o) => o?.isReady$ ?? gt(!1))), bl = (t) => {
1629
+ const e = gl(t), o = pl({
1630
+ pagination$: e,
1631
+ reader: t
1632
+ });
1633
+ return St([e, t.context.manifest$, t.settings.watch(["computedSpreadMode"]), t.viewportState$, t.viewport.watch(["width", "height"]), o]).pipe(Yn(dl), J(([n, i, l, s, r, c]) => {
1634
+ if (c)
1635
+ return ml({
1636
+ manifest: i,
1637
+ pagination: n,
1638
+ computedSpreadMode: l.computedSpreadMode ?? !1,
1639
+ viewportState: s,
1640
+ viewport: r
1641
+ });
1642
+ }), xe());
1643
+ }, Sl = () => {
1644
+ const t = C(3), e = j();
1645
+ let o, n;
1646
+ return t[0] !== e ? (o = () => e ? bl(e) : at, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1647
+ }, _l = N(() => {
1648
+ const t = C(6), e = Sl(), o = rl(e, fl), n = o !== void 0;
1649
+ let i;
1650
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(le, { alignItems: "center", bg: "rgba(12, 12, 12, 0.56)", borderRadius: "full", boxShadow: "0 16px 40px rgba(0, 0, 0, 0.24)", className: cl.pulse, color: "white", display: "flex", height: "68px", justifyContent: "center", width: "68px", children: /* @__PURE__ */ a(ro, { focusable: !1, size: 34 }) }), t[0] = i) : i = t[0];
1651
+ 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];
1653
+ let s;
1654
+ return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(Ye, { present: n, lazyMount: !0, animationName: ul, animationDuration: "moderate", children: l }), t[3] = n, t[4] = l, t[5] = s) : s = t[5], s;
1655
+ }), vl = () => {
1656
+ const t = C(2), e = j();
1580
1657
  let o;
1581
- t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(il), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
1658
+ t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(xl), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
1582
1659
  };
1583
- function il(t) {
1584
- if (t.type === "click" && no(t.target, "a")) {
1660
+ function xl(t) {
1661
+ if (t.type === "click" && lo(t.target, "a")) {
1585
1662
  if (!t.target.href)
1586
1663
  return;
1587
1664
  const e = new URL(t.target.href);
1588
1665
  window.location.host !== e.host && confirm("You are going to be redirected to external link") && window.open(t.target.href, "__blank");
1589
1666
  }
1590
1667
  }
1591
- const ll = () => {
1592
- const t = x(3);
1668
+ const Cl = () => {
1669
+ const t = C(3);
1593
1670
  let e;
1594
1671
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["notificationsSubject"], t[0] = e) : e = t[0];
1595
1672
  const {
1596
1673
  notificationsSubject: o
1597
- } = oe(e);
1674
+ } = ie(e);
1598
1675
  let n;
1599
- t[1] !== o ? (n = () => o.pipe(lt(Zt), Yn((l) => {
1600
- const s = l.duration ?? 3e3, r = new Zn((d) => {
1676
+ t[1] !== o ? (n = () => o.pipe(st(Zt), Qn((l) => {
1677
+ const s = l.duration ?? 3e3, r = new Xn((d) => {
1601
1678
  try {
1602
1679
  queueMicrotask(() => {
1603
- const u = $t.create({
1680
+ const u = Rt.create({
1604
1681
  title: l.title,
1605
1682
  description: l.description,
1606
1683
  duration: s
@@ -1611,15 +1688,15 @@ const ll = () => {
1611
1688
  const f = u;
1612
1689
  d.error(f);
1613
1690
  }
1614
- }), c = o.pipe(Qn(1), lt((d) => !!l.key && d?.key === l.key));
1615
- return r.pipe(ve((d) => en(tn(s), l.abort ?? pt, c).pipe(Jt(), Kn(() => {
1691
+ }), c = o.pipe(Jn(1), st((d) => !!l.key && d?.key === l.key));
1692
+ return r.pipe(be((d) => en(tn(s), l.abort ?? at, c).pipe(Jt(), eo(() => {
1616
1693
  queueMicrotask(() => {
1617
- $t.dismiss(d);
1694
+ Rt.dismiss(d);
1618
1695
  });
1619
1696
  }))));
1620
1697
  })), t[1] = o, t[2] = n) : n = t[2], pe(n);
1621
- }, sl = kn(go), gn = L((t) => {
1622
- const e = x(10);
1698
+ }, yl = kn(_o), pn = N((t) => {
1699
+ const e = C(10);
1623
1700
  let o;
1624
1701
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1625
1702
  "--bg": "colors.bg",
@@ -1680,26 +1757,26 @@ const ll = () => {
1680
1757
  }
1681
1758
  }, e[5] = r, e[6] = c) : c = e[6];
1682
1759
  let d;
1683
- return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(he, { display: "contents", css: o, children: /* @__PURE__ */ a(sl, { keyboard: !1, style: n, css: i, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = d) : d = e[9], d;
1684
- }), rl = () => {
1685
- const t = x(4), e = Qe();
1760
+ return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(le, { display: "contents", css: o, children: /* @__PURE__ */ a(yl, { keyboard: !1, style: n, css: i, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = d) : d = e[9], d;
1761
+ }), Il = () => {
1762
+ const t = C(4), e = Qe();
1686
1763
  let o;
1687
1764
  t[0] !== e?.audio.state$ ? (o = () => e?.audio.state$, t[0] = e?.audio.state$, t[1] = o) : o = t[1];
1688
1765
  let n;
1689
1766
  t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
1690
1767
  const {
1691
1768
  data: i
1692
- } = N(o, n);
1769
+ } = H(o, n);
1693
1770
  return i;
1694
- }, Ut = (t) => {
1771
+ }, jt = (t) => {
1695
1772
  if (!Number.isFinite(t) || t < 0) return "00:00";
1696
1773
  const e = Math.floor(t), o = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), i = e % 60;
1697
1774
  return o > 0 ? [o, n, i].map((l) => String(l).padStart(2, "0")).join(":") : [n, i].map((l) => String(l).padStart(2, "0")).join(":");
1698
- }, al = (t) => {
1699
- const e = x(42), o = Qe(), n = rl(), 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 = nt(cl);
1775
+ }, kl = (t) => {
1776
+ const e = C(42), o = Qe(), n = Il(), 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 = ot(Tl);
1700
1777
  let p;
1701
- if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(te(dl), gt((w) => {
1702
- g.value || (m(w), g.next(!1));
1778
+ if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J($l), bt((z) => {
1779
+ g.value || (m(z), g.next(!1));
1703
1780
  })), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2], pe(p), !n)
1704
1781
  return null;
1705
1782
  const S = n.isPlaying ? "Pause audio" : "Play audio";
@@ -1708,72 +1785,72 @@ const ll = () => {
1708
1785
  o?.audio.toggle();
1709
1786
  }, e[3] = o?.audio, e[4] = _) : _ = e[4];
1710
1787
  const v = !i || n.isLoading;
1711
- let C;
1712
- e[5] !== n.isPlaying ? (C = n.isPlaying ? /* @__PURE__ */ a(En, {}) : /* @__PURE__ */ a(Dn, {}), e[5] = n.isPlaying, e[6] = C) : C = e[6];
1713
- let T;
1714
- e[7] !== S || e[8] !== _ || e[9] !== v || e[10] !== C ? (T = /* @__PURE__ */ a(ee, { "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];
1788
+ let x;
1789
+ e[5] !== n.isPlaying ? (x = n.isPlaying ? /* @__PURE__ */ a(Dn, {}) : /* @__PURE__ */ a(Bn, {}), e[5] = n.isPlaying, e[6] = x) : x = e[6];
1715
1790
  let k;
1716
- e[12] !== g ? (k = (w) => {
1717
- const D = Array.isArray(w) ? w[0] : w;
1718
- typeof D == "number" && (g.next(!0), m(D));
1719
- }, e[12] = g, e[13] = k) : k = e[13];
1791
+ e[7] !== S || e[8] !== _ || e[9] !== v || e[10] !== x ? (k = /* @__PURE__ */ a(te, { "aria-label": S, size: "sm", variant: "ghost", onClick: _, disabled: v, children: x }), e[7] = S, e[8] = _, e[9] = v, e[10] = x, e[11] = k) : k = e[11];
1720
1792
  let I;
1721
- e[14] !== o?.audio || e[15] !== g ? (I = (w) => {
1722
- const D = Array.isArray(w) ? w[0] : w;
1793
+ e[12] !== g ? (I = (z) => {
1794
+ const D = Array.isArray(z) ? z[0] : z;
1795
+ typeof D == "number" && (g.next(!0), m(D));
1796
+ }, e[12] = g, e[13] = I) : I = e[13];
1797
+ let T;
1798
+ e[14] !== o?.audio || e[15] !== g ? (T = (z) => {
1799
+ const D = Array.isArray(z) ? z[0] : z;
1723
1800
  if (typeof D != "number") {
1724
1801
  g.next(!1);
1725
1802
  return;
1726
1803
  }
1727
1804
  m(D), o?.audio.setCurrentTime(D), g.next(!1);
1728
- }, e[14] = o?.audio, e[15] = g, e[16] = I) : I = e[16];
1805
+ }, e[14] = o?.audio, e[15] = g, e[16] = T) : T = e[16];
1729
1806
  let R;
1730
- e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== k || e[21] !== I ? (R = /* @__PURE__ */ a(gn, { value: h, min: 0, max: d, disabled: f, onChange: k, onChangeComplete: I }), e[17] = h, e[18] = f, e[19] = d, e[20] = k, e[21] = I, e[22] = R) : R = e[22];
1807
+ e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !== T ? (R = /* @__PURE__ */ a(pn, { value: h, min: 0, max: d, disabled: f, onChange: I, onChangeComplete: T }), e[17] = h, e[18] = f, e[19] = d, e[20] = I, e[21] = T, e[22] = R) : R = e[22];
1731
1808
  let P;
1732
- e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." : Ut(h), e[23] = n.isLoading, e[24] = h, e[25] = P) : P = e[25];
1809
+ e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." : jt(h), e[23] = n.isLoading, e[24] = h, e[25] = P) : P = e[25];
1733
1810
  let E;
1734
- e[26] !== P ? (E = /* @__PURE__ */ a(q, { fontSize: "xs", color: "fg.muted", children: P }), e[26] = P, e[27] = E) : E = e[27];
1735
- let z;
1736
- e[28] !== s ? (z = Ut(s), e[28] = s, e[29] = z) : z = e[29];
1737
- let O;
1738
- e[30] !== z ? (O = /* @__PURE__ */ a(q, { fontSize: "xs", color: "fg.muted", children: z }), e[30] = z, e[31] = O) : O = e[31];
1811
+ e[26] !== P ? (E = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: P }), e[26] = P, e[27] = E) : E = e[27];
1812
+ let M;
1813
+ e[28] !== s ? (M = jt(s), e[28] = s, e[29] = M) : M = e[29];
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];
1739
1816
  let A;
1740
- e[32] !== E || e[33] !== O ? (A = /* @__PURE__ */ y(ae, { justifyContent: "space-between", mt: 1, children: [
1817
+ e[32] !== E || e[33] !== w ? (A = /* @__PURE__ */ y(ce, { justifyContent: "space-between", mt: 1, children: [
1741
1818
  E,
1742
- O
1743
- ] }), e[32] = E, e[33] = O, e[34] = A) : A = e[34];
1819
+ w
1820
+ ] }), e[32] = E, e[33] = w, e[34] = A) : A = e[34];
1744
1821
  let $;
1745
- e[35] !== A || e[36] !== R ? ($ = /* @__PURE__ */ y(J, { gap: 0, minW: 0, flex: 1, children: [
1822
+ e[35] !== A || e[36] !== R ? ($ = /* @__PURE__ */ y(ee, { gap: 0, minW: 0, flex: 1, children: [
1746
1823
  R,
1747
1824
  A
1748
1825
  ] }), e[35] = A, e[36] = R, e[37] = $) : $ = e[37];
1749
- let M;
1750
- return e[38] !== t || e[39] !== $ || e[40] !== T ? (M = /* @__PURE__ */ y(ae, { width: "100%", maxW: "100%", gap: 3, borderRadius: "md", bg: "bg.muted", px: 3, py: 2, ...t, children: [
1751
- T,
1826
+ let O;
1827
+ return e[38] !== t || e[39] !== $ || e[40] !== k ? (O = /* @__PURE__ */ y(ce, { width: "100%", maxW: "100%", gap: 3, borderRadius: "md", bg: "bg.muted", px: 3, py: 2, ...t, children: [
1828
+ k,
1752
1829
  $
1753
- ] }), e[38] = t, e[39] = $, e[40] = T, e[41] = M) : M = e[41], M;
1830
+ ] }), e[38] = t, e[39] = $, e[40] = k, e[41] = O) : O = e[41], O;
1754
1831
  };
1755
- function cl() {
1832
+ function Tl() {
1756
1833
  return new nn(!1);
1757
1834
  }
1758
- function dl(t) {
1835
+ function $l(t) {
1759
1836
  return t.currentTime;
1760
1837
  }
1761
- const fl = () => {
1762
- const t = x(4), e = Qe();
1838
+ const Rl = () => {
1839
+ const t = C(4), e = Qe();
1763
1840
  let o;
1764
- t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(te(ul), Ye()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
1841
+ t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(Ml), xe()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
1765
1842
  let n;
1766
1843
  t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
1767
1844
  const {
1768
1845
  data: i
1769
- } = N(o, n);
1846
+ } = H(o, n);
1770
1847
  return i === void 0 ? !1 : i;
1771
1848
  };
1772
- function ul(t) {
1849
+ function Ml(t) {
1773
1850
  return t.length > 0;
1774
1851
  }
1775
- const hl = ce.forwardRef(function(e, o) {
1776
- const n = x(26);
1852
+ const Ol = de.forwardRef(function(e, o) {
1853
+ const n = C(26);
1777
1854
  let i, l, s, r, c, d;
1778
1855
  n[0] !== e ? ({
1779
1856
  showArrow: c,
@@ -1800,32 +1877,32 @@ const hl = ce.forwardRef(function(e, o) {
1800
1877
  l
1801
1878
  ] }) }), n[13] = l, n[14] = o, n[15] = g, n[16] = p) : p = n[16];
1802
1879
  let b;
1803
- n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(mt, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
1880
+ n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(pt, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
1804
1881
  let S;
1805
1882
  return n[21] !== r || n[22] !== f || n[23] !== h || n[24] !== b ? (S = /* @__PURE__ */ y(qe.Root, { ...r, positioning: f, children: [
1806
1883
  h,
1807
1884
  b
1808
1885
  ] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] = S) : S = n[25], S;
1809
- }), ml = ce.forwardRef(function(e, o) {
1810
- const n = x(8);
1886
+ }), wl = de.forwardRef(function(e, o) {
1887
+ const n = C(8);
1811
1888
  let i, l;
1812
1889
  n[0] !== e ? ({
1813
1890
  children: i,
1814
1891
  ...l
1815
1892
  } = e, n[0] = e, n[1] = i, n[2] = l) : (i = n[1], l = n[2]);
1816
1893
  let s;
1817
- n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(ee, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(po, {}) }), n[3] = s) : s = n[3];
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(vo, {}) }), n[3] = s) : s = n[3];
1818
1895
  let r;
1819
- return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(hl, { content: i, ...l, ref: o, children: s }), n[4] = i, n[5] = o, n[6] = l, n[7] = r) : r = n[7], r;
1820
- }), gl = ce.forwardRef(function(e, o) {
1821
- const n = x(4);
1896
+ return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(Ol, { content: i, ...l, ref: o, children: s }), n[4] = i, n[5] = o, n[6] = l, n[7] = r) : r = n[7], r;
1897
+ }), Al = de.forwardRef(function(e, o) {
1898
+ const n = C(4);
1822
1899
  let i;
1823
- n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(ot.Range, {}), n[0] = i) : i = n[0];
1900
+ n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(it.Range, {}), n[0] = i) : i = n[0];
1824
1901
  let l;
1825
- return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(ot.Track, { ...e, ref: o, children: i }), n[1] = e, n[2] = o, n[3] = l) : l = n[3], l;
1902
+ return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(it.Track, { ...e, ref: o, children: i }), n[1] = e, n[2] = o, n[3] = l) : l = n[3], l;
1826
1903
  });
1827
- ce.forwardRef(function(e, o) {
1828
- const n = x(11);
1904
+ de.forwardRef(function(e, o) {
1905
+ const n = C(11);
1829
1906
  let i, l, s;
1830
1907
  n[0] !== e ? ({
1831
1908
  children: i,
@@ -1833,15 +1910,15 @@ ce.forwardRef(function(e, o) {
1833
1910
  ...s
1834
1911
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s) : (i = n[1], l = n[2], s = n[3]);
1835
1912
  let r;
1836
- n[4] !== l ? (r = l && /* @__PURE__ */ a(ml, { children: l }), n[4] = l, n[5] = r) : r = n[5];
1913
+ n[4] !== l ? (r = l && /* @__PURE__ */ a(wl, { children: l }), n[4] = l, n[5] = r) : r = n[5];
1837
1914
  let c;
1838
- return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(ot.Label, { ...s, ref: o, children: [
1915
+ return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(it.Label, { ...s, ref: o, children: [
1839
1916
  i,
1840
1917
  r
1841
1918
  ] }), n[6] = i, n[7] = o, n[8] = s, n[9] = r, n[10] = c) : c = n[10], c;
1842
1919
  });
1843
- const pl = ot.Root, bl = ot.ValueText, Pt = () => {
1844
- const t = Ke(), 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;
1920
+ const zl = it.Root, Pl = it.ValueText, Et = () => {
1921
+ const t = Xe(), 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;
1845
1922
  return {
1846
1923
  hasOnlyOnePage: e,
1847
1924
  beginPageIndex: i,
@@ -1853,43 +1930,43 @@ const pl = ot.Root, bl = ot.ValueText, Pt = () => {
1853
1930
  leftPageIndex: s,
1854
1931
  rightPageIndex: r
1855
1932
  };
1856
- }, Sl = () => {
1857
- const t = x(24), e = Ke(), {
1933
+ }, El = () => {
1934
+ const t = C(24), e = Xe(), {
1858
1935
  hasOnlyOnePage: o,
1859
1936
  leftPageIndex: n,
1860
1937
  rightPageIndex: i,
1861
1938
  totalApproximatePages: l,
1862
1939
  beginAndEndAreDifferent: s
1863
- } = Pt();
1940
+ } = Et();
1864
1941
  let r;
1865
1942
  t[0] !== e?.percentageEstimateOfBook ? (r = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), t[0] = e?.percentageEstimateOfBook, t[1] = r) : r = t[1];
1866
1943
  const c = r;
1867
1944
  let d;
1868
1945
  if (t[2] !== e?.beginChapterInfo) {
1869
- const v = (C) => C?.subChapter ? `${C.title} / ${v(C.subChapter)}` : C?.title || "";
1946
+ const v = (x) => x?.subChapter ? `${x.title} / ${v(x.subChapter)}` : x?.title || "";
1870
1947
  d = v(e?.beginChapterInfo), t[2] = e?.beginChapterInfo, t[3] = d;
1871
1948
  } else
1872
1949
  d = t[3];
1873
1950
  const u = d;
1874
1951
  let f;
1875
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(gl, { width: 110 }), t[4] = f) : f = t[4];
1952
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Al, { width: 110 }), t[4] = f) : f = t[4];
1876
1953
  const h = `${c}%`;
1877
1954
  let m;
1878
- t[5] !== h ? (m = /* @__PURE__ */ y(ae, { justifyContent: "space-between", children: [
1955
+ t[5] !== h ? (m = /* @__PURE__ */ y(ce, { justifyContent: "space-between", children: [
1879
1956
  f,
1880
- /* @__PURE__ */ a(bl, { children: h })
1957
+ /* @__PURE__ */ a(Pl, { children: h })
1881
1958
  ] }), t[5] = h, t[6] = m) : m = t[6];
1882
1959
  let g;
1883
- t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(pl, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1960
+ t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(zl, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1884
1961
  const p = u ? `Chapter: ${u}` : " ";
1885
1962
  let b;
1886
- t[10] !== p ? (b = /* @__PURE__ */ a(q, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: p }), t[10] = p, t[11] = b) : b = t[11];
1963
+ 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];
1887
1964
  let S;
1888
- t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== i || t[18] !== l ? (S = !o && /* @__PURE__ */ y(ae, { children: [
1889
- /* @__PURE__ */ a(q, { fontSize: "xs", children: s ? `${n + 1} - ${i + 1} of ${l}` : `${n + 1} of ${l}` }),
1890
- !!e?.hasChapters && /* @__PURE__ */ y(_e, { children: [
1891
- /* @__PURE__ */ a(q, { children: "-" }),
1892
- /* @__PURE__ */ y(q, { fontSize: "xs", children: [
1965
+ t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== i || t[18] !== l ? (S = !o && /* @__PURE__ */ y(ce, { children: [
1966
+ /* @__PURE__ */ a(U, { fontSize: "xs", children: s ? `${n + 1} - ${i + 1} of ${l}` : `${n + 1} of ${l}` }),
1967
+ !!e?.hasChapters && /* @__PURE__ */ y(ve, { children: [
1968
+ /* @__PURE__ */ a(U, { children: "-" }),
1969
+ /* @__PURE__ */ y(U, { fontSize: "xs", children: [
1893
1970
  "(",
1894
1971
  (e?.beginAbsolutePageIndex ?? 0) + 1,
1895
1972
  ")"
@@ -1897,13 +1974,13 @@ const pl = ot.Root, bl = ot.ValueText, Pt = () => {
1897
1974
  ] })
1898
1975
  ] }), t[12] = s, t[13] = o, t[14] = n, t[15] = e?.beginAbsolutePageIndex, t[16] = e?.hasChapters, t[17] = i, t[18] = l, t[19] = S) : S = t[19];
1899
1976
  let _;
1900
- return t[20] !== g || t[21] !== b || t[22] !== S ? (_ = /* @__PURE__ */ y(J, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1977
+ return t[20] !== g || t[21] !== b || t[22] !== S ? (_ = /* @__PURE__ */ y(ee, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1901
1978
  g,
1902
1979
  b,
1903
1980
  S
1904
1981
  ] }), t[20] = g, t[21] = b, t[22] = S, t[23] = _) : _ = t[23], _;
1905
- }, pn = L((t) => {
1906
- const e = x(12);
1982
+ }, bn = N((t) => {
1983
+ const e = C(12);
1907
1984
  let o, n, i;
1908
1985
  e[0] !== t ? ({
1909
1986
  children: o,
@@ -1923,21 +2000,21 @@ const pl = ot.Root, bl = ot.ValueText, Pt = () => {
1923
2000
  _closed: "slide-to-top, fade-out"
1924
2001
  }, e[4] = n, e[5] = l, e[6] = s) : (l = e[5], s = e[6]);
1925
2002
  let r;
1926
- return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(rt, { 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;
1927
- }), _l = () => {
1928
- const t = x(10), o = Ke()?.isUsingSpread, {
2003
+ return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(Ye, { 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;
2004
+ }), Dl = () => {
2005
+ const t = C(10), o = Xe()?.isUsingSpread, {
1929
2006
  beginPageIndex: n,
1930
2007
  totalApproximatePages: i
1931
- } = Pt(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
2008
+ } = Et(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
1932
2009
  let r;
1933
- t[0] !== s ? (r = () => je({
2010
+ t[0] !== s ? (r = () => Ke({
1934
2011
  default: s || 0
1935
2012
  }), t[0] = s, t[1] = r) : r = t[1];
1936
2013
  const [c, d] = qn(r), u = Math.max(0, o ? Math.floor((l - 1) / 2) : l - 1);
1937
2014
  let f, h;
1938
2015
  t[2] !== s || t[3] !== d ? (f = () => {
1939
2016
  d.update(s || 0);
1940
- }, h = [s, d], t[2] = s, t[3] = d, t[4] = f, t[5] = h) : (f = t[4], h = t[5]), ie(f, h);
2017
+ }, h = [s, d], t[2] = s, t[3] = d, t[4] = f, t[5] = h) : (f = t[4], h = t[5]), oe(f, h);
1941
2018
  let m;
1942
2019
  return t[6] !== u || t[7] !== c || t[8] !== d ? (m = {
1943
2020
  value: c,
@@ -1945,10 +2022,10 @@ const pl = ot.Root, bl = ot.ValueText, Pt = () => {
1945
2022
  min: 0,
1946
2023
  max: u
1947
2024
  }, t[6] = u, t[7] = c, t[8] = d, t[9] = m) : m = t[9], m;
1948
- }, vl = (t) => {
1949
- const e = x(21), o = Z(), n = Ke(), {
2025
+ }, Bl = (t) => {
2026
+ const e = C(21), o = j(), n = Xe(), {
1950
2027
  data: i
1951
- } = N(() => o?.context, [o]) ?? {};
2028
+ } = H(() => o?.context, [o]) ?? {};
1952
2029
  let l;
1953
2030
  e[0] !== i ? (l = i === void 0 ? {} : i, e[0] = i, e[1] = l) : l = e[1];
1954
2031
  const {
@@ -1956,23 +2033,23 @@ const pl = ot.Root, bl = ot.ValueText, Pt = () => {
1956
2033
  } = l, r = s?.readingDirection === "rtl", c = n?.isUsingSpread, {
1957
2034
  totalApproximatePages: d,
1958
2035
  isBeginWithinChapter: u
1959
- } = Pt(), f = d === void 0 ? 0 : d, h = u, {
2036
+ } = Et(), f = d === void 0 ? 0 : d, h = u, {
1960
2037
  value: m,
1961
2038
  valueSignal: g,
1962
2039
  min: p,
1963
2040
  max: b
1964
- } = _l();
2041
+ } = Dl();
1965
2042
  let S;
1966
2043
  e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (S = (R) => {
1967
2044
  const [P] = Array.isArray(R) ? R : [R], E = P === void 0 ? 0 : P;
1968
2045
  g.update(E);
1969
- const z = c ? Math.floor(E) * 2 : Math.floor(E);
2046
+ const M = c ? Math.floor(E) * 2 : Math.floor(E);
1970
2047
  h ? o?.navigation.goToPageOfSpineItem({
1971
- pageIndex: z,
2048
+ pageIndex: M,
1972
2049
  spineItemId: o.pagination.state.beginSpineItemIndex ?? 0,
1973
2050
  animation: !1
1974
2051
  }) : o?.navigation.goToAbsolutePageIndex({
1975
- absolutePageIndex: z,
2052
+ absolutePageIndex: M,
1976
2053
  animation: !1
1977
2054
  });
1978
2055
  }, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] = S) : S = e[6];
@@ -1983,194 +2060,194 @@ const pl = ot.Root, bl = ot.ValueText, Pt = () => {
1983
2060
  trigger: g.subject
1984
2061
  }), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9], pe(v), f === 1 || c && f === 2) {
1985
2062
  let R;
1986
- return e[10] !== t.style ? (R = /* @__PURE__ */ a(he, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
2063
+ return e[10] !== t.style ? (R = /* @__PURE__ */ a(le, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
1987
2064
  }
1988
- let k;
1989
- e[12] !== m ? (k = [m], e[12] = m, e[13] = k) : k = e[13];
1990
2065
  let I;
1991
- return e[14] !== b || e[15] !== p || e[16] !== _ || e[17] !== t || e[18] !== r || e[19] !== k ? (I = /* @__PURE__ */ a(gn, { value: k, 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] = k, e[20] = I) : I = e[20], I;
1992
- }, Cl = L((t) => {
1993
- const e = x(109), {
2066
+ e[12] !== m ? (I = [m], e[12] = m, e[13] = I) : I = e[13];
2067
+ let T;
2068
+ return e[14] !== b || e[15] !== p || e[16] !== _ || e[17] !== t || e[18] !== r || e[19] !== I ? (T = /* @__PURE__ */ a(pn, { 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] = T) : T = e[20], T;
2069
+ }, Fl = N((t) => {
2070
+ const e = C(109), {
1994
2071
  open: o,
1995
2072
  onItemClick: n
1996
- } = t, i = Se(null), l = Z();
2073
+ } = t, i = _e(null), l = j();
1997
2074
  let s;
1998
2075
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = ["quickMenuBottomBarBoundingBoxSignal", "onFontSizeMenuOpenChange", "onRefitMenuOpenChange"], e[0] = s) : s = e[0];
1999
2076
  const {
2000
2077
  quickMenuBottomBarBoundingBoxSignal: r,
2001
2078
  onFontSizeMenuOpenChange: c,
2002
2079
  onRefitMenuOpenChange: d
2003
- } = oe(s);
2080
+ } = ie(s);
2004
2081
  let u;
2005
2082
  e[1] !== l?.navigation.state$ ? (u = () => l?.navigation.state$, e[1] = l?.navigation.state$, e[2] = u) : u = e[2];
2006
2083
  let f;
2007
2084
  e[3] !== l ? (f = [l], e[3] = l, e[4] = f) : f = e[4];
2008
2085
  const {
2009
2086
  data: h
2010
- } = N(u, f);
2087
+ } = H(u, f);
2011
2088
  let m;
2012
2089
  e[5] !== l?.settings.values$ ? (m = () => l?.settings.values$, e[5] = l?.settings.values$, e[6] = m) : m = e[6];
2013
2090
  let g;
2014
2091
  e[7] !== l ? (g = [l], e[7] = l, e[8] = g) : g = e[8];
2015
2092
  const {
2016
2093
  data: p
2017
- } = N(m, g);
2094
+ } = H(m, g);
2018
2095
  let b;
2019
- e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(te(xl)), e[9] = l?.zoom.state$, e[10] = b) : b = e[10];
2096
+ e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(Ll)), e[9] = l?.zoom.state$, e[10] = b) : b = e[10];
2020
2097
  let S;
2021
2098
  e[11] !== l ? (S = [l], e[11] = l, e[12] = S) : S = e[12];
2022
2099
  const {
2023
2100
  data: _
2024
- } = N(b, S), v = _ === "in", C = _ === "out", T = p?.computedPageTurnMode === "scrollable", k = p?.computedPageTurnDirection === "vertical", I = fl(), [R, P] = ne(!0);
2025
- let E, z;
2101
+ } = H(b, S), v = _ === "in", x = _ === "out", k = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", T = Rl(), [R, P] = ne(!0);
2102
+ let E, M;
2026
2103
  e[13] !== r ? (E = () => {
2027
2104
  if (!i.current)
2028
2105
  return;
2029
- const ut = new ResizeObserver((vt) => {
2030
- for (const bn of vt)
2031
- r.update(bn);
2106
+ const ht = new ResizeObserver((Ct) => {
2107
+ for (const Sn of Ct)
2108
+ r.update(Sn);
2032
2109
  });
2033
- return ut.observe(i.current), () => {
2034
- ut.disconnect();
2110
+ return ht.observe(i.current), () => {
2111
+ ht.disconnect();
2035
2112
  };
2036
- }, z = [r], e[13] = r, e[14] = E, e[15] = z) : (E = e[14], z = e[15]), ie(E, z);
2037
- let O;
2038
- e[16] !== I ? (O = I && /* @__PURE__ */ a(ae, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a(al, { maxW: 400 }) }), e[16] = I, e[17] = O) : O = e[17];
2113
+ }, 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];
2039
2116
  let A;
2040
2117
  e[18] !== l?.navigation ? (A = () => l?.navigation.goToLeftOrTopSpineItem(), e[18] = l?.navigation, e[19] = A) : A = e[19];
2041
2118
  const $ = !h?.canGoLeftSpineItem && !h?.canGoTopSpineItem;
2042
- let M;
2043
- e[20] !== k ? (M = k ? /* @__PURE__ */ a(fo, {}) : /* @__PURE__ */ a(uo, {}), e[20] = k, e[21] = M) : M = e[21];
2044
- let w;
2045
- e[22] !== A || e[23] !== $ || e[24] !== M ? (w = /* @__PURE__ */ a(ee, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: A, disabled: $, children: M }), e[22] = A, e[23] = $, e[24] = M, e[25] = w) : w = e[25];
2119
+ let O;
2120
+ e[20] !== I ? (O = I ? /* @__PURE__ */ a(go, {}) : /* @__PURE__ */ a(po, {}), e[20] = I, e[21] = O) : O = e[21];
2121
+ let z;
2122
+ e[22] !== A || e[23] !== $ || e[24] !== O ? (z = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: A, disabled: $, children: O }), e[22] = A, e[23] = $, e[24] = O, e[25] = z) : z = e[25];
2046
2123
  let D;
2047
- e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(Sl, {}), e[26] = D) : D = e[26];
2048
- let B;
2049
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ y(J, { flex: 1, maxW: 400, gap: 2, alignItems: "center", overflow: "auto", px: 4, children: [
2124
+ e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(El, {}), e[26] = D) : D = e[26];
2125
+ let F;
2126
+ 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: [
2050
2127
  D,
2051
- /* @__PURE__ */ a(vl, { style: {
2128
+ /* @__PURE__ */ a(Bl, { style: {
2052
2129
  width: "100%",
2053
2130
  maxWidth: "300px",
2054
2131
  height: "35px"
2055
2132
  } })
2056
- ] }), e[27] = B) : B = e[27];
2057
- const Q = !h?.canGoRightSpineItem && !h?.canGoBottomSpineItem;
2058
- let W;
2059
- e[28] !== l?.navigation ? (W = () => {
2133
+ ] }), e[27] = F) : F = e[27];
2134
+ const Y = !h?.canGoRightSpineItem && !h?.canGoBottomSpineItem;
2135
+ let V;
2136
+ e[28] !== l?.navigation ? (V = () => {
2060
2137
  l?.navigation.goToRightOrBottomSpineItem();
2061
- }, e[28] = l?.navigation, e[29] = W) : W = e[29];
2062
- let H;
2063
- e[30] !== k ? (H = k ? /* @__PURE__ */ a(ho, {}) : /* @__PURE__ */ a(mo, {}), e[30] = k, e[31] = H) : H = e[31];
2064
- let j;
2065
- e[32] !== Q || e[33] !== W || e[34] !== H ? (j = /* @__PURE__ */ a(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: Q, onClick: W, children: H }), e[32] = Q, e[33] = W, e[34] = H, e[35] = j) : j = e[35];
2138
+ }, e[28] = l?.navigation, e[29] = V) : V = e[29];
2066
2139
  let G;
2067
- e[36] !== w || e[37] !== j ? (G = /* @__PURE__ */ y(ae, { flex: 1, alignItems: "center", justifyContent: "center", maxWidth: "100%", px: 4, children: [
2068
- w,
2069
- B,
2070
- j
2071
- ] }), e[36] = w, e[37] = j, e[38] = G) : G = e[38];
2072
- let U;
2073
- e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = (ut) => {
2140
+ e[30] !== I ? (G = I ? /* @__PURE__ */ a(bo, {}) : /* @__PURE__ */ a(So, {}), e[30] = I, e[31] = G) : G = e[31];
2141
+ let W;
2142
+ e[32] !== Y || e[33] !== V || e[34] !== G ? (W = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: Y, onClick: V, children: G }), e[32] = Y, e[33] = V, e[34] = G, e[35] = W) : W = e[35];
2143
+ let q;
2144
+ e[36] !== z || e[37] !== W ? (q = /* @__PURE__ */ y(ce, { flex: 1, alignItems: "center", justifyContent: "center", maxWidth: "100%", px: 4, children: [
2145
+ z,
2146
+ F,
2147
+ W
2148
+ ] }), e[36] = z, e[37] = W, e[38] = q) : q = e[38];
2149
+ let Z;
2150
+ e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = (ht) => {
2074
2151
  const {
2075
- open: vt
2076
- } = ut;
2077
- P(vt);
2078
- }, e[39] = U) : U = e[39];
2079
- const X = R ? "rotate(0deg)" : "rotate(180deg)";
2080
- let K;
2081
- e[40] !== X ? (K = /* @__PURE__ */ a(xt.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Bn, { style: {
2082
- transform: X
2083
- } }) }), e[40] = X, e[41] = K) : K = e[41];
2084
- let V;
2085
- e[42] !== n ? (V = () => n("help"), e[42] = n, e[43] = V) : V = e[43];
2086
- let Y;
2087
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(Fn, {}), e[44] = Y) : Y = e[44];
2088
- let le;
2089
- e[45] !== V ? (le = /* @__PURE__ */ a(ee, { "aria-label": "Help", size: "lg", variant: "ghost", onClick: V, children: Y }), e[45] = V, e[46] = le) : le = e[46];
2090
- let F;
2091
- e[47] !== n ? (F = () => n("toc"), e[47] = n, e[48] = F) : F = e[48];
2152
+ open: Ct
2153
+ } = ht;
2154
+ P(Ct);
2155
+ }, e[39] = Z) : Z = e[39];
2156
+ const K = R ? "rotate(0deg)" : "rotate(180deg)";
2157
+ let Q;
2158
+ e[40] !== K ? (Q = /* @__PURE__ */ a(It.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Fn, { style: {
2159
+ transform: K
2160
+ } }) }), e[40] = K, e[41] = Q) : Q = e[41];
2161
+ let X;
2162
+ e[42] !== n ? (X = () => n("help"), e[42] = n, e[43] = X) : X = e[43];
2163
+ let B;
2164
+ e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(Ln, {}), e[44] = B) : B = e[44];
2092
2165
  let se;
2093
- e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ a(Ln, {}), e[49] = se) : se = e[49];
2094
- let be;
2095
- e[50] !== F ? (be = /* @__PURE__ */ a(ee, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: F, children: se }), e[50] = F, e[51] = be) : be = e[51];
2096
- let ze;
2097
- e[52] !== n || e[53] !== l ? (ze = an(l) && /* @__PURE__ */ a(ee, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Nn, {}) }), e[52] = n, e[53] = l, e[54] = ze) : ze = e[54];
2098
- const St = v ? "solid" : "ghost";
2166
+ 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
+ let L;
2168
+ e[47] !== n ? (L = () => n("toc"), e[47] = n, e[48] = L) : L = e[48];
2169
+ let re;
2170
+ e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(Nn, {}), e[49] = re) : re = e[49];
2171
+ let Se;
2172
+ 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];
2099
2173
  let Ae;
2100
- e[55] !== v || e[56] !== l?.zoom ? (Ae = () => {
2174
+ e[52] !== n || e[53] !== l ? (Ae = cn(l) && /* @__PURE__ */ a(te, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Hn, {}) }), e[52] = n, e[53] = l, e[54] = Ae) : Ae = e[54];
2175
+ const vt = v ? "solid" : "ghost";
2176
+ let ze;
2177
+ e[55] !== v || e[56] !== l?.zoom ? (ze = () => {
2101
2178
  v ? l?.zoom.exit({
2102
2179
  animate: !0
2103
2180
  }) : l?.zoom.enter({
2104
2181
  animate: !0,
2105
2182
  scale: 2
2106
2183
  });
2107
- }, e[55] = v, e[56] = l?.zoom, e[57] = Ae) : Ae = e[57];
2108
- let we;
2109
- e[58] !== v ? (we = v ? /* @__PURE__ */ a(Hn, {}) : /* @__PURE__ */ a(Vn, {}), e[58] = v, e[59] = we) : we = e[59];
2184
+ }, e[55] = v, e[56] = l?.zoom, e[57] = ze) : ze = e[57];
2110
2185
  let Pe;
2111
- e[60] !== St || e[61] !== Ae || e[62] !== we ? (Pe = /* @__PURE__ */ a(ee, { "aria-label": "Zoom", size: "lg", variant: St, onClick: Ae, children: we }), e[60] = St, e[61] = Ae, e[62] = we, e[63] = Pe) : Pe = e[63];
2186
+ e[58] !== v ? (Pe = v ? /* @__PURE__ */ a(Vn, {}) : /* @__PURE__ */ a(Wn, {}), e[58] = v, e[59] = Pe) : Pe = e[59];
2112
2187
  let Ee;
2113
- e[64] !== c ? (Ee = () => {
2114
- c(!0);
2115
- }, e[64] = c, e[65] = Ee) : Ee = e[65];
2116
- let ct;
2117
- e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ct = /* @__PURE__ */ a(io, {}), e[66] = ct) : ct = e[66];
2188
+ e[60] !== vt || e[61] !== ze || e[62] !== Pe ? (Ee = /* @__PURE__ */ a(te, { "aria-label": "Zoom", size: "lg", variant: vt, onClick: ze, children: Pe }), e[60] = vt, e[61] = ze, e[62] = Pe, e[63] = Ee) : Ee = e[63];
2118
2189
  let De;
2119
- e[67] !== Ee ? (De = /* @__PURE__ */ a(ee, { "aria-label": "font size", size: "lg", onClick: Ee, variant: "ghost", children: ct }), e[67] = Ee, e[68] = De) : De = e[68];
2190
+ e[64] !== c ? (De = () => {
2191
+ c(!0);
2192
+ }, e[64] = c, e[65] = De) : De = e[65];
2193
+ let dt;
2194
+ e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dt = /* @__PURE__ */ a(uo, {}), e[66] = dt) : dt = e[66];
2120
2195
  let Be;
2121
- e[69] !== n || e[70] !== l ? (Be = st(l) && /* @__PURE__ */ a(ee, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(lo, {}) }), e[69] = n, e[70] = l, e[71] = Be) : Be = e[71];
2196
+ 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];
2122
2197
  let Fe;
2123
- e[72] !== n || e[73] !== l ? (Fe = st(l) && /* @__PURE__ */ a(ee, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(it, {}) }), e[72] = n, e[73] = l, e[74] = Fe) : Fe = e[74];
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(ho, {}) }), e[69] = n, e[70] = l, e[71] = Fe) : Fe = e[71];
2124
2199
  let Le;
2125
- e[75] !== T || e[76] !== d || e[77] !== l ? (Le = dn(l) && /* @__PURE__ */ a(ee, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
2126
- d(!0);
2127
- }, disabled: !T, children: /* @__PURE__ */ a(so, {}) }), e[75] = T, e[76] = d, e[77] = l, e[78] = Le) : Le = e[78];
2128
- const _t = C ? "solid" : "ghost";
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(lt, {}) }), e[72] = n, e[73] = l, e[74] = Le) : Le = e[74];
2129
2201
  let Ne;
2130
- e[79] !== C || e[80] !== l?.zoom ? (Ne = () => {
2131
- C ? l?.zoom.exit({
2202
+ e[75] !== k || e[76] !== d || e[77] !== l ? (Ne = fn(l) && /* @__PURE__ */ a(te, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
2203
+ d(!0);
2204
+ }, disabled: !k, children: /* @__PURE__ */ a(ao, {}) }), e[75] = k, e[76] = d, e[77] = l, e[78] = Ne) : Ne = e[78];
2205
+ const xt = x ? "solid" : "ghost";
2206
+ let He;
2207
+ e[79] !== x || e[80] !== l?.zoom ? (He = () => {
2208
+ x ? l?.zoom.exit({
2132
2209
  animate: !0
2133
2210
  }) : l?.zoom.enter({
2134
2211
  animate: !0,
2135
2212
  scale: 0.5
2136
2213
  });
2137
- }, e[79] = C, e[80] = l?.zoom, e[81] = Ne) : Ne = e[81];
2138
- let dt;
2139
- e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dt = /* @__PURE__ */ a(Wn, {}), e[82] = dt) : dt = e[82];
2140
- let He;
2141
- e[83] !== _t || e[84] !== Ne ? (He = /* @__PURE__ */ a(ee, { "aria-label": "Thumbnails", size: "lg", variant: _t, onClick: Ne, children: dt }), e[83] = _t, e[84] = Ne, e[85] = He) : He = e[85];
2214
+ }, e[79] = x, e[80] = l?.zoom, e[81] = He) : He = e[81];
2215
+ let ft;
2216
+ e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(Gn, {}), e[82] = ft) : ft = e[82];
2142
2217
  let Ve;
2143
- e[86] !== n || e[87] !== l ? (Ve = cn(l) && /* @__PURE__ */ a(ee, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(co, {}) }), e[86] = n, e[87] = l, e[88] = Ve) : Ve = e[88];
2218
+ e[83] !== xt || e[84] !== He ? (Ve = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: xt, onClick: He, children: ft }), e[83] = xt, e[84] = He, e[85] = Ve) : Ve = e[85];
2144
2219
  let We;
2145
- e[89] !== le || e[90] !== be || e[91] !== ze || e[92] !== Pe || e[93] !== De || e[94] !== Be || e[95] !== Fe || e[96] !== Le || e[97] !== He || e[98] !== Ve ? (We = /* @__PURE__ */ a(xt.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ y(he, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
2146
- le,
2147
- be,
2148
- ze,
2149
- Pe,
2150
- De,
2220
+ e[86] !== n || e[87] !== l ? (We = dn(l) && /* @__PURE__ */ a(te, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(mo, {}) }), e[86] = n, e[87] = l, e[88] = We) : We = e[88];
2221
+ let Ge;
2222
+ e[89] !== se || e[90] !== Se || e[91] !== Ae || e[92] !== Ee || e[93] !== Be || e[94] !== Fe || e[95] !== Le || e[96] !== Ne || e[97] !== Ve || e[98] !== We ? (Ge = /* @__PURE__ */ a(It.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ y(le, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
2223
+ se,
2224
+ Se,
2225
+ Ae,
2226
+ Ee,
2151
2227
  Be,
2152
2228
  Fe,
2153
2229
  Le,
2154
- He,
2155
- Ve
2156
- ] }) }), e[89] = le, e[90] = be, e[91] = ze, e[92] = Pe, e[93] = De, e[94] = Be, e[95] = Fe, e[96] = Le, e[97] = He, e[98] = Ve, e[99] = We) : We = e[99];
2157
- let Ge;
2158
- e[100] !== R || e[101] !== K || e[102] !== We ? (Ge = /* @__PURE__ */ a(ae, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(xt.Root, { open: R, flex: 1, onOpenChange: U, width: "100%", children: [
2159
- K,
2230
+ Ne,
2231
+ Ve,
2160
2232
  We
2161
- ] }) }), e[100] = R, e[101] = K, e[102] = We, e[103] = Ge) : Ge = e[103];
2162
- let ft;
2163
- return e[104] !== o || e[105] !== O || e[106] !== G || e[107] !== Ge ? (ft = /* @__PURE__ */ y(pn, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: i, gap: 4, children: [
2164
- O,
2165
- G,
2233
+ ] }) }), e[89] = se, e[90] = Se, e[91] = Ae, 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
+ let Ue;
2235
+ e[100] !== R || e[101] !== Q || e[102] !== Ge ? (Ue = /* @__PURE__ */ a(ce, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(It.Root, { open: R, flex: 1, onOpenChange: Z, width: "100%", children: [
2236
+ Q,
2166
2237
  Ge
2167
- ] }), e[104] = o, e[105] = O, e[106] = G, e[107] = Ge, e[108] = ft) : ft = e[108], ft;
2238
+ ] }) }), e[100] = R, e[101] = Q, e[102] = Ge, e[103] = Ue) : Ue = e[103];
2239
+ let ut;
2240
+ return e[104] !== o || e[105] !== w || e[106] !== q || e[107] !== Ue ? (ut = /* @__PURE__ */ y(bn, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: i, gap: 4, children: [
2241
+ w,
2242
+ q,
2243
+ Ue
2244
+ ] }), e[104] = o, e[105] = w, e[106] = q, e[107] = Ue, e[108] = ut) : ut = e[108], ut;
2168
2245
  });
2169
- function xl(t) {
2246
+ function Ll(t) {
2170
2247
  return t.currentScale > 1 ? "in" : t.currentScale < 1 ? "out" : void 0;
2171
2248
  }
2172
- const yl = () => {
2173
- const t = x(5), [e, o] = ne(!1);
2249
+ const Nl = () => {
2250
+ const t = C(5), [e, o] = ne(!1);
2174
2251
  let n;
2175
2252
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = () => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
2176
2253
  o(!1);
@@ -2188,59 +2265,59 @@ const yl = () => {
2188
2265
  return document.addEventListener("fullscreenchange", c), () => {
2189
2266
  document.removeEventListener("fullscreenchange", c);
2190
2267
  };
2191
- }, s = [], t[1] = l, t[2] = s) : (l = t[1], s = t[2]), ie(l, s);
2268
+ }, s = [], t[1] = l, t[2] = s) : (l = t[1], s = t[2]), oe(l, s);
2192
2269
  let r;
2193
2270
  return t[3] !== e ? (r = {
2194
2271
  isFullscreen: e,
2195
2272
  onToggleFullscreenClick: i
2196
2273
  }, t[3] = e, t[4] = r) : r = t[4], r;
2197
- }, kl = L((t) => {
2198
- const e = x(29), {
2274
+ }, Hl = N((t) => {
2275
+ const e = C(29), {
2199
2276
  open: o,
2200
2277
  onItemClick: n
2201
- } = t, i = Z();
2278
+ } = t, i = j();
2202
2279
  let l;
2203
2280
  e[0] !== i?.context.manifest$ ? (l = () => i?.context.manifest$, e[0] = i?.context.manifest$, e[1] = l) : l = e[1];
2204
2281
  let s;
2205
2282
  e[2] !== i ? (s = [i], e[2] = i, e[3] = s) : s = e[3];
2206
2283
  const {
2207
2284
  data: r
2208
- } = N(l, s), {
2285
+ } = H(l, s), {
2209
2286
  isFullscreen: c,
2210
2287
  onToggleFullscreenClick: d
2211
- } = yl();
2288
+ } = Nl();
2212
2289
  let u;
2213
2290
  e[4] !== n ? (u = () => n("back"), e[4] = n, e[5] = u) : u = e[5];
2214
2291
  let f;
2215
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(bo, {}), e[6] = f) : f = e[6];
2292
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(xo, {}), e[6] = f) : f = e[6];
2216
2293
  let h;
2217
- e[7] !== u ? (h = /* @__PURE__ */ a(ee, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: u, children: f }), e[7] = u, e[8] = h) : h = e[8];
2294
+ 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];
2218
2295
  const m = r?.title;
2219
2296
  let g;
2220
- e[9] !== m ? (g = /* @__PURE__ */ a(J, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ a(q, { truncate: !0, maxWidth: "100%", children: m }) }), e[9] = m, e[10] = g) : g = e[10];
2297
+ e[9] !== m ? (g = /* @__PURE__ */ a(ee, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", children: m }) }), e[9] = m, e[10] = g) : g = e[10];
2221
2298
  let p;
2222
2299
  e[11] !== n ? (p = () => n("more"), e[11] = n, e[12] = p) : p = e[12];
2223
2300
  let b;
2224
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(So, {}), e[13] = b) : b = e[13];
2301
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(Co, {}), e[13] = b) : b = e[13];
2225
2302
  let S;
2226
- e[14] !== p ? (S = /* @__PURE__ */ a(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: p, children: b }), e[14] = p, e[15] = S) : S = e[15];
2303
+ 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];
2227
2304
  let _;
2228
- e[16] !== c ? (_ = c ? /* @__PURE__ */ a(ro, {}) : /* @__PURE__ */ a(ao, {}), e[16] = c, e[17] = _) : _ = e[17];
2305
+ e[16] !== c ? (_ = c ? /* @__PURE__ */ a(co, {}) : /* @__PURE__ */ a(fo, {}), e[16] = c, e[17] = _) : _ = e[17];
2229
2306
  let v;
2230
- e[18] !== d || e[19] !== _ ? (v = /* @__PURE__ */ a(ee, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: d, children: _ }), e[18] = d, e[19] = _, e[20] = v) : v = e[20];
2231
- let C;
2232
- e[21] !== S || e[22] !== v ? (C = /* @__PURE__ */ y(ae, { children: [
2307
+ 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
+ let x;
2309
+ e[21] !== S || e[22] !== v ? (x = /* @__PURE__ */ y(ce, { children: [
2233
2310
  S,
2234
2311
  v
2235
- ] }), e[21] = S, e[22] = v, e[23] = C) : C = e[23];
2236
- let T;
2237
- return e[24] !== o || e[25] !== C || e[26] !== h || e[27] !== g ? (T = /* @__PURE__ */ y(pn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
2312
+ ] }), e[21] = S, e[22] = v, e[23] = x) : x = e[23];
2313
+ let k;
2314
+ return e[24] !== o || e[25] !== x || e[26] !== h || e[27] !== g ? (k = /* @__PURE__ */ y(bn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
2238
2315
  h,
2239
2316
  g,
2240
- C
2241
- ] }), e[24] = o, e[25] = C, e[26] = h, e[27] = g, e[28] = T) : T = e[28], T;
2242
- }), Et = () => {
2243
- const t = x(4);
2317
+ x
2318
+ ] }), e[24] = o, e[25] = x, e[26] = h, e[27] = g, e[28] = k) : k = e[28], k;
2319
+ }), Dt = () => {
2320
+ const t = C(4);
2244
2321
  let e;
2245
2322
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["quickMenuOpen", "onQuickMenuOpenChange", "_quickMenuOpen", "_onQuickMenuOpenChange"], t[0] = e) : e = t[0];
2246
2323
  const {
@@ -2248,46 +2325,46 @@ const yl = () => {
2248
2325
  onQuickMenuOpenChange: n,
2249
2326
  _quickMenuOpen: i,
2250
2327
  _onQuickMenuOpenChange: l
2251
- } = oe(e), s = o ?? i, r = n ?? l;
2328
+ } = ie(e), s = o ?? i, r = n ?? l;
2252
2329
  let c;
2253
2330
  return t[1] !== s || t[2] !== r ? (c = [s, r], t[1] = s, t[2] = r, t[3] = c) : c = t[3], c;
2254
- }, Tl = L((t) => {
2255
- const e = x(10), {
2331
+ }, Vl = N((t) => {
2332
+ const e = C(10), {
2256
2333
  onItemClick: o
2257
- } = t, [n] = Et();
2334
+ } = t, [n] = Dt();
2258
2335
  let i;
2259
2336
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["refitMenuOpen", "fontSizeMenuOpen", "selectedHighlight"], e[0] = i) : i = e[0];
2260
2337
  const {
2261
2338
  refitMenuOpen: l,
2262
2339
  fontSizeMenuOpen: s,
2263
2340
  selectedHighlight: r
2264
- } = oe(i), c = n && !l && !s && !r;
2341
+ } = ie(i), c = n && !l && !s && !r;
2265
2342
  let d;
2266
- e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(kl, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = d) : d = e[3];
2343
+ e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(Hl, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = d) : d = e[3];
2267
2344
  const u = n && !l && !s;
2268
2345
  let f;
2269
- e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(Cl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = f) : f = e[6];
2346
+ e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(Fl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = f) : f = e[6];
2270
2347
  let h;
2271
- return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(_e, { children: [
2348
+ return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(ve, { children: [
2272
2349
  d,
2273
2350
  f
2274
2351
  ] }), e[7] = d, e[8] = f, e[9] = h) : h = e[9], h;
2275
- }), Il = () => {
2276
- const t = x(3), [, e] = Et(), o = Z();
2352
+ }), Wl = () => {
2353
+ const t = C(3), [, e] = Dt(), o = j();
2277
2354
  let n;
2278
- t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(lt($l), Ot(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), gt((l) => {
2355
+ t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(st(Gl), Ot(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), bt((l) => {
2279
2356
  const [, s, r] = l;
2280
- e(s || r ? !1 : Rl);
2357
+ e(s || r ? !1 : Ul);
2281
2358
  })), t[0] = e, t[1] = o, t[2] = n) : n = t[2], pe(n);
2282
2359
  };
2283
- function $l(t) {
2360
+ function Gl(t) {
2284
2361
  return t.type === "tap" && !t.handled;
2285
2362
  }
2286
- function Rl(t) {
2363
+ function Ul(t) {
2287
2364
  return !t;
2288
2365
  }
2289
- const Ol = ce.forwardRef(function(e, o) {
2290
- const n = x(21);
2366
+ const jl = de.forwardRef(function(e, o) {
2367
+ const n = C(21);
2291
2368
  let i, l, s, r, c, d;
2292
2369
  n[0] !== e ? ({
2293
2370
  label: r,
@@ -2298,31 +2375,31 @@ const Ol = ce.forwardRef(function(e, o) {
2298
2375
  ...d
2299
2376
  } = 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]);
2300
2377
  let u;
2301
- n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(Xe.Label, { children: [
2378
+ n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(Je.Label, { children: [
2302
2379
  r,
2303
- /* @__PURE__ */ a(Xe.RequiredIndicator, { fallback: c })
2380
+ /* @__PURE__ */ a(Je.RequiredIndicator, { fallback: c })
2304
2381
  ] }), n[7] = r, n[8] = c, n[9] = u) : u = n[9];
2305
2382
  let f;
2306
- n[10] !== s ? (f = s && /* @__PURE__ */ a(Xe.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
2383
+ n[10] !== s ? (f = s && /* @__PURE__ */ a(Je.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
2307
2384
  let h;
2308
- n[12] !== l ? (h = l && /* @__PURE__ */ a(Xe.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
2385
+ n[12] !== l ? (h = l && /* @__PURE__ */ a(Je.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
2309
2386
  let m;
2310
- return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(Xe.Root, { ref: o, ...d, children: [
2387
+ return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(Je.Root, { ref: o, ...d, children: [
2311
2388
  u,
2312
2389
  i,
2313
2390
  f,
2314
2391
  h
2315
2392
  ] }), 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;
2316
- }), Ml = L(() => {
2317
- const t = x(39);
2393
+ }), ql = N(() => {
2394
+ const t = C(39);
2318
2395
  let e;
2319
2396
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["refitMenuOpen", "onRefitMenuOpenChange"], t[0] = e) : e = t[0];
2320
2397
  const {
2321
2398
  refitMenuOpen: o,
2322
2399
  onRefitMenuOpenChange: n
2323
- } = oe(e), i = Z();
2400
+ } = ie(e), i = j();
2324
2401
  let l;
2325
- t[1] !== i ? (l = dn(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
2402
+ t[1] !== i ? (l = fn(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
2326
2403
  const s = l;
2327
2404
  let r;
2328
2405
  t[3] !== s?.refit.settings$ ? (r = () => s?.refit.settings$, t[3] = s?.refit.settings$, t[4] = r) : r = t[4];
@@ -2330,70 +2407,70 @@ const Ol = ce.forwardRef(function(e, o) {
2330
2407
  t[5] !== s ? (c = [s], t[5] = s, t[6] = c) : c = t[6];
2331
2408
  const {
2332
2409
  data: d
2333
- } = N(r, c);
2410
+ } = H(r, c);
2334
2411
  let u;
2335
2412
  t[7] !== n ? (u = ($) => n($.open), t[7] = n, t[8] = u) : u = t[8];
2336
2413
  let f;
2337
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Oe, { children: "Viewport fit" }) }), t[9] = f) : f = t[9];
2414
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Viewport fit" }) }), t[9] = f) : f = t[9];
2338
2415
  let h;
2339
2416
  t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(Ce.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
2340
2417
  let m;
2341
2418
  t[11] !== s?.refit ? (m = ($) => {
2342
- const M = $.value;
2419
+ const O = $.value;
2343
2420
  s?.refit.update({
2344
- viewportFit: M,
2421
+ viewportFit: O,
2345
2422
  customWidth: 60
2346
2423
  });
2347
2424
  }, t[11] = s?.refit, t[12] = m) : m = t[12];
2348
2425
  const g = d?.viewportFit ?? "fit";
2349
2426
  let p;
2350
- t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(tt, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
2427
+ t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(nt, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
2351
2428
  let b;
2352
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(tt, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
2429
+ t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(nt, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
2353
2430
  let S;
2354
- t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(tt, { value: "fit", children: "Full width (default)" }), t[15] = S) : S = t[15];
2431
+ t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(nt, { value: "fit", children: "Full width (default)" }), t[15] = S) : S = t[15];
2355
2432
  let _;
2356
- t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ y(J, { gap: 2, children: [
2433
+ t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ y(ee, { gap: 2, children: [
2357
2434
  p,
2358
2435
  b,
2359
2436
  S,
2360
- /* @__PURE__ */ a(tt, { value: "custom", children: "Custom" })
2437
+ /* @__PURE__ */ a(nt, { value: "custom", children: "Custom" })
2361
2438
  ] }), t[16] = _) : _ = t[16];
2362
2439
  let v;
2363
- t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(Ol, { label: "Profile", children: /* @__PURE__ */ a(mn, { defaultValue: "fit", onValueChange: m, value: g, children: _ }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
2364
- const C = d?.viewportFit !== "custom", T = d?.customWidth ?? 60;
2365
- let k;
2366
- t[20] !== T ? (k = [T], t[20] = T, t[21] = k) : k = t[21];
2440
+ t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(jl, { label: "Profile", children: /* @__PURE__ */ a(gn, { defaultValue: "fit", onValueChange: m, value: g, children: _ }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
2441
+ const x = d?.viewportFit !== "custom", k = d?.customWidth ?? 60;
2367
2442
  let I;
2368
- t[22] !== s?.refit ? (I = ($) => {
2369
- const M = $.value[0] ?? 0;
2443
+ t[20] !== k ? (I = [k], t[20] = k, t[21] = I) : I = t[21];
2444
+ let T;
2445
+ t[22] !== s?.refit ? (T = ($) => {
2446
+ const O = $.value[0] ?? 0;
2370
2447
  s?.refit.update({
2371
- customWidth: M
2448
+ customWidth: O
2372
2449
  });
2373
- }, t[22] = s?.refit, t[23] = I) : I = t[23];
2450
+ }, t[22] = s?.refit, t[23] = T) : T = t[23];
2374
2451
  let R;
2375
- t[24] !== C || t[25] !== k || t[26] !== I ? (R = /* @__PURE__ */ a(At, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: C, value: k, onValueChange: I }), t[24] = C, t[25] = k, t[26] = I, t[27] = R) : R = t[27];
2452
+ t[24] !== x || t[25] !== I || t[26] !== T ? (R = /* @__PURE__ */ a(zt, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: x, value: I, onValueChange: T }), t[24] = x, t[25] = I, t[26] = T, t[27] = R) : R = t[27];
2376
2453
  let P;
2377
- t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ y(Ce.Root, { children: [
2454
+ t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(Ce.Root, { children: [
2378
2455
  h,
2379
2456
  /* @__PURE__ */ y(Ce.Content, { children: [
2380
2457
  v,
2381
2458
  R
2382
2459
  ] })
2383
2460
  ] }) }), t[28] = v, t[29] = R, t[30] = P) : P = t[30];
2384
- let E, z;
2385
- t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(fe, { variant: "outline", children: "Close" }) }) }), z = /* @__PURE__ */ a(ke, {}), t[31] = E, t[32] = z) : (E = t[31], z = t[32]);
2386
- let O;
2387
- t[33] !== P ? (O = /* @__PURE__ */ y(ye, { children: [
2461
+ let E, M;
2462
+ t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), M = /* @__PURE__ */ a(ke, {}), t[31] = E, t[32] = M) : (E = t[31], M = t[32]);
2463
+ let w;
2464
+ t[33] !== P ? (w = /* @__PURE__ */ y(Ie, { children: [
2388
2465
  f,
2389
2466
  P,
2390
2467
  E,
2391
- z
2392
- ] }), t[33] = P, t[34] = O) : O = t[34];
2468
+ M
2469
+ ] }), t[33] = P, t[34] = w) : w = t[34];
2393
2470
  let A;
2394
- return t[35] !== o || t[36] !== O || t[37] !== u ? (A = /* @__PURE__ */ a(Te, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: O }), t[35] = o, t[36] = O, t[37] = u, t[38] = A) : A = t[38], A;
2395
- }), zl = L((t) => {
2396
- const e = x(26), {
2471
+ return t[35] !== o || t[36] !== w || t[37] !== u ? (A = /* @__PURE__ */ a(Te, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: w }), t[35] = o, t[36] = w, t[37] = u, t[38] = A) : A = t[38], A;
2472
+ }), Kl = N((t) => {
2473
+ const e = C(26), {
2397
2474
  contextText: o,
2398
2475
  startOffset: n,
2399
2476
  text: i,
@@ -2423,40 +2500,40 @@ const Ol = ce.forwardRef(function(e, o) {
2423
2500
  let _;
2424
2501
  e[12] !== i ? (_ = /* @__PURE__ */ a("b", { children: i }), e[12] = i, e[13] = _) : _ = e[13];
2425
2502
  let v;
2426
- e[14] !== g || e[15] !== h || e[16] !== _ ? (v = /* @__PURE__ */ y(q, { lineClamp: 1, as: "cite", style: S, children: [
2503
+ e[14] !== g || e[15] !== h || e[16] !== _ ? (v = /* @__PURE__ */ y(U, { lineClamp: 1, as: "cite", style: S, children: [
2427
2504
  '"',
2428
2505
  h,
2429
2506
  _,
2430
2507
  g,
2431
2508
  '"'
2432
2509
  ] }), e[14] = g, e[15] = h, e[16] = _, e[17] = v) : v = e[17];
2433
- let C;
2434
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2510
+ let x;
2511
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
2435
2512
  textDecoration: "none"
2436
- }, e[18] = C) : C = e[18];
2437
- const T = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
2438
- let k;
2439
- e[19] !== T ? (k = /* @__PURE__ */ a(q, { fontSize: "sm", color: "gray.500", style: C, children: T }), e[19] = T, e[20] = k) : k = e[20];
2513
+ }, e[18] = x) : x = e[18];
2514
+ const k = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
2440
2515
  let I;
2441
- return e[21] !== u || e[22] !== v || e[23] !== k || e[24] !== b ? (I = /* @__PURE__ */ y(Rt, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2516
+ e[19] !== k ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style: x, children: k }), e[19] = k, e[20] = I) : I = e[20];
2517
+ let T;
2518
+ return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (T = /* @__PURE__ */ y(Mt, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2442
2519
  v,
2443
- k
2444
- ] }), e[21] = u, e[22] = v, e[23] = k, e[24] = b, e[25] = I) : I = e[25], I;
2445
- }), Al = 500, wl = () => {
2446
- const t = x(13), e = nt(Pl), {
2520
+ I
2521
+ ] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] = T) : T = e[25], T;
2522
+ }), Yl = 500, Zl = () => {
2523
+ const t = C(13), e = ot(Ql), {
2447
2524
  data: o
2448
- } = N(e), n = Z();
2525
+ } = H(e), n = j();
2449
2526
  let i;
2450
- t[0] !== n ? (i = an(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
2527
+ t[0] !== n ? (i = cn(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
2451
2528
  const l = i;
2452
2529
  let s, r;
2453
- t[2] !== l || t[3] !== e ? (s = () => e.pipe(Ye(), ve((m) => m === "" || !l ? It(void 0) : en(It({
2530
+ t[2] !== l || t[3] !== e ? (s = () => e.pipe(xe(), be((m) => m === "" || !l ? gt(void 0) : en(gt({
2454
2531
  type: "start",
2455
2532
  data: void 0
2456
- }), tn(Al).pipe(ve(() => l.search.search(m)), te(El))))), r = [l, e], t[2] = l, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
2533
+ }), tn(Yl).pipe(be(() => l.search.search(m)), J(Xl))))), r = [l, e], t[2] = l, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
2457
2534
  const {
2458
2535
  data: c
2459
- } = N(s, r);
2536
+ } = H(s, r);
2460
2537
  let d;
2461
2538
  t[6] !== e ? (d = e.next.bind(e), t[6] = e, t[7] = d) : d = t[7];
2462
2539
  const u = c?.type ?? "idle", f = c?.data;
@@ -2468,32 +2545,32 @@ const Ol = ce.forwardRef(function(e, o) {
2468
2545
  data: f
2469
2546
  }, t[8] = o, t[9] = d, t[10] = u, t[11] = f, t[12] = h) : h = t[12], h;
2470
2547
  };
2471
- function Pl() {
2548
+ function Ql() {
2472
2549
  return new nn("");
2473
2550
  }
2474
- function El(t) {
2551
+ function Xl(t) {
2475
2552
  return {
2476
2553
  type: "end",
2477
2554
  data: t
2478
2555
  };
2479
2556
  }
2480
- const Dl = L((t) => {
2481
- const e = x(31), {
2557
+ const Jl = N((t) => {
2558
+ const e = C(31), {
2482
2559
  onNavigate: o
2483
- } = t, n = Z(), {
2560
+ } = t, n = j(), {
2484
2561
  value: i,
2485
2562
  setValue: l,
2486
2563
  status: s,
2487
2564
  data: r
2488
- } = wl();
2565
+ } = Zl();
2489
2566
  let c;
2490
- e[0] !== l ? (c = (k) => {
2491
- l(k.target.value);
2567
+ e[0] !== l ? (c = (I) => {
2568
+ l(I.target.value);
2492
2569
  }, e[0] = l, e[1] = c) : c = e[1];
2493
2570
  const d = c;
2494
2571
  let u;
2495
- e[2] !== o || e[3] !== n?.navigation ? (u = (k) => {
2496
- o(), n?.navigation.goToCfi(k);
2572
+ e[2] !== o || e[3] !== n?.navigation ? (u = (I) => {
2573
+ o(), n?.navigation.goToCfi(I);
2497
2574
  }, e[2] = o, e[3] = n?.navigation, e[4] = u) : u = e[4];
2498
2575
  const f = u;
2499
2576
  let h;
@@ -2502,7 +2579,7 @@ const Dl = L((t) => {
2502
2579
  e[8] !== r ? (m = [r], e[8] = r, e[9] = m) : m = e[9];
2503
2580
  const {
2504
2581
  data: g
2505
- } = N(h, m);
2582
+ } = H(h, m);
2506
2583
  let p;
2507
2584
  e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a(Tn, { 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];
2508
2585
  let b;
@@ -2511,30 +2588,30 @@ const Dl = L((t) => {
2511
2588
  overflowY: "auto"
2512
2589
  }, e[13] = b) : b = e[13];
2513
2590
  let S;
2514
- e[14] !== s ? (S = s === "start" && /* @__PURE__ */ a(q, { children: "Searching ..." }), e[14] = s, e[15] = S) : S = e[15];
2591
+ e[14] !== s ? (S = s === "start" && /* @__PURE__ */ a(U, { children: "Searching ..." }), e[14] = s, e[15] = S) : S = e[15];
2515
2592
  let _;
2516
- e[16] !== r?.length ? (_ = r?.length === 0 && /* @__PURE__ */ a(q, { children: "No results" }), e[16] = r?.length, e[17] = _) : _ = e[17];
2593
+ e[16] !== r?.length ? (_ = r?.length === 0 && /* @__PURE__ */ a(U, { children: "No results" }), e[16] = r?.length, e[17] = _) : _ = e[17];
2517
2594
  let v;
2518
- e[18] !== g || e[19] !== r?.length || e[20] !== f || e[21] !== i || e[22] !== s ? (v = s === "end" && (r?.length ?? 0) > 0 && /* @__PURE__ */ y(J, { children: [
2519
- /* @__PURE__ */ y(q, { fontSize: "md", children: [
2595
+ e[18] !== g || e[19] !== r?.length || e[20] !== f || e[21] !== i || e[22] !== s ? (v = s === "end" && (r?.length ?? 0) > 0 && /* @__PURE__ */ y(ee, { children: [
2596
+ /* @__PURE__ */ y(U, { fontSize: "md", children: [
2520
2597
  r?.length,
2521
2598
  " result(s)"
2522
2599
  ] }),
2523
- /* @__PURE__ */ a(J, { gap: 0, children: g?.map((k, I) => /* @__PURE__ */ a(zl, { contextText: k.meta?.range?.startContainer.parentElement?.textContent ?? "", pageIndex: k.meta?.itemPageIndex, startOffset: k.meta?.range?.startOffset ?? 0, text: i, cfi: k.meta.cfi, onClick: f, absolutePageIndex: k.meta?.absolutePageIndex }, I)) })
2600
+ /* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I, T) => /* @__PURE__ */ a(Kl, { 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 }, T)) })
2524
2601
  ] }), e[18] = g, e[19] = r?.length, e[20] = f, e[21] = i, e[22] = s, e[23] = v) : v = e[23];
2525
- let C;
2526
- e[24] !== S || e[25] !== _ || e[26] !== v ? (C = /* @__PURE__ */ y(J, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2602
+ let x;
2603
+ e[24] !== S || e[25] !== _ || e[26] !== v ? (x = /* @__PURE__ */ y(ee, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2527
2604
  S,
2528
2605
  _,
2529
2606
  v
2530
- ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = C) : C = e[27];
2531
- let T;
2532
- return e[28] !== C || e[29] !== p ? (T = /* @__PURE__ */ y(J, { flex: 1, height: "100%", gap: 2, children: [
2607
+ ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = x) : x = e[27];
2608
+ let k;
2609
+ return e[28] !== x || e[29] !== p ? (k = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
2533
2610
  p,
2534
- C
2535
- ] }), e[28] = C, e[29] = p, e[30] = T) : T = e[30], T;
2536
- }), Bl = L((t) => {
2537
- const e = x(14), {
2611
+ x
2612
+ ] }), e[28] = x, e[29] = p, e[30] = k) : k = e[30], k;
2613
+ }), es = N((t) => {
2614
+ const e = C(14), {
2538
2615
  open: o,
2539
2616
  setOpen: n,
2540
2617
  onNavigate: i
@@ -2547,13 +2624,13 @@ const Dl = L((t) => {
2547
2624
  md: "lg"
2548
2625
  }, e[2] = s) : s = e[2];
2549
2626
  let r;
2550
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Oe, { children: "Search" }) }), e[3] = r) : r = e[3];
2627
+ 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];
2551
2628
  let c;
2552
- e[4] !== i ? (c = /* @__PURE__ */ a(Re, { flex: 1, p: 0, children: /* @__PURE__ */ a(Dl, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2629
+ e[4] !== i ? (c = /* @__PURE__ */ a(Me, { flex: 1, p: 0, children: /* @__PURE__ */ a(Jl, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2553
2630
  let d, u;
2554
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(fe, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2631
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2555
2632
  let f;
2556
- e[8] !== c ? (f = /* @__PURE__ */ y(ye, { height: "100%", children: [
2633
+ e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { height: "100%", children: [
2557
2634
  r,
2558
2635
  c,
2559
2636
  d,
@@ -2561,16 +2638,16 @@ const Dl = L((t) => {
2561
2638
  ] }), e[8] = c, e[9] = f) : f = e[9];
2562
2639
  let h;
2563
2640
  return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(Te, { 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;
2564
- }), Fl = L((t) => {
2565
- const e = x(5), {
2641
+ }), ts = N((t) => {
2642
+ const e = C(5), {
2566
2643
  onNavigate: o
2567
- } = t, n = Z(), {
2644
+ } = t, n = j(), {
2568
2645
  data: i
2569
- } = N(() => n?.context, [n]) ?? {}, {
2646
+ } = H(() => n?.context, [n]) ?? {}, {
2570
2647
  manifest: l
2571
2648
  } = i === void 0 ? {} : i, {
2572
2649
  nav: s
2573
- } = l ?? {}, r = Ke();
2650
+ } = l ?? {}, r = Xe();
2574
2651
  s?.toc;
2575
2652
  const c = r?.beginAbsolutePageIndex;
2576
2653
  let d;
@@ -2580,26 +2657,26 @@ const Dl = L((t) => {
2580
2657
  e[0] = r?.beginChapterInfo, e[1] = d;
2581
2658
  } else
2582
2659
  d = e[1];
2583
- const u = (_, v, C) => /* @__PURE__ */ y(In.Fragment, { children: [
2584
- /* @__PURE__ */ a(ge.Item, { pl: 4 * (C + 1), style: {
2660
+ const u = (_, v, x) => /* @__PURE__ */ y($n.Fragment, { children: [
2661
+ /* @__PURE__ */ a(ge.Item, { pl: 4 * (x + 1), style: {
2585
2662
  display: "flex",
2586
2663
  alignItems: "center"
2587
- }, children: /* @__PURE__ */ y(Rt, { onClick: () => {
2664
+ }, children: /* @__PURE__ */ y(Mt, { onClick: () => {
2588
2665
  o(), n?.navigation.goToUrl(_.href);
2589
2666
  }, href: "#", children: [
2590
- d?.path === _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Bt, {}) }),
2591
- d?.path !== _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Bt, {}) }),
2592
- /* @__PURE__ */ y(J, { gap: 0, children: [
2593
- /* @__PURE__ */ a(q, { fontSize: "md", children: _.title || _.path }),
2594
- d?.path === _.path && c !== void 0 && /* @__PURE__ */ a(q, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2667
+ d?.path === _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Ft, {}) }),
2668
+ d?.path !== _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Ft, {}) }),
2669
+ /* @__PURE__ */ y(ee, { gap: 0, children: [
2670
+ /* @__PURE__ */ a(U, { fontSize: "md", children: _.title || _.path }),
2671
+ d?.path === _.path && c !== void 0 && /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2595
2672
  ] })
2596
2673
  ] }) }),
2597
- _.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((T, k) => u(T, k, C + 1)) })
2674
+ _.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((k, I) => u(k, I, x + 1)) })
2598
2675
  ] }, v), f = ge, h = 3, m = "auto", g = 4, p = 1, b = s?.toc.map((_, v) => u(_, v, 0));
2599
2676
  let S;
2600
2677
  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;
2601
- }), Ll = L((t) => {
2602
- const e = x(14), {
2678
+ }), ns = N((t) => {
2679
+ const e = C(14), {
2603
2680
  open: o,
2604
2681
  setOpen: n,
2605
2682
  onNavigate: i
@@ -2612,13 +2689,13 @@ const Dl = L((t) => {
2612
2689
  md: "lg"
2613
2690
  }, e[2] = s) : s = e[2];
2614
2691
  let r;
2615
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(Oe, { children: "Table of Contents" }) }), e[3] = r) : r = e[3];
2692
+ 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];
2616
2693
  let c;
2617
- e[4] !== i ? (c = /* @__PURE__ */ a(Re, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(Fl, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2694
+ e[4] !== i ? (c = /* @__PURE__ */ a(Me, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(ts, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2618
2695
  let d, u;
2619
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ a(Me, { asChild: !0, children: /* @__PURE__ */ a(fe, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2696
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2620
2697
  let f;
2621
- e[8] !== c ? (f = /* @__PURE__ */ y(ye, { children: [
2698
+ e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { children: [
2622
2699
  r,
2623
2700
  c,
2624
2701
  d,
@@ -2626,35 +2703,35 @@ const Dl = L((t) => {
2626
2703
  ] }), e[8] = c, e[9] = f) : f = e[9];
2627
2704
  let h;
2628
2705
  return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(Te, { 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;
2629
- }), Nl = () => {
2630
- const t = x(7), e = Z();
2706
+ }), os = () => {
2707
+ const t = C(7), e = j();
2631
2708
  let o;
2632
2709
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["zoomMaxScale"], t[0] = o) : o = t[0];
2633
2710
  const {
2634
2711
  zoomMaxScale: n
2635
- } = oe(o);
2712
+ } = ie(o);
2636
2713
  let i;
2637
2714
  t[1] !== e?.gestures.settings || t[2] !== n ? (i = function() {
2638
2715
  e?.gestures.settings.update({
2639
- zoomMaxScale: n ?? ln
2716
+ zoomMaxScale: n ?? sn
2640
2717
  });
2641
2718
  }, t[1] = e?.gestures.settings, t[2] = n, t[3] = i) : i = t[3];
2642
2719
  let l;
2643
- t[4] !== e || t[5] !== n ? (l = [e, n], t[4] = e, t[5] = n, t[6] = l) : l = t[6], ie(i, l);
2644
- }, qt = 0.5, jt = 1, Hl = (t, e, o, n) => {
2720
+ 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
+ }, qt = 0.5, Kt = 1, is = (t, e, o, n) => {
2645
2722
  if (t > e && t < e + n)
2646
2723
  return e + n;
2647
2724
  const i = Math.min(Math.max(t, e), o), l = Math.round((i - e) / n) * n + e;
2648
2725
  return Math.round(l * 100) / 100;
2649
- }, Vl = L(() => {
2650
- const t = x(23);
2726
+ }, ls = N(() => {
2727
+ const t = C(23);
2651
2728
  let e;
2652
2729
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["zoomMaxScale"], t[0] = e) : e = t[0];
2653
2730
  const {
2654
2731
  zoomMaxScale: o
2655
- } = oe(e), n = o === void 0 ? ln : o, i = Z();
2732
+ } = ie(e), n = o === void 0 ? sn : o, i = j();
2656
2733
  let l;
2657
- t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(te(Wl), Xt(100, Xn, {
2734
+ t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(ss), Xt(100, to, {
2658
2735
  leading: !0,
2659
2736
  trailing: !0
2660
2737
  })), t[1] = i?.zoom.state$, t[2] = l) : l = t[2];
@@ -2662,50 +2739,50 @@ const Dl = L((t) => {
2662
2739
  t[3] !== i ? (s = [i], t[3] = i, t[4] = s) : s = t[4];
2663
2740
  const {
2664
2741
  data: r
2665
- } = N(l, s), c = r === void 0 ? 1 : r;
2742
+ } = H(l, s), c = r === void 0 ? 1 : r;
2666
2743
  let d;
2667
- t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(te(Gl)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
2744
+ t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(rs)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
2668
2745
  let u;
2669
2746
  t[7] !== i ? (u = [i], t[7] = i, t[8] = u) : u = t[8];
2670
2747
  const {
2671
2748
  data: f
2672
- } = N(d, u), h = f === void 0 ? !1 : f;
2749
+ } = H(d, u), h = f === void 0 ? !1 : f;
2673
2750
  let m;
2674
- t[9] !== n || t[10] !== c ? (m = Hl(c, jt, n, qt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2751
+ t[9] !== n || t[10] !== c ? (m = is(c, Kt, n, qt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2675
2752
  const g = m, p = h && c > 1;
2676
2753
  let b;
2677
2754
  t[12] !== g ? (b = [g], t[12] = g, t[13] = b) : b = t[13];
2678
2755
  let S;
2679
- t[14] !== i?.zoom ? (S = (C) => {
2680
- const T = C.value?.[0] ?? 1;
2681
- T === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(T, {
2756
+ t[14] !== i?.zoom ? (S = (x) => {
2757
+ const k = x.value?.[0] ?? 1;
2758
+ k === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(k, {
2682
2759
  constrain: "within-viewport"
2683
2760
  });
2684
2761
  }, t[14] = i?.zoom, t[15] = S) : S = t[15];
2685
2762
  let _;
2686
- t[16] !== b || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ a(At, { value: b, min: jt, max: n, step: qt, minWidth: 200, onValueChange: S }), t[16] = b, t[17] = S, t[18] = n, t[19] = _) : _ = t[19];
2763
+ t[16] !== b || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ a(zt, { value: b, min: Kt, max: n, step: qt, minWidth: 200, onValueChange: S }), t[16] = b, t[17] = S, t[18] = n, t[19] = _) : _ = t[19];
2687
2764
  let v;
2688
- return t[20] !== _ || t[21] !== p ? (v = /* @__PURE__ */ a(rn, { present: p, children: _ }), t[20] = _, t[21] = p, t[22] = v) : v = t[22], v;
2765
+ return t[20] !== _ || t[21] !== p ? (v = /* @__PURE__ */ a(an, { present: p, children: _ }), t[20] = _, t[21] = p, t[22] = v) : v = t[22], v;
2689
2766
  });
2690
- function Wl(t) {
2767
+ function ss(t) {
2691
2768
  return t.currentScale;
2692
2769
  }
2693
- function Gl(t) {
2770
+ function rs(t) {
2694
2771
  return t.isZooming;
2695
2772
  }
2696
- const Ul = {
2773
+ const as = {
2697
2774
  _open: "fade-in",
2698
2775
  _closed: "fade-out"
2699
- }, ql = L(() => (Yo(), null)), jl = L(() => {
2700
- const t = x(1);
2701
- Nl(), ol(), ll(), Il(), Zo(), Qo();
2776
+ }, cs = N(() => (Xo(), null)), ds = N(() => {
2777
+ const t = C(1);
2778
+ os(), vl(), Cl(), Wl(), Jo(), ei();
2702
2779
  let e;
2703
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(_e, { children: [
2704
- /* @__PURE__ */ a(Bi, {}),
2705
- /* @__PURE__ */ a(ql, {})
2780
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(ve, { children: [
2781
+ /* @__PURE__ */ a(Hi, {}),
2782
+ /* @__PURE__ */ a(cs, {})
2706
2783
  ] }), t[0] = e) : e = t[0], e;
2707
- }), Yl = L((t) => {
2708
- const e = x(46);
2784
+ }), fs = N((t) => {
2785
+ const e = C(47);
2709
2786
  let o, n;
2710
2787
  e[0] !== t ? ({
2711
2788
  children: o,
@@ -2716,70 +2793,71 @@ const Ul = {
2716
2793
  const {
2717
2794
  enableFloatingTime: l,
2718
2795
  onItemClick: s
2719
- } = oe(i), [r, c] = ne(!1), [d, u] = ne(!1), [f, h] = ne(!1), [m, g] = ne(void 0), [p, b] = ne(!1), [S, _] = Et();
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, _] = Dt();
2720
2797
  let v;
2721
2798
  e[4] !== _ ? (v = () => {
2722
2799
  c(!1), u(!1), h(!1), g(void 0), _(!1), b(!1);
2723
2800
  }, e[4] = _, e[5] = v) : v = e[5];
2724
- const C = v;
2801
+ const x = 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;
2725
2807
  let T;
2726
- e[6] !== s ? (T = (V) => {
2727
- V === "annotations" ? g("annotations") : V === "search" ? h(!0) : V === "help" ? u(!0) : V === "toc" ? c(!0) : V === "bookmarks" ? g("bookmarks") : V === "gallery" && b(!0), s?.(V);
2728
- }, e[6] = s, e[7] = T) : T = e[7];
2729
- const k = T;
2730
- let I;
2731
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ a(jl, {}), e[8] = I) : I = e[8];
2732
- let R, P;
2733
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(vi, { children: /* @__PURE__ */ a(Go, {}) }), P = /* @__PURE__ */ a(Ji, {}), e[9] = R, e[10] = P) : (R = e[9], P = e[10]);
2734
- let E;
2735
- e[11] !== p ? (E = /* @__PURE__ */ a(qi, { open: p, setOpen: b }), e[11] = p, e[12] = E) : E = e[12];
2736
- let z;
2737
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(Ml, {}), e[13] = z) : z = e[13];
2738
- let O;
2739
- e[14] !== k ? (O = /* @__PURE__ */ a(Tl, { onItemClick: k }), e[14] = k, e[15] = O) : O = e[15];
2740
- let A, $, M, w;
2741
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(Vl, {}), $ = /* @__PURE__ */ a(xo, {}), M = /* @__PURE__ */ a(Mo, {}), w = /* @__PURE__ */ a(Ei, {}), e[16] = A, e[17] = $, e[18] = M, e[19] = w) : (A = e[16], $ = e[17], M = e[18], w = e[19]);
2742
- let D;
2743
- e[20] !== d ? (D = /* @__PURE__ */ a(Zi, { open: d, setOpen: u }), e[20] = d, e[21] = D) : D = e[21];
2744
- let B;
2745
- e[22] !== r || e[23] !== C ? (B = /* @__PURE__ */ a(Ll, { open: r, setOpen: c, onNavigate: C }), e[22] = r, e[23] = C, e[24] = B) : B = e[24];
2746
- let Q;
2747
- e[25] !== f || e[26] !== C ? (Q = /* @__PURE__ */ a(Bl, { open: f, setOpen: h, onNavigate: C }), e[25] = f, e[26] = C, e[27] = Q) : Q = e[27];
2748
- let W;
2749
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (V) => g(V ? "annotations" : void 0), e[28] = W) : W = e[28];
2750
- let H;
2751
- e[29] !== m || e[30] !== C ? (H = /* @__PURE__ */ a(No, { openWith: m, setOpen: W, onNavigate: C }), e[29] = m, e[30] = C, e[31] = H) : H = e[31];
2752
- const j = l || S;
2808
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ a(ds, {}), e[8] = T) : T = e[8];
2809
+ let R, P, E;
2810
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(Ii, { children: /* @__PURE__ */ a(Ko, {}) }), P = /* @__PURE__ */ a(ol, {}), E = /* @__PURE__ */ a(_l, {}), e[9] = R, e[10] = P, e[11] = E) : (R = e[9], P = e[10], E = e[11]);
2811
+ let M;
2812
+ e[12] !== p ? (M = /* @__PURE__ */ a(Zi, { open: p, setOpen: b }), e[12] = p, e[13] = M) : M = e[13];
2813
+ let w;
2814
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(ql, {}), e[14] = w) : w = e[14];
2815
+ let A;
2816
+ e[15] !== I ? (A = /* @__PURE__ */ a(Vl, { onItemClick: I }), e[15] = I, e[16] = A) : A = e[16];
2817
+ let $, O, z, D;
2818
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(ls, {}), O = /* @__PURE__ */ a(To, {}), z = /* @__PURE__ */ a(Po, {}), D = /* @__PURE__ */ a(Li, {}), e[17] = $, e[18] = O, e[19] = z, e[20] = D) : ($ = e[17], O = e[18], z = e[19], D = e[20]);
2819
+ let F;
2820
+ e[21] !== d ? (F = /* @__PURE__ */ a(Ji, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
2821
+ let Y;
2822
+ e[23] !== r || e[24] !== x ? (Y = /* @__PURE__ */ a(ns, { open: r, setOpen: c, onNavigate: x }), e[23] = r, e[24] = x, e[25] = Y) : Y = e[25];
2823
+ let V;
2824
+ e[26] !== f || e[27] !== x ? (V = /* @__PURE__ */ a(es, { open: f, setOpen: h, onNavigate: x }), e[26] = f, e[27] = x, e[28] = V) : V = e[28];
2753
2825
  let G;
2754
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ a(nl, {}), e[32] = G) : G = e[32];
2755
- let U;
2756
- e[33] !== j ? (U = /* @__PURE__ */ a(rt, { present: j, animationName: Ul, animationDuration: "slow", overflow: "hidden", children: G }), e[33] = j, e[34] = U) : U = e[34];
2757
- let X;
2758
- e[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ a(xi, {}), e[35] = X) : X = e[35];
2826
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (B) => g(B ? "annotations" : void 0), e[29] = G) : G = e[29];
2827
+ let W;
2828
+ e[30] !== m || e[31] !== x ? (W = /* @__PURE__ */ a(Go, { openWith: m, setOpen: G, onNavigate: x }), e[30] = m, e[31] = x, e[32] = W) : W = e[32];
2829
+ const q = l || S;
2830
+ let Z;
2831
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(sl, {}), e[33] = Z) : Z = e[33];
2759
2832
  let K;
2760
- return e[36] !== o || e[37] !== n || e[38] !== D || e[39] !== B || e[40] !== Q || e[41] !== H || e[42] !== U || e[43] !== E || e[44] !== O ? (K = /* @__PURE__ */ y(_e, { children: [
2761
- I,
2762
- /* @__PURE__ */ y(he, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2833
+ e[34] !== q ? (K = /* @__PURE__ */ a(Ye, { present: q, animationName: as, animationDuration: "slow", overflow: "hidden", children: Z }), e[34] = q, e[35] = K) : K = e[35];
2834
+ let Q;
2835
+ e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(Ti, {}), e[36] = Q) : Q = e[36];
2836
+ let X;
2837
+ return e[37] !== o || e[38] !== n || e[39] !== A || e[40] !== F || e[41] !== Y || e[42] !== V || e[43] !== W || e[44] !== K || e[45] !== M ? (X = /* @__PURE__ */ y(ve, { children: [
2838
+ T,
2839
+ /* @__PURE__ */ y(le, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2763
2840
  o,
2764
2841
  R,
2765
2842
  P,
2766
2843
  E,
2767
- z,
2768
- O,
2769
- A,
2770
- $,
2771
2844
  M,
2772
2845
  w,
2846
+ A,
2847
+ $,
2848
+ O,
2849
+ z,
2773
2850
  D,
2774
- B,
2775
- Q,
2776
- H,
2777
- U,
2778
- X
2851
+ F,
2852
+ Y,
2853
+ V,
2854
+ W,
2855
+ K,
2856
+ Q
2779
2857
  ] })
2780
- ] }), e[36] = o, e[37] = n, e[38] = D, e[39] = B, e[40] = Q, e[41] = H, e[42] = U, e[43] = E, e[44] = O, e[45] = K) : K = e[45], K;
2781
- }), gs = L((t) => {
2782
- const e = x(16);
2858
+ ] }), e[37] = o, e[38] = n, e[39] = A, e[40] = F, e[41] = Y, e[42] = V, e[43] = W, e[44] = K, e[45] = M, e[46] = X) : X = e[46], X;
2859
+ }), As = N((t) => {
2860
+ const e = C(16);
2783
2861
  let o, n, i;
2784
2862
  e[0] !== t ? ({
2785
2863
  children: o,
@@ -2800,13 +2878,13 @@ const Ul = {
2800
2878
  e[8] !== c ? (d = c === void 0 ? {} : c, e[8] = c, e[9] = d) : d = e[9];
2801
2879
  const u = d;
2802
2880
  let f;
2803
- e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(Yl, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
2881
+ e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(fs, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
2804
2882
  let h;
2805
- return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(Ti, { ...n, children: f }), e[13] = n, e[14] = f, e[15] = h) : h = e[15], h;
2883
+ return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(Mi, { ...n, children: f }), e[13] = n, e[14] = f, e[15] = h) : h = e[15], h;
2806
2884
  });
2807
2885
  export {
2808
- _o as BOOKMARK_AREA_DATA_ATTRIBUTE,
2809
- ln as MAX_ZOOM_SCALE,
2810
- gs as ReactReader
2886
+ yo as BOOKMARK_AREA_DATA_ATTRIBUTE,
2887
+ sn as MAX_ZOOM_SCALE,
2888
+ As as ReactReader
2811
2889
  };
2812
2890
  //# sourceMappingURL=index.js.map