@pdf-viewer/react 0.0.0-experimental.5 → 0.0.0-experimental.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/{ToolbarLayout.module-fa6c85c9.js → ToolbarLayout.module-37619c4b.js} +1281 -1279
  2. package/dist/components/RPController.js +1 -1
  3. package/dist/components/RPPages.js +1 -1
  4. package/dist/components/RPProvider.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/RPLayout.js +1 -1
  8. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  11. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  13. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  14. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  15. package/dist/components/layout/toolbar/Paginate.js +1 -1
  16. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  17. package/dist/components/layout/toolbar/RPMoreOptions.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  20. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  21. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  22. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  23. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  24. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  25. package/dist/components/layout/toolbar/ToolbarLayout.js +1 -1
  26. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  30. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  31. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  32. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  33. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  34. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
  35. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +1 -1
  36. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  37. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +1 -1
  38. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +1 -1
  39. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +1 -1
  40. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +1 -1
  41. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +1 -1
  42. package/dist/components/page/AnnotationLayer.js +1 -1
  43. package/dist/components/page/CanvasLayer.js +1 -1
  44. package/dist/components/page/DualPage.js +1 -1
  45. package/dist/components/page/RPPage.js +1 -1
  46. package/dist/components/page/SinglePage.js +1 -1
  47. package/dist/components/page/TextHighlightLayer.js +1 -1
  48. package/dist/components/page/TextLayer.js +1 -1
  49. package/dist/components/ui/LoadingIndicator.js +1 -1
  50. package/dist/contexts/PaginationContext.js +1 -1
  51. package/dist/contexts/PrintContext.js +1 -1
  52. package/dist/contexts/RenderQueueProvider.js +1 -1
  53. package/dist/contexts/SearchContext.js +1 -1
  54. package/dist/contexts/ThumbnailsContext.js +1 -1
  55. package/dist/main.js +1 -1
  56. package/dist/types/utils/annotations.d.ts +1 -2
  57. package/dist/types/utils/link_service.d.ts +3 -1
  58. package/dist/utils/annotations.js +45 -56
  59. package/dist/utils/hooks/useFileDownload.js +1 -1
  60. package/dist/utils/hooks/useLicense.js +1 -1
  61. package/dist/utils/hooks/usePaginate.js +1 -1
  62. package/dist/utils/hooks/usePresentPage.js +1 -1
  63. package/dist/utils/hooks/usePrint.js +1 -1
  64. package/dist/utils/hooks/useScrollToPage.js +1 -1
  65. package/dist/utils/hooks/useSearch.js +1 -1
  66. package/dist/utils/hooks/useThumbnail.js +1 -1
  67. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  68. package/dist/utils/link_service.js +41 -11
  69. package/package.json +1 -1
@@ -1,55 +1,55 @@
1
1
  import { jsx as i, Fragment as fe, jsxs as W } from "react/jsx-runtime";
2
2
  import * as X from "react";
3
- import { useRef as H, useEffect as D, useCallback as E, useState as $, useMemo as M, createContext as Ve, useContext as Be, useImperativeHandle as pn, createElement as Ke, PureComponent as lo, Component as uo, memo as hn, Fragment as po, forwardRef as ho } from "react";
3
+ import { useRef as H, useEffect as D, useCallback as E, useState as $, useMemo as k, createContext as Ve, useContext as Be, useImperativeHandle as un, createElement as Ke, PureComponent as co, Component as lo, memo as pn, Fragment as uo, forwardRef as po } from "react";
4
4
  import { ChevronUpIcon as Ue } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as de } from "./components/ui/Button.js";
6
- import { UIInput as fn } from "./components/ui/Input.js";
7
- import { ViewMode as Oe, ScrollMode as re, AnnotationSubType as fo, SelectionMode as mo, ErrorType as go, ZoomLevel as We } from "./utils/types.js";
6
+ import { UIInput as hn } from "./components/ui/Input.js";
7
+ import { ViewMode as Oe, ScrollMode as ie, AnnotationSubType as ho, SelectionMode as fo, ErrorType as mo, ZoomLevel as We } from "./utils/types.js";
8
8
  import { useScrollModeContext as ze } from "./contexts/ScrollModeContext.js";
9
- import { useDocumentContext as ie } from "./contexts/RPDocumentContext.js";
10
- import { useDocumentPasswordContext as vo } from "./contexts/DocumentPasswordContext.js";
11
- import { useDarkModeContext as wo } from "./contexts/DarkModeContext.js";
9
+ import { useDocumentContext as re } from "./contexts/RPDocumentContext.js";
10
+ import { useDocumentPasswordContext as go } from "./contexts/DocumentPasswordContext.js";
11
+ import { useDarkModeContext as vo } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
- import { useLayerContext as _o } from "./contexts/LayerContext.js";
13
+ import { useLayerContext as wo } from "./contexts/LayerContext.js";
14
14
  import { useZoomContext as tt } from "./contexts/ZoomContext.js";
15
15
  import { useViewModeContext as He } from "./contexts/ViewModeContext.js";
16
16
  import { useVirtualScrollContext as nt } from "./contexts/VirtualScrollContext.js";
17
- import { useVirtualGridContext as mn } from "./contexts/VirtualGridContext.js";
18
- import { useSelectionModeContext as bo } from "./contexts/SelectionModeContext.js";
19
- import { useInitialStateContext as To } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as Co } from "./contexts/FullScreenContext.js";
17
+ import { useVirtualGridContext as fn } from "./contexts/VirtualGridContext.js";
18
+ import { useSelectionModeContext as _o } from "./contexts/SelectionModeContext.js";
19
+ import { useInitialStateContext as bo } from "./contexts/InitialStateContext.js";
20
+ import { useFullScreenContext as To } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
- import { findMatches as Po, resetDivs as yo, highlightMatches as Io, isMatchEntireWord as So } from "./utils/highlight.js";
23
+ import { findMatches as Co, resetDivs as Po, highlightMatches as yo, isMatchEntireWord as Io } from "./utils/highlight.js";
24
24
  import { useLayoutContainer as Ce } from "./contexts/LayoutContainerContext.js";
25
25
  import { useDimensionPagesContext as Ze } from "./contexts/DimensionPagesContext.js";
26
26
  import { useLocalizationContext as pe } from "./contexts/LocalizationContext.js";
27
- import { useHighlightContext as xo } from "./contexts/HighlightContext.js";
27
+ import { useHighlightContext as So } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
- import { useDownloadContext as Ro } from "./contexts/DownloadContext.js";
30
- import { useSmoothScrollContext as gn } from "./contexts/SmoothScrollContext.js";
29
+ import { useDownloadContext as xo } from "./contexts/DownloadContext.js";
30
+ import { useSmoothScrollContext as mn } from "./contexts/SmoothScrollContext.js";
31
31
  import "./contexts/ElementPageContext.js";
32
32
  import { usePagesRotateContext as ot } from "./contexts/PagesRotateContext.js";
33
- import { Queue as Lo } from "./utils/Queue.js";
34
- import { renderPage as Eo } from "./utils/renderPage.js";
35
- import { useGlobalCurrentPage as No } from "./contexts/GlobalCurrentPage.js";
33
+ import { Queue as Ro } from "./utils/Queue.js";
34
+ import { renderPage as Lo } from "./utils/renderPage.js";
35
+ import { useGlobalCurrentPage as Eo } from "./contexts/GlobalCurrentPage.js";
36
36
  import { useLoaderContext as yt } from "./contexts/LoaderContext.js";
37
37
  import { useToolComponentContext as Se } from "./contexts/ToolComponentContext.js";
38
38
  import { useIconToolContext as ge } from "./contexts/IconToolContext.js";
39
- import { useOtherToolContext as Oo } from "./contexts/OtherToolContext.js";
40
- import { useEventCallbackContext as Do } from "./contexts/EventCallbackContext.js";
39
+ import { useOtherToolContext as No } from "./contexts/OtherToolContext.js";
40
+ import { useEventCallbackContext as Oo } from "./contexts/EventCallbackContext.js";
41
41
  import "./components/RPConfig.js";
42
- import { ThumbnailIcon as zo } from "./components/icons/Thumbnail.js";
42
+ import { ThumbnailIcon as Do } from "./components/icons/Thumbnail.js";
43
43
  import { c as se } from "./clsx-0c6e471a.js";
44
- import { LoaderIcon as vn } from "./components/icons/LoaderIcon.js";
45
- import { Container as Ao } from "./components/layout/Container.js";
46
- import { useViewportContext as xe, ViewportProvider as Fo } from "./contexts/ViewportContext.js";
47
- import { useToolbarComponentContext as Pe, ToolbarComponentProvider as ko } from "./contexts/ToolbarComponentContext.js";
44
+ import { LoaderIcon as gn } from "./components/icons/LoaderIcon.js";
45
+ import { Container as zo } from "./components/layout/Container.js";
46
+ import { useViewportContext as xe, ViewportProvider as Ao } from "./contexts/ViewportContext.js";
47
+ import { useToolbarComponentContext as Pe, ToolbarComponentProvider as Fo } from "./contexts/ToolbarComponentContext.js";
48
48
  import { RPSplitter as Mo } from "./components/layout/sidebar/RPSplitter.js";
49
- import { WrapperLayout as Wo } from "./components/layout/WrapperLayout.js";
50
- import { c as ye, L as Ho } from "./LayoutWrapper-6224491f.js";
51
- import { useThemeContext as $o } from "./contexts/ThemeContext.js";
52
- import { RPDropFileZone as Go } from "./components/RPDropFileZone.js";
49
+ import { WrapperLayout as ko } from "./components/layout/WrapperLayout.js";
50
+ import { c as ye, L as Wo } from "./LayoutWrapper-6224491f.js";
51
+ import { useThemeContext as Ho } from "./contexts/ThemeContext.js";
52
+ import { RPDropFileZone as $o } from "./components/RPDropFileZone.js";
53
53
  import { c as oe, S as Wt } from "./SearchCloseButton-08d57275.js";
54
54
  import { UICheckbox as Ht } from "./components/ui/Checkbox.js";
55
55
  import { useIconContext as ve, IconProvider as qo } from "./contexts/IconContext.js";
@@ -58,57 +58,57 @@ import { UIDropDown as It } from "./components/ui/DropDown.js";
58
58
  import { MenuItem as Ie } from "./components/layout/toolbar/MenuItem.js";
59
59
  import { MenuSeparator as St } from "./components/layout/toolbar/MenuSeparator.js";
60
60
  import { dateFormatter as $t } from "./utils/dateFormatter.js";
61
- import { PropertyItem as Uo } from "./components/layout/toolbar/PropertyItem.js";
61
+ import { PropertyItem as Go } from "./components/layout/toolbar/PropertyItem.js";
62
62
  import "./RotateTool.module-67946714.js";
63
63
  import { withRef as rt } from "./utils/withRef.js";
64
- import { useInfiniteScroll as Vo } from "./utils/hooks/useInfiniteScroll.js";
65
- import { MAX_ZOOM_SCALE as Gt, THUMBNAIL_MIN_WIDTH as Bo } from "./utils/constants.js";
66
- import * as Zo from "pdfjs-dist";
67
- import { PixelsPerInch as jo, AnnotationMode as Ko, RenderingCancelledException as Xo, AnnotationLayer as Qo, OutputScale as Yo } from "pdfjs-dist";
68
- import { SimpleLinkService as qt } from "./utils/link_service.js";
69
- import { annotationsEvents as Jo, annotationEventsHandler as er, handleClick as Ut, handleAnnotationWidget as tr, bindLayerEvents as nr, unbindLayerEvents as Vt } from "./utils/annotations.js";
70
- import { normalizeSingleKeyword as or, sortHighlightPosition as rr, unwrap as ir } from "./components/page/searchHighlight.js";
71
- import { CustomElement as ar } from "./components/page/CustomElement.js";
72
- import { getGridDimension as xt, getPositionFromPage as sr, getPageFromPosition as cr } from "./utils/calculatePage.js";
73
- import { useMousePressed as lr } from "./utils/hooks/useMousePressed.js";
74
- import { useGrabScroll as dr } from "./utils/hooks/useGrabScroll.js";
75
- import { usePinch as ur } from "./utils/hooks/usePinch.js";
64
+ import { useInfiniteScroll as Uo } from "./utils/hooks/useInfiniteScroll.js";
65
+ import { MAX_ZOOM_SCALE as qt, THUMBNAIL_MIN_WIDTH as Vo } from "./utils/constants.js";
66
+ import * as Bo from "pdfjs-dist";
67
+ import { PixelsPerInch as Zo, AnnotationMode as jo, RenderingCancelledException as Ko, AnnotationLayer as Xo, OutputScale as Qo } from "pdfjs-dist";
68
+ import { SimpleLinkService as Gt } from "./utils/link_service.js";
69
+ import { annotationsEvents as Yo, annotationEventsHandler as Jo, handleAnnotationWidget as er, bindLayerEvents as tr, unbindLayerEvents as Ut } from "./utils/annotations.js";
70
+ import { normalizeSingleKeyword as nr, sortHighlightPosition as or, unwrap as rr } from "./components/page/searchHighlight.js";
71
+ import { CustomElement as ir } from "./components/page/CustomElement.js";
72
+ import { getGridDimension as xt, getPositionFromPage as ar, getPageFromPosition as sr } from "./utils/calculatePage.js";
73
+ import { useMousePressed as cr } from "./utils/hooks/useMousePressed.js";
74
+ import { useGrabScroll as lr } from "./utils/hooks/useGrabScroll.js";
75
+ import { usePinch as dr } from "./utils/hooks/usePinch.js";
76
76
  import { useDebounce as Rt } from "./utils/hooks/useDebounce.js";
77
- import pr from "./components/ui/PasswordModal.js";
78
- import { approximateFraction as Bt } from "./utils/approximateFragtion.js";
79
- import { getScrollDistance as Me } from "./utils/getScrollDistance.js";
80
- import { getWordPositionInPage as hr } from "./utils/getWordPositionInPage.js";
81
- import { getThumbnailViewport as fr } from "./utils/getThumbnailViewport.js";
77
+ import ur from "./components/ui/PasswordModal.js";
78
+ import { approximateFraction as Vt } from "./utils/approximateFragtion.js";
79
+ import { getScrollDistance as ke } from "./utils/getScrollDistance.js";
80
+ import { getWordPositionInPage as pr } from "./utils/getWordPositionInPage.js";
81
+ import { getThumbnailViewport as hr } from "./utils/getThumbnailViewport.js";
82
82
  import { smoothScrollTo as ut } from "./utils/smoothScrollTo.js";
