@pdf-viewer/react 1.17.0-rc.2 → 1.18.0-beta.0

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 (78) hide show
  1. package/dist/{ToolbarLayout.module-cf42c84d.js → ToolbarLayout.module-3f4e0f88.js} +840 -832
  2. package/dist/components/RPController.js +15 -14
  3. package/dist/components/RPPages.js +3 -2
  4. package/dist/components/RPProvider.js +33 -22
  5. package/dist/components/layout/LayoutContainer.js +3 -2
  6. package/dist/components/layout/RPDefaultLayout.js +3 -2
  7. package/dist/components/layout/RPLayout.js +4 -3
  8. package/dist/components/layout/sidebar/RPSidebar.js +3 -2
  9. package/dist/components/layout/sidebar/Thumbnail.js +3 -2
  10. package/dist/components/layout/sidebar/Thumbnails.js +3 -2
  11. package/dist/components/layout/toolbar/DocumentDialog.js +3 -2
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +3 -2
  13. package/dist/components/layout/toolbar/MostPageTool.js +3 -2
  14. package/dist/components/layout/toolbar/OtherTool.js +3 -2
  15. package/dist/components/layout/toolbar/Paginate.js +3 -2
  16. package/dist/components/layout/toolbar/PrintTool.js +3 -2
  17. package/dist/components/layout/toolbar/RPMoreOptions.js +7 -6
  18. package/dist/components/layout/toolbar/RPToolbar.js +3 -2
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +3 -2
  20. package/dist/components/layout/toolbar/SearchResultNavigator.js +3 -2
  21. package/dist/components/layout/toolbar/SearchTool.js +3 -2
  22. package/dist/components/layout/toolbar/ThumbnailTool.js +4 -3
  23. package/dist/components/layout/toolbar/ToolbarCustom.js +4 -3
  24. package/dist/components/layout/toolbar/ToolbarDefault.js +4 -3
  25. package/dist/components/layout/toolbar/ToolbarLayout.js +4 -3
  26. package/dist/components/layout/toolbar/ZoomTool.js +3 -2
  27. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +4 -3
  28. package/dist/components/layout/toolbar/tools/DualPageTool.js +4 -3
  29. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +4 -3
  30. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +4 -3
  31. package/dist/components/layout/toolbar/tools/FirstPageTool.js +148 -0
  32. package/dist/components/layout/toolbar/tools/InputPageTool.js +4 -3
  33. package/dist/components/layout/toolbar/tools/LastPageTool.js +148 -0
  34. package/dist/components/layout/toolbar/tools/NextPageTool.js +4 -3
  35. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +4 -3
  36. package/dist/components/layout/toolbar/tools/PrintTool.js +4 -3
  37. package/dist/components/layout/toolbar/tools/SinglePageTool.js +4 -3
  38. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +4 -3
  39. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +3 -2
  40. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +4 -3
  41. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +4 -3
  42. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +4 -3
  43. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +4 -3
  44. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +4 -3
  45. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +12 -11
  46. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +4 -3
  47. package/dist/components/page/AnnotationLayer.js +3 -2
  48. package/dist/components/page/CanvasLayer.js +3 -2
  49. package/dist/components/page/DualPage.js +3 -2
  50. package/dist/components/page/DualPageWithCover.js +3 -2
  51. package/dist/components/page/RPPage.js +3 -2
  52. package/dist/components/page/SinglePage.js +3 -2
  53. package/dist/components/page/TextHighlightLayer.js +3 -2
  54. package/dist/components/page/TextLayer.js +3 -2
  55. package/dist/components/ui/LoadingIndicator.js +3 -2
  56. package/dist/contexts/EventCallbackContext.js +12 -8
  57. package/dist/contexts/PaginationContext.js +5 -4
  58. package/dist/contexts/PrintContext.js +5 -4
  59. package/dist/contexts/RenderQueueProvider.js +5 -4
  60. package/dist/contexts/SearchContext.js +5 -4
  61. package/dist/contexts/ThumbnailsContext.js +5 -4
  62. package/dist/main.js +96 -91
  63. package/dist/types/components/layout/toolbar/tools/FirstPageTool.d.ts +3 -0
  64. package/dist/types/components/layout/toolbar/tools/LastPageTool.d.ts +3 -0
  65. package/dist/types/main.d.ts +3 -1
  66. package/dist/types/utils/hooks/useTextSelection.d.ts +7 -0
  67. package/dist/types/utils/types.d.ts +20 -1
  68. package/dist/utils/hooks/useFileDownload.js +3 -2
  69. package/dist/utils/hooks/useLicense.js +1 -1
  70. package/dist/utils/hooks/usePaginate.js +3 -2
  71. package/dist/utils/hooks/usePresentPage.js +3 -2
  72. package/dist/utils/hooks/usePrint.js +3 -2
  73. package/dist/utils/hooks/useScrollToPage.js +3 -2
  74. package/dist/utils/hooks/useSearch.js +3 -2
  75. package/dist/utils/hooks/useTextSelection.js +76 -0
  76. package/dist/utils/hooks/useThumbnail.js +3 -2
  77. package/dist/utils/hooks/useVirtualReactWindow.js +3 -2
  78. package/package.json +1 -1
@@ -1,111 +1,112 @@
1
- import { jsx as i, Fragment as he, jsxs as k } from "react/jsx-runtime";
1
+ import { jsx as i, Fragment as fe, 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 Ze, useImperativeHandle as mn, createElement as Qe, PureComponent as ur, Component as pr, memo as It, Fragment as hr, forwardRef as fr } from "react";
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 ho, Component as fo, memo as It, Fragment as mo, forwardRef as go } from "react";
4
4
  import { ChevronUpIcon as qe } from "./components/icons/ChevronUpIcon.js";
5
- import { UIButton as de } from "./components/ui/Button.js";
5
+ import { UIButton as le } 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 ne, ScrollMode as re, AnnotationSubType as $t, SelectionMode as vo, ErrorType as wo, ZoomLevel as Me } from "./utils/types.js";
8
8
  import { useScrollModeContext as Ae } from "./contexts/ScrollModeContext.js";
9
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";
10
+ import { useDocumentPasswordContext as bo } from "./contexts/DocumentPasswordContext.js";
11
+ import { useDarkModeContext as _o } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
- import { useLayerContext as br } from "./contexts/LayerContext.js";
14
- import { useZoomContext as rt } from "./contexts/ZoomContext.js";
13
+ import { useLayerContext as Po } from "./contexts/LayerContext.js";
14
+ import { useZoomContext as ot } from "./contexts/ZoomContext.js";
15
15
  import { useViewModeContext as $e } from "./contexts/ViewModeContext.js";
16
- import { useVirtualScrollContext as ot } from "./contexts/VirtualScrollContext.js";
16
+ import { useVirtualScrollContext as rt } from "./contexts/VirtualScrollContext.js";
17
17
  import { useVirtualGridContext as vn } from "./contexts/VirtualGridContext.js";
18
- import { useSelectionModeContext as _r } from "./contexts/SelectionModeContext.js";
18
+ import { useSelectionModeContext as To } 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 Co } 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 yo, resetDivs as Io, highlightMatches as xo, isMatchEntireWord as So } from "./utils/highlight.js";
24
24
  import { useLayoutContainer as Te } from "./contexts/LayoutContainerContext.js";
25
25
  import { useDimensionPagesContext as je } from "./contexts/DimensionPagesContext.js";
26
- import { useLocalizationContext as pe } from "./contexts/LocalizationContext.js";
27
- import { useHighlightContext as xr } from "./contexts/HighlightContext.js";
26
+ import { useLocalizationContext as ue } from "./contexts/LocalizationContext.js";
27
+ import { useHighlightContext as Ro } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
- import { useDownloadContext as Sr } from "./contexts/DownloadContext.js";
29
+ import { useDownloadContext as Lo } 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 Eo } from "./utils/Queue.js";
34
+ import { renderPage as No } from "./utils/renderPage.js";
35
+ import { useGlobalCurrentPage as Oo } from "./contexts/GlobalCurrentPage.js";
36
36
  import { useLoaderContext as St } from "./contexts/LoaderContext.js";
37
- import { useToolComponentContext as xe } from "./contexts/ToolComponentContext.js";
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";
37
+ import { useToolComponentContext as Se } from "./contexts/ToolComponentContext.js";
38
+ import { useIconToolContext as ve } from "./contexts/IconToolContext.js";
39
+ import { useOtherToolContext as Do } from "./contexts/OtherToolContext.js";
40
+ import { useEventCallbackContext as Ao } from "./contexts/EventCallbackContext.js";
41
+ import { useThemeContext as zo } 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";
46
- import { c as Xe, R as Hr } from "./RPSplitter-f6acf13b.js";
47
- import { c as se } from "./clsx-0c6e471a.js";
43
+ import * as Wo from "pdfjs-dist";
44
+ import { PixelsPerInch as Fo, AnnotationMode as ko, RenderingCancelledException as Mo, AnnotationLayer as Ho } from "pdfjs-dist";
45
+ import { ThumbnailIcon as $o } from "./components/icons/Thumbnail.js";
46
+ import { c as Xe, R as Go } from "./RPSplitter-f6acf13b.js";
47
+ import { c as ae } from "./clsx-0c6e471a.js";
48
48
  import { LoaderIcon as bn } from "./components/icons/LoaderIcon.js";
49
- import { Container as $r } from "./components/layout/Container.js";
50
- import { useViewportContext as Se, ViewportProvider as Gr } from "./contexts/ViewportContext.js";
51
- import { useToolbarComponentContext as Ce, ToolbarComponentProvider as Ur } from "./contexts/ToolbarComponentContext.js";
52
- import { WrapperLayout as Vr } from "./components/layout/WrapperLayout.js";
53
- import { RPDropFileZone as qr } from "./components/RPDropFileZone.js";
54
- import { c as ye, L as Br } from "./LayoutWrapper-60db8675.js";
49
+ import { Container as Uo } from "./components/layout/Container.js";
50
+ import { useViewportContext as Re, ViewportProvider as Vo } from "./contexts/ViewportContext.js";
51
+ import { useToolbarComponentContext as Ce, ToolbarComponentProvider as qo } from "./contexts/ToolbarComponentContext.js";
52
+ import { WrapperLayout as Bo } from "./components/layout/WrapperLayout.js";
53
+ import { RPDropFileZone as Zo } from "./components/RPDropFileZone.js";
54
+ import { c as Ie, L as jo } from "./LayoutWrapper-60db8675.js";
55
55
  import { SkipLink as Gt } from "./components/layout/SkipLink.js";
56
- import { c as ne, S as Ut } from "./SearchCloseButton-08d57275.js";
56
+ import { c as te, S as Ut } from "./SearchCloseButton-08d57275.js";
57
57
  import { UICheckbox as Vt } from "./components/ui/Checkbox.js";
58
- import { useIconContext as ve, IconProvider as Zr } from "./contexts/IconContext.js";
58
+ import { useIconContext as we, IconProvider as Ko } 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
- import { MenuItem as Ie } from "./components/layout/toolbar/MenuItem.js";
61
+ import { MenuItem as xe } from "./components/layout/toolbar/MenuItem.js";
62
62
  import { MenuSeparator as Lt } from "./components/layout/toolbar/MenuSeparator.js";
63
63
  import { dateFormatter as qt } from "./utils/dateFormatter.js";
64
- import { PropertyItem as jr } from "./components/layout/toolbar/PropertyItem.js";
64
+ import { PropertyItem as Xo } 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 Zt, enhanceLinkAccessibility as jt, 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 Qo } from "./utils/hooks/useInfiniteScroll.js";
68
+ import { MAX_ZOOM_SCALE as Bt, THUMBNAIL_MIN_WIDTH as Yo } from "./utils/constants.js";
69
+ import { SimpleLinkService as Jo } from "./utils/link_service.js";
70
+ import { annotationsEvents as er, annotationEventsHandler as tr, handleAnnotationWidget as nr, handleAnnotationLink as or, bindLayerEvents as rr, fixTabIndexAccessibility as Zt, enhanceLinkAccessibility as jt, unbindLayerEvents as Kt } from "./utils/annotations.js";
71
+ import { normalizeSingleKeyword as ir, sortHighlightPosition as ar, unwrap as sr } from "./components/page/searchHighlight.js";
72
+ import { CustomElement as cr } from "./components/page/CustomElement.js";
73
+ import { getGridDimension as Et, getPositionFromPage as lr, getPageFromPosition as dr } from "./utils/calculatePage.js";
74
+ import { useMousePressed as ur } from "./utils/hooks/useMousePressed.js";
75
+ import { useGrabScroll as pr } from "./utils/hooks/useGrabScroll.js";
76
+ import { usePinch as hr } 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 fr from "./components/ui/PasswordModal.js";
79
+ import { useCopyText as mr } from "./utils/hooks/useCopyText.js";
80
+ import { useTextSelection as gr } from "./utils/hooks/useTextSelection.js";
80
81
  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";
82
+ import { getWordPositionInPage as vr } from "./utils/getWordPositionInPage.js";
83
+ import { getThumbnailViewport as wr } from "./utils/getThumbnailViewport.js";
83
84
  import { smoothScrollTo as ht } from "./utils/smoothScrollTo.js";
84
- import { appConsole as vo } from "./utils/appConsole.js";
85
+ import { appConsole as br } from "./utils/appConsole.js";
85
86
  import { FileUploadTool as _n } from "./components/layout/toolbar/FileUploadTool.js";
