@pdf-viewer/react 1.6.1 → 1.7.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{RPDefaultLayout-8ce0fad7.js → RPDefaultLayout-aa575bb0.js} +795 -787
  2. package/dist/components/RPController.js +52 -51
  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 +3 -2
  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/SearchResultNavigator.js +1 -1
  19. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  20. package/dist/components/layout/toolbar/ViewModeTool.js +19 -18
  21. package/dist/components/layout/toolbar/ZoomTool.js +1 -1
  22. package/dist/components/page/AnnotationLayer.js +1 -1
  23. package/dist/components/page/CanvasLayer.js +1 -1
  24. package/dist/components/page/DualPage.js +1 -1
  25. package/dist/components/page/RPPage.js +1 -1
  26. package/dist/components/page/SinglePage.js +1 -1
  27. package/dist/components/page/TextHighlightLayer.js +1 -1
  28. package/dist/components/page/TextLayer.js +1 -1
  29. package/dist/components/ui/LoadingIndicator.js +1 -1
  30. package/dist/contexts/PaginationContext.js +1 -1
  31. package/dist/contexts/PrintContext.js +1 -1
  32. package/dist/contexts/SearchContext.js +1 -1
  33. package/dist/contexts/ThumbnailsContext.js +1 -1
  34. package/dist/contexts/ToolbarComponentContext.js +2 -2
  35. package/dist/contexts/ViewModeContext.js +17 -16
  36. package/dist/contexts/ZoomContext.js +15 -15
  37. package/dist/main.js +1 -1
  38. package/dist/types/components/layout/toolbar/ViewModeTool.d.ts +1 -1
  39. package/dist/types/utils/types.d.ts +3 -2
  40. package/dist/utils/getZoomLevel.js +15 -13
  41. package/dist/utils/hooks/useFileDownload.js +1 -1
  42. package/dist/utils/hooks/useLicense.js +1 -1
  43. package/dist/utils/hooks/usePaginate.js +1 -1
  44. package/dist/utils/hooks/usePresentPage.js +1 -1
  45. package/dist/utils/hooks/usePrint.js +1 -1
  46. package/dist/utils/hooks/useScrollToPage.js +1 -1
  47. package/dist/utils/hooks/useSearch.js +1 -1
  48. package/dist/utils/hooks/useThumbnail.js +1 -1
  49. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  50. package/package.json +1 -1
@@ -75,32 +75,33 @@ import { PropertyItem as so } from "./components/layout/toolbar/PropertyItem.js"
75
75
  import { useOtherToolContext as co, OtherToolProvider as lo } from "./contexts/OtherToolContext.js";
76
76
  import { DocumentProperties as uo } from "./components/layout/toolbar/DocumentProperties.js";
77
77
  import { RotateTool as po } from "./components/layout/toolbar/RotateTool.js";
78
- import { ScrollModeTool as ho } from "./components/layout/toolbar/ScrollModeTool.js";
78
+ import { ViewModeTool as ho } from "./components/layout/toolbar/ViewModeTool.js";
79
+ import { ScrollModeTool as mo } from "./components/layout/toolbar/ScrollModeTool.js";
79
80
  import { MenuSeparator as yt } from "./components/layout/toolbar/MenuSeparator.js";
80
- import { FileDownloadDefaultIcon as mo } from "./components/icons/FileDownloadDefaultIcon.js";
81
+ import { FileDownloadDefaultIcon as fo } from "./components/icons/FileDownloadDefaultIcon.js";
81
82
  import { MenuItem as be } from "./components/layout/toolbar/MenuItem.js";
82
- import { PrintDefaultTool as fo } from "./components/icons/PrintDefaultIcon.js";
83
+ import { PrintDefaultTool as go } from "./components/icons/PrintDefaultIcon.js";
83
84
  import { FullScreenTool as fn } from "./components/layout/toolbar/FullScreenTool.js";
84
85
  import { GoToDownIcon as gn } from "./components/icons/GoToDownIcon.js";
85
- import { SelectionModeTool as go } from "./components/layout/toolbar/SelectionModeTool.js";
86
- import { ZoomInIcon as vo } from "./components/icons/ZoomInIcon.js";
87
- import { ZoomOutIcon as wo } from "./components/icons/ZoomOutIcon.js";
86
+ import { SelectionModeTool as vo } from "./components/layout/toolbar/SelectionModeTool.js";
87
+ import { ZoomInIcon as wo } from "./components/icons/ZoomInIcon.js";
88
+ import { ZoomOutIcon as _o } from "./components/icons/ZoomOutIcon.js";
88
89
  import { PAGE_PADDING as Mt } from "./utils/constants.js";
89
- import { getZoomLevel as _o } from "./utils/getZoomLevel.js";
90
- import { SearchIcon as bo } from "./components/icons/SearchIcon.js";
90
+ import { getZoomLevel as bo } from "./utils/getZoomLevel.js";
91
+ import { SearchIcon as Co } from "./components/icons/SearchIcon.js";
91
92
  import { c as Y, S as Ht } from "./SearchCloseButton-ddb9877e.js";
92
93
  import { UICheckbox as $t } from "./components/ui/Checkbox.js";
93
- import { ClearIcon as Co } from "./components/icons/ClearIcon.js";
94
+ import { ClearIcon as To } from "./components/icons/ClearIcon.js";
94
95
  import { InfoIcon as Gt } from "./components/icons/InfoIcon.js";
