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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{ToolbarLayout.module-20b830dd.js → ToolbarLayout.module-e532b211.js} +774 -760
  2. package/dist/assets/ToolbarLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/RPLayout.js +1 -1
  8. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  11. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  13. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  14. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  15. package/dist/components/layout/toolbar/Paginate.js +1 -1
  16. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  19. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  20. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  21. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  22. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  23. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  24. package/dist/components/layout/toolbar/ZoomTool.js +86 -69
  25. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  26. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  30. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  31. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  32. package/dist/components/page/AnnotationLayer.js +1 -1
  33. package/dist/components/page/CanvasLayer.js +1 -1
  34. package/dist/components/page/DualPage.js +1 -1
  35. package/dist/components/page/RPPage.js +1 -1
  36. package/dist/components/page/SinglePage.js +1 -1
  37. package/dist/components/page/TextHighlightLayer.js +1 -1
  38. package/dist/components/page/TextLayer.js +1 -1
  39. package/dist/components/ui/LoadingIndicator.js +1 -1
  40. package/dist/contexts/PaginationContext.js +1 -1
  41. package/dist/contexts/PrintContext.js +1 -1
  42. package/dist/contexts/RPDocumentContext.js +31 -29
  43. package/dist/contexts/RenderQueueProvider.js +1 -1
  44. package/dist/contexts/SearchContext.js +1 -1
  45. package/dist/contexts/ThumbnailsContext.js +1 -1
  46. package/dist/contexts/ZoomContext.js +40 -40
  47. package/dist/main.js +1 -1
  48. package/dist/types/utils/hooks/useLoadPdf.d.ts +2 -1
  49. package/dist/types/utils/types.d.ts +4 -0
  50. package/dist/utils/hooks/useFileDownload.js +1 -1
  51. package/dist/utils/hooks/useLicense.js +1 -1
  52. package/dist/utils/hooks/useLoadPdf.js +64 -57
  53. package/dist/utils/hooks/usePaginate.js +1 -1
  54. package/dist/utils/hooks/usePresentPage.js +1 -1
  55. package/dist/utils/hooks/usePrint.js +1 -1
  56. package/dist/utils/hooks/useScrollToPage.js +1 -1
  57. package/dist/utils/hooks/useSearch.js +1 -1
  58. package/dist/utils/hooks/useThumbnail.js +1 -1
  59. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  60. package/dist/utils/types.js +10 -9
  61. package/package.json +1 -1
@@ -1,110 +1,110 @@
1
- import { jsx as a, Fragment as pe, jsxs as H } from "react/jsx-runtime";
2
- import * as Z from "react";
3
- import { useRef as M, useEffect as D, useCallback as E, useState as $, useMemo as k, createContext as He, useContext as $e, useImperativeHandle as tn, createElement as Ve, PureComponent as Jn, Component as eo, memo as nn, forwardRef as to } from "react";
4
- import { ChevronUpIcon as Ke } from "./components/icons/ChevronUpIcon.js";
1
+ import { jsx as a, Fragment as ue, jsxs as H } from "react/jsx-runtime";
2
+ import * as X from "react";
3
+ import { useRef as k, useEffect as D, useCallback as N, useState as $, useMemo as W, createContext as He, useContext as $e, useImperativeHandle as tn, createElement as Ve, PureComponent as eo, Component as to, memo as nn, forwardRef as no } from "react";
4
+ import { ChevronUpIcon as Ze } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as ge } from "./components/ui/Button.js";
6
6
  import { UIInput as on } from "./components/ui/Input.js";
7
- import { ViewMode as Re, ScrollMode as te, AnnotationSubType as Nt, SelectionMode as no } from "./utils/types.js";
7
+ import { ViewMode as Re, ScrollMode as ne, AnnotationSubType as Nt, SelectionMode as oo, ErrorType as ro } from "./utils/types.js";
8
8
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
9
- import { useDocumentContext as ne } from "./contexts/RPDocumentContext.js";
10
- import { useDocumentPasswordContext as oo } from "./contexts/DocumentPasswordContext.js";
11
- import { useDarkModeContext as ro } from "./contexts/DarkModeContext.js";
9
+ import { useDocumentContext as oe } from "./contexts/RPDocumentContext.js";
10
+ import { useDocumentPasswordContext as io } from "./contexts/DocumentPasswordContext.js";
11
+ import { useDarkModeContext as ao } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
- import { useLayerContext as io } from "./contexts/LayerContext.js";
13
+ import { useLayerContext as so } from "./contexts/LayerContext.js";
14
14
  import { useZoomContext as wt } from "./contexts/ZoomContext.js";
15
15
  import { useViewModeContext as Fe } from "./contexts/ViewModeContext.js";
16
- import { useVirtualScrollContext as Qe } from "./contexts/VirtualScrollContext.js";
16
+ import { useVirtualScrollContext as Ye } from "./contexts/VirtualScrollContext.js";
17
17
  import { useVirtualGridContext as rn } from "./contexts/VirtualGridContext.js";
18
- import { useSelectionModeContext as ao } from "./contexts/SelectionModeContext.js";
19
- import { useInitialStateContext as so } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as co } from "./contexts/FullScreenContext.js";
18
+ import { useSelectionModeContext as co } from "./contexts/SelectionModeContext.js";
19
+ import { useInitialStateContext as lo } from "./contexts/InitialStateContext.js";
20
+ import { useFullScreenContext as uo } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
- import { findMatches as lo, resetDivs as uo, highlightMatches as po, isMatchEntireWord as ho } from "./utils/highlight.js";
23
+ import { findMatches as po, resetDivs as ho, highlightMatches as fo, isMatchEntireWord as mo } from "./utils/highlight.js";
24
24
  import { useLayoutContainer as _e } from "./contexts/LayoutContainerContext.js";
25
25
  import { useDimensionPagesContext as qe } from "./contexts/DimensionPagesContext.js";
26
- import { useLocalizationContext as he } from "./contexts/LocalizationContext.js";
27
- import { useHighlightContext as fo } from "./contexts/HighlightContext.js";
26
+ import { useLocalizationContext as pe } from "./contexts/LocalizationContext.js";
27
+ import { useHighlightContext as go } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
- import { useDownloadContext as mo } from "./contexts/DownloadContext.js";
29
+ import { useDownloadContext as vo } from "./contexts/DownloadContext.js";
30
30
  import { useSmoothScrollContext as an } from "./contexts/SmoothScrollContext.js";
31
31
  import "./contexts/ElementPageContext.js";
32
- import { usePagesRotateContext as Ye } from "./contexts/PagesRotateContext.js";
33
- import { Queue as go } from "./utils/Queue.js";
34
- import { renderPage as vo } from "./utils/renderPage.js";
35
- import { useGlobalCurrentPage as wo } from "./contexts/GlobalCurrentPage.js";
32
+ import { usePagesRotateContext as Je } from "./contexts/PagesRotateContext.js";
33
+ import { Queue as wo } from "./utils/Queue.js";
34
+ import { renderPage as _o } from "./utils/renderPage.js";
35
+ import { useGlobalCurrentPage as bo } from "./contexts/GlobalCurrentPage.js";
36
36
  import { useLoaderContext as sn } from "./contexts/LoaderContext.js";
37
37
  import { useToolComponentContext as Ne } from "./contexts/ToolComponentContext.js";
38
38
  import { useIconToolContext as be } from "./contexts/IconToolContext.js";
39
- import { useOtherToolContext as _o, OtherToolProvider as bo } from "./contexts/OtherToolContext.js";
39
+ import { useOtherToolContext as To, OtherToolProvider as Co } from "./contexts/OtherToolContext.js";
40
40
  import "./components/RPConfig.js";
41
- import { ThumbnailIcon as To } from "./components/icons/Thumbnail.js";
41
+ import { ThumbnailIcon as Po } from "./components/icons/Thumbnail.js";
42
42
  import { c as ae } from "./clsx-0c6e471a.js";
43
43
  import { LoaderIcon as _t } from "./components/icons/LoaderIcon.js";
44
- import { Container as Co } from "./components/layout/Container.js";
45
- import { useViewportContext as Oe, ViewportProvider as Po } from "./contexts/ViewportContext.js";
46
- import { useToolbarComponentContext as Te, ToolbarComponentProvider as yo } from "./contexts/ToolbarComponentContext.js";
47
- import { WrapperLayout as So } from "./components/layout/WrapperLayout.js";
48
- import { useThemeContext as xo } from "./contexts/ThemeContext.js";
49
- import { RPDropFileZone as Io } from "./components/RPDropFileZone.js";
50
- import { c as ee, S as Ot } from "./SearchCloseButton-cbf182aa.js";
44
+ import { Container as yo } from "./components/layout/Container.js";
45
+ import { useViewportContext as Oe, ViewportProvider as So } from "./contexts/ViewportContext.js";
46
+ import { useToolbarComponentContext as Te, ToolbarComponentProvider as xo } from "./contexts/ToolbarComponentContext.js";
47
+ import { WrapperLayout as Io } from "./components/layout/WrapperLayout.js";
48
+ import { useThemeContext as Ro } from "./contexts/ThemeContext.js";
49
+ import { RPDropFileZone as Lo } from "./components/RPDropFileZone.js";
50
+ import { c as te, S as Ot } from "./SearchCloseButton-cbf182aa.js";
51
51
  import { UICheckbox as Dt } from "./components/ui/Checkbox.js";
52
- import { useIconContext as Ce, IconProvider as Ro } from "./contexts/IconContext.js";
52
+ import { useIconContext as Ce, IconProvider as Eo } from "./contexts/IconContext.js";
53
53
  import Q from "./components/ui/RPTooltip.js";
54
54
  import { UIDropDown as cn } from "./components/ui/DropDown.js";
55
55
  import "./ZoomTool.module-6c5eabbb.js";
56
- import { MenuItem as Ze } from "./components/layout/toolbar/MenuItem.js";
56
+ import { MenuItem as Xe } from "./components/layout/toolbar/MenuItem.js";
57
57
  import { MenuSeparator as ln } from "./components/layout/toolbar/MenuSeparator.js";
58
58
  import { dateFormatter as At } from "./utils/dateFormatter.js";
59
- import { PropertyItem as Lo } from "./components/layout/toolbar/PropertyItem.js";
60
- import { RotateTool as Eo } from "./components/layout/toolbar/RotateTool.js";
61
- import { withRef as Je } from "./utils/withRef.js";
62
- import { useInfiniteScroll as No } from "./utils/hooks/useInfiniteScroll.js";
63
- import { RPSplitter as Oo } from "./components/layout/sidebar/RPSplitter.js";
64
- import * as Do from "pdfjs-dist";
65
- import { PixelsPerInch as Ao, AnnotationMode as zo, RenderingCancelledException as Fo, AnnotationLayer as Mo } from "pdfjs-dist";
66
- import { SimpleLinkService as ko } from "./utils/link_service.js";
67
- import { annotationsEvents as Wo, annotationEventsHandler as Ho, handleClick as zt, handleAnnotationWidget as $o, handleAnnotationLink as qo, bindLayerEvents as Go, unbindLayerEvents as Ft } from "./utils/annotations.js";
68
- import { normalizeSingleKeyword as Vo, sortHighlightPosition as Uo, unwrap as Bo } from "./components/page/searchHighlight.js";
69
- import { CustomElement as jo } from "./components/page/CustomElement.js";
70
- import { useMousePressed as Ko } from "./utils/hooks/useMousePressed.js";
71
- import { useGrabScroll as Zo } from "./utils/hooks/useGrabScroll.js";
72
- import { usePinch as Xo } from "./utils/hooks/usePinch.js";
59
+ import { PropertyItem as No } from "./components/layout/toolbar/PropertyItem.js";
60
+ import { RotateTool as Oo } from "./components/layout/toolbar/RotateTool.js";
61
+ import { withRef as et } from "./utils/withRef.js";
62
+ import { useInfiniteScroll as Do } from "./utils/hooks/useInfiniteScroll.js";
63
+ import { RPSplitter as Ao } from "./components/layout/sidebar/RPSplitter.js";
64
+ import * as zo from "pdfjs-dist";
65
+ import { PixelsPerInch as Fo, AnnotationMode as Mo, RenderingCancelledException as ko, AnnotationLayer as Wo } from "pdfjs-dist";
66
+ import { SimpleLinkService as Ho } from "./utils/link_service.js";
67
+ import { annotationsEvents as $o, annotationEventsHandler as qo, handleClick as zt, handleAnnotationWidget as Go, handleAnnotationLink as Uo, bindLayerEvents as Vo, unbindLayerEvents as Ft } from "./utils/annotations.js";
68
+ import { normalizeSingleKeyword as Bo, sortHighlightPosition as jo, unwrap as Ko } from "./components/page/searchHighlight.js";
69
+ import { CustomElement as Zo } from "./components/page/CustomElement.js";
70
+ import { useMousePressed as Xo } from "./utils/hooks/useMousePressed.js";
71
+ import { useGrabScroll as Qo } from "./utils/hooks/useGrabScroll.js";
72
+ import { usePinch as Yo } from "./utils/hooks/usePinch.js";
73
73
  import { useDebounce as bt } from "./utils/hooks/useDebounce.js";
74
- import Qo from "./components/ui/PasswordModal.js";
75
- import { getPositionFromPage as Yo, getPageFromPosition as Jo } from "./utils/calculatePage.js";
74
+ import Jo from "./components/ui/PasswordModal.js";
75
+ import { getPositionFromPage as er, getPageFromPosition as tr } from "./utils/calculatePage.js";
76
76
  import { getScrollDistance as ze } from "./utils/getScrollDistance.js";
77
- import { getWordPositionInPage as er } from "./utils/getWordPositionInPage.js";
78
- import { getThumbnailViewport as tr } from "./utils/getThumbnailViewport.js";
77
+ import { getWordPositionInPage as nr } from "./utils/getWordPositionInPage.js";
78
+ import { getThumbnailViewport as or } from "./utils/getThumbnailViewport.js";
79
79
  import { smoothScrollTo as it } from "./utils/smoothScrollTo.js";
80
- import { appConsole as nr } from "./utils/appConsole.js";
80
+ import { appConsole as rr } from "./utils/appConsole.js";
81
81
  import { FileUploadTool as dn } from "./components/layout/toolbar/FileUploadTool.js";
82
- import { DarkModeTool as or } from "./components/layout/toolbar/DarkModeTool.js";
83
- import { ThreeDotIcon as rr } from "./components/icons/ThreeDotIcon.js";
84
- import { c as ir, u as Tt, P as Ge, b as We, d as Ct, i as ar, k as sr, a as cr } from "./index-5908484b.js";
85
- import { D as lr, u as at } from "./index-18b0454c.js";
86
- import { a as dr, h as ur, u as pr, F as hr, b as fr, G as un } from "./index-f4a9ae4d.js";
87
- import { CloseIcon as mr } from "./components/icons/CloseIcon.js";
88
- import { DocumentProperties as gr } from "./components/layout/toolbar/DocumentProperties.js";
89
- import { ViewModeTool as vr } from "./components/layout/toolbar/ViewModeTool.js";
90
- import { ScrollModeTool as wr } from "./components/layout/toolbar/ScrollModeTool.js";
91
- import { FileDownloadDefaultIcon as _r } from "./components/icons/FileDownloadDefaultIcon.js";
92
- import { PrintDefaultTool as br } from "./components/icons/PrintDefaultIcon.js";
82
+ import { DarkModeTool as ir } from "./components/layout/toolbar/DarkModeTool.js";
83
+ import { ThreeDotIcon as ar } from "./components/icons/ThreeDotIcon.js";
84
+ import { c as sr, u as Tt, P as Ge, b as We, d as Ct, i as cr, k as lr, a as dr } from "./index-5908484b.js";
85
+ import { D as ur, u as at } from "./index-18b0454c.js";
86
+ import { a as pr, h as hr, u as fr, F as mr, b as gr, G as un } from "./index-f4a9ae4d.js";
87
+ import { CloseIcon as vr } from "./components/icons/CloseIcon.js";
88
+ import { DocumentProperties as wr } from "./components/layout/toolbar/DocumentProperties.js";
89
+ import { ViewModeTool as _r } from "./components/layout/toolbar/ViewModeTool.js";
90
+ import { ScrollModeTool as br } from "./components/layout/toolbar/ScrollModeTool.js";
91
+ import { FileDownloadDefaultIcon as Tr } from "./components/icons/FileDownloadDefaultIcon.js";
92
+ import { PrintDefaultTool as Cr } from "./components/icons/PrintDefaultIcon.js";
93
93
  import { FullScreenTool as pn } from "./components/layout/toolbar/FullScreenTool.js";
94
94
  import { GoToDownIcon as hn } from "./components/icons/GoToDownIcon.js";
95
- import { SelectionModeTool as Tr } from "./components/layout/toolbar/SelectionModeTool.js";
96
- import { ZoomTool as Cr } from "./components/layout/toolbar/ZoomTool.js";
95
+ import { SelectionModeTool as Pr } from "./components/layout/toolbar/SelectionModeTool.js";
96
+ import { ZoomTool as yr } from "./components/layout/toolbar/ZoomTool.js";
97
97
  import { SearchIcon as fn } from "./components/icons/SearchIcon.js";
98
- import { ClearIcon as Pr } from "./components/icons/ClearIcon.js";
98
+ import { ClearIcon as Sr } from "./components/icons/ClearIcon.js";
99
99
  import { InfoIcon as Mt } from "./components/icons/InfoIcon.js";
