@react-pdf-kit/viewer 2.0.0-beta.10 → 2.0.0-beta.12

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 (181) hide show
  1. package/dist/{Combination-54a77a7a.js → Combination-136ff99c.js} +184 -187
  2. package/dist/Paginate.module-4eef00aa.js +8 -0
  3. package/dist/RPLayout.module-b4b23e29.js +14 -0
  4. package/dist/RPSplitter-f6acf13b.js +71 -0
  5. package/dist/ToolbarLayout.module-6e339802.js +12 -0
  6. package/dist/assets/style.css +1 -1
  7. package/dist/assets/style.js +32 -30
  8. package/dist/components/RPController.js +1 -1
  9. package/dist/components/RPDropFileZone.js +1 -1
  10. package/dist/components/RPPages.js +544 -497
  11. package/dist/components/RPProvider.js +32 -22
  12. package/dist/components/icons/DualPageWithCoverIcon.js +22 -0
  13. package/dist/components/layout/LayoutContainer.js +1 -1
  14. package/dist/components/layout/LayoutWrapper.js +1 -1
  15. package/dist/components/layout/RPDefaultLayout.js +58 -36
  16. package/dist/components/layout/RPLayout.js +32 -28
  17. package/dist/components/layout/SkipLink.js +29 -0
  18. package/dist/components/layout/WrapperLayout.js +1 -1
  19. package/dist/components/layout/sidebar/RPSidebar.js +32 -37
  20. package/dist/components/layout/sidebar/RPSplitter.js +6 -59
  21. package/dist/components/layout/sidebar/Thumbnail.js +57 -48
  22. package/dist/components/layout/sidebar/Thumbnails.js +9 -9
  23. package/dist/components/layout/toolbar/DarkModeTool.js +1 -1
  24. package/dist/components/layout/toolbar/DocumentDialog.js +28 -28
  25. package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
  26. package/dist/components/layout/toolbar/FileDownloadTool.js +3 -3
  27. package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
  28. package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
  29. package/dist/components/layout/toolbar/MenuItem.js +2 -2
  30. package/dist/components/layout/toolbar/MenuSeparator.js +2 -2
  31. package/dist/components/layout/toolbar/MostPageTool.js +3 -3
  32. package/dist/components/layout/toolbar/OtherTool.js +43 -34
  33. package/dist/components/layout/toolbar/Paginate.js +53 -46
  34. package/dist/components/layout/toolbar/PrintTool.js +3 -3
  35. package/dist/components/layout/toolbar/RPMenuItem.js +2 -2
  36. package/dist/components/layout/toolbar/RPMoreOptions.js +45 -44
  37. package/dist/components/layout/toolbar/RPToolbar.js +7 -6
  38. package/dist/components/layout/toolbar/RPToolbarEnd.js +6 -5
  39. package/dist/components/layout/toolbar/RotateTool.js +3 -3
  40. package/dist/components/layout/toolbar/ScrollModeTool.js +37 -37
  41. package/dist/components/layout/toolbar/SearchCloseButton.js +1 -1
  42. package/dist/components/layout/toolbar/SearchResultNavigator.js +44 -24
  43. package/dist/components/layout/toolbar/SearchTool.js +138 -117
  44. package/dist/components/layout/toolbar/SelectionModeTool.js +3 -3
  45. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  46. package/dist/components/layout/toolbar/ToolbarCustom.js +43 -27
  47. package/dist/components/layout/toolbar/ToolbarDefault.js +42 -33
  48. package/dist/components/layout/toolbar/ToolbarLayout.js +9 -8
  49. package/dist/components/layout/toolbar/ViewModeTool.js +43 -34
  50. package/dist/components/layout/toolbar/ZoomTool.js +3 -3
  51. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +2 -2
  52. package/dist/components/layout/toolbar/tools/DualPageTool.js +3 -3
  53. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +202 -0
  54. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +6 -6
  55. package/dist/components/layout/toolbar/tools/FileUploadTool.js +5 -5
  56. package/dist/components/layout/toolbar/tools/FirstPageTool.js +197 -0
  57. package/dist/components/layout/toolbar/tools/FullScreenTool.js +16 -15
  58. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +37 -0
  59. package/dist/components/layout/toolbar/tools/InputPageTool.js +35 -28
  60. package/dist/components/layout/toolbar/tools/LastPageTool.js +197 -0
  61. package/dist/components/layout/toolbar/tools/NextPageTool.js +9 -8
  62. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +37 -0
  63. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +15 -14
  64. package/dist/components/layout/toolbar/tools/PrintTool.js +4 -4
  65. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +12 -5
  66. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +9 -9
  67. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +18 -10
  68. package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
  69. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +10 -2
  70. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +13 -12
  71. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +37 -0
  72. package/dist/components/layout/toolbar/tools/ZoomInTool.js +15 -14
  73. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
  74. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +75 -41
  75. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +12 -11
  76. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +7 -6
  77. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +1 -1
  78. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +11 -11
  79. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +22 -15
  80. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +20 -13
  81. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +22 -14
  82. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +35 -19
  83. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +21 -14
  84. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +33 -19
  85. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +54 -36
  86. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +39 -23
  87. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +52 -29
  88. package/dist/components/page/AnnotationLayer.js +76 -69
  89. package/dist/components/page/CanvasLayer.js +1 -1
  90. package/dist/components/page/CustomElement.js +1 -1
  91. package/dist/components/page/DualPage.js +1 -1
  92. package/dist/components/page/DualPageWithCover.js +131 -0
  93. package/dist/components/page/RPPage.js +1 -1
  94. package/dist/components/page/SinglePage.js +1 -1
  95. package/dist/components/page/TextHighlightLayer.js +1 -1
  96. package/dist/components/page/TextLayer.js +1 -1
  97. package/dist/components/ui/Button.js +14 -12
  98. package/dist/components/ui/Checkbox.js +84 -77
  99. package/dist/components/ui/DropDown.js +2 -2
  100. package/dist/components/ui/Input.js +12 -11
  101. package/dist/components/ui/LoadingIndicator.js +1 -1
  102. package/dist/components/ui/PasswordModal.js +44 -30
  103. package/dist/contexts/DimensionPagesContext.js +1 -1
  104. package/dist/contexts/DropFileZoneContext.js +1 -1
  105. package/dist/contexts/ElementPageContext.js +1 -1
  106. package/dist/contexts/EventCallbackContext.js +12 -8
  107. package/dist/contexts/FileInputContext.js +1 -1
  108. package/dist/contexts/HighlightContext.js +1 -1
  109. package/dist/contexts/LocalizationContext.js +1 -1
  110. package/dist/contexts/PagesRotateContext.js +1 -1
  111. package/dist/contexts/PaginationContext.js +1 -1
  112. package/dist/contexts/PrintContext.js +1 -1
  113. package/dist/contexts/RPDocumentContext.js +1 -1
  114. package/dist/contexts/RenderQueueProvider.js +1 -1
  115. package/dist/contexts/RotationContext.js +1 -1
  116. package/dist/contexts/ScrollModeContext.js +1 -1
  117. package/dist/contexts/SearchContext.js +1 -1
  118. package/dist/contexts/SelectionModeContext.js +1 -1
  119. package/dist/contexts/ThumbnailsContext.js +1 -1
  120. package/dist/contexts/ViewModeContext.js +19 -15
  121. package/dist/contexts/ZoomContext.js +1 -1
  122. package/dist/de_DE-a553b162.js +489 -0
  123. package/dist/{index-4baea9b5.js → index-61f59539.js} +1 -1
  124. package/dist/main.js +115 -99
  125. package/dist/types/components/icons/DualPageWithCoverIcon.d.ts +2 -0
  126. package/dist/types/components/layout/LayoutContainer.d.ts +1 -5
  127. package/dist/types/components/layout/LayoutWrapper.d.ts +1 -5
  128. package/dist/types/components/layout/SkipLink.d.ts +7 -0
  129. package/dist/types/components/layout/sidebar/Thumbnails.d.ts +1 -3
  130. package/dist/types/components/layout/toolbar/RPToolbar.d.ts +1 -3
  131. package/dist/types/components/layout/toolbar/tools/DualPageWithCoverTool.d.ts +3 -0
  132. package/dist/types/components/layout/toolbar/tools/FirstPageTool.d.ts +3 -0
  133. package/dist/types/components/layout/toolbar/tools/HorizontalScrollingTool.d.ts +3 -0
  134. package/dist/types/components/layout/toolbar/tools/LastPageTool.d.ts +3 -0
  135. package/dist/types/components/layout/toolbar/tools/PageScrollingTool.d.ts +3 -0
  136. package/dist/types/components/layout/toolbar/tools/VerticalScrollingTool.d.ts +3 -0
  137. package/dist/types/components/page/DualPageWithCover.d.ts +5 -0
  138. package/dist/types/components/page/RPPage.d.ts +1 -3
  139. package/dist/types/components/ui/Button.d.ts +1 -3
  140. package/dist/types/components/ui/Checkbox.d.ts +1 -0
  141. package/dist/types/components/ui/Input.d.ts +1 -3
  142. package/dist/types/components/ui/RPTooltip.d.ts +1 -3
  143. package/dist/types/locales/de_DE.json.d.ts +83 -0
  144. package/dist/types/locales/en_US.json.d.ts +2 -0
  145. package/dist/types/locales/it_IT.json.d.ts +2 -0
  146. package/dist/types/locales/pt_PT.json.d.ts +2 -0
  147. package/dist/types/locales/th_TH.json.d.ts +2 -0
  148. package/dist/types/locales/zh_CN.json.d.ts +2 -0
  149. package/dist/types/main.d.ts +7 -1
  150. package/dist/types/utils/annotations.d.ts +10 -1
  151. package/dist/types/utils/calculatePage.d.ts +3 -3
  152. package/dist/types/utils/hooks/usePresentPage.d.ts +2 -1
  153. package/dist/types/utils/hooks/useTextSelection.d.ts +7 -0
  154. package/dist/types/utils/types.d.ts +34 -3
  155. package/dist/types/utils/withRef.d.ts +5 -4
  156. package/dist/utils/annotations.js +145 -150
  157. package/dist/utils/calculatePage.js +17 -11
  158. package/dist/utils/getZoomLevel.js +9 -9
  159. package/dist/utils/highlight.js +139 -139
  160. package/dist/utils/hooks/useFileDownload.js +1 -1
  161. package/dist/utils/hooks/useLicense.js +1 -1
  162. package/dist/utils/hooks/useLoadPdf.js +1 -1
  163. package/dist/utils/hooks/useLocalization.js +12 -11
  164. package/dist/utils/hooks/usePageRotateContext.js +1 -1
  165. package/dist/utils/hooks/usePaginate.js +1 -1
  166. package/dist/utils/hooks/usePinch.js +1 -1
  167. package/dist/utils/hooks/usePresentPage.js +45 -45
  168. package/dist/utils/hooks/usePrint.js +1 -1
  169. package/dist/utils/hooks/useRotate.js +1 -1
  170. package/dist/utils/hooks/useScrollToPage.js +1 -1
  171. package/dist/utils/hooks/useSearch.js +76 -62
  172. package/dist/utils/hooks/useTextSelection.js +76 -0
  173. package/dist/utils/hooks/useThumbnail.js +1 -1
  174. package/dist/utils/hooks/useVirtualReactWindow.js +60 -42
  175. package/dist/utils/types.js +14 -13
  176. package/dist/utils/withRef.js +5 -5
  177. package/package.json +5 -6
  178. package/dist/Paginate.module-206a7d7d.js +0 -8
  179. package/dist/RPLayout.module-967bf4bc.js +0 -13
  180. package/dist/ToolbarLayout.module-1fee0a18.js +0 -11
  181. package/dist/th_TH-d627cd51.js +0 -398