83
- import { appConsole as mr } from "./utils/appConsole.js";
84
- import { FileUploadTool as wn } from "./components/layout/toolbar/FileUploadTool.js";
85
- import { DarkModeTool as gr } from "./components/layout/toolbar/DarkModeTool.js";
86
- import { ThreeDotIcon as vr } from "./components/icons/ThreeDotIcon.js";
87
- import { c as wr, u as Lt, P as je, a as qe, b as Et, k as _r, e as br, i as Tr } from "./index-c9a2990a.js";
88
- import { D as Cr, u as pt } from "./index-808ea7bf.js";
89
- import { a as Pr, h as yr, u as Ir, F as Sr, b as xr, G as Je } from "./index-a48ec088.js";
90
- import { CloseIcon as Rr } from "./components/icons/CloseIcon.js";
91
- import { DocumentProperties as Lr } from "./components/layout/toolbar/DocumentProperties.js";
92
- import { RotateTool as Er } from "./components/layout/toolbar/RotateTool.js";
93
- import { ViewModeTool as Nr } from "./components/layout/toolbar/ViewModeTool.js";
94
- import { ScrollModeTool as Or } from "./components/layout/toolbar/ScrollModeTool.js";
95
- import { FileDownloadDefaultIcon as Dr } from "./components/icons/FileDownloadDefaultIcon.js";
96
- import { PrintDefaultTool as zr } from "./components/icons/PrintDefaultIcon.js";
97
- import { FullScreenTool as _n } from "./components/layout/toolbar/FullScreenTool.js";
98
- import { GoToDownIcon as bn } from "./components/icons/GoToDownIcon.js";
99
- import { SelectionModeTool as Ar } from "./components/layout/toolbar/SelectionModeTool.js";
100
- import { ZoomInIcon as Fr } from "./components/icons/ZoomInIcon.js";
101
- import { ZoomOutIcon as kr } from "./components/icons/ZoomOutIcon.js";
102
- import { isZoomOutDisabled as Mr, isZoomInDisabled as Wr } from "./utils/zoom.js";
103
- import { SearchIcon as Tn } from "./components/icons/SearchIcon.js";
104
- import { ClearIcon as Hr } from "./components/icons/ClearIcon.js";
105
- import { InfoIcon as Zt } from "./components/icons/InfoIcon.js";
106
- const Cn = () => {
107
- const { viewMode: t } = He(), { scrollMode: e } = ze(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = nt(), { setFocusedPage: a } = he(), c = H(), { columnCount: d } = mn(), { widths: l, heights: f } = Ze(), m = H(e), C = H(t), h = H(d), { targetScrollPage: w } = gn();
83
+ import { appConsole as fr } from "./utils/appConsole.js";
84
+ import { FileUploadTool as vn } from "./components/layout/toolbar/FileUploadTool.js";
85
+ import { DarkModeTool as mr } from "./components/layout/toolbar/DarkModeTool.js";
86
+ import { ThreeDotIcon as gr } from "./components/icons/ThreeDotIcon.js";
87
+ import { c as vr, u as Lt, P as je, a as Ge, b as Et, k as wr, e as _r, i as br } from "./index-c9a2990a.js";
88
+ import { D as Tr, u as pt } from "./index-808ea7bf.js";
89
+ import { a as Cr, h as Pr, u as yr, F as Ir, b as Sr, G as Je } from "./index-a48ec088.js";
90
+ import { CloseIcon as xr } from "./components/icons/CloseIcon.js";
91
+ import { DocumentProperties as Rr } from "./components/layout/toolbar/DocumentProperties.js";
92
+ import { RotateTool as Lr } from "./components/layout/toolbar/RotateTool.js";
93
+ import { ViewModeTool as Er } from "./components/layout/toolbar/ViewModeTool.js";
94
+ import { ScrollModeTool as Nr } from "./components/layout/toolbar/ScrollModeTool.js";
95
+ import { FileDownloadDefaultIcon as Or } from "./components/icons/FileDownloadDefaultIcon.js";
96
+ import { PrintDefaultTool as Dr } from "./components/icons/PrintDefaultIcon.js";
97
+ import { FullScreenTool as wn } from "./components/layout/toolbar/FullScreenTool.js";
98
+ import { GoToDownIcon as _n } from "./components/icons/GoToDownIcon.js";
99
+ import { SelectionModeTool as zr } from "./components/layout/toolbar/SelectionModeTool.js";
100
+ import { ZoomInIcon as Ar } from "./components/icons/ZoomInIcon.js";
101
+ import { ZoomOutIcon as Fr } from "./components/icons/ZoomOutIcon.js";
102
+ import { isZoomOutDisabled as Mr, isZoomInDisabled as kr } from "./utils/zoom.js";
103
+ import { SearchIcon as bn } from "./components/icons/SearchIcon.js";
104
+ import { ClearIcon as Wr } from "./components/icons/ClearIcon.js";
105
+ import { InfoIcon as Bt } from "./components/icons/InfoIcon.js";
106
+ const Tn = () => {
107
+ const { viewMode: t } = He(), { scrollMode: e } = ze(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = nt(), { setFocusedPage: a } = he(), l = H(), { columnCount: d } = fn(), { widths: c, heights: m } = Ze(), f = H(e), C = H(t), p = H(d), { targetScrollPage: _ } = mn();
108
108
  D(() => {
109
- n != null && n.scrollToItem && (c.current = n);
109
+ n != null && n.scrollToItem && (l.current = n);
110
110
  }, [n]), D(() => {
111
- m.current = e, C.current = t;
111
+ f.current = e, C.current = t;
112
112
  }, [e, t]);
113
113
  const P = E(
114
114
  (v, I) => {
@@ -116,12 +116,12 @@ const Cn = () => {
116
116
  return;
117
117
  const g = Math.ceil(v / 2) * 2 - 1;
118
118
  if (v === g + 1) {
119
- const p = {
120
- left: l[g],
119
+ const h = {
120
+ left: c[g],
121
121
  top: 0
122
122
  };
123
123
  return new Promise(
124
- (s) => ut(o, p, s)
124
+ (s) => ut(o, h, s)
125
125
  );
126
126
  }
127
127
  const u = {
@@ -133,36 +133,36 @@ const Cn = () => {
133
133
  behavior: I
134
134
  });
135
135
  },
136
- [o, l, ut]
136
+ [o, c, ut]
137
137
  );
138
138
  return D(() => {
139
- m.current = e, C.current = t;
139
+ f.current = e, C.current = t;
140
140
  }, [e, t]), D(() => {
141
- h.current = d;
141
+ p.current = d;
142
142
  }, [d]), { scrollToPage: E(
143
143
  (v, I = "smooth") => {
144
144
  a(v);
145
145
  const g = v - 1;
146
- let u = g, p = 0;
147
- if (C.current === Oe.DUAL_PAGE && m.current === re.PAGE_SCROLLING) {
146
+ let u = g, h = 0;
147
+ if (C.current === Oe.DUAL_PAGE && f.current === ie.PAGE_SCROLLING) {
148
148
  P(v, I);
149
149
  return;
150
150
  }
151
- if (m.current === re.PAGE_SCROLLING) {
151
+ if (f.current === ie.PAGE_SCROLLING) {
152
152
  a(v);
153
153
  return;
154
154
  }
155
- if (!c.current || !r)
155
+ if (!l.current || !r)
156
156
  return;
157
157
  const s = r;
158
- I === "smooth" && (w.current = v);
159
- const { columnsWidth: _, rowsHeight: b } = xt(
160
- { widths: l, heights: f },
158
+ I === "smooth" && (_.current = v);
159
+ const { columnsWidth: b, rowsHeight: T } = xt(
160
+ { widths: c, heights: m },
161
161
  d
162
162
  );
163
- if (m.current === re.HORIZONTAL_SCROLLING) {
164
- p = g;
165
- const S = Me(_, p), R = {
163
+ if (f.current === ie.HORIZONTAL_SCROLLING) {
164
+ h = g;
165
+ const S = ke(b, h), R = {
166
166
  left: Math.floor(S),
167
167
  top: 0
168
168
  };
@@ -172,8 +172,8 @@ const Cn = () => {
172
172
  });
173
173
  }
174
174
  if (C.current === Oe.DUAL_PAGE) {
175
- p = g % 2, u = Math.floor(g / 2);
176
- const R = Me(_, p), L = Me(b, u), N = {
175
+ h = g % 2, u = Math.floor(g / 2);
176
+ const R = ke(b, h), L = ke(T, u), N = {
177
177
  left: Math.floor(R),
178
178
  top: Math.floor(L)
179
179
  };
@@ -182,7 +182,7 @@ const Cn = () => {
182
182
  behavior: I
183
183
  });
184
184
  }
185
- const y = Me(b, u), x = {
185
+ const y = ke(T, u), x = {
186
186
  left: 0,
187
187
  top: Math.floor(y)
188
188
  };
@@ -197,50 +197,50 @@ const Cn = () => {
197
197
  P,
198
198
  a,
199
199
  ut,
200
- f,
201
- l
200
+ m,
201
+ c
202
202
  ]
203
203
  ) };
204
- }, $r = (t = 1) => {
205
- const [e, n] = $(t), [r, o] = $(0), { scrollToPage: a } = Cn(), c = H(1), { viewMode: d } = He(), { scrollMode: l } = ze(), { widths: f } = Ze(), { pagesRef: m } = Ce(), C = Rt(e, 100), h = E(
204
+ }, Hr = (t = 1) => {
205
+ const [e, n] = $(t), [r, o] = $(0), { scrollToPage: a } = Tn(), l = H(1), { viewMode: d } = He(), { scrollMode: c } = ze(), { widths: m } = Ze(), { pagesRef: f } = Ce(), C = Rt(e, 100), p = E(
206
206
  (u) => {
207
207
  if (!/^[0-9]*$/g.test(u.toString()) || !u)
208
- return { success: !1, currentPage: c.current };
208
+ return { success: !1, currentPage: l.current };
209
209
  const s = +u;
210
- return s < 0 || s > r ? { success: !1, currentPage: c.current } : (n(s), c.current = s, { success: !0, currentPage: +u });
210
+ return s < 0 || s > r ? { success: !1, currentPage: l.current } : (n(s), l.current = s, { success: !0, currentPage: +u });
211
211
  },
212
212
  [r]
213
- ), w = E(h, [h]), P = E(
213
+ ), _ = E(p, [p]), P = E(
214
214
  (u) => {
215
- const p = h(u);
216
- return p.success && a(p.currentPage), p;
215
+ const h = p(u);
216
+ return h.success && a(h.currentPage), h;
217
217
  },
218
- [h, a]
219
- ), T = E((u) => {
220
- const p = u % 2 === 1;
221
- if (!m || p)
218
+ [p, a]
219
+ ), w = E((u) => {
220
+ const h = u % 2 === 1;
221
+ if (!f || h)
222
222
  return !1;
223
- const s = p ? f[u] : f[u - 1], _ = p ? f[u + 1] : f[u];
224
- return d === Oe.DUAL_PAGE && s + _ < m.clientWidth;
225
- }, [d, f, m, r]), v = E(() => {
223
+ const s = h ? m[u] : m[u - 1], b = h ? m[u + 1] : m[u];
224
+ return d === Oe.DUAL_PAGE && s + b < f.clientWidth;
225
+ }, [d, m, f, r]), v = E(() => {
226
226
  let u = e - 1;
227
- T(u) && (u = e - 2), P(u);
228
- }, [P, e, d, l, T]), I = M(() => d === Oe.DUAL_PAGE && l === re.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, d, l]), g = E(() => {
227
+ w(u) && (u = e - 2), P(u);
228
+ }, [P, e, d, c, w]), I = k(() => d === Oe.DUAL_PAGE && c === ie.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, d, c]), g = E(() => {
229
229
  if (I)
230
230
  return;
231
231
  let u = e + 1;
232
- T(u) && (u = e + 2), P(u);
233
- }, [P, e, T, d, l, I]);
232
+ w(u) && (u = e + 2), P(u);
233
+ }, [P, e, w, d, c, I]);
234
234
  return {
235
235
  focusedPage: C,
236
236
  totalPages: r,
237
- setFocusedPage: w,
237
+ setFocusedPage: _,
238
238
  setTotalPages: o,
239
239
  nextPage: g,
240
240
  prevPage: v,
241
241
  goToPage: P
242
242
  };
243
- }, Pn = Ve({
243
+ }, Cn = Ve({
244
244
  focusedPage: 0,
245
245
  setFocusedPage: (t) => {
246
246
  },
@@ -253,139 +253,139 @@ const Cn = () => {
253
253
  nextPage: () => {
254
254
  }
255
255
  }), he = () => {
256
- const t = Be(Pn);
257
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && mr.error("Please use this hooks inside children component of RPProvider"), t;
258
- }, mc = ({ children: t }) => {
259
- const { pdf: e } = ie(), { setCurrentPage: n } = No(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: d, nextPage: l, prevPage: f } = $r();
256
+ const t = Be(Cn);
257
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && fr.error("Please use this hooks inside children component of RPProvider"), t;
258
+ }, fc = ({ children: t }) => {
259
+ const { pdf: e } = re(), { setCurrentPage: n } = Eo(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: l, goToPage: d, nextPage: c, prevPage: m } = Hr();
260
260
  return D(() => {
261
- e != null && e.numPages && (c(e.numPages), a(1));
262
- }, [e, c, a]), D(() => {
261
+ e != null && e.numPages && (l(e.numPages), a(1));
262
+ }, [e, l, a]), D(() => {
263
263
  n(r);
264
264
  }, [r, n]), /* @__PURE__ */ i(
265
- Pn.Provider,
265
+ Cn.Provider,
266
266
  {
267
267
  value: {
268
268
  focusedPage: r,
269
269
  totalPages: o,
270
270
  setFocusedPage: a,
271
- setTotalPages: c,
272
- nextPage: l,
273
- prevPage: f,
271
+ setTotalPages: l,
272
+ nextPage: c,
273
+ prevPage: m,
274
274
  goToPage: d
275
275
  },
276
276
  children: t
277
277
  }
278
278
  );
279
- }, Gr = () => {
280
- const { pdf: t, pages: e } = ie(), [n, r] = $({
279
+ }, $r = () => {
280
+ const { pdf: t, pages: e } = re(), [n, r] = $({
281
281
  loadedPages: 0,
282
282
  totalPages: 0,
283
283
  percentage: 0
284
- }), [o, a] = $(!1), [c, d] = $(!1), [l, f] = $(null), m = H(!1);
284
+ }), [o, a] = $(!1), [l, d] = $(!1), [c, m] = $(null), f = H(!1);
285
285
  D(() => {
286
- m.current;
287
- }, [m]);
286
+ f.current;
287
+ }, [f]);
288
288
  const C = E(() => {
289
289
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
290
290
  const u = document.querySelector(".rp-print-zone");
291
291
  u && u.remove();
292
- }, []), h = E(() => {
293
- m.current = !1, a(!1), d(!1), f(null), r({
292
+ }, []), p = E(() => {
293
+ f.current = !1, a(!1), d(!1), m(null), r({
294
294
  loadedPages: 0,
295
295
  totalPages: 0,
296
296
  percentage: 0
297
297
  });
298
- }, []), w = () => {
299
- m.current = !0;
298
+ }, []), _ = () => {
299
+ f.current = !0;
300
300
  }, P = async ({
301
301
  scratchCanvas: u,
302
- pdfDocument: p,
302
+ pdfDocument: h,
303
303
  pageNumber: s,
304
- viewerPdfPage: _,
305
- printResolution: b,
304
+ viewerPdfPage: b,
305
+ printResolution: T,
306
306
  optionalContentConfigPromise: y,
307
307
  printAnnotationStoragePromise: x
308
308
  }) => {
309
- if (m.current) {
310
- h();
309
+ if (f.current) {
310
+ p();
311
311
  return;
312
312
  }
313
- const S = b / jo.PDF;
314
- u.width = Math.floor(_.width * S), u.height = Math.floor(_.height * S);
313
+ const S = T / Zo.PDF;
314
+ u.width = Math.floor(b.width * S), u.height = Math.floor(b.height * S);
315
315
  const R = u.getContext("2d");
316
316
  R.save(), R.fillStyle = "rgb(255, 255, 255)", R.fillRect(0, 0, u.width, u.height), R.restore();
317
317
  const [L, N] = await Promise.all([
318
- p.getPage(s),
318
+ h.getPage(s),
319
319
  x
320
320
  ]);
321
- if (m.current) {
322
- h();
321
+ if (f.current) {
322
+ p();
323
323
  return;
324
324
  }
325
- const k = {
325
+ const M = {
326
326
  canvas: u,
327
327
  canvasContext: R,
328
328
  transform: [S, 0, 0, S, 0, 0],
329
- viewport: L.getViewport({ scale: 1, rotation: _.rotation }),
329
+ viewport: L.getViewport({ scale: 1, rotation: b.rotation }),
330
330
  intent: "print",
331
- annotationMode: Ko.ENABLE_STORAGE,
331
+ annotationMode: jo.ENABLE_STORAGE,
332
332
  optionalContentConfigPromise: y,
333
333
  printAnnotationStorage: N
334
334
  };
335
335
  try {
336
- return L.render(k).promise;
336
+ return L.render(M).promise;
337
337
  } catch (A) {
338
- throw A instanceof Xo || console.error(A), A;
338
+ throw A instanceof Ko || console.error(A), A;
339
339
  }
340
- }, T = E(() => {
340
+ }, w = E(() => {
341
341
  const u = window.print;
342
- return new Promise((p) => {
342
+ return new Promise((h) => {
343
343
  const s = (y) => {
344
344
  setTimeout(() => {
345
345
  u.call(window), setTimeout(() => y(), 20);
346
346
  }, 0);
347
347
  };
348
348
  if (document.querySelector(".rp-print-zone")) {
349
- s(p);
349
+ s(h);
350
350
  return;
351
351
  }
352
- const b = new MutationObserver(() => {
353
- document.querySelector(".rp-print-zone") && (s(p), b.disconnect());
352
+ const T = new MutationObserver(() => {
353
+ document.querySelector(".rp-print-zone") && (s(h), T.disconnect());
354
354
  });
355
- b.observe(document.body, { childList: !0, subtree: !0 });
355
+ T.observe(document.body, { childList: !0, subtree: !0 });
356
356
  });
357
357
  }, []), v = async (u) => {
358
- const p = document.createElement("img"), s = document.createElement("div");
359
- return s.classList.add("rp-print-page"), await new Promise((_, b) => {
358
+ const h = document.createElement("img"), s = document.createElement("div");
359
+ return s.classList.add("rp-print-page"), await new Promise((b, T) => {
360
360
  u.toBlob((y) => {
361
- y ? (p.src = URL.createObjectURL(y), p.onload = () => {
362
- URL.revokeObjectURL(p.src), _();
363
- }, p.onerror = b) : b(new Error("Failed to create blob"));
361
+ y ? (h.src = URL.createObjectURL(y), h.onload = () => {
362
+ URL.revokeObjectURL(h.src), b();
363
+ }, h.onerror = T) : T(new Error("Failed to create blob"));
364
364
  });
365
365
  }).catch(() => {
366
- }), s.appendChild(p), s;
367
- }, I = (u, p) => {
366
+ }), s.appendChild(h), s;
367
+ }, I = (u, h) => {
368
368
  const s = document.createElement("div");
369
369
  s.classList.add("rp-print-zone");
370
- const _ = document.createElement("style"), b = p.get(1);
371
- if (b) {
372
- const { width: y, height: x } = b == null ? void 0 : b.page.getViewport({ scale: 1 });
373
- _.innerHTML = `@page { size: ${y}px ${x}px }`;
370
+ const b = document.createElement("style"), T = h.get(1);
371
+ if (T) {
372
+ const { width: y, height: x } = T == null ? void 0 : T.page.getViewport({ scale: 1 });
373
+ b.innerHTML = `@page { size: ${y}px ${x}px }`;
374
374
  }
375
- return s.appendChild(_), s.append(...u), s;
375
+ return s.appendChild(b), s.append(...u), s;
376
376
  }, g = E(async () => {
377
377
  if (!t)
378
378
  return;
379
- h();
380
- const u = document.createElement("canvas"), p = [];
379
+ p();
380
+ const u = document.createElement("canvas"), h = [];
381
381
  try {
382
382
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
383
- const _ = t.getOptionalContentConfig({ intent: "print" }), b = Promise.resolve(
383
+ const b = t.getOptionalContentConfig({ intent: "print" }), T = Promise.resolve(
384
384
  t.annotationStorage.print ?? void 0
385
385
  ), y = e.size;
386
386
  for (const [S, R] of e) {
387
- if (m.current) {
388
- h();
387
+ if (f.current) {
388
+ p();
389
389
  return;
390
390
  }
391
391
  const L = R.page.getViewport({ scale: 1 });
@@ -395,49 +395,49 @@ const Cn = () => {
395
395
  pageNumber: S,
396
396
  viewerPdfPage: L,
397
397
  printResolution: 150,
398
- optionalContentConfigPromise: _,
399
- printAnnotationStoragePromise: b
400
- }), m.current) {
401
- h();
398
+ optionalContentConfigPromise: b,
399
+ printAnnotationStoragePromise: T
400
+ }), f.current) {
401
+ p();
402
402
  return;
403
403
  }
404
404
  const N = await v(u);
405
- p.push(N);
406
- const k = parseFloat((p.length / y * 100).toFixed(2));
405
+ h.push(N);
406
+ const M = parseFloat((h.length / y * 100).toFixed(2));
407
407
  r({
408
408
  loadedPages: S,
409
409
  totalPages: y,
410
- percentage: k
410
+ percentage: M
411
411
  });
412
412
  }
413
- if (m.current) {
414
- h();
413
+ if (f.current) {
414
+ p();
415
415
  return;
416
416
  }
417
- const x = I(p, e);
418
- document.body.appendChild(x), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await T();
417
+ const x = I(h, e);
418
+ document.body.appendChild(x), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await w();
419
419
  } catch (s) {
420
- d(!0), s instanceof Error && f(s);
420
+ d(!0), s instanceof Error && m(s);
421
421
  } finally {
422
422
  u.height = 0, u.width = 0;
423
423
  }
424
- }, [t, e, m]);
424
+ }, [t, e, f]);
425
425
  return D(() => {
426
426
  const u = () => {
427
- h(), C();
427
+ p(), C();
428
428
  };
429
429
  return window.addEventListener("afterprint", u, !0), () => {
430
430
  window.removeEventListener("afterprint", u, !0);
431
431
  };
432
- }, [C, h]), {
432
+ }, [C, p]), {
433
433
  print: g,
434
- cancel: w,
434
+ cancel: _,
435
435
  progress: n,
436
436
  isComplete: o,
437
- isError: c,
438
- error: l
437
+ isError: l,
438
+ error: c
439
439
  };
440
- }, yn = Ve({
440
+ }, Pn = Ve({
441
441
  print: () => {
442
442
  },
443
443
  cancel: () => {
@@ -454,58 +454,58 @@ const Cn = () => {
454
454
  console.error("Error in setOnError callback:", e);
455
455
  }
456
456
  }
457
- }), gc = ({ children: t }) => {
458
- const [e, n] = $(null), [r, o] = $(null), { print: a, cancel: c, progress: d, isComplete: l, isError: f, error: m } = Gr(), C = E((v) => {
457
+ }), mc = ({ children: t }) => {
458
+ const [e, n] = $(null), [r, o] = $(null), { print: a, cancel: l, progress: d, isComplete: c, isError: m, error: f } = $r(), C = E((v) => {
459
459
  v && typeof v == "function" && o(() => v);
460
- }, []), h = (v) => {
461
- m && v(m);
462
- }, w = E(
460
+ }, []), p = (v) => {
461
+ f && v(f);
462
+ }, _ = E(
463
463
  (v) => {
464
464
  n(() => v);
465
465
  },
466
466
  [d, e]
467
467
  );
468
468
  D(() => {
469
- l && r && P();
470
- }, [l, r]), D(() => {
471
- f && h((v) => {
469
+ c && r && P();
470
+ }, [c, r]), D(() => {
471
+ m && p((v) => {
472
472
  console.error(v);
473
473
  });
474
- }, [f]), D(() => {
474
+ }, [m]), D(() => {
475
475
  d && e && e(d);
476
476
  }, [d, e]);
477
477
  const P = () => {
478
478
  r && (r(), o(null));
479
- }, T = {
479
+ }, w = {
480
480
  print: a,
481
- cancel: c,
482
- setOnProgress: w,
481
+ cancel: l,
482
+ setOnProgress: _,
483
483
  setOnComplete: C,
484
- setOnError: h,
484
+ setOnError: p,
485
485
  progress: d
486
486
  };
487
- return /* @__PURE__ */ i(yn.Provider, { value: T, children: t });
487
+ return /* @__PURE__ */ i(Pn.Provider, { value: w, children: t });
488
488
  }, it = () => {
489
- const t = Be(yn);
489
+ const t = Be(Pn);
490
490
  if (!t)
491
491
  throw new Error("usePrintContext must be used within a PrintProvider");
492
492
  return t;
493
493
  }, qr = () => {
494
- const [t, e] = $({}), { pages: n } = ie(), r = M(() => Object.keys(t).length, [t]), o = E(
495
- (c) => {
494
+ const [t, e] = $({}), { pages: n } = re(), r = k(() => Object.keys(t).length, [t]), o = E(
495
+ (l) => {
496
496
  if (!n.size)
497
497
  return;
498
- const d = c > n.size ? n.size : c, f = Array.from(n.values()).slice(0, d).map((m) => {
499
- const { thumbnailViewport: C, scale: h } = fr(m.page, m.defaultRotation);
498
+ const d = l > n.size ? n.size : l, m = Array.from(n.values()).slice(0, d).map((f) => {
499
+ const { thumbnailViewport: C, scale: p } = hr(f.page, f.defaultRotation);
500
500
  return {
501
- scale: h,
502
- page: m.page,
501
+ scale: p,
502
+ page: f.page,
503
503
  loading: !0,
504
504
  viewport: C,
505
- defaultRotation: m.defaultRotation
505
+ defaultRotation: f.defaultRotation
506
506
  };
507
- }).reduce((m, C) => (m[C.page.pageNumber] = C, m), {});
508
- e(f);
507
+ }).reduce((f, C) => (f[C.page.pageNumber] = C, f), {});
508
+ e(m);
509
509
  },
510
510
  [n]
511
511
  );
@@ -513,13 +513,13 @@ const Cn = () => {
513
513
  o(10);
514
514
  }, [o]);
515
515
  const a = E(
516
- (c) => {
516
+ (l) => {
517
517
  if (!n)
518
518
  return;
519
- const d = n.get(c);
520
- d && e((l) => ({
521
- ...l,
522
- [c]: {
519
+ const d = n.get(l);
520
+ d && e((c) => ({
521
+ ...c,
522
+ [l]: {
523
523
  loading: !0,
524
524
  page: d.page,
525
525
  viewport: d.thumbnailViewport,
@@ -531,7 +531,7 @@ const Cn = () => {
531
531
  [n]
532
532
  );
533
533
  return { thumbnailPages: t, addPage: a, addToPage: o, thumbnailLength: r };
534
- }, In = Ve({
534
+ }, yn = Ve({
535
535
  thumbnailPages: {},
536
536
  addPage: (t) => {
537
537
  },
@@ -541,44 +541,44 @@ const Cn = () => {
541
541
  setActive: (t) => {
542
542
  },
543
543
  active: !1
544
- }), Sn = () => Be(In), vc = ({
544
+ }), In = () => Be(yn), gc = ({
545
545
  children: t,
546
546
  initialThumbnailsVisible: e
547
547
  }) => {
548
- const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = qr(), [c, d] = $(e);
548
+ const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = qr(), [l, d] = $(e);
549
549
  return /* @__PURE__ */ i(
550
- In.Provider,
550
+ yn.Provider,
551
551
  {
552
- value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a, active: c, setActive: d },
552
+ value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a, active: l, setActive: d },
553
553
  children: t
554
554
  }
555
555
  );
556
- }, Ur = (t = {}, e = "") => {
557
- const [n, r] = $(e), [o, a] = $(!1), { pdf: c, pages: d } = ie(), { widths: l, heights: f } = Ze(), m = H(!n), { currentZoom: C } = tt(), [h, w] = $([]), { setFocusedPage: P } = he(), { columnCount: T } = He(), { pageRotate: v } = ot(), [I, g] = $(0), { pageScrollElementRef: u, virtualScrollableElementRef: p } = nt(), { scrollMode: s } = ze(), { pagesRef: _ } = Ce(), [b, y] = $(null), x = H({}), S = H(0), R = M(() => I === 0 ? null : h[I - 1], [I, h]), L = M(() => h.length, [h]), N = E(
556
+ }, Gr = (t = {}, e = "") => {
557
+ const [n, r] = $(e), [o, a] = $(!1), { pdf: l, pages: d } = re(), { widths: c, heights: m } = Ze(), f = H(!n), { currentZoom: C } = tt(), [p, _] = $([]), { setFocusedPage: P } = he(), { columnCount: w } = He(), { pageRotate: v } = ot(), [I, g] = $(0), { pageScrollElementRef: u, virtualScrollableElementRef: h } = nt(), { scrollMode: s } = ze(), { pagesRef: b } = Ce(), [T, y] = $(null), x = H({}), S = H(0), R = k(() => I === 0 ? null : p[I - 1], [I, p]), L = k(() => p.length, [p]), N = E(
558
558
  (F) => {
559
559
  if (F === 0)
560
560
  return;
561
- const O = h[F - 1];
561
+ const O = p[F - 1];
562
562
  if (!O || !d)
563
563
  return;
564
- const q = p || u;
565
- if (!q || !_)
564
+ const G = h || u;
565
+ if (!G || !b)
566
566
  return;
567
- const G = d.get(O.page);
568
- if (s === re.PAGE_SCROLLING && P(O.page), !G)
567
+ const q = d.get(O.page);
568
+ if (s === ie.PAGE_SCROLLING && P(O.page), !q)
569
569
  return;
570
570
  let V = 0, B = 0;
571
- if (s === re.VERTICAL_SCROLLING) {
572
- const ce = O.page - 1, ae = T, we = ce % ae, _e = Math.floor(ce / ae);
573
- V = Me(f, _e), B = Me(l, we);
571
+ if (s === ie.VERTICAL_SCROLLING) {
572
+ const ce = O.page - 1, ae = w, we = ce % ae, _e = Math.floor(ce / ae);
573
+ V = ke(m, _e), B = ke(c, we);
574
574
  }
575
- s === re.HORIZONTAL_SCROLLING && (B = l.slice(0, O.page - 1).reduce((ce, ae) => ce + ae, 0));
575
+ s === ie.HORIZONTAL_SCROLLING && (B = c.slice(0, O.page - 1).reduce((ce, ae) => ce + ae, 0));
576
576
  const ee = {
577
- height: f[O.page - 1],
578
- width: l[O.page - 1]
579
- }, U = v[O.page], { leftInPage: Q, topInPage: Y } = hr(
577
+ height: m[O.page - 1],
578
+ width: c[O.page - 1]
579
+ }, U = v[O.page], { leftInPage: Q, topInPage: Y } = pr(
580
580
  ee,
581
- _,
581
+ b,
582
582
  O.rect,
583
583
  C,
584
584
  U
@@ -586,7 +586,7 @@ const Cn = () => {
586
586
  left: Math.max(te, 0),
587
587
  top: Math.max(ne, 0)
588
588
  };
589
- q.scrollTo({
589
+ G.scrollTo({
590
590
  ...J,
591
591
  behavior: "smooth"
592
592
  });
@@ -594,19 +594,19 @@ const Cn = () => {
594
594
  [
595
595
  d,
596
596
  P,
597
- l,
598
- f,
597
+ c,
598
+ m,
599
599
  s,
600
- p,
600
+ h,
601
601
  u,
602
- _,
603
- h
602
+ b,
603
+ p
604
604
  ]
605
605
  );
606
606
  D(() => {
607
607
  I && N(I);
608
608
  }, [I]);
609
- const k = E(() => {
609
+ const M = E(() => {
610
610
  g((F) => {
611
611
  let O;
612
612
  return L ? F + 1 > L ? O = 1 : O = F + 1 : O = 0, S.current = O, O;
@@ -619,49 +619,49 @@ const Cn = () => {
619
619
  }, [L, N]), z = E(async (F) => {
620
620
  if (!F)
621
621
  return {};
622
- const O = F.numPages, q = {};
623
- for (let G = 1; G <= O; G++) {
624
- if (m.current)
622
+ const O = F.numPages, G = {};
623
+ for (let q = 1; q <= O; q++) {
624
+ if (f.current)
625
625
  throw "close pop over";
626
- const V = await F.getPage(G);
627
- q[G.toString()] = await V.getTextContent();
626
+ const V = await F.getPage(q);
627
+ G[q.toString()] = await V.getTextContent();
628
628
  }
629
- return q;
629
+ return G;
630
630
  }, []);
631
631
  return D(() => {
632
632
  if (!n) {
633
- m.current = !0, w([]), g(0);
633
+ f.current = !0, _([]), g(0);
634
634
  return;
635
635
  }
636
- m.current = !1, a(!0), w([]), g(0), z(c).then((F) => {
636
+ f.current = !1, a(!0), _([]), g(0), z(l).then((F) => {
637
637
  x.current = F;
638
- const q = Object.keys(F).reduce((G, V) => {
639
- const B = Po(
638
+ const G = Object.keys(F).reduce((q, V) => {
639
+ const B = Co(
640
640
  [n],
641
641
  F[V],
642
642
  Number(V) - 1,
643
643
  t
644
644
  ).map((ee, U) => ({ ...ee, page: Number(V), pageMatchIdx: U }));
645
- return [...G, ...B];
645
+ return [...q, ...B];
646
646
  }, []);
647
- w(q), g(q.length ? 1 : 0);
647
+ _(G), g(G.length ? 1 : 0);
648
648
  }).catch(() => {
649
- w([]), g(0);
649
+ _([]), g(0);
650
650
  }).finally(() => a(!1));
651
- }, [n, z, c, t]), {
651
+ }, [n, z, l, t]), {
652
652
  search: n,
653
653
  setSearch: r,
654
654
  loading: o,
655
- matches: h,
655
+ matches: p,
656
656
  totalMatches: L,
657
657
  currentMatchPosition: I,
658
658
  currentMatch: R,
659
- nextMatch: k,
659
+ nextMatch: M,
660
660
  prevMatch: A,
661
- currentMatchElement: b,
661
+ currentMatchElement: T,
662
662
  setCurrentMatchElement: y
663
663
  };
664
- }, xn = Ve({
664
+ }, Sn = Ve({
665
665
  search: "",
666
666
  setSearch: (t) => {
667
667
  },
@@ -679,71 +679,71 @@ const Cn = () => {
679
679
  currentMatchElement: null,
680
680
  setCurrentMatchElement: (t) => {
681
681
  }
682
- }), wc = ({
682
+ }), vc = ({
683
683
  children: t,
684
684
  initialSearch: e
685
685
  }) => {
686
686
  const [n, r] = $({}), {
687
687
  loading: o,
688
688
  setSearch: a,
689
- totalMatches: c,
689
+ totalMatches: l,
690
690
  currentMatchPosition: d,
691
- currentMatch: l,
692
- search: f,
693
- matches: m,
691
+ currentMatch: c,
692
+ search: m,
693
+ matches: f,
694
694
  nextMatch: C,
695
- prevMatch: h,
696
- currentMatchElement: w,
695
+ prevMatch: p,
696
+ currentMatchElement: _,
697
697
  setCurrentMatchElement: P
698
- } = Ur(n, e);
698
+ } = Gr(n, e);
699
699
  return /* @__PURE__ */ i(
700
- xn.Provider,
700
+ Sn.Provider,
701
701
  {
702
702
  value: {
703
703
  searchOptions: n,
704
704
  setSearchOptions: r,
705
705
  loading: o,
706
706
  setSearch: a,
707
- totalMatches: c,
707
+ totalMatches: l,
708
708
  currentMatchPosition: d,
709
- currentMatch: l,
709
+ currentMatch: c,
710
710
  nextMatch: C,
711
- prevMatch: h,
712
- search: f,
713
- matches: m,
714
- currentMatchElement: w,
711
+ prevMatch: p,
712
+ search: m,
713
+ matches: f,
714
+ currentMatchElement: _,
715
715
  setCurrentMatchElement: P
716
716
  },
717
717
  children: t
718
718
  }
719
719
  );
720
- }, Nt = () => Be(xn), Rn = Ve(null), _c = ({ children: t }) => {
721
- const e = H(!1), [n, r] = $([]), o = E((l) => {
722
- r((f) => [...f, { id: l.page.pageNumber.toString(), data: l, priority: 0 }]);
723
- }, []), a = M(() => new Lo(o), [o]), { focusedPage: c } = he(), d = E((l) => (e.current = !0, Eo(
724
- l.data.page,
725
- l.data.canvasElem,
726
- l.data.options
720
+ }, Nt = () => Be(Sn), xn = Ve(null), wc = ({ children: t }) => {
721
+ const e = H(!1), [n, r] = $([]), o = E((c) => {
722
+ r((m) => [...m, { id: c.page.pageNumber.toString(), data: c, priority: 0 }]);
723
+ }, []), a = k(() => new Ro(o), [o]), { focusedPage: l } = he(), d = E((c) => (e.current = !0, Lo(
724
+ c.data.page,
725
+ c.data.canvasElem,
726
+ c.data.options
727
727
  ).promise.then(() => {
728
- l.data.canvasElem.hidden = !1;
728
+ c.data.canvasElem.hidden = !1;
729
729
  }).finally(() => {
730
- l.data.onLoaded && l.data.onLoaded();
730
+ c.data.onLoaded && c.data.onLoaded();
731
731
  })), []);
732
732
  return D(() => {
733
- c && (a.changePagePriority(`^page-${c}`, 0), a.changePagePriority(`^thumbnail-${c}`, 1));
734
- }, [c]), D(() => {
733
+ l && (a.changePagePriority(`^page-${l}`, 0), a.changePagePriority(`^thumbnail-${l}`, 1));
734
+ }, [l]), D(() => {
735
735
  if (a.isEmpty() || e.current)
736
736
  return;
737
- const l = () => {
738
- const f = a.dequeue();
739
- f ? d(f).finally(() => {
740
- l();
737
+ const c = () => {
738
+ const m = a.dequeue();
739
+ m ? d(m).finally(() => {
740
+ c();
741
741
  }) : (e.current = !1, r(a.peekAll()));
742
742
  };
743
- l();
744
- }, [a, d, n]), /* @__PURE__ */ i(Rn.Provider, { value: a, children: t });
745
- }, Ln = () => {
746
- const t = Be(Rn);
743
+ c();
744
+ }, [a, d, n]), /* @__PURE__ */ i(xn.Provider, { value: a, children: t });
745
+ }, Rn = () => {
746
+ const t = Be(xn);
747
747
  if (!t)
748
748
  throw new Error("RenderQueue not found");
749
749
  return t;
@@ -762,24 +762,24 @@ const Cn = () => {
762
762
  "rp-page-wrapper": "_rp-page-wrapper_ii91u_1",
763
763
  "rp-page": "_rp-page_ii91u_1",
764
764
  "rp-loader-wrapper": "_rp-loader-wrapper_ii91u_15"
765
- }, Vr = (t) => {
766
- const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = H(null), { pages: a } = ie(), { pageRotate: c } = ot(), d = H(), { currentZoom: l } = tt(), f = Ln(), m = H(`page-${e}`);
765
+ }, Ur = (t) => {
766
+ const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = H(null), { pages: a } = re(), { pageRotate: l } = ot(), d = H(), { currentZoom: c } = tt(), m = Rn(), f = H(`page-${e}`);
767
767
  return D(() => {
768
- if (!a || l === 0)
768
+ if (!a || c === 0)
769
769
  return;
770
770
  const C = a.get(e);
771
771
  if (o.current && C) {
772
- const h = o.current;
773
- h.hidden = !0;
774
- const w = d.current;
775
- w && w.cancel(), r && r(), f.enqueue(
776
- m.current,
772
+ const p = o.current;
773
+ p.hidden = !0;
774
+ const _ = d.current;
775
+ _ && _.cancel(), r && r(), m.enqueue(
776
+ f.current,
777
777
  {
778
778
  page: C.page,
779
- canvasElem: h,
779
+ canvasElem: p,
780
780
  options: {
781
- scale: l,
782
- rotate: c[e],
781
+ scale: c,
782
+ rotate: l[e],
783
783
  renderForms: !0
784
784
  },
785
785
  onLoaded: n
@@ -788,78 +788,78 @@ const Cn = () => {
788
788
  );
789
789
  }
790
790
  return () => {
791
- f.removeQueue(m.current);
791
+ m.removeQueue(f.current);
792
792
  };
793
- }, [a, e, c, l, r, n, f]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
794
- }, Br = "_selecting_ppr5g_10", Zr = "_markedContent_ppr5g_33", be = {
793
+ }, [a, e, l, c, r, n, m]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
794
+ }, Vr = "_selecting_ppr5g_10", Br = "_markedContent_ppr5g_33", be = {
795
795
  "rp-text-layer": "_rp-text-layer_ppr5g_1",
796
- selecting: Br,
797
- markedContent: Zr,
796
+ selecting: Vr,
797
+ markedContent: Br,
798
798
  "rp-text-layer-text": "_rp-text-layer-text_ppr5g_52"
799
- }, jr = (t) => {
800
- const { pageNumber: e } = t, { pages: n } = ie(), r = H(null), { matches: o, currentMatch: a, setCurrentMatchElement: c } = Nt(), [d, l] = $(
799
+ }, Zr = (t) => {
800
+ const { pageNumber: e } = t, { pages: n } = re(), r = H(null), { matches: o, currentMatch: a, setCurrentMatchElement: l } = Nt(), [d, c] = $(
801
801
  []
802
- ), f = H(), m = H(), C = H([]), h = M(() => o.filter((u) => u.pageIndex === e - 1), [o, e]), w = E(
803
- (u, p, s = !1) => {
804
- if (s && yo(u, p), !h.length) {
805
- C.current = [], l([]);
802
+ ), m = H(), f = H(), C = H([]), p = k(() => o.filter((u) => u.pageIndex === e - 1), [o, e]), _ = E(
803
+ (u, h, s = !1) => {
804
+ if (s && Po(u, h), !p.length) {
805
+ C.current = [], c([]);
806
806
  return;
807
807
  }
808
- const _ = Io(h, u, p);
809
- l(_);
808
+ const b = yo(p, u, h);
809
+ c(b);
810
810
  },
811
- [h]
812
- ), P = H(), T = H(!1), v = E(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
811
+ [p]
812
+ ), P = H(), w = H(!1), v = E(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
813
813
  D(() => ((() => {
814
814
  if (P.current)
815
815
  return;
816
816
  P.current = new AbortController();
817
- const { signal: p } = P.current, s = () => {
818
- v().forEach((b) => {
819
- const y = b.querySelector(".endOfContent");
820
- y && (b.appendChild(y), y.style.width = "", y.style.height = "", b.classList.remove(be.selecting));
817
+ const { signal: h } = P.current, s = () => {
818
+ v().forEach((T) => {
819
+ const y = T.querySelector(".endOfContent");
820
+ y && (T.appendChild(y), y.style.width = "", y.style.height = "", T.classList.remove(be.selecting));
821
821
  });
822
822
  };
823
823
  document.addEventListener(
824
824
  "pointerdown",
825
825
  () => {
826
- T.current = !0;
826
+ w.current = !0;
827
827
  },
828
- { signal: p }
828
+ { signal: h }
829
829
  ), document.addEventListener(
830
830
  "pointerup",
831
831
  () => {
832
- T.current = !1, s();
832
+ w.current = !1, s();
833
833
  },
834
- { signal: p }
834
+ { signal: h }
835
835
  ), window.addEventListener(
836
836
  "blur",
837
837
  () => {
838
- T.current = !1, s();
838
+ w.current = !1, s();
839
839
  },
840
- { signal: p }
840
+ { signal: h }
841
841
  ), document.addEventListener(
842
842
  "keyup",
843
843
  () => {
844
- T.current || s();
844
+ w.current || s();
845
845
  },
846
- { signal: p }
846
+ { signal: h }
847
847
  );
848
- let _ = null;
848
+ let b = null;
849
849
  document.addEventListener(
850
850
  "selectionchange",
851
851
  () => {
852
- var k, A;
853
- const b = document.getSelection();
854
- if (!b)
852
+ var M, A;
853
+ const T = document.getSelection();
854
+ if (!T)
855
855
  return;
856
- if (b.rangeCount === 0) {
856
+ if (T.rangeCount === 0) {
857
857
  s();
858
858
  return;
859
859
  }
860
860
  const y = /* @__PURE__ */ new Set();
861
- for (let z = 0; z < b.rangeCount; z++) {
862
- const F = b.getRangeAt(z);
861
+ for (let z = 0; z < T.rangeCount; z++) {
862
+ const F = T.getRangeAt(z);
863
863
  v().forEach((O) => {
864
864
  F.intersectsNode(O) && !y.has(O) && y.add(O);
865
865
  });
@@ -872,19 +872,19 @@ const Cn = () => {
872
872
  F && (z.appendChild(F), F.style.width = "", F.style.height = "", z.classList.remove(be.selecting));
873
873
  }
874
874
  });
875
- const x = b.getRangeAt(0);
876
- let R = _ && (x.compareBoundaryPoints(Range.END_TO_END, _) === 0 || x.compareBoundaryPoints(Range.START_TO_END, _) === 0) ? x.startContainer : x.endContainer;
875
+ const x = T.getRangeAt(0);
876
+ let R = b && (x.compareBoundaryPoints(Range.END_TO_END, b) === 0 || x.compareBoundaryPoints(Range.START_TO_END, b) === 0) ? x.startContainer : x.endContainer;
877
877
  R.nodeType === Node.TEXT_NODE && (R = R.parentNode);
878
- const L = (k = R.parentElement) == null ? void 0 : k.closest(
878
+ const L = (M = R.parentElement) == null ? void 0 : M.closest(
879
879
  be["rp-text-layer"]
880
880
  ), N = L == null ? void 0 : L.querySelector(".endOfContent");
881
- N && L && (N.style.width = L.style.width, N.style.height = L.style.height, (A = R.parentElement) == null || A.insertBefore(N, R.nextSibling)), _ = x.cloneRange();
881
+ N && L && (N.style.width = L.style.width, N.style.height = L.style.height, (A = R.parentElement) == null || A.insertBefore(N, R.nextSibling)), b = x.cloneRange();
882
882
  },
883
- { signal: p }
883
+ { signal: h }
884
884
  );
885
885
  })(), () => {
886
- var p;
887
- (p = P.current) == null || p.abort(), P.current = void 0;
886
+ var h;
887
+ (h = P.current) == null || h.abort(), P.current = void 0;
888
888
  }), [v]);
889
889
  const I = E(() => {
890
890
  r.current && r.current.classList.add(be.selecting);
@@ -896,49 +896,49 @@ const Cn = () => {
896
896
  s.classList.remove("selected");
897
897
  }), !d.length || !a || a.pageIndex !== e - 1)
898
898
  return;
899
- const u = h.findIndex(
899
+ const u = p.findIndex(
900
900
  (s) => JSON.stringify(s) === JSON.stringify(a)
901
901
  );
902
902
  if (u === -1)
903
903
  return;
904
- const p = d.filter((s) => s.index === u);
905
- p.length && (C.current = p.map((s) => s.element), c(p[0].element), p.forEach((s) => {
904
+ const h = d.filter((s) => s.index === u);
905
+ h.length && (C.current = h.map((s) => s.element), l(h[0].element), h.forEach((s) => {
906
906
  s.element.classList.add("selected");
907
907
  }));
908
- }, [a, d, h]), D(() => {
908
+ }, [a, d, p]), D(() => {
909
909
  const u = n.get(e);
910
910
  if (!u || !r.current)
911
911
  return;
912
- const p = r.current;
913
- return f.current && f.current.cancel(), u.page.getTextContent().then((s) => {
914
- const _ = u.page.getViewport({ scale: 1 });
915
- return f.current = new Zo.TextLayer({
916
- viewport: _,
912
+ const h = r.current;
913
+ return m.current && m.current.cancel(), u.page.getTextContent().then((s) => {
914
+ const b = u.page.getViewport({ scale: 1 });
915
+ return m.current = new Bo.TextLayer({
916
+ viewport: b,
917
917
  textContentSource: s,
918
- container: p
919
- }), m.current = s, p && (p.innerText = ""), f.current.render();
918
+ container: h
919
+ }), f.current = s, h && (h.innerText = ""), m.current.render();
920
920
  }).then(() => {
921
921
  var y, x;
922
- [].slice.call(p.children).forEach((S) => {
922
+ [].slice.call(h.children).forEach((S) => {
923
923
  S.classList.add(be["rp-text-layer-text"]), S.setAttribute("data-rp", "rp-text-layer-text");
924
924
  });
925
- const _ = (y = f.current) == null ? void 0 : y.textDivs;
926
- _ && m.current && w(m.current, _);
927
- const b = document.createElement("div");
928
- b.className = "endOfContent", (x = r.current) == null || x.appendChild(b);
925
+ const b = (y = m.current) == null ? void 0 : y.textDivs;
926
+ b && f.current && _(f.current, b);
927
+ const T = document.createElement("div");
928
+ T.className = "endOfContent", (x = r.current) == null || x.appendChild(T);
929
929
  }).catch(() => {
930
930
  }), () => {
931
931
  var s;
932
- (s = f.current) == null || s.cancel();
932
+ (s = m.current) == null || s.cancel();
933
933
  };
934
934
  }, [n, e]), D(() => {
935
935
  var s;
936
- [].slice.call(r.current.children).forEach((_) => {
937
- _.classList.add(be["rp-text-layer-text"]);
936
+ [].slice.call(r.current.children).forEach((b) => {
937
+ b.classList.add(be["rp-text-layer-text"]);
938
938
  });
939
- const p = (s = f.current) == null ? void 0 : s.textDivs;
940
- p && m.current && w(m.current, p, !0);
941
- }, [w]), /* @__PURE__ */ i(
939
+ const h = (s = m.current) == null ? void 0 : s.textDivs;
940
+ h && f.current && _(f.current, h, !0);
941
+ }, [_]), /* @__PURE__ */ i(
942
942
  "div",
943
943
  {
944
944
  "data-rp-text-layer": !0,
@@ -949,179 +949,181 @@ const Cn = () => {
949
949
  onMouseUp: g
950
950
  }
951
951
  );
952
- }, Kr = {
952
+ }, jr = {
953
953
  "rp-annotation-layer": "_rp-annotation-layer_smepy_1"
954
954
  };
955
- let Xr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
956
- const Qr = (t) => {
957
- const { pageNumber: e } = t, n = H(null), { pages: r, pdf: o } = ie(), a = H(), [c, d] = $(), { setFocusedPage: l, goToPage: f } = he(), { scrollMode: m } = ze(), { print: C } = it(), { download: h } = jn(), w = M(() => r.get(e), [r, e]), P = M(() => w == null ? void 0 : w.page.getViewport(), [w]);
955
+ let Kr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
956
+ const Xr = (t) => {
957
+ const { pageNumber: e } = t, n = H(null), { pages: r, pdf: o } = re(), a = H(), [l, d] = $(), { goToPage: c } = he(), { scrollMode: m } = ze(), { print: f } = it(), { download: C } = Zn(), p = k(() => r.get(e), [r, e]), _ = k(() => p == null ? void 0 : p.page.getViewport(), [p]);
958
958
  D(() => {
959
959
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
960
960
  }, [o]), D(() => {
961
- w && w.page.getAnnotations().then((v) => {
962
- a.current = void 0, d(v), n.current && (n.current.innerText = "");
961
+ p && p.page.getAnnotations().then((w) => {
962
+ a.current = void 0, d(w), n.current && (n.current.innerText = "");
963
963
  });
964
- }, [w]);
965
- const T = E(
966
- (v) => {
967
- !c || !o || (Jo(v), er(v, o, c).then((I) => {
968
- var g, u;
969
- ((g = I == null ? void 0 : I.data) == null ? void 0 : g.action) === "Print" ? C() : ((u = I == null ? void 0 : I.data) == null ? void 0 : u.action) === "SaveAs" && h();
970
- }), m === re.PAGE_SCROLLING ? Ut(v, c, o, (I) => l(I.pageIndex + 1)) : Ut(v, c, o, (I) => f(I.pageIndex + 1)));
964
+ }, [p]);
965
+ const P = E(
966
+ (w) => {
967
+ !l || !o || (Yo(w), Jo(w, o, l).then((v) => {
968
+ var I, g;
969
+ ((I = v == null ? void 0 : v.data) == null ? void 0 : I.action) === "Print" ? f() : ((g = v == null ? void 0 : v.data) == null ? void 0 : g.action) === "SaveAs" && C();
970
+ }));
971
971
  },
972
- [o, c, f, l, m, C, h]
972
+ [o, l, m, f, C]
973
973
  );
974
974
  return D(() => {
975
- if (!w || !c)
975
+ if (!p || !l)
976
976
  return;
977
- const v = w.page.getViewport();
977
+ const w = p.page.getViewport();
978
978
  if (a.current) {
979
979
  a.current.update({
980
- viewport: v.clone({ dontFlip: !0 })
980
+ viewport: w.clone({ dontFlip: !0 })
981
981
  });
982
982
  return;
983
983
  }
984
- const I = /* @__PURE__ */ new Map([]);
985
- for (const p of c) {
986
- const { annotationType: s } = p;
987
- switch (s) {
988
- case fo.Widget:
989
- tr(p, v, I);
984
+ const v = /* @__PURE__ */ new Map([]);
985
+ for (const u of l) {
986
+ const { annotationType: h } = u;
987
+ switch (h) {
988
+ case ho.Widget:
989
+ er(u, w, v);
990
990
  break;
991
991
  }
992
992
  }
993
- const g = new AbortController();
993
+ const I = new AbortController();
994
994
  return (async () => {
995
- var _;
996
- if (a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new Qo({
995
+ var s;
996
+ if (a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new Xo({
997
997
  div: n.current,
998
998
  accessibilityManager: void 0,
999
999
  annotationCanvasMap: void 0,
1000
1000
  annotationEditorUIManager: void 0,
1001
1001
  structTreeLayer: null,
1002
- page: w.page,
1003
- viewport: v.clone({ dontFlip: !0 }),
1002
+ page: p.page,
1003
+ viewport: w.clone({ dontFlip: !0 }),
1004
1004
  commentManager: void 0,
1005
- linkService: new qt(),
1005
+ linkService: new Gt(o, c),
1006
1006
  annotationStorage: o == null ? void 0 : o.annotationStorage
1007
- }), n.current && Vt(n.current, T), g.signal.aborted)
1007
+ }), n.current && Ut(n.current, P), I.signal.aborted)
1008
1008
  throw "abort";
1009
- const p = await (o == null ? void 0 : o.hasJSActions()), s = await (o == null ? void 0 : o.getFieldObjects());
1010
- return (_ = a.current) == null ? void 0 : _.render({
1011
- annotations: c,
1009
+ const u = await (o == null ? void 0 : o.hasJSActions()), h = await (o == null ? void 0 : o.getFieldObjects());
1010
+ return (s = a.current) == null ? void 0 : s.render({
1011
+ annotations: l,
1012
1012
  annotationStorage: o == null ? void 0 : o.annotationStorage,
1013
- hasJSActions: p,
1014
- fieldObjects: s,
1013
+ hasJSActions: u,
1014
+ fieldObjects: h,
1015
1015
  div: n.current,
1016
- viewport: v.clone({ dontFlip: !0 }),
1017
- page: w.page,
1018
- imageResourcesPath: Xr,
1016
+ viewport: w.clone({ dontFlip: !0 }),
1017
+ page: p.page,
1018
+ imageResourcesPath: Kr,
1019
1019
  renderForms: !0,
1020
- linkService: new qt(),
1020
+ linkService: new Gt(o, c),
1021
1021
  downloadManager: null,
1022
1022
  enableScripting: !1
1023
1023
  });
1024
1024
  })().then(() => {
1025
- n.current && nr(n.current, T);
1026
- }).catch((p) => {
1027
- if (p !== "abort")
1028
- throw p;
1025
+ n.current && tr(n.current, P);
1026
+ }).catch((u) => {
1027
+ if (u !== "abort")
1028
+ throw u;
1029
+ }).finally(() => {
1030
+ a.current = void 0;
1029
1031
  }), () => {
1030
- g.abort("clear"), n.current && Vt(n.current, T);
1032
+ I.abort("clear"), n.current && Ut(n.current, P);
1031
1033
  };
1032
- }, [o, c, T]), /* @__PURE__ */ i(
1034
+ }, [o, l, P, c]), /* @__PURE__ */ i(
1033
1035
  "div",
1034
1036
  {
1035
1037
  "data-rp": `page-${e}-annotationLayer`,
1036
- style: { width: `${P == null ? void 0 : P.width}px`, height: `${P == null ? void 0 : P.height}px` },
1037
- className: Kr["rp-annotation-layer"],
1038
+ style: { width: `${_ == null ? void 0 : _.width}px`, height: `${_ == null ? void 0 : _.height}px` },
1039
+ className: jr["rp-annotation-layer"],
1038
1040
  ref: n
1039
1041
  }
1040
1042
  );
1041
- }, Yr = {
1043
+ }, Qr = {
1042
1044
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1043
- }, Jr = ({ pageNumber: t, viewport: e }) => {
1044
- const [n, r] = $(), { pages: o } = ie(), { highlightKeywords: a } = xo(), c = !0, d = H(null), [l, f] = $(null), [m, C] = $([]);
1045
+ }, Yr = ({ pageNumber: t, viewport: e }) => {
1046
+ const [n, r] = $(), { pages: o } = re(), { highlightKeywords: a } = So(), l = !0, d = H(null), [c, m] = $(null), [f, C] = $([]);
1045
1047
  D(() => {
1046
- d.current && f(d.current.parentElement);
1048
+ d.current && m(d.current.parentElement);
1047
1049
  }, [d]), D(() => {
1048
1050
  (async () => {
1049
1051
  const u = o.get(t);
1050
1052
  if (!u || !d.current)
1051
1053
  return;
1052
- const p = await u.page.getTextContent();
1053
- r(p);
1054
+ const h = await u.page.getTextContent();
1055
+ r(h);
1054
1056
  })();
1055
1057
  }, [o, t]);
1056
- const h = M(() => a ? a.map((g) => {
1057
- var u, p;
1058
+ const p = k(() => a ? a.map((g) => {
1059
+ var u, h;
1058
1060
  return {
1059
- ...or(g.keyword, (u = g.options) == null ? void 0 : u.matchCase, (p = g.options) == null ? void 0 : p.wholeWords),
1061
+ ...nr(g.keyword, (u = g.options) == null ? void 0 : u.matchCase, (h = g.options) == null ? void 0 : h.wholeWords),
1060
1062
  color: g.highlightColor
1061
1063
  };
1062
1064
  }) : [], [a]);
1063
- function w(g, u) {
1065
+ function _(g, u) {
1064
1066
  if (!g)
1065
1067
  return;
1066
- const p = `[data-rp="page-${u}-textLayer"]`;
1068
+ const h = `[data-rp="page-${u}-textLayer"]`;
1067
1069
  return new Promise((s) => {
1068
- const _ = g.querySelector(p);
1069
- if (_) {
1070
- s(_);
1070
+ const b = g.querySelector(h);
1071
+ if (b) {
1072
+ s(b);
1071
1073
  return;
1072
1074
  }
1073
1075
  new MutationObserver((y, x) => {
1074
- const S = g.querySelector(p);
1076
+ const S = g.querySelector(h);
1075
1077
  S && (s(S), x.disconnect());
1076
1078
  }).observe(g, { childList: !0, subtree: !0 });
1077
1079
  });
1078
1080
  }
1079
1081
  function P(g) {
1080
1082
  return new Promise((u) => {
1081
- const p = g.querySelectorAll(
1083
+ const h = g.querySelectorAll(
1082
1084
  '[data-rp="rp-text-layer-text"]'
1083
1085
  );
1084
- if (p.length) {
1085
- u(Array.from(p));
1086
+ if (h.length) {
1087
+ u(Array.from(h));
1086
1088
  return;
1087
1089
  }
1088
- new MutationObserver((_, b) => {
1090
+ new MutationObserver((b, T) => {
1089
1091
  const y = g.querySelectorAll(
1090
1092
  ".rp-text-layer-text"
1091
1093
  );
1092
- y.length && (u(Array.from(y)), b.disconnect());
1094
+ y.length && (u(Array.from(y)), T.disconnect());
1093
1095
  }).observe(g, { childList: !0, subtree: !0 });
1094
1096
  });
1095
1097
  }
1096
- const T = (g, u, p, s) => {
1097
- var G;
1098
- const _ = document.createRange(), b = p.firstChild;
1099
- if (!b || b.nodeType !== Node.TEXT_NODE)
1098
+ const w = (g, u, h, s) => {
1099
+ var q;
1100
+ const b = document.createRange(), T = h.firstChild;
1101
+ if (!T || T.nodeType !== Node.TEXT_NODE)
1100
1102
  return null;
1101
- const y = ((G = b.textContent) == null ? void 0 : G.length) ?? 0, x = s[0].charIdxInSpan, S = s.length === 1 ? x : s[s.length - 1].charIdxInSpan;
1103
+ const y = ((q = T.textContent) == null ? void 0 : q.length) ?? 0, x = s[0].charIdxInSpan, S = s.length === 1 ? x : s[s.length - 1].charIdxInSpan;
1102
1104
  if (x > y || S + 1 > y)
1103
1105
  return null;
1104
- _.setStart(b, x), _.setEnd(b, S + 1);
1106
+ b.setStart(T, x), b.setEnd(T, S + 1);
1105
1107
  const R = document.createElement("span");
1106
- R.style.width = "auto", _.surroundContents(R);
1107
- const L = R.getBoundingClientRect(), N = g.getBoundingClientRect(), k = N.height, A = N.width, z = 100 * (L.left - N.left) / A, F = 100 * (L.top - N.top) / k, O = 100 * L.height / k, q = 100 * L.width / A;
1108
- return ir(R), {
1108
+ R.style.width = "auto", b.surroundContents(R);
1109
+ const L = R.getBoundingClientRect(), N = g.getBoundingClientRect(), M = N.height, A = N.width, z = 100 * (L.left - N.left) / A, F = 100 * (L.top - N.top) / M, O = 100 * L.height / M, G = 100 * L.width / A;
1110
+ return rr(R), {
1109
1111
  keywordStr: u,
1110
1112
  left: z,
1111
1113
  top: F,
1112
1114
  height: O,
1113
- width: q,
1114
- pageHeight: k,
1115
+ width: G,
1116
+ pageHeight: M,
1115
1117
  pageWidth: A
1116
1118
  };
1117
1119
  };
1118
1120
  async function v(g, u) {
1119
- const p = await w(l, g);
1120
- if (!p)
1121
+ const h = await _(c, g);
1122
+ if (!h)
1121
1123
  return;
1122
- const s = await P(p);
1124
+ const s = await P(h);
1123
1125
  if (s.length) {
1124
- const _ = s.map((y) => y.tagName === "BR" ? " " : y.textContent).reduce(
1126
+ const b = s.map((y) => y.tagName === "BR" ? " " : y.textContent).reduce(
1125
1127
  (y, x, S) => y.concat(
1126
1128
  x.split("").map((R, L) => ({
1127
1129
  char: R,
@@ -1136,55 +1138,55 @@ const Qr = (t) => {
1136
1138
  spanIdx: 0
1137
1139
  }
1138
1140
  ]
1139
- ).slice(1), b = I(p, u, s, _);
1140
- C(b);
1141
+ ).slice(1), T = I(h, u, s, b);
1142
+ C(T);
1141
1143
  }
1142
1144
  }
1143
- const I = (g, u, p, s) => {
1144
- const _ = u.length;
1145
- if (!s.length || !_)
1145
+ const I = (g, u, h, s) => {
1146
+ const b = u.length;
1147
+ if (!s.length || !b)
1146
1148
  return [];
1147
- const b = [], y = s.map((x) => x.char).join("");
1148
- return h.forEach((x) => {
1149
- const { keyword: S, regExp: R, wholeWords: L, color: N } = x, k = S;
1150
- if (!k.trim())
1149
+ const T = [], y = s.map((x) => x.char).join("");
1150
+ return p.forEach((x) => {
1151
+ const { keyword: S, regExp: R, wholeWords: L, color: N } = x, M = S;
1152
+ if (!M.trim())
1151
1153
  return;
1152
1154
  const A = R.flags.indexOf("g") === -1 ? new RegExp(R, `${R.flags}g`) : R;
1153
1155
  let z;
1154
1156
  const F = [];
1155
1157
  for (; (z = A.exec(y)) !== null; )
1156
- L && !So(y, z.index, z[0].length) || F.push({
1158
+ L && !Io(y, z.index, z[0].length) || F.push({
1157
1159
  keyword: A,
1158
1160
  startIndex: z.index,
1159
1161
  endIndex: A.lastIndex
1160
1162
  });
1161
- const O = F.map((q) => ({
1162
- keyword: q.keyword,
1163
- indexes: s.slice(q.startIndex, q.endIndex),
1163
+ const O = F.map((G) => ({
1164
+ keyword: G.keyword,
1165
+ indexes: s.slice(G.startIndex, G.endIndex),
1164
1166
  color: N
1165
1167
  }));
1166
- for (const q of O) {
1167
- const G = q.indexes.reduce(
1168
+ for (const G of O) {
1169
+ const q = G.indexes.reduce(
1168
1170
  (V, B) => (V[B.spanIdx] = (V[B.spanIdx] || []).concat([B]), V),
1169
1171
  {}
1170
1172
  );
1171
- for (const V of Object.values(G))
1173
+ for (const V of Object.values(q))
1172
1174
  if (V.length !== 1 || V[0].char.trim() !== "") {
1173
- const B = V, ee = p[B[0].spanIdx], U = T(
1175
+ const B = V, ee = h[B[0].spanIdx], U = w(
1174
1176
  g,
1175
- k,
1177
+ M,
1176
1178
  ee,
1177
1179
  B
1178
1180
  );
1179
1181
  if (U) {
1180
1182
  const { left: Q, top: Y } = U;
1181
- if (b.find((ne) => ne.left === Q && ne.top === Y))
1183
+ if (T.find((ne) => ne.left === Q && ne.top === Y))
1182
1184
  continue;
1183
- b.push({ ...U, highlightColor: q.color });
1185
+ T.push({ ...U, highlightColor: G.color });
1184
1186
  }
1185
1187
  }
1186
1188
  }
1187
- }), b.sort(rr), b;
1189
+ }), T.sort(or), T;
1188
1190
  };
1189
1191
  return D(() => {
1190
1192
  (async () => {
@@ -1198,10 +1200,10 @@ const Qr = (t) => {
1198
1200
  console.error(u);
1199
1201
  }
1200
1202
  })();
1201
- }, [c, a, t, n, e]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: d, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, u) => /* @__PURE__ */ i(
1203
+ }, [l, a, t, n, e]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: d, "data-rp": `page-${t}-textHighlightLayer`, children: f.map((g, u) => /* @__PURE__ */ i(
1202
1204
  "div",
1203
1205
  {
1204
- className: Yr["rp-text-highlight"],
1206
+ className: Qr["rp-text-highlight"],
1205
1207
  style: {
1206
1208
  top: `${g.top}%`,
1207
1209
  left: `${g.left}%`,
@@ -1213,22 +1215,22 @@ const Qr = (t) => {
1213
1215
  u
1214
1216
  )) }) });
1215
1217
  }, Ot = rt((t, e) => {
1216
- const { pageNumber: n, style: r, ...o } = t, { pages: a } = ie(), { pageRotate: c } = ot(), { textLayer: d } = _o(), { currentZoom: l } = tt(), { LoaderImageComponent: f } = yt(), m = H(a.get(n)), [C, h] = $(!1), w = H(null), [P, T] = $({
1218
+ const { pageNumber: n, style: r, ...o } = t, { pages: a } = re(), { pageRotate: l } = ot(), { textLayer: d } = wo(), { currentZoom: c } = tt(), { LoaderImageComponent: m } = yt(), f = H(a.get(n)), [C, p] = $(!1), _ = H(null), [P, w] = $({
1217
1219
  width: 0,
1218
1220
  height: 0
1219
1221
  });
1220
- pn(e, () => w.current);
1221
- const v = M(() => m.current ? c[n] : 0, [n, c]);
1222
+ un(e, () => _.current);
1223
+ const v = k(() => f.current ? l[n] : 0, [n, l]);
1222
1224
  D(() => {
1223
- if (a && (m.current = a.get(n), m.current)) {
1224
- const p = m.current.page.getViewport({
1225
- scale: l,
1225
+ if (a && (f.current = a.get(n), f.current)) {
1226
+ const h = f.current.page.getViewport({
1227
+ scale: c,
1226
1228
  rotation: v
1227
1229
  });
1228
- T(p);
1230
+ w(h);
1229
1231
  }
1230
- }, [a, n, v, l]);
1231
- const I = M(() => {
1232
+ }, [a, n, v, c]);
1233
+ const I = k(() => {
1232
1234
  switch (v) {
1233
1235
  case 90:
1234
1236
  return `${P.width / 2}px ${P.width / 2}px`;
@@ -1239,14 +1241,14 @@ const Qr = (t) => {
1239
1241
  return "center";
1240
1242
  }
1241
1243
  }, [v, P]), g = E(() => {
1242
- h(!0);
1244
+ p(!0);
1243
1245
  }, []), u = E(() => {
1244
- h(!1);
1246
+ p(!1);
1245
1247
  }, []);
1246
1248
  return /* @__PURE__ */ i(
1247
1249
  "div",
1248
1250
  {
1249
- ref: w,
1251
+ ref: _,
1250
1252
  id: `page-${n}`,
1251
1253
  "data-rp": `page-${n}`,
1252
1254
  ...o,
@@ -1255,7 +1257,7 @@ const Qr = (t) => {
1255
1257
  "--rp-rotate": `${v}deg`,
1256
1258
  "--rp-page-rotate-translate": `${I}`,
1257
1259
  "--user-unit": P.userUnit || 1,
1258
- "--scale-factor": l,
1260
+ "--scale-factor": c,
1259
1261
  "--total-scale-factor": "calc(var(--scale-factor) * var(--user-unit))"
1260
1262
  },
1261
1263
  className: ht["rp-page-wrapper"],
@@ -1268,12 +1270,12 @@ const Qr = (t) => {
1268
1270
  },
1269
1271
  className: ht["rp-page"],
1270
1272
  children: [
1271
- /* @__PURE__ */ i(Vr, { onLoading: g, onLoaded: u, pageNumber: n }),
1272
- C && f && /* @__PURE__ */ i("div", { className: ht["rp-loader-wrapper"], children: /* @__PURE__ */ i(f, {}) }),
1273
- /* @__PURE__ */ i(ar, { pageNumber: n }),
1274
- d && /* @__PURE__ */ i(jr, { pageNumber: n }),
1275
- /* @__PURE__ */ i(Jr, { pageNumber: n, viewport: P }),
1276
- /* @__PURE__ */ i(Qr, { pageNumber: n })
1273
+ /* @__PURE__ */ i(Ur, { onLoading: g, onLoaded: u, pageNumber: n }),
1274
+ C && m && /* @__PURE__ */ i("div", { className: ht["rp-loader-wrapper"], children: /* @__PURE__ */ i(m, {}) }),
1275
+ /* @__PURE__ */ i(ir, { pageNumber: n }),
1276
+ d && /* @__PURE__ */ i(Zr, { pageNumber: n }),
1277
+ /* @__PURE__ */ i(Yr, { pageNumber: n, viewport: P }),
1278
+ /* @__PURE__ */ i(Xr, { pageNumber: n })
1277
1279
  ]
1278
1280
  }
1279
1281
  )
@@ -1290,7 +1292,7 @@ function bt() {
1290
1292
  return t;
1291
1293
  }, bt.apply(null, arguments);
1292
1294
  }
1293
- function jt(t) {
1295
+ function Zt(t) {
1294
1296
  if (t === void 0)
1295
1297
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1296
1298
  return t;
@@ -1300,34 +1302,34 @@ function Tt(t, e) {
1300
1302
  return n.__proto__ = r, n;
1301
1303
  }, Tt(t, e);
1302
1304
  }
1303
- function ei(t, e) {
1305
+ function Jr(t, e) {
1304
1306
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Tt(t, e);
1305
1307
  }
1306
- var Kt = Number.isNaN || function(e) {
1308
+ var jt = Number.isNaN || function(e) {
1307
1309
  return typeof e == "number" && e !== e;
1308
1310
  };
1309
- function ti(t, e) {
1310
- return !!(t === e || Kt(t) && Kt(e));
1311
+ function ei(t, e) {
1312
+ return !!(t === e || jt(t) && jt(e));
1311
1313
  }
1312
- function ni(t, e) {
1314
+ function ti(t, e) {
1313
1315
  if (t.length !== e.length)
1314
1316
  return !1;
1315
1317
  for (var n = 0; n < t.length; n++)
1316
- if (!ti(t[n], e[n]))
1318
+ if (!ei(t[n], e[n]))
1317
1319
  return !1;
1318
1320
  return !0;
1319
1321
  }
1320
1322
  function ft(t, e) {
1321
- e === void 0 && (e = ni);
1323
+ e === void 0 && (e = ti);
1322
1324
  var n, r = [], o, a = !1;
1323
- function c() {
1324
- for (var d = [], l = 0; l < arguments.length; l++)
1325
- d[l] = arguments[l];
1325
+ function l() {
1326
+ for (var d = [], c = 0; c < arguments.length; c++)
1327
+ d[c] = arguments[c];
1326
1328
  return a && n === this && e(d, r) || (o = t.apply(this, d), a = !0, n = this, r = d), o;
1327
1329
  }
1328
- return c;
1330
+ return l;
1329
1331
  }
1330
- function Xt(t, e) {
1332
+ function Kt(t, e) {
1331
1333
  if (t == null)
1332
1334
  return {};
1333
1335
  var n = {};
@@ -1339,18 +1341,18 @@ function Xt(t, e) {
1339
1341
  }
1340
1342
  return n;
1341
1343
  }
1342
- var oi = typeof performance == "object" && typeof performance.now == "function", Qt = oi ? function() {
1344
+ var ni = typeof performance == "object" && typeof performance.now == "function", Xt = ni ? function() {
1343
1345
  return performance.now();
1344
1346
  } : function() {
1345
1347
  return Date.now();
1346
1348
  };
1347
- function Yt(t) {
1349
+ function Qt(t) {
1348
1350
  cancelAnimationFrame(t.id);
1349
1351
  }
1350
- function ri(t, e) {
1351
- var n = Qt();
1352
+ function oi(t, e) {
1353
+ var n = Xt();
1352
1354
  function r() {
1353
- Qt() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
1355
+ Xt() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
1354
1356
  }
1355
1357
  var o = {
1356
1358
  id: requestAnimationFrame(r)
@@ -1358,7 +1360,7 @@ function ri(t, e) {
1358
1360
  return o;
1359
1361
  }
1360
1362
  var mt = -1;
1361
- function ii(t) {
1363
+ function ri(t) {
1362
1364
  if (t === void 0 && (t = !1), mt === -1 || t) {
1363
1365
  var e = document.createElement("div"), n = e.style;
1364
1366
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), mt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1366,7 +1368,7 @@ function ii(t) {
1366
1368
  return mt;
1367
1369
  }
1368
1370
  var Ae = null;
1369
- function Jt(t) {
1371
+ function Yt(t) {
1370
1372
  if (t === void 0 && (t = !1), Ae === null || t) {
1371
1373
  var e = document.createElement("div"), n = e.style;
1372
1374
  n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
@@ -1375,31 +1377,31 @@ function Jt(t) {
1375
1377
  }
1376
1378
  return Ae;
1377
1379
  }
1378
- var ai = 150, si = function(e) {
1380
+ var ii = 150, ai = function(e) {
1379
1381
  var n = e.columnIndex;
1380
1382
  e.data;
1381
1383
  var r = e.rowIndex;
1382
1384
  return r + ":" + n;
1383
1385
  }, Xe = null, Qe = null, Ye = null;
1384
1386
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Xe = /* @__PURE__ */ new WeakSet(), Qe = /* @__PURE__ */ new WeakSet(), Ye = /* @__PURE__ */ new WeakSet());
1385
- function ci(t) {
1386
- var e, n = t.getColumnOffset, r = t.getColumnStartIndexForOffset, o = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, C = t.getRowOffset, h = t.getRowStartIndexForOffset, w = t.getRowStopIndexForStartIndex, P = t.initInstanceProps, T = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1387
+ function si(t) {
1388
+ var e, n = t.getColumnOffset, r = t.getColumnStartIndexForOffset, o = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, l = t.getEstimatedTotalHeight, d = t.getEstimatedTotalWidth, c = t.getOffsetForColumnAndAlignment, m = t.getOffsetForRowAndAlignment, f = t.getRowHeight, C = t.getRowOffset, p = t.getRowStartIndexForOffset, _ = t.getRowStopIndexForStartIndex, P = t.initInstanceProps, w = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
1387
1389
  return e = /* @__PURE__ */ function(I) {
1388
- ei(g, I);
1389
- function g(p) {
1390
+ Jr(g, I);
1391
+ function g(h) {
1390
1392
  var s;
1391
- return s = I.call(this, p) || this, s._instanceProps = P(s.props, jt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1392
- instance: jt(s),
1393
+ return s = I.call(this, h) || this, s._instanceProps = P(s.props, Zt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1394
+ instance: Zt(s),
1393
1395
  isScrolling: !1,
1394
1396
  horizontalScrollDirection: "forward",
1395
1397
  scrollLeft: typeof s.props.initialScrollLeft == "number" ? s.props.initialScrollLeft : 0,
1396
1398
  scrollTop: typeof s.props.initialScrollTop == "number" ? s.props.initialScrollTop : 0,
1397
1399
  scrollUpdateWasRequested: !1,
1398
1400
  verticalScrollDirection: "forward"
1399
- }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ft(function(_, b, y, x, S, R, L, N) {
1401
+ }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ft(function(b, T, y, x, S, R, L, N) {
1400
1402
  return s.props.onItemsRendered({
1401
- overscanColumnStartIndex: _,
1402
- overscanColumnStopIndex: b,
1403
+ overscanColumnStartIndex: b,
1404
+ overscanColumnStopIndex: T,
1403
1405
  overscanRowStartIndex: y,
1404
1406
  overscanRowStopIndex: x,
1405
1407
  visibleColumnStartIndex: S,
@@ -1407,40 +1409,40 @@ function ci(t) {
1407
1409
  visibleRowStartIndex: L,
1408
1410
  visibleRowStopIndex: N
1409
1411
  });
1410
- }), s._callOnScroll = void 0, s._callOnScroll = ft(function(_, b, y, x, S) {
1412
+ }), s._callOnScroll = void 0, s._callOnScroll = ft(function(b, T, y, x, S) {
1411
1413
  return s.props.onScroll({
1412
1414
  horizontalScrollDirection: y,
1413
- scrollLeft: _,
1414
- scrollTop: b,
1415
+ scrollLeft: b,
1416
+ scrollTop: T,
1415
1417
  verticalScrollDirection: x,
1416
1418
  scrollUpdateWasRequested: S
1417
1419
  });
1418
- }), s._getItemStyle = void 0, s._getItemStyle = function(_, b) {
1419
- var y = s.props, x = y.columnWidth, S = y.direction, R = y.rowHeight, L = s._getItemStyleCache(T && x, T && S, T && R), N = _ + ":" + b, k;
1420
+ }), s._getItemStyle = void 0, s._getItemStyle = function(b, T) {
1421
+ var y = s.props, x = y.columnWidth, S = y.direction, R = y.rowHeight, L = s._getItemStyleCache(w && x, w && S, w && R), N = b + ":" + T, M;
1420
1422
  if (L.hasOwnProperty(N))
1421
- k = L[N];
1423
+ M = L[N];
1422
1424
  else {
1423
- var A = n(s.props, b, s._instanceProps), z = S === "rtl";
1424
- L[N] = k = {
1425
+ var A = n(s.props, T, s._instanceProps), z = S === "rtl";
1426
+ L[N] = M = {
1425
1427
  position: "absolute",
1426
1428
  left: z ? void 0 : A,
1427
1429
  right: z ? A : void 0,
1428
- top: C(s.props, _, s._instanceProps),
1429
- height: m(s.props, _, s._instanceProps),
1430
- width: a(s.props, b, s._instanceProps)
1430
+ top: C(s.props, b, s._instanceProps),
1431
+ height: f(s.props, b, s._instanceProps),
1432
+ width: a(s.props, T, s._instanceProps)
1431
1433
  };
1432
1434
  }
1433
- return k;
1434
- }, s._getItemStyleCache = void 0, s._getItemStyleCache = ft(function(_, b, y) {
1435
+ return M;
1436
+ }, s._getItemStyleCache = void 0, s._getItemStyleCache = ft(function(b, T, y) {
1435
1437
  return {};
1436
- }), s._onScroll = function(_) {
1437
- var b = _.currentTarget, y = b.clientHeight, x = b.clientWidth, S = b.scrollLeft, R = b.scrollTop, L = b.scrollHeight, N = b.scrollWidth;
1438
- s.setState(function(k) {
1439
- if (k.scrollLeft === S && k.scrollTop === R)
1438
+ }), s._onScroll = function(b) {
1439
+ var T = b.currentTarget, y = T.clientHeight, x = T.clientWidth, S = T.scrollLeft, R = T.scrollTop, L = T.scrollHeight, N = T.scrollWidth;
1440
+ s.setState(function(M) {
1441
+ if (M.scrollLeft === S && M.scrollTop === R)
1440
1442
  return null;
1441
1443
  var A = s.props.direction, z = S;
1442
1444
  if (A === "rtl")
1443
- switch (Jt()) {
1445
+ switch (Yt()) {
1444
1446
  case "negative":
1445
1447
  z = -S;
1446
1448
  break;
@@ -1452,18 +1454,18 @@ function ci(t) {
1452
1454
  var F = Math.max(0, Math.min(R, L - y));
1453
1455
  return {
1454
1456
  isScrolling: !0,
1455
- horizontalScrollDirection: k.scrollLeft < S ? "forward" : "backward",
1457
+ horizontalScrollDirection: M.scrollLeft < S ? "forward" : "backward",
1456
1458
  scrollLeft: z,
1457
1459
  scrollTop: F,
1458
- verticalScrollDirection: k.scrollTop < R ? "forward" : "backward",
1460
+ verticalScrollDirection: M.scrollTop < R ? "forward" : "backward",
1459
1461
  scrollUpdateWasRequested: !1
1460
1462
  };
1461
1463
  }, s._resetIsScrollingDebounced);
1462
- }, s._outerRefSetter = function(_) {
1463
- var b = s.props.outerRef;
1464
- s._outerRef = _, typeof b == "function" ? b(_) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = _);
1464
+ }, s._outerRefSetter = function(b) {
1465
+ var T = s.props.outerRef;
1466
+ s._outerRef = b, typeof T == "function" ? T(b) : T != null && typeof T == "object" && T.hasOwnProperty("current") && (T.current = b);
1465
1467
  }, s._resetIsScrollingDebounced = function() {
1466
- s._resetIsScrollingTimeoutId !== null && Yt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = ri(s._resetIsScrolling, ai);
1468
+ s._resetIsScrollingTimeoutId !== null && Qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = oi(s._resetIsScrolling, ii);
1467
1469
  }, s._resetIsScrolling = function() {
1468
1470
  s._resetIsScrollingTimeoutId = null, s.setState({
1469
1471
  isScrolling: !1
@@ -1472,80 +1474,80 @@ function ci(t) {
1472
1474
  });
1473
1475
  }, s;
1474
1476
  }
1475
- g.getDerivedStateFromProps = function(s, _) {
1476
- return li(s, _), v(s), null;
1477
+ g.getDerivedStateFromProps = function(s, b) {
1478
+ return ci(s, b), v(s), null;
1477
1479
  };
1478
1480
  var u = g.prototype;
1479
1481
  return u.scrollTo = function(s) {
1480
- var _ = s.scrollLeft, b = s.scrollTop;
1481
- _ !== void 0 && (_ = Math.max(0, _)), b !== void 0 && (b = Math.max(0, b)), this.setState(function(y) {
1482
- return _ === void 0 && (_ = y.scrollLeft), b === void 0 && (b = y.scrollTop), y.scrollLeft === _ && y.scrollTop === b ? null : {
1483
- horizontalScrollDirection: y.scrollLeft < _ ? "forward" : "backward",
1484
- scrollLeft: _,
1485
- scrollTop: b,
1482
+ var b = s.scrollLeft, T = s.scrollTop;
1483
+ b !== void 0 && (b = Math.max(0, b)), T !== void 0 && (T = Math.max(0, T)), this.setState(function(y) {
1484
+ return b === void 0 && (b = y.scrollLeft), T === void 0 && (T = y.scrollTop), y.scrollLeft === b && y.scrollTop === T ? null : {
1485
+ horizontalScrollDirection: y.scrollLeft < b ? "forward" : "backward",
1486
+ scrollLeft: b,
1487
+ scrollTop: T,
1486
1488
  scrollUpdateWasRequested: !0,
1487
- verticalScrollDirection: y.scrollTop < b ? "forward" : "backward"
1489
+ verticalScrollDirection: y.scrollTop < T ? "forward" : "backward"
1488
1490
  };
1489
1491
  }, this._resetIsScrollingDebounced);
1490
1492
  }, u.scrollToItem = function(s) {
1491
- var _ = s.align, b = _ === void 0 ? "auto" : _, y = s.columnIndex, x = s.rowIndex, S = this.props, R = S.columnCount, L = S.height, N = S.rowCount, k = S.width, A = this.state, z = A.scrollLeft, F = A.scrollTop, O = ii();
1493
+ var b = s.align, T = b === void 0 ? "auto" : b, y = s.columnIndex, x = s.rowIndex, S = this.props, R = S.columnCount, L = S.height, N = S.rowCount, M = S.width, A = this.state, z = A.scrollLeft, F = A.scrollTop, O = ri();
1492
1494
  y !== void 0 && (y = Math.max(0, Math.min(y, R - 1))), x !== void 0 && (x = Math.max(0, Math.min(x, N - 1)));
1493
- var q = c(this.props, this._instanceProps), G = d(this.props, this._instanceProps), V = G > k ? O : 0, B = q > L ? O : 0;
1495
+ var G = l(this.props, this._instanceProps), q = d(this.props, this._instanceProps), V = q > M ? O : 0, B = G > L ? O : 0;
1494
1496
  this.scrollTo({
1495
- scrollLeft: y !== void 0 ? l(this.props, y, b, z, this._instanceProps, B) : z,
1496
- scrollTop: x !== void 0 ? f(this.props, x, b, F, this._instanceProps, V) : F
1497
+ scrollLeft: y !== void 0 ? c(this.props, y, T, z, this._instanceProps, B) : z,
1498
+ scrollTop: x !== void 0 ? m(this.props, x, T, F, this._instanceProps, V) : F
1497
1499
  });
1498
1500
  }, u.componentDidMount = function() {
1499
- var s = this.props, _ = s.initialScrollLeft, b = s.initialScrollTop;
1501
+ var s = this.props, b = s.initialScrollLeft, T = s.initialScrollTop;
1500
1502
  if (this._outerRef != null) {
1501
1503
  var y = this._outerRef;
1502
- typeof _ == "number" && (y.scrollLeft = _), typeof b == "number" && (y.scrollTop = b);
1504
+ typeof b == "number" && (y.scrollLeft = b), typeof T == "number" && (y.scrollTop = T);
1503
1505
  }
1504
1506
  this._callPropsCallbacks();
1505
1507
  }, u.componentDidUpdate = function() {
1506
- var s = this.props.direction, _ = this.state, b = _.scrollLeft, y = _.scrollTop, x = _.scrollUpdateWasRequested;
1508
+ var s = this.props.direction, b = this.state, T = b.scrollLeft, y = b.scrollTop, x = b.scrollUpdateWasRequested;
1507
1509
  if (x && this._outerRef != null) {
1508
1510
  var S = this._outerRef;
1509
1511
  if (s === "rtl")
1510
- switch (Jt()) {
1512
+ switch (Yt()) {
1511
1513
  case "negative":
1512
- S.scrollLeft = -b;
1514
+ S.scrollLeft = -T;
1513
1515
  break;
1514
1516
  case "positive-ascending":
1515
- S.scrollLeft = b;
1517
+ S.scrollLeft = T;
1516
1518
  break;
1517
1519
  default:
1518
1520
  var R = S.clientWidth, L = S.scrollWidth;
1519
- S.scrollLeft = L - R - b;
1521
+ S.scrollLeft = L - R - T;
1520
1522
  break;
1521
1523
  }
1522
1524
  else
1523
- S.scrollLeft = Math.max(0, b);
1525
+ S.scrollLeft = Math.max(0, T);
1524
1526
  S.scrollTop = Math.max(0, y);
1525
1527
  }
1526
1528
  this._callPropsCallbacks();
1527
1529
  }, u.componentWillUnmount = function() {
1528
- this._resetIsScrollingTimeoutId !== null && Yt(this._resetIsScrollingTimeoutId);
1530
+ this._resetIsScrollingTimeoutId !== null && Qt(this._resetIsScrollingTimeoutId);
1529
1531
  }, u.render = function() {
1530
- var s = this.props, _ = s.children, b = s.className, y = s.columnCount, x = s.direction, S = s.height, R = s.innerRef, L = s.innerElementType, N = s.innerTagName, k = s.itemData, A = s.itemKey, z = A === void 0 ? si : A, F = s.outerElementType, O = s.outerTagName, q = s.rowCount, G = s.style, V = s.useIsScrolling, B = s.width, ee = this.state.isScrolling, U = this._getHorizontalRangeToRender(), Q = U[0], Y = U[1], te = this._getVerticalRangeToRender(), ne = te[0], J = te[1], ce = [];
1531
- if (y > 0 && q)
1532
+ var s = this.props, b = s.children, T = s.className, y = s.columnCount, x = s.direction, S = s.height, R = s.innerRef, L = s.innerElementType, N = s.innerTagName, M = s.itemData, A = s.itemKey, z = A === void 0 ? ai : A, F = s.outerElementType, O = s.outerTagName, G = s.rowCount, q = s.style, V = s.useIsScrolling, B = s.width, ee = this.state.isScrolling, U = this._getHorizontalRangeToRender(), Q = U[0], Y = U[1], te = this._getVerticalRangeToRender(), ne = te[0], J = te[1], ce = [];
1533
+ if (y > 0 && G)
1532
1534
  for (var ae = ne; ae <= J; ae++)
1533
1535
  for (var we = Q; we <= Y; we++)
1534
- ce.push(Ke(_, {
1536
+ ce.push(Ke(b, {
1535
1537
  columnIndex: we,
1536
- data: k,
1538
+ data: M,
1537
1539
  isScrolling: V ? ee : void 0,
1538
1540
  key: z({
1539
1541
  columnIndex: we,
1540
- data: k,
1542
+ data: M,
1541
1543
  rowIndex: ae
1542
1544
  }),
1543
1545
  rowIndex: ae,
1544
1546
  style: this._getItemStyle(ae, we)
1545
1547
  }));
1546
- var _e = c(this.props, this._instanceProps), st = d(this.props, this._instanceProps);
1548
+ var _e = l(this.props, this._instanceProps), st = d(this.props, this._instanceProps);
1547
1549
  return Ke(F || O || "div", {
1548
- className: b,
1550
+ className: T,
1549
1551
  onScroll: this._onScroll,
1550
1552
  ref: this._outerRefSetter,
1551
1553
  style: bt({
@@ -1556,7 +1558,7 @@ function ci(t) {
1556
1558
  WebkitOverflowScrolling: "touch",
1557
1559
  willChange: "transform",
1558
1560
  direction: x
1559
- }, G)
1561
+ }, q)
1560
1562
  }, Ke(L || N || "div", {
1561
1563
  children: ce,
1562
1564
  ref: R,
@@ -1567,38 +1569,38 @@ function ci(t) {
1567
1569
  }
1568
1570
  }));
1569
1571
  }, u._callPropsCallbacks = function() {
1570
- var s = this.props, _ = s.columnCount, b = s.onItemsRendered, y = s.onScroll, x = s.rowCount;
1571
- if (typeof b == "function" && _ > 0 && x > 0) {
1572
- var S = this._getHorizontalRangeToRender(), R = S[0], L = S[1], N = S[2], k = S[3], A = this._getVerticalRangeToRender(), z = A[0], F = A[1], O = A[2], q = A[3];
1573
- this._callOnItemsRendered(R, L, z, F, N, k, O, q);
1572
+ var s = this.props, b = s.columnCount, T = s.onItemsRendered, y = s.onScroll, x = s.rowCount;
1573
+ if (typeof T == "function" && b > 0 && x > 0) {
1574
+ var S = this._getHorizontalRangeToRender(), R = S[0], L = S[1], N = S[2], M = S[3], A = this._getVerticalRangeToRender(), z = A[0], F = A[1], O = A[2], G = A[3];
1575
+ this._callOnItemsRendered(R, L, z, F, N, M, O, G);
1574
1576
  }
1575
1577
  if (typeof y == "function") {
1576
- var G = this.state, V = G.horizontalScrollDirection, B = G.scrollLeft, ee = G.scrollTop, U = G.scrollUpdateWasRequested, Q = G.verticalScrollDirection;
1578
+ var q = this.state, V = q.horizontalScrollDirection, B = q.scrollLeft, ee = q.scrollTop, U = q.scrollUpdateWasRequested, Q = q.verticalScrollDirection;
1577
1579
  this._callOnScroll(B, ee, V, Q, U);
1578
1580
  }
1579
1581
  }, u._getHorizontalRangeToRender = function() {
1580
- var s = this.props, _ = s.columnCount, b = s.overscanColumnCount, y = s.overscanColumnsCount, x = s.overscanCount, S = s.rowCount, R = this.state, L = R.horizontalScrollDirection, N = R.isScrolling, k = R.scrollLeft, A = b || y || x || 1;
1581
- if (_ === 0 || S === 0)
1582
+ var s = this.props, b = s.columnCount, T = s.overscanColumnCount, y = s.overscanColumnsCount, x = s.overscanCount, S = s.rowCount, R = this.state, L = R.horizontalScrollDirection, N = R.isScrolling, M = R.scrollLeft, A = T || y || x || 1;
1583
+ if (b === 0 || S === 0)
1582
1584
  return [0, 0, 0, 0];
1583
- var z = r(this.props, k, this._instanceProps), F = o(this.props, z, k, this._instanceProps), O = !N || L === "backward" ? Math.max(1, A) : 1, q = !N || L === "forward" ? Math.max(1, A) : 1;
1584
- return [Math.max(0, z - O), Math.max(0, Math.min(_ - 1, F + q)), z, F];
1585
+ var z = r(this.props, M, this._instanceProps), F = o(this.props, z, M, this._instanceProps), O = !N || L === "backward" ? Math.max(1, A) : 1, G = !N || L === "forward" ? Math.max(1, A) : 1;
1586
+ return [Math.max(0, z - O), Math.max(0, Math.min(b - 1, F + G)), z, F];
1585
1587
  }, u._getVerticalRangeToRender = function() {
1586
- var s = this.props, _ = s.columnCount, b = s.overscanCount, y = s.overscanRowCount, x = s.overscanRowsCount, S = s.rowCount, R = this.state, L = R.isScrolling, N = R.verticalScrollDirection, k = R.scrollTop, A = y || x || b || 1;
1587
- if (_ === 0 || S === 0)
1588
+ var s = this.props, b = s.columnCount, T = s.overscanCount, y = s.overscanRowCount, x = s.overscanRowsCount, S = s.rowCount, R = this.state, L = R.isScrolling, N = R.verticalScrollDirection, M = R.scrollTop, A = y || x || T || 1;
1589
+ if (b === 0 || S === 0)
1588
1590
  return [0, 0, 0, 0];
1589
- var z = h(this.props, k, this._instanceProps), F = w(this.props, z, k, this._instanceProps), O = !L || N === "backward" ? Math.max(1, A) : 1, q = !L || N === "forward" ? Math.max(1, A) : 1;
1590
- return [Math.max(0, z - O), Math.max(0, Math.min(S - 1, F + q)), z, F];
1591
+ var z = p(this.props, M, this._instanceProps), F = _(this.props, z, M, this._instanceProps), O = !L || N === "backward" ? Math.max(1, A) : 1, G = !L || N === "forward" ? Math.max(1, A) : 1;
1592
+ return [Math.max(0, z - O), Math.max(0, Math.min(S - 1, F + G)), z, F];
1591
1593
  }, g;
1592
- }(lo), e.defaultProps = {
1594
+ }(co), e.defaultProps = {
1593
1595
  direction: "ltr",
1594
1596
  itemData: void 0,
1595
1597
  useIsScrolling: !1
1596
1598
  }, e;
1597
1599
  }
1598
- var li = function(e, n) {
1599
- var r = e.children, o = e.direction, a = e.height, c = e.innerTagName, d = e.outerTagName, l = e.overscanColumnsCount, f = e.overscanCount, m = e.overscanRowsCount, C = e.width, h = n.instance;
1600
+ var ci = function(e, n) {
1601
+ var r = e.children, o = e.direction, a = e.height, l = e.innerTagName, d = e.outerTagName, c = e.overscanColumnsCount, m = e.overscanCount, f = e.overscanRowsCount, C = e.width, p = n.instance;
1600
1602
  if (process.env.NODE_ENV !== "production") {
1601
- if (typeof f == "number" && Xe && !Xe.has(h) && (Xe.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof m == "number") && Qe && !Qe.has(h) && (Qe.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || d != null) && Ye && !Ye.has(h) && (Ye.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1603
+ if (typeof m == "number" && Xe && !Xe.has(p) && (Xe.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof c == "number" || typeof f == "number") && Qe && !Qe.has(p) && (Qe.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (l != null || d != null) && Ye && !Ye.has(p) && (Ye.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1602
1604
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1603
1605
  switch (o) {
1604
1606
  case "ltr":
@@ -1612,92 +1614,92 @@ var li = function(e, n) {
1612
1614
  if (typeof a != "number")
1613
1615
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1614
1616
  }
1615
- }, en = 50, En = function(e, n) {
1616
- var r = e.rowCount, o = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, d = 0;
1617
- if (c >= r && (c = r - 1), c >= 0) {
1618
- var l = o[c];
1619
- d = l.offset + l.size;
1617
+ }, Jt = 50, Ln = function(e, n) {
1618
+ var r = e.rowCount, o = n.rowMetadataMap, a = n.estimatedRowHeight, l = n.lastMeasuredRowIndex, d = 0;
1619
+ if (l >= r && (l = r - 1), l >= 0) {
1620
+ var c = o[l];
1621
+ d = c.offset + c.size;
1620
1622
  }
1621
- var f = r - c - 1, m = f * a;
1622
- return d + m;
1623
- }, Nn = function(e, n) {
1624
- var r = e.columnCount, o = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, d = 0;
1625
- if (c >= r && (c = r - 1), c >= 0) {
1626
- var l = o[c];
1627
- d = l.offset + l.size;
1623
+ var m = r - l - 1, f = m * a;
1624
+ return d + f;
1625
+ }, En = function(e, n) {
1626
+ var r = e.columnCount, o = n.columnMetadataMap, a = n.estimatedColumnWidth, l = n.lastMeasuredColumnIndex, d = 0;
1627
+ if (l >= r && (l = r - 1), l >= 0) {
1628
+ var c = o[l];
1629
+ d = c.offset + c.size;
1628
1630
  }
1629
- var f = r - c - 1, m = f * a;
1630
- return d + m;
1631
+ var m = r - l - 1, f = m * a;
1632
+ return d + f;
1631
1633
  }, Te = function(e, n, r, o) {
1632
- var a, c, d;
1633
- if (e === "column" ? (a = o.columnMetadataMap, c = n.columnWidth, d = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = n.rowHeight, d = o.lastMeasuredRowIndex), r > d) {
1634
- var l = 0;
1634
+ var a, l, d;
1635
+ if (e === "column" ? (a = o.columnMetadataMap, l = n.columnWidth, d = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, l = n.rowHeight, d = o.lastMeasuredRowIndex), r > d) {
1636
+ var c = 0;
1635
1637
  if (d >= 0) {
1636
- var f = a[d];
1637
- l = f.offset + f.size;
1638
+ var m = a[d];
1639
+ c = m.offset + m.size;
1638
1640
  }
1639
- for (var m = d + 1; m <= r; m++) {
1640
- var C = c(m);
1641
- a[m] = {
1642
- offset: l,
1641
+ for (var f = d + 1; f <= r; f++) {
1642
+ var C = l(f);
1643
+ a[f] = {
1644
+ offset: c,
1643
1645
  size: C
1644
- }, l += C;
1646
+ }, c += C;
1645
1647
  }
1646
1648
  e === "column" ? o.lastMeasuredColumnIndex = r : o.lastMeasuredRowIndex = r;
1647
1649
  }
1648
1650
  return a[r];
1649
- }, tn = function(e, n, r, o) {
1650
- var a, c;
1651
- e === "column" ? (a = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1652
- var d = c > 0 ? a[c].offset : 0;
1653
- return d >= o ? On(e, n, r, c, 0, o) : di(e, n, r, Math.max(0, c), o);
1654
- }, On = function(e, n, r, o, a, c) {
1651
+ }, en = function(e, n, r, o) {
1652
+ var a, l;
1653
+ e === "column" ? (a = r.columnMetadataMap, l = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, l = r.lastMeasuredRowIndex);
1654
+ var d = l > 0 ? a[l].offset : 0;
1655
+ return d >= o ? Nn(e, n, r, l, 0, o) : li(e, n, r, Math.max(0, l), o);
1656
+ }, Nn = function(e, n, r, o, a, l) {
1655
1657
  for (; a <= o; ) {
1656
- var d = a + Math.floor((o - a) / 2), l = Te(e, n, d, r).offset;
1657
- if (l === c)
1658
+ var d = a + Math.floor((o - a) / 2), c = Te(e, n, d, r).offset;
1659
+ if (c === l)
1658
1660
  return d;
1659
- l < c ? a = d + 1 : l > c && (o = d - 1);
1661
+ c < l ? a = d + 1 : c > l && (o = d - 1);
1660
1662
  }
1661
1663
  return a > 0 ? a - 1 : 0;
1662
- }, di = function(e, n, r, o, a) {
1663
- for (var c = e === "column" ? n.columnCount : n.rowCount, d = 1; o < c && Te(e, n, o, r).offset < a; )
1664
+ }, li = function(e, n, r, o, a) {
1665
+ for (var l = e === "column" ? n.columnCount : n.rowCount, d = 1; o < l && Te(e, n, o, r).offset < a; )
1664
1666
  o += d, d *= 2;
1665
- return On(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), a);
1666
- }, nn = function(e, n, r, o, a, c, d) {
1667
- var l = e === "column" ? n.width : n.height, f = Te(e, n, r, c), m = e === "column" ? Nn(n, c) : En(n, c), C = Math.max(0, Math.min(m - l, f.offset)), h = Math.max(0, f.offset - l + d + f.size);
1668
- switch (o === "smart" && (a >= h - l && a <= C + l ? o = "auto" : o = "center"), o) {
1667
+ return Nn(e, n, r, Math.min(o, l - 1), Math.floor(o / 2), a);
1668
+ }, tn = function(e, n, r, o, a, l, d) {
1669
+ var c = e === "column" ? n.width : n.height, m = Te(e, n, r, l), f = e === "column" ? En(n, l) : Ln(n, l), C = Math.max(0, Math.min(f - c, m.offset)), p = Math.max(0, m.offset - c + d + m.size);
1670
+ switch (o === "smart" && (a >= p - c && a <= C + c ? o = "auto" : o = "center"), o) {
1669
1671
  case "start":
1670
1672
  return C;
1671
1673
  case "end":
1672
- return h;
1674
+ return p;
1673
1675
  case "center":
1674
- return Math.round(h + (C - h) / 2);
1676
+ return Math.round(p + (C - p) / 2);
1675
1677
  case "auto":
1676
1678
  default:
1677
- return a >= h && a <= C ? a : h > C || a < h ? h : C;
1679
+ return a >= p && a <= C ? a : p > C || a < p ? p : C;
1678
1680
  }
1679
- }, ui = /* @__PURE__ */ ci({
1681
+ }, di = /* @__PURE__ */ si({
1680
1682
  getColumnOffset: function(e, n, r) {
1681
1683
  return Te("column", e, n, r).offset;
1682
1684
  },
1683
1685
  getColumnStartIndexForOffset: function(e, n, r) {
1684
- return tn("column", e, r, n);
1686
+ return en("column", e, r, n);
1685
1687
  },
1686
1688
  getColumnStopIndexForStartIndex: function(e, n, r, o) {
1687
- for (var a = e.columnCount, c = e.width, d = Te("column", e, n, o), l = r + c, f = d.offset + d.size, m = n; m < a - 1 && f < l; )
1688
- m++, f += Te("column", e, m, o).size;
1689
- return m;
1689
+ for (var a = e.columnCount, l = e.width, d = Te("column", e, n, o), c = r + l, m = d.offset + d.size, f = n; f < a - 1 && m < c; )
1690
+ f++, m += Te("column", e, f, o).size;
1691
+ return f;
1690
1692
  },
1691
1693
  getColumnWidth: function(e, n, r) {
1692
1694
  return r.columnMetadataMap[n].size;
1693
1695
  },
1694
- getEstimatedTotalHeight: En,
1695
- getEstimatedTotalWidth: Nn,
1696
- getOffsetForColumnAndAlignment: function(e, n, r, o, a, c) {
1697
- return nn("column", e, n, r, o, a, c);
1696
+ getEstimatedTotalHeight: Ln,
1697
+ getEstimatedTotalWidth: En,
1698
+ getOffsetForColumnAndAlignment: function(e, n, r, o, a, l) {
1699
+ return tn("column", e, n, r, o, a, l);
1698
1700
  },
1699
- getOffsetForRowAndAlignment: function(e, n, r, o, a, c) {
1700
- return nn("row", e, n, r, o, a, c);
1701
+ getOffsetForRowAndAlignment: function(e, n, r, o, a, l) {
1702
+ return tn("row", e, n, r, o, a, l);
1701
1703
  },
1702
1704
  getRowOffset: function(e, n, r) {
1703
1705
  return Te("row", e, n, r).offset;
@@ -1706,36 +1708,36 @@ var li = function(e, n) {
1706
1708
  return r.rowMetadataMap[n].size;
1707
1709
  },
1708
1710
  getRowStartIndexForOffset: function(e, n, r) {
1709
- return tn("row", e, r, n);
1711
+ return en("row", e, r, n);
1710
1712
  },
1711
1713
  getRowStopIndexForStartIndex: function(e, n, r, o) {
1712
- for (var a = e.rowCount, c = e.height, d = Te("row", e, n, o), l = r + c, f = d.offset + d.size, m = n; m < a - 1 && f < l; )
1713
- m++, f += Te("row", e, m, o).size;
1714
- return m;
1714
+ for (var a = e.rowCount, l = e.height, d = Te("row", e, n, o), c = r + l, m = d.offset + d.size, f = n; f < a - 1 && m < c; )
1715
+ f++, m += Te("row", e, f, o).size;
1716
+ return f;
1715
1717
  },
1716
1718
  initInstanceProps: function(e, n) {
1717
- var r = e, o = r.estimatedColumnWidth, a = r.estimatedRowHeight, c = {
1719
+ var r = e, o = r.estimatedColumnWidth, a = r.estimatedRowHeight, l = {
1718
1720
  columnMetadataMap: {},
1719
- estimatedColumnWidth: o || en,
1720
- estimatedRowHeight: a || en,
1721
+ estimatedColumnWidth: o || Jt,
1722
+ estimatedRowHeight: a || Jt,
1721
1723
  lastMeasuredColumnIndex: -1,
1722
1724
  lastMeasuredRowIndex: -1,
1723
1725
  rowMetadataMap: {}
1724
1726
  };
1725
- return n.resetAfterColumnIndex = function(d, l) {
1726
- l === void 0 && (l = !0), n.resetAfterIndices({
1727
+ return n.resetAfterColumnIndex = function(d, c) {
1728
+ c === void 0 && (c = !0), n.resetAfterIndices({
1727
1729
  columnIndex: d,
1728
- shouldForceUpdate: l
1730
+ shouldForceUpdate: c
1729
1731
  });
1730
- }, n.resetAfterRowIndex = function(d, l) {
1731
- l === void 0 && (l = !0), n.resetAfterIndices({
1732
+ }, n.resetAfterRowIndex = function(d, c) {
1733
+ c === void 0 && (c = !0), n.resetAfterIndices({
1732
1734
  rowIndex: d,
1733
- shouldForceUpdate: l
1735
+ shouldForceUpdate: c
1734
1736
  });
1735
1737
  }, n.resetAfterIndices = function(d) {
1736
- var l = d.columnIndex, f = d.rowIndex, m = d.shouldForceUpdate, C = m === void 0 ? !0 : m;
1737
- typeof l == "number" && (c.lastMeasuredColumnIndex = Math.min(c.lastMeasuredColumnIndex, l - 1)), typeof f == "number" && (c.lastMeasuredRowIndex = Math.min(c.lastMeasuredRowIndex, f - 1)), n._getItemStyleCache(-1), C && n.forceUpdate();
1738
- }, c;
1738
+ var c = d.columnIndex, m = d.rowIndex, f = d.shouldForceUpdate, C = f === void 0 ? !0 : f;
1739
+ typeof c == "number" && (l.lastMeasuredColumnIndex = Math.min(l.lastMeasuredColumnIndex, c - 1)), typeof m == "number" && (l.lastMeasuredRowIndex = Math.min(l.lastMeasuredRowIndex, m - 1)), n._getItemStyleCache(-1), C && n.forceUpdate();
1740
+ }, l;
1739
1741
  },
1740
1742
  shouldResetStyleCacheOnItemSizeChange: !1,
1741
1743
  validateProps: function(e) {
@@ -1749,7 +1751,7 @@ var li = function(e, n) {
1749
1751
  }
1750
1752
  });
1751
1753
  process.env.NODE_ENV;
1752
- function on(t, e) {
1754
+ function nn(t, e) {
1753
1755
  for (var n in t)
1754
1756
  if (!(n in e))
1755
1757
  return !0;
@@ -1758,145 +1760,145 @@ function on(t, e) {
1758
1760
  return !0;
1759
1761
  return !1;
1760
1762
  }
1761
- var pi = ["style"], hi = ["style"];
1762
- function fi(t, e) {
1763
- var n = t.style, r = Xt(t, pi), o = e.style, a = Xt(e, hi);
1764
- return !on(n, o) && !on(r, a);
1763
+ var ui = ["style"], pi = ["style"];
1764
+ function hi(t, e) {
1765
+ var n = t.style, r = Kt(t, ui), o = e.style, a = Kt(e, pi);
1766
+ return !nn(n, o) && !nn(r, a);
1765
1767
  }
1766
- const mi = () => {
1767
- const { viewMode: t } = He(), { scrollMode: e } = ze(), { setColumnCount: n } = mn(), { virtualScrollableElementRef: r } = nt(), o = Ze(), a = M(() => o.heights.length, [o.heights]), c = M(() => e === re.HORIZONTAL_SCROLLING ? a : t === Oe.DUAL_PAGE ? 2 : 1, [t, e, e, a, r]), d = M(() => o.widths.reduce((v, I, g) => {
1768
- const u = g % c;
1768
+ const fi = () => {
1769
+ const { viewMode: t } = He(), { scrollMode: e } = ze(), { setColumnCount: n } = fn(), { virtualScrollableElementRef: r } = nt(), o = Ze(), a = k(() => o.heights.length, [o.heights]), l = k(() => e === ie.HORIZONTAL_SCROLLING ? a : t === Oe.DUAL_PAGE ? 2 : 1, [t, e, e, a, r]), d = k(() => o.widths.reduce((v, I, g) => {
1770
+ const u = g % l;
1769
1771
  return (!v[u] || I > v[u]) && (v[u] = I), v;
1770
- }, []), [o.widths, c]), l = E(
1771
- (T) => {
1772
- const v = T % d.length;
1772
+ }, []), [o.widths, l]), c = E(
1773
+ (w) => {
1774
+ const v = w % d.length;
1773
1775
  return d[v] || 0;
1774
1776
  },
1775
1777
  [d]
1776
- ), f = E(
1777
- (T) => {
1778
- const v = Array.from({ length: c }, (I, g) => {
1779
- const u = T * c + g;
1778
+ ), m = E(
1779
+ (w) => {
1780
+ const v = Array.from({ length: l }, (I, g) => {
1781
+ const u = w * l + g;
1780
1782
  return o.heights[u] || 0;
1781
1783
  });
1782
1784
  return Math.max(...v);
1783
1785
  },
1784
- [o.heights, c]
1786
+ [o.heights, l]
1785
1787
  );
1786
1788
  D(() => {
1787
- n(c);
1788
- }, [c, n]);
1789
- const m = M(() => e === re.HORIZONTAL_SCROLLING || e === re.PAGE_SCROLLING ? 1 : Math.round(a / c), [c, a, e]), C = M(() => o.heights.reduce((T, v) => T + v, 0) / o.heights.length || 0, [o]), h = M(() => o.widths.reduce((T, v) => T + v, 0) / o.widths.length || 0, [o]), w = M(() => {
1790
- const { rowsHeight: T, columnsWidth: v } = xt(o, c);
1789
+ n(l);
1790
+ }, [l, n]);
1791
+ const f = k(() => e === ie.HORIZONTAL_SCROLLING || e === ie.PAGE_SCROLLING ? 1 : Math.round(a / l), [l, a, e]), C = k(() => o.heights.reduce((w, v) => w + v, 0) / o.heights.length || 0, [o]), p = k(() => o.widths.reduce((w, v) => w + v, 0) / o.widths.length || 0, [o]), _ = k(() => {
1792
+ const { rowsHeight: w, columnsWidth: v } = xt(o, l);
1791
1793
  return {
1792
- rowsHeight: T,
1794
+ rowsHeight: w,
1793
1795
  columnsWidth: v
1794
1796
  };
1795
- }, [o, c]), P = M(() => ({
1796
- width: w.columnsWidth.reduce((T, v) => T + v, 0),
1797
- height: w.rowsHeight.reduce((T, v) => T + v, 0)
1798
- }), [w]);
1797
+ }, [o, l]), P = k(() => ({
1798
+ width: _.columnsWidth.reduce((w, v) => w + v, 0),
1799
+ height: _.rowsHeight.reduce((w, v) => w + v, 0)
1800
+ }), [_]);
1799
1801
  return {
1800
- rowCount: m,
1801
- rowHeight: f,
1802
- columnCount: c,
1803
- columnWidth: l,
1802
+ rowCount: f,
1803
+ rowHeight: m,
1804
+ columnCount: l,
1805
+ columnWidth: c,
1804
1806
  pageDimension: o,
1805
1807
  estimatedRowHeight: C,
1806
- estimatedColumnWidth: h,
1807
- gridDimension: w,
1808
+ estimatedColumnWidth: p,
1809
+ gridDimension: _,
1808
1810
  totalDimension: P
1809
1811
  };
1810
1812
  };
1811
1813
  let ue;
1812
1814
  typeof window < "u" ? ue = window : typeof self < "u" ? ue = self : ue = global;
1813
1815
  let Ct = null, Pt = null;
1814
- const rn = 20, gt = ue.clearTimeout, an = ue.setTimeout, vt = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, sn = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1815
- vt == null || sn == null ? (Ct = gt, Pt = function(e) {
1816
- return an(e, rn);
1816
+ const on = 20, gt = ue.clearTimeout, rn = ue.setTimeout, vt = ue.cancelAnimationFrame || ue.mozCancelAnimationFrame || ue.webkitCancelAnimationFrame, an = ue.requestAnimationFrame || ue.mozRequestAnimationFrame || ue.webkitRequestAnimationFrame;
1817
+ vt == null || an == null ? (Ct = gt, Pt = function(e) {
1818
+ return rn(e, on);
1817
1819
  }) : (Ct = function([e, n]) {
1818
1820
  vt(e), gt(n);
1819
1821
  }, Pt = function(e) {
1820
- const n = sn(function() {
1822
+ const n = an(function() {
1821
1823
  gt(r), e();
1822
- }), r = an(function() {
1824
+ }), r = rn(function() {
1823
1825
  vt(n), e();
1824
- }, rn);
1826
+ }, on);
1825
1827
  return [n, r];
1826
1828
  });
1827
- function gi(t) {
1828
- let e, n, r, o, a, c, d;
1829
- const l = typeof document < "u" && document.attachEvent;
1830
- if (!l) {
1831
- c = function(I) {
1832
- const g = I.__resizeTriggers__, u = g.firstElementChild, p = g.lastElementChild, s = u.firstElementChild;
1833
- p.scrollLeft = p.scrollWidth, p.scrollTop = p.scrollHeight, s.style.width = u.offsetWidth + 1 + "px", s.style.height = u.offsetHeight + 1 + "px", u.scrollLeft = u.scrollWidth, u.scrollTop = u.scrollHeight;
1829
+ function mi(t) {
1830
+ let e, n, r, o, a, l, d;
1831
+ const c = typeof document < "u" && document.attachEvent;
1832
+ if (!c) {
1833
+ l = function(I) {
1834
+ const g = I.__resizeTriggers__, u = g.firstElementChild, h = g.lastElementChild, s = u.firstElementChild;
1835
+ h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight, s.style.width = u.offsetWidth + 1 + "px", s.style.height = u.offsetHeight + 1 + "px", u.scrollLeft = u.scrollWidth, u.scrollTop = u.scrollHeight;
1834
1836
  }, a = function(I) {
1835
1837
  return I.offsetWidth !== I.__resizeLast__.width || I.offsetHeight !== I.__resizeLast__.height;
1836
1838
  }, d = function(I) {
1837
1839
  if (I.target.className && typeof I.target.className.indexOf == "function" && I.target.className.indexOf("contract-trigger") < 0 && I.target.className.indexOf("expand-trigger") < 0)
1838
1840
  return;
1839
1841
  const g = this;
1840
- c(this), this.__resizeRAF__ && Ct(this.__resizeRAF__), this.__resizeRAF__ = Pt(function() {
1842
+ l(this), this.__resizeRAF__ && Ct(this.__resizeRAF__), this.__resizeRAF__ = Pt(function() {
1841
1843
  a(g) && (g.__resizeLast__.width = g.offsetWidth, g.__resizeLast__.height = g.offsetHeight, g.__resizeListeners__.forEach(function(s) {
1842
1844
  s.call(g, I);
1843
1845
  }));
1844
1846
  });
1845
1847
  };
1846
- let h = !1, w = "";
1848
+ let p = !1, _ = "";
1847
1849
  r = "animationstart";
1848
1850
  const P = "Webkit Moz O ms".split(" ");
1849
- let T = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = "";
1851
+ let w = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = "";
1850
1852
  {
1851
1853
  const I = document.createElement("fakeelement");
1852
- if (I.style.animationName !== void 0 && (h = !0), h === !1) {
1854
+ if (I.style.animationName !== void 0 && (p = !0), p === !1) {
1853
1855
  for (let g = 0; g < P.length; g++)
1854
1856
  if (I.style[P[g] + "AnimationName"] !== void 0) {
1855
- v = P[g], w = "-" + v.toLowerCase() + "-", r = T[g], h = !0;
1857
+ v = P[g], _ = "-" + v.toLowerCase() + "-", r = w[g], p = !0;
1856
1858
  break;
1857
1859
  }
1858
1860
  }
1859
1861
  }
1860
- n = "resizeanim", e = "@" + w + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", o = w + "animation: 1ms " + n + "; ";
1862
+ n = "resizeanim", e = "@" + _ + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", o = _ + "animation: 1ms " + n + "; ";
1861
1863
  }
1862
- const f = function(h) {
1863
- if (!h.getElementById("detectElementResize")) {
1864
- const w = (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%; }', P = h.head || h.getElementsByTagName("head")[0], T = h.createElement("style");
1865
- T.id = "detectElementResize", T.type = "text/css", t != null && T.setAttribute("nonce", t), T.styleSheet ? T.styleSheet.cssText = w : T.appendChild(h.createTextNode(w)), P.appendChild(T);
1864
+ const m = function(p) {
1865
+ if (!p.getElementById("detectElementResize")) {
1866
+ const _ = (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%; }', P = p.head || p.getElementsByTagName("head")[0], w = p.createElement("style");
1867
+ w.id = "detectElementResize", w.type = "text/css", t != null && w.setAttribute("nonce", t), w.styleSheet ? w.styleSheet.cssText = _ : w.appendChild(p.createTextNode(_)), P.appendChild(w);
1866
1868
  }
1867
1869
  };
1868
1870
  return {
1869
- addResizeListener: function(h, w) {
1870
- if (l)
1871
- h.attachEvent("onresize", w);
1871
+ addResizeListener: function(p, _) {
1872
+ if (c)
1873
+ p.attachEvent("onresize", _);
1872
1874
  else {
1873
- if (!h.__resizeTriggers__) {
1874
- const P = h.ownerDocument, T = ue.getComputedStyle(h);
1875
- T && T.position === "static" && (h.style.position = "relative"), f(P), h.__resizeLast__ = {}, h.__resizeListeners__ = [], (h.__resizeTriggers__ = P.createElement("div")).className = "resize-triggers";
1875
+ if (!p.__resizeTriggers__) {
1876
+ const P = p.ownerDocument, w = ue.getComputedStyle(p);
1877
+ w && w.position === "static" && (p.style.position = "relative"), m(P), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = P.createElement("div")).className = "resize-triggers";
1876
1878
  const v = P.createElement("div");
1877
1879
  v.className = "expand-trigger", v.appendChild(P.createElement("div"));
1878
1880
  const I = P.createElement("div");
1879
- I.className = "contract-trigger", h.__resizeTriggers__.appendChild(v), h.__resizeTriggers__.appendChild(I), h.appendChild(h.__resizeTriggers__), c(h), h.addEventListener("scroll", d, !0), r && (h.__resizeTriggers__.__animationListener__ = function(u) {
1880
- u.animationName === n && c(h);
1881
- }, h.__resizeTriggers__.addEventListener(r, h.__resizeTriggers__.__animationListener__));
1881
+ I.className = "contract-trigger", p.__resizeTriggers__.appendChild(v), p.__resizeTriggers__.appendChild(I), p.appendChild(p.__resizeTriggers__), l(p), p.addEventListener("scroll", d, !0), r && (p.__resizeTriggers__.__animationListener__ = function(u) {
1882
+ u.animationName === n && l(p);
1883
+ }, p.__resizeTriggers__.addEventListener(r, p.__resizeTriggers__.__animationListener__));
1882
1884
  }
1883
- h.__resizeListeners__.push(w);
1885
+ p.__resizeListeners__.push(_);
1884
1886
  }
1885
1887
  },
1886
- removeResizeListener: function(h, w) {
1887
- if (l)
1888
- h.detachEvent("onresize", w);
1889
- else if (h.__resizeListeners__.splice(h.__resizeListeners__.indexOf(w), 1), !h.__resizeListeners__.length) {
1890
- h.removeEventListener("scroll", d, !0), h.__resizeTriggers__.__animationListener__ && (h.__resizeTriggers__.removeEventListener(r, h.__resizeTriggers__.__animationListener__), h.__resizeTriggers__.__animationListener__ = null);
1888
+ removeResizeListener: function(p, _) {
1889
+ if (c)
1890
+ p.detachEvent("onresize", _);
1891
+ else if (p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(_), 1), !p.__resizeListeners__.length) {
1892
+ p.removeEventListener("scroll", d, !0), p.__resizeTriggers__.__animationListener__ && (p.__resizeTriggers__.removeEventListener(r, p.__resizeTriggers__.__animationListener__), p.__resizeTriggers__.__animationListener__ = null);
1891
1893
  try {
1892
- h.__resizeTriggers__ = !h.removeChild(h.__resizeTriggers__);
1894
+ p.__resizeTriggers__ = !p.removeChild(p.__resizeTriggers__);
1893
1895
  } catch {
1894
1896
  }
1895
1897
  }
1896
1898
  }
1897
1899
  };
1898
1900
  }
1899
- class vi extends uo {
1901
+ class gi extends lo {
1900
1902
  constructor(...e) {
1901
1903
  super(...e), this.state = {
1902
1904
  height: this.props.defaultHeight || 0,
@@ -1909,24 +1911,24 @@ class vi extends uo {
1909
1911
  onResize: o
1910
1912
  } = this.props;
1911
1913
  if (this._parentNode) {
1912
- const a = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(a.paddingLeft || "0"), d = parseFloat(a.paddingRight || "0"), l = parseFloat(a.paddingTop || "0"), f = parseFloat(a.paddingBottom || "0"), m = this._parentNode.getBoundingClientRect(), C = m.height - l - f, h = m.width - c - d;
1913
- if (!n && this.state.height !== C || !r && this.state.width !== h) {
1914
+ const a = window.getComputedStyle(this._parentNode) || {}, l = parseFloat(a.paddingLeft || "0"), d = parseFloat(a.paddingRight || "0"), c = parseFloat(a.paddingTop || "0"), m = parseFloat(a.paddingBottom || "0"), f = this._parentNode.getBoundingClientRect(), C = f.height - c - m, p = f.width - l - d;
1915
+ if (!n && this.state.height !== C || !r && this.state.width !== p) {
1914
1916
  this.setState({
1915
1917
  height: C,
1916
- width: h
1918
+ width: p
1917
1919
  });
1918
- const w = () => {
1920
+ const _ = () => {
1919
1921
  this._didLogDeprecationWarning || (this._didLogDeprecationWarning = !0, console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"));
1920
1922
  };
1921
1923
  typeof o == "function" && o({
1922
1924
  height: C,
1923
- width: h,
1925
+ width: p,
1924
1926
  // TODO Remove these params in the next major release
1925
1927
  get scaledHeight() {
1926
- return w(), C;
1928
+ return _(), C;
1927
1929
  },
1928
1930
  get scaledWidth() {
1929
- return w(), h;
1931
+ return _(), p;
1930
1932
  }
1931
1933
  });
1932
1934
  }
@@ -1944,7 +1946,7 @@ class vi extends uo {
1944
1946
  const r = n.ownerDocument.defaultView.ResizeObserver;
1945
1947
  r != null ? (this._resizeObserver = new r(() => {
1946
1948
  this._timeoutId = setTimeout(this._onResize, 0);
1947
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = gi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1949
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = mi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1948
1950
  }
1949
1951
  }
1950
1952
  componentWillUnmount() {
@@ -1957,61 +1959,61 @@ class vi extends uo {
1957
1959
  defaultWidth: r,
1958
1960
  disableHeight: o = !1,
1959
1961
  disableWidth: a = !1,
1960
- doNotBailOutOnEmptyChildren: c = !1,
1962
+ doNotBailOutOnEmptyChildren: l = !1,
1961
1963
  nonce: d,
1962
- onResize: l,
1963
- style: f = {},
1964
- tagName: m = "div",
1964
+ onResize: c,
1965
+ style: m = {},
1966
+ tagName: f = "div",
1965
1967
  ...C
1966
1968
  } = this.props, {
1967
- height: h,
1968
- width: w
1969
+ height: p,
1970
+ width: _
1969
1971
  } = this.state, P = {
1970
1972
  overflow: "visible"
1971
- }, T = {};
1973
+ }, w = {};
1972
1974
  let v = !1;
1973
- return o || (h === 0 && (v = !0), P.height = 0, T.height = h, T.scaledHeight = h), a || (w === 0 && (v = !0), P.width = 0, T.width = w, T.scaledWidth = w), c && (v = !1), Ke(m, {
1975
+ return o || (p === 0 && (v = !0), P.height = 0, w.height = p, w.scaledHeight = p), a || (_ === 0 && (v = !0), P.width = 0, w.width = _, w.scaledWidth = _), l && (v = !1), Ke(f, {
1974
1976
  ref: this._setRef,
1975
1977
  style: {
1976
1978
  ...P,
1977
- ...f
1979
+ ...m
1978
1980
  },
1979
1981
  ...C
1980
- }, !v && e(T));
1982
+ }, !v && e(w));
1981
1983
  }
1982
1984
  }
1983
- const wi = hn(({ widths: t, heights: e }) => {
1984
- const { focusedPage: n, totalPages: r } = he(), o = M(() => {
1985
- const d = [], l = Math.ceil(n / 2) * 2 - 1;
1986
- if (d.push(l), l + 1 <= r) {
1987
- const f = l + 1;
1988
- d.push(f);
1985
+ const vi = pn(({ widths: t, heights: e }) => {
1986
+ const { focusedPage: n, totalPages: r } = he(), o = k(() => {
1987
+ const d = [], c = Math.ceil(n / 2) * 2 - 1;
1988
+ if (d.push(c), c + 1 <= r) {
1989
+ const m = c + 1;
1990
+ d.push(m);
1989
1991
  }
1990
1992
  return d;
1991
- }, [n, r]), a = M(() => {
1992
- const d = n % 2 === 1 ? n - 1 : n - 2, l = Math.floor(d / 2), f = e(l), m = t(d), C = t(d + 1);
1993
+ }, [n, r]), a = k(() => {
1994
+ const d = n % 2 === 1 ? n - 1 : n - 2, c = Math.floor(d / 2), m = e(c), f = t(d), C = t(d + 1);
1993
1995
  return [
1994
1996
  {
1995
1997
  position: "absolute",
1996
1998
  left: 0,
1997
- width: m,
1998
- height: f
1999
+ width: f,
2000
+ height: m
1999
2001
  },
2000
2002
  {
2001
2003
  position: "absolute",
2002
- left: m,
2004
+ left: f,
2003
2005
  width: C,
2004
- height: f
2006
+ height: m
2005
2007
  }
2006
2008
  ];
2007
- }, [t, e, o]), c = M(() => a.reduce((d, l) => d + Number(l.width || 0), 0), [a]);
2008
- return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: o.map((d, l) => /* @__PURE__ */ i(Ot, { style: a[l], pageNumber: d }, d)) });
2009
- }), _i = ({ widths: t, heights: e }) => {
2010
- const { focusedPage: n } = he(), r = M(() => ({
2009
+ }, [t, e, o]), l = k(() => a.reduce((d, c) => d + Number(c.width || 0), 0), [a]);
2010
+ return /* @__PURE__ */ i("div", { style: { width: l, position: "relative" }, children: o.map((d, c) => /* @__PURE__ */ i(Ot, { style: a[c], pageNumber: d }, d)) });
2011
+ }), wi = ({ widths: t, heights: e }) => {
2012
+ const { focusedPage: n } = he(), r = k(() => ({
2011
2013
  position: "absolute",
2012
2014
  width: t(n - 1),
2013
2015
  height: e(n - 1)
2014
- }), [t, e, n]), o = M(() => t(n - 1), [t]);
2016
+ }), [t, e, n]), o = k(() => t(n - 1), [t]);
2015
2017
  return /* @__PURE__ */ i(
2016
2018
  "div",
2017
2019
  {
@@ -2022,119 +2024,119 @@ const wi = hn(({ widths: t, heights: e }) => {
2022
2024
  children: /* @__PURE__ */ i(Ot, { style: r, pageNumber: n }, n)
2023
2025
  }
2024
2026
  );
2025
- }, bi = (t, e, n) => {
2026
- const r = H(), { contentRef: o } = Ce(), { heights: a, widths: c } = Ze(), { setFocusedPage: d } = he(), [l, f] = $([]), { targetScrollPage: m } = gn(), C = Rt(l, 0, 500), h = M(() => {
2027
- const { rowsHeight: P, columnsWidth: T } = xt({ heights: a, widths: c }, t);
2027
+ }, _i = (t, e, n) => {
2028
+ const r = H(), { contentRef: o } = Ce(), { heights: a, widths: l } = Ze(), { setFocusedPage: d } = he(), [c, m] = $([]), { targetScrollPage: f } = mn(), C = Rt(c, 0, 500), p = k(() => {
2029
+ const { rowsHeight: P, columnsWidth: w } = xt({ heights: a, widths: l }, t);
2028
2030
  return a.map((v, I) => {
2029
- const g = c[I], u = sr(I + 1, t), p = T.slice(0, u.columnIndex).reduce((y, x) => y + x, 0), s = P.slice(0, u.rowIndex).reduce((y, x) => y + x, 0), _ = p + g, b = s + v;
2031
+ const g = l[I], u = ar(I + 1, t), h = w.slice(0, u.columnIndex).reduce((y, x) => y + x, 0), s = P.slice(0, u.rowIndex).reduce((y, x) => y + x, 0), b = h + g, T = s + v;
2030
2032
  return {
2031
2033
  pageNumber: I + 1,
2032
2034
  ...u,
2033
2035
  width: g,
2034
2036
  height: v,
2035
- startX: p,
2037
+ startX: h,
2036
2038
  startY: s,
2037
- endX: _,
2038
- endY: b
2039
+ endX: b,
2040
+ endY: T
2039
2041
  };
2040
2042
  });
2041
- }, [a, c, t, e]);
2043
+ }, [a, l, t, e]);
2042
2044
  D(() => {
2043
- var T;
2044
- C.length > 0 && !m.current && d(C[0].pageNumber), ((T = C[0]) == null ? void 0 : T.ratio) && C.some((v) => v.pageNumber === m.current) && setTimeout(() => {
2045
- m.current = void 0;
2045
+ var w;
2046
+ C.length > 0 && !f.current && d(C[0].pageNumber), ((w = C[0]) == null ? void 0 : w.ratio) && C.some((v) => v.pageNumber === f.current) && setTimeout(() => {
2047
+ f.current = void 0;
2046
2048
  }, 500);
2047
2049
  }, [C, d]);
2048
- const w = E(
2050
+ const _ = E(
2049
2051
  (P) => {
2050
2052
  r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2051
- const T = P.target, v = {
2052
- startTop: T.scrollTop,
2053
- startLeft: T.scrollLeft,
2054
- endTop: T.scrollTop + T.clientHeight,
2055
- endLeft: T.scrollLeft + T.clientWidth
2056
- }, I = h.filter((g) => {
2057
- const u = g.endX >= v.startLeft && g.endY >= v.startTop, p = g.startX <= v.endLeft && g.startY <= v.endTop;
2058
- return u && p;
2053
+ const w = P.target, v = {
2054
+ startTop: w.scrollTop,
2055
+ startLeft: w.scrollLeft,
2056
+ endTop: w.scrollTop + w.clientHeight,
2057
+ endLeft: w.scrollLeft + w.clientWidth
2058
+ }, I = p.filter((g) => {
2059
+ const u = g.endX >= v.startLeft && g.endY >= v.startTop, h = g.startX <= v.endLeft && g.startY <= v.endTop;
2060
+ return u && h;
2059
2061
  }).map((g) => {
2060
- const u = v.startLeft > g.startX ? v.startLeft : g.startX, p = v.startTop > g.startY ? v.startTop : g.startY, s = v.endLeft < g.endX ? v.endLeft : g.endX, _ = v.endTop < g.endY ? v.endTop : g.endY, b = s - u, y = _ - p, S = +(b * y / (g.width * g.height) * 100).toFixed(2);
2062
+ const u = v.startLeft > g.startX ? v.startLeft : g.startX, h = v.startTop > g.startY ? v.startTop : g.startY, s = v.endLeft < g.endX ? v.endLeft : g.endX, b = v.endTop < g.endY ? v.endTop : g.endY, T = s - u, y = b - h, S = +(T * y / (g.width * g.height) * 100).toFixed(2);
2061
2063
  return {
2062
2064
  pageNumber: g.pageNumber,
2063
2065
  ratio: S
2064
2066
  };
2065
2067
  }).sort((g, u) => u.ratio - g.ratio);
2066
- f(I);
2068
+ m(I);
2067
2069
  });
2068
2070
  },
2069
- [o, h]
2071
+ [o, p]
2070
2072
  );
2071
2073
  D(() => {
2072
2074
  if (n)
2073
- return n == null || n.addEventListener("scroll", w), () => {
2074
- n == null || n.removeEventListener("scroll", w);
2075
+ return n == null || n.addEventListener("scroll", _), () => {
2076
+ n == null || n.removeEventListener("scroll", _);
2075
2077
  };
2076
- }, [n, w]);
2077
- }, Dn = rt((t, e) => {
2078
- const { children: n, toolbarRef: r, style: o, className: a, ...c } = t, { customVariables: d, customDarkVariables: l } = $o(), { darkMode: f } = wo();
2078
+ }, [n, _]);
2079
+ }, On = rt((t, e) => {
2080
+ const { children: n, toolbarRef: r, style: o, className: a, ...l } = t, { customVariables: d, customDarkVariables: c } = Ho(), { darkMode: m } = vo();
2079
2081
  return /* @__PURE__ */ i(
2080
2082
  "div",
2081
2083
  {
2082
2084
  ref: e,
2083
- ...c,
2085
+ ...l,
2084
2086
  className: se(
2085
2087
  ye["rp-theme-variables"],
2086
2088
  ye["rp-container"],
2087
- f ? ye["rp-dark-mode"] : "",
2089
+ m ? ye["rp-dark-mode"] : "",
2088
2090
  a
2089
2091
  ),
2090
2092
  style: {
2091
2093
  "--rp-toolbar-height": `${(r == null ? void 0 : r.clientHeight) || 48}px`,
2092
2094
  ...d,
2093
- ...f ? l : {},
2095
+ ...m ? c : {},
2094
2096
  ...o
2095
2097
  },
2096
2098
  children: n
2097
2099
  }
2098
2100
  );
2099
- }), Ti = hn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2100
- const o = cr(e, t, n.columnCount);
2101
+ }), bi = pn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2102
+ const o = sr(e, t, n.columnCount);
2101
2103
  return /* @__PURE__ */ i(Ot, { style: r, pageNumber: o }, o);
2102
- }, fi), bc = () => {
2103
- const t = H(new Yo()), { initialPage: e = 1, initialScrollMode: n, instanceId: r } = To(), { pagesRef: o, setPagesRef: a, setContentRef: c } = Ce(), { scrollToPage: d } = Cn(), {
2104
- virtualScrollRef: l,
2105
- getVirtualScrollRef: f,
2106
- getPageScrollElementRef: m,
2104
+ }, hi), _c = () => {
2105
+ const t = H(new Qo()), { initialPage: e = 1, initialScrollMode: n, instanceId: r } = bo(), { pagesRef: o, setPagesRef: a, setContentRef: l } = Ce(), { scrollToPage: d } = Tn(), {
2106
+ virtualScrollRef: c,
2107
+ getVirtualScrollRef: m,
2108
+ getPageScrollElementRef: f,
2107
2109
  getVirtualScrollableElementRef: C,
2108
- setTotalInnerDimensions: h,
2109
- virtualScrollableElementRef: w,
2110
+ setTotalInnerDimensions: p,
2111
+ virtualScrollableElementRef: _,
2110
2112
  totalInnerDimensions: P,
2111
- pageScrollElementRef: T
2112
- } = nt(), v = H(!0), { nextPage: I, prevPage: g, setFocusedPage: u, focusedPage: p } = he(), { scrollMode: s } = ze(), { viewMode: _ } = He(), b = H(null), { loading: y, error: x } = ie(), { passwordRequired: S } = vo(), { LoaderImageComponent: R } = yt(), L = H(
2113
+ pageScrollElementRef: w
2114
+ } = nt(), v = H(!0), { nextPage: I, prevPage: g, setFocusedPage: u, focusedPage: h } = he(), { scrollMode: s } = ze(), { viewMode: b } = He(), T = H(null), { loading: y, error: x } = re(), { passwordRequired: S } = go(), { LoaderImageComponent: R } = yt(), L = H(
2113
2115
  P
2114
2116
  ), N = H({
2115
- viewMode: _,
2117
+ viewMode: b,
2116
2118
  scrollMode: s
2117
- }), k = H(!1), A = H(), { isFullScreen: z } = Co(), {
2119
+ }), M = H(!1), A = H(), { isFullScreen: z } = To(), {
2118
2120
  pageDimension: F,
2119
2121
  rowCount: O,
2120
- rowHeight: q,
2121
- columnCount: G,
2122
+ rowHeight: G,
2123
+ columnCount: q,
2122
2124
  columnWidth: V,
2123
2125
  estimatedColumnWidth: B,
2124
2126
  estimatedRowHeight: ee,
2125
2127
  totalDimension: U
2126
- } = mi(), Q = Rt(P, 100), { onScroll: Y } = Do(), te = H();
2127
- bi(G, O, w);
2128
+ } = fi(), Q = Rt(P, 100), { onScroll: Y } = Oo(), te = H();
2129
+ _i(q, O, _);
2128
2130
  const ne = H({
2129
2131
  scrollTop: 0,
2130
2132
  scrollLeft: 0
2131
2133
  });
2132
- ur(o);
2133
- const { isPressed: J } = lr(), { selectionMode: ce } = bo(), { initializeGrabScroll: ae, resetGrabState: we } = dr({
2134
+ dr(o);
2135
+ const { isPressed: J } = cr(), { selectionMode: ce } = _o(), { initializeGrabScroll: ae, resetGrabState: we } = lr({
2134
2136
  isPressed: J
2135
- }), _e = M(() => ce === mo.HAND, [ce]), st = M(() => ({
2136
- columnCount: G
2137
- }), [G]), ct = E(
2137
+ }), _e = k(() => ce === fo.HAND, [ce]), st = k(() => ({
2138
+ columnCount: q
2139
+ }), [q]), ct = E(
2138
2140
  (Z) => {
2139
2141
  const j = document.activeElement !== o;
2140
2142
  !z && j || (["ArrowUp", "ArrowLeft"].includes(Z.key) ? (Z.preventDefault(), g()) : ["ArrowDown", "ArrowRight"].includes(Z.key) && (Z.preventDefault(), I()));
@@ -2144,32 +2146,32 @@ const wi = hn(({ widths: t, heights: e }) => {
2144
2146
  D(() => (window.addEventListener("keydown", ct), () => {
2145
2147
  window.removeEventListener("keydown", ct);
2146
2148
  }), [ct]), D(() => {
2147
- if (b.current && (b.current.style.position = "relative"), !!l)
2149
+ if (T.current && (T.current.style.position = "relative"), !!c)
2148
2150
  for (let Z = 0; Z < O; Z++)
2149
- for (let j = 0; j < G; j++)
2150
- l.resetAfterIndices({
2151
+ for (let j = 0; j < q; j++)
2152
+ c.resetAfterIndices({
2151
2153
  columnIndex: j,
2152
2154
  rowIndex: Z,
2153
2155
  shouldForceUpdate: !0
2154
2156
  });
2155
- }, [O, G, F, l]);
2156
- const to = E(
2157
+ }, [O, q, F, c]);
2158
+ const eo = E(
2157
2159
  (Z, j) => {
2158
- if (!w)
2160
+ if (!_)
2159
2161
  return { scrollTop: 0, scrollLeft: 0 };
2160
2162
  const Re = ne.current.scrollTop > j, Le = ne.current.scrollLeft > Z;
2161
2163
  return Re || Le ? ne.current : {
2162
- scrollTop: w.scrollTop,
2163
- scrollLeft: w.scrollLeft
2164
+ scrollTop: _.scrollTop,
2165
+ scrollLeft: _.scrollLeft
2164
2166
  };
2165
2167
  },
2166
- [w]
2168
+ [_]
2167
2169
  ), Ft = E(
2168
2170
  (Z, j) => {
2169
- if (N.current.viewMode !== _ || N.current.scrollMode !== s) {
2170
- te.current && clearTimeout(te.current), k.current = !0, d(p, "auto"), te.current = setTimeout(() => {
2171
+ if (N.current.viewMode !== b || N.current.scrollMode !== s) {
2172
+ te.current && clearTimeout(te.current), M.current = !0, d(h, "auto"), te.current = setTimeout(() => {
2171
2173
  requestAnimationFrame(() => {
2172
- N.current = { viewMode: _, scrollMode: s };
2174
+ N.current = { viewMode: b, scrollMode: s };
2173
2175
  });
2174
2176
  }, 100);
2175
2177
  return;
@@ -2177,16 +2179,16 @@ const wi = hn(({ widths: t, heights: e }) => {
2177
2179
  const Le = Z.scrollTop, lt = Z.scrollLeft;
2178
2180
  if (!j.height || !j.width)
2179
2181
  return;
2180
- k.current = !0;
2181
- const { height: Ee, width: dt } = j, { height: kt, width: Mt } = L.current;
2182
- if (kt === Ee && Mt === dt)
2182
+ M.current = !0;
2183
+ const { height: Ee, width: dt } = j, { height: Mt, width: kt } = L.current;
2184
+ if (Mt === Ee && kt === dt)
2183
2185
  return;
2184
- const io = Le / kt * Ee, ao = lt / Mt * dt, so = Math.round(Math.min(io, Ee)) || 0, co = Math.round(Math.min(ao, dt)) || 0;
2186
+ const ro = Le / Mt * Ee, io = lt / kt * dt, ao = Math.round(Math.min(ro, Ee)) || 0, so = Math.round(Math.min(io, dt)) || 0;
2185
2187
  A.current = setTimeout(() => {
2186
2188
  requestAnimationFrame(() => {
2187
- w == null || w.scrollTo({
2188
- top: so,
2189
- left: co,
2189
+ _ == null || _.scrollTo({
2190
+ top: ao,
2191
+ left: so,
2190
2192
  behavior: "auto"
2191
2193
  });
2192
2194
  });
@@ -2195,43 +2197,43 @@ const wi = hn(({ widths: t, heights: e }) => {
2195
2197
  width: j.width
2196
2198
  };
2197
2199
  },
2198
- [w, _, s, d]
2200
+ [_, b, s, d]
2199
2201
  );
2200
2202
  D(() => {
2201
2203
  clearTimeout(A.current);
2202
2204
  const Z = Array.from({ length: O }).reduce(
2203
- (Le, lt, Ee) => Le + q(Ee),
2205
+ (Le, lt, Ee) => Le + G(Ee),
2204
2206
  0
2205
- ), j = Array.from({ length: G }).reduce(
2207
+ ), j = Array.from({ length: q }).reduce(
2206
2208
  (Le, lt, Ee) => Le + V(Ee),
2207
2209
  0
2208
- ), Re = to(j, Z);
2209
- ne.current = Re, Ft(Re, { height: Z, width: j }), h({
2210
+ ), Re = eo(j, Z);
2211
+ ne.current = Re, Ft(Re, { height: Z, width: j }), p({
2210
2212
  height: Z,
2211
2213
  width: j
2212
2214
  });
2213
- }, [F, O, G, Ft]);
2214
- const no = E(
2215
+ }, [F, O, q, Ft]);
2216
+ const to = E(
2215
2217
  (Z) => {
2216
2218
  ne.current = {
2217
2219
  scrollTop: Z.scrollTop,
2218
2220
  scrollLeft: Z.scrollLeft
2219
2221
  };
2220
2222
  },
2221
- [w]
2223
+ [_]
2222
2224
  );
2223
2225
  D(() => {
2224
2226
  if (Y)
2225
- return T && T.addEventListener("scroll", Y), w && w.addEventListener("scroll", Y), () => {
2226
- T == null || T.removeEventListener("scroll", Y), w == null || w.removeEventListener("scroll", Y);
2227
+ return w && w.addEventListener("scroll", Y), _ && _.addEventListener("scroll", Y), () => {
2228
+ w == null || w.removeEventListener("scroll", Y), _ == null || _.removeEventListener("scroll", Y);
2227
2229
  };
2228
- }, [w, T, Y]), D(() => () => {
2230
+ }, [_, w, Y]), D(() => () => {
2229
2231
  te.current && clearTimeout(te.current);
2230
2232
  }, []);
2231
- const oo = M(() => se(le["rp-pages-container"], {
2233
+ const no = k(() => se(le["rp-pages-container"], {
2232
2234
  [le["rp-cursor-grab"]]: _e && !J,
2233
2235
  [le["rp-cursor-grabbing"]]: _e && J
2234
- }), [_e, J]), ro = E(
2236
+ }), [_e, J]), oo = E(
2235
2237
  (Z) => {
2236
2238
  if (_e && Z) {
2237
2239
  const j = se(le["rp-pages"]), Re = document.querySelector(`.${j}`);
@@ -2244,8 +2246,8 @@ const wi = hn(({ widths: t, heights: e }) => {
2244
2246
  y && we();
2245
2247
  }, [y]), D(() => {
2246
2248
  if (!(Q.height === 0 || !v.current)) {
2247
- if (n === re.PAGE_SCROLLING) {
2248
- e !== p && T && u(e), v.current = !1;
2249
+ if (n === ie.PAGE_SCROLLING) {
2250
+ e !== h && w && u(e), v.current = !1;
2249
2251
  return;
2250
2252
  }
2251
2253
  d(e, "auto"), u(e), v.current = !1;
@@ -2253,40 +2255,40 @@ const wi = hn(({ widths: t, heights: e }) => {
2253
2255
  }, [
2254
2256
  d,
2255
2257
  n,
2256
- T,
2258
+ w,
2257
2259
  u,
2258
2260
  Q
2259
2261
  ]), /* @__PURE__ */ W(fe, { children: [
2260
- /* @__PURE__ */ i(Ho, { ref: c, children: /* @__PURE__ */ i(
2261
- Dn,
2262
+ /* @__PURE__ */ i(Wo, { ref: l, children: /* @__PURE__ */ i(
2263
+ On,
2262
2264
  {
2263
2265
  id: r,
2264
2266
  ref: a,
2265
2267
  tabIndex: -1,
2266
- className: oo,
2268
+ className: no,
2267
2269
  style: {
2268
- "--scale-round-x": `${Bt(t.current.sx)[1]}px`,
2269
- "--scale-round-y": `${Bt(t.current.sy)[1]}px`
2270
+ "--scale-round-x": `${Vt(t.current.sx)[1]}px`,
2271
+ "--scale-round-y": `${Vt(t.current.sy)[1]}px`
2270
2272
  },
2271
- children: /* @__PURE__ */ i(vi, { style: { minHeight: "50px" }, children: ({ width: Z, height: j }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: ro, style: { width: Z, height: j }, children: s === re.PAGE_SCROLLING ? /* @__PURE__ */ i(
2273
+ children: /* @__PURE__ */ i(gi, { style: { minHeight: "50px" }, children: ({ width: Z, height: j }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: oo, style: { width: Z, height: j }, children: s === ie.PAGE_SCROLLING ? /* @__PURE__ */ i(
2272
2274
  "div",
2273
2275
  {
2274
- ref: m,
2276
+ ref: f,
2275
2277
  style: { width: Z, height: j },
2276
2278
  className: se(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
2277
- children: _ === Oe.DUAL_PAGE ? /* @__PURE__ */ i(wi, { widths: V, heights: q }) : /* @__PURE__ */ i(_i, { widths: V, heights: q })
2279
+ children: b === Oe.DUAL_PAGE ? /* @__PURE__ */ i(vi, { widths: V, heights: G }) : /* @__PURE__ */ i(wi, { widths: V, heights: G })
2278
2280
  }
2279
2281
  ) : ee ? /* @__PURE__ */ i(
2280
- ui,
2282
+ di,
2281
2283
  {
2282
- ref: f,
2284
+ ref: m,
2283
2285
  itemData: st,
2284
2286
  outerRef: C,
2285
- innerRef: b,
2286
- onScroll: no,
2287
- columnCount: G,
2287
+ innerRef: T,
2288
+ onScroll: to,
2289
+ columnCount: q,
2288
2290
  columnWidth: V,
2289
- rowHeight: q,
2291
+ rowHeight: G,
2290
2292
  height: j,
2291
2293
  width: Z,
2292
2294
  estimatedColumnWidth: B,
@@ -2294,15 +2296,15 @@ const wi = hn(({ widths: t, heights: e }) => {
2294
2296
  rowCount: O,
2295
2297
  className: se(
2296
2298
  le["rp-pages"],
2297
- s === re.HORIZONTAL_SCROLLING ? le["rp-pages-horizontal-scroll"] : ""
2299
+ s === ie.HORIZONTAL_SCROLLING ? le["rp-pages-horizontal-scroll"] : ""
2298
2300
  ),
2299
2301
  style: {
2300
2302
  "--rp-pages-height": `${U.height}px`,
2301
2303
  "--rp-pages-width": `${U.width}px`,
2302
2304
  "--rp-row-count": `${O}`,
2303
- "--rp-column-count": `${G}`
2305
+ "--rp-column-count": `${q}`
2304
2306
  },
2305
- children: Ti
2307
+ children: bi
2306
2308
  }
2307
2309
  ) : !y && !x ? /* @__PURE__ */ i(
2308
2310
  "div",
@@ -2317,7 +2319,7 @@ const wi = hn(({ widths: t, heights: e }) => {
2317
2319
  },
2318
2320
  children: R && /* @__PURE__ */ i(R, {})
2319
2321
  }
2320
- ) : x === go.NOT_SUPPORTED ? /* @__PURE__ */ i("div", { className: le["rp-not-supported"], children: /* @__PURE__ */ W("div", { className: le["rp-not-supported-content"], children: [
2322
+ ) : x === mo.NOT_SUPPORTED ? /* @__PURE__ */ i("div", { className: le["rp-not-supported"], children: /* @__PURE__ */ W("div", { className: le["rp-not-supported-content"], children: [
2321
2323
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
2322
2324
  /* @__PURE__ */ i("div", { children: /* @__PURE__ */ W("ul", { children: [
2323
2325
  /* @__PURE__ */ i("li", { children: "Chrome 110+" }),
@@ -2330,7 +2332,7 @@ const wi = hn(({ widths: t, heights: e }) => {
2330
2332
  ] }) }) : null }) })
2331
2333
  }
2332
2334
  ) }),
2333
- S && /* @__PURE__ */ i(pr, {})
2335
+ S && /* @__PURE__ */ i(ur, {})
2334
2336
  ] });
2335
2337
  }, $e = {
2336
2338
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2342,33 +2344,33 @@ const wi = hn(({ widths: t, heights: e }) => {
2342
2344
  "rp-paginate": "_rp-paginate_1gck0_1",
2343
2345
  "rp-page-input": "_rp-page-input_1gck0_6",
2344
2346
  "rp-total-page": "_rp-total-page_1gck0_18"
2345
- }, Ci = () => {
2347
+ }, Ti = () => {
2346
2348
  const { prevIcon: t } = ve(), { prevIcon: e } = ge();
2347
2349
  return t || e || /* @__PURE__ */ i(Ue, {});
2348
- }, Pi = () => {
2350
+ }, Ci = () => {
2349
2351
  const { nextIcon: t } = ve(), { nextIcon: e } = ge();
2350
2352
  return t || e || /* @__PURE__ */ i(Ue, { style: { transform: "rotate(180deg" } });
2351
- }, yi = () => {
2352
- const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: a } = he(), [c, d] = $(t.toString()), { pageNavigationTool: l = !0 } = Pe(), { pageNavigationTool: f = !0 } = Se(), { isSmallScreen: m } = xe(), { viewMode: C } = He(), { scrollMode: h } = ze(), { localeMessages: w } = pe();
2353
+ }, Pi = () => {
2354
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: a } = he(), [l, d] = $(t.toString()), { pageNavigationTool: c = !0 } = Pe(), { pageNavigationTool: m = !0 } = Se(), { isSmallScreen: f } = xe(), { viewMode: C } = He(), { scrollMode: p } = ze(), { localeMessages: _ } = pe();
2353
2355
  D(() => {
2354
2356
  d(t.toString());
2355
2357
  }, [t]);
2356
2358
  const P = E((u) => {
2357
- const p = u.target.value;
2358
- d(p);
2359
- }, []), T = E(async () => {
2360
- const u = a(c);
2359
+ const h = u.target.value;
2360
+ d(h);
2361
+ }, []), w = E(async () => {
2362
+ const u = a(l);
2361
2363
  u.success || d(u.currentPage.toString());
2362
- }, [a, c, e]), v = E(() => {
2364
+ }, [a, l, e]), v = E(() => {
2363
2365
  d(t.toString());
2364
2366
  }, [t]), I = E(
2365
2367
  (u) => {
2366
- u.key === "Enter" && T();
2368
+ u.key === "Enter" && w();
2367
2369
  },
2368
- [T]
2369
- ), g = M(() => C === Oe.DUAL_PAGE && h === re.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, C, h]);
2370
- return !l || !f ? null : typeof l != "boolean" ? /* @__PURE__ */ i(
2371
- l,
2370
+ [w]
2371
+ ), g = k(() => C === Oe.DUAL_PAGE && p === ie.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, C, p]);
2372
+ return !c || !m ? null : typeof c != "boolean" ? /* @__PURE__ */ i(
2373
+ c,
2372
2374
  {
2373
2375
  total: e,
2374
2376
  current: t,
@@ -2377,8 +2379,8 @@ const wi = hn(({ widths: t, heights: e }) => {
2377
2379
  goToPage: a,
2378
2380
  changePage: n
2379
2381
  }
2380
- ) : typeof f != "boolean" ? /* @__PURE__ */ i(
2381
- f,
2382
+ ) : typeof m != "boolean" ? /* @__PURE__ */ i(
2383
+ m,
2382
2384
  {
2383
2385
  total: e,
2384
2386
  current: t,
@@ -2388,22 +2390,22 @@ const wi = hn(({ widths: t, heights: e }) => {
2388
2390
  changePage: n
2389
2391
  }
2390
2392
  ) : /* @__PURE__ */ W("div", { className: wt["rp-paginate"], children: [
2391
- !m && /* @__PURE__ */ i(K, { content: w == null ? void 0 : w.previousPageTooltip, children: /* @__PURE__ */ i(
2393
+ !f && /* @__PURE__ */ i(K, { content: _ == null ? void 0 : _.previousPageTooltip, children: /* @__PURE__ */ i(
2392
2394
  de,
2393
2395
  {
2394
2396
  onClick: o,
2395
- "aria-label": w == null ? void 0 : w.previousPageTooltip,
2397
+ "aria-label": _ == null ? void 0 : _.previousPageTooltip,
2396
2398
  "aria-disabled": t === 1,
2397
- children: /* @__PURE__ */ i(Ci, {})
2399
+ children: /* @__PURE__ */ i(Ti, {})
2398
2400
  }
2399
2401
  ) }),
2400
- /* @__PURE__ */ i(K, { content: w == null ? void 0 : w.currentPageTooltip, children: /* @__PURE__ */ i(
2401
- fn,
2402
+ /* @__PURE__ */ i(K, { content: _ == null ? void 0 : _.currentPageTooltip, children: /* @__PURE__ */ i(
2403
+ hn,
2402
2404
  {
2403
2405
  onKeyDown: I,
2404
2406
  onBlur: v,
2405
2407
  onChange: P,
2406
- value: c,
2408
+ value: l,
2407
2409
  className: wt["rp-page-input"],
2408
2410
  id: "page-input",
2409
2411
  name: "page-input"
@@ -2413,52 +2415,52 @@ const wi = hn(({ widths: t, heights: e }) => {
2413
2415
  "/",
2414
2416
  e
2415
2417
  ] }),
2416
- !m && /* @__PURE__ */ i(K, { content: w == null ? void 0 : w.nextPageTooltip, children: /* @__PURE__ */ i(
2418
+ !f && /* @__PURE__ */ i(K, { content: _ == null ? void 0 : _.nextPageTooltip, children: /* @__PURE__ */ i(
2417
2419
  de,
2418
2420
  {
2419
2421
  onClick: r,
2420
- "aria-label": w == null ? void 0 : w.nextPageTooltip,
2422
+ "aria-label": _ == null ? void 0 : _.nextPageTooltip,
2421
2423
  "aria-disabled": g,
2422
- children: /* @__PURE__ */ i(Pi, {})
2424
+ children: /* @__PURE__ */ i(Ci, {})
2423
2425
  }
2424
2426
  ) })
2425
2427
  ] });
2426
2428
  };
2427
- var at = "Dialog", [zn, Tc] = wr(at), [Ii, me] = zn(at), An = (t) => {
2429
+ var at = "Dialog", [Dn, bc] = vr(at), [yi, me] = Dn(at), zn = (t) => {
2428
2430
  const {
2429
2431
  __scopeDialog: e,
2430
2432
  children: n,
2431
2433
  open: r,
2432
2434
  defaultOpen: o,
2433
2435
  onOpenChange: a,
2434
- modal: c = !0
2435
- } = t, d = X.useRef(null), l = X.useRef(null), [f, m] = br({
2436
+ modal: l = !0
2437
+ } = t, d = X.useRef(null), c = X.useRef(null), [m, f] = _r({
2436
2438
  prop: r,
2437
2439
  defaultProp: o ?? !1,
2438
2440
  onChange: a,
2439
2441
  caller: at
2440
2442
  });
2441
2443
  return /* @__PURE__ */ i(
2442
- Ii,
2444
+ yi,
2443
2445
  {
2444
2446
  scope: e,
2445
2447
  triggerRef: d,
2446
- contentRef: l,
2448
+ contentRef: c,
2447
2449
  contentId: pt(),
2448
2450
  titleId: pt(),
2449
2451
  descriptionId: pt(),
2450
- open: f,
2451
- onOpenChange: m,
2452
- onOpenToggle: X.useCallback(() => m((C) => !C), [m]),
2453
- modal: c,
2452
+ open: m,
2453
+ onOpenChange: f,
2454
+ onOpenToggle: X.useCallback(() => f((C) => !C), [f]),
2455
+ modal: l,
2454
2456
  children: n
2455
2457
  }
2456
2458
  );
2457
2459
  };
2458
- An.displayName = at;
2459
- var Fn = "DialogTrigger", Si = X.forwardRef(
2460
+ zn.displayName = at;
2461
+ var An = "DialogTrigger", Ii = X.forwardRef(
2460
2462
  (t, e) => {
2461
- const { __scopeDialog: n, ...r } = t, o = me(Fn, n), a = Lt(e, o.triggerRef);
2463
+ const { __scopeDialog: n, ...r } = t, o = me(An, n), a = Lt(e, o.triggerRef);
2462
2464
  return /* @__PURE__ */ i(
2463
2465
  je.button,
2464
2466
  {
@@ -2469,33 +2471,33 @@ var Fn = "DialogTrigger", Si = X.forwardRef(
2469
2471
  "data-state": At(o.open),
2470
2472
  ...r,
2471
2473
  ref: a,
2472
- onClick: qe(t.onClick, o.onOpenToggle)
2474
+ onClick: Ge(t.onClick, o.onOpenToggle)
2473
2475
  }
2474
2476
  );
2475
2477
  }
2476
2478
  );
2477
- Si.displayName = Fn;
2478
- var Dt = "DialogPortal", [xi, kn] = zn(Dt, {
2479
+ Ii.displayName = An;
2480
+ var Dt = "DialogPortal", [Si, Fn] = Dn(Dt, {
2479
2481
  forceMount: void 0
2480
2482
  }), Mn = (t) => {
2481
2483
  const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, a = me(Dt, e);
2482
- return /* @__PURE__ */ i(xi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ i(Et, { present: n || a.open, children: /* @__PURE__ */ i(xr, { asChild: !0, container: o, children: c }) })) });
2484
+ return /* @__PURE__ */ i(Si, { scope: e, forceMount: n, children: X.Children.map(r, (l) => /* @__PURE__ */ i(Et, { present: n || a.open, children: /* @__PURE__ */ i(Sr, { asChild: !0, container: o, children: l }) })) });
2483
2485
  };
2484
2486
  Mn.displayName = Dt;
2485
- var et = "DialogOverlay", Wn = X.forwardRef(
2487
+ var et = "DialogOverlay", kn = X.forwardRef(
2486
2488
  (t, e) => {
2487
- const n = kn(et, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(et, t.__scopeDialog);
2488
- return a.modal ? /* @__PURE__ */ i(Et, { present: r || a.open, children: /* @__PURE__ */ i(Li, { ...o, ref: e }) }) : null;
2489
+ const n = Fn(et, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(et, t.__scopeDialog);
2490
+ return a.modal ? /* @__PURE__ */ i(Et, { present: r || a.open, children: /* @__PURE__ */ i(Ri, { ...o, ref: e }) }) : null;
2489
2491
  }
2490
2492
  );
2491
- Wn.displayName = et;
2492
- var Ri = Tr("DialogOverlay.RemoveScroll"), Li = X.forwardRef(
2493
+ kn.displayName = et;
2494
+ var xi = br("DialogOverlay.RemoveScroll"), Ri = X.forwardRef(
2493
2495
  (t, e) => {
2494
2496
  const { __scopeDialog: n, ...r } = t, o = me(et, n);
2495
2497
  return (
2496
2498
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2497
2499
  // ie. when `Overlay` and `Content` are siblings
2498
- /* @__PURE__ */ i(Pr, { as: Ri, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
2500
+ /* @__PURE__ */ i(Cr, { as: xi, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
2499
2501
  je.div,
2500
2502
  {
2501
2503
  "data-state": At(o.open),
@@ -2506,71 +2508,71 @@ var Ri = Tr("DialogOverlay.RemoveScroll"), Li = X.forwardRef(
2506
2508
  ) })
2507
2509
  );
2508
2510
  }
2509
- ), De = "DialogContent", Hn = X.forwardRef(
2511
+ ), De = "DialogContent", Wn = X.forwardRef(
2510
2512
  (t, e) => {
2511
- const n = kn(De, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(De, t.__scopeDialog);
2512
- return /* @__PURE__ */ i(Et, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Ei, { ...o, ref: e }) : /* @__PURE__ */ i(Ni, { ...o, ref: e }) });
2513
+ const n = Fn(De, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, a = me(De, t.__scopeDialog);
2514
+ return /* @__PURE__ */ i(Et, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Li, { ...o, ref: e }) : /* @__PURE__ */ i(Ei, { ...o, ref: e }) });
2513
2515
  }
2514
2516
  );
2515
- Hn.displayName = De;
2516
- var Ei = X.forwardRef(
2517
+ Wn.displayName = De;
2518
+ var Li = X.forwardRef(
2517
2519
  (t, e) => {
2518
2520
  const n = me(De, t.__scopeDialog), r = X.useRef(null), o = Lt(e, n.contentRef, r);
2519
2521
  return X.useEffect(() => {
2520
2522
  const a = r.current;
2521
2523
  if (a)
2522
- return yr(a);
2524
+ return Pr(a);
2523
2525
  }, []), /* @__PURE__ */ i(
2524
- $n,
2526
+ Hn,
2525
2527
  {
2526
2528
  ...t,
2527
2529
  ref: o,
2528
2530
  trapFocus: n.open,
2529
2531
  disableOutsidePointerEvents: !0,
2530
- onCloseAutoFocus: qe(t.onCloseAutoFocus, (a) => {
2531
- var c;
2532
- a.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
2532
+ onCloseAutoFocus: Ge(t.onCloseAutoFocus, (a) => {
2533
+ var l;
2534
+ a.preventDefault(), (l = n.triggerRef.current) == null || l.focus();
2533
2535
  }),
2534
- onPointerDownOutside: qe(t.onPointerDownOutside, (a) => {
2535
- const c = a.detail.originalEvent, d = c.button === 0 && c.ctrlKey === !0;
2536
- (c.button === 2 || d) && a.preventDefault();
2536
+ onPointerDownOutside: Ge(t.onPointerDownOutside, (a) => {
2537
+ const l = a.detail.originalEvent, d = l.button === 0 && l.ctrlKey === !0;
2538
+ (l.button === 2 || d) && a.preventDefault();
2537
2539
  }),
2538
- onFocusOutside: qe(
2540
+ onFocusOutside: Ge(
2539
2541
  t.onFocusOutside,
2540
2542
  (a) => a.preventDefault()
2541
2543
  )
2542
2544
  }
2543
2545
  );
2544
2546
  }
2545
- ), Ni = X.forwardRef(
2547
+ ), Ei = X.forwardRef(
2546
2548
  (t, e) => {
2547
2549
  const n = me(De, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2548
2550
  return /* @__PURE__ */ i(
2549
- $n,
2551
+ Hn,
2550
2552
  {
2551
2553
  ...t,
2552
2554
  ref: e,
2553
2555
  trapFocus: !1,
2554
2556
  disableOutsidePointerEvents: !1,
2555
2557
  onCloseAutoFocus: (a) => {
2556
- var c, d;
2557
- (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;
2558
+ var l, d;
2559
+ (l = t.onCloseAutoFocus) == null || l.call(t, a), a.defaultPrevented || (r.current || (d = n.triggerRef.current) == null || d.focus(), a.preventDefault()), r.current = !1, o.current = !1;
2558
2560
  },
2559
2561
  onInteractOutside: (a) => {
2560
- var l, f;
2561
- (l = t.onInteractOutside) == null || l.call(t, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2562
- const c = a.target;
2563
- ((f = n.triggerRef.current) == null ? void 0 : f.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
2562
+ var c, m;
2563
+ (c = t.onInteractOutside) == null || c.call(t, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2564
+ const l = a.target;
2565
+ ((m = n.triggerRef.current) == null ? void 0 : m.contains(l)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
2564
2566
  }
2565
2567
  }
2566
2568
  );
2567
2569
  }
2568
- ), $n = X.forwardRef(
2570
+ ), Hn = X.forwardRef(
2569
2571
  (t, e) => {
2570
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = t, d = me(De, n), l = X.useRef(null), f = Lt(e, l);
2571
- return Ir(), /* @__PURE__ */ W(fe, { children: [
2572
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...l } = t, d = me(De, n), c = X.useRef(null), m = Lt(e, c);
2573
+ return yr(), /* @__PURE__ */ W(fe, { children: [
2572
2574
  /* @__PURE__ */ i(
2573
- Sr,
2575
+ Ir,
2574
2576
  {
2575
2577
  asChild: !0,
2576
2578
  loop: !0,
@@ -2578,64 +2580,64 @@ var Ei = X.forwardRef(
2578
2580
  onMountAutoFocus: o,
2579
2581
  onUnmountAutoFocus: a,
2580
2582
  children: /* @__PURE__ */ i(
2581
- Cr,
2583
+ Tr,
2582
2584
  {
2583
2585
  role: "dialog",
2584
2586
  id: d.contentId,
2585
2587
  "aria-describedby": d.descriptionId,
2586
2588
  "aria-labelledby": d.titleId,
2587
2589
  "data-state": At(d.open),
2588
- ...c,
2589
- ref: f,
2590
+ ...l,
2591
+ ref: m,
2590
2592
  onDismiss: () => d.onOpenChange(!1)
2591
2593
  }
2592
2594
  )
2593
2595
  }
2594
2596
  ),
2595
2597
  /* @__PURE__ */ W(fe, { children: [
2596
- /* @__PURE__ */ i(Di, { titleId: d.titleId }),
2597
- /* @__PURE__ */ i(Ai, { contentRef: l, descriptionId: d.descriptionId })
2598
+ /* @__PURE__ */ i(Oi, { titleId: d.titleId }),
2599
+ /* @__PURE__ */ i(zi, { contentRef: c, descriptionId: d.descriptionId })
2598
2600
  ] })
2599
2601
  ] });
2600
2602
  }
2601
- ), zt = "DialogTitle", Gn = X.forwardRef(
2603
+ ), zt = "DialogTitle", $n = X.forwardRef(
2602
2604
  (t, e) => {
2603
2605
  const { __scopeDialog: n, ...r } = t, o = me(zt, n);
2604
2606
  return /* @__PURE__ */ i(je.h2, { id: o.titleId, ...r, ref: e });
2605
2607
  }
2606
2608
  );
2607
- Gn.displayName = zt;
2608
- var qn = "DialogDescription", Oi = X.forwardRef(
2609
+ $n.displayName = zt;
2610
+ var qn = "DialogDescription", Ni = X.forwardRef(
2609
2611
  (t, e) => {
2610
2612
  const { __scopeDialog: n, ...r } = t, o = me(qn, n);
2611
2613
  return /* @__PURE__ */ i(je.p, { id: o.descriptionId, ...r, ref: e });
2612
2614
  }
2613
2615
  );
2614
- Oi.displayName = qn;
2615
- var Un = "DialogClose", Vn = X.forwardRef(
2616
+ Ni.displayName = qn;
2617
+ var Gn = "DialogClose", Un = X.forwardRef(
2616
2618
  (t, e) => {
2617
- const { __scopeDialog: n, ...r } = t, o = me(Un, n);
2619
+ const { __scopeDialog: n, ...r } = t, o = me(Gn, n);
2618
2620
  return /* @__PURE__ */ i(
2619
2621
  je.button,
2620
2622
  {
2621
2623
  type: "button",
2622
2624
  ...r,
2623
2625
  ref: e,
2624
- onClick: qe(t.onClick, () => o.onOpenChange(!1))
2626
+ onClick: Ge(t.onClick, () => o.onOpenChange(!1))
2625
2627
  }
2626
2628
  );
2627
2629
  }
2628
2630
  );
2629
- Vn.displayName = Un;
2631
+ Un.displayName = Gn;
2630
2632
  function At(t) {
2631
2633
  return t ? "open" : "closed";
2632
2634
  }
2633
- var Bn = "DialogTitleWarning", [Cc, Zn] = _r(Bn, {
2635
+ var Vn = "DialogTitleWarning", [Tc, Bn] = wr(Vn, {
2634
2636
  contentName: De,
2635
2637
  titleName: zt,
2636
2638
  docsSlug: "dialog"
2637
- }), Di = ({ titleId: t }) => {
2638
- const e = Zn(Bn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2639
+ }), Oi = ({ titleId: t }) => {
2640
+ const e = Bn(Vn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2639
2641
 
2640
2642
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2641
2643
 
@@ -2643,14 +2645,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2643
2645
  return X.useEffect(() => {
2644
2646
  t && (document.getElementById(t) || console.error(n));
2645
2647
  }, [n, t]), null;
2646
- }, zi = "DialogDescriptionWarning", Ai = ({ contentRef: t, descriptionId: e }) => {
2647
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zn(zi).contentName}}.`;
2648
+ }, Di = "DialogDescriptionWarning", zi = ({ contentRef: t, descriptionId: e }) => {
2649
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bn(Di).contentName}}.`;
2648
2650
  return X.useEffect(() => {
2649
2651
  var a;
2650
2652
  const o = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2651
2653
  e && o && (document.getElementById(e) || console.warn(r));
2652
2654
  }, [r, t, e]), null;
2653
- }, Fi = An, ki = Mn, Mi = Wn, Wi = Hn, Hi = Gn, $i = Vn;
2655
+ }, Ai = zn, Fi = Mn, Mi = kn, ki = Wn, Wi = $n, Hi = Un;
2654
2656
  const Ne = {
2655
2657
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2656
2658
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2659,33 +2661,33 @@ const Ne = {
2659
2661
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2660
2662
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2661
2663
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2662
- }, Gi = () => {
2663
- const { pdfProperties: t } = ie(), { container: e } = Ce(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Oo(), { localeMessages: o } = pe(), a = M(() => {
2664
+ }, $i = () => {
2665
+ const { pdfProperties: t } = re(), { container: e } = Ce(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = No(), { localeMessages: o } = pe(), a = k(() => {
2664
2666
  if (!t)
2665
2667
  return [];
2666
2668
  const {
2667
- fileSize: c,
2669
+ fileSize: l,
2668
2670
  filename: d,
2669
- title: l,
2670
- author: f,
2671
- subject: m,
2671
+ title: c,
2672
+ author: m,
2673
+ subject: f,
2672
2674
  createdOn: C,
2673
- creator: h,
2674
- keywords: w,
2675
+ creator: p,
2676
+ keywords: _,
2675
2677
  modifiedOn: P,
2676
- pdfProducer: T,
2678
+ pdfProducer: w,
2677
2679
  pdfVersion: v,
2678
2680
  pageCount: I
2679
2681
  } = t;
2680
2682
  return [
2681
2683
  { label: o == null ? void 0 : o.propertiesFilenameLabel, value: d },
2682
- { label: o == null ? void 0 : o.propertiesFileSizeLabel, value: c },
2684
+ { label: o == null ? void 0 : o.propertiesFileSizeLabel, value: l },
2683
2685
  { separate: !0 },
2684
- { label: o == null ? void 0 : o.propertiesTitleLabel, value: l },
2685
- { label: o == null ? void 0 : o.propertiesAuthorLabel, value: f },
2686
- { label: o == null ? void 0 : o.propertiesSubjectLabel, value: m },
2687
- { label: o == null ? void 0 : o.propertiesKeywordLabel, value: w },
2688
- { label: o == null ? void 0 : o.propertiesCreatorLabel, value: h },
2686
+ { label: o == null ? void 0 : o.propertiesTitleLabel, value: c },
2687
+ { label: o == null ? void 0 : o.propertiesAuthorLabel, value: m },
2688
+ { label: o == null ? void 0 : o.propertiesSubjectLabel, value: f },
2689
+ { label: o == null ? void 0 : o.propertiesKeywordLabel, value: _ },
2690
+ { label: o == null ? void 0 : o.propertiesCreatorLabel, value: p },
2689
2691
  {
2690
2692
  label: o == null ? void 0 : o.propertiesCreateOnLabel,
2691
2693
  value: C ? $t(C) : ""
@@ -2695,54 +2697,54 @@ const Ne = {
2695
2697
  value: P ? $t(P) : ""
2696
2698
  },
2697
2699
  { separate: !0 },
2698
- { label: o == null ? void 0 : o.propertiesPDFProducerLabel, value: T },
2700
+ { label: o == null ? void 0 : o.propertiesPDFProducerLabel, value: w },
2699
2701
  { label: o == null ? void 0 : o.propertiesPDFVersionLabel, value: v },
2700
2702
  { label: o == null ? void 0 : o.propertiesPageCountLabel, value: I }
2701
2703
  ];
2702
2704
  }, [t, o]);
2703
- return /* @__PURE__ */ i(Fi, { open: n, onOpenChange: r, children: /* @__PURE__ */ i(ki, { container: e, children: /* @__PURE__ */ W("div", { className: Ne["rp-dialog-wrapper"], children: [
2705
+ return /* @__PURE__ */ i(Ai, { open: n, onOpenChange: r, children: /* @__PURE__ */ i(Fi, { container: e, children: /* @__PURE__ */ W("div", { className: Ne["rp-dialog-wrapper"], children: [
2704
2706
  /* @__PURE__ */ i(Mi, { className: Ne["rp-dialog-overlay"] }),
2705
- /* @__PURE__ */ W(Wi, { className: Ne["rp-document-dialog"], children: [
2706
- /* @__PURE__ */ i(Hi, { className: Ne["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2707
- /* @__PURE__ */ i("div", { className: Ne["rp-document-properties"], children: a.map((c, d) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Ne["rp-properties-divider"] }) : /* @__PURE__ */ i(Uo, { label: c.label, value: c.value }) }, d)) }),
2708
- /* @__PURE__ */ i($i, { asChild: !0, className: Ne["rp-dialog-close"], children: /* @__PURE__ */ i(Rr, {}) })
2707
+ /* @__PURE__ */ W(ki, { className: Ne["rp-document-dialog"], children: [
2708
+ /* @__PURE__ */ i(Wi, { className: Ne["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2709
+ /* @__PURE__ */ i("div", { className: Ne["rp-document-properties"], children: a.map((l, d) => /* @__PURE__ */ i("div", { children: l.separate ? /* @__PURE__ */ i("div", { className: Ne["rp-properties-divider"] }) : /* @__PURE__ */ i(Go, { label: l.label, value: l.value }) }, d)) }),
2710
+ /* @__PURE__ */ i(Hi, { asChild: !0, className: Ne["rp-dialog-close"], children: /* @__PURE__ */ i(xr, {}) })
2709
2711
  ] })
2710
2712
  ] }) }) });
2711
2713
  }, qi = {
2712
2714
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2713
- }, cn = ".pdf", Ui = (t) => URL.createObjectURL(t), Vi = async (t) => {
2715
+ }, sn = ".pdf", Gi = (t) => URL.createObjectURL(t), Ui = async (t) => {
2714
2716
  const n = await (await fetch(t)).blob();
2715
- return Ui(n);
2716
- }, jn = () => {
2717
- const { filename: t, pdfSrc: e } = ie(), { downloadFilename: n } = Ro(), r = (a) => {
2718
- const c = n || a;
2719
- return c.endsWith(cn) ? c : `${c}${cn}`;
2717
+ return Gi(n);
2718
+ }, Zn = () => {
2719
+ const { filename: t, pdfSrc: e } = re(), { downloadFilename: n } = xo(), r = (a) => {
2720
+ const l = n || a;
2721
+ return l.endsWith(sn) ? l : `${l}${sn}`;
2720
2722
  };
2721
2723
  return { download: E(async () => {
2722
2724
  if (!t || !e)
2723
2725
  throw new Error("There is no PDF source to download");
2724
2726
  const a = document.createElement("a");
2725
- a.href = await Vi(e), a.download = r(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2727
+ a.href = await Ui(e), a.download = r(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2726
2728
  }, [t, e]) };
2727
- }, Kn = () => {
2729
+ }, jn = () => {
2728
2730
  const { downloadIcon: t } = ve(), { downloadIcon: e } = ge();
2729
- return t || e || /* @__PURE__ */ i(Dr, {});
2730
- }, Xn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Bi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Xn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Kn, {}) }) }), Zi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(Xn, { className: "rp-menu-item", localeMessages: e, children: [
2731
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Kn, {}) }),
2731
+ return t || e || /* @__PURE__ */ i(Or, {});
2732
+ }, Kn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Vi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Kn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(jn, {}) }) }), Bi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(Kn, { className: "rp-menu-item", localeMessages: e, children: [
2733
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(jn, {}) }),
2732
2734
  e == null ? void 0 : e.downloadFileLabel
2733
- ] }) }), Qn = () => {
2734
- const { download: t } = jn(), { downloadTool: e = !0 } = Pe(), { downloadTool: n = !0 } = Se(), { isSmallScreen: r } = xe(), { localeMessages: o } = pe(), a = o == null ? void 0 : o.downloadFileTooltip;
2735
- return !e || !n ? null : r ? /* @__PURE__ */ i(Zi, { 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(Bi, { download: t, localeMessages: o });
2736
- }, Yn = () => {
2735
+ ] }) }), Xn = () => {
2736
+ const { download: t } = Zn(), { downloadTool: e = !0 } = Pe(), { downloadTool: n = !0 } = Se(), { isSmallScreen: r } = xe(), { localeMessages: o } = pe(), a = o == null ? void 0 : o.downloadFileTooltip;
2737
+ return !e || !n ? null : r ? /* @__PURE__ */ i(Bi, { 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(Vi, { download: t, localeMessages: o });
2738
+ }, Qn = () => {
2737
2739
  const { printIcon: t } = ve(), { printIcon: e } = ge();
2738
- return t || e || /* @__PURE__ */ i(zr, {});
2739
- }, Jn = ({ 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(Jn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Yn, {}) }) }), Ki = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(Jn, { className: "rp-menu-item", localeMessages: e, children: [
2740
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Yn, {}) }),
2740
+ return t || e || /* @__PURE__ */ i(Dr, {});
2741
+ }, Yn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(K, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Yn, { localeMessages: e, children: /* @__PURE__ */ i(de, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Qn, {}) }) }), ji = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Ie, { onClick: t, children: /* @__PURE__ */ W(Yn, { className: "rp-menu-item", localeMessages: e, children: [
2742
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Qn, {}) }),
2741
2743
  e == null ? void 0 : e.printLabel
2742
- ] }) }), eo = () => {
2743
- const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: a } = it(), { printTool: c = !0 } = Pe(), { printTool: d = !0 } = Se(), { isSmallScreen: l } = xe(), { localeMessages: f } = pe(), m = f == null ? void 0 : f.printTooltip;
2744
- return !c || !d ? null : l ? /* @__PURE__ */ i(Ki, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ i(K, { content: m, children: /* @__PURE__ */ i(
2745
- c,
2744
+ ] }) }), Jn = () => {
2745
+ const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: a } = it(), { printTool: l = !0 } = Pe(), { printTool: d = !0 } = Se(), { isSmallScreen: c } = xe(), { localeMessages: m } = pe(), f = m == null ? void 0 : m.printTooltip;
2746
+ return !l || !d ? null : c ? /* @__PURE__ */ i(ji, { print: t, localeMessages: m }) : typeof l == "function" ? /* @__PURE__ */ i(K, { content: f, children: /* @__PURE__ */ i(
2747
+ l,
2746
2748
  {
2747
2749
  print: t,
2748
2750
  cancel: e,
@@ -2751,7 +2753,7 @@ const Ne = {
2751
2753
  setOnComplete: r,
2752
2754
  progress: a
2753
2755
  }
2754
- ) }) : typeof d == "function" ? /* @__PURE__ */ i(K, { content: m, children: /* @__PURE__ */ i(
2756
+ ) }) : typeof d == "function" ? /* @__PURE__ */ i(K, { content: f, children: /* @__PURE__ */ i(
2755
2757
  d,
2756
2758
  {
2757
2759
  print: t,
@@ -2761,91 +2763,91 @@ const Ne = {
2761
2763
  setOnComplete: r,
2762
2764
  progress: a
2763
2765
  }
2764
- ) }) : /* @__PURE__ */ i(ji, { print: t, localeMessages: f });
2765
- }, Xi = {
2766
+ ) }) : /* @__PURE__ */ i(Zi, { print: t, localeMessages: m });
2767
+ }, Ki = {
2766
2768
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2767
- }, Qi = () => {
2769
+ }, Xi = () => {
2768
2770
  const { goToFirstPageIcon: t } = ve(), { goToFirstPageIcon: e } = ge();
2769
- return t || e || /* @__PURE__ */ i(bn, { className: Xi["rp-go-to-Top"] });
2770
- }, Yi = () => {
2771
+ return t || e || /* @__PURE__ */ i(_n, { className: Ki["rp-go-to-Top"] });
2772
+ }, Qi = () => {
2771
2773
  const { goToLastPageIcon: t } = ve(), { goToLastPageIcon: e } = ge();
2772
- return t || e || /* @__PURE__ */ i(bn, {});
2773
- }, ln = { width: "100%" }, Ji = () => {
2774
- const { goToPage: t, totalPages: e, focusedPage: n } = he(), { jumpNavigationTool: r = !0 } = Pe(), { jumpNavigationTool: o = !0 } = Se(), { localeMessages: a } = pe(), c = M(() => n === 1, [n]), d = M(() => n === e, [n, e]), l = E(() => {
2774
+ return t || e || /* @__PURE__ */ i(_n, {});
2775
+ }, cn = { width: "100%" }, Yi = () => {
2776
+ const { goToPage: t, totalPages: e, focusedPage: n } = he(), { jumpNavigationTool: r = !0 } = Pe(), { jumpNavigationTool: o = !0 } = Se(), { localeMessages: a } = pe(), l = k(() => n === 1, [n]), d = k(() => n === e, [n, e]), c = E(() => {
2775
2777
  t(1);
2776
- }, [t]), f = E(() => {
2778
+ }, [t]), m = E(() => {
2777
2779
  t(e);
2778
2780
  }, [t, e]);
2779
2781
  return !r || !o ? null : /* @__PURE__ */ W(Je, { children: [
2780
- /* @__PURE__ */ i(Ie, { onClick: l, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.firstPageTooltip, style: ln, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2781
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Qi, {}) }),
2782
+ /* @__PURE__ */ i(Ie, { onClick: c, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.firstPageTooltip, style: cn, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2783
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Xi, {}) }),
2782
2784
  /* @__PURE__ */ i("span", { children: a == null ? void 0 : a.firstPageLabel })
2783
2785
  ] }) }) }),
2784
- /* @__PURE__ */ i(Ie, { onClick: f, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.lastPageTooltip, style: ln, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": d, children: [
2785
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Yi, {}) }),
2786
+ /* @__PURE__ */ i(Ie, { onClick: m, children: /* @__PURE__ */ i(K, { content: a == null ? void 0 : a.lastPageTooltip, style: cn, children: /* @__PURE__ */ W("div", { className: "rp-menu-item", "aria-disabled": d, children: [
2787
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Qi, {}) }),
2786
2788
  /* @__PURE__ */ i("span", { children: a == null ? void 0 : a.lastPageLabel })
2787
2789
  ] }) }) }),
2788
2790
  /* @__PURE__ */ i(St, {})
2789
2791
  ] });
2790
- }, ea = () => {
2792
+ }, Ji = () => {
2791
2793
  const [t, e] = $(!1), { container: n, pagesRef: r } = Ce(), { isSmallScreen: o } = xe(), {
2792
2794
  openFileTool: a,
2793
- downloadTool: c,
2795
+ downloadTool: l,
2794
2796
  documentProperties: d,
2795
- scrollModeTool: l,
2796
- rotateTool: f,
2797
- selectionModeTool: m,
2797
+ scrollModeTool: c,
2798
+ rotateTool: m,
2799
+ selectionModeTool: f,
2798
2800
  jumpNavigationTool: C,
2799
- printTool: h,
2800
- fullscreenTool: w,
2801
+ printTool: p,
2802
+ fullscreenTool: _,
2801
2803
  viewModeTool: P
2802
2804
  } = Pe(), {
2803
- openFileTool: T,
2805
+ openFileTool: w,
2804
2806
  downloadTool: v,
2805
2807
  documentProperties: I,
2806
2808
  scrollModeTool: g,
2807
2809
  rotateTool: u,
2808
- selectionModeTool: p,
2810
+ selectionModeTool: h,
2809
2811
  jumpNavigationTool: s,
2810
- printTool: _,
2811
- fullscreenTool: b,
2812
+ printTool: b,
2813
+ fullscreenTool: T,
2812
2814
  viewModeTool: y
2813
2815
  } = Se(), { localeMessages: x } = pe(), [S, R] = $(0), L = H(
2814
2816
  new ResizeObserver((A) => {
2815
2817
  R(A[0].contentRect.height);
2816
2818
  })
2817
- ), N = M(() => C || f || m || l || d || P || o && (a || c || h || w), [
2819
+ ), N = k(() => C || m || f || c || d || P || o && (a || l || p || _), [
2818
2820
  a,
2819
- c,
2820
- h,
2821
- w,
2822
- d,
2823
2821
  l,
2824
- f,
2822
+ p,
2823
+ _,
2824
+ d,
2825
+ c,
2825
2826
  m,
2827
+ f,
2826
2828
  C,
2827
2829
  o
2828
- ]), k = M(() => s || u || p || g || I || y || o && (T || v || _ || b), [
2829
- T,
2830
+ ]), M = k(() => s || u || h || g || I || y || o && (w || v || b || T), [
2831
+ w,
2830
2832
  v,
2831
- _,
2832
2833
  b,
2834
+ T,
2833
2835
  I,
2834
2836
  g,
2835
2837
  u,
2836
- p,
2838
+ h,
2837
2839
  s,
2838
2840
  o
2839
2841
  ]);
2840
2842
  return D(() => (r && L.current.observe(r), () => {
2841
2843
  L.current.disconnect();
2842
- }), [r]), !N || !k ? null : /* @__PURE__ */ W(fe, { children: [
2844
+ }), [r]), !N || !M ? null : /* @__PURE__ */ W(fe, { children: [
2843
2845
  /* @__PURE__ */ i(
2844
2846
  It,
2845
2847
  {
2846
2848
  container: n,
2847
2849
  onOpenChange: e,
2848
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(de, { active: t, "aria-label": x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(vr, {}) }) }) }),
2850
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(de, { active: t, "aria-label": x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ i(gr, {}) }) }) }),
2849
2851
  side: "bottom",
2850
2852
  avoidCollisions: !1,
2851
2853
  children: /* @__PURE__ */ W(
@@ -2856,47 +2858,47 @@ const Ne = {
2856
2858
  "data-rp": "moreOptionsDropdown",
2857
2859
  children: [
2858
2860
  o && /* @__PURE__ */ W(Je, { children: [
2861
+ /* @__PURE__ */ i(vn, {}),
2862
+ /* @__PURE__ */ i(Xn, {}),
2863
+ /* @__PURE__ */ i(Jn, {}),
2859
2864
  /* @__PURE__ */ i(wn, {}),
2860
- /* @__PURE__ */ i(Qn, {}),
2861
- /* @__PURE__ */ i(eo, {}),
2862
- /* @__PURE__ */ i(_n, {}),
2863
2865
  /* @__PURE__ */ i(St, {})
2864
2866
  ] }),
2865
- /* @__PURE__ */ i(Ji, {}),
2867
+ /* @__PURE__ */ i(Yi, {}),
2868
+ /* @__PURE__ */ i(Lr, {}),
2869
+ /* @__PURE__ */ i(zr, {}),
2866
2870
  /* @__PURE__ */ i(Er, {}),
2867
- /* @__PURE__ */ i(Ar, {}),
2868
2871
  /* @__PURE__ */ i(Nr, {}),
2869
- /* @__PURE__ */ i(Or, {}),
2870
- /* @__PURE__ */ i(Lr, {})
2872
+ /* @__PURE__ */ i(Rr, {})
2871
2873
  ]
2872
2874
  }
2873
2875
  )
2874
2876
  }
2875
2877
  ),
2876
- /* @__PURE__ */ i(Gi, {})
2878
+ /* @__PURE__ */ i($i, {})
2877
2879
  ] });
2878
- }, ta = () => {
2880
+ }, ea = () => {
2879
2881
  const { isSmallScreen: t } = xe();
2880
2882
  return /* @__PURE__ */ W(fe, { children: [
2881
- /* @__PURE__ */ i(gr, {}),
2883
+ /* @__PURE__ */ i(mr, {}),
2882
2884
  !t && /* @__PURE__ */ W(fe, { children: [
2883
- /* @__PURE__ */ i(wn, {}),
2884
- /* @__PURE__ */ i(Qn, {}),
2885
- /* @__PURE__ */ i(eo, {}),
2886
- /* @__PURE__ */ i(_n, {})
2885
+ /* @__PURE__ */ i(vn, {}),
2886
+ /* @__PURE__ */ i(Xn, {}),
2887
+ /* @__PURE__ */ i(Jn, {}),
2888
+ /* @__PURE__ */ i(wn, {})
2887
2889
  ] }),
2888
- /* @__PURE__ */ i(ea, {})
2890
+ /* @__PURE__ */ i(Ji, {})
2889
2891
  ] });
2890
- }, na = "_active_1yldl_11", Fe = {
2892
+ }, ta = "_active_1yldl_11", Fe = {
2891
2893
  "rp-zoom-wrapper": "_rp-zoom-wrapper_1yldl_1",
2892
2894
  "rp-current-zoom-wrapper": "_rp-current-zoom-wrapper_1yldl_6",
2893
- active: na,
2895
+ active: ta,
2894
2896
  "rp-current-zoom-icon": "_rp-current-zoom-icon_1yldl_15",
2895
2897
  "rp-zoom-level-icon": "_rp-zoom-level-icon_1yldl_20",
2896
2898
  "rp-current-zoom-text": "_rp-current-zoom-text_1yldl_24",
2897
2899
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_1yldl_28"
2898
- }, oa = ({ zoomLevel: t, className: e }) => {
2899
- const { localeMessages: n } = pe(), r = M(() => {
2900
+ }, na = ({ zoomLevel: t, className: e }) => {
2901
+ const { localeMessages: n } = pe(), r = k(() => {
2900
2902
  switch (t) {
2901
2903
  case We.ACTUAL:
2902
2904
  return n == null ? void 0 : n.zoomActualSize;
@@ -2907,42 +2909,42 @@ const Ne = {
2907
2909
  }
2908
2910
  return t.toString();
2909
2911
  }, [t, n]);
2910
- return /* @__PURE__ */ i(fe, { children: typeof t == "number" ? /* @__PURE__ */ W(po, { children: [
2912
+ return /* @__PURE__ */ i(fe, { children: typeof t == "number" ? /* @__PURE__ */ W(uo, { children: [
2911
2913
  /* @__PURE__ */ i("span", { className: e, children: t }),
2912
2914
  /* @__PURE__ */ i("span", { className: e, children: "%" })
2913
2915
  ] }) : /* @__PURE__ */ i("span", { className: e, children: r }) });
2914
- }, ra = [50, 75, 100, 125, 150, 200, 300, 400], ia = () => {
2916
+ }, oa = [50, 75, 100, 125, 150, 200, 300, 400], ra = () => {
2915
2917
  const { zoomInIcon: t } = ve(), { zoomInIcon: e } = ge();
2918
+ return t || e || /* @__PURE__ */ i(Ar, {});
2919
+ }, ia = () => {
2920
+ const { zoomOutIcon: t } = ve(), { zoomOutIcon: e } = ge();
2916
2921
  return t || e || /* @__PURE__ */ i(Fr, {});
2917
2922
  }, aa = () => {
2918
- const { zoomOutIcon: t } = ve(), { zoomOutIcon: e } = ge();
2919
- return t || e || /* @__PURE__ */ i(kr, {});
2920
- }, sa = () => {
2921
- const { zoomLevel: t, setZoomLevel: e, currentZoom: n } = tt(), { container: r, pagesRef: o } = Ce(), { zoomTool: a = !0 } = Pe(), { zoomTool: c = !0 } = Se(), { isSmallScreen: d } = xe(), { localeMessages: l } = pe(), [f, m] = $(0), [C, h] = $(!1), w = H(
2923
+ const { zoomLevel: t, setZoomLevel: e, currentZoom: n } = tt(), { container: r, pagesRef: o } = Ce(), { zoomTool: a = !0 } = Pe(), { zoomTool: l = !0 } = Se(), { isSmallScreen: d } = xe(), { localeMessages: c } = pe(), [m, f] = $(0), [C, p] = $(!1), _ = H(
2922
2924
  new ResizeObserver((g) => {
2923
- m(g[0].contentRect.height);
2925
+ f(g[0].contentRect.height);
2924
2926
  })
2925
2927
  ), P = E(() => {
2926
2928
  e(() => {
2927
2929
  const g = Math.floor(n * 100 / 25) * 25;
2928
- return Math.min(g + 25, Gt);
2930
+ return Math.min(g + 25, qt);
2929
2931
  });
2930
- }, [e, n]), T = E(() => {
2932
+ }, [e, n]), w = E(() => {
2931
2933
  e(() => {
2932
2934
  const g = Math.ceil(n * 100 / 25) * 25;
2933
- return Math.min(g - 25, Gt);
2935
+ return Math.min(g - 25, qt);
2934
2936
  });
2935
- }, [e, n]), v = M(() => Mr(n), [n]), I = M(() => Wr(n), [n]);
2936
- return D(() => (o && w.current.observe(o), () => {
2937
- w.current.disconnect();
2938
- }), [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__ */ W("div", { className: Fe["rp-zoom-wrapper"], children: [
2939
- /* @__PURE__ */ i(K, { content: l == null ? void 0 : l.zoomOutTooltip, children: /* @__PURE__ */ i(
2937
+ }, [e, n]), v = k(() => Mr(n), [n]), I = k(() => kr(n), [n]);
2938
+ return D(() => (o && _.current.observe(o), () => {
2939
+ _.current.disconnect();
2940
+ }), [o]), !a || !l ? null : typeof a == "function" ? /* @__PURE__ */ i(a, { zoomLevel: t, setZoomLevel: e }) : typeof l == "function" ? /* @__PURE__ */ i(l, { zoomLevel: t, setZoomLevel: e }) : /* @__PURE__ */ W("div", { className: Fe["rp-zoom-wrapper"], children: [
2941
+ /* @__PURE__ */ i(K, { content: c == null ? void 0 : c.zoomOutTooltip, children: /* @__PURE__ */ i(
2940
2942
  de,
2941
2943
  {
2942
2944
  disabled: v,
2943
- onClick: T,
2944
- "aria-label": l == null ? void 0 : l.zoomOutTooltip,
2945
- children: /* @__PURE__ */ i(aa, {})
2945
+ onClick: w,
2946
+ "aria-label": c == null ? void 0 : c.zoomOutTooltip,
2947
+ children: /* @__PURE__ */ i(ia, {})
2946
2948
  }
2947
2949
  ) }),
2948
2950
  !d && /* @__PURE__ */ i(
@@ -2950,18 +2952,18 @@ const Ne = {
2950
2952
  {
2951
2953
  container: r,
2952
2954
  open: C,
2953
- onOpenChange: h,
2954
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: l == null ? void 0 : l.zoomSelectTooltip, children: /* @__PURE__ */ W(
2955
+ onOpenChange: p,
2956
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: c == null ? void 0 : c.zoomSelectTooltip, children: /* @__PURE__ */ W(
2955
2957
  de,
2956
2958
  {
2957
2959
  className: se(
2958
2960
  Fe["rp-current-zoom-wrapper"],
2959
2961
  C && Fe.active
2960
2962
  ),
2961
- "aria-label": l == null ? void 0 : l.zoomSelectTooltip,
2963
+ "aria-label": c == null ? void 0 : c.zoomSelectTooltip,
2962
2964
  children: [
2963
2965
  /* @__PURE__ */ i(
2964
- oa,
2966
+ na,
2965
2967
  {
2966
2968
  zoomLevel: t,
2967
2969
  className: Fe["rp-current-zoom-text"]
@@ -2978,16 +2980,16 @@ const Ne = {
2978
2980
  children: /* @__PURE__ */ W(
2979
2981
  "div",
2980
2982
  {
2981
- style: { maxHeight: `${f}px`, overflow: "auto" },
2983
+ style: { maxHeight: `${m}px`, overflow: "auto" },
2982
2984
  className: Fe["rp-zoom-dropdown-content"],
2983
2985
  children: [
2984
2986
  /* @__PURE__ */ W(Je, { children: [
2985
- /* @__PURE__ */ i(Ie, { onClick: () => e(We.ACTUAL), children: l == null ? void 0 : l.zoomActualSize }),
2986
- /* @__PURE__ */ i(Ie, { onClick: () => e(We.PAGE_FIT), children: l == null ? void 0 : l.zoomPageFit }),
2987
- /* @__PURE__ */ i(Ie, { onClick: () => e(We.PAGE_WIDTH), children: l == null ? void 0 : l.zoomPageWidth })
2987
+ /* @__PURE__ */ i(Ie, { onClick: () => e(We.ACTUAL), children: c == null ? void 0 : c.zoomActualSize }),
2988
+ /* @__PURE__ */ i(Ie, { onClick: () => e(We.PAGE_FIT), children: c == null ? void 0 : c.zoomPageFit }),
2989
+ /* @__PURE__ */ i(Ie, { onClick: () => e(We.PAGE_WIDTH), children: c == null ? void 0 : c.zoomPageWidth })
2988
2990
  ] }),
2989
2991
  /* @__PURE__ */ i(St, {}),
2990
- /* @__PURE__ */ i(Je, { children: ra.map((g) => /* @__PURE__ */ W(Ie, { onClick: () => e(g), children: [
2992
+ /* @__PURE__ */ i(Je, { children: oa.map((g) => /* @__PURE__ */ W(Ie, { onClick: () => e(g), children: [
2991
2993
  g,
2992
2994
  " %"
2993
2995
  ] }, g)) })
@@ -2996,17 +2998,17 @@ const Ne = {
2996
2998
  )
2997
2999
  }
2998
3000
  ),
2999
- /* @__PURE__ */ i(K, { content: l == null ? void 0 : l.zoomInTooltip, children: /* @__PURE__ */ i(
3001
+ /* @__PURE__ */ i(K, { content: c == null ? void 0 : c.zoomInTooltip, children: /* @__PURE__ */ i(
3000
3002
  de,
3001
3003
  {
3002
3004
  disabled: I,
3003
3005
  onClick: P,
3004
- "aria-label": l == null ? void 0 : l.zoomInTooltip,
3005
- children: /* @__PURE__ */ i(ia, {})
3006
+ "aria-label": c == null ? void 0 : c.zoomInTooltip,
3007
+ children: /* @__PURE__ */ i(ra, {})
3006
3008
  }
3007
3009
  ) })
3008
3010
  ] });
3009
- }, dn = () => {
3011
+ }, ln = () => {
3010
3012
  const { totalMatches: t, nextMatch: e, prevMatch: n } = Nt(), { localeMessages: r } = pe();
3011
3013
  return /* @__PURE__ */ W(fe, { children: [
3012
3014
  /* @__PURE__ */ i(
@@ -3039,25 +3041,25 @@ const Ne = {
3039
3041
  }
3040
3042
  )
3041
3043
  ] });
3042
- }, ca = () => {
3044
+ }, sa = () => {
3043
3045
  const { searchIcon: t } = ve(), { searchIcon: e } = ge();
3044
- return t || e || /* @__PURE__ */ i(Tn, {});
3045
- }, la = ({ icon: t }) => {
3046
- const { container: e } = Ce(), [n, r] = $(!1), { pdf: o } = ie(), [a, c] = $(null), {
3046
+ return t || e || /* @__PURE__ */ i(bn, {});
3047
+ }, ca = ({ icon: t }) => {
3048
+ const { container: e } = Ce(), [n, r] = $(!1), { pdf: o } = re(), [a, l] = $(null), {
3047
3049
  searchOptions: d,
3048
- setSearchOptions: l,
3049
- loading: f,
3050
- setSearch: m,
3050
+ setSearchOptions: c,
3051
+ loading: m,
3052
+ setSearch: f,
3051
3053
  totalMatches: C,
3052
- currentMatchPosition: h,
3053
- nextMatch: w,
3054
+ currentMatchPosition: p,
3055
+ nextMatch: _,
3054
3056
  prevMatch: P,
3055
- search: T
3056
- } = Nt(), { searchTool: v = !0 } = Pe(), { searchTool: I = !0 } = Se(), [g, u] = $(T), { localeMessages: p } = pe(), { isSmallScreen: s } = xe(), [_, b] = $(null), [y, x] = $(!1), S = E(() => {
3057
+ search: w
3058
+ } = Nt(), { searchTool: v = !0 } = Pe(), { searchTool: I = !0 } = Se(), [g, u] = $(w), { localeMessages: h } = pe(), { isSmallScreen: s } = xe(), [b, T] = $(null), [y, x] = $(!1), S = E(() => {
3057
3059
  r(!0);
3058
3060
  }, []), R = E(() => {
3059
- m(""), u(""), r(!1);
3060
- }, [m]), L = (U) => {
3061
+ f(""), u(""), r(!1);
3062
+ }, [f]), L = (U) => {
3061
3063
  const Q = U.key === "Enter", Y = U.key === " ";
3062
3064
  (Q || Y) && R();
3063
3065
  }, N = E(
@@ -3065,18 +3067,18 @@ const Ne = {
3065
3067
  U.key === "Escape" && n && R();
3066
3068
  },
3067
3069
  [n]
3068
- ), k = E(
3070
+ ), M = E(
3069
3071
  (U) => {
3070
- U.shiftKey && U.key === "Enter" ? P() : U.key === "Enter" && T !== g ? m(g) : U.key === "Enter" && w();
3072
+ U.shiftKey && U.key === "Enter" ? P() : U.key === "Enter" && w !== g ? f(g) : U.key === "Enter" && _();
3071
3073
  },
3072
- [g, P, w, m, T]
3074
+ [g, P, _, f, w]
3073
3075
  );
3074
3076
  D(() => {
3075
- u(T);
3076
- }, [T]), D(() => {
3077
- T && o && x(!0);
3078
- }, [T, o]), D(() => {
3079
- T && T.trim() !== "" && (u(T), m(T));
3077
+ u(w);
3078
+ }, [w]), D(() => {
3079
+ w && o && x(!0);
3080
+ }, [w, o]), D(() => {
3081
+ w && w.trim() !== "" && (u(w), f(w));
3080
3082
  }, []), D(() => (window.addEventListener("keydown", N), () => {
3081
3083
  window.removeEventListener("keydown", N);
3082
3084
  }), [N]), D(() => {
@@ -3087,22 +3089,22 @@ const Ne = {
3087
3089
  const A = E((U) => {
3088
3090
  u(U.target.value);
3089
3091
  }, []), z = E(() => {
3090
- u(""), m("");
3091
- }, [m]), F = M(() => `${h} / ${C}`, [h, C]), { wholeWords: O, matchCase: q } = M(() => d, [d]), G = E(
3092
+ u(""), f("");
3093
+ }, [f]), F = k(() => `${p} / ${C}`, [p, C]), { wholeWords: O, matchCase: G } = k(() => d, [d]), q = E(
3092
3094
  (U) => {
3093
- l((Q) => ({ ...Q, matchCase: U }));
3095
+ c((Q) => ({ ...Q, matchCase: U }));
3094
3096
  },
3095
- [l]
3097
+ [c]
3096
3098
  ), V = E(
3097
3099
  (U) => {
3098
- l((Q) => ({ ...Q, wholeWords: U }));
3100
+ c((Q) => ({ ...Q, wholeWords: U }));
3099
3101
  },
3100
- [l]
3102
+ [c]
3101
3103
  );
3102
3104
  D(() => {
3103
3105
  o && y && R();
3104
3106
  }, [o, R]);
3105
- const B = M(() => (_ == null ? void 0 : _.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [_]), ee = E(
3107
+ const B = k(() => (b == null ? void 0 : b.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [b]), ee = E(
3106
3108
  (U) => {
3107
3109
  if (U.key === "Tab") {
3108
3110
  const Q = document.activeElement;
@@ -3135,57 +3137,57 @@ const Ne = {
3135
3137
  align: "start",
3136
3138
  tabIndex: 0,
3137
3139
  avoidCollisions: !1,
3138
- triggerComponent: /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchButtonTooltip, children: /* @__PURE__ */ i(
3140
+ triggerComponent: /* @__PURE__ */ i(K, { content: h == null ? void 0 : h.searchButtonTooltip, children: /* @__PURE__ */ i(
3139
3141
  de,
3140
3142
  {
3141
3143
  active: n,
3142
3144
  onClick: S,
3143
- "aria-label": p == null ? void 0 : p.searchButtonTooltip,
3144
- children: t || /* @__PURE__ */ i(ca, {})
3145
+ "aria-label": h == null ? void 0 : h.searchButtonTooltip,
3146
+ children: t || /* @__PURE__ */ i(sa, {})
3145
3147
  }
3146
3148
  ) }),
3147
3149
  children: /* @__PURE__ */ W(
3148
3150
  "div",
3149
3151
  {
3150
- ref: b,
3152
+ ref: T,
3151
3153
  className: oe["rp-search-tool-content"],
3152
3154
  tabIndex: 0,
3153
3155
  onKeyDown: ee,
3154
3156
  children: [
3155
3157
  /* @__PURE__ */ W("div", { className: oe["rp-search-tool-input-wrapper"], children: [
3156
3158
  /* @__PURE__ */ W("div", { className: oe["rp-search-tool-input"], children: [
3157
- /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchInputTooltip, children: /* @__PURE__ */ i(
3158
- fn,
3159
+ /* @__PURE__ */ i(K, { content: h == null ? void 0 : h.searchInputTooltip, children: /* @__PURE__ */ i(
3160
+ hn,
3159
3161
  {
3160
3162
  value: g,
3161
- onKeyDown: k,
3163
+ onKeyDown: M,
3162
3164
  onChange: A,
3163
- icon: /* @__PURE__ */ i(Tn, {}),
3164
- placeholder: p == null ? void 0 : p.searchInputPlaceholder,
3165
+ icon: /* @__PURE__ */ i(bn, {}),
3166
+ placeholder: h == null ? void 0 : h.searchInputPlaceholder,
3165
3167
  className: oe["rp-search-input"],
3166
- ref: c,
3168
+ ref: l,
3167
3169
  id: "search-input",
3168
3170
  name: "search-input",
3169
3171
  tabIndex: 0,
3170
- children: !!g && /* @__PURE__ */ i("span", { className: oe["rp-search-tool-input-clear"], onClick: z, children: /* @__PURE__ */ i(Hr, {}) })
3172
+ children: !!g && /* @__PURE__ */ i("span", { className: oe["rp-search-tool-input-clear"], onClick: z, children: /* @__PURE__ */ i(Wr, {}) })
3171
3173
  }
3172
3174
  ) }),
3173
- f ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(vn, { className: oe["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: F }),
3175
+ m ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(gn, { className: oe["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: F }),
3174
3176
  s && /* @__PURE__ */ i("div", { className: oe["rp-search-tool-controls"], children: /* @__PURE__ */ i(Wt, { onKeyPress: L, handleClose: R }) })
3175
3177
  ] }),
3176
3178
  /* @__PURE__ */ W("div", { className: oe["rp-search-tool-input-checkboxes"], children: [
3177
- s && /* @__PURE__ */ i(dn, {}),
3179
+ s && /* @__PURE__ */ i(ln, {}),
3178
3180
  /* @__PURE__ */ i(
3179
3181
  Ht,
3180
3182
  {
3181
3183
  tabIndex: 0,
3182
3184
  name: "matchCase",
3183
- value: q,
3184
- onChange: G,
3185
- children: p == null ? void 0 : p.searchMatchCaseLabel
3185
+ value: G,
3186
+ onChange: q,
3187
+ children: h == null ? void 0 : h.searchMatchCaseLabel
3186
3188
  }
3187
3189
  ),
3188
- !s && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: oe["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Zt, {}) }) }),
3190
+ !s && /* @__PURE__ */ i(K, { content: h == null ? void 0 : h.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: oe["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Bt, {}) }) }),
3189
3191
  /* @__PURE__ */ i(
3190
3192
  Ht,
3191
3193
  {
@@ -3193,14 +3195,14 @@ const Ne = {
3193
3195
  name: "wholeWord",
3194
3196
  value: O,
3195
3197
  onChange: V,
3196
- children: p == null ? void 0 : p.searchWholeWordsLabel
3198
+ children: h == null ? void 0 : h.searchWholeWordsLabel
3197
3199
  }
3198
3200
  ),
3199
- !s && /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { tabIndex: 0, className: oe["rp-search-icon-info"], children: /* @__PURE__ */ i(Zt, {}) }) })
3201
+ !s && /* @__PURE__ */ i(K, { content: h == null ? void 0 : h.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { tabIndex: 0, className: oe["rp-search-icon-info"], children: /* @__PURE__ */ i(Bt, {}) }) })
3200
3202
  ] })
3201
3203
  ] }),
3202
3204
  !s && /* @__PURE__ */ W("div", { className: oe["rp-search-tool-controls"], children: [
3203
- /* @__PURE__ */ i(dn, {}),
3205
+ /* @__PURE__ */ i(ln, {}),
3204
3206
  /* @__PURE__ */ i(Wt, { onKeyPress: L, handleClose: R })
3205
3207
  ] })
3206
3208
  ]
@@ -3208,69 +3210,69 @@ const Ne = {
3208
3210
  )
3209
3211
  }
3210
3212
  ) });
3211
- }, da = "_loading_wazy2_1", ke = {
3213
+ }, la = "_loading_wazy2_1", Me = {
3212
3214
  "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
3213
3215
  "rp-loading-modal": "_rp-loading-modal_wazy2_14",
3214
3216
  "rp-loading-title": "_rp-loading-title_wazy2_27",
3215
3217
  "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
3216
3218
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3217
3219
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3218
- loading: da
3219
- }, ua = ({ percentage: t }) => {
3220
+ loading: la
3221
+ }, da = ({ percentage: t }) => {
3220
3222
  const { cancel: e } = it(), { localeMessages: n } = pe();
3221
- return t < 1 ? null : /* @__PURE__ */ i("div", { className: se(ke["rp-loading-overlay"]), children: /* @__PURE__ */ W("div", { className: se(ke["rp-loading-modal"]), children: [
3222
- /* @__PURE__ */ W("div", { className: se(ke["rp-loading-title"]), children: [
3223
+ return t < 1 ? null : /* @__PURE__ */ i("div", { className: se(Me["rp-loading-overlay"]), children: /* @__PURE__ */ W("div", { className: se(Me["rp-loading-modal"]), children: [
3224
+ /* @__PURE__ */ W("div", { className: se(Me["rp-loading-title"]), children: [
3223
3225
  n == null ? void 0 : n.printLoadingMessage,
3224
3226
  "..."
3225
3227
  ] }),
3226
- /* @__PURE__ */ i("div", { className: se(ke["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
3228
+ /* @__PURE__ */ i("div", { className: se(Me["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
3227
3229
  "div",
3228
3230
  {
3229
- className: se(ke["rp-loading-progress"]),
3231
+ className: se(Me["rp-loading-progress"]),
3230
3232
  style: { width: `${t}%` }
3231
3233
  }
3232
3234
  ) }),
3233
- /* @__PURE__ */ i("button", { className: se(ke["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3235
+ /* @__PURE__ */ i("button", { className: se(Me["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3234
3236
  ] }) });
3235
- }, pa = rt((t, e) => {
3236
- const { showPrintProgress: n = !0 } = Pe(), { showPrintProgress: r = !0 } = Se(), { progress: o } = it(), { isSmallScreen: a } = xe(), { percentage: c } = o || {}, d = () => a ? { gridTemplateColumns: "25% 60% 15%" } : void 0, l = () => {
3237
- if (!(!n || !r || !c))
3238
- return /* @__PURE__ */ i(ua, { percentage: c });
3237
+ }, ua = rt((t, e) => {
3238
+ const { showPrintProgress: n = !0 } = Pe(), { showPrintProgress: r = !0 } = Se(), { progress: o } = it(), { isSmallScreen: a } = xe(), { percentage: l } = o || {}, d = () => a ? { gridTemplateColumns: "25% 60% 15%" } : void 0, c = () => {
3239
+ if (!(!n || !r || !l))
3240
+ return /* @__PURE__ */ i(da, { percentage: l });
3239
3241
  };
3240
3242
  return /* @__PURE__ */ W("div", { children: [
3241
3243
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: $e["rp-toolbar-content"], children: /* @__PURE__ */ W("div", { className: $e["rp-toolbar-wrapper"], style: d(), children: [
3242
3244
  /* @__PURE__ */ W("div", { "data-rp": "topBarLeft", className: $e["rp-toolbar-start"], children: [
3243
- /* @__PURE__ */ i(la, {}),
3244
- /* @__PURE__ */ i(yi, {})
3245
+ /* @__PURE__ */ i(ca, {}),
3246
+ /* @__PURE__ */ i(Pi, {})
3245
3247
  ] }),
3246
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: $e["rp-toolbar-middle"], children: /* @__PURE__ */ i(sa, {}) }),
3247
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: $e["rp-toolbar-end"], children: /* @__PURE__ */ i(ta, {}) })
3248
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: $e["rp-toolbar-middle"], children: /* @__PURE__ */ i(aa, {}) }),
3249
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: $e["rp-toolbar-end"], children: /* @__PURE__ */ i(ea, {}) })
3248
3250
  ] }) }),
3249
- /* @__PURE__ */ i(l, {})
3251
+ /* @__PURE__ */ i(c, {})
3250
3252
  ] });
3251
3253
  }), _t = {
3252
3254
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1bqgz_1",
3253
3255
  "rp-sidebar-content": "_rp-sidebar-content_1bqgz_1",
3254
3256
  "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_1bqgz_16"
3255
- }, Ge = {
3257
+ }, qe = {
3256
3258
  "rp-thumbnail-wrapper": "_rp-thumbnail-wrapper_3fenb_1",
3257
3259
  "rp-thumbnail-text": "_rp-thumbnail-text_3fenb_10",
3258
3260
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
3259
3261
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3260
3262
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3261
- }, ha = (t) => {
3262
- const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = he(), { pageRotate: a } = ot(), c = H(null), d = Ln(), { pages: l } = ie(), [f, m] = $(null), C = H(!1), h = H(), w = M(() => n ? Ge["rp-thumbnail-active"] : "", [n]), P = M(() => ({
3263
+ }, pa = (t) => {
3264
+ const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = he(), { pageRotate: a } = ot(), l = H(null), d = Rn(), { pages: c } = re(), [m, f] = $(null), C = H(!1), p = H(), _ = k(() => n ? qe["rp-thumbnail-active"] : "", [n]), P = k(() => ({
3263
3265
  width: Math.round(r.width),
3264
3266
  height: Math.round(r.height)
3265
- }), [r]), T = E(() => {
3267
+ }), [r]), w = E(() => {
3266
3268
  e && o(e);
3267
3269
  }, [o, e]);
3268
3270
  return D(() => {
3269
- const v = l.get(e);
3270
- h.current === v || (m(null), h.current = v);
3271
- }, [l, e]), D(() => {
3272
- const v = l.get(e);
3273
- if (!c.current || !e || !v || f)
3271
+ const v = c.get(e);
3272
+ p.current === v || (f(null), p.current = v);
3273
+ }, [c, e]), D(() => {
3274
+ const v = c.get(e);
3275
+ if (!l.current || !e || !v || m)
3274
3276
  return;
3275
3277
  const I = new IntersectionObserver((g) => {
3276
3278
  g.forEach((u) => {
@@ -3279,21 +3281,21 @@ const Ne = {
3279
3281
  return;
3280
3282
  }
3281
3283
  if (u.isIntersecting) {
3282
- const p = document.createElement("canvas");
3284
+ const h = document.createElement("canvas");
3283
3285
  C.current = !0, d.enqueue(
3284
3286
  `thumbnail-${e}`,
3285
3287
  {
3286
3288
  page: v.page,
3287
- canvasElem: p,
3289
+ canvasElem: h,
3288
3290
  options: {
3289
3291
  scale: 1
3290
3292
  },
3291
3293
  onLoaded: () => {
3292
- p.toBlob((s) => {
3294
+ h.toBlob((s) => {
3293
3295
  if (!s)
3294
3296
  return;
3295
- const _ = URL.createObjectURL(s);
3296
- m(_);
3297
+ const b = URL.createObjectURL(s);
3298
+ f(b);
3297
3299
  });
3298
3300
  }
3299
3301
  },
@@ -3302,16 +3304,16 @@ const Ne = {
3302
3304
  }
3303
3305
  });
3304
3306
  });
3305
- return c.current && I.observe(c.current), () => {
3307
+ return l.current && I.observe(l.current), () => {
3306
3308
  I.disconnect(), d.removeQueue(`thumbnail-${e}`);
3307
3309
  };
3308
- }, [d, e, l, f]), /* @__PURE__ */ W(
3310
+ }, [d, e, c, m]), /* @__PURE__ */ W(
3309
3311
  "div",
3310
3312
  {
3311
- onClick: T,
3313
+ onClick: w,
3312
3314
  id: `page-${e}`,
3313
- className: Ge["rp-thumbnail-wrapper"],
3314
- ref: c,
3315
+ className: qe["rp-thumbnail-wrapper"],
3316
+ ref: l,
3315
3317
  children: [
3316
3318
  /* @__PURE__ */ i(
3317
3319
  "div",
@@ -3319,11 +3321,11 @@ const Ne = {
3319
3321
  style: {
3320
3322
  transform: `rotate(${a[e || 0]}deg)`
3321
3323
  },
3322
- className: se(w, Ge["rp-thumbnail"]),
3323
- children: f ? /* @__PURE__ */ i(
3324
+ className: se(_, qe["rp-thumbnail"]),
3325
+ children: m ? /* @__PURE__ */ i(
3324
3326
  "img",
3325
3327
  {
3326
- src: f,
3328
+ src: m,
3327
3329
  width: P.width,
3328
3330
  height: P.height,
3329
3331
  alt: "thumbnail"
@@ -3331,39 +3333,39 @@ const Ne = {
3331
3333
  ) : /* @__PURE__ */ i(
3332
3334
  "div",
3333
3335
  {
3334
- className: Ge["rp-thumbnail-loader"],
3336
+ className: qe["rp-thumbnail-loader"],
3335
3337
  style: {
3336
3338
  width: `${P.width}px`,
3337
3339
  height: `${P.height}px`
3338
3340
  },
3339
- children: /* @__PURE__ */ i(vn, {})
3341
+ children: /* @__PURE__ */ i(gn, {})
3340
3342
  }
3341
3343
  )
3342
3344
  }
3343
3345
  ),
3344
- /* @__PURE__ */ i("div", { className: Ge["rp-thumbnail-text"], children: e })
3346
+ /* @__PURE__ */ i("div", { className: qe["rp-thumbnail-text"], children: e })
3345
3347
  ]
3346
3348
  }
3347
3349
  );
3348
- }, un = {
3350
+ }, dn = {
3349
3351
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
3350
3352
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
3351
- }, fa = 16, ma = (t, e) => {
3353
+ }, ha = 16, fa = (t, e) => {
3352
3354
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3353
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - fa);
3354
- }, ga = rt((t, e) => {
3355
- const { show: n, width: r } = t, { focusedPage: o, totalPages: a } = he(), { thumbnailPages: c, addPage: d, thumbnailLength: l, addToPage: f } = Sn(), m = H(null), C = H(1);
3356
- pn(e, () => m.current);
3357
- const h = M(() => Object.values(c), [c]), w = E(() => {
3358
- const P = l + 1;
3355
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - ha);
3356
+ }, ma = rt((t, e) => {
3357
+ const { show: n, width: r } = t, { focusedPage: o, totalPages: a } = he(), { thumbnailPages: l, addPage: d, thumbnailLength: c, addToPage: m } = In(), f = H(null), C = H(1);
3358
+ un(e, () => f.current);
3359
+ const p = k(() => Object.values(l), [l]), _ = E(() => {
3360
+ const P = c + 1;
3359
3361
  P <= a && d(P);
3360
- }, [d, a, l]);
3362
+ }, [d, a, c]);
3361
3363
  return D(() => {
3362
- o > l && a > l ? f(o) : n && C.current !== o && (ma(m.current, o), C.current = o);
3363
- }, [o, l, f, n, h]), Vo(m.current, w), /* @__PURE__ */ i("div", { ref: m, className: un["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ i("div", { className: un["rp-thumbnails"], children: n ? h.map((P, T) => {
3364
+ o > c && a > c ? m(o) : n && C.current !== o && (fa(f.current, o), C.current = o);
3365
+ }, [o, c, m, n, p]), Uo(f.current, _), /* @__PURE__ */ i("div", { ref: f, className: dn["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ i("div", { className: dn["rp-thumbnails"], children: n ? p.map((P, w) => {
3364
3366
  var v, I;
3365
3367
  return /* @__PURE__ */ i(
3366
- ha,
3368
+ pa,
3367
3369
  {
3368
3370
  isFocused: o === ((v = P.page) == null ? void 0 : v.pageNumber),
3369
3371
  pageNumber: (I = P.page) == null ? void 0 : I.pageNumber,
@@ -3371,24 +3373,24 @@ const Ne = {
3371
3373
  viewport: P.viewport,
3372
3374
  defaultRotation: P.defaultRotation
3373
3375
  },
3374
- T
3376
+ w
3375
3377
  );
3376
3378
  }) : null }) });
3377
- }), va = () => {
3379
+ }), ga = () => {
3378
3380
  const { thumbnailIcon: t } = ve(), { thumbnailIcon: e } = ge();
3379
- return t || e || /* @__PURE__ */ i(zo, {});
3380
- }, wa = () => {
3381
- const { active: t, setActive: e } = Sn(), [n, r] = $(Bo), o = H(null), a = H(null), { thumbnailTool: c, sidebarEnable: d } = Pe(), { localeMessages: l } = pe(), f = E(() => {
3381
+ return t || e || /* @__PURE__ */ i(Do, {});
3382
+ }, va = () => {
3383
+ const { active: t, setActive: e } = In(), [n, r] = $(Vo), o = H(null), a = H(null), { thumbnailTool: l, sidebarEnable: d } = Pe(), { localeMessages: c } = pe(), m = E(() => {
3382
3384
  e((C) => !C);
3383
- }, []), m = M(() => typeof c != "boolean" && c ? /* @__PURE__ */ i(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ i(K, { content: l == null ? void 0 : l.thumbnailTooltip, children: /* @__PURE__ */ i(
3385
+ }, []), f = k(() => typeof l != "boolean" && l ? /* @__PURE__ */ i(l, { onClick: m, active: t }) : l ? /* @__PURE__ */ i(K, { content: c == null ? void 0 : c.thumbnailTooltip, children: /* @__PURE__ */ i(
3384
3386
  de,
3385
3387
  {
3386
- onClick: f,
3388
+ onClick: m,
3387
3389
  active: t,
3388
- "aria-label": l == null ? void 0 : l.thumbnailTooltip,
3389
- children: /* @__PURE__ */ i(va, {})
3390
+ "aria-label": c == null ? void 0 : c.thumbnailTooltip,
3391
+ children: /* @__PURE__ */ i(ga, {})
3390
3392
  }
3391
- ) }) : null, [c, t, f, l]);
3393
+ ) }) : null, [l, t, m, c]);
3392
3394
  return /* @__PURE__ */ i(fe, { children: d && /* @__PURE__ */ W(
3393
3395
  "div",
3394
3396
  {
@@ -3396,7 +3398,7 @@ const Ne = {
3396
3398
  className: _t["rp-sidebar-content-wrapper"],
3397
3399
  "data-rp": "sidebar",
3398
3400
  children: [
3399
- /* @__PURE__ */ i("div", { ref: a, className: _t["rp-sidebar-content"], children: m }),
3401
+ /* @__PURE__ */ i("div", { ref: a, className: _t["rp-sidebar-content"], children: f }),
3400
3402
  /* @__PURE__ */ W(
3401
3403
  "div",
3402
3404
  {
@@ -3404,7 +3406,7 @@ const Ne = {
3404
3406
  hidden: !t,
3405
3407
  className: _t["rp-thumbnails-wrapper"],
3406
3408
  children: [
3407
- /* @__PURE__ */ i(ga, { show: t, ref: o }),
3409
+ /* @__PURE__ */ i(ma, { show: t, ref: o }),
3408
3410
  /* @__PURE__ */ i(
3409
3411
  Mo,
3410
3412
  {
@@ -3419,38 +3421,38 @@ const Ne = {
3419
3421
  ]
3420
3422
  }
3421
3423
  ) });
3422
- }, Pc = ho((t, e) => {
3424
+ }, Cc = po((t, e) => {
3423
3425
  const {
3424
3426
  children: n,
3425
3427
  slots: r,
3426
3428
  icons: o,
3427
3429
  style: a,
3428
- className: c,
3430
+ className: l,
3429
3431
  mobileWidth: d,
3430
- onLoaded: l,
3431
- cleanupOnLoaded: f,
3432
- onLayoutWidthChange: m
3433
- } = t, [C, h] = $(null), { setContainer: w, setContentRef: P } = Ce(), { loading: T } = ie(), { LoaderImageComponent: v } = yt();
3434
- return D(() => (l && l(), () => {
3435
- f && f();
3436
- }), [l, f]), // TODO: deprecated in v2.0.0, remove later ~
3437
- /* @__PURE__ */ i(Dn, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i(Fo, { mobileWidth: d, onLayoutWidthChange: m, children: /* @__PURE__ */ i(ko, { slots: r, children: /* @__PURE__ */ i(qo, { icons: o, children: /* @__PURE__ */ W(Ao, { getContainerRef: w, style: a, className: c, children: [
3438
- /* @__PURE__ */ W(Wo, { children: [
3432
+ onLoaded: c,
3433
+ cleanupOnLoaded: m,
3434
+ onLayoutWidthChange: f
3435
+ } = t, [C, p] = $(null), { setContainer: _, setContentRef: P } = Ce(), { loading: w } = re(), { LoaderImageComponent: v } = yt();
3436
+ return D(() => (c && c(), () => {
3437
+ m && m();
3438
+ }), [c, m]), // TODO: deprecated in v2.0.0, remove later ~
3439
+ /* @__PURE__ */ i(On, { toolbarRef: C, ref: e, children: /* @__PURE__ */ i(Ao, { mobileWidth: d, onLayoutWidthChange: f, children: /* @__PURE__ */ i(Fo, { slots: r, children: /* @__PURE__ */ i(qo, { icons: o, children: /* @__PURE__ */ W(zo, { getContainerRef: _, style: a, className: l, children: [
3440
+ /* @__PURE__ */ W(ko, { children: [
3439
3441
  /* @__PURE__ */ W("div", { className: ye["rp-layout"], children: [
3440
3442
  /* @__PURE__ */ i(
3441
- pa,
3443
+ ua,
3442
3444
  {
3443
- ref: h
3445
+ ref: p
3444
3446
  }
3445
3447
  ),
3446
3448
  /* @__PURE__ */ W("div", { className: ye["rp-content"], children: [
3447
- /* @__PURE__ */ i("div", { className: ye["rp-sidebar"], children: /* @__PURE__ */ i(wa, {}) }),
3449
+ /* @__PURE__ */ i("div", { className: ye["rp-sidebar"], children: /* @__PURE__ */ i(va, {}) }),
3448
3450
  /* @__PURE__ */ i("div", { ref: P, className: ye["rp-pages"], children: n })
3449
3451
  ] })
3450
3452
  ] }),
3451
- /* @__PURE__ */ i(Go, {})
3453
+ /* @__PURE__ */ i($o, {})
3452
3454
  ] }),
3453
- T ? /* @__PURE__ */ i(
3455
+ w ? /* @__PURE__ */ i(
3454
3456
  "div",
3455
3457
  {
3456
3458
  className: ye["rp-loader"],
@@ -3479,7 +3481,7 @@ const Ne = {
3479
3481
  }
3480
3482
  ) : null
3481
3483
  ] }) }) }) }) });
3482
- }), yc = {
3484
+ }), Pc = {
3483
3485
  "rp-toolbar-layout": "_rp-toolbar-layout_vwobs_1",
3484
3486
  "rp-content": "_rp-content_vwobs_7",
3485
3487
  "rp-topbar-content": "_rp-topbar-content_vwobs_13",
@@ -3488,59 +3490,59 @@ const Ne = {
3488
3490
  "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_vwobs_37"
3489
3491
  };
3490
3492
  export {
3491
- ha as $,
3492
- In as A,
3493
- Ur as B,
3494
- xn as C,
3495
- Gi as D,
3496
- Rn as E,
3497
- Ln as F,
3498
- Vr as G,
3499
- jr as H,
3500
- Qr as I,
3501
- Jr as J,
3493
+ pa as $,
3494
+ yn as A,
3495
+ Gr as B,
3496
+ Sn as C,
3497
+ $i as D,
3498
+ xn as E,
3499
+ Rn as F,
3500
+ Ur as G,
3501
+ Zr as H,
3502
+ Xr as I,
3503
+ Yr as J,
3502
3504
  Ot as K,
3503
- Dn as L,
3504
- mi as M,
3505
- wi as N,
3506
- _i as O,
3507
- mc as P,
3508
- bi as Q,
3509
- bc as R,
3510
- la as S,
3511
- vc as T,
3512
- Qn as U,
3513
- eo as V,
3514
- Ji as W,
3515
- ea as X,
3516
- dn as Y,
3517
- oa as Z,
3518
- pa as _,
3519
- Pc as a,
3520
- wa as a0,
3521
- jn as b,
3505
+ On as L,
3506
+ fi as M,
3507
+ vi as N,
3508
+ wi as O,
3509
+ fc as P,
3510
+ _i as Q,
3511
+ _c as R,
3512
+ ca as S,
3513
+ gc as T,
3514
+ Xn as U,
3515
+ Jn as V,
3516
+ Yi as W,
3517
+ Ji as X,
3518
+ ln as Y,
3519
+ na as Z,
3520
+ ua as _,
3521
+ Cc as a,
3522
+ va as a0,
3523
+ Zn as b,
3522
3524
  it as c,
3523
3525
  Nt as d,
3524
- wc as e,
3525
- _c as f,
3526
- gc as g,
3527
- Sn as h,
3526
+ vc as e,
3527
+ wc as f,
3528
+ mc as g,
3529
+ In as h,
3528
3530
  wt as i,
3529
3531
  Fe as j,
3530
3532
  $e as k,
3531
- yi as l,
3532
- sa as m,
3533
- ta as n,
3534
- yc as o,
3535
- ga as p,
3536
- ua as q,
3533
+ Pi as l,
3534
+ aa as m,
3535
+ ea as n,
3536
+ Pc as o,
3537
+ ma as p,
3538
+ da as q,
3537
3539
  qi as r,
3538
- Xi as s,
3539
- Cn as t,
3540
+ Ki as s,
3541
+ Tn as t,
3540
3542
  he as u,
3541
- $r as v,
3542
- Pn as w,
3543
- Gr as x,
3544
- yn as y,
3543
+ Hr as v,
3544
+ Cn as w,
3545
+ $r as x,
3546
+ Pn as y,
3545
3547
  qr as z
3546
3548
  };