@pdf-viewer/react 1.9.2-rc.4 → 1.9.2-rc.6

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 (54) hide show
  1. package/dist/{ToolbarLayout.module-d8ed3e47.js → ToolbarLayout.module-1143bd56.js} +422 -421
  2. package/dist/assets/ToolbarLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/RPLayout.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/SearchResultNavigator.js +1 -1
  20. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  21. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  22. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  23. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  24. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  25. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  26. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  30. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  31. package/dist/components/page/AnnotationLayer.js +1 -1
  32. package/dist/components/page/CanvasLayer.js +1 -1
  33. package/dist/components/page/DualPage.js +1 -1
  34. package/dist/components/page/RPPage.js +1 -1
  35. package/dist/components/page/SinglePage.js +1 -1
  36. package/dist/components/page/TextHighlightLayer.js +1 -1
  37. package/dist/components/page/TextLayer.js +1 -1
  38. package/dist/components/ui/LoadingIndicator.js +1 -1
  39. package/dist/contexts/PaginationContext.js +1 -1
  40. package/dist/contexts/PrintContext.js +1 -1
  41. package/dist/contexts/RenderQueueProvider.js +1 -1
  42. package/dist/contexts/SearchContext.js +1 -1
  43. package/dist/contexts/ThumbnailsContext.js +1 -1
  44. package/dist/main.js +1 -1
  45. package/dist/utils/hooks/useFileDownload.js +1 -1
  46. package/dist/utils/hooks/useLicense.js +1 -1
  47. package/dist/utils/hooks/usePaginate.js +1 -1
  48. package/dist/utils/hooks/usePresentPage.js +1 -1
  49. package/dist/utils/hooks/usePrint.js +1 -1
  50. package/dist/utils/hooks/useScrollToPage.js +1 -1
  51. package/dist/utils/hooks/useSearch.js +1 -1
  52. package/dist/utils/hooks/useThumbnail.js +1 -1
  53. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { jsx as a, Fragment as pe, jsxs as H } from "react/jsx-runtime";
1
+ import { jsx as s, Fragment as pe, jsxs as H } from "react/jsx-runtime";
2
2
  import * as X from "react";
3
3
  import { useRef as k, useEffect as D, useCallback as E, useState as q, useMemo as W, createContext as He, useContext as $e, useImperativeHandle as tn, createElement as Ve, PureComponent as to, Component as no, memo as nn, forwardRef as oo } from "react";
4
4
  import { ChevronUpIcon as Ze } from "./components/icons/ChevronUpIcon.js";
@@ -7,8 +7,8 @@ import { UIInput as on } from "./components/ui/Input.js";
7
7
  import { ViewMode as Re, ScrollMode as ne, AnnotationSubType as Nt, SelectionMode as ro, ErrorType as io } from "./utils/types.js";
8
8
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
9
9
  import { useDocumentContext as oe } from "./contexts/RPDocumentContext.js";
10
- import { useDocumentPasswordContext as ao } from "./contexts/DocumentPasswordContext.js";
11
- import { useDarkModeContext as so } from "./contexts/DarkModeContext.js";
10
+ import { useDocumentPasswordContext as so } from "./contexts/DocumentPasswordContext.js";
11
+ import { useDarkModeContext as ao } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
13
  import { useLayerContext as co } from "./contexts/LayerContext.js";
14
14
  import { useZoomContext as wt } from "./contexts/ZoomContext.js";
@@ -27,19 +27,19 @@ import { useLocalizationContext as he } from "./contexts/LocalizationContext.js"
27
27
  import { useHighlightContext as vo } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
29
  import { useDownloadContext as wo } from "./contexts/DownloadContext.js";
30
- import { useSmoothScrollContext as an } from "./contexts/SmoothScrollContext.js";
30
+ import { useSmoothScrollContext as sn } from "./contexts/SmoothScrollContext.js";
31
31
  import "./contexts/ElementPageContext.js";
32
32
  import { usePagesRotateContext as Je } from "./contexts/PagesRotateContext.js";
33
33
  import { Queue as _o } from "./utils/Queue.js";
34
34
  import { renderPage as bo } from "./utils/renderPage.js";
35
35
  import { useGlobalCurrentPage as To } from "./contexts/GlobalCurrentPage.js";
36
- import { useLoaderContext as sn } from "./contexts/LoaderContext.js";
36
+ import { useLoaderContext as an } from "./contexts/LoaderContext.js";
37
37
  import { useToolComponentContext as Ne } from "./contexts/ToolComponentContext.js";
38
38
  import { useIconToolContext as be } from "./contexts/IconToolContext.js";
39
39
  import { useOtherToolContext as Co, OtherToolProvider as Po } from "./contexts/OtherToolContext.js";
40
40
  import "./components/RPConfig.js";
41
41
  import { ThumbnailIcon as yo } from "./components/icons/Thumbnail.js";
42
- import { c as se } from "./clsx-0c6e471a.js";
42
+ import { c as ce } from "./clsx-0c6e471a.js";
43
43
  import { LoaderIcon as _t } from "./components/icons/LoaderIcon.js";
44
44
  import { Container as So } from "./components/layout/Container.js";
45
45
  import { useViewportContext as Oe, ViewportProvider as Io } from "./contexts/ViewportContext.js";
@@ -66,7 +66,7 @@ import { THUMBNAIL_MIN_WIDTH as Mo } from "./utils/constants.js";
66
66
  import * as ko from "pdfjs-dist";
67
67
  import { PixelsPerInch as Wo, AnnotationMode as Ho, RenderingCancelledException as $o, AnnotationLayer as qo } from "pdfjs-dist";
68
68
  import { SimpleLinkService as Go } from "./utils/link_service.js";
69
- import { annotationsEvents as Uo, annotationEventsHandler as Vo, handleClick as zt, handleAnnotationWidget as jo, handleAnnotationLink as Bo, bindLayerEvents as Ko, unbindLayerEvents as Ft } from "./utils/annotations.js";
69
+ import { annotationsEvents as Uo, annotationEventsHandler as Vo, handleClick as zt, handleAnnotationWidget as Bo, handleAnnotationLink as jo, bindLayerEvents as Ko, unbindLayerEvents as Ft } from "./utils/annotations.js";
70
70
  import { normalizeSingleKeyword as Zo, sortHighlightPosition as Xo, unwrap as Qo } from "./components/page/searchHighlight.js";
71
71
  import { CustomElement as Yo } from "./components/page/CustomElement.js";
72
72
  import { useMousePressed as Jo } from "./utils/hooks/useMousePressed.js";
@@ -77,14 +77,14 @@ import nr from "./components/ui/PasswordModal.js";
77
77
  import { getPositionFromPage as or, getPageFromPosition as rr } from "./utils/calculatePage.js";
78
78
  import { getScrollDistance as ze } from "./utils/getScrollDistance.js";
79
79
  import { getWordPositionInPage as ir } from "./utils/getWordPositionInPage.js";
80
- import { getThumbnailViewport as ar } from "./utils/getThumbnailViewport.js";
80
+ import { getThumbnailViewport as sr } from "./utils/getThumbnailViewport.js";
81
81
  import { smoothScrollTo as it } from "./utils/smoothScrollTo.js";
82
- import { appConsole as sr } from "./utils/appConsole.js";
82
+ import { appConsole as ar } from "./utils/appConsole.js";
83
83
  import { FileUploadTool as dn } from "./components/layout/toolbar/FileUploadTool.js";
84
84
  import { DarkModeTool as cr } from "./components/layout/toolbar/DarkModeTool.js";
85
85
  import { ThreeDotIcon as lr } from "./components/icons/ThreeDotIcon.js";
86
86
  import { c as dr, u as Tt, P as Ge, b as We, d as Ct, i as ur, k as pr, a as hr } from "./index-48ca3f30.js";
87
- import { D as fr, d as at } from "./floating-ui.react-dom-88a86594.js";
87
+ import { D as fr, d as st } from "./floating-ui.react-dom-88a86594.js";
88
88
  import { a as mr, h as gr, u as vr, F as wr, b as _r, G as un } from "./index-4ba3ab9a.js";
89
89
  import { CloseIcon as br } from "./components/icons/CloseIcon.js";
90
90
  import { DocumentProperties as Tr } from "./components/layout/toolbar/DocumentProperties.js";
@@ -100,7 +100,7 @@ import { SearchIcon as fn } from "./components/icons/SearchIcon.js";
100
100
  import { ClearIcon as Rr } from "./components/icons/ClearIcon.js";
101
101
  import { InfoIcon as Mt } from "./components/icons/InfoIcon.js";
102
102
  import './assets/ToolbarLayout.css';const mn = () => {
103
- const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = Ye(), { setFocusedPage: i } = le(), c = k(), { columnCount: l } = rn(), { widths: d, heights: f } = qe(), m = k(e), P = k(t), p = k(l), { targetScrollPage: v } = an();
103
+ const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = Ye(), { setFocusedPage: i } = de(), c = k(), { columnCount: l } = rn(), { widths: d, heights: f } = qe(), m = k(e), P = k(t), p = k(l), { targetScrollPage: v } = sn();
104
104
  D(() => {
105
105
  n != null && n.scrollToItem && (c.current = n);
106
106
  }, [n]), D(() => {
@@ -117,7 +117,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
117
117
  top: 0
118
118
  };
119
119
  return new Promise(
120
- (s) => it(o, u, s)
120
+ (a) => it(o, u, a)
121
121
  );
122
122
  }
123
123
  const h = {
@@ -150,14 +150,14 @@ import './assets/ToolbarLayout.css';const mn = () => {
150
150
  }
151
151
  if (!c.current || !r)
152
152
  return;
153
- const s = r;
153
+ const a = r;
154
154
  if (y === "smooth" && (v.current = T), m.current === ne.HORIZONTAL_SCROLLING) {
155
155
  u = g;
156
156
  const S = {
157
157
  left: ze(d, u),
158
158
  top: 0
159
159
  };
160
- return s.scrollTo({
160
+ return a.scrollTo({
161
161
  ...S,
162
162
  behavior: y
163
163
  });
@@ -168,7 +168,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
168
168
  left: ze(d, u),
169
169
  top: ze(f, h)
170
170
  };
171
- return s.scrollTo({
171
+ return a.scrollTo({
172
172
  ...S,
173
173
  behavior: y
174
174
  });
@@ -177,7 +177,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
177
177
  left: 0,
178
178
  top: ze(f, h)
179
179
  };
180
- return s.scrollTo({
180
+ return a.scrollTo({
181
181
  ..._,
182
182
  behavior: y
183
183
  });
@@ -197,8 +197,8 @@ import './assets/ToolbarLayout.css';const mn = () => {
197
197
  (h) => {
198
198
  if (!/^[0-9]*$/g.test(h.toString()) || !h)
199
199
  return { success: !1, currentPage: c.current };
200
- const s = +h;
201
- return s < 0 || s > r ? { success: !1, currentPage: c.current } : (n(s), c.current = s, { success: !0, currentPage: +h });
200
+ const a = +h;
201
+ return a < 0 || a > r ? { success: !1, currentPage: c.current } : (n(a), c.current = a, { success: !0, currentPage: +h });
202
202
  },
203
203
  [r]
204
204
  ), v = E(p, [p]), b = E(
@@ -211,8 +211,8 @@ import './assets/ToolbarLayout.css';const mn = () => {
211
211
  const u = h % 2 === 1;
212
212
  if (!m || u)
213
213
  return !1;
214
- const s = u ? f[h] : f[h - 1], _ = u ? f[h + 1] : f[h];
215
- return l === Re.DUAL_PAGE && s + _ < m.clientWidth;
214
+ const a = u ? f[h] : f[h - 1], _ = u ? f[h + 1] : f[h];
215
+ return l === Re.DUAL_PAGE && a + _ < m.clientWidth;
216
216
  }, [l, f, m, r]), T = E(() => {
217
217
  let h = e - 1;
218
218
  C(h) && (h = e - 2), b(h);
@@ -243,16 +243,16 @@ import './assets/ToolbarLayout.css';const mn = () => {
243
243
  },
244
244
  nextPage: () => {
245
245
  }
246
- }), le = () => {
246
+ }), de = () => {
247
247
  const t = $e(gn);
248
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && sr.error("Please use this hooks inside children component of RPProvider"), t;
249
- }, js = ({ children: t }) => {
248
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && ar.error("Please use this hooks inside children component of RPProvider"), t;
249
+ }, Ba = ({ children: t }) => {
250
250
  const { pdf: e } = oe(), { setCurrentPage: n } = To(), { focusedPage: r, totalPages: o, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: f } = Lr();
251
251
  return D(() => {
252
252
  e != null && e.numPages && (c(e.numPages), i(1));
253
253
  }, [e, c, i]), D(() => {
254
254
  n(r);
255
- }, [r, n]), /* @__PURE__ */ a(
255
+ }, [r, n]), /* @__PURE__ */ s(
256
256
  gn.Provider,
257
257
  {
258
258
  value: {
@@ -292,7 +292,7 @@ const Er = () => {
292
292
  }, b = async ({
293
293
  scratchCanvas: h,
294
294
  pdfDocument: u,
295
- pageNumber: s,
295
+ pageNumber: a,
296
296
  viewerPdfPage: _,
297
297
  printResolution: w,
298
298
  optionalContentConfigPromise: S,
@@ -307,7 +307,7 @@ const Er = () => {
307
307
  const x = h.getContext("2d");
308
308
  x.save(), x.fillStyle = "rgb(255, 255, 255)", x.fillRect(0, 0, h.width, h.height), x.restore();
309
309
  const [N, A] = await Promise.all([
310
- u.getPage(s),
310
+ u.getPage(a),
311
311
  R
312
312
  ]);
313
313
  if (m.current) {
@@ -331,39 +331,39 @@ const Er = () => {
331
331
  }, C = E(() => {
332
332
  const h = window.print;
333
333
  return new Promise((u) => {
334
- const s = (S) => {
334
+ const a = (S) => {
335
335
  setTimeout(() => {
336
336
  h.call(window), setTimeout(() => S(), 20);
337
337
  }, 0);
338
338
  };
339
339
  if (document.querySelector(".rp-print-zone")) {
340
- s(u);
340
+ a(u);
341
341
  return;
342
342
  }
343
343
  const w = new MutationObserver(() => {
344
- document.querySelector(".rp-print-zone") && (s(u), w.disconnect());
344
+ document.querySelector(".rp-print-zone") && (a(u), w.disconnect());
345
345
  });
346
346
  w.observe(document.body, { childList: !0, subtree: !0 });
347
347
  });
348
348
  }, []), T = async (h) => {
349
- const u = document.createElement("img"), s = document.createElement("div");
350
- return s.classList.add("rp-print-page"), await new Promise((_, w) => {
349
+ const u = document.createElement("img"), a = document.createElement("div");
350
+ return a.classList.add("rp-print-page"), await new Promise((_, w) => {
351
351
  h.toBlob((S) => {
352
352
  S ? (u.src = URL.createObjectURL(S), u.onload = () => {
353
353
  URL.revokeObjectURL(u.src), _();
354
354
  }, u.onerror = w) : w(new Error("Failed to create blob"));
355
355
  });
356
356
  }).catch(() => {
357
- }), s.appendChild(u), s;
357
+ }), a.appendChild(u), a;
358
358
  }, y = (h, u) => {
359
- const s = document.createElement("div");
360
- s.classList.add("rp-print-zone");
359
+ const a = document.createElement("div");
360
+ a.classList.add("rp-print-zone");
361
361
  const _ = document.createElement("style"), w = u.get(1);
362
362
  if (w) {
363
363
  const { width: S, height: R } = w == null ? void 0 : w.page.getViewport({ scale: 1 });
364
364
  _.innerHTML = `@page { size: ${S}px ${R}px }`;
365
365
  }
366
- return s.appendChild(_), s.append(...h), s;
366
+ return a.appendChild(_), a.append(...h), a;
367
367
  }, g = E(async () => {
368
368
  if (!t)
369
369
  return;
@@ -407,8 +407,8 @@ const Er = () => {
407
407
  }
408
408
  const R = y(u, e);
409
409
  document.body.appendChild(R), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), i(!0), await C();
410
- } catch (s) {
411
- l(!0), s instanceof Error && f(s);
410
+ } catch (a) {
411
+ l(!0), a instanceof Error && f(a);
412
412
  } finally {
413
413
  h.height = 0, h.width = 0;
414
414
  }
@@ -445,7 +445,7 @@ const Er = () => {
445
445
  console.error("Error in setOnError callback:", e);
446
446
  }
447
447
  }
448
- }), Bs = ({ children: t }) => {
448
+ }), ja = ({ children: t }) => {
449
449
  const [e, n] = q(null), [r, o] = q(null), { print: i, cancel: c, progress: l, isComplete: d, isError: f, error: m } = Er(), P = E((T) => {
450
450
  T && typeof T == "function" && o(() => T);
451
451
  }, []), p = (T) => {
@@ -475,7 +475,7 @@ const Er = () => {
475
475
  setOnError: p,
476
476
  progress: l
477
477
  };
478
- return /* @__PURE__ */ a(vn.Provider, { value: C, children: t });
478
+ return /* @__PURE__ */ s(vn.Provider, { value: C, children: t });
479
479
  }, tt = () => {
480
480
  const t = $e(vn);
481
481
  if (!t)
@@ -487,7 +487,7 @@ const Er = () => {
487
487
  if (!n.size)
488
488
  return;
489
489
  const l = c > n.size ? n.size : c, f = Array.from(n.values()).slice(0, l).map((m) => {
490
- const { thumbnailViewport: P, scale: p } = ar(m.page, m.defaultRotation);
490
+ const { thumbnailViewport: P, scale: p } = sr(m.page, m.defaultRotation);
491
491
  return {
492
492
  scale: p,
493
493
  page: m.page,
@@ -532,12 +532,12 @@ const Er = () => {
532
532
  setActive: (t) => {
533
533
  },
534
534
  active: !1
535
- }), _n = () => $e(wn), Ks = ({
535
+ }), _n = () => $e(wn), Ka = ({
536
536
  children: t,
537
537
  initialThumbnailsVisible: e
538
538
  }) => {
539
539
  const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i } = Nr(), [c, l] = q(e);
540
- return /* @__PURE__ */ a(
540
+ return /* @__PURE__ */ s(
541
541
  wn.Provider,
542
542
  {
543
543
  value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i, active: c, setActive: l },
@@ -545,7 +545,7 @@ const Er = () => {
545
545
  }
546
546
  );
547
547
  }, Or = (t = {}, e = "") => {
548
- const [n, r] = q(e), [o, i] = q(!1), { pdf: c, pages: l } = oe(), { widths: d, heights: f } = qe(), m = k(!n), { currentZoom: P } = wt(), [p, v] = q([]), { setFocusedPage: b } = le(), { columnCount: C } = Fe(), { pageRotate: T } = Je(), [y, g] = q(0), { pageScrollElementRef: h, virtualScrollableElementRef: u } = Ye(), { scrollMode: s } = Ee(), { pagesRef: _ } = _e(), [w, S] = q(null), R = k({}), I = W(() => y === 0 ? null : p[y - 1], [y, p]), x = W(() => p.length, [p]);
548
+ const [n, r] = q(e), [o, i] = q(!1), { pdf: c, pages: l } = oe(), { widths: d, heights: f } = qe(), m = k(!n), { currentZoom: P } = wt(), [p, v] = q([]), { setFocusedPage: b } = de(), { columnCount: C } = Fe(), { pageRotate: T } = Je(), [y, g] = q(0), { pageScrollElementRef: h, virtualScrollableElementRef: u } = Ye(), { scrollMode: a } = Ee(), { pagesRef: _ } = _e(), [w, S] = q(null), R = k({}), I = W(() => y === 0 ? null : p[y - 1], [y, p]), x = W(() => p.length, [p]);
549
549
  D(() => {
550
550
  if (!I || !l)
551
551
  return;
@@ -553,23 +553,23 @@ const Er = () => {
553
553
  if (!L || !_)
554
554
  return;
555
555
  const O = l.get(I.page);
556
- if (s === ne.PAGE_SCROLLING && b(I.page), !O)
556
+ if (a === ne.PAGE_SCROLLING && b(I.page), !O)
557
557
  return;
558
558
  let F = 0, $ = 0;
559
- if (s === ne.VERTICAL_SCROLLING) {
560
- const J = I.page - 1, ee = C, ie = J % ee, ae = Math.floor(J / ee);
561
- F = ze(f, ae), $ = ze(d, ie);
559
+ if (a === ne.VERTICAL_SCROLLING) {
560
+ const J = I.page - 1, ee = C, ie = J % ee, se = Math.floor(J / ee);
561
+ F = ze(f, se), $ = ze(d, ie);
562
562
  }
563
- s === ne.HORIZONTAL_SCROLLING && ($ = d.slice(0, I.page - 1).reduce((J, ee) => J + ee, 0));
563
+ a === ne.HORIZONTAL_SCROLLING && ($ = d.slice(0, I.page - 1).reduce((J, ee) => J + ee, 0));
564
564
  const M = {
565
565
  height: f[I.page - 1],
566
566
  width: d[I.page - 1]
567
- }, j = {
567
+ }, B = {
568
568
  top: M.height / 2,
569
569
  left: M.width / 2
570
570
  }, K = T[I.page], { leftInPage: U, topInPage: re } = ir(
571
571
  M,
572
- j,
572
+ B,
573
573
  I.rect,
574
574
  P,
575
575
  K
@@ -587,7 +587,7 @@ const Er = () => {
587
587
  d,
588
588
  f,
589
589
  I,
590
- s,
590
+ a,
591
591
  u,
592
592
  h,
593
593
  _
@@ -616,13 +616,13 @@ const Er = () => {
616
616
  m.current = !1, i(!0), v([]), g(0), z(c).then((L) => {
617
617
  R.current = L;
618
618
  const F = Object.keys(L).reduce(($, M) => {
619
- const j = ho(
619
+ const B = ho(
620
620
  [n],
621
621
  L[M],
622
622
  Number(M) - 1,
623
623
  t
624
624
  ).map((K, U) => ({ ...K, page: Number(M), pageMatchIdx: U }));
625
- return [...$, ...j];
625
+ return [...$, ...B];
626
626
  }, []);
627
627
  v(F), g(F.length ? 1 : 0);
628
628
  }).catch(() => {
@@ -659,7 +659,7 @@ const Er = () => {
659
659
  currentMatchElement: null,
660
660
  setCurrentMatchElement: (t) => {
661
661
  }
662
- }), Zs = ({
662
+ }), Za = ({
663
663
  children: t,
664
664
  initialSearch: e
665
665
  }) => {
@@ -676,7 +676,7 @@ const Er = () => {
676
676
  currentMatchElement: v,
677
677
  setCurrentMatchElement: b
678
678
  } = Or(n, e);
679
- return /* @__PURE__ */ a(
679
+ return /* @__PURE__ */ s(
680
680
  bn.Provider,
681
681
  {
682
682
  value: {
@@ -697,10 +697,10 @@ const Er = () => {
697
697
  children: t
698
698
  }
699
699
  );
700
- }, Pt = () => $e(bn), Tn = He(null), Xs = ({ children: t }) => {
700
+ }, Pt = () => $e(bn), Tn = He(null), Xa = ({ children: t }) => {
701
701
  const e = k(!1), [n, r] = q([]), o = E((d) => {
702
702
  r((f) => [...f, { id: d.page.pageNumber.toString(), data: d, priority: 0 }]);
703
- }, []), i = W(() => new _o(o), [o]), { focusedPage: c } = le(), l = E((d) => (e.current = !0, bo(
703
+ }, []), i = W(() => new _o(o), [o]), { focusedPage: c } = de(), l = E((d) => (e.current = !0, bo(
704
704
  d.data.page,
705
705
  d.data.canvasElem,
706
706
  d.data.options
@@ -721,23 +721,24 @@ const Er = () => {
721
721
  }) : (e.current = !1, r(i.peekAll()));
722
722
  };
723
723
  d();
724
- }, [i, l, n]), /* @__PURE__ */ a(Tn.Provider, { value: i, children: t });
724
+ }, [i, l, n]), /* @__PURE__ */ s(Tn.Provider, { value: i, children: t });
725
725
  }, Cn = () => {
726
726
  const t = $e(Tn);
727
727
  if (!t)
728
728
  throw new Error("RenderQueue not found");
729
729
  return t;
730
- }, de = {
731
- "rp-pages": "_rp-pages_1i1lj_1",
732
- "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_1i1lj_6",
733
- "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1i1lj_11",
734
- "rp-pages-container": "_rp-pages-container_1i1lj_15",
735
- "rp-viewer": "_rp-viewer_1i1lj_57",
736
- "rp-cursor-grab": "_rp-cursor-grab_1i1lj_62",
737
- "rp-cursor-grabbing": "_rp-cursor-grabbing_1i1lj_70",
738
- "rp-loader": "_rp-loader_1i1lj_78",
739
- "rp-not-supported": "_rp-not-supported_1i1lj_86"
740
- }, st = {
730
+ }, ae = {
731
+ "rp-pages": "_rp-pages_s7sew_1",
732
+ "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_s7sew_6",
733
+ "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_s7sew_11",
734
+ "rp-pages-container": "_rp-pages-container_s7sew_15",
735
+ "rp-viewer": "_rp-viewer_s7sew_57",
736
+ "rp-cursor-grab": "_rp-cursor-grab_s7sew_62",
737
+ "rp-cursor-grabbing": "_rp-cursor-grabbing_s7sew_70",
738
+ "rp-loader": "_rp-loader_s7sew_78",
739
+ "rp-not-supported": "_rp-not-supported_s7sew_86",
740
+ "rp-not-supported-content": "_rp-not-supported-content_s7sew_102"
741
+ }, at = {
741
742
  "rp-page-wrapper": "_rp-page-wrapper_14ohm_1",
742
743
  "rp-page": "_rp-page_14ohm_1",
743
744
  "rp-loader-wrapper": "_rp-loader-wrapper_14ohm_15"
@@ -769,7 +770,7 @@ const Er = () => {
769
770
  return () => {
770
771
  f.removeQueue(m.current);
771
772
  };
772
- }, [i, e, c, d, r, n, f]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
773
+ }, [i, e, c, d, r, n, f]), /* @__PURE__ */ s("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
773
774
  }, Ar = "_selecting_1uik2_10", zr = "_markedContent_1uik2_33", me = {
774
775
  "rp-text-layer": "_rp-text-layer_1uik2_1",
775
776
  selecting: Ar,
@@ -779,8 +780,8 @@ const Er = () => {
779
780
  const { pageNumber: e } = t, { pages: n } = oe(), r = k(null), { matches: o, currentMatch: i, setCurrentMatchElement: c } = Pt(), [l, d] = q(
780
781
  []
781
782
  ), f = k(), m = k(), P = k([]), p = W(() => o.filter((h) => h.pageIndex === e - 1), [o, e]), v = E(
782
- (h, u, s = !1) => {
783
- if (s && fo(h, u), !p.length) {
783
+ (h, u, a = !1) => {
784
+ if (a && fo(h, u), !p.length) {
784
785
  P.current = [], d([]);
785
786
  return;
786
787
  }
@@ -793,7 +794,7 @@ const Er = () => {
793
794
  if (b.current)
794
795
  return;
795
796
  b.current = new AbortController();
796
- const { signal: u } = b.current, s = () => {
797
+ const { signal: u } = b.current, a = () => {
797
798
  T().forEach((w) => {
798
799
  const S = w.querySelector(".endOfContent");
799
800
  S && (w.appendChild(S), S.style.width = "", S.style.height = "", w.classList.remove(me.selecting));
@@ -808,19 +809,19 @@ const Er = () => {
808
809
  ), document.addEventListener(
809
810
  "pointerup",
810
811
  () => {
811
- C.current = !1, s();
812
+ C.current = !1, a();
812
813
  },
813
814
  { signal: u }
814
815
  ), window.addEventListener(
815
816
  "blur",
816
817
  () => {
817
- C.current = !1, s();
818
+ C.current = !1, a();
818
819
  },
819
820
  { signal: u }
820
821
  ), document.addEventListener(
821
822
  "keyup",
822
823
  () => {
823
- C.current || s();
824
+ C.current || a();
824
825
  },
825
826
  { signal: u }
826
827
  );
@@ -833,7 +834,7 @@ const Er = () => {
833
834
  if (!w)
834
835
  return;
835
836
  if (w.rangeCount === 0) {
836
- s();
837
+ a();
837
838
  return;
838
839
  }
839
840
  const S = /* @__PURE__ */ new Set();
@@ -871,31 +872,31 @@ const Er = () => {
871
872
  r.current && r.current.classList.remove(me.selecting);
872
873
  }, []);
873
874
  return D(() => {
874
- if (P.current.forEach((s) => {
875
- s.classList.remove("selected");
875
+ if (P.current.forEach((a) => {
876
+ a.classList.remove("selected");
876
877
  }), !l.length || !i || i.pageIndex !== e - 1)
877
878
  return;
878
879
  const h = p.findIndex(
879
- (s) => JSON.stringify(s) === JSON.stringify(i)
880
+ (a) => JSON.stringify(a) === JSON.stringify(i)
880
881
  );
881
882
  if (h === -1)
882
883
  return;
883
- const u = l.filter((s) => s.index === h);
884
- u.length && (P.current = u.map((s) => s.element), c(u[0].element), u.forEach((s) => {
885
- s.element.classList.add("selected");
884
+ const u = l.filter((a) => a.index === h);
885
+ u.length && (P.current = u.map((a) => a.element), c(u[0].element), u.forEach((a) => {
886
+ a.element.classList.add("selected");
886
887
  }));
887
888
  }, [i, l, p]), D(() => {
888
889
  const h = n.get(e);
889
890
  if (!h || !r.current)
890
891
  return;
891
892
  const u = r.current;
892
- return f.current && f.current.cancel(), h.page.getTextContent().then((s) => {
893
+ return f.current && f.current.cancel(), h.page.getTextContent().then((a) => {
893
894
  const _ = h.page.getViewport({ scale: 1 });
894
895
  return f.current = new ko.TextLayer({
895
896
  viewport: _,
896
- textContentSource: s,
897
+ textContentSource: a,
897
898
  container: u
898
- }), m.current = s, u && (u.innerText = ""), f.current.render();
899
+ }), m.current = a, u && (u.innerText = ""), f.current.render();
899
900
  }).then(() => {
900
901
  var S, R;
901
902
  [].slice.call(u.children).forEach((I) => {
@@ -907,17 +908,17 @@ const Er = () => {
907
908
  w.className = "endOfContent", (R = r.current) == null || R.appendChild(w);
908
909
  }).catch(() => {
909
910
  }), () => {
910
- var s;
911
- (s = f.current) == null || s.cancel();
911
+ var a;
912
+ (a = f.current) == null || a.cancel();
912
913
  };
913
914
  }, [n, e]), D(() => {
914
- var s;
915
+ var a;
915
916
  [].slice.call(r.current.children).forEach((_) => {
916
917
  _.classList.add(me["rp-text-layer-text"]);
917
918
  });
918
- const u = (s = f.current) == null ? void 0 : s.textDivs;
919
+ const u = (a = f.current) == null ? void 0 : a.textDivs;
919
920
  u && m.current && v(m.current, u, !0);
920
- }, [v]), /* @__PURE__ */ a(
921
+ }, [v]), /* @__PURE__ */ s(
921
922
  "div",
922
923
  {
923
924
  "data-rp-text-layer": !0,
@@ -933,7 +934,7 @@ const Er = () => {
933
934
  };
934
935
  let kr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
935
936
  const Wr = (t) => {
936
- const { pageNumber: e } = t, n = k(null), { pages: r, pdf: o } = oe(), i = k(), [c, l] = q(), { setFocusedPage: d, goToPage: f } = le(), { scrollMode: m } = Ee(), { print: P } = tt(), { download: p } = $n(), v = W(() => r.get(e), [r, e]), b = W(() => v == null ? void 0 : v.page.getViewport(), [v]);
937
+ const { pageNumber: e } = t, n = k(null), { pages: r, pdf: o } = oe(), i = k(), [c, l] = q(), { setFocusedPage: d, goToPage: f } = de(), { scrollMode: m } = Ee(), { print: P } = tt(), { download: p } = $n(), v = W(() => r.get(e), [r, e]), b = W(() => v == null ? void 0 : v.page.getViewport(), [v]);
937
938
  D(() => {
938
939
  i.current && (i.current.div.replaceChildren(), i.current = void 0);
939
940
  }, [o]), D(() => {
@@ -962,13 +963,13 @@ const Wr = (t) => {
962
963
  }
963
964
  const y = /* @__PURE__ */ new Map([]);
964
965
  for (const u of c) {
965
- const { annotationType: s } = u;
966
- switch (s) {
966
+ const { annotationType: a } = u;
967
+ switch (a) {
967
968
  case Nt.Link:
968
- Bo(u);
969
+ jo(u);
969
970
  break;
970
971
  case Nt.Widget:
971
- jo(u, T, y);
972
+ Bo(u, T, y);
972
973
  break;
973
974
  }
974
975
  }
@@ -984,14 +985,14 @@ const Wr = (t) => {
984
985
  page: v.page,
985
986
  viewport: T.clone({ dontFlip: !0 })
986
987
  }), n.current && Ft(n.current, C);
987
- const u = await (o == null ? void 0 : o.hasJSActions()), s = await (o == null ? void 0 : o.getFieldObjects());
988
+ const u = await (o == null ? void 0 : o.hasJSActions()), a = await (o == null ? void 0 : o.getFieldObjects());
988
989
  if (g.signal.aborted)
989
990
  throw "abort";
990
991
  return (_ = i.current) == null ? void 0 : _.render({
991
992
  annotations: c,
992
993
  annotationStorage: o == null ? void 0 : o.annotationStorage,
993
994
  hasJSActions: u,
994
- fieldObjects: s,
995
+ fieldObjects: a,
995
996
  div: n.current,
996
997
  viewport: T.clone({ dontFlip: !0 }),
997
998
  page: v.page,
@@ -1009,7 +1010,7 @@ const Wr = (t) => {
1009
1010
  }), () => {
1010
1011
  g.abort("clear"), n.current && Ft(n.current, C);
1011
1012
  };
1012
- }, [o, c, C]), /* @__PURE__ */ a(
1013
+ }, [o, c, C]), /* @__PURE__ */ s(
1013
1014
  "div",
1014
1015
  {
1015
1016
  "data-rp": `page-${e}-annotationLayer`,
@@ -1044,15 +1045,15 @@ const Wr = (t) => {
1044
1045
  if (!g)
1045
1046
  return;
1046
1047
  const u = `[data-rp="page-${h}-textLayer"]`;
1047
- return new Promise((s) => {
1048
+ return new Promise((a) => {
1048
1049
  const _ = g.querySelector(u);
1049
1050
  if (_) {
1050
- s(_);
1051
+ a(_);
1051
1052
  return;
1052
1053
  }
1053
1054
  new MutationObserver((S, R) => {
1054
1055
  const I = g.querySelector(u);
1055
- I && (s(I), R.disconnect());
1056
+ I && (a(I), R.disconnect());
1056
1057
  }).observe(g, { childList: !0, subtree: !0 });
1057
1058
  });
1058
1059
  }
@@ -1073,12 +1074,12 @@ const Wr = (t) => {
1073
1074
  }).observe(g, { childList: !0, subtree: !0 });
1074
1075
  });
1075
1076
  }
1076
- const C = (g, h, u, s) => {
1077
- var j;
1077
+ const C = (g, h, u, a) => {
1078
+ var B;
1078
1079
  const _ = document.createRange(), w = u.firstChild;
1079
1080
  if (!w || w.nodeType !== Node.TEXT_NODE)
1080
1081
  return null;
1081
- const S = ((j = w.textContent) == null ? void 0 : j.length) ?? 0, R = s[0].charIdxInSpan, I = s.length === 1 ? R : s[s.length - 1].charIdxInSpan;
1082
+ const S = ((B = w.textContent) == null ? void 0 : B.length) ?? 0, R = a[0].charIdxInSpan, I = a.length === 1 ? R : a[a.length - 1].charIdxInSpan;
1082
1083
  if (R > S || I + 1 > S)
1083
1084
  return null;
1084
1085
  _.setStart(w, R), _.setEnd(w, I + 1);
@@ -1099,9 +1100,9 @@ const Wr = (t) => {
1099
1100
  const u = await v(d, g);
1100
1101
  if (!u)
1101
1102
  return;
1102
- const s = await b(u);
1103
- if (s.length) {
1104
- const _ = s.map((S) => S.tagName === "BR" ? " " : S.textContent).reduce(
1103
+ const a = await b(u);
1104
+ if (a.length) {
1105
+ const _ = a.map((S) => S.tagName === "BR" ? " " : S.textContent).reduce(
1105
1106
  (S, R, I) => S.concat(
1106
1107
  R.split("").map((x, N) => ({
1107
1108
  char: x,
@@ -1116,15 +1117,15 @@ const Wr = (t) => {
1116
1117
  spanIdx: 0
1117
1118
  }
1118
1119
  ]
1119
- ).slice(1), w = y(u, h, s, _);
1120
+ ).slice(1), w = y(u, h, a, _);
1120
1121
  P(w);
1121
1122
  }
1122
1123
  }
1123
- const y = (g, h, u, s) => {
1124
+ const y = (g, h, u, a) => {
1124
1125
  const _ = h.length;
1125
- if (!s.length || !_)
1126
+ if (!a.length || !_)
1126
1127
  return [];
1127
- const w = [], S = s.map((R) => R.char).join("");
1128
+ const w = [], S = a.map((R) => R.char).join("");
1128
1129
  return p.forEach((R) => {
1129
1130
  const { keyword: I, regExp: x, wholeWords: N, color: A } = R, z = I;
1130
1131
  if (!z.trim())
@@ -1140,15 +1141,15 @@ const Wr = (t) => {
1140
1141
  });
1141
1142
  const $ = F.map((M) => ({
1142
1143
  keyword: M.keyword,
1143
- indexes: s.slice(M.startIndex, M.endIndex),
1144
+ indexes: a.slice(M.startIndex, M.endIndex),
1144
1145
  color: A
1145
1146
  }));
1146
1147
  for (const M of $) {
1147
- const j = M.indexes.reduce(
1148
+ const B = M.indexes.reduce(
1148
1149
  (K, U) => (K[U.spanIdx] = (K[U.spanIdx] || []).concat([U]), K),
1149
1150
  {}
1150
1151
  );
1151
- for (const K of Object.values(j))
1152
+ for (const K of Object.values(B))
1152
1153
  if (K.length !== 1 || K[0].char.trim() !== "") {
1153
1154
  const U = K, re = u[U[0].spanIdx], G = C(
1154
1155
  g,
@@ -1175,7 +1176,7 @@ const Wr = (t) => {
1175
1176
  console.error(h);
1176
1177
  }
1177
1178
  })();
1178
- }, [c, i, t, n, e]), /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, h) => /* @__PURE__ */ a(
1179
+ }, [c, i, t, n, e]), /* @__PURE__ */ s(pe, { children: /* @__PURE__ */ s("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, h) => /* @__PURE__ */ s(
1179
1180
  "div",
1180
1181
  {
1181
1182
  className: Hr["rp-text-highlight"],
@@ -1220,7 +1221,7 @@ const Wr = (t) => {
1220
1221
  }, []), g = E(() => {
1221
1222
  P(!1);
1222
1223
  }, []);
1223
- return /* @__PURE__ */ a(
1224
+ return /* @__PURE__ */ s(
1224
1225
  "div",
1225
1226
  {
1226
1227
  ref: p,
@@ -1233,7 +1234,7 @@ const Wr = (t) => {
1233
1234
  "--rp-page-rotate-translate": `${T}`,
1234
1235
  "--scale-factor": d
1235
1236
  },
1236
- className: st["rp-page-wrapper"],
1237
+ className: at["rp-page-wrapper"],
1237
1238
  children: /* @__PURE__ */ H(
1238
1239
  "div",
1239
1240
  {
@@ -1241,14 +1242,14 @@ const Wr = (t) => {
1241
1242
  width: `${v.width}px`,
1242
1243
  height: `${v.height}px`
1243
1244
  },
1244
- className: st["rp-page"],
1245
+ className: at["rp-page"],
1245
1246
  children: [
1246
- /* @__PURE__ */ a(Dr, { onLoading: y, onLoaded: g, pageNumber: n }),
1247
- m && /* @__PURE__ */ a("div", { className: st["rp-loader-wrapper"], children: /* @__PURE__ */ a(_t, {}) }),
1248
- /* @__PURE__ */ a(Yo, { pageNumber: n }),
1249
- l && /* @__PURE__ */ a(Fr, { pageNumber: n }),
1250
- /* @__PURE__ */ a($r, { pageNumber: n, viewport: v }),
1251
- /* @__PURE__ */ a(Wr, { pageNumber: n })
1247
+ /* @__PURE__ */ s(Dr, { onLoading: y, onLoaded: g, pageNumber: n }),
1248
+ m && /* @__PURE__ */ s("div", { className: at["rp-loader-wrapper"], children: /* @__PURE__ */ s(_t, {}) }),
1249
+ /* @__PURE__ */ s(Yo, { pageNumber: n }),
1250
+ l && /* @__PURE__ */ s(Fr, { pageNumber: n }),
1251
+ /* @__PURE__ */ s($r, { pageNumber: n, viewport: v }),
1252
+ /* @__PURE__ */ s(Wr, { pageNumber: n })
1252
1253
  ]
1253
1254
  }
1254
1255
  )
@@ -1322,7 +1323,7 @@ var Vr = typeof performance == "object" && typeof performance.now == "function",
1322
1323
  function qt(t) {
1323
1324
  cancelAnimationFrame(t.id);
1324
1325
  }
1325
- function jr(t, e) {
1326
+ function Br(t, e) {
1326
1327
  var n = $t();
1327
1328
  function r() {
1328
1329
  $t() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
@@ -1333,7 +1334,7 @@ function jr(t, e) {
1333
1334
  return o;
1334
1335
  }
1335
1336
  var lt = -1;
1336
- function Br(t) {
1337
+ function jr(t) {
1337
1338
  if (t === void 0 && (t = !1), lt === -1 || t) {
1338
1339
  var e = document.createElement("div"), n = e.style;
1339
1340
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), lt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1355,24 +1356,24 @@ var Kr = 150, Zr = function(e) {
1355
1356
  e.data;
1356
1357
  var r = e.rowIndex;
1357
1358
  return r + ":" + n;
1358
- }, je = null, Be = null, Ke = null;
1359
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (je = /* @__PURE__ */ new WeakSet(), Be = /* @__PURE__ */ new WeakSet(), Ke = /* @__PURE__ */ new WeakSet());
1359
+ }, Be = null, je = null, Ke = null;
1360
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Be = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet(), Ke = /* @__PURE__ */ new WeakSet());
1360
1361
  function Xr(t) {
1361
1362
  var e, n = t.getColumnOffset, r = t.getColumnStartIndexForOffset, o = t.getColumnStopIndexForStartIndex, i = t.getColumnWidth, c = t.getEstimatedTotalHeight, l = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, P = t.getRowOffset, p = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, b = t.initInstanceProps, C = t.shouldResetStyleCacheOnItemSizeChange, T = t.validateProps;
1362
1363
  return e = /* @__PURE__ */ function(y) {
1363
1364
  qr(g, y);
1364
1365
  function g(u) {
1365
- var s;
1366
- return s = y.call(this, u) || this, s._instanceProps = b(s.props, kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1367
- instance: kt(s),
1366
+ var a;
1367
+ return a = y.call(this, u) || this, a._instanceProps = b(a.props, kt(a)), a._resetIsScrollingTimeoutId = null, a._outerRef = void 0, a.state = {
1368
+ instance: kt(a),
1368
1369
  isScrolling: !1,
1369
1370
  horizontalScrollDirection: "forward",
1370
- scrollLeft: typeof s.props.initialScrollLeft == "number" ? s.props.initialScrollLeft : 0,
1371
- scrollTop: typeof s.props.initialScrollTop == "number" ? s.props.initialScrollTop : 0,
1371
+ scrollLeft: typeof a.props.initialScrollLeft == "number" ? a.props.initialScrollLeft : 0,
1372
+ scrollTop: typeof a.props.initialScrollTop == "number" ? a.props.initialScrollTop : 0,
1372
1373
  scrollUpdateWasRequested: !1,
1373
1374
  verticalScrollDirection: "forward"
1374
- }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ct(function(_, w, S, R, I, x, N, A) {
1375
- return s.props.onItemsRendered({
1375
+ }, a._callOnItemsRendered = void 0, a._callOnItemsRendered = ct(function(_, w, S, R, I, x, N, A) {
1376
+ return a.props.onItemsRendered({
1376
1377
  overscanColumnStartIndex: _,
1377
1378
  overscanColumnStopIndex: w,
1378
1379
  overscanRowStartIndex: S,
@@ -1382,38 +1383,38 @@ function Xr(t) {
1382
1383
  visibleRowStartIndex: N,
1383
1384
  visibleRowStopIndex: A
1384
1385
  });
1385
- }), s._callOnScroll = void 0, s._callOnScroll = ct(function(_, w, S, R, I) {
1386
- return s.props.onScroll({
1386
+ }), a._callOnScroll = void 0, a._callOnScroll = ct(function(_, w, S, R, I) {
1387
+ return a.props.onScroll({
1387
1388
  horizontalScrollDirection: S,
1388
1389
  scrollLeft: _,
1389
1390
  scrollTop: w,
1390
1391
  verticalScrollDirection: R,
1391
1392
  scrollUpdateWasRequested: I
1392
1393
  });
1393
- }), s._getItemStyle = void 0, s._getItemStyle = function(_, w) {
1394
- var S = s.props, R = S.columnWidth, I = S.direction, x = S.rowHeight, N = s._getItemStyleCache(C && R, C && I, C && x), A = _ + ":" + w, z;
1394
+ }), a._getItemStyle = void 0, a._getItemStyle = function(_, w) {
1395
+ var S = a.props, R = S.columnWidth, I = S.direction, x = S.rowHeight, N = a._getItemStyleCache(C && R, C && I, C && x), A = _ + ":" + w, z;
1395
1396
  if (N.hasOwnProperty(A))
1396
1397
  z = N[A];
1397
1398
  else {
1398
- var L = n(s.props, w, s._instanceProps), O = I === "rtl";
1399
+ var L = n(a.props, w, a._instanceProps), O = I === "rtl";
1399
1400
  N[A] = z = {
1400
1401
  position: "absolute",
1401
1402
  left: O ? void 0 : L,
1402
1403
  right: O ? L : void 0,
1403
- top: P(s.props, _, s._instanceProps),
1404
- height: m(s.props, _, s._instanceProps),
1405
- width: i(s.props, w, s._instanceProps)
1404
+ top: P(a.props, _, a._instanceProps),
1405
+ height: m(a.props, _, a._instanceProps),
1406
+ width: i(a.props, w, a._instanceProps)
1406
1407
  };
1407
1408
  }
1408
1409
  return z;
1409
- }, s._getItemStyleCache = void 0, s._getItemStyleCache = ct(function(_, w, S) {
1410
+ }, a._getItemStyleCache = void 0, a._getItemStyleCache = ct(function(_, w, S) {
1410
1411
  return {};
1411
- }), s._onScroll = function(_) {
1412
+ }), a._onScroll = function(_) {
1412
1413
  var w = _.currentTarget, S = w.clientHeight, R = w.clientWidth, I = w.scrollLeft, x = w.scrollTop, N = w.scrollHeight, A = w.scrollWidth;
1413
- s.setState(function(z) {
1414
+ a.setState(function(z) {
1414
1415
  if (z.scrollLeft === I && z.scrollTop === x)
1415
1416
  return null;
1416
- var L = s.props.direction, O = I;
1417
+ var L = a.props.direction, O = I;
1417
1418
  if (L === "rtl")
1418
1419
  switch (Gt()) {
1419
1420
  case "negative":
@@ -1433,26 +1434,26 @@ function Xr(t) {
1433
1434
  verticalScrollDirection: z.scrollTop < x ? "forward" : "backward",
1434
1435
  scrollUpdateWasRequested: !1
1435
1436
  };
1436
- }, s._resetIsScrollingDebounced);
1437
- }, s._outerRefSetter = function(_) {
1438
- var w = s.props.outerRef;
1439
- s._outerRef = _, typeof w == "function" ? w(_) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = _);
1440
- }, s._resetIsScrollingDebounced = function() {
1441
- s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = jr(s._resetIsScrolling, Kr);
1442
- }, s._resetIsScrolling = function() {
1443
- s._resetIsScrollingTimeoutId = null, s.setState({
1437
+ }, a._resetIsScrollingDebounced);
1438
+ }, a._outerRefSetter = function(_) {
1439
+ var w = a.props.outerRef;
1440
+ a._outerRef = _, typeof w == "function" ? w(_) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = _);
1441
+ }, a._resetIsScrollingDebounced = function() {
1442
+ a._resetIsScrollingTimeoutId !== null && qt(a._resetIsScrollingTimeoutId), a._resetIsScrollingTimeoutId = Br(a._resetIsScrolling, Kr);
1443
+ }, a._resetIsScrolling = function() {
1444
+ a._resetIsScrollingTimeoutId = null, a.setState({
1444
1445
  isScrolling: !1
1445
1446
  }, function() {
1446
- s._getItemStyleCache(-1);
1447
+ a._getItemStyleCache(-1);
1447
1448
  });
1448
- }, s;
1449
+ }, a;
1449
1450
  }
1450
- g.getDerivedStateFromProps = function(s, _) {
1451
- return Qr(s, _), T(s), null;
1451
+ g.getDerivedStateFromProps = function(a, _) {
1452
+ return Qr(a, _), T(a), null;
1452
1453
  };
1453
1454
  var h = g.prototype;
1454
- return h.scrollTo = function(s) {
1455
- var _ = s.scrollLeft, w = s.scrollTop;
1455
+ return h.scrollTo = function(a) {
1456
+ var _ = a.scrollLeft, w = a.scrollTop;
1456
1457
  _ !== void 0 && (_ = Math.max(0, _)), w !== void 0 && (w = Math.max(0, w)), this.setState(function(S) {
1457
1458
  return _ === void 0 && (_ = S.scrollLeft), w === void 0 && (w = S.scrollTop), S.scrollLeft === _ && S.scrollTop === w ? null : {
1458
1459
  horizontalScrollDirection: S.scrollLeft < _ ? "forward" : "backward",
@@ -1462,26 +1463,26 @@ function Xr(t) {
1462
1463
  verticalScrollDirection: S.scrollTop < w ? "forward" : "backward"
1463
1464
  };
1464
1465
  }, this._resetIsScrollingDebounced);
1465
- }, h.scrollToItem = function(s) {
1466
- var _ = s.align, w = _ === void 0 ? "auto" : _, S = s.columnIndex, R = s.rowIndex, I = this.props, x = I.columnCount, N = I.height, A = I.rowCount, z = I.width, L = this.state, O = L.scrollLeft, F = L.scrollTop, $ = Br();
1466
+ }, h.scrollToItem = function(a) {
1467
+ var _ = a.align, w = _ === void 0 ? "auto" : _, S = a.columnIndex, R = a.rowIndex, I = this.props, x = I.columnCount, N = I.height, A = I.rowCount, z = I.width, L = this.state, O = L.scrollLeft, F = L.scrollTop, $ = jr();
1467
1468
  S !== void 0 && (S = Math.max(0, Math.min(S, x - 1))), R !== void 0 && (R = Math.max(0, Math.min(R, A - 1)));
1468
- var M = c(this.props, this._instanceProps), j = l(this.props, this._instanceProps), K = j > z ? $ : 0, U = M > N ? $ : 0;
1469
+ var M = c(this.props, this._instanceProps), B = l(this.props, this._instanceProps), K = B > z ? $ : 0, U = M > N ? $ : 0;
1469
1470
  this.scrollTo({
1470
1471
  scrollLeft: S !== void 0 ? d(this.props, S, w, O, this._instanceProps, U) : O,
1471
1472
  scrollTop: R !== void 0 ? f(this.props, R, w, F, this._instanceProps, K) : F
1472
1473
  });
1473
1474
  }, h.componentDidMount = function() {
1474
- var s = this.props, _ = s.initialScrollLeft, w = s.initialScrollTop;
1475
+ var a = this.props, _ = a.initialScrollLeft, w = a.initialScrollTop;
1475
1476
  if (this._outerRef != null) {
1476
1477
  var S = this._outerRef;
1477
1478
  typeof _ == "number" && (S.scrollLeft = _), typeof w == "number" && (S.scrollTop = w);
1478
1479
  }
1479
1480
  this._callPropsCallbacks();
1480
1481
  }, h.componentDidUpdate = function() {
1481
- var s = this.props.direction, _ = this.state, w = _.scrollLeft, S = _.scrollTop, R = _.scrollUpdateWasRequested;
1482
+ var a = this.props.direction, _ = this.state, w = _.scrollLeft, S = _.scrollTop, R = _.scrollUpdateWasRequested;
1482
1483
  if (R && this._outerRef != null) {
1483
1484
  var I = this._outerRef;
1484
- if (s === "rtl")
1485
+ if (a === "rtl")
1485
1486
  switch (Gt()) {
1486
1487
  case "negative":
1487
1488
  I.scrollLeft = -w;
@@ -1502,11 +1503,11 @@ function Xr(t) {
1502
1503
  }, h.componentWillUnmount = function() {
1503
1504
  this._resetIsScrollingTimeoutId !== null && qt(this._resetIsScrollingTimeoutId);
1504
1505
  }, h.render = function() {
1505
- var s = this.props, _ = s.children, w = s.className, S = s.columnCount, R = s.direction, I = s.height, x = s.innerRef, N = s.innerElementType, A = s.innerTagName, z = s.itemData, L = s.itemKey, O = L === void 0 ? Zr : L, F = s.outerElementType, $ = s.outerTagName, M = s.rowCount, j = s.style, K = s.useIsScrolling, U = s.width, re = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], Y = G[1], J = this._getVerticalRangeToRender(), ee = J[0], ie = J[1], ae = [];
1506
+ var a = this.props, _ = a.children, w = a.className, S = a.columnCount, R = a.direction, I = a.height, x = a.innerRef, N = a.innerElementType, A = a.innerTagName, z = a.itemData, L = a.itemKey, O = L === void 0 ? Zr : L, F = a.outerElementType, $ = a.outerTagName, M = a.rowCount, B = a.style, K = a.useIsScrolling, U = a.width, re = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], Y = G[1], J = this._getVerticalRangeToRender(), ee = J[0], ie = J[1], se = [];
1506
1507
  if (S > 0 && M)
1507
1508
  for (var Pe = ee; Pe <= ie; Pe++)
1508
1509
  for (var fe = Z; fe <= Y; fe++)
1509
- ae.push(Ve(_, {
1510
+ se.push(Ve(_, {
1510
1511
  columnIndex: fe,
1511
1512
  data: z,
1512
1513
  isScrolling: K ? re : void 0,
@@ -1531,9 +1532,9 @@ function Xr(t) {
1531
1532
  WebkitOverflowScrolling: "touch",
1532
1533
  willChange: "transform",
1533
1534
  direction: R
1534
- }, j)
1535
+ }, B)
1535
1536
  }, Ve(N || A || "div", {
1536
- children: ae,
1537
+ children: se,
1537
1538
  ref: x,
1538
1539
  style: {
1539
1540
  height: nt,
@@ -1542,23 +1543,23 @@ function Xr(t) {
1542
1543
  }
1543
1544
  }));
1544
1545
  }, h._callPropsCallbacks = function() {
1545
- var s = this.props, _ = s.columnCount, w = s.onItemsRendered, S = s.onScroll, R = s.rowCount;
1546
+ var a = this.props, _ = a.columnCount, w = a.onItemsRendered, S = a.onScroll, R = a.rowCount;
1546
1547
  if (typeof w == "function" && _ > 0 && R > 0) {
1547
1548
  var I = this._getHorizontalRangeToRender(), x = I[0], N = I[1], A = I[2], z = I[3], L = this._getVerticalRangeToRender(), O = L[0], F = L[1], $ = L[2], M = L[3];
1548
1549
  this._callOnItemsRendered(x, N, O, F, A, z, $, M);
1549
1550
  }
1550
1551
  if (typeof S == "function") {
1551
- var j = this.state, K = j.horizontalScrollDirection, U = j.scrollLeft, re = j.scrollTop, G = j.scrollUpdateWasRequested, Z = j.verticalScrollDirection;
1552
+ var B = this.state, K = B.horizontalScrollDirection, U = B.scrollLeft, re = B.scrollTop, G = B.scrollUpdateWasRequested, Z = B.verticalScrollDirection;
1552
1553
  this._callOnScroll(U, re, K, Z, G);
1553
1554
  }
1554
1555
  }, h._getHorizontalRangeToRender = function() {
1555
- var s = this.props, _ = s.columnCount, w = s.overscanColumnCount, S = s.overscanColumnsCount, R = s.overscanCount, I = s.rowCount, x = this.state, N = x.horizontalScrollDirection, A = x.isScrolling, z = x.scrollLeft, L = w || S || R || 1;
1556
+ var a = this.props, _ = a.columnCount, w = a.overscanColumnCount, S = a.overscanColumnsCount, R = a.overscanCount, I = a.rowCount, x = this.state, N = x.horizontalScrollDirection, A = x.isScrolling, z = x.scrollLeft, L = w || S || R || 1;
1556
1557
  if (_ === 0 || I === 0)
1557
1558
  return [0, 0, 0, 0];
1558
1559
  var O = r(this.props, z, this._instanceProps), F = o(this.props, O, z, this._instanceProps), $ = !A || N === "backward" ? Math.max(1, L) : 1, M = !A || N === "forward" ? Math.max(1, L) : 1;
1559
1560
  return [Math.max(0, O - $), Math.max(0, Math.min(_ - 1, F + M)), O, F];
1560
1561
  }, h._getVerticalRangeToRender = function() {
1561
- var s = this.props, _ = s.columnCount, w = s.overscanCount, S = s.overscanRowCount, R = s.overscanRowsCount, I = s.rowCount, x = this.state, N = x.isScrolling, A = x.verticalScrollDirection, z = x.scrollTop, L = S || R || w || 1;
1562
+ var a = this.props, _ = a.columnCount, w = a.overscanCount, S = a.overscanRowCount, R = a.overscanRowsCount, I = a.rowCount, x = this.state, N = x.isScrolling, A = x.verticalScrollDirection, z = x.scrollTop, L = S || R || w || 1;
1562
1563
  if (_ === 0 || I === 0)
1563
1564
  return [0, 0, 0, 0];
1564
1565
  var O = p(this.props, z, this._instanceProps), F = v(this.props, O, z, this._instanceProps), $ = !N || A === "backward" ? Math.max(1, L) : 1, M = !N || A === "forward" ? Math.max(1, L) : 1;
@@ -1573,7 +1574,7 @@ function Xr(t) {
1573
1574
  var Qr = function(e, n) {
1574
1575
  var r = e.children, o = e.direction, i = e.height, c = e.innerTagName, l = e.outerTagName, d = e.overscanColumnsCount, f = e.overscanCount, m = e.overscanRowsCount, P = e.width, p = n.instance;
1575
1576
  if (process.env.NODE_ENV !== "production") {
1576
- if (typeof f == "number" && je && !je.has(p) && (je.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && Be && !Be.has(p) && (Be.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || l != null) && Ke && !Ke.has(p) && (Ke.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1577
+ if (typeof f == "number" && Be && !Be.has(p) && (Be.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && je && !je.has(p) && (je.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || l != null) && Ke && !Ke.has(p) && (Ke.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1577
1578
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1578
1579
  switch (o) {
1579
1580
  case "ltr":
@@ -1638,7 +1639,7 @@ var Qr = function(e, n) {
1638
1639
  for (var c = e === "column" ? n.columnCount : n.rowCount, l = 1; o < c && ge(e, n, o, r).offset < i; )
1639
1640
  o += l, l *= 2;
1640
1641
  return Sn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
1641
- }, jt = function(e, n, r, o, i, c, l) {
1642
+ }, Bt = function(e, n, r, o, i, c, l) {
1642
1643
  var d = e === "column" ? n.width : n.height, f = ge(e, n, r, c), m = e === "column" ? yn(n, c) : Pn(n, c), P = Math.max(0, Math.min(m - d, f.offset)), p = Math.max(0, f.offset - d + l + f.size);
1643
1644
  switch (o === "smart" && (i >= p - d && i <= P + d ? o = "auto" : o = "center"), o) {
1644
1645
  case "start":
@@ -1669,10 +1670,10 @@ var Qr = function(e, n) {
1669
1670
  getEstimatedTotalHeight: Pn,
1670
1671
  getEstimatedTotalWidth: yn,
1671
1672
  getOffsetForColumnAndAlignment: function(e, n, r, o, i, c) {
1672
- return jt("column", e, n, r, o, i, c);
1673
+ return Bt("column", e, n, r, o, i, c);
1673
1674
  },
1674
1675
  getOffsetForRowAndAlignment: function(e, n, r, o, i, c) {
1675
- return jt("row", e, n, r, o, i, c);
1676
+ return Bt("row", e, n, r, o, i, c);
1676
1677
  },
1677
1678
  getRowOffset: function(e, n, r) {
1678
1679
  return ge("row", e, n, r).offset;
@@ -1724,7 +1725,7 @@ var Qr = function(e, n) {
1724
1725
  }
1725
1726
  });
1726
1727
  process.env.NODE_ENV;
1727
- function Bt(t, e) {
1728
+ function jt(t, e) {
1728
1729
  for (var n in t)
1729
1730
  if (!(n in e))
1730
1731
  return !0;
@@ -1736,7 +1737,7 @@ function Bt(t, e) {
1736
1737
  var ei = ["style"], ti = ["style"];
1737
1738
  function ni(t, e) {
1738
1739
  var n = t.style, r = Ht(t, ei), o = e.style, i = Ht(e, ti);
1739
- return !Bt(n, o) && !Bt(r, i);
1740
+ return !jt(n, o) && !jt(r, i);
1740
1741
  }
1741
1742
  const oi = () => {
1742
1743
  const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { setColumnCount: n } = rn(), { virtualScrollableElementRef: r } = Ye(), o = qe(), i = W(() => o.heights.length, [o.heights]), c = W(() => e === ne.HORIZONTAL_SCROLLING ? i : t === Re.DUAL_PAGE ? 2 : 1, [t, e, e, i, r]), l = W(() => o.widths.reduce((b, C, T) => {
@@ -1772,10 +1773,10 @@ const oi = () => {
1772
1773
  estimatedColumnWidth: p
1773
1774
  };
1774
1775
  };
1775
- let ce;
1776
- typeof window < "u" ? ce = window : typeof self < "u" ? ce = self : ce = global;
1776
+ let le;
1777
+ typeof window < "u" ? le = window : typeof self < "u" ? le = self : le = global;
1777
1778
  let gt = null, vt = null;
1778
- const Kt = 20, dt = ce.clearTimeout, Zt = ce.setTimeout, ut = ce.cancelAnimationFrame || ce.mozCancelAnimationFrame || ce.webkitCancelAnimationFrame, Xt = ce.requestAnimationFrame || ce.mozRequestAnimationFrame || ce.webkitRequestAnimationFrame;
1779
+ const Kt = 20, dt = le.clearTimeout, Zt = le.setTimeout, ut = le.cancelAnimationFrame || le.mozCancelAnimationFrame || le.webkitCancelAnimationFrame, Xt = le.requestAnimationFrame || le.mozRequestAnimationFrame || le.webkitRequestAnimationFrame;
1779
1780
  ut == null || Xt == null ? (gt = dt, vt = function(e) {
1780
1781
  return Zt(e, Kt);
1781
1782
  }) : (gt = function([e, n]) {
@@ -1793,8 +1794,8 @@ function ri(t) {
1793
1794
  const d = typeof document < "u" && document.attachEvent;
1794
1795
  if (!d) {
1795
1796
  c = function(y) {
1796
- const g = y.__resizeTriggers__, h = g.firstElementChild, u = g.lastElementChild, s = h.firstElementChild;
1797
- u.scrollLeft = u.scrollWidth, u.scrollTop = u.scrollHeight, s.style.width = h.offsetWidth + 1 + "px", s.style.height = h.offsetHeight + 1 + "px", h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight;
1797
+ const g = y.__resizeTriggers__, h = g.firstElementChild, u = g.lastElementChild, a = h.firstElementChild;
1798
+ u.scrollLeft = u.scrollWidth, u.scrollTop = u.scrollHeight, a.style.width = h.offsetWidth + 1 + "px", a.style.height = h.offsetHeight + 1 + "px", h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight;
1798
1799
  }, i = function(y) {
1799
1800
  return y.offsetWidth !== y.__resizeLast__.width || y.offsetHeight !== y.__resizeLast__.height;
1800
1801
  }, l = function(y) {
@@ -1802,8 +1803,8 @@ function ri(t) {
1802
1803
  return;
1803
1804
  const g = this;
1804
1805
  c(this), this.__resizeRAF__ && gt(this.__resizeRAF__), this.__resizeRAF__ = vt(function() {
1805
- i(g) && (g.__resizeLast__.width = g.offsetWidth, g.__resizeLast__.height = g.offsetHeight, g.__resizeListeners__.forEach(function(s) {
1806
- s.call(g, y);
1806
+ i(g) && (g.__resizeLast__.width = g.offsetWidth, g.__resizeLast__.height = g.offsetHeight, g.__resizeListeners__.forEach(function(a) {
1807
+ a.call(g, y);
1807
1808
  }));
1808
1809
  });
1809
1810
  };
@@ -1835,7 +1836,7 @@ function ri(t) {
1835
1836
  p.attachEvent("onresize", v);
1836
1837
  else {
1837
1838
  if (!p.__resizeTriggers__) {
1838
- const b = p.ownerDocument, C = ce.getComputedStyle(p);
1839
+ const b = p.ownerDocument, C = le.getComputedStyle(p);
1839
1840
  C && C.position === "static" && (p.style.position = "relative"), f(b), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = b.createElement("div")).className = "resize-triggers";
1840
1841
  const T = b.createElement("div");
1841
1842
  T.className = "expand-trigger", T.appendChild(b.createElement("div"));
@@ -1939,8 +1940,8 @@ class ii extends no {
1939
1940
  }, !g && e(y));
1940
1941
  }
1941
1942
  }
1942
- const ai = nn(({ widths: t, heights: e }) => {
1943
- const { focusedPage: n, totalPages: r } = le(), o = W(() => {
1943
+ const si = nn(({ widths: t, heights: e }) => {
1944
+ const { focusedPage: n, totalPages: r } = de(), o = W(() => {
1944
1945
  const l = [], d = Math.ceil(n / 2) * 2 - 1;
1945
1946
  if (l.push(d), d + 1 <= r) {
1946
1947
  const f = d + 1;
@@ -1964,26 +1965,26 @@ const ai = nn(({ widths: t, heights: e }) => {
1964
1965
  }
1965
1966
  ];
1966
1967
  }, [t, e, o]), c = W(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
1967
- return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ a(yt, { style: i[d], pageNumber: l }, l)) });
1968
- }), si = ({ widths: t, heights: e }) => {
1969
- const { focusedPage: n } = le(), r = W(() => ({
1968
+ return /* @__PURE__ */ s("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ s(yt, { style: i[d], pageNumber: l }, l)) });
1969
+ }), ai = ({ widths: t, heights: e }) => {
1970
+ const { focusedPage: n } = de(), r = W(() => ({
1970
1971
  position: "absolute",
1971
1972
  width: t(n - 1),
1972
1973
  height: e(n - 1)
1973
1974
  }), [t, e, n]), o = W(() => t(n - 1), [t]);
1974
- return /* @__PURE__ */ a(
1975
+ return /* @__PURE__ */ s(
1975
1976
  "div",
1976
1977
  {
1977
1978
  style: {
1978
1979
  width: o,
1979
1980
  position: "relative"
1980
1981
  },
1981
- children: /* @__PURE__ */ a(yt, { style: r, pageNumber: n }, n)
1982
+ children: /* @__PURE__ */ s(yt, { style: r, pageNumber: n }, n)
1982
1983
  }
1983
1984
  );
1984
1985
  }, ci = (t, e, n) => {
1985
- const r = k(), { contentRef: o } = _e(), { heights: i, widths: c } = qe(), { setFocusedPage: l } = le(), [d, f] = q([]), { targetScrollPage: m } = an(), P = bt(d, 0, 500), p = W(() => i.map((b, C) => {
1986
- const T = c[C], y = or(C + 1, t), g = T * y.columnIndex, h = b * y.rowIndex, u = g + T, s = h + b;
1986
+ const r = k(), { contentRef: o } = _e(), { heights: i, widths: c } = qe(), { setFocusedPage: l } = de(), [d, f] = q([]), { targetScrollPage: m } = sn(), P = bt(d, 0, 500), p = W(() => i.map((b, C) => {
1987
+ const T = c[C], y = or(C + 1, t), g = T * y.columnIndex, h = b * y.rowIndex, u = g + T, a = h + b;
1987
1988
  return {
1988
1989
  pageNumber: C + 1,
1989
1990
  ...y,
@@ -1992,7 +1993,7 @@ const ai = nn(({ widths: t, heights: e }) => {
1992
1993
  startX: g,
1993
1994
  startY: h,
1994
1995
  endX: u,
1995
- endY: s
1996
+ endY: a
1996
1997
  };
1997
1998
  }), [i, c, t, e]);
1998
1999
  D(() => {
@@ -2013,7 +2014,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2013
2014
  const h = g.endX >= T.startLeft && g.endY >= T.startTop, u = g.startX <= T.endLeft && g.startY <= T.endTop;
2014
2015
  return h && u;
2015
2016
  }).map((g) => {
2016
- const h = T.startLeft > g.startX ? T.startLeft : g.startX, u = T.startTop > g.startY ? T.startTop : g.startY, s = T.endLeft < g.endX ? T.endLeft : g.endX, _ = T.endTop < g.endY ? T.endTop : g.endY, w = s - h, S = _ - u, I = +(w * S / (g.width * g.height) * 100).toFixed(2);
2017
+ const h = T.startLeft > g.startX ? T.startLeft : g.startX, u = T.startTop > g.startY ? T.startTop : g.startY, a = T.endLeft < g.endX ? T.endLeft : g.endX, _ = T.endTop < g.endY ? T.endTop : g.endY, w = a - h, S = _ - u, I = +(w * S / (g.width * g.height) * 100).toFixed(2);
2017
2018
  return {
2018
2019
  pageNumber: g.pageNumber,
2019
2020
  ratio: I
@@ -2031,13 +2032,13 @@ const ai = nn(({ widths: t, heights: e }) => {
2031
2032
  };
2032
2033
  }, [n, v]);
2033
2034
  }, In = et((t, e) => {
2034
- const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = No(), { darkMode: f } = so();
2035
- return /* @__PURE__ */ a(
2035
+ const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = No(), { darkMode: f } = ao();
2036
+ return /* @__PURE__ */ s(
2036
2037
  "div",
2037
2038
  {
2038
2039
  ref: e,
2039
2040
  ...c,
2040
- className: se(
2041
+ className: ce(
2041
2042
  we["rp-theme-variables"],
2042
2043
  we["rp-container"],
2043
2044
  f ? we["rp-dark-mode"] : "",
@@ -2054,8 +2055,8 @@ const ai = nn(({ widths: t, heights: e }) => {
2054
2055
  );
2055
2056
  }), li = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2056
2057
  const o = rr(e, t, n.columnCount);
2057
- return /* @__PURE__ */ a(yt, { style: r, pageNumber: o }, o);
2058
- }, ni), Qs = () => {
2058
+ return /* @__PURE__ */ s(yt, { style: r, pageNumber: o }, o);
2059
+ }, ni), Qa = () => {
2059
2060
  const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = uo(), { pagesRef: r, setPagesRef: o, setContentRef: i } = _e(), { scrollToPage: c } = mn(), {
2060
2061
  virtualScrollRef: l,
2061
2062
  getVirtualScrollRef: d,
@@ -2065,17 +2066,17 @@ const ai = nn(({ widths: t, heights: e }) => {
2065
2066
  virtualScrollableElementRef: p,
2066
2067
  totalInnerDimensions: v,
2067
2068
  pageScrollElementRef: b
2068
- } = Ye(), C = k(!0), { nextPage: T, prevPage: y, setFocusedPage: g, focusedPage: h } = le(), { scrollMode: u } = Ee(), { viewMode: s } = Fe(), _ = k(null), { loading: w, error: S } = oe(), { passwordRequired: R } = ao(), { LoaderImageComponent: I } = sn(), x = k(
2069
+ } = Ye(), C = k(!0), { nextPage: T, prevPage: y, setFocusedPage: g, focusedPage: h } = de(), { scrollMode: u } = Ee(), { viewMode: a } = Fe(), _ = k(null), { loading: w, error: S } = oe(), { passwordRequired: R } = so(), { LoaderImageComponent: I } = an(), x = k(
2069
2070
  v
2070
2071
  ), N = k({
2071
- viewMode: s,
2072
+ viewMode: a,
2072
2073
  scrollMode: u
2073
2074
  }), A = k(!1), z = k(), { isFullScreen: L } = po(), {
2074
2075
  pageDimension: O,
2075
2076
  rowCount: F,
2076
2077
  rowHeight: $,
2077
2078
  columnCount: M,
2078
- columnWidth: j,
2079
+ columnWidth: B,
2079
2080
  estimatedColumnWidth: K,
2080
2081
  estimatedRowHeight: U
2081
2082
  } = oi(), re = bt(v, 100), G = k();
@@ -2087,12 +2088,12 @@ const ai = nn(({ widths: t, heights: e }) => {
2087
2088
  tr(r);
2088
2089
  const { isPressed: Y } = Jo(), { selectionMode: J } = lo(), { initializeGrabScroll: ee, resetGrabState: ie } = er({
2089
2090
  isPressed: Y
2090
- }), ae = W(() => J === ro.HAND, [J]), Pe = W(() => ({
2091
+ }), se = W(() => J === ro.HAND, [J]), Pe = W(() => ({
2091
2092
  columnCount: M
2092
2093
  }), [M]), fe = E(
2093
2094
  (V) => {
2094
- const B = document.activeElement !== r;
2095
- !L && B || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), y()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), T()));
2095
+ const j = document.activeElement !== r;
2096
+ !L && j || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), y()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), T()));
2096
2097
  },
2097
2098
  [T, y, L, u]
2098
2099
  );
@@ -2101,18 +2102,18 @@ const ai = nn(({ widths: t, heights: e }) => {
2101
2102
  }), [fe]), D(() => {
2102
2103
  if (_.current && (_.current.style.position = "relative"), !!l)
2103
2104
  for (let V = 0; V < F; V++)
2104
- for (let B = 0; B < M; B++)
2105
+ for (let j = 0; j < M; j++)
2105
2106
  l.resetAfterIndices({
2106
- columnIndex: B,
2107
+ columnIndex: j,
2107
2108
  rowIndex: V,
2108
2109
  shouldForceUpdate: !0
2109
2110
  });
2110
2111
  }, [F, M, O, l]);
2111
2112
  const nt = E(
2112
- (V, B) => {
2113
+ (V, j) => {
2113
2114
  if (!p)
2114
2115
  return { scrollTop: 0, scrollLeft: 0 };
2115
- const ye = Z.current.scrollTop > B, Se = Z.current.scrollLeft > V;
2116
+ const ye = Z.current.scrollTop > j, Se = Z.current.scrollLeft > V;
2116
2117
  return ye || Se ? Z.current : {
2117
2118
  scrollTop: p.scrollTop,
2118
2119
  scrollLeft: p.scrollLeft
@@ -2120,20 +2121,20 @@ const ai = nn(({ widths: t, heights: e }) => {
2120
2121
  },
2121
2122
  [p]
2122
2123
  ), Ue = E(
2123
- (V, B) => {
2124
- if (N.current.viewMode !== s || N.current.scrollMode !== u) {
2124
+ (V, j) => {
2125
+ if (N.current.viewMode !== a || N.current.scrollMode !== u) {
2125
2126
  G.current && clearTimeout(G.current), A.current = !0, c(h, "auto"), G.current = setTimeout(() => {
2126
2127
  requestAnimationFrame(() => {
2127
- N.current = { viewMode: s, scrollMode: u };
2128
+ N.current = { viewMode: a, scrollMode: u };
2128
2129
  });
2129
2130
  }, 100);
2130
2131
  return;
2131
2132
  }
2132
2133
  const Se = V.scrollTop, ot = V.scrollLeft;
2133
- if (!B.height || !B.width)
2134
+ if (!j.height || !j.width)
2134
2135
  return;
2135
2136
  A.current = !0;
2136
- const { height: Ie, width: rt } = B, { height: Lt, width: Et } = x.current;
2137
+ const { height: Ie, width: rt } = j, { height: Lt, width: Et } = x.current;
2137
2138
  if (Lt === Ie && Et === rt)
2138
2139
  return;
2139
2140
  const Qn = Se / Lt * Ie, Yn = ot / Et * rt, Jn = Math.round(Math.min(Qn, Ie)) || 0, eo = Math.round(Math.min(Yn, rt)) || 0;
@@ -2145,24 +2146,24 @@ const ai = nn(({ widths: t, heights: e }) => {
2145
2146
  });
2146
2147
  });
2147
2148
  }, 0), x.current = {
2148
- height: B.height,
2149
- width: B.width
2149
+ height: j.height,
2150
+ width: j.width
2150
2151
  };
2151
2152
  },
2152
- [l, s, u, c]
2153
+ [l, a, u, c]
2153
2154
  );
2154
2155
  D(() => {
2155
2156
  clearTimeout(z.current);
2156
2157
  const V = Array.from({ length: F }).reduce(
2157
2158
  (Se, ot, Ie) => Se + $(Ie),
2158
2159
  0
2159
- ), B = Array.from({ length: M }).reduce(
2160
- (Se, ot, Ie) => Se + j(Ie),
2160
+ ), j = Array.from({ length: M }).reduce(
2161
+ (Se, ot, Ie) => Se + B(Ie),
2161
2162
  0
2162
- ), ye = nt(B, V);
2163
- Z.current = ye, Ue(ye, { height: V, width: B }), P({
2163
+ ), ye = nt(j, V);
2164
+ Z.current = ye, Ue(ye, { height: V, width: j }), P({
2164
2165
  height: V,
2165
- width: B
2166
+ width: j
2166
2167
  });
2167
2168
  }, [O, F, M, Ue]);
2168
2169
  const Kn = E(
@@ -2177,17 +2178,17 @@ const ai = nn(({ widths: t, heights: e }) => {
2177
2178
  D(() => () => {
2178
2179
  G.current && clearTimeout(G.current);
2179
2180
  }, []);
2180
- const Zn = W(() => se(de["rp-pages-container"], {
2181
- [de["rp-cursor-grab"]]: ae && !Y,
2182
- [de["rp-cursor-grabbing"]]: ae && Y
2183
- }), [ae, Y]), Xn = E(
2181
+ const Zn = W(() => ce(ae["rp-pages-container"], {
2182
+ [ae["rp-cursor-grab"]]: se && !Y,
2183
+ [ae["rp-cursor-grabbing"]]: se && Y
2184
+ }), [se, Y]), Xn = E(
2184
2185
  (V) => {
2185
- if (ae && V) {
2186
- const B = se(de["rp-pages"]), ye = document.querySelector(`.${B}`);
2186
+ if (se && V) {
2187
+ const j = ce(ae["rp-pages"]), ye = document.querySelector(`.${j}`);
2187
2188
  ee(ye);
2188
2189
  }
2189
2190
  },
2190
- [ae, ee, de]
2191
+ [se, ee, ae]
2191
2192
  );
2192
2193
  return D(() => {
2193
2194
  w && ie();
@@ -2206,22 +2207,22 @@ const ai = nn(({ widths: t, heights: e }) => {
2206
2207
  g,
2207
2208
  re
2208
2209
  ]), /* @__PURE__ */ H(pe, { children: [
2209
- /* @__PURE__ */ a(Eo, { ref: i, children: /* @__PURE__ */ a(
2210
+ /* @__PURE__ */ s(Eo, { ref: i, children: /* @__PURE__ */ s(
2210
2211
  In,
2211
2212
  {
2212
2213
  id: n,
2213
2214
  ref: o,
2214
2215
  tabIndex: -1,
2215
2216
  className: Zn,
2216
- children: /* @__PURE__ */ a(ii, { style: { minHeight: "50px" }, children: ({ width: V, height: B }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: B }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
2217
+ children: /* @__PURE__ */ s(ii, { style: { minHeight: "50px" }, children: ({ width: V, height: j }) => /* @__PURE__ */ s("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: j }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ s(
2217
2218
  "div",
2218
2219
  {
2219
2220
  ref: f,
2220
- style: { width: V, height: B },
2221
- className: se(de["rp-pages"], de["rp-page-scrolling-wrapper"]),
2222
- children: s === Re.DUAL_PAGE ? /* @__PURE__ */ a(ai, { widths: j, heights: $ }) : /* @__PURE__ */ a(si, { widths: j, heights: $ })
2221
+ style: { width: V, height: j },
2222
+ className: ce(ae["rp-pages"], ae["rp-page-scrolling-wrapper"]),
2223
+ children: a === Re.DUAL_PAGE ? /* @__PURE__ */ s(si, { widths: B, heights: $ }) : /* @__PURE__ */ s(ai, { widths: B, heights: $ })
2223
2224
  }
2224
- ) : U ? /* @__PURE__ */ a(
2225
+ ) : U ? /* @__PURE__ */ s(
2225
2226
  Jr,
2226
2227
  {
2227
2228
  ref: d,
@@ -2230,16 +2231,16 @@ const ai = nn(({ widths: t, heights: e }) => {
2230
2231
  innerRef: _,
2231
2232
  onScroll: Kn,
2232
2233
  columnCount: M,
2233
- columnWidth: j,
2234
+ columnWidth: B,
2234
2235
  rowHeight: $,
2235
- height: B,
2236
+ height: j,
2236
2237
  width: V,
2237
2238
  estimatedColumnWidth: K,
2238
2239
  estimatedRowHeight: U,
2239
2240
  rowCount: F,
2240
- className: se(
2241
- de["rp-pages"],
2242
- u === ne.HORIZONTAL_SCROLLING ? de["rp-pages-horizontal-scroll"] : ""
2241
+ className: ce(
2242
+ ae["rp-pages"],
2243
+ u === ne.HORIZONTAL_SCROLLING ? ae["rp-pages-horizontal-scroll"] : ""
2243
2244
  ),
2244
2245
  style: {
2245
2246
  "--rp-page-height": `${U}px`,
@@ -2249,10 +2250,10 @@ const ai = nn(({ widths: t, heights: e }) => {
2249
2250
  },
2250
2251
  children: li
2251
2252
  }
2252
- ) : !w && !S ? /* @__PURE__ */ a(
2253
+ ) : !w && !S ? /* @__PURE__ */ s(
2253
2254
  "div",
2254
2255
  {
2255
- className: de["rp-loader"],
2256
+ className: ae["rp-loader"],
2256
2257
  style: {
2257
2258
  display: "flex",
2258
2259
  justifyContent: "center",
@@ -2260,22 +2261,22 @@ const ai = nn(({ widths: t, heights: e }) => {
2260
2261
  height: "100%",
2261
2262
  width: "100%"
2262
2263
  },
2263
- children: I && /* @__PURE__ */ a(I, {})
2264
+ children: I && /* @__PURE__ */ s(I, {})
2264
2265
  }
2265
- ) : S === io.NOT_SUPPORTED ? /* @__PURE__ */ a("div", { className: de["rp-not-supported"], children: /* @__PURE__ */ H("div", { children: [
2266
+ ) : S === io.NOT_SUPPORTED ? /* @__PURE__ */ s("div", { className: ae["rp-not-supported"], children: /* @__PURE__ */ H("div", { className: ae["rp-not-supported-content"], children: [
2266
2267
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
2267
- /* @__PURE__ */ H("ul", { children: [
2268
- /* @__PURE__ */ a("li", { children: "Chrome 110+" }),
2269
- /* @__PURE__ */ a("li", { children: "Edge 115+" }),
2270
- /* @__PURE__ */ a("li", { children: "Firefox 115+" }),
2271
- /* @__PURE__ */ a("li", { children: "Safari 16.5+" }),
2272
- /* @__PURE__ */ a("li", { children: "Safari iOS 16.5+" }),
2273
- /* @__PURE__ */ a("li", { children: "Chrome Android 126+" })
2274
- ] })
2268
+ /* @__PURE__ */ s("div", { children: /* @__PURE__ */ H("ul", { children: [
2269
+ /* @__PURE__ */ s("li", { children: "Chrome 110+" }),
2270
+ /* @__PURE__ */ s("li", { children: "Edge 115+" }),
2271
+ /* @__PURE__ */ s("li", { children: "Firefox 115+" }),
2272
+ /* @__PURE__ */ s("li", { children: "Safari 16.5+" }),
2273
+ /* @__PURE__ */ s("li", { children: "Safari iOS 16.5+" }),
2274
+ /* @__PURE__ */ s("li", { children: "Chrome Android 126+" })
2275
+ ] }) })
2275
2276
  ] }) }) : null }) })
2276
2277
  }
2277
2278
  ) }),
2278
- R && /* @__PURE__ */ a(nr, {})
2279
+ R && /* @__PURE__ */ s(nr, {})
2279
2280
  ] });
2280
2281
  }, Me = {
2281
2282
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2289,12 +2290,12 @@ const ai = nn(({ widths: t, heights: e }) => {
2289
2290
  "rp-total-page": "_rp-total-page_1gck0_18"
2290
2291
  }, di = () => {
2291
2292
  const { prevIcon: t } = Ce(), { prevIcon: e } = be();
2292
- return t || e || /* @__PURE__ */ a(Ze, {});
2293
+ return t || e || /* @__PURE__ */ s(Ze, {});
2293
2294
  }, ui = () => {
2294
2295
  const { nextIcon: t } = Ce(), { nextIcon: e } = be();
2295
- return t || e || /* @__PURE__ */ a(Ze, { style: { transform: "rotate(180deg" } });
2296
+ return t || e || /* @__PURE__ */ s(Ze, { style: { transform: "rotate(180deg" } });
2296
2297
  }, pi = () => {
2297
- const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: i } = le(), [c, l] = q(t.toString()), { pageNavigationTool: d = !0 } = Te(), { pageNavigationTool: f = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: P } = Fe(), { scrollMode: p } = Ee(), { localeMessages: v } = he();
2298
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: i } = de(), [c, l] = q(t.toString()), { pageNavigationTool: d = !0 } = Te(), { pageNavigationTool: f = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: P } = Fe(), { scrollMode: p } = Ee(), { localeMessages: v } = he();
2298
2299
  D(() => {
2299
2300
  l(t.toString());
2300
2301
  }, [t]);
@@ -2312,7 +2313,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2312
2313
  },
2313
2314
  [C]
2314
2315
  ), g = W(() => P === Re.DUAL_PAGE && p === ne.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, P, p]);
2315
- return !d || !f ? null : typeof d != "boolean" ? /* @__PURE__ */ a(
2316
+ return !d || !f ? null : typeof d != "boolean" ? /* @__PURE__ */ s(
2316
2317
  d,
2317
2318
  {
2318
2319
  total: e,
@@ -2322,7 +2323,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2322
2323
  goToPage: i,
2323
2324
  changePage: n
2324
2325
  }
2325
- ) : typeof f != "boolean" ? /* @__PURE__ */ a(
2326
+ ) : typeof f != "boolean" ? /* @__PURE__ */ s(
2326
2327
  f,
2327
2328
  {
2328
2329
  total: e,
@@ -2333,16 +2334,16 @@ const ai = nn(({ widths: t, heights: e }) => {
2333
2334
  changePage: n
2334
2335
  }
2335
2336
  ) : /* @__PURE__ */ H("div", { className: pt["rp-paginate"], children: [
2336
- !m && /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.previousPageTooltip, children: /* @__PURE__ */ a(
2337
+ !m && /* @__PURE__ */ s(Q, { content: v == null ? void 0 : v.previousPageTooltip, children: /* @__PURE__ */ s(
2337
2338
  ve,
2338
2339
  {
2339
2340
  onClick: o,
2340
2341
  "aria-label": v == null ? void 0 : v.previousPageTooltip,
2341
2342
  "aria-disabled": t === 1,
2342
- children: /* @__PURE__ */ a(di, {})
2343
+ children: /* @__PURE__ */ s(di, {})
2343
2344
  }
2344
2345
  ) }),
2345
- /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ a(
2346
+ /* @__PURE__ */ s(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ s(
2346
2347
  on,
2347
2348
  {
2348
2349
  onKeyDown: y,
@@ -2358,18 +2359,18 @@ const ai = nn(({ widths: t, heights: e }) => {
2358
2359
  "/",
2359
2360
  e
2360
2361
  ] }),
2361
- !m && /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.nextPageTooltip, children: /* @__PURE__ */ a(
2362
+ !m && /* @__PURE__ */ s(Q, { content: v == null ? void 0 : v.nextPageTooltip, children: /* @__PURE__ */ s(
2362
2363
  ve,
2363
2364
  {
2364
2365
  onClick: r,
2365
2366
  "aria-label": v == null ? void 0 : v.nextPageTooltip,
2366
2367
  "aria-disabled": g,
2367
- children: /* @__PURE__ */ a(ui, {})
2368
+ children: /* @__PURE__ */ s(ui, {})
2368
2369
  }
2369
2370
  ) })
2370
2371
  ] });
2371
2372
  };
2372
- var St = "Dialog", [xn, Ys] = dr(St), [hi, ue] = xn(St), Rn = (t) => {
2373
+ var St = "Dialog", [xn, Ya] = dr(St), [hi, ue] = xn(St), Rn = (t) => {
2373
2374
  const {
2374
2375
  __scopeDialog: e,
2375
2376
  children: n,
@@ -2382,15 +2383,15 @@ var St = "Dialog", [xn, Ys] = dr(St), [hi, ue] = xn(St), Rn = (t) => {
2382
2383
  defaultProp: o,
2383
2384
  onChange: i
2384
2385
  });
2385
- return /* @__PURE__ */ a(
2386
+ return /* @__PURE__ */ s(
2386
2387
  hi,
2387
2388
  {
2388
2389
  scope: e,
2389
2390
  triggerRef: l,
2390
2391
  contentRef: d,
2391
- contentId: at(),
2392
- titleId: at(),
2393
- descriptionId: at(),
2392
+ contentId: st(),
2393
+ titleId: st(),
2394
+ descriptionId: st(),
2394
2395
  open: f,
2395
2396
  onOpenChange: m,
2396
2397
  onOpenToggle: X.useCallback(() => m((P) => !P), [m]),
@@ -2403,7 +2404,7 @@ Rn.displayName = St;
2403
2404
  var Ln = "DialogTrigger", fi = X.forwardRef(
2404
2405
  (t, e) => {
2405
2406
  const { __scopeDialog: n, ...r } = t, o = ue(Ln, n), i = Tt(e, o.triggerRef);
2406
- return /* @__PURE__ */ a(
2407
+ return /* @__PURE__ */ s(
2407
2408
  Ge.button,
2408
2409
  {
2409
2410
  type: "button",
@@ -2423,13 +2424,13 @@ var It = "DialogPortal", [mi, En] = xn(It, {
2423
2424
  forceMount: void 0
2424
2425
  }), Nn = (t) => {
2425
2426
  const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = ue(It, e);
2426
- return /* @__PURE__ */ a(mi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ a(Ct, { present: n || i.open, children: /* @__PURE__ */ a(_r, { asChild: !0, container: o, children: c }) })) });
2427
+ return /* @__PURE__ */ s(mi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ s(Ct, { present: n || i.open, children: /* @__PURE__ */ s(_r, { asChild: !0, container: o, children: c }) })) });
2427
2428
  };
2428
2429
  Nn.displayName = It;
2429
2430
  var Qe = "DialogOverlay", On = X.forwardRef(
2430
2431
  (t, e) => {
2431
2432
  const n = En(Qe, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = ue(Qe, t.__scopeDialog);
2432
- return i.modal ? /* @__PURE__ */ a(Ct, { present: r || i.open, children: /* @__PURE__ */ a(gi, { ...o, ref: e }) }) : null;
2433
+ return i.modal ? /* @__PURE__ */ s(Ct, { present: r || i.open, children: /* @__PURE__ */ s(gi, { ...o, ref: e }) }) : null;
2433
2434
  }
2434
2435
  );
2435
2436
  On.displayName = Qe;
@@ -2439,7 +2440,7 @@ var gi = X.forwardRef(
2439
2440
  return (
2440
2441
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2441
2442
  // ie. when `Overlay` and `Content` are siblings
2442
- /* @__PURE__ */ a(mr, { as: ur, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
2443
+ /* @__PURE__ */ s(mr, { as: ur, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
2443
2444
  Ge.div,
2444
2445
  {
2445
2446
  "data-state": Rt(o.open),
@@ -2453,7 +2454,7 @@ var gi = X.forwardRef(
2453
2454
  ), Le = "DialogContent", Dn = X.forwardRef(
2454
2455
  (t, e) => {
2455
2456
  const n = En(Le, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = ue(Le, t.__scopeDialog);
2456
- return /* @__PURE__ */ a(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ a(vi, { ...o, ref: e }) : /* @__PURE__ */ a(wi, { ...o, ref: e }) });
2457
+ return /* @__PURE__ */ s(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ s(vi, { ...o, ref: e }) : /* @__PURE__ */ s(wi, { ...o, ref: e }) });
2457
2458
  }
2458
2459
  );
2459
2460
  Dn.displayName = Le;
@@ -2464,7 +2465,7 @@ var vi = X.forwardRef(
2464
2465
  const i = r.current;
2465
2466
  if (i)
2466
2467
  return gr(i);
2467
- }, []), /* @__PURE__ */ a(
2468
+ }, []), /* @__PURE__ */ s(
2468
2469
  An,
2469
2470
  {
2470
2471
  ...t,
@@ -2489,7 +2490,7 @@ var vi = X.forwardRef(
2489
2490
  ), wi = X.forwardRef(
2490
2491
  (t, e) => {
2491
2492
  const n = ue(Le, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2492
- return /* @__PURE__ */ a(
2493
+ return /* @__PURE__ */ s(
2493
2494
  An,
2494
2495
  {
2495
2496
  ...t,
@@ -2513,7 +2514,7 @@ var vi = X.forwardRef(
2513
2514
  (t, e) => {
2514
2515
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = t, l = ue(Le, n), d = X.useRef(null), f = Tt(e, d);
2515
2516
  return vr(), /* @__PURE__ */ H(pe, { children: [
2516
- /* @__PURE__ */ a(
2517
+ /* @__PURE__ */ s(
2517
2518
  wr,
2518
2519
  {
2519
2520
  asChild: !0,
@@ -2521,7 +2522,7 @@ var vi = X.forwardRef(
2521
2522
  trapped: r,
2522
2523
  onMountAutoFocus: o,
2523
2524
  onUnmountAutoFocus: i,
2524
- children: /* @__PURE__ */ a(
2525
+ children: /* @__PURE__ */ s(
2525
2526
  fr,
2526
2527
  {
2527
2528
  role: "dialog",
@@ -2537,29 +2538,29 @@ var vi = X.forwardRef(
2537
2538
  }
2538
2539
  ),
2539
2540
  /* @__PURE__ */ H(pe, { children: [
2540
- /* @__PURE__ */ a(bi, { titleId: l.titleId }),
2541
- /* @__PURE__ */ a(Ci, { contentRef: d, descriptionId: l.descriptionId })
2541
+ /* @__PURE__ */ s(bi, { titleId: l.titleId }),
2542
+ /* @__PURE__ */ s(Ci, { contentRef: d, descriptionId: l.descriptionId })
2542
2543
  ] })
2543
2544
  ] });
2544
2545
  }
2545
2546
  ), xt = "DialogTitle", zn = X.forwardRef(
2546
2547
  (t, e) => {
2547
2548
  const { __scopeDialog: n, ...r } = t, o = ue(xt, n);
2548
- return /* @__PURE__ */ a(Ge.h2, { id: o.titleId, ...r, ref: e });
2549
+ return /* @__PURE__ */ s(Ge.h2, { id: o.titleId, ...r, ref: e });
2549
2550
  }
2550
2551
  );
2551
2552
  zn.displayName = xt;
2552
2553
  var Fn = "DialogDescription", _i = X.forwardRef(
2553
2554
  (t, e) => {
2554
2555
  const { __scopeDialog: n, ...r } = t, o = ue(Fn, n);
2555
- return /* @__PURE__ */ a(Ge.p, { id: o.descriptionId, ...r, ref: e });
2556
+ return /* @__PURE__ */ s(Ge.p, { id: o.descriptionId, ...r, ref: e });
2556
2557
  }
2557
2558
  );
2558
2559
  _i.displayName = Fn;
2559
2560
  var Mn = "DialogClose", kn = X.forwardRef(
2560
2561
  (t, e) => {
2561
2562
  const { __scopeDialog: n, ...r } = t, o = ue(Mn, n);
2562
- return /* @__PURE__ */ a(
2563
+ return /* @__PURE__ */ s(
2563
2564
  Ge.button,
2564
2565
  {
2565
2566
  type: "button",
@@ -2574,7 +2575,7 @@ kn.displayName = Mn;
2574
2575
  function Rt(t) {
2575
2576
  return t ? "open" : "closed";
2576
2577
  }
2577
- var Wn = "DialogTitleWarning", [Js, Hn] = pr(Wn, {
2578
+ var Wn = "DialogTitleWarning", [Ja, Hn] = pr(Wn, {
2578
2579
  contentName: Le,
2579
2580
  titleName: xt,
2580
2581
  docsSlug: "dialog"
@@ -2644,12 +2645,12 @@ const xe = {
2644
2645
  { label: o == null ? void 0 : o.propertiesPageCountLabel, value: y }
2645
2646
  ];
2646
2647
  }, [t, o]);
2647
- return /* @__PURE__ */ a(Pi, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(yi, { container: e, children: /* @__PURE__ */ H("div", { className: xe["rp-dialog-wrapper"], children: [
2648
- /* @__PURE__ */ a(Si, { className: xe["rp-dialog-overlay"] }),
2648
+ return /* @__PURE__ */ s(Pi, { open: n, onOpenChange: r, children: /* @__PURE__ */ s(yi, { container: e, children: /* @__PURE__ */ H("div", { className: xe["rp-dialog-wrapper"], children: [
2649
+ /* @__PURE__ */ s(Si, { className: xe["rp-dialog-overlay"] }),
2649
2650
  /* @__PURE__ */ H(Ii, { className: xe["rp-document-dialog"], children: [
2650
- /* @__PURE__ */ a(xi, { className: xe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2651
- /* @__PURE__ */ a("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ a(Ao, { label: c.label, value: c.value }) }, l)) }),
2652
- /* @__PURE__ */ a(Ri, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(br, {}) })
2651
+ /* @__PURE__ */ s(xi, { className: xe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2652
+ /* @__PURE__ */ s("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ s("div", { children: c.separate ? /* @__PURE__ */ s("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ s(Ao, { label: c.label, value: c.value }) }, l)) }),
2653
+ /* @__PURE__ */ s(Ri, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ s(br, {}) })
2653
2654
  ] })
2654
2655
  ] }) }) });
2655
2656
  }, Ei = {
@@ -2670,22 +2671,22 @@ const xe = {
2670
2671
  }, [t, e]) };
2671
2672
  }, qn = () => {
2672
2673
  const { downloadIcon: t } = Ce(), { downloadIcon: e } = be();
2673
- return t || e || /* @__PURE__ */ a(yr, {});
2674
- }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Di = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Gn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ a(qn, {}) }) }), Ai = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2675
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qn, {}) }),
2674
+ return t || e || /* @__PURE__ */ s(yr, {});
2675
+ }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ s(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Di = ({ download: t, localeMessages: e }) => /* @__PURE__ */ s(Gn, { localeMessages: e, children: /* @__PURE__ */ s(ve, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ s(qn, {}) }) }), Ai = ({ download: t, localeMessages: e }) => /* @__PURE__ */ s(Xe, { onClick: t, children: /* @__PURE__ */ H(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2676
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(qn, {}) }),
2676
2677
  e == null ? void 0 : e.downloadFileLabel
2677
2678
  ] }) }), Un = () => {
2678
2679
  const { download: t } = $n(), { downloadTool: e = !0 } = Te(), { downloadTool: n = !0 } = Ne(), { isSmallScreen: r } = Oe(), { localeMessages: o } = he(), i = o == null ? void 0 : o.downloadFileTooltip;
2679
- return !e || !n ? null : r ? /* @__PURE__ */ a(Ai, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(n, { download: t }) }) : /* @__PURE__ */ a(Di, { download: t, localeMessages: o });
2680
+ return !e || !n ? null : r ? /* @__PURE__ */ s(Ai, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ s(Q, { content: i, children: /* @__PURE__ */ s(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ s(Q, { content: i, children: /* @__PURE__ */ s(n, { download: t }) }) : /* @__PURE__ */ s(Di, { download: t, localeMessages: o });
2680
2681
  }, Vn = () => {
2681
2682
  const { printIcon: t } = Ce(), { printIcon: e } = be();
2682
- return t || e || /* @__PURE__ */ a(Sr, {});
2683
- }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(jn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), Fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(jn, { className: "rp-menu-item", localeMessages: e, children: [
2684
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
2683
+ return t || e || /* @__PURE__ */ s(Sr, {});
2684
+ }, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ s(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ s(Bn, { localeMessages: e, children: /* @__PURE__ */ s(ve, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ s(Vn, {}) }) }), Fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ s(Xe, { onClick: t, children: /* @__PURE__ */ H(Bn, { className: "rp-menu-item", localeMessages: e, children: [
2685
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(Vn, {}) }),
2685
2686
  e == null ? void 0 : e.printLabel
2686
- ] }) }), Bn = () => {
2687
+ ] }) }), jn = () => {
2687
2688
  const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: i } = tt(), { printTool: c = !0 } = Te(), { printTool: l = !0 } = Ne(), { isSmallScreen: d } = Oe(), { localeMessages: f } = he(), m = f == null ? void 0 : f.printTooltip;
2688
- return !c || !l ? null : d ? /* @__PURE__ */ a(Fi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2689
+ return !c || !l ? null : d ? /* @__PURE__ */ s(Fi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ s(Q, { content: m, children: /* @__PURE__ */ s(
2689
2690
  c,
2690
2691
  {
2691
2692
  print: t,
@@ -2695,7 +2696,7 @@ const xe = {
2695
2696
  setOnComplete: r,
2696
2697
  progress: i
2697
2698
  }
2698
- ) }) : typeof l == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2699
+ ) }) : typeof l == "function" ? /* @__PURE__ */ s(Q, { content: m, children: /* @__PURE__ */ s(
2699
2700
  l,
2700
2701
  {
2701
2702
  print: t,
@@ -2705,31 +2706,31 @@ const xe = {
2705
2706
  setOnComplete: r,
2706
2707
  progress: i
2707
2708
  }
2708
- ) }) : /* @__PURE__ */ a(zi, { print: t, localeMessages: f });
2709
+ ) }) : /* @__PURE__ */ s(zi, { print: t, localeMessages: f });
2709
2710
  }, Mi = {
2710
2711
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2711
2712
  }, ki = () => {
2712
2713
  const { goToFirstPageIcon: t } = Ce(), { goToFirstPageIcon: e } = be();
2713
- return t || e || /* @__PURE__ */ a(hn, { className: Mi["rp-go-to-Top"] });
2714
+ return t || e || /* @__PURE__ */ s(hn, { className: Mi["rp-go-to-Top"] });
2714
2715
  }, Wi = () => {
2715
2716
  const { goToLastPageIcon: t } = Ce(), { goToLastPageIcon: e } = be();
2716
- return t || e || /* @__PURE__ */ a(hn, {});
2717
+ return t || e || /* @__PURE__ */ s(hn, {});
2717
2718
  }, Yt = { width: "100%" }, Hi = () => {
2718
- const { goToPage: t, totalPages: e, focusedPage: n } = le(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = Ne(), { localeMessages: i } = he(), c = W(() => n === 1, [n]), l = W(() => n === e, [n, e]), d = E(() => {
2719
+ const { goToPage: t, totalPages: e, focusedPage: n } = de(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = Ne(), { localeMessages: i } = he(), c = W(() => n === 1, [n]), l = W(() => n === e, [n, e]), d = E(() => {
2719
2720
  t(1);
2720
2721
  }, [t]), f = E(() => {
2721
2722
  t(e);
2722
2723
  }, [t, e]);
2723
2724
  return !r || !o ? null : /* @__PURE__ */ H(un, { children: [
2724
- /* @__PURE__ */ a(Xe, { onClick: d, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2725
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(ki, {}) }),
2726
- /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.firstPageLabel })
2725
+ /* @__PURE__ */ s(Xe, { onClick: d, children: /* @__PURE__ */ s(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2726
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(ki, {}) }),
2727
+ /* @__PURE__ */ s("span", { children: i == null ? void 0 : i.firstPageLabel })
2727
2728
  ] }) }) }),
2728
- /* @__PURE__ */ a(Xe, { onClick: f, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2729
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Wi, {}) }),
2730
- /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.lastPageLabel })
2729
+ /* @__PURE__ */ s(Xe, { onClick: f, children: /* @__PURE__ */ s(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2730
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(Wi, {}) }),
2731
+ /* @__PURE__ */ s("span", { children: i == null ? void 0 : i.lastPageLabel })
2731
2732
  ] }) }) }),
2732
- /* @__PURE__ */ a(ln, {})
2733
+ /* @__PURE__ */ s(ln, {})
2733
2734
  ] });
2734
2735
  }, $i = () => {
2735
2736
  const [t, e] = q(!1), { container: n, pagesRef: r } = _e(), { isSmallScreen: o } = Oe(), {
@@ -2750,7 +2751,7 @@ const xe = {
2750
2751
  scrollModeTool: g,
2751
2752
  rotateTool: h,
2752
2753
  selectionModeTool: u,
2753
- jumpNavigationTool: s,
2754
+ jumpNavigationTool: a,
2754
2755
  printTool: _,
2755
2756
  fullscreenTool: w,
2756
2757
  viewModeTool: S
@@ -2769,7 +2770,7 @@ const xe = {
2769
2770
  m,
2770
2771
  P,
2771
2772
  o
2772
- ]), z = W(() => s || h || u || g || y || S || o && (C || T || _ || w), [
2773
+ ]), z = W(() => a || h || u || g || y || S || o && (C || T || _ || w), [
2773
2774
  C,
2774
2775
  T,
2775
2776
  _,
@@ -2778,18 +2779,18 @@ const xe = {
2778
2779
  g,
2779
2780
  h,
2780
2781
  u,
2781
- s,
2782
+ a,
2782
2783
  o
2783
2784
  ]);
2784
2785
  return D(() => (r && N.current.observe(r), () => {
2785
2786
  N.current.disconnect();
2786
2787
  }), [r]), !A || !z ? null : /* @__PURE__ */ H(pe, { children: [
2787
- /* @__PURE__ */ a(
2788
+ /* @__PURE__ */ s(
2788
2789
  cn,
2789
2790
  {
2790
2791
  container: n,
2791
2792
  onOpenChange: e,
2792
- triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(Q, { content: R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ a(ve, { active: t, "aria-label": R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ a(lr, {}) }) }) }),
2793
+ triggerComponent: /* @__PURE__ */ s("div", { role: "button", children: /* @__PURE__ */ s(Q, { content: R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ s(ve, { active: t, "aria-label": R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ s(lr, {}) }) }) }),
2793
2794
  side: "bottom",
2794
2795
  avoidCollisions: !1,
2795
2796
  children: /* @__PURE__ */ H(
@@ -2800,46 +2801,46 @@ const xe = {
2800
2801
  "data-rp": "moreOptionsDropdown",
2801
2802
  children: [
2802
2803
  o && /* @__PURE__ */ H(un, { children: [
2803
- /* @__PURE__ */ a(dn, {}),
2804
- /* @__PURE__ */ a(Un, {}),
2805
- /* @__PURE__ */ a(Bn, {}),
2806
- /* @__PURE__ */ a(pn, {}),
2807
- /* @__PURE__ */ a(ln, {})
2804
+ /* @__PURE__ */ s(dn, {}),
2805
+ /* @__PURE__ */ s(Un, {}),
2806
+ /* @__PURE__ */ s(jn, {}),
2807
+ /* @__PURE__ */ s(pn, {}),
2808
+ /* @__PURE__ */ s(ln, {})
2808
2809
  ] }),
2809
- /* @__PURE__ */ a(Hi, {}),
2810
- /* @__PURE__ */ a(zo, {}),
2811
- /* @__PURE__ */ a(Ir, {}),
2812
- /* @__PURE__ */ a(Cr, {}),
2813
- /* @__PURE__ */ a(Pr, {}),
2814
- /* @__PURE__ */ a(Tr, {})
2810
+ /* @__PURE__ */ s(Hi, {}),
2811
+ /* @__PURE__ */ s(zo, {}),
2812
+ /* @__PURE__ */ s(Ir, {}),
2813
+ /* @__PURE__ */ s(Cr, {}),
2814
+ /* @__PURE__ */ s(Pr, {}),
2815
+ /* @__PURE__ */ s(Tr, {})
2815
2816
  ]
2816
2817
  }
2817
2818
  )
2818
2819
  }
2819
2820
  ),
2820
- /* @__PURE__ */ a(Li, {})
2821
+ /* @__PURE__ */ s(Li, {})
2821
2822
  ] });
2822
2823
  }, qi = () => {
2823
2824
  const { isSmallScreen: t } = Oe();
2824
2825
  return /* @__PURE__ */ H(pe, { children: [
2825
- /* @__PURE__ */ a(cr, {}),
2826
+ /* @__PURE__ */ s(cr, {}),
2826
2827
  !t && /* @__PURE__ */ H(pe, { children: [
2827
- /* @__PURE__ */ a(dn, {}),
2828
- /* @__PURE__ */ a(Un, {}),
2829
- /* @__PURE__ */ a(Bn, {}),
2830
- /* @__PURE__ */ a(pn, {})
2828
+ /* @__PURE__ */ s(dn, {}),
2829
+ /* @__PURE__ */ s(Un, {}),
2830
+ /* @__PURE__ */ s(jn, {}),
2831
+ /* @__PURE__ */ s(pn, {})
2831
2832
  ] }),
2832
- /* @__PURE__ */ a($i, {})
2833
+ /* @__PURE__ */ s($i, {})
2833
2834
  ] });
2834
2835
  }, Jt = () => {
2835
2836
  const { totalMatches: t, nextMatch: e, prevMatch: n } = Pt(), { localeMessages: r } = he();
2836
2837
  return /* @__PURE__ */ H(pe, { children: [
2837
- /* @__PURE__ */ a(
2838
+ /* @__PURE__ */ s(
2838
2839
  Q,
2839
2840
  {
2840
2841
  content: r == null ? void 0 : r.searchPrevTooltip,
2841
2842
  className: te["rp-search-tool-result-navigator"],
2842
- children: /* @__PURE__ */ a(ve, { tabIndex: 0, onClick: n, "aria-label": r == null ? void 0 : r.searchPrevTooltip, children: /* @__PURE__ */ a(
2843
+ children: /* @__PURE__ */ s(ve, { tabIndex: 0, onClick: n, "aria-label": r == null ? void 0 : r.searchPrevTooltip, children: /* @__PURE__ */ s(
2843
2844
  Ze,
2844
2845
  {
2845
2846
  className: te["rp-search-tool-input-icon"],
@@ -2848,12 +2849,12 @@ const xe = {
2848
2849
  ) })
2849
2850
  }
2850
2851
  ),
2851
- /* @__PURE__ */ a(
2852
+ /* @__PURE__ */ s(
2852
2853
  Q,
2853
2854
  {
2854
2855
  content: r == null ? void 0 : r.searchNextTooltip,
2855
2856
  className: te["rp-search-tool-result-navigator"],
2856
- children: /* @__PURE__ */ a(ve, { tabIndex: 0, onClick: e, "aria-label": r == null ? void 0 : r.searchNextTooltip, children: /* @__PURE__ */ a(
2857
+ children: /* @__PURE__ */ s(ve, { tabIndex: 0, onClick: e, "aria-label": r == null ? void 0 : r.searchNextTooltip, children: /* @__PURE__ */ s(
2857
2858
  Ze,
2858
2859
  {
2859
2860
  style: { transform: "rotate(180deg" },
@@ -2866,7 +2867,7 @@ const xe = {
2866
2867
  ] });
2867
2868
  }, Gi = () => {
2868
2869
  const { searchIcon: t } = Ce(), { searchIcon: e } = be();
2869
- return t || e || /* @__PURE__ */ a(fn, {});
2870
+ return t || e || /* @__PURE__ */ s(fn, {});
2870
2871
  }, Ui = ({ icon: t }) => {
2871
2872
  const { container: e } = _e(), [n, r] = q(!1), { pdf: o } = oe(), [i, c] = q(null), {
2872
2873
  searchOptions: l,
@@ -2878,7 +2879,7 @@ const xe = {
2878
2879
  nextMatch: v,
2879
2880
  prevMatch: b,
2880
2881
  search: C
2881
- } = Pt(), { searchTool: T = !0 } = Te(), { searchTool: y = !0 } = Ne(), [g, h] = q(C), { localeMessages: u } = he(), { isSmallScreen: s } = Oe(), [_, w] = q(null), [S, R] = q(!1), I = E(() => {
2882
+ } = Pt(), { searchTool: T = !0 } = Te(), { searchTool: y = !0 } = Ne(), [g, h] = q(C), { localeMessages: u } = he(), { isSmallScreen: a } = Oe(), [_, w] = q(null), [S, R] = q(!1), I = E(() => {
2882
2883
  r(!0);
2883
2884
  }, []), x = E(() => {
2884
2885
  m(""), h(""), r(!1);
@@ -2913,7 +2914,7 @@ const xe = {
2913
2914
  h(G.target.value);
2914
2915
  }, []), O = E(() => {
2915
2916
  h(""), m("");
2916
- }, [m]), F = W(() => `${p} / ${P}`, [p, P]), { wholeWords: $, matchCase: M } = W(() => l, [l]), j = E(
2917
+ }, [m]), F = W(() => `${p} / ${P}`, [p, P]), { wholeWords: $, matchCase: M } = W(() => l, [l]), B = E(
2917
2918
  (G) => {
2918
2919
  d((Z) => ({ ...Z, matchCase: G }));
2919
2920
  },
@@ -2932,8 +2933,8 @@ const xe = {
2932
2933
  if (G.key === "Tab") {
2933
2934
  const Z = document.activeElement;
2934
2935
  let Y = 0;
2935
- U.forEach((ie, ae) => {
2936
- ie === Z && (Y = ae);
2936
+ U.forEach((ie, se) => {
2937
+ ie === Z && (Y = se);
2937
2938
  });
2938
2939
  let J = Y + 1;
2939
2940
  G.shiftKey && (J = Y - 1);
@@ -2951,7 +2952,7 @@ const xe = {
2951
2952
  },
2952
2953
  [U]
2953
2954
  );
2954
- return !T || !y ? null : /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a(
2955
+ return !T || !y ? null : /* @__PURE__ */ s(pe, { children: /* @__PURE__ */ s(
2955
2956
  cn,
2956
2957
  {
2957
2958
  open: n,
@@ -2960,13 +2961,13 @@ const xe = {
2960
2961
  align: "start",
2961
2962
  tabIndex: 0,
2962
2963
  avoidCollisions: !1,
2963
- triggerComponent: /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchButtonTooltip, children: /* @__PURE__ */ a(
2964
+ triggerComponent: /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchButtonTooltip, children: /* @__PURE__ */ s(
2964
2965
  ve,
2965
2966
  {
2966
2967
  active: n,
2967
2968
  onClick: I,
2968
2969
  "aria-label": u == null ? void 0 : u.searchButtonTooltip,
2969
- children: t || /* @__PURE__ */ a(Gi, {})
2970
+ children: t || /* @__PURE__ */ s(Gi, {})
2970
2971
  }
2971
2972
  ) }),
2972
2973
  children: /* @__PURE__ */ H(
@@ -2979,39 +2980,39 @@ const xe = {
2979
2980
  children: [
2980
2981
  /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-wrapper"], children: [
2981
2982
  /* @__PURE__ */ H("div", { className: te["rp-search-tool-input"], children: [
2982
- /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchInputTooltip, children: /* @__PURE__ */ a(
2983
+ /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchInputTooltip, children: /* @__PURE__ */ s(
2983
2984
  on,
2984
2985
  {
2985
2986
  value: g,
2986
2987
  onKeyDown: z,
2987
2988
  onChange: L,
2988
- icon: /* @__PURE__ */ a(fn, {}),
2989
+ icon: /* @__PURE__ */ s(fn, {}),
2989
2990
  placeholder: u == null ? void 0 : u.searchInputPlaceholder,
2990
2991
  className: te["rp-search-input"],
2991
2992
  ref: c,
2992
2993
  id: "search-input",
2993
2994
  name: "search-input",
2994
2995
  tabIndex: 0,
2995
- children: !!g && /* @__PURE__ */ a("span", { className: te["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ a(Rr, {}) })
2996
+ children: !!g && /* @__PURE__ */ s("span", { className: te["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ s(Rr, {}) })
2996
2997
  }
2997
2998
  ) }),
2998
- f ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(_t, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: F }),
2999
- s && /* @__PURE__ */ a("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: x }) })
2999
+ f ? /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(_t, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ s("span", { children: F }),
3000
+ a && /* @__PURE__ */ s("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ s(Ot, { onKeyPress: N, handleClose: x }) })
3000
3001
  ] }),
3001
3002
  /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-checkboxes"], children: [
3002
- s && /* @__PURE__ */ a(Jt, {}),
3003
- /* @__PURE__ */ a(
3003
+ a && /* @__PURE__ */ s(Jt, {}),
3004
+ /* @__PURE__ */ s(
3004
3005
  Dt,
3005
3006
  {
3006
3007
  tabIndex: 0,
3007
3008
  name: "matchCase",
3008
3009
  value: M,
3009
- onChange: j,
3010
+ onChange: B,
3010
3011
  children: u == null ? void 0 : u.searchMatchCaseLabel
3011
3012
  }
3012
3013
  ),
3013
- !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchMatchCaseTooltip, children: /* @__PURE__ */ a("div", { className: te["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ a(Mt, {}) }) }),
3014
- /* @__PURE__ */ a(
3014
+ !a && /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchMatchCaseTooltip, children: /* @__PURE__ */ s("div", { className: te["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ s(Mt, {}) }) }),
3015
+ /* @__PURE__ */ s(
3015
3016
  Dt,
3016
3017
  {
3017
3018
  tabIndex: 0,
@@ -3021,12 +3022,12 @@ const xe = {
3021
3022
  children: u == null ? void 0 : u.searchWholeWordsLabel
3022
3023
  }
3023
3024
  ),
3024
- !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchWholeWordsTooltip, children: /* @__PURE__ */ a("div", { tabIndex: 0, className: te["rp-search-icon-info"], children: /* @__PURE__ */ a(Mt, {}) }) })
3025
+ !a && /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchWholeWordsTooltip, children: /* @__PURE__ */ s("div", { tabIndex: 0, className: te["rp-search-icon-info"], children: /* @__PURE__ */ s(Mt, {}) }) })
3025
3026
  ] })
3026
3027
  ] }),
3027
- !s && /* @__PURE__ */ H("div", { className: te["rp-search-tool-controls"], children: [
3028
- /* @__PURE__ */ a(Jt, {}),
3029
- /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: x })
3028
+ !a && /* @__PURE__ */ H("div", { className: te["rp-search-tool-controls"], children: [
3029
+ /* @__PURE__ */ s(Jt, {}),
3030
+ /* @__PURE__ */ s(Ot, { onKeyPress: N, handleClose: x })
3030
3031
  ] })
3031
3032
  ]
3032
3033
  }
@@ -3041,37 +3042,37 @@ const xe = {
3041
3042
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3042
3043
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3043
3044
  loading: Vi
3044
- }, ji = ({ percentage: t }) => {
3045
+ }, Bi = ({ percentage: t }) => {
3045
3046
  const { cancel: e } = tt(), { localeMessages: n } = he();
3046
- return t < 1 ? null : /* @__PURE__ */ a("div", { className: se(Ae["rp-loading-overlay"]), children: /* @__PURE__ */ H("div", { className: se(Ae["rp-loading-modal"]), children: [
3047
- /* @__PURE__ */ H("div", { className: se(Ae["rp-loading-title"]), children: [
3047
+ return t < 1 ? null : /* @__PURE__ */ s("div", { className: ce(Ae["rp-loading-overlay"]), children: /* @__PURE__ */ H("div", { className: ce(Ae["rp-loading-modal"]), children: [
3048
+ /* @__PURE__ */ H("div", { className: ce(Ae["rp-loading-title"]), children: [
3048
3049
  n == null ? void 0 : n.printLoadingMessage,
3049
3050
  "..."
3050
3051
  ] }),
3051
- /* @__PURE__ */ a("div", { className: se(Ae["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
3052
+ /* @__PURE__ */ s("div", { className: ce(Ae["rp-loading-progress-bar"]), children: /* @__PURE__ */ s(
3052
3053
  "div",
3053
3054
  {
3054
- className: se(Ae["rp-loading-progress"]),
3055
+ className: ce(Ae["rp-loading-progress"]),
3055
3056
  style: { width: `${t}%` }
3056
3057
  }
3057
3058
  ) }),
3058
- /* @__PURE__ */ a("button", { className: se(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3059
+ /* @__PURE__ */ s("button", { className: ce(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3059
3060
  ] }) });
3060
- }, Bi = et((t, e) => {
3061
+ }, ji = et((t, e) => {
3061
3062
  const { showPrintProgress: n = !0 } = Te(), { showPrintProgress: r = !0 } = Ne(), { progress: o } = tt(), { isSmallScreen: i } = Oe(), { percentage: c } = o || {}, l = () => i ? { gridTemplateColumns: "25% 60% 15%" } : void 0, d = () => {
3062
3063
  if (!(!n || !r || !c))
3063
- return /* @__PURE__ */ a(ji, { percentage: c });
3064
+ return /* @__PURE__ */ s(Bi, { percentage: c });
3064
3065
  };
3065
3066
  return /* @__PURE__ */ H("div", { children: [
3066
- /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: e, className: Me["rp-toolbar-content"], children: /* @__PURE__ */ H("div", { className: Me["rp-toolbar-wrapper"], style: l(), children: [
3067
+ /* @__PURE__ */ s("div", { "data-rp": "topBar", ref: e, className: Me["rp-toolbar-content"], children: /* @__PURE__ */ H("div", { className: Me["rp-toolbar-wrapper"], style: l(), children: [
3067
3068
  /* @__PURE__ */ H("div", { "data-rp": "topBarLeft", className: Me["rp-toolbar-start"], children: [
3068
- /* @__PURE__ */ a(Ui, {}),
3069
- /* @__PURE__ */ a(pi, {})
3069
+ /* @__PURE__ */ s(Ui, {}),
3070
+ /* @__PURE__ */ s(pi, {})
3070
3071
  ] }),
3071
- /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(xr, {}) }),
3072
- /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a(qi, {}) })
3072
+ /* @__PURE__ */ s("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ s(xr, {}) }),
3073
+ /* @__PURE__ */ s("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ s(qi, {}) })
3073
3074
  ] }) }),
3074
- /* @__PURE__ */ a(d, {})
3075
+ /* @__PURE__ */ s(d, {})
3075
3076
  ] });
3076
3077
  }), ht = {
3077
3078
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1bqgz_1",
@@ -3084,7 +3085,7 @@ const xe = {
3084
3085
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3085
3086
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3086
3087
  }, Ki = (t) => {
3087
- const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = le(), { pageRotate: i } = Je(), c = k(null), l = Cn(), { pages: d } = oe(), [f, m] = q(null), P = k(!1), p = k(), v = W(() => n ? ke["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3088
+ const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = de(), { pageRotate: i } = Je(), c = k(null), l = Cn(), { pages: d } = oe(), [f, m] = q(null), P = k(!1), p = k(), v = W(() => n ? ke["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3088
3089
  width: Math.round(r.width),
3089
3090
  height: Math.round(r.height)
3090
3091
  }), [r]), C = E(() => {
@@ -3114,10 +3115,10 @@ const xe = {
3114
3115
  scale: 1
3115
3116
  },
3116
3117
  onLoaded: () => {
3117
- u.toBlob((s) => {
3118
- if (!s)
3118
+ u.toBlob((a) => {
3119
+ if (!a)
3119
3120
  return;
3120
- const _ = URL.createObjectURL(s);
3121
+ const _ = URL.createObjectURL(a);
3121
3122
  m(_);
3122
3123
  });
3123
3124
  }
@@ -3138,14 +3139,14 @@ const xe = {
3138
3139
  className: ke["rp-thumbnail-wrapper"],
3139
3140
  ref: c,
3140
3141
  children: [
3141
- /* @__PURE__ */ a(
3142
+ /* @__PURE__ */ s(
3142
3143
  "div",
3143
3144
  {
3144
3145
  style: {
3145
3146
  transform: `rotate(${i[e || 0]}deg)`
3146
3147
  },
3147
- className: se(v, ke["rp-thumbnail"]),
3148
- children: f ? /* @__PURE__ */ a(
3148
+ className: ce(v, ke["rp-thumbnail"]),
3149
+ children: f ? /* @__PURE__ */ s(
3149
3150
  "img",
3150
3151
  {
3151
3152
  src: f,
@@ -3153,7 +3154,7 @@ const xe = {
3153
3154
  height: b.height,
3154
3155
  alt: "thumbnail"
3155
3156
  }
3156
- ) : /* @__PURE__ */ a(
3157
+ ) : /* @__PURE__ */ s(
3157
3158
  "div",
3158
3159
  {
3159
3160
  className: ke["rp-thumbnail-loader"],
@@ -3161,12 +3162,12 @@ const xe = {
3161
3162
  width: `${b.width}px`,
3162
3163
  height: `${b.height}px`
3163
3164
  },
3164
- children: /* @__PURE__ */ a(_t, {})
3165
+ children: /* @__PURE__ */ s(_t, {})
3165
3166
  }
3166
3167
  )
3167
3168
  }
3168
3169
  ),
3169
- /* @__PURE__ */ a("div", { className: ke["rp-thumbnail-text"], children: e })
3170
+ /* @__PURE__ */ s("div", { className: ke["rp-thumbnail-text"], children: e })
3170
3171
  ]
3171
3172
  }
3172
3173
  );
@@ -3177,7 +3178,7 @@ const xe = {
3177
3178
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3178
3179
  t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Zi);
3179
3180
  }, Qi = et((t, e) => {
3180
- const { show: n, width: r } = t, { focusedPage: o, totalPages: i } = le(), { thumbnailPages: c, addPage: l, thumbnailLength: d, addToPage: f } = _n(), m = k(null), P = k(1);
3181
+ const { show: n, width: r } = t, { focusedPage: o, totalPages: i } = de(), { thumbnailPages: c, addPage: l, thumbnailLength: d, addToPage: f } = _n(), m = k(null), P = k(1);
3181
3182
  tn(e, () => m.current);
3182
3183
  const p = W(() => Object.values(c), [c]), v = E(() => {
3183
3184
  const b = d + 1;
@@ -3185,9 +3186,9 @@ const xe = {
3185
3186
  }, [l, i, d]);
3186
3187
  return D(() => {
3187
3188
  o > d && i > d ? f(o) : n && P.current !== o && (Xi(m.current, o), P.current = o);
3188
- }, [o, d, f, n, p]), Fo(m.current, v), /* @__PURE__ */ a("div", { ref: m, className: en["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ a("div", { className: en["rp-thumbnails"], children: n ? p.map((b, C) => {
3189
+ }, [o, d, f, n, p]), Fo(m.current, v), /* @__PURE__ */ s("div", { ref: m, className: en["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ s("div", { className: en["rp-thumbnails"], children: n ? p.map((b, C) => {
3189
3190
  var T, y;
3190
- return /* @__PURE__ */ a(
3191
+ return /* @__PURE__ */ s(
3191
3192
  Ki,
3192
3193
  {
3193
3194
  isFocused: o === ((T = b.page) == null ? void 0 : T.pageNumber),
@@ -3201,27 +3202,27 @@ const xe = {
3201
3202
  }) : null }) });
3202
3203
  }), Yi = () => {
3203
3204
  const { thumbnailIcon: t } = Ce(), { thumbnailIcon: e } = be();
3204
- return t || e || /* @__PURE__ */ a(yo, {});
3205
+ return t || e || /* @__PURE__ */ s(yo, {});
3205
3206
  }, Ji = () => {
3206
3207
  const { active: t, setActive: e } = _n(), [n, r] = q(Mo), o = k(null), i = k(null), { thumbnailTool: c, sidebarEnable: l } = Te(), { localeMessages: d } = he(), f = E(() => {
3207
3208
  e((P) => !P);
3208
- }, []), m = W(() => typeof c != "boolean" && c ? /* @__PURE__ */ a(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ a(Q, { content: d == null ? void 0 : d.thumbnailTooltip, children: /* @__PURE__ */ a(
3209
+ }, []), m = W(() => typeof c != "boolean" && c ? /* @__PURE__ */ s(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ s(Q, { content: d == null ? void 0 : d.thumbnailTooltip, children: /* @__PURE__ */ s(
3209
3210
  ve,
3210
3211
  {
3211
3212
  onClick: f,
3212
3213
  active: t,
3213
3214
  "aria-label": d == null ? void 0 : d.thumbnailTooltip,
3214
- children: /* @__PURE__ */ a(Yi, {})
3215
+ children: /* @__PURE__ */ s(Yi, {})
3215
3216
  }
3216
3217
  ) }) : null, [c, t, f, d]);
3217
- return /* @__PURE__ */ a(pe, { children: l && /* @__PURE__ */ H(
3218
+ return /* @__PURE__ */ s(pe, { children: l && /* @__PURE__ */ H(
3218
3219
  "div",
3219
3220
  {
3220
3221
  style: { "--rp-thumbnail-width": `${n}px` },
3221
3222
  className: ht["rp-sidebar-content-wrapper"],
3222
3223
  "data-rp": "sidebar",
3223
3224
  children: [
3224
- /* @__PURE__ */ a("div", { ref: i, className: ht["rp-sidebar-content"], children: m }),
3225
+ /* @__PURE__ */ s("div", { ref: i, className: ht["rp-sidebar-content"], children: m }),
3225
3226
  /* @__PURE__ */ H(
3226
3227
  "div",
3227
3228
  {
@@ -3229,8 +3230,8 @@ const xe = {
3229
3230
  hidden: !t,
3230
3231
  className: ht["rp-thumbnails-wrapper"],
3231
3232
  children: [
3232
- /* @__PURE__ */ a(Qi, { show: t, ref: o }),
3233
- /* @__PURE__ */ a(
3233
+ /* @__PURE__ */ s(Qi, { show: t, ref: o }),
3234
+ /* @__PURE__ */ s(
3234
3235
  Ro,
3235
3236
  {
3236
3237
  onWidthChange: r,
@@ -3255,27 +3256,27 @@ const xe = {
3255
3256
  onLoaded: d,
3256
3257
  cleanupOnLoaded: f,
3257
3258
  onLayoutWidthChange: m
3258
- } = t, [P, p] = q(null), { setContainer: v } = _e(), { loading: b } = oe(), { LoaderImageComponent: C } = sn();
3259
+ } = t, [P, p] = q(null), { setContainer: v } = _e(), { loading: b } = oe(), { LoaderImageComponent: C } = an();
3259
3260
  return D(() => (d && d(), () => {
3260
3261
  f && f();
3261
3262
  }), [d, f]), // TODO: deprecated in v2.0.0, remove later ~
3262
- /* @__PURE__ */ a(In, { toolbarRef: P, ref: e, children: /* @__PURE__ */ a(Io, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(xo, { slots: r, children: /* @__PURE__ */ a(Do, { icons: o, children: /* @__PURE__ */ a(Po, { children: /* @__PURE__ */ H(So, { getContainerRef: v, style: i, className: c, children: [
3263
+ /* @__PURE__ */ s(In, { toolbarRef: P, ref: e, children: /* @__PURE__ */ s(Io, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ s(xo, { slots: r, children: /* @__PURE__ */ s(Do, { icons: o, children: /* @__PURE__ */ s(Po, { children: /* @__PURE__ */ H(So, { getContainerRef: v, style: i, className: c, children: [
3263
3264
  /* @__PURE__ */ H(Lo, { children: [
3264
3265
  /* @__PURE__ */ H("div", { className: we["rp-layout"], children: [
3265
- /* @__PURE__ */ a(
3266
- Bi,
3266
+ /* @__PURE__ */ s(
3267
+ ji,
3267
3268
  {
3268
3269
  ref: p
3269
3270
  }
3270
3271
  ),
3271
3272
  /* @__PURE__ */ H("div", { className: we["rp-content"], children: [
3272
- /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(Ji, {}) }),
3273
- /* @__PURE__ */ a("div", { className: we["rp-pages"], children: n })
3273
+ /* @__PURE__ */ s("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ s(Ji, {}) }),
3274
+ /* @__PURE__ */ s("div", { className: we["rp-pages"], children: n })
3274
3275
  ] })
3275
3276
  ] }),
3276
- /* @__PURE__ */ a(Oo, {})
3277
+ /* @__PURE__ */ s(Oo, {})
3277
3278
  ] }),
3278
- b ? /* @__PURE__ */ a(
3279
+ b ? /* @__PURE__ */ s(
3279
3280
  "div",
3280
3281
  {
3281
3282
  className: we["rp-loader"],
@@ -3288,7 +3289,7 @@ const xe = {
3288
3289
  width: "100%",
3289
3290
  height: "100%"
3290
3291
  },
3291
- children: /* @__PURE__ */ a(
3292
+ children: /* @__PURE__ */ s(
3292
3293
  "div",
3293
3294
  {
3294
3295
  style: {
@@ -3298,7 +3299,7 @@ const xe = {
3298
3299
  height: "100%",
3299
3300
  width: "100%"
3300
3301
  },
3301
- children: C && /* @__PURE__ */ a(C, {})
3302
+ children: C && /* @__PURE__ */ s(C, {})
3302
3303
  }
3303
3304
  )
3304
3305
  }
@@ -3320,30 +3321,30 @@ export {
3320
3321
  $r as E,
3321
3322
  yt as F,
3322
3323
  oi as G,
3323
- ai as H,
3324
- si as I,
3324
+ si as H,
3325
+ ai as I,
3325
3326
  ci as J,
3326
3327
  Li as K,
3327
3328
  In as L,
3328
3329
  Un as M,
3329
- Bn as N,
3330
+ jn as N,
3330
3331
  Hi as O,
3331
- js as P,
3332
+ Ba as P,
3332
3333
  $i as Q,
3333
- Qs as R,
3334
+ Qa as R,
3334
3335
  Ui as S,
3335
- Ks as T,
3336
+ Ka as T,
3336
3337
  Jt as U,
3337
- Bi as V,
3338
+ ji as V,
3338
3339
  Ki as W,
3339
3340
  Ji as X,
3340
3341
  ec as a,
3341
3342
  $n as b,
3342
3343
  tt as c,
3343
3344
  Pt as d,
3344
- Zs as e,
3345
- Xs as f,
3346
- Bs as g,
3345
+ Za as e,
3346
+ Xa as f,
3347
+ ja as g,
3347
3348
  _n as h,
3348
3349
  pt as i,
3349
3350
  Me as j,
@@ -3351,13 +3352,13 @@ export {
3351
3352
  qi as l,
3352
3353
  tc as m,
3353
3354
  Qi as n,
3354
- ji as o,
3355
+ Bi as o,
3355
3356
  mn as p,
3356
3357
  Lr as q,
3357
3358
  gn as r,
3358
3359
  Er as s,
3359
3360
  vn as t,
3360
- le as u,
3361
+ de as u,
3361
3362
  Nr as v,
3362
3363
  wn as w,
3363
3364
  Or as x,