@pdf-viewer/react 1.5.0-rc.0 → 1.5.0-rc.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 (42) hide show
  1. package/dist/{RPDefaultLayout-36b2f311.js → RPDefaultLayout-b003c6b4.js} +612 -627
  2. package/dist/components/RPController.js +1 -1
  3. package/dist/components/RPPages.js +1 -1
  4. package/dist/components/RPProvider.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  8. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  10. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  11. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  12. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  13. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  14. package/dist/components/layout/toolbar/Paginate.js +1 -1
  15. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  16. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  18. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  19. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  20. package/dist/components/page/AnnotationLayer.js +1 -1
  21. package/dist/components/page/CanvasLayer.js +1 -1
  22. package/dist/components/page/DualPage.js +1 -1
  23. package/dist/components/page/RPPage.js +1 -1
  24. package/dist/components/page/SinglePage.js +1 -1
  25. package/dist/components/page/TextHighlightLayer.js +1 -1
  26. package/dist/components/page/TextLayer.js +1 -1
  27. package/dist/components/ui/LoadingIndicator.js +1 -1
  28. package/dist/contexts/PaginationContext.js +1 -1
  29. package/dist/contexts/PrintContext.js +1 -1
  30. package/dist/contexts/SearchContext.js +1 -1
  31. package/dist/contexts/ThumbnailsContext.js +1 -1
  32. package/dist/main.js +1 -1
  33. package/dist/utils/hooks/useFileDownload.js +1 -1
  34. package/dist/utils/hooks/useLicense.js +1 -1
  35. package/dist/utils/hooks/usePaginate.js +1 -1
  36. package/dist/utils/hooks/usePresentPage.js +1 -1
  37. package/dist/utils/hooks/usePrint.js +1 -1
  38. package/dist/utils/hooks/useScrollToPage.js +1 -1
  39. package/dist/utils/hooks/useSearch.js +1 -1
  40. package/dist/utils/hooks/useThumbnail.js +1 -1
  41. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  42. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- import { jsx as a, Fragment as Se, jsxs as D } from "react/jsx-runtime";
1
+ import { jsx as i, Fragment as xe, jsxs as D } from "react/jsx-runtime";
2
2
  import * as U from "react";
3
- import { useRef as M, useEffect as A, useCallback as L, useState as $, createContext as Ke, useContext as Xe, useMemo as F, forwardRef as We, useImperativeHandle as ln, createElement as Ge, PureComponent as nr, Component as rr, memo as or } from "react";
3
+ import { useRef as M, useEffect as A, useCallback as L, useState as $, createContext as Ke, useContext as Xe, useMemo as F, forwardRef as We, useImperativeHandle as ln, createElement as Ve, PureComponent as nr, Component as rr, memo as or } from "react";
4
4
  import { ChevronUpIcon as Me } from "./components/icons/ChevronUpIcon.js";
5
- import { UIButton as ee } from "./components/ui/Button.js";
5
+ import { UIButton as Q } from "./components/ui/Button.js";
6
6
  import { UIInput as dn } from "./components/ui/Input.js";
7
7
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
8
8
  import { useDocumentContext as K } from "./contexts/RPDocumentContext.js";
9
9
  import { useDarkModeContext as ir } from "./contexts/DarkModeContext.js";
10
- import { ViewMode as Ze, ScrollMode as X, AnnotationSubType as kt, SelectionMode as ar, ZoomLevel as it } from "./utils/types.js";
10
+ import { ViewMode as Ze, ScrollMode as ee, AnnotationSubType as kt, SelectionMode as ar, ZoomLevel as it } from "./utils/types.js";
11
11
  import { useRotationContext as Ye } from "./contexts/RotationContext.js";
12
12
  import { useLayerContext as sr } from "./contexts/LayerContext.js";
13
13
  import { useZoomContext as Je } from "./contexts/ZoomContext.js";
@@ -28,22 +28,22 @@ import { useDimensionPagesContext as tt } from "./contexts/DimensionPagesContext
28
28
  import { useLocalizationContext as ue } from "./contexts/LocalizationContext.js";
29
29
  import { useHighlightContext as vr } from "./contexts/HighlightContext.js";
30
30
  import { useDownloadContext as _r } from "./contexts/DownloadContext.js";
31
- import { useSmoothScrollContext as xt } from "./contexts/SmoothScrollContext.js";
31
+ import { useSmoothScrollContext as St } from "./contexts/SmoothScrollContext.js";
32
32
  import { useLoaderContext as mn } from "./contexts/LoaderContext.js";
33
33
  import "./contexts/LicenseContext.js";
34
34
  import "./components/RPConfig.js";
35
35
  import { ThumbnailIcon as wr } from "./components/icons/Thumbnail.js";
36
36
  import { c as re } from "./clsx-0c6e471a.js";
37
- import { LoaderIcon as St } from "./components/icons/LoaderIcon.js";
37
+ import { LoaderIcon as xt } from "./components/icons/LoaderIcon.js";
38
38
  import { useInfiniteScroll as br } from "./utils/hooks/useInfiniteScroll.js";
39
39
  import { RPSplitter as Cr } from "./components/layout/sidebar/RPSplitter.js";
40
40
  import { useToolbarComponentContext as _e, ToolbarComponentProvider as Tr } from "./contexts/ToolbarComponentContext.js";
41
41
  import { useIconContext as pe, IconProvider as Pr } from "./contexts/IconContext.js";
42
42
  import q from "./components/ui/RPTooltip.js";
43
- import { Container as xr } from "./components/layout/Container.js";
44
- import { WrapperLayout as Sr } from "./components/layout/WrapperLayout.js";
45
- import { RPDropFileZone as Ir } from "./components/RPDropFileZone.js";
46
- import { useViewportContext as ye, ViewportProvider as yr } from "./contexts/ViewportContext.js";
43
+ import { Container as Sr } from "./components/layout/Container.js";
44
+ import { WrapperLayout as xr } from "./components/layout/WrapperLayout.js";
45
+ import { RPDropFileZone as yr } from "./components/RPDropFileZone.js";
46
+ import { useViewportContext as Ie, ViewportProvider as Ir } from "./contexts/ViewportContext.js";
47
47
  import { useThemeContext as Lr } from "./contexts/ThemeContext.js";
48
48
  import { SimpleLinkService as Rr } from "./utils/link_service.js";
49
49
  import { annotationsEvents as Nr, annotationEventsHandler as Er, handleClick as Mt, handleAnnotationWidget as Or, handleAnnotationLink as Dr, bindLayerEvents as zr, unbindLayerEvents as Wt } from "./utils/annotations.js";
@@ -51,16 +51,16 @@ import { _ as Ar, U as Fr } from "./Popover-b7402893.js";
51
51
  import { useMousePressed as kr } from "./utils/hooks/useMousePressed.js";
52
52
  import { useGrabScroll as Mr } from "./utils/hooks/useGrabScroll.js";
53
53
  import { usePinch as Wr } from "./utils/hooks/usePinch.js";
54
- import { useDebounce as It } from "./utils/hooks/useDebounce.js";
54
+ import { useDebounce as yt } from "./utils/hooks/useDebounce.js";
55
55
  import { getPositionFromPage as Hr, getPageFromPosition as $r } from "./utils/calculatePage.js";
56
56
  import { getThumbnailViewport as Ht } from "./utils/getThumbnailViewport.js";
57
57
  import { smoothScrollTo as at } from "./utils/smoothScrollTo.js";
58
- import { appConsole as Gr } from "./utils/appConsole.js";
58
+ import { appConsole as Vr } from "./utils/appConsole.js";
59
59
  import { FileUploadTool as fn } from "./components/layout/toolbar/FileUploadTool.js";
60
- import { DarkModeTool as Vr } from "./components/layout/toolbar/DarkModeTool.js";
60
+ import { DarkModeTool as Gr } from "./components/layout/toolbar/DarkModeTool.js";
61
61
  import { ThreeDotIcon as Ur } from "./components/icons/ThreeDotIcon.js";
62
62
  import { UIDropDown as gn } from "./components/ui/DropDown.js";
63
- import { e as qr, a as yt, P as He, c as ke, g as Lt, i as Zr, k as Br, f as jr } from "./index-1cb41342.js";
63
+ import { e as qr, a as It, P as He, c as ke, g as Lt, i as Zr, k as Br, f as jr } from "./index-1cb41342.js";
64
64
  import { D as Kr, u as st } from "./index-aa2d3884.js";
65
65
  import { a as Xr, u as Yr, F as Jr, b as Qr, G as Be } from "./index-7279fb4e.js";
66
66
  import { h as eo } from "./component-1da194e8.js";
@@ -80,14 +80,17 @@ import { GoToDownIcon as wn } from "./components/icons/GoToDownIcon.js";
80
80
  import { SelectionModeTool as lo } from "./components/layout/toolbar/SelectionModeTool.js";
81
81
  import { ZoomInIcon as uo } from "./components/icons/ZoomInIcon.js";
82
82
  import { ZoomOutIcon as po } from "./components/icons/ZoomOutIcon.js";
83
- import { PAGE_PADDING as Gt } from "./utils/constants.js";
83
+ import { PAGE_PADDING as Vt } from "./utils/constants.js";
84
84
  import { getZoomLevel as ho } from "./utils/getZoomLevel.js";
85
85
  import { SearchIcon as mo } from "./components/icons/SearchIcon.js";
86
- import { UICheckbox as Vt } from "./components/ui/Checkbox.js";
86
+ import { UICheckbox as Gt } from "./components/ui/Checkbox.js";
87
87
  import { ClearIcon as fo } from "./components/icons/ClearIcon.js";
88
88
  import { InfoIcon as Ut } from "./components/icons/InfoIcon.js";
89
- import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) => r < t ? n + o : n, 0), ct = (e, t) => Math.round(e.left) === Math.round(t.left) && Math.round(e.top) === Math.round(t.top), bn = () => {
90
- const { viewMode: e } = Qe(), { scrollMode: t } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: i } = ie(), c = M(), { columnCount: s } = un(), { widths: l, heights: u } = tt(), d = M(t), f = M(e), h = M(s), { targetScrollPosition: g, smoothScrolling: w } = xt();
89
+ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) => r < t ? n + o : n, 0), ct = (e, t) => {
90
+ const n = Math.round(e.left) === Math.round(t.left) && Math.round(e.top) === Math.round(t.top), o = Math.round(e.left) >= Math.round(t.left) && Math.round(e.top) >= Math.round(t.top);
91
+ return n || o;
92
+ }, bn = () => {
93
+ const { viewMode: e } = Qe(), { scrollMode: t } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = ie(), c = M(), { columnCount: s } = un(), { widths: l, heights: u } = tt(), d = M(t), f = M(e), h = M(s), { targetScrollPosition: g, smoothScrolling: w } = St();
91
94
  A(() => {
92
95
  n != null && n.scrollToItem && (c.current = n);
93
96
  }, [n]), A(() => {
@@ -107,12 +110,12 @@ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) =>
107
110
  (T) => at(r, p, T)
108
111
  );
109
112
  }
110
- const x = {
113
+ const S = {
111
114
  left: 0,
112
115
  top: 0
113
116
  };
114
- return g.current = x, r == null ? void 0 : r.scrollTo({
115
- ...x,
117
+ return g.current = S, r == null ? void 0 : r.scrollTo({
118
+ ...S,
116
119
  behavior: m
117
120
  });
118
121
  },
@@ -125,19 +128,19 @@ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) =>
125
128
  }, [s]), { scrollToPage: L(
126
129
  (_, m = "smooth") => {
127
130
  const P = _ - 1;
128
- let x = P, p = 0;
129
- if (f.current === Ze.DUAL_PAGE && d.current === X.PAGE_SCROLLING) {
131
+ let S = P, p = 0;
132
+ if (f.current === Ze.DUAL_PAGE && d.current === ee.PAGE_SCROLLING) {
130
133
  b(_, m);
131
134
  return;
132
135
  }
133
- if (d.current === X.PAGE_SCROLLING) {
134
- i(_);
136
+ if (d.current === ee.PAGE_SCROLLING) {
137
+ a(_);
135
138
  return;
136
139
  }
137
140
  if (!c.current || !o)
138
141
  return;
139
142
  const T = o;
140
- if (w.current = !0, d.current === X.HORIZONTAL_SCROLLING) {
143
+ if (w.current = !0, d.current === ee.HORIZONTAL_SCROLLING) {
141
144
  p = P;
142
145
  const N = {
143
146
  left: $e(l, p),
@@ -152,10 +155,10 @@ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) =>
152
155
  });
153
156
  }
154
157
  if (f.current === Ze.DUAL_PAGE) {
155
- p = P % 2, x = Math.floor(P / 2);
158
+ p = P % 2, S = Math.floor(P / 2);
156
159
  const N = {
157
160
  left: $e(l, p),
158
- top: $e(u, x)
161
+ top: $e(u, S)
159
162
  };
160
163
  return ct(N, {
161
164
  left: T.scrollLeft,
@@ -167,7 +170,7 @@ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) =>
167
170
  }
168
171
  const C = {
169
172
  left: 0,
170
- top: $e(u, x)
173
+ top: $e(u, S)
171
174
  };
172
175
  return g.current = C, ct(C, {
173
176
  left: T.scrollLeft,
@@ -181,14 +184,14 @@ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) =>
181
184
  o,
182
185
  s,
183
186
  b,
184
- i,
187
+ a,
185
188
  at,
186
189
  u,
187
190
  l
188
191
  ]
189
192
  ) };
190
193
  }, go = (e = 1) => {
191
- const [t, n] = $(e), [o, r] = $(0), { scrollToPage: i } = bn(), c = M(1), { viewMode: s } = Qe(), { scrollMode: l } = Ee(), u = It(t, 100), d = L(
194
+ const [t, n] = $(e), [o, r] = $(0), { scrollToPage: a } = bn(), c = M(1), { viewMode: s } = Qe(), { scrollMode: l } = Ee(), u = yt(t, 100), d = L(
192
195
  (b) => {
193
196
  if (!/^[0-9]*$/g.test(b.toString()) || !b)
194
197
  return { success: !1, currentPage: c.current };
@@ -199,9 +202,9 @@ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) =>
199
202
  ), f = L(d, [d]), h = L(
200
203
  (b) => {
201
204
  const v = d(b);
202
- return v.success && i(v.currentPage), v;
205
+ return v.success && a(v.currentPage), v;
203
206
  },
204
- [d, i]
207
+ [d, a]
205
208
  ), g = L(() => {
206
209
  let b = t - 1;
207
210
  h(b);
@@ -232,19 +235,19 @@ import './assets/RPDefaultLayout.css';const $e = (e, t) => e.reduce((n, o, r) =>
232
235
  }
233
236
  }), ie = () => {
234
237
  const e = Xe(Cn);
235
- return typeof (e == null ? void 0 : e.focusedPage) > "u" && Gr.error("Please use this hooks inside children component of RPProvider"), e;
238
+ return typeof (e == null ? void 0 : e.focusedPage) > "u" && Vr.error("Please use this hooks inside children component of RPProvider"), e;
236
239
  }, Ts = ({ children: e }) => {
237
- const { pdf: t } = K(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: i, goToPage: c, nextPage: s, prevPage: l } = go();
240
+ const { pdf: t } = K(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: c, nextPage: s, prevPage: l } = go();
238
241
  return A(() => {
239
- t != null && t.numPages && (i(t.numPages), r(1));
240
- }, [t, i, r]), /* @__PURE__ */ a(
242
+ t != null && t.numPages && (a(t.numPages), r(1));
243
+ }, [t, a, r]), /* @__PURE__ */ i(
241
244
  Cn.Provider,
242
245
  {
243
246
  value: {
244
247
  focusedPage: n,
245
248
  totalPages: o,
246
249
  setFocusedPage: r,
247
- setTotalPages: i,
250
+ setTotalPages: a,
248
251
  nextPage: s,
249
252
  prevPage: l,
250
253
  goToPage: c
@@ -258,7 +261,7 @@ const vo = () => {
258
261
  loadedPages: 0,
259
262
  totalPages: 0,
260
263
  percentage: 0
261
- }), [r, i] = $(!1), [c, s] = $(!1), [l, u] = $(null), d = M(!1);
264
+ }), [r, a] = $(!1), [c, s] = $(!1), [l, u] = $(null), d = M(!1);
262
265
  A(() => {
263
266
  d.current;
264
267
  }, [d]);
@@ -267,7 +270,7 @@ const vo = () => {
267
270
  const P = document.querySelector(".rp-print-zone");
268
271
  P && P.remove();
269
272
  }, []), h = L(() => {
270
- d.current = !1, i(!1), s(!1), u(null), o({
273
+ d.current = !1, a(!1), s(!1), u(null), o({
271
274
  loadedPages: 0,
272
275
  totalPages: 0,
273
276
  percentage: 0
@@ -276,23 +279,23 @@ const vo = () => {
276
279
  d.current = !0;
277
280
  }, w = async ({
278
281
  scratchCanvas: P,
279
- pdfDocument: x,
282
+ pdfDocument: S,
280
283
  pageNumber: p,
281
284
  viewerPdfPage: T,
282
285
  printResolution: C,
283
- optionalContentConfigPromise: S,
286
+ optionalContentConfigPromise: x,
284
287
  printAnnotationStoragePromise: N
285
288
  }) => {
286
289
  if (d.current) {
287
290
  h();
288
291
  return;
289
292
  }
290
- const y = C / hr.PDF;
291
- P.width = Math.floor(T.width * y), P.height = Math.floor(T.height * y);
293
+ const I = C / hr.PDF;
294
+ P.width = Math.floor(T.width * I), P.height = Math.floor(T.height * I);
292
295
  const O = P.getContext("2d");
293
296
  O.save(), O.fillStyle = "rgb(255, 255, 255)", O.fillRect(0, 0, P.width, P.height), O.restore();
294
297
  const [R, k] = await Promise.all([
295
- x.getPage(p),
298
+ S.getPage(p),
296
299
  N
297
300
  ]);
298
301
  if (d.current) {
@@ -301,65 +304,65 @@ const vo = () => {
301
304
  }
302
305
  const z = {
303
306
  canvasContext: O,
304
- transform: [y, 0, 0, y, 0, 0],
307
+ transform: [I, 0, 0, I, 0, 0],
305
308
  viewport: R.getViewport({ scale: 1, rotation: T.rotation }),
306
309
  intent: "print",
307
310
  annotationMode: mr.ENABLE_STORAGE,
308
- optionalContentConfigPromise: S,
311
+ optionalContentConfigPromise: x,
309
312
  printAnnotationStorage: k
310
313
  };
311
314
  try {
312
315
  return R.render(z).promise;
313
- } catch (I) {
314
- throw I instanceof fr || console.error(I), I;
316
+ } catch (y) {
317
+ throw y instanceof fr || console.error(y), y;
315
318
  }
316
319
  }, b = L(() => {
317
320
  const P = window.print;
318
- return new Promise((x) => {
319
- const p = (S) => {
321
+ return new Promise((S) => {
322
+ const p = (x) => {
320
323
  setTimeout(() => {
321
- P.call(window), setTimeout(() => S(), 20);
324
+ P.call(window), setTimeout(() => x(), 20);
322
325
  }, 0);
323
326
  };
324
327
  if (document.querySelector(".rp-print-zone")) {
325
- p(x);
328
+ p(S);
326
329
  return;
327
330
  }
328
331
  const C = new MutationObserver(() => {
329
- document.querySelector(".rp-print-zone") && (p(x), C.disconnect());
332
+ document.querySelector(".rp-print-zone") && (p(S), C.disconnect());
330
333
  });
331
334
  C.observe(document.body, { childList: !0, subtree: !0 });
332
335
  });
333
336
  }, []), v = async (P) => {
334
- const x = document.createElement("img"), p = document.createElement("div");
337
+ const S = document.createElement("img"), p = document.createElement("div");
335
338
  return p.classList.add("rp-print-page"), await new Promise((T, C) => {
336
- P.toBlob((S) => {
337
- S ? (x.src = URL.createObjectURL(S), x.onload = () => {
338
- URL.revokeObjectURL(x.src), T();
339
- }, x.onerror = C) : C(new Error("Failed to create blob"));
339
+ P.toBlob((x) => {
340
+ x ? (S.src = URL.createObjectURL(x), S.onload = () => {
341
+ URL.revokeObjectURL(S.src), T();
342
+ }, S.onerror = C) : C(new Error("Failed to create blob"));
340
343
  });
341
344
  }).catch(() => {
342
- }), p.appendChild(x), p;
343
- }, _ = (P, x) => {
345
+ }), p.appendChild(S), p;
346
+ }, _ = (P, S) => {
344
347
  const p = document.createElement("div");
345
348
  p.classList.add("rp-print-zone");
346
- const T = document.createElement("style"), C = x.get(1);
349
+ const T = document.createElement("style"), C = S.get(1);
347
350
  if (C) {
348
- const { width: S, height: N } = C == null ? void 0 : C.page.getViewport({ scale: 1 });
349
- T.innerHTML = `@page { size: ${S}px ${N}px }`;
351
+ const { width: x, height: N } = C == null ? void 0 : C.page.getViewport({ scale: 1 });
352
+ T.innerHTML = `@page { size: ${x}px ${N}px }`;
350
353
  }
351
354
  return p.appendChild(T), p.append(...P), p;
352
355
  }, m = L(async () => {
353
356
  if (!e)
354
357
  return;
355
358
  h();
356
- const P = document.createElement("canvas"), x = [];
359
+ const P = document.createElement("canvas"), S = [];
357
360
  try {
358
361
  e.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
359
362
  const T = e.getOptionalContentConfig({ intent: "print" }), C = Promise.resolve(
360
363
  e.annotationStorage.print ?? void 0
361
- ), S = t.size;
362
- for (const [y, O] of t) {
364
+ ), x = t.size;
365
+ for (const [I, O] of t) {
363
366
  if (d.current) {
364
367
  h();
365
368
  return;
@@ -368,7 +371,7 @@ const vo = () => {
368
371
  if (await w({
369
372
  scratchCanvas: P,
370
373
  pdfDocument: e,
371
- pageNumber: y,
374
+ pageNumber: I,
372
375
  viewerPdfPage: R,
373
376
  printResolution: 150,
374
377
  optionalContentConfigPromise: T,
@@ -378,11 +381,11 @@ const vo = () => {
378
381
  return;
379
382
  }
380
383
  const k = await v(P);
381
- x.push(k);
382
- const z = parseFloat((x.length / S * 100).toFixed(2));
384
+ S.push(k);
385
+ const z = parseFloat((S.length / x * 100).toFixed(2));
383
386
  o({
384
- loadedPages: y,
385
- totalPages: S,
387
+ loadedPages: I,
388
+ totalPages: x,
386
389
  percentage: z
387
390
  });
388
391
  }
@@ -390,8 +393,8 @@ const vo = () => {
390
393
  h();
391
394
  return;
392
395
  }
393
- const N = _(x, t);
394
- document.body.appendChild(N), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), i(!0), await b();
396
+ const N = _(S, t);
397
+ document.body.appendChild(N), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await b();
395
398
  } catch (p) {
396
399
  s(!0), p instanceof Error && u(p);
397
400
  } finally {
@@ -431,7 +434,7 @@ const vo = () => {
431
434
  }
432
435
  }
433
436
  }), Ps = ({ children: e }) => {
434
- const [t, n] = $(null), [o, r] = $(null), { print: i, cancel: c, progress: s, isComplete: l, isError: u, error: d } = vo(), f = L((v) => {
437
+ const [t, n] = $(null), [o, r] = $(null), { print: a, cancel: c, progress: s, isComplete: l, isError: u, error: d } = vo(), f = L((v) => {
435
438
  v && typeof v == "function" && r(() => v);
436
439
  }, []), h = (v) => {
437
440
  d && v(d);
@@ -453,21 +456,21 @@ const vo = () => {
453
456
  const w = () => {
454
457
  o && (o(), r(null));
455
458
  }, b = {
456
- print: i,
459
+ print: a,
457
460
  cancel: c,
458
461
  setOnProgress: g,
459
462
  setOnComplete: f,
460
463
  setOnError: h,
461
464
  progress: s
462
465
  };
463
- return /* @__PURE__ */ a(Tn.Provider, { value: b, children: e });
466
+ return /* @__PURE__ */ i(Tn.Provider, { value: b, children: e });
464
467
  }, nt = () => {
465
468
  const e = Xe(Tn);
466
469
  if (!e)
467
470
  throw new Error("usePrintContext must be used within a PrintProvider");
468
471
  return e;
469
472
  }, _o = () => {
470
- const [e, t] = $({}), { pages: n } = K(), { rotate: o } = Ye(), r = F(() => Object.keys(e).length, [e]), i = L(
473
+ const [e, t] = $({}), { pages: n } = K(), { rotate: o } = Ye(), r = F(() => Object.keys(e).length, [e]), a = L(
471
474
  (s) => {
472
475
  if (!n.size || s > n.size)
473
476
  return;
@@ -508,8 +511,8 @@ const vo = () => {
508
511
  [n, o]
509
512
  );
510
513
  A(() => {
511
- i(10);
512
- }, [i]);
514
+ a(10);
515
+ }, [a]);
513
516
  const c = L(
514
517
  (s) => {
515
518
  if (!n)
@@ -542,7 +545,7 @@ const vo = () => {
542
545
  },
543
546
  [n, o]
544
547
  );
545
- return { thumbnailPages: e, addPage: c, addToPage: i, thumbnailLength: r };
548
+ return { thumbnailPages: e, addPage: c, addToPage: a, thumbnailLength: r };
546
549
  }, Pn = Ke({
547
550
  thumbnailPages: {},
548
551
  addPage: (e) => {
@@ -553,41 +556,41 @@ const vo = () => {
553
556
  setActive: (e) => {
554
557
  },
555
558
  active: !1
556
- }), xn = () => Xe(Pn), xs = ({
559
+ }), Sn = () => Xe(Pn), Ss = ({
557
560
  children: e,
558
561
  initialThumbnailsVisible: t
559
562
  }) => {
560
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: i } = _o(), [c, s] = $(t);
561
- return /* @__PURE__ */ a(
563
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = _o(), [c, s] = $(t);
564
+ return /* @__PURE__ */ i(
562
565
  Pn.Provider,
563
566
  {
564
- value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: i, active: c, setActive: s },
567
+ value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: c, setActive: s },
565
568
  children: e
566
569
  }
567
570
  );
568
571
  }, wo = (e = {}, t = "") => {
569
- const [n, o] = $(t), [r, i] = $(!1), { pdf: c, pages: s } = K(), l = tt(), u = M(!n), { currentZoom: d } = Je(), [f, h] = $([]), { setFocusedPage: g } = ie(), [w, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = et(), { scrollMode: m } = Ee(), { pagesRef: P } = Te(), [x, p] = $(null), T = M({}), C = F(() => w === 0 ? null : f[w - 1], [w, f]), S = F(() => f.length, [f]);
572
+ const [n, o] = $(t), [r, a] = $(!1), { pdf: c, pages: s } = K(), l = tt(), u = M(!n), { currentZoom: d } = Je(), [f, h] = $([]), { setFocusedPage: g } = ie(), [w, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = et(), { scrollMode: m } = Ee(), { pagesRef: P } = Te(), [S, p] = $(null), T = M({}), C = F(() => w === 0 ? null : f[w - 1], [w, f]), x = F(() => f.length, [f]);
570
573
  A(() => {
571
574
  if (!C || !s)
572
575
  return;
573
576
  const R = _ || v;
574
577
  if (!R || !P)
575
578
  return;
576
- const k = s.get(C.page), z = P.clientHeight / 2, I = P.clientWidth / 2;
579
+ const k = s.get(C.page), z = P.clientHeight / 2, y = P.clientWidth / 2;
577
580
  let E = 0, W = 0;
578
- m === X.PAGE_SCROLLING && g(C.page), m === X.VERTICAL_SCROLLING && (E = l.heights.slice(0, C.page - 1).reduce((j, B) => j + B, 0)), m === X.HORIZONTAL_SCROLLING && (W = l.widths.slice(0, C.page - 1).reduce((j, B) => j + B, 0));
579
- let V;
581
+ m === ee.PAGE_SCROLLING && g(C.page), m === ee.VERTICAL_SCROLLING && (E = l.heights.slice(0, C.page - 1).reduce((j, B) => j + B, 0)), m === ee.HORIZONTAL_SCROLLING && (W = l.widths.slice(0, C.page - 1).reduce((j, B) => j + B, 0));
582
+ let G;
580
583
  if (!k)
581
584
  return;
582
- const Z = T.current[C.page], Y = k.page.getViewport({ scale: 1 });
583
- V = new Pt.TextLayer({
584
- viewport: Y,
585
+ const Z = T.current[C.page], X = k.page.getViewport({ scale: 1 });
586
+ G = new Pt.TextLayer({
587
+ viewport: X,
585
588
  textContentSource: Z,
586
589
  container: document.createElement("div")
587
- }), V.render().then(() => {
588
- const j = V.textDivs[C.start.idx], [B] = pn([C], Z, V.textDivs), te = l.widths[C.page - 1], ae = l.heights[C.page - 1], J = document.createElement("div"), ne = document.createElement("div");
589
- j.style.position = "absolute", j.style.color = "transparent", ne.style.position = "absolute", ne.style.top = "0", ne.style.setProperty("--scale-factor", `${d}`), J.style.position = "relative", J.style.width = `${te}px`, J.style.height = `${ae}px`, J.style.zIndex = "-1", J.appendChild(j), ne.appendChild(J), P.prepend(ne);
590
- const he = B.element.getBoundingClientRect(), ce = ne.getBoundingClientRect(), Oe = he.top - ce.top, we = he.left - ce.left, me = E + Oe - z + he.height / 2, le = W + we - I + he.width / 2, De = {
590
+ }), G.render().then(() => {
591
+ const j = G.textDivs[C.start.idx], [B] = pn([C], Z, G.textDivs), te = l.widths[C.page - 1], ae = l.heights[C.page - 1], Y = document.createElement("div"), ne = document.createElement("div");
592
+ j.style.position = "absolute", j.style.color = "transparent", ne.style.position = "absolute", ne.style.top = "0", ne.style.setProperty("--scale-factor", `${d}`), Y.style.position = "relative", Y.style.width = `${te}px`, Y.style.height = `${ae}px`, Y.style.zIndex = "-1", Y.appendChild(j), ne.appendChild(Y), P.prepend(ne);
593
+ const he = B.element.getBoundingClientRect(), ce = ne.getBoundingClientRect(), Oe = he.top - ce.top, we = he.left - ce.left, me = E + Oe - z + he.height / 2, le = W + we - y + he.width / 2, De = {
591
594
  left: Math.max(le, 0),
592
595
  top: Math.max(me, 0)
593
596
  };
@@ -606,18 +609,18 @@ const vo = () => {
606
609
  P
607
610
  ]);
608
611
  const N = L(() => {
609
- b((R) => S ? R + 1 > S ? 1 : R + 1 : 0);
610
- }, [S]), y = L(() => {
611
- b((R) => S ? R - 1 <= 0 ? S : R - 1 : 0);
612
- }, [S]), O = L(async (R) => {
612
+ b((R) => x ? R + 1 > x ? 1 : R + 1 : 0);
613
+ }, [x]), I = L(() => {
614
+ b((R) => x ? R - 1 <= 0 ? x : R - 1 : 0);
615
+ }, [x]), O = L(async (R) => {
613
616
  if (!R)
614
617
  return {};
615
618
  const k = R.numPages, z = {};
616
- for (let I = 1; I <= k; I++) {
619
+ for (let y = 1; y <= k; y++) {
617
620
  if (u.current)
618
621
  throw "close pop over";
619
- const E = await R.getPage(I);
620
- z[I.toString()] = await E.getTextContent();
622
+ const E = await R.getPage(y);
623
+ z[y.toString()] = await E.getTextContent();
621
624
  }
622
625
  return z;
623
626
  }, []);
@@ -626,35 +629,35 @@ const vo = () => {
626
629
  u.current = !0, h([]), b(0);
627
630
  return;
628
631
  }
629
- u.current = !1, i(!0), h([]), b(0), O(c).then((R) => {
632
+ u.current = !1, a(!0), h([]), b(0), O(c).then((R) => {
630
633
  T.current = R;
631
- const z = Object.keys(R).reduce((I, E) => {
634
+ const z = Object.keys(R).reduce((y, E) => {
632
635
  const W = ur(
633
636
  [n],
634
637
  R[E],
635
638
  Number(E) - 1,
636
639
  e
637
- ).map((V, Z) => ({ ...V, page: Number(E), pageMatchIdx: Z }));
638
- return [...I, ...W];
640
+ ).map((G, Z) => ({ ...G, page: Number(E), pageMatchIdx: Z }));
641
+ return [...y, ...W];
639
642
  }, []);
640
643
  h(z), b(z.length ? 1 : 0);
641
644
  }).catch(() => {
642
645
  h([]), b(0);
643
- }).finally(() => i(!1));
646
+ }).finally(() => a(!1));
644
647
  }, [n, O, c, e]), {
645
648
  search: n,
646
649
  setSearch: o,
647
650
  loading: r,
648
651
  matches: f,
649
- totalMatches: S,
652
+ totalMatches: x,
650
653
  currentMatchPosition: w,
651
654
  currentMatch: C,
652
655
  nextMatch: N,
653
- prevMatch: y,
654
- currentMatchElement: x,
656
+ prevMatch: I,
657
+ currentMatchElement: S,
655
658
  setCurrentMatchElement: p
656
659
  };
657
- }, Sn = Ke({
660
+ }, xn = Ke({
658
661
  search: "",
659
662
  setSearch: (e) => {
660
663
  },
@@ -672,13 +675,13 @@ const vo = () => {
672
675
  currentMatchElement: null,
673
676
  setCurrentMatchElement: (e) => {
674
677
  }
675
- }), Ss = ({
678
+ }), xs = ({
676
679
  children: e,
677
680
  initialSearch: t
678
681
  }) => {
679
682
  const [n, o] = $({}), {
680
683
  loading: r,
681
- setSearch: i,
684
+ setSearch: a,
682
685
  totalMatches: c,
683
686
  currentMatchPosition: s,
684
687
  currentMatch: l,
@@ -689,14 +692,14 @@ const vo = () => {
689
692
  currentMatchElement: g,
690
693
  setCurrentMatchElement: w
691
694
  } = wo(n, t);
692
- return /* @__PURE__ */ a(
693
- Sn.Provider,
695
+ return /* @__PURE__ */ i(
696
+ xn.Provider,
694
697
  {
695
698
  value: {
696
699
  searchOptions: n,
697
700
  setSearchOptions: o,
698
701
  loading: r,
699
- setSearch: i,
702
+ setSearch: a,
700
703
  totalMatches: c,
701
704
  currentMatchPosition: s,
702
705
  currentMatch: l,
@@ -710,7 +713,7 @@ const vo = () => {
710
713
  children: e
711
714
  }
712
715
  );
713
- }, In = () => Xe(Sn), de = {
716
+ }, yn = () => Xe(xn), de = {
714
717
  "rp-pages": "_rp-pages_1776r_1",
715
718
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1776r_7",
716
719
  "rp-pages-container": "_rp-pages-container_1776r_11",
@@ -724,11 +727,11 @@ const vo = () => {
724
727
  "rp-page": "_rp-page_h7a2q_1",
725
728
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
726
729
  }, bo = (e) => {
727
- const { pageNumber: t, onLoaded: n, onLoading: o } = e, r = M(null), { pages: i } = K(), { rotate: c } = Ye(), s = M(), { currentZoom: l } = Je();
730
+ const { pageNumber: t, onLoaded: n, onLoading: o } = e, r = M(null), { pages: a } = K(), { rotate: c } = Ye(), s = M(), { currentZoom: l } = Je();
728
731
  return A(() => {
729
- if (!i || l === 0)
732
+ if (!a || l === 0)
730
733
  return;
731
- const u = i.get(t);
734
+ const u = a.get(t);
732
735
  if (r.current && u) {
733
736
  const d = r.current;
734
737
  d.hidden = !0;
@@ -748,12 +751,12 @@ const vo = () => {
748
751
  var d;
749
752
  (d = s.current) == null || d.cancel();
750
753
  };
751
- }, [i, t, c, l, o, n]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${t}-canvas`, ref: r });
754
+ }, [a, t, c, l, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${t}-canvas`, ref: r });
752
755
  }, dt = {
753
756
  "rp-text-layer": "_rp-text-layer_kwwfn_1",
754
757
  "rp-text-layer-text": "_rp-text-layer-text_kwwfn_9"
755
758
  }, Co = (e) => {
756
- const { pageNumber: t } = e, { pages: n } = K(), o = M(null), { matches: r, currentMatch: i, setCurrentMatchElement: c } = In(), [s, l] = $(
759
+ const { pageNumber: t } = e, { pages: n } = K(), o = M(null), { matches: r, currentMatch: a, setCurrentMatchElement: c } = yn(), [s, l] = $(
757
760
  []
758
761
  ), u = M(), d = M(), f = M(), h = F(() => r.filter((w) => w.pageIndex === t - 1), [r, t]), g = L(
759
762
  (w, b, v = !1) => {
@@ -768,16 +771,16 @@ const vo = () => {
768
771
  );
769
772
  return A(() => {
770
773
  var v;
771
- if ((v = f.current) == null || v.classList.remove("selected"), !s.length || !i || i.pageIndex !== t - 1)
774
+ if ((v = f.current) == null || v.classList.remove("selected"), !s.length || !a || a.pageIndex !== t - 1)
772
775
  return;
773
776
  const w = h.findIndex(
774
- (_) => JSON.stringify(_) === JSON.stringify(i)
777
+ (_) => JSON.stringify(_) === JSON.stringify(a)
775
778
  );
776
779
  if (w === -1)
777
780
  return;
778
781
  const b = s.find((_) => _.index === w);
779
782
  b && (f.current = b.element, c(b.element), b.element.classList.add("selected"));
780
- }, [i, s, h]), A(() => {
783
+ }, [a, s, h]), A(() => {
781
784
  const w = n.get(t);
782
785
  if (!w || !o.current)
783
786
  return;
@@ -808,7 +811,7 @@ const vo = () => {
808
811
  });
809
812
  const b = (v = u.current) == null ? void 0 : v.textDivs;
810
813
  b && d.current && g(d.current, b, !0);
811
- }, [g]), /* @__PURE__ */ a(
814
+ }, [g]), /* @__PURE__ */ i(
812
815
  "div",
813
816
  {
814
817
  "data-rp": `page-${t}-textLayer`,
@@ -820,13 +823,13 @@ const vo = () => {
820
823
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
821
824
  };
822
825
  let Po = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
823
- const xo = (e) => {
824
- const { pageNumber: t } = e, n = M(null), { pages: o, pdf: r } = K(), i = M(), [c, s] = $(), { setFocusedPage: l, goToPage: u } = ie(), { scrollMode: d } = Ee(), { print: f } = nt(), { download: h } = Un(), g = F(() => o.get(t), [o, t]), w = F(() => g == null ? void 0 : g.page.getViewport(), [g]);
826
+ const So = (e) => {
827
+ const { pageNumber: t } = e, n = M(null), { pages: o, pdf: r } = K(), a = M(), [c, s] = $(), { setFocusedPage: l, goToPage: u } = ie(), { scrollMode: d } = Ee(), { print: f } = nt(), { download: h } = Un(), g = F(() => o.get(t), [o, t]), w = F(() => g == null ? void 0 : g.page.getViewport(), [g]);
825
828
  A(() => {
826
- i.current && (i.current.div.replaceChildren(), i.current = void 0);
829
+ a.current && (a.current.div.replaceChildren(), a.current = void 0);
827
830
  }, [r]), A(() => {
828
831
  g && g.page.getAnnotations().then((v) => {
829
- i.current = void 0, s(v), n.current && (n.current.innerText = "");
832
+ a.current = void 0, s(v), n.current && (n.current.innerText = "");
830
833
  });
831
834
  }, [g]);
832
835
  const b = L(
@@ -834,7 +837,7 @@ const xo = (e) => {
834
837
  !c || !r || (Nr(v), Er(v, r, c).then((_) => {
835
838
  var m, P;
836
839
  ((m = _ == null ? void 0 : _.data) == null ? void 0 : m.action) === "Print" ? f() : ((P = _ == null ? void 0 : _.data) == null ? void 0 : P.action) === "SaveAs" && h();
837
- }), d === X.PAGE_SCROLLING ? Mt(v, c, r, (_) => l(_.pageIndex + 1)) : Mt(v, c, r, (_) => u(_.pageIndex + 1)));
840
+ }), d === ee.PAGE_SCROLLING ? Mt(v, c, r, (_) => l(_.pageIndex + 1)) : Mt(v, c, r, (_) => u(_.pageIndex + 1)));
838
841
  },
839
842
  [r, c, u, l, d, f, h]
840
843
  );
@@ -842,28 +845,28 @@ const xo = (e) => {
842
845
  if (!g || !c)
843
846
  return;
844
847
  const v = g.page.getViewport();
845
- if (i.current) {
846
- i.current.update({
848
+ if (a.current) {
849
+ a.current.update({
847
850
  viewport: v.clone({ dontFlip: !0 })
848
851
  });
849
852
  return;
850
853
  }
851
854
  const _ = /* @__PURE__ */ new Map([]);
852
- for (const x of c) {
853
- const { annotationType: p } = x;
855
+ for (const S of c) {
856
+ const { annotationType: p } = S;
854
857
  switch (p) {
855
858
  case kt.Link:
856
- Dr(x);
859
+ Dr(S);
857
860
  break;
858
861
  case kt.Widget:
859
- Or(x, v, _);
862
+ Or(S, v, _);
860
863
  break;
861
864
  }
862
865
  }
863
866
  const m = new AbortController();
864
867
  return (async () => {
865
868
  var T;
866
- i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new gr({
869
+ a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new gr({
867
870
  div: n.current,
868
871
  accessibilityManager: void 0,
869
872
  annotationCanvasMap: void 0,
@@ -872,13 +875,13 @@ const xo = (e) => {
872
875
  page: g.page,
873
876
  viewport: v.clone({ dontFlip: !0 })
874
877
  }), n.current && Wt(n.current, b);
875
- const x = await (r == null ? void 0 : r.hasJSActions()), p = await (r == null ? void 0 : r.getFieldObjects());
878
+ const S = await (r == null ? void 0 : r.hasJSActions()), p = await (r == null ? void 0 : r.getFieldObjects());
876
879
  if (m.signal.aborted)
877
880
  throw "abort";
878
- return (T = i.current) == null ? void 0 : T.render({
881
+ return (T = a.current) == null ? void 0 : T.render({
879
882
  annotations: c,
880
883
  annotationStorage: r == null ? void 0 : r.annotationStorage,
881
- hasJSActions: x,
884
+ hasJSActions: S,
882
885
  fieldObjects: p,
883
886
  div: n.current,
884
887
  viewport: v.clone({ dontFlip: !0 }),
@@ -891,13 +894,13 @@ const xo = (e) => {
891
894
  });
892
895
  })().then(() => {
893
896
  n.current && zr(n.current, b);
894
- }).catch((x) => {
895
- if (x !== "abort")
896
- throw x;
897
+ }).catch((S) => {
898
+ if (S !== "abort")
899
+ throw S;
897
900
  }), () => {
898
901
  m.abort("clear"), n.current && Wt(n.current, b);
899
902
  };
900
- }, [r, c, b]), /* @__PURE__ */ a(
903
+ }, [r, c, b]), /* @__PURE__ */ i(
901
904
  "div",
902
905
  {
903
906
  "data-rp": `page-${t}-annotationLayer`,
@@ -909,8 +912,8 @@ const xo = (e) => {
909
912
  }, ut = {
910
913
  "rp-text-highlight-layer": "_rp-text-highlight-layer_1470i_1",
911
914
  "rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1470i_9"
912
- }, So = ({ pageNumber: e }) => {
913
- const t = M(null), n = M(), o = M(), { pages: r } = K(), { highlightMatches: i } = vr(), c = F(() => i.filter((u) => u.pageIndex === e - 1), [i]), s = L(
915
+ }, xo = ({ pageNumber: e }) => {
916
+ const t = M(null), n = M(), o = M(), { pages: r } = K(), { highlightMatches: a } = vr(), c = F(() => a.filter((u) => u.pageIndex === e - 1), [a]), s = L(
914
917
  (l, u, d = !1) => {
915
918
  d && hn(l, u), pr(c, l, u);
916
919
  },
@@ -947,7 +950,7 @@ const xo = (e) => {
947
950
  });
948
951
  const u = (d = n.current) == null ? void 0 : d.textDivs;
949
952
  u && o.current && s(o.current, u, !0);
950
- }, [s]), /* @__PURE__ */ a(Se, { children: /* @__PURE__ */ a(
953
+ }, [s]), /* @__PURE__ */ i(xe, { children: /* @__PURE__ */ i(
951
954
  "div",
952
955
  {
953
956
  "data-rp": `page-${e}-textHighlightLayer`,
@@ -956,16 +959,16 @@ const xo = (e) => {
956
959
  }
957
960
  ) });
958
961
  }, Nt = We((e, t) => {
959
- const { pageNumber: n, style: o, ...r } = e, { pages: i } = K(), { rotate: c } = Ye(), { textLayer: s } = sr(), { currentZoom: l } = Je(), u = M(i.get(n)), [d, f] = $(!1), h = M(null), [g, w] = $({
962
+ const { pageNumber: n, style: o, ...r } = e, { pages: a } = K(), { rotate: c } = Ye(), { textLayer: s } = sr(), { currentZoom: l } = Je(), u = M(a.get(n)), [d, f] = $(!1), h = M(null), [g, w] = $({
960
963
  width: 0,
961
964
  height: 0
962
965
  });
963
966
  ln(t, () => h.current), A(() => {
964
- if (i && (u.current = i.get(n), u.current)) {
967
+ if (a && (u.current = a.get(n), u.current)) {
965
968
  const m = u.current.page.getViewport({ scale: l, rotation: c });
966
969
  w(m);
967
970
  }
968
- }, [i, n, c, l]);
971
+ }, [a, n, c, l]);
969
972
  const b = F(() => {
970
973
  switch (c) {
971
974
  case 90:
@@ -981,7 +984,7 @@ const xo = (e) => {
981
984
  }, []), _ = L(() => {
982
985
  f(!1);
983
986
  }, []);
984
- return /* @__PURE__ */ a(
987
+ return /* @__PURE__ */ i(
985
988
  "div",
986
989
  {
987
990
  ref: h,
@@ -1004,11 +1007,11 @@ const xo = (e) => {
1004
1007
  },
1005
1008
  className: lt["rp-page"],
1006
1009
  children: [
1007
- /* @__PURE__ */ a(bo, { onLoading: v, onLoaded: _, pageNumber: n }),
1008
- d && /* @__PURE__ */ a("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ a(St, {}) }),
1009
- s && /* @__PURE__ */ a(Co, { pageNumber: n }),
1010
- /* @__PURE__ */ a(So, { pageNumber: n }),
1011
- /* @__PURE__ */ a(xo, { pageNumber: n })
1010
+ /* @__PURE__ */ i(bo, { onLoading: v, onLoaded: _, pageNumber: n }),
1011
+ d && /* @__PURE__ */ i("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ i(xt, {}) }),
1012
+ s && /* @__PURE__ */ i(Co, { pageNumber: n }),
1013
+ /* @__PURE__ */ i(xo, { pageNumber: n }),
1014
+ /* @__PURE__ */ i(So, { pageNumber: n })
1012
1015
  ]
1013
1016
  }
1014
1017
  )
@@ -1025,30 +1028,30 @@ function bt(e, t) {
1025
1028
  return n.__proto__ = o, n;
1026
1029
  }, bt(e, t);
1027
1030
  }
1028
- function Io(e, t) {
1031
+ function yo(e, t) {
1029
1032
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, bt(e, t);
1030
1033
  }
1031
1034
  var Zt = Number.isNaN || function(t) {
1032
1035
  return typeof t == "number" && t !== t;
1033
1036
  };
1034
- function yo(e, t) {
1037
+ function Io(e, t) {
1035
1038
  return !!(e === t || Zt(e) && Zt(t));
1036
1039
  }
1037
1040
  function Lo(e, t) {
1038
1041
  if (e.length !== t.length)
1039
1042
  return !1;
1040
1043
  for (var n = 0; n < e.length; n++)
1041
- if (!yo(e[n], t[n]))
1044
+ if (!Io(e[n], t[n]))
1042
1045
  return !1;
1043
1046
  return !0;
1044
1047
  }
1045
1048
  function pt(e, t) {
1046
1049
  t === void 0 && (t = Lo);
1047
- var n, o = [], r, i = !1;
1050
+ var n, o = [], r, a = !1;
1048
1051
  function c() {
1049
1052
  for (var s = [], l = 0; l < arguments.length; l++)
1050
1053
  s[l] = arguments[l];
1051
- return i && n === this && t(s, o) || (r = e.apply(this, s), i = !0, n = this, o = s), r;
1054
+ return a && n === this && t(s, o) || (r = e.apply(this, s), a = !0, n = this, o = s), r;
1052
1055
  }
1053
1056
  return c;
1054
1057
  }
@@ -1105,15 +1108,15 @@ var Oo = 150, Do = function(t) {
1105
1108
  t.data;
1106
1109
  var o = t.rowIndex;
1107
1110
  return o + ":" + n;
1108
- }, Ve = null, Ue = null, qe = null;
1109
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ve = /* @__PURE__ */ new WeakSet(), Ue = /* @__PURE__ */ new WeakSet(), qe = /* @__PURE__ */ new WeakSet());
1111
+ }, Ge = null, Ue = null, qe = null;
1112
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ge = /* @__PURE__ */ new WeakSet(), Ue = /* @__PURE__ */ new WeakSet(), qe = /* @__PURE__ */ new WeakSet());
1110
1113
  function zo(e) {
1111
- var t, n = e.getColumnOffset, o = e.getColumnStartIndexForOffset, r = e.getColumnStopIndexForStartIndex, i = e.getColumnWidth, c = e.getEstimatedTotalHeight, s = e.getEstimatedTotalWidth, l = e.getOffsetForColumnAndAlignment, u = e.getOffsetForRowAndAlignment, d = e.getRowHeight, f = e.getRowOffset, h = e.getRowStartIndexForOffset, g = e.getRowStopIndexForStartIndex, w = e.initInstanceProps, b = e.shouldResetStyleCacheOnItemSizeChange, v = e.validateProps;
1114
+ var t, n = e.getColumnOffset, o = e.getColumnStartIndexForOffset, r = e.getColumnStopIndexForStartIndex, a = e.getColumnWidth, c = e.getEstimatedTotalHeight, s = e.getEstimatedTotalWidth, l = e.getOffsetForColumnAndAlignment, u = e.getOffsetForRowAndAlignment, d = e.getRowHeight, f = e.getRowOffset, h = e.getRowStartIndexForOffset, g = e.getRowStopIndexForStartIndex, w = e.initInstanceProps, b = e.shouldResetStyleCacheOnItemSizeChange, v = e.validateProps;
1112
1115
  return t = /* @__PURE__ */ function(_) {
1113
- Io(m, _);
1114
- function m(x) {
1116
+ yo(m, _);
1117
+ function m(S) {
1115
1118
  var p;
1116
- return p = _.call(this, x) || this, p._instanceProps = w(p.props, qt(p)), p._resetIsScrollingTimeoutId = null, p._outerRef = void 0, p.state = {
1119
+ return p = _.call(this, S) || this, p._instanceProps = w(p.props, qt(p)), p._resetIsScrollingTimeoutId = null, p._outerRef = void 0, p.state = {
1117
1120
  instance: qt(p),
1118
1121
  isScrolling: !1,
1119
1122
  horizontalScrollDirection: "forward",
@@ -1121,63 +1124,63 @@ function zo(e) {
1121
1124
  scrollTop: typeof p.props.initialScrollTop == "number" ? p.props.initialScrollTop : 0,
1122
1125
  scrollUpdateWasRequested: !1,
1123
1126
  verticalScrollDirection: "forward"
1124
- }, p._callOnItemsRendered = void 0, p._callOnItemsRendered = pt(function(T, C, S, N, y, O, R, k) {
1127
+ }, p._callOnItemsRendered = void 0, p._callOnItemsRendered = pt(function(T, C, x, N, I, O, R, k) {
1125
1128
  return p.props.onItemsRendered({
1126
1129
  overscanColumnStartIndex: T,
1127
1130
  overscanColumnStopIndex: C,
1128
- overscanRowStartIndex: S,
1131
+ overscanRowStartIndex: x,
1129
1132
  overscanRowStopIndex: N,
1130
- visibleColumnStartIndex: y,
1133
+ visibleColumnStartIndex: I,
1131
1134
  visibleColumnStopIndex: O,
1132
1135
  visibleRowStartIndex: R,
1133
1136
  visibleRowStopIndex: k
1134
1137
  });
1135
- }), p._callOnScroll = void 0, p._callOnScroll = pt(function(T, C, S, N, y) {
1138
+ }), p._callOnScroll = void 0, p._callOnScroll = pt(function(T, C, x, N, I) {
1136
1139
  return p.props.onScroll({
1137
- horizontalScrollDirection: S,
1140
+ horizontalScrollDirection: x,
1138
1141
  scrollLeft: T,
1139
1142
  scrollTop: C,
1140
1143
  verticalScrollDirection: N,
1141
- scrollUpdateWasRequested: y
1144
+ scrollUpdateWasRequested: I
1142
1145
  });
1143
1146
  }), p._getItemStyle = void 0, p._getItemStyle = function(T, C) {
1144
- var S = p.props, N = S.columnWidth, y = S.direction, O = S.rowHeight, R = p._getItemStyleCache(b && N, b && y, b && O), k = T + ":" + C, z;
1147
+ var x = p.props, N = x.columnWidth, I = x.direction, O = x.rowHeight, R = p._getItemStyleCache(b && N, b && I, b && O), k = T + ":" + C, z;
1145
1148
  if (R.hasOwnProperty(k))
1146
1149
  z = R[k];
1147
1150
  else {
1148
- var I = n(p.props, C, p._instanceProps), E = y === "rtl";
1151
+ var y = n(p.props, C, p._instanceProps), E = I === "rtl";
1149
1152
  R[k] = z = {
1150
1153
  position: "absolute",
1151
- left: E ? void 0 : I,
1152
- right: E ? I : void 0,
1154
+ left: E ? void 0 : y,
1155
+ right: E ? y : void 0,
1153
1156
  top: f(p.props, T, p._instanceProps),
1154
1157
  height: d(p.props, T, p._instanceProps),
1155
- width: i(p.props, C, p._instanceProps)
1158
+ width: a(p.props, C, p._instanceProps)
1156
1159
  };
1157
1160
  }
1158
1161
  return z;
1159
- }, p._getItemStyleCache = void 0, p._getItemStyleCache = pt(function(T, C, S) {
1162
+ }, p._getItemStyleCache = void 0, p._getItemStyleCache = pt(function(T, C, x) {
1160
1163
  return {};
1161
1164
  }), p._onScroll = function(T) {
1162
- var C = T.currentTarget, S = C.clientHeight, N = C.clientWidth, y = C.scrollLeft, O = C.scrollTop, R = C.scrollHeight, k = C.scrollWidth;
1165
+ var C = T.currentTarget, x = C.clientHeight, N = C.clientWidth, I = C.scrollLeft, O = C.scrollTop, R = C.scrollHeight, k = C.scrollWidth;
1163
1166
  p.setState(function(z) {
1164
- if (z.scrollLeft === y && z.scrollTop === O)
1167
+ if (z.scrollLeft === I && z.scrollTop === O)
1165
1168
  return null;
1166
- var I = p.props.direction, E = y;
1167
- if (I === "rtl")
1169
+ var y = p.props.direction, E = I;
1170
+ if (y === "rtl")
1168
1171
  switch (Xt()) {
1169
1172
  case "negative":
1170
- E = -y;
1173
+ E = -I;
1171
1174
  break;
1172
1175
  case "positive-descending":
1173
- E = k - N - y;
1176
+ E = k - N - I;
1174
1177
  break;
1175
1178
  }
1176
1179
  E = Math.max(0, Math.min(E, k - N));
1177
- var W = Math.max(0, Math.min(O, R - S));
1180
+ var W = Math.max(0, Math.min(O, R - x));
1178
1181
  return {
1179
1182
  isScrolling: !0,
1180
- horizontalScrollDirection: z.scrollLeft < y ? "forward" : "backward",
1183
+ horizontalScrollDirection: z.scrollLeft < I ? "forward" : "backward",
1181
1184
  scrollLeft: E,
1182
1185
  scrollTop: W,
1183
1186
  verticalScrollDirection: z.scrollTop < O ? "forward" : "backward",
@@ -1203,60 +1206,60 @@ function zo(e) {
1203
1206
  var P = m.prototype;
1204
1207
  return P.scrollTo = function(p) {
1205
1208
  var T = p.scrollLeft, C = p.scrollTop;
1206
- T !== void 0 && (T = Math.max(0, T)), C !== void 0 && (C = Math.max(0, C)), this.setState(function(S) {
1207
- return T === void 0 && (T = S.scrollLeft), C === void 0 && (C = S.scrollTop), S.scrollLeft === T && S.scrollTop === C ? null : {
1208
- horizontalScrollDirection: S.scrollLeft < T ? "forward" : "backward",
1209
+ T !== void 0 && (T = Math.max(0, T)), C !== void 0 && (C = Math.max(0, C)), this.setState(function(x) {
1210
+ return T === void 0 && (T = x.scrollLeft), C === void 0 && (C = x.scrollTop), x.scrollLeft === T && x.scrollTop === C ? null : {
1211
+ horizontalScrollDirection: x.scrollLeft < T ? "forward" : "backward",
1209
1212
  scrollLeft: T,
1210
1213
  scrollTop: C,
1211
1214
  scrollUpdateWasRequested: !0,
1212
- verticalScrollDirection: S.scrollTop < C ? "forward" : "backward"
1215
+ verticalScrollDirection: x.scrollTop < C ? "forward" : "backward"
1213
1216
  };
1214
1217
  }, this._resetIsScrollingDebounced);
1215
1218
  }, P.scrollToItem = function(p) {
1216
- var T = p.align, C = T === void 0 ? "auto" : T, S = p.columnIndex, N = p.rowIndex, y = this.props, O = y.columnCount, R = y.height, k = y.rowCount, z = y.width, I = this.state, E = I.scrollLeft, W = I.scrollTop, V = Eo();
1217
- S !== void 0 && (S = Math.max(0, Math.min(S, O - 1))), N !== void 0 && (N = Math.max(0, Math.min(N, k - 1)));
1218
- var Z = c(this.props, this._instanceProps), Y = s(this.props, this._instanceProps), j = Y > z ? V : 0, B = Z > R ? V : 0;
1219
+ var T = p.align, C = T === void 0 ? "auto" : T, x = p.columnIndex, N = p.rowIndex, I = this.props, O = I.columnCount, R = I.height, k = I.rowCount, z = I.width, y = this.state, E = y.scrollLeft, W = y.scrollTop, G = Eo();
1220
+ x !== void 0 && (x = Math.max(0, Math.min(x, O - 1))), N !== void 0 && (N = Math.max(0, Math.min(N, k - 1)));
1221
+ var Z = c(this.props, this._instanceProps), X = s(this.props, this._instanceProps), j = X > z ? G : 0, B = Z > R ? G : 0;
1219
1222
  this.scrollTo({
1220
- scrollLeft: S !== void 0 ? l(this.props, S, C, E, this._instanceProps, B) : E,
1223
+ scrollLeft: x !== void 0 ? l(this.props, x, C, E, this._instanceProps, B) : E,
1221
1224
  scrollTop: N !== void 0 ? u(this.props, N, C, W, this._instanceProps, j) : W
1222
1225
  });
1223
1226
  }, P.componentDidMount = function() {
1224
1227
  var p = this.props, T = p.initialScrollLeft, C = p.initialScrollTop;
1225
1228
  if (this._outerRef != null) {
1226
- var S = this._outerRef;
1227
- typeof T == "number" && (S.scrollLeft = T), typeof C == "number" && (S.scrollTop = C);
1229
+ var x = this._outerRef;
1230
+ typeof T == "number" && (x.scrollLeft = T), typeof C == "number" && (x.scrollTop = C);
1228
1231
  }
1229
1232
  this._callPropsCallbacks();
1230
1233
  }, P.componentDidUpdate = function() {
1231
- var p = this.props.direction, T = this.state, C = T.scrollLeft, S = T.scrollTop, N = T.scrollUpdateWasRequested;
1234
+ var p = this.props.direction, T = this.state, C = T.scrollLeft, x = T.scrollTop, N = T.scrollUpdateWasRequested;
1232
1235
  if (N && this._outerRef != null) {
1233
- var y = this._outerRef;
1236
+ var I = this._outerRef;
1234
1237
  if (p === "rtl")
1235
1238
  switch (Xt()) {
1236
1239
  case "negative":
1237
- y.scrollLeft = -C;
1240
+ I.scrollLeft = -C;
1238
1241
  break;
1239
1242
  case "positive-ascending":
1240
- y.scrollLeft = C;
1243
+ I.scrollLeft = C;
1241
1244
  break;
1242
1245
  default:
1243
- var O = y.clientWidth, R = y.scrollWidth;
1244
- y.scrollLeft = R - O - C;
1246
+ var O = I.clientWidth, R = I.scrollWidth;
1247
+ I.scrollLeft = R - O - C;
1245
1248
  break;
1246
1249
  }
1247
1250
  else
1248
- y.scrollLeft = Math.max(0, C);
1249
- y.scrollTop = Math.max(0, S);
1251
+ I.scrollLeft = Math.max(0, C);
1252
+ I.scrollTop = Math.max(0, x);
1250
1253
  }
1251
1254
  this._callPropsCallbacks();
1252
1255
  }, P.componentWillUnmount = function() {
1253
1256
  this._resetIsScrollingTimeoutId !== null && Kt(this._resetIsScrollingTimeoutId);
1254
1257
  }, P.render = function() {
1255
- var p = this.props, T = p.children, C = p.className, S = p.columnCount, N = p.direction, y = p.height, O = p.innerRef, R = p.innerElementType, k = p.innerTagName, z = p.itemData, I = p.itemKey, E = I === void 0 ? Do : I, W = p.outerElementType, V = p.outerTagName, Z = p.rowCount, Y = p.style, j = p.useIsScrolling, B = p.width, te = this.state.isScrolling, ae = this._getHorizontalRangeToRender(), J = ae[0], ne = ae[1], he = this._getVerticalRangeToRender(), ce = he[0], Oe = he[1], we = [];
1256
- if (S > 0 && Z)
1258
+ var p = this.props, T = p.children, C = p.className, x = p.columnCount, N = p.direction, I = p.height, O = p.innerRef, R = p.innerElementType, k = p.innerTagName, z = p.itemData, y = p.itemKey, E = y === void 0 ? Do : y, W = p.outerElementType, G = p.outerTagName, Z = p.rowCount, X = p.style, j = p.useIsScrolling, B = p.width, te = this.state.isScrolling, ae = this._getHorizontalRangeToRender(), Y = ae[0], ne = ae[1], he = this._getVerticalRangeToRender(), ce = he[0], Oe = he[1], we = [];
1259
+ if (x > 0 && Z)
1257
1260
  for (var me = ce; me <= Oe; me++)
1258
- for (var le = J; le <= ne; le++)
1259
- we.push(Ge(T, {
1261
+ for (var le = Y; le <= ne; le++)
1262
+ we.push(Ve(T, {
1260
1263
  columnIndex: le,
1261
1264
  data: z,
1262
1265
  isScrolling: j ? te : void 0,
@@ -1269,20 +1272,20 @@ function zo(e) {
1269
1272
  style: this._getItemStyle(me, le)
1270
1273
  }));
1271
1274
  var De = c(this.props, this._instanceProps), rt = s(this.props, this._instanceProps);
1272
- return Ge(W || V || "div", {
1275
+ return Ve(W || G || "div", {
1273
1276
  className: C,
1274
1277
  onScroll: this._onScroll,
1275
1278
  ref: this._outerRefSetter,
1276
1279
  style: Ar({
1277
1280
  position: "relative",
1278
- height: y,
1281
+ height: I,
1279
1282
  width: B,
1280
1283
  overflow: "auto",
1281
1284
  WebkitOverflowScrolling: "touch",
1282
1285
  willChange: "transform",
1283
1286
  direction: N
1284
- }, Y)
1285
- }, Ge(R || k || "div", {
1287
+ }, X)
1288
+ }, Ve(R || k || "div", {
1286
1289
  children: we,
1287
1290
  ref: O,
1288
1291
  style: {
@@ -1292,27 +1295,27 @@ function zo(e) {
1292
1295
  }
1293
1296
  }));
1294
1297
  }, P._callPropsCallbacks = function() {
1295
- var p = this.props, T = p.columnCount, C = p.onItemsRendered, S = p.onScroll, N = p.rowCount;
1298
+ var p = this.props, T = p.columnCount, C = p.onItemsRendered, x = p.onScroll, N = p.rowCount;
1296
1299
  if (typeof C == "function" && T > 0 && N > 0) {
1297
- var y = this._getHorizontalRangeToRender(), O = y[0], R = y[1], k = y[2], z = y[3], I = this._getVerticalRangeToRender(), E = I[0], W = I[1], V = I[2], Z = I[3];
1298
- this._callOnItemsRendered(O, R, E, W, k, z, V, Z);
1300
+ var I = this._getHorizontalRangeToRender(), O = I[0], R = I[1], k = I[2], z = I[3], y = this._getVerticalRangeToRender(), E = y[0], W = y[1], G = y[2], Z = y[3];
1301
+ this._callOnItemsRendered(O, R, E, W, k, z, G, Z);
1299
1302
  }
1300
- if (typeof S == "function") {
1301
- var Y = this.state, j = Y.horizontalScrollDirection, B = Y.scrollLeft, te = Y.scrollTop, ae = Y.scrollUpdateWasRequested, J = Y.verticalScrollDirection;
1302
- this._callOnScroll(B, te, j, J, ae);
1303
+ if (typeof x == "function") {
1304
+ var X = this.state, j = X.horizontalScrollDirection, B = X.scrollLeft, te = X.scrollTop, ae = X.scrollUpdateWasRequested, Y = X.verticalScrollDirection;
1305
+ this._callOnScroll(B, te, j, Y, ae);
1303
1306
  }
1304
1307
  }, P._getHorizontalRangeToRender = function() {
1305
- var p = this.props, T = p.columnCount, C = p.overscanColumnCount, S = p.overscanColumnsCount, N = p.overscanCount, y = p.rowCount, O = this.state, R = O.horizontalScrollDirection, k = O.isScrolling, z = O.scrollLeft, I = C || S || N || 1;
1306
- if (T === 0 || y === 0)
1308
+ var p = this.props, T = p.columnCount, C = p.overscanColumnCount, x = p.overscanColumnsCount, N = p.overscanCount, I = p.rowCount, O = this.state, R = O.horizontalScrollDirection, k = O.isScrolling, z = O.scrollLeft, y = C || x || N || 1;
1309
+ if (T === 0 || I === 0)
1307
1310
  return [0, 0, 0, 0];
1308
- var E = o(this.props, z, this._instanceProps), W = r(this.props, E, z, this._instanceProps), V = !k || R === "backward" ? Math.max(1, I) : 1, Z = !k || R === "forward" ? Math.max(1, I) : 1;
1309
- return [Math.max(0, E - V), Math.max(0, Math.min(T - 1, W + Z)), E, W];
1311
+ var E = o(this.props, z, this._instanceProps), W = r(this.props, E, z, this._instanceProps), G = !k || R === "backward" ? Math.max(1, y) : 1, Z = !k || R === "forward" ? Math.max(1, y) : 1;
1312
+ return [Math.max(0, E - G), Math.max(0, Math.min(T - 1, W + Z)), E, W];
1310
1313
  }, P._getVerticalRangeToRender = function() {
1311
- var p = this.props, T = p.columnCount, C = p.overscanCount, S = p.overscanRowCount, N = p.overscanRowsCount, y = p.rowCount, O = this.state, R = O.isScrolling, k = O.verticalScrollDirection, z = O.scrollTop, I = S || N || C || 1;
1312
- if (T === 0 || y === 0)
1314
+ var p = this.props, T = p.columnCount, C = p.overscanCount, x = p.overscanRowCount, N = p.overscanRowsCount, I = p.rowCount, O = this.state, R = O.isScrolling, k = O.verticalScrollDirection, z = O.scrollTop, y = x || N || C || 1;
1315
+ if (T === 0 || I === 0)
1313
1316
  return [0, 0, 0, 0];
1314
- var E = h(this.props, z, this._instanceProps), W = g(this.props, E, z, this._instanceProps), V = !R || k === "backward" ? Math.max(1, I) : 1, Z = !R || k === "forward" ? Math.max(1, I) : 1;
1315
- return [Math.max(0, E - V), Math.max(0, Math.min(y - 1, W + Z)), E, W];
1317
+ var E = h(this.props, z, this._instanceProps), W = g(this.props, E, z, this._instanceProps), G = !R || k === "backward" ? Math.max(1, y) : 1, Z = !R || k === "forward" ? Math.max(1, y) : 1;
1318
+ return [Math.max(0, E - G), Math.max(0, Math.min(I - 1, W + Z)), E, W];
1316
1319
  }, m;
1317
1320
  }(nr), t.defaultProps = {
1318
1321
  direction: "ltr",
@@ -1321,9 +1324,9 @@ function zo(e) {
1321
1324
  }, t;
1322
1325
  }
1323
1326
  var Ao = function(t, n) {
1324
- var o = t.children, r = t.direction, i = t.height, c = t.innerTagName, s = t.outerTagName, l = t.overscanColumnsCount, u = t.overscanCount, d = t.overscanRowsCount, f = t.width, h = n.instance;
1327
+ var o = t.children, r = t.direction, a = t.height, c = t.innerTagName, s = t.outerTagName, l = t.overscanColumnsCount, u = t.overscanCount, d = t.overscanRowsCount, f = t.width, h = n.instance;
1325
1328
  if (process.env.NODE_ENV !== "production") {
1326
- if (typeof u == "number" && Ve && !Ve.has(h) && (Ve.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof d == "number") && Ue && !Ue.has(h) && (Ue.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || s != null) && qe && !qe.has(h) && (qe.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1329
+ if (typeof u == "number" && Ge && !Ge.has(h) && (Ge.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof d == "number") && Ue && !Ue.has(h) && (Ue.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || s != null) && qe && !qe.has(h) && (qe.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1327
1330
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1328
1331
  switch (r) {
1329
1332
  case "ltr":
@@ -1334,63 +1337,63 @@ var Ao = function(t, n) {
1334
1337
  }
1335
1338
  if (typeof f != "number")
1336
1339
  throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (f === null ? "null" : typeof f) + '" was specified.'));
1337
- if (typeof i != "number")
1338
- throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
1340
+ if (typeof a != "number")
1341
+ throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1339
1342
  }
1340
- }, Yt = 50, yn = function(t, n) {
1341
- var o = t.rowCount, r = n.rowMetadataMap, i = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, s = 0;
1343
+ }, Yt = 50, In = function(t, n) {
1344
+ var o = t.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, s = 0;
1342
1345
  if (c >= o && (c = o - 1), c >= 0) {
1343
1346
  var l = r[c];
1344
1347
  s = l.offset + l.size;
1345
1348
  }
1346
- var u = o - c - 1, d = u * i;
1349
+ var u = o - c - 1, d = u * a;
1347
1350
  return s + d;
1348
1351
  }, Ln = function(t, n) {
1349
- var o = t.columnCount, r = n.columnMetadataMap, i = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, s = 0;
1352
+ var o = t.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, s = 0;
1350
1353
  if (c >= o && (c = o - 1), c >= 0) {
1351
1354
  var l = r[c];
1352
1355
  s = l.offset + l.size;
1353
1356
  }
1354
- var u = o - c - 1, d = u * i;
1357
+ var u = o - c - 1, d = u * a;
1355
1358
  return s + d;
1356
1359
  }, ve = function(t, n, o, r) {
1357
- var i, c, s;
1358
- if (t === "column" ? (i = r.columnMetadataMap, c = n.columnWidth, s = r.lastMeasuredColumnIndex) : (i = r.rowMetadataMap, c = n.rowHeight, s = r.lastMeasuredRowIndex), o > s) {
1360
+ var a, c, s;
1361
+ if (t === "column" ? (a = r.columnMetadataMap, c = n.columnWidth, s = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = n.rowHeight, s = r.lastMeasuredRowIndex), o > s) {
1359
1362
  var l = 0;
1360
1363
  if (s >= 0) {
1361
- var u = i[s];
1364
+ var u = a[s];
1362
1365
  l = u.offset + u.size;
1363
1366
  }
1364
1367
  for (var d = s + 1; d <= o; d++) {
1365
1368
  var f = c(d);
1366
- i[d] = {
1369
+ a[d] = {
1367
1370
  offset: l,
1368
1371
  size: f
1369
1372
  }, l += f;
1370
1373
  }
1371
1374
  t === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
1372
1375
  }
1373
- return i[o];
1376
+ return a[o];
1374
1377
  }, Jt = function(t, n, o, r) {
1375
- var i, c;
1376
- t === "column" ? (i = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (i = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1377
- var s = c > 0 ? i[c].offset : 0;
1378
+ var a, c;
1379
+ t === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1380
+ var s = c > 0 ? a[c].offset : 0;
1378
1381
  return s >= r ? Rn(t, n, o, c, 0, r) : Fo(t, n, o, Math.max(0, c), r);
1379
- }, Rn = function(t, n, o, r, i, c) {
1380
- for (; i <= r; ) {
1381
- var s = i + Math.floor((r - i) / 2), l = ve(t, n, s, o).offset;
1382
+ }, Rn = function(t, n, o, r, a, c) {
1383
+ for (; a <= r; ) {
1384
+ var s = a + Math.floor((r - a) / 2), l = ve(t, n, s, o).offset;
1382
1385
  if (l === c)
1383
1386
  return s;
1384
- l < c ? i = s + 1 : l > c && (r = s - 1);
1387
+ l < c ? a = s + 1 : l > c && (r = s - 1);
1385
1388
  }
1386
- return i > 0 ? i - 1 : 0;
1387
- }, Fo = function(t, n, o, r, i) {
1388
- for (var c = t === "column" ? n.columnCount : n.rowCount, s = 1; r < c && ve(t, n, r, o).offset < i; )
1389
+ return a > 0 ? a - 1 : 0;
1390
+ }, Fo = function(t, n, o, r, a) {
1391
+ for (var c = t === "column" ? n.columnCount : n.rowCount, s = 1; r < c && ve(t, n, r, o).offset < a; )
1389
1392
  r += s, s *= 2;
1390
- return Rn(t, n, o, Math.min(r, c - 1), Math.floor(r / 2), i);
1391
- }, Qt = function(t, n, o, r, i, c, s) {
1392
- var l = t === "column" ? n.width : n.height, u = ve(t, n, o, c), d = t === "column" ? Ln(n, c) : yn(n, c), f = Math.max(0, Math.min(d - l, u.offset)), h = Math.max(0, u.offset - l + s + u.size);
1393
- switch (r === "smart" && (i >= h - l && i <= f + l ? r = "auto" : r = "center"), r) {
1393
+ return Rn(t, n, o, Math.min(r, c - 1), Math.floor(r / 2), a);
1394
+ }, Qt = function(t, n, o, r, a, c, s) {
1395
+ var l = t === "column" ? n.width : n.height, u = ve(t, n, o, c), d = t === "column" ? Ln(n, c) : In(n, c), f = Math.max(0, Math.min(d - l, u.offset)), h = Math.max(0, u.offset - l + s + u.size);
1396
+ switch (r === "smart" && (a >= h - l && a <= f + l ? r = "auto" : r = "center"), r) {
1394
1397
  case "start":
1395
1398
  return f;
1396
1399
  case "end":
@@ -1399,7 +1402,7 @@ var Ao = function(t, n) {
1399
1402
  return Math.round(h + (f - h) / 2);
1400
1403
  case "auto":
1401
1404
  default:
1402
- return i >= h && i <= f ? i : h > f || i < h ? h : f;
1405
+ return a >= h && a <= f ? a : h > f || a < h ? h : f;
1403
1406
  }
1404
1407
  }, ko = /* @__PURE__ */ zo({
1405
1408
  getColumnOffset: function(t, n, o) {
@@ -1409,20 +1412,20 @@ var Ao = function(t, n) {
1409
1412
  return Jt("column", t, o, n);
1410
1413
  },
1411
1414
  getColumnStopIndexForStartIndex: function(t, n, o, r) {
1412
- for (var i = t.columnCount, c = t.width, s = ve("column", t, n, r), l = o + c, u = s.offset + s.size, d = n; d < i - 1 && u < l; )
1415
+ for (var a = t.columnCount, c = t.width, s = ve("column", t, n, r), l = o + c, u = s.offset + s.size, d = n; d < a - 1 && u < l; )
1413
1416
  d++, u += ve("column", t, d, r).size;
1414
1417
  return d;
1415
1418
  },
1416
1419
  getColumnWidth: function(t, n, o) {
1417
1420
  return o.columnMetadataMap[n].size;
1418
1421
  },
1419
- getEstimatedTotalHeight: yn,
1422
+ getEstimatedTotalHeight: In,
1420
1423
  getEstimatedTotalWidth: Ln,
1421
- getOffsetForColumnAndAlignment: function(t, n, o, r, i, c) {
1422
- return Qt("column", t, n, o, r, i, c);
1424
+ getOffsetForColumnAndAlignment: function(t, n, o, r, a, c) {
1425
+ return Qt("column", t, n, o, r, a, c);
1423
1426
  },
1424
- getOffsetForRowAndAlignment: function(t, n, o, r, i, c) {
1425
- return Qt("row", t, n, o, r, i, c);
1427
+ getOffsetForRowAndAlignment: function(t, n, o, r, a, c) {
1428
+ return Qt("row", t, n, o, r, a, c);
1426
1429
  },
1427
1430
  getRowOffset: function(t, n, o) {
1428
1431
  return ve("row", t, n, o).offset;
@@ -1434,15 +1437,15 @@ var Ao = function(t, n) {
1434
1437
  return Jt("row", t, o, n);
1435
1438
  },
1436
1439
  getRowStopIndexForStartIndex: function(t, n, o, r) {
1437
- for (var i = t.rowCount, c = t.height, s = ve("row", t, n, r), l = o + c, u = s.offset + s.size, d = n; d < i - 1 && u < l; )
1440
+ for (var a = t.rowCount, c = t.height, s = ve("row", t, n, r), l = o + c, u = s.offset + s.size, d = n; d < a - 1 && u < l; )
1438
1441
  d++, u += ve("row", t, d, r).size;
1439
1442
  return d;
1440
1443
  },
1441
1444
  initInstanceProps: function(t, n) {
1442
- var o = t, r = o.estimatedColumnWidth, i = o.estimatedRowHeight, c = {
1445
+ var o = t, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, c = {
1443
1446
  columnMetadataMap: {},
1444
1447
  estimatedColumnWidth: r || Yt,
1445
- estimatedRowHeight: i || Yt,
1448
+ estimatedRowHeight: a || Yt,
1446
1449
  lastMeasuredColumnIndex: -1,
1447
1450
  lastMeasuredRowIndex: -1,
1448
1451
  rowMetadataMap: {}
@@ -1485,26 +1488,26 @@ function en(e, t) {
1485
1488
  }
1486
1489
  var Mo = ["style"], Wo = ["style"];
1487
1490
  function Ho(e, t) {
1488
- var n = e.style, o = Bt(e, Mo), r = t.style, i = Bt(t, Wo);
1489
- return !en(n, r) && !en(o, i);
1491
+ var n = e.style, o = Bt(e, Mo), r = t.style, a = Bt(t, Wo);
1492
+ return !en(n, r) && !en(o, a);
1490
1493
  }
1491
1494
  const $o = () => {
1492
- const { viewMode: e } = Qe(), { scrollMode: t } = Ee(), { setColumnCount: n } = un(), { virtualScrollableElementRef: o } = et(), r = tt(), i = L(
1495
+ const { viewMode: e } = Qe(), { scrollMode: t } = Ee(), { setColumnCount: n } = un(), { virtualScrollableElementRef: o } = et(), r = tt(), a = L(
1493
1496
  (g) => r.widths[g] || 0,
1494
1497
  [r.widths]
1495
1498
  ), c = L(
1496
1499
  (g) => r.heights[g] || 0,
1497
1500
  [r.heights]
1498
- ), s = F(() => r.heights.length, [r.heights]), l = F(() => Math.max(...r.widths), [r.widths]), u = F(() => t === X.HORIZONTAL_SCROLLING ? s : e === Ze.DUAL_PAGE ? 2 : 1, [e, t, t, s, o, l]);
1501
+ ), s = F(() => r.heights.length, [r.heights]), l = F(() => Math.max(...r.widths), [r.widths]), u = F(() => t === ee.HORIZONTAL_SCROLLING ? s : e === Ze.DUAL_PAGE ? 2 : 1, [e, t, t, s, o, l]);
1499
1502
  A(() => {
1500
1503
  n(u);
1501
1504
  }, [u, n]);
1502
- const d = F(() => t === X.HORIZONTAL_SCROLLING || t === X.PAGE_SCROLLING ? 1 : Math.round(s / u), [u, s, t]), f = F(() => r.heights.reduce((g, w) => g + w, 0) / r.heights.length || 0, [r]), h = F(() => r.widths.reduce((g, w) => g + w, 0) / r.heights.length || 0, [r]);
1505
+ const d = F(() => t === ee.HORIZONTAL_SCROLLING || t === ee.PAGE_SCROLLING ? 1 : Math.round(s / u), [u, s, t]), f = F(() => r.heights.reduce((g, w) => g + w, 0) / r.heights.length || 0, [r]), h = F(() => r.widths.reduce((g, w) => g + w, 0) / r.heights.length || 0, [r]);
1503
1506
  return {
1504
1507
  rowCount: d,
1505
1508
  rowHeight: c,
1506
1509
  columnCount: u,
1507
- columnWidth: i,
1510
+ columnWidth: a,
1508
1511
  pageDimension: r,
1509
1512
  estimatedRowHeight: f,
1510
1513
  estimatedColumnWidth: h
@@ -1526,21 +1529,21 @@ ft == null || rn == null ? (Ct = mt, Tt = function(t) {
1526
1529
  }, tn);
1527
1530
  return [n, o];
1528
1531
  });
1529
- function Go(e) {
1530
- let t, n, o, r, i, c, s;
1532
+ function Vo(e) {
1533
+ let t, n, o, r, a, c, s;
1531
1534
  const l = typeof document < "u" && document.attachEvent;
1532
1535
  if (!l) {
1533
1536
  c = function(_) {
1534
- const m = _.__resizeTriggers__, P = m.firstElementChild, x = m.lastElementChild, p = P.firstElementChild;
1535
- x.scrollLeft = x.scrollWidth, x.scrollTop = x.scrollHeight, p.style.width = P.offsetWidth + 1 + "px", p.style.height = P.offsetHeight + 1 + "px", P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight;
1536
- }, i = function(_) {
1537
+ const m = _.__resizeTriggers__, P = m.firstElementChild, S = m.lastElementChild, p = P.firstElementChild;
1538
+ S.scrollLeft = S.scrollWidth, S.scrollTop = S.scrollHeight, p.style.width = P.offsetWidth + 1 + "px", p.style.height = P.offsetHeight + 1 + "px", P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight;
1539
+ }, a = function(_) {
1537
1540
  return _.offsetWidth !== _.__resizeLast__.width || _.offsetHeight !== _.__resizeLast__.height;
1538
1541
  }, s = function(_) {
1539
1542
  if (_.target.className && typeof _.target.className.indexOf == "function" && _.target.className.indexOf("contract-trigger") < 0 && _.target.className.indexOf("expand-trigger") < 0)
1540
1543
  return;
1541
1544
  const m = this;
1542
1545
  c(this), this.__resizeRAF__ && Ct(this.__resizeRAF__), this.__resizeRAF__ = Tt(function() {
1543
- i(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(p) {
1546
+ a(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(p) {
1544
1547
  p.call(m, _);
1545
1548
  }));
1546
1549
  });
@@ -1598,7 +1601,7 @@ function Go(e) {
1598
1601
  }
1599
1602
  };
1600
1603
  }
1601
- class Vo extends rr {
1604
+ class Go extends rr {
1602
1605
  constructor(...t) {
1603
1606
  super(...t), this.state = {
1604
1607
  height: this.props.defaultHeight || 0,
@@ -1613,7 +1616,7 @@ class Vo extends rr {
1613
1616
  onResize: r
1614
1617
  } = this.props;
1615
1618
  if (this._parentNode) {
1616
- const i = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(i.paddingLeft || "0"), s = parseFloat(i.paddingRight || "0"), l = parseFloat(i.paddingTop || "0"), u = parseFloat(i.paddingBottom || "0"), d = this._parentNode.getBoundingClientRect(), f = d.height - l - u, h = d.width - c - s, g = this._parentNode.offsetHeight - l - u, w = this._parentNode.offsetWidth - c - s;
1619
+ const a = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(a.paddingLeft || "0"), s = parseFloat(a.paddingRight || "0"), l = parseFloat(a.paddingTop || "0"), u = parseFloat(a.paddingBottom || "0"), d = this._parentNode.getBoundingClientRect(), f = d.height - l - u, h = d.width - c - s, g = this._parentNode.offsetHeight - l - u, w = this._parentNode.offsetWidth - c - s;
1617
1620
  (!n && (this.state.height !== g || this.state.scaledHeight !== f) || !o && (this.state.width !== w || this.state.scaledWidth !== h)) && (this.setState({
1618
1621
  height: g,
1619
1622
  width: w,
@@ -1639,7 +1642,7 @@ class Vo extends rr {
1639
1642
  const o = n.ownerDocument.defaultView.ResizeObserver;
1640
1643
  o != null ? (this._resizeObserver = new o(() => {
1641
1644
  this._timeoutId = setTimeout(this._onResize, 0);
1642
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Go(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1645
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = Vo(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1643
1646
  }
1644
1647
  }
1645
1648
  componentWillUnmount() {
@@ -1651,7 +1654,7 @@ class Vo extends rr {
1651
1654
  defaultHeight: n,
1652
1655
  defaultWidth: o,
1653
1656
  disableHeight: r = !1,
1654
- disableWidth: i = !1,
1657
+ disableWidth: a = !1,
1655
1658
  doNotBailOutOnEmptyChildren: c = !1,
1656
1659
  nonce: s,
1657
1660
  onResize: l,
@@ -1667,7 +1670,7 @@ class Vo extends rr {
1667
1670
  overflow: "visible"
1668
1671
  }, _ = {};
1669
1672
  let m = !1;
1670
- return r || (h === 0 && (m = !0), v.height = 0, _.height = h, _.scaledHeight = g), i || (b === 0 && (m = !0), v.width = 0, _.width = b, _.scaledWidth = w), c && (m = !1), Ge(d, {
1673
+ return r || (h === 0 && (m = !0), v.height = 0, _.height = h, _.scaledHeight = g), a || (b === 0 && (m = !0), v.width = 0, _.width = b, _.scaledWidth = w), c && (m = !1), Ve(d, {
1671
1674
  ref: this._setRef,
1672
1675
  style: {
1673
1676
  ...v,
@@ -1685,7 +1688,7 @@ const Uo = ({ widths: e, heights: t }) => {
1685
1688
  s.push(u);
1686
1689
  }
1687
1690
  return s;
1688
- }, [n, o]), i = F(() => [
1691
+ }, [n, o]), a = F(() => [
1689
1692
  {
1690
1693
  position: "absolute",
1691
1694
  left: 0,
@@ -1699,27 +1702,27 @@ const Uo = ({ widths: e, heights: t }) => {
1699
1702
  width: e(n),
1700
1703
  height: t(n)
1701
1704
  }
1702
- ], [e, t, r]), c = F(() => i.reduce((s, l) => s + Number(l.width || 0), 0), [i]);
1703
- return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: r.map((s, l) => /* @__PURE__ */ a(Nt, { style: i[l], pageNumber: s }, s)) });
1705
+ ], [e, t, r]), c = F(() => a.reduce((s, l) => s + Number(l.width || 0), 0), [a]);
1706
+ return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: r.map((s, l) => /* @__PURE__ */ i(Nt, { style: a[l], pageNumber: s }, s)) });
1704
1707
  }, qo = ({ widths: e, heights: t }) => {
1705
1708
  const { focusedPage: n } = ie(), o = F(() => ({
1706
1709
  position: "absolute",
1707
1710
  width: e(n - 1),
1708
1711
  height: t(n - 1)
1709
1712
  }), [e, t, n]), r = F(() => e(n - 1), [e]);
1710
- return /* @__PURE__ */ a(
1713
+ return /* @__PURE__ */ i(
1711
1714
  "div",
1712
1715
  {
1713
1716
  style: {
1714
1717
  width: r,
1715
1718
  position: "relative"
1716
1719
  },
1717
- children: /* @__PURE__ */ a(Nt, { style: o, pageNumber: n }, n)
1720
+ children: /* @__PURE__ */ i(Nt, { style: o, pageNumber: n }, n)
1718
1721
  }
1719
1722
  );
1720
1723
  }, Zo = (e, t, n) => {
1721
- const o = M(), { contentRef: r } = Te(), { heights: i, widths: c } = tt(), { setFocusedPage: s } = ie(), [l, u] = $([]), { smoothScrolling: d } = xt(), f = It(l, 100, 500), h = F(() => i.map((w, b) => {
1722
- const v = c[b], _ = Hr(b + 1, e), m = v * _.columnIndex, P = w * _.rowIndex, x = m + v, p = P + w;
1724
+ const o = M(), { contentRef: r } = Te(), { heights: a, widths: c } = tt(), { setFocusedPage: s } = ie(), [l, u] = $([]), { smoothScrolling: d } = St(), f = yt(l, 0, 500), h = F(() => a.map((w, b) => {
1725
+ const v = c[b], _ = Hr(b + 1, e), m = v * _.columnIndex, P = w * _.rowIndex, S = m + v, p = P + w;
1723
1726
  return {
1724
1727
  pageNumber: b + 1,
1725
1728
  ..._,
@@ -1727,10 +1730,10 @@ const Uo = ({ widths: e, heights: t }) => {
1727
1730
  height: w,
1728
1731
  startX: m,
1729
1732
  startY: P,
1730
- endX: x,
1733
+ endX: S,
1731
1734
  endY: p
1732
1735
  };
1733
- }), [i, c, e, t]);
1736
+ }), [a, c, e, t]);
1734
1737
  A(() => {
1735
1738
  f.length > 0 && !d.current && s(f[0].pageNumber);
1736
1739
  }, [f, s]);
@@ -1743,13 +1746,13 @@ const Uo = ({ widths: e, heights: t }) => {
1743
1746
  endTop: b.scrollTop + b.clientHeight,
1744
1747
  endLeft: b.scrollLeft + b.clientWidth
1745
1748
  }, _ = h.filter((m) => {
1746
- const P = m.endX >= v.startLeft && m.endY >= v.startTop, x = m.startX <= v.endLeft && m.startY <= v.endTop;
1747
- return P && x;
1749
+ const P = m.endX >= v.startLeft && m.endY >= v.startTop, S = m.startX <= v.endLeft && m.startY <= v.endTop;
1750
+ return P && S;
1748
1751
  }).map((m) => {
1749
- const P = v.startLeft > m.startX ? v.startLeft : m.startX, x = v.startTop > m.startY ? v.startTop : m.startY, p = v.endLeft < m.endX ? v.endLeft : m.endX, T = v.endTop < m.endY ? v.endTop : m.endY, C = p - P, S = T - x, y = +(C * S / (m.width * m.height) * 100).toFixed(2);
1752
+ const P = v.startLeft > m.startX ? v.startLeft : m.startX, S = v.startTop > m.startY ? v.startTop : m.startY, p = v.endLeft < m.endX ? v.endLeft : m.endX, T = v.endTop < m.endY ? v.endTop : m.endY, C = p - P, x = T - S, I = +(C * x / (m.width * m.height) * 100).toFixed(2);
1750
1753
  return {
1751
1754
  pageNumber: m.pageNumber,
1752
- ratio: y
1755
+ ratio: I
1753
1756
  };
1754
1757
  }).sort((m, P) => P.ratio - m.ratio);
1755
1758
  u(_);
@@ -1765,10 +1768,10 @@ const Uo = ({ widths: e, heights: t }) => {
1765
1768
  }, [n, g]);
1766
1769
  }, Bo = or(({ columnIndex: e, rowIndex: t, data: n, style: o }) => {
1767
1770
  const r = $r(t, e, n.columnCount);
1768
- return /* @__PURE__ */ a(Nt, { style: o, pageNumber: r }, r);
1769
- }, Ho), Is = () => {
1771
+ return /* @__PURE__ */ i(Nt, { style: o, pageNumber: r }, r);
1772
+ }, Ho), ys = () => {
1770
1773
  const { initialPage: e = 1, initialScrollMode: t } = lr(), { pagesRef: n, setPagesRef: o } = Te(), { scrollToPage: r } = bn(), {
1771
- virtualScrollRef: i,
1774
+ virtualScrollRef: a,
1772
1775
  getVirtualScrollRef: c,
1773
1776
  getPageScrollElementRef: s,
1774
1777
  getVirtualScrollableElementRef: l,
@@ -1776,54 +1779,54 @@ const Uo = ({ widths: e, heights: t }) => {
1776
1779
  virtualScrollableElementRef: d,
1777
1780
  totalInnerDimensions: f,
1778
1781
  pageScrollElementRef: h
1779
- } = et(), g = M(!0), { nextPage: w, prevPage: b, setFocusedPage: v, focusedPage: _ } = ie(), { scrollMode: m } = Ee(), { viewMode: P } = Qe(), x = M(null), { loading: p } = K(), { LoaderImageComponent: T } = mn(), { smoothScrolling: C, targetScrollPosition: S } = xt(), N = M(
1782
+ } = et(), g = M(!0), { nextPage: w, prevPage: b, setFocusedPage: v, focusedPage: _ } = ie(), { scrollMode: m } = Ee(), { viewMode: P } = Qe(), S = M(null), { loading: p } = K(), { LoaderImageComponent: T } = mn(), { smoothScrolling: C, targetScrollPosition: x } = St(), N = M(
1780
1783
  f
1781
- ), y = M({
1784
+ ), I = M({
1782
1785
  viewMode: P,
1783
1786
  scrollMode: m
1784
1787
  }), O = M(!1), R = M(), { isFullScreen: k } = dr(), {
1785
1788
  pageDimension: z,
1786
- rowCount: I,
1789
+ rowCount: y,
1787
1790
  rowHeight: E,
1788
1791
  columnCount: W,
1789
- columnWidth: V,
1792
+ columnWidth: G,
1790
1793
  estimatedColumnWidth: Z,
1791
- estimatedRowHeight: Y
1792
- } = $o(), j = It(f, 100), B = M();
1793
- Zo(W, I, d);
1794
+ estimatedRowHeight: X
1795
+ } = $o(), j = yt(f, 100), B = M();
1796
+ Zo(W, y, d);
1794
1797
  const te = M({
1795
1798
  scrollTop: 0,
1796
1799
  scrollLeft: 0
1797
1800
  });
1798
1801
  Wr(n);
1799
- const { isPressed: ae } = kr(), { selectionMode: J } = cr(), { initializeGrabScroll: ne, resetGrabState: he } = Mr({
1802
+ const { isPressed: ae } = kr(), { selectionMode: Y } = cr(), { initializeGrabScroll: ne, resetGrabState: he } = Mr({
1800
1803
  isPressed: ae
1801
- }), ce = F(() => J === ar.HAND, [J]), Oe = F(() => ({
1804
+ }), ce = F(() => Y === ar.HAND, [Y]), Oe = F(() => ({
1802
1805
  columnCount: W
1803
1806
  }), [W]), we = L(
1804
1807
  (H) => {
1805
- const G = document.activeElement !== n;
1806
- !k && G || (["ArrowUp", "ArrowLeft"].includes(H.key) ? (H.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(H.key) && (H.preventDefault(), w()));
1808
+ const V = document.activeElement !== n;
1809
+ !k && V || (["ArrowUp", "ArrowLeft"].includes(H.key) ? (H.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(H.key) && (H.preventDefault(), w()));
1807
1810
  },
1808
1811
  [w, b, k, m]
1809
1812
  );
1810
1813
  A(() => (window.addEventListener("keydown", we), () => {
1811
1814
  window.removeEventListener("keydown", we);
1812
1815
  }), [we]), A(() => {
1813
- if (x.current && (x.current.style.position = "relative"), !!i)
1814
- for (let H = 0; H < I; H++)
1815
- for (let G = 0; G < W; G++)
1816
- i.resetAfterIndices({
1817
- columnIndex: G,
1816
+ if (S.current && (S.current.style.position = "relative"), !!a)
1817
+ for (let H = 0; H < y; H++)
1818
+ for (let V = 0; V < W; V++)
1819
+ a.resetAfterIndices({
1820
+ columnIndex: V,
1818
1821
  rowIndex: H,
1819
1822
  shouldForceUpdate: !0
1820
1823
  });
1821
- }, [I, W, z, i]);
1824
+ }, [y, W, z, a]);
1822
1825
  const me = L(
1823
- (H, G) => {
1826
+ (H, V) => {
1824
1827
  if (!d)
1825
1828
  return { scrollTop: 0, scrollLeft: 0 };
1826
- const fe = te.current.scrollTop > G, ge = te.current.scrollLeft > H;
1829
+ const fe = te.current.scrollTop > V, ge = te.current.scrollLeft > H;
1827
1830
  return fe || ge ? te.current : {
1828
1831
  scrollTop: d.scrollTop,
1829
1832
  scrollLeft: d.scrollLeft
@@ -1831,58 +1834,58 @@ const Uo = ({ widths: e, heights: t }) => {
1831
1834
  },
1832
1835
  [d]
1833
1836
  ), le = L(
1834
- (H, G) => {
1835
- if (y.current.viewMode !== P || y.current.scrollMode !== m) {
1837
+ (H, V) => {
1838
+ if (I.current.viewMode !== P || I.current.scrollMode !== m) {
1836
1839
  B.current && clearTimeout(B.current), O.current = !0, r(_, "auto"), B.current = setTimeout(() => {
1837
1840
  requestAnimationFrame(() => {
1838
- y.current = { viewMode: P, scrollMode: m };
1841
+ I.current = { viewMode: P, scrollMode: m };
1839
1842
  });
1840
1843
  }, 100);
1841
1844
  return;
1842
1845
  }
1843
1846
  const ge = H.scrollTop, ze = H.scrollLeft;
1844
- if (!G.height || !G.width)
1847
+ if (!V.height || !V.width)
1845
1848
  return;
1846
1849
  O.current = !0;
1847
- const { height: Pe, width: ot } = G, { height: At, width: Ft } = N.current;
1850
+ const { height: Pe, width: ot } = V, { height: At, width: Ft } = N.current;
1848
1851
  if (At === Pe && Ft === ot)
1849
1852
  return;
1850
1853
  const Jn = ge / At * Pe, Qn = ze / Ft * ot, er = Math.round(Math.min(Jn, Pe)) || 0, tr = Math.round(Math.min(Qn, ot)) || 0;
1851
1854
  R.current = setTimeout(() => {
1852
1855
  requestAnimationFrame(() => {
1853
- i == null || i.scrollTo({
1856
+ a == null || a.scrollTo({
1854
1857
  scrollTop: er,
1855
1858
  scrollLeft: tr
1856
1859
  });
1857
1860
  });
1858
1861
  }, 0), N.current = {
1859
- height: G.height,
1860
- width: G.width
1862
+ height: V.height,
1863
+ width: V.width
1861
1864
  };
1862
1865
  },
1863
- [i, P, m, r]
1866
+ [a, P, m, r]
1864
1867
  );
1865
1868
  A(() => {
1866
1869
  clearTimeout(R.current);
1867
- const H = Array.from({ length: I }).reduce(
1870
+ const H = Array.from({ length: y }).reduce(
1868
1871
  (ge, ze, Pe) => ge + E(Pe),
1869
1872
  0
1870
- ), G = Array.from({ length: W }).reduce(
1871
- (ge, ze, Pe) => ge + V(Pe),
1873
+ ), V = Array.from({ length: W }).reduce(
1874
+ (ge, ze, Pe) => ge + G(Pe),
1872
1875
  0
1873
- ), fe = me(G, H);
1874
- te.current = fe, le(fe, { height: H, width: G }), u({
1876
+ ), fe = me(V, H);
1877
+ te.current = fe, le(fe, { height: H, width: V }), u({
1875
1878
  height: H,
1876
- width: G
1879
+ width: V
1877
1880
  });
1878
- }, [z, I, W, le]);
1881
+ }, [z, y, W, le]);
1879
1882
  const De = L(
1880
1883
  (H) => {
1881
1884
  te.current = {
1882
1885
  scrollTop: H.scrollTop,
1883
1886
  scrollLeft: H.scrollLeft
1884
1887
  };
1885
- const G = ((d == null ? void 0 : d.scrollHeight) || 0) - ((d == null ? void 0 : d.clientHeight) || 0), fe = ((d == null ? void 0 : d.scrollWidth) || 0) - ((d == null ? void 0 : d.clientWidth) || 0), ge = Math.round(S.current.left) === Math.round(H.scrollLeft) && Math.round(S.current.top) === Math.round(H.scrollTop), ze = Math.round(G) === Math.round(H.scrollTop) && Math.round(fe) === Math.round(H.scrollLeft);
1888
+ const V = ((d == null ? void 0 : d.scrollHeight) || 0) - ((d == null ? void 0 : d.clientHeight) || 0), fe = ((d == null ? void 0 : d.scrollWidth) || 0) - ((d == null ? void 0 : d.clientWidth) || 0), ge = Math.round(x.current.left) === Math.round(H.scrollLeft) && Math.round(x.current.top) === Math.round(H.scrollTop), ze = Math.round(V) === Math.round(H.scrollTop) && Math.round(fe) === Math.round(H.scrollLeft);
1886
1889
  (ge || ze) && (C.current = !1);
1887
1890
  },
1888
1891
  [d]
@@ -1896,7 +1899,7 @@ const Uo = ({ widths: e, heights: t }) => {
1896
1899
  }), [ce, ae]), Yn = L(
1897
1900
  (H) => {
1898
1901
  if (ce && H) {
1899
- const G = re(de["rp-pages"]), fe = document.querySelector(`.${G}`);
1902
+ const V = re(de["rp-pages"]), fe = document.querySelector(`.${V}`);
1900
1903
  ne(fe);
1901
1904
  }
1902
1905
  },
@@ -1906,67 +1909,49 @@ const Uo = ({ widths: e, heights: t }) => {
1906
1909
  p && he();
1907
1910
  }, [p]), A(() => {
1908
1911
  if (!(j.height === 0 || !g.current)) {
1909
- if (t === X.PAGE_SCROLLING) {
1912
+ if (t === ee.PAGE_SCROLLING) {
1910
1913
  e !== _ && h && v(e), g.current = !1;
1911
1914
  return;
1912
1915
  }
1913
- if (i != null && i.scrollToItem) {
1914
- switch (t) {
1915
- case X.HORIZONTAL_SCROLLING:
1916
- i.scrollToItem({
1917
- columnIndex: e - 1,
1918
- rowIndex: 0,
1919
- align: "start"
1920
- });
1921
- break;
1922
- default:
1923
- i.scrollToItem({
1924
- columnIndex: 0,
1925
- rowIndex: e - 1,
1926
- align: "start"
1927
- });
1928
- break;
1929
- }
1930
- v(e), g.current = !1;
1931
- }
1916
+ r(e, "auto"), v(e), g.current = !1;
1932
1917
  }
1933
1918
  }, [
1934
- i,
1919
+ r,
1935
1920
  t,
1936
1921
  h,
1937
1922
  v,
1938
1923
  j
1939
- ]), /* @__PURE__ */ a("div", { ref: o, tabIndex: -1, className: rt, children: /* @__PURE__ */ a(Vo, { style: { minHeight: "50px" }, children: ({ width: H, height: G }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Yn, style: { width: H, height: G }, children: m === X.PAGE_SCROLLING ? /* @__PURE__ */ a(
1924
+ ]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Go, { style: { minHeight: "50px" }, children: ({ width: H, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Yn, style: { width: H, height: V }, children: m === ee.PAGE_SCROLLING ? /* @__PURE__ */ i(
1940
1925
  "div",
1941
1926
  {
1942
1927
  ref: s,
1943
- style: { width: H, height: G },
1928
+ style: { width: H, height: V },
1944
1929
  className: re(de["rp-pages"], de["rp-page-scrolling-wrapper"]),
1945
- children: P === Ze.DUAL_PAGE ? /* @__PURE__ */ a(Uo, { widths: V, heights: E }) : /* @__PURE__ */ a(qo, { widths: V, heights: E })
1930
+ children: P === Ze.DUAL_PAGE ? /* @__PURE__ */ i(Uo, { widths: G, heights: E }) : /* @__PURE__ */ i(qo, { widths: G, heights: E })
1946
1931
  }
1947
- ) : Z ? /* @__PURE__ */ a(
1932
+ ) : Z ? /* @__PURE__ */ i(
1948
1933
  ko,
1949
1934
  {
1950
1935
  ref: c,
1951
1936
  itemData: Oe,
1952
1937
  outerRef: l,
1953
- innerRef: x,
1938
+ innerRef: S,
1954
1939
  onScroll: De,
1955
1940
  columnCount: W,
1956
- columnWidth: V,
1941
+ columnWidth: G,
1957
1942
  rowHeight: E,
1958
- height: G,
1943
+ height: V,
1959
1944
  width: H,
1960
1945
  estimatedColumnWidth: Z,
1961
- estimatedRowHeight: Y,
1962
- rowCount: I,
1946
+ estimatedRowHeight: X,
1947
+ rowCount: y,
1963
1948
  className: re(
1964
1949
  de["rp-pages"],
1965
- m === X.HORIZONTAL_SCROLLING ? de["rp-pages-horizontal-scroll"] : ""
1950
+ m === ee.HORIZONTAL_SCROLLING ? de["rp-pages-horizontal-scroll"] : ""
1966
1951
  ),
1967
1952
  children: Bo
1968
1953
  }
1969
- ) : p ? null : /* @__PURE__ */ a(
1954
+ ) : p ? null : /* @__PURE__ */ i(
1970
1955
  "div",
1971
1956
  {
1972
1957
  className: de["rp-loader"],
@@ -1977,7 +1962,7 @@ const Uo = ({ widths: e, heights: t }) => {
1977
1962
  height: "100%",
1978
1963
  width: "100%"
1979
1964
  },
1980
- children: T && /* @__PURE__ */ a(T, {})
1965
+ children: T && /* @__PURE__ */ i(T, {})
1981
1966
  }
1982
1967
  ) }) }) });
1983
1968
  }, Ae = {
@@ -1992,12 +1977,12 @@ const Uo = ({ widths: e, heights: t }) => {
1992
1977
  "rp-total-page": "_rp-total-page_1y9vo_11"
1993
1978
  }, jo = () => {
1994
1979
  const { prevIcon: e } = pe();
1995
- return e || /* @__PURE__ */ a(Me, {});
1980
+ return e || /* @__PURE__ */ i(Me, {});
1996
1981
  }, Ko = () => {
1997
1982
  const { nextIcon: e } = pe();
1998
- return e || /* @__PURE__ */ a(Me, { style: { transform: "rotate(180deg" } });
1983
+ return e || /* @__PURE__ */ i(Me, { style: { transform: "rotate(180deg" } });
1999
1984
  }, Xo = () => {
2000
- const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: i } = ie(), [c, s] = $(e.toString()), { pageNavigationTool: l = !0 } = _e(), { isSmallScreen: u } = ye(), { localeMessages: d } = ue();
1985
+ const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = ie(), [c, s] = $(e.toString()), { pageNavigationTool: l = !0 } = _e(), { isSmallScreen: u } = Ie(), { localeMessages: d } = ue();
2001
1986
  A(() => {
2002
1987
  s(e.toString());
2003
1988
  }, [e]);
@@ -2005,9 +1990,9 @@ const Uo = ({ widths: e, heights: t }) => {
2005
1990
  const v = b.target.value;
2006
1991
  s(v);
2007
1992
  }, []), h = L(async () => {
2008
- const b = i(c);
1993
+ const b = a(c);
2009
1994
  b.success || s(b.currentPage.toString());
2010
- }, [i, c, t]), g = L(() => {
1995
+ }, [a, c, t]), g = L(() => {
2011
1996
  s(e.toString());
2012
1997
  }, [e]), w = L(
2013
1998
  (b) => {
@@ -2015,27 +2000,27 @@ const Uo = ({ widths: e, heights: t }) => {
2015
2000
  },
2016
2001
  [h]
2017
2002
  );
2018
- return typeof l != "boolean" ? /* @__PURE__ */ a(
2003
+ return typeof l != "boolean" ? /* @__PURE__ */ i(
2019
2004
  l,
2020
2005
  {
2021
2006
  total: t,
2022
2007
  current: e,
2023
2008
  nextPage: o,
2024
2009
  prevPage: r,
2025
- goToPage: i,
2010
+ goToPage: a,
2026
2011
  changePage: n
2027
2012
  }
2028
2013
  ) : l ? /* @__PURE__ */ D("div", { className: gt["rp-paginate"], children: [
2029
- !u && /* @__PURE__ */ a(q, { content: d == null ? void 0 : d.previousPageTooltip, children: /* @__PURE__ */ a(
2030
- ee,
2014
+ !u && /* @__PURE__ */ i(q, { content: d == null ? void 0 : d.previousPageTooltip, children: /* @__PURE__ */ i(
2015
+ Q,
2031
2016
  {
2032
2017
  onClick: r,
2033
2018
  "aria-label": d == null ? void 0 : d.previousPageTooltip,
2034
2019
  "aria-disabled": e === 1,
2035
- children: /* @__PURE__ */ a(jo, {})
2020
+ children: /* @__PURE__ */ i(jo, {})
2036
2021
  }
2037
2022
  ) }),
2038
- /* @__PURE__ */ a(q, { content: d == null ? void 0 : d.currentPageTooltip, children: /* @__PURE__ */ a(
2023
+ /* @__PURE__ */ i(q, { content: d == null ? void 0 : d.currentPageTooltip, children: /* @__PURE__ */ i(
2039
2024
  dn,
2040
2025
  {
2041
2026
  onKeyDown: w,
@@ -2049,31 +2034,31 @@ const Uo = ({ widths: e, heights: t }) => {
2049
2034
  "/",
2050
2035
  t
2051
2036
  ] }),
2052
- !u && /* @__PURE__ */ a(q, { content: d == null ? void 0 : d.nextPageTooltip, children: /* @__PURE__ */ a(
2053
- ee,
2037
+ !u && /* @__PURE__ */ i(q, { content: d == null ? void 0 : d.nextPageTooltip, children: /* @__PURE__ */ i(
2038
+ Q,
2054
2039
  {
2055
2040
  onClick: o,
2056
2041
  "aria-label": d == null ? void 0 : d.nextPageTooltip,
2057
2042
  "aria-disabled": e === t,
2058
- children: /* @__PURE__ */ a(Ko, {})
2043
+ children: /* @__PURE__ */ i(Ko, {})
2059
2044
  }
2060
2045
  ) })
2061
2046
  ] }) : null;
2062
2047
  };
2063
- var Et = "Dialog", [Nn, ys] = qr(Et), [Yo, se] = Nn(Et), En = (e) => {
2048
+ var Et = "Dialog", [Nn, Is] = qr(Et), [Yo, se] = Nn(Et), En = (e) => {
2064
2049
  const {
2065
2050
  __scopeDialog: t,
2066
2051
  children: n,
2067
2052
  open: o,
2068
2053
  defaultOpen: r,
2069
- onOpenChange: i,
2054
+ onOpenChange: a,
2070
2055
  modal: c = !0
2071
2056
  } = e, s = U.useRef(null), l = U.useRef(null), [u = !1, d] = jr({
2072
2057
  prop: o,
2073
2058
  defaultProp: r,
2074
- onChange: i
2059
+ onChange: a
2075
2060
  });
2076
- return /* @__PURE__ */ a(
2061
+ return /* @__PURE__ */ i(
2077
2062
  Yo,
2078
2063
  {
2079
2064
  scope: t,
@@ -2093,8 +2078,8 @@ var Et = "Dialog", [Nn, ys] = qr(Et), [Yo, se] = Nn(Et), En = (e) => {
2093
2078
  En.displayName = Et;
2094
2079
  var On = "DialogTrigger", Jo = U.forwardRef(
2095
2080
  (e, t) => {
2096
- const { __scopeDialog: n, ...o } = e, r = se(On, n), i = yt(t, r.triggerRef);
2097
- return /* @__PURE__ */ a(
2081
+ const { __scopeDialog: n, ...o } = e, r = se(On, n), a = It(t, r.triggerRef);
2082
+ return /* @__PURE__ */ i(
2098
2083
  He.button,
2099
2084
  {
2100
2085
  type: "button",
@@ -2103,7 +2088,7 @@ var On = "DialogTrigger", Jo = U.forwardRef(
2103
2088
  "aria-controls": r.contentId,
2104
2089
  "data-state": zt(r.open),
2105
2090
  ...o,
2106
- ref: i,
2091
+ ref: a,
2107
2092
  onClick: ke(e.onClick, r.onOpenToggle)
2108
2093
  }
2109
2094
  );
@@ -2113,14 +2098,14 @@ Jo.displayName = On;
2113
2098
  var Ot = "DialogPortal", [Qo, Dn] = Nn(Ot, {
2114
2099
  forceMount: void 0
2115
2100
  }), zn = (e) => {
2116
- const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, i = se(Ot, t);
2117
- return /* @__PURE__ */ a(Qo, { scope: t, forceMount: n, children: U.Children.map(o, (c) => /* @__PURE__ */ a(Lt, { present: n || i.open, children: /* @__PURE__ */ a(Qr, { asChild: !0, container: r, children: c }) })) });
2101
+ const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, a = se(Ot, t);
2102
+ return /* @__PURE__ */ i(Qo, { scope: t, forceMount: n, children: U.Children.map(o, (c) => /* @__PURE__ */ i(Lt, { present: n || a.open, children: /* @__PURE__ */ i(Qr, { asChild: !0, container: r, children: c }) })) });
2118
2103
  };
2119
2104
  zn.displayName = Ot;
2120
2105
  var je = "DialogOverlay", An = U.forwardRef(
2121
2106
  (e, t) => {
2122
- const n = Dn(je, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = se(je, e.__scopeDialog);
2123
- return i.modal ? /* @__PURE__ */ a(Lt, { present: o || i.open, children: /* @__PURE__ */ a(ei, { ...r, ref: t }) }) : null;
2107
+ const n = Dn(je, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = se(je, e.__scopeDialog);
2108
+ return a.modal ? /* @__PURE__ */ i(Lt, { present: o || a.open, children: /* @__PURE__ */ i(ei, { ...r, ref: t }) }) : null;
2124
2109
  }
2125
2110
  );
2126
2111
  An.displayName = je;
@@ -2130,7 +2115,7 @@ var ei = U.forwardRef(
2130
2115
  return (
2131
2116
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2132
2117
  // ie. when `Overlay` and `Content` are siblings
2133
- /* @__PURE__ */ a(Xr, { as: Zr, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ a(
2118
+ /* @__PURE__ */ i(Xr, { as: Zr, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2134
2119
  He.div,
2135
2120
  {
2136
2121
  "data-state": zt(r.open),
@@ -2141,78 +2126,78 @@ var ei = U.forwardRef(
2141
2126
  ) })
2142
2127
  );
2143
2128
  }
2144
- ), Ie = "DialogContent", Fn = U.forwardRef(
2129
+ ), ye = "DialogContent", Fn = U.forwardRef(
2145
2130
  (e, t) => {
2146
- const n = Dn(Ie, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = se(Ie, e.__scopeDialog);
2147
- return /* @__PURE__ */ a(Lt, { present: o || i.open, children: i.modal ? /* @__PURE__ */ a(ti, { ...r, ref: t }) : /* @__PURE__ */ a(ni, { ...r, ref: t }) });
2131
+ const n = Dn(ye, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = se(ye, e.__scopeDialog);
2132
+ return /* @__PURE__ */ i(Lt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(ti, { ...r, ref: t }) : /* @__PURE__ */ i(ni, { ...r, ref: t }) });
2148
2133
  }
2149
2134
  );
2150
- Fn.displayName = Ie;
2135
+ Fn.displayName = ye;
2151
2136
  var ti = U.forwardRef(
2152
2137
  (e, t) => {
2153
- const n = se(Ie, e.__scopeDialog), o = U.useRef(null), r = yt(t, n.contentRef, o);
2138
+ const n = se(ye, e.__scopeDialog), o = U.useRef(null), r = It(t, n.contentRef, o);
2154
2139
  return U.useEffect(() => {
2155
- const i = o.current;
2156
- if (i)
2157
- return eo(i);
2158
- }, []), /* @__PURE__ */ a(
2140
+ const a = o.current;
2141
+ if (a)
2142
+ return eo(a);
2143
+ }, []), /* @__PURE__ */ i(
2159
2144
  kn,
2160
2145
  {
2161
2146
  ...e,
2162
2147
  ref: r,
2163
2148
  trapFocus: n.open,
2164
2149
  disableOutsidePointerEvents: !0,
2165
- onCloseAutoFocus: ke(e.onCloseAutoFocus, (i) => {
2150
+ onCloseAutoFocus: ke(e.onCloseAutoFocus, (a) => {
2166
2151
  var c;
2167
- i.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
2152
+ a.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
2168
2153
  }),
2169
- onPointerDownOutside: ke(e.onPointerDownOutside, (i) => {
2170
- const c = i.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
2171
- (c.button === 2 || s) && i.preventDefault();
2154
+ onPointerDownOutside: ke(e.onPointerDownOutside, (a) => {
2155
+ const c = a.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
2156
+ (c.button === 2 || s) && a.preventDefault();
2172
2157
  }),
2173
2158
  onFocusOutside: ke(
2174
2159
  e.onFocusOutside,
2175
- (i) => i.preventDefault()
2160
+ (a) => a.preventDefault()
2176
2161
  )
2177
2162
  }
2178
2163
  );
2179
2164
  }
2180
2165
  ), ni = U.forwardRef(
2181
2166
  (e, t) => {
2182
- const n = se(Ie, e.__scopeDialog), o = U.useRef(!1), r = U.useRef(!1);
2183
- return /* @__PURE__ */ a(
2167
+ const n = se(ye, e.__scopeDialog), o = U.useRef(!1), r = U.useRef(!1);
2168
+ return /* @__PURE__ */ i(
2184
2169
  kn,
2185
2170
  {
2186
2171
  ...e,
2187
2172
  ref: t,
2188
2173
  trapFocus: !1,
2189
2174
  disableOutsidePointerEvents: !1,
2190
- onCloseAutoFocus: (i) => {
2175
+ onCloseAutoFocus: (a) => {
2191
2176
  var c, s;
2192
- (c = e.onCloseAutoFocus) == null || c.call(e, i), i.defaultPrevented || (o.current || (s = n.triggerRef.current) == null || s.focus(), i.preventDefault()), o.current = !1, r.current = !1;
2177
+ (c = e.onCloseAutoFocus) == null || c.call(e, a), a.defaultPrevented || (o.current || (s = n.triggerRef.current) == null || s.focus(), a.preventDefault()), o.current = !1, r.current = !1;
2193
2178
  },
2194
- onInteractOutside: (i) => {
2179
+ onInteractOutside: (a) => {
2195
2180
  var l, u;
2196
- (l = e.onInteractOutside) == null || l.call(e, i), i.defaultPrevented || (o.current = !0, i.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2197
- const c = i.target;
2198
- ((u = n.triggerRef.current) == null ? void 0 : u.contains(c)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && r.current && i.preventDefault();
2181
+ (l = e.onInteractOutside) == null || l.call(e, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2182
+ const c = a.target;
2183
+ ((u = n.triggerRef.current) == null ? void 0 : u.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
2199
2184
  }
2200
2185
  }
2201
2186
  );
2202
2187
  }
2203
2188
  ), kn = U.forwardRef(
2204
2189
  (e, t) => {
2205
- const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: i, ...c } = e, s = se(Ie, n), l = U.useRef(null), u = yt(t, l);
2206
- return Yr(), /* @__PURE__ */ D(Se, { children: [
2207
- /* @__PURE__ */ a(
2190
+ const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...c } = e, s = se(ye, n), l = U.useRef(null), u = It(t, l);
2191
+ return Yr(), /* @__PURE__ */ D(xe, { children: [
2192
+ /* @__PURE__ */ i(
2208
2193
  Jr,
2209
2194
  {
2210
2195
  asChild: !0,
2211
2196
  loop: !0,
2212
2197
  trapped: o,
2213
2198
  onMountAutoFocus: r,
2214
- onUnmountAutoFocus: i,
2215
- children: /* @__PURE__ */ a(
2199
+ onUnmountAutoFocus: a,
2200
+ children: /* @__PURE__ */ i(
2216
2201
  Kr,
2217
2202
  {
2218
2203
  role: "dialog",
@@ -2227,30 +2212,30 @@ var ti = U.forwardRef(
2227
2212
  )
2228
2213
  }
2229
2214
  ),
2230
- /* @__PURE__ */ D(Se, { children: [
2231
- /* @__PURE__ */ a(oi, { titleId: s.titleId }),
2232
- /* @__PURE__ */ a(ai, { contentRef: l, descriptionId: s.descriptionId })
2215
+ /* @__PURE__ */ D(xe, { children: [
2216
+ /* @__PURE__ */ i(oi, { titleId: s.titleId }),
2217
+ /* @__PURE__ */ i(ai, { contentRef: l, descriptionId: s.descriptionId })
2233
2218
  ] })
2234
2219
  ] });
2235
2220
  }
2236
2221
  ), Dt = "DialogTitle", Mn = U.forwardRef(
2237
2222
  (e, t) => {
2238
2223
  const { __scopeDialog: n, ...o } = e, r = se(Dt, n);
2239
- return /* @__PURE__ */ a(He.h2, { id: r.titleId, ...o, ref: t });
2224
+ return /* @__PURE__ */ i(He.h2, { id: r.titleId, ...o, ref: t });
2240
2225
  }
2241
2226
  );
2242
2227
  Mn.displayName = Dt;
2243
2228
  var Wn = "DialogDescription", ri = U.forwardRef(
2244
2229
  (e, t) => {
2245
2230
  const { __scopeDialog: n, ...o } = e, r = se(Wn, n);
2246
- return /* @__PURE__ */ a(He.p, { id: r.descriptionId, ...o, ref: t });
2231
+ return /* @__PURE__ */ i(He.p, { id: r.descriptionId, ...o, ref: t });
2247
2232
  }
2248
2233
  );
2249
2234
  ri.displayName = Wn;
2250
2235
  var Hn = "DialogClose", $n = U.forwardRef(
2251
2236
  (e, t) => {
2252
2237
  const { __scopeDialog: n, ...o } = e, r = se(Hn, n);
2253
- return /* @__PURE__ */ a(
2238
+ return /* @__PURE__ */ i(
2254
2239
  He.button,
2255
2240
  {
2256
2241
  type: "button",
@@ -2265,12 +2250,12 @@ $n.displayName = Hn;
2265
2250
  function zt(e) {
2266
2251
  return e ? "open" : "closed";
2267
2252
  }
2268
- var Gn = "DialogTitleWarning", [Ls, Vn] = Br(Gn, {
2269
- contentName: Ie,
2253
+ var Vn = "DialogTitleWarning", [Ls, Gn] = Br(Vn, {
2254
+ contentName: ye,
2270
2255
  titleName: Dt,
2271
2256
  docsSlug: "dialog"
2272
2257
  }), oi = ({ titleId: e }) => {
2273
- const t = Vn(Gn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2258
+ const t = Gn(Vn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2274
2259
 
2275
2260
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2276
2261
 
@@ -2279,14 +2264,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2279
2264
  e && (document.getElementById(e) || console.error(n));
2280
2265
  }, [n, e]), null;
2281
2266
  }, ii = "DialogDescriptionWarning", ai = ({ contentRef: e, descriptionId: t }) => {
2282
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vn(ii).contentName}}.`;
2267
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gn(ii).contentName}}.`;
2283
2268
  return U.useEffect(() => {
2284
- var i;
2285
- const r = (i = e.current) == null ? void 0 : i.getAttribute("aria-describedby");
2269
+ var a;
2270
+ const r = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
2286
2271
  t && r && (document.getElementById(t) || console.warn(o));
2287
2272
  }, [o, e, t]), null;
2288
2273
  }, si = En, ci = zn, li = An, di = Fn, ui = Mn, pi = $n;
2289
- const xe = {
2274
+ const Se = {
2290
2275
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2291
2276
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
2292
2277
  "rp-document-dialog": "_rp-document-dialog_slqo7_13",
@@ -2295,7 +2280,7 @@ const xe = {
2295
2280
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2296
2281
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2297
2282
  }, hi = () => {
2298
- const { pdfProperties: e } = K(), { container: t } = Te(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = no(), { localeMessages: r } = ue(), i = F(() => {
2283
+ const { pdfProperties: e } = K(), { container: t } = Te(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = no(), { localeMessages: r } = ue(), a = F(() => {
2299
2284
  if (!e)
2300
2285
  return [];
2301
2286
  const {
@@ -2335,12 +2320,12 @@ const xe = {
2335
2320
  { label: r == null ? void 0 : r.propertiesPageCountLabel, value: _ }
2336
2321
  ];
2337
2322
  }, [e, r]);
2338
- return /* @__PURE__ */ a(si, { open: n, onOpenChange: o, children: /* @__PURE__ */ a(ci, { container: t, children: /* @__PURE__ */ D("div", { className: xe["rp-dialog-wrapper"], children: [
2339
- /* @__PURE__ */ a(li, { className: xe["rp-dialog-overlay"] }),
2340
- /* @__PURE__ */ D(di, { className: xe["rp-document-dialog"], children: [
2341
- /* @__PURE__ */ a(ui, { className: xe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2342
- /* @__PURE__ */ a("div", { className: xe["rp-document-properties"], children: i.map((c, s) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ a(to, { label: c.label, value: c.value }) }, s)) }),
2343
- /* @__PURE__ */ a(pi, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(vn, {}) })
2323
+ return /* @__PURE__ */ i(si, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(ci, { container: t, children: /* @__PURE__ */ D("div", { className: Se["rp-dialog-wrapper"], children: [
2324
+ /* @__PURE__ */ i(li, { className: Se["rp-dialog-overlay"] }),
2325
+ /* @__PURE__ */ D(di, { className: Se["rp-document-dialog"], children: [
2326
+ /* @__PURE__ */ i(ui, { className: Se["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2327
+ /* @__PURE__ */ i("div", { className: Se["rp-document-properties"], children: a.map((c, s) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ i(to, { label: c.label, value: c.value }) }, s)) }),
2328
+ /* @__PURE__ */ i(pi, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ i(vn, {}) })
2344
2329
  ] })
2345
2330
  ] }) }) });
2346
2331
  }, mi = {
@@ -2349,34 +2334,34 @@ const xe = {
2349
2334
  const n = await (await fetch(e)).blob();
2350
2335
  return fi(n);
2351
2336
  }, Un = () => {
2352
- const { filename: e, pdfSrc: t } = K(), { downloadFilename: n } = _r(), o = (i) => {
2353
- const c = n || i;
2337
+ const { filename: e, pdfSrc: t } = K(), { downloadFilename: n } = _r(), o = (a) => {
2338
+ const c = n || a;
2354
2339
  return c.endsWith(on) ? c : `${c}${on}`;
2355
2340
  };
2356
2341
  return { download: L(async () => {
2357
2342
  if (!e || !t)
2358
2343
  throw new Error("There is no PDF source to download");
2359
- const i = document.createElement("a");
2360
- i.href = await gi(t), i.download = o(e), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2344
+ const a = document.createElement("a");
2345
+ a.href = await gi(t), a.download = o(e), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2361
2346
  }, [e, t]) };
2362
2347
  }, qn = () => {
2363
2348
  const { downloadIcon: e } = pe();
2364
- return e || /* @__PURE__ */ a(so, {});
2365
- }, Zn = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ a(q, { className: t, content: n == null ? void 0 : n.downloadFileTooltip, children: e }), vi = ({ download: e, localeMessages: t }) => /* @__PURE__ */ a(Zn, { localeMessages: t, children: /* @__PURE__ */ a(ee, { onClick: e, "aria-label": t == null ? void 0 : t.downloadFileTooltip, children: /* @__PURE__ */ a(qn, {}) }) }), _i = ({ download: e, localeMessages: t }) => /* @__PURE__ */ a(Ce, { onClick: e, children: /* @__PURE__ */ D(Zn, { className: "rp-menu-item", localeMessages: t, children: [
2366
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qn, {}) }),
2349
+ return e || /* @__PURE__ */ i(so, {});
2350
+ }, Zn = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ i(q, { className: t, content: n == null ? void 0 : n.downloadFileTooltip, children: e }), vi = ({ download: e, localeMessages: t }) => /* @__PURE__ */ i(Zn, { localeMessages: t, children: /* @__PURE__ */ i(Q, { onClick: e, "aria-label": t == null ? void 0 : t.downloadFileTooltip, children: /* @__PURE__ */ i(qn, {}) }) }), _i = ({ download: e, localeMessages: t }) => /* @__PURE__ */ i(Ce, { onClick: e, children: /* @__PURE__ */ D(Zn, { className: "rp-menu-item", localeMessages: t, children: [
2351
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(qn, {}) }),
2367
2352
  t == null ? void 0 : t.downloadFileLabel
2368
2353
  ] }) }), Bn = () => {
2369
- const { download: e } = Un(), { downloadTool: t = !0 } = _e(), { isSmallScreen: n } = ye(), { localeMessages: o } = ue();
2370
- return t ? n ? /* @__PURE__ */ a(_i, { download: e, localeMessages: o }) : typeof t == "function" ? /* @__PURE__ */ a(t, { download: e }) : t ? /* @__PURE__ */ a(vi, { download: e, localeMessages: o }) : null : null;
2354
+ const { download: e } = Un(), { downloadTool: t = !0 } = _e(), { isSmallScreen: n } = Ie(), { localeMessages: o } = ue();
2355
+ return t ? n ? /* @__PURE__ */ i(_i, { download: e, localeMessages: o }) : typeof t == "function" ? /* @__PURE__ */ i(t, { download: e }) : t ? /* @__PURE__ */ i(vi, { download: e, localeMessages: o }) : null : null;
2371
2356
  }, jn = () => {
2372
2357
  const { printIcon: e } = pe();
2373
- return e || /* @__PURE__ */ a(co, {});
2374
- }, Kn = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ a(q, { className: t, content: n == null ? void 0 : n.printTooltip, children: e }), wi = ({ print: e, localeMessages: t }) => /* @__PURE__ */ a(Kn, { localeMessages: t, children: /* @__PURE__ */ a(ee, { onClick: e, "aria-label": t == null ? void 0 : t.printTooltip, children: /* @__PURE__ */ a(jn, {}) }) }), bi = ({ print: e, localeMessages: t }) => /* @__PURE__ */ a(Ce, { onClick: e, children: /* @__PURE__ */ D(Kn, { className: "rp-menu-item", localeMessages: t, children: [
2375
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(jn, {}) }),
2358
+ return e || /* @__PURE__ */ i(co, {});
2359
+ }, Kn = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ i(q, { className: t, content: n == null ? void 0 : n.printTooltip, children: e }), wi = ({ print: e, localeMessages: t }) => /* @__PURE__ */ i(Kn, { localeMessages: t, children: /* @__PURE__ */ i(Q, { onClick: e, "aria-label": t == null ? void 0 : t.printTooltip, children: /* @__PURE__ */ i(jn, {}) }) }), bi = ({ print: e, localeMessages: t }) => /* @__PURE__ */ i(Ce, { onClick: e, children: /* @__PURE__ */ D(Kn, { className: "rp-menu-item", localeMessages: t, children: [
2360
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(jn, {}) }),
2376
2361
  t == null ? void 0 : t.printLabel
2377
2362
  ] }) }), Xn = () => {
2378
- const { print: e, cancel: t, setOnProgress: n, setOnComplete: o, setOnError: r, progress: i } = nt(), { printTool: c = !0 } = _e(), { isSmallScreen: s } = ye(), { localeMessages: l } = ue();
2379
- return c ? s ? /* @__PURE__ */ a(bi, { print: e, localeMessages: l }) : typeof c == "function" ? /* @__PURE__ */ a(
2363
+ const { print: e, cancel: t, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = nt(), { printTool: c = !0 } = _e(), { isSmallScreen: s } = Ie(), { localeMessages: l } = ue();
2364
+ return c ? s ? /* @__PURE__ */ i(bi, { print: e, localeMessages: l }) : typeof c == "function" ? /* @__PURE__ */ i(
2380
2365
  c,
2381
2366
  {
2382
2367
  print: e,
@@ -2384,40 +2369,40 @@ const xe = {
2384
2369
  setOnProgress: n,
2385
2370
  setOnError: r,
2386
2371
  setOnComplete: o,
2387
- progress: i
2372
+ progress: a
2388
2373
  }
2389
- ) : c ? /* @__PURE__ */ a(wi, { print: e, localeMessages: l }) : null : null;
2374
+ ) : c ? /* @__PURE__ */ i(wi, { print: e, localeMessages: l }) : null : null;
2390
2375
  }, Ci = {
2391
2376
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2392
2377
  }, Ti = () => {
2393
2378
  const { goToFirstPageIcon: e } = pe();
2394
- return e || /* @__PURE__ */ a(wn, { className: Ci["rp-go-to-Top"] });
2379
+ return e || /* @__PURE__ */ i(wn, { className: Ci["rp-go-to-Top"] });
2395
2380
  }, Pi = () => {
2396
2381
  const { goToLastPageIcon: e } = pe();
2397
- return e || /* @__PURE__ */ a(wn, {});
2398
- }, an = { width: "100%" }, xi = () => {
2399
- const { goToPage: e, totalPages: t, focusedPage: n } = ie(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: r } = ue(), i = F(() => n === 1, [n]), c = F(() => n === t, [n, t]), s = L(() => {
2382
+ return e || /* @__PURE__ */ i(wn, {});
2383
+ }, an = { width: "100%" }, Si = () => {
2384
+ const { goToPage: e, totalPages: t, focusedPage: n } = ie(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: r } = ue(), a = F(() => n === 1, [n]), c = F(() => n === t, [n, t]), s = L(() => {
2400
2385
  e(1);
2401
2386
  }, [e]), l = L(() => {
2402
2387
  e(t);
2403
2388
  }, [e, t]);
2404
2389
  return o ? /* @__PURE__ */ D(Be, { children: [
2405
- /* @__PURE__ */ a(Ce, { onClick: s, children: /* @__PURE__ */ a(q, { content: r == null ? void 0 : r.firstPageTooltip, style: an, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": i, children: [
2406
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Ti, {}) }),
2407
- /* @__PURE__ */ a("span", { children: r == null ? void 0 : r.firstPageLabel })
2390
+ /* @__PURE__ */ i(Ce, { onClick: s, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.firstPageTooltip, style: an, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2391
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ti, {}) }),
2392
+ /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2408
2393
  ] }) }) }),
2409
- /* @__PURE__ */ a(Ce, { onClick: l, children: /* @__PURE__ */ a(q, { content: r == null ? void 0 : r.lastPageTooltip, style: an, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2410
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Pi, {}) }),
2411
- /* @__PURE__ */ a("span", { children: r == null ? void 0 : r.lastPageLabel })
2394
+ /* @__PURE__ */ i(Ce, { onClick: l, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.lastPageTooltip, style: an, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2395
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Pi, {}) }),
2396
+ /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2412
2397
  ] }) }) }),
2413
- /* @__PURE__ */ a(Rt, {})
2398
+ /* @__PURE__ */ i(Rt, {})
2414
2399
  ] }) : null;
2415
- }, Si = () => {
2416
- const { container: e } = Te(), { isSmallScreen: t } = ye(), {
2400
+ }, xi = () => {
2401
+ const { container: e } = Te(), { isSmallScreen: t } = Ie(), {
2417
2402
  openFileTool: n,
2418
2403
  downloadTool: o,
2419
2404
  documentProperties: r,
2420
- scrollModeTool: i,
2405
+ scrollModeTool: a,
2421
2406
  rotateTool: c,
2422
2407
  selectionModeTool: s,
2423
2408
  jumpNavigationTool: l,
@@ -2425,53 +2410,53 @@ const xe = {
2425
2410
  fullscreenTool: d
2426
2411
  } = _e(), { localeMessages: f } = ue();
2427
2412
  return F(() => {
2428
- const g = l || c || s || i || r;
2413
+ const g = l || c || s || a || r;
2429
2414
  let w = !1;
2430
2415
  return t && (w = !(!n && !o && !u && !d)), g || w;
2431
2416
  }, [
2432
2417
  n,
2433
2418
  o,
2434
2419
  r,
2435
- i,
2420
+ a,
2436
2421
  c,
2437
2422
  s,
2438
2423
  l,
2439
2424
  t
2440
2425
  ]) ? /* @__PURE__ */ D(ro, { children: [
2441
- /* @__PURE__ */ a(
2426
+ /* @__PURE__ */ i(
2442
2427
  gn,
2443
2428
  {
2444
2429
  container: e,
2445
- triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ a(ee, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ a(Ur, {}) }) }) }),
2430
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Q, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Ur, {}) }) }) }),
2446
2431
  children: /* @__PURE__ */ D("div", { className: mi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2447
2432
  t && /* @__PURE__ */ D(Be, { children: [
2448
- /* @__PURE__ */ a(fn, {}),
2449
- /* @__PURE__ */ a(Bn, {}),
2450
- /* @__PURE__ */ a(Xn, {}),
2451
- /* @__PURE__ */ a(_n, {}),
2452
- /* @__PURE__ */ a(Rt, {})
2433
+ /* @__PURE__ */ i(fn, {}),
2434
+ /* @__PURE__ */ i(Bn, {}),
2435
+ /* @__PURE__ */ i(Xn, {}),
2436
+ /* @__PURE__ */ i(_n, {}),
2437
+ /* @__PURE__ */ i(Rt, {})
2453
2438
  ] }),
2454
- /* @__PURE__ */ a(xi, {}),
2455
- /* @__PURE__ */ a(io, {}),
2456
- /* @__PURE__ */ a(lo, {}),
2457
- /* @__PURE__ */ a(ao, {}),
2458
- /* @__PURE__ */ a(oo, {})
2439
+ /* @__PURE__ */ i(Si, {}),
2440
+ /* @__PURE__ */ i(io, {}),
2441
+ /* @__PURE__ */ i(lo, {}),
2442
+ /* @__PURE__ */ i(ao, {}),
2443
+ /* @__PURE__ */ i(oo, {})
2459
2444
  ] })
2460
2445
  }
2461
2446
  ),
2462
- /* @__PURE__ */ a(hi, {})
2447
+ /* @__PURE__ */ i(hi, {})
2463
2448
  ] }) : null;
2464
- }, Ii = () => {
2465
- const { isSmallScreen: e } = ye();
2466
- return /* @__PURE__ */ D(Se, { children: [
2467
- /* @__PURE__ */ a(Vr, {}),
2468
- !e && /* @__PURE__ */ D(Se, { children: [
2469
- /* @__PURE__ */ a(fn, {}),
2470
- /* @__PURE__ */ a(Bn, {}),
2471
- /* @__PURE__ */ a(Xn, {}),
2472
- /* @__PURE__ */ a(_n, {})
2449
+ }, yi = () => {
2450
+ const { isSmallScreen: e } = Ie();
2451
+ return /* @__PURE__ */ D(xe, { children: [
2452
+ /* @__PURE__ */ i(Gr, {}),
2453
+ !e && /* @__PURE__ */ D(xe, { children: [
2454
+ /* @__PURE__ */ i(fn, {}),
2455
+ /* @__PURE__ */ i(Bn, {}),
2456
+ /* @__PURE__ */ i(Xn, {}),
2457
+ /* @__PURE__ */ i(_n, {})
2473
2458
  ] }),
2474
- /* @__PURE__ */ a(Si, {})
2459
+ /* @__PURE__ */ i(xi, {})
2475
2460
  ] });
2476
2461
  }, Re = {
2477
2462
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2479,14 +2464,14 @@ const xe = {
2479
2464
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2480
2465
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2481
2466
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2482
- }, yi = 25, vt = 1e3, Li = [50, 75, 100, 125, 150, 200, 300, 400], Ri = () => {
2467
+ }, Ii = 25, vt = 1e3, Li = [50, 75, 100, 125, 150, 200, 300, 400], Ri = () => {
2483
2468
  const { zoomInIcon: e } = pe();
2484
- return e || /* @__PURE__ */ a(uo, {});
2469
+ return e || /* @__PURE__ */ i(uo, {});
2485
2470
  }, Ni = () => {
2486
2471
  const { zoomOutIcon: e } = pe();
2487
- return e || /* @__PURE__ */ a(po, {});
2472
+ return e || /* @__PURE__ */ i(po, {});
2488
2473
  }, Ei = () => {
2489
- const { zoomLevel: e, setZoomLevel: t } = Je(), { container: n, contentRef: o } = Te(), { zoomTool: r = !0 } = _e(), { focusedPage: i } = ie(), { rotate: c } = Ye(), { pages: s } = K(), { isSmallScreen: l } = ye(), { localeMessages: u } = ue(), d = L(() => {
2474
+ const { zoomLevel: e, setZoomLevel: t } = Je(), { container: n, contentRef: o } = Te(), { zoomTool: r = !0 } = _e(), { focusedPage: a } = ie(), { rotate: c } = Ye(), { pages: s } = K(), { isSmallScreen: l } = Ie(), { localeMessages: u } = ue(), d = L(() => {
2490
2475
  t((_) => {
2491
2476
  const m = Math.floor(_ / 25) * 25;
2492
2477
  return Math.min(m + 25, vt);
@@ -2496,12 +2481,12 @@ const xe = {
2496
2481
  const m = Math.ceil(_ / 25) * 25;
2497
2482
  return Math.min(m - 25, vt);
2498
2483
  });
2499
- }, [t]), h = F(() => e === yi, [e]), g = F(() => e === vt, [e]), w = F(() => {
2484
+ }, [t]), h = F(() => e === Ii, [e]), g = F(() => e === vt, [e]), w = F(() => {
2500
2485
  var _;
2501
- return (_ = s.get(i)) == null ? void 0 : _.page.getViewport({ scale: 1, rotation: c });
2502
- }, [s, i, c]), b = L(
2486
+ return (_ = s.get(a)) == null ? void 0 : _.page.getViewport({ scale: 1, rotation: c });
2487
+ }, [s, a, c]), b = L(
2503
2488
  (_) => {
2504
- const m = ((w == null ? void 0 : w.width) || 0) + 2 * Gt, P = ((w == null ? void 0 : w.height) || 0) + 2 * Gt, x = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, T = ho(_, x, p, m, P);
2489
+ const m = ((w == null ? void 0 : w.width) || 0) + 2 * Vt, P = ((w == null ? void 0 : w.height) || 0) + 2 * Vt, S = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, T = ho(_, S, p, m, P);
2505
2490
  t(T);
2506
2491
  },
2507
2492
  [t, w]
@@ -2511,29 +2496,29 @@ const xe = {
2511
2496
  },
2512
2497
  [t, b]
2513
2498
  );
2514
- return typeof r != "boolean" ? /* @__PURE__ */ a(r, { zoomLevel: e, setZoomLevel: t }) : r ? /* @__PURE__ */ D("div", { className: Re["rp-zoom-wrapper"], children: [
2515
- /* @__PURE__ */ a(q, { content: u == null ? void 0 : u.zoomOutTooltip, children: /* @__PURE__ */ a(
2516
- ee,
2499
+ return typeof r != "boolean" ? /* @__PURE__ */ i(r, { zoomLevel: e, setZoomLevel: t }) : r ? /* @__PURE__ */ D("div", { className: Re["rp-zoom-wrapper"], children: [
2500
+ /* @__PURE__ */ i(q, { content: u == null ? void 0 : u.zoomOutTooltip, children: /* @__PURE__ */ i(
2501
+ Q,
2517
2502
  {
2518
2503
  disabled: h,
2519
2504
  onClick: f,
2520
2505
  "aria-label": u == null ? void 0 : u.zoomOutTooltip,
2521
- children: /* @__PURE__ */ a(Ni, {})
2506
+ children: /* @__PURE__ */ i(Ni, {})
2522
2507
  }
2523
2508
  ) }),
2524
- !l && /* @__PURE__ */ a(
2509
+ !l && /* @__PURE__ */ i(
2525
2510
  gn,
2526
2511
  {
2527
2512
  container: n,
2528
- triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(q, { content: u == null ? void 0 : u.zoomSelectTooltip, children: /* @__PURE__ */ D(
2529
- ee,
2513
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: u == null ? void 0 : u.zoomSelectTooltip, children: /* @__PURE__ */ D(
2514
+ Q,
2530
2515
  {
2531
2516
  className: Re["rp-current-zoom-wrapper"],
2532
2517
  "aria-label": u == null ? void 0 : u.zoomSelectTooltip,
2533
2518
  children: [
2534
- /* @__PURE__ */ a("span", { className: Re["rp-current-zoom-text"], children: e }),
2535
- /* @__PURE__ */ a("span", { className: Re["rp-current-zoom-text"], children: "%" }),
2536
- /* @__PURE__ */ a(Me, { className: Re["rp-current-zoom-icon"] })
2519
+ /* @__PURE__ */ i("span", { className: Re["rp-current-zoom-text"], children: e }),
2520
+ /* @__PURE__ */ i("span", { className: Re["rp-current-zoom-text"], children: "%" }),
2521
+ /* @__PURE__ */ i(Me, { className: Re["rp-current-zoom-icon"] })
2537
2522
  ]
2538
2523
  }
2539
2524
  ) }) }),
@@ -2541,29 +2526,29 @@ const xe = {
2541
2526
  align: "center",
2542
2527
  children: /* @__PURE__ */ D("div", { className: Re["rp-zoom-dropdown-content"], children: [
2543
2528
  /* @__PURE__ */ D(Be, { children: [
2544
- /* @__PURE__ */ a(Ce, { onClick: () => v(it.ACTUAL), children: u == null ? void 0 : u.zoomActualSize }),
2545
- /* @__PURE__ */ a(Ce, { onClick: () => v(it.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2546
- /* @__PURE__ */ a(Ce, { onClick: () => v(it.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2529
+ /* @__PURE__ */ i(Ce, { onClick: () => v(it.ACTUAL), children: u == null ? void 0 : u.zoomActualSize }),
2530
+ /* @__PURE__ */ i(Ce, { onClick: () => v(it.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
2531
+ /* @__PURE__ */ i(Ce, { onClick: () => v(it.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2547
2532
  ] }),
2548
- /* @__PURE__ */ a(Rt, {}),
2549
- /* @__PURE__ */ a(Be, { children: Li.map((_) => /* @__PURE__ */ D(Ce, { onClick: () => v(_), children: [
2533
+ /* @__PURE__ */ i(Rt, {}),
2534
+ /* @__PURE__ */ i(Be, { children: Li.map((_) => /* @__PURE__ */ D(Ce, { onClick: () => v(_), children: [
2550
2535
  _,
2551
2536
  " %"
2552
2537
  ] }, _)) })
2553
2538
  ] })
2554
2539
  }
2555
2540
  ),
2556
- /* @__PURE__ */ a(q, { content: u == null ? void 0 : u.zoomInTooltip, children: /* @__PURE__ */ a(
2557
- ee,
2541
+ /* @__PURE__ */ i(q, { content: u == null ? void 0 : u.zoomInTooltip, children: /* @__PURE__ */ i(
2542
+ Q,
2558
2543
  {
2559
2544
  disabled: g,
2560
2545
  onClick: d,
2561
2546
  "aria-label": u == null ? void 0 : u.zoomInTooltip,
2562
- children: /* @__PURE__ */ a(Ri, {})
2547
+ children: /* @__PURE__ */ i(Ri, {})
2563
2548
  }
2564
2549
  ) })
2565
2550
  ] }) : null;
2566
- }, Q = {
2551
+ }, J = {
2567
2552
  "rp-search-tool-content": "_rp-search-tool-content_lnthn_1",
2568
2553
  "rp-search-tool-input": "_rp-search-tool-input_lnthn_10",
2569
2554
  "rp-search-tool-input-icon": "_rp-search-tool-input-icon_lnthn_17",
@@ -2576,9 +2561,9 @@ const xe = {
2576
2561
  "rp-search-loader-icon": "_rp-search-loader-icon_lnthn_74"
2577
2562
  }, sn = () => {
2578
2563
  const { searchIcon: e } = pe();
2579
- return e || /* @__PURE__ */ a(mo, {});
2564
+ return e || /* @__PURE__ */ i(mo, {});
2580
2565
  }, Oi = () => {
2581
- const { container: e } = Te(), [t, n] = $(!1), { pdf: o } = K(), [r, i] = $(null), {
2566
+ const { container: e } = Te(), [t, n] = $(!1), { pdf: o } = K(), [r, a] = $(null), {
2582
2567
  searchOptions: c,
2583
2568
  setSearchOptions: s,
2584
2569
  loading: l,
@@ -2588,21 +2573,21 @@ const xe = {
2588
2573
  nextMatch: h,
2589
2574
  prevMatch: g,
2590
2575
  search: w
2591
- } = In(), { searchTool: b = !0 } = _e(), [v, _] = $(w), { localeMessages: m } = ue(), P = L(() => {
2576
+ } = yn(), { searchTool: b = !0 } = _e(), [v, _] = $(w), { localeMessages: m } = ue(), P = L(() => {
2592
2577
  n(!0);
2593
- }, []), x = L(() => {
2578
+ }, []), S = L(() => {
2594
2579
  u(""), _(""), n(!1);
2595
- }, [u]), p = (I) => {
2596
- const E = I.key === "Enter", W = I.key === " ";
2597
- (E || W) && x();
2580
+ }, [u]), p = (y) => {
2581
+ const E = y.key === "Enter", W = y.key === " ";
2582
+ (E || W) && S();
2598
2583
  }, T = L(
2599
- (I) => {
2600
- I.key === "Escape" && t && x();
2584
+ (y) => {
2585
+ y.key === "Escape" && t && S();
2601
2586
  },
2602
2587
  [t]
2603
2588
  ), C = L(
2604
- (I) => {
2605
- I.shiftKey && I.key === "Enter" ? g() : I.key === "Enter" && w !== v ? u(v) : I.key === "Enter" && h();
2589
+ (y) => {
2590
+ y.shiftKey && y.key === "Enter" ? g() : y.key === "Enter" && w !== v ? u(v) : y.key === "Enter" && h();
2606
2591
  },
2607
2592
  [v, g, h, u, w]
2608
2593
  );
@@ -2611,76 +2596,76 @@ const xe = {
2611
2596
  }), [T]), A(() => {
2612
2597
  r && r.focus();
2613
2598
  }, [r]);
2614
- const S = L((I) => {
2615
- _(I.target.value);
2599
+ const x = L((y) => {
2600
+ _(y.target.value);
2616
2601
  }, []), N = L(() => {
2617
2602
  _(""), u("");
2618
- }, [u]), y = F(() => `${f} / ${d}`, [f, d]), { wholeWords: O, matchCase: R } = F(() => c, [c]), k = L(
2619
- (I) => {
2620
- s((E) => ({ ...E, matchCase: I }));
2603
+ }, [u]), I = F(() => `${f} / ${d}`, [f, d]), { wholeWords: O, matchCase: R } = F(() => c, [c]), k = L(
2604
+ (y) => {
2605
+ s((E) => ({ ...E, matchCase: y }));
2621
2606
  },
2622
2607
  [s]
2623
2608
  ), z = L(
2624
- (I) => {
2625
- s((E) => ({ ...E, wholeWords: I }));
2609
+ (y) => {
2610
+ s((E) => ({ ...E, wholeWords: y }));
2626
2611
  },
2627
2612
  [s]
2628
2613
  );
2629
2614
  return A(() => {
2630
- x();
2631
- }, [o, x]), b ? /* @__PURE__ */ a(Se, { children: /* @__PURE__ */ a(
2615
+ S();
2616
+ }, [o, S]), b ? /* @__PURE__ */ i(xe, { children: /* @__PURE__ */ i(
2632
2617
  Fr,
2633
2618
  {
2634
2619
  open: t,
2635
2620
  container: e,
2636
- triggerComponent: /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ a(ee, { onClick: P, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ a(sn, {}) }) }),
2637
- children: /* @__PURE__ */ D("div", { className: Q["rp-search-tool-content"], children: [
2638
- /* @__PURE__ */ D("div", { className: Q["rp-search-tool-input-wrapper"], children: [
2639
- /* @__PURE__ */ D("div", { className: Q["rp-search-tool-input"], children: [
2640
- /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ a(
2621
+ triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(Q, { onClick: P, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(sn, {}) }) }),
2622
+ children: /* @__PURE__ */ D("div", { className: J["rp-search-tool-content"], children: [
2623
+ /* @__PURE__ */ D("div", { className: J["rp-search-tool-input-wrapper"], children: [
2624
+ /* @__PURE__ */ D("div", { className: J["rp-search-tool-input"], children: [
2625
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ i(
2641
2626
  dn,
2642
2627
  {
2643
2628
  value: v,
2644
2629
  onKeyDown: C,
2645
- onChange: S,
2646
- icon: /* @__PURE__ */ a(sn, {}),
2630
+ onChange: x,
2631
+ icon: /* @__PURE__ */ i(sn, {}),
2647
2632
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2648
- className: Q["rp-search-input"],
2649
- ref: i,
2650
- children: !!v && /* @__PURE__ */ a("span", { className: Q["rp-search-tool-input-clear"], onClick: N, children: /* @__PURE__ */ a(fo, {}) })
2633
+ className: J["rp-search-input"],
2634
+ ref: a,
2635
+ children: !!v && /* @__PURE__ */ i("span", { className: J["rp-search-tool-input-clear"], onClick: N, children: /* @__PURE__ */ i(fo, {}) })
2651
2636
  }
2652
2637
  ) }),
2653
- l ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(St, { className: Q["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: y })
2638
+ l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(xt, { className: J["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: I })
2654
2639
  ] }),
2655
- /* @__PURE__ */ D("div", { className: Q["rp-search-tool-input-checkboxes"], children: [
2656
- /* @__PURE__ */ a(Vt, { name: "matchCase", value: R, onChange: k, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2657
- /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ a("div", { className: Q["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ a(Ut, {}) }) }),
2658
- /* @__PURE__ */ a(Vt, { name: "wholeWord", value: O, onChange: z, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2659
- /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ a("div", { className: Q["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ a(Ut, {}) }) })
2640
+ /* @__PURE__ */ D("div", { className: J["rp-search-tool-input-checkboxes"], children: [
2641
+ /* @__PURE__ */ i(Gt, { name: "matchCase", value: R, onChange: k, children: m == null ? void 0 : m.searchMatchCaseLabel }),
2642
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: J["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Ut, {}) }) }),
2643
+ /* @__PURE__ */ i(Gt, { name: "wholeWord", value: O, onChange: z, children: m == null ? void 0 : m.searchWholeWordsLabel }),
2644
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: J["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Ut, {}) }) })
2660
2645
  ] })
2661
2646
  ] }),
2662
- /* @__PURE__ */ D("div", { className: Q["rp-search-tool-controls"], children: [
2663
- /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ a(ee, { onClick: g, "aria-label": m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ a(
2647
+ /* @__PURE__ */ D("div", { className: J["rp-search-tool-controls"], children: [
2648
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(Q, { onClick: g, "aria-label": m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(
2664
2649
  Me,
2665
2650
  {
2666
- className: Q["rp-search-tool-input-icon"],
2651
+ className: J["rp-search-tool-input-icon"],
2667
2652
  "aria-disabled": !d
2668
2653
  }
2669
2654
  ) }) }),
2670
- /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ a(ee, { onClick: h, "aria-label": m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ a(
2655
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ i(Q, { onClick: h, "aria-label": m == null ? void 0 : m.searchNextTooltip, children: /* @__PURE__ */ i(
2671
2656
  Me,
2672
2657
  {
2673
2658
  style: { transform: "rotate(180deg" },
2674
- className: Q["rp-search-tool-input-icon"],
2659
+ className: J["rp-search-tool-input-icon"],
2675
2660
  "aria-disabled": !d
2676
2661
  }
2677
2662
  ) }) }),
2678
- /* @__PURE__ */ a(q, { content: m == null ? void 0 : m.searchCloseButtonTooltip, children: /* @__PURE__ */ a(
2679
- ee,
2663
+ /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchCloseButtonTooltip, children: /* @__PURE__ */ i(
2664
+ Q,
2680
2665
  {
2681
2666
  onKeyDown: p,
2682
2667
  "aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
2683
- children: /* @__PURE__ */ a(vn, { onClick: x, className: Q["rp-search-tool-input-icon"] })
2668
+ children: /* @__PURE__ */ i(vn, { onClick: S, className: J["rp-search-tool-input-icon"] })
2684
2669
  }
2685
2670
  ) })
2686
2671
  ] })
@@ -2697,32 +2682,32 @@ const xe = {
2697
2682
  loading: Di
2698
2683
  }, zi = ({ percentage: e }) => {
2699
2684
  const { cancel: t } = nt(), { localeMessages: n } = ue();
2700
- return e < 1 ? null : /* @__PURE__ */ a("div", { className: re(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-modal"]), children: [
2685
+ return e < 1 ? null : /* @__PURE__ */ i("div", { className: re(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-modal"]), children: [
2701
2686
  /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-title"]), children: [
2702
2687
  n == null ? void 0 : n.printLoadingMessage,
2703
2688
  "..."
2704
2689
  ] }),
2705
- /* @__PURE__ */ a("div", { className: re(Ne["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
2690
+ /* @__PURE__ */ i("div", { className: re(Ne["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
2706
2691
  "div",
2707
2692
  {
2708
2693
  className: re(Ne["rp-loading-progress"]),
2709
2694
  style: { width: `${e}%` }
2710
2695
  }
2711
2696
  ) }),
2712
- /* @__PURE__ */ a("button", { className: re(Ne["rp-loading-cancel-button"]), onClick: t, children: n == null ? void 0 : n.printCancelLabel })
2697
+ /* @__PURE__ */ i("button", { className: re(Ne["rp-loading-cancel-button"]), onClick: t, children: n == null ? void 0 : n.printCancelLabel })
2713
2698
  ] }) });
2714
2699
  }, Ai = We((e, t) => {
2715
- const { showPrintProgress: n } = _e(), { progress: o } = nt(), { isSmallScreen: r } = ye(), { percentage: i } = o || {}, c = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2700
+ const { showPrintProgress: n } = _e(), { progress: o } = nt(), { isSmallScreen: r } = Ie(), { percentage: a } = o || {}, c = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2716
2701
  return /* @__PURE__ */ D("div", { children: [
2717
- /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: t, className: Ae["rp-toolbar-content"], children: /* @__PURE__ */ D("div", { className: Ae["rp-toolbar-wrapper"], style: c(), children: [
2702
+ /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: t, className: Ae["rp-toolbar-content"], children: /* @__PURE__ */ D("div", { className: Ae["rp-toolbar-wrapper"], style: c(), children: [
2718
2703
  /* @__PURE__ */ D("div", { "data-rp": "topBarLeft", className: Ae["rp-toolbar-start"], children: [
2719
- /* @__PURE__ */ a(Oi, {}),
2720
- /* @__PURE__ */ a(Xo, {})
2704
+ /* @__PURE__ */ i(Oi, {}),
2705
+ /* @__PURE__ */ i(Xo, {})
2721
2706
  ] }),
2722
- /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Ae["rp-toolbar-middle"], children: /* @__PURE__ */ a(Ei, {}) }),
2723
- /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Ae["rp-toolbar-end"], children: /* @__PURE__ */ a(Ii, {}) })
2707
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Ae["rp-toolbar-middle"], children: /* @__PURE__ */ i(Ei, {}) }),
2708
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Ae["rp-toolbar-end"], children: /* @__PURE__ */ i(yi, {}) })
2724
2709
  ] }) }),
2725
- n && i ? /* @__PURE__ */ a(zi, { percentage: i }) : null
2710
+ n && a ? /* @__PURE__ */ i(zi, { percentage: a }) : null
2726
2711
  ] });
2727
2712
  }), _t = {
2728
2713
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
@@ -2736,12 +2721,12 @@ const xe = {
2736
2721
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2737
2722
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2738
2723
  }, Fi = (e) => {
2739
- const { thumbnailSrc: t, pageNumber: n, isFocused: o, viewport: r } = e, { goToPage: i } = ie(), c = F(() => o ? Fe["rp-thumbnail-active"] : "", [o]), s = F(() => ({
2724
+ const { thumbnailSrc: t, pageNumber: n, isFocused: o, viewport: r } = e, { goToPage: a } = ie(), c = F(() => o ? Fe["rp-thumbnail-active"] : "", [o]), s = F(() => ({
2740
2725
  width: Math.round(r.width),
2741
2726
  height: Math.round(r.height)
2742
2727
  }), [r]), l = L(() => {
2743
- n && i(n);
2744
- }, [i, n]);
2728
+ n && a(n);
2729
+ }, [a, n]);
2745
2730
  return /* @__PURE__ */ D(
2746
2731
  "div",
2747
2732
  {
@@ -2749,7 +2734,7 @@ const xe = {
2749
2734
  id: `page-${n}`,
2750
2735
  className: Fe["rp-thumbnail-wrapper"],
2751
2736
  children: [
2752
- /* @__PURE__ */ a("div", { className: re(c, Fe["rp-thumbnail"]), children: t ? /* @__PURE__ */ a(
2737
+ /* @__PURE__ */ i("div", { className: re(c, Fe["rp-thumbnail"]), children: t ? /* @__PURE__ */ i(
2753
2738
  "img",
2754
2739
  {
2755
2740
  src: t,
@@ -2757,7 +2742,7 @@ const xe = {
2757
2742
  height: s.height,
2758
2743
  alt: "thumbnail"
2759
2744
  }
2760
- ) : /* @__PURE__ */ a(
2745
+ ) : /* @__PURE__ */ i(
2761
2746
  "div",
2762
2747
  {
2763
2748
  className: Fe["rp-thumbnail-loader"],
@@ -2765,10 +2750,10 @@ const xe = {
2765
2750
  width: `${s.width}px`,
2766
2751
  height: `${s.height}px`
2767
2752
  },
2768
- children: /* @__PURE__ */ a(St, {})
2753
+ children: /* @__PURE__ */ i(xt, {})
2769
2754
  }
2770
2755
  ) }),
2771
- /* @__PURE__ */ a("div", { className: Fe["rp-thumbnail-text"], children: n })
2756
+ /* @__PURE__ */ i("div", { className: Fe["rp-thumbnail-text"], children: n })
2772
2757
  ]
2773
2758
  }
2774
2759
  );
@@ -2779,17 +2764,17 @@ const xe = {
2779
2764
  const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
2780
2765
  e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - ki);
2781
2766
  }, Wi = We((e, t) => {
2782
- const { show: n } = e, { focusedPage: o, totalPages: r } = ie(), { thumbnailPages: i, addPage: c, thumbnailLength: s, addToPage: l } = xn(), u = M(null), d = M(1);
2767
+ const { show: n } = e, { focusedPage: o, totalPages: r } = ie(), { thumbnailPages: a, addPage: c, thumbnailLength: s, addToPage: l } = Sn(), u = M(null), d = M(1);
2783
2768
  ln(t, () => u.current);
2784
- const f = F(() => Object.values(i), [i]), h = L(() => {
2769
+ const f = F(() => Object.values(a), [a]), h = L(() => {
2785
2770
  const g = s + 1;
2786
2771
  g <= r && c(g);
2787
2772
  }, [c, r, s]);
2788
2773
  return A(() => {
2789
2774
  o > s ? l(o) : n && d.current !== o && (Mi(u.current, o), d.current = o);
2790
- }, [o, s, l, n, f]), br(u.current, h), /* @__PURE__ */ a("div", { ref: u, className: cn["rp-thumbnails-container"], children: /* @__PURE__ */ a("div", { className: cn["rp-thumbnails"], children: n ? f.map((g, w) => {
2775
+ }, [o, s, l, n, f]), br(u.current, h), /* @__PURE__ */ i("div", { ref: u, className: cn["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: cn["rp-thumbnails"], children: n ? f.map((g, w) => {
2791
2776
  var b, v;
2792
- return /* @__PURE__ */ a(
2777
+ return /* @__PURE__ */ i(
2793
2778
  Fi,
2794
2779
  {
2795
2780
  isFocused: o === ((b = g.page) == null ? void 0 : b.pageNumber),
@@ -2803,27 +2788,27 @@ const xe = {
2803
2788
  }) : null }) });
2804
2789
  }), Hi = () => {
2805
2790
  const { thumbnailIcon: e } = pe();
2806
- return e || /* @__PURE__ */ a(wr, {});
2791
+ return e || /* @__PURE__ */ i(wr, {});
2807
2792
  }, $i = () => {
2808
- const { active: e, setActive: t } = xn(), [n, o] = $(200), r = M(null), { thumbnailTool: i, sidebarEnable: c } = _e(), { localeMessages: s } = ue(), l = L(() => {
2793
+ const { active: e, setActive: t } = Sn(), [n, o] = $(200), r = M(null), { thumbnailTool: a, sidebarEnable: c } = _e(), { localeMessages: s } = ue(), l = L(() => {
2809
2794
  t((d) => !d);
2810
- }, []), u = F(() => typeof i != "boolean" && i ? /* @__PURE__ */ a(i, { onClick: l, active: e }) : i ? /* @__PURE__ */ a(q, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ a(
2811
- ee,
2795
+ }, []), u = F(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: l, active: e }) : a ? /* @__PURE__ */ i(q, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
2796
+ Q,
2812
2797
  {
2813
2798
  onClick: l,
2814
2799
  active: e,
2815
2800
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
2816
- children: /* @__PURE__ */ a(Hi, {})
2801
+ children: /* @__PURE__ */ i(Hi, {})
2817
2802
  }
2818
- ) }) : null, [i, e, l, s]);
2819
- return /* @__PURE__ */ a(Se, { children: c && /* @__PURE__ */ D(
2803
+ ) }) : null, [a, e, l, s]);
2804
+ return /* @__PURE__ */ i(xe, { children: c && /* @__PURE__ */ D(
2820
2805
  "div",
2821
2806
  {
2822
2807
  style: { "--rp-thumbnail-width": `${n}px` },
2823
2808
  className: _t["rp-sidebar-content-wrapper"],
2824
2809
  "data-rp": "sidebar",
2825
2810
  children: [
2826
- /* @__PURE__ */ a("div", { className: _t["rp-sidebar-content"], children: u }),
2811
+ /* @__PURE__ */ i("div", { className: _t["rp-sidebar-content"], children: u }),
2827
2812
  /* @__PURE__ */ D(
2828
2813
  "div",
2829
2814
  {
@@ -2831,8 +2816,8 @@ const xe = {
2831
2816
  hidden: !e,
2832
2817
  className: _t["rp-thumbnails-wrapper"],
2833
2818
  children: [
2834
- /* @__PURE__ */ a(Wi, { show: e, ref: r }),
2835
- /* @__PURE__ */ a(Cr, { onWidthChange: o, thumbnailRef: r })
2819
+ /* @__PURE__ */ i(Wi, { show: e, ref: r }),
2820
+ /* @__PURE__ */ i(Cr, { onWidthChange: o, thumbnailRef: r })
2836
2821
  ]
2837
2822
  }
2838
2823
  )
@@ -2847,10 +2832,10 @@ const xe = {
2847
2832
  "rp-loader": "_rp-loader_12d1x_52",
2848
2833
  "rp-theme-variables": "_rp-theme-variables_12d1x_56",
2849
2834
  "rp-dark-mode": "_rp-dark-mode_12d1x_147"
2850
- }, Gi = We(
2835
+ }, Vi = We(
2851
2836
  (e, t) => {
2852
- const { children: n, toolbarRef: o, style: r, className: i } = e, { customVariables: c, customDarkVariables: s } = Lr(), { darkMode: l } = ir();
2853
- return /* @__PURE__ */ a(
2837
+ const { children: n, toolbarRef: o, style: r, className: a } = e, { customVariables: c, customDarkVariables: s } = Lr(), { darkMode: l } = ir();
2838
+ return /* @__PURE__ */ i(
2854
2839
  "div",
2855
2840
  {
2856
2841
  ref: t,
@@ -2858,7 +2843,7 @@ const xe = {
2858
2843
  be["rp-theme-variables"],
2859
2844
  be["rp-container"],
2860
2845
  l ? be["rp-dark-mode"] : "",
2861
- i
2846
+ a
2862
2847
  ),
2863
2848
  style: {
2864
2849
  "--rp-toolbar-height": `${(o == null ? void 0 : o.clientHeight) || 48}px`,
@@ -2875,7 +2860,7 @@ const xe = {
2875
2860
  children: n,
2876
2861
  slots: o,
2877
2862
  icons: r,
2878
- style: i,
2863
+ style: a,
2879
2864
  className: c,
2880
2865
  mobileWidth: s,
2881
2866
  onLoaded: l,
@@ -2884,18 +2869,18 @@ const xe = {
2884
2869
  } = e, [f, h] = $(null), { setContainer: g, setContentRef: w } = Te(), { loading: b } = K(), { LoaderImageComponent: v } = mn();
2885
2870
  return A(() => (l && l(), () => {
2886
2871
  u && u();
2887
- }), [l, u]), /* @__PURE__ */ a(Gi, { toolbarRef: f, ref: t, children: /* @__PURE__ */ a(yr, { mobileWidth: s, onLayoutWidthChange: d, children: /* @__PURE__ */ a(Tr, { slots: o, children: /* @__PURE__ */ a(Pr, { icons: r, children: /* @__PURE__ */ D(xr, { getContainerRef: g, style: i, className: c, children: [
2888
- /* @__PURE__ */ D(Sr, { children: [
2872
+ }), [l, u]), /* @__PURE__ */ i(Vi, { toolbarRef: f, ref: t, children: /* @__PURE__ */ i(Ir, { mobileWidth: s, onLayoutWidthChange: d, children: /* @__PURE__ */ i(Tr, { slots: o, children: /* @__PURE__ */ i(Pr, { icons: r, children: /* @__PURE__ */ D(Sr, { getContainerRef: g, style: a, className: c, children: [
2873
+ /* @__PURE__ */ D(xr, { children: [
2889
2874
  /* @__PURE__ */ D("div", { className: be["rp-layout"], children: [
2890
- /* @__PURE__ */ a(Ai, { ref: h }),
2875
+ /* @__PURE__ */ i(Ai, { ref: h }),
2891
2876
  /* @__PURE__ */ D("div", { className: be["rp-content"], children: [
2892
- /* @__PURE__ */ a("div", { className: be["rp-sidebar"], children: /* @__PURE__ */ a($i, {}) }),
2893
- /* @__PURE__ */ a("div", { ref: w, className: be["rp-pages"], children: n })
2877
+ /* @__PURE__ */ i("div", { className: be["rp-sidebar"], children: /* @__PURE__ */ i($i, {}) }),
2878
+ /* @__PURE__ */ i("div", { ref: w, className: be["rp-pages"], children: n })
2894
2879
  ] })
2895
2880
  ] }),
2896
- /* @__PURE__ */ a(Ir, {})
2881
+ /* @__PURE__ */ i(yr, {})
2897
2882
  ] }),
2898
- b ? /* @__PURE__ */ a(
2883
+ b ? /* @__PURE__ */ i(
2899
2884
  "div",
2900
2885
  {
2901
2886
  className: be["rp-loader"],
@@ -2908,7 +2893,7 @@ const xe = {
2908
2893
  width: "100%",
2909
2894
  height: "100%"
2910
2895
  },
2911
- children: /* @__PURE__ */ a(
2896
+ children: /* @__PURE__ */ i(
2912
2897
  "div",
2913
2898
  {
2914
2899
  style: {
@@ -2918,7 +2903,7 @@ const xe = {
2918
2903
  height: "100%",
2919
2904
  width: "100%"
2920
2905
  },
2921
- children: v && /* @__PURE__ */ a(v, {})
2906
+ children: v && /* @__PURE__ */ i(v, {})
2922
2907
  }
2923
2908
  )
2924
2909
  }
@@ -2926,7 +2911,7 @@ const xe = {
2926
2911
  ] }) }) }) }) });
2927
2912
  });
2928
2913
  export {
2929
- xo as A,
2914
+ So as A,
2930
2915
  Oi as B,
2931
2916
  bo as C,
2932
2917
  Uo as D,
@@ -2935,20 +2920,20 @@ export {
2935
2920
  Fi as G,
2936
2921
  Wi as H,
2937
2922
  $i as I,
2938
- Gi as J,
2923
+ Vi as J,
2939
2924
  zi as L,
2940
- xi as M,
2941
- Si as O,
2925
+ Si as M,
2926
+ xi as O,
2942
2927
  Ts as P,
2943
- Is as R,
2944
- Ss as S,
2945
- xs as T,
2928
+ ys as R,
2929
+ xs as S,
2930
+ Ss as T,
2946
2931
  Ei as Z,
2947
2932
  Ps as a,
2948
2933
  Rs as b,
2949
2934
  Un as c,
2950
2935
  nt as d,
2951
- In as e,
2936
+ yn as e,
2952
2937
  bn as f,
2953
2938
  go as g,
2954
2939
  Cn as h,
@@ -2956,11 +2941,11 @@ export {
2956
2941
  Tn as j,
2957
2942
  _o as k,
2958
2943
  Pn as l,
2959
- xn as m,
2944
+ Sn as m,
2960
2945
  wo as n,
2961
- Sn as o,
2946
+ xn as o,
2962
2947
  Co as p,
2963
- So as q,
2948
+ xo as q,
2964
2949
  Nt as r,
2965
2950
  $o as s,
2966
2951
  qo as t,
@@ -2969,5 +2954,5 @@ export {
2969
2954
  Xo as w,
2970
2955
  hi as x,
2971
2956
  Xn as y,
2972
- Ii as z
2957
+ yi as z
2973
2958
  };