@sheetxl/studio-mui 0.1.98

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 (178) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +24 -0
  3. package/build/browser/cjs/4XrhSt2xtUIXkiCt.cjs +1516 -0
  4. package/build/browser/cjs/B3EvhaQf456RMc1Q.cjs +6 -0
  5. package/build/browser/cjs/B3kl467PN2cpvrfz.cjs +12 -0
  6. package/build/browser/cjs/B5LCoenQbQmzic16.cjs +314 -0
  7. package/build/browser/cjs/BBuyHZwFlDRvHzBH.cjs +7 -0
  8. package/build/browser/cjs/BGoG_ROASNB2owBR.cjs +28 -0
  9. package/build/browser/cjs/BJ6Da8vZLjAl44pz.cjs +6 -0
  10. package/build/browser/cjs/BL_UVvG75SFsFaT3.cjs +6 -0
  11. package/build/browser/cjs/BNDoTytIOGtVh5l9.cjs +6 -0
  12. package/build/browser/cjs/BQOyVCuOdwDja_VV.cjs +42 -0
  13. package/build/browser/cjs/BRiPktKUmeJipjaa.cjs +6 -0
  14. package/build/browser/cjs/BabbNVs5iKg49rfk.cjs +6 -0
  15. package/build/browser/cjs/BcOX5vODdThWbKrR.cjs +6 -0
  16. package/build/browser/cjs/BchlMljYmXDs0Ol2.cjs +6 -0
  17. package/build/browser/cjs/BmYZvm13acvbFhOu.cjs +6 -0
  18. package/build/browser/cjs/BmbsW1n0-CkF3ITF.cjs +6 -0
  19. package/build/browser/cjs/BnCUyGP_ERKmL3ZR.cjs +6 -0
  20. package/build/browser/cjs/BtP4E1_yhMjpfbr5.cjs +6 -0
  21. package/build/browser/cjs/C3E9wmSfmgYmXfJN.cjs +205 -0
  22. package/build/browser/cjs/C3Hl78e9qfEHxJYc.cjs +6 -0
  23. package/build/browser/cjs/CEvRH8aOx3etutK_.cjs +17 -0
  24. package/build/browser/cjs/CLZSdaBnKDfb142R.cjs +6 -0
  25. package/build/browser/cjs/CN1cS39WcNrcPVqS.cjs +129 -0
  26. package/build/browser/cjs/CSH1hUnHovjo8Lb8.cjs +6 -0
  27. package/build/browser/cjs/CTNt3asYQRA-MROc.cjs +47 -0
  28. package/build/browser/cjs/C_JZEtvgcli6T7Wg.cjs +11 -0
  29. package/build/browser/cjs/CbaYZmvS8u-p_Z8Z.cjs +6 -0
  30. package/build/browser/cjs/Cc-4c3DRm96wq5rj.cjs +12 -0
  31. package/build/browser/cjs/CnY6DbatGmPyylfU.cjs +20 -0
  32. package/build/browser/cjs/CqkQGfzNax6GmZFo.cjs +6 -0
  33. package/build/browser/cjs/D2AF0a4vbNKzFxzA.cjs +21 -0
  34. package/build/browser/cjs/D4y1iYdx8sdwQ50T.cjs +6 -0
  35. package/build/browser/cjs/D5cF1EnyvnPY2IxS.cjs +150 -0
  36. package/build/browser/cjs/DA1-OPTYQTepGKEg.cjs +11 -0
  37. package/build/browser/cjs/DJDMVDpUqlEKYLjt.cjs +6 -0
  38. package/build/browser/cjs/DLXLJ8SNNjwM5C-P.cjs +6 -0
  39. package/build/browser/cjs/DV8lOsZBgyx7MTBW.cjs +6 -0
  40. package/build/browser/cjs/DZAPn_d9mpvfRzsb.cjs +6 -0
  41. package/build/browser/cjs/DaicqO_9d1hYzyB_.cjs +11 -0
  42. package/build/browser/cjs/Dfh6eMCbAjW14fdh.cjs +6 -0
  43. package/build/browser/cjs/DhI2lgDZL8GqBejN.cjs +6 -0
  44. package/build/browser/cjs/Ds6s8fpzOZsd2m1r.cjs +6 -0
  45. package/build/browser/cjs/DvIWGmDT5uBVQ5zH.cjs +16 -0
  46. package/build/browser/cjs/DvLgu20RiaayrJcW.cjs +7 -0
  47. package/build/browser/cjs/Dvhwt25gyHzxQLrp.cjs +6 -0
  48. package/build/browser/cjs/DvwApJM_CVrlpLxn.cjs +6 -0
  49. package/build/browser/cjs/DwVYzo4a05DMfta_.cjs +28 -0
  50. package/build/browser/cjs/NYdqUauA5i2q33UZ.cjs +6 -0
  51. package/build/browser/cjs/S2Xfq-KDgoT7ipPC.cjs +25 -0
  52. package/build/browser/cjs/TOZQZr9ZZ_Q-jdQZ.cjs +6 -0
  53. package/build/browser/cjs/bJuLOalXTwrshZL3.cjs +16 -0
  54. package/build/browser/cjs/eh9refYW4Gm25cmW.cjs +6 -0
  55. package/build/browser/cjs/hKqcVeb_8_4M79xj.cjs +6 -0
  56. package/build/browser/cjs/index.cjs +7 -0
  57. package/build/browser/cjs/is17hbP-kpOIBRP3.cjs +6 -0
  58. package/build/browser/cjs/pNY789kHWwRQXqse.cjs +17 -0
  59. package/build/browser/cjs/qJcc3ALtLWml32LU.cjs +18 -0
  60. package/build/browser/cjs/vWgVoELLfZ2ff1xL.cjs +6 -0
  61. package/build/browser/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
  62. package/build/browser/esm/7Imk0owJj7oNHR7v.mjs +48 -0
  63. package/build/browser/esm/AuNwPf0DXe0twn35.mjs +1592 -0
  64. package/build/browser/esm/B1Kw9U_AxCk0Aq9f.mjs +59 -0
  65. package/build/browser/esm/B9l1_Tfw_tMhKCNB.mjs +437 -0
  66. package/build/browser/esm/B9winT3ff8rc4sbn.mjs +490 -0
  67. package/build/browser/esm/BEo9XX1sHmVjScSm.mjs +16 -0
  68. package/build/browser/esm/BGTcOBCyrTTlov_i.mjs +13399 -0
  69. package/build/browser/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
  70. package/build/browser/esm/BQSa7N7QMGysdZdU.mjs +3932 -0
  71. package/build/browser/esm/BVEuc_3fLG2GN34k.mjs +16 -0
  72. package/build/browser/esm/BVh9YUwiSov8wcyY.mjs +1708 -0
  73. package/build/browser/esm/BZt5yM_TvoPXqdeA.mjs +3867 -0
  74. package/build/browser/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
  75. package/build/browser/esm/BjUaiSvRZnas-HJW.mjs +16 -0
  76. package/build/browser/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
  77. package/build/browser/esm/BtMqJ5CRpKuAC4UQ.mjs +1486 -0
  78. package/build/browser/esm/BwvMR2cgGwFn8hAL.mjs +36 -0
  79. package/build/browser/esm/BxU3eVA-Adrnq7ZJ.mjs +1372 -0
  80. package/build/browser/esm/C00coampLNiXjWJJ.mjs +436 -0
  81. package/build/browser/esm/C6nh1rvYnAg2w2V2.mjs +838 -0
  82. package/build/browser/esm/C8gc149K34Zi2lP2.mjs +16 -0
  83. package/build/browser/esm/CGSkuCZY1EmTUNlQ.mjs +52 -0
  84. package/build/browser/esm/CKXzosgZX8Xe3l59.mjs +16 -0
  85. package/build/browser/esm/CNYANG0Z7mhGYo00.mjs +859 -0
  86. package/build/browser/esm/CV_FNw2i_aEc5nwA.mjs +16 -0
  87. package/build/browser/esm/CYSj0-zys2FKWgnb.mjs +18 -0
  88. package/build/browser/esm/CbTs5cvVaP1vPCYD.mjs +2248 -0
  89. package/build/browser/esm/CfAob8gGydmX1xQu.mjs +16 -0
  90. package/build/browser/esm/ChGigf2OPu7d44Km.mjs +16 -0
  91. package/build/browser/esm/CnzGN0S6zOfL_3SS.mjs +1358 -0
  92. package/build/browser/esm/CpyeUtXgDmrcMESB.mjs +52 -0
  93. package/build/browser/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
  94. package/build/browser/esm/CtrrmHx9YbrOithw.mjs +152 -0
  95. package/build/browser/esm/CzAM0pDdZ7sjGgn9.mjs +86 -0
  96. package/build/browser/esm/D0oVDcgRUMZ9MHzu.mjs +41 -0
  97. package/build/browser/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
  98. package/build/browser/esm/D78-3ghInxscHLVq.mjs +23 -0
  99. package/build/browser/esm/DEpR6b4DMs-va6RS.mjs +43734 -0
  100. package/build/browser/esm/DEsqE49cIQZ8AqCe.mjs +398 -0
  101. package/build/browser/esm/DGe70xvBhc62ZVZz.mjs +2410 -0
  102. package/build/browser/esm/DXapJ5_yR4E8vDaK.mjs +1685 -0
  103. package/build/browser/esm/DjAZeDxBIBZsRTm3.mjs +24 -0
  104. package/build/browser/esm/DttdPwwDTcRX4uwL.mjs +44 -0
  105. package/build/browser/esm/FXcO0MVElhw9cc3v.mjs +49 -0
  106. package/build/browser/esm/GpycqJcrwTRtjEqA.mjs +16 -0
  107. package/build/browser/esm/HCE-tMxyVd0m-PgN.mjs +16 -0
  108. package/build/browser/esm/OCdyQRicV8KxUwMt.mjs +16 -0
  109. package/build/browser/esm/UukTgmLv7or2mhlB.mjs +16 -0
  110. package/build/browser/esm/_cuE13TWr3oEoKGP.mjs +34 -0
  111. package/build/browser/esm/aIlK3Ybu-1T4WHPv.mjs +640 -0
  112. package/build/browser/esm/bFSkTthAEOn7gv5x.mjs +16 -0
  113. package/build/browser/esm/bOhN6up-rdLRp82s.mjs +5588 -0
  114. package/build/browser/esm/index.mjs +85 -0
  115. package/build/browser/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
  116. package/build/browser/esm/o6U2z4gZ7GE4QKZD.mjs +16 -0
  117. package/build/browser/esm/psav3cvsBQQczhPL.mjs +16 -0
  118. package/build/browser/esm/vn0iS301yg2hAbYd.mjs +51 -0
  119. package/build/licenses/dependencies.txt +1341 -0
  120. package/build/node/assets/style.css +1 -0
  121. package/build/node/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
  122. package/build/node/esm/B-Xlyl81h27-bnvO.mjs +16 -0
  123. package/build/node/esm/B1_NYsn5D8x9QedP.mjs +307 -0
  124. package/build/node/esm/BCA5bxOeDA8k1Bm1.mjs +16 -0
  125. package/build/node/esm/BEo9XX1sHmVjScSm.mjs +16 -0
  126. package/build/node/esm/BIfdVpnJR1TZwCPR.mjs +1378 -0
  127. package/build/node/esm/BIqDzNJtkm-dyH0v.mjs +154 -0
  128. package/build/node/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
  129. package/build/node/esm/BUOdfqhtCh8lhOhm.mjs +4000 -0
  130. package/build/node/esm/BYbE15S73xgn7S5E.mjs +88 -0
  131. package/build/node/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
  132. package/build/node/esm/BkyivirgeiDKFSjk.mjs +16 -0
  133. package/build/node/esm/Bm1RqNJ-XvHpJW9z.mjs +831 -0
  134. package/build/node/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
  135. package/build/node/esm/Bx-30HInllXS7M_J.mjs +41 -0
  136. package/build/node/esm/Bx3lQBEvcqhxffT-.mjs +1726 -0
  137. package/build/node/esm/BxsKlaBFnb5wNq6R.mjs +53 -0
  138. package/build/node/esm/C4PMhNAV0KpPsKFj.mjs +24 -0
  139. package/build/node/esm/C7x3L6HtPhZjSrrZ.mjs +471 -0
  140. package/build/node/esm/C8gc149K34Zi2lP2.mjs +16 -0
  141. package/build/node/esm/CK-kn1p9NGRVM_h7.mjs +16 -0
  142. package/build/node/esm/CKR6snAwSONs7kfL.mjs +19 -0
  143. package/build/node/esm/CKXzosgZX8Xe3l59.mjs +16 -0
  144. package/build/node/esm/CLE_RHHvsDeoZ9Zd.mjs +561 -0
  145. package/build/node/esm/CMKci_5THkcJ-w9a.mjs +80 -0
  146. package/build/node/esm/CVU9bu6AnxcgkEwq.mjs +13466 -0
  147. package/build/node/esm/CfAob8gGydmX1xQu.mjs +16 -0
  148. package/build/node/esm/ChGigf2OPu7d44Km.mjs +16 -0
  149. package/build/node/esm/CkvkuPSf4R_DqArg.mjs +5648 -0
  150. package/build/node/esm/CnBMj0oJAyr9ZbjP.mjs +23 -0
  151. package/build/node/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
  152. package/build/node/esm/Crx9i_8dm3OQsk_T.mjs +28 -0
  153. package/build/node/esm/CwUulbiMQH11aF4x.mjs +16 -0
  154. package/build/node/esm/D0Lh0V1tkdJPxZnI.mjs +392 -0
  155. package/build/node/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
  156. package/build/node/esm/D5bg3v_W8K9MVp0j.mjs +1711 -0
  157. package/build/node/esm/D8F08tiG98tM_voL.mjs +16 -0
  158. package/build/node/esm/DR7o1DOIK9zdiBgS.mjs +50 -0
  159. package/build/node/esm/DYEgm2kd3haV-Ml8.mjs +1246 -0
  160. package/build/node/esm/DfzhmhZ4I0Zurcqn.mjs +44 -0
  161. package/build/node/esm/Dg_ERnlsy5hwbzMA.mjs +1498 -0
  162. package/build/node/esm/Dt4cj_0sWgvt4FGj.mjs +92 -0
  163. package/build/node/esm/GpycqJcrwTRtjEqA.mjs +16 -0
  164. package/build/node/esm/LlkIFFfAjLiQ5Or6.mjs +3840 -0
  165. package/build/node/esm/OCdyQRicV8KxUwMt.mjs +16 -0
  166. package/build/node/esm/QATDL2FGAYcVnd33.mjs +49 -0
  167. package/build/node/esm/SvgA2TyqJYOzheuf.mjs +26 -0
  168. package/build/node/esm/VZ150KIUh5JVRqpk.mjs +52 -0
  169. package/build/node/esm/XRLHatWlgABiuBDS.mjs +52 -0
  170. package/build/node/esm/bFSkTthAEOn7gv5x.mjs +16 -0
  171. package/build/node/esm/index.mjs +44754 -0
  172. package/build/node/esm/lgtVRbg712G5Ba-x.mjs +60 -0
  173. package/build/node/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
  174. package/build/node/esm/psav3cvsBQQczhPL.mjs +16 -0
  175. package/build/node/esm/zWnN2OzbhzCc6T7u.mjs +86 -0
  176. package/build/package.json +84 -0
  177. package/build/types/index.d.ts +1848 -0
  178. package/package.json +100 -0
