@pdf-viewer/react 1.1.0-beta.0 → 1.1.0-beta.1

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 (63) hide show
  1. package/dist/{RPDefaultLayout-43ed3fda.js → RPDefaultLayout-62e0f668.js} +704 -662
  2. package/dist/assets/RPDefaultLayout.css +1 -1
  3. package/dist/components/RPConfig.js +340 -318
  4. package/dist/components/RPController.js +1 -1
  5. package/dist/components/RPPages.js +3 -2
  6. package/dist/components/RPProvider.js +1 -1
  7. package/dist/components/layout/RPDefaultLayout.js +4 -2
  8. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  11. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  13. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  14. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  15. package/dist/components/layout/toolbar/MostPageTool.js +2 -2
  16. package/dist/components/layout/toolbar/OtherTool.js +2 -2
  17. package/dist/components/layout/toolbar/Paginate.js +1 -1
  18. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  20. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  21. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  22. package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
  23. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  24. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  25. package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
  26. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  27. package/dist/components/page/AnnotationLayer.js +1 -1
  28. package/dist/components/page/CanvasLayer.js +1 -1
  29. package/dist/components/page/DualPage.js +1 -1
  30. package/dist/components/page/RPPage.js +1 -1
  31. package/dist/components/page/SinglePage.js +1 -1
  32. package/dist/components/page/TextLayer.js +1 -1
  33. package/dist/components/ui/Checkbox.js +92 -252
  34. package/dist/components/ui/DropDown.js +1 -1
  35. package/dist/components/ui/LoadingIndicator.js +1 -1
  36. package/dist/components/ui/RPTooltip.js +224 -961
  37. package/dist/contexts/DarkModeContext.js +9 -9
  38. package/dist/contexts/PaginationContext.js +1 -1
  39. package/dist/contexts/PrintContext.js +1 -1
  40. package/dist/contexts/RPDocumentContext.js +24 -37
  41. package/dist/contexts/RotationContext.js +8 -8
  42. package/dist/contexts/ScrollModeContext.js +5 -5
  43. package/dist/contexts/SearchContext.js +1 -1
  44. package/dist/contexts/SelectionModeContext.js +1 -1
  45. package/dist/contexts/ThumbnailsContext.js +1 -1
  46. package/dist/contexts/ViewModeContext.js +9 -9
  47. package/dist/contexts/ZoomContext.js +11 -11
  48. package/dist/index-1db49c1a.js +1664 -0
  49. package/dist/index-3dff3fa8.js +307 -0
  50. package/dist/index-4f17fe4d.js +1657 -0
  51. package/dist/main.js +1 -1
  52. package/dist/utils/hooks/useFileDownload.js +1 -1
  53. package/dist/utils/hooks/useLicense.js +37 -40
  54. package/dist/utils/hooks/usePaginate.js +1 -1
  55. package/dist/utils/hooks/usePrint.js +1 -1
  56. package/dist/utils/hooks/useScrollToPage.js +1 -1
  57. package/dist/utils/hooks/useSearch.js +1 -1
  58. package/dist/utils/hooks/useThumbnail.js +1 -1
  59. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  60. package/package.json +1 -1
  61. package/dist/floating-ui.react-dom-e6d5fe8f.js +0 -1327
  62. package/dist/index-316854c1.js +0 -2299
  63. package/dist/index-71898eb9.js +0 -139
@@ -1,18 +1,18 @@
1
- import { jsx as s, jsxs as O, Fragment as Ae } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as O, Fragment as ze } from "react/jsx-runtime";
2
2
  import * as V from "react";
3
- import { useRef as W, useEffect as z, useCallback as x, useState as H, createContext as We, useContext as He, useMemo as A, forwardRef as $e, useImperativeHandle as Zt, createElement as Me, PureComponent as Hn, Component as $n, memo as Gn } from "react";
3
+ import { useRef as W, useEffect as z, useCallback as x, useState as H, createContext as He, useContext as $e, useMemo as A, forwardRef as Ge, useImperativeHandle as Zt, createElement as Ee, PureComponent as Hn, Component as $n, memo as Gn } from "react";
4
4
  import { ChevronUpIcon as Re } from "./components/icons/ChevronUpIcon.js";
5
5
  import { UIButton as X } from "./components/ui/Button.js";
6
6
  import { UIInput as jt } from "./components/ui/Input.js";
7
- import { useScrollModeContext as Te } from "./contexts/ScrollModeContext.js";
8
- import { useDocumentContext as re } from "./contexts/RPDocumentContext.js";
7
+ import { useScrollModeContext as Se } from "./contexts/ScrollModeContext.js";
8
+ import { useDocumentContext as Y } from "./contexts/RPDocumentContext.js";
9
9
  import "./contexts/DarkModeContext.js";
10
- import { ViewMode as ze, ScrollMode as J, AnnotationSubType as at, SelectionMode as Vn, ZoomLevel as Be } from "./utils/types.js";
11
- import { useRotationContext as Ge } from "./contexts/RotationContext.js";
10
+ import { ViewMode as Fe, ScrollMode as J, AnnotationSubType as st, SelectionMode as Vn, ZoomLevel as Ke } from "./utils/types.js";
11
+ import { useRotationContext as Ve } from "./contexts/RotationContext.js";
12
12
  import { useLayerContext as Un } from "./contexts/LayerContext.js";
13
- import { useZoomContext as Ve } from "./contexts/ZoomContext.js";
14
- import { useViewModeContext as Ue } from "./contexts/ViewModeContext.js";
15
- import { useVirtualScrollContext as qe } from "./contexts/VirtualScrollContext.js";
13
+ import { useZoomContext as Ue } from "./contexts/ZoomContext.js";
14
+ import { useViewModeContext as qe } from "./contexts/ViewModeContext.js";
15
+ import { useVirtualScrollContext as Ze } from "./contexts/VirtualScrollContext.js";
16
16
  import { useVirtualGridContext as Bt } from "./contexts/VirtualGridContext.js";
17
17
  import { useScrollStateContext as Kt } from "./contexts/ScrollStateContext.js";
18
18
  import { useSelectionModeContext as qn } from "./contexts/SelectionModeContext.js";
@@ -20,28 +20,28 @@ import { useInitialStateContext as Zn } from "./contexts/InitialStateContext.js"
20
20
  import { useFullScreenContext as jn } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
- import { renderPage as st } from "./utils/renderPage.js";
23
+ import { renderPage as it } from "./utils/renderPage.js";
24
24
  import { highlightMatches as Xt, findMatches as Bn, resetDivs as Kn } from "./utils/highlight.js";
25
25
  import * as Jt from "pdfjs-dist";
26
26
  import { PixelsPerInch as Xn, AnnotationMode as Jn, RenderingCancelledException as Yn, AnnotationLayer as Qn } from "pdfjs-dist";
27
- import { usePageDimension as ht } from "./utils/hooks/usePageDimension.js";
28
- import { useLayoutContainer as Le } from "./contexts/LayoutContainerContext.js";
27
+ import { usePageDimension as mt } from "./utils/hooks/usePageDimension.js";
28
+ import { useLayoutContainer as Ne } from "./contexts/LayoutContainerContext.js";
29
29
  import "./components/RPConfig.js";
30
30
  import { ThumbnailIcon as er } from "./components/icons/Thumbnail.js";
31
- import { c as ee } from "./clsx-0c6e471a.js";
32
- import { LoaderIcon as mt } from "./components/icons/LoaderIcon.js";
31
+ import { c as te } from "./clsx-0c6e471a.js";
32
+ import { LoaderIcon as Le } from "./components/icons/LoaderIcon.js";
33
33
  import { useInfiniteScroll as tr } from "./utils/hooks/useInfiniteScroll.js";
34
34
  import { RPSplitter as nr } from "./components/layout/sidebar/RPSplitter.js";
35
35
  import { useToolbarComponentContext as de, ToolbarComponentProvider as rr } from "./contexts/ToolbarComponentContext.js";
36
36
  import { useIconContext as ce, IconProvider as or } from "./contexts/IconContext.js";
37
- import te from "./components/ui/RPTooltip.js";
37
+ import ne from "./components/ui/RPTooltip.js";
38
38
  import { c as be, C as ar } from "./Container-fdb0a71f.js";
39
39
  import { WrapperLayout as sr } from "./components/layout/WrapperLayout.js";
40
40
  import { RPDropFileZone as ir } from "./components/RPDropFileZone.js";
41
41
  import { useViewportContext as _e, ViewportProvider as cr } from "./contexts/ViewportContext.js";
42
42
  import "./contexts/ThemeContext.js";
43
43
  import { SimpleLinkService as lr } from "./utils/link_service.js";
44
- import { dateFormatter as it } from "./utils/dateFormatter.js";
44
+ import { dateFormatter as ct } from "./utils/dateFormatter.js";
45
45
  import { sanitizeExternalUrl as ur } from "./utils/sanitizeExternalUrl.js";
46
46
  import { useWatermark as dr } from "./utils/hooks/useWatermark.js";
47
47
  import { useMousePressed as pr } from "./utils/hooks/useMousePressed.js";
@@ -54,12 +54,12 @@ import { FileUploadTool as Yt } from "./components/layout/toolbar/FileUploadTool
54
54
  import { DarkModeTool as vr } from "./components/layout/toolbar/DarkModeTool.js";
55
55
  import { ThreeDotIcon as _r } from "./components/icons/ThreeDotIcon.js";
56
56
  import { UIDropDown as ft } from "./components/ui/DropDown.js";
57
- import { u as gt, a as Ne, c as xe, b as vt, d as wr, e as br, h as Cr, f as Pr, F as Tr, D as Sr, g as yr, G as Fe } from "./index-316854c1.js";
58
- import { c as Ir, e as xr, b as Rr } from "./index-71898eb9.js";
59
- import { e as Ke } from "./floating-ui.react-dom-e6d5fe8f.js";
57
+ import { c as wr, a as gt, P as Me, b as xe, d as vt, i as br, k as Cr, u as Pr } from "./index-3dff3fa8.js";
58
+ import { D as Tr, u as Xe } from "./index-4f17fe4d.js";
59
+ import { a as Sr, h as yr, u as Ir, F as xr, b as Rr, G as ke } from "./index-1db49c1a.js";
60
60
  import { CloseIcon as Qt } from "./components/icons/CloseIcon.js";
61
- import { PropertyItem as Lr } from "./components/layout/toolbar/PropertyItem.js";
62
- import { useOtherToolContext as Nr, OtherToolProvider as Mr } from "./contexts/OtherToolContext.js";
61
+ import { PropertyItem as Nr } from "./components/layout/toolbar/PropertyItem.js";
62
+ import { useOtherToolContext as Lr, OtherToolProvider as Mr } from "./contexts/OtherToolContext.js";
63
63
  import { DocumentProperties as Er } from "./components/layout/toolbar/DocumentProperties.js";
64
64
  import { RotateTool as Or } from "./components/layout/toolbar/RotateTool.js";
65
65
  import { ScrollModeTool as Dr } from "./components/layout/toolbar/ScrollModeTool.js";
@@ -78,39 +78,41 @@ import { SearchIcon as $r } from "./components/icons/SearchIcon.js";
78
78
  import { UICheckbox as xt } from "./components/ui/Checkbox.js";
79
79
  import { ClearIcon as Gr } from "./components/icons/ClearIcon.js";
