@pdf-viewer/react 1.6.0-beta.7 → 1.6.0-beta.9

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 (48) hide show
  1. package/dist/{RPDefaultLayout-0db14109.js → RPDefaultLayout-1ed94040.js} +199 -199
  2. package/dist/components/RPController.js +51 -52
  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 +2 -3
  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 +18 -19
  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 +16 -17
  36. package/dist/main.js +1 -1
  37. package/dist/types/components/layout/toolbar/ViewModeTool.d.ts +1 -1
  38. package/dist/types/utils/types.d.ts +2 -3
  39. package/dist/utils/hooks/useFileDownload.js +1 -1
  40. package/dist/utils/hooks/useLicense.js +1 -1
  41. package/dist/utils/hooks/usePaginate.js +1 -1
  42. package/dist/utils/hooks/usePresentPage.js +1 -1
  43. package/dist/utils/hooks/usePrint.js +1 -1
  44. package/dist/utils/hooks/useScrollToPage.js +1 -1
  45. package/dist/utils/hooks/useSearch.js +1 -1
  46. package/dist/utils/hooks/useThumbnail.js +1 -1
  47. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  48. package/package.json +1 -1
@@ -74,23 +74,22 @@ import { PropertyItem as io } from "./components/layout/toolbar/PropertyItem.js"
74
74
  import { useOtherToolContext as ao, OtherToolProvider as so } from "./contexts/OtherToolContext.js";
75
75
  import { DocumentProperties as co } from "./components/layout/toolbar/DocumentProperties.js";
76
76
  import { RotateTool as lo } from "./components/layout/toolbar/RotateTool.js";
77
- import { ViewModeTool as uo } from "./components/layout/toolbar/ViewModeTool.js";
78
- import { ScrollModeTool as po } from "./components/layout/toolbar/ScrollModeTool.js";
77
+ import { ScrollModeTool as uo } from "./components/layout/toolbar/ScrollModeTool.js";
79
78
  import { MenuSeparator as xt } from "./components/layout/toolbar/MenuSeparator.js";
80
- import { FileDownloadDefaultIcon as ho } from "./components/icons/FileDownloadDefaultIcon.js";
79
+ import { FileDownloadDefaultIcon as po } from "./components/icons/FileDownloadDefaultIcon.js";
81
80
  import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
82
- import { PrintDefaultTool as mo } from "./components/icons/PrintDefaultIcon.js";
81
+ import { PrintDefaultTool as ho } from "./components/icons/PrintDefaultIcon.js";
83
82
  import { FullScreenTool as _n } from "./components/layout/toolbar/FullScreenTool.js";
84
83
  import { GoToDownIcon as wn } from "./components/icons/GoToDownIcon.js";
85
- import { SelectionModeTool as fo } from "./components/layout/toolbar/SelectionModeTool.js";
86
- import { ZoomInIcon as go } from "./components/icons/ZoomInIcon.js";
87
- import { ZoomOutIcon as vo } from "./components/icons/ZoomOutIcon.js";
84
+ import { SelectionModeTool as mo } from "./components/layout/toolbar/SelectionModeTool.js";
85
+ import { ZoomInIcon as fo } from "./components/icons/ZoomInIcon.js";
86
+ import { ZoomOutIcon as go } from "./components/icons/ZoomOutIcon.js";
88
87
  import { PAGE_PADDING as Ht } from "./utils/constants.js";
89
- import { getZoomLevel as _o } from "./utils/getZoomLevel.js";
90
- import { SearchIcon as wo } from "./components/icons/SearchIcon.js";
88
+ import { getZoomLevel as vo } from "./utils/getZoomLevel.js";
89
+ import { SearchIcon as _o } from "./components/icons/SearchIcon.js";
91
90
  import { c as K, S as $t } from "./SearchCloseButton-959cc1ed.js";
92
91
  import { UICheckbox as Gt } from "./components/ui/Checkbox.js";
93
- import { ClearIcon as bo } from "./components/icons/ClearIcon.js";
92
+ import { ClearIcon as wo } from "./components/icons/ClearIcon.js";
94
93
  import { InfoIcon as Vt } from "./components/icons/InfoIcon.js";
95
94
  import './assets/RPDefaultLayout.css';const bn = () => {
96
95
  const { viewMode: t } = De(), { scrollMode: e } = Oe(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = re(), c = W(), { columnCount: s } = un(), { widths: d, heights: u } = Ve(), p = W(e), f = W(t), h = W(s), { targetScrollPage: g } = hn();
@@ -185,7 +184,7 @@ import './assets/RPDefaultLayout.css';const bn = () => {
185
184
  d
186
185
  ]
187
186
  ) };
