@pdf-viewer/react 1.5.0-beta.10 → 1.5.0-beta.12

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 (61) hide show
  1. package/dist/{RPDefaultLayout-e1e07d65.js → RPDefaultLayout-6f52691a.js} +568 -569
  2. package/dist/components/RPController.js +1 -1
  3. package/dist/components/RPPages.js +1 -1
  4. package/dist/components/RPProvider.js +3 -5
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  8. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  10. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  11. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  12. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  13. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  14. package/dist/components/layout/toolbar/MostPageTool.js +2 -2
  15. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  16. package/dist/components/layout/toolbar/Paginate.js +1 -1
  17. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  20. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  21. package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
  22. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  23. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  24. package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
  25. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  26. package/dist/components/page/AnnotationLayer.js +1 -1
  27. package/dist/components/page/CanvasLayer.js +1 -1
  28. package/dist/components/page/DualPage.js +1 -1
  29. package/dist/components/page/RPPage.js +1 -1
  30. package/dist/components/page/SinglePage.js +1 -1
  31. package/dist/components/page/TextHighlightLayer.js +1 -1
  32. package/dist/components/page/TextLayer.js +1 -1
  33. package/dist/components/ui/Checkbox.js +13 -14
  34. package/dist/components/ui/DropDown.js +1 -1
  35. package/dist/components/ui/LoadingIndicator.js +1 -1
  36. package/dist/components/ui/RPTooltip.js +331 -689
  37. package/dist/contexts/PaginationContext.js +1 -1
  38. package/dist/contexts/PrintContext.js +1 -1
  39. package/dist/contexts/SearchContext.js +1 -1
  40. package/dist/contexts/ThumbnailsContext.js +1 -1
  41. package/dist/index-1cb41342.js +307 -0
  42. package/dist/index-7279fb4e.js +1557 -0
  43. package/dist/index-aa2d3884.js +140 -0
  44. package/dist/main.js +1 -1
  45. package/dist/types/utils/hooks/useWatermark.d.ts +1 -1
  46. package/dist/utils/hooks/useFileDownload.js +1 -1
  47. package/dist/utils/hooks/useLicense.js +1 -1
  48. package/dist/utils/hooks/useLoadWorker.js +1 -1
  49. package/dist/utils/hooks/usePaginate.js +1 -1
  50. package/dist/utils/hooks/usePresentPage.js +1 -1
  51. package/dist/utils/hooks/usePrint.js +1 -1
  52. package/dist/utils/hooks/useScrollToPage.js +1 -1
  53. package/dist/utils/hooks/useSearch.js +1 -1
  54. package/dist/utils/hooks/useThumbnail.js +1 -1
  55. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  56. package/dist/utils/hooks/useWatermark.js +39 -39
  57. package/package.json +1 -1
  58. package/dist/index-2e540713.js +0 -23
  59. package/dist/index-353ec0a6.js +0 -172
  60. package/dist/index-5ff5dbd0.js +0 -1675
  61. package/dist/index-71898eb9.js +0 -139
@@ -1,83 +1,82 @@
1
1
  import { jsx as a, Fragment as xe, jsxs as D } from "react/jsx-runtime";
2
2
  import * as U from "react";
3
- import { useRef as W, useEffect as A, useCallback as L, useState as $, createContext as je, useContext as Be, useMemo as F, forwardRef as We, useImperativeHandle as ar, createElement as He, PureComponent as Qr, Component as en, memo as tn } from "react";
3
+ import { useRef as W, useEffect as A, useCallback as L, useState as $, createContext as je, useContext as Be, useMemo as F, forwardRef as We, useImperativeHandle as sn, createElement as He, PureComponent as er, Component as tr, memo as nr } from "react";
4
4
  import { ChevronUpIcon as ke } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as ee } from "./components/ui/Button.js";
6
- import { UIInput as sr } from "./components/ui/Input.js";
6
+ import { UIInput as cn } from "./components/ui/Input.js";
7
7
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
8
8
  import { useDocumentContext as K } from "./contexts/RPDocumentContext.js";
9
- import { useDarkModeContext as rn } from "./contexts/DarkModeContext.js";
10
- import { ViewMode as Ue, ScrollMode as X, AnnotationSubType as At, SelectionMode as nn, ZoomLevel as ot } from "./utils/types.js";
9
+ import { useDarkModeContext as rr } from "./contexts/DarkModeContext.js";
10
+ import { ViewMode as Ue, ScrollMode as X, AnnotationSubType as At, SelectionMode as or, ZoomLevel as ot } from "./utils/types.js";
11
11
  import { useRotationContext as Ke } from "./contexts/RotationContext.js";
12
- import { useLayerContext as on } from "./contexts/LayerContext.js";
12
+ import { useLayerContext as ir } from "./contexts/LayerContext.js";
13
13
  import { useZoomContext as Xe } from "./contexts/ZoomContext.js";
14
14
  import { useViewModeContext as Ye } from "./contexts/ViewModeContext.js";
15
15
  import { useVirtualScrollContext as Je } from "./contexts/VirtualScrollContext.js";
16
- import { useVirtualGridContext as cr } from "./contexts/VirtualGridContext.js";
17
- import { useSelectionModeContext as an } from "./contexts/SelectionModeContext.js";
18
- import { useInitialStateContext as sn } from "./contexts/InitialStateContext.js";
19
- import { useFullScreenContext as cn } from "./contexts/FullScreenContext.js";
16
+ import { useVirtualGridContext as ln } from "./contexts/VirtualGridContext.js";
17
+ import { useSelectionModeContext as ar } from "./contexts/SelectionModeContext.js";
18
+ import { useInitialStateContext as sr } from "./contexts/InitialStateContext.js";
19
+ import { useFullScreenContext as cr } from "./contexts/FullScreenContext.js";
20
20
  import "./contexts/FileInputContext.js";
21
21
  import "./contexts/DropFileZoneContext.js";
22
22
  import { renderPage as vt } from "./utils/renderPage.js";
23
- import { highlightMatches as lr, findMatches as ln, resetDivs as dr, highlightMultipleColorMatches as dn } from "./utils/highlight.js";
23
+ import { highlightMatches as dn, findMatches as lr, resetDivs as un, highlightMultipleColorMatches as dr } from "./utils/highlight.js";
24
24
  import * as Ct from "pdfjs-dist";
25
- import { PixelsPerInch as un, AnnotationMode as pn, RenderingCancelledException as hn, AnnotationLayer as mn } from "pdfjs-dist";
25
+ import { PixelsPerInch as ur, AnnotationMode as pr, RenderingCancelledException as hr, AnnotationLayer as mr } from "pdfjs-dist";
26
26
  import { useLayoutContainer as be } from "./contexts/LayoutContainerContext.js";
27
27
  import { useDimensionPagesContext as Qe } from "./contexts/DimensionPagesContext.js";
28
28
  import { useLocalizationContext as ue } from "./contexts/LocalizationContext.js";
29
- import { useHighlightContext as fn } from "./contexts/HighlightContext.js";
30
- import { useDownloadContext as gn } from "./contexts/DownloadContext.js";
29
+ import { useHighlightContext as fr } from "./contexts/HighlightContext.js";
30
+ import { useDownloadContext as gr } from "./contexts/DownloadContext.js";
31
31
  import { useSmoothScrollContext as Tt } from "./contexts/SmoothScrollContext.js";
32
- import { useLoaderContext as ur } from "./contexts/LoaderContext.js";
32
+ import { useLoaderContext as pn } from "./contexts/LoaderContext.js";
33
33
  import "./contexts/LicenseContext.js";
34
34
  import "./components/RPConfig.js";
35
- import { ThumbnailIcon as vn } from "./components/icons/Thumbnail.js";
36
- import { c as ne } from "./clsx-0c6e471a.js";
35
+ import { ThumbnailIcon as vr } from "./components/icons/Thumbnail.js";
36
+ import { c as re } from "./clsx-0c6e471a.js";
37
37
  import { LoaderIcon as Pt } from "./components/icons/LoaderIcon.js";
38
- import { useInfiniteScroll as _n } from "./utils/hooks/useInfiniteScroll.js";
39
- import { RPSplitter as wn } from "./components/layout/sidebar/RPSplitter.js";
40
- import { useToolbarComponentContext as ge, ToolbarComponentProvider as bn } from "./contexts/ToolbarComponentContext.js";
41
- import { useIconContext as pe, IconProvider as Cn } from "./contexts/IconContext.js";
38
+ import { useInfiniteScroll as _r } from "./utils/hooks/useInfiniteScroll.js";
39
+ import { RPSplitter as wr } from "./components/layout/sidebar/RPSplitter.js";
40
+ import { useToolbarComponentContext as ge, ToolbarComponentProvider as br } from "./contexts/ToolbarComponentContext.js";
41
+ import { useIconContext as pe, IconProvider as Cr } from "./contexts/IconContext.js";
42
42
  import q from "./components/ui/RPTooltip.js";
43
- import { Container as Tn } from "./components/layout/Container.js";
44
- import { WrapperLayout as Pn } from "./components/layout/WrapperLayout.js";
45
- import { RPDropFileZone as Sn } from "./components/RPDropFileZone.js";
46
- import { useViewportContext as ye, ViewportProvider as xn } from "./contexts/ViewportContext.js";
47
- import { useThemeContext as In } from "./contexts/ThemeContext.js";
48
- import { SimpleLinkService as yn } from "./utils/link_service.js";
49
- import { annotationsEvents as Ln, annotationEventsHandler as Rn, handleClick as Ft, handleAnnotationWidget as Nn, handleAnnotationLink as En, bindLayerEvents as On, unbindLayerEvents as kt } from "./utils/annotations.js";
50
- import { _ as Dn, U as zn } from "./Popover-b7402893.js";
51
- import { useMousePressed as An } from "./utils/hooks/useMousePressed.js";
52
- import { useGrabScroll as Fn } from "./utils/hooks/useGrabScroll.js";
53
- import { usePinch as kn } from "./utils/hooks/usePinch.js";
43
+ import { Container as Tr } from "./components/layout/Container.js";
44
+ import { WrapperLayout as Pr } from "./components/layout/WrapperLayout.js";
45
+ import { RPDropFileZone as Sr } from "./components/RPDropFileZone.js";
46
+ import { useViewportContext as ye, ViewportProvider as xr } from "./contexts/ViewportContext.js";
47
+ import { useThemeContext as Ir } from "./contexts/ThemeContext.js";
48
+ import { SimpleLinkService as yr } from "./utils/link_service.js";
49
+ import { annotationsEvents as Lr, annotationEventsHandler as Rr, handleClick as Ft, handleAnnotationWidget as Nr, handleAnnotationLink as Er, bindLayerEvents as Or, unbindLayerEvents as kt } from "./utils/annotations.js";
50
+ import { _ as Dr, U as zr } from "./Popover-b7402893.js";
51
+ import { useMousePressed as Ar } from "./utils/hooks/useMousePressed.js";
52
+ import { useGrabScroll as Fr } from "./utils/hooks/useGrabScroll.js";
53
+ import { usePinch as kr } from "./utils/hooks/usePinch.js";
54
54
  import { useDebounce as St } from "./utils/hooks/useDebounce.js";
55
- import { getPositionFromPage as Wn, getPageFromPosition as Mn } from "./utils/calculatePage.js";
55
+ import { getPositionFromPage as Wr, getPageFromPosition as Mr } from "./utils/calculatePage.js";
56
56
  import { getThumbnailViewport as Wt } from "./utils/getThumbnailViewport.js";
57
57
  import { smoothScrollTo as it } from "./utils/smoothScrollTo.js";
58
- import { appConsole as Hn } from "./utils/appConsole.js";
59
- import { FileUploadTool as pr } from "./components/layout/toolbar/FileUploadTool.js";
60
- import { DarkModeTool as $n } from "./components/layout/toolbar/DarkModeTool.js";
61
- import { ThreeDotIcon as Gn } from "./components/icons/ThreeDotIcon.js";
62
- import { UIDropDown as hr } from "./components/ui/DropDown.js";
63
- import { u as xt, P as Me, c as Fe, a as It, S as Vn } from "./index-353ec0a6.js";
64
- import { c as Un, e as qn, b as Zn } from "./index-71898eb9.js";
65
- import { a as at } from "./index-2e540713.js";
66
- import { a as jn, u as Bn, F as Kn, D as Xn, b as Yn, G as qe } from "./index-5ff5dbd0.js";
67
- import { h as Jn } from "./component-1da194e8.js";
68
- import { CloseIcon as mr } from "./components/icons/CloseIcon.js";
58
+ import { appConsole as Hr } from "./utils/appConsole.js";
59
+ import { FileUploadTool as hn } from "./components/layout/toolbar/FileUploadTool.js";
60
+ import { DarkModeTool as $r } from "./components/layout/toolbar/DarkModeTool.js";
61
+ import { ThreeDotIcon as Gr } from "./components/icons/ThreeDotIcon.js";
62
+ import { UIDropDown as mn } from "./components/ui/DropDown.js";
63
+ import { e as Vr, a as xt, P as Me, c as Fe, g as It, i as Ur, k as qr, f as Zr } from "./index-1cb41342.js";
64
+ import { D as jr, u as at } from "./index-aa2d3884.js";
65
+ import { a as Br, u as Kr, F as Xr, b as Yr, G as qe } from "./index-7279fb4e.js";
66
+ import { h as Jr } from "./component-1da194e8.js";
67
+ import { CloseIcon as fn } from "./components/icons/CloseIcon.js";
69
68
  import { dateFormatter as Mt } from "./utils/dateFormatter.js";
70
- import { PropertyItem as Qn } from "./components/layout/toolbar/PropertyItem.js";
69
+ import { PropertyItem as Qr } from "./components/layout/toolbar/PropertyItem.js";
71
70
  import { useOtherToolContext as eo, OtherToolProvider as to } from "./contexts/OtherToolContext.js";
72
- import { DocumentProperties as ro } from "./components/layout/toolbar/DocumentProperties.js";
73
- import { RotateTool as no } from "./components/layout/toolbar/RotateTool.js";
71
+ import { DocumentProperties as no } from "./components/layout/toolbar/DocumentProperties.js";
72
+ import { RotateTool as ro } from "./components/layout/toolbar/RotateTool.js";
74
73
  import { ScrollModeTool as oo } from "./components/layout/toolbar/ScrollModeTool.js";
75
74
  import { MenuSeparator as yt } from "./components/layout/toolbar/MenuSeparator.js";
76
75
  import { FileDownloadDefaultIcon as io } from "./components/icons/FileDownloadDefaultIcon.js";
77
76
  import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
78
77
  import { PrintDefaultTool as ao } from "./components/icons/PrintDefaultIcon.js";
79
- import { FullScreenTool as fr } from "./components/layout/toolbar/FullScreenTool.js";
80
- import { GoToDownIcon as gr } from "./components/icons/GoToDownIcon.js";
78
+ import { FullScreenTool as gn } from "./components/layout/toolbar/FullScreenTool.js";
79
+ import { GoToDownIcon as vn } from "./components/icons/GoToDownIcon.js";
81
80
  import { SelectionModeTool as so } from "./components/layout/toolbar/SelectionModeTool.js";
82
81
  import { ZoomInIcon as co } from "./components/icons/ZoomInIcon.js";
83
82
  import { ZoomOutIcon as lo } from "./components/icons/ZoomOutIcon.js";
@@ -87,16 +86,16 @@ import { SearchIcon as po } from "./components/icons/SearchIcon.js";
87
86
  import { UICheckbox as $t } from "./components/ui/Checkbox.js";
88
87
  import { ClearIcon as ho } from "./components/icons/ClearIcon.js";
89
88
  import { InfoIcon as Gt } from "./components/icons/InfoIcon.js";
