@pdf-viewer/react 1.6.1-rc.0 → 1.7.0-beta.0

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 (64) hide show
  1. package/dist/{RPDefaultLayout-a6150b35.js → RPDefaultLayout-8c323c9f.js} +207 -206
  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/MenuItem.js +1 -1
  13. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  14. package/dist/components/layout/toolbar/MostPageTool.js +2 -2
  15. package/dist/components/layout/toolbar/OtherTool.js +4 -3
  16. package/dist/components/layout/toolbar/Paginate.js +1 -1
  17. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  20. package/dist/components/layout/toolbar/RotateTool.js +1 -1
  21. package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
  22. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  23. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  24. package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
  25. package/dist/components/layout/toolbar/ViewModeTool.js +19 -18
  26. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  27. package/dist/components/page/AnnotationLayer.js +1 -1
  28. package/dist/components/page/CanvasLayer.js +1 -1
  29. package/dist/components/page/DualPage.js +1 -1
  30. package/dist/components/page/RPPage.js +1 -1
  31. package/dist/components/page/SinglePage.js +1 -1
  32. package/dist/components/page/TextHighlightLayer.js +1 -1
  33. package/dist/components/page/TextLayer.js +1 -1
  34. package/dist/components/ui/Checkbox.js +13 -14
  35. package/dist/components/ui/DropDown.js +1 -1
  36. package/dist/components/ui/LoadingIndicator.js +1 -1
  37. package/dist/components/ui/RPTooltip.js +331 -689
  38. package/dist/contexts/PaginationContext.js +1 -1
  39. package/dist/contexts/PrintContext.js +1 -1
  40. package/dist/contexts/SearchContext.js +1 -1
  41. package/dist/contexts/ThumbnailsContext.js +1 -1
  42. package/dist/contexts/ToolbarComponentContext.js +2 -2
  43. package/dist/contexts/ViewModeContext.js +17 -16
  44. package/dist/index-1cb41342.js +307 -0
  45. package/dist/index-7279fb4e.js +1557 -0
  46. package/dist/index-aa2d3884.js +140 -0
  47. package/dist/main.js +1 -1
  48. package/dist/types/components/layout/toolbar/ViewModeTool.d.ts +1 -1
  49. package/dist/types/utils/types.d.ts +3 -2
  50. package/dist/utils/getZoomLevel.js +15 -13
  51. package/dist/utils/hooks/useFileDownload.js +1 -1
  52. package/dist/utils/hooks/useLicense.js +1 -1
  53. package/dist/utils/hooks/usePaginate.js +1 -1
  54. package/dist/utils/hooks/usePresentPage.js +1 -1
  55. package/dist/utils/hooks/usePrint.js +1 -1
  56. package/dist/utils/hooks/useScrollToPage.js +1 -1
  57. package/dist/utils/hooks/useSearch.js +1 -1
  58. package/dist/utils/hooks/useThumbnail.js +1 -1
  59. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  60. package/package.json +1 -1
  61. package/dist/index-2e540713.js +0 -23
  62. package/dist/index-353ec0a6.js +0 -172
  63. package/dist/index-5ff5dbd0.js +0 -1675
  64. package/dist/index-71898eb9.js +0 -139
@@ -65,10 +65,9 @@ import { FileUploadTool as hn } from "./components/layout/toolbar/FileUploadTool
65
65
  import { DarkModeTool as jr } from "./components/layout/toolbar/DarkModeTool.js";
66
66
  import { ThreeDotIcon as Kr } from "./components/icons/ThreeDotIcon.js";
67
67
  import { UIDropDown as mn } from "./components/ui/DropDown.js";
68
- import { u as Pt, P as Ve, c as We, a as St, S as Xr } from "./index-353ec0a6.js";
69
- import { c as Yr, e as Jr, b as Qr } from "./index-71898eb9.js";
70
- import { a as ct } from "./index-2e540713.js";
71
- import { a as eo, u as to, F as no, D as ro, b as oo, G as Ke } from "./index-5ff5dbd0.js";
68
+ import { e as Xr, a as Pt, P as Ve, c as We, g as St, i as Yr, k as Jr, f as Qr } from "./index-1cb41342.js";
69
+ import { D as eo, u as ct } from "./index-aa2d3884.js";
70
+ import { a as to, u as no, F as ro, b as oo, G as Ke } from "./index-7279fb4e.js";
72
71
  import { h as io } from "./component-1da194e8.js";
73
72
  import { CloseIcon as ao } from "./components/icons/CloseIcon.js";
74
73
  import { dateFormatter as Wt } from "./utils/dateFormatter.js";
@@ -76,22 +75,23 @@ import { PropertyItem as so } from "./components/layout/toolbar/PropertyItem.js"
76
75
  import { useOtherToolContext as co, OtherToolProvider as lo } from "./contexts/OtherToolContext.js";
77
76
  import { DocumentProperties as uo } from "./components/layout/toolbar/DocumentProperties.js";
78
77
  import { RotateTool as po } from "./components/layout/toolbar/RotateTool.js";
79
- 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";
80
80
  import { MenuSeparator as yt } from "./components/layout/toolbar/MenuSeparator.js";
81
- import { FileDownloadDefaultIcon as mo } from "./components/icons/FileDownloadDefaultIcon.js";
81
+ import { FileDownloadDefaultIcon as fo } from "./components/icons/FileDownloadDefaultIcon.js";
82
82
  import { MenuItem as be } from "./components/layout/toolbar/MenuItem.js";
83
- import { PrintDefaultTool as fo } from "./components/icons/PrintDefaultIcon.js";
83
+ import { PrintDefaultTool as go } from "./components/icons/PrintDefaultIcon.js";
84
84
  import { FullScreenTool as fn } from "./components/layout/toolbar/FullScreenTool.js";
85
85
  import { GoToDownIcon as gn } from "./components/icons/GoToDownIcon.js";
86
- import { SelectionModeTool as go } from "./components/layout/toolbar/SelectionModeTool.js";
87
- import { ZoomInIcon as vo } from "./components/icons/ZoomInIcon.js";
88
- 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";
89
89
  import { PAGE_PADDING as Mt } from "./utils/constants.js";
90
- import { getZoomLevel as _o } from "./utils/getZoomLevel.js";
91
- 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";
92
92
  import { c as Y, S as Ht } from "./SearchCloseButton-ddb9877e.js";
93
93
  import { UICheckbox as $t } from "./components/ui/Checkbox.js";
94
- import { ClearIcon as Co } from "./components/icons/ClearIcon.js";
94
+ import { ClearIcon as To } from "./components/icons/ClearIcon.js";
95
95
  import { InfoIcon as Gt } from "./components/icons/InfoIcon.js";
96
96
  import './assets/RPDefaultLayout.css';const vn = () => {
97
97
  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();
@@ -186,7 +186,7 @@ import './assets/RPDefaultLayout.css';const vn = () => {
186
186
  u
187
187
  ]
188
188
  ) };