188
- }, Co = (t = 1) => {
187
+ }, bo = (t = 1) => {
189
188
  const [e, n] = $(t), [o, r] = $(0), { scrollToPage: a } = bn(), c = W(1), { viewMode: s } = De(), { scrollMode: d } = Oe(), { widths: u } = Ve(), { pagesRef: p } = me(), f = Pt(e, 100), h = L(
190
189
  (m) => {
191
190
  if (!/^[0-9]*$/g.test(m.toString()) || !m)
@@ -236,8 +235,8 @@ import './assets/RPDefaultLayout.css';const bn = () => {
236
235
  }), re = () => {
237
236
  const t = Je(Cn);
238
237
  return typeof (t == null ? void 0 : t.focusedPage) > "u" && qr.error("Please use this hooks inside children component of RPProvider"), t;
239
- }, As = ({ children: t }) => {
240
- const { pdf: e } = X(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: c, nextPage: s, prevPage: d } = Co();
238
+ }, Ds = ({ children: t }) => {
239
+ const { pdf: e } = X(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: c, nextPage: s, prevPage: d } = bo();
241
240
  return A(() => {
242
241
  e != null && e.numPages && (a(e.numPages), r(1));
243
242
  }, [e, a, r]), /* @__PURE__ */ i(
@@ -256,7 +255,7 @@ import './assets/RPDefaultLayout.css';const bn = () => {
256
255
  }
257
256
  );
258
257
  };
259
- const To = () => {
258
+ const Co = () => {
260
259
  const { pdf: t, pages: e } = X(), [n, o] = $({
261
260
  loadedPages: 0,
262
261
  totalPages: 0,
@@ -433,8 +432,8 @@ const To = () => {
433
432
  console.error("Error in setOnError callback:", e);
434
433
  }
435
434
  }
436
- }), Fs = ({ children: t }) => {
437
- const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: c, progress: s, isComplete: d, isError: u, error: p } = To(), f = L((_) => {
435
+ }), zs = ({ children: t }) => {
436
+ const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: c, progress: s, isComplete: d, isError: u, error: p } = Co(), f = L((_) => {
438
437
  _ && typeof _ == "function" && r(() => _);
439
438
  }, []), h = (_) => {
440
439
  p && _(p);
@@ -469,7 +468,7 @@ const To = () => {
469
468
  if (!t)
470
469
  throw new Error("usePrintContext must be used within a PrintProvider");
471
470
  return t;
472
- }, Po = () => {
471
+ }, To = () => {
473
472
  const [t, e] = $({}), { pages: n } = X(), { rotate: o } = Ge(), r = F(() => Object.keys(t).length, [t]), a = L(
474
473
  (s) => {
475
474
  if (!n.size || s > n.size)
@@ -556,11 +555,11 @@ const To = () => {
556
555
  setActive: (t) => {
557
556
  },
558
557
  active: !1
559
- }), Sn = () => Je(Pn), ks = ({
558
+ }), Sn = () => Je(Pn), As = ({
560
559
  children: t,
561
560
  initialThumbnailsVisible: e
562
561
  }) => {
563
- const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = Po(), [c, s] = $(e);
562
+ const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = To(), [c, s] = $(e);
564
563
  return /* @__PURE__ */ i(
565
564
  Pn.Provider,
566
565
  {
@@ -568,7 +567,7 @@ const To = () => {
568
567
  children: t
569
568
  }
570
569
  );
571
- }, So = (t = {}, e = "") => {
570
+ }, Po = (t = {}, e = "") => {
572
571
  const [n, o] = $(e), [r, a] = $(!1), { pdf: c, pages: s } = X(), { widths: d, heights: u } = Ve(), p = W(!n), { currentZoom: f } = Qe(), [h, g] = $([]), { setFocusedPage: C } = re(), { columnCount: P } = De(), { rotate: _ } = Ge(), [S, m] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: w } = et(), { scrollMode: l } = Oe(), { pagesRef: b } = me(), [T, y] = $(null), E = W({}), x = F(() => S === 0 ? null : h[S - 1], [S, h]), N = F(() => h.length, [h]);
573
572
  A(() => {
574
573
  if (!x || !s)
@@ -682,7 +681,7 @@ const To = () => {
682
681
  currentMatchElement: null,
683
682
  setCurrentMatchElement: (t) => {
684
683
  }
685
- }), Ms = ({
684
+ }), Fs = ({
686
685
  children: t,
687
686
  initialSearch: e
688
687
  }) => {
@@ -698,7 +697,7 @@ const To = () => {
698
697
  prevMatch: h,
699
698
  currentMatchElement: g,
700
699
  setCurrentMatchElement: C
701
- } = So(n, e);
700
+ } = Po(n, e);
702
701
  return /* @__PURE__ */ i(
703
702
  yn.Provider,
704
703
  {
@@ -733,7 +732,7 @@ const To = () => {
733
732
  "rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
734
733
  "rp-page": "_rp-page_h7a2q_1",
735
734
  "rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
736
- }, yo = (t) => {
735
+ }, So = (t) => {
737
736
  const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = W(null), { pages: a } = X(), { rotate: c } = Ge(), s = W(), { currentZoom: d } = Qe();
738
737
  return A(() => {
739
738
  if (!a || d === 0)
@@ -759,12 +758,12 @@ const To = () => {
759
758
  (p = s.current) == null || p.cancel();
760
759
  };
761
760
  }, [a, e, c, d, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
762
- }, xo = "_selecting_1x8te_9", Io = "_endOfContent_1x8te_24", Ae = {
761
+ }, yo = "_selecting_1x8te_9", xo = "_endOfContent_1x8te_24", Ae = {
763
762
  "rp-text-layer": "_rp-text-layer_1x8te_1",
764
- selecting: xo,
765
- endOfContent: Io,
763
+ selecting: yo,
764
+ endOfContent: xo,
766
765
  "rp-text-layer-text": "_rp-text-layer-text_1x8te_38"
767
- }, Lo = (t) => {
766
+ }, Io = (t) => {
768
767
  const { pageNumber: e } = t, { pages: n } = X(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: c } = It(), [s, d] = $(
769
768
  []
770
769
  ), u = W(), p = W(), f = W(), h = F(() => r.filter((v) => v.pageIndex === e - 1), [r, e]), g = L(
@@ -913,11 +912,11 @@ const To = () => {
913
912
  onMouseUp: m
914
913
  }
915
914
  );
916
- }, Ro = {
915
+ }, Lo = {
917
916
  "rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
918
917
  };
919
- let No = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
920
- const Eo = (t) => {
918
+ let Ro = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
919
+ const No = (t) => {
921
920
  const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = X(), a = W(), [c, s] = $(), { setFocusedPage: d, goToPage: u } = re(), { scrollMode: p } = Oe(), { print: f } = tt(), { download: h } = Vn(), g = F(() => o.get(e), [o, e]), C = F(() => g == null ? void 0 : g.page.getViewport(), [g]);
922
921
  A(() => {
923
922
  a.current && (a.current.div.replaceChildren(), a.current = void 0);
@@ -980,7 +979,7 @@ const Eo = (t) => {
980
979
  div: n.current,
981
980
  viewport: _.clone({ dontFlip: !0 }),
982
981
  page: g.page,
983
- imageResourcesPath: No,
982
+ imageResourcesPath: Ro,
984
983
  renderForms: !0,
985
984
  linkService: new Nr(),
986
985
  downloadManager: null,
@@ -999,14 +998,14 @@ const Eo = (t) => {
999
998
  {
1000
999
  "data-rp": `page-${e}-annotationLayer`,
1001
1000
  style: { width: `${C == null ? void 0 : C.width}px`, height: `${C == null ? void 0 : C.height}px` },
1002
- className: Ro["rp-annotation-layer"],
1001
+ className: Lo["rp-annotation-layer"],
1003
1002
  ref: n
1004
1003
  }
1005
1004
  );
1006
1005
  }, dt = {
1007
1006
  "rp-text-highlight-layer": "_rp-text-highlight-layer_1fxd3_1",
1008
1007
  "rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1fxd3_14"
1009
- }, Oo = ({ pageNumber: t }) => {
1008
+ }, Eo = ({ pageNumber: t }) => {
1010
1009
  const e = W(null), n = W(), o = W(), { pages: r } = X(), { highlightMatches: a } = mr(), c = F(() => a.filter((u) => u.pageIndex === t - 1), [a]), s = L(
1011
1010
  (d, u, p = !1) => {
1012
1011
  p && pn(d, u), hr(c, d, u);
@@ -1101,11 +1100,11 @@ const Eo = (t) => {
1101
1100
  },
1102
1101
  className: lt["rp-page"],
1103
1102
  children: [
1104
- /* @__PURE__ */ i(yo, { onLoading: _, onLoaded: S, pageNumber: n }),
1103
+ /* @__PURE__ */ i(So, { onLoading: _, onLoaded: S, pageNumber: n }),
1105
1104
  p && /* @__PURE__ */ i("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ i(Tt, {}) }),
1106
- s && /* @__PURE__ */ i(Lo, { pageNumber: n }),
1107
- /* @__PURE__ */ i(Oo, { pageNumber: n }),
1108
- /* @__PURE__ */ i(Eo, { pageNumber: n })
1105
+ s && /* @__PURE__ */ i(Io, { pageNumber: n }),
1106
+ /* @__PURE__ */ i(Eo, { pageNumber: n }),
1107
+ /* @__PURE__ */ i(No, { pageNumber: n })
1109
1108
  ]
1110
1109
  }
1111
1110
  )
@@ -1122,25 +1121,25 @@ function wt(t, e) {
1122
1121
  return n.__proto__ = o, n;
1123
1122
  }, wt(t, e);
1124
1123
  }
1125
- function Do(t, e) {
1124
+ function Oo(t, e) {
1126
1125
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, wt(t, e);
1127
1126
  }
1128
1127
  var qt = Number.isNaN || function(e) {
1129
1128
  return typeof e == "number" && e !== e;
1130
1129
  };
1131
- function zo(t, e) {
1130
+ function Do(t, e) {
1132
1131
  return !!(t === e || qt(t) && qt(e));
1133
1132
  }
1134
- function Ao(t, e) {
1133
+ function zo(t, e) {
1135
1134
  if (t.length !== e.length)
1136
1135
  return !1;
1137
1136
  for (var n = 0; n < t.length; n++)
1138
- if (!zo(t[n], e[n]))
1137
+ if (!Do(t[n], e[n]))
1139
1138
  return !1;
1140
1139
  return !0;
1141
1140
  }
1142
1141
  function ut(t, e) {
1143
- e === void 0 && (e = Ao);
1142
+ e === void 0 && (e = zo);
1144
1143
  var n, o = [], r, a = !1;
1145
1144
  function c() {
1146
1145
  for (var s = [], d = 0; d < arguments.length; d++)
@@ -1161,7 +1160,7 @@ function Zt(t, e) {
1161
1160
  }
1162
1161
  return n;
1163
1162
  }
1164
- var Fo = typeof performance == "object" && typeof performance.now == "function", Bt = Fo ? function() {
1163
+ var Ao = typeof performance == "object" && typeof performance.now == "function", Bt = Ao ? function() {
1165
1164
  return performance.now();
1166
1165
  } : function() {
1167
1166
  return Date.now();
@@ -1169,7 +1168,7 @@ var Fo = typeof performance == "object" && typeof performance.now == "function",
1169
1168
  function jt(t) {
1170
1169
  cancelAnimationFrame(t.id);
1171
1170
  }
1172
- function ko(t, e) {
1171
+ function Fo(t, e) {
1173
1172
  var n = Bt();
1174
1173
  function o() {
1175
1174
  Bt() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
@@ -1180,7 +1179,7 @@ function ko(t, e) {
1180
1179
  return r;
1181
1180
  }
1182
1181
  var pt = -1;
1183
- function Mo(t) {
1182
+ function ko(t) {
1184
1183
  if (t === void 0 && (t = !1), pt === -1 || t) {
1185
1184
  var e = document.createElement("div"), n = e.style;
1186
1185
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), pt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1197,17 +1196,17 @@ function Kt(t) {
1197
1196
  }
1198
1197
  return Le;
1199
1198
  }
1200
- var Wo = 150, Ho = function(e) {
1199
+ var Mo = 150, Wo = function(e) {
1201
1200
  var n = e.columnIndex;
1202
1201
  e.data;
1203
1202
  var o = e.rowIndex;
1204
1203
  return o + ":" + n;
1205
1204
  }, Ze = null, Be = null, je = null;
1206
1205
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ze = /* @__PURE__ */ new WeakSet(), Be = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet());
1207
- function $o(t) {
1206
+ function Ho(t) {
1208
1207
  var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, s = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, u = t.getOffsetForRowAndAlignment, p = t.getRowHeight, f = t.getRowOffset, h = t.getRowStartIndexForOffset, g = t.getRowStopIndexForStartIndex, C = t.initInstanceProps, P = t.shouldResetStyleCacheOnItemSizeChange, _ = t.validateProps;
1209
1208
  return e = /* @__PURE__ */ function(S) {
1210
- Do(m, S);
1209
+ Oo(m, S);
1211
1210
  function m(w) {
1212
1211
  var l;
1213
1212
  return l = S.call(this, w) || this, l._instanceProps = C(l.props, Ut(l)), l._resetIsScrollingTimeoutId = null, l._outerRef = void 0, l.state = {
@@ -1285,7 +1284,7 @@ function $o(t) {
1285
1284
  var T = l.props.outerRef;
1286
1285
  l._outerRef = b, typeof T == "function" ? T(b) : T != null && typeof T == "object" && T.hasOwnProperty("current") && (T.current = b);
1287
1286
  }, l._resetIsScrollingDebounced = function() {
1288
- l._resetIsScrollingTimeoutId !== null && jt(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = ko(l._resetIsScrolling, Wo);
1287
+ l._resetIsScrollingTimeoutId !== null && jt(l._resetIsScrollingTimeoutId), l._resetIsScrollingTimeoutId = Fo(l._resetIsScrolling, Mo);
1289
1288
  }, l._resetIsScrolling = function() {
1290
1289
  l._resetIsScrollingTimeoutId = null, l.setState({
1291
1290
  isScrolling: !1
@@ -1295,7 +1294,7 @@ function $o(t) {
1295
1294
  }, l;
1296
1295
  }
1297
1296
  m.getDerivedStateFromProps = function(l, b) {
1298
- return Go(l, b), _(l), null;
1297
+ return $o(l, b), _(l), null;
1299
1298
  };
1300
1299
  var v = m.prototype;
1301
1300
  return v.scrollTo = function(l) {
@@ -1310,7 +1309,7 @@ function $o(t) {
1310
1309
  };
1311
1310
  }, this._resetIsScrollingDebounced);
1312
1311
  }, v.scrollToItem = function(l) {
1313
- var b = l.align, T = b === void 0 ? "auto" : b, y = l.columnIndex, E = l.rowIndex, x = this.props, N = x.columnCount, z = x.height, k = x.rowCount, M = x.width, R = this.state, I = R.scrollLeft, O = R.scrollTop, H = Mo();
1312
+ var b = l.align, T = b === void 0 ? "auto" : b, y = l.columnIndex, E = l.rowIndex, x = this.props, N = x.columnCount, z = x.height, k = x.rowCount, M = x.width, R = this.state, I = R.scrollLeft, O = R.scrollTop, H = ko();
1314
1313
  y !== void 0 && (y = Math.max(0, Math.min(y, N - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, k - 1)));
1315
1314
  var q = c(this.props, this._instanceProps), B = s(this.props, this._instanceProps), J = B > M ? H : 0, j = q > z ? H : 0;
1316
1315
  this.scrollTo({
@@ -1349,7 +1348,7 @@ function $o(t) {
1349
1348
  }, v.componentWillUnmount = function() {
1350
1349
  this._resetIsScrollingTimeoutId !== null && jt(this._resetIsScrollingTimeoutId);
1351
1350
  }, v.render = function() {
1352
- var l = this.props, b = l.children, T = l.className, y = l.columnCount, E = l.direction, x = l.height, N = l.innerRef, z = l.innerElementType, k = l.innerTagName, M = l.itemData, R = l.itemKey, I = R === void 0 ? Ho : R, O = l.outerElementType, H = l.outerTagName, q = l.rowCount, B = l.style, J = l.useIsScrolling, j = l.width, Q = this.state.isScrolling, oe = this._getHorizontalRangeToRender(), ge = oe[0], le = oe[1], de = this._getVerticalRangeToRender(), ue = de[0], ze = de[1], Ie = [];
1351
+ var l = this.props, b = l.children, T = l.className, y = l.columnCount, E = l.direction, x = l.height, N = l.innerRef, z = l.innerElementType, k = l.innerTagName, M = l.itemData, R = l.itemKey, I = R === void 0 ? Wo : R, O = l.outerElementType, H = l.outerTagName, q = l.rowCount, B = l.style, J = l.useIsScrolling, j = l.width, Q = this.state.isScrolling, oe = this._getHorizontalRangeToRender(), ge = oe[0], le = oe[1], de = this._getVerticalRangeToRender(), ue = de[0], ze = de[1], Ie = [];
1353
1352
  if (y > 0 && q)
1354
1353
  for (var Ce = ue; Ce <= ze; Ce++)
1355
1354
  for (var ve = ge; ve <= le; ve++)
@@ -1417,7 +1416,7 @@ function $o(t) {
1417
1416
  useIsScrolling: !1
1418
1417
  }, e;
1419
1418
  }
1420
- var Go = function(e, n) {
1419
+ var $o = function(e, n) {
1421
1420
  var o = e.children, r = e.direction, a = e.height, c = e.innerTagName, s = e.outerTagName, d = e.overscanColumnsCount, u = e.overscanCount, p = e.overscanRowsCount, f = e.width, h = n.instance;
1422
1421
  if (process.env.NODE_ENV !== "production") {
1423
1422
  if (typeof u == "number" && Ze && !Ze.has(h) && (Ze.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof p == "number") && Be && !Be.has(h) && (Be.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != 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)
@@ -1472,7 +1471,7 @@ var Go = function(e, n) {
1472
1471
  var a, c;
1473
1472
  e === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
1474
1473
  var s = c > 0 ? a[c].offset : 0;
1475
- return s >= r ? Ln(e, n, o, c, 0, r) : Vo(e, n, o, Math.max(0, c), r);
1474
+ return s >= r ? Ln(e, n, o, c, 0, r) : Go(e, n, o, Math.max(0, c), r);
1476
1475
  }, Ln = function(e, n, o, r, a, c) {
1477
1476
  for (; a <= r; ) {
1478
1477
  var s = a + Math.floor((r - a) / 2), d = pe(e, n, s, o).offset;
@@ -1481,7 +1480,7 @@ var Go = function(e, n) {
1481
1480
  d < c ? a = s + 1 : d > c && (r = s - 1);
1482
1481
  }
1483
1482
  return a > 0 ? a - 1 : 0;
1484
- }, Vo = function(e, n, o, r, a) {
1483
+ }, Go = function(e, n, o, r, a) {
1485
1484
  for (var c = e === "column" ? n.columnCount : n.rowCount, s = 1; r < c && pe(e, n, r, o).offset < a; )
1486
1485
  r += s, s *= 2;
1487
1486
  return Ln(e, n, o, Math.min(r, c - 1), Math.floor(r / 2), a);
@@ -1498,7 +1497,7 @@ var Go = function(e, n) {
1498
1497
  default:
1499
1498
  return a >= h && a <= f ? a : h > f || a < h ? h : f;
1500
1499
  }
1501
- }, Uo = /* @__PURE__ */ $o({
1500
+ }, Vo = /* @__PURE__ */ Ho({
1502
1501
  getColumnOffset: function(e, n, o) {
1503
1502
  return pe("column", e, n, o).offset;
1504
1503
  },
@@ -1580,12 +1579,12 @@ function Qt(t, e) {
1580
1579
  return !0;
1581
1580
  return !1;
1582
1581
  }
1583
- var qo = ["style"], Zo = ["style"];
1584
- function Bo(t, e) {
1585
- var n = t.style, o = Zt(t, qo), r = e.style, a = Zt(e, Zo);
1582
+ var Uo = ["style"], qo = ["style"];
1583
+ function Zo(t, e) {
1584
+ var n = t.style, o = Zt(t, Uo), r = e.style, a = Zt(e, qo);
1586
1585
  return !Qt(n, r) && !Qt(o, a);
1587
1586
  }
1588
- const jo = () => {
1587
+ const Bo = () => {
1589
1588
  const { viewMode: t } = De(), { scrollMode: e } = Oe(), { setColumnCount: n } = un(), { virtualScrollableElementRef: o } = et(), r = Ve(), a = L(
1590
1589
  (g) => r.widths[g] || 0,
1591
1590
  [r.widths]
@@ -1623,7 +1622,7 @@ mt == null || nn == null ? (bt = ht, Ct = function(e) {
1623
1622
  }, en);
1624
1623
  return [n, o];
1625
1624
  });
1626
- function Ko(t) {
1625
+ function jo(t) {
1627
1626
  let e, n, o, r, a, c, s;
1628
1627
  const d = typeof document < "u" && document.attachEvent;
1629
1628
  if (!d) {
@@ -1695,7 +1694,7 @@ function Ko(t) {
1695
1694
  }
1696
1695
  };
1697
1696
  }
1698
- class Xo extends nr {
1697
+ class Ko extends nr {
1699
1698
  constructor(...e) {
1700
1699
  super(...e), this.state = {
1701
1700
  height: this.props.defaultHeight || 0,
@@ -1736,7 +1735,7 @@ class Xo extends nr {
1736
1735
  const o = n.ownerDocument.defaultView.ResizeObserver;
1737
1736
  o != null ? (this._resizeObserver = new o(() => {
1738
1737
  this._timeoutId = setTimeout(this._onResize, 0);
1739
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = Ko(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1738
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = jo(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1740
1739
  }
1741
1740
  }
1742
1741
  componentWillUnmount() {
@@ -1774,7 +1773,7 @@ class Xo extends nr {
1774
1773
  }, !m && e(S));
1775
1774
  }
1776
1775
  }
1777
- const Yo = ({ widths: t, heights: e }) => {
1776
+ const Xo = ({ widths: t, heights: e }) => {
1778
1777
  const { focusedPage: n, totalPages: o } = re(), r = F(() => {
1779
1778
  const s = [], d = Math.ceil(n / 2) * 2 - 1;
1780
1779
  if (s.push(d), d + 1 < o) {
@@ -1798,7 +1797,7 @@ const Yo = ({ widths: t, heights: e }) => {
1798
1797
  }
1799
1798
  ], [t, e, r]), c = F(() => a.reduce((s, d) => s + Number(d.width || 0), 0), [a]);
1800
1799
  return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: r.map((s, d) => /* @__PURE__ */ i(Lt, { style: a[d], pageNumber: s }, s)) });
1801
- }, Jo = ({ widths: t, heights: e }) => {
1800
+ }, Yo = ({ widths: t, heights: e }) => {
1802
1801
  const { focusedPage: n } = re(), o = F(() => ({
1803
1802
  position: "absolute",
1804
1803
  width: t(n - 1),
@@ -1814,7 +1813,7 @@ const Yo = ({ widths: t, heights: e }) => {
1814
1813
  children: /* @__PURE__ */ i(Lt, { style: o, pageNumber: n }, n)
1815
1814
  }
1816
1815
  );
1817
- }, Qo = (t, e, n) => {
1816
+ }, Jo = (t, e, n) => {
1818
1817
  const o = W(), { contentRef: r } = me(), { heights: a, widths: c } = Ve(), { setFocusedPage: s } = re(), [d, u] = $([]), { targetScrollPage: p } = hn(), f = Pt(d, 0, 500), h = F(() => a.map((C, P) => {
1819
1818
  const _ = c[P], S = Gr(P + 1, t), m = _ * S.columnIndex, v = C * S.rowIndex, w = m + _, l = v + C;
1820
1819
  return {
@@ -1832,7 +1831,9 @@ const Yo = ({ widths: t, heights: e }) => {
1832
1831
  var P;
1833
1832
  f.length > 0 && !p.current && s(f[0].pageNumber);
1834
1833
  let C = (P = f[0]) == null ? void 0 : P.ratio;
1835
- C && f.filter((_) => Math.round(_.ratio) === Math.round(C)).some((_) => _.pageNumber === p.current) && (p.current = void 0);
1834
+ C && f.filter((_) => Math.round(_.ratio) === Math.round(C)).some((_) => _.pageNumber === p.current) && setTimeout(() => {
1835
+ p.current = void 0;
1836
+ }, 500);
1836
1837
  }, [f, s]);
1837
1838
  const g = L(
1838
1839
  (C) => {
@@ -1863,10 +1864,10 @@ const Yo = ({ widths: t, heights: e }) => {
1863
1864
  n == null || n.removeEventListener("scroll", g);
1864
1865
  };
1865
1866
  }, [n, g]);
1866
- }, ei = rr(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1867
+ }, Qo = rr(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
1867
1868
  const r = Vr(e, t, n.columnCount);
1868
1869
  return /* @__PURE__ */ i(Lt, { style: o, pageNumber: r }, r);
1869
- }, Bo), Ws = () => {
1870
+ }, Zo), ks = () => {
1870
1871
  const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = lr(), { pagesRef: o, setPagesRef: r } = me(), { scrollToPage: a } = bn(), {
1871
1872
  virtualScrollRef: c,
1872
1873
  getVirtualScrollRef: s,
@@ -1889,8 +1890,8 @@ const Yo = ({ widths: t, heights: e }) => {
1889
1890
  columnWidth: H,
1890
1891
  estimatedColumnWidth: q,
1891
1892
  estimatedRowHeight: B
1892
- } = jo(), J = Pt(h, 100), j = W();
1893
- Qo(O, R, f);
1893
+ } = Bo(), J = Pt(h, 100), j = W();
1894
+ Jo(O, R, f);
1894
1895
  const Q = W({
1895
1896
  scrollTop: 0,
1896
1897
  scrollLeft: 0
@@ -2017,16 +2018,16 @@ const Yo = ({ widths: t, heights: e }) => {
2017
2018
  S,
2018
2019
  J
2019
2020
  ]), /* @__PURE__ */ D(he, { children: [
2020
- /* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Xo, { style: { minHeight: "50px" }, children: ({ width: G, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Xn, style: { width: G, height: V }, children: v === Y.PAGE_SCROLLING ? /* @__PURE__ */ i(
2021
+ /* @__PURE__ */ i("div", { id: n, ref: r, tabIndex: -1, className: rt, children: /* @__PURE__ */ i(Ko, { style: { minHeight: "50px" }, children: ({ width: G, height: V }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Xn, style: { width: G, height: V }, children: v === Y.PAGE_SCROLLING ? /* @__PURE__ */ i(
2021
2022
  "div",
2022
2023
  {
2023
2024
  ref: d,
2024
2025
  style: { width: G, height: V },
2025
2026
  className: ee(se["rp-pages"], se["rp-page-scrolling-wrapper"]),
2026
- children: w === He.DUAL_PAGE ? /* @__PURE__ */ i(Yo, { widths: H, heights: I }) : /* @__PURE__ */ i(Jo, { widths: H, heights: I })
2027
+ children: w === He.DUAL_PAGE ? /* @__PURE__ */ i(Xo, { widths: H, heights: I }) : /* @__PURE__ */ i(Yo, { widths: H, heights: I })
2027
2028
  }
2028
2029
  ) : q ? /* @__PURE__ */ i(
2029
- Uo,
2030
+ Vo,
2030
2031
  {
2031
2032
  ref: s,
2032
2033
  itemData: ze,
@@ -2045,7 +2046,7 @@ const Yo = ({ widths: t, heights: e }) => {
2045
2046
  se["rp-pages"],
2046
2047
  v === Y.HORIZONTAL_SCROLLING ? se["rp-pages-horizontal-scroll"] : ""
2047
2048
  ),
2048
- children: ei
2049
+ children: Qo
2049
2050
  }
2050
2051
  ) : b ? null : /* @__PURE__ */ i(
2051
2052
  "div",
@@ -2073,13 +2074,13 @@ const Yo = ({ widths: t, heights: e }) => {
2073
2074
  "rp-paginate": "_rp-paginate_1y9vo_1",
2074
2075
  "rp-page-input": "_rp-page-input_1y9vo_6",
2075
2076
  "rp-total-page": "_rp-total-page_1y9vo_11"
2076
- }, ti = () => {
2077
+ }, ei = () => {
2077
2078
  const { prevIcon: t } = ce();
2078
2079
  return t || /* @__PURE__ */ i(We, {});
2079
- }, ni = () => {
2080
+ }, ti = () => {
2080
2081
  const { nextIcon: t } = ce();
2081
2082
  return t || /* @__PURE__ */ i(We, { style: { transform: "rotate(180deg" } });
2082
- }, ri = () => {
2083
+ }, ni = () => {
2083
2084
  const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = re(), [c, s] = $(t.toString()), { pageNavigationTool: d = !0 } = fe(), { isSmallScreen: u } = be(), { localeMessages: p } = ie();
2084
2085
  A(() => {
2085
2086
  s(t.toString());
@@ -2115,7 +2116,7 @@ const Yo = ({ widths: t, heights: e }) => {
2115
2116
  onClick: r,
2116
2117
  "aria-label": p == null ? void 0 : p.previousPageTooltip,
2117
2118
  "aria-disabled": t === 1,
2118
- children: /* @__PURE__ */ i(ti, {})
2119
+ children: /* @__PURE__ */ i(ei, {})
2119
2120
  }
2120
2121
  ) }),
2121
2122
  /* @__PURE__ */ i(Z, { content: p == null ? void 0 : p.currentPageTooltip, children: /* @__PURE__ */ i(
@@ -2138,12 +2139,12 @@ const Yo = ({ widths: t, heights: e }) => {
2138
2139
  onClick: o,
2139
2140
  "aria-label": p == null ? void 0 : p.nextPageTooltip,
2140
2141
  "aria-disabled": t === e,
2141
- children: /* @__PURE__ */ i(ni, {})
2142
+ children: /* @__PURE__ */ i(ti, {})
2142
2143
  }
2143
2144
  ) })
2144
2145
  ] }) : null;
2145
2146
  };
2146
- var Rt = "Dialog", [Rn, Hs] = jr(Rt), [oi, ae] = Rn(Rt), Nn = (t) => {
2147
+ var Rt = "Dialog", [Rn, Ms] = jr(Rt), [ri, ae] = Rn(Rt), Nn = (t) => {
2147
2148
  const {
2148
2149
  __scopeDialog: e,
2149
2150
  children: n,
@@ -2157,7 +2158,7 @@ var Rt = "Dialog", [Rn, Hs] = jr(Rt), [oi, ae] = Rn(Rt), Nn = (t) => {
2157
2158
  onChange: a
2158
2159
  });
2159
2160
  return /* @__PURE__ */ i(
2160
- oi,
2161
+ ri,
2161
2162
  {
2162
2163
  scope: e,
2163
2164
  triggerRef: s,
@@ -2174,7 +2175,7 @@ var Rt = "Dialog", [Rn, Hs] = jr(Rt), [oi, ae] = Rn(Rt), Nn = (t) => {
2174
2175
  );
2175
2176
  };
2176
2177
  Nn.displayName = Rt;
2177
- var En = "DialogTrigger", ii = U.forwardRef(
2178
+ var En = "DialogTrigger", oi = U.forwardRef(
2178
2179
  (t, e) => {
2179
2180
  const { __scopeDialog: n, ...o } = t, r = ae(En, n), a = St(e, r.triggerRef);
2180
2181
  return /* @__PURE__ */ i(
@@ -2192,22 +2193,22 @@ var En = "DialogTrigger", ii = U.forwardRef(
2192
2193
  );
2193
2194
  }
2194
2195
  );
2195
- ii.displayName = En;
2196
- var Nt = "DialogPortal", [ai, On] = Rn(Nt, {
2196
+ oi.displayName = En;
2197
+ var Nt = "DialogPortal", [ii, On] = Rn(Nt, {
2197
2198
  forceMount: void 0
2198
2199
  }), Dn = (t) => {
2199
2200
  const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ae(Nt, e);
2200
- return /* @__PURE__ */ i(ai, { scope: e, forceMount: n, children: U.Children.map(o, (c) => /* @__PURE__ */ i(yt, { present: n || a.open, children: /* @__PURE__ */ i(no, { asChild: !0, container: r, children: c }) })) });
2201
+ return /* @__PURE__ */ i(ii, { scope: e, forceMount: n, children: U.Children.map(o, (c) => /* @__PURE__ */ i(yt, { present: n || a.open, children: /* @__PURE__ */ i(no, { asChild: !0, container: r, children: c }) })) });
2201
2202
  };
2202
2203
  Dn.displayName = Nt;
2203
2204
  var Xe = "DialogOverlay", zn = U.forwardRef(
2204
2205
  (t, e) => {
2205
2206
  const n = On(Xe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ae(Xe, t.__scopeDialog);
2206
- return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(si, { ...r, ref: e }) }) : null;
2207
+ return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(ai, { ...r, ref: e }) }) : null;
2207
2208
  }
2208
2209
  );
2209
2210
  zn.displayName = Xe;
2210
- var si = U.forwardRef(
2211
+ var ai = U.forwardRef(
2211
2212
  (t, e) => {
2212
2213
  const { __scopeDialog: n, ...o } = t, r = ae(Xe, n);
2213
2214
  return (
@@ -2227,11 +2228,11 @@ var si = U.forwardRef(
2227
2228
  ), xe = "DialogContent", An = U.forwardRef(
2228
2229
  (t, e) => {
2229
2230
  const n = On(xe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ae(xe, t.__scopeDialog);
2230
- return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(ci, { ...r, ref: e }) : /* @__PURE__ */ i(li, { ...r, ref: e }) });
2231
+ return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(si, { ...r, ref: e }) : /* @__PURE__ */ i(ci, { ...r, ref: e }) });
2231
2232
  }
2232
2233
  );
2233
2234
  An.displayName = xe;
2234
- var ci = U.forwardRef(
2235
+ var si = U.forwardRef(
2235
2236
  (t, e) => {
2236
2237
  const n = ae(xe, t.__scopeDialog), o = U.useRef(null), r = St(e, n.contentRef, o);
2237
2238
  return U.useEffect(() => {
@@ -2260,7 +2261,7 @@ var ci = U.forwardRef(
2260
2261
  }
2261
2262
  );
2262
2263
  }
2263
- ), li = U.forwardRef(
2264
+ ), ci = U.forwardRef(
2264
2265
  (t, e) => {
2265
2266
  const n = ae(xe, t.__scopeDialog), o = U.useRef(!1), r = U.useRef(!1);
2266
2267
  return /* @__PURE__ */ i(
@@ -2311,8 +2312,8 @@ var ci = U.forwardRef(
2311
2312
  }
2312
2313
  ),
2313
2314
  /* @__PURE__ */ D(he, { children: [
2314
- /* @__PURE__ */ i(ui, { titleId: s.titleId }),
2315
- /* @__PURE__ */ i(hi, { contentRef: d, descriptionId: s.descriptionId })
2315
+ /* @__PURE__ */ i(di, { titleId: s.titleId }),
2316
+ /* @__PURE__ */ i(pi, { contentRef: d, descriptionId: s.descriptionId })
2316
2317
  ] })
2317
2318
  ] });
2318
2319
  }
@@ -2323,13 +2324,13 @@ var ci = U.forwardRef(
2323
2324
  }
2324
2325
  );
2325
2326
  kn.displayName = Et;
2326
- var Mn = "DialogDescription", di = U.forwardRef(
2327
+ var Mn = "DialogDescription", li = U.forwardRef(
2327
2328
  (t, e) => {
2328
2329
  const { __scopeDialog: n, ...o } = t, r = ae(Mn, n);
2329
2330
  return /* @__PURE__ */ i(Ue.p, { id: r.descriptionId, ...o, ref: e });
2330
2331
  }
2331
2332
  );
2332
- di.displayName = Mn;
2333
+ li.displayName = Mn;
2333
2334
  var Wn = "DialogClose", Hn = U.forwardRef(
2334
2335
  (t, e) => {
2335
2336
  const { __scopeDialog: n, ...o } = t, r = ae(Wn, n);
@@ -2348,11 +2349,11 @@ Hn.displayName = Wn;
2348
2349
  function Ot(t) {
2349
2350
  return t ? "open" : "closed";
2350
2351
  }
2351
- var $n = "DialogTitleWarning", [$s, Gn] = Xr($n, {
2352
+ var $n = "DialogTitleWarning", [Ws, Gn] = Xr($n, {
2352
2353
  contentName: xe,
2353
2354
  titleName: Et,
2354
2355
  docsSlug: "dialog"
2355
- }), ui = ({ titleId: t }) => {
2356
+ }), di = ({ titleId: t }) => {
2356
2357
  const e = Gn($n), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2357
2358
 
2358
2359
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2361,14 +2362,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2361
2362
  return U.useEffect(() => {
2362
2363
  t && (document.getElementById(t) || console.error(n));
2363
2364
  }, [n, t]), null;
2364
- }, pi = "DialogDescriptionWarning", hi = ({ contentRef: t, descriptionId: e }) => {
2365
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gn(pi).contentName}}.`;
2365
+ }, ui = "DialogDescriptionWarning", pi = ({ contentRef: t, descriptionId: e }) => {
2366
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gn(ui).contentName}}.`;
2366
2367
  return U.useEffect(() => {
2367
2368
  var a;
2368
2369
  const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
2369
2370
  e && r && (document.getElementById(e) || console.warn(o));
2370
2371
  }, [o, t, e]), null;
2371
- }, mi = Nn, fi = Dn, gi = zn, vi = An, _i = kn, wi = Hn;
2372
+ }, hi = Nn, mi = Dn, fi = zn, gi = An, vi = kn, _i = Hn;
2372
2373
  const ye = {
2373
2374
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2374
2375
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2377,7 +2378,7 @@ const ye = {
2377
2378
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2378
2379
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2379
2380
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2380
- }, bi = () => {
2381
+ }, wi = () => {
2381
2382
  const { pdfProperties: t } = X(), { container: e } = me(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = ao(), { localeMessages: r } = ie(), a = F(() => {
2382
2383
  if (!t)
2383
2384
  return [];
@@ -2418,19 +2419,19 @@ const ye = {
2418
2419
  { label: r == null ? void 0 : r.propertiesPageCountLabel, value: S }
2419
2420
  ];
2420
2421
  }, [t, r]);
2421
- return /* @__PURE__ */ i(mi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(fi, { container: e, children: /* @__PURE__ */ D("div", { className: ye["rp-dialog-wrapper"], children: [
2422
- /* @__PURE__ */ i(gi, { className: ye["rp-dialog-overlay"] }),
2423
- /* @__PURE__ */ D(vi, { className: ye["rp-document-dialog"], children: [
2424
- /* @__PURE__ */ i(_i, { className: ye["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2422
+ return /* @__PURE__ */ i(hi, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(mi, { container: e, children: /* @__PURE__ */ D("div", { className: ye["rp-dialog-wrapper"], children: [
2423
+ /* @__PURE__ */ i(fi, { className: ye["rp-dialog-overlay"] }),
2424
+ /* @__PURE__ */ D(gi, { className: ye["rp-document-dialog"], children: [
2425
+ /* @__PURE__ */ i(vi, { className: ye["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
2425
2426
  /* @__PURE__ */ i("div", { className: ye["rp-document-properties"], children: a.map((c, s) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: ye["rp-properties-divider"] }) : /* @__PURE__ */ i(io, { label: c.label, value: c.value }) }, s)) }),
2426
- /* @__PURE__ */ i(wi, { asChild: !0, className: ye["rp-dialog-close"], children: /* @__PURE__ */ i(oo, {}) })
2427
+ /* @__PURE__ */ i(_i, { asChild: !0, className: ye["rp-dialog-close"], children: /* @__PURE__ */ i(oo, {}) })
2427
2428
  ] })
2428
2429
  ] }) }) });
2429
- }, Ci = {
2430
+ }, bi = {
2430
2431
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2431
- }, rn = ".pdf", Ti = (t) => URL.createObjectURL(t), Pi = async (t) => {
2432
+ }, rn = ".pdf", Ci = (t) => URL.createObjectURL(t), Ti = async (t) => {
2432
2433
  const n = await (await fetch(t)).blob();
2433
- return Ti(n);
2434
+ return Ci(n);
2434
2435
  }, Vn = () => {
2435
2436
  const { filename: t, pdfSrc: e } = X(), { downloadFilename: n } = fr(), o = (a) => {
2436
2437
  const c = n || a;
@@ -2440,26 +2441,26 @@ const ye = {
2440
2441
  if (!t || !e)
2441
2442
  throw new Error("There is no PDF source to download");
2442
2443
  const a = document.createElement("a");
2443
- a.href = await Pi(e), a.download = o(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2444
+ a.href = await Ti(e), a.download = o(t), document.body.appendChild(a), a.click(), document.body.removeChild(a);
2444
2445
  }, [t, e]) };
2445
2446
  }, Un = () => {
2446
2447
  const { downloadIcon: t } = ce();
2447
- return t || /* @__PURE__ */ i(ho, {});
2448
- }, qn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Si = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(qn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Un, {}) }) }), yi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(qn, { className: "rp-menu-item", localeMessages: e, children: [
2448
+ return t || /* @__PURE__ */ i(po, {});
2449
+ }, qn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Pi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(qn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Un, {}) }) }), Si = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(qn, { className: "rp-menu-item", localeMessages: e, children: [
2449
2450
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Un, {}) }),
2450
2451
  e == null ? void 0 : e.downloadFileLabel
2451
2452
  ] }) }), Zn = () => {
2452
2453
  const { download: t } = Vn(), { downloadTool: e = !0 } = fe(), { isSmallScreen: n } = be(), { localeMessages: o } = ie();
2453
- return e ? n ? /* @__PURE__ */ i(yi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(Si, { download: t, localeMessages: o }) : null : null;
2454
+ return e ? n ? /* @__PURE__ */ i(Si, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(Pi, { download: t, localeMessages: o }) : null : null;
2454
2455
  }, Bn = () => {
2455
2456
  const { printIcon: t } = ce();
2456
- return t || /* @__PURE__ */ i(mo, {});
2457
- }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), xi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(jn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Bn, {}) }) }), Ii = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(jn, { className: "rp-menu-item", localeMessages: e, children: [
2457
+ return t || /* @__PURE__ */ i(ho, {});
2458
+ }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(Z, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), yi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(jn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Bn, {}) }) }), xi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(jn, { className: "rp-menu-item", localeMessages: e, children: [
2458
2459
  /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Bn, {}) }),
2459
2460
  e == null ? void 0 : e.printLabel
2460
2461
  ] }) }), Kn = () => {
2461
2462
  const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = tt(), { printTool: c = !0 } = fe(), { isSmallScreen: s } = be(), { localeMessages: d } = ie();
2462
- return c ? s ? /* @__PURE__ */ i(Ii, { print: t, localeMessages: d }) : typeof c == "function" ? /* @__PURE__ */ i(
2463
+ return c ? s ? /* @__PURE__ */ i(xi, { print: t, localeMessages: d }) : typeof c == "function" ? /* @__PURE__ */ i(
2463
2464
  c,
2464
2465
  {
2465
2466
  print: t,
@@ -2469,16 +2470,16 @@ const ye = {
2469
2470
  setOnComplete: o,
2470
2471
  progress: a
2471
2472
  }
2472
- ) : c ? /* @__PURE__ */ i(xi, { print: t, localeMessages: d }) : null : null;
2473
- }, Li = {
2473
+ ) : c ? /* @__PURE__ */ i(yi, { print: t, localeMessages: d }) : null : null;
2474
+ }, Ii = {
2474
2475
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2475
- }, Ri = () => {
2476
+ }, Li = () => {
2476
2477
  const { goToFirstPageIcon: t } = ce();
2477
- return t || /* @__PURE__ */ i(wn, { className: Li["rp-go-to-Top"] });
2478
- }, Ni = () => {
2478
+ return t || /* @__PURE__ */ i(wn, { className: Ii["rp-go-to-Top"] });
2479
+ }, Ri = () => {
2479
2480
  const { goToLastPageIcon: t } = ce();
2480
2481
  return t || /* @__PURE__ */ i(wn, {});
2481
- }, on = { width: "100%" }, Ei = () => {
2482
+ }, on = { width: "100%" }, Ni = () => {
2482
2483
  const { goToPage: t, totalPages: e, focusedPage: n } = re(), { jumpNavigationTool: o = !0 } = fe(), { localeMessages: r } = ie(), a = F(() => n === 1, [n]), c = F(() => n === e, [n, e]), s = L(() => {
2483
2484
  t(1);
2484
2485
  }, [t]), d = L(() => {
@@ -2486,16 +2487,16 @@ const ye = {
2486
2487
  }, [t, e]);
2487
2488
  return o ? /* @__PURE__ */ D(Ke, { children: [
2488
2489
  /* @__PURE__ */ i(we, { onClick: s, children: /* @__PURE__ */ i(Z, { content: r == null ? void 0 : r.firstPageTooltip, style: on, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": a, children: [
2489
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ri, {}) }),
2490
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Li, {}) }),
2490
2491
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
2491
2492
  ] }) }) }),
2492
2493
  /* @__PURE__ */ i(we, { onClick: d, children: /* @__PURE__ */ i(Z, { content: r == null ? void 0 : r.lastPageTooltip, style: on, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2493
- /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ni, {}) }),
2494
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Ri, {}) }),
2494
2495
  /* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
2495
2496
  ] }) }) }),
2496
2497
  /* @__PURE__ */ i(xt, {})
2497
2498
  ] }) : null;
2498
- }, Oi = () => {
2499
+ }, Ei = () => {
2499
2500
  const { container: t } = me(), { isSmallScreen: e } = be(), {
2500
2501
  openFileTool: n,
2501
2502
  downloadTool: o,
@@ -2526,7 +2527,7 @@ const ye = {
2526
2527
  {
2527
2528
  container: t,
2528
2529
  triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(Z, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Br, {}) }) }) }),
2529
- children: /* @__PURE__ */ D("div", { className: Ci["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2530
+ children: /* @__PURE__ */ D("div", { className: bi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
2530
2531
  e && /* @__PURE__ */ D(Ke, { children: [
2531
2532
  /* @__PURE__ */ i(gn, {}),
2532
2533
  /* @__PURE__ */ i(Zn, {}),
@@ -2534,18 +2535,17 @@ const ye = {
2534
2535
  /* @__PURE__ */ i(_n, {}),
2535
2536
  /* @__PURE__ */ i(xt, {})
2536
2537
  ] }),
2537
- /* @__PURE__ */ i(Ei, {}),
2538
+ /* @__PURE__ */ i(Ni, {}),
2538
2539
  /* @__PURE__ */ i(lo, {}),
2539
- /* @__PURE__ */ i(fo, {}),
2540
+ /* @__PURE__ */ i(mo, {}),
2540
2541
  /* @__PURE__ */ i(uo, {}),
2541
- /* @__PURE__ */ i(po, {}),
2542
2542
  /* @__PURE__ */ i(co, {})
2543
2543
  ] })
2544
2544
  }
2545
2545
  ),
2546
- /* @__PURE__ */ i(bi, {})
2546
+ /* @__PURE__ */ i(wi, {})
2547
2547
  ] }) : null;
2548
- }, Di = () => {
2548
+ }, Oi = () => {
2549
2549
  const { isSmallScreen: t } = be();
2550
2550
  return /* @__PURE__ */ D(he, { children: [
2551
2551
  /* @__PURE__ */ i(Zr, {}),
@@ -2555,7 +2555,7 @@ const ye = {
2555
2555
  /* @__PURE__ */ i(Kn, {}),
2556
2556
  /* @__PURE__ */ i(_n, {})
2557
2557
  ] }),
2558
- /* @__PURE__ */ i(Oi, {})
2558
+ /* @__PURE__ */ i(Ei, {})
2559
2559
  ] });
2560
2560
  }, Re = {
2561
2561
  "rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
@@ -2563,13 +2563,13 @@ const ye = {
2563
2563
  "rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
2564
2564
  "rp-current-zoom-text": "_rp-current-zoom-text_cocqs_16",
2565
2565
  "rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
2566
- }, zi = 25, gt = 1e3, Ai = [50, 75, 100, 125, 150, 200, 300, 400], Fi = () => {
2566
+ }, Di = 25, gt = 1e3, zi = [50, 75, 100, 125, 150, 200, 300, 400], Ai = () => {
2567
2567
  const { zoomInIcon: t } = ce();
2568
+ return t || /* @__PURE__ */ i(fo, {});
2569
+ }, Fi = () => {
2570
+ const { zoomOutIcon: t } = ce();
2568
2571
  return t || /* @__PURE__ */ i(go, {});
2569
2572
  }, ki = () => {
2570
- const { zoomOutIcon: t } = ce();
2571
- return t || /* @__PURE__ */ i(vo, {});
2572
- }, Mi = () => {
2573
2573
  const { zoomLevel: t, setZoomLevel: e } = Qe(), { container: n, contentRef: o } = me(), { zoomTool: r = !0 } = fe(), { focusedPage: a } = re(), { rotate: c } = Ge(), { pages: s } = X(), { isSmallScreen: d } = be(), { localeMessages: u } = ie(), { viewMode: p } = De(), f = L(() => {
2574
2574
  e((m) => {
2575
2575
  const v = Math.floor(m / 25) * 25;
@@ -2580,12 +2580,12 @@ const ye = {
2580
2580
  const v = Math.ceil(m / 25) * 25;
2581
2581
  return Math.min(v - 25, gt);
2582
2582
  });
2583
- }, [e]), g = F(() => t === zi, [t]), C = F(() => t === gt, [t]), P = F(() => {
2583
+ }, [e]), g = F(() => t === Di, [t]), C = F(() => t === gt, [t]), P = F(() => {
2584
2584
  var m;
2585
2585
  return (m = s.get(a)) == null ? void 0 : m.page.getViewport({ scale: 1, rotation: c });
2586
2586
  }, [s, a, c]), _ = L(
2587
2587
  (m) => {
2588
- const v = ((P == null ? void 0 : P.width) || 0) + 2 * Ht, w = ((P == null ? void 0 : P.height) || 0) + 2 * Ht, l = (o == null ? void 0 : o.clientWidth) || 0, b = (o == null ? void 0 : o.clientHeight) || 0, T = _o(
2588
+ const v = ((P == null ? void 0 : P.width) || 0) + 2 * Ht, w = ((P == null ? void 0 : P.height) || 0) + 2 * Ht, l = (o == null ? void 0 : o.clientWidth) || 0, b = (o == null ? void 0 : o.clientHeight) || 0, T = vo(
2589
2589
  m,
2590
2590
  l,
2591
2591
  b,
@@ -2609,7 +2609,7 @@ const ye = {
2609
2609
  disabled: g,
2610
2610
  onClick: h,
2611
2611
  "aria-label": u == null ? void 0 : u.zoomOutTooltip,
2612
- children: /* @__PURE__ */ i(ki, {})
2612
+ children: /* @__PURE__ */ i(Fi, {})
2613
2613
  }
2614
2614
  ) }),
2615
2615
  !d && /* @__PURE__ */ i(
@@ -2637,7 +2637,7 @@ const ye = {
2637
2637
  /* @__PURE__ */ i(we, { onClick: () => S(at.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
2638
2638
  ] }),
2639
2639
  /* @__PURE__ */ i(xt, {}),
2640
- /* @__PURE__ */ i(Ke, { children: Ai.map((m) => /* @__PURE__ */ D(we, { onClick: () => S(m), children: [
2640
+ /* @__PURE__ */ i(Ke, { children: zi.map((m) => /* @__PURE__ */ D(we, { onClick: () => S(m), children: [
2641
2641
  m,
2642
2642
  " %"
2643
2643
  ] }, m)) })
@@ -2650,7 +2650,7 @@ const ye = {
2650
2650
  disabled: C,
2651
2651
  onClick: f,
2652
2652
  "aria-label": u == null ? void 0 : u.zoomInTooltip,
2653
- children: /* @__PURE__ */ i(Fi, {})
2653
+ children: /* @__PURE__ */ i(Ai, {})
2654
2654
  }
2655
2655
  ) })
2656
2656
  ] }) : null;
@@ -2679,8 +2679,8 @@ const ye = {
2679
2679
  ] });
2680
2680
  }, sn = () => {
2681
2681
  const { searchIcon: t } = ce();
2682
- return t || /* @__PURE__ */ i(wo, {});
2683
- }, Wi = () => {
2682
+ return t || /* @__PURE__ */ i(_o, {});
2683
+ }, Mi = () => {
2684
2684
  const { container: t } = me(), [e, n] = $(!1), { pdf: o } = X(), [r, a] = $(null), {
2685
2685
  searchOptions: c,
2686
2686
  setSearchOptions: s,
@@ -2750,7 +2750,7 @@ const ye = {
2750
2750
  placeholder: m == null ? void 0 : m.searchInputPlaceholder,
2751
2751
  className: K["rp-search-input"],
2752
2752
  ref: a,
2753
- children: !!_ && /* @__PURE__ */ i("span", { className: K["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(bo, {}) })
2753
+ children: !!_ && /* @__PURE__ */ i("span", { className: K["rp-search-tool-input-clear"], onClick: x, children: /* @__PURE__ */ i(wo, {}) })
2754
2754
  }
2755
2755
  ) }),
2756
2756
  d ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Tt, { className: K["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: N }),
@@ -2771,15 +2771,15 @@ const ye = {
2771
2771
  ] })
2772
2772
  }
2773
2773
  ) }) : null;
2774
- }, Hi = "_loading_vpexk_1", Ne = {
2774
+ }, Wi = "_loading_vpexk_1", Ne = {
2775
2775
  "rp-loading-overlay": "_rp-loading-overlay_vpexk_1",
2776
2776
  "rp-loading-modal": "_rp-loading-modal_vpexk_14",
2777
2777
  "rp-loading-title": "_rp-loading-title_vpexk_27",
2778
2778
  "rp-loading-progress-bar": "_rp-loading-progress-bar_vpexk_35",
2779
2779
  "rp-loading-progress": "_rp-loading-progress_vpexk_35",
2780
2780
  "rp-loading-cancel-button": "_rp-loading-cancel-button_vpexk_55",
2781
- loading: Hi
2782
- }, $i = ({ percentage: t }) => {
2781
+ loading: Wi
2782
+ }, Hi = ({ percentage: t }) => {
2783
2783
  const { cancel: e } = tt(), { localeMessages: n } = ie();
2784
2784
  return t < 1 ? null : /* @__PURE__ */ i("div", { className: ee(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: ee(Ne["rp-loading-modal"]), children: [
2785
2785
  /* @__PURE__ */ D("div", { className: ee(Ne["rp-loading-title"]), children: [
@@ -2795,18 +2795,18 @@ const ye = {
2795
2795
  ) }),
2796
2796
  /* @__PURE__ */ i("button", { className: ee(Ne["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
2797
2797
  ] }) });
2798
- }, Gi = $e((t, e) => {
2798
+ }, $i = $e((t, e) => {
2799
2799
  const { showPrintProgress: n } = fe(), { progress: o } = tt(), { isSmallScreen: r } = be(), { percentage: a } = o || {}, c = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
2800
2800
  return /* @__PURE__ */ D("div", { children: [
2801
2801
  /* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: Fe["rp-toolbar-content"], children: /* @__PURE__ */ D("div", { className: Fe["rp-toolbar-wrapper"], style: c(), children: [
2802
2802
  /* @__PURE__ */ D("div", { "data-rp": "topBarLeft", className: Fe["rp-toolbar-start"], children: [
2803
- /* @__PURE__ */ i(Wi, {}),
2804
- /* @__PURE__ */ i(ri, {})
2803
+ /* @__PURE__ */ i(Mi, {}),
2804
+ /* @__PURE__ */ i(ni, {})
2805
2805
  ] }),
2806
- /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i(Mi, {}) }),
2807
- /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Di, {}) })
2806
+ /* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: Fe["rp-toolbar-middle"], children: /* @__PURE__ */ i(ki, {}) }),
2807
+ /* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: Fe["rp-toolbar-end"], children: /* @__PURE__ */ i(Oi, {}) })
2808
2808
  ] }) }),
2809
- n && a ? /* @__PURE__ */ i($i, { percentage: a }) : null
2809
+ n && a ? /* @__PURE__ */ i(Hi, { percentage: a }) : null
2810
2810
  ] });
2811
2811
  }), vt = {
2812
2812
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1sdl6_1",
@@ -2819,7 +2819,7 @@ const ye = {
2819
2819
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
2820
2820
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
2821
2821
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
2822
- }, Vi = (t) => {
2822
+ }, Gi = (t) => {
2823
2823
  const { thumbnailSrc: e, pageNumber: n, isFocused: o, viewport: r } = t, { goToPage: a } = re(), c = F(() => o ? ke["rp-thumbnail-active"] : "", [o]), s = F(() => ({
2824
2824
  width: Math.round(r.width),
2825
2825
  height: Math.round(r.height)
@@ -2859,10 +2859,10 @@ const ye = {
2859
2859
  }, cn = {
2860
2860
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
2861
2861
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
2862
- }, Ui = 16, qi = (t, e) => {
2862
+ }, Vi = 16, Ui = (t, e) => {
2863
2863
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
2864
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ui);
2865
- }, Zi = $e((t, e) => {
2864
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Vi);
2865
+ }, qi = $e((t, e) => {
2866
2866
  const { show: n } = t, { focusedPage: o, totalPages: r } = re(), { thumbnailPages: a, addPage: c, thumbnailLength: s, addToPage: d } = Sn(), u = W(null), p = W(1);
2867
2867
  ln(e, () => u.current);
2868
2868
  const f = F(() => Object.values(a), [a]), h = L(() => {
@@ -2870,11 +2870,11 @@ const ye = {
2870
2870
  g <= r && c(g);
2871
2871
  }, [c, r, s]);
2872
2872
  return A(() => {
2873
- o > s ? d(o) : n && p.current !== o && (qi(u.current, o), p.current = o);
2873
+ o > s ? d(o) : n && p.current !== o && (Ui(u.current, o), p.current = o);
2874
2874
  }, [o, s, d, n, f]), vr(u.current, h), /* @__PURE__ */ i("div", { ref: u, className: cn["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: cn["rp-thumbnails"], children: n ? f.map((g, C) => {
2875
2875
  var P, _;
2876
2876
  return /* @__PURE__ */ i(
2877
- Vi,
2877
+ Gi,
2878
2878
  {
2879
2879
  isFocused: o === ((P = g.page) == null ? void 0 : P.pageNumber),
2880
2880
  pageNumber: (_ = g.page) == null ? void 0 : _.pageNumber,
@@ -2885,10 +2885,10 @@ const ye = {
2885
2885
  C
2886
2886
  );
2887
2887
  }) : null }) });
2888
- }), Bi = () => {
2888
+ }), Zi = () => {
2889
2889
  const { thumbnailIcon: t } = ce();
2890
2890
  return t || /* @__PURE__ */ i(gr, {});
2891
- }, ji = () => {
2891
+ }, Bi = () => {
2892
2892
  const { active: t, setActive: e } = Sn(), [n, o] = $(200), r = W(null), { thumbnailTool: a, sidebarEnable: c } = fe(), { localeMessages: s } = ie(), d = L(() => {
2893
2893
  e((p) => !p);
2894
2894
  }, []), u = F(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: d, active: t }) : a ? /* @__PURE__ */ i(Z, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
@@ -2897,7 +2897,7 @@ const ye = {
2897
2897
  onClick: d,
2898
2898
  active: t,
2899
2899
  "aria-label": s == null ? void 0 : s.thumbnailTooltip,
2900
- children: /* @__PURE__ */ i(Bi, {})
2900
+ children: /* @__PURE__ */ i(Zi, {})
2901
2901
  }
2902
2902
  ) }) : null, [a, t, d, s]);
2903
2903
  return /* @__PURE__ */ i(he, { children: c && /* @__PURE__ */ D(
@@ -2915,7 +2915,7 @@ const ye = {
2915
2915
  hidden: !t,
2916
2916
  className: vt["rp-thumbnails-wrapper"],
2917
2917
  children: [
2918
- /* @__PURE__ */ i(Zi, { show: t, ref: r }),
2918
+ /* @__PURE__ */ i(qi, { show: t, ref: r }),
2919
2919
  /* @__PURE__ */ i(_r, { onWidthChange: o, thumbnailRef: r })
2920
2920
  ]
2921
2921
  }
@@ -2931,7 +2931,7 @@ const ye = {
2931
2931
  "rp-loader": "_rp-loader_bfglg_52",
2932
2932
  "rp-theme-variables": "_rp-theme-variables_bfglg_56",
2933
2933
  "rp-dark-mode": "_rp-dark-mode_bfglg_161"
2934
- }, Ki = $e(
2934
+ }, ji = $e(
2935
2935
  (t, e) => {
2936
2936
  const { children: n, toolbarRef: o, style: r, className: a } = t, { customVariables: c, customDarkVariables: s } = yr(), { darkMode: d } = ar();
2937
2937
  return /* @__PURE__ */ i(
@@ -2954,7 +2954,7 @@ const ye = {
2954
2954
  }
2955
2955
  );
2956
2956
  }
2957
- ), Gs = $e((t, e) => {
2957
+ ), Hs = $e((t, e) => {
2958
2958
  const {
2959
2959
  children: n,
2960
2960
  slots: o,
@@ -2968,12 +2968,12 @@ const ye = {
2968
2968
  } = t, [f, h] = $(null), { setContainer: g, setContentRef: C } = me(), { loading: P } = X(), { LoaderImageComponent: _ } = mn();
2969
2969
  return A(() => (d && d(), () => {
2970
2970
  u && u();
2971
- }), [d, u]), /* @__PURE__ */ i(Ki, { toolbarRef: f, ref: e, children: /* @__PURE__ */ i(Sr, { mobileWidth: s, onLayoutWidthChange: p, children: /* @__PURE__ */ i(wr, { slots: o, children: /* @__PURE__ */ i(br, { icons: r, children: /* @__PURE__ */ D(Cr, { getContainerRef: g, style: a, className: c, children: [
2971
+ }), [d, u]), /* @__PURE__ */ i(ji, { toolbarRef: f, ref: e, children: /* @__PURE__ */ i(Sr, { mobileWidth: s, onLayoutWidthChange: p, children: /* @__PURE__ */ i(wr, { slots: o, children: /* @__PURE__ */ i(br, { icons: r, children: /* @__PURE__ */ D(Cr, { getContainerRef: g, style: a, className: c, children: [
2972
2972
  /* @__PURE__ */ D(Tr, { children: [
2973
2973
  /* @__PURE__ */ D("div", { className: _e["rp-layout"], children: [
2974
- /* @__PURE__ */ i(Gi, { ref: h }),
2974
+ /* @__PURE__ */ i($i, { ref: h }),
2975
2975
  /* @__PURE__ */ D("div", { className: _e["rp-content"], children: [
2976
- /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(ji, {}) }),
2976
+ /* @__PURE__ */ i("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ i(Bi, {}) }),
2977
2977
  /* @__PURE__ */ i("div", { ref: C, className: _e["rp-pages"], children: n })
2978
2978
  ] })
2979
2979
  ] }),
@@ -3010,49 +3010,49 @@ const ye = {
3010
3010
  ] }) }) }) }) });
3011
3011
  });
3012
3012
  export {
3013
- Eo as A,
3013
+ No as A,
3014
3014
  an as B,
3015
- yo as C,
3016
- Yo as D,
3017
- Wi as E,
3015
+ So as C,
3016
+ Xo as D,
3017
+ Mi as E,
3018
3018
  Zn as F,
3019
- Gi as G,
3020
- Vi as H,
3021
- Zi as I,
3022
- ji as J,
3023
- Ki as K,
3024
- $i as L,
3025
- Ei as M,
3026
- Oi as O,
3027
- As as P,
3028
- Ws as R,
3029
- Ms as S,
3030
- ks as T,
3031
- Mi as Z,
3032
- Fs as a,
3033
- Gs as b,
3019
+ $i as G,
3020
+ Gi as H,
3021
+ qi as I,
3022
+ Bi as J,
3023
+ ji as K,
3024
+ Hi as L,
3025
+ Ni as M,
3026
+ Ei as O,
3027
+ Ds as P,
3028
+ ks as R,
3029
+ Fs as S,
3030
+ As as T,
3031
+ ki as Z,
3032
+ zs as a,
3033
+ Hs as b,
3034
3034
  Vn as c,
3035
3035
  tt as d,
3036
3036
  It as e,
3037
3037
  bn as f,
3038
- Co as g,
3038
+ bo as g,
3039
3039
  Cn as h,
3040
- To as i,
3040
+ Co as i,
3041
3041
  Tn as j,
3042
- Po as k,
3042
+ To as k,
3043
3043
  Pn as l,
3044
3044
  Sn as m,
3045
- So as n,
3045
+ Po as n,
3046
3046
  yn as o,
3047
- Lo as p,
3048
- Oo as q,
3047
+ Io as p,
3048
+ Eo as q,
3049
3049
  Lt as r,
3050
- jo as s,
3051
- Jo as t,
3050
+ Bo as s,
3051
+ Yo as t,
3052
3052
  re as u,
3053
- Qo as v,
3054
- ri as w,
3055
- bi as x,
3053
+ Jo as v,
3054
+ ni as w,
3055
+ wi as x,
3056
3056
  Kn as y,
3057
- Di as z
3057
+ Oi as z
3058
3058
  };