@@ -0,0 +1,2248 @@
1
+ import { jsxs as Ge, jsx as E } from "react/jsx-runtime";
2
+ import { Box as se, TextField as Jt, InputAdornment as Qt, IconButton as eo, FormControlLabel as to, Checkbox as oo, Typography as no, TableCell as Ae, DialogContent as ro } from "@mui/material";
3
+ import { aT as io, aU as Ee, aV as lo, aW as so, aX as ao, aY as co, aZ as U, a_ as uo, P as ho, az as _t, aA as ae, e as ve, a$ as fo, aC as po } from "./DEpR6b4DMs-va6RS.mjs";
4
+ import * as x from "react";
5
+ import St, { cloneElement as mo, useState as ce, useMemo as go, useEffect as We } from "react";
6
+ import { Close as vo } from "@mui/icons-material";
7
+ import { c as N } from "./CNYANG0Z7mhGYo00.mjs";
8
+ import _o, { internal_serializeStyles as He, internal_mutateStyles as So } from "@mui/styled-engine";
9
+ import { alpha as ue } from "@mui/system";
10
+ /**
11
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
12
+ *
13
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
14
+ * License: The license can be found at https://www.sheetxl.com/license.
15
+ */
16
+ const yo = io();
17
+ function _e(o) {
18
+ return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
19
+ }
20
+ function wo(o) {
21
+ return o ? (e, t) => t[o] : null;
22
+ }
23
+ function fe(o, e) {
24
+ const t = typeof e == "function" ? e(o) : e;
25
+ if (Array.isArray(t)) return t.flatMap((n) => fe(o, n));
26
+ if (Array.isArray(t?.variants)) {
27
+ let n;
28
+ if (t.isProcessed) n = t.style;
29
+ else {
30
+ const { variants: r, ...l } = t;
31
+ n = l;
32
+ }
33
+ return yt(o, t.variants, [n]);
34
+ }
35
+ return t?.isProcessed ? t.style : t;
36
+ }
37
+ function yt(o, e, t = []) {
38
+ let n;
39
+ e: for (let r = 0; r < e.length; r += 1) {
40
+ const l = e[r];
41
+ if (typeof l.props == "function") {
42
+ if (n ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, !l.props(n)) continue;
43
+ } else for (const i in l.props) if (o[i] !== l.props[i] && o.ownerState?.[i] !== l.props[i]) continue e;
44
+ typeof l.style == "function" ? (n ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(l.style(n))) : t.push(l.style);
45
+ }
46
+ return t;
47
+ }
48
+ function Co(o) {
49
+ return o && o.charAt(0).toLowerCase() + o.slice(1);
50
+ }
51
+ const xo = function(o = {}) {
52
+ const { themeId: e, defaultTheme: t = yo, rootShouldForwardProp: n = _e, slotShouldForwardProp: r = _e } = o;
53
+ function l(i) {
54
+ (function(a, s, c) {
55
+ a.theme = function(u) {
56
+ for (const d in u) return !1;
57
+ return !0;
58
+ }(a.theme) ? c : a.theme[s] || a.theme;
59
+ })(i, e, t);
60
+ }
61
+ return (i, a = {}) => {
62
+ So(i, (y) => y.filter((C) => C !== Ee));
63
+ const { name: s, slot: c, skipVariantsResolver: u, skipSx: d, overridesResolver: f = wo(Co(c)), ...h } = a, g = u !== void 0 ? u : c && c !== "Root" && c !== "root" || !1, v = d || !1;
64
+ let _ = _e;
65
+ c === "Root" || c === "root" ? _ = n : c ? _ = r : function(y) {
66
+ return typeof y == "string" && y.charCodeAt(0) > 96;
67
+ }(i) && (_ = void 0);
68
+ const S = _o(i, { shouldForwardProp: _, label: void 0, ...h }), m = (y) => {
69
+ if (y.__emotion_real === y) return y;
70
+ if (typeof y == "function") return function(C) {
71
+ return fe(C, y);
72
+ };
73
+ if (lo(y)) {
74
+ const C = function(T) {
75
+ const { variants: R, ...b } = T, P = { variants: R, style: He(b), isProcessed: !0 };
76
+ return P.style === b || R && R.forEach((z) => {
77
+ typeof z.style != "function" && (z.style = He(z.style));
78
+ }), P;
79
+ }(y);
80
+ return C.variants ? function(T) {
81
+ return fe(T, C);
82
+ } : C.style;
83
+ }
84
+ return y;
85
+ }, w = (...y) => {
86
+ const C = [], T = y.map(m), R = [];
87
+ if (C.push(l), s && f && R.push(function(z) {
88
+ const I = z.theme, k = I.components?.[s]?.styleOverrides;
89
+ if (!k) return null;
90
+ const L = {};
91
+ for (const W in k) L[W] = fe(z, k[W]);
92
+ return f(z, L);
93
+ }), s && !g && R.push(function(z) {
94
+ const I = z.theme, k = I?.components?.[s]?.variants;
95
+ return k ? yt(z, k) : null;
96
+ }), v || R.push(Ee), Array.isArray(T[0])) {
97
+ const z = T.shift(), I = new Array(C.length).fill(""), k = new Array(R.length).fill("");
98
+ let L;
99
+ L = [...I, ...z, ...k], L.raw = [...I, ...z.raw, ...k], C.unshift(L);
100
+ }
101
+ const b = [...C, ...T, ...R], P = S(...b);
102
+ return i.muiName && (P.muiName = i.muiName), P;
103
+ };
104
+ return S.withConfig && (w.withConfig = S.withConfig), w;
105
+ };
106
+ }({ themeId: so, defaultTheme: ao, rootShouldForwardProp: (o) => /* @__PURE__ */ function(e) {
107
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
108
+ }(o) && o !== "classes" });
109
+ function G(o, e) {
110
+ if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
111
+ }
112
+ function q(o) {
113
+ return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
114
+ return typeof e;
115
+ } : function(e) {
116
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
117
+ }, q(o);
118
+ }
119
+ function wt(o) {
120
+ var e = function(t, n) {
121
+ if (q(t) != "object" || !t) return t;
122
+ var r = t[Symbol.toPrimitive];
123
+ if (r !== void 0) {
124
+ var l = r.call(t, n);
125
+ if (q(l) != "object") return l;
126
+ throw new TypeError("@@toPrimitive must return a primitive value.");
127
+ }
128
+ return String(t);
129
+ }(o, "string");
130
+ return q(e) == "symbol" ? e : e + "";
131
+ }
132
+ function De(o, e) {
133
+ for (var t = 0; t < e.length; t++) {
134
+ var n = e[t];
135
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, wt(n.key), n);
136
+ }
137
+ }
138
+ function A(o, e, t) {
139
+ return e && De(o.prototype, e), t && De(o, t), Object.defineProperty(o, "prototype", { writable: !1 }), o;
140
+ }
141
+ function H(o, e) {
142
+ if (e && (q(e) == "object" || typeof e == "function")) return e;
143
+ if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
144
+ return function(t) {
145
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
146
+ return t;
147
+ }(o);
148
+ }
149
+ function O(o) {
150
+ return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
151
+ return e.__proto__ || Object.getPrototypeOf(e);
152
+ }, O(o);
153
+ }
154
+ function D(o, e) {
155
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
156
+ o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && co(o, e);
157
+ }
158
+ function p(o, e, t) {
159
+ return (e = wt(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
160
+ }
161
+ function Ct() {
162
+ var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
163
+ o != null && this.setState(o);
164
+ }
165
+ function xt(o) {
166
+ this.setState(function(e) {
167
+ var t = this.constructor.getDerivedStateFromProps(o, e);
168
+ return t ?? null;
169
+ }.bind(this));
170
+ }
171
+ function Rt(o, e) {
172
+ try {
173
+ var t = this.props, n = this.state;
174
+ this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
175
+ } finally {
176
+ this.props = t, this.state = n;
177
+ }
178
+ }
179
+ function le(o) {
180
+ var e = o.prototype;
181
+ if (!e || !e.isReactComponent) throw new Error("Can only polyfill class components");
182
+ if (typeof o.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function") return o;
183
+ var t = null, n = null, r = null;
184
+ if (typeof e.componentWillMount == "function" ? t = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (t = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? r = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (r = "UNSAFE_componentWillUpdate"), t !== null || n !== null || r !== null) {
185
+ var l = o.displayName || o.name, i = typeof o.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
186
+ throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
187
+
188
+ ` + l + " uses " + i + " but also contains the following legacy lifecycles:" + (t !== null ? `
189
+ ` + t : "") + (n !== null ? `
190
+ ` + n : "") + (r !== null ? `
191
+ ` + r : "") + `
192
+
193
+ The above lifecycles should be removed. Learn more about this warning here:
194
+ https://fb.me/react-async-component-lifecycle-hooks`);
195
+ }
196
+ if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = Ct, e.componentWillReceiveProps = xt), typeof e.getSnapshotBeforeUpdate == "function") {
197
+ if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
198
+ e.componentWillUpdate = Rt;
199
+ var a = e.componentDidUpdate;
200
+ e.componentDidUpdate = function(s, c, u) {
201
+ var d = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : u;
202
+ a.call(this, s, c, d);
203
+ };
204
+ }
205
+ return o;
206
+ }
207
+ function je(o, e) {
208
+ var t = Object.keys(o);
209
+ if (Object.getOwnPropertySymbols) {
210
+ var n = Object.getOwnPropertySymbols(o);
211
+ e && (n = n.filter(function(r) {
212
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
213
+ })), t.push.apply(t, n);
214
+ }
215
+ return t;
216
+ }
217
+ function Fe(o) {
218
+ for (var e = 1; e < arguments.length; e++) {
219
+ var t = arguments[e] != null ? arguments[e] : {};
220
+ e % 2 ? je(Object(t), !0).forEach(function(n) {
221
+ p(o, n, t[n]);
222
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : je(Object(t)).forEach(function(n) {
223
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
224
+ });
225
+ }
226
+ return o;
227
+ }
228
+ function bt() {
229
+ try {
230
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
231
+ }));
232
+ } catch {
233
+ }
234
+ return (bt = function() {
235
+ return !!o;
236
+ })();
237
+ }
238
+ Ct.__suppressDeprecationWarning = !0, xt.__suppressDeprecationWarning = !0, Rt.__suppressDeprecationWarning = !0;
239
+ var Ne = function() {
240
+ function o() {
241
+ var e, t, n, r;
242
+ G(this, o);
243
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
244
+ return t = this, n = o, r = [].concat(i), n = O(n), p(e = H(t, bt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { scrollToColumn: 0, scrollToRow: 0, instanceProps: { prevScrollToColumn: 0, prevScrollToRow: 0 } }), p(e, "_columnStartIndex", 0), p(e, "_columnStopIndex", 0), p(e, "_rowStartIndex", 0), p(e, "_rowStopIndex", 0), p(e, "_onKeyDown", function(s) {
245
+ var c = e.props, u = c.columnCount, d = c.disabled, f = c.mode, h = c.rowCount;
246
+ if (!d) {
247
+ var g = e._getScrollState(), v = g.scrollToColumn, _ = g.scrollToRow, S = e._getScrollState(), m = S.scrollToColumn, w = S.scrollToRow;
248
+ switch (s.key) {
249
+ case "ArrowDown":
250
+ w = Math.min(f === "cells" ? w + 1 : e._rowStopIndex + 1, h - 1);
251
+ break;
252
+ case "ArrowLeft":
253
+ m = Math.max(f === "cells" ? m - 1 : e._columnStartIndex - 1, 0);
254
+ break;
255
+ case "ArrowRight":
256
+ m = Math.min(f === "cells" ? m + 1 : e._columnStopIndex + 1, u - 1);
257
+ break;
258
+ case "ArrowUp":
259
+ w = Math.max(f === "cells" ? w - 1 : e._rowStartIndex - 1, 0);
260
+ }
261
+ m === v && w === _ || (s.preventDefault(), e._updateScrollState({ scrollToColumn: m, scrollToRow: w }));
262
+ }
263
+ }), p(e, "_onSectionRendered", function(s) {
264
+ var c = s.columnStartIndex, u = s.columnStopIndex, d = s.rowStartIndex, f = s.rowStopIndex;
265
+ e._columnStartIndex = c, e._columnStopIndex = u, e._rowStartIndex = d, e._rowStopIndex = f;
266
+ }), e;
267
+ }
268
+ return D(o, x.PureComponent), A(o, [{ key: "setScrollIndexes", value: function(e) {
269
+ var t = e.scrollToColumn, n = e.scrollToRow;
270
+ this.setState({ scrollToRow: n, scrollToColumn: t });
271
+ } }, { key: "render", value: function() {
272
+ var e = this.props, t = e.className, n = e.children, r = this._getScrollState(), l = r.scrollToColumn, i = r.scrollToRow;
273
+ return x.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn: l, scrollToRow: i }));
274
+ } }, { key: "_getScrollState", value: function() {
275
+ return this.props.isControlled ? this.props : this.state;
276
+ } }, { key: "_updateScrollState", value: function(e) {
277
+ var t = e.scrollToColumn, n = e.scrollToRow, r = this.props, l = r.isControlled, i = r.onScrollToChange;
278
+ typeof i == "function" && i({ scrollToColumn: t, scrollToRow: n }), l || this.setState({ scrollToColumn: t, scrollToRow: n });
279
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
280
+ return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? Fe(Fe({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
281
+ } }]);
282
+ }();
283
+ function Tt(o, e) {
284
+ var t, n = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
285
+ if (!n) {
286
+ var r = function() {
287
+ var m = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(w) {
288
+ return t.setTimeout(w, 20);
289
+ };
290
+ return function(w) {
291
+ return m(w);
292
+ };
293
+ }(), l = function() {
294
+ var m = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
295
+ return function(w) {
296
+ return m(w);
297
+ };
298
+ }(), i = function(m) {
299
+ var w = m.__resizeTriggers__, y = w.firstElementChild, C = w.lastElementChild, T = y.firstElementChild;
300
+ C.scrollLeft = C.scrollWidth, C.scrollTop = C.scrollHeight, T.style.width = y.offsetWidth + 1 + "px", T.style.height = y.offsetHeight + 1 + "px", y.scrollLeft = y.scrollWidth, y.scrollTop = y.scrollHeight;
301
+ }, a = function(m) {
302
+ if (!(m.target.className && typeof m.target.className.indexOf == "function" && m.target.className.indexOf("contract-trigger") < 0 && m.target.className.indexOf("expand-trigger") < 0)) {
303
+ var w = this;
304
+ i(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = r(function() {
305
+ (function(y) {
306
+ return y.offsetWidth != y.__resizeLast__.width || y.offsetHeight != y.__resizeLast__.height;
307
+ })(w) && (w.__resizeLast__.width = w.offsetWidth, w.__resizeLast__.height = w.offsetHeight, w.__resizeListeners__.forEach(function(y) {
308
+ y.call(w, m);
309
+ }));
310
+ });
311
+ }
312
+ }, s = !1, c = "", u = "animationstart", d = "Webkit Moz O ms".split(" "), f = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), h = t.document.createElement("fakeelement");
313
+ if (h.style.animationName !== void 0 && (s = !0), s === !1) {
314
+ for (var g = 0; g < d.length; g++) if (h.style[d[g] + "AnimationName"] !== void 0) {
315
+ c = "-" + d[g].toLowerCase() + "-", u = f[g], s = !0;
316
+ break;
317
+ }
318
+ }
319
+ var v = "resizeanim", _ = "@" + c + "keyframes " + v + " { from { opacity: 0; } to { opacity: 0; } } ", S = c + "animation: 1ms " + v + "; ";
320
+ }
321
+ return { addResizeListener: function(m, w) {
322
+ if (n) m.attachEvent("onresize", w);
323
+ else {
324
+ if (!m.__resizeTriggers__) {
325
+ var y = m.ownerDocument, C = t.getComputedStyle(m);
326
+ C && C.position == "static" && (m.style.position = "relative"), function(b) {
327
+ if (!b.getElementById("detectElementResize")) {
328
+ var P = (_ || "") + ".resize-triggers { " + (S || "") + '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%; }', z = b.head || b.getElementsByTagName("head")[0], I = b.createElement("style");
329
+ I.id = "detectElementResize", I.type = "text/css", o != null && I.setAttribute("nonce", o), I.styleSheet ? I.styleSheet.cssText = P : I.appendChild(b.createTextNode(P)), z.appendChild(I);
330
+ }
331
+ }(y), m.__resizeLast__ = {}, m.__resizeListeners__ = [], (m.__resizeTriggers__ = y.createElement("div")).className = "resize-triggers";
332
+ var T = y.createElement("div");
333
+ T.className = "expand-trigger", T.appendChild(y.createElement("div"));
334
+ var R = y.createElement("div");
335
+ R.className = "contract-trigger", m.__resizeTriggers__.appendChild(T), m.__resizeTriggers__.appendChild(R), m.appendChild(m.__resizeTriggers__), i(m), m.addEventListener("scroll", a, !0), u && (m.__resizeTriggers__.__animationListener__ = function(b) {
336
+ b.animationName == v && i(m);
337
+ }, m.__resizeTriggers__.addEventListener(u, m.__resizeTriggers__.__animationListener__));
338
+ }
339
+ m.__resizeListeners__.push(w);
340
+ }
341
+ }, removeResizeListener: function(m, w) {
342
+ if (n) m.detachEvent("onresize", w);
343
+ else if (m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(w), 1), !m.__resizeListeners__.length) {
344
+ m.removeEventListener("scroll", a, !0), m.__resizeTriggers__.__animationListener__ && (m.__resizeTriggers__.removeEventListener(u, m.__resizeTriggers__.__animationListener__), m.__resizeTriggers__.__animationListener__ = null);
345
+ try {
346
+ m.__resizeTriggers__ = !m.removeChild(m.__resizeTriggers__);
347
+ } catch {
348
+ }
349
+ }
350
+ } };
351
+ }
352
+ function Be(o, e) {
353
+ var t = Object.keys(o);
354
+ if (Object.getOwnPropertySymbols) {
355
+ var n = Object.getOwnPropertySymbols(o);
356
+ e && (n = n.filter(function(r) {
357
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
358
+ })), t.push.apply(t, n);
359
+ }
360
+ return t;
361
+ }
362
+ function Ue(o) {
363
+ for (var e = 1; e < arguments.length; e++) {
364
+ var t = arguments[e] != null ? arguments[e] : {};
365
+ e % 2 ? Be(Object(t), !0).forEach(function(n) {
366
+ p(o, n, t[n]);
367
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Be(Object(t)).forEach(function(n) {
368
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
369
+ });
370
+ }
371
+ return o;
372
+ }
373
+ function zt() {
374
+ try {
375
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
376
+ }));
377
+ } catch {
378
+ }
379
+ return (zt = function() {
380
+ return !!o;
381
+ })();
382
+ }
383
+ p(Ne, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), le(Ne);
384
+ var It = function() {
385
+ function o() {
386
+ var e, t, n, r;
387
+ G(this, o);
388
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
389
+ return t = this, n = o, r = [].concat(i), n = O(n), p(e = H(t, zt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { height: e.props.defaultHeight || 0, width: e.props.defaultWidth || 0 }), p(e, "_parentNode", void 0), p(e, "_autoSizer", void 0), p(e, "_window", void 0), p(e, "_detectElementResize", void 0), p(e, "_onResize", function() {
390
+ var s = e.props, c = s.disableHeight, u = s.disableWidth, d = s.onResize;
391
+ if (e._parentNode) {
392
+ var f = e._parentNode.offsetHeight || 0, h = e._parentNode.offsetWidth || 0, g = (e._window || window).getComputedStyle(e._parentNode) || {}, v = parseInt(g.paddingLeft, 10) || 0, _ = parseInt(g.paddingRight, 10) || 0, S = parseInt(g.paddingTop, 10) || 0, m = parseInt(g.paddingBottom, 10) || 0, w = f - S - m, y = h - v - _;
393
+ (!c && e.state.height !== w || !u && e.state.width !== y) && (e.setState({ height: f - S - m, width: h - v - _ }), d({ height: f, width: h }));
394
+ }
395
+ }), p(e, "_setRef", function(s) {
396
+ e._autoSizer = s;
397
+ }), e;
398
+ }
399
+ return D(o, x.Component), A(o, [{ key: "componentDidMount", value: function() {
400
+ var e = this.props.nonce;
401
+ this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize = Tt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
402
+ } }, { key: "componentWillUnmount", value: function() {
403
+ this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
404
+ } }, { key: "render", value: function() {
405
+ var e = this.props, t = e.children, n = e.className, r = e.disableHeight, l = e.disableWidth, i = e.style, a = this.state, s = a.height, c = a.width, u = { overflow: "visible" }, d = {};
406
+ return r || (u.height = 0, d.height = s), l || (u.width = 0, d.width = c), x.createElement("div", { className: n, ref: this._setRef, style: Ue(Ue({}, u), i) }, t(d));
407
+ } }]);
408
+ }();
409
+ function Pt() {
410
+ try {
411
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
412
+ }));
413
+ } catch {
414
+ }
415
+ return (Pt = function() {
416
+ return !!o;
417
+ })();
418
+ }
419
+ p(It, "defaultProps", { onResize: function() {
420
+ }, disableHeight: !1, disableWidth: !1, style: {} });
421
+ var Ro = function() {
422
+ function o() {
423
+ var e, t, n, r;
424
+ G(this, o);
425
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
426
+ return t = this, n = o, r = [].concat(i), n = O(n), p(e = H(t, Pt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_child", x.createRef()), p(e, "_measure", function() {
427
+ var s = e.props, c = s.cache, u = s.columnIndex, d = u === void 0 ? 0 : u, f = s.parent, h = s.rowIndex, g = h === void 0 ? e.props.index || 0 : h, v = e._getCellMeasurements(), _ = v.height, S = v.width;
428
+ _ === c.getHeight(g, d) && S === c.getWidth(g, d) || (c.set(g, d, S, _), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: d, rowIndex: g }));
429
+ }), p(e, "_registerChild", function(s) {
430
+ !s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
431
+ }), e;
432
+ }
433
+ return D(o, x.PureComponent), A(o, [{ key: "componentDidMount", value: function() {
434
+ this._maybeMeasureCell();
435
+ } }, { key: "componentDidUpdate", value: function() {
436
+ this._maybeMeasureCell();
437
+ } }, { key: "render", value: function() {
438
+ var e = this, t = this.props.children, n = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
439
+ return n === null ? n : mo(n, { ref: function(r) {
440
+ typeof n.ref == "function" ? n.ref(r) : n.ref && (n.ref.current = r), e._child.current = r;
441
+ } });
442
+ } }, { key: "_getCellMeasurements", value: function() {
443
+ var e = this.props.cache, t = this._child.current;
444
+ if (t && t.ownerDocument && t.ownerDocument.defaultView && t instanceof t.ownerDocument.defaultView.HTMLElement) {
445
+ var n = t.style.width, r = t.style.height;
446
+ e.hasFixedWidth() || (t.style.width = "auto"), e.hasFixedHeight() || (t.style.height = "auto");
447
+ var l = Math.ceil(t.offsetHeight), i = Math.ceil(t.offsetWidth);
448
+ return n && (t.style.width = n), r && (t.style.height = r), { height: l, width: i };
449
+ }
450
+ return { height: 0, width: 0 };
451
+ } }, { key: "_maybeMeasureCell", value: function() {
452
+ var e = this.props, t = e.cache, n = e.columnIndex, r = n === void 0 ? 0 : n, l = e.parent, i = e.rowIndex, a = i === void 0 ? this.props.index || 0 : i;
453
+ if (!t.has(a, r)) {
454
+ var s = this._getCellMeasurements(), c = s.height, u = s.width;
455
+ t.set(a, r, u, c), l && typeof l.invalidateCellSizeAfterRender == "function" && l.invalidateCellSizeAfterRender({ columnIndex: r, rowIndex: a });
456
+ }
457
+ } }]);
458
+ }();
459
+ function Y() {
460
+ var o = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], e = {};
461
+ return function(t) {
462
+ var n = t.callback, r = t.indices, l = Object.keys(r), i = !o || l.every(function(s) {
463
+ var c = r[s];
464
+ return Array.isArray(c) ? c.length > 0 : c >= 0;
465
+ }), a = l.length !== Object.keys(e).length || l.some(function(s) {
466
+ var c = e[s], u = r[s];
467
+ return Array.isArray(u) ? c.join(",") !== u.join(",") : c !== u;
468
+ });
469
+ e = r, i && a && n(r);
470
+ };
471
+ }
472
+ p(Ro, "__internalCellMeasurerFlag", !1);
473
+ const bo = !(typeof window > "u" || !window.document || !window.document.createElement);
474
+ var de;
475
+ function xe(o) {
476
+ if ((!de && de !== 0 || o) && bo) {
477
+ var e = document.createElement("div");
478
+ e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), de = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
479
+ }
480
+ return de;
481
+ }
482
+ function Ve(o, e) {
483
+ var t = Object.keys(o);
484
+ if (Object.getOwnPropertySymbols) {
485
+ var n = Object.getOwnPropertySymbols(o);
486
+ e && (n = n.filter(function(r) {
487
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
488
+ })), t.push.apply(t, n);
489
+ }
490
+ return t;
491
+ }
492
+ function qe(o) {
493
+ for (var e = 1; e < arguments.length; e++) {
494
+ var t = arguments[e] != null ? arguments[e] : {};
495
+ e % 2 ? Ve(Object(t), !0).forEach(function(n) {
496
+ p(o, n, t[n]);
497
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ve(Object(t)).forEach(function(n) {
498
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
499
+ });
500
+ }
501
+ return o;
502
+ }
503
+ function Ot() {
504
+ try {
505
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
506
+ }));
507
+ } catch {
508
+ }
509
+ return (Ot = function() {
510
+ return !!o;
511
+ })();
512
+ }
513
+ var To = "observed", J = "requested", pe = function() {
514
+ function o() {
515
+ var e, t, n, r;
516
+ G(this, o);
517
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
518
+ return t = this, n = o, r = [].concat(i), n = O(n), p(e = H(t, Ot() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollLeft: 0, scrollTop: 0 }), p(e, "_calculateSizeAndPositionDataOnNextUpdate", !1), p(e, "_onSectionRenderedMemoizer", Y()), p(e, "_onScrollMemoizer", Y(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
519
+ var s = e.props, c = s.cellLayoutManager, u = s.onSectionRendered;
520
+ e._onSectionRenderedMemoizer({ callback: u, indices: { indices: c.getLastRenderedIndices() } });
521
+ }), p(e, "_setScrollingContainerRef", function(s) {
522
+ e._scrollingContainer = s;
523
+ }), p(e, "_updateScrollPositionForScrollToCell", function() {
524
+ var s = e.props, c = s.cellLayoutManager, u = s.height, d = s.scrollToAlignment, f = s.scrollToCell, h = s.width, g = e.state, v = g.scrollLeft, _ = g.scrollTop;
525
+ if (f >= 0) {
526
+ var S = c.getScrollPositionForCell({ align: d, cellIndex: f, height: u, scrollLeft: v, scrollTop: _, width: h });
527
+ S.scrollLeft === v && S.scrollTop === _ || e._setScrollPosition(S);
528
+ }
529
+ }), p(e, "_onScroll", function(s) {
530
+ if (s.target === e._scrollingContainer) {
531
+ e._enablePointerEventsAfterDelay();
532
+ var c = e.props, u = c.cellLayoutManager, d = c.height, f = c.isScrollingChange, h = c.width, g = e._scrollbarSize, v = u.getTotalSize(), _ = v.height, S = v.width, m = Math.max(0, Math.min(S - h + g, s.target.scrollLeft)), w = Math.max(0, Math.min(_ - d + g, s.target.scrollTop));
533
+ if (e.state.scrollLeft !== m || e.state.scrollTop !== w) {
534
+ var y = s.cancelable ? To : J;
535
+ e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: m, scrollPositionChangeReason: y, scrollTop: w });
536
+ }
537
+ e._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: w, totalWidth: S, totalHeight: _ });
538
+ }
539
+ }), e._scrollbarSize = xe(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
540
+ }
541
+ return D(o, x.PureComponent), A(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
542
+ this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
543
+ } }, { key: "componentDidMount", value: function() {
544
+ var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, l = e.scrollTop;
545
+ this._scrollbarSizeMeasured || (this._scrollbarSize = xe(), this._scrollbarSizeMeasured = !0, this.setState({})), r >= 0 ? this._updateScrollPositionForScrollToCell() : (n >= 0 || l >= 0) && this._setScrollPosition({ scrollLeft: n, scrollTop: l }), this._invokeOnSectionRenderedHelper();
546
+ var i = t.getTotalSize(), a = i.height, s = i.width;
547
+ this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop: l || 0, totalHeight: a, totalWidth: s });
548
+ } }, { key: "componentDidUpdate", value: function(e, t) {
549
+ var n = this.props, r = n.height, l = n.scrollToAlignment, i = n.scrollToCell, a = n.width, s = this.state, c = s.scrollLeft, u = s.scrollPositionChangeReason, d = s.scrollTop;
550
+ u === J && (c >= 0 && c !== t.scrollLeft && c !== this._scrollingContainer.scrollLeft && (this._scrollingContainer.scrollLeft = c), d >= 0 && d !== t.scrollTop && d !== this._scrollingContainer.scrollTop && (this._scrollingContainer.scrollTop = d)), r === e.height && l === e.scrollToAlignment && i === e.scrollToCell && a === e.width || this._updateScrollPositionForScrollToCell(), this._invokeOnSectionRenderedHelper();
551
+ } }, { key: "componentWillUnmount", value: function() {
552
+ this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
553
+ } }, { key: "render", value: function() {
554
+ var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, l = e.className, i = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, u = e.style, d = e.verticalOverscanSize, f = e.width, h = this.state, g = h.isScrolling, v = h.scrollLeft, _ = h.scrollTop;
555
+ (this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
556
+ var S = r.getTotalSize(), m = S.height, w = S.width, y = Math.max(0, v - a), C = Math.max(0, _ - d), T = Math.min(w, v + f + a), R = Math.min(m, _ + i + d), b = i > 0 && f > 0 ? r.cellRenderers({ height: R - C, isScrolling: g, width: T - y, x: y, y: C }) : [], P = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : i, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, z = m > i ? this._scrollbarSize : 0, I = w > f ? this._scrollbarSize : 0;
557
+ return P.overflowX = w + z <= f ? "hidden" : "auto", P.overflowY = m + I <= i ? "hidden" : "auto", x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", l), id: s, onScroll: this._onScroll, role: "grid", style: qe(qe({}, P), u), tabIndex: 0 }, n > 0 && x.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: m, maxHeight: m, maxWidth: w, overflow: "hidden", pointerEvents: g ? "none" : "", width: w } }, b), n === 0 && c());
558
+ } }, { key: "_enablePointerEventsAfterDelay", value: function() {
559
+ var e = this;
560
+ this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
561
+ (0, e.props.isScrollingChange)(!1), e._disablePointerEventsTimeoutId = null, e.setState({ isScrolling: !1 });
562
+ }, 150);
563
+ } }, { key: "_invokeOnScrollMemoizer", value: function(e) {
564
+ var t = this, n = e.scrollLeft, r = e.scrollTop, l = e.totalHeight, i = e.totalWidth;
565
+ this._onScrollMemoizer({ callback: function(a) {
566
+ var s = a.scrollLeft, c = a.scrollTop, u = t.props, d = u.height;
567
+ (0, u.onScroll)({ clientHeight: d, clientWidth: u.width, scrollHeight: l, scrollLeft: s, scrollTop: c, scrollWidth: i });
568
+ }, indices: { scrollLeft: n, scrollTop: r } });
569
+ } }, { key: "_setScrollPosition", value: function(e) {
570
+ var t = e.scrollLeft, n = e.scrollTop, r = { scrollPositionChangeReason: J };
571
+ t >= 0 && (r.scrollLeft = t), n >= 0 && (r.scrollTop = n), (t >= 0 && t !== this.state.scrollLeft || n >= 0 && n !== this.state.scrollTop) && this.setState(r);
572
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
573
+ return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason: J } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: J };
574
+ } }]);
575
+ }();
576
+ p(pe, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
577
+ return null;
578
+ }, onScroll: function() {
579
+ return null;
580
+ }, onSectionRendered: function() {
581
+ return null;
582
+ }, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), pe.propTypes = {}, le(pe);
583
+ var zo = function() {
584
+ return A(function o(e) {
585
+ var t = e.height, n = e.width, r = e.x, l = e.y;
586
+ G(this, o), this.height = t, this.width = n, this.x = r, this.y = l, this._indexMap = {}, this._indices = [];
587
+ }, [{ key: "addCellIndex", value: function(o) {
588
+ var e = o.index;
589
+ this._indexMap[e] || (this._indexMap[e] = !0, this._indices.push(e));
590
+ } }, { key: "getCellIndices", value: function() {
591
+ return this._indices;
592
+ } }, { key: "toString", value: function() {
593
+ return "".concat(this.x, ",").concat(this.y, " ").concat(this.width, "x").concat(this.height);
594
+ } }]);
595
+ }(), Io = function() {
596
+ return A(function o() {
597
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
598
+ G(this, o), this._sectionSize = e, this._cellMetadata = [], this._sections = {};
599
+ }, [{ key: "getCellIndices", value: function(o) {
600
+ var e = o.height, t = o.width, n = o.x, r = o.y, l = {};
601
+ return this.getSections({ height: e, width: t, x: n, y: r }).forEach(function(i) {
602
+ return i.getCellIndices().forEach(function(a) {
603
+ l[a] = a;
604
+ });
605
+ }), Object.keys(l).map(function(i) {
606
+ return l[i];
607
+ });
608
+ } }, { key: "getCellMetadata", value: function(o) {
609
+ var e = o.index;
610
+ return this._cellMetadata[e];
611
+ } }, { key: "getSections", value: function(o) {
612
+ for (var e = o.height, t = o.width, n = o.x, r = o.y, l = Math.floor(n / this._sectionSize), i = Math.floor((n + t - 1) / this._sectionSize), a = Math.floor(r / this._sectionSize), s = Math.floor((r + e - 1) / this._sectionSize), c = [], u = l; u <= i; u++) for (var d = a; d <= s; d++) {
613
+ var f = "".concat(u, ".").concat(d);
614
+ this._sections[f] || (this._sections[f] = new zo({ height: this._sectionSize, width: this._sectionSize, x: u * this._sectionSize, y: d * this._sectionSize })), c.push(this._sections[f]);
615
+ }
616
+ return c;
617
+ } }, { key: "getTotalSectionCount", value: function() {
618
+ return Object.keys(this._sections).length;
619
+ } }, { key: "toString", value: function() {
620
+ var o = this;
621
+ return Object.keys(this._sections).map(function(e) {
622
+ return o._sections[e].toString();
623
+ });
624
+ } }, { key: "registerCell", value: function(o) {
625
+ var e = o.cellMetadatum, t = o.index;
626
+ this._cellMetadata[t] = e, this.getSections(e).forEach(function(n) {
627
+ return n.addCellIndex({ index: t });
628
+ });
629
+ } }]);
630
+ }();
631
+ function Ke(o) {
632
+ var e = o.align, t = e === void 0 ? "auto" : e, n = o.cellOffset, r = o.cellSize, l = o.containerSize, i = o.currentOffset, a = n, s = a - l + r;
633
+ switch (t) {
634
+ case "start":
635
+ return a;
636
+ case "end":
637
+ return s;
638
+ case "center":
639
+ return a - (l - r) / 2;
640
+ default:
641
+ return Math.max(s, Math.min(a, i));
642
+ }
643
+ }
644
+ function kt() {
645
+ try {
646
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
647
+ }));
648
+ } catch {
649
+ }
650
+ return (kt = function() {
651
+ return !!o;
652
+ })();
653
+ }
654
+ var $e = function() {
655
+ function o(e, t) {
656
+ var n, r, l, i;
657
+ return G(this, o), r = this, i = [e, t], l = O(l = o), (n = H(r, kt() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i)))._cellMetadata = [], n._lastRenderedCellIndices = [], n._cellCache = [], n._isScrollingChange = n._isScrollingChange.bind(n), n._setCollectionViewRef = n._setCollectionViewRef.bind(n), n;
658
+ }
659
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdate", value: function() {
660
+ this._collectionView !== void 0 && this._collectionView.forceUpdate();
661
+ } }, { key: "recomputeCellSizesAndPositions", value: function() {
662
+ this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
663
+ } }, { key: "render", value: function() {
664
+ var e = U({}, (function(t) {
665
+ if (t == null) throw new TypeError("Cannot destructure " + t);
666
+ }(this.props), this.props));
667
+ return x.createElement(pe, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
668
+ } }, { key: "calculateSizeAndPositionData", value: function() {
669
+ var e = this.props, t = function(n) {
670
+ for (var r = n.cellCount, l = n.cellSizeAndPositionGetter, i = n.sectionSize, a = [], s = new Io(i), c = 0, u = 0, d = 0; d < r; d++) {
671
+ var f = l({ index: d });
672
+ if (f.height == null || isNaN(f.height) || f.width == null || isNaN(f.width) || f.x == null || isNaN(f.x) || f.y == null || isNaN(f.y)) throw Error("Invalid metadata returned for cell ".concat(d, `:
673
+ x:`).concat(f.x, ", y:").concat(f.y, ", width:").concat(f.width, ", height:").concat(f.height));
674
+ c = Math.max(c, f.y + f.height), u = Math.max(u, f.x + f.width), a[d] = f, s.registerCell({ cellMetadatum: f, index: d });
675
+ }
676
+ return { cellMetadata: a, height: c, sectionManager: s, width: u };
677
+ }({ cellCount: e.cellCount, cellSizeAndPositionGetter: e.cellSizeAndPositionGetter, sectionSize: e.sectionSize });
678
+ this._cellMetadata = t.cellMetadata, this._sectionManager = t.sectionManager, this._height = t.height, this._width = t.width;
679
+ } }, { key: "getLastRenderedIndices", value: function() {
680
+ return this._lastRenderedCellIndices;
681
+ } }, { key: "getScrollPositionForCell", value: function(e) {
682
+ var t = e.align, n = e.cellIndex, r = e.height, l = e.scrollLeft, i = e.scrollTop, a = e.width, s = this.props.cellCount;
683
+ if (n >= 0 && n < s) {
684
+ var c = this._cellMetadata[n];
685
+ l = Ke({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: l }), i = Ke({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: i });
686
+ }
687
+ return { scrollLeft: l, scrollTop: i };
688
+ } }, { key: "getTotalSize", value: function() {
689
+ return { height: this._height, width: this._width };
690
+ } }, { key: "cellRenderers", value: function(e) {
691
+ var t = this, n = e.height, r = e.isScrolling, l = e.width, i = e.x, a = e.y, s = this.props, c = s.cellGroupRenderer, u = s.cellRenderer;
692
+ return this._lastRenderedCellIndices = this._sectionManager.getCellIndices({ height: n, width: l, x: i, y: a }), c({ cellCache: this._cellCache, cellRenderer: u, cellSizeAndPositionGetter: function(d) {
693
+ var f = d.index;
694
+ return t._sectionManager.getCellMetadata({ index: f });
695
+ }, indices: this._lastRenderedCellIndices, isScrolling: r });
696
+ } }, { key: "_isScrollingChange", value: function(e) {
697
+ e || (this._cellCache = []);
698
+ } }, { key: "_setCollectionViewRef", value: function(e) {
699
+ this._collectionView = e;
700
+ } }]);
701
+ }();
702
+ function Mt() {
703
+ try {
704
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
705
+ }));
706
+ } catch {
707
+ }
708
+ return (Mt = function() {
709
+ return !!o;
710
+ })();
711
+ }
712
+ function Xe(o) {
713
+ var e = o.cellCount, t = o.cellSize, n = o.computeMetadataCallback, r = o.computeMetadataCallbackProps, l = o.nextCellsCount, i = o.nextCellSize, a = o.nextScrollToIndex, s = o.scrollToIndex, c = o.updateScrollOffsetForScrollToIndex;
714
+ e === l && (typeof t != "number" && typeof i != "number" || t === i) || (n(r), s >= 0 && s === a && c());
715
+ }
716
+ function ee(o, e) {
717
+ if (o == null) return {};
718
+ var t, n, r = uo(o, e);
719
+ if (Object.getOwnPropertySymbols) {
720
+ var l = Object.getOwnPropertySymbols(o);
721
+ for (n = 0; n < l.length; n++) t = l[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (r[t] = o[t]);
722
+ }
723
+ return r;
724
+ }
725
+ p($e, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
726
+ var e = o.cellCache, t = o.cellRenderer, n = o.cellSizeAndPositionGetter, r = o.indices, l = o.isScrolling;
727
+ return r.map(function(i) {
728
+ var a = n({ index: i }), s = { index: i, isScrolling: l, key: i, style: { height: a.height, left: a.x, position: "absolute", top: a.y, width: a.width } };
729
+ return l ? (i in e || (e[i] = t(s)), e[i]) : t(s);
730
+ }).filter(function(i) {
731
+ return !!i;
732
+ });
733
+ } }), $e.propTypes = {}, function() {
734
+ function o(e, t) {
735
+ var n, r, l, i;
736
+ return G(this, o), r = this, i = [e, t], l = O(l = o), (n = H(r, Mt() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i)))._registerChild = n._registerChild.bind(n), n;
737
+ }
738
+ return D(o, x.PureComponent), A(o, [{ key: "componentDidUpdate", value: function(e) {
739
+ var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, l = t.columnCount, i = t.width;
740
+ n === e.columnMaxWidth && r === e.columnMinWidth && l === e.columnCount && i === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
741
+ } }, { key: "render", value: function() {
742
+ var e = this.props, t = e.children, n = e.columnMaxWidth, r = e.columnMinWidth, l = e.columnCount, i = e.width, a = r || 1, s = n ? Math.min(n, i) : i, c = i / l;
743
+ return c = Math.max(a, c), c = Math.min(s, c), c = Math.floor(c), t({ adjustedWidth: Math.min(i, c * l), columnWidth: c, getColumnWidth: function() {
744
+ return c;
745
+ }, registerChild: this._registerChild });
746
+ } }, { key: "_registerChild", value: function(e) {
747
+ if (e && typeof e.recomputeGridSize != "function") throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");
748
+ this._registeredChild = e, this._registeredChild && this._registeredChild.recomputeGridSize();
749
+ } }]);
750
+ }().propTypes = {};
751
+ var F, Po = function() {
752
+ return A(function o(e) {
753
+ var t = e.cellCount, n = e.cellSizeGetter, r = e.estimatedCellSize;
754
+ G(this, o), p(this, "_cellSizeAndPositionData", {}), p(this, "_lastMeasuredIndex", -1), p(this, "_lastBatchedIndex", -1), p(this, "_cellCount", void 0), p(this, "_cellSizeGetter", void 0), p(this, "_estimatedCellSize", void 0), this._cellSizeGetter = n, this._cellCount = t, this._estimatedCellSize = r;
755
+ }, [{ key: "areOffsetsAdjusted", value: function() {
756
+ return !1;
757
+ } }, { key: "configure", value: function(o) {
758
+ var e = o.cellCount, t = o.estimatedCellSize, n = o.cellSizeGetter;
759
+ this._cellCount = e, this._estimatedCellSize = t, this._cellSizeGetter = n;
760
+ } }, { key: "getCellCount", value: function() {
761
+ return this._cellCount;
762
+ } }, { key: "getEstimatedCellSize", value: function() {
763
+ return this._estimatedCellSize;
764
+ } }, { key: "getLastMeasuredIndex", value: function() {
765
+ return this._lastMeasuredIndex;
766
+ } }, { key: "getOffsetAdjustment", value: function() {
767
+ return 0;
768
+ } }, { key: "getSizeAndPositionOfCell", value: function(o) {
769
+ if (o < 0 || o >= this._cellCount) throw Error("Requested index ".concat(o, " is outside of range 0..").concat(this._cellCount));
770
+ if (o > this._lastMeasuredIndex) for (var e = this.getSizeAndPositionOfLastMeasuredCell(), t = e.offset + e.size, n = this._lastMeasuredIndex + 1; n <= o; n++) {
771
+ var r = this._cellSizeGetter({ index: n });
772
+ if (r === void 0 || isNaN(r)) throw Error("Invalid size returned for cell ".concat(n, " of value ").concat(r));
773
+ r === null ? (this._cellSizeAndPositionData[n] = { offset: t, size: 0 }, this._lastBatchedIndex = o) : (this._cellSizeAndPositionData[n] = { offset: t, size: r }, t += r, this._lastMeasuredIndex = o);
774
+ }
775
+ return this._cellSizeAndPositionData[o];
776
+ } }, { key: "getSizeAndPositionOfLastMeasuredCell", value: function() {
777
+ return this._lastMeasuredIndex >= 0 ? this._cellSizeAndPositionData[this._lastMeasuredIndex] : { offset: 0, size: 0 };
778
+ } }, { key: "getTotalSize", value: function() {
779
+ var o = this.getSizeAndPositionOfLastMeasuredCell();
780
+ return o.offset + o.size + (this._cellCount - this._lastMeasuredIndex - 1) * this._estimatedCellSize;
781
+ } }, { key: "getUpdatedOffsetForIndex", value: function(o) {
782
+ var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset, l = o.targetIndex;
783
+ if (n <= 0) return 0;
784
+ var i, a = this.getSizeAndPositionOfCell(l), s = a.offset, c = s - n + a.size;
785
+ switch (t) {
786
+ case "start":
787
+ i = s;
788
+ break;
789
+ case "end":
790
+ i = c;
791
+ break;
792
+ case "center":
793
+ i = s - (n - a.size) / 2;
794
+ break;
795
+ default:
796
+ i = Math.max(c, Math.min(s, r));
797
+ }
798
+ var u = this.getTotalSize();
799
+ return Math.max(0, Math.min(u - n, i));
800
+ } }, { key: "getVisibleCellRange", value: function(o) {
801
+ var e = o.containerSize, t = o.offset;
802
+ if (this.getTotalSize() === 0) return {};
803
+ var n = t + e, r = this._findNearestCell(t), l = this.getSizeAndPositionOfCell(r);
804
+ t = l.offset + l.size;
805
+ for (var i = r; t < n && i < this._cellCount - 1; ) i++, t += this.getSizeAndPositionOfCell(i).size;
806
+ return { start: r, stop: i };
807
+ } }, { key: "resetCell", value: function(o) {
808
+ this._lastMeasuredIndex = Math.min(this._lastMeasuredIndex, o - 1);
809
+ } }, { key: "_binarySearch", value: function(o, e, t) {
810
+ for (; e <= o; ) {
811
+ var n = e + Math.floor((o - e) / 2), r = this.getSizeAndPositionOfCell(n).offset;
812
+ if (r === t) return n;
813
+ r < t ? e = n + 1 : r > t && (o = n - 1);
814
+ }
815
+ return e > 0 ? e - 1 : 0;
816
+ } }, { key: "_exponentialSearch", value: function(o, e) {
817
+ for (var t = 1; o < this._cellCount && this.getSizeAndPositionOfCell(o).offset < e; ) o += t, t *= 2;
818
+ return this._binarySearch(Math.min(o, this._cellCount - 1), Math.floor(o / 2), e);
819
+ } }, { key: "_findNearestCell", value: function(o) {
820
+ if (isNaN(o)) throw Error("Invalid offset ".concat(o, " specified"));
821
+ o = Math.max(0, o);
822
+ var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
823
+ return e.offset >= o ? this._binarySearch(t, 0, o) : this._exponentialSearch(t, o);
824
+ } }]);
825
+ }(), Oo = function() {
826
+ return typeof window < "u" && window.chrome ? 16777100 : 15e5;
827
+ }, ko = ["maxScrollSize"], Ye = function() {
828
+ return A(function o(e) {
829
+ var t = e.maxScrollSize, n = t === void 0 ? Oo() : t, r = ee(e, ko);
830
+ G(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new Po(r), this._maxScrollSize = n;
831
+ }, [{ key: "areOffsetsAdjusted", value: function() {
832
+ return this._cellSizeAndPositionManager.getTotalSize() > this._maxScrollSize;
833
+ } }, { key: "configure", value: function(o) {
834
+ this._cellSizeAndPositionManager.configure(o);
835
+ } }, { key: "getCellCount", value: function() {
836
+ return this._cellSizeAndPositionManager.getCellCount();
837
+ } }, { key: "getEstimatedCellSize", value: function() {
838
+ return this._cellSizeAndPositionManager.getEstimatedCellSize();
839
+ } }, { key: "getLastMeasuredIndex", value: function() {
840
+ return this._cellSizeAndPositionManager.getLastMeasuredIndex();
841
+ } }, { key: "getOffsetAdjustment", value: function(o) {
842
+ var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize(), l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
843
+ return Math.round(l * (r - n));
844
+ } }, { key: "getSizeAndPositionOfCell", value: function(o) {
845
+ return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(o);
846
+ } }, { key: "getSizeAndPositionOfLastMeasuredCell", value: function() {
847
+ return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell();
848
+ } }, { key: "getTotalSize", value: function() {
849
+ return Math.min(this._maxScrollSize, this._cellSizeAndPositionManager.getTotalSize());
850
+ } }, { key: "getUpdatedOffsetForIndex", value: function(o) {
851
+ var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset, l = o.targetIndex;
852
+ r = this._safeOffsetToOffset({ containerSize: n, offset: r });
853
+ var i = this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({ align: t, containerSize: n, currentOffset: r, targetIndex: l });
854
+ return this._offsetToSafeOffset({ containerSize: n, offset: i });
855
+ } }, { key: "getVisibleCellRange", value: function(o) {
856
+ var e = o.containerSize, t = o.offset;
857
+ return t = this._safeOffsetToOffset({ containerSize: e, offset: t }), this._cellSizeAndPositionManager.getVisibleCellRange({ containerSize: e, offset: t });
858
+ } }, { key: "resetCell", value: function(o) {
859
+ this._cellSizeAndPositionManager.resetCell(o);
860
+ } }, { key: "_getOffsetPercentage", value: function(o) {
861
+ var e = o.containerSize, t = o.offset, n = o.totalSize;
862
+ return n <= e ? 0 : t / (n - e);
863
+ } }, { key: "_offsetToSafeOffset", value: function(o) {
864
+ var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
865
+ if (n === r) return t;
866
+ var l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: n });
867
+ return Math.round(l * (r - e));
868
+ } }, { key: "_safeOffsetToOffset", value: function(o) {
869
+ var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
870
+ if (n === r) return t;
871
+ var l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
872
+ return Math.round(l * (n - e));
873
+ } }]);
874
+ }();
875
+ function Ze(o) {
876
+ var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, l = o.previousScrollToAlignment, i = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, u = o.scrollToIndex, d = o.size, f = o.sizeJustIncreasedFromZero, h = o.updateScrollIndexCallback, g = t.getCellCount(), v = u >= 0 && u < g;
877
+ v && (d !== a || f || !r || typeof e == "number" && e !== r || c !== l || u !== i) ? h(u) : !v && g > 0 && (d < a || g < n) && s > t.getTotalSize() - d && h(g - 1);
878
+ }
879
+ var Mo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
880
+ return F.setTimeout(o, 1e3 / 60);
881
+ }, Lo = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
882
+ F.clearTimeout(o);
883
+ }, Je = Mo, Go = Lo, Z = function(o) {
884
+ return Go(o.id);
885
+ }, ke = function(o, e) {
886
+ var t;
887
+ Promise.resolve().then(function() {
888
+ t = Date.now();
889
+ });
890
+ var n = function() {
891
+ Date.now() - t >= e ? o.call() : r.id = Je(n);
892
+ }, r = { id: Je(n) };
893
+ return r;
894
+ };
895
+ function Qe(o, e) {
896
+ var t = Object.keys(o);
897
+ if (Object.getOwnPropertySymbols) {
898
+ var n = Object.getOwnPropertySymbols(o);
899
+ e && (n = n.filter(function(r) {
900
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
901
+ })), t.push.apply(t, n);
902
+ }
903
+ return t;
904
+ }
905
+ function j(o) {
906
+ for (var e = 1; e < arguments.length; e++) {
907
+ var t = arguments[e] != null ? arguments[e] : {};
908
+ e % 2 ? Qe(Object(t), !0).forEach(function(n) {
909
+ p(o, n, t[n]);
910
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Qe(Object(t)).forEach(function(n) {
911
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
912
+ });
913
+ }
914
+ return o;
915
+ }
916
+ function Lt() {
917
+ try {
918
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
919
+ }));
920
+ } catch {
921
+ }
922
+ return (Lt = function() {
923
+ return !!o;
924
+ })();
925
+ }
926
+ var Ao = "observed", et = "requested", V = function() {
927
+ function o(e) {
928
+ var t, n, r, l;
929
+ G(this, o), n = this, l = [e], r = O(r = o), p(t = H(n, Lt() ? Reflect.construct(r, l || [], O(n).constructor) : r.apply(n, l)), "_onGridRenderedMemoizer", Y()), p(t, "_onScrollMemoizer", Y(!1)), p(t, "_deferredInvalidateColumnIndex", null), p(t, "_deferredInvalidateRowIndex", null), p(t, "_recomputeScrollLeftFlag", !1), p(t, "_recomputeScrollTopFlag", !1), p(t, "_horizontalScrollBarSize", 0), p(t, "_verticalScrollBarSize", 0), p(t, "_scrollbarPresenceChanged", !1), p(t, "_scrollingContainer", void 0), p(t, "_childrenToDisplay", void 0), p(t, "_columnStartIndex", void 0), p(t, "_columnStopIndex", void 0), p(t, "_rowStartIndex", void 0), p(t, "_rowStopIndex", void 0), p(t, "_renderedColumnStartIndex", 0), p(t, "_renderedColumnStopIndex", 0), p(t, "_renderedRowStartIndex", 0), p(t, "_renderedRowStopIndex", 0), p(t, "_initialScrollTop", void 0), p(t, "_initialScrollLeft", void 0), p(t, "_disablePointerEventsTimeoutId", void 0), p(t, "_styleCache", {}), p(t, "_cellCache", {}), p(t, "_debounceScrollEndedCallback", function() {
930
+ t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
931
+ }), p(t, "_invokeOnGridRenderedHelper", function() {
932
+ var s = t.props.onSectionRendered;
933
+ t._onGridRenderedMemoizer({ callback: s, indices: { columnOverscanStartIndex: t._columnStartIndex, columnOverscanStopIndex: t._columnStopIndex, columnStartIndex: t._renderedColumnStartIndex, columnStopIndex: t._renderedColumnStopIndex, rowOverscanStartIndex: t._rowStartIndex, rowOverscanStopIndex: t._rowStopIndex, rowStartIndex: t._renderedRowStartIndex, rowStopIndex: t._renderedRowStopIndex } });
934
+ }), p(t, "_setScrollingContainerRef", function(s) {
935
+ t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) : q(t.props.elementRef) === "object" && (t.props.elementRef.current = s);
936
+ }), p(t, "_onScroll", function(s) {
937
+ s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
938
+ });
939
+ var i = new Ye({ cellCount: e.columnCount, cellSizeGetter: function(s) {
940
+ return o._wrapSizeGetter(e.columnWidth)(s);
941
+ }, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new Ye({ cellCount: e.rowCount, cellSizeGetter: function(s) {
942
+ return o._wrapSizeGetter(e.rowHeight)(s);
943
+ }, estimatedCellSize: o._getEstimatedRowSize(e) });
944
+ return t.state = { instanceProps: { columnSizeAndPositionManager: i, rowSizeAndPositionManager: a, prevColumnWidth: e.columnWidth, prevRowHeight: e.rowHeight, prevColumnCount: e.columnCount, prevRowCount: e.rowCount, prevIsScrolling: e.isScrolling === !0, prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow, scrollbarSize: 0, scrollbarSizeMeasured: !1 }, isScrolling: !1, scrollDirectionHorizontal: 1, scrollDirectionVertical: 1, scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: null, needToResetStyleCache: !1 }, e.scrollToRow > 0 && (t._initialScrollTop = t._getCalculatedScrollTop(e, t.state)), e.scrollToColumn > 0 && (t._initialScrollLeft = t._getCalculatedScrollLeft(e, t.state)), t;
945
+ }
946
+ return D(o, x.PureComponent), A(o, [{ key: "getOffsetForCell", value: function() {
947
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.alignment, n = t === void 0 ? this.props.scrollToAlignment : t, r = e.columnIndex, l = r === void 0 ? this.props.scrollToColumn : r, i = e.rowIndex, a = i === void 0 ? this.props.scrollToRow : i, s = j(j({}, this.props), {}, { scrollToAlignment: n, scrollToColumn: l, scrollToRow: a });
948
+ return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
949
+ } }, { key: "getTotalRowsHeight", value: function() {
950
+ return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize();
951
+ } }, { key: "getTotalColumnsWidth", value: function() {
952
+ return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize();
953
+ } }, { key: "handleScrollEvent", value: function(e) {
954
+ var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, l = r === void 0 ? 0 : r;
955
+ if (!(l < 0)) {
956
+ this._debounceScrollEnded();
957
+ var i = this.props, a = i.autoHeight, s = i.autoWidth, c = i.height, u = i.width, d = this.state.instanceProps, f = d.scrollbarSize, h = d.rowSizeAndPositionManager.getTotalSize(), g = d.columnSizeAndPositionManager.getTotalSize(), v = Math.min(Math.max(0, g - u + f), n), _ = Math.min(Math.max(0, h - c + f), l);
958
+ if (this.state.scrollLeft !== v || this.state.scrollTop !== _) {
959
+ var S = { isScrolling: !0, scrollDirectionHorizontal: v !== this.state.scrollLeft ? v > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: _ !== this.state.scrollTop ? _ > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: Ao };
960
+ a || (S.scrollTop = _), s || (S.scrollLeft = v), S.needToResetStyleCache = !1, this.setState(S);
961
+ }
962
+ this._invokeOnScrollMemoizer({ scrollLeft: v, scrollTop: _, totalColumnsWidth: g, totalRowsHeight: h });
963
+ }
964
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
965
+ var t = e.columnIndex, n = e.rowIndex;
966
+ this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, t) : t, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex, n) : n;
967
+ } }, { key: "measureAllCells", value: function() {
968
+ var e = this.props, t = e.columnCount, n = e.rowCount, r = this.state.instanceProps;
969
+ r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t - 1), r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n - 1);
970
+ } }, { key: "recomputeGridSize", value: function() {
971
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r, i = this.props, a = i.scrollToColumn, s = i.scrollToRow, c = this.state.instanceProps;
972
+ c.columnSizeAndPositionManager.resetCell(n), c.rowSizeAndPositionManager.resetCell(l), this._recomputeScrollLeftFlag = a >= 0 && (this.state.scrollDirectionHorizontal === 1 ? n <= a : n >= a), this._recomputeScrollTopFlag = s >= 0 && (this.state.scrollDirectionVertical === 1 ? l <= s : l >= s), this._styleCache = {}, this._cellCache = {}, this.forceUpdate();
973
+ } }, { key: "scrollToCell", value: function(e) {
974
+ var t = e.columnIndex, n = e.rowIndex, r = this.props.columnCount, l = this.props;
975
+ r > 1 && t !== void 0 && this._updateScrollLeftForScrollToColumn(j(j({}, l), {}, { scrollToColumn: t })), n !== void 0 && this._updateScrollTopForScrollToRow(j(j({}, l), {}, { scrollToRow: n }));
976
+ } }, { key: "componentDidMount", value: function() {
977
+ var e = this.props, t = e.getScrollbarSize, n = e.height, r = e.scrollLeft, l = e.scrollToColumn, i = e.scrollTop, a = e.scrollToRow, s = e.width, c = this.state.instanceProps;
978
+ if (this._initialScrollTop = 0, this._initialScrollLeft = 0, this._handleInvalidatedGridSize(), c.scrollbarSizeMeasured || this.setState(function(f) {
979
+ var h = j(j({}, f), {}, { needToResetStyleCache: !1 });
980
+ return h.instanceProps.scrollbarSize = t(), h.instanceProps.scrollbarSizeMeasured = !0, h;
981
+ }), typeof r == "number" && r >= 0 || typeof i == "number" && i >= 0) {
982
+ var u = o._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: r, scrollTop: i });
983
+ u && (u.needToResetStyleCache = !1, this.setState(u));
984
+ }
985
+ this._scrollingContainer && (this._scrollingContainer.scrollLeft !== this.state.scrollLeft && (this._scrollingContainer.scrollLeft = this.state.scrollLeft), this._scrollingContainer.scrollTop !== this.state.scrollTop && (this._scrollingContainer.scrollTop = this.state.scrollTop));
986
+ var d = n > 0 && s > 0;
987
+ l >= 0 && d && this._updateScrollLeftForScrollToColumn(), a >= 0 && d && this._updateScrollTopForScrollToRow(), this._invokeOnGridRenderedHelper(), this._invokeOnScrollMemoizer({ scrollLeft: r || 0, scrollTop: i || 0, totalColumnsWidth: c.columnSizeAndPositionManager.getTotalSize(), totalRowsHeight: c.rowSizeAndPositionManager.getTotalSize() }), this._maybeCallOnScrollbarPresenceChange();
988
+ } }, { key: "componentDidUpdate", value: function(e, t) {
989
+ var n = this, r = this.props, l = r.autoHeight, i = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, u = r.scrollToAlignment, d = r.scrollToColumn, f = r.scrollToRow, h = r.width, g = this.state, v = g.scrollLeft, _ = g.scrollPositionChangeReason, S = g.scrollTop, m = g.instanceProps;
990
+ this._handleInvalidatedGridSize();
991
+ var w = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
992
+ _ === et && (!i && v >= 0 && (v !== this._scrollingContainer.scrollLeft || w) && (this._scrollingContainer.scrollLeft = v), !l && S >= 0 && (S !== this._scrollingContainer.scrollTop || w) && (this._scrollingContainer.scrollTop = S));
993
+ var y = (e.width === 0 || e.height === 0) && s > 0 && h > 0;
994
+ if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ze({ cellSizeAndPositionManager: m.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: v, scrollToAlignment: u, scrollToIndex: d, size: h, sizeJustIncreasedFromZero: y, updateScrollIndexCallback: function() {
995
+ return n._updateScrollLeftForScrollToColumn(n.props);
996
+ } }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ze({ cellSizeAndPositionManager: m.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: u, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: y, updateScrollIndexCallback: function() {
997
+ return n._updateScrollTopForScrollToRow(n.props);
998
+ } }), this._invokeOnGridRenderedHelper(), v !== t.scrollLeft || S !== t.scrollTop) {
999
+ var C = m.rowSizeAndPositionManager.getTotalSize(), T = m.columnSizeAndPositionManager.getTotalSize();
1000
+ this._invokeOnScrollMemoizer({ scrollLeft: v, scrollTop: S, totalColumnsWidth: T, totalRowsHeight: C });
1001
+ }
1002
+ this._maybeCallOnScrollbarPresenceChange();
1003
+ } }, { key: "componentWillUnmount", value: function() {
1004
+ this._disablePointerEventsTimeoutId && Z(this._disablePointerEventsTimeoutId);
1005
+ } }, { key: "render", value: function() {
1006
+ var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, l = e.className, i = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, u = e.id, d = e.noContentRenderer, f = e.role, h = e.style, g = e.tabIndex, v = e.width, _ = this.state, S = _.instanceProps, m = _.needToResetStyleCache, w = this._isScrolling(), y = { boxSizing: "border-box", direction: "ltr", height: n ? "auto" : c, position: "relative", width: r ? "auto" : v, WebkitOverflowScrolling: "touch", willChange: "transform" };
1007
+ m && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
1008
+ var C = S.columnSizeAndPositionManager.getTotalSize(), T = S.rowSizeAndPositionManager.getTotalSize(), R = T > c ? S.scrollbarSize : 0, b = C > v ? S.scrollbarSize : 0;
1009
+ b === this._horizontalScrollBarSize && R === this._verticalScrollBarSize || (this._horizontalScrollBarSize = b, this._verticalScrollBarSize = R, this._scrollbarPresenceChanged = !0), y.overflowX = C + R <= v ? "hidden" : "auto", y.overflowY = T + b <= c ? "hidden" : "auto";
1010
+ var P = this._childrenToDisplay, z = P.length === 0 && c > 0 && v > 0;
1011
+ return x.createElement("div", U({ ref: this._setScrollingContainerRef }, i, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", l), id: u, onScroll: this._onScroll, role: f, style: j(j({}, y), h), tabIndex: g }), P.length > 0 && x.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : C, height: T, maxWidth: C, maxHeight: T, overflow: "hidden", pointerEvents: w ? "none" : "", position: "relative" }, s) }, P), z && d());
1012
+ } }, { key: "_calculateChildrenToRender", value: function() {
1013
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, l = e.columnCount, i = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, u = e.overscanRowCount, d = e.rowCount, f = e.width, h = e.isScrollingOptOut, g = t.scrollDirectionHorizontal, v = t.scrollDirectionVertical, _ = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, m = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, w = this._isScrolling(e, t);
1014
+ if (this._childrenToDisplay = [], a > 0 && f > 0) {
1015
+ var y = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: m }), C = _.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), T = _.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: m }), R = _.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
1016
+ this._renderedColumnStartIndex = y.start, this._renderedColumnStopIndex = y.stop, this._renderedRowStartIndex = C.start, this._renderedRowStopIndex = C.stop;
1017
+ var b = c({ direction: "horizontal", cellCount: l, overscanCellsCount: s, scrollDirection: g, startIndex: typeof y.start == "number" ? y.start : 0, stopIndex: typeof y.stop == "number" ? y.stop : -1 }), P = c({ direction: "vertical", cellCount: d, overscanCellsCount: u, scrollDirection: v, startIndex: typeof C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), z = b.overscanStartIndex, I = b.overscanStopIndex, k = P.overscanStartIndex, L = P.overscanStopIndex;
1018
+ if (i) {
1019
+ if (!i.hasFixedHeight()) {
1020
+ for (var W = k; W <= L; W++) if (!i.has(W, 0)) {
1021
+ z = 0, I = l - 1;
1022
+ break;
1023
+ }
1024
+ }
1025
+ if (!i.hasFixedWidth()) {
1026
+ for (var ge = z; ge <= I; ge++) if (!i.has(0, ge)) {
1027
+ k = 0, L = d - 1;
1028
+ break;
1029
+ }
1030
+ }
1031
+ }
1032
+ this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex: z, columnStopIndex: I, deferredMeasurementCache: i, horizontalOffsetAdjustment: T, isScrolling: w, isScrollingOptOut: h, parent: this, rowSizeAndPositionManager: _.rowSizeAndPositionManager, rowStartIndex: k, rowStopIndex: L, scrollLeft: m, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: R, visibleColumnIndices: y, visibleRowIndices: C }), this._columnStartIndex = z, this._columnStopIndex = I, this._rowStartIndex = k, this._rowStopIndex = L;
1033
+ }
1034
+ } }, { key: "_debounceScrollEnded", value: function() {
1035
+ var e = this.props.scrollingResetTimeInterval;
1036
+ this._disablePointerEventsTimeoutId && Z(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = ke(this._debounceScrollEndedCallback, e);
1037
+ } }, { key: "_handleInvalidatedGridSize", value: function() {
1038
+ if (typeof this._deferredInvalidateColumnIndex == "number" && typeof this._deferredInvalidateRowIndex == "number") {
1039
+ var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
1040
+ this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t });
1041
+ }
1042
+ } }, { key: "_invokeOnScrollMemoizer", value: function(e) {
1043
+ var t = this, n = e.scrollLeft, r = e.scrollTop, l = e.totalColumnsWidth, i = e.totalRowsHeight;
1044
+ this._onScrollMemoizer({ callback: function(a) {
1045
+ var s = a.scrollLeft, c = a.scrollTop, u = t.props, d = u.height;
1046
+ (0, u.onScroll)({ clientHeight: d, clientWidth: u.width, scrollHeight: i, scrollLeft: s, scrollTop: c, scrollWidth: l });
1047
+ }, indices: { scrollLeft: n, scrollTop: r } });
1048
+ } }, { key: "_isScrolling", value: function() {
1049
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
1050
+ return Object.hasOwnProperty.call(e, "isScrolling") ? !!e.isScrolling : !!t.isScrolling;
1051
+ } }, { key: "_maybeCallOnScrollbarPresenceChange", value: function() {
1052
+ if (this._scrollbarPresenceChanged) {
1053
+ var e = this.props.onScrollbarPresenceChange;
1054
+ this._scrollbarPresenceChanged = !1, e({ horizontal: this._horizontalScrollBarSize > 0, size: this.state.instanceProps.scrollbarSize, vertical: this._verticalScrollBarSize > 0 });
1055
+ }
1056
+ } }, { key: "scrollToPosition", value: function(e) {
1057
+ var t = e.scrollLeft, n = e.scrollTop, r = o._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: t, scrollTop: n });
1058
+ r && (r.needToResetStyleCache = !1, this.setState(r));
1059
+ } }, { key: "_getCalculatedScrollLeft", value: function() {
1060
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
1061
+ return o._getCalculatedScrollLeft(e, t);
1062
+ } }, { key: "_updateScrollLeftForScrollToColumn", value: function() {
1063
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
1064
+ n && (n.needToResetStyleCache = !1, this.setState(n));
1065
+ } }, { key: "_getCalculatedScrollTop", value: function() {
1066
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state;
1067
+ return o._getCalculatedScrollTop(e, t);
1068
+ } }, { key: "_resetStyleCache", value: function() {
1069
+ var e = this._styleCache, t = this._cellCache, n = this.props.isScrollingOptOut;
1070
+ this._cellCache = {}, this._styleCache = {};
1071
+ for (var r = this._rowStartIndex; r <= this._rowStopIndex; r++) for (var l = this._columnStartIndex; l <= this._columnStopIndex; l++) {
1072
+ var i = "".concat(r, "-").concat(l);
1073
+ this._styleCache[i] = e[i], n && (this._cellCache[i] = t[i]);
1074
+ }
1075
+ } }, { key: "_updateScrollTopForScrollToRow", value: function() {
1076
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = o._getScrollTopForScrollToRowStateUpdate(e, t);
1077
+ n && (n.needToResetStyleCache = !1, this.setState(n));
1078
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1079
+ var n = {};
1080
+ e.columnCount === 0 && t.scrollLeft !== 0 || e.rowCount === 0 && t.scrollTop !== 0 ? (n.scrollLeft = 0, n.scrollTop = 0) : (e.scrollLeft !== t.scrollLeft && e.scrollToColumn < 0 || e.scrollTop !== t.scrollTop && e.scrollToRow < 0) && Object.assign(n, o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }));
1081
+ var r, l, i = t.instanceProps;
1082
+ return n.needToResetStyleCache = !1, e.columnWidth === i.prevColumnWidth && e.rowHeight === i.prevRowHeight || (n.needToResetStyleCache = !0), i.columnSizeAndPositionManager.configure({ cellCount: e.columnCount, estimatedCellSize: o._getEstimatedColumnSize(e), cellSizeGetter: o._wrapSizeGetter(e.columnWidth) }), i.rowSizeAndPositionManager.configure({ cellCount: e.rowCount, estimatedCellSize: o._getEstimatedRowSize(e), cellSizeGetter: o._wrapSizeGetter(e.rowHeight) }), i.prevColumnCount !== 0 && i.prevRowCount !== 0 || (i.prevColumnCount = 0, i.prevRowCount = 0), e.autoHeight && e.isScrolling === !1 && i.prevIsScrolling === !0 && Object.assign(n, { isScrolling: !1 }), Xe({ cellCount: i.prevColumnCount, cellSize: typeof i.prevColumnWidth == "number" ? i.prevColumnWidth : null, computeMetadataCallback: function() {
1083
+ return i.columnSizeAndPositionManager.resetCell(0);
1084
+ }, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex: i.prevScrollToColumn, updateScrollOffsetForScrollToIndex: function() {
1085
+ r = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
1086
+ } }), Xe({ cellCount: i.prevRowCount, cellSize: typeof i.prevRowHeight == "number" ? i.prevRowHeight : null, computeMetadataCallback: function() {
1087
+ return i.rowSizeAndPositionManager.resetCell(0);
1088
+ }, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex: i.prevScrollToRow, updateScrollOffsetForScrollToIndex: function() {
1089
+ l = o._getScrollTopForScrollToRowStateUpdate(e, t);
1090
+ } }), i.prevColumnCount = e.columnCount, i.prevColumnWidth = e.columnWidth, i.prevIsScrolling = e.isScrolling === !0, i.prevRowCount = e.rowCount, i.prevRowHeight = e.rowHeight, i.prevScrollToColumn = e.scrollToColumn, i.prevScrollToRow = e.scrollToRow, i.scrollbarSize = e.getScrollbarSize(), i.scrollbarSize === void 0 ? (i.scrollbarSizeMeasured = !1, i.scrollbarSize = 0) : i.scrollbarSizeMeasured = !0, n.instanceProps = i, j(j(j({}, n), r), l);
1091
+ } }, { key: "_getEstimatedColumnSize", value: function(e) {
1092
+ return typeof e.columnWidth == "number" ? e.columnWidth : e.estimatedColumnSize;
1093
+ } }, { key: "_getEstimatedRowSize", value: function(e) {
1094
+ return typeof e.rowHeight == "number" ? e.rowHeight : e.estimatedRowSize;
1095
+ } }, { key: "_getScrollToPositionStateUpdate", value: function(e) {
1096
+ var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason: et };
1097
+ return typeof n == "number" && n >= 0 && (l.scrollDirectionHorizontal = n > t.scrollLeft ? 1 : -1, l.scrollLeft = n), typeof r == "number" && r >= 0 && (l.scrollDirectionVertical = r > t.scrollTop ? 1 : -1, l.scrollTop = r), typeof n == "number" && n >= 0 && n !== t.scrollLeft || typeof r == "number" && r >= 0 && r !== t.scrollTop ? l : {};
1098
+ } }, { key: "_wrapSizeGetter", value: function(e) {
1099
+ return typeof e == "function" ? e : function() {
1100
+ return e;
1101
+ };
1102
+ } }, { key: "_getCalculatedScrollLeft", value: function(e, t) {
1103
+ var n = e.columnCount, r = e.height, l = e.scrollToAlignment, i = e.scrollToColumn, a = e.width, s = t.scrollLeft, c = t.instanceProps;
1104
+ if (n > 0) {
1105
+ var u = n - 1, d = i < 0 ? u : Math.min(u, i), f = c.rowSizeAndPositionManager.getTotalSize(), h = c.scrollbarSizeMeasured && f > r ? c.scrollbarSize : 0;
1106
+ return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({ align: l, containerSize: a - h, currentOffset: s, targetIndex: d });
1107
+ }
1108
+ return 0;
1109
+ } }, { key: "_getScrollLeftForScrollToColumnStateUpdate", value: function(e, t) {
1110
+ var n = t.scrollLeft, r = o._getCalculatedScrollLeft(e, t);
1111
+ return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: r, scrollTop: -1 }) : {};
1112
+ } }, { key: "_getCalculatedScrollTop", value: function(e, t) {
1113
+ var n = e.height, r = e.rowCount, l = e.scrollToAlignment, i = e.scrollToRow, a = e.width, s = t.scrollTop, c = t.instanceProps;
1114
+ if (r > 0) {
1115
+ var u = r - 1, d = i < 0 ? u : Math.min(u, i), f = c.columnSizeAndPositionManager.getTotalSize(), h = c.scrollbarSizeMeasured && f > a ? c.scrollbarSize : 0;
1116
+ return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({ align: l, containerSize: n - h, currentOffset: s, targetIndex: d });
1117
+ }
1118
+ return 0;
1119
+ } }, { key: "_getScrollTopForScrollToRowStateUpdate", value: function(e, t) {
1120
+ var n = t.scrollTop, r = o._getCalculatedScrollTop(e, t);
1121
+ return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
1122
+ } }]);
1123
+ }();
1124
+ p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
1125
+ for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, l = o.columnStopIndex, i = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, u = o.parent, d = o.rowSizeAndPositionManager, f = o.rowStartIndex, h = o.rowStopIndex, g = o.styleCache, v = o.verticalOffsetAdjustment, _ = o.visibleColumnIndices, S = o.visibleRowIndices, m = [], w = n.areOffsetsAdjusted() || d.areOffsetsAdjusted(), y = !s && !w, C = f; C <= h; C++) for (var T = d.getSizeAndPositionOfCell(C), R = r; R <= l; R++) {
1126
+ var b = n.getSizeAndPositionOfCell(R), P = R >= _.start && R <= _.stop && C >= S.start && C <= S.stop, z = "".concat(C, "-").concat(R), I = void 0;
1127
+ y && g[z] ? I = g[z] : i && !i.has(C, R) ? I = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (I = { height: T.size, left: b.offset + a, position: "absolute", top: T.offset + v, width: b.size }, g[z] = I);
1128
+ var k = { columnIndex: R, isScrolling: s, isVisible: P, key: z, parent: u, rowIndex: C, style: I }, L = void 0;
1129
+ !c && !s || a || v ? L = t(k) : (e[z] || (e[z] = t(k)), L = e[z]), L != null && L !== !1 && (L.props.role || (L = St.cloneElement(L, { role: "gridcell" })), m.push(L));
1130
+ }
1131
+ return m;
1132
+ }, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: xe, noContentRenderer: function() {
1133
+ return null;
1134
+ }, onScroll: function() {
1135
+ }, onScrollbarPresenceChange: function() {
1136
+ }, onSectionRendered: function() {
1137
+ }, overscanColumnCount: 0, overscanIndicesGetter: function(o) {
1138
+ var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
1139
+ return n === 1 ? { overscanStartIndex: Math.max(0, r), overscanStopIndex: Math.min(e - 1, l + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, l) };
1140
+ }, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), le(V);
1141
+ function Gt(o) {
1142
+ var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
1143
+ return t = Math.max(1, t), n === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1, l + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, l + 1) };
1144
+ }
1145
+ function Re(o, e) {
1146
+ (e == null || e > o.length) && (e = o.length);
1147
+ for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
1148
+ return n;
1149
+ }
1150
+ function At(o, e) {
1151
+ if (o) {
1152
+ if (typeof o == "string") return Re(o, e);
1153
+ var t = {}.toString.call(o).slice(8, -1);
1154
+ return t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set" ? Array.from(o) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Re(o, e) : void 0;
1155
+ }
1156
+ }
1157
+ function Eo(o) {
1158
+ return function(e) {
1159
+ if (Array.isArray(e)) return Re(e);
1160
+ }(o) || function(e) {
1161
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1162
+ }(o) || At(o) || function() {
1163
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1164
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1165
+ }();
1166
+ }
1167
+ function Et() {
1168
+ try {
1169
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1170
+ }));
1171
+ } catch {
1172
+ }
1173
+ return (Et = function() {
1174
+ return !!o;
1175
+ })();
1176
+ }
1177
+ var tt = function() {
1178
+ function o(e, t) {
1179
+ var n, r, l, i;
1180
+ return G(this, o), r = this, i = [e, t], l = O(l = o), (n = H(r, Et() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i)))._loadMoreRowsMemoizer = Y(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
1181
+ }
1182
+ return D(o, x.PureComponent), A(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
1183
+ this._loadMoreRowsMemoizer = Y(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
1184
+ } }, { key: "render", value: function() {
1185
+ return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
1186
+ } }, { key: "_loadUnloadedRanges", value: function(e) {
1187
+ var t = this, n = this.props.loadMoreRows;
1188
+ e.forEach(function(r) {
1189
+ var l = n(r);
1190
+ l && l.then(function() {
1191
+ var i, a, s, c, u;
1192
+ i = { lastRenderedStartIndex: t._lastRenderedStartIndex, lastRenderedStopIndex: t._lastRenderedStopIndex, startIndex: r.startIndex, stopIndex: r.stopIndex }, a = i.lastRenderedStartIndex, s = i.lastRenderedStopIndex, c = i.startIndex, u = i.stopIndex, c > s || u < a || t._registeredChild && function(d) {
1193
+ var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, h = typeof d.recomputeGridSize == "function" ? d.recomputeGridSize : d.recomputeRowHeights;
1194
+ h ? h.call(d, f) : d.forceUpdate();
1195
+ }(t._registeredChild, t._lastRenderedStartIndex);
1196
+ });
1197
+ });
1198
+ } }, { key: "_onRowsRendered", value: function(e) {
1199
+ var t = e.startIndex, n = e.stopIndex;
1200
+ this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
1201
+ } }, { key: "_doStuff", value: function(e, t) {
1202
+ var n, r = this, l = this.props, i = l.isRowLoaded, a = l.minimumBatchSize, s = l.rowCount, c = l.threshold, u = function(f) {
1203
+ for (var h = f.isRowLoaded, g = f.minimumBatchSize, v = f.rowCount, _ = f.startIndex, S = f.stopIndex, m = [], w = null, y = null, C = _; C <= S; C++)
1204
+ h({ index: C }) ? y !== null && (m.push({ startIndex: w, stopIndex: y }), w = y = null) : (y = C, w === null && (w = C));
1205
+ if (y !== null) {
1206
+ for (var T = Math.min(Math.max(y, w + g - 1), v - 1), R = y + 1; R <= T && !h({ index: R }); R++) y = R;
1207
+ m.push({ startIndex: w, stopIndex: y });
1208
+ }
1209
+ if (m.length) for (var b = m[0]; b.stopIndex - b.startIndex + 1 < g && b.startIndex > 0; ) {
1210
+ var P = b.startIndex - 1;
1211
+ if (h({ index: P })) break;
1212
+ b.startIndex = P;
1213
+ }
1214
+ return m;
1215
+ }({ isRowLoaded: i, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), d = (n = []).concat.apply(n, Eo(u.map(function(f) {
1216
+ return [f.startIndex, f.stopIndex];
1217
+ })));
1218
+ this._loadMoreRowsMemoizer({ callback: function() {
1219
+ r._loadUnloadedRanges(u);
1220
+ }, indices: { squashedUnloadedRanges: d } });
1221
+ } }, { key: "_registerChild", value: function(e) {
1222
+ this._registeredChild = e;
1223
+ } }]);
1224
+ }();
1225
+ function Wt() {
1226
+ try {
1227
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1228
+ }));
1229
+ } catch {
1230
+ }
1231
+ return (Wt = function() {
1232
+ return !!o;
1233
+ })();
1234
+ }
1235
+ p(tt, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), tt.propTypes = {};
1236
+ var Wo = function() {
1237
+ function o() {
1238
+ var e, t, n, r;
1239
+ G(this, o);
1240
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
1241
+ return t = this, n = o, r = [].concat(i), n = O(n), p(e = H(t, Wt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
1242
+ var c = s.parent, u = s.rowIndex, d = s.style, f = s.isScrolling, h = s.isVisible, g = s.key, v = e.props.rowRenderer, _ = Object.getOwnPropertyDescriptor(d, "width");
1243
+ return _ && _.writable && (d.width = "100%"), v({ index: u, style: d, isScrolling: f, isVisible: h, key: g, parent: c });
1244
+ }), p(e, "_setRef", function(s) {
1245
+ e.Grid = s;
1246
+ }), p(e, "_onScroll", function(s) {
1247
+ var c = s.clientHeight, u = s.scrollHeight, d = s.scrollTop;
1248
+ (0, e.props.onScroll)({ clientHeight: c, scrollHeight: u, scrollTop: d });
1249
+ }), p(e, "_onSectionRendered", function(s) {
1250
+ var c = s.rowOverscanStartIndex, u = s.rowOverscanStopIndex, d = s.rowStartIndex, f = s.rowStopIndex;
1251
+ (0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: u, startIndex: d, stopIndex: f });
1252
+ }), e;
1253
+ }
1254
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
1255
+ this.Grid && this.Grid.forceUpdate();
1256
+ } }, { key: "getOffsetForRow", value: function(e) {
1257
+ var t = e.alignment, n = e.index;
1258
+ return this.Grid ? this.Grid.getOffsetForCell({ alignment: t, rowIndex: n, columnIndex: 0 }).scrollTop : 0;
1259
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1260
+ var t = e.columnIndex, n = e.rowIndex;
1261
+ this.Grid && this.Grid.invalidateCellSizeAfterRender({ rowIndex: n, columnIndex: t });
1262
+ } }, { key: "measureAllRows", value: function() {
1263
+ this.Grid && this.Grid.measureAllCells();
1264
+ } }, { key: "recomputeGridSize", value: function() {
1265
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r;
1266
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: l, columnIndex: n });
1267
+ } }, { key: "recomputeRowHeights", value: function() {
1268
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1269
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: e, columnIndex: 0 });
1270
+ } }, { key: "scrollToPosition", value: function() {
1271
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1272
+ this.Grid && this.Grid.scrollToPosition({ scrollTop: e });
1273
+ } }, { key: "scrollToRow", value: function() {
1274
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1275
+ this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
1276
+ } }, { key: "render", value: function() {
1277
+ var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex, l = e.width, i = N("ReactVirtualized__List", t);
1278
+ return x.createElement(V, U({}, this.props, { autoContainerWidth: !0, cellRenderer: this._cellRenderer, className: i, columnWidth: l, columnCount: 1, noContentRenderer: n, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, scrollToRow: r }));
1279
+ } }]);
1280
+ }();
1281
+ function Ho(o, e) {
1282
+ return function(t) {
1283
+ if (Array.isArray(t)) return t;
1284
+ }(o) || function(t, n) {
1285
+ var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1286
+ if (r != null) {
1287
+ var l, i, a, s, c = [], u = !0, d = !1;
1288
+ try {
1289
+ if (a = (r = r.call(t)).next, n !== 0) for (; !(u = (l = a.call(r)).done) && (c.push(l.value), c.length !== n); u = !0) ;
1290
+ } catch (f) {
1291
+ d = !0, i = f;
1292
+ } finally {
1293
+ try {
1294
+ if (!u && r.return != null && (s = r.return(), Object(s) !== s)) return;
1295
+ } finally {
1296
+ if (d) throw i;
1297
+ }
1298
+ }
1299
+ return c;
1300
+ }
1301
+ }(o, e) || At(o, e) || function() {
1302
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1303
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1304
+ }();
1305
+ }
1306
+ p(Wo, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
1307
+ }, noRowsRenderer: function() {
1308
+ return null;
1309
+ }, onRowsRendered: function() {
1310
+ }, overscanIndicesGetter: Gt, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
1311
+ const he = { ge: function(o, e, t, n, r) {
1312
+ return typeof t == "function" ? function(l, i, a, s, c) {
1313
+ for (var u = a + 1; i <= a; ) {
1314
+ var d = i + a >>> 1;
1315
+ c(l[d], s) >= 0 ? (u = d, a = d - 1) : i = d + 1;
1316
+ }
1317
+ return u;
1318
+ }(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1319
+ for (var c = a + 1; i <= a; ) {
1320
+ var u = i + a >>> 1;
1321
+ l[u] >= s ? (c = u, a = u - 1) : i = u + 1;
1322
+ }
1323
+ return c;
1324
+ }(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
1325
+ }, gt: function(o, e, t, n, r) {
1326
+ return typeof t == "function" ? function(l, i, a, s, c) {
1327
+ for (var u = a + 1; i <= a; ) {
1328
+ var d = i + a >>> 1;
1329
+ c(l[d], s) > 0 ? (u = d, a = d - 1) : i = d + 1;
1330
+ }
1331
+ return u;
1332
+ }(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1333
+ for (var c = a + 1; i <= a; ) {
1334
+ var u = i + a >>> 1;
1335
+ l[u] > s ? (c = u, a = u - 1) : i = u + 1;
1336
+ }
1337
+ return c;
1338
+ }(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
1339
+ }, lt: function(o, e, t, n, r) {
1340
+ return typeof t == "function" ? function(l, i, a, s, c) {
1341
+ for (var u = i - 1; i <= a; ) {
1342
+ var d = i + a >>> 1;
1343
+ c(l[d], s) < 0 ? (u = d, i = d + 1) : a = d - 1;
1344
+ }
1345
+ return u;
1346
+ }(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1347
+ for (var c = i - 1; i <= a; ) {
1348
+ var u = i + a >>> 1;
1349
+ l[u] < s ? (c = u, i = u + 1) : a = u - 1;
1350
+ }
1351
+ return c;
1352
+ }(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
1353
+ }, le: function(o, e, t, n, r) {
1354
+ return typeof t == "function" ? function(l, i, a, s, c) {
1355
+ for (var u = i - 1; i <= a; ) {
1356
+ var d = i + a >>> 1;
1357
+ c(l[d], s) <= 0 ? (u = d, i = d + 1) : a = d - 1;
1358
+ }
1359
+ return u;
1360
+ }(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1361
+ for (var c = i - 1; i <= a; ) {
1362
+ var u = i + a >>> 1;
1363
+ l[u] <= s ? (c = u, i = u + 1) : a = u - 1;
1364
+ }
1365
+ return c;
1366
+ }(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
1367
+ }, eq: function(o, e, t, n, r) {
1368
+ return typeof t == "function" ? function(l, i, a, s, c) {
1369
+ for (; i <= a; ) {
1370
+ var u = i + a >>> 1, d = c(l[u], s);
1371
+ if (d === 0) return u;
1372
+ d <= 0 ? i = u + 1 : a = u - 1;
1373
+ }
1374
+ return -1;
1375
+ }(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(l, i, a, s) {
1376
+ for (; i <= a; ) {
1377
+ var c = i + a >>> 1, u = l[c];
1378
+ if (u === s) return c;
1379
+ u <= s ? i = c + 1 : a = c - 1;
1380
+ }
1381
+ return -1;
1382
+ }(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
1383
+ } };
1384
+ function Me(o, e, t, n, r) {
1385
+ this.mid = o, this.left = e, this.right = t, this.leftPoints = n, this.rightPoints = r, this.count = (e ? e.count : 0) + (t ? t.count : 0) + n.length;
1386
+ }
1387
+ var Q = Me.prototype;
1388
+ function Se(o, e) {
1389
+ o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
1390
+ }
1391
+ function Ht(o, e) {
1392
+ var t = re(e);
1393
+ o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
1394
+ }
1395
+ function ot(o, e) {
1396
+ var t = o.intervals([]);
1397
+ t.push(e), Ht(o, t);
1398
+ }
1399
+ function nt(o, e) {
1400
+ var t = o.intervals([]), n = t.indexOf(e);
1401
+ return n < 0 ? 0 : (t.splice(n, 1), Ht(o, t), 1);
1402
+ }
1403
+ function rt(o, e, t) {
1404
+ for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
1405
+ var r = t(o[n]);
1406
+ if (r) return r;
1407
+ }
1408
+ }
1409
+ function it(o, e, t) {
1410
+ for (var n = o.length - 1; n >= 0 && o[n][1] >= e; --n) {
1411
+ var r = t(o[n]);
1412
+ if (r) return r;
1413
+ }
1414
+ }
1415
+ function lt(o, e) {
1416
+ for (var t = 0; t < o.length; ++t) {
1417
+ var n = e(o[t]);
1418
+ if (n) return n;
1419
+ }
1420
+ }
1421
+ function Do(o, e) {
1422
+ return o - e;
1423
+ }
1424
+ function be(o, e) {
1425
+ var t = o[0] - e[0];
1426
+ return t || o[1] - e[1];
1427
+ }
1428
+ function Te(o, e) {
1429
+ var t = o[1] - e[1];
1430
+ return t || o[0] - e[0];
1431
+ }
1432
+ function re(o) {
1433
+ if (o.length === 0) return null;
1434
+ for (var e = [], t = 0; t < o.length; ++t) e.push(o[t][0], o[t][1]);
1435
+ e.sort(Do);
1436
+ var n = e[e.length >> 1], r = [], l = [], i = [];
1437
+ for (t = 0; t < o.length; ++t) {
1438
+ var a = o[t];
1439
+ a[1] < n ? r.push(a) : n < a[0] ? l.push(a) : i.push(a);
1440
+ }
1441
+ var s = i, c = i.slice();
1442
+ return s.sort(be), c.sort(Te), new Me(n, re(r), re(l), s, c);
1443
+ }
1444
+ function Dt(o) {
1445
+ this.root = o;
1446
+ }
1447
+ Q.intervals = function(o) {
1448
+ return o.push.apply(o, this.leftPoints), this.left && this.left.intervals(o), this.right && this.right.intervals(o), o;
1449
+ }, Q.insert = function(o) {
1450
+ var e = this.count - this.leftPoints.length;
1451
+ if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? ot(this, o) : this.left.insert(o) : this.left = re([o]);
1452
+ else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? ot(this, o) : this.right.insert(o) : this.right = re([o]);
1453
+ else {
1454
+ var t = he.ge(this.leftPoints, o, be), n = he.ge(this.rightPoints, o, Te);
1455
+ this.leftPoints.splice(t, 0, o), this.rightPoints.splice(n, 0, o);
1456
+ }
1457
+ }, Q.remove = function(o) {
1458
+ var e = this.count - this.leftPoints;
1459
+ if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ? nt(this, o) : (l = this.left.remove(o)) === 2 ? (this.left = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
1460
+ if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ? nt(this, o) : (l = this.right.remove(o)) === 2 ? (this.right = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
1461
+ if (this.count === 1) return this.leftPoints[0] === o ? 2 : 0;
1462
+ if (this.leftPoints.length === 1 && this.leftPoints[0] === o) {
1463
+ if (this.left && this.right) {
1464
+ for (var t = this, n = this.left; n.right; ) t = n, n = n.right;
1465
+ if (t === this) n.right = this.right;
1466
+ else {
1467
+ var r = this.left, l = this.right;
1468
+ t.count -= n.count, t.right = n.left, n.left = r, n.right = l;
1469
+ }
1470
+ Se(this, n), this.count = (this.left ? this.left.count : 0) + (this.right ? this.right.count : 0) + this.leftPoints.length;
1471
+ } else this.left ? Se(this, this.left) : Se(this, this.right);
1472
+ return 1;
1473
+ }
1474
+ for (r = he.ge(this.leftPoints, o, be); r < this.leftPoints.length && this.leftPoints[r][0] === o[0]; ++r) if (this.leftPoints[r] === o) {
1475
+ for (this.count -= 1, this.leftPoints.splice(r, 1), l = he.ge(this.rightPoints, o, Te); l < this.rightPoints.length && this.rightPoints[l][1] === o[1]; ++l) if (this.rightPoints[l] === o) return this.rightPoints.splice(l, 1), 1;
1476
+ }
1477
+ return 0;
1478
+ }, Q.queryPoint = function(o, e) {
1479
+ if (o < this.mid)
1480
+ return this.left && (t = this.left.queryPoint(o, e)) ? t : rt(this.leftPoints, o, e);
1481
+ if (o > this.mid) {
1482
+ var t;
1483
+ return this.right && (t = this.right.queryPoint(o, e)) ? t : it(this.rightPoints, o, e);
1484
+ }
1485
+ return lt(this.leftPoints, e);
1486
+ }, Q.queryInterval = function(o, e, t) {
1487
+ var n;
1488
+ return o < this.mid && this.left && (n = this.left.queryInterval(o, e, t)) || e > this.mid && this.right && (n = this.right.queryInterval(o, e, t)) ? n : e < this.mid ? rt(this.leftPoints, e, t) : o > this.mid ? it(this.rightPoints, o, t) : lt(this.leftPoints, t);
1489
+ };
1490
+ var X = Dt.prototype;
1491
+ X.insert = function(o) {
1492
+ this.root ? this.root.insert(o) : this.root = new Me(o[0], null, null, [o], [o]);
1493
+ }, X.remove = function(o) {
1494
+ if (this.root) {
1495
+ var e = this.root.remove(o);
1496
+ return e === 2 && (this.root = null), e !== 0;
1497
+ }
1498
+ return !1;
1499
+ }, X.queryPoint = function(o, e) {
1500
+ if (this.root) return this.root.queryPoint(o, e);
1501
+ }, X.queryInterval = function(o, e, t) {
1502
+ if (o <= e && this.root) return this.root.queryInterval(o, e, t);
1503
+ }, Object.defineProperty(X, "count", { get: function() {
1504
+ return this.root ? this.root.count : 0;
1505
+ } }), Object.defineProperty(X, "intervals", { get: function() {
1506
+ return this.root ? this.root.intervals([]) : [];
1507
+ } });
1508
+ var ye = function() {
1509
+ return A(function o() {
1510
+ G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new Dt(null)), p(this, "_leftMap", {});
1511
+ }, [{ key: "estimateTotalHeight", value: function(o, e, t) {
1512
+ var n = o - this.count;
1513
+ return this.tallestColumnSize + Math.ceil(n / e) * t;
1514
+ } }, { key: "range", value: function(o, e, t) {
1515
+ var n = this;
1516
+ this._intervalTree.queryInterval(o, o + e, function(r) {
1517
+ var l = Ho(r, 3), i = l[0];
1518
+ l[1];
1519
+ var a = l[2];
1520
+ return t(a, n._leftMap[a], i);
1521
+ });
1522
+ } }, { key: "setPosition", value: function(o, e, t, n) {
1523
+ this._intervalTree.insert([t, t + n, o]), this._leftMap[o] = e;
1524
+ var r = this._columnSizeMap, l = r[e];
1525
+ r[e] = l === void 0 ? t + n : Math.max(l, t + n);
1526
+ } }, { key: "count", get: function() {
1527
+ return this._intervalTree.count;
1528
+ } }, { key: "shortestColumnSize", get: function() {
1529
+ var o = this._columnSizeMap, e = 0;
1530
+ for (var t in o) {
1531
+ var n = o[t];
1532
+ e = e === 0 ? n : Math.min(e, n);
1533
+ }
1534
+ return e;
1535
+ } }, { key: "tallestColumnSize", get: function() {
1536
+ var o = this._columnSizeMap, e = 0;
1537
+ for (var t in o) {
1538
+ var n = o[t];
1539
+ e = Math.max(e, n);
1540
+ }
1541
+ return e;
1542
+ } }]);
1543
+ }();
1544
+ function st(o, e) {
1545
+ var t = Object.keys(o);
1546
+ if (Object.getOwnPropertySymbols) {
1547
+ var n = Object.getOwnPropertySymbols(o);
1548
+ e && (n = n.filter(function(r) {
1549
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
1550
+ })), t.push.apply(t, n);
1551
+ }
1552
+ return t;
1553
+ }
1554
+ function jo(o) {
1555
+ for (var e = 1; e < arguments.length; e++) {
1556
+ var t = arguments[e] != null ? arguments[e] : {};
1557
+ e % 2 ? st(Object(t), !0).forEach(function(n) {
1558
+ p(o, n, t[n]);
1559
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : st(Object(t)).forEach(function(n) {
1560
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
1561
+ });
1562
+ }
1563
+ return o;
1564
+ }
1565
+ function jt() {
1566
+ try {
1567
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1568
+ }));
1569
+ } catch {
1570
+ }
1571
+ return (jt = function() {
1572
+ return !!o;
1573
+ })();
1574
+ }
1575
+ var at = function() {
1576
+ function o() {
1577
+ var e, t, n, r;
1578
+ G(this, o);
1579
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
1580
+ return t = this, n = o, r = [].concat(i), n = O(n), p(e = H(t, jt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollTop: 0 }), p(e, "_debounceResetIsScrollingId", void 0), p(e, "_invalidateOnUpdateStartIndex", null), p(e, "_invalidateOnUpdateStopIndex", null), p(e, "_positionCache", new ye()), p(e, "_startIndex", null), p(e, "_startIndexMemoized", null), p(e, "_stopIndex", null), p(e, "_stopIndexMemoized", null), p(e, "_debounceResetIsScrollingCallback", function() {
1581
+ e.setState({ isScrolling: !1 });
1582
+ }), p(e, "_setScrollingContainerRef", function(s) {
1583
+ e._scrollingContainer = s;
1584
+ }), p(e, "_onScroll", function(s) {
1585
+ var c = e.props.height, u = s.currentTarget.scrollTop, d = Math.min(Math.max(0, e._getEstimatedTotalHeight() - c), u);
1586
+ u === d && (e._debounceResetIsScrolling(), e.state.scrollTop !== d && e.setState({ isScrolling: !0, scrollTop: d }));
1587
+ }), e;
1588
+ }
1589
+ return D(o, x.PureComponent), A(o, [{ key: "clearCellPositions", value: function() {
1590
+ this._positionCache = new ye(), this.forceUpdate();
1591
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1592
+ var t = e.rowIndex;
1593
+ this._invalidateOnUpdateStartIndex === null ? (this._invalidateOnUpdateStartIndex = t, this._invalidateOnUpdateStopIndex = t) : (this._invalidateOnUpdateStartIndex = Math.min(this._invalidateOnUpdateStartIndex, t), this._invalidateOnUpdateStopIndex = Math.max(this._invalidateOnUpdateStopIndex, t));
1594
+ } }, { key: "recomputeCellPositions", value: function() {
1595
+ var e = this._positionCache.count - 1;
1596
+ this._positionCache = new ye(), this._populatePositionCache(0, e), this.forceUpdate();
1597
+ } }, { key: "componentDidMount", value: function() {
1598
+ this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback();
1599
+ } }, { key: "componentDidUpdate", value: function(e, t) {
1600
+ this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback(), this.props.scrollTop !== e.scrollTop && this._debounceResetIsScrolling();
1601
+ } }, { key: "componentWillUnmount", value: function() {
1602
+ this._debounceResetIsScrollingId && Z(this._debounceResetIsScrollingId);
1603
+ } }, { key: "render", value: function() {
1604
+ var e, t = this, n = this.props, r = n.autoHeight, l = n.cellCount, i = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, u = n.id, d = n.keyMapper, f = n.overscanByPixels, h = n.role, g = n.style, v = n.tabIndex, _ = n.width, S = n.rowDirection, m = this.state, w = m.isScrolling, y = m.scrollTop, C = [], T = this._getEstimatedTotalHeight(), R = this._positionCache.shortestColumnSize, b = this._positionCache.count, P = 0;
1605
+ if (this._positionCache.range(Math.max(0, y - f), c + 2 * f, function(k, L, W) {
1606
+ e === void 0 ? (P = k, e = k) : (P = Math.min(P, k), e = Math.max(e, k)), C.push(a({ index: k, isScrolling: w, key: d(k), parent: t, style: p(p(p(p({ height: i.getHeight(k) }, S === "ltr" ? "left" : "right", L), "position", "absolute"), "top", W), "width", i.getWidth(k)) }));
1607
+ }), R < y + c + f && b < l) for (var z = Math.min(l - b, Math.ceil((y + c + f - R) / i.defaultHeight * _ / i.defaultWidth)), I = b; I < b + z; I++) e = I, C.push(a({ index: I, isScrolling: w, key: d(I), parent: this, style: { width: i.getWidth(I) } }));
1608
+ return this._startIndex = P, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: u, onScroll: this._onScroll, role: h, style: jo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: T < c ? "hidden" : "auto", position: "relative", width: _, WebkitOverflowScrolling: "touch", willChange: "transform" }, g), tabIndex: v }, x.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: T, maxWidth: "100%", maxHeight: T, overflow: "hidden", pointerEvents: w ? "none" : "", position: "relative" } }, C));
1609
+ } }, { key: "_checkInvalidateOnUpdate", value: function() {
1610
+ if (typeof this._invalidateOnUpdateStartIndex == "number") {
1611
+ var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
1612
+ this._invalidateOnUpdateStartIndex = null, this._invalidateOnUpdateStopIndex = null, this._populatePositionCache(e, t), this.forceUpdate();
1613
+ }
1614
+ } }, { key: "_debounceResetIsScrolling", value: function() {
1615
+ var e = this.props.scrollingResetTimeInterval;
1616
+ this._debounceResetIsScrollingId && Z(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId = ke(this._debounceResetIsScrollingCallback, e);
1617
+ } }, { key: "_getEstimatedTotalHeight", value: function() {
1618
+ var e = this.props, t = e.cellCount, n = e.cellMeasurerCache, r = e.width, l = Math.max(1, Math.floor(r / n.defaultWidth));
1619
+ return this._positionCache.estimateTotalHeight(t, l, n.defaultHeight);
1620
+ } }, { key: "_invokeOnScrollCallback", value: function() {
1621
+ var e = this.props, t = e.height, n = e.onScroll, r = this.state.scrollTop;
1622
+ this._onScrollMemoized !== r && (n({ clientHeight: t, scrollHeight: this._getEstimatedTotalHeight(), scrollTop: r }), this._onScrollMemoized = r);
1623
+ } }, { key: "_invokeOnCellsRenderedCallback", value: function() {
1624
+ this._startIndexMemoized === this._startIndex && this._stopIndexMemoized === this._stopIndex || ((0, this.props.onCellsRendered)({ startIndex: this._startIndex, stopIndex: this._stopIndex }), this._startIndexMemoized = this._startIndex, this._stopIndexMemoized = this._stopIndex);
1625
+ } }, { key: "_populatePositionCache", value: function(e, t) {
1626
+ for (var n = this.props, r = n.cellMeasurerCache, l = n.cellPositioner, i = e; i <= t; i++) {
1627
+ var a = l(i), s = a.left, c = a.top;
1628
+ this._positionCache.setPosition(i, s, c, r.getHeight(i));
1629
+ }
1630
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1631
+ return e.scrollTop !== void 0 && t.scrollTop !== e.scrollTop ? { isScrolling: !0, scrollTop: e.scrollTop } : null;
1632
+ } }]);
1633
+ }();
1634
+ function ct() {
1635
+ }
1636
+ p(at, "defaultProps", { autoHeight: !1, keyMapper: function(o) {
1637
+ return o;
1638
+ }, onCellsRendered: ct, onScroll: ct, overscanByPixels: 20, role: "grid", scrollingResetTimeInterval: 150, style: {}, tabIndex: 0, rowDirection: "ltr" }), le(at);
1639
+ var we = function() {
1640
+ return A(function o() {
1641
+ var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1642
+ G(this, o), p(this, "_cellMeasurerCache", void 0), p(this, "_columnIndexOffset", void 0), p(this, "_rowIndexOffset", void 0), p(this, "columnWidth", function(s) {
1643
+ var c = s.index;
1644
+ e._cellMeasurerCache.columnWidth({ index: c + e._columnIndexOffset });
1645
+ }), p(this, "rowHeight", function(s) {
1646
+ var c = s.index;
1647
+ e._cellMeasurerCache.rowHeight({ index: c + e._rowIndexOffset });
1648
+ });
1649
+ var n = t.cellMeasurerCache, r = t.columnIndexOffset, l = r === void 0 ? 0 : r, i = t.rowIndexOffset, a = i === void 0 ? 0 : i;
1650
+ this._cellMeasurerCache = n, this._columnIndexOffset = l, this._rowIndexOffset = a;
1651
+ }, [{ key: "clear", value: function(o, e) {
1652
+ this._cellMeasurerCache.clear(o + this._rowIndexOffset, e + this._columnIndexOffset);
1653
+ } }, { key: "clearAll", value: function() {
1654
+ this._cellMeasurerCache.clearAll();
1655
+ } }, { key: "defaultHeight", get: function() {
1656
+ return this._cellMeasurerCache.defaultHeight;
1657
+ } }, { key: "defaultWidth", get: function() {
1658
+ return this._cellMeasurerCache.defaultWidth;
1659
+ } }, { key: "hasFixedHeight", value: function() {
1660
+ return this._cellMeasurerCache.hasFixedHeight();
1661
+ } }, { key: "hasFixedWidth", value: function() {
1662
+ return this._cellMeasurerCache.hasFixedWidth();
1663
+ } }, { key: "getHeight", value: function(o) {
1664
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1665
+ return this._cellMeasurerCache.getHeight(o + this._rowIndexOffset, e + this._columnIndexOffset);
1666
+ } }, { key: "getWidth", value: function(o) {
1667
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1668
+ return this._cellMeasurerCache.getWidth(o + this._rowIndexOffset, e + this._columnIndexOffset);
1669
+ } }, { key: "has", value: function(o) {
1670
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1671
+ return this._cellMeasurerCache.has(o + this._rowIndexOffset, e + this._columnIndexOffset);
1672
+ } }, { key: "set", value: function(o, e, t, n) {
1673
+ this._cellMeasurerCache.set(o + this._rowIndexOffset, e + this._columnIndexOffset, t, n);
1674
+ } }]);
1675
+ }(), Fo = ["rowIndex"], No = ["columnIndex", "rowIndex"], Bo = ["columnIndex"], Uo = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
1676
+ function ut(o, e) {
1677
+ var t = Object.keys(o);
1678
+ if (Object.getOwnPropertySymbols) {
1679
+ var n = Object.getOwnPropertySymbols(o);
1680
+ e && (n = n.filter(function(r) {
1681
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
1682
+ })), t.push.apply(t, n);
1683
+ }
1684
+ return t;
1685
+ }
1686
+ function M(o) {
1687
+ for (var e = 1; e < arguments.length; e++) {
1688
+ var t = arguments[e] != null ? arguments[e] : {};
1689
+ e % 2 ? ut(Object(t), !0).forEach(function(n) {
1690
+ p(o, n, t[n]);
1691
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ut(Object(t)).forEach(function(n) {
1692
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
1693
+ });
1694
+ }
1695
+ return o;
1696
+ }
1697
+ function Ft() {
1698
+ try {
1699
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1700
+ }));
1701
+ } catch {
1702
+ }
1703
+ return (Ft = function() {
1704
+ return !!o;
1705
+ })();
1706
+ }
1707
+ var Ce = function() {
1708
+ function o(e, t) {
1709
+ var n, r, l, i;
1710
+ G(this, o), r = this, i = [e, t], l = O(l = o), p(n = H(r, Ft() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i)), "state", { scrollLeft: 0, scrollTop: 0, scrollbarSize: 0, showHorizontalScrollbar: !1, showVerticalScrollbar: !1 }), p(n, "_deferredInvalidateColumnIndex", null), p(n, "_deferredInvalidateRowIndex", null), p(n, "_bottomLeftGridRef", function(u) {
1711
+ n._bottomLeftGrid = u;
1712
+ }), p(n, "_bottomRightGridRef", function(u) {
1713
+ n._bottomRightGrid = u;
1714
+ }), p(n, "_cellRendererBottomLeftGrid", function(u) {
1715
+ var d = u.rowIndex, f = ee(u, Fo), h = n.props, g = h.cellRenderer, v = h.fixedRowCount;
1716
+ return d === h.rowCount - v ? x.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { height: 20 }) }) : g(M(M({}, f), {}, { parent: n, rowIndex: d + v }));
1717
+ }), p(n, "_cellRendererBottomRightGrid", function(u) {
1718
+ var d = u.columnIndex, f = u.rowIndex, h = ee(u, No), g = n.props, v = g.cellRenderer, _ = g.fixedColumnCount, S = g.fixedRowCount;
1719
+ return v(M(M({}, h), {}, { columnIndex: d + _, parent: n, rowIndex: f + S }));
1720
+ }), p(n, "_cellRendererTopRightGrid", function(u) {
1721
+ var d = u.columnIndex, f = ee(u, Bo), h = n.props, g = h.cellRenderer, v = h.columnCount, _ = h.fixedColumnCount;
1722
+ return d === v - _ ? x.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { width: 20 }) }) : g(M(M({}, f), {}, { columnIndex: d + _, parent: n }));
1723
+ }), p(n, "_columnWidthRightGrid", function(u) {
1724
+ var d = u.index, f = n.props, h = f.columnCount, g = f.fixedColumnCount, v = f.columnWidth, _ = n.state, S = _.scrollbarSize;
1725
+ return _.showHorizontalScrollbar && d === h - g ? S : typeof v == "function" ? v({ index: d + g }) : v;
1726
+ }), p(n, "_onScroll", function(u) {
1727
+ var d = u.scrollLeft, f = u.scrollTop;
1728
+ n.setState({ scrollLeft: d, scrollTop: f });
1729
+ var h = n.props.onScroll;
1730
+ h && h(u);
1731
+ }), p(n, "_onScrollbarPresenceChange", function(u) {
1732
+ var d = u.horizontal, f = u.size, h = u.vertical, g = n.state, v = g.showHorizontalScrollbar, _ = g.showVerticalScrollbar;
1733
+ if (d !== v || h !== _) {
1734
+ n.setState({ scrollbarSize: f, showHorizontalScrollbar: d, showVerticalScrollbar: h });
1735
+ var S = n.props.onScrollbarPresenceChange;
1736
+ typeof S == "function" && S({ horizontal: d, size: f, vertical: h });
1737
+ }
1738
+ }), p(n, "_onScrollLeft", function(u) {
1739
+ var d = u.scrollLeft;
1740
+ n._onScroll({ scrollLeft: d, scrollTop: n.state.scrollTop });
1741
+ }), p(n, "_onScrollTop", function(u) {
1742
+ var d = u.scrollTop;
1743
+ n._onScroll({ scrollTop: d, scrollLeft: n.state.scrollLeft });
1744
+ }), p(n, "_rowHeightBottomGrid", function(u) {
1745
+ var d = u.index, f = n.props, h = f.fixedRowCount, g = f.rowCount, v = f.rowHeight, _ = n.state, S = _.scrollbarSize;
1746
+ return _.showVerticalScrollbar && d === g - h ? S : typeof v == "function" ? v({ index: d + h }) : v;
1747
+ }), p(n, "_topLeftGridRef", function(u) {
1748
+ n._topLeftGrid = u;
1749
+ }), p(n, "_topRightGridRef", function(u) {
1750
+ n._topRightGrid = u;
1751
+ });
1752
+ var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
1753
+ return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new we({ cellMeasurerCache: a, columnIndexOffset: 0, rowIndexOffset: c }) : a, n._deferredMeasurementCacheBottomRightGrid = s > 0 || c > 0 ? new we({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: c }) : a, n._deferredMeasurementCacheTopRightGrid = s > 0 ? new we({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: 0 }) : a), n;
1754
+ }
1755
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrids", value: function() {
1756
+ this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
1757
+ } }, { key: "invalidateCellSizeAfterRender", value: function() {
1758
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r;
1759
+ this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, n) : n, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex, l) : l;
1760
+ } }, { key: "measureAllCells", value: function() {
1761
+ this._bottomLeftGrid && this._bottomLeftGrid.measureAllCells(), this._bottomRightGrid && this._bottomRightGrid.measureAllCells(), this._topLeftGrid && this._topLeftGrid.measureAllCells(), this._topRightGrid && this._topRightGrid.measureAllCells();
1762
+ } }, { key: "recomputeGridSize", value: function() {
1763
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r, i = this.props, a = i.fixedColumnCount, s = i.fixedRowCount, c = Math.max(0, n - a), u = Math.max(0, l - s);
1764
+ this._bottomLeftGrid && this._bottomLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex: u }), this._bottomRightGrid && this._bottomRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: u }), this._topLeftGrid && this._topLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex: l }), this._topRightGrid && this._topRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: l }), this._leftGridWidth = null, this._topGridHeight = null, this._maybeCalculateCachedStyles(!0);
1765
+ } }, { key: "componentDidMount", value: function() {
1766
+ var e = this.props, t = e.scrollLeft, n = e.scrollTop;
1767
+ if (t > 0 || n > 0) {
1768
+ var r = {};
1769
+ t > 0 && (r.scrollLeft = t), n > 0 && (r.scrollTop = n), this.setState(r);
1770
+ }
1771
+ this._handleInvalidatedGridSize();
1772
+ } }, { key: "componentDidUpdate", value: function() {
1773
+ this._handleInvalidatedGridSize();
1774
+ } }, { key: "render", value: function() {
1775
+ var e = this.props, t = e.onScroll, n = e.onSectionRendered;
1776
+ e.onScrollbarPresenceChange, e.scrollLeft;
1777
+ var r = e.scrollToColumn;
1778
+ e.scrollTop;
1779
+ var l = e.scrollToRow, i = ee(e, Uo);
1780
+ if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
1781
+ var a = this.state, s = a.scrollLeft, c = a.scrollTop;
1782
+ return x.createElement("div", { style: this._containerOuterStyle }, x.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(i), this._renderTopRightGrid(M(M({}, i), {}, { onScroll: t, scrollLeft: s }))), x.createElement("div", { style: this._containerBottomStyle }, this._renderBottomLeftGrid(M(M({}, i), {}, { onScroll: t, scrollTop: c })), this._renderBottomRightGrid(M(M({}, i), {}, { onScroll: t, onSectionRendered: n, scrollLeft: s, scrollToColumn: r, scrollToRow: l, scrollTop: c }))));
1783
+ } }, { key: "_getBottomGridHeight", value: function(e) {
1784
+ return e.height - this._getTopGridHeight(e);
1785
+ } }, { key: "_getLeftGridWidth", value: function(e) {
1786
+ var t = e.fixedColumnCount, n = e.columnWidth;
1787
+ if (this._leftGridWidth == null) if (typeof n == "function") {
1788
+ for (var r = 0, l = 0; l < t; l++) r += n({ index: l });
1789
+ this._leftGridWidth = r;
1790
+ } else this._leftGridWidth = n * t;
1791
+ return this._leftGridWidth;
1792
+ } }, { key: "_getRightGridWidth", value: function(e) {
1793
+ return e.width - this._getLeftGridWidth(e);
1794
+ } }, { key: "_getTopGridHeight", value: function(e) {
1795
+ var t = e.fixedRowCount, n = e.rowHeight;
1796
+ if (this._topGridHeight == null) if (typeof n == "function") {
1797
+ for (var r = 0, l = 0; l < t; l++) r += n({ index: l });
1798
+ this._topGridHeight = r;
1799
+ } else this._topGridHeight = n * t;
1800
+ return this._topGridHeight;
1801
+ } }, { key: "_handleInvalidatedGridSize", value: function() {
1802
+ if (typeof this._deferredInvalidateColumnIndex == "number") {
1803
+ var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
1804
+ this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
1805
+ }
1806
+ } }, { key: "_maybeCalculateCachedStyles", value: function(e) {
1807
+ var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, l = t.enableFixedRowScroll, i = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, u = t.style, d = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, h = t.styleTopLeftGrid, g = t.styleTopRightGrid, v = t.width, _ = e || i !== this._lastRenderedHeight || v !== this._lastRenderedWidth, S = e || n !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, m = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
1808
+ (e || _ || u !== this._lastRenderedStyle) && (this._containerOuterStyle = M({ height: i, overflow: "visible", width: v }, u)), (e || _ || m) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: v }, this._containerBottomStyle = { height: i - this._getTopGridHeight(this.props), overflow: "visible", position: "relative", width: v }), (e || d !== this._lastRenderedStyleBottomLeftGrid) && (this._bottomLeftGridStyle = M({ left: 0, overflowX: "hidden", overflowY: r ? "auto" : "hidden", position: "absolute" }, d)), (e || S || f !== this._lastRenderedStyleBottomRightGrid) && (this._bottomRightGridStyle = M({ left: this._getLeftGridWidth(this.props), position: "absolute" }, f)), (e || h !== this._lastRenderedStyleTopLeftGrid) && (this._topLeftGridStyle = M({ left: 0, overflowX: "hidden", overflowY: "hidden", position: "absolute", top: 0 }, h)), (e || S || g !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = M({ left: this._getLeftGridWidth(this.props), overflowX: l ? "auto" : "hidden", overflowY: "hidden", position: "absolute", top: 0 }, g)), this._lastRenderedColumnWidth = n, this._lastRenderedFixedColumnCount = a, this._lastRenderedFixedRowCount = s, this._lastRenderedHeight = i, this._lastRenderedRowHeight = c, this._lastRenderedStyle = u, this._lastRenderedStyleBottomLeftGrid = d, this._lastRenderedStyleBottomRightGrid = f, this._lastRenderedStyleTopLeftGrid = h, this._lastRenderedStyleTopRightGrid = g, this._lastRenderedWidth = v;
1809
+ } }, { key: "_prepareForRender", value: function() {
1810
+ this._lastRenderedColumnWidth === this.props.columnWidth && this._lastRenderedFixedColumnCount === this.props.fixedColumnCount || (this._leftGridWidth = null), this._lastRenderedFixedRowCount === this.props.fixedRowCount && this._lastRenderedRowHeight === this.props.rowHeight || (this._topGridHeight = null), this._maybeCalculateCachedStyles(), this._lastRenderedColumnWidth = this.props.columnWidth, this._lastRenderedFixedColumnCount = this.props.fixedColumnCount, this._lastRenderedFixedRowCount = this.props.fixedRowCount, this._lastRenderedRowHeight = this.props.rowHeight;
1811
+ } }, { key: "_renderBottomLeftGrid", value: function(e) {
1812
+ var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
1813
+ if (!n) return null;
1814
+ var s = a ? 1 : 0, c = this._getBottomGridHeight(e), u = this._getLeftGridWidth(e), d = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = i ? u + d : u, h = x.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomLeftGrid, className: this.props.classNameBottomLeftGrid, columnCount: n, deferredMeasurementCache: this._deferredMeasurementCacheBottomLeftGrid, height: c, onScroll: t ? this._onScrollTop : void 0, ref: this._bottomLeftGridRef, rowCount: Math.max(0, l - r) + s, rowHeight: this._rowHeightBottomGrid, style: this._bottomLeftGridStyle, tabIndex: null, width: f }));
1815
+ return i ? x.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: M(M({}, this._bottomLeftGridStyle), {}, { height: c, width: u, overflowY: "hidden" }) }, h) : h;
1816
+ } }, { key: "_renderBottomRightGrid", value: function(e) {
1817
+ var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.scrollToColumn, a = e.scrollToRow;
1818
+ return x.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomRightGrid, className: this.props.classNameBottomRightGrid, columnCount: Math.max(0, t - n), columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheBottomRightGrid, height: this._getBottomGridHeight(e), onScroll: this._onScroll, onScrollbarPresenceChange: this._onScrollbarPresenceChange, ref: this._bottomRightGridRef, rowCount: Math.max(0, l - r), rowHeight: this._rowHeightBottomGrid, scrollToColumn: i - n, scrollToRow: a - r, style: this._bottomRightGridStyle, width: this._getRightGridWidth(e) }));
1819
+ } }, { key: "_renderTopLeftGrid", value: function(e) {
1820
+ var t = e.fixedColumnCount, n = e.fixedRowCount;
1821
+ return t && n ? x.createElement(V, U({}, e, { className: this.props.classNameTopLeftGrid, columnCount: t, height: this._getTopGridHeight(e), ref: this._topLeftGridRef, rowCount: n, style: this._topLeftGridStyle, tabIndex: null, width: this._getLeftGridWidth(e) })) : null;
1822
+ } }, { key: "_renderTopRightGrid", value: function(e) {
1823
+ var t = e.columnCount, n = e.enableFixedRowScroll, r = e.fixedColumnCount, l = e.fixedRowCount, i = e.scrollLeft, a = e.hideTopRightGridScrollbar, s = this.state, c = s.showHorizontalScrollbar, u = s.scrollbarSize;
1824
+ if (!l) return null;
1825
+ var d = c ? 1 : 0, f = this._getTopGridHeight(e), h = this._getRightGridWidth(e), g = c ? u : 0, v = f, _ = this._topRightGridStyle;
1826
+ a && (v = f + g, _ = M(M({}, this._topRightGridStyle), {}, { left: 0 }));
1827
+ var S = x.createElement(V, U({}, e, { cellRenderer: this._cellRendererTopRightGrid, className: this.props.classNameTopRightGrid, columnCount: Math.max(0, t - r) + d, columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheTopRightGrid, height: v, onScroll: n ? this._onScrollLeft : void 0, ref: this._topRightGridRef, rowCount: l, scrollLeft: i, style: _, tabIndex: null, width: h }));
1828
+ return a ? x.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: M(M({}, this._topRightGridStyle), {}, { height: f, width: h, overflowX: "hidden" }) }, S) : S;
1829
+ } }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
1830
+ return e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null && e.scrollLeft >= 0 ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null && e.scrollTop >= 0 ? e.scrollTop : t.scrollTop } : null;
1831
+ } }]);
1832
+ }();
1833
+ function Nt() {
1834
+ try {
1835
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1836
+ }));
1837
+ } catch {
1838
+ }
1839
+ return (Nt = function() {
1840
+ return !!o;
1841
+ })();
1842
+ }
1843
+ p(Ce, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "", classNameTopLeftGrid: "", classNameTopRightGrid: "", enableFixedColumnScroll: !1, enableFixedRowScroll: !1, fixedColumnCount: 0, fixedRowCount: 0, scrollToColumn: -1, scrollToRow: -1, style: {}, styleBottomLeftGrid: {}, styleBottomRightGrid: {}, styleTopLeftGrid: {}, styleTopRightGrid: {}, hideTopRightGridScrollbar: !1, hideBottomLeftGridScrollbar: !1 }), Ce.propTypes = {}, le(Ce), function() {
1844
+ function o(e, t) {
1845
+ var n, r, l, i;
1846
+ return G(this, o), r = this, i = [e, t], l = O(l = o), (n = H(r, Nt() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i))).state = { clientHeight: 0, clientWidth: 0, scrollHeight: 0, scrollLeft: 0, scrollTop: 0, scrollWidth: 0 }, n._onScroll = n._onScroll.bind(n), n;
1847
+ }
1848
+ return D(o, x.PureComponent), A(o, [{ key: "render", value: function() {
1849
+ var e = this.props.children, t = this.state, n = t.clientHeight, r = t.clientWidth, l = t.scrollHeight, i = t.scrollLeft, a = t.scrollTop, s = t.scrollWidth;
1850
+ return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight: l, scrollLeft: i, scrollTop: a, scrollWidth: s });
1851
+ } }, { key: "_onScroll", value: function(e) {
1852
+ var t = e.clientHeight, n = e.clientWidth, r = e.scrollHeight, l = e.scrollLeft, i = e.scrollTop, a = e.scrollWidth;
1853
+ this.setState({ clientHeight: t, clientWidth: n, scrollHeight: r, scrollLeft: l, scrollTop: i, scrollWidth: a });
1854
+ } }]);
1855
+ }().propTypes = {};
1856
+ var ie = "ASC", ze = "DESC";
1857
+ function Bt(o) {
1858
+ var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === ie, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === ze });
1859
+ return x.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === ie ? x.createElement("path", { d: "M7 14l5-5 5 5z" }) : x.createElement("path", { d: "M7 10l5 5 5-5z" }), x.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
1860
+ }
1861
+ function Ut() {
1862
+ try {
1863
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1864
+ }));
1865
+ } catch {
1866
+ }
1867
+ return (Ut = function() {
1868
+ return !!o;
1869
+ })();
1870
+ }
1871
+ Bt.propTypes = {};
1872
+ var me = function() {
1873
+ function o() {
1874
+ return G(this, o), e = this, n = arguments, t = O(t = o), H(e, Ut() ? Reflect.construct(t, n || [], O(e).constructor) : t.apply(e, n));
1875
+ var e, t, n;
1876
+ }
1877
+ return D(o, x.Component), A(o);
1878
+ }();
1879
+ function dt(o, e) {
1880
+ var t = Object.keys(o);
1881
+ if (Object.getOwnPropertySymbols) {
1882
+ var n = Object.getOwnPropertySymbols(o);
1883
+ e && (n = n.filter(function(r) {
1884
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
1885
+ })), t.push.apply(t, n);
1886
+ }
1887
+ return t;
1888
+ }
1889
+ function B(o) {
1890
+ for (var e = 1; e < arguments.length; e++) {
1891
+ var t = arguments[e] != null ? arguments[e] : {};
1892
+ e % 2 ? dt(Object(t), !0).forEach(function(n) {
1893
+ p(o, n, t[n]);
1894
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : dt(Object(t)).forEach(function(n) {
1895
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
1896
+ });
1897
+ }
1898
+ return o;
1899
+ }
1900
+ function Vt() {
1901
+ try {
1902
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1903
+ }));
1904
+ } catch {
1905
+ }
1906
+ return (Vt = function() {
1907
+ return !!o;
1908
+ })();
1909
+ }
1910
+ p(me, "defaultProps", { cellDataGetter: function(o) {
1911
+ var e = o.dataKey, t = o.rowData;
1912
+ return typeof t.get == "function" ? t.get(e) : t[e];
1913
+ }, cellRenderer: function(o) {
1914
+ var e = o.cellData;
1915
+ return e == null ? "" : String(e);
1916
+ }, defaultSortDirection: ie, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
1917
+ var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, l = n === e, i = [x.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
1918
+ return l && i.push(x.createElement(Bt, { key: "SortIndicator", sortDirection: r })), i;
1919
+ }, style: {} }), me.propTypes = {};
1920
+ var Ie = function() {
1921
+ function o(e) {
1922
+ var t, n, r, l;
1923
+ return G(this, o), n = this, l = [e], r = O(r = o), (t = H(n, Vt() ? Reflect.construct(r, l || [], O(n).constructor) : r.apply(n, l))).state = { scrollbarWidth: 0 }, t._createColumn = t._createColumn.bind(t), t._createRow = t._createRow.bind(t), t._onScroll = t._onScroll.bind(t), t._onSectionRendered = t._onSectionRendered.bind(t), t._setRef = t._setRef.bind(t), t._setGridElementRef = t._setGridElementRef.bind(t), t;
1924
+ }
1925
+ return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
1926
+ this.Grid && this.Grid.forceUpdate();
1927
+ } }, { key: "getOffsetForRow", value: function(e) {
1928
+ var t = e.alignment, n = e.index;
1929
+ return this.Grid ? this.Grid.getOffsetForCell({ alignment: t, rowIndex: n }).scrollTop : 0;
1930
+ } }, { key: "invalidateCellSizeAfterRender", value: function(e) {
1931
+ var t = e.columnIndex, n = e.rowIndex;
1932
+ this.Grid && this.Grid.invalidateCellSizeAfterRender({ rowIndex: n, columnIndex: t });
1933
+ } }, { key: "measureAllRows", value: function() {
1934
+ this.Grid && this.Grid.measureAllCells();
1935
+ } }, { key: "recomputeGridSize", value: function() {
1936
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r;
1937
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: l, columnIndex: n });
1938
+ } }, { key: "recomputeRowHeights", value: function() {
1939
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1940
+ this.Grid && this.Grid.recomputeGridSize({ rowIndex: e });
1941
+ } }, { key: "scrollToPosition", value: function() {
1942
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1943
+ this.Grid && this.Grid.scrollToPosition({ scrollTop: e });
1944
+ } }, { key: "scrollToRow", value: function() {
1945
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
1946
+ this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
1947
+ } }, { key: "getScrollbarWidth", value: function() {
1948
+ if (this.GridElement) {
1949
+ var e = this.GridElement, t = e.clientWidth || 0;
1950
+ return (e.offsetWidth || 0) - t;
1951
+ }
1952
+ return 0;
1953
+ } }, { key: "componentDidMount", value: function() {
1954
+ this._setScrollbarWidth();
1955
+ } }, { key: "componentDidUpdate", value: function() {
1956
+ this._setScrollbarWidth();
1957
+ } }, { key: "render", value: function() {
1958
+ var e = this, t = this.props, n = t.children, r = t.className, l = t.disableHeader, i = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, u = t.height, d = t.id, f = t.noRowsRenderer, h = t.rowClassName, g = t.rowStyle, v = t.scrollToIndex, _ = t.style, S = t.width, m = this.state.scrollbarWidth, w = l ? u : u - s, y = typeof h == "function" ? h({ index: -1 }) : h, C = typeof g == "function" ? g({ index: -1 }) : g;
1959
+ return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(T, R) {
1960
+ var b = e._getFlexStyleForColumn(T, T.props.style || me.defaultProps.style);
1961
+ e._cachedColumnStyles[R] = B({ overflow: "hidden" }, b);
1962
+ }), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: d, role: "grid", style: _ }, !l && c({ className: N("ReactVirtualized__Table__headerRow", y), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: m, width: S }, C) }), x.createElement(V, U({}, this.props, { elementRef: this._setGridElementRef, "aria-readonly": null, autoContainerWidth: !0, className: N("ReactVirtualized__Table__Grid", i), cellRenderer: this._createRow, columnWidth: S, columnCount: 1, height: w, id: void 0, noContentRenderer: f, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, role: "rowgroup", scrollbarWidth: m, scrollToRow: v, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
1963
+ } }, { key: "_createColumn", value: function(e) {
1964
+ var t = e.column, n = e.columnIndex, r = e.isScrolling, l = e.parent, i = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, u = c.cellDataGetter, d = c.cellRenderer, f = c.className, h = c.columnData, g = c.dataKey, v = c.id, _ = d({ cellData: u({ columnData: h, dataKey: g, rowData: i }), columnData: h, columnIndex: n, dataKey: g, isScrolling: r, parent: l, rowData: i, rowIndex: a }), S = this._cachedColumnStyles[n], m = typeof _ == "string" ? _ : null;
1965
+ return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby": v, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(w) {
1966
+ s && s({ columnData: h, dataKey: g, event: w });
1967
+ }, role: "gridcell", style: S, title: m }, _);
1968
+ } }, { key: "_createHeader", value: function(e) {
1969
+ var t, n, r, l, i, a = e.column, s = e.index, c = this.props, u = c.headerClassName, d = c.headerStyle, f = c.onHeaderClick, h = c.sort, g = c.sortBy, v = c.sortDirection, _ = a.props, S = _.columnData, m = _.dataKey, w = _.defaultSortDirection, y = _.disableSort, C = _.headerRenderer, T = _.id, R = _.label, b = !y && h, P = N("ReactVirtualized__Table__headerColumn", u, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: b }), z = this._getFlexStyleForColumn(a, B(B({}, d), a.props.headerStyle)), I = C({ columnData: S, dataKey: m, disableSort: y, label: R, sortBy: g, sortDirection: v });
1970
+ if (b || f) {
1971
+ var k = g !== m ? w : v === ze ? ie : ze, L = function(W) {
1972
+ b && h({ defaultSortDirection: w, event: W, sortBy: m, sortDirection: k }), f && f({ columnData: S, dataKey: m, event: W });
1973
+ };
1974
+ i = a.props["aria-label"] || R || m, l = "none", r = 0, t = L, n = function(W) {
1975
+ W.key !== "Enter" && W.key !== " " || L(W);
1976
+ };
1977
+ }
1978
+ return g === m && (l = v === ie ? "ascending" : "descending"), x.createElement("div", { "aria-label": i, "aria-sort": l, className: P, id: T, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: z, tabIndex: r }, I);
1979
+ } }, { key: "_createRow", value: function(e) {
1980
+ var t = this, n = e.rowIndex, r = e.isScrolling, l = e.key, i = e.parent, a = e.style, s = this.props, c = s.children, u = s.onRowClick, d = s.onRowDoubleClick, f = s.onRowRightClick, h = s.onRowMouseOver, g = s.onRowMouseOut, v = s.rowClassName, _ = s.rowGetter, S = s.rowRenderer, m = s.rowStyle, w = this.state.scrollbarWidth, y = typeof v == "function" ? v({ index: n }) : v, C = typeof m == "function" ? m({ index: n }) : m, T = _({ index: n }), R = x.Children.toArray(c).map(function(z, I) {
1981
+ return t._createColumn({ column: z, columnIndex: I, isScrolling: r, parent: i, rowData: T, rowIndex: n, scrollbarWidth: w });
1982
+ }), b = N("ReactVirtualized__Table__row", y), P = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: w }, C);
1983
+ return S({ className: b, columns: R, index: n, isScrolling: r, key: l, onRowClick: u, onRowDoubleClick: d, onRowRightClick: f, onRowMouseOver: h, onRowMouseOut: g, rowData: T, style: P });
1984
+ } }, { key: "_getFlexStyleForColumn", value: function(e) {
1985
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = "".concat(e.props.flexGrow, " ").concat(e.props.flexShrink, " ").concat(e.props.width, "px"), r = B(B({}, t), {}, { flex: n, msFlex: n, WebkitFlex: n });
1986
+ return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
1987
+ } }, { key: "_getHeaderColumns", value: function() {
1988
+ var e = this, t = this.props, n = t.children;
1989
+ return (t.disableHeader ? [] : x.Children.toArray(n)).map(function(r, l) {
1990
+ return e._createHeader({ column: r, index: l });
1991
+ });
1992
+ } }, { key: "_getRowHeight", value: function(e) {
1993
+ var t = this.props.rowHeight;
1994
+ return typeof t == "function" ? t({ index: e }) : t;
1995
+ } }, { key: "_onScroll", value: function(e) {
1996
+ var t = e.clientHeight, n = e.scrollHeight, r = e.scrollTop;
1997
+ (0, this.props.onScroll)({ clientHeight: t, scrollHeight: n, scrollTop: r });
1998
+ } }, { key: "_onSectionRendered", value: function(e) {
1999
+ var t = e.rowOverscanStartIndex, n = e.rowOverscanStopIndex, r = e.rowStartIndex, l = e.rowStopIndex;
2000
+ (0, this.props.onRowsRendered)({ overscanStartIndex: t, overscanStopIndex: n, startIndex: r, stopIndex: l });
2001
+ } }, { key: "_setRef", value: function(e) {
2002
+ this.Grid = e;
2003
+ } }, { key: "_setGridElementRef", value: function(e) {
2004
+ this.GridElement = e;
2005
+ } }, { key: "_setScrollbarWidth", value: function() {
2006
+ var e = this.getScrollbarWidth();
2007
+ this.setState({ scrollbarWidth: e });
2008
+ } }]);
2009
+ }();
2010
+ p(Ie, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0, headerStyle: {}, noRowsRenderer: function() {
2011
+ return null;
2012
+ }, onRowsRendered: function() {
2013
+ return null;
2014
+ }, onScroll: function() {
2015
+ return null;
2016
+ }, overscanIndicesGetter: Gt, overscanRowCount: 10, rowRenderer: function(o) {
2017
+ var e = o.className, t = o.columns, n = o.index, r = o.key, l = o.onRowClick, i = o.onRowDoubleClick, a = o.onRowMouseOut, s = o.onRowMouseOver, c = o.onRowRightClick, u = o.rowData, d = o.style, f = { "aria-rowindex": n + 1 };
2018
+ return (l || i || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, l && (f.onClick = function(h) {
2019
+ return l({ event: h, index: n, rowData: u });
2020
+ }), i && (f.onDoubleClick = function(h) {
2021
+ return i({ event: h, index: n, rowData: u });
2022
+ }), a && (f.onMouseOut = function(h) {
2023
+ return a({ event: h, index: n, rowData: u });
2024
+ }), s && (f.onMouseOver = function(h) {
2025
+ return s({ event: h, index: n, rowData: u });
2026
+ }), c && (f.onContextMenu = function(h) {
2027
+ return c({ event: h, index: n, rowData: u });
2028
+ })), x.createElement("div", U({}, f, { className: e, key: r, role: "row", style: d }), t);
2029
+ }, headerRowRenderer: function(o) {
2030
+ var e = o.className, t = o.columns, n = o.style;
2031
+ return x.createElement("div", { className: e, role: "row", style: n }, t);
2032
+ }, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), Ie.propTypes = {};
2033
+ var $ = [], ne = null, K = null;
2034
+ function qt() {
2035
+ K && (K = null, document.body && ne != null && (document.body.style.pointerEvents = ne), ne = null);
2036
+ }
2037
+ function Vo() {
2038
+ qt(), $.forEach(function(o) {
2039
+ return o.__resetIsScrolling();
2040
+ });
2041
+ }
2042
+ function Kt(o) {
2043
+ o.currentTarget === window && ne == null && document.body && (ne = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
2044
+ K && Z(K);
2045
+ var e = 0;
2046
+ $.forEach(function(t) {
2047
+ e = Math.max(e, t.props.scrollingResetTimeInterval);
2048
+ }), K = ke(Vo, e);
2049
+ }(), $.forEach(function(e) {
2050
+ e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
2051
+ });
2052
+ }
2053
+ function ht(o, e) {
2054
+ $.some(function(t) {
2055
+ return t.props.scrollElement === e;
2056
+ }) || e.addEventListener("scroll", Kt), $.push(o);
2057
+ }
2058
+ function ft(o, e) {
2059
+ ($ = $.filter(function(t) {
2060
+ return t !== o;
2061
+ })).length || (e.removeEventListener("scroll", Kt), K && (Z(K), qt()));
2062
+ }
2063
+ var Le = function(o) {
2064
+ return o === window;
2065
+ }, te = function(o) {
2066
+ return o.getBoundingClientRect();
2067
+ };
2068
+ function pt(o, e) {
2069
+ if (o) {
2070
+ if (Le(o)) {
2071
+ var t = window, n = t.innerHeight, r = t.innerWidth;
2072
+ return { height: typeof n == "number" ? n : 0, width: typeof r == "number" ? r : 0 };
2073
+ }
2074
+ return te(o);
2075
+ }
2076
+ return { height: e.serverHeight, width: e.serverWidth };
2077
+ }
2078
+ function mt(o) {
2079
+ return Le(o) && document.documentElement ? { top: "scrollY" in window ? window.scrollY : document.documentElement.scrollTop, left: "scrollX" in window ? window.scrollX : document.documentElement.scrollLeft } : { top: o.scrollTop, left: o.scrollLeft };
2080
+ }
2081
+ function gt(o, e) {
2082
+ var t = Object.keys(o);
2083
+ if (Object.getOwnPropertySymbols) {
2084
+ var n = Object.getOwnPropertySymbols(o);
2085
+ e && (n = n.filter(function(r) {
2086
+ return Object.getOwnPropertyDescriptor(o, r).enumerable;
2087
+ })), t.push.apply(t, n);
2088
+ }
2089
+ return t;
2090
+ }
2091
+ function vt(o) {
2092
+ for (var e = 1; e < arguments.length; e++) {
2093
+ var t = arguments[e] != null ? arguments[e] : {};
2094
+ e % 2 ? gt(Object(t), !0).forEach(function(n) {
2095
+ p(o, n, t[n]);
2096
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : gt(Object(t)).forEach(function(n) {
2097
+ Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
2098
+ });
2099
+ }
2100
+ return o;
2101
+ }
2102
+ function $t() {
2103
+ try {
2104
+ var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2105
+ }));
2106
+ } catch {
2107
+ }
2108
+ return ($t = function() {
2109
+ return !!o;
2110
+ })();
2111
+ }
2112
+ var Xt = function() {
2113
+ return typeof window < "u" ? window : void 0;
2114
+ }, qo = function() {
2115
+ function o() {
2116
+ var e, t, n, r;
2117
+ G(this, o);
2118
+ for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
2119
+ return t = this, n = o, r = [].concat(i), n = O(n), p(e = H(t, $t() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_window", Xt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", x.createRef()), p(e, "state", vt(vt({}, pt(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
2120
+ !s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
2121
+ }), p(e, "_onChildScroll", function(s) {
2122
+ var c = s.scrollTop;
2123
+ if (e.state.scrollTop !== c) {
2124
+ var u = e.props.scrollElement;
2125
+ u && (typeof u.scrollTo == "function" ? u.scrollTo(0, c + e._positionFromTop) : u.scrollTop = c + e._positionFromTop);
2126
+ }
2127
+ }), p(e, "_registerResizeListener", function(s) {
2128
+ s === window ? window.addEventListener("resize", e._onResize, !1) : e._detectElementResize.addResizeListener(s, e._onResize);
2129
+ }), p(e, "_unregisterResizeListener", function(s) {
2130
+ s === window ? window.removeEventListener("resize", e._onResize, !1) : s && e._detectElementResize.removeResizeListener(s, e._onResize);
2131
+ }), p(e, "_onResize", function() {
2132
+ e.updatePosition();
2133
+ }), p(e, "__handleWindowScrollEvent", function() {
2134
+ if (e._isMounted) {
2135
+ var s = e.props.onScroll, c = e.props.scrollElement;
2136
+ if (c) {
2137
+ var u = mt(c), d = Math.max(0, u.left - e._positionFromLeft), f = Math.max(0, u.top - e._positionFromTop);
2138
+ e.setState({ isScrolling: !0, scrollLeft: d, scrollTop: f }), s({ scrollLeft: d, scrollTop: f });
2139
+ }
2140
+ }
2141
+ }), p(e, "__resetIsScrolling", function() {
2142
+ e.setState({ isScrolling: !1 });
2143
+ }), e;
2144
+ }
2145
+ return D(o, x.PureComponent), A(o, [{ key: "updatePosition", value: function() {
2146
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollElement, t = this.props.onResize, n = this.state, r = n.height, l = n.width, i = this._child || this._windowScrollerRef.current;
2147
+ if (i instanceof Element && e) {
2148
+ var a = function(c, u) {
2149
+ if (Le(u) && document.documentElement) {
2150
+ var d = document.documentElement, f = te(c), h = te(d);
2151
+ return { top: f.top - h.top, left: f.left - h.left };
2152
+ }
2153
+ var g = mt(u), v = te(c), _ = te(u);
2154
+ return { top: v.top + g.top - _.top, left: v.left + g.left - _.left };
2155
+ }(i, e);
2156
+ this._positionFromTop = a.top, this._positionFromLeft = a.left;
2157
+ }
2158
+ var s = pt(e, this.props);
2159
+ r === s.height && l === s.width || (this.setState({ height: s.height, width: s.width }), t({ height: s.height, width: s.width })), this.props.updateScrollTopOnUpdatePosition === !0 && (this.__handleWindowScrollEvent(), this.__resetIsScrolling());
2160
+ } }, { key: "componentDidMount", value: function() {
2161
+ var e = this.props.scrollElement;
2162
+ this._detectElementResize = Tt(), this.updatePosition(e), e && (ht(this, e), this._registerResizeListener(e)), this._isMounted = !0;
2163
+ } }, { key: "componentDidUpdate", value: function(e, t) {
2164
+ var n = this.props.scrollElement, r = e.scrollElement;
2165
+ r !== n && r != null && n != null && (this.updatePosition(n), ft(this, r), ht(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
2166
+ } }, { key: "componentWillUnmount", value: function() {
2167
+ var e = this.props.scrollElement;
2168
+ e && (ft(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
2169
+ } }, { key: "render", value: function() {
2170
+ var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, l = t.scrollLeft, i = t.height, a = t.width;
2171
+ return x.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: i, isScrolling: n, scrollLeft: l, scrollTop: r, width: a }));
2172
+ } }]);
2173
+ }();
2174
+ p(qo, "defaultProps", { onResize: function() {
2175
+ }, onScroll: function() {
2176
+ }, scrollingResetTimeInterval: 150, scrollElement: Xt(), serverHeight: 0, serverWidth: 0 });
2177
+ const oe = "ReactVirtualizedDemo-flexContainer", Yt = "ReactVirtualizedDemo-tableRow", Zt = "ReactVirtualizedDemo-tableRowHover", Pe = "ReactVirtualizedDemo-tableCell", Oe = "ReactVirtualizedDemo-noClick";
2178
+ class Ko extends St.PureComponent {
2179
+ constructor() {
2180
+ super(...arguments), this.getRowClassName = ({ index: e }) => {
2181
+ const { onRowClick: t } = this.props;
2182
+ return ve(Yt, oe, { [Zt]: e !== -1 && t != null });
2183
+ }, this.cellRenderer = ({ cellData: e, columnIndex: t, dataKey: n }) => {
2184
+ const { columns: r, rowHeight: l, onRowClick: i } = this.props;
2185
+ let a = e, s = { height: l, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px" };
2186
+ return n === "shortcut" ? a = fo(e) : n === "description" && (s = { ...s, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), E(Ae, { component: "div", className: ve(Pe, oe, { [Oe]: i == null }), variant: "body", style: s, align: t != null && r[t].numeric ? "right" : "left", children: a });
2187
+ }, this.headerRenderer = ({ label: e, columnIndex: t }) => {
2188
+ const { headerHeight: n, columns: r } = this.props;
2189
+ return E(Ae, { component: "div", className: ve(Pe, oe, Oe), variant: "head", sx: { height: n, backgroundColor: (l) => l.palette.grey[300] }, align: r[t].numeric ? "right" : "left", children: E("span", { children: e }) });
2190
+ };
2191
+ }
2192
+ static {
2193
+ this.defaultProps = { headerHeight: 40, rowHeight: 48 };
2194
+ }
2195
+ render() {
2196
+ const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
2197
+ return E(It, { children: ({ height: l, width: i }) => E(Ie, { height: l, width: i, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...u }, d) => {
2198
+ const f = c ? i - c : s;
2199
+ return E(me, { headerRenderer: (h) => this.headerRenderer({ ...h, columnIndex: d }), className: oe, cellRenderer: this.cellRenderer, dataKey: a, width: f, ...u }, a);
2200
+ }) }) });
2201
+ }
2202
+ }
2203
+ const $o = xo(Ko)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${oe}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Yt}`]: { cursor: "pointer" }, [`& .${Zt}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${Pe}`]: { flex: 1 }, [`& .${Oe}`]: { cursor: "initial" } }));
2204
+ function Xo(o) {
2205
+ const { commands: e, ...t } = o, [n, r] = ce(!1), [l, i] = ce(""), a = go(() => {
2206
+ let h = e.getAllCommands();
2207
+ n || (h = h.filter((_) => _.command.shortcut())), h.sort((_, S) => _.command.label().localeCompare(S.command.label()));
2208
+ const g = [], v = (_) => _.replace(/\n\n/g, `
2209
+ `);
2210
+ for (let _ = 0; _ < h.length; _++) {
2211
+ const S = h[_].command, m = S.shortcut();
2212
+ if (Array.isArray(m)) {
2213
+ const w = m;
2214
+ for (let y = 0; y < w.length; y++) g.push({ label: S.label(), description: v(S.description()), shortcut: w[y] });
2215
+ } else g.push({ label: S.label(), description: v(S.description()), shortcut: S.shortcut() });
2216
+ }
2217
+ return g;
2218
+ }, [n, e]), [s, c] = ce(null);
2219
+ We(() => {
2220
+ import("./aIlK3Ybu-1T4WHPv.mjs").then((h) => {
2221
+ c(new h.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
2222
+ });
2223
+ }, [a]);
2224
+ const [u, d] = ce(a), f = l.length > 0 && u.length === 0;
2225
+ return We(() => {
2226
+ s && ho.debounce(() => {
2227
+ if (l.trim().length === 0) return void d(a);
2228
+ const h = s.search(l.trim()), g = new Array(h.length);
2229
+ for (let v = 0; v < h.length; v++) g[v] = h[v].item;
2230
+ d(g);
2231
+ }, 90)();
2232
+ }, [s, l]), Ge(se, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Ge(se, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (h) => h.spacing(2), color: (h) => h.palette.text.secondary }, children: [E(Jt, { InputProps: { sx: { backgroundImage: `linear-gradient(${ue("#fff", ae(5))}, ${ue("#fff", ae(5))})` }, inputProps: { className: "input", autoFocus: !0, spellCheck: !1, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (h) => h.spacing(1), paddingBottom: (h) => h.spacing(1) } }, endAdornment: E(Qt, { sx: { opacity: l.length > 0 ? 1 : 0, display: l.length > 0 ? "flex" : "none" }, position: "end", children: E(eo, { "aria-label": "clear search", onClick: () => i(""), edge: "end", children: E(vo, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (h) => h.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (h) => f ? `${h.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (h) => f ? `${h.palette.error.main} !important` : void 0 } }, value: l, onChange: (h) => {
2233
+ i(h.target.value);
2234
+ }, onKeyDown: (h) => {
2235
+ h.which === _t.Escape && l.length > 0 && (i(""), h.stopPropagation(), h.preventDefault());
2236
+ }, onContextMenu: (h) => {
2237
+ h.stopPropagation();
2238
+ } }), E(to, { sx: { flex: "1 1 60%" }, control: E(oo, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), E(se, { sx: { flex: "1 1 100%", borderRadius: (h) => `${h.shape.borderRadius}px`, border: (h) => `solid ${h.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (h) => h.palette.background.paper, backgroundImage: `linear-gradient(${ue("#fff", ae(5))}, ${ue("#fff", ae(5))})` } }, children: E($o, { rowCount: u.length, rowGetter: (h) => u[h.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), E(se, { sx: { display: "flex", flexShrink: "0", paddingLeft: (h) => h.spacing(1), paddingTop: (h) => h.spacing(1), paddingRight: (h) => h.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: E(no, { noWrap: !0, component: "div", sx: { color: (h) => f ? h.palette.error.main : h.palette.text.secondary }, children: `${u.length === 0 ? "No" : u.length} shortcut key${u.length === 1 ? "" : "s"}${l.length > 0 ? " found" : ""}` }) })] });
2239
+ }
2240
+ const rn = (o) => {
2241
+ const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
2242
+ return E(po, { isModal: !0, onKeyDown: (l) => {
2243
+ l.keyCode === _t.F1 && l.preventDefault();
2244
+ }, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: E(ro, { dividers: !0, children: E(Xo, { commands: t, sx: { marginBottom: "8px" } }) }) });
2245
+ };
2246
+ export {
2247
+ rn as default
2248
+ };