@pdf-viewer/react 1.4.1-rc.0 → 1.4.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/{RPDefaultLayout-a5d7b0b8.js → RPDefaultLayout-02af532a.js} +273 -273
  2. package/dist/assets/RPDefaultLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/RPProvider.js +1 -1
  6. package/dist/components/layout/LayoutContainer.js +1 -1
  7. package/dist/components/layout/RPDefaultLayout.js +1 -1
  8. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  11. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  13. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  14. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  15. package/dist/components/layout/toolbar/Paginate.js +1 -1
  16. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  19. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  20. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  21. package/dist/components/page/AnnotationLayer.js +1 -1
  22. package/dist/components/page/CanvasLayer.js +1 -1
  23. package/dist/components/page/DualPage.js +1 -1
  24. package/dist/components/page/RPPage.js +1 -1
  25. package/dist/components/page/SinglePage.js +1 -1
  26. package/dist/components/page/TextHighlightLayer.js +1 -1
  27. package/dist/components/page/TextLayer.js +1 -1
  28. package/dist/components/ui/LoadingIndicator.js +1 -1
  29. package/dist/contexts/PaginationContext.js +1 -1
  30. package/dist/contexts/PrintContext.js +1 -1
  31. package/dist/contexts/SearchContext.js +1 -1
  32. package/dist/contexts/ThumbnailsContext.js +1 -1
  33. package/dist/main.js +1 -1
  34. package/dist/types/utils/types.d.ts +1 -0
  35. package/dist/utils/hooks/useFileDownload.js +1 -1
  36. package/dist/utils/hooks/useLicense.js +1 -1
  37. package/dist/utils/hooks/usePaginate.js +1 -1
  38. package/dist/utils/hooks/usePrint.js +1 -1
  39. package/dist/utils/hooks/useScrollToPage.js +1 -1
  40. package/dist/utils/hooks/useSearch.js +1 -1
  41. package/dist/utils/hooks/useThumbnail.js +1 -1
  42. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  43. package/dist/utils/types.js +1 -1
  44. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { jsx as i, Fragment as ye, jsxs as z } from "react/jsx-runtime";
1
+ import { jsx as i, Fragment as xe, jsxs as z } from "react/jsx-runtime";
2
2
  import * as G from "react";
3
- import { useRef as M, useEffect as O, useCallback as x, useState as $, createContext as Be, useContext as je, useMemo as F, forwardRef as Me, useImperativeHandle as ir, createElement as He, PureComponent as tn, Component as rn, memo as nn } from "react";
4
- import { ChevronUpIcon as Fe } from "./components/icons/ChevronUpIcon.js";
3
+ import { useRef as M, useEffect as O, useCallback as I, useState as $, createContext as Be, useContext as je, useMemo as k, forwardRef as Me, useImperativeHandle as ir, createElement as He, PureComponent as tn, Component as rn, memo as nn } from "react";
4
+ import { ChevronUpIcon as ke } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as te } from "./components/ui/Button.js";
6
6
  import { UIInput as ar } from "./components/ui/Input.js";
7
7
  import { useScrollModeContext as Oe } from "./contexts/ScrollModeContext.js";
@@ -24,7 +24,7 @@ import { renderPage as gt } from "./utils/renderPage.js";
24
24
  import { highlightMatches as cr, findMatches as un, resetDivs as lr, highlightMultipleColorMatches as pn } from "./utils/highlight.js";
25
25
  import * as Ct from "pdfjs-dist";
26
26
  import { PixelsPerInch as hn, AnnotationMode as mn, RenderingCancelledException as fn, AnnotationLayer as gn } from "pdfjs-dist";
27
- import { useLayoutContainer as xe } from "./contexts/LayoutContainerContext.js";
27
+ import { useLayoutContainer as Ie } from "./contexts/LayoutContainerContext.js";
28
28
  import { useDimensionPagesContext as Tt } from "./contexts/DimensionPagesContext.js";
29
29
  import { useLocalizationContext as me } from "./contexts/LocalizationContext.js";
30
30
  import { useHighlightContext as vn } from "./contexts/HighlightContext.js";
@@ -40,25 +40,25 @@ import { useIconContext as fe, IconProvider as Tn } from "./contexts/IconContext
40
40
  import U from "./components/ui/RPTooltip.js";
41
41
  import { Container as Pn } from "./components/layout/Container.js";
42
42
  import { WrapperLayout as Sn } from "./components/layout/WrapperLayout.js";
43
- import { RPDropFileZone as yn } from "./components/RPDropFileZone.js";
44
- import { useViewportContext as Re, ViewportProvider as In } from "./contexts/ViewportContext.js";
45
- import { useThemeContext as xn } from "./contexts/ThemeContext.js";
43
+ import { RPDropFileZone as xn } from "./components/RPDropFileZone.js";
44
+ import { useViewportContext as Re, ViewportProvider as yn } from "./contexts/ViewportContext.js";
45
+ import { useThemeContext as In } from "./contexts/ThemeContext.js";
46
46
  import { SimpleLinkService as Rn } from "./utils/link_service.js";
47
- import { annotationsEvents as Ln, annotationEventsHandler as Nn, handleClick as At, handleAnnotationWidget as En, handleAnnotationLink as On, bindLayerEvents as Dn, unbindLayerEvents as kt } from "./utils/annotations.js";
47
+ import { annotationsEvents as Ln, annotationEventsHandler as Nn, handleClick as At, handleAnnotationWidget as En, handleAnnotationLink as On, bindLayerEvents as Dn, unbindLayerEvents as Ft } from "./utils/annotations.js";
48
48
  import { useWatermark as zn } from "./utils/hooks/useWatermark.js";
49
- import { _ as An, U as kn } from "./Popover-b7402893.js";
50
- import { useMousePressed as Fn } from "./utils/hooks/useMousePressed.js";
49
+ import { _ as An, U as Fn } from "./Popover-b7402893.js";
50
+ import { useMousePressed as kn } from "./utils/hooks/useMousePressed.js";
51
51
  import { useGrabScroll as Mn } from "./utils/hooks/useGrabScroll.js";
52
52
  import { usePinch as Wn } from "./utils/hooks/usePinch.js";
53
53
  import { useDebounce as vt } from "./utils/hooks/useDebounce.js";
54
- import { getThumbnailViewport as Ft } from "./utils/getThumbnailViewport.js";
54
+ import { getThumbnailViewport as kt } from "./utils/getThumbnailViewport.js";
55
55
  import { smoothScrollTo as Mt } from "./utils/smoothScrollTo.js";
56
56
  import { appConsole as Hn } from "./utils/appConsole.js";
57
57
  import { FileUploadTool as ur } from "./components/layout/toolbar/FileUploadTool.js";
58
58
  import { DarkModeTool as $n } from "./components/layout/toolbar/DarkModeTool.js";
59
59
  import { ThreeDotIcon as Vn } from "./components/icons/ThreeDotIcon.js";
60
60
  import { UIDropDown as pr } from "./components/ui/DropDown.js";
61
- import { u as St, P as We, c as ke, a as yt, S as Gn } from "./index-353ec0a6.js";
61
+ import { u as St, P as We, c as Fe, a as xt, S as Gn } from "./index-353ec0a6.js";
62
62
  import { c as qn, e as Un, b as Zn } from "./index-71898eb9.js";
63
63
  import { a as it } from "./index-2e540713.js";
64
64
  import { a as Bn, u as jn, F as Kn, D as Xn, b as Jn, G as Ue } from "./index-5ff5dbd0.js";
@@ -70,7 +70,7 @@ import { useOtherToolContext as eo, OtherToolProvider as to } from "./contexts/O
70
70
  import { DocumentProperties as ro } from "./components/layout/toolbar/DocumentProperties.js";
71
71
  import { RotateTool as no } from "./components/layout/toolbar/RotateTool.js";
72
72
  import { ScrollModeTool as oo } from "./components/layout/toolbar/ScrollModeTool.js";
73
- import { MenuSeparator as It } from "./components/layout/toolbar/MenuSeparator.js";
73
+ import { MenuSeparator as yt } from "./components/layout/toolbar/MenuSeparator.js";
74
74
  import { FileDownloadDefaultIcon as io } from "./components/icons/FileDownloadDefaultIcon.js";
75
75
  import { MenuItem as be } from "./components/layout/toolbar/MenuItem.js";
76
76
  import { PrintDefaultTool as ao } from "./components/icons/PrintDefaultIcon.js";
@@ -92,7 +92,7 @@ import './assets/RPDefaultLayout.css';const gr = () => {
92
92
  }, [r]), O(() => {
93
93
  u.current = e, f.current = t;
94
94
  }, [e, t]);
95
- const g = x(
95
+ const g = I(
96
96
  (b) => {
97
97
  if (!n)
98
98
  return;
@@ -115,7 +115,7 @@ import './assets/RPDefaultLayout.css';const gr = () => {
115
115
  u.current = e, f.current = t;
116
116
  }, [e, t]), O(() => {
117
117
  h.current = s;
118
- }, [s]), { scrollToPage: x(
118
+ }, [s]), { scrollToPage: I(
119
119
  (b) => {
120
120
  const v = b - 1;
121
121
  let _ = v, m = 0;
@@ -146,11 +146,11 @@ import './assets/RPDefaultLayout.css';const gr = () => {
146
146
  }), S();
147
147
  });
148
148
  }
149
- const y = _ * (d[_] ?? 0);
149
+ const x = _ * (d[_] ?? 0);
150
150
  return new Promise(
151
151
  (p) => {
152
152
  T.scrollTo({
153
- top: y,
153
+ top: x,
154
154
  left: 0
155
155
  }), p();
156
156
  }
@@ -168,7 +168,7 @@ import './assets/RPDefaultLayout.css';const gr = () => {
168
168
  ]
169
169
  ) };
