@pdf-viewer/react 1.3.0-beta.3 → 1.3.0-beta.4

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 (43) hide show
  1. package/dist/{RPDefaultLayout-2102a11b.js → RPDefaultLayout-6fe6be3d.js} +796 -793
  2. package/dist/assets/RPDefaultLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +2 -2
  5. package/dist/components/RPProvider.js +7 -6
  6. package/dist/components/layout/RPDefaultLayout.js +2 -2
  7. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  8. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  10. package/dist/components/layout/toolbar/DocumentDialog.js +3 -2
  11. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  12. package/dist/components/layout/toolbar/MostPageTool.js +3 -2
  13. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  14. package/dist/components/layout/toolbar/Paginate.js +1 -1
  15. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  16. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  18. package/dist/components/layout/toolbar/SearchTool.js +3 -2
  19. package/dist/components/layout/toolbar/ZoomTool.js +3 -2
  20. package/dist/components/page/AnnotationLayer.js +3 -2
  21. package/dist/components/page/CanvasLayer.js +3 -2
  22. package/dist/components/page/DualPage.js +1 -1
  23. package/dist/components/page/RPPage.js +3 -2
  24. package/dist/components/page/SinglePage.js +1 -1
  25. package/dist/components/page/TextLayer.js +3 -2
  26. package/dist/components/ui/LoadingIndicator.js +1 -1
  27. package/dist/contexts/LoaderContext.js +30 -0
  28. package/dist/contexts/PaginationContext.js +1 -1
  29. package/dist/contexts/PrintContext.js +1 -1
  30. package/dist/contexts/SearchContext.js +1 -1
  31. package/dist/contexts/ThumbnailsContext.js +1 -1
  32. package/dist/main.js +1 -1
  33. package/dist/types/contexts/LoaderContext.d.ts +9 -0
  34. package/dist/types/utils/types.d.ts +4 -0
  35. package/dist/utils/hooks/useFileDownload.js +3 -2
  36. package/dist/utils/hooks/useLicense.js +1 -1
  37. package/dist/utils/hooks/usePaginate.js +3 -2
  38. package/dist/utils/hooks/usePrint.js +3 -2
  39. package/dist/utils/hooks/useScrollToPage.js +3 -2
  40. package/dist/utils/hooks/useSearch.js +3 -2
  41. package/dist/utils/hooks/useThumbnail.js +3 -2
  42. package/dist/utils/hooks/useVirtualReactWindow.js +3 -2
  43. package/package.json +1 -1
@@ -1,99 +1,100 @@
1
1
  import { jsx as i, jsxs as A, Fragment as Fe } from "react/jsx-runtime";
2
- import * as V from "react";
3
- import { useRef as M, useEffect as z, useCallback as L, useState as H, createContext as je, useContext as Be, useMemo as k, forwardRef as Ke, useImperativeHandle as en, createElement as He, PureComponent as Bn, Component as Kn, memo as Xn } from "react";
2
+ import * as U from "react";
3
+ import { useRef as W, useEffect as z, useCallback as L, useState as M, createContext as Ze, useContext as je, useMemo as k, forwardRef as Be, useImperativeHandle as en, createElement as Me, PureComponent as Xn, Component as Jn, memo as Yn } from "react";
4
4
  import { ChevronUpIcon as ke } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as ee } from "./components/ui/Button.js";
6
6
  import { UIInput as tn } from "./components/ui/Input.js";
7
7
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
8
- import { useDocumentContext as Y } from "./contexts/RPDocumentContext.js";
8
+ import { useDocumentContext as Q } from "./contexts/RPDocumentContext.js";
9
9
  import "./contexts/DarkModeContext.js";
10
- import { ViewMode as Ue, ScrollMode as K, AnnotationSubType as Lt, SelectionMode as Jn, ZoomLevel as rt } from "./utils/types.js";
11
- import { useRotationContext as Xe } from "./contexts/RotationContext.js";
12
- import { useLayerContext as Yn } from "./contexts/LayerContext.js";
13
- import { useZoomContext as Je } from "./contexts/ZoomContext.js";
14
- import { useViewModeContext as Ye } from "./contexts/ViewModeContext.js";
15
- import { useVirtualScrollContext as Qe } from "./contexts/VirtualScrollContext.js";
10
+ import { ViewMode as Ve, ScrollMode as X, AnnotationSubType as Lt, SelectionMode as Qn, ZoomLevel as nt } from "./utils/types.js";
11
+ import { useRotationContext as Ke } from "./contexts/RotationContext.js";
12
+ import { useLayerContext as er } from "./contexts/LayerContext.js";
13
+ import { useZoomContext as Xe } from "./contexts/ZoomContext.js";
14
+ import { useViewModeContext as Je } from "./contexts/ViewModeContext.js";
15
+ import { useVirtualScrollContext as Ye } from "./contexts/VirtualScrollContext.js";
16
16
  import { useVirtualGridContext as nn } from "./contexts/VirtualGridContext.js";
17
- import { useScrollStateContext as et } from "./contexts/ScrollStateContext.js";
18
- import { useSelectionModeContext as Qn } from "./contexts/SelectionModeContext.js";
19
- import { useInitialStateContext as er } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as tr } from "./contexts/FullScreenContext.js";
17
+ import { useScrollStateContext as Qe } from "./contexts/ScrollStateContext.js";
18
+ import { useSelectionModeContext as tr } from "./contexts/SelectionModeContext.js";
19
+ import { useInitialStateContext as nr } from "./contexts/InitialStateContext.js";
20
+ import { useFullScreenContext as rr } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
- import { renderPage as mt } from "./utils/renderPage.js";
24
- import { highlightMatches as rn, findMatches as nr, resetDivs as rr } from "./utils/highlight.js";
23
+ import { renderPage as ht } from "./utils/renderPage.js";
24
+ import { highlightMatches as rn, findMatches as or, resetDivs as ir } from "./utils/highlight.js";
25
25
  import * as on from "pdfjs-dist";
26
- import { PixelsPerInch as or, AnnotationMode as ir, RenderingCancelledException as ar, AnnotationLayer as sr } from "pdfjs-dist";
27
- import { useLayoutContainer as Pe } from "./contexts/LayoutContainerContext.js";
28
- import { useDimensionPagesContext as bt } from "./contexts/DimensionPagesContext.js";
29
- import { useLocalizationContext as de } from "./contexts/LocalizationContext.js";
26
+ import { PixelsPerInch as ar, AnnotationMode as sr, RenderingCancelledException as cr, AnnotationLayer as lr } from "pdfjs-dist";
27
+ import { useLayoutContainer as Se } from "./contexts/LayoutContainerContext.js";
28
+ import { useDimensionPagesContext as wt } from "./contexts/DimensionPagesContext.js";
29
+ import { useLocalizationContext as pe } from "./contexts/LocalizationContext.js";
30
+ import { useLoaderContext as an } from "./contexts/LoaderContext.js";
30
31
  import "./components/RPConfig.js";
31
- import { ThumbnailIcon as cr } from "./components/icons/Thumbnail.js";
32
- import { c as re } from "./clsx-0c6e471a.js";
33
- import { LoaderIcon as We } from "./components/icons/LoaderIcon.js";
34
- import { useInfiniteScroll as lr } from "./utils/hooks/useInfiniteScroll.js";
35
- import { RPSplitter as ur } from "./components/layout/sidebar/RPSplitter.js";
36
- import { useToolbarComponentContext as ve, ToolbarComponentProvider as dr } from "./contexts/ToolbarComponentContext.js";
37
- import { useIconContext as pe, IconProvider as pr } from "./contexts/IconContext.js";
32
+ import { ThumbnailIcon as ur } from "./components/icons/Thumbnail.js";
33
+ import { c as oe } from "./clsx-0c6e471a.js";
34
+ import { LoaderIcon as bt } from "./components/icons/LoaderIcon.js";
35
+ import { useInfiniteScroll as dr } from "./utils/hooks/useInfiniteScroll.js";
36
+ import { RPSplitter as pr } from "./components/layout/sidebar/RPSplitter.js";
37
+ import { useToolbarComponentContext as ve, ToolbarComponentProvider as hr } from "./contexts/ToolbarComponentContext.js";
38
+ import { useIconContext as he, IconProvider as mr } from "./contexts/IconContext.js";
38
39
  import q from "./components/ui/RPTooltip.js";
39
- import { c as be, C as hr } from "./Container-8fea0875.js";
40
- import { WrapperLayout as mr } from "./components/layout/WrapperLayout.js";
41
- import { RPDropFileZone as fr } from "./components/RPDropFileZone.js";
42
- import { useViewportContext as Se, ViewportProvider as gr } from "./contexts/ViewportContext.js";
40
+ import { c as Ce, C as fr } from "./Container-8fea0875.js";
41
+ import { WrapperLayout as gr } from "./components/layout/WrapperLayout.js";
42
+ import { RPDropFileZone as vr } from "./components/RPDropFileZone.js";
43
+ import { useViewportContext as Ie, ViewportProvider as _r } from "./contexts/ViewportContext.js";
43
44
  import "./contexts/ThemeContext.js";
44
- import { SimpleLinkService as vr } from "./utils/link_service.js";
45
- import { annotationsEvents as _r, annotationEventsHandler as wr, handleClick as Nt, handleAnnotationWidget as br, handleAnnotationLink as Cr, bindLayerEvents as Tr, unbindLayerEvents as Et } from "./utils/annotations.js";
46
- import { useWatermark as Pr } from "./utils/hooks/useWatermark.js";
47
- import { useMousePressed as Sr } from "./utils/hooks/useMousePressed.js";
48
- import { useGrabScroll as Ir } from "./utils/hooks/useGrabScroll.js";
49
- import { usePinch as yr } from "./utils/hooks/usePinch.js";
50
- import { useDebounce as ft } from "./utils/hooks/useDebounce.js";
45
+ import { SimpleLinkService as wr } from "./utils/link_service.js";
46
+ import { annotationsEvents as br, annotationEventsHandler as Cr, handleClick as Nt, handleAnnotationWidget as Tr, handleAnnotationLink as Pr, bindLayerEvents as Sr, unbindLayerEvents as Et } from "./utils/annotations.js";
47
+ import { useWatermark as Ir } from "./utils/hooks/useWatermark.js";
48
+ import { useMousePressed as yr } from "./utils/hooks/useMousePressed.js";
49
+ import { useGrabScroll as xr } from "./utils/hooks/useGrabScroll.js";
50
+ import { usePinch as Rr } from "./utils/hooks/usePinch.js";
51
+ import { useDebounce as mt } from "./utils/hooks/useDebounce.js";
51
52
  import { getThumbnailViewport as Ot } from "./utils/getThumbnailViewport.js";
52
53
  import { smoothScrollTo as Dt } from "./utils/smoothScrollTo.js";
53
- import { appConsole as xr } from "./utils/appConsole.js";
54
- import { FileUploadTool as an } from "./components/layout/toolbar/FileUploadTool.js";
55
- import { DarkModeTool as Rr } from "./components/layout/toolbar/DarkModeTool.js";
56
- import { ThreeDotIcon as Lr } from "./components/icons/ThreeDotIcon.js";
57
- import { UIDropDown as sn } from "./components/ui/DropDown.js";
58
- import { c as Nr, u as Ct, P as Me, b as Ae, d as Tt, i as Er, k as Or, a as Dr } from "./index-48ca3f30.js";
59
- import { D as zr, d as ot } from "./floating-ui.react-dom-88a86594.js";
60
- import { a as Ar, h as Fr, u as kr, F as Wr, b as Mr, G as qe } from "./index-4ba3ab9a.js";
61
- import { CloseIcon as cn } from "./components/icons/CloseIcon.js";
54
+ import { appConsole as Lr } from "./utils/appConsole.js";
55
+ import { FileUploadTool as sn } from "./components/layout/toolbar/FileUploadTool.js";
56
+ import { DarkModeTool as Nr } from "./components/layout/toolbar/DarkModeTool.js";
57
+ import { ThreeDotIcon as Er } from "./components/icons/ThreeDotIcon.js";
58
+ import { UIDropDown as cn } from "./components/ui/DropDown.js";
59
+ import { c as Or, u as Ct, P as We, b as Ae, d as Tt, i as Dr, k as zr, a as Ar } from "./index-48ca3f30.js";
60
+ import { D as Fr, d as rt } from "./floating-ui.react-dom-88a86594.js";
61
+ import { a as kr, h as Wr, u as Mr, F as Hr, b as $r, G as Ue } from "./index-4ba3ab9a.js";
62
+ import { CloseIcon as ln } from "./components/icons/CloseIcon.js";
62
63
  import { dateFormatter as zt } from "./utils/dateFormatter.js";
63
- import { PropertyItem as Hr } from "./components/layout/toolbar/PropertyItem.js";
64
- import { useOtherToolContext as $r, OtherToolProvider as Gr } from "./contexts/OtherToolContext.js";
65
- import { DocumentProperties as Vr } from "./components/layout/toolbar/DocumentProperties.js";
66
- import { RotateTool as Ur } from "./components/layout/toolbar/RotateTool.js";
67
- import { ScrollModeTool as qr } from "./components/layout/toolbar/ScrollModeTool.js";
64
+ import { PropertyItem as Gr } from "./components/layout/toolbar/PropertyItem.js";
65
+ import { useOtherToolContext as Vr, OtherToolProvider as Ur } from "./contexts/OtherToolContext.js";
66
+ import { DocumentProperties as qr } from "./components/layout/toolbar/DocumentProperties.js";
67
+ import { RotateTool as Zr } from "./components/layout/toolbar/RotateTool.js";
68
+ import { ScrollModeTool as jr } from "./components/layout/toolbar/ScrollModeTool.js";
68
69
  import { MenuSeparator as Pt } from "./components/layout/toolbar/MenuSeparator.js";
69
- import { FileDownloadDefaultIcon as Zr } from "./components/icons/FileDownloadDefaultIcon.js";
70
+ import { FileDownloadDefaultIcon as Br } from "./components/icons/FileDownloadDefaultIcon.js";
70
71
  import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
71
- import { PrintDefaultTool as jr } from "./components/icons/PrintDefaultIcon.js";
72
- import { FullScreenTool as ln } from "./components/layout/toolbar/FullScreenTool.js";
73
- import { GoToDownIcon as un } from "./components/icons/GoToDownIcon.js";
74
- import { SelectionModeTool as Br } from "./components/layout/toolbar/SelectionModeTool.js";
75
- import { ZoomInIcon as Kr } from "./components/icons/ZoomInIcon.js";
76
- import { ZoomOutIcon as Xr } from "./components/icons/ZoomOutIcon.js";
72
+ import { PrintDefaultTool as Kr } from "./components/icons/PrintDefaultIcon.js";
73
+ import { FullScreenTool as un } from "./components/layout/toolbar/FullScreenTool.js";
74
+ import { GoToDownIcon as dn } from "./components/icons/GoToDownIcon.js";
75
+ import { SelectionModeTool as Xr } from "./components/layout/toolbar/SelectionModeTool.js";
76
+ import { ZoomInIcon as Jr } from "./components/icons/ZoomInIcon.js";
77
+ import { ZoomOutIcon as Yr } from "./components/icons/ZoomOutIcon.js";
77
78
  import { PAGE_PADDING as At } from "./utils/constants.js";
78
- import { getZoomLevel as Jr } from "./utils/getZoomLevel.js";
79
- import { SearchIcon as Yr } from "./components/icons/SearchIcon.js";
79
+ import { getZoomLevel as Qr } from "./utils/getZoomLevel.js";
80
+ import { SearchIcon as eo } from "./components/icons/SearchIcon.js";
80
81
  import { UICheckbox as Ft } from "./components/ui/Checkbox.js";
81
- import { ClearIcon as Qr } from "./components/icons/ClearIcon.js";
82
+ import { ClearIcon as to } from "./components/icons/ClearIcon.js";
82
83
  import { InfoIcon as kt } from "./components/icons/InfoIcon.js";