80
80
  import './assets/RPDefaultLayout.css';const nn = () => {
81
- const { viewMode: e } = Ue(), { scrollMode: t } = Te(), { virtualScrollRef: n, pageScrollElementRef: r } = qe(), { setFocusedPage: o } = oe(), a = W(), { columnCount: c } = Bt(), i = ht(), l = W(t), p = W(e);
81
+ const { viewMode: e } = qe(), { scrollMode: t } = Se(), { virtualScrollRef: n, pageScrollElementRef: r } = Ze(), { setFocusedPage: o } = oe(), s = W(), { columnCount: c } = Bt(), i = mt(), l = W(t), p = W(e), m = W(c);
82
82
  z(() => {
83
- n != null && n.scrollToItem && (a.current = n);
83
+ n != null && n.scrollToItem && (s.current = n);
84
84
  }, [n]);
85
- const h = x(
86
- (u) => {
85
+ const f = x(
86
+ (h) => {
87
87
  if (!r)
88
88
  return;
89
- const m = Math.ceil(u / 2) * 2 - 1;
90
- u === m + 1 ? r.scrollTo({ left: i.widths[m], top: 0 }) : r.scrollTo({ left: 0, top: 0 });
89
+ const g = Math.ceil(h / 2) * 2 - 1;
90
+ h === g + 1 ? r.scrollTo({ left: i.widths[g], top: 0 }) : r.scrollTo({ left: 0, top: 0 });
91
91
  },
92
92
  [r, i]
93
93
  );
94
94
  return z(() => {
95
95
  l.current = t, p.current = e;
96
- }, [t, e]), { scrollToPage: x(
97
- (u, m = "start") => {
98
- const g = u - 1;
99
- let _ = g, v = 0;
100
- if (p.current === ze.DUAL_PAGE && l.current === J.PAGE_SCROLLING) {
101
- h(u);
96
+ }, [t, e]), z(() => {
97
+ m.current = c;
98
+ }, [c]), { scrollToPage: x(
99
+ (h, g = "start") => {
100
+ const _ = h - 1;
101
+ let v = _, C = 0;
102
+ if (p.current === Fe.DUAL_PAGE && l.current === J.PAGE_SCROLLING) {
103
+ f(h);
102
104
  return;
103
105
  }
104
106
  if (l.current === J.PAGE_SCROLLING) {
105
- o(u);
107
+ o(h);
106
108
  return;
107
109
  }
108
- a.current && (l.current === J.HORIZONTAL_SCROLLING ? v = g : p.current === ze.DUAL_PAGE && (v = g % 2, _ = Math.floor(g / 2)), a.current.scrollToItem({ rowIndex: _, columnIndex: v, align: m }));
110
+ s.current && (l.current === J.HORIZONTAL_SCROLLING ? C = _ : p.current === Fe.DUAL_PAGE && (C = _ % 2, v = Math.floor(_ / 2)), s.current.scrollToItem({ rowIndex: v, columnIndex: C, align: g }));
109
111
  },
110
- [c, h, o]
112
+ [f, o]
111
113
  ) };
112
114
  }, Vr = (e = 1) => {
113
- const [t, n] = H(e), [r, o] = H(0), { scrollToPage: a } = nn(), c = W(1), { isScrolling: i } = Kt(), { viewMode: l } = Ue(), { scrollMode: p } = Te(), h = fr(t, 100), f = x(
115
+ const [t, n] = H(e), [r, o] = H(0), { scrollToPage: s } = nn(), c = W(1), { isScrolling: i } = Kt(), { viewMode: l } = qe(), { scrollMode: p } = Se(), m = fr(t, 100), f = x(
114
116
  (v) => {
115
117
  if (!/^[0-9]*$/g.test(v.toString()) || !v)
116
118
  return { success: !1, currentPage: c.current };
@@ -118,29 +120,29 @@ import './assets/RPDefaultLayout.css';const nn = () => {
118
120
  return S < 0 || S > r ? { success: !1, currentPage: c.current } : (n(S), c.current = S, { success: !0, currentPage: +v });
119
121
  },
120
122
  [r]
121
- ), u = x(f, [f]), m = x(
123
+ ), u = x(f, [f]), h = x(
122
124
  (v) => {
123
125
  const C = f(v);
124
- return C.success && (i.current = !0, a(C.currentPage)), C;
126
+ return C.success && (i.current = !0, s(C.currentPage)), C;
125
127
  },
126
- [f, a]
128
+ [f, s]
127
129
  ), g = x(() => {
128
130
  let v = t - 1;
129
- m(v);
130
- }, [m, t, l, p]), _ = x(() => {
131
+ h(v);
132
+ }, [h, t, l, p]), _ = x(() => {
131
133
  let v = t + 1;
132
- m(v);
133
- }, [m, t, l, p]);
134
+ h(v);
135
+ }, [h, t, l, p]);
134
136
  return {
135
- focusedPage: h,
137
+ focusedPage: m,
136
138
  totalPages: r,
137
139
  setFocusedPage: u,
138
140
  setTotalPages: o,
139
141
  nextPage: _,
140
142
  prevPage: g,
141
- goToPage: m
143
+ goToPage: h
142
144
  };
143
- }, rn = We({
145
+ }, rn = He({
144
146
  focusedPage: 0,
145
147
  setFocusedPage: (e) => {
146
148
  },
@@ -153,23 +155,23 @@ import './assets/RPDefaultLayout.css';const nn = () => {
153
155
  nextPage: () => {
154
156
  }
155
157
  }), oe = () => {
156
- const e = He(rn);
157
- return typeof (e == null ? void 0 : e.focusedPage) > "u" && gr.error("Please use this hooks inside children component of RPController or RPLayout"), e;
158
+ const e = $e(rn);
159
+ return typeof (e == null ? void 0 : e.focusedPage) > "u" && gr.error("Please use this hooks inside children component of RPProvider"), e;
158
160
  }, Us = ({ children: e }) => {
159
- const { initialPage: t = 1 } = Zn(), { pdf: n } = re(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: i, nextPage: l, prevPage: p } = Vr(t);
161
+ const { initialPage: t = 1 } = Zn(), { pdf: n } = Y(), { focusedPage: r, totalPages: o, setFocusedPage: s, setTotalPages: c, goToPage: i, nextPage: l, prevPage: p } = Vr(t);
160
162
  return z(() => {
161
163
  n != null && n.numPages && c(n.numPages);
162
164
  }, [n, c, o, t]), z(() => {
163
165
  requestAnimationFrame(() => {
164
166
  i(t);
165
167
  });
166
- }, [i, t]), /* @__PURE__ */ s(
168
+ }, [i, t]), /* @__PURE__ */ a(
167
169
  rn.Provider,
168
170
  {
169
171
  value: {
170
172
  focusedPage: r,
171
173
  totalPages: o,
172
- setFocusedPage: a,
174
+ setFocusedPage: s,
173
175
  setTotalPages: c,
174
176
  nextPage: l,
175
177
  prevPage: p,
@@ -180,36 +182,36 @@ import './assets/RPDefaultLayout.css';const nn = () => {
180
182
  );
181
183
  };
182
184
  const Ur = () => {
183
- const { pdf: e, pages: t } = re(), [n, r] = H({
185
+ const { pdf: e, pages: t } = Y(), [n, r] = H({
184
186
  loadedPages: 0,
185
187
  totalPages: 0,
186
188
  percentage: 0
187
- }), [o, a] = H(!1), [c, i] = H(!1), [l, p] = H(null), h = W(!1);
189
+ }), [o, s] = H(!1), [c, i] = H(!1), [l, p] = H(null), m = W(!1);
188
190
  z(() => {
189
- h.current;
190
- }, [h]);
191
+ m.current;
192
+ }, [m]);
191
193
  const f = x(() => {
192
194
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
193
195
  const P = document.querySelector(".rp-print-zone");
194
196
  P && P.remove();
195
197
  }, []), u = x(() => {
196
- h.current = !1, a(!1), i(!1), p(null), r({
198
+ m.current = !1, s(!1), i(!1), p(null), r({
197
199
  loadedPages: 0,
198
200
  totalPages: 0,
199
201
  percentage: 0
200
202
  });
201
- }, []), m = () => {
202
- h.current = !0;
203
+ }, []), h = () => {
204
+ m.current = !0;
203
205
  }, g = async ({
204
206
  scratchCanvas: P,
205
- pdfDocument: L,
207
+ pdfDocument: N,
206
208
  pageNumber: d,
207
209
  viewerPdfPage: b,
208
210
  printResolution: w,
209
211
  optionalContentConfigPromise: T,
210
212
  printAnnotationStoragePromise: E
211
213
  }) => {
212
- if (h.current) {
214
+ if (m.current) {
213
215
  u();
214
216
  return;
215
217
  }
@@ -218,14 +220,14 @@ const Ur = () => {
218
220
  const y = P.getContext("2d");
219
221
  y.save(), y.fillStyle = "rgb(255, 255, 255)", y.fillRect(0, 0, P.width, P.height), y.restore();
220
222
  const [D, R] = await Promise.all([
221
- L.getPage(d),
223
+ N.getPage(d),
222
224
  E
223
225
  ]);
224
- if (h.current) {
226
+ if (m.current) {
225
227
  u();
226
228
  return;
227
229
  }
228
- const N = {
230
+ const L = {
229
231
  canvasContext: y,
230
232
  transform: [I, 0, 0, I, 0, 0],
231
233
  viewport: D.getViewport({ scale: 1, rotation: b.rotation }),
@@ -235,41 +237,41 @@ const Ur = () => {
235
237
  printAnnotationStorage: R
236
238
  };
237
239
  try {
238
- return D.render(N).promise;
240
+ return D.render(L).promise;
239
241
  } catch (M) {
240
242
  throw M instanceof Yn || console.error(M), M;
241
243
  }
242
244
  }, _ = x(() => {
243
245
  const P = window.print;
244
- return new Promise((L) => {
246
+ return new Promise((N) => {
245
247
  const d = (T) => {
246
248
  setTimeout(() => {
247
249
  P.call(window), setTimeout(() => T(), 20);
248
250
  }, 0);
249
251
  };
250
252
  if (document.querySelector(".rp-print-zone")) {
251
- d(L);
253
+ d(N);
252
254
  return;
253
255
  }
254
256
  const w = new MutationObserver(() => {
255
- document.querySelector(".rp-print-zone") && (d(L), w.disconnect());
257
+ document.querySelector(".rp-print-zone") && (d(N), w.disconnect());
256
258
  });
257
259
  w.observe(document.body, { childList: !0, subtree: !0 });
258
260
  });
259
261
  }, []), v = async (P) => {
260
- const L = document.createElement("img"), d = document.createElement("div");
262
+ const N = document.createElement("img"), d = document.createElement("div");
261
263
  return d.classList.add("rp-print-page"), await new Promise((b, w) => {
262
264
  P.toBlob((T) => {
263
- T ? (L.src = URL.createObjectURL(T), L.onload = () => {
264
- URL.revokeObjectURL(L.src), b();
265
- }, L.onerror = w) : w(new Error("Failed to create blob"));
265
+ T ? (N.src = URL.createObjectURL(T), N.onload = () => {
266
+ URL.revokeObjectURL(N.src), b();
267
+ }, N.onerror = w) : w(new Error("Failed to create blob"));
266
268
  });
267
269
  }).catch(() => {
268
- }), d.appendChild(L), d;
269
- }, C = (P, L) => {
270
+ }), d.appendChild(N), d;
271
+ }, C = (P, N) => {
270
272
  const d = document.createElement("div");
271
273
  d.classList.add("rp-print-zone");
272
- const b = document.createElement("style"), w = L.get(1);
274
+ const b = document.createElement("style"), w = N.get(1);
273
275
  if (w) {
274
276
  const { width: T, height: E } = w == null ? void 0 : w.page.getViewport({ scale: 1 });
275
277
  b.innerHTML = `@page { size: ${T}px ${E}px }`;
@@ -279,14 +281,14 @@ const Ur = () => {
279
281
  if (!e)
280
282
  return;
281
283
  u();
282
- const P = document.createElement("canvas"), L = [];
284
+ const P = document.createElement("canvas"), N = [];
283
285
  try {
284
286
  e.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
285
287
  const b = e.getOptionalContentConfig({ intent: "print" }), w = Promise.resolve(
286
288
  e.annotationStorage.print ?? void 0
287
289
  ), T = t.size;
288
290
  for (const [I, y] of t) {
289
- if (h.current) {
291
+ if (m.current) {
290
292
  u();
291
293
  return;
292
294
  }
@@ -299,31 +301,31 @@ const Ur = () => {
299
301
  printResolution: 150,
300
302
  optionalContentConfigPromise: b,
301
303
  printAnnotationStoragePromise: w
302
- }), h.current) {
304
+ }), m.current) {
303
305
  u();
304
306
  return;
305
307
  }
306
308
  const R = await v(P);
307
- L.push(R);
308
- const N = parseFloat((L.length / T * 100).toFixed(2));
309
+ N.push(R);
310
+ const L = parseFloat((N.length / T * 100).toFixed(2));
309
311
  r({
310
312
  loadedPages: I,
311
313
  totalPages: T,
312
- percentage: N
314
+ percentage: L
313
315
  });
314
316
  }
315
- if (h.current) {
317
+ if (m.current) {
316
318
  u();
317
319
  return;
318
320
  }
319
- const E = C(L, t);
320
- document.body.appendChild(E), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await _();
321
+ const E = C(N, t);
322
+ document.body.appendChild(E), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), s(!0), await _();
321
323
  } catch (d) {
322
324
  i(!0), d instanceof Error && p(d);
323
325
  } finally {
324
326
  P.height = 0, P.width = 0;
325
327
  }
326
- }, [e, t, h]);
328
+ }, [e, t, m]);
327
329
  return z(() => {
328
330
  const P = () => {
329
331
  u(), f();
@@ -333,13 +335,13 @@ const Ur = () => {
333
335
  };
334
336
  }, [f, u]), {
335
337
  print: S,
336
- cancel: m,
338
+ cancel: h,
337
339
  progress: n,
338
340
  isComplete: o,
339
341
  isError: c,
340
342
  error: l
341
343
  };
342
- }, on = We({
344
+ }, on = He({
343
345
  print: () => {
344
346
  },
345
347
  cancel: () => {
@@ -357,11 +359,11 @@ const Ur = () => {
357
359
  }
358
360
  }
359
361
  }), qs = ({ children: e }) => {
360
- const [t, n] = H(null), [r, o] = H(null), { print: a, cancel: c, progress: i, isComplete: l, isError: p, error: h } = Ur(), f = x((v) => {
362
+ const [t, n] = H(null), [r, o] = H(null), { print: s, cancel: c, progress: i, isComplete: l, isError: p, error: m } = Ur(), f = x((v) => {
361
363
  v && typeof v == "function" && o(() => v);
362
364
  }, []), u = (v) => {
363
- h && v(h);
364
- }, m = x(
365
+ m && v(m);
366
+ }, h = x(
365
367
  (v) => {
366
368
  n(() => v);
367
369
  },
@@ -379,37 +381,37 @@ const Ur = () => {
379
381
  const g = () => {
380
382
  r && (r(), o(null));
381
383
  }, _ = {
382
- print: a,
384
+ print: s,
383
385
  cancel: c,
384
- setOnProgress: m,
386
+ setOnProgress: h,
385
387
  setOnComplete: f,
386
388
  setOnError: u,
387
389
  progress: i
388
390
  };
389
- return /* @__PURE__ */ s(on.Provider, { value: _, children: e });
391
+ return /* @__PURE__ */ a(on.Provider, { value: _, children: e });
390
392
  }, wt = () => {
391
- const e = He(on);
393
+ const e = $e(on);
392
394
  if (!e)
393
395
  throw new Error("usePrintContext must be used within a PrintProvider");
394
396
  return e;
395
397
  }, qr = () => {
396
- const [e, t] = H({}), { pages: n } = re(), { rotate: r } = Ge(), o = A(() => Object.keys(e).length, [e]), a = x(
398
+ const [e, t] = H({}), { pages: n } = Y(), { rotate: r } = Ve(), o = A(() => Object.keys(e).length, [e]), s = x(
397
399
  (i) => {
398
400
  if (!n.size)
399
401
  return;
400
402
  const l = Array.from(n.values()).slice(0, i).map((f) => {
401
- const { thumbnailViewport: u, scale: m } = yt(f.page, r);
403
+ const { thumbnailViewport: u, scale: h } = yt(f.page, r);
402
404
  return {
403
- scale: m,
405
+ scale: h,
404
406
  page: f.page,
405
407
  loading: !0,
406
408
  viewport: u
407
409
  };
408
410
  }), p = l.reduce((f, u) => (f[u.page.pageNumber] = u, f), {});
409
411
  t(p);
410
- const h = [];
412
+ const m = [];
411
413
  for (const f of l) {
412
- const u = document.createElement("canvas"), m = st(
414
+ const u = document.createElement("canvas"), h = it(
413
415
  f.page,
414
416
  u,
415
417
  f.scale,
@@ -422,21 +424,21 @@ const Ur = () => {
422
424
  loading: !1
423
425
  };
424
426
  });
425
- h.push(m);
427
+ m.push(h);
426
428
  }
427
- Promise.all(h).then((f) => {
429
+ Promise.all(m).then((f) => {
428
430
  const u = f.reduce(
429
- (m, g) => (m[g.page.pageNumber] = g, m),
431
+ (h, g) => (h[g.page.pageNumber] = g, h),
430
432
  {}
431
433
  );
432
- t((m) => ({ ...m, ...u }));
434
+ t((h) => ({ ...h, ...u }));
433
435
  });
434
436
  },
435
437
  [n, r]
436
438
  );
437
439
  z(() => {
438
- a(10);
439
- }, [a]);
440
+ s(10);
441
+ }, [s]);
440
442
  const c = x(
441
443
  (i) => {
442
444
  if (!n)
@@ -444,8 +446,8 @@ const Ur = () => {
444
446
  const l = n.get(i);
445
447
  if (!l)
446
448
  return;
447
- t((h) => ({
448
- ...h,
449
+ t((m) => ({
450
+ ...m,
449
451
  [i]: {
450
452
  loading: !0,
451
453
  page: l.page,
@@ -454,23 +456,23 @@ const Ur = () => {
454
456
  }
455
457
  }));
456
458
  const p = document.createElement("canvas");
457
- st(l.page, p, l.thumbnailScale, r).promise.then(() => {
458
- const h = p.toDataURL(), { thumbnailViewport: f, scale: u } = yt(l.page, r);
459
+ it(l.page, p, l.thumbnailScale, r).promise.then(() => {
460
+ const m = p.toDataURL(), { thumbnailViewport: f, scale: u } = yt(l.page, r);
459
461
  return {
460
462
  scale: u,
461
- thumbnailSrc: h,
463
+ thumbnailSrc: m,
462
464
  page: l.page,
463
465
  loading: !1,
464
466
  viewport: f
465
467
  };
466
- }).then((h) => {
467
- t((f) => ({ ...f, [i]: h }));
468
+ }).then((m) => {
469
+ t((f) => ({ ...f, [i]: m }));
468
470
  });
469
471
  },
470
472
  [n, r]
471
473
  );
472
- return { thumbnailPages: e, addPage: c, addToPage: a, thumbnailLength: o };
473
- }, an = We({
474
+ return { thumbnailPages: e, addPage: c, addToPage: s, thumbnailLength: o };
475
+ }, an = He({
474
476
  thumbnailPages: {},
475
477
  addPage: (e) => {
476
478
  },
@@ -480,29 +482,29 @@ const Ur = () => {
480
482
  setActive: (e) => {
481
483
  },
482
484
  active: !1
483
- }), sn = () => He(an), Zs = ({
485
+ }), sn = () => $e(an), Zs = ({
484
486
  children: e,
485
487
  initialThumbnailsVisible: t
486
488
  }) => {
487
- const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = qr(), [c, i] = H(t);
488
- return /* @__PURE__ */ s(
489
+ const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: s } = qr(), [c, i] = H(t);
490
+ return /* @__PURE__ */ a(
489
491
  an.Provider,
490
492
  {
491
- value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a, active: c, setActive: i },
493
+ value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: s, active: c, setActive: i },
492
494
  children: e
493
495
  }
494
496
  );
495
497
  }, Zr = (e = {}, t = "") => {
496
- const [n, r] = H(t), [o, a] = H(!1), { pdf: c, pages: i } = re(), l = ht(), p = W(!n), { currentZoom: h } = Ve(), [f, u] = H([]), { setFocusedPage: m } = oe(), [g, _] = H(0), { pageScrollElementRef: v, virtualScrollableElementRef: C } = qe(), { scrollMode: S } = Te(), [P, L] = H(null), d = W({}), b = A(() => g === 0 ? null : f[g - 1], [g, f]), w = A(() => f.length, [f]);
498
+ const [n, r] = H(t), [o, s] = H(!1), { pdf: c, pages: i } = Y(), l = mt(), p = W(!n), { currentZoom: m } = Ue(), [f, u] = H([]), { setFocusedPage: h } = oe(), [g, _] = H(0), { pageScrollElementRef: v, virtualScrollableElementRef: C } = Ze(), { scrollMode: S } = Se(), [P, N] = H(null), d = W({}), b = A(() => g === 0 ? null : f[g - 1], [g, f]), w = A(() => f.length, [f]);
497
499
  z(() => {
498
500
  if (!b || !i)
499
501
  return;
500
502
  const y = C || v;
501
503
  if (!y)
502
504
  return;
503
- const D = i.get(b.page), R = y.clientHeight / 2, N = y.clientWidth / 2;
505
+ const D = i.get(b.page), R = y.clientHeight / 2, L = y.clientWidth / 2;
504
506
  let M = 0, F = 0;
505
- S === J.PAGE_SCROLLING && m(b.page), S === J.VERTICAL_SCROLLING && (M = l.heights.slice(0, b.page - 1).reduce((U, Z) => U + Z, 0)), S === J.HORIZONTAL_SCROLLING && (F = l.widths.slice(0, b.page - 1).reduce((U, Z) => U + Z, 0));
507
+ S === J.PAGE_SCROLLING && h(b.page), S === J.VERTICAL_SCROLLING && (M = l.heights.slice(0, b.page - 1).reduce((U, Z) => U + Z, 0)), S === J.HORIZONTAL_SCROLLING && (F = l.widths.slice(0, b.page - 1).reduce((U, Z) => U + Z, 0));
506
508
  let $;
507
509
  if (!D)
508
510
  return;
@@ -512,19 +514,19 @@ const Ur = () => {
512
514
  textContentSource: q,
513
515
  container: document.createElement("div")
514
516
  }), $.render().then(() => {
515
- const U = $.textDivs[b.start.idx], [Z] = Xt([b], q, $.textDivs), se = l.widths[b.page - 1], pe = l.heights[b.page - 1], j = document.createElement("div"), Y = document.createElement("div");
516
- U.style.position = "absolute", U.style.color = "transparent", Y.style.position = "absolute", Y.style.top = "0", Y.style.setProperty("--scale-factor", `${h}`), j.style.position = "relative", j.style.width = `${se}px`, j.style.height = `${pe}px`, j.style.zIndex = "-1", j.appendChild(U), Y.appendChild(j), document.body.prepend(Y);
517
+ const U = $.textDivs[b.start.idx], [Z] = Xt([b], q, $.textDivs), se = l.widths[b.page - 1], pe = l.heights[b.page - 1], j = document.createElement("div"), Q = document.createElement("div");
518
+ U.style.position = "absolute", U.style.color = "transparent", Q.style.position = "absolute", Q.style.top = "0", Q.style.setProperty("--scale-factor", `${m}`), j.style.position = "relative", j.style.width = `${se}px`, j.style.height = `${pe}px`, j.style.zIndex = "-1", j.appendChild(U), Q.appendChild(j), document.body.prepend(Q);
517
519
  const he = Z.element.getBoundingClientRect(), we = M + +he.top - R + he.height / 2, G = {
518
- left: F + +he.left - N + he.width / 2,
520
+ left: F + +he.left - L + he.width / 2,
519
521
  top: we
520
522
  };
521
- document.body.removeChild(Y), y.scrollTo({
523
+ document.body.removeChild(Q), y.scrollTo({
522
524
  ...G
523
525
  });
524
526
  });
525
527
  }, [
526
528
  i,
527
- m,
529
+ h,
528
530
  l,
529
531
  b,
530
532
  S,
@@ -539,11 +541,11 @@ const Ur = () => {
539
541
  if (!y)
540
542
  return {};
541
543
  const D = y.numPages, R = {};
542
- for (let N = 1; N <= D; N++) {
544
+ for (let L = 1; L <= D; L++) {
543
545
  if (p.current)
544
546
  throw "close pop over";
545
- const M = await y.getPage(N);
546
- R[N.toString()] = await M.getTextContent();
547
+ const M = await y.getPage(L);
548
+ R[L.toString()] = await M.getTextContent();
547
549
  }
548
550
  return R;
549
551
  }, []);
@@ -552,21 +554,21 @@ const Ur = () => {
552
554
  p.current = !0, u([]), _(0);
553
555
  return;
554
556
  }
555
- p.current = !1, a(!0), u([]), _(0), I(c).then((y) => {
557
+ p.current = !1, s(!0), u([]), _(0), I(c).then((y) => {
556
558
  d.current = y;
557
- const R = Object.keys(y).reduce((N, M) => {
559
+ const R = Object.keys(y).reduce((L, M) => {
558
560
  const F = Bn(
559
561
  [n],
560
562
  y[M],
561
563
  Number(M) - 1,
562
564
  e
563
565
  ).map(($, q) => ({ ...$, page: Number(M), pageMatchIdx: q }));
564
- return [...N, ...F];
566
+ return [...L, ...F];
565
567
  }, []);
566
568
  u(R), _(R.length ? 1 : 0);
567
569
  }).catch(() => {
568
570
  u([]), _(0);
569
- }).finally(() => a(!1));
571
+ }).finally(() => s(!1));
570
572
  }, [n, I, c, e]), {
571
573
  search: n,
572
574
  setSearch: r,
@@ -578,9 +580,9 @@ const Ur = () => {
578
580
  nextMatch: T,
579
581
  prevMatch: E,
580
582
  currentMatchElement: P,
581
- setCurrentMatchElement: L
583
+ setCurrentMatchElement: N
582
584
  };
583
- }, cn = We({
585
+ }, cn = He({
584
586
  search: "",
585
587
  setSearch: (e) => {
586
588
  },
@@ -604,39 +606,39 @@ const Ur = () => {
604
606
  }) => {
605
607
  const [n, r] = H({}), {
606
608
  loading: o,
607
- setSearch: a,
609
+ setSearch: s,
608
610
  totalMatches: c,
609
611
  currentMatchPosition: i,
610
612
  currentMatch: l,
611
613
  search: p,
612
- matches: h,
614
+ matches: m,
613
615
  nextMatch: f,
614
616
  prevMatch: u,
615
- currentMatchElement: m,
617
+ currentMatchElement: h,
616
618
  setCurrentMatchElement: g
617
619
  } = Zr(n, t);
618
- return /* @__PURE__ */ s(
620
+ return /* @__PURE__ */ a(
619
621
  cn.Provider,
620
622
  {
621
623
  value: {
622
624
  searchOptions: n,
623
625
  setSearchOptions: r,
624
626
  loading: o,
625
- setSearch: a,
627
+ setSearch: s,
626
628
  totalMatches: c,
627
629
  currentMatchPosition: i,
628
630
  currentMatch: l,
629
631
  nextMatch: f,
630
632
  prevMatch: u,
631
633
  search: p,
632
- matches: h,
633
- currentMatchElement: m,
634
+ matches: m,
635
+ currentMatchElement: h,
634
636
  setCurrentMatchElement: g
635
637
  },
636
638
  children: e
637
639
  }
638
640
  );
639
- }, ln = () => He(cn), le = {
641
+ }, ln = () => $e(cn), le = {
640
642
  "rp-pages": "_rp-pages_34orh_1",
641
643
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_34orh_7",
642
644
  "rp-pages-container": "_rp-pages-container_34orh_11",
@@ -644,35 +646,35 @@ const Ur = () => {
644
646
  "rp-viewer": "_rp-viewer_34orh_22",
645
647
  "rp-cursor-grab": "_rp-cursor-grab_34orh_27",
646
648
  "rp-cursor-grabbing": "_rp-cursor-grabbing_34orh_35"
647
- }, Xe = {
649
+ }, Je = {
648
650
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
649
651
  "rp-page": "_rp-page_h7a2q_1",
650
652
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
651
653
  }, jr = (e) => {
652
- const { pageNumber: t, onLoaded: n, onLoading: r } = e, o = W(null), { pages: a } = re(), { rotate: c } = Ge(), i = W(), { currentZoom: l } = Ve();
654
+ const { pageNumber: t, onLoaded: n, onLoading: r } = e, o = W(null), { pages: s } = Y(), { rotate: c } = Ve(), i = W(), { currentZoom: l } = Ue();
653
655
  return z(() => {
654
- if (!a || l === 0)
656
+ if (!s || l === 0)
655
657
  return;
656
- const p = a.get(t);
658
+ const p = s.get(t);
657
659
  if (o.current && p) {
658
- const h = o.current;
659
- h.hidden = !0;
660
+ const m = o.current;
661
+ m.hidden = !0;
660
662
  const f = i.current;
661
- f && f.cancel(), r && r(), i.current = st(p.page, h, l, c), i.current.promise.then(() => {
662
- h.hidden = !1;
663
+ f && f.cancel(), r && r(), i.current = it(p.page, m, l, c), i.current.promise.then(() => {
664
+ m.hidden = !1;
663
665
  }).catch((u) => {
664
666
  }).finally(() => {
665
667
  n && n();
666
668
  });
667
669
  }
668
- }, [a, t, c, l, r, n]), /* @__PURE__ */ s("canvas", { "data-rp": `page-${t}-canvas`, ref: o });
669
- }, Je = {
670
+ }, [s, t, c, l, r, n]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${t}-canvas`, ref: o });
671
+ }, Ye = {
670
672
  "rp-text-layer": "_rp-text-layer_1mgyz_1",
671
673
  "rp-text-layer-text": "_rp-text-layer-text_1mgyz_9"
672
674
  }, Br = (e) => {
673
- const { pageNumber: t } = e, { pages: n } = re(), r = W(null), { matches: o, currentMatch: a, setCurrentMatchElement: c } = ln(), [i, l] = H(
675
+ const { pageNumber: t } = e, { pages: n } = Y(), r = W(null), { matches: o, currentMatch: s, setCurrentMatchElement: c } = ln(), [i, l] = H(
674
676
  []
675
- ), p = W(), h = W(), f = W(), u = A(() => o.filter((g) => g.pageIndex === t - 1), [o, t]), m = x(
677
+ ), p = W(), m = W(), f = W(), u = A(() => o.filter((g) => g.pageIndex === t - 1), [o, t]), h = x(
676
678
  (g, _, v = !1) => {
677
679
  if (v && Kn(g, _), !u.length) {
678
680
  f.current = void 0, l([]);
@@ -685,16 +687,16 @@ const Ur = () => {
685
687
  );
686
688
  return z(() => {
687
689
  var v;
688
- if ((v = f.current) == null || v.classList.remove("selected"), !i.length || !a || a.pageIndex !== t - 1)
690
+ if ((v = f.current) == null || v.classList.remove("selected"), !i.length || !s || s.pageIndex !== t - 1)
689
691
  return;
690
692
  const g = u.findIndex(
691
- (C) => JSON.stringify(C) === JSON.stringify(a)
693
+ (C) => JSON.stringify(C) === JSON.stringify(s)
692
694
  );
693
695
  if (g === -1)
694
696
  return;
695
697
  const _ = i.find((C) => C.index === g);
696
698
  _ && (f.current = _.element, c(_.element), _.element.classList.add("selected"));
697
- }, [a, i, u]), z(() => {
699
+ }, [s, i, u]), z(() => {
698
700
  const g = n.get(t);
699
701
  if (!(!g || !r.current))
700
702
  return p.current && p.current.cancel(), g.page.getTextContent().then((_) => {
@@ -703,14 +705,14 @@ const Ur = () => {
703
705
  viewport: v,
704
706
  textContentSource: _,
705
707
  container: r.current
706
- }), h.current = _, r.current && (r.current.innerText = ""), p.current.render();
708
+ }), m.current = _, r.current && (r.current.innerText = ""), p.current.render();
707
709
  }).then(() => {
708
710
  var C;
709
711
  [].slice.call(r.current.children).forEach((S) => {
710
- S.classList.add(Je["rp-text-layer-text"]);
712
+ S.classList.add(Ye["rp-text-layer-text"]);
711
713
  });
712
714
  const v = (C = p.current) == null ? void 0 : C.textDivs;
713
- v && h.current && m(h.current, v);
715
+ v && m.current && h(m.current, v);
714
716
  }).catch(() => {
715
717
  }), () => {
716
718
  var _;
@@ -719,15 +721,15 @@ const Ur = () => {
719
721
  }, [n, t]), z(() => {
720
722
  var v;
721
723
  [].slice.call(r.current.children).forEach((C) => {
722
- C.classList.add(Je["rp-text-layer-text"]);
724
+ C.classList.add(Ye["rp-text-layer-text"]);
723
725
  });
724
726
  const _ = (v = p.current) == null ? void 0 : v.textDivs;
725
- _ && h.current && m(h.current, _, !0);
726
- }, [m]), /* @__PURE__ */ s(
727
+ _ && m.current && h(m.current, _, !0);
728
+ }, [h]), /* @__PURE__ */ a(
727
729
  "div",
728
730
  {
729
731
  "data-rp": `page-${t}-textLayer`,
730
- className: Je["rp-text-layer"],
732
+ className: Ye["rp-text-layer"],
731
733
  ref: r
732
734
  }
733
735
  );
@@ -735,13 +737,13 @@ const Ur = () => {
735
737
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
736
738
  }, un = ["click", "dblclick", "mouseover", "input", "change"];
737
739
  let Xr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
738
- const ct = /* @__PURE__ */ new Map(), dn = (e, t) => `${e.loadingTask.docId}___${t.num}R${t.gen === 0 ? "" : t.gen}`;
740
+ const lt = /* @__PURE__ */ new Map(), dn = (e, t) => `${e.loadingTask.docId}___${t.num}R${t.gen === 0 ? "" : t.gen}`;
739
741
  function Jr(e, t) {
740
742
  const n = dn(e, t);
741
- return ct.has(n) ? ct.get(n) ?? null : null;
743
+ return lt.has(n) ? lt.get(n) ?? null : null;
742
744
  }
743
745
  const Yr = (e, t, n) => {
744
- ct.set(dn(e, t), n);
746
+ lt.set(dn(e, t), n);
745
747
  }, Rt = (e, t) => {
746
748
  switch (t[1].name) {
747
749
  case "XYZ":
@@ -781,8 +783,8 @@ async function pn(e, t) {
781
783
  if (typeof t == "string" ? n = await e.getDestination(t) : n = t, n && typeof n[0] == "object" && n[0] !== null) {
782
784
  const r = n[0], o = Jr(e, r);
783
785
  if (o === null) {
784
- const a = await e.getPageIndex(r);
785
- return Yr(e, r, a), await pn(e, n);
786
+ const s = await e.getPageIndex(r);
787
+ return Yr(e, r, s), await pn(e, n);
786
788
  } else
787
789
  return Rt(o, n);
788
790
  } else
@@ -790,7 +792,7 @@ async function pn(e, t) {
790
792
  }
791
793
  function Qr(e) {
792
794
  const { id: t, url: n, unsafeUrl: r } = e;
793
- new MutationObserver((a, c) => {
795
+ new MutationObserver((s, c) => {
794
796
  const i = document.querySelector(`[data-annotation-id="${t}"]`);
795
797
  if (i) {
796
798
  const l = i.querySelector("a"), p = ur((n || r) ?? "", "");
@@ -811,7 +813,7 @@ const eo = (e) => {
811
813
  if (i)
812
814
  try {
813
815
  const { dateObj: l } = JSON.parse(i);
814
- c.textContent = it(l);
816
+ c.textContent = ct(l);
815
817
  } catch {
816
818
  }
817
819
  });
@@ -825,14 +827,14 @@ const eo = (e) => {
825
827
  attributes: !0
826
828
  // Watch for changes to attributes
827
829
  }), () => r.disconnect();
828
- }, Lt = (e, t, n, r) => {
830
+ }, Nt = (e, t, n, r) => {
829
831
  if (e.type !== "click")
830
832
  return;
831
- const o = e.target, a = o.getAttribute("data-element-id"), c = o.getAttribute("href");
833
+ const o = e.target, s = o.getAttribute("data-element-id"), c = o.getAttribute("href");
832
834
  if (c && c !== "#")
833
835
  return;
834
- const i = t.find((l) => l.id === a);
835
- !i || i.annotationType !== at.Link || i.dest && pn(n, i.dest).then((l) => {
836
+ const i = t.find((l) => l.id === s);
837
+ !i || i.annotationType !== st.Link || i.dest && pn(n, i.dest).then((l) => {
836
838
  r(l);
837
839
  });
838
840
  };
@@ -840,33 +842,33 @@ function to(e, t) {
840
842
  for (const n of un)
841
843
  e.addEventListener(n, t);
842
844
  }
843
- function Nt(e, t) {
845
+ function Lt(e, t) {
844
846
  for (const n of un)
845
847
  e.removeEventListener(n, t);
846
848
  }
847
849
  const no = (e) => {
848
- const { pageNumber: t } = e, n = W(null), { pages: r, pdf: o } = re(), a = W(), [c, i] = H(), { setFocusedPage: l, goToPage: p } = oe(), { scrollMode: h } = Te(), f = A(() => r.get(t), [r, t]), u = A(() => f == null ? void 0 : f.page.getViewport(), [f]);
850
+ const { pageNumber: t } = e, n = W(null), { pages: r, pdf: o } = Y(), s = W(), [c, i] = H(), { setFocusedPage: l, goToPage: p } = oe(), { scrollMode: m } = Se(), f = A(() => r.get(t), [r, t]), u = A(() => f == null ? void 0 : f.page.getViewport(), [f]);
849
851
  z(() => {
850
- a.current && (a.current.div.replaceChildren(), a.current = void 0);
852
+ s.current && (s.current.div.replaceChildren(), s.current = void 0);
851
853
  }, [o]);
852
- const m = A(() => o == null ? void 0 : o.annotationStorage, [o]);
854
+ const h = A(() => o == null ? void 0 : o.annotationStorage, [o]);
853
855
  z(() => {
854
856
  f && f.page.getAnnotations().then((_) => {
855
- a.current = void 0, i(_), n.current && (n.current.innerText = "");
857
+ s.current = void 0, i(_), n.current && (n.current.innerText = "");
856
858
  });
857
859
  }, [f]);
858
860
  const g = x(
859
861
  (_) => {
860
- eo(_), !(!c || !o) && (h === J.PAGE_SCROLLING ? Lt(_, c, o, (v) => l(v.pageIndex + 1)) : Lt(_, c, o, (v) => p(v.pageIndex + 1)));
862
+ eo(_), !(!c || !o) && (m === J.PAGE_SCROLLING ? Nt(_, c, o, (v) => l(v.pageIndex + 1)) : Nt(_, c, o, (v) => p(v.pageIndex + 1)));
861
863
  },
862
- [o, c, p, l, h]
864
+ [o, c, p, l, m]
863
865
  );
864
866
  return z(() => {
865
867
  if (!f || !c)
866
868
  return;
867
869
  const _ = f.page.getViewport();
868
- if (a.current) {
869
- a.current.update({
870
+ if (s.current) {
871
+ s.current.update({
870
872
  viewport: _.clone({ dontFlip: !0 })
871
873
  });
872
874
  return;
@@ -874,15 +876,15 @@ const no = (e) => {
874
876
  for (const C of c) {
875
877
  const { annotationType: S } = C;
876
878
  switch (S) {
877
- case at.Link:
879
+ case st.Link:
878
880
  Qr(C);
879
881
  break;
880
- case at.Widget:
882
+ case st.Widget:
881
883
  break;
882
884
  }
883
885
  }
884
886
  return (async () => {
885
- a.current = new Qn({
887
+ s.current = new Qn({
886
888
  div: n.current,
887
889
  accessibilityManager: void 0,
888
890
  annotationCanvasMap: void 0,
@@ -890,11 +892,11 @@ const no = (e) => {
890
892
  structTreeLayer: void 0,
891
893
  page: f.page,
892
894
  viewport: _.clone({ dontFlip: !0 })
893
- }), n.current && Nt(n.current, g);
895
+ }), n.current && Lt(n.current, g);
894
896
  const C = await (o == null ? void 0 : o.hasJSActions()), S = await (o == null ? void 0 : o.getFieldObjects());
895
- return a.current.render({
897
+ return s.current.render({
896
898
  annotations: c,
897
- annotationStorage: m,
899
+ annotationStorage: h,
898
900
  hasJSActions: C,
899
901
  fieldObjects: S,
900
902
  div: n.current,
@@ -909,9 +911,9 @@ const no = (e) => {
909
911
  })().then(() => {
910
912
  n.current && to(n.current, g);
911
913
  }), () => {
912
- n.current && Nt(n.current, g);
914
+ n.current && Lt(n.current, g);
913
915
  };
914
- }, [o, c, g]), /* @__PURE__ */ s(
916
+ }, [o, c, g]), /* @__PURE__ */ a(
915
917
  "div",
916
918
  {
917
919
  "data-rp": `page-${t}-annotationLayer`,
@@ -920,14 +922,14 @@ const no = (e) => {
920
922
  ref: n
921
923
  }
922
924
  );
923
- }, ro = Array.from({ length: 21 }, (e, t) => Number((t * 0.05).toFixed(2))), bt = $e((e, t) => {
924
- const { pageNumber: n, style: r, onIntersectRatioChange: o, ...a } = e, { pages: c } = re(), { rotate: i } = Ge(), { textLayer: l } = Un(), { currentZoom: p } = Ve(), h = W(c.get(n)), [f, u] = H(!1), m = W(null), [g, _] = H({
925
+ }, ro = Array.from({ length: 21 }, (e, t) => Number((t * 0.05).toFixed(2))), bt = Ge((e, t) => {
926
+ const { pageNumber: n, style: r, onIntersectRatioChange: o, ...s } = e, { pages: c } = Y(), { rotate: i } = Ve(), { textLayer: l } = Un(), { currentZoom: p } = Ue(), m = W(c.get(n)), [f, u] = H(!1), h = W(null), [g, _] = H({
925
927
  width: 0,
926
928
  height: 0
927
929
  });
928
- Zt(t, () => m.current), z(() => {
929
- if (c && (h.current = c.get(n), h.current)) {
930
- const P = h.current.page.getViewport({ scale: p, rotation: i });
930
+ Zt(t, () => h.current), z(() => {
931
+ if (c && (m.current = c.get(n), m.current)) {
932
+ const P = m.current.page.getViewport({ scale: p, rotation: i });
931
933
  _(P);
932
934
  }
933
935
  }, [c, n, i, p]);
@@ -948,28 +950,28 @@ const no = (e) => {
948
950
  }, []);
949
951
  return z(() => {
950
952
  const P = new IntersectionObserver(
951
- (L) => {
952
- o && o(n, L[0].intersectionRatio);
953
+ (N) => {
954
+ o && o(n, N[0].intersectionRatio);
953
955
  },
954
956
  { threshold: ro }
955
957
  );
956
- return m.current && P.observe(m.current), () => {
958
+ return h.current && P.observe(h.current), () => {
957
959
  P.disconnect(), o && o(n, -1);
958
960
  };
959
- }, [o, n, i]), /* @__PURE__ */ s(
961
+ }, [o, n, i]), /* @__PURE__ */ a(
960
962
  "div",
961
963
  {
962
- ref: m,
964
+ ref: h,
963
965
  id: `page-${n}`,
964
966
  "data-rp": `page-${n}`,
965
- ...a,
967
+ ...s,
966
968
  style: {
967
969
  ...r,
968
970
  "--rp-rotate": `${i}deg`,
969
971
  "--rp-page-rotate-translate": `${v}`,
970
972
  "--scale-factor": p
971
973
  },
972
- className: Xe["rp-page-wrapper"],
974
+ className: Je["rp-page-wrapper"],
973
975
  children: /* @__PURE__ */ O(
974
976
  "div",
975
977
  {
@@ -977,40 +979,40 @@ const no = (e) => {
977
979
  width: `${g.width}px`,
978
980
  height: `${g.height}px`
979
981
  },
980
- className: Xe["rp-page"],
982
+ className: Je["rp-page"],
981
983
  children: [
982
- /* @__PURE__ */ s(jr, { onLoading: C, onLoaded: S, pageNumber: n }),
983
- f && /* @__PURE__ */ s("div", { className: Xe["rp-loader-wrapper"], children: /* @__PURE__ */ s(mt, {}) }),
984
- l && /* @__PURE__ */ s(Br, { pageNumber: n }),
985
- /* @__PURE__ */ s(no, { pageNumber: n })
984
+ /* @__PURE__ */ a(jr, { onLoading: C, onLoaded: S, pageNumber: n }),
985
+ f && /* @__PURE__ */ a("div", { className: Je["rp-loader-wrapper"], children: /* @__PURE__ */ a(Le, {}) }),
986
+ l && /* @__PURE__ */ a(Br, { pageNumber: n }),
987
+ /* @__PURE__ */ a(no, { pageNumber: n })
986
988
  ]
987
989
  }
988
990
  )
989
991
  }
990
992
  );
991
993
  });
992
- function lt() {
993
- return lt = Object.assign ? Object.assign.bind() : function(e) {
994
+ function ut() {
995
+ return ut = Object.assign ? Object.assign.bind() : function(e) {
994
996
  for (var t = 1; t < arguments.length; t++) {
995
997
  var n = arguments[t];
996
998
  for (var r in n)
997
999
  ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
998
1000
  }
999
1001
  return e;
1000
- }, lt.apply(null, arguments);
1002
+ }, ut.apply(null, arguments);
1001
1003
  }
1002
1004
  function Mt(e) {
1003
1005
  if (e === void 0)
1004
1006
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1005
1007
  return e;
1006
1008
  }
1007
- function ut(e, t) {
1008
- return ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1009
+ function dt(e, t) {
1010
+ return dt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1009
1011
  return n.__proto__ = r, n;
1010
- }, ut(e, t);
1012
+ }, dt(e, t);
1011
1013
  }
1012
1014
  function oo(e, t) {
1013
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ut(e, t);
1015
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, dt(e, t);
1014
1016
  }
1015
1017
  var Et = Number.isNaN || function(t) {
1016
1018
  return typeof t == "number" && t !== t;
@@ -1026,13 +1028,13 @@ function so(e, t) {
1026
1028
  return !1;
1027
1029
  return !0;
1028
1030
  }
1029
- function Ye(e, t) {
1031
+ function Qe(e, t) {
1030
1032
  t === void 0 && (t = so);
1031
- var n, r = [], o, a = !1;
1033
+ var n, r = [], o, s = !1;
1032
1034
  function c() {
1033
1035
  for (var i = [], l = 0; l < arguments.length; l++)
1034
1036
  i[l] = arguments[l];
1035
- return a && n === this && t(i, r) || (o = e.apply(this, i), a = !0, n = this, r = i), o;
1037
+ return s && n === this && t(i, r) || (o = e.apply(this, i), s = !0, n = this, r = i), o;
1036
1038
  }
1037
1039
  return c;
1038
1040
  }
@@ -1042,7 +1044,7 @@ function Ot(e, t) {
1042
1044
  var n = {};
1043
1045
  for (var r in e)
1044
1046
  if ({}.hasOwnProperty.call(e, r)) {
1045
- if (t.includes(r))
1047
+ if (t.indexOf(r) !== -1)
1046
1048
  continue;
1047
1049
  n[r] = e[r];
1048
1050
  }
@@ -1066,13 +1068,13 @@ function co(e, t) {
1066
1068
  };
1067
1069
  return o;
1068
1070
  }
1069
- var Qe = -1;
1071
+ var et = -1;
1070
1072
  function lo(e) {
1071
- if (e === void 0 && (e = !1), Qe === -1 || e) {
1073
+ if (e === void 0 && (e = !1), et === -1 || e) {
1072
1074
  var t = document.createElement("div"), n = t.style;
1073
- n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), Qe = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
1075
+ n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), et = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
1074
1076
  }
1075
- return Qe;
1077
+ return et;
1076
1078
  }
1077
1079
  var Ce = null;
1078
1080
  function zt(e) {
@@ -1089,15 +1091,15 @@ var uo = 150, po = function(t) {
1089
1091
  t.data;
1090
1092
  var r = t.rowIndex;
1091
1093
  return r + ":" + n;
1092
- }, Ee = null, Oe = null, De = null;
1093
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ee = /* @__PURE__ */ new WeakSet(), Oe = /* @__PURE__ */ new WeakSet(), De = /* @__PURE__ */ new WeakSet());
1094
+ }, Oe = null, De = null, Ae = null;
1095
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Oe = /* @__PURE__ */ new WeakSet(), De = /* @__PURE__ */ new WeakSet(), Ae = /* @__PURE__ */ new WeakSet());
1094
1096
  function ho(e) {
1095
- var t, n = e.getColumnOffset, r = e.getColumnStartIndexForOffset, o = e.getColumnStopIndexForStartIndex, a = e.getColumnWidth, c = e.getEstimatedTotalHeight, i = e.getEstimatedTotalWidth, l = e.getOffsetForColumnAndAlignment, p = e.getOffsetForRowAndAlignment, h = e.getRowHeight, f = e.getRowOffset, u = e.getRowStartIndexForOffset, m = e.getRowStopIndexForStartIndex, g = e.initInstanceProps, _ = e.shouldResetStyleCacheOnItemSizeChange, v = e.validateProps;
1097
+ var t, n = e.getColumnOffset, r = e.getColumnStartIndexForOffset, o = e.getColumnStopIndexForStartIndex, s = e.getColumnWidth, c = e.getEstimatedTotalHeight, i = e.getEstimatedTotalWidth, l = e.getOffsetForColumnAndAlignment, p = e.getOffsetForRowAndAlignment, m = e.getRowHeight, f = e.getRowOffset, u = e.getRowStartIndexForOffset, h = e.getRowStopIndexForStartIndex, g = e.initInstanceProps, _ = e.shouldResetStyleCacheOnItemSizeChange, v = e.validateProps;
1096
1098
  return t = /* @__PURE__ */ function(C) {
1097
1099
  oo(S, C);
1098
- function S(L) {
1100
+ function S(N) {
1099
1101
  var d;
1100
- return d = C.call(this, L) || this, d._instanceProps = g(d.props, Mt(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
1102
+ return d = C.call(this, N) || this, d._instanceProps = g(d.props, Mt(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
1101
1103
  instance: Mt(d),
1102
1104
  isScrolling: !1,
1103
1105
  horizontalScrollDirection: "forward",
@@ -1105,7 +1107,7 @@ function ho(e) {
1105
1107
  scrollTop: typeof d.props.initialScrollTop == "number" ? d.props.initialScrollTop : 0,
1106
1108
  scrollUpdateWasRequested: !1,
1107
1109
  verticalScrollDirection: "forward"
1108
- }, d._callOnItemsRendered = void 0, d._callOnItemsRendered = Ye(function(b, w, T, E, I, y, D, R) {
1110
+ }, d._callOnItemsRendered = void 0, d._callOnItemsRendered = Qe(function(b, w, T, E, I, y, D, R) {
1109
1111
  return d.props.onItemsRendered({
1110
1112
  overscanColumnStartIndex: b,
1111
1113
  overscanColumnStopIndex: w,
@@ -1116,7 +1118,7 @@ function ho(e) {
1116
1118
  visibleRowStartIndex: D,
1117
1119
  visibleRowStopIndex: R
1118
1120
  });
1119
- }), d._callOnScroll = void 0, d._callOnScroll = Ye(function(b, w, T, E, I) {
1121
+ }), d._callOnScroll = void 0, d._callOnScroll = Qe(function(b, w, T, E, I) {
1120
1122
  return d.props.onScroll({
1121
1123
  horizontalScrollDirection: T,
1122
1124
  scrollLeft: b,
@@ -1125,27 +1127,27 @@ function ho(e) {
1125
1127
  scrollUpdateWasRequested: I
1126
1128
  });
1127
1129
  }), d._getItemStyle = void 0, d._getItemStyle = function(b, w) {
1128
- var T = d.props, E = T.columnWidth, I = T.direction, y = T.rowHeight, D = d._getItemStyleCache(_ && E, _ && I, _ && y), R = b + ":" + w, N;
1130
+ var T = d.props, E = T.columnWidth, I = T.direction, y = T.rowHeight, D = d._getItemStyleCache(_ && E, _ && I, _ && y), R = b + ":" + w, L;
1129
1131
  if (D.hasOwnProperty(R))
1130
- N = D[R];
1132
+ L = D[R];
1131
1133
  else {
1132
1134
  var M = n(d.props, w, d._instanceProps), F = I === "rtl";
1133
- D[R] = N = {
1135
+ D[R] = L = {
1134
1136
  position: "absolute",
1135
1137
  left: F ? void 0 : M,
1136
1138
  right: F ? M : void 0,
1137
1139
  top: f(d.props, b, d._instanceProps),
1138
- height: h(d.props, b, d._instanceProps),
1139
- width: a(d.props, w, d._instanceProps)
1140
+ height: m(d.props, b, d._instanceProps),
1141
+ width: s(d.props, w, d._instanceProps)
1140
1142
  };
1141
1143
  }
1142
- return N;
1143
- }, d._getItemStyleCache = void 0, d._getItemStyleCache = Ye(function(b, w, T) {
1144
+ return L;
1145
+ }, d._getItemStyleCache = void 0, d._getItemStyleCache = Qe(function(b, w, T) {
1144
1146
  return {};
1145
1147
  }), d._onScroll = function(b) {
1146
1148
  var w = b.currentTarget, T = w.clientHeight, E = w.clientWidth, I = w.scrollLeft, y = w.scrollTop, D = w.scrollHeight, R = w.scrollWidth;
1147
- d.setState(function(N) {
1148
- if (N.scrollLeft === I && N.scrollTop === y)
1149
+ d.setState(function(L) {
1150
+ if (L.scrollLeft === I && L.scrollTop === y)
1149
1151
  return null;
1150
1152
  var M = d.props.direction, F = I;
1151
1153
  if (M === "rtl")
@@ -1161,10 +1163,10 @@ function ho(e) {
1161
1163
  var $ = Math.max(0, Math.min(y, D - T));
1162
1164
  return {
1163
1165
  isScrolling: !0,
1164
- horizontalScrollDirection: N.scrollLeft < I ? "forward" : "backward",
1166
+ horizontalScrollDirection: L.scrollLeft < I ? "forward" : "backward",
1165
1167
  scrollLeft: F,
1166
1168
  scrollTop: $,
1167
- verticalScrollDirection: N.scrollTop < y ? "forward" : "backward",
1169
+ verticalScrollDirection: L.scrollTop < y ? "forward" : "backward",
1168
1170
  scrollUpdateWasRequested: !1
1169
1171
  };
1170
1172
  }, d._resetIsScrollingDebounced);
@@ -1197,9 +1199,9 @@ function ho(e) {
1197
1199
  };
1198
1200
  }, this._resetIsScrollingDebounced);
1199
1201
  }, P.scrollToItem = function(d) {
1200
- var b = d.align, w = b === void 0 ? "auto" : b, T = d.columnIndex, E = d.rowIndex, I = this.props, y = I.columnCount, D = I.height, R = I.rowCount, N = I.width, M = this.state, F = M.scrollLeft, $ = M.scrollTop, q = lo();
1202
+ var b = d.align, w = b === void 0 ? "auto" : b, T = d.columnIndex, E = d.rowIndex, I = this.props, y = I.columnCount, D = I.height, R = I.rowCount, L = I.width, M = this.state, F = M.scrollLeft, $ = M.scrollTop, q = lo();
1201
1203
  T !== void 0 && (T = Math.max(0, Math.min(T, y - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, R - 1)));
1202
- var K = c(this.props, this._instanceProps), U = i(this.props, this._instanceProps), Z = U > N ? q : 0, se = K > D ? q : 0;
1204
+ var K = c(this.props, this._instanceProps), U = i(this.props, this._instanceProps), Z = U > L ? q : 0, se = K > D ? q : 0;
1203
1205
  this.scrollTo({
1204
1206
  scrollLeft: T !== void 0 ? l(this.props, T, w, F, this._instanceProps, se) : F,
1205
1207
  scrollTop: E !== void 0 ? p(this.props, E, w, $, this._instanceProps, Z) : $
@@ -1236,28 +1238,28 @@ function ho(e) {
1236
1238
  }, P.componentWillUnmount = function() {
1237
1239
  this._resetIsScrollingTimeoutId !== null && At(this._resetIsScrollingTimeoutId);
1238
1240
  }, P.render = function() {
1239
- var d = this.props, b = d.children, w = d.className, T = d.columnCount, E = d.direction, I = d.height, y = d.innerRef, D = d.innerElementType, R = d.innerTagName, N = d.itemData, M = d.itemKey, F = M === void 0 ? po : M, $ = d.outerElementType, q = d.outerTagName, K = d.rowCount, U = d.style, Z = d.useIsScrolling, se = d.width, pe = this.state.isScrolling, j = this._getHorizontalRangeToRender(), Y = j[0], he = j[1], we = this._getVerticalRangeToRender(), k = we[0], G = we[1], B = [];
1241
+ var d = this.props, b = d.children, w = d.className, T = d.columnCount, E = d.direction, I = d.height, y = d.innerRef, D = d.innerElementType, R = d.innerTagName, L = d.itemData, M = d.itemKey, F = M === void 0 ? po : M, $ = d.outerElementType, q = d.outerTagName, K = d.rowCount, U = d.style, Z = d.useIsScrolling, se = d.width, pe = this.state.isScrolling, j = this._getHorizontalRangeToRender(), Q = j[0], he = j[1], we = this._getVerticalRangeToRender(), k = we[0], G = we[1], B = [];
1240
1242
  if (T > 0 && K)
1241
- for (var Q = k; Q <= G; Q++)
1242
- for (var me = Y; me <= he; me++)
1243
- B.push(Me(b, {
1243
+ for (var ee = k; ee <= G; ee++)
1244
+ for (var me = Q; me <= he; me++)
1245
+ B.push(Ee(b, {
1244
1246
  columnIndex: me,
1245
- data: N,
1247
+ data: L,
1246
1248
  isScrolling: Z ? pe : void 0,
1247
1249
  key: F({
1248
1250
  columnIndex: me,
1249
- data: N,
1250
- rowIndex: Q
1251
+ data: L,
1252
+ rowIndex: ee
1251
1253
  }),
1252
- rowIndex: Q,
1253
- style: this._getItemStyle(Q, me)
1254
+ rowIndex: ee,
1255
+ style: this._getItemStyle(ee, me)
1254
1256
  }));
1255
- var Ze = c(this.props, this._instanceProps), je = i(this.props, this._instanceProps);
1256
- return Me($ || q || "div", {
1257
+ var je = c(this.props, this._instanceProps), Be = i(this.props, this._instanceProps);
1258
+ return Ee($ || q || "div", {
1257
1259
  className: w,
1258
1260
  onScroll: this._onScroll,
1259
1261
  ref: this._outerRefSetter,
1260
- style: lt({
1262
+ style: ut({
1261
1263
  position: "relative",
1262
1264
  height: I,
1263
1265
  width: se,
@@ -1266,36 +1268,36 @@ function ho(e) {
1266
1268
  willChange: "transform",
1267
1269
  direction: E
1268
1270
  }, U)
1269
- }, Me(D || R || "div", {
1271
+ }, Ee(D || R || "div", {
1270
1272
  children: B,
1271
1273
  ref: y,
1272
1274
  style: {
1273
- height: Ze,
1275
+ height: je,
1274
1276
  pointerEvents: pe ? "none" : void 0,
1275
- width: je
1277
+ width: Be
1276
1278
  }
1277
1279
  }));
1278
1280
  }, P._callPropsCallbacks = function() {
1279
1281
  var d = this.props, b = d.columnCount, w = d.onItemsRendered, T = d.onScroll, E = d.rowCount;
1280
1282
  if (typeof w == "function" && b > 0 && E > 0) {
1281
- var I = this._getHorizontalRangeToRender(), y = I[0], D = I[1], R = I[2], N = I[3], M = this._getVerticalRangeToRender(), F = M[0], $ = M[1], q = M[2], K = M[3];
1282
- this._callOnItemsRendered(y, D, F, $, R, N, q, K);
1283
+ var I = this._getHorizontalRangeToRender(), y = I[0], D = I[1], R = I[2], L = I[3], M = this._getVerticalRangeToRender(), F = M[0], $ = M[1], q = M[2], K = M[3];
1284
+ this._callOnItemsRendered(y, D, F, $, R, L, q, K);
1283
1285
  }
1284
1286
  if (typeof T == "function") {
1285
- var U = this.state, Z = U.horizontalScrollDirection, se = U.scrollLeft, pe = U.scrollTop, j = U.scrollUpdateWasRequested, Y = U.verticalScrollDirection;
1286
- this._callOnScroll(se, pe, Z, Y, j);
1287
+ var U = this.state, Z = U.horizontalScrollDirection, se = U.scrollLeft, pe = U.scrollTop, j = U.scrollUpdateWasRequested, Q = U.verticalScrollDirection;
1288
+ this._callOnScroll(se, pe, Z, Q, j);
1287
1289
  }
1288
1290
  }, P._getHorizontalRangeToRender = function() {
1289
- var d = this.props, b = d.columnCount, w = d.overscanColumnCount, T = d.overscanColumnsCount, E = d.overscanCount, I = d.rowCount, y = this.state, D = y.horizontalScrollDirection, R = y.isScrolling, N = y.scrollLeft, M = w || T || E || 1;
1291
+ var d = this.props, b = d.columnCount, w = d.overscanColumnCount, T = d.overscanColumnsCount, E = d.overscanCount, I = d.rowCount, y = this.state, D = y.horizontalScrollDirection, R = y.isScrolling, L = y.scrollLeft, M = w || T || E || 1;
1290
1292
  if (b === 0 || I === 0)
1291
1293
  return [0, 0, 0, 0];
1292
- var F = r(this.props, N, this._instanceProps), $ = o(this.props, F, N, this._instanceProps), q = !R || D === "backward" ? Math.max(1, M) : 1, K = !R || D === "forward" ? Math.max(1, M) : 1;
1294
+ var F = r(this.props, L, this._instanceProps), $ = o(this.props, F, L, this._instanceProps), q = !R || D === "backward" ? Math.max(1, M) : 1, K = !R || D === "forward" ? Math.max(1, M) : 1;
1293
1295
  return [Math.max(0, F - q), Math.max(0, Math.min(b - 1, $ + K)), F, $];
1294
1296
  }, P._getVerticalRangeToRender = function() {
1295
- var d = this.props, b = d.columnCount, w = d.overscanCount, T = d.overscanRowCount, E = d.overscanRowsCount, I = d.rowCount, y = this.state, D = y.isScrolling, R = y.verticalScrollDirection, N = y.scrollTop, M = T || E || w || 1;
1297
+ var d = this.props, b = d.columnCount, w = d.overscanCount, T = d.overscanRowCount, E = d.overscanRowsCount, I = d.rowCount, y = this.state, D = y.isScrolling, R = y.verticalScrollDirection, L = y.scrollTop, M = T || E || w || 1;
1296
1298
  if (b === 0 || I === 0)
1297
1299
  return [0, 0, 0, 0];
1298
- var F = u(this.props, N, this._instanceProps), $ = m(this.props, F, N, this._instanceProps), q = !D || R === "backward" ? Math.max(1, M) : 1, K = !D || R === "forward" ? Math.max(1, M) : 1;
1300
+ var F = u(this.props, L, this._instanceProps), $ = h(this.props, F, L, this._instanceProps), q = !D || R === "backward" ? Math.max(1, M) : 1, K = !D || R === "forward" ? Math.max(1, M) : 1;
1299
1301
  return [Math.max(0, F - q), Math.max(0, Math.min(I - 1, $ + K)), F, $];
1300
1302
  }, S;
1301
1303
  }(Hn), t.defaultProps = {
@@ -1305,9 +1307,9 @@ function ho(e) {
1305
1307
  }, t;
1306
1308
  }
1307
1309
  var mo = function(t, n) {
1308
- var r = t.children, o = t.direction, a = t.height, c = t.innerTagName, i = t.outerTagName, l = t.overscanColumnsCount, p = t.overscanCount, h = t.overscanRowsCount, f = t.width, u = n.instance;
1310
+ var r = t.children, o = t.direction, s = t.height, c = t.innerTagName, i = t.outerTagName, l = t.overscanColumnsCount, p = t.overscanCount, m = t.overscanRowsCount, f = t.width, u = n.instance;
1309
1311
  if (process.env.NODE_ENV !== "production") {
1310
- if (typeof p == "number" && Ee && !Ee.has(u) && (Ee.add(u), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof h == "number") && Oe && !Oe.has(u) && (Oe.add(u), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || i != null) && De && !De.has(u) && (De.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1312
+ if (typeof p == "number" && Oe && !Oe.has(u) && (Oe.add(u), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof m == "number") && De && !De.has(u) && (De.add(u), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || i != null) && Ae && !Ae.has(u) && (Ae.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
1311
1313
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1312
1314
  switch (o) {
1313
1315
  case "ltr":
@@ -1318,63 +1320,63 @@ var mo = function(t, n) {
1318
1320
  }
1319
1321
  if (typeof f != "number")
1320
1322
  throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (f === null ? "null" : typeof f) + '" was specified.'));
1321
- if (typeof a != "number")
1322
- throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1323
+ if (typeof s != "number")
1324
+ throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (s === null ? "null" : typeof s) + '" was specified.'));
1323
1325
  }
1324
1326
  }, Ft = 50, hn = function(t, n) {
1325
- var r = t.rowCount, o = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, i = 0;
1327
+ var r = t.rowCount, o = n.rowMetadataMap, s = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, i = 0;
1326
1328
  if (c >= r && (c = r - 1), c >= 0) {
1327
1329
  var l = o[c];
1328
1330
  i = l.offset + l.size;
1329
1331
  }
1330
- var p = r - c - 1, h = p * a;
1331
- return i + h;
1332
+ var p = r - c - 1, m = p * s;
1333
+ return i + m;
1332
1334
  }, mn = function(t, n) {
1333
- var r = t.columnCount, o = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, i = 0;
1335
+ var r = t.columnCount, o = n.columnMetadataMap, s = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, i = 0;
1334
1336
  if (c >= r && (c = r - 1), c >= 0) {
1335
1337
  var l = o[c];
1336
1338
  i = l.offset + l.size;
1337
1339
  }
1338
- var p = r - c - 1, h = p * a;
1339
- return i + h;
1340
+ var p = r - c - 1, m = p * s;
1341
+ return i + m;
1340
1342
  }, ue = function(t, n, r, o) {
1341
- var a, c, i;
1342
- if (t === "column" ? (a = o.columnMetadataMap, c = n.columnWidth, i = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = n.rowHeight, i = o.lastMeasuredRowIndex), r > i) {
1343
+ var s, c, i;
1344
+ if (t === "column" ? (s = o.columnMetadataMap, c = n.columnWidth, i = o.lastMeasuredColumnIndex) : (s = o.rowMetadataMap, c = n.rowHeight, i = o.lastMeasuredRowIndex), r > i) {
1343
1345
  var l = 0;
1344
1346
  if (i >= 0) {
1345
- var p = a[i];
1347
+ var p = s[i];
1346
1348
  l = p.offset + p.size;
1347
1349
  }
1348
- for (var h = i + 1; h <= r; h++) {
1349
- var f = c(h);
1350
- a[h] = {
1350
+ for (var m = i + 1; m <= r; m++) {
1351
+ var f = c(m);
1352
+ s[m] = {
1351
1353
  offset: l,
1352
1354
  size: f
1353
1355
  }, l += f;
1354
1356
  }
1355
1357
  t === "column" ? o.lastMeasuredColumnIndex = r : o.lastMeasuredRowIndex = r;
1356
1358
  }
1357
- return a[r];
1359
+ return s[r];
1358
1360
  }, kt = function(t, n, r, o) {
1359
- var a, c;
1360
- t === "column" ? (a = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1361
- var i = c > 0 ? a[c].offset : 0;
1361
+ var s, c;
1362
+ t === "column" ? (s = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (s = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1363
+ var i = c > 0 ? s[c].offset : 0;
1362
1364
  return i >= o ? fn(t, n, r, c, 0, o) : fo(t, n, r, Math.max(0, c), o);
1363
- }, fn = function(t, n, r, o, a, c) {
1364
- for (; a <= o; ) {
1365
- var i = a + Math.floor((o - a) / 2), l = ue(t, n, i, r).offset;
1365
+ }, fn = function(t, n, r, o, s, c) {
1366
+ for (; s <= o; ) {
1367
+ var i = s + Math.floor((o - s) / 2), l = ue(t, n, i, r).offset;
1366
1368
  if (l === c)
1367
1369
  return i;
1368
- l < c ? a = i + 1 : l > c && (o = i - 1);
1370
+ l < c ? s = i + 1 : l > c && (o = i - 1);
1369
1371
  }
1370
- return a > 0 ? a - 1 : 0;
1371
- }, fo = function(t, n, r, o, a) {
1372
- for (var c = t === "column" ? n.columnCount : n.rowCount, i = 1; o < c && ue(t, n, o, r).offset < a; )
1372
+ return s > 0 ? s - 1 : 0;
1373
+ }, fo = function(t, n, r, o, s) {
1374
+ for (var c = t === "column" ? n.columnCount : n.rowCount, i = 1; o < c && ue(t, n, o, r).offset < s; )
1373
1375
  o += i, i *= 2;
1374
- return fn(t, n, r, Math.min(o, c - 1), Math.floor(o / 2), a);
1375
- }, Wt = function(t, n, r, o, a, c, i) {
1376
- var l = t === "column" ? n.width : n.height, p = ue(t, n, r, c), h = t === "column" ? mn(n, c) : hn(n, c), f = Math.max(0, Math.min(h - l, p.offset)), u = Math.max(0, p.offset - l + i + p.size);
1377
- switch (o === "smart" && (a >= u - l && a <= f + l ? o = "auto" : o = "center"), o) {
1376
+ return fn(t, n, r, Math.min(o, c - 1), Math.floor(o / 2), s);
1377
+ }, Wt = function(t, n, r, o, s, c, i) {
1378
+ var l = t === "column" ? n.width : n.height, p = ue(t, n, r, c), m = t === "column" ? mn(n, c) : hn(n, c), f = Math.max(0, Math.min(m - l, p.offset)), u = Math.max(0, p.offset - l + i + p.size);
1379
+ switch (o === "smart" && (s >= u - l && s <= f + l ? o = "auto" : o = "center"), o) {
1378
1380
  case "start":
1379
1381
  return f;
1380
1382
  case "end":
@@ -1383,7 +1385,7 @@ var mo = function(t, n) {
1383
1385
  return Math.round(u + (f - u) / 2);
1384
1386
  case "auto":
1385
1387
  default:
1386
- return a >= u && a <= f ? a : u > f || a < u ? u : f;
1388
+ return s >= u && s <= f ? s : u > f || s < u ? u : f;
1387
1389
  }
1388
1390
  }, go = /* @__PURE__ */ ho({
1389
1391
  getColumnOffset: function(t, n, r) {
@@ -1393,20 +1395,20 @@ var mo = function(t, n) {
1393
1395
  return kt("column", t, r, n);
1394
1396
  },
1395
1397
  getColumnStopIndexForStartIndex: function(t, n, r, o) {
1396
- for (var a = t.columnCount, c = t.width, i = ue("column", t, n, o), l = r + c, p = i.offset + i.size, h = n; h < a - 1 && p < l; )
1397
- h++, p += ue("column", t, h, o).size;
1398
- return h;
1398
+ for (var s = t.columnCount, c = t.width, i = ue("column", t, n, o), l = r + c, p = i.offset + i.size, m = n; m < s - 1 && p < l; )
1399
+ m++, p += ue("column", t, m, o).size;
1400
+ return m;
1399
1401
  },
1400
1402
  getColumnWidth: function(t, n, r) {
1401
1403
  return r.columnMetadataMap[n].size;
1402
1404
  },
1403
1405
  getEstimatedTotalHeight: hn,
1404
1406
  getEstimatedTotalWidth: mn,
1405
- getOffsetForColumnAndAlignment: function(t, n, r, o, a, c) {
1406
- return Wt("column", t, n, r, o, a, c);
1407
+ getOffsetForColumnAndAlignment: function(t, n, r, o, s, c) {
1408
+ return Wt("column", t, n, r, o, s, c);
1407
1409
  },
1408
- getOffsetForRowAndAlignment: function(t, n, r, o, a, c) {
1409
- return Wt("row", t, n, r, o, a, c);
1410
+ getOffsetForRowAndAlignment: function(t, n, r, o, s, c) {
1411
+ return Wt("row", t, n, r, o, s, c);
1410
1412
  },
1411
1413
  getRowOffset: function(t, n, r) {
1412
1414
  return ue("row", t, n, r).offset;
@@ -1418,15 +1420,15 @@ var mo = function(t, n) {
1418
1420
  return kt("row", t, r, n);
1419
1421
  },
1420
1422
  getRowStopIndexForStartIndex: function(t, n, r, o) {
1421
- for (var a = t.rowCount, c = t.height, i = ue("row", t, n, o), l = r + c, p = i.offset + i.size, h = n; h < a - 1 && p < l; )
1422
- h++, p += ue("row", t, h, o).size;
1423
- return h;
1423
+ for (var s = t.rowCount, c = t.height, i = ue("row", t, n, o), l = r + c, p = i.offset + i.size, m = n; m < s - 1 && p < l; )
1424
+ m++, p += ue("row", t, m, o).size;
1425
+ return m;
1424
1426
  },
1425
1427
  initInstanceProps: function(t, n) {
1426
- var r = t, o = r.estimatedColumnWidth, a = r.estimatedRowHeight, c = {
1428
+ var r = t, o = r.estimatedColumnWidth, s = r.estimatedRowHeight, c = {
1427
1429
  columnMetadataMap: {},
1428
1430
  estimatedColumnWidth: o || Ft,
1429
- estimatedRowHeight: a || Ft,
1431
+ estimatedRowHeight: s || Ft,
1430
1432
  lastMeasuredColumnIndex: -1,
1431
1433
  lastMeasuredRowIndex: -1,
1432
1434
  rowMetadataMap: {}
@@ -1442,7 +1444,7 @@ var mo = function(t, n) {
1442
1444
  shouldForceUpdate: l
1443
1445
  });
1444
1446
  }, n.resetAfterIndices = function(i) {
1445
- var l = i.columnIndex, p = i.rowIndex, h = i.shouldForceUpdate, f = h === void 0 ? !0 : h;
1447
+ var l = i.columnIndex, p = i.rowIndex, m = i.shouldForceUpdate, f = m === void 0 ? !0 : m;
1446
1448
  typeof l == "number" && (c.lastMeasuredColumnIndex = Math.min(c.lastMeasuredColumnIndex, l - 1)), typeof p == "number" && (c.lastMeasuredRowIndex = Math.min(c.lastMeasuredRowIndex, p - 1)), n._getItemStyleCache(-1), f && n.forceUpdate();
1447
1449
  }, c;
1448
1450
  },
@@ -1469,67 +1471,67 @@ function Ht(e, t) {
1469
1471
  }
1470
1472
  var vo = ["style"], _o = ["style"];
1471
1473
  function wo(e, t) {
1472
- var n = e.style, r = Ot(e, vo), o = t.style, a = Ot(t, _o);
1473
- return !Ht(n, o) && !Ht(r, a);
1474
+ var n = e.style, r = Ot(e, vo), o = t.style, s = Ot(t, _o);
1475
+ return !Ht(n, o) && !Ht(r, s);
1474
1476
  }
1475
1477
  const bo = () => {
1476
- const { viewMode: e } = Ue(), { scrollMode: t } = Te(), { setColumnCount: n } = Bt(), { virtualScrollableElementRef: r } = qe(), o = ht(), a = x(
1477
- (m) => o.widths[m] || 0,
1478
+ const { viewMode: e } = qe(), { scrollMode: t } = Se(), { setColumnCount: n } = Bt(), { virtualScrollableElementRef: r } = Ze(), o = mt(), s = x(
1479
+ (h) => o.widths[h] || 0,
1478
1480
  [o]
1479
1481
  ), c = x(
1480
- (m) => o.heights[m] || 0,
1482
+ (h) => o.heights[h] || 0,
1481
1483
  [o]
1482
- ), i = A(() => o.heights.length, [o]), l = A(() => Math.max(...o.widths), [o]), p = A(() => t === J.HORIZONTAL_SCROLLING ? i : e === ze.DUAL_PAGE ? 2 : 1, [e, t, t, i, r, l]);
1484
+ ), i = A(() => o.heights.length, [o]), l = A(() => Math.max(...o.widths), [o]), p = A(() => t === J.HORIZONTAL_SCROLLING ? i : e === Fe.DUAL_PAGE ? 2 : 1, [e, t, t, i, r, l]);
1483
1485
  z(() => {
1484
1486
  n(p);
1485
1487
  }, [p, n]);
1486
- const h = A(() => t === J.HORIZONTAL_SCROLLING || t === J.PAGE_SCROLLING ? 1 : Math.round(i / p), [p, i, t]), f = A(() => o.heights.reduce((m, g) => m + g, 0) / o.heights.length || 0, [o]), u = A(() => o.widths.reduce((m, g) => m + g, 0) / o.heights.length || 0, [o]);
1488
+ const m = A(() => t === J.HORIZONTAL_SCROLLING || t === J.PAGE_SCROLLING ? 1 : Math.round(i / p), [p, i, t]), f = A(() => o.heights.reduce((h, g) => h + g, 0) / o.heights.length || 0, [o]), u = A(() => o.widths.reduce((h, g) => h + g, 0) / o.heights.length || 0, [o]);
1487
1489
  return {
1488
- rowCount: h,
1490
+ rowCount: m,
1489
1491
  rowHeight: c,
1490
1492
  columnCount: p,
1491
- columnWidth: a,
1493
+ columnWidth: s,
1492
1494
  pageDimension: o,
1493
1495
  estimatedRowHeight: f,
1494
1496
  estimatedColumnWidth: u
1495
1497
  };
1496
1498
  };
1497
- let ne;
1498
- typeof window < "u" ? ne = window : typeof self < "u" ? ne = self : ne = global;
1499
- let dt = null, pt = null;
1500
- const $t = 20, et = ne.clearTimeout, Gt = ne.setTimeout, tt = ne.cancelAnimationFrame || ne.mozCancelAnimationFrame || ne.webkitCancelAnimationFrame, Vt = ne.requestAnimationFrame || ne.mozRequestAnimationFrame || ne.webkitRequestAnimationFrame;
1501
- tt == null || Vt == null ? (dt = et, pt = function(t) {
1499
+ let re;
1500
+ typeof window < "u" ? re = window : typeof self < "u" ? re = self : re = global;
1501
+ let pt = null, ht = null;
1502
+ const $t = 20, tt = re.clearTimeout, Gt = re.setTimeout, nt = re.cancelAnimationFrame || re.mozCancelAnimationFrame || re.webkitCancelAnimationFrame, Vt = re.requestAnimationFrame || re.mozRequestAnimationFrame || re.webkitRequestAnimationFrame;
1503
+ nt == null || Vt == null ? (pt = tt, ht = function(t) {
1502
1504
  return Gt(t, $t);
1503
- }) : (dt = function([t, n]) {
1504
- tt(t), et(n);
1505
- }, pt = function(t) {
1505
+ }) : (pt = function([t, n]) {
1506
+ nt(t), tt(n);
1507
+ }, ht = function(t) {
1506
1508
  const n = Vt(function() {
1507
- et(r), t();
1509
+ tt(r), t();
1508
1510
  }), r = Gt(function() {
1509
- tt(n), t();
1511
+ nt(n), t();
1510
1512
  }, $t);
1511
1513
  return [n, r];
1512
1514
  });
1513
1515
  function Co(e) {
1514
- let t, n, r, o, a, c, i;
1516
+ let t, n, r, o, s, c, i;
1515
1517
  const l = typeof document < "u" && document.attachEvent;
1516
1518
  if (!l) {
1517
1519
  c = function(C) {
1518
- const S = C.__resizeTriggers__, P = S.firstElementChild, L = S.lastElementChild, d = P.firstElementChild;
1519
- L.scrollLeft = L.scrollWidth, L.scrollTop = L.scrollHeight, d.style.width = P.offsetWidth + 1 + "px", d.style.height = P.offsetHeight + 1 + "px", P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight;
1520
- }, a = function(C) {
1520
+ const S = C.__resizeTriggers__, P = S.firstElementChild, N = S.lastElementChild, d = P.firstElementChild;
1521
+ N.scrollLeft = N.scrollWidth, N.scrollTop = N.scrollHeight, d.style.width = P.offsetWidth + 1 + "px", d.style.height = P.offsetHeight + 1 + "px", P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight;
1522
+ }, s = function(C) {
1521
1523
  return C.offsetWidth !== C.__resizeLast__.width || C.offsetHeight !== C.__resizeLast__.height;
1522
1524
  }, i = function(C) {
1523
1525
  if (C.target.className && typeof C.target.className.indexOf == "function" && C.target.className.indexOf("contract-trigger") < 0 && C.target.className.indexOf("expand-trigger") < 0)
1524
1526
  return;
1525
1527
  const S = this;
1526
- c(this), this.__resizeRAF__ && dt(this.__resizeRAF__), this.__resizeRAF__ = pt(function() {
1527
- a(S) && (S.__resizeLast__.width = S.offsetWidth, S.__resizeLast__.height = S.offsetHeight, S.__resizeListeners__.forEach(function(d) {
1528
+ c(this), this.__resizeRAF__ && pt(this.__resizeRAF__), this.__resizeRAF__ = ht(function() {
1529
+ s(S) && (S.__resizeLast__.width = S.offsetWidth, S.__resizeLast__.height = S.offsetHeight, S.__resizeListeners__.forEach(function(d) {
1528
1530
  d.call(S, C);
1529
1531
  }));
1530
1532
  });
1531
1533
  };
1532
- let u = !1, m = "";
1534
+ let u = !1, h = "";
1533
1535
  r = "animationstart";
1534
1536
  const g = "Webkit Moz O ms".split(" ");
1535
1537
  let _ = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = "";
@@ -1538,26 +1540,26 @@ function Co(e) {
1538
1540
  if (C.style.animationName !== void 0 && (u = !0), u === !1) {
1539
1541
  for (let S = 0; S < g.length; S++)
1540
1542
  if (C.style[g[S] + "AnimationName"] !== void 0) {
1541
- v = g[S], m = "-" + v.toLowerCase() + "-", r = _[S], u = !0;
1543
+ v = g[S], h = "-" + v.toLowerCase() + "-", r = _[S], u = !0;
1542
1544
  break;
1543
1545
  }
1544
1546
  }
1545
1547
  }
1546
- n = "resizeanim", t = "@" + m + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", o = m + "animation: 1ms " + n + "; ";
1548
+ n = "resizeanim", t = "@" + h + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", o = h + "animation: 1ms " + n + "; ";
1547
1549
  }
1548
1550
  const p = function(u) {
1549
1551
  if (!u.getElementById("detectElementResize")) {
1550
- const m = (t || "") + ".resize-triggers { " + (o || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', g = u.head || u.getElementsByTagName("head")[0], _ = u.createElement("style");
1551
- _.id = "detectElementResize", _.type = "text/css", e != null && _.setAttribute("nonce", e), _.styleSheet ? _.styleSheet.cssText = m : _.appendChild(u.createTextNode(m)), g.appendChild(_);
1552
+ const h = (t || "") + ".resize-triggers { " + (o || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', g = u.head || u.getElementsByTagName("head")[0], _ = u.createElement("style");
1553
+ _.id = "detectElementResize", _.type = "text/css", e != null && _.setAttribute("nonce", e), _.styleSheet ? _.styleSheet.cssText = h : _.appendChild(u.createTextNode(h)), g.appendChild(_);
1552
1554
  }
1553
1555
  };
1554
1556
  return {
1555
- addResizeListener: function(u, m) {
1557
+ addResizeListener: function(u, h) {
1556
1558
  if (l)
1557
- u.attachEvent("onresize", m);
1559
+ u.attachEvent("onresize", h);
1558
1560
  else {
1559
1561
  if (!u.__resizeTriggers__) {
1560
- const g = u.ownerDocument, _ = ne.getComputedStyle(u);
1562
+ const g = u.ownerDocument, _ = re.getComputedStyle(u);
1561
1563
  _ && _.position === "static" && (u.style.position = "relative"), p(g), u.__resizeLast__ = {}, u.__resizeListeners__ = [], (u.__resizeTriggers__ = g.createElement("div")).className = "resize-triggers";
1562
1564
  const v = g.createElement("div");
1563
1565
  v.className = "expand-trigger", v.appendChild(g.createElement("div"));
@@ -1566,13 +1568,13 @@ function Co(e) {
1566
1568
  P.animationName === n && c(u);
1567
1569
  }, u.__resizeTriggers__.addEventListener(r, u.__resizeTriggers__.__animationListener__));
1568
1570
  }
1569
- u.__resizeListeners__.push(m);
1571
+ u.__resizeListeners__.push(h);
1570
1572
  }
1571
1573
  },
1572
- removeResizeListener: function(u, m) {
1574
+ removeResizeListener: function(u, h) {
1573
1575
  if (l)
1574
- u.detachEvent("onresize", m);
1575
- else if (u.__resizeListeners__.splice(u.__resizeListeners__.indexOf(m), 1), !u.__resizeListeners__.length) {
1576
+ u.detachEvent("onresize", h);
1577
+ else if (u.__resizeListeners__.splice(u.__resizeListeners__.indexOf(h), 1), !u.__resizeListeners__.length) {
1576
1578
  u.removeEventListener("scroll", i, !0), u.__resizeTriggers__.__animationListener__ && (u.__resizeTriggers__.removeEventListener(r, u.__resizeTriggers__.__animationListener__), u.__resizeTriggers__.__animationListener__ = null);
1577
1579
  try {
1578
1580
  u.__resizeTriggers__ = !u.removeChild(u.__resizeTriggers__);
@@ -1597,14 +1599,14 @@ class Po extends $n {
1597
1599
  onResize: o
1598
1600
  } = this.props;
1599
1601
  if (this._parentNode) {
1600
- const a = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(a.paddingLeft || "0"), i = parseFloat(a.paddingRight || "0"), l = parseFloat(a.paddingTop || "0"), p = parseFloat(a.paddingBottom || "0"), h = this._parentNode.getBoundingClientRect(), f = h.height - l - p, u = h.width - c - i, m = this._parentNode.offsetHeight - l - p, g = this._parentNode.offsetWidth - c - i;
1601
- (!n && (this.state.height !== m || this.state.scaledHeight !== f) || !r && (this.state.width !== g || this.state.scaledWidth !== u)) && (this.setState({
1602
- height: m,
1602
+ const s = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(s.paddingLeft || "0"), i = parseFloat(s.paddingRight || "0"), l = parseFloat(s.paddingTop || "0"), p = parseFloat(s.paddingBottom || "0"), m = this._parentNode.getBoundingClientRect(), f = m.height - l - p, u = m.width - c - i, h = this._parentNode.offsetHeight - l - p, g = this._parentNode.offsetWidth - c - i;
1603
+ (!n && (this.state.height !== h || this.state.scaledHeight !== f) || !r && (this.state.width !== g || this.state.scaledWidth !== u)) && (this.setState({
1604
+ height: h,
1603
1605
  width: g,
1604
1606
  scaledHeight: f,
1605
1607
  scaledWidth: u
1606
1608
  }), typeof o == "function" && o({
1607
- height: m,
1609
+ height: h,
1608
1610
  scaledHeight: f,
1609
1611
  scaledWidth: u,
1610
1612
  width: g
@@ -1635,23 +1637,23 @@ class Po extends $n {
1635
1637
  defaultHeight: n,
1636
1638
  defaultWidth: r,
1637
1639
  disableHeight: o = !1,
1638
- disableWidth: a = !1,
1640
+ disableWidth: s = !1,
1639
1641
  doNotBailOutOnEmptyChildren: c = !1,
1640
1642
  nonce: i,
1641
1643
  onResize: l,
1642
1644
  style: p = {},
1643
- tagName: h = "div",
1645
+ tagName: m = "div",
1644
1646
  ...f
1645
1647
  } = this.props, {
1646
1648
  height: u,
1647
- scaledHeight: m,
1649
+ scaledHeight: h,
1648
1650
  scaledWidth: g,
1649
1651
  width: _
1650
1652
  } = this.state, v = {
1651
1653
  overflow: "visible"
1652
1654
  }, C = {};
1653
1655
  let S = !1;
1654
- return o || (u === 0 && (S = !0), v.height = 0, C.height = u, C.scaledHeight = m), a || (_ === 0 && (S = !0), v.width = 0, C.width = _, C.scaledWidth = g), c && (S = !1), Me(h, {
1656
+ return o || (u === 0 && (S = !0), v.height = 0, C.height = u, C.scaledHeight = h), s || (_ === 0 && (S = !0), v.width = 0, C.width = _, C.scaledWidth = g), c && (S = !1), Ee(m, {
1655
1657
  ref: this._setRef,
1656
1658
  style: {
1657
1659
  ...v,
@@ -1669,7 +1671,7 @@ const To = ({ widths: e, heights: t }) => {
1669
1671
  i.push(p);
1670
1672
  }
1671
1673
  return i;
1672
- }, [n, r]), a = A(() => [
1674
+ }, [n, r]), s = A(() => [
1673
1675
  {
1674
1676
  position: "absolute",
1675
1677
  left: 0,
@@ -1683,27 +1685,27 @@ const To = ({ widths: e, heights: t }) => {
1683
1685
  width: e(n),
1684
1686
  height: t(n)
1685
1687
  }
1686
- ], [e, t, o]), c = A(() => a.reduce((i, l) => i + Number(l.width || 0), 0), [a]);
1687
- return /* @__PURE__ */ s("div", { style: { width: c, position: "relative" }, children: o.map((i, l) => /* @__PURE__ */ s(bt, { style: a[l], pageNumber: i }, i)) });
1688
+ ], [e, t, o]), c = A(() => s.reduce((i, l) => i + Number(l.width || 0), 0), [s]);
1689
+ return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((i, l) => /* @__PURE__ */ a(bt, { style: s[l], pageNumber: i }, i)) });
1688
1690
  }, So = ({ widths: e, heights: t }) => {
1689
1691
  const { focusedPage: n } = oe(), r = A(() => ({
1690
1692
  position: "absolute",
1691
1693
  width: e(n - 1),
1692
1694
  height: t(n - 1)
1693
1695
  }), [e, t, n]), o = A(() => e(n - 1), [e]);
1694
- return /* @__PURE__ */ s(
1696
+ return /* @__PURE__ */ a(
1695
1697
  "div",
1696
1698
  {
1697
1699
  style: {
1698
1700
  width: o,
1699
1701
  position: "relative"
1700
1702
  },
1701
- children: /* @__PURE__ */ s(bt, { style: r, pageNumber: n }, n)
1703
+ children: /* @__PURE__ */ a(bt, { style: r, pageNumber: n }, n)
1702
1704
  }
1703
1705
  );
1704
1706
  }, yo = Gn(({ columnIndex: e, rowIndex: t, data: n, style: r }) => {
1705
1707
  const o = A(() => e + 1 + t * n.columnCount, [e, t, n]);
1706
- return /* @__PURE__ */ s(
1708
+ return /* @__PURE__ */ a(
1707
1709
  bt,
1708
1710
  {
1709
1711
  style: r,
@@ -1716,16 +1718,16 @@ const To = ({ widths: e, heights: t }) => {
1716
1718
  const { getContainer: e, container: t } = dr(), { scrollToPage: n } = nn(), {
1717
1719
  virtualScrollRef: r,
1718
1720
  getVirtualScrollRef: o,
1719
- getPageScrollElementRef: a,
1721
+ getPageScrollElementRef: s,
1720
1722
  getVirtualScrollableElementRef: c,
1721
1723
  setTotalInnerDimensions: i,
1722
1724
  totalInnerDimensions: l
1723
- } = qe(), { nextPage: p, prevPage: h, setFocusedPage: f, focusedPage: u } = oe(), { scrollMode: m } = Te(), { viewMode: g } = Ue(), _ = W(null), v = W(
1725
+ } = Ze(), { nextPage: p, prevPage: m, setFocusedPage: f, focusedPage: u } = oe(), { scrollMode: h } = Se(), { viewMode: g } = qe(), _ = W(null), v = W(
1724
1726
  l
1725
1727
  ), C = W({
1726
1728
  viewMode: g,
1727
- scrollMode: m
1728
- }), S = W(!1), P = W(), { isFullScreen: L } = jn(), {
1729
+ scrollMode: h
1730
+ }), S = W(!1), P = W(), { isFullScreen: N } = jn(), {
1729
1731
  pageDimension: d,
1730
1732
  rowCount: b,
1731
1733
  rowHeight: w,
@@ -1733,7 +1735,7 @@ const To = ({ widths: e, heights: t }) => {
1733
1735
  columnWidth: E,
1734
1736
  estimatedColumnWidth: I,
1735
1737
  estimatedRowHeight: y
1736
- } = bo(), [D, R] = H({}), { isScrolling: N } = Kt(), M = W(), F = W({
1738
+ } = bo(), [D, R] = H({}), { isScrolling: L } = Kt(), M = W(), F = W({
1737
1739
  scrollTop: 0,
1738
1740
  scrollLeft: 0
1739
1741
  });
@@ -1748,10 +1750,10 @@ const To = ({ widths: e, heights: t }) => {
1748
1750
  }), [T, se]), j = x(
1749
1751
  (k) => {
1750
1752
  const G = document.activeElement !== t;
1751
- !L && G || (["ArrowUp", "ArrowLeft"].includes(k.key) ? (k.preventDefault(), h()) : ["ArrowDown", "ArrowRight"].includes(k.key) && (k.preventDefault(), p()));
1753
+ !N && G || (["ArrowUp", "ArrowLeft"].includes(k.key) ? (k.preventDefault(), m()) : ["ArrowDown", "ArrowRight"].includes(k.key) && (k.preventDefault(), p()));
1752
1754
  },
1753
- [p, h, L, m]
1754
- ), Y = x((k) => {
1755
+ [p, m, N, h]
1756
+ ), Q = x((k) => {
1755
1757
  F.current = {
1756
1758
  scrollTop: k.scrollTop,
1757
1759
  scrollLeft: k.scrollLeft
@@ -1783,14 +1785,14 @@ const To = ({ widths: e, heights: t }) => {
1783
1785
  });
1784
1786
  }
1785
1787
  }, [b, T, d, r, n]), z(() => {
1786
- if (N.current)
1788
+ if (L.current)
1787
1789
  return;
1788
- if (C.current.viewMode !== g || C.current.scrollMode !== m) {
1789
- M.current && clearTimeout(M.current), R({}), S.current = !0, n(u), m === J.HORIZONTAL_SCROLLING && (r == null || r.scrollTo({
1790
+ if (C.current.viewMode !== g || C.current.scrollMode !== h) {
1791
+ M.current && clearTimeout(M.current), R({}), S.current = !0, n(u), h === J.HORIZONTAL_SCROLLING && (r == null || r.scrollTo({
1790
1792
  scrollTop: 0
1791
1793
  })), M.current = setTimeout(() => {
1792
1794
  requestAnimationFrame(() => {
1793
- C.current = { viewMode: g, scrollMode: m };
1795
+ C.current = { viewMode: g, scrollMode: h };
1794
1796
  });
1795
1797
  }, 100);
1796
1798
  return;
@@ -1798,7 +1800,7 @@ const To = ({ widths: e, heights: t }) => {
1798
1800
  const G = F.current.scrollTop, B = F.current.scrollLeft;
1799
1801
  if (l.height && l.width) {
1800
1802
  S.current = !0;
1801
- const { height: Q, width: me } = l, { height: Ze, width: je } = v.current, zn = G / Ze * Q, Fn = B / je * me, kn = Math.min(zn, Q) || 0, Wn = Math.min(Fn, me) || 0;
1803
+ const { height: ee, width: me } = l, { height: je, width: Be } = v.current, zn = G / je * ee, Fn = B / Be * me, kn = Math.min(zn, ee) || 0, Wn = Math.min(Fn, me) || 0;
1802
1804
  r == null || r.scrollTo({
1803
1805
  scrollTop: kn,
1804
1806
  scrollLeft: Wn
@@ -1806,47 +1808,47 @@ const To = ({ widths: e, heights: t }) => {
1806
1808
  S.current = !1;
1807
1809
  }, 100);
1808
1810
  }
1809
- }, [l, g, m]), z(() => {
1811
+ }, [l, g, h]), z(() => {
1810
1812
  const k = Object.entries(D);
1811
- if (N.current || S.current) {
1812
- N.current = !1;
1813
+ if (L.current || S.current) {
1814
+ L.current = !1;
1813
1815
  return;
1814
1816
  }
1815
1817
  let G = 0, B = -1;
1816
- k.forEach((Q) => {
1817
- B < Q[1] && (G = Number(Q[0]), B = Q[1]);
1818
+ k.forEach((ee) => {
1819
+ B < ee[1] && (G = Number(ee[0]), B = ee[1]);
1818
1820
  }), G && f(G);
1819
1821
  }, [D, f]), z(() => () => {
1820
1822
  M.current && clearTimeout(M.current), P.current && clearTimeout(P.current);
1821
1823
  }, []);
1822
- const he = A(() => ee(le["rp-pages-container"], {
1824
+ const he = A(() => te(le["rp-pages-container"], {
1823
1825
  [le["rp-cursor-grab"]]: Z && !$,
1824
1826
  [le["rp-cursor-grabbing"]]: Z && $
1825
1827
  }), [Z, $]), we = x(
1826
1828
  (k) => {
1827
1829
  if (Z && k) {
1828
- const G = ee(le["rp-pages"]), B = document.querySelector(`.${G}`);
1830
+ const G = te(le["rp-pages"]), B = document.querySelector(`.${G}`);
1829
1831
  K(B);
1830
1832
  }
1831
1833
  },
1832
1834
  [Z, K, le]
1833
1835
  );
1834
- return /* @__PURE__ */ s("div", { ref: e, tabIndex: -1, className: he, children: /* @__PURE__ */ s(Po, { children: ({ width: k, height: G }) => /* @__PURE__ */ s("div", { "data-rp": "pages", ref: we, style: { width: k, height: G, scrollBehavior: U }, children: m === J.PAGE_SCROLLING ? /* @__PURE__ */ s(
1836
+ return /* @__PURE__ */ a("div", { ref: e, tabIndex: -1, className: he, children: /* @__PURE__ */ a(Po, { children: ({ width: k, height: G }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: we, style: { width: k, height: G, scrollBehavior: U }, children: h === J.PAGE_SCROLLING ? /* @__PURE__ */ a(
1835
1837
  "div",
1836
1838
  {
1837
- ref: a,
1839
+ ref: s,
1838
1840
  style: { width: k, height: G },
1839
- className: ee(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
1840
- children: g === ze.DUAL_PAGE ? /* @__PURE__ */ s(To, { widths: E, heights: w }) : /* @__PURE__ */ s(So, { widths: E, heights: w })
1841
+ className: te(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
1842
+ children: g === Fe.DUAL_PAGE ? /* @__PURE__ */ a(To, { widths: E, heights: w }) : /* @__PURE__ */ a(So, { widths: E, heights: w })
1841
1843
  }
1842
- ) : I ? /* @__PURE__ */ s(
1844
+ ) : I ? /* @__PURE__ */ a(
1843
1845
  go,
1844
1846
  {
1845
1847
  ref: o,
1846
1848
  itemData: pe,
1847
1849
  outerRef: c,
1848
1850
  innerRef: _,
1849
- onScroll: Y,
1851
+ onScroll: Q,
1850
1852
  columnCount: T,
1851
1853
  columnWidth: E,
1852
1854
  rowHeight: w,
@@ -1855,114 +1857,126 @@ const To = ({ widths: e, heights: t }) => {
1855
1857
  estimatedColumnWidth: I,
1856
1858
  estimatedRowHeight: y,
1857
1859
  rowCount: b,
1858
- className: ee(
1860
+ className: te(
1859
1861
  le["rp-pages"],
1860
- m === J.HORIZONTAL_SCROLLING ? le["rp-pages-horizontal-scroll"] : ""
1862
+ h === J.HORIZONTAL_SCROLLING ? le["rp-pages-horizontal-scroll"] : ""
1861
1863
  ),
1862
1864
  style: { scrollBehavior: U },
1863
1865
  children: yo
1864
1866
  }
1865
- ) : null }) }) });
1866
- }, Se = {
1867
- "rp-toolbar-content": "_rp-toolbar-content_fw3uq_1",
1868
- "rp-toolbar-wrapper": "_rp-toolbar-wrapper_fw3uq_10",
1869
- "rp-toolbar-start": "_rp-toolbar-start_fw3uq_18",
1870
- "rp-toolbar-middle": "_rp-toolbar-middle_fw3uq_24",
1871
- "rp-toolbar-end": "_rp-toolbar-end_fw3uq_31"
1872
- }, nt = {
1867
+ ) : /* @__PURE__ */ a(
1868
+ "div",
1869
+ {
1870
+ style: {
1871
+ display: "flex",
1872
+ justifyContent: "center",
1873
+ alignItems: "center",
1874
+ height: "100%",
1875
+ width: "100%"
1876
+ },
1877
+ children: /* @__PURE__ */ a(Le, {})
1878
+ }
1879
+ ) }) }) });
1880
+ }, ye = {
1881
+ "rp-toolbar-content": "_rp-toolbar-content_2cv36_1",
1882
+ "rp-toolbar-wrapper": "_rp-toolbar-wrapper_2cv36_10",
1883
+ "rp-toolbar-start": "_rp-toolbar-start_2cv36_32",
1884
+ "rp-toolbar-middle": "_rp-toolbar-middle_2cv36_38",
1885
+ "rp-toolbar-end": "_rp-toolbar-end_2cv36_45"
1886
+ }, rt = {
1873
1887
  "rp-paginate": "_rp-paginate_1vu6o_1",
1874
1888
  "rp-page-input": "_rp-page-input_1vu6o_6",
1875
1889
  "rp-total-page": "_rp-total-page_1vu6o_12"
1876
1890
  }, Io = () => {
1877
1891
  const { prevIcon: e } = ce();
1878
- return e || /* @__PURE__ */ s(Re, {});
1892
+ return e || /* @__PURE__ */ a(Re, {});
1879
1893
  }, xo = () => {
1880
1894
  const { nextIcon: e } = ce();
1881
- return e || /* @__PURE__ */ s(Re, { style: { transform: "rotate(180deg" } });
1895
+ return e || /* @__PURE__ */ a(Re, { style: { transform: "rotate(180deg" } });
1882
1896
  }, Ro = () => {
1883
- const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: a } = oe(), [c, i] = H(e.toString()), { pageNavigationTool: l = !0 } = de(), { isSmallScreen: p } = _e();
1897
+ const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: s } = oe(), [c, i] = H(e.toString()), { pageNavigationTool: l = !0 } = de(), { isSmallScreen: p } = _e();
1884
1898
  z(() => {
1885
1899
  i(e.toString());
1886
1900
  }, [e]);
1887
- const h = x((g) => {
1901
+ const m = x((g) => {
1888
1902
  const _ = g.target.value;
1889
1903
  i(_);
1890
1904
  }, []), f = x(() => {
1891
- const g = a(c);
1905
+ const g = s(c);
1892
1906
  g.success || i(g.currentPage.toString());
1893
- }, [a, c, t]), u = x(() => {
1907
+ }, [s, c, t]), u = x(() => {
1894
1908
  i(e.toString());
1895
- }, [e]), m = x(
1909
+ }, [e]), h = x(
1896
1910
  (g) => {
1897
1911
  g.key === "Enter" && f();
1898
1912
  },
1899
1913
  [f]
1900
1914
  );
1901
- return typeof l != "boolean" ? /* @__PURE__ */ s(
1915
+ return typeof l != "boolean" ? /* @__PURE__ */ a(
1902
1916
  l,
1903
1917
  {
1904
1918
  total: t,
1905
1919
  current: e,
1906
1920
  nextPage: r,
1907
1921
  prevPage: o,
1908
- goToPage: a,
1922
+ goToPage: s,
1909
1923
  changePage: n
1910
1924
  }
1911
- ) : l ? /* @__PURE__ */ O("div", { className: nt["rp-paginate"], children: [
1912
- !p && /* @__PURE__ */ s(te, { content: "Previous page", children: /* @__PURE__ */ s(X, { onClick: o, disabled: e === 1, children: /* @__PURE__ */ s(Io, {}) }) }),
1913
- /* @__PURE__ */ s(
1925
+ ) : l ? /* @__PURE__ */ O("div", { className: rt["rp-paginate"], children: [
1926
+ !p && /* @__PURE__ */ a(ne, { content: "Previous page", children: /* @__PURE__ */ a(X, { onClick: o, disabled: e === 1, children: /* @__PURE__ */ a(Io, {}) }) }),
1927
+ /* @__PURE__ */ a(
1914
1928
  jt,
1915
1929
  {
1916
- onKeyDown: m,
1930
+ onKeyDown: h,
1917
1931
  onBlur: u,
1918
- onChange: h,
1932
+ onChange: m,
1919
1933
  value: c,
1920
- className: nt["rp-page-input"]
1934
+ className: rt["rp-page-input"]
1921
1935
  }
1922
1936
  ),
1923
- /* @__PURE__ */ O("span", { className: nt["rp-total-page"], children: [
1937
+ /* @__PURE__ */ O("span", { className: rt["rp-total-page"], children: [
1924
1938
  "/",
1925
1939
  t
1926
1940
  ] }),
1927
- !p && /* @__PURE__ */ s(te, { content: "Next page", children: /* @__PURE__ */ s(X, { onClick: r, disabled: e === t, children: /* @__PURE__ */ s(xo, {}) }) })
1941
+ !p && /* @__PURE__ */ a(ne, { content: "Next page", children: /* @__PURE__ */ a(X, { onClick: r, disabled: e === t, children: /* @__PURE__ */ a(xo, {}) }) })
1928
1942
  ] }) : null;
1929
1943
  };
1930
- var Ct = "Dialog", [gn, Ks] = Ir(Ct), [Lo, ae] = gn(Ct), vn = (e) => {
1944
+ var Ct = "Dialog", [gn, Ks] = wr(Ct), [No, ae] = gn(Ct), vn = (e) => {
1931
1945
  const {
1932
1946
  __scopeDialog: t,
1933
1947
  children: n,
1934
1948
  open: r,
1935
1949
  defaultOpen: o,
1936
- onOpenChange: a,
1950
+ onOpenChange: s,
1937
1951
  modal: c = !0
1938
- } = e, i = V.useRef(null), l = V.useRef(null), [p = !1, h] = Rr({
1952
+ } = e, i = V.useRef(null), l = V.useRef(null), [p = !1, m] = Pr({
1939
1953
  prop: r,
1940
1954
  defaultProp: o,
1941
- onChange: a
1955
+ onChange: s
1942
1956
  });
1943
- return /* @__PURE__ */ s(
1944
- Lo,
1957
+ return /* @__PURE__ */ a(
1958
+ No,
1945
1959
  {
1946
1960
  scope: t,
1947
1961
  triggerRef: i,
1948
1962
  contentRef: l,
1949
- contentId: Ke(),
1950
- titleId: Ke(),
1951
- descriptionId: Ke(),
1963
+ contentId: Xe(),
1964
+ titleId: Xe(),
1965
+ descriptionId: Xe(),
1952
1966
  open: p,
1953
- onOpenChange: h,
1954
- onOpenToggle: V.useCallback(() => h((f) => !f), [h]),
1967
+ onOpenChange: m,
1968
+ onOpenToggle: V.useCallback(() => m((f) => !f), [m]),
1955
1969
  modal: c,
1956
1970
  children: n
1957
1971
  }
1958
1972
  );
1959
1973
  };
1960
1974
  vn.displayName = Ct;
1961
- var _n = "DialogTrigger", No = V.forwardRef(
1975
+ var _n = "DialogTrigger", Lo = V.forwardRef(
1962
1976
  (e, t) => {
1963
- const { __scopeDialog: n, ...r } = e, o = ae(_n, n), a = gt(t, o.triggerRef);
1964
- return /* @__PURE__ */ s(
1965
- Ne.button,
1977
+ const { __scopeDialog: n, ...r } = e, o = ae(_n, n), s = gt(t, o.triggerRef);
1978
+ return /* @__PURE__ */ a(
1979
+ Me.button,
1966
1980
  {
1967
1981
  type: "button",
1968
1982
  "aria-haspopup": "dialog",
@@ -1970,35 +1984,35 @@ var _n = "DialogTrigger", No = V.forwardRef(
1970
1984
  "aria-controls": o.contentId,
1971
1985
  "data-state": St(o.open),
1972
1986
  ...r,
1973
- ref: a,
1987
+ ref: s,
1974
1988
  onClick: xe(e.onClick, o.onOpenToggle)
1975
1989
  }
1976
1990
  );
1977
1991
  }
1978
1992
  );
1979
- No.displayName = _n;
1993
+ Lo.displayName = _n;
1980
1994
  var Pt = "DialogPortal", [Mo, wn] = gn(Pt, {
1981
1995
  forceMount: void 0
1982
1996
  }), bn = (e) => {
1983
- const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = ae(Pt, t);
1984
- return /* @__PURE__ */ s(Mo, { scope: t, forceMount: n, children: V.Children.map(r, (c) => /* @__PURE__ */ s(vt, { present: n || a.open, children: /* @__PURE__ */ s(yr, { asChild: !0, container: o, children: c }) })) });
1997
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = ae(Pt, t);
1998
+ return /* @__PURE__ */ a(Mo, { scope: t, forceMount: n, children: V.Children.map(r, (c) => /* @__PURE__ */ a(vt, { present: n || s.open, children: /* @__PURE__ */ a(Rr, { asChild: !0, container: o, children: c }) })) });
1985
1999
  };
1986
2000
  bn.displayName = Pt;
1987
- var ke = "DialogOverlay", Cn = V.forwardRef(
2001
+ var We = "DialogOverlay", Cn = V.forwardRef(
1988
2002
  (e, t) => {
1989
- const n = wn(ke, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ae(ke, e.__scopeDialog);
1990
- return a.modal ? /* @__PURE__ */ s(vt, { present: r || a.open, children: /* @__PURE__ */ s(Eo, { ...o, ref: t }) }) : null;
2003
+ const n = wn(We, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = ae(We, e.__scopeDialog);
2004
+ return s.modal ? /* @__PURE__ */ a(vt, { present: r || s.open, children: /* @__PURE__ */ a(Eo, { ...o, ref: t }) }) : null;
1991
2005
  }
1992
2006
  );
1993
- Cn.displayName = ke;
2007
+ Cn.displayName = We;
1994
2008
  var Eo = V.forwardRef(
1995
2009
  (e, t) => {
1996
- const { __scopeDialog: n, ...r } = e, o = ae(ke, n);
2010
+ const { __scopeDialog: n, ...r } = e, o = ae(We, n);
1997
2011
  return (
1998
2012
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1999
2013
  // ie. when `Overlay` and `Content` are siblings
2000
- /* @__PURE__ */ s(wr, { as: br, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
2001
- Ne.div,
2014
+ /* @__PURE__ */ a(Sr, { as: br, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
2015
+ Me.div,
2002
2016
  {
2003
2017
  "data-state": St(o.open),
2004
2018
  ...r,
@@ -2010,8 +2024,8 @@ var Eo = V.forwardRef(
2010
2024
  }
2011
2025
  ), ve = "DialogContent", Pn = V.forwardRef(
2012
2026
  (e, t) => {
2013
- const n = wn(ve, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ae(ve, e.__scopeDialog);
2014
- return /* @__PURE__ */ s(vt, { present: r || a.open, children: a.modal ? /* @__PURE__ */ s(Oo, { ...o, ref: t }) : /* @__PURE__ */ s(Do, { ...o, ref: t }) });
2027
+ const n = wn(ve, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = ae(ve, e.__scopeDialog);
2028
+ return /* @__PURE__ */ a(vt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ a(Oo, { ...o, ref: t }) : /* @__PURE__ */ a(Do, { ...o, ref: t }) });
2015
2029
  }
2016
2030
  );
2017
2031
  Pn.displayName = ve;
@@ -2019,27 +2033,27 @@ var Oo = V.forwardRef(
2019
2033
  (e, t) => {
2020
2034
  const n = ae(ve, e.__scopeDialog), r = V.useRef(null), o = gt(t, n.contentRef, r);
2021
2035
  return V.useEffect(() => {
2022
- const a = r.current;
2023
- if (a)
2024
- return Cr(a);
2025
- }, []), /* @__PURE__ */ s(
2036
+ const s = r.current;
2037
+ if (s)
2038
+ return yr(s);
2039
+ }, []), /* @__PURE__ */ a(
2026
2040
  Tn,
2027
2041
  {
2028
2042
  ...e,
2029
2043
  ref: o,
2030
2044
  trapFocus: n.open,
2031
2045
  disableOutsidePointerEvents: !0,
2032
- onCloseAutoFocus: xe(e.onCloseAutoFocus, (a) => {
2046
+ onCloseAutoFocus: xe(e.onCloseAutoFocus, (s) => {
2033
2047
  var c;
2034
- a.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
2048
+ s.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
2035
2049
  }),
2036
- onPointerDownOutside: xe(e.onPointerDownOutside, (a) => {
2037
- const c = a.detail.originalEvent, i = c.button === 0 && c.ctrlKey === !0;
2038
- (c.button === 2 || i) && a.preventDefault();
2050
+ onPointerDownOutside: xe(e.onPointerDownOutside, (s) => {
2051
+ const c = s.detail.originalEvent, i = c.button === 0 && c.ctrlKey === !0;
2052
+ (c.button === 2 || i) && s.preventDefault();
2039
2053
  }),
2040
2054
  onFocusOutside: xe(
2041
2055
  e.onFocusOutside,
2042
- (a) => a.preventDefault()
2056
+ (s) => s.preventDefault()
2043
2057
  )
2044
2058
  }
2045
2059
  );
@@ -2047,40 +2061,40 @@ var Oo = V.forwardRef(
2047
2061
  ), Do = V.forwardRef(
2048
2062
  (e, t) => {
2049
2063
  const n = ae(ve, e.__scopeDialog), r = V.useRef(!1), o = V.useRef(!1);
2050
- return /* @__PURE__ */ s(
2064
+ return /* @__PURE__ */ a(
2051
2065
  Tn,
2052
2066
  {
2053
2067
  ...e,
2054
2068
  ref: t,
2055
2069
  trapFocus: !1,
2056
2070
  disableOutsidePointerEvents: !1,
2057
- onCloseAutoFocus: (a) => {
2071
+ onCloseAutoFocus: (s) => {
2058
2072
  var c, i;
2059
- (c = e.onCloseAutoFocus) == null || c.call(e, a), a.defaultPrevented || (r.current || (i = n.triggerRef.current) == null || i.focus(), a.preventDefault()), r.current = !1, o.current = !1;
2073
+ (c = e.onCloseAutoFocus) == null || c.call(e, s), s.defaultPrevented || (r.current || (i = n.triggerRef.current) == null || i.focus(), s.preventDefault()), r.current = !1, o.current = !1;
2060
2074
  },
2061
- onInteractOutside: (a) => {
2075
+ onInteractOutside: (s) => {
2062
2076
  var l, p;
2063
- (l = e.onInteractOutside) == null || l.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2064
- const c = a.target;
2065
- ((p = n.triggerRef.current) == null ? void 0 : p.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
2077
+ (l = e.onInteractOutside) == null || l.call(e, s), s.defaultPrevented || (r.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2078
+ const c = s.target;
2079
+ ((p = n.triggerRef.current) == null ? void 0 : p.contains(c)) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
2066
2080
  }
2067
2081
  }
2068
2082
  );
2069
2083
  }
2070
2084
  ), Tn = V.forwardRef(
2071
2085
  (e, t) => {
2072
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, i = ae(ve, n), l = V.useRef(null), p = gt(t, l);
2073
- return Pr(), /* @__PURE__ */ O(Ae, { children: [
2074
- /* @__PURE__ */ s(
2075
- Tr,
2086
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = e, i = ae(ve, n), l = V.useRef(null), p = gt(t, l);
2087
+ return Ir(), /* @__PURE__ */ O(ze, { children: [
2088
+ /* @__PURE__ */ a(
2089
+ xr,
2076
2090
  {
2077
2091
  asChild: !0,
2078
2092
  loop: !0,
2079
2093
  trapped: r,
2080
2094
  onMountAutoFocus: o,
2081
- onUnmountAutoFocus: a,
2082
- children: /* @__PURE__ */ s(
2083
- Sr,
2095
+ onUnmountAutoFocus: s,
2096
+ children: /* @__PURE__ */ a(
2097
+ Tr,
2084
2098
  {
2085
2099
  role: "dialog",
2086
2100
  id: i.contentId,
@@ -2094,31 +2108,31 @@ var Oo = V.forwardRef(
2094
2108
  )
2095
2109
  }
2096
2110
  ),
2097
- /* @__PURE__ */ O(Ae, { children: [
2098
- /* @__PURE__ */ s(zo, { titleId: i.titleId }),
2099
- /* @__PURE__ */ s(ko, { contentRef: l, descriptionId: i.descriptionId })
2111
+ /* @__PURE__ */ O(ze, { children: [
2112
+ /* @__PURE__ */ a(zo, { titleId: i.titleId }),
2113
+ /* @__PURE__ */ a(ko, { contentRef: l, descriptionId: i.descriptionId })
2100
2114
  ] })
2101
2115
  ] });
2102
2116
  }
2103
2117
  ), Tt = "DialogTitle", Sn = V.forwardRef(
2104
2118
  (e, t) => {
2105
2119
  const { __scopeDialog: n, ...r } = e, o = ae(Tt, n);
2106
- return /* @__PURE__ */ s(Ne.h2, { id: o.titleId, ...r, ref: t });
2120
+ return /* @__PURE__ */ a(Me.h2, { id: o.titleId, ...r, ref: t });
2107
2121
  }
2108
2122
  );
2109
2123
  Sn.displayName = Tt;
2110
2124
  var yn = "DialogDescription", Ao = V.forwardRef(
2111
2125
  (e, t) => {
2112
2126
  const { __scopeDialog: n, ...r } = e, o = ae(yn, n);
2113
- return /* @__PURE__ */ s(Ne.p, { id: o.descriptionId, ...r, ref: t });
2127
+ return /* @__PURE__ */ a(Me.p, { id: o.descriptionId, ...r, ref: t });
2114
2128
  }
2115
2129
  );
2116
2130
  Ao.displayName = yn;
2117
2131
  var In = "DialogClose", xn = V.forwardRef(
2118
2132
  (e, t) => {
2119
2133
  const { __scopeDialog: n, ...r } = e, o = ae(In, n);
2120
- return /* @__PURE__ */ s(
2121
- Ne.button,
2134
+ return /* @__PURE__ */ a(
2135
+ Me.button,
2122
2136
  {
2123
2137
  type: "button",
2124
2138
  ...r,
@@ -2132,12 +2146,12 @@ xn.displayName = In;
2132
2146
  function St(e) {
2133
2147
  return e ? "open" : "closed";
2134
2148
  }
2135
- var Rn = "DialogTitleWarning", [Xs, Ln] = xr(Rn, {
2149
+ var Rn = "DialogTitleWarning", [Xs, Nn] = Cr(Rn, {
2136
2150
  contentName: ve,
2137
2151
  titleName: Tt,
2138
2152
  docsSlug: "dialog"
2139
2153
  }), zo = ({ titleId: e }) => {
2140
- const t = Ln(Rn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2154
+ const t = Nn(Rn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2141
2155
 
2142
2156
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2143
2157
 
@@ -2146,10 +2160,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2146
2160
  e && (document.getElementById(e) || console.error(n));
2147
2161
  }, [n, e]), null;
2148
2162
  }, Fo = "DialogDescriptionWarning", ko = ({ contentRef: e, descriptionId: t }) => {
2149
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ln(Fo).contentName}}.`;
2163
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nn(Fo).contentName}}.`;
2150
2164
  return V.useEffect(() => {
2151
- var a;
2152
- const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
2165
+ var s;
2166
+ const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
2153
2167
  t && o && (document.getElementById(t) || console.warn(r));
2154
2168
  }, [r, e, t]), null;
2155
2169
  }, Wo = vn, Ho = bn, $o = Cn, Go = Pn, Vo = Sn, Uo = xn;
@@ -2162,26 +2176,26 @@ const ge = {
2162
2176
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2163
2177
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2164
2178
  }, qo = () => {
2165
- const { pdfProperties: e } = re(), { container: t } = Le(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Nr(), o = A(() => {
2179
+ const { pdfProperties: e } = Y(), { container: t } = Ne(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Lr(), o = A(() => {
2166
2180
  if (!e)
2167
2181
  return [];
2168
2182
  const {
2169
- fileSize: a,
2183
+ fileSize: s,
2170
2184
  filename: c,
2171
2185
  title: i,
2172
2186
  author: l,
2173
2187
  subject: p,
2174
- createdOn: h,
2188
+ createdOn: m,
2175
2189
  creator: f,
2176
2190
  keywords: u,
2177
- modifiedOn: m,
2191
+ modifiedOn: h,
2178
2192
  pdfProducer: g,
2179
2193
  pdfVersion: _,
2180
2194
  pageCount: v
2181
2195
  } = e;
2182
2196
  return [
2183
2197
  { label: "File name", value: c },
2184
- { label: "File size", value: a },
2198
+ { label: "File size", value: s },
2185
2199
  { separate: !0 },
2186
2200
  { label: "Title", value: i },
2187
2201
  { label: "Author", value: l },
@@ -2190,11 +2204,11 @@ const ge = {
2190
2204
  { label: "Creator", value: f },
2191
2205
  {
2192
2206
  label: "Created on",
2193
- value: h ? it(h) : ""
2207
+ value: m ? ct(m) : ""
2194
2208
  },
2195
2209
  {
2196
2210
  label: "Modified on",
2197
- value: m ? it(m) : ""
2211
+ value: h ? ct(h) : ""
2198
2212
  },
2199
2213
  { separate: !0 },
2200
2214
  { label: "PDF producer", value: g },
@@ -2202,12 +2216,12 @@ const ge = {
2202
2216
  { label: "Page count", value: v }
2203
2217
  ];
2204
2218
  }, [e]);
2205
- return /* @__PURE__ */ s(Wo, { open: n, onOpenChange: r, children: /* @__PURE__ */ s(Ho, { container: t, children: /* @__PURE__ */ O("div", { className: ge["rp-dialog-wrapper"], children: [
2206
- /* @__PURE__ */ s($o, { className: ge["rp-dialog-overlay"] }),
2219
+ return /* @__PURE__ */ a(Wo, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(Ho, { container: t, children: /* @__PURE__ */ O("div", { className: ge["rp-dialog-wrapper"], children: [
2220
+ /* @__PURE__ */ a($o, { className: ge["rp-dialog-overlay"] }),
2207
2221
  /* @__PURE__ */ O(Go, { className: ge["rp-document-dialog"], children: [
2208
- /* @__PURE__ */ s(Vo, { className: ge["rp-dialog-title"], children: "Document Properties" }),
2209
- /* @__PURE__ */ s("div", { className: ge["rp-document-properties"], children: o.map((a, c) => /* @__PURE__ */ s("div", { children: a.separate ? /* @__PURE__ */ s("div", { className: ge["rp-properties-divider"] }) : /* @__PURE__ */ s(Lr, { label: a.label, value: a.value }) }, c)) }),
2210
- /* @__PURE__ */ s(Uo, { asChild: !0, className: ge["rp-dialog-close"], children: /* @__PURE__ */ s(Qt, {}) })
2222
+ /* @__PURE__ */ a(Vo, { className: ge["rp-dialog-title"], children: "Document Properties" }),
2223
+ /* @__PURE__ */ a("div", { className: ge["rp-document-properties"], children: o.map((s, c) => /* @__PURE__ */ a("div", { children: s.separate ? /* @__PURE__ */ a("div", { className: ge["rp-properties-divider"] }) : /* @__PURE__ */ a(Nr, { label: s.label, value: s.value }) }, c)) }),
2224
+ /* @__PURE__ */ a(Uo, { asChild: !0, className: ge["rp-dialog-close"], children: /* @__PURE__ */ a(Qt, {}) })
2211
2225
  ] })
2212
2226
  ] }) }) });
2213
2227
  }, Zo = {
@@ -2216,31 +2230,31 @@ const ge = {
2216
2230
  const n = await (await fetch(e)).blob();
2217
2231
  return jo(n);
2218
2232
  }, Ko = () => {
2219
- const { filename: e, pdfSrc: t } = re();
2233
+ const { filename: e, pdfSrc: t } = Y();
2220
2234
  return { download: x(async () => {
2221
2235
  if (!e || !t)
2222
2236
  throw new Error("There is no PDF source to download");
2223
2237
  const r = document.createElement("a");
2224
2238
  r.href = await Bo(t), r.download = e, document.body.appendChild(r), r.click(), document.body.removeChild(r);
2225
2239
  }, []) };
2226
- }, Nn = () => {
2240
+ }, Ln = () => {
2227
2241
  const { downloadIcon: e } = ce();
2228
- return e || /* @__PURE__ */ s(Ar, {});
2229
- }, Mn = ({ children: e, className: t }) => /* @__PURE__ */ s(te, { className: t, content: "Download file", children: e }), Xo = ({ download: e }) => /* @__PURE__ */ s(Mn, { children: /* @__PURE__ */ s(X, { onClick: e, children: /* @__PURE__ */ s(Nn, {}) }) }), Jo = ({ download: e }) => /* @__PURE__ */ s(fe, { onClick: e, children: /* @__PURE__ */ O(Mn, { className: "rp-menu-item", children: [
2230
- /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(Nn, {}) }),
2242
+ return e || /* @__PURE__ */ a(Ar, {});
2243
+ }, Mn = ({ children: e, className: t }) => /* @__PURE__ */ a(ne, { className: t, content: "Download file", children: e }), Xo = ({ download: e }) => /* @__PURE__ */ a(Mn, { children: /* @__PURE__ */ a(X, { onClick: e, children: /* @__PURE__ */ a(Ln, {}) }) }), Jo = ({ download: e }) => /* @__PURE__ */ a(fe, { onClick: e, children: /* @__PURE__ */ O(Mn, { className: "rp-menu-item", children: [
2244
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Ln, {}) }),
2231
2245
  "Download file"
2232
2246
  ] }) }), En = () => {
2233
2247
  const { download: e } = Ko(), { downloadTool: t = !0 } = de(), { isSmallScreen: n } = _e();
2234
- return t ? n ? /* @__PURE__ */ s(Jo, { download: e }) : typeof t == "function" ? /* @__PURE__ */ s(t, { download: e }) : t ? /* @__PURE__ */ s(Xo, { download: e }) : null : null;
2248
+ return t ? n ? /* @__PURE__ */ a(Jo, { download: e }) : typeof t == "function" ? /* @__PURE__ */ a(t, { download: e }) : t ? /* @__PURE__ */ a(Xo, { download: e }) : null : null;
2235
2249
  }, On = () => {
2236
2250
  const { printIcon: e } = ce();
2237
- return e || /* @__PURE__ */ s(zr, {});
2238
- }, Dn = ({ children: e, className: t }) => /* @__PURE__ */ s(te, { className: t, content: "Print", children: e }), Yo = ({ print: e }) => /* @__PURE__ */ s(Dn, { children: /* @__PURE__ */ s(X, { onClick: e, children: /* @__PURE__ */ s(On, {}) }) }), Qo = ({ print: e }) => /* @__PURE__ */ s(fe, { onClick: e, children: /* @__PURE__ */ O(Dn, { className: "rp-menu-item", children: [
2239
- /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(On, {}) }),
2251
+ return e || /* @__PURE__ */ a(zr, {});
2252
+ }, Dn = ({ children: e, className: t }) => /* @__PURE__ */ a(ne, { className: t, content: "Print", children: e }), Yo = ({ print: e }) => /* @__PURE__ */ a(Dn, { children: /* @__PURE__ */ a(X, { onClick: e, children: /* @__PURE__ */ a(On, {}) }) }), Qo = ({ print: e }) => /* @__PURE__ */ a(fe, { onClick: e, children: /* @__PURE__ */ O(Dn, { className: "rp-menu-item", children: [
2253
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(On, {}) }),
2240
2254
  "Print"
2241
2255
  ] }) }), An = () => {
2242
- const { print: e, cancel: t, setOnProgress: n, setOnComplete: r, setOnError: o, progress: a } = wt(), { printTool: c = !0 } = de(), { isSmallScreen: i } = _e();
2243
- return c ? i ? /* @__PURE__ */ s(Qo, { print: e }) : typeof c == "function" ? /* @__PURE__ */ s(
2256
+ const { print: e, cancel: t, setOnProgress: n, setOnComplete: r, setOnError: o, progress: s } = wt(), { printTool: c = !0 } = de(), { isSmallScreen: i } = _e();
2257
+ return c ? i ? /* @__PURE__ */ a(Qo, { print: e }) : typeof c == "function" ? /* @__PURE__ */ a(
2244
2258
  c,
2245
2259
  {
2246
2260
  print: e,
@@ -2248,163 +2262,161 @@ const ge = {
2248
2262
  setOnProgress: n,
2249
2263
  setOnError: o,
2250
2264
  setOnComplete: r,
2251
- progress: a
2265
+ progress: s
2252
2266
  }
2253
- ) : c ? /* @__PURE__ */ s(Yo, { print: e }) : null : null;
2267
+ ) : c ? /* @__PURE__ */ a(Yo, { print: e }) : null : null;
2254
2268
  }, ea = {
2255
2269
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2256
2270
  }, ta = () => {
2257
2271
  const { goToFirstPageIcon: e } = ce();
2258
- return e || /* @__PURE__ */ s(tn, { className: ea["rp-go-to-Top"] });
2272
+ return e || /* @__PURE__ */ a(tn, { className: ea["rp-go-to-Top"] });
2259
2273
  }, na = () => {
2260
2274
  const { goToLastPageIcon: e } = ce();
2261
- return e || /* @__PURE__ */ s(tn, {});
2275
+ return e || /* @__PURE__ */ a(tn, {});
2262
2276
  }, ra = () => {
2263
- const { goToPage: e, totalPages: t, focusedPage: n } = oe(), { jumpNavigationTool: r = !0 } = de(), o = A(() => n === 1, [n]), a = A(() => n === t, [n, t]), c = x(() => {
2277
+ const { goToPage: e, totalPages: t, focusedPage: n } = oe(), { jumpNavigationTool: r = !0 } = de(), o = A(() => n === 1, [n]), s = A(() => n === t, [n, t]), c = x(() => {
2264
2278
  e(1);
2265
2279
  }, [e]), i = x(() => {
2266
2280
  e(t);
2267
2281
  }, [e, t]);
2268
- return r ? /* @__PURE__ */ O(Fe, { children: [
2269
- /* @__PURE__ */ s(fe, { disabled: o, onClick: c, children: /* @__PURE__ */ O(te, { className: "rp-menu-item", content: "Go to first page", children: [
2270
- /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(ta, {}) }),
2282
+ return r ? /* @__PURE__ */ O(ke, { children: [
2283
+ /* @__PURE__ */ a(fe, { disabled: o, onClick: c, children: /* @__PURE__ */ O(ne, { className: "rp-menu-item", content: "Go to first page", children: [
2284
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(ta, {}) }),
2271
2285
  "First page"
2272
2286
  ] }) }),
2273
- /* @__PURE__ */ s(fe, { disabled: a, onClick: i, children: /* @__PURE__ */ O(te, { className: "rp-menu-item", content: "Go to last page", children: [
2274
- /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(na, {}) }),
2287
+ /* @__PURE__ */ a(fe, { disabled: s, onClick: i, children: /* @__PURE__ */ O(ne, { className: "rp-menu-item", content: "Go to last page", children: [
2288
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(na, {}) }),
2275
2289
  "Last page"
2276
2290
  ] }) }),
2277
- /* @__PURE__ */ s(_t, {})
2291
+ /* @__PURE__ */ a(_t, {})
2278
2292
  ] }) : null;
2279
2293
  }, oa = () => {
2280
- const { container: e } = Le(), { isSmallScreen: t } = _e(), {
2294
+ const { container: e } = Ne(), { isSmallScreen: t } = _e(), {
2281
2295
  openFileTool: n,
2282
2296
  downloadTool: r,
2283
2297
  documentProperties: o,
2284
- scrollModeTool: a,
2298
+ scrollModeTool: s,
2285
2299
  rotateTool: c,
2286
2300
  selectionModeTool: i,
2287
2301
  jumpNavigationTool: l,
2288
2302
  printTool: p,
2289
- fullscreenTool: h
2303
+ fullscreenTool: m
2290
2304
  } = de();
2291
2305
  return A(() => {
2292
- const u = l || c || i || a || o;
2293
- let m = !1;
2294
- return t && (m = !(!n && !r && !p && !h)), u || m;
2306
+ const u = l || c || i || s || o;
2307
+ let h = !1;
2308
+ return t && (h = !(!n && !r && !p && !m)), u || h;
2295
2309
  }, [
2296
2310
  n,
2297
2311
  r,
2298
2312
  o,
2299
- a,
2313
+ s,
2300
2314
  c,
2301
2315
  i,
2302
2316
  l,
2303
2317
  t
2304
2318
  ]) ? /* @__PURE__ */ O(Mr, { children: [
2305
- /* @__PURE__ */ s(
2319
+ /* @__PURE__ */ a(
2306
2320
  ft,
2307
2321
  {
2308
2322
  container: e,
2309
- triggerComponent: /* @__PURE__ */ s("div", { role: "button", children: /* @__PURE__ */ s(te, { content: "More options", children: /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(_r, {}) }) }) }),
2323
+ triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(ne, { content: "More options", children: /* @__PURE__ */ a(X, { children: /* @__PURE__ */ a(_r, {}) }) }) }),
2310
2324
  children: /* @__PURE__ */ O("div", { className: Zo["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2311
- t && /* @__PURE__ */ O(Fe, { children: [
2312
- /* @__PURE__ */ s(Yt, {}),
2313
- /* @__PURE__ */ s(En, {}),
2314
- /* @__PURE__ */ s(An, {}),
2315
- /* @__PURE__ */ s(en, {}),
2316
- /* @__PURE__ */ s(_t, {})
2325
+ t && /* @__PURE__ */ O(ke, { children: [
2326
+ /* @__PURE__ */ a(Yt, {}),
2327
+ /* @__PURE__ */ a(En, {}),
2328
+ /* @__PURE__ */ a(An, {}),
2329
+ /* @__PURE__ */ a(en, {}),
2330
+ /* @__PURE__ */ a(_t, {})
2317
2331
  ] }),
2318
- /* @__PURE__ */ s(ra, {}),
2319
- /* @__PURE__ */ s(Or, {}),
2320
- /* @__PURE__ */ s(Fr, {}),
2321
- /* @__PURE__ */ s(Dr, {}),
2322
- /* @__PURE__ */ s(Er, {})
2332
+ /* @__PURE__ */ a(ra, {}),
2333
+ /* @__PURE__ */ a(Or, {}),
2334
+ /* @__PURE__ */ a(Fr, {}),
2335
+ /* @__PURE__ */ a(Dr, {}),
2336
+ /* @__PURE__ */ a(Er, {})
2323
2337
  ] })
2324
2338
  }
2325
2339
  ),
2326
- /* @__PURE__ */ s(qo, {})
2340
+ /* @__PURE__ */ a(qo, {})
2327
2341
  ] }) : null;
2328
2342
  }, aa = () => {
2329
2343
  const { isSmallScreen: e } = _e();
2330
- return /* @__PURE__ */ O(Ae, { children: [
2331
- /* @__PURE__ */ s(vr, {}),
2332
- !e && /* @__PURE__ */ O(Ae, { children: [
2333
- /* @__PURE__ */ s(Yt, {}),
2334
- /* @__PURE__ */ s(En, {}),
2335
- /* @__PURE__ */ s(An, {}),
2336
- /* @__PURE__ */ s(en, {})
2344
+ return /* @__PURE__ */ O(ze, { children: [
2345
+ /* @__PURE__ */ a(vr, {}),
2346
+ !e && /* @__PURE__ */ O(ze, { children: [
2347
+ /* @__PURE__ */ a(Yt, {}),
2348
+ /* @__PURE__ */ a(En, {}),
2349
+ /* @__PURE__ */ a(An, {}),
2350
+ /* @__PURE__ */ a(en, {})
2337
2351
  ] }),
2338
- /* @__PURE__ */ s(oa, {})
2352
+ /* @__PURE__ */ a(oa, {})
2339
2353
  ] });
2340
- }, ye = {
2341
- "rp-zoom-wrapper": "_rp-zoom-wrapper_163s9_1",
2342
- "rp-current-zoom-wrapper": "_rp-current-zoom-wrapper_163s9_6",
2343
- "rp-current-zoom-icon": "_rp-current-zoom-icon_163s9_11",
2344
- "rp-current-zoom": "_rp-current-zoom_163s9_6",
2345
- "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_163s9_20"
2346
- }, sa = 25, rt = 1e3, ia = [50, 75, 100, 125, 150, 200, 300, 400], ca = () => {
2354
+ }, Pe = {
2355
+ "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
2356
+ "rp-current-zoom-wrapper": "_rp-current-zoom-wrapper_cocqs_6",
2357
+ "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2358
+ "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2359
+ "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2360
+ }, sa = 25, ot = 1e3, ia = [50, 75, 100, 125, 150, 200, 300, 400], ca = () => {
2347
2361
  const { zoomInIcon: e } = ce();
2348
- return e || /* @__PURE__ */ s(kr, {});
2362
+ return e || /* @__PURE__ */ a(kr, {});
2349
2363
  }, la = () => {
2350
2364
  const { zoomOutIcon: e } = ce();
2351
- return e || /* @__PURE__ */ s(Wr, {});
2365
+ return e || /* @__PURE__ */ a(Wr, {});
2352
2366
  }, ua = () => {
2353
- const { zoomLevel: e, setZoomLevel: t } = Ve(), { container: n, contentRef: r } = Le(), { zoomTool: o = !0 } = de(), { focusedPage: a } = oe(), { rotate: c } = Ge(), { pages: i } = re(), { isSmallScreen: l } = _e(), p = x(() => {
2367
+ const { zoomLevel: e, setZoomLevel: t } = Ue(), { container: n, contentRef: r } = Ne(), { zoomTool: o = !0 } = de(), { focusedPage: s } = oe(), { rotate: c } = Ve(), { pages: i } = Y(), { isSmallScreen: l } = _e(), p = x(() => {
2354
2368
  t((v) => {
2355
2369
  const C = Math.floor(v / 25) * 25;
2356
- return Math.min(C + 25, rt);
2370
+ return Math.min(C + 25, ot);
2357
2371
  });
2358
- }, [t]), h = x(() => {
2372
+ }, [t]), m = x(() => {
2359
2373
  t((v) => {
2360
2374
  const C = Math.ceil(v / 25) * 25;
2361
- return Math.min(C - 25, rt);
2375
+ return Math.min(C - 25, ot);
2362
2376
  });
2363
- }, [t]), f = A(() => e === sa, [e]), u = A(() => e === rt, [e]), m = A(() => {
2377
+ }, [t]), f = A(() => e === sa, [e]), u = A(() => e === ot, [e]), h = A(() => {
2364
2378
  var v;
2365
- return (v = i.get(a)) == null ? void 0 : v.page.getViewport({ scale: 1, rotation: c });
2366
- }, [i, a, c]), g = x(
2379
+ return (v = i.get(s)) == null ? void 0 : v.page.getViewport({ scale: 1, rotation: c });
2380
+ }, [i, s, c]), g = x(
2367
2381
  (v) => {
2368
- const C = ((m == null ? void 0 : m.width) || 0) + 2 * It, S = ((m == null ? void 0 : m.height) || 0) + 2 * It, P = (r == null ? void 0 : r.clientWidth) || 0, L = (r == null ? void 0 : r.clientHeight) || 0, d = Hr(v, P, L, C, S);
2382
+ const C = ((h == null ? void 0 : h.width) || 0) + 2 * It, S = ((h == null ? void 0 : h.height) || 0) + 2 * It, P = (r == null ? void 0 : r.clientWidth) || 0, N = (r == null ? void 0 : r.clientHeight) || 0, d = Hr(v, P, N, C, S);
2369
2383
  t(d);
2370
2384
  },
2371
- [t, m]
2385
+ [t, h]
2372
2386
  ), _ = x(
2373
2387
  (v) => {
2374
2388
  typeof v == "number" ? t(v) : g(v);
2375
2389
  },
2376
2390
  [t, g]
2377
2391
  );
2378
- return typeof o != "boolean" ? /* @__PURE__ */ s(o, { zoomLevel: e, setZoomLevel: t }) : o ? /* @__PURE__ */ O("div", { className: ye["rp-zoom-wrapper"], children: [
2379
- /* @__PURE__ */ s(te, { content: "Zoom out", children: /* @__PURE__ */ s(X, { disabled: f, onClick: h, children: /* @__PURE__ */ s(la, {}) }) }),
2380
- !l && /* @__PURE__ */ s(
2392
+ return typeof o != "boolean" ? /* @__PURE__ */ a(o, { zoomLevel: e, setZoomLevel: t }) : o ? /* @__PURE__ */ O("div", { className: Pe["rp-zoom-wrapper"], children: [
2393
+ /* @__PURE__ */ a(ne, { content: "Zoom out", children: /* @__PURE__ */ a(X, { disabled: f, onClick: m, children: /* @__PURE__ */ a(la, {}) }) }),
2394
+ !l && /* @__PURE__ */ a(
2381
2395
  ft,
2382
2396
  {
2383
2397
  container: n,
2384
- triggerComponent: /* @__PURE__ */ s("div", { role: "button", children: /* @__PURE__ */ s(te, { content: "Select zoom level", children: /* @__PURE__ */ O(X, { className: ye["rp-current-zoom-wrapper"], children: [
2385
- /* @__PURE__ */ O("span", { className: ye["rp-current-zoom"], children: [
2386
- e,
2387
- " %"
2388
- ] }),
2389
- /* @__PURE__ */ s(Re, { className: ye["rp-current-zoom-icon"] })
2398
+ triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(ne, { content: "Select zoom level", children: /* @__PURE__ */ O(X, { className: Pe["rp-current-zoom-wrapper"], children: [
2399
+ /* @__PURE__ */ a("span", { className: Pe["rp-current-zoom-text"], children: e }),
2400
+ /* @__PURE__ */ a("span", { className: Pe["rp-current-zoom-text"], children: "%" }),
2401
+ /* @__PURE__ */ a(Re, { className: Pe["rp-current-zoom-icon"] })
2390
2402
  ] }) }) }),
2391
2403
  style: { minWidth: "200px" },
2392
2404
  align: "center",
2393
- children: /* @__PURE__ */ O("div", { className: ye["rp-zoom-dropdown-content"], children: [
2394
- /* @__PURE__ */ O(Fe, { children: [
2395
- /* @__PURE__ */ s(fe, { onClick: () => _(Be.ACTUAL), children: "Actual size" }),
2396
- /* @__PURE__ */ s(fe, { onClick: () => _(Be.PAGE_FIT), children: "Page fit" }),
2397
- /* @__PURE__ */ s(fe, { onClick: () => _(Be.PAGE_WIDTH), children: "Page width" })
2405
+ children: /* @__PURE__ */ O("div", { className: Pe["rp-zoom-dropdown-content"], children: [
2406
+ /* @__PURE__ */ O(ke, { children: [
2407
+ /* @__PURE__ */ a(fe, { onClick: () => _(Ke.ACTUAL), children: "Actual size" }),
2408
+ /* @__PURE__ */ a(fe, { onClick: () => _(Ke.PAGE_FIT), children: "Page fit" }),
2409
+ /* @__PURE__ */ a(fe, { onClick: () => _(Ke.PAGE_WIDTH), children: "Page width" })
2398
2410
  ] }),
2399
- /* @__PURE__ */ s(_t, {}),
2400
- /* @__PURE__ */ s(Fe, { children: ia.map((v) => /* @__PURE__ */ O(fe, { onClick: () => _(v), children: [
2411
+ /* @__PURE__ */ a(_t, {}),
2412
+ /* @__PURE__ */ a(ke, { children: ia.map((v) => /* @__PURE__ */ O(fe, { onClick: () => _(v), children: [
2401
2413
  v,
2402
2414
  " %"
2403
2415
  ] }, v)) })
2404
2416
  ] })
2405
2417
  }
2406
2418
  ),
2407
- /* @__PURE__ */ s(te, { content: "Zoom in", children: /* @__PURE__ */ s(X, { disabled: u, onClick: p, children: /* @__PURE__ */ s(ca, {}) }) })
2419
+ /* @__PURE__ */ a(ne, { content: "Zoom in", children: /* @__PURE__ */ a(X, { disabled: u, onClick: p, children: /* @__PURE__ */ a(ca, {}) }) })
2408
2420
  ] }) : null;
2409
2421
  }, ie = {
2410
2422
  "rp-search-tool-content": "_rp-search-tool-content_1vxow_1",
@@ -2417,100 +2429,100 @@ const ge = {
2417
2429
  "rp-search-input": "_rp-search-input_1vxow_49"
2418
2430
  }, Ut = () => {
2419
2431
  const { searchIcon: e } = ce();
2420
- return e || /* @__PURE__ */ s($r, {});
2432
+ return e || /* @__PURE__ */ a($r, {});
2421
2433
  }, da = () => {
2422
- const { container: e } = Le(), [t, n] = H(!1), { pdf: r } = re(), [o, a] = H(null), {
2434
+ const { container: e } = Ne(), [t, n] = H(!1), { pdf: r } = Y(), [o, s] = H(null), {
2423
2435
  searchOptions: c,
2424
2436
  setSearchOptions: i,
2425
2437
  loading: l,
2426
2438
  setSearch: p,
2427
- totalMatches: h,
2439
+ totalMatches: m,
2428
2440
  currentMatchPosition: f,
2429
2441
  nextMatch: u,
2430
- prevMatch: m,
2442
+ prevMatch: h,
2431
2443
  search: g
2432
2444
  } = ln(), { searchTool: _ = !0 } = de(), [v, C] = H(g), S = x(() => {
2433
2445
  n(!0);
2434
2446
  }, []), P = x(() => {
2435
2447
  p(""), C(""), n(!1);
2436
- }, [p]), L = x(
2448
+ }, [p]), N = x(
2437
2449
  (R) => {
2438
2450
  R.key === "Escape" && t && P();
2439
2451
  },
2440
2452
  [t]
2441
2453
  ), d = x(
2442
2454
  (R) => {
2443
- R.shiftKey && R.key === "Enter" ? m() : R.key === "Enter" && g !== v ? p(v) : R.key === "Enter" && u();
2455
+ R.shiftKey && R.key === "Enter" ? h() : R.key === "Enter" && g !== v ? p(v) : R.key === "Enter" && u();
2444
2456
  },
2445
- [v, m, u, p, g]
2457
+ [v, h, u, p, g]
2446
2458
  );
2447
- z(() => (window.addEventListener("keydown", L), () => {
2448
- window.removeEventListener("keydown", L);
2449
- }), [L]), z(() => {
2459
+ z(() => (window.addEventListener("keydown", N), () => {
2460
+ window.removeEventListener("keydown", N);
2461
+ }), [N]), z(() => {
2450
2462
  o && o.focus();
2451
2463
  }, [o]);
2452
2464
  const b = x((R) => {
2453
2465
  C(R.target.value);
2454
2466
  }, []), w = x(() => {
2455
2467
  C(""), p("");
2456
- }, [p]), T = A(() => `${f} / ${h}`, [f, h]), { wholeWords: E, matchCase: I } = A(() => c, [c]), y = x(
2468
+ }, [p]), T = A(() => `${f} / ${m}`, [f, m]), { wholeWords: E, matchCase: I } = A(() => c, [c]), y = x(
2457
2469
  (R) => {
2458
- i((N) => ({ ...N, matchCase: R }));
2470
+ i((L) => ({ ...L, matchCase: R }));
2459
2471
  },
2460
2472
  [i]
2461
2473
  ), D = x(
2462
2474
  (R) => {
2463
- i((N) => ({ ...N, wholeWords: R }));
2475
+ i((L) => ({ ...L, wholeWords: R }));
2464
2476
  },
2465
2477
  [i]
2466
2478
  );
2467
2479
  return z(() => {
2468
2480
  P();
2469
- }, [r, P]), _ ? /* @__PURE__ */ s(
2481
+ }, [r, P]), _ ? /* @__PURE__ */ a(
2470
2482
  ft,
2471
2483
  {
2472
2484
  open: t,
2473
2485
  container: e,
2474
2486
  align: "start",
2475
- triggerComponent: /* @__PURE__ */ s(te, { content: "Search in document", children: /* @__PURE__ */ s(X, { onClick: S, children: /* @__PURE__ */ s(Ut, {}) }) }),
2487
+ triggerComponent: /* @__PURE__ */ a(ne, { content: "Search in document", children: /* @__PURE__ */ a(X, { onClick: S, children: /* @__PURE__ */ a(Ut, {}) }) }),
2476
2488
  children: /* @__PURE__ */ O("div", { className: ie["rp-search-tool-content"], children: [
2477
2489
  /* @__PURE__ */ O("div", { className: ie["rp-search-tool-input-wrapper"], children: [
2478
2490
  /* @__PURE__ */ O("div", { className: ie["rp-search-tool-input"], children: [
2479
- /* @__PURE__ */ s(
2491
+ /* @__PURE__ */ a(
2480
2492
  jt,
2481
2493
  {
2482
2494
  value: v,
2483
2495
  onKeyDown: d,
2484
2496
  onChange: b,
2485
- icon: /* @__PURE__ */ s(Ut, {}),
2497
+ icon: /* @__PURE__ */ a(Ut, {}),
2486
2498
  placeholder: "Enter to Search",
2487
2499
  className: ie["rp-search-input"],
2488
- ref: a,
2489
- children: !!v && /* @__PURE__ */ s("span", { className: ie["rp-search-tool-input-clear"], onClick: w, children: /* @__PURE__ */ s(Gr, {}) })
2500
+ ref: s,
2501
+ children: !!v && /* @__PURE__ */ a("span", { className: ie["rp-search-tool-input-clear"], onClick: w, children: /* @__PURE__ */ a(Gr, {}) })
2490
2502
  }
2491
2503
  ),
2492
- l ? /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(mt, {}) }) : /* @__PURE__ */ s("span", { children: T })
2504
+ l ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(Le, {}) }) : /* @__PURE__ */ a("span", { children: T })
2493
2505
  ] }),
2494
2506
  /* @__PURE__ */ O("div", { className: ie["rp-search-tool-input-checkboxes"], children: [
2495
- /* @__PURE__ */ s(xt, { name: "matchCase", value: I, onChange: y, children: "Match Case" }),
2496
- /* @__PURE__ */ s(xt, { name: "wholeWord", value: E, onChange: D, children: "Whole Word" })
2507
+ /* @__PURE__ */ a(xt, { name: "matchCase", value: I, onChange: y, children: "Match Case" }),
2508
+ /* @__PURE__ */ a(xt, { name: "wholeWord", value: E, onChange: D, children: "Whole Word" })
2497
2509
  ] })
2498
2510
  ] }),
2499
2511
  /* @__PURE__ */ O("div", { className: ie["rp-search-tool-controls"], children: [
2500
- /* @__PURE__ */ s(X, { onClick: m, children: /* @__PURE__ */ s(Re, { className: ie["rp-search-tool-input-icon"] }) }),
2501
- /* @__PURE__ */ s(X, { onClick: u, children: /* @__PURE__ */ s(
2512
+ /* @__PURE__ */ a(X, { onClick: h, children: /* @__PURE__ */ a(Re, { className: ie["rp-search-tool-input-icon"] }) }),
2513
+ /* @__PURE__ */ a(X, { onClick: u, children: /* @__PURE__ */ a(
2502
2514
  Re,
2503
2515
  {
2504
2516
  style: { transform: "rotate(180deg" },
2505
2517
  className: ie["rp-search-tool-input-icon"]
2506
2518
  }
2507
2519
  ) }),
2508
- /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(Qt, { onClick: P, className: ie["rp-search-tool-input-icon"] }) })
2520
+ /* @__PURE__ */ a(X, { children: /* @__PURE__ */ a(Qt, { onClick: P, className: ie["rp-search-tool-input-icon"] }) })
2509
2521
  ] })
2510
2522
  ] })
2511
2523
  }
2512
2524
  ) : null;
2513
- }, pa = "_loading_1snj5_1", Pe = {
2525
+ }, pa = "_loading_1snj5_1", Te = {
2514
2526
  "rp-loading-overlay": "_rp-loading-overlay_1snj5_1",
2515
2527
  "rp-loading-modal": "_rp-loading-modal_1snj5_14",
2516
2528
  "rp-loading-title": "_rp-loading-title_1snj5_27",
@@ -2520,31 +2532,31 @@ const ge = {
2520
2532
  loading: pa
2521
2533
  }, ha = ({ percentage: e }) => {
2522
2534
  const { cancel: t } = wt();
2523
- return e < 1 ? null : /* @__PURE__ */ s("div", { className: ee(Pe["rp-loading-overlay"]), children: /* @__PURE__ */ O("div", { className: ee(Pe["rp-loading-modal"]), children: [
2524
- /* @__PURE__ */ s("div", { className: ee(Pe["rp-loading-title"]), children: "Preparing document..." }),
2525
- /* @__PURE__ */ s("div", { className: ee(Pe["rp-loading-progress-bar"]), children: /* @__PURE__ */ s(
2535
+ return e < 1 ? null : /* @__PURE__ */ a("div", { className: te(Te["rp-loading-overlay"]), children: /* @__PURE__ */ O("div", { className: te(Te["rp-loading-modal"]), children: [
2536
+ /* @__PURE__ */ a("div", { className: te(Te["rp-loading-title"]), children: "Preparing document..." }),
2537
+ /* @__PURE__ */ a("div", { className: te(Te["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
2526
2538
  "div",
2527
2539
  {
2528
- className: ee(Pe["rp-loading-progress"]),
2540
+ className: te(Te["rp-loading-progress"]),
2529
2541
  style: { width: `${e}%` }
2530
2542
  }
2531
2543
  ) }),
2532
- /* @__PURE__ */ s("button", { className: ee(Pe["rp-loading-cancel-button"]), onClick: t, children: "Cancel" })
2544
+ /* @__PURE__ */ a("button", { className: te(Te["rp-loading-cancel-button"]), onClick: t, children: "Cancel" })
2533
2545
  ] }) });
2534
- }, ma = $e((e, t) => {
2535
- const { showPrintProgress: n } = de(), { progress: r } = wt(), { isSmallScreen: o } = _e(), { percentage: a } = r || {}, c = () => o ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2546
+ }, ma = Ge((e, t) => {
2547
+ const { showPrintProgress: n } = de(), { progress: r } = wt(), { isSmallScreen: o } = _e(), { percentage: s } = r || {}, c = () => o ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2536
2548
  return /* @__PURE__ */ O("div", { children: [
2537
- /* @__PURE__ */ s("div", { "data-rp": "topBar", ref: t, className: Se["rp-toolbar-content"], children: /* @__PURE__ */ O("div", { className: Se["rp-toolbar-wrapper"], style: c(), children: [
2538
- /* @__PURE__ */ O("div", { "data-rp": "topBarLeft", className: Se["rp-toolbar-start"], children: [
2539
- /* @__PURE__ */ s(da, {}),
2540
- /* @__PURE__ */ s(Ro, {})
2549
+ /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: t, className: ye["rp-toolbar-content"], children: /* @__PURE__ */ O("div", { className: ye["rp-toolbar-wrapper"], style: c(), children: [
2550
+ /* @__PURE__ */ O("div", { "data-rp": "topBarLeft", className: ye["rp-toolbar-start"], children: [
2551
+ /* @__PURE__ */ a(da, {}),
2552
+ /* @__PURE__ */ a(Ro, {})
2541
2553
  ] }),
2542
- /* @__PURE__ */ s("div", { "data-rp": "topBarCenter", className: Se["rp-toolbar-middle"], children: /* @__PURE__ */ s(ua, {}) }),
2543
- /* @__PURE__ */ s("div", { "data-rp": "topBarRight", className: Se["rp-toolbar-end"], children: /* @__PURE__ */ s(aa, {}) })
2554
+ /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: ye["rp-toolbar-middle"], children: /* @__PURE__ */ a(ua, {}) }),
2555
+ /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: ye["rp-toolbar-end"], children: /* @__PURE__ */ a(aa, {}) })
2544
2556
  ] }) }),
2545
- n && a ? /* @__PURE__ */ s(ha, { percentage: a }) : null
2557
+ n && s ? /* @__PURE__ */ a(ha, { percentage: s }) : null
2546
2558
  ] });
2547
- }), ot = {
2559
+ }), at = {
2548
2560
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_4wlw3_1",
2549
2561
  "rp-sidebar-content": "_rp-sidebar-content_4wlw3_1",
2550
2562
  "rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_4wlw3_16",
@@ -2556,12 +2568,12 @@ const ge = {
2556
2568
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2557
2569
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2558
2570
  }, fa = (e) => {
2559
- const { thumbnailSrc: t, pageNumber: n, isFocused: r, viewport: o } = e, { goToPage: a } = oe(), c = A(() => r ? Ie["rp-thumbnail-active"] : "", [r]), i = A(() => ({
2571
+ const { thumbnailSrc: t, pageNumber: n, isFocused: r, viewport: o } = e, { goToPage: s } = oe(), c = A(() => r ? Ie["rp-thumbnail-active"] : "", [r]), i = A(() => ({
2560
2572
  width: Math.round(o.width),
2561
2573
  height: Math.round(o.height)
2562
2574
  }), [o]), l = x(() => {
2563
- n && a(n);
2564
- }, [a, n]);
2575
+ n && s(n);
2576
+ }, [s, n]);
2565
2577
  return /* @__PURE__ */ O(
2566
2578
  "div",
2567
2579
  {
@@ -2569,7 +2581,7 @@ const ge = {
2569
2581
  id: `page-${n}`,
2570
2582
  className: Ie["rp-thumbnail-wrapper"],
2571
2583
  children: [
2572
- /* @__PURE__ */ s("div", { className: ee(c, Ie["rp-thumbnail"]), children: t ? /* @__PURE__ */ s(
2584
+ /* @__PURE__ */ a("div", { className: te(c, Ie["rp-thumbnail"]), children: t ? /* @__PURE__ */ a(
2573
2585
  "img",
2574
2586
  {
2575
2587
  src: t,
@@ -2577,7 +2589,7 @@ const ge = {
2577
2589
  height: i.height,
2578
2590
  alt: "thumbnail"
2579
2591
  }
2580
- ) : /* @__PURE__ */ s(
2592
+ ) : /* @__PURE__ */ a(
2581
2593
  "div",
2582
2594
  {
2583
2595
  className: Ie["rp-thumbnail-loader"],
@@ -2585,10 +2597,10 @@ const ge = {
2585
2597
  width: `${i.width}px`,
2586
2598
  height: `${i.height}px`
2587
2599
  },
2588
- children: /* @__PURE__ */ s(mt, {})
2600
+ children: /* @__PURE__ */ a(Le, {})
2589
2601
  }
2590
2602
  ) }),
2591
- /* @__PURE__ */ s("div", { className: Ie["rp-thumbnail-text"], children: n })
2603
+ /* @__PURE__ */ a("div", { className: Ie["rp-thumbnail-text"], children: n })
2592
2604
  ]
2593
2605
  }
2594
2606
  );
@@ -2598,72 +2610,102 @@ const ge = {
2598
2610
  }, ga = 16, va = (e, t) => {
2599
2611
  const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
2600
2612
  e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - ga);
2601
- }, _a = $e((e, t) => {
2602
- const { show: n } = e, { focusedPage: r, totalPages: o } = oe(), { thumbnailPages: a, addPage: c, thumbnailLength: i, addToPage: l } = sn(), p = W(null), h = W(1);
2613
+ }, _a = Ge((e, t) => {
2614
+ const { show: n } = e, { focusedPage: r, totalPages: o } = oe(), { thumbnailPages: s, addPage: c, thumbnailLength: i, addToPage: l } = sn(), p = W(null), m = W(1);
2603
2615
  Zt(t, () => p.current);
2604
- const f = A(() => Object.values(a), [a]), u = x(() => {
2605
- const m = i + 1;
2606
- m <= o && c(m);
2616
+ const f = A(() => Object.values(s), [s]), u = x(() => {
2617
+ const h = i + 1;
2618
+ h <= o && c(h);
2607
2619
  }, [c, o, i]);
2608
2620
  return z(() => {
2609
- r > i ? l(r) : n && h.current !== r && (va(p.current, r), h.current = r);
2610
- }, [r, i, l, n, f]), tr(p.current, u), /* @__PURE__ */ s("div", { ref: p, className: qt["rp-thumbnails-container"], children: /* @__PURE__ */ s("div", { className: qt["rp-thumbnails"], children: n ? f.map((m, g) => {
2621
+ r > i ? l(r) : n && m.current !== r && (va(p.current, r), m.current = r);
2622
+ }, [r, i, l, n, f]), tr(p.current, u), /* @__PURE__ */ a("div", { ref: p, className: qt["rp-thumbnails-container"], children: /* @__PURE__ */ a("div", { className: qt["rp-thumbnails"], children: n ? f.map((h, g) => {
2611
2623
  var _, v;
2612
- return /* @__PURE__ */ s(
2624
+ return /* @__PURE__ */ a(
2613
2625
  fa,
2614
2626
  {
2615
- isFocused: r === ((_ = m.page) == null ? void 0 : _.pageNumber),
2616
- pageNumber: (v = m.page) == null ? void 0 : v.pageNumber,
2617
- thumbnailSrc: m.thumbnailSrc,
2618
- loading: m.loading,
2619
- viewport: m.viewport
2627
+ isFocused: r === ((_ = h.page) == null ? void 0 : _.pageNumber),
2628
+ pageNumber: (v = h.page) == null ? void 0 : v.pageNumber,
2629
+ thumbnailSrc: h.thumbnailSrc,
2630
+ loading: h.loading,
2631
+ viewport: h.viewport
2620
2632
  },
2621
2633
  g
2622
2634
  );
2623
2635
  }) : null }) });
2624
2636
  }), wa = () => {
2625
2637
  const { thumbnailIcon: e } = ce();
2626
- return e || /* @__PURE__ */ s(er, {});
2638
+ return e || /* @__PURE__ */ a(er, {});
2627
2639
  }, ba = () => {
2628
- const { active: e, setActive: t } = sn(), [n, r] = H(200), o = W(null), { thumbnailTool: a } = de(), c = x(() => {
2640
+ const { active: e, setActive: t } = sn(), [n, r] = H(200), o = W(null), { thumbnailTool: s } = de(), c = x(() => {
2629
2641
  t((l) => !l);
2630
- }, []), i = A(() => typeof a != "boolean" && a ? /* @__PURE__ */ s(a, { onClick: c, active: e }) : a ? /* @__PURE__ */ s(te, { content: "Thumbnail", children: /* @__PURE__ */ s(X, { onClick: c, active: e, children: /* @__PURE__ */ s(wa, {}) }) }) : null, [a, e, c]);
2642
+ }, []), i = A(() => typeof s != "boolean" && s ? /* @__PURE__ */ a(s, { onClick: c, active: e }) : s ? /* @__PURE__ */ a(ne, { content: "Thumbnail", children: /* @__PURE__ */ a(X, { onClick: c, active: e, children: /* @__PURE__ */ a(wa, {}) }) }) : null, [s, e, c]);
2631
2643
  return /* @__PURE__ */ O(
2632
2644
  "div",
2633
2645
  {
2634
2646
  style: { "--rp-thumbnail-width": `${n}px` },
2635
- className: ot["rp-sidebar-content-wrapper"],
2647
+ className: at["rp-sidebar-content-wrapper"],
2636
2648
  "data-rp": "sidebar",
2637
2649
  children: [
2638
- /* @__PURE__ */ s("div", { className: ot["rp-sidebar-content"], children: i }),
2639
- /* @__PURE__ */ O("div", { "data-rp": "thumbnailSidebar", hidden: !e, className: ot["rp-thumbnails-wrapper"], children: [
2640
- /* @__PURE__ */ s(_a, { show: e, ref: o }),
2641
- /* @__PURE__ */ s(nr, { onWidthChange: r, thumbnailRef: o })
2650
+ /* @__PURE__ */ a("div", { className: at["rp-sidebar-content"], children: i }),
2651
+ /* @__PURE__ */ O("div", { "data-rp": "thumbnailSidebar", hidden: !e, className: at["rp-thumbnails-wrapper"], children: [
2652
+ /* @__PURE__ */ a(_a, { show: e, ref: o }),
2653
+ /* @__PURE__ */ a(nr, { onWidthChange: r, thumbnailRef: o })
2642
2654
  ] })
2643
2655
  ]
2644
2656
  }
2645
2657
  );
2646
- }, Js = $e((e, t) => {
2647
- const { children: n, slots: r, icons: o, style: a, className: c, mobileWidth: i, onLoaded: l, cleanupOnLoaded: p } = e, [h, f] = H(null), { setContainer: u, setContentRef: m } = Le();
2658
+ }, Js = Ge((e, t) => {
2659
+ const { children: n, slots: r, icons: o, style: s, className: c, mobileWidth: i, onLoaded: l, cleanupOnLoaded: p } = e, [m, f] = H(null), { setContainer: u, setContentRef: h } = Ne(), { loading: g } = Y();
2648
2660
  return z(() => (l && l(), () => {
2649
2661
  p && p();
2650
- }), [l, p]), /* @__PURE__ */ s("div", { ref: t, className: ee(be["rp-theme-variables"], be["rp-container"]), children: /* @__PURE__ */ s(cr, { mobileWidth: i, children: /* @__PURE__ */ s(rr, { slots: r, children: /* @__PURE__ */ s(or, { icons: o, children: /* @__PURE__ */ s(
2662
+ }), [l, p]), /* @__PURE__ */ a("div", { ref: t, className: te(be["rp-theme-variables"], be["rp-container"]), children: /* @__PURE__ */ a(cr, { mobileWidth: i, children: /* @__PURE__ */ a(rr, { slots: r, children: /* @__PURE__ */ a(or, { icons: o, children: /* @__PURE__ */ O(
2651
2663
  ar,
2652
2664
  {
2653
2665
  getContainerRef: u,
2654
- toolbarRef: h,
2655
- style: a,
2666
+ toolbarRef: m,
2667
+ style: s,
2656
2668
  className: c,
2657
- children: /* @__PURE__ */ O(sr, { children: [
2658
- /* @__PURE__ */ O("div", { className: be["rp-layout"], children: [
2659
- /* @__PURE__ */ s(ma, { ref: f }),
2660
- /* @__PURE__ */ O("div", { className: be["rp-content"], children: [
2661
- /* @__PURE__ */ s("div", { className: be["rp-sidebar"], children: /* @__PURE__ */ s(ba, {}) }),
2662
- /* @__PURE__ */ s("div", { ref: m, className: be["rp-pages"], children: n })
2663
- ] })
2669
+ children: [
2670
+ /* @__PURE__ */ O(sr, { children: [
2671
+ /* @__PURE__ */ O("div", { className: be["rp-layout"], children: [
2672
+ /* @__PURE__ */ a(ma, { ref: f }),
2673
+ /* @__PURE__ */ O("div", { className: be["rp-content"], children: [
2674
+ /* @__PURE__ */ a("div", { className: be["rp-sidebar"], children: /* @__PURE__ */ a(ba, {}) }),
2675
+ /* @__PURE__ */ a("div", { ref: h, className: be["rp-pages"], children: n })
2676
+ ] })
2677
+ ] }),
2678
+ /* @__PURE__ */ a(ir, {})
2664
2679
  ] }),
2665
- /* @__PURE__ */ s(ir, {})
2666
- ] })
2680
+ g ? /* @__PURE__ */ a(
2681
+ "div",
2682
+ {
2683
+ style: {
2684
+ position: "absolute",
2685
+ top: 0,
2686
+ left: 0,
2687
+ right: 0,
2688
+ bottom: 0,
2689
+ width: "100%",
2690
+ height: "100%",
2691
+ backgroundColor: "rgba(0, 0, 0, 0.2)"
2692
+ },
2693
+ children: /* @__PURE__ */ a(
2694
+ "div",
2695
+ {
2696
+ style: {
2697
+ display: "flex",
2698
+ justifyContent: "center",
2699
+ alignItems: "center",
2700
+ height: "100%",
2701
+ width: "100%"
2702
+ },
2703
+ children: /* @__PURE__ */ a(Le, {})
2704
+ }
2705
+ )
2706
+ }
2707
+ ) : null
2708
+ ]
2667
2709
  }
2668
2710
  ) }) }) }) });
2669
2711
  });