@pdf-viewer/react 1.17.0-beta.1 → 1.17.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/{ToolbarLayout.module-00eddd49.js → ToolbarLayout.module-60ee3cc4.js} +250 -249
  2. package/dist/assets/style.css +1 -1
  3. package/dist/assets/style.js +4 -4
  4. package/dist/components/RPController.js +4 -4
  5. package/dist/components/RPPages.js +4 -4
  6. package/dist/components/RPProvider.js +4 -4
  7. package/dist/components/layout/LayoutContainer.js +4 -4
  8. package/dist/components/layout/RPDefaultLayout.js +4 -4
  9. package/dist/components/layout/RPLayout.js +4 -4
  10. package/dist/components/layout/sidebar/RPSidebar.js +4 -4
  11. package/dist/components/layout/sidebar/Thumbnail.js +4 -4
  12. package/dist/components/layout/sidebar/Thumbnails.js +4 -4
  13. package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
  14. package/dist/components/layout/toolbar/DocumentDialog.js +4 -4
  15. package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
  16. package/dist/components/layout/toolbar/FileDownloadTool.js +4 -4
  17. package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
  18. package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
  19. package/dist/components/layout/toolbar/MenuItem.js +3 -3
  20. package/dist/components/layout/toolbar/MenuSeparator.js +3 -3
  21. package/dist/components/layout/toolbar/MostPageTool.js +4 -4
  22. package/dist/components/layout/toolbar/OtherTool.js +4 -4
  23. package/dist/components/layout/toolbar/Paginate.js +4 -4
  24. package/dist/components/layout/toolbar/PrintTool.js +4 -4
  25. package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
  26. package/dist/components/layout/toolbar/RPMoreOptions.js +4 -4
  27. package/dist/components/layout/toolbar/RPToolbar.js +4 -4
  28. package/dist/components/layout/toolbar/RPToolbarEnd.js +4 -4
  29. package/dist/components/layout/toolbar/RotateTool.js +3 -3
  30. package/dist/components/layout/toolbar/ScrollModeTool.js +3 -3
  31. package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
  32. package/dist/components/layout/toolbar/SearchResultNavigator.js +4 -4
  33. package/dist/components/layout/toolbar/SearchTool.js +4 -4
  34. package/dist/components/layout/toolbar/SelectionModeTool.js +3 -3
  35. package/dist/components/layout/toolbar/ThumbnailTool.js +4 -4
  36. package/dist/components/layout/toolbar/ToolbarCustom.js +20 -22
  37. package/dist/components/layout/toolbar/ToolbarDefault.js +13 -15
  38. package/dist/components/layout/toolbar/ToolbarLayout.js +4 -4
  39. package/dist/components/layout/toolbar/ViewModeTool.js +3 -3
  40. package/dist/components/layout/toolbar/ZoomTool.js +4 -4
  41. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +4 -4
  42. package/dist/components/layout/toolbar/tools/DualPageTool.js +4 -4
  43. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +4 -4
  44. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +4 -4
  45. package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
  46. package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
  47. package/dist/components/layout/toolbar/tools/InputPageTool.js +4 -4
  48. package/dist/components/layout/toolbar/tools/NextPageTool.js +4 -4
  49. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +4 -4
  50. package/dist/components/layout/toolbar/tools/PrintTool.js +4 -4
  51. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
  52. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
  53. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
  54. package/dist/components/layout/toolbar/tools/SinglePageTool.js +4 -4
  55. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
  56. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +4 -4
  57. package/dist/components/layout/toolbar/tools/ZoomInTool.js +2 -2
  58. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +4 -4
  59. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +4 -4
  60. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +2 -2
  61. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +4 -4
  62. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +4 -4
  63. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +3 -3
  64. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +4 -4
  65. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +4 -4
  66. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +3 -3
  67. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +4 -4
  68. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +4 -4
  69. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +3 -3
  70. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
  71. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +3 -3
  72. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +3 -3
  73. package/dist/components/page/AnnotationLayer.js +4 -4
  74. package/dist/components/page/CanvasLayer.js +4 -4
  75. package/dist/components/page/DualPage.js +4 -4
  76. package/dist/components/page/DualPageWithCover.js +4 -4
  77. package/dist/components/page/RPPage.js +4 -4
  78. package/dist/components/page/SinglePage.js +4 -4
  79. package/dist/components/page/TextHighlightLayer.js +4 -4
  80. package/dist/components/page/TextLayer.js +4 -4
  81. package/dist/components/ui/Checkbox.js +1 -1
  82. package/dist/components/ui/DropDown.js +3 -3
  83. package/dist/components/ui/LoadingIndicator.js +4 -4
  84. package/dist/components/ui/RPTooltip.js +415 -201
  85. package/dist/contexts/PaginationContext.js +4 -4
  86. package/dist/contexts/PrintContext.js +4 -4
  87. package/dist/contexts/RenderQueueProvider.js +4 -4
  88. package/dist/contexts/SearchContext.js +4 -4
  89. package/dist/contexts/ThumbnailsContext.js +4 -4
  90. package/dist/floating-ui.react-dom-6b2fe0df.js +1474 -0
  91. package/dist/{index-c9a2990a.js → index-35c7f4a2.js} +3 -3
  92. package/dist/index-f563c6f0.js +1889 -0
  93. package/dist/main.js +4 -4
  94. package/dist/utils/hooks/useFileDownload.js +4 -4
  95. package/dist/utils/hooks/useLicense.js +1 -1
  96. package/dist/utils/hooks/usePaginate.js +4 -4
  97. package/dist/utils/hooks/usePresentPage.js +4 -4
  98. package/dist/utils/hooks/usePrint.js +4 -4
  99. package/dist/utils/hooks/useScrollToPage.js +4 -4
  100. package/dist/utils/hooks/useSearch.js +4 -4
  101. package/dist/utils/hooks/useThumbnail.js +4 -4
  102. package/dist/utils/hooks/useVirtualReactWindow.js +4 -4
  103. package/package.json +1 -1
  104. package/dist/index-808ea7bf.js +0 -1685
  105. package/dist/index-a48ec088.js +0 -1672
@@ -10,12 +10,12 @@ import { useDocumentContext as oe } from "./contexts/RPDocumentContext.js";
10
10
  import { useDocumentPasswordContext as vr } from "./contexts/DocumentPasswordContext.js";
11
11
  import { useDarkModeContext as wr } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
- import { useLayerContext as br } from "./contexts/LayerContext.js";
13
+ import { useLayerContext as _r } from "./contexts/LayerContext.js";
14
14
  import { useZoomContext as rt } from "./contexts/ZoomContext.js";
15
15
  import { useViewModeContext as He } from "./contexts/ViewModeContext.js";
16
16
  import { useVirtualScrollContext as ot } from "./contexts/VirtualScrollContext.js";
17
17
  import { useVirtualGridContext as vn } from "./contexts/VirtualGridContext.js";
18
- import { useSelectionModeContext as _r } from "./contexts/SelectionModeContext.js";
18
+ import { useSelectionModeContext as br } from "./contexts/SelectionModeContext.js";
19
19
  import { useInitialStateContext as xt } from "./contexts/InitialStateContext.js";
20
20
  import { useFullScreenContext as Pr } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
@@ -44,7 +44,7 @@ import * as Ar from "pdfjs-dist";
44
44
  import { PixelsPerInch as zr, AnnotationMode as Wr, RenderingCancelledException as Fr, AnnotationLayer as kr } from "pdfjs-dist";
45
45
  import { ThumbnailIcon as Mr } from "./components/icons/Thumbnail.js";
46
46
  import { c as se } from "./clsx-0c6e471a.js";
47
- import { LoaderIcon as bn } from "./components/icons/LoaderIcon.js";
47
+ import { LoaderIcon as _n } from "./components/icons/LoaderIcon.js";
48
48
  import { Container as Hr } from "./components/layout/Container.js";
49
49
  import { useViewportContext as Se, ViewportProvider as $r } from "./contexts/ViewportContext.js";
50
50
  import { useToolbarComponentContext as Ce, ToolbarComponentProvider as Gr } from "./contexts/ToolbarComponentContext.js";
@@ -82,12 +82,12 @@ import { getWordPositionInPage as mo } from "./utils/getWordPositionInPage.js";
82
82
  import { getThumbnailViewport as go } from "./utils/getThumbnailViewport.js";
83
83
  import { smoothScrollTo as ht } from "./utils/smoothScrollTo.js";
84
84
  import { appConsole as vo } from "./utils/appConsole.js";
85
- import { FileUploadTool as _n } from "./components/layout/toolbar/FileUploadTool.js";
85
+ import { FileUploadTool as bn } from "./components/layout/toolbar/FileUploadTool.js";
86
86
  import { DarkModeTool as wo } from "./components/layout/toolbar/DarkModeTool.js";
87
- import { ThreeDotIcon as bo } from "./components/icons/ThreeDotIcon.js";
88
- import { c as _o, u as Ot, P as Ke, a as qe, b as Dt, k as Po, e as To, i as Co } from "./index-c9a2990a.js";
89
- import { D as yo, u as ft } from "./index-808ea7bf.js";
90
- import { a as Io, h as xo, u as So, F as Ro, b as Lo, G as tt } from "./index-a48ec088.js";
87
+ import { ThreeDotIcon as _o } from "./components/icons/ThreeDotIcon.js";
88
+ import { c as bo, u as Ot, P as Ke, a as qe, b as Dt, k as Po, e as To, i as Co } from "./index-35c7f4a2.js";
89
+ import { D as yo, e as ft } from "./floating-ui.react-dom-6b2fe0df.js";
90
+ import { a as Io, h as xo, u as So, F as Ro, b as Lo, G as tt } from "./index-f563c6f0.js";
91
91
  import { CloseIcon as Eo } from "./components/icons/CloseIcon.js";
92
92
  import { DocumentProperties as No } from "./components/layout/toolbar/DocumentProperties.js";
93
93
  import { RotateTool as Oo } from "./components/layout/toolbar/RotateTool.js";
@@ -111,7 +111,7 @@ const yn = () => {
111
111
  }, [n]), A(() => {
112
112
  m.current = e, C.current = t;
113
113
  }, [e, t]);