83
- import { UIPopOver as eo } from "./components/ui/Popover.js";
84
- import './assets/RPDefaultLayout.css';const dn = () => {
85
- const { viewMode: t } = Ye(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Qe(), { setFocusedPage: a } = se(), s = M(), { columnCount: c } = nn(), { widths: l, heights: u } = bt(), h = M(e), f = M(t), p = M(c);
84
+ import { UIPopOver as no } from "./components/ui/Popover.js";
85
+ import './assets/RPDefaultLayout.css';const pn = () => {
86
+ const { viewMode: t } = Je(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Ye(), { setFocusedPage: a } = se(), s = W(), { columnCount: c } = nn(), { widths: l, heights: u } = wt(), h = W(e), f = W(t), p = W(c);
86
87
  z(() => {
87
88
  n != null && n.scrollToItem && (s.current = n);
88
89
  }, [n]), z(() => {
89
90
  h.current = e, f.current = t;
90
91
  }, [e, t]);
91
92
  const v = L(
92
- (C) => {
93
+ (b) => {
93
94
  if (!r)
94
95
  return;
95
- const w = Math.ceil(C / 2) * 2 - 1;
96
- return C === w + 1 ? new Promise((g) => {
96
+ const w = Math.ceil(b / 2) * 2 - 1;
97
+ return b === w + 1 ? new Promise((g) => {
97
98
  r.scrollTo({
98
99
  left: l[w],
99
100
  top: 0
@@ -112,17 +113,17 @@ import './assets/RPDefaultLayout.css';const dn = () => {
112
113
  }, [e, t]), z(() => {
113
114
  p.current = c;
114
115
  }, [c]), { scrollToPage: L(
115
- (C) => {
116
- const w = C - 1;
116
+ (b) => {
117
+ const w = b - 1;
117
118
  let g = w, m = 0;
118
- if (f.current === Ue.DUAL_PAGE && h.current === K.PAGE_SCROLLING)
119
- return v(C), Promise.resolve();
120
- if (h.current === K.PAGE_SCROLLING)
121
- return a(C), Promise.resolve();
119
+ if (f.current === Ve.DUAL_PAGE && h.current === X.PAGE_SCROLLING)
120
+ return v(b), Promise.resolve();
121
+ if (h.current === X.PAGE_SCROLLING)
122
+ return a(b), Promise.resolve();
122
123
  if (!s.current || !o)
123
124
  return Promise.resolve();
124
125
  const P = o;
125
- if (h.current === K.HORIZONTAL_SCROLLING) {
126
+ if (h.current === X.HORIZONTAL_SCROLLING) {
126
127
  m = w;
127
128
  const d = w * (l[w] ?? 0);
128
129
  return new Promise((T) => {
@@ -132,12 +133,12 @@ import './assets/RPDefaultLayout.css';const dn = () => {
132
133
  }), T();
133
134
  });
134
135
  }
135
- if (f.current === Ue.DUAL_PAGE) {
136
+ if (f.current === Ve.DUAL_PAGE) {
136
137
  m = w % 2, g = Math.floor(w / 2);
137
- const T = g * (u[g] ?? 0), b = m * (l[m] ?? 0);
138
+ const T = g * (u[g] ?? 0), C = m * (l[m] ?? 0);
138
139
  return new Promise((S) => {
139
140
  P.scrollTo({
140
- left: b,
141
+ left: C,
141
142
  top: T
142
143
  }), S();
143
144
  });
@@ -163,8 +164,8 @@ import './assets/RPDefaultLayout.css';const dn = () => {
163
164
  l
164
165
  ]
165
166
  ) };
166
- }, to = (t = 1) => {
167
- const [e, n] = H(t), [o, r] = H(0), { scrollToPage: a } = dn(), s = M(1), { isScrolling: c } = et(), { viewMode: l } = Ye(), { scrollMode: u } = Ee(), h = ft(e, 100), f = L(
167
+ }, ro = (t = 1) => {
168
+ const [e, n] = M(t), [o, r] = M(0), { scrollToPage: a } = pn(), s = W(1), { isScrolling: c } = Qe(), { viewMode: l } = Je(), { scrollMode: u } = Ee(), h = mt(e, 100), f = L(
168
169
  (w) => {
169
170
  if (!/^[0-9]*$/g.test(w.toString()) || !w)
170
171
  return { success: !1, currentPage: s.current };
@@ -183,7 +184,7 @@ import './assets/RPDefaultLayout.css';const dn = () => {
183
184
  ), _ = L(() => {
184
185
  let w = e - 1;
185
186
  v(w);
186
- }, [v, e, l, u]), C = L(() => {
187
+ }, [v, e, l, u]), b = L(() => {
187
188
  let w = e + 1;
188
189
  v(w);
189
190
  }, [v, e, l, u]);
@@ -192,11 +193,11 @@ import './assets/RPDefaultLayout.css';const dn = () => {
192
193
  totalPages: o,
193
194
  setFocusedPage: p,
194
195
  setTotalPages: r,
195
- nextPage: C,
196
+ nextPage: b,
196
197
  prevPage: _,
197
198
  goToPage: v
198
199
  };
199
- }, pn = je({
200
+ }, hn = Ze({
200
201
  focusedPage: 0,
201
202
  setFocusedPage: (t) => {
202
203
  },
@@ -209,14 +210,14 @@ import './assets/RPDefaultLayout.css';const dn = () => {
209
210
  nextPage: () => {
210
211
  }
211
212
  }), se = () => {
212
- const t = Be(pn);
213
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && xr.error("Please use this hooks inside children component of RPProvider"), t;
214
- }, es = ({ children: t }) => {
215
- const { pdf: e } = Y(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: s, nextPage: c, prevPage: l } = to();
213
+ const t = je(hn);
214
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && Lr.error("Please use this hooks inside children component of RPProvider"), t;
215
+ }, rs = ({ children: t }) => {
216
+ const { pdf: e } = Q(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: s, nextPage: c, prevPage: l } = ro();
216
217
  return z(() => {
217
218
  e != null && e.numPages && a(e.numPages);
218
219
  }, [e, a]), /* @__PURE__ */ i(
219
- pn.Provider,
220
+ hn.Provider,
220
221
  {
221
222
  value: {
222
223
  focusedPage: n,
@@ -231,12 +232,12 @@ import './assets/RPDefaultLayout.css';const dn = () => {
231
232
  }
232
233
  );
233
234
  };
234
- const no = () => {
235
- const { pdf: t, pages: e } = Y(), [n, o] = H({
235
+ const oo = () => {
236
+ const { pdf: t, pages: e } = Q(), [n, o] = M({
236
237
  loadedPages: 0,
237
238
  totalPages: 0,
238
239
  percentage: 0
239
- }), [r, a] = H(!1), [s, c] = H(!1), [l, u] = H(null), h = M(!1);
240
+ }), [r, a] = M(!1), [s, c] = M(!1), [l, u] = M(null), h = W(!1);
240
241
  z(() => {
241
242
  h.current;
242
243
  }, [h]);
@@ -257,41 +258,41 @@ const no = () => {
257
258
  pdfDocument: I,
258
259
  pageNumber: d,
259
260
  viewerPdfPage: T,
260
- printResolution: b,
261
+ printResolution: C,
261
262
  optionalContentConfigPromise: S,
262
- printAnnotationStoragePromise: F
263
+ printAnnotationStoragePromise: O
263
264
  }) => {
264
265
  if (h.current) {
265
266
  p();
266
267
  return;
267
268
  }
268
- const x = b / or.PDF;
269
+ const x = C / ar.PDF;
269
270
  P.width = Math.floor(T.width * x), P.height = Math.floor(T.height * x);
270
- const N = P.getContext("2d");
271
- N.save(), N.fillStyle = "rgb(255, 255, 255)", N.fillRect(0, 0, P.width, P.height), N.restore();
272
- const [R, O] = await Promise.all([
271
+ const D = P.getContext("2d");
272
+ D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, P.width, P.height), D.restore();
273
+ const [R, F] = await Promise.all([
273
274
  I.getPage(d),
274
- F
275
+ O
275
276
  ]);
276
277
  if (h.current) {
277
278
  p();
278
279
  return;
279
280
  }
280
- const D = {
281
- canvasContext: N,
281
+ const N = {
282
+ canvasContext: D,
282
283
  transform: [x, 0, 0, x, 0, 0],
283
284
  viewport: R.getViewport({ scale: 1, rotation: T.rotation }),
284
285
  intent: "print",
285
- annotationMode: ir.ENABLE_STORAGE,
286
+ annotationMode: sr.ENABLE_STORAGE,
286
287
  optionalContentConfigPromise: S,
287
- printAnnotationStorage: O
288
+ printAnnotationStorage: F
288
289
  };
289
290
  try {
290
- return R.render(D).promise;
291
+ return R.render(N).promise;
291
292
  } catch (y) {
292
- throw y instanceof ar || console.error(y), y;
293
+ throw y instanceof cr || console.error(y), y;
293
294
  }
294
- }, C = L(() => {
295
+ }, b = L(() => {
295
296
  const P = window.print;
296
297
  return new Promise((I) => {
297
298
  const d = (S) => {
@@ -303,28 +304,28 @@ const no = () => {
303
304
  d(I);
304
305
  return;
305
306
  }
306
- const b = new MutationObserver(() => {
307
- document.querySelector(".rp-print-zone") && (d(I), b.disconnect());
307
+ const C = new MutationObserver(() => {
308
+ document.querySelector(".rp-print-zone") && (d(I), C.disconnect());
308
309
  });
309
- b.observe(document.body, { childList: !0, subtree: !0 });
310
+ C.observe(document.body, { childList: !0, subtree: !0 });
310
311
  });
311
312
  }, []), w = async (P) => {
312
313
  const I = document.createElement("img"), d = document.createElement("div");
313
- return d.classList.add("rp-print-page"), await new Promise((T, b) => {
314
+ return d.classList.add("rp-print-page"), await new Promise((T, C) => {
314
315
  P.toBlob((S) => {
315
316
  S ? (I.src = URL.createObjectURL(S), I.onload = () => {
316
317
  URL.revokeObjectURL(I.src), T();
317
- }, I.onerror = b) : b(new Error("Failed to create blob"));
318
+ }, I.onerror = C) : C(new Error("Failed to create blob"));
318
319
  });
319
320
  }).catch(() => {
320
321
  }), d.appendChild(I), d;
321
322
  }, g = (P, I) => {
322
323
  const d = document.createElement("div");
323
324
  d.classList.add("rp-print-zone");
324
- const T = document.createElement("style"), b = I.get(1);
325
- if (b) {
326
- const { width: S, height: F } = b == null ? void 0 : b.page.getViewport({ scale: 1 });
327
- T.innerHTML = `@page { size: ${S}px ${F}px }`;
325
+ const T = document.createElement("style"), C = I.get(1);
326
+ if (C) {
327
+ const { width: S, height: O } = C == null ? void 0 : C.page.getViewport({ scale: 1 });
328
+ T.innerHTML = `@page { size: ${S}px ${O}px }`;
328
329
  }
329
330
  return d.appendChild(T), d.append(...P), d;
330
331
  }, m = L(async () => {
@@ -334,15 +335,15 @@ const no = () => {
334
335
  const P = document.createElement("canvas"), I = [];
335
336
  try {
336
337
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
337
- const T = t.getOptionalContentConfig({ intent: "print" }), b = Promise.resolve(
338
+ const T = t.getOptionalContentConfig({ intent: "print" }), C = Promise.resolve(
338
339
  t.annotationStorage.print ?? void 0
339
340
  ), S = e.size;
340
- for (const [x, N] of e) {
341
+ for (const [x, D] of e) {
341
342
  if (h.current) {
342
343
  p();
343
344
  return;
344
345
  }
345
- const R = N.page.getViewport({ scale: 1 });
346
+ const R = D.page.getViewport({ scale: 1 });
346
347
  if (await _({
347
348
  scratchCanvas: P,
348
349
  pdfDocument: t,
@@ -350,26 +351,26 @@ const no = () => {
350
351
  viewerPdfPage: R,
351
352
  printResolution: 150,
352
353
  optionalContentConfigPromise: T,
353
- printAnnotationStoragePromise: b
354
+ printAnnotationStoragePromise: C
354
355
  }), h.current) {
355
356
  p();
356
357
  return;
357
358
  }
358
- const O = await w(P);
359
- I.push(O);
360
- const D = parseFloat((I.length / S * 100).toFixed(2));
359
+ const F = await w(P);
360
+ I.push(F);
361
+ const N = parseFloat((I.length / S * 100).toFixed(2));
361
362
  o({
362
363
  loadedPages: x,
363
364
  totalPages: S,
364
- percentage: D
365
+ percentage: N
365
366
  });
366
367
  }
367
368
  if (h.current) {
368
369
  p();
369
370
  return;
370
371
  }
371
- const F = g(I, e);
372
- document.body.appendChild(F), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await C();
372
+ const O = g(I, e);
373
+ document.body.appendChild(O), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await b();
373
374
  } catch (d) {
374
375
  c(!0), d instanceof Error && u(d);
375
376
  } finally {
@@ -391,7 +392,7 @@ const no = () => {
391
392
  isError: s,
392
393
  error: l
393
394
  };
394
- }, hn = je({
395
+ }, mn = Ze({
395
396
  print: () => {
396
397
  },
397
398
  cancel: () => {
@@ -408,8 +409,8 @@ const no = () => {
408
409
  console.error("Error in setOnError callback:", e);
409
410
  }
410
411
  }
411
- }), ts = ({ children: t }) => {
412
- const [e, n] = H(null), [o, r] = H(null), { print: a, cancel: s, progress: c, isComplete: l, isError: u, error: h } = no(), f = L((w) => {
412
+ }), os = ({ children: t }) => {
413
+ const [e, n] = M(null), [o, r] = M(null), { print: a, cancel: s, progress: c, isComplete: l, isError: u, error: h } = oo(), f = L((w) => {
413
414
  w && typeof w == "function" && r(() => w);
414
415
  }, []), p = (w) => {
415
416
  h && w(h);
@@ -430,7 +431,7 @@ const no = () => {
430
431
  }, [c, e]);
431
432
  const _ = () => {
432
433
  o && (o(), r(null));
433
- }, C = {
434
+ }, b = {
434
435
  print: a,
435
436
  cancel: s,
436
437
  setOnProgress: v,
@@ -438,14 +439,14 @@ const no = () => {
438
439
  setOnError: p,
439
440
  progress: c
440
441
  };
441
- return /* @__PURE__ */ i(hn.Provider, { value: C, children: t });
442
- }, tt = () => {
443
- const t = Be(hn);
442
+ return /* @__PURE__ */ i(mn.Provider, { value: b, children: t });
443
+ }, et = () => {
444
+ const t = je(mn);
444
445
  if (!t)
445
446
  throw new Error("usePrintContext must be used within a PrintProvider");
446
447
  return t;
447
- }, ro = () => {
448
- const [t, e] = H({}), { pages: n } = Y(), { rotate: o } = Xe(), r = k(() => Object.keys(t).length, [t]), a = L(
448
+ }, io = () => {
449
+ const [t, e] = M({}), { pages: n } = Q(), { rotate: o } = Ke(), r = k(() => Object.keys(t).length, [t]), a = L(
449
450
  (c) => {
450
451
  if (!n.size)
451
452
  return;
@@ -461,7 +462,7 @@ const no = () => {
461
462
  e(u);
462
463
  const h = [];
463
464
  for (const f of l) {
464
- const p = document.createElement("canvas"), v = mt(f.page, p, {
465
+ const p = document.createElement("canvas"), v = ht(f.page, p, {
465
466
  scale: f.scale,
466
467
  rotate: o
467
468
  }).promise.then(() => {
@@ -504,7 +505,7 @@ const no = () => {
504
505
  }
505
506
  }));
506
507
  const u = document.createElement("canvas");
507
- mt(l.page, u, { scale: l.thumbnailScale, rotate: o }).promise.then(() => {
508
+ ht(l.page, u, { scale: l.thumbnailScale, rotate: o }).promise.then(() => {
508
509
  const h = u.toDataURL(), { thumbnailViewport: f, scale: p } = Ot(l.page, o);
509
510
  return {
510
511
  scale: p,
@@ -520,7 +521,7 @@ const no = () => {
520
521
  [n, o]
521
522
  );
522
523
  return { thumbnailPages: t, addPage: s, addToPage: a, thumbnailLength: r };
523
- }, mn = je({
524
+ }, fn = Ze({
524
525
  thumbnailPages: {},
525
526
  addPage: (t) => {
526
527
  },
@@ -530,45 +531,45 @@ const no = () => {
530
531
  setActive: (t) => {
531
532
  },
532
533
  active: !1
533
- }), fn = () => Be(mn), ns = ({
534
+ }), gn = () => je(fn), is = ({
534
535
  children: t,
535
536
  initialThumbnailsVisible: e
536
537
  }) => {
537
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = ro(), [s, c] = H(e);
538
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = io(), [s, c] = M(e);
538
539
  return /* @__PURE__ */ i(
539
- mn.Provider,
540
+ fn.Provider,
540
541
  {
541
542
  value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: s, setActive: c },
542
543
  children: t
543
544
  }
544
545
  );
545
- }, oo = (t = {}, e = "") => {
546
- const [n, o] = H(e), [r, a] = H(!1), { pdf: s, pages: c } = Y(), l = bt(), u = M(!n), { currentZoom: h } = Je(), [f, p] = H([]), { setFocusedPage: v } = se(), [_, C] = H(0), { pageScrollElementRef: w, virtualScrollableElementRef: g } = Qe(), { scrollMode: m } = Ee(), { pagesRef: P } = Pe(), [I, d] = H(null), T = M({}), b = k(() => _ === 0 ? null : f[_ - 1], [_, f]), S = k(() => f.length, [f]);
546
+ }, ao = (t = {}, e = "") => {
547
+ const [n, o] = M(e), [r, a] = M(!1), { pdf: s, pages: c } = Q(), l = wt(), u = W(!n), { currentZoom: h } = Xe(), [f, p] = M([]), { setFocusedPage: v } = se(), [_, b] = M(0), { pageScrollElementRef: w, virtualScrollableElementRef: g } = Ye(), { scrollMode: m } = Ee(), { pagesRef: P } = Se(), [I, d] = M(null), T = W({}), C = k(() => _ === 0 ? null : f[_ - 1], [_, f]), S = k(() => f.length, [f]);
547
548
  z(() => {
548
- if (!b || !c)
549
+ if (!C || !c)
549
550
  return;
550
551
  const R = g || w;
551
552
  if (!R || !P)
552
553
  return;
553
- const O = c.get(b.page), D = P.clientHeight / 2, y = P.clientWidth / 2;
554
- let E = 0, W = 0;
555
- m === K.PAGE_SCROLLING && v(b.page), m === K.VERTICAL_SCROLLING && (E = l.heights.slice(0, b.page - 1).reduce((Z, B) => Z + B, 0)), m === K.HORIZONTAL_SCROLLING && (W = l.widths.slice(0, b.page - 1).reduce((Z, B) => Z + B, 0));
556
- let U;
557
- if (!O)
554
+ const F = c.get(C.page), N = P.clientHeight / 2, y = P.clientWidth / 2;
555
+ let E = 0, G = 0;
556
+ m === X.PAGE_SCROLLING && v(C.page), m === X.VERTICAL_SCROLLING && (E = l.heights.slice(0, C.page - 1).reduce((j, B) => j + B, 0)), m === X.HORIZONTAL_SCROLLING && (G = l.widths.slice(0, C.page - 1).reduce((j, B) => j + B, 0));
557
+ let H;
558
+ if (!F)
558
559
  return;
559
- const j = T.current[b.page], X = O.page.getViewport({ scale: 1 });
560
- U = new on.TextLayer({
561
- viewport: X,
562
- textContentSource: j,
560
+ const Z = T.current[C.page], J = F.page.getViewport({ scale: 1 });
561
+ H = new on.TextLayer({
562
+ viewport: J,
563
+ textContentSource: Z,
563
564
  container: document.createElement("div")
564
- }), U.render().then(() => {
565
- const Z = U.textDivs[b.start.idx], [B] = rn([b], j, U.textDivs), le = l.widths[b.page - 1], ie = l.heights[b.page - 1], Q = document.createElement("div"), te = document.createElement("div");
566
- Z.style.position = "absolute", Z.style.color = "transparent", te.style.position = "absolute", te.style.top = "0", te.style.setProperty("--scale-factor", `${h}`), Q.style.position = "relative", Q.style.width = `${le}px`, Q.style.height = `${ie}px`, Q.style.zIndex = "-1", Q.appendChild(Z), te.appendChild(Q), P.prepend(te);
567
- const he = B.element.getBoundingClientRect(), ue = te.getBoundingClientRect(), Ie = he.top - ue.top, ye = he.left - ue.left, ae = E + Ie - D + he.height / 2, me = W + ye - y + he.width / 2, Oe = {
568
- left: Math.max(me, 0),
569
- top: Math.max(ae, 0)
565
+ }), H.render().then(() => {
566
+ const j = H.textDivs[C.start.idx], [B] = rn([C], Z, H.textDivs), te = l.widths[C.page - 1], le = l.heights[C.page - 1], K = document.createElement("div"), ne = document.createElement("div");
567
+ j.style.position = "absolute", j.style.color = "transparent", ne.style.position = "absolute", ne.style.top = "0", ne.style.setProperty("--scale-factor", `${h}`), K.style.position = "relative", K.style.width = `${te}px`, K.style.height = `${le}px`, K.style.zIndex = "-1", K.appendChild(j), ne.appendChild(K), P.prepend(ne);
568
+ const ue = B.element.getBoundingClientRect(), ye = ne.getBoundingClientRect(), me = ue.top - ye.top, be = ue.left - ye.left, fe = E + me - N + ue.height / 2, ae = G + be - y + ue.width / 2, Oe = {
569
+ left: Math.max(ae, 0),
570
+ top: Math.max(fe, 0)
570
571
  };
571
- P.removeChild(te), R.scrollTo({
572
+ P.removeChild(ne), R.scrollTo({
572
573
  ...Oe
573
574
  });
574
575
  });
@@ -576,62 +577,62 @@ const no = () => {
576
577
  c,
577
578
  v,
578
579
  l,
579
- b,
580
+ C,
580
581
  m,
581
582
  g,
582
583
  w,
583
584
  P
584
585
  ]);
585
- const F = L(() => {
586
- C((R) => S ? R + 1 > S ? 1 : R + 1 : 0);
586
+ const O = L(() => {
587
+ b((R) => S ? R + 1 > S ? 1 : R + 1 : 0);
587
588
  }, [S]), x = L(() => {
588
- C((R) => S ? R - 1 <= 0 ? S : R - 1 : 0);
589
- }, [S]), N = L(async (R) => {
589
+ b((R) => S ? R - 1 <= 0 ? S : R - 1 : 0);
590
+ }, [S]), D = L(async (R) => {
590
591
  if (!R)
591
592
  return {};
592
- const O = R.numPages, D = {};
593
- for (let y = 1; y <= O; y++) {
593
+ const F = R.numPages, N = {};
594
+ for (let y = 1; y <= F; y++) {
594
595
  if (u.current)
595
596
  throw "close pop over";
596
597
  const E = await R.getPage(y);
597
- D[y.toString()] = await E.getTextContent();
598
+ N[y.toString()] = await E.getTextContent();
598
599
  }
599
- return D;
600
+ return N;
600
601
  }, []);
601
602
  return z(() => {
602
603
  if (!n) {
603
- u.current = !0, p([]), C(0);
604
+ u.current = !0, p([]), b(0);
604
605
  return;
605
606
  }
606
- u.current = !1, a(!0), p([]), C(0), N(s).then((R) => {
607
+ u.current = !1, a(!0), p([]), b(0), D(s).then((R) => {
607
608
  T.current = R;
608
- const D = Object.keys(R).reduce((y, E) => {
609
- const W = nr(
609
+ const N = Object.keys(R).reduce((y, E) => {
610
+ const G = or(
610
611
  [n],
611
612
  R[E],
612
613
  Number(E) - 1,
613
614
  t
614
- ).map((U, j) => ({ ...U, page: Number(E), pageMatchIdx: j }));
615
- return [...y, ...W];
615
+ ).map((H, Z) => ({ ...H, page: Number(E), pageMatchIdx: Z }));
616
+ return [...y, ...G];
616
617
  }, []);
617
- p(D), C(D.length ? 1 : 0);
618
+ p(N), b(N.length ? 1 : 0);
618
619
  }).catch(() => {
619
- p([]), C(0);
620
+ p([]), b(0);
620
621
  }).finally(() => a(!1));
621
- }, [n, N, s, t]), {
622
+ }, [n, D, s, t]), {
622
623
  search: n,
623
624
  setSearch: o,
624
625
  loading: r,
625
626
  matches: f,
626
627
  totalMatches: S,
627
628
  currentMatchPosition: _,
628
- currentMatch: b,
629
- nextMatch: F,
629
+ currentMatch: C,
630
+ nextMatch: O,
630
631
  prevMatch: x,
631
632
  currentMatchElement: I,
632
633
  setCurrentMatchElement: d
633
634
  };
634
- }, gn = je({
635
+ }, vn = Ze({
635
636
  search: "",
636
637
  setSearch: (t) => {
637
638
  },
@@ -649,11 +650,11 @@ const no = () => {
649
650
  currentMatchElement: null,
650
651
  setCurrentMatchElement: (t) => {
651
652
  }
652
- }), rs = ({
653
+ }), as = ({
653
654
  children: t,
654
655
  initialSearch: e
655
656
  }) => {
656
- const [n, o] = H({}), {
657
+ const [n, o] = M({}), {
657
658
  loading: r,
658
659
  setSearch: a,
659
660
  totalMatches: s,
@@ -665,9 +666,9 @@ const no = () => {
665
666
  prevMatch: p,
666
667
  currentMatchElement: v,
667
668
  setCurrentMatchElement: _
668
- } = oo(n, e);
669
+ } = ao(n, e);
669
670
  return /* @__PURE__ */ i(
670
- gn.Provider,
671
+ vn.Provider,
671
672
  {
672
673
  value: {
673
674
  searchOptions: n,
@@ -687,20 +688,21 @@ const no = () => {
687
688
  children: t
688
689
  }
689
690
  );
690
- }, vn = () => Be(gn), fe = {
691
- "rp-pages": "_rp-pages_34orh_1",
692
- "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_34orh_7",
693
- "rp-pages-container": "_rp-pages-container_34orh_11",
694
- "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_34orh_17",
695
- "rp-viewer": "_rp-viewer_34orh_22",
696
- "rp-cursor-grab": "_rp-cursor-grab_34orh_27",
697
- "rp-cursor-grabbing": "_rp-cursor-grabbing_34orh_35"
698
- }, it = {
691
+ }, _n = () => je(vn), de = {
692
+ "rp-pages": "_rp-pages_1776r_1",
693
+ "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1776r_7",
694
+ "rp-pages-container": "_rp-pages-container_1776r_11",
695
+ "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_1776r_17",
696
+ "rp-viewer": "_rp-viewer_1776r_22",
697
+ "rp-cursor-grab": "_rp-cursor-grab_1776r_27",
698
+ "rp-cursor-grabbing": "_rp-cursor-grabbing_1776r_35",
699
+ "rp-loader": "_rp-loader_1776r_43"
700
+ }, ot = {
699
701
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
700
702
  "rp-page": "_rp-page_h7a2q_1",
701
703
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
702
- }, io = (t) => {
703
- const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = M(null), { pages: a } = Y(), { rotate: s } = Xe(), c = M(), { currentZoom: l } = Je();
704
+ }, so = (t) => {
705
+ const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = W(null), { pages: a } = Q(), { rotate: s } = Ke(), c = W(), { currentZoom: l } = Xe();
704
706
  return z(() => {
705
707
  if (!a || l === 0)
706
708
  return;
@@ -709,7 +711,7 @@ const no = () => {
709
711
  const h = r.current;
710
712
  h.hidden = !0;
711
713
  const f = c.current;
712
- f && f.cancel(), o && o(), c.current = mt(u.page, h, {
714
+ f && f.cancel(), o && o(), c.current = ht(u.page, h, {
713
715
  scale: l,
714
716
  rotate: s,
715
717
  renderForms: !0
@@ -721,19 +723,19 @@ const no = () => {
721
723
  });
722
724
  }
723
725
  }, [a, e, s, l, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
724
- }, at = {
726
+ }, it = {
725
727
  "rp-text-layer": "_rp-text-layer_kwwfn_1",
726
728
  "rp-text-layer-text": "_rp-text-layer-text_kwwfn_9"
727
- }, ao = (t) => {
728
- const { pageNumber: e } = t, { pages: n } = Y(), o = M(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = vn(), [c, l] = H(
729
+ }, co = (t) => {
730
+ const { pageNumber: e } = t, { pages: n } = Q(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = _n(), [c, l] = M(
729
731
  []
730
- ), u = M(), h = M(), f = M(), p = k(() => r.filter((_) => _.pageIndex === e - 1), [r, e]), v = L(
731
- (_, C, w = !1) => {
732
- if (w && rr(_, C), !p.length) {
732
+ ), u = W(), h = W(), f = W(), p = k(() => r.filter((_) => _.pageIndex === e - 1), [r, e]), v = L(
733
+ (_, b, w = !1) => {
734
+ if (w && ir(_, b), !p.length) {
733
735
  f.current = void 0, l([]);
734
736
  return;
735
737
  }
736
- const g = rn(p, _, C);
738
+ const g = rn(p, _, b);
737
739
  l(g);
738
740
  },
739
741
  [p]
@@ -747,51 +749,51 @@ const no = () => {
747
749
  );
748
750
  if (_ === -1)
749
751
  return;
750
- const C = c.find((g) => g.index === _);
751
- C && (f.current = C.element, s(C.element), C.element.classList.add("selected"));
752
+ const b = c.find((g) => g.index === _);
753
+ b && (f.current = b.element, s(b.element), b.element.classList.add("selected"));
752
754
  }, [a, c, p]), z(() => {
753
755
  const _ = n.get(e);
754
756
  if (!(!_ || !o.current))
755
- return u.current && u.current.cancel(), _.page.getTextContent().then((C) => {
757
+ return u.current && u.current.cancel(), _.page.getTextContent().then((b) => {
756
758
  const w = _.page.getViewport({ scale: 1 });
757
759
  return u.current = new on.TextLayer({
758
760
  viewport: w,
759
- textContentSource: C,
761
+ textContentSource: b,
760
762
  container: o.current
761
- }), h.current = C, o.current && (o.current.innerText = ""), u.current.render();
763
+ }), h.current = b, o.current && (o.current.innerText = ""), u.current.render();
762
764
  }).then(() => {
763
765
  var g;
764
766
  [].slice.call(o.current.children).forEach((m) => {
765
- m.classList.add(at["rp-text-layer-text"]);
767
+ m.classList.add(it["rp-text-layer-text"]);
766
768
  });
767
769
  const w = (g = u.current) == null ? void 0 : g.textDivs;
768
770
  w && h.current && v(h.current, w);
769
771
  }).catch(() => {
770
772
  }), () => {
771
- var C;
772
- (C = u.current) == null || C.cancel();
773
+ var b;
774
+ (b = u.current) == null || b.cancel();
773
775
  };
774
776
  }, [n, e]), z(() => {
775
777
  var w;
776
778
  [].slice.call(o.current.children).forEach((g) => {
777
- g.classList.add(at["rp-text-layer-text"]);
779
+ g.classList.add(it["rp-text-layer-text"]);
778
780
  });
779
- const C = (w = u.current) == null ? void 0 : w.textDivs;
780
- C && h.current && v(h.current, C, !0);
781
+ const b = (w = u.current) == null ? void 0 : w.textDivs;
782
+ b && h.current && v(h.current, b, !0);
781
783
  }, [v]), /* @__PURE__ */ i(
782
784
  "div",
783
785
  {
784
786
  "data-rp": `page-${e}-textLayer`,
785
- className: at["rp-text-layer"],
787
+ className: it["rp-text-layer"],
786
788
  ref: o
787
789
  }
788
790
  );
789
- }, so = {
791
+ }, lo = {
790
792
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
791
793
  };
792
- let co = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
793
- const lo = (t) => {
794
- const { pageNumber: e } = t, n = M(null), { pages: o, pdf: r } = Y(), a = M(), [s, c] = H(), { setFocusedPage: l, goToPage: u } = se(), { scrollMode: h } = Ee(), { print: f } = tt(), { download: p } = An(), v = k(() => o.get(e), [o, e]), _ = k(() => v == null ? void 0 : v.page.getViewport(), [v]);
794
+ let uo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
795
+ const po = (t) => {
796
+ const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = Q(), a = W(), [s, c] = M(), { setFocusedPage: l, goToPage: u } = se(), { scrollMode: h } = Ee(), { print: f } = et(), { download: p } = Fn(), v = k(() => o.get(e), [o, e]), _ = k(() => v == null ? void 0 : v.page.getViewport(), [v]);
795
797
  z(() => {
796
798
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
797
799
  }, [r]), z(() => {
@@ -799,12 +801,12 @@ const lo = (t) => {
799
801
  a.current = void 0, c(w), n.current && (n.current.innerText = "");
800
802
  });
801
803
  }, [v]);
802
- const C = L(
804
+ const b = L(
803
805
  (w) => {
804
- !s || !r || (_r(w), wr(w, r, s).then((g) => {
806
+ !s || !r || (br(w), Cr(w, r, s).then((g) => {
805
807
  var m, P;
806
808
  ((m = g == null ? void 0 : g.data) == null ? void 0 : m.action) === "Print" ? f() : ((P = g == null ? void 0 : g.data) == null ? void 0 : P.action) === "SaveAs" && p();
807
- }), h === K.PAGE_SCROLLING ? Nt(w, s, r, (g) => l(g.pageIndex + 1)) : Nt(w, s, r, (g) => u(g.pageIndex + 1)));
809
+ }), h === X.PAGE_SCROLLING ? Nt(w, s, r, (g) => l(g.pageIndex + 1)) : Nt(w, s, r, (g) => u(g.pageIndex + 1)));
808
810
  },
809
811
  [r, s, u, l, h, f, p]
810
812
  );
@@ -823,16 +825,16 @@ const lo = (t) => {
823
825
  const { annotationType: d } = I;
824
826
  switch (d) {
825
827
  case Lt.Link:
826
- Cr(I);
828
+ Pr(I);
827
829
  break;
828
830
  case Lt.Widget:
829
- br(I, w, g);
831
+ Tr(I, w, g);
830
832
  break;
831
833
  }
832
834
  }
833
835
  const m = new AbortController();
834
836
  return (async () => {
835
- a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new sr({
837
+ a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new lr({
836
838
  div: n.current,
837
839
  accessibilityManager: void 0,
838
840
  annotationCanvasMap: void 0,
@@ -840,7 +842,7 @@ const lo = (t) => {
840
842
  structTreeLayer: null,
841
843
  page: v.page,
842
844
  viewport: w.clone({ dontFlip: !0 })
843
- }), n.current && Et(n.current, C);
845
+ }), n.current && Et(n.current, b);
844
846
  const I = await (r == null ? void 0 : r.hasJSActions()), d = await (r == null ? void 0 : r.getFieldObjects());
845
847
  if (m.signal.aborted)
846
848
  throw "abort";
@@ -852,38 +854,38 @@ const lo = (t) => {
852
854
  div: n.current,
853
855
  viewport: w.clone({ dontFlip: !0 }),
854
856
  page: v.page,
855
- imageResourcesPath: co,
857
+ imageResourcesPath: uo,
856
858
  renderForms: !0,
857
- linkService: new vr(),
859
+ linkService: new wr(),
858
860
  downloadManager: null,
859
861
  enableScripting: !1
860
862
  });
861
863
  })().then(() => {
862
- n.current && Tr(n.current, C);
864
+ n.current && Sr(n.current, b);
863
865
  }).catch((I) => {
864
866
  if (I !== "abort")
865
867
  throw I;
866
868
  }), () => {
867
- m.abort("clear"), n.current && Et(n.current, C);
869
+ m.abort("clear"), n.current && Et(n.current, b);
868
870
  };
869
- }, [r, s, C]), /* @__PURE__ */ i(
871
+ }, [r, s, b]), /* @__PURE__ */ i(
870
872
  "div",
871
873
  {
872
874
  "data-rp": `page-${e}-annotationLayer`,
873
875
  style: { width: `${_ == null ? void 0 : _.width}px`, height: `${_ == null ? void 0 : _.height}px` },
874
- className: so["rp-annotation-layer"],
876
+ className: lo["rp-annotation-layer"],
875
877
  ref: n
876
878
  }
877
879
  );
878
- }, uo = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), St = Ke((t, e) => {
879
- const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Y(), { rotate: c } = Xe(), { textLayer: l } = Yn(), { currentZoom: u } = Je(), h = M(s.get(n)), [f, p] = H(!1), v = M(null), [_, C] = H({
880
+ }, ho = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), St = Be((t, e) => {
881
+ const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Q(), { rotate: c } = Ke(), { textLayer: l } = er(), { currentZoom: u } = Xe(), h = W(s.get(n)), [f, p] = M(!1), v = W(null), [_, b] = M({
880
882
  width: 0,
881
883
  height: 0
882
884
  });
883
885
  en(e, () => v.current), z(() => {
884
886
  if (s && (h.current = s.get(n), h.current)) {
885
887
  const P = h.current.page.getViewport({ scale: u, rotation: c });
886
- C(P);
888
+ b(P);
887
889
  }
888
890
  }, [s, n, c, u]);
889
891
  const w = k(() => {
@@ -906,7 +908,7 @@ const lo = (t) => {
906
908
  (I) => {
907
909
  r(n, I[0].intersectionRatio);
908
910
  },
909
- { threshold: uo }
911
+ { threshold: ho }
910
912
  );
911
913
  return v.current && P.observe(v.current), () => {
912
914
  P.disconnect(), r(n, -1);
@@ -924,7 +926,7 @@ const lo = (t) => {
924
926
  "--rp-page-rotate-translate": `${w}`,
925
927
  "--scale-factor": u
926
928
  },
927
- className: it["rp-page-wrapper"],
929
+ className: ot["rp-page-wrapper"],
928
930
  children: /* @__PURE__ */ A(
929
931
  "div",
930
932
  {
@@ -932,57 +934,57 @@ const lo = (t) => {
932
934
  width: `${_.width}px`,
933
935
  height: `${_.height}px`
934
936
  },
935
- className: it["rp-page"],
937
+ className: ot["rp-page"],
936
938
  children: [
937
- /* @__PURE__ */ i(io, { onLoading: g, onLoaded: m, pageNumber: n }),
938
- f && /* @__PURE__ */ i("div", { className: it["rp-loader-wrapper"], children: /* @__PURE__ */ i(We, {}) }),
939
- l && /* @__PURE__ */ i(ao, { pageNumber: n }),
940
- /* @__PURE__ */ i(lo, { pageNumber: n })
939
+ /* @__PURE__ */ i(so, { onLoading: g, onLoaded: m, pageNumber: n }),
940
+ f && /* @__PURE__ */ i("div", { className: ot["rp-loader-wrapper"], children: /* @__PURE__ */ i(bt, {}) }),
941
+ l && /* @__PURE__ */ i(co, { pageNumber: n }),
942
+ /* @__PURE__ */ i(po, { pageNumber: n })
941
943
  ]
942
944
  }
943
945
  )
944
946
  }
945
947
  );
946
948
  });
947
- function gt() {
948
- return gt = Object.assign ? Object.assign.bind() : function(t) {
949
+ function ft() {
950
+ return ft = Object.assign ? Object.assign.bind() : function(t) {
949
951
  for (var e = 1; e < arguments.length; e++) {
950
952
  var n = arguments[e];
951
953
  for (var o in n)
952
954
  ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
953
955
  }
954
956
  return t;
955
- }, gt.apply(null, arguments);
957
+ }, ft.apply(null, arguments);
956
958
  }
957
959
  function Wt(t) {
958
960
  if (t === void 0)
959
961
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
960
962
  return t;
961
963
  }
962
- function vt(t, e) {
963
- return vt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
964
+ function gt(t, e) {
965
+ return gt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
964
966
  return n.__proto__ = o, n;
965
- }, vt(t, e);
967
+ }, gt(t, e);
966
968
  }
967
- function po(t, e) {
968
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, vt(t, e);
969
+ function mo(t, e) {
970
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, gt(t, e);
969
971
  }
970
972
  var Mt = Number.isNaN || function(e) {
971
973
  return typeof e == "number" && e !== e;
972
974
  };
973
- function ho(t, e) {
975
+ function fo(t, e) {
974
976
  return !!(t === e || Mt(t) && Mt(e));
975
977
  }
976
- function mo(t, e) {
978
+ function go(t, e) {
977
979
  if (t.length !== e.length)
978
980
  return !1;
979
981
  for (var n = 0; n < t.length; n++)
980
- if (!ho(t[n], e[n]))
982
+ if (!fo(t[n], e[n]))
981
983
  return !1;
982
984
  return !0;
983
985
  }
984
- function st(t, e) {
985
- e === void 0 && (e = mo);
986
+ function at(t, e) {
987
+ e === void 0 && (e = go);
986
988
  var n, o = [], r, a = !1;
987
989
  function s() {
988
990
  for (var c = [], l = 0; l < arguments.length; l++)
@@ -1003,7 +1005,7 @@ function Ht(t, e) {
1003
1005
  }
1004
1006
  return n;
1005
1007
  }
1006
- var fo = typeof performance == "object" && typeof performance.now == "function", $t = fo ? function() {
1008
+ var vo = typeof performance == "object" && typeof performance.now == "function", $t = vo ? function() {
1007
1009
  return performance.now();
1008
1010
  } : function() {
1009
1011
  return Date.now();
@@ -1011,7 +1013,7 @@ var fo = typeof performance == "object" && typeof performance.now == "function",
1011
1013
  function Gt(t) {
1012
1014
  cancelAnimationFrame(t.id);
1013
1015
  }
1014
- function go(t, e) {
1016
+ function _o(t, e) {
1015
1017
  var n = $t();
1016
1018
  function o() {
1017
1019
  $t() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
@@ -1021,13 +1023,13 @@ function go(t, e) {
1021
1023
  };
1022
1024
  return r;
1023
1025
  }
1024
- var ct = -1;
1025
- function vo(t) {
1026
- if (t === void 0 && (t = !1), ct === -1 || t) {
1026
+ var st = -1;
1027
+ function wo(t) {
1028
+ if (t === void 0 && (t = !1), st === -1 || t) {
1027
1029
  var e = document.createElement("div"), n = e.style;
1028
- n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), ct = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
1030
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), st = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
1029
1031
  }
1030
- return ct;
1032
+ return st;
1031
1033
  }
1032
1034
  var Re = null;
1033
1035
  function Vt(t) {
@@ -1039,17 +1041,17 @@ function Vt(t) {
1039
1041
  }
1040
1042
  return Re;
1041
1043
  }
1042
- var _o = 150, wo = function(e) {
1044
+ var bo = 150, Co = function(e) {
1043
1045
  var n = e.columnIndex;
1044
1046
  e.data;
1045
1047
  var o = e.rowIndex;
1046
1048
  return o + ":" + n;
1047
- }, $e = null, Ge = null, Ve = null;
1048
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && ($e = /* @__PURE__ */ new WeakSet(), Ge = /* @__PURE__ */ new WeakSet(), Ve = /* @__PURE__ */ new WeakSet());
1049
- function bo(t) {
1050
- var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, s = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, h = t.getRowHeight, f = t.getRowOffset, p = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, C = t.shouldResetStyleCacheOnItemSizeChange, w = t.validateProps;
1049
+ }, He = null, $e = null, Ge = null;
1050
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (He = /* @__PURE__ */ new WeakSet(), $e = /* @__PURE__ */ new WeakSet(), Ge = /* @__PURE__ */ new WeakSet());
1051
+ function To(t) {
1052
+ var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, s = t.getEstimatedTotalHeight, c = t.getEstimatedTotalWidth, l = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, h = t.getRowHeight, f = t.getRowOffset, p = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, w = t.validateProps;
1051
1053
  return e = /* @__PURE__ */ function(g) {
1052
- po(m, g);
1054
+ mo(m, g);
1053
1055
  function m(I) {
1054
1056
  var d;
1055
1057
  return d = g.call(this, I) || this, d._instanceProps = _(d.props, Wt(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
@@ -1060,47 +1062,47 @@ function bo(t) {
1060
1062
  scrollTop: typeof d.props.initialScrollTop == "number" ? d.props.initialScrollTop : 0,
1061
1063
  scrollUpdateWasRequested: !1,
1062
1064
  verticalScrollDirection: "forward"
1063
- }, d._callOnItemsRendered = void 0, d._callOnItemsRendered = st(function(T, b, S, F, x, N, R, O) {
1065
+ }, d._callOnItemsRendered = void 0, d._callOnItemsRendered = at(function(T, C, S, O, x, D, R, F) {
1064
1066
  return d.props.onItemsRendered({
1065
1067
  overscanColumnStartIndex: T,
1066
- overscanColumnStopIndex: b,
1068
+ overscanColumnStopIndex: C,
1067
1069
  overscanRowStartIndex: S,
1068
- overscanRowStopIndex: F,
1070
+ overscanRowStopIndex: O,
1069
1071
  visibleColumnStartIndex: x,
1070
- visibleColumnStopIndex: N,
1072
+ visibleColumnStopIndex: D,
1071
1073
  visibleRowStartIndex: R,
1072
- visibleRowStopIndex: O
1074
+ visibleRowStopIndex: F
1073
1075
  });
1074
- }), d._callOnScroll = void 0, d._callOnScroll = st(function(T, b, S, F, x) {
1076
+ }), d._callOnScroll = void 0, d._callOnScroll = at(function(T, C, S, O, x) {
1075
1077
  return d.props.onScroll({
1076
1078
  horizontalScrollDirection: S,
1077
1079
  scrollLeft: T,
1078
- scrollTop: b,
1079
- verticalScrollDirection: F,
1080
+ scrollTop: C,
1081
+ verticalScrollDirection: O,
1080
1082
  scrollUpdateWasRequested: x
1081
1083
  });
1082
- }), d._getItemStyle = void 0, d._getItemStyle = function(T, b) {
1083
- var S = d.props, F = S.columnWidth, x = S.direction, N = S.rowHeight, R = d._getItemStyleCache(C && F, C && x, C && N), O = T + ":" + b, D;
1084
- if (R.hasOwnProperty(O))
1085
- D = R[O];
1084
+ }), d._getItemStyle = void 0, d._getItemStyle = function(T, C) {
1085
+ var S = d.props, O = S.columnWidth, x = S.direction, D = S.rowHeight, R = d._getItemStyleCache(b && O, b && x, b && D), F = T + ":" + C, N;
1086
+ if (R.hasOwnProperty(F))
1087
+ N = R[F];
1086
1088
  else {
1087
- var y = n(d.props, b, d._instanceProps), E = x === "rtl";
1088
- R[O] = D = {
1089
+ var y = n(d.props, C, d._instanceProps), E = x === "rtl";
1090
+ R[F] = N = {
1089
1091
  position: "absolute",
1090
1092
  left: E ? void 0 : y,
1091
1093
  right: E ? y : void 0,
1092
1094
  top: f(d.props, T, d._instanceProps),
1093
1095
  height: h(d.props, T, d._instanceProps),
1094
- width: a(d.props, b, d._instanceProps)
1096
+ width: a(d.props, C, d._instanceProps)
1095
1097
  };
1096
1098
  }
1097
- return D;
1098
- }, d._getItemStyleCache = void 0, d._getItemStyleCache = st(function(T, b, S) {
1099
+ return N;
1100
+ }, d._getItemStyleCache = void 0, d._getItemStyleCache = at(function(T, C, S) {
1099
1101
  return {};
1100
1102
  }), d._onScroll = function(T) {
1101
- var b = T.currentTarget, S = b.clientHeight, F = b.clientWidth, x = b.scrollLeft, N = b.scrollTop, R = b.scrollHeight, O = b.scrollWidth;
1102
- d.setState(function(D) {
1103
- if (D.scrollLeft === x && D.scrollTop === N)
1103
+ var C = T.currentTarget, S = C.clientHeight, O = C.clientWidth, x = C.scrollLeft, D = C.scrollTop, R = C.scrollHeight, F = C.scrollWidth;
1104
+ d.setState(function(N) {
1105
+ if (N.scrollLeft === x && N.scrollTop === D)
1104
1106
  return null;
1105
1107
  var y = d.props.direction, E = x;
1106
1108
  if (y === "rtl")
@@ -1109,25 +1111,25 @@ function bo(t) {
1109
1111
  E = -x;
1110
1112
  break;
1111
1113
  case "positive-descending":
1112
- E = O - F - x;
1114
+ E = F - O - x;
1113
1115
  break;
1114
1116
  }
1115
- E = Math.max(0, Math.min(E, O - F));
1116
- var W = Math.max(0, Math.min(N, R - S));
1117
+ E = Math.max(0, Math.min(E, F - O));
1118
+ var G = Math.max(0, Math.min(D, R - S));
1117
1119
  return {
1118
1120
  isScrolling: !0,
1119
- horizontalScrollDirection: D.scrollLeft < x ? "forward" : "backward",
1121
+ horizontalScrollDirection: N.scrollLeft < x ? "forward" : "backward",
1120
1122
  scrollLeft: E,
1121
- scrollTop: W,
1122
- verticalScrollDirection: D.scrollTop < N ? "forward" : "backward",
1123
+ scrollTop: G,
1124
+ verticalScrollDirection: N.scrollTop < D ? "forward" : "backward",
1123
1125
  scrollUpdateWasRequested: !1
1124
1126
  };
1125
1127
  }, d._resetIsScrollingDebounced);
1126
1128
  }, d._outerRefSetter = function(T) {
1127
- var b = d.props.outerRef;
1128
- d._outerRef = T, typeof b == "function" ? b(T) : b != null && typeof b == "object" && b.hasOwnProperty("current") && (b.current = T);
1129
+ var C = d.props.outerRef;
1130
+ d._outerRef = T, typeof C == "function" ? C(T) : C != null && typeof C == "object" && C.hasOwnProperty("current") && (C.current = T);
1129
1131
  }, d._resetIsScrollingDebounced = function() {
1130
- d._resetIsScrollingTimeoutId !== null && Gt(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId = go(d._resetIsScrolling, _o);
1132
+ d._resetIsScrollingTimeoutId !== null && Gt(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId = _o(d._resetIsScrolling, bo);
1131
1133
  }, d._resetIsScrolling = function() {
1132
1134
  d._resetIsScrollingTimeoutId = null, d.setState({
1133
1135
  isScrolling: !1
@@ -1137,132 +1139,132 @@ function bo(t) {
1137
1139
  }, d;
1138
1140
  }
1139
1141
  m.getDerivedStateFromProps = function(d, T) {
1140
- return Co(d, T), w(d), null;
1142
+ return Po(d, T), w(d), null;
1141
1143
  };
1142
1144
  var P = m.prototype;
1143
1145
  return P.scrollTo = function(d) {
1144
- var T = d.scrollLeft, b = d.scrollTop;
1145
- T !== void 0 && (T = Math.max(0, T)), b !== void 0 && (b = Math.max(0, b)), this.setState(function(S) {
1146
- return T === void 0 && (T = S.scrollLeft), b === void 0 && (b = S.scrollTop), S.scrollLeft === T && S.scrollTop === b ? null : {
1146
+ var T = d.scrollLeft, C = d.scrollTop;
1147
+ T !== void 0 && (T = Math.max(0, T)), C !== void 0 && (C = Math.max(0, C)), this.setState(function(S) {
1148
+ return T === void 0 && (T = S.scrollLeft), C === void 0 && (C = S.scrollTop), S.scrollLeft === T && S.scrollTop === C ? null : {
1147
1149
  horizontalScrollDirection: S.scrollLeft < T ? "forward" : "backward",
1148
1150
  scrollLeft: T,
1149
- scrollTop: b,
1151
+ scrollTop: C,
1150
1152
  scrollUpdateWasRequested: !0,
1151
- verticalScrollDirection: S.scrollTop < b ? "forward" : "backward"
1153
+ verticalScrollDirection: S.scrollTop < C ? "forward" : "backward"
1152
1154
  };
1153
1155
  }, this._resetIsScrollingDebounced);
1154
1156
  }, P.scrollToItem = function(d) {
1155
- var T = d.align, b = T === void 0 ? "auto" : T, S = d.columnIndex, F = d.rowIndex, x = this.props, N = x.columnCount, R = x.height, O = x.rowCount, D = x.width, y = this.state, E = y.scrollLeft, W = y.scrollTop, U = vo();
1156
- S !== void 0 && (S = Math.max(0, Math.min(S, N - 1))), F !== void 0 && (F = Math.max(0, Math.min(F, O - 1)));
1157
- var j = s(this.props, this._instanceProps), X = c(this.props, this._instanceProps), Z = X > D ? U : 0, B = j > R ? U : 0;
1157
+ var T = d.align, C = T === void 0 ? "auto" : T, S = d.columnIndex, O = d.rowIndex, x = this.props, D = x.columnCount, R = x.height, F = x.rowCount, N = x.width, y = this.state, E = y.scrollLeft, G = y.scrollTop, H = wo();
1158
+ S !== void 0 && (S = Math.max(0, Math.min(S, D - 1))), O !== void 0 && (O = Math.max(0, Math.min(O, F - 1)));
1159
+ var Z = s(this.props, this._instanceProps), J = c(this.props, this._instanceProps), j = J > N ? H : 0, B = Z > R ? H : 0;
1158
1160
  this.scrollTo({
1159
- scrollLeft: S !== void 0 ? l(this.props, S, b, E, this._instanceProps, B) : E,
1160
- scrollTop: F !== void 0 ? u(this.props, F, b, W, this._instanceProps, Z) : W
1161
+ scrollLeft: S !== void 0 ? l(this.props, S, C, E, this._instanceProps, B) : E,
1162
+ scrollTop: O !== void 0 ? u(this.props, O, C, G, this._instanceProps, j) : G
1161
1163
  });
1162
1164
  }, P.componentDidMount = function() {
1163
- var d = this.props, T = d.initialScrollLeft, b = d.initialScrollTop;
1165
+ var d = this.props, T = d.initialScrollLeft, C = d.initialScrollTop;
1164
1166
  if (this._outerRef != null) {
1165
1167
  var S = this._outerRef;
1166
- typeof T == "number" && (S.scrollLeft = T), typeof b == "number" && (S.scrollTop = b);
1168
+ typeof T == "number" && (S.scrollLeft = T), typeof C == "number" && (S.scrollTop = C);
1167
1169
  }
1168
1170
  this._callPropsCallbacks();
1169
1171
  }, P.componentDidUpdate = function() {
1170
- var d = this.props.direction, T = this.state, b = T.scrollLeft, S = T.scrollTop, F = T.scrollUpdateWasRequested;
1171
- if (F && this._outerRef != null) {
1172
+ var d = this.props.direction, T = this.state, C = T.scrollLeft, S = T.scrollTop, O = T.scrollUpdateWasRequested;
1173
+ if (O && this._outerRef != null) {
1172
1174
  var x = this._outerRef;
1173
1175
  if (d === "rtl")
1174
1176
  switch (Vt()) {
1175
1177
  case "negative":
1176
- x.scrollLeft = -b;
1178
+ x.scrollLeft = -C;
1177
1179
  break;
1178
1180
  case "positive-ascending":
1179
- x.scrollLeft = b;
1181
+ x.scrollLeft = C;
1180
1182
  break;
1181
1183
  default:
1182
- var N = x.clientWidth, R = x.scrollWidth;
1183
- x.scrollLeft = R - N - b;
1184
+ var D = x.clientWidth, R = x.scrollWidth;
1185
+ x.scrollLeft = R - D - C;
1184
1186
  break;
1185
1187
  }
1186
1188
  else
1187
- x.scrollLeft = Math.max(0, b);
1189
+ x.scrollLeft = Math.max(0, C);
1188
1190
  x.scrollTop = Math.max(0, S);
1189
1191
  }
1190
1192
  this._callPropsCallbacks();
1191
1193
  }, P.componentWillUnmount = function() {
1192
1194
  this._resetIsScrollingTimeoutId !== null && Gt(this._resetIsScrollingTimeoutId);
1193
1195
  }, P.render = function() {
1194
- var d = this.props, T = d.children, b = d.className, S = d.columnCount, F = d.direction, x = d.height, N = d.innerRef, R = d.innerElementType, O = d.innerTagName, D = d.itemData, y = d.itemKey, E = y === void 0 ? wo : y, W = d.outerElementType, U = d.outerTagName, j = d.rowCount, X = d.style, Z = d.useIsScrolling, B = d.width, le = this.state.isScrolling, ie = this._getHorizontalRangeToRender(), Q = ie[0], te = ie[1], he = this._getVerticalRangeToRender(), ue = he[0], Ie = he[1], ye = [];
1195
- if (S > 0 && j)
1196
- for (var ae = ue; ae <= Ie; ae++)
1197
- for (var me = Q; me <= te; me++)
1198
- ye.push(He(T, {
1199
- columnIndex: me,
1200
- data: D,
1201
- isScrolling: Z ? le : void 0,
1196
+ var d = this.props, T = d.children, C = d.className, S = d.columnCount, O = d.direction, x = d.height, D = d.innerRef, R = d.innerElementType, F = d.innerTagName, N = d.itemData, y = d.itemKey, E = y === void 0 ? Co : y, G = d.outerElementType, H = d.outerTagName, Z = d.rowCount, J = d.style, j = d.useIsScrolling, B = d.width, te = this.state.isScrolling, le = this._getHorizontalRangeToRender(), K = le[0], ne = le[1], ue = this._getVerticalRangeToRender(), ye = ue[0], me = ue[1], be = [];
1197
+ if (S > 0 && Z)
1198
+ for (var fe = ye; fe <= me; fe++)
1199
+ for (var ae = K; ae <= ne; ae++)
1200
+ be.push(Me(T, {
1201
+ columnIndex: ae,
1202
+ data: N,
1203
+ isScrolling: j ? te : void 0,
1202
1204
  key: E({
1203
- columnIndex: me,
1204
- data: D,
1205
- rowIndex: ae
1205
+ columnIndex: ae,
1206
+ data: N,
1207
+ rowIndex: fe
1206
1208
  }),
1207
- rowIndex: ae,
1208
- style: this._getItemStyle(ae, me)
1209
+ rowIndex: fe,
1210
+ style: this._getItemStyle(fe, ae)
1209
1211
  }));
1210
- var Oe = s(this.props, this._instanceProps), nt = c(this.props, this._instanceProps);
1211
- return He(W || U || "div", {
1212
- className: b,
1212
+ var Oe = s(this.props, this._instanceProps), tt = c(this.props, this._instanceProps);
1213
+ return Me(G || H || "div", {
1214
+ className: C,
1213
1215
  onScroll: this._onScroll,
1214
1216
  ref: this._outerRefSetter,
1215
- style: gt({
1217
+ style: ft({
1216
1218
  position: "relative",
1217
1219
  height: x,
1218
1220
  width: B,
1219
1221
  overflow: "auto",
1220
1222
  WebkitOverflowScrolling: "touch",
1221
1223
  willChange: "transform",
1222
- direction: F
1223
- }, X)
1224
- }, He(R || O || "div", {
1225
- children: ye,
1226
- ref: N,
1224
+ direction: O
1225
+ }, J)
1226
+ }, Me(R || F || "div", {
1227
+ children: be,
1228
+ ref: D,
1227
1229
  style: {
1228
1230
  height: Oe,
1229
- pointerEvents: le ? "none" : void 0,
1230
- width: nt
1231
+ pointerEvents: te ? "none" : void 0,
1232
+ width: tt
1231
1233
  }
1232
1234
  }));
1233
1235
  }, P._callPropsCallbacks = function() {
1234
- var d = this.props, T = d.columnCount, b = d.onItemsRendered, S = d.onScroll, F = d.rowCount;
1235
- if (typeof b == "function" && T > 0 && F > 0) {
1236
- var x = this._getHorizontalRangeToRender(), N = x[0], R = x[1], O = x[2], D = x[3], y = this._getVerticalRangeToRender(), E = y[0], W = y[1], U = y[2], j = y[3];
1237
- this._callOnItemsRendered(N, R, E, W, O, D, U, j);
1236
+ var d = this.props, T = d.columnCount, C = d.onItemsRendered, S = d.onScroll, O = d.rowCount;
1237
+ if (typeof C == "function" && T > 0 && O > 0) {
1238
+ var x = this._getHorizontalRangeToRender(), D = x[0], R = x[1], F = x[2], N = x[3], y = this._getVerticalRangeToRender(), E = y[0], G = y[1], H = y[2], Z = y[3];
1239
+ this._callOnItemsRendered(D, R, E, G, F, N, H, Z);
1238
1240
  }
1239
1241
  if (typeof S == "function") {
1240
- var X = this.state, Z = X.horizontalScrollDirection, B = X.scrollLeft, le = X.scrollTop, ie = X.scrollUpdateWasRequested, Q = X.verticalScrollDirection;
1241
- this._callOnScroll(B, le, Z, Q, ie);
1242
+ var J = this.state, j = J.horizontalScrollDirection, B = J.scrollLeft, te = J.scrollTop, le = J.scrollUpdateWasRequested, K = J.verticalScrollDirection;
1243
+ this._callOnScroll(B, te, j, K, le);
1242
1244
  }
1243
1245
  }, P._getHorizontalRangeToRender = function() {
1244
- var d = this.props, T = d.columnCount, b = d.overscanColumnCount, S = d.overscanColumnsCount, F = d.overscanCount, x = d.rowCount, N = this.state, R = N.horizontalScrollDirection, O = N.isScrolling, D = N.scrollLeft, y = b || S || F || 1;
1246
+ var d = this.props, T = d.columnCount, C = d.overscanColumnCount, S = d.overscanColumnsCount, O = d.overscanCount, x = d.rowCount, D = this.state, R = D.horizontalScrollDirection, F = D.isScrolling, N = D.scrollLeft, y = C || S || O || 1;
1245
1247
  if (T === 0 || x === 0)
1246
1248
  return [0, 0, 0, 0];
1247
- var E = o(this.props, D, this._instanceProps), W = r(this.props, E, D, this._instanceProps), U = !O || R === "backward" ? Math.max(1, y) : 1, j = !O || R === "forward" ? Math.max(1, y) : 1;
1248
- return [Math.max(0, E - U), Math.max(0, Math.min(T - 1, W + j)), E, W];
1249
+ var E = o(this.props, N, this._instanceProps), G = r(this.props, E, N, this._instanceProps), H = !F || R === "backward" ? Math.max(1, y) : 1, Z = !F || R === "forward" ? Math.max(1, y) : 1;
1250
+ return [Math.max(0, E - H), Math.max(0, Math.min(T - 1, G + Z)), E, G];
1249
1251
  }, P._getVerticalRangeToRender = function() {
1250
- var d = this.props, T = d.columnCount, b = d.overscanCount, S = d.overscanRowCount, F = d.overscanRowsCount, x = d.rowCount, N = this.state, R = N.isScrolling, O = N.verticalScrollDirection, D = N.scrollTop, y = S || F || b || 1;
1252
+ var d = this.props, T = d.columnCount, C = d.overscanCount, S = d.overscanRowCount, O = d.overscanRowsCount, x = d.rowCount, D = this.state, R = D.isScrolling, F = D.verticalScrollDirection, N = D.scrollTop, y = S || O || C || 1;
1251
1253
  if (T === 0 || x === 0)
1252
1254
  return [0, 0, 0, 0];
1253
- var E = p(this.props, D, this._instanceProps), W = v(this.props, E, D, this._instanceProps), U = !R || O === "backward" ? Math.max(1, y) : 1, j = !R || O === "forward" ? Math.max(1, y) : 1;
1254
- return [Math.max(0, E - U), Math.max(0, Math.min(x - 1, W + j)), E, W];
1255
+ var E = p(this.props, N, this._instanceProps), G = v(this.props, E, N, this._instanceProps), H = !R || F === "backward" ? Math.max(1, y) : 1, Z = !R || F === "forward" ? Math.max(1, y) : 1;
1256
+ return [Math.max(0, E - H), Math.max(0, Math.min(x - 1, G + Z)), E, G];
1255
1257
  }, m;
1256
- }(Bn), e.defaultProps = {
1258
+ }(Xn), e.defaultProps = {
1257
1259
  direction: "ltr",
1258
1260
  itemData: void 0,
1259
1261
  useIsScrolling: !1
1260
1262
  }, e;
1261
1263
  }
1262
- var Co = function(e, n) {
1264
+ var Po = function(e, n) {
1263
1265
  var o = e.children, r = e.direction, a = e.height, s = e.innerTagName, c = e.outerTagName, l = e.overscanColumnsCount, u = e.overscanCount, h = e.overscanRowsCount, f = e.width, p = n.instance;
1264
1266
  if (process.env.NODE_ENV !== "production") {
1265
- if (typeof u == "number" && $e && !$e.has(p) && ($e.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof h == "number") && Ge && !Ge.has(p) && (Ge.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (s != null || c != null) && Ve && !Ve.has(p) && (Ve.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1267
+ if (typeof u == "number" && He && !He.has(p) && (He.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof h == "number") && $e && !$e.has(p) && ($e.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (s != null || c != null) && Ge && !Ge.has(p) && (Ge.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1266
1268
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1267
1269
  switch (r) {
1268
1270
  case "ltr":
@@ -1276,7 +1278,7 @@ var Co = function(e, n) {
1276
1278
  if (typeof a != "number")
1277
1279
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1278
1280
  }
1279
- }, Ut = 50, _n = function(e, n) {
1281
+ }, Ut = 50, wn = function(e, n) {
1280
1282
  var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, s = n.lastMeasuredRowIndex, c = 0;
1281
1283
  if (s >= o && (s = o - 1), s >= 0) {
1282
1284
  var l = r[s];
@@ -1284,7 +1286,7 @@ var Co = function(e, n) {
1284
1286
  }
1285
1287
  var u = o - s - 1, h = u * a;
1286
1288
  return c + h;
1287
- }, wn = function(e, n) {
1289
+ }, bn = function(e, n) {
1288
1290
  var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, s = n.lastMeasuredColumnIndex, c = 0;
1289
1291
  if (s >= o && (s = o - 1), s >= 0) {
1290
1292
  var l = r[s];
@@ -1314,8 +1316,8 @@ var Co = function(e, n) {
1314
1316
  var a, s;
1315
1317
  e === "column" ? (a = o.columnMetadataMap, s = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, s = o.lastMeasuredRowIndex);
1316
1318
  var c = s > 0 ? a[s].offset : 0;
1317
- return c >= r ? bn(e, n, o, s, 0, r) : To(e, n, o, Math.max(0, s), r);
1318
- }, bn = function(e, n, o, r, a, s) {
1319
+ return c >= r ? Cn(e, n, o, s, 0, r) : So(e, n, o, Math.max(0, s), r);
1320
+ }, Cn = function(e, n, o, r, a, s) {
1319
1321
  for (; a <= r; ) {
1320
1322
  var c = a + Math.floor((r - a) / 2), l = ge(e, n, c, o).offset;
1321
1323
  if (l === s)
@@ -1323,12 +1325,12 @@ var Co = function(e, n) {
1323
1325
  l < s ? a = c + 1 : l > s && (r = c - 1);
1324
1326
  }
1325
1327
  return a > 0 ? a - 1 : 0;
1326
- }, To = function(e, n, o, r, a) {
1328
+ }, So = function(e, n, o, r, a) {
1327
1329
  for (var s = e === "column" ? n.columnCount : n.rowCount, c = 1; r < s && ge(e, n, r, o).offset < a; )
1328
1330
  r += c, c *= 2;
1329
- return bn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1331
+ return Cn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1330
1332
  }, Zt = function(e, n, o, r, a, s, c) {
1331
- var l = e === "column" ? n.width : n.height, u = ge(e, n, o, s), h = e === "column" ? wn(n, s) : _n(n, s), f = Math.max(0, Math.min(h - l, u.offset)), p = Math.max(0, u.offset - l + c + u.size);
1333
+ var l = e === "column" ? n.width : n.height, u = ge(e, n, o, s), h = e === "column" ? bn(n, s) : wn(n, s), f = Math.max(0, Math.min(h - l, u.offset)), p = Math.max(0, u.offset - l + c + u.size);
1332
1334
  switch (r === "smart" && (a >= p - l && a <= f + l ? r = "auto" : r = "center"), r) {
1333
1335
  case "start":
1334
1336
  return f;
@@ -1340,7 +1342,7 @@ var Co = function(e, n) {
1340
1342
  default:
1341
1343
  return a >= p && a <= f ? a : p > f || a < p ? p : f;
1342
1344
  }
1343
- }, Po = /* @__PURE__ */ bo({
1345
+ }, Io = /* @__PURE__ */ To({
1344
1346
  getColumnOffset: function(e, n, o) {
1345
1347
  return ge("column", e, n, o).offset;
1346
1348
  },
@@ -1355,8 +1357,8 @@ var Co = function(e, n) {
1355
1357
  getColumnWidth: function(e, n, o) {
1356
1358
  return o.columnMetadataMap[n].size;
1357
1359
  },
1358
- getEstimatedTotalHeight: _n,
1359
- getEstimatedTotalWidth: wn,
1360
+ getEstimatedTotalHeight: wn,
1361
+ getEstimatedTotalWidth: bn,
1360
1362
  getOffsetForColumnAndAlignment: function(e, n, o, r, a, s) {
1361
1363
  return Zt("column", e, n, o, r, a, s);
1362
1364
  },
@@ -1422,23 +1424,23 @@ function jt(t, e) {
1422
1424
  return !0;
1423
1425
  return !1;
1424
1426
  }
1425
- var So = ["style"], Io = ["style"];
1426
- function yo(t, e) {
1427
- var n = t.style, o = Ht(t, So), r = e.style, a = Ht(e, Io);
1427
+ var yo = ["style"], xo = ["style"];
1428
+ function Ro(t, e) {
1429
+ var n = t.style, o = Ht(t, yo), r = e.style, a = Ht(e, xo);
1428
1430
  return !jt(n, r) && !jt(o, a);
1429
1431
  }
1430
- const xo = () => {
1431
- const { viewMode: t } = Ye(), { scrollMode: e } = Ee(), { setColumnCount: n } = nn(), { virtualScrollableElementRef: o } = Qe(), r = bt(), a = L(
1432
+ const Lo = () => {
1433
+ const { viewMode: t } = Je(), { scrollMode: e } = Ee(), { setColumnCount: n } = nn(), { virtualScrollableElementRef: o } = Ye(), r = wt(), a = L(
1432
1434
  (v) => r.widths[v] || 0,
1433
1435
  [r.widths]
1434
1436
  ), s = L(
1435
1437
  (v) => r.heights[v] || 0,
1436
1438
  [r.heights]
1437
- ), c = k(() => r.heights.length, [r.heights]), l = k(() => Math.max(...r.widths), [r.widths]), u = k(() => e === K.HORIZONTAL_SCROLLING ? c : t === Ue.DUAL_PAGE ? 2 : 1, [t, e, e, c, o, l]);
1439
+ ), c = k(() => r.heights.length, [r.heights]), l = k(() => Math.max(...r.widths), [r.widths]), u = k(() => e === X.HORIZONTAL_SCROLLING ? c : t === Ve.DUAL_PAGE ? 2 : 1, [t, e, e, c, o, l]);
1438
1440
  z(() => {
1439
1441
  n(u);
1440
1442
  }, [u, n]);
1441
- const h = k(() => e === K.HORIZONTAL_SCROLLING || e === K.PAGE_SCROLLING ? 1 : Math.round(c / u), [u, c, e]), f = k(() => r.heights.reduce((v, _) => v + _, 0) / r.heights.length || 0, [r]), p = k(() => r.widths.reduce((v, _) => v + _, 0) / r.heights.length || 0, [r]);
1443
+ const h = k(() => e === X.HORIZONTAL_SCROLLING || e === X.PAGE_SCROLLING ? 1 : Math.round(c / u), [u, c, e]), f = k(() => r.heights.reduce((v, _) => v + _, 0) / r.heights.length || 0, [r]), p = k(() => r.widths.reduce((v, _) => v + _, 0) / r.heights.length || 0, [r]);
1442
1444
  return {
1443
1445
  rowCount: h,
1444
1446
  rowHeight: s,
@@ -1449,23 +1451,23 @@ const xo = () => {
1449
1451
  estimatedColumnWidth: p
1450
1452
  };
1451
1453
  };
1452
- let oe;
1453
- typeof window < "u" ? oe = window : typeof self < "u" ? oe = self : oe = global;
1454
- let _t = null, wt = null;
1455
- const Bt = 20, lt = oe.clearTimeout, Kt = oe.setTimeout, ut = oe.cancelAnimationFrame || oe.mozCancelAnimationFrame || oe.webkitCancelAnimationFrame, Xt = oe.requestAnimationFrame || oe.mozRequestAnimationFrame || oe.webkitRequestAnimationFrame;
1456
- ut == null || Xt == null ? (_t = lt, wt = function(e) {
1454
+ let ie;
1455
+ typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie = global;
1456
+ let vt = null, _t = null;
1457
+ const Bt = 20, ct = ie.clearTimeout, Kt = ie.setTimeout, lt = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, Xt = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
1458
+ lt == null || Xt == null ? (vt = ct, _t = function(e) {
1457
1459
  return Kt(e, Bt);
1458
- }) : (_t = function([e, n]) {
1459
- ut(e), lt(n);
1460
- }, wt = function(e) {
1460
+ }) : (vt = function([e, n]) {
1461
+ lt(e), ct(n);
1462
+ }, _t = function(e) {
1461
1463
  const n = Xt(function() {
1462
- lt(o), e();
1464
+ ct(o), e();
1463
1465
  }), o = Kt(function() {
1464
- ut(n), e();
1466
+ lt(n), e();
1465
1467
  }, Bt);
1466
1468
  return [n, o];
1467
1469
  });
1468
- function Ro(t) {
1470
+ function No(t) {
1469
1471
  let e, n, o, r, a, s, c;
1470
1472
  const l = typeof document < "u" && document.attachEvent;
1471
1473
  if (!l) {
@@ -1478,7 +1480,7 @@ function Ro(t) {
1478
1480
  if (g.target.className && typeof g.target.className.indexOf == "function" && g.target.className.indexOf("contract-trigger") < 0 && g.target.className.indexOf("expand-trigger") < 0)
1479
1481
  return;
1480
1482
  const m = this;
1481
- s(this), this.__resizeRAF__ && _t(this.__resizeRAF__), this.__resizeRAF__ = wt(function() {
1483
+ s(this), this.__resizeRAF__ && vt(this.__resizeRAF__), this.__resizeRAF__ = _t(function() {
1482
1484
  a(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(d) {
1483
1485
  d.call(m, g);
1484
1486
  }));
@@ -1487,13 +1489,13 @@ function Ro(t) {
1487
1489
  let p = !1, v = "";
1488
1490
  o = "animationstart";
1489
1491
  const _ = "Webkit Moz O ms".split(" ");
1490
- let C = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), w = "";
1492
+ let b = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), w = "";
1491
1493
  {
1492
1494
  const g = document.createElement("fakeelement");
1493
1495
  if (g.style.animationName !== void 0 && (p = !0), p === !1) {
1494
1496
  for (let m = 0; m < _.length; m++)
1495
1497
  if (g.style[_[m] + "AnimationName"] !== void 0) {
1496
- w = _[m], v = "-" + w.toLowerCase() + "-", o = C[m], p = !0;
1498
+ w = _[m], v = "-" + w.toLowerCase() + "-", o = b[m], p = !0;
1497
1499
  break;
1498
1500
  }
1499
1501
  }
@@ -1502,8 +1504,8 @@ function Ro(t) {
1502
1504
  }
1503
1505
  const u = function(p) {
1504
1506
  if (!p.getElementById("detectElementResize")) {
1505
- const v = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', _ = p.head || p.getElementsByTagName("head")[0], C = p.createElement("style");
1506
- C.id = "detectElementResize", C.type = "text/css", t != null && C.setAttribute("nonce", t), C.styleSheet ? C.styleSheet.cssText = v : C.appendChild(p.createTextNode(v)), _.appendChild(C);
1507
+ const v = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', _ = p.head || p.getElementsByTagName("head")[0], b = p.createElement("style");
1508
+ b.id = "detectElementResize", b.type = "text/css", t != null && b.setAttribute("nonce", t), b.styleSheet ? b.styleSheet.cssText = v : b.appendChild(p.createTextNode(v)), _.appendChild(b);
1507
1509
  }
1508
1510
  };
1509
1511
  return {
@@ -1512,8 +1514,8 @@ function Ro(t) {
1512
1514
  p.attachEvent("onresize", v);
1513
1515
  else {
1514
1516
  if (!p.__resizeTriggers__) {
1515
- const _ = p.ownerDocument, C = oe.getComputedStyle(p);
1516
- C && C.position === "static" && (p.style.position = "relative"), u(_), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = _.createElement("div")).className = "resize-triggers";
1517
+ const _ = p.ownerDocument, b = ie.getComputedStyle(p);
1518
+ b && b.position === "static" && (p.style.position = "relative"), u(_), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = _.createElement("div")).className = "resize-triggers";
1517
1519
  const w = _.createElement("div");
1518
1520
  w.className = "expand-trigger", w.appendChild(_.createElement("div"));
1519
1521
  const g = _.createElement("div");
@@ -1537,7 +1539,7 @@ function Ro(t) {
1537
1539
  }
1538
1540
  };
1539
1541
  }
1540
- class Lo extends Kn {
1542
+ class Eo extends Jn {
1541
1543
  constructor(...e) {
1542
1544
  super(...e), this.state = {
1543
1545
  height: this.props.defaultHeight || 0,
@@ -1578,7 +1580,7 @@ class Lo extends Kn {
1578
1580
  const o = n.ownerDocument.defaultView.ResizeObserver;
1579
1581
  o != null ? (this._resizeObserver = new o(() => {
1580
1582
  this._timeoutId = setTimeout(this._onResize, 0);
1581
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Ro(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1583
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = No(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1582
1584
  }
1583
1585
  }
1584
1586
  componentWillUnmount() {
@@ -1601,12 +1603,12 @@ class Lo extends Kn {
1601
1603
  height: p,
1602
1604
  scaledHeight: v,
1603
1605
  scaledWidth: _,
1604
- width: C
1606
+ width: b
1605
1607
  } = this.state, w = {
1606
1608
  overflow: "visible"
1607
1609
  }, g = {};
1608
1610
  let m = !1;
1609
- return r || (p === 0 && (m = !0), w.height = 0, g.height = p, g.scaledHeight = v), a || (C === 0 && (m = !0), w.width = 0, g.width = C, g.scaledWidth = _), s && (m = !1), He(h, {
1611
+ return r || (p === 0 && (m = !0), w.height = 0, g.height = p, g.scaledHeight = v), a || (b === 0 && (m = !0), w.width = 0, g.width = b, g.scaledWidth = _), s && (m = !1), Me(h, {
1610
1612
  ref: this._setRef,
1611
1613
  style: {
1612
1614
  ...w,
@@ -1616,8 +1618,8 @@ class Lo extends Kn {
1616
1618
  }, !m && e(g));
1617
1619
  }
1618
1620
  }
1619
- const No = ({ widths: t, heights: e }) => {
1620
- const { focusedPage: n, totalPages: o } = se(), { isScrolling: r } = et(), a = k(() => {
1621
+ const Oo = ({ widths: t, heights: e }) => {
1622
+ const { focusedPage: n, totalPages: o } = se(), { isScrolling: r } = Qe(), a = k(() => {
1621
1623
  const l = [], u = Math.ceil(n / 2) * 2 - 1;
1622
1624
  if (l.push(u), u + 1 < o) {
1623
1625
  const h = u + 1;
@@ -1645,8 +1647,8 @@ const No = ({ widths: t, heights: e }) => {
1645
1647
  const c = k(() => s.reduce((l, u) => l + Number(u.width || 0), 0), [s]);
1646
1648
  return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((l, u) => /* @__PURE__ */ i(St, { onIntersectRatioChange: () => {
1647
1649
  }, style: s[u], pageNumber: l }, l)) });
1648
- }, Eo = ({ widths: t, heights: e }) => {
1649
- const { focusedPage: n } = se(), { isScrolling: o } = et(), r = k(() => ({
1650
+ }, Do = ({ widths: t, heights: e }) => {
1651
+ const { focusedPage: n } = se(), { isScrolling: o } = Qe(), r = k(() => ({
1650
1652
  position: "absolute",
1651
1653
  width: t(n - 1),
1652
1654
  height: e(n - 1)
@@ -1674,7 +1676,7 @@ const No = ({ widths: t, heights: e }) => {
1674
1676
  )
1675
1677
  }
1676
1678
  );
1677
- }, Oo = Xn(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1679
+ }, zo = Yn(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1678
1680
  const r = t + 1 + e * n.columnCount;
1679
1681
  return /* @__PURE__ */ i(
1680
1682
  St,
@@ -1685,10 +1687,10 @@ const No = ({ widths: t, heights: e }) => {
1685
1687
  },
1686
1688
  r
1687
1689
  );
1688
- }, yo), os = () => {
1689
- const { initialPage: t = 1, initialScrollMode: e } = er(), { pagesRef: n, setPagesRef: o } = Pe();
1690
- Pr(n);
1691
- const { scrollToPage: r } = dn(), {
1690
+ }, Ro), ss = () => {
1691
+ const { initialPage: t = 1, initialScrollMode: e } = nr(), { pagesRef: n, setPagesRef: o } = Se();
1692
+ Ir(n);
1693
+ const { scrollToPage: r } = pn(), {
1692
1694
  virtualScrollRef: a,
1693
1695
  getVirtualScrollRef: s,
1694
1696
  getPageScrollElementRef: c,
@@ -1696,38 +1698,38 @@ const No = ({ widths: t, heights: e }) => {
1696
1698
  setTotalInnerDimensions: u,
1697
1699
  totalInnerDimensions: h,
1698
1700
  pageScrollElementRef: f
1699
- } = Qe(), p = M(!0), { nextPage: v, prevPage: _, setFocusedPage: C, focusedPage: w } = se(), { scrollMode: g } = Ee(), { viewMode: m } = Ye(), P = M(null), { loading: I } = Y(), d = M(
1701
+ } = Ye(), p = W(!0), { nextPage: v, prevPage: _, setFocusedPage: b, focusedPage: w } = se(), { scrollMode: g } = Ee(), { viewMode: m } = Je(), P = W(null), { loading: I } = Q(), { LoaderImageComponent: d } = an(), T = W(
1700
1702
  h
1701
- ), T = M({
1703
+ ), C = W({
1702
1704
  viewMode: m,
1703
1705
  scrollMode: g
1704
- }), b = M(!1), S = M(), { isFullScreen: F } = tr(), {
1705
- pageDimension: x,
1706
- rowCount: N,
1707
- rowHeight: R,
1708
- columnCount: O,
1709
- columnWidth: D,
1710
- estimatedColumnWidth: y,
1711
- estimatedRowHeight: E
1712
- } = xo(), W = ft(h, 100), [U, j] = H({}), X = ft(U, 100), { isScrolling: Z } = et(), B = M(), le = M({
1706
+ }), S = W(!1), O = W(), { isFullScreen: x } = rr(), {
1707
+ pageDimension: D,
1708
+ rowCount: R,
1709
+ rowHeight: F,
1710
+ columnCount: N,
1711
+ columnWidth: y,
1712
+ estimatedColumnWidth: E,
1713
+ estimatedRowHeight: G
1714
+ } = Lo(), H = mt(h, 100), [Z, J] = M({}), j = mt(Z, 100), { isScrolling: B } = Qe(), te = W(), le = W({
1713
1715
  scrollTop: 0,
1714
1716
  scrollLeft: 0
1715
1717
  });
1716
- yr(n);
1717
- const { isPressed: ie } = Sr(), { selectionMode: Q } = Qn(), { initializeGrabScroll: te, resetGrabState: he } = Ir({
1718
- isPressed: ie
1719
- }), ue = k(() => Q === Jn.HAND, [Q]), Ie = L(($, G) => {
1720
- j((J) => G > -1 ? { ...J, [$]: Math.round(G * 100) } : (delete J[$], J));
1721
- }, []), ye = k(() => ({
1722
- columnCount: O,
1723
- handleIntersectRatioChange: Ie
1724
- }), [O, Ie]), ae = L(
1718
+ Rr(n);
1719
+ const { isPressed: K } = yr(), { selectionMode: ne } = tr(), { initializeGrabScroll: ue, resetGrabState: ye } = xr({
1720
+ isPressed: K
1721
+ }), me = k(() => ne === Qn.HAND, [ne]), be = L(($, V) => {
1722
+ J((Y) => V > -1 ? { ...Y, [$]: Math.round(V * 100) } : (delete Y[$], Y));
1723
+ }, []), fe = k(() => ({
1724
+ columnCount: N,
1725
+ handleIntersectRatioChange: be
1726
+ }), [N, be]), ae = L(
1725
1727
  ($) => {
1726
- const G = document.activeElement !== n;
1727
- !F && G || (["ArrowUp", "ArrowLeft"].includes($.key) ? ($.preventDefault(), _()) : ["ArrowDown", "ArrowRight"].includes($.key) && ($.preventDefault(), v()));
1728
+ const V = document.activeElement !== n;
1729
+ !x && V || (["ArrowUp", "ArrowLeft"].includes($.key) ? ($.preventDefault(), _()) : ["ArrowDown", "ArrowRight"].includes($.key) && ($.preventDefault(), v()));
1728
1730
  },
1729
- [v, _, F, g]
1730
- ), me = L(($) => {
1731
+ [v, _, x, g]
1732
+ ), Oe = L(($) => {
1731
1733
  le.current = {
1732
1734
  scrollTop: $.scrollTop,
1733
1735
  scrollLeft: $.scrollLeft
@@ -1737,86 +1739,86 @@ const No = ({ widths: t, heights: e }) => {
1737
1739
  window.removeEventListener("keydown", ae);
1738
1740
  }), [ae]), z(() => {
1739
1741
  if (P.current && (P.current.style.position = "relative"), !!a)
1740
- for (let $ = 0; $ < N; $++)
1741
- for (let G = 0; G < O; G++)
1742
+ for (let $ = 0; $ < R; $++)
1743
+ for (let V = 0; V < N; V++)
1742
1744
  a.resetAfterIndices({
1743
- columnIndex: G,
1745
+ columnIndex: V,
1744
1746
  rowIndex: $,
1745
1747
  shouldForceUpdate: !0
1746
1748
  });
1747
- }, [N, O, x, a]), z(() => {
1748
- const $ = Array.from({ length: N }).reduce(
1749
- (J, _e, xe) => J + R(xe),
1749
+ }, [R, N, D, a]), z(() => {
1750
+ const $ = Array.from({ length: R }).reduce(
1751
+ (Y, _e, xe) => Y + F(xe),
1750
1752
  0
1751
- ), G = Array.from({ length: O }).reduce(
1752
- (J, _e, xe) => J + D(xe),
1753
+ ), V = Array.from({ length: N }).reduce(
1754
+ (Y, _e, xe) => Y + y(xe),
1753
1755
  0
1754
1756
  );
1755
1757
  u({
1756
1758
  height: $,
1757
- width: G
1759
+ width: V
1758
1760
  });
1759
- }, [N, O, x]), z(() => {
1760
- if (Z.current)
1761
+ }, [R, N, D]), z(() => {
1762
+ if (B.current)
1761
1763
  return;
1762
- if (T.current.viewMode !== m || T.current.scrollMode !== g) {
1763
- B.current && clearTimeout(B.current), j({}), b.current = !0, r(w), g === K.HORIZONTAL_SCROLLING && (a == null || a.scrollTo({
1764
+ if (C.current.viewMode !== m || C.current.scrollMode !== g) {
1765
+ te.current && clearTimeout(te.current), J({}), S.current = !0, r(w), g === X.HORIZONTAL_SCROLLING && (a == null || a.scrollTo({
1764
1766
  scrollTop: 0
1765
- })), B.current = setTimeout(() => {
1767
+ })), te.current = setTimeout(() => {
1766
1768
  requestAnimationFrame(() => {
1767
- T.current = { viewMode: m, scrollMode: g };
1769
+ C.current = { viewMode: m, scrollMode: g };
1768
1770
  });
1769
1771
  }, 100);
1770
1772
  return;
1771
1773
  }
1772
- const G = le.current.scrollTop, J = le.current.scrollLeft;
1773
- if (W.height && W.width) {
1774
- b.current = !0;
1775
- const { height: _e, width: xe } = W, { height: Gn, width: Vn } = d.current, Un = G / Gn * _e, qn = J / Vn * xe, Zn = Math.min(Un, _e) || 0, jn = Math.min(qn, xe) || 0;
1774
+ const V = le.current.scrollTop, Y = le.current.scrollLeft;
1775
+ if (H.height && H.width) {
1776
+ S.current = !0;
1777
+ const { height: _e, width: xe } = H, { height: Un, width: qn } = T.current, Zn = V / Un * _e, jn = Y / qn * xe, Bn = Math.min(Zn, _e) || 0, Kn = Math.min(jn, xe) || 0;
1776
1778
  a == null || a.scrollTo({
1777
- scrollTop: Zn,
1778
- scrollLeft: jn
1779
- }), d.current = {
1780
- height: W.height,
1781
- width: W.width
1782
- }, S.current && clearTimeout(S.current), S.current = setTimeout(() => {
1783
- b.current = !1;
1779
+ scrollTop: Bn,
1780
+ scrollLeft: Kn
1781
+ }), T.current = {
1782
+ height: H.height,
1783
+ width: H.width
1784
+ }, O.current && clearTimeout(O.current), O.current = setTimeout(() => {
1785
+ S.current = !1;
1784
1786
  }, 100);
1785
1787
  }
1786
- }, [W]), z(() => {
1787
- if ((Z.current || b.current) && (Z.current = !1), Z.current)
1788
+ }, [H]), z(() => {
1789
+ if ((B.current || S.current) && (B.current = !1), B.current)
1788
1790
  return;
1789
- const $ = Object.entries(X);
1790
- let G = 0, J = -1;
1791
+ const $ = Object.entries(j);
1792
+ let V = 0, Y = -1;
1791
1793
  $.forEach((_e) => {
1792
- J < _e[1] && (G = Number(_e[0]), J = _e[1]);
1793
- }), G && C(G);
1794
- }, [X, C]), z(() => () => {
1795
- B.current && clearTimeout(B.current), S.current && clearTimeout(S.current);
1794
+ Y < _e[1] && (V = Number(_e[0]), Y = _e[1]);
1795
+ }), V && b(V);
1796
+ }, [j, b]), z(() => () => {
1797
+ te.current && clearTimeout(te.current), O.current && clearTimeout(O.current);
1796
1798
  }, []);
1797
- const Oe = k(() => re(fe["rp-pages-container"], {
1798
- [fe["rp-cursor-grab"]]: ue && !ie,
1799
- [fe["rp-cursor-grabbing"]]: ue && ie
1800
- }), [ue, ie]), nt = L(
1799
+ const tt = k(() => oe(de["rp-pages-container"], {
1800
+ [de["rp-cursor-grab"]]: me && !K,
1801
+ [de["rp-cursor-grabbing"]]: me && K
1802
+ }), [me, K]), Vn = L(
1801
1803
  ($) => {
1802
- if (ue && $) {
1803
- const G = re(fe["rp-pages"]), J = document.querySelector(`.${G}`);
1804
- te(J);
1804
+ if (me && $) {
1805
+ const V = oe(de["rp-pages"]), Y = document.querySelector(`.${V}`);
1806
+ ue(Y);
1805
1807
  }
1806
1808
  },
1807
- [ue, te, fe]
1809
+ [me, ue, de]
1808
1810
  );
1809
1811
  return z(() => {
1810
- I && he();
1812
+ I && ye();
1811
1813
  }, [I]), z(() => {
1812
- if (!(W.height === 0 || !p.current)) {
1813
- if (e === K.PAGE_SCROLLING) {
1814
- t !== w && f && C(t), p.current = !1;
1814
+ if (!(H.height === 0 || !p.current)) {
1815
+ if (e === X.PAGE_SCROLLING) {
1816
+ t !== w && f && b(t), p.current = !1;
1815
1817
  return;
1816
1818
  }
1817
1819
  if (a != null && a.scrollToItem) {
1818
1820
  switch (e) {
1819
- case K.HORIZONTAL_SCROLLING:
1821
+ case X.HORIZONTAL_SCROLLING:
1820
1822
  a.scrollToItem({
1821
1823
  columnIndex: t - 1,
1822
1824
  rowIndex: 0,
@@ -1838,41 +1840,42 @@ const No = ({ widths: t, heights: e }) => {
1838
1840
  a,
1839
1841
  e,
1840
1842
  f,
1841
- C,
1842
- W
1843
- ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: Oe, children: /* @__PURE__ */ i(Lo, { style: { minHeight: "50px" }, children: ({ width: $, height: G }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: nt, style: { width: $, height: G }, children: g === K.PAGE_SCROLLING ? /* @__PURE__ */ i(
1843
+ b,
1844
+ H
1845
+ ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: tt, children: /* @__PURE__ */ i(Eo, { style: { minHeight: "50px" }, children: ({ width: $, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Vn, style: { width: $, height: V }, children: g === X.PAGE_SCROLLING ? /* @__PURE__ */ i(
1844
1846
  "div",
1845
1847
  {
1846
1848
  ref: c,
1847
- style: { width: $, height: G },
1848
- className: re(fe["rp-pages"], fe["rp-page-scrolling-wrapper"]),
1849
- children: m === Ue.DUAL_PAGE ? /* @__PURE__ */ i(No, { widths: D, heights: R }) : /* @__PURE__ */ i(Eo, { widths: D, heights: R })
1849
+ style: { width: $, height: V },
1850
+ className: oe(de["rp-pages"], de["rp-page-scrolling-wrapper"]),
1851
+ children: m === Ve.DUAL_PAGE ? /* @__PURE__ */ i(Oo, { widths: y, heights: F }) : /* @__PURE__ */ i(Do, { widths: y, heights: F })
1850
1852
  }
1851
- ) : y ? /* @__PURE__ */ i(
1852
- Po,
1853
+ ) : E ? /* @__PURE__ */ i(
1854
+ Io,
1853
1855
  {
1854
1856
  ref: s,
1855
- itemData: ye,
1857
+ itemData: fe,
1856
1858
  outerRef: l,
1857
1859
  innerRef: P,
1858
- onScroll: me,
1859
- columnCount: O,
1860
- columnWidth: D,
1861
- rowHeight: R,
1862
- height: G,
1860
+ onScroll: Oe,
1861
+ columnCount: N,
1862
+ columnWidth: y,
1863
+ rowHeight: F,
1864
+ height: V,
1863
1865
  width: $,
1864
- estimatedColumnWidth: y,
1865
- estimatedRowHeight: E,
1866
- rowCount: N,
1867
- className: re(
1868
- fe["rp-pages"],
1869
- g === K.HORIZONTAL_SCROLLING ? fe["rp-pages-horizontal-scroll"] : ""
1866
+ estimatedColumnWidth: E,
1867
+ estimatedRowHeight: G,
1868
+ rowCount: R,
1869
+ className: oe(
1870
+ de["rp-pages"],
1871
+ g === X.HORIZONTAL_SCROLLING ? de["rp-pages-horizontal-scroll"] : ""
1870
1872
  ),
1871
- children: Oo
1873
+ children: zo
1872
1874
  }
1873
1875
  ) : I ? null : /* @__PURE__ */ i(
1874
1876
  "div",
1875
1877
  {
1878
+ className: de["rp-loader"],
1876
1879
  style: {
1877
1880
  display: "flex",
1878
1881
  justifyContent: "center",
@@ -1880,7 +1883,7 @@ const No = ({ widths: t, heights: e }) => {
1880
1883
  height: "100%",
1881
1884
  width: "100%"
1882
1885
  },
1883
- children: /* @__PURE__ */ i(We, {})
1886
+ children: d && /* @__PURE__ */ i(d, {})
1884
1887
  }
1885
1888
  ) }) }) });
1886
1889
  }, De = {
@@ -1889,32 +1892,32 @@ const No = ({ widths: t, heights: e }) => {
1889
1892
  "rp-toolbar-start": "_rp-toolbar-start_sz31z_33",
1890
1893
  "rp-toolbar-middle": "_rp-toolbar-middle_sz31z_39",
1891
1894
  "rp-toolbar-end": "_rp-toolbar-end_sz31z_46"
1892
- }, dt = {
1895
+ }, ut = {
1893
1896
  "rp-paginate": "_rp-paginate_1vu6o_1",
1894
1897
  "rp-page-input": "_rp-page-input_1vu6o_6",
1895
1898
  "rp-total-page": "_rp-total-page_1vu6o_12"
1896
- }, Do = () => {
1897
- const { prevIcon: t } = pe();
1899
+ }, Ao = () => {
1900
+ const { prevIcon: t } = he();
1898
1901
  return t || /* @__PURE__ */ i(ke, {});
1899
- }, zo = () => {
1900
- const { nextIcon: t } = pe();
1902
+ }, Fo = () => {
1903
+ const { nextIcon: t } = he();
1901
1904
  return t || /* @__PURE__ */ i(ke, { style: { transform: "rotate(180deg" } });
1902
- }, Ao = () => {
1903
- const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = se(), [s, c] = H(t.toString()), { pageNavigationTool: l = !0 } = ve(), { isSmallScreen: u } = Se(), { localeMessages: h } = de();
1905
+ }, ko = () => {
1906
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = se(), [s, c] = M(t.toString()), { pageNavigationTool: l = !0 } = ve(), { isSmallScreen: u } = Ie(), { localeMessages: h } = pe();
1904
1907
  z(() => {
1905
1908
  c(t.toString());
1906
1909
  }, [t]);
1907
- const f = L((C) => {
1908
- const w = C.target.value;
1910
+ const f = L((b) => {
1911
+ const w = b.target.value;
1909
1912
  c(w);
1910
1913
  }, []), p = L(async () => {
1911
- const C = await a(s);
1912
- C.success || c(C.currentPage.toString());
1914
+ const b = await a(s);
1915
+ b.success || c(b.currentPage.toString());
1913
1916
  }, [a, s, e]), v = L(() => {
1914
1917
  c(t.toString());
1915
1918
  }, [t]), _ = L(
1916
- (C) => {
1917
- C.key === "Enter" && p();
1919
+ (b) => {
1920
+ b.key === "Enter" && p();
1918
1921
  },
1919
1922
  [p]
1920
1923
  );
@@ -1928,14 +1931,14 @@ const No = ({ widths: t, heights: e }) => {
1928
1931
  goToPage: a,
1929
1932
  changePage: n
1930
1933
  }
1931
- ) : l ? /* @__PURE__ */ A("div", { className: dt["rp-paginate"], children: [
1934
+ ) : l ? /* @__PURE__ */ A("div", { className: ut["rp-paginate"], children: [
1932
1935
  !u && /* @__PURE__ */ i(q, { content: h == null ? void 0 : h.previousPageTooltip, children: /* @__PURE__ */ i(
1933
1936
  ee,
1934
1937
  {
1935
1938
  onClick: r,
1936
1939
  "aria-label": h == null ? void 0 : h.previousPageTooltip,
1937
1940
  "aria-disabled": t === 1,
1938
- children: /* @__PURE__ */ i(Do, {})
1941
+ children: /* @__PURE__ */ i(Ao, {})
1939
1942
  }
1940
1943
  ) }),
1941
1944
  /* @__PURE__ */ i(q, { content: h == null ? void 0 : h.currentPageTooltip, children: /* @__PURE__ */ i(
@@ -1945,10 +1948,10 @@ const No = ({ widths: t, heights: e }) => {
1945
1948
  onBlur: v,
1946
1949
  onChange: f,
1947
1950
  value: s,
1948
- className: dt["rp-page-input"]
1951
+ className: ut["rp-page-input"]
1949
1952
  }
1950
1953
  ) }),
1951
- /* @__PURE__ */ A("span", { className: dt["rp-total-page"], children: [
1954
+ /* @__PURE__ */ A("span", { className: ut["rp-total-page"], children: [
1952
1955
  "/",
1953
1956
  e
1954
1957
  ] }),
@@ -1958,12 +1961,12 @@ const No = ({ widths: t, heights: e }) => {
1958
1961
  onClick: o,
1959
1962
  "aria-label": h == null ? void 0 : h.nextPageTooltip,
1960
1963
  "aria-disabled": t === e,
1961
- children: /* @__PURE__ */ i(zo, {})
1964
+ children: /* @__PURE__ */ i(Fo, {})
1962
1965
  }
1963
1966
  ) })
1964
1967
  ] }) : null;
1965
1968
  };
1966
- var It = "Dialog", [Cn, is] = Nr(It), [Fo, ce] = Cn(It), Tn = (t) => {
1969
+ var It = "Dialog", [Tn, cs] = Or(It), [Wo, ce] = Tn(It), Pn = (t) => {
1967
1970
  const {
1968
1971
  __scopeDialog: e,
1969
1972
  children: n,
@@ -1971,34 +1974,34 @@ var It = "Dialog", [Cn, is] = Nr(It), [Fo, ce] = Cn(It), Tn = (t) => {
1971
1974
  defaultOpen: r,
1972
1975
  onOpenChange: a,
1973
1976
  modal: s = !0
1974
- } = t, c = V.useRef(null), l = V.useRef(null), [u = !1, h] = Dr({
1977
+ } = t, c = U.useRef(null), l = U.useRef(null), [u = !1, h] = Ar({
1975
1978
  prop: o,
1976
1979
  defaultProp: r,
1977
1980
  onChange: a
1978
1981
  });
1979
1982
  return /* @__PURE__ */ i(
1980
- Fo,
1983
+ Wo,
1981
1984
  {
1982
1985
  scope: e,
1983
1986
  triggerRef: c,
1984
1987
  contentRef: l,
1985
- contentId: ot(),
1986
- titleId: ot(),
1987
- descriptionId: ot(),
1988
+ contentId: rt(),
1989
+ titleId: rt(),
1990
+ descriptionId: rt(),
1988
1991
  open: u,
1989
1992
  onOpenChange: h,
1990
- onOpenToggle: V.useCallback(() => h((f) => !f), [h]),
1993
+ onOpenToggle: U.useCallback(() => h((f) => !f), [h]),
1991
1994
  modal: s,
1992
1995
  children: n
1993
1996
  }
1994
1997
  );
1995
1998
  };
1996
- Tn.displayName = It;
1997
- var Pn = "DialogTrigger", ko = V.forwardRef(
1999
+ Pn.displayName = It;
2000
+ var Sn = "DialogTrigger", Mo = U.forwardRef(
1998
2001
  (t, e) => {
1999
- const { __scopeDialog: n, ...o } = t, r = ce(Pn, n), a = Ct(e, r.triggerRef);
2002
+ const { __scopeDialog: n, ...o } = t, r = ce(Sn, n), a = Ct(e, r.triggerRef);
2000
2003
  return /* @__PURE__ */ i(
2001
- Me.button,
2004
+ We.button,
2002
2005
  {
2003
2006
  type: "button",
2004
2007
  "aria-haspopup": "dialog",
@@ -2012,29 +2015,29 @@ var Pn = "DialogTrigger", ko = V.forwardRef(
2012
2015
  );
2013
2016
  }
2014
2017
  );
2015
- ko.displayName = Pn;
2016
- var yt = "DialogPortal", [Wo, Sn] = Cn(yt, {
2018
+ Mo.displayName = Sn;
2019
+ var yt = "DialogPortal", [Ho, In] = Tn(yt, {
2017
2020
  forceMount: void 0
2018
- }), In = (t) => {
2021
+ }), yn = (t) => {
2019
2022
  const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(yt, e);
2020
- return /* @__PURE__ */ i(Wo, { scope: e, forceMount: n, children: V.Children.map(o, (s) => /* @__PURE__ */ i(Tt, { present: n || a.open, children: /* @__PURE__ */ i(Mr, { asChild: !0, container: r, children: s }) })) });
2023
+ return /* @__PURE__ */ i(Ho, { scope: e, forceMount: n, children: U.Children.map(o, (s) => /* @__PURE__ */ i(Tt, { present: n || a.open, children: /* @__PURE__ */ i($r, { asChild: !0, container: r, children: s }) })) });
2021
2024
  };
2022
- In.displayName = yt;
2023
- var Ze = "DialogOverlay", yn = V.forwardRef(
2025
+ yn.displayName = yt;
2026
+ var qe = "DialogOverlay", xn = U.forwardRef(
2024
2027
  (t, e) => {
2025
- const n = Sn(Ze, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Ze, t.__scopeDialog);
2026
- return a.modal ? /* @__PURE__ */ i(Tt, { present: o || a.open, children: /* @__PURE__ */ i(Mo, { ...r, ref: e }) }) : null;
2028
+ const n = In(qe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(qe, t.__scopeDialog);
2029
+ return a.modal ? /* @__PURE__ */ i(Tt, { present: o || a.open, children: /* @__PURE__ */ i($o, { ...r, ref: e }) }) : null;
2027
2030
  }
2028
2031
  );
2029
- yn.displayName = Ze;
2030
- var Mo = V.forwardRef(
2032
+ xn.displayName = qe;
2033
+ var $o = U.forwardRef(
2031
2034
  (t, e) => {
2032
- const { __scopeDialog: n, ...o } = t, r = ce(Ze, n);
2035
+ const { __scopeDialog: n, ...o } = t, r = ce(qe, n);
2033
2036
  return (
2034
2037
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2035
2038
  // ie. when `Overlay` and `Content` are siblings
2036
- /* @__PURE__ */ i(Ar, { as: Er, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2037
- Me.div,
2039
+ /* @__PURE__ */ i(kr, { as: Dr, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2040
+ We.div,
2038
2041
  {
2039
2042
  "data-state": Rt(r.open),
2040
2043
  ...o,
@@ -2044,22 +2047,22 @@ var Mo = V.forwardRef(
2044
2047
  ) })
2045
2048
  );
2046
2049
  }
2047
- ), Te = "DialogContent", xn = V.forwardRef(
2050
+ ), Pe = "DialogContent", Rn = U.forwardRef(
2048
2051
  (t, e) => {
2049
- const n = Sn(Te, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Te, t.__scopeDialog);
2050
- return /* @__PURE__ */ i(Tt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Ho, { ...r, ref: e }) : /* @__PURE__ */ i($o, { ...r, ref: e }) });
2052
+ const n = In(Pe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Pe, t.__scopeDialog);
2053
+ return /* @__PURE__ */ i(Tt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Go, { ...r, ref: e }) : /* @__PURE__ */ i(Vo, { ...r, ref: e }) });
2051
2054
  }
2052
2055
  );
2053
- xn.displayName = Te;
2054
- var Ho = V.forwardRef(
2056
+ Rn.displayName = Pe;
2057
+ var Go = U.forwardRef(
2055
2058
  (t, e) => {
2056
- const n = ce(Te, t.__scopeDialog), o = V.useRef(null), r = Ct(e, n.contentRef, o);
2057
- return V.useEffect(() => {
2059
+ const n = ce(Pe, t.__scopeDialog), o = U.useRef(null), r = Ct(e, n.contentRef, o);
2060
+ return U.useEffect(() => {
2058
2061
  const a = o.current;
2059
2062
  if (a)
2060
- return Fr(a);
2063
+ return Wr(a);
2061
2064
  }, []), /* @__PURE__ */ i(
2062
- Rn,
2065
+ Ln,
2063
2066
  {
2064
2067
  ...t,
2065
2068
  ref: r,
@@ -2080,11 +2083,11 @@ var Ho = V.forwardRef(
2080
2083
  }
2081
2084
  );
2082
2085
  }
2083
- ), $o = V.forwardRef(
2086
+ ), Vo = U.forwardRef(
2084
2087
  (t, e) => {
2085
- const n = ce(Te, t.__scopeDialog), o = V.useRef(!1), r = V.useRef(!1);
2088
+ const n = ce(Pe, t.__scopeDialog), o = U.useRef(!1), r = U.useRef(!1);
2086
2089
  return /* @__PURE__ */ i(
2087
- Rn,
2090
+ Ln,
2088
2091
  {
2089
2092
  ...t,
2090
2093
  ref: e,
@@ -2103,12 +2106,12 @@ var Ho = V.forwardRef(
2103
2106
  }
2104
2107
  );
2105
2108
  }
2106
- ), Rn = V.forwardRef(
2109
+ ), Ln = U.forwardRef(
2107
2110
  (t, e) => {
2108
- const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Te, n), l = V.useRef(null), u = Ct(e, l);
2109
- return kr(), /* @__PURE__ */ A(Fe, { children: [
2111
+ const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Pe, n), l = U.useRef(null), u = Ct(e, l);
2112
+ return Mr(), /* @__PURE__ */ A(Fe, { children: [
2110
2113
  /* @__PURE__ */ i(
2111
- Wr,
2114
+ Hr,
2112
2115
  {
2113
2116
  asChild: !0,
2114
2117
  loop: !0,
@@ -2116,7 +2119,7 @@ var Ho = V.forwardRef(
2116
2119
  onMountAutoFocus: r,
2117
2120
  onUnmountAutoFocus: a,
2118
2121
  children: /* @__PURE__ */ i(
2119
- zr,
2122
+ Fr,
2120
2123
  {
2121
2124
  role: "dialog",
2122
2125
  id: c.contentId,
@@ -2131,30 +2134,30 @@ var Ho = V.forwardRef(
2131
2134
  }
2132
2135
  ),
2133
2136
  /* @__PURE__ */ A(Fe, { children: [
2134
- /* @__PURE__ */ i(Vo, { titleId: c.titleId }),
2135
- /* @__PURE__ */ i(qo, { contentRef: l, descriptionId: c.descriptionId })
2137
+ /* @__PURE__ */ i(qo, { titleId: c.titleId }),
2138
+ /* @__PURE__ */ i(jo, { contentRef: l, descriptionId: c.descriptionId })
2136
2139
  ] })
2137
2140
  ] });
2138
2141
  }
2139
- ), xt = "DialogTitle", Ln = V.forwardRef(
2142
+ ), xt = "DialogTitle", Nn = U.forwardRef(
2140
2143
  (t, e) => {
2141
2144
  const { __scopeDialog: n, ...o } = t, r = ce(xt, n);
2142
- return /* @__PURE__ */ i(Me.h2, { id: r.titleId, ...o, ref: e });
2145
+ return /* @__PURE__ */ i(We.h2, { id: r.titleId, ...o, ref: e });
2143
2146
  }
2144
2147
  );
2145
- Ln.displayName = xt;
2146
- var Nn = "DialogDescription", Go = V.forwardRef(
2148
+ Nn.displayName = xt;
2149
+ var En = "DialogDescription", Uo = U.forwardRef(
2147
2150
  (t, e) => {
2148
- const { __scopeDialog: n, ...o } = t, r = ce(Nn, n);
2149
- return /* @__PURE__ */ i(Me.p, { id: r.descriptionId, ...o, ref: e });
2151
+ const { __scopeDialog: n, ...o } = t, r = ce(En, n);
2152
+ return /* @__PURE__ */ i(We.p, { id: r.descriptionId, ...o, ref: e });
2150
2153
  }
2151
2154
  );
2152
- Go.displayName = Nn;
2153
- var En = "DialogClose", On = V.forwardRef(
2155
+ Uo.displayName = En;
2156
+ var On = "DialogClose", Dn = U.forwardRef(
2154
2157
  (t, e) => {
2155
- const { __scopeDialog: n, ...o } = t, r = ce(En, n);
2158
+ const { __scopeDialog: n, ...o } = t, r = ce(On, n);
2156
2159
  return /* @__PURE__ */ i(
2157
- Me.button,
2160
+ We.button,
2158
2161
  {
2159
2162
  type: "button",
2160
2163
  ...o,
@@ -2164,32 +2167,32 @@ var En = "DialogClose", On = V.forwardRef(
2164
2167
  );
2165
2168
  }
2166
2169
  );
2167
- On.displayName = En;
2170
+ Dn.displayName = On;
2168
2171
  function Rt(t) {
2169
2172
  return t ? "open" : "closed";
2170
2173
  }
2171
- var Dn = "DialogTitleWarning", [as, zn] = Or(Dn, {
2172
- contentName: Te,
2174
+ var zn = "DialogTitleWarning", [ls, An] = zr(zn, {
2175
+ contentName: Pe,
2173
2176
  titleName: xt,
2174
2177
  docsSlug: "dialog"
2175
- }), Vo = ({ titleId: t }) => {
2176
- const e = zn(Dn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2178
+ }), qo = ({ titleId: t }) => {
2179
+ const e = An(zn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2177
2180
 
2178
2181
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
2179
2182
 
2180
2183
  For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;
2181
- return V.useEffect(() => {
2184
+ return U.useEffect(() => {
2182
2185
  t && (document.getElementById(t) || console.error(n));
2183
2186
  }, [n, t]), null;
2184
- }, Uo = "DialogDescriptionWarning", qo = ({ contentRef: t, descriptionId: e }) => {
2185
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zn(Uo).contentName}}.`;
2186
- return V.useEffect(() => {
2187
+ }, Zo = "DialogDescriptionWarning", jo = ({ contentRef: t, descriptionId: e }) => {
2188
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${An(Zo).contentName}}.`;
2189
+ return U.useEffect(() => {
2187
2190
  var a;
2188
2191
  const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2189
2192
  e && r && (document.getElementById(e) || console.warn(o));
2190
2193
  }, [o, t, e]), null;
2191
- }, Zo = Tn, jo = In, Bo = yn, Ko = xn, Xo = Ln, Jo = On;
2192
- const Ce = {
2194
+ }, Bo = Pn, Ko = yn, Xo = xn, Jo = Rn, Yo = Nn, Qo = Dn;
2195
+ const Te = {
2193
2196
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2194
2197
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
2195
2198
  "rp-document-dialog": "_rp-document-dialog_slqo7_13",
@@ -2197,8 +2200,8 @@ const Ce = {
2197
2200
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2198
2201
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2199
2202
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2200
- }, Yo = () => {
2201
- const { pdfProperties: t } = Y(), { container: e } = Pe(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = $r(), { localeMessages: r } = de(), a = k(() => {
2203
+ }, ei = () => {
2204
+ const { pdfProperties: t } = Q(), { container: e } = Se(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Vr(), { localeMessages: r } = pe(), a = k(() => {
2202
2205
  if (!t)
2203
2206
  return [];
2204
2207
  const {
@@ -2211,7 +2214,7 @@ const Ce = {
2211
2214
  creator: p,
2212
2215
  keywords: v,
2213
2216
  modifiedOn: _,
2214
- pdfProducer: C,
2217
+ pdfProducer: b,
2215
2218
  pdfVersion: w,
2216
2219
  pageCount: g
2217
2220
  } = t;
@@ -2233,50 +2236,50 @@ const Ce = {
2233
2236
  value: _ ? zt(_) : ""
2234
2237
  },
2235
2238
  { separate: !0 },
2236
- { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: C },
2239
+ { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: b },
2237
2240
  { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: w },
2238
2241
  { label: r == null ? void 0 : r.propertiesPageCountLabel, value: g }
2239
2242
  ];
2240
2243
  }, [t, r]);
2241
- return /* @__PURE__ */ i(Zo, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(jo, { container: e, children: /* @__PURE__ */ A("div", { className: Ce["rp-dialog-wrapper"], children: [
2242
- /* @__PURE__ */ i(Bo, { className: Ce["rp-dialog-overlay"] }),
2243
- /* @__PURE__ */ A(Ko, { className: Ce["rp-document-dialog"], children: [
2244
- /* @__PURE__ */ i(Xo, { className: Ce["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2245
- /* @__PURE__ */ i("div", { className: Ce["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Ce["rp-properties-divider"] }) : /* @__PURE__ */ i(Hr, { label: s.label, value: s.value }) }, c)) }),
2246
- /* @__PURE__ */ i(Jo, { asChild: !0, className: Ce["rp-dialog-close"], children: /* @__PURE__ */ i(cn, {}) })
2244
+ return /* @__PURE__ */ i(Bo, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(Ko, { container: e, children: /* @__PURE__ */ A("div", { className: Te["rp-dialog-wrapper"], children: [
2245
+ /* @__PURE__ */ i(Xo, { className: Te["rp-dialog-overlay"] }),
2246
+ /* @__PURE__ */ A(Jo, { className: Te["rp-document-dialog"], children: [
2247
+ /* @__PURE__ */ i(Yo, { className: Te["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2248
+ /* @__PURE__ */ i("div", { className: Te["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Te["rp-properties-divider"] }) : /* @__PURE__ */ i(Gr, { label: s.label, value: s.value }) }, c)) }),
2249
+ /* @__PURE__ */ i(Qo, { asChild: !0, className: Te["rp-dialog-close"], children: /* @__PURE__ */ i(ln, {}) })
2247
2250
  ] })
2248
2251
  ] }) }) });
2249
- }, Qo = {
2252
+ }, ti = {
2250
2253
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2251
- }, ei = (t) => URL.createObjectURL(t), ti = async (t) => {
2254
+ }, ni = (t) => URL.createObjectURL(t), ri = async (t) => {
2252
2255
  const n = await (await fetch(t)).blob();
2253
- return ei(n);
2254
- }, An = () => {
2255
- const { filename: t, pdfSrc: e } = Y();
2256
+ return ni(n);
2257
+ }, Fn = () => {
2258
+ const { filename: t, pdfSrc: e } = Q();
2256
2259
  return { download: L(async () => {
2257
2260
  if (!t || !e)
2258
2261
  throw new Error("There is no PDF source to download");
2259
2262
  const o = document.createElement("a");
2260
- o.href = await ti(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2263
+ o.href = await ri(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
2261
2264
  }, [t, e]) };
2262
- }, Fn = () => {
2263
- const { downloadIcon: t } = pe();
2264
- return t || /* @__PURE__ */ i(Zr, {});
2265
- }, kn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), ni = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(kn, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Fn, {}) }) }), ri = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A(kn, { className: "rp-menu-item", localeMessages: e, children: [
2266
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Fn, {}) }),
2265
+ }, kn = () => {
2266
+ const { downloadIcon: t } = he();
2267
+ return t || /* @__PURE__ */ i(Br, {});
2268
+ }, Wn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), oi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Wn, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(kn, {}) }) }), ii = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A(Wn, { className: "rp-menu-item", localeMessages: e, children: [
2269
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(kn, {}) }),
2267
2270
  e == null ? void 0 : e.downloadFileLabel
2268
- ] }) }), Wn = () => {
2269
- const { download: t } = An(), { downloadTool: e = !0 } = ve(), { isSmallScreen: n } = Se(), { localeMessages: o } = de();
2270
- return e ? n ? /* @__PURE__ */ i(ri, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(ni, { download: t, localeMessages: o }) : null : null;
2271
- }, Mn = () => {
2272
- const { printIcon: t } = pe();
2273
- return t || /* @__PURE__ */ i(jr, {});
2274
- }, Hn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), oi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Hn, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Mn, {}) }) }), ii = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A(Hn, { className: "rp-menu-item", localeMessages: e, children: [
2275
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Mn, {}) }),
2271
+ ] }) }), Mn = () => {
2272
+ const { download: t } = Fn(), { downloadTool: e = !0 } = ve(), { isSmallScreen: n } = Ie(), { localeMessages: o } = pe();
2273
+ return e ? n ? /* @__PURE__ */ i(ii, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(oi, { download: t, localeMessages: o }) : null : null;
2274
+ }, Hn = () => {
2275
+ const { printIcon: t } = he();
2276
+ return t || /* @__PURE__ */ i(Kr, {});
2277
+ }, $n = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), ai = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i($n, { localeMessages: e, children: /* @__PURE__ */ i(ee, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Hn, {}) }) }), si = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ A($n, { className: "rp-menu-item", localeMessages: e, children: [
2278
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Hn, {}) }),
2276
2279
  e == null ? void 0 : e.printLabel
2277
- ] }) }), $n = () => {
2278
- const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = tt(), { printTool: s = !0 } = ve(), { isSmallScreen: c } = Se(), { localeMessages: l } = de();
2279
- return s ? c ? /* @__PURE__ */ i(ii, { print: t, localeMessages: l }) : typeof s == "function" ? /* @__PURE__ */ i(
2280
+ ] }) }), Gn = () => {
2281
+ const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = et(), { printTool: s = !0 } = ve(), { isSmallScreen: c } = Ie(), { localeMessages: l } = pe();
2282
+ return s ? c ? /* @__PURE__ */ i(si, { print: t, localeMessages: l }) : typeof s == "function" ? /* @__PURE__ */ i(
2280
2283
  s,
2281
2284
  {
2282
2285
  print: t,
@@ -2286,34 +2289,34 @@ const Ce = {
2286
2289
  setOnComplete: o,
2287
2290
  progress: a
2288
2291
  }
2289
- ) : s ? /* @__PURE__ */ i(oi, { print: t, localeMessages: l }) : null : null;
2290
- }, ai = {
2292
+ ) : s ? /* @__PURE__ */ i(ai, { print: t, localeMessages: l }) : null : null;
2293
+ }, ci = {
2291
2294
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2292
- }, si = () => {
2293
- const { goToFirstPageIcon: t } = pe();
2294
- return t || /* @__PURE__ */ i(un, { className: ai["rp-go-to-Top"] });
2295
- }, ci = () => {
2296
- const { goToLastPageIcon: t } = pe();
2297
- return t || /* @__PURE__ */ i(un, {});
2298
- }, Jt = { width: "100%" }, li = () => {
2299
- const { goToPage: t, totalPages: e, focusedPage: n } = se(), { jumpNavigationTool: o = !0 } = ve(), { localeMessages: r } = de(), a = k(() => n === 1, [n]), s = k(() => n === e, [n, e]), c = L(() => {
2295
+ }, li = () => {
2296
+ const { goToFirstPageIcon: t } = he();
2297
+ return t || /* @__PURE__ */ i(dn, { className: ci["rp-go-to-Top"] });
2298
+ }, ui = () => {
2299
+ const { goToLastPageIcon: t } = he();
2300
+ return t || /* @__PURE__ */ i(dn, {});
2301
+ }, Jt = { width: "100%" }, di = () => {
2302
+ const { goToPage: t, totalPages: e, focusedPage: n } = se(), { jumpNavigationTool: o = !0 } = ve(), { localeMessages: r } = pe(), a = k(() => n === 1, [n]), s = k(() => n === e, [n, e]), c = L(() => {
2300
2303
  t(1);
2301
2304
  }, [t]), l = L(() => {
2302
2305
  t(e);
2303
2306
  }, [t, e]);
2304
- return o ? /* @__PURE__ */ A(qe, { children: [
2307
+ return o ? /* @__PURE__ */ A(Ue, { children: [
2305
2308
  /* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.firstPageTooltip, style: Jt, children: /* @__PURE__ */ A("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2306
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(si, {}) }),
2309
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(li, {}) }),
2307
2310
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2308
2311
  ] }) }) }),
2309
2312
  /* @__PURE__ */ i(we, { onClick: l, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.lastPageTooltip, style: Jt, children: /* @__PURE__ */ A("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2310
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(ci, {}) }),
2313
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(ui, {}) }),
2311
2314
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2312
2315
  ] }) }) }),
2313
2316
  /* @__PURE__ */ i(Pt, {})
2314
2317
  ] }) : null;
2315
- }, ui = () => {
2316
- const { container: t } = Pe(), { isSmallScreen: e } = Se(), {
2318
+ }, pi = () => {
2319
+ const { container: t } = Se(), { isSmallScreen: e } = Ie(), {
2317
2320
  openFileTool: n,
2318
2321
  downloadTool: o,
2319
2322
  documentProperties: r,
@@ -2323,7 +2326,7 @@ const Ce = {
2323
2326
  jumpNavigationTool: l,
2324
2327
  printTool: u,
2325
2328
  fullscreenTool: h
2326
- } = ve(), { localeMessages: f } = de();
2329
+ } = ve(), { localeMessages: f } = pe();
2327
2330
  return k(() => {
2328
2331
  const v = l || s || c || a || r;
2329
2332
  let _ = !1;
@@ -2337,41 +2340,41 @@ const Ce = {
2337
2340
  c,
2338
2341
  l,
2339
2342
  e
2340
- ]) ? /* @__PURE__ */ A(Gr, { children: [
2343
+ ]) ? /* @__PURE__ */ A(Ur, { children: [
2341
2344
  /* @__PURE__ */ i(
2342
- sn,
2345
+ cn,
2343
2346
  {
2344
2347
  container: t,
2345
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(ee, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Lr, {}) }) }) }),
2346
- children: /* @__PURE__ */ A("div", { className: Qo["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2347
- e && /* @__PURE__ */ A(qe, { children: [
2348
- /* @__PURE__ */ i(an, {}),
2349
- /* @__PURE__ */ i(Wn, {}),
2350
- /* @__PURE__ */ i($n, {}),
2351
- /* @__PURE__ */ i(ln, {}),
2348
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(ee, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Er, {}) }) }) }),
2349
+ children: /* @__PURE__ */ A("div", { className: ti["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2350
+ e && /* @__PURE__ */ A(Ue, { children: [
2351
+ /* @__PURE__ */ i(sn, {}),
2352
+ /* @__PURE__ */ i(Mn, {}),
2353
+ /* @__PURE__ */ i(Gn, {}),
2354
+ /* @__PURE__ */ i(un, {}),
2352
2355
  /* @__PURE__ */ i(Pt, {})
2353
2356
  ] }),
2354
- /* @__PURE__ */ i(li, {}),
2355
- /* @__PURE__ */ i(Ur, {}),
2356
- /* @__PURE__ */ i(Br, {}),
2357
- /* @__PURE__ */ i(qr, {}),
2358
- /* @__PURE__ */ i(Vr, {})
2357
+ /* @__PURE__ */ i(di, {}),
2358
+ /* @__PURE__ */ i(Zr, {}),
2359
+ /* @__PURE__ */ i(Xr, {}),
2360
+ /* @__PURE__ */ i(jr, {}),
2361
+ /* @__PURE__ */ i(qr, {})
2359
2362
  ] })
2360
2363
  }
2361
2364
  ),
2362
- /* @__PURE__ */ i(Yo, {})
2365
+ /* @__PURE__ */ i(ei, {})
2363
2366
  ] }) : null;
2364
- }, di = () => {
2365
- const { isSmallScreen: t } = Se();
2367
+ }, hi = () => {
2368
+ const { isSmallScreen: t } = Ie();
2366
2369
  return /* @__PURE__ */ A(Fe, { children: [
2367
- /* @__PURE__ */ i(Rr, {}),
2370
+ /* @__PURE__ */ i(Nr, {}),
2368
2371
  !t && /* @__PURE__ */ A(Fe, { children: [
2369
- /* @__PURE__ */ i(an, {}),
2370
- /* @__PURE__ */ i(Wn, {}),
2371
- /* @__PURE__ */ i($n, {}),
2372
- /* @__PURE__ */ i(ln, {})
2372
+ /* @__PURE__ */ i(sn, {}),
2373
+ /* @__PURE__ */ i(Mn, {}),
2374
+ /* @__PURE__ */ i(Gn, {}),
2375
+ /* @__PURE__ */ i(un, {})
2373
2376
  ] }),
2374
- /* @__PURE__ */ i(ui, {})
2377
+ /* @__PURE__ */ i(pi, {})
2375
2378
  ] });
2376
2379
  }, Le = {
2377
2380
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2379,37 +2382,37 @@ const Ce = {
2379
2382
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2380
2383
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2381
2384
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2382
- }, pi = 25, pt = 1e3, hi = [50, 75, 100, 125, 150, 200, 300, 400], mi = () => {
2383
- const { zoomInIcon: t } = pe();
2384
- return t || /* @__PURE__ */ i(Kr, {});
2385
- }, fi = () => {
2386
- const { zoomOutIcon: t } = pe();
2387
- return t || /* @__PURE__ */ i(Xr, {});
2388
- }, gi = () => {
2389
- const { zoomLevel: t, setZoomLevel: e } = Je(), { container: n, contentRef: o } = Pe(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = se(), { rotate: s } = Xe(), { pages: c } = Y(), { isSmallScreen: l } = Se(), { localeMessages: u } = de(), h = L(() => {
2385
+ }, mi = 25, dt = 1e3, fi = [50, 75, 100, 125, 150, 200, 300, 400], gi = () => {
2386
+ const { zoomInIcon: t } = he();
2387
+ return t || /* @__PURE__ */ i(Jr, {});
2388
+ }, vi = () => {
2389
+ const { zoomOutIcon: t } = he();
2390
+ return t || /* @__PURE__ */ i(Yr, {});
2391
+ }, _i = () => {
2392
+ const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: n, contentRef: o } = Se(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = se(), { rotate: s } = Ke(), { pages: c } = Q(), { isSmallScreen: l } = Ie(), { localeMessages: u } = pe(), h = L(() => {
2390
2393
  e((g) => {
2391
2394
  const m = Math.floor(g / 25) * 25;
2392
- return Math.min(m + 25, pt);
2395
+ return Math.min(m + 25, dt);
2393
2396
  });
2394
2397
  }, [e]), f = L(() => {
2395
2398
  e((g) => {
2396
2399
  const m = Math.ceil(g / 25) * 25;
2397
- return Math.min(m - 25, pt);
2400
+ return Math.min(m - 25, dt);
2398
2401
  });
2399
- }, [e]), p = k(() => t === pi, [t]), v = k(() => t === pt, [t]), _ = k(() => {
2402
+ }, [e]), p = k(() => t === mi, [t]), v = k(() => t === dt, [t]), _ = k(() => {
2400
2403
  var g;
2401
2404
  return (g = c.get(a)) == null ? void 0 : g.page.getViewport({ scale: 1, rotation: s });
2402
- }, [c, a, s]), C = L(
2405
+ }, [c, a, s]), b = L(
2403
2406
  (g) => {
2404
- const m = ((_ == null ? void 0 : _.width) || 0) + 2 * At, P = ((_ == null ? void 0 : _.height) || 0) + 2 * At, I = (o == null ? void 0 : o.clientWidth) || 0, d = (o == null ? void 0 : o.clientHeight) || 0, T = Jr(g, I, d, m, P);
2407
+ const m = ((_ == null ? void 0 : _.width) || 0) + 2 * At, P = ((_ == null ? void 0 : _.height) || 0) + 2 * At, I = (o == null ? void 0 : o.clientWidth) || 0, d = (o == null ? void 0 : o.clientHeight) || 0, T = Qr(g, I, d, m, P);
2405
2408
  e(T);
2406
2409
  },
2407
2410
  [e, _]
2408
2411
  ), w = L(
2409
2412
  (g) => {
2410
- typeof g == "number" ? e(g) : C(g);
2413
+ typeof g == "number" ? e(g) : b(g);
2411
2414
  },
2412
- [e, C]
2415
+ [e, b]
2413
2416
  );
2414
2417
  return typeof r != "boolean" ? /* @__PURE__ */ i(r, { zoomLevel: t, setZoomLevel: e }) : r ? /* @__PURE__ */ A("div", { className: Le["rp-zoom-wrapper"], children: [
2415
2418
  /* @__PURE__ */ i(q, { content: u == null ? void 0 : u.zoomOutTooltip, children: /* @__PURE__ */ i(
@@ -2418,11 +2421,11 @@ const Ce = {
2418
2421
  disabled: p,
2419
2422
  onClick: f,
2420
2423
  "aria-label": u == null ? void 0 : u.zoomOutTooltip,
2421
- children: /* @__PURE__ */ i(fi, {})
2424
+ children: /* @__PURE__ */ i(vi, {})
2422
2425
  }
2423
2426
  ) }),
2424
2427
  !l && /* @__PURE__ */ i(
2425
- sn,
2428
+ cn,
2426
2429
  {
2427
2430
  container: n,
2428
2431
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: u == null ? void 0 : u.zoomSelectTooltip, children: /* @__PURE__ */ A(
@@ -2440,13 +2443,13 @@ const Ce = {
2440
2443
  style: { minWidth: "200px" },
2441
2444
  align: "center",
2442
2445
  children: /* @__PURE__ */ A("div", { className: Le["rp-zoom-dropdown-content"], children: [
2443
- /* @__PURE__ */ A(qe, { children: [
2444
- /* @__PURE__ */ i(we, { onClick: () => w(rt.ACTUAL), children: u == null ? void 0 : u.zoomActualSize }),
2445
- /* @__PURE__ */ i(we, { onClick: () => w(rt.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2446
- /* @__PURE__ */ i(we, { onClick: () => w(rt.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2446
+ /* @__PURE__ */ A(Ue, { children: [
2447
+ /* @__PURE__ */ i(we, { onClick: () => w(nt.ACTUAL), children: u == null ? void 0 : u.zoomActualSize }),
2448
+ /* @__PURE__ */ i(we, { onClick: () => w(nt.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2449
+ /* @__PURE__ */ i(we, { onClick: () => w(nt.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2447
2450
  ] }),
2448
2451
  /* @__PURE__ */ i(Pt, {}),
2449
- /* @__PURE__ */ i(qe, { children: hi.map((g) => /* @__PURE__ */ A(we, { onClick: () => w(g), children: [
2452
+ /* @__PURE__ */ i(Ue, { children: fi.map((g) => /* @__PURE__ */ A(we, { onClick: () => w(g), children: [
2450
2453
  g,
2451
2454
  " %"
2452
2455
  ] }, g)) })
@@ -2459,11 +2462,11 @@ const Ce = {
2459
2462
  disabled: v,
2460
2463
  onClick: h,
2461
2464
  "aria-label": u == null ? void 0 : u.zoomInTooltip,
2462
- children: /* @__PURE__ */ i(mi, {})
2465
+ children: /* @__PURE__ */ i(gi, {})
2463
2466
  }
2464
2467
  ) })
2465
2468
  ] }) : null;
2466
- }, ne = {
2469
+ }, re = {
2467
2470
  "rp-search-tool-content": "_rp-search-tool-content_jvchu_1",
2468
2471
  "rp-search-tool-input": "_rp-search-tool-input_jvchu_8",
2469
2472
  "rp-search-tool-input-icon": "_rp-search-tool-input-icon_jvchu_14",
@@ -2474,10 +2477,10 @@ const Ce = {
2474
2477
  "rp-search-input": "_rp-search-input_jvchu_57",
2475
2478
  "rp-search-icon-info": "_rp-search-icon-info_jvchu_62"
2476
2479
  }, Yt = () => {
2477
- const { searchIcon: t } = pe();
2478
- return t || /* @__PURE__ */ i(Yr, {});
2479
- }, vi = () => {
2480
- const { container: t } = Pe(), [e, n] = H(!1), { pdf: o } = Y(), [r, a] = H(null), {
2480
+ const { searchIcon: t } = he();
2481
+ return t || /* @__PURE__ */ i(eo, {});
2482
+ }, wi = () => {
2483
+ const { container: t } = Se(), [e, n] = M(!1), { pdf: o } = Q(), [r, a] = M(null), {
2481
2484
  searchOptions: s,
2482
2485
  setSearchOptions: c,
2483
2486
  loading: l,
@@ -2487,19 +2490,19 @@ const Ce = {
2487
2490
  nextMatch: p,
2488
2491
  prevMatch: v,
2489
2492
  search: _
2490
- } = vn(), { searchTool: C = !0 } = ve(), [w, g] = H(_), { localeMessages: m } = de(), P = L(() => {
2493
+ } = _n(), { searchTool: b = !0 } = ve(), [w, g] = M(_), { localeMessages: m } = pe(), P = L(() => {
2491
2494
  n(!0);
2492
2495
  }, []), I = L(() => {
2493
2496
  u(""), g(""), n(!1);
2494
2497
  }, [u]), d = (y) => {
2495
- const E = y.key === "Enter", W = y.key === " ";
2496
- (E || W) && I();
2498
+ const E = y.key === "Enter", G = y.key === " ";
2499
+ (E || G) && I();
2497
2500
  }, T = L(
2498
2501
  (y) => {
2499
2502
  y.key === "Escape" && e && I();
2500
2503
  },
2501
2504
  [e]
2502
- ), b = L(
2505
+ ), C = L(
2503
2506
  (y) => {
2504
2507
  y.shiftKey && y.key === "Enter" ? v() : y.key === "Enter" && _ !== w ? u(w) : y.key === "Enter" && p();
2505
2508
  },
@@ -2512,14 +2515,14 @@ const Ce = {
2512
2515
  }, [r]);
2513
2516
  const S = L((y) => {
2514
2517
  g(y.target.value);
2515
- }, []), F = L(() => {
2518
+ }, []), O = L(() => {
2516
2519
  g(""), u("");
2517
- }, [u]), x = k(() => `${f} / ${h}`, [f, h]), { wholeWords: N, matchCase: R } = k(() => s, [s]), O = L(
2520
+ }, [u]), x = k(() => `${f} / ${h}`, [f, h]), { wholeWords: D, matchCase: R } = k(() => s, [s]), F = L(
2518
2521
  (y) => {
2519
2522
  c((E) => ({ ...E, matchCase: y }));
2520
2523
  },
2521
2524
  [c]
2522
- ), D = L(
2525
+ ), N = L(
2523
2526
  (y) => {
2524
2527
  c((E) => ({ ...E, wholeWords: y }));
2525
2528
  },
@@ -2527,42 +2530,42 @@ const Ce = {
2527
2530
  );
2528
2531
  return z(() => {
2529
2532
  I();
2530
- }, [o, I]), C ? /* @__PURE__ */ i(Fe, { children: /* @__PURE__ */ i(
2531
- eo,
2533
+ }, [o, I]), b ? /* @__PURE__ */ i(Fe, { children: /* @__PURE__ */ i(
2534
+ no,
2532
2535
  {
2533
2536
  open: e,
2534
2537
  container: t,
2535
2538
  triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(ee, { onClick: P, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(Yt, {}) }) }),
2536
- children: /* @__PURE__ */ A("div", { className: ne["rp-search-tool-content"], children: [
2537
- /* @__PURE__ */ A("div", { className: ne["rp-search-tool-input-wrapper"], children: [
2538
- /* @__PURE__ */ A("div", { className: ne["rp-search-tool-input"], children: [
2539
+ children: /* @__PURE__ */ A("div", { className: re["rp-search-tool-content"], children: [
2540
+ /* @__PURE__ */ A("div", { className: re["rp-search-tool-input-wrapper"], children: [
2541
+ /* @__PURE__ */ A("div", { className: re["rp-search-tool-input"], children: [
2539
2542
  /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ i(
2540
2543
  tn,
2541
2544
  {
2542
2545
  value: w,
2543
- onKeyDown: b,
2546
+ onKeyDown: C,
2544
2547
  onChange: S,
2545
2548
  icon: /* @__PURE__ */ i(Yt, {}),
2546
2549
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2547
- className: ne["rp-search-input"],
2550
+ className: re["rp-search-input"],
2548
2551
  ref: a,
2549
- children: !!w && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: F, children: /* @__PURE__ */ i(Qr, {}) })
2552
+ children: !!w && /* @__PURE__ */ i("span", { className: re["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ i(to, {}) })
2550
2553
  }
2551
2554
  ) }),
2552
- l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(We, {}) }) : /* @__PURE__ */ i("span", { children: x })
2555
+ l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(bt, {}) }) : /* @__PURE__ */ i("span", { children: x })
2553
2556
  ] }),
2554
- /* @__PURE__ */ A("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
2555
- /* @__PURE__ */ i(Ft, { name: "matchCase", value: R, onChange: O, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2556
- /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(kt, {}) }) }),
2557
- /* @__PURE__ */ i(Ft, { name: "wholeWord", value: N, onChange: D, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2558
- /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(kt, {}) }) })
2557
+ /* @__PURE__ */ A("div", { className: re["rp-search-tool-input-checkboxes"], children: [
2558
+ /* @__PURE__ */ i(Ft, { name: "matchCase", value: R, onChange: F, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2559
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(kt, {}) }) }),
2560
+ /* @__PURE__ */ i(Ft, { name: "wholeWord", value: D, onChange: N, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2561
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(kt, {}) }) })
2559
2562
  ] })
2560
2563
  ] }),
2561
- /* @__PURE__ */ A("div", { className: ne["rp-search-tool-controls"], children: [
2564
+ /* @__PURE__ */ A("div", { className: re["rp-search-tool-controls"], children: [
2562
2565
  /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(ee, { onClick: v, "aria-label": m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(
2563
2566
  ke,
2564
2567
  {
2565
- className: ne["rp-search-tool-input-icon"],
2568
+ className: re["rp-search-tool-input-icon"],
2566
2569
  "aria-disabled": !h
2567
2570
  }
2568
2571
  ) }) }),
@@ -2570,7 +2573,7 @@ const Ce = {
2570
2573
  ke,
2571
2574
  {
2572
2575
  style: { transform: "rotate(180deg" },
2573
- className: ne["rp-search-tool-input-icon"],
2576
+ className: re["rp-search-tool-input-icon"],
2574
2577
  "aria-disabled": !h
2575
2578
  }
2576
2579
  ) }) }),
@@ -2579,51 +2582,51 @@ const Ce = {
2579
2582
  {
2580
2583
  onKeyDown: d,
2581
2584
  "aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
2582
- children: /* @__PURE__ */ i(cn, { onClick: I, className: ne["rp-search-tool-input-icon"] })
2585
+ children: /* @__PURE__ */ i(ln, { onClick: I, className: re["rp-search-tool-input-icon"] })
2583
2586
  }
2584
2587
  ) })
2585
2588
  ] })
2586
2589
  ] })
2587
2590
  }
2588
2591
  ) }) : null;
2589
- }, _i = "_loading_16o91_1", Ne = {
2592
+ }, bi = "_loading_16o91_1", Ne = {
2590
2593
  "rp-loading-overlay": "_rp-loading-overlay_16o91_1",
2591
2594
  "rp-loading-modal": "_rp-loading-modal_16o91_14",
2592
2595
  "rp-loading-title": "_rp-loading-title_16o91_27",
2593
2596
  "rp-loading-progress-bar": "_rp-loading-progress-bar_16o91_35",
2594
2597
  "rp-loading-progress": "_rp-loading-progress_16o91_35",
2595
2598
  "rp-loading-cancel-button": "_rp-loading-cancel-button_16o91_52",
2596
- loading: _i
2597
- }, wi = ({ percentage: t }) => {
2598
- const { cancel: e } = tt(), { localeMessages: n } = de();
2599
- return t < 1 ? null : /* @__PURE__ */ i("div", { className: re(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ A("div", { className: re(Ne["rp-loading-modal"]), children: [
2600
- /* @__PURE__ */ A("div", { className: re(Ne["rp-loading-title"]), children: [
2599
+ loading: bi
2600
+ }, Ci = ({ percentage: t }) => {
2601
+ const { cancel: e } = et(), { localeMessages: n } = pe();
2602
+ return t < 1 ? null : /* @__PURE__ */ i("div", { className: oe(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ A("div", { className: oe(Ne["rp-loading-modal"]), children: [
2603
+ /* @__PURE__ */ A("div", { className: oe(Ne["rp-loading-title"]), children: [
2601
2604
  n == null ? void 0 : n.printLoadingMessage,
2602
2605
  "..."
2603
2606
  ] }),
2604
- /* @__PURE__ */ i("div", { className: re(Ne["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
2607
+ /* @__PURE__ */ i("div", { className: oe(Ne["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
2605
2608
  "div",
2606
2609
  {
2607
- className: re(Ne["rp-loading-progress"]),
2610
+ className: oe(Ne["rp-loading-progress"]),
2608
2611
  style: { width: `${t}%` }
2609
2612
  }
2610
2613
  ) }),
2611
- /* @__PURE__ */ i("button", { className: re(Ne["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
2614
+ /* @__PURE__ */ i("button", { className: oe(Ne["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
2612
2615
  ] }) });
2613
- }, bi = Ke((t, e) => {
2614
- const { showPrintProgress: n } = ve(), { progress: o } = tt(), { isSmallScreen: r } = Se(), { percentage: a } = o || {}, s = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2616
+ }, Ti = Be((t, e) => {
2617
+ const { showPrintProgress: n } = ve(), { progress: o } = et(), { isSmallScreen: r } = Ie(), { percentage: a } = o || {}, s = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2615
2618
  return /* @__PURE__ */ A("div", { children: [
2616
2619
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: De["rp-toolbar-content"], children: /* @__PURE__ */ A("div", { className: De["rp-toolbar-wrapper"], style: s(), children: [
2617
2620
  /* @__PURE__ */ A("div", { "data-rp": "topBarLeft", className: De["rp-toolbar-start"], children: [
2618
- /* @__PURE__ */ i(vi, {}),
2619
- /* @__PURE__ */ i(Ao, {})
2621
+ /* @__PURE__ */ i(wi, {}),
2622
+ /* @__PURE__ */ i(ko, {})
2620
2623
  ] }),
2621
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: De["rp-toolbar-middle"], children: /* @__PURE__ */ i(gi, {}) }),
2622
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: De["rp-toolbar-end"], children: /* @__PURE__ */ i(di, {}) })
2624
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: De["rp-toolbar-middle"], children: /* @__PURE__ */ i(_i, {}) }),
2625
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: De["rp-toolbar-end"], children: /* @__PURE__ */ i(hi, {}) })
2623
2626
  ] }) }),
2624
- n && a ? /* @__PURE__ */ i(wi, { percentage: a }) : null
2627
+ n && a ? /* @__PURE__ */ i(Ci, { percentage: a }) : null
2625
2628
  ] });
2626
- }), ht = {
2629
+ }), pt = {
2627
2630
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_4wlw3_1",
2628
2631
  "rp-sidebar-content": "_rp-sidebar-content_4wlw3_1",
2629
2632
  "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_4wlw3_16",
@@ -2634,7 +2637,7 @@ const Ce = {
2634
2637
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
2635
2638
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2636
2639
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2637
- }, Ci = (t) => {
2640
+ }, Pi = (t) => {
2638
2641
  const { thumbnailSrc: e, pageNumber: n, isFocused: o, viewport: r } = t, { goToPage: a } = se(), s = k(() => o ? ze["rp-thumbnail-active"] : "", [o]), c = k(() => ({
2639
2642
  width: Math.round(r.width),
2640
2643
  height: Math.round(r.height)
@@ -2648,7 +2651,7 @@ const Ce = {
2648
2651
  id: `page-${n}`,
2649
2652
  className: ze["rp-thumbnail-wrapper"],
2650
2653
  children: [
2651
- /* @__PURE__ */ i("div", { className: re(s, ze["rp-thumbnail"]), children: e ? /* @__PURE__ */ i(
2654
+ /* @__PURE__ */ i("div", { className: oe(s, ze["rp-thumbnail"]), children: e ? /* @__PURE__ */ i(
2652
2655
  "img",
2653
2656
  {
2654
2657
  src: e,
@@ -2664,7 +2667,7 @@ const Ce = {
2664
2667
  width: `${c.width}px`,
2665
2668
  height: `${c.height}px`
2666
2669
  },
2667
- children: /* @__PURE__ */ i(We, {})
2670
+ children: /* @__PURE__ */ i(bt, {})
2668
2671
  }
2669
2672
  ) }),
2670
2673
  /* @__PURE__ */ i("div", { className: ze["rp-thumbnail-text"], children: n })
@@ -2674,24 +2677,24 @@ const Ce = {
2674
2677
  }, Qt = {
2675
2678
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2676
2679
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2677
- }, Ti = 16, Pi = (t, e) => {
2680
+ }, Si = 16, Ii = (t, e) => {
2678
2681
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
2679
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ti);
2680
- }, Si = Ke((t, e) => {
2681
- const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } = fn(), u = M(null), h = M(1);
2682
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Si);
2683
+ }, yi = Be((t, e) => {
2684
+ const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } = gn(), u = W(null), h = W(1);
2682
2685
  en(e, () => u.current);
2683
2686
  const f = k(() => Object.values(a), [a]), p = L(() => {
2684
2687
  const v = c + 1;
2685
2688
  v <= r && s(v);
2686
2689
  }, [s, r, c]);
2687
2690
  return z(() => {
2688
- o > c ? l(o) : n && h.current !== o && (Pi(u.current, o), h.current = o);
2689
- }, [o, c, l, n, f]), lr(u.current, p), /* @__PURE__ */ i("div", { ref: u, className: Qt["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: Qt["rp-thumbnails"], children: n ? f.map((v, _) => {
2690
- var C, w;
2691
+ o > c ? l(o) : n && h.current !== o && (Ii(u.current, o), h.current = o);
2692
+ }, [o, c, l, n, f]), dr(u.current, p), /* @__PURE__ */ i("div", { ref: u, className: Qt["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: Qt["rp-thumbnails"], children: n ? f.map((v, _) => {
2693
+ var b, w;
2691
2694
  return /* @__PURE__ */ i(
2692
- Ci,
2695
+ Pi,
2693
2696
  {
2694
- isFocused: o === ((C = v.page) == null ? void 0 : C.pageNumber),
2697
+ isFocused: o === ((b = v.page) == null ? void 0 : b.pageNumber),
2695
2698
  pageNumber: (w = v.page) == null ? void 0 : w.pageNumber,
2696
2699
  thumbnailSrc: v.thumbnailSrc,
2697
2700
  loading: v.loading,
@@ -2700,11 +2703,11 @@ const Ce = {
2700
2703
  _
2701
2704
  );
2702
2705
  }) : null }) });
2703
- }), Ii = () => {
2704
- const { thumbnailIcon: t } = pe();
2705
- return t || /* @__PURE__ */ i(cr, {});
2706
- }, yi = () => {
2707
- const { active: t, setActive: e } = fn(), [n, o] = H(200), r = M(null), { thumbnailTool: a } = ve(), { localeMessages: s } = de(), c = L(() => {
2706
+ }), xi = () => {
2707
+ const { thumbnailIcon: t } = he();
2708
+ return t || /* @__PURE__ */ i(ur, {});
2709
+ }, Ri = () => {
2710
+ const { active: t, setActive: e } = gn(), [n, o] = M(200), r = W(null), { thumbnailTool: a } = ve(), { localeMessages: s } = pe(), c = L(() => {
2708
2711
  e((u) => !u);
2709
2712
  }, []), l = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: c, active: t }) : a ? /* @__PURE__ */ i(q, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2710
2713
  ee,
@@ -2712,50 +2715,50 @@ const Ce = {
2712
2715
  onClick: c,
2713
2716
  active: t,
2714
2717
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
2715
- children: /* @__PURE__ */ i(Ii, {})
2718
+ children: /* @__PURE__ */ i(xi, {})
2716
2719
  }
2717
2720
  ) }) : null, [a, t, c, s]);
2718
2721
  return /* @__PURE__ */ A(
2719
2722
  "div",
2720
2723
  {
2721
2724
  style: { "--rp-thumbnail-width": `${n}px` },
2722
- className: ht["rp-sidebar-content-wrapper"],
2725
+ className: pt["rp-sidebar-content-wrapper"],
2723
2726
  "data-rp": "sidebar",
2724
2727
  children: [
2725
- /* @__PURE__ */ i("div", { className: ht["rp-sidebar-content"], children: l }),
2726
- /* @__PURE__ */ A("div", { "data-rp": "thumbnailSidebar", hidden: !t, className: ht["rp-thumbnails-wrapper"], children: [
2727
- /* @__PURE__ */ i(Si, { show: t, ref: r }),
2728
- /* @__PURE__ */ i(ur, { onWidthChange: o, thumbnailRef: r })
2728
+ /* @__PURE__ */ i("div", { className: pt["rp-sidebar-content"], children: l }),
2729
+ /* @__PURE__ */ A("div", { "data-rp": "thumbnailSidebar", hidden: !t, className: pt["rp-thumbnails-wrapper"], children: [
2730
+ /* @__PURE__ */ i(yi, { show: t, ref: r }),
2731
+ /* @__PURE__ */ i(pr, { onWidthChange: o, thumbnailRef: r })
2729
2732
  ] })
2730
2733
  ]
2731
2734
  }
2732
2735
  );
2733
- }, ss = Ke((t, e) => {
2734
- const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: l, cleanupOnLoaded: u } = t, [h, f] = H(null), { setContainer: p, setContentRef: v } = Pe(), { loading: _ } = Y();
2736
+ }, us = Be((t, e) => {
2737
+ const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: l, cleanupOnLoaded: u } = t, [h, f] = M(null), { setContainer: p, setContentRef: v } = Se(), { loading: _ } = Q(), { LoaderImageComponent: b } = an();
2735
2738
  return z(() => (l && l(), () => {
2736
2739
  u && u();
2737
- }), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: re(be["rp-theme-variables"], be["rp-container"]), children: /* @__PURE__ */ i(gr, { mobileWidth: c, children: /* @__PURE__ */ i(dr, { slots: o, children: /* @__PURE__ */ i(pr, { icons: r, children: /* @__PURE__ */ A(
2738
- hr,
2740
+ }), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: oe(Ce["rp-theme-variables"], Ce["rp-container"]), children: /* @__PURE__ */ i(_r, { mobileWidth: c, children: /* @__PURE__ */ i(hr, { slots: o, children: /* @__PURE__ */ i(mr, { icons: r, children: /* @__PURE__ */ A(
2741
+ fr,
2739
2742
  {
2740
2743
  getContainerRef: p,
2741
2744
  toolbarRef: h,
2742
2745
  style: a,
2743
2746
  className: s,
2744
2747
  children: [
2745
- /* @__PURE__ */ A(mr, { children: [
2746
- /* @__PURE__ */ A("div", { className: be["rp-layout"], children: [
2747
- /* @__PURE__ */ i(bi, { ref: f }),
2748
- /* @__PURE__ */ A("div", { className: be["rp-content"], children: [
2749
- /* @__PURE__ */ i("div", { className: be["rp-sidebar"], children: /* @__PURE__ */ i(yi, {}) }),
2750
- /* @__PURE__ */ i("div", { ref: v, className: be["rp-pages"], children: n })
2748
+ /* @__PURE__ */ A(gr, { children: [
2749
+ /* @__PURE__ */ A("div", { className: Ce["rp-layout"], children: [
2750
+ /* @__PURE__ */ i(Ti, { ref: f }),
2751
+ /* @__PURE__ */ A("div", { className: Ce["rp-content"], children: [
2752
+ /* @__PURE__ */ i("div", { className: Ce["rp-sidebar"], children: /* @__PURE__ */ i(Ri, {}) }),
2753
+ /* @__PURE__ */ i("div", { ref: v, className: Ce["rp-pages"], children: n })
2751
2754
  ] })
2752
2755
  ] }),
2753
- /* @__PURE__ */ i(fr, {})
2756
+ /* @__PURE__ */ i(vr, {})
2754
2757
  ] }),
2755
2758
  _ ? /* @__PURE__ */ i(
2756
2759
  "div",
2757
2760
  {
2758
- className: be["rp-loader"],
2761
+ className: Ce["rp-loader"],
2759
2762
  style: {
2760
2763
  position: "absolute",
2761
2764
  top: 0,
@@ -2775,7 +2778,7 @@ const Ce = {
2775
2778
  height: "100%",
2776
2779
  width: "100%"
2777
2780
  },
2778
- children: /* @__PURE__ */ i(We, {})
2781
+ children: b && /* @__PURE__ */ i(b, {})
2779
2782
  }
2780
2783
  )
2781
2784
  }
@@ -2785,45 +2788,45 @@ const Ce = {
2785
2788
  ) }) }) }) });
2786
2789
  });
2787
2790
  export {
2788
- lo as A,
2789
- Ci as B,
2790
- io as C,
2791
- No as D,
2792
- Si as E,
2793
- Wn as F,
2794
- yi as G,
2795
- wi as L,
2796
- li as M,
2797
- ui as O,
2798
- es as P,
2799
- os as R,
2800
- rs as S,
2801
- ns as T,
2802
- gi as Z,
2803
- ts as a,
2804
- ss as b,
2805
- An as c,
2806
- tt as d,
2807
- vn as e,
2808
- dn as f,
2809
- to as g,
2810
- pn as h,
2811
- no as i,
2812
- hn as j,
2813
- ro as k,
2814
- mn as l,
2815
- fn as m,
2816
- oo as n,
2817
- gn as o,
2818
- ao as p,
2791
+ po as A,
2792
+ Pi as B,
2793
+ so as C,
2794
+ Oo as D,
2795
+ yi as E,
2796
+ Mn as F,
2797
+ Ri as G,
2798
+ Ci as L,
2799
+ di as M,
2800
+ pi as O,
2801
+ rs as P,
2802
+ ss as R,
2803
+ as as S,
2804
+ is as T,
2805
+ _i as Z,
2806
+ os as a,
2807
+ us as b,
2808
+ Fn as c,
2809
+ et as d,
2810
+ _n as e,
2811
+ pn as f,
2812
+ ro as g,
2813
+ hn as h,
2814
+ oo as i,
2815
+ mn as j,
2816
+ io as k,
2817
+ fn as l,
2818
+ gn as m,
2819
+ ao as n,
2820
+ vn as o,
2821
+ co as p,
2819
2822
  St as q,
2820
- xo as r,
2821
- Eo as s,
2822
- Ao as t,
2823
+ Lo as r,
2824
+ Do as s,
2825
+ ko as t,
2823
2826
  se as u,
2824
- Yo as v,
2825
- $n as w,
2826
- di as x,
2827
- vi as y,
2828
- bi as z
2827
+ ei as v,
2828
+ Gn as w,
2829
+ hi as x,
2830
+ wi as y,
2831
+ Ti as z
2829
2832
  };