90
- import './assets/RPDefaultLayout.css';const vr = () => {
91
- const { viewMode: e } = Ye(), { scrollMode: t } = Ee(), { virtualScrollRef: r, virtualScrollableElementRef: o, pageScrollElementRef: n } = Je(), { setFocusedPage: i } = ie(), c = W(), { columnCount: s } = cr(), { widths: l, heights: d } = Qe(), u = W(t), f = W(e), h = W(s), { targetScrollPosition: g, smoothScrolling: b } = Tt();
89
+ import './assets/RPDefaultLayout.css';const _n = () => {
90
+ const { viewMode: e } = Ye(), { scrollMode: t } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Je(), { setFocusedPage: i } = ie(), c = W(), { columnCount: s } = ln(), { widths: l, heights: d } = Qe(), u = W(t), f = W(e), h = W(s), { targetScrollPosition: g, smoothScrolling: b } = Tt();
92
91
  A(() => {
93
- r != null && r.scrollToItem && (c.current = r);
94
- }, [r]), A(() => {
92
+ n != null && n.scrollToItem && (c.current = n);
93
+ }, [n]), A(() => {
95
94
  u.current = t, f.current = e;
96
95
  }, [t, e]);
97
96
  const w = L(
98
97
  (_, m) => {
99
- if (!n)
98
+ if (!r)
100
99
  return;
101
100
  const T = Math.ceil(_ / 2) * 2 - 1;
102
101
  if (_ === T + 1) {
@@ -105,19 +104,19 @@ import './assets/RPDefaultLayout.css';const vr = () => {
105
104
  top: 0
106
105
  };
107
106
  return g.current = p, new Promise(
108
- (P) => it(n, p, P)
107
+ (P) => it(r, p, P)
109
108
  );
110
109
  }
111
110
  const S = {
112
111
  left: 0,
113
112
  top: 0
114
113
  };
115
- return g.current = S, n == null ? void 0 : n.scrollTo({
114
+ return g.current = S, r == null ? void 0 : r.scrollTo({
116
115
  ...S,
117
116
  behavior: m
118
117
  });
119
118
  },
120
- [n, l, it]
119
+ [r, l, it]
121
120
  );
122
121
  return A(() => {
123
122
  u.current = t, f.current = e;
@@ -180,12 +179,12 @@ import './assets/RPDefaultLayout.css';const vr = () => {
180
179
  ]
181
180
  ) };
182
181
  }, mo = (e = 1) => {
183
- const [t, r] = $(e), [o, n] = $(0), { scrollToPage: i } = vr(), c = W(1), { viewMode: s } = Ye(), { scrollMode: l } = Ee(), d = St(t, 100), u = L(
182
+ const [t, n] = $(e), [o, r] = $(0), { scrollToPage: i } = _n(), c = W(1), { viewMode: s } = Ye(), { scrollMode: l } = Ee(), d = St(t, 100), u = L(
184
183
  (w) => {
185
184
  if (!/^[0-9]*$/g.test(w.toString()) || !w)
186
185
  return { success: !1, currentPage: c.current };
187
186
  const _ = +w;
188
- return _ < 0 || _ > o ? { success: !1, currentPage: c.current } : (r(_), c.current = _, { success: !0, currentPage: +w });
187
+ return _ < 0 || _ > o ? { success: !1, currentPage: c.current } : (n(_), c.current = _, { success: !0, currentPage: +w });
189
188
  },
190
189
  [o]
191
190
  ), f = L(u, [u]), h = L(
@@ -205,12 +204,12 @@ import './assets/RPDefaultLayout.css';const vr = () => {
205
204
  focusedPage: d,
206
205
  totalPages: o,
207
206
  setFocusedPage: f,
208
- setTotalPages: n,
207
+ setTotalPages: r,
209
208
  nextPage: b,
210
209
  prevPage: g,
211
210
  goToPage: h
212
211
  };
213
- }, _r = je({
212
+ }, wn = je({
214
213
  focusedPage: 0,
215
214
  setFocusedPage: (e) => {
216
215
  },
@@ -223,19 +222,19 @@ import './assets/RPDefaultLayout.css';const vr = () => {
223
222
  nextPage: () => {
224
223
  }
225
224
  }), ie = () => {
226
- const e = Be(_r);
227
- return typeof (e == null ? void 0 : e.focusedPage) > "u" && Hn.error("Please use this hooks inside children component of RPProvider"), e;
228
- }, Cs = ({ children: e }) => {
229
- const { pdf: t } = K(), { focusedPage: r, totalPages: o, setFocusedPage: n, setTotalPages: i, goToPage: c, nextPage: s, prevPage: l } = mo();
225
+ const e = Be(wn);
226
+ return typeof (e == null ? void 0 : e.focusedPage) > "u" && Hr.error("Please use this hooks inside children component of RPProvider"), e;
227
+ }, bs = ({ children: e }) => {
228
+ const { pdf: t } = K(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: i, goToPage: c, nextPage: s, prevPage: l } = mo();
230
229
  return A(() => {
231
- t != null && t.numPages && (i(t.numPages), n(1));
232
- }, [t, i, n]), /* @__PURE__ */ a(
233
- _r.Provider,
230
+ t != null && t.numPages && (i(t.numPages), r(1));
231
+ }, [t, i, r]), /* @__PURE__ */ a(
232
+ wn.Provider,
234
233
  {
235
234
  value: {
236
- focusedPage: r,
235
+ focusedPage: n,
237
236
  totalPages: o,
238
- setFocusedPage: n,
237
+ setFocusedPage: r,
239
238
  setTotalPages: i,
240
239
  nextPage: s,
241
240
  prevPage: l,
@@ -246,11 +245,11 @@ import './assets/RPDefaultLayout.css';const vr = () => {
246
245
  );
247
246
  };
248
247
  const fo = () => {
249
- const { pdf: e, pages: t } = K(), [r, o] = $({
248
+ const { pdf: e, pages: t } = K(), [n, o] = $({
250
249
  loadedPages: 0,
251
250
  totalPages: 0,
252
251
  percentage: 0
253
- }), [n, i] = $(!1), [c, s] = $(!1), [l, d] = $(null), u = W(!1);
252
+ }), [r, i] = $(!1), [c, s] = $(!1), [l, d] = $(null), u = W(!1);
254
253
  A(() => {
255
254
  u.current;
256
255
  }, [u]);
@@ -279,7 +278,7 @@ const fo = () => {
279
278
  h();
280
279
  return;
281
280
  }
282
- const I = C / un.PDF;
281
+ const I = C / ur.PDF;
283
282
  T.width = Math.floor(P.width * I), T.height = Math.floor(P.height * I);
284
283
  const O = T.getContext("2d");
285
284
  O.save(), O.fillStyle = "rgb(255, 255, 255)", O.fillRect(0, 0, T.width, T.height), O.restore();
@@ -296,14 +295,14 @@ const fo = () => {
296
295
  transform: [I, 0, 0, I, 0, 0],
297
296
  viewport: R.getViewport({ scale: 1, rotation: P.rotation }),
298
297
  intent: "print",
299
- annotationMode: pn.ENABLE_STORAGE,
298
+ annotationMode: pr.ENABLE_STORAGE,
300
299
  optionalContentConfigPromise: x,
301
300
  printAnnotationStorage: k
302
301
  };
303
302
  try {
304
303
  return R.render(z).promise;
305
304
  } catch (y) {
306
- throw y instanceof hn || console.error(y), y;
305
+ throw y instanceof hr || console.error(y), y;
307
306
  }
308
307
  }, w = L(() => {
309
308
  const T = window.print;
@@ -400,12 +399,12 @@ const fo = () => {
400
399
  }, [f, h]), {
401
400
  print: m,
402
401
  cancel: g,
403
- progress: r,
404
- isComplete: n,
402
+ progress: n,
403
+ isComplete: r,
405
404
  isError: c,
406
405
  error: l
407
406
  };
408
- }, wr = je({
407
+ }, bn = je({
409
408
  print: () => {
410
409
  },
411
410
  cancel: () => {
@@ -422,14 +421,14 @@ const fo = () => {
422
421
  console.error("Error in setOnError callback:", t);
423
422
  }
424
423
  }
425
- }), Ts = ({ children: e }) => {
426
- const [t, r] = $(null), [o, n] = $(null), { print: i, cancel: c, progress: s, isComplete: l, isError: d, error: u } = fo(), f = L((v) => {
427
- v && typeof v == "function" && n(() => v);
424
+ }), Cs = ({ children: e }) => {
425
+ const [t, n] = $(null), [o, r] = $(null), { print: i, cancel: c, progress: s, isComplete: l, isError: d, error: u } = fo(), f = L((v) => {
426
+ v && typeof v == "function" && r(() => v);
428
427
  }, []), h = (v) => {
429
428
  u && v(u);
430
429
  }, g = L(
431
430
  (v) => {
432
- r(() => v);
431
+ n(() => v);
433
432
  },
434
433
  [s, t]
435
434
  );
@@ -443,7 +442,7 @@ const fo = () => {
443
442
  s && t && t(s);
444
443
  }, [s, t]);
445
444
  const b = () => {
446
- o && (o(), n(null));
445
+ o && (o(), r(null));
447
446
  }, w = {
448
447
  print: i,
449
448
  cancel: c,
@@ -452,18 +451,18 @@ const fo = () => {
452
451
  setOnError: h,
453
452
  progress: s
454
453
  };
455
- return /* @__PURE__ */ a(wr.Provider, { value: w, children: e });
454
+ return /* @__PURE__ */ a(bn.Provider, { value: w, children: e });
456
455
  }, et = () => {
457
- const e = Be(wr);
456
+ const e = Be(bn);
458
457
  if (!e)
459
458
  throw new Error("usePrintContext must be used within a PrintProvider");
460
459
  return e;
461
460
  }, go = () => {
462
- const [e, t] = $({}), { pages: r } = K(), { rotate: o } = Ke(), n = F(() => Object.keys(e).length, [e]), i = L(
461
+ const [e, t] = $({}), { pages: n } = K(), { rotate: o } = Ke(), r = F(() => Object.keys(e).length, [e]), i = L(
463
462
  (s) => {
464
- if (!r.size || s > r.size)
463
+ if (!n.size || s > n.size)
465
464
  return;
466
- const l = Array.from(r.values()).slice(0, s).map((f) => {
465
+ const l = Array.from(n.values()).slice(0, s).map((f) => {
467
466
  const { thumbnailViewport: h, scale: g } = Wt(f.page, o);
468
467
  return {
469
468
  scale: g,
@@ -497,16 +496,16 @@ const fo = () => {
497
496
  }).catch(() => {
498
497
  });
499
498
  },
500
- [r, o]
499
+ [n, o]
501
500
  );
502
501
  A(() => {
503
502
  i(10);
504
503
  }, [i]);
505
504
  const c = L(
506
505
  (s) => {
507
- if (!r)
506
+ if (!n)
508
507
  return;
509
- const l = r.get(s);
508
+ const l = n.get(s);
510
509
  if (!l)
511
510
  return;
512
511
  t((u) => ({
@@ -532,10 +531,10 @@ const fo = () => {
532
531
  t((f) => ({ ...f, [s]: u }));
533
532
  });
534
533
  },
535
- [r, o]
534
+ [n, o]
536
535
  );
537
- return { thumbnailPages: e, addPage: c, addToPage: i, thumbnailLength: n };
538
- }, br = je({
536
+ return { thumbnailPages: e, addPage: c, addToPage: i, thumbnailLength: r };
537
+ }, Cn = je({
539
538
  thumbnailPages: {},
540
539
  addPage: (e) => {
541
540
  },
@@ -545,20 +544,20 @@ const fo = () => {
545
544
  setActive: (e) => {
546
545
  },
547
546
  active: !1
548
- }), Cr = () => Be(br), Ps = ({
547
+ }), Tn = () => Be(Cn), Ts = ({
549
548
  children: e,
550
549
  initialThumbnailsVisible: t
551
550
  }) => {
552
- const { thumbnailPages: r, addPage: o, addToPage: n, thumbnailLength: i } = go(), [c, s] = $(t);
551
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: i } = go(), [c, s] = $(t);
553
552
  return /* @__PURE__ */ a(
554
- br.Provider,
553
+ Cn.Provider,
555
554
  {
556
- value: { thumbnailPages: r, addPage: o, addToPage: n, thumbnailLength: i, active: c, setActive: s },
555
+ value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: i, active: c, setActive: s },
557
556
  children: e
558
557
  }
559
558
  );
560
559
  }, vo = (e = {}, t = "") => {
561
- const [r, o] = $(t), [n, i] = $(!1), { pdf: c, pages: s } = K(), l = Qe(), d = W(!r), { currentZoom: u } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ie(), [b, w] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = Je(), { scrollMode: m } = Ee(), { pagesRef: T } = be(), [S, p] = $(null), P = W({}), C = F(() => b === 0 ? null : f[b - 1], [b, f]), x = F(() => f.length, [f]);
560
+ const [n, o] = $(t), [r, i] = $(!1), { pdf: c, pages: s } = K(), l = Qe(), d = W(!n), { currentZoom: u } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ie(), [b, w] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = Je(), { scrollMode: m } = Ee(), { pagesRef: T } = be(), [S, p] = $(null), P = W({}), C = F(() => b === 0 ? null : f[b - 1], [b, f]), x = F(() => f.length, [f]);
562
561
  A(() => {
563
562
  if (!C || !s)
564
563
  return;
@@ -577,13 +576,13 @@ const fo = () => {
577
576
  textContentSource: Z,
578
577
  container: document.createElement("div")
579
578
  }), V.render().then(() => {
580
- const B = V.textDivs[C.start.idx], [j] = lr([C], Z, V.textDivs), te = l.widths[C.page - 1], ae = l.heights[C.page - 1], J = document.createElement("div"), re = document.createElement("div");
581
- B.style.position = "absolute", B.style.color = "transparent", re.style.position = "absolute", re.style.top = "0", re.style.setProperty("--scale-factor", `${u}`), J.style.position = "relative", J.style.width = `${te}px`, J.style.height = `${ae}px`, J.style.zIndex = "-1", J.appendChild(B), re.appendChild(J), T.prepend(re);
582
- const he = j.element.getBoundingClientRect(), ce = re.getBoundingClientRect(), Oe = he.top - ce.top, ve = he.left - ce.left, me = N + Oe - z + he.height / 2, le = M + ve - y + he.width / 2, De = {
579
+ const B = V.textDivs[C.start.idx], [j] = dn([C], Z, V.textDivs), te = l.widths[C.page - 1], ae = l.heights[C.page - 1], J = document.createElement("div"), ne = document.createElement("div");
580
+ B.style.position = "absolute", B.style.color = "transparent", ne.style.position = "absolute", ne.style.top = "0", ne.style.setProperty("--scale-factor", `${u}`), J.style.position = "relative", J.style.width = `${te}px`, J.style.height = `${ae}px`, J.style.zIndex = "-1", J.appendChild(B), ne.appendChild(J), T.prepend(ne);
581
+ const he = j.element.getBoundingClientRect(), ce = ne.getBoundingClientRect(), Oe = he.top - ce.top, ve = he.left - ce.left, me = N + Oe - z + he.height / 2, le = M + ve - y + he.width / 2, De = {
583
582
  left: Math.max(le, 0),
584
583
  top: Math.max(me, 0)
585
584
  };
586
- T.removeChild(re), R.scrollTo({
585
+ T.removeChild(ne), R.scrollTo({
587
586
  ...De
588
587
  });
589
588
  });
@@ -614,15 +613,15 @@ const fo = () => {
614
613
  return z;
615
614
  }, []);
616
615
  return A(() => {
617
- if (!r) {
616
+ if (!n) {
618
617
  d.current = !0, h([]), w(0);
619
618
  return;
620
619
  }
621
620
  d.current = !1, i(!0), h([]), w(0), O(c).then((R) => {
622
621
  P.current = R;
623
622
  const z = Object.keys(R).reduce((y, N) => {
624
- const M = ln(
625
- [r],
623
+ const M = lr(
624
+ [n],
626
625
  R[N],
627
626
  Number(N) - 1,
628
627
  e
@@ -633,10 +632,10 @@ const fo = () => {
633
632
  }).catch(() => {
634
633
  h([]), w(0);
635
634
  }).finally(() => i(!1));
636
- }, [r, O, c, e]), {
637
- search: r,
635
+ }, [n, O, c, e]), {
636
+ search: n,
638
637
  setSearch: o,
639
- loading: n,
638
+ loading: r,
640
639
  matches: f,
641
640
  totalMatches: x,
642
641
  currentMatchPosition: b,
@@ -646,7 +645,7 @@ const fo = () => {
646
645
  currentMatchElement: S,
647
646
  setCurrentMatchElement: p
648
647
  };
649
- }, Tr = je({
648
+ }, Pn = je({
650
649
  search: "",
651
650
  setSearch: (e) => {
652
651
  },
@@ -664,12 +663,12 @@ const fo = () => {
664
663
  currentMatchElement: null,
665
664
  setCurrentMatchElement: (e) => {
666
665
  }
667
- }), Ss = ({
666
+ }), Ps = ({
668
667
  children: e,
669
668
  initialSearch: t
670
669
  }) => {
671
- const [r, o] = $({}), {
672
- loading: n,
670
+ const [n, o] = $({}), {
671
+ loading: r,
673
672
  setSearch: i,
674
673
  totalMatches: c,
675
674
  currentMatchPosition: s,
@@ -680,14 +679,14 @@ const fo = () => {
680
679
  prevMatch: h,
681
680
  currentMatchElement: g,
682
681
  setCurrentMatchElement: b
683
- } = vo(r, t);
682
+ } = vo(n, t);
684
683
  return /* @__PURE__ */ a(
685
- Tr.Provider,
684
+ Pn.Provider,
686
685
  {
687
686
  value: {
688
- searchOptions: r,
687
+ searchOptions: n,
689
688
  setSearchOptions: o,
690
- loading: n,
689
+ loading: r,
691
690
  setSearch: i,
692
691
  totalMatches: c,
693
692
  currentMatchPosition: s,
@@ -702,7 +701,7 @@ const fo = () => {
702
701
  children: e
703
702
  }
704
703
  );
705
- }, Pr = () => Be(Tr), de = {
704
+ }, Sn = () => Be(Pn), de = {
706
705
  "rp-pages": "_rp-pages_1776r_1",
707
706
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1776r_7",
708
707
  "rp-pages-container": "_rp-pages-container_1776r_11",
@@ -716,13 +715,13 @@ const fo = () => {
716
715
  "rp-page": "_rp-page_h7a2q_1",
717
716
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
718
717
  }, _o = (e) => {
719
- const { pageNumber: t, onLoaded: r, onLoading: o } = e, n = W(null), { pages: i } = K(), { rotate: c } = Ke(), s = W(), { currentZoom: l } = Xe();
718
+ const { pageNumber: t, onLoaded: n, onLoading: o } = e, r = W(null), { pages: i } = K(), { rotate: c } = Ke(), s = W(), { currentZoom: l } = Xe();
720
719
  return A(() => {
721
720
  if (!i || l === 0)
722
721
  return;
723
722
  const d = i.get(t);
724
- if (n.current && d) {
725
- const u = n.current;
723
+ if (r.current && d) {
724
+ const u = r.current;
726
725
  u.hidden = !0;
727
726
  const f = s.current;
728
727
  f && f.cancel(), o && o(), s.current = vt(d.page, u, {
@@ -733,27 +732,27 @@ const fo = () => {
733
732
  u.hidden = !1;
734
733
  }).catch(() => {
735
734
  }).finally(() => {
736
- r && r();
735
+ n && n();
737
736
  });
738
737
  }
739
738
  return () => {
740
739
  var u;
741
740
  (u = s.current) == null || u.cancel();
742
741
  };
743
- }, [i, t, c, l, o, r]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${t}-canvas`, ref: n });
742
+ }, [i, t, c, l, o, n]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${t}-canvas`, ref: r });
744
743
  }, ct = {
745
744
  "rp-text-layer": "_rp-text-layer_kwwfn_1",
746
745
  "rp-text-layer-text": "_rp-text-layer-text_kwwfn_9"
747
746
  }, wo = (e) => {
748
- const { pageNumber: t } = e, { pages: r } = K(), o = W(null), { matches: n, currentMatch: i, setCurrentMatchElement: c } = Pr(), [s, l] = $(
747
+ const { pageNumber: t } = e, { pages: n } = K(), o = W(null), { matches: r, currentMatch: i, setCurrentMatchElement: c } = Sn(), [s, l] = $(
749
748
  []
750
- ), d = W(), u = W(), f = W(), h = F(() => n.filter((b) => b.pageIndex === t - 1), [n, t]), g = L(
749
+ ), d = W(), u = W(), f = W(), h = F(() => r.filter((b) => b.pageIndex === t - 1), [r, t]), g = L(
751
750
  (b, w, v = !1) => {
752
- if (v && dr(b, w), !h.length) {
751
+ if (v && un(b, w), !h.length) {
753
752
  f.current = void 0, l([]);
754
753
  return;
755
754
  }
756
- const _ = lr(h, b, w);
755
+ const _ = dn(h, b, w);
757
756
  l(_);
758
757
  },
759
758
  [h]
@@ -770,7 +769,7 @@ const fo = () => {
770
769
  const w = s.find((_) => _.index === b);
771
770
  w && (f.current = w.element, c(w.element), w.element.classList.add("selected"));
772
771
  }, [i, s, h]), A(() => {
773
- const b = r.get(t);
772
+ const b = n.get(t);
774
773
  if (!b || !o.current)
775
774
  return;
776
775
  const w = o.current;
@@ -793,7 +792,7 @@ const fo = () => {
793
792
  var v;
794
793
  (v = d.current) == null || v.cancel();
795
794
  };
796
- }, [r, t]), A(() => {
795
+ }, [n, t]), A(() => {
797
796
  var v;
798
797
  [].slice.call(o.current.children).forEach((_) => {
799
798
  _.classList.add(ct["rp-text-layer-text"]);
@@ -813,22 +812,22 @@ const fo = () => {
813
812
  };
814
813
  let Co = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
815
814
  const To = (e) => {
816
- const { pageNumber: t } = e, r = W(null), { pages: o, pdf: n } = K(), i = W(), [c, s] = $(), { setFocusedPage: l, goToPage: d } = ie(), { scrollMode: u } = Ee(), { print: f } = et(), { download: h } = $r(), g = F(() => o.get(t), [o, t]), b = F(() => g == null ? void 0 : g.page.getViewport(), [g]);
815
+ const { pageNumber: t } = e, n = W(null), { pages: o, pdf: r } = K(), i = W(), [c, s] = $(), { setFocusedPage: l, goToPage: d } = ie(), { scrollMode: u } = Ee(), { print: f } = et(), { download: h } = Gn(), g = F(() => o.get(t), [o, t]), b = F(() => g == null ? void 0 : g.page.getViewport(), [g]);
817
816
  A(() => {
818
817
  i.current && (i.current.div.replaceChildren(), i.current = void 0);
819
- }, [n]), A(() => {
818
+ }, [r]), A(() => {
820
819
  g && g.page.getAnnotations().then((v) => {
821
- i.current = void 0, s(v), r.current && (r.current.innerText = "");
820
+ i.current = void 0, s(v), n.current && (n.current.innerText = "");
822
821
  });
823
822
  }, [g]);
824
823
  const w = L(
825
824
  (v) => {
826
- !c || !n || (Ln(v), Rn(v, n, c).then((_) => {
825
+ !c || !r || (Lr(v), Rr(v, r, c).then((_) => {
827
826
  var m, T;
828
827
  ((m = _ == null ? void 0 : _.data) == null ? void 0 : m.action) === "Print" ? f() : ((T = _ == null ? void 0 : _.data) == null ? void 0 : T.action) === "SaveAs" && h();
829
- }), u === X.PAGE_SCROLLING ? Ft(v, c, n, (_) => l(_.pageIndex + 1)) : Ft(v, c, n, (_) => d(_.pageIndex + 1)));
828
+ }), u === X.PAGE_SCROLLING ? Ft(v, c, r, (_) => l(_.pageIndex + 1)) : Ft(v, c, r, (_) => d(_.pageIndex + 1)));
830
829
  },
831
- [n, c, d, l, u, f, h]
830
+ [r, c, d, l, u, f, h]
832
831
  );
833
832
  return A(() => {
834
833
  if (!g || !c)
@@ -845,99 +844,99 @@ const To = (e) => {
845
844
  const { annotationType: p } = S;
846
845
  switch (p) {
847
846
  case At.Link:
848
- En(S);
847
+ Er(S);
849
848
  break;
850
849
  case At.Widget:
851
- Nn(S, v, _);
850
+ Nr(S, v, _);
852
851
  break;
853
852
  }
854
853
  }
855
854
  const m = new AbortController();
856
855
  return (async () => {
857
856
  var P;
858
- i.current && (i.current.div.replaceChildren(), i.current = void 0), r.current && (r.current.innerText = ""), i.current = new mn({
859
- div: r.current,
857
+ i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new mr({
858
+ div: n.current,
860
859
  accessibilityManager: void 0,
861
860
  annotationCanvasMap: void 0,
862
861
  annotationEditorUIManager: void 0,
863
862
  structTreeLayer: null,
864
863
  page: g.page,
865
864
  viewport: v.clone({ dontFlip: !0 })
866
- }), r.current && kt(r.current, w);
867
- const S = await (n == null ? void 0 : n.hasJSActions()), p = await (n == null ? void 0 : n.getFieldObjects());
865
+ }), n.current && kt(n.current, w);
866
+ const S = await (r == null ? void 0 : r.hasJSActions()), p = await (r == null ? void 0 : r.getFieldObjects());
868
867
  if (m.signal.aborted)
869
868
  throw "abort";
870
869
  return (P = i.current) == null ? void 0 : P.render({
871
870
  annotations: c,
872
- annotationStorage: n == null ? void 0 : n.annotationStorage,
871
+ annotationStorage: r == null ? void 0 : r.annotationStorage,
873
872
  hasJSActions: S,
874
873
  fieldObjects: p,
875
- div: r.current,
874
+ div: n.current,
876
875
  viewport: v.clone({ dontFlip: !0 }),
877
876
  page: g.page,
878
877
  imageResourcesPath: Co,
879
878
  renderForms: !0,
880
- linkService: new yn(),
879
+ linkService: new yr(),
881
880
  downloadManager: null,
882
881
  enableScripting: !1
883
882
  });
884
883
  })().then(() => {
885
- r.current && On(r.current, w);
884
+ n.current && Or(n.current, w);
886
885
  }).catch((S) => {
887
886
  if (S !== "abort")
888
887
  throw S;
889
888
  }), () => {
890
- m.abort("clear"), r.current && kt(r.current, w);
889
+ m.abort("clear"), n.current && kt(n.current, w);
891
890
  };
892
- }, [n, c, w]), /* @__PURE__ */ a(
891
+ }, [r, c, w]), /* @__PURE__ */ a(
893
892
  "div",
894
893
  {
895
894
  "data-rp": `page-${t}-annotationLayer`,
896
895
  style: { width: `${b == null ? void 0 : b.width}px`, height: `${b == null ? void 0 : b.height}px` },
897
896
  className: bo["rp-annotation-layer"],
898
- ref: r
897
+ ref: n
899
898
  }
900
899
  );
901
900
  }, lt = {
902
901
  "rp-text-highlight-layer": "_rp-text-highlight-layer_1470i_1",
903
902
  "rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1470i_9"
904
903
  }, Po = ({ pageNumber: e }) => {
905
- const t = W(null), r = W(), o = W(), { pages: n } = K(), { highlightMatches: i } = fn(), c = F(() => i.filter((d) => d.pageIndex === e - 1), [i]), s = L(
904
+ const t = W(null), n = W(), o = W(), { pages: r } = K(), { highlightMatches: i } = fr(), c = F(() => i.filter((d) => d.pageIndex === e - 1), [i]), s = L(
906
905
  (l, d, u = !1) => {
907
- u && dr(l, d), dn(c, l, d);
906
+ u && un(l, d), dr(c, l, d);
908
907
  },
909
- [c, n, e]
908
+ [c, r, e]
910
909
  );
911
910
  return A(() => {
912
- const l = n.get(e);
911
+ const l = r.get(e);
913
912
  if (!l || !t.current)
914
913
  return;
915
914
  const d = t.current;
916
- return r.current && r.current.cancel(), l.page.getTextContent().then((u) => {
915
+ return n.current && n.current.cancel(), l.page.getTextContent().then((u) => {
917
916
  const f = l.page.getViewport({ scale: 1 });
918
- return r.current = new Ct.TextLayer({
917
+ return n.current = new Ct.TextLayer({
919
918
  viewport: f,
920
919
  textContentSource: u,
921
920
  container: d
922
- }), o.current = u, d && (d.innerText = ""), r.current.render();
921
+ }), o.current = u, d && (d.innerText = ""), n.current.render();
923
922
  }).then(() => {
924
923
  var h;
925
924
  [].slice.call(d.children).forEach((g) => {
926
925
  g.classList.add(lt["rp-text-highlight-layer-text"]);
927
926
  });
928
- const f = (h = r.current) == null ? void 0 : h.textDivs;
927
+ const f = (h = n.current) == null ? void 0 : h.textDivs;
929
928
  f && o.current && s(o.current, f);
930
929
  }).catch(() => {
931
930
  }), () => {
932
931
  var u;
933
- (u = r.current) == null || u.cancel();
932
+ (u = n.current) == null || u.cancel();
934
933
  };
935
- }, [n, e]), A(() => {
934
+ }, [r, e]), A(() => {
936
935
  var u;
937
936
  [].slice.call(t.current.children).forEach((f) => {
938
937
  f.classList.add(lt["rp-text-highlight-layer-text"]);
939
938
  });
940
- const d = (u = r.current) == null ? void 0 : u.textDivs;
939
+ const d = (u = n.current) == null ? void 0 : u.textDivs;
941
940
  d && o.current && s(o.current, d, !0);
942
941
  }, [s]), /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a(
943
942
  "div",
@@ -948,16 +947,16 @@ const To = (e) => {
948
947
  }
949
948
  ) });
950
949
  }, Lt = We((e, t) => {
951
- const { pageNumber: r, style: o, ...n } = e, { pages: i } = K(), { rotate: c } = Ke(), { textLayer: s } = on(), { currentZoom: l } = Xe(), d = W(i.get(r)), [u, f] = $(!1), h = W(null), [g, b] = $({
950
+ const { pageNumber: n, style: o, ...r } = e, { pages: i } = K(), { rotate: c } = Ke(), { textLayer: s } = ir(), { currentZoom: l } = Xe(), d = W(i.get(n)), [u, f] = $(!1), h = W(null), [g, b] = $({
952
951
  width: 0,
953
952
  height: 0
954
953
  });
955
- ar(t, () => h.current), A(() => {
956
- if (i && (d.current = i.get(r), d.current)) {
954
+ sn(t, () => h.current), A(() => {
955
+ if (i && (d.current = i.get(n), d.current)) {
957
956
  const m = d.current.page.getViewport({ scale: l, rotation: c });
958
957
  b(m);
959
958
  }
960
- }, [i, r, c, l]);
959
+ }, [i, n, c, l]);
961
960
  const w = F(() => {
962
961
  switch (c) {
963
962
  case 90:
@@ -977,9 +976,9 @@ const To = (e) => {
977
976
  "div",
978
977
  {
979
978
  ref: h,
980
- id: `page-${r}`,
981
- "data-rp": `page-${r}`,
982
- ...n,
979
+ id: `page-${n}`,
980
+ "data-rp": `page-${n}`,
981
+ ...r,
983
982
  style: {
984
983
  ...o,
985
984
  "--rp-rotate": `${c}deg`,
@@ -996,11 +995,11 @@ const To = (e) => {
996
995
  },
997
996
  className: st["rp-page"],
998
997
  children: [
999
- /* @__PURE__ */ a(_o, { onLoading: v, onLoaded: _, pageNumber: r }),
998
+ /* @__PURE__ */ a(_o, { onLoading: v, onLoaded: _, pageNumber: n }),
1000
999
  u && /* @__PURE__ */ a("div", { className: st["rp-loader-wrapper"], children: /* @__PURE__ */ a(Pt, {}) }),
1001
- s && /* @__PURE__ */ a(wo, { pageNumber: r }),
1002
- /* @__PURE__ */ a(Po, { pageNumber: r }),
1003
- /* @__PURE__ */ a(To, { pageNumber: r })
1000
+ s && /* @__PURE__ */ a(wo, { pageNumber: n }),
1001
+ /* @__PURE__ */ a(Po, { pageNumber: n }),
1002
+ /* @__PURE__ */ a(To, { pageNumber: n })
1004
1003
  ]
1005
1004
  }
1006
1005
  )
@@ -1013,8 +1012,8 @@ function Vt(e) {
1013
1012
  return e;
1014
1013
  }
1015
1014
  function _t(e, t) {
1016
- return _t = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
1017
- return r.__proto__ = o, r;
1015
+ return _t = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
1016
+ return n.__proto__ = o, n;
1018
1017
  }, _t(e, t);
1019
1018
  }
1020
1019
  function So(e, t) {
@@ -1029,32 +1028,32 @@ function xo(e, t) {
1029
1028
  function Io(e, t) {
1030
1029
  if (e.length !== t.length)
1031
1030
  return !1;
1032
- for (var r = 0; r < e.length; r++)
1033
- if (!xo(e[r], t[r]))
1031
+ for (var n = 0; n < e.length; n++)
1032
+ if (!xo(e[n], t[n]))
1034
1033
  return !1;
1035
1034
  return !0;
1036
1035
  }
1037
1036
  function dt(e, t) {
1038
1037
  t === void 0 && (t = Io);
1039
- var r, o = [], n, i = !1;
1038
+ var n, o = [], r, i = !1;
1040
1039
  function c() {
1041
1040
  for (var s = [], l = 0; l < arguments.length; l++)
1042
1041
  s[l] = arguments[l];
1043
- return i && r === this && t(s, o) || (n = e.apply(this, s), i = !0, r = this, o = s), n;
1042
+ return i && n === this && t(s, o) || (r = e.apply(this, s), i = !0, n = this, o = s), r;
1044
1043
  }
1045
1044
  return c;
1046
1045
  }
1047
1046
  function qt(e, t) {
1048
1047
  if (e == null)
1049
1048
  return {};
1050
- var r = {};
1049
+ var n = {};
1051
1050
  for (var o in e)
1052
1051
  if ({}.hasOwnProperty.call(e, o)) {
1053
1052
  if (t.indexOf(o) !== -1)
1054
1053
  continue;
1055
- r[o] = e[o];
1054
+ n[o] = e[o];
1056
1055
  }
1057
- return r;
1056
+ return n;
1058
1057
  }
1059
1058
  var yo = typeof performance == "object" && typeof performance.now == "function", Zt = yo ? function() {
1060
1059
  return performance.now();
@@ -1065,42 +1064,42 @@ function jt(e) {
1065
1064
  cancelAnimationFrame(e.id);
1066
1065
  }
1067
1066
  function Lo(e, t) {
1068
- var r = Zt();
1067
+ var n = Zt();
1069
1068
  function o() {
1070
- Zt() - r >= t ? e.call(null) : n.id = requestAnimationFrame(o);
1069
+ Zt() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
1071
1070
  }
1072
- var n = {
1071
+ var r = {
1073
1072
  id: requestAnimationFrame(o)
1074
1073
  };
1075
- return n;
1074
+ return r;
1076
1075
  }
1077
1076
  var ut = -1;
1078
1077
  function Ro(e) {
1079
1078
  if (e === void 0 && (e = !1), ut === -1 || e) {
1080
- var t = document.createElement("div"), r = t.style;
1081
- r.width = "50px", r.height = "50px", r.overflow = "scroll", document.body.appendChild(t), ut = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
1079
+ var t = document.createElement("div"), n = t.style;
1080
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), ut = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
1082
1081
  }
1083
1082
  return ut;
1084
1083
  }
1085
1084
  var Le = null;
1086
1085
  function Bt(e) {
1087
1086
  if (e === void 0 && (e = !1), Le === null || e) {
1088
- var t = document.createElement("div"), r = t.style;
1089
- r.width = "50px", r.height = "50px", r.overflow = "scroll", r.direction = "rtl";
1090
- var o = document.createElement("div"), n = o.style;
1091
- return n.width = "100px", n.height = "100px", t.appendChild(o), document.body.appendChild(t), t.scrollLeft > 0 ? Le = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? Le = "negative" : Le = "positive-ascending"), document.body.removeChild(t), Le;
1087
+ var t = document.createElement("div"), n = t.style;
1088
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
1089
+ var o = document.createElement("div"), r = o.style;
1090
+ return r.width = "100px", r.height = "100px", t.appendChild(o), document.body.appendChild(t), t.scrollLeft > 0 ? Le = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? Le = "negative" : Le = "positive-ascending"), document.body.removeChild(t), Le;
1092
1091
  }
1093
1092
  return Le;
1094
1093
  }
1095
1094
  var No = 150, Eo = function(t) {
1096
- var r = t.columnIndex;
1095
+ var n = t.columnIndex;
1097
1096
  t.data;
1098
1097
  var o = t.rowIndex;
1099
- return o + ":" + r;
1098
+ return o + ":" + n;
1100
1099
  }, $e = null, Ge = null, Ve = null;
1101
1100
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && ($e = /* @__PURE__ */ new WeakSet(), Ge = /* @__PURE__ */ new WeakSet(), Ve = /* @__PURE__ */ new WeakSet());
1102
1101
  function Oo(e) {
1103
- var t, r = e.getColumnOffset, o = e.getColumnStartIndexForOffset, n = e.getColumnStopIndexForStartIndex, i = e.getColumnWidth, c = e.getEstimatedTotalHeight, s = e.getEstimatedTotalWidth, l = e.getOffsetForColumnAndAlignment, d = e.getOffsetForRowAndAlignment, u = e.getRowHeight, f = e.getRowOffset, h = e.getRowStartIndexForOffset, g = e.getRowStopIndexForStartIndex, b = e.initInstanceProps, w = e.shouldResetStyleCacheOnItemSizeChange, v = e.validateProps;
1102
+ var t, n = e.getColumnOffset, o = e.getColumnStartIndexForOffset, r = e.getColumnStopIndexForStartIndex, i = e.getColumnWidth, c = e.getEstimatedTotalHeight, s = e.getEstimatedTotalWidth, l = e.getOffsetForColumnAndAlignment, d = e.getOffsetForRowAndAlignment, u = e.getRowHeight, f = e.getRowOffset, h = e.getRowStartIndexForOffset, g = e.getRowStopIndexForStartIndex, b = e.initInstanceProps, w = e.shouldResetStyleCacheOnItemSizeChange, v = e.validateProps;
1104
1103
  return t = /* @__PURE__ */ function(_) {
1105
1104
  So(m, _);
1106
1105
  function m(S) {
@@ -1137,7 +1136,7 @@ function Oo(e) {
1137
1136
  if (R.hasOwnProperty(k))
1138
1137
  z = R[k];
1139
1138
  else {
1140
- var y = r(p.props, C, p._instanceProps), N = I === "rtl";
1139
+ var y = n(p.props, C, p._instanceProps), N = I === "rtl";
1141
1140
  R[k] = z = {
1142
1141
  position: "absolute",
1143
1142
  left: N ? void 0 : y,
@@ -1244,10 +1243,10 @@ function Oo(e) {
1244
1243
  }, T.componentWillUnmount = function() {
1245
1244
  this._resetIsScrollingTimeoutId !== null && jt(this._resetIsScrollingTimeoutId);
1246
1245
  }, T.render = function() {
1247
- var p = this.props, P = p.children, C = p.className, x = p.columnCount, E = p.direction, I = p.height, O = p.innerRef, R = p.innerElementType, k = p.innerTagName, z = p.itemData, y = p.itemKey, N = y === void 0 ? Eo : y, M = p.outerElementType, V = p.outerTagName, Z = p.rowCount, Y = p.style, B = p.useIsScrolling, j = p.width, te = this.state.isScrolling, ae = this._getHorizontalRangeToRender(), J = ae[0], re = ae[1], he = this._getVerticalRangeToRender(), ce = he[0], Oe = he[1], ve = [];
1246
+ var p = this.props, P = p.children, C = p.className, x = p.columnCount, E = p.direction, I = p.height, O = p.innerRef, R = p.innerElementType, k = p.innerTagName, z = p.itemData, y = p.itemKey, N = y === void 0 ? Eo : y, M = p.outerElementType, V = p.outerTagName, Z = p.rowCount, Y = p.style, B = p.useIsScrolling, j = p.width, te = this.state.isScrolling, ae = this._getHorizontalRangeToRender(), J = ae[0], ne = ae[1], he = this._getVerticalRangeToRender(), ce = he[0], Oe = he[1], ve = [];
1248
1247
  if (x > 0 && Z)
1249
1248
  for (var me = ce; me <= Oe; me++)
1250
- for (var le = J; le <= re; le++)
1249
+ for (var le = J; le <= ne; le++)
1251
1250
  ve.push(He(P, {
1252
1251
  columnIndex: le,
1253
1252
  data: z,
@@ -1265,7 +1264,7 @@ function Oo(e) {
1265
1264
  className: C,
1266
1265
  onScroll: this._onScroll,
1267
1266
  ref: this._outerRefSetter,
1268
- style: Dn({
1267
+ style: Dr({
1269
1268
  position: "relative",
1270
1269
  height: I,
1271
1270
  width: j,
@@ -1297,7 +1296,7 @@ function Oo(e) {
1297
1296
  var p = this.props, P = p.columnCount, C = p.overscanColumnCount, x = p.overscanColumnsCount, E = p.overscanCount, I = p.rowCount, O = this.state, R = O.horizontalScrollDirection, k = O.isScrolling, z = O.scrollLeft, y = C || x || E || 1;
1298
1297
  if (P === 0 || I === 0)
1299
1298
  return [0, 0, 0, 0];
1300
- var N = o(this.props, z, this._instanceProps), M = n(this.props, N, z, this._instanceProps), V = !k || R === "backward" ? Math.max(1, y) : 1, Z = !k || R === "forward" ? Math.max(1, y) : 1;
1299
+ var N = o(this.props, z, this._instanceProps), M = r(this.props, N, z, this._instanceProps), V = !k || R === "backward" ? Math.max(1, y) : 1, Z = !k || R === "forward" ? Math.max(1, y) : 1;
1301
1300
  return [Math.max(0, N - V), Math.max(0, Math.min(P - 1, M + Z)), N, M];
1302
1301
  }, T._getVerticalRangeToRender = function() {
1303
1302
  var p = this.props, P = p.columnCount, C = p.overscanCount, x = p.overscanRowCount, E = p.overscanRowsCount, I = p.rowCount, O = this.state, R = O.isScrolling, k = O.verticalScrollDirection, z = O.scrollTop, y = x || E || C || 1;
@@ -1306,48 +1305,48 @@ function Oo(e) {
1306
1305
  var N = h(this.props, z, this._instanceProps), M = g(this.props, N, z, this._instanceProps), V = !R || k === "backward" ? Math.max(1, y) : 1, Z = !R || k === "forward" ? Math.max(1, y) : 1;
1307
1306
  return [Math.max(0, N - V), Math.max(0, Math.min(I - 1, M + Z)), N, M];
1308
1307
  }, m;
1309
- }(Qr), t.defaultProps = {
1308
+ }(er), t.defaultProps = {
1310
1309
  direction: "ltr",
1311
1310
  itemData: void 0,
1312
1311
  useIsScrolling: !1
1313
1312
  }, t;
1314
1313
  }
1315
- var Do = function(t, r) {
1316
- var o = t.children, n = t.direction, i = t.height, c = t.innerTagName, s = t.outerTagName, l = t.overscanColumnsCount, d = t.overscanCount, u = t.overscanRowsCount, f = t.width, h = r.instance;
1314
+ var Do = function(t, n) {
1315
+ var o = t.children, r = t.direction, i = t.height, c = t.innerTagName, s = t.outerTagName, l = t.overscanColumnsCount, d = t.overscanCount, u = t.overscanRowsCount, f = t.width, h = n.instance;
1317
1316
  if (process.env.NODE_ENV !== "production") {
1318
1317
  if (typeof d == "number" && $e && !$e.has(h) && ($e.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof u == "number") && Ge && !Ge.has(h) && (Ge.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || s != null) && Ve && !Ve.has(h) && (Ve.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1319
1318
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1320
- switch (n) {
1319
+ switch (r) {
1321
1320
  case "ltr":
1322
1321
  case "rtl":
1323
1322
  break;
1324
1323
  default:
1325
- throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + n + '" was specified.'));
1324
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + r + '" was specified.'));
1326
1325
  }
1327
1326
  if (typeof f != "number")
1328
1327
  throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (f === null ? "null" : typeof f) + '" was specified.'));
1329
1328
  if (typeof i != "number")
1330
1329
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
1331
1330
  }
1332
- }, Kt = 50, Sr = function(t, r) {
1333
- var o = t.rowCount, n = r.rowMetadataMap, i = r.estimatedRowHeight, c = r.lastMeasuredRowIndex, s = 0;
1331
+ }, Kt = 50, xn = function(t, n) {
1332
+ var o = t.rowCount, r = n.rowMetadataMap, i = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, s = 0;
1334
1333
  if (c >= o && (c = o - 1), c >= 0) {
1335
- var l = n[c];
1334
+ var l = r[c];
1336
1335
  s = l.offset + l.size;
1337
1336
  }
1338
1337
  var d = o - c - 1, u = d * i;
1339
1338
  return s + u;
1340
- }, xr = function(t, r) {
1341
- var o = t.columnCount, n = r.columnMetadataMap, i = r.estimatedColumnWidth, c = r.lastMeasuredColumnIndex, s = 0;
1339
+ }, In = function(t, n) {
1340
+ var o = t.columnCount, r = n.columnMetadataMap, i = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, s = 0;
1342
1341
  if (c >= o && (c = o - 1), c >= 0) {
1343
- var l = n[c];
1342
+ var l = r[c];
1344
1343
  s = l.offset + l.size;
1345
1344
  }
1346
1345
  var d = o - c - 1, u = d * i;
1347
1346
  return s + u;
1348
- }, fe = function(t, r, o, n) {
1347
+ }, fe = function(t, n, o, r) {
1349
1348
  var i, c, s;
1350
- if (t === "column" ? (i = n.columnMetadataMap, c = r.columnWidth, s = n.lastMeasuredColumnIndex) : (i = n.rowMetadataMap, c = r.rowHeight, s = n.lastMeasuredRowIndex), o > s) {
1349
+ if (t === "column" ? (i = r.columnMetadataMap, c = n.columnWidth, s = r.lastMeasuredColumnIndex) : (i = r.rowMetadataMap, c = n.rowHeight, s = r.lastMeasuredRowIndex), o > s) {
1351
1350
  var l = 0;
1352
1351
  if (s >= 0) {
1353
1352
  var d = i[s];
@@ -1360,29 +1359,29 @@ var Do = function(t, r) {
1360
1359
  size: f
1361
1360
  }, l += f;
1362
1361
  }
1363
- t === "column" ? n.lastMeasuredColumnIndex = o : n.lastMeasuredRowIndex = o;
1362
+ t === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
1364
1363
  }
1365
1364
  return i[o];
1366
- }, Xt = function(t, r, o, n) {
1365
+ }, Xt = function(t, n, o, r) {
1367
1366
  var i, c;
1368
1367
  t === "column" ? (i = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (i = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1369
1368
  var s = c > 0 ? i[c].offset : 0;
1370
- return s >= n ? Ir(t, r, o, c, 0, n) : zo(t, r, o, Math.max(0, c), n);
1371
- }, Ir = function(t, r, o, n, i, c) {
1372
- for (; i <= n; ) {
1373
- var s = i + Math.floor((n - i) / 2), l = fe(t, r, s, o).offset;
1369
+ return s >= r ? yn(t, n, o, c, 0, r) : zo(t, n, o, Math.max(0, c), r);
1370
+ }, yn = function(t, n, o, r, i, c) {
1371
+ for (; i <= r; ) {
1372
+ var s = i + Math.floor((r - i) / 2), l = fe(t, n, s, o).offset;
1374
1373
  if (l === c)
1375
1374
  return s;
1376
- l < c ? i = s + 1 : l > c && (n = s - 1);
1375
+ l < c ? i = s + 1 : l > c && (r = s - 1);
1377
1376
  }
1378
1377
  return i > 0 ? i - 1 : 0;
1379
- }, zo = function(t, r, o, n, i) {
1380
- for (var c = t === "column" ? r.columnCount : r.rowCount, s = 1; n < c && fe(t, r, n, o).offset < i; )
1381
- n += s, s *= 2;
1382
- return Ir(t, r, o, Math.min(n, c - 1), Math.floor(n / 2), i);
1383
- }, Yt = function(t, r, o, n, i, c, s) {
1384
- var l = t === "column" ? r.width : r.height, d = fe(t, r, o, c), u = t === "column" ? xr(r, c) : Sr(r, c), f = Math.max(0, Math.min(u - l, d.offset)), h = Math.max(0, d.offset - l + s + d.size);
1385
- switch (n === "smart" && (i >= h - l && i <= f + l ? n = "auto" : n = "center"), n) {
1378
+ }, zo = function(t, n, o, r, i) {
1379
+ for (var c = t === "column" ? n.columnCount : n.rowCount, s = 1; r < c && fe(t, n, r, o).offset < i; )
1380
+ r += s, s *= 2;
1381
+ return yn(t, n, o, Math.min(r, c - 1), Math.floor(r / 2), i);
1382
+ }, Yt = function(t, n, o, r, i, c, s) {
1383
+ var l = t === "column" ? n.width : n.height, d = fe(t, n, o, c), u = t === "column" ? In(n, c) : xn(n, c), f = Math.max(0, Math.min(u - l, d.offset)), h = Math.max(0, d.offset - l + s + d.size);
1384
+ switch (r === "smart" && (i >= h - l && i <= f + l ? r = "auto" : r = "center"), r) {
1386
1385
  case "start":
1387
1386
  return f;
1388
1387
  case "end":
@@ -1394,72 +1393,72 @@ var Do = function(t, r) {
1394
1393
  return i >= h && i <= f ? i : h > f || i < h ? h : f;
1395
1394
  }
1396
1395
  }, Ao = /* @__PURE__ */ Oo({
1397
- getColumnOffset: function(t, r, o) {
1398
- return fe("column", t, r, o).offset;
1396
+ getColumnOffset: function(t, n, o) {
1397
+ return fe("column", t, n, o).offset;
1399
1398
  },
1400
- getColumnStartIndexForOffset: function(t, r, o) {
1401
- return Xt("column", t, o, r);
1399
+ getColumnStartIndexForOffset: function(t, n, o) {
1400
+ return Xt("column", t, o, n);
1402
1401
  },
1403
- getColumnStopIndexForStartIndex: function(t, r, o, n) {
1404
- for (var i = t.columnCount, c = t.width, s = fe("column", t, r, n), l = o + c, d = s.offset + s.size, u = r; u < i - 1 && d < l; )
1405
- u++, d += fe("column", t, u, n).size;
1402
+ getColumnStopIndexForStartIndex: function(t, n, o, r) {
1403
+ for (var i = t.columnCount, c = t.width, s = fe("column", t, n, r), l = o + c, d = s.offset + s.size, u = n; u < i - 1 && d < l; )
1404
+ u++, d += fe("column", t, u, r).size;
1406
1405
  return u;
1407
1406
  },
1408
- getColumnWidth: function(t, r, o) {
1409
- return o.columnMetadataMap[r].size;
1407
+ getColumnWidth: function(t, n, o) {
1408
+ return o.columnMetadataMap[n].size;
1410
1409
  },
1411
- getEstimatedTotalHeight: Sr,
1412
- getEstimatedTotalWidth: xr,
1413
- getOffsetForColumnAndAlignment: function(t, r, o, n, i, c) {
1414
- return Yt("column", t, r, o, n, i, c);
1410
+ getEstimatedTotalHeight: xn,
1411
+ getEstimatedTotalWidth: In,
1412
+ getOffsetForColumnAndAlignment: function(t, n, o, r, i, c) {
1413
+ return Yt("column", t, n, o, r, i, c);
1415
1414
  },
1416
- getOffsetForRowAndAlignment: function(t, r, o, n, i, c) {
1417
- return Yt("row", t, r, o, n, i, c);
1415
+ getOffsetForRowAndAlignment: function(t, n, o, r, i, c) {
1416
+ return Yt("row", t, n, o, r, i, c);
1418
1417
  },
1419
- getRowOffset: function(t, r, o) {
1420
- return fe("row", t, r, o).offset;
1418
+ getRowOffset: function(t, n, o) {
1419
+ return fe("row", t, n, o).offset;
1421
1420
  },
1422
- getRowHeight: function(t, r, o) {
1423
- return o.rowMetadataMap[r].size;
1421
+ getRowHeight: function(t, n, o) {
1422
+ return o.rowMetadataMap[n].size;
1424
1423
  },
1425
- getRowStartIndexForOffset: function(t, r, o) {
1426
- return Xt("row", t, o, r);
1424
+ getRowStartIndexForOffset: function(t, n, o) {
1425
+ return Xt("row", t, o, n);
1427
1426
  },
1428
- getRowStopIndexForStartIndex: function(t, r, o, n) {
1429
- for (var i = t.rowCount, c = t.height, s = fe("row", t, r, n), l = o + c, d = s.offset + s.size, u = r; u < i - 1 && d < l; )
1430
- u++, d += fe("row", t, u, n).size;
1427
+ getRowStopIndexForStartIndex: function(t, n, o, r) {
1428
+ for (var i = t.rowCount, c = t.height, s = fe("row", t, n, r), l = o + c, d = s.offset + s.size, u = n; u < i - 1 && d < l; )
1429
+ u++, d += fe("row", t, u, r).size;
1431
1430
  return u;
1432
1431
  },
1433
- initInstanceProps: function(t, r) {
1434
- var o = t, n = o.estimatedColumnWidth, i = o.estimatedRowHeight, c = {
1432
+ initInstanceProps: function(t, n) {
1433
+ var o = t, r = o.estimatedColumnWidth, i = o.estimatedRowHeight, c = {
1435
1434
  columnMetadataMap: {},
1436
- estimatedColumnWidth: n || Kt,
1435
+ estimatedColumnWidth: r || Kt,
1437
1436
  estimatedRowHeight: i || Kt,
1438
1437
  lastMeasuredColumnIndex: -1,
1439
1438
  lastMeasuredRowIndex: -1,
1440
1439
  rowMetadataMap: {}
1441
1440
  };
1442
- return r.resetAfterColumnIndex = function(s, l) {
1443
- l === void 0 && (l = !0), r.resetAfterIndices({
1441
+ return n.resetAfterColumnIndex = function(s, l) {
1442
+ l === void 0 && (l = !0), n.resetAfterIndices({
1444
1443
  columnIndex: s,
1445
1444
  shouldForceUpdate: l
1446
1445
  });
1447
- }, r.resetAfterRowIndex = function(s, l) {
1448
- l === void 0 && (l = !0), r.resetAfterIndices({
1446
+ }, n.resetAfterRowIndex = function(s, l) {
1447
+ l === void 0 && (l = !0), n.resetAfterIndices({
1449
1448
  rowIndex: s,
1450
1449
  shouldForceUpdate: l
1451
1450
  });
1452
- }, r.resetAfterIndices = function(s) {
1451
+ }, n.resetAfterIndices = function(s) {
1453
1452
  var l = s.columnIndex, d = s.rowIndex, u = s.shouldForceUpdate, f = u === void 0 ? !0 : u;
1454
- typeof l == "number" && (c.lastMeasuredColumnIndex = Math.min(c.lastMeasuredColumnIndex, l - 1)), typeof d == "number" && (c.lastMeasuredRowIndex = Math.min(c.lastMeasuredRowIndex, d - 1)), r._getItemStyleCache(-1), f && r.forceUpdate();
1453
+ typeof l == "number" && (c.lastMeasuredColumnIndex = Math.min(c.lastMeasuredColumnIndex, l - 1)), typeof d == "number" && (c.lastMeasuredRowIndex = Math.min(c.lastMeasuredRowIndex, d - 1)), n._getItemStyleCache(-1), f && n.forceUpdate();
1455
1454
  }, c;
1456
1455
  },
1457
1456
  shouldResetStyleCacheOnItemSizeChange: !1,
1458
1457
  validateProps: function(t) {
1459
- var r = t.columnWidth, o = t.rowHeight;
1458
+ var n = t.columnWidth, o = t.rowHeight;
1460
1459
  if (process.env.NODE_ENV !== "production") {
1461
- if (typeof r != "function")
1462
- throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1460
+ if (typeof n != "function")
1461
+ throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
1463
1462
  if (typeof o != "function")
1464
1463
  throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1465
1464
  }
@@ -1467,8 +1466,8 @@ var Do = function(t, r) {
1467
1466
  });
1468
1467
  process.env.NODE_ENV;
1469
1468
  function Jt(e, t) {
1470
- for (var r in e)
1471
- if (!(r in t))
1469
+ for (var n in e)
1470
+ if (!(n in t))
1472
1471
  return !0;
1473
1472
  for (var o in t)
1474
1473
  if (e[o] !== t[o])
@@ -1477,27 +1476,27 @@ function Jt(e, t) {
1477
1476
  }
1478
1477
  var Fo = ["style"], ko = ["style"];
1479
1478
  function Wo(e, t) {
1480
- var r = e.style, o = qt(e, Fo), n = t.style, i = qt(t, ko);
1481
- return !Jt(r, n) && !Jt(o, i);
1479
+ var n = e.style, o = qt(e, Fo), r = t.style, i = qt(t, ko);
1480
+ return !Jt(n, r) && !Jt(o, i);
1482
1481
  }
1483
1482
  const Mo = () => {
1484
- const { viewMode: e } = Ye(), { scrollMode: t } = Ee(), { setColumnCount: r } = cr(), { virtualScrollableElementRef: o } = Je(), n = Qe(), i = L(
1485
- (g) => n.widths[g] || 0,
1486
- [n.widths]
1483
+ const { viewMode: e } = Ye(), { scrollMode: t } = Ee(), { setColumnCount: n } = ln(), { virtualScrollableElementRef: o } = Je(), r = Qe(), i = L(
1484
+ (g) => r.widths[g] || 0,
1485
+ [r.widths]
1487
1486
  ), c = L(
1488
- (g) => n.heights[g] || 0,
1489
- [n.heights]
1490
- ), s = F(() => n.heights.length, [n.heights]), l = F(() => Math.max(...n.widths), [n.widths]), d = F(() => t === X.HORIZONTAL_SCROLLING ? s : e === Ue.DUAL_PAGE ? 2 : 1, [e, t, t, s, o, l]);
1487
+ (g) => r.heights[g] || 0,
1488
+ [r.heights]
1489
+ ), s = F(() => r.heights.length, [r.heights]), l = F(() => Math.max(...r.widths), [r.widths]), d = F(() => t === X.HORIZONTAL_SCROLLING ? s : e === Ue.DUAL_PAGE ? 2 : 1, [e, t, t, s, o, l]);
1491
1490
  A(() => {
1492
- r(d);
1493
- }, [d, r]);
1494
- const u = F(() => t === X.HORIZONTAL_SCROLLING || t === X.PAGE_SCROLLING ? 1 : Math.round(s / d), [d, s, t]), f = F(() => n.heights.reduce((g, b) => g + b, 0) / n.heights.length || 0, [n]), h = F(() => n.widths.reduce((g, b) => g + b, 0) / n.heights.length || 0, [n]);
1491
+ n(d);
1492
+ }, [d, n]);
1493
+ const u = F(() => t === X.HORIZONTAL_SCROLLING || t === X.PAGE_SCROLLING ? 1 : Math.round(s / d), [d, s, t]), f = F(() => r.heights.reduce((g, b) => g + b, 0) / r.heights.length || 0, [r]), h = F(() => r.widths.reduce((g, b) => g + b, 0) / r.heights.length || 0, [r]);
1495
1494
  return {
1496
1495
  rowCount: u,
1497
1496
  rowHeight: c,
1498
1497
  columnCount: d,
1499
1498
  columnWidth: i,
1500
- pageDimension: n,
1499
+ pageDimension: r,
1501
1500
  estimatedRowHeight: f,
1502
1501
  estimatedColumnWidth: h
1503
1502
  };
@@ -1505,21 +1504,21 @@ const Mo = () => {
1505
1504
  let oe;
1506
1505
  typeof window < "u" ? oe = window : typeof self < "u" ? oe = self : oe = global;
1507
1506
  let wt = null, bt = null;
1508
- const Qt = 20, pt = oe.clearTimeout, er = oe.setTimeout, ht = oe.cancelAnimationFrame || oe.mozCancelAnimationFrame || oe.webkitCancelAnimationFrame, tr = oe.requestAnimationFrame || oe.mozRequestAnimationFrame || oe.webkitRequestAnimationFrame;
1509
- ht == null || tr == null ? (wt = pt, bt = function(t) {
1510
- return er(t, Qt);
1511
- }) : (wt = function([t, r]) {
1512
- ht(t), pt(r);
1507
+ const Qt = 20, pt = oe.clearTimeout, en = oe.setTimeout, ht = oe.cancelAnimationFrame || oe.mozCancelAnimationFrame || oe.webkitCancelAnimationFrame, tn = oe.requestAnimationFrame || oe.mozRequestAnimationFrame || oe.webkitRequestAnimationFrame;
1508
+ ht == null || tn == null ? (wt = pt, bt = function(t) {
1509
+ return en(t, Qt);
1510
+ }) : (wt = function([t, n]) {
1511
+ ht(t), pt(n);
1513
1512
  }, bt = function(t) {
1514
- const r = tr(function() {
1513
+ const n = tn(function() {
1515
1514
  pt(o), t();
1516
- }), o = er(function() {
1517
- ht(r), t();
1515
+ }), o = en(function() {
1516
+ ht(n), t();
1518
1517
  }, Qt);
1519
- return [r, o];
1518
+ return [n, o];
1520
1519
  });
1521
1520
  function Ho(e) {
1522
- let t, r, o, n, i, c, s;
1521
+ let t, n, o, r, i, c, s;
1523
1522
  const l = typeof document < "u" && document.attachEvent;
1524
1523
  if (!l) {
1525
1524
  c = function(_) {
@@ -1551,11 +1550,11 @@ function Ho(e) {
1551
1550
  }
1552
1551
  }
1553
1552
  }
1554
- r = "resizeanim", t = "@" + g + "keyframes " + r + " { from { opacity: 0; } to { opacity: 0; } } ", n = g + "animation: 1ms " + r + "; ";
1553
+ n = "resizeanim", t = "@" + g + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = g + "animation: 1ms " + n + "; ";
1555
1554
  }
1556
1555
  const d = function(h) {
1557
1556
  if (!h.getElementById("detectElementResize")) {
1558
- const g = (t || "") + ".resize-triggers { " + (n || "") + '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 = h.head || h.getElementsByTagName("head")[0], w = h.createElement("style");
1557
+ const g = (t || "") + ".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 = h.head || h.getElementsByTagName("head")[0], w = h.createElement("style");
1559
1558
  w.id = "detectElementResize", w.type = "text/css", e != null && w.setAttribute("nonce", e), w.styleSheet ? w.styleSheet.cssText = g : w.appendChild(h.createTextNode(g)), b.appendChild(w);
1560
1559
  }
1561
1560
  };
@@ -1571,7 +1570,7 @@ function Ho(e) {
1571
1570
  v.className = "expand-trigger", v.appendChild(b.createElement("div"));
1572
1571
  const _ = b.createElement("div");
1573
1572
  _.className = "contract-trigger", h.__resizeTriggers__.appendChild(v), h.__resizeTriggers__.appendChild(_), h.appendChild(h.__resizeTriggers__), c(h), h.addEventListener("scroll", s, !0), o && (h.__resizeTriggers__.__animationListener__ = function(T) {
1574
- T.animationName === r && c(h);
1573
+ T.animationName === n && c(h);
1575
1574
  }, h.__resizeTriggers__.addEventListener(o, h.__resizeTriggers__.__animationListener__));
1576
1575
  }
1577
1576
  h.__resizeListeners__.push(g);
@@ -1590,7 +1589,7 @@ function Ho(e) {
1590
1589
  }
1591
1590
  };
1592
1591
  }
1593
- class $o extends en {
1592
+ class $o extends tr {
1594
1593
  constructor(...t) {
1595
1594
  super(...t), this.state = {
1596
1595
  height: this.props.defaultHeight || 0,
@@ -1600,38 +1599,38 @@ class $o extends en {
1600
1599
  }, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
1601
1600
  this._timeoutId = null;
1602
1601
  const {
1603
- disableHeight: r,
1602
+ disableHeight: n,
1604
1603
  disableWidth: o,
1605
- onResize: n
1604
+ onResize: r
1606
1605
  } = this.props;
1607
1606
  if (this._parentNode) {
1608
1607
  const i = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(i.paddingLeft || "0"), s = parseFloat(i.paddingRight || "0"), l = parseFloat(i.paddingTop || "0"), d = parseFloat(i.paddingBottom || "0"), u = this._parentNode.getBoundingClientRect(), f = u.height - l - d, h = u.width - c - s, g = this._parentNode.offsetHeight - l - d, b = this._parentNode.offsetWidth - c - s;
1609
- (!r && (this.state.height !== g || this.state.scaledHeight !== f) || !o && (this.state.width !== b || this.state.scaledWidth !== h)) && (this.setState({
1608
+ (!n && (this.state.height !== g || this.state.scaledHeight !== f) || !o && (this.state.width !== b || this.state.scaledWidth !== h)) && (this.setState({
1610
1609
  height: g,
1611
1610
  width: b,
1612
1611
  scaledHeight: f,
1613
1612
  scaledWidth: h
1614
- }), typeof n == "function" && n({
1613
+ }), typeof r == "function" && r({
1615
1614
  height: g,
1616
1615
  scaledHeight: f,
1617
1616
  scaledWidth: h,
1618
1617
  width: b
1619
1618
  }));
1620
1619
  }
1621
- }, this._setRef = (r) => {
1622
- this._autoSizer = r;
1620
+ }, this._setRef = (n) => {
1621
+ this._autoSizer = n;
1623
1622
  };
1624
1623
  }
1625
1624
  componentDidMount() {
1626
1625
  const {
1627
1626
  nonce: t
1628
- } = this.props, r = this._autoSizer ? this._autoSizer.parentNode : null;
1629
- if (r != null && r.ownerDocument && r.ownerDocument.defaultView && r instanceof r.ownerDocument.defaultView.HTMLElement) {
1630
- this._parentNode = r;
1631
- const o = r.ownerDocument.defaultView.ResizeObserver;
1627
+ } = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
1628
+ if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
1629
+ this._parentNode = n;
1630
+ const o = n.ownerDocument.defaultView.ResizeObserver;
1632
1631
  o != null ? (this._resizeObserver = new o(() => {
1633
1632
  this._timeoutId = setTimeout(this._onResize, 0);
1634
- }), this._resizeObserver.observe(r)) : (this._detectElementResize = Ho(t), this._detectElementResize.addResizeListener(r, this._onResize)), this._onResize();
1633
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = Ho(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1635
1634
  }
1636
1635
  }
1637
1636
  componentWillUnmount() {
@@ -1640,9 +1639,9 @@ class $o extends en {
1640
1639
  render() {
1641
1640
  const {
1642
1641
  children: t,
1643
- defaultHeight: r,
1642
+ defaultHeight: n,
1644
1643
  defaultWidth: o,
1645
- disableHeight: n = !1,
1644
+ disableHeight: r = !1,
1646
1645
  disableWidth: i = !1,
1647
1646
  doNotBailOutOnEmptyChildren: c = !1,
1648
1647
  nonce: s,
@@ -1659,7 +1658,7 @@ class $o extends en {
1659
1658
  overflow: "visible"
1660
1659
  }, _ = {};
1661
1660
  let m = !1;
1662
- return n || (h === 0 && (m = !0), v.height = 0, _.height = h, _.scaledHeight = g), i || (w === 0 && (m = !0), v.width = 0, _.width = w, _.scaledWidth = b), c && (m = !1), He(u, {
1661
+ return r || (h === 0 && (m = !0), v.height = 0, _.height = h, _.scaledHeight = g), i || (w === 0 && (m = !0), v.width = 0, _.width = w, _.scaledWidth = b), c && (m = !1), He(u, {
1663
1662
  ref: this._setRef,
1664
1663
  style: {
1665
1664
  ...v,
@@ -1670,48 +1669,48 @@ class $o extends en {
1670
1669
  }
1671
1670
  }
1672
1671
  const Go = ({ widths: e, heights: t }) => {
1673
- const { focusedPage: r, totalPages: o } = ie(), n = F(() => {
1674
- const s = [], l = Math.ceil(r / 2) * 2 - 1;
1672
+ const { focusedPage: n, totalPages: o } = ie(), r = F(() => {
1673
+ const s = [], l = Math.ceil(n / 2) * 2 - 1;
1675
1674
  if (s.push(l), l + 1 < o) {
1676
1675
  const d = l + 1;
1677
1676
  s.push(d);
1678
1677
  }
1679
1678
  return s;
1680
- }, [r, o]), i = F(() => [
1679
+ }, [n, o]), i = F(() => [
1681
1680
  {
1682
1681
  position: "absolute",
1683
1682
  left: 0,
1684
- width: e(r - 1),
1685
- height: t(r - 1)
1683
+ width: e(n - 1),
1684
+ height: t(n - 1)
1686
1685
  },
1687
1686
  {
1688
1687
  position: "absolute",
1689
- left: e(r),
1688
+ left: e(n),
1690
1689
  top: 0,
1691
- width: e(r),
1692
- height: t(r)
1690
+ width: e(n),
1691
+ height: t(n)
1693
1692
  }
1694
- ], [e, t, n]), c = F(() => i.reduce((s, l) => s + Number(l.width || 0), 0), [i]);
1695
- return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: n.map((s, l) => /* @__PURE__ */ a(Lt, { style: i[l], pageNumber: s }, s)) });
1693
+ ], [e, t, r]), c = F(() => i.reduce((s, l) => s + Number(l.width || 0), 0), [i]);
1694
+ return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: r.map((s, l) => /* @__PURE__ */ a(Lt, { style: i[l], pageNumber: s }, s)) });
1696
1695
  }, Vo = ({ widths: e, heights: t }) => {
1697
- const { focusedPage: r } = ie(), o = F(() => ({
1696
+ const { focusedPage: n } = ie(), o = F(() => ({
1698
1697
  position: "absolute",
1699
- width: e(r - 1),
1700
- height: t(r - 1)
1701
- }), [e, t, r]), n = F(() => e(r - 1), [e]);
1698
+ width: e(n - 1),
1699
+ height: t(n - 1)
1700
+ }), [e, t, n]), r = F(() => e(n - 1), [e]);
1702
1701
  return /* @__PURE__ */ a(
1703
1702
  "div",
1704
1703
  {
1705
1704
  style: {
1706
- width: n,
1705
+ width: r,
1707
1706
  position: "relative"
1708
1707
  },
1709
- children: /* @__PURE__ */ a(Lt, { style: o, pageNumber: r }, r)
1708
+ children: /* @__PURE__ */ a(Lt, { style: o, pageNumber: n }, n)
1710
1709
  }
1711
1710
  );
1712
- }, Uo = (e, t, r) => {
1713
- const o = W(), { contentRef: n } = be(), { heights: i, widths: c } = Qe(), { setFocusedPage: s } = ie(), [l, d] = $([]), { smoothScrolling: u } = Tt(), f = St(l, 100, 500), h = F(() => i.map((b, w) => {
1714
- const v = c[w], _ = Wn(w + 1, e), m = v * _.columnIndex, T = b * _.rowIndex, S = m + v, p = T + b;
1711
+ }, Uo = (e, t, n) => {
1712
+ const o = W(), { contentRef: r } = be(), { heights: i, widths: c } = Qe(), { setFocusedPage: s } = ie(), [l, d] = $([]), { smoothScrolling: u } = Tt(), f = St(l, 100, 500), h = F(() => i.map((b, w) => {
1713
+ const v = c[w], _ = Wr(w + 1, e), m = v * _.columnIndex, T = b * _.rowIndex, S = m + v, p = T + b;
1715
1714
  return {
1716
1715
  pageNumber: w + 1,
1717
1716
  ..._,
@@ -1747,19 +1746,19 @@ const Go = ({ widths: e, heights: t }) => {
1747
1746
  d(_);
1748
1747
  });
1749
1748
  },
1750
- [n, h]
1749
+ [r, h]
1751
1750
  );
1752
1751
  A(() => {
1753
- if (r)
1754
- return r == null || r.addEventListener("scroll", g), () => {
1755
- r == null || r.removeEventListener("scroll", g);
1752
+ if (n)
1753
+ return n == null || n.addEventListener("scroll", g), () => {
1754
+ n == null || n.removeEventListener("scroll", g);
1756
1755
  };
1757
- }, [r, g]);
1758
- }, qo = tn(({ columnIndex: e, rowIndex: t, data: r, style: o }) => {
1759
- const n = Mn(t, e, r.columnCount);
1760
- return /* @__PURE__ */ a(Lt, { style: o, pageNumber: n }, n);
1761
- }, Wo), xs = () => {
1762
- const { initialPage: e = 1, initialScrollMode: t } = sn(), { pagesRef: r, setPagesRef: o } = be(), { scrollToPage: n } = vr(), {
1756
+ }, [n, g]);
1757
+ }, qo = nr(({ columnIndex: e, rowIndex: t, data: n, style: o }) => {
1758
+ const r = Mr(t, e, n.columnCount);
1759
+ return /* @__PURE__ */ a(Lt, { style: o, pageNumber: r }, r);
1760
+ }, Wo), Ss = () => {
1761
+ const { initialPage: e = 1, initialScrollMode: t } = sr(), { pagesRef: n, setPagesRef: o } = be(), { scrollToPage: r } = _n(), {
1763
1762
  virtualScrollRef: i,
1764
1763
  getVirtualScrollRef: c,
1765
1764
  getPageScrollElementRef: s,
@@ -1768,12 +1767,12 @@ const Go = ({ widths: e, heights: t }) => {
1768
1767
  virtualScrollableElementRef: u,
1769
1768
  totalInnerDimensions: f,
1770
1769
  pageScrollElementRef: h
1771
- } = Je(), g = W(!0), { nextPage: b, prevPage: w, setFocusedPage: v, focusedPage: _ } = ie(), { scrollMode: m } = Ee(), { viewMode: T } = Ye(), S = W(null), { loading: p } = K(), { LoaderImageComponent: P } = ur(), { smoothScrolling: C, targetScrollPosition: x } = Tt(), E = W(
1770
+ } = Je(), g = W(!0), { nextPage: b, prevPage: w, setFocusedPage: v, focusedPage: _ } = ie(), { scrollMode: m } = Ee(), { viewMode: T } = Ye(), S = W(null), { loading: p } = K(), { LoaderImageComponent: P } = pn(), { smoothScrolling: C, targetScrollPosition: x } = Tt(), E = W(
1772
1771
  f
1773
1772
  ), I = W({
1774
1773
  viewMode: T,
1775
1774
  scrollMode: m
1776
- }), O = W(!1), R = W(), { isFullScreen: k } = cn(), {
1775
+ }), O = W(!1), R = W(), { isFullScreen: k } = cr(), {
1777
1776
  pageDimension: z,
1778
1777
  rowCount: y,
1779
1778
  rowHeight: N,
@@ -1787,14 +1786,14 @@ const Go = ({ widths: e, heights: t }) => {
1787
1786
  scrollTop: 0,
1788
1787
  scrollLeft: 0
1789
1788
  });
1790
- kn(r);
1791
- const { isPressed: ae } = An(), { selectionMode: J } = an(), { initializeGrabScroll: re, resetGrabState: he } = Fn({
1789
+ kr(n);
1790
+ const { isPressed: ae } = Ar(), { selectionMode: J } = ar(), { initializeGrabScroll: ne, resetGrabState: he } = Fr({
1792
1791
  isPressed: ae
1793
- }), ce = F(() => J === nn.HAND, [J]), Oe = F(() => ({
1792
+ }), ce = F(() => J === or.HAND, [J]), Oe = F(() => ({
1794
1793
  columnCount: M
1795
1794
  }), [M]), ve = L(
1796
1795
  (H) => {
1797
- const G = document.activeElement !== r;
1796
+ const G = document.activeElement !== n;
1798
1797
  !k && G || (["ArrowUp", "ArrowLeft"].includes(H.key) ? (H.preventDefault(), w()) : ["ArrowDown", "ArrowRight"].includes(H.key) && (H.preventDefault(), b()));
1799
1798
  },
1800
1799
  [b, w, k, m]
@@ -1825,26 +1824,26 @@ const Go = ({ widths: e, heights: t }) => {
1825
1824
  ), le = L(
1826
1825
  (H, G) => {
1827
1826
  if (I.current.viewMode !== T || I.current.scrollMode !== m) {
1828
- j.current && clearTimeout(j.current), O.current = !0, n(_, "auto"), j.current = setTimeout(() => {
1827
+ j.current && clearTimeout(j.current), O.current = !0, r(_, "auto"), j.current = setTimeout(() => {
1829
1828
  requestAnimationFrame(() => {
1830
1829
  I.current = { viewMode: T, scrollMode: m };
1831
1830
  });
1832
1831
  }, 100);
1833
1832
  return;
1834
1833
  }
1835
- const Te = H.scrollTop, rt = H.scrollLeft;
1834
+ const Te = H.scrollTop, nt = H.scrollLeft;
1836
1835
  if (!G.height || !G.width)
1837
1836
  return;
1838
1837
  O.current = !0;
1839
- const { height: Pe, width: nt } = G, { height: Dt, width: zt } = E.current;
1840
- if (Dt === Pe && zt === nt)
1838
+ const { height: Pe, width: rt } = G, { height: Dt, width: zt } = E.current;
1839
+ if (Dt === Pe && zt === rt)
1841
1840
  return;
1842
- const Kr = Te / Dt * Pe, Xr = rt / zt * nt, Yr = Math.round(Math.min(Kr, Pe)) || 0, Jr = Math.round(Math.min(Xr, nt)) || 0;
1841
+ const Xn = Te / Dt * Pe, Yn = nt / zt * rt, Jn = Math.round(Math.min(Xn, Pe)) || 0, Qn = Math.round(Math.min(Yn, rt)) || 0;
1843
1842
  R.current = setTimeout(() => {
1844
1843
  requestAnimationFrame(() => {
1845
1844
  i == null || i.scrollTo({
1846
- scrollTop: Yr,
1847
- scrollLeft: Jr
1845
+ scrollTop: Jn,
1846
+ scrollLeft: Qn
1848
1847
  });
1849
1848
  });
1850
1849
  }, 0), E.current = {
@@ -1857,10 +1856,10 @@ const Go = ({ widths: e, heights: t }) => {
1857
1856
  A(() => {
1858
1857
  clearTimeout(R.current);
1859
1858
  const H = Array.from({ length: y }).reduce(
1860
- (Te, rt, Pe) => Te + N(Pe),
1859
+ (Te, nt, Pe) => Te + N(Pe),
1861
1860
  0
1862
1861
  ), G = Array.from({ length: M }).reduce(
1863
- (Te, rt, Pe) => Te + V(Pe),
1862
+ (Te, nt, Pe) => Te + V(Pe),
1864
1863
  0
1865
1864
  ), Ce = me(G, H);
1866
1865
  te.current = Ce, le(Ce, { height: H, width: G }), d({
@@ -1877,17 +1876,17 @@ const Go = ({ widths: e, heights: t }) => {
1877
1876
  A(() => () => {
1878
1877
  j.current && clearTimeout(j.current);
1879
1878
  }, []);
1880
- const tt = F(() => ne(de["rp-pages-container"], {
1879
+ const tt = F(() => re(de["rp-pages-container"], {
1881
1880
  [de["rp-cursor-grab"]]: ce && !ae,
1882
1881
  [de["rp-cursor-grabbing"]]: ce && ae
1883
- }), [ce, ae]), Br = L(
1882
+ }), [ce, ae]), Kn = L(
1884
1883
  (H) => {
1885
1884
  if (ce && H) {
1886
- const G = ne(de["rp-pages"]), Ce = document.querySelector(`.${G}`);
1887
- re(Ce);
1885
+ const G = re(de["rp-pages"]), Ce = document.querySelector(`.${G}`);
1886
+ ne(Ce);
1888
1887
  }
1889
1888
  },
1890
- [ce, re, de]
1889
+ [ce, ne, de]
1891
1890
  );
1892
1891
  return A(() => {
1893
1892
  p && he();
@@ -1923,12 +1922,12 @@ const Go = ({ widths: e, heights: t }) => {
1923
1922
  h,
1924
1923
  v,
1925
1924
  B
1926
- ]), /* @__PURE__ */ a("div", { ref: o, tabIndex: -1, className: tt, children: /* @__PURE__ */ a($o, { style: { minHeight: "50px" }, children: ({ width: H, height: G }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Br, style: { width: H, height: G }, children: m === X.PAGE_SCROLLING ? /* @__PURE__ */ a(
1925
+ ]), /* @__PURE__ */ a("div", { ref: o, tabIndex: -1, className: tt, children: /* @__PURE__ */ a($o, { style: { minHeight: "50px" }, children: ({ width: H, height: G }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Kn, style: { width: H, height: G }, children: m === X.PAGE_SCROLLING ? /* @__PURE__ */ a(
1927
1926
  "div",
1928
1927
  {
1929
1928
  ref: s,
1930
1929
  style: { width: H, height: G },
1931
- className: ne(de["rp-pages"], de["rp-page-scrolling-wrapper"]),
1930
+ className: re(de["rp-pages"], de["rp-page-scrolling-wrapper"]),
1932
1931
  children: T === Ue.DUAL_PAGE ? /* @__PURE__ */ a(Go, { widths: V, heights: N }) : /* @__PURE__ */ a(Vo, { widths: V, heights: N })
1933
1932
  }
1934
1933
  ) : Z ? /* @__PURE__ */ a(
@@ -1947,7 +1946,7 @@ const Go = ({ widths: e, heights: t }) => {
1947
1946
  estimatedColumnWidth: Z,
1948
1947
  estimatedRowHeight: Y,
1949
1948
  rowCount: y,
1950
- className: ne(
1949
+ className: re(
1951
1950
  de["rp-pages"],
1952
1951
  m === X.HORIZONTAL_SCROLLING ? de["rp-pages-horizontal-scroll"] : ""
1953
1952
  ),
@@ -1984,7 +1983,7 @@ const Go = ({ widths: e, heights: t }) => {
1984
1983
  const { nextIcon: e } = pe();
1985
1984
  return e || /* @__PURE__ */ a(ke, { style: { transform: "rotate(180deg" } });
1986
1985
  }, Bo = () => {
1987
- const { focusedPage: e, totalPages: t, setFocusedPage: r, nextPage: o, prevPage: n, goToPage: i } = ie(), [c, s] = $(e.toString()), { pageNavigationTool: l = !0 } = ge(), { isSmallScreen: d } = ye(), { localeMessages: u } = ue();
1986
+ const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: i } = ie(), [c, s] = $(e.toString()), { pageNavigationTool: l = !0 } = ge(), { isSmallScreen: d } = ye(), { localeMessages: u } = ue();
1988
1987
  A(() => {
1989
1988
  s(e.toString());
1990
1989
  }, [e]);
@@ -2008,22 +2007,22 @@ const Go = ({ widths: e, heights: t }) => {
2008
2007
  total: t,
2009
2008
  current: e,
2010
2009
  nextPage: o,
2011
- prevPage: n,
2010
+ prevPage: r,
2012
2011
  goToPage: i,
2013
- changePage: r
2012
+ changePage: n
2014
2013
  }
2015
2014
  ) : l ? /* @__PURE__ */ D("div", { className: mt["rp-paginate"], children: [
2016
2015
  !d && /* @__PURE__ */ a(q, { content: u == null ? void 0 : u.previousPageTooltip, children: /* @__PURE__ */ a(
2017
2016
  ee,
2018
2017
  {
2019
- onClick: n,
2018
+ onClick: r,
2020
2019
  "aria-label": u == null ? void 0 : u.previousPageTooltip,
2021
2020
  "aria-disabled": e === 1,
2022
2021
  children: /* @__PURE__ */ a(Zo, {})
2023
2022
  }
2024
2023
  ) }),
2025
2024
  /* @__PURE__ */ a(q, { content: u == null ? void 0 : u.currentPageTooltip, children: /* @__PURE__ */ a(
2026
- sr,
2025
+ cn,
2027
2026
  {
2028
2027
  onKeyDown: b,
2029
2028
  onBlur: g,
@@ -2047,17 +2046,17 @@ const Go = ({ widths: e, heights: t }) => {
2047
2046
  ) })
2048
2047
  ] }) : null;
2049
2048
  };
2050
- var Rt = "Dialog", [yr, Is] = Un(Rt), [Ko, se] = yr(Rt), Lr = (e) => {
2049
+ var Rt = "Dialog", [Ln, xs] = Vr(Rt), [Ko, se] = Ln(Rt), Rn = (e) => {
2051
2050
  const {
2052
2051
  __scopeDialog: t,
2053
- children: r,
2052
+ children: n,
2054
2053
  open: o,
2055
- defaultOpen: n,
2054
+ defaultOpen: r,
2056
2055
  onOpenChange: i,
2057
2056
  modal: c = !0
2058
- } = e, s = U.useRef(null), l = U.useRef(null), [d = !1, u] = Zn({
2057
+ } = e, s = U.useRef(null), l = U.useRef(null), [d = !1, u] = Zr({
2059
2058
  prop: o,
2060
- defaultProp: n,
2059
+ defaultProp: r,
2061
2060
  onChange: i
2062
2061
  });
2063
2062
  return /* @__PURE__ */ a(
@@ -2073,54 +2072,54 @@ var Rt = "Dialog", [yr, Is] = Un(Rt), [Ko, se] = yr(Rt), Lr = (e) => {
2073
2072
  onOpenChange: u,
2074
2073
  onOpenToggle: U.useCallback(() => u((f) => !f), [u]),
2075
2074
  modal: c,
2076
- children: r
2075
+ children: n
2077
2076
  }
2078
2077
  );
2079
2078
  };
2080
- Lr.displayName = Rt;
2081
- var Rr = "DialogTrigger", Xo = U.forwardRef(
2079
+ Rn.displayName = Rt;
2080
+ var Nn = "DialogTrigger", Xo = U.forwardRef(
2082
2081
  (e, t) => {
2083
- const { __scopeDialog: r, ...o } = e, n = se(Rr, r), i = xt(t, n.triggerRef);
2082
+ const { __scopeDialog: n, ...o } = e, r = se(Nn, n), i = xt(t, r.triggerRef);
2084
2083
  return /* @__PURE__ */ a(
2085
2084
  Me.button,
2086
2085
  {
2087
2086
  type: "button",
2088
2087
  "aria-haspopup": "dialog",
2089
- "aria-expanded": n.open,
2090
- "aria-controls": n.contentId,
2091
- "data-state": Ot(n.open),
2088
+ "aria-expanded": r.open,
2089
+ "aria-controls": r.contentId,
2090
+ "data-state": Ot(r.open),
2092
2091
  ...o,
2093
2092
  ref: i,
2094
- onClick: Fe(e.onClick, n.onOpenToggle)
2093
+ onClick: Fe(e.onClick, r.onOpenToggle)
2095
2094
  }
2096
2095
  );
2097
2096
  }
2098
2097
  );
2099
- Xo.displayName = Rr;
2100
- var Nt = "DialogPortal", [Yo, Nr] = yr(Nt, {
2098
+ Xo.displayName = Nn;
2099
+ var Nt = "DialogPortal", [Yo, En] = Ln(Nt, {
2101
2100
  forceMount: void 0
2102
- }), Er = (e) => {
2103
- const { __scopeDialog: t, forceMount: r, children: o, container: n } = e, i = se(Nt, t);
2104
- return /* @__PURE__ */ a(Yo, { scope: t, forceMount: r, children: U.Children.map(o, (c) => /* @__PURE__ */ a(It, { present: r || i.open, children: /* @__PURE__ */ a(Yn, { asChild: !0, container: n, children: c }) })) });
2101
+ }), On = (e) => {
2102
+ const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, i = se(Nt, t);
2103
+ return /* @__PURE__ */ a(Yo, { scope: t, forceMount: n, children: U.Children.map(o, (c) => /* @__PURE__ */ a(It, { present: n || i.open, children: /* @__PURE__ */ a(Yr, { asChild: !0, container: r, children: c }) })) });
2105
2104
  };
2106
- Er.displayName = Nt;
2107
- var Ze = "DialogOverlay", Or = U.forwardRef(
2105
+ On.displayName = Nt;
2106
+ var Ze = "DialogOverlay", Dn = U.forwardRef(
2108
2107
  (e, t) => {
2109
- const r = Nr(Ze, e.__scopeDialog), { forceMount: o = r.forceMount, ...n } = e, i = se(Ze, e.__scopeDialog);
2110
- return i.modal ? /* @__PURE__ */ a(It, { present: o || i.open, children: /* @__PURE__ */ a(Jo, { ...n, ref: t }) }) : null;
2108
+ const n = En(Ze, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = se(Ze, e.__scopeDialog);
2109
+ return i.modal ? /* @__PURE__ */ a(It, { present: o || i.open, children: /* @__PURE__ */ a(Jo, { ...r, ref: t }) }) : null;
2111
2110
  }
2112
2111
  );
2113
- Or.displayName = Ze;
2112
+ Dn.displayName = Ze;
2114
2113
  var Jo = U.forwardRef(
2115
2114
  (e, t) => {
2116
- const { __scopeDialog: r, ...o } = e, n = se(Ze, r);
2115
+ const { __scopeDialog: n, ...o } = e, r = se(Ze, n);
2117
2116
  return (
2118
2117
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2119
2118
  // ie. when `Overlay` and `Content` are siblings
2120
- /* @__PURE__ */ a(jn, { as: Vn, allowPinchZoom: !0, shards: [n.contentRef], children: /* @__PURE__ */ a(
2119
+ /* @__PURE__ */ a(Br, { as: Ur, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ a(
2121
2120
  Me.div,
2122
2121
  {
2123
- "data-state": Ot(n.open),
2122
+ "data-state": Ot(r.open),
2124
2123
  ...o,
2125
2124
  ref: t,
2126
2125
  style: { pointerEvents: "auto", ...o.style }
@@ -2128,30 +2127,30 @@ var Jo = U.forwardRef(
2128
2127
  ) })
2129
2128
  );
2130
2129
  }
2131
- ), Ie = "DialogContent", Dr = U.forwardRef(
2130
+ ), Ie = "DialogContent", zn = U.forwardRef(
2132
2131
  (e, t) => {
2133
- const r = Nr(Ie, e.__scopeDialog), { forceMount: o = r.forceMount, ...n } = e, i = se(Ie, e.__scopeDialog);
2134
- return /* @__PURE__ */ a(It, { present: o || i.open, children: i.modal ? /* @__PURE__ */ a(Qo, { ...n, ref: t }) : /* @__PURE__ */ a(ei, { ...n, ref: t }) });
2132
+ const n = En(Ie, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = se(Ie, e.__scopeDialog);
2133
+ return /* @__PURE__ */ a(It, { present: o || i.open, children: i.modal ? /* @__PURE__ */ a(Qo, { ...r, ref: t }) : /* @__PURE__ */ a(ei, { ...r, ref: t }) });
2135
2134
  }
2136
2135
  );
2137
- Dr.displayName = Ie;
2136
+ zn.displayName = Ie;
2138
2137
  var Qo = U.forwardRef(
2139
2138
  (e, t) => {
2140
- const r = se(Ie, e.__scopeDialog), o = U.useRef(null), n = xt(t, r.contentRef, o);
2139
+ const n = se(Ie, e.__scopeDialog), o = U.useRef(null), r = xt(t, n.contentRef, o);
2141
2140
  return U.useEffect(() => {
2142
2141
  const i = o.current;
2143
2142
  if (i)
2144
- return Jn(i);
2143
+ return Jr(i);
2145
2144
  }, []), /* @__PURE__ */ a(
2146
- zr,
2145
+ An,
2147
2146
  {
2148
2147
  ...e,
2149
- ref: n,
2150
- trapFocus: r.open,
2148
+ ref: r,
2149
+ trapFocus: n.open,
2151
2150
  disableOutsidePointerEvents: !0,
2152
2151
  onCloseAutoFocus: Fe(e.onCloseAutoFocus, (i) => {
2153
2152
  var c;
2154
- i.preventDefault(), (c = r.triggerRef.current) == null || c.focus();
2153
+ i.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
2155
2154
  }),
2156
2155
  onPointerDownOutside: Fe(e.onPointerDownOutside, (i) => {
2157
2156
  const c = i.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
@@ -2166,9 +2165,9 @@ var Qo = U.forwardRef(
2166
2165
  }
2167
2166
  ), ei = U.forwardRef(
2168
2167
  (e, t) => {
2169
- const r = se(Ie, e.__scopeDialog), o = U.useRef(!1), n = U.useRef(!1);
2168
+ const n = se(Ie, e.__scopeDialog), o = U.useRef(!1), r = U.useRef(!1);
2170
2169
  return /* @__PURE__ */ a(
2171
- zr,
2170
+ An,
2172
2171
  {
2173
2172
  ...e,
2174
2173
  ref: t,
@@ -2176,31 +2175,31 @@ var Qo = U.forwardRef(
2176
2175
  disableOutsidePointerEvents: !1,
2177
2176
  onCloseAutoFocus: (i) => {
2178
2177
  var c, s;
2179
- (c = e.onCloseAutoFocus) == null || c.call(e, i), i.defaultPrevented || (o.current || (s = r.triggerRef.current) == null || s.focus(), i.preventDefault()), o.current = !1, n.current = !1;
2178
+ (c = e.onCloseAutoFocus) == null || c.call(e, i), i.defaultPrevented || (o.current || (s = n.triggerRef.current) == null || s.focus(), i.preventDefault()), o.current = !1, r.current = !1;
2180
2179
  },
2181
2180
  onInteractOutside: (i) => {
2182
2181
  var l, d;
2183
- (l = e.onInteractOutside) == null || l.call(e, i), i.defaultPrevented || (o.current = !0, i.detail.originalEvent.type === "pointerdown" && (n.current = !0));
2182
+ (l = e.onInteractOutside) == null || l.call(e, i), i.defaultPrevented || (o.current = !0, i.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2184
2183
  const c = i.target;
2185
- ((d = r.triggerRef.current) == null ? void 0 : d.contains(c)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && n.current && i.preventDefault();
2184
+ ((d = n.triggerRef.current) == null ? void 0 : d.contains(c)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && r.current && i.preventDefault();
2186
2185
  }
2187
2186
  }
2188
2187
  );
2189
2188
  }
2190
- ), zr = U.forwardRef(
2189
+ ), An = U.forwardRef(
2191
2190
  (e, t) => {
2192
- const { __scopeDialog: r, trapFocus: o, onOpenAutoFocus: n, onCloseAutoFocus: i, ...c } = e, s = se(Ie, r), l = U.useRef(null), d = xt(t, l);
2193
- return Bn(), /* @__PURE__ */ D(xe, { children: [
2191
+ const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: i, ...c } = e, s = se(Ie, n), l = U.useRef(null), d = xt(t, l);
2192
+ return Kr(), /* @__PURE__ */ D(xe, { children: [
2194
2193
  /* @__PURE__ */ a(
2195
- Kn,
2194
+ Xr,
2196
2195
  {
2197
2196
  asChild: !0,
2198
2197
  loop: !0,
2199
2198
  trapped: o,
2200
- onMountAutoFocus: n,
2199
+ onMountAutoFocus: r,
2201
2200
  onUnmountAutoFocus: i,
2202
2201
  children: /* @__PURE__ */ a(
2203
- Xn,
2202
+ jr,
2204
2203
  {
2205
2204
  role: "dialog",
2206
2205
  id: s.contentId,
@@ -2215,64 +2214,64 @@ var Qo = U.forwardRef(
2215
2214
  }
2216
2215
  ),
2217
2216
  /* @__PURE__ */ D(xe, { children: [
2218
- /* @__PURE__ */ a(ri, { titleId: s.titleId }),
2217
+ /* @__PURE__ */ a(ni, { titleId: s.titleId }),
2219
2218
  /* @__PURE__ */ a(oi, { contentRef: l, descriptionId: s.descriptionId })
2220
2219
  ] })
2221
2220
  ] });
2222
2221
  }
2223
- ), Et = "DialogTitle", Ar = U.forwardRef(
2222
+ ), Et = "DialogTitle", Fn = U.forwardRef(
2224
2223
  (e, t) => {
2225
- const { __scopeDialog: r, ...o } = e, n = se(Et, r);
2226
- return /* @__PURE__ */ a(Me.h2, { id: n.titleId, ...o, ref: t });
2224
+ const { __scopeDialog: n, ...o } = e, r = se(Et, n);
2225
+ return /* @__PURE__ */ a(Me.h2, { id: r.titleId, ...o, ref: t });
2227
2226
  }
2228
2227
  );
2229
- Ar.displayName = Et;
2230
- var Fr = "DialogDescription", ti = U.forwardRef(
2228
+ Fn.displayName = Et;
2229
+ var kn = "DialogDescription", ti = U.forwardRef(
2231
2230
  (e, t) => {
2232
- const { __scopeDialog: r, ...o } = e, n = se(Fr, r);
2233
- return /* @__PURE__ */ a(Me.p, { id: n.descriptionId, ...o, ref: t });
2231
+ const { __scopeDialog: n, ...o } = e, r = se(kn, n);
2232
+ return /* @__PURE__ */ a(Me.p, { id: r.descriptionId, ...o, ref: t });
2234
2233
  }
2235
2234
  );
2236
- ti.displayName = Fr;
2237
- var kr = "DialogClose", Wr = U.forwardRef(
2235
+ ti.displayName = kn;
2236
+ var Wn = "DialogClose", Mn = U.forwardRef(
2238
2237
  (e, t) => {
2239
- const { __scopeDialog: r, ...o } = e, n = se(kr, r);
2238
+ const { __scopeDialog: n, ...o } = e, r = se(Wn, n);
2240
2239
  return /* @__PURE__ */ a(
2241
2240
  Me.button,
2242
2241
  {
2243
2242
  type: "button",
2244
2243
  ...o,
2245
2244
  ref: t,
2246
- onClick: Fe(e.onClick, () => n.onOpenChange(!1))
2245
+ onClick: Fe(e.onClick, () => r.onOpenChange(!1))
2247
2246
  }
2248
2247
  );
2249
2248
  }
2250
2249
  );
2251
- Wr.displayName = kr;
2250
+ Mn.displayName = Wn;
2252
2251
  function Ot(e) {
2253
2252
  return e ? "open" : "closed";
2254
2253
  }
2255
- var Mr = "DialogTitleWarning", [ys, Hr] = qn(Mr, {
2254
+ var Hn = "DialogTitleWarning", [Is, $n] = qr(Hn, {
2256
2255
  contentName: Ie,
2257
2256
  titleName: Et,
2258
2257
  docsSlug: "dialog"
2259
- }), ri = ({ titleId: e }) => {
2260
- const t = Hr(Mr), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2258
+ }), ni = ({ titleId: e }) => {
2259
+ const t = $n(Hn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2261
2260
 
2262
2261
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2263
2262
 
2264
2263
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
2265
2264
  return U.useEffect(() => {
2266
- e && (document.getElementById(e) || console.error(r));
2267
- }, [r, e]), null;
2268
- }, ni = "DialogDescriptionWarning", oi = ({ contentRef: e, descriptionId: t }) => {
2269
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hr(ni).contentName}}.`;
2265
+ e && (document.getElementById(e) || console.error(n));
2266
+ }, [n, e]), null;
2267
+ }, ri = "DialogDescriptionWarning", oi = ({ contentRef: e, descriptionId: t }) => {
2268
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$n(ri).contentName}}.`;
2270
2269
  return U.useEffect(() => {
2271
2270
  var i;
2272
- const n = (i = e.current) == null ? void 0 : i.getAttribute("aria-describedby");
2273
- t && n && (document.getElementById(t) || console.warn(o));
2271
+ const r = (i = e.current) == null ? void 0 : i.getAttribute("aria-describedby");
2272
+ t && r && (document.getElementById(t) || console.warn(o));
2274
2273
  }, [o, e, t]), null;
2275
- }, ii = Lr, ai = Er, si = Or, ci = Dr, li = Ar, di = Wr;
2274
+ }, ii = Rn, ai = On, si = Dn, ci = zn, li = Fn, di = Mn;
2276
2275
  const Se = {
2277
2276
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2278
2277
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2282,7 +2281,7 @@ const Se = {
2282
2281
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2283
2282
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2284
2283
  }, ui = () => {
2285
- const { pdfProperties: e } = K(), { container: t } = be(), { activeDocumentProperties: r, setActiveDocumentProperties: o } = eo(), { localeMessages: n } = ue(), i = F(() => {
2284
+ const { pdfProperties: e } = K(), { container: t } = be(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = eo(), { localeMessages: r } = ue(), i = F(() => {
2286
2285
  if (!e)
2287
2286
  return [];
2288
2287
  const {
@@ -2300,45 +2299,45 @@ const Se = {
2300
2299
  pageCount: _
2301
2300
  } = e;
2302
2301
  return [
2303
- { label: n == null ? void 0 : n.propertiesFilenameLabel, value: s },
2304
- { label: n == null ? void 0 : n.propertiesFileSizeLabel, value: c },
2302
+ { label: r == null ? void 0 : r.propertiesFilenameLabel, value: s },
2303
+ { label: r == null ? void 0 : r.propertiesFileSizeLabel, value: c },
2305
2304
  { separate: !0 },
2306
- { label: n == null ? void 0 : n.propertiesTitleLabel, value: l },
2307
- { label: n == null ? void 0 : n.propertiesAuthorLabel, value: d },
2308
- { label: n == null ? void 0 : n.propertiesSubjectLabel, value: u },
2309
- { label: n == null ? void 0 : n.propertiesKeywordLabel, value: g },
2310
- { label: n == null ? void 0 : n.propertiesCreatorLabel, value: h },
2305
+ { label: r == null ? void 0 : r.propertiesTitleLabel, value: l },
2306
+ { label: r == null ? void 0 : r.propertiesAuthorLabel, value: d },
2307
+ { label: r == null ? void 0 : r.propertiesSubjectLabel, value: u },
2308
+ { label: r == null ? void 0 : r.propertiesKeywordLabel, value: g },
2309
+ { label: r == null ? void 0 : r.propertiesCreatorLabel, value: h },
2311
2310
  {
2312
- label: n == null ? void 0 : n.propertiesCreateOnLabel,
2311
+ label: r == null ? void 0 : r.propertiesCreateOnLabel,
2313
2312
  value: f ? Mt(f) : ""
2314
2313
  },
2315
2314
  {
2316
- label: n == null ? void 0 : n.propertiesModifiedOnLabel,
2315
+ label: r == null ? void 0 : r.propertiesModifiedOnLabel,
2317
2316
  value: b ? Mt(b) : ""
2318
2317
  },
2319
2318
  { separate: !0 },
2320
- { label: n == null ? void 0 : n.propertiesPDFProducerLabel, value: w },
2321
- { label: n == null ? void 0 : n.propertiesPDFVersionLabel, value: v },
2322
- { label: n == null ? void 0 : n.propertiesPageCountLabel, value: _ }
2319
+ { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: w },
2320
+ { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: v },
2321
+ { label: r == null ? void 0 : r.propertiesPageCountLabel, value: _ }
2323
2322
  ];
2324
- }, [e, n]);
2325
- return /* @__PURE__ */ a(ii, { open: r, onOpenChange: o, children: /* @__PURE__ */ a(ai, { container: t, children: /* @__PURE__ */ D("div", { className: Se["rp-dialog-wrapper"], children: [
2323
+ }, [e, r]);
2324
+ return /* @__PURE__ */ a(ii, { open: n, onOpenChange: o, children: /* @__PURE__ */ a(ai, { container: t, children: /* @__PURE__ */ D("div", { className: Se["rp-dialog-wrapper"], children: [
2326
2325
  /* @__PURE__ */ a(si, { className: Se["rp-dialog-overlay"] }),
2327
2326
  /* @__PURE__ */ D(ci, { className: Se["rp-document-dialog"], children: [
2328
- /* @__PURE__ */ a(li, { className: Se["rp-dialog-title"], children: n == null ? void 0 : n.documentPropertiesLabel }),
2329
- /* @__PURE__ */ a("div", { className: Se["rp-document-properties"], children: i.map((c, s) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ a(Qn, { label: c.label, value: c.value }) }, s)) }),
2330
- /* @__PURE__ */ a(di, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ a(mr, {}) })
2327
+ /* @__PURE__ */ a(li, { className: Se["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2328
+ /* @__PURE__ */ a("div", { className: Se["rp-document-properties"], children: i.map((c, s) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ a(Qr, { label: c.label, value: c.value }) }, s)) }),
2329
+ /* @__PURE__ */ a(di, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ a(fn, {}) })
2331
2330
  ] })
2332
2331
  ] }) }) });
2333
2332
  }, pi = {
2334
2333
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2335
- }, rr = ".pdf", hi = (e) => URL.createObjectURL(e), mi = async (e) => {
2336
- const r = await (await fetch(e)).blob();
2337
- return hi(r);
2338
- }, $r = () => {
2339
- const { filename: e, pdfSrc: t } = K(), { downloadFilename: r } = gn(), o = (i) => {
2340
- const c = r || i;
2341
- return c.endsWith(rr) ? c : `${c}${rr}`;
2334
+ }, nn = ".pdf", hi = (e) => URL.createObjectURL(e), mi = async (e) => {
2335
+ const n = await (await fetch(e)).blob();
2336
+ return hi(n);
2337
+ }, Gn = () => {
2338
+ const { filename: e, pdfSrc: t } = K(), { downloadFilename: n } = gr(), o = (i) => {
2339
+ const c = n || i;
2340
+ return c.endsWith(nn) ? c : `${c}${nn}`;
2342
2341
  };
2343
2342
  return { download: L(async () => {
2344
2343
  if (!e || !t)
@@ -2346,30 +2345,30 @@ const Se = {
2346
2345
  const i = document.createElement("a");
2347
2346
  i.href = await mi(t), i.download = o(e), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2348
2347
  }, [e, t]) };
2349
- }, Gr = () => {
2348
+ }, Vn = () => {
2350
2349
  const { downloadIcon: e } = pe();
2351
2350
  return e || /* @__PURE__ */ a(io, {});
2352
- }, Vr = ({ children: e, className: t, localeMessages: r }) => /* @__PURE__ */ a(q, { className: t, content: r == null ? void 0 : r.downloadFileTooltip, children: e }), fi = ({ download: e, localeMessages: t }) => /* @__PURE__ */ a(Vr, { localeMessages: t, children: /* @__PURE__ */ a(ee, { onClick: e, "aria-label": t == null ? void 0 : t.downloadFileTooltip, children: /* @__PURE__ */ a(Gr, {}) }) }), gi = ({ download: e, localeMessages: t }) => /* @__PURE__ */ a(we, { onClick: e, children: /* @__PURE__ */ D(Vr, { className: "rp-menu-item", localeMessages: t, children: [
2353
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Gr, {}) }),
2351
+ }, Un = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ a(q, { className: t, content: n == null ? void 0 : n.downloadFileTooltip, children: e }), fi = ({ download: e, localeMessages: t }) => /* @__PURE__ */ a(Un, { localeMessages: t, children: /* @__PURE__ */ a(ee, { onClick: e, "aria-label": t == null ? void 0 : t.downloadFileTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), gi = ({ download: e, localeMessages: t }) => /* @__PURE__ */ a(we, { onClick: e, children: /* @__PURE__ */ D(Un, { className: "rp-menu-item", localeMessages: t, children: [
2352
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
2354
2353
  t == null ? void 0 : t.downloadFileLabel
2355
- ] }) }), Ur = () => {
2356
- const { download: e } = $r(), { downloadTool: t = !0 } = ge(), { isSmallScreen: r } = ye(), { localeMessages: o } = ue();
2357
- return t ? r ? /* @__PURE__ */ a(gi, { download: e, localeMessages: o }) : typeof t == "function" ? /* @__PURE__ */ a(t, { download: e }) : t ? /* @__PURE__ */ a(fi, { download: e, localeMessages: o }) : null : null;
2358
- }, qr = () => {
2354
+ ] }) }), qn = () => {
2355
+ const { download: e } = Gn(), { downloadTool: t = !0 } = ge(), { isSmallScreen: n } = ye(), { localeMessages: o } = ue();
2356
+ return t ? n ? /* @__PURE__ */ a(gi, { download: e, localeMessages: o }) : typeof t == "function" ? /* @__PURE__ */ a(t, { download: e }) : t ? /* @__PURE__ */ a(fi, { download: e, localeMessages: o }) : null : null;
2357
+ }, Zn = () => {
2359
2358
  const { printIcon: e } = pe();
2360
2359
  return e || /* @__PURE__ */ a(ao, {});
2361
- }, Zr = ({ children: e, className: t, localeMessages: r }) => /* @__PURE__ */ a(q, { className: t, content: r == null ? void 0 : r.printTooltip, children: e }), vi = ({ print: e, localeMessages: t }) => /* @__PURE__ */ a(Zr, { localeMessages: t, children: /* @__PURE__ */ a(ee, { onClick: e, "aria-label": t == null ? void 0 : t.printTooltip, children: /* @__PURE__ */ a(qr, {}) }) }), _i = ({ print: e, localeMessages: t }) => /* @__PURE__ */ a(we, { onClick: e, children: /* @__PURE__ */ D(Zr, { className: "rp-menu-item", localeMessages: t, children: [
2362
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qr, {}) }),
2360
+ }, jn = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ a(q, { className: t, content: n == null ? void 0 : n.printTooltip, children: e }), vi = ({ print: e, localeMessages: t }) => /* @__PURE__ */ a(jn, { localeMessages: t, children: /* @__PURE__ */ a(ee, { onClick: e, "aria-label": t == null ? void 0 : t.printTooltip, children: /* @__PURE__ */ a(Zn, {}) }) }), _i = ({ print: e, localeMessages: t }) => /* @__PURE__ */ a(we, { onClick: e, children: /* @__PURE__ */ D(jn, { className: "rp-menu-item", localeMessages: t, children: [
2361
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Zn, {}) }),
2363
2362
  t == null ? void 0 : t.printLabel
2364
- ] }) }), jr = () => {
2365
- const { print: e, cancel: t, setOnProgress: r, setOnComplete: o, setOnError: n, progress: i } = et(), { printTool: c = !0 } = ge(), { isSmallScreen: s } = ye(), { localeMessages: l } = ue();
2363
+ ] }) }), Bn = () => {
2364
+ const { print: e, cancel: t, setOnProgress: n, setOnComplete: o, setOnError: r, progress: i } = et(), { printTool: c = !0 } = ge(), { isSmallScreen: s } = ye(), { localeMessages: l } = ue();
2366
2365
  return c ? s ? /* @__PURE__ */ a(_i, { print: e, localeMessages: l }) : typeof c == "function" ? /* @__PURE__ */ a(
2367
2366
  c,
2368
2367
  {
2369
2368
  print: e,
2370
2369
  cancel: t,
2371
- setOnProgress: r,
2372
- setOnError: n,
2370
+ setOnProgress: n,
2371
+ setOnError: r,
2373
2372
  setOnComplete: o,
2374
2373
  progress: i
2375
2374
  }
@@ -2378,32 +2377,32 @@ const Se = {
2378
2377
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2379
2378
  }, bi = () => {
2380
2379
  const { goToFirstPageIcon: e } = pe();
2381
- return e || /* @__PURE__ */ a(gr, { className: wi["rp-go-to-Top"] });
2380
+ return e || /* @__PURE__ */ a(vn, { className: wi["rp-go-to-Top"] });
2382
2381
  }, Ci = () => {
2383
2382
  const { goToLastPageIcon: e } = pe();
2384
- return e || /* @__PURE__ */ a(gr, {});
2385
- }, nr = { width: "100%" }, Ti = () => {
2386
- const { goToPage: e, totalPages: t, focusedPage: r } = ie(), { jumpNavigationTool: o = !0 } = ge(), { localeMessages: n } = ue(), i = F(() => r === 1, [r]), c = F(() => r === t, [r, t]), s = L(() => {
2383
+ return e || /* @__PURE__ */ a(vn, {});
2384
+ }, rn = { width: "100%" }, Ti = () => {
2385
+ const { goToPage: e, totalPages: t, focusedPage: n } = ie(), { jumpNavigationTool: o = !0 } = ge(), { localeMessages: r } = ue(), i = F(() => n === 1, [n]), c = F(() => n === t, [n, t]), s = L(() => {
2387
2386
  e(1);
2388
2387
  }, [e]), l = L(() => {
2389
2388
  e(t);
2390
2389
  }, [e, t]);
2391
2390
  return o ? /* @__PURE__ */ D(qe, { children: [
2392
- /* @__PURE__ */ a(we, { onClick: s, children: /* @__PURE__ */ a(q, { content: n == null ? void 0 : n.firstPageTooltip, style: nr, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": i, children: [
2391
+ /* @__PURE__ */ a(we, { onClick: s, children: /* @__PURE__ */ a(q, { content: r == null ? void 0 : r.firstPageTooltip, style: rn, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": i, children: [
2393
2392
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(bi, {}) }),
2394
- /* @__PURE__ */ a("span", { children: n == null ? void 0 : n.firstPageLabel })
2393
+ /* @__PURE__ */ a("span", { children: r == null ? void 0 : r.firstPageLabel })
2395
2394
  ] }) }) }),
2396
- /* @__PURE__ */ a(we, { onClick: l, children: /* @__PURE__ */ a(q, { content: n == null ? void 0 : n.lastPageTooltip, style: nr, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2395
+ /* @__PURE__ */ a(we, { onClick: l, children: /* @__PURE__ */ a(q, { content: r == null ? void 0 : r.lastPageTooltip, style: rn, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2397
2396
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Ci, {}) }),
2398
- /* @__PURE__ */ a("span", { children: n == null ? void 0 : n.lastPageLabel })
2397
+ /* @__PURE__ */ a("span", { children: r == null ? void 0 : r.lastPageLabel })
2399
2398
  ] }) }) }),
2400
2399
  /* @__PURE__ */ a(yt, {})
2401
2400
  ] }) : null;
2402
2401
  }, Pi = () => {
2403
2402
  const { container: e } = be(), { isSmallScreen: t } = ye(), {
2404
- openFileTool: r,
2403
+ openFileTool: n,
2405
2404
  downloadTool: o,
2406
- documentProperties: n,
2405
+ documentProperties: r,
2407
2406
  scrollModeTool: i,
2408
2407
  rotateTool: c,
2409
2408
  selectionModeTool: s,
@@ -2412,13 +2411,13 @@ const Se = {
2412
2411
  fullscreenTool: u
2413
2412
  } = ge(), { localeMessages: f } = ue();
2414
2413
  return F(() => {
2415
- const g = l || c || s || i || n;
2414
+ const g = l || c || s || i || r;
2416
2415
  let b = !1;
2417
- return t && (b = !(!r && !o && !d && !u)), g || b;
2416
+ return t && (b = !(!n && !o && !d && !u)), g || b;
2418
2417
  }, [
2419
- r,
2420
- o,
2421
2418
  n,
2419
+ o,
2420
+ r,
2422
2421
  i,
2423
2422
  c,
2424
2423
  s,
@@ -2426,23 +2425,23 @@ const Se = {
2426
2425
  t
2427
2426
  ]) ? /* @__PURE__ */ D(to, { children: [
2428
2427
  /* @__PURE__ */ a(
2429
- hr,
2428
+ mn,
2430
2429
  {
2431
2430
  container: e,
2432
- triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ a(ee, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ a(Gn, {}) }) }) }),
2431
+ triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ a(ee, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ a(Gr, {}) }) }) }),
2433
2432
  children: /* @__PURE__ */ D("div", { className: pi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2434
2433
  t && /* @__PURE__ */ D(qe, { children: [
2435
- /* @__PURE__ */ a(pr, {}),
2436
- /* @__PURE__ */ a(Ur, {}),
2437
- /* @__PURE__ */ a(jr, {}),
2438
- /* @__PURE__ */ a(fr, {}),
2434
+ /* @__PURE__ */ a(hn, {}),
2435
+ /* @__PURE__ */ a(qn, {}),
2436
+ /* @__PURE__ */ a(Bn, {}),
2437
+ /* @__PURE__ */ a(gn, {}),
2439
2438
  /* @__PURE__ */ a(yt, {})
2440
2439
  ] }),
2441
2440
  /* @__PURE__ */ a(Ti, {}),
2442
- /* @__PURE__ */ a(no, {}),
2441
+ /* @__PURE__ */ a(ro, {}),
2443
2442
  /* @__PURE__ */ a(so, {}),
2444
2443
  /* @__PURE__ */ a(oo, {}),
2445
- /* @__PURE__ */ a(ro, {})
2444
+ /* @__PURE__ */ a(no, {})
2446
2445
  ] })
2447
2446
  }
2448
2447
  ),
@@ -2451,12 +2450,12 @@ const Se = {
2451
2450
  }, Si = () => {
2452
2451
  const { isSmallScreen: e } = ye();
2453
2452
  return /* @__PURE__ */ D(xe, { children: [
2454
- /* @__PURE__ */ a($n, {}),
2453
+ /* @__PURE__ */ a($r, {}),
2455
2454
  !e && /* @__PURE__ */ D(xe, { children: [
2456
- /* @__PURE__ */ a(pr, {}),
2457
- /* @__PURE__ */ a(Ur, {}),
2458
- /* @__PURE__ */ a(jr, {}),
2459
- /* @__PURE__ */ a(fr, {})
2455
+ /* @__PURE__ */ a(hn, {}),
2456
+ /* @__PURE__ */ a(qn, {}),
2457
+ /* @__PURE__ */ a(Bn, {}),
2458
+ /* @__PURE__ */ a(gn, {})
2460
2459
  ] }),
2461
2460
  /* @__PURE__ */ a(Pi, {})
2462
2461
  ] });
@@ -2473,7 +2472,7 @@ const Se = {
2473
2472
  const { zoomOutIcon: e } = pe();
2474
2473
  return e || /* @__PURE__ */ a(lo, {});
2475
2474
  }, Ri = () => {
2476
- const { zoomLevel: e, setZoomLevel: t } = Xe(), { container: r, contentRef: o } = be(), { zoomTool: n = !0 } = ge(), { focusedPage: i } = ie(), { rotate: c } = Ke(), { pages: s } = K(), { isSmallScreen: l } = ye(), { localeMessages: d } = ue(), u = L(() => {
2475
+ const { zoomLevel: e, setZoomLevel: t } = Xe(), { container: n, contentRef: o } = be(), { zoomTool: r = !0 } = ge(), { focusedPage: i } = ie(), { rotate: c } = Ke(), { pages: s } = K(), { isSmallScreen: l } = ye(), { localeMessages: d } = ue(), u = L(() => {
2477
2476
  t((_) => {
2478
2477
  const m = Math.floor(_ / 25) * 25;
2479
2478
  return Math.min(m + 25, ft);
@@ -2498,7 +2497,7 @@ const Se = {
2498
2497
  },
2499
2498
  [t, w]
2500
2499
  );
2501
- return typeof n != "boolean" ? /* @__PURE__ */ a(n, { zoomLevel: e, setZoomLevel: t }) : n ? /* @__PURE__ */ D("div", { className: Re["rp-zoom-wrapper"], children: [
2500
+ return typeof r != "boolean" ? /* @__PURE__ */ a(r, { zoomLevel: e, setZoomLevel: t }) : r ? /* @__PURE__ */ D("div", { className: Re["rp-zoom-wrapper"], children: [
2502
2501
  /* @__PURE__ */ a(q, { content: d == null ? void 0 : d.zoomOutTooltip, children: /* @__PURE__ */ a(
2503
2502
  ee,
2504
2503
  {
@@ -2509,9 +2508,9 @@ const Se = {
2509
2508
  }
2510
2509
  ) }),
2511
2510
  !l && /* @__PURE__ */ a(
2512
- hr,
2511
+ mn,
2513
2512
  {
2514
- container: r,
2513
+ container: n,
2515
2514
  triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(q, { content: d == null ? void 0 : d.zoomSelectTooltip, children: /* @__PURE__ */ D(
2516
2515
  ee,
2517
2516
  {
@@ -2561,11 +2560,11 @@ const Se = {
2561
2560
  "rp-search-input": "_rp-search-input_1j25f_60",
2562
2561
  "rp-search-icon-info": "_rp-search-icon-info_1j25f_65",
2563
2562
  "rp-search-loader-icon": "_rp-search-loader-icon_1j25f_74"
2564
- }, or = () => {
2563
+ }, on = () => {
2565
2564
  const { searchIcon: e } = pe();
2566
2565
  return e || /* @__PURE__ */ a(po, {});
2567
2566
  }, Ni = () => {
2568
- const { container: e } = be(), [t, r] = $(!1), { pdf: o } = K(), [n, i] = $(null), {
2567
+ const { container: e } = be(), [t, n] = $(!1), { pdf: o } = K(), [r, i] = $(null), {
2569
2568
  searchOptions: c,
2570
2569
  setSearchOptions: s,
2571
2570
  loading: l,
@@ -2575,10 +2574,10 @@ const Se = {
2575
2574
  nextMatch: h,
2576
2575
  prevMatch: g,
2577
2576
  search: b
2578
- } = Pr(), { searchTool: w = !0 } = ge(), [v, _] = $(b), { localeMessages: m } = ue(), T = L(() => {
2579
- r(!0);
2577
+ } = Sn(), { searchTool: w = !0 } = ge(), [v, _] = $(b), { localeMessages: m } = ue(), T = L(() => {
2578
+ n(!0);
2580
2579
  }, []), S = L(() => {
2581
- d(""), _(""), r(!1);
2580
+ d(""), _(""), n(!1);
2582
2581
  }, [d]), p = (y) => {
2583
2582
  const N = y.key === "Enter", M = y.key === " ";
2584
2583
  (N || M) && S();
@@ -2596,8 +2595,8 @@ const Se = {
2596
2595
  A(() => (window.addEventListener("keydown", P), () => {
2597
2596
  window.removeEventListener("keydown", P);
2598
2597
  }), [P]), A(() => {
2599
- n && n.focus();
2600
- }, [n]);
2598
+ r && r.focus();
2599
+ }, [r]);
2601
2600
  const x = L((y) => {
2602
2601
  _(y.target.value);
2603
2602
  }, []), E = L(() => {
@@ -2616,21 +2615,21 @@ const Se = {
2616
2615
  return A(() => {
2617
2616
  S();
2618
2617
  }, [o, S]), w ? /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a(
2619
- zn,
2618
+ zr,
2620
2619
  {
2621
2620
  open: t,
2622
2621
  container: e,
2623
- triggerComponent: /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ a(ee, { onClick: T, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ a(or, {}) }) }),
2622
+ triggerComponent: /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ a(ee, { onClick: T, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ a(on, {}) }) }),
2624
2623
  children: /* @__PURE__ */ D("div", { className: Q["rp-search-tool-content"], children: [
2625
2624
  /* @__PURE__ */ D("div", { className: Q["rp-search-tool-input-wrapper"], children: [
2626
2625
  /* @__PURE__ */ D("div", { className: Q["rp-search-tool-input"], children: [
2627
2626
  /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ a(
2628
- sr,
2627
+ cn,
2629
2628
  {
2630
2629
  value: v,
2631
2630
  onKeyDown: C,
2632
2631
  onChange: x,
2633
- icon: /* @__PURE__ */ a(or, {}),
2632
+ icon: /* @__PURE__ */ a(on, {}),
2634
2633
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2635
2634
  className: Q["rp-search-input"],
2636
2635
  ref: i,
@@ -2667,7 +2666,7 @@ const Se = {
2667
2666
  {
2668
2667
  onKeyDown: p,
2669
2668
  "aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
2670
- children: /* @__PURE__ */ a(mr, { onClick: S, className: Q["rp-search-tool-input-icon"] })
2669
+ children: /* @__PURE__ */ a(fn, { onClick: S, className: Q["rp-search-tool-input-icon"] })
2671
2670
  }
2672
2671
  ) })
2673
2672
  ] })
@@ -2683,23 +2682,23 @@ const Se = {
2683
2682
  "rp-loading-cancel-button": "_rp-loading-cancel-button_vpexk_55",
2684
2683
  loading: Ei
2685
2684
  }, Oi = ({ percentage: e }) => {
2686
- const { cancel: t } = et(), { localeMessages: r } = ue();
2687
- return e < 1 ? null : /* @__PURE__ */ a("div", { className: ne(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: ne(Ne["rp-loading-modal"]), children: [
2688
- /* @__PURE__ */ D("div", { className: ne(Ne["rp-loading-title"]), children: [
2689
- r == null ? void 0 : r.printLoadingMessage,
2685
+ const { cancel: t } = et(), { localeMessages: n } = ue();
2686
+ return e < 1 ? null : /* @__PURE__ */ a("div", { className: re(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-modal"]), children: [
2687
+ /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-title"]), children: [
2688
+ n == null ? void 0 : n.printLoadingMessage,
2690
2689
  "..."
2691
2690
  ] }),
2692
- /* @__PURE__ */ a("div", { className: ne(Ne["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
2691
+ /* @__PURE__ */ a("div", { className: re(Ne["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
2693
2692
  "div",
2694
2693
  {
2695
- className: ne(Ne["rp-loading-progress"]),
2694
+ className: re(Ne["rp-loading-progress"]),
2696
2695
  style: { width: `${e}%` }
2697
2696
  }
2698
2697
  ) }),
2699
- /* @__PURE__ */ a("button", { className: ne(Ne["rp-loading-cancel-button"]), onClick: t, children: r == null ? void 0 : r.printCancelLabel })
2698
+ /* @__PURE__ */ a("button", { className: re(Ne["rp-loading-cancel-button"]), onClick: t, children: n == null ? void 0 : n.printCancelLabel })
2700
2699
  ] }) });
2701
2700
  }, Di = We((e, t) => {
2702
- const { showPrintProgress: r } = ge(), { progress: o } = et(), { isSmallScreen: n } = ye(), { percentage: i } = o || {}, c = () => n ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2701
+ const { showPrintProgress: n } = ge(), { progress: o } = et(), { isSmallScreen: r } = ye(), { percentage: i } = o || {}, c = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2703
2702
  return /* @__PURE__ */ D("div", { children: [
2704
2703
  /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: t, className: ze["rp-toolbar-content"], children: /* @__PURE__ */ D("div", { className: ze["rp-toolbar-wrapper"], style: c(), children: [
2705
2704
  /* @__PURE__ */ D("div", { "data-rp": "topBarLeft", className: ze["rp-toolbar-start"], children: [
@@ -2709,7 +2708,7 @@ const Se = {
2709
2708
  /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: ze["rp-toolbar-middle"], children: /* @__PURE__ */ a(Ri, {}) }),
2710
2709
  /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: ze["rp-toolbar-end"], children: /* @__PURE__ */ a(Si, {}) })
2711
2710
  ] }) }),
2712
- r && i ? /* @__PURE__ */ a(Oi, { percentage: i }) : null
2711
+ n && i ? /* @__PURE__ */ a(Oi, { percentage: i }) : null
2713
2712
  ] });
2714
2713
  }), gt = {
2715
2714
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
@@ -2723,20 +2722,20 @@ const Se = {
2723
2722
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2724
2723
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2725
2724
  }, zi = (e) => {
2726
- const { thumbnailSrc: t, pageNumber: r, isFocused: o, viewport: n } = e, { goToPage: i } = ie(), c = F(() => o ? Ae["rp-thumbnail-active"] : "", [o]), s = F(() => ({
2727
- width: Math.round(n.width),
2728
- height: Math.round(n.height)
2729
- }), [n]), l = L(() => {
2730
- r && i(r);
2731
- }, [i, r]);
2725
+ const { thumbnailSrc: t, pageNumber: n, isFocused: o, viewport: r } = e, { goToPage: i } = ie(), c = F(() => o ? Ae["rp-thumbnail-active"] : "", [o]), s = F(() => ({
2726
+ width: Math.round(r.width),
2727
+ height: Math.round(r.height)
2728
+ }), [r]), l = L(() => {
2729
+ n && i(n);
2730
+ }, [i, n]);
2732
2731
  return /* @__PURE__ */ D(
2733
2732
  "div",
2734
2733
  {
2735
2734
  onClick: l,
2736
- id: `page-${r}`,
2735
+ id: `page-${n}`,
2737
2736
  className: Ae["rp-thumbnail-wrapper"],
2738
2737
  children: [
2739
- /* @__PURE__ */ a("div", { className: ne(c, Ae["rp-thumbnail"]), children: t ? /* @__PURE__ */ a(
2738
+ /* @__PURE__ */ a("div", { className: re(c, Ae["rp-thumbnail"]), children: t ? /* @__PURE__ */ a(
2740
2739
  "img",
2741
2740
  {
2742
2741
  src: t,
@@ -2755,26 +2754,26 @@ const Se = {
2755
2754
  children: /* @__PURE__ */ a(Pt, {})
2756
2755
  }
2757
2756
  ) }),
2758
- /* @__PURE__ */ a("div", { className: Ae["rp-thumbnail-text"], children: r })
2757
+ /* @__PURE__ */ a("div", { className: Ae["rp-thumbnail-text"], children: n })
2759
2758
  ]
2760
2759
  }
2761
2760
  );
2762
- }, ir = {
2761
+ }, an = {
2763
2762
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2764
2763
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2765
2764
  }, Ai = 16, Fi = (e, t) => {
2766
- const r = e == null ? void 0 : e.querySelector(`#page-${t}`);
2767
- e && (r != null && r.offsetTop) && (e.scrollTop = (r == null ? void 0 : r.offsetTop) - Ai);
2765
+ const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
2766
+ e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - Ai);
2768
2767
  }, ki = We((e, t) => {
2769
- const { show: r } = e, { focusedPage: o, totalPages: n } = ie(), { thumbnailPages: i, addPage: c, thumbnailLength: s, addToPage: l } = Cr(), d = W(null), u = W(1);
2770
- ar(t, () => d.current);
2768
+ const { show: n } = e, { focusedPage: o, totalPages: r } = ie(), { thumbnailPages: i, addPage: c, thumbnailLength: s, addToPage: l } = Tn(), d = W(null), u = W(1);
2769
+ sn(t, () => d.current);
2771
2770
  const f = F(() => Object.values(i), [i]), h = L(() => {
2772
2771
  const g = s + 1;
2773
- g <= n && c(g);
2774
- }, [c, n, s]);
2772
+ g <= r && c(g);
2773
+ }, [c, r, s]);
2775
2774
  return A(() => {
2776
- o > s ? l(o) : r && u.current !== o && (Fi(d.current, o), u.current = o);
2777
- }, [o, s, l, r, f]), _n(d.current, h), /* @__PURE__ */ a("div", { ref: d, className: ir["rp-thumbnails-container"], children: /* @__PURE__ */ a("div", { className: ir["rp-thumbnails"], children: r ? f.map((g, b) => {
2775
+ o > s ? l(o) : n && u.current !== o && (Fi(d.current, o), u.current = o);
2776
+ }, [o, s, l, n, f]), _r(d.current, h), /* @__PURE__ */ a("div", { ref: d, className: an["rp-thumbnails-container"], children: /* @__PURE__ */ a("div", { className: an["rp-thumbnails"], children: n ? f.map((g, b) => {
2778
2777
  var w, v;
2779
2778
  return /* @__PURE__ */ a(
2780
2779
  zi,
@@ -2790,9 +2789,9 @@ const Se = {
2790
2789
  }) : null }) });
2791
2790
  }), Wi = () => {
2792
2791
  const { thumbnailIcon: e } = pe();
2793
- return e || /* @__PURE__ */ a(vn, {});
2792
+ return e || /* @__PURE__ */ a(vr, {});
2794
2793
  }, Mi = () => {
2795
- const { active: e, setActive: t } = Cr(), [r, o] = $(200), n = W(null), { thumbnailTool: i, sidebarEnable: c } = ge(), { localeMessages: s } = ue(), l = L(() => {
2794
+ const { active: e, setActive: t } = Tn(), [n, o] = $(200), r = W(null), { thumbnailTool: i, sidebarEnable: c } = ge(), { localeMessages: s } = ue(), l = L(() => {
2796
2795
  t((u) => !u);
2797
2796
  }, []), d = F(() => typeof i != "boolean" && i ? /* @__PURE__ */ a(i, { onClick: l, active: e }) : i ? /* @__PURE__ */ a(q, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ a(
2798
2797
  ee,
@@ -2806,7 +2805,7 @@ const Se = {
2806
2805
  return /* @__PURE__ */ a(xe, { children: c && /* @__PURE__ */ D(
2807
2806
  "div",
2808
2807
  {
2809
- style: { "--rp-thumbnail-width": `${r}px` },
2808
+ style: { "--rp-thumbnail-width": `${n}px` },
2810
2809
  className: gt["rp-sidebar-content-wrapper"],
2811
2810
  "data-rp": "sidebar",
2812
2811
  children: [
@@ -2818,8 +2817,8 @@ const Se = {
2818
2817
  hidden: !e,
2819
2818
  className: gt["rp-thumbnails-wrapper"],
2820
2819
  children: [
2821
- /* @__PURE__ */ a(ki, { show: e, ref: n }),
2822
- /* @__PURE__ */ a(wn, { onWidthChange: o, thumbnailRef: n })
2820
+ /* @__PURE__ */ a(ki, { show: e, ref: r }),
2821
+ /* @__PURE__ */ a(wr, { onWidthChange: o, thumbnailRef: r })
2823
2822
  ]
2824
2823
  }
2825
2824
  )
@@ -2836,12 +2835,12 @@ const Se = {
2836
2835
  "rp-dark-mode": "_rp-dark-mode_12d1x_147"
2837
2836
  }, Hi = We(
2838
2837
  (e, t) => {
2839
- const { children: r, toolbarRef: o, style: n, className: i } = e, { customVariables: c, customDarkVariables: s } = In(), { darkMode: l } = rn();
2838
+ const { children: n, toolbarRef: o, style: r, className: i } = e, { customVariables: c, customDarkVariables: s } = Ir(), { darkMode: l } = rr();
2840
2839
  return /* @__PURE__ */ a(
2841
2840
  "div",
2842
2841
  {
2843
2842
  ref: t,
2844
- className: ne(
2843
+ className: re(
2845
2844
  _e["rp-theme-variables"],
2846
2845
  _e["rp-container"],
2847
2846
  l ? _e["rp-dark-mode"] : "",
@@ -2851,36 +2850,36 @@ const Se = {
2851
2850
  "--rp-toolbar-height": `${(o == null ? void 0 : o.clientHeight) || 48}px`,
2852
2851
  ...c,
2853
2852
  ...l ? s : {},
2854
- ...n
2853
+ ...r
2855
2854
  },
2856
- children: r
2855
+ children: n
2857
2856
  }
2858
2857
  );
2859
2858
  }
2860
- ), Ls = We((e, t) => {
2859
+ ), ys = We((e, t) => {
2861
2860
  const {
2862
- children: r,
2861
+ children: n,
2863
2862
  slots: o,
2864
- icons: n,
2863
+ icons: r,
2865
2864
  style: i,
2866
2865
  className: c,
2867
2866
  mobileWidth: s,
2868
2867
  onLoaded: l,
2869
2868
  cleanupOnLoaded: d,
2870
2869
  onLayoutWidthChange: u
2871
- } = e, [f, h] = $(null), { setContainer: g, setContentRef: b } = be(), { loading: w } = K(), { LoaderImageComponent: v } = ur();
2870
+ } = e, [f, h] = $(null), { setContainer: g, setContentRef: b } = be(), { loading: w } = K(), { LoaderImageComponent: v } = pn();
2872
2871
  return A(() => (l && l(), () => {
2873
2872
  d && d();
2874
- }), [l, d]), /* @__PURE__ */ a(Hi, { toolbarRef: f, ref: t, children: /* @__PURE__ */ a(xn, { mobileWidth: s, onLayoutWidthChange: u, children: /* @__PURE__ */ a(bn, { slots: o, children: /* @__PURE__ */ a(Cn, { icons: n, children: /* @__PURE__ */ D(Tn, { getContainerRef: g, style: i, className: c, children: [
2875
- /* @__PURE__ */ D(Pn, { children: [
2873
+ }), [l, d]), /* @__PURE__ */ a(Hi, { toolbarRef: f, ref: t, children: /* @__PURE__ */ a(xr, { mobileWidth: s, onLayoutWidthChange: u, children: /* @__PURE__ */ a(br, { slots: o, children: /* @__PURE__ */ a(Cr, { icons: r, children: /* @__PURE__ */ D(Tr, { getContainerRef: g, style: i, className: c, children: [
2874
+ /* @__PURE__ */ D(Pr, { children: [
2876
2875
  /* @__PURE__ */ D("div", { className: _e["rp-layout"], children: [
2877
2876
  /* @__PURE__ */ a(Di, { ref: h }),
2878
2877
  /* @__PURE__ */ D("div", { className: _e["rp-content"], children: [
2879
2878
  /* @__PURE__ */ a("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ a(Mi, {}) }),
2880
- /* @__PURE__ */ a("div", { ref: b, className: _e["rp-pages"], children: r })
2879
+ /* @__PURE__ */ a("div", { ref: b, className: _e["rp-pages"], children: n })
2881
2880
  ] })
2882
2881
  ] }),
2883
- /* @__PURE__ */ a(Sn, {})
2882
+ /* @__PURE__ */ a(Sr, {})
2884
2883
  ] }),
2885
2884
  w ? /* @__PURE__ */ a(
2886
2885
  "div",
@@ -2918,7 +2917,7 @@ export {
2918
2917
  _o as C,
2919
2918
  Go as D,
2920
2919
  Di as E,
2921
- Ur as F,
2920
+ qn as F,
2922
2921
  zi as G,
2923
2922
  ki as H,
2924
2923
  Mi as I,
@@ -2926,26 +2925,26 @@ export {
2926
2925
  Oi as L,
2927
2926
  Ti as M,
2928
2927
  Pi as O,
2929
- Cs as P,
2930
- xs as R,
2931
- Ss as S,
2932
- Ps as T,
2928
+ bs as P,
2929
+ Ss as R,
2930
+ Ps as S,
2931
+ Ts as T,
2933
2932
  Ri as Z,
2934
- Ts as a,
2935
- Ls as b,
2936
- $r as c,
2933
+ Cs as a,
2934
+ ys as b,
2935
+ Gn as c,
2937
2936
  et as d,
2938
- Pr as e,
2939
- vr as f,
2937
+ Sn as e,
2938
+ _n as f,
2940
2939
  mo as g,
2941
- _r as h,
2940
+ wn as h,
2942
2941
  fo as i,
2943
- wr as j,
2942
+ bn as j,
2944
2943
  go as k,
2945
- br as l,
2946
- Cr as m,
2944
+ Cn as l,
2945
+ Tn as m,
2947
2946
  vo as n,
2948
- Tr as o,
2947
+ Pn as o,
2949
2948
  wo as p,
2950
2949
  Po as q,
2951
2950
  Lt as r,
@@ -2955,6 +2954,6 @@ export {
2955
2954
  Uo as v,
2956
2955
  Bo as w,
2957
2956
  ui as x,
2958
- jr as y,
2957
+ Bn as y,
2959
2958
  Si as z
2960
2959
  };