100
100
  import './assets/ToolbarLayout.css';const mn = () => {
101
- const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = Qe(), { setFocusedPage: i } = ce(), c = M(), { columnCount: l } = rn(), { widths: d, heights: h } = qe(), m = M(e), T = M(t), f = M(l), { targetScrollPage: v } = an();
101
+ const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = Ye(), { setFocusedPage: i } = ce(), c = k(), { columnCount: l } = rn(), { widths: d, heights: h } = qe(), m = k(e), T = k(t), f = k(l), { targetScrollPage: v } = an();
102
102
  D(() => {
103
103
  n != null && n.scrollToItem && (c.current = n);
104
104
  }, [n]), D(() => {
105
105
  m.current = e, T.current = t;
106
106
  }, [e, t]);
107
- const C = E(
107
+ const C = N(
108
108
  (b, y) => {
109
109
  if (!o)
110
110
  return;
@@ -133,23 +133,23 @@ import './assets/ToolbarLayout.css';const mn = () => {
133
133
  m.current = e, T.current = t;
134
134
  }, [e, t]), D(() => {
135
135
  f.current = l;
136
- }, [l]), { scrollToPage: E(
136
+ }, [l]), { scrollToPage: N(
137
137
  (b, y = "smooth") => {
138
138
  i(b);
139
139
  const g = b - 1;
140
140
  let p = g, u = 0;
141
- if (T.current === Re.DUAL_PAGE && m.current === te.PAGE_SCROLLING) {
141
+ if (T.current === Re.DUAL_PAGE && m.current === ne.PAGE_SCROLLING) {
142
142
  C(b, y);
143
143
  return;
144
144
  }
145
- if (m.current === te.PAGE_SCROLLING) {
145
+ if (m.current === ne.PAGE_SCROLLING) {
146
146
  i(b);
147
147
  return;
148
148
  }
149
149
  if (!c.current || !r)
150
150
  return;
151
151
  const s = r;
152
- if (y === "smooth" && (v.current = b), m.current === te.HORIZONTAL_SCROLLING) {
152
+ if (y === "smooth" && (v.current = b), m.current === ne.HORIZONTAL_SCROLLING) {
153
153
  u = g;
154
154
  const S = {
155
155
  left: ze(d, u),
@@ -190,8 +190,8 @@ import './assets/ToolbarLayout.css';const mn = () => {
190
190
  d
191
191
  ]
192
192
  ) };
193
- }, yr = (t = 1) => {
194
- const [e, n] = $(t), [r, o] = $(0), { scrollToPage: i } = mn(), c = M(1), { viewMode: l } = Fe(), { scrollMode: d } = Ee(), { widths: h } = qe(), { pagesRef: m } = _e(), T = bt(e, 100), f = E(
193
+ }, xr = (t = 1) => {
194
+ const [e, n] = $(t), [r, o] = $(0), { scrollToPage: i } = mn(), c = k(1), { viewMode: l } = Fe(), { scrollMode: d } = Ee(), { widths: h } = qe(), { pagesRef: m } = _e(), T = bt(e, 100), f = N(
195
195
  (p) => {
196
196
  if (!/^[0-9]*$/g.test(p.toString()) || !p)
197
197
  return { success: !1, currentPage: c.current };
@@ -199,22 +199,22 @@ import './assets/ToolbarLayout.css';const mn = () => {
199
199
  return s < 0 || s > r ? { success: !1, currentPage: c.current } : (n(s), c.current = s, { success: !0, currentPage: +p });
200
200
  },
201
201
  [r]
202
- ), v = E(f, [f]), C = E(
202
+ ), v = N(f, [f]), C = N(
203
203
  (p) => {
204
204
  const u = f(p);
205
205
  return u.success && i(u.currentPage), u;
206
206
  },
207
207
  [f, i]
208
- ), P = E((p) => {
208
+ ), P = N((p) => {
209
209
  const u = p % 2 === 1;
210
210
  if (!m || u)
211
211
  return !1;
212
212
  const s = u ? h[p] : h[p - 1], w = u ? h[p + 1] : h[p];
213
213
  return l === Re.DUAL_PAGE && s + w < m.clientWidth;
214
- }, [l, h, m, r]), b = E(() => {
214
+ }, [l, h, m, r]), b = N(() => {
215
215
  let p = e - 1;
216
216
  P(p) && (p = e - 2), C(p);
217
- }, [C, e, l, d, P]), y = k(() => l === Re.DUAL_PAGE && d === te.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, l, d]), g = E(() => {
217
+ }, [C, e, l, d, P]), y = W(() => l === Re.DUAL_PAGE && d === ne.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, l, d]), g = N(() => {
218
218
  if (y)
219
219
  return;
220
220
  let p = e + 1;
@@ -243,9 +243,9 @@ import './assets/ToolbarLayout.css';const mn = () => {
243
243
  }
244
244
  }), ce = () => {
245
245
  const t = $e(gn);
246
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && nr.error("Please use this hooks inside children component of RPProvider"), t;
247
- }, ks = ({ children: t }) => {
248
- const { pdf: e } = ne(), { setCurrentPage: n } = wo(), { focusedPage: r, totalPages: o, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: h } = yr();
246
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && rr.error("Please use this hooks inside children component of RPProvider"), t;
247
+ }, Hs = ({ children: t }) => {
248
+ const { pdf: e } = oe(), { setCurrentPage: n } = bo(), { focusedPage: r, totalPages: o, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: h } = xr();
249
249
  return D(() => {
250
250
  e != null && e.numPages && (c(e.numPages), i(1));
251
251
  }, [e, c, i]), D(() => {
@@ -266,20 +266,20 @@ import './assets/ToolbarLayout.css';const mn = () => {
266
266
  }
267
267
  );
268
268
  };
269
- const Sr = () => {
270
- const { pdf: t, pages: e } = ne(), [n, r] = $({
269
+ const Ir = () => {
270
+ const { pdf: t, pages: e } = oe(), [n, r] = $({
271
271
  loadedPages: 0,
272
272
  totalPages: 0,
273
273
  percentage: 0
274
- }), [o, i] = $(!1), [c, l] = $(!1), [d, h] = $(null), m = M(!1);
274
+ }), [o, i] = $(!1), [c, l] = $(!1), [d, h] = $(null), m = k(!1);
275
275
  D(() => {
276
276
  m.current;
277
277
  }, [m]);
278
- const T = E(() => {
278
+ const T = N(() => {
279
279
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
280
280
  const p = document.querySelector(".rp-print-zone");
281
281
  p && p.remove();
282
- }, []), f = E(() => {
282
+ }, []), f = N(() => {
283
283
  m.current = !1, i(!1), l(!1), h(null), r({
284
284
  loadedPages: 0,
285
285
  totalPages: 0,
@@ -294,39 +294,39 @@ const Sr = () => {
294
294
  viewerPdfPage: w,
295
295
  printResolution: _,
296
296
  optionalContentConfigPromise: S,
297
- printAnnotationStoragePromise: L
297
+ printAnnotationStoragePromise: R
298
298
  }) => {
299
299
  if (m.current) {
300
300
  f();
301
301
  return;
302
302
  }
303
- const x = _ / Ao.PDF;
303
+ const x = _ / Fo.PDF;
304
304
  p.width = Math.floor(w.width * x), p.height = Math.floor(w.height * x);
305
305
  const I = p.getContext("2d");
306
306
  I.save(), I.fillStyle = "rgb(255, 255, 255)", I.fillRect(0, 0, p.width, p.height), I.restore();
307
307
  const [O, A] = await Promise.all([
308
308
  u.getPage(s),
309
- L
309
+ R
310
310
  ]);
311
311
  if (m.current) {
312
312
  f();
313
313
  return;
314
314
  }
315
- const F = {
315
+ const z = {
316
316
  canvasContext: I,
317
317
  transform: [x, 0, 0, x, 0, 0],
318
318
  viewport: O.getViewport({ scale: 1, rotation: w.rotation }),
319
319
  intent: "print",
320
- annotationMode: zo.ENABLE_STORAGE,
320
+ annotationMode: Mo.ENABLE_STORAGE,
321
321
  optionalContentConfigPromise: S,
322
322
  printAnnotationStorage: A
323
323
  };
324
324
  try {
325
- return O.render(F).promise;
326
- } catch (R) {
327
- throw R instanceof Fo || console.error(R), R;
325
+ return O.render(z).promise;
326
+ } catch (L) {
327
+ throw L instanceof ko || console.error(L), L;
328
328
  }
329
- }, P = E(() => {
329
+ }, P = N(() => {
330
330
  const p = window.print;
331
331
  return new Promise((u) => {
332
332
  const s = (S) => {
@@ -358,11 +358,11 @@ const Sr = () => {
358
358
  s.classList.add("rp-print-zone");
359
359
  const w = document.createElement("style"), _ = u.get(1);
360
360
  if (_) {
361
- const { width: S, height: L } = _ == null ? void 0 : _.page.getViewport({ scale: 1 });
362
- w.innerHTML = `@page { size: ${S}px ${L}px }`;
361
+ const { width: S, height: R } = _ == null ? void 0 : _.page.getViewport({ scale: 1 });
362
+ w.innerHTML = `@page { size: ${S}px ${R}px }`;
363
363
  }
364
364
  return s.appendChild(w), s.append(...p), s;
365
- }, g = E(async () => {
365
+ }, g = N(async () => {
366
366
  if (!t)
367
367
  return;
368
368
  f();
@@ -392,19 +392,19 @@ const Sr = () => {
392
392
  }
393
393
  const A = await b(p);
394
394
  u.push(A);
395
- const F = parseFloat((u.length / S * 100).toFixed(2));
395
+ const z = parseFloat((u.length / S * 100).toFixed(2));
396
396
  r({
397
397
  loadedPages: x,
398
398
  totalPages: S,
399
- percentage: F
399
+ percentage: z
400
400
  });
401
401
  }
402
402
  if (m.current) {
403
403
  f();
404
404
  return;
405
405
  }
406
- const L = y(u, e);
407
- document.body.appendChild(L), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), i(!0), await P();
406
+ const R = y(u, e);
407
+ document.body.appendChild(R), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), i(!0), await P();
408
408
  } catch (s) {
409
409
  l(!0), s instanceof Error && h(s);
410
410
  } finally {
@@ -443,12 +443,12 @@ const Sr = () => {
443
443
  console.error("Error in setOnError callback:", e);
444
444
  }
445
445
  }
446
- }), Ws = ({ children: t }) => {
447
- const [e, n] = $(null), [r, o] = $(null), { print: i, cancel: c, progress: l, isComplete: d, isError: h, error: m } = Sr(), T = E((b) => {
446
+ }), $s = ({ children: t }) => {
447
+ const [e, n] = $(null), [r, o] = $(null), { print: i, cancel: c, progress: l, isComplete: d, isError: h, error: m } = Ir(), T = N((b) => {
448
448
  b && typeof b == "function" && o(() => b);
449
449
  }, []), f = (b) => {
450
450
  m && b(m);
451
- }, v = E(
451
+ }, v = N(
452
452
  (b) => {
453
453
  n(() => b);
454
454
  },
@@ -474,18 +474,18 @@ const Sr = () => {
474
474
  progress: l
475
475
  };
476
476
  return /* @__PURE__ */ a(vn.Provider, { value: P, children: t });
477
- }, et = () => {
477
+ }, tt = () => {
478
478
  const t = $e(vn);
479
479
  if (!t)
480
480
  throw new Error("usePrintContext must be used within a PrintProvider");
481
481
  return t;
482
- }, xr = () => {
483
- const [t, e] = $({}), { pages: n } = ne(), r = k(() => Object.keys(t).length, [t]), o = E(
482
+ }, Rr = () => {
483
+ const [t, e] = $({}), { pages: n } = oe(), r = W(() => Object.keys(t).length, [t]), o = N(
484
484
  (c) => {
485
485
  if (!n.size)
486
486
  return;
487
487
  const l = c > n.size ? n.size : c, h = Array.from(n.values()).slice(0, l).map((m) => {
488
- const { thumbnailViewport: T, scale: f } = tr(m.page, m.defaultRotation);
488
+ const { thumbnailViewport: T, scale: f } = or(m.page, m.defaultRotation);
489
489
  return {
490
490
  scale: f,
491
491
  page: m.page,
@@ -501,7 +501,7 @@ const Sr = () => {
501
501
  D(() => {
502
502
  o(10);
503
503
  }, [o]);
504
- const i = E(
504
+ const i = N(
505
505
  (c) => {
506
506
  if (!n)
507
507
  return;
@@ -530,11 +530,11 @@ const Sr = () => {
530
530
  setActive: (t) => {
531
531
  },
532
532
  active: !1
533
- }), _n = () => $e(wn), Hs = ({
533
+ }), _n = () => $e(wn), qs = ({
534
534
  children: t,
535
535
  initialThumbnailsVisible: e
536
536
  }) => {
537
- const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i } = xr(), [c, l] = $(e);
537
+ const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i } = Rr(), [c, l] = $(e);
538
538
  return /* @__PURE__ */ a(
539
539
  wn.Provider,
540
540
  {
@@ -542,41 +542,41 @@ const Sr = () => {
542
542
  children: t
543
543
  }
544
544
  );
545
- }, Ir = (t = {}, e = "") => {
546
- const [n, r] = $(e), [o, i] = $(!1), { pdf: c, pages: l } = ne(), { widths: d, heights: h } = qe(), m = M(!n), { currentZoom: T } = wt(), [f, v] = $([]), { setFocusedPage: C } = ce(), { columnCount: P } = Fe(), { pageRotate: b } = Ye(), [y, g] = $(0), { pageScrollElementRef: p, virtualScrollableElementRef: u } = Qe(), { scrollMode: s } = Ee(), { pagesRef: w } = _e(), [_, S] = $(null), L = M({}), x = k(() => y === 0 ? null : f[y - 1], [y, f]), I = k(() => f.length, [f]);
545
+ }, Lr = (t = {}, e = "") => {
546
+ const [n, r] = $(e), [o, i] = $(!1), { pdf: c, pages: l } = oe(), { widths: d, heights: h } = qe(), m = k(!n), { currentZoom: T } = wt(), [f, v] = $([]), { setFocusedPage: C } = ce(), { columnCount: P } = Fe(), { pageRotate: b } = Je(), [y, g] = $(0), { pageScrollElementRef: p, virtualScrollableElementRef: u } = Ye(), { scrollMode: s } = Ee(), { pagesRef: w } = _e(), [_, S] = $(null), R = k({}), x = W(() => y === 0 ? null : f[y - 1], [y, f]), I = W(() => f.length, [f]);
547
547
  D(() => {
548
548
  if (!x || !l)
549
549
  return;
550
- const R = u || p;
551
- if (!R || !w)
550
+ const L = u || p;
551
+ if (!L || !w)
552
552
  return;
553
- const N = l.get(x.page);
554
- if (s === te.PAGE_SCROLLING && C(x.page), !N)
553
+ const E = l.get(x.page);
554
+ if (s === ne.PAGE_SCROLLING && C(x.page), !E)
555
555
  return;
556
- let z = 0, W = 0;
557
- if (s === te.VERTICAL_SCROLLING) {
558
- const re = x.page - 1, Y = P, ie = re % Y, de = Math.floor(re / Y);
559
- z = ze(h, de), W = ze(d, ie);
556
+ let F = 0, M = 0;
557
+ if (s === ne.VERTICAL_SCROLLING) {
558
+ const ee = x.page - 1, ie = P, Y = ee % ie, ve = Math.floor(ee / ie);
559
+ F = ze(h, ve), M = ze(d, Y);
560
560
  }
561
- s === te.HORIZONTAL_SCROLLING && (W = d.slice(0, x.page - 1).reduce((re, Y) => re + Y, 0));
562
- const G = {
561
+ s === ne.HORIZONTAL_SCROLLING && (M = d.slice(0, x.page - 1).reduce((ee, ie) => ee + ie, 0));
562
+ const q = {
563
563
  height: h[x.page - 1],
564
564
  width: d[x.page - 1]
565
565
  }, B = {
566
- top: G.height / 2,
567
- left: G.width / 2
568
- }, K = b[x.page], { leftInPage: V, topInPage: J } = er(
569
- G,
566
+ top: q.height / 2,
567
+ left: q.width / 2
568
+ }, j = b[x.page], { leftInPage: U, topInPage: J } = nr(
569
+ q,
570
570
  B,
571
571
  x.rect,
572
572
  T,
573
- K
574
- ), q = W + V, X = z + J, oe = {
575
- left: Math.max(q, 0),
576
- top: Math.max(X, 0)
573
+ j
574
+ ), G = M + U, Z = F + J, re = {
575
+ left: Math.max(G, 0),
576
+ top: Math.max(Z, 0)
577
577
  };
578
- R.scrollTo({
579
- ...oe,
578
+ L.scrollTo({
579
+ ...re,
580
580
  behavior: "smooth"
581
581
  });
582
582
  }, [
@@ -590,43 +590,43 @@ const Sr = () => {
590
590
  p,
591
591
  w
592
592
  ]);
593
- const O = E(() => {
594
- g((R) => I ? R + 1 > I ? 1 : R + 1 : 0);
595
- }, [I]), A = E(() => {
596
- g((R) => I ? R - 1 <= 0 ? I : R - 1 : 0);
597
- }, [I]), F = E(async (R) => {
598
- if (!R)
593
+ const O = N(() => {
594
+ g((L) => I ? L + 1 > I ? 1 : L + 1 : 0);
595
+ }, [I]), A = N(() => {
596
+ g((L) => I ? L - 1 <= 0 ? I : L - 1 : 0);
597
+ }, [I]), z = N(async (L) => {
598
+ if (!L)
599
599
  return {};
600
- const N = R.numPages, z = {};
601
- for (let W = 1; W <= N; W++) {
600
+ const E = L.numPages, F = {};
601
+ for (let M = 1; M <= E; M++) {
602
602
  if (m.current)
603
603
  throw "close pop over";
604
- const G = await R.getPage(W);
605
- z[W.toString()] = await G.getTextContent();
604
+ const q = await L.getPage(M);
605
+ F[M.toString()] = await q.getTextContent();
606
606
  }
607
- return z;
607
+ return F;
608
608
  }, []);
609
609
  return D(() => {
610
610
  if (!n) {
611
611
  m.current = !0, v([]), g(0);
612
612
  return;
613
613
  }
614
- m.current = !1, i(!0), v([]), g(0), F(c).then((R) => {
615
- L.current = R;
616
- const z = Object.keys(R).reduce((W, G) => {
617
- const B = lo(
614
+ m.current = !1, i(!0), v([]), g(0), z(c).then((L) => {
615
+ R.current = L;
616
+ const F = Object.keys(L).reduce((M, q) => {
617
+ const B = po(
618
618
  [n],
619
- R[G],
620
- Number(G) - 1,
619
+ L[q],
620
+ Number(q) - 1,
621
621
  t
622
- ).map((K, V) => ({ ...K, page: Number(G), pageMatchIdx: V }));
623
- return [...W, ...B];
622
+ ).map((j, U) => ({ ...j, page: Number(q), pageMatchIdx: U }));
623
+ return [...M, ...B];
624
624
  }, []);
625
- v(z), g(z.length ? 1 : 0);
625
+ v(F), g(F.length ? 1 : 0);
626
626
  }).catch(() => {
627
627
  v([]), g(0);
628
628
  }).finally(() => i(!1));
629
- }, [n, F, c, t]), {
629
+ }, [n, z, c, t]), {
630
630
  search: n,
631
631
  setSearch: r,
632
632
  loading: o,
@@ -657,7 +657,7 @@ const Sr = () => {
657
657
  currentMatchElement: null,
658
658
  setCurrentMatchElement: (t) => {
659
659
  }
660
- }), $s = ({
660
+ }), Gs = ({
661
661
  children: t,
662
662
  initialSearch: e
663
663
  }) => {
@@ -673,7 +673,7 @@ const Sr = () => {
673
673
  prevMatch: f,
674
674
  currentMatchElement: v,
675
675
  setCurrentMatchElement: C
676
- } = Ir(n, e);
676
+ } = Lr(n, e);
677
677
  return /* @__PURE__ */ a(
678
678
  bn.Provider,
679
679
  {
@@ -695,10 +695,10 @@ const Sr = () => {
695
695
  children: t
696
696
  }
697
697
  );
698
- }, Pt = () => $e(bn), Tn = He(null), qs = ({ children: t }) => {
699
- const e = M(!1), [n, r] = $([]), o = E((d) => {
698
+ }, Pt = () => $e(bn), Tn = He(null), Us = ({ children: t }) => {
699
+ const e = k(!1), [n, r] = $([]), o = N((d) => {
700
700
  r((h) => [...h, { id: d.page.pageNumber.toString(), data: d, priority: 0 }]);
701
- }, []), i = k(() => new go(o), [o]), { focusedPage: c } = ce(), l = E((d) => (e.current = !0, vo(
701
+ }, []), i = W(() => new wo(o), [o]), { focusedPage: c } = ce(), l = N((d) => (e.current = !0, _o(
702
702
  d.data.page,
703
703
  d.data.canvasElem,
704
704
  d.data.options
@@ -725,21 +725,22 @@ const Sr = () => {
725
725
  if (!t)
726
726
  throw new Error("RenderQueue not found");
727
727
  return t;
728
- }, ue = {
729
- "rp-pages": "_rp-pages_dfr3e_1",
730
- "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_dfr3e_11",
731
- "rp-pages-container": "_rp-pages-container_dfr3e_15",
732
- "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_dfr3e_52",
733
- "rp-viewer": "_rp-viewer_dfr3e_57",
734
- "rp-cursor-grab": "_rp-cursor-grab_dfr3e_62",
735
- "rp-cursor-grabbing": "_rp-cursor-grabbing_dfr3e_70",
736
- "rp-loader": "_rp-loader_dfr3e_78"
728
+ }, le = {
729
+ "rp-pages": "_rp-pages_2zf43_1",
730
+ "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_2zf43_11",
731
+ "rp-pages-container": "_rp-pages-container_2zf43_15",
732
+ "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_2zf43_52",
733
+ "rp-viewer": "_rp-viewer_2zf43_57",
734
+ "rp-cursor-grab": "_rp-cursor-grab_2zf43_62",
735
+ "rp-cursor-grabbing": "_rp-cursor-grabbing_2zf43_70",
736
+ "rp-loader": "_rp-loader_2zf43_78",
737
+ "rp-not-supported": "_rp-not-supported_2zf43_86"
737
738
  }, st = {
738
739
  "rp-page-wrapper": "_rp-page-wrapper_14ohm_1",
739
740
  "rp-page": "_rp-page_14ohm_1",
740
741
  "rp-loader-wrapper": "_rp-loader-wrapper_14ohm_15"
741
- }, Rr = (t) => {
742
- const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = M(null), { pages: i } = ne(), { pageRotate: c } = Ye(), l = M(), { currentZoom: d } = wt(), h = Cn(), m = M(`page-${e}`);
742
+ }, Er = (t) => {
743
+ const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = k(null), { pages: i } = oe(), { pageRotate: c } = Je(), l = k(), { currentZoom: d } = wt(), h = Cn(), m = k(`page-${e}`);
743
744
  return D(() => {
744
745
  if (!i || d === 0)
745
746
  return;
@@ -767,24 +768,24 @@ const Sr = () => {
767
768
  h.removeQueue(m.current);
768
769
  };
769
770
  }, [i, e, c, d, r, n, h]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
770
- }, Lr = "_selecting_usdup_9", fe = {
771
+ }, Nr = "_selecting_usdup_9", fe = {
771
772
  "rp-text-layer": "_rp-text-layer_usdup_1",
772
- selecting: Lr,
773
+ selecting: Nr,
773
774
  "rp-text-layer-text": "_rp-text-layer-text_usdup_39"
774
- }, Er = (t) => {
775
- const { pageNumber: e } = t, { pages: n } = ne(), r = M(null), { matches: o, currentMatch: i, setCurrentMatchElement: c } = Pt(), [l, d] = $(
775
+ }, Or = (t) => {
776
+ const { pageNumber: e } = t, { pages: n } = oe(), r = k(null), { matches: o, currentMatch: i, setCurrentMatchElement: c } = Pt(), [l, d] = $(
776
777
  []
777
- ), h = M(), m = M(), T = M([]), f = k(() => o.filter((p) => p.pageIndex === e - 1), [o, e]), v = E(
778
+ ), h = k(), m = k(), T = k([]), f = W(() => o.filter((p) => p.pageIndex === e - 1), [o, e]), v = N(
778
779
  (p, u, s = !1) => {
779
- if (s && uo(p, u), !f.length) {
780
+ if (s && ho(p, u), !f.length) {
780
781
  T.current = [], d([]);
781
782
  return;
782
783
  }
783
- const w = po(f, p, u);
784
+ const w = fo(f, p, u);
784
785
  d(w);
785
786
  },
786
787
  [f]
787
- ), C = M(), P = M(!1), b = E(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
788
+ ), C = k(), P = k(!1), b = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
788
789
  D(() => ((() => {
789
790
  if (C.current)
790
791
  return;
@@ -824,7 +825,7 @@ const Sr = () => {
824
825
  document.addEventListener(
825
826
  "selectionchange",
826
827
  () => {
827
- var F, R;
828
+ var z, L;
828
829
  const _ = document.getSelection();
829
830
  if (!_)
830
831
  return;
@@ -833,27 +834,27 @@ const Sr = () => {
833
834
  return;
834
835
  }
835
836
  const S = /* @__PURE__ */ new Set();
836
- for (let N = 0; N < _.rangeCount; N++) {
837
- const z = _.getRangeAt(N);
838
- b().forEach((W) => {
839
- z.intersectsNode(W) && !S.has(W) && S.add(W);
837
+ for (let E = 0; E < _.rangeCount; E++) {
838
+ const F = _.getRangeAt(E);
839
+ b().forEach((M) => {
840
+ F.intersectsNode(M) && !S.has(M) && S.add(M);
840
841
  });
841
842
  }
842
- b().forEach((N) => {
843
- if (S.has(N))
844
- N.classList.add(fe.selecting);
843
+ b().forEach((E) => {
844
+ if (S.has(E))
845
+ E.classList.add(fe.selecting);
845
846
  else {
846
- const z = N.querySelector(".endOfContent");
847
- z && (N.appendChild(z), z.style.width = "", z.style.height = "", N.classList.remove(fe.selecting));
847
+ const F = E.querySelector(".endOfContent");
848
+ F && (E.appendChild(F), F.style.width = "", F.style.height = "", E.classList.remove(fe.selecting));
848
849
  }
849
850
  });
850
- const L = _.getRangeAt(0);
851
- let I = w && (L.compareBoundaryPoints(Range.END_TO_END, w) === 0 || L.compareBoundaryPoints(Range.START_TO_END, w) === 0) ? L.startContainer : L.endContainer;
851
+ const R = _.getRangeAt(0);
852
+ let I = w && (R.compareBoundaryPoints(Range.END_TO_END, w) === 0 || R.compareBoundaryPoints(Range.START_TO_END, w) === 0) ? R.startContainer : R.endContainer;
852
853
  I.nodeType === Node.TEXT_NODE && (I = I.parentNode);
853
- const O = (F = I.parentElement) == null ? void 0 : F.closest(
854
+ const O = (z = I.parentElement) == null ? void 0 : z.closest(
854
855
  fe["rp-text-layer"]
855
856
  ), A = O == null ? void 0 : O.querySelector(".endOfContent");
856
- A && O && (A.style.width = O.style.width, A.style.height = O.style.height, (R = I.parentElement) == null || R.insertBefore(A, I.nextSibling)), w = L.cloneRange();
857
+ A && O && (A.style.width = O.style.width, A.style.height = O.style.height, (L = I.parentElement) == null || L.insertBefore(A, I.nextSibling)), w = R.cloneRange();
857
858
  },
858
859
  { signal: u }
859
860
  );
@@ -861,9 +862,9 @@ const Sr = () => {
861
862
  var u;
862
863
  (u = C.current) == null || u.abort(), C.current = void 0;
863
864
  }), [b]);
864
- const y = E(() => {
865
+ const y = N(() => {
865
866
  r.current && r.current.classList.add(fe.selecting);
866
- }, []), g = E(() => {
867
+ }, []), g = N(() => {
867
868
  r.current && r.current.classList.remove(fe.selecting);
868
869
  }, []);
869
870
  return D(() => {
@@ -887,20 +888,20 @@ const Sr = () => {
887
888
  const u = r.current;
888
889
  return h.current && h.current.cancel(), p.page.getTextContent().then((s) => {
889
890
  const w = p.page.getViewport({ scale: 1 });
890
- return h.current = new Do.TextLayer({
891
+ return h.current = new zo.TextLayer({
891
892
  viewport: w,
892
893
  textContentSource: s,
893
894
  container: u
894
895
  }), m.current = s, u && (u.innerText = ""), h.current.render();
895
896
  }).then(() => {
896
- var S, L;
897
+ var S, R;
897
898
  [].slice.call(u.children).forEach((x) => {
898
899
  x.classList.add(fe["rp-text-layer-text"]), x.setAttribute("data-rp", "rp-text-layer-text");
899
900
  });
900
901
  const w = (S = h.current) == null ? void 0 : S.textDivs;
901
902
  w && m.current && v(m.current, w);
902
903
  const _ = document.createElement("div");
903
- _.className = "endOfContent", (L = r.current) == null || L.appendChild(_);
904
+ _.className = "endOfContent", (R = r.current) == null || R.appendChild(_);
904
905
  }).catch(() => {
905
906
  }), () => {
906
907
  var s;
@@ -923,12 +924,12 @@ const Sr = () => {
923
924
  onMouseUp: g
924
925
  }
925
926
  );
926
- }, Nr = {
927
+ }, Dr = {
927
928
  "rp-annotation-layer": "_rp-annotation-layer_1udza_1"
928
929
  };
929
- let Or = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
930
- const Dr = (t) => {
931
- const { pageNumber: e } = t, n = M(null), { pages: r, pdf: o } = ne(), i = M(), [c, l] = $(), { setFocusedPage: d, goToPage: h } = ce(), { scrollMode: m } = Ee(), { print: T } = et(), { download: f } = $n(), v = k(() => r.get(e), [r, e]), C = k(() => v == null ? void 0 : v.page.getViewport(), [v]);
930
+ let Ar = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
931
+ const zr = (t) => {
932
+ const { pageNumber: e } = t, n = k(null), { pages: r, pdf: o } = oe(), i = k(), [c, l] = $(), { setFocusedPage: d, goToPage: h } = ce(), { scrollMode: m } = Ee(), { print: T } = tt(), { download: f } = $n(), v = W(() => r.get(e), [r, e]), C = W(() => v == null ? void 0 : v.page.getViewport(), [v]);
932
933
  D(() => {
933
934
  i.current && (i.current.div.replaceChildren(), i.current = void 0);
934
935
  }, [o]), D(() => {
@@ -936,12 +937,12 @@ const Dr = (t) => {
936
937
  i.current = void 0, l(b), n.current && (n.current.innerText = "");
937
938
  });
938
939
  }, [v]);
939
- const P = E(
940
+ const P = N(
940
941
  (b) => {
941
- !c || !o || (Wo(b), Ho(b, o, c).then((y) => {
942
+ !c || !o || ($o(b), qo(b, o, c).then((y) => {
942
943
  var g, p;
943
944
  ((g = y == null ? void 0 : y.data) == null ? void 0 : g.action) === "Print" ? T() : ((p = y == null ? void 0 : y.data) == null ? void 0 : p.action) === "SaveAs" && f();
944
- }), m === te.PAGE_SCROLLING ? zt(b, c, o, (y) => d(y.pageIndex + 1)) : zt(b, c, o, (y) => h(y.pageIndex + 1)));
945
+ }), m === ne.PAGE_SCROLLING ? zt(b, c, o, (y) => d(y.pageIndex + 1)) : zt(b, c, o, (y) => h(y.pageIndex + 1)));
945
946
  },
946
947
  [o, c, h, d, m, T, f]
947
948
  );
@@ -960,17 +961,17 @@ const Dr = (t) => {
960
961
  const { annotationType: s } = u;
961
962
  switch (s) {
962
963
  case Nt.Link:
963
- qo(u);
964
+ Uo(u);
964
965
  break;
965
966
  case Nt.Widget:
966
- $o(u, b, y);
967
+ Go(u, b, y);
967
968
  break;
968
969
  }
969
970
  }
970
971
  const g = new AbortController();
971
972
  return (async () => {
972
973
  var w;
973
- i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new Mo({
974
+ i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new Wo({
974
975
  div: n.current,
975
976
  accessibilityManager: void 0,
976
977
  annotationCanvasMap: void 0,
@@ -990,14 +991,14 @@ const Dr = (t) => {
990
991
  div: n.current,
991
992
  viewport: b.clone({ dontFlip: !0 }),
992
993
  page: v.page,
993
- imageResourcesPath: Or,
994
+ imageResourcesPath: Ar,
994
995
  renderForms: !0,
995
- linkService: new ko(),
996
+ linkService: new Ho(),
996
997
  downloadManager: null,
997
998
  enableScripting: !1
998
999
  });
999
1000
  })().then(() => {
1000
- n.current && Go(n.current, P);
1001
+ n.current && Vo(n.current, P);
1001
1002
  }).catch((u) => {
1002
1003
  if (u !== "abort")
1003
1004
  throw u;
@@ -1009,14 +1010,14 @@ const Dr = (t) => {
1009
1010
  {
1010
1011
  "data-rp": `page-${e}-annotationLayer`,
1011
1012
  style: { width: `${C == null ? void 0 : C.width}px`, height: `${C == null ? void 0 : C.height}px` },
1012
- className: Nr["rp-annotation-layer"],
1013
+ className: Dr["rp-annotation-layer"],
1013
1014
  ref: n
1014
1015
  }
1015
1016
  );
1016
- }, Ar = {
1017
+ }, Fr = {
1017
1018
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1018
- }, zr = ({ pageNumber: t, viewport: e }) => {
1019
- const [n, r] = $(), { pages: o } = ne(), { highlightKeywords: i } = fo(), c = !0, l = M(null), [d, h] = $(null), [m, T] = $([]);
1019
+ }, Mr = ({ pageNumber: t, viewport: e }) => {
1020
+ const [n, r] = $(), { pages: o } = oe(), { highlightKeywords: i } = go(), c = !0, l = k(null), [d, h] = $(null), [m, T] = $([]);
1020
1021
  D(() => {
1021
1022
  l.current && h(l.current.parentElement);
1022
1023
  }, [l]), D(() => {
@@ -1028,10 +1029,10 @@ const Dr = (t) => {
1028
1029
  r(u);
1029
1030
  })();
1030
1031
  }, [o, t]);
1031
- const f = k(() => i ? i.map((g) => {
1032
+ const f = W(() => i ? i.map((g) => {
1032
1033
  var p, u;
1033
1034
  return {
1034
- ...Vo(g.keyword, (p = g.options) == null ? void 0 : p.matchCase, (u = g.options) == null ? void 0 : u.wholeWords),
1035
+ ...Bo(g.keyword, (p = g.options) == null ? void 0 : p.matchCase, (u = g.options) == null ? void 0 : u.wholeWords),
1035
1036
  color: g.highlightColor
1036
1037
  };
1037
1038
  }) : [], [i]);
@@ -1045,9 +1046,9 @@ const Dr = (t) => {
1045
1046
  s(w);
1046
1047
  return;
1047
1048
  }
1048
- new MutationObserver((S, L) => {
1049
+ new MutationObserver((S, R) => {
1049
1050
  const x = g.querySelector(u);
1050
- x && (s(x), L.disconnect());
1051
+ x && (s(x), R.disconnect());
1051
1052
  }).observe(g, { childList: !0, subtree: !0 });
1052
1053
  });
1053
1054
  }
@@ -1073,21 +1074,21 @@ const Dr = (t) => {
1073
1074
  const w = document.createRange(), _ = u.firstChild;
1074
1075
  if (!_ || _.nodeType !== Node.TEXT_NODE)
1075
1076
  return null;
1076
- const S = ((B = _.textContent) == null ? void 0 : B.length) ?? 0, L = s[0].charIdxInSpan, x = s.length === 1 ? L : s[s.length - 1].charIdxInSpan;
1077
- if (L > S || x + 1 > S)
1077
+ const S = ((B = _.textContent) == null ? void 0 : B.length) ?? 0, R = s[0].charIdxInSpan, x = s.length === 1 ? R : s[s.length - 1].charIdxInSpan;
1078
+ if (R > S || x + 1 > S)
1078
1079
  return null;
1079
- w.setStart(_, L), w.setEnd(_, x + 1);
1080
+ w.setStart(_, R), w.setEnd(_, x + 1);
1080
1081
  const I = document.createElement("span");
1081
1082
  I.style.width = "auto", w.surroundContents(I);
1082
- const O = I.getBoundingClientRect(), A = g.getBoundingClientRect(), F = A.height, R = A.width, N = 100 * (O.left - A.left) / R, z = 100 * (O.top - A.top) / F, W = 100 * O.height / F, G = 100 * O.width / R;
1083
- return Bo(I), {
1083
+ const O = I.getBoundingClientRect(), A = g.getBoundingClientRect(), z = A.height, L = A.width, E = 100 * (O.left - A.left) / L, F = 100 * (O.top - A.top) / z, M = 100 * O.height / z, q = 100 * O.width / L;
1084
+ return Ko(I), {
1084
1085
  keywordStr: p,
1085
- left: N,
1086
- top: z,
1087
- height: W,
1088
- width: G,
1089
- pageHeight: F,
1090
- pageWidth: R
1086
+ left: E,
1087
+ top: F,
1088
+ height: M,
1089
+ width: q,
1090
+ pageHeight: z,
1091
+ pageWidth: L
1091
1092
  };
1092
1093
  };
1093
1094
  async function b(g, p) {
@@ -1097,8 +1098,8 @@ const Dr = (t) => {
1097
1098
  const s = await C(u);
1098
1099
  if (s.length) {
1099
1100
  const w = s.map((S) => S.tagName === "BR" ? " " : S.textContent).reduce(
1100
- (S, L, x) => S.concat(
1101
- L.split("").map((I, O) => ({
1101
+ (S, R, x) => S.concat(
1102
+ R.split("").map((I, O) => ({
1102
1103
  char: I,
1103
1104
  charIdxInSpan: O,
1104
1105
  spanIdx: x
@@ -1119,47 +1120,47 @@ const Dr = (t) => {
1119
1120
  const w = p.length;
1120
1121
  if (!s.length || !w)
1121
1122
  return [];
1122
- const _ = [], S = s.map((L) => L.char).join("");
1123
- return f.forEach((L) => {
1124
- const { keyword: x, regExp: I, wholeWords: O, color: A } = L, F = x;
1125
- if (!F.trim())
1123
+ const _ = [], S = s.map((R) => R.char).join("");
1124
+ return f.forEach((R) => {
1125
+ const { keyword: x, regExp: I, wholeWords: O, color: A } = R, z = x;
1126
+ if (!z.trim())
1126
1127
  return;
1127
- const R = I.flags.indexOf("g") === -1 ? new RegExp(I, `${I.flags}g`) : I;
1128
- let N;
1129
- const z = [];
1130
- for (; (N = R.exec(S)) !== null; )
1131
- O && !ho(S, N.index, N[0].length) || z.push({
1132
- keyword: R,
1133
- startIndex: N.index,
1134
- endIndex: R.lastIndex
1128
+ const L = I.flags.indexOf("g") === -1 ? new RegExp(I, `${I.flags}g`) : I;
1129
+ let E;
1130
+ const F = [];
1131
+ for (; (E = L.exec(S)) !== null; )
1132
+ O && !mo(S, E.index, E[0].length) || F.push({
1133
+ keyword: L,
1134
+ startIndex: E.index,
1135
+ endIndex: L.lastIndex
1135
1136
  });
1136
- const W = z.map((G) => ({
1137
- keyword: G.keyword,
1138
- indexes: s.slice(G.startIndex, G.endIndex),
1137
+ const M = F.map((q) => ({
1138
+ keyword: q.keyword,
1139
+ indexes: s.slice(q.startIndex, q.endIndex),
1139
1140
  color: A
1140
1141
  }));
1141
- for (const G of W) {
1142
- const B = G.indexes.reduce(
1143
- (K, V) => (K[V.spanIdx] = (K[V.spanIdx] || []).concat([V]), K),
1142
+ for (const q of M) {
1143
+ const B = q.indexes.reduce(
1144
+ (j, U) => (j[U.spanIdx] = (j[U.spanIdx] || []).concat([U]), j),
1144
1145
  {}
1145
1146
  );
1146
- for (const K of Object.values(B))
1147
- if (K.length !== 1 || K[0].char.trim() !== "") {
1148
- const V = K, J = u[V[0].spanIdx], q = P(
1147
+ for (const j of Object.values(B))
1148
+ if (j.length !== 1 || j[0].char.trim() !== "") {
1149
+ const U = j, J = u[U[0].spanIdx], G = P(
1149
1150
  g,
1150
- F,
1151
+ z,
1151
1152
  J,
1152
- V
1153
+ U
1153
1154
  );
1154
- if (q) {
1155
- const { left: X, top: oe } = q;
1156
- if (_.find((Y) => Y.left === X && Y.top === oe))
1155
+ if (G) {
1156
+ const { left: Z, top: re } = G;
1157
+ if (_.find((ie) => ie.left === Z && ie.top === re))
1157
1158
  continue;
1158
- _.push({ ...q, highlightColor: G.color });
1159
+ _.push({ ...G, highlightColor: q.color });
1159
1160
  }
1160
1161
  }
1161
1162
  }
1162
- }), _.sort(Uo), _;
1163
+ }), _.sort(jo), _;
1163
1164
  };
1164
1165
  return D(() => {
1165
1166
  (async () => {
@@ -1170,10 +1171,10 @@ const Dr = (t) => {
1170
1171
  console.error(p);
1171
1172
  }
1172
1173
  })();
1173
- }, [c, i, t, n, e]), /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, p) => /* @__PURE__ */ a(
1174
+ }, [c, i, t, n, e]), /* @__PURE__ */ a(ue, { children: /* @__PURE__ */ a("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, p) => /* @__PURE__ */ a(
1174
1175
  "div",
1175
1176
  {
1176
- className: Ar["rp-text-highlight"],
1177
+ className: Fr["rp-text-highlight"],
1177
1178
  style: {
1178
1179
  top: `${g.top}%`,
1179
1180
  left: `${g.left}%`,
@@ -1184,13 +1185,13 @@ const Dr = (t) => {
1184
1185
  },
1185
1186
  p
1186
1187
  )) }) });
1187
- }, yt = Je((t, e) => {
1188
- const { pageNumber: n, style: r, ...o } = t, { pages: i } = ne(), { pageRotate: c } = Ye(), { textLayer: l } = io(), { currentZoom: d } = wt(), h = M(i.get(n)), [m, T] = $(!1), f = M(null), [v, C] = $({
1188
+ }, yt = et((t, e) => {
1189
+ const { pageNumber: n, style: r, ...o } = t, { pages: i } = oe(), { pageRotate: c } = Je(), { textLayer: l } = so(), { currentZoom: d } = wt(), h = k(i.get(n)), [m, T] = $(!1), f = k(null), [v, C] = $({
1189
1190
  width: 0,
1190
1191
  height: 0
1191
1192
  });
1192
1193
  tn(e, () => f.current);
1193
- const P = k(() => h.current ? c[n] : 0, [n, c]);
1194
+ const P = W(() => h.current ? c[n] : 0, [n, c]);
1194
1195
  D(() => {
1195
1196
  if (i && (h.current = i.get(n), h.current)) {
1196
1197
  const p = h.current.page.getViewport({
@@ -1200,7 +1201,7 @@ const Dr = (t) => {
1200
1201
  C(p);
1201
1202
  }
1202
1203
  }, [i, n, P, d]);
1203
- const b = k(() => {
1204
+ const b = W(() => {
1204
1205
  switch (P) {
1205
1206
  case 90:
1206
1207
  return `${v.width / 2}px ${v.width / 2}px`;
@@ -1210,9 +1211,9 @@ const Dr = (t) => {
1210
1211
  default:
1211
1212
  return "center";
1212
1213
  }
1213
- }, [P, v]), y = E(() => {
1214
+ }, [P, v]), y = N(() => {
1214
1215
  T(!0);
1215
- }, []), g = E(() => {
1216
+ }, []), g = N(() => {
1216
1217
  T(!1);
1217
1218
  }, []);
1218
1219
  return /* @__PURE__ */ a(
@@ -1238,12 +1239,12 @@ const Dr = (t) => {
1238
1239
  },
1239
1240
  className: st["rp-page"],
1240
1241
  children: [
1241
- /* @__PURE__ */ a(Rr, { onLoading: y, onLoaded: g, pageNumber: n }),
1242
+ /* @__PURE__ */ a(Er, { onLoading: y, onLoaded: g, pageNumber: n }),
1242
1243
  m && /* @__PURE__ */ a("div", { className: st["rp-loader-wrapper"], children: /* @__PURE__ */ a(_t, {}) }),
1243
- /* @__PURE__ */ a(jo, { pageNumber: n }),
1244
- l && /* @__PURE__ */ a(Er, { pageNumber: n }),
1245
- /* @__PURE__ */ a(zr, { pageNumber: n, viewport: v }),
1246
- /* @__PURE__ */ a(Dr, { pageNumber: n })
1244
+ /* @__PURE__ */ a(Zo, { pageNumber: n }),
1245
+ l && /* @__PURE__ */ a(Or, { pageNumber: n }),
1246
+ /* @__PURE__ */ a(Mr, { pageNumber: n, viewport: v }),
1247
+ /* @__PURE__ */ a(zr, { pageNumber: n })
1247
1248
  ]
1248
1249
  }
1249
1250
  )
@@ -1270,25 +1271,25 @@ function mt(t, e) {
1270
1271
  return n.__proto__ = r, n;
1271
1272
  }, mt(t, e);
1272
1273
  }
1273
- function Fr(t, e) {
1274
+ function kr(t, e) {
1274
1275
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, mt(t, e);
1275
1276
  }
1276
1277
  var Wt = Number.isNaN || function(e) {
1277
1278
  return typeof e == "number" && e !== e;
1278
1279
  };
1279
- function Mr(t, e) {
1280
+ function Wr(t, e) {
1280
1281
  return !!(t === e || Wt(t) && Wt(e));
1281
1282
  }
1282
- function kr(t, e) {
1283
+ function Hr(t, e) {
1283
1284
  if (t.length !== e.length)
1284
1285
  return !1;
1285
1286
  for (var n = 0; n < t.length; n++)
1286
- if (!Mr(t[n], e[n]))
1287
+ if (!Wr(t[n], e[n]))
1287
1288
  return !1;
1288
1289
  return !0;
1289
1290
  }
1290
1291
  function ct(t, e) {
1291
- e === void 0 && (e = kr);
1292
+ e === void 0 && (e = Hr);
1292
1293
  var n, r = [], o, i = !1;
1293
1294
  function c() {
1294
1295
  for (var l = [], d = 0; d < arguments.length; d++)
@@ -1309,7 +1310,7 @@ function Ht(t, e) {
1309
1310
  }
1310
1311
  return n;
1311
1312
  }
1312
- var Wr = typeof performance == "object" && typeof performance.now == "function", $t = Wr ? function() {
1313
+ var $r = typeof performance == "object" && typeof performance.now == "function", $t = $r ? function() {
1313
1314
  return performance.now();
1314
1315
  } : function() {
1315
1316
  return Date.now();
@@ -1317,7 +1318,7 @@ var Wr = typeof performance == "object" && typeof performance.now == "function",
1317
1318
  function qt(t) {
1318
1319
  cancelAnimationFrame(t.id);
1319
1320
  }
1320
- function Hr(t, e) {
1321
+ function qr(t, e) {
1321
1322
  var n = $t();
1322
1323
  function r() {
1323
1324
  $t() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
@@ -1328,7 +1329,7 @@ function Hr(t, e) {
1328
1329
  return o;
1329
1330
  }
1330
1331
  var lt = -1;
1331
- function $r(t) {
1332
+ function Gr(t) {
1332
1333
  if (t === void 0 && (t = !1), lt === -1 || t) {
1333
1334
  var e = document.createElement("div"), n = e.style;
1334
1335
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), lt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1345,17 +1346,17 @@ function Gt(t) {
1345
1346
  }
1346
1347
  return De;
1347
1348
  }
1348
- var qr = 150, Gr = function(e) {
1349
+ var Ur = 150, Vr = function(e) {
1349
1350
  var n = e.columnIndex;
1350
1351
  e.data;
1351
1352
  var r = e.rowIndex;
1352
1353
  return r + ":" + n;
1353
- }, Ue = null, Be = null, je = null;
1354
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ue = /* @__PURE__ */ new WeakSet(), Be = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet());
1355
- function Vr(t) {
1354
+ }, Be = null, je = null, Ke = null;
1355
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Be = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet(), Ke = /* @__PURE__ */ new WeakSet());
1356
+ function Br(t) {
1356
1357
  var e, n = t.getColumnOffset, r = t.getColumnStartIndexForOffset, o = t.getColumnStopIndexForStartIndex, i = t.getColumnWidth, c = t.getEstimatedTotalHeight, l = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, h = t.getOffsetForRowAndAlignment, m = t.getRowHeight, T = t.getRowOffset, f = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, C = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, b = t.validateProps;
1357
1358
  return e = /* @__PURE__ */ function(y) {
1358
- Fr(g, y);
1359
+ kr(g, y);
1359
1360
  function g(u) {
1360
1361
  var s;
1361
1362
  return s = y.call(this, u) || this, s._instanceProps = C(s.props, kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
@@ -1366,66 +1367,66 @@ function Vr(t) {
1366
1367
  scrollTop: typeof s.props.initialScrollTop == "number" ? s.props.initialScrollTop : 0,
1367
1368
  scrollUpdateWasRequested: !1,
1368
1369
  verticalScrollDirection: "forward"
1369
- }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ct(function(w, _, S, L, x, I, O, A) {
1370
+ }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ct(function(w, _, S, R, x, I, O, A) {
1370
1371
  return s.props.onItemsRendered({
1371
1372
  overscanColumnStartIndex: w,
1372
1373
  overscanColumnStopIndex: _,
1373
1374
  overscanRowStartIndex: S,
1374
- overscanRowStopIndex: L,
1375
+ overscanRowStopIndex: R,
1375
1376
  visibleColumnStartIndex: x,
1376
1377
  visibleColumnStopIndex: I,
1377
1378
  visibleRowStartIndex: O,
1378
1379
  visibleRowStopIndex: A
1379
1380
  });
1380
- }), s._callOnScroll = void 0, s._callOnScroll = ct(function(w, _, S, L, x) {
1381
+ }), s._callOnScroll = void 0, s._callOnScroll = ct(function(w, _, S, R, x) {
1381
1382
  return s.props.onScroll({
1382
1383
  horizontalScrollDirection: S,
1383
1384
  scrollLeft: w,
1384
1385
  scrollTop: _,
1385
- verticalScrollDirection: L,
1386
+ verticalScrollDirection: R,
1386
1387
  scrollUpdateWasRequested: x
1387
1388
  });
1388
1389
  }), s._getItemStyle = void 0, s._getItemStyle = function(w, _) {
1389
- var S = s.props, L = S.columnWidth, x = S.direction, I = S.rowHeight, O = s._getItemStyleCache(P && L, P && x, P && I), A = w + ":" + _, F;
1390
+ var S = s.props, R = S.columnWidth, x = S.direction, I = S.rowHeight, O = s._getItemStyleCache(P && R, P && x, P && I), A = w + ":" + _, z;
1390
1391
  if (O.hasOwnProperty(A))
1391
- F = O[A];
1392
+ z = O[A];
1392
1393
  else {
1393
- var R = n(s.props, _, s._instanceProps), N = x === "rtl";
1394
- O[A] = F = {
1394
+ var L = n(s.props, _, s._instanceProps), E = x === "rtl";
1395
+ O[A] = z = {
1395
1396
  position: "absolute",
1396
- left: N ? void 0 : R,
1397
- right: N ? R : void 0,
1397
+ left: E ? void 0 : L,
1398
+ right: E ? L : void 0,
1398
1399
  top: T(s.props, w, s._instanceProps),
1399
1400
  height: m(s.props, w, s._instanceProps),
1400
1401
  width: i(s.props, _, s._instanceProps)
1401
1402
  };
1402
1403
  }
1403
- return F;
1404
+ return z;
1404
1405
  }, s._getItemStyleCache = void 0, s._getItemStyleCache = ct(function(w, _, S) {
1405
1406
  return {};
1406
1407
  }), s._onScroll = function(w) {
1407
- var _ = w.currentTarget, S = _.clientHeight, L = _.clientWidth, x = _.scrollLeft, I = _.scrollTop, O = _.scrollHeight, A = _.scrollWidth;
1408
- s.setState(function(F) {
1409
- if (F.scrollLeft === x && F.scrollTop === I)
1408
+ var _ = w.currentTarget, S = _.clientHeight, R = _.clientWidth, x = _.scrollLeft, I = _.scrollTop, O = _.scrollHeight, A = _.scrollWidth;
1409
+ s.setState(function(z) {
1410
+ if (z.scrollLeft === x && z.scrollTop === I)
1410
1411
  return null;
1411
- var R = s.props.direction, N = x;
1412
- if (R === "rtl")
1412
+ var L = s.props.direction, E = x;
1413
+ if (L === "rtl")
1413
1414
  switch (Gt()) {
1414
1415
  case "negative":
1415
- N = -x;
1416
+ E = -x;
1416
1417
  break;
1417
1418
  case "positive-descending":
1418
- N = A - L - x;
1419
+ E = A - R - x;
1419
1420
  break;
1420
1421
  }
1421
- N = Math.max(0, Math.min(N, A - L));
1422
- var z = Math.max(0, Math.min(I, O - S));
1422
+ E = Math.max(0, Math.min(E, A - R));
1423
+ var F = Math.max(0, Math.min(I, O - S));
1423
1424
  return {
1424
1425
  isScrolling: !0,
1425
- horizontalScrollDirection: F.scrollLeft < x ? "forward" : "backward",
1426
- scrollLeft: N,
1427
- scrollTop: z,
1428
- verticalScrollDirection: F.scrollTop < I ? "forward" : "backward",
1426
+ horizontalScrollDirection: z.scrollLeft < x ? "forward" : "backward",
1427
+ scrollLeft: E,
1428
+ scrollTop: F,
1429
+ verticalScrollDirection: z.scrollTop < I ? "forward" : "backward",
1429
1430
  scrollUpdateWasRequested: !1
1430
1431
  };
1431
1432
  }, s._resetIsScrollingDebounced);
@@ -1433,7 +1434,7 @@ function Vr(t) {
1433
1434
  var _ = s.props.outerRef;
1434
1435
  s._outerRef = w, typeof _ == "function" ? _(w) : _ != null && typeof _ == "object" && _.hasOwnProperty("current") && (_.current = w);
1435
1436
  }, s._resetIsScrollingDebounced = function() {
1436
- s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Hr(s._resetIsScrolling, qr);
1437
+ s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = qr(s._resetIsScrolling, Ur);
1437
1438
  }, s._resetIsScrolling = function() {
1438
1439
  s._resetIsScrollingTimeoutId = null, s.setState({
1439
1440
  isScrolling: !1
@@ -1443,7 +1444,7 @@ function Vr(t) {
1443
1444
  }, s;
1444
1445
  }
1445
1446
  g.getDerivedStateFromProps = function(s, w) {
1446
- return Ur(s, w), b(s), null;
1447
+ return jr(s, w), b(s), null;
1447
1448
  };
1448
1449
  var p = g.prototype;
1449
1450
  return p.scrollTo = function(s) {
@@ -1458,12 +1459,12 @@ function Vr(t) {
1458
1459
  };
1459
1460
  }, this._resetIsScrollingDebounced);
1460
1461
  }, p.scrollToItem = function(s) {
1461
- var w = s.align, _ = w === void 0 ? "auto" : w, S = s.columnIndex, L = s.rowIndex, x = this.props, I = x.columnCount, O = x.height, A = x.rowCount, F = x.width, R = this.state, N = R.scrollLeft, z = R.scrollTop, W = $r();
1462
- S !== void 0 && (S = Math.max(0, Math.min(S, I - 1))), L !== void 0 && (L = Math.max(0, Math.min(L, A - 1)));
1463
- var G = c(this.props, this._instanceProps), B = l(this.props, this._instanceProps), K = B > F ? W : 0, V = G > O ? W : 0;
1462
+ var w = s.align, _ = w === void 0 ? "auto" : w, S = s.columnIndex, R = s.rowIndex, x = this.props, I = x.columnCount, O = x.height, A = x.rowCount, z = x.width, L = this.state, E = L.scrollLeft, F = L.scrollTop, M = Gr();
1463
+ S !== void 0 && (S = Math.max(0, Math.min(S, I - 1))), R !== void 0 && (R = Math.max(0, Math.min(R, A - 1)));
1464
+ var q = c(this.props, this._instanceProps), B = l(this.props, this._instanceProps), j = B > z ? M : 0, U = q > O ? M : 0;
1464
1465
  this.scrollTo({
1465
- scrollLeft: S !== void 0 ? d(this.props, S, _, N, this._instanceProps, V) : N,
1466
- scrollTop: L !== void 0 ? h(this.props, L, _, z, this._instanceProps, K) : z
1466
+ scrollLeft: S !== void 0 ? d(this.props, S, _, E, this._instanceProps, U) : E,
1467
+ scrollTop: R !== void 0 ? h(this.props, R, _, F, this._instanceProps, j) : F
1467
1468
  });
1468
1469
  }, p.componentDidMount = function() {
1469
1470
  var s = this.props, w = s.initialScrollLeft, _ = s.initialScrollTop;
@@ -1473,8 +1474,8 @@ function Vr(t) {
1473
1474
  }
1474
1475
  this._callPropsCallbacks();
1475
1476
  }, p.componentDidUpdate = function() {
1476
- var s = this.props.direction, w = this.state, _ = w.scrollLeft, S = w.scrollTop, L = w.scrollUpdateWasRequested;
1477
- if (L && this._outerRef != null) {
1477
+ var s = this.props.direction, w = this.state, _ = w.scrollLeft, S = w.scrollTop, R = w.scrollUpdateWasRequested;
1478
+ if (R && this._outerRef != null) {
1478
1479
  var x = this._outerRef;
1479
1480
  if (s === "rtl")
1480
1481
  switch (Gt()) {
@@ -1497,78 +1498,78 @@ function Vr(t) {
1497
1498
  }, p.componentWillUnmount = function() {
1498
1499
  this._resetIsScrollingTimeoutId !== null && qt(this._resetIsScrollingTimeoutId);
1499
1500
  }, p.render = function() {
1500
- var s = this.props, w = s.children, _ = s.className, S = s.columnCount, L = s.direction, x = s.height, I = s.innerRef, O = s.innerElementType, A = s.innerTagName, F = s.itemData, R = s.itemKey, N = R === void 0 ? Gr : R, z = s.outerElementType, W = s.outerTagName, G = s.rowCount, B = s.style, K = s.useIsScrolling, V = s.width, J = this.state.isScrolling, q = this._getHorizontalRangeToRender(), X = q[0], oe = q[1], re = this._getVerticalRangeToRender(), Y = re[0], ie = re[1], de = [];
1501
- if (S > 0 && G)
1502
- for (var Pe = Y; Pe <= ie; Pe++)
1503
- for (var ve = X; ve <= oe; ve++)
1504
- de.push(Ve(w, {
1505
- columnIndex: ve,
1506
- data: F,
1507
- isScrolling: K ? J : void 0,
1508
- key: N({
1509
- columnIndex: ve,
1510
- data: F,
1511
- rowIndex: Pe
1501
+ var s = this.props, w = s.children, _ = s.className, S = s.columnCount, R = s.direction, x = s.height, I = s.innerRef, O = s.innerElementType, A = s.innerTagName, z = s.itemData, L = s.itemKey, E = L === void 0 ? Vr : L, F = s.outerElementType, M = s.outerTagName, q = s.rowCount, B = s.style, j = s.useIsScrolling, U = s.width, J = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], re = G[1], ee = this._getVerticalRangeToRender(), ie = ee[0], Y = ee[1], ve = [];
1502
+ if (S > 0 && q)
1503
+ for (var he = ie; he <= Y; he++)
1504
+ for (var Pe = Z; Pe <= re; Pe++)
1505
+ ve.push(Ve(w, {
1506
+ columnIndex: Pe,
1507
+ data: z,
1508
+ isScrolling: j ? J : void 0,
1509
+ key: E({
1510
+ columnIndex: Pe,
1511
+ data: z,
1512
+ rowIndex: he
1512
1513
  }),
1513
- rowIndex: Pe,
1514
- style: this._getItemStyle(Pe, ve)
1514
+ rowIndex: he,
1515
+ style: this._getItemStyle(he, Pe)
1515
1516
  }));
1516
- var tt = c(this.props, this._instanceProps), nt = l(this.props, this._instanceProps);
1517
- return Ve(z || W || "div", {
1517
+ var Ue = c(this.props, this._instanceProps), nt = l(this.props, this._instanceProps);
1518
+ return Ve(F || M || "div", {
1518
1519
  className: _,
1519
1520
  onScroll: this._onScroll,
1520
1521
  ref: this._outerRefSetter,
1521
1522
  style: ft({
1522
1523
  position: "relative",
1523
1524
  height: x,
1524
- width: V,
1525
+ width: U,
1525
1526
  overflow: "auto",
1526
1527
  WebkitOverflowScrolling: "touch",
1527
1528
  willChange: "transform",
1528
- direction: L
1529
+ direction: R
1529
1530
  }, B)
1530
1531
  }, Ve(O || A || "div", {
1531
- children: de,
1532
+ children: ve,
1532
1533
  ref: I,
1533
1534
  style: {
1534
- height: tt,
1535
+ height: Ue,
1535
1536
  pointerEvents: J ? "none" : void 0,
1536
1537
  width: nt
1537
1538
  }
1538
1539
  }));
1539
1540
  }, p._callPropsCallbacks = function() {
1540
- var s = this.props, w = s.columnCount, _ = s.onItemsRendered, S = s.onScroll, L = s.rowCount;
1541
- if (typeof _ == "function" && w > 0 && L > 0) {
1542
- var x = this._getHorizontalRangeToRender(), I = x[0], O = x[1], A = x[2], F = x[3], R = this._getVerticalRangeToRender(), N = R[0], z = R[1], W = R[2], G = R[3];
1543
- this._callOnItemsRendered(I, O, N, z, A, F, W, G);
1541
+ var s = this.props, w = s.columnCount, _ = s.onItemsRendered, S = s.onScroll, R = s.rowCount;
1542
+ if (typeof _ == "function" && w > 0 && R > 0) {
1543
+ var x = this._getHorizontalRangeToRender(), I = x[0], O = x[1], A = x[2], z = x[3], L = this._getVerticalRangeToRender(), E = L[0], F = L[1], M = L[2], q = L[3];
1544
+ this._callOnItemsRendered(I, O, E, F, A, z, M, q);
1544
1545
  }
1545
1546
  if (typeof S == "function") {
1546
- var B = this.state, K = B.horizontalScrollDirection, V = B.scrollLeft, J = B.scrollTop, q = B.scrollUpdateWasRequested, X = B.verticalScrollDirection;
1547
- this._callOnScroll(V, J, K, X, q);
1547
+ var B = this.state, j = B.horizontalScrollDirection, U = B.scrollLeft, J = B.scrollTop, G = B.scrollUpdateWasRequested, Z = B.verticalScrollDirection;
1548
+ this._callOnScroll(U, J, j, Z, G);
1548
1549
  }
1549
1550
  }, p._getHorizontalRangeToRender = function() {
1550
- var s = this.props, w = s.columnCount, _ = s.overscanColumnCount, S = s.overscanColumnsCount, L = s.overscanCount, x = s.rowCount, I = this.state, O = I.horizontalScrollDirection, A = I.isScrolling, F = I.scrollLeft, R = _ || S || L || 1;
1551
+ var s = this.props, w = s.columnCount, _ = s.overscanColumnCount, S = s.overscanColumnsCount, R = s.overscanCount, x = s.rowCount, I = this.state, O = I.horizontalScrollDirection, A = I.isScrolling, z = I.scrollLeft, L = _ || S || R || 1;
1551
1552
  if (w === 0 || x === 0)
1552
1553
  return [0, 0, 0, 0];
1553
- var N = r(this.props, F, this._instanceProps), z = o(this.props, N, F, this._instanceProps), W = !A || O === "backward" ? Math.max(1, R) : 1, G = !A || O === "forward" ? Math.max(1, R) : 1;
1554
- return [Math.max(0, N - W), Math.max(0, Math.min(w - 1, z + G)), N, z];
1554
+ var E = r(this.props, z, this._instanceProps), F = o(this.props, E, z, this._instanceProps), M = !A || O === "backward" ? Math.max(1, L) : 1, q = !A || O === "forward" ? Math.max(1, L) : 1;
1555
+ return [Math.max(0, E - M), Math.max(0, Math.min(w - 1, F + q)), E, F];
1555
1556
  }, p._getVerticalRangeToRender = function() {
1556
- var s = this.props, w = s.columnCount, _ = s.overscanCount, S = s.overscanRowCount, L = s.overscanRowsCount, x = s.rowCount, I = this.state, O = I.isScrolling, A = I.verticalScrollDirection, F = I.scrollTop, R = S || L || _ || 1;
1557
+ var s = this.props, w = s.columnCount, _ = s.overscanCount, S = s.overscanRowCount, R = s.overscanRowsCount, x = s.rowCount, I = this.state, O = I.isScrolling, A = I.verticalScrollDirection, z = I.scrollTop, L = S || R || _ || 1;
1557
1558
  if (w === 0 || x === 0)
1558
1559
  return [0, 0, 0, 0];
1559
- var N = f(this.props, F, this._instanceProps), z = v(this.props, N, F, this._instanceProps), W = !O || A === "backward" ? Math.max(1, R) : 1, G = !O || A === "forward" ? Math.max(1, R) : 1;
1560
- return [Math.max(0, N - W), Math.max(0, Math.min(x - 1, z + G)), N, z];
1560
+ var E = f(this.props, z, this._instanceProps), F = v(this.props, E, z, this._instanceProps), M = !O || A === "backward" ? Math.max(1, L) : 1, q = !O || A === "forward" ? Math.max(1, L) : 1;
1561
+ return [Math.max(0, E - M), Math.max(0, Math.min(x - 1, F + q)), E, F];
1561
1562
  }, g;
1562
- }(Jn), e.defaultProps = {
1563
+ }(eo), e.defaultProps = {
1563
1564
  direction: "ltr",
1564
1565
  itemData: void 0,
1565
1566
  useIsScrolling: !1
1566
1567
  }, e;
1567
1568
  }
1568
- var Ur = function(e, n) {
1569
+ var jr = function(e, n) {
1569
1570
  var r = e.children, o = e.direction, i = e.height, c = e.innerTagName, l = e.outerTagName, d = e.overscanColumnsCount, h = e.overscanCount, m = e.overscanRowsCount, T = e.width, f = n.instance;
1570
1571
  if (process.env.NODE_ENV !== "production") {
1571
- if (typeof h == "number" && Ue && !Ue.has(f) && (Ue.add(f), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && Be && !Be.has(f) && (Be.add(f), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || l != null) && je && !je.has(f) && (je.add(f), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1572
+ if (typeof h == "number" && Be && !Be.has(f) && (Be.add(f), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && je && !je.has(f) && (je.add(f), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || l != null) && Ke && !Ke.has(f) && (Ke.add(f), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1572
1573
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1573
1574
  switch (o) {
1574
1575
  case "ltr":
@@ -1582,7 +1583,7 @@ var Ur = function(e, n) {
1582
1583
  if (typeof i != "number")
1583
1584
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
1584
1585
  }
1585
- }, Vt = 50, Pn = function(e, n) {
1586
+ }, Ut = 50, Pn = function(e, n) {
1586
1587
  var r = e.rowCount, o = n.rowMetadataMap, i = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, l = 0;
1587
1588
  if (c >= r && (c = r - 1), c >= 0) {
1588
1589
  var d = o[c];
@@ -1616,11 +1617,11 @@ var Ur = function(e, n) {
1616
1617
  e === "column" ? o.lastMeasuredColumnIndex = r : o.lastMeasuredRowIndex = r;
1617
1618
  }
1618
1619
  return i[r];
1619
- }, Ut = function(e, n, r, o) {
1620
+ }, Vt = function(e, n, r, o) {
1620
1621
  var i, c;
1621
1622
  e === "column" ? (i = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (i = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1622
1623
  var l = c > 0 ? i[c].offset : 0;
1623
- return l >= o ? Sn(e, n, r, c, 0, o) : Br(e, n, r, Math.max(0, c), o);
1624
+ return l >= o ? Sn(e, n, r, c, 0, o) : Kr(e, n, r, Math.max(0, c), o);
1624
1625
  }, Sn = function(e, n, r, o, i, c) {
1625
1626
  for (; i <= o; ) {
1626
1627
  var l = i + Math.floor((o - i) / 2), d = me(e, n, l, r).offset;
@@ -1629,7 +1630,7 @@ var Ur = function(e, n) {
1629
1630
  d < c ? i = l + 1 : d > c && (o = l - 1);
1630
1631
  }
1631
1632
  return i > 0 ? i - 1 : 0;
1632
- }, Br = function(e, n, r, o, i) {
1633
+ }, Kr = function(e, n, r, o, i) {
1633
1634
  for (var c = e === "column" ? n.columnCount : n.rowCount, l = 1; o < c && me(e, n, o, r).offset < i; )
1634
1635
  o += l, l *= 2;
1635
1636
  return Sn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
@@ -1646,12 +1647,12 @@ var Ur = function(e, n) {
1646
1647
  default:
1647
1648
  return i >= f && i <= T ? i : f > T || i < f ? f : T;
1648
1649
  }
1649
- }, jr = /* @__PURE__ */ Vr({
1650
+ }, Zr = /* @__PURE__ */ Br({
1650
1651
  getColumnOffset: function(e, n, r) {
1651
1652
  return me("column", e, n, r).offset;
1652
1653
  },
1653
1654
  getColumnStartIndexForOffset: function(e, n, r) {
1654
- return Ut("column", e, r, n);
1655
+ return Vt("column", e, r, n);
1655
1656
  },
1656
1657
  getColumnStopIndexForStartIndex: function(e, n, r, o) {
1657
1658
  for (var i = e.columnCount, c = e.width, l = me("column", e, n, o), d = r + c, h = l.offset + l.size, m = n; m < i - 1 && h < d; )
@@ -1676,7 +1677,7 @@ var Ur = function(e, n) {
1676
1677
  return r.rowMetadataMap[n].size;
1677
1678
  },
1678
1679
  getRowStartIndexForOffset: function(e, n, r) {
1679
- return Ut("row", e, r, n);
1680
+ return Vt("row", e, r, n);
1680
1681
  },
1681
1682
  getRowStopIndexForStartIndex: function(e, n, r, o) {
1682
1683
  for (var i = e.rowCount, c = e.height, l = me("row", e, n, o), d = r + c, h = l.offset + l.size, m = n; m < i - 1 && h < d; )
@@ -1686,8 +1687,8 @@ var Ur = function(e, n) {
1686
1687
  initInstanceProps: function(e, n) {
1687
1688
  var r = e, o = r.estimatedColumnWidth, i = r.estimatedRowHeight, c = {
1688
1689
  columnMetadataMap: {},
1689
- estimatedColumnWidth: o || Vt,
1690
- estimatedRowHeight: i || Vt,
1690
+ estimatedColumnWidth: o || Ut,
1691
+ estimatedRowHeight: i || Ut,
1691
1692
  lastMeasuredColumnIndex: -1,
1692
1693
  lastMeasuredRowIndex: -1,
1693
1694
  rowMetadataMap: {}
@@ -1728,22 +1729,22 @@ function jt(t, e) {
1728
1729
  return !0;
1729
1730
  return !1;
1730
1731
  }
1731
- var Kr = ["style"], Zr = ["style"];
1732
- function Xr(t, e) {
1733
- var n = t.style, r = Ht(t, Kr), o = e.style, i = Ht(e, Zr);
1732
+ var Xr = ["style"], Qr = ["style"];
1733
+ function Yr(t, e) {
1734
+ var n = t.style, r = Ht(t, Xr), o = e.style, i = Ht(e, Qr);
1734
1735
  return !jt(n, o) && !jt(r, i);
1735
1736
  }
1736
- const Qr = () => {
1737
- const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { setColumnCount: n } = rn(), { virtualScrollableElementRef: r } = Qe(), o = qe(), i = k(() => o.heights.length, [o.heights]), c = k(() => e === te.HORIZONTAL_SCROLLING ? i : t === Re.DUAL_PAGE ? 2 : 1, [t, e, e, i, r]), l = k(() => o.widths.reduce((C, P, b) => {
1737
+ const Jr = () => {
1738
+ const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { setColumnCount: n } = rn(), { virtualScrollableElementRef: r } = Ye(), o = qe(), i = W(() => o.heights.length, [o.heights]), c = W(() => e === ne.HORIZONTAL_SCROLLING ? i : t === Re.DUAL_PAGE ? 2 : 1, [t, e, e, i, r]), l = W(() => o.widths.reduce((C, P, b) => {
1738
1739
  const y = b % c;
1739
1740
  return (!C[y] || P > C[y]) && (C[y] = P), C;
1740
- }, []), [o.widths, c]), d = E(
1741
+ }, []), [o.widths, c]), d = N(
1741
1742
  (v) => {
1742
1743
  const C = v % l.length;
1743
1744
  return l[C] || 0;
1744
1745
  },
1745
1746
  [l]
1746
- ), h = E(
1747
+ ), h = N(
1747
1748
  (v) => {
1748
1749
  const C = Array.from({ length: c }, (P, b) => {
1749
1750
  const y = v * c + b;
@@ -1756,7 +1757,7 @@ const Qr = () => {
1756
1757
  D(() => {
1757
1758
  n(c);
1758
1759
  }, [c, n]);
1759
- const m = k(() => e === te.HORIZONTAL_SCROLLING || e === te.PAGE_SCROLLING ? 1 : Math.round(i / c), [c, i, e]), T = k(() => o.heights.reduce((v, C) => v + C, 0) / o.heights.length || 0, [o]), f = k(() => o.widths.reduce((v, C) => v + C, 0) / o.heights.length || 0, [o]);
1760
+ const m = W(() => e === ne.HORIZONTAL_SCROLLING || e === ne.PAGE_SCROLLING ? 1 : Math.round(i / c), [c, i, e]), T = W(() => o.heights.reduce((v, C) => v + C, 0) / o.heights.length || 0, [o]), f = W(() => o.widths.reduce((v, C) => v + C, 0) / o.heights.length || 0, [o]);
1760
1761
  return {
1761
1762
  rowCount: m,
1762
1763
  rowHeight: h,
@@ -1783,7 +1784,7 @@ ut == null || Xt == null ? (gt = dt, vt = function(e) {
1783
1784
  }, Kt);
1784
1785
  return [n, r];
1785
1786
  });
1786
- function Yr(t) {
1787
+ function ei(t) {
1787
1788
  let e, n, r, o, i, c, l;
1788
1789
  const d = typeof document < "u" && document.attachEvent;
1789
1790
  if (!d) {
@@ -1855,7 +1856,7 @@ function Yr(t) {
1855
1856
  }
1856
1857
  };
1857
1858
  }
1858
- class Jr extends eo {
1859
+ class ti extends to {
1859
1860
  constructor(...e) {
1860
1861
  super(...e), this.state = {
1861
1862
  height: this.props.defaultHeight || 0,
@@ -1896,7 +1897,7 @@ class Jr extends eo {
1896
1897
  const r = n.ownerDocument.defaultView.ResizeObserver;
1897
1898
  r != null ? (this._resizeObserver = new r(() => {
1898
1899
  this._timeoutId = setTimeout(this._onResize, 0);
1899
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Yr(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1900
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = ei(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1900
1901
  }
1901
1902
  }
1902
1903
  componentWillUnmount() {
@@ -1934,15 +1935,15 @@ class Jr extends eo {
1934
1935
  }, !g && e(y));
1935
1936
  }
1936
1937
  }
1937
- const ei = nn(({ widths: t, heights: e }) => {
1938
- const { focusedPage: n, totalPages: r } = ce(), o = k(() => {
1938
+ const ni = nn(({ widths: t, heights: e }) => {
1939
+ const { focusedPage: n, totalPages: r } = ce(), o = W(() => {
1939
1940
  const l = [], d = Math.ceil(n / 2) * 2 - 1;
1940
1941
  if (l.push(d), d + 1 <= r) {
1941
1942
  const h = d + 1;
1942
1943
  l.push(h);
1943
1944
  }
1944
1945
  return l;
1945
- }, [n, r]), i = k(() => {
1946
+ }, [n, r]), i = W(() => {
1946
1947
  const l = n % 2 === 1 ? n - 1 : n - 2, d = Math.floor(l / 2), h = e(d), m = t(l), T = t(l + 1);
1947
1948
  return [
1948
1949
  {
@@ -1958,14 +1959,14 @@ const ei = nn(({ widths: t, heights: e }) => {
1958
1959
  height: h
1959
1960
  }
1960
1961
  ];
1961
- }, [t, e, o]), c = k(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
1962
+ }, [t, e, o]), c = W(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
1962
1963
  return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ a(yt, { style: i[d], pageNumber: l }, l)) });
1963
- }), ti = ({ widths: t, heights: e }) => {
1964
- const { focusedPage: n } = ce(), r = k(() => ({
1964
+ }), oi = ({ widths: t, heights: e }) => {
1965
+ const { focusedPage: n } = ce(), r = W(() => ({
1965
1966
  position: "absolute",
1966
1967
  width: t(n - 1),
1967
1968
  height: e(n - 1)
1968
- }), [t, e, n]), o = k(() => t(n - 1), [t]);
1969
+ }), [t, e, n]), o = W(() => t(n - 1), [t]);
1969
1970
  return /* @__PURE__ */ a(
1970
1971
  "div",
1971
1972
  {
@@ -1976,9 +1977,9 @@ const ei = nn(({ widths: t, heights: e }) => {
1976
1977
  children: /* @__PURE__ */ a(yt, { style: r, pageNumber: n }, n)
1977
1978
  }
1978
1979
  );
1979
- }, ni = (t, e, n) => {
1980
- const r = M(), { contentRef: o } = _e(), { heights: i, widths: c } = qe(), { setFocusedPage: l } = ce(), [d, h] = $([]), { targetScrollPage: m } = an(), T = bt(d, 0, 500), f = k(() => i.map((C, P) => {
1981
- const b = c[P], y = Yo(P + 1, t), g = b * y.columnIndex, p = C * y.rowIndex, u = g + b, s = p + C;
1980
+ }, ri = (t, e, n) => {
1981
+ const r = k(), { contentRef: o } = _e(), { heights: i, widths: c } = qe(), { setFocusedPage: l } = ce(), [d, h] = $([]), { targetScrollPage: m } = an(), T = bt(d, 0, 500), f = W(() => i.map((C, P) => {
1982
+ const b = c[P], y = er(P + 1, t), g = b * y.columnIndex, p = C * y.rowIndex, u = g + b, s = p + C;
1982
1983
  return {
1983
1984
  pageNumber: P + 1,
1984
1985
  ...y,
@@ -1996,7 +1997,7 @@ const ei = nn(({ widths: t, heights: e }) => {
1996
1997
  m.current = void 0;
1997
1998
  }, 500);
1998
1999
  }, [T, l]);
1999
- const v = E(
2000
+ const v = N(
2000
2001
  (C) => {
2001
2002
  r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2002
2003
  const P = C.target, b = {
@@ -2033,8 +2034,8 @@ const ei = nn(({ widths: t, heights: e }) => {
2033
2034
  "rp-loader": "_rp-loader_1q08v_20",
2034
2035
  "rp-theme-variables": "_rp-theme-variables_1q08v_24",
2035
2036
  "rp-dark-mode": "_rp-dark-mode_1q08v_135"
2036
- }, xn = Je((t, e) => {
2037
- const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = xo(), { darkMode: h } = ro();
2037
+ }, xn = et((t, e) => {
2038
+ const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = Ro(), { darkMode: h } = ao();
2038
2039
  return /* @__PURE__ */ a(
2039
2040
  "div",
2040
2041
  {
@@ -2055,11 +2056,11 @@ const ei = nn(({ widths: t, heights: e }) => {
2055
2056
  children: n
2056
2057
  }
2057
2058
  );
2058
- }), oi = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2059
- const o = Jo(e, t, n.columnCount);
2059
+ }), ii = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2060
+ const o = tr(e, t, n.columnCount);
2060
2061
  return /* @__PURE__ */ a(yt, { style: r, pageNumber: o }, o);
2061
- }, Xr), Gs = () => {
2062
- const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = so(), { pagesRef: r, setPagesRef: o } = _e(), { scrollToPage: i } = mn(), {
2062
+ }, Yr), Vs = () => {
2063
+ const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = lo(), { pagesRef: r, setPagesRef: o } = _e(), { scrollToPage: i } = mn(), {
2063
2064
  virtualScrollRef: c,
2064
2065
  getVirtualScrollRef: l,
2065
2066
  getPageScrollElementRef: d,
@@ -2068,135 +2069,135 @@ const ei = nn(({ widths: t, heights: e }) => {
2068
2069
  virtualScrollableElementRef: T,
2069
2070
  totalInnerDimensions: f,
2070
2071
  pageScrollElementRef: v
2071
- } = Qe(), C = M(!0), { nextPage: P, prevPage: b, setFocusedPage: y, focusedPage: g } = ce(), { scrollMode: p } = Ee(), { viewMode: u } = Fe(), s = M(null), { loading: w } = ne(), { passwordRequired: _ } = oo(), { LoaderImageComponent: S } = sn(), L = M(
2072
+ } = Ye(), C = k(!0), { nextPage: P, prevPage: b, setFocusedPage: y, focusedPage: g } = ce(), { scrollMode: p } = Ee(), { viewMode: u } = Fe(), s = k(null), { loading: w, error: _ } = oe(), { passwordRequired: S } = io(), { LoaderImageComponent: R } = sn(), x = k(
2072
2073
  f
2073
- ), x = M({
2074
+ ), I = k({
2074
2075
  viewMode: u,
2075
2076
  scrollMode: p
2076
- }), I = M(!1), O = M(), { isFullScreen: A } = co(), {
2077
- pageDimension: F,
2078
- rowCount: R,
2079
- rowHeight: N,
2080
- columnCount: z,
2081
- columnWidth: W,
2082
- estimatedColumnWidth: G,
2083
- estimatedRowHeight: B
2084
- } = Qr(), K = bt(f, 100), V = M();
2085
- ni(z, R, T);
2086
- const J = M({
2077
+ }), O = k(!1), A = k(), { isFullScreen: z } = uo(), {
2078
+ pageDimension: L,
2079
+ rowCount: E,
2080
+ rowHeight: F,
2081
+ columnCount: M,
2082
+ columnWidth: q,
2083
+ estimatedColumnWidth: B,
2084
+ estimatedRowHeight: j
2085
+ } = Jr(), U = bt(f, 100), J = k();
2086
+ ri(M, E, T);
2087
+ const G = k({
2087
2088
  scrollTop: 0,
2088
2089
  scrollLeft: 0
2089
2090
  });
2090
- Xo(r);
2091
- const { isPressed: q } = Ko(), { selectionMode: X } = ao(), { initializeGrabScroll: oe, resetGrabState: re } = Zo({
2092
- isPressed: q
2093
- }), Y = k(() => X === no.HAND, [X]), ie = k(() => ({
2094
- columnCount: z
2095
- }), [z]), de = E(
2096
- (U) => {
2097
- const j = document.activeElement !== r;
2098
- !A && j || (["ArrowUp", "ArrowLeft"].includes(U.key) ? (U.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(U.key) && (U.preventDefault(), P()));
2091
+ Yo(r);
2092
+ const { isPressed: Z } = Xo(), { selectionMode: re } = co(), { initializeGrabScroll: ee, resetGrabState: ie } = Qo({
2093
+ isPressed: Z
2094
+ }), Y = W(() => re === oo.HAND, [re]), ve = W(() => ({
2095
+ columnCount: M
2096
+ }), [M]), he = N(
2097
+ (V) => {
2098
+ const K = document.activeElement !== r;
2099
+ !z && K || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), P()));
2099
2100
  },
2100
- [P, b, A, p]
2101
+ [P, b, z, p]
2101
2102
  );
2102
- D(() => (window.addEventListener("keydown", de), () => {
2103
- window.removeEventListener("keydown", de);
2104
- }), [de]), D(() => {
2103
+ D(() => (window.addEventListener("keydown", he), () => {
2104
+ window.removeEventListener("keydown", he);
2105
+ }), [he]), D(() => {
2105
2106
  if (s.current && (s.current.style.position = "relative"), !!c)
2106
- for (let U = 0; U < R; U++)
2107
- for (let j = 0; j < z; j++)
2107
+ for (let V = 0; V < E; V++)
2108
+ for (let K = 0; K < M; K++)
2108
2109
  c.resetAfterIndices({
2109
- columnIndex: j,
2110
- rowIndex: U,
2110
+ columnIndex: K,
2111
+ rowIndex: V,
2111
2112
  shouldForceUpdate: !0
2112
2113
  });
2113
- }, [R, z, F, c]);
2114
- const Pe = E(
2115
- (U, j) => {
2114
+ }, [E, M, L, c]);
2115
+ const Pe = N(
2116
+ (V, K) => {
2116
2117
  if (!T)
2117
2118
  return { scrollTop: 0, scrollLeft: 0 };
2118
- const ye = J.current.scrollTop > j, Se = J.current.scrollLeft > U;
2119
- return ye || Se ? J.current : {
2119
+ const ye = G.current.scrollTop > K, Se = G.current.scrollLeft > V;
2120
+ return ye || Se ? G.current : {
2120
2121
  scrollTop: T.scrollTop,
2121
2122
  scrollLeft: T.scrollLeft
2122
2123
  };
2123
2124
  },
2124
2125
  [T]
2125
- ), ve = E(
2126
- (U, j) => {
2127
- if (x.current.viewMode !== u || x.current.scrollMode !== p) {
2128
- V.current && clearTimeout(V.current), I.current = !0, i(g, "auto"), V.current = setTimeout(() => {
2126
+ ), Ue = N(
2127
+ (V, K) => {
2128
+ if (I.current.viewMode !== u || I.current.scrollMode !== p) {
2129
+ J.current && clearTimeout(J.current), O.current = !0, i(g, "auto"), J.current = setTimeout(() => {
2129
2130
  requestAnimationFrame(() => {
2130
- x.current = { viewMode: u, scrollMode: p };
2131
+ I.current = { viewMode: u, scrollMode: p };
2131
2132
  });
2132
2133
  }, 100);
2133
2134
  return;
2134
2135
  }
2135
- const Se = U.scrollTop, ot = U.scrollLeft;
2136
- if (!j.height || !j.width)
2136
+ const Se = V.scrollTop, ot = V.scrollLeft;
2137
+ if (!K.height || !K.width)
2137
2138
  return;
2138
- I.current = !0;
2139
- const { height: xe, width: rt } = j, { height: Lt, width: Et } = L.current;
2139
+ O.current = !0;
2140
+ const { height: xe, width: rt } = K, { height: Lt, width: Et } = x.current;
2140
2141
  if (Lt === xe && Et === rt)
2141
2142
  return;
2142
- const Zn = Se / Lt * xe, Xn = ot / Et * rt, Qn = Math.round(Math.min(Zn, xe)) || 0, Yn = Math.round(Math.min(Xn, rt)) || 0;
2143
- O.current = setTimeout(() => {
2143
+ const Xn = Se / Lt * xe, Qn = ot / Et * rt, Yn = Math.round(Math.min(Xn, xe)) || 0, Jn = Math.round(Math.min(Qn, rt)) || 0;
2144
+ A.current = setTimeout(() => {
2144
2145
  requestAnimationFrame(() => {
2145
2146
  c == null || c.scrollTo({
2146
- scrollTop: Qn,
2147
- scrollLeft: Yn
2147
+ scrollTop: Yn,
2148
+ scrollLeft: Jn
2148
2149
  });
2149
2150
  });
2150
- }, 0), L.current = {
2151
- height: j.height,
2152
- width: j.width
2151
+ }, 0), x.current = {
2152
+ height: K.height,
2153
+ width: K.width
2153
2154
  };
2154
2155
  },
2155
2156
  [c, u, p, i]
2156
2157
  );
2157
2158
  D(() => {
2158
- clearTimeout(O.current);
2159
- const U = Array.from({ length: R }).reduce(
2160
- (Se, ot, xe) => Se + N(xe),
2159
+ clearTimeout(A.current);
2160
+ const V = Array.from({ length: E }).reduce(
2161
+ (Se, ot, xe) => Se + F(xe),
2161
2162
  0
2162
- ), j = Array.from({ length: z }).reduce(
2163
- (Se, ot, xe) => Se + W(xe),
2163
+ ), K = Array.from({ length: M }).reduce(
2164
+ (Se, ot, xe) => Se + q(xe),
2164
2165
  0
2165
- ), ye = Pe(j, U);
2166
- J.current = ye, ve(ye, { height: U, width: j }), m({
2167
- height: U,
2168
- width: j
2166
+ ), ye = Pe(K, V);
2167
+ G.current = ye, Ue(ye, { height: V, width: K }), m({
2168
+ height: V,
2169
+ width: K
2169
2170
  });
2170
- }, [F, R, z, ve]);
2171
- const tt = E(
2172
- (U) => {
2173
- J.current = {
2174
- scrollTop: U.scrollTop,
2175
- scrollLeft: U.scrollLeft
2171
+ }, [L, E, M, Ue]);
2172
+ const nt = N(
2173
+ (V) => {
2174
+ G.current = {
2175
+ scrollTop: V.scrollTop,
2176
+ scrollLeft: V.scrollLeft
2176
2177
  };
2177
2178
  },
2178
2179
  [T]
2179
2180
  );
2180
2181
  D(() => () => {
2181
- V.current && clearTimeout(V.current);
2182
+ J.current && clearTimeout(J.current);
2182
2183
  }, []);
2183
- const nt = k(() => ae(ue["rp-pages-container"], {
2184
- [ue["rp-cursor-grab"]]: Y && !q,
2185
- [ue["rp-cursor-grabbing"]]: Y && q
2186
- }), [Y, q]), Kn = E(
2187
- (U) => {
2188
- if (Y && U) {
2189
- const j = ae(ue["rp-pages"]), ye = document.querySelector(`.${j}`);
2190
- oe(ye);
2184
+ const Kn = W(() => ae(le["rp-pages-container"], {
2185
+ [le["rp-cursor-grab"]]: Y && !Z,
2186
+ [le["rp-cursor-grabbing"]]: Y && Z
2187
+ }), [Y, Z]), Zn = N(
2188
+ (V) => {
2189
+ if (Y && V) {
2190
+ const K = ae(le["rp-pages"]), ye = document.querySelector(`.${K}`);
2191
+ ee(ye);
2191
2192
  }
2192
2193
  },
2193
- [Y, oe, ue]
2194
+ [Y, ee, le]
2194
2195
  );
2195
2196
  return D(() => {
2196
- w && re();
2197
+ w && ie();
2197
2198
  }, [w]), D(() => {
2198
- if (!(K.height === 0 || !C.current)) {
2199
- if (e === te.PAGE_SCROLLING) {
2199
+ if (!(U.height === 0 || !C.current)) {
2200
+ if (e === ne.PAGE_SCROLLING) {
2200
2201
  t !== g && v && y(t), C.current = !1;
2201
2202
  return;
2202
2203
  }
@@ -2207,48 +2208,48 @@ const ei = nn(({ widths: t, heights: e }) => {
2207
2208
  e,
2208
2209
  v,
2209
2210
  y,
2210
- K
2211
- ]), /* @__PURE__ */ H(pe, { children: [
2212
- /* @__PURE__ */ a(xn, { id: n, ref: o, tabIndex: -1, className: nt, children: /* @__PURE__ */ a(Jr, { style: { minHeight: "50px" }, children: ({ width: U, height: j }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Kn, style: { width: U, height: j }, children: p === te.PAGE_SCROLLING ? /* @__PURE__ */ a(
2211
+ U
2212
+ ]), /* @__PURE__ */ H(ue, { children: [
2213
+ /* @__PURE__ */ a(xn, { id: n, ref: o, tabIndex: -1, className: Kn, children: /* @__PURE__ */ a(ti, { style: { minHeight: "50px" }, children: ({ width: V, height: K }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Zn, style: { width: V, height: K }, children: p === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
2213
2214
  "div",
2214
2215
  {
2215
2216
  ref: d,
2216
- style: { width: U, height: j },
2217
- className: ae(ue["rp-pages"], ue["rp-page-scrolling-wrapper"]),
2218
- children: u === Re.DUAL_PAGE ? /* @__PURE__ */ a(ei, { widths: W, heights: N }) : /* @__PURE__ */ a(ti, { widths: W, heights: N })
2217
+ style: { width: V, height: K },
2218
+ className: ae(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
2219
+ children: u === Re.DUAL_PAGE ? /* @__PURE__ */ a(ni, { widths: q, heights: F }) : /* @__PURE__ */ a(oi, { widths: q, heights: F })
2219
2220
  }
2220
- ) : B ? /* @__PURE__ */ a(
2221
- jr,
2221
+ ) : j ? /* @__PURE__ */ a(
2222
+ Zr,
2222
2223
  {
2223
2224
  ref: l,
2224
- itemData: ie,
2225
+ itemData: ve,
2225
2226
  outerRef: h,
2226
2227
  innerRef: s,
2227
- onScroll: tt,
2228
- columnCount: z,
2229
- columnWidth: W,
2230
- rowHeight: N,
2231
- height: j,
2232
- width: U,
2233
- estimatedColumnWidth: G,
2234
- estimatedRowHeight: B,
2235
- rowCount: R,
2228
+ onScroll: nt,
2229
+ columnCount: M,
2230
+ columnWidth: q,
2231
+ rowHeight: F,
2232
+ height: K,
2233
+ width: V,
2234
+ estimatedColumnWidth: B,
2235
+ estimatedRowHeight: j,
2236
+ rowCount: E,
2236
2237
  className: ae(
2237
- ue["rp-pages"],
2238
- p === te.HORIZONTAL_SCROLLING ? ue["rp-pages-horizontal-scroll"] : ""
2238
+ le["rp-pages"],
2239
+ p === ne.HORIZONTAL_SCROLLING ? le["rp-pages-horizontal-scroll"] : ""
2239
2240
  ),
2240
2241
  style: {
2241
- "--rp-page-height": `${B}px`,
2242
- "--rp-page-width": `${G}px`,
2243
- "--rp-row-count": `${R}`,
2244
- "--rp-column-count": `${z}`
2242
+ "--rp-page-height": `${j}px`,
2243
+ "--rp-page-width": `${B}px`,
2244
+ "--rp-row-count": `${E}`,
2245
+ "--rp-column-count": `${M}`
2245
2246
  },
2246
- children: oi
2247
+ children: ii
2247
2248
  }
2248
- ) : w ? null : /* @__PURE__ */ a(
2249
+ ) : !w && !_ ? /* @__PURE__ */ a(
2249
2250
  "div",
2250
2251
  {
2251
- className: ue["rp-loader"],
2252
+ className: le["rp-loader"],
2252
2253
  style: {
2253
2254
  display: "flex",
2254
2255
  justifyContent: "center",
@@ -2256,10 +2257,23 @@ const ei = nn(({ widths: t, heights: e }) => {
2256
2257
  height: "100%",
2257
2258
  width: "100%"
2258
2259
  },
2259
- children: S && /* @__PURE__ */ a(S, {})
2260
+ children: R && /* @__PURE__ */ a(R, {})
2260
2261
  }
2261
- ) }) }) }),
2262
- _ && /* @__PURE__ */ a(Qo, {})
2262
+ ) : _ === ro.NOT_SUPPORTED ? /* @__PURE__ */ a("div", { className: le["rp-not-supported"], children: /* @__PURE__ */ H("div", { children: [
2263
+ "Browser Not supported",
2264
+ /* @__PURE__ */ H("div", { children: [
2265
+ "Please use browser form this list",
2266
+ /* @__PURE__ */ H("ul", { children: [
2267
+ /* @__PURE__ */ a("li", { children: "Chrome 110+" }),
2268
+ /* @__PURE__ */ a("li", { children: "Edge 115+" }),
2269
+ /* @__PURE__ */ a("li", { children: "Firefox 115+" }),
2270
+ /* @__PURE__ */ a("li", { children: "Safari 16.5+" }),
2271
+ /* @__PURE__ */ a("li", { children: "Safari iOS 16.5+" }),
2272
+ /* @__PURE__ */ a("li", { children: "Chrome Android 126+" })
2273
+ ] })
2274
+ ] })
2275
+ ] }) }) : null }) }) }),
2276
+ S && /* @__PURE__ */ a(Jo, {})
2263
2277
  ] });
2264
2278
  }, Me = {
2265
2279
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2271,31 +2285,31 @@ const ei = nn(({ widths: t, heights: e }) => {
2271
2285
  "rp-paginate": "_rp-paginate_1gck0_1",
2272
2286
  "rp-page-input": "_rp-page-input_1gck0_6",
2273
2287
  "rp-total-page": "_rp-total-page_1gck0_18"
2274
- }, ri = () => {
2288
+ }, ai = () => {
2275
2289
  const { prevIcon: t } = Ce(), { prevIcon: e } = be();
2276
- return t || e || /* @__PURE__ */ a(Ke, {});
2277
- }, ii = () => {
2290
+ return t || e || /* @__PURE__ */ a(Ze, {});
2291
+ }, si = () => {
2278
2292
  const { nextIcon: t } = Ce(), { nextIcon: e } = be();
2279
- return t || e || /* @__PURE__ */ a(Ke, { style: { transform: "rotate(180deg" } });
2280
- }, ai = () => {
2281
- const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: i } = ce(), [c, l] = $(t.toString()), { pageNavigationTool: d = !0 } = Te(), { pageNavigationTool: h = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: T } = Fe(), { scrollMode: f } = Ee(), { localeMessages: v } = he();
2293
+ return t || e || /* @__PURE__ */ a(Ze, { style: { transform: "rotate(180deg" } });
2294
+ }, ci = () => {
2295
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: i } = ce(), [c, l] = $(t.toString()), { pageNavigationTool: d = !0 } = Te(), { pageNavigationTool: h = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: T } = Fe(), { scrollMode: f } = Ee(), { localeMessages: v } = pe();
2282
2296
  D(() => {
2283
2297
  l(t.toString());
2284
2298
  }, [t]);
2285
- const C = E((p) => {
2299
+ const C = N((p) => {
2286
2300
  const u = p.target.value;
2287
2301
  l(u);
2288
- }, []), P = E(async () => {
2302
+ }, []), P = N(async () => {
2289
2303
  const p = i(c);
2290
2304
  p.success || l(p.currentPage.toString());
2291
- }, [i, c, e]), b = E(() => {
2305
+ }, [i, c, e]), b = N(() => {
2292
2306
  l(t.toString());
2293
- }, [t]), y = E(
2307
+ }, [t]), y = N(
2294
2308
  (p) => {
2295
2309
  p.key === "Enter" && P();
2296
2310
  },
2297
2311
  [P]
2298
- ), g = k(() => T === Re.DUAL_PAGE && f === te.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, T, f]);
2312
+ ), g = W(() => T === Re.DUAL_PAGE && f === ne.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, T, f]);
2299
2313
  return !d || !h ? null : typeof d != "boolean" ? /* @__PURE__ */ a(
2300
2314
  d,
2301
2315
  {
@@ -2323,7 +2337,7 @@ const ei = nn(({ widths: t, heights: e }) => {
2323
2337
  onClick: o,
2324
2338
  "aria-label": v == null ? void 0 : v.previousPageTooltip,
2325
2339
  "aria-disabled": t === 1,
2326
- children: /* @__PURE__ */ a(ri, {})
2340
+ children: /* @__PURE__ */ a(ai, {})
2327
2341
  }
2328
2342
  ) }),
2329
2343
  /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ a(
@@ -2348,12 +2362,12 @@ const ei = nn(({ widths: t, heights: e }) => {
2348
2362
  onClick: r,
2349
2363
  "aria-label": v == null ? void 0 : v.nextPageTooltip,
2350
2364
  "aria-disabled": g,
2351
- children: /* @__PURE__ */ a(ii, {})
2365
+ children: /* @__PURE__ */ a(si, {})
2352
2366
  }
2353
2367
  ) })
2354
2368
  ] });
2355
2369
  };
2356
- var St = "Dialog", [In, Vs] = ir(St), [si, le] = In(St), Rn = (t) => {
2370
+ var St = "Dialog", [In, Bs] = sr(St), [li, de] = In(St), Rn = (t) => {
2357
2371
  const {
2358
2372
  __scopeDialog: e,
2359
2373
  children: n,
@@ -2361,13 +2375,13 @@ var St = "Dialog", [In, Vs] = ir(St), [si, le] = In(St), Rn = (t) => {
2361
2375
  defaultOpen: o,
2362
2376
  onOpenChange: i,
2363
2377
  modal: c = !0
2364
- } = t, l = Z.useRef(null), d = Z.useRef(null), [h = !1, m] = cr({
2378
+ } = t, l = X.useRef(null), d = X.useRef(null), [h = !1, m] = dr({
2365
2379
  prop: r,
2366
2380
  defaultProp: o,
2367
2381
  onChange: i
2368
2382
  });
2369
2383
  return /* @__PURE__ */ a(
2370
- si,
2384
+ li,
2371
2385
  {
2372
2386
  scope: e,
2373
2387
  triggerRef: l,
@@ -2377,16 +2391,16 @@ var St = "Dialog", [In, Vs] = ir(St), [si, le] = In(St), Rn = (t) => {
2377
2391
  descriptionId: at(),
2378
2392
  open: h,
2379
2393
  onOpenChange: m,
2380
- onOpenToggle: Z.useCallback(() => m((T) => !T), [m]),
2394
+ onOpenToggle: X.useCallback(() => m((T) => !T), [m]),
2381
2395
  modal: c,
2382
2396
  children: n
2383
2397
  }
2384
2398
  );
2385
2399
  };
2386
2400
  Rn.displayName = St;
2387
- var Ln = "DialogTrigger", ci = Z.forwardRef(
2401
+ var Ln = "DialogTrigger", di = X.forwardRef(
2388
2402
  (t, e) => {
2389
- const { __scopeDialog: n, ...r } = t, o = le(Ln, n), i = Tt(e, o.triggerRef);
2403
+ const { __scopeDialog: n, ...r } = t, o = de(Ln, n), i = Tt(e, o.triggerRef);
2390
2404
  return /* @__PURE__ */ a(
2391
2405
  Ge.button,
2392
2406
  {
@@ -2402,28 +2416,28 @@ var Ln = "DialogTrigger", ci = Z.forwardRef(
2402
2416
  );
2403
2417
  }
2404
2418
  );
2405
- ci.displayName = Ln;
2406
- var xt = "DialogPortal", [li, En] = In(xt, {
2419
+ di.displayName = Ln;
2420
+ var xt = "DialogPortal", [ui, En] = In(xt, {
2407
2421
  forceMount: void 0
2408
2422
  }), Nn = (t) => {
2409
- const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = le(xt, e);
2410
- return /* @__PURE__ */ a(li, { scope: e, forceMount: n, children: Z.Children.map(r, (c) => /* @__PURE__ */ a(Ct, { present: n || i.open, children: /* @__PURE__ */ a(fr, { asChild: !0, container: o, children: c }) })) });
2423
+ const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = de(xt, e);
2424
+ return /* @__PURE__ */ a(ui, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ a(Ct, { present: n || i.open, children: /* @__PURE__ */ a(gr, { asChild: !0, container: o, children: c }) })) });
2411
2425
  };
2412
2426
  Nn.displayName = xt;
2413
- var Xe = "DialogOverlay", On = Z.forwardRef(
2427
+ var Qe = "DialogOverlay", On = X.forwardRef(
2414
2428
  (t, e) => {
2415
- const n = En(Xe, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = le(Xe, t.__scopeDialog);
2416
- return i.modal ? /* @__PURE__ */ a(Ct, { present: r || i.open, children: /* @__PURE__ */ a(di, { ...o, ref: e }) }) : null;
2429
+ const n = En(Qe, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = de(Qe, t.__scopeDialog);
2430
+ return i.modal ? /* @__PURE__ */ a(Ct, { present: r || i.open, children: /* @__PURE__ */ a(pi, { ...o, ref: e }) }) : null;
2417
2431
  }
2418
2432
  );
2419
- On.displayName = Xe;
2420
- var di = Z.forwardRef(
2433
+ On.displayName = Qe;
2434
+ var pi = X.forwardRef(
2421
2435
  (t, e) => {
2422
- const { __scopeDialog: n, ...r } = t, o = le(Xe, n);
2436
+ const { __scopeDialog: n, ...r } = t, o = de(Qe, n);
2423
2437
  return (
2424
2438
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2425
2439
  // ie. when `Overlay` and `Content` are siblings
2426
- /* @__PURE__ */ a(dr, { as: ar, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
2440
+ /* @__PURE__ */ a(pr, { as: cr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
2427
2441
  Ge.div,
2428
2442
  {
2429
2443
  "data-state": Rt(o.open),
@@ -2434,20 +2448,20 @@ var di = Z.forwardRef(
2434
2448
  ) })
2435
2449
  );
2436
2450
  }
2437
- ), Le = "DialogContent", Dn = Z.forwardRef(
2451
+ ), Le = "DialogContent", Dn = X.forwardRef(
2438
2452
  (t, e) => {
2439
- const n = En(Le, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = le(Le, t.__scopeDialog);
2440
- return /* @__PURE__ */ a(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ a(ui, { ...o, ref: e }) : /* @__PURE__ */ a(pi, { ...o, ref: e }) });
2453
+ const n = En(Le, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = de(Le, t.__scopeDialog);
2454
+ return /* @__PURE__ */ a(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ a(hi, { ...o, ref: e }) : /* @__PURE__ */ a(fi, { ...o, ref: e }) });
2441
2455
  }
2442
2456
  );
2443
2457
  Dn.displayName = Le;
2444
- var ui = Z.forwardRef(
2458
+ var hi = X.forwardRef(
2445
2459
  (t, e) => {
2446
- const n = le(Le, t.__scopeDialog), r = Z.useRef(null), o = Tt(e, n.contentRef, r);
2447
- return Z.useEffect(() => {
2460
+ const n = de(Le, t.__scopeDialog), r = X.useRef(null), o = Tt(e, n.contentRef, r);
2461
+ return X.useEffect(() => {
2448
2462
  const i = r.current;
2449
2463
  if (i)
2450
- return ur(i);
2464
+ return hr(i);
2451
2465
  }, []), /* @__PURE__ */ a(
2452
2466
  An,
2453
2467
  {
@@ -2470,9 +2484,9 @@ var ui = Z.forwardRef(
2470
2484
  }
2471
2485
  );
2472
2486
  }
2473
- ), pi = Z.forwardRef(
2487
+ ), fi = X.forwardRef(
2474
2488
  (t, e) => {
2475
- const n = le(Le, t.__scopeDialog), r = Z.useRef(!1), o = Z.useRef(!1);
2489
+ const n = de(Le, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2476
2490
  return /* @__PURE__ */ a(
2477
2491
  An,
2478
2492
  {
@@ -2493,12 +2507,12 @@ var ui = Z.forwardRef(
2493
2507
  }
2494
2508
  );
2495
2509
  }
2496
- ), An = Z.forwardRef(
2510
+ ), An = X.forwardRef(
2497
2511
  (t, e) => {
2498
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = t, l = le(Le, n), d = Z.useRef(null), h = Tt(e, d);
2499
- return pr(), /* @__PURE__ */ H(pe, { children: [
2512
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = t, l = de(Le, n), d = X.useRef(null), h = Tt(e, d);
2513
+ return fr(), /* @__PURE__ */ H(ue, { children: [
2500
2514
  /* @__PURE__ */ a(
2501
- hr,
2515
+ mr,
2502
2516
  {
2503
2517
  asChild: !0,
2504
2518
  loop: !0,
@@ -2506,7 +2520,7 @@ var ui = Z.forwardRef(
2506
2520
  onMountAutoFocus: o,
2507
2521
  onUnmountAutoFocus: i,
2508
2522
  children: /* @__PURE__ */ a(
2509
- lr,
2523
+ ur,
2510
2524
  {
2511
2525
  role: "dialog",
2512
2526
  id: l.contentId,
@@ -2520,29 +2534,29 @@ var ui = Z.forwardRef(
2520
2534
  )
2521
2535
  }
2522
2536
  ),
2523
- /* @__PURE__ */ H(pe, { children: [
2524
- /* @__PURE__ */ a(fi, { titleId: l.titleId }),
2525
- /* @__PURE__ */ a(gi, { contentRef: d, descriptionId: l.descriptionId })
2537
+ /* @__PURE__ */ H(ue, { children: [
2538
+ /* @__PURE__ */ a(gi, { titleId: l.titleId }),
2539
+ /* @__PURE__ */ a(wi, { contentRef: d, descriptionId: l.descriptionId })
2526
2540
  ] })
2527
2541
  ] });
2528
2542
  }
2529
- ), It = "DialogTitle", zn = Z.forwardRef(
2543
+ ), It = "DialogTitle", zn = X.forwardRef(
2530
2544
  (t, e) => {
2531
- const { __scopeDialog: n, ...r } = t, o = le(It, n);
2545
+ const { __scopeDialog: n, ...r } = t, o = de(It, n);
2532
2546
  return /* @__PURE__ */ a(Ge.h2, { id: o.titleId, ...r, ref: e });
2533
2547
  }
2534
2548
  );
2535
2549
  zn.displayName = It;
2536
- var Fn = "DialogDescription", hi = Z.forwardRef(
2550
+ var Fn = "DialogDescription", mi = X.forwardRef(
2537
2551
  (t, e) => {
2538
- const { __scopeDialog: n, ...r } = t, o = le(Fn, n);
2552
+ const { __scopeDialog: n, ...r } = t, o = de(Fn, n);
2539
2553
  return /* @__PURE__ */ a(Ge.p, { id: o.descriptionId, ...r, ref: e });
2540
2554
  }
2541
2555
  );
2542
- hi.displayName = Fn;
2543
- var Mn = "DialogClose", kn = Z.forwardRef(
2556
+ mi.displayName = Fn;
2557
+ var Mn = "DialogClose", kn = X.forwardRef(
2544
2558
  (t, e) => {
2545
- const { __scopeDialog: n, ...r } = t, o = le(Mn, n);
2559
+ const { __scopeDialog: n, ...r } = t, o = de(Mn, n);
2546
2560
  return /* @__PURE__ */ a(
2547
2561
  Ge.button,
2548
2562
  {
@@ -2558,27 +2572,27 @@ kn.displayName = Mn;
2558
2572
  function Rt(t) {
2559
2573
  return t ? "open" : "closed";
2560
2574
  }
2561
- var Wn = "DialogTitleWarning", [Us, Hn] = sr(Wn, {
2575
+ var Wn = "DialogTitleWarning", [js, Hn] = lr(Wn, {
2562
2576
  contentName: Le,
2563
2577
  titleName: It,
2564
2578
  docsSlug: "dialog"
2565
- }), fi = ({ titleId: t }) => {
2579
+ }), gi = ({ titleId: t }) => {
2566
2580
  const e = Hn(Wn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2567
2581
 
2568
2582
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2569
2583
 
2570
2584
  For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;
2571
- return Z.useEffect(() => {
2585
+ return X.useEffect(() => {
2572
2586
  t && (document.getElementById(t) || console.error(n));
2573
2587
  }, [n, t]), null;
2574
- }, mi = "DialogDescriptionWarning", gi = ({ contentRef: t, descriptionId: e }) => {
2575
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(mi).contentName}}.`;
2576
- return Z.useEffect(() => {
2588
+ }, vi = "DialogDescriptionWarning", wi = ({ contentRef: t, descriptionId: e }) => {
2589
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(vi).contentName}}.`;
2590
+ return X.useEffect(() => {
2577
2591
  var i;
2578
2592
  const o = (i = t.current) == null ? void 0 : i.getAttribute("aria-describedby");
2579
2593
  e && o && (document.getElementById(e) || console.warn(r));
2580
2594
  }, [r, t, e]), null;
2581
- }, vi = Rn, wi = Nn, _i = On, bi = Dn, Ti = zn, Ci = kn;
2595
+ }, _i = Rn, bi = Nn, Ti = On, Ci = Dn, Pi = zn, yi = kn;
2582
2596
  const Ie = {
2583
2597
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2584
2598
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2587,8 +2601,8 @@ const Ie = {
2587
2601
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2588
2602
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2589
2603
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2590
- }, Pi = () => {
2591
- const { pdfProperties: t } = ne(), { container: e } = _e(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = _o(), { localeMessages: o } = he(), i = k(() => {
2604
+ }, Si = () => {
2605
+ const { pdfProperties: t } = oe(), { container: e } = _e(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = To(), { localeMessages: o } = pe(), i = W(() => {
2592
2606
  if (!t)
2593
2607
  return [];
2594
2608
  const {
@@ -2628,48 +2642,48 @@ const Ie = {
2628
2642
  { label: o == null ? void 0 : o.propertiesPageCountLabel, value: y }
2629
2643
  ];
2630
2644
  }, [t, o]);
2631
- return /* @__PURE__ */ a(vi, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(wi, { container: e, children: /* @__PURE__ */ H("div", { className: Ie["rp-dialog-wrapper"], children: [
2632
- /* @__PURE__ */ a(_i, { className: Ie["rp-dialog-overlay"] }),
2633
- /* @__PURE__ */ H(bi, { className: Ie["rp-document-dialog"], children: [
2634
- /* @__PURE__ */ a(Ti, { className: Ie["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2635
- /* @__PURE__ */ a("div", { className: Ie["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: Ie["rp-properties-divider"] }) : /* @__PURE__ */ a(Lo, { label: c.label, value: c.value }) }, l)) }),
2636
- /* @__PURE__ */ a(Ci, { asChild: !0, className: Ie["rp-dialog-close"], children: /* @__PURE__ */ a(mr, {}) })
2645
+ return /* @__PURE__ */ a(_i, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(bi, { container: e, children: /* @__PURE__ */ H("div", { className: Ie["rp-dialog-wrapper"], children: [
2646
+ /* @__PURE__ */ a(Ti, { className: Ie["rp-dialog-overlay"] }),
2647
+ /* @__PURE__ */ H(Ci, { className: Ie["rp-document-dialog"], children: [
2648
+ /* @__PURE__ */ a(Pi, { className: Ie["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2649
+ /* @__PURE__ */ a("div", { className: Ie["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: Ie["rp-properties-divider"] }) : /* @__PURE__ */ a(No, { label: c.label, value: c.value }) }, l)) }),
2650
+ /* @__PURE__ */ a(yi, { asChild: !0, className: Ie["rp-dialog-close"], children: /* @__PURE__ */ a(vr, {}) })
2637
2651
  ] })
2638
2652
  ] }) }) });
2639
- }, yi = {
2653
+ }, xi = {
2640
2654
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2641
- }, Qt = ".pdf", Si = (t) => URL.createObjectURL(t), xi = async (t) => {
2655
+ }, Qt = ".pdf", Ii = (t) => URL.createObjectURL(t), Ri = async (t) => {
2642
2656
  const n = await (await fetch(t)).blob();
2643
- return Si(n);
2657
+ return Ii(n);
2644
2658
  }, $n = () => {
2645
- const { filename: t, pdfSrc: e } = ne(), { downloadFilename: n } = mo(), r = (i) => {
2659
+ const { filename: t, pdfSrc: e } = oe(), { downloadFilename: n } = vo(), r = (i) => {
2646
2660
  const c = n || i;
2647
2661
  return c.endsWith(Qt) ? c : `${c}${Qt}`;
2648
2662
  };
2649
- return { download: E(async () => {
2663
+ return { download: N(async () => {
2650
2664
  if (!t || !e)
2651
2665
  throw new Error("There is no PDF source to download");
2652
2666
  const i = document.createElement("a");
2653
- i.href = await xi(e), i.download = r(t), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2667
+ i.href = await Ri(e), i.download = r(t), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2654
2668
  }, [t, e]) };
2655
2669
  }, qn = () => {
2656
2670
  const { downloadIcon: t } = Ce(), { downloadIcon: e } = be();
2657
- return t || e || /* @__PURE__ */ a(_r, {});
2658
- }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Ii = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Gn, { localeMessages: e, children: /* @__PURE__ */ a(ge, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ a(qn, {}) }) }), Ri = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Ze, { onClick: t, children: /* @__PURE__ */ H(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2671
+ return t || e || /* @__PURE__ */ a(Tr, {});
2672
+ }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Li = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Gn, { localeMessages: e, children: /* @__PURE__ */ a(ge, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ a(qn, {}) }) }), Ei = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2659
2673
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qn, {}) }),
2660
2674
  e == null ? void 0 : e.downloadFileLabel
2661
- ] }) }), Vn = () => {
2662
- const { download: t } = $n(), { downloadTool: e = !0 } = Te(), { downloadTool: n = !0 } = Ne(), { isSmallScreen: r } = Oe(), { localeMessages: o } = he(), i = o == null ? void 0 : o.downloadFileTooltip;
2663
- return !e || !n ? null : r ? /* @__PURE__ */ a(Ri, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(n, { download: t }) }) : /* @__PURE__ */ a(Ii, { download: t, localeMessages: o });
2664
- }, Un = () => {
2675
+ ] }) }), Un = () => {
2676
+ const { download: t } = $n(), { downloadTool: e = !0 } = Te(), { downloadTool: n = !0 } = Ne(), { isSmallScreen: r } = Oe(), { localeMessages: o } = pe(), i = o == null ? void 0 : o.downloadFileTooltip;
2677
+ return !e || !n ? null : r ? /* @__PURE__ */ a(Ei, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(n, { download: t }) }) : /* @__PURE__ */ a(Li, { download: t, localeMessages: o });
2678
+ }, Vn = () => {
2665
2679
  const { printIcon: t } = Ce(), { printIcon: e } = be();
2666
- return t || e || /* @__PURE__ */ a(br, {});
2667
- }, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Li = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Bn, { localeMessages: e, children: /* @__PURE__ */ a(ge, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Un, {}) }) }), Ei = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Ze, { onClick: t, children: /* @__PURE__ */ H(Bn, { className: "rp-menu-item", localeMessages: e, children: [
2668
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Un, {}) }),
2680
+ return t || e || /* @__PURE__ */ a(Cr, {});
2681
+ }, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Ni = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Bn, { localeMessages: e, children: /* @__PURE__ */ a(ge, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), Oi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(Bn, { className: "rp-menu-item", localeMessages: e, children: [
2682
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
2669
2683
  e == null ? void 0 : e.printLabel
2670
2684
  ] }) }), jn = () => {
2671
- const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: i } = et(), { printTool: c = !0 } = Te(), { printTool: l = !0 } = Ne(), { isSmallScreen: d } = Oe(), { localeMessages: h } = he(), m = h == null ? void 0 : h.printTooltip;
2672
- return !c || !l ? null : d ? /* @__PURE__ */ a(Ei, { print: t, localeMessages: h }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2685
+ const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: i } = tt(), { printTool: c = !0 } = Te(), { printTool: l = !0 } = Ne(), { isSmallScreen: d } = Oe(), { localeMessages: h } = pe(), m = h == null ? void 0 : h.printTooltip;
2686
+ return !c || !l ? null : d ? /* @__PURE__ */ a(Oi, { print: t, localeMessages: h }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2673
2687
  c,
2674
2688
  {
2675
2689
  print: t,
@@ -2689,33 +2703,33 @@ const Ie = {
2689
2703
  setOnComplete: r,
2690
2704
  progress: i
2691
2705
  }
2692
- ) }) : /* @__PURE__ */ a(Li, { print: t, localeMessages: h });
2693
- }, Ni = {
2706
+ ) }) : /* @__PURE__ */ a(Ni, { print: t, localeMessages: h });
2707
+ }, Di = {
2694
2708
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2695
- }, Oi = () => {
2709
+ }, Ai = () => {
2696
2710
  const { goToFirstPageIcon: t } = Ce(), { goToFirstPageIcon: e } = be();
2697
- return t || e || /* @__PURE__ */ a(hn, { className: Ni["rp-go-to-Top"] });
2698
- }, Di = () => {
2711
+ return t || e || /* @__PURE__ */ a(hn, { className: Di["rp-go-to-Top"] });
2712
+ }, zi = () => {
2699
2713
  const { goToLastPageIcon: t } = Ce(), { goToLastPageIcon: e } = be();
2700
2714
  return t || e || /* @__PURE__ */ a(hn, {});
2701
- }, Yt = { width: "100%" }, Ai = () => {
2702
- const { goToPage: t, totalPages: e, focusedPage: n } = ce(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = Ne(), { localeMessages: i } = he(), c = k(() => n === 1, [n]), l = k(() => n === e, [n, e]), d = E(() => {
2715
+ }, Yt = { width: "100%" }, Fi = () => {
2716
+ const { goToPage: t, totalPages: e, focusedPage: n } = ce(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = Ne(), { localeMessages: i } = pe(), c = W(() => n === 1, [n]), l = W(() => n === e, [n, e]), d = N(() => {
2703
2717
  t(1);
2704
- }, [t]), h = E(() => {
2718
+ }, [t]), h = N(() => {
2705
2719
  t(e);
2706
2720
  }, [t, e]);
2707
2721
  return !r || !o ? null : /* @__PURE__ */ H(un, { children: [
2708
- /* @__PURE__ */ a(Ze, { onClick: d, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2709
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Oi, {}) }),
2722
+ /* @__PURE__ */ a(Xe, { onClick: d, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2723
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Ai, {}) }),
2710
2724
  /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.firstPageLabel })
2711
2725
  ] }) }) }),
2712
- /* @__PURE__ */ a(Ze, { onClick: h, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2713
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Di, {}) }),
2726
+ /* @__PURE__ */ a(Xe, { onClick: h, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2727
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(zi, {}) }),
2714
2728
  /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.lastPageLabel })
2715
2729
  ] }) }) }),
2716
2730
  /* @__PURE__ */ a(ln, {})
2717
2731
  ] });
2718
- }, zi = () => {
2732
+ }, Mi = () => {
2719
2733
  const [t, e] = $(!1), { container: n, pagesRef: r } = _e(), { isSmallScreen: o } = Oe(), {
2720
2734
  openFileTool: i,
2721
2735
  downloadTool: c,
@@ -2738,11 +2752,11 @@ const Ie = {
2738
2752
  printTool: w,
2739
2753
  fullscreenTool: _,
2740
2754
  viewModeTool: S
2741
- } = Ne(), { localeMessages: L } = he(), [x, I] = $(0), O = M(
2742
- new ResizeObserver((R) => {
2743
- I(R[0].contentRect.height);
2755
+ } = Ne(), { localeMessages: R } = pe(), [x, I] = $(0), O = k(
2756
+ new ResizeObserver((L) => {
2757
+ I(L[0].contentRect.height);
2744
2758
  })
2745
- ), A = k(() => T || h || m || d || l || C || o && (i || c || f || v), [
2759
+ ), A = W(() => T || h || m || d || l || C || o && (i || c || f || v), [
2746
2760
  i,
2747
2761
  c,
2748
2762
  f,
@@ -2753,7 +2767,7 @@ const Ie = {
2753
2767
  m,
2754
2768
  T,
2755
2769
  o
2756
- ]), F = k(() => s || p || u || g || y || S || o && (P || b || w || _), [
2770
+ ]), z = W(() => s || p || u || g || y || S || o && (P || b || w || _), [
2757
2771
  P,
2758
2772
  b,
2759
2773
  w,
@@ -2767,66 +2781,66 @@ const Ie = {
2767
2781
  ]);
2768
2782
  return D(() => (r && O.current.observe(r), () => {
2769
2783
  O.current.disconnect();
2770
- }), [r]), !A || !F ? null : /* @__PURE__ */ H(pe, { children: [
2784
+ }), [r]), !A || !z ? null : /* @__PURE__ */ H(ue, { children: [
2771
2785
  /* @__PURE__ */ a(
2772
2786
  cn,
2773
2787
  {
2774
2788
  container: n,
2775
2789
  onOpenChange: e,
2776
- triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(Q, { content: L == null ? void 0 : L.moreOptionTooltip, children: /* @__PURE__ */ a(ge, { active: t, "aria-label": L == null ? void 0 : L.moreOptionTooltip, children: /* @__PURE__ */ a(rr, {}) }) }) }),
2790
+ triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(Q, { content: R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ a(ge, { active: t, "aria-label": R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ a(ar, {}) }) }) }),
2777
2791
  side: "bottom",
2778
2792
  avoidCollisions: !1,
2779
2793
  children: /* @__PURE__ */ H(
2780
2794
  "div",
2781
2795
  {
2782
2796
  style: { maxHeight: `${x}px`, overflow: "auto" },
2783
- className: yi["rp-other-tool-content"],
2797
+ className: xi["rp-other-tool-content"],
2784
2798
  "data-rp": "moreOptionsDropdown",
2785
2799
  children: [
2786
2800
  o && /* @__PURE__ */ H(un, { children: [
2787
2801
  /* @__PURE__ */ a(dn, {}),
2788
- /* @__PURE__ */ a(Vn, {}),
2802
+ /* @__PURE__ */ a(Un, {}),
2789
2803
  /* @__PURE__ */ a(jn, {}),
2790
2804
  /* @__PURE__ */ a(pn, {}),
2791
2805
  /* @__PURE__ */ a(ln, {})
2792
2806
  ] }),
2793
- /* @__PURE__ */ a(Ai, {}),
2794
- /* @__PURE__ */ a(Eo, {}),
2795
- /* @__PURE__ */ a(Tr, {}),
2796
- /* @__PURE__ */ a(vr, {}),
2797
- /* @__PURE__ */ a(wr, {}),
2798
- /* @__PURE__ */ a(gr, {})
2807
+ /* @__PURE__ */ a(Fi, {}),
2808
+ /* @__PURE__ */ a(Oo, {}),
2809
+ /* @__PURE__ */ a(Pr, {}),
2810
+ /* @__PURE__ */ a(_r, {}),
2811
+ /* @__PURE__ */ a(br, {}),
2812
+ /* @__PURE__ */ a(wr, {})
2799
2813
  ]
2800
2814
  }
2801
2815
  )
2802
2816
  }
2803
2817
  ),
2804
- /* @__PURE__ */ a(Pi, {})
2818
+ /* @__PURE__ */ a(Si, {})
2805
2819
  ] });
2806
- }, Fi = () => {
2820
+ }, ki = () => {
2807
2821
  const { isSmallScreen: t } = Oe();
2808
- return /* @__PURE__ */ H(pe, { children: [
2809
- /* @__PURE__ */ a(or, {}),
2810
- !t && /* @__PURE__ */ H(pe, { children: [
2822
+ return /* @__PURE__ */ H(ue, { children: [
2823
+ /* @__PURE__ */ a(ir, {}),
2824
+ !t && /* @__PURE__ */ H(ue, { children: [
2811
2825
  /* @__PURE__ */ a(dn, {}),
2812
- /* @__PURE__ */ a(Vn, {}),
2826
+ /* @__PURE__ */ a(Un, {}),
2813
2827
  /* @__PURE__ */ a(jn, {}),
2814
2828
  /* @__PURE__ */ a(pn, {})
2815
2829
  ] }),
2816
- /* @__PURE__ */ a(zi, {})
2830
+ /* @__PURE__ */ a(Mi, {})
2817
2831
  ] });
2818
2832
  }, Jt = () => {
2819
- const { totalMatches: t, nextMatch: e, prevMatch: n } = Pt(), { localeMessages: r } = he();
2820
- return /* @__PURE__ */ H(pe, { children: [
2833
+ const { totalMatches: t, nextMatch: e, prevMatch: n } = Pt(), { localeMessages: r } = pe();
2834
+ return /* @__PURE__ */ H(ue, { children: [
2821
2835
  /* @__PURE__ */ a(
2822
2836
  Q,
2823
2837
  {
2824
2838
  content: r == null ? void 0 : r.searchPrevTooltip,
2825
- className: ee["rp-search-tool-result-navigator"],
2839
+ className: te["rp-search-tool-result-navigator"],
2826
2840
  children: /* @__PURE__ */ a(ge, { tabIndex: 0, onClick: n, "aria-label": r == null ? void 0 : r.searchPrevTooltip, children: /* @__PURE__ */ a(
2827
- Ke,
2841
+ Ze,
2828
2842
  {
2829
- className: ee["rp-search-tool-input-icon"],
2843
+ className: te["rp-search-tool-input-icon"],
2830
2844
  "aria-disabled": !t
2831
2845
  }
2832
2846
  ) })
@@ -2836,23 +2850,23 @@ const Ie = {
2836
2850
  Q,
2837
2851
  {
2838
2852
  content: r == null ? void 0 : r.searchNextTooltip,
2839
- className: ee["rp-search-tool-result-navigator"],
2853
+ className: te["rp-search-tool-result-navigator"],
2840
2854
  children: /* @__PURE__ */ a(ge, { tabIndex: 0, onClick: e, "aria-label": r == null ? void 0 : r.searchNextTooltip, children: /* @__PURE__ */ a(
2841
- Ke,
2855
+ Ze,
2842
2856
  {
2843
2857
  style: { transform: "rotate(180deg" },
2844
- className: ee["rp-search-tool-input-icon"],
2858
+ className: te["rp-search-tool-input-icon"],
2845
2859
  "aria-disabled": !t
2846
2860
  }
2847
2861
  ) })
2848
2862
  }
2849
2863
  )
2850
2864
  ] });
2851
- }, Mi = () => {
2865
+ }, Wi = () => {
2852
2866
  const { searchIcon: t } = Ce(), { searchIcon: e } = be();
2853
2867
  return t || e || /* @__PURE__ */ a(fn, {});
2854
- }, ki = ({ icon: t }) => {
2855
- const { container: e } = _e(), [n, r] = $(!1), { pdf: o } = ne(), [i, c] = $(null), {
2868
+ }, Hi = ({ icon: t }) => {
2869
+ const { container: e } = _e(), [n, r] = $(!1), { pdf: o } = oe(), [i, c] = $(null), {
2856
2870
  searchOptions: l,
2857
2871
  setSearchOptions: d,
2858
2872
  loading: h,
@@ -2862,28 +2876,28 @@ const Ie = {
2862
2876
  nextMatch: v,
2863
2877
  prevMatch: C,
2864
2878
  search: P
2865
- } = Pt(), { searchTool: b = !0 } = Te(), { searchTool: y = !0 } = Ne(), [g, p] = $(P), { localeMessages: u } = he(), { isSmallScreen: s } = Oe(), [w, _] = $(null), [S, L] = $(!1), x = E(() => {
2879
+ } = Pt(), { searchTool: b = !0 } = Te(), { searchTool: y = !0 } = Ne(), [g, p] = $(P), { localeMessages: u } = pe(), { isSmallScreen: s } = Oe(), [w, _] = $(null), [S, R] = $(!1), x = N(() => {
2866
2880
  r(!0);
2867
- }, []), I = E(() => {
2881
+ }, []), I = N(() => {
2868
2882
  m(""), p(""), r(!1);
2869
- }, [m]), O = (q) => {
2870
- const X = q.key === "Enter", oe = q.key === " ";
2871
- (X || oe) && I();
2872
- }, A = E(
2873
- (q) => {
2874
- q.key === "Escape" && n && I();
2883
+ }, [m]), O = (G) => {
2884
+ const Z = G.key === "Enter", re = G.key === " ";
2885
+ (Z || re) && I();
2886
+ }, A = N(
2887
+ (G) => {
2888
+ G.key === "Escape" && n && I();
2875
2889
  },
2876
2890
  [n]
2877
- ), F = E(
2878
- (q) => {
2879
- q.shiftKey && q.key === "Enter" ? C() : q.key === "Enter" && P !== g ? m(g) : q.key === "Enter" && v();
2891
+ ), z = N(
2892
+ (G) => {
2893
+ G.shiftKey && G.key === "Enter" ? C() : G.key === "Enter" && P !== g ? m(g) : G.key === "Enter" && v();
2880
2894
  },
2881
2895
  [g, C, v, m, P]
2882
2896
  );
2883
2897
  D(() => {
2884
2898
  p(P);
2885
2899
  }, [P]), D(() => {
2886
- P && o && L(!0);
2900
+ P && o && R(!0);
2887
2901
  }, [P, o]), D(() => {
2888
2902
  P && P.trim() !== "" && (p(P), m(P));
2889
2903
  }, []), D(() => (window.addEventListener("keydown", A), () => {
@@ -2893,49 +2907,49 @@ const Ie = {
2893
2907
  i.focus();
2894
2908
  }, 0);
2895
2909
  }, [i]);
2896
- const R = E((q) => {
2897
- p(q.target.value);
2898
- }, []), N = E(() => {
2910
+ const L = N((G) => {
2911
+ p(G.target.value);
2912
+ }, []), E = N(() => {
2899
2913
  p(""), m("");
2900
- }, [m]), z = k(() => `${f} / ${T}`, [f, T]), { wholeWords: W, matchCase: G } = k(() => l, [l]), B = E(
2901
- (q) => {
2902
- d((X) => ({ ...X, matchCase: q }));
2914
+ }, [m]), F = W(() => `${f} / ${T}`, [f, T]), { wholeWords: M, matchCase: q } = W(() => l, [l]), B = N(
2915
+ (G) => {
2916
+ d((Z) => ({ ...Z, matchCase: G }));
2903
2917
  },
2904
2918
  [d]
2905
- ), K = E(
2906
- (q) => {
2907
- d((X) => ({ ...X, wholeWords: q }));
2919
+ ), j = N(
2920
+ (G) => {
2921
+ d((Z) => ({ ...Z, wholeWords: G }));
2908
2922
  },
2909
2923
  [d]
2910
2924
  );
2911
2925
  D(() => {
2912
2926
  o && S && I();
2913
2927
  }, [o, I]);
2914
- const V = k(() => (w == null ? void 0 : w.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [w]), J = E(
2915
- (q) => {
2916
- if (q.key === "Tab") {
2917
- const X = document.activeElement;
2918
- let oe = 0;
2919
- V.forEach((ie, de) => {
2920
- ie === X && (oe = de);
2928
+ const U = W(() => (w == null ? void 0 : w.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [w]), J = N(
2929
+ (G) => {
2930
+ if (G.key === "Tab") {
2931
+ const Z = document.activeElement;
2932
+ let re = 0;
2933
+ U.forEach((Y, ve) => {
2934
+ Y === Z && (re = ve);
2921
2935
  });
2922
- let re = oe + 1;
2923
- q.shiftKey && (re = oe - 1);
2924
- const Y = V[re];
2925
- if (Y)
2926
- Y.focus();
2927
- else if (re > V.length - 1) {
2928
- const ie = V[0];
2929
- ie && ie.focus();
2936
+ let ee = re + 1;
2937
+ G.shiftKey && (ee = re - 1);
2938
+ const ie = U[ee];
2939
+ if (ie)
2940
+ ie.focus();
2941
+ else if (ee > U.length - 1) {
2942
+ const Y = U[0];
2943
+ Y && Y.focus();
2930
2944
  } else {
2931
- const ie = V[V.length - 1];
2932
- ie && ie.focus();
2945
+ const Y = U[U.length - 1];
2946
+ Y && Y.focus();
2933
2947
  }
2934
2948
  }
2935
2949
  },
2936
- [V]
2950
+ [U]
2937
2951
  );
2938
- return !b || !y ? null : /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a(
2952
+ return !b || !y ? null : /* @__PURE__ */ a(ue, { children: /* @__PURE__ */ a(
2939
2953
  cn,
2940
2954
  {
2941
2955
  open: n,
@@ -2950,65 +2964,65 @@ const Ie = {
2950
2964
  active: n,
2951
2965
  onClick: x,
2952
2966
  "aria-label": u == null ? void 0 : u.searchButtonTooltip,
2953
- children: t || /* @__PURE__ */ a(Mi, {})
2967
+ children: t || /* @__PURE__ */ a(Wi, {})
2954
2968
  }
2955
2969
  ) }),
2956
2970
  children: /* @__PURE__ */ H(
2957
2971
  "div",
2958
2972
  {
2959
2973
  ref: _,
2960
- className: ee["rp-search-tool-content"],
2974
+ className: te["rp-search-tool-content"],
2961
2975
  tabIndex: 0,
2962
2976
  onKeyDown: J,
2963
2977
  children: [
2964
- /* @__PURE__ */ H("div", { className: ee["rp-search-tool-input-wrapper"], children: [
2965
- /* @__PURE__ */ H("div", { className: ee["rp-search-tool-input"], children: [
2978
+ /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-wrapper"], children: [
2979
+ /* @__PURE__ */ H("div", { className: te["rp-search-tool-input"], children: [
2966
2980
  /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchInputTooltip, children: /* @__PURE__ */ a(
2967
2981
  on,
2968
2982
  {
2969
2983
  value: g,
2970
- onKeyDown: F,
2971
- onChange: R,
2984
+ onKeyDown: z,
2985
+ onChange: L,
2972
2986
  icon: /* @__PURE__ */ a(fn, {}),
2973
2987
  placeholder: u == null ? void 0 : u.searchInputPlaceholder,
2974
- className: ee["rp-search-input"],
2988
+ className: te["rp-search-input"],
2975
2989
  ref: c,
2976
2990
  id: "search-input",
2977
2991
  name: "search-input",
2978
2992
  tabIndex: 0,
2979
- children: !!g && /* @__PURE__ */ a("span", { className: ee["rp-search-tool-input-clear"], onClick: N, children: /* @__PURE__ */ a(Pr, {}) })
2993
+ children: !!g && /* @__PURE__ */ a("span", { className: te["rp-search-tool-input-clear"], onClick: E, children: /* @__PURE__ */ a(Sr, {}) })
2980
2994
  }
2981
2995
  ) }),
2982
- h ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(_t, { className: ee["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: z }),
2983
- s && /* @__PURE__ */ a("div", { className: ee["rp-search-tool-controls"], children: /* @__PURE__ */ a(Ot, { onKeyPress: O, handleClose: I }) })
2996
+ h ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(_t, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: F }),
2997
+ s && /* @__PURE__ */ a("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ a(Ot, { onKeyPress: O, handleClose: I }) })
2984
2998
  ] }),
2985
- /* @__PURE__ */ H("div", { className: ee["rp-search-tool-input-checkboxes"], children: [
2999
+ /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-checkboxes"], children: [
2986
3000
  s && /* @__PURE__ */ a(Jt, {}),
2987
3001
  /* @__PURE__ */ a(
2988
3002
  Dt,
2989
3003
  {
2990
3004
  tabIndex: 0,
2991
3005
  name: "matchCase",
2992
- value: G,
3006
+ value: q,
2993
3007
  onChange: B,
2994
3008
  children: u == null ? void 0 : u.searchMatchCaseLabel
2995
3009
  }
2996
3010
  ),
2997
- !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchMatchCaseTooltip, children: /* @__PURE__ */ a("div", { className: ee["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ a(Mt, {}) }) }),
3011
+ !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchMatchCaseTooltip, children: /* @__PURE__ */ a("div", { className: te["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ a(Mt, {}) }) }),
2998
3012
  /* @__PURE__ */ a(
2999
3013
  Dt,
3000
3014
  {
3001
3015
  tabIndex: 0,
3002
3016
  name: "wholeWord",
3003
- value: W,
3004
- onChange: K,
3017
+ value: M,
3018
+ onChange: j,
3005
3019
  children: u == null ? void 0 : u.searchWholeWordsLabel
3006
3020
  }
3007
3021
  ),
3008
- !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchWholeWordsTooltip, children: /* @__PURE__ */ a("div", { tabIndex: 0, className: ee["rp-search-icon-info"], children: /* @__PURE__ */ a(Mt, {}) }) })
3022
+ !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchWholeWordsTooltip, children: /* @__PURE__ */ a("div", { tabIndex: 0, className: te["rp-search-icon-info"], children: /* @__PURE__ */ a(Mt, {}) }) })
3009
3023
  ] })
3010
3024
  ] }),
3011
- !s && /* @__PURE__ */ H("div", { className: ee["rp-search-tool-controls"], children: [
3025
+ !s && /* @__PURE__ */ H("div", { className: te["rp-search-tool-controls"], children: [
3012
3026
  /* @__PURE__ */ a(Jt, {}),
3013
3027
  /* @__PURE__ */ a(Ot, { onKeyPress: O, handleClose: I })
3014
3028
  ] })
@@ -3017,16 +3031,16 @@ const Ie = {
3017
3031
  )
3018
3032
  }
3019
3033
  ) });
3020
- }, Wi = "_loading_wazy2_1", Ae = {
3034
+ }, $i = "_loading_wazy2_1", Ae = {
3021
3035
  "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
3022
3036
  "rp-loading-modal": "_rp-loading-modal_wazy2_14",
3023
3037
  "rp-loading-title": "_rp-loading-title_wazy2_27",
3024
3038
  "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
3025
3039
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3026
3040
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3027
- loading: Wi
3028
- }, Hi = ({ percentage: t }) => {
3029
- const { cancel: e } = et(), { localeMessages: n } = he();
3041
+ loading: $i
3042
+ }, qi = ({ percentage: t }) => {
3043
+ const { cancel: e } = tt(), { localeMessages: n } = pe();
3030
3044
  return t < 1 ? null : /* @__PURE__ */ a("div", { className: ae(Ae["rp-loading-overlay"]), children: /* @__PURE__ */ H("div", { className: ae(Ae["rp-loading-modal"]), children: [
3031
3045
  /* @__PURE__ */ H("div", { className: ae(Ae["rp-loading-title"]), children: [
3032
3046
  n == null ? void 0 : n.printLoadingMessage,
@@ -3041,19 +3055,19 @@ const Ie = {
3041
3055
  ) }),
3042
3056
  /* @__PURE__ */ a("button", { className: ae(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3043
3057
  ] }) });
3044
- }, $i = Je((t, e) => {
3045
- const { showPrintProgress: n = !0 } = Te(), { showPrintProgress: r = !0 } = Ne(), { progress: o } = et(), { isSmallScreen: i } = Oe(), { percentage: c } = o || {}, l = () => i ? { gridTemplateColumns: "25% 60% 15%" } : void 0, d = () => {
3058
+ }, Gi = et((t, e) => {
3059
+ const { showPrintProgress: n = !0 } = Te(), { showPrintProgress: r = !0 } = Ne(), { progress: o } = tt(), { isSmallScreen: i } = Oe(), { percentage: c } = o || {}, l = () => i ? { gridTemplateColumns: "25% 60% 15%" } : void 0, d = () => {
3046
3060
  if (!(!n || !r || !c))
3047
- return /* @__PURE__ */ a(Hi, { percentage: c });
3061
+ return /* @__PURE__ */ a(qi, { percentage: c });
3048
3062
  };
3049
3063
  return /* @__PURE__ */ H("div", { children: [
3050
3064
  /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: e, className: Me["rp-toolbar-content"], children: /* @__PURE__ */ H("div", { className: Me["rp-toolbar-wrapper"], style: l(), children: [
3051
3065
  /* @__PURE__ */ H("div", { "data-rp": "topBarLeft", className: Me["rp-toolbar-start"], children: [
3052
- /* @__PURE__ */ a(ki, {}),
3053
- /* @__PURE__ */ a(ai, {})
3066
+ /* @__PURE__ */ a(Hi, {}),
3067
+ /* @__PURE__ */ a(ci, {})
3054
3068
  ] }),
3055
- /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(Cr, {}) }),
3056
- /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a(Fi, {}) })
3069
+ /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(yr, {}) }),
3070
+ /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a(ki, {}) })
3057
3071
  ] }) }),
3058
3072
  /* @__PURE__ */ a(d, {})
3059
3073
  ] });
@@ -3068,11 +3082,11 @@ const Ie = {
3068
3082
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
3069
3083
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3070
3084
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3071
- }, qi = (t) => {
3072
- const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = ce(), { pageRotate: i } = Ye(), c = M(null), l = Cn(), { pages: d } = ne(), [h, m] = $(null), T = M(!1), f = M(), v = k(() => n ? ke["rp-thumbnail-active"] : "", [n]), C = k(() => ({
3085
+ }, Ui = (t) => {
3086
+ const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = ce(), { pageRotate: i } = Je(), c = k(null), l = Cn(), { pages: d } = oe(), [h, m] = $(null), T = k(!1), f = k(), v = W(() => n ? ke["rp-thumbnail-active"] : "", [n]), C = W(() => ({
3073
3087
  width: Math.round(r.width),
3074
3088
  height: Math.round(r.height)
3075
- }), [r]), P = E(() => {
3089
+ }), [r]), P = N(() => {
3076
3090
  e && o(e);
3077
3091
  }, [o, e]);
3078
3092
  return D(() => {
@@ -3158,22 +3172,22 @@ const Ie = {
3158
3172
  }, en = {
3159
3173
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
3160
3174
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
3161
- }, Gi = 16, Vi = (t, e) => {
3175
+ }, Vi = 16, Bi = (t, e) => {
3162
3176
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3163
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Gi);
3164
- }, Ui = Je((t, e) => {
3165
- const { show: n } = t, { focusedPage: r, totalPages: o } = ce(), { thumbnailPages: i, addPage: c, thumbnailLength: l, addToPage: d } = _n(), h = M(null), m = M(1);
3177
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Vi);
3178
+ }, ji = et((t, e) => {
3179
+ const { show: n } = t, { focusedPage: r, totalPages: o } = ce(), { thumbnailPages: i, addPage: c, thumbnailLength: l, addToPage: d } = _n(), h = k(null), m = k(1);
3166
3180
  tn(e, () => h.current);
3167
- const T = k(() => Object.values(i), [i]), f = E(() => {
3181
+ const T = W(() => Object.values(i), [i]), f = N(() => {
3168
3182
  const v = l + 1;
3169
3183
  v <= o && c(v);
3170
3184
  }, [c, o, l]);
3171
3185
  return D(() => {
3172
- r > l && o > l ? d(r) : n && m.current !== r && (Vi(h.current, r), m.current = r);
3173
- }, [r, l, d, n, T]), No(h.current, f), /* @__PURE__ */ a("div", { ref: h, className: en["rp-thumbnails-container"], children: /* @__PURE__ */ a("div", { className: en["rp-thumbnails"], children: n ? T.map((v, C) => {
3186
+ r > l && o > l ? d(r) : n && m.current !== r && (Bi(h.current, r), m.current = r);
3187
+ }, [r, l, d, n, T]), Do(h.current, f), /* @__PURE__ */ a("div", { ref: h, className: en["rp-thumbnails-container"], children: /* @__PURE__ */ a("div", { className: en["rp-thumbnails"], children: n ? T.map((v, C) => {
3174
3188
  var P, b;
3175
3189
  return /* @__PURE__ */ a(
3176
- qi,
3190
+ Ui,
3177
3191
  {
3178
3192
  isFocused: r === ((P = v.page) == null ? void 0 : P.pageNumber),
3179
3193
  pageNumber: (b = v.page) == null ? void 0 : b.pageNumber,
@@ -3184,22 +3198,22 @@ const Ie = {
3184
3198
  C
3185
3199
  );
3186
3200
  }) : null }) });
3187
- }), Bi = () => {
3201
+ }), Ki = () => {
3188
3202
  const { thumbnailIcon: t } = Ce(), { thumbnailIcon: e } = be();
3189
- return t || e || /* @__PURE__ */ a(To, {});
3190
- }, ji = () => {
3191
- const { active: t, setActive: e } = _n(), [n, r] = $(200), o = M(null), { thumbnailTool: i, sidebarEnable: c } = Te(), { localeMessages: l } = he(), d = E(() => {
3203
+ return t || e || /* @__PURE__ */ a(Po, {});
3204
+ }, Zi = () => {
3205
+ const { active: t, setActive: e } = _n(), [n, r] = $(200), o = k(null), { thumbnailTool: i, sidebarEnable: c } = Te(), { localeMessages: l } = pe(), d = N(() => {
3192
3206
  e((m) => !m);
3193
- }, []), h = k(() => typeof i != "boolean" && i ? /* @__PURE__ */ a(i, { onClick: d, active: t }) : i ? /* @__PURE__ */ a(Q, { content: l == null ? void 0 : l.thumbnailTooltip, children: /* @__PURE__ */ a(
3207
+ }, []), h = W(() => typeof i != "boolean" && i ? /* @__PURE__ */ a(i, { onClick: d, active: t }) : i ? /* @__PURE__ */ a(Q, { content: l == null ? void 0 : l.thumbnailTooltip, children: /* @__PURE__ */ a(
3194
3208
  ge,
3195
3209
  {
3196
3210
  onClick: d,
3197
3211
  active: t,
3198
3212
  "aria-label": l == null ? void 0 : l.thumbnailTooltip,
3199
- children: /* @__PURE__ */ a(Bi, {})
3213
+ children: /* @__PURE__ */ a(Ki, {})
3200
3214
  }
3201
3215
  ) }) : null, [i, t, d, l]);
3202
- return /* @__PURE__ */ a(pe, { children: c && /* @__PURE__ */ H(
3216
+ return /* @__PURE__ */ a(ue, { children: c && /* @__PURE__ */ H(
3203
3217
  "div",
3204
3218
  {
3205
3219
  style: { "--rp-thumbnail-width": `${n}px` },
@@ -3214,15 +3228,15 @@ const Ie = {
3214
3228
  hidden: !t,
3215
3229
  className: ht["rp-thumbnails-wrapper"],
3216
3230
  children: [
3217
- /* @__PURE__ */ a(Ui, { show: t, ref: o }),
3218
- /* @__PURE__ */ a(Oo, { onWidthChange: r, thumbnailRef: o })
3231
+ /* @__PURE__ */ a(ji, { show: t, ref: o }),
3232
+ /* @__PURE__ */ a(Ao, { onWidthChange: r, thumbnailRef: o })
3219
3233
  ]
3220
3234
  }
3221
3235
  )
3222
3236
  ]
3223
3237
  }
3224
3238
  ) });
3225
- }, Bs = to((t, e) => {
3239
+ }, Ks = no((t, e) => {
3226
3240
  const {
3227
3241
  children: n,
3228
3242
  slots: r,
@@ -3233,25 +3247,25 @@ const Ie = {
3233
3247
  onLoaded: d,
3234
3248
  cleanupOnLoaded: h,
3235
3249
  onLayoutWidthChange: m
3236
- } = t, [T, f] = $(null), { setContainer: v, setContentRef: C } = _e(), { loading: P } = ne(), { LoaderImageComponent: b } = sn();
3250
+ } = t, [T, f] = $(null), { setContainer: v, setContentRef: C } = _e(), { loading: P } = oe(), { LoaderImageComponent: b } = sn();
3237
3251
  return D(() => (d && d(), () => {
3238
3252
  h && h();
3239
3253
  }), [d, h]), // TODO: deprecated in v2.0.0, remove later ~
3240
- /* @__PURE__ */ a(xn, { toolbarRef: T, ref: e, children: /* @__PURE__ */ a(Po, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(yo, { slots: r, children: /* @__PURE__ */ a(Ro, { icons: o, children: /* @__PURE__ */ a(bo, { children: /* @__PURE__ */ H(Co, { getContainerRef: v, style: i, className: c, children: [
3241
- /* @__PURE__ */ H(So, { children: [
3254
+ /* @__PURE__ */ a(xn, { toolbarRef: T, ref: e, children: /* @__PURE__ */ a(So, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(xo, { slots: r, children: /* @__PURE__ */ a(Eo, { icons: o, children: /* @__PURE__ */ a(Co, { children: /* @__PURE__ */ H(yo, { getContainerRef: v, style: i, className: c, children: [
3255
+ /* @__PURE__ */ H(Io, { children: [
3242
3256
  /* @__PURE__ */ H("div", { className: we["rp-layout"], children: [
3243
3257
  /* @__PURE__ */ a(
3244
- $i,
3258
+ Gi,
3245
3259
  {
3246
3260
  ref: f
3247
3261
  }
3248
3262
  ),
3249
3263
  /* @__PURE__ */ H("div", { className: we["rp-content"], children: [
3250
- /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(ji, {}) }),
3264
+ /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(Zi, {}) }),
3251
3265
  /* @__PURE__ */ a("div", { ref: C, className: we["rp-pages"], children: n })
3252
3266
  ] })
3253
3267
  ] }),
3254
- /* @__PURE__ */ a(Io, {})
3268
+ /* @__PURE__ */ a(Lo, {})
3255
3269
  ] }),
3256
3270
  P ? /* @__PURE__ */ a(
3257
3271
  "div",
@@ -3282,7 +3296,7 @@ const Ie = {
3282
3296
  }
3283
3297
  ) : null
3284
3298
  ] }) }) }) }) }) });
3285
- }), js = {
3299
+ }), Zs = {
3286
3300
  "rp-toolbar-layout": "_rp-toolbar-layout_vwobs_1",
3287
3301
  "rp-content": "_rp-content_vwobs_7",
3288
3302
  "rp-topbar-content": "_rp-topbar-content_vwobs_13",
@@ -3293,53 +3307,53 @@ const Ie = {
3293
3307
  export {
3294
3308
  Tn as A,
3295
3309
  Cn as B,
3296
- Rr as C,
3297
- Er as D,
3298
- Dr as E,
3299
- zr as F,
3310
+ Er as C,
3311
+ Or as D,
3312
+ zr as E,
3313
+ Mr as F,
3300
3314
  yt as G,
3301
- Qr as H,
3302
- ei as I,
3303
- ti as J,
3304
- ni as K,
3315
+ Jr as H,
3316
+ ni as I,
3317
+ oi as J,
3318
+ ri as K,
3305
3319
  xn as L,
3306
- Pi as M,
3307
- Vn as N,
3320
+ Si as M,
3321
+ Un as N,
3308
3322
  jn as O,
3309
- ks as P,
3310
- Ai as Q,
3311
- Gs as R,
3312
- ki as S,
3313
- Hs as T,
3314
- zi as U,
3323
+ Hs as P,
3324
+ Fi as Q,
3325
+ Vs as R,
3326
+ Hi as S,
3327
+ qs as T,
3328
+ Mi as U,
3315
3329
  Jt as V,
3316
- $i as W,
3317
- qi as X,
3318
- ji as Y,
3319
- Bs as a,
3330
+ Gi as W,
3331
+ Ui as X,
3332
+ Zi as Y,
3333
+ Ks as a,
3320
3334
  $n as b,
3321
- et as c,
3335
+ tt as c,
3322
3336
  Pt as d,
3323
3337
  we as e,
3324
- $s as f,
3325
- qs as g,
3326
- Ws as h,
3338
+ Gs as f,
3339
+ Us as g,
3340
+ $s as h,
3327
3341
  _n as i,
3328
3342
  pt as j,
3329
3343
  Me as k,
3330
- ai as l,
3331
- Fi as m,
3332
- js as n,
3333
- Ui as o,
3334
- Hi as p,
3344
+ ci as l,
3345
+ ki as m,
3346
+ Zs as n,
3347
+ ji as o,
3348
+ qi as p,
3335
3349
  mn as q,
3336
- yr as r,
3350
+ xr as r,
3337
3351
  gn as s,
3338
- Sr as t,
3352
+ Ir as t,
3339
3353
  ce as u,
3340
3354
  vn as v,
3341
- xr as w,
3355
+ Rr as w,
3342
3356
  wn as x,
3343
- Ir as y,
3357
+ Lr as y,
3344
3358
  bn as z
3345
3359
  };