@pdf-viewer/react 1.17.0-beta.3 → 1.17.0-beta.5

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 (73) hide show
  1. package/dist/RPSplitter-b942c039.js +68 -0
  2. package/dist/{ToolbarLayout.module-3c9d3a1d.js → ToolbarLayout.module-da284871.js} +909 -903
  3. package/dist/assets/style.css +1 -1
  4. package/dist/assets/style.js +5 -5
  5. package/dist/components/RPController.js +3 -3
  6. package/dist/components/RPPages.js +2 -2
  7. package/dist/components/RPProvider.js +2 -2
  8. package/dist/components/layout/LayoutContainer.js +2 -2
  9. package/dist/components/layout/RPDefaultLayout.js +2 -2
  10. package/dist/components/layout/RPLayout.js +2 -2
  11. package/dist/components/layout/sidebar/RPSidebar.js +3 -3
  12. package/dist/components/layout/sidebar/RPSplitter.js +6 -59
  13. package/dist/components/layout/sidebar/Thumbnail.js +2 -2
  14. package/dist/components/layout/sidebar/Thumbnails.js +2 -2
  15. package/dist/components/layout/toolbar/DocumentDialog.js +2 -2
  16. package/dist/components/layout/toolbar/FileDownloadTool.js +2 -2
  17. package/dist/components/layout/toolbar/MostPageTool.js +2 -2
  18. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  19. package/dist/components/layout/toolbar/Paginate.js +2 -2
  20. package/dist/components/layout/toolbar/PrintTool.js +2 -2
  21. package/dist/components/layout/toolbar/RPMoreOptions.js +2 -2
  22. package/dist/components/layout/toolbar/RPToolbar.js +2 -2
  23. package/dist/components/layout/toolbar/RPToolbarEnd.js +2 -2
  24. package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
  25. package/dist/components/layout/toolbar/SearchTool.js +2 -2
  26. package/dist/components/layout/toolbar/ThumbnailTool.js +2 -2
  27. package/dist/components/layout/toolbar/ToolbarCustom.js +10 -10
  28. package/dist/components/layout/toolbar/ToolbarDefault.js +4 -4
  29. package/dist/components/layout/toolbar/ToolbarLayout.js +2 -2
  30. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  31. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +2 -2
  32. package/dist/components/layout/toolbar/tools/DualPageTool.js +2 -2
  33. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +16 -17
  34. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +2 -2
  35. package/dist/components/layout/toolbar/tools/InputPageTool.js +2 -2
  36. package/dist/components/layout/toolbar/tools/NextPageTool.js +2 -2
  37. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +2 -2
  38. package/dist/components/layout/toolbar/tools/PrintTool.js +2 -2
  39. package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
  40. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +2 -2
  41. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +2 -2
  42. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +2 -2
  43. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +2 -2
  44. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +2 -2
  45. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
  46. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
  47. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +2 -2
  48. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
  49. package/dist/components/page/AnnotationLayer.js +2 -2
  50. package/dist/components/page/CanvasLayer.js +2 -2
  51. package/dist/components/page/DualPage.js +2 -2
  52. package/dist/components/page/DualPageWithCover.js +2 -2
  53. package/dist/components/page/RPPage.js +2 -2
  54. package/dist/components/page/SinglePage.js +2 -2
  55. package/dist/components/page/TextHighlightLayer.js +2 -2
  56. package/dist/components/page/TextLayer.js +2 -2
  57. package/dist/components/ui/LoadingIndicator.js +2 -2
  58. package/dist/contexts/PaginationContext.js +2 -2
  59. package/dist/contexts/PrintContext.js +2 -2
  60. package/dist/contexts/RenderQueueProvider.js +2 -2
  61. package/dist/contexts/SearchContext.js +2 -2
  62. package/dist/contexts/ThumbnailsContext.js +2 -2
  63. package/dist/main.js +2 -2
  64. package/dist/utils/hooks/useFileDownload.js +2 -2
  65. package/dist/utils/hooks/useLicense.js +1 -1
  66. package/dist/utils/hooks/usePaginate.js +2 -2
  67. package/dist/utils/hooks/usePresentPage.js +2 -2
  68. package/dist/utils/hooks/usePrint.js +2 -2
  69. package/dist/utils/hooks/useScrollToPage.js +2 -2
  70. package/dist/utils/hooks/useSearch.js +2 -2
  71. package/dist/utils/hooks/useThumbnail.js +2 -2
  72. package/dist/utils/hooks/useVirtualReactWindow.js +2 -2
  73. package/package.json +1 -1
@@ -1,119 +1,119 @@
1
1
  import { jsx as i, Fragment as he, jsxs as k } from "react/jsx-runtime";
2
2
  import * as X from "react";
3
- import { useRef as M, useEffect as A, useCallback as N, useState as H, useMemo as W, createContext as Be, useContext as je, useImperativeHandle as mn, createElement as Qe, PureComponent as ur, Component as pr, memo as It, Fragment as hr, forwardRef as fr } from "react";
4
- import { ChevronUpIcon as Ue } from "./components/icons/ChevronUpIcon.js";
3
+ import { useRef as M, useEffect as A, useCallback as N, useState as H, useMemo as W, createContext as Be, useContext as Ze, useImperativeHandle as mn, createElement as Qe, PureComponent as po, Component as ho, memo as It, Fragment as fo, forwardRef as mo } from "react";
4
+ import { ChevronUpIcon as qe } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as de } from "./components/ui/Button.js";
6
6
  import { UIInput as gn } from "./components/ui/Input.js";
7
- import { ViewMode as re, ScrollMode as ie, AnnotationSubType as $t, SelectionMode as mr, ErrorType as gr, ZoomLevel as Me } from "./utils/types.js";
7
+ import { ViewMode as oe, ScrollMode as ie, AnnotationSubType as $t, SelectionMode as go, ErrorType as vo, ZoomLevel as Me } from "./utils/types.js";
8
8
  import { useScrollModeContext as Ae } from "./contexts/ScrollModeContext.js";
9
- import { useDocumentContext as oe } from "./contexts/RPDocumentContext.js";
10
- import { useDocumentPasswordContext as vr } from "./contexts/DocumentPasswordContext.js";
11
- import { useDarkModeContext as wr } from "./contexts/DarkModeContext.js";
9
+ import { useDocumentContext as re } from "./contexts/RPDocumentContext.js";
10
+ import { useDocumentPasswordContext as wo } from "./contexts/DocumentPasswordContext.js";
11
+ import { useDarkModeContext as bo } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
- import { useLayerContext as _r } from "./contexts/LayerContext.js";
14
- import { useZoomContext as rt } from "./contexts/ZoomContext.js";
15
- import { useViewModeContext as He } from "./contexts/ViewModeContext.js";
16
- import { useVirtualScrollContext as ot } from "./contexts/VirtualScrollContext.js";
13
+ import { useLayerContext as _o } from "./contexts/LayerContext.js";
14
+ import { useZoomContext as ot } from "./contexts/ZoomContext.js";
15
+ import { useViewModeContext as $e } from "./contexts/ViewModeContext.js";
16
+ import { useVirtualScrollContext as rt } from "./contexts/VirtualScrollContext.js";
17
17
  import { useVirtualGridContext as vn } from "./contexts/VirtualGridContext.js";
18
- import { useSelectionModeContext as br } from "./contexts/SelectionModeContext.js";
18
+ import { useSelectionModeContext as Po } from "./contexts/SelectionModeContext.js";
19
19
  import { useInitialStateContext as xt } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as Pr } from "./contexts/FullScreenContext.js";
20
+ import { useFullScreenContext as To } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
- import { findMatches as Tr, resetDivs as Cr, highlightMatches as yr, isMatchEntireWord as Ir } from "./utils/highlight.js";
23
+ import { findMatches as Co, resetDivs as yo, highlightMatches as Io, isMatchEntireWord as xo } from "./utils/highlight.js";
24
24
  import { useLayoutContainer as Te } from "./contexts/LayoutContainerContext.js";
25
- import { useDimensionPagesContext as Ze } from "./contexts/DimensionPagesContext.js";
25
+ import { useDimensionPagesContext as je } from "./contexts/DimensionPagesContext.js";
26
26
  import { useLocalizationContext as pe } from "./contexts/LocalizationContext.js";
27
- import { useHighlightContext as xr } from "./contexts/HighlightContext.js";
27
+ import { useHighlightContext as So } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
- import { useDownloadContext as Sr } from "./contexts/DownloadContext.js";
29
+ import { useDownloadContext as Ro } from "./contexts/DownloadContext.js";
30
30
  import { useSmoothScrollContext as wn } from "./contexts/SmoothScrollContext.js";
31
31
  import "./contexts/ElementPageContext.js";
32
32
  import { usePagesRotateContext as it } from "./contexts/PagesRotateContext.js";
33
- import { Queue as Rr } from "./utils/Queue.js";
34
- import { renderPage as Lr } from "./utils/renderPage.js";
35
- import { useGlobalCurrentPage as Er } from "./contexts/GlobalCurrentPage.js";
33
+ import { Queue as Lo } from "./utils/Queue.js";
34
+ import { renderPage as Eo } from "./utils/renderPage.js";
35
+ import { useGlobalCurrentPage as No } from "./contexts/GlobalCurrentPage.js";
36
36
  import { useLoaderContext as St } from "./contexts/LoaderContext.js";
37
37
  import { useToolComponentContext as xe } from "./contexts/ToolComponentContext.js";
38
38
  import { useIconToolContext as ge } from "./contexts/IconToolContext.js";
39
- import { useOtherToolContext as Nr } from "./contexts/OtherToolContext.js";
40
- import { useEventCallbackContext as Or } from "./contexts/EventCallbackContext.js";
41
- import { useThemeContext as Dr } from "./contexts/ThemeContext.js";
39
+ import { useOtherToolContext as Oo } from "./contexts/OtherToolContext.js";
40
+ import { useEventCallbackContext as Do } from "./contexts/EventCallbackContext.js";
41
+ import { useThemeContext as Ao } from "./contexts/ThemeContext.js";
42
42
  import "./contexts/ConfigContext.js";
43
- import * as Ar from "pdfjs-dist";
44
- import { PixelsPerInch as zr, AnnotationMode as Wr, RenderingCancelledException as Fr, AnnotationLayer as kr } from "pdfjs-dist";
45
- import { ThumbnailIcon as Mr } from "./components/icons/Thumbnail.js";
43
+ import * as zo from "pdfjs-dist";
44
+ import { PixelsPerInch as Wo, AnnotationMode as Fo, RenderingCancelledException as ko, AnnotationLayer as Mo } from "pdfjs-dist";
45
+ import { ThumbnailIcon as Ho } from "./components/icons/Thumbnail.js";
46
+ import { c as Xe, R as $o } from "./RPSplitter-b942c039.js";
46
47
  import { c as se } from "./clsx-0c6e471a.js";
47
- import { LoaderIcon as _n } from "./components/icons/LoaderIcon.js";
48
- import { Container as Hr } from "./components/layout/Container.js";
49
- import { useViewportContext as Se, ViewportProvider as $r } from "./contexts/ViewportContext.js";
50
- import { useToolbarComponentContext as Ce, ToolbarComponentProvider as Gr } from "./contexts/ToolbarComponentContext.js";
51
- import { RPSplitter as qr } from "./components/layout/sidebar/RPSplitter.js";
52
- import { WrapperLayout as Ur } from "./components/layout/WrapperLayout.js";
53
- import { RPDropFileZone as Vr } from "./components/RPDropFileZone.js";
54
- import { c as ye, L as Br } from "./LayoutWrapper-3f4d0a19.js";
48
+ import { LoaderIcon as bn } from "./components/icons/LoaderIcon.js";
49
+ import { Container as Go } from "./components/layout/Container.js";
50
+ import { useViewportContext as Se, ViewportProvider as Uo } from "./contexts/ViewportContext.js";
51
+ import { useToolbarComponentContext as Ce, ToolbarComponentProvider as Vo } from "./contexts/ToolbarComponentContext.js";
52
+ import { WrapperLayout as qo } from "./components/layout/WrapperLayout.js";
53
+ import { RPDropFileZone as Bo } from "./components/RPDropFileZone.js";
54
+ import { c as ye, L as Zo } from "./LayoutWrapper-3f4d0a19.js";
55
55
  import { SkipLink as Gt } from "./components/layout/SkipLink.js";
56
- import { c as ne, S as qt } from "./SearchCloseButton-08d57275.js";
57
- import { UICheckbox as Ut } from "./components/ui/Checkbox.js";
58
- import { useIconContext as ve, IconProvider as jr } from "./contexts/IconContext.js";
56
+ import { c as ne, S as Ut } from "./SearchCloseButton-08d57275.js";
57
+ import { UICheckbox as Vt } from "./components/ui/Checkbox.js";
58
+ import { useIconContext as ve, IconProvider as jo } from "./contexts/IconContext.js";
59
59
  import K from "./components/ui/RPTooltip.js";
60
60
  import { UIDropDown as Rt } from "./components/ui/DropDown.js";
61
61
  import { MenuItem as Ie } from "./components/layout/toolbar/MenuItem.js";
62
62
  import { MenuSeparator as Lt } from "./components/layout/toolbar/MenuSeparator.js";
63
- import { dateFormatter as Vt } from "./utils/dateFormatter.js";
64
- import { PropertyItem as Zr } from "./components/layout/toolbar/PropertyItem.js";
63
+ import { dateFormatter as qt } from "./utils/dateFormatter.js";
64
+ import { PropertyItem as Ko } from "./components/layout/toolbar/PropertyItem.js";
65
65
  import "./RotateTool.module-67946714.js";
66
66
  import { withRef as at } from "./utils/withRef.js";
67
- import { useInfiniteScroll as Kr } from "./utils/hooks/useInfiniteScroll.js";
68
- import { MAX_ZOOM_SCALE as Bt, THUMBNAIL_MIN_WIDTH as Xr } from "./utils/constants.js";
69
- import { SimpleLinkService as Qr } from "./utils/link_service.js";
70
- import { annotationsEvents as Yr, annotationEventsHandler as Jr, handleAnnotationWidget as eo, handleAnnotationLink as to, bindLayerEvents as no, fixTabIndexAccessibility as jt, enhanceLinkAccessibility as Zt, unbindLayerEvents as Kt } from "./utils/annotations.js";
71
- import { normalizeSingleKeyword as ro, sortHighlightPosition as oo, unwrap as io } from "./components/page/searchHighlight.js";
72
- import { CustomElement as ao } from "./components/page/CustomElement.js";
73
- import { getGridDimension as Et, getPositionFromPage as so, getPageFromPosition as co } from "./utils/calculatePage.js";
74
- import { useMousePressed as lo } from "./utils/hooks/useMousePressed.js";
75
- import { useGrabScroll as uo } from "./utils/hooks/useGrabScroll.js";
76
- import { usePinch as po } from "./utils/hooks/usePinch.js";
67
+ import { useInfiniteScroll as Xo } from "./utils/hooks/useInfiniteScroll.js";
68
+ import { MAX_ZOOM_SCALE as Bt, THUMBNAIL_MIN_WIDTH as Qo } from "./utils/constants.js";
69
+ import { SimpleLinkService as Yo } from "./utils/link_service.js";
70
+ import { annotationsEvents as Jo, annotationEventsHandler as er, handleAnnotationWidget as tr, handleAnnotationLink as nr, bindLayerEvents as or, fixTabIndexAccessibility as Zt, enhanceLinkAccessibility as jt, unbindLayerEvents as Kt } from "./utils/annotations.js";
71
+ import { normalizeSingleKeyword as rr, sortHighlightPosition as ir, unwrap as ar } from "./components/page/searchHighlight.js";
72
+ import { CustomElement as sr } from "./components/page/CustomElement.js";
73
+ import { getGridDimension as Et, getPositionFromPage as cr, getPageFromPosition as lr } from "./utils/calculatePage.js";
74
+ import { useMousePressed as dr } from "./utils/hooks/useMousePressed.js";
75
+ import { useGrabScroll as ur } from "./utils/hooks/useGrabScroll.js";
76
+ import { usePinch as pr } from "./utils/hooks/usePinch.js";
77
77
  import { useDebounce as Nt } from "./utils/hooks/useDebounce.js";
78
- import ho from "./components/ui/PasswordModal.js";
79
- import { useCopyText as fo } from "./utils/hooks/useCopyText.js";
78
+ import hr from "./components/ui/PasswordModal.js";
79
+ import { useCopyText as fr } from "./utils/hooks/useCopyText.js";
80
80
  import { getScrollDistance as ke } from "./utils/getScrollDistance.js";
81
- import { getWordPositionInPage as mo } from "./utils/getWordPositionInPage.js";
82
- import { getThumbnailViewport as go } from "./utils/getThumbnailViewport.js";
81
+ import { getWordPositionInPage as mr } from "./utils/getWordPositionInPage.js";
82
+ import { getThumbnailViewport as gr } from "./utils/getThumbnailViewport.js";
83
83
  import { smoothScrollTo as ht } from "./utils/smoothScrollTo.js";
84
- import { appConsole as vo } from "./utils/appConsole.js";
85
- import { FileUploadTool as bn } from "./components/layout/toolbar/FileUploadTool.js";
86
- import { DarkModeTool as wo } from "./components/layout/toolbar/DarkModeTool.js";
87
- import { ThreeDotIcon as _o } from "./components/icons/ThreeDotIcon.js";
88
- import { c as bo, u as Ot, P as Ke, a as qe, b as Dt, k as Po, e as To, i as Co } from "./index-c9a2990a.js";
89
- import { D as yo, d as ft } from "./floating-ui.react-dom-d22a10b4.js";
90
- import { a as Io, h as xo, u as So, F as Ro, b as Lo, G as tt } from "./index-3bf64864.js";
91
- import { CloseIcon as Eo } from "./components/icons/CloseIcon.js";
92
- import { DocumentProperties as No } from "./components/layout/toolbar/DocumentProperties.js";
93
- import { RotateTool as Oo } from "./components/layout/toolbar/RotateTool.js";
94
- import { ViewModeTool as Do } from "./components/layout/toolbar/ViewModeTool.js";
95
- import { ScrollModeTool as Ao } from "./components/layout/toolbar/ScrollModeTool.js";
96
- import { FileDownloadDefaultIcon as zo } from "./components/icons/FileDownloadDefaultIcon.js";
97
- import { PrintDefaultTool as Wo } from "./components/icons/PrintDefaultIcon.js";
84
+ import { appConsole as vr } from "./utils/appConsole.js";
85
+ import { FileUploadTool as _n } from "./components/layout/toolbar/FileUploadTool.js";
86
+ import { DarkModeTool as wr } from "./components/layout/toolbar/DarkModeTool.js";
87
+ import { ThreeDotIcon as br } from "./components/icons/ThreeDotIcon.js";
88
+ import { c as _r, u as Ot, P as Ke, a as Ve, b as Dt, k as Pr, e as Tr, i as Cr } from "./index-c9a2990a.js";
89
+ import { D as yr, d as ft } from "./floating-ui.react-dom-d22a10b4.js";
90
+ import { a as Ir, h as xr, u as Sr, F as Rr, b as Lr, G as tt } from "./index-3bf64864.js";
91
+ import { CloseIcon as Er } from "./components/icons/CloseIcon.js";
92
+ import { DocumentProperties as Nr } from "./components/layout/toolbar/DocumentProperties.js";
93
+ import { RotateTool as Or } from "./components/layout/toolbar/RotateTool.js";
94
+ import { ViewModeTool as Dr } from "./components/layout/toolbar/ViewModeTool.js";
95
+ import { ScrollModeTool as Ar } from "./components/layout/toolbar/ScrollModeTool.js";
96
+ import { FileDownloadDefaultIcon as zr } from "./components/icons/FileDownloadDefaultIcon.js";
97
+ import { PrintDefaultTool as Wr } from "./components/icons/PrintDefaultIcon.js";
98
98
  import { FullScreenTool as Pn } from "./components/layout/toolbar/FullScreenTool.js";
99
99
  import { GoToDownIcon as Tn } from "./components/icons/GoToDownIcon.js";
100
- import { SelectionModeTool as Fo } from "./components/layout/toolbar/SelectionModeTool.js";
101
- import { ZoomInIcon as ko } from "./components/icons/ZoomInIcon.js";
102
- import { ZoomOutIcon as Mo } from "./components/icons/ZoomOutIcon.js";
103
- import { isZoomOutDisabled as Ho, isZoomInDisabled as $o } from "./utils/zoom.js";
100
+ import { SelectionModeTool as Fr } from "./components/layout/toolbar/SelectionModeTool.js";
101
+ import { ZoomInIcon as kr } from "./components/icons/ZoomInIcon.js";
102
+ import { ZoomOutIcon as Mr } from "./components/icons/ZoomOutIcon.js";
103
+ import { isZoomOutDisabled as Hr, isZoomInDisabled as $r } from "./utils/zoom.js";
104
104
  import { SearchIcon as Cn } from "./components/icons/SearchIcon.js";
105
- import { ClearIcon as Go } from "./components/icons/ClearIcon.js";
105
+ import { ClearIcon as Gr } from "./components/icons/ClearIcon.js";
106
106
  import { InfoIcon as Xt } from "./components/icons/InfoIcon.js";
107
107
  const yn = () => {
108
- const { viewMode: t } = He(), { scrollMode: e } = Ae(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = ot(), { setFocusedPage: a } = ce(), c = M(), { columnCount: d } = vn(), { widths: s, heights: f } = Ze(), m = M(e), C = M(t), u = M(d), { targetScrollPage: T } = wn();
108
+ const { viewMode: t } = $e(), { scrollMode: e } = Ae(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = rt(), { setFocusedPage: a } = ce(), c = M(), { columnCount: d } = vn(), { widths: s, heights: f } = je(), m = M(e), C = M(t), u = M(d), { targetScrollPage: T } = wn();
109
109
  A(() => {
110
110
  n != null && n.scrollToItem && (c.current = n);
111
111
  }, [n]), A(() => {
112
112
  m.current = e, C.current = t;
113
113
  }, [e, t]);
114
- const _ = N(
114
+ const b = N(
115
115
  (y, w) => {
116
- if (!r)
116
+ if (!o)
117
117
  return;
118
118
  const g = Math.ceil(y / 2) * 2 - 1;
119
119
  if (y === g + 1) {
@@ -122,19 +122,19 @@ const yn = () => {
122
122
  top: 0
123
123
  };
124
124
  return new Promise(
125
- (l) => ht(r, p, l)
125
+ (l) => ht(o, p, l)
126
126
  );
127
127
  }
128
128
  const h = {
129
129
  left: 0,
130
130
  top: 0
131
131
  };
132
- return r == null ? void 0 : r.scrollTo({
132
+ return o == null ? void 0 : o.scrollTo({
133
133
  ...h,
134
134
  behavior: w
135
135
  });
136
136
  },
137
- [r, s, ht]
137
+ [o, s, ht]
138
138
  );
139
139
  return A(() => {
140
140
  m.current = e, C.current = t;
@@ -145,19 +145,19 @@ const yn = () => {
145
145
  a(y);
146
146
  const g = y - 1;
147
147
  let h = g, p = 0;
148
- if (C.current === re.DUAL_PAGE && m.current === ie.PAGE_SCROLLING) {
149
- _(y, w);
148
+ if (C.current === oe.DUAL_PAGE && m.current === ie.PAGE_SCROLLING) {
149
+ b(y, w);
150
150
  return;
151
151
  }
152
152
  if (m.current === ie.PAGE_SCROLLING) {
153
153
  a(y);
154
154
  return;
155
155
  }
156
- if (!c.current || !o)
156
+ if (!c.current || !r)
157
157
  return;
158
- const l = o;
158
+ const l = r;
159
159
  w === "smooth" && (T.current = y);
160
- const { columnsWidth: v, rowsHeight: b } = Et(
160
+ const { columnsWidth: v, rowsHeight: _ } = Et(
161
161
  { widths: s, heights: f },
162
162
  d
163
163
  );
@@ -172,9 +172,9 @@ const yn = () => {
172
172
  behavior: w
173
173
  });
174
174
  }
175
- if (C.current === re.DUAL_PAGE) {
175
+ if (C.current === oe.DUAL_PAGE) {
176
176
  p = g % 2, h = Math.floor(g / 2);
177
- const R = ke(v, p), O = ke(b, h), D = {
177
+ const R = ke(v, p), O = ke(_, h), D = {
178
178
  left: Math.floor(R),
179
179
  top: Math.floor(O)
180
180
  };
@@ -183,7 +183,7 @@ const yn = () => {
183
183
  behavior: w
184
184
  });
185
185
  }
186
- const I = ke(b, h), S = {
186
+ const I = ke(_, h), S = {
187
187
  left: 0,
188
188
  top: Math.floor(I)
189
189
  };
@@ -193,25 +193,25 @@ const yn = () => {
193
193
  });
194
194
  },
195
195
  [
196
- o,
196
+ r,
197
197
  d,
198
- _,
198
+ b,
199
199
  a,
200
200
  ht,
201
201
  f,
202
202
  s
203
203
  ]
204
204
  ) };
205
- }, qo = (t = 1) => {
206
- const [e, n] = H(t), [o, r] = H(0), { scrollToPage: a } = yn(), c = M(1), { viewMode: d } = He(), { scrollMode: s } = Ae(), { widths: f } = Ze(), { pagesRef: m } = Te(), C = Nt(e, 100), u = N(
205
+ }, Ur = (t = 1) => {
206
+ const [e, n] = H(t), [r, o] = H(0), { scrollToPage: a } = yn(), c = M(1), { viewMode: d } = $e(), { scrollMode: s } = Ae(), { widths: f } = je(), { pagesRef: m } = Te(), C = Nt(e, 100), u = N(
207
207
  (h) => {
208
208
  if (!/^[0-9]*$/g.test(h.toString()) || !h)
209
209
  return { success: !1, currentPage: c.current };
210
210
  const l = +h;
211
- return l < 0 || l > o ? { success: !1, currentPage: c.current } : (n(l), c.current = l, { success: !0, currentPage: +h });
211
+ return l < 0 || l > r ? { success: !1, currentPage: c.current } : (n(l), c.current = l, { success: !0, currentPage: +h });
212
212
  },
213
- [o]
214
- ), T = N(u, [u]), _ = N(
213
+ [r]
214
+ ), T = N(u, [u]), b = N(
215
215
  (h) => {
216
216
  const p = u(h);
217
217
  return p.success && a(p.currentPage), p;
@@ -222,24 +222,24 @@ const yn = () => {
222
222
  if (!m || p)
223
223
  return !1;
224
224
  const l = p ? f[h] : f[h - 1], v = p ? f[h + 1] : f[h];
225
- return d === re.DUAL_PAGE && l + v < m.clientWidth;
226
- }, [d, f, m, o]), y = N(() => {
225
+ return d === oe.DUAL_PAGE && l + v < m.clientWidth;
226
+ }, [d, f, m, r]), y = N(() => {
227
227
  let h = e - 1;
228
- P(h) && (h = e - 2), _(h);
229
- }, [_, e, d, s, P]), w = W(() => d === re.DUAL_PAGE && s === ie.PAGE_SCROLLING ? e === o - 1 : e === o, [e, o, d, s]), g = N(() => {
228
+ P(h) && (h = e - 2), b(h);
229
+ }, [b, e, d, s, P]), w = W(() => d === oe.DUAL_PAGE && s === ie.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, d, s]), g = N(() => {
230
230
  if (w)
231
231
  return;
232
232
  let h = e + 1;
233
- P(h) && (h = e + 2), _(h);
234
- }, [_, e, P, d, s, w]);
233
+ P(h) && (h = e + 2), b(h);
234
+ }, [b, e, P, d, s, w]);
235
235
  return {
236
236
  focusedPage: C,
237
- totalPages: o,
237
+ totalPages: r,
238
238
  setFocusedPage: T,
239
- setTotalPages: r,
239
+ setTotalPages: o,
240
240
  nextPage: g,
241
241
  prevPage: y,
242
- goToPage: _
242
+ goToPage: b
243
243
  };
244
244
  }, In = Be({
245
245
  focusedPage: 0,
@@ -254,20 +254,20 @@ const yn = () => {
254
254
  nextPage: () => {
255
255
  }
256
256
  }), ce = () => {
257
- const t = je(In);
258
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && vo.error("Please use this hooks inside children component of RPProvider"), t;
259
- }, _c = ({ children: t }) => {
260
- const { pdf: e } = oe(), { setCurrentPage: n } = Er(), { focusedPage: o, totalPages: r, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: s, prevPage: f } = qo();
257
+ const t = Ze(In);
258
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && vr.error("Please use this hooks inside children component of RPProvider"), t;
259
+ }, bc = ({ children: t }) => {
260
+ const { pdf: e } = re(), { setCurrentPage: n } = No(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: s, prevPage: f } = Ur();
261
261
  return A(() => {
262
262
  e != null && e.numPages && (c(e.numPages), a(1));
263
263
  }, [e, c, a]), A(() => {
264
- n(o);
265
- }, [o, n]), /* @__PURE__ */ i(
264
+ n(r);
265
+ }, [r, n]), /* @__PURE__ */ i(
266
266
  In.Provider,
267
267
  {
268
268
  value: {
269
- focusedPage: o,
270
- totalPages: r,
269
+ focusedPage: r,
270
+ totalPages: o,
271
271
  setFocusedPage: a,
272
272
  setTotalPages: c,
273
273
  nextPage: s,
@@ -277,12 +277,12 @@ const yn = () => {
277
277
  children: t
278
278
  }
279
279
  );
280
- }, Uo = () => {
281
- const { pdf: t, pages: e } = oe(), [n, o] = H({
280
+ }, Vr = () => {
281
+ const { pdf: t, pages: e } = re(), [n, r] = H({
282
282
  loadedPages: 0,
283
283
  totalPages: 0,
284
284
  percentage: 0
285
- }), [r, a] = H(!1), [c, d] = H(!1), [s, f] = H(null), [m, C] = H(void 0), u = M(!1);
285
+ }), [o, a] = H(!1), [c, d] = H(!1), [s, f] = H(null), [m, C] = H(void 0), u = M(!1);
286
286
  A(() => {
287
287
  u.current;
288
288
  }, [u]);
@@ -290,8 +290,8 @@ const yn = () => {
290
290
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
291
291
  const l = document.querySelector(".rp-print-zone");
292
292
  l && l.remove();
293
- }, []), _ = N(() => {
294
- u.current = !1, a(!1), d(!1), f(null), C(void 0), o({
293
+ }, []), b = N(() => {
294
+ u.current = !1, a(!1), d(!1), f(null), C(void 0), r({
295
295
  loadedPages: 0,
296
296
  totalPages: 0,
297
297
  percentage: 0
@@ -301,26 +301,26 @@ const yn = () => {
301
301
  }, y = async ({
302
302
  scratchCanvas: l,
303
303
  pdfDocument: v,
304
- pageNumber: b,
304
+ pageNumber: _,
305
305
  viewerPdfPage: I,
306
306
  printResolution: S,
307
307
  optionalContentConfigPromise: x,
308
308
  printAnnotationStoragePromise: R
309
309
  }) => {
310
310
  if (u.current) {
311
- _();
311
+ b();
312
312
  return;
313
313
  }
314
- const O = S / zr.PDF;
314
+ const O = S / Wo.PDF;
315
315
  l.width = Math.floor(I.width * O), l.height = Math.floor(I.height * O);
316
316
  const D = l.getContext("2d");
317
317
  D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, l.width, l.height), D.restore();
318
318
  const [z, E] = await Promise.all([
319
- v.getPage(b),
319
+ v.getPage(_),
320
320
  R
321
321
  ]);
322
322
  if (u.current) {
323
- _();
323
+ b();
324
324
  return;
325
325
  }
326
326
  const L = {
@@ -328,59 +328,59 @@ const yn = () => {
328
328
  transform: [O, 0, 0, O, 0, 0],
329
329
  viewport: z.getViewport({ scale: 1, rotation: I.rotation }),
330
330
  intent: "print",
331
- annotationMode: Wr.ENABLE_STORAGE,
331
+ annotationMode: Fo.ENABLE_STORAGE,
332
332
  optionalContentConfigPromise: x,
333
333
  printAnnotationStorage: E
334
334
  };
335
335
  try {
336
336
  return z.render(L).promise;
337
337
  } catch (F) {
338
- throw F instanceof Fr || console.error(F), F;
338
+ throw F instanceof ko || console.error(F), F;
339
339
  }
340
340
  }, w = N(() => {
341
341
  const l = window.print;
342
342
  return new Promise((v) => {
343
- const b = (x) => {
343
+ const _ = (x) => {
344
344
  setTimeout(() => {
345
345
  l.call(window), setTimeout(() => x(), 20);
346
346
  }, 0);
347
347
  };
348
348
  if (document.querySelector(".rp-print-zone")) {
349
- b(v);
349
+ _(v);
350
350
  return;
351
351
  }
352
352
  const S = new MutationObserver(() => {
353
- document.querySelector(".rp-print-zone") && (b(v), S.disconnect());
353
+ document.querySelector(".rp-print-zone") && (_(v), S.disconnect());
354
354
  });
355
355
  S.observe(document.body, { childList: !0, subtree: !0 });
356
356
  });
357
357
  }, []), g = async (l) => {
358
- const v = document.createElement("img"), b = document.createElement("div");
359
- return b.classList.add("rp-print-page"), await new Promise((I, S) => {
358
+ const v = document.createElement("img"), _ = document.createElement("div");
359
+ return _.classList.add("rp-print-page"), await new Promise((I, S) => {
360
360
  l.toBlob((x) => {
361
361
  x ? (v.src = URL.createObjectURL(x), v.onload = () => {
362
362
  URL.revokeObjectURL(v.src), I();
363
363
  }, v.onerror = S) : S(new Error("Failed to create blob"));
364
364
  });
365
365
  }).catch(() => {
366
- }), b.appendChild(v), b;
366
+ }), _.appendChild(v), _;
367
367
  }, h = (l, v) => {
368
- const b = document.createElement("div");
369
- b.classList.add("rp-print-zone");
368
+ const _ = document.createElement("div");
369
+ _.classList.add("rp-print-zone");
370
370
  const I = document.createElement("style"), S = v.get(1);
371
371
  if (S) {
372
372
  const { width: x, height: R } = S == null ? void 0 : S.page.getViewport({ scale: 1 });
373
373
  I.innerHTML = `@page { size: ${x}px ${R}px }`;
374
374
  }
375
- return b.appendChild(I), b.append(...l), b;
375
+ return _.appendChild(I), _.append(...l), _;
376
376
  }, p = N(
377
377
  async (l) => {
378
378
  if (!t)
379
379
  return;
380
- _();
380
+ b();
381
381
  const v = l && "visibleDefaultProgress" in l ? l : void 0;
382
382
  (v == null ? void 0 : v.visibleDefaultProgress) !== void 0 ? C(v.visibleDefaultProgress) : C(!0);
383
- const b = document.createElement("canvas"), I = [];
383
+ const _ = document.createElement("canvas"), I = [];
384
384
  try {
385
385
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
386
386
  const x = t.getOptionalContentConfig({ intent: "print" }), R = Promise.resolve(
@@ -388,12 +388,12 @@ const yn = () => {
388
388
  ), O = e.size;
389
389
  for (const [z, E] of e) {
390
390
  if (u.current) {
391
- _();
391
+ b();
392
392
  return;
393
393
  }
394
394
  const L = E.page.getViewport({ scale: 1 });
395
395
  if (await y({
396
- scratchCanvas: b,
396
+ scratchCanvas: _,
397
397
  pdfDocument: t,
398
398
  pageNumber: z,
399
399
  viewerPdfPage: L,
@@ -401,20 +401,20 @@ const yn = () => {
401
401
  optionalContentConfigPromise: x,
402
402
  printAnnotationStoragePromise: R
403
403
  }), u.current) {
404
- _();
404
+ b();
405
405
  return;
406
406
  }
407
- const F = await g(b);
407
+ const F = await g(_);
408
408
  I.push(F);
409
409
  const G = parseFloat((I.length / O * 100).toFixed(2));
410
- o({
410
+ r({
411
411
  loadedPages: z,
412
412
  totalPages: O,
413
413
  percentage: G
414
414
  });
415
415
  }
416
416
  if (u.current) {
417
- _();
417
+ b();
418
418
  return;
419
419
  }
420
420
  const D = h(I, e);
@@ -422,23 +422,23 @@ const yn = () => {
422
422
  } catch (S) {
423
423
  d(!0), S instanceof Error && f(S);
424
424
  } finally {
425
- b.height = 0, b.width = 0;
425
+ _.height = 0, _.width = 0;
426
426
  }
427
427
  },
428
- [t, e, u, _, h, w]
428
+ [t, e, u, b, h, w]
429
429
  );
430
430
  return A(() => {
431
431
  const l = () => {
432
- _(), T();
432
+ b(), T();
433
433
  };
434
434
  return window.addEventListener("afterprint", l, !0), () => {
435
435
  window.removeEventListener("afterprint", l, !0);
436
436
  };
437
- }, [T, _]), {
437
+ }, [T, b]), {
438
438
  print: p,
439
439
  cancel: P,
440
440
  progress: n,
441
- isComplete: r,
441
+ isComplete: o,
442
442
  isError: c,
443
443
  error: s,
444
444
  showDefaultProgress: m
@@ -460,20 +460,20 @@ const yn = () => {
460
460
  console.error("Error in setOnError callback:", e);
461
461
  }
462
462
  }
463
- }), bc = ({ children: t }) => {
464
- const [e, n] = H(null), [o, r] = H(null), { print: a, cancel: c, progress: d, isComplete: s, isError: f, error: m, showDefaultProgress: C } = Uo(), u = N((w) => {
465
- w && typeof w == "function" && r(() => w);
463
+ }), _c = ({ children: t }) => {
464
+ const [e, n] = H(null), [r, o] = H(null), { print: a, cancel: c, progress: d, isComplete: s, isError: f, error: m, showDefaultProgress: C } = Vr(), u = N((w) => {
465
+ w && typeof w == "function" && o(() => w);
466
466
  }, []), T = (w) => {
467
467
  m && w(m);
468
- }, _ = N(
468
+ }, b = N(
469
469
  (w) => {
470
470
  n(() => w);
471
471
  },
472
472
  [d, e]
473
473
  );
474
474
  A(() => {
475
- s && o && P();
476
- }, [s, o]), A(() => {
475
+ s && r && P();
476
+ }, [s, r]), A(() => {
477
477
  f && T((w) => {
478
478
  console.error(w);
479
479
  });
@@ -481,11 +481,11 @@ const yn = () => {
481
481
  d && e && e(d);
482
482
  }, [d, e]);
483
483
  const P = () => {
484
- o && (o(), r(null));
484
+ r && (r(), o(null));
485
485
  }, y = {
486
486
  print: a,
487
487
  cancel: c,
488
- setOnProgress: _,
488
+ setOnProgress: b,
489
489
  setOnComplete: u,
490
490
  setOnError: T,
491
491
  progress: d,
@@ -493,17 +493,17 @@ const yn = () => {
493
493
  };
494
494
  return /* @__PURE__ */ i(xn.Provider, { value: y, children: t });
495
495
  }, st = () => {
496
- const t = je(xn);
496
+ const t = Ze(xn);
497
497
  if (!t)
498
498
  throw new Error("usePrintContext must be used within a PrintProvider");
499
499
  return t;
500
- }, Vo = () => {
501
- const [t, e] = H({}), { pages: n } = oe(), o = W(() => Object.keys(t).length, [t]), r = N(
500
+ }, qr = () => {
501
+ const [t, e] = H({}), { pages: n } = re(), r = W(() => Object.keys(t).length, [t]), o = N(
502
502
  (c) => {
503
503
  if (!n.size)
504
504
  return;
505
505
  const d = c > n.size ? n.size : c, f = Array.from(n.values()).slice(0, d).map((m) => {
506
- const { thumbnailViewport: C, scale: u } = go(m.page, m.defaultRotation);
506
+ const { thumbnailViewport: C, scale: u } = gr(m.page, m.defaultRotation);
507
507
  return {
508
508
  scale: u,
509
509
  page: m.page,
@@ -517,8 +517,8 @@ const yn = () => {
517
517
  [n]
518
518
  );
519
519
  A(() => {
520
- r(10);
521
- }, [r]);
520
+ o(10);
521
+ }, [o]);
522
522
  const a = N(
523
523
  (c) => {
524
524
  if (!n)
@@ -537,7 +537,7 @@ const yn = () => {
537
537
  },
538
538
  [n]
539
539
  );
540
- return { thumbnailPages: t, addPage: a, addToPage: r, thumbnailLength: o };
540
+ return { thumbnailPages: t, addPage: a, addToPage: o, thumbnailLength: r };
541
541
  }, Sn = Be({
542
542
  thumbnailPages: {},
543
543
  addPage: (t) => {
@@ -548,20 +548,20 @@ const yn = () => {
548
548
  setActive: (t) => {
549
549
  },
550
550
  active: !1
551
- }), Rn = () => je(Sn), Pc = ({
551
+ }), Rn = () => Ze(Sn), Pc = ({
552
552
  children: t,
553
553
  initialThumbnailsVisible: e
554
554
  }) => {
555
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = Vo(), [c, d] = H(e);
555
+ const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = qr(), [c, d] = H(e);
556
556
  return /* @__PURE__ */ i(
557
557
  Sn.Provider,
558
558
  {
559
- value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: c, setActive: d },
559
+ value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a, active: c, setActive: d },
560
560
  children: t
561
561
  }
562
562
  );
563
- }, Bo = (t = {}, e = "") => {
564
- const [n, o] = H(e), [r, a] = H(!1), { pdf: c, pages: d } = oe(), { widths: s, heights: f } = Ze(), m = M(!n), { currentZoom: C } = rt(), [u, T] = H([]), { setFocusedPage: _ } = ce(), { columnCount: P } = He(), { pageRotate: y } = it(), [w, g] = H(0), { pageScrollElementRef: h, virtualScrollableElementRef: p } = ot(), { scrollMode: l } = Ae(), { pagesRef: v } = Te(), b = M({}), I = M(0), S = W(() => w === 0 ? null : u[w - 1], [w, u]), x = W(() => u.length, [u]), R = N(
563
+ }, Br = (t = {}, e = "") => {
564
+ const [n, r] = H(e), [o, a] = H(!1), { pdf: c, pages: d } = re(), { widths: s, heights: f } = je(), m = M(!n), { currentZoom: C } = ot(), [u, T] = H([]), { setFocusedPage: b } = ce(), { columnCount: P } = $e(), { pageRotate: y } = it(), [w, g] = H(0), { pageScrollElementRef: h, virtualScrollableElementRef: p } = rt(), { scrollMode: l } = Ae(), { pagesRef: v } = Te(), _ = M({}), I = M(0), S = W(() => w === 0 ? null : u[w - 1], [w, u]), x = W(() => u.length, [u]), R = N(
565
565
  (E) => {
566
566
  if (E === 0)
567
567
  return;
@@ -572,24 +572,24 @@ const yn = () => {
572
572
  if (!F || !v)
573
573
  return;
574
574
  const G = d.get(L.page);
575
- if (l === ie.PAGE_SCROLLING && _(L.page), !G)
575
+ if (l === ie.PAGE_SCROLLING && b(L.page), !G)
576
576
  return;
577
- let q = 0, U = 0;
577
+ let U = 0, V = 0;
578
578
  if (l === ie.VERTICAL_SCROLLING) {
579
579
  const ee = L.page - 1, Y = P, we = ee % Y, me = Math.floor(ee / Y);
580
- q = ke(f, me), U = ke(s, we);
580
+ U = ke(f, me), V = ke(s, we);
581
581
  }
582
- l === ie.HORIZONTAL_SCROLLING && (U = s.slice(0, L.page - 1).reduce((ee, Y) => ee + Y, 0));
582
+ l === ie.HORIZONTAL_SCROLLING && (V = s.slice(0, L.page - 1).reduce((ee, Y) => ee + Y, 0));
583
583
  const B = {
584
584
  height: f[L.page - 1],
585
585
  width: s[L.page - 1]
586
- }, j = y[L.page], { leftInPage: ae, topInPage: $ } = mo(
586
+ }, Z = y[L.page], { leftInPage: ae, topInPage: $ } = mr(
587
587
  B,
588
588
  v,
589
589
  L.rect,
590
590
  C,
591
- j
592
- ), Q = U + ae, J = q + $, te = {
591
+ Z
592
+ ), Q = V + ae, J = U + $, te = {
593
593
  left: Math.max(Q, 0),
594
594
  top: Math.max(J, 0)
595
595
  };
@@ -600,7 +600,7 @@ const yn = () => {
600
600
  },
601
601
  [
602
602
  d,
603
- _,
603
+ b,
604
604
  s,
605
605
  f,
606
606
  l,
@@ -630,8 +630,8 @@ const yn = () => {
630
630
  for (let G = 1; G <= L; G++) {
631
631
  if (m.current)
632
632
  throw "close pop over";
633
- const q = await E.getPage(G);
634
- F[G.toString()] = await q.getTextContent();
633
+ const U = await E.getPage(G);
634
+ F[G.toString()] = await U.getTextContent();
635
635
  }
636
636
  return F;
637
637
  }, []);
@@ -641,15 +641,15 @@ const yn = () => {
641
641
  return;
642
642
  }
643
643
  m.current = !1, a(!0), T([]), g(0), z(c).then((E) => {
644
- b.current = E;
645
- const F = Object.keys(E).reduce((G, q) => {
646
- const U = Tr(
644
+ _.current = E;
645
+ const F = Object.keys(E).reduce((G, U) => {
646
+ const V = Co(
647
647
  [n],
648
- E[q],
649
- Number(q) - 1,
648
+ E[U],
649
+ Number(U) - 1,
650
650
  t
651
- ).map((B, j) => ({ ...B, page: Number(q), pageMatchIdx: j }));
652
- return [...G, ...U];
651
+ ).map((B, Z) => ({ ...B, page: Number(U), pageMatchIdx: Z }));
652
+ return [...G, ...V];
653
653
  }, []);
654
654
  T(F), g(F.length ? 1 : 0);
655
655
  }).catch(() => {
@@ -657,8 +657,8 @@ const yn = () => {
657
657
  }).finally(() => a(!1));
658
658
  }, [n, z, c, t]), {
659
659
  search: n,
660
- setSearch: o,
661
- loading: r,
660
+ setSearch: r,
661
+ loading: o,
662
662
  matches: u,
663
663
  totalMatches: x,
664
664
  currentMatchPosition: w,
@@ -687,8 +687,8 @@ const yn = () => {
687
687
  children: t,
688
688
  initialSearch: e
689
689
  }) => {
690
- const [n, o] = H({}), {
691
- loading: r,
690
+ const [n, r] = H({}), {
691
+ loading: o,
692
692
  setSearch: a,
693
693
  totalMatches: c,
694
694
  currentMatchPosition: d,
@@ -698,14 +698,14 @@ const yn = () => {
698
698
  nextMatch: C,
699
699
  prevMatch: u,
700
700
  setCurrentMatchPosition: T
701
- } = Bo(n, e);
701
+ } = Br(n, e);
702
702
  return /* @__PURE__ */ i(
703
703
  Ln.Provider,
704
704
  {
705
705
  value: {
706
706
  searchOptions: n,
707
- setSearchOptions: o,
708
- loading: r,
707
+ setSearchOptions: r,
708
+ loading: o,
709
709
  setSearch: a,
710
710
  totalMatches: c,
711
711
  currentMatchPosition: d,
@@ -719,10 +719,10 @@ const yn = () => {
719
719
  children: t
720
720
  }
721
721
  );
722
- }, At = () => je(Ln), En = Be(null), Cc = ({ children: t }) => {
723
- const e = M(!1), [n, o] = H([]), r = N((s) => {
724
- o((f) => [...f, { id: s.page.pageNumber.toString(), data: s, priority: 0 }]);
725
- }, []), a = W(() => new Rr(r), [r]), { focusedPage: c } = ce(), d = N((s) => (e.current = !0, Lr(
722
+ }, At = () => Ze(Ln), En = Be(null), Cc = ({ children: t }) => {
723
+ const e = M(!1), [n, r] = H([]), o = N((s) => {
724
+ r((f) => [...f, { id: s.page.pageNumber.toString(), data: s, priority: 0 }]);
725
+ }, []), a = W(() => new Lo(o), [o]), { focusedPage: c } = ce(), d = N((s) => (e.current = !0, Eo(
726
726
  s.data.page,
727
727
  s.data.canvasElem,
728
728
  s.data.options
@@ -740,12 +740,12 @@ const yn = () => {
740
740
  const f = a.dequeue();
741
741
  f ? d(f).finally(() => {
742
742
  s();
743
- }) : (e.current = !1, o(a.peekAll()));
743
+ }) : (e.current = !1, r(a.peekAll()));
744
744
  };
745
745
  s();
746
746
  }, [a, d, n]), /* @__PURE__ */ i(En.Provider, { value: a, children: t });
747
747
  }, Nn = () => {
748
- const t = je(En);
748
+ const t = Ze(En);
749
749
  if (!t)
750
750
  throw new Error("RenderQueue not found");
751
751
  return t;
@@ -764,17 +764,17 @@ const yn = () => {
764
764
  "rp-page-wrapper": "_rp-page-wrapper_ii91u_1",
765
765
  "rp-page": "_rp-page_ii91u_1",
766
766
  "rp-loader-wrapper": "_rp-loader-wrapper_ii91u_15"
767
- }, jo = (t) => {
768
- const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = M(null), { pages: a } = oe(), { pageRotate: c } = it(), d = M(), { currentZoom: s } = rt(), { interactiveForm: f } = xt(), m = Nn(), C = M(`page-${e}`);
767
+ }, Zr = (t) => {
768
+ const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = M(null), { pages: a } = re(), { pageRotate: c } = it(), d = M(), { currentZoom: s } = ot(), { interactiveForm: f } = xt(), m = Nn(), C = M(`page-${e}`);
769
769
  return A(() => {
770
770
  if (!a || s === 0)
771
771
  return;
772
772
  const u = a.get(e);
773
- if (r.current && u) {
774
- const T = r.current;
773
+ if (o.current && u) {
774
+ const T = o.current;
775
775
  T.hidden = !0;
776
- const _ = d.current;
777
- _ && _.cancel(), o && o(), m.enqueue(
776
+ const b = d.current;
777
+ b && b.cancel(), r && r(), m.enqueue(
778
778
  C.current,
779
779
  {
780
780
  page: u.page,
@@ -793,58 +793,58 @@ const yn = () => {
793
793
  return () => {
794
794
  m.removeQueue(C.current);
795
795
  };
796
- }, [a, e, c, s, o, n, m, f]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
797
- }, Zo = "_selecting_1oep2_10", Ko = "_markedContent_1oep2_33", be = {
796
+ }, [a, e, c, s, r, n, m, f]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
797
+ }, jr = "_selecting_1oep2_10", Kr = "_markedContent_1oep2_33", _e = {
798
798
  "rp-text-layer": "_rp-text-layer_1oep2_1",
799
- selecting: Zo,
800
- markedContent: Ko,
799
+ selecting: jr,
800
+ markedContent: Kr,
801
801
  "rp-text-layer-text": "_rp-text-layer-text_1oep2_52"
802
- }, Xo = (t) => {
803
- const { pageNumber: e } = t, { pages: n } = oe(), o = M(null), { matches: r, currentMatch: a } = At(), [c, d] = H(
802
+ }, Xr = (t) => {
803
+ const { pageNumber: e } = t, { pages: n } = re(), r = M(null), { matches: o, currentMatch: a } = At(), [c, d] = H(
804
804
  []
805
- ), s = M(), f = M(), m = M([]), C = W(() => r.filter((g) => g.pageIndex === e - 1), [r, e]), u = N(
805
+ ), s = M(), f = M(), m = M([]), C = W(() => o.filter((g) => g.pageIndex === e - 1), [o, e]), u = N(
806
806
  (g, h, p = !1) => {
807
- if (p && Cr(g, h), !C.length) {
807
+ if (p && yo(g, h), !C.length) {
808
808
  m.current = [], d([]);
809
809
  return;
810
810
  }
811
- const l = yr(C, g, h);
811
+ const l = Io(C, g, h);
812
812
  d(l);
813
813
  },
814
814
  [C]
815
- ), T = M(), _ = M(!1), P = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
815
+ ), T = M(), b = M(!1), P = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
816
816
  A(() => ((() => {
817
817
  if (T.current)
818
818
  return;
819
819
  T.current = new AbortController();
820
820
  const { signal: h } = T.current, p = () => {
821
821
  P().forEach((v) => {
822
- const b = v.querySelector(".endOfContent");
823
- b && (v.appendChild(b), b.style.width = "", b.style.height = "", v.classList.remove(be.selecting));
822
+ const _ = v.querySelector(".endOfContent");
823
+ _ && (v.appendChild(_), _.style.width = "", _.style.height = "", v.classList.remove(_e.selecting));
824
824
  });
825
825
  };
826
826
  document.addEventListener(
827
827
  "pointerdown",
828
828
  () => {
829
- _.current = !0;
829
+ b.current = !0;
830
830
  },
831
831
  { signal: h }
832
832
  ), document.addEventListener(
833
833
  "pointerup",
834
834
  () => {
835
- _.current = !1, p();
835
+ b.current = !1, p();
836
836
  },
837
837
  { signal: h }
838
838
  ), window.addEventListener(
839
839
  "blur",
840
840
  () => {
841
- _.current = !1, p();
841
+ b.current = !1, p();
842
842
  },
843
843
  { signal: h }
844
844
  ), document.addEventListener(
845
845
  "keyup",
846
846
  () => {
847
- _.current || p();
847
+ b.current || p();
848
848
  },
849
849
  { signal: h }
850
850
  );
@@ -860,26 +860,26 @@ const yn = () => {
860
860
  p();
861
861
  return;
862
862
  }
863
- const b = /* @__PURE__ */ new Set();
863
+ const _ = /* @__PURE__ */ new Set();
864
864
  for (let E = 0; E < v.rangeCount; E++) {
865
865
  const L = v.getRangeAt(E);
866
866
  P().forEach((F) => {
867
- L.intersectsNode(F) && !b.has(F) && b.add(F);
867
+ L.intersectsNode(F) && !_.has(F) && _.add(F);
868
868
  });
869
869
  }
870
870
  P().forEach((E) => {
871
- if (b.has(E))
872
- E.classList.add(be.selecting);
871
+ if (_.has(E))
872
+ E.classList.add(_e.selecting);
873
873
  else {
874
874
  const L = E.querySelector(".endOfContent");
875
- L && (E.appendChild(L), L.style.width = "", L.style.height = "", E.classList.remove(be.selecting));
875
+ L && (E.appendChild(L), L.style.width = "", L.style.height = "", E.classList.remove(_e.selecting));
876
876
  }
877
877
  });
878
878
  const I = v.getRangeAt(0);
879
879
  let x = l && (I.compareBoundaryPoints(Range.END_TO_END, l) === 0 || I.compareBoundaryPoints(Range.START_TO_END, l) === 0) ? I.startContainer : I.endContainer;
880
880
  x.nodeType === Node.TEXT_NODE && (x = x.parentNode);
881
881
  const R = (D = x.parentElement) == null ? void 0 : D.closest(
882
- be["rp-text-layer"]
882
+ _e["rp-text-layer"]
883
883
  ), O = R == null ? void 0 : R.querySelector(".endOfContent");
884
884
  O && R && (O.style.width = R.style.width, O.style.height = R.style.height, (z = x.parentElement) == null || z.insertBefore(O, x.nextSibling)), l = I.cloneRange();
885
885
  },
@@ -890,9 +890,9 @@ const yn = () => {
890
890
  (h = T.current) == null || h.abort(), T.current = void 0;
891
891
  }), [P]);
892
892
  const y = N(() => {
893
- o.current && o.current.classList.add(be.selecting);
893
+ r.current && r.current.classList.add(_e.selecting);
894
894
  }, []), w = N(() => {
895
- o.current && o.current.classList.remove(be.selecting);
895
+ r.current && r.current.classList.remove(_e.selecting);
896
896
  }, []);
897
897
  return A(() => {
898
898
  if (m.current.forEach((p) => {
@@ -910,25 +910,25 @@ const yn = () => {
910
910
  }));
911
911
  }, [a, c, C]), A(() => {
912
912
  const g = n.get(e);
913
- if (!g || !o.current)
913
+ if (!g || !r.current)
914
914
  return;
915
- const h = o.current;
915
+ const h = r.current;
916
916
  return s.current && s.current.cancel(), g.page.getTextContent().then((p) => {
917
917
  const l = g.page.getViewport({ scale: 1 });
918
- return s.current = new Ar.TextLayer({
918
+ return s.current = new zo.TextLayer({
919
919
  viewport: l,
920
920
  textContentSource: p,
921
921
  container: h
922
922
  }), f.current = p, h && (h.innerText = ""), s.current.render();
923
923
  }).then(() => {
924
- var b, I;
924
+ var _, I;
925
925
  [].slice.call(h.children).forEach((S) => {
926
- S.classList.add(be["rp-text-layer-text"]), S.setAttribute("data-rp", "rp-text-layer-text");
926
+ S.classList.add(_e["rp-text-layer-text"]), S.setAttribute("data-rp", "rp-text-layer-text");
927
927
  });
928
- const l = (b = s.current) == null ? void 0 : b.textDivs;
928
+ const l = (_ = s.current) == null ? void 0 : _.textDivs;
929
929
  l && f.current && u(f.current, l);
930
930
  const v = document.createElement("div");
931
- v.className = "endOfContent", (I = o.current) == null || I.appendChild(v);
931
+ v.className = "endOfContent", (I = r.current) == null || I.appendChild(v);
932
932
  }).catch(() => {
933
933
  }), () => {
934
934
  var p;
@@ -936,8 +936,8 @@ const yn = () => {
936
936
  };
937
937
  }, [n, e]), A(() => {
938
938
  var p;
939
- [].slice.call(o.current.children).forEach((l) => {
940
- l.classList.add(be["rp-text-layer-text"]);
939
+ [].slice.call(r.current.children).forEach((l) => {
940
+ l.classList.add(_e["rp-text-layer-text"]);
941
941
  });
942
942
  const h = (p = s.current) == null ? void 0 : p.textDivs;
943
943
  h && f.current && u(f.current, h, !0);
@@ -946,38 +946,38 @@ const yn = () => {
946
946
  {
947
947
  "data-rp-text-layer": !0,
948
948
  "data-rp": `page-${e}-textLayer`,
949
- className: be["rp-text-layer"],
950
- ref: o,
949
+ className: _e["rp-text-layer"],
950
+ ref: r,
951
951
  onMouseDown: y,
952
952
  onMouseUp: w
953
953
  }
954
954
  );
955
- }, Qo = {
955
+ }, Qr = {
956
956
  "rp-annotation-layer": "_rp-annotation-layer_1udza_1"
957
957
  };
958
- let Yo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
959
- const Jo = (t) => {
960
- const { pageNumber: e } = t, n = M(null), { pages: o, pdf: r } = oe(), { interactiveForm: a } = xt(), c = M(), [d, s] = H(), { goToPage: f } = ce(), { scrollMode: m } = Ae(), { print: C } = st(), { download: u } = Xn(), T = M(null), _ = W(() => o.get(e), [o, e]), P = W(() => _ == null ? void 0 : _.page.getViewport(), [_]);
958
+ let Yr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
959
+ const Jr = (t) => {
960
+ const { pageNumber: e } = t, n = M(null), { pages: r, pdf: o } = re(), { interactiveForm: a } = xt(), c = M(), [d, s] = H(), { goToPage: f } = ce(), { scrollMode: m } = Ae(), { print: C } = st(), { download: u } = Xn(), T = M(null), b = W(() => r.get(e), [r, e]), P = W(() => b == null ? void 0 : b.page.getViewport(), [b]);
961
961
  A(() => {
962
962
  c.current && (c.current.div.replaceChildren(), c.current = void 0);
963
- }, [r]), A(() => {
964
- _ && _.page.getAnnotations().then((w) => {
963
+ }, [o]), A(() => {
964
+ b && b.page.getAnnotations().then((w) => {
965
965
  c.current = void 0, s(w), n.current && (n.current.innerText = "");
966
966
  });
967
- }, [_]);
967
+ }, [b]);
968
968
  const y = N(
969
969
  (w) => {
970
- !d || !r || (Yr(w), Jr(w, r, d).then((g) => {
970
+ !d || !o || (Jo(w), er(w, o, d).then((g) => {
971
971
  var h, p;
972
972
  ((h = g == null ? void 0 : g.data) == null ? void 0 : h.action) === "Print" ? C() : ((p = g == null ? void 0 : g.data) == null ? void 0 : p.action) === "SaveAs" && u();
973
973
  }));
974
974
  },
975
- [r, d, m, C, u]
975
+ [o, d, m, C, u]
976
976
  );
977
977
  return A(() => {
978
- if (!_ || !d)
978
+ if (!b || !d)
979
979
  return;
980
- const w = _.page.getViewport();
980
+ const w = b.page.getViewport();
981
981
  if (c.current) {
982
982
  c.current.update({
983
983
  viewport: w.clone({ dontFlip: !0 })
@@ -989,45 +989,45 @@ const Jo = (t) => {
989
989
  const { annotationType: v } = l;
990
990
  switch (v) {
991
991
  case $t.Link:
992
- to(l);
992
+ nr(l);
993
993
  break;
994
994
  case $t.Widget:
995
- eo(l, w, g);
995
+ tr(l, w, g);
996
996
  break;
997
997
  }
998
998
  }
999
999
  const h = new AbortController();
1000
1000
  return (async () => {
1001
- var b;
1002
- c.current && (c.current.div.replaceChildren(), c.current = void 0), n.current && (n.current.innerText = ""), c.current = new kr({
1001
+ var _;
1002
+ c.current && (c.current.div.replaceChildren(), c.current = void 0), n.current && (n.current.innerText = ""), c.current = new Mo({
1003
1003
  div: n.current,
1004
1004
  accessibilityManager: void 0,
1005
1005
  annotationCanvasMap: void 0,
1006
1006
  annotationEditorUIManager: void 0,
1007
1007
  structTreeLayer: null,
1008
- page: _.page,
1008
+ page: b.page,
1009
1009
  viewport: w.clone({ dontFlip: !0 })
1010
1010
  }), n.current && Kt(n.current, y);
1011
- const l = await (r == null ? void 0 : r.hasJSActions()), v = await (r == null ? void 0 : r.getFieldObjects());
1011
+ const l = await (o == null ? void 0 : o.hasJSActions()), v = await (o == null ? void 0 : o.getFieldObjects());
1012
1012
  if (h.signal.aborted)
1013
1013
  throw "abort";
1014
- return (b = c.current) == null ? void 0 : b.render({
1014
+ return (_ = c.current) == null ? void 0 : _.render({
1015
1015
  annotations: d,
1016
- annotationStorage: r == null ? void 0 : r.annotationStorage,
1016
+ annotationStorage: o == null ? void 0 : o.annotationStorage,
1017
1017
  hasJSActions: l,
1018
1018
  fieldObjects: v,
1019
1019
  div: n.current,
1020
1020
  viewport: w.clone({ dontFlip: !0 }),
1021
- page: _.page,
1022
- imageResourcesPath: Yo,
1021
+ page: b.page,
1022
+ imageResourcesPath: Yr,
1023
1023
  renderForms: a ?? !0,
1024
- linkService: new Qr(r, f),
1024
+ linkService: new Yo(o, f),
1025
1025
  downloadManager: null,
1026
1026
  enableScripting: !1
1027
1027
  });
1028
1028
  })().then(() => {
1029
- n.current && (no(n.current, y), jt(n.current), Zt(n.current), T.current && T.current.disconnect(), T.current = new MutationObserver(() => {
1030
- n.current && (jt(n.current), Zt(n.current));
1029
+ n.current && (or(n.current, y), Zt(n.current), jt(n.current), T.current && T.current.disconnect(), T.current = new MutationObserver(() => {
1030
+ n.current && (Zt(n.current), jt(n.current));
1031
1031
  }), T.current.observe(n.current, {
1032
1032
  childList: !0,
1033
1033
  subtree: !0,
@@ -1042,34 +1042,34 @@ const Jo = (t) => {
1042
1042
  }), () => {
1043
1043
  h.abort("clear"), n.current && Kt(n.current, y), T.current && (T.current.disconnect(), T.current = null);
1044
1044
  };
1045
- }, [r, d, y, f]), /* @__PURE__ */ i(
1045
+ }, [o, d, y, f]), /* @__PURE__ */ i(
1046
1046
  "div",
1047
1047
  {
1048
1048
  "data-rp": `page-${e}-annotationLayer`,
1049
1049
  style: { width: `${P == null ? void 0 : P.width}px`, height: `${P == null ? void 0 : P.height}px` },
1050
- className: Qo["rp-annotation-layer"],
1050
+ className: Qr["rp-annotation-layer"],
1051
1051
  ref: n
1052
1052
  }
1053
1053
  );
1054
1054
  }, ei = {
1055
1055
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1056
1056
  }, ti = ({ pageNumber: t, viewport: e }) => {
1057
- const [n, o] = H(), { pages: r } = oe(), { highlightKeywords: a } = xr(), c = !0, d = M(null), [s, f] = H(null), [m, C] = H([]);
1057
+ const [n, r] = H(), { pages: o } = re(), { highlightKeywords: a } = So(), c = !0, d = M(null), [s, f] = H(null), [m, C] = H([]);
1058
1058
  A(() => {
1059
1059
  d.current && f(d.current.parentElement);
1060
1060
  }, [d]), A(() => {
1061
1061
  (async () => {
1062
- const h = r.get(t);
1062
+ const h = o.get(t);
1063
1063
  if (!h || !d.current)
1064
1064
  return;
1065
1065
  const p = await h.page.getTextContent();
1066
- o(p);
1066
+ r(p);
1067
1067
  })();
1068
- }, [r, t]);
1068
+ }, [o, t]);
1069
1069
  const u = W(() => a ? a.map((g) => {
1070
1070
  var h, p;
1071
1071
  return {
1072
- ...ro(g.keyword, (h = g.options) == null ? void 0 : h.matchCase, (p = g.options) == null ? void 0 : p.wholeWords),
1072
+ ...rr(g.keyword, (h = g.options) == null ? void 0 : h.matchCase, (p = g.options) == null ? void 0 : p.wholeWords),
1073
1073
  color: g.highlightColor
1074
1074
  };
1075
1075
  }) : [], [a]);
@@ -1089,7 +1089,7 @@ const Jo = (t) => {
1089
1089
  }).observe(g, { childList: !0, subtree: !0 });
1090
1090
  });
1091
1091
  }
1092
- function _(g) {
1092
+ function b(g) {
1093
1093
  return new Promise((h) => {
1094
1094
  const p = g.querySelectorAll(
1095
1095
  '[data-rp="rp-text-layer-text"]'
@@ -1098,32 +1098,32 @@ const Jo = (t) => {
1098
1098
  h(Array.from(p));
1099
1099
  return;
1100
1100
  }
1101
- new MutationObserver((v, b) => {
1101
+ new MutationObserver((v, _) => {
1102
1102
  const I = g.querySelectorAll(
1103
1103
  ".rp-text-layer-text"
1104
1104
  );
1105
- I.length && (h(Array.from(I)), b.disconnect());
1105
+ I.length && (h(Array.from(I)), _.disconnect());
1106
1106
  }).observe(g, { childList: !0, subtree: !0 });
1107
1107
  });
1108
1108
  }
1109
1109
  const P = (g, h, p, l) => {
1110
- var U;
1111
- const v = document.createRange(), b = p.firstChild;
1112
- if (!b || b.nodeType !== Node.TEXT_NODE)
1110
+ var V;
1111
+ const v = document.createRange(), _ = p.firstChild;
1112
+ if (!_ || _.nodeType !== Node.TEXT_NODE)
1113
1113
  return null;
1114
- const I = ((U = b.textContent) == null ? void 0 : U.length) ?? 0, S = l[0].charIdxInSpan, x = l.length === 1 ? S : l[l.length - 1].charIdxInSpan;
1114
+ const I = ((V = _.textContent) == null ? void 0 : V.length) ?? 0, S = l[0].charIdxInSpan, x = l.length === 1 ? S : l[l.length - 1].charIdxInSpan;
1115
1115
  if (S > I || x + 1 > I)
1116
1116
  return null;
1117
- v.setStart(b, S), v.setEnd(b, x + 1);
1117
+ v.setStart(_, S), v.setEnd(_, x + 1);
1118
1118
  const R = document.createElement("span");
1119
1119
  R.style.width = "auto", v.surroundContents(R);
1120
- const O = R.getBoundingClientRect(), D = g.getBoundingClientRect(), z = D.height, E = D.width, L = 100 * (O.left - D.left) / E, F = 100 * (O.top - D.top) / z, G = 100 * O.height / z, q = 100 * O.width / E;
1121
- return io(R), {
1120
+ const O = R.getBoundingClientRect(), D = g.getBoundingClientRect(), z = D.height, E = D.width, L = 100 * (O.left - D.left) / E, F = 100 * (O.top - D.top) / z, G = 100 * O.height / z, U = 100 * O.width / E;
1121
+ return ar(R), {
1122
1122
  keywordStr: h,
1123
1123
  left: L,
1124
1124
  top: F,
1125
1125
  height: G,
1126
- width: q,
1126
+ width: U,
1127
1127
  pageHeight: z,
1128
1128
  pageWidth: E
1129
1129
  };
@@ -1132,7 +1132,7 @@ const Jo = (t) => {
1132
1132
  const p = await T(s, g);
1133
1133
  if (!p)
1134
1134
  return;
1135
- const l = await _(p);
1135
+ const l = await b(p);
1136
1136
  if (l.length) {
1137
1137
  const v = l.map((I) => I.tagName === "BR" ? " " : I.textContent).reduce(
1138
1138
  (I, S, x) => I.concat(
@@ -1149,15 +1149,15 @@ const Jo = (t) => {
1149
1149
  spanIdx: 0
1150
1150
  }
1151
1151
  ]
1152
- ).slice(1), b = w(p, h, l, v);
1153
- C(b);
1152
+ ).slice(1), _ = w(p, h, l, v);
1153
+ C(_);
1154
1154
  }
1155
1155
  }
1156
1156
  const w = (g, h, p, l) => {
1157
1157
  const v = h.length;
1158
1158
  if (!l.length || !v)
1159
1159
  return [];
1160
- const b = [], I = l.map((S) => S.char).join("");
1160
+ const _ = [], I = l.map((S) => S.char).join("");
1161
1161
  return u.forEach((S) => {
1162
1162
  const { keyword: x, regExp: R, wholeWords: O, color: D } = S, z = x;
1163
1163
  if (!z.trim())
@@ -1166,38 +1166,38 @@ const Jo = (t) => {
1166
1166
  let L;
1167
1167
  const F = [];
1168
1168
  for (; (L = E.exec(I)) !== null; )
1169
- O && !Ir(I, L.index, L[0].length) || F.push({
1169
+ O && !xo(I, L.index, L[0].length) || F.push({
1170
1170
  keyword: E,
1171
1171
  startIndex: L.index,
1172
1172
  endIndex: E.lastIndex
1173
1173
  });
1174
- const G = F.map((q) => ({
1175
- keyword: q.keyword,
1176
- indexes: l.slice(q.startIndex, q.endIndex),
1174
+ const G = F.map((U) => ({
1175
+ keyword: U.keyword,
1176
+ indexes: l.slice(U.startIndex, U.endIndex),
1177
1177
  color: D
1178
1178
  }));
1179
- for (const q of G) {
1180
- const U = q.indexes.reduce(
1181
- (B, j) => (B[j.spanIdx] = (B[j.spanIdx] || []).concat([j]), B),
1179
+ for (const U of G) {
1180
+ const V = U.indexes.reduce(
1181
+ (B, Z) => (B[Z.spanIdx] = (B[Z.spanIdx] || []).concat([Z]), B),
1182
1182
  {}
1183
1183
  );
1184
- for (const B of Object.values(U))
1184
+ for (const B of Object.values(V))
1185
1185
  if (B.length !== 1 || B[0].char.trim() !== "") {
1186
- const j = B, ae = p[j[0].spanIdx], $ = P(
1186
+ const Z = B, ae = p[Z[0].spanIdx], $ = P(
1187
1187
  g,
1188
1188
  z,
1189
1189
  ae,
1190
- j
1190
+ Z
1191
1191
  );
1192
1192
  if ($) {
1193
1193
  const { left: Q, top: J } = $;
1194
- if (b.find((ee) => ee.left === Q && ee.top === J))
1194
+ if (_.find((ee) => ee.left === Q && ee.top === J))
1195
1195
  continue;
1196
- b.push({ ...$, highlightColor: q.color });
1196
+ _.push({ ...$, highlightColor: U.color });
1197
1197
  }
1198
1198
  }
1199
1199
  }
1200
- }), b.sort(oo), b;
1200
+ }), _.sort(ir), _;
1201
1201
  };
1202
1202
  return A(() => {
1203
1203
  (async () => {
@@ -1225,8 +1225,8 @@ const Jo = (t) => {
1225
1225
  },
1226
1226
  h
1227
1227
  )) }) });
1228
- }, Ve = at((t, e) => {
1229
- const { pageNumber: n, style: o, ...r } = t, { pages: a } = oe(), { pageRotate: c } = it(), { textLayer: d } = _r(), { currentZoom: s } = rt(), { LoaderImageComponent: f } = St(), m = M(a.get(n)), [C, u] = H(!1), T = M(null), [_, P] = H({
1228
+ }, He = at((t, e) => {
1229
+ const { pageNumber: n, style: r, ...o } = t, { pages: a } = re(), { pageRotate: c } = it(), { textLayer: d } = _o(), { currentZoom: s } = ot(), { LoaderImageComponent: f } = St(), m = M(a.get(n)), [C, u] = H(!1), T = M(null), [b, P] = H({
1230
1230
  width: 0,
1231
1231
  height: 0
1232
1232
  });
@@ -1244,14 +1244,14 @@ const Jo = (t) => {
1244
1244
  const w = W(() => {
1245
1245
  switch (y) {
1246
1246
  case 90:
1247
- return `${_.width / 2}px ${_.width / 2}px`;
1247
+ return `${b.width / 2}px ${b.width / 2}px`;
1248
1248
  case -90:
1249
1249
  case 270:
1250
- return `${_.height / 2}px ${_.height / 2}px`;
1250
+ return `${b.height / 2}px ${b.height / 2}px`;
1251
1251
  default:
1252
1252
  return "center";
1253
1253
  }
1254
- }, [y, _]), g = N(() => {
1254
+ }, [y, b]), g = N(() => {
1255
1255
  u(!0);
1256
1256
  }, []), h = N(() => {
1257
1257
  u(!1);
@@ -1262,9 +1262,9 @@ const Jo = (t) => {
1262
1262
  ref: T,
1263
1263
  id: `page-${n}`,
1264
1264
  "data-rp": `page-${n}`,
1265
- ...r,
1265
+ ...o,
1266
1266
  style: {
1267
- ...o,
1267
+ ...r,
1268
1268
  "--rp-rotate": `${y}deg`,
1269
1269
  "--rp-page-rotate-translate": `${w}`,
1270
1270
  "--scale-factor": s
@@ -1274,17 +1274,17 @@ const Jo = (t) => {
1274
1274
  "div",
1275
1275
  {
1276
1276
  style: {
1277
- width: `${_.width}px`,
1278
- height: `${_.height}px`
1277
+ width: `${b.width}px`,
1278
+ height: `${b.height}px`
1279
1279
  },
1280
1280
  className: mt["rp-page"],
1281
1281
  children: [
1282
- /* @__PURE__ */ i(jo, { onLoading: g, onLoaded: h, pageNumber: n }),
1282
+ /* @__PURE__ */ i(Zr, { onLoading: g, onLoaded: h, pageNumber: n }),
1283
1283
  C && f && /* @__PURE__ */ i("div", { className: mt["rp-loader-wrapper"], children: /* @__PURE__ */ i(f, {}) }),
1284
- /* @__PURE__ */ i(ao, { pageNumber: n }),
1285
- d && /* @__PURE__ */ i(Xo, { pageNumber: n }),
1286
- /* @__PURE__ */ i(ti, { pageNumber: n, viewport: _ }),
1287
- /* @__PURE__ */ i(Jo, { pageNumber: n })
1284
+ /* @__PURE__ */ i(sr, { pageNumber: n }),
1285
+ d && /* @__PURE__ */ i(Xr, { pageNumber: n }),
1286
+ /* @__PURE__ */ i(ti, { pageNumber: n, viewport: b }),
1287
+ /* @__PURE__ */ i(Jr, { pageNumber: n })
1288
1288
  ]
1289
1289
  }
1290
1290
  )
@@ -1295,8 +1295,8 @@ function Pt() {
1295
1295
  return Pt = Object.assign ? Object.assign.bind() : function(t) {
1296
1296
  for (var e = 1; e < arguments.length; e++) {
1297
1297
  var n = arguments[e];
1298
- for (var o in n)
1299
- ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
1298
+ for (var r in n)
1299
+ ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
1300
1300
  }
1301
1301
  return t;
1302
1302
  }, Pt.apply(null, arguments);
@@ -1307,8 +1307,8 @@ function Qt(t) {
1307
1307
  return t;
1308
1308
  }
1309
1309
  function Tt(t, e) {
1310
- return Tt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
1311
- return n.__proto__ = o, n;
1310
+ return Tt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1311
+ return n.__proto__ = r, n;
1312
1312
  }, Tt(t, e);
1313
1313
  }
1314
1314
  function ni(t, e) {
@@ -1317,24 +1317,24 @@ function ni(t, e) {
1317
1317
  var Yt = Number.isNaN || function(e) {
1318
1318
  return typeof e == "number" && e !== e;
1319
1319
  };
1320
- function ri(t, e) {
1320
+ function oi(t, e) {
1321
1321
  return !!(t === e || Yt(t) && Yt(e));
1322
1322
  }
1323
- function oi(t, e) {
1323
+ function ri(t, e) {
1324
1324
  if (t.length !== e.length)
1325
1325
  return !1;
1326
1326
  for (var n = 0; n < t.length; n++)
1327
- if (!ri(t[n], e[n]))
1327
+ if (!oi(t[n], e[n]))
1328
1328
  return !1;
1329
1329
  return !0;
1330
1330
  }
1331
1331
  function gt(t, e) {
1332
- e === void 0 && (e = oi);
1333
- var n, o = [], r, a = !1;
1332
+ e === void 0 && (e = ri);
1333
+ var n, r = [], o, a = !1;
1334
1334
  function c() {
1335
1335
  for (var d = [], s = 0; s < arguments.length; s++)
1336
1336
  d[s] = arguments[s];
1337
- return a && n === this && e(d, o) || (r = t.apply(this, d), a = !0, n = this, o = d), r;
1337
+ return a && n === this && e(d, r) || (o = t.apply(this, d), a = !0, n = this, r = d), o;
1338
1338
  }
1339
1339
  return c;
1340
1340
  }
@@ -1342,11 +1342,11 @@ function Jt(t, e) {
1342
1342
  if (t == null)
1343
1343
  return {};
1344
1344
  var n = {};
1345
- for (var o in t)
1346
- if ({}.hasOwnProperty.call(t, o)) {
1347
- if (e.indexOf(o) !== -1)
1345
+ for (var r in t)
1346
+ if ({}.hasOwnProperty.call(t, r)) {
1347
+ if (e.indexOf(r) !== -1)
1348
1348
  continue;
1349
- n[o] = t[o];
1349
+ n[r] = t[r];
1350
1350
  }
1351
1351
  return n;
1352
1352
  }
@@ -1360,13 +1360,13 @@ function tn(t) {
1360
1360
  }
1361
1361
  function ai(t, e) {
1362
1362
  var n = en();
1363
- function o() {
1364
- en() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
1363
+ function r() {
1364
+ en() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
1365
1365
  }
1366
- var r = {
1367
- id: requestAnimationFrame(o)
1366
+ var o = {
1367
+ id: requestAnimationFrame(r)
1368
1368
  };
1369
- return r;
1369
+ return o;
1370
1370
  }
1371
1371
  var vt = -1;
1372
1372
  function si(t) {
@@ -1381,25 +1381,25 @@ function nn(t) {
1381
1381
  if (t === void 0 && (t = !1), ze === null || t) {
1382
1382
  var e = document.createElement("div"), n = e.style;
1383
1383
  n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
1384
- var o = document.createElement("div"), r = o.style;
1385
- return r.width = "100px", r.height = "100px", e.appendChild(o), document.body.appendChild(e), e.scrollLeft > 0 ? ze = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? ze = "negative" : ze = "positive-ascending"), document.body.removeChild(e), ze;
1384
+ var r = document.createElement("div"), o = r.style;
1385
+ return o.width = "100px", o.height = "100px", e.appendChild(r), document.body.appendChild(e), e.scrollLeft > 0 ? ze = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? ze = "negative" : ze = "positive-ascending"), document.body.removeChild(e), ze;
1386
1386
  }
1387
1387
  return ze;
1388
1388
  }
1389
1389
  var ci = 150, li = function(e) {
1390
1390
  var n = e.columnIndex;
1391
1391
  e.data;
1392
- var o = e.rowIndex;
1393
- return o + ":" + n;
1392
+ var r = e.rowIndex;
1393
+ return r + ":" + n;
1394
1394
  }, Ye = null, Je = null, et = null;
1395
1395
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ye = /* @__PURE__ */ new WeakSet(), Je = /* @__PURE__ */ new WeakSet(), et = /* @__PURE__ */ new WeakSet());
1396
1396
  function di(t) {
1397
- var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, s = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, C = t.getRowOffset, u = t.getRowStartIndexForOffset, T = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, y = t.validateProps;
1397
+ var e, n = t.getColumnOffset, r = t.getColumnStartIndexForOffset, o = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, s = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, C = t.getRowOffset, u = t.getRowStartIndexForOffset, T = t.getRowStopIndexForStartIndex, b = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, y = t.validateProps;
1398
1398
  return e = /* @__PURE__ */ function(w) {
1399
1399
  ni(g, w);
1400
1400
  function g(p) {
1401
1401
  var l;
1402
- return l = w.call(this, p) || this, l._instanceProps = _(l.props, Qt(l)), l._resetIsScrollingTimeoutId = null, l._outerRef = void 0, l.state = {
1402
+ return l = w.call(this, p) || this, l._instanceProps = b(l.props, Qt(l)), l._resetIsScrollingTimeoutId = null, l._outerRef = void 0, l.state = {
1403
1403
  instance: Qt(l),
1404
1404
  isScrolling: !1,
1405
1405
  horizontalScrollDirection: "forward",
@@ -1407,10 +1407,10 @@ function di(t) {
1407
1407
  scrollTop: typeof l.props.initialScrollTop == "number" ? l.props.initialScrollTop : 0,
1408
1408
  scrollUpdateWasRequested: !1,
1409
1409
  verticalScrollDirection: "forward"
1410
- }, l._callOnItemsRendered = void 0, l._callOnItemsRendered = gt(function(v, b, I, S, x, R, O, D) {
1410
+ }, l._callOnItemsRendered = void 0, l._callOnItemsRendered = gt(function(v, _, I, S, x, R, O, D) {
1411
1411
  return l.props.onItemsRendered({
1412
1412
  overscanColumnStartIndex: v,
1413
- overscanColumnStopIndex: b,
1413
+ overscanColumnStopIndex: _,
1414
1414
  overscanRowStartIndex: I,
1415
1415
  overscanRowStopIndex: S,
1416
1416
  visibleColumnStartIndex: x,
@@ -1418,34 +1418,34 @@ function di(t) {
1418
1418
  visibleRowStartIndex: O,
1419
1419
  visibleRowStopIndex: D
1420
1420
  });
1421
- }), l._callOnScroll = void 0, l._callOnScroll = gt(function(v, b, I, S, x) {
1421
+ }), l._callOnScroll = void 0, l._callOnScroll = gt(function(v, _, I, S, x) {
1422
1422
  return l.props.onScroll({
1423
1423
  horizontalScrollDirection: I,
1424
1424
  scrollLeft: v,
1425
- scrollTop: b,
1425
+ scrollTop: _,
1426
1426
  verticalScrollDirection: S,
1427
1427
  scrollUpdateWasRequested: x
1428
1428
  });
1429
- }), l._getItemStyle = void 0, l._getItemStyle = function(v, b) {
1430
- var I = l.props, S = I.columnWidth, x = I.direction, R = I.rowHeight, O = l._getItemStyleCache(P && S, P && x, P && R), D = v + ":" + b, z;
1429
+ }), l._getItemStyle = void 0, l._getItemStyle = function(v, _) {
1430
+ var I = l.props, S = I.columnWidth, x = I.direction, R = I.rowHeight, O = l._getItemStyleCache(P && S, P && x, P && R), D = v + ":" + _, z;
1431
1431
  if (O.hasOwnProperty(D))
1432
1432
  z = O[D];
1433
1433
  else {
1434
- var E = n(l.props, b, l._instanceProps), L = x === "rtl";
1434
+ var E = n(l.props, _, l._instanceProps), L = x === "rtl";
1435
1435
  O[D] = z = {
1436
1436
  position: "absolute",
1437
1437
  left: L ? void 0 : E,
1438
1438
  right: L ? E : void 0,
1439
1439
  top: C(l.props, v, l._instanceProps),
1440
1440
  height: m(l.props, v, l._instanceProps),
1441
- width: a(l.props, b, l._instanceProps)
1441
+ width: a(l.props, _, l._instanceProps)
1442
1442
  };
1443
1443
  }
1444
1444
  return z;
1445
- }, l._getItemStyleCache = void 0, l._getItemStyleCache = gt(function(v, b, I) {
1445
+ }, l._getItemStyleCache = void 0, l._getItemStyleCache = gt(function(v, _, I) {
1446
1446
  return {};
1447
1447
  }), l._onScroll = function(v) {
1448
- var b = v.currentTarget, I = b.clientHeight, S = b.clientWidth, x = b.scrollLeft, R = b.scrollTop, O = b.scrollHeight, D = b.scrollWidth;
1448
+ var _ = v.currentTarget, I = _.clientHeight, S = _.clientWidth, x = _.scrollLeft, R = _.scrollTop, O = _.scrollHeight, D = _.scrollWidth;
1449
1449
  l.setState(function(z) {
1450
1450
  if (z.scrollLeft === x && z.scrollTop === R)
1451
1451
  return null;
@@ -1471,8 +1471,8 @@ function di(t) {
1471
1471
  };
1472
1472
  }, l._resetIsScrollingDebounced);
1473
1473
  }, l._outerRefSetter = function(v) {
1474
- var b = l.props.outerRef;
1475
- l._outerRef = v, typeof b == "function" ? b(v) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = v);
1474
+ var _ = l.props.outerRef;
1475
+ l._outerRef = v, typeof _ == "function" ? _(v) : _ != null && typeof _ == "object" && _.hasOwnProperty("current") && (_.current = v);
1476
1476
  }, l._resetIsScrollingDebounced = function() {
1477
1477
  l._resetIsScrollingTimeoutId !== null && tn(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ai(l._resetIsScrolling, ci);
1478
1478
  }, l._resetIsScrolling = function() {
@@ -1488,58 +1488,58 @@ function di(t) {
1488
1488
  };
1489
1489
  var h = g.prototype;
1490
1490
  return h.scrollTo = function(l) {
1491
- var v = l.scrollLeft, b = l.scrollTop;
1492
- v !== void 0 && (v = Math.max(0, v)), b !== void 0 && (b = Math.max(0, b)), this.setState(function(I) {
1493
- return v === void 0 && (v = I.scrollLeft), b === void 0 && (b = I.scrollTop), I.scrollLeft === v && I.scrollTop === b ? null : {
1491
+ var v = l.scrollLeft, _ = l.scrollTop;
1492
+ v !== void 0 && (v = Math.max(0, v)), _ !== void 0 && (_ = Math.max(0, _)), this.setState(function(I) {
1493
+ return v === void 0 && (v = I.scrollLeft), _ === void 0 && (_ = I.scrollTop), I.scrollLeft === v && I.scrollTop === _ ? null : {
1494
1494
  horizontalScrollDirection: I.scrollLeft < v ? "forward" : "backward",
1495
1495
  scrollLeft: v,
1496
- scrollTop: b,
1496
+ scrollTop: _,
1497
1497
  scrollUpdateWasRequested: !0,
1498
- verticalScrollDirection: I.scrollTop < b ? "forward" : "backward"
1498
+ verticalScrollDirection: I.scrollTop < _ ? "forward" : "backward"
1499
1499
  };
1500
1500
  }, this._resetIsScrollingDebounced);
1501
1501
  }, h.scrollToItem = function(l) {
1502
- var v = l.align, b = v === void 0 ? "auto" : v, I = l.columnIndex, S = l.rowIndex, x = this.props, R = x.columnCount, O = x.height, D = x.rowCount, z = x.width, E = this.state, L = E.scrollLeft, F = E.scrollTop, G = si();
1502
+ var v = l.align, _ = v === void 0 ? "auto" : v, I = l.columnIndex, S = l.rowIndex, x = this.props, R = x.columnCount, O = x.height, D = x.rowCount, z = x.width, E = this.state, L = E.scrollLeft, F = E.scrollTop, G = si();
1503
1503
  I !== void 0 && (I = Math.max(0, Math.min(I, R - 1))), S !== void 0 && (S = Math.max(0, Math.min(S, D - 1)));
1504
- var q = c(this.props, this._instanceProps), U = d(this.props, this._instanceProps), B = U > z ? G : 0, j = q > O ? G : 0;
1504
+ var U = c(this.props, this._instanceProps), V = d(this.props, this._instanceProps), B = V > z ? G : 0, Z = U > O ? G : 0;
1505
1505
  this.scrollTo({
1506
- scrollLeft: I !== void 0 ? s(this.props, I, b, L, this._instanceProps, j) : L,
1507
- scrollTop: S !== void 0 ? f(this.props, S, b, F, this._instanceProps, B) : F
1506
+ scrollLeft: I !== void 0 ? s(this.props, I, _, L, this._instanceProps, Z) : L,
1507
+ scrollTop: S !== void 0 ? f(this.props, S, _, F, this._instanceProps, B) : F
1508
1508
  });
1509
1509
  }, h.componentDidMount = function() {
1510
- var l = this.props, v = l.initialScrollLeft, b = l.initialScrollTop;
1510
+ var l = this.props, v = l.initialScrollLeft, _ = l.initialScrollTop;
1511
1511
  if (this._outerRef != null) {
1512
1512
  var I = this._outerRef;
1513
- typeof v == "number" && (I.scrollLeft = v), typeof b == "number" && (I.scrollTop = b);
1513
+ typeof v == "number" && (I.scrollLeft = v), typeof _ == "number" && (I.scrollTop = _);
1514
1514
  }
1515
1515
  this._callPropsCallbacks();
1516
1516
  }, h.componentDidUpdate = function() {
1517
- var l = this.props.direction, v = this.state, b = v.scrollLeft, I = v.scrollTop, S = v.scrollUpdateWasRequested;
1517
+ var l = this.props.direction, v = this.state, _ = v.scrollLeft, I = v.scrollTop, S = v.scrollUpdateWasRequested;
1518
1518
  if (S && this._outerRef != null) {
1519
1519
  var x = this._outerRef;
1520
1520
  if (l === "rtl")
1521
1521
  switch (nn()) {
1522
1522
  case "negative":
1523
- x.scrollLeft = -b;
1523
+ x.scrollLeft = -_;
1524
1524
  break;
1525
1525
  case "positive-ascending":
1526
- x.scrollLeft = b;
1526
+ x.scrollLeft = _;
1527
1527
  break;
1528
1528
  default:
1529
1529
  var R = x.clientWidth, O = x.scrollWidth;
1530
- x.scrollLeft = O - R - b;
1530
+ x.scrollLeft = O - R - _;
1531
1531
  break;
1532
1532
  }
1533
1533
  else
1534
- x.scrollLeft = Math.max(0, b);
1534
+ x.scrollLeft = Math.max(0, _);
1535
1535
  x.scrollTop = Math.max(0, I);
1536
1536
  }
1537
1537
  this._callPropsCallbacks();
1538
1538
  }, h.componentWillUnmount = function() {
1539
1539
  this._resetIsScrollingTimeoutId !== null && tn(this._resetIsScrollingTimeoutId);
1540
1540
  }, h.render = function() {
1541
- var l = this.props, v = l.children, b = l.className, I = l.columnCount, S = l.direction, x = l.height, R = l.innerRef, O = l.innerElementType, D = l.innerTagName, z = l.itemData, E = l.itemKey, L = E === void 0 ? li : E, F = l.outerElementType, G = l.outerTagName, q = l.rowCount, U = l.style, B = l.useIsScrolling, j = l.width, ae = this.state.isScrolling, $ = this._getHorizontalRangeToRender(), Q = $[0], J = $[1], te = this._getVerticalRangeToRender(), ee = te[0], Y = te[1], we = [];
1542
- if (I > 0 && q)
1541
+ var l = this.props, v = l.children, _ = l.className, I = l.columnCount, S = l.direction, x = l.height, R = l.innerRef, O = l.innerElementType, D = l.innerTagName, z = l.itemData, E = l.itemKey, L = E === void 0 ? li : E, F = l.outerElementType, G = l.outerTagName, U = l.rowCount, V = l.style, B = l.useIsScrolling, Z = l.width, ae = this.state.isScrolling, $ = this._getHorizontalRangeToRender(), Q = $[0], J = $[1], te = this._getVerticalRangeToRender(), ee = te[0], Y = te[1], we = [];
1542
+ if (I > 0 && U)
1543
1543
  for (var me = ee; me <= Y; me++)
1544
1544
  for (var Re = Q; Re <= J; Re++)
1545
1545
  we.push(Qe(v, {
@@ -1556,18 +1556,18 @@ function di(t) {
1556
1556
  }));
1557
1557
  var Le = c(this.props, this._instanceProps), lt = d(this.props, this._instanceProps);
1558
1558
  return Qe(F || G || "div", {
1559
- className: b,
1559
+ className: _,
1560
1560
  onScroll: this._onScroll,
1561
1561
  ref: this._outerRefSetter,
1562
1562
  style: Pt({
1563
1563
  position: "relative",
1564
1564
  height: x,
1565
- width: j,
1565
+ width: Z,
1566
1566
  overflow: "auto",
1567
1567
  WebkitOverflowScrolling: "touch",
1568
1568
  willChange: "transform",
1569
1569
  direction: S
1570
- }, U)
1570
+ }, V)
1571
1571
  }, Qe(O || D || "div", {
1572
1572
  children: we,
1573
1573
  ref: R,
@@ -1578,105 +1578,105 @@ function di(t) {
1578
1578
  }
1579
1579
  }));
1580
1580
  }, h._callPropsCallbacks = function() {
1581
- var l = this.props, v = l.columnCount, b = l.onItemsRendered, I = l.onScroll, S = l.rowCount;
1582
- if (typeof b == "function" && v > 0 && S > 0) {
1583
- var x = this._getHorizontalRangeToRender(), R = x[0], O = x[1], D = x[2], z = x[3], E = this._getVerticalRangeToRender(), L = E[0], F = E[1], G = E[2], q = E[3];
1584
- this._callOnItemsRendered(R, O, L, F, D, z, G, q);
1581
+ var l = this.props, v = l.columnCount, _ = l.onItemsRendered, I = l.onScroll, S = l.rowCount;
1582
+ if (typeof _ == "function" && v > 0 && S > 0) {
1583
+ var x = this._getHorizontalRangeToRender(), R = x[0], O = x[1], D = x[2], z = x[3], E = this._getVerticalRangeToRender(), L = E[0], F = E[1], G = E[2], U = E[3];
1584
+ this._callOnItemsRendered(R, O, L, F, D, z, G, U);
1585
1585
  }
1586
1586
  if (typeof I == "function") {
1587
- var U = this.state, B = U.horizontalScrollDirection, j = U.scrollLeft, ae = U.scrollTop, $ = U.scrollUpdateWasRequested, Q = U.verticalScrollDirection;
1588
- this._callOnScroll(j, ae, B, Q, $);
1587
+ var V = this.state, B = V.horizontalScrollDirection, Z = V.scrollLeft, ae = V.scrollTop, $ = V.scrollUpdateWasRequested, Q = V.verticalScrollDirection;
1588
+ this._callOnScroll(Z, ae, B, Q, $);
1589
1589
  }
1590
1590
  }, h._getHorizontalRangeToRender = function() {
1591
- var l = this.props, v = l.columnCount, b = l.overscanColumnCount, I = l.overscanColumnsCount, S = l.overscanCount, x = l.rowCount, R = this.state, O = R.horizontalScrollDirection, D = R.isScrolling, z = R.scrollLeft, E = b || I || S || 1;
1591
+ var l = this.props, v = l.columnCount, _ = l.overscanColumnCount, I = l.overscanColumnsCount, S = l.overscanCount, x = l.rowCount, R = this.state, O = R.horizontalScrollDirection, D = R.isScrolling, z = R.scrollLeft, E = _ || I || S || 1;
1592
1592
  if (v === 0 || x === 0)
1593
1593
  return [0, 0, 0, 0];
1594
- var L = o(this.props, z, this._instanceProps), F = r(this.props, L, z, this._instanceProps), G = !D || O === "backward" ? Math.max(1, E) : 1, q = !D || O === "forward" ? Math.max(1, E) : 1;
1595
- return [Math.max(0, L - G), Math.max(0, Math.min(v - 1, F + q)), L, F];
1594
+ var L = r(this.props, z, this._instanceProps), F = o(this.props, L, z, this._instanceProps), G = !D || O === "backward" ? Math.max(1, E) : 1, U = !D || O === "forward" ? Math.max(1, E) : 1;
1595
+ return [Math.max(0, L - G), Math.max(0, Math.min(v - 1, F + U)), L, F];
1596
1596
  }, h._getVerticalRangeToRender = function() {
1597
- var l = this.props, v = l.columnCount, b = l.overscanCount, I = l.overscanRowCount, S = l.overscanRowsCount, x = l.rowCount, R = this.state, O = R.isScrolling, D = R.verticalScrollDirection, z = R.scrollTop, E = I || S || b || 1;
1597
+ var l = this.props, v = l.columnCount, _ = l.overscanCount, I = l.overscanRowCount, S = l.overscanRowsCount, x = l.rowCount, R = this.state, O = R.isScrolling, D = R.verticalScrollDirection, z = R.scrollTop, E = I || S || _ || 1;
1598
1598
  if (v === 0 || x === 0)
1599
1599
  return [0, 0, 0, 0];
1600
- var L = u(this.props, z, this._instanceProps), F = T(this.props, L, z, this._instanceProps), G = !O || D === "backward" ? Math.max(1, E) : 1, q = !O || D === "forward" ? Math.max(1, E) : 1;
1601
- return [Math.max(0, L - G), Math.max(0, Math.min(x - 1, F + q)), L, F];
1600
+ var L = u(this.props, z, this._instanceProps), F = T(this.props, L, z, this._instanceProps), G = !O || D === "backward" ? Math.max(1, E) : 1, U = !O || D === "forward" ? Math.max(1, E) : 1;
1601
+ return [Math.max(0, L - G), Math.max(0, Math.min(x - 1, F + U)), L, F];
1602
1602
  }, g;
1603
- }(ur), e.defaultProps = {
1603
+ }(po), e.defaultProps = {
1604
1604
  direction: "ltr",
1605
1605
  itemData: void 0,
1606
1606
  useIsScrolling: !1
1607
1607
  }, e;
1608
1608
  }
1609
1609
  var ui = function(e, n) {
1610
- var o = e.children, r = e.direction, a = e.height, c = e.innerTagName, d = e.outerTagName, s = e.overscanColumnsCount, f = e.overscanCount, m = e.overscanRowsCount, C = e.width, u = n.instance;
1610
+ var r = e.children, o = e.direction, a = e.height, c = e.innerTagName, d = e.outerTagName, s = e.overscanColumnsCount, f = e.overscanCount, m = e.overscanRowsCount, C = e.width, u = n.instance;
1611
1611
  if (process.env.NODE_ENV !== "production") {
1612
- if (typeof f == "number" && Ye && !Ye.has(u) && (Ye.add(u), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof s == "number" || typeof m == "number") && Je && !Je.has(u) && (Je.add(u), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || d != null) && et && !et.has(u) && (et.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1613
- throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1614
- switch (r) {
1612
+ if (typeof f == "number" && Ye && !Ye.has(u) && (Ye.add(u), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof s == "number" || typeof m == "number") && Je && !Je.has(u) && (Je.add(u), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || d != null) && et && !et.has(u) && (et.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1613
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1614
+ switch (o) {
1615
1615
  case "ltr":
1616
1616
  case "rtl":
1617
1617
  break;
1618
1618
  default:
1619
- throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + r + '" was specified.'));
1619
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + o + '" was specified.'));
1620
1620
  }
1621
1621
  if (typeof C != "number")
1622
1622
  throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (C === null ? "null" : typeof C) + '" was specified.'));
1623
1623
  if (typeof a != "number")
1624
1624
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1625
1625
  }
1626
- }, rn = 50, On = function(e, n) {
1627
- var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, d = 0;
1628
- if (c >= o && (c = o - 1), c >= 0) {
1629
- var s = r[c];
1626
+ }, on = 50, On = function(e, n) {
1627
+ var r = e.rowCount, o = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, d = 0;
1628
+ if (c >= r && (c = r - 1), c >= 0) {
1629
+ var s = o[c];
1630
1630
  d = s.offset + s.size;
1631
1631
  }
1632
- var f = o - c - 1, m = f * a;
1632
+ var f = r - c - 1, m = f * a;
1633
1633
  return d + m;
1634
1634
  }, Dn = function(e, n) {
1635
- var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, d = 0;
1636
- if (c >= o && (c = o - 1), c >= 0) {
1637
- var s = r[c];
1635
+ var r = e.columnCount, o = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, d = 0;
1636
+ if (c >= r && (c = r - 1), c >= 0) {
1637
+ var s = o[c];
1638
1638
  d = s.offset + s.size;
1639
1639
  }
1640
- var f = o - c - 1, m = f * a;
1640
+ var f = r - c - 1, m = f * a;
1641
1641
  return d + m;
1642
- }, Pe = function(e, n, o, r) {
1642
+ }, Pe = function(e, n, r, o) {
1643
1643
  var a, c, d;
1644
- if (e === "column" ? (a = r.columnMetadataMap, c = n.columnWidth, d = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = n.rowHeight, d = r.lastMeasuredRowIndex), o > d) {
1644
+ if (e === "column" ? (a = o.columnMetadataMap, c = n.columnWidth, d = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = n.rowHeight, d = o.lastMeasuredRowIndex), r > d) {
1645
1645
  var s = 0;
1646
1646
  if (d >= 0) {
1647
1647
  var f = a[d];
1648
1648
  s = f.offset + f.size;
1649
1649
  }
1650
- for (var m = d + 1; m <= o; m++) {
1650
+ for (var m = d + 1; m <= r; m++) {
1651
1651
  var C = c(m);
1652
1652
  a[m] = {
1653
1653
  offset: s,
1654
1654
  size: C
1655
1655
  }, s += C;
1656
1656
  }
1657
- e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
1657
+ e === "column" ? o.lastMeasuredColumnIndex = r : o.lastMeasuredRowIndex = r;
1658
1658
  }
1659
- return a[o];
1660
- }, on = function(e, n, o, r) {
1659
+ return a[r];
1660
+ }, rn = function(e, n, r, o) {
1661
1661
  var a, c;
1662
- e === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1662
+ e === "column" ? (a = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1663
1663
  var d = c > 0 ? a[c].offset : 0;
1664
- return d >= r ? An(e, n, o, c, 0, r) : pi(e, n, o, Math.max(0, c), r);
1665
- }, An = function(e, n, o, r, a, c) {
1666
- for (; a <= r; ) {
1667
- var d = a + Math.floor((r - a) / 2), s = Pe(e, n, d, o).offset;
1664
+ return d >= o ? An(e, n, r, c, 0, o) : pi(e, n, r, Math.max(0, c), o);
1665
+ }, An = function(e, n, r, o, a, c) {
1666
+ for (; a <= o; ) {
1667
+ var d = a + Math.floor((o - a) / 2), s = Pe(e, n, d, r).offset;
1668
1668
  if (s === c)
1669
1669
  return d;
1670
- s < c ? a = d + 1 : s > c && (r = d - 1);
1670
+ s < c ? a = d + 1 : s > c && (o = d - 1);
1671
1671
  }
1672
1672
  return a > 0 ? a - 1 : 0;
1673
- }, pi = function(e, n, o, r, a) {
1674
- for (var c = e === "column" ? n.columnCount : n.rowCount, d = 1; r < c && Pe(e, n, r, o).offset < a; )
1675
- r += d, d *= 2;
1676
- return An(e, n, o, Math.min(r, c - 1), Math.floor(r / 2), a);
1677
- }, an = function(e, n, o, r, a, c, d) {
1678
- var s = e === "column" ? n.width : n.height, f = Pe(e, n, o, c), m = e === "column" ? Dn(n, c) : On(n, c), C = Math.max(0, Math.min(m - s, f.offset)), u = Math.max(0, f.offset - s + d + f.size);
1679
- switch (r === "smart" && (a >= u - s && a <= C + s ? r = "auto" : r = "center"), r) {
1673
+ }, pi = function(e, n, r, o, a) {
1674
+ for (var c = e === "column" ? n.columnCount : n.rowCount, d = 1; o < c && Pe(e, n, o, r).offset < a; )
1675
+ o += d, d *= 2;
1676
+ return An(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), a);
1677
+ }, an = function(e, n, r, o, a, c, d) {
1678
+ var s = e === "column" ? n.width : n.height, f = Pe(e, n, r, c), m = e === "column" ? Dn(n, c) : On(n, c), C = Math.max(0, Math.min(m - s, f.offset)), u = Math.max(0, f.offset - s + d + f.size);
1679
+ switch (o === "smart" && (a >= u - s && a <= C + s ? o = "auto" : o = "center"), o) {
1680
1680
  case "start":
1681
1681
  return C;
1682
1682
  case "end":
@@ -1688,47 +1688,47 @@ var ui = function(e, n) {
1688
1688
  return a >= u && a <= C ? a : u > C || a < u ? u : C;
1689
1689
  }
1690
1690
  }, hi = /* @__PURE__ */ di({
1691
- getColumnOffset: function(e, n, o) {
1692
- return Pe("column", e, n, o).offset;
1691
+ getColumnOffset: function(e, n, r) {
1692
+ return Pe("column", e, n, r).offset;
1693
1693
  },
1694
- getColumnStartIndexForOffset: function(e, n, o) {
1695
- return on("column", e, o, n);
1694
+ getColumnStartIndexForOffset: function(e, n, r) {
1695
+ return rn("column", e, r, n);
1696
1696
  },
1697
- getColumnStopIndexForStartIndex: function(e, n, o, r) {
1698
- for (var a = e.columnCount, c = e.width, d = Pe("column", e, n, r), s = o + c, f = d.offset + d.size, m = n; m < a - 1 && f < s; )
1699
- m++, f += Pe("column", e, m, r).size;
1697
+ getColumnStopIndexForStartIndex: function(e, n, r, o) {
1698
+ for (var a = e.columnCount, c = e.width, d = Pe("column", e, n, o), s = r + c, f = d.offset + d.size, m = n; m < a - 1 && f < s; )
1699
+ m++, f += Pe("column", e, m, o).size;
1700
1700
  return m;
1701
1701
  },
1702
- getColumnWidth: function(e, n, o) {
1703
- return o.columnMetadataMap[n].size;
1702
+ getColumnWidth: function(e, n, r) {
1703
+ return r.columnMetadataMap[n].size;
1704
1704
  },
1705
1705
  getEstimatedTotalHeight: On,
1706
1706
  getEstimatedTotalWidth: Dn,
1707
- getOffsetForColumnAndAlignment: function(e, n, o, r, a, c) {
1708
- return an("column", e, n, o, r, a, c);
1707
+ getOffsetForColumnAndAlignment: function(e, n, r, o, a, c) {
1708
+ return an("column", e, n, r, o, a, c);
1709
1709
  },
1710
- getOffsetForRowAndAlignment: function(e, n, o, r, a, c) {
1711
- return an("row", e, n, o, r, a, c);
1710
+ getOffsetForRowAndAlignment: function(e, n, r, o, a, c) {
1711
+ return an("row", e, n, r, o, a, c);
1712
1712
  },
1713
- getRowOffset: function(e, n, o) {
1714
- return Pe("row", e, n, o).offset;
1713
+ getRowOffset: function(e, n, r) {
1714
+ return Pe("row", e, n, r).offset;
1715
1715
  },
1716
- getRowHeight: function(e, n, o) {
1717
- return o.rowMetadataMap[n].size;
1716
+ getRowHeight: function(e, n, r) {
1717
+ return r.rowMetadataMap[n].size;
1718
1718
  },
1719
- getRowStartIndexForOffset: function(e, n, o) {
1720
- return on("row", e, o, n);
1719
+ getRowStartIndexForOffset: function(e, n, r) {
1720
+ return rn("row", e, r, n);
1721
1721
  },
1722
- getRowStopIndexForStartIndex: function(e, n, o, r) {
1723
- for (var a = e.rowCount, c = e.height, d = Pe("row", e, n, r), s = o + c, f = d.offset + d.size, m = n; m < a - 1 && f < s; )
1724
- m++, f += Pe("row", e, m, r).size;
1722
+ getRowStopIndexForStartIndex: function(e, n, r, o) {
1723
+ for (var a = e.rowCount, c = e.height, d = Pe("row", e, n, o), s = r + c, f = d.offset + d.size, m = n; m < a - 1 && f < s; )
1724
+ m++, f += Pe("row", e, m, o).size;
1725
1725
  return m;
1726
1726
  },
1727
1727
  initInstanceProps: function(e, n) {
1728
- var o = e, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, c = {
1728
+ var r = e, o = r.estimatedColumnWidth, a = r.estimatedRowHeight, c = {
1729
1729
  columnMetadataMap: {},
1730
- estimatedColumnWidth: r || rn,
1731
- estimatedRowHeight: a || rn,
1730
+ estimatedColumnWidth: o || on,
1731
+ estimatedRowHeight: a || on,
1732
1732
  lastMeasuredColumnIndex: -1,
1733
1733
  lastMeasuredRowIndex: -1,
1734
1734
  rowMetadataMap: {}
@@ -1750,12 +1750,12 @@ var ui = function(e, n) {
1750
1750
  },
1751
1751
  shouldResetStyleCacheOnItemSizeChange: !1,
1752
1752
  validateProps: function(e) {
1753
- var n = e.columnWidth, o = e.rowHeight;
1753
+ var n = e.columnWidth, r = e.rowHeight;
1754
1754
  if (process.env.NODE_ENV !== "production") {
1755
1755
  if (typeof n != "function")
1756
1756
  throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
1757
- if (typeof o != "function")
1758
- throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1757
+ if (typeof r != "function")
1758
+ throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1759
1759
  }
1760
1760
  }
1761
1761
  });
@@ -1764,21 +1764,21 @@ function sn(t, e) {
1764
1764
  for (var n in t)
1765
1765
  if (!(n in e))
1766
1766
  return !0;
1767
- for (var o in e)
1768
- if (t[o] !== e[o])
1767
+ for (var r in e)
1768
+ if (t[r] !== e[r])
1769
1769
  return !0;
1770
1770
  return !1;
1771
1771
  }
1772
1772
  var fi = ["style"], mi = ["style"];
1773
1773
  function gi(t, e) {
1774
- var n = t.style, o = Jt(t, fi), r = e.style, a = Jt(e, mi);
1775
- return !sn(n, r) && !sn(o, a);
1774
+ var n = t.style, r = Jt(t, fi), o = e.style, a = Jt(e, mi);
1775
+ return !sn(n, o) && !sn(r, a);
1776
1776
  }
1777
1777
  const vi = () => {
1778
- const { viewMode: t } = He(), { scrollMode: e } = Ae(), { setColumnCount: n } = vn(), { virtualScrollableElementRef: o } = ot(), r = Ze(), a = W(() => r.heights.length, [r.heights]), c = W(() => e === ie.HORIZONTAL_SCROLLING ? a : t === re.DUAL_PAGE || t === re.DUAL_PAGE_WITH_COVER ? 2 : 1, [t, e, e, a, o]), d = W(() => {
1779
- if (t === re.DUAL_PAGE_WITH_COVER && r.widths.length > 0) {
1778
+ const { viewMode: t } = $e(), { scrollMode: e } = Ae(), { setColumnCount: n } = vn(), { virtualScrollableElementRef: r } = rt(), o = je(), a = W(() => o.heights.length, [o.heights]), c = W(() => e === ie.HORIZONTAL_SCROLLING ? a : t === oe.DUAL_PAGE || t === oe.DUAL_PAGE_WITH_COVER ? 2 : 1, [t, e, e, a, r]), d = W(() => {
1779
+ if (t === oe.DUAL_PAGE_WITH_COVER && o.widths.length > 0) {
1780
1780
  const w = [0, 0];
1781
- return r.widths.forEach((g, h) => {
1781
+ return o.widths.forEach((g, h) => {
1782
1782
  const p = h + 1;
1783
1783
  if (p === 1)
1784
1784
  return;
@@ -1786,11 +1786,11 @@ const vi = () => {
1786
1786
  w[l] = Math.max(w[l] || 0, g);
1787
1787
  }), w;
1788
1788
  }
1789
- return r.widths.reduce((w, g, h) => {
1789
+ return o.widths.reduce((w, g, h) => {
1790
1790
  const p = h % c;
1791
1791
  return (!w[p] || g > w[p]) && (w[p] = g), w;
1792
1792
  }, []);
1793
- }, [r.widths, c, t]), s = N(
1793
+ }, [o.widths, c, t]), s = N(
1794
1794
  (P) => {
1795
1795
  const y = P % d.length;
1796
1796
  return d[y] || 0;
@@ -1798,30 +1798,30 @@ const vi = () => {
1798
1798
  [d]
1799
1799
  ), f = N(
1800
1800
  (P) => {
1801
- if (t === re.DUAL_PAGE_WITH_COVER) {
1801
+ if (t === oe.DUAL_PAGE_WITH_COVER) {
1802
1802
  if (P === 0)
1803
- return r.heights[0] || 0;
1804
- const g = 1 + (P - 1) * c + 1, p = Array.from({ length: c }, (l, v) => g + v - 1).filter((l) => l < r.heights.length).map((l) => r.heights[l] || 0);
1803
+ return o.heights[0] || 0;
1804
+ const g = 1 + (P - 1) * c + 1, p = Array.from({ length: c }, (l, v) => g + v - 1).filter((l) => l < o.heights.length).map((l) => o.heights[l] || 0);
1805
1805
  return Math.max(...p, 0);
1806
1806
  }
1807
1807
  const w = Array.from({ length: c }, (g, h) => {
1808
1808
  const p = P * c + h;
1809
- return r.heights[p] || 0;
1809
+ return o.heights[p] || 0;
1810
1810
  });
1811
1811
  return Math.max(...w);
1812
1812
  },
1813
- [r.heights, c, t]
1813
+ [o.heights, c, t]
1814
1814
  );
1815
1815
  A(() => {
1816
1816
  n(c);
1817
1817
  }, [c, n]);
1818
- const m = W(() => e === ie.HORIZONTAL_SCROLLING || e === ie.PAGE_SCROLLING ? 1 : t === re.DUAL_PAGE_WITH_COVER && a > 0 ? 1 + Math.ceil((a - 1) / c) : Math.round(a / c), [c, a, e, t]), C = W(() => r.heights.reduce((P, y) => P + y, 0) / r.heights.length || 0, [r]), u = W(() => r.widths.reduce((P, y) => P + y, 0) / r.widths.length || 0, [r]), T = W(() => {
1819
- const P = t === re.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et(r, c, P);
1818
+ const m = W(() => e === ie.HORIZONTAL_SCROLLING || e === ie.PAGE_SCROLLING ? 1 : t === oe.DUAL_PAGE_WITH_COVER && a > 0 ? 1 + Math.ceil((a - 1) / c) : Math.round(a / c), [c, a, e, t]), C = W(() => o.heights.reduce((P, y) => P + y, 0) / o.heights.length || 0, [o]), u = W(() => o.widths.reduce((P, y) => P + y, 0) / o.widths.length || 0, [o]), T = W(() => {
1819
+ const P = t === oe.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et(o, c, P);
1820
1820
  return {
1821
1821
  rowsHeight: y,
1822
1822
  columnsWidth: w
1823
1823
  };
1824
- }, [r, c, t]), _ = W(() => ({
1824
+ }, [o, c, t]), b = W(() => ({
1825
1825
  width: T.columnsWidth.reduce((P, y) => P + y, 0),
1826
1826
  height: T.rowsHeight.reduce((P, y) => P + y, 0)
1827
1827
  }), [T]);
@@ -1830,31 +1830,31 @@ const vi = () => {
1830
1830
  rowHeight: f,
1831
1831
  columnCount: c,
1832
1832
  columnWidth: s,
1833
- pageDimension: r,
1833
+ pageDimension: o,
1834
1834
  estimatedRowHeight: C,
1835
1835
  estimatedColumnWidth: u,
1836
1836
  gridDimension: T,
1837
- totalDimension: _
1837
+ totalDimension: b
1838
1838
  };
1839
1839
  };
1840
1840
  let ue;
1841
1841
  typeof window < "u" ? ue = window : typeof self < "u" ? ue = self : ue = global;
1842
1842
  let Ct = null, yt = null;
1843
- const cn = 20, wt = ue.clearTimeout, ln = ue.setTimeout, _t = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, dn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1844
- _t == null || dn == null ? (Ct = wt, yt = function(e) {
1843
+ const cn = 20, wt = ue.clearTimeout, ln = ue.setTimeout, bt = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, dn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1844
+ bt == null || dn == null ? (Ct = wt, yt = function(e) {
1845
1845
  return ln(e, cn);
1846
1846
  }) : (Ct = function([e, n]) {
1847
- _t(e), wt(n);
1847
+ bt(e), wt(n);
1848
1848
  }, yt = function(e) {
1849
1849
  const n = dn(function() {
1850
- wt(o), e();
1851
- }), o = ln(function() {
1852
- _t(n), e();
1850
+ wt(r), e();
1851
+ }), r = ln(function() {
1852
+ bt(n), e();
1853
1853
  }, cn);
1854
- return [n, o];
1854
+ return [n, r];
1855
1855
  });
1856
1856
  function wi(t) {
1857
- let e, n, o, r, a, c, d;
1857
+ let e, n, r, o, a, c, d;
1858
1858
  const s = typeof document < "u" && document.attachEvent;
1859
1859
  if (!s) {
1860
1860
  c = function(w) {
@@ -1873,25 +1873,25 @@ function wi(t) {
1873
1873
  });
1874
1874
  };
1875
1875
  let u = !1, T = "";
1876
- o = "animationstart";
1877
- const _ = "Webkit Moz O ms".split(" ");
1876
+ r = "animationstart";
1877
+ const b = "Webkit Moz O ms".split(" ");
1878
1878
  let P = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), y = "";
1879
1879
  {
1880
1880
  const w = document.createElement("fakeelement");
1881
1881
  if (w.style.animationName !== void 0 && (u = !0), u === !1) {
1882
- for (let g = 0; g < _.length; g++)
1883
- if (w.style[_[g] + "AnimationName"] !== void 0) {
1884
- y = _[g], T = "-" + y.toLowerCase() + "-", o = P[g], u = !0;
1882
+ for (let g = 0; g < b.length; g++)
1883
+ if (w.style[b[g] + "AnimationName"] !== void 0) {
1884
+ y = b[g], T = "-" + y.toLowerCase() + "-", r = P[g], u = !0;
1885
1885
  break;
1886
1886
  }
1887
1887
  }
1888
1888
  }
1889
- n = "resizeanim", e = "@" + T + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = T + "animation: 1ms " + n + "; ";
1889
+ n = "resizeanim", e = "@" + T + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", o = T + "animation: 1ms " + n + "; ";
1890
1890
  }
1891
1891
  const f = function(u) {
1892
1892
  if (!u.getElementById("detectElementResize")) {
1893
- const T = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', _ = u.head || u.getElementsByTagName("head")[0], P = u.createElement("style");
1894
- P.id = "detectElementResize", P.type = "text/css", t != null && P.setAttribute("nonce", t), P.styleSheet ? P.styleSheet.cssText = T : P.appendChild(u.createTextNode(T)), _.appendChild(P);
1893
+ const T = (e || "") + ".resize-triggers { " + (o || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', b = u.head || u.getElementsByTagName("head")[0], P = u.createElement("style");
1894
+ P.id = "detectElementResize", P.type = "text/css", t != null && P.setAttribute("nonce", t), P.styleSheet ? P.styleSheet.cssText = T : P.appendChild(u.createTextNode(T)), b.appendChild(P);
1895
1895
  }
1896
1896
  };
1897
1897
  return {
@@ -1900,14 +1900,14 @@ function wi(t) {
1900
1900
  u.attachEvent("onresize", T);
1901
1901
  else {
1902
1902
  if (!u.__resizeTriggers__) {
1903
- const _ = u.ownerDocument, P = ue.getComputedStyle(u);
1904
- P && P.position === "static" && (u.style.position = "relative"), f(_), u.__resizeLast__ = {}, u.__resizeListeners__ = [], (u.__resizeTriggers__ = _.createElement("div")).className = "resize-triggers";
1905
- const y = _.createElement("div");
1906
- y.className = "expand-trigger", y.appendChild(_.createElement("div"));
1907
- const w = _.createElement("div");
1908
- w.className = "contract-trigger", u.__resizeTriggers__.appendChild(y), u.__resizeTriggers__.appendChild(w), u.appendChild(u.__resizeTriggers__), c(u), u.addEventListener("scroll", d, !0), o && (u.__resizeTriggers__.__animationListener__ = function(h) {
1903
+ const b = u.ownerDocument, P = ue.getComputedStyle(u);
1904
+ P && P.position === "static" && (u.style.position = "relative"), f(b), u.__resizeLast__ = {}, u.__resizeListeners__ = [], (u.__resizeTriggers__ = b.createElement("div")).className = "resize-triggers";
1905
+ const y = b.createElement("div");
1906
+ y.className = "expand-trigger", y.appendChild(b.createElement("div"));
1907
+ const w = b.createElement("div");
1908
+ w.className = "contract-trigger", u.__resizeTriggers__.appendChild(y), u.__resizeTriggers__.appendChild(w), u.appendChild(u.__resizeTriggers__), c(u), u.addEventListener("scroll", d, !0), r && (u.__resizeTriggers__.__animationListener__ = function(h) {
1909
1909
  h.animationName === n && c(u);
1910
- }, u.__resizeTriggers__.addEventListener(o, u.__resizeTriggers__.__animationListener__));
1910
+ }, u.__resizeTriggers__.addEventListener(r, u.__resizeTriggers__.__animationListener__));
1911
1911
  }
1912
1912
  u.__resizeListeners__.push(T);
1913
1913
  }
@@ -1916,7 +1916,7 @@ function wi(t) {
1916
1916
  if (s)
1917
1917
  u.detachEvent("onresize", T);
1918
1918
  else if (u.__resizeListeners__.splice(u.__resizeListeners__.indexOf(T), 1), !u.__resizeListeners__.length) {
1919
- u.removeEventListener("scroll", d, !0), u.__resizeTriggers__.__animationListener__ && (u.__resizeTriggers__.removeEventListener(o, u.__resizeTriggers__.__animationListener__), u.__resizeTriggers__.__animationListener__ = null);
1919
+ u.removeEventListener("scroll", d, !0), u.__resizeTriggers__.__animationListener__ && (u.__resizeTriggers__.removeEventListener(r, u.__resizeTriggers__.__animationListener__), u.__resizeTriggers__.__animationListener__ = null);
1920
1920
  try {
1921
1921
  u.__resizeTriggers__ = !u.removeChild(u.__resizeTriggers__);
1922
1922
  } catch {
@@ -1925,7 +1925,7 @@ function wi(t) {
1925
1925
  }
1926
1926
  };
1927
1927
  }
1928
- class _i extends pr {
1928
+ class bi extends ho {
1929
1929
  constructor(...e) {
1930
1930
  super(...e), this.state = {
1931
1931
  height: this.props.defaultHeight || 0,
@@ -1934,12 +1934,12 @@ class _i extends pr {
1934
1934
  this._timeoutId = null;
1935
1935
  const {
1936
1936
  disableHeight: n,
1937
- disableWidth: o,
1938
- onResize: r
1937
+ disableWidth: r,
1938
+ onResize: o
1939
1939
  } = this.props;
1940
1940
  if (this._parentNode) {
1941
1941
  const a = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(a.paddingLeft || "0"), d = parseFloat(a.paddingRight || "0"), s = parseFloat(a.paddingTop || "0"), f = parseFloat(a.paddingBottom || "0"), m = this._parentNode.getBoundingClientRect(), C = m.height - s - f, u = m.width - c - d;
1942
- if (!n && this.state.height !== C || !o && this.state.width !== u) {
1942
+ if (!n && this.state.height !== C || !r && this.state.width !== u) {
1943
1943
  this.setState({
1944
1944
  height: C,
1945
1945
  width: u
@@ -1947,7 +1947,7 @@ class _i extends pr {
1947
1947
  const T = () => {
1948
1948
  this._didLogDeprecationWarning || (this._didLogDeprecationWarning = !0, console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"));
1949
1949
  };
1950
- typeof r == "function" && r({
1950
+ typeof o == "function" && o({
1951
1951
  height: C,
1952
1952
  width: u,
1953
1953
  // TODO Remove these params in the next major release
@@ -1970,8 +1970,8 @@ class _i extends pr {
1970
1970
  } = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
1971
1971
  if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
1972
1972
  this._parentNode = n;
1973
- const o = n.ownerDocument.defaultView.ResizeObserver;
1974
- o != null ? (this._resizeObserver = new o(() => {
1973
+ const r = n.ownerDocument.defaultView.ResizeObserver;
1974
+ r != null ? (this._resizeObserver = new r(() => {
1975
1975
  this._timeoutId = setTimeout(this._onResize, 0);
1976
1976
  }), this._resizeObserver.observe(n)) : (this._detectElementResize = wi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1977
1977
  }
@@ -1983,8 +1983,8 @@ class _i extends pr {
1983
1983
  const {
1984
1984
  children: e,
1985
1985
  defaultHeight: n,
1986
- defaultWidth: o,
1987
- disableHeight: r = !1,
1986
+ defaultWidth: r,
1987
+ disableHeight: o = !1,
1988
1988
  disableWidth: a = !1,
1989
1989
  doNotBailOutOnEmptyChildren: c = !1,
1990
1990
  nonce: d,
@@ -1995,29 +1995,29 @@ class _i extends pr {
1995
1995
  } = this.props, {
1996
1996
  height: u,
1997
1997
  width: T
1998
- } = this.state, _ = {
1998
+ } = this.state, b = {
1999
1999
  overflow: "visible"
2000
2000
  }, P = {};
2001
2001
  let y = !1;
2002
- return r || (u === 0 && (y = !0), _.height = 0, P.height = u, P.scaledHeight = u), a || (T === 0 && (y = !0), _.width = 0, P.width = T, P.scaledWidth = T), c && (y = !1), Qe(m, {
2002
+ return o || (u === 0 && (y = !0), b.height = 0, P.height = u, P.scaledHeight = u), a || (T === 0 && (y = !0), b.width = 0, P.width = T, P.scaledWidth = T), c && (y = !1), Qe(m, {
2003
2003
  ref: this._setRef,
2004
2004
  style: {
2005
- ..._,
2005
+ ...b,
2006
2006
  ...f
2007
2007
  },
2008
2008
  ...C
2009
2009
  }, !y && e(P));
2010
2010
  }
2011
2011
  }
2012
- const bi = It(({ widths: t, heights: e }) => {
2013
- const { focusedPage: n, totalPages: o } = ce(), r = W(() => {
2012
+ const _i = It(({ widths: t, heights: e }) => {
2013
+ const { focusedPage: n, totalPages: r } = ce(), o = W(() => {
2014
2014
  const d = [], s = Math.ceil(n / 2) * 2 - 1;
2015
- if (d.push(s), s + 1 <= o) {
2015
+ if (d.push(s), s + 1 <= r) {
2016
2016
  const f = s + 1;
2017
2017
  d.push(f);
2018
2018
  }
2019
2019
  return d;
2020
- }, [n, o]), a = W(() => {
2020
+ }, [n, r]), a = W(() => {
2021
2021
  const d = n % 2 === 1 ? n - 1 : n - 2, s = Math.floor(d / 2), f = e(s), m = t(d), C = t(d + 1);
2022
2022
  return [
2023
2023
  {
@@ -2033,25 +2033,25 @@ const bi = It(({ widths: t, heights: e }) => {
2033
2033
  height: f
2034
2034
  }
2035
2035
  ];
2036
- }, [t, e, r]), c = W(() => a.reduce((d, s) => d + Number(s.width || 0), 0), [a]);
2037
- return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: r.map((d, s) => /* @__PURE__ */ i(Ve, { style: a[s], pageNumber: d }, d)) });
2036
+ }, [t, e, o]), c = W(() => a.reduce((d, s) => d + Number(s.width || 0), 0), [a]);
2037
+ return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: o.map((d, s) => /* @__PURE__ */ i(He, { style: a[s], pageNumber: d }, d)) });
2038
2038
  }), Pi = It(({ widths: t, heights: e }) => {
2039
- const { focusedPage: n, totalPages: o } = ce(), r = W(() => {
2039
+ const { focusedPage: n, totalPages: r } = ce(), o = W(() => {
2040
2040
  const d = [];
2041
2041
  if (n === 1)
2042
2042
  return d.push(1), d;
2043
2043
  const s = n - 1, m = Math.ceil(s / 2) * 2;
2044
- return d.push(m), m + 1 <= o && d.push(m + 1), d;
2045
- }, [n, o]), a = W(() => {
2046
- if (r.length === 1) {
2047
- const T = r[0] - 1, _ = t(T);
2048
- let P = _ * 2;
2049
- if (o >= 3) {
2044
+ return d.push(m), m + 1 <= r && d.push(m + 1), d;
2045
+ }, [n, r]), a = W(() => {
2046
+ if (o.length === 1) {
2047
+ const T = o[0] - 1, b = t(T);
2048
+ let P = b * 2;
2049
+ if (r >= 3) {
2050
2050
  const y = t(1), w = t(2);
2051
2051
  P = y + w;
2052
- } else if (o >= 2) {
2052
+ } else if (r >= 2) {
2053
2053
  const y = t(1);
2054
- P = _ + y;
2054
+ P = b + y;
2055
2055
  }
2056
2056
  return {
2057
2057
  width: P,
@@ -2061,14 +2061,14 @@ const bi = It(({ widths: t, heights: e }) => {
2061
2061
  alignItems: "flex-start"
2062
2062
  };
2063
2063
  }
2064
- const s = r[0] - 1, f = t(s), m = r.length > 1 ? t(s + 1) : 0;
2064
+ const s = o[0] - 1, f = t(s), m = o.length > 1 ? t(s + 1) : 0;
2065
2065
  return {
2066
2066
  width: f + m,
2067
2067
  position: "relative"
2068
2068
  };
2069
- }, [t, r, o]), c = W(() => {
2070
- if (r.length === 1) {
2071
- const _ = r[0], P = _ - 1, y = e(_ === 1 ? 0 : Math.floor((_ - 2) / 2) + 1);
2069
+ }, [t, o, r]), c = W(() => {
2070
+ if (o.length === 1) {
2071
+ const b = o[0], P = b - 1, y = e(b === 1 ? 0 : Math.floor((b - 2) / 2) + 1);
2072
2072
  return [{
2073
2073
  width: t(P),
2074
2074
  height: y,
@@ -2076,7 +2076,7 @@ const bi = It(({ widths: t, heights: e }) => {
2076
2076
  // Use relative for flexbox centering
2077
2077
  }];
2078
2078
  }
2079
- const d = r[0], s = d - 1, f = Math.floor((d - 2) / 2) + 1, m = e(f), C = t(s), u = t(s + 1);
2079
+ const d = o[0], s = d - 1, f = Math.floor((d - 2) / 2) + 1, m = e(f), C = t(s), u = t(s + 1);
2080
2080
  return [
2081
2081
  {
2082
2082
  position: "absolute",
@@ -2091,50 +2091,50 @@ const bi = It(({ widths: t, heights: e }) => {
2091
2091
  height: m
2092
2092
  }
2093
2093
  ];
2094
- }, [t, e, r]);
2095
- return /* @__PURE__ */ i("div", { style: a, children: r.map((d, s) => /* @__PURE__ */ i(Ve, { style: c[s], pageNumber: d }, d)) });
2094
+ }, [t, e, o]);
2095
+ return /* @__PURE__ */ i("div", { style: a, children: o.map((d, s) => /* @__PURE__ */ i(He, { style: c[s], pageNumber: d }, d)) });
2096
2096
  }), Ti = ({ widths: t, heights: e }) => {
2097
- const { focusedPage: n } = ce(), o = W(() => ({
2097
+ const { focusedPage: n } = ce(), r = W(() => ({
2098
2098
  position: "absolute",
2099
2099
  width: t(n - 1),
2100
2100
  height: e(n - 1)
2101
- }), [t, e, n]), r = W(() => t(n - 1), [t]);
2101
+ }), [t, e, n]), o = W(() => t(n - 1), [t]);
2102
2102
  return /* @__PURE__ */ i(
2103
2103
  "div",
2104
2104
  {
2105
2105
  style: {
2106
- width: r,
2106
+ width: o,
2107
2107
  position: "relative"
2108
2108
  },
2109
- children: /* @__PURE__ */ i(Ve, { style: o, pageNumber: n }, n)
2109
+ children: /* @__PURE__ */ i(He, { style: r, pageNumber: n }, n)
2110
2110
  }
2111
2111
  );
2112
- }, Ci = (t, e, n, o) => {
2113
- const r = M(), { contentRef: a } = Te(), { heights: c, widths: d } = Ze(), { setFocusedPage: s } = ce(), [f, m] = H([]), { targetScrollPage: C } = wn(), u = Nt(f, 0, 500), T = W(() => {
2114
- const P = o === re.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et({ heights: c, widths: d }, t, P);
2112
+ }, Ci = (t, e, n, r) => {
2113
+ const o = M(), { contentRef: a } = Te(), { heights: c, widths: d } = je(), { setFocusedPage: s } = ce(), [f, m] = H([]), { targetScrollPage: C } = wn(), u = Nt(f, 0, 500), T = W(() => {
2114
+ const P = r === oe.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et({ heights: c, widths: d }, t, P);
2115
2115
  return c.map((g, h) => {
2116
- const p = d[h], l = so(h + 1, t, P), v = w.slice(0, l.columnIndex).reduce((x, R) => x + R, 0), b = y.slice(0, l.rowIndex).reduce((x, R) => x + R, 0), I = v + p, S = b + g;
2116
+ const p = d[h], l = cr(h + 1, t, P), v = w.slice(0, l.columnIndex).reduce((x, R) => x + R, 0), _ = y.slice(0, l.rowIndex).reduce((x, R) => x + R, 0), I = v + p, S = _ + g;
2117
2117
  return {
2118
2118
  pageNumber: h + 1,
2119
2119
  ...l,
2120
2120
  width: p,
2121
2121
  height: g,
2122
2122
  startX: v,
2123
- startY: b,
2123
+ startY: _,
2124
2124
  endX: I,
2125
2125
  endY: S
2126
2126
  };
2127
2127
  });
2128
- }, [c, d, t, e, o]);
2128
+ }, [c, d, t, e, r]);
2129
2129
  A(() => {
2130
2130
  var y;
2131
2131
  u.length > 0 && !C.current && s(u[0].pageNumber), ((y = u[0]) == null ? void 0 : y.ratio) && u.some((w) => w.pageNumber === C.current) && setTimeout(() => {
2132
2132
  C.current = void 0;
2133
2133
  }, 500);
2134
2134
  }, [u, s]);
2135
- const _ = N(
2135
+ const b = N(
2136
2136
  (P) => {
2137
- r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2137
+ o.current && cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
2138
2138
  const y = P.target, w = {
2139
2139
  startTop: y.scrollTop,
2140
2140
  startLeft: y.scrollLeft,
@@ -2144,7 +2144,7 @@ const bi = It(({ widths: t, heights: e }) => {
2144
2144
  const p = h.endX >= w.startLeft && h.endY >= w.startTop, l = h.startX <= w.endLeft && h.startY <= w.endTop;
2145
2145
  return p && l;
2146
2146
  }).map((h) => {
2147
- const p = w.startLeft > h.startX ? w.startLeft : h.startX, l = w.startTop > h.startY ? w.startTop : h.startY, v = w.endLeft < h.endX ? w.endLeft : h.endX, b = w.endTop < h.endY ? w.endTop : h.endY, I = v - p, S = b - l, R = +(I * S / (h.width * h.height) * 100).toFixed(2);
2147
+ const p = w.startLeft > h.startX ? w.startLeft : h.startX, l = w.startTop > h.startY ? w.startTop : h.startY, v = w.endLeft < h.endX ? w.endLeft : h.endX, _ = w.endTop < h.endY ? w.endTop : h.endY, I = v - p, S = _ - l, R = +(I * S / (h.width * h.height) * 100).toFixed(2);
2148
2148
  return {
2149
2149
  pageNumber: h.pageNumber,
2150
2150
  ratio: R
@@ -2157,12 +2157,12 @@ const bi = It(({ widths: t, heights: e }) => {
2157
2157
  );
2158
2158
  A(() => {
2159
2159
  if (n)
2160
- return n == null || n.addEventListener("scroll", _), () => {
2161
- n == null || n.removeEventListener("scroll", _);
2160
+ return n == null || n.addEventListener("scroll", b), () => {
2161
+ n == null || n.removeEventListener("scroll", b);
2162
2162
  };
2163
- }, [n, _]);
2163
+ }, [n, b]);
2164
2164
  }, zn = at((t, e) => {
2165
- const { children: n, toolbarRef: o, style: r, className: a, ...c } = t, { customVariables: d, customDarkVariables: s } = Dr(), { darkMode: f } = wr();
2165
+ const { children: n, toolbarRef: r, style: o, className: a, ...c } = t, { customVariables: d, customDarkVariables: s } = Ao(), { darkMode: f } = bo();
2166
2166
  return /* @__PURE__ */ i(
2167
2167
  "div",
2168
2168
  {
@@ -2175,41 +2175,52 @@ const bi = It(({ widths: t, heights: e }) => {
2175
2175
  a
2176
2176
  ),
2177
2177
  style: {
2178
- "--rp-toolbar-height": `${(o == null ? void 0 : o.clientHeight) || 48}px`,
2178
+ "--rp-toolbar-height": `${(r == null ? void 0 : r.clientHeight) || 48}px`,
2179
2179
  ...d,
2180
2180
  ...f ? s : {},
2181
- ...r
2181
+ ...o
2182
2182
  },
2183
2183
  children: n
2184
2184
  }
2185
2185
  );
2186
- }), yi = It(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
2187
- const r = co(e, t, n.columnCount, n.isDualPageWithCover);
2188
- if (r <= 0)
2186
+ }), yi = It(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2187
+ const o = lr(e, t, n.columnCount, n.isDualPageWithCover);
2188
+ if (o <= 0)
2189
2189
  return null;
2190
2190
  if (n.isDualPageWithCover) {
2191
- const c = r === n.totalPages && n.totalPages % 2 === 0;
2192
- if (e === 0 && r === 1 || c && t === 0) {
2191
+ const c = o === n.totalPages && n.totalPages % 2 === 0;
2192
+ if (e === 0 && o === 1 || c && t === 0) {
2193
2193
  const s = n.columnWidths.reduce((f, m) => f + m, 0);
2194
2194
  return /* @__PURE__ */ i(
2195
2195
  "div",
2196
2196
  {
2197
2197
  style: {
2198
- ...o,
2198
+ ...r,
2199
2199
  width: s,
2200
2200
  display: "flex",
2201
2201
  justifyContent: "center",
2202
2202
  alignItems: "flex-start"
2203
2203
  },
2204
- children: /* @__PURE__ */ i(Ve, { style: { position: "relative" }, pageNumber: r }, r)
2204
+ children: /* @__PURE__ */ i(He, { style: { position: "relative" }, pageNumber: o }, o)
2205
2205
  }
2206
2206
  );
2207
2207
  }
2208
2208
  }
2209
- return /* @__PURE__ */ i(Ve, { style: o, pageNumber: r }, r);
2209
+ return n.columnCount === 2 ? /* @__PURE__ */ i(
2210
+ "div",
2211
+ {
2212
+ style: {
2213
+ ...r,
2214
+ display: "flex",
2215
+ justifyContent: t === 0 ? "flex-end" : "flex-start",
2216
+ alignItems: "flex-start"
2217
+ },
2218
+ children: /* @__PURE__ */ i(He, { style: { position: "relative" }, pageNumber: o }, o)
2219
+ }
2220
+ ) : /* @__PURE__ */ i(He, { style: r, pageNumber: o }, o);
2210
2221
  }, gi), yc = () => {
2211
- const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = xt(), { pagesRef: o, setPagesRef: r, setContentRef: a } = Te(), { scrollToPage: c } = yn();
2212
- fo(o);
2222
+ const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = xt(), { pagesRef: r, setPagesRef: o, setContentRef: a } = Te(), { scrollToPage: c } = yn();
2223
+ fr(r);
2213
2224
  const {
2214
2225
  virtualScrollRef: d,
2215
2226
  getVirtualScrollRef: s,
@@ -2218,70 +2229,70 @@ const bi = It(({ widths: t, heights: e }) => {
2218
2229
  setTotalInnerDimensions: C,
2219
2230
  virtualScrollableElementRef: u,
2220
2231
  totalInnerDimensions: T,
2221
- pageScrollElementRef: _
2222
- } = ot(), P = M(!0), { nextPage: y, prevPage: w, setFocusedPage: g, focusedPage: h, totalPages: p } = ce(), { scrollMode: l } = Ae(), { viewMode: v } = He(), b = M(null), { loading: I, error: S } = oe(), { passwordRequired: x } = vr(), { LoaderImageComponent: R } = St(), O = M(
2232
+ pageScrollElementRef: b
2233
+ } = rt(), P = M(!0), { nextPage: y, prevPage: w, setFocusedPage: g, focusedPage: h, totalPages: p } = ce(), { scrollMode: l } = Ae(), { viewMode: v } = $e(), _ = M(null), { loading: I, error: S } = re(), { passwordRequired: x } = wo(), { LoaderImageComponent: R } = St(), O = M(
2223
2234
  T
2224
2235
  ), D = M({
2225
2236
  viewMode: v,
2226
2237
  scrollMode: l
2227
- }), z = M(!1), E = M(), { isFullScreen: L } = Pr(), {
2238
+ }), z = M(!1), E = M(), { isFullScreen: L } = To(), {
2228
2239
  pageDimension: F,
2229
2240
  rowCount: G,
2230
- rowHeight: q,
2231
- columnCount: U,
2241
+ rowHeight: U,
2242
+ columnCount: V,
2232
2243
  columnWidth: B,
2233
- estimatedColumnWidth: j,
2244
+ estimatedColumnWidth: Z,
2234
2245
  estimatedRowHeight: ae,
2235
2246
  totalDimension: $
2236
- } = vi(), Q = Nt(T, 100), { onScroll: J } = Or(), te = M();
2237
- Ci(U, G, u, v);
2247
+ } = vi(), Q = Nt(T, 100), { onScroll: J } = Do(), te = M();
2248
+ Ci(V, G, u, v);
2238
2249
  const ee = M({
2239
2250
  scrollTop: 0,
2240
2251
  scrollLeft: 0
2241
2252
  });
2242
- po(o);
2243
- const { isPressed: Y } = lo(), { selectionMode: we } = br(), { initializeGrabScroll: me, resetGrabState: Re } = uo({
2253
+ pr(r);
2254
+ const { isPressed: Y } = dr(), { selectionMode: we } = Po(), { initializeGrabScroll: me, resetGrabState: Re } = ur({
2244
2255
  isPressed: Y
2245
- }), Le = W(() => we === mr.HAND, [we]), lt = W(() => {
2246
- const V = Array.from({ length: U }, (Z, _e) => B(_e));
2256
+ }), Le = W(() => we === go.HAND, [we]), lt = W(() => {
2257
+ const q = Array.from({ length: V }, (j, be) => B(be));
2247
2258
  return {
2248
- columnCount: U,
2249
- isDualPageWithCover: v === re.DUAL_PAGE_WITH_COVER,
2250
- columnWidths: V,
2259
+ columnCount: V,
2260
+ isDualPageWithCover: v === oe.DUAL_PAGE_WITH_COVER,
2261
+ columnWidths: q,
2251
2262
  totalPages: p
2252
2263
  };
2253
- }, [U, v, B, p]), dt = N(
2254
- (V) => {
2255
- const Z = document.activeElement !== o;
2256
- !L && Z || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), w()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), y()));
2264
+ }, [V, v, B, p]), dt = N(
2265
+ (q) => {
2266
+ const j = document.activeElement !== r;
2267
+ !L && j || (["ArrowUp", "ArrowLeft"].includes(q.key) ? (q.preventDefault(), w()) : ["ArrowDown", "ArrowRight"].includes(q.key) && (q.preventDefault(), y()));
2257
2268
  },
2258
2269
  [y, w, L, l]
2259
2270
  );
2260
2271
  A(() => (window.addEventListener("keydown", dt), () => {
2261
2272
  window.removeEventListener("keydown", dt);
2262
2273
  }), [dt]), A(() => {
2263
- if (b.current && (b.current.style.position = "relative"), !!d)
2264
- for (let V = 0; V < G; V++)
2265
- for (let Z = 0; Z < U; Z++)
2274
+ if (_.current && (_.current.style.position = "relative"), !!d)
2275
+ for (let q = 0; q < G; q++)
2276
+ for (let j = 0; j < V; j++)
2266
2277
  d.resetAfterIndices({
2267
- columnIndex: Z,
2268
- rowIndex: V,
2278
+ columnIndex: j,
2279
+ rowIndex: q,
2269
2280
  shouldForceUpdate: !0
2270
2281
  });
2271
- }, [G, U, F, d]);
2272
- const rr = N(
2273
- (V, Z) => {
2282
+ }, [G, V, F, d]);
2283
+ const oo = N(
2284
+ (q, j) => {
2274
2285
  if (!u)
2275
2286
  return { scrollTop: 0, scrollLeft: 0 };
2276
- const _e = ee.current.scrollTop > Z, Ee = ee.current.scrollLeft > V;
2277
- return _e || Ee ? ee.current : {
2287
+ const be = ee.current.scrollTop > j, Ee = ee.current.scrollLeft > q;
2288
+ return be || Ee ? ee.current : {
2278
2289
  scrollTop: u.scrollTop,
2279
2290
  scrollLeft: u.scrollLeft
2280
2291
  };
2281
2292
  },
2282
2293
  [u]
2283
2294
  ), kt = N(
2284
- (V, Z) => {
2295
+ (q, j) => {
2285
2296
  if (D.current.viewMode !== v || D.current.scrollMode !== l) {
2286
2297
  te.current && clearTimeout(te.current), z.current = !0, c(h, "auto"), te.current = setTimeout(() => {
2287
2298
  requestAnimationFrame(() => {
@@ -2290,68 +2301,68 @@ const bi = It(({ widths: t, heights: e }) => {
2290
2301
  }, 100);
2291
2302
  return;
2292
2303
  }
2293
- const Ee = V.scrollTop, ut = V.scrollLeft;
2294
- if (!Z.height || !Z.width)
2304
+ const Ee = q.scrollTop, ut = q.scrollLeft;
2305
+ if (!j.height || !j.width)
2295
2306
  return;
2296
2307
  z.current = !0;
2297
- const { height: Ne, width: pt } = Z, { height: Mt, width: Ht } = O.current;
2308
+ const { height: Ne, width: pt } = j, { height: Mt, width: Ht } = O.current;
2298
2309
  if (Mt === Ne && Ht === pt)
2299
2310
  return;
2300
- const sr = Ee / Mt * Ne, cr = ut / Ht * pt, lr = Math.round(Math.min(sr, Ne)) || 0, dr = Math.round(Math.min(cr, pt)) || 0;
2311
+ const so = Ee / Mt * Ne, co = ut / Ht * pt, lo = Math.round(Math.min(so, Ne)) || 0, uo = Math.round(Math.min(co, pt)) || 0;
2301
2312
  E.current = setTimeout(() => {
2302
2313
  requestAnimationFrame(() => {
2303
2314
  u == null || u.scrollTo({
2304
- top: lr,
2305
- left: dr,
2315
+ top: lo,
2316
+ left: uo,
2306
2317
  behavior: "auto"
2307
2318
  });
2308
2319
  });
2309
2320
  }, 0), O.current = {
2310
- height: Z.height,
2311
- width: Z.width
2321
+ height: j.height,
2322
+ width: j.width
2312
2323
  };
2313
2324
  },
2314
2325
  [u, v, l, c]
2315
2326
  );
2316
2327
  A(() => {
2317
2328
  clearTimeout(E.current);
2318
- const V = Array.from({ length: G }).reduce(
2319
- (Ee, ut, Ne) => Ee + q(Ne),
2329
+ const q = Array.from({ length: G }).reduce(
2330
+ (Ee, ut, Ne) => Ee + U(Ne),
2320
2331
  0
2321
- ), Z = Array.from({ length: U }).reduce(
2332
+ ), j = Array.from({ length: V }).reduce(
2322
2333
  (Ee, ut, Ne) => Ee + B(Ne),
2323
2334
  0
2324
- ), _e = rr(Z, V);
2325
- ee.current = _e, kt(_e, { height: V, width: Z }), C({
2326
- height: V,
2327
- width: Z
2335
+ ), be = oo(j, q);
2336
+ ee.current = be, kt(be, { height: q, width: j }), C({
2337
+ height: q,
2338
+ width: j
2328
2339
  });
2329
- }, [F, G, U, kt]);
2330
- const or = N(
2331
- (V) => {
2340
+ }, [F, G, V, kt]);
2341
+ const ro = N(
2342
+ (q) => {
2332
2343
  ee.current = {
2333
- scrollTop: V.scrollTop,
2334
- scrollLeft: V.scrollLeft
2344
+ scrollTop: q.scrollTop,
2345
+ scrollLeft: q.scrollLeft
2335
2346
  };
2336
2347
  },
2337
2348
  [u]
2338
2349
  );
2339
2350
  A(() => {
2340
2351
  if (J)
2341
- return _ && _.addEventListener("scroll", J), u && u.addEventListener("scroll", J), () => {
2342
- _ == null || _.removeEventListener("scroll", J), u == null || u.removeEventListener("scroll", J);
2352
+ return b && b.addEventListener("scroll", J), u && u.addEventListener("scroll", J), () => {
2353
+ b == null || b.removeEventListener("scroll", J), u == null || u.removeEventListener("scroll", J);
2343
2354
  };
2344
- }, [u, _, J]), A(() => () => {
2355
+ }, [u, b, J]), A(() => () => {
2345
2356
  te.current && clearTimeout(te.current);
2346
2357
  }, []);
2347
- const ir = W(() => se(le["rp-pages-container"], {
2358
+ const io = W(() => se(le["rp-pages-container"], {
2348
2359
  [le["rp-cursor-grab"]]: Le && !Y,
2349
2360
  [le["rp-cursor-grabbing"]]: Le && Y
2350
- }), [Le, Y]), ar = N(
2351
- (V) => {
2352
- if (Le && V) {
2353
- const Z = se(le["rp-pages"]), _e = document.querySelector(`.${Z}`);
2354
- me(_e);
2361
+ }), [Le, Y]), ao = N(
2362
+ (q) => {
2363
+ if (Le && q) {
2364
+ const j = se(le["rp-pages"]), be = document.querySelector(`.${j}`);
2365
+ me(be);
2355
2366
  }
2356
2367
  },
2357
2368
  [Le, me, le]
@@ -2361,7 +2372,7 @@ const bi = It(({ widths: t, heights: e }) => {
2361
2372
  }, [I]), A(() => {
2362
2373
  if (!(Q.height === 0 || !P.current)) {
2363
2374
  if (e === ie.PAGE_SCROLLING) {
2364
- t !== h && _ && g(t), P.current = !1;
2375
+ t !== h && b && g(t), P.current = !1;
2365
2376
  return;
2366
2377
  }
2367
2378
  c(t, "auto"), g(t), P.current = !1;
@@ -2369,24 +2380,24 @@ const bi = It(({ widths: t, heights: e }) => {
2369
2380
  }, [
2370
2381
  c,
2371
2382
  e,
2372
- _,
2383
+ b,
2373
2384
  g,
2374
2385
  Q
2375
2386
  ]), /* @__PURE__ */ k(he, { children: [
2376
- /* @__PURE__ */ i(Br, { ref: a, children: /* @__PURE__ */ i(
2387
+ /* @__PURE__ */ i(Zo, { ref: a, children: /* @__PURE__ */ i(
2377
2388
  zn,
2378
2389
  {
2379
2390
  id: n,
2380
- ref: r,
2391
+ ref: o,
2381
2392
  tabIndex: -1,
2382
- className: ir,
2383
- children: /* @__PURE__ */ i(_i, { style: { minHeight: "50px" }, children: ({ width: V, height: Z }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: ar, style: { width: V, height: Z }, children: l === ie.PAGE_SCROLLING ? /* @__PURE__ */ i(
2393
+ className: io,
2394
+ children: /* @__PURE__ */ i(bi, { style: { minHeight: "50px" }, children: ({ width: q, height: j }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: ao, style: { width: q, height: j }, children: l === ie.PAGE_SCROLLING ? /* @__PURE__ */ i(
2384
2395
  "div",
2385
2396
  {
2386
2397
  ref: f,
2387
- style: { width: V, height: Z },
2398
+ style: { width: q, height: j },
2388
2399
  className: se(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
2389
- children: v === re.DUAL_PAGE ? /* @__PURE__ */ i(bi, { widths: B, heights: q }) : v === re.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ i(Pi, { widths: B, heights: q }) : /* @__PURE__ */ i(Ti, { widths: B, heights: q })
2400
+ children: v === oe.DUAL_PAGE ? /* @__PURE__ */ i(_i, { widths: B, heights: U }) : v === oe.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ i(Pi, { widths: B, heights: U }) : /* @__PURE__ */ i(Ti, { widths: B, heights: U })
2390
2401
  }
2391
2402
  ) : ae ? /* @__PURE__ */ i(
2392
2403
  hi,
@@ -2394,14 +2405,14 @@ const bi = It(({ widths: t, heights: e }) => {
2394
2405
  ref: s,
2395
2406
  itemData: lt,
2396
2407
  outerRef: m,
2397
- innerRef: b,
2398
- onScroll: or,
2399
- columnCount: U,
2408
+ innerRef: _,
2409
+ onScroll: ro,
2410
+ columnCount: V,
2400
2411
  columnWidth: B,
2401
- rowHeight: q,
2402
- height: Z,
2403
- width: V,
2404
- estimatedColumnWidth: j,
2412
+ rowHeight: U,
2413
+ height: j,
2414
+ width: q,
2415
+ estimatedColumnWidth: Z,
2405
2416
  estimatedRowHeight: ae,
2406
2417
  rowCount: G,
2407
2418
  className: se(
@@ -2412,7 +2423,7 @@ const bi = It(({ widths: t, heights: e }) => {
2412
2423
  "--rp-pages-height": `${$.height}px`,
2413
2424
  "--rp-pages-width": `${$.width}px`,
2414
2425
  "--rp-row-count": `${G}`,
2415
- "--rp-column-count": `${U}`
2426
+ "--rp-column-count": `${V}`
2416
2427
  },
2417
2428
  children: yi
2418
2429
  }
@@ -2429,7 +2440,7 @@ const bi = It(({ widths: t, heights: e }) => {
2429
2440
  },
2430
2441
  children: R && /* @__PURE__ */ i(R, {})
2431
2442
  }
2432
- ) : S === gr.NOT_SUPPORTED ? /* @__PURE__ */ i("div", { className: le["rp-not-supported"], children: /* @__PURE__ */ k("div", { className: le["rp-not-supported-content"], children: [
2443
+ ) : S === vo.NOT_SUPPORTED ? /* @__PURE__ */ i("div", { className: le["rp-not-supported"], children: /* @__PURE__ */ k("div", { className: le["rp-not-supported-content"], children: [
2433
2444
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
2434
2445
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ k("ul", { children: [
2435
2446
  /* @__PURE__ */ i("li", { children: "Chrome 119+" }),
@@ -2442,30 +2453,30 @@ const bi = It(({ widths: t, heights: e }) => {
2442
2453
  ] }) }) : null }) })
2443
2454
  }
2444
2455
  ) }),
2445
- x && /* @__PURE__ */ i(ho, {})
2456
+ x && /* @__PURE__ */ i(hr, {})
2446
2457
  ] });
2447
- }, $e = {
2458
+ }, Ge = {
2448
2459
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
2449
2460
  "rp-toolbar-wrapper": "_rp-toolbar-wrapper_sz31z_10",
2450
2461
  "rp-toolbar-start": "_rp-toolbar-start_sz31z_33",
2451
2462
  "rp-toolbar-middle": "_rp-toolbar-middle_sz31z_39",
2452
2463
  "rp-toolbar-end": "_rp-toolbar-end_sz31z_46"
2453
- }, bt = {
2464
+ }, _t = {
2454
2465
  "rp-paginate": "_rp-paginate_1yinm_1",
2455
2466
  "rp-page-input": "_rp-page-input_1yinm_6",
2456
2467
  "rp-total-page": "_rp-total-page_1yinm_29"
2457
2468
  }, Ii = () => {
2458
2469
  const { prevIcon: t } = ve(), { prevIcon: e } = ge();
2459
- return t || e || /* @__PURE__ */ i(Ue, {});
2470
+ return t || e || /* @__PURE__ */ i(qe, {});
2460
2471
  }, xi = () => {
2461
2472
  const { nextIcon: t } = ve(), { nextIcon: e } = ge();
2462
- return t || e || /* @__PURE__ */ i(Ue, { style: { transform: "rotate(180deg" } });
2473
+ return t || e || /* @__PURE__ */ i(qe, { style: { transform: "rotate(180deg" } });
2463
2474
  }, Si = () => {
2464
- const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = ce(), [c, d] = H(t.toString()), { pageNavigationTool: s = !0 } = Ce(), { pageNavigationTool: f = !0 } = xe(), { isSmallScreen: m } = Se(), { viewMode: C } = He(), { scrollMode: u } = Ae(), { localeMessages: T } = pe();
2475
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: a } = ce(), [c, d] = H(t.toString()), { pageNavigationTool: s = !0 } = Ce(), { pageNavigationTool: f = !0 } = xe(), { isSmallScreen: m } = Se(), { viewMode: C } = $e(), { scrollMode: u } = Ae(), { localeMessages: T } = pe();
2465
2476
  A(() => {
2466
2477
  d(t.toString());
2467
2478
  }, [t]);
2468
- const _ = N((h) => {
2479
+ const b = N((h) => {
2469
2480
  const p = h.target.value;
2470
2481
  d(p);
2471
2482
  }, []), P = N(async () => {
@@ -2478,14 +2489,14 @@ const bi = It(({ widths: t, heights: e }) => {
2478
2489
  h.key === "Enter" && P();
2479
2490
  },
2480
2491
  [P]
2481
- ), g = W(() => C === re.DUAL_PAGE && u === ie.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, C, u]);
2492
+ ), g = W(() => C === oe.DUAL_PAGE && u === ie.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, C, u]);
2482
2493
  return !s || !f ? null : typeof s != "boolean" ? /* @__PURE__ */ i(
2483
2494
  s,
2484
2495
  {
2485
2496
  total: e,
2486
2497
  current: t,
2487
- nextPage: o,
2488
- prevPage: r,
2498
+ nextPage: r,
2499
+ prevPage: o,
2489
2500
  goToPage: a,
2490
2501
  changePage: n
2491
2502
  }
@@ -2494,16 +2505,16 @@ const bi = It(({ widths: t, heights: e }) => {
2494
2505
  {
2495
2506
  total: e,
2496
2507
  current: t,
2497
- nextPage: o,
2498
- prevPage: r,
2508
+ nextPage: r,
2509
+ prevPage: o,
2499
2510
  goToPage: a,
2500
2511
  changePage: n
2501
2512
  }
2502
- ) : /* @__PURE__ */ k("div", { className: bt["rp-paginate"], children: [
2513
+ ) : /* @__PURE__ */ k("div", { className: _t["rp-paginate"], children: [
2503
2514
  !m && /* @__PURE__ */ i(K, { content: T == null ? void 0 : T.previousPageTooltip, children: /* @__PURE__ */ i(
2504
2515
  de,
2505
2516
  {
2506
- onClick: r,
2517
+ onClick: o,
2507
2518
  "aria-label": T == null ? void 0 : T.previousPageTooltip,
2508
2519
  "aria-disabled": t === 1,
2509
2520
  children: /* @__PURE__ */ i(Ii, {})
@@ -2514,9 +2525,9 @@ const bi = It(({ widths: t, heights: e }) => {
2514
2525
  {
2515
2526
  onKeyDown: w,
2516
2527
  onBlur: y,
2517
- onChange: _,
2528
+ onChange: b,
2518
2529
  value: c,
2519
- className: bt["rp-page-input"],
2530
+ className: _t["rp-page-input"],
2520
2531
  id: "page-input",
2521
2532
  name: "page-input",
2522
2533
  "aria-label": T == null ? void 0 : T.currentPageTooltip,
@@ -2528,14 +2539,14 @@ const bi = It(({ widths: t, heights: e }) => {
2528
2539
  max: e
2529
2540
  }
2530
2541
  ) }),
2531
- /* @__PURE__ */ k("span", { className: bt["rp-total-page"], children: [
2542
+ /* @__PURE__ */ k("span", { className: _t["rp-total-page"], children: [
2532
2543
  "/",
2533
2544
  e
2534
2545
  ] }),
2535
2546
  !m && /* @__PURE__ */ i(K, { content: T == null ? void 0 : T.nextPageTooltip, children: /* @__PURE__ */ i(
2536
2547
  de,
2537
2548
  {
2538
- onClick: o,
2549
+ onClick: r,
2539
2550
  "aria-label": T == null ? void 0 : T.nextPageTooltip,
2540
2551
  "aria-disabled": g,
2541
2552
  children: /* @__PURE__ */ i(xi, {})
@@ -2543,17 +2554,17 @@ const bi = It(({ widths: t, heights: e }) => {
2543
2554
  ) })
2544
2555
  ] });
2545
2556
  };
2546
- var ct = "Dialog", [Wn, Ic] = bo(ct), [Ri, fe] = Wn(ct), Fn = (t) => {
2557
+ var ct = "Dialog", [Wn, Ic] = _r(ct), [Ri, fe] = Wn(ct), Fn = (t) => {
2547
2558
  const {
2548
2559
  __scopeDialog: e,
2549
2560
  children: n,
2550
- open: o,
2551
- defaultOpen: r,
2561
+ open: r,
2562
+ defaultOpen: o,
2552
2563
  onOpenChange: a,
2553
2564
  modal: c = !0
2554
- } = t, d = X.useRef(null), s = X.useRef(null), [f, m] = To({
2555
- prop: o,
2556
- defaultProp: r ?? !1,
2565
+ } = t, d = X.useRef(null), s = X.useRef(null), [f, m] = Tr({
2566
+ prop: r,
2567
+ defaultProp: o ?? !1,
2557
2568
  onChange: a,
2558
2569
  caller: ct
2559
2570
  });
@@ -2577,18 +2588,18 @@ var ct = "Dialog", [Wn, Ic] = bo(ct), [Ri, fe] = Wn(ct), Fn = (t) => {
2577
2588
  Fn.displayName = ct;
2578
2589
  var kn = "DialogTrigger", Li = X.forwardRef(
2579
2590
  (t, e) => {
2580
- const { __scopeDialog: n, ...o } = t, r = fe(kn, n), a = Ot(e, r.triggerRef);
2591
+ const { __scopeDialog: n, ...r } = t, o = fe(kn, n), a = Ot(e, o.triggerRef);
2581
2592
  return /* @__PURE__ */ i(
2582
2593
  Ke.button,
2583
2594
  {
2584
2595
  type: "button",
2585
2596
  "aria-haspopup": "dialog",
2586
- "aria-expanded": r.open,
2587
- "aria-controls": r.contentId,
2588
- "data-state": Ft(r.open),
2589
- ...o,
2597
+ "aria-expanded": o.open,
2598
+ "aria-controls": o.contentId,
2599
+ "data-state": Ft(o.open),
2600
+ ...r,
2590
2601
  ref: a,
2591
- onClick: qe(t.onClick, r.onOpenToggle)
2602
+ onClick: Ve(t.onClick, o.onOpenToggle)
2592
2603
  }
2593
2604
  );
2594
2605
  }
@@ -2597,64 +2608,64 @@ Li.displayName = kn;
2597
2608
  var zt = "DialogPortal", [Ei, Mn] = Wn(zt, {
2598
2609
  forceMount: void 0
2599
2610
  }), Hn = (t) => {
2600
- const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = fe(zt, e);
2601
- return /* @__PURE__ */ i(Ei, { scope: e, forceMount: n, children: X.Children.map(o, (c) => /* @__PURE__ */ i(Dt, { present: n || a.open, children: /* @__PURE__ */ i(Lo, { asChild: !0, container: r, children: c }) })) });
2611
+ const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, a = fe(zt, e);
2612
+ return /* @__PURE__ */ i(Ei, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ i(Dt, { present: n || a.open, children: /* @__PURE__ */ i(Lr, { asChild: !0, container: o, children: c }) })) });
2602
2613
  };
2603
2614
  Hn.displayName = zt;
2604
2615
  var nt = "DialogOverlay", $n = X.forwardRef(
2605
2616
  (t, e) => {
2606
- const n = Mn(nt, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = fe(nt, t.__scopeDialog);
2607
- return a.modal ? /* @__PURE__ */ i(Dt, { present: o || a.open, children: /* @__PURE__ */ i(Oi, { ...r, ref: e }) }) : null;
2617
+ const n = Mn(nt, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = fe(nt, t.__scopeDialog);
2618
+ return a.modal ? /* @__PURE__ */ i(Dt, { present: r || a.open, children: /* @__PURE__ */ i(Oi, { ...o, ref: e }) }) : null;
2608
2619
  }
2609
2620
  );
2610
2621
  $n.displayName = nt;
2611
- var Ni = Co("DialogOverlay.RemoveScroll"), Oi = X.forwardRef(
2622
+ var Ni = Cr("DialogOverlay.RemoveScroll"), Oi = X.forwardRef(
2612
2623
  (t, e) => {
2613
- const { __scopeDialog: n, ...o } = t, r = fe(nt, n);
2624
+ const { __scopeDialog: n, ...r } = t, o = fe(nt, n);
2614
2625
  return (
2615
2626
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2616
2627
  // ie. when `Overlay` and `Content` are siblings
2617
- /* @__PURE__ */ i(Io, { as: Ni, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2628
+ /* @__PURE__ */ i(Ir, { as: Ni, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
2618
2629
  Ke.div,
2619
2630
  {
2620
- "data-state": Ft(r.open),
2621
- ...o,
2631
+ "data-state": Ft(o.open),
2632
+ ...r,
2622
2633
  ref: e,
2623
- style: { pointerEvents: "auto", ...o.style }
2634
+ style: { pointerEvents: "auto", ...r.style }
2624
2635
  }
2625
2636
  ) })
2626
2637
  );
2627
2638
  }
2628
2639
  ), De = "DialogContent", Gn = X.forwardRef(
2629
2640
  (t, e) => {
2630
- const n = Mn(De, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = fe(De, t.__scopeDialog);
2631
- return /* @__PURE__ */ i(Dt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Di, { ...r, ref: e }) : /* @__PURE__ */ i(Ai, { ...r, ref: e }) });
2641
+ const n = Mn(De, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = fe(De, t.__scopeDialog);
2642
+ return /* @__PURE__ */ i(Dt, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Di, { ...o, ref: e }) : /* @__PURE__ */ i(Ai, { ...o, ref: e }) });
2632
2643
  }
2633
2644
  );
2634
2645
  Gn.displayName = De;
2635
2646
  var Di = X.forwardRef(
2636
2647
  (t, e) => {
2637
- const n = fe(De, t.__scopeDialog), o = X.useRef(null), r = Ot(e, n.contentRef, o);
2648
+ const n = fe(De, t.__scopeDialog), r = X.useRef(null), o = Ot(e, n.contentRef, r);
2638
2649
  return X.useEffect(() => {
2639
- const a = o.current;
2650
+ const a = r.current;
2640
2651
  if (a)
2641
- return xo(a);
2652
+ return xr(a);
2642
2653
  }, []), /* @__PURE__ */ i(
2643
- qn,
2654
+ Un,
2644
2655
  {
2645
2656
  ...t,
2646
- ref: r,
2657
+ ref: o,
2647
2658
  trapFocus: n.open,
2648
2659
  disableOutsidePointerEvents: !0,
2649
- onCloseAutoFocus: qe(t.onCloseAutoFocus, (a) => {
2660
+ onCloseAutoFocus: Ve(t.onCloseAutoFocus, (a) => {
2650
2661
  var c;
2651
2662
  a.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
2652
2663
  }),
2653
- onPointerDownOutside: qe(t.onPointerDownOutside, (a) => {
2664
+ onPointerDownOutside: Ve(t.onPointerDownOutside, (a) => {
2654
2665
  const c = a.detail.originalEvent, d = c.button === 0 && c.ctrlKey === !0;
2655
2666
  (c.button === 2 || d) && a.preventDefault();
2656
2667
  }),
2657
- onFocusOutside: qe(
2668
+ onFocusOutside: Ve(
2658
2669
  t.onFocusOutside,
2659
2670
  (a) => a.preventDefault()
2660
2671
  )
@@ -2663,9 +2674,9 @@ var Di = X.forwardRef(
2663
2674
  }
2664
2675
  ), Ai = X.forwardRef(
2665
2676
  (t, e) => {
2666
- const n = fe(De, t.__scopeDialog), o = X.useRef(!1), r = X.useRef(!1);
2677
+ const n = fe(De, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2667
2678
  return /* @__PURE__ */ i(
2668
- qn,
2679
+ Un,
2669
2680
  {
2670
2681
  ...t,
2671
2682
  ref: e,
@@ -2673,31 +2684,31 @@ var Di = X.forwardRef(
2673
2684
  disableOutsidePointerEvents: !1,
2674
2685
  onCloseAutoFocus: (a) => {
2675
2686
  var c, d;
2676
- (c = t.onCloseAutoFocus) == null || c.call(t, a), a.defaultPrevented || (o.current || (d = n.triggerRef.current) == null || d.focus(), a.preventDefault()), o.current = !1, r.current = !1;
2687
+ (c = t.onCloseAutoFocus) == null || c.call(t, a), a.defaultPrevented || (r.current || (d = n.triggerRef.current) == null || d.focus(), a.preventDefault()), r.current = !1, o.current = !1;
2677
2688
  },
2678
2689
  onInteractOutside: (a) => {
2679
2690
  var s, f;
2680
- (s = t.onInteractOutside) == null || s.call(t, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2691
+ (s = t.onInteractOutside) == null || s.call(t, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2681
2692
  const c = a.target;
2682
- ((f = n.triggerRef.current) == null ? void 0 : f.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
2693
+ ((f = n.triggerRef.current) == null ? void 0 : f.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
2683
2694
  }
2684
2695
  }
2685
2696
  );
2686
2697
  }
2687
- ), qn = X.forwardRef(
2698
+ ), Un = X.forwardRef(
2688
2699
  (t, e) => {
2689
- const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...c } = t, d = fe(De, n), s = X.useRef(null), f = Ot(e, s);
2690
- return So(), /* @__PURE__ */ k(he, { children: [
2700
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = t, d = fe(De, n), s = X.useRef(null), f = Ot(e, s);
2701
+ return Sr(), /* @__PURE__ */ k(he, { children: [
2691
2702
  /* @__PURE__ */ i(
2692
- Ro,
2703
+ Rr,
2693
2704
  {
2694
2705
  asChild: !0,
2695
2706
  loop: !0,
2696
- trapped: o,
2697
- onMountAutoFocus: r,
2707
+ trapped: r,
2708
+ onMountAutoFocus: o,
2698
2709
  onUnmountAutoFocus: a,
2699
2710
  children: /* @__PURE__ */ i(
2700
- yo,
2711
+ yr,
2701
2712
  {
2702
2713
  role: "dialog",
2703
2714
  id: d.contentId,
@@ -2717,44 +2728,44 @@ var Di = X.forwardRef(
2717
2728
  ] })
2718
2729
  ] });
2719
2730
  }
2720
- ), Wt = "DialogTitle", Un = X.forwardRef(
2731
+ ), Wt = "DialogTitle", Vn = X.forwardRef(
2721
2732
  (t, e) => {
2722
- const { __scopeDialog: n, ...o } = t, r = fe(Wt, n);
2723
- return /* @__PURE__ */ i(Ke.h2, { id: r.titleId, ...o, ref: e });
2733
+ const { __scopeDialog: n, ...r } = t, o = fe(Wt, n);
2734
+ return /* @__PURE__ */ i(Ke.h2, { id: o.titleId, ...r, ref: e });
2724
2735
  }
2725
2736
  );
2726
- Un.displayName = Wt;
2727
- var Vn = "DialogDescription", zi = X.forwardRef(
2737
+ Vn.displayName = Wt;
2738
+ var qn = "DialogDescription", zi = X.forwardRef(
2728
2739
  (t, e) => {
2729
- const { __scopeDialog: n, ...o } = t, r = fe(Vn, n);
2730
- return /* @__PURE__ */ i(Ke.p, { id: r.descriptionId, ...o, ref: e });
2740
+ const { __scopeDialog: n, ...r } = t, o = fe(qn, n);
2741
+ return /* @__PURE__ */ i(Ke.p, { id: o.descriptionId, ...r, ref: e });
2731
2742
  }
2732
2743
  );
2733
- zi.displayName = Vn;
2734
- var Bn = "DialogClose", jn = X.forwardRef(
2744
+ zi.displayName = qn;
2745
+ var Bn = "DialogClose", Zn = X.forwardRef(
2735
2746
  (t, e) => {
2736
- const { __scopeDialog: n, ...o } = t, r = fe(Bn, n);
2747
+ const { __scopeDialog: n, ...r } = t, o = fe(Bn, n);
2737
2748
  return /* @__PURE__ */ i(
2738
2749
  Ke.button,
2739
2750
  {
2740
2751
  type: "button",
2741
- ...o,
2752
+ ...r,
2742
2753
  ref: e,
2743
- onClick: qe(t.onClick, () => r.onOpenChange(!1))
2754
+ onClick: Ve(t.onClick, () => o.onOpenChange(!1))
2744
2755
  }
2745
2756
  );
2746
2757
  }
2747
2758
  );
2748
- jn.displayName = Bn;
2759
+ Zn.displayName = Bn;
2749
2760
  function Ft(t) {
2750
2761
  return t ? "open" : "closed";
2751
2762
  }
2752
- var Zn = "DialogTitleWarning", [xc, Kn] = Po(Zn, {
2763
+ var jn = "DialogTitleWarning", [xc, Kn] = Pr(jn, {
2753
2764
  contentName: De,
2754
2765
  titleName: Wt,
2755
2766
  docsSlug: "dialog"
2756
2767
  }), Wi = ({ titleId: t }) => {
2757
- const e = Kn(Zn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2768
+ const e = Kn(jn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2758
2769
 
2759
2770
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2760
2771
 
@@ -2763,13 +2774,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2763
2774
  t && (document.getElementById(t) || console.error(n));
2764
2775
  }, [n, t]), null;
2765
2776
  }, Fi = "DialogDescriptionWarning", ki = ({ contentRef: t, descriptionId: e }) => {
2766
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kn(Fi).contentName}}.`;
2777
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kn(Fi).contentName}}.`;
2767
2778
  return X.useEffect(() => {
2768
2779
  var a;
2769
- const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2770
- e && r && (document.getElementById(e) || console.warn(o));
2771
- }, [o, t, e]), null;
2772
- }, Mi = Fn, Hi = Hn, $i = $n, Gi = Gn, qi = Un, Ui = jn;
2780
+ const o = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2781
+ e && o && (document.getElementById(e) || console.warn(r));
2782
+ }, [r, t, e]), null;
2783
+ }, Mi = Fn, Hi = Hn, $i = $n, Gi = Gn, Ui = Vn, Vi = Zn;
2773
2784
  const Oe = {
2774
2785
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2775
2786
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2778,8 +2789,8 @@ const Oe = {
2778
2789
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2779
2790
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2780
2791
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2781
- }, Vi = () => {
2782
- const { pdfProperties: t } = oe(), { container: e } = Te(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Nr(), { localeMessages: r } = pe(), a = W(() => {
2792
+ }, qi = () => {
2793
+ const { pdfProperties: t } = re(), { container: e } = Te(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Oo(), { localeMessages: o } = pe(), a = W(() => {
2783
2794
  if (!t)
2784
2795
  return [];
2785
2796
  const {
@@ -2791,49 +2802,49 @@ const Oe = {
2791
2802
  createdOn: C,
2792
2803
  creator: u,
2793
2804
  keywords: T,
2794
- modifiedOn: _,
2805
+ modifiedOn: b,
2795
2806
  pdfProducer: P,
2796
2807
  pdfVersion: y,
2797
2808
  pageCount: w
2798
2809
  } = t;
2799
2810
  return [
2800
- { label: r == null ? void 0 : r.propertiesFilenameLabel, value: d },
2801
- { label: r == null ? void 0 : r.propertiesFileSizeLabel, value: c },
2811
+ { label: o == null ? void 0 : o.propertiesFilenameLabel, value: d },
2812
+ { label: o == null ? void 0 : o.propertiesFileSizeLabel, value: c },
2802
2813
  { separate: !0 },
2803
- { label: r == null ? void 0 : r.propertiesTitleLabel, value: s },
2804
- { label: r == null ? void 0 : r.propertiesAuthorLabel, value: f },
2805
- { label: r == null ? void 0 : r.propertiesSubjectLabel, value: m },
2806
- { label: r == null ? void 0 : r.propertiesKeywordLabel, value: T },
2807
- { label: r == null ? void 0 : r.propertiesCreatorLabel, value: u },
2814
+ { label: o == null ? void 0 : o.propertiesTitleLabel, value: s },
2815
+ { label: o == null ? void 0 : o.propertiesAuthorLabel, value: f },
2816
+ { label: o == null ? void 0 : o.propertiesSubjectLabel, value: m },
2817
+ { label: o == null ? void 0 : o.propertiesKeywordLabel, value: T },
2818
+ { label: o == null ? void 0 : o.propertiesCreatorLabel, value: u },
2808
2819
  {
2809
- label: r == null ? void 0 : r.propertiesCreateOnLabel,
2810
- value: C ? Vt(C) : ""
2820
+ label: o == null ? void 0 : o.propertiesCreateOnLabel,
2821
+ value: C ? qt(C) : ""
2811
2822
  },
2812
2823
  {
2813
- label: r == null ? void 0 : r.propertiesModifiedOnLabel,
2814
- value: _ ? Vt(_) : ""
2824
+ label: o == null ? void 0 : o.propertiesModifiedOnLabel,
2825
+ value: b ? qt(b) : ""
2815
2826
  },
2816
2827
  { separate: !0 },
2817
- { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: P },
2818
- { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: y },
2819
- { label: r == null ? void 0 : r.propertiesPageCountLabel, value: w }
2828
+ { label: o == null ? void 0 : o.propertiesPDFProducerLabel, value: P },
2829
+ { label: o == null ? void 0 : o.propertiesPDFVersionLabel, value: y },
2830
+ { label: o == null ? void 0 : o.propertiesPageCountLabel, value: w }
2820
2831
  ];
2821
- }, [t, r]);
2822
- return /* @__PURE__ */ i(Mi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(Hi, { container: e, children: /* @__PURE__ */ k("div", { className: Oe["rp-dialog-wrapper"], children: [
2832
+ }, [t, o]);
2833
+ return /* @__PURE__ */ i(Mi, { open: n, onOpenChange: r, children: /* @__PURE__ */ i(Hi, { container: e, children: /* @__PURE__ */ k("div", { className: Oe["rp-dialog-wrapper"], children: [
2823
2834
  /* @__PURE__ */ i($i, { className: Oe["rp-dialog-overlay"] }),
2824
2835
  /* @__PURE__ */ k(Gi, { className: Oe["rp-document-dialog"], "aria-labelledby": "document-properties-title", children: [
2825
- /* @__PURE__ */ i(qi, { id: "document-properties-title", className: Oe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2826
- /* @__PURE__ */ i("div", { className: Oe["rp-document-properties"], role: "region", "aria-labelledby": "document-properties-title", children: a.map((c, d) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Oe["rp-properties-divider"], role: "separator", "aria-orientation": "horizontal" }) : /* @__PURE__ */ i(Zr, { label: c.label, value: c.value }) }, d)) }),
2827
- /* @__PURE__ */ i(Ui, { asChild: !0, className: Oe["rp-dialog-close"], "aria-label": (r == null ? void 0 : r.searchCloseButtonTooltip) || "Close dialog", children: /* @__PURE__ */ i(Eo, { "aria-hidden": "true" }) })
2836
+ /* @__PURE__ */ i(Ui, { id: "document-properties-title", className: Oe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2837
+ /* @__PURE__ */ i("div", { className: Oe["rp-document-properties"], role: "region", "aria-labelledby": "document-properties-title", children: a.map((c, d) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Oe["rp-properties-divider"], role: "separator", "aria-orientation": "horizontal" }) : /* @__PURE__ */ i(Ko, { label: c.label, value: c.value }) }, d)) }),
2838
+ /* @__PURE__ */ i(Vi, { asChild: !0, className: Oe["rp-dialog-close"], "aria-label": (o == null ? void 0 : o.searchCloseButtonTooltip) || "Close dialog", children: /* @__PURE__ */ i(Er, { "aria-hidden": "true" }) })
2828
2839
  ] })
2829
2840
  ] }) }) });
2830
2841
  }, Bi = {
2831
2842
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2832
- }, un = ".pdf", ji = (t) => URL.createObjectURL(t), Zi = async (t) => {
2843
+ }, un = ".pdf", Zi = (t) => URL.createObjectURL(t), ji = async (t) => {
2833
2844
  const n = await (await fetch(t)).blob();
2834
- return ji(n);
2845
+ return Zi(n);
2835
2846
  }, Xn = () => {
2836
- const { filename: t, pdfSrc: e } = oe(), { downloadFilename: n } = Sr(), o = (a) => {
2847
+ const { filename: t, pdfSrc: e } = re(), { downloadFilename: n } = Ro(), r = (a) => {
2837
2848
  const c = n || a;
2838
2849
  return c.endsWith(un) ? c : `${c}${un}`;
2839
2850
  };
@@ -2841,33 +2852,33 @@ const Oe = {
2841
2852
  if (!t || !e)
2842
2853
  throw new Error("There is no PDF source to download");
2843
2854
  const a = document.createElement("a");
2844
- a.href = await Zi(e), a.download = o(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2855
+ a.href = await ji(e), a.download = r(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2845
2856
  }, [t, e]) };
2846
2857
  }, Qn = () => {
2847
2858
  const { downloadIcon: t } = ve(), { downloadIcon: e } = ge();
2848
- return t || e || /* @__PURE__ */ i(zo, {});
2859
+ return t || e || /* @__PURE__ */ i(zr, {});
2849
2860
  }, Yn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Ki = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Yn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Qn, {}) }) }), Xi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ k(Yn, { className: "rp-menu-item", localeMessages: e, children: [
2850
2861
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Qn, {}) }),
2851
2862
  e == null ? void 0 : e.downloadFileLabel
2852
2863
  ] }) }), Jn = () => {
2853
- const { download: t } = Xn(), { downloadTool: e = !0 } = Ce(), { downloadTool: n = !0 } = xe(), { isSmallScreen: o } = Se(), { localeMessages: r } = pe(), a = r == null ? void 0 : r.downloadFileTooltip;
2854
- return !e || !n ? null : o ? /* @__PURE__ */ i(Xi, { download: t, localeMessages: r }) : typeof e == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(n, { download: t }) }) : /* @__PURE__ */ i(Ki, { download: t, localeMessages: r });
2855
- }, er = () => {
2864
+ const { download: t } = Xn(), { downloadTool: e = !0 } = Ce(), { downloadTool: n = !0 } = xe(), { isSmallScreen: r } = Se(), { localeMessages: o } = pe(), a = o == null ? void 0 : o.downloadFileTooltip;
2865
+ return !e || !n ? null : r ? /* @__PURE__ */ i(Xi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ i(K, { content: a, children: /* @__PURE__ */ i(n, { download: t }) }) : /* @__PURE__ */ i(Ki, { download: t, localeMessages: o });
2866
+ }, eo = () => {
2856
2867
  const { printIcon: t } = ve(), { printIcon: e } = ge();
2857
- return t || e || /* @__PURE__ */ i(Wo, {});
2858
- }, tr = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Qi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(tr, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(er, {}) }) }), Yi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ k(tr, { className: "rp-menu-item", localeMessages: e, children: [
2859
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(er, {}) }),
2868
+ return t || e || /* @__PURE__ */ i(Wr, {});
2869
+ }, to = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Qi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(to, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(eo, {}) }) }), Yi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ k(to, { className: "rp-menu-item", localeMessages: e, children: [
2870
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(eo, {}) }),
2860
2871
  e == null ? void 0 : e.printLabel
2861
- ] }) }), nr = () => {
2862
- const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a, showDefaultProgress: c } = st(), { printTool: d = !0 } = Ce(), { printTool: s = !0 } = xe(), { isSmallScreen: f } = Se(), { localeMessages: m } = pe(), C = m == null ? void 0 : m.printTooltip;
2872
+ ] }) }), no = () => {
2873
+ const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: a, showDefaultProgress: c } = st(), { printTool: d = !0 } = Ce(), { printTool: s = !0 } = xe(), { isSmallScreen: f } = Se(), { localeMessages: m } = pe(), C = m == null ? void 0 : m.printTooltip;
2863
2874
  return !d || !s ? null : f ? /* @__PURE__ */ i(Yi, { print: t, localeMessages: m }) : typeof d == "function" ? /* @__PURE__ */ i(K, { content: C, children: /* @__PURE__ */ i(
2864
2875
  d,
2865
2876
  {
2866
2877
  print: t,
2867
2878
  cancel: e,
2868
2879
  setOnProgress: n,
2869
- setOnError: r,
2870
- setOnComplete: o,
2880
+ setOnError: o,
2881
+ setOnComplete: r,
2871
2882
  progress: a,
2872
2883
  showDefaultProgress: c
2873
2884
  }
@@ -2877,8 +2888,8 @@ const Oe = {
2877
2888
  print: t,
2878
2889
  cancel: e,
2879
2890
  setOnProgress: n,
2880
- setOnError: r,
2881
- setOnComplete: o,
2891
+ setOnError: o,
2892
+ setOnComplete: r,
2882
2893
  progress: a,
2883
2894
  showDefaultProgress: c
2884
2895
  }
@@ -2892,12 +2903,12 @@ const Oe = {
2892
2903
  const { goToLastPageIcon: t } = ve(), { goToLastPageIcon: e } = ge();
2893
2904
  return t || e || /* @__PURE__ */ i(Tn, {});
2894
2905
  }, pn = { width: "100%" }, na = () => {
2895
- const { goToPage: t, totalPages: e, focusedPage: n } = ce(), { jumpNavigationTool: o = !0 } = Ce(), { jumpNavigationTool: r = !0 } = xe(), { localeMessages: a } = pe(), c = W(() => n === 1, [n]), d = W(() => n === e, [n, e]), s = N(() => {
2906
+ const { goToPage: t, totalPages: e, focusedPage: n } = ce(), { jumpNavigationTool: r = !0 } = Ce(), { jumpNavigationTool: o = !0 } = xe(), { localeMessages: a } = pe(), c = W(() => n === 1, [n]), d = W(() => n === e, [n, e]), s = N(() => {
2896
2907
  t(1);
2897
2908
  }, [t]), f = N(() => {
2898
2909
  t(e);
2899
2910
  }, [t, e]);
2900
- return !o || !r ? null : /* @__PURE__ */ k(tt, { children: [
2911
+ return !r || !o ? null : /* @__PURE__ */ k(tt, { children: [
2901
2912
  /* @__PURE__ */ i(Ie, { onClick: s, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.firstPageTooltip, style: pn, children: /* @__PURE__ */ k("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2902
2913
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(ea, {}) }),
2903
2914
  /* @__PURE__ */ i("span", { children: a == null ? void 0 : a.firstPageLabel })
@@ -2908,8 +2919,8 @@ const Oe = {
2908
2919
  ] }) }) }),
2909
2920
  /* @__PURE__ */ i(Lt, {})
2910
2921
  ] });
2911
- }, ra = () => {
2912
- const [t, e] = H(!1), { container: n, pagesRef: o } = Te(), { isSmallScreen: r } = Se(), {
2922
+ }, oa = () => {
2923
+ const [t, e] = H(!1), { container: n, pagesRef: r } = Te(), { isSmallScreen: o } = Se(), {
2913
2924
  openFileTool: a,
2914
2925
  downloadTool: c,
2915
2926
  documentProperties: d,
@@ -2919,7 +2930,7 @@ const Oe = {
2919
2930
  jumpNavigationTool: C,
2920
2931
  printTool: u,
2921
2932
  fullscreenTool: T,
2922
- viewModeTool: _
2933
+ viewModeTool: b
2923
2934
  } = Ce(), {
2924
2935
  openFileTool: P,
2925
2936
  downloadTool: y,
@@ -2929,13 +2940,13 @@ const Oe = {
2929
2940
  selectionModeTool: p,
2930
2941
  jumpNavigationTool: l,
2931
2942
  printTool: v,
2932
- fullscreenTool: b,
2943
+ fullscreenTool: _,
2933
2944
  viewModeTool: I
2934
2945
  } = xe(), { localeMessages: S } = pe(), [x, R] = H(0), O = M(
2935
2946
  new ResizeObserver((E) => {
2936
2947
  R(E[0].contentRect.height);
2937
2948
  })
2938
- ), D = W(() => C || f || m || s || d || _ || r && (a || c || u || T), [
2949
+ ), D = W(() => C || f || m || s || d || b || o && (a || c || u || T), [
2939
2950
  a,
2940
2951
  c,
2941
2952
  u,
@@ -2945,22 +2956,22 @@ const Oe = {
2945
2956
  f,
2946
2957
  m,
2947
2958
  C,
2948
- r
2949
- ]), z = W(() => l || h || p || g || w || I || r && (P || y || v || b), [
2959
+ o
2960
+ ]), z = W(() => l || h || p || g || w || I || o && (P || y || v || _), [
2950
2961
  P,
2951
2962
  y,
2952
2963
  v,
2953
- b,
2964
+ _,
2954
2965
  w,
2955
2966
  g,
2956
2967
  h,
2957
2968
  p,
2958
2969
  l,
2959
- r
2970
+ o
2960
2971
  ]);
2961
- return A(() => (o && O.current.observe(o), () => {
2972
+ return A(() => (r && O.current.observe(r), () => {
2962
2973
  O.current.disconnect();
2963
- }), [o]), !D || !z ? null : /* @__PURE__ */ k(he, { children: [
2974
+ }), [r]), !D || !z ? null : /* @__PURE__ */ k(he, { children: [
2964
2975
  /* @__PURE__ */ i(
2965
2976
  Rt,
2966
2977
  {
@@ -2972,7 +2983,7 @@ const Oe = {
2972
2983
  active: t,
2973
2984
  "aria-label": S == null ? void 0 : S.moreOptionTooltip,
2974
2985
  "aria-expanded": t,
2975
- children: /* @__PURE__ */ i(_o, { "aria-hidden": "true" })
2986
+ children: /* @__PURE__ */ i(br, { "aria-hidden": "true" })
2976
2987
  }
2977
2988
  ) }) }),
2978
2989
  side: "bottom",
@@ -2984,37 +2995,37 @@ const Oe = {
2984
2995
  className: Bi["rp-other-tool-content"],
2985
2996
  "data-rp": "moreOptionsDropdown",
2986
2997
  children: [
2987
- r && /* @__PURE__ */ k(tt, { children: [
2988
- /* @__PURE__ */ i(bn, {}),
2998
+ o && /* @__PURE__ */ k(tt, { children: [
2999
+ /* @__PURE__ */ i(_n, {}),
2989
3000
  /* @__PURE__ */ i(Jn, {}),
2990
- /* @__PURE__ */ i(nr, {}),
3001
+ /* @__PURE__ */ i(no, {}),
2991
3002
  /* @__PURE__ */ i(Pn, {}),
2992
3003
  /* @__PURE__ */ i(Lt, {})
2993
3004
  ] }),
2994
3005
  /* @__PURE__ */ i(na, {}),
2995
- /* @__PURE__ */ i(Oo, {}),
2996
- /* @__PURE__ */ i(Fo, {}),
2997
- /* @__PURE__ */ i(Do, {}),
2998
- /* @__PURE__ */ i(Ao, {}),
2999
- /* @__PURE__ */ i(No, {})
3006
+ /* @__PURE__ */ i(Or, {}),
3007
+ /* @__PURE__ */ i(Fr, {}),
3008
+ /* @__PURE__ */ i(Dr, {}),
3009
+ /* @__PURE__ */ i(Ar, {}),
3010
+ /* @__PURE__ */ i(Nr, {})
3000
3011
  ]
3001
3012
  }
3002
3013
  )
3003
3014
  }
3004
3015
  ),
3005
- /* @__PURE__ */ i(Vi, {})
3016
+ /* @__PURE__ */ i(qi, {})
3006
3017
  ] });
3007
- }, oa = () => {
3018
+ }, ra = () => {
3008
3019
  const { isSmallScreen: t } = Se();
3009
3020
  return /* @__PURE__ */ k(he, { children: [
3010
- /* @__PURE__ */ i(wo, {}),
3021
+ /* @__PURE__ */ i(wr, {}),
3011
3022
  !t && /* @__PURE__ */ k(he, { children: [
3012
- /* @__PURE__ */ i(bn, {}),
3023
+ /* @__PURE__ */ i(_n, {}),
3013
3024
  /* @__PURE__ */ i(Jn, {}),
3014
- /* @__PURE__ */ i(nr, {}),
3025
+ /* @__PURE__ */ i(no, {}),
3015
3026
  /* @__PURE__ */ i(Pn, {})
3016
3027
  ] }),
3017
- /* @__PURE__ */ i(ra, {})
3028
+ /* @__PURE__ */ i(oa, {})
3018
3029
  ] });
3019
3030
  }, ia = "_active_1yldl_11", We = {
3020
3031
  "rp-zoom-wrapper": "_rp-zoom-wrapper_1yldl_1",
@@ -3025,7 +3036,7 @@ const Oe = {
3025
3036
  "rp-current-zoom-text": "_rp-current-zoom-text_1yldl_24",
3026
3037
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_1yldl_28"
3027
3038
  }, aa = ({ zoomLevel: t, className: e }) => {
3028
- const { localeMessages: n } = pe(), o = W(() => {
3039
+ const { localeMessages: n } = pe(), r = W(() => {
3029
3040
  switch (t) {
3030
3041
  case Me.ACTUAL:
3031
3042
  return n == null ? void 0 : n.zoomActualSize;
@@ -3036,22 +3047,22 @@ const Oe = {
3036
3047
  }
3037
3048
  return t.toString();
3038
3049
  }, [t, n]);
3039
- return /* @__PURE__ */ i(he, { children: typeof t == "number" ? /* @__PURE__ */ k(hr, { children: [
3050
+ return /* @__PURE__ */ i(he, { children: typeof t == "number" ? /* @__PURE__ */ k(fo, { children: [
3040
3051
  /* @__PURE__ */ i("span", { className: e, children: t }),
3041
3052
  /* @__PURE__ */ i("span", { className: e, children: "%" })
3042
- ] }) : /* @__PURE__ */ i("span", { className: e, children: o }) });
3053
+ ] }) : /* @__PURE__ */ i("span", { className: e, children: r }) });
3043
3054
  }, sa = [50, 75, 100, 125, 150, 200, 300, 400], ca = () => {
3044
3055
  const { zoomInIcon: t } = ve(), { zoomInIcon: e } = ge();
3045
- return t || e || /* @__PURE__ */ i(ko, {});
3056
+ return t || e || /* @__PURE__ */ i(kr, {});
3046
3057
  }, la = () => {
3047
3058
  const { zoomOutIcon: t } = ve(), { zoomOutIcon: e } = ge();
3048
- return t || e || /* @__PURE__ */ i(Mo, {});
3059
+ return t || e || /* @__PURE__ */ i(Mr, {});
3049
3060
  }, da = () => {
3050
- const { zoomLevel: t, setZoomLevel: e, currentZoom: n } = rt(), { container: o, pagesRef: r } = Te(), { zoomTool: a = !0 } = Ce(), { zoomTool: c = !0 } = xe(), { isSmallScreen: d } = Se(), { localeMessages: s } = pe(), [f, m] = H(0), [C, u] = H(!1), T = M(
3061
+ const { zoomLevel: t, setZoomLevel: e, currentZoom: n } = ot(), { container: r, pagesRef: o } = Te(), { zoomTool: a = !0 } = Ce(), { zoomTool: c = !0 } = xe(), { isSmallScreen: d } = Se(), { localeMessages: s } = pe(), [f, m] = H(0), [C, u] = H(!1), T = M(
3051
3062
  new ResizeObserver((g) => {
3052
3063
  m(g[0].contentRect.height);
3053
3064
  })
3054
- ), _ = N(() => {
3065
+ ), b = N(() => {
3055
3066
  e(() => {
3056
3067
  const g = Math.floor(n * 100 / 25) * 25;
3057
3068
  return Math.min(g + 25, Bt);
@@ -3061,10 +3072,10 @@ const Oe = {
3061
3072
  const g = Math.ceil(n * 100 / 25) * 25;
3062
3073
  return Math.min(g - 25, Bt);
3063
3074
  });
3064
- }, [e, n]), y = W(() => Ho(n), [n]), w = W(() => $o(n), [n]);
3065
- return A(() => (r && T.current.observe(r), () => {
3075
+ }, [e, n]), y = W(() => Hr(n), [n]), w = W(() => $r(n), [n]);
3076
+ return A(() => (o && T.current.observe(o), () => {
3066
3077
  T.current.disconnect();
3067
- }), [r]), !a || !c ? null : typeof a == "function" ? /* @__PURE__ */ i(a, { zoomLevel: t, setZoomLevel: e }) : typeof c == "function" ? /* @__PURE__ */ i(c, { zoomLevel: t, setZoomLevel: e }) : /* @__PURE__ */ k("div", { className: We["rp-zoom-wrapper"], children: [
3078
+ }), [o]), !a || !c ? null : typeof a == "function" ? /* @__PURE__ */ i(a, { zoomLevel: t, setZoomLevel: e }) : typeof c == "function" ? /* @__PURE__ */ i(c, { zoomLevel: t, setZoomLevel: e }) : /* @__PURE__ */ k("div", { className: We["rp-zoom-wrapper"], children: [
3068
3079
  /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.zoomOutTooltip, children: /* @__PURE__ */ i(
3069
3080
  de,
3070
3081
  {
@@ -3077,7 +3088,7 @@ const Oe = {
3077
3088
  !d && /* @__PURE__ */ i(
3078
3089
  Rt,
3079
3090
  {
3080
- container: o,
3091
+ container: r,
3081
3092
  open: C,
3082
3093
  onOpenChange: u,
3083
3094
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.zoomSelectTooltip, children: /* @__PURE__ */ k(
@@ -3096,7 +3107,7 @@ const Oe = {
3096
3107
  className: We["rp-current-zoom-text"]
3097
3108
  }
3098
3109
  ),
3099
- /* @__PURE__ */ i(Ue, { className: We["rp-current-zoom-icon"] })
3110
+ /* @__PURE__ */ i(qe, { className: We["rp-current-zoom-icon"] })
3100
3111
  ]
3101
3112
  }
3102
3113
  ) }) }),
@@ -3129,30 +3140,30 @@ const Oe = {
3129
3140
  de,
3130
3141
  {
3131
3142
  disabled: w,
3132
- onClick: _,
3143
+ onClick: b,
3133
3144
  "aria-label": s == null ? void 0 : s.zoomInTooltip,
3134
3145
  children: /* @__PURE__ */ i(ca, {})
3135
3146
  }
3136
3147
  ) })
3137
3148
  ] });
3138
3149
  }, hn = () => {
3139
- const { totalMatches: t, nextMatch: e, prevMatch: n } = At(), { localeMessages: o } = pe(), r = !t || t === 0;
3150
+ const { totalMatches: t, nextMatch: e, prevMatch: n } = At(), { localeMessages: r } = pe(), o = !t || t === 0;
3140
3151
  return /* @__PURE__ */ k(he, { children: [
3141
3152
  /* @__PURE__ */ i(
3142
3153
  K,
3143
3154
  {
3144
- content: o == null ? void 0 : o.searchPrevTooltip,
3155
+ content: r == null ? void 0 : r.searchPrevTooltip,
3145
3156
  className: ne["rp-search-tool-result-navigator"],
3146
3157
  children: /* @__PURE__ */ i(
3147
3158
  de,
3148
3159
  {
3149
3160
  tabIndex: 0,
3150
3161
  onClick: n,
3151
- "aria-label": o == null ? void 0 : o.searchPrevTooltip,
3152
- disabled: r,
3153
- "aria-disabled": r,
3162
+ "aria-label": r == null ? void 0 : r.searchPrevTooltip,
3163
+ disabled: o,
3164
+ "aria-disabled": o,
3154
3165
  children: /* @__PURE__ */ i(
3155
- Ue,
3166
+ qe,
3156
3167
  {
3157
3168
  className: ne["rp-search-tool-input-icon"],
3158
3169
  "aria-hidden": "true"
@@ -3165,18 +3176,18 @@ const Oe = {
3165
3176
  /* @__PURE__ */ i(
3166
3177
  K,
3167
3178
  {
3168
- content: o == null ? void 0 : o.searchNextTooltip,
3179
+ content: r == null ? void 0 : r.searchNextTooltip,
3169
3180
  className: ne["rp-search-tool-result-navigator"],
3170
3181
  children: /* @__PURE__ */ i(
3171
3182
  de,
3172
3183
  {
3173
3184
  tabIndex: 0,
3174
3185
  onClick: e,
3175
- "aria-label": o == null ? void 0 : o.searchNextTooltip,
3176
- disabled: r,
3177
- "aria-disabled": r,
3186
+ "aria-label": r == null ? void 0 : r.searchNextTooltip,
3187
+ disabled: o,
3188
+ "aria-disabled": o,
3178
3189
  children: /* @__PURE__ */ i(
3179
- Ue,
3190
+ qe,
3180
3191
  {
3181
3192
  style: { transform: "rotate(180deg" },
3182
3193
  className: ne["rp-search-tool-input-icon"],
@@ -3192,7 +3203,7 @@ const Oe = {
3192
3203
  const { searchIcon: t } = ve(), { searchIcon: e } = ge();
3193
3204
  return t || e || /* @__PURE__ */ i(Cn, {});
3194
3205
  }, pa = ({ icon: t }) => {
3195
- const { container: e } = Te(), [n, o] = H(!1), { pdf: r } = oe(), [a, c] = H(null), {
3206
+ const { container: e } = Te(), [n, r] = H(!1), { pdf: o } = re(), [a, c] = H(null), {
3196
3207
  searchOptions: d,
3197
3208
  setSearchOptions: s,
3198
3209
  loading: f,
@@ -3200,12 +3211,12 @@ const Oe = {
3200
3211
  totalMatches: C,
3201
3212
  currentMatchPosition: u,
3202
3213
  nextMatch: T,
3203
- prevMatch: _,
3214
+ prevMatch: b,
3204
3215
  search: P
3205
- } = At(), { searchTool: y = !0 } = Ce(), { searchTool: w = !0 } = xe(), [g, h] = H(P), { localeMessages: p } = pe(), { isSmallScreen: l } = Se(), [v, b] = H(null), [I, S] = H(!1), x = N(() => {
3206
- o(!0);
3216
+ } = At(), { searchTool: y = !0 } = Ce(), { searchTool: w = !0 } = xe(), [g, h] = H(P), { localeMessages: p } = pe(), { isSmallScreen: l } = Se(), [v, _] = H(null), [I, S] = H(!1), x = N(() => {
3217
+ r(!0);
3207
3218
  }, []), R = N(() => {
3208
- m(""), h(""), o(!1);
3219
+ m(""), h(""), r(!1);
3209
3220
  }, [m]), O = ($) => {
3210
3221
  const Q = $.key === "Enter", J = $.key === " ";
3211
3222
  (Q || J) && R();
@@ -3216,15 +3227,15 @@ const Oe = {
3216
3227
  [n]
3217
3228
  ), z = N(
3218
3229
  ($) => {
3219
- $.shiftKey && $.key === "Enter" ? _() : $.key === "Enter" && P !== g ? m(g) : $.key === "Enter" && T();
3230
+ $.shiftKey && $.key === "Enter" ? b() : $.key === "Enter" && P !== g ? m(g) : $.key === "Enter" && T();
3220
3231
  },
3221
- [g, _, T, m, P]
3232
+ [g, b, T, m, P]
3222
3233
  );
3223
3234
  A(() => {
3224
3235
  h(P);
3225
3236
  }, [P]), A(() => {
3226
- P && r && S(!0);
3227
- }, [P, r]), A(() => {
3237
+ P && o && S(!0);
3238
+ }, [P, o]), A(() => {
3228
3239
  P && P.trim() !== "" && (h(P), m(P));
3229
3240
  }, []), A(() => (window.addEventListener("keydown", D), () => {
3230
3241
  window.removeEventListener("keydown", D);
@@ -3237,7 +3248,7 @@ const Oe = {
3237
3248
  h($.target.value);
3238
3249
  }, []), L = N(() => {
3239
3250
  h(""), m("");
3240
- }, [m]), F = W(() => `${u} / ${C}`, [u, C]), { wholeWords: G, matchCase: q } = W(() => d, [d]), U = N(
3251
+ }, [m]), F = W(() => `${u} / ${C}`, [u, C]), { wholeWords: G, matchCase: U } = W(() => d, [d]), V = N(
3241
3252
  ($) => {
3242
3253
  s((Q) => ({ ...Q, matchCase: $ }));
3243
3254
  },
@@ -3249,31 +3260,31 @@ const Oe = {
3249
3260
  [s]
3250
3261
  );
3251
3262
  A(() => {
3252
- r && I && R();
3253
- }, [r, R]);
3254
- const j = W(() => (v == null ? void 0 : v.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [v]), ae = N(
3263
+ o && I && R();
3264
+ }, [o, R]);
3265
+ const Z = W(() => (v == null ? void 0 : v.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [v]), ae = N(
3255
3266
  ($) => {
3256
3267
  if ($.key === "Tab") {
3257
3268
  const Q = document.activeElement;
3258
3269
  let J = 0;
3259
- j.forEach((Y, we) => {
3270
+ Z.forEach((Y, we) => {
3260
3271
  Y === Q && (J = we);
3261
3272
  });
3262
3273
  let te = J + 1;
3263
3274
  $.shiftKey && (te = J - 1);
3264
- const ee = j[te];
3275
+ const ee = Z[te];
3265
3276
  if (ee)
3266
3277
  ee.focus();
3267
- else if (te > j.length - 1) {
3268
- const Y = j[0];
3278
+ else if (te > Z.length - 1) {
3279
+ const Y = Z[0];
3269
3280
  Y && Y.focus();
3270
3281
  } else {
3271
- const Y = j[j.length - 1];
3282
+ const Y = Z[Z.length - 1];
3272
3283
  Y && Y.focus();
3273
3284
  }
3274
3285
  }
3275
3286
  },
3276
- [j]
3287
+ [Z]
3277
3288
  );
3278
3289
  return !y || !w ? null : /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i(
3279
3290
  Rt,
@@ -3298,7 +3309,7 @@ const Oe = {
3298
3309
  children: /* @__PURE__ */ k(
3299
3310
  "div",
3300
3311
  {
3301
- ref: b,
3312
+ ref: _,
3302
3313
  className: ne["rp-search-tool-content"],
3303
3314
  tabIndex: 0,
3304
3315
  onKeyDown: ae,
@@ -3333,30 +3344,30 @@ const Oe = {
3333
3344
  onKeyDown: ($) => {
3334
3345
  ($.key === "Enter" || $.key === " ") && ($.preventDefault(), L());
3335
3346
  },
3336
- children: /* @__PURE__ */ i(Go, {})
3347
+ children: /* @__PURE__ */ i(Gr, {})
3337
3348
  }
3338
3349
  )
3339
3350
  }
3340
3351
  ) }),
3341
- f ? /* @__PURE__ */ i("span", { "aria-live": "polite", "aria-label": "Searching", children: /* @__PURE__ */ i(_n, { className: ne["rp-search-loader-icon"], "aria-hidden": "true" }) }) : /* @__PURE__ */ i("span", { id: "search-results-count", "aria-live": "polite", children: F }),
3342
- l && /* @__PURE__ */ i("div", { className: ne["rp-search-tool-controls"], children: /* @__PURE__ */ i(qt, { onKeyPress: O, handleClose: R }) })
3352
+ f ? /* @__PURE__ */ i("span", { "aria-live": "polite", "aria-label": "Searching", children: /* @__PURE__ */ i(bn, { className: ne["rp-search-loader-icon"], "aria-hidden": "true" }) }) : /* @__PURE__ */ i("span", { id: "search-results-count", "aria-live": "polite", children: F }),
3353
+ l && /* @__PURE__ */ i("div", { className: ne["rp-search-tool-controls"], children: /* @__PURE__ */ i(Ut, { onKeyPress: O, handleClose: R }) })
3343
3354
  ] }),
3344
3355
  /* @__PURE__ */ k("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
3345
3356
  l && /* @__PURE__ */ i(hn, {}),
3346
3357
  /* @__PURE__ */ i(
3347
- Ut,
3358
+ Vt,
3348
3359
  {
3349
3360
  tabIndex: 0,
3350
3361
  name: "matchCase",
3351
- value: q,
3352
- onChange: U,
3362
+ value: U,
3363
+ onChange: V,
3353
3364
  "aria-label": p == null ? void 0 : p.searchMatchCaseLabel,
3354
3365
  children: p == null ? void 0 : p.searchMatchCaseLabel
3355
3366
  }
3356
3367
  ),
3357
3368
  !l && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Xt, {}) }) }),
3358
3369
  /* @__PURE__ */ i(
3359
- Ut,
3370
+ Vt,
3360
3371
  {
3361
3372
  tabIndex: 0,
3362
3373
  name: "wholeWord",
@@ -3371,7 +3382,7 @@ const Oe = {
3371
3382
  ] }),
3372
3383
  !l && /* @__PURE__ */ k("div", { className: ne["rp-search-tool-controls"], children: [
3373
3384
  /* @__PURE__ */ i(hn, {}),
3374
- /* @__PURE__ */ i(qt, { onKeyPress: O, handleClose: R })
3385
+ /* @__PURE__ */ i(Ut, { onKeyPress: O, handleClose: R })
3375
3386
  ] })
3376
3387
  ]
3377
3388
  }
@@ -3403,39 +3414,34 @@ const Oe = {
3403
3414
  /* @__PURE__ */ i("button", { className: se(Fe["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3404
3415
  ] }) });
3405
3416
  }, ma = at((t, e) => {
3406
- const { showPrintProgress: n = !0 } = Ce(), { showPrintProgress: o = !0 } = xe(), { progress: r, showDefaultProgress: a } = st(), { isSmallScreen: c } = Se(), { percentage: d } = r || {}, s = () => c ? { gridTemplateColumns: "25% 60% 15%" } : void 0, f = () => {
3407
- if (!(!(a ?? (n && o)) || !d))
3417
+ const { showPrintProgress: n = !0 } = Ce(), { showPrintProgress: r = !0 } = xe(), { progress: o, showDefaultProgress: a } = st(), { isSmallScreen: c } = Se(), { percentage: d } = o || {}, s = () => c ? { gridTemplateColumns: "25% 60% 15%" } : void 0, f = () => {
3418
+ if (!(!(a ?? (n && r)) || !d))
3408
3419
  return /* @__PURE__ */ i(fa, { percentage: d });
3409
3420
  };
3410
3421
  return /* @__PURE__ */ k("div", { children: [
3411
- /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: $e["rp-toolbar-content"], children: /* @__PURE__ */ k("div", { className: $e["rp-toolbar-wrapper"], style: s(), children: [
3412
- /* @__PURE__ */ k("div", { "data-rp": "topBarLeft", className: $e["rp-toolbar-start"], children: [
3422
+ /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: Ge["rp-toolbar-content"], children: /* @__PURE__ */ k("div", { className: Ge["rp-toolbar-wrapper"], style: s(), children: [
3423
+ /* @__PURE__ */ k("div", { "data-rp": "topBarLeft", className: Ge["rp-toolbar-start"], children: [
3413
3424
  /* @__PURE__ */ i(pa, {}),
3414
3425
  /* @__PURE__ */ i(Si, {})
3415
3426
  ] }),
3416
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: $e["rp-toolbar-middle"], children: /* @__PURE__ */ i(da, {}) }),
3417
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: $e["rp-toolbar-end"], children: /* @__PURE__ */ i(oa, {}) })
3427
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Ge["rp-toolbar-middle"], children: /* @__PURE__ */ i(da, {}) }),
3428
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Ge["rp-toolbar-end"], children: /* @__PURE__ */ i(ra, {}) })
3418
3429
  ] }) }),
3419
3430
  /* @__PURE__ */ i(f, {})
3420
3431
  ] });
3421
- }), Xe = {
3422
- "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_15j5q_1",
3423
- "rp-sidebar-content": "_rp-sidebar-content_15j5q_1",
3424
- "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_15j5q_18",
3425
- "rp-thumbnails-wrapper-hidden": "_rp-thumbnails-wrapper-hidden_15j5q_25"
3426
- }, Ge = {
3432
+ }), Ue = {
3427
3433
  "rp-thumbnail-wrapper": "_rp-thumbnail-wrapper_3fenb_1",
3428
3434
  "rp-thumbnail-text": "_rp-thumbnail-text_3fenb_10",
3429
3435
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
3430
3436
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3431
3437
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3432
3438
  }, ga = (t) => {
3433
- const { pageNumber: e, isFocused: n, viewport: o } = t, { goToPage: r } = ce(), { pageRotate: a } = it(), c = M(null), d = Nn(), { pages: s } = oe(), [f, m] = H(null), C = M(!1), u = M(), T = W(() => n ? Ge["rp-thumbnail-active"] : "", [n]), _ = W(() => ({
3434
- width: Math.round(o.width),
3435
- height: Math.round(o.height)
3436
- }), [o]), P = N(() => {
3437
- e && r(e);
3438
- }, [r, e]);
3439
+ const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = ce(), { pageRotate: a } = it(), c = M(null), d = Nn(), { pages: s } = re(), [f, m] = H(null), C = M(!1), u = M(), T = W(() => n ? Ue["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3440
+ width: Math.round(r.width),
3441
+ height: Math.round(r.height)
3442
+ }), [r]), P = N(() => {
3443
+ e && o(e);
3444
+ }, [o, e]);
3439
3445
  return A(() => {
3440
3446
  const y = s.get(e);
3441
3447
  u.current === y || (m(null), u.current = y);
@@ -3484,7 +3490,7 @@ const Oe = {
3484
3490
  (y.key === "Enter" || y.key === " ") && (y.preventDefault(), P());
3485
3491
  },
3486
3492
  id: `page-${e}`,
3487
- className: Ge["rp-thumbnail-wrapper"],
3493
+ className: Ue["rp-thumbnail-wrapper"],
3488
3494
  ref: c,
3489
3495
  role: "button",
3490
3496
  tabIndex: 0,
@@ -3497,68 +3503,68 @@ const Oe = {
3497
3503
  style: {
3498
3504
  transform: `rotate(${a[e || 0]}deg)`
3499
3505
  },
3500
- className: se(T, Ge["rp-thumbnail"]),
3506
+ className: se(T, Ue["rp-thumbnail"]),
3501
3507
  "aria-hidden": "true",
3502
3508
  children: f ? /* @__PURE__ */ i(
3503
3509
  "img",
3504
3510
  {
3505
3511
  src: f,
3506
- width: _.width,
3507
- height: _.height,
3512
+ width: b.width,
3513
+ height: b.height,
3508
3514
  alt: `Page ${e} thumbnail`,
3509
3515
  "aria-hidden": "true"
3510
3516
  }
3511
3517
  ) : /* @__PURE__ */ i(
3512
3518
  "div",
3513
3519
  {
3514
- className: Ge["rp-thumbnail-loader"],
3520
+ className: Ue["rp-thumbnail-loader"],
3515
3521
  style: {
3516
- width: `${_.width}px`,
3517
- height: `${_.height}px`
3522
+ width: `${b.width}px`,
3523
+ height: `${b.height}px`
3518
3524
  },
3519
- children: /* @__PURE__ */ i(_n, { "aria-hidden": "true" })
3525
+ children: /* @__PURE__ */ i(bn, { "aria-hidden": "true" })
3520
3526
  }
3521
3527
  )
3522
3528
  }
3523
3529
  ),
3524
- /* @__PURE__ */ i("div", { className: Ge["rp-thumbnail-text"], "aria-hidden": "true", children: e })
3530
+ /* @__PURE__ */ i("div", { className: Ue["rp-thumbnail-text"], "aria-hidden": "true", children: e })
3525
3531
  ]
3526
3532
  }
3527
3533
  );
3528
3534
  }, fn = {
3529
- "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
3530
- "rp-thumbnails": "_rp-thumbnails_16vqr_1"
3535
+ "rp-thumbnails-container": "_rp-thumbnails-container_heze1_1",
3536
+ "rp-thumbnails": "_rp-thumbnails_heze1_1"
3531
3537
  }, va = 16, wa = (t, e) => {
3532
3538
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3533
3539
  t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - va);
3534
- }, _a = at((t, e) => {
3535
- const { show: n, width: o } = t, { focusedPage: r, totalPages: a } = ce(), { thumbnailPages: c, addPage: d, thumbnailLength: s, addToPage: f } = Rn(), m = M(null), C = M(1);
3540
+ }, ba = at((t, e) => {
3541
+ const { show: n, width: r } = t, { focusedPage: o, totalPages: a } = ce(), { thumbnailPages: c, addPage: d, thumbnailLength: s, addToPage: f } = Rn(), m = M(null), C = M(1);
3536
3542
  mn(e, () => m.current);
3537
3543
  const u = W(() => Object.values(c), [c]), T = N(() => {
3538
- const _ = s + 1;
3539
- _ <= a && d(_);
3544
+ const b = s + 1;
3545
+ b <= a && d(b);
3540
3546
  }, [d, a, s]);
3541
3547
  return A(() => {
3542
- r > s && a > s ? f(r) : n && C.current !== r && (wa(m.current, r), C.current = r);
3543
- }, [r, s, f, n, u]), Kr(m.current, T), /* @__PURE__ */ i("div", { ref: m, className: fn["rp-thumbnails-container"], style: { width: o }, children: /* @__PURE__ */ i("div", { className: fn["rp-thumbnails"], children: n ? u.map((_, P) => {
3548
+ o > s && a > s ? f(o) : n && C.current !== o && (wa(m.current, o), C.current = o);
3549
+ }, [o, s, f, n, u]), Xo(m.current, T), /* @__PURE__ */ i("div", { ref: m, className: fn["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ i("div", { className: fn["rp-thumbnails"], children: n ? u.map((b, P) => {
3544
3550
  var y, w;
3545
3551
  return /* @__PURE__ */ i(
3546
3552
  ga,
3547
3553
  {
3548
- isFocused: r === ((y = _.page) == null ? void 0 : y.pageNumber),
3549
- pageNumber: (w = _.page) == null ? void 0 : w.pageNumber,
3550
- loading: _.loading,
3551
- viewport: _.viewport,
3552
- defaultRotation: _.defaultRotation
3554
+ isFocused: o === ((y = b.page) == null ? void 0 : y.pageNumber),
3555
+ pageNumber: (w = b.page) == null ? void 0 : w.pageNumber,
3556
+ loading: b.loading,
3557
+ viewport: b.viewport,
3558
+ defaultRotation: b.defaultRotation
3553
3559
  },
3554
3560
  P
3555
3561
  );
3556
3562
  }) : null }) });
3557
- }), ba = () => {
3563
+ }), _a = () => {
3558
3564
  const { thumbnailIcon: t } = ve(), { thumbnailIcon: e } = ge();
3559
- return t || e || /* @__PURE__ */ i(Mr, {});
3565
+ return t || e || /* @__PURE__ */ i(Ho, {});
3560
3566
  }, Pa = () => {
3561
- const { active: t, setActive: e } = Rn(), [n, o] = H(Xr), r = M(null), a = M(null), { thumbnailTool: c, sidebarEnable: d } = Ce(), { localeMessages: s } = pe(), f = N(() => {
3567
+ const { active: t, setActive: e } = Rn(), [n, r] = H(Qo), o = M(null), a = M(null), { thumbnailTool: c, sidebarEnable: d } = Ce(), { localeMessages: s } = pe(), f = N(() => {
3562
3568
  e((C) => !C);
3563
3569
  }, []), m = W(() => typeof c != "boolean" && c ? /* @__PURE__ */ i(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
3564
3570
  de,
@@ -3566,7 +3572,7 @@ const Oe = {
3566
3572
  onClick: f,
3567
3573
  active: t,
3568
3574
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
3569
- children: /* @__PURE__ */ i(ba, {})
3575
+ children: /* @__PURE__ */ i(_a, {})
3570
3576
  }
3571
3577
  ) }) : null, [c, t, f, s]);
3572
3578
  return /* @__PURE__ */ i(he, { children: d && /* @__PURE__ */ k(
@@ -3583,12 +3589,12 @@ const Oe = {
3583
3589
  "data-rp": "thumbnailSidebar",
3584
3590
  className: `${Xe["rp-thumbnails-wrapper"]} ${t ? "" : Xe["rp-thumbnails-wrapper-hidden"]}`,
3585
3591
  children: [
3586
- /* @__PURE__ */ i(_a, { show: t, ref: r }),
3592
+ /* @__PURE__ */ i(ba, { show: t, ref: o }),
3587
3593
  /* @__PURE__ */ i(
3588
- qr,
3594
+ $o,
3589
3595
  {
3590
- onWidthChange: o,
3591
- thumbnailRef: r,
3596
+ onWidthChange: r,
3597
+ thumbnailRef: o,
3592
3598
  leftSidebarRef: a
3593
3599
  }
3594
3600
  )
@@ -3598,25 +3604,25 @@ const Oe = {
3598
3604
  ]
3599
3605
  }
3600
3606
  ) });
3601
- }, Sc = fr((t, e) => {
3607
+ }, Sc = mo((t, e) => {
3602
3608
  const {
3603
3609
  children: n,
3604
- slots: o,
3605
- icons: r,
3610
+ slots: r,
3611
+ icons: o,
3606
3612
  style: a,
3607
3613
  className: c,
3608
3614
  mobileWidth: d,
3609
3615
  onLoaded: s,
3610
3616
  cleanupOnLoaded: f,
3611
3617
  onLayoutWidthChange: m
3612
- } = t, [C, u] = H(null), { setContainer: T, setContentRef: _ } = Te(), { loading: P } = oe(), { LoaderImageComponent: y } = St();
3618
+ } = t, [C, u] = H(null), { setContainer: T, setContentRef: b } = Te(), { loading: P } = re(), { LoaderImageComponent: y } = St();
3613
3619
  return A(() => (s && s(), () => {
3614
3620
  f && f();
3615
3621
  }), [s, f]), // TODO: deprecated in v2.0.0, remove later ~
3616
- /* @__PURE__ */ i(zn, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i($r, { mobileWidth: d, onLayoutWidthChange: m, children: /* @__PURE__ */ i(Gr, { slots: o, children: /* @__PURE__ */ i(jr, { icons: r, children: /* @__PURE__ */ k(Hr, { getContainerRef: T, style: a, className: c, children: [
3622
+ /* @__PURE__ */ i(zn, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i(Uo, { mobileWidth: d, onLayoutWidthChange: m, children: /* @__PURE__ */ i(Vo, { slots: r, children: /* @__PURE__ */ i(jo, { icons: o, children: /* @__PURE__ */ k(Go, { getContainerRef: T, style: a, className: c, children: [
3617
3623
  /* @__PURE__ */ i(Gt, { href: "#rp-navigation", label: "Skip to navigation" }),
3618
3624
  /* @__PURE__ */ i(Gt, { href: "#rp-main-content", label: "Skip to main content" }),
3619
- /* @__PURE__ */ k(Ur, { children: [
3625
+ /* @__PURE__ */ k(qo, { children: [
3620
3626
  /* @__PURE__ */ k("div", { className: ye["rp-layout"], children: [
3621
3627
  /* @__PURE__ */ i("nav", { id: "rp-navigation", role: "navigation", "aria-label": "PDF viewer toolbar", children: /* @__PURE__ */ i(
3622
3628
  ma,
@@ -3638,7 +3644,7 @@ const Oe = {
3638
3644
  "main",
3639
3645
  {
3640
3646
  id: "rp-main-content",
3641
- ref: _,
3647
+ ref: b,
3642
3648
  className: ye["rp-pages"],
3643
3649
  role: "main",
3644
3650
  "aria-label": "PDF document pages",
@@ -3647,7 +3653,7 @@ const Oe = {
3647
3653
  )
3648
3654
  ] })
3649
3655
  ] }),
3650
- /* @__PURE__ */ i(Vr, {})
3656
+ /* @__PURE__ */ i(Bo, {})
3651
3657
  ] }),
3652
3658
  P ? /* @__PURE__ */ i(
3653
3659
  "div",
@@ -3679,30 +3685,30 @@ const Oe = {
3679
3685
  ) : null
3680
3686
  ] }) }) }) }) });
3681
3687
  }), Rc = {
3682
- "rp-toolbar-layout": "_rp-toolbar-layout_vmscg_1",
3683
- "rp-content": "_rp-content_vmscg_7",
3684
- "rp-topbar-content": "_rp-topbar-content_vmscg_13",
3685
- "rp-sidebar-content": "_rp-sidebar-content_vmscg_22",
3686
- "rp-pages": "_rp-pages_vmscg_32",
3687
- "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_vmscg_37",
3688
- "rp-thumbnails-wrapper-hidden": "_rp-thumbnails-wrapper-hidden_vmscg_44"
3688
+ "rp-toolbar-layout": "_rp-toolbar-layout_yancp_1",
3689
+ "rp-content": "_rp-content_yancp_7",
3690
+ "rp-topbar-content": "_rp-topbar-content_yancp_13",
3691
+ "rp-sidebar-content": "_rp-sidebar-content_yancp_22",
3692
+ "rp-pages": "_rp-pages_yancp_32",
3693
+ "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_yancp_37",
3694
+ "rp-thumbnails-wrapper-hidden": "_rp-thumbnails-wrapper-hidden_yancp_45"
3689
3695
  };
3690
3696
  export {
3691
3697
  ma as $,
3692
3698
  Sn as A,
3693
- Bo as B,
3699
+ Br as B,
3694
3700
  Ln as C,
3695
- Vi as D,
3701
+ qi as D,
3696
3702
  En as E,
3697
3703
  Nn as F,
3698
- jo as G,
3699
- Xo as H,
3700
- Jo as I,
3704
+ Zr as G,
3705
+ Xr as H,
3706
+ Jr as I,
3701
3707
  ti as J,
3702
- Ve as K,
3708
+ He as K,
3703
3709
  zn as L,
3704
3710
  vi as M,
3705
- bi as N,
3711
+ _i as N,
3706
3712
  Pi as O,
3707
3713
  Si as P,
3708
3714
  Ti as Q,
@@ -3711,9 +3717,9 @@ export {
3711
3717
  Pc as T,
3712
3718
  Ci as U,
3713
3719
  Jn as V,
3714
- nr as W,
3720
+ no as W,
3715
3721
  na as X,
3716
- ra as Y,
3722
+ oa as Y,
3717
3723
  aa as Z,
3718
3724
  hn as _,
3719
3725
  Sc as a,
@@ -3723,25 +3729,25 @@ export {
3723
3729
  st as c,
3724
3730
  At as d,
3725
3731
  Rn as e,
3726
- bt as f,
3732
+ _t as f,
3727
3733
  We as g,
3728
- $e as h,
3734
+ Ge as h,
3729
3735
  da as i,
3730
- oa as j,
3731
- _c as k,
3736
+ ra as j,
3737
+ bc as k,
3732
3738
  Tc as l,
3733
3739
  Cc as m,
3734
- bc as n,
3740
+ _c as n,
3735
3741
  Rc as o,
3736
- _a as p,
3742
+ ba as p,
3737
3743
  fa as q,
3738
3744
  Bi as r,
3739
3745
  Ji as s,
3740
3746
  yn as t,
3741
3747
  ce as u,
3742
- qo as v,
3748
+ Ur as v,
3743
3749
  In as w,
3744
- Uo as x,
3750
+ Vr as x,
3745
3751
  xn as y,
3746
- Vo as z
3752
+ qr as z
3747
3753
  };