@@ -1,41 +1,43 @@
1
- import { jsx as A, jsxs as _e, Fragment as ot } from "react/jsx-runtime";
2
- import { createElement as ue, PureComponent as nt, Component as it, memo as st, useRef as q, useMemo as we, useCallback as le, useEffect as oe } from "react";
3
- import { RPPage as at } from "./page/RPPage.js";
4
- import { useVirtualReactWindow as lt } from "../utils/hooks/useVirtualReactWindow.js";
5
- import { useVirtualScrollContext as ct } from "../contexts/VirtualScrollContext.js";
6
- import { a as ut, u as dt } from "../PaginationContext-9217cab4.js";
7
- import { useDocumentContext as mt } from "../contexts/RPDocumentContext.js";
8
- import { useViewModeContext as ft } from "../contexts/ViewModeContext.js";
9
- import { useScrollModeContext as pt } from "../contexts/ScrollModeContext.js";
10
- import { SelectionMode as ht, ScrollMode as Se, ViewMode as gt, ErrorType as vt } from "../utils/types.js";
11
- import { useFullScreenContext as _t } from "../contexts/FullScreenContext.js";
1
+ import { jsx as y, jsxs as we, Fragment as at } from "react/jsx-runtime";
2
+ import { createElement as ue, PureComponent as lt, Component as ct, memo as ut, useRef as B, useMemo as Ce, useCallback as se, useEffect as te } from "react";
3
+ import { RPPage as Se } from "./page/RPPage.js";
4
+ import { useVirtualReactWindow as dt } from "../utils/hooks/useVirtualReactWindow.js";
5
+ import { useVirtualScrollContext as ft } from "../contexts/VirtualScrollContext.js";
6
+ import { a as mt, u as pt } from "../PaginationContext-9217cab4.js";
7
+ import { useDocumentContext as ht } from "../contexts/RPDocumentContext.js";
8
+ import { useViewModeContext as gt } from "../contexts/ViewModeContext.js";
9
+ import { useScrollModeContext as vt } from "../contexts/ScrollModeContext.js";
10
+ import { SelectionMode as _t, ViewMode as Ie, ScrollMode as Te, ErrorType as wt } from "../utils/types.js";
11
+ import { useFullScreenContext as Ct } from "../contexts/FullScreenContext.js";
12
12
  import { c as ce } from "../clsx-0c6e471a.js";
13
- import { DualPage as wt } from "./page/DualPage.js";
14
- import { SinglePage as St } from "./page/SinglePage.js";
15
- import { useMousePressed as Ct } from "../utils/hooks/useMousePressed.js";
16
- import { useSelectionModeContext as It } from "../contexts/SelectionModeContext.js";
17
- import { useGrabScroll as Tt } from "../utils/hooks/useGrabScroll.js";
18
- import { usePinch as Rt } from "../utils/hooks/usePinch.js";
19
- import { useInitialStateContext as xt } from "../contexts/InitialStateContext.js";
20
- import { useLayoutContainer as yt } from "../contexts/LayoutContainerContext.js";
21
- import { useDebounce as bt } from "../utils/hooks/useDebounce.js";
22
- import { useLoaderContext as zt } from "../contexts/LoaderContext.js";
23
- import Mt from "./ui/PasswordModal.js";
24
- import { usePresentPage as Lt } from "../utils/hooks/usePresentPage.js";
25
- import { getPageFromPosition as Et } from "../utils/calculatePage.js";
26
- import { useDocumentPasswordContext as Ot } from "../contexts/DocumentPasswordContext.js";
27
- import { LayoutContainer as Nt } from "./layout/LayoutContainer.js";
28
- import { LayoutWrapper as At } from "./layout/LayoutWrapper.js";
29
- import { useEventCallbackContext as Ft } from "../contexts/EventCallbackContext.js";
30
- import { OutputScale as Wt } from "pdfjs-dist";
31
- import { approximateFraction as Oe } from "../utils/approximateFragtion.js";
32
- import { useCopyText as Pt } from "../utils/hooks/useCopyText.js";
13
+ import { DualPage as St } from "./page/DualPage.js";
14
+ import { DualPageWithCover as It } from "./page/DualPageWithCover.js";
15
+ import { SinglePage as Tt } from "./page/SinglePage.js";
16
+ import { useMousePressed as Rt } from "../utils/hooks/useMousePressed.js";
17
+ import { useSelectionModeContext as xt } from "../contexts/SelectionModeContext.js";
18
+ import { useGrabScroll as yt } from "../utils/hooks/useGrabScroll.js";
19
+ import { usePinch as bt } from "../utils/hooks/usePinch.js";
20
+ import { useInitialStateContext as zt } from "../contexts/InitialStateContext.js";
21
+ import { useLayoutContainer as Lt } from "../contexts/LayoutContainerContext.js";
22
+ import { useDebounce as Mt } from "../utils/hooks/useDebounce.js";
23
+ import { useLoaderContext as Et } from "../contexts/LoaderContext.js";
24
+ import Ot from "./ui/PasswordModal.js";
25
+ import { usePresentPage as Wt } from "../utils/hooks/usePresentPage.js";
26
+ import { getPageFromPosition as At } from "../utils/calculatePage.js";
27
+ import { useDocumentPasswordContext as Nt } from "../contexts/DocumentPasswordContext.js";
28
+ import { LayoutContainer as Pt } from "./layout/LayoutContainer.js";
29
+ import { LayoutWrapper as Ft } from "./layout/LayoutWrapper.js";
30
+ import { useEventCallbackContext as Dt } from "../contexts/EventCallbackContext.js";
31
+ import { useCopyText as Ht } from "../utils/hooks/useCopyText.js";
32
+ import { useTextSelection as kt } from "../utils/hooks/useTextSelection.js";
33
+ import { OutputScale as Ut } from "pdfjs-dist";
34
+ import { approximateFraction as Ne } from "../utils/approximateFragtion.js";
33
35
  import "./page/CanvasLayer.js";
34
36
  import "../contexts/ZoomContext.js";
35
37
  import "../utils/appConsole.js";
36
38
  import "../utils/constants.js";
37
39
  import "../utils/getZoomLevel.js";
38
- import "../th_TH-d627cd51.js";
40
+ import "../de_DE-a553b162.js";
39
41
  import "../contexts/RotationContext.js";
40
42
  import "../utils/hooks/useLoadPdf.js";
41
43
  import "../utils/getThumbnailViewport.js";
@@ -84,11 +86,11 @@ import "./icons/LoaderIcon.js";
84
86
  import "../utils/hooks/useFullScreen.js";
85
87
  import "../contexts/LocalizationContext.js";
86
88
  import "../utils/hooks/useLocalization.js";
87
- import "../RPLayout.module-967bf4bc.js";
89
+ import "../RPLayout.module-b4b23e29.js";
88
90
  import "../contexts/ThemeContext.js";
89
91
  import "../contexts/DarkModeContext.js";
90
92
  import "../utils/hooks/useDarkMode.js";