170
170
  }, mo = (t = 1) => {
171
- const [e, r] = $(t), [o, n] = $(0), { scrollToPage: a } = gr(), c = M(1), { isScrolling: s } = Qe(), { viewMode: l } = Je(), { scrollMode: d } = Oe(), u = vt(e, 100), f = x(
171
+ const [e, r] = $(t), [o, n] = $(0), { scrollToPage: a } = gr(), c = M(1), { isScrolling: s } = Qe(), { viewMode: l } = Je(), { scrollMode: d } = Oe(), u = vt(e, 100), f = I(
172
172
  (v) => {
173
173
  if (!/^[0-9]*$/g.test(v.toString()) || !v)
174
174
  return { success: !1, currentPage: c.current };
@@ -176,7 +176,7 @@ import './assets/RPDefaultLayout.css';const gr = () => {
176
176
  return m < 0 || m > o ? { success: !1, currentPage: c.current } : (r(m), c.current = m, { success: !0, currentPage: +v });
177
177
  },
178
178
  [o]
179
- ), h = x(f, [f]), g = x(
179
+ ), h = I(f, [f]), g = I(
180
180
  async (v) => {
181
181
  if (s.current)
182
182
  return { success: !1, currentPage: c.current };
@@ -184,10 +184,10 @@ import './assets/RPDefaultLayout.css';const gr = () => {
184
184
  return _.success && (s.current = !0, await a(_.currentPage), s.current = !1), _;
185
185
  },
186
186
  [f, a]
187
- ), w = x(() => {
187
+ ), w = I(() => {
188
188
  let v = e - 1;
189
189
  g(v);
190
- }, [g, e, l, d]), b = x(() => {
190
+ }, [g, e, l, d]), b = I(() => {
191
191
  let v = e + 1;
192
192
  g(v);
193
193
  }, [g, e, l, d]);
@@ -244,11 +244,11 @@ const fo = () => {
244
244
  O(() => {
245
245
  u.current;
246
246
  }, [u]);
247
- const f = x(() => {
247
+ const f = I(() => {
248
248
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
249
249
  const T = document.querySelector(".rp-print-zone");
250
250
  T && T.remove();
251
- }, []), h = x(() => {
251
+ }, []), h = I(() => {
252
252
  u.current = !1, a(!1), s(!1), d(null), o({
253
253
  loadedPages: 0,
254
254
  totalPages: 0,
@@ -258,7 +258,7 @@ const fo = () => {
258
258
  u.current = !0;
259
259
  }, w = async ({
260
260
  scratchCanvas: T,
261
- pdfDocument: y,
261
+ pdfDocument: x,
262
262
  pageNumber: p,
263
263
  viewerPdfPage: P,
264
264
  printResolution: C,
@@ -273,8 +273,8 @@ const fo = () => {
273
273
  T.width = Math.floor(P.width * R), T.height = Math.floor(P.height * R);
274
274
  const D = T.getContext("2d");
275
275
  D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, T.width, T.height), D.restore();
276
- const [L, k] = await Promise.all([
277
- y.getPage(p),
276
+ const [L, F] = await Promise.all([
277
+ x.getPage(p),
278
278
  A
279
279
  ]);
280
280
  if (u.current) {
@@ -288,54 +288,54 @@ const fo = () => {
288
288
  intent: "print",
289
289
  annotationMode: mn.ENABLE_STORAGE,
290
290
  optionalContentConfigPromise: S,
291
- printAnnotationStorage: k
291
+ printAnnotationStorage: F
292
292
  };
293
293
  try {
294
294
  return L.render(E).promise;
295
- } catch (I) {
296
- throw I instanceof fn || console.error(I), I;
295
+ } catch (y) {
296
+ throw y instanceof fn || console.error(y), y;
297
297
  }
298
- }, b = x(() => {
298
+ }, b = I(() => {
299
299
  const T = window.print;
300
- return new Promise((y) => {
300
+ return new Promise((x) => {
301
301
  const p = (S) => {
302
302
  setTimeout(() => {
303
303
  T.call(window), setTimeout(() => S(), 20);
304
304
  }, 0);
305
305
  };
306
306
  if (document.querySelector(".rp-print-zone")) {
307
- p(y);
307
+ p(x);
308
308
  return;
309
309
  }
310
310
  const C = new MutationObserver(() => {
311
- document.querySelector(".rp-print-zone") && (p(y), C.disconnect());
311
+ document.querySelector(".rp-print-zone") && (p(x), C.disconnect());
312
312
  });
313
313
  C.observe(document.body, { childList: !0, subtree: !0 });
314
314
  });
315
315
  }, []), v = async (T) => {
316
- const y = document.createElement("img"), p = document.createElement("div");
316
+ const x = document.createElement("img"), p = document.createElement("div");
317
317
  return p.classList.add("rp-print-page"), await new Promise((P, C) => {
318
318
  T.toBlob((S) => {
319
- S ? (y.src = URL.createObjectURL(S), y.onload = () => {
320
- URL.revokeObjectURL(y.src), P();
321
- }, y.onerror = C) : C(new Error("Failed to create blob"));
319
+ S ? (x.src = URL.createObjectURL(S), x.onload = () => {
320
+ URL.revokeObjectURL(x.src), P();
321
+ }, x.onerror = C) : C(new Error("Failed to create blob"));
322
322
  });
323
323
  }).catch(() => {
324
- }), p.appendChild(y), p;
325
- }, _ = (T, y) => {
324
+ }), p.appendChild(x), p;
325
+ }, _ = (T, x) => {
326
326
  const p = document.createElement("div");
327
327
  p.classList.add("rp-print-zone");
328
- const P = document.createElement("style"), C = y.get(1);
328
+ const P = document.createElement("style"), C = x.get(1);
329
329
  if (C) {
330
330
  const { width: S, height: A } = C == null ? void 0 : C.page.getViewport({ scale: 1 });
331
331
  P.innerHTML = `@page { size: ${S}px ${A}px }`;
332
332
  }
333
333
  return p.appendChild(P), p.append(...T), p;
334
- }, m = x(async () => {
334
+ }, m = I(async () => {
335
335
  if (!t)
336
336
  return;
337
337
  h();
338
- const T = document.createElement("canvas"), y = [];
338
+ const T = document.createElement("canvas"), x = [];
339
339
  try {
340
340
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
341
341
  const P = t.getOptionalContentConfig({ intent: "print" }), C = Promise.resolve(
@@ -359,9 +359,9 @@ const fo = () => {
359
359
  h();
360
360
  return;
361
361
  }
362
- const k = await v(T);
363
- y.push(k);
364
- const E = parseFloat((y.length / S * 100).toFixed(2));
362
+ const F = await v(T);
363
+ x.push(F);
364
+ const E = parseFloat((x.length / S * 100).toFixed(2));
365
365
  o({
366
366
  loadedPages: R,
367
367
  totalPages: S,
@@ -372,7 +372,7 @@ const fo = () => {
372
372
  h();
373
373
  return;
374
374
  }
375
- const A = _(y, e);
375
+ const A = _(x, e);
376
376
  document.body.appendChild(A), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await b();
377
377
  } catch (p) {
378
378
  s(!0), p instanceof Error && d(p);
@@ -413,11 +413,11 @@ const fo = () => {
413
413
  }
414
414
  }
415
415
  }), bs = ({ children: t }) => {
416
- const [e, r] = $(null), [o, n] = $(null), { print: a, cancel: c, progress: s, isComplete: l, isError: d, error: u } = fo(), f = x((v) => {
416
+ const [e, r] = $(null), [o, n] = $(null), { print: a, cancel: c, progress: s, isComplete: l, isError: d, error: u } = fo(), f = I((v) => {
417
417
  v && typeof v == "function" && n(() => v);
418
418
  }, []), h = (v) => {
419
419
  u && v(u);
420
- }, g = x(
420
+ }, g = I(
421
421
  (v) => {
422
422
  r(() => v);
423
423
  },
@@ -449,12 +449,12 @@ const fo = () => {
449
449
  throw new Error("usePrintContext must be used within a PrintProvider");
450
450
  return t;
451
451
  }, go = () => {
452
- const [t, e] = $({}), { pages: r } = X(), { rotate: o } = Ke(), n = F(() => Object.keys(t).length, [t]), a = x(
452
+ const [t, e] = $({}), { pages: r } = X(), { rotate: o } = Ke(), n = k(() => Object.keys(t).length, [t]), a = I(
453
453
  (s) => {
454
454
  if (!r.size)
455
455
  return;
456
456
  const l = Array.from(r.values()).slice(0, s).map((f) => {
457
- const { thumbnailViewport: h, scale: g } = Ft(f.page, o);
457
+ const { thumbnailViewport: h, scale: g } = kt(f.page, o);
458
458
  return {
459
459
  scale: g,
460
460
  page: f.page,
@@ -492,7 +492,7 @@ const fo = () => {
492
492
  O(() => {
493
493
  a(10);
494
494
  }, [a]);
495
- const c = x(
495
+ const c = I(
496
496
  (s) => {
497
497
  if (!r)
498
498
  return;
@@ -510,7 +510,7 @@ const fo = () => {
510
510
  }));
511
511
  const d = document.createElement("canvas");
512
512
  gt(l.page, d, { scale: l.thumbnailScale, rotate: o }).promise.then(() => {
513
- const u = d.toDataURL(), { thumbnailViewport: f, scale: h } = Ft(l.page, o);
513
+ const u = d.toDataURL(), { thumbnailViewport: f, scale: h } = kt(l.page, o);
514
514
  return {
515
515
  scale: h,
516
516
  thumbnailSrc: u,
@@ -548,20 +548,20 @@ const fo = () => {
548
548
  }
549
549
  );
550
550
  }, vo = (t = {}, e = "") => {
551
- const [r, o] = $(e), [n, a] = $(!1), { pdf: c, pages: s } = X(), l = Tt(), d = M(!r), { currentZoom: u } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ce(), [w, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = Ye(), { scrollMode: m } = Oe(), { pagesRef: T } = xe(), [y, p] = $(null), P = M({}), C = F(() => w === 0 ? null : f[w - 1], [w, f]), S = F(() => f.length, [f]);
551
+ const [r, o] = $(e), [n, a] = $(!1), { pdf: c, pages: s } = X(), l = Tt(), d = M(!r), { currentZoom: u } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ce(), [w, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = Ye(), { scrollMode: m } = Oe(), { pagesRef: T } = Ie(), [x, p] = $(null), P = M({}), C = k(() => w === 0 ? null : f[w - 1], [w, f]), S = k(() => f.length, [f]);
552
552
  O(() => {
553
553
  if (!C || !s)
554
554
  return;
555
555
  const L = _ || v;
556
556
  if (!L || !T)
557
557
  return;
558
- const k = s.get(C.page), E = T.clientHeight / 2, I = T.clientWidth / 2;
558
+ const F = s.get(C.page), E = T.clientHeight / 2, y = T.clientWidth / 2;
559
559
  let N = 0, V = 0;
560
560
  m === K.PAGE_SCROLLING && g(C.page), m === K.VERTICAL_SCROLLING && (N = l.heights.slice(0, C.page - 1).reduce((B, J) => B + J, 0)), m === K.HORIZONTAL_SCROLLING && (V = l.widths.slice(0, C.page - 1).reduce((B, J) => B + J, 0));
561
561
  let q;
562
- if (!k)
562
+ if (!F)
563
563
  return;
564
- const Z = P.current[C.page], ee = k.page.getViewport({ scale: 1 });
564
+ const Z = P.current[C.page], ee = F.page.getViewport({ scale: 1 });
565
565
  q = new Ct.TextLayer({
566
566
  viewport: ee,
567
567
  textContentSource: Z,
@@ -569,7 +569,7 @@ const fo = () => {
569
569
  }), q.render().then(() => {
570
570
  const B = q.textDivs[C.start.idx], [J] = cr([C], Z, q.textDivs), ae = l.widths[C.page - 1], re = l.heights[C.page - 1], j = document.createElement("div"), Y = document.createElement("div");
571
571
  B.style.position = "absolute", B.style.color = "transparent", Y.style.position = "absolute", Y.style.top = "0", Y.style.setProperty("--scale-factor", `${u}`), j.style.position = "relative", j.style.width = `${ae}px`, j.style.height = `${re}px`, j.style.zIndex = "-1", j.appendChild(B), Y.appendChild(j), T.prepend(Y);
572
- const de = J.element.getBoundingClientRect(), Ce = Y.getBoundingClientRect(), De = de.top - Ce.top, ue = de.left - Ce.left, pe = N + De - E + de.height / 2, ge = V + ue - I + de.width / 2, Te = {
572
+ const de = J.element.getBoundingClientRect(), Ce = Y.getBoundingClientRect(), De = de.top - Ce.top, ue = de.left - Ce.left, pe = N + De - E + de.height / 2, ge = V + ue - y + de.width / 2, Te = {
573
573
  left: Math.max(ge, 0),
574
574
  top: Math.max(pe, 0)
575
575
  };
@@ -587,19 +587,19 @@ const fo = () => {
587
587
  v,
588
588
  T
589
589
  ]);
590
- const A = x(() => {
590
+ const A = I(() => {
591
591
  b((L) => S ? L + 1 > S ? 1 : L + 1 : 0);
592
- }, [S]), R = x(() => {
592
+ }, [S]), R = I(() => {
593
593
  b((L) => S ? L - 1 <= 0 ? S : L - 1 : 0);
594
- }, [S]), D = x(async (L) => {
594
+ }, [S]), D = I(async (L) => {
595
595
  if (!L)
596
596
  return {};
597
- const k = L.numPages, E = {};
598
- for (let I = 1; I <= k; I++) {
597
+ const F = L.numPages, E = {};
598
+ for (let y = 1; y <= F; y++) {
599
599
  if (d.current)
600
600
  throw "close pop over";
601
- const N = await L.getPage(I);
602
- E[I.toString()] = await N.getTextContent();
601
+ const N = await L.getPage(y);
602
+ E[y.toString()] = await N.getTextContent();
603
603
  }
604
604
  return E;
605
605
  }, []);
@@ -610,14 +610,14 @@ const fo = () => {
610
610
  }
611
611
  d.current = !1, a(!0), h([]), b(0), D(c).then((L) => {
612
612
  P.current = L;
613
- const E = Object.keys(L).reduce((I, N) => {
613
+ const E = Object.keys(L).reduce((y, N) => {
614
614
  const V = un(
615
615
  [r],
616
616
  L[N],
617
617
  Number(N) - 1,
618
618
  t
619
619
  ).map((q, Z) => ({ ...q, page: Number(N), pageMatchIdx: Z }));
620
- return [...I, ...V];
620
+ return [...y, ...V];
621
621
  }, []);
622
622
  h(E), b(E.length ? 1 : 0);
623
623
  }).catch(() => {
@@ -633,7 +633,7 @@ const fo = () => {
633
633
  currentMatch: C,
634
634
  nextMatch: A,
635
635
  prevMatch: R,
636
- currentMatchElement: y,
636
+ currentMatchElement: x,
637
637
  setCurrentMatchElement: p
638
638
  };
639
639
  }, Cr = Be({
@@ -737,7 +737,7 @@ const fo = () => {
737
737
  }, wo = (t) => {
738
738
  const { pageNumber: e } = t, { pages: r } = X(), o = M(null), { matches: n, currentMatch: a, setCurrentMatchElement: c } = Tr(), [s, l] = $(
739
739
  []
740
- ), d = M(), u = M(), f = M(), h = F(() => n.filter((w) => w.pageIndex === e - 1), [n, e]), g = x(
740
+ ), d = M(), u = M(), f = M(), h = k(() => n.filter((w) => w.pageIndex === e - 1), [n, e]), g = I(
741
741
  (w, b, v = !1) => {
742
742
  if (v && lr(w, b), !h.length) {
743
743
  f.current = void 0, l([]);
@@ -803,7 +803,7 @@ const fo = () => {
803
803
  };
804
804
  let Co = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
805
805
  const To = (t) => {
806
- const { pageNumber: e } = t, r = M(null), { pages: o, pdf: n } = X(), a = M(), [c, s] = $(), { setFocusedPage: l, goToPage: d } = ce(), { scrollMode: u } = Oe(), { print: f } = et(), { download: h } = Hr(), g = F(() => o.get(e), [o, e]), w = F(() => g == null ? void 0 : g.page.getViewport(), [g]);
806
+ const { pageNumber: e } = t, r = M(null), { pages: o, pdf: n } = X(), a = M(), [c, s] = $(), { setFocusedPage: l, goToPage: d } = ce(), { scrollMode: u } = Oe(), { print: f } = et(), { download: h } = Hr(), g = k(() => o.get(e), [o, e]), w = k(() => g == null ? void 0 : g.page.getViewport(), [g]);
807
807
  O(() => {
808
808
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
809
809
  }, [n]), O(() => {
@@ -811,7 +811,7 @@ const To = (t) => {
811
811
  a.current = void 0, s(v), r.current && (r.current.innerText = "");
812
812
  });
813
813
  }, [g]);
814
- const b = x(
814
+ const b = I(
815
815
  (v) => {
816
816
  !c || !n || (Ln(v), Nn(v, n, c).then((_) => {
817
817
  var m, T;
@@ -831,14 +831,14 @@ const To = (t) => {
831
831
  return;
832
832
  }
833
833
  const _ = /* @__PURE__ */ new Map([]);
834
- for (const y of c) {
835
- const { annotationType: p } = y;
834
+ for (const x of c) {
835
+ const { annotationType: p } = x;
836
836
  switch (p) {
837
837
  case zt.Link:
838
- On(y);
838
+ On(x);
839
839
  break;
840
840
  case zt.Widget:
841
- En(y, v, _);
841
+ En(x, v, _);
842
842
  break;
843
843
  }
844
844
  }
@@ -852,14 +852,14 @@ const To = (t) => {
852
852
  structTreeLayer: null,
853
853
  page: g.page,
854
854
  viewport: v.clone({ dontFlip: !0 })
855
- }), r.current && kt(r.current, b);
856
- const y = await (n == null ? void 0 : n.hasJSActions()), p = await (n == null ? void 0 : n.getFieldObjects());
855
+ }), r.current && Ft(r.current, b);
856
+ const x = await (n == null ? void 0 : n.hasJSActions()), p = await (n == null ? void 0 : n.getFieldObjects());
857
857
  if (m.signal.aborted)
858
858
  throw "abort";
859
859
  return a.current.render({
860
860
  annotations: c,
861
861
  annotationStorage: n == null ? void 0 : n.annotationStorage,
862
- hasJSActions: y,
862
+ hasJSActions: x,
863
863
  fieldObjects: p,
864
864
  div: r.current,
865
865
  viewport: v.clone({ dontFlip: !0 }),
@@ -872,11 +872,11 @@ const To = (t) => {
872
872
  });
873
873
  })().then(() => {
874
874
  r.current && Dn(r.current, b);
875
- }).catch((y) => {
876
- if (y !== "abort")
877
- throw y;
875
+ }).catch((x) => {
876
+ if (x !== "abort")
877
+ throw x;
878
878
  }), () => {
879
- m.abort("clear"), r.current && kt(r.current, b);
879
+ m.abort("clear"), r.current && Ft(r.current, b);
880
880
  };
881
881
  }, [n, c, b]), /* @__PURE__ */ i(
882
882
  "div",
@@ -891,7 +891,7 @@ const To = (t) => {
891
891
  "rp-text-highlight-layer": "_rp-text-highlight-layer_1470i_1",
892
892
  "rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1470i_9"
893
893
  }, Po = ({ pageNumber: t }) => {
894
- const e = M(null), r = M(), o = M(), { pages: n } = X(), { highlightMatches: a } = vn(), c = F(() => a.filter((d) => d.pageIndex === t - 1), [a]), s = x(
894
+ const e = M(null), r = M(), o = M(), { pages: n } = X(), { highlightMatches: a } = vn(), c = k(() => a.filter((d) => d.pageIndex === t - 1), [a]), s = I(
895
895
  (l, d, u = !1) => {
896
896
  u && lr(l, d), pn(c, l, d);
897
897
  },
@@ -928,7 +928,7 @@ const To = (t) => {
928
928
  });
929
929
  const d = (u = r.current) == null ? void 0 : u.textDivs;
930
930
  d && o.current && s(o.current, d, !0);
931
- }, [s]), /* @__PURE__ */ i(ye, { children: /* @__PURE__ */ i(
931
+ }, [s]), /* @__PURE__ */ i(xe, { children: /* @__PURE__ */ i(
932
932
  "div",
933
933
  {
934
934
  "data-rp": `page-${t}-textHighlightLayer`,
@@ -936,7 +936,7 @@ const To = (t) => {
936
936
  ref: e
937
937
  }
938
938
  ) });
939
- }, So = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), xt = Me((t, e) => {
939
+ }, So = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), It = Me((t, e) => {
940
940
  const { pageNumber: r, style: o, onIntersectRatioChange: n, ...a } = t, { pages: c } = X(), { rotate: s } = Ke(), { textLayer: l } = sn(), { currentZoom: d } = Xe(), u = M(c.get(r)), [f, h] = $(!1), g = M(null), [w, b] = $({
941
941
  width: 0,
942
942
  height: 0
@@ -947,7 +947,7 @@ const To = (t) => {
947
947
  b(T);
948
948
  }
949
949
  }, [c, r, s, d]);
950
- const v = F(() => {
950
+ const v = k(() => {
951
951
  switch (s) {
952
952
  case 90:
953
953
  return `${w.width / 2}px ${w.width / 2}px`;
@@ -957,15 +957,15 @@ const To = (t) => {
957
957
  default:
958
958
  return "center";
959
959
  }
960
- }, [s, w]), _ = x(() => {
960
+ }, [s, w]), _ = I(() => {
961
961
  h(!0);
962
- }, []), m = x(() => {
962
+ }, []), m = I(() => {
963
963
  h(!1);
964
964
  }, []);
965
965
  return O(() => {
966
966
  const T = new IntersectionObserver(
967
- (y) => {
968
- n(r, y[0].intersectionRatio);
967
+ (x) => {
968
+ n(r, x[0].intersectionRatio);
969
969
  },
970
970
  { threshold: So }
971
971
  );
@@ -1016,25 +1016,25 @@ function _t(t, e) {
1016
1016
  return r.__proto__ = o, r;
1017
1017
  }, _t(t, e);
1018
1018
  }
1019
- function yo(t, e) {
1019
+ function xo(t, e) {
1020
1020
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, _t(t, e);
1021
1021
  }
1022
1022
  var qt = Number.isNaN || function(e) {
1023
1023
  return typeof e == "number" && e !== e;
1024
1024
  };
1025
- function Io(t, e) {
1025
+ function yo(t, e) {
1026
1026
  return !!(t === e || qt(t) && qt(e));
1027
1027
  }
1028
- function xo(t, e) {
1028
+ function Io(t, e) {
1029
1029
  if (t.length !== e.length)
1030
1030
  return !1;
1031
1031
  for (var r = 0; r < t.length; r++)
1032
- if (!Io(t[r], e[r]))
1032
+ if (!yo(t[r], e[r]))
1033
1033
  return !1;
1034
1034
  return !0;
1035
1035
  }
1036
1036
  function lt(t, e) {
1037
- e === void 0 && (e = xo);
1037
+ e === void 0 && (e = Io);
1038
1038
  var r, o = [], n, a = !1;
1039
1039
  function c() {
1040
1040
  for (var s = [], l = 0; l < arguments.length; l++)
@@ -1101,10 +1101,10 @@ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.We
1101
1101
  function Do(t) {
1102
1102
  var e, r = t.getColumnOffset, o = t.getColumnStartIndexForOffset, n = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, s = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, d = t.getOffsetForRowAndAlignment, u = t.getRowHeight, f = t.getRowOffset, h = t.getRowStartIndexForOffset, g = t.getRowStopIndexForStartIndex, w = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1103
1103
  return e = /* @__PURE__ */ function(_) {
1104
- yo(m, _);
1105
- function m(y) {
1104
+ xo(m, _);
1105
+ function m(x) {
1106
1106
  var p;
1107
- return p = _.call(this, y) || this, p._instanceProps = w(p.props, Gt(p)), p._resetIsScrollingTimeoutId = null, p._outerRef = void 0, p.state = {
1107
+ return p = _.call(this, x) || this, p._instanceProps = w(p.props, Gt(p)), p._resetIsScrollingTimeoutId = null, p._outerRef = void 0, p.state = {
1108
1108
  instance: Gt(p),
1109
1109
  isScrolling: !1,
1110
1110
  horizontalScrollDirection: "forward",
@@ -1112,7 +1112,7 @@ function Do(t) {
1112
1112
  scrollTop: typeof p.props.initialScrollTop == "number" ? p.props.initialScrollTop : 0,
1113
1113
  scrollUpdateWasRequested: !1,
1114
1114
  verticalScrollDirection: "forward"
1115
- }, p._callOnItemsRendered = void 0, p._callOnItemsRendered = lt(function(P, C, S, A, R, D, L, k) {
1115
+ }, p._callOnItemsRendered = void 0, p._callOnItemsRendered = lt(function(P, C, S, A, R, D, L, F) {
1116
1116
  return p.props.onItemsRendered({
1117
1117
  overscanColumnStartIndex: P,
1118
1118
  overscanColumnStopIndex: C,
@@ -1121,7 +1121,7 @@ function Do(t) {
1121
1121
  visibleColumnStartIndex: R,
1122
1122
  visibleColumnStopIndex: D,
1123
1123
  visibleRowStartIndex: L,
1124
- visibleRowStopIndex: k
1124
+ visibleRowStopIndex: F
1125
1125
  });
1126
1126
  }), p._callOnScroll = void 0, p._callOnScroll = lt(function(P, C, S, A, R) {
1127
1127
  return p.props.onScroll({
@@ -1132,15 +1132,15 @@ function Do(t) {
1132
1132
  scrollUpdateWasRequested: R
1133
1133
  });
1134
1134
  }), p._getItemStyle = void 0, p._getItemStyle = function(P, C) {
1135
- var S = p.props, A = S.columnWidth, R = S.direction, D = S.rowHeight, L = p._getItemStyleCache(b && A, b && R, b && D), k = P + ":" + C, E;
1136
- if (L.hasOwnProperty(k))
1137
- E = L[k];
1135
+ var S = p.props, A = S.columnWidth, R = S.direction, D = S.rowHeight, L = p._getItemStyleCache(b && A, b && R, b && D), F = P + ":" + C, E;
1136
+ if (L.hasOwnProperty(F))
1137
+ E = L[F];
1138
1138
  else {
1139
- var I = r(p.props, C, p._instanceProps), N = R === "rtl";
1140
- L[k] = E = {
1139
+ var y = r(p.props, C, p._instanceProps), N = R === "rtl";
1140
+ L[F] = E = {
1141
1141
  position: "absolute",
1142
- left: N ? void 0 : I,
1143
- right: N ? I : void 0,
1142
+ left: N ? void 0 : y,
1143
+ right: N ? y : void 0,
1144
1144
  top: f(p.props, P, p._instanceProps),
1145
1145
  height: u(p.props, P, p._instanceProps),
1146
1146
  width: a(p.props, C, p._instanceProps)
@@ -1150,21 +1150,21 @@ function Do(t) {
1150
1150
  }, p._getItemStyleCache = void 0, p._getItemStyleCache = lt(function(P, C, S) {
1151
1151
  return {};
1152
1152
  }), p._onScroll = function(P) {
1153
- var C = P.currentTarget, S = C.clientHeight, A = C.clientWidth, R = C.scrollLeft, D = C.scrollTop, L = C.scrollHeight, k = C.scrollWidth;
1153
+ var C = P.currentTarget, S = C.clientHeight, A = C.clientWidth, R = C.scrollLeft, D = C.scrollTop, L = C.scrollHeight, F = C.scrollWidth;
1154
1154
  p.setState(function(E) {
1155
1155
  if (E.scrollLeft === R && E.scrollTop === D)
1156
1156
  return null;
1157
- var I = p.props.direction, N = R;
1158
- if (I === "rtl")
1157
+ var y = p.props.direction, N = R;
1158
+ if (y === "rtl")
1159
1159
  switch (jt()) {
1160
1160
  case "negative":
1161
1161
  N = -R;
1162
1162
  break;
1163
1163
  case "positive-descending":
1164
- N = k - A - R;
1164
+ N = F - A - R;
1165
1165
  break;
1166
1166
  }
1167
- N = Math.max(0, Math.min(N, k - A));
1167
+ N = Math.max(0, Math.min(N, F - A));
1168
1168
  var V = Math.max(0, Math.min(D, L - S));
1169
1169
  return {
1170
1170
  isScrolling: !0,
@@ -1204,8 +1204,8 @@ function Do(t) {
1204
1204
  };
1205
1205
  }, this._resetIsScrollingDebounced);
1206
1206
  }, T.scrollToItem = function(p) {
1207
- var P = p.align, C = P === void 0 ? "auto" : P, S = p.columnIndex, A = p.rowIndex, R = this.props, D = R.columnCount, L = R.height, k = R.rowCount, E = R.width, I = this.state, N = I.scrollLeft, V = I.scrollTop, q = No();
1208
- S !== void 0 && (S = Math.max(0, Math.min(S, D - 1))), A !== void 0 && (A = Math.max(0, Math.min(A, k - 1)));
1207
+ var P = p.align, C = P === void 0 ? "auto" : P, S = p.columnIndex, A = p.rowIndex, R = this.props, D = R.columnCount, L = R.height, F = R.rowCount, E = R.width, y = this.state, N = y.scrollLeft, V = y.scrollTop, q = No();
1208
+ S !== void 0 && (S = Math.max(0, Math.min(S, D - 1))), A !== void 0 && (A = Math.max(0, Math.min(A, F - 1)));
1209
1209
  var Z = c(this.props, this._instanceProps), ee = s(this.props, this._instanceProps), B = ee > E ? q : 0, J = Z > L ? q : 0;
1210
1210
  this.scrollTo({
1211
1211
  scrollLeft: S !== void 0 ? l(this.props, S, C, N, this._instanceProps, J) : N,
@@ -1243,7 +1243,7 @@ function Do(t) {
1243
1243
  }, T.componentWillUnmount = function() {
1244
1244
  this._resetIsScrollingTimeoutId !== null && Bt(this._resetIsScrollingTimeoutId);
1245
1245
  }, T.render = function() {
1246
- var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, k = p.innerTagName, E = p.itemData, I = p.itemKey, N = I === void 0 ? Oo : I, V = p.outerElementType, q = p.outerTagName, Z = p.rowCount, ee = p.style, B = p.useIsScrolling, J = p.width, ae = this.state.isScrolling, re = this._getHorizontalRangeToRender(), j = re[0], Y = re[1], de = this._getVerticalRangeToRender(), Ce = de[0], De = de[1], ue = [];
1246
+ var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, F = p.innerTagName, E = p.itemData, y = p.itemKey, N = y === void 0 ? Oo : y, V = p.outerElementType, q = p.outerTagName, Z = p.rowCount, ee = p.style, B = p.useIsScrolling, J = p.width, ae = this.state.isScrolling, re = this._getHorizontalRangeToRender(), j = re[0], Y = re[1], de = this._getVerticalRangeToRender(), Ce = de[0], De = de[1], ue = [];
1247
1247
  if (S > 0 && Z)
1248
1248
  for (var pe = Ce; pe <= De; pe++)
1249
1249
  for (var ge = j; ge <= Y; ge++)
@@ -1273,7 +1273,7 @@ function Do(t) {
1273
1273
  willChange: "transform",
1274
1274
  direction: A
1275
1275
  }, ee)
1276
- }, He(L || k || "div", {
1276
+ }, He(L || F || "div", {
1277
1277
  children: ue,
1278
1278
  ref: D,
1279
1279
  style: {
@@ -1285,24 +1285,24 @@ function Do(t) {
1285
1285
  }, T._callPropsCallbacks = function() {
1286
1286
  var p = this.props, P = p.columnCount, C = p.onItemsRendered, S = p.onScroll, A = p.rowCount;
1287
1287
  if (typeof C == "function" && P > 0 && A > 0) {
1288
- var R = this._getHorizontalRangeToRender(), D = R[0], L = R[1], k = R[2], E = R[3], I = this._getVerticalRangeToRender(), N = I[0], V = I[1], q = I[2], Z = I[3];
1289
- this._callOnItemsRendered(D, L, N, V, k, E, q, Z);
1288
+ var R = this._getHorizontalRangeToRender(), D = R[0], L = R[1], F = R[2], E = R[3], y = this._getVerticalRangeToRender(), N = y[0], V = y[1], q = y[2], Z = y[3];
1289
+ this._callOnItemsRendered(D, L, N, V, F, E, q, Z);
1290
1290
  }
1291
1291
  if (typeof S == "function") {
1292
1292
  var ee = this.state, B = ee.horizontalScrollDirection, J = ee.scrollLeft, ae = ee.scrollTop, re = ee.scrollUpdateWasRequested, j = ee.verticalScrollDirection;
1293
1293
  this._callOnScroll(J, ae, B, j, re);
1294
1294
  }
1295
1295
  }, T._getHorizontalRangeToRender = function() {
1296
- var p = this.props, P = p.columnCount, C = p.overscanColumnCount, S = p.overscanColumnsCount, A = p.overscanCount, R = p.rowCount, D = this.state, L = D.horizontalScrollDirection, k = D.isScrolling, E = D.scrollLeft, I = C || S || A || 1;
1296
+ var p = this.props, P = p.columnCount, C = p.overscanColumnCount, S = p.overscanColumnsCount, A = p.overscanCount, R = p.rowCount, D = this.state, L = D.horizontalScrollDirection, F = D.isScrolling, E = D.scrollLeft, y = C || S || A || 1;
1297
1297
  if (P === 0 || R === 0)
1298
1298
  return [0, 0, 0, 0];
1299
- var N = o(this.props, E, this._instanceProps), V = n(this.props, N, E, this._instanceProps), q = !k || L === "backward" ? Math.max(1, I) : 1, Z = !k || L === "forward" ? Math.max(1, I) : 1;
1299
+ var N = o(this.props, E, this._instanceProps), V = n(this.props, N, E, this._instanceProps), q = !F || L === "backward" ? Math.max(1, y) : 1, Z = !F || L === "forward" ? Math.max(1, y) : 1;
1300
1300
  return [Math.max(0, N - q), Math.max(0, Math.min(P - 1, V + Z)), N, V];
1301
1301
  }, T._getVerticalRangeToRender = function() {
1302
- var p = this.props, P = p.columnCount, C = p.overscanCount, S = p.overscanRowCount, A = p.overscanRowsCount, R = p.rowCount, D = this.state, L = D.isScrolling, k = D.verticalScrollDirection, E = D.scrollTop, I = S || A || C || 1;
1302
+ var p = this.props, P = p.columnCount, C = p.overscanCount, S = p.overscanRowCount, A = p.overscanRowsCount, R = p.rowCount, D = this.state, L = D.isScrolling, F = D.verticalScrollDirection, E = D.scrollTop, y = S || A || C || 1;
1303
1303
  if (P === 0 || R === 0)
1304
1304
  return [0, 0, 0, 0];
1305
- var N = h(this.props, E, this._instanceProps), V = g(this.props, N, E, this._instanceProps), q = !L || k === "backward" ? Math.max(1, I) : 1, Z = !L || k === "forward" ? Math.max(1, I) : 1;
1305
+ var N = h(this.props, E, this._instanceProps), V = g(this.props, N, E, this._instanceProps), q = !L || F === "backward" ? Math.max(1, y) : 1, Z = !L || F === "forward" ? Math.max(1, y) : 1;
1306
1306
  return [Math.max(0, N - q), Math.max(0, Math.min(R - 1, V + Z)), N, V];
1307
1307
  }, m;
1308
1308
  }(tn), e.defaultProps = {
@@ -1366,8 +1366,8 @@ var zo = function(e, r) {
1366
1366
  var a, c;
1367
1367
  e === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1368
1368
  var s = c > 0 ? a[c].offset : 0;
1369
- return s >= n ? yr(e, r, o, c, 0, n) : Ao(e, r, o, Math.max(0, c), n);
1370
- }, yr = function(e, r, o, n, a, c) {
1369
+ return s >= n ? xr(e, r, o, c, 0, n) : Ao(e, r, o, Math.max(0, c), n);
1370
+ }, xr = function(e, r, o, n, a, c) {
1371
1371
  for (; a <= n; ) {
1372
1372
  var s = a + Math.floor((n - a) / 2), l = ve(e, r, s, o).offset;
1373
1373
  if (l === c)
@@ -1378,7 +1378,7 @@ var zo = function(e, r) {
1378
1378
  }, Ao = function(e, r, o, n, a) {
1379
1379
  for (var c = e === "column" ? r.columnCount : r.rowCount, s = 1; n < c && ve(e, r, n, o).offset < a; )
1380
1380
  n += s, s *= 2;
1381
- return yr(e, r, o, Math.min(n, c - 1), Math.floor(n / 2), a);
1381
+ return xr(e, r, o, Math.min(n, c - 1), Math.floor(n / 2), a);
1382
1382
  }, Jt = function(e, r, o, n, a, c, s) {
1383
1383
  var l = e === "column" ? r.width : r.height, d = ve(e, r, o, c), u = e === "column" ? Sr(r, c) : Pr(r, c), f = Math.max(0, Math.min(u - l, d.offset)), h = Math.max(0, d.offset - l + s + d.size);
1384
1384
  switch (n === "smart" && (a >= h - l && a <= f + l ? n = "auto" : n = "center"), n) {
@@ -1392,7 +1392,7 @@ var zo = function(e, r) {
1392
1392
  default:
1393
1393
  return a >= h && a <= f ? a : h > f || a < h ? h : f;
1394
1394
  }
1395
- }, ko = /* @__PURE__ */ Do({
1395
+ }, Fo = /* @__PURE__ */ Do({
1396
1396
  getColumnOffset: function(e, r, o) {
1397
1397
  return ve("column", e, r, o).offset;
1398
1398
  },
@@ -1474,23 +1474,23 @@ function Yt(t, e) {
1474
1474
  return !0;
1475
1475
  return !1;
1476
1476
  }
1477
- var Fo = ["style"], Mo = ["style"];
1477
+ var ko = ["style"], Mo = ["style"];
1478
1478
  function Wo(t, e) {
1479
- var r = t.style, o = Ut(t, Fo), n = e.style, a = Ut(e, Mo);
1479
+ var r = t.style, o = Ut(t, ko), n = e.style, a = Ut(e, Mo);
1480
1480
  return !Yt(r, n) && !Yt(o, a);
1481
1481
  }
1482
1482
  const Ho = () => {
1483
- const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { setColumnCount: r } = sr(), { virtualScrollableElementRef: o } = Ye(), n = Tt(), a = x(
1483
+ const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { setColumnCount: r } = sr(), { virtualScrollableElementRef: o } = Ye(), n = Tt(), a = I(
1484
1484
  (g) => n.widths[g] || 0,
1485
1485
  [n.widths]
1486
- ), c = x(
1486
+ ), c = I(
1487
1487
  (g) => n.heights[g] || 0,
1488
1488
  [n.heights]
1489
- ), s = F(() => n.heights.length, [n.heights]), l = F(() => Math.max(...n.widths), [n.widths]), d = F(() => e === K.HORIZONTAL_SCROLLING ? s : t === qe.DUAL_PAGE ? 2 : 1, [t, e, e, s, o, l]);
1489
+ ), s = k(() => n.heights.length, [n.heights]), l = k(() => Math.max(...n.widths), [n.widths]), d = k(() => e === K.HORIZONTAL_SCROLLING ? s : t === qe.DUAL_PAGE ? 2 : 1, [t, e, e, s, o, l]);
1490
1490
  O(() => {
1491
1491
  r(d);
1492
1492
  }, [d, r]);
1493
- const u = F(() => e === K.HORIZONTAL_SCROLLING || e === K.PAGE_SCROLLING ? 1 : Math.round(s / d), [d, s, e]), f = F(() => n.heights.reduce((g, w) => g + w, 0) / n.heights.length || 0, [n]), h = F(() => n.widths.reduce((g, w) => g + w, 0) / n.heights.length || 0, [n]);
1493
+ const u = k(() => e === K.HORIZONTAL_SCROLLING || e === K.PAGE_SCROLLING ? 1 : Math.round(s / d), [d, s, e]), f = k(() => n.heights.reduce((g, w) => g + w, 0) / n.heights.length || 0, [n]), h = k(() => n.widths.reduce((g, w) => g + w, 0) / n.heights.length || 0, [n]);
1494
1494
  return {
1495
1495
  rowCount: u,
1496
1496
  rowHeight: c,
@@ -1522,8 +1522,8 @@ function $o(t) {
1522
1522
  const l = typeof document < "u" && document.attachEvent;
1523
1523
  if (!l) {
1524
1524
  c = function(_) {
1525
- const m = _.__resizeTriggers__, T = m.firstElementChild, y = m.lastElementChild, p = T.firstElementChild;
1526
- y.scrollLeft = y.scrollWidth, y.scrollTop = y.scrollHeight, p.style.width = T.offsetWidth + 1 + "px", p.style.height = T.offsetHeight + 1 + "px", T.scrollLeft = T.scrollWidth, T.scrollTop = T.scrollHeight;
1525
+ const m = _.__resizeTriggers__, T = m.firstElementChild, x = m.lastElementChild, p = T.firstElementChild;
1526
+ x.scrollLeft = x.scrollWidth, x.scrollTop = x.scrollHeight, p.style.width = T.offsetWidth + 1 + "px", p.style.height = T.offsetHeight + 1 + "px", T.scrollLeft = T.scrollWidth, T.scrollTop = T.scrollHeight;
1527
1527
  }, a = function(_) {
1528
1528
  return _.offsetWidth !== _.__resizeLast__.width || _.offsetHeight !== _.__resizeLast__.height;
1529
1529
  }, s = function(_) {
@@ -1669,14 +1669,14 @@ class Vo extends rn {
1669
1669
  }
1670
1670
  }
1671
1671
  const Go = ({ widths: t, heights: e }) => {
1672
- const { focusedPage: r, totalPages: o } = ce(), { isScrolling: n } = Qe(), a = F(() => {
1672
+ const { focusedPage: r, totalPages: o } = ce(), { isScrolling: n } = Qe(), a = k(() => {
1673
1673
  const l = [], d = Math.ceil(r / 2) * 2 - 1;
1674
1674
  if (l.push(d), d + 1 < o) {
1675
1675
  const u = d + 1;
1676
1676
  l.push(u);
1677
1677
  }
1678
1678
  return l;
1679
- }, [r, o]), c = F(() => [
1679
+ }, [r, o]), c = k(() => [
1680
1680
  {
1681
1681
  position: "absolute",
1682
1682
  left: 0,
@@ -1694,11 +1694,11 @@ const Go = ({ widths: t, heights: e }) => {
1694
1694
  O(() => {
1695
1695
  n.current = !1;
1696
1696
  }, [r]);
1697
- const s = F(() => c.reduce((l, d) => l + Number(d.width || 0), 0), [c]);
1698
- return /* @__PURE__ */ i("div", { style: { width: s, position: "relative" }, children: a.map((l, d) => /* @__PURE__ */ i(xt, { onIntersectRatioChange: () => {
1697
+ const s = k(() => c.reduce((l, d) => l + Number(d.width || 0), 0), [c]);
1698
+ return /* @__PURE__ */ i("div", { style: { width: s, position: "relative" }, children: a.map((l, d) => /* @__PURE__ */ i(It, { onIntersectRatioChange: () => {
1699
1699
  }, style: c[d], pageNumber: l }, l)) });
1700
1700
  }, qo = ({ widths: t, heights: e }) => {
1701
- const { focusedPage: r } = ce(), { isScrolling: o } = Qe(), n = F(() => ({
1701
+ const { focusedPage: r } = ce(), { isScrolling: o } = Qe(), n = k(() => ({
1702
1702
  position: "absolute",
1703
1703
  width: t(r - 1),
1704
1704
  height: e(r - 1)
@@ -1706,7 +1706,7 @@ const Go = ({ widths: t, heights: e }) => {
1706
1706
  O(() => {
1707
1707
  o.current = !1;
1708
1708
  }, [r]);
1709
- const a = F(() => t(r - 1), [t]);
1709
+ const a = k(() => t(r - 1), [t]);
1710
1710
  return /* @__PURE__ */ i(
1711
1711
  "div",
1712
1712
  {
@@ -1715,7 +1715,7 @@ const Go = ({ widths: t, heights: e }) => {
1715
1715
  position: "relative"
1716
1716
  },
1717
1717
  children: /* @__PURE__ */ i(
1718
- xt,
1718
+ It,
1719
1719
  {
1720
1720
  style: n,
1721
1721
  onIntersectRatioChange: () => {
@@ -1729,7 +1729,7 @@ const Go = ({ widths: t, heights: e }) => {
1729
1729
  }, Uo = nn(({ columnIndex: t, rowIndex: e, data: r, style: o }) => {
1730
1730
  const n = t + 1 + e * r.columnCount;
1731
1731
  return /* @__PURE__ */ i(
1732
- xt,
1732
+ It,
1733
1733
  {
1734
1734
  style: o,
1735
1735
  onIntersectRatioChange: r.handleIntersectRatioChange,
@@ -1738,7 +1738,7 @@ const Go = ({ widths: t, heights: e }) => {
1738
1738
  n
1739
1739
  );
1740
1740
  }, Wo), Ps = () => {
1741
- const { initialPage: t = 1, initialScrollMode: e } = ln(), { pagesRef: r, setPagesRef: o } = xe();
1741
+ const { initialPage: t = 1, initialScrollMode: e } = ln(), { pagesRef: r, setPagesRef: o } = Ie();
1742
1742
  zn(r);
1743
1743
  const { scrollToPage: n } = gr(), {
1744
1744
  virtualScrollRef: a,
@@ -1749,16 +1749,16 @@ const Go = ({ widths: t, heights: e }) => {
1749
1749
  virtualScrollableElementRef: u,
1750
1750
  totalInnerDimensions: f,
1751
1751
  pageScrollElementRef: h
1752
- } = Ye(), g = M(!0), { nextPage: w, prevPage: b, setFocusedPage: v, focusedPage: _ } = ce(), { scrollMode: m } = Oe(), { viewMode: T } = Je(), y = M(null), { loading: p } = X(), { LoaderImageComponent: P } = dr(), C = M(
1752
+ } = Ye(), g = M(!0), { nextPage: w, prevPage: b, setFocusedPage: v, focusedPage: _ } = ce(), { scrollMode: m } = Oe(), { viewMode: T } = Je(), x = M(null), { loading: p } = X(), { LoaderImageComponent: P } = dr(), C = M(
1753
1753
  f
1754
1754
  ), S = M({
1755
1755
  viewMode: T,
1756
1756
  scrollMode: m
1757
1757
  }), A = M(!1), R = M(), { isFullScreen: D } = dn(), {
1758
1758
  pageDimension: L,
1759
- rowCount: k,
1759
+ rowCount: F,
1760
1760
  rowHeight: E,
1761
- columnCount: I,
1761
+ columnCount: y,
1762
1762
  columnWidth: N,
1763
1763
  estimatedColumnWidth: V,
1764
1764
  estimatedRowHeight: q
@@ -1767,14 +1767,14 @@ const Go = ({ widths: t, heights: e }) => {
1767
1767
  scrollLeft: 0
1768
1768
  });
1769
1769
  Wn(r);
1770
- const { isPressed: Y } = Fn(), { selectionMode: de } = cn(), { initializeGrabScroll: Ce, resetGrabState: De } = Mn({
1770
+ const { isPressed: Y } = kn(), { selectionMode: de } = cn(), { initializeGrabScroll: Ce, resetGrabState: De } = Mn({
1771
1771
  isPressed: Y
1772
- }), ue = F(() => de === an.HAND, [de]), pe = x((W, H) => {
1772
+ }), ue = k(() => de === an.HAND, [de]), pe = I((W, H) => {
1773
1773
  B((Q) => H > -1 ? { ...Q, [W]: Math.round(H * 100) } : (delete Q[W], Q));
1774
- }, []), ge = F(() => ({
1775
- columnCount: I,
1774
+ }, []), ge = k(() => ({
1775
+ columnCount: y,
1776
1776
  handleIntersectRatioChange: pe
1777
- }), [I, pe]), Te = x(
1777
+ }), [y, pe]), Te = I(
1778
1778
  (W) => {
1779
1779
  const H = document.activeElement !== r;
1780
1780
  !D && H || (["ArrowUp", "ArrowLeft"].includes(W.key) ? (W.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(W.key) && (W.preventDefault(), w()));
@@ -1784,16 +1784,16 @@ const Go = ({ widths: t, heights: e }) => {
1784
1784
  O(() => (window.addEventListener("keydown", Te), () => {
1785
1785
  window.removeEventListener("keydown", Te);
1786
1786
  }), [Te]), O(() => {
1787
- if (y.current && (y.current.style.position = "relative"), !!a)
1788
- for (let W = 0; W < k; W++)
1789
- for (let H = 0; H < I; H++)
1787
+ if (x.current && (x.current.style.position = "relative"), !!a)
1788
+ for (let W = 0; W < F; W++)
1789
+ for (let H = 0; H < y; H++)
1790
1790
  a.resetAfterIndices({
1791
1791
  columnIndex: H,
1792
1792
  rowIndex: W,
1793
1793
  shouldForceUpdate: !0
1794
1794
  });
1795
- }, [k, I, L, a]);
1796
- const tt = x(
1795
+ }, [F, y, L, a]);
1796
+ const tt = I(
1797
1797
  (W, H) => {
1798
1798
  if (!u)
1799
1799
  return { scrollTop: 0, scrollLeft: 0 };
@@ -1804,7 +1804,7 @@ const Go = ({ widths: t, heights: e }) => {
1804
1804
  };
1805
1805
  },
1806
1806
  [u]
1807
- ), Br = x(
1807
+ ), Br = I(
1808
1808
  (W, H) => {
1809
1809
  if (ae.current)
1810
1810
  return;
@@ -1842,10 +1842,10 @@ const Go = ({ widths: t, heights: e }) => {
1842
1842
  );
1843
1843
  O(() => {
1844
1844
  clearTimeout(R.current);
1845
- const W = Array.from({ length: k }).reduce(
1845
+ const W = Array.from({ length: F }).reduce(
1846
1846
  (se, rt, Pe) => se + E(Pe),
1847
1847
  0
1848
- ), H = Array.from({ length: I }).reduce(
1848
+ ), H = Array.from({ length: y }).reduce(
1849
1849
  (se, rt, Pe) => se + N(Pe),
1850
1850
  0
1851
1851
  ), Q = tt(H, W);
@@ -1853,8 +1853,8 @@ const Go = ({ widths: t, heights: e }) => {
1853
1853
  height: W,
1854
1854
  width: H
1855
1855
  });
1856
- }, [L, k, I]);
1857
- const jr = x((W) => {
1856
+ }, [L, F, y]);
1857
+ const jr = I((W) => {
1858
1858
  j.current = {
1859
1859
  scrollTop: W.scrollTop,
1860
1860
  scrollLeft: W.scrollLeft
@@ -1871,10 +1871,10 @@ const Go = ({ widths: t, heights: e }) => {
1871
1871
  }, [J, v]), O(() => () => {
1872
1872
  re.current && clearTimeout(re.current);
1873
1873
  }, []);
1874
- const Kr = F(() => oe(he["rp-pages-container"], {
1874
+ const Kr = k(() => oe(he["rp-pages-container"], {
1875
1875
  [he["rp-cursor-grab"]]: ue && !Y,
1876
1876
  [he["rp-cursor-grabbing"]]: ue && Y
1877
- }), [ue, Y]), Xr = x(
1877
+ }), [ue, Y]), Xr = I(
1878
1878
  (W) => {
1879
1879
  if (ue && W) {
1880
1880
  const H = oe(he["rp-pages"]), Q = document.querySelector(`.${H}`);
@@ -1926,21 +1926,21 @@ const Go = ({ widths: t, heights: e }) => {
1926
1926
  children: T === qe.DUAL_PAGE ? /* @__PURE__ */ i(Go, { widths: N, heights: E }) : /* @__PURE__ */ i(qo, { widths: N, heights: E })
1927
1927
  }
1928
1928
  ) : V ? /* @__PURE__ */ i(
1929
- ko,
1929
+ Fo,
1930
1930
  {
1931
1931
  ref: c,
1932
1932
  itemData: ge,
1933
1933
  outerRef: l,
1934
- innerRef: y,
1934
+ innerRef: x,
1935
1935
  onScroll: jr,
1936
- columnCount: I,
1936
+ columnCount: y,
1937
1937
  columnWidth: N,
1938
1938
  rowHeight: E,
1939
1939
  height: H,
1940
1940
  width: W,
1941
1941
  estimatedColumnWidth: V,
1942
1942
  estimatedRowHeight: q,
1943
- rowCount: k,
1943
+ rowCount: F,
1944
1944
  className: oe(
1945
1945
  he["rp-pages"],
1946
1946
  m === K.HORIZONTAL_SCROLLING ? he["rp-pages-horizontal-scroll"] : ""
@@ -1973,24 +1973,24 @@ const Go = ({ widths: t, heights: e }) => {
1973
1973
  "rp-total-page": "_rp-total-page_1y9vo_11"
1974
1974
  }, Zo = () => {
1975
1975
  const { prevIcon: t } = fe();
1976
- return t || /* @__PURE__ */ i(Fe, {});
1976
+ return t || /* @__PURE__ */ i(ke, {});
1977
1977
  }, Bo = () => {
1978
1978
  const { nextIcon: t } = fe();
1979
- return t || /* @__PURE__ */ i(Fe, { style: { transform: "rotate(180deg" } });
1979
+ return t || /* @__PURE__ */ i(ke, { style: { transform: "rotate(180deg" } });
1980
1980
  }, jo = () => {
1981
1981
  const { focusedPage: t, totalPages: e, setFocusedPage: r, nextPage: o, prevPage: n, goToPage: a } = ce(), [c, s] = $(t.toString()), { pageNavigationTool: l = !0 } = _e(), { isSmallScreen: d } = Re(), { localeMessages: u } = me();
1982
1982
  O(() => {
1983
1983
  s(t.toString());
1984
1984
  }, [t]);
1985
- const f = x((b) => {
1985
+ const f = I((b) => {
1986
1986
  const v = b.target.value;
1987
1987
  s(v);
1988
- }, []), h = x(async () => {
1988
+ }, []), h = I(async () => {
1989
1989
  const b = await a(c);
1990
1990
  b.success || s(b.currentPage.toString());
1991
- }, [a, c, e]), g = x(() => {
1991
+ }, [a, c, e]), g = I(() => {
1992
1992
  s(t.toString());
1993
- }, [t]), w = x(
1993
+ }, [t]), w = I(
1994
1994
  (b) => {
1995
1995
  b.key === "Enter" && h();
1996
1996
  },
@@ -2041,7 +2041,7 @@ const Go = ({ widths: t, heights: e }) => {
2041
2041
  ) })
2042
2042
  ] }) : null;
2043
2043
  };
2044
- var Rt = "Dialog", [Ir, Ss] = qn(Rt), [Ko, le] = Ir(Rt), xr = (t) => {
2044
+ var Rt = "Dialog", [yr, Ss] = qn(Rt), [Ko, le] = yr(Rt), Ir = (t) => {
2045
2045
  const {
2046
2046
  __scopeDialog: e,
2047
2047
  children: r,
@@ -2071,7 +2071,7 @@ var Rt = "Dialog", [Ir, Ss] = qn(Rt), [Ko, le] = Ir(Rt), xr = (t) => {
2071
2071
  }
2072
2072
  );
2073
2073
  };
2074
- xr.displayName = Rt;
2074
+ Ir.displayName = Rt;
2075
2075
  var Rr = "DialogTrigger", Xo = G.forwardRef(
2076
2076
  (t, e) => {
2077
2077
  const { __scopeDialog: r, ...o } = t, n = le(Rr, r), a = St(e, n.triggerRef);
@@ -2085,23 +2085,23 @@ var Rr = "DialogTrigger", Xo = G.forwardRef(
2085
2085
  "data-state": Et(n.open),
2086
2086
  ...o,
2087
2087
  ref: a,
2088
- onClick: ke(t.onClick, n.onOpenToggle)
2088
+ onClick: Fe(t.onClick, n.onOpenToggle)
2089
2089
  }
2090
2090
  );
2091
2091
  }
2092
2092
  );
2093
2093
  Xo.displayName = Rr;
2094
- var Lt = "DialogPortal", [Jo, Lr] = Ir(Lt, {
2094
+ var Lt = "DialogPortal", [Jo, Lr] = yr(Lt, {
2095
2095
  forceMount: void 0
2096
2096
  }), Nr = (t) => {
2097
2097
  const { __scopeDialog: e, forceMount: r, children: o, container: n } = t, a = le(Lt, e);
2098
- return /* @__PURE__ */ i(Jo, { scope: e, forceMount: r, children: G.Children.map(o, (c) => /* @__PURE__ */ i(yt, { present: r || a.open, children: /* @__PURE__ */ i(Jn, { asChild: !0, container: n, children: c }) })) });
2098
+ return /* @__PURE__ */ i(Jo, { scope: e, forceMount: r, children: G.Children.map(o, (c) => /* @__PURE__ */ i(xt, { present: r || a.open, children: /* @__PURE__ */ i(Jn, { asChild: !0, container: n, children: c }) })) });
2099
2099
  };
2100
2100
  Nr.displayName = Lt;
2101
2101
  var Ze = "DialogOverlay", Er = G.forwardRef(
2102
2102
  (t, e) => {
2103
2103
  const r = Lr(Ze, t.__scopeDialog), { forceMount: o = r.forceMount, ...n } = t, a = le(Ze, t.__scopeDialog);
2104
- return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(Yo, { ...n, ref: e }) }) : null;
2104
+ return a.modal ? /* @__PURE__ */ i(xt, { present: o || a.open, children: /* @__PURE__ */ i(Yo, { ...n, ref: e }) }) : null;
2105
2105
  }
2106
2106
  );
2107
2107
  Er.displayName = Ze;
@@ -2122,16 +2122,16 @@ var Yo = G.forwardRef(
2122
2122
  ) })
2123
2123
  );
2124
2124
  }
2125
- ), Ie = "DialogContent", Or = G.forwardRef(
2125
+ ), ye = "DialogContent", Or = G.forwardRef(
2126
2126
  (t, e) => {
2127
- const r = Lr(Ie, t.__scopeDialog), { forceMount: o = r.forceMount, ...n } = t, a = le(Ie, t.__scopeDialog);
2128
- return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Qo, { ...n, ref: e }) : /* @__PURE__ */ i(ei, { ...n, ref: e }) });
2127
+ const r = Lr(ye, t.__scopeDialog), { forceMount: o = r.forceMount, ...n } = t, a = le(ye, t.__scopeDialog);
2128
+ return /* @__PURE__ */ i(xt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Qo, { ...n, ref: e }) : /* @__PURE__ */ i(ei, { ...n, ref: e }) });
2129
2129
  }
2130
2130
  );
2131
- Or.displayName = Ie;
2131
+ Or.displayName = ye;
2132
2132
  var Qo = G.forwardRef(
2133
2133
  (t, e) => {
2134
- const r = le(Ie, t.__scopeDialog), o = G.useRef(null), n = St(e, r.contentRef, o);
2134
+ const r = le(ye, t.__scopeDialog), o = G.useRef(null), n = St(e, r.contentRef, o);
2135
2135
  return G.useEffect(() => {
2136
2136
  const a = o.current;
2137
2137
  if (a)
@@ -2143,15 +2143,15 @@ var Qo = G.forwardRef(
2143
2143
  ref: n,
2144
2144
  trapFocus: r.open,
2145
2145
  disableOutsidePointerEvents: !0,
2146
- onCloseAutoFocus: ke(t.onCloseAutoFocus, (a) => {
2146
+ onCloseAutoFocus: Fe(t.onCloseAutoFocus, (a) => {
2147
2147
  var c;
2148
2148
  a.preventDefault(), (c = r.triggerRef.current) == null || c.focus();
2149
2149
  }),
2150
- onPointerDownOutside: ke(t.onPointerDownOutside, (a) => {
2150
+ onPointerDownOutside: Fe(t.onPointerDownOutside, (a) => {
2151
2151
  const c = a.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
2152
2152
  (c.button === 2 || s) && a.preventDefault();
2153
2153
  }),
2154
- onFocusOutside: ke(
2154
+ onFocusOutside: Fe(
2155
2155
  t.onFocusOutside,
2156
2156
  (a) => a.preventDefault()
2157
2157
  )
@@ -2160,7 +2160,7 @@ var Qo = G.forwardRef(
2160
2160
  }
2161
2161
  ), ei = G.forwardRef(
2162
2162
  (t, e) => {
2163
- const r = le(Ie, t.__scopeDialog), o = G.useRef(!1), n = G.useRef(!1);
2163
+ const r = le(ye, t.__scopeDialog), o = G.useRef(!1), n = G.useRef(!1);
2164
2164
  return /* @__PURE__ */ i(
2165
2165
  Dr,
2166
2166
  {
@@ -2183,8 +2183,8 @@ var Qo = G.forwardRef(
2183
2183
  }
2184
2184
  ), Dr = G.forwardRef(
2185
2185
  (t, e) => {
2186
- const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: n, onCloseAutoFocus: a, ...c } = t, s = le(Ie, r), l = G.useRef(null), d = St(e, l);
2187
- return jn(), /* @__PURE__ */ z(ye, { children: [
2186
+ const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: n, onCloseAutoFocus: a, ...c } = t, s = le(ye, r), l = G.useRef(null), d = St(e, l);
2187
+ return jn(), /* @__PURE__ */ z(xe, { children: [
2188
2188
  /* @__PURE__ */ i(
2189
2189
  Kn,
2190
2190
  {
@@ -2208,7 +2208,7 @@ var Qo = G.forwardRef(
2208
2208
  )
2209
2209
  }
2210
2210
  ),
2211
- /* @__PURE__ */ z(ye, { children: [
2211
+ /* @__PURE__ */ z(xe, { children: [
2212
2212
  /* @__PURE__ */ i(ri, { titleId: s.titleId }),
2213
2213
  /* @__PURE__ */ i(oi, { contentRef: l, descriptionId: s.descriptionId })
2214
2214
  ] })
@@ -2228,26 +2228,26 @@ var Ar = "DialogDescription", ti = G.forwardRef(
2228
2228
  }
2229
2229
  );
2230
2230
  ti.displayName = Ar;
2231
- var kr = "DialogClose", Fr = G.forwardRef(
2231
+ var Fr = "DialogClose", kr = G.forwardRef(
2232
2232
  (t, e) => {
2233
- const { __scopeDialog: r, ...o } = t, n = le(kr, r);
2233
+ const { __scopeDialog: r, ...o } = t, n = le(Fr, r);
2234
2234
  return /* @__PURE__ */ i(
2235
2235
  We.button,
2236
2236
  {
2237
2237
  type: "button",
2238
2238
  ...o,
2239
2239
  ref: e,
2240
- onClick: ke(t.onClick, () => n.onOpenChange(!1))
2240
+ onClick: Fe(t.onClick, () => n.onOpenChange(!1))
2241
2241
  }
2242
2242
  );
2243
2243
  }
2244
2244
  );
2245
- Fr.displayName = kr;
2245
+ kr.displayName = Fr;
2246
2246
  function Et(t) {
2247
2247
  return t ? "open" : "closed";
2248
2248
  }
2249
- var Mr = "DialogTitleWarning", [ys, Wr] = Un(Mr, {
2250
- contentName: Ie,
2249
+ var Mr = "DialogTitleWarning", [xs, Wr] = Un(Mr, {
2250
+ contentName: ye,
2251
2251
  titleName: Nt,
2252
2252
  docsSlug: "dialog"
2253
2253
  }), ri = ({ titleId: t }) => {
@@ -2266,7 +2266,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2266
2266
  const n = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2267
2267
  e && n && (document.getElementById(e) || console.warn(o));
2268
2268
  }, [o, t, e]), null;
2269
- }, ii = xr, ai = Nr, si = Er, ci = Or, li = zr, di = Fr;
2269
+ }, ii = Ir, ai = Nr, si = Er, ci = Or, li = zr, di = kr;
2270
2270
  const Se = {
2271
2271
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2272
2272
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2276,7 +2276,7 @@ const Se = {
2276
2276
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2277
2277
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2278
2278
  }, ui = () => {
2279
- const { pdfProperties: t } = X(), { container: e } = xe(), { activeDocumentProperties: r, setActiveDocumentProperties: o } = eo(), { localeMessages: n } = me(), a = F(() => {
2279
+ const { pdfProperties: t } = X(), { container: e } = Ie(), { activeDocumentProperties: r, setActiveDocumentProperties: o } = eo(), { localeMessages: n } = me(), a = k(() => {
2280
2280
  if (!t)
2281
2281
  return [];
2282
2282
  const {
@@ -2331,7 +2331,7 @@ const Se = {
2331
2331
  return hi(r);
2332
2332
  }, Hr = () => {
2333
2333
  const { filename: t, pdfSrc: e } = X();
2334
- return { download: x(async () => {
2334
+ return { download: I(async () => {
2335
2335
  if (!t || !e)
2336
2336
  throw new Error("There is no PDF source to download");
2337
2337
  const o = document.createElement("a");
@@ -2374,9 +2374,9 @@ const Se = {
2374
2374
  const { goToLastPageIcon: t } = fe();
2375
2375
  return t || /* @__PURE__ */ i(fr, {});
2376
2376
  }, rr = { width: "100%" }, Ti = () => {
2377
- const { goToPage: t, totalPages: e, focusedPage: r } = ce(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: n } = me(), a = F(() => r === 1, [r]), c = F(() => r === e, [r, e]), s = x(() => {
2377
+ const { goToPage: t, totalPages: e, focusedPage: r } = ce(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: n } = me(), a = k(() => r === 1, [r]), c = k(() => r === e, [r, e]), s = I(() => {
2378
2378
  t(1);
2379
- }, [t]), l = x(() => {
2379
+ }, [t]), l = I(() => {
2380
2380
  t(e);
2381
2381
  }, [t, e]);
2382
2382
  return o ? /* @__PURE__ */ z(Ue, { children: [
@@ -2388,10 +2388,10 @@ const Se = {
2388
2388
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ci, {}) }),
2389
2389
  /* @__PURE__ */ i("span", { children: n == null ? void 0 : n.lastPageLabel })
2390
2390
  ] }) }) }),
2391
- /* @__PURE__ */ i(It, {})
2391
+ /* @__PURE__ */ i(yt, {})
2392
2392
  ] }) : null;
2393
2393
  }, Pi = () => {
2394
- const { container: t } = xe(), { isSmallScreen: e } = Re(), {
2394
+ const { container: t } = Ie(), { isSmallScreen: e } = Re(), {
2395
2395
  openFileTool: r,
2396
2396
  downloadTool: o,
2397
2397
  documentProperties: n,
@@ -2402,7 +2402,7 @@ const Se = {
2402
2402
  printTool: d,
2403
2403
  fullscreenTool: u
2404
2404
  } = _e(), { localeMessages: f } = me();
2405
- return F(() => {
2405
+ return k(() => {
2406
2406
  const g = l || c || s || a || n;
2407
2407
  let w = !1;
2408
2408
  return e && (w = !(!r && !o && !d && !u)), g || w;
@@ -2427,7 +2427,7 @@ const Se = {
2427
2427
  /* @__PURE__ */ i(Gr, {}),
2428
2428
  /* @__PURE__ */ i(Zr, {}),
2429
2429
  /* @__PURE__ */ i(mr, {}),
2430
- /* @__PURE__ */ i(It, {})
2430
+ /* @__PURE__ */ i(yt, {})
2431
2431
  ] }),
2432
2432
  /* @__PURE__ */ i(Ti, {}),
2433
2433
  /* @__PURE__ */ i(no, {}),
@@ -2441,9 +2441,9 @@ const Se = {
2441
2441
  ] }) : null;
2442
2442
  }, Si = () => {
2443
2443
  const { isSmallScreen: t } = Re();
2444
- return /* @__PURE__ */ z(ye, { children: [
2444
+ return /* @__PURE__ */ z(xe, { children: [
2445
2445
  /* @__PURE__ */ i($n, {}),
2446
- !t && /* @__PURE__ */ z(ye, { children: [
2446
+ !t && /* @__PURE__ */ z(xe, { children: [
2447
2447
  /* @__PURE__ */ i(ur, {}),
2448
2448
  /* @__PURE__ */ i(Gr, {}),
2449
2449
  /* @__PURE__ */ i(Zr, {}),
@@ -2457,33 +2457,33 @@ const Se = {
2457
2457
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2458
2458
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2459
2459
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2460
- }, yi = 25, mt = 1e3, Ii = [50, 75, 100, 125, 150, 200, 300, 400], xi = () => {
2460
+ }, xi = 25, mt = 1e3, yi = [50, 75, 100, 125, 150, 200, 300, 400], Ii = () => {
2461
2461
  const { zoomInIcon: t } = fe();
2462
2462
  return t || /* @__PURE__ */ i(co, {});
2463
2463
  }, Ri = () => {
2464
2464
  const { zoomOutIcon: t } = fe();
2465
2465
  return t || /* @__PURE__ */ i(lo, {});
2466
2466
  }, Li = () => {
2467
- const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: r, contentRef: o } = xe(), { zoomTool: n = !0 } = _e(), { focusedPage: a } = ce(), { rotate: c } = Ke(), { pages: s } = X(), { isSmallScreen: l } = Re(), { localeMessages: d } = me(), u = x(() => {
2467
+ const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: r, contentRef: o } = Ie(), { zoomTool: n = !0 } = _e(), { focusedPage: a } = ce(), { rotate: c } = Ke(), { pages: s } = X(), { isSmallScreen: l } = Re(), { localeMessages: d } = me(), u = I(() => {
2468
2468
  e((_) => {
2469
2469
  const m = Math.floor(_ / 25) * 25;
2470
2470
  return Math.min(m + 25, mt);
2471
2471
  });
2472
- }, [e]), f = x(() => {
2472
+ }, [e]), f = I(() => {
2473
2473
  e((_) => {
2474
2474
  const m = Math.ceil(_ / 25) * 25;
2475
2475
  return Math.min(m - 25, mt);
2476
2476
  });
2477
- }, [e]), h = F(() => t === yi, [t]), g = F(() => t === mt, [t]), w = F(() => {
2477
+ }, [e]), h = k(() => t === xi, [t]), g = k(() => t === mt, [t]), w = k(() => {
2478
2478
  var _;
2479
2479
  return (_ = s.get(a)) == null ? void 0 : _.page.getViewport({ scale: 1, rotation: c });
2480
- }, [s, a, c]), b = x(
2480
+ }, [s, a, c]), b = I(
2481
2481
  (_) => {
2482
- const m = ((w == null ? void 0 : w.width) || 0) + 2 * Ht, T = ((w == null ? void 0 : w.height) || 0) + 2 * Ht, y = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, P = uo(_, y, p, m, T);
2482
+ const m = ((w == null ? void 0 : w.width) || 0) + 2 * Ht, T = ((w == null ? void 0 : w.height) || 0) + 2 * Ht, x = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, P = uo(_, x, p, m, T);
2483
2483
  e(P);
2484
2484
  },
2485
2485
  [e, w]
2486
- ), v = x(
2486
+ ), v = I(
2487
2487
  (_) => {
2488
2488
  typeof _ == "number" ? e(_) : b(_);
2489
2489
  },
@@ -2511,7 +2511,7 @@ const Se = {
2511
2511
  children: [
2512
2512
  /* @__PURE__ */ i("span", { className: Ne["rp-current-zoom-text"], children: t }),
2513
2513
  /* @__PURE__ */ i("span", { className: Ne["rp-current-zoom-text"], children: "%" }),
2514
- /* @__PURE__ */ i(Fe, { className: Ne["rp-current-zoom-icon"] })
2514
+ /* @__PURE__ */ i(ke, { className: Ne["rp-current-zoom-icon"] })
2515
2515
  ]
2516
2516
  }
2517
2517
  ) }) }),
@@ -2523,8 +2523,8 @@ const Se = {
2523
2523
  /* @__PURE__ */ i(be, { onClick: () => v(ot.PAGE_FIT), children: d == null ? void 0 : d.zoomPageFit }),
2524
2524
  /* @__PURE__ */ i(be, { onClick: () => v(ot.PAGE_WIDTH), children: d == null ? void 0 : d.zoomPageWidth })
2525
2525
  ] }),
2526
- /* @__PURE__ */ i(It, {}),
2527
- /* @__PURE__ */ i(Ue, { children: Ii.map((_) => /* @__PURE__ */ z(be, { onClick: () => v(_), children: [
2526
+ /* @__PURE__ */ i(yt, {}),
2527
+ /* @__PURE__ */ i(Ue, { children: yi.map((_) => /* @__PURE__ */ z(be, { onClick: () => v(_), children: [
2528
2528
  _,
2529
2529
  " %"
2530
2530
  ] }, _)) })
@@ -2537,25 +2537,25 @@ const Se = {
2537
2537
  disabled: g,
2538
2538
  onClick: u,
2539
2539
  "aria-label": d == null ? void 0 : d.zoomInTooltip,
2540
- children: /* @__PURE__ */ i(xi, {})
2540
+ children: /* @__PURE__ */ i(Ii, {})
2541
2541
  }
2542
2542
  ) })
2543
2543
  ] }) : null;
2544
2544
  }, ne = {
2545
- "rp-search-tool-content": "_rp-search-tool-content_17okh_1",
2546
- "rp-search-tool-input": "_rp-search-tool-input_17okh_8",
2547
- "rp-search-tool-input-icon": "_rp-search-tool-input-icon_17okh_14",
2548
- "rp-search-tool-controls": "_rp-search-tool-controls_17okh_24",
2549
- "rp-search-tool-input-wrapper": "_rp-search-tool-input-wrapper_17okh_32",
2550
- "rp-search-tool-input-checkboxes": "_rp-search-tool-input-checkboxes_17okh_38",
2551
- "rp-search-tool-input-clear": "_rp-search-tool-input-clear_17okh_43",
2552
- "rp-search-input": "_rp-search-input_17okh_57",
2553
- "rp-search-icon-info": "_rp-search-icon-info_17okh_62"
2545
+ "rp-search-tool-content": "_rp-search-tool-content_3xbn5_1",
2546
+ "rp-search-tool-input": "_rp-search-tool-input_3xbn5_10",
2547
+ "rp-search-tool-input-icon": "_rp-search-tool-input-icon_3xbn5_17",
2548
+ "rp-search-tool-controls": "_rp-search-tool-controls_3xbn5_27",
2549
+ "rp-search-tool-input-wrapper": "_rp-search-tool-input-wrapper_3xbn5_35",
2550
+ "rp-search-tool-input-checkboxes": "_rp-search-tool-input-checkboxes_3xbn5_41",
2551
+ "rp-search-tool-input-clear": "_rp-search-tool-input-clear_3xbn5_46",
2552
+ "rp-search-input": "_rp-search-input_3xbn5_60",
2553
+ "rp-search-icon-info": "_rp-search-icon-info_3xbn5_65"
2554
2554
  }, nr = () => {
2555
2555
  const { searchIcon: t } = fe();
2556
2556
  return t || /* @__PURE__ */ i(po, {});
2557
2557
  }, Ni = () => {
2558
- const { container: t } = xe(), [e, r] = $(!1), { pdf: o } = X(), [n, a] = $(null), {
2558
+ const { container: t } = Ie(), [e, r] = $(!1), { pdf: o } = X(), [n, a] = $(null), {
2559
2559
  searchOptions: c,
2560
2560
  setSearchOptions: s,
2561
2561
  loading: l,
@@ -2565,21 +2565,21 @@ const Se = {
2565
2565
  nextMatch: h,
2566
2566
  prevMatch: g,
2567
2567
  search: w
2568
- } = Tr(), { searchTool: b = !0 } = _e(), [v, _] = $(w), { localeMessages: m } = me(), T = x(() => {
2568
+ } = Tr(), { searchTool: b = !0 } = _e(), [v, _] = $(w), { localeMessages: m } = me(), T = I(() => {
2569
2569
  r(!0);
2570
- }, []), y = x(() => {
2570
+ }, []), x = I(() => {
2571
2571
  d(""), _(""), r(!1);
2572
- }, [d]), p = (I) => {
2573
- const N = I.key === "Enter", V = I.key === " ";
2574
- (N || V) && y();
2575
- }, P = x(
2576
- (I) => {
2577
- I.key === "Escape" && e && y();
2572
+ }, [d]), p = (y) => {
2573
+ const N = y.key === "Enter", V = y.key === " ";
2574
+ (N || V) && x();
2575
+ }, P = I(
2576
+ (y) => {
2577
+ y.key === "Escape" && e && x();
2578
2578
  },
2579
2579
  [e]
2580
- ), C = x(
2581
- (I) => {
2582
- I.shiftKey && I.key === "Enter" ? g() : I.key === "Enter" && w !== v ? d(v) : I.key === "Enter" && h();
2580
+ ), C = I(
2581
+ (y) => {
2582
+ y.shiftKey && y.key === "Enter" ? g() : y.key === "Enter" && w !== v ? d(v) : y.key === "Enter" && h();
2583
2583
  },
2584
2584
  [v, g, h, d, w]
2585
2585
  );
@@ -2588,25 +2588,25 @@ const Se = {
2588
2588
  }), [P]), O(() => {
2589
2589
  n && n.focus();
2590
2590
  }, [n]);
2591
- const S = x((I) => {
2592
- _(I.target.value);
2593
- }, []), A = x(() => {
2591
+ const S = I((y) => {
2592
+ _(y.target.value);
2593
+ }, []), A = I(() => {
2594
2594
  _(""), d("");
2595
- }, [d]), R = F(() => `${f} / ${u}`, [f, u]), { wholeWords: D, matchCase: L } = F(() => c, [c]), k = x(
2596
- (I) => {
2597
- s((N) => ({ ...N, matchCase: I }));
2595
+ }, [d]), R = k(() => `${f} / ${u}`, [f, u]), { wholeWords: D, matchCase: L } = k(() => c, [c]), F = I(
2596
+ (y) => {
2597
+ s((N) => ({ ...N, matchCase: y }));
2598
2598
  },
2599
2599
  [s]
2600
- ), E = x(
2601
- (I) => {
2602
- s((N) => ({ ...N, wholeWords: I }));
2600
+ ), E = I(
2601
+ (y) => {
2602
+ s((N) => ({ ...N, wholeWords: y }));
2603
2603
  },
2604
2604
  [s]
2605
2605
  );
2606
2606
  return O(() => {
2607
- y();
2608
- }, [o, y]), b ? /* @__PURE__ */ i(ye, { children: /* @__PURE__ */ i(
2609
- kn,
2607
+ x();
2608
+ }, [o, x]), b ? /* @__PURE__ */ i(xe, { children: /* @__PURE__ */ i(
2609
+ Fn,
2610
2610
  {
2611
2611
  open: e,
2612
2612
  container: t,
@@ -2630,7 +2630,7 @@ const Se = {
2630
2630
  l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Pt, {}) }) : /* @__PURE__ */ i("span", { children: R })
2631
2631
  ] }),
2632
2632
  /* @__PURE__ */ z("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
2633
- /* @__PURE__ */ i($t, { name: "matchCase", value: L, onChange: k, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2633
+ /* @__PURE__ */ i($t, { name: "matchCase", value: L, onChange: F, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2634
2634
  /* @__PURE__ */ i(U, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) }),
2635
2635
  /* @__PURE__ */ i($t, { name: "wholeWord", value: D, onChange: E, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2636
2636
  /* @__PURE__ */ i(U, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) })
@@ -2638,14 +2638,14 @@ const Se = {
2638
2638
  ] }),
2639
2639
  /* @__PURE__ */ z("div", { className: ne["rp-search-tool-controls"], children: [
2640
2640
  /* @__PURE__ */ i(U, { content: m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(te, { onClick: g, "aria-label": m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(
2641
- Fe,
2641
+ ke,
2642
2642
  {
2643
2643
  className: ne["rp-search-tool-input-icon"],
2644
2644
  "aria-disabled": !u
2645
2645
  }
2646
2646
  ) }) }),
2647
2647
  /* @__PURE__ */ i(U, { content: m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ i(te, { onClick: h, "aria-label": m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ i(
2648
- Fe,
2648
+ ke,
2649
2649
  {
2650
2650
  style: { transform: "rotate(180deg" },
2651
2651
  className: ne["rp-search-tool-input-icon"],
@@ -2657,7 +2657,7 @@ const Se = {
2657
2657
  {
2658
2658
  onKeyDown: p,
2659
2659
  "aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
2660
- children: /* @__PURE__ */ i(hr, { onClick: y, className: ne["rp-search-tool-input-icon"] })
2660
+ children: /* @__PURE__ */ i(hr, { onClick: x, className: ne["rp-search-tool-input-icon"] })
2661
2661
  }
2662
2662
  ) })
2663
2663
  ] })
@@ -2713,10 +2713,10 @@ const Se = {
2713
2713
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2714
2714
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2715
2715
  }, zi = (t) => {
2716
- const { thumbnailSrc: e, pageNumber: r, isFocused: o, viewport: n } = t, { goToPage: a } = ce(), c = F(() => o ? Ae["rp-thumbnail-active"] : "", [o]), s = F(() => ({
2716
+ const { thumbnailSrc: e, pageNumber: r, isFocused: o, viewport: n } = t, { goToPage: a } = ce(), c = k(() => o ? Ae["rp-thumbnail-active"] : "", [o]), s = k(() => ({
2717
2717
  width: Math.round(n.width),
2718
2718
  height: Math.round(n.height)
2719
- }), [n]), l = x(() => {
2719
+ }), [n]), l = I(() => {
2720
2720
  r && a(r);
2721
2721
  }, [a, r]);
2722
2722
  return /* @__PURE__ */ z(
@@ -2752,18 +2752,18 @@ const Se = {
2752
2752
  }, or = {
2753
2753
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2754
2754
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2755
- }, Ai = 16, ki = (t, e) => {
2755
+ }, Ai = 16, Fi = (t, e) => {
2756
2756
  const r = t == null ? void 0 : t.querySelector(`#page-${e}`);
2757
2757
  t && (r != null && r.offsetTop) && (t.scrollTop = (r == null ? void 0 : r.offsetTop) - Ai);
2758
- }, Fi = Me((t, e) => {
2758
+ }, ki = Me((t, e) => {
2759
2759
  const { show: r } = t, { focusedPage: o, totalPages: n } = ce(), { thumbnailPages: a, addPage: c, thumbnailLength: s, addToPage: l } = br(), d = M(null), u = M(1);
2760
2760
  ir(e, () => d.current);
2761
- const f = F(() => Object.values(a), [a]), h = x(() => {
2761
+ const f = k(() => Object.values(a), [a]), h = I(() => {
2762
2762
  const g = s + 1;
2763
2763
  g <= n && c(g);
2764
2764
  }, [c, n, s]);
2765
2765
  return O(() => {
2766
- o > s ? l(o) : r && u.current !== o && (ki(d.current, o), u.current = o);
2766
+ o > s ? l(o) : r && u.current !== o && (Fi(d.current, o), u.current = o);
2767
2767
  }, [o, s, l, r, f]), wn(d.current, h), /* @__PURE__ */ i("div", { ref: d, className: or["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: or["rp-thumbnails"], children: r ? f.map((g, w) => {
2768
2768
  var b, v;
2769
2769
  return /* @__PURE__ */ i(
@@ -2782,9 +2782,9 @@ const Se = {
2782
2782
  const { thumbnailIcon: t } = fe();
2783
2783
  return t || /* @__PURE__ */ i(_n, {});
2784
2784
  }, Wi = () => {
2785
- const { active: t, setActive: e } = br(), [r, o] = $(200), n = M(null), { thumbnailTool: a, sidebarEnable: c } = _e(), { localeMessages: s } = me(), l = x(() => {
2785
+ const { active: t, setActive: e } = br(), [r, o] = $(200), n = M(null), { thumbnailTool: a, sidebarEnable: c } = _e(), { localeMessages: s } = me(), l = I(() => {
2786
2786
  e((u) => !u);
2787
- }, []), d = F(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: l, active: t }) : a ? /* @__PURE__ */ i(U, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2787
+ }, []), d = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: l, active: t }) : a ? /* @__PURE__ */ i(U, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2788
2788
  te,
2789
2789
  {
2790
2790
  onClick: l,
@@ -2793,7 +2793,7 @@ const Se = {
2793
2793
  children: /* @__PURE__ */ i(Mi, {})
2794
2794
  }
2795
2795
  ) }) : null, [a, t, l, s]);
2796
- return /* @__PURE__ */ i(ye, { children: c && /* @__PURE__ */ z(
2796
+ return /* @__PURE__ */ i(xe, { children: c && /* @__PURE__ */ z(
2797
2797
  "div",
2798
2798
  {
2799
2799
  style: { "--rp-thumbnail-width": `${r}px` },
@@ -2808,7 +2808,7 @@ const Se = {
2808
2808
  hidden: !t,
2809
2809
  className: ft["rp-thumbnails-wrapper"],
2810
2810
  children: [
2811
- /* @__PURE__ */ i(Fi, { show: t, ref: n }),
2811
+ /* @__PURE__ */ i(ki, { show: t, ref: n }),
2812
2812
  /* @__PURE__ */ i(bn, { onWidthChange: o, thumbnailRef: n })
2813
2813
  ]
2814
2814
  }
@@ -2826,7 +2826,7 @@ const Se = {
2826
2826
  "rp-dark-mode": "_rp-dark-mode_3uw64_151"
2827
2827
  }, Hi = Me(
2828
2828
  (t, e) => {
2829
- const { children: r, toolbarRef: o, style: n, className: a } = t, { customVariables: c, customDarkVariables: s } = xn(), { darkMode: l } = on();
2829
+ const { children: r, toolbarRef: o, style: n, className: a } = t, { customVariables: c, customDarkVariables: s } = In(), { darkMode: l } = on();
2830
2830
  return /* @__PURE__ */ i(
2831
2831
  "div",
2832
2832
  {
@@ -2847,11 +2847,11 @@ const Se = {
2847
2847
  }
2848
2848
  );
2849
2849
  }
2850
- ), Is = Me((t, e) => {
2851
- const { children: r, slots: o, icons: n, style: a, className: c, mobileWidth: s, onLoaded: l, cleanupOnLoaded: d } = t, [u, f] = $(null), { setContainer: h, setContentRef: g } = xe(), { loading: w } = X(), { LoaderImageComponent: b } = dr();
2850
+ ), ys = Me((t, e) => {
2851
+ const { children: r, slots: o, icons: n, style: a, className: c, mobileWidth: s, onLoaded: l, cleanupOnLoaded: d } = t, [u, f] = $(null), { setContainer: h, setContentRef: g } = Ie(), { loading: w } = X(), { LoaderImageComponent: b } = dr();
2852
2852
  return O(() => (l && l(), () => {
2853
2853
  d && d();
2854
- }), [l, d]), /* @__PURE__ */ i(Hi, { toolbarRef: u, ref: e, children: /* @__PURE__ */ i(In, { mobileWidth: s, children: /* @__PURE__ */ i(Cn, { slots: o, children: /* @__PURE__ */ i(Tn, { icons: n, children: /* @__PURE__ */ z(Pn, { getContainerRef: h, style: a, className: c, children: [
2854
+ }), [l, d]), /* @__PURE__ */ i(Hi, { toolbarRef: u, ref: e, children: /* @__PURE__ */ i(yn, { mobileWidth: s, children: /* @__PURE__ */ i(Cn, { slots: o, children: /* @__PURE__ */ i(Tn, { icons: n, children: /* @__PURE__ */ z(Pn, { getContainerRef: h, style: a, className: c, children: [
2855
2855
  /* @__PURE__ */ z(Sn, { children: [
2856
2856
  /* @__PURE__ */ z("div", { className: we["rp-layout"], children: [
2857
2857
  /* @__PURE__ */ i(Di, { ref: f }),
@@ -2860,7 +2860,7 @@ const Se = {
2860
2860
  /* @__PURE__ */ i("div", { ref: g, className: we["rp-pages"], children: r })
2861
2861
  ] })
2862
2862
  ] }),
2863
- /* @__PURE__ */ i(yn, {})
2863
+ /* @__PURE__ */ i(xn, {})
2864
2864
  ] }),
2865
2865
  w ? /* @__PURE__ */ i(
2866
2866
  "div",
@@ -2899,7 +2899,7 @@ export {
2899
2899
  Go as D,
2900
2900
  zi as E,
2901
2901
  Gr as F,
2902
- Fi as G,
2902
+ ki as G,
2903
2903
  Wi as H,
2904
2904
  Hi as I,
2905
2905
  Oi as L,
@@ -2911,7 +2911,7 @@ export {
2911
2911
  Cs as T,
2912
2912
  Li as Z,
2913
2913
  bs as a,
2914
- Is as b,
2914
+ ys as b,
2915
2915
  Hr as c,
2916
2916
  et as d,
2917
2917
  Tr as e,
@@ -2927,7 +2927,7 @@ export {
2927
2927
  Cr as o,
2928
2928
  wo as p,
2929
2929
  Po as q,
2930
- xt as r,
2930
+ It as r,
2931
2931
  Ho as s,
2932
2932
  qo as t,
2933
2933
  ce as u,