95
96
  import './assets/RPDefaultLayout.css';const vn = () => {
96
- const { viewMode: e } = ze(), { scrollMode: t } = De(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = ie(), l = H(), { columnCount: s } = dn(), { widths: u, heights: p } = qe(), m = H(t), v = H(e), h = H(s), { targetScrollPage: _ } = un();
97
+ const { viewMode: e } = ze(), { scrollMode: t } = De(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = ie(), s = H(), { columnCount: l } = dn(), { widths: u, heights: h } = qe(), m = H(t), v = H(e), p = H(l), { targetScrollPage: w } = un();
97
98
  k(() => {
98
- n != null && n.scrollToItem && (l.current = n);
99
+ n != null && n.scrollToItem && (s.current = n);
99
100
  }, [n]), k(() => {
100
101
  m.current = t, v.current = e;
101
102
  }, [t, e]);
102
103
  const T = N(
103
- (C, y) => {
104
+ (C, S) => {
104
105
  if (!r)
105
106
  return;
106
107
  const d = Math.ceil(C / 2) * 2 - 1;
@@ -119,7 +120,7 @@ import './assets/RPDefaultLayout.css';const vn = () => {
119
120
  };
120
121
  return r == null ? void 0 : r.scrollTo({
121
122
  ...f,
122
- behavior: y
123
+ behavior: S
123
124
  });
124
125
  },
125
126
  [r, u, st]
@@ -127,24 +128,24 @@ import './assets/RPDefaultLayout.css';const vn = () => {
127
128
  return k(() => {
128
129
  m.current = t, v.current = e;
129
130
  }, [t, e]), k(() => {
130
- h.current = s;
131
- }, [s]), { scrollToPage: N(
132
- (C, y = "smooth") => {
131
+ p.current = l;
132
+ }, [l]), { scrollToPage: N(
133
+ (C, S = "smooth") => {
133
134
  a(C);
134
135
  const d = C - 1;
135
136
  let f = d, g = 0;
136
137
  if (v.current === He.DUAL_PAGE && m.current === ee.PAGE_SCROLLING) {
137
- T(C, y);
138
+ T(C, S);
138
139
  return;
139
140
  }
140
141
  if (m.current === ee.PAGE_SCROLLING) {
141
142
  a(C);
142
143
  return;
143
144
  }
144
- if (!l.current || !o)
145
+ if (!s.current || !o)
145
146
  return;
146
147
  const c = o;
147
- if (_.current = C, m.current === ee.HORIZONTAL_SCROLLING) {
148
+ if (w.current = C, m.current === ee.HORIZONTAL_SCROLLING) {
148
149
  g = d;
149
150
  const P = {
150
151
  left: Oe(u, g),
@@ -152,73 +153,73 @@ import './assets/RPDefaultLayout.css';const vn = () => {
152
153
  };
153
154
  return c.scrollTo({
154
155
  ...P,
155
- behavior: y
156
+ behavior: S
156
157
  });
157
158
  }
158
159
  if (v.current === He.DUAL_PAGE) {
159
160
  g = d % 2, f = Math.floor(d / 2);
160
161
  const P = {
161
162
  left: Oe(u, g),
162
- top: Oe(p, f)
163
+ top: Oe(h, f)
163
164
  };
164
165
  return c.scrollTo({
165
166
  ...P,
166
- behavior: y
167
+ behavior: S
167
168
  });
168
169
  }
169
170
  const b = {
170
171
  left: 0,
171
- top: Oe(p, f)
172
+ top: Oe(h, f)
172
173
  };
173
174
  return c.scrollTo({
174
175
  ...b,
175
- behavior: y
176
+ behavior: S
176
177
  });
177
178
  },
178
179
  [
179
180
  o,
180
- s,
181
+ l,
181
182
  T,
182
183
  a,
183
184
  st,
184
- p,
185
+ h,
185
186
  u
186
187
  ]
187
188
  ) };
188
- }, To = (e = 1) => {
189
- const [t, n] = $(e), [o, r] = $(0), { scrollToPage: a } = vn(), l = H(1), { viewMode: s } = ze(), { scrollMode: u } = De(), { widths: p } = qe(), { pagesRef: m } = ge(), v = Tt(t, 100), h = N(
189
+ }, Po = (e = 1) => {
190
+ const [t, n] = $(e), [o, r] = $(0), { scrollToPage: a } = vn(), s = H(1), { viewMode: l } = ze(), { scrollMode: u } = De(), { widths: h } = qe(), { pagesRef: m } = ge(), v = Tt(t, 100), p = N(
190
191
  (d) => {
191
192
  if (!/^[0-9]*$/g.test(d.toString()) || !d)
192
- return { success: !1, currentPage: l.current };
193
+ return { success: !1, currentPage: s.current };
193
194
  const g = +d;
194
- return g < 0 || g > o ? { success: !1, currentPage: l.current } : (n(g), l.current = g, { success: !0, currentPage: +d });
195
+ return g < 0 || g > o ? { success: !1, currentPage: s.current } : (n(g), s.current = g, { success: !0, currentPage: +d });
195
196
  },
196
197
  [o]
197
- ), _ = N(h, [h]), T = N(
198
+ ), w = N(p, [p]), T = N(
198
199
  (d) => {
199
- const f = h(d);
200
+ const f = p(d);
200
201
  return f.success && a(f.currentPage), f;
201
202
  },
202
- [h, a]
203
- ), S = N(() => {
203
+ [p, a]
204
+ ), y = N(() => {
204
205
  let d = t - 1;
205
206
  T(d);
206
- }, [T, t, s, u]), C = W(() => {
207
+ }, [T, t, l, u]), C = W(() => {
207
208
  if (!m)
208
209
  return !1;
209
210
  const d = t + 1;
210
- return t % 2 === 1 && s === He.DUAL_PAGE && d <= o ? p[t] + p[d] < m.clientWidth : !1;
211
- }, [t, p, m, o]), y = N(() => {
211
+ return t % 2 === 1 && l === He.DUAL_PAGE && d <= o ? h[t] + h[d] < m.clientWidth : !1;
212
+ }, [t, h, m, o]), S = N(() => {
212
213
  let d = t + 1;
213
214
  C && (d = t + 2), T(d);
214
- }, [T, t, C, s, u]);
215
+ }, [T, t, C, l, u]);
215
216
  return {
216
217
  focusedPage: v,
217
218
  totalPages: o,
218
- setFocusedPage: _,
219
+ setFocusedPage: w,
219
220
  setTotalPages: r,
220
- nextPage: y,
221
- prevPage: S,
221
+ nextPage: S,
222
+ prevPage: y,
222
223
  goToPage: T
223
224
  };
224
225
  }, wn = Ye({
@@ -236,8 +237,8 @@ import './assets/RPDefaultLayout.css';const vn = () => {
236
237
  }), ie = () => {
237
238
  const e = Je(wn);
238
239
  return typeof (e == null ? void 0 : e.focusedPage) > "u" && Zr.error("Please use this hooks inside children component of RPProvider"), e;
239
- }, ks = ({ children: e }) => {
240
- const { pdf: t } = J(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: l, nextPage: s, prevPage: u } = To();
240
+ }, Ms = ({ children: e }) => {
241
+ const { pdf: t } = J(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: s, nextPage: l, prevPage: u } = Po();
241
242
  return k(() => {
242
243
  t != null && t.numPages && (a(t.numPages), r(1));
243
244
  }, [t, a, r]), /* @__PURE__ */ i(
@@ -248,20 +249,20 @@ import './assets/RPDefaultLayout.css';const vn = () => {
248
249
  totalPages: o,
249
250
  setFocusedPage: r,
250
251
  setTotalPages: a,
251
- nextPage: s,
252
+ nextPage: l,
252
253
  prevPage: u,
253
- goToPage: l
254
+ goToPage: s
254
255
  },
255
256
  children: e
256
257
  }
257
258
  );
258
259
  };
259
- const Po = () => {
260
+ const So = () => {
260
261
  const { pdf: e, pages: t } = J(), [n, o] = $({
261
262
  loadedPages: 0,
262
263
  totalPages: 0,
263
264
  percentage: 0
264
- }), [r, a] = $(!1), [l, s] = $(!1), [u, p] = $(null), m = H(!1);
265
+ }), [r, a] = $(!1), [s, l] = $(!1), [u, h] = $(null), m = H(!1);
265
266
  k(() => {
266
267
  m.current;
267
268
  }, [m]);
@@ -269,28 +270,28 @@ const Po = () => {
269
270
  document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
270
271
  const f = document.querySelector(".rp-print-zone");
271
272
  f && f.remove();
272
- }, []), h = N(() => {
273
- m.current = !1, a(!1), s(!1), p(null), o({
273
+ }, []), p = N(() => {
274
+ m.current = !1, a(!1), l(!1), h(null), o({
274
275
  loadedPages: 0,
275
276
  totalPages: 0,
276
277
  percentage: 0
277
278
  });
278
- }, []), _ = () => {
279
+ }, []), w = () => {
279
280
  m.current = !0;
280
281
  }, T = async ({
281
282
  scratchCanvas: f,
282
283
  pdfDocument: g,
283
284
  pageNumber: c,
284
285
  viewerPdfPage: b,
285
- printResolution: w,
286
+ printResolution: _,
286
287
  optionalContentConfigPromise: P,
287
288
  printAnnotationStoragePromise: E
288
289
  }) => {
289
290
  if (m.current) {
290
- h();
291
+ p();
291
292
  return;
292
293
  }
293
- const x = w / yr.PDF;
294
+ const x = _ / yr.PDF;
294
295
  f.width = Math.floor(b.width * x), f.height = Math.floor(b.height * x);
295
296
  const R = f.getContext("2d");
296
297
  R.save(), R.fillStyle = "rgb(255, 255, 255)", R.fillRect(0, 0, f.width, f.height), R.restore();
@@ -299,7 +300,7 @@ const Po = () => {
299
300
  E
300
301
  ]);
301
302
  if (m.current) {
302
- h();
303
+ p();
303
304
  return;
304
305
  }
305
306
  const A = {
@@ -316,7 +317,7 @@ const Po = () => {
316
317
  } catch (L) {
317
318
  throw L instanceof Ir || console.error(L), L;
318
319
  }
319
- }, S = N(() => {
320
+ }, y = N(() => {
320
321
  const f = window.print;
321
322
  return new Promise((g) => {
322
323
  const c = (P) => {
@@ -328,43 +329,43 @@ const Po = () => {
328
329
  c(g);
329
330
  return;
330
331
  }
331
- const w = new MutationObserver(() => {
332
- document.querySelector(".rp-print-zone") && (c(g), w.disconnect());
332
+ const _ = new MutationObserver(() => {
333
+ document.querySelector(".rp-print-zone") && (c(g), _.disconnect());
333
334
  });
334
- w.observe(document.body, { childList: !0, subtree: !0 });
335
+ _.observe(document.body, { childList: !0, subtree: !0 });
335
336
  });
336
337
  }, []), C = async (f) => {
337
338
  const g = document.createElement("img"), c = document.createElement("div");
338
- return c.classList.add("rp-print-page"), await new Promise((b, w) => {
339
+ return c.classList.add("rp-print-page"), await new Promise((b, _) => {
339
340
  f.toBlob((P) => {
340
341
  P ? (g.src = URL.createObjectURL(P), g.onload = () => {
341
342
  URL.revokeObjectURL(g.src), b();
342
- }, g.onerror = w) : w(new Error("Failed to create blob"));
343
+ }, g.onerror = _) : _(new Error("Failed to create blob"));
343
344
  });
344
345
  }).catch(() => {
345
346
  }), c.appendChild(g), c;
346
- }, y = (f, g) => {
347
+ }, S = (f, g) => {
347
348
  const c = document.createElement("div");
348
349
  c.classList.add("rp-print-zone");
349
- const b = document.createElement("style"), w = g.get(1);
350
- if (w) {
351
- const { width: P, height: E } = w == null ? void 0 : w.page.getViewport({ scale: 1 });
350
+ const b = document.createElement("style"), _ = g.get(1);
351
+ if (_) {
352
+ const { width: P, height: E } = _ == null ? void 0 : _.page.getViewport({ scale: 1 });
352
353
  b.innerHTML = `@page { size: ${P}px ${E}px }`;
353
354
  }
354
355
  return c.appendChild(b), c.append(...f), c;
355
356
  }, d = N(async () => {
356
357
  if (!e)
357
358
  return;
358
- h();
359
+ p();
359
360
  const f = document.createElement("canvas"), g = [];
360
361
  try {
361
362
  e.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
362
- const b = e.getOptionalContentConfig({ intent: "print" }), w = Promise.resolve(
363
+ const b = e.getOptionalContentConfig({ intent: "print" }), _ = Promise.resolve(
363
364
  e.annotationStorage.print ?? void 0
364
365
  ), P = t.size;
365
366
  for (const [x, R] of t) {
366
367
  if (m.current) {
367
- h();
368
+ p();
368
369
  return;
369
370
  }
370
371
  const D = R.page.getViewport({ scale: 1 });
@@ -375,9 +376,9 @@ const Po = () => {
375
376
  viewerPdfPage: D,
376
377
  printResolution: 150,
377
378
  optionalContentConfigPromise: b,
378
- printAnnotationStoragePromise: w
379
+ printAnnotationStoragePromise: _
379
380
  }), m.current) {
380
- h();
381
+ p();
381
382
  return;
382
383
  }
383
384
  const z = await C(f);
@@ -390,30 +391,30 @@ const Po = () => {
390
391
  });
391
392
  }
392
393
  if (m.current) {
393
- h();
394
+ p();
394
395
  return;
395
396
  }
396
- const E = y(g, t);
397
- document.body.appendChild(E), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await S();
397
+ const E = S(g, t);
398
+ document.body.appendChild(E), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await y();
398
399
  } catch (c) {
399
- s(!0), c instanceof Error && p(c);
400
+ l(!0), c instanceof Error && h(c);
400
401
  } finally {
401
402
  f.height = 0, f.width = 0;
402
403
  }
403
404
  }, [e, t, m]);
404
405
  return k(() => {
405
406
  const f = () => {
406
- h(), v();
407
+ p(), v();
407
408
  };
408
409
  return window.addEventListener("afterprint", f, !0), () => {
409
410
  window.removeEventListener("afterprint", f, !0);
410
411
  };
411
- }, [v, h]), {
412
+ }, [v, p]), {
412
413
  print: d,
413
- cancel: _,
414
+ cancel: w,
414
415
  progress: n,
415
416
  isComplete: r,
416
- isError: l,
417
+ isError: s,
417
418
  error: u
418
419
  };
419
420
  }, _n = Ye({
@@ -433,78 +434,78 @@ const Po = () => {
433
434
  console.error("Error in setOnError callback:", t);
434
435
  }
435
436
  }
436
- }), Ws = ({ children: e }) => {
437
- const [t, n] = $(null), [o, r] = $(null), { print: a, cancel: l, progress: s, isComplete: u, isError: p, error: m } = Po(), v = N((C) => {
437
+ }), Hs = ({ children: e }) => {
438
+ const [t, n] = $(null), [o, r] = $(null), { print: a, cancel: s, progress: l, isComplete: u, isError: h, error: m } = So(), v = N((C) => {
438
439
  C && typeof C == "function" && r(() => C);
439
- }, []), h = (C) => {
440
+ }, []), p = (C) => {
440
441
  m && C(m);
441
- }, _ = N(
442
+ }, w = N(
442
443
  (C) => {
443
444
  n(() => C);
444
445
  },
445
- [s, t]
446
+ [l, t]
446
447
  );
447
448
  k(() => {
448
449
  u && o && T();
449
450
  }, [u, o]), k(() => {
450
- p && h((C) => {
451
+ h && p((C) => {
451
452
  console.error(C);
452
453
  });
453
- }, [p]), k(() => {
454
- s && t && t(s);
455
- }, [s, t]);
454
+ }, [h]), k(() => {
455
+ l && t && t(l);
456
+ }, [l, t]);
456
457
  const T = () => {
457
458
  o && (o(), r(null));
458
- }, S = {
459
+ }, y = {
459
460
  print: a,
460
- cancel: l,
461
- setOnProgress: _,
461
+ cancel: s,
462
+ setOnProgress: w,
462
463
  setOnComplete: v,
463
- setOnError: h,
464
- progress: s
464
+ setOnError: p,
465
+ progress: l
465
466
  };
466
- return /* @__PURE__ */ i(_n.Provider, { value: S, children: e });
467
+ return /* @__PURE__ */ i(_n.Provider, { value: y, children: e });
467
468
  }, tt = () => {
468
469
  const e = Je(_n);
469
470
  if (!e)
470
471
  throw new Error("usePrintContext must be used within a PrintProvider");
471
472
  return e;
472
- }, So = () => {
473
+ }, yo = () => {
473
474
  const [e, t] = $({}), { pages: n } = J(), { rotate: o } = Ge(), r = W(() => Object.keys(e).length, [e]), a = N(
474
- (s) => {
475
- if (!n.size || s > n.size)
475
+ (l) => {
476
+ if (!n.size || l > n.size)
476
477
  return;
477
- const u = Array.from(n.values()).slice(0, s).map((v) => {
478
- const { thumbnailViewport: h, scale: _ } = kt(v.page, o);
478
+ const u = Array.from(n.values()).slice(0, l).map((v) => {
479
+ const { thumbnailViewport: p, scale: w } = kt(v.page, o);
479
480
  return {
480
- scale: _,
481
+ scale: w,
481
482
  page: v.page,
482
483
  loading: !0,
483
- viewport: h
484
+ viewport: p
484
485
  };
485
- }), p = u.reduce((v, h) => (v[h.page.pageNumber] = h, v), {});
486
- t(p);
486
+ }), h = u.reduce((v, p) => (v[p.page.pageNumber] = p, v), {});
487
+ t(h);
487
488
  const m = [];
488
489
  for (const v of u) {
489
- const h = document.createElement("canvas"), _ = vt(v.page, h, {
490
+ const p = document.createElement("canvas"), w = vt(v.page, p, {
490
491
  scale: v.scale,
491
492
  rotate: o
492
493
  }).promise.then(() => {
493
- const T = h.toDataURL();
494
+ const T = p.toDataURL();
494
495
  return {
495
496
  ...v,
496
497
  thumbnailSrc: T,
497
498
  loading: !1
498
499
  };
499
500
  });
500
- m.push(_);
501
+ m.push(w);
501
502
  }
502
503
  Promise.all(m).then((v) => {
503
- const h = v.reduce(
504
- (_, T) => (_[T.page.pageNumber] = T, _),
504
+ const p = v.reduce(
505
+ (w, T) => (w[T.page.pageNumber] = T, w),
505
506
  {}
506
507
  );
507
- t((_) => ({ ..._, ...h }));
508
+ t((w) => ({ ...w, ...p }));
508
509
  }).catch(() => {
509
510
  });
510
511
  },
@@ -513,39 +514,39 @@ const Po = () => {
513
514
  k(() => {
514
515
  a(10);
515
516
  }, [a]);
516
- const l = N(
517
- (s) => {
517
+ const s = N(
518
+ (l) => {
518
519
  if (!n)
519
520
  return;
520
- const u = n.get(s);
521
+ const u = n.get(l);
521
522
  if (!u)
522
523
  return;
523
524
  t((m) => ({
524
525
  ...m,
525
- [s]: {
526
+ [l]: {
526
527
  loading: !0,
527
528
  page: u.page,
528
529
  viewport: u.thumbnailViewport,
529
530
  scale: u.thumbnailScale
530
531
  }
531
532
  }));
532
- const p = document.createElement("canvas");
533
- vt(u.page, p, { scale: u.thumbnailScale, rotate: o }).promise.then(() => {
534
- const m = p.toDataURL(), { thumbnailViewport: v, scale: h } = kt(u.page, o);
533
+ const h = document.createElement("canvas");
534
+ vt(u.page, h, { scale: u.thumbnailScale, rotate: o }).promise.then(() => {
535
+ const m = h.toDataURL(), { thumbnailViewport: v, scale: p } = kt(u.page, o);
535
536
  return {
536
- scale: h,
537
+ scale: p,
537
538
  thumbnailSrc: m,
538
539
  page: u.page,
539
540
  loading: !1,
540
541
  viewport: v
541
542
  };
542
543
  }).then((m) => {
543
- t((v) => ({ ...v, [s]: m }));
544
+ t((v) => ({ ...v, [l]: m }));
544
545
  });
545
546
  },
546
547
  [n, o]
547
548
  );
548
- return { thumbnailPages: e, addPage: l, addToPage: a, thumbnailLength: r };
549
+ return { thumbnailPages: e, addPage: s, addToPage: a, thumbnailLength: r };
549
550
  }, bn = Ye({
550
551
  thumbnailPages: {},
551
552
  addPage: (e) => {
@@ -556,40 +557,40 @@ const Po = () => {
556
557
  setActive: (e) => {
557
558
  },
558
559
  active: !1
559
- }), Cn = () => Je(bn), Ms = ({
560
+ }), Cn = () => Je(bn), $s = ({
560
561
  children: e,
561
562
  initialThumbnailsVisible: t
562
563
  }) => {
563
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = So(), [l, s] = $(t);
564
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = yo(), [s, l] = $(t);
564
565
  return /* @__PURE__ */ i(
565
566
  bn.Provider,
566
567
  {
567
- value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: l, setActive: s },
568
+ value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: s, setActive: l },
568
569
  children: e
569
570
  }
570
571
  );
571
- }, yo = (e = {}, t = "") => {
572
- const [n, o] = $(t), [r, a] = $(!1), { pdf: l, pages: s } = J(), { widths: u, heights: p } = qe(), m = H(!n), { currentZoom: v } = Qe(), [h, _] = $([]), { setFocusedPage: T } = ie(), { columnCount: S } = ze(), { rotate: C } = Ge(), [y, d] = $(0), { pageScrollElementRef: f, virtualScrollableElementRef: g } = et(), { scrollMode: c } = De(), { pagesRef: b } = ge(), [w, P] = $(null), E = H({}), x = W(() => y === 0 ? null : h[y - 1], [y, h]), R = W(() => h.length, [h]);
572
+ }, xo = (e = {}, t = "") => {
573
+ const [n, o] = $(t), [r, a] = $(!1), { pdf: s, pages: l } = J(), { widths: u, heights: h } = qe(), m = H(!n), { currentZoom: v } = Qe(), [p, w] = $([]), { setFocusedPage: T } = ie(), { columnCount: y } = ze(), { rotate: C } = Ge(), [S, d] = $(0), { pageScrollElementRef: f, virtualScrollableElementRef: g } = et(), { scrollMode: c } = De(), { pagesRef: b } = ge(), [_, P] = $(null), E = H({}), x = W(() => S === 0 ? null : p[S - 1], [S, p]), R = W(() => p.length, [p]);
573
574
  k(() => {
574
- if (!x || !s)
575
+ if (!x || !l)
575
576
  return;
576
577
  const L = g || f;
577
578
  if (!L || !b)
578
579
  return;
579
- const I = s.get(x.page);
580
+ const I = l.get(x.page);
580
581
  if (c === ee.PAGE_SCROLLING && T(x.page), !I)
581
582
  return;
582
583
  let O = 0, M = 0;
583
584
  if (c === ee.VERTICAL_SCROLLING) {
584
- const ae = x.page - 1, de = S, te = ae % de, Ae = Math.floor(ae / de);
585
- O = Oe(p, Ae), M = Oe(u, te);
585
+ const ae = x.page - 1, de = y, te = ae % de, Ae = Math.floor(ae / de);
586
+ O = Oe(h, Ae), M = Oe(u, te);
586
587
  }
587
588
  c === ee.HORIZONTAL_SCROLLING && (M = u.slice(0, x.page - 1).reduce((ae, de) => ae + de, 0));
588
589
  const G = {
589
590
  top: b.clientHeight / 2,
590
591
  left: b.clientWidth / 2
591
592
  }, Z = {
592
- height: p[x.page - 1],
593
+ height: h[x.page - 1],
593
594
  width: u[x.page - 1]
594
595
  }, { leftInPage: j, topInPage: U } = Br(
595
596
  Z,
@@ -605,10 +606,10 @@ const Po = () => {
605
606
  ...le
606
607
  });
607
608
  }, [
608
- s,
609
+ l,
609
610
  T,
610
611
  u,
611
- p,
612
+ h,
612
613
  x,
613
614
  c,
614
615
  g,
@@ -633,10 +634,10 @@ const Po = () => {
633
634
  }, []);
634
635
  return k(() => {
635
636
  if (!n) {
636
- m.current = !0, _([]), d(0);
637
+ m.current = !0, w([]), d(0);
637
638
  return;
638
639
  }
639
- m.current = !1, a(!0), _([]), d(0), A(l).then((L) => {
640
+ m.current = !1, a(!0), w([]), d(0), A(s).then((L) => {
640
641
  E.current = L;
641
642
  const O = Object.keys(L).reduce((M, G) => {
642
643
  const Z = cr(
@@ -647,21 +648,21 @@ const Po = () => {
647
648
  ).map((j, U) => ({ ...j, page: Number(G), pageMatchIdx: U }));
648
649
  return [...M, ...Z];
649
650
  }, []);
650
- _(O), d(O.length ? 1 : 0);
651
+ w(O), d(O.length ? 1 : 0);
651
652
  }).catch(() => {
652
- _([]), d(0);
653
+ w([]), d(0);
653
654
  }).finally(() => a(!1));
654
- }, [n, A, l, e]), {
655
+ }, [n, A, s, e]), {
655
656
  search: n,
656
657
  setSearch: o,
657
658
  loading: r,
658
- matches: h,
659
+ matches: p,
659
660
  totalMatches: R,
660
- currentMatchPosition: y,
661
+ currentMatchPosition: S,
661
662
  currentMatch: x,
662
663
  nextMatch: D,
663
664
  prevMatch: z,
664
- currentMatchElement: w,
665
+ currentMatchElement: _,
665
666
  setCurrentMatchElement: P
666
667
  };
667
668
  }, Tn = Ye({
@@ -682,23 +683,23 @@ const Po = () => {
682
683
  currentMatchElement: null,
683
684
  setCurrentMatchElement: (e) => {
684
685
  }
685
- }), Hs = ({
686
+ }), Gs = ({
686
687
  children: e,
687
688
  initialSearch: t
688
689
  }) => {
689
690
  const [n, o] = $({}), {
690
691
  loading: r,
691
692
  setSearch: a,
692
- totalMatches: l,
693
- currentMatchPosition: s,
693
+ totalMatches: s,
694
+ currentMatchPosition: l,
694
695
  currentMatch: u,
695
- search: p,
696
+ search: h,
696
697
  matches: m,
697
698
  nextMatch: v,
698
- prevMatch: h,
699
- currentMatchElement: _,
699
+ prevMatch: p,
700
+ currentMatchElement: w,
700
701
  setCurrentMatchElement: T
701
- } = yo(n, t);
702
+ } = xo(n, t);
702
703
  return /* @__PURE__ */ i(
703
704
  Tn.Provider,
704
705
  {
@@ -707,14 +708,14 @@ const Po = () => {
707
708
  setSearchOptions: o,
708
709
  loading: r,
709
710
  setSearch: a,
710
- totalMatches: l,
711
- currentMatchPosition: s,
711
+ totalMatches: s,
712
+ currentMatchPosition: l,
712
713
  currentMatch: u,
713
714
  nextMatch: v,
714
- prevMatch: h,
715
- search: p,
715
+ prevMatch: p,
716
+ search: h,
716
717
  matches: m,
717
- currentMatchElement: _,
718
+ currentMatchElement: w,
718
719
  setCurrentMatchElement: T
719
720
  },
720
721
  children: e
@@ -733,21 +734,21 @@ const Po = () => {
733
734
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
734
735
  "rp-page": "_rp-page_h7a2q_1",
735
736
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
736
- }, xo = (e) => {
737
- const { pageNumber: t, onLoaded: n, onLoading: o } = e, r = H(null), { pages: a } = J(), { rotate: l } = Ge(), s = H(), { currentZoom: u } = Qe();
737
+ }, Io = (e) => {
738
+ const { pageNumber: t, onLoaded: n, onLoading: o } = e, r = H(null), { pages: a } = J(), { rotate: s } = Ge(), l = H(), { currentZoom: u } = Qe();
738
739
  return k(() => {
739
740
  if (!a || u === 0)
740
741
  return;
741
- const p = a.get(t);
742
- if (r.current && p) {
742
+ const h = a.get(t);
743
+ if (r.current && h) {
743
744
  const m = r.current;
744
745
  m.hidden = !0;
745
- const v = s.current;
746
- v && v.cancel(), o && o(), s.current = vt(p.page, m, {
746
+ const v = l.current;
747
+ v && v.cancel(), o && o(), l.current = vt(h.page, m, {
747
748
  scale: u,
748
- rotate: l,
749
+ rotate: s,
749
750
  renderForms: !0
750
- }), s.current.promise.then(() => {
751
+ }), l.current.promise.then(() => {
751
752
  m.hidden = !1;
752
753
  }).catch(() => {
753
754
  }).finally(() => {
@@ -756,60 +757,60 @@ const Po = () => {
756
757
  }
757
758
  return () => {
758
759
  var m;
759
- (m = s.current) == null || m.cancel();
760
+ (m = l.current) == null || m.cancel();
760
761
  };
761
- }, [a, t, l, u, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${t}-canvas`, ref: r });
762
- }, Io = "_selecting_1x8te_9", Ro = "_endOfContent_1x8te_24", he = {
762
+ }, [a, t, s, u, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${t}-canvas`, ref: r });
763
+ }, Ro = "_selecting_1x8te_9", Lo = "_endOfContent_1x8te_24", he = {
763
764
  "rp-text-layer": "_rp-text-layer_1x8te_1",
764
- selecting: Io,
765
- endOfContent: Ro,
765
+ selecting: Ro,
766
+ endOfContent: Lo,
766
767
  "rp-text-layer-text": "_rp-text-layer-text_1x8te_38"
767
- }, Lo = (e) => {
768
- const { pageNumber: t } = e, { pages: n } = J(), o = H(null), { matches: r, currentMatch: a, setCurrentMatchElement: l } = xt(), [s, u] = $(
768
+ }, Eo = (e) => {
769
+ const { pageNumber: t } = e, { pages: n } = J(), o = H(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = xt(), [l, u] = $(
769
770
  []
770
- ), p = H(), m = H(), v = H(), h = W(() => r.filter((f) => f.pageIndex === t - 1), [r, t]), _ = N(
771
+ ), h = H(), m = H(), v = H(), p = W(() => r.filter((f) => f.pageIndex === t - 1), [r, t]), w = N(
771
772
  (f, g, c = !1) => {
772
- if (c && lr(f, g), !h.length) {
773
+ if (c && lr(f, g), !p.length) {
773
774
  v.current = void 0, u([]);
774
775
  return;
775
776
  }
776
- const b = dr(h, f, g);
777
+ const b = dr(p, f, g);
777
778
  u(b);
778
779
  },
779
- [h]
780
- ), T = H(), S = H(!1), C = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
780
+ [p]
781
+ ), T = H(), y = H(!1), C = N(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
781
782
  k(() => ((() => {
782
783
  if (T.current)
783
784
  return;
784
785
  T.current = new AbortController();
785
786
  const { signal: g } = T.current, c = () => {
786
- C().forEach((w) => {
787
- const P = w.querySelector(".endOfContent");
788
- P && (w.appendChild(P), P.style.width = "", P.style.height = "", w.classList.remove(he.selecting));
787
+ C().forEach((_) => {
788
+ const P = _.querySelector(".endOfContent");
789
+ P && (_.appendChild(P), P.style.width = "", P.style.height = "", _.classList.remove(he.selecting));
789
790
  });
790
791
  };
791
792
  document.addEventListener(
792
793
  "pointerdown",
793
794
  () => {
794
- S.current = !0;
795
+ y.current = !0;
795
796
  },
796
797
  { signal: g }
797
798
  ), document.addEventListener(
798
799
  "pointerup",
799
800
  () => {
800
- S.current = !1, c();
801
+ y.current = !1, c();
801
802
  },
802
803
  { signal: g }
803
804
  ), window.addEventListener(
804
805
  "blur",
805
806
  () => {
806
- S.current = !1, c();
807
+ y.current = !1, c();
807
808
  },
808
809
  { signal: g }
809
810
  ), document.addEventListener(
810
811
  "keyup",
811
812
  () => {
812
- S.current || c();
813
+ y.current || c();
813
814
  },
814
815
  { signal: g }
815
816
  );
@@ -818,16 +819,16 @@ const Po = () => {
818
819
  "selectionchange",
819
820
  () => {
820
821
  var A, L;
821
- const w = document.getSelection();
822
- if (!w)
822
+ const _ = document.getSelection();
823
+ if (!_)
823
824
  return;
824
- if (w.rangeCount === 0) {
825
+ if (_.rangeCount === 0) {
825
826
  c();
826
827
  return;
827
828
  }
828
829
  const P = /* @__PURE__ */ new Set();
829
- for (let I = 0; I < w.rangeCount; I++) {
830
- const O = w.getRangeAt(I);
830
+ for (let I = 0; I < _.rangeCount; I++) {
831
+ const O = _.getRangeAt(I);
831
832
  C().forEach((M) => {
832
833
  O.intersectsNode(M) && !P.has(M) && P.add(M);
833
834
  });
@@ -840,7 +841,7 @@ const Po = () => {
840
841
  O && (I.appendChild(O), O.style.width = "", O.style.height = "", I.classList.remove(he.selecting));
841
842
  }
842
843
  });
843
- const E = w.getRangeAt(0);
844
+ const E = _.getRangeAt(0);
844
845
  let R = b && (E.compareBoundaryPoints(Range.END_TO_END, b) === 0 || E.compareBoundaryPoints(Range.START_TO_END, b) === 0) ? E.startContainer : E.endContainer;
845
846
  R.nodeType === Node.TEXT_NODE && (R = R.parentNode);
846
847
  const D = (A = R.parentElement) == null ? void 0 : A.closest(
@@ -854,106 +855,106 @@ const Po = () => {
854
855
  var g;
855
856
  (g = T.current) == null || g.abort(), T.current = void 0;
856
857
  }), [C]);
857
- const y = N(() => {
858
+ const S = N(() => {
858
859
  o.current && o.current.classList.add(he.selecting);
859
860
  }, []), d = N(() => {
860
861
  o.current && o.current.classList.remove(he.selecting);
861
862
  }, []);
862
863
  return k(() => {
863
864
  var c;
864
- if ((c = v.current) == null || c.classList.remove("selected"), !s.length || !a || a.pageIndex !== t - 1)
865
+ if ((c = v.current) == null || c.classList.remove("selected"), !l.length || !a || a.pageIndex !== t - 1)
865
866
  return;
866
- const f = h.findIndex(
867
+ const f = p.findIndex(
867
868
  (b) => JSON.stringify(b) === JSON.stringify(a)
868
869
  );
869
870
  if (f === -1)
870
871
  return;
871
- const g = s.find((b) => b.index === f);
872
- g && (v.current = g.element, l(g.element), g.element.classList.add("selected"));
873
- }, [a, s, h]), k(() => {
872
+ const g = l.find((b) => b.index === f);
873
+ g && (v.current = g.element, s(g.element), g.element.classList.add("selected"));
874
+ }, [a, l, p]), k(() => {
874
875
  const f = n.get(t);
875
876
  if (!f || !o.current)
876
877
  return;
877
878
  const g = o.current;
878
- return p.current && p.current.cancel(), f.page.getTextContent().then((c) => {
879
+ return h.current && h.current.cancel(), f.page.getTextContent().then((c) => {
879
880
  const b = f.page.getViewport({ scale: 1 });
880
- return p.current = new Sr.TextLayer({
881
+ return h.current = new Sr.TextLayer({
881
882
  viewport: b,
882
883
  textContentSource: c,
883
884
  container: g
884
- }), m.current = c, g && (g.innerText = ""), p.current.render();
885
+ }), m.current = c, g && (g.innerText = ""), h.current.render();
885
886
  }).then(() => {
886
887
  var P, E;
887
888
  [].slice.call(g.children).forEach((x) => {
888
889
  x.classList.add(he["rp-text-layer-text"]), x.setAttribute("data-rp", "rp-text-layer-text");
889
890
  });
890
- const b = (P = p.current) == null ? void 0 : P.textDivs;
891
- b && m.current && _(m.current, b);
892
- const w = document.createElement("div");
893
- w.className = "endOfContent", (E = o.current) == null || E.appendChild(w);
891
+ const b = (P = h.current) == null ? void 0 : P.textDivs;
892
+ b && m.current && w(m.current, b);
893
+ const _ = document.createElement("div");
894
+ _.className = "endOfContent", (E = o.current) == null || E.appendChild(_);
894
895
  }).catch(() => {
895
896
  }), () => {
896
897
  var c;
897
- (c = p.current) == null || c.cancel();
898
+ (c = h.current) == null || c.cancel();
898
899
  };
899
900
  }, [n, t]), k(() => {
900
901
  var c;
901
902
  [].slice.call(o.current.children).forEach((b) => {
902
903
  b.classList.add(he["rp-text-layer-text"]);
903
904
  });
904
- const g = (c = p.current) == null ? void 0 : c.textDivs;
905
- g && m.current && _(m.current, g, !0);
906
- }, [_]), /* @__PURE__ */ i(
905
+ const g = (c = h.current) == null ? void 0 : c.textDivs;
906
+ g && m.current && w(m.current, g, !0);
907
+ }, [w]), /* @__PURE__ */ i(
907
908
  "div",
908
909
  {
909
910
  "data-rp": `page-${t}-textLayer`,
910
911
  className: he["rp-text-layer"],
911
912
  ref: o,
912
- onMouseDown: y,
913
+ onMouseDown: S,
913
914
  onMouseUp: d
914
915
  }
915
916
  );
916
- }, Eo = {
917
+ }, No = {
917
918
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
918
919
  };
919
- let No = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
920
- const Oo = (e) => {
921
- const { pageNumber: t } = e, n = H(null), { pages: o, pdf: r } = J(), a = H(), [l, s] = $(), { setFocusedPage: u, goToPage: p } = ie(), { scrollMode: m } = De(), { print: v } = tt(), { download: h } = Hn(), _ = W(() => o.get(t), [o, t]), T = W(() => _ == null ? void 0 : _.page.getViewport(), [_]);
920
+ let Oo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
921
+ const Do = (e) => {
922
+ const { pageNumber: t } = e, n = H(null), { pages: o, pdf: r } = J(), a = H(), [s, l] = $(), { setFocusedPage: u, goToPage: h } = ie(), { scrollMode: m } = De(), { print: v } = tt(), { download: p } = Hn(), w = W(() => o.get(t), [o, t]), T = W(() => w == null ? void 0 : w.page.getViewport(), [w]);
922
923
  k(() => {
923
924
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
924
925
  }, [r]), k(() => {
925
- _ && _.page.getAnnotations().then((C) => {
926
- a.current = void 0, s(C), n.current && (n.current.innerText = "");
926
+ w && w.page.getAnnotations().then((C) => {
927
+ a.current = void 0, l(C), n.current && (n.current.innerText = "");
927
928
  });
928
- }, [_]);
929
- const S = N(
929
+ }, [w]);
930
+ const y = N(
930
931
  (C) => {
931
- !l || !r || (Er(C), Nr(C, r, l).then((y) => {
932
+ !s || !r || (Er(C), Nr(C, r, s).then((S) => {
932
933
  var d, f;
933
- ((d = y == null ? void 0 : y.data) == null ? void 0 : d.action) === "Print" ? v() : ((f = y == null ? void 0 : y.data) == null ? void 0 : f.action) === "SaveAs" && h();
934
- }), m === ee.PAGE_SCROLLING ? At(C, l, r, (y) => u(y.pageIndex + 1)) : At(C, l, r, (y) => p(y.pageIndex + 1)));
934
+ ((d = S == null ? void 0 : S.data) == null ? void 0 : d.action) === "Print" ? v() : ((f = S == null ? void 0 : S.data) == null ? void 0 : f.action) === "SaveAs" && p();
935
+ }), m === ee.PAGE_SCROLLING ? At(C, s, r, (S) => u(S.pageIndex + 1)) : At(C, s, r, (S) => h(S.pageIndex + 1)));
935
936
  },
936
- [r, l, p, u, m, v, h]
937
+ [r, s, h, u, m, v, p]
937
938
  );
938
939
  return k(() => {
939
- if (!_ || !l)
940
+ if (!w || !s)
940
941
  return;
941
- const C = _.page.getViewport();
942
+ const C = w.page.getViewport();
942
943
  if (a.current) {
943
944
  a.current.update({
944
945
  viewport: C.clone({ dontFlip: !0 })
945
946
  });
946
947
  return;
947
948
  }
948
- const y = /* @__PURE__ */ new Map([]);
949
- for (const g of l) {
949
+ const S = /* @__PURE__ */ new Map([]);
950
+ for (const g of s) {
950
951
  const { annotationType: c } = g;
951
952
  switch (c) {
952
953
  case zt.Link:
953
954
  Dr(g);
954
955
  break;
955
956
  case zt.Widget:
956
- Or(g, C, y);
957
+ Or(g, C, S);
957
958
  break;
958
959
  }
959
960
  }
@@ -966,66 +967,66 @@ const Oo = (e) => {
966
967
  annotationCanvasMap: void 0,
967
968
  annotationEditorUIManager: void 0,
968
969
  structTreeLayer: null,
969
- page: _.page,
970
+ page: w.page,
970
971
  viewport: C.clone({ dontFlip: !0 })
971
- }), n.current && Ft(n.current, S);
972
+ }), n.current && Ft(n.current, y);
972
973
  const g = await (r == null ? void 0 : r.hasJSActions()), c = await (r == null ? void 0 : r.getFieldObjects());
973
974
  if (d.signal.aborted)
974
975
  throw "abort";
975
976
  return (b = a.current) == null ? void 0 : b.render({
976
- annotations: l,
977
+ annotations: s,
977
978
  annotationStorage: r == null ? void 0 : r.annotationStorage,
978
979
  hasJSActions: g,
979
980
  fieldObjects: c,
980
981
  div: n.current,
981
982
  viewport: C.clone({ dontFlip: !0 }),
982
- page: _.page,
983
- imageResourcesPath: No,
983
+ page: w.page,
984
+ imageResourcesPath: Oo,
984
985
  renderForms: !0,
985
986
  linkService: new Lr(),
986
987
  downloadManager: null,
987
988
  enableScripting: !1
988
989
  });
989
990
  })().then(() => {
990
- n.current && zr(n.current, S);
991
+ n.current && zr(n.current, y);
991
992
  }).catch((g) => {
992
993
  if (g !== "abort")
993
994
  throw g;
994
995
  }), () => {
995
- d.abort("clear"), n.current && Ft(n.current, S);
996
+ d.abort("clear"), n.current && Ft(n.current, y);
996
997
  };
997
- }, [r, l, S]), /* @__PURE__ */ i(
998
+ }, [r, s, y]), /* @__PURE__ */ i(
998
999
  "div",
999
1000
  {
1000
1001
  "data-rp": `page-${t}-annotationLayer`,
1001
1002
  style: { width: `${T == null ? void 0 : T.width}px`, height: `${T == null ? void 0 : T.height}px` },
1002
- className: Eo["rp-annotation-layer"],
1003
+ className: No["rp-annotation-layer"],
1003
1004
  ref: n
1004
1005
  }
1005
1006
  );
1006
- }, Do = {
1007
+ }, zo = {
1007
1008
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1008
- }, zo = ({ pageNumber: e, viewport: t }) => {
1009
- const [n, o] = $(), { pages: r } = J(), { highlightKeywords: a } = pr(), l = !0, s = H(null), [u, p] = $(null), [m, v] = $([]);
1009
+ }, Ao = ({ pageNumber: e, viewport: t }) => {
1010
+ const [n, o] = $(), { pages: r } = J(), { highlightKeywords: a } = pr(), s = !0, l = H(null), [u, h] = $(null), [m, v] = $([]);
1010
1011
  k(() => {
1011
- s.current && p(s.current.parentElement);
1012
- }, [s]), k(() => {
1012
+ l.current && h(l.current.parentElement);
1013
+ }, [l]), k(() => {
1013
1014
  (async () => {
1014
1015
  const f = r.get(e);
1015
- if (!f || !s.current)
1016
+ if (!f || !l.current)
1016
1017
  return;
1017
1018
  const g = await f.page.getTextContent();
1018
1019
  o(g);
1019
1020
  })();
1020
1021
  }, [r, e]);
1021
- const h = W(() => a ? a.map((d) => {
1022
+ const p = W(() => a ? a.map((d) => {
1022
1023
  var f, g;
1023
1024
  return {
1024
1025
  ...Ar(d.keyword, (f = d.options) == null ? void 0 : f.matchCase, (g = d.options) == null ? void 0 : g.wholeWords),
1025
1026
  color: d.highlightColor
1026
1027
  };
1027
1028
  }) : [], [a]);
1028
- function _(d, f) {
1029
+ function w(d, f) {
1029
1030
  if (!d)
1030
1031
  return;
1031
1032
  const g = `[data-rp="page-${f}-textLayer"]`;
@@ -1050,23 +1051,23 @@ const Oo = (e) => {
1050
1051
  f(Array.from(g));
1051
1052
  return;
1052
1053
  }
1053
- new MutationObserver((b, w) => {
1054
+ new MutationObserver((b, _) => {
1054
1055
  const P = d.querySelectorAll(
1055
1056
  ".vpv-text-layer-text"
1056
1057
  );
1057
- P.length && (f(Array.from(P)), w.disconnect());
1058
+ P.length && (f(Array.from(P)), _.disconnect());
1058
1059
  }).observe(d, { childList: !0, subtree: !0 });
1059
1060
  });
1060
1061
  }
1061
- const S = (d, f, g, c) => {
1062
+ const y = (d, f, g, c) => {
1062
1063
  var Z;
1063
- const b = document.createRange(), w = g.firstChild;
1064
- if (!w || w.nodeType !== Node.TEXT_NODE)
1064
+ const b = document.createRange(), _ = g.firstChild;
1065
+ if (!_ || _.nodeType !== Node.TEXT_NODE)
1065
1066
  return null;
1066
- const P = ((Z = w.textContent) == null ? void 0 : Z.length) ?? 0, E = c[0].charIdxInSpan, x = c.length === 1 ? E : c[c.length - 1].charIdxInSpan;
1067
+ const P = ((Z = _.textContent) == null ? void 0 : Z.length) ?? 0, E = c[0].charIdxInSpan, x = c.length === 1 ? E : c[c.length - 1].charIdxInSpan;
1067
1068
  if (E > P || x + 1 > P)
1068
1069
  return null;
1069
- b.setStart(w, E), b.setEnd(w, x + 1);
1070
+ b.setStart(_, E), b.setEnd(_, x + 1);
1070
1071
  const R = document.createElement("span");
1071
1072
  R.style.width = "auto", b.surroundContents(R);
1072
1073
  const D = R.getBoundingClientRect(), z = d.getBoundingClientRect(), A = z.height, L = z.width, I = 100 * (D.left - z.left) / L, O = 100 * (D.top - z.top) / A, M = 100 * D.height / A, G = 100 * D.width / L;
@@ -1081,7 +1082,7 @@ const Oo = (e) => {
1081
1082
  };
1082
1083
  };
1083
1084
  async function C(d, f) {
1084
- const g = await _(u, d);
1085
+ const g = await w(u, d);
1085
1086
  if (!g)
1086
1087
  return;
1087
1088
  const c = await T(g);
@@ -1101,16 +1102,16 @@ const Oo = (e) => {
1101
1102
  spanIdx: 0
1102
1103
  }
1103
1104
  ]
1104
- ).slice(1), w = y(g, f, c, b);
1105
- v(w);
1105
+ ).slice(1), _ = S(g, f, c, b);
1106
+ v(_);
1106
1107
  }
1107
1108
  }
1108
- const y = (d, f, g, c) => {
1109
+ const S = (d, f, g, c) => {
1109
1110
  const b = f.length;
1110
1111
  if (!c.length || !b)
1111
1112
  return [];
1112
- const w = [], P = c.map((E) => E.char).join("");
1113
- return h.forEach((E) => {
1113
+ const _ = [], P = c.map((E) => E.char).join("");
1114
+ return p.forEach((E) => {
1114
1115
  const { keyword: x, regExp: R, wholeWords: D, color: z } = E, A = x;
1115
1116
  if (!A.trim())
1116
1117
  return;
@@ -1135,7 +1136,7 @@ const Oo = (e) => {
1135
1136
  );
1136
1137
  for (const j of Object.values(Z))
1137
1138
  if (j.length !== 1 || j[0].char.trim() !== "") {
1138
- const U = j, Q = g[U[0].spanIdx], X = S(
1139
+ const U = j, Q = g[U[0].spanIdx], X = y(
1139
1140
  d,
1140
1141
  A,
1141
1142
  Q,
@@ -1143,13 +1144,13 @@ const Oo = (e) => {
1143
1144
  );
1144
1145
  if (X) {
1145
1146
  const { left: le, top: ae } = X;
1146
- if (w.find((te) => te.left === le && te.top === ae))
1147
+ if (_.find((te) => te.left === le && te.top === ae))
1147
1148
  continue;
1148
- w.push({ ...X, highlightColor: G.color });
1149
+ _.push({ ...X, highlightColor: G.color });
1149
1150
  }
1150
1151
  }
1151
1152
  }
1152
- }), w.sort(Fr), w;
1153
+ }), _.sort(Fr), _;
1153
1154
  };
1154
1155
  return k(() => {
1155
1156
  (async () => {
@@ -1160,10 +1161,10 @@ const Oo = (e) => {
1160
1161
  console.error(f);
1161
1162
  }
1162
1163
  })();
1163
- }, [l, a, e, n, t]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: s, "data-rp": `page-${e}-textHighlightLayer`, children: m.map((d, f) => /* @__PURE__ */ i(
1164
+ }, [s, a, e, n, t]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: l, "data-rp": `page-${e}-textHighlightLayer`, children: m.map((d, f) => /* @__PURE__ */ i(
1164
1165
  "div",
1165
1166
  {
1166
- className: Do["rp-text-highlight"],
1167
+ className: zo["rp-text-highlight"],
1167
1168
  style: {
1168
1169
  top: `${d.top}%`,
1169
1170
  left: `${d.left}%`,
@@ -1175,42 +1176,42 @@ const Oo = (e) => {
1175
1176
  f
1176
1177
  )) }) });
1177
1178
  }, It = $e((e, t) => {
1178
- const { pageNumber: n, style: o, ...r } = e, { pages: a } = J(), { rotate: l } = Ge(), { textLayer: s } = or(), { currentZoom: u } = Qe(), p = H(a.get(n)), [m, v] = $(!1), h = H(null), [_, T] = $({
1179
+ const { pageNumber: n, style: o, ...r } = e, { pages: a } = J(), { rotate: s } = Ge(), { textLayer: l } = or(), { currentZoom: u } = Qe(), h = H(a.get(n)), [m, v] = $(!1), p = H(null), [w, T] = $({
1179
1180
  width: 0,
1180
1181
  height: 0
1181
1182
  });
1182
- cn(t, () => h.current), k(() => {
1183
- if (a && (p.current = a.get(n), p.current)) {
1184
- const d = p.current.page.getViewport({ scale: u, rotation: l });
1183
+ cn(t, () => p.current), k(() => {
1184
+ if (a && (h.current = a.get(n), h.current)) {
1185
+ const d = h.current.page.getViewport({ scale: u, rotation: s });
1185
1186
  T(d);
1186
1187
  }
1187
- }, [a, n, l, u]);
1188
- const S = W(() => {
1189
- switch (l) {
1188
+ }, [a, n, s, u]);
1189
+ const y = W(() => {
1190
+ switch (s) {
1190
1191
  case 90:
1191
- return `${_.width / 2}px ${_.width / 2}px`;
1192
+ return `${w.width / 2}px ${w.width / 2}px`;
1192
1193
  case -90:
1193
1194
  case 270:
1194
- return `${_.height / 2}px ${_.height / 2}px`;
1195
+ return `${w.height / 2}px ${w.height / 2}px`;
1195
1196
  default:
1196
1197
  return "center";
1197
1198
  }
1198
- }, [l, _]), C = N(() => {
1199
+ }, [s, w]), C = N(() => {
1199
1200
  v(!0);
1200
- }, []), y = N(() => {
1201
+ }, []), S = N(() => {
1201
1202
  v(!1);
1202
1203
  }, []);
1203
1204
  return /* @__PURE__ */ i(
1204
1205
  "div",
1205
1206
  {
1206
- ref: h,
1207
+ ref: p,
1207
1208
  id: `page-${n}`,
1208
1209
  "data-rp": `page-${n}`,
1209
1210
  ...r,
1210
1211
  style: {
1211
1212
  ...o,
1212
- "--rp-rotate": `${l}deg`,
1213
- "--rp-page-rotate-translate": `${S}`,
1213
+ "--rp-rotate": `${s}deg`,
1214
+ "--rp-page-rotate-translate": `${y}`,
1214
1215
  "--scale-factor": u
1215
1216
  },
1216
1217
  className: lt["rp-page-wrapper"],
@@ -1218,16 +1219,16 @@ const Oo = (e) => {
1218
1219
  "div",
1219
1220
  {
1220
1221
  style: {
1221
- width: `${_.width}px`,
1222
- height: `${_.height}px`
1222
+ width: `${w.width}px`,
1223
+ height: `${w.height}px`
1223
1224
  },
1224
1225
  className: lt["rp-page"],
1225
1226
  children: [
1226
- /* @__PURE__ */ i(xo, { onLoading: C, onLoaded: y, pageNumber: n }),
1227
+ /* @__PURE__ */ i(Io, { onLoading: C, onLoaded: S, pageNumber: n }),
1227
1228
  m && /* @__PURE__ */ i("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ i(Ct, {}) }),
1228
- s && /* @__PURE__ */ i(Lo, { pageNumber: n }),
1229
- /* @__PURE__ */ i(zo, { pageNumber: n, viewport: _ }),
1230
- /* @__PURE__ */ i(Oo, { pageNumber: n })
1229
+ l && /* @__PURE__ */ i(Eo, { pageNumber: n }),
1230
+ /* @__PURE__ */ i(Ao, { pageNumber: n, viewport: w }),
1231
+ /* @__PURE__ */ i(Do, { pageNumber: n })
1231
1232
  ]
1232
1233
  }
1233
1234
  )
@@ -1244,32 +1245,32 @@ function wt(e, t) {
1244
1245
  return n.__proto__ = o, n;
1245
1246
  }, wt(e, t);
1246
1247
  }
1247
- function Ao(e, t) {
1248
+ function Fo(e, t) {
1248
1249
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, wt(e, t);
1249
1250
  }
1250
1251
  var Vt = Number.isNaN || function(t) {
1251
1252
  return typeof t == "number" && t !== t;
1252
1253
  };
1253
- function Fo(e, t) {
1254
+ function ko(e, t) {
1254
1255
  return !!(e === t || Vt(e) && Vt(t));
1255
1256
  }
1256
- function ko(e, t) {
1257
+ function Wo(e, t) {
1257
1258
  if (e.length !== t.length)
1258
1259
  return !1;
1259
1260
  for (var n = 0; n < e.length; n++)
1260
- if (!Fo(e[n], t[n]))
1261
+ if (!ko(e[n], t[n]))
1261
1262
  return !1;
1262
1263
  return !0;
1263
1264
  }
1264
1265
  function dt(e, t) {
1265
- t === void 0 && (t = ko);
1266
+ t === void 0 && (t = Wo);
1266
1267
  var n, o = [], r, a = !1;
1267
- function l() {
1268
- for (var s = [], u = 0; u < arguments.length; u++)
1269
- s[u] = arguments[u];
1270
- return a && n === this && t(s, o) || (r = e.apply(this, s), a = !0, n = this, o = s), r;
1268
+ function s() {
1269
+ for (var l = [], u = 0; u < arguments.length; u++)
1270
+ l[u] = arguments[u];
1271
+ return a && n === this && t(l, o) || (r = e.apply(this, l), a = !0, n = this, o = l), r;
1271
1272
  }
1272
- return l;
1273
+ return s;
1273
1274
  }
1274
1275
  function Ut(e, t) {
1275
1276
  if (e == null)
@@ -1283,7 +1284,7 @@ function Ut(e, t) {
1283
1284
  }
1284
1285
  return n;
1285
1286
  }
1286
- var Wo = typeof performance == "object" && typeof performance.now == "function", Bt = Wo ? function() {
1287
+ var Mo = typeof performance == "object" && typeof performance.now == "function", Bt = Mo ? function() {
1287
1288
  return performance.now();
1288
1289
  } : function() {
1289
1290
  return Date.now();
@@ -1291,7 +1292,7 @@ var Wo = typeof performance == "object" && typeof performance.now == "function",
1291
1292
  function Zt(e) {
1292
1293
  cancelAnimationFrame(e.id);
1293
1294
  }
1294
- function Mo(e, t) {
1295
+ function Ho(e, t) {
1295
1296
  var n = Bt();
1296
1297
  function o() {
1297
1298
  Bt() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
@@ -1302,7 +1303,7 @@ function Mo(e, t) {
1302
1303
  return r;
1303
1304
  }
1304
1305
  var ut = -1;
1305
- function Ho(e) {
1306
+ function $o(e) {
1306
1307
  if (e === void 0 && (e = !1), ut === -1 || e) {
1307
1308
  var t = document.createElement("div"), n = t.style;
1308
1309
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), ut = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
@@ -1319,20 +1320,20 @@ function jt(e) {
1319
1320
  }
1320
1321
  return Le;
1321
1322
  }
1322
- var $o = 150, Go = function(t) {
1323
+ var Go = 150, qo = function(t) {
1323
1324
  var n = t.columnIndex;
1324
1325
  t.data;
1325
1326
  var o = t.rowIndex;
1326
1327
  return o + ":" + n;
1327
1328
  }, Be = null, Ze = null, je = null;
1328
1329
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Be = /* @__PURE__ */ new WeakSet(), Ze = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet());
1329
- function qo(e) {
1330
- var t, n = e.getColumnOffset, o = e.getColumnStartIndexForOffset, r = e.getColumnStopIndexForStartIndex, a = e.getColumnWidth, l = e.getEstimatedTotalHeight, s = e.getEstimatedTotalWidth, u = e.getOffsetForColumnAndAlignment, p = e.getOffsetForRowAndAlignment, m = e.getRowHeight, v = e.getRowOffset, h = e.getRowStartIndexForOffset, _ = e.getRowStopIndexForStartIndex, T = e.initInstanceProps, S = e.shouldResetStyleCacheOnItemSizeChange, C = e.validateProps;
1331
- return t = /* @__PURE__ */ function(y) {
1332
- Ao(d, y);
1330
+ function Vo(e) {
1331
+ var t, n = e.getColumnOffset, o = e.getColumnStartIndexForOffset, r = e.getColumnStopIndexForStartIndex, a = e.getColumnWidth, s = e.getEstimatedTotalHeight, l = e.getEstimatedTotalWidth, u = e.getOffsetForColumnAndAlignment, h = e.getOffsetForRowAndAlignment, m = e.getRowHeight, v = e.getRowOffset, p = e.getRowStartIndexForOffset, w = e.getRowStopIndexForStartIndex, T = e.initInstanceProps, y = e.shouldResetStyleCacheOnItemSizeChange, C = e.validateProps;
1332
+ return t = /* @__PURE__ */ function(S) {
1333
+ Fo(d, S);
1333
1334
  function d(g) {
1334
1335
  var c;
1335
- return c = y.call(this, g) || this, c._instanceProps = T(c.props, qt(c)), c._resetIsScrollingTimeoutId = null, c._outerRef = void 0, c.state = {
1336
+ return c = S.call(this, g) || this, c._instanceProps = T(c.props, qt(c)), c._resetIsScrollingTimeoutId = null, c._outerRef = void 0, c.state = {
1336
1337
  instance: qt(c),
1337
1338
  isScrolling: !1,
1338
1339
  horizontalScrollDirection: "forward",
@@ -1340,10 +1341,10 @@ function qo(e) {
1340
1341
  scrollTop: typeof c.props.initialScrollTop == "number" ? c.props.initialScrollTop : 0,
1341
1342
  scrollUpdateWasRequested: !1,
1342
1343
  verticalScrollDirection: "forward"
1343
- }, c._callOnItemsRendered = void 0, c._callOnItemsRendered = dt(function(b, w, P, E, x, R, D, z) {
1344
+ }, c._callOnItemsRendered = void 0, c._callOnItemsRendered = dt(function(b, _, P, E, x, R, D, z) {
1344
1345
  return c.props.onItemsRendered({
1345
1346
  overscanColumnStartIndex: b,
1346
- overscanColumnStopIndex: w,
1347
+ overscanColumnStopIndex: _,
1347
1348
  overscanRowStartIndex: P,
1348
1349
  overscanRowStopIndex: E,
1349
1350
  visibleColumnStartIndex: x,
@@ -1351,34 +1352,34 @@ function qo(e) {
1351
1352
  visibleRowStartIndex: D,
1352
1353
  visibleRowStopIndex: z
1353
1354
  });
1354
- }), c._callOnScroll = void 0, c._callOnScroll = dt(function(b, w, P, E, x) {
1355
+ }), c._callOnScroll = void 0, c._callOnScroll = dt(function(b, _, P, E, x) {
1355
1356
  return c.props.onScroll({
1356
1357
  horizontalScrollDirection: P,
1357
1358
  scrollLeft: b,
1358
- scrollTop: w,
1359
+ scrollTop: _,
1359
1360
  verticalScrollDirection: E,
1360
1361
  scrollUpdateWasRequested: x
1361
1362
  });
1362
- }), c._getItemStyle = void 0, c._getItemStyle = function(b, w) {
1363
- var P = c.props, E = P.columnWidth, x = P.direction, R = P.rowHeight, D = c._getItemStyleCache(S && E, S && x, S && R), z = b + ":" + w, A;
1363
+ }), c._getItemStyle = void 0, c._getItemStyle = function(b, _) {
1364
+ var P = c.props, E = P.columnWidth, x = P.direction, R = P.rowHeight, D = c._getItemStyleCache(y && E, y && x, y && R), z = b + ":" + _, A;
1364
1365
  if (D.hasOwnProperty(z))
1365
1366
  A = D[z];
1366
1367
  else {
1367
- var L = n(c.props, w, c._instanceProps), I = x === "rtl";
1368
+ var L = n(c.props, _, c._instanceProps), I = x === "rtl";
1368
1369
  D[z] = A = {
1369
1370
  position: "absolute",
1370
1371
  left: I ? void 0 : L,
1371
1372
  right: I ? L : void 0,
1372
1373
  top: v(c.props, b, c._instanceProps),
1373
1374
  height: m(c.props, b, c._instanceProps),
1374
- width: a(c.props, w, c._instanceProps)
1375
+ width: a(c.props, _, c._instanceProps)
1375
1376
  };
1376
1377
  }
1377
1378
  return A;
1378
- }, c._getItemStyleCache = void 0, c._getItemStyleCache = dt(function(b, w, P) {
1379
+ }, c._getItemStyleCache = void 0, c._getItemStyleCache = dt(function(b, _, P) {
1379
1380
  return {};
1380
1381
  }), c._onScroll = function(b) {
1381
- var w = b.currentTarget, P = w.clientHeight, E = w.clientWidth, x = w.scrollLeft, R = w.scrollTop, D = w.scrollHeight, z = w.scrollWidth;
1382
+ var _ = b.currentTarget, P = _.clientHeight, E = _.clientWidth, x = _.scrollLeft, R = _.scrollTop, D = _.scrollHeight, z = _.scrollWidth;
1382
1383
  c.setState(function(A) {
1383
1384
  if (A.scrollLeft === x && A.scrollTop === R)
1384
1385
  return null;
@@ -1404,10 +1405,10 @@ function qo(e) {
1404
1405
  };
1405
1406
  }, c._resetIsScrollingDebounced);
1406
1407
  }, c._outerRefSetter = function(b) {
1407
- var w = c.props.outerRef;
1408
- c._outerRef = b, typeof w == "function" ? w(b) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = b);
1408
+ var _ = c.props.outerRef;
1409
+ c._outerRef = b, typeof _ == "function" ? _(b) : _ != null && typeof _ == "object" && _.hasOwnProperty("current") && (_.current = b);
1409
1410
  }, c._resetIsScrollingDebounced = function() {
1410
- c._resetIsScrollingTimeoutId !== null && Zt(c._resetIsScrollingTimeoutId), c._resetIsScrollingTimeoutId = Mo(c._resetIsScrolling, $o);
1411
+ c._resetIsScrollingTimeoutId !== null && Zt(c._resetIsScrollingTimeoutId), c._resetIsScrollingTimeoutId = Ho(c._resetIsScrolling, Go);
1411
1412
  }, c._resetIsScrolling = function() {
1412
1413
  c._resetIsScrollingTimeoutId = null, c.setState({
1413
1414
  isScrolling: !1
@@ -1417,61 +1418,61 @@ function qo(e) {
1417
1418
  }, c;
1418
1419
  }
1419
1420
  d.getDerivedStateFromProps = function(c, b) {
1420
- return Vo(c, b), C(c), null;
1421
+ return Uo(c, b), C(c), null;
1421
1422
  };
1422
1423
  var f = d.prototype;
1423
1424
  return f.scrollTo = function(c) {
1424
- var b = c.scrollLeft, w = c.scrollTop;
1425
- b !== void 0 && (b = Math.max(0, b)), w !== void 0 && (w = Math.max(0, w)), this.setState(function(P) {
1426
- return b === void 0 && (b = P.scrollLeft), w === void 0 && (w = P.scrollTop), P.scrollLeft === b && P.scrollTop === w ? null : {
1425
+ var b = c.scrollLeft, _ = c.scrollTop;
1426
+ b !== void 0 && (b = Math.max(0, b)), _ !== void 0 && (_ = Math.max(0, _)), this.setState(function(P) {
1427
+ return b === void 0 && (b = P.scrollLeft), _ === void 0 && (_ = P.scrollTop), P.scrollLeft === b && P.scrollTop === _ ? null : {
1427
1428
  horizontalScrollDirection: P.scrollLeft < b ? "forward" : "backward",
1428
1429
  scrollLeft: b,
1429
- scrollTop: w,
1430
+ scrollTop: _,
1430
1431
  scrollUpdateWasRequested: !0,
1431
- verticalScrollDirection: P.scrollTop < w ? "forward" : "backward"
1432
+ verticalScrollDirection: P.scrollTop < _ ? "forward" : "backward"
1432
1433
  };
1433
1434
  }, this._resetIsScrollingDebounced);
1434
1435
  }, f.scrollToItem = function(c) {
1435
- var b = c.align, w = b === void 0 ? "auto" : b, P = c.columnIndex, E = c.rowIndex, x = this.props, R = x.columnCount, D = x.height, z = x.rowCount, A = x.width, L = this.state, I = L.scrollLeft, O = L.scrollTop, M = Ho();
1436
+ var b = c.align, _ = b === void 0 ? "auto" : b, P = c.columnIndex, E = c.rowIndex, x = this.props, R = x.columnCount, D = x.height, z = x.rowCount, A = x.width, L = this.state, I = L.scrollLeft, O = L.scrollTop, M = $o();
1436
1437
  P !== void 0 && (P = Math.max(0, Math.min(P, R - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, z - 1)));
1437
- var G = l(this.props, this._instanceProps), Z = s(this.props, this._instanceProps), j = Z > A ? M : 0, U = G > D ? M : 0;
1438
+ var G = s(this.props, this._instanceProps), Z = l(this.props, this._instanceProps), j = Z > A ? M : 0, U = G > D ? M : 0;
1438
1439
  this.scrollTo({
1439
- scrollLeft: P !== void 0 ? u(this.props, P, w, I, this._instanceProps, U) : I,
1440
- scrollTop: E !== void 0 ? p(this.props, E, w, O, this._instanceProps, j) : O
1440
+ scrollLeft: P !== void 0 ? u(this.props, P, _, I, this._instanceProps, U) : I,
1441
+ scrollTop: E !== void 0 ? h(this.props, E, _, O, this._instanceProps, j) : O
1441
1442
  });
1442
1443
  }, f.componentDidMount = function() {
1443
- var c = this.props, b = c.initialScrollLeft, w = c.initialScrollTop;
1444
+ var c = this.props, b = c.initialScrollLeft, _ = c.initialScrollTop;
1444
1445
  if (this._outerRef != null) {
1445
1446
  var P = this._outerRef;
1446
- typeof b == "number" && (P.scrollLeft = b), typeof w == "number" && (P.scrollTop = w);
1447
+ typeof b == "number" && (P.scrollLeft = b), typeof _ == "number" && (P.scrollTop = _);
1447
1448
  }
1448
1449
  this._callPropsCallbacks();
1449
1450
  }, f.componentDidUpdate = function() {
1450
- var c = this.props.direction, b = this.state, w = b.scrollLeft, P = b.scrollTop, E = b.scrollUpdateWasRequested;
1451
+ var c = this.props.direction, b = this.state, _ = b.scrollLeft, P = b.scrollTop, E = b.scrollUpdateWasRequested;
1451
1452
  if (E && this._outerRef != null) {
1452
1453
  var x = this._outerRef;
1453
1454
  if (c === "rtl")
1454
1455
  switch (jt()) {
1455
1456
  case "negative":
1456
- x.scrollLeft = -w;
1457
+ x.scrollLeft = -_;
1457
1458
  break;
1458
1459
  case "positive-ascending":
1459
- x.scrollLeft = w;
1460
+ x.scrollLeft = _;
1460
1461
  break;
1461
1462
  default:
1462
1463
  var R = x.clientWidth, D = x.scrollWidth;
1463
- x.scrollLeft = D - R - w;
1464
+ x.scrollLeft = D - R - _;
1464
1465
  break;
1465
1466
  }
1466
1467
  else
1467
- x.scrollLeft = Math.max(0, w);
1468
+ x.scrollLeft = Math.max(0, _);
1468
1469
  x.scrollTop = Math.max(0, P);
1469
1470
  }
1470
1471
  this._callPropsCallbacks();
1471
1472
  }, f.componentWillUnmount = function() {
1472
1473
  this._resetIsScrollingTimeoutId !== null && Zt(this._resetIsScrollingTimeoutId);
1473
1474
  }, f.render = function() {
1474
- var c = this.props, b = c.children, w = c.className, P = c.columnCount, E = c.direction, x = c.height, R = c.innerRef, D = c.innerElementType, z = c.innerTagName, A = c.itemData, L = c.itemKey, I = L === void 0 ? Go : L, O = c.outerElementType, M = c.outerTagName, G = c.rowCount, Z = c.style, j = c.useIsScrolling, U = c.width, Q = this.state.isScrolling, X = this._getHorizontalRangeToRender(), le = X[0], ae = X[1], de = this._getVerticalRangeToRender(), te = de[0], Ae = de[1], Re = [];
1475
+ var c = this.props, b = c.children, _ = c.className, P = c.columnCount, E = c.direction, x = c.height, R = c.innerRef, D = c.innerElementType, z = c.innerTagName, A = c.itemData, L = c.itemKey, I = L === void 0 ? qo : L, O = c.outerElementType, M = c.outerTagName, G = c.rowCount, Z = c.style, j = c.useIsScrolling, U = c.width, Q = this.state.isScrolling, X = this._getHorizontalRangeToRender(), le = X[0], ae = X[1], de = this._getVerticalRangeToRender(), te = de[0], Ae = de[1], Re = [];
1475
1476
  if (P > 0 && G)
1476
1477
  for (var Te = te; Te <= Ae; Te++)
1477
1478
  for (var we = le; we <= ae; we++)
@@ -1487,9 +1488,9 @@ function qo(e) {
1487
1488
  rowIndex: Te,
1488
1489
  style: this._getItemStyle(Te, we)
1489
1490
  }));
1490
- var nt = l(this.props, this._instanceProps), rt = s(this.props, this._instanceProps);
1491
+ var nt = s(this.props, this._instanceProps), rt = l(this.props, this._instanceProps);
1491
1492
  return Ue(O || M || "div", {
1492
- className: w,
1493
+ className: _,
1493
1494
  onScroll: this._onScroll,
1494
1495
  ref: this._outerRefSetter,
1495
1496
  style: Wr({
@@ -1511,8 +1512,8 @@ function qo(e) {
1511
1512
  }
1512
1513
  }));
1513
1514
  }, f._callPropsCallbacks = function() {
1514
- var c = this.props, b = c.columnCount, w = c.onItemsRendered, P = c.onScroll, E = c.rowCount;
1515
- if (typeof w == "function" && b > 0 && E > 0) {
1515
+ var c = this.props, b = c.columnCount, _ = c.onItemsRendered, P = c.onScroll, E = c.rowCount;
1516
+ if (typeof _ == "function" && b > 0 && E > 0) {
1516
1517
  var x = this._getHorizontalRangeToRender(), R = x[0], D = x[1], z = x[2], A = x[3], L = this._getVerticalRangeToRender(), I = L[0], O = L[1], M = L[2], G = L[3];
1517
1518
  this._callOnItemsRendered(R, D, I, O, z, A, M, G);
1518
1519
  }
@@ -1521,16 +1522,16 @@ function qo(e) {
1521
1522
  this._callOnScroll(U, Q, j, le, X);
1522
1523
  }
1523
1524
  }, f._getHorizontalRangeToRender = function() {
1524
- var c = this.props, b = c.columnCount, w = c.overscanColumnCount, P = c.overscanColumnsCount, E = c.overscanCount, x = c.rowCount, R = this.state, D = R.horizontalScrollDirection, z = R.isScrolling, A = R.scrollLeft, L = w || P || E || 1;
1525
+ var c = this.props, b = c.columnCount, _ = c.overscanColumnCount, P = c.overscanColumnsCount, E = c.overscanCount, x = c.rowCount, R = this.state, D = R.horizontalScrollDirection, z = R.isScrolling, A = R.scrollLeft, L = _ || P || E || 1;
1525
1526
  if (b === 0 || x === 0)
1526
1527
  return [0, 0, 0, 0];
1527
1528
  var I = o(this.props, A, this._instanceProps), O = r(this.props, I, A, this._instanceProps), M = !z || D === "backward" ? Math.max(1, L) : 1, G = !z || D === "forward" ? Math.max(1, L) : 1;
1528
1529
  return [Math.max(0, I - M), Math.max(0, Math.min(b - 1, O + G)), I, O];
1529
1530
  }, f._getVerticalRangeToRender = function() {
1530
- var c = this.props, b = c.columnCount, w = c.overscanCount, P = c.overscanRowCount, E = c.overscanRowsCount, x = c.rowCount, R = this.state, D = R.isScrolling, z = R.verticalScrollDirection, A = R.scrollTop, L = P || E || w || 1;
1531
+ var c = this.props, b = c.columnCount, _ = c.overscanCount, P = c.overscanRowCount, E = c.overscanRowsCount, x = c.rowCount, R = this.state, D = R.isScrolling, z = R.verticalScrollDirection, A = R.scrollTop, L = P || E || _ || 1;
1531
1532
  if (b === 0 || x === 0)
1532
1533
  return [0, 0, 0, 0];
1533
- var I = h(this.props, A, this._instanceProps), O = _(this.props, I, A, this._instanceProps), M = !D || z === "backward" ? Math.max(1, L) : 1, G = !D || z === "forward" ? Math.max(1, L) : 1;
1534
+ var I = p(this.props, A, this._instanceProps), O = w(this.props, I, A, this._instanceProps), M = !D || z === "backward" ? Math.max(1, L) : 1, G = !D || z === "forward" ? Math.max(1, L) : 1;
1534
1535
  return [Math.max(0, I - M), Math.max(0, Math.min(x - 1, O + G)), I, O];
1535
1536
  }, d;
1536
1537
  }(Jn), t.defaultProps = {
@@ -1539,10 +1540,10 @@ function qo(e) {
1539
1540
  useIsScrolling: !1
1540
1541
  }, t;
1541
1542
  }
1542
- var Vo = function(t, n) {
1543
- var o = t.children, r = t.direction, a = t.height, l = t.innerTagName, s = t.outerTagName, u = t.overscanColumnsCount, p = t.overscanCount, m = t.overscanRowsCount, v = t.width, h = n.instance;
1543
+ var Uo = function(t, n) {
1544
+ var o = t.children, r = t.direction, a = t.height, s = t.innerTagName, l = t.outerTagName, u = t.overscanColumnsCount, h = t.overscanCount, m = t.overscanRowsCount, v = t.width, p = n.instance;
1544
1545
  if (process.env.NODE_ENV !== "production") {
1545
- if (typeof p == "number" && Be && !Be.has(h) && (Be.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof u == "number" || typeof m == "number") && Ze && !Ze.has(h) && (Ze.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (l != null || s != null) && je && !je.has(h) && (je.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1546
+ if (typeof h == "number" && Be && !Be.has(p) && (Be.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof u == "number" || typeof m == "number") && Ze && !Ze.has(p) && (Ze.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (s != null || l != null) && je && !je.has(p) && (je.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
1546
1547
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1547
1548
  switch (r) {
1548
1549
  case "ltr":
@@ -1557,31 +1558,31 @@ var Vo = function(t, n) {
1557
1558
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
1558
1559
  }
1559
1560
  }, Kt = 50, Pn = function(t, n) {
1560
- var o = t.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, l = n.lastMeasuredRowIndex, s = 0;
1561
- if (l >= o && (l = o - 1), l >= 0) {
1562
- var u = r[l];
1563
- s = u.offset + u.size;
1561
+ var o = t.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, s = n.lastMeasuredRowIndex, l = 0;
1562
+ if (s >= o && (s = o - 1), s >= 0) {
1563
+ var u = r[s];
1564
+ l = u.offset + u.size;
1564
1565
  }
1565
- var p = o - l - 1, m = p * a;
1566
- return s + m;
1566
+ var h = o - s - 1, m = h * a;
1567
+ return l + m;
1567
1568
  }, Sn = function(t, n) {
1568
- var o = t.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, l = n.lastMeasuredColumnIndex, s = 0;
1569
- if (l >= o && (l = o - 1), l >= 0) {
1570
- var u = r[l];
1571
- s = u.offset + u.size;
1569
+ var o = t.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, s = n.lastMeasuredColumnIndex, l = 0;
1570
+ if (s >= o && (s = o - 1), s >= 0) {
1571
+ var u = r[s];
1572
+ l = u.offset + u.size;
1572
1573
  }
1573
- var p = o - l - 1, m = p * a;
1574
- return s + m;
1574
+ var h = o - s - 1, m = h * a;
1575
+ return l + m;
1575
1576
  }, me = function(t, n, o, r) {
1576
- var a, l, s;
1577
- if (t === "column" ? (a = r.columnMetadataMap, l = n.columnWidth, s = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, l = n.rowHeight, s = r.lastMeasuredRowIndex), o > s) {
1577
+ var a, s, l;
1578
+ if (t === "column" ? (a = r.columnMetadataMap, s = n.columnWidth, l = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, s = n.rowHeight, l = r.lastMeasuredRowIndex), o > l) {
1578
1579
  var u = 0;
1579
- if (s >= 0) {
1580
- var p = a[s];
1581
- u = p.offset + p.size;
1580
+ if (l >= 0) {
1581
+ var h = a[l];
1582
+ u = h.offset + h.size;
1582
1583
  }
1583
- for (var m = s + 1; m <= o; m++) {
1584
- var v = l(m);
1584
+ for (var m = l + 1; m <= o; m++) {
1585
+ var v = s(m);
1585
1586
  a[m] = {
1586
1587
  offset: u,
1587
1588
  size: v
@@ -1591,36 +1592,36 @@ var Vo = function(t, n) {
1591
1592
  }
1592
1593
  return a[o];
1593
1594
  }, Xt = function(t, n, o, r) {
1594
- var a, l;
1595
- t === "column" ? (a = o.columnMetadataMap, l = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, l = o.lastMeasuredRowIndex);
1596
- var s = l > 0 ? a[l].offset : 0;
1597
- return s >= r ? yn(t, n, o, l, 0, r) : Uo(t, n, o, Math.max(0, l), r);
1598
- }, yn = function(t, n, o, r, a, l) {
1595
+ var a, s;
1596
+ t === "column" ? (a = o.columnMetadataMap, s = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, s = o.lastMeasuredRowIndex);
1597
+ var l = s > 0 ? a[s].offset : 0;
1598
+ return l >= r ? yn(t, n, o, s, 0, r) : Bo(t, n, o, Math.max(0, s), r);
1599
+ }, yn = function(t, n, o, r, a, s) {
1599
1600
  for (; a <= r; ) {
1600
- var s = a + Math.floor((r - a) / 2), u = me(t, n, s, o).offset;
1601
- if (u === l)
1602
- return s;
1603
- u < l ? a = s + 1 : u > l && (r = s - 1);
1601
+ var l = a + Math.floor((r - a) / 2), u = me(t, n, l, o).offset;
1602
+ if (u === s)
1603
+ return l;
1604
+ u < s ? a = l + 1 : u > s && (r = l - 1);
1604
1605
  }
1605
1606
  return a > 0 ? a - 1 : 0;
1606
- }, Uo = function(t, n, o, r, a) {
1607
- for (var l = t === "column" ? n.columnCount : n.rowCount, s = 1; r < l && me(t, n, r, o).offset < a; )
1608
- r += s, s *= 2;
1609
- return yn(t, n, o, Math.min(r, l - 1), Math.floor(r / 2), a);
1610
- }, Yt = function(t, n, o, r, a, l, s) {
1611
- var u = t === "column" ? n.width : n.height, p = me(t, n, o, l), m = t === "column" ? Sn(n, l) : Pn(n, l), v = Math.max(0, Math.min(m - u, p.offset)), h = Math.max(0, p.offset - u + s + p.size);
1612
- switch (r === "smart" && (a >= h - u && a <= v + u ? r = "auto" : r = "center"), r) {
1607
+ }, Bo = function(t, n, o, r, a) {
1608
+ for (var s = t === "column" ? n.columnCount : n.rowCount, l = 1; r < s && me(t, n, r, o).offset < a; )
1609
+ r += l, l *= 2;
1610
+ return yn(t, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
1611
+ }, Yt = function(t, n, o, r, a, s, l) {
1612
+ var u = t === "column" ? n.width : n.height, h = me(t, n, o, s), m = t === "column" ? Sn(n, s) : Pn(n, s), v = Math.max(0, Math.min(m - u, h.offset)), p = Math.max(0, h.offset - u + l + h.size);
1613
+ switch (r === "smart" && (a >= p - u && a <= v + u ? r = "auto" : r = "center"), r) {
1613
1614
  case "start":
1614
1615
  return v;
1615
1616
  case "end":
1616
- return h;
1617
+ return p;
1617
1618
  case "center":
1618
- return Math.round(h + (v - h) / 2);
1619
+ return Math.round(p + (v - p) / 2);
1619
1620
  case "auto":
1620
1621
  default:
1621
- return a >= h && a <= v ? a : h > v || a < h ? h : v;
1622
+ return a >= p && a <= v ? a : p > v || a < p ? p : v;
1622
1623
  }
1623
- }, Bo = /* @__PURE__ */ qo({
1624
+ }, Zo = /* @__PURE__ */ Vo({
1624
1625
  getColumnOffset: function(t, n, o) {
1625
1626
  return me("column", t, n, o).offset;
1626
1627
  },
@@ -1628,8 +1629,8 @@ var Vo = function(t, n) {
1628
1629
  return Xt("column", t, o, n);
1629
1630
  },
1630
1631
  getColumnStopIndexForStartIndex: function(t, n, o, r) {
1631
- for (var a = t.columnCount, l = t.width, s = me("column", t, n, r), u = o + l, p = s.offset + s.size, m = n; m < a - 1 && p < u; )
1632
- m++, p += me("column", t, m, r).size;
1632
+ for (var a = t.columnCount, s = t.width, l = me("column", t, n, r), u = o + s, h = l.offset + l.size, m = n; m < a - 1 && h < u; )
1633
+ m++, h += me("column", t, m, r).size;
1633
1634
  return m;
1634
1635
  },
1635
1636
  getColumnWidth: function(t, n, o) {
@@ -1637,11 +1638,11 @@ var Vo = function(t, n) {
1637
1638
  },
1638
1639
  getEstimatedTotalHeight: Pn,
1639
1640
  getEstimatedTotalWidth: Sn,
1640
- getOffsetForColumnAndAlignment: function(t, n, o, r, a, l) {
1641
- return Yt("column", t, n, o, r, a, l);
1641
+ getOffsetForColumnAndAlignment: function(t, n, o, r, a, s) {
1642
+ return Yt("column", t, n, o, r, a, s);
1642
1643
  },
1643
- getOffsetForRowAndAlignment: function(t, n, o, r, a, l) {
1644
- return Yt("row", t, n, o, r, a, l);
1644
+ getOffsetForRowAndAlignment: function(t, n, o, r, a, s) {
1645
+ return Yt("row", t, n, o, r, a, s);
1645
1646
  },
1646
1647
  getRowOffset: function(t, n, o) {
1647
1648
  return me("row", t, n, o).offset;
@@ -1653,12 +1654,12 @@ var Vo = function(t, n) {
1653
1654
  return Xt("row", t, o, n);
1654
1655
  },
1655
1656
  getRowStopIndexForStartIndex: function(t, n, o, r) {
1656
- for (var a = t.rowCount, l = t.height, s = me("row", t, n, r), u = o + l, p = s.offset + s.size, m = n; m < a - 1 && p < u; )
1657
- m++, p += me("row", t, m, r).size;
1657
+ for (var a = t.rowCount, s = t.height, l = me("row", t, n, r), u = o + s, h = l.offset + l.size, m = n; m < a - 1 && h < u; )
1658
+ m++, h += me("row", t, m, r).size;
1658
1659
  return m;
1659
1660
  },
1660
1661
  initInstanceProps: function(t, n) {
1661
- var o = t, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, l = {
1662
+ var o = t, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, s = {
1662
1663
  columnMetadataMap: {},
1663
1664
  estimatedColumnWidth: r || Kt,
1664
1665
  estimatedRowHeight: a || Kt,
@@ -1666,20 +1667,20 @@ var Vo = function(t, n) {
1666
1667
  lastMeasuredRowIndex: -1,
1667
1668
  rowMetadataMap: {}
1668
1669
  };
1669
- return n.resetAfterColumnIndex = function(s, u) {
1670
+ return n.resetAfterColumnIndex = function(l, u) {
1670
1671
  u === void 0 && (u = !0), n.resetAfterIndices({
1671
- columnIndex: s,
1672
+ columnIndex: l,
1672
1673
  shouldForceUpdate: u
1673
1674
  });
1674
- }, n.resetAfterRowIndex = function(s, u) {
1675
+ }, n.resetAfterRowIndex = function(l, u) {
1675
1676
  u === void 0 && (u = !0), n.resetAfterIndices({
1676
- rowIndex: s,
1677
+ rowIndex: l,
1677
1678
  shouldForceUpdate: u
1678
1679
  });
1679
- }, n.resetAfterIndices = function(s) {
1680
- var u = s.columnIndex, p = s.rowIndex, m = s.shouldForceUpdate, v = m === void 0 ? !0 : m;
1681
- typeof u == "number" && (l.lastMeasuredColumnIndex = Math.min(l.lastMeasuredColumnIndex, u - 1)), typeof p == "number" && (l.lastMeasuredRowIndex = Math.min(l.lastMeasuredRowIndex, p - 1)), n._getItemStyleCache(-1), v && n.forceUpdate();
1682
- }, l;
1680
+ }, n.resetAfterIndices = function(l) {
1681
+ var u = l.columnIndex, h = l.rowIndex, m = l.shouldForceUpdate, v = m === void 0 ? !0 : m;
1682
+ typeof u == "number" && (s.lastMeasuredColumnIndex = Math.min(s.lastMeasuredColumnIndex, u - 1)), typeof h == "number" && (s.lastMeasuredRowIndex = Math.min(s.lastMeasuredRowIndex, h - 1)), n._getItemStyleCache(-1), v && n.forceUpdate();
1683
+ }, s;
1683
1684
  },
1684
1685
  shouldResetStyleCacheOnItemSizeChange: !1,
1685
1686
  validateProps: function(t) {
@@ -1702,31 +1703,37 @@ function Jt(e, t) {
1702
1703
  return !0;
1703
1704
  return !1;
1704
1705
  }
1705
- var Zo = ["style"], jo = ["style"];
1706
- function Ko(e, t) {
1707
- var n = e.style, o = Ut(e, Zo), r = t.style, a = Ut(t, jo);
1706
+ var jo = ["style"], Ko = ["style"];
1707
+ function Xo(e, t) {
1708
+ var n = e.style, o = Ut(e, jo), r = t.style, a = Ut(t, Ko);
1708
1709
  return !Jt(n, r) && !Jt(o, a);
1709
1710
  }
1710
- const Xo = () => {
1711
- const { viewMode: e } = ze(), { scrollMode: t } = De(), { setColumnCount: n } = dn(), { virtualScrollableElementRef: o } = et(), r = qe(), a = N(
1712
- (_) => r.widths[_] || 0,
1713
- [r.widths]
1714
- ), l = N(
1715
- (_) => r.heights[_] || 0,
1711
+ const Yo = () => {
1712
+ const { viewMode: e } = ze(), { scrollMode: t } = De(), { setColumnCount: n } = dn(), { virtualScrollableElementRef: o } = et(), r = qe(), a = W(() => r.heights.length, [r.heights]), s = W(() => t === ee.HORIZONTAL_SCROLLING ? a : e === He.DUAL_PAGE ? 2 : 1, [e, t, t, a, o]), l = W(() => r.widths.reduce((T, y, C) => {
1713
+ const S = C % s;
1714
+ return (!T[S] || y > T[S]) && (T[S] = y), T;
1715
+ }, []), [r.widths, s]), u = N(
1716
+ (w) => {
1717
+ const T = w % l.length;
1718
+ return l[T] || 0;
1719
+ },
1720
+ [l]
1721
+ ), h = N(
1722
+ (w) => r.heights[w] || 0,
1716
1723
  [r.heights]
1717
- ), s = W(() => r.heights.length, [r.heights]), u = W(() => Math.max(...r.widths), [r.widths]), p = W(() => t === ee.HORIZONTAL_SCROLLING ? s : e === He.DUAL_PAGE ? 2 : 1, [e, t, t, s, o, u]);
1724
+ );
1718
1725
  k(() => {
1719
- n(p);
1720
- }, [p, n]);
1721
- const m = W(() => t === ee.HORIZONTAL_SCROLLING || t === ee.PAGE_SCROLLING ? 1 : Math.round(s / p), [p, s, t]), v = W(() => r.heights.reduce((_, T) => _ + T, 0) / r.heights.length || 0, [r]), h = W(() => r.widths.reduce((_, T) => _ + T, 0) / r.heights.length || 0, [r]);
1726
+ n(s);
1727
+ }, [s, n]);
1728
+ const m = W(() => t === ee.HORIZONTAL_SCROLLING || t === ee.PAGE_SCROLLING ? 1 : Math.round(a / s), [s, a, t]), v = W(() => r.heights.reduce((w, T) => w + T, 0) / r.heights.length || 0, [r]), p = W(() => r.widths.reduce((w, T) => w + T, 0) / r.heights.length || 0, [r]);
1722
1729
  return {
1723
1730
  rowCount: m,
1724
- rowHeight: l,
1725
- columnCount: p,
1726
- columnWidth: a,
1731
+ rowHeight: h,
1732
+ columnCount: s,
1733
+ columnWidth: u,
1727
1734
  pageDimension: r,
1728
1735
  estimatedRowHeight: v,
1729
- estimatedColumnWidth: h
1736
+ estimatedColumnWidth: p
1730
1737
  };
1731
1738
  };
1732
1739
  let oe;
@@ -1745,79 +1752,79 @@ ht == null || tn == null ? (_t = pt, bt = function(t) {
1745
1752
  }, Qt);
1746
1753
  return [n, o];
1747
1754
  });
1748
- function Yo(e) {
1749
- let t, n, o, r, a, l, s;
1755
+ function Jo(e) {
1756
+ let t, n, o, r, a, s, l;
1750
1757
  const u = typeof document < "u" && document.attachEvent;
1751
1758
  if (!u) {
1752
- l = function(y) {
1753
- const d = y.__resizeTriggers__, f = d.firstElementChild, g = d.lastElementChild, c = f.firstElementChild;
1759
+ s = function(S) {
1760
+ const d = S.__resizeTriggers__, f = d.firstElementChild, g = d.lastElementChild, c = f.firstElementChild;
1754
1761
  g.scrollLeft = g.scrollWidth, g.scrollTop = g.scrollHeight, c.style.width = f.offsetWidth + 1 + "px", c.style.height = f.offsetHeight + 1 + "px", f.scrollLeft = f.scrollWidth, f.scrollTop = f.scrollHeight;
1755
- }, a = function(y) {
1756
- return y.offsetWidth !== y.__resizeLast__.width || y.offsetHeight !== y.__resizeLast__.height;
1757
- }, s = function(y) {
1758
- if (y.target.className && typeof y.target.className.indexOf == "function" && y.target.className.indexOf("contract-trigger") < 0 && y.target.className.indexOf("expand-trigger") < 0)
1762
+ }, a = function(S) {
1763
+ return S.offsetWidth !== S.__resizeLast__.width || S.offsetHeight !== S.__resizeLast__.height;
1764
+ }, l = function(S) {
1765
+ if (S.target.className && typeof S.target.className.indexOf == "function" && S.target.className.indexOf("contract-trigger") < 0 && S.target.className.indexOf("expand-trigger") < 0)
1759
1766
  return;
1760
1767
  const d = this;
1761
- l(this), this.__resizeRAF__ && _t(this.__resizeRAF__), this.__resizeRAF__ = bt(function() {
1768
+ s(this), this.__resizeRAF__ && _t(this.__resizeRAF__), this.__resizeRAF__ = bt(function() {
1762
1769
  a(d) && (d.__resizeLast__.width = d.offsetWidth, d.__resizeLast__.height = d.offsetHeight, d.__resizeListeners__.forEach(function(c) {
1763
- c.call(d, y);
1770
+ c.call(d, S);
1764
1771
  }));
1765
1772
  });
1766
1773
  };
1767
- let h = !1, _ = "";
1774
+ let p = !1, w = "";
1768
1775
  o = "animationstart";
1769
1776
  const T = "Webkit Moz O ms".split(" ");
1770
- let S = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), C = "";
1777
+ let y = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), C = "";
1771
1778
  {
1772
- const y = document.createElement("fakeelement");
1773
- if (y.style.animationName !== void 0 && (h = !0), h === !1) {
1779
+ const S = document.createElement("fakeelement");
1780
+ if (S.style.animationName !== void 0 && (p = !0), p === !1) {
1774
1781
  for (let d = 0; d < T.length; d++)
1775
- if (y.style[T[d] + "AnimationName"] !== void 0) {
1776
- C = T[d], _ = "-" + C.toLowerCase() + "-", o = S[d], h = !0;
1782
+ if (S.style[T[d] + "AnimationName"] !== void 0) {
1783
+ C = T[d], w = "-" + C.toLowerCase() + "-", o = y[d], p = !0;
1777
1784
  break;
1778
1785
  }
1779
1786
  }
1780
1787
  }
1781
- n = "resizeanim", t = "@" + _ + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = _ + "animation: 1ms " + n + "; ";
1788
+ n = "resizeanim", t = "@" + w + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = w + "animation: 1ms " + n + "; ";
1782
1789
  }
1783
- const p = function(h) {
1784
- if (!h.getElementById("detectElementResize")) {
1785
- const _ = (t || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', T = h.head || h.getElementsByTagName("head")[0], S = h.createElement("style");
1786
- S.id = "detectElementResize", S.type = "text/css", e != null && S.setAttribute("nonce", e), S.styleSheet ? S.styleSheet.cssText = _ : S.appendChild(h.createTextNode(_)), T.appendChild(S);
1790
+ const h = function(p) {
1791
+ if (!p.getElementById("detectElementResize")) {
1792
+ const w = (t || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', T = p.head || p.getElementsByTagName("head")[0], y = p.createElement("style");
1793
+ y.id = "detectElementResize", y.type = "text/css", e != null && y.setAttribute("nonce", e), y.styleSheet ? y.styleSheet.cssText = w : y.appendChild(p.createTextNode(w)), T.appendChild(y);
1787
1794
  }
1788
1795
  };
1789
1796
  return {
1790
- addResizeListener: function(h, _) {
1797
+ addResizeListener: function(p, w) {
1791
1798
  if (u)
1792
- h.attachEvent("onresize", _);
1799
+ p.attachEvent("onresize", w);
1793
1800
  else {
1794
- if (!h.__resizeTriggers__) {
1795
- const T = h.ownerDocument, S = oe.getComputedStyle(h);
1796
- S && S.position === "static" && (h.style.position = "relative"), p(T), h.__resizeLast__ = {}, h.__resizeListeners__ = [], (h.__resizeTriggers__ = T.createElement("div")).className = "resize-triggers";
1801
+ if (!p.__resizeTriggers__) {
1802
+ const T = p.ownerDocument, y = oe.getComputedStyle(p);
1803
+ y && y.position === "static" && (p.style.position = "relative"), h(T), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = T.createElement("div")).className = "resize-triggers";
1797
1804
  const C = T.createElement("div");
1798
1805
  C.className = "expand-trigger", C.appendChild(T.createElement("div"));
1799
- const y = T.createElement("div");
1800
- y.className = "contract-trigger", h.__resizeTriggers__.appendChild(C), h.__resizeTriggers__.appendChild(y), h.appendChild(h.__resizeTriggers__), l(h), h.addEventListener("scroll", s, !0), o && (h.__resizeTriggers__.__animationListener__ = function(f) {
1801
- f.animationName === n && l(h);
1802
- }, h.__resizeTriggers__.addEventListener(o, h.__resizeTriggers__.__animationListener__));
1806
+ const S = T.createElement("div");
1807
+ S.className = "contract-trigger", p.__resizeTriggers__.appendChild(C), p.__resizeTriggers__.appendChild(S), p.appendChild(p.__resizeTriggers__), s(p), p.addEventListener("scroll", l, !0), o && (p.__resizeTriggers__.__animationListener__ = function(f) {
1808
+ f.animationName === n && s(p);
1809
+ }, p.__resizeTriggers__.addEventListener(o, p.__resizeTriggers__.__animationListener__));
1803
1810
  }
1804
- h.__resizeListeners__.push(_);
1811
+ p.__resizeListeners__.push(w);
1805
1812
  }
1806
1813
  },
1807
- removeResizeListener: function(h, _) {
1814
+ removeResizeListener: function(p, w) {
1808
1815
  if (u)
1809
- h.detachEvent("onresize", _);
1810
- else if (h.__resizeListeners__.splice(h.__resizeListeners__.indexOf(_), 1), !h.__resizeListeners__.length) {
1811
- h.removeEventListener("scroll", s, !0), h.__resizeTriggers__.__animationListener__ && (h.__resizeTriggers__.removeEventListener(o, h.__resizeTriggers__.__animationListener__), h.__resizeTriggers__.__animationListener__ = null);
1816
+ p.detachEvent("onresize", w);
1817
+ else if (p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(w), 1), !p.__resizeListeners__.length) {
1818
+ p.removeEventListener("scroll", l, !0), p.__resizeTriggers__.__animationListener__ && (p.__resizeTriggers__.removeEventListener(o, p.__resizeTriggers__.__animationListener__), p.__resizeTriggers__.__animationListener__ = null);
1812
1819
  try {
1813
- h.__resizeTriggers__ = !h.removeChild(h.__resizeTriggers__);
1820
+ p.__resizeTriggers__ = !p.removeChild(p.__resizeTriggers__);
1814
1821
  } catch {
1815
1822
  }
1816
1823
  }
1817
1824
  }
1818
1825
  };
1819
1826
  }
1820
- class Jo extends Qn {
1827
+ class Qo extends Qn {
1821
1828
  constructor(...t) {
1822
1829
  super(...t), this.state = {
1823
1830
  height: this.props.defaultHeight || 0,
@@ -1832,16 +1839,16 @@ class Jo extends Qn {
1832
1839
  onResize: r
1833
1840
  } = this.props;
1834
1841
  if (this._parentNode) {
1835
- const a = window.getComputedStyle(this._parentNode) || {}, l = parseFloat(a.paddingLeft || "0"), s = parseFloat(a.paddingRight || "0"), u = parseFloat(a.paddingTop || "0"), p = parseFloat(a.paddingBottom || "0"), m = this._parentNode.getBoundingClientRect(), v = m.height - u - p, h = m.width - l - s, _ = this._parentNode.offsetHeight - u - p, T = this._parentNode.offsetWidth - l - s;
1836
- (!n && (this.state.height !== _ || this.state.scaledHeight !== v) || !o && (this.state.width !== T || this.state.scaledWidth !== h)) && (this.setState({
1837
- height: _,
1842
+ const a = window.getComputedStyle(this._parentNode) || {}, s = parseFloat(a.paddingLeft || "0"), l = parseFloat(a.paddingRight || "0"), u = parseFloat(a.paddingTop || "0"), h = parseFloat(a.paddingBottom || "0"), m = this._parentNode.getBoundingClientRect(), v = m.height - u - h, p = m.width - s - l, w = this._parentNode.offsetHeight - u - h, T = this._parentNode.offsetWidth - s - l;
1843
+ (!n && (this.state.height !== w || this.state.scaledHeight !== v) || !o && (this.state.width !== T || this.state.scaledWidth !== p)) && (this.setState({
1844
+ height: w,
1838
1845
  width: T,
1839
1846
  scaledHeight: v,
1840
- scaledWidth: h
1847
+ scaledWidth: p
1841
1848
  }), typeof r == "function" && r({
1842
- height: _,
1849
+ height: w,
1843
1850
  scaledHeight: v,
1844
- scaledWidth: h,
1851
+ scaledWidth: p,
1845
1852
  width: T
1846
1853
  }));
1847
1854
  }
@@ -1858,7 +1865,7 @@ class Jo extends Qn {
1858
1865
  const o = n.ownerDocument.defaultView.ResizeObserver;
1859
1866
  o != null ? (this._resizeObserver = new o(() => {
1860
1867
  this._timeoutId = setTimeout(this._onResize, 0);
1861
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Yo(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1868
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = Jo(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1862
1869
  }
1863
1870
  }
1864
1871
  componentWillUnmount() {
@@ -1871,39 +1878,39 @@ class Jo extends Qn {
1871
1878
  defaultWidth: o,
1872
1879
  disableHeight: r = !1,
1873
1880
  disableWidth: a = !1,
1874
- doNotBailOutOnEmptyChildren: l = !1,
1875
- nonce: s,
1881
+ doNotBailOutOnEmptyChildren: s = !1,
1882
+ nonce: l,
1876
1883
  onResize: u,
1877
- style: p = {},
1884
+ style: h = {},
1878
1885
  tagName: m = "div",
1879
1886
  ...v
1880
1887
  } = this.props, {
1881
- height: h,
1882
- scaledHeight: _,
1888
+ height: p,
1889
+ scaledHeight: w,
1883
1890
  scaledWidth: T,
1884
- width: S
1891
+ width: y
1885
1892
  } = this.state, C = {
1886
1893
  overflow: "visible"
1887
- }, y = {};
1894
+ }, S = {};
1888
1895
  let d = !1;
1889
- return r || (h === 0 && (d = !0), C.height = 0, y.height = h, y.scaledHeight = _), a || (S === 0 && (d = !0), C.width = 0, y.width = S, y.scaledWidth = T), l && (d = !1), Ue(m, {
1896
+ return r || (p === 0 && (d = !0), C.height = 0, S.height = p, S.scaledHeight = w), a || (y === 0 && (d = !0), C.width = 0, S.width = y, S.scaledWidth = T), s && (d = !1), Ue(m, {
1890
1897
  ref: this._setRef,
1891
1898
  style: {
1892
1899
  ...C,
1893
- ...p
1900
+ ...h
1894
1901
  },
1895
1902
  ...v
1896
- }, !d && t(y));
1903
+ }, !d && t(S));
1897
1904
  }
1898
1905
  }
1899
- const Qo = ({ widths: e, heights: t }) => {
1906
+ const ei = ({ widths: e, heights: t }) => {
1900
1907
  const { focusedPage: n, totalPages: o } = ie(), r = W(() => {
1901
- const s = [], u = Math.ceil(n / 2) * 2 - 1;
1902
- if (s.push(u), u + 1 < o) {
1903
- const p = u + 1;
1904
- s.push(p);
1908
+ const l = [], u = Math.ceil(n / 2) * 2 - 1;
1909
+ if (l.push(u), u + 1 < o) {
1910
+ const h = u + 1;
1911
+ l.push(h);
1905
1912
  }
1906
- return s;
1913
+ return l;
1907
1914
  }, [n, o]), a = W(() => [
1908
1915
  {
1909
1916
  position: "absolute",
@@ -1918,9 +1925,9 @@ const Qo = ({ widths: e, heights: t }) => {
1918
1925
  width: e(n),
1919
1926
  height: t(n)
1920
1927
  }
1921
- ], [e, t, r]), l = W(() => a.reduce((s, u) => s + Number(u.width || 0), 0), [a]);
1922
- return /* @__PURE__ */ i("div", { style: { width: l, position: "relative" }, children: r.map((s, u) => /* @__PURE__ */ i(It, { style: a[u], pageNumber: s }, s)) });
1923
- }, ei = ({ widths: e, heights: t }) => {
1928
+ ], [e, t, r]), s = W(() => a.reduce((l, u) => l + Number(u.width || 0), 0), [a]);
1929
+ return /* @__PURE__ */ i("div", { style: { width: s, position: "relative" }, children: r.map((l, u) => /* @__PURE__ */ i(It, { style: a[u], pageNumber: l }, l)) });
1930
+ }, ti = ({ widths: e, heights: t }) => {
1924
1931
  const { focusedPage: n } = ie(), o = W(() => ({
1925
1932
  position: "absolute",
1926
1933
  width: e(n - 1),
@@ -1936,12 +1943,12 @@ const Qo = ({ widths: e, heights: t }) => {
1936
1943
  children: /* @__PURE__ */ i(It, { style: o, pageNumber: n }, n)
1937
1944
  }
1938
1945
  );
1939
- }, ti = (e, t, n) => {
1940
- const o = H(), { contentRef: r } = ge(), { heights: a, widths: l } = qe(), { setFocusedPage: s } = ie(), [u, p] = $([]), { targetScrollPage: m } = un(), v = Tt(u, 0, 500), h = W(() => a.map((T, S) => {
1941
- const C = l[S], y = Vr(S + 1, e), d = C * y.columnIndex, f = T * y.rowIndex, g = d + C, c = f + T;
1946
+ }, ni = (e, t, n) => {
1947
+ const o = H(), { contentRef: r } = ge(), { heights: a, widths: s } = qe(), { setFocusedPage: l } = ie(), [u, h] = $([]), { targetScrollPage: m } = un(), v = Tt(u, 0, 500), p = W(() => a.map((T, y) => {
1948
+ const C = s[y], S = Vr(y + 1, e), d = C * S.columnIndex, f = T * S.rowIndex, g = d + C, c = f + T;
1942
1949
  return {
1943
- pageNumber: S + 1,
1944
- ...y,
1950
+ pageNumber: y + 1,
1951
+ ...S,
1945
1952
  width: C,
1946
1953
  height: T,
1947
1954
  startX: d,
@@ -1949,59 +1956,59 @@ const Qo = ({ widths: e, heights: t }) => {
1949
1956
  endX: g,
1950
1957
  endY: c
1951
1958
  };
1952
- }), [a, l, e, t]);
1959
+ }), [a, s, e, t]);
1953
1960
  k(() => {
1954
- var S;
1955
- v.length > 0 && !m.current && s(v[0].pageNumber);
1956
- let T = (S = v[0]) == null ? void 0 : S.ratio;
1961
+ var y;
1962
+ v.length > 0 && !m.current && l(v[0].pageNumber);
1963
+ let T = (y = v[0]) == null ? void 0 : y.ratio;
1957
1964
  T && v.filter((C) => Math.round(C.ratio) === Math.round(T)).some((C) => C.pageNumber === m.current) && setTimeout(() => {
1958
1965
  m.current = void 0;
1959
1966
  }, 500);
1960
- }, [v, s]);
1961
- const _ = N(
1967
+ }, [v, l]);
1968
+ const w = N(
1962
1969
  (T) => {
1963
1970
  o.current && cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
1964
- const S = T.target, C = {
1965
- startTop: S.scrollTop,
1966
- startLeft: S.scrollLeft,
1967
- endTop: S.scrollTop + S.clientHeight,
1968
- endLeft: S.scrollLeft + S.clientWidth
1969
- }, y = h.filter((d) => {
1971
+ const y = T.target, C = {
1972
+ startTop: y.scrollTop,
1973
+ startLeft: y.scrollLeft,
1974
+ endTop: y.scrollTop + y.clientHeight,
1975
+ endLeft: y.scrollLeft + y.clientWidth
1976
+ }, S = p.filter((d) => {
1970
1977
  const f = d.endX >= C.startLeft && d.endY >= C.startTop, g = d.startX <= C.endLeft && d.startY <= C.endTop;
1971
1978
  return f && g;
1972
1979
  }).map((d) => {
1973
- const f = C.startLeft > d.startX ? C.startLeft : d.startX, g = C.startTop > d.startY ? C.startTop : d.startY, c = C.endLeft < d.endX ? C.endLeft : d.endX, b = C.endTop < d.endY ? C.endTop : d.endY, w = c - f, P = b - g, x = +(w * P / (d.width * d.height) * 100).toFixed(2);
1980
+ const f = C.startLeft > d.startX ? C.startLeft : d.startX, g = C.startTop > d.startY ? C.startTop : d.startY, c = C.endLeft < d.endX ? C.endLeft : d.endX, b = C.endTop < d.endY ? C.endTop : d.endY, _ = c - f, P = b - g, x = +(_ * P / (d.width * d.height) * 100).toFixed(2);
1974
1981
  return {
1975
1982
  pageNumber: d.pageNumber,
1976
1983
  ratio: x
1977
1984
  };
1978
1985
  }).sort((d, f) => f.ratio - d.ratio);
1979
- p(y);
1986
+ h(S);
1980
1987
  });
1981
1988
  },
1982
- [r, h]
1989
+ [r, p]
1983
1990
  );
1984
1991
  k(() => {
1985
1992
  if (n)
1986
- return n == null || n.addEventListener("scroll", _), () => {
1987
- n == null || n.removeEventListener("scroll", _);
1993
+ return n == null || n.addEventListener("scroll", w), () => {
1994
+ n == null || n.removeEventListener("scroll", w);
1988
1995
  };
1989
- }, [n, _]);
1990
- }, ni = er(({ columnIndex: e, rowIndex: t, data: n, style: o }) => {
1996
+ }, [n, w]);
1997
+ }, ri = er(({ columnIndex: e, rowIndex: t, data: n, style: o }) => {
1991
1998
  const r = Ur(t, e, n.columnCount);
1992
1999
  return /* @__PURE__ */ i(It, { style: o, pageNumber: r }, r);
1993
- }, Ko), $s = () => {
2000
+ }, Xo), qs = () => {
1994
2001
  const { initialPage: e = 1, initialScrollMode: t, instanceId: n } = ar(), { pagesRef: o, setPagesRef: r } = ge(), { scrollToPage: a } = vn(), {
1995
- virtualScrollRef: l,
1996
- getVirtualScrollRef: s,
2002
+ virtualScrollRef: s,
2003
+ getVirtualScrollRef: l,
1997
2004
  getPageScrollElementRef: u,
1998
- getVirtualScrollableElementRef: p,
2005
+ getVirtualScrollableElementRef: h,
1999
2006
  setTotalInnerDimensions: m,
2000
2007
  virtualScrollableElementRef: v,
2001
- totalInnerDimensions: h,
2002
- pageScrollElementRef: _
2003
- } = et(), T = H(!0), { nextPage: S, prevPage: C, setFocusedPage: y, focusedPage: d } = ie(), { scrollMode: f } = De(), { viewMode: g } = ze(), c = H(null), { loading: b } = J(), { passwordRequired: w } = nr(), { LoaderImageComponent: P } = pn(), E = H(
2004
- h
2008
+ totalInnerDimensions: p,
2009
+ pageScrollElementRef: w
2010
+ } = et(), T = H(!0), { nextPage: y, prevPage: C, setFocusedPage: S, focusedPage: d } = ie(), { scrollMode: f } = De(), { viewMode: g } = ze(), c = H(null), { loading: b } = J(), { passwordRequired: _ } = nr(), { LoaderImageComponent: P } = pn(), E = H(
2011
+ p
2005
2012
  ), x = H({
2006
2013
  viewMode: g,
2007
2014
  scrollMode: f
@@ -2013,8 +2020,8 @@ const Qo = ({ widths: e, heights: t }) => {
2013
2020
  columnWidth: M,
2014
2021
  estimatedColumnWidth: G,
2015
2022
  estimatedRowHeight: Z
2016
- } = Xo(), j = Tt(h, 100), U = H();
2017
- ti(O, L, v);
2023
+ } = Yo(), j = Tt(p, 100), U = H();
2024
+ ni(O, L, v);
2018
2025
  const Q = H({
2019
2026
  scrollTop: 0,
2020
2027
  scrollLeft: 0
@@ -2027,22 +2034,22 @@ const Qo = ({ widths: e, heights: t }) => {
2027
2034
  }), [O]), Re = N(
2028
2035
  (q) => {
2029
2036
  const V = document.activeElement !== o;
2030
- !z && V || (["ArrowUp", "ArrowLeft"].includes(q.key) ? (q.preventDefault(), C()) : ["ArrowDown", "ArrowRight"].includes(q.key) && (q.preventDefault(), S()));
2037
+ !z && V || (["ArrowUp", "ArrowLeft"].includes(q.key) ? (q.preventDefault(), C()) : ["ArrowDown", "ArrowRight"].includes(q.key) && (q.preventDefault(), y()));
2031
2038
  },
2032
- [S, C, z, f]
2039
+ [y, C, z, f]
2033
2040
  );
2034
2041
  k(() => (window.addEventListener("keydown", Re), () => {
2035
2042
  window.removeEventListener("keydown", Re);
2036
2043
  }), [Re]), k(() => {
2037
- if (c.current && (c.current.style.position = "relative"), !!l)
2044
+ if (c.current && (c.current.style.position = "relative"), !!s)
2038
2045
  for (let q = 0; q < L; q++)
2039
2046
  for (let V = 0; V < O; V++)
2040
- l.resetAfterIndices({
2047
+ s.resetAfterIndices({
2041
2048
  columnIndex: V,
2042
2049
  rowIndex: q,
2043
2050
  shouldForceUpdate: !0
2044
2051
  });
2045
- }, [L, O, A, l]);
2052
+ }, [L, O, A, s]);
2046
2053
  const Te = N(
2047
2054
  (q, V) => {
2048
2055
  if (!v)
@@ -2074,7 +2081,7 @@ const Qo = ({ widths: e, heights: t }) => {
2074
2081
  const jn = Se / Ot * ye, Kn = ot / Dt * it, Xn = Math.round(Math.min(jn, ye)) || 0, Yn = Math.round(Math.min(Kn, it)) || 0;
2075
2082
  D.current = setTimeout(() => {
2076
2083
  requestAnimationFrame(() => {
2077
- l == null || l.scrollTo({
2084
+ s == null || s.scrollTo({
2078
2085
  scrollTop: Xn,
2079
2086
  scrollLeft: Yn
2080
2087
  });
@@ -2084,7 +2091,7 @@ const Qo = ({ widths: e, heights: t }) => {
2084
2091
  width: V.width
2085
2092
  };
2086
2093
  },
2087
- [l, g, f, a]
2094
+ [s, g, f, a]
2088
2095
  );
2089
2096
  k(() => {
2090
2097
  clearTimeout(D.current);
@@ -2129,32 +2136,32 @@ const Qo = ({ widths: e, heights: t }) => {
2129
2136
  }, [b]), k(() => {
2130
2137
  if (!(j.height === 0 || !T.current)) {
2131
2138
  if (t === ee.PAGE_SCROLLING) {
2132
- e !== d && _ && y(e), T.current = !1;
2139
+ e !== d && w && S(e), T.current = !1;
2133
2140
  return;
2134
2141
  }
2135
- a(e, "auto"), y(e), T.current = !1;
2142
+ a(e, "auto"), S(e), T.current = !1;
2136
2143
  }
2137
2144
  }, [
2138
2145
  a,
2139
2146
  t,
2140
- _,
2141
- y,
2147
+ w,
2148
+ S,
2142
2149
  j
2143
2150
  ]), /* @__PURE__ */ F(fe, { children: [
2144
- /* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Jo, { style: { minHeight: "50px" }, children: ({ width: q, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Zn, style: { width: q, height: V }, children: f === ee.PAGE_SCROLLING ? /* @__PURE__ */ i(
2151
+ /* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Qo, { style: { minHeight: "50px" }, children: ({ width: q, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Zn, style: { width: q, height: V }, children: f === ee.PAGE_SCROLLING ? /* @__PURE__ */ i(
2145
2152
  "div",
2146
2153
  {
2147
2154
  ref: u,
2148
2155
  style: { width: q, height: V },
2149
2156
  className: ne(ue["rp-pages"], ue["rp-page-scrolling-wrapper"]),
2150
- children: g === He.DUAL_PAGE ? /* @__PURE__ */ i(Qo, { widths: M, heights: I }) : /* @__PURE__ */ i(ei, { widths: M, heights: I })
2157
+ children: g === He.DUAL_PAGE ? /* @__PURE__ */ i(ei, { widths: M, heights: I }) : /* @__PURE__ */ i(ti, { widths: M, heights: I })
2151
2158
  }
2152
2159
  ) : G ? /* @__PURE__ */ i(
2153
- Bo,
2160
+ Zo,
2154
2161
  {
2155
- ref: s,
2162
+ ref: l,
2156
2163
  itemData: Ae,
2157
- outerRef: p,
2164
+ outerRef: h,
2158
2165
  innerRef: c,
2159
2166
  onScroll: nt,
2160
2167
  columnCount: O,
@@ -2169,7 +2176,7 @@ const Qo = ({ widths: e, heights: t }) => {
2169
2176
  ue["rp-pages"],
2170
2177
  f === ee.HORIZONTAL_SCROLLING ? ue["rp-pages-horizontal-scroll"] : ""
2171
2178
  ),
2172
- children: ni
2179
+ children: ri
2173
2180
  }
2174
2181
  ) : b ? null : /* @__PURE__ */ i(
2175
2182
  "div",
@@ -2185,7 +2192,7 @@ const Qo = ({ widths: e, heights: t }) => {
2185
2192
  children: P && /* @__PURE__ */ i(P, {})
2186
2193
  }
2187
2194
  ) }) }) }),
2188
- w && /* @__PURE__ */ i(qr, {})
2195
+ _ && /* @__PURE__ */ i(qr, {})
2189
2196
  ] });
2190
2197
  }, Fe = {
2191
2198
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2197,30 +2204,30 @@ const Qo = ({ widths: e, heights: t }) => {
2197
2204
  "rp-paginate": "_rp-paginate_1y9vo_1",
2198
2205
  "rp-page-input": "_rp-page-input_1y9vo_6",
2199
2206
  "rp-total-page": "_rp-total-page_1y9vo_11"
2200
- }, ri = () => {
2207
+ }, oi = () => {
2201
2208
  const { prevIcon: e } = pe();
2202
2209
  return e || /* @__PURE__ */ i(Me, {});
2203
- }, oi = () => {
2210
+ }, ii = () => {
2204
2211
  const { nextIcon: e } = pe();
2205
2212
  return e || /* @__PURE__ */ i(Me, { style: { transform: "rotate(180deg" } });
2206
- }, ii = () => {
2207
- const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = ie(), [l, s] = $(e.toString()), { pageNavigationTool: u = !0 } = ve(), { isSmallScreen: p } = Ce(), { localeMessages: m } = se();
2213
+ }, ai = () => {
2214
+ const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = ie(), [s, l] = $(e.toString()), { pageNavigationTool: u = !0 } = ve(), { isSmallScreen: h } = Ce(), { localeMessages: m } = se();
2208
2215
  k(() => {
2209
- s(e.toString());
2216
+ l(e.toString());
2210
2217
  }, [e]);
2211
- const v = N((S) => {
2212
- const C = S.target.value;
2213
- s(C);
2214
- }, []), h = N(async () => {
2215
- const S = a(l);
2216
- S.success || s(S.currentPage.toString());
2217
- }, [a, l, t]), _ = N(() => {
2218
- s(e.toString());
2218
+ const v = N((y) => {
2219
+ const C = y.target.value;
2220
+ l(C);
2221
+ }, []), p = N(async () => {
2222
+ const y = a(s);
2223
+ y.success || l(y.currentPage.toString());
2224
+ }, [a, s, t]), w = N(() => {
2225
+ l(e.toString());
2219
2226
  }, [e]), T = N(
2220
- (S) => {
2221
- S.key === "Enter" && h();
2227
+ (y) => {
2228
+ y.key === "Enter" && p();
2222
2229
  },
2223
- [h]
2230
+ [p]
2224
2231
  );
2225
2232
  return typeof u != "boolean" ? /* @__PURE__ */ i(
2226
2233
  u,
@@ -2233,22 +2240,22 @@ const Qo = ({ widths: e, heights: t }) => {
2233
2240
  changePage: n
2234
2241
  }
2235
2242
  ) : u ? /* @__PURE__ */ F("div", { className: mt["rp-paginate"], children: [
2236
- !p && /* @__PURE__ */ i(K, { content: m == null ? void 0 : m.previousPageTooltip, children: /* @__PURE__ */ i(
2243
+ !h && /* @__PURE__ */ i(K, { content: m == null ? void 0 : m.previousPageTooltip, children: /* @__PURE__ */ i(
2237
2244
  re,
2238
2245
  {
2239
2246
  onClick: r,
2240
2247
  "aria-label": m == null ? void 0 : m.previousPageTooltip,
2241
2248
  "aria-disabled": e === 1,
2242
- children: /* @__PURE__ */ i(ri, {})
2249
+ children: /* @__PURE__ */ i(oi, {})
2243
2250
  }
2244
2251
  ) }),
2245
2252
  /* @__PURE__ */ i(K, { content: m == null ? void 0 : m.currentPageTooltip, children: /* @__PURE__ */ i(
2246
2253
  ln,
2247
2254
  {
2248
2255
  onKeyDown: T,
2249
- onBlur: _,
2256
+ onBlur: w,
2250
2257
  onChange: v,
2251
- value: l,
2258
+ value: s,
2252
2259
  className: mt["rp-page-input"]
2253
2260
  }
2254
2261
  ) }),
@@ -2256,49 +2263,49 @@ const Qo = ({ widths: e, heights: t }) => {
2256
2263
  "/",
2257
2264
  t
2258
2265
  ] }),
2259
- !p && /* @__PURE__ */ i(K, { content: m == null ? void 0 : m.nextPageTooltip, children: /* @__PURE__ */ i(
2266
+ !h && /* @__PURE__ */ i(K, { content: m == null ? void 0 : m.nextPageTooltip, children: /* @__PURE__ */ i(
2260
2267
  re,
2261
2268
  {
2262
2269
  onClick: o,
2263
2270
  "aria-label": m == null ? void 0 : m.nextPageTooltip,
2264
2271
  "aria-disabled": e === t,
2265
- children: /* @__PURE__ */ i(oi, {})
2272
+ children: /* @__PURE__ */ i(ii, {})
2266
2273
  }
2267
2274
  ) })
2268
2275
  ] }) : null;
2269
2276
  };
2270
- var Rt = "Dialog", [xn, Gs] = Xr(Rt), [ai, ce] = xn(Rt), In = (e) => {
2277
+ var Rt = "Dialog", [xn, Vs] = Xr(Rt), [si, ce] = xn(Rt), In = (e) => {
2271
2278
  const {
2272
2279
  __scopeDialog: t,
2273
2280
  children: n,
2274
2281
  open: o,
2275
2282
  defaultOpen: r,
2276
2283
  onOpenChange: a,
2277
- modal: l = !0
2278
- } = e, s = B.useRef(null), u = B.useRef(null), [p = !1, m] = Qr({
2284
+ modal: s = !0
2285
+ } = e, l = B.useRef(null), u = B.useRef(null), [h = !1, m] = Qr({
2279
2286
  prop: o,
2280
2287
  defaultProp: r,
2281
2288
  onChange: a
2282
2289
  });
2283
2290
  return /* @__PURE__ */ i(
2284
- ai,
2291
+ si,
2285
2292
  {
2286
2293
  scope: t,
2287
- triggerRef: s,
2294
+ triggerRef: l,
2288
2295
  contentRef: u,
2289
2296
  contentId: ct(),
2290
2297
  titleId: ct(),
2291
2298
  descriptionId: ct(),
2292
- open: p,
2299
+ open: h,
2293
2300
  onOpenChange: m,
2294
2301
  onOpenToggle: B.useCallback(() => m((v) => !v), [m]),
2295
- modal: l,
2302
+ modal: s,
2296
2303
  children: n
2297
2304
  }
2298
2305
  );
2299
2306
  };
2300
2307
  In.displayName = Rt;
2301
- var Rn = "DialogTrigger", si = B.forwardRef(
2308
+ var Rn = "DialogTrigger", ci = B.forwardRef(
2302
2309
  (e, t) => {
2303
2310
  const { __scopeDialog: n, ...o } = e, r = ce(Rn, n), a = Pt(t, r.triggerRef);
2304
2311
  return /* @__PURE__ */ i(
@@ -2316,22 +2323,22 @@ var Rn = "DialogTrigger", si = B.forwardRef(
2316
2323
  );
2317
2324
  }
2318
2325
  );
2319
- si.displayName = Rn;
2320
- var Lt = "DialogPortal", [ci, Ln] = xn(Lt, {
2326
+ ci.displayName = Rn;
2327
+ var Lt = "DialogPortal", [li, Ln] = xn(Lt, {
2321
2328
  forceMount: void 0
2322
2329
  }), En = (e) => {
2323
2330
  const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, a = ce(Lt, t);
2324
- return /* @__PURE__ */ i(ci, { scope: t, forceMount: n, children: B.Children.map(o, (l) => /* @__PURE__ */ i(St, { present: n || a.open, children: /* @__PURE__ */ i(oo, { asChild: !0, container: r, children: l }) })) });
2331
+ return /* @__PURE__ */ i(li, { scope: t, forceMount: n, children: B.Children.map(o, (s) => /* @__PURE__ */ i(St, { present: n || a.open, children: /* @__PURE__ */ i(oo, { asChild: !0, container: r, children: s }) })) });
2325
2332
  };
2326
2333
  En.displayName = Lt;
2327
2334
  var Xe = "DialogOverlay", Nn = B.forwardRef(
2328
2335
  (e, t) => {
2329
2336
  const n = Ln(Xe, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = ce(Xe, e.__scopeDialog);
2330
- return a.modal ? /* @__PURE__ */ i(St, { present: o || a.open, children: /* @__PURE__ */ i(li, { ...r, ref: t }) }) : null;
2337
+ return a.modal ? /* @__PURE__ */ i(St, { present: o || a.open, children: /* @__PURE__ */ i(di, { ...r, ref: t }) }) : null;
2331
2338
  }
2332
2339
  );
2333
2340
  Nn.displayName = Xe;
2334
- var li = B.forwardRef(
2341
+ var di = B.forwardRef(
2335
2342
  (e, t) => {
2336
2343
  const { __scopeDialog: n, ...o } = e, r = ce(Xe, n);
2337
2344
  return (
@@ -2351,11 +2358,11 @@ var li = B.forwardRef(
2351
2358
  ), Ie = "DialogContent", On = B.forwardRef(
2352
2359
  (e, t) => {
2353
2360
  const n = Ln(Ie, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = ce(Ie, e.__scopeDialog);
2354
- return /* @__PURE__ */ i(St, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(di, { ...r, ref: t }) : /* @__PURE__ */ i(ui, { ...r, ref: t }) });
2361
+ return /* @__PURE__ */ i(St, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(ui, { ...r, ref: t }) : /* @__PURE__ */ i(pi, { ...r, ref: t }) });
2355
2362
  }
2356
2363
  );
2357
2364
  On.displayName = Ie;
2358
- var di = B.forwardRef(
2365
+ var ui = B.forwardRef(
2359
2366
  (e, t) => {
2360
2367
  const n = ce(Ie, e.__scopeDialog), o = B.useRef(null), r = Pt(t, n.contentRef, o);
2361
2368
  return B.useEffect(() => {
@@ -2370,12 +2377,12 @@ var di = B.forwardRef(
2370
2377
  trapFocus: n.open,
2371
2378
  disableOutsidePointerEvents: !0,
2372
2379
  onCloseAutoFocus: We(e.onCloseAutoFocus, (a) => {
2373
- var l;
2374
- a.preventDefault(), (l = n.triggerRef.current) == null || l.focus();
2380
+ var s;
2381
+ a.preventDefault(), (s = n.triggerRef.current) == null || s.focus();
2375
2382
  }),
2376
2383
  onPointerDownOutside: We(e.onPointerDownOutside, (a) => {
2377
- const l = a.detail.originalEvent, s = l.button === 0 && l.ctrlKey === !0;
2378
- (l.button === 2 || s) && a.preventDefault();
2384
+ const s = a.detail.originalEvent, l = s.button === 0 && s.ctrlKey === !0;
2385
+ (s.button === 2 || l) && a.preventDefault();
2379
2386
  }),
2380
2387
  onFocusOutside: We(
2381
2388
  e.onFocusOutside,
@@ -2384,7 +2391,7 @@ var di = B.forwardRef(
2384
2391
  }
2385
2392
  );
2386
2393
  }
2387
- ), ui = B.forwardRef(
2394
+ ), pi = B.forwardRef(
2388
2395
  (e, t) => {
2389
2396
  const n = ce(Ie, e.__scopeDialog), o = B.useRef(!1), r = B.useRef(!1);
2390
2397
  return /* @__PURE__ */ i(
@@ -2395,21 +2402,21 @@ var di = B.forwardRef(
2395
2402
  trapFocus: !1,
2396
2403
  disableOutsidePointerEvents: !1,
2397
2404
  onCloseAutoFocus: (a) => {
2398
- var l, s;
2399
- (l = e.onCloseAutoFocus) == null || l.call(e, a), a.defaultPrevented || (o.current || (s = n.triggerRef.current) == null || s.focus(), a.preventDefault()), o.current = !1, r.current = !1;
2405
+ var s, l;
2406
+ (s = e.onCloseAutoFocus) == null || s.call(e, a), a.defaultPrevented || (o.current || (l = n.triggerRef.current) == null || l.focus(), a.preventDefault()), o.current = !1, r.current = !1;
2400
2407
  },
2401
2408
  onInteractOutside: (a) => {
2402
- var u, p;
2409
+ var u, h;
2403
2410
  (u = e.onInteractOutside) == null || u.call(e, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (r.current = !0));
2404
- const l = a.target;
2405
- ((p = n.triggerRef.current) == null ? void 0 : p.contains(l)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
2411
+ const s = a.target;
2412
+ ((h = n.triggerRef.current) == null ? void 0 : h.contains(s)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
2406
2413
  }
2407
2414
  }
2408
2415
  );
2409
2416
  }
2410
2417
  ), Dn = B.forwardRef(
2411
2418
  (e, t) => {
2412
- const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...l } = e, s = ce(Ie, n), u = B.useRef(null), p = Pt(t, u);
2419
+ const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = e, l = ce(Ie, n), u = B.useRef(null), h = Pt(t, u);
2413
2420
  return no(), /* @__PURE__ */ F(fe, { children: [
2414
2421
  /* @__PURE__ */ i(
2415
2422
  ro,
@@ -2423,20 +2430,20 @@ var di = B.forwardRef(
2423
2430
  eo,
2424
2431
  {
2425
2432
  role: "dialog",
2426
- id: s.contentId,
2427
- "aria-describedby": s.descriptionId,
2428
- "aria-labelledby": s.titleId,
2429
- "data-state": Nt(s.open),
2430
- ...l,
2431
- ref: p,
2432
- onDismiss: () => s.onOpenChange(!1)
2433
+ id: l.contentId,
2434
+ "aria-describedby": l.descriptionId,
2435
+ "aria-labelledby": l.titleId,
2436
+ "data-state": Nt(l.open),
2437
+ ...s,
2438
+ ref: h,
2439
+ onDismiss: () => l.onOpenChange(!1)
2433
2440
  }
2434
2441
  )
2435
2442
  }
2436
2443
  ),
2437
2444
  /* @__PURE__ */ F(fe, { children: [
2438
- /* @__PURE__ */ i(hi, { titleId: s.titleId }),
2439
- /* @__PURE__ */ i(fi, { contentRef: u, descriptionId: s.descriptionId })
2445
+ /* @__PURE__ */ i(mi, { titleId: l.titleId }),
2446
+ /* @__PURE__ */ i(gi, { contentRef: u, descriptionId: l.descriptionId })
2440
2447
  ] })
2441
2448
  ] });
2442
2449
  }
@@ -2447,13 +2454,13 @@ var di = B.forwardRef(
2447
2454
  }
2448
2455
  );
2449
2456
  zn.displayName = Et;
2450
- var An = "DialogDescription", pi = B.forwardRef(
2457
+ var An = "DialogDescription", hi = B.forwardRef(
2451
2458
  (e, t) => {
2452
2459
  const { __scopeDialog: n, ...o } = e, r = ce(An, n);
2453
2460
  return /* @__PURE__ */ i(Ve.p, { id: r.descriptionId, ...o, ref: t });
2454
2461
  }
2455
2462
  );
2456
- pi.displayName = An;
2463
+ hi.displayName = An;
2457
2464
  var Fn = "DialogClose", kn = B.forwardRef(
2458
2465
  (e, t) => {
2459
2466
  const { __scopeDialog: n, ...o } = e, r = ce(Fn, n);
@@ -2472,11 +2479,11 @@ kn.displayName = Fn;
2472
2479
  function Nt(e) {
2473
2480
  return e ? "open" : "closed";
2474
2481
  }
2475
- var Wn = "DialogTitleWarning", [qs, Mn] = Jr(Wn, {
2482
+ var Wn = "DialogTitleWarning", [Us, Mn] = Jr(Wn, {
2476
2483
  contentName: Ie,
2477
2484
  titleName: Et,
2478
2485
  docsSlug: "dialog"
2479
- }), hi = ({ titleId: e }) => {
2486
+ }), mi = ({ titleId: e }) => {
2480
2487
  const t = Mn(Wn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2481
2488
 
2482
2489
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2485,14 +2492,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2485
2492
  return B.useEffect(() => {
2486
2493
  e && (document.getElementById(e) || console.error(n));
2487
2494
  }, [n, e]), null;
2488
- }, mi = "DialogDescriptionWarning", fi = ({ contentRef: e, descriptionId: t }) => {
2489
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mn(mi).contentName}}.`;
2495
+ }, fi = "DialogDescriptionWarning", gi = ({ contentRef: e, descriptionId: t }) => {
2496
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mn(fi).contentName}}.`;
2490
2497
  return B.useEffect(() => {
2491
2498
  var a;
2492
2499
  const r = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
2493
2500
  t && r && (document.getElementById(t) || console.warn(o));
2494
2501
  }, [o, e, t]), null;
2495
- }, gi = In, vi = En, wi = Nn, _i = On, bi = zn, Ci = kn;
2502
+ }, vi = In, wi = En, _i = Nn, bi = On, Ci = zn, Ti = kn;
2496
2503
  const xe = {
2497
2504
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2498
2505
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2501,33 +2508,33 @@ const xe = {
2501
2508
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2502
2509
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2503
2510
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2504
- }, Ti = () => {
2511
+ }, Pi = () => {
2505
2512
  const { pdfProperties: e } = J(), { container: t } = ge(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = co(), { localeMessages: r } = se(), a = W(() => {
2506
2513
  if (!e)
2507
2514
  return [];
2508
2515
  const {
2509
- fileSize: l,
2510
- filename: s,
2516
+ fileSize: s,
2517
+ filename: l,
2511
2518
  title: u,
2512
- author: p,
2519
+ author: h,
2513
2520
  subject: m,
2514
2521
  createdOn: v,
2515
- creator: h,
2516
- keywords: _,
2522
+ creator: p,
2523
+ keywords: w,
2517
2524
  modifiedOn: T,
2518
- pdfProducer: S,
2525
+ pdfProducer: y,
2519
2526
  pdfVersion: C,
2520
- pageCount: y
2527
+ pageCount: S
2521
2528
  } = e;
2522
2529
  return [
2523
- { label: r == null ? void 0 : r.propertiesFilenameLabel, value: s },
2524
- { label: r == null ? void 0 : r.propertiesFileSizeLabel, value: l },
2530
+ { label: r == null ? void 0 : r.propertiesFilenameLabel, value: l },
2531
+ { label: r == null ? void 0 : r.propertiesFileSizeLabel, value: s },
2525
2532
  { separate: !0 },
2526
2533
  { label: r == null ? void 0 : r.propertiesTitleLabel, value: u },
2527
- { label: r == null ? void 0 : r.propertiesAuthorLabel, value: p },
2534
+ { label: r == null ? void 0 : r.propertiesAuthorLabel, value: h },
2528
2535
  { label: r == null ? void 0 : r.propertiesSubjectLabel, value: m },
2529
- { label: r == null ? void 0 : r.propertiesKeywordLabel, value: _ },
2530
- { label: r == null ? void 0 : r.propertiesCreatorLabel, value: h },
2536
+ { label: r == null ? void 0 : r.propertiesKeywordLabel, value: w },
2537
+ { label: r == null ? void 0 : r.propertiesCreatorLabel, value: p },
2531
2538
  {
2532
2539
  label: r == null ? void 0 : r.propertiesCreateOnLabel,
2533
2540
  value: v ? Wt(v) : ""
@@ -2537,54 +2544,54 @@ const xe = {
2537
2544
  value: T ? Wt(T) : ""
2538
2545
  },
2539
2546
  { separate: !0 },
2540
- { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: S },
2547
+ { label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: y },
2541
2548
  { label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: C },
2542
- { label: r == null ? void 0 : r.propertiesPageCountLabel, value: y }
2549
+ { label: r == null ? void 0 : r.propertiesPageCountLabel, value: S }
2543
2550
  ];
2544
2551
  }, [e, r]);
2545
- return /* @__PURE__ */ i(gi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(vi, { container: t, children: /* @__PURE__ */ F("div", { className: xe["rp-dialog-wrapper"], children: [
2546
- /* @__PURE__ */ i(wi, { className: xe["rp-dialog-overlay"] }),
2547
- /* @__PURE__ */ F(_i, { className: xe["rp-document-dialog"], children: [
2548
- /* @__PURE__ */ i(bi, { className: xe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2549
- /* @__PURE__ */ i("div", { className: xe["rp-document-properties"], children: a.map((l, s) => /* @__PURE__ */ i("div", { children: l.separate ? /* @__PURE__ */ i("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ i(so, { label: l.label, value: l.value }) }, s)) }),
2550
- /* @__PURE__ */ i(Ci, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ i(ao, {}) })
2552
+ return /* @__PURE__ */ i(vi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(wi, { container: t, children: /* @__PURE__ */ F("div", { className: xe["rp-dialog-wrapper"], children: [
2553
+ /* @__PURE__ */ i(_i, { className: xe["rp-dialog-overlay"] }),
2554
+ /* @__PURE__ */ F(bi, { className: xe["rp-document-dialog"], children: [
2555
+ /* @__PURE__ */ i(Ci, { className: xe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2556
+ /* @__PURE__ */ i("div", { className: xe["rp-document-properties"], children: a.map((s, l) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ i(so, { label: s.label, value: s.value }) }, l)) }),
2557
+ /* @__PURE__ */ i(Ti, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ i(ao, {}) })
2551
2558
  ] })
2552
2559
  ] }) }) });
2553
- }, Pi = {
2560
+ }, Si = {
2554
2561
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2555
- }, nn = ".pdf", Si = (e) => URL.createObjectURL(e), yi = async (e) => {
2562
+ }, nn = ".pdf", yi = (e) => URL.createObjectURL(e), xi = async (e) => {
2556
2563
  const n = await (await fetch(e)).blob();
2557
- return Si(n);
2564
+ return yi(n);
2558
2565
  }, Hn = () => {
2559
2566
  const { filename: e, pdfSrc: t } = J(), { downloadFilename: n } = hr(), o = (a) => {
2560
- const l = n || a;
2561
- return l.endsWith(nn) ? l : `${l}${nn}`;
2567
+ const s = n || a;
2568
+ return s.endsWith(nn) ? s : `${s}${nn}`;
2562
2569
  };
2563
2570
  return { download: N(async () => {
2564
2571
  if (!e || !t)
2565
2572
  throw new Error("There is no PDF source to download");
2566
2573
  const a = document.createElement("a");
2567
- a.href = await yi(t), a.download = o(e), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2574
+ a.href = await xi(t), a.download = o(e), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2568
2575
  }, [e, t]) };
2569
2576
  }, $n = () => {
2570
2577
  const { downloadIcon: e } = pe();
2571
- return e || /* @__PURE__ */ i(mo, {});
2572
- }, Gn = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ i(K, { className: t, content: n == null ? void 0 : n.downloadFileTooltip, children: e }), xi = ({ download: e, localeMessages: t }) => /* @__PURE__ */ i(Gn, { localeMessages: t, children: /* @__PURE__ */ i(re, { onClick: e, "aria-label": t == null ? void 0 : t.downloadFileTooltip, children: /* @__PURE__ */ i($n, {}) }) }), Ii = ({ download: e, localeMessages: t }) => /* @__PURE__ */ i(be, { onClick: e, children: /* @__PURE__ */ F(Gn, { className: "rp-menu-item", localeMessages: t, children: [
2578
+ return e || /* @__PURE__ */ i(fo, {});
2579
+ }, Gn = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ i(K, { className: t, content: n == null ? void 0 : n.downloadFileTooltip, children: e }), Ii = ({ download: e, localeMessages: t }) => /* @__PURE__ */ i(Gn, { localeMessages: t, children: /* @__PURE__ */ i(re, { onClick: e, "aria-label": t == null ? void 0 : t.downloadFileTooltip, children: /* @__PURE__ */ i($n, {}) }) }), Ri = ({ download: e, localeMessages: t }) => /* @__PURE__ */ i(be, { onClick: e, children: /* @__PURE__ */ F(Gn, { className: "rp-menu-item", localeMessages: t, children: [
2573
2580
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i($n, {}) }),
2574
2581
  t == null ? void 0 : t.downloadFileLabel
2575
2582
  ] }) }), qn = () => {
2576
2583
  const { download: e } = Hn(), { downloadTool: t = !0 } = ve(), { isSmallScreen: n } = Ce(), { localeMessages: o } = se();
2577
- return t ? n ? /* @__PURE__ */ i(Ii, { download: e, localeMessages: o }) : typeof t == "function" ? /* @__PURE__ */ i(t, { download: e }) : t ? /* @__PURE__ */ i(xi, { download: e, localeMessages: o }) : null : null;
2584
+ return t ? n ? /* @__PURE__ */ i(Ri, { download: e, localeMessages: o }) : typeof t == "function" ? /* @__PURE__ */ i(t, { download: e }) : t ? /* @__PURE__ */ i(Ii, { download: e, localeMessages: o }) : null : null;
2578
2585
  }, Vn = () => {
2579
2586
  const { printIcon: e } = pe();
2580
- return e || /* @__PURE__ */ i(fo, {});
2581
- }, Un = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ i(K, { className: t, content: n == null ? void 0 : n.printTooltip, children: e }), Ri = ({ print: e, localeMessages: t }) => /* @__PURE__ */ i(Un, { localeMessages: t, children: /* @__PURE__ */ i(re, { onClick: e, "aria-label": t == null ? void 0 : t.printTooltip, children: /* @__PURE__ */ i(Vn, {}) }) }), Li = ({ print: e, localeMessages: t }) => /* @__PURE__ */ i(be, { onClick: e, children: /* @__PURE__ */ F(Un, { className: "rp-menu-item", localeMessages: t, children: [
2587
+ return e || /* @__PURE__ */ i(go, {});
2588
+ }, Un = ({ children: e, className: t, localeMessages: n }) => /* @__PURE__ */ i(K, { className: t, content: n == null ? void 0 : n.printTooltip, children: e }), Li = ({ print: e, localeMessages: t }) => /* @__PURE__ */ i(Un, { localeMessages: t, children: /* @__PURE__ */ i(re, { onClick: e, "aria-label": t == null ? void 0 : t.printTooltip, children: /* @__PURE__ */ i(Vn, {}) }) }), Ei = ({ print: e, localeMessages: t }) => /* @__PURE__ */ i(be, { onClick: e, children: /* @__PURE__ */ F(Un, { className: "rp-menu-item", localeMessages: t, children: [
2582
2589
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Vn, {}) }),
2583
2590
  t == null ? void 0 : t.printLabel
2584
2591
  ] }) }), Bn = () => {
2585
- const { print: e, cancel: t, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = tt(), { printTool: l = !0 } = ve(), { isSmallScreen: s } = Ce(), { localeMessages: u } = se();
2586
- return l ? s ? /* @__PURE__ */ i(Li, { print: e, localeMessages: u }) : typeof l == "function" ? /* @__PURE__ */ i(
2587
- l,
2592
+ const { print: e, cancel: t, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = tt(), { printTool: s = !0 } = ve(), { isSmallScreen: l } = Ce(), { localeMessages: u } = se();
2593
+ return s ? l ? /* @__PURE__ */ i(Ei, { print: e, localeMessages: u }) : typeof s == "function" ? /* @__PURE__ */ i(
2594
+ s,
2588
2595
  {
2589
2596
  print: e,
2590
2597
  cancel: t,
@@ -2593,55 +2600,55 @@ const xe = {
2593
2600
  setOnComplete: o,
2594
2601
  progress: a
2595
2602
  }
2596
- ) : l ? /* @__PURE__ */ i(Ri, { print: e, localeMessages: u }) : null : null;
2597
- }, Ei = {
2603
+ ) : s ? /* @__PURE__ */ i(Li, { print: e, localeMessages: u }) : null : null;
2604
+ }, Ni = {
2598
2605
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2599
- }, Ni = () => {
2600
- const { goToFirstPageIcon: e } = pe();
2601
- return e || /* @__PURE__ */ i(gn, { className: Ei["rp-go-to-Top"] });
2602
2606
  }, Oi = () => {
2607
+ const { goToFirstPageIcon: e } = pe();
2608
+ return e || /* @__PURE__ */ i(gn, { className: Ni["rp-go-to-Top"] });
2609
+ }, Di = () => {
2603
2610
  const { goToLastPageIcon: e } = pe();
2604
2611
  return e || /* @__PURE__ */ i(gn, {});
2605
- }, rn = { width: "100%" }, Di = () => {
2606
- const { goToPage: e, totalPages: t, focusedPage: n } = ie(), { jumpNavigationTool: o = !0 } = ve(), { localeMessages: r } = se(), a = W(() => n === 1, [n]), l = W(() => n === t, [n, t]), s = N(() => {
2612
+ }, rn = { width: "100%" }, zi = () => {
2613
+ const { goToPage: e, totalPages: t, focusedPage: n } = ie(), { jumpNavigationTool: o = !0 } = ve(), { localeMessages: r } = se(), a = W(() => n === 1, [n]), s = W(() => n === t, [n, t]), l = N(() => {
2607
2614
  e(1);
2608
2615
  }, [e]), u = N(() => {
2609
2616
  e(t);
2610
2617
  }, [e, t]);
2611
2618
  return o ? /* @__PURE__ */ F(Ke, { children: [
2612
- /* @__PURE__ */ i(be, { onClick: s, children: /* @__PURE__ */ i(K, { content: r == null ? void 0 : r.firstPageTooltip, style: rn, children: /* @__PURE__ */ F("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2613
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ni, {}) }),
2619
+ /* @__PURE__ */ i(be, { onClick: l, children: /* @__PURE__ */ i(K, { content: r == null ? void 0 : r.firstPageTooltip, style: rn, children: /* @__PURE__ */ F("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2620
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Oi, {}) }),
2614
2621
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2615
2622
  ] }) }) }),
2616
- /* @__PURE__ */ i(be, { onClick: u, children: /* @__PURE__ */ i(K, { content: r == null ? void 0 : r.lastPageTooltip, style: rn, children: /* @__PURE__ */ F("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2617
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Oi, {}) }),
2623
+ /* @__PURE__ */ i(be, { onClick: u, children: /* @__PURE__ */ i(K, { content: r == null ? void 0 : r.lastPageTooltip, style: rn, children: /* @__PURE__ */ F("div", { className: "rp-menu-item", "aria-disabled": s, children: [
2624
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Di, {}) }),
2618
2625
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2619
2626
  ] }) }) }),
2620
2627
  /* @__PURE__ */ i(yt, {})
2621
2628
  ] }) : null;
2622
- }, zi = () => {
2629
+ }, Ai = () => {
2623
2630
  const { container: e } = ge(), { isSmallScreen: t } = Ce(), {
2624
2631
  openFileTool: n,
2625
2632
  downloadTool: o,
2626
2633
  documentProperties: r,
2627
2634
  scrollModeTool: a,
2628
- rotateTool: l,
2629
- selectionModeTool: s,
2635
+ rotateTool: s,
2636
+ selectionModeTool: l,
2630
2637
  jumpNavigationTool: u,
2631
- printTool: p,
2638
+ printTool: h,
2632
2639
  fullscreenTool: m
2633
2640
  } = ve(), { localeMessages: v } = se();
2634
2641
  return W(() => {
2635
- const _ = u || l || s || a || r;
2642
+ const w = u || s || l || a || r;
2636
2643
  let T = !1;
2637
- return t && (T = !(!n && !o && !p && !m)), _ || T;
2644
+ return t && (T = !(!n && !o && !h && !m)), w || T;
2638
2645
  }, [
2639
2646
  n,
2640
2647
  o,
2641
2648
  r,
2642
2649
  a,
2643
- l,
2644
2650
  s,
2651
+ l,
2645
2652
  u,
2646
2653
  t
2647
2654
  ]) ? /* @__PURE__ */ F(lo, { children: [
@@ -2650,7 +2657,7 @@ const xe = {
2650
2657
  {
2651
2658
  container: e,
2652
2659
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: v == null ? void 0 : v.moreOptionTooltip, children: /* @__PURE__ */ i(re, { "aria-label": v == null ? void 0 : v.moreOptionTooltip, children: /* @__PURE__ */ i(Kr, {}) }) }) }),
2653
- children: /* @__PURE__ */ F("div", { className: Pi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2660
+ children: /* @__PURE__ */ F("div", { className: Si["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2654
2661
  t && /* @__PURE__ */ F(Ke, { children: [
2655
2662
  /* @__PURE__ */ i(hn, {}),
2656
2663
  /* @__PURE__ */ i(qn, {}),
@@ -2658,17 +2665,18 @@ const xe = {
2658
2665
  /* @__PURE__ */ i(fn, {}),
2659
2666
  /* @__PURE__ */ i(yt, {})
2660
2667
  ] }),
2661
- /* @__PURE__ */ i(Di, {}),
2668
+ /* @__PURE__ */ i(zi, {}),
2662
2669
  /* @__PURE__ */ i(po, {}),
2663
- /* @__PURE__ */ i(go, {}),
2670
+ /* @__PURE__ */ i(vo, {}),
2664
2671
  /* @__PURE__ */ i(ho, {}),
2672
+ /* @__PURE__ */ i(mo, {}),
2665
2673
  /* @__PURE__ */ i(uo, {})
2666
2674
  ] })
2667
2675
  }
2668
2676
  ),
2669
- /* @__PURE__ */ i(Ti, {})
2677
+ /* @__PURE__ */ i(Pi, {})
2670
2678
  ] }) : null;
2671
- }, Ai = () => {
2679
+ }, Fi = () => {
2672
2680
  const { isSmallScreen: e } = Ce();
2673
2681
  return /* @__PURE__ */ F(fe, { children: [
2674
2682
  /* @__PURE__ */ i(jr, {}),
@@ -2678,7 +2686,7 @@ const xe = {
2678
2686
  /* @__PURE__ */ i(Bn, {}),
2679
2687
  /* @__PURE__ */ i(fn, {})
2680
2688
  ] }),
2681
- /* @__PURE__ */ i(zi, {})
2689
+ /* @__PURE__ */ i(Ai, {})
2682
2690
  ] });
2683
2691
  }, Ee = {
2684
2692
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2686,29 +2694,29 @@ const xe = {
2686
2694
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2687
2695
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2688
2696
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2689
- }, Fi = 25, ft = 1e3, ki = [50, 75, 100, 125, 150, 200, 300, 400], Wi = () => {
2697
+ }, ki = 25, ft = 1e3, Wi = [50, 75, 100, 125, 150, 200, 300, 400], Mi = () => {
2690
2698
  const { zoomInIcon: e } = pe();
2691
- return e || /* @__PURE__ */ i(vo, {});
2692
- }, Mi = () => {
2693
- const { zoomOutIcon: e } = pe();
2694
2699
  return e || /* @__PURE__ */ i(wo, {});
2695
2700
  }, Hi = () => {
2696
- const { zoomLevel: e, setZoomLevel: t } = Qe(), { container: n, pagesRef: o } = ge(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = ie(), { rotate: l } = Ge(), { pages: s } = J(), { isSmallScreen: u } = Ce(), { localeMessages: p } = se(), { viewMode: m } = ze(), v = N(() => {
2701
+ const { zoomOutIcon: e } = pe();
2702
+ return e || /* @__PURE__ */ i(_o, {});
2703
+ }, $i = () => {
2704
+ const { zoomLevel: e, setZoomLevel: t } = Qe(), { container: n, contentRef: o } = ge(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = ie(), { rotate: s } = Ge(), { pages: l } = J(), { isSmallScreen: u } = Ce(), { localeMessages: h } = se(), { viewMode: m } = ze(), v = N(() => {
2697
2705
  t((d) => {
2698
2706
  const f = Math.floor(d / 25) * 25;
2699
2707
  return Math.min(f + 25, ft);
2700
2708
  });
2701
- }, [t]), h = N(() => {
2709
+ }, [t]), p = N(() => {
2702
2710
  t((d) => {
2703
2711
  const f = Math.ceil(d / 25) * 25;
2704
2712
  return Math.min(f - 25, ft);
2705
2713
  });
2706
- }, [t]), _ = W(() => e === Fi, [e]), T = W(() => e === ft, [e]), S = W(() => {
2714
+ }, [t]), w = W(() => e === ki, [e]), T = W(() => e === ft, [e]), y = W(() => {
2707
2715
  var d;
2708
- return (d = s.get(a)) == null ? void 0 : d.page.getViewport({ scale: 1, rotation: l });
2709
- }, [s, a, l]), C = N(
2716
+ return (d = l.get(a)) == null ? void 0 : d.page.getViewport({ scale: 1, rotation: s });
2717
+ }, [l, a, s]), C = N(
2710
2718
  (d) => {
2711
- const f = ((S == null ? void 0 : S.width) || 0) + 2 * Mt, g = ((S == null ? void 0 : S.height) || 0) + 2 * Mt, c = (o == null ? void 0 : o.clientWidth) || 0, b = (o == null ? void 0 : o.clientHeight) || 0, w = _o(
2719
+ const f = ((y == null ? void 0 : y.width) || 0) + 2 * Mt, g = ((y == null ? void 0 : y.height) || 0) + 2 * Mt, c = (o == null ? void 0 : o.clientWidth) || 0, b = (o == null ? void 0 : o.clientHeight) || 0, _ = bo(
2712
2720
  d,
2713
2721
  c,
2714
2722
  b,
@@ -2716,34 +2724,34 @@ const xe = {
2716
2724
  g,
2717
2725
  m
2718
2726
  );
2719
- t(w);
2727
+ t(_);
2720
2728
  },
2721
- [t, S, o]
2722
- ), y = N(
2729
+ [t, y]
2730
+ ), S = N(
2723
2731
  (d) => {
2724
2732
  typeof d == "number" ? t(d) : C(d);
2725
2733
  },
2726
2734
  [t, C]
2727
2735
  );
2728
2736
  return typeof r != "boolean" ? /* @__PURE__ */ i(r, { zoomLevel: e, setZoomLevel: t }) : r ? /* @__PURE__ */ F("div", { className: Ee["rp-zoom-wrapper"], children: [
2729
- /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.zoomOutTooltip, children: /* @__PURE__ */ i(
2737
+ /* @__PURE__ */ i(K, { content: h == null ? void 0 : h.zoomOutTooltip, children: /* @__PURE__ */ i(
2730
2738
  re,
2731
2739
  {
2732
- disabled: _,
2733
- onClick: h,
2734
- "aria-label": p == null ? void 0 : p.zoomOutTooltip,
2735
- children: /* @__PURE__ */ i(Mi, {})
2740
+ disabled: w,
2741
+ onClick: p,
2742
+ "aria-label": h == null ? void 0 : h.zoomOutTooltip,
2743
+ children: /* @__PURE__ */ i(Hi, {})
2736
2744
  }
2737
2745
  ) }),
2738
2746
  !u && /* @__PURE__ */ i(
2739
2747
  mn,
2740
2748
  {
2741
2749
  container: n,
2742
- triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.zoomSelectTooltip, children: /* @__PURE__ */ F(
2750
+ triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(K, { content: h == null ? void 0 : h.zoomSelectTooltip, children: /* @__PURE__ */ F(
2743
2751
  re,
2744
2752
  {
2745
2753
  className: Ee["rp-current-zoom-wrapper"],
2746
- "aria-label": p == null ? void 0 : p.zoomSelectTooltip,
2754
+ "aria-label": h == null ? void 0 : h.zoomSelectTooltip,
2747
2755
  children: [
2748
2756
  /* @__PURE__ */ i("span", { className: Ee["rp-current-zoom-text"], children: e }),
2749
2757
  /* @__PURE__ */ i("span", { className: Ee["rp-current-zoom-text"], children: "%" }),
@@ -2755,25 +2763,25 @@ const xe = {
2755
2763
  align: "center",
2756
2764
  children: /* @__PURE__ */ F("div", { className: Ee["rp-zoom-dropdown-content"], children: [
2757
2765
  /* @__PURE__ */ F(Ke, { children: [
2758
- /* @__PURE__ */ i(be, { onClick: () => y(at.ACTUAL), children: p == null ? void 0 : p.zoomActualSize }),
2759
- /* @__PURE__ */ i(be, { onClick: () => y(at.PAGE_FIT), children: p == null ? void 0 : p.zoomPageFit }),
2760
- /* @__PURE__ */ i(be, { onClick: () => y(at.PAGE_WIDTH), children: p == null ? void 0 : p.zoomPageWidth })
2766
+ /* @__PURE__ */ i(be, { onClick: () => S(at.ACTUAL), children: h == null ? void 0 : h.zoomActualSize }),
2767
+ /* @__PURE__ */ i(be, { onClick: () => S(at.PAGE_FIT), children: h == null ? void 0 : h.zoomPageFit }),
2768
+ /* @__PURE__ */ i(be, { onClick: () => S(at.PAGE_WIDTH), children: h == null ? void 0 : h.zoomPageWidth })
2761
2769
  ] }),
2762
2770
  /* @__PURE__ */ i(yt, {}),
2763
- /* @__PURE__ */ i(Ke, { children: ki.map((d) => /* @__PURE__ */ F(be, { onClick: () => y(d), children: [
2771
+ /* @__PURE__ */ i(Ke, { children: Wi.map((d) => /* @__PURE__ */ F(be, { onClick: () => S(d), children: [
2764
2772
  d,
2765
2773
  " %"
2766
2774
  ] }, d)) })
2767
2775
  ] })
2768
2776
  }
2769
2777
  ),
2770
- /* @__PURE__ */ i(K, { content: p == null ? void 0 : p.zoomInTooltip, children: /* @__PURE__ */ i(
2778
+ /* @__PURE__ */ i(K, { content: h == null ? void 0 : h.zoomInTooltip, children: /* @__PURE__ */ i(
2771
2779
  re,
2772
2780
  {
2773
2781
  disabled: T,
2774
2782
  onClick: v,
2775
- "aria-label": p == null ? void 0 : p.zoomInTooltip,
2776
- children: /* @__PURE__ */ i(Wi, {})
2783
+ "aria-label": h == null ? void 0 : h.zoomInTooltip,
2784
+ children: /* @__PURE__ */ i(Mi, {})
2777
2785
  }
2778
2786
  ) })
2779
2787
  ] }) : null;
@@ -2802,59 +2810,59 @@ const xe = {
2802
2810
  ] });
2803
2811
  }, an = () => {
2804
2812
  const { searchIcon: e } = pe();
2805
- return e || /* @__PURE__ */ i(bo, {});
2806
- }, $i = () => {
2813
+ return e || /* @__PURE__ */ i(Co, {});
2814
+ }, Gi = () => {
2807
2815
  const { container: e } = ge(), [t, n] = $(!1), { pdf: o } = J(), [r, a] = $(null), {
2808
- searchOptions: l,
2809
- setSearchOptions: s,
2816
+ searchOptions: s,
2817
+ setSearchOptions: l,
2810
2818
  loading: u,
2811
- setSearch: p,
2819
+ setSearch: h,
2812
2820
  totalMatches: m,
2813
2821
  currentMatchPosition: v,
2814
- nextMatch: h,
2815
- prevMatch: _,
2822
+ nextMatch: p,
2823
+ prevMatch: w,
2816
2824
  search: T
2817
- } = xt(), { searchTool: S = !0 } = ve(), [C, y] = $(T), { localeMessages: d } = se(), { isSmallScreen: f } = Ce(), g = N(() => {
2825
+ } = xt(), { searchTool: y = !0 } = ve(), [C, S] = $(T), { localeMessages: d } = se(), { isSmallScreen: f } = Ce(), g = N(() => {
2818
2826
  n(!0);
2819
2827
  }, []), c = N(() => {
2820
- p(""), y(""), n(!1);
2821
- }, [p]), b = (I) => {
2828
+ h(""), S(""), n(!1);
2829
+ }, [h]), b = (I) => {
2822
2830
  const O = I.key === "Enter", M = I.key === " ";
2823
2831
  (O || M) && c();
2824
- }, w = N(
2832
+ }, _ = N(
2825
2833
  (I) => {
2826
2834
  I.key === "Escape" && t && c();
2827
2835
  },
2828
2836
  [t]
2829
2837
  ), P = N(
2830
2838
  (I) => {
2831
- I.shiftKey && I.key === "Enter" ? _() : I.key === "Enter" && T !== C ? p(C) : I.key === "Enter" && h();
2839
+ I.shiftKey && I.key === "Enter" ? w() : I.key === "Enter" && T !== C ? h(C) : I.key === "Enter" && p();
2832
2840
  },
2833
- [C, _, h, p, T]
2841
+ [C, w, p, h, T]
2834
2842
  );
2835
- k(() => (window.addEventListener("keydown", w), () => {
2836
- window.removeEventListener("keydown", w);
2837
- }), [w]), k(() => {
2843
+ k(() => (window.addEventListener("keydown", _), () => {
2844
+ window.removeEventListener("keydown", _);
2845
+ }), [_]), k(() => {
2838
2846
  r && r.focus();
2839
2847
  }, [r]);
2840
2848
  const E = N((I) => {
2841
- y(I.target.value);
2849
+ S(I.target.value);
2842
2850
  }, []), x = N(() => {
2843
- y(""), p("");
2844
- }, [p]), R = W(() => `${v} / ${m}`, [v, m]), { wholeWords: D, matchCase: z } = W(() => l, [l]), A = N(
2851
+ S(""), h("");
2852
+ }, [h]), R = W(() => `${v} / ${m}`, [v, m]), { wholeWords: D, matchCase: z } = W(() => s, [s]), A = N(
2845
2853
  (I) => {
2846
- s((O) => ({ ...O, matchCase: I }));
2854
+ l((O) => ({ ...O, matchCase: I }));
2847
2855
  },
2848
- [s]
2856
+ [l]
2849
2857
  ), L = N(
2850
2858
  (I) => {
2851
- s((O) => ({ ...O, wholeWords: I }));
2859
+ l((O) => ({ ...O, wholeWords: I }));
2852
2860
  },
2853
- [s]
2861
+ [l]
2854
2862
  );
2855
2863
  return k(() => {
2856
2864
  c();
2857
- }, [o, c]), S ? /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(
2865
+ }, [o, c]), y ? /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i(
2858
2866
  Mr,
2859
2867
  {
2860
2868
  open: t,
@@ -2873,7 +2881,7 @@ const xe = {
2873
2881
  placeholder: d == null ? void 0 : d.searchInputPlaceholder,
2874
2882
  className: Y["rp-search-input"],
2875
2883
  ref: a,
2876
- children: !!C && /* @__PURE__ */ i("span", { className: Y["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(Co, {}) })
2884
+ children: !!C && /* @__PURE__ */ i("span", { className: Y["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(To, {}) })
2877
2885
  }
2878
2886
  ) }),
2879
2887
  u ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Ct, { className: Y["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: R }),
@@ -2894,15 +2902,15 @@ const xe = {
2894
2902
  ] })
2895
2903
  }
2896
2904
  ) }) : null;
2897
- }, Gi = "_loading_vpexk_1", Ne = {
2905
+ }, qi = "_loading_vpexk_1", Ne = {
2898
2906
  "rp-loading-overlay": "_rp-loading-overlay_vpexk_1",
2899
2907
  "rp-loading-modal": "_rp-loading-modal_vpexk_14",
2900
2908
  "rp-loading-title": "_rp-loading-title_vpexk_27",
2901
2909
  "rp-loading-progress-bar": "_rp-loading-progress-bar_vpexk_35",
2902
2910
  "rp-loading-progress": "_rp-loading-progress_vpexk_35",
2903
2911
  "rp-loading-cancel-button": "_rp-loading-cancel-button_vpexk_55",
2904
- loading: Gi
2905
- }, qi = ({ percentage: e }) => {
2912
+ loading: qi
2913
+ }, Vi = ({ percentage: e }) => {
2906
2914
  const { cancel: t } = tt(), { localeMessages: n } = se();
2907
2915
  return e < 1 ? null : /* @__PURE__ */ i("div", { className: ne(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ F("div", { className: ne(Ne["rp-loading-modal"]), children: [
2908
2916
  /* @__PURE__ */ F("div", { className: ne(Ne["rp-loading-title"]), children: [
@@ -2918,18 +2926,18 @@ const xe = {
2918
2926
  ) }),
2919
2927
  /* @__PURE__ */ i("button", { className: ne(Ne["rp-loading-cancel-button"]), onClick: t, children: n == null ? void 0 : n.printCancelLabel })
2920
2928
  ] }) });
2921
- }, Vi = $e((e, t) => {
2922
- const { showPrintProgress: n } = ve(), { progress: o } = tt(), { isSmallScreen: r } = Ce(), { percentage: a } = o || {}, l = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2929
+ }, Ui = $e((e, t) => {
2930
+ const { showPrintProgress: n } = ve(), { progress: o } = tt(), { isSmallScreen: r } = Ce(), { percentage: a } = o || {}, s = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2923
2931
  return /* @__PURE__ */ F("div", { children: [
2924
- /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: t, className: Fe["rp-toolbar-content"], children: /* @__PURE__ */ F("div", { className: Fe["rp-toolbar-wrapper"], style: l(), children: [
2932
+ /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: t, className: Fe["rp-toolbar-content"], children: /* @__PURE__ */ F("div", { className: Fe["rp-toolbar-wrapper"], style: s(), children: [
2925
2933
  /* @__PURE__ */ F("div", { "data-rp": "topBarLeft", className: Fe["rp-toolbar-start"], children: [
2926
- /* @__PURE__ */ i($i, {}),
2927
- /* @__PURE__ */ i(ii, {})
2934
+ /* @__PURE__ */ i(Gi, {}),
2935
+ /* @__PURE__ */ i(ai, {})
2928
2936
  ] }),
2929
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i(Hi, {}) }),
2930
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Ai, {}) })
2937
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i($i, {}) }),
2938
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Fi, {}) })
2931
2939
  ] }) }),
2932
- n && a ? /* @__PURE__ */ i(qi, { percentage: a }) : null
2940
+ n && a ? /* @__PURE__ */ i(Vi, { percentage: a }) : null
2933
2941
  ] });
2934
2942
  }), gt = {
2935
2943
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
@@ -2942,8 +2950,8 @@ const xe = {
2942
2950
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
2943
2951
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2944
2952
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2945
- }, Ui = (e) => {
2946
- const { thumbnailSrc: t, pageNumber: n, isFocused: o, viewport: r } = e, { goToPage: a } = ie(), l = W(() => o ? ke["rp-thumbnail-active"] : "", [o]), s = W(() => ({
2953
+ }, Bi = (e) => {
2954
+ const { thumbnailSrc: t, pageNumber: n, isFocused: o, viewport: r } = e, { goToPage: a } = ie(), s = W(() => o ? ke["rp-thumbnail-active"] : "", [o]), l = W(() => ({
2947
2955
  width: Math.round(r.width),
2948
2956
  height: Math.round(r.height)
2949
2957
  }), [r]), u = N(() => {
@@ -2956,12 +2964,12 @@ const xe = {
2956
2964
  id: `page-${n}`,
2957
2965
  className: ke["rp-thumbnail-wrapper"],
2958
2966
  children: [
2959
- /* @__PURE__ */ i("div", { className: ne(l, ke["rp-thumbnail"]), children: t ? /* @__PURE__ */ i(
2967
+ /* @__PURE__ */ i("div", { className: ne(s, ke["rp-thumbnail"]), children: t ? /* @__PURE__ */ i(
2960
2968
  "img",
2961
2969
  {
2962
2970
  src: t,
2963
- width: s.width,
2964
- height: s.height,
2971
+ width: l.width,
2972
+ height: l.height,
2965
2973
  alt: "thumbnail"
2966
2974
  }
2967
2975
  ) : /* @__PURE__ */ i(
@@ -2969,8 +2977,8 @@ const xe = {
2969
2977
  {
2970
2978
  className: ke["rp-thumbnail-loader"],
2971
2979
  style: {
2972
- width: `${s.width}px`,
2973
- height: `${s.height}px`
2980
+ width: `${l.width}px`,
2981
+ height: `${l.height}px`
2974
2982
  },
2975
2983
  children: /* @__PURE__ */ i(Ct, {})
2976
2984
  }
@@ -2982,55 +2990,55 @@ const xe = {
2982
2990
  }, sn = {
2983
2991
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2984
2992
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2985
- }, Bi = 16, Zi = (e, t) => {
2993
+ }, Zi = 16, ji = (e, t) => {
2986
2994
  const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
2987
- e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - Bi);
2988
- }, ji = $e((e, t) => {
2989
- const { show: n } = e, { focusedPage: o, totalPages: r } = ie(), { thumbnailPages: a, addPage: l, thumbnailLength: s, addToPage: u } = Cn(), p = H(null), m = H(1);
2990
- cn(t, () => p.current);
2991
- const v = W(() => Object.values(a), [a]), h = N(() => {
2992
- const _ = s + 1;
2993
- _ <= r && l(_);
2994
- }, [l, r, s]);
2995
+ e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - Zi);
2996
+ }, Ki = $e((e, t) => {
2997
+ const { show: n } = e, { focusedPage: o, totalPages: r } = ie(), { thumbnailPages: a, addPage: s, thumbnailLength: l, addToPage: u } = Cn(), h = H(null), m = H(1);
2998
+ cn(t, () => h.current);
2999
+ const v = W(() => Object.values(a), [a]), p = N(() => {
3000
+ const w = l + 1;
3001
+ w <= r && s(w);
3002
+ }, [s, r, l]);
2995
3003
  return k(() => {
2996
- o > s ? u(o) : n && m.current !== o && (Zi(p.current, o), m.current = o);
2997
- }, [o, s, u, n, v]), fr(p.current, h), /* @__PURE__ */ i("div", { ref: p, className: sn["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: sn["rp-thumbnails"], children: n ? v.map((_, T) => {
2998
- var S, C;
3004
+ o > l ? u(o) : n && m.current !== o && (ji(h.current, o), m.current = o);
3005
+ }, [o, l, u, n, v]), fr(h.current, p), /* @__PURE__ */ i("div", { ref: h, className: sn["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: sn["rp-thumbnails"], children: n ? v.map((w, T) => {
3006
+ var y, C;
2999
3007
  return /* @__PURE__ */ i(
3000
- Ui,
3008
+ Bi,
3001
3009
  {
3002
- isFocused: o === ((S = _.page) == null ? void 0 : S.pageNumber),
3003
- pageNumber: (C = _.page) == null ? void 0 : C.pageNumber,
3004
- thumbnailSrc: _.thumbnailSrc,
3005
- loading: _.loading,
3006
- viewport: _.viewport
3010
+ isFocused: o === ((y = w.page) == null ? void 0 : y.pageNumber),
3011
+ pageNumber: (C = w.page) == null ? void 0 : C.pageNumber,
3012
+ thumbnailSrc: w.thumbnailSrc,
3013
+ loading: w.loading,
3014
+ viewport: w.viewport
3007
3015
  },
3008
3016
  T
3009
3017
  );
3010
3018
  }) : null }) });
3011
- }), Ki = () => {
3019
+ }), Xi = () => {
3012
3020
  const { thumbnailIcon: e } = pe();
3013
3021
  return e || /* @__PURE__ */ i(mr, {});
3014
- }, Xi = () => {
3015
- const { active: e, setActive: t } = Cn(), [n, o] = $(200), r = H(null), { thumbnailTool: a, sidebarEnable: l } = ve(), { localeMessages: s } = se(), u = N(() => {
3022
+ }, Yi = () => {
3023
+ const { active: e, setActive: t } = Cn(), [n, o] = $(200), r = H(null), { thumbnailTool: a, sidebarEnable: s } = ve(), { localeMessages: l } = se(), u = N(() => {
3016
3024
  t((m) => !m);
3017
- }, []), p = W(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: u, active: e }) : a ? /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
3025
+ }, []), h = W(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: u, active: e }) : a ? /* @__PURE__ */ i(K, { content: l == null ? void 0 : l.thumbnailTooltip, children: /* @__PURE__ */ i(
3018
3026
  re,
3019
3027
  {
3020
3028
  onClick: u,
3021
3029
  active: e,
3022
- "aria-label": s == null ? void 0 : s.thumbnailTooltip,
3023
- children: /* @__PURE__ */ i(Ki, {})
3030
+ "aria-label": l == null ? void 0 : l.thumbnailTooltip,
3031
+ children: /* @__PURE__ */ i(Xi, {})
3024
3032
  }
3025
- ) }) : null, [a, e, u, s]);
3026
- return /* @__PURE__ */ i(fe, { children: l && /* @__PURE__ */ F(
3033
+ ) }) : null, [a, e, u, l]);
3034
+ return /* @__PURE__ */ i(fe, { children: s && /* @__PURE__ */ F(
3027
3035
  "div",
3028
3036
  {
3029
3037
  style: { "--rp-thumbnail-width": `${n}px` },
3030
3038
  className: gt["rp-sidebar-content-wrapper"],
3031
3039
  "data-rp": "sidebar",
3032
3040
  children: [
3033
- /* @__PURE__ */ i("div", { className: gt["rp-sidebar-content"], children: p }),
3041
+ /* @__PURE__ */ i("div", { className: gt["rp-sidebar-content"], children: h }),
3034
3042
  /* @__PURE__ */ F(
3035
3043
  "div",
3036
3044
  {
@@ -3038,7 +3046,7 @@ const xe = {
3038
3046
  hidden: !e,
3039
3047
  className: gt["rp-thumbnails-wrapper"],
3040
3048
  children: [
3041
- /* @__PURE__ */ i(ji, { show: e, ref: r }),
3049
+ /* @__PURE__ */ i(Ki, { show: e, ref: r }),
3042
3050
  /* @__PURE__ */ i(gr, { onWidthChange: o, thumbnailRef: r })
3043
3051
  ]
3044
3052
  }
@@ -3054,9 +3062,9 @@ const xe = {
3054
3062
  "rp-loader": "_rp-loader_gz5nb_52",
3055
3063
  "rp-theme-variables": "_rp-theme-variables_gz5nb_56",
3056
3064
  "rp-dark-mode": "_rp-dark-mode_gz5nb_161"
3057
- }, Yi = $e(
3065
+ }, Ji = $e(
3058
3066
  (e, t) => {
3059
- const { children: n, toolbarRef: o, style: r, className: a } = e, { customVariables: l, customDarkVariables: s } = Pr(), { darkMode: u } = rr();
3067
+ const { children: n, toolbarRef: o, style: r, className: a } = e, { customVariables: s, customDarkVariables: l } = Pr(), { darkMode: u } = rr();
3060
3068
  return /* @__PURE__ */ i(
3061
3069
  "div",
3062
3070
  {
@@ -3069,40 +3077,40 @@ const xe = {
3069
3077
  ),
3070
3078
  style: {
3071
3079
  "--rp-toolbar-height": `${(o == null ? void 0 : o.clientHeight) || 48}px`,
3072
- ...l,
3073
- ...u ? s : {},
3080
+ ...s,
3081
+ ...u ? l : {},
3074
3082
  ...r
3075
3083
  },
3076
3084
  children: n
3077
3085
  }
3078
3086
  );
3079
3087
  }
3080
- ), Vs = $e((e, t) => {
3088
+ ), Bs = $e((e, t) => {
3081
3089
  const {
3082
3090
  children: n,
3083
3091
  slots: o,
3084
3092
  icons: r,
3085
3093
  style: a,
3086
- className: l,
3087
- mobileWidth: s,
3094
+ className: s,
3095
+ mobileWidth: l,
3088
3096
  onLoaded: u,
3089
- cleanupOnLoaded: p,
3097
+ cleanupOnLoaded: h,
3090
3098
  onLayoutWidthChange: m
3091
- } = e, [v, h] = $(null), { setContainer: _, setContentRef: T } = ge(), { loading: S } = J(), { LoaderImageComponent: C } = pn();
3099
+ } = e, [v, p] = $(null), { setContainer: w, setContentRef: T } = ge(), { loading: y } = J(), { LoaderImageComponent: C } = pn();
3092
3100
  return k(() => (u && u(), () => {
3093
- p && p();
3094
- }), [u, p]), /* @__PURE__ */ i(Yi, { toolbarRef: v, ref: t, children: /* @__PURE__ */ i(Tr, { mobileWidth: s, onLayoutWidthChange: m, children: /* @__PURE__ */ i(vr, { slots: o, children: /* @__PURE__ */ i(wr, { icons: r, children: /* @__PURE__ */ F(_r, { getContainerRef: _, style: a, className: l, children: [
3101
+ h && h();
3102
+ }), [u, h]), /* @__PURE__ */ i(Ji, { toolbarRef: v, ref: t, children: /* @__PURE__ */ i(Tr, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ i(vr, { slots: o, children: /* @__PURE__ */ i(wr, { icons: r, children: /* @__PURE__ */ F(_r, { getContainerRef: w, style: a, className: s, children: [
3095
3103
  /* @__PURE__ */ F(br, { children: [
3096
3104
  /* @__PURE__ */ F("div", { className: _e["rp-layout"], children: [
3097
- /* @__PURE__ */ i(Vi, { ref: h }),
3105
+ /* @__PURE__ */ i(Ui, { ref: p }),
3098
3106
  /* @__PURE__ */ F("div", { className: _e["rp-content"], children: [
3099
- /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(Xi, {}) }),
3107
+ /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(Yi, {}) }),
3100
3108
  /* @__PURE__ */ i("div", { ref: T, className: _e["rp-pages"], children: n })
3101
3109
  ] })
3102
3110
  ] }),
3103
3111
  /* @__PURE__ */ i(Cr, {})
3104
3112
  ] }),
3105
- S ? /* @__PURE__ */ i(
3113
+ y ? /* @__PURE__ */ i(
3106
3114
  "div",
3107
3115
  {
3108
3116
  className: _e["rp-loader"],
@@ -3133,49 +3141,49 @@ const xe = {
3133
3141
  ] }) }) }) }) });
3134
3142
  });
3135
3143
  export {
3136
- Oo as A,
3144
+ Do as A,
3137
3145
  on as B,
3138
- xo as C,
3139
- Qo as D,
3140
- $i as E,
3146
+ Io as C,
3147
+ ei as D,
3148
+ Gi as E,
3141
3149
  qn as F,
3142
- Vi as G,
3143
- Ui as H,
3144
- ji as I,
3145
- Xi as J,
3146
- Yi as K,
3147
- qi as L,
3148
- Di as M,
3149
- zi as O,
3150
- ks as P,
3151
- $s as R,
3152
- Hs as S,
3153
- Ms as T,
3154
- Hi as Z,
3155
- Ws as a,
3156
- Vs as b,
3150
+ Ui as G,
3151
+ Bi as H,
3152
+ Ki as I,
3153
+ Yi as J,
3154
+ Ji as K,
3155
+ Vi as L,
3156
+ zi as M,
3157
+ Ai as O,
3158
+ Ms as P,
3159
+ qs as R,
3160
+ Gs as S,
3161
+ $s as T,
3162
+ $i as Z,
3163
+ Hs as a,
3164
+ Bs as b,
3157
3165
  Hn as c,
3158
3166
  tt as d,
3159
3167
  xt as e,
3160
3168
  vn as f,
3161
- To as g,
3169
+ Po as g,
3162
3170
  wn as h,
3163
- Po as i,
3171
+ So as i,
3164
3172
  _n as j,
3165
- So as k,
3173
+ yo as k,
3166
3174
  bn as l,
3167
3175
  Cn as m,
3168
- yo as n,
3176
+ xo as n,
3169
3177
  Tn as o,
3170
- Lo as p,
3171
- zo as q,
3178
+ Eo as p,
3179
+ Ao as q,
3172
3180
  It as r,
3173
- Xo as s,
3174
- ei as t,
3181
+ Yo as s,
3182
+ ti as t,
3175
3183
  ie as u,
3176
- ti as v,
3177
- ii as w,
3178
- Ti as x,
3184
+ ni as v,
3185
+ ai as w,
3186
+ Pi as x,
3179
3187
  Bn as y,
3180
- Ai as z
3188
+ Fi as z
3181
3189
  };