91
- const k = {
93
+ const V = {
92
94
  "rp-pages": "_rp-pages_u7m2r_1",
93
95
  "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_u7m2r_6",
94
96
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_u7m2r_11",
@@ -100,234 +102,234 @@ const k = {
100
102
  "rp-not-supported": "_rp-not-supported_u7m2r_86",
101
103
  "rp-not-supported-content": "_rp-not-supported-content_u7m2r_102"
102
104
  };
103
- function xe() {
104
- return xe = Object.assign ? Object.assign.bind() : function(n) {
105
+ function ze() {
106
+ return ze = Object.assign ? Object.assign.bind() : function(n) {
105
107
  for (var e = 1; e < arguments.length; e++) {
106
108
  var t = arguments[e];
107
- for (var o in t)
108
- ({}).hasOwnProperty.call(t, o) && (n[o] = t[o]);
109
+ for (var r in t)
110
+ ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
109
111
  }
110
112
  return n;
111
- }, xe.apply(null, arguments);
113
+ }, ze.apply(null, arguments);
112
114
  }
113
- function Ne(n) {
115
+ function Pe(n) {
114
116
  if (n === void 0)
115
117
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
116
118
  return n;
117
119
  }
118
- function ye(n, e) {
119
- return ye = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, o) {
120
- return t.__proto__ = o, t;
121
- }, ye(n, e);
120
+ function Le(n, e) {
121
+ return Le = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
122
+ return t.__proto__ = r, t;
123
+ }, Le(n, e);
122
124
  }
123
- function Dt(n, e) {
124
- n.prototype = Object.create(e.prototype), n.prototype.constructor = n, ye(n, e);
125
+ function Vt(n, e) {
126
+ n.prototype = Object.create(e.prototype), n.prototype.constructor = n, Le(n, e);
125
127
  }
126
- var Ae = Number.isNaN || function(e) {
128
+ var Fe = Number.isNaN || function(e) {
127
129
  return typeof e == "number" && e !== e;
128
130
  };
129
- function Ht(n, e) {
130
- return !!(n === e || Ae(n) && Ae(e));
131
+ function qt(n, e) {
132
+ return !!(n === e || Fe(n) && Fe(e));
131
133
  }
132
- function kt(n, e) {
134
+ function Gt(n, e) {
133
135
  if (n.length !== e.length)
134
136
  return !1;
135
137
  for (var t = 0; t < n.length; t++)
136
- if (!Ht(n[t], e[t]))
138
+ if (!qt(n[t], e[t]))
137
139
  return !1;
138
140
  return !0;
139
141
  }
140
- function Ce(n, e) {
141
- e === void 0 && (e = kt);
142
- var t, o = [], i, l = !1;
142
+ function Re(n, e) {
143
+ e === void 0 && (e = Gt);
144
+ var t, r = [], i, l = !1;
143
145
  function a() {
144
146
  for (var c = [], d = 0; d < arguments.length; d++)
145
147
  c[d] = arguments[d];
146
- return l && t === this && e(c, o) || (i = n.apply(this, c), l = !0, t = this, o = c), i;
148
+ return l && t === this && e(c, r) || (i = n.apply(this, c), l = !0, t = this, r = c), i;
147
149
  }
148
150
  return a;
149
151
  }
150
- function Fe(n, e) {
152
+ function De(n, e) {
151
153
  if (n == null)
152
154
  return {};
153
155
  var t = {};
154
- for (var o in n)
155
- if ({}.hasOwnProperty.call(n, o)) {
156
- if (e.indexOf(o) !== -1)
156
+ for (var r in n)
157
+ if ({}.hasOwnProperty.call(n, r)) {
158
+ if (e.indexOf(r) !== -1)
157
159
  continue;
158
- t[o] = n[o];
160
+ t[r] = n[r];
159
161
  }
160
162
  return t;
161
163
  }
162
- var Ut = typeof performance == "object" && typeof performance.now == "function", We = Ut ? function() {
164
+ var $t = typeof performance == "object" && typeof performance.now == "function", He = $t ? function() {
163
165
  return performance.now();
164
166
  } : function() {
165
167
  return Date.now();
166
168
  };
167
- function Pe(n) {
169
+ function ke(n) {
168
170
  cancelAnimationFrame(n.id);
169
171
  }
170
- function Vt(n, e) {
171
- var t = We();
172
- function o() {
173
- We() - t >= e ? n.call(null) : i.id = requestAnimationFrame(o);
172
+ function jt(n, e) {
173
+ var t = He();
174
+ function r() {
175
+ He() - t >= e ? n.call(null) : i.id = requestAnimationFrame(r);
174
176
  }
175
177
  var i = {
176
- id: requestAnimationFrame(o)
178
+ id: requestAnimationFrame(r)
177
179
  };
178
180
  return i;
179
181
  }
180
- var Ie = -1;
181
- function qt(n) {
182
- if (n === void 0 && (n = !1), Ie === -1 || n) {
182
+ var xe = -1;
183
+ function Bt(n) {
184
+ if (n === void 0 && (n = !1), xe === -1 || n) {
183
185
  var e = document.createElement("div"), t = e.style;
184
- t.width = "50px", t.height = "50px", t.overflow = "scroll", document.body.appendChild(e), Ie = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
186
+ t.width = "50px", t.height = "50px", t.overflow = "scroll", document.body.appendChild(e), xe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
185
187
  }
186
- return Ie;
188
+ return xe;
187
189
  }
188
- var se = null;
189
- function De(n) {
190
- if (n === void 0 && (n = !1), se === null || n) {
190
+ var ne = null;
191
+ function Ue(n) {
192
+ if (n === void 0 && (n = !1), ne === null || n) {
191
193
  var e = document.createElement("div"), t = e.style;
192
194
  t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
193
- var o = document.createElement("div"), i = o.style;
194
- return i.width = "100px", i.height = "100px", e.appendChild(o), document.body.appendChild(e), e.scrollLeft > 0 ? se = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? se = "negative" : se = "positive-ascending"), document.body.removeChild(e), se;
195
+ var r = document.createElement("div"), i = r.style;
196
+ return i.width = "100px", i.height = "100px", e.appendChild(r), document.body.appendChild(e), e.scrollLeft > 0 ? ne = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? ne = "negative" : ne = "positive-ascending"), document.body.removeChild(e), ne;
195
197
  }
196
- return se;
198
+ return ne;
197
199
  }
198
- var Gt = 150, $t = function(e) {
200
+ var Kt = 150, Zt = function(e) {
199
201
  var t = e.columnIndex;
200
202
  e.data;
201
- var o = e.rowIndex;
202
- return o + ":" + t;
203
- }, de = null, me = null, fe = null;
204
- process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (de = /* @__PURE__ */ new WeakSet(), me = /* @__PURE__ */ new WeakSet(), fe = /* @__PURE__ */ new WeakSet());
205
- function jt(n) {
206
- var e, t = n.getColumnOffset, o = n.getColumnStartIndexForOffset, i = n.getColumnStopIndexForStartIndex, l = n.getColumnWidth, a = n.getEstimatedTotalHeight, c = n.getEstimatedTotalWidth, d = n.getOffsetForColumnAndAlignment, v = n.getOffsetForRowAndAlignment, g = n.getRowHeight, w = n.getRowOffset, s = n.getRowStartIndexForOffset, h = n.getRowStopIndexForStartIndex, O = n.initInstanceProps, _ = n.shouldResetStyleCacheOnItemSizeChange, P = n.validateProps;
207
- return e = /* @__PURE__ */ function(x) {
208
- Dt(R, x);
209
- function R(N) {
210
- var r;
211
- return r = x.call(this, N) || this, r._instanceProps = O(r.props, Ne(r)), r._resetIsScrollingTimeoutId = null, r._outerRef = void 0, r.state = {
212
- instance: Ne(r),
203
+ var r = e.rowIndex;
204
+ return r + ":" + t;
205
+ }, de = null, fe = null, me = null;
206
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (de = /* @__PURE__ */ new WeakSet(), fe = /* @__PURE__ */ new WeakSet(), me = /* @__PURE__ */ new WeakSet());
207
+ function Jt(n) {
208
+ var e, t = n.getColumnOffset, r = n.getColumnStartIndexForOffset, i = n.getColumnStopIndexForStartIndex, l = n.getColumnWidth, a = n.getEstimatedTotalHeight, c = n.getEstimatedTotalWidth, d = n.getOffsetForColumnAndAlignment, v = n.getOffsetForRowAndAlignment, g = n.getRowHeight, S = n.getRowOffset, s = n.getRowStartIndexForOffset, h = n.getRowStopIndexForStartIndex, W = n.initInstanceProps, _ = n.shouldResetStyleCacheOnItemSizeChange, N = n.validateProps;
209
+ return e = /* @__PURE__ */ function(b) {
210
+ Vt(T, b);
211
+ function T(A) {
212
+ var o;
213
+ return o = b.call(this, A) || this, o._instanceProps = W(o.props, Pe(o)), o._resetIsScrollingTimeoutId = null, o._outerRef = void 0, o.state = {
214
+ instance: Pe(o),
213
215
  isScrolling: !1,
214
216
  horizontalScrollDirection: "forward",
215
- scrollLeft: typeof r.props.initialScrollLeft == "number" ? r.props.initialScrollLeft : 0,
216
- scrollTop: typeof r.props.initialScrollTop == "number" ? r.props.initialScrollTop : 0,
217
+ scrollLeft: typeof o.props.initialScrollLeft == "number" ? o.props.initialScrollLeft : 0,
218
+ scrollTop: typeof o.props.initialScrollTop == "number" ? o.props.initialScrollTop : 0,
217
219
  scrollUpdateWasRequested: !1,
218
220
  verticalScrollDirection: "forward"
219
- }, r._callOnItemsRendered = void 0, r._callOnItemsRendered = Ce(function(m, u, f, S, p, C, b, z) {
220
- return r.props.onItemsRendered({
221
- overscanColumnStartIndex: m,
221
+ }, o._callOnItemsRendered = void 0, o._callOnItemsRendered = Re(function(f, u, m, w, p, R, L, O) {
222
+ return o.props.onItemsRendered({
223
+ overscanColumnStartIndex: f,
222
224
  overscanColumnStopIndex: u,
223
- overscanRowStartIndex: f,
224
- overscanRowStopIndex: S,
225
+ overscanRowStartIndex: m,
226
+ overscanRowStopIndex: w,
225
227
  visibleColumnStartIndex: p,
226
- visibleColumnStopIndex: C,
227
- visibleRowStartIndex: b,
228
- visibleRowStopIndex: z
228
+ visibleColumnStopIndex: R,
229
+ visibleRowStartIndex: L,
230
+ visibleRowStopIndex: O
229
231
  });
230
- }), r._callOnScroll = void 0, r._callOnScroll = Ce(function(m, u, f, S, p) {
231
- return r.props.onScroll({
232
- horizontalScrollDirection: f,
233
- scrollLeft: m,
232
+ }), o._callOnScroll = void 0, o._callOnScroll = Re(function(f, u, m, w, p) {
233
+ return o.props.onScroll({
234
+ horizontalScrollDirection: m,
235
+ scrollLeft: f,
234
236
  scrollTop: u,
235
- verticalScrollDirection: S,
237
+ verticalScrollDirection: w,
236
238
  scrollUpdateWasRequested: p
237
239
  });
238
- }), r._getItemStyle = void 0, r._getItemStyle = function(m, u) {
239
- var f = r.props, S = f.columnWidth, p = f.direction, C = f.rowHeight, b = r._getItemStyleCache(_ && S, _ && p, _ && C), z = m + ":" + u, M;
240
- if (b.hasOwnProperty(z))
241
- M = b[z];
240
+ }), o._getItemStyle = void 0, o._getItemStyle = function(f, u) {
241
+ var m = o.props, w = m.columnWidth, p = m.direction, R = m.rowHeight, L = o._getItemStyleCache(_ && w, _ && p, _ && R), O = f + ":" + u, x;
242
+ if (L.hasOwnProperty(O))
243
+ x = L[O];
242
244
  else {
243
- var L = t(r.props, u, r._instanceProps), I = p === "rtl";
244
- b[z] = M = {
245
+ var M = t(o.props, u, o._instanceProps), I = p === "rtl";
246
+ L[O] = x = {
245
247
  position: "absolute",
246
- left: I ? void 0 : L,
247
- right: I ? L : void 0,
248
- top: w(r.props, m, r._instanceProps),
249
- height: g(r.props, m, r._instanceProps),
250
- width: l(r.props, u, r._instanceProps)
248
+ left: I ? void 0 : M,
249
+ right: I ? M : void 0,
250
+ top: S(o.props, f, o._instanceProps),
251
+ height: g(o.props, f, o._instanceProps),
252
+ width: l(o.props, u, o._instanceProps)
251
253
  };
252
254
  }
253
- return M;
254
- }, r._getItemStyleCache = void 0, r._getItemStyleCache = Ce(function(m, u, f) {
255
+ return x;
256
+ }, o._getItemStyleCache = void 0, o._getItemStyleCache = Re(function(f, u, m) {
255
257
  return {};
256
- }), r._onScroll = function(m) {
257
- var u = m.currentTarget, f = u.clientHeight, S = u.clientWidth, p = u.scrollLeft, C = u.scrollTop, b = u.scrollHeight, z = u.scrollWidth;
258
- r.setState(function(M) {
259
- if (M.scrollLeft === p && M.scrollTop === C)
258
+ }), o._onScroll = function(f) {
259
+ var u = f.currentTarget, m = u.clientHeight, w = u.clientWidth, p = u.scrollLeft, R = u.scrollTop, L = u.scrollHeight, O = u.scrollWidth;
260
+ o.setState(function(x) {
261
+ if (x.scrollLeft === p && x.scrollTop === R)
260
262
  return null;
261
- var L = r.props.direction, I = p;
262
- if (L === "rtl")
263
- switch (De()) {
263
+ var M = o.props.direction, I = p;
264
+ if (M === "rtl")
265
+ switch (Ue()) {
264
266
  case "negative":
265
267
  I = -p;
266
268
  break;
267
269
  case "positive-descending":
268
- I = z - S - p;
270
+ I = O - w - p;
269
271
  break;
270
272
  }
271
- I = Math.max(0, Math.min(I, z - S));
272
- var D = Math.max(0, Math.min(C, b - f));
273
+ I = Math.max(0, Math.min(I, O - w));
274
+ var P = Math.max(0, Math.min(R, L - m));
273
275
  return {
274
276
  isScrolling: !0,
275
- horizontalScrollDirection: M.scrollLeft < p ? "forward" : "backward",
277
+ horizontalScrollDirection: x.scrollLeft < p ? "forward" : "backward",
276
278
  scrollLeft: I,
277
- scrollTop: D,
278
- verticalScrollDirection: M.scrollTop < C ? "forward" : "backward",
279
+ scrollTop: P,
280
+ verticalScrollDirection: x.scrollTop < R ? "forward" : "backward",
279
281
  scrollUpdateWasRequested: !1
280
282
  };
281
- }, r._resetIsScrollingDebounced);
282
- }, r._outerRefSetter = function(m) {
283
- var u = r.props.outerRef;
284
- r._outerRef = m, typeof u == "function" ? u(m) : u != null && typeof u == "object" && u.hasOwnProperty("current") && (u.current = m);
285
- }, r._resetIsScrollingDebounced = function() {
286
- r._resetIsScrollingTimeoutId !== null && Pe(r._resetIsScrollingTimeoutId), r._resetIsScrollingTimeoutId = Vt(r._resetIsScrolling, Gt);
287
- }, r._resetIsScrolling = function() {
288
- r._resetIsScrollingTimeoutId = null, r.setState({
283
+ }, o._resetIsScrollingDebounced);
284
+ }, o._outerRefSetter = function(f) {
285
+ var u = o.props.outerRef;
286
+ o._outerRef = f, typeof u == "function" ? u(f) : u != null && typeof u == "object" && u.hasOwnProperty("current") && (u.current = f);
287
+ }, o._resetIsScrollingDebounced = function() {
288
+ o._resetIsScrollingTimeoutId !== null && ke(o._resetIsScrollingTimeoutId), o._resetIsScrollingTimeoutId = jt(o._resetIsScrolling, Kt);
289
+ }, o._resetIsScrolling = function() {
290
+ o._resetIsScrollingTimeoutId = null, o.setState({
289
291
  isScrolling: !1
290
292
  }, function() {
291
- r._getItemStyleCache(-1);
293
+ o._getItemStyleCache(-1);
292
294
  });
293
- }, r;
295
+ }, o;
294
296
  }
295
- R.getDerivedStateFromProps = function(r, m) {
296
- return Bt(r, m), P(r), null;
297
+ T.getDerivedStateFromProps = function(o, f) {
298
+ return Qt(o, f), N(o), null;
297
299
  };
298
- var y = R.prototype;
299
- return y.scrollTo = function(r) {
300
- var m = r.scrollLeft, u = r.scrollTop;
301
- m !== void 0 && (m = Math.max(0, m)), u !== void 0 && (u = Math.max(0, u)), this.setState(function(f) {
302
- return m === void 0 && (m = f.scrollLeft), u === void 0 && (u = f.scrollTop), f.scrollLeft === m && f.scrollTop === u ? null : {
303
- horizontalScrollDirection: f.scrollLeft < m ? "forward" : "backward",
304
- scrollLeft: m,
300
+ var z = T.prototype;
301
+ return z.scrollTo = function(o) {
302
+ var f = o.scrollLeft, u = o.scrollTop;
303
+ f !== void 0 && (f = Math.max(0, f)), u !== void 0 && (u = Math.max(0, u)), this.setState(function(m) {
304
+ return f === void 0 && (f = m.scrollLeft), u === void 0 && (u = m.scrollTop), m.scrollLeft === f && m.scrollTop === u ? null : {
305
+ horizontalScrollDirection: m.scrollLeft < f ? "forward" : "backward",
306
+ scrollLeft: f,
305
307
  scrollTop: u,
306
308
  scrollUpdateWasRequested: !0,
307
- verticalScrollDirection: f.scrollTop < u ? "forward" : "backward"
309
+ verticalScrollDirection: m.scrollTop < u ? "forward" : "backward"
308
310
  };
309
311
  }, this._resetIsScrollingDebounced);
310
- }, y.scrollToItem = function(r) {
311
- var m = r.align, u = m === void 0 ? "auto" : m, f = r.columnIndex, S = r.rowIndex, p = this.props, C = p.columnCount, b = p.height, z = p.rowCount, M = p.width, L = this.state, I = L.scrollLeft, D = L.scrollTop, W = qt();
312
- f !== void 0 && (f = Math.max(0, Math.min(f, C - 1))), S !== void 0 && (S = Math.max(0, Math.min(S, z - 1)));
313
- var H = a(this.props, this._instanceProps), F = c(this.props, this._instanceProps), V = F > M ? W : 0, K = H > b ? W : 0;
312
+ }, z.scrollToItem = function(o) {
313
+ var f = o.align, u = f === void 0 ? "auto" : f, m = o.columnIndex, w = o.rowIndex, p = this.props, R = p.columnCount, L = p.height, O = p.rowCount, x = p.width, M = this.state, I = M.scrollLeft, P = M.scrollTop, k = Bt();
314
+ m !== void 0 && (m = Math.max(0, Math.min(m, R - 1))), w !== void 0 && (w = Math.max(0, Math.min(w, O - 1)));
315
+ var F = a(this.props, this._instanceProps), H = c(this.props, this._instanceProps), D = H > x ? k : 0, U = F > L ? k : 0;
314
316
  this.scrollTo({
315
- scrollLeft: f !== void 0 ? d(this.props, f, u, I, this._instanceProps, K) : I,
316
- scrollTop: S !== void 0 ? v(this.props, S, u, D, this._instanceProps, V) : D
317
+ scrollLeft: m !== void 0 ? d(this.props, m, u, I, this._instanceProps, U) : I,
318
+ scrollTop: w !== void 0 ? v(this.props, w, u, P, this._instanceProps, D) : P
317
319
  });
318
- }, y.componentDidMount = function() {
319
- var r = this.props, m = r.initialScrollLeft, u = r.initialScrollTop;
320
+ }, z.componentDidMount = function() {
321
+ var o = this.props, f = o.initialScrollLeft, u = o.initialScrollTop;
320
322
  if (this._outerRef != null) {
321
- var f = this._outerRef;
322
- typeof m == "number" && (f.scrollLeft = m), typeof u == "number" && (f.scrollTop = u);
323
+ var m = this._outerRef;
324
+ typeof f == "number" && (m.scrollLeft = f), typeof u == "number" && (m.scrollTop = u);
323
325
  }
324
326
  this._callPropsCallbacks();
325
- }, y.componentDidUpdate = function() {
326
- var r = this.props.direction, m = this.state, u = m.scrollLeft, f = m.scrollTop, S = m.scrollUpdateWasRequested;
327
- if (S && this._outerRef != null) {
327
+ }, z.componentDidUpdate = function() {
328
+ var o = this.props.direction, f = this.state, u = f.scrollLeft, m = f.scrollTop, w = f.scrollUpdateWasRequested;
329
+ if (w && this._outerRef != null) {
328
330
  var p = this._outerRef;
329
- if (r === "rtl")
330
- switch (De()) {
331
+ if (o === "rtl")
332
+ switch (Ue()) {
331
333
  case "negative":
332
334
  p.scrollLeft = -u;
333
335
  break;
@@ -335,91 +337,91 @@ function jt(n) {
335
337
  p.scrollLeft = u;
336
338
  break;
337
339
  default:
338
- var C = p.clientWidth, b = p.scrollWidth;
339
- p.scrollLeft = b - C - u;
340
+ var R = p.clientWidth, L = p.scrollWidth;
341
+ p.scrollLeft = L - R - u;
340
342
  break;
341
343
  }
342
344
  else
343
345
  p.scrollLeft = Math.max(0, u);
344
- p.scrollTop = Math.max(0, f);
346
+ p.scrollTop = Math.max(0, m);
345
347
  }
346
348
  this._callPropsCallbacks();
347
- }, y.componentWillUnmount = function() {
348
- this._resetIsScrollingTimeoutId !== null && Pe(this._resetIsScrollingTimeoutId);
349
- }, y.render = function() {
350
- var r = this.props, m = r.children, u = r.className, f = r.columnCount, S = r.direction, p = r.height, C = r.innerRef, b = r.innerElementType, z = r.innerTagName, M = r.itemData, L = r.itemKey, I = L === void 0 ? $t : L, D = r.outerElementType, W = r.outerTagName, H = r.rowCount, F = r.style, V = r.useIsScrolling, K = r.width, Z = this.state.isScrolling, J = this._getHorizontalRangeToRender(), ne = J[0], $ = J[1], j = this._getVerticalRangeToRender(), Q = j[0], ie = j[1], ae = [];
351
- if (f > 0 && H)
352
- for (var B = Q; B <= ie; B++)
353
- for (var X = ne; X <= $; X++)
354
- ae.push(ue(m, {
355
- columnIndex: X,
356
- data: M,
357
- isScrolling: V ? Z : void 0,
349
+ }, z.componentWillUnmount = function() {
350
+ this._resetIsScrollingTimeoutId !== null && ke(this._resetIsScrollingTimeoutId);
351
+ }, z.render = function() {
352
+ var o = this.props, f = o.children, u = o.className, m = o.columnCount, w = o.direction, p = o.height, R = o.innerRef, L = o.innerElementType, O = o.innerTagName, x = o.itemData, M = o.itemKey, I = M === void 0 ? Zt : M, P = o.outerElementType, k = o.outerTagName, F = o.rowCount, H = o.style, D = o.useIsScrolling, U = o.width, re = this.state.isScrolling, Q = this._getHorizontalRangeToRender(), oe = Q[0], ae = Q[1], $ = this._getVerticalRangeToRender(), pe = $[0], X = $[1], Z = [];
353
+ if (m > 0 && F)
354
+ for (var G = pe; G <= X; G++)
355
+ for (var J = oe; J <= ae; J++)
356
+ Z.push(ue(f, {
357
+ columnIndex: J,
358
+ data: x,
359
+ isScrolling: D ? re : void 0,
358
360
  key: I({
359
- columnIndex: X,
360
- data: M,
361
- rowIndex: B
361
+ columnIndex: J,
362
+ data: x,
363
+ rowIndex: G
362
364
  }),
363
- rowIndex: B,
364
- style: this._getItemStyle(B, X)
365
+ rowIndex: G,
366
+ style: this._getItemStyle(G, J)
365
367
  }));
366
- var Y = a(this.props, this._instanceProps), pe = c(this.props, this._instanceProps);
367
- return ue(D || W || "div", {
368
+ var le = a(this.props, this._instanceProps), he = c(this.props, this._instanceProps);
369
+ return ue(P || k || "div", {
368
370
  className: u,
369
371
  onScroll: this._onScroll,
370
372
  ref: this._outerRefSetter,
371
- style: xe({
373
+ style: ze({
372
374
  position: "relative",
373
375
  height: p,
374
- width: K,
376
+ width: U,
375
377
  overflow: "auto",
376
378
  WebkitOverflowScrolling: "touch",
377
379
  willChange: "transform",
378
- direction: S
379
- }, F)
380
- }, ue(b || z || "div", {
381
- children: ae,
382
- ref: C,
380
+ direction: w
381
+ }, H)
382
+ }, ue(L || O || "div", {
383
+ children: Z,
384
+ ref: R,
383
385
  style: {
384
- height: Y,
385
- pointerEvents: Z ? "none" : void 0,
386
- width: pe
386
+ height: le,
387
+ pointerEvents: re ? "none" : void 0,
388
+ width: he
387
389
  }
388
390
  }));
389
- }, y._callPropsCallbacks = function() {
390
- var r = this.props, m = r.columnCount, u = r.onItemsRendered, f = r.onScroll, S = r.rowCount;
391
- if (typeof u == "function" && m > 0 && S > 0) {
392
- var p = this._getHorizontalRangeToRender(), C = p[0], b = p[1], z = p[2], M = p[3], L = this._getVerticalRangeToRender(), I = L[0], D = L[1], W = L[2], H = L[3];
393
- this._callOnItemsRendered(C, b, I, D, z, M, W, H);
391
+ }, z._callPropsCallbacks = function() {
392
+ var o = this.props, f = o.columnCount, u = o.onItemsRendered, m = o.onScroll, w = o.rowCount;
393
+ if (typeof u == "function" && f > 0 && w > 0) {
394
+ var p = this._getHorizontalRangeToRender(), R = p[0], L = p[1], O = p[2], x = p[3], M = this._getVerticalRangeToRender(), I = M[0], P = M[1], k = M[2], F = M[3];
395
+ this._callOnItemsRendered(R, L, I, P, O, x, k, F);
394
396
  }
395
- if (typeof f == "function") {
396
- var F = this.state, V = F.horizontalScrollDirection, K = F.scrollLeft, Z = F.scrollTop, J = F.scrollUpdateWasRequested, ne = F.verticalScrollDirection;
397
- this._callOnScroll(K, Z, V, ne, J);
397
+ if (typeof m == "function") {
398
+ var H = this.state, D = H.horizontalScrollDirection, U = H.scrollLeft, re = H.scrollTop, Q = H.scrollUpdateWasRequested, oe = H.verticalScrollDirection;
399
+ this._callOnScroll(U, re, D, oe, Q);
398
400
  }
399
- }, y._getHorizontalRangeToRender = function() {
400
- var r = this.props, m = r.columnCount, u = r.overscanColumnCount, f = r.overscanColumnsCount, S = r.overscanCount, p = r.rowCount, C = this.state, b = C.horizontalScrollDirection, z = C.isScrolling, M = C.scrollLeft, L = u || f || S || 1;
401
- if (m === 0 || p === 0)
401
+ }, z._getHorizontalRangeToRender = function() {
402
+ var o = this.props, f = o.columnCount, u = o.overscanColumnCount, m = o.overscanColumnsCount, w = o.overscanCount, p = o.rowCount, R = this.state, L = R.horizontalScrollDirection, O = R.isScrolling, x = R.scrollLeft, M = u || m || w || 1;
403
+ if (f === 0 || p === 0)
402
404
  return [0, 0, 0, 0];
403
- var I = o(this.props, M, this._instanceProps), D = i(this.props, I, M, this._instanceProps), W = !z || b === "backward" ? Math.max(1, L) : 1, H = !z || b === "forward" ? Math.max(1, L) : 1;
404
- return [Math.max(0, I - W), Math.max(0, Math.min(m - 1, D + H)), I, D];
405
- }, y._getVerticalRangeToRender = function() {
406
- var r = this.props, m = r.columnCount, u = r.overscanCount, f = r.overscanRowCount, S = r.overscanRowsCount, p = r.rowCount, C = this.state, b = C.isScrolling, z = C.verticalScrollDirection, M = C.scrollTop, L = f || S || u || 1;
407
- if (m === 0 || p === 0)
405
+ var I = r(this.props, x, this._instanceProps), P = i(this.props, I, x, this._instanceProps), k = !O || L === "backward" ? Math.max(1, M) : 1, F = !O || L === "forward" ? Math.max(1, M) : 1;
406
+ return [Math.max(0, I - k), Math.max(0, Math.min(f - 1, P + F)), I, P];
407
+ }, z._getVerticalRangeToRender = function() {
408
+ var o = this.props, f = o.columnCount, u = o.overscanCount, m = o.overscanRowCount, w = o.overscanRowsCount, p = o.rowCount, R = this.state, L = R.isScrolling, O = R.verticalScrollDirection, x = R.scrollTop, M = m || w || u || 1;
409
+ if (f === 0 || p === 0)
408
410
  return [0, 0, 0, 0];
409
- var I = s(this.props, M, this._instanceProps), D = h(this.props, I, M, this._instanceProps), W = !b || z === "backward" ? Math.max(1, L) : 1, H = !b || z === "forward" ? Math.max(1, L) : 1;
410
- return [Math.max(0, I - W), Math.max(0, Math.min(p - 1, D + H)), I, D];
411
- }, R;
412
- }(nt), e.defaultProps = {
411
+ var I = s(this.props, x, this._instanceProps), P = h(this.props, I, x, this._instanceProps), k = !L || O === "backward" ? Math.max(1, M) : 1, F = !L || O === "forward" ? Math.max(1, M) : 1;
412
+ return [Math.max(0, I - k), Math.max(0, Math.min(p - 1, P + F)), I, P];
413
+ }, T;
414
+ }(lt), e.defaultProps = {
413
415
  direction: "ltr",
414
416
  itemData: void 0,
415
417
  useIsScrolling: !1
416
418
  }, e;
417
419
  }
418
- var Bt = function(e, t) {
419
- var o = e.children, i = e.direction, l = e.height, a = e.innerTagName, c = e.outerTagName, d = e.overscanColumnsCount, v = e.overscanCount, g = e.overscanRowsCount, w = e.width, s = t.instance;
420
+ var Qt = function(e, t) {
421
+ var r = e.children, i = e.direction, l = e.height, a = e.innerTagName, c = e.outerTagName, d = e.overscanColumnsCount, v = e.overscanCount, g = e.overscanRowsCount, S = e.width, s = t.instance;
420
422
  if (process.env.NODE_ENV !== "production") {
421
- if (typeof v == "number" && de && !de.has(s) && (de.add(s), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof g == "number") && me && !me.has(s) && (me.add(s), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (a != null || c != null) && fe && !fe.has(s) && (fe.add(s), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
422
- throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
423
+ if (typeof v == "number" && de && !de.has(s) && (de.add(s), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof g == "number") && fe && !fe.has(s) && (fe.add(s), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (a != null || c != null) && me && !me.has(s) && (me.add(s), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
424
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
423
425
  switch (i) {
424
426
  case "ltr":
425
427
  case "rtl":
@@ -427,117 +429,117 @@ var Bt = function(e, t) {
427
429
  default:
428
430
  throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + i + '" was specified.'));
429
431
  }
430
- if (typeof w != "number")
431
- throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (w === null ? "null" : typeof w) + '" was specified.'));
432
+ if (typeof S != "number")
433
+ throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (S === null ? "null" : typeof S) + '" was specified.'));
432
434
  if (typeof l != "number")
433
435
  throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (l === null ? "null" : typeof l) + '" was specified.'));
434
436
  }
435
- }, He = 50, je = function(e, t) {
436
- var o = e.rowCount, i = t.rowMetadataMap, l = t.estimatedRowHeight, a = t.lastMeasuredRowIndex, c = 0;
437
- if (a >= o && (a = o - 1), a >= 0) {
437
+ }, Ve = 50, Ze = function(e, t) {
438
+ var r = e.rowCount, i = t.rowMetadataMap, l = t.estimatedRowHeight, a = t.lastMeasuredRowIndex, c = 0;
439
+ if (a >= r && (a = r - 1), a >= 0) {
438
440
  var d = i[a];
439
441
  c = d.offset + d.size;
440
442
  }
441
- var v = o - a - 1, g = v * l;
443
+ var v = r - a - 1, g = v * l;
442
444
  return c + g;
443
- }, Be = function(e, t) {
444
- var o = e.columnCount, i = t.columnMetadataMap, l = t.estimatedColumnWidth, a = t.lastMeasuredColumnIndex, c = 0;
445
- if (a >= o && (a = o - 1), a >= 0) {
445
+ }, Je = function(e, t) {
446
+ var r = e.columnCount, i = t.columnMetadataMap, l = t.estimatedColumnWidth, a = t.lastMeasuredColumnIndex, c = 0;
447
+ if (a >= r && (a = r - 1), a >= 0) {
446
448
  var d = i[a];
447
449
  c = d.offset + d.size;
448
450
  }
449
- var v = o - a - 1, g = v * l;
451
+ var v = r - a - 1, g = v * l;
450
452
  return c + g;
451
- }, G = function(e, t, o, i) {
453
+ }, K = function(e, t, r, i) {
452
454
  var l, a, c;
453
- if (e === "column" ? (l = i.columnMetadataMap, a = t.columnWidth, c = i.lastMeasuredColumnIndex) : (l = i.rowMetadataMap, a = t.rowHeight, c = i.lastMeasuredRowIndex), o > c) {
455
+ if (e === "column" ? (l = i.columnMetadataMap, a = t.columnWidth, c = i.lastMeasuredColumnIndex) : (l = i.rowMetadataMap, a = t.rowHeight, c = i.lastMeasuredRowIndex), r > c) {
454
456
  var d = 0;
455
457
  if (c >= 0) {
456
458
  var v = l[c];
457
459
  d = v.offset + v.size;
458
460
  }
459
- for (var g = c + 1; g <= o; g++) {
460
- var w = a(g);
461
+ for (var g = c + 1; g <= r; g++) {
462
+ var S = a(g);
461
463
  l[g] = {
462
464
  offset: d,
463
- size: w
464
- }, d += w;
465
+ size: S
466
+ }, d += S;
465
467
  }
466
- e === "column" ? i.lastMeasuredColumnIndex = o : i.lastMeasuredRowIndex = o;
468
+ e === "column" ? i.lastMeasuredColumnIndex = r : i.lastMeasuredRowIndex = r;
467
469
  }
468
- return l[o];
469
- }, ke = function(e, t, o, i) {
470
+ return l[r];
471
+ }, qe = function(e, t, r, i) {
470
472
  var l, a;
471
- e === "column" ? (l = o.columnMetadataMap, a = o.lastMeasuredColumnIndex) : (l = o.rowMetadataMap, a = o.lastMeasuredRowIndex);
473
+ e === "column" ? (l = r.columnMetadataMap, a = r.lastMeasuredColumnIndex) : (l = r.rowMetadataMap, a = r.lastMeasuredRowIndex);
472
474
  var c = a > 0 ? l[a].offset : 0;
473
- return c >= i ? Ke(e, t, o, a, 0, i) : Kt(e, t, o, Math.max(0, a), i);
474
- }, Ke = function(e, t, o, i, l, a) {
475
+ return c >= i ? Qe(e, t, r, a, 0, i) : Xt(e, t, r, Math.max(0, a), i);
476
+ }, Qe = function(e, t, r, i, l, a) {
475
477
  for (; l <= i; ) {
476
- var c = l + Math.floor((i - l) / 2), d = G(e, t, c, o).offset;
478
+ var c = l + Math.floor((i - l) / 2), d = K(e, t, c, r).offset;
477
479
  if (d === a)
478
480
  return c;
479
481
  d < a ? l = c + 1 : d > a && (i = c - 1);
480
482
  }
481
483
  return l > 0 ? l - 1 : 0;
482
- }, Kt = function(e, t, o, i, l) {
483
- for (var a = e === "column" ? t.columnCount : t.rowCount, c = 1; i < a && G(e, t, i, o).offset < l; )
484
+ }, Xt = function(e, t, r, i, l) {
485
+ for (var a = e === "column" ? t.columnCount : t.rowCount, c = 1; i < a && K(e, t, i, r).offset < l; )
484
486
  i += c, c *= 2;
485
- return Ke(e, t, o, Math.min(i, a - 1), Math.floor(i / 2), l);
486
- }, Ue = function(e, t, o, i, l, a, c) {
487
- var d = e === "column" ? t.width : t.height, v = G(e, t, o, a), g = e === "column" ? Be(t, a) : je(t, a), w = Math.max(0, Math.min(g - d, v.offset)), s = Math.max(0, v.offset - d + c + v.size);
488
- switch (i === "smart" && (l >= s - d && l <= w + d ? i = "auto" : i = "center"), i) {
487
+ return Qe(e, t, r, Math.min(i, a - 1), Math.floor(i / 2), l);
488
+ }, Ge = function(e, t, r, i, l, a, c) {
489
+ var d = e === "column" ? t.width : t.height, v = K(e, t, r, a), g = e === "column" ? Je(t, a) : Ze(t, a), S = Math.max(0, Math.min(g - d, v.offset)), s = Math.max(0, v.offset - d + c + v.size);
490
+ switch (i === "smart" && (l >= s - d && l <= S + d ? i = "auto" : i = "center"), i) {
489
491
  case "start":
490
- return w;
492
+ return S;
491
493
  case "end":
492
494
  return s;
493
495
  case "center":
494
- return Math.round(s + (w - s) / 2);
496
+ return Math.round(s + (S - s) / 2);
495
497
  case "auto":
496
498
  default:
497
- return l >= s && l <= w ? l : s > w || l < s ? s : w;
499
+ return l >= s && l <= S ? l : s > S || l < s ? s : S;
498
500
  }
499
- }, Zt = /* @__PURE__ */ jt({
500
- getColumnOffset: function(e, t, o) {
501
- return G("column", e, t, o).offset;
501
+ }, Yt = /* @__PURE__ */ Jt({
502
+ getColumnOffset: function(e, t, r) {
503
+ return K("column", e, t, r).offset;
502
504
  },
503
- getColumnStartIndexForOffset: function(e, t, o) {
504
- return ke("column", e, o, t);
505
+ getColumnStartIndexForOffset: function(e, t, r) {
506
+ return qe("column", e, r, t);
505
507
  },
506
- getColumnStopIndexForStartIndex: function(e, t, o, i) {
507
- for (var l = e.columnCount, a = e.width, c = G("column", e, t, i), d = o + a, v = c.offset + c.size, g = t; g < l - 1 && v < d; )
508
- g++, v += G("column", e, g, i).size;
508
+ getColumnStopIndexForStartIndex: function(e, t, r, i) {
509
+ for (var l = e.columnCount, a = e.width, c = K("column", e, t, i), d = r + a, v = c.offset + c.size, g = t; g < l - 1 && v < d; )
510
+ g++, v += K("column", e, g, i).size;
509
511
  return g;
510
512
  },
511
- getColumnWidth: function(e, t, o) {
512
- return o.columnMetadataMap[t].size;
513
+ getColumnWidth: function(e, t, r) {
514
+ return r.columnMetadataMap[t].size;
513
515
  },
514
- getEstimatedTotalHeight: je,
515
- getEstimatedTotalWidth: Be,
516
- getOffsetForColumnAndAlignment: function(e, t, o, i, l, a) {
517
- return Ue("column", e, t, o, i, l, a);
516
+ getEstimatedTotalHeight: Ze,
517
+ getEstimatedTotalWidth: Je,
518
+ getOffsetForColumnAndAlignment: function(e, t, r, i, l, a) {
519
+ return Ge("column", e, t, r, i, l, a);
518
520
  },
519
- getOffsetForRowAndAlignment: function(e, t, o, i, l, a) {
520
- return Ue("row", e, t, o, i, l, a);
521
+ getOffsetForRowAndAlignment: function(e, t, r, i, l, a) {
522
+ return Ge("row", e, t, r, i, l, a);
521
523
  },
522
- getRowOffset: function(e, t, o) {
523
- return G("row", e, t, o).offset;
524
+ getRowOffset: function(e, t, r) {
525
+ return K("row", e, t, r).offset;
524
526
  },
525
- getRowHeight: function(e, t, o) {
526
- return o.rowMetadataMap[t].size;
527
+ getRowHeight: function(e, t, r) {
528
+ return r.rowMetadataMap[t].size;
527
529
  },
528
- getRowStartIndexForOffset: function(e, t, o) {
529
- return ke("row", e, o, t);
530
+ getRowStartIndexForOffset: function(e, t, r) {
531
+ return qe("row", e, r, t);
530
532
  },
531
- getRowStopIndexForStartIndex: function(e, t, o, i) {
532
- for (var l = e.rowCount, a = e.height, c = G("row", e, t, i), d = o + a, v = c.offset + c.size, g = t; g < l - 1 && v < d; )
533
- g++, v += G("row", e, g, i).size;
533
+ getRowStopIndexForStartIndex: function(e, t, r, i) {
534
+ for (var l = e.rowCount, a = e.height, c = K("row", e, t, i), d = r + a, v = c.offset + c.size, g = t; g < l - 1 && v < d; )
535
+ g++, v += K("row", e, g, i).size;
534
536
  return g;
535
537
  },
536
538
  initInstanceProps: function(e, t) {
537
- var o = e, i = o.estimatedColumnWidth, l = o.estimatedRowHeight, a = {
539
+ var r = e, i = r.estimatedColumnWidth, l = r.estimatedRowHeight, a = {
538
540
  columnMetadataMap: {},
539
- estimatedColumnWidth: i || He,
540
- estimatedRowHeight: l || He,
541
+ estimatedColumnWidth: i || Ve,
542
+ estimatedRowHeight: l || Ve,
541
543
  lastMeasuredColumnIndex: -1,
542
544
  lastMeasuredRowIndex: -1,
543
545
  rowMetadataMap: {}
@@ -553,81 +555,81 @@ var Bt = function(e, t) {
553
555
  shouldForceUpdate: d
554
556
  });
555
557
  }, t.resetAfterIndices = function(c) {
556
- var d = c.columnIndex, v = c.rowIndex, g = c.shouldForceUpdate, w = g === void 0 ? !0 : g;
557
- typeof d == "number" && (a.lastMeasuredColumnIndex = Math.min(a.lastMeasuredColumnIndex, d - 1)), typeof v == "number" && (a.lastMeasuredRowIndex = Math.min(a.lastMeasuredRowIndex, v - 1)), t._getItemStyleCache(-1), w && t.forceUpdate();
558
+ var d = c.columnIndex, v = c.rowIndex, g = c.shouldForceUpdate, S = g === void 0 ? !0 : g;
559
+ typeof d == "number" && (a.lastMeasuredColumnIndex = Math.min(a.lastMeasuredColumnIndex, d - 1)), typeof v == "number" && (a.lastMeasuredRowIndex = Math.min(a.lastMeasuredRowIndex, v - 1)), t._getItemStyleCache(-1), S && t.forceUpdate();
558
560
  }, a;
559
561
  },
560
562
  shouldResetStyleCacheOnItemSizeChange: !1,
561
563
  validateProps: function(e) {
562
- var t = e.columnWidth, o = e.rowHeight;
564
+ var t = e.columnWidth, r = e.rowHeight;
563
565
  if (process.env.NODE_ENV !== "production") {
564
566
  if (typeof t != "function")
565
567
  throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (t === null ? "null" : typeof t) + '" was specified.'));
566
- if (typeof o != "function")
567
- throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
568
+ if (typeof r != "function")
569
+ throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
568
570
  }
569
571
  }
570
572
  });
571
573
  process.env.NODE_ENV;
572
- function Ve(n, e) {
574
+ function $e(n, e) {
573
575
  for (var t in n)
574
576
  if (!(t in e))
575
577
  return !0;
576
- for (var o in e)
577
- if (n[o] !== e[o])
578
+ for (var r in e)
579
+ if (n[r] !== e[r])
578
580
  return !0;
579
581
  return !1;
580
582
  }
581
- var Jt = ["style"], Qt = ["style"];
582
- function Xt(n, e) {
583
- var t = n.style, o = Fe(n, Jt), i = e.style, l = Fe(e, Qt);
584
- return !Ve(t, i) && !Ve(o, l);
583
+ var er = ["style"], tr = ["style"];
584
+ function rr(n, e) {
585
+ var t = n.style, r = De(n, er), i = e.style, l = De(e, tr);
586
+ return !$e(t, i) && !$e(r, l);
585
587
  }
586
- let U;
587
- typeof window < "u" ? U = window : typeof self < "u" ? U = self : U = global;
588
- let be = null, ze = null;
589
- const qe = 20, Te = U.clearTimeout, Ge = U.setTimeout, Re = U.cancelAnimationFrame || U.mozCancelAnimationFrame || U.webkitCancelAnimationFrame, $e = U.requestAnimationFrame || U.mozRequestAnimationFrame || U.webkitRequestAnimationFrame;
590
- Re == null || $e == null ? (be = Te, ze = function(e) {
591
- return Ge(e, qe);
592
- }) : (be = function([e, t]) {
593
- Re(e), Te(t);
594
- }, ze = function(e) {
595
- const t = $e(function() {
596
- Te(o), e();
597
- }), o = Ge(function() {
598
- Re(t), e();
599
- }, qe);
600
- return [t, o];
588
+ let q;
589
+ typeof window < "u" ? q = window : typeof self < "u" ? q = self : q = global;
590
+ let Me = null, Ee = null;
591
+ const je = 20, ye = q.clearTimeout, Be = q.setTimeout, be = q.cancelAnimationFrame || q.mozCancelAnimationFrame || q.webkitCancelAnimationFrame, Ke = q.requestAnimationFrame || q.mozRequestAnimationFrame || q.webkitRequestAnimationFrame;
592
+ be == null || Ke == null ? (Me = ye, Ee = function(e) {
593
+ return Be(e, je);
594
+ }) : (Me = function([e, t]) {
595
+ be(e), ye(t);
596
+ }, Ee = function(e) {
597
+ const t = Ke(function() {
598
+ ye(r), e();
599
+ }), r = Be(function() {
600
+ be(t), e();
601
+ }, je);
602
+ return [t, r];
601
603
  });
602
- function Yt(n) {
603
- let e, t, o, i, l, a, c;
604
+ function or(n) {
605
+ let e, t, r, i, l, a, c;
604
606
  const d = typeof document < "u" && document.attachEvent;
605
607
  if (!d) {
606
- a = function(x) {
607
- const R = x.__resizeTriggers__, y = R.firstElementChild, N = R.lastElementChild, r = y.firstElementChild;
608
- N.scrollLeft = N.scrollWidth, N.scrollTop = N.scrollHeight, r.style.width = y.offsetWidth + 1 + "px", r.style.height = y.offsetHeight + 1 + "px", y.scrollLeft = y.scrollWidth, y.scrollTop = y.scrollHeight;
609
- }, l = function(x) {
610
- return x.offsetWidth !== x.__resizeLast__.width || x.offsetHeight !== x.__resizeLast__.height;
611
- }, c = function(x) {
612
- if (x.target.className && typeof x.target.className.indexOf == "function" && x.target.className.indexOf("contract-trigger") < 0 && x.target.className.indexOf("expand-trigger") < 0)
608
+ a = function(b) {
609
+ const T = b.__resizeTriggers__, z = T.firstElementChild, A = T.lastElementChild, o = z.firstElementChild;
610
+ A.scrollLeft = A.scrollWidth, A.scrollTop = A.scrollHeight, o.style.width = z.offsetWidth + 1 + "px", o.style.height = z.offsetHeight + 1 + "px", z.scrollLeft = z.scrollWidth, z.scrollTop = z.scrollHeight;
611
+ }, l = function(b) {
612
+ return b.offsetWidth !== b.__resizeLast__.width || b.offsetHeight !== b.__resizeLast__.height;
613
+ }, c = function(b) {
614
+ if (b.target.className && typeof b.target.className.indexOf == "function" && b.target.className.indexOf("contract-trigger") < 0 && b.target.className.indexOf("expand-trigger") < 0)
613
615
  return;
614
- const R = this;
615
- a(this), this.__resizeRAF__ && be(this.__resizeRAF__), this.__resizeRAF__ = ze(function() {
616
- l(R) && (R.__resizeLast__.width = R.offsetWidth, R.__resizeLast__.height = R.offsetHeight, R.__resizeListeners__.forEach(function(r) {
617
- r.call(R, x);
616
+ const T = this;
617
+ a(this), this.__resizeRAF__ && Me(this.__resizeRAF__), this.__resizeRAF__ = Ee(function() {
618
+ l(T) && (T.__resizeLast__.width = T.offsetWidth, T.__resizeLast__.height = T.offsetHeight, T.__resizeListeners__.forEach(function(o) {
619
+ o.call(T, b);
618
620
  }));
619
621
  });
620
622
  };
621
623
  let s = !1, h = "";
622
- o = "animationstart";
623
- const O = "Webkit Moz O ms".split(" ");
624
- let _ = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), P = "";
624
+ r = "animationstart";
625
+ const W = "Webkit Moz O ms".split(" ");
626
+ let _ = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), N = "";
625
627
  {
626
- const x = document.createElement("fakeelement");
627
- if (x.style.animationName !== void 0 && (s = !0), s === !1) {
628
- for (let R = 0; R < O.length; R++)
629
- if (x.style[O[R] + "AnimationName"] !== void 0) {
630
- P = O[R], h = "-" + P.toLowerCase() + "-", o = _[R], s = !0;
628
+ const b = document.createElement("fakeelement");
629
+ if (b.style.animationName !== void 0 && (s = !0), s === !1) {
630
+ for (let T = 0; T < W.length; T++)
631
+ if (b.style[W[T] + "AnimationName"] !== void 0) {
632
+ N = W[T], h = "-" + N.toLowerCase() + "-", r = _[T], s = !0;
631
633
  break;
632
634
  }
633
635
  }
@@ -636,8 +638,8 @@ function Yt(n) {
636
638
  }
637
639
  const v = function(s) {
638
640
  if (!s.getElementById("detectElementResize")) {
639
- const h = (e || "") + ".resize-triggers { " + (i || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', O = s.head || s.getElementsByTagName("head")[0], _ = s.createElement("style");
640
- _.id = "detectElementResize", _.type = "text/css", n != null && _.setAttribute("nonce", n), _.styleSheet ? _.styleSheet.cssText = h : _.appendChild(s.createTextNode(h)), O.appendChild(_);
641
+ const h = (e || "") + ".resize-triggers { " + (i || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', W = s.head || s.getElementsByTagName("head")[0], _ = s.createElement("style");
642
+ _.id = "detectElementResize", _.type = "text/css", n != null && _.setAttribute("nonce", n), _.styleSheet ? _.styleSheet.cssText = h : _.appendChild(s.createTextNode(h)), W.appendChild(_);
641
643
  }
642
644
  };
643
645
  return {
@@ -646,14 +648,14 @@ function Yt(n) {
646
648
  s.attachEvent("onresize", h);
647
649
  else {
648
650
  if (!s.__resizeTriggers__) {
649
- const O = s.ownerDocument, _ = U.getComputedStyle(s);
650
- _ && _.position === "static" && (s.style.position = "relative"), v(O), s.__resizeLast__ = {}, s.__resizeListeners__ = [], (s.__resizeTriggers__ = O.createElement("div")).className = "resize-triggers";
651
- const P = O.createElement("div");
652
- P.className = "expand-trigger", P.appendChild(O.createElement("div"));
653
- const x = O.createElement("div");
654
- x.className = "contract-trigger", s.__resizeTriggers__.appendChild(P), s.__resizeTriggers__.appendChild(x), s.appendChild(s.__resizeTriggers__), a(s), s.addEventListener("scroll", c, !0), o && (s.__resizeTriggers__.__animationListener__ = function(y) {
655
- y.animationName === t && a(s);
656
- }, s.__resizeTriggers__.addEventListener(o, s.__resizeTriggers__.__animationListener__));
651
+ const W = s.ownerDocument, _ = q.getComputedStyle(s);
652
+ _ && _.position === "static" && (s.style.position = "relative"), v(W), s.__resizeLast__ = {}, s.__resizeListeners__ = [], (s.__resizeTriggers__ = W.createElement("div")).className = "resize-triggers";
653
+ const N = W.createElement("div");
654
+ N.className = "expand-trigger", N.appendChild(W.createElement("div"));
655
+ const b = W.createElement("div");
656
+ b.className = "contract-trigger", s.__resizeTriggers__.appendChild(N), s.__resizeTriggers__.appendChild(b), s.appendChild(s.__resizeTriggers__), a(s), s.addEventListener("scroll", c, !0), r && (s.__resizeTriggers__.__animationListener__ = function(z) {
657
+ z.animationName === t && a(s);
658
+ }, s.__resizeTriggers__.addEventListener(r, s.__resizeTriggers__.__animationListener__));
657
659
  }
658
660
  s.__resizeListeners__.push(h);
659
661
  }
@@ -662,7 +664,7 @@ function Yt(n) {
662
664
  if (d)
663
665
  s.detachEvent("onresize", h);
664
666
  else if (s.__resizeListeners__.splice(s.__resizeListeners__.indexOf(h), 1), !s.__resizeListeners__.length) {
665
- s.removeEventListener("scroll", c, !0), s.__resizeTriggers__.__animationListener__ && (s.__resizeTriggers__.removeEventListener(o, s.__resizeTriggers__.__animationListener__), s.__resizeTriggers__.__animationListener__ = null);
667
+ s.removeEventListener("scroll", c, !0), s.__resizeTriggers__.__animationListener__ && (s.__resizeTriggers__.removeEventListener(r, s.__resizeTriggers__.__animationListener__), s.__resizeTriggers__.__animationListener__ = null);
666
668
  try {
667
669
  s.__resizeTriggers__ = !s.removeChild(s.__resizeTriggers__);
668
670
  } catch {
@@ -671,7 +673,7 @@ function Yt(n) {
671
673
  }
672
674
  };
673
675
  }
674
- class er extends it {
676
+ class nr extends ct {
675
677
  constructor(...e) {
676
678
  super(...e), this.state = {
677
679
  height: this.props.defaultHeight || 0,
@@ -680,25 +682,25 @@ class er extends it {
680
682
  this._timeoutId = null;
681
683
  const {
682
684
  disableHeight: t,
683
- disableWidth: o,
685
+ disableWidth: r,
684
686
  onResize: i
685
687
  } = this.props;
686
688
  if (this._parentNode) {
687
- const l = window.getComputedStyle(this._parentNode) || {}, a = parseFloat(l.paddingLeft || "0"), c = parseFloat(l.paddingRight || "0"), d = parseFloat(l.paddingTop || "0"), v = parseFloat(l.paddingBottom || "0"), g = this._parentNode.getBoundingClientRect(), w = g.height - d - v, s = g.width - a - c;
688
- if (!t && this.state.height !== w || !o && this.state.width !== s) {
689
+ const l = window.getComputedStyle(this._parentNode) || {}, a = parseFloat(l.paddingLeft || "0"), c = parseFloat(l.paddingRight || "0"), d = parseFloat(l.paddingTop || "0"), v = parseFloat(l.paddingBottom || "0"), g = this._parentNode.getBoundingClientRect(), S = g.height - d - v, s = g.width - a - c;
690
+ if (!t && this.state.height !== S || !r && this.state.width !== s) {
689
691
  this.setState({
690
- height: w,
692
+ height: S,
691
693
  width: s
692
694
  });
693
695
  const h = () => {
694
696
  this._didLogDeprecationWarning || (this._didLogDeprecationWarning = !0, console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"));
695
697
  };
696
698
  typeof i == "function" && i({
697
- height: w,
699
+ height: S,
698
700
  width: s,
699
701
  // TODO Remove these params in the next major release
700
702
  get scaledHeight() {
701
- return h(), w;
703
+ return h(), S;
702
704
  },
703
705
  get scaledWidth() {
704
706
  return h(), s;
@@ -716,10 +718,10 @@ class er extends it {
716
718
  } = this.props, t = this._autoSizer ? this._autoSizer.parentNode : null;
717
719
  if (t != null && t.ownerDocument && t.ownerDocument.defaultView && t instanceof t.ownerDocument.defaultView.HTMLElement) {
718
720
  this._parentNode = t;
719
- const o = t.ownerDocument.defaultView.ResizeObserver;
720
- o != null ? (this._resizeObserver = new o(() => {
721
+ const r = t.ownerDocument.defaultView.ResizeObserver;
722
+ r != null ? (this._resizeObserver = new r(() => {
721
723
  this._timeoutId = setTimeout(this._onResize, 0);
722
- }), this._resizeObserver.observe(t)) : (this._detectElementResize = Yt(e), this._detectElementResize.addResizeListener(t, this._onResize)), this._onResize();
724
+ }), this._resizeObserver.observe(t)) : (this._detectElementResize = or(e), this._detectElementResize.addResizeListener(t, this._onResize)), this._onResize();
723
725
  }
724
726
  }
725
727
  componentWillUnmount() {
@@ -729,7 +731,7 @@ class er extends it {
729
731
  const {
730
732
  children: e,
731
733
  defaultHeight: t,
732
- defaultWidth: o,
734
+ defaultWidth: r,
733
735
  disableHeight: i = !1,
734
736
  disableWidth: l = !1,
735
737
  doNotBailOutOnEmptyChildren: a = !1,
@@ -737,238 +739,283 @@ class er extends it {
737
739
  onResize: d,
738
740
  style: v = {},
739
741
  tagName: g = "div",
740
- ...w
742
+ ...S
741
743
  } = this.props, {
742
744
  height: s,
743
745
  width: h
744
- } = this.state, O = {
746
+ } = this.state, W = {
745
747
  overflow: "visible"
746
748
  }, _ = {};
747
- let P = !1;
748
- return i || (s === 0 && (P = !0), O.height = 0, _.height = s, _.scaledHeight = s), l || (h === 0 && (P = !0), O.width = 0, _.width = h, _.scaledWidth = h), a && (P = !1), ue(g, {
749
+ let N = !1;
750
+ return i || (s === 0 && (N = !0), W.height = 0, _.height = s, _.scaledHeight = s), l || (h === 0 && (N = !0), W.width = 0, _.width = h, _.scaledWidth = h), a && (N = !1), ue(g, {
749
751
  ref: this._setRef,
750
752
  style: {
751
- ...O,
753
+ ...W,
752
754
  ...v
753
755
  },
754
- ...w
755
- }, !P && e(_));
756
+ ...S
757
+ }, !N && e(_));
756
758
  }
757
759
  }
758
- const tr = st(({ columnIndex: n, rowIndex: e, data: t, style: o }) => {
759
- const i = Et(e, n, t.columnCount);
760
- return /* @__PURE__ */ A(at, { style: o, pageNumber: i }, i);
761
- }, Xt), ko = () => {
762
- const n = q(new Wt()), { initialPage: e = 1, initialScrollMode: t, instanceId: o } = xt(), { pagesRef: i, setPagesRef: l, setContentRef: a } = yt(), { scrollToPage: c } = ut();
763
- Pt(i);
760
+ const ir = ut(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
761
+ const i = At(
762
+ e,
763
+ n,
764
+ t.columnCount,
765
+ t.isDualPageWithCover
766
+ );
767
+ if (i <= 0)
768
+ return null;
769
+ if (t.isDualPageWithCover) {
770
+ const a = i === t.totalPages && t.totalPages % 2 === 0;
771
+ if (e === 0 && i === 1 || a && n === 0) {
772
+ const d = t.columnWidths.reduce((v, g) => v + g, 0);
773
+ return /* @__PURE__ */ y(
774
+ "div",
775
+ {
776
+ style: {
777
+ ...r,
778
+ width: d,
779
+ display: "flex",
780
+ justifyContent: "center",
781
+ alignItems: "flex-start"
782
+ },
783
+ children: /* @__PURE__ */ y(Se, { style: { position: "relative" }, pageNumber: i }, i)
784
+ }
785
+ );
786
+ }
787
+ }
788
+ return t.columnCount === 2 ? /* @__PURE__ */ y(
789
+ "div",
790
+ {
791
+ style: {
792
+ ...r,
793
+ display: "flex",
794
+ justifyContent: n === 0 ? "flex-end" : "flex-start",
795
+ alignItems: "flex-start"
796
+ },
797
+ children: /* @__PURE__ */ y(Se, { style: { position: "relative" }, pageNumber: i }, i)
798
+ }
799
+ ) : /* @__PURE__ */ y(Se, { style: r, pageNumber: i }, i);
800
+ }, rr), jo = () => {
801
+ const n = B(new Ut()), { initialPage: e = 1, initialScrollMode: t, instanceId: r } = zt(), { pagesRef: i, setPagesRef: l, setContentRef: a } = Lt(), { scrollToPage: c } = mt();
802
+ Ht(i);
764
803
  const {
765
804
  virtualScrollRef: d,
766
805
  getVirtualScrollRef: v,
767
806
  getPageScrollElementRef: g,
768
- getVirtualScrollableElementRef: w,
807
+ getVirtualScrollableElementRef: S,
769
808
  setTotalInnerDimensions: s,
770
809
  virtualScrollableElementRef: h,
771
- totalInnerDimensions: O,
810
+ totalInnerDimensions: W,
772
811
  pageScrollElementRef: _
773
- } = ct(), P = q(!0), { nextPage: x, prevPage: R, setFocusedPage: y, focusedPage: N } = dt(), { scrollMode: r } = pt(), { viewMode: m } = ft(), u = q(null), { loading: f, error: S } = mt(), { passwordRequired: p } = Ot(), { LoaderImageComponent: C } = zt(), b = q(
774
- O
775
- ), z = q({
776
- viewMode: m,
777
- scrollMode: r
778
- }), M = q(!1), L = q(), { isFullScreen: I } = _t(), {
779
- pageDimension: D,
780
- rowCount: W,
812
+ } = ft(), N = B(!0), { nextPage: b, prevPage: T, setFocusedPage: z, focusedPage: A, totalPages: o } = pt(), { scrollMode: f } = vt(), { viewMode: u } = gt(), m = B(null), { loading: w, error: p } = ht(), { passwordRequired: R } = Nt(), { LoaderImageComponent: L } = Et(), O = B(
813
+ W
814
+ ), x = B({
815
+ viewMode: u,
816
+ scrollMode: f
817
+ }), M = B(!1), I = B(), { isFullScreen: P } = Ct(), {
818
+ pageDimension: k,
819
+ rowCount: F,
781
820
  rowHeight: H,
782
- columnCount: F,
783
- columnWidth: V,
784
- estimatedColumnWidth: K,
785
- estimatedRowHeight: Z,
786
- totalDimension: J
787
- } = lt(), ne = bt(O, 100), { onScroll: $ } = Ft(), j = q();
788
- Lt(F, W, h);
789
- const Q = q({
821
+ columnCount: D,
822
+ columnWidth: U,
823
+ estimatedColumnWidth: re,
824
+ estimatedRowHeight: Q,
825
+ totalDimension: oe
826
+ } = dt(), ae = Mt(W, 100), { onScroll: $, onTextSelect: pe } = Dt();
827
+ kt({ onTextSelect: pe, pagesRef: i });
828
+ const X = B();
829
+ Wt(D, F, h, u);
830
+ const Z = B({
790
831
  scrollTop: 0,
791
832
  scrollLeft: 0
792
833
  });
793
- Rt(i);
794
- const { isPressed: ie } = Ct(), { selectionMode: ae } = It(), { initializeGrabScroll: B, resetGrabState: X } = Tt({
795
- isPressed: ie
796
- }), Y = we(() => ae === ht.HAND, [ae]), pe = we(() => ({
797
- columnCount: F
798
- }), [F]), he = le(
799
- (T) => {
834
+ bt(i);
835
+ const { isPressed: G } = Rt(), { selectionMode: J } = xt(), { initializeGrabScroll: le, resetGrabState: he } = yt({
836
+ isPressed: G
837
+ }), ie = Ce(() => J === _t.HAND, [J]), Xe = Ce(() => {
838
+ const C = Array.from({ length: D }, (E, j) => U(j));
839
+ return {
840
+ columnCount: D,
841
+ isDualPageWithCover: u === Ie.DUAL_PAGE_WITH_COVER,
842
+ columnWidths: C,
843
+ totalPages: o
844
+ };
845
+ }, [D, u, U, o]), ge = se(
846
+ (C) => {
800
847
  const E = document.activeElement !== i;
801
- !I && E || (["ArrowUp", "ArrowLeft"].includes(T.key) ? (T.preventDefault(), R()) : ["ArrowDown", "ArrowRight"].includes(T.key) && (T.preventDefault(), x()));
848
+ !P && E || (["ArrowUp", "ArrowLeft"].includes(C.key) ? (C.preventDefault(), T()) : ["ArrowDown", "ArrowRight"].includes(C.key) && (C.preventDefault(), b()));
802
849
  },
803
- [x, R, I, r]
850
+ [b, T, P, f]
804
851
  );
805
- oe(() => (window.addEventListener("keydown", he), () => {
806
- window.removeEventListener("keydown", he);
807
- }), [he]), oe(() => {
808
- if (u.current && (u.current.style.position = "relative"), !!d)
809
- for (let T = 0; T < W; T++)
810
- for (let E = 0; E < F; E++)
852
+ te(() => (window.addEventListener("keydown", ge), () => {
853
+ window.removeEventListener("keydown", ge);
854
+ }), [ge]), te(() => {
855
+ if (m.current && (m.current.style.position = "relative"), !!d)
856
+ for (let C = 0; C < F; C++)
857
+ for (let E = 0; E < D; E++)
811
858
  d.resetAfterIndices({
812
859
  columnIndex: E,
813
- rowIndex: T,
860
+ rowIndex: C,
814
861
  shouldForceUpdate: !0
815
862
  });
816
- }, [W, F, D, d]);
817
- const Ze = le(
818
- (T, E) => {
863
+ }, [F, D, k, d]);
864
+ const Ye = se(
865
+ (C, E) => {
819
866
  if (!h)
820
867
  return { scrollTop: 0, scrollLeft: 0 };
821
- const ee = Q.current.scrollTop > E, te = Q.current.scrollLeft > T;
822
- return ee || te ? Q.current : {
868
+ const j = Z.current.scrollTop > E, Y = Z.current.scrollLeft > C;
869
+ return j || Y ? Z.current : {
823
870
  scrollTop: h.scrollTop,
824
871
  scrollLeft: h.scrollLeft
825
872
  };
826
873
  },
827
874
  [h]
828
- ), Me = le(
829
- (T, E) => {
830
- if (z.current.viewMode !== m || z.current.scrollMode !== r) {
831
- j.current && clearTimeout(j.current), M.current = !0, c(N, "auto"), j.current = setTimeout(() => {
875
+ ), Oe = se(
876
+ (C, E) => {
877
+ if (x.current.viewMode !== u || x.current.scrollMode !== f) {
878
+ X.current && clearTimeout(X.current), M.current = !0, c(A, "auto"), X.current = setTimeout(() => {
832
879
  requestAnimationFrame(() => {
833
- z.current = { viewMode: m, scrollMode: r };
880
+ x.current = { viewMode: u, scrollMode: f };
834
881
  });
835
882
  }, 100);
836
883
  return;
837
884
  }
838
- const te = T.scrollTop, ge = T.scrollLeft;
885
+ const Y = C.scrollTop, ve = C.scrollLeft;
839
886
  if (!E.height || !E.width)
840
887
  return;
841
888
  M.current = !0;
842
- const { height: re, width: ve } = E, { height: Le, width: Ee } = b.current;
843
- if (Le === re && Ee === ve)
889
+ const { height: ee, width: _e } = E, { height: We, width: Ae } = O.current;
890
+ if (We === ee && Ae === _e)
844
891
  return;
845
- const Ye = te / Le * re, et = ge / Ee * ve, tt = Math.round(Math.min(Ye, re)) || 0, rt = Math.round(Math.min(et, ve)) || 0;
846
- L.current = setTimeout(() => {
892
+ const ot = Y / We * ee, nt = ve / Ae * _e, it = Math.round(Math.min(ot, ee)) || 0, st = Math.round(Math.min(nt, _e)) || 0;
893
+ I.current = setTimeout(() => {
847
894
  requestAnimationFrame(() => {
848
895
  h == null || h.scrollTo({
849
- top: tt,
850
- left: rt,
896
+ top: it,
897
+ left: st,
851
898
  behavior: "auto"
852
899
  });
853
900
  });
854
- }, 0), b.current = {
901
+ }, 0), O.current = {
855
902
  height: E.height,
856
903
  width: E.width
857
904
  };
858
905
  },
859
- [h, m, r, c]
906
+ [h, u, f, c]
860
907
  );
861
- oe(() => {
862
- clearTimeout(L.current);
863
- const T = Array.from({ length: W }).reduce(
864
- (te, ge, re) => te + H(re),
908
+ te(() => {
909
+ clearTimeout(I.current);
910
+ const C = Array.from({ length: F }).reduce(
911
+ (Y, ve, ee) => Y + H(ee),
865
912
  0
866
- ), E = Array.from({ length: F }).reduce(
867
- (te, ge, re) => te + V(re),
913
+ ), E = Array.from({ length: D }).reduce(
914
+ (Y, ve, ee) => Y + U(ee),
868
915
  0
869
- ), ee = Ze(E, T);
870
- Q.current = ee, Me(ee, { height: T, width: E }), s({
871
- height: T,
916
+ ), j = Ye(E, C);
917
+ Z.current = j, Oe(j, { height: C, width: E }), s({
918
+ height: C,
872
919
  width: E
873
920
  });
874
- }, [D, W, F, Me]);
875
- const Je = le(
876
- (T) => {
877
- Q.current = {
878
- scrollTop: T.scrollTop,
879
- scrollLeft: T.scrollLeft
921
+ }, [k, F, D, Oe]);
922
+ const et = se(
923
+ (C) => {
924
+ Z.current = {
925
+ scrollTop: C.scrollTop,
926
+ scrollLeft: C.scrollLeft
880
927
  };
881
928
  },
882
929
  [h]
883
930
  );
884
- oe(() => {
931
+ te(() => {
885
932
  if ($)
886
933
  return _ && _.addEventListener("scroll", $), h && h.addEventListener("scroll", $), () => {
887
934
  _ == null || _.removeEventListener("scroll", $), h == null || h.removeEventListener("scroll", $);
888
935
  };
889
- }, [h, _, $]), oe(() => () => {
890
- j.current && clearTimeout(j.current);
936
+ }, [h, _, $]), te(() => () => {
937
+ X.current && clearTimeout(X.current);
891
938
  }, []);
892
- const Qe = we(() => ce(k["rp-pages-container"], {
893
- [k["rp-cursor-grab"]]: Y && !ie,
894
- [k["rp-cursor-grabbing"]]: Y && ie
895
- }), [Y, ie]), Xe = le(
896
- (T) => {
897
- if (Y && T) {
898
- const E = ce(k["rp-pages"]), ee = document.querySelector(`.${E}`);
899
- B(ee);
939
+ const tt = Ce(() => ce(V["rp-pages-container"], {
940
+ [V["rp-cursor-grab"]]: ie && !G,
941
+ [V["rp-cursor-grabbing"]]: ie && G
942
+ }), [ie, G]), rt = se(
943
+ (C) => {
944
+ if (ie && C) {
945
+ const E = ce(V["rp-pages"]), j = document.querySelector(`.${E}`);
946
+ le(j);
900
947
  }
901
948
  },
902
- [Y, B, k]
949
+ [ie, le, V]
903
950
  );
904
- return oe(() => {
905
- f && X();
906
- }, [f]), oe(() => {
907
- if (!(ne.height === 0 || !P.current)) {
908
- if (t === Se.PAGE_SCROLLING) {
909
- e !== N && _ && y(e), P.current = !1;
951
+ return te(() => {
952
+ w && he();
953
+ }, [w]), te(() => {
954
+ if (!(ae.height === 0 || !N.current)) {
955
+ if (t === Te.PAGE_SCROLLING) {
956
+ e !== A && _ && z(e), N.current = !1;
910
957
  return;
911
958
  }
912
- c(e, "auto"), y(e), P.current = !1;
959
+ c(e, "auto"), z(e), N.current = !1;
913
960
  }
914
961
  }, [
915
962
  c,
916
963
  t,
917
964
  _,
918
- y,
919
- ne
920
- ]), /* @__PURE__ */ _e(ot, { children: [
921
- /* @__PURE__ */ A(At, { ref: a, children: /* @__PURE__ */ A(
922
- Nt,
965
+ z,
966
+ ae
967
+ ]), /* @__PURE__ */ we(at, { children: [
968
+ /* @__PURE__ */ y(Ft, { ref: a, children: /* @__PURE__ */ y(
969
+ Pt,
923
970
  {
924
- id: o,
971
+ id: r,
925
972
  ref: l,
926
973
  tabIndex: -1,
927
- className: Qe,
974
+ className: tt,
928
975
  style: {
929
- "--scale-round-x": `${Oe(n.current.sx)[1]}px`,
930
- "--scale-round-y": `${Oe(n.current.sy)[1]}px`
976
+ "--scale-round-x": `${Ne(n.current.sx)[1]}px`,
977
+ "--scale-round-y": `${Ne(n.current.sy)[1]}px`
931
978
  },
932
- children: /* @__PURE__ */ A(er, { style: { minHeight: "50px" }, children: ({ width: T, height: E }) => /* @__PURE__ */ A("div", { "data-rp": "pages", ref: Xe, style: { width: T, height: E }, children: r === Se.PAGE_SCROLLING ? /* @__PURE__ */ A(
979
+ children: /* @__PURE__ */ y(nr, { style: { minHeight: "50px" }, children: ({ width: C, height: E }) => /* @__PURE__ */ y("div", { "data-rp": "pages", ref: rt, style: { width: C, height: E }, children: f === Te.PAGE_SCROLLING ? /* @__PURE__ */ y(
933
980
  "div",
934
981
  {
935
982
  ref: g,
936
- style: { width: T, height: E },
937
- className: ce(k["rp-pages"], k["rp-page-scrolling-wrapper"]),
938
- children: m === gt.DUAL_PAGE ? /* @__PURE__ */ A(wt, { widths: V, heights: H }) : /* @__PURE__ */ A(St, { widths: V, heights: H })
983
+ style: { width: C, height: E },
984
+ className: ce(V["rp-pages"], V["rp-page-scrolling-wrapper"]),
985
+ children: u === Ie.DUAL_PAGE ? /* @__PURE__ */ y(St, { widths: U, heights: H }) : u === Ie.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ y(It, { widths: U, heights: H }) : /* @__PURE__ */ y(Tt, { widths: U, heights: H })
939
986
  }
940
- ) : Z ? /* @__PURE__ */ A(
941
- Zt,
987
+ ) : Q ? /* @__PURE__ */ y(
988
+ Yt,
942
989
  {
943
990
  ref: v,
944
- itemData: pe,
945
- outerRef: w,
946
- innerRef: u,
947
- onScroll: Je,
948
- columnCount: F,
949
- columnWidth: V,
991
+ itemData: Xe,
992
+ outerRef: S,
993
+ innerRef: m,
994
+ onScroll: et,
995
+ columnCount: D,
996
+ columnWidth: U,
950
997
  rowHeight: H,
951
998
  height: E,
952
- width: T,
953
- estimatedColumnWidth: K,
954
- estimatedRowHeight: Z,
955
- rowCount: W,
999
+ width: C,
1000
+ estimatedColumnWidth: re,
1001
+ estimatedRowHeight: Q,
1002
+ rowCount: F,
956
1003
  className: ce(
957
- k["rp-pages"],
958
- r === Se.HORIZONTAL_SCROLLING ? k["rp-pages-horizontal-scroll"] : ""
1004
+ V["rp-pages"],
1005
+ f === Te.HORIZONTAL_SCROLLING ? V["rp-pages-horizontal-scroll"] : ""
959
1006
  ),
960
1007
  style: {
961
- "--rp-pages-height": `${J.height}px`,
962
- "--rp-pages-width": `${J.width}px`,
963
- "--rp-row-count": `${W}`,
964
- "--rp-column-count": `${F}`
1008
+ "--rp-pages-height": `${oe.height}px`,
1009
+ "--rp-pages-width": `${oe.width}px`,
1010
+ "--rp-row-count": `${F}`,
1011
+ "--rp-column-count": `${D}`
965
1012
  },
966
- children: tr
1013
+ children: ir
967
1014
  }
968
- ) : !f && !S ? /* @__PURE__ */ A(
1015
+ ) : !w && !p ? /* @__PURE__ */ y(
969
1016
  "div",
970
1017
  {
971
- className: k["rp-loader"],
1018
+ className: V["rp-loader"],
972
1019
  style: {
973
1020
  display: "flex",
974
1021
  justifyContent: "center",
@@ -976,24 +1023,24 @@ const tr = st(({ columnIndex: n, rowIndex: e, data: t, style: o }) => {
976
1023
  height: "100%",
977
1024
  width: "100%"
978
1025
  },
979
- children: C && /* @__PURE__ */ A(C, {})
1026
+ children: L && /* @__PURE__ */ y(L, {})
980
1027
  }
981
- ) : S === vt.NOT_SUPPORTED ? /* @__PURE__ */ A("div", { className: k["rp-not-supported"], children: /* @__PURE__ */ _e("div", { className: k["rp-not-supported-content"], children: [
1028
+ ) : p === wt.NOT_SUPPORTED ? /* @__PURE__ */ y("div", { className: V["rp-not-supported"], children: /* @__PURE__ */ we("div", { className: V["rp-not-supported-content"], children: [
982
1029
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
983
- /* @__PURE__ */ A("div", { children: /* @__PURE__ */ _e("ul", { children: [
984
- /* @__PURE__ */ A("li", { children: "Chrome 119+" }),
985
- /* @__PURE__ */ A("li", { children: "Edge 115+" }),
986
- /* @__PURE__ */ A("li", { children: "Firefox 115+" }),
987
- /* @__PURE__ */ A("li", { children: "Safari 17.4+" }),
988
- /* @__PURE__ */ A("li", { children: "Safari iOS 17.4+" }),
989
- /* @__PURE__ */ A("li", { children: "Chrome Android 126+" })
1030
+ /* @__PURE__ */ y("div", { children: /* @__PURE__ */ we("ul", { children: [
1031
+ /* @__PURE__ */ y("li", { children: "Chrome 119+" }),
1032
+ /* @__PURE__ */ y("li", { children: "Edge 115+" }),
1033
+ /* @__PURE__ */ y("li", { children: "Firefox 115+" }),
1034
+ /* @__PURE__ */ y("li", { children: "Safari 17.4+" }),
1035
+ /* @__PURE__ */ y("li", { children: "Safari iOS 17.4+" }),
1036
+ /* @__PURE__ */ y("li", { children: "Chrome Android 126+" })
990
1037
  ] }) })
991
1038
  ] }) }) : null }) })
992
1039
  }
993
1040
  ) }),
994
- p && /* @__PURE__ */ A(Mt, {})
1041
+ R && /* @__PURE__ */ y(Ot, {})
995
1042
  ] });
996
1043
  };
997
1044
  export {
998
- ko as RPPages
1045
+ jo as RPPages
999
1046
  };