189
- }, To = (e = 1) => {
189
+ }, Po = (e = 1) => {
190
190
  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(
191
191
  (d) => {
192
192
  if (!/^[0-9]*$/g.test(d.toString()) || !d)
@@ -237,8 +237,8 @@ import './assets/RPDefaultLayout.css';const vn = () => {
237
237
  }), ie = () => {
238
238
  const e = Je(wn);
239
239
  return typeof (e == null ? void 0 : e.focusedPage) > "u" && Zr.error("Please use this hooks inside children component of RPProvider"), e;
240
- }, Ws = ({ children: e }) => {
241
- 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: l, nextPage: s, prevPage: u } = Po();
242
242
  return k(() => {
243
243
  t != null && t.numPages && (a(t.numPages), r(1));
244
244
  }, [t, a, r]), /* @__PURE__ */ i(
@@ -257,7 +257,7 @@ import './assets/RPDefaultLayout.css';const vn = () => {
257
257
  }
258
258
  );
259
259
  };
260
- const Po = () => {
260
+ const So = () => {
261
261
  const { pdf: e, pages: t } = J(), [n, o] = $({
262
262
  loadedPages: 0,
263
263
  totalPages: 0,
@@ -434,8 +434,8 @@ const Po = () => {
434
434
  console.error("Error in setOnError callback:", t);
435
435
  }
436
436
  }
437
- }), Ms = ({ children: e }) => {
438
- 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: l, progress: s, isComplete: u, isError: p, error: m } = So(), v = N((C) => {
439
439
  C && typeof C == "function" && r(() => C);
440
440
  }, []), h = (C) => {
441
441
  m && C(m);
@@ -470,7 +470,7 @@ const Po = () => {
470
470
  if (!e)
471
471
  throw new Error("usePrintContext must be used within a PrintProvider");
472
472
  return e;
473
- }, So = () => {
473
+ }, yo = () => {
474
474
  const [e, t] = $({}), { pages: n } = J(), { rotate: o } = Ge(), r = W(() => Object.keys(e).length, [e]), a = N(
475
475
  (s) => {
476
476
  if (!n.size || s > n.size)
@@ -557,11 +557,11 @@ const Po = () => {
557
557
  setActive: (e) => {
558
558
  },
559
559
  active: !1
560
- }), Cn = () => Je(bn), Hs = ({
560
+ }), Cn = () => Je(bn), $s = ({
561
561
  children: e,
562
562
  initialThumbnailsVisible: t
563
563
  }) => {
564
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = So(), [l, s] = $(t);
564
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = yo(), [l, s] = $(t);
565
565
  return /* @__PURE__ */ i(
566
566
  bn.Provider,
567
567
  {
@@ -569,7 +569,7 @@ const Po = () => {
569
569
  children: e
570
570
  }
571
571
  );
572
- }, yo = (e = {}, t = "") => {
572
+ }, xo = (e = {}, t = "") => {
573
573
  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]);
574
574
  k(() => {
575
575
  if (!x || !s)
@@ -683,7 +683,7 @@ const Po = () => {
683
683
  currentMatchElement: null,
684
684
  setCurrentMatchElement: (e) => {
685
685
  }
686
- }), $s = ({
686
+ }), Gs = ({
687
687
  children: e,
688
688
  initialSearch: t
689
689
  }) => {
@@ -699,7 +699,7 @@ const Po = () => {
699
699
  prevMatch: h,
700
700
  currentMatchElement: _,
701
701
  setCurrentMatchElement: T
702
- } = yo(n, t);
702
+ } = xo(n, t);
703
703
  return /* @__PURE__ */ i(
704
704
  Tn.Provider,
705
705
  {
@@ -734,7 +734,7 @@ const Po = () => {
734
734
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
735
735
  "rp-page": "_rp-page_h7a2q_1",
736
736
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
737
- }, xo = (e) => {
737
+ }, Io = (e) => {
738
738
  const { pageNumber: t, onLoaded: n, onLoading: o } = e, r = H(null), { pages: a } = J(), { rotate: l } = Ge(), s = H(), { currentZoom: u } = Qe();
739
739
  return k(() => {
740
740
  if (!a || u === 0)
@@ -760,12 +760,12 @@ const Po = () => {
760
760
  (m = s.current) == null || m.cancel();
761
761
  };
762
762
  }, [a, t, l, u, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${t}-canvas`, ref: r });
763
- }, Io = "_selecting_1x8te_9", Ro = "_endOfContent_1x8te_24", he = {
763
+ }, Ro = "_selecting_1x8te_9", Lo = "_endOfContent_1x8te_24", he = {
764
764
  "rp-text-layer": "_rp-text-layer_1x8te_1",
765
- selecting: Io,
766
- endOfContent: Ro,
765
+ selecting: Ro,
766
+ endOfContent: Lo,
767
767
  "rp-text-layer-text": "_rp-text-layer-text_1x8te_38"
768
- }, Lo = (e) => {
768
+ }, Eo = (e) => {
769
769
  const { pageNumber: t } = e, { pages: n } = J(), o = H(null), { matches: r, currentMatch: a, setCurrentMatchElement: l } = xt(), [s, u] = $(
770
770
  []
771
771
  ), p = H(), m = H(), v = H(), h = W(() => r.filter((f) => f.pageIndex === t - 1), [r, t]), _ = N(
@@ -914,11 +914,11 @@ const Po = () => {
914
914
  onMouseUp: d
915
915
  }
916
916
  );
917
- }, Eo = {
917
+ }, No = {
918
918
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
919
919
  };
920
- let No = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
921
- const Oo = (e) => {
920
+ let Oo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
921
+ const Do = (e) => {
922
922
  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(), [_]);
923
923
  k(() => {
924
924
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
@@ -981,7 +981,7 @@ const Oo = (e) => {
981
981
  div: n.current,
982
982
  viewport: C.clone({ dontFlip: !0 }),
983
983
  page: _.page,
984
- imageResourcesPath: No,
984
+ imageResourcesPath: Oo,
985
985
  renderForms: !0,
986
986
  linkService: new Lr(),
987
987
  downloadManager: null,
@@ -1000,13 +1000,13 @@ const Oo = (e) => {
1000
1000
  {
1001
1001
  "data-rp": `page-${t}-annotationLayer`,
1002
1002
  style: { width: `${T == null ? void 0 : T.width}px`, height: `${T == null ? void 0 : T.height}px` },
1003
- className: Eo["rp-annotation-layer"],
1003
+ className: No["rp-annotation-layer"],
1004
1004
  ref: n
1005
1005
  }
1006
1006
  );
1007
- }, Do = {
1007
+ }, zo = {
1008
1008
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1009
- }, zo = ({ pageNumber: e, viewport: t }) => {
1009
+ }, Ao = ({ pageNumber: e, viewport: t }) => {
1010
1010
  const [n, o] = $(), { pages: r } = J(), { highlightKeywords: a } = pr(), l = !0, s = H(null), [u, p] = $(null), [m, v] = $([]);
1011
1011
  k(() => {
1012
1012
  s.current && p(s.current.parentElement);
@@ -1164,7 +1164,7 @@ const Oo = (e) => {
1164
1164
  }, [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(
1165
1165
  "div",
1166
1166
  {
1167
- className: Do["rp-text-highlight"],
1167
+ className: zo["rp-text-highlight"],
1168
1168
  style: {
1169
1169
  top: `${d.top}%`,
1170
1170
  left: `${d.left}%`,
@@ -1224,11 +1224,11 @@ const Oo = (e) => {
1224
1224
  },
1225
1225
  className: lt["rp-page"],
1226
1226
  children: [
1227
- /* @__PURE__ */ i(xo, { onLoading: C, onLoaded: y, pageNumber: n }),
1227
+ /* @__PURE__ */ i(Io, { onLoading: C, onLoaded: y, pageNumber: n }),
1228
1228
  m && /* @__PURE__ */ i("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ i(Ct, {}) }),
1229
- s && /* @__PURE__ */ i(Lo, { pageNumber: n }),
1230
- /* @__PURE__ */ i(zo, { pageNumber: n, viewport: _ }),
1231
- /* @__PURE__ */ i(Oo, { pageNumber: n })
1229
+ s && /* @__PURE__ */ i(Eo, { pageNumber: n }),
1230
+ /* @__PURE__ */ i(Ao, { pageNumber: n, viewport: _ }),
1231
+ /* @__PURE__ */ i(Do, { pageNumber: n })
1232
1232
  ]
1233
1233
  }
1234
1234
  )
@@ -1245,25 +1245,25 @@ function wt(e, t) {
1245
1245
  return n.__proto__ = o, n;
1246
1246
  }, wt(e, t);
1247
1247
  }
1248
- function Ao(e, t) {
1248
+ function Fo(e, t) {
1249
1249
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, wt(e, t);
1250
1250
  }
1251
1251
  var Vt = Number.isNaN || function(t) {
1252
1252
  return typeof t == "number" && t !== t;
1253
1253
  };
1254
- function Fo(e, t) {
1254
+ function ko(e, t) {
1255
1255
  return !!(e === t || Vt(e) && Vt(t));
1256
1256
  }
1257
- function ko(e, t) {
1257
+ function Wo(e, t) {
1258
1258
  if (e.length !== t.length)
1259
1259
  return !1;
1260
1260
  for (var n = 0; n < e.length; n++)
1261
- if (!Fo(e[n], t[n]))
1261
+ if (!ko(e[n], t[n]))
1262
1262
  return !1;
1263
1263
  return !0;
1264
1264
  }
1265
1265
  function dt(e, t) {
1266
- t === void 0 && (t = ko);
1266
+ t === void 0 && (t = Wo);
1267
1267
  var n, o = [], r, a = !1;
1268
1268
  function l() {
1269
1269
  for (var s = [], u = 0; u < arguments.length; u++)
@@ -1284,7 +1284,7 @@ function Ut(e, t) {
1284
1284
  }
1285
1285
  return n;
1286
1286
  }
1287
- 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() {
1288
1288
  return performance.now();
1289
1289
  } : function() {
1290
1290
  return Date.now();
@@ -1292,7 +1292,7 @@ var Wo = typeof performance == "object" && typeof performance.now == "function",
1292
1292
  function Zt(e) {
1293
1293
  cancelAnimationFrame(e.id);
1294
1294
  }
1295
- function Mo(e, t) {
1295
+ function Ho(e, t) {
1296
1296
  var n = Bt();
1297
1297
  function o() {
1298
1298
  Bt() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
@@ -1303,7 +1303,7 @@ function Mo(e, t) {
1303
1303
  return r;
1304
1304
  }
1305
1305
  var ut = -1;
1306
- function Ho(e) {
1306
+ function $o(e) {
1307
1307
  if (e === void 0 && (e = !1), ut === -1 || e) {
1308
1308
  var t = document.createElement("div"), n = t.style;
1309
1309
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), ut = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
@@ -1320,17 +1320,17 @@ function jt(e) {
1320
1320
  }
1321
1321
  return Le;
1322
1322
  }
1323
- var $o = 150, Go = function(t) {
1323
+ var Go = 150, qo = function(t) {
1324
1324
  var n = t.columnIndex;
1325
1325
  t.data;
1326
1326
  var o = t.rowIndex;
1327
1327
  return o + ":" + n;
1328
1328
  }, Be = null, Ze = null, je = null;
1329
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());
1330
- function qo(e) {
1330
+ function Vo(e) {
1331
1331
  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;
1332
1332
  return t = /* @__PURE__ */ function(y) {
1333
- Ao(d, y);
1333
+ Fo(d, y);
1334
1334
  function d(g) {
1335
1335
  var c;
1336
1336
  return c = y.call(this, g) || this, c._instanceProps = T(c.props, qt(c)), c._resetIsScrollingTimeoutId = null, c._outerRef = void 0, c.state = {
@@ -1408,7 +1408,7 @@ function qo(e) {
1408
1408
  var w = c.props.outerRef;
1409
1409
  c._outerRef = b, typeof w == "function" ? w(b) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = b);
1410
1410
  }, c._resetIsScrollingDebounced = function() {
1411
- 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);
1412
1412
  }, c._resetIsScrolling = function() {
1413
1413
  c._resetIsScrollingTimeoutId = null, c.setState({
1414
1414
  isScrolling: !1
@@ -1418,7 +1418,7 @@ function qo(e) {
1418
1418
  }, c;
1419
1419
  }
1420
1420
  d.getDerivedStateFromProps = function(c, b) {
1421
- return Vo(c, b), C(c), null;
1421
+ return Uo(c, b), C(c), null;
1422
1422
  };
1423
1423
  var f = d.prototype;
1424
1424
  return f.scrollTo = function(c) {
@@ -1433,7 +1433,7 @@ function qo(e) {
1433
1433
  };
1434
1434
  }, this._resetIsScrollingDebounced);
1435
1435
  }, f.scrollToItem = function(c) {
1436
- 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, 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 = $o();
1437
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)));
1438
1438
  var G = l(this.props, this._instanceProps), Z = s(this.props, this._instanceProps), j = Z > A ? M : 0, U = G > D ? M : 0;
1439
1439
  this.scrollTo({
@@ -1472,7 +1472,7 @@ function qo(e) {
1472
1472
  }, f.componentWillUnmount = function() {
1473
1473
  this._resetIsScrollingTimeoutId !== null && Zt(this._resetIsScrollingTimeoutId);
1474
1474
  }, f.render = function() {
1475
- 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, 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 ? 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 = [];
1476
1476
  if (P > 0 && G)
1477
1477
  for (var Te = te; Te <= Ae; Te++)
1478
1478
  for (var we = le; we <= ae; we++)
@@ -1540,7 +1540,7 @@ function qo(e) {
1540
1540
  useIsScrolling: !1
1541
1541
  }, t;
1542
1542
  }
1543
- var Vo = function(t, n) {
1543
+ var Uo = function(t, n) {
1544
1544
  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;
1545
1545
  if (process.env.NODE_ENV !== "production") {
1546
1546
  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)
@@ -1595,7 +1595,7 @@ var Vo = function(t, n) {
1595
1595
  var a, l;
1596
1596
  t === "column" ? (a = o.columnMetadataMap, l = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, l = o.lastMeasuredRowIndex);
1597
1597
  var s = l > 0 ? a[l].offset : 0;
1598
- return s >= r ? yn(t, n, o, l, 0, r) : Uo(t, n, o, Math.max(0, l), r);
1598
+ return s >= r ? yn(t, n, o, l, 0, r) : Bo(t, n, o, Math.max(0, l), r);
1599
1599
  }, yn = function(t, n, o, r, a, l) {
1600
1600
  for (; a <= r; ) {
1601
1601
  var s = a + Math.floor((r - a) / 2), u = me(t, n, s, o).offset;
@@ -1604,7 +1604,7 @@ var Vo = function(t, n) {
1604
1604
  u < l ? a = s + 1 : u > l && (r = s - 1);
1605
1605
  }
1606
1606
  return a > 0 ? a - 1 : 0;
1607
- }, Uo = function(t, n, o, r, a) {
1607
+ }, Bo = function(t, n, o, r, a) {
1608
1608
  for (var l = t === "column" ? n.columnCount : n.rowCount, s = 1; r < l && me(t, n, r, o).offset < a; )
1609
1609
  r += s, s *= 2;
1610
1610
  return yn(t, n, o, Math.min(r, l - 1), Math.floor(r / 2), a);
@@ -1621,7 +1621,7 @@ var Vo = function(t, n) {
1621
1621
  default:
1622
1622
  return a >= h && a <= v ? a : h > v || a < h ? h : v;
1623
1623
  }
1624
- }, Bo = /* @__PURE__ */ qo({
1624
+ }, Zo = /* @__PURE__ */ Vo({
1625
1625
  getColumnOffset: function(t, n, o) {
1626
1626
  return me("column", t, n, o).offset;
1627
1627
  },
@@ -1703,12 +1703,12 @@ function Jt(e, t) {
1703
1703
  return !0;
1704
1704
  return !1;
1705
1705
  }
1706
- var Zo = ["style"], jo = ["style"];
1707
- function Ko(e, t) {
1708
- 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);
1709
1709
  return !Jt(n, r) && !Jt(o, a);
1710
1710
  }
1711
- const Xo = () => {
1711
+ const Yo = () => {
1712
1712
  const { viewMode: e } = ze(), { scrollMode: t } = De(), { setColumnCount: n } = dn(), { virtualScrollableElementRef: o } = et(), r = qe(), a = N(
1713
1713
  (_) => r.widths[_] || 0,
1714
1714
  [r.widths]
@@ -1746,7 +1746,7 @@ ht == null || tn == null ? (_t = pt, bt = function(t) {
1746
1746
  }, Qt);
1747
1747
  return [n, o];
1748
1748
  });
1749
- function Yo(e) {
1749
+ function Jo(e) {
1750
1750
  let t, n, o, r, a, l, s;
1751
1751
  const u = typeof document < "u" && document.attachEvent;
1752
1752
  if (!u) {
@@ -1818,7 +1818,7 @@ function Yo(e) {
1818
1818
  }
1819
1819
  };
1820
1820
  }
1821
- class Jo extends Qn {
1821
+ class Qo extends Qn {
1822
1822
  constructor(...t) {
1823
1823
  super(...t), this.state = {
1824
1824
  height: this.props.defaultHeight || 0,
@@ -1859,7 +1859,7 @@ class Jo extends Qn {
1859
1859
  const o = n.ownerDocument.defaultView.ResizeObserver;
1860
1860
  o != null ? (this._resizeObserver = new o(() => {
1861
1861
  this._timeoutId = setTimeout(this._onResize, 0);
1862
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Yo(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1862
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = Jo(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1863
1863
  }
1864
1864
  }
1865
1865
  componentWillUnmount() {
@@ -1897,7 +1897,7 @@ class Jo extends Qn {
1897
1897
  }, !d && t(y));
1898
1898
  }
1899
1899
  }
1900
- const Qo = ({ widths: e, heights: t }) => {
1900
+ const ei = ({ widths: e, heights: t }) => {
1901
1901
  const { focusedPage: n, totalPages: o } = ie(), r = W(() => {
1902
1902
  const s = [], u = Math.ceil(n / 2) * 2 - 1;
1903
1903
  if (s.push(u), u + 1 < o) {
@@ -1921,7 +1921,7 @@ const Qo = ({ widths: e, heights: t }) => {
1921
1921
  }
1922
1922
  ], [e, t, r]), l = W(() => a.reduce((s, u) => s + Number(u.width || 0), 0), [a]);
1923
1923
  return /* @__PURE__ */ i("div", { style: { width: l, position: "relative" }, children: r.map((s, u) => /* @__PURE__ */ i(It, { style: a[u], pageNumber: s }, s)) });
1924
- }, ei = ({ widths: e, heights: t }) => {
1924
+ }, ti = ({ widths: e, heights: t }) => {
1925
1925
  const { focusedPage: n } = ie(), o = W(() => ({
1926
1926
  position: "absolute",
1927
1927
  width: e(n - 1),
@@ -1937,7 +1937,7 @@ const Qo = ({ widths: e, heights: t }) => {
1937
1937
  children: /* @__PURE__ */ i(It, { style: o, pageNumber: n }, n)
1938
1938
  }
1939
1939
  );
1940
- }, ti = (e, t, n) => {
1940
+ }, ni = (e, t, n) => {
1941
1941
  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) => {
1942
1942
  const C = l[S], y = Vr(S + 1, e), d = C * y.columnIndex, f = T * y.rowIndex, g = d + C, c = f + T;
1943
1943
  return {
@@ -1988,10 +1988,10 @@ const Qo = ({ widths: e, heights: t }) => {
1988
1988
  n == null || n.removeEventListener("scroll", _);
1989
1989
  };
1990
1990
  }, [n, _]);
1991
- }, ni = er(({ columnIndex: e, rowIndex: t, data: n, style: o }) => {
1991
+ }, ri = er(({ columnIndex: e, rowIndex: t, data: n, style: o }) => {
1992
1992
  const r = Ur(t, e, n.columnCount);
1993
1993
  return /* @__PURE__ */ i(It, { style: o, pageNumber: r }, r);
1994
- }, Ko), Gs = () => {
1994
+ }, Xo), qs = () => {
1995
1995
  const { initialPage: e = 1, initialScrollMode: t, instanceId: n } = ar(), { pagesRef: o, setPagesRef: r } = ge(), { scrollToPage: a } = vn(), {
1996
1996
  virtualScrollRef: l,
1997
1997
  getVirtualScrollRef: s,
@@ -2014,8 +2014,8 @@ const Qo = ({ widths: e, heights: t }) => {
2014
2014
  columnWidth: M,
2015
2015
  estimatedColumnWidth: G,
2016
2016
  estimatedRowHeight: Z
2017
- } = Xo(), j = Tt(h, 100), U = H();
2018
- ti(O, L, v);
2017
+ } = Yo(), j = Tt(h, 100), U = H();
2018
+ ni(O, L, v);
2019
2019
  const Q = H({
2020
2020
  scrollTop: 0,
2021
2021
  scrollLeft: 0
@@ -2142,16 +2142,16 @@ const Qo = ({ widths: e, heights: t }) => {
2142
2142
  y,
2143
2143
  j
2144
2144
  ]), /* @__PURE__ */ F(fe, { children: [
2145
- /* @__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(
2145
+ /* @__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(
2146
2146
  "div",
2147
2147
  {
2148
2148
  ref: u,
2149
2149
  style: { width: q, height: V },
2150
2150
  className: ne(ue["rp-pages"], ue["rp-page-scrolling-wrapper"]),
2151
- children: g === He.DUAL_PAGE ? /* @__PURE__ */ i(Qo, { widths: M, heights: I }) : /* @__PURE__ */ i(ei, { widths: M, heights: I })
2151
+ children: g === He.DUAL_PAGE ? /* @__PURE__ */ i(ei, { widths: M, heights: I }) : /* @__PURE__ */ i(ti, { widths: M, heights: I })
2152
2152
  }
2153
2153
  ) : G ? /* @__PURE__ */ i(
2154
- Bo,
2154
+ Zo,
2155
2155
  {
2156
2156
  ref: s,
2157
2157
  itemData: Ae,
@@ -2170,7 +2170,7 @@ const Qo = ({ widths: e, heights: t }) => {
2170
2170
  ue["rp-pages"],
2171
2171
  f === ee.HORIZONTAL_SCROLLING ? ue["rp-pages-horizontal-scroll"] : ""
2172
2172
  ),
2173
- children: ni
2173
+ children: ri
2174
2174
  }
2175
2175
  ) : b ? null : /* @__PURE__ */ i(
2176
2176
  "div",
@@ -2198,13 +2198,13 @@ const Qo = ({ widths: e, heights: t }) => {
2198
2198
  "rp-paginate": "_rp-paginate_1y9vo_1",
2199
2199
  "rp-page-input": "_rp-page-input_1y9vo_6",
2200
2200
  "rp-total-page": "_rp-total-page_1y9vo_11"
2201
- }, ri = () => {
2201
+ }, oi = () => {
2202
2202
  const { prevIcon: e } = pe();
2203
2203
  return e || /* @__PURE__ */ i(Me, {});
2204
- }, oi = () => {
2204
+ }, ii = () => {
2205
2205
  const { nextIcon: e } = pe();
2206
2206
  return e || /* @__PURE__ */ i(Me, { style: { transform: "rotate(180deg" } });
2207
- }, ii = () => {
2207
+ }, ai = () => {
2208
2208
  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();
2209
2209
  k(() => {
2210
2210
  s(e.toString());
@@ -2240,7 +2240,7 @@ const Qo = ({ widths: e, heights: t }) => {
2240
2240
  onClick: r,
2241
2241
  "aria-label": m == null ? void 0 : m.previousPageTooltip,
2242
2242
  "aria-disabled": e === 1,
2243
- children: /* @__PURE__ */ i(ri, {})
2243
+ children: /* @__PURE__ */ i(oi, {})
2244
2244
  }
2245
2245
  ) }),
2246
2246
  /* @__PURE__ */ i(K, { content: m == null ? void 0 : m.currentPageTooltip, children: /* @__PURE__ */ i(
@@ -2263,12 +2263,12 @@ const Qo = ({ widths: e, heights: t }) => {
2263
2263
  onClick: o,
2264
2264
  "aria-label": m == null ? void 0 : m.nextPageTooltip,
2265
2265
  "aria-disabled": e === t,
2266
- children: /* @__PURE__ */ i(oi, {})
2266
+ children: /* @__PURE__ */ i(ii, {})
2267
2267
  }
2268
2268
  ) })
2269
2269
  ] }) : null;
2270
2270
  };
2271
- var Rt = "Dialog", [xn, qs] = Yr(Rt), [ai, ce] = xn(Rt), In = (e) => {
2271
+ var Rt = "Dialog", [xn, Vs] = Xr(Rt), [si, ce] = xn(Rt), In = (e) => {
2272
2272
  const {
2273
2273
  __scopeDialog: t,
2274
2274
  children: n,
@@ -2282,7 +2282,7 @@ var Rt = "Dialog", [xn, qs] = Yr(Rt), [ai, ce] = xn(Rt), In = (e) => {
2282
2282
  onChange: a
2283
2283
  });
2284
2284
  return /* @__PURE__ */ i(
2285
- ai,
2285
+ si,
2286
2286
  {
2287
2287
  scope: t,
2288
2288
  triggerRef: s,
@@ -2299,7 +2299,7 @@ var Rt = "Dialog", [xn, qs] = Yr(Rt), [ai, ce] = xn(Rt), In = (e) => {
2299
2299
  );
2300
2300
  };
2301
2301
  In.displayName = Rt;
2302
- var Rn = "DialogTrigger", si = B.forwardRef(
2302
+ var Rn = "DialogTrigger", ci = B.forwardRef(
2303
2303
  (e, t) => {
2304
2304
  const { __scopeDialog: n, ...o } = e, r = ce(Rn, n), a = Pt(t, r.triggerRef);
2305
2305
  return /* @__PURE__ */ i(
@@ -2317,28 +2317,28 @@ var Rn = "DialogTrigger", si = B.forwardRef(
2317
2317
  );
2318
2318
  }
2319
2319
  );
2320
- si.displayName = Rn;
2321
- var Lt = "DialogPortal", [ci, Ln] = xn(Lt, {
2320
+ ci.displayName = Rn;
2321
+ var Lt = "DialogPortal", [li, Ln] = xn(Lt, {
2322
2322
  forceMount: void 0
2323
2323
  }), En = (e) => {
2324
2324
  const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, a = ce(Lt, t);
2325
- 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 }) })) });
2325
+ return /* @__PURE__ */ i(li, { 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 }) })) });
2326
2326
  };
2327
2327
  En.displayName = Lt;
2328
2328
  var Xe = "DialogOverlay", Nn = B.forwardRef(
2329
2329
  (e, t) => {
2330
2330
  const n = Ln(Xe, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = ce(Xe, e.__scopeDialog);
2331
- return a.modal ? /* @__PURE__ */ i(St, { present: o || a.open, children: /* @__PURE__ */ i(li, { ...r, ref: t }) }) : null;
2331
+ return a.modal ? /* @__PURE__ */ i(St, { present: o || a.open, children: /* @__PURE__ */ i(di, { ...r, ref: t }) }) : null;
2332
2332
  }
2333
2333
  );
2334
2334
  Nn.displayName = Xe;
2335
- var li = B.forwardRef(
2335
+ var di = B.forwardRef(
2336
2336
  (e, t) => {
2337
2337
  const { __scopeDialog: n, ...o } = e, r = ce(Xe, n);
2338
2338
  return (
2339
2339
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2340
2340
  // ie. when `Overlay` and `Content` are siblings
2341
- /* @__PURE__ */ i(eo, { as: Xr, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2341
+ /* @__PURE__ */ i(to, { as: Yr, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
2342
2342
  Ve.div,
2343
2343
  {
2344
2344
  "data-state": Nt(r.open),
@@ -2352,11 +2352,11 @@ var li = B.forwardRef(
2352
2352
  ), Ie = "DialogContent", On = B.forwardRef(
2353
2353
  (e, t) => {
2354
2354
  const n = Ln(Ie, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = ce(Ie, e.__scopeDialog);
2355
- return /* @__PURE__ */ i(St, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(di, { ...r, ref: t }) : /* @__PURE__ */ i(ui, { ...r, ref: t }) });
2355
+ return /* @__PURE__ */ i(St, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(ui, { ...r, ref: t }) : /* @__PURE__ */ i(pi, { ...r, ref: t }) });
2356
2356
  }
2357
2357
  );
2358
2358
  On.displayName = Ie;
2359
- var di = B.forwardRef(
2359
+ var ui = B.forwardRef(
2360
2360
  (e, t) => {
2361
2361
  const n = ce(Ie, e.__scopeDialog), o = B.useRef(null), r = Pt(t, n.contentRef, o);
2362
2362
  return B.useEffect(() => {
@@ -2385,7 +2385,7 @@ var di = B.forwardRef(
2385
2385
  }
2386
2386
  );
2387
2387
  }
2388
- ), ui = B.forwardRef(
2388
+ ), pi = B.forwardRef(
2389
2389
  (e, t) => {
2390
2390
  const n = ce(Ie, e.__scopeDialog), o = B.useRef(!1), r = B.useRef(!1);
2391
2391
  return /* @__PURE__ */ i(
@@ -2411,9 +2411,9 @@ var di = B.forwardRef(
2411
2411
  ), Dn = B.forwardRef(
2412
2412
  (e, t) => {
2413
2413
  const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...l } = e, s = ce(Ie, n), u = B.useRef(null), p = Pt(t, u);
2414
- return to(), /* @__PURE__ */ F(fe, { children: [
2414
+ return no(), /* @__PURE__ */ F(fe, { children: [
2415
2415
  /* @__PURE__ */ i(
2416
- no,
2416
+ ro,
2417
2417
  {
2418
2418
  asChild: !0,
2419
2419
  loop: !0,
@@ -2421,7 +2421,7 @@ var di = B.forwardRef(
2421
2421
  onMountAutoFocus: r,
2422
2422
  onUnmountAutoFocus: a,
2423
2423
  children: /* @__PURE__ */ i(
2424
- ro,
2424
+ eo,
2425
2425
  {
2426
2426
  role: "dialog",
2427
2427
  id: s.contentId,
@@ -2436,8 +2436,8 @@ var di = B.forwardRef(
2436
2436
  }
2437
2437
  ),
2438
2438
  /* @__PURE__ */ F(fe, { children: [
2439
- /* @__PURE__ */ i(hi, { titleId: s.titleId }),
2440
- /* @__PURE__ */ i(fi, { contentRef: u, descriptionId: s.descriptionId })
2439
+ /* @__PURE__ */ i(mi, { titleId: s.titleId }),
2440
+ /* @__PURE__ */ i(gi, { contentRef: u, descriptionId: s.descriptionId })
2441
2441
  ] })
2442
2442
  ] });
2443
2443
  }
@@ -2448,13 +2448,13 @@ var di = B.forwardRef(
2448
2448
  }
2449
2449
  );
2450
2450
  zn.displayName = Et;
2451
- var An = "DialogDescription", pi = B.forwardRef(
2451
+ var An = "DialogDescription", hi = B.forwardRef(
2452
2452
  (e, t) => {
2453
2453
  const { __scopeDialog: n, ...o } = e, r = ce(An, n);
2454
2454
  return /* @__PURE__ */ i(Ve.p, { id: r.descriptionId, ...o, ref: t });
2455
2455
  }
2456
2456
  );
2457
- pi.displayName = An;
2457
+ hi.displayName = An;
2458
2458
  var Fn = "DialogClose", kn = B.forwardRef(
2459
2459
  (e, t) => {
2460
2460
  const { __scopeDialog: n, ...o } = e, r = ce(Fn, n);
@@ -2473,11 +2473,11 @@ kn.displayName = Fn;
2473
2473
  function Nt(e) {
2474
2474
  return e ? "open" : "closed";
2475
2475
  }
2476
- var Wn = "DialogTitleWarning", [Vs, Mn] = Jr(Wn, {
2476
+ var Wn = "DialogTitleWarning", [Us, Mn] = Jr(Wn, {
2477
2477
  contentName: Ie,
2478
2478
  titleName: Et,
2479
2479
  docsSlug: "dialog"
2480
- }), hi = ({ titleId: e }) => {
2480
+ }), mi = ({ titleId: e }) => {
2481
2481
  const t = Mn(Wn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2482
2482
 
2483
2483
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2486,14 +2486,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
2486
2486
  return B.useEffect(() => {
2487
2487
  e && (document.getElementById(e) || console.error(n));
2488
2488
  }, [n, e]), null;
2489
- }, mi = "DialogDescriptionWarning", fi = ({ contentRef: e, descriptionId: t }) => {
2490
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mn(mi).contentName}}.`;
2489
+ }, fi = "DialogDescriptionWarning", gi = ({ contentRef: e, descriptionId: t }) => {
2490
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mn(fi).contentName}}.`;
2491
2491
  return B.useEffect(() => {
2492
2492
  var a;
2493
2493
  const r = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
2494
2494
  t && r && (document.getElementById(t) || console.warn(o));
2495
2495
  }, [o, e, t]), null;
2496
- }, gi = In, vi = En, wi = Nn, _i = On, bi = zn, Ci = kn;
2496
+ }, vi = In, wi = En, _i = Nn, bi = On, Ci = zn, Ti = kn;
2497
2497
  const xe = {
2498
2498
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2499
2499
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2502,7 +2502,7 @@ const xe = {
2502
2502
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2503
2503
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2504
2504
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2505
- }, Ti = () => {
2505
+ }, Pi = () => {
2506
2506
  const { pdfProperties: e } = J(), { container: t } = ge(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = co(), { localeMessages: r } = se(), a = W(() => {
2507
2507
  if (!e)
2508
2508
  return [];
@@ -2543,19 +2543,19 @@ const xe = {
2543
2543
  { label: r == null ? void 0 : r.propertiesPageCountLabel, value: y }
2544
2544
  ];
2545
2545
  }, [e, r]);
2546
- return /* @__PURE__ */ i(gi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(vi, { container: t, children: /* @__PURE__ */ F("div", { className: xe["rp-dialog-wrapper"], children: [
2547
- /* @__PURE__ */ i(wi, { className: xe["rp-dialog-overlay"] }),
2548
- /* @__PURE__ */ F(_i, { className: xe["rp-document-dialog"], children: [
2549
- /* @__PURE__ */ i(bi, { className: xe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2546
+ return /* @__PURE__ */ i(vi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(wi, { container: t, children: /* @__PURE__ */ F("div", { className: xe["rp-dialog-wrapper"], children: [
2547
+ /* @__PURE__ */ i(_i, { className: xe["rp-dialog-overlay"] }),
2548
+ /* @__PURE__ */ F(bi, { className: xe["rp-document-dialog"], children: [
2549
+ /* @__PURE__ */ i(Ci, { className: xe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2550
2550
  /* @__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)) }),
2551
- /* @__PURE__ */ i(Ci, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ i(ao, {}) })
2551
+ /* @__PURE__ */ i(Ti, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ i(ao, {}) })
2552
2552
  ] })
2553
2553
  ] }) }) });
2554
- }, Pi = {
2554
+ }, Si = {
2555
2555
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2556
- }, nn = ".pdf", Si = (e) => URL.createObjectURL(e), yi = async (e) => {
2556
+ }, nn = ".pdf", yi = (e) => URL.createObjectURL(e), xi = async (e) => {
2557
2557
  const n = await (await fetch(e)).blob();
2558
- return Si(n);
2558
+ return yi(n);
2559
2559
  }, Hn = () => {
2560
2560
  const { filename: e, pdfSrc: t } = J(), { downloadFilename: n } = hr(), o = (a) => {
2561
2561
  const l = n || a;
@@ -2565,26 +2565,26 @@ const xe = {
2565
2565
  if (!e || !t)
2566
2566
  throw new Error("There is no PDF source to download");
2567
2567
  const a = document.createElement("a");
2568
- a.href = await yi(t), a.download = o(e), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2568
+ a.href = await xi(t), a.download = o(e), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2569
2569
  }, [e, t]) };
2570
2570
  }, $n = () => {
2571
2571
  const { downloadIcon: e } = pe();
2572
- return e || /* @__PURE__ */ i(mo, {});
2573
- }, 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: [
2572
+ return e || /* @__PURE__ */ i(fo, {});
2573
+ }, 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: [
2574
2574
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i($n, {}) }),
2575
2575
  t == null ? void 0 : t.downloadFileLabel
2576
2576
  ] }) }), qn = () => {
2577
2577
  const { download: e } = Hn(), { downloadTool: t = !0 } = ve(), { isSmallScreen: n } = Ce(), { localeMessages: o } = se();
2578
- 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;
2578
+ 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;
2579
2579
  }, Vn = () => {
2580
2580
  const { printIcon: e } = pe();
2581
- return e || /* @__PURE__ */ i(fo, {});
2582
- }, 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: [
2581
+ return e || /* @__PURE__ */ i(go, {});
2582
+ }, 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: [
2583
2583
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Vn, {}) }),
2584
2584
  t == null ? void 0 : t.printLabel
2585
2585
  ] }) }), Bn = () => {
2586
2586
  const { print: e, cancel: t, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = tt(), { printTool: l = !0 } = ve(), { isSmallScreen: s } = Ce(), { localeMessages: u } = se();
2587
- return l ? s ? /* @__PURE__ */ i(Li, { print: e, localeMessages: u }) : typeof l == "function" ? /* @__PURE__ */ i(
2587
+ return l ? s ? /* @__PURE__ */ i(Ei, { print: e, localeMessages: u }) : typeof l == "function" ? /* @__PURE__ */ i(
2588
2588
  l,
2589
2589
  {
2590
2590
  print: e,
@@ -2594,16 +2594,16 @@ const xe = {
2594
2594
  setOnComplete: o,
2595
2595
  progress: a
2596
2596
  }
2597
- ) : l ? /* @__PURE__ */ i(Ri, { print: e, localeMessages: u }) : null : null;
2598
- }, Ei = {
2597
+ ) : l ? /* @__PURE__ */ i(Li, { print: e, localeMessages: u }) : null : null;
2598
+ }, Ni = {
2599
2599
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2600
- }, Ni = () => {
2601
- const { goToFirstPageIcon: e } = pe();
2602
- return e || /* @__PURE__ */ i(gn, { className: Ei["rp-go-to-Top"] });
2603
2600
  }, Oi = () => {
2601
+ const { goToFirstPageIcon: e } = pe();
2602
+ return e || /* @__PURE__ */ i(gn, { className: Ni["rp-go-to-Top"] });
2603
+ }, Di = () => {
2604
2604
  const { goToLastPageIcon: e } = pe();
2605
2605
  return e || /* @__PURE__ */ i(gn, {});
2606
- }, rn = { width: "100%" }, Di = () => {
2606
+ }, rn = { width: "100%" }, zi = () => {
2607
2607
  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(() => {
2608
2608
  e(1);
2609
2609
  }, [e]), u = N(() => {
@@ -2611,16 +2611,16 @@ const xe = {
2611
2611
  }, [e, t]);
2612
2612
  return o ? /* @__PURE__ */ F(Ke, { children: [
2613
2613
  /* @__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: [
2614
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ni, {}) }),
2614
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Oi, {}) }),
2615
2615
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2616
2616
  ] }) }) }),
2617
2617
  /* @__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: [
2618
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Oi, {}) }),
2618
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Di, {}) }),
2619
2619
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2620
2620
  ] }) }) }),
2621
2621
  /* @__PURE__ */ i(yt, {})
2622
2622
  ] }) : null;
2623
- }, zi = () => {
2623
+ }, Ai = () => {
2624
2624
  const { container: e } = ge(), { isSmallScreen: t } = Ce(), {
2625
2625
  openFileTool: n,
2626
2626
  downloadTool: o,
@@ -2651,7 +2651,7 @@ const xe = {
2651
2651
  {
2652
2652
  container: e,
2653
2653
  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, {}) }) }) }),
2654
- children: /* @__PURE__ */ F("div", { className: Pi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2654
+ children: /* @__PURE__ */ F("div", { className: Si["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2655
2655
  t && /* @__PURE__ */ F(Ke, { children: [
2656
2656
  /* @__PURE__ */ i(hn, {}),
2657
2657
  /* @__PURE__ */ i(qn, {}),
@@ -2659,17 +2659,18 @@ const xe = {
2659
2659
  /* @__PURE__ */ i(fn, {}),
2660
2660
  /* @__PURE__ */ i(yt, {})
2661
2661
  ] }),
2662
- /* @__PURE__ */ i(Di, {}),
2662
+ /* @__PURE__ */ i(zi, {}),
2663
2663
  /* @__PURE__ */ i(po, {}),
2664
- /* @__PURE__ */ i(go, {}),
2664
+ /* @__PURE__ */ i(vo, {}),
2665
2665
  /* @__PURE__ */ i(ho, {}),
2666
+ /* @__PURE__ */ i(mo, {}),
2666
2667
  /* @__PURE__ */ i(uo, {})
2667
2668
  ] })
2668
2669
  }
2669
2670
  ),
2670
- /* @__PURE__ */ i(Ti, {})
2671
+ /* @__PURE__ */ i(Pi, {})
2671
2672
  ] }) : null;
2672
- }, Ai = () => {
2673
+ }, Fi = () => {
2673
2674
  const { isSmallScreen: e } = Ce();
2674
2675
  return /* @__PURE__ */ F(fe, { children: [
2675
2676
  /* @__PURE__ */ i(jr, {}),
@@ -2679,7 +2680,7 @@ const xe = {
2679
2680
  /* @__PURE__ */ i(Bn, {}),
2680
2681
  /* @__PURE__ */ i(fn, {})
2681
2682
  ] }),
2682
- /* @__PURE__ */ i(zi, {})
2683
+ /* @__PURE__ */ i(Ai, {})
2683
2684
  ] });
2684
2685
  }, Ee = {
2685
2686
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2687,13 +2688,13 @@ const xe = {
2687
2688
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2688
2689
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2689
2690
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2690
- }, Fi = 25, ft = 1e3, ki = [50, 75, 100, 125, 150, 200, 300, 400], Wi = () => {
2691
+ }, ki = 25, ft = 1e3, Wi = [50, 75, 100, 125, 150, 200, 300, 400], Mi = () => {
2691
2692
  const { zoomInIcon: e } = pe();
2692
- return e || /* @__PURE__ */ i(vo, {});
2693
- }, Mi = () => {
2694
- const { zoomOutIcon: e } = pe();
2695
2693
  return e || /* @__PURE__ */ i(wo, {});
2696
2694
  }, Hi = () => {
2695
+ const { zoomOutIcon: e } = pe();
2696
+ return e || /* @__PURE__ */ i(_o, {});
2697
+ }, $i = () => {
2697
2698
  const { zoomLevel: e, setZoomLevel: t } = Qe(), { container: n, contentRef: 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(() => {
2698
2699
  t((d) => {
2699
2700
  const f = Math.floor(d / 25) * 25;
@@ -2704,12 +2705,12 @@ const xe = {
2704
2705
  const f = Math.ceil(d / 25) * 25;
2705
2706
  return Math.min(f - 25, ft);
2706
2707
  });
2707
- }, [t]), _ = W(() => e === Fi, [e]), T = W(() => e === ft, [e]), S = W(() => {
2708
+ }, [t]), _ = W(() => e === ki, [e]), T = W(() => e === ft, [e]), S = W(() => {
2708
2709
  var d;
2709
2710
  return (d = s.get(a)) == null ? void 0 : d.page.getViewport({ scale: 1, rotation: l });
2710
2711
  }, [s, a, l]), C = N(
2711
2712
  (d) => {
2712
- 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(
2713
+ 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 = bo(
2713
2714
  d,
2714
2715
  c,
2715
2716
  b,
@@ -2733,7 +2734,7 @@ const xe = {
2733
2734
  disabled: _,
2734
2735
  onClick: h,
2735
2736
  "aria-label": p == null ? void 0 : p.zoomOutTooltip,
2736
- children: /* @__PURE__ */ i(Mi, {})
2737
+ children: /* @__PURE__ */ i(Hi, {})
2737
2738
  }
2738
2739
  ) }),
2739
2740
  !u && /* @__PURE__ */ i(
@@ -2761,7 +2762,7 @@ const xe = {
2761
2762
  /* @__PURE__ */ i(be, { onClick: () => y(at.PAGE_WIDTH), children: p == null ? void 0 : p.zoomPageWidth })
2762
2763
  ] }),
2763
2764
  /* @__PURE__ */ i(yt, {}),
2764
- /* @__PURE__ */ i(Ke, { children: ki.map((d) => /* @__PURE__ */ F(be, { onClick: () => y(d), children: [
2765
+ /* @__PURE__ */ i(Ke, { children: Wi.map((d) => /* @__PURE__ */ F(be, { onClick: () => y(d), children: [
2765
2766
  d,
2766
2767
  " %"
2767
2768
  ] }, d)) })
@@ -2774,7 +2775,7 @@ const xe = {
2774
2775
  disabled: T,
2775
2776
  onClick: v,
2776
2777
  "aria-label": p == null ? void 0 : p.zoomInTooltip,
2777
- children: /* @__PURE__ */ i(Wi, {})
2778
+ children: /* @__PURE__ */ i(Mi, {})
2778
2779
  }
2779
2780
  ) })
2780
2781
  ] }) : null;
@@ -2803,8 +2804,8 @@ const xe = {
2803
2804
  ] });
2804
2805
  }, an = () => {
2805
2806
  const { searchIcon: e } = pe();
2806
- return e || /* @__PURE__ */ i(bo, {});
2807
- }, $i = () => {
2807
+ return e || /* @__PURE__ */ i(Co, {});
2808
+ }, Gi = () => {
2808
2809
  const { container: e } = ge(), [t, n] = $(!1), { pdf: o } = J(), [r, a] = $(null), {
2809
2810
  searchOptions: l,
2810
2811
  setSearchOptions: s,
@@ -2874,7 +2875,7 @@ const xe = {
2874
2875
  placeholder: d == null ? void 0 : d.searchInputPlaceholder,
2875
2876
  className: Y["rp-search-input"],
2876
2877
  ref: a,
2877
- children: !!C && /* @__PURE__ */ i("span", { className: Y["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(Co, {}) })
2878
+ children: !!C && /* @__PURE__ */ i("span", { className: Y["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(To, {}) })
2878
2879
  }
2879
2880
  ) }),
2880
2881
  u ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Ct, { className: Y["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: R }),
@@ -2895,15 +2896,15 @@ const xe = {
2895
2896
  ] })
2896
2897
  }
2897
2898
  ) }) : null;
2898
- }, Gi = "_loading_vpexk_1", Ne = {
2899
+ }, qi = "_loading_vpexk_1", Ne = {
2899
2900
  "rp-loading-overlay": "_rp-loading-overlay_vpexk_1",
2900
2901
  "rp-loading-modal": "_rp-loading-modal_vpexk_14",
2901
2902
  "rp-loading-title": "_rp-loading-title_vpexk_27",
2902
2903
  "rp-loading-progress-bar": "_rp-loading-progress-bar_vpexk_35",
2903
2904
  "rp-loading-progress": "_rp-loading-progress_vpexk_35",
2904
2905
  "rp-loading-cancel-button": "_rp-loading-cancel-button_vpexk_55",
2905
- loading: Gi
2906
- }, qi = ({ percentage: e }) => {
2906
+ loading: qi
2907
+ }, Vi = ({ percentage: e }) => {
2907
2908
  const { cancel: t } = tt(), { localeMessages: n } = se();
2908
2909
  return e < 1 ? null : /* @__PURE__ */ i("div", { className: ne(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ F("div", { className: ne(Ne["rp-loading-modal"]), children: [
2909
2910
  /* @__PURE__ */ F("div", { className: ne(Ne["rp-loading-title"]), children: [
@@ -2919,18 +2920,18 @@ const xe = {
2919
2920
  ) }),
2920
2921
  /* @__PURE__ */ i("button", { className: ne(Ne["rp-loading-cancel-button"]), onClick: t, children: n == null ? void 0 : n.printCancelLabel })
2921
2922
  ] }) });
2922
- }, Vi = $e((e, t) => {
2923
+ }, Ui = $e((e, t) => {
2923
2924
  const { showPrintProgress: n } = ve(), { progress: o } = tt(), { isSmallScreen: r } = Ce(), { percentage: a } = o || {}, l = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2924
2925
  return /* @__PURE__ */ F("div", { children: [
2925
2926
  /* @__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: [
2926
2927
  /* @__PURE__ */ F("div", { "data-rp": "topBarLeft", className: Fe["rp-toolbar-start"], children: [
2927
- /* @__PURE__ */ i($i, {}),
2928
- /* @__PURE__ */ i(ii, {})
2928
+ /* @__PURE__ */ i(Gi, {}),
2929
+ /* @__PURE__ */ i(ai, {})
2929
2930
  ] }),
2930
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i(Hi, {}) }),
2931
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Ai, {}) })
2931
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i($i, {}) }),
2932
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Fi, {}) })
2932
2933
  ] }) }),
2933
- n && a ? /* @__PURE__ */ i(qi, { percentage: a }) : null
2934
+ n && a ? /* @__PURE__ */ i(Vi, { percentage: a }) : null
2934
2935
  ] });
2935
2936
  }), gt = {
2936
2937
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
@@ -2943,7 +2944,7 @@ const xe = {
2943
2944
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
2944
2945
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2945
2946
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2946
- }, Ui = (e) => {
2947
+ }, Bi = (e) => {
2947
2948
  const { thumbnailSrc: t, pageNumber: n, isFocused: o, viewport: r } = e, { goToPage: a } = ie(), l = W(() => o ? ke["rp-thumbnail-active"] : "", [o]), s = W(() => ({
2948
2949
  width: Math.round(r.width),
2949
2950
  height: Math.round(r.height)
@@ -2983,10 +2984,10 @@ const xe = {
2983
2984
  }, sn = {
2984
2985
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2985
2986
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2986
- }, Bi = 16, Zi = (e, t) => {
2987
+ }, Zi = 16, ji = (e, t) => {
2987
2988
  const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
2988
- e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - Bi);
2989
- }, ji = $e((e, t) => {
2989
+ e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - Zi);
2990
+ }, Ki = $e((e, t) => {
2990
2991
  const { show: n } = e, { focusedPage: o, totalPages: r } = ie(), { thumbnailPages: a, addPage: l, thumbnailLength: s, addToPage: u } = Cn(), p = H(null), m = H(1);
2991
2992
  cn(t, () => p.current);
2992
2993
  const v = W(() => Object.values(a), [a]), h = N(() => {
@@ -2994,11 +2995,11 @@ const xe = {
2994
2995
  _ <= r && l(_);
2995
2996
  }, [l, r, s]);
2996
2997
  return k(() => {
2997
- o > s ? u(o) : n && m.current !== o && (Zi(p.current, o), m.current = o);
2998
+ o > s ? u(o) : n && m.current !== o && (ji(p.current, o), m.current = o);
2998
2999
  }, [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) => {
2999
3000
  var S, C;
3000
3001
  return /* @__PURE__ */ i(
3001
- Ui,
3002
+ Bi,
3002
3003
  {
3003
3004
  isFocused: o === ((S = _.page) == null ? void 0 : S.pageNumber),
3004
3005
  pageNumber: (C = _.page) == null ? void 0 : C.pageNumber,
@@ -3009,10 +3010,10 @@ const xe = {
3009
3010
  T
3010
3011
  );
3011
3012
  }) : null }) });
3012
- }), Ki = () => {
3013
+ }), Xi = () => {
3013
3014
  const { thumbnailIcon: e } = pe();
3014
3015
  return e || /* @__PURE__ */ i(mr, {});
3015
- }, Xi = () => {
3016
+ }, Yi = () => {
3016
3017
  const { active: e, setActive: t } = Cn(), [n, o] = $(200), r = H(null), { thumbnailTool: a, sidebarEnable: l } = ve(), { localeMessages: s } = se(), u = N(() => {
3017
3018
  t((m) => !m);
3018
3019
  }, []), 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(
@@ -3021,7 +3022,7 @@ const xe = {
3021
3022
  onClick: u,
3022
3023
  active: e,
3023
3024
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
3024
- children: /* @__PURE__ */ i(Ki, {})
3025
+ children: /* @__PURE__ */ i(Xi, {})
3025
3026
  }
3026
3027
  ) }) : null, [a, e, u, s]);
3027
3028
  return /* @__PURE__ */ i(fe, { children: l && /* @__PURE__ */ F(
@@ -3039,7 +3040,7 @@ const xe = {
3039
3040
  hidden: !e,
3040
3041
  className: gt["rp-thumbnails-wrapper"],
3041
3042
  children: [
3042
- /* @__PURE__ */ i(ji, { show: e, ref: r }),
3043
+ /* @__PURE__ */ i(Ki, { show: e, ref: r }),
3043
3044
  /* @__PURE__ */ i(gr, { onWidthChange: o, thumbnailRef: r })
3044
3045
  ]
3045
3046
  }
@@ -3055,7 +3056,7 @@ const xe = {
3055
3056
  "rp-loader": "_rp-loader_gz5nb_52",
3056
3057
  "rp-theme-variables": "_rp-theme-variables_gz5nb_56",
3057
3058
  "rp-dark-mode": "_rp-dark-mode_gz5nb_161"
3058
- }, Yi = $e(
3059
+ }, Ji = $e(
3059
3060
  (e, t) => {
3060
3061
  const { children: n, toolbarRef: o, style: r, className: a } = e, { customVariables: l, customDarkVariables: s } = Pr(), { darkMode: u } = rr();
3061
3062
  return /* @__PURE__ */ i(
@@ -3078,7 +3079,7 @@ const xe = {
3078
3079
  }
3079
3080
  );
3080
3081
  }
3081
- ), Us = $e((e, t) => {
3082
+ ), Bs = $e((e, t) => {
3082
3083
  const {
3083
3084
  children: n,
3084
3085
  slots: o,
@@ -3092,12 +3093,12 @@ const xe = {
3092
3093
  } = e, [v, h] = $(null), { setContainer: _, setContentRef: T } = ge(), { loading: S } = J(), { LoaderImageComponent: C } = pn();
3093
3094
  return k(() => (u && u(), () => {
3094
3095
  p && p();
3095
- }), [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: [
3096
+ }), [u, p]), /* @__PURE__ */ i(Ji, { 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: [
3096
3097
  /* @__PURE__ */ F(br, { children: [
3097
3098
  /* @__PURE__ */ F("div", { className: _e["rp-layout"], children: [
3098
- /* @__PURE__ */ i(Vi, { ref: h }),
3099
+ /* @__PURE__ */ i(Ui, { ref: h }),
3099
3100
  /* @__PURE__ */ F("div", { className: _e["rp-content"], children: [
3100
- /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(Xi, {}) }),
3101
+ /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(Yi, {}) }),
3101
3102
  /* @__PURE__ */ i("div", { ref: T, className: _e["rp-pages"], children: n })
3102
3103
  ] })
3103
3104
  ] }),
@@ -3134,49 +3135,49 @@ const xe = {
3134
3135
  ] }) }) }) }) });
3135
3136
  });
3136
3137
  export {
3137
- Oo as A,
3138
+ Do as A,
3138
3139
  on as B,
3139
- xo as C,
3140
- Qo as D,
3141
- $i as E,
3140
+ Io as C,
3141
+ ei as D,
3142
+ Gi as E,
3142
3143
  qn as F,
3143
- Vi as G,
3144
- Ui as H,
3145
- ji as I,
3146
- Xi as J,
3147
- Yi as K,
3148
- qi as L,
3149
- Di as M,
3150
- zi as O,
3151
- Ws as P,
3152
- Gs as R,
3153
- $s as S,
3154
- Hs as T,
3155
- Hi as Z,
3156
- Ms as a,
3157
- Us as b,
3144
+ Ui as G,
3145
+ Bi as H,
3146
+ Ki as I,
3147
+ Yi as J,
3148
+ Ji as K,
3149
+ Vi as L,
3150
+ zi as M,
3151
+ Ai as O,
3152
+ Ms as P,
3153
+ qs as R,
3154
+ Gs as S,
3155
+ $s as T,
3156
+ $i as Z,
3157
+ Hs as a,
3158
+ Bs as b,
3158
3159
  Hn as c,
3159
3160
  tt as d,
3160
3161
  xt as e,
3161
3162
  vn as f,
3162
- To as g,
3163
+ Po as g,
3163
3164
  wn as h,
3164
- Po as i,
3165
+ So as i,
3165
3166
  _n as j,
3166
- So as k,
3167
+ yo as k,
3167
3168
  bn as l,
3168
3169
  Cn as m,
3169
- yo as n,
3170
+ xo as n,
3170
3171
  Tn as o,
3171
- Lo as p,
3172
- zo as q,
3172
+ Eo as p,
3173
+ Ao as q,
3173
3174
  It as r,
3174
- Xo as s,
3175
- ei as t,
3175
+ Yo as s,
3176
+ ti as t,
3176
3177
  ie as u,
3177
- ti as v,
3178
- ii as w,
3179
- Ti as x,
3178
+ ni as v,
3179
+ ai as w,
3180
+ Pi as x,
3180
3181
  Bn as y,
3181
- Ai as z
3182
+ Fi as z
3182
3183
  };