114
- const b = N(
114
+ const _ = N(
115
115
  (y, w) => {
116
116
  if (!r)
117
117
  return;
@@ -146,7 +146,7 @@ const yn = () => {
146
146
  const g = y - 1;
147
147
  let h = g, p = 0;
148
148
  if (C.current === re.DUAL_PAGE && m.current === ie.PAGE_SCROLLING) {
149
- b(y, w);
149
+ _(y, w);
150
150
  return;
151
151
  }
152
152
  if (m.current === ie.PAGE_SCROLLING) {
@@ -157,7 +157,7 @@ const yn = () => {
157
157
  return;
158
158
  const l = o;
159
159
  w === "smooth" && (T.current = y);
160
- const { columnsWidth: v, rowsHeight: _ } = Et(
160
+ const { columnsWidth: v, rowsHeight: b } = Et(
161
161
  { widths: s, heights: f },
162
162
  d
163
163
  );
@@ -174,7 +174,7 @@ const yn = () => {
174
174
  }
175
175
  if (C.current === re.DUAL_PAGE) {
176
176
  p = g % 2, h = Math.floor(g / 2);
177
- const R = ke(v, p), O = ke(_, h), D = {
177
+ const R = ke(v, p), O = ke(b, h), D = {
178
178
  left: Math.floor(R),
179
179
  top: Math.floor(O)
180
180
  };
@@ -183,7 +183,7 @@ const yn = () => {
183
183
  behavior: w
184
184
  });
185
185
  }
186
- const I = ke(_, h), S = {
186
+ const I = ke(b, h), S = {
187
187
  left: 0,
188
188
  top: Math.floor(I)
189
189
  };
@@ -195,7 +195,7 @@ const yn = () => {
195
195
  [
196
196
  o,
197
197
  d,
198
- b,
198
+ _,
199
199
  a,
200
200
  ht,
201
201
  f,
@@ -211,7 +211,7 @@ const yn = () => {
211
211
  return l < 0 || l > o ? { success: !1, currentPage: c.current } : (n(l), c.current = l, { success: !0, currentPage: +h });
212
212
  },
213
213
  [o]
214
- ), T = N(u, [u]), b = N(
214
+ ), T = N(u, [u]), _ = N(
215
215
  (h) => {
216
216
  const p = u(h);
217
217
  return p.success && a(p.currentPage), p;
@@ -225,13 +225,13 @@ const yn = () => {
225
225
  return d === re.DUAL_PAGE && l + v < m.clientWidth;
226
226
  }, [d, f, m, o]), y = N(() => {
227
227
  let h = e - 1;
228
- P(h) && (h = e - 2), b(h);
229
- }, [b, e, d, s, P]), w = W(() => d === re.DUAL_PAGE && s === ie.PAGE_SCROLLING ? e === o - 1 : e === o, [e, o, d, s]), g = N(() => {
228
+ P(h) && (h = e - 2), _(h);
229
+ }, [_, e, d, s, P]), w = W(() => d === re.DUAL_PAGE && s === ie.PAGE_SCROLLING ? e === o - 1 : e === o, [e, o, d, s]), g = N(() => {
230
230
  if (w)
231
231
  return;
232
232
  let h = e + 1;
233
- P(h) && (h = e + 2), b(h);
234
- }, [b, e, P, d, s, w]);
233
+ P(h) && (h = e + 2), _(h);
234
+ }, [_, e, P, d, s, w]);
235
235
  return {
236
236
  focusedPage: C,
237
237
  totalPages: o,
@@ -239,7 +239,7 @@ const yn = () => {
239
239
  setTotalPages: r,
240
240
  nextPage: g,
241
241
  prevPage: y,
242
- goToPage: b
242
+ goToPage: _
243
243
  };
244
244
  }, In = Be({
245
245
  focusedPage: 0,
@@ -256,7 +256,7 @@ const yn = () => {
256
256
  }), ce = () => {
257
257
  const t = je(In);
258
258
  return typeof (t == null ? void 0 : t.focusedPage) > "u" && vo.error("Please use this hooks inside children component of RPProvider"), t;
259
- }, bc = ({ children: t }) => {
259
+ }, _c = ({ children: t }) => {
260
260
  const { pdf: e } = oe(), { setCurrentPage: n } = Er(), { focusedPage: o, totalPages: r, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: s, prevPage: f } = qo();
261
261
  return A(() => {
262
262
  e != null && e.numPages && (c(e.numPages), a(1));
@@ -290,7 +290,7 @@ const yn = () => {
290
290
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
291
291
  const l = document.querySelector(".rp-print-zone");
292
292
  l && l.remove();
293
- }, []), b = N(() => {
293
+ }, []), _ = N(() => {
294
294
  u.current = !1, a(!1), d(!1), f(null), C(void 0), o({
295
295
  loadedPages: 0,
296
296
  totalPages: 0,
@@ -301,14 +301,14 @@ const yn = () => {
301
301
  }, y = async ({
302
302
  scratchCanvas: l,
303
303
  pdfDocument: v,
304
- pageNumber: _,
304
+ pageNumber: b,
305
305
  viewerPdfPage: I,
306
306
  printResolution: S,
307
307
  optionalContentConfigPromise: x,
308
308
  printAnnotationStoragePromise: R
309
309
  }) => {
310
310
  if (u.current) {
311
- b();
311
+ _();
312
312
  return;
313
313
  }
314
314
  const O = S / zr.PDF;
@@ -316,11 +316,11 @@ const yn = () => {
316
316
  const D = l.getContext("2d");
317
317
  D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, l.width, l.height), D.restore();
318
318
  const [z, E] = await Promise.all([
319
- v.getPage(_),
319
+ v.getPage(b),
320
320
  R
321
321
  ]);
322
322
  if (u.current) {
323
- b();
323
+ _();
324
324
  return;
325
325
  }
326
326
  const L = {
@@ -340,47 +340,47 @@ const yn = () => {
340
340
  }, w = N(() => {
341
341
  const l = window.print;
342
342
  return new Promise((v) => {
343
- const _ = (x) => {
343
+ const b = (x) => {
344
344
  setTimeout(() => {
345
345
  l.call(window), setTimeout(() => x(), 20);
346
346
  }, 0);
347
347
  };
348
348
  if (document.querySelector(".rp-print-zone")) {
349
- _(v);
349
+ b(v);
350
350
  return;
351
351
  }
352
352
  const S = new MutationObserver(() => {
353
- document.querySelector(".rp-print-zone") && (_(v), S.disconnect());
353
+ document.querySelector(".rp-print-zone") && (b(v), S.disconnect());
354
354
  });
355
355
  S.observe(document.body, { childList: !0, subtree: !0 });
356
356
  });
357
357
  }, []), g = async (l) => {
358
- const v = document.createElement("img"), _ = document.createElement("div");
359
- return _.classList.add("rp-print-page"), await new Promise((I, S) => {
358
+ const v = document.createElement("img"), b = document.createElement("div");
359
+ return b.classList.add("rp-print-page"), await new Promise((I, S) => {
360
360
  l.toBlob((x) => {
361
361
  x ? (v.src = URL.createObjectURL(x), v.onload = () => {
362
362
  URL.revokeObjectURL(v.src), I();
363
363
  }, v.onerror = S) : S(new Error("Failed to create blob"));
364
364
  });
365
365
  }).catch(() => {
366
- }), _.appendChild(v), _;
366
+ }), b.appendChild(v), b;
367
367
  }, h = (l, v) => {
368
- const _ = document.createElement("div");
369
- _.classList.add("rp-print-zone");
368
+ const b = document.createElement("div");
369
+ b.classList.add("rp-print-zone");
370
370
  const I = document.createElement("style"), S = v.get(1);
371
371
  if (S) {
372
372
  const { width: x, height: R } = S == null ? void 0 : S.page.getViewport({ scale: 1 });
373
373
  I.innerHTML = `@page { size: ${x}px ${R}px }`;
374
374
  }
375
- return _.appendChild(I), _.append(...l), _;
375
+ return b.appendChild(I), b.append(...l), b;
376
376
  }, p = N(
377
377
  async (l) => {
378
378
  if (!t)
379
379
  return;
380
- b();
380
+ _();
381
381
  const v = l && "visibleDefaultProgress" in l ? l : void 0;
382
382
  (v == null ? void 0 : v.visibleDefaultProgress) !== void 0 ? C(v.visibleDefaultProgress) : C(!0);
383
- const _ = document.createElement("canvas"), I = [];
383
+ const b = document.createElement("canvas"), I = [];
384
384
  try {
385
385
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
386
386
  const x = t.getOptionalContentConfig({ intent: "print" }), R = Promise.resolve(
@@ -388,12 +388,12 @@ const yn = () => {
388
388
  ), O = e.size;
389
389
  for (const [z, E] of e) {
390
390
  if (u.current) {
391
- b();
391
+ _();
392
392
  return;
393
393
  }
394
394
  const L = E.page.getViewport({ scale: 1 });
395
395
  if (await y({
396
- scratchCanvas: _,
396
+ scratchCanvas: b,
397
397
  pdfDocument: t,
398
398
  pageNumber: z,
399
399
  viewerPdfPage: L,
@@ -401,10 +401,10 @@ const yn = () => {
401
401
  optionalContentConfigPromise: x,
402
402
  printAnnotationStoragePromise: R
403
403
  }), u.current) {
404
- b();
404
+ _();
405
405
  return;
406
406
  }
407
- const F = await g(_);
407
+ const F = await g(b);
408
408
  I.push(F);
409
409
  const G = parseFloat((I.length / O * 100).toFixed(2));
410
410
  o({
@@ -414,7 +414,7 @@ const yn = () => {
414
414
  });
415
415
  }
416
416
  if (u.current) {
417
- b();
417
+ _();
418
418
  return;
419
419
  }
420
420
  const D = h(I, e);
@@ -422,19 +422,19 @@ const yn = () => {
422
422
  } catch (S) {
423
423
  d(!0), S instanceof Error && f(S);
424
424
  } finally {
425
- _.height = 0, _.width = 0;
425
+ b.height = 0, b.width = 0;
426
426
  }
427
427
  },
428
- [t, e, u, b, h, w]
428
+ [t, e, u, _, h, w]
429
429
  );
430
430
  return A(() => {
431
431
  const l = () => {
432
- b(), T();
432
+ _(), T();
433
433
  };
434
434
  return window.addEventListener("afterprint", l, !0), () => {
435
435
  window.removeEventListener("afterprint", l, !0);
436
436
  };
437
- }, [T, b]), {
437
+ }, [T, _]), {
438
438
  print: p,
439
439
  cancel: P,
440
440
  progress: n,
@@ -460,12 +460,12 @@ const yn = () => {
460
460
  console.error("Error in setOnError callback:", e);
461
461
  }
462
462
  }
463
- }), _c = ({ children: t }) => {
463
+ }), bc = ({ children: t }) => {
464
464
  const [e, n] = H(null), [o, r] = H(null), { print: a, cancel: c, progress: d, isComplete: s, isError: f, error: m, showDefaultProgress: C } = Uo(), u = N((w) => {
465
465
  w && typeof w == "function" && r(() => w);
466
466
  }, []), T = (w) => {
467
467
  m && w(m);
468
- }, b = N(
468
+ }, _ = N(
469
469
  (w) => {
470
470
  n(() => w);
471
471
  },
@@ -485,7 +485,7 @@ const yn = () => {
485
485
  }, y = {
486
486
  print: a,
487
487
  cancel: c,
488
- setOnProgress: b,
488
+ setOnProgress: _,
489
489
  setOnComplete: u,
490
490
  setOnError: T,
491
491
  progress: d,
@@ -561,7 +561,7 @@ const yn = () => {
561
561
  }
562
562
  );
563
563
  }, Bo = (t = {}, e = "") => {
564
- const [n, o] = H(e), [r, a] = H(!1), { pdf: c, pages: d } = oe(), { widths: s, heights: f } = Ze(), m = M(!n), { currentZoom: C } = rt(), [u, T] = H([]), { setFocusedPage: b } = ce(), { columnCount: P } = He(), { pageRotate: y } = it(), [w, g] = H(0), { pageScrollElementRef: h, virtualScrollableElementRef: p } = ot(), { scrollMode: l } = Ae(), { pagesRef: v } = Te(), _ = M({}), I = M(0), S = W(() => w === 0 ? null : u[w - 1], [w, u]), x = W(() => u.length, [u]), R = N(
564
+ const [n, o] = H(e), [r, a] = H(!1), { pdf: c, pages: d } = oe(), { widths: s, heights: f } = Ze(), m = M(!n), { currentZoom: C } = rt(), [u, T] = H([]), { setFocusedPage: _ } = ce(), { columnCount: P } = He(), { pageRotate: y } = it(), [w, g] = H(0), { pageScrollElementRef: h, virtualScrollableElementRef: p } = ot(), { scrollMode: l } = Ae(), { pagesRef: v } = Te(), b = M({}), I = M(0), S = W(() => w === 0 ? null : u[w - 1], [w, u]), x = W(() => u.length, [u]), R = N(
565
565
  (E) => {
566
566
  if (E === 0)
567
567
  return;
@@ -572,7 +572,7 @@ const yn = () => {
572
572
  if (!F || !v)
573
573
  return;
574
574
  const G = d.get(L.page);
575
- if (l === ie.PAGE_SCROLLING && b(L.page), !G)
575
+ if (l === ie.PAGE_SCROLLING && _(L.page), !G)
576
576
  return;
577
577
  let q = 0, U = 0;
578
578
  if (l === ie.VERTICAL_SCROLLING) {
@@ -600,7 +600,7 @@ const yn = () => {
600
600
  },
601
601
  [
602
602
  d,
603
- b,
603
+ _,
604
604
  s,
605
605
  f,
606
606
  l,
@@ -641,7 +641,7 @@ const yn = () => {
641
641
  return;
642
642
  }
643
643
  m.current = !1, a(!0), T([]), g(0), z(c).then((E) => {
644
- _.current = E;
644
+ b.current = E;
645
645
  const F = Object.keys(E).reduce((G, q) => {
646
646
  const U = Tr(
647
647
  [n],
@@ -773,8 +773,8 @@ const yn = () => {
773
773
  if (r.current && u) {
774
774
  const T = r.current;
775
775
  T.hidden = !0;
776
- const b = d.current;
777
- b && b.cancel(), o && o(), m.enqueue(
776
+ const _ = d.current;
777
+ _ && _.cancel(), o && o(), m.enqueue(
778
778
  C.current,
779
779
  {
780
780
  page: u.page,
@@ -794,7 +794,7 @@ const yn = () => {
794
794
  m.removeQueue(C.current);
795
795
  };
796
796
  }, [a, e, c, s, o, n, m, f]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
797
- }, Zo = "_selecting_1oep2_10", Ko = "_markedContent_1oep2_33", _e = {
797
+ }, Zo = "_selecting_1oep2_10", Ko = "_markedContent_1oep2_33", be = {
798
798
  "rp-text-layer": "_rp-text-layer_1oep2_1",
799
799
  selecting: Zo,
800
800
  markedContent: Ko,
@@ -812,39 +812,39 @@ const yn = () => {
812
812
  d(l);
813
813
  },
814
814
  [C]
815
- ), T = M(), b = M(!1), P = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
815
+ ), T = M(), _ = M(!1), P = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
816
816
  A(() => ((() => {
817
817
  if (T.current)
818
818
  return;
819
819
  T.current = new AbortController();
820
820
  const { signal: h } = T.current, p = () => {
821
821
  P().forEach((v) => {
822
- const _ = v.querySelector(".endOfContent");
823
- _ && (v.appendChild(_), _.style.width = "", _.style.height = "", v.classList.remove(_e.selecting));
822
+ const b = v.querySelector(".endOfContent");
823
+ b && (v.appendChild(b), b.style.width = "", b.style.height = "", v.classList.remove(be.selecting));
824
824
  });
825
825
  };
826
826
  document.addEventListener(
827
827
  "pointerdown",
828
828
  () => {
829
- b.current = !0;
829
+ _.current = !0;
830
830
  },
831
831
  { signal: h }
832
832
  ), document.addEventListener(
833
833
  "pointerup",
834
834
  () => {
835
- b.current = !1, p();
835
+ _.current = !1, p();
836
836
  },
837
837
  { signal: h }
838
838
  ), window.addEventListener(
839
839
  "blur",
840
840
  () => {
841
- b.current = !1, p();
841
+ _.current = !1, p();
842
842
  },
843
843
  { signal: h }
844
844
  ), document.addEventListener(
845
845
  "keyup",
846
846
  () => {
847
- b.current || p();
847
+ _.current || p();
848
848
  },
849
849
  { signal: h }
850
850
  );
@@ -860,26 +860,26 @@ const yn = () => {
860
860
  p();
861
861
  return;
862
862
  }
863
- const _ = /* @__PURE__ */ new Set();
863
+ const b = /* @__PURE__ */ new Set();
864
864
  for (let E = 0; E < v.rangeCount; E++) {
865
865
  const L = v.getRangeAt(E);
866
866
  P().forEach((F) => {
867
- L.intersectsNode(F) && !_.has(F) && _.add(F);
867
+ L.intersectsNode(F) && !b.has(F) && b.add(F);
868
868
  });
869
869
  }
870
870
  P().forEach((E) => {
871
- if (_.has(E))
872
- E.classList.add(_e.selecting);
871
+ if (b.has(E))
872
+ E.classList.add(be.selecting);
873
873
  else {
874
874
  const L = E.querySelector(".endOfContent");
875
- L && (E.appendChild(L), L.style.width = "", L.style.height = "", E.classList.remove(_e.selecting));
875
+ L && (E.appendChild(L), L.style.width = "", L.style.height = "", E.classList.remove(be.selecting));
876
876
  }
877
877
  });
878
878
  const I = v.getRangeAt(0);
879
879
  let x = l && (I.compareBoundaryPoints(Range.END_TO_END, l) === 0 || I.compareBoundaryPoints(Range.START_TO_END, l) === 0) ? I.startContainer : I.endContainer;
880
880
  x.nodeType === Node.TEXT_NODE && (x = x.parentNode);
881
881
  const R = (D = x.parentElement) == null ? void 0 : D.closest(
882
- _e["rp-text-layer"]
882
+ be["rp-text-layer"]
883
883
  ), O = R == null ? void 0 : R.querySelector(".endOfContent");
884
884
  O && R && (O.style.width = R.style.width, O.style.height = R.style.height, (z = x.parentElement) == null || z.insertBefore(O, x.nextSibling)), l = I.cloneRange();
885
885
  },
@@ -890,9 +890,9 @@ const yn = () => {
890
890
  (h = T.current) == null || h.abort(), T.current = void 0;
891
891
  }), [P]);
892
892
  const y = N(() => {
893
- o.current && o.current.classList.add(_e.selecting);
893
+ o.current && o.current.classList.add(be.selecting);
894
894
  }, []), w = N(() => {
895
- o.current && o.current.classList.remove(_e.selecting);
895
+ o.current && o.current.classList.remove(be.selecting);
896
896
  }, []);
897
897
  return A(() => {
898
898
  if (m.current.forEach((p) => {
@@ -921,11 +921,11 @@ const yn = () => {
921
921
  container: h
922
922
  }), f.current = p, h && (h.innerText = ""), s.current.render();
923
923
  }).then(() => {
924
- var _, I;
924
+ var b, I;
925
925
  [].slice.call(h.children).forEach((S) => {
926
- S.classList.add(_e["rp-text-layer-text"]), S.setAttribute("data-rp", "rp-text-layer-text");
926
+ S.classList.add(be["rp-text-layer-text"]), S.setAttribute("data-rp", "rp-text-layer-text");
927
927
  });
928
- const l = (_ = s.current) == null ? void 0 : _.textDivs;
928
+ const l = (b = s.current) == null ? void 0 : b.textDivs;
929
929
  l && f.current && u(f.current, l);
930
930
  const v = document.createElement("div");
931
931
  v.className = "endOfContent", (I = o.current) == null || I.appendChild(v);
@@ -937,7 +937,7 @@ const yn = () => {
937
937
  }, [n, e]), A(() => {
938
938
  var p;
939
939
  [].slice.call(o.current.children).forEach((l) => {
940
- l.classList.add(_e["rp-text-layer-text"]);
940
+ l.classList.add(be["rp-text-layer-text"]);
941
941
  });
942
942
  const h = (p = s.current) == null ? void 0 : p.textDivs;
943
943
  h && f.current && u(f.current, h, !0);
@@ -946,7 +946,7 @@ const yn = () => {
946
946
  {
947
947
  "data-rp-text-layer": !0,
948
948
  "data-rp": `page-${e}-textLayer`,
949
- className: _e["rp-text-layer"],
949
+ className: be["rp-text-layer"],
950
950
  ref: o,
951
951
  onMouseDown: y,
952
952
  onMouseUp: w
@@ -957,14 +957,14 @@ const yn = () => {
957
957
  };
958
958
  let Yo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
959
959
  const Jo = (t) => {
960
- const { pageNumber: e } = t, n = M(null), { pages: o, pdf: r } = oe(), { interactiveForm: a } = xt(), c = M(), [d, s] = H(), { goToPage: f } = ce(), { scrollMode: m } = Ae(), { print: C } = st(), { download: u } = Xn(), T = M(null), b = W(() => o.get(e), [o, e]), P = W(() => b == null ? void 0 : b.page.getViewport(), [b]);
960
+ const { pageNumber: e } = t, n = M(null), { pages: o, pdf: r } = oe(), { interactiveForm: a } = xt(), c = M(), [d, s] = H(), { goToPage: f } = ce(), { scrollMode: m } = Ae(), { print: C } = st(), { download: u } = Xn(), T = M(null), _ = W(() => o.get(e), [o, e]), P = W(() => _ == null ? void 0 : _.page.getViewport(), [_]);
961
961
  A(() => {
962
962
  c.current && (c.current.div.replaceChildren(), c.current = void 0);
963
963
  }, [r]), A(() => {
964
- b && b.page.getAnnotations().then((w) => {
964
+ _ && _.page.getAnnotations().then((w) => {
965
965
  c.current = void 0, s(w), n.current && (n.current.innerText = "");
966
966
  });
967
- }, [b]);
967
+ }, [_]);
968
968
  const y = N(
969
969
  (w) => {
970
970
  !d || !r || (Yr(w), Jr(w, r, d).then((g) => {
@@ -975,9 +975,9 @@ const Jo = (t) => {
975
975
  [r, d, m, C, u]
976
976
  );
977
977
  return A(() => {
978
- if (!b || !d)
978
+ if (!_ || !d)
979
979
  return;
980
- const w = b.page.getViewport();
980
+ const w = _.page.getViewport();
981
981
  if (c.current) {
982
982
  c.current.update({
983
983
  viewport: w.clone({ dontFlip: !0 })
@@ -998,27 +998,27 @@ const Jo = (t) => {
998
998
  }
999
999
  const h = new AbortController();
1000
1000
  return (async () => {
1001
- var _;
1001
+ var b;
1002
1002
  c.current && (c.current.div.replaceChildren(), c.current = void 0), n.current && (n.current.innerText = ""), c.current = new kr({
1003
1003
  div: n.current,
1004
1004
  accessibilityManager: void 0,
1005
1005
  annotationCanvasMap: void 0,
1006
1006
  annotationEditorUIManager: void 0,
1007
1007
  structTreeLayer: null,
1008
- page: b.page,
1008
+ page: _.page,
1009
1009
  viewport: w.clone({ dontFlip: !0 })
1010
1010
  }), n.current && Kt(n.current, y);
1011
1011
  const l = await (r == null ? void 0 : r.hasJSActions()), v = await (r == null ? void 0 : r.getFieldObjects());
1012
1012
  if (h.signal.aborted)
1013
1013
  throw "abort";
1014
- return (_ = c.current) == null ? void 0 : _.render({
1014
+ return (b = c.current) == null ? void 0 : b.render({
1015
1015
  annotations: d,
1016
1016
  annotationStorage: r == null ? void 0 : r.annotationStorage,
1017
1017
  hasJSActions: l,
1018
1018
  fieldObjects: v,
1019
1019
  div: n.current,
1020
1020
  viewport: w.clone({ dontFlip: !0 }),
1021
- page: b.page,
1021
+ page: _.page,
1022
1022
  imageResourcesPath: Yo,
1023
1023
  renderForms: a ?? !0,
1024
1024
  linkService: new Qr(r, f),
@@ -1089,7 +1089,7 @@ const Jo = (t) => {
1089
1089
  }).observe(g, { childList: !0, subtree: !0 });
1090
1090
  });
1091
1091
  }
1092
- function b(g) {
1092
+ function _(g) {
1093
1093
  return new Promise((h) => {
1094
1094
  const p = g.querySelectorAll(
1095
1095
  '[data-rp="rp-text-layer-text"]'
@@ -1098,23 +1098,23 @@ const Jo = (t) => {
1098
1098
  h(Array.from(p));
1099
1099
  return;
1100
1100
  }
1101
- new MutationObserver((v, _) => {
1101
+ new MutationObserver((v, b) => {
1102
1102
  const I = g.querySelectorAll(
1103
1103
  ".rp-text-layer-text"
1104
1104
  );
1105
- I.length && (h(Array.from(I)), _.disconnect());
1105
+ I.length && (h(Array.from(I)), b.disconnect());
1106
1106
  }).observe(g, { childList: !0, subtree: !0 });
1107
1107
  });
1108
1108
  }
1109
1109
  const P = (g, h, p, l) => {
1110
1110
  var U;
1111
- const v = document.createRange(), _ = p.firstChild;
1112
- if (!_ || _.nodeType !== Node.TEXT_NODE)
1111
+ const v = document.createRange(), b = p.firstChild;
1112
+ if (!b || b.nodeType !== Node.TEXT_NODE)
1113
1113
  return null;
1114
- const I = ((U = _.textContent) == null ? void 0 : U.length) ?? 0, S = l[0].charIdxInSpan, x = l.length === 1 ? S : l[l.length - 1].charIdxInSpan;
1114
+ const I = ((U = b.textContent) == null ? void 0 : U.length) ?? 0, S = l[0].charIdxInSpan, x = l.length === 1 ? S : l[l.length - 1].charIdxInSpan;
1115
1115
  if (S > I || x + 1 > I)
1116
1116
  return null;
1117
- v.setStart(_, S), v.setEnd(_, x + 1);
1117
+ v.setStart(b, S), v.setEnd(b, x + 1);
1118
1118
  const R = document.createElement("span");
1119
1119
  R.style.width = "auto", v.surroundContents(R);
1120
1120
  const O = R.getBoundingClientRect(), D = g.getBoundingClientRect(), z = D.height, E = D.width, L = 100 * (O.left - D.left) / E, F = 100 * (O.top - D.top) / z, G = 100 * O.height / z, q = 100 * O.width / E;
@@ -1132,7 +1132,7 @@ const Jo = (t) => {
1132
1132
  const p = await T(s, g);
1133
1133
  if (!p)
1134
1134
  return;
1135
- const l = await b(p);
1135
+ const l = await _(p);
1136
1136
  if (l.length) {
1137
1137
  const v = l.map((I) => I.tagName === "BR" ? " " : I.textContent).reduce(
1138
1138
  (I, S, x) => I.concat(
@@ -1149,15 +1149,15 @@ const Jo = (t) => {
1149
1149
  spanIdx: 0
1150
1150
  }
1151
1151
  ]
1152
- ).slice(1), _ = w(p, h, l, v);
1153
- C(_);
1152
+ ).slice(1), b = w(p, h, l, v);
1153
+ C(b);
1154
1154
  }
1155
1155
  }
1156
1156
  const w = (g, h, p, l) => {
1157
1157
  const v = h.length;
1158
1158
  if (!l.length || !v)
1159
1159
  return [];
1160
- const _ = [], I = l.map((S) => S.char).join("");
1160
+ const b = [], I = l.map((S) => S.char).join("");
1161
1161
  return u.forEach((S) => {
1162
1162
  const { keyword: x, regExp: R, wholeWords: O, color: D } = S, z = x;
1163
1163
  if (!z.trim())
@@ -1191,13 +1191,13 @@ const Jo = (t) => {
1191
1191
  );
1192
1192
  if ($) {
1193
1193
  const { left: Q, top: J } = $;
1194
- if (_.find((ee) => ee.left === Q && ee.top === J))
1194
+ if (b.find((ee) => ee.left === Q && ee.top === J))
1195
1195
  continue;
1196
- _.push({ ...$, highlightColor: q.color });
1196
+ b.push({ ...$, highlightColor: q.color });
1197
1197
  }
1198
1198
  }
1199
1199
  }
1200
- }), _.sort(oo), _;
1200
+ }), b.sort(oo), b;
1201
1201
  };
1202
1202
  return A(() => {
1203
1203
  (async () => {
@@ -1226,7 +1226,7 @@ const Jo = (t) => {
1226
1226
  h
1227
1227
  )) }) });
1228
1228
  }, Ve = at((t, e) => {
1229
- const { pageNumber: n, style: o, ...r } = t, { pages: a } = oe(), { pageRotate: c } = it(), { textLayer: d } = br(), { currentZoom: s } = rt(), { LoaderImageComponent: f } = St(), m = M(a.get(n)), [C, u] = H(!1), T = M(null), [b, P] = H({
1229
+ const { pageNumber: n, style: o, ...r } = t, { pages: a } = oe(), { pageRotate: c } = it(), { textLayer: d } = _r(), { currentZoom: s } = rt(), { LoaderImageComponent: f } = St(), m = M(a.get(n)), [C, u] = H(!1), T = M(null), [_, P] = H({
1230
1230
  width: 0,
1231
1231
  height: 0
1232
1232
  });
@@ -1244,14 +1244,14 @@ const Jo = (t) => {
1244
1244
  const w = W(() => {
1245
1245
  switch (y) {
1246
1246
  case 90:
1247
- return `${b.width / 2}px ${b.width / 2}px`;
1247
+ return `${_.width / 2}px ${_.width / 2}px`;
1248
1248
  case -90:
1249
1249
  case 270:
1250
- return `${b.height / 2}px ${b.height / 2}px`;
1250
+ return `${_.height / 2}px ${_.height / 2}px`;
1251
1251
  default:
1252
1252
  return "center";
1253
1253
  }
1254
- }, [y, b]), g = N(() => {
1254
+ }, [y, _]), g = N(() => {
1255
1255
  u(!0);
1256
1256
  }, []), h = N(() => {
1257
1257
  u(!1);
@@ -1274,8 +1274,8 @@ const Jo = (t) => {
1274
1274
  "div",
1275
1275
  {
1276
1276
  style: {
1277
- width: `${b.width}px`,
1278
- height: `${b.height}px`
1277
+ width: `${_.width}px`,
1278
+ height: `${_.height}px`
1279
1279
  },
1280
1280
  className: mt["rp-page"],
1281
1281
  children: [
@@ -1283,7 +1283,7 @@ const Jo = (t) => {
1283
1283
  C && f && /* @__PURE__ */ i("div", { className: mt["rp-loader-wrapper"], children: /* @__PURE__ */ i(f, {}) }),
1284
1284
  /* @__PURE__ */ i(ao, { pageNumber: n }),
1285
1285
  d && /* @__PURE__ */ i(Xo, { pageNumber: n }),
1286
- /* @__PURE__ */ i(ti, { pageNumber: n, viewport: b }),
1286
+ /* @__PURE__ */ i(ti, { pageNumber: n, viewport: _ }),
1287
1287
  /* @__PURE__ */ i(Jo, { pageNumber: n })
1288
1288
  ]
1289
1289
  }
@@ -1394,12 +1394,12 @@ var ci = 150, li = function(e) {
1394
1394
  }, Ye = null, Je = null, et = null;
1395
1395
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ye = /* @__PURE__ */ new WeakSet(), Je = /* @__PURE__ */ new WeakSet(), et = /* @__PURE__ */ new WeakSet());
1396
1396
  function di(t) {
1397
- var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, s = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, C = t.getRowOffset, u = t.getRowStartIndexForOffset, T = t.getRowStopIndexForStartIndex, b = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, y = t.validateProps;
1397
+ var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, s = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, C = t.getRowOffset, u = t.getRowStartIndexForOffset, T = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, y = t.validateProps;
1398
1398
  return e = /* @__PURE__ */ function(w) {
1399
1399
  ni(g, w);
1400
1400
  function g(p) {
1401
1401
  var l;
1402
- return l = w.call(this, p) || this, l._instanceProps = b(l.props, Qt(l)), l._resetIsScrollingTimeoutId = null, l._outerRef = void 0, l.state = {
1402
+ return l = w.call(this, p) || this, l._instanceProps = _(l.props, Qt(l)), l._resetIsScrollingTimeoutId = null, l._outerRef = void 0, l.state = {
1403
1403
  instance: Qt(l),
1404
1404
  isScrolling: !1,
1405
1405
  horizontalScrollDirection: "forward",
@@ -1407,10 +1407,10 @@ function di(t) {
1407
1407
  scrollTop: typeof l.props.initialScrollTop == "number" ? l.props.initialScrollTop : 0,
1408
1408
  scrollUpdateWasRequested: !1,
1409
1409
  verticalScrollDirection: "forward"
1410
- }, l._callOnItemsRendered = void 0, l._callOnItemsRendered = gt(function(v, _, I, S, x, R, O, D) {
1410
+ }, l._callOnItemsRendered = void 0, l._callOnItemsRendered = gt(function(v, b, I, S, x, R, O, D) {
1411
1411
  return l.props.onItemsRendered({
1412
1412
  overscanColumnStartIndex: v,
1413
- overscanColumnStopIndex: _,
1413
+ overscanColumnStopIndex: b,
1414
1414
  overscanRowStartIndex: I,
1415
1415
  overscanRowStopIndex: S,
1416
1416
  visibleColumnStartIndex: x,
@@ -1418,34 +1418,34 @@ function di(t) {
1418
1418
  visibleRowStartIndex: O,
1419
1419
  visibleRowStopIndex: D
1420
1420
  });
1421
- }), l._callOnScroll = void 0, l._callOnScroll = gt(function(v, _, I, S, x) {
1421
+ }), l._callOnScroll = void 0, l._callOnScroll = gt(function(v, b, I, S, x) {
1422
1422
  return l.props.onScroll({
1423
1423
  horizontalScrollDirection: I,
1424
1424
  scrollLeft: v,
1425
- scrollTop: _,
1425
+ scrollTop: b,
1426
1426
  verticalScrollDirection: S,
1427
1427
  scrollUpdateWasRequested: x
1428
1428
  });
1429
- }), l._getItemStyle = void 0, l._getItemStyle = function(v, _) {
1430
- var I = l.props, S = I.columnWidth, x = I.direction, R = I.rowHeight, O = l._getItemStyleCache(P && S, P && x, P && R), D = v + ":" + _, z;
1429
+ }), l._getItemStyle = void 0, l._getItemStyle = function(v, b) {
1430
+ var I = l.props, S = I.columnWidth, x = I.direction, R = I.rowHeight, O = l._getItemStyleCache(P && S, P && x, P && R), D = v + ":" + b, z;
1431
1431
  if (O.hasOwnProperty(D))
1432
1432
  z = O[D];
1433
1433
  else {
1434
- var E = n(l.props, _, l._instanceProps), L = x === "rtl";
1434
+ var E = n(l.props, b, l._instanceProps), L = x === "rtl";
1435
1435
  O[D] = z = {
1436
1436
  position: "absolute",
1437
1437
  left: L ? void 0 : E,
1438
1438
  right: L ? E : void 0,
1439
1439
  top: C(l.props, v, l._instanceProps),
1440
1440
  height: m(l.props, v, l._instanceProps),
1441
- width: a(l.props, _, l._instanceProps)
1441
+ width: a(l.props, b, l._instanceProps)
1442
1442
  };
1443
1443
  }
1444
1444
  return z;
1445
- }, l._getItemStyleCache = void 0, l._getItemStyleCache = gt(function(v, _, I) {
1445
+ }, l._getItemStyleCache = void 0, l._getItemStyleCache = gt(function(v, b, I) {
1446
1446
  return {};
1447
1447
  }), l._onScroll = function(v) {
1448
- var _ = v.currentTarget, I = _.clientHeight, S = _.clientWidth, x = _.scrollLeft, R = _.scrollTop, O = _.scrollHeight, D = _.scrollWidth;
1448
+ var b = v.currentTarget, I = b.clientHeight, S = b.clientWidth, x = b.scrollLeft, R = b.scrollTop, O = b.scrollHeight, D = b.scrollWidth;
1449
1449
  l.setState(function(z) {
1450
1450
  if (z.scrollLeft === x && z.scrollTop === R)
1451
1451
  return null;
@@ -1471,8 +1471,8 @@ function di(t) {
1471
1471
  };
1472
1472
  }, l._resetIsScrollingDebounced);
1473
1473
  }, l._outerRefSetter = function(v) {
1474
- var _ = l.props.outerRef;
1475
- l._outerRef = v, typeof _ == "function" ? _(v) : _ != null && typeof _ == "object" && _.hasOwnProperty("current") && (_.current = v);
1474
+ var b = l.props.outerRef;
1475
+ l._outerRef = v, typeof b == "function" ? b(v) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = v);
1476
1476
  }, l._resetIsScrollingDebounced = function() {
1477
1477
  l._resetIsScrollingTimeoutId !== null && tn(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ai(l._resetIsScrolling, ci);
1478
1478
  }, l._resetIsScrolling = function() {
@@ -1488,57 +1488,57 @@ function di(t) {
1488
1488
  };
1489
1489
  var h = g.prototype;
1490
1490
  return h.scrollTo = function(l) {
1491
- var v = l.scrollLeft, _ = l.scrollTop;
1492
- v !== void 0 && (v = Math.max(0, v)), _ !== void 0 && (_ = Math.max(0, _)), this.setState(function(I) {
1493
- return v === void 0 && (v = I.scrollLeft), _ === void 0 && (_ = I.scrollTop), I.scrollLeft === v && I.scrollTop === _ ? null : {
1491
+ var v = l.scrollLeft, b = l.scrollTop;
1492
+ v !== void 0 && (v = Math.max(0, v)), b !== void 0 && (b = Math.max(0, b)), this.setState(function(I) {
1493
+ return v === void 0 && (v = I.scrollLeft), b === void 0 && (b = I.scrollTop), I.scrollLeft === v && I.scrollTop === b ? null : {
1494
1494
  horizontalScrollDirection: I.scrollLeft < v ? "forward" : "backward",
1495
1495
  scrollLeft: v,
1496
- scrollTop: _,
1496
+ scrollTop: b,
1497
1497
  scrollUpdateWasRequested: !0,
1498
- verticalScrollDirection: I.scrollTop < _ ? "forward" : "backward"
1498
+ verticalScrollDirection: I.scrollTop < b ? "forward" : "backward"
1499
1499
  };
1500
1500
  }, this._resetIsScrollingDebounced);
1501
1501
  }, h.scrollToItem = function(l) {
1502
- var v = l.align, _ = v === void 0 ? "auto" : v, I = l.columnIndex, S = l.rowIndex, x = this.props, R = x.columnCount, O = x.height, D = x.rowCount, z = x.width, E = this.state, L = E.scrollLeft, F = E.scrollTop, G = si();
1502
+ var v = l.align, b = v === void 0 ? "auto" : v, I = l.columnIndex, S = l.rowIndex, x = this.props, R = x.columnCount, O = x.height, D = x.rowCount, z = x.width, E = this.state, L = E.scrollLeft, F = E.scrollTop, G = si();
1503
1503
  I !== void 0 && (I = Math.max(0, Math.min(I, R - 1))), S !== void 0 && (S = Math.max(0, Math.min(S, D - 1)));
1504
1504
  var q = c(this.props, this._instanceProps), U = d(this.props, this._instanceProps), B = U > z ? G : 0, j = q > O ? G : 0;
1505
1505
  this.scrollTo({
1506
- scrollLeft: I !== void 0 ? s(this.props, I, _, L, this._instanceProps, j) : L,
1507
- scrollTop: S !== void 0 ? f(this.props, S, _, F, this._instanceProps, B) : F
1506
+ scrollLeft: I !== void 0 ? s(this.props, I, b, L, this._instanceProps, j) : L,
1507
+ scrollTop: S !== void 0 ? f(this.props, S, b, F, this._instanceProps, B) : F
1508
1508
  });
1509
1509
  }, h.componentDidMount = function() {
1510
- var l = this.props, v = l.initialScrollLeft, _ = l.initialScrollTop;
1510
+ var l = this.props, v = l.initialScrollLeft, b = l.initialScrollTop;
1511
1511
  if (this._outerRef != null) {
1512
1512
  var I = this._outerRef;
1513
- typeof v == "number" && (I.scrollLeft = v), typeof _ == "number" && (I.scrollTop = _);
1513
+ typeof v == "number" && (I.scrollLeft = v), typeof b == "number" && (I.scrollTop = b);
1514
1514
  }
1515
1515
  this._callPropsCallbacks();
1516
1516
  }, h.componentDidUpdate = function() {
1517
- var l = this.props.direction, v = this.state, _ = v.scrollLeft, I = v.scrollTop, S = v.scrollUpdateWasRequested;
1517
+ var l = this.props.direction, v = this.state, b = v.scrollLeft, I = v.scrollTop, S = v.scrollUpdateWasRequested;
1518
1518
  if (S && this._outerRef != null) {
1519
1519
  var x = this._outerRef;
1520
1520
  if (l === "rtl")
1521
1521
  switch (nn()) {
1522
1522
  case "negative":
1523
- x.scrollLeft = -_;
1523
+ x.scrollLeft = -b;
1524
1524
  break;
1525
1525
  case "positive-ascending":
1526
- x.scrollLeft = _;
1526
+ x.scrollLeft = b;
1527
1527
  break;
1528
1528
  default:
1529
1529
  var R = x.clientWidth, O = x.scrollWidth;
1530
- x.scrollLeft = O - R - _;
1530
+ x.scrollLeft = O - R - b;
1531
1531
  break;
1532
1532
  }
1533
1533
  else
1534
- x.scrollLeft = Math.max(0, _);
1534
+ x.scrollLeft = Math.max(0, b);
1535
1535
  x.scrollTop = Math.max(0, I);
1536
1536
  }
1537
1537
  this._callPropsCallbacks();
1538
1538
  }, h.componentWillUnmount = function() {
1539
1539
  this._resetIsScrollingTimeoutId !== null && tn(this._resetIsScrollingTimeoutId);
1540
1540
  }, h.render = function() {
1541
- var l = this.props, v = l.children, _ = l.className, I = l.columnCount, S = l.direction, x = l.height, R = l.innerRef, O = l.innerElementType, D = l.innerTagName, z = l.itemData, E = l.itemKey, L = E === void 0 ? li : E, F = l.outerElementType, G = l.outerTagName, q = l.rowCount, U = l.style, B = l.useIsScrolling, j = l.width, ae = this.state.isScrolling, $ = this._getHorizontalRangeToRender(), Q = $[0], J = $[1], te = this._getVerticalRangeToRender(), ee = te[0], Y = te[1], we = [];
1541
+ var l = this.props, v = l.children, b = l.className, I = l.columnCount, S = l.direction, x = l.height, R = l.innerRef, O = l.innerElementType, D = l.innerTagName, z = l.itemData, E = l.itemKey, L = E === void 0 ? li : E, F = l.outerElementType, G = l.outerTagName, q = l.rowCount, U = l.style, B = l.useIsScrolling, j = l.width, ae = this.state.isScrolling, $ = this._getHorizontalRangeToRender(), Q = $[0], J = $[1], te = this._getVerticalRangeToRender(), ee = te[0], Y = te[1], we = [];
1542
1542
  if (I > 0 && q)
1543
1543
  for (var me = ee; me <= Y; me++)
1544
1544
  for (var Re = Q; Re <= J; Re++)
@@ -1556,7 +1556,7 @@ function di(t) {
1556
1556
  }));
1557
1557
  var Le = c(this.props, this._instanceProps), lt = d(this.props, this._instanceProps);
1558
1558
  return Qe(F || G || "div", {
1559
- className: _,
1559
+ className: b,
1560
1560
  onScroll: this._onScroll,
1561
1561
  ref: this._outerRefSetter,
1562
1562
  style: Pt({
@@ -1578,8 +1578,8 @@ function di(t) {
1578
1578
  }
1579
1579
  }));
1580
1580
  }, h._callPropsCallbacks = function() {
1581
- var l = this.props, v = l.columnCount, _ = l.onItemsRendered, I = l.onScroll, S = l.rowCount;
1582
- if (typeof _ == "function" && v > 0 && S > 0) {
1581
+ var l = this.props, v = l.columnCount, b = l.onItemsRendered, I = l.onScroll, S = l.rowCount;
1582
+ if (typeof b == "function" && v > 0 && S > 0) {
1583
1583
  var x = this._getHorizontalRangeToRender(), R = x[0], O = x[1], D = x[2], z = x[3], E = this._getVerticalRangeToRender(), L = E[0], F = E[1], G = E[2], q = E[3];
1584
1584
  this._callOnItemsRendered(R, O, L, F, D, z, G, q);
1585
1585
  }
@@ -1588,13 +1588,13 @@ function di(t) {
1588
1588
  this._callOnScroll(j, ae, B, Q, $);
1589
1589
  }
1590
1590
  }, h._getHorizontalRangeToRender = function() {
1591
- var l = this.props, v = l.columnCount, _ = l.overscanColumnCount, I = l.overscanColumnsCount, S = l.overscanCount, x = l.rowCount, R = this.state, O = R.horizontalScrollDirection, D = R.isScrolling, z = R.scrollLeft, E = _ || I || S || 1;
1591
+ var l = this.props, v = l.columnCount, b = l.overscanColumnCount, I = l.overscanColumnsCount, S = l.overscanCount, x = l.rowCount, R = this.state, O = R.horizontalScrollDirection, D = R.isScrolling, z = R.scrollLeft, E = b || I || S || 1;
1592
1592
  if (v === 0 || x === 0)
1593
1593
  return [0, 0, 0, 0];
1594
1594
  var L = o(this.props, z, this._instanceProps), F = r(this.props, L, z, this._instanceProps), G = !D || O === "backward" ? Math.max(1, E) : 1, q = !D || O === "forward" ? Math.max(1, E) : 1;
1595
1595
  return [Math.max(0, L - G), Math.max(0, Math.min(v - 1, F + q)), L, F];
1596
1596
  }, h._getVerticalRangeToRender = function() {
1597
- var l = this.props, v = l.columnCount, _ = l.overscanCount, I = l.overscanRowCount, S = l.overscanRowsCount, x = l.rowCount, R = this.state, O = R.isScrolling, D = R.verticalScrollDirection, z = R.scrollTop, E = I || S || _ || 1;
1597
+ var l = this.props, v = l.columnCount, b = l.overscanCount, I = l.overscanRowCount, S = l.overscanRowsCount, x = l.rowCount, R = this.state, O = R.isScrolling, D = R.verticalScrollDirection, z = R.scrollTop, E = I || S || b || 1;
1598
1598
  if (v === 0 || x === 0)
1599
1599
  return [0, 0, 0, 0];
1600
1600
  var L = u(this.props, z, this._instanceProps), F = T(this.props, L, z, this._instanceProps), G = !O || D === "backward" ? Math.max(1, E) : 1, q = !O || D === "forward" ? Math.max(1, E) : 1;
@@ -1821,7 +1821,7 @@ const vi = () => {
1821
1821
  rowsHeight: y,
1822
1822
  columnsWidth: w
1823
1823
  };
1824
- }, [r, c, t]), b = W(() => ({
1824
+ }, [r, c, t]), _ = W(() => ({
1825
1825
  width: T.columnsWidth.reduce((P, y) => P + y, 0),
1826
1826
  height: T.rowsHeight.reduce((P, y) => P + y, 0)
1827
1827
  }), [T]);
@@ -1834,22 +1834,22 @@ const vi = () => {
1834
1834
  estimatedRowHeight: C,
1835
1835
  estimatedColumnWidth: u,
1836
1836
  gridDimension: T,
1837
- totalDimension: b
1837
+ totalDimension: _
1838
1838
  };
1839
1839
  };
1840
1840
  let ue;
1841
1841
  typeof window < "u" ? ue = window : typeof self < "u" ? ue = self : ue = global;
1842
1842
  let Ct = null, yt = null;
1843
- const cn = 20, wt = ue.clearTimeout, ln = ue.setTimeout, bt = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, dn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1844
- bt == null || dn == null ? (Ct = wt, yt = function(e) {
1843
+ const cn = 20, wt = ue.clearTimeout, ln = ue.setTimeout, _t = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, dn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1844
+ _t == null || dn == null ? (Ct = wt, yt = function(e) {
1845
1845
  return ln(e, cn);
1846
1846
  }) : (Ct = function([e, n]) {
1847
- bt(e), wt(n);
1847
+ _t(e), wt(n);
1848
1848
  }, yt = function(e) {
1849
1849
  const n = dn(function() {
1850
1850
  wt(o), e();
1851
1851
  }), o = ln(function() {
1852
- bt(n), e();
1852
+ _t(n), e();
1853
1853
  }, cn);
1854
1854
  return [n, o];
1855
1855
  });
@@ -1874,14 +1874,14 @@ function wi(t) {
1874
1874
  };
1875
1875
  let u = !1, T = "";
1876
1876
  o = "animationstart";
1877
- const b = "Webkit Moz O ms".split(" ");
1877
+ const _ = "Webkit Moz O ms".split(" ");
1878
1878
  let P = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), y = "";
1879
1879
  {
1880
1880
  const w = document.createElement("fakeelement");
1881
1881
  if (w.style.animationName !== void 0 && (u = !0), u === !1) {
1882
- for (let g = 0; g < b.length; g++)
1883
- if (w.style[b[g] + "AnimationName"] !== void 0) {
1884
- y = b[g], T = "-" + y.toLowerCase() + "-", o = P[g], u = !0;
1882
+ for (let g = 0; g < _.length; g++)
1883
+ if (w.style[_[g] + "AnimationName"] !== void 0) {
1884
+ y = _[g], T = "-" + y.toLowerCase() + "-", o = P[g], u = !0;
1885
1885
  break;
1886
1886
  }
1887
1887
  }
@@ -1890,8 +1890,8 @@ function wi(t) {
1890
1890
  }
1891
1891
  const f = function(u) {
1892
1892
  if (!u.getElementById("detectElementResize")) {
1893
- const T = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', b = u.head || u.getElementsByTagName("head")[0], P = u.createElement("style");
1894
- P.id = "detectElementResize", P.type = "text/css", t != null && P.setAttribute("nonce", t), P.styleSheet ? P.styleSheet.cssText = T : P.appendChild(u.createTextNode(T)), b.appendChild(P);
1893
+ const T = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', _ = u.head || u.getElementsByTagName("head")[0], P = u.createElement("style");
1894
+ P.id = "detectElementResize", P.type = "text/css", t != null && P.setAttribute("nonce", t), P.styleSheet ? P.styleSheet.cssText = T : P.appendChild(u.createTextNode(T)), _.appendChild(P);
1895
1895
  }
1896
1896
  };
1897
1897
  return {
@@ -1900,11 +1900,11 @@ function wi(t) {
1900
1900
  u.attachEvent("onresize", T);
1901
1901
  else {
1902
1902
  if (!u.__resizeTriggers__) {
1903
- const b = u.ownerDocument, P = ue.getComputedStyle(u);
1904
- P && P.position === "static" && (u.style.position = "relative"), f(b), u.__resizeLast__ = {}, u.__resizeListeners__ = [], (u.__resizeTriggers__ = b.createElement("div")).className = "resize-triggers";
1905
- const y = b.createElement("div");
1906
- y.className = "expand-trigger", y.appendChild(b.createElement("div"));
1907
- const w = b.createElement("div");
1903
+ const _ = u.ownerDocument, P = ue.getComputedStyle(u);
1904
+ P && P.position === "static" && (u.style.position = "relative"), f(_), u.__resizeLast__ = {}, u.__resizeListeners__ = [], (u.__resizeTriggers__ = _.createElement("div")).className = "resize-triggers";
1905
+ const y = _.createElement("div");
1906
+ y.className = "expand-trigger", y.appendChild(_.createElement("div"));
1907
+ const w = _.createElement("div");
1908
1908
  w.className = "contract-trigger", u.__resizeTriggers__.appendChild(y), u.__resizeTriggers__.appendChild(w), u.appendChild(u.__resizeTriggers__), c(u), u.addEventListener("scroll", d, !0), o && (u.__resizeTriggers__.__animationListener__ = function(h) {
1909
1909
  h.animationName === n && c(u);
1910
1910
  }, u.__resizeTriggers__.addEventListener(o, u.__resizeTriggers__.__animationListener__));
@@ -1925,7 +1925,7 @@ function wi(t) {
1925
1925
  }
1926
1926
  };
1927
1927
  }
1928
- class bi extends pr {
1928
+ class _i extends pr {
1929
1929
  constructor(...e) {
1930
1930
  super(...e), this.state = {
1931
1931
  height: this.props.defaultHeight || 0,
@@ -1995,21 +1995,21 @@ class bi extends pr {
1995
1995
  } = this.props, {
1996
1996
  height: u,
1997
1997
  width: T
1998
- } = this.state, b = {
1998
+ } = this.state, _ = {
1999
1999
  overflow: "visible"
2000
2000
  }, P = {};
2001
2001
  let y = !1;
2002
- return r || (u === 0 && (y = !0), b.height = 0, P.height = u, P.scaledHeight = u), a || (T === 0 && (y = !0), b.width = 0, P.width = T, P.scaledWidth = T), c && (y = !1), Qe(m, {
2002
+ return r || (u === 0 && (y = !0), _.height = 0, P.height = u, P.scaledHeight = u), a || (T === 0 && (y = !0), _.width = 0, P.width = T, P.scaledWidth = T), c && (y = !1), Qe(m, {
2003
2003
  ref: this._setRef,
2004
2004
  style: {
2005
- ...b,
2005
+ ..._,
2006
2006
  ...f
2007
2007
  },
2008
2008
  ...C
2009
2009
  }, !y && e(P));
2010
2010
  }
2011
2011
  }
2012
- const _i = It(({ widths: t, heights: e }) => {
2012
+ const bi = It(({ widths: t, heights: e }) => {
2013
2013
  const { focusedPage: n, totalPages: o } = ce(), r = W(() => {
2014
2014
  const d = [], s = Math.ceil(n / 2) * 2 - 1;
2015
2015
  if (d.push(s), s + 1 <= o) {
@@ -2044,14 +2044,14 @@ const _i = It(({ widths: t, heights: e }) => {
2044
2044
  return d.push(m), m + 1 <= o && d.push(m + 1), d;
2045
2045
  }, [n, o]), a = W(() => {
2046
2046
  if (r.length === 1) {
2047
- const T = r[0] - 1, b = t(T);
2048
- let P = b * 2;
2047
+ const T = r[0] - 1, _ = t(T);
2048
+ let P = _ * 2;
2049
2049
  if (o >= 3) {
2050
2050
  const y = t(1), w = t(2);
2051
2051
  P = y + w;
2052
2052
  } else if (o >= 2) {
2053
2053
  const y = t(1);
2054
- P = b + y;
2054
+ P = _ + y;
2055
2055
  }
2056
2056
  return {
2057
2057
  width: P,
@@ -2068,7 +2068,7 @@ const _i = It(({ widths: t, heights: e }) => {
2068
2068
  };
2069
2069
  }, [t, r, o]), c = W(() => {
2070
2070
  if (r.length === 1) {
2071
- const b = r[0], P = b - 1, y = e(b === 1 ? 0 : Math.floor((b - 2) / 2) + 1);
2071
+ const _ = r[0], P = _ - 1, y = e(_ === 1 ? 0 : Math.floor((_ - 2) / 2) + 1);
2072
2072
  return [{
2073
2073
  width: t(P),
2074
2074
  height: y,
@@ -2113,14 +2113,14 @@ const _i = It(({ widths: t, heights: e }) => {
2113
2113
  const r = M(), { contentRef: a } = Te(), { heights: c, widths: d } = Ze(), { setFocusedPage: s } = ce(), [f, m] = H([]), { targetScrollPage: C } = wn(), u = Nt(f, 0, 500), T = W(() => {
2114
2114
  const P = o === re.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et({ heights: c, widths: d }, t, P);
2115
2115
  return c.map((g, h) => {
2116
- const p = d[h], l = so(h + 1, t, P), v = w.slice(0, l.columnIndex).reduce((x, R) => x + R, 0), _ = y.slice(0, l.rowIndex).reduce((x, R) => x + R, 0), I = v + p, S = _ + g;
2116
+ const p = d[h], l = so(h + 1, t, P), v = w.slice(0, l.columnIndex).reduce((x, R) => x + R, 0), b = y.slice(0, l.rowIndex).reduce((x, R) => x + R, 0), I = v + p, S = b + g;
2117
2117
  return {
2118
2118
  pageNumber: h + 1,
2119
2119
  ...l,
2120
2120
  width: p,
2121
2121
  height: g,
2122
2122
  startX: v,
2123
- startY: _,
2123
+ startY: b,
2124
2124
  endX: I,
2125
2125
  endY: S
2126
2126
  };
@@ -2132,7 +2132,7 @@ const _i = It(({ widths: t, heights: e }) => {
2132
2132
  C.current = void 0;
2133
2133
  }, 500);
2134
2134
  }, [u, s]);
2135
- const b = N(
2135
+ const _ = N(
2136
2136
  (P) => {
2137
2137
  r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2138
2138
  const y = P.target, w = {
@@ -2144,7 +2144,7 @@ const _i = It(({ widths: t, heights: e }) => {
2144
2144
  const p = h.endX >= w.startLeft && h.endY >= w.startTop, l = h.startX <= w.endLeft && h.startY <= w.endTop;
2145
2145
  return p && l;
2146
2146
  }).map((h) => {
2147
- const p = w.startLeft > h.startX ? w.startLeft : h.startX, l = w.startTop > h.startY ? w.startTop : h.startY, v = w.endLeft < h.endX ? w.endLeft : h.endX, _ = w.endTop < h.endY ? w.endTop : h.endY, I = v - p, S = _ - l, R = +(I * S / (h.width * h.height) * 100).toFixed(2);
2147
+ const p = w.startLeft > h.startX ? w.startLeft : h.startX, l = w.startTop > h.startY ? w.startTop : h.startY, v = w.endLeft < h.endX ? w.endLeft : h.endX, b = w.endTop < h.endY ? w.endTop : h.endY, I = v - p, S = b - l, R = +(I * S / (h.width * h.height) * 100).toFixed(2);
2148
2148
  return {
2149
2149
  pageNumber: h.pageNumber,
2150
2150
  ratio: R
@@ -2157,10 +2157,10 @@ const _i = It(({ widths: t, heights: e }) => {
2157
2157
  );
2158
2158
  A(() => {
2159
2159
  if (n)
2160
- return n == null || n.addEventListener("scroll", b), () => {
2161
- n == null || n.removeEventListener("scroll", b);
2160
+ return n == null || n.addEventListener("scroll", _), () => {
2161
+ n == null || n.removeEventListener("scroll", _);
2162
2162
  };
2163
- }, [n, b]);
2163
+ }, [n, _]);
2164
2164
  }, zn = at((t, e) => {
2165
2165
  const { children: n, toolbarRef: o, style: r, className: a, ...c } = t, { customVariables: d, customDarkVariables: s } = Dr(), { darkMode: f } = wr();
2166
2166
  return /* @__PURE__ */ i(
@@ -2218,8 +2218,8 @@ const _i = It(({ widths: t, heights: e }) => {
2218
2218
  setTotalInnerDimensions: C,
2219
2219
  virtualScrollableElementRef: u,
2220
2220
  totalInnerDimensions: T,
2221
- pageScrollElementRef: b
2222
- } = ot(), P = M(!0), { nextPage: y, prevPage: w, setFocusedPage: g, focusedPage: h, totalPages: p } = ce(), { scrollMode: l } = Ae(), { viewMode: v } = He(), _ = M(null), { loading: I, error: S } = oe(), { passwordRequired: x } = vr(), { LoaderImageComponent: R } = St(), O = M(
2221
+ pageScrollElementRef: _
2222
+ } = ot(), P = M(!0), { nextPage: y, prevPage: w, setFocusedPage: g, focusedPage: h, totalPages: p } = ce(), { scrollMode: l } = Ae(), { viewMode: v } = He(), b = M(null), { loading: I, error: S } = oe(), { passwordRequired: x } = vr(), { LoaderImageComponent: R } = St(), O = M(
2223
2223
  T
2224
2224
  ), D = M({
2225
2225
  viewMode: v,
@@ -2240,10 +2240,10 @@ const _i = It(({ widths: t, heights: e }) => {
2240
2240
  scrollLeft: 0
2241
2241
  });
2242
2242
  po(o);
2243
- const { isPressed: Y } = lo(), { selectionMode: we } = _r(), { initializeGrabScroll: me, resetGrabState: Re } = uo({
2243
+ const { isPressed: Y } = lo(), { selectionMode: we } = br(), { initializeGrabScroll: me, resetGrabState: Re } = uo({
2244
2244
  isPressed: Y
2245
2245
  }), Le = W(() => we === mr.HAND, [we]), lt = W(() => {
2246
- const V = Array.from({ length: U }, (Z, be) => B(be));
2246
+ const V = Array.from({ length: U }, (Z, _e) => B(_e));
2247
2247
  return {
2248
2248
  columnCount: U,
2249
2249
  isDualPageWithCover: v === re.DUAL_PAGE_WITH_COVER,
@@ -2260,7 +2260,7 @@ const _i = It(({ widths: t, heights: e }) => {
2260
2260
  A(() => (window.addEventListener("keydown", dt), () => {
2261
2261
  window.removeEventListener("keydown", dt);
2262
2262
  }), [dt]), A(() => {
2263
- if (_.current && (_.current.style.position = "relative"), !!d)
2263
+ if (b.current && (b.current.style.position = "relative"), !!d)
2264
2264
  for (let V = 0; V < G; V++)
2265
2265
  for (let Z = 0; Z < U; Z++)
2266
2266
  d.resetAfterIndices({
@@ -2273,8 +2273,8 @@ const _i = It(({ widths: t, heights: e }) => {
2273
2273
  (V, Z) => {
2274
2274
  if (!u)
2275
2275
  return { scrollTop: 0, scrollLeft: 0 };
2276
- const be = ee.current.scrollTop > Z, Ee = ee.current.scrollLeft > V;
2277
- return be || Ee ? ee.current : {
2276
+ const _e = ee.current.scrollTop > Z, Ee = ee.current.scrollLeft > V;
2277
+ return _e || Ee ? ee.current : {
2278
2278
  scrollTop: u.scrollTop,
2279
2279
  scrollLeft: u.scrollLeft
2280
2280
  };
@@ -2321,8 +2321,8 @@ const _i = It(({ widths: t, heights: e }) => {
2321
2321
  ), Z = Array.from({ length: U }).reduce(
2322
2322
  (Ee, ut, Ne) => Ee + B(Ne),
2323
2323
  0
2324
- ), be = rr(Z, V);
2325
- ee.current = be, kt(be, { height: V, width: Z }), C({
2324
+ ), _e = rr(Z, V);
2325
+ ee.current = _e, kt(_e, { height: V, width: Z }), C({
2326
2326
  height: V,
2327
2327
  width: Z
2328
2328
  });
@@ -2338,10 +2338,10 @@ const _i = It(({ widths: t, heights: e }) => {
2338
2338
  );
2339
2339
  A(() => {
2340
2340
  if (J)
2341
- return b && b.addEventListener("scroll", J), u && u.addEventListener("scroll", J), () => {
2342
- b == null || b.removeEventListener("scroll", J), u == null || u.removeEventListener("scroll", J);
2341
+ return _ && _.addEventListener("scroll", J), u && u.addEventListener("scroll", J), () => {
2342
+ _ == null || _.removeEventListener("scroll", J), u == null || u.removeEventListener("scroll", J);
2343
2343
  };
2344
- }, [u, b, J]), A(() => () => {
2344
+ }, [u, _, J]), A(() => () => {
2345
2345
  te.current && clearTimeout(te.current);
2346
2346
  }, []);
2347
2347
  const ir = W(() => se(le["rp-pages-container"], {
@@ -2350,8 +2350,8 @@ const _i = It(({ widths: t, heights: e }) => {
2350
2350
  }), [Le, Y]), ar = N(
2351
2351
  (V) => {
2352
2352
  if (Le && V) {
2353
- const Z = se(le["rp-pages"]), be = document.querySelector(`.${Z}`);
2354
- me(be);
2353
+ const Z = se(le["rp-pages"]), _e = document.querySelector(`.${Z}`);
2354
+ me(_e);
2355
2355
  }
2356
2356
  },
2357
2357
  [Le, me, le]
@@ -2361,7 +2361,7 @@ const _i = It(({ widths: t, heights: e }) => {
2361
2361
  }, [I]), A(() => {
2362
2362
  if (!(Q.height === 0 || !P.current)) {
2363
2363
  if (e === ie.PAGE_SCROLLING) {
2364
- t !== h && b && g(t), P.current = !1;
2364
+ t !== h && _ && g(t), P.current = !1;
2365
2365
  return;
2366
2366
  }
2367
2367
  c(t, "auto"), g(t), P.current = !1;
@@ -2369,7 +2369,7 @@ const _i = It(({ widths: t, heights: e }) => {
2369
2369
  }, [
2370
2370
  c,
2371
2371
  e,
2372
- b,
2372
+ _,
2373
2373
  g,
2374
2374
  Q
2375
2375
  ]), /* @__PURE__ */ k(he, { children: [
@@ -2380,13 +2380,13 @@ const _i = It(({ widths: t, heights: e }) => {
2380
2380
  ref: r,
2381
2381
  tabIndex: -1,
2382
2382
  className: ir,
2383
- children: /* @__PURE__ */ i(bi, { style: { minHeight: "50px" }, children: ({ width: V, height: Z }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: ar, style: { width: V, height: Z }, children: l === ie.PAGE_SCROLLING ? /* @__PURE__ */ i(
2383
+ children: /* @__PURE__ */ i(_i, { style: { minHeight: "50px" }, children: ({ width: V, height: Z }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: ar, style: { width: V, height: Z }, children: l === ie.PAGE_SCROLLING ? /* @__PURE__ */ i(
2384
2384
  "div",
2385
2385
  {
2386
2386
  ref: f,
2387
2387
  style: { width: V, height: Z },
2388
2388
  className: se(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
2389
- children: v === re.DUAL_PAGE ? /* @__PURE__ */ i(_i, { widths: B, heights: q }) : v === re.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ i(Pi, { widths: B, heights: q }) : /* @__PURE__ */ i(Ti, { widths: B, heights: q })
2389
+ children: v === re.DUAL_PAGE ? /* @__PURE__ */ i(bi, { widths: B, heights: q }) : v === re.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ i(Pi, { widths: B, heights: q }) : /* @__PURE__ */ i(Ti, { widths: B, heights: q })
2390
2390
  }
2391
2391
  ) : ae ? /* @__PURE__ */ i(
2392
2392
  hi,
@@ -2394,7 +2394,7 @@ const _i = It(({ widths: t, heights: e }) => {
2394
2394
  ref: s,
2395
2395
  itemData: lt,
2396
2396
  outerRef: m,
2397
- innerRef: _,
2397
+ innerRef: b,
2398
2398
  onScroll: or,
2399
2399
  columnCount: U,
2400
2400
  columnWidth: B,
@@ -2450,7 +2450,7 @@ const _i = It(({ widths: t, heights: e }) => {
2450
2450
  "rp-toolbar-start": "_rp-toolbar-start_sz31z_33",
2451
2451
  "rp-toolbar-middle": "_rp-toolbar-middle_sz31z_39",
2452
2452
  "rp-toolbar-end": "_rp-toolbar-end_sz31z_46"
2453
- }, _t = {
2453
+ }, bt = {
2454
2454
  "rp-paginate": "_rp-paginate_1yinm_1",
2455
2455
  "rp-page-input": "_rp-page-input_1yinm_6",
2456
2456
  "rp-total-page": "_rp-total-page_1yinm_29"
@@ -2465,7 +2465,7 @@ const _i = It(({ widths: t, heights: e }) => {
2465
2465
  A(() => {
2466
2466
  d(t.toString());
2467
2467
  }, [t]);
2468
- const b = N((h) => {
2468
+ const _ = N((h) => {
2469
2469
  const p = h.target.value;
2470
2470
  d(p);
2471
2471
  }, []), P = N(async () => {
@@ -2499,7 +2499,7 @@ const _i = It(({ widths: t, heights: e }) => {
2499
2499
  goToPage: a,
2500
2500
  changePage: n
2501
2501
  }
2502
- ) : /* @__PURE__ */ k("div", { className: _t["rp-paginate"], children: [
2502
+ ) : /* @__PURE__ */ k("div", { className: bt["rp-paginate"], children: [
2503
2503
  !m && /* @__PURE__ */ i(K, { content: T == null ? void 0 : T.previousPageTooltip, children: /* @__PURE__ */ i(
2504
2504
  de,
2505
2505
  {
@@ -2514,9 +2514,9 @@ const _i = It(({ widths: t, heights: e }) => {
2514
2514
  {
2515
2515
  onKeyDown: w,
2516
2516
  onBlur: y,
2517
- onChange: b,
2517
+ onChange: _,
2518
2518
  value: c,
2519
- className: _t["rp-page-input"],
2519
+ className: bt["rp-page-input"],
2520
2520
  id: "page-input",
2521
2521
  name: "page-input",
2522
2522
  "aria-label": T == null ? void 0 : T.currentPageTooltip,
@@ -2528,7 +2528,7 @@ const _i = It(({ widths: t, heights: e }) => {
2528
2528
  max: e
2529
2529
  }
2530
2530
  ) }),
2531
- /* @__PURE__ */ k("span", { className: _t["rp-total-page"], children: [
2531
+ /* @__PURE__ */ k("span", { className: bt["rp-total-page"], children: [
2532
2532
  "/",
2533
2533
  e
2534
2534
  ] }),
@@ -2543,7 +2543,7 @@ const _i = It(({ widths: t, heights: e }) => {
2543
2543
  ) })
2544
2544
  ] });
2545
2545
  };
2546
- var ct = "Dialog", [Wn, Ic] = _o(ct), [Ri, fe] = Wn(ct), Fn = (t) => {
2546
+ var ct = "Dialog", [Wn, Ic] = bo(ct), [Ri, fe] = Wn(ct), Fn = (t) => {
2547
2547
  const {
2548
2548
  __scopeDialog: e,
2549
2549
  children: n,
@@ -2791,7 +2791,7 @@ const Oe = {
2791
2791
  createdOn: C,
2792
2792
  creator: u,
2793
2793
  keywords: T,
2794
- modifiedOn: b,
2794
+ modifiedOn: _,
2795
2795
  pdfProducer: P,
2796
2796
  pdfVersion: y,
2797
2797
  pageCount: w
@@ -2811,7 +2811,7 @@ const Oe = {
2811
2811
  },
2812
2812
  {
2813
2813
  label: r == null ? void 0 : r.propertiesModifiedOnLabel,
2814
- value: b ? Vt(b) : ""
2814
+ value: _ ? Vt(_) : ""
2815
2815
  },
2816
2816
  { separate: !0 },
2817
2817
  { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: P },
@@ -2919,7 +2919,7 @@ const Oe = {
2919
2919
  jumpNavigationTool: C,
2920
2920
  printTool: u,
2921
2921
  fullscreenTool: T,
2922
- viewModeTool: b
2922
+ viewModeTool: _
2923
2923
  } = Ce(), {
2924
2924
  openFileTool: P,
2925
2925
  downloadTool: y,
@@ -2929,13 +2929,13 @@ const Oe = {
2929
2929
  selectionModeTool: p,
2930
2930
  jumpNavigationTool: l,
2931
2931
  printTool: v,
2932
- fullscreenTool: _,
2932
+ fullscreenTool: b,
2933
2933
  viewModeTool: I
2934
2934
  } = xe(), { localeMessages: S } = pe(), [x, R] = H(0), O = M(
2935
2935
  new ResizeObserver((E) => {
2936
2936
  R(E[0].contentRect.height);
2937
2937
  })
2938
- ), D = W(() => C || f || m || s || d || b || r && (a || c || u || T), [
2938
+ ), D = W(() => C || f || m || s || d || _ || r && (a || c || u || T), [
2939
2939
  a,
2940
2940
  c,
2941
2941
  u,
@@ -2946,11 +2946,11 @@ const Oe = {
2946
2946
  m,
2947
2947
  C,
2948
2948
  r
2949
- ]), z = W(() => l || h || p || g || w || I || r && (P || y || v || _), [
2949
+ ]), z = W(() => l || h || p || g || w || I || r && (P || y || v || b), [
2950
2950
  P,
2951
2951
  y,
2952
2952
  v,
2953
- _,
2953
+ b,
2954
2954
  w,
2955
2955
  g,
2956
2956
  h,
@@ -2972,7 +2972,7 @@ const Oe = {
2972
2972
  active: t,
2973
2973
  "aria-label": S == null ? void 0 : S.moreOptionTooltip,
2974
2974
  "aria-expanded": t,
2975
- children: /* @__PURE__ */ i(bo, { "aria-hidden": "true" })
2975
+ children: /* @__PURE__ */ i(_o, { "aria-hidden": "true" })
2976
2976
  }
2977
2977
  ) }) }),
2978
2978
  side: "bottom",
@@ -2985,7 +2985,7 @@ const Oe = {
2985
2985
  "data-rp": "moreOptionsDropdown",
2986
2986
  children: [
2987
2987
  r && /* @__PURE__ */ k(tt, { children: [
2988
- /* @__PURE__ */ i(_n, {}),
2988
+ /* @__PURE__ */ i(bn, {}),
2989
2989
  /* @__PURE__ */ i(Jn, {}),
2990
2990
  /* @__PURE__ */ i(nr, {}),
2991
2991
  /* @__PURE__ */ i(Pn, {}),
@@ -3009,7 +3009,7 @@ const Oe = {
3009
3009
  return /* @__PURE__ */ k(he, { children: [
3010
3010
  /* @__PURE__ */ i(wo, {}),
3011
3011
  !t && /* @__PURE__ */ k(he, { children: [
3012
- /* @__PURE__ */ i(_n, {}),
3012
+ /* @__PURE__ */ i(bn, {}),
3013
3013
  /* @__PURE__ */ i(Jn, {}),
3014
3014
  /* @__PURE__ */ i(nr, {}),
3015
3015
  /* @__PURE__ */ i(Pn, {})
@@ -3051,7 +3051,7 @@ const Oe = {
3051
3051
  new ResizeObserver((g) => {
3052
3052
  m(g[0].contentRect.height);
3053
3053
  })
3054
- ), b = N(() => {
3054
+ ), _ = N(() => {
3055
3055
  e(() => {
3056
3056
  const g = Math.floor(n * 100 / 25) * 25;
3057
3057
  return Math.min(g + 25, Bt);
@@ -3129,7 +3129,7 @@ const Oe = {
3129
3129
  de,
3130
3130
  {
3131
3131
  disabled: w,
3132
- onClick: b,
3132
+ onClick: _,
3133
3133
  "aria-label": s == null ? void 0 : s.zoomInTooltip,
3134
3134
  children: /* @__PURE__ */ i(ca, {})
3135
3135
  }
@@ -3200,9 +3200,9 @@ const Oe = {
3200
3200
  totalMatches: C,
3201
3201
  currentMatchPosition: u,
3202
3202
  nextMatch: T,
3203
- prevMatch: b,
3203
+ prevMatch: _,
3204
3204
  search: P
3205
- } = At(), { searchTool: y = !0 } = Ce(), { searchTool: w = !0 } = xe(), [g, h] = H(P), { localeMessages: p } = pe(), { isSmallScreen: l } = Se(), [v, _] = H(null), [I, S] = H(!1), x = N(() => {
3205
+ } = At(), { searchTool: y = !0 } = Ce(), { searchTool: w = !0 } = xe(), [g, h] = H(P), { localeMessages: p } = pe(), { isSmallScreen: l } = Se(), [v, b] = H(null), [I, S] = H(!1), x = N(() => {
3206
3206
  o(!0);
3207
3207
  }, []), R = N(() => {
3208
3208
  m(""), h(""), o(!1);
@@ -3216,9 +3216,9 @@ const Oe = {
3216
3216
  [n]
3217
3217
  ), z = N(
3218
3218
  ($) => {
3219
- $.shiftKey && $.key === "Enter" ? b() : $.key === "Enter" && P !== g ? m(g) : $.key === "Enter" && T();
3219
+ $.shiftKey && $.key === "Enter" ? _() : $.key === "Enter" && P !== g ? m(g) : $.key === "Enter" && T();
3220
3220
  },
3221
- [g, b, T, m, P]
3221
+ [g, _, T, m, P]
3222
3222
  );
3223
3223
  A(() => {
3224
3224
  h(P);
@@ -3298,7 +3298,7 @@ const Oe = {
3298
3298
  children: /* @__PURE__ */ k(
3299
3299
  "div",
3300
3300
  {
3301
- ref: _,
3301
+ ref: b,
3302
3302
  className: ne["rp-search-tool-content"],
3303
3303
  tabIndex: 0,
3304
3304
  onKeyDown: ae,
@@ -3338,7 +3338,7 @@ const Oe = {
3338
3338
  )
3339
3339
  }
3340
3340
  ) }),
3341
- f ? /* @__PURE__ */ i("span", { "aria-live": "polite", "aria-label": "Searching", children: /* @__PURE__ */ i(bn, { className: ne["rp-search-loader-icon"], "aria-hidden": "true" }) }) : /* @__PURE__ */ i("span", { id: "search-results-count", "aria-live": "polite", children: F }),
3341
+ f ? /* @__PURE__ */ i("span", { "aria-live": "polite", "aria-label": "Searching", children: /* @__PURE__ */ i(_n, { className: ne["rp-search-loader-icon"], "aria-hidden": "true" }) }) : /* @__PURE__ */ i("span", { id: "search-results-count", "aria-live": "polite", children: F }),
3342
3342
  l && /* @__PURE__ */ i("div", { className: ne["rp-search-tool-controls"], children: /* @__PURE__ */ i(qt, { onKeyPress: O, handleClose: R }) })
3343
3343
  ] }),
3344
3344
  /* @__PURE__ */ k("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
@@ -3430,7 +3430,7 @@ const Oe = {
3430
3430
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3431
3431
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3432
3432
  }, ga = (t) => {
3433
- const { pageNumber: e, isFocused: n, viewport: o } = t, { goToPage: r } = ce(), { pageRotate: a } = it(), c = M(null), d = Nn(), { pages: s } = oe(), [f, m] = H(null), C = M(!1), u = M(), T = W(() => n ? Ge["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3433
+ const { pageNumber: e, isFocused: n, viewport: o } = t, { goToPage: r } = ce(), { pageRotate: a } = it(), c = M(null), d = Nn(), { pages: s } = oe(), [f, m] = H(null), C = M(!1), u = M(), T = W(() => n ? Ge["rp-thumbnail-active"] : "", [n]), _ = W(() => ({
3434
3434
  width: Math.round(o.width),
3435
3435
  height: Math.round(o.height)
3436
3436
  }), [o]), P = N(() => {
@@ -3503,8 +3503,8 @@ const Oe = {
3503
3503
  "img",
3504
3504
  {
3505
3505
  src: f,
3506
- width: b.width,
3507
- height: b.height,
3506
+ width: _.width,
3507
+ height: _.height,
3508
3508
  alt: `Page ${e} thumbnail`,
3509
3509
  "aria-hidden": "true"
3510
3510
  }
@@ -3513,10 +3513,10 @@ const Oe = {
3513
3513
  {
3514
3514
  className: Ge["rp-thumbnail-loader"],
3515
3515
  style: {
3516
- width: `${b.width}px`,
3517
- height: `${b.height}px`
3516
+ width: `${_.width}px`,
3517
+ height: `${_.height}px`
3518
3518
  },
3519
- children: /* @__PURE__ */ i(bn, { "aria-hidden": "true" })
3519
+ children: /* @__PURE__ */ i(_n, { "aria-hidden": "true" })
3520
3520
  }
3521
3521
  )
3522
3522
  }
@@ -3531,30 +3531,30 @@ const Oe = {
3531
3531
  }, va = 16, wa = (t, e) => {
3532
3532
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3533
3533
  t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - va);
3534
- }, ba = at((t, e) => {
3534
+ }, _a = at((t, e) => {
3535
3535
  const { show: n, width: o } = t, { focusedPage: r, totalPages: a } = ce(), { thumbnailPages: c, addPage: d, thumbnailLength: s, addToPage: f } = Rn(), m = M(null), C = M(1);
3536
3536
  mn(e, () => m.current);
3537
3537
  const u = W(() => Object.values(c), [c]), T = N(() => {
3538
- const b = s + 1;
3539
- b <= a && d(b);
3538
+ const _ = s + 1;
3539
+ _ <= a && d(_);
3540
3540
  }, [d, a, s]);
3541
3541
  return A(() => {
3542
3542
  r > s && a > s ? f(r) : n && C.current !== r && (wa(m.current, r), C.current = r);
3543
- }, [r, s, f, n, u]), Kr(m.current, T), /* @__PURE__ */ i("div", { ref: m, className: fn["rp-thumbnails-container"], style: { width: o }, children: /* @__PURE__ */ i("div", { className: fn["rp-thumbnails"], children: n ? u.map((b, P) => {
3543
+ }, [r, s, f, n, u]), Kr(m.current, T), /* @__PURE__ */ i("div", { ref: m, className: fn["rp-thumbnails-container"], style: { width: o }, children: /* @__PURE__ */ i("div", { className: fn["rp-thumbnails"], children: n ? u.map((_, P) => {
3544
3544
  var y, w;
3545
3545
  return /* @__PURE__ */ i(
3546
3546
  ga,
3547
3547
  {
3548
- isFocused: r === ((y = b.page) == null ? void 0 : y.pageNumber),
3549
- pageNumber: (w = b.page) == null ? void 0 : w.pageNumber,
3550
- loading: b.loading,
3551
- viewport: b.viewport,
3552
- defaultRotation: b.defaultRotation
3548
+ isFocused: r === ((y = _.page) == null ? void 0 : y.pageNumber),
3549
+ pageNumber: (w = _.page) == null ? void 0 : w.pageNumber,
3550
+ loading: _.loading,
3551
+ viewport: _.viewport,
3552
+ defaultRotation: _.defaultRotation
3553
3553
  },
3554
3554
  P
3555
3555
  );
3556
3556
  }) : null }) });
3557
- }), _a = () => {
3557
+ }), ba = () => {
3558
3558
  const { thumbnailIcon: t } = ve(), { thumbnailIcon: e } = ge();
3559
3559
  return t || e || /* @__PURE__ */ i(Mr, {});
3560
3560
  }, Pa = () => {
@@ -3566,7 +3566,7 @@ const Oe = {
3566
3566
  onClick: f,
3567
3567
  active: t,
3568
3568
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
3569
- children: /* @__PURE__ */ i(_a, {})
3569
+ children: /* @__PURE__ */ i(ba, {})
3570
3570
  }
3571
3571
  ) }) : null, [c, t, f, s]);
3572
3572
  return /* @__PURE__ */ i(he, { children: d && /* @__PURE__ */ k(
@@ -3583,7 +3583,7 @@ const Oe = {
3583
3583
  "data-rp": "thumbnailSidebar",
3584
3584
  className: `${Xe["rp-thumbnails-wrapper"]} ${t ? "" : Xe["rp-thumbnails-wrapper-hidden"]}`,
3585
3585
  children: [
3586
- /* @__PURE__ */ i(ba, { show: t, ref: r }),
3586
+ /* @__PURE__ */ i(_a, { show: t, ref: r }),
3587
3587
  /* @__PURE__ */ i(
3588
3588
  qr,
3589
3589
  {
@@ -3609,7 +3609,7 @@ const Oe = {
3609
3609
  onLoaded: s,
3610
3610
  cleanupOnLoaded: f,
3611
3611
  onLayoutWidthChange: m
3612
- } = t, [C, u] = H(null), { setContainer: T, setContentRef: b } = Te(), { loading: P } = oe(), { LoaderImageComponent: y } = St();
3612
+ } = t, [C, u] = H(null), { setContainer: T, setContentRef: _ } = Te(), { loading: P } = oe(), { LoaderImageComponent: y } = St();
3613
3613
  return A(() => (s && s(), () => {
3614
3614
  f && f();
3615
3615
  }), [s, f]), // TODO: deprecated in v2.0.0, remove later ~
@@ -3638,7 +3638,7 @@ const Oe = {
3638
3638
  "main",
3639
3639
  {
3640
3640
  id: "rp-main-content",
3641
- ref: b,
3641
+ ref: _,
3642
3642
  className: ye["rp-pages"],
3643
3643
  role: "main",
3644
3644
  "aria-label": "PDF document pages",
@@ -3679,12 +3679,13 @@ const Oe = {
3679
3679
  ) : null
3680
3680
  ] }) }) }) }) });
3681
3681
  }), Rc = {
3682
- "rp-toolbar-layout": "_rp-toolbar-layout_vwobs_1",
3683
- "rp-content": "_rp-content_vwobs_7",
3684
- "rp-topbar-content": "_rp-topbar-content_vwobs_13",
3685
- "rp-sidebar-content": "_rp-sidebar-content_vwobs_22",
3686
- "rp-pages": "_rp-pages_vwobs_32",
3687
- "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_vwobs_37"
3682
+ "rp-toolbar-layout": "_rp-toolbar-layout_vmscg_1",
3683
+ "rp-content": "_rp-content_vmscg_7",
3684
+ "rp-topbar-content": "_rp-topbar-content_vmscg_13",
3685
+ "rp-sidebar-content": "_rp-sidebar-content_vmscg_22",
3686
+ "rp-pages": "_rp-pages_vmscg_32",
3687
+ "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_vmscg_37",
3688
+ "rp-thumbnails-wrapper-hidden": "_rp-thumbnails-wrapper-hidden_vmscg_44"
3688
3689
  };
3689
3690
  export {
3690
3691
  ma as $,
@@ -3701,7 +3702,7 @@ export {
3701
3702
  Ve as K,
3702
3703
  zn as L,
3703
3704
  vi as M,
3704
- _i as N,
3705
+ bi as N,
3705
3706
  Pi as O,
3706
3707
  Si as P,
3707
3708
  Ti as Q,
@@ -3722,17 +3723,17 @@ export {
3722
3723
  st as c,
3723
3724
  At as d,
3724
3725
  Rn as e,
3725
- _t as f,
3726
+ bt as f,
3726
3727
  We as g,
3727
3728
  $e as h,
3728
3729
  da as i,
3729
3730
  oa as j,
3730
- bc as k,
3731
+ _c as k,
3731
3732
  Tc as l,
3732
3733
  Cc as m,
3733
- _c as n,
3734
+ bc as n,
3734
3735
  Rc as o,
3735
- ba as p,
3736
+ _a as p,
3736
3737
  fa as q,
3737
3738
  Bi as r,
3738
3739
  Ji as s,