86
- import { DarkModeTool as wo } from "./components/layout/toolbar/DarkModeTool.js";
87
- import { ThreeDotIcon as bo } from "./components/icons/ThreeDotIcon.js";
88
- import { c as _o, u as Ot, P as Ke, a as Ve, 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";
87
+ import { DarkModeTool as _r } from "./components/layout/toolbar/DarkModeTool.js";
88
+ import { ThreeDotIcon as Pr } from "./components/icons/ThreeDotIcon.js";
89
+ import { c as Tr, u as Ot, P as Ke, a as Ve, b as Dt, k as Cr, e as yr, i as Ir } from "./index-c9a2990a.js";
90
+ import { D as xr, d as ft } from "./floating-ui.react-dom-d22a10b4.js";
91
+ import { a as Sr, h as Rr, u as Lr, F as Er, b as Nr, G as tt } from "./index-3bf64864.js";
92
+ import { CloseIcon as Or } from "./components/icons/CloseIcon.js";
93
+ import { DocumentProperties as Dr } from "./components/layout/toolbar/DocumentProperties.js";
94
+ import { RotateTool as Ar } from "./components/layout/toolbar/RotateTool.js";
95
+ import { ViewModeTool as zr } from "./components/layout/toolbar/ViewModeTool.js";
96
+ import { ScrollModeTool as Wr } from "./components/layout/toolbar/ScrollModeTool.js";
97
+ import { FileDownloadDefaultIcon as Fr } from "./components/icons/FileDownloadDefaultIcon.js";
98
+ import { PrintDefaultTool as kr } from "./components/icons/PrintDefaultIcon.js";
98
99
  import { FullScreenTool as Pn } from "./components/layout/toolbar/FullScreenTool.js";
99
100
  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";
101
+ import { SelectionModeTool as Mr } from "./components/layout/toolbar/SelectionModeTool.js";
102
+ import { ZoomInIcon as Hr } from "./components/icons/ZoomInIcon.js";
103
+ import { ZoomOutIcon as $r } from "./components/icons/ZoomOutIcon.js";
104
+ import { isZoomOutDisabled as Gr, isZoomInDisabled as Ur } from "./utils/zoom.js";
104
105
  import { SearchIcon as Cn } from "./components/icons/SearchIcon.js";
105
- import { ClearIcon as Go } from "./components/icons/ClearIcon.js";
106
+ import { ClearIcon as Vr } from "./components/icons/ClearIcon.js";
106
107
  import { InfoIcon as Xt } from "./components/icons/InfoIcon.js";
107
108
  const yn = () => {
108
- const { viewMode: t } = $e(), { scrollMode: e } = Ae(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = ot(), { 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
+ const { viewMode: t } = $e(), { scrollMode: e } = Ae(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = rt(), { setFocusedPage: a } = se(), c = M(), { columnCount: d } = vn(), { widths: s, heights: f } = je(), m = M(e), C = M(t), u = M(d), { targetScrollPage: T } = wn();
109
110
  A(() => {
110
111
  n != null && n.scrollToItem && (c.current = n);
111
112
  }, [n]), A(() => {
@@ -113,7 +114,7 @@ const yn = () => {
113
114
  }, [e, t]);
114
115
  const b = N(
115
116
  (y, w) => {
116
- if (!r)
117
+ if (!o)
117
118
  return;
118
119
  const g = Math.ceil(y / 2) * 2 - 1;
119
120
  if (y === g + 1) {
@@ -122,19 +123,19 @@ const yn = () => {
122
123
  top: 0
123
124
  };
124
125
  return new Promise(
125
- (l) => ht(r, p, l)
126
+ (l) => ht(o, p, l)
126
127
  );
127
128
  }
128
129
  const h = {
129
130
  left: 0,
130
131
  top: 0
131
132
  };
132
- return r == null ? void 0 : r.scrollTo({
133
+ return o == null ? void 0 : o.scrollTo({
133
134
  ...h,
134
135
  behavior: w
135
136
  });
136
137
  },
137
- [r, s, ht]
138
+ [o, s, ht]
138
139
  );
139
140
  return A(() => {
140
141
  m.current = e, C.current = t;
@@ -145,23 +146,23 @@ const yn = () => {
145
146
  a(y);
146
147
  const g = y - 1;
147
148
  let h = g, p = 0;
148
- if (C.current === re.DUAL_PAGE && m.current === ie.PAGE_SCROLLING) {
149
+ if (C.current === ne.DUAL_PAGE && m.current === re.PAGE_SCROLLING) {
149
150
  b(y, w);
150
151
  return;
151
152
  }
152
- if (m.current === ie.PAGE_SCROLLING) {
153
+ if (m.current === re.PAGE_SCROLLING) {
153
154
  a(y);
154
155
  return;
155
156
  }
156
- if (!c.current || !o)
157
+ if (!c.current || !r)
157
158
  return;
158
- const l = o;
159
+ const l = r;
159
160
  w === "smooth" && (T.current = y);
160
161
  const { columnsWidth: v, rowsHeight: _ } = Et(
161
162
  { widths: s, heights: f },
162
163
  d
163
164
  );
164
- if (m.current === ie.HORIZONTAL_SCROLLING) {
165
+ if (m.current === re.HORIZONTAL_SCROLLING) {
165
166
  p = g;
166
167
  const x = ke(v, p), R = {
167
168
  left: Math.floor(x),
@@ -172,7 +173,7 @@ const yn = () => {
172
173
  behavior: w
173
174
  });
174
175
  }
175
- if (C.current === re.DUAL_PAGE) {
176
+ if (C.current === ne.DUAL_PAGE) {
176
177
  p = g % 2, h = Math.floor(g / 2);
177
178
  const R = ke(v, p), O = ke(_, h), D = {
178
179
  left: Math.floor(R),
@@ -193,7 +194,7 @@ const yn = () => {
193
194
  });
194
195
  },
195
196
  [
196
- o,
197
+ r,
197
198
  d,
198
199
  b,
199
200
  a,
@@ -202,15 +203,15 @@ const yn = () => {
202
203
  s
203
204
  ]
204
205
  ) };
205
- }, Uo = (t = 1) => {
206
- const [e, n] = H(t), [o, r] = 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(
206
+ }, qr = (t = 1) => {
207
+ 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
208
  (h) => {
208
209
  if (!/^[0-9]*$/g.test(h.toString()) || !h)
209
210
  return { success: !1, currentPage: c.current };
210
211
  const l = +h;
211
- return l < 0 || l > o ? { success: !1, currentPage: c.current } : (n(l), c.current = l, { success: !0, currentPage: +h });
212
+ return l < 0 || l > r ? { success: !1, currentPage: c.current } : (n(l), c.current = l, { success: !0, currentPage: +h });
212
213
  },
213
- [o]
214
+ [r]
214
215
  ), T = N(u, [u]), b = N(
215
216
  (h) => {
216
217
  const p = u(h);
@@ -222,11 +223,11 @@ const yn = () => {
222
223
  if (!m || p)
223
224
  return !1;
224
225
  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(() => {
226
+ return d === ne.DUAL_PAGE && l + v < m.clientWidth;
227
+ }, [d, f, m, r]), y = N(() => {
227
228
  let h = e - 1;
228
229
  P(h) && (h = e - 2), b(h);
229
- }, [b, e, d, s, P]), w = W(() => d === re.DUAL_PAGE && s === ie.PAGE_SCROLLING ? e === o - 1 : e === o, [e, o, d, s]), g = N(() => {
230
+ }, [b, e, d, s, P]), w = W(() => d === ne.DUAL_PAGE && s === re.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, d, s]), g = N(() => {
230
231
  if (w)
231
232
  return;
232
233
  let h = e + 1;
@@ -234,9 +235,9 @@ const yn = () => {
234
235
  }, [b, e, P, d, s, w]);
235
236
  return {
236
237
  focusedPage: C,
237
- totalPages: o,
238
+ totalPages: r,
238
239
  setFocusedPage: T,
239
- setTotalPages: r,
240
+ setTotalPages: o,
240
241
  nextPage: g,
241
242
  prevPage: y,
242
243
  goToPage: b
@@ -253,21 +254,21 @@ const yn = () => {
253
254
  },
254
255
  nextPage: () => {
255
256
  }
256
- }), ce = () => {
257
+ }), se = () => {
257
258
  const t = Ze(In);
258
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && vo.error("Please use this hooks inside children component of RPProvider"), t;
259
- }, bc = ({ children: t }) => {
260
- const { pdf: e } = oe(), { setCurrentPage: n } = Er(), { focusedPage: o, totalPages: r, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: s, prevPage: f } = Uo();
259
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && br.error("Please use this hooks inside children component of RPProvider"), t;
260
+ }, Tc = ({ children: t }) => {
261
+ const { pdf: e } = oe(), { setCurrentPage: n } = Oo(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: s, prevPage: f } = qr();
261
262
  return A(() => {
262
263
  e != null && e.numPages && (c(e.numPages), a(1));
263
264
  }, [e, c, a]), A(() => {
264
- n(o);
265
- }, [o, n]), /* @__PURE__ */ i(
265
+ n(r);
266
+ }, [r, n]), /* @__PURE__ */ i(
266
267
  In.Provider,
267
268
  {
268
269
  value: {
269
- focusedPage: o,
270
- totalPages: r,
270
+ focusedPage: r,
271
+ totalPages: o,
271
272
  setFocusedPage: a,
272
273
  setTotalPages: c,
273
274
  nextPage: s,
@@ -277,12 +278,12 @@ const yn = () => {
277
278
  children: t
278
279
  }
279
280
  );
280
- }, Vo = () => {
281
- const { pdf: t, pages: e } = oe(), [n, o] = H({
281
+ }, Br = () => {
282
+ const { pdf: t, pages: e } = oe(), [n, r] = H({
282
283
  loadedPages: 0,
283
284
  totalPages: 0,
284
285
  percentage: 0
285
- }), [r, a] = H(!1), [c, d] = H(!1), [s, f] = H(null), [m, C] = H(void 0), u = M(!1);
286
+ }), [o, a] = H(!1), [c, d] = H(!1), [s, f] = H(null), [m, C] = H(void 0), u = M(!1);
286
287
  A(() => {
287
288
  u.current;
288
289
  }, [u]);
@@ -291,7 +292,7 @@ const yn = () => {
291
292
  const l = document.querySelector(".rp-print-zone");
292
293
  l && l.remove();
293
294
  }, []), b = N(() => {
294
- u.current = !1, a(!1), d(!1), f(null), C(void 0), o({
295
+ u.current = !1, a(!1), d(!1), f(null), C(void 0), r({
295
296
  loadedPages: 0,
296
297
  totalPages: 0,
297
298
  percentage: 0
@@ -311,7 +312,7 @@ const yn = () => {
311
312
  b();
312
313
  return;
313
314
  }
314
- const O = S / zr.PDF;
315
+ const O = S / Fo.PDF;
315
316
  l.width = Math.floor(I.width * O), l.height = Math.floor(I.height * O);
316
317
  const D = l.getContext("2d");
317
318
  D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, l.width, l.height), D.restore();
@@ -328,14 +329,14 @@ const yn = () => {
328
329
  transform: [O, 0, 0, O, 0, 0],
329
330
  viewport: z.getViewport({ scale: 1, rotation: I.rotation }),
330
331
  intent: "print",
331
- annotationMode: Wr.ENABLE_STORAGE,
332
+ annotationMode: ko.ENABLE_STORAGE,
332
333
  optionalContentConfigPromise: x,
333
334
  printAnnotationStorage: E
334
335
  };
335
336
  try {
336
337
  return z.render(L).promise;
337
338
  } catch (F) {
338
- throw F instanceof Fr || console.error(F), F;
339
+ throw F instanceof Mo || console.error(F), F;
339
340
  }
340
341
  }, w = N(() => {
341
342
  const l = window.print;
@@ -407,7 +408,7 @@ const yn = () => {
407
408
  const F = await g(_);
408
409
  I.push(F);
409
410
  const G = parseFloat((I.length / O * 100).toFixed(2));
410
- o({
411
+ r({
411
412
  loadedPages: z,
412
413
  totalPages: O,
413
414
  percentage: G
@@ -438,7 +439,7 @@ const yn = () => {
438
439
  print: p,
439
440
  cancel: P,
440
441
  progress: n,
441
- isComplete: r,
442
+ isComplete: o,
442
443
  isError: c,
443
444
  error: s,
444
445
  showDefaultProgress: m
@@ -460,9 +461,9 @@ const yn = () => {
460
461
  console.error("Error in setOnError callback:", e);
461
462
  }
462
463
  }
463
- }), _c = ({ 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 } = Vo(), u = N((w) => {
465
- w && typeof w == "function" && r(() => w);
464
+ }), Cc = ({ children: t }) => {
465
+ const [e, n] = H(null), [r, o] = H(null), { print: a, cancel: c, progress: d, isComplete: s, isError: f, error: m, showDefaultProgress: C } = Br(), u = N((w) => {
466
+ w && typeof w == "function" && o(() => w);
466
467
  }, []), T = (w) => {
467
468
  m && w(m);
468
469
  }, b = N(
@@ -472,8 +473,8 @@ const yn = () => {
472
473
  [d, e]
473
474
  );
474
475
  A(() => {
475
- s && o && P();
476
- }, [s, o]), A(() => {
476
+ s && r && P();
477
+ }, [s, r]), A(() => {
477
478
  f && T((w) => {
478
479
  console.error(w);
479
480
  });
@@ -481,7 +482,7 @@ const yn = () => {
481
482
  d && e && e(d);
482
483
  }, [d, e]);
483
484
  const P = () => {
484
- o && (o(), r(null));
485
+ r && (r(), o(null));
485
486
  }, y = {
486
487
  print: a,
487
488
  cancel: c,
@@ -497,13 +498,13 @@ const yn = () => {
497
498
  if (!t)
498
499
  throw new Error("usePrintContext must be used within a PrintProvider");
499
500
  return t;
500
- }, qo = () => {
501
- const [t, e] = H({}), { pages: n } = oe(), o = W(() => Object.keys(t).length, [t]), r = N(
501
+ }, Zr = () => {
502
+ const [t, e] = H({}), { pages: n } = oe(), r = W(() => Object.keys(t).length, [t]), o = N(
502
503
  (c) => {
503
504
  if (!n.size)
504
505
  return;
505
506
  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);
507
+ const { thumbnailViewport: C, scale: u } = wr(m.page, m.defaultRotation);
507
508
  return {
508
509
  scale: u,
509
510
  page: m.page,
@@ -517,8 +518,8 @@ const yn = () => {
517
518
  [n]
518
519
  );
519
520
  A(() => {
520
- r(10);
521
- }, [r]);
521
+ o(10);
522
+ }, [o]);
522
523
  const a = N(
523
524
  (c) => {
524
525
  if (!n)
@@ -537,7 +538,7 @@ const yn = () => {
537
538
  },
538
539
  [n]
539
540
  );
540
- return { thumbnailPages: t, addPage: a, addToPage: r, thumbnailLength: o };
541
+ return { thumbnailPages: t, addPage: a, addToPage: o, thumbnailLength: r };
541
542
  }, Sn = Be({
542
543
  thumbnailPages: {},
543
544
  addPage: (t) => {
@@ -548,20 +549,20 @@ const yn = () => {
548
549
  setActive: (t) => {
549
550
  },
550
551
  active: !1
551
- }), Rn = () => Ze(Sn), Pc = ({
552
+ }), Rn = () => Ze(Sn), yc = ({
552
553
  children: t,
553
554
  initialThumbnailsVisible: e
554
555
  }) => {
555
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = qo(), [c, d] = H(e);
556
+ const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = Zr(), [c, d] = H(e);
556
557
  return /* @__PURE__ */ i(
557
558
  Sn.Provider,
558
559
  {
559
- value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: c, setActive: d },
560
+ value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a, active: c, setActive: d },
560
561
  children: t
561
562
  }
562
563
  );
563
- }, Bo = (t = {}, e = "") => {
564
- const [n, o] = H(e), [r, a] = H(!1), { pdf: c, pages: d } = oe(), { widths: s, heights: f } = je(), m = M(!n), { currentZoom: C } = rt(), [u, T] = H([]), { setFocusedPage: b } = ce(), { columnCount: P } = $e(), { pageRotate: y } = it(), [w, g] = H(0), { pageScrollElementRef: h, virtualScrollableElementRef: p } = ot(), { scrollMode: l } = Ae(), { pagesRef: v } = Te(), _ = M({}), I = M(0), S = W(() => w === 0 ? null : u[w - 1], [w, u]), x = W(() => u.length, [u]), R = N(
564
+ }, jr = (t = {}, e = "") => {
565
+ const [n, r] = H(e), [o, a] = H(!1), { pdf: c, pages: d } = oe(), { widths: s, heights: f } = je(), m = M(!n), { currentZoom: C } = ot(), [u, T] = H([]), { setFocusedPage: b } = se(), { 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
566
  (E) => {
566
567
  if (E === 0)
567
568
  return;
@@ -572,29 +573,29 @@ const yn = () => {
572
573
  if (!F || !v)
573
574
  return;
574
575
  const G = d.get(L.page);
575
- if (l === ie.PAGE_SCROLLING && b(L.page), !G)
576
+ if (l === re.PAGE_SCROLLING && b(L.page), !G)
576
577
  return;
577
578
  let U = 0, V = 0;
578
- if (l === ie.VERTICAL_SCROLLING) {
579
- const ee = L.page - 1, Y = P, we = ee % Y, me = Math.floor(ee / Y);
580
- U = ke(f, me), V = ke(s, we);
579
+ if (l === re.VERTICAL_SCROLLING) {
580
+ const ee = L.page - 1, Q = P, he = ee % Q, ge = Math.floor(ee / Q);
581
+ U = ke(f, ge), V = ke(s, he);
581
582
  }
582
- l === ie.HORIZONTAL_SCROLLING && (V = s.slice(0, L.page - 1).reduce((ee, Y) => ee + Y, 0));
583
+ l === re.HORIZONTAL_SCROLLING && (V = s.slice(0, L.page - 1).reduce((ee, Q) => ee + Q, 0));
583
584
  const B = {
584
585
  height: f[L.page - 1],
585
586
  width: s[L.page - 1]
586
- }, Z = y[L.page], { leftInPage: ae, topInPage: $ } = mo(
587
+ }, Z = y[L.page], { leftInPage: ie, topInPage: $ } = vr(
587
588
  B,
588
589
  v,
589
590
  L.rect,
590
591
  C,
591
592
  Z
592
- ), Q = V + ae, J = U + $, te = {
593
- left: Math.max(Q, 0),
593
+ ), Y = V + ie, J = U + $, pe = {
594
+ left: Math.max(Y, 0),
594
595
  top: Math.max(J, 0)
595
596
  };
596
597
  F.scrollTo({
597
- ...te,
598
+ ...pe,
598
599
  behavior: "smooth"
599
600
  });
600
601
  },
@@ -643,7 +644,7 @@ const yn = () => {
643
644
  m.current = !1, a(!0), T([]), g(0), z(c).then((E) => {
644
645
  _.current = E;
645
646
  const F = Object.keys(E).reduce((G, U) => {
646
- const V = Tr(
647
+ const V = yo(
647
648
  [n],
648
649
  E[U],
649
650
  Number(U) - 1,
@@ -657,8 +658,8 @@ const yn = () => {
657
658
  }).finally(() => a(!1));
658
659
  }, [n, z, c, t]), {
659
660
  search: n,
660
- setSearch: o,
661
- loading: r,
661
+ setSearch: r,
662
+ loading: o,
662
663
  matches: u,
663
664
  totalMatches: x,
664
665
  currentMatchPosition: w,
@@ -683,12 +684,12 @@ const yn = () => {
683
684
  searchOptions: {},
684
685
  setSearchOptions: (t) => t,
685
686
  setCurrentMatchPosition: (t) => t
686
- }), Tc = ({
687
+ }), Ic = ({
687
688
  children: t,
688
689
  initialSearch: e
689
690
  }) => {
690
- const [n, o] = H({}), {
691
- loading: r,
691
+ const [n, r] = H({}), {
692
+ loading: o,
692
693
  setSearch: a,
693
694
  totalMatches: c,
694
695
  currentMatchPosition: d,
@@ -698,14 +699,14 @@ const yn = () => {
698
699
  nextMatch: C,
699
700
  prevMatch: u,
700
701
  setCurrentMatchPosition: T
701
- } = Bo(n, e);
702
+ } = jr(n, e);
702
703
  return /* @__PURE__ */ i(
703
704
  Ln.Provider,
704
705
  {
705
706
  value: {
706
707
  searchOptions: n,
707
- setSearchOptions: o,
708
- loading: r,
708
+ setSearchOptions: r,
709
+ loading: o,
709
710
  setSearch: a,
710
711
  totalMatches: c,
711
712
  currentMatchPosition: d,
@@ -719,10 +720,10 @@ const yn = () => {
719
720
  children: t
720
721
  }
721
722
  );
722
- }, At = () => Ze(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(
723
+ }, At = () => Ze(Ln), En = Be(null), xc = ({ children: t }) => {
724
+ const e = M(!1), [n, r] = H([]), o = N((s) => {
725
+ r((f) => [...f, { id: s.page.pageNumber.toString(), data: s, priority: 0 }]);
726
+ }, []), a = W(() => new Eo(o), [o]), { focusedPage: c } = se(), d = N((s) => (e.current = !0, No(
726
727
  s.data.page,
727
728
  s.data.canvasElem,
728
729
  s.data.options
@@ -740,7 +741,7 @@ const yn = () => {
740
741
  const f = a.dequeue();
741
742
  f ? d(f).finally(() => {
742
743
  s();
743
- }) : (e.current = !1, o(a.peekAll()));
744
+ }) : (e.current = !1, r(a.peekAll()));
744
745
  };
745
746
  s();
746
747
  }, [a, d, n]), /* @__PURE__ */ i(En.Provider, { value: a, children: t });
@@ -749,7 +750,7 @@ const yn = () => {
749
750
  if (!t)
750
751
  throw new Error("RenderQueue not found");
751
752
  return t;
752
- }, le = {
753
+ }, ce = {
753
754
  "rp-pages": "_rp-pages_u7m2r_1",
754
755
  "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_u7m2r_6",
755
756
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_u7m2r_11",
@@ -764,17 +765,17 @@ const yn = () => {
764
765
  "rp-page-wrapper": "_rp-page-wrapper_ii91u_1",
765
766
  "rp-page": "_rp-page_ii91u_1",
766
767
  "rp-loader-wrapper": "_rp-loader-wrapper_ii91u_15"
767
- }, Zo = (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}`);
768
+ }, Kr = (t) => {
769
+ const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = M(null), { pages: a } = oe(), { pageRotate: c } = it(), d = M(), { currentZoom: s } = ot(), { interactiveForm: f } = xt(), m = Nn(), C = M(`page-${e}`);
769
770
  return A(() => {
770
771
  if (!a || s === 0)
771
772
  return;
772
773
  const u = a.get(e);
773
- if (r.current && u) {
774
- const T = r.current;
774
+ if (o.current && u) {
775
+ const T = o.current;
775
776
  T.hidden = !0;
776
777
  const b = d.current;
777
- b && b.cancel(), o && o(), m.enqueue(
778
+ b && b.cancel(), r && r(), m.enqueue(
778
779
  C.current,
779
780
  {
780
781
  page: u.page,
@@ -793,22 +794,22 @@ const yn = () => {
793
794
  return () => {
794
795
  m.removeQueue(C.current);
795
796
  };
796
- }, [a, e, c, s, o, n, m, f]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
797
- }, jo = "_selecting_1oep2_10", Ko = "_markedContent_1oep2_33", _e = {
797
+ }, [a, e, c, s, r, n, m, f]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
798
+ }, Xr = "_selecting_1oep2_10", Qr = "_markedContent_1oep2_33", _e = {
798
799
  "rp-text-layer": "_rp-text-layer_1oep2_1",
799
- selecting: jo,
800
- markedContent: Ko,
800
+ selecting: Xr,
801
+ markedContent: Qr,
801
802
  "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(
803
+ }, Yr = (t) => {
804
+ const { pageNumber: e } = t, { pages: n } = oe(), r = M(null), { matches: o, currentMatch: a } = At(), [c, d] = H(
804
805
  []
805
- ), s = M(), f = M(), m = M([]), C = W(() => r.filter((g) => g.pageIndex === e - 1), [r, e]), u = N(
806
+ ), s = M(), f = M(), m = M([]), C = W(() => o.filter((g) => g.pageIndex === e - 1), [o, e]), u = N(
806
807
  (g, h, p = !1) => {
807
- if (p && Cr(g, h), !C.length) {
808
+ if (p && Io(g, h), !C.length) {
808
809
  m.current = [], d([]);
809
810
  return;
810
811
  }
811
- const l = yr(C, g, h);
812
+ const l = xo(C, g, h);
812
813
  d(l);
813
814
  },
814
815
  [C]
@@ -890,9 +891,9 @@ const yn = () => {
890
891
  (h = T.current) == null || h.abort(), T.current = void 0;
891
892
  }), [P]);
892
893
  const y = N(() => {
893
- o.current && o.current.classList.add(_e.selecting);
894
+ r.current && r.current.classList.add(_e.selecting);
894
895
  }, []), w = N(() => {
895
- o.current && o.current.classList.remove(_e.selecting);
896
+ r.current && r.current.classList.remove(_e.selecting);
896
897
  }, []);
897
898
  return A(() => {
898
899
  if (m.current.forEach((p) => {
@@ -910,12 +911,12 @@ const yn = () => {
910
911
  }));
911
912
  }, [a, c, C]), A(() => {
912
913
  const g = n.get(e);
913
- if (!g || !o.current)
914
+ if (!g || !r.current)
914
915
  return;
915
- const h = o.current;
916
+ const h = r.current;
916
917
  return s.current && s.current.cancel(), g.page.getTextContent().then((p) => {
917
918
  const l = g.page.getViewport({ scale: 1 });
918
- return s.current = new Ar.TextLayer({
919
+ return s.current = new Wo.TextLayer({
919
920
  viewport: l,
920
921
  textContentSource: p,
921
922
  container: h
@@ -928,7 +929,7 @@ const yn = () => {
928
929
  const l = (_ = s.current) == null ? void 0 : _.textDivs;
929
930
  l && f.current && u(f.current, l);
930
931
  const v = document.createElement("div");
931
- v.className = "endOfContent", (I = o.current) == null || I.appendChild(v);
932
+ v.className = "endOfContent", (I = r.current) == null || I.appendChild(v);
932
933
  }).catch(() => {
933
934
  }), () => {
934
935
  var p;
@@ -936,7 +937,7 @@ const yn = () => {
936
937
  };
937
938
  }, [n, e]), A(() => {
938
939
  var p;
939
- [].slice.call(o.current.children).forEach((l) => {
940
+ [].slice.call(r.current.children).forEach((l) => {
940
941
  l.classList.add(_e["rp-text-layer-text"]);
941
942
  });
942
943
  const h = (p = s.current) == null ? void 0 : p.textDivs;
@@ -947,32 +948,32 @@ const yn = () => {
947
948
  "data-rp-text-layer": !0,
948
949
  "data-rp": `page-${e}-textLayer`,
949
950
  className: _e["rp-text-layer"],
950
- ref: o,
951
+ ref: r,
951
952
  onMouseDown: y,
952
953
  onMouseUp: w
953
954
  }
954
955
  );
955
- }, Qo = {
956
+ }, Jr = {
956
957
  "rp-annotation-layer": "_rp-annotation-layer_1udza_1"
957
958
  };
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), b = W(() => o.get(e), [o, e]), P = W(() => b == null ? void 0 : b.page.getViewport(), [b]);
959
+ let ei = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
960
+ const ti = (t) => {
961
+ const { pageNumber: e } = t, n = M(null), { pages: r, pdf: o } = oe(), { interactiveForm: a } = xt(), c = M(), [d, s] = H(), { goToPage: f } = se(), { 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
962
  A(() => {
962
963
  c.current && (c.current.div.replaceChildren(), c.current = void 0);
963
- }, [r]), A(() => {
964
+ }, [o]), A(() => {
964
965
  b && b.page.getAnnotations().then((w) => {
965
966
  c.current = void 0, s(w), n.current && (n.current.innerText = "");
966
967
  });
967
968
  }, [b]);
968
969
  const y = N(
969
970
  (w) => {
970
- !d || !r || (Yr(w), Jr(w, r, d).then((g) => {
971
+ !d || !o || (er(w), tr(w, o, d).then((g) => {
971
972
  var h, p;
972
973
  ((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
974
  }));
974
975
  },
975
- [r, d, m, C, u]
976
+ [o, d, m, C, u]
976
977
  );
977
978
  return A(() => {
978
979
  if (!b || !d)
@@ -989,17 +990,17 @@ const Jo = (t) => {
989
990
  const { annotationType: v } = l;
990
991
  switch (v) {
991
992
  case $t.Link:
992
- to(l);
993
+ or(l);
993
994
  break;
994
995
  case $t.Widget:
995
- eo(l, w, g);
996
+ nr(l, w, g);
996
997
  break;
997
998
  }
998
999
  }
999
1000
  const h = new AbortController();
1000
1001
  return (async () => {
1001
1002
  var _;
1002
- c.current && (c.current.div.replaceChildren(), c.current = void 0), n.current && (n.current.innerText = ""), c.current = new kr({
1003
+ c.current && (c.current.div.replaceChildren(), c.current = void 0), n.current && (n.current.innerText = ""), c.current = new Ho({
1003
1004
  div: n.current,
1004
1005
  accessibilityManager: void 0,
1005
1006
  annotationCanvasMap: void 0,
@@ -1008,25 +1009,25 @@ const Jo = (t) => {
1008
1009
  page: b.page,
1009
1010
  viewport: w.clone({ dontFlip: !0 })
1010
1011
  }), n.current && Kt(n.current, y);
1011
- const l = await (r == null ? void 0 : r.hasJSActions()), v = await (r == null ? void 0 : r.getFieldObjects());
1012
+ const l = await (o == null ? void 0 : o.hasJSActions()), v = await (o == null ? void 0 : o.getFieldObjects());
1012
1013
  if (h.signal.aborted)
1013
1014
  throw "abort";
1014
1015
  return (_ = c.current) == null ? void 0 : _.render({
1015
1016
  annotations: d,
1016
- annotationStorage: r == null ? void 0 : r.annotationStorage,
1017
+ annotationStorage: o == null ? void 0 : o.annotationStorage,
1017
1018
  hasJSActions: l,
1018
1019
  fieldObjects: v,
1019
1020
  div: n.current,
1020
1021
  viewport: w.clone({ dontFlip: !0 }),
1021
1022
  page: b.page,
1022
- imageResourcesPath: Yo,
1023
+ imageResourcesPath: ei,
1023
1024
  renderForms: a ?? !0,
1024
- linkService: new Qr(r, f),
1025
+ linkService: new Jo(o, f),
1025
1026
  downloadManager: null,
1026
1027
  enableScripting: !1
1027
1028
  });
1028
1029
  })().then(() => {
1029
- n.current && (no(n.current, y), Zt(n.current), jt(n.current), T.current && T.current.disconnect(), T.current = new MutationObserver(() => {
1030
+ n.current && (rr(n.current, y), Zt(n.current), jt(n.current), T.current && T.current.disconnect(), T.current = new MutationObserver(() => {
1030
1031
  n.current && (Zt(n.current), jt(n.current));
1031
1032
  }), T.current.observe(n.current, {
1032
1033
  childList: !0,
@@ -1042,34 +1043,34 @@ const Jo = (t) => {
1042
1043
  }), () => {
1043
1044
  h.abort("clear"), n.current && Kt(n.current, y), T.current && (T.current.disconnect(), T.current = null);
1044
1045
  };
1045
- }, [r, d, y, f]), /* @__PURE__ */ i(
1046
+ }, [o, d, y, f]), /* @__PURE__ */ i(
1046
1047
  "div",
1047
1048
  {
1048
1049
  "data-rp": `page-${e}-annotationLayer`,
1049
1050
  style: { width: `${P == null ? void 0 : P.width}px`, height: `${P == null ? void 0 : P.height}px` },
1050
- className: Qo["rp-annotation-layer"],
1051
+ className: Jr["rp-annotation-layer"],
1051
1052
  ref: n
1052
1053
  }
1053
1054
  );
1054
- }, ei = {
1055
+ }, ni = {
1055
1056
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
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
+ }, oi = ({ pageNumber: t, viewport: e }) => {
1058
+ const [n, r] = H(), { pages: o } = oe(), { highlightKeywords: a } = Ro(), c = !0, d = M(null), [s, f] = H(null), [m, C] = H([]);
1058
1059
  A(() => {
1059
1060
  d.current && f(d.current.parentElement);
1060
1061
  }, [d]), A(() => {
1061
1062
  (async () => {
1062
- const h = r.get(t);
1063
+ const h = o.get(t);
1063
1064
  if (!h || !d.current)
1064
1065
  return;
1065
1066
  const p = await h.page.getTextContent();
1066
- o(p);
1067
+ r(p);
1067
1068
  })();
1068
- }, [r, t]);
1069
+ }, [o, t]);
1069
1070
  const u = W(() => a ? a.map((g) => {
1070
1071
  var h, p;
1071
1072
  return {
1072
- ...ro(g.keyword, (h = g.options) == null ? void 0 : h.matchCase, (p = g.options) == null ? void 0 : p.wholeWords),
1073
+ ...ir(g.keyword, (h = g.options) == null ? void 0 : h.matchCase, (p = g.options) == null ? void 0 : p.wholeWords),
1073
1074
  color: g.highlightColor
1074
1075
  };
1075
1076
  }) : [], [a]);
@@ -1118,7 +1119,7 @@ const Jo = (t) => {
1118
1119
  const R = document.createElement("span");
1119
1120
  R.style.width = "auto", v.surroundContents(R);
1120
1121
  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 io(R), {
1122
+ return sr(R), {
1122
1123
  keywordStr: h,
1123
1124
  left: L,
1124
1125
  top: F,
@@ -1166,7 +1167,7 @@ const Jo = (t) => {
1166
1167
  let L;
1167
1168
  const F = [];
1168
1169
  for (; (L = E.exec(I)) !== null; )
1169
- O && !Ir(I, L.index, L[0].length) || F.push({
1170
+ O && !So(I, L.index, L[0].length) || F.push({
1170
1171
  keyword: E,
1171
1172
  startIndex: L.index,
1172
1173
  endIndex: E.lastIndex
@@ -1183,21 +1184,21 @@ const Jo = (t) => {
1183
1184
  );
1184
1185
  for (const B of Object.values(V))
1185
1186
  if (B.length !== 1 || B[0].char.trim() !== "") {
1186
- const Z = B, ae = p[Z[0].spanIdx], $ = P(
1187
+ const Z = B, ie = p[Z[0].spanIdx], $ = P(
1187
1188
  g,
1188
1189
  z,
1189
- ae,
1190
+ ie,
1190
1191
  Z
1191
1192
  );
1192
1193
  if ($) {
1193
- const { left: Q, top: J } = $;
1194
- if (_.find((ee) => ee.left === Q && ee.top === J))
1194
+ const { left: Y, top: J } = $;
1195
+ if (_.find((ee) => ee.left === Y && ee.top === J))
1195
1196
  continue;
1196
1197
  _.push({ ...$, highlightColor: U.color });
1197
1198
  }
1198
1199
  }
1199
1200
  }
1200
- }), _.sort(oo), _;
1201
+ }), _.sort(ar), _;
1201
1202
  };
1202
1203
  return A(() => {
1203
1204
  (async () => {
@@ -1211,10 +1212,10 @@ const Jo = (t) => {
1211
1212
  console.error(h);
1212
1213
  }
1213
1214
  })();
1214
- }, [c, a, t, n, e]), /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i("div", { ref: d, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, h) => /* @__PURE__ */ i(
1215
+ }, [c, a, t, n, e]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: d, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, h) => /* @__PURE__ */ i(
1215
1216
  "div",
1216
1217
  {
1217
- className: ei["rp-text-highlight"],
1218
+ className: ni["rp-text-highlight"],
1218
1219
  style: {
1219
1220
  top: `${g.top}%`,
1220
1221
  left: `${g.left}%`,
@@ -1226,7 +1227,7 @@ const Jo = (t) => {
1226
1227
  h
1227
1228
  )) }) });
1228
1229
  }, He = at((t, e) => {
1229
- const { pageNumber: n, style: o, ...r } = t, { pages: a } = oe(), { pageRotate: c } = it(), { textLayer: d } = br(), { currentZoom: s } = rt(), { LoaderImageComponent: f } = St(), m = M(a.get(n)), [C, u] = H(!1), T = M(null), [b, P] = H({
1230
+ const { pageNumber: n, style: r, ...o } = t, { pages: a } = oe(), { pageRotate: c } = it(), { textLayer: d } = Po(), { currentZoom: s } = ot(), { LoaderImageComponent: f } = St(), m = M(a.get(n)), [C, u] = H(!1), T = M(null), [b, P] = H({
1230
1231
  width: 0,
1231
1232
  height: 0
1232
1233
  });
@@ -1262,9 +1263,9 @@ const Jo = (t) => {
1262
1263
  ref: T,
1263
1264
  id: `page-${n}`,
1264
1265
  "data-rp": `page-${n}`,
1265
- ...r,
1266
+ ...o,
1266
1267
  style: {
1267
- ...o,
1268
+ ...r,
1268
1269
  "--rp-rotate": `${y}deg`,
1269
1270
  "--rp-page-rotate-translate": `${w}`,
1270
1271
  "--scale-factor": s
@@ -1279,12 +1280,12 @@ const Jo = (t) => {
1279
1280
  },
1280
1281
  className: mt["rp-page"],
1281
1282
  children: [
1282
- /* @__PURE__ */ i(Zo, { onLoading: g, onLoaded: h, pageNumber: n }),
1283
+ /* @__PURE__ */ i(Kr, { onLoading: g, onLoaded: h, pageNumber: n }),
1283
1284
  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: b }),
1287
- /* @__PURE__ */ i(Jo, { pageNumber: n })
1285
+ /* @__PURE__ */ i(cr, { pageNumber: n }),
1286
+ d && /* @__PURE__ */ i(Yr, { pageNumber: n }),
1287
+ /* @__PURE__ */ i(oi, { pageNumber: n, viewport: b }),
1288
+ /* @__PURE__ */ i(ti, { pageNumber: n })
1288
1289
  ]
1289
1290
  }
1290
1291
  )
@@ -1295,8 +1296,8 @@ function Pt() {
1295
1296
  return Pt = Object.assign ? Object.assign.bind() : function(t) {
1296
1297
  for (var e = 1; e < arguments.length; e++) {
1297
1298
  var n = arguments[e];
1298
- for (var o in n)
1299
- ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
1299
+ for (var r in n)
1300
+ ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
1300
1301
  }
1301
1302
  return t;
1302
1303
  }, Pt.apply(null, arguments);
@@ -1307,34 +1308,34 @@ function Qt(t) {
1307
1308
  return t;
1308
1309
  }
1309
1310
  function Tt(t, e) {
1310
- return Tt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
1311
- return n.__proto__ = o, n;
1311
+ return Tt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1312
+ return n.__proto__ = r, n;
1312
1313
  }, Tt(t, e);
1313
1314
  }
1314
- function ni(t, e) {
1315
+ function ri(t, e) {
1315
1316
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Tt(t, e);
1316
1317
  }
1317
1318
  var Yt = Number.isNaN || function(e) {
1318
1319
  return typeof e == "number" && e !== e;
1319
1320
  };
1320
- function ri(t, e) {
1321
+ function ii(t, e) {
1321
1322
  return !!(t === e || Yt(t) && Yt(e));
1322
1323
  }
1323
- function oi(t, e) {
1324
+ function ai(t, e) {
1324
1325
  if (t.length !== e.length)
1325
1326
  return !1;
1326
1327
  for (var n = 0; n < t.length; n++)
1327
- if (!ri(t[n], e[n]))
1328
+ if (!ii(t[n], e[n]))
1328
1329
  return !1;
1329
1330
  return !0;
1330
1331
  }
1331
1332
  function gt(t, e) {
1332
- e === void 0 && (e = oi);
1333
- var n, o = [], r, a = !1;
1333
+ e === void 0 && (e = ai);
1334
+ var n, r = [], o, a = !1;
1334
1335
  function c() {
1335
1336
  for (var d = [], s = 0; s < arguments.length; s++)
1336
1337
  d[s] = arguments[s];
1337
- return a && n === this && e(d, o) || (r = t.apply(this, d), a = !0, n = this, o = d), r;
1338
+ return a && n === this && e(d, r) || (o = t.apply(this, d), a = !0, n = this, r = d), o;
1338
1339
  }
1339
1340
  return c;
1340
1341
  }
@@ -1342,15 +1343,15 @@ function Jt(t, e) {
1342
1343
  if (t == null)
1343
1344
  return {};
1344
1345
  var n = {};
1345
- for (var o in t)
1346
- if ({}.hasOwnProperty.call(t, o)) {
1347
- if (e.indexOf(o) !== -1)
1346
+ for (var r in t)
1347
+ if ({}.hasOwnProperty.call(t, r)) {
1348
+ if (e.indexOf(r) !== -1)
1348
1349
  continue;
1349
- n[o] = t[o];
1350
+ n[r] = t[r];
1350
1351
  }
1351
1352
  return n;
1352
1353
  }
1353
- var ii = typeof performance == "object" && typeof performance.now == "function", en = ii ? function() {
1354
+ var si = typeof performance == "object" && typeof performance.now == "function", en = si ? function() {
1354
1355
  return performance.now();
1355
1356
  } : function() {
1356
1357
  return Date.now();
@@ -1358,18 +1359,18 @@ var ii = typeof performance == "object" && typeof performance.now == "function",
1358
1359
  function tn(t) {
1359
1360
  cancelAnimationFrame(t.id);
1360
1361
  }
1361
- function ai(t, e) {
1362
+ function ci(t, e) {
1362
1363
  var n = en();
1363
- function o() {
1364
- en() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
1364
+ function r() {
1365
+ en() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
1365
1366
  }
1366
- var r = {
1367
- id: requestAnimationFrame(o)
1367
+ var o = {
1368
+ id: requestAnimationFrame(r)
1368
1369
  };
1369
- return r;
1370
+ return o;
1370
1371
  }
1371
1372
  var vt = -1;
1372
- function si(t) {
1373
+ function li(t) {
1373
1374
  if (t === void 0 && (t = !1), vt === -1 || t) {
1374
1375
  var e = document.createElement("div"), n = e.style;
1375
1376
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), vt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1381,22 +1382,22 @@ function nn(t) {
1381
1382
  if (t === void 0 && (t = !1), ze === null || t) {
1382
1383
  var e = document.createElement("div"), n = e.style;
1383
1384
  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;
1385
+ var r = document.createElement("div"), o = r.style;
1386
+ 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
1387
  }
1387
1388
  return ze;
1388
1389
  }
1389
- var ci = 150, li = function(e) {
1390
+ var di = 150, ui = function(e) {
1390
1391
  var n = e.columnIndex;
1391
1392
  e.data;
1392
- var o = e.rowIndex;
1393
- return o + ":" + n;
1393
+ var r = e.rowIndex;
1394
+ return r + ":" + n;
1394
1395
  }, Ye = null, Je = null, et = null;
1395
1396
  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
- function di(t) {
1397
- var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, s = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, C = t.getRowOffset, u = t.getRowStartIndexForOffset, T = t.getRowStopIndexForStartIndex, b = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, y = t.validateProps;
1397
+ function pi(t) {
1398
+ 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
1399
  return e = /* @__PURE__ */ function(w) {
1399
- ni(g, w);
1400
+ ri(g, w);
1400
1401
  function g(p) {
1401
1402
  var l;
1402
1403
  return l = w.call(this, p) || this, l._instanceProps = b(l.props, Qt(l)), l._resetIsScrollingTimeoutId = null, l._outerRef = void 0, l.state = {
@@ -1474,7 +1475,7 @@ function di(t) {
1474
1475
  var _ = l.props.outerRef;
1475
1476
  l._outerRef = v, typeof _ == "function" ? _(v) : _ != null && typeof _ == "object" && _.hasOwnProperty("current") && (_.current = v);
1476
1477
  }, l._resetIsScrollingDebounced = function() {
1477
- l._resetIsScrollingTimeoutId !== null && tn(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ai(l._resetIsScrolling, ci);
1478
+ l._resetIsScrollingTimeoutId !== null && tn(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ci(l._resetIsScrolling, di);
1478
1479
  }, l._resetIsScrolling = function() {
1479
1480
  l._resetIsScrollingTimeoutId = null, l.setState({
1480
1481
  isScrolling: !1
@@ -1484,7 +1485,7 @@ function di(t) {
1484
1485
  }, l;
1485
1486
  }
1486
1487
  g.getDerivedStateFromProps = function(l, v) {
1487
- return ui(l, v), y(l), null;
1488
+ return hi(l, v), y(l), null;
1488
1489
  };
1489
1490
  var h = g.prototype;
1490
1491
  return h.scrollTo = function(l) {
@@ -1499,7 +1500,7 @@ function di(t) {
1499
1500
  };
1500
1501
  }, this._resetIsScrollingDebounced);
1501
1502
  }, h.scrollToItem = function(l) {
1502
- var v = l.align, _ = v === void 0 ? "auto" : v, I = l.columnIndex, S = l.rowIndex, x = this.props, R = x.columnCount, O = x.height, D = x.rowCount, z = x.width, E = this.state, L = E.scrollLeft, F = E.scrollTop, G = si();
1503
+ 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 = li();
1503
1504
  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
1505
  var U = c(this.props, this._instanceProps), V = d(this.props, this._instanceProps), B = V > z ? G : 0, Z = U > O ? G : 0;
1505
1506
  this.scrollTo({
@@ -1538,23 +1539,23 @@ function di(t) {
1538
1539
  }, h.componentWillUnmount = function() {
1539
1540
  this._resetIsScrollingTimeoutId !== null && tn(this._resetIsScrollingTimeoutId);
1540
1541
  }, h.render = function() {
1541
- var l = this.props, v = l.children, _ = l.className, I = l.columnCount, S = l.direction, x = l.height, R = l.innerRef, O = l.innerElementType, D = l.innerTagName, z = l.itemData, E = l.itemKey, L = E === void 0 ? li : E, F = l.outerElementType, G = l.outerTagName, 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
+ 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 ? ui : E, F = l.outerElementType, G = l.outerTagName, U = l.rowCount, V = l.style, B = l.useIsScrolling, Z = l.width, ie = this.state.isScrolling, $ = this._getHorizontalRangeToRender(), Y = $[0], J = $[1], pe = this._getVerticalRangeToRender(), ee = pe[0], Q = pe[1], he = [];
1542
1543
  if (I > 0 && U)
1543
- for (var me = ee; me <= Y; me++)
1544
- for (var Re = Q; Re <= J; Re++)
1545
- we.push(Qe(v, {
1546
- columnIndex: Re,
1544
+ for (var ge = ee; ge <= Q; ge++)
1545
+ for (var ye = Y; ye <= J; ye++)
1546
+ he.push(Qe(v, {
1547
+ columnIndex: ye,
1547
1548
  data: z,
1548
- isScrolling: B ? ae : void 0,
1549
+ isScrolling: B ? ie : void 0,
1549
1550
  key: L({
1550
- columnIndex: Re,
1551
+ columnIndex: ye,
1551
1552
  data: z,
1552
- rowIndex: me
1553
+ rowIndex: ge
1553
1554
  }),
1554
- rowIndex: me,
1555
- style: this._getItemStyle(me, Re)
1555
+ rowIndex: ge,
1556
+ style: this._getItemStyle(ge, ye)
1556
1557
  }));
1557
- var Le = c(this.props, this._instanceProps), lt = d(this.props, this._instanceProps);
1558
+ var lt = c(this.props, this._instanceProps), Le = d(this.props, this._instanceProps);
1558
1559
  return Qe(F || G || "div", {
1559
1560
  className: _,
1560
1561
  onScroll: this._onScroll,
@@ -1569,12 +1570,12 @@ function di(t) {
1569
1570
  direction: S
1570
1571
  }, V)
1571
1572
  }, Qe(O || D || "div", {
1572
- children: we,
1573
+ children: he,
1573
1574
  ref: R,
1574
1575
  style: {
1575
- height: Le,
1576
- pointerEvents: ae ? "none" : void 0,
1577
- width: lt
1576
+ height: lt,
1577
+ pointerEvents: ie ? "none" : void 0,
1578
+ width: Le
1578
1579
  }
1579
1580
  }));
1580
1581
  }, h._callPropsCallbacks = function() {
@@ -1584,14 +1585,14 @@ function di(t) {
1584
1585
  this._callOnItemsRendered(R, O, L, F, D, z, G, U);
1585
1586
  }
1586
1587
  if (typeof I == "function") {
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, $);
1588
+ var V = this.state, B = V.horizontalScrollDirection, Z = V.scrollLeft, ie = V.scrollTop, $ = V.scrollUpdateWasRequested, Y = V.verticalScrollDirection;
1589
+ this._callOnScroll(Z, ie, B, Y, $);
1589
1590
  }
1590
1591
  }, h._getHorizontalRangeToRender = function() {
1591
1592
  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
1593
  if (v === 0 || x === 0)
1593
1594
  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, U = !D || O === "forward" ? Math.max(1, E) : 1;
1595
+ 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
1596
  return [Math.max(0, L - G), Math.max(0, Math.min(v - 1, F + U)), L, F];
1596
1597
  }, h._getVerticalRangeToRender = function() {
1597
1598
  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;
@@ -1600,83 +1601,83 @@ function di(t) {
1600
1601
  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
1602
  return [Math.max(0, L - G), Math.max(0, Math.min(x - 1, F + U)), L, F];
1602
1603
  }, g;
1603
- }(ur), e.defaultProps = {
1604
+ }(ho), e.defaultProps = {
1604
1605
  direction: "ltr",
1605
1606
  itemData: void 0,
1606
1607
  useIsScrolling: !1
1607
1608
  }, e;
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 hi = function(e, n) {
1611
+ 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
1612
  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) {
1613
+ 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)
1614
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1615
+ switch (o) {
1615
1616
  case "ltr":
1616
1617
  case "rtl":
1617
1618
  break;
1618
1619
  default:
1619
- throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + r + '" was specified.'));
1620
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + o + '" was specified.'));
1620
1621
  }
1621
1622
  if (typeof C != "number")
1622
1623
  throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (C === null ? "null" : typeof C) + '" was specified.'));
1623
1624
  if (typeof a != "number")
1624
1625
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1625
1626
  }
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];
1627
+ }, on = 50, On = function(e, n) {
1628
+ var r = e.rowCount, o = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, d = 0;
1629
+ if (c >= r && (c = r - 1), c >= 0) {
1630
+ var s = o[c];
1630
1631
  d = s.offset + s.size;
1631
1632
  }
1632
- var f = o - c - 1, m = f * a;
1633
+ var f = r - c - 1, m = f * a;
1633
1634
  return d + m;
1634
1635
  }, 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];
1636
+ var r = e.columnCount, o = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, d = 0;
1637
+ if (c >= r && (c = r - 1), c >= 0) {
1638
+ var s = o[c];
1638
1639
  d = s.offset + s.size;
1639
1640
  }
1640
- var f = o - c - 1, m = f * a;
1641
+ var f = r - c - 1, m = f * a;
1641
1642
  return d + m;
1642
- }, Pe = function(e, n, o, r) {
1643
+ }, Pe = function(e, n, r, o) {
1643
1644
  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) {
1645
+ if (e === "column" ? (a = o.columnMetadataMap, c = n.columnWidth, d = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = n.rowHeight, d = o.lastMeasuredRowIndex), r > d) {
1645
1646
  var s = 0;
1646
1647
  if (d >= 0) {
1647
1648
  var f = a[d];
1648
1649
  s = f.offset + f.size;
1649
1650
  }
1650
- for (var m = d + 1; m <= o; m++) {
1651
+ for (var m = d + 1; m <= r; m++) {
1651
1652
  var C = c(m);
1652
1653
  a[m] = {
1653
1654
  offset: s,
1654
1655
  size: C
1655
1656
  }, s += C;
1656
1657
  }
1657
- e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
1658
+ e === "column" ? o.lastMeasuredColumnIndex = r : o.lastMeasuredRowIndex = r;
1658
1659
  }
1659
- return a[o];
1660
- }, on = function(e, n, o, r) {
1660
+ return a[r];
1661
+ }, rn = function(e, n, r, o) {
1661
1662
  var a, c;
1662
- e === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1663
+ e === "column" ? (a = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1663
1664
  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;
1665
+ return d >= o ? An(e, n, r, c, 0, o) : fi(e, n, r, Math.max(0, c), o);
1666
+ }, An = function(e, n, r, o, a, c) {
1667
+ for (; a <= o; ) {
1668
+ var d = a + Math.floor((o - a) / 2), s = Pe(e, n, d, r).offset;
1668
1669
  if (s === c)
1669
1670
  return d;
1670
- s < c ? a = d + 1 : s > c && (r = d - 1);
1671
+ s < c ? a = d + 1 : s > c && (o = d - 1);
1671
1672
  }
1672
1673
  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) {
1674
+ }, fi = function(e, n, r, o, a) {
1675
+ for (var c = e === "column" ? n.columnCount : n.rowCount, d = 1; o < c && Pe(e, n, o, r).offset < a; )
1676
+ o += d, d *= 2;
1677
+ return An(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), a);
1678
+ }, an = function(e, n, r, o, a, c, d) {
1679
+ 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);
1680
+ switch (o === "smart" && (a >= u - s && a <= C + s ? o = "auto" : o = "center"), o) {
1680
1681
  case "start":
1681
1682
  return C;
1682
1683
  case "end":
@@ -1687,48 +1688,48 @@ var ui = function(e, n) {
1687
1688
  default:
1688
1689
  return a >= u && a <= C ? a : u > C || a < u ? u : C;
1689
1690
  }
1690
- }, hi = /* @__PURE__ */ di({
1691
- getColumnOffset: function(e, n, o) {
1692
- return Pe("column", e, n, o).offset;
1691
+ }, mi = /* @__PURE__ */ pi({
1692
+ getColumnOffset: function(e, n, r) {
1693
+ return Pe("column", e, n, r).offset;
1693
1694
  },
1694
- getColumnStartIndexForOffset: function(e, n, o) {
1695
- return on("column", e, o, n);
1695
+ getColumnStartIndexForOffset: function(e, n, r) {
1696
+ return rn("column", e, r, n);
1696
1697
  },
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;
1698
+ getColumnStopIndexForStartIndex: function(e, n, r, o) {
1699
+ 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; )
1700
+ m++, f += Pe("column", e, m, o).size;
1700
1701
  return m;
1701
1702
  },
1702
- getColumnWidth: function(e, n, o) {
1703
- return o.columnMetadataMap[n].size;
1703
+ getColumnWidth: function(e, n, r) {
1704
+ return r.columnMetadataMap[n].size;
1704
1705
  },
1705
1706
  getEstimatedTotalHeight: On,
1706
1707
  getEstimatedTotalWidth: Dn,
1707
- getOffsetForColumnAndAlignment: function(e, n, o, r, a, c) {
1708
- return an("column", e, n, o, r, a, c);
1708
+ getOffsetForColumnAndAlignment: function(e, n, r, o, a, c) {
1709
+ return an("column", e, n, r, o, a, c);
1709
1710
  },
1710
- getOffsetForRowAndAlignment: function(e, n, o, r, a, c) {
1711
- return an("row", e, n, o, r, a, c);
1711
+ getOffsetForRowAndAlignment: function(e, n, r, o, a, c) {
1712
+ return an("row", e, n, r, o, a, c);
1712
1713
  },
1713
- getRowOffset: function(e, n, o) {
1714
- return Pe("row", e, n, o).offset;
1714
+ getRowOffset: function(e, n, r) {
1715
+ return Pe("row", e, n, r).offset;
1715
1716
  },
1716
- getRowHeight: function(e, n, o) {
1717
- return o.rowMetadataMap[n].size;
1717
+ getRowHeight: function(e, n, r) {
1718
+ return r.rowMetadataMap[n].size;
1718
1719
  },
1719
- getRowStartIndexForOffset: function(e, n, o) {
1720
- return on("row", e, o, n);
1720
+ getRowStartIndexForOffset: function(e, n, r) {
1721
+ return rn("row", e, r, n);
1721
1722
  },
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;
1723
+ getRowStopIndexForStartIndex: function(e, n, r, o) {
1724
+ 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; )
1725
+ m++, f += Pe("row", e, m, o).size;
1725
1726
  return m;
1726
1727
  },
1727
1728
  initInstanceProps: function(e, n) {
1728
- var o = e, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, c = {
1729
+ var r = e, o = r.estimatedColumnWidth, a = r.estimatedRowHeight, c = {
1729
1730
  columnMetadataMap: {},
1730
- estimatedColumnWidth: r || rn,
1731
- estimatedRowHeight: a || rn,
1731
+ estimatedColumnWidth: o || on,
1732
+ estimatedRowHeight: a || on,
1732
1733
  lastMeasuredColumnIndex: -1,
1733
1734
  lastMeasuredRowIndex: -1,
1734
1735
  rowMetadataMap: {}
@@ -1750,12 +1751,12 @@ var ui = function(e, n) {
1750
1751
  },
1751
1752
  shouldResetStyleCacheOnItemSizeChange: !1,
1752
1753
  validateProps: function(e) {
1753
- var n = e.columnWidth, o = e.rowHeight;
1754
+ var n = e.columnWidth, r = e.rowHeight;
1754
1755
  if (process.env.NODE_ENV !== "production") {
1755
1756
  if (typeof n != "function")
1756
1757
  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.'));
1758
+ if (typeof r != "function")
1759
+ throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1759
1760
  }
1760
1761
  }
1761
1762
  });
@@ -1764,21 +1765,21 @@ function sn(t, e) {
1764
1765
  for (var n in t)
1765
1766
  if (!(n in e))
1766
1767
  return !0;
1767
- for (var o in e)
1768
- if (t[o] !== e[o])
1768
+ for (var r in e)
1769
+ if (t[r] !== e[r])
1769
1770
  return !0;
1770
1771
  return !1;
1771
1772
  }
1772
- var fi = ["style"], mi = ["style"];
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);
1773
+ var gi = ["style"], vi = ["style"];
1774
+ function wi(t, e) {
1775
+ var n = t.style, r = Jt(t, gi), o = e.style, a = Jt(e, vi);
1776
+ return !sn(n, o) && !sn(r, a);
1776
1777
  }
1777
- const vi = () => {
1778
- const { viewMode: t } = $e(), { scrollMode: e } = Ae(), { setColumnCount: n } = vn(), { virtualScrollableElementRef: o } = ot(), r = je(), 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 bi = () => {
1779
+ 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 === re.HORIZONTAL_SCROLLING ? a : t === ne.DUAL_PAGE || t === ne.DUAL_PAGE_WITH_COVER ? 2 : 1, [t, e, e, a, r]), d = W(() => {
1780
+ if (t === ne.DUAL_PAGE_WITH_COVER && o.widths.length > 0) {
1780
1781
  const w = [0, 0];
1781
- return r.widths.forEach((g, h) => {
1782
+ return o.widths.forEach((g, h) => {
1782
1783
  const p = h + 1;
1783
1784
  if (p === 1)
1784
1785
  return;
@@ -1786,11 +1787,11 @@ const vi = () => {
1786
1787
  w[l] = Math.max(w[l] || 0, g);
1787
1788
  }), w;
1788
1789
  }
1789
- return r.widths.reduce((w, g, h) => {
1790
+ return o.widths.reduce((w, g, h) => {
1790
1791
  const p = h % c;
1791
1792
  return (!w[p] || g > w[p]) && (w[p] = g), w;
1792
1793
  }, []);
1793
- }, [r.widths, c, t]), s = N(
1794
+ }, [o.widths, c, t]), s = N(
1794
1795
  (P) => {
1795
1796
  const y = P % d.length;
1796
1797
  return d[y] || 0;
@@ -1798,30 +1799,30 @@ const vi = () => {
1798
1799
  [d]
1799
1800
  ), f = N(
1800
1801
  (P) => {
1801
- if (t === re.DUAL_PAGE_WITH_COVER) {
1802
+ if (t === ne.DUAL_PAGE_WITH_COVER) {
1802
1803
  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);
1804
+ return o.heights[0] || 0;
1805
+ 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
1806
  return Math.max(...p, 0);
1806
1807
  }
1807
1808
  const w = Array.from({ length: c }, (g, h) => {
1808
1809
  const p = P * c + h;
1809
- return r.heights[p] || 0;
1810
+ return o.heights[p] || 0;
1810
1811
  });
1811
1812
  return Math.max(...w);
1812
1813
  },
1813
- [r.heights, c, t]
1814
+ [o.heights, c, t]
1814
1815
  );
1815
1816
  A(() => {
1816
1817
  n(c);
1817
1818
  }, [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);
1819
+ const m = W(() => e === re.HORIZONTAL_SCROLLING || e === re.PAGE_SCROLLING ? 1 : t === ne.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(() => {
1820
+ const P = t === ne.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et(o, c, P);
1820
1821
  return {
1821
1822
  rowsHeight: y,
1822
1823
  columnsWidth: w
1823
1824
  };
1824
- }, [r, c, t]), b = W(() => ({
1825
+ }, [o, c, t]), b = W(() => ({
1825
1826
  width: T.columnsWidth.reduce((P, y) => P + y, 0),
1826
1827
  height: T.rowsHeight.reduce((P, y) => P + y, 0)
1827
1828
  }), [T]);
@@ -1830,31 +1831,31 @@ const vi = () => {
1830
1831
  rowHeight: f,
1831
1832
  columnCount: c,
1832
1833
  columnWidth: s,
1833
- pageDimension: r,
1834
+ pageDimension: o,
1834
1835
  estimatedRowHeight: C,
1835
1836
  estimatedColumnWidth: u,
1836
1837
  gridDimension: T,
1837
1838
  totalDimension: b
1838
1839
  };
1839
1840
  };
1840
- let ue;
1841
- typeof window < "u" ? ue = window : typeof self < "u" ? ue = self : ue = global;
1841
+ let de;
1842
+ typeof window < "u" ? de = window : typeof self < "u" ? de = self : de = global;
1842
1843
  let Ct = null, yt = null;
1843
- const cn = 20, wt = ue.clearTimeout, ln = ue.setTimeout, bt = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, dn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1844
+ const cn = 20, wt = de.clearTimeout, ln = de.setTimeout, bt = de.cancelAnimationFrame || de.mozCancelAnimationFrame || de.webkitCancelAnimationFrame, dn = de.requestAnimationFrame || de.mozRequestAnimationFrame || de.webkitRequestAnimationFrame;
1844
1845
  bt == null || dn == null ? (Ct = wt, yt = function(e) {
1845
1846
  return ln(e, cn);
1846
1847
  }) : (Ct = function([e, n]) {
1847
1848
  bt(e), wt(n);
1848
1849
  }, yt = function(e) {
1849
1850
  const n = dn(function() {
1850
- wt(o), e();
1851
- }), o = ln(function() {
1851
+ wt(r), e();
1852
+ }), r = ln(function() {
1852
1853
  bt(n), e();
1853
1854
  }, cn);
1854
- return [n, o];
1855
+ return [n, r];
1855
1856
  });
1856
- function wi(t) {
1857
- let e, n, o, r, a, c, d;
1857
+ function _i(t) {
1858
+ let e, n, r, o, a, c, d;
1858
1859
  const s = typeof document < "u" && document.attachEvent;
1859
1860
  if (!s) {
1860
1861
  c = function(w) {
@@ -1873,7 +1874,7 @@ function wi(t) {
1873
1874
  });
1874
1875
  };
1875
1876
  let u = !1, T = "";
1876
- o = "animationstart";
1877
+ r = "animationstart";
1877
1878
  const b = "Webkit Moz O ms".split(" ");
1878
1879
  let P = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), y = "";
1879
1880
  {
@@ -1881,16 +1882,16 @@ function wi(t) {
1881
1882
  if (w.style.animationName !== void 0 && (u = !0), u === !1) {
1882
1883
  for (let g = 0; g < b.length; g++)
1883
1884
  if (w.style[b[g] + "AnimationName"] !== void 0) {
1884
- y = b[g], T = "-" + y.toLowerCase() + "-", o = P[g], u = !0;
1885
+ y = b[g], T = "-" + y.toLowerCase() + "-", r = P[g], u = !0;
1885
1886
  break;
1886
1887
  }
1887
1888
  }
1888
1889
  }
1889
- n = "resizeanim", e = "@" + T + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = T + "animation: 1ms " + n + "; ";
1890
+ n = "resizeanim", e = "@" + T + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", o = T + "animation: 1ms " + n + "; ";
1890
1891
  }
1891
1892
  const f = function(u) {
1892
1893
  if (!u.getElementById("detectElementResize")) {
1893
- const T = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', b = u.head || u.getElementsByTagName("head")[0], P = u.createElement("style");
1894
+ 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
1895
  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
1896
  }
1896
1897
  };
@@ -1900,14 +1901,14 @@ function wi(t) {
1900
1901
  u.attachEvent("onresize", T);
1901
1902
  else {
1902
1903
  if (!u.__resizeTriggers__) {
1903
- const b = u.ownerDocument, P = ue.getComputedStyle(u);
1904
+ const b = u.ownerDocument, P = de.getComputedStyle(u);
1904
1905
  P && P.position === "static" && (u.style.position = "relative"), f(b), u.__resizeLast__ = {}, u.__resizeListeners__ = [], (u.__resizeTriggers__ = b.createElement("div")).className = "resize-triggers";
1905
1906
  const y = b.createElement("div");
1906
1907
  y.className = "expand-trigger", y.appendChild(b.createElement("div"));
1907
1908
  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), o && (u.__resizeTriggers__.__animationListener__ = function(h) {
1909
+ 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
1910
  h.animationName === n && c(u);
1910
- }, u.__resizeTriggers__.addEventListener(o, u.__resizeTriggers__.__animationListener__));
1911
+ }, u.__resizeTriggers__.addEventListener(r, u.__resizeTriggers__.__animationListener__));
1911
1912
  }
1912
1913
  u.__resizeListeners__.push(T);
1913
1914
  }
@@ -1916,7 +1917,7 @@ function wi(t) {
1916
1917
  if (s)
1917
1918
  u.detachEvent("onresize", T);
1918
1919
  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);
1920
+ u.removeEventListener("scroll", d, !0), u.__resizeTriggers__.__animationListener__ && (u.__resizeTriggers__.removeEventListener(r, u.__resizeTriggers__.__animationListener__), u.__resizeTriggers__.__animationListener__ = null);
1920
1921
  try {
1921
1922
  u.__resizeTriggers__ = !u.removeChild(u.__resizeTriggers__);
1922
1923
  } catch {
@@ -1925,7 +1926,7 @@ function wi(t) {
1925
1926
  }
1926
1927
  };
1927
1928
  }
1928
- class bi extends pr {
1929
+ class Pi extends fo {
1929
1930
  constructor(...e) {
1930
1931
  super(...e), this.state = {
1931
1932
  height: this.props.defaultHeight || 0,
@@ -1934,12 +1935,12 @@ class bi extends pr {
1934
1935
  this._timeoutId = null;
1935
1936
  const {
1936
1937
  disableHeight: n,
1937
- disableWidth: o,
1938
- onResize: r
1938
+ disableWidth: r,
1939
+ onResize: o
1939
1940
  } = this.props;
1940
1941
  if (this._parentNode) {
1941
1942
  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) {
1943
+ if (!n && this.state.height !== C || !r && this.state.width !== u) {
1943
1944
  this.setState({
1944
1945
  height: C,
1945
1946
  width: u
@@ -1947,7 +1948,7 @@ class bi extends pr {
1947
1948
  const T = () => {
1948
1949
  this._didLogDeprecationWarning || (this._didLogDeprecationWarning = !0, console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"));
1949
1950
  };
1950
- typeof r == "function" && r({
1951
+ typeof o == "function" && o({
1951
1952
  height: C,
1952
1953
  width: u,
1953
1954
  // TODO Remove these params in the next major release
@@ -1970,10 +1971,10 @@ class bi extends pr {
1970
1971
  } = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
1971
1972
  if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
1972
1973
  this._parentNode = n;
1973
- const o = n.ownerDocument.defaultView.ResizeObserver;
1974
- o != null ? (this._resizeObserver = new o(() => {
1974
+ const r = n.ownerDocument.defaultView.ResizeObserver;
1975
+ r != null ? (this._resizeObserver = new r(() => {
1975
1976
  this._timeoutId = setTimeout(this._onResize, 0);
1976
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = wi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1977
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = _i(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1977
1978
  }
1978
1979
  }
1979
1980
  componentWillUnmount() {
@@ -1983,8 +1984,8 @@ class bi extends pr {
1983
1984
  const {
1984
1985
  children: e,
1985
1986
  defaultHeight: n,
1986
- defaultWidth: o,
1987
- disableHeight: r = !1,
1987
+ defaultWidth: r,
1988
+ disableHeight: o = !1,
1988
1989
  disableWidth: a = !1,
1989
1990
  doNotBailOutOnEmptyChildren: c = !1,
1990
1991
  nonce: d,
@@ -1999,7 +2000,7 @@ class bi extends pr {
1999
2000
  overflow: "visible"
2000
2001
  }, P = {};
2001
2002
  let y = !1;
2002
- return r || (u === 0 && (y = !0), b.height = 0, P.height = u, P.scaledHeight = u), a || (T === 0 && (y = !0), b.width = 0, P.width = T, P.scaledWidth = T), c && (y = !1), Qe(m, {
2003
+ 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
2004
  ref: this._setRef,
2004
2005
  style: {
2005
2006
  ...b,
@@ -2009,15 +2010,15 @@ class bi extends pr {
2009
2010
  }, !y && e(P));
2010
2011
  }
2011
2012
  }
2012
- const _i = It(({ widths: t, heights: e }) => {
2013
- const { focusedPage: n, totalPages: o } = ce(), r = W(() => {
2013
+ const Ti = It(({ widths: t, heights: e }) => {
2014
+ const { focusedPage: n, totalPages: r } = se(), o = W(() => {
2014
2015
  const d = [], s = Math.ceil(n / 2) * 2 - 1;
2015
- if (d.push(s), s + 1 <= o) {
2016
+ if (d.push(s), s + 1 <= r) {
2016
2017
  const f = s + 1;
2017
2018
  d.push(f);
2018
2019
  }
2019
2020
  return d;
2020
- }, [n, o]), a = W(() => {
2021
+ }, [n, r]), a = W(() => {
2021
2022
  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
2023
  return [
2023
2024
  {
@@ -2033,23 +2034,23 @@ const _i = It(({ widths: t, heights: e }) => {
2033
2034
  height: f
2034
2035
  }
2035
2036
  ];
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(He, { style: a[s], pageNumber: d }, d)) });
2038
- }), Pi = It(({ widths: t, heights: e }) => {
2039
- const { focusedPage: n, totalPages: o } = ce(), r = W(() => {
2037
+ }, [t, e, o]), c = W(() => a.reduce((d, s) => d + Number(s.width || 0), 0), [a]);
2038
+ return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: o.map((d, s) => /* @__PURE__ */ i(He, { style: a[s], pageNumber: d }, d)) });
2039
+ }), Ci = It(({ widths: t, heights: e }) => {
2040
+ const { focusedPage: n, totalPages: r } = se(), o = W(() => {
2040
2041
  const d = [];
2041
2042
  if (n === 1)
2042
2043
  return d.push(1), d;
2043
2044
  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, b = t(T);
2045
+ return d.push(m), m + 1 <= r && d.push(m + 1), d;
2046
+ }, [n, r]), a = W(() => {
2047
+ if (o.length === 1) {
2048
+ const T = o[0] - 1, b = t(T);
2048
2049
  let P = b * 2;
2049
- if (o >= 3) {
2050
+ if (r >= 3) {
2050
2051
  const y = t(1), w = t(2);
2051
2052
  P = y + w;
2052
- } else if (o >= 2) {
2053
+ } else if (r >= 2) {
2053
2054
  const y = t(1);
2054
2055
  P = b + y;
2055
2056
  }
@@ -2061,14 +2062,14 @@ const _i = It(({ widths: t, heights: e }) => {
2061
2062
  alignItems: "flex-start"
2062
2063
  };
2063
2064
  }
2064
- const s = r[0] - 1, f = t(s), m = r.length > 1 ? t(s + 1) : 0;
2065
+ const s = o[0] - 1, f = t(s), m = o.length > 1 ? t(s + 1) : 0;
2065
2066
  return {
2066
2067
  width: f + m,
2067
2068
  position: "relative"
2068
2069
  };
2069
- }, [t, r, o]), c = W(() => {
2070
- if (r.length === 1) {
2071
- const b = r[0], P = b - 1, y = e(b === 1 ? 0 : Math.floor((b - 2) / 2) + 1);
2070
+ }, [t, o, r]), c = W(() => {
2071
+ if (o.length === 1) {
2072
+ const b = o[0], P = b - 1, y = e(b === 1 ? 0 : Math.floor((b - 2) / 2) + 1);
2072
2073
  return [{
2073
2074
  width: t(P),
2074
2075
  height: y,
@@ -2076,7 +2077,7 @@ const _i = It(({ widths: t, heights: e }) => {
2076
2077
  // Use relative for flexbox centering
2077
2078
  }];
2078
2079
  }
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);
2080
+ 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
2081
  return [
2081
2082
  {
2082
2083
  position: "absolute",
@@ -2091,29 +2092,29 @@ const _i = It(({ widths: t, heights: e }) => {
2091
2092
  height: m
2092
2093
  }
2093
2094
  ];
2094
- }, [t, e, r]);
2095
- return /* @__PURE__ */ i("div", { style: a, children: r.map((d, s) => /* @__PURE__ */ i(He, { style: c[s], pageNumber: d }, d)) });
2096
- }), Ti = ({ widths: t, heights: e }) => {
2097
- const { focusedPage: n } = ce(), o = W(() => ({
2095
+ }, [t, e, o]);
2096
+ return /* @__PURE__ */ i("div", { style: a, children: o.map((d, s) => /* @__PURE__ */ i(He, { style: c[s], pageNumber: d }, d)) });
2097
+ }), yi = ({ widths: t, heights: e }) => {
2098
+ const { focusedPage: n } = se(), r = W(() => ({
2098
2099
  position: "absolute",
2099
2100
  width: t(n - 1),
2100
2101
  height: e(n - 1)
2101
- }), [t, e, n]), r = W(() => t(n - 1), [t]);
2102
+ }), [t, e, n]), o = W(() => t(n - 1), [t]);
2102
2103
  return /* @__PURE__ */ i(
2103
2104
  "div",
2104
2105
  {
2105
2106
  style: {
2106
- width: r,
2107
+ width: o,
2107
2108
  position: "relative"
2108
2109
  },
2109
- children: /* @__PURE__ */ i(He, { style: o, pageNumber: n }, n)
2110
+ children: /* @__PURE__ */ i(He, { style: r, pageNumber: n }, n)
2110
2111
  }
2111
2112
  );
2112
- }, Ci = (t, e, n, o) => {
2113
- const r = 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 = o === re.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et({ heights: c, widths: d }, t, P);
2113
+ }, Ii = (t, e, n, r) => {
2114
+ const o = M(), { contentRef: a } = Te(), { heights: c, widths: d } = je(), { setFocusedPage: s } = se(), [f, m] = H([]), { targetScrollPage: C } = wn(), u = Nt(f, 0, 500), T = W(() => {
2115
+ const P = r === ne.DUAL_PAGE_WITH_COVER, { rowsHeight: y, columnsWidth: w } = Et({ heights: c, widths: d }, t, P);
2115
2116
  return c.map((g, h) => {
2116
- const p = d[h], l = so(h + 1, t, P), v = w.slice(0, l.columnIndex).reduce((x, R) => x + R, 0), _ = y.slice(0, l.rowIndex).reduce((x, R) => x + R, 0), I = v + p, S = _ + g;
2117
+ const p = d[h], l = lr(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
2118
  return {
2118
2119
  pageNumber: h + 1,
2119
2120
  ...l,
@@ -2125,7 +2126,7 @@ const _i = It(({ widths: t, heights: e }) => {
2125
2126
  endY: S
2126
2127
  };
2127
2128
  });
2128
- }, [c, d, t, e, o]);
2129
+ }, [c, d, t, e, r]);
2129
2130
  A(() => {
2130
2131
  var y;
2131
2132
  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(() => {
@@ -2134,7 +2135,7 @@ const _i = It(({ widths: t, heights: e }) => {
2134
2135
  }, [u, s]);
2135
2136
  const b = N(
2136
2137
  (P) => {
2137
- r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2138
+ o.current && cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
2138
2139
  const y = P.target, w = {
2139
2140
  startTop: y.scrollTop,
2140
2141
  startLeft: y.scrollLeft,
@@ -2162,46 +2163,51 @@ const _i = It(({ widths: t, heights: e }) => {
2162
2163
  };
2163
2164
  }, [n, b]);
2164
2165
  }, zn = at((t, e) => {
2165
- const { children: n, toolbarRef: o, style: r, className: a, ...c } = t, { customVariables: d, customDarkVariables: s } = Dr(), { darkMode: f } = wr();
2166
+ const { children: n, toolbarRef: r, style: o, className: a, ...c } = t, { customVariables: d, customDarkVariables: s } = zo(), { darkMode: f } = _o();
2166
2167
  return /* @__PURE__ */ i(
2167
2168
  "div",
2168
2169
  {
2169
2170
  ref: e,
2170
2171
  ...c,
2171
- className: se(
2172
- ye["rp-theme-variables"],
2173
- ye["rp-container"],
2174
- f ? ye["rp-dark-mode"] : "",
2172
+ className: ae(
2173
+ Ie["rp-theme-variables"],
2174
+ Ie["rp-container"],
2175
+ f ? Ie["rp-dark-mode"] : "",
2175
2176
  a
2176
2177
  ),
2177
2178
  style: {
2178
- "--rp-toolbar-height": `${(o == null ? void 0 : o.clientHeight) || 48}px`,
2179
+ "--rp-toolbar-height": `${(r == null ? void 0 : r.clientHeight) || 48}px`,
2179
2180
  ...d,
2180
2181
  ...f ? s : {},
2181
- ...r
2182
+ ...o
2182
2183
  },
2183
2184
  children: n
2184
2185
  }
2185
2186
  );
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)
2187
+ }), xi = It(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2188
+ const o = dr(
2189
+ e,
2190
+ t,
2191
+ n.columnCount,
2192
+ n.isDualPageWithCover
2193
+ );
2194
+ if (o <= 0)
2189
2195
  return null;
2190
2196
  if (n.isDualPageWithCover) {
2191
- const c = r === n.totalPages && n.totalPages % 2 === 0;
2192
- if (e === 0 && r === 1 || c && t === 0) {
2197
+ const c = o === n.totalPages && n.totalPages % 2 === 0;
2198
+ if (e === 0 && o === 1 || c && t === 0) {
2193
2199
  const s = n.columnWidths.reduce((f, m) => f + m, 0);
2194
2200
  return /* @__PURE__ */ i(
2195
2201
  "div",
2196
2202
  {
2197
2203
  style: {
2198
- ...o,
2204
+ ...r,
2199
2205
  width: s,
2200
2206
  display: "flex",
2201
2207
  justifyContent: "center",
2202
2208
  alignItems: "flex-start"
2203
2209
  },
2204
- children: /* @__PURE__ */ i(He, { style: { position: "relative" }, pageNumber: r }, r)
2210
+ children: /* @__PURE__ */ i(He, { style: { position: "relative" }, pageNumber: o }, o)
2205
2211
  }
2206
2212
  );
2207
2213
  }
@@ -2210,17 +2216,17 @@ const _i = It(({ widths: t, heights: e }) => {
2210
2216
  "div",
2211
2217
  {
2212
2218
  style: {
2213
- ...o,
2219
+ ...r,
2214
2220
  display: "flex",
2215
2221
  justifyContent: t === 0 ? "flex-end" : "flex-start",
2216
2222
  alignItems: "flex-start"
2217
2223
  },
2218
- children: /* @__PURE__ */ i(He, { style: { position: "relative" }, pageNumber: r }, r)
2224
+ children: /* @__PURE__ */ i(He, { style: { position: "relative" }, pageNumber: o }, o)
2219
2225
  }
2220
- ) : /* @__PURE__ */ i(He, { style: o, pageNumber: r }, r);
2221
- }, gi), yc = () => {
2222
- const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = xt(), { pagesRef: o, setPagesRef: r, setContentRef: a } = Te(), { scrollToPage: c } = yn();
2223
- fo(o);
2226
+ ) : /* @__PURE__ */ i(He, { style: r, pageNumber: o }, o);
2227
+ }, wi), Sc = () => {
2228
+ const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = xt(), { pagesRef: r, setPagesRef: o, setContentRef: a } = Te(), { scrollToPage: c } = yn();
2229
+ mr(r);
2224
2230
  const {
2225
2231
  virtualScrollRef: d,
2226
2232
  getVirtualScrollRef: s,
@@ -2230,40 +2236,42 @@ const _i = It(({ widths: t, heights: e }) => {
2230
2236
  virtualScrollableElementRef: u,
2231
2237
  totalInnerDimensions: T,
2232
2238
  pageScrollElementRef: b
2233
- } = ot(), 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 } = oe(), { passwordRequired: x } = vr(), { LoaderImageComponent: R } = St(), O = M(
2239
+ } = rt(), P = M(!0), { nextPage: y, prevPage: w, setFocusedPage: g, focusedPage: h, totalPages: p } = se(), { scrollMode: l } = Ae(), { viewMode: v } = $e(), _ = M(null), { loading: I, error: S } = oe(), { passwordRequired: x } = bo(), { LoaderImageComponent: R } = St(), O = M(
2234
2240
  T
2235
2241
  ), D = M({
2236
2242
  viewMode: v,
2237
2243
  scrollMode: l
2238
- }), z = M(!1), E = M(), { isFullScreen: L } = Pr(), {
2244
+ }), z = M(!1), E = M(), { isFullScreen: L } = Co(), {
2239
2245
  pageDimension: F,
2240
2246
  rowCount: G,
2241
2247
  rowHeight: U,
2242
2248
  columnCount: V,
2243
2249
  columnWidth: B,
2244
2250
  estimatedColumnWidth: Z,
2245
- estimatedRowHeight: ae,
2251
+ estimatedRowHeight: ie,
2246
2252
  totalDimension: $
2247
- } = vi(), Q = Nt(T, 100), { onScroll: J } = Or(), te = M();
2248
- Ci(V, G, u, v);
2249
- const ee = M({
2253
+ } = bi(), Y = Nt(T, 100), { onScroll: J, onTextSelect: pe } = Ao();
2254
+ gr({ onTextSelect: pe, pagesRef: r });
2255
+ const ee = M();
2256
+ Ii(V, G, u, v);
2257
+ const Q = M({
2250
2258
  scrollTop: 0,
2251
2259
  scrollLeft: 0
2252
2260
  });
2253
- po(o);
2254
- const { isPressed: Y } = lo(), { selectionMode: we } = _r(), { initializeGrabScroll: me, resetGrabState: Re } = uo({
2255
- isPressed: Y
2256
- }), Le = W(() => we === mr.HAND, [we]), lt = W(() => {
2261
+ hr(r);
2262
+ const { isPressed: he } = ur(), { selectionMode: ge } = To(), { initializeGrabScroll: ye, resetGrabState: lt } = pr({
2263
+ isPressed: he
2264
+ }), Le = W(() => ge === vo.HAND, [ge]), oo = W(() => {
2257
2265
  const q = Array.from({ length: V }, (j, be) => B(be));
2258
2266
  return {
2259
2267
  columnCount: V,
2260
- isDualPageWithCover: v === re.DUAL_PAGE_WITH_COVER,
2268
+ isDualPageWithCover: v === ne.DUAL_PAGE_WITH_COVER,
2261
2269
  columnWidths: q,
2262
2270
  totalPages: p
2263
2271
  };
2264
2272
  }, [V, v, B, p]), dt = N(
2265
2273
  (q) => {
2266
- const j = document.activeElement !== o;
2274
+ const j = document.activeElement !== r;
2267
2275
  !L && j || (["ArrowUp", "ArrowLeft"].includes(q.key) ? (q.preventDefault(), w()) : ["ArrowDown", "ArrowRight"].includes(q.key) && (q.preventDefault(), y()));
2268
2276
  },
2269
2277
  [y, w, L, l]
@@ -2280,12 +2288,12 @@ const _i = It(({ widths: t, heights: e }) => {
2280
2288
  shouldForceUpdate: !0
2281
2289
  });
2282
2290
  }, [G, V, F, d]);
2283
- const rr = N(
2291
+ const ro = N(
2284
2292
  (q, j) => {
2285
2293
  if (!u)
2286
2294
  return { scrollTop: 0, scrollLeft: 0 };
2287
- const be = ee.current.scrollTop > j, Ee = ee.current.scrollLeft > q;
2288
- return be || Ee ? ee.current : {
2295
+ const be = Q.current.scrollTop > j, Ee = Q.current.scrollLeft > q;
2296
+ return be || Ee ? Q.current : {
2289
2297
  scrollTop: u.scrollTop,
2290
2298
  scrollLeft: u.scrollLeft
2291
2299
  };
@@ -2294,7 +2302,7 @@ const _i = It(({ widths: t, heights: e }) => {
2294
2302
  ), kt = N(
2295
2303
  (q, j) => {
2296
2304
  if (D.current.viewMode !== v || D.current.scrollMode !== l) {
2297
- te.current && clearTimeout(te.current), z.current = !0, c(h, "auto"), te.current = setTimeout(() => {
2305
+ ee.current && clearTimeout(ee.current), z.current = !0, c(h, "auto"), ee.current = setTimeout(() => {
2298
2306
  requestAnimationFrame(() => {
2299
2307
  D.current = { viewMode: v, scrollMode: l };
2300
2308
  });
@@ -2308,12 +2316,12 @@ const _i = It(({ widths: t, heights: e }) => {
2308
2316
  const { height: Ne, width: pt } = j, { height: Mt, width: Ht } = O.current;
2309
2317
  if (Mt === Ne && Ht === pt)
2310
2318
  return;
2311
- 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;
2319
+ const co = Ee / Mt * Ne, lo = ut / Ht * pt, uo = Math.round(Math.min(co, Ne)) || 0, po = Math.round(Math.min(lo, pt)) || 0;
2312
2320
  E.current = setTimeout(() => {
2313
2321
  requestAnimationFrame(() => {
2314
2322
  u == null || u.scrollTo({
2315
- top: lr,
2316
- left: dr,
2323
+ top: uo,
2324
+ left: po,
2317
2325
  behavior: "auto"
2318
2326
  });
2319
2327
  });
@@ -2332,15 +2340,15 @@ const _i = It(({ widths: t, heights: e }) => {
2332
2340
  ), j = Array.from({ length: V }).reduce(
2333
2341
  (Ee, ut, Ne) => Ee + B(Ne),
2334
2342
  0
2335
- ), be = rr(j, q);
2336
- ee.current = be, kt(be, { height: q, width: j }), C({
2343
+ ), be = ro(j, q);
2344
+ Q.current = be, kt(be, { height: q, width: j }), C({
2337
2345
  height: q,
2338
2346
  width: j
2339
2347
  });
2340
2348
  }, [F, G, V, kt]);
2341
- const or = N(
2349
+ const io = N(
2342
2350
  (q) => {
2343
- ee.current = {
2351
+ Q.current = {
2344
2352
  scrollTop: q.scrollTop,
2345
2353
  scrollLeft: q.scrollLeft
2346
2354
  };
@@ -2353,25 +2361,25 @@ const _i = It(({ widths: t, heights: e }) => {
2353
2361
  b == null || b.removeEventListener("scroll", J), u == null || u.removeEventListener("scroll", J);
2354
2362
  };
2355
2363
  }, [u, b, J]), A(() => () => {
2356
- te.current && clearTimeout(te.current);
2364
+ ee.current && clearTimeout(ee.current);
2357
2365
  }, []);
2358
- const ir = W(() => se(le["rp-pages-container"], {
2359
- [le["rp-cursor-grab"]]: Le && !Y,
2360
- [le["rp-cursor-grabbing"]]: Le && Y
2361
- }), [Le, Y]), ar = N(
2366
+ const ao = W(() => ae(ce["rp-pages-container"], {
2367
+ [ce["rp-cursor-grab"]]: Le && !he,
2368
+ [ce["rp-cursor-grabbing"]]: Le && he
2369
+ }), [Le, he]), so = N(
2362
2370
  (q) => {
2363
2371
  if (Le && q) {
2364
- const j = se(le["rp-pages"]), be = document.querySelector(`.${j}`);
2365
- me(be);
2372
+ const j = ae(ce["rp-pages"]), be = document.querySelector(`.${j}`);
2373
+ ye(be);
2366
2374
  }
2367
2375
  },
2368
- [Le, me, le]
2376
+ [Le, ye, ce]
2369
2377
  );
2370
2378
  return A(() => {
2371
- I && Re();
2379
+ I && lt();
2372
2380
  }, [I]), A(() => {
2373
- if (!(Q.height === 0 || !P.current)) {
2374
- if (e === ie.PAGE_SCROLLING) {
2381
+ if (!(Y.height === 0 || !P.current)) {
2382
+ if (e === re.PAGE_SCROLLING) {
2375
2383
  t !== h && b && g(t), P.current = !1;
2376
2384
  return;
2377
2385
  }
@@ -2382,42 +2390,42 @@ const _i = It(({ widths: t, heights: e }) => {
2382
2390
  e,
2383
2391
  b,
2384
2392
  g,
2385
- Q
2386
- ]), /* @__PURE__ */ k(he, { children: [
2387
- /* @__PURE__ */ i(Br, { ref: a, children: /* @__PURE__ */ i(
2393
+ Y
2394
+ ]), /* @__PURE__ */ k(fe, { children: [
2395
+ /* @__PURE__ */ i(jo, { ref: a, children: /* @__PURE__ */ i(
2388
2396
  zn,
2389
2397
  {
2390
2398
  id: n,
2391
- ref: r,
2399
+ ref: o,
2392
2400
  tabIndex: -1,
2393
- className: ir,
2394
- children: /* @__PURE__ */ i(bi, { style: { minHeight: "50px" }, children: ({ width: q, height: j }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: ar, style: { width: q, height: j }, children: l === ie.PAGE_SCROLLING ? /* @__PURE__ */ i(
2401
+ className: ao,
2402
+ children: /* @__PURE__ */ i(Pi, { style: { minHeight: "50px" }, children: ({ width: q, height: j }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: so, style: { width: q, height: j }, children: l === re.PAGE_SCROLLING ? /* @__PURE__ */ i(
2395
2403
  "div",
2396
2404
  {
2397
2405
  ref: f,
2398
2406
  style: { width: q, height: j },
2399
- className: se(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
2400
- children: v === re.DUAL_PAGE ? /* @__PURE__ */ i(_i, { widths: B, heights: U }) : v === re.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ i(Pi, { widths: B, heights: U }) : /* @__PURE__ */ i(Ti, { widths: B, heights: U })
2407
+ className: ae(ce["rp-pages"], ce["rp-page-scrolling-wrapper"]),
2408
+ children: v === ne.DUAL_PAGE ? /* @__PURE__ */ i(Ti, { widths: B, heights: U }) : v === ne.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ i(Ci, { widths: B, heights: U }) : /* @__PURE__ */ i(yi, { widths: B, heights: U })
2401
2409
  }
2402
- ) : ae ? /* @__PURE__ */ i(
2403
- hi,
2410
+ ) : ie ? /* @__PURE__ */ i(
2411
+ mi,
2404
2412
  {
2405
2413
  ref: s,
2406
- itemData: lt,
2414
+ itemData: oo,
2407
2415
  outerRef: m,
2408
2416
  innerRef: _,
2409
- onScroll: or,
2417
+ onScroll: io,
2410
2418
  columnCount: V,
2411
2419
  columnWidth: B,
2412
2420
  rowHeight: U,
2413
2421
  height: j,
2414
2422
  width: q,
2415
2423
  estimatedColumnWidth: Z,
2416
- estimatedRowHeight: ae,
2424
+ estimatedRowHeight: ie,
2417
2425
  rowCount: G,
2418
- className: se(
2419
- le["rp-pages"],
2420
- l === ie.HORIZONTAL_SCROLLING ? le["rp-pages-horizontal-scroll"] : ""
2426
+ className: ae(
2427
+ ce["rp-pages"],
2428
+ l === re.HORIZONTAL_SCROLLING ? ce["rp-pages-horizontal-scroll"] : ""
2421
2429
  ),
2422
2430
  style: {
2423
2431
  "--rp-pages-height": `${$.height}px`,
@@ -2425,12 +2433,12 @@ const _i = It(({ widths: t, heights: e }) => {
2425
2433
  "--rp-row-count": `${G}`,
2426
2434
  "--rp-column-count": `${V}`
2427
2435
  },
2428
- children: yi
2436
+ children: xi
2429
2437
  }
2430
2438
  ) : !I && !S ? /* @__PURE__ */ i(
2431
2439
  "div",
2432
2440
  {
2433
- className: le["rp-loader"],
2441
+ className: ce["rp-loader"],
2434
2442
  style: {
2435
2443
  display: "flex",
2436
2444
  justifyContent: "center",
@@ -2440,7 +2448,7 @@ const _i = It(({ widths: t, heights: e }) => {
2440
2448
  },
2441
2449
  children: R && /* @__PURE__ */ i(R, {})
2442
2450
  }
2443
- ) : S === gr.NOT_SUPPORTED ? /* @__PURE__ */ i("div", { className: le["rp-not-supported"], children: /* @__PURE__ */ k("div", { className: le["rp-not-supported-content"], children: [
2451
+ ) : S === wo.NOT_SUPPORTED ? /* @__PURE__ */ i("div", { className: ce["rp-not-supported"], children: /* @__PURE__ */ k("div", { className: ce["rp-not-supported-content"], children: [
2444
2452
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
2445
2453
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ k("ul", { children: [
2446
2454
  /* @__PURE__ */ i("li", { children: "Chrome 119+" }),
@@ -2453,7 +2461,7 @@ const _i = It(({ widths: t, heights: e }) => {
2453
2461
  ] }) }) : null }) })
2454
2462
  }
2455
2463
  ) }),
2456
- x && /* @__PURE__ */ i(ho, {})
2464
+ x && /* @__PURE__ */ i(fr, {})
2457
2465
  ] });
2458
2466
  }, Ge = {
2459
2467
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2465,14 +2473,14 @@ const _i = It(({ widths: t, heights: e }) => {
2465
2473
  "rp-paginate": "_rp-paginate_1yinm_1",
2466
2474
  "rp-page-input": "_rp-page-input_1yinm_6",
2467
2475
  "rp-total-page": "_rp-total-page_1yinm_29"
2468
- }, Ii = () => {
2469
- const { prevIcon: t } = ve(), { prevIcon: e } = ge();
2476
+ }, Si = () => {
2477
+ const { prevIcon: t } = we(), { prevIcon: e } = ve();
2470
2478
  return t || e || /* @__PURE__ */ i(qe, {});
2471
- }, xi = () => {
2472
- const { nextIcon: t } = ve(), { nextIcon: e } = ge();
2479
+ }, Ri = () => {
2480
+ const { nextIcon: t } = we(), { nextIcon: e } = ve();
2473
2481
  return t || e || /* @__PURE__ */ i(qe, { style: { transform: "rotate(180deg" } });
2474
- }, Si = () => {
2475
- 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 } = $e(), { scrollMode: u } = Ae(), { localeMessages: T } = pe();
2482
+ }, Li = () => {
2483
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: a } = se(), [c, d] = H(t.toString()), { pageNavigationTool: s = !0 } = Ce(), { pageNavigationTool: f = !0 } = Se(), { isSmallScreen: m } = Re(), { viewMode: C } = $e(), { scrollMode: u } = Ae(), { localeMessages: T } = ue();
2476
2484
  A(() => {
2477
2485
  d(t.toString());
2478
2486
  }, [t]);
@@ -2489,14 +2497,14 @@ const _i = It(({ widths: t, heights: e }) => {
2489
2497
  h.key === "Enter" && P();
2490
2498
  },
2491
2499
  [P]
2492
- ), g = W(() => C === re.DUAL_PAGE && u === ie.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, C, u]);
2500
+ ), g = W(() => C === ne.DUAL_PAGE && u === re.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, C, u]);
2493
2501
  return !s || !f ? null : typeof s != "boolean" ? /* @__PURE__ */ i(
2494
2502
  s,
2495
2503
  {
2496
2504
  total: e,
2497
2505
  current: t,
2498
- nextPage: o,
2499
- prevPage: r,
2506
+ nextPage: r,
2507
+ prevPage: o,
2500
2508
  goToPage: a,
2501
2509
  changePage: n
2502
2510
  }
@@ -2505,19 +2513,19 @@ const _i = It(({ widths: t, heights: e }) => {
2505
2513
  {
2506
2514
  total: e,
2507
2515
  current: t,
2508
- nextPage: o,
2509
- prevPage: r,
2516
+ nextPage: r,
2517
+ prevPage: o,
2510
2518
  goToPage: a,
2511
2519
  changePage: n
2512
2520
  }
2513
2521
  ) : /* @__PURE__ */ k("div", { className: _t["rp-paginate"], children: [
2514
2522
  !m && /* @__PURE__ */ i(K, { content: T == null ? void 0 : T.previousPageTooltip, children: /* @__PURE__ */ i(
2515
- de,
2523
+ le,
2516
2524
  {
2517
- onClick: r,
2525
+ onClick: o,
2518
2526
  "aria-label": T == null ? void 0 : T.previousPageTooltip,
2519
2527
  "aria-disabled": t === 1,
2520
- children: /* @__PURE__ */ i(Ii, {})
2528
+ children: /* @__PURE__ */ i(Si, {})
2521
2529
  }
2522
2530
  ) }),
2523
2531
  /* @__PURE__ */ i(K, { content: T == null ? void 0 : T.currentPageTooltip, children: /* @__PURE__ */ i(
@@ -2544,32 +2552,32 @@ const _i = It(({ widths: t, heights: e }) => {
2544
2552
  e
2545
2553
  ] }),
2546
2554
  !m && /* @__PURE__ */ i(K, { content: T == null ? void 0 : T.nextPageTooltip, children: /* @__PURE__ */ i(
2547
- de,
2555
+ le,
2548
2556
  {
2549
- onClick: o,
2557
+ onClick: r,
2550
2558
  "aria-label": T == null ? void 0 : T.nextPageTooltip,
2551
2559
  "aria-disabled": g,
2552
- children: /* @__PURE__ */ i(xi, {})
2560
+ children: /* @__PURE__ */ i(Ri, {})
2553
2561
  }
2554
2562
  ) })
2555
2563
  ] });
2556
2564
  };
2557
- var ct = "Dialog", [Wn, Ic] = _o(ct), [Ri, fe] = Wn(ct), Fn = (t) => {
2565
+ var ct = "Dialog", [Wn, Rc] = Tr(ct), [Ei, me] = Wn(ct), Fn = (t) => {
2558
2566
  const {
2559
2567
  __scopeDialog: e,
2560
2568
  children: n,
2561
- open: o,
2562
- defaultOpen: r,
2569
+ open: r,
2570
+ defaultOpen: o,
2563
2571
  onOpenChange: a,
2564
2572
  modal: c = !0
2565
- } = t, d = X.useRef(null), s = X.useRef(null), [f, m] = To({
2566
- prop: o,
2567
- defaultProp: r ?? !1,
2573
+ } = t, d = X.useRef(null), s = X.useRef(null), [f, m] = yr({
2574
+ prop: r,
2575
+ defaultProp: o ?? !1,
2568
2576
  onChange: a,
2569
2577
  caller: ct
2570
2578
  });
2571
2579
  return /* @__PURE__ */ i(
2572
- Ri,
2580
+ Ei,
2573
2581
  {
2574
2582
  scope: e,
2575
2583
  triggerRef: d,
@@ -2586,75 +2594,75 @@ var ct = "Dialog", [Wn, Ic] = _o(ct), [Ri, fe] = Wn(ct), Fn = (t) => {
2586
2594
  );
2587
2595
  };
2588
2596
  Fn.displayName = ct;
2589
- var kn = "DialogTrigger", Li = X.forwardRef(
2597
+ var kn = "DialogTrigger", Ni = X.forwardRef(
2590
2598
  (t, e) => {
2591
- const { __scopeDialog: n, ...o } = t, r = fe(kn, n), a = Ot(e, r.triggerRef);
2599
+ const { __scopeDialog: n, ...r } = t, o = me(kn, n), a = Ot(e, o.triggerRef);
2592
2600
  return /* @__PURE__ */ i(
2593
2601
  Ke.button,
2594
2602
  {
2595
2603
  type: "button",
2596
2604
  "aria-haspopup": "dialog",
2597
- "aria-expanded": r.open,
2598
- "aria-controls": r.contentId,
2599
- "data-state": Ft(r.open),
2600
- ...o,
2605
+ "aria-expanded": o.open,
2606
+ "aria-controls": o.contentId,
2607
+ "data-state": Ft(o.open),
2608
+ ...r,
2601
2609
  ref: a,
2602
- onClick: Ve(t.onClick, r.onOpenToggle)
2610
+ onClick: Ve(t.onClick, o.onOpenToggle)
2603
2611
  }
2604
2612
  );
2605
2613
  }
2606
2614
  );
2607
- Li.displayName = kn;
2608
- var zt = "DialogPortal", [Ei, Mn] = Wn(zt, {
2615
+ Ni.displayName = kn;
2616
+ var zt = "DialogPortal", [Oi, Mn] = Wn(zt, {
2609
2617
  forceMount: void 0
2610
2618
  }), Hn = (t) => {
2611
- const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = fe(zt, e);
2612
- 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 }) })) });
2619
+ const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, a = me(zt, e);
2620
+ return /* @__PURE__ */ i(Oi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ i(Dt, { present: n || a.open, children: /* @__PURE__ */ i(Nr, { asChild: !0, container: o, children: c }) })) });
2613
2621
  };
2614
2622
  Hn.displayName = zt;
2615
2623
  var nt = "DialogOverlay", $n = X.forwardRef(
2616
2624
  (t, e) => {
2617
- const n = Mn(nt, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = fe(nt, t.__scopeDialog);
2618
- return a.modal ? /* @__PURE__ */ i(Dt, { present: o || a.open, children: /* @__PURE__ */ i(Oi, { ...r, ref: e }) }) : null;
2625
+ const n = Mn(nt, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(nt, t.__scopeDialog);
2626
+ return a.modal ? /* @__PURE__ */ i(Dt, { present: r || a.open, children: /* @__PURE__ */ i(Ai, { ...o, ref: e }) }) : null;
2619
2627
  }
2620
2628
  );
2621
2629
  $n.displayName = nt;
2622
- var Ni = Co("DialogOverlay.RemoveScroll"), Oi = X.forwardRef(
2630
+ var Di = Ir("DialogOverlay.RemoveScroll"), Ai = X.forwardRef(
2623
2631
  (t, e) => {
2624
- const { __scopeDialog: n, ...o } = t, r = fe(nt, n);
2632
+ const { __scopeDialog: n, ...r } = t, o = me(nt, n);
2625
2633
  return (
2626
2634
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2627
2635
  // ie. when `Overlay` and `Content` are siblings
2628
- /* @__PURE__ */ i(Io, { as: Ni, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2636
+ /* @__PURE__ */ i(Sr, { as: Di, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
2629
2637
  Ke.div,
2630
2638
  {
2631
- "data-state": Ft(r.open),
2632
- ...o,
2639
+ "data-state": Ft(o.open),
2640
+ ...r,
2633
2641
  ref: e,
2634
- style: { pointerEvents: "auto", ...o.style }
2642
+ style: { pointerEvents: "auto", ...r.style }
2635
2643
  }
2636
2644
  ) })
2637
2645
  );
2638
2646
  }
2639
2647
  ), De = "DialogContent", Gn = X.forwardRef(
2640
2648
  (t, e) => {
2641
- const n = Mn(De, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = fe(De, t.__scopeDialog);
2642
- return /* @__PURE__ */ i(Dt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Di, { ...r, ref: e }) : /* @__PURE__ */ i(Ai, { ...r, ref: e }) });
2649
+ const n = Mn(De, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(De, t.__scopeDialog);
2650
+ return /* @__PURE__ */ i(Dt, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(zi, { ...o, ref: e }) : /* @__PURE__ */ i(Wi, { ...o, ref: e }) });
2643
2651
  }
2644
2652
  );
2645
2653
  Gn.displayName = De;
2646
- var Di = X.forwardRef(
2654
+ var zi = X.forwardRef(
2647
2655
  (t, e) => {
2648
- const n = fe(De, t.__scopeDialog), o = X.useRef(null), r = Ot(e, n.contentRef, o);
2656
+ const n = me(De, t.__scopeDialog), r = X.useRef(null), o = Ot(e, n.contentRef, r);
2649
2657
  return X.useEffect(() => {
2650
- const a = o.current;
2658
+ const a = r.current;
2651
2659
  if (a)
2652
- return xo(a);
2660
+ return Rr(a);
2653
2661
  }, []), /* @__PURE__ */ i(
2654
2662
  Un,
2655
2663
  {
2656
2664
  ...t,
2657
- ref: r,
2665
+ ref: o,
2658
2666
  trapFocus: n.open,
2659
2667
  disableOutsidePointerEvents: !0,
2660
2668
  onCloseAutoFocus: Ve(t.onCloseAutoFocus, (a) => {
@@ -2672,9 +2680,9 @@ var Di = X.forwardRef(
2672
2680
  }
2673
2681
  );
2674
2682
  }
2675
- ), Ai = X.forwardRef(
2683
+ ), Wi = X.forwardRef(
2676
2684
  (t, e) => {
2677
- const n = fe(De, t.__scopeDialog), o = X.useRef(!1), r = X.useRef(!1);
2685
+ const n = me(De, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2678
2686
  return /* @__PURE__ */ i(
2679
2687
  Un,
2680
2688
  {
@@ -2684,31 +2692,31 @@ var Di = X.forwardRef(
2684
2692
  disableOutsidePointerEvents: !1,
2685
2693
  onCloseAutoFocus: (a) => {
2686
2694
  var c, d;
2687
- (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;
2695
+ (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;
2688
2696
  },
2689
2697
  onInteractOutside: (a) => {
2690
2698
  var s, f;
2691
- (s = t.onInteractOutside) == null || s.call(t, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2699
+ (s = t.onInteractOutside) == null || s.call(t, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2692
2700
  const c = a.target;
2693
- ((f = n.triggerRef.current) == null ? void 0 : f.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
2701
+ ((f = n.triggerRef.current) == null ? void 0 : f.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
2694
2702
  }
2695
2703
  }
2696
2704
  );
2697
2705
  }
2698
2706
  ), Un = X.forwardRef(
2699
2707
  (t, e) => {
2700
- const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...c } = t, d = fe(De, n), s = X.useRef(null), f = Ot(e, s);
2701
- return So(), /* @__PURE__ */ k(he, { children: [
2708
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = t, d = me(De, n), s = X.useRef(null), f = Ot(e, s);
2709
+ return Lr(), /* @__PURE__ */ k(fe, { children: [
2702
2710
  /* @__PURE__ */ i(
2703
- Ro,
2711
+ Er,
2704
2712
  {
2705
2713
  asChild: !0,
2706
2714
  loop: !0,
2707
- trapped: o,
2708
- onMountAutoFocus: r,
2715
+ trapped: r,
2716
+ onMountAutoFocus: o,
2709
2717
  onUnmountAutoFocus: a,
2710
2718
  children: /* @__PURE__ */ i(
2711
- yo,
2719
+ xr,
2712
2720
  {
2713
2721
  role: "dialog",
2714
2722
  id: d.contentId,
@@ -2722,36 +2730,36 @@ var Di = X.forwardRef(
2722
2730
  )
2723
2731
  }
2724
2732
  ),
2725
- /* @__PURE__ */ k(he, { children: [
2726
- /* @__PURE__ */ i(Wi, { titleId: d.titleId }),
2727
- /* @__PURE__ */ i(ki, { contentRef: s, descriptionId: d.descriptionId })
2733
+ /* @__PURE__ */ k(fe, { children: [
2734
+ /* @__PURE__ */ i(ki, { titleId: d.titleId }),
2735
+ /* @__PURE__ */ i(Hi, { contentRef: s, descriptionId: d.descriptionId })
2728
2736
  ] })
2729
2737
  ] });
2730
2738
  }
2731
2739
  ), Wt = "DialogTitle", Vn = X.forwardRef(
2732
2740
  (t, e) => {
2733
- const { __scopeDialog: n, ...o } = t, r = fe(Wt, n);
2734
- return /* @__PURE__ */ i(Ke.h2, { id: r.titleId, ...o, ref: e });
2741
+ const { __scopeDialog: n, ...r } = t, o = me(Wt, n);
2742
+ return /* @__PURE__ */ i(Ke.h2, { id: o.titleId, ...r, ref: e });
2735
2743
  }
2736
2744
  );
2737
2745
  Vn.displayName = Wt;
2738
- var qn = "DialogDescription", zi = X.forwardRef(
2746
+ var qn = "DialogDescription", Fi = X.forwardRef(
2739
2747
  (t, e) => {
2740
- const { __scopeDialog: n, ...o } = t, r = fe(qn, n);
2741
- return /* @__PURE__ */ i(Ke.p, { id: r.descriptionId, ...o, ref: e });
2748
+ const { __scopeDialog: n, ...r } = t, o = me(qn, n);
2749
+ return /* @__PURE__ */ i(Ke.p, { id: o.descriptionId, ...r, ref: e });
2742
2750
  }
2743
2751
  );
2744
- zi.displayName = qn;
2752
+ Fi.displayName = qn;
2745
2753
  var Bn = "DialogClose", Zn = X.forwardRef(
2746
2754
  (t, e) => {
2747
- const { __scopeDialog: n, ...o } = t, r = fe(Bn, n);
2755
+ const { __scopeDialog: n, ...r } = t, o = me(Bn, n);
2748
2756
  return /* @__PURE__ */ i(
2749
2757
  Ke.button,
2750
2758
  {
2751
2759
  type: "button",
2752
- ...o,
2760
+ ...r,
2753
2761
  ref: e,
2754
- onClick: Ve(t.onClick, () => r.onOpenChange(!1))
2762
+ onClick: Ve(t.onClick, () => o.onOpenChange(!1))
2755
2763
  }
2756
2764
  );
2757
2765
  }
@@ -2760,11 +2768,11 @@ Zn.displayName = Bn;
2760
2768
  function Ft(t) {
2761
2769
  return t ? "open" : "closed";
2762
2770
  }
2763
- var jn = "DialogTitleWarning", [xc, Kn] = Po(jn, {
2771
+ var jn = "DialogTitleWarning", [Lc, Kn] = Cr(jn, {
2764
2772
  contentName: De,
2765
2773
  titleName: Wt,
2766
2774
  docsSlug: "dialog"
2767
- }), Wi = ({ titleId: t }) => {
2775
+ }), ki = ({ titleId: t }) => {
2768
2776
  const e = Kn(jn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2769
2777
 
2770
2778
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2773,14 +2781,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2773
2781
  return X.useEffect(() => {
2774
2782
  t && (document.getElementById(t) || console.error(n));
2775
2783
  }, [n, t]), null;
2776
- }, Fi = "DialogDescriptionWarning", ki = ({ contentRef: t, descriptionId: e }) => {
2777
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kn(Fi).contentName}}.`;
2784
+ }, Mi = "DialogDescriptionWarning", Hi = ({ contentRef: t, descriptionId: e }) => {
2785
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kn(Mi).contentName}}.`;
2778
2786
  return X.useEffect(() => {
2779
2787
  var a;
2780
- const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2781
- e && r && (document.getElementById(e) || console.warn(o));
2782
- }, [o, t, e]), null;
2783
- }, Mi = Fn, Hi = Hn, $i = $n, Gi = Gn, Ui = Vn, Vi = Zn;
2788
+ const o = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2789
+ e && o && (document.getElementById(e) || console.warn(r));
2790
+ }, [r, t, e]), null;
2791
+ }, $i = Fn, Gi = Hn, Ui = $n, Vi = Gn, qi = Vn, Bi = Zn;
2784
2792
  const Oe = {
2785
2793
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2786
2794
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2789,8 +2797,8 @@ const Oe = {
2789
2797
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2790
2798
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2791
2799
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2792
- }, qi = () => {
2793
- const { pdfProperties: t } = oe(), { container: e } = Te(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Nr(), { localeMessages: r } = pe(), a = W(() => {
2800
+ }, Zi = () => {
2801
+ const { pdfProperties: t } = oe(), { container: e } = Te(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Do(), { localeMessages: o } = ue(), a = W(() => {
2794
2802
  if (!t)
2795
2803
  return [];
2796
2804
  const {
@@ -2808,43 +2816,43 @@ const Oe = {
2808
2816
  pageCount: w
2809
2817
  } = t;
2810
2818
  return [
2811
- { label: r == null ? void 0 : r.propertiesFilenameLabel, value: d },
2812
- { label: r == null ? void 0 : r.propertiesFileSizeLabel, value: c },
2819
+ { label: o == null ? void 0 : o.propertiesFilenameLabel, value: d },
2820
+ { label: o == null ? void 0 : o.propertiesFileSizeLabel, value: c },
2813
2821
  { separate: !0 },
2814
- { label: r == null ? void 0 : r.propertiesTitleLabel, value: s },
2815
- { label: r == null ? void 0 : r.propertiesAuthorLabel, value: f },
2816
- { label: r == null ? void 0 : r.propertiesSubjectLabel, value: m },
2817
- { label: r == null ? void 0 : r.propertiesKeywordLabel, value: T },
2818
- { label: r == null ? void 0 : r.propertiesCreatorLabel, value: u },
2822
+ { label: o == null ? void 0 : o.propertiesTitleLabel, value: s },
2823
+ { label: o == null ? void 0 : o.propertiesAuthorLabel, value: f },
2824
+ { label: o == null ? void 0 : o.propertiesSubjectLabel, value: m },
2825
+ { label: o == null ? void 0 : o.propertiesKeywordLabel, value: T },
2826
+ { label: o == null ? void 0 : o.propertiesCreatorLabel, value: u },
2819
2827
  {
2820
- label: r == null ? void 0 : r.propertiesCreateOnLabel,
2828
+ label: o == null ? void 0 : o.propertiesCreateOnLabel,
2821
2829
  value: C ? qt(C) : ""
2822
2830
  },
2823
2831
  {
2824
- label: r == null ? void 0 : r.propertiesModifiedOnLabel,
2832
+ label: o == null ? void 0 : o.propertiesModifiedOnLabel,
2825
2833
  value: b ? qt(b) : ""
2826
2834
  },
2827
2835
  { separate: !0 },
2828
- { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: P },
2829
- { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: y },
2830
- { label: r == null ? void 0 : r.propertiesPageCountLabel, value: w }
2836
+ { label: o == null ? void 0 : o.propertiesPDFProducerLabel, value: P },
2837
+ { label: o == null ? void 0 : o.propertiesPDFVersionLabel, value: y },
2838
+ { label: o == null ? void 0 : o.propertiesPageCountLabel, value: w }
2831
2839
  ];
2832
- }, [t, r]);
2833
- return /* @__PURE__ */ i(Mi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(Hi, { container: e, children: /* @__PURE__ */ k("div", { className: Oe["rp-dialog-wrapper"], children: [
2834
- /* @__PURE__ */ i($i, { className: Oe["rp-dialog-overlay"] }),
2835
- /* @__PURE__ */ k(Gi, { className: Oe["rp-document-dialog"], "aria-labelledby": "document-properties-title", children: [
2836
- /* @__PURE__ */ i(Ui, { id: "document-properties-title", className: Oe["rp-dialog-title"], children: r == null ? void 0 : r.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(jr, { label: c.label, value: c.value }) }, d)) }),
2838
- /* @__PURE__ */ i(Vi, { asChild: !0, className: Oe["rp-dialog-close"], "aria-label": (r == null ? void 0 : r.searchCloseButtonTooltip) || "Close dialog", children: /* @__PURE__ */ i(Eo, { "aria-hidden": "true" }) })
2840
+ }, [t, o]);
2841
+ return /* @__PURE__ */ i($i, { open: n, onOpenChange: r, children: /* @__PURE__ */ i(Gi, { container: e, children: /* @__PURE__ */ k("div", { className: Oe["rp-dialog-wrapper"], children: [
2842
+ /* @__PURE__ */ i(Ui, { className: Oe["rp-dialog-overlay"] }),
2843
+ /* @__PURE__ */ k(Vi, { className: Oe["rp-document-dialog"], "aria-labelledby": "document-properties-title", children: [
2844
+ /* @__PURE__ */ i(qi, { id: "document-properties-title", className: Oe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2845
+ /* @__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(Xo, { label: c.label, value: c.value }) }, d)) }),
2846
+ /* @__PURE__ */ i(Bi, { asChild: !0, className: Oe["rp-dialog-close"], "aria-label": (o == null ? void 0 : o.searchCloseButtonTooltip) || "Close dialog", children: /* @__PURE__ */ i(Or, { "aria-hidden": "true" }) })
2839
2847
  ] })
2840
2848
  ] }) }) });
2841
- }, Bi = {
2849
+ }, ji = {
2842
2850
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2843
- }, un = ".pdf", Zi = (t) => URL.createObjectURL(t), ji = async (t) => {
2851
+ }, un = ".pdf", Ki = (t) => URL.createObjectURL(t), Xi = async (t) => {
2844
2852
  const n = await (await fetch(t)).blob();
2845
- return Zi(n);
2853
+ return Ki(n);
2846
2854
  }, Xn = () => {
2847
- const { filename: t, pdfSrc: e } = oe(), { downloadFilename: n } = Sr(), o = (a) => {
2855
+ const { filename: t, pdfSrc: e } = oe(), { downloadFilename: n } = Lo(), r = (a) => {
2848
2856
  const c = n || a;
2849
2857
  return c.endsWith(un) ? c : `${c}${un}`;
2850
2858
  };
@@ -2852,33 +2860,33 @@ const Oe = {
2852
2860
  if (!t || !e)
2853
2861
  throw new Error("There is no PDF source to download");
2854
2862
  const a = document.createElement("a");
2855
- a.href = await ji(e), a.download = o(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2863
+ a.href = await Xi(e), a.download = r(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2856
2864
  }, [t, e]) };
2857
2865
  }, Qn = () => {
2858
- const { downloadIcon: t } = ve(), { downloadIcon: e } = ge();
2859
- return t || e || /* @__PURE__ */ i(zo, {});
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: [
2866
+ const { downloadIcon: t } = we(), { downloadIcon: e } = ve();
2867
+ return t || e || /* @__PURE__ */ i(Fr, {});
2868
+ }, Yn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Qi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Yn, { localeMessages: e, children: /* @__PURE__ */ i(le, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Qn, {}) }) }), Yi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(xe, { onClick: t, children: /* @__PURE__ */ k(Yn, { className: "rp-menu-item", localeMessages: e, children: [
2861
2869
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Qn, {}) }),
2862
2870
  e == null ? void 0 : e.downloadFileLabel
2863
2871
  ] }) }), Jn = () => {
2864
- 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;
2865
- 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 });
2866
- }, er = () => {
2867
- const { printIcon: t } = ve(), { printIcon: e } = ge();
2868
- return t || e || /* @__PURE__ */ i(Wo, {});
2869
- }, 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: [
2870
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(er, {}) }),
2872
+ const { download: t } = Xn(), { downloadTool: e = !0 } = Ce(), { downloadTool: n = !0 } = Se(), { isSmallScreen: r } = Re(), { localeMessages: o } = ue(), a = o == null ? void 0 : o.downloadFileTooltip;
2873
+ return !e || !n ? null : r ? /* @__PURE__ */ i(Yi, { 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(Qi, { download: t, localeMessages: o });
2874
+ }, eo = () => {
2875
+ const { printIcon: t } = we(), { printIcon: e } = ve();
2876
+ return t || e || /* @__PURE__ */ i(kr, {});
2877
+ }, to = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Ji = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(to, { localeMessages: e, children: /* @__PURE__ */ i(le, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(eo, {}) }) }), ea = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(xe, { onClick: t, children: /* @__PURE__ */ k(to, { className: "rp-menu-item", localeMessages: e, children: [
2878
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(eo, {}) }),
2871
2879
  e == null ? void 0 : e.printLabel
2872
- ] }) }), nr = () => {
2873
- 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;
2874
- return !d || !s ? null : f ? /* @__PURE__ */ i(Yi, { print: t, localeMessages: m }) : typeof d == "function" ? /* @__PURE__ */ i(K, { content: C, children: /* @__PURE__ */ i(
2880
+ ] }) }), no = () => {
2881
+ const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: a, showDefaultProgress: c } = st(), { printTool: d = !0 } = Ce(), { printTool: s = !0 } = Se(), { isSmallScreen: f } = Re(), { localeMessages: m } = ue(), C = m == null ? void 0 : m.printTooltip;
2882
+ return !d || !s ? null : f ? /* @__PURE__ */ i(ea, { print: t, localeMessages: m }) : typeof d == "function" ? /* @__PURE__ */ i(K, { content: C, children: /* @__PURE__ */ i(
2875
2883
  d,
2876
2884
  {
2877
2885
  print: t,
2878
2886
  cancel: e,
2879
2887
  setOnProgress: n,
2880
- setOnError: r,
2881
- setOnComplete: o,
2888
+ setOnError: o,
2889
+ setOnComplete: r,
2882
2890
  progress: a,
2883
2891
  showDefaultProgress: c
2884
2892
  }
@@ -2888,39 +2896,39 @@ const Oe = {
2888
2896
  print: t,
2889
2897
  cancel: e,
2890
2898
  setOnProgress: n,
2891
- setOnError: r,
2892
- setOnComplete: o,
2899
+ setOnError: o,
2900
+ setOnComplete: r,
2893
2901
  progress: a,
2894
2902
  showDefaultProgress: c
2895
2903
  }
2896
- ) }) : /* @__PURE__ */ i(Qi, { print: t, localeMessages: m });
2897
- }, Ji = {
2904
+ ) }) : /* @__PURE__ */ i(Ji, { print: t, localeMessages: m });
2905
+ }, ta = {
2898
2906
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2899
- }, ea = () => {
2900
- const { goToFirstPageIcon: t } = ve(), { goToFirstPageIcon: e } = ge();
2901
- return t || e || /* @__PURE__ */ i(Tn, { className: Ji["rp-go-to-Top"] });
2902
- }, ta = () => {
2903
- const { goToLastPageIcon: t } = ve(), { goToLastPageIcon: e } = ge();
2907
+ }, na = () => {
2908
+ const { goToFirstPageIcon: t } = we(), { goToFirstPageIcon: e } = ve();
2909
+ return t || e || /* @__PURE__ */ i(Tn, { className: ta["rp-go-to-Top"] });
2910
+ }, oa = () => {
2911
+ const { goToLastPageIcon: t } = we(), { goToLastPageIcon: e } = ve();
2904
2912
  return t || e || /* @__PURE__ */ i(Tn, {});
2905
- }, pn = { width: "100%" }, na = () => {
2906
- 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(() => {
2913
+ }, pn = { width: "100%" }, ra = () => {
2914
+ const { goToPage: t, totalPages: e, focusedPage: n } = se(), { jumpNavigationTool: r = !0 } = Ce(), { jumpNavigationTool: o = !0 } = Se(), { localeMessages: a } = ue(), c = W(() => n === 1, [n]), d = W(() => n === e, [n, e]), s = N(() => {
2907
2915
  t(1);
2908
2916
  }, [t]), f = N(() => {
2909
2917
  t(e);
2910
2918
  }, [t, e]);
2911
- return !o || !r ? null : /* @__PURE__ */ k(tt, { children: [
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: [
2913
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(ea, {}) }),
2919
+ return !r || !o ? null : /* @__PURE__ */ k(tt, { children: [
2920
+ /* @__PURE__ */ i(xe, { 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: [
2921
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(na, {}) }),
2914
2922
  /* @__PURE__ */ i("span", { children: a == null ? void 0 : a.firstPageLabel })
2915
2923
  ] }) }) }),
2916
- /* @__PURE__ */ i(Ie, { onClick: f, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.lastPageTooltip, style: pn, children: /* @__PURE__ */ k("div", { className: "rp-menu-item", "aria-disabled": d, children: [
2917
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(ta, {}) }),
2924
+ /* @__PURE__ */ i(xe, { onClick: f, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.lastPageTooltip, style: pn, children: /* @__PURE__ */ k("div", { className: "rp-menu-item", "aria-disabled": d, children: [
2925
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(oa, {}) }),
2918
2926
  /* @__PURE__ */ i("span", { children: a == null ? void 0 : a.lastPageLabel })
2919
2927
  ] }) }) }),
2920
2928
  /* @__PURE__ */ i(Lt, {})
2921
2929
  ] });
2922
- }, ra = () => {
2923
- const [t, e] = H(!1), { container: n, pagesRef: o } = Te(), { isSmallScreen: r } = Se(), {
2930
+ }, ia = () => {
2931
+ const [t, e] = H(!1), { container: n, pagesRef: r } = Te(), { isSmallScreen: o } = Re(), {
2924
2932
  openFileTool: a,
2925
2933
  downloadTool: c,
2926
2934
  documentProperties: d,
@@ -2942,11 +2950,11 @@ const Oe = {
2942
2950
  printTool: v,
2943
2951
  fullscreenTool: _,
2944
2952
  viewModeTool: I
2945
- } = xe(), { localeMessages: S } = pe(), [x, R] = H(0), O = M(
2953
+ } = Se(), { localeMessages: S } = ue(), [x, R] = H(0), O = M(
2946
2954
  new ResizeObserver((E) => {
2947
2955
  R(E[0].contentRect.height);
2948
2956
  })
2949
- ), D = W(() => C || f || m || s || d || b || r && (a || c || u || T), [
2957
+ ), D = W(() => C || f || m || s || d || b || o && (a || c || u || T), [
2950
2958
  a,
2951
2959
  c,
2952
2960
  u,
@@ -2956,8 +2964,8 @@ const Oe = {
2956
2964
  f,
2957
2965
  m,
2958
2966
  C,
2959
- r
2960
- ]), z = W(() => l || h || p || g || w || I || r && (P || y || v || _), [
2967
+ o
2968
+ ]), z = W(() => l || h || p || g || w || I || o && (P || y || v || _), [
2961
2969
  P,
2962
2970
  y,
2963
2971
  v,
@@ -2967,23 +2975,23 @@ const Oe = {
2967
2975
  h,
2968
2976
  p,
2969
2977
  l,
2970
- r
2978
+ o
2971
2979
  ]);
2972
- return A(() => (o && O.current.observe(o), () => {
2980
+ return A(() => (r && O.current.observe(r), () => {
2973
2981
  O.current.disconnect();
2974
- }), [o]), !D || !z ? null : /* @__PURE__ */ k(he, { children: [
2982
+ }), [r]), !D || !z ? null : /* @__PURE__ */ k(fe, { children: [
2975
2983
  /* @__PURE__ */ i(
2976
2984
  Rt,
2977
2985
  {
2978
2986
  container: n,
2979
2987
  onOpenChange: e,
2980
2988
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", "aria-haspopup": "menu", children: /* @__PURE__ */ i(K, { content: S == null ? void 0 : S.moreOptionTooltip, children: /* @__PURE__ */ i(
2981
- de,
2989
+ le,
2982
2990
  {
2983
2991
  active: t,
2984
2992
  "aria-label": S == null ? void 0 : S.moreOptionTooltip,
2985
2993
  "aria-expanded": t,
2986
- children: /* @__PURE__ */ i(bo, { "aria-hidden": "true" })
2994
+ children: /* @__PURE__ */ i(Pr, { "aria-hidden": "true" })
2987
2995
  }
2988
2996
  ) }) }),
2989
2997
  side: "bottom",
@@ -2992,51 +3000,51 @@ const Oe = {
2992
3000
  "div",
2993
3001
  {
2994
3002
  style: { maxHeight: `${x}px`, overflow: "auto" },
2995
- className: Bi["rp-other-tool-content"],
3003
+ className: ji["rp-other-tool-content"],
2996
3004
  "data-rp": "moreOptionsDropdown",
2997
3005
  children: [
2998
- r && /* @__PURE__ */ k(tt, { children: [
3006
+ o && /* @__PURE__ */ k(tt, { children: [
2999
3007
  /* @__PURE__ */ i(_n, {}),
3000
3008
  /* @__PURE__ */ i(Jn, {}),
3001
- /* @__PURE__ */ i(nr, {}),
3009
+ /* @__PURE__ */ i(no, {}),
3002
3010
  /* @__PURE__ */ i(Pn, {}),
3003
3011
  /* @__PURE__ */ i(Lt, {})
3004
3012
  ] }),
3005
- /* @__PURE__ */ i(na, {}),
3006
- /* @__PURE__ */ i(Oo, {}),
3007
- /* @__PURE__ */ i(Fo, {}),
3008
- /* @__PURE__ */ i(Do, {}),
3009
- /* @__PURE__ */ i(Ao, {}),
3010
- /* @__PURE__ */ i(No, {})
3013
+ /* @__PURE__ */ i(ra, {}),
3014
+ /* @__PURE__ */ i(Ar, {}),
3015
+ /* @__PURE__ */ i(Mr, {}),
3016
+ /* @__PURE__ */ i(zr, {}),
3017
+ /* @__PURE__ */ i(Wr, {}),
3018
+ /* @__PURE__ */ i(Dr, {})
3011
3019
  ]
3012
3020
  }
3013
3021
  )
3014
3022
  }
3015
3023
  ),
3016
- /* @__PURE__ */ i(qi, {})
3024
+ /* @__PURE__ */ i(Zi, {})
3017
3025
  ] });
3018
- }, oa = () => {
3019
- const { isSmallScreen: t } = Se();
3020
- return /* @__PURE__ */ k(he, { children: [
3021
- /* @__PURE__ */ i(wo, {}),
3022
- !t && /* @__PURE__ */ k(he, { children: [
3026
+ }, aa = () => {
3027
+ const { isSmallScreen: t } = Re();
3028
+ return /* @__PURE__ */ k(fe, { children: [
3029
+ /* @__PURE__ */ i(_r, {}),
3030
+ !t && /* @__PURE__ */ k(fe, { children: [
3023
3031
  /* @__PURE__ */ i(_n, {}),
3024
3032
  /* @__PURE__ */ i(Jn, {}),
3025
- /* @__PURE__ */ i(nr, {}),
3033
+ /* @__PURE__ */ i(no, {}),
3026
3034
  /* @__PURE__ */ i(Pn, {})
3027
3035
  ] }),
3028
- /* @__PURE__ */ i(ra, {})
3036
+ /* @__PURE__ */ i(ia, {})
3029
3037
  ] });
3030
- }, ia = "_active_1yldl_11", We = {
3038
+ }, sa = "_active_1yldl_11", We = {
3031
3039
  "rp-zoom-wrapper": "_rp-zoom-wrapper_1yldl_1",
3032
3040
  "rp-current-zoom-wrapper": "_rp-current-zoom-wrapper_1yldl_6",
3033
- active: ia,
3041
+ active: sa,
3034
3042
  "rp-current-zoom-icon": "_rp-current-zoom-icon_1yldl_15",
3035
3043
  "rp-zoom-level-icon": "_rp-zoom-level-icon_1yldl_20",
3036
3044
  "rp-current-zoom-text": "_rp-current-zoom-text_1yldl_24",
3037
3045
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_1yldl_28"
3038
- }, aa = ({ zoomLevel: t, className: e }) => {
3039
- const { localeMessages: n } = pe(), o = W(() => {
3046
+ }, ca = ({ zoomLevel: t, className: e }) => {
3047
+ const { localeMessages: n } = ue(), r = W(() => {
3040
3048
  switch (t) {
3041
3049
  case Me.ACTUAL:
3042
3050
  return n == null ? void 0 : n.zoomActualSize;
@@ -3047,18 +3055,18 @@ const Oe = {
3047
3055
  }
3048
3056
  return t.toString();
3049
3057
  }, [t, n]);
3050
- return /* @__PURE__ */ i(he, { children: typeof t == "number" ? /* @__PURE__ */ k(hr, { children: [
3058
+ return /* @__PURE__ */ i(fe, { children: typeof t == "number" ? /* @__PURE__ */ k(mo, { children: [
3051
3059
  /* @__PURE__ */ i("span", { className: e, children: t }),
3052
3060
  /* @__PURE__ */ i("span", { className: e, children: "%" })
3053
- ] }) : /* @__PURE__ */ i("span", { className: e, children: o }) });
3054
- }, sa = [50, 75, 100, 125, 150, 200, 300, 400], ca = () => {
3055
- const { zoomInIcon: t } = ve(), { zoomInIcon: e } = ge();
3056
- return t || e || /* @__PURE__ */ i(ko, {});
3057
- }, la = () => {
3058
- const { zoomOutIcon: t } = ve(), { zoomOutIcon: e } = ge();
3059
- return t || e || /* @__PURE__ */ i(Mo, {});
3060
- }, da = () => {
3061
- 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
+ ] }) : /* @__PURE__ */ i("span", { className: e, children: r }) });
3062
+ }, la = [50, 75, 100, 125, 150, 200, 300, 400], da = () => {
3063
+ const { zoomInIcon: t } = we(), { zoomInIcon: e } = ve();
3064
+ return t || e || /* @__PURE__ */ i(Hr, {});
3065
+ }, ua = () => {
3066
+ const { zoomOutIcon: t } = we(), { zoomOutIcon: e } = ve();
3067
+ return t || e || /* @__PURE__ */ i($r, {});
3068
+ }, pa = () => {
3069
+ const { zoomLevel: t, setZoomLevel: e, currentZoom: n } = ot(), { container: r, pagesRef: o } = Te(), { zoomTool: a = !0 } = Ce(), { zoomTool: c = !0 } = Se(), { isSmallScreen: d } = Re(), { localeMessages: s } = ue(), [f, m] = H(0), [C, u] = H(!1), T = M(
3062
3070
  new ResizeObserver((g) => {
3063
3071
  m(g[0].contentRect.height);
3064
3072
  })
@@ -3072,36 +3080,36 @@ const Oe = {
3072
3080
  const g = Math.ceil(n * 100 / 25) * 25;
3073
3081
  return Math.min(g - 25, Bt);
3074
3082
  });
3075
- }, [e, n]), y = W(() => Ho(n), [n]), w = W(() => $o(n), [n]);
3076
- return A(() => (r && T.current.observe(r), () => {
3083
+ }, [e, n]), y = W(() => Gr(n), [n]), w = W(() => Ur(n), [n]);
3084
+ return A(() => (o && T.current.observe(o), () => {
3077
3085
  T.current.disconnect();
3078
- }), [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: [
3086
+ }), [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: [
3079
3087
  /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.zoomOutTooltip, children: /* @__PURE__ */ i(
3080
- de,
3088
+ le,
3081
3089
  {
3082
3090
  disabled: y,
3083
3091
  onClick: P,
3084
3092
  "aria-label": s == null ? void 0 : s.zoomOutTooltip,
3085
- children: /* @__PURE__ */ i(la, {})
3093
+ children: /* @__PURE__ */ i(ua, {})
3086
3094
  }
3087
3095
  ) }),
3088
3096
  !d && /* @__PURE__ */ i(
3089
3097
  Rt,
3090
3098
  {
3091
- container: o,
3099
+ container: r,
3092
3100
  open: C,
3093
3101
  onOpenChange: u,
3094
3102
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.zoomSelectTooltip, children: /* @__PURE__ */ k(
3095
- de,
3103
+ le,
3096
3104
  {
3097
- className: se(
3105
+ className: ae(
3098
3106
  We["rp-current-zoom-wrapper"],
3099
3107
  C && We.active
3100
3108
  ),
3101
3109
  "aria-label": s == null ? void 0 : s.zoomSelectTooltip,
3102
3110
  children: [
3103
3111
  /* @__PURE__ */ i(
3104
- aa,
3112
+ ca,
3105
3113
  {
3106
3114
  zoomLevel: t,
3107
3115
  className: We["rp-current-zoom-text"]
@@ -3122,12 +3130,12 @@ const Oe = {
3122
3130
  className: We["rp-zoom-dropdown-content"],
3123
3131
  children: [
3124
3132
  /* @__PURE__ */ k(tt, { children: [
3125
- /* @__PURE__ */ i(Ie, { onClick: () => e(Me.ACTUAL), children: s == null ? void 0 : s.zoomActualSize }),
3126
- /* @__PURE__ */ i(Ie, { onClick: () => e(Me.PAGE_FIT), children: s == null ? void 0 : s.zoomPageFit }),
3127
- /* @__PURE__ */ i(Ie, { onClick: () => e(Me.PAGE_WIDTH), children: s == null ? void 0 : s.zoomPageWidth })
3133
+ /* @__PURE__ */ i(xe, { onClick: () => e(Me.ACTUAL), children: s == null ? void 0 : s.zoomActualSize }),
3134
+ /* @__PURE__ */ i(xe, { onClick: () => e(Me.PAGE_FIT), children: s == null ? void 0 : s.zoomPageFit }),
3135
+ /* @__PURE__ */ i(xe, { onClick: () => e(Me.PAGE_WIDTH), children: s == null ? void 0 : s.zoomPageWidth })
3128
3136
  ] }),
3129
3137
  /* @__PURE__ */ i(Lt, {}),
3130
- /* @__PURE__ */ i(tt, { children: sa.map((g) => /* @__PURE__ */ k(Ie, { onClick: () => e(g), children: [
3138
+ /* @__PURE__ */ i(tt, { children: la.map((g) => /* @__PURE__ */ k(xe, { onClick: () => e(g), children: [
3131
3139
  g,
3132
3140
  " %"
3133
3141
  ] }, g)) })
@@ -3137,35 +3145,35 @@ const Oe = {
3137
3145
  }
3138
3146
  ),
3139
3147
  /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.zoomInTooltip, children: /* @__PURE__ */ i(
3140
- de,
3148
+ le,
3141
3149
  {
3142
3150
  disabled: w,
3143
3151
  onClick: b,
3144
3152
  "aria-label": s == null ? void 0 : s.zoomInTooltip,
3145
- children: /* @__PURE__ */ i(ca, {})
3153
+ children: /* @__PURE__ */ i(da, {})
3146
3154
  }
3147
3155
  ) })
3148
3156
  ] });
3149
3157
  }, hn = () => {
3150
- const { totalMatches: t, nextMatch: e, prevMatch: n } = At(), { localeMessages: o } = pe(), r = !t || t === 0;
3151
- return /* @__PURE__ */ k(he, { children: [
3158
+ const { totalMatches: t, nextMatch: e, prevMatch: n } = At(), { localeMessages: r } = ue(), o = !t || t === 0;
3159
+ return /* @__PURE__ */ k(fe, { children: [
3152
3160
  /* @__PURE__ */ i(
3153
3161
  K,
3154
3162
  {
3155
- content: o == null ? void 0 : o.searchPrevTooltip,
3156
- className: ne["rp-search-tool-result-navigator"],
3163
+ content: r == null ? void 0 : r.searchPrevTooltip,
3164
+ className: te["rp-search-tool-result-navigator"],
3157
3165
  children: /* @__PURE__ */ i(
3158
- de,
3166
+ le,
3159
3167
  {
3160
3168
  tabIndex: 0,
3161
3169
  onClick: n,
3162
- "aria-label": o == null ? void 0 : o.searchPrevTooltip,
3163
- disabled: r,
3164
- "aria-disabled": r,
3170
+ "aria-label": r == null ? void 0 : r.searchPrevTooltip,
3171
+ disabled: o,
3172
+ "aria-disabled": o,
3165
3173
  children: /* @__PURE__ */ i(
3166
3174
  qe,
3167
3175
  {
3168
- className: ne["rp-search-tool-input-icon"],
3176
+ className: te["rp-search-tool-input-icon"],
3169
3177
  "aria-hidden": "true"
3170
3178
  }
3171
3179
  )
@@ -3176,21 +3184,21 @@ const Oe = {
3176
3184
  /* @__PURE__ */ i(
3177
3185
  K,
3178
3186
  {
3179
- content: o == null ? void 0 : o.searchNextTooltip,
3180
- className: ne["rp-search-tool-result-navigator"],
3187
+ content: r == null ? void 0 : r.searchNextTooltip,
3188
+ className: te["rp-search-tool-result-navigator"],
3181
3189
  children: /* @__PURE__ */ i(
3182
- de,
3190
+ le,
3183
3191
  {
3184
3192
  tabIndex: 0,
3185
3193
  onClick: e,
3186
- "aria-label": o == null ? void 0 : o.searchNextTooltip,
3187
- disabled: r,
3188
- "aria-disabled": r,
3194
+ "aria-label": r == null ? void 0 : r.searchNextTooltip,
3195
+ disabled: o,
3196
+ "aria-disabled": o,
3189
3197
  children: /* @__PURE__ */ i(
3190
3198
  qe,
3191
3199
  {
3192
3200
  style: { transform: "rotate(180deg" },
3193
- className: ne["rp-search-tool-input-icon"],
3201
+ className: te["rp-search-tool-input-icon"],
3194
3202
  "aria-hidden": "true"
3195
3203
  }
3196
3204
  )
@@ -3199,11 +3207,11 @@ const Oe = {
3199
3207
  }
3200
3208
  )
3201
3209
  ] });
3202
- }, ua = () => {
3203
- const { searchIcon: t } = ve(), { searchIcon: e } = ge();
3210
+ }, ha = () => {
3211
+ const { searchIcon: t } = we(), { searchIcon: e } = ve();
3204
3212
  return t || e || /* @__PURE__ */ i(Cn, {});
3205
- }, pa = ({ icon: t }) => {
3206
- const { container: e } = Te(), [n, o] = H(!1), { pdf: r } = oe(), [a, c] = H(null), {
3213
+ }, fa = ({ icon: t }) => {
3214
+ const { container: e } = Te(), [n, r] = H(!1), { pdf: o } = oe(), [a, c] = H(null), {
3207
3215
  searchOptions: d,
3208
3216
  setSearchOptions: s,
3209
3217
  loading: f,
@@ -3213,13 +3221,13 @@ const Oe = {
3213
3221
  nextMatch: T,
3214
3222
  prevMatch: b,
3215
3223
  search: P
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
- o(!0);
3224
+ } = At(), { searchTool: y = !0 } = Ce(), { searchTool: w = !0 } = Se(), [g, h] = H(P), { localeMessages: p } = ue(), { isSmallScreen: l } = Re(), [v, _] = H(null), [I, S] = H(!1), x = N(() => {
3225
+ r(!0);
3218
3226
  }, []), R = N(() => {
3219
- m(""), h(""), o(!1);
3227
+ m(""), h(""), r(!1);
3220
3228
  }, [m]), O = ($) => {
3221
- const Q = $.key === "Enter", J = $.key === " ";
3222
- (Q || J) && R();
3229
+ const Y = $.key === "Enter", J = $.key === " ";
3230
+ (Y || J) && R();
3223
3231
  }, D = N(
3224
3232
  ($) => {
3225
3233
  $.key === "Escape" && n && R();
@@ -3234,8 +3242,8 @@ const Oe = {
3234
3242
  A(() => {
3235
3243
  h(P);
3236
3244
  }, [P]), A(() => {
3237
- P && r && S(!0);
3238
- }, [P, r]), A(() => {
3245
+ P && o && S(!0);
3246
+ }, [P, o]), A(() => {
3239
3247
  P && P.trim() !== "" && (h(P), m(P));
3240
3248
  }, []), A(() => (window.addEventListener("keydown", D), () => {
3241
3249
  window.removeEventListener("keydown", D);
@@ -3250,43 +3258,43 @@ const Oe = {
3250
3258
  h(""), m("");
3251
3259
  }, [m]), F = W(() => `${u} / ${C}`, [u, C]), { wholeWords: G, matchCase: U } = W(() => d, [d]), V = N(
3252
3260
  ($) => {
3253
- s((Q) => ({ ...Q, matchCase: $ }));
3261
+ s((Y) => ({ ...Y, matchCase: $ }));
3254
3262
  },
3255
3263
  [s]
3256
3264
  ), B = N(
3257
3265
  ($) => {
3258
- s((Q) => ({ ...Q, wholeWords: $ }));
3266
+ s((Y) => ({ ...Y, wholeWords: $ }));
3259
3267
  },
3260
3268
  [s]
3261
3269
  );
3262
3270
  A(() => {
3263
- r && I && R();
3264
- }, [r, R]);
3265
- const Z = W(() => (v == null ? void 0 : v.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [v]), ae = N(
3271
+ o && I && R();
3272
+ }, [o, R]);
3273
+ const Z = W(() => (v == null ? void 0 : v.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [v]), ie = N(
3266
3274
  ($) => {
3267
3275
  if ($.key === "Tab") {
3268
- const Q = document.activeElement;
3276
+ const Y = document.activeElement;
3269
3277
  let J = 0;
3270
- Z.forEach((Y, we) => {
3271
- Y === Q && (J = we);
3278
+ Z.forEach((Q, he) => {
3279
+ Q === Y && (J = he);
3272
3280
  });
3273
- let te = J + 1;
3274
- $.shiftKey && (te = J - 1);
3275
- const ee = Z[te];
3281
+ let pe = J + 1;
3282
+ $.shiftKey && (pe = J - 1);
3283
+ const ee = Z[pe];
3276
3284
  if (ee)
3277
3285
  ee.focus();
3278
- else if (te > Z.length - 1) {
3279
- const Y = Z[0];
3280
- Y && Y.focus();
3286
+ else if (pe > Z.length - 1) {
3287
+ const Q = Z[0];
3288
+ Q && Q.focus();
3281
3289
  } else {
3282
- const Y = Z[Z.length - 1];
3283
- Y && Y.focus();
3290
+ const Q = Z[Z.length - 1];
3291
+ Q && Q.focus();
3284
3292
  }
3285
3293
  }
3286
3294
  },
3287
3295
  [Z]
3288
3296
  );
3289
- return !y || !w ? null : /* @__PURE__ */ i(he, { children: /* @__PURE__ */ i(
3297
+ return !y || !w ? null : /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(
3290
3298
  Rt,
3291
3299
  {
3292
3300
  open: n,
@@ -3296,28 +3304,28 @@ const Oe = {
3296
3304
  tabIndex: 0,
3297
3305
  avoidCollisions: !1,
3298
3306
  triggerComponent: /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchButtonTooltip, children: /* @__PURE__ */ i(
3299
- de,
3307
+ le,
3300
3308
  {
3301
3309
  active: n,
3302
3310
  onClick: x,
3303
3311
  "aria-label": p == null ? void 0 : p.searchButtonTooltip,
3304
3312
  "aria-expanded": n,
3305
3313
  "aria-haspopup": "dialog",
3306
- children: t || /* @__PURE__ */ i(ua, {})
3314
+ children: t || /* @__PURE__ */ i(ha, {})
3307
3315
  }
3308
3316
  ) }),
3309
3317
  children: /* @__PURE__ */ k(
3310
3318
  "div",
3311
3319
  {
3312
3320
  ref: _,
3313
- className: ne["rp-search-tool-content"],
3321
+ className: te["rp-search-tool-content"],
3314
3322
  tabIndex: 0,
3315
- onKeyDown: ae,
3323
+ onKeyDown: ie,
3316
3324
  role: "dialog",
3317
3325
  "aria-label": (p == null ? void 0 : p.searchInputTooltip) || "Search dialog",
3318
3326
  children: [
3319
- /* @__PURE__ */ k("div", { className: ne["rp-search-tool-input-wrapper"], children: [
3320
- /* @__PURE__ */ k("div", { className: ne["rp-search-tool-input"], children: [
3327
+ /* @__PURE__ */ k("div", { className: te["rp-search-tool-input-wrapper"], children: [
3328
+ /* @__PURE__ */ k("div", { className: te["rp-search-tool-input"], children: [
3321
3329
  /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchInputTooltip, children: /* @__PURE__ */ i(
3322
3330
  gn,
3323
3331
  {
@@ -3326,7 +3334,7 @@ const Oe = {
3326
3334
  onChange: E,
3327
3335
  icon: /* @__PURE__ */ i(Cn, {}),
3328
3336
  placeholder: p == null ? void 0 : p.searchInputPlaceholder,
3329
- className: ne["rp-search-input"],
3337
+ className: te["rp-search-input"],
3330
3338
  ref: c,
3331
3339
  id: "search-input",
3332
3340
  name: "search-input",
@@ -3336,7 +3344,7 @@ const Oe = {
3336
3344
  children: !!g && /* @__PURE__ */ i(
3337
3345
  "span",
3338
3346
  {
3339
- className: ne["rp-search-tool-input-clear"],
3347
+ className: te["rp-search-tool-input-clear"],
3340
3348
  onClick: L,
3341
3349
  role: "button",
3342
3350
  tabIndex: 0,
@@ -3344,15 +3352,15 @@ const Oe = {
3344
3352
  onKeyDown: ($) => {
3345
3353
  ($.key === "Enter" || $.key === " ") && ($.preventDefault(), L());
3346
3354
  },
3347
- children: /* @__PURE__ */ i(Go, {})
3355
+ children: /* @__PURE__ */ i(Vr, {})
3348
3356
  }
3349
3357
  )
3350
3358
  }
3351
3359
  ) }),
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 }) })
3360
+ f ? /* @__PURE__ */ i("span", { "aria-live": "polite", "aria-label": "Searching", children: /* @__PURE__ */ i(bn, { className: te["rp-search-loader-icon"], "aria-hidden": "true" }) }) : /* @__PURE__ */ i("span", { id: "search-results-count", "aria-live": "polite", children: F }),
3361
+ l && /* @__PURE__ */ i("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ i(Ut, { onKeyPress: O, handleClose: R }) })
3354
3362
  ] }),
3355
- /* @__PURE__ */ k("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
3363
+ /* @__PURE__ */ k("div", { className: te["rp-search-tool-input-checkboxes"], children: [
3356
3364
  l && /* @__PURE__ */ i(hn, {}),
3357
3365
  /* @__PURE__ */ i(
3358
3366
  Vt,
@@ -3365,7 +3373,7 @@ const Oe = {
3365
3373
  children: p == null ? void 0 : p.searchMatchCaseLabel
3366
3374
  }
3367
3375
  ),
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, {}) }) }),
3376
+ !l && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: te["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Xt, {}) }) }),
3369
3377
  /* @__PURE__ */ i(
3370
3378
  Vt,
3371
3379
  {
@@ -3377,10 +3385,10 @@ const Oe = {
3377
3385
  children: p == null ? void 0 : p.searchWholeWordsLabel
3378
3386
  }
3379
3387
  ),
3380
- !l && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { tabIndex: 0, className: ne["rp-search-icon-info"], children: /* @__PURE__ */ i(Xt, {}) }) })
3388
+ !l && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { tabIndex: 0, className: te["rp-search-icon-info"], children: /* @__PURE__ */ i(Xt, {}) }) })
3381
3389
  ] })
3382
3390
  ] }),
3383
- !l && /* @__PURE__ */ k("div", { className: ne["rp-search-tool-controls"], children: [
3391
+ !l && /* @__PURE__ */ k("div", { className: te["rp-search-tool-controls"], children: [
3384
3392
  /* @__PURE__ */ i(hn, {}),
3385
3393
  /* @__PURE__ */ i(Ut, { onKeyPress: O, handleClose: R })
3386
3394
  ] })
@@ -3389,43 +3397,43 @@ const Oe = {
3389
3397
  )
3390
3398
  }
3391
3399
  ) });
3392
- }, ha = "_loading_wazy2_1", Fe = {
3400
+ }, ma = "_loading_wazy2_1", Fe = {
3393
3401
  "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
3394
3402
  "rp-loading-modal": "_rp-loading-modal_wazy2_14",
3395
3403
  "rp-loading-title": "_rp-loading-title_wazy2_27",
3396
3404
  "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
3397
3405
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3398
3406
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3399
- loading: ha
3400
- }, fa = ({ percentage: t }) => {
3401
- const { cancel: e } = st(), { localeMessages: n } = pe();
3402
- return t < 1 ? null : /* @__PURE__ */ i("div", { className: se(Fe["rp-loading-overlay"]), children: /* @__PURE__ */ k("div", { className: se(Fe["rp-loading-modal"]), children: [
3403
- /* @__PURE__ */ k("div", { className: se(Fe["rp-loading-title"]), children: [
3407
+ loading: ma
3408
+ }, ga = ({ percentage: t }) => {
3409
+ const { cancel: e } = st(), { localeMessages: n } = ue();
3410
+ return t < 1 ? null : /* @__PURE__ */ i("div", { className: ae(Fe["rp-loading-overlay"]), children: /* @__PURE__ */ k("div", { className: ae(Fe["rp-loading-modal"]), children: [
3411
+ /* @__PURE__ */ k("div", { className: ae(Fe["rp-loading-title"]), children: [
3404
3412
  n == null ? void 0 : n.printLoadingMessage,
3405
3413
  "..."
3406
3414
  ] }),
3407
- /* @__PURE__ */ i("div", { className: se(Fe["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
3415
+ /* @__PURE__ */ i("div", { className: ae(Fe["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
3408
3416
  "div",
3409
3417
  {
3410
- className: se(Fe["rp-loading-progress"]),
3418
+ className: ae(Fe["rp-loading-progress"]),
3411
3419
  style: { width: `${t}%` }
3412
3420
  }
3413
3421
  ) }),
3414
- /* @__PURE__ */ i("button", { className: se(Fe["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3422
+ /* @__PURE__ */ i("button", { className: ae(Fe["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3415
3423
  ] }) });
3416
- }, ma = at((t, e) => {
3417
- 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 = () => {
3418
- if (!(!(a ?? (n && o)) || !d))
3419
- return /* @__PURE__ */ i(fa, { percentage: d });
3424
+ }, va = at((t, e) => {
3425
+ const { showPrintProgress: n = !0 } = Ce(), { showPrintProgress: r = !0 } = Se(), { progress: o, showDefaultProgress: a } = st(), { isSmallScreen: c } = Re(), { percentage: d } = o || {}, s = () => c ? { gridTemplateColumns: "25% 60% 15%" } : void 0, f = () => {
3426
+ if (!(!(a ?? (n && r)) || !d))
3427
+ return /* @__PURE__ */ i(ga, { percentage: d });
3420
3428
  };
3421
3429
  return /* @__PURE__ */ k("div", { children: [
3422
3430
  /* @__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
3431
  /* @__PURE__ */ k("div", { "data-rp": "topBarLeft", className: Ge["rp-toolbar-start"], children: [
3424
- /* @__PURE__ */ i(pa, {}),
3425
- /* @__PURE__ */ i(Si, {})
3432
+ /* @__PURE__ */ i(fa, {}),
3433
+ /* @__PURE__ */ i(Li, {})
3426
3434
  ] }),
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(oa, {}) })
3435
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Ge["rp-toolbar-middle"], children: /* @__PURE__ */ i(pa, {}) }),
3436
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Ge["rp-toolbar-end"], children: /* @__PURE__ */ i(aa, {}) })
3429
3437
  ] }) }),
3430
3438
  /* @__PURE__ */ i(f, {})
3431
3439
  ] });
@@ -3435,13 +3443,13 @@ const Oe = {
3435
3443
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
3436
3444
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3437
3445
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3438
- }, ga = (t) => {
3439
- 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 ? Ue["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3440
- width: Math.round(o.width),
3441
- height: Math.round(o.height)
3442
- }), [o]), P = N(() => {
3443
- e && r(e);
3444
- }, [r, e]);
3446
+ }, wa = (t) => {
3447
+ const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = se(), { pageRotate: a } = it(), c = M(null), d = Nn(), { pages: s } = oe(), [f, m] = H(null), C = M(!1), u = M(), T = W(() => n ? Ue["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3448
+ width: Math.round(r.width),
3449
+ height: Math.round(r.height)
3450
+ }), [r]), P = N(() => {
3451
+ e && o(e);
3452
+ }, [o, e]);
3445
3453
  return A(() => {
3446
3454
  const y = s.get(e);
3447
3455
  u.current === y || (m(null), u.current = y);
@@ -3503,7 +3511,7 @@ const Oe = {
3503
3511
  style: {
3504
3512
  transform: `rotate(${a[e || 0]}deg)`
3505
3513
  },
3506
- className: se(T, Ue["rp-thumbnail"]),
3514
+ className: ae(T, Ue["rp-thumbnail"]),
3507
3515
  "aria-hidden": "true",
3508
3516
  children: f ? /* @__PURE__ */ i(
3509
3517
  "img",
@@ -3534,24 +3542,24 @@ const Oe = {
3534
3542
  }, fn = {
3535
3543
  "rp-thumbnails-container": "_rp-thumbnails-container_70k68_1",
3536
3544
  "rp-thumbnails": "_rp-thumbnails_70k68_1"
3537
- }, va = 16, wa = (t, e) => {
3545
+ }, ba = 16, _a = (t, e) => {
3538
3546
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3539
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - va);
3540
- }, ba = at((t, e) => {
3541
- 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);
3547
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - ba);
3548
+ }, Pa = at((t, e) => {
3549
+ const { show: n, width: r } = t, { focusedPage: o, totalPages: a } = se(), { thumbnailPages: c, addPage: d, thumbnailLength: s, addToPage: f } = Rn(), m = M(null), C = M(1);
3542
3550
  mn(e, () => m.current);
3543
3551
  const u = W(() => Object.values(c), [c]), T = N(() => {
3544
3552
  const b = s + 1;
3545
3553
  b <= a && d(b);
3546
3554
  }, [d, a, s]);
3547
3555
  return A(() => {
3548
- r > s && a > s ? f(r) : n && C.current !== r && (wa(m.current, r), C.current = r);
3549
- }, [r, s, f, n, u]), Kr(m.current, T), /* @__PURE__ */ i("div", { ref: m, className: fn["rp-thumbnails-container"], style: { width: o }, children: /* @__PURE__ */ i("div", { className: fn["rp-thumbnails"], children: n ? u.map((b, P) => {
3556
+ o > s && a > s ? f(o) : n && C.current !== o && (_a(m.current, o), C.current = o);
3557
+ }, [o, s, f, n, u]), Qo(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) => {
3550
3558
  var y, w;
3551
3559
  return /* @__PURE__ */ i(
3552
- ga,
3560
+ wa,
3553
3561
  {
3554
- isFocused: r === ((y = b.page) == null ? void 0 : y.pageNumber),
3562
+ isFocused: o === ((y = b.page) == null ? void 0 : y.pageNumber),
3555
3563
  pageNumber: (w = b.page) == null ? void 0 : w.pageNumber,
3556
3564
  loading: b.loading,
3557
3565
  viewport: b.viewport,
@@ -3560,22 +3568,22 @@ const Oe = {
3560
3568
  P
3561
3569
  );
3562
3570
  }) : null }) });
3563
- }), _a = () => {
3564
- const { thumbnailIcon: t } = ve(), { thumbnailIcon: e } = ge();
3565
- return t || e || /* @__PURE__ */ i(Mr, {});
3566
- }, Pa = () => {
3567
- 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(() => {
3571
+ }), Ta = () => {
3572
+ const { thumbnailIcon: t } = we(), { thumbnailIcon: e } = ve();
3573
+ return t || e || /* @__PURE__ */ i($o, {});
3574
+ }, Ca = () => {
3575
+ const { active: t, setActive: e } = Rn(), [n, r] = H(Yo), o = M(null), a = M(null), { thumbnailTool: c, sidebarEnable: d } = Ce(), { localeMessages: s } = ue(), f = N(() => {
3568
3576
  e((C) => !C);
3569
3577
  }, []), 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(
3570
- de,
3578
+ le,
3571
3579
  {
3572
3580
  onClick: f,
3573
3581
  active: t,
3574
3582
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
3575
- children: /* @__PURE__ */ i(_a, {})
3583
+ children: /* @__PURE__ */ i(Ta, {})
3576
3584
  }
3577
3585
  ) }) : null, [c, t, f, s]);
3578
- return /* @__PURE__ */ i(he, { children: d && /* @__PURE__ */ k(
3586
+ return /* @__PURE__ */ i(fe, { children: d && /* @__PURE__ */ k(
3579
3587
  "div",
3580
3588
  {
3581
3589
  style: { "--rp-thumbnail-width": `${n}px` },
@@ -3589,12 +3597,12 @@ const Oe = {
3589
3597
  "data-rp": "thumbnailSidebar",
3590
3598
  className: `${Xe["rp-thumbnails-wrapper"]} ${t ? "" : Xe["rp-thumbnails-wrapper-hidden"]}`,
3591
3599
  children: [
3592
- /* @__PURE__ */ i(ba, { show: t, ref: r }),
3600
+ /* @__PURE__ */ i(Pa, { show: t, ref: o }),
3593
3601
  /* @__PURE__ */ i(
3594
- Hr,
3602
+ Go,
3595
3603
  {
3596
- onWidthChange: o,
3597
- thumbnailRef: r,
3604
+ onWidthChange: r,
3605
+ thumbnailRef: o,
3598
3606
  leftSidebarRef: a
3599
3607
  }
3600
3608
  )
@@ -3604,11 +3612,11 @@ const Oe = {
3604
3612
  ]
3605
3613
  }
3606
3614
  ) });
3607
- }, Sc = fr((t, e) => {
3615
+ }, Ec = go((t, e) => {
3608
3616
  const {
3609
3617
  children: n,
3610
- slots: o,
3611
- icons: r,
3618
+ slots: r,
3619
+ icons: o,
3612
3620
  style: a,
3613
3621
  className: c,
3614
3622
  mobileWidth: d,
@@ -3619,25 +3627,25 @@ const Oe = {
3619
3627
  return A(() => (s && s(), () => {
3620
3628
  f && f();
3621
3629
  }), [s, f]), // TODO: deprecated in v2.0.0, remove later ~
3622
- /* @__PURE__ */ i(zn, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i(Gr, { mobileWidth: d, onLayoutWidthChange: m, children: /* @__PURE__ */ i(Ur, { slots: o, children: /* @__PURE__ */ i(Zr, { icons: r, children: /* @__PURE__ */ k($r, { getContainerRef: T, style: a, className: c, children: [
3630
+ /* @__PURE__ */ i(zn, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i(Vo, { mobileWidth: d, onLayoutWidthChange: m, children: /* @__PURE__ */ i(qo, { slots: r, children: /* @__PURE__ */ i(Ko, { icons: o, children: /* @__PURE__ */ k(Uo, { getContainerRef: T, style: a, className: c, children: [
3623
3631
  /* @__PURE__ */ i(Gt, { href: "#rp-menu", label: "Skip to Menu" }),
3624
3632
  /* @__PURE__ */ i(Gt, { href: "#rp-main-content", label: "Skip to Main Content" }),
3625
- /* @__PURE__ */ k(Vr, { children: [
3626
- /* @__PURE__ */ k("div", { className: ye["rp-layout"], children: [
3633
+ /* @__PURE__ */ k(Bo, { children: [
3634
+ /* @__PURE__ */ k("div", { className: Ie["rp-layout"], children: [
3627
3635
  /* @__PURE__ */ i("nav", { id: "rp-menu", role: "menu", "aria-label": "PDF viewer toolbar", children: /* @__PURE__ */ i(
3628
- ma,
3636
+ va,
3629
3637
  {
3630
3638
  ref: u
3631
3639
  }
3632
3640
  ) }),
3633
- /* @__PURE__ */ k("div", { className: ye["rp-content"], children: [
3641
+ /* @__PURE__ */ k("div", { className: Ie["rp-content"], children: [
3634
3642
  /* @__PURE__ */ i(
3635
3643
  "aside",
3636
3644
  {
3637
- className: ye["rp-sidebar"],
3645
+ className: Ie["rp-sidebar"],
3638
3646
  role: "complementary",
3639
3647
  "aria-label": "PDF viewer sidebar",
3640
- children: /* @__PURE__ */ i(Pa, {})
3648
+ children: /* @__PURE__ */ i(Ca, {})
3641
3649
  }
3642
3650
  ),
3643
3651
  /* @__PURE__ */ i(
@@ -3645,7 +3653,7 @@ const Oe = {
3645
3653
  {
3646
3654
  id: "rp-main-content",
3647
3655
  ref: b,
3648
- className: ye["rp-pages"],
3656
+ className: Ie["rp-pages"],
3649
3657
  role: "main",
3650
3658
  "aria-label": "PDF document pages",
3651
3659
  children: n
@@ -3653,12 +3661,12 @@ const Oe = {
3653
3661
  )
3654
3662
  ] })
3655
3663
  ] }),
3656
- /* @__PURE__ */ i(qr, {})
3664
+ /* @__PURE__ */ i(Zo, {})
3657
3665
  ] }),
3658
3666
  P ? /* @__PURE__ */ i(
3659
3667
  "div",
3660
3668
  {
3661
- className: ye["rp-loader"],
3669
+ className: Ie["rp-loader"],
3662
3670
  style: {
3663
3671
  position: "absolute",
3664
3672
  top: 0,
@@ -3684,7 +3692,7 @@ const Oe = {
3684
3692
  }
3685
3693
  ) : null
3686
3694
  ] }) }) }) }) });
3687
- }), Rc = {
3695
+ }), Nc = {
3688
3696
  "rp-toolbar-layout": "_rp-toolbar-layout_13tet_1",
3689
3697
  "rp-content": "_rp-content_13tet_7",
3690
3698
  "rp-topbar-content": "_rp-topbar-content_13tet_13",
@@ -3694,37 +3702,37 @@ const Oe = {
3694
3702
  "rp-thumbnails-wrapper-hidden": "_rp-thumbnails-wrapper-hidden_13tet_45"
3695
3703
  };
3696
3704
  export {
3697
- ma as $,
3705
+ va as $,
3698
3706
  Sn as A,
3699
- Bo as B,
3707
+ jr as B,
3700
3708
  Ln as C,
3701
- qi as D,
3709
+ Zi as D,
3702
3710
  En as E,
3703
3711
  Nn as F,
3704
- Zo as G,
3705
- Xo as H,
3706
- Jo as I,
3707
- ti as J,
3712
+ Kr as G,
3713
+ Yr as H,
3714
+ ti as I,
3715
+ oi as J,
3708
3716
  He as K,
3709
3717
  zn as L,
3710
- vi as M,
3711
- _i as N,
3712
- Pi as O,
3713
- Si as P,
3714
- Ti as Q,
3715
- yc as R,
3716
- pa as S,
3717
- Pc as T,
3718
- Ci as U,
3718
+ bi as M,
3719
+ Ti as N,
3720
+ Ci as O,
3721
+ Li as P,
3722
+ yi as Q,
3723
+ Sc as R,
3724
+ fa as S,
3725
+ yc as T,
3726
+ Ii as U,
3719
3727
  Jn as V,
3720
- nr as W,
3721
- na as X,
3722
- ra as Y,
3723
- aa as Z,
3728
+ no as W,
3729
+ ra as X,
3730
+ ia as Y,
3731
+ ca as Z,
3724
3732
  hn as _,
3725
- Sc as a,
3726
- ga as a0,
3727
- Pa as a1,
3733
+ Ec as a,
3734
+ wa as a0,
3735
+ Ca as a1,
3728
3736
  Xn as b,
3729
3737
  st as c,
3730
3738
  At as d,
@@ -3732,22 +3740,22 @@ export {
3732
3740
  _t as f,
3733
3741
  We as g,
3734
3742
  Ge as h,
3735
- da as i,
3736
- oa as j,
3737
- bc as k,
3743
+ pa as i,
3744
+ aa as j,
3745
+ ta as k,
3738
3746
  Tc as l,
3739
- Cc as m,
3740
- _c as n,
3741
- Rc as o,
3742
- ba as p,
3743
- fa as q,
3744
- Bi as r,
3745
- Ji as s,
3747
+ Ic as m,
3748
+ xc as n,
3749
+ Cc as o,
3750
+ Nc as p,
3751
+ Pa as q,
3752
+ ga as r,
3753
+ ji as s,
3746
3754
  yn as t,
3747
- ce as u,
3748
- Uo as v,
3755
+ se as u,
3756
+ qr as v,
3749
3757
  In as w,
3750
- Vo as x,
3758
+ Br as x,
3751
3759
  xn as y,
3752
- qo as z
3760
+ Zr as z
3753
3761
  };