@sheetxl/studio-vanilla 0.4.12 → 0.4.14

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 (252) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/10IK8MFijJb-yvV6.cjs +7 -0
  3. package/browser/cjs/1bCMnueqxHW3rn0c.cjs +6 -0
  4. package/browser/cjs/AnJTeEGq7VP4T1b7.cjs +161 -0
  5. package/browser/cjs/BH3MYcOF7rxLX3Bk.cjs +15 -0
  6. package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +6 -0
  7. package/browser/cjs/BU5k1OZewc-Z-kR9.cjs +6 -0
  8. package/browser/cjs/BlwK-VslgEVH2cgX.cjs +145 -0
  9. package/browser/cjs/Bm9fNNMIOLIwq-94.cjs +6 -0
  10. package/browser/cjs/BtiY-n4sGy6WaqNg.cjs +32 -0
  11. package/browser/cjs/BxgDhdrrKrJMEaXd.cjs +6 -0
  12. package/browser/cjs/BzT1y15V6Zs7c_zX.cjs +6 -0
  13. package/browser/cjs/C0ySf2emOB0Mslc-.cjs +6 -0
  14. package/browser/cjs/CE5U7gB5L-PE17gV.cjs +6 -0
  15. package/browser/cjs/CHd9vauNLHnOLflj.cjs +6 -0
  16. package/browser/cjs/CJZtyunL_qaXFylY.cjs +12 -0
  17. package/browser/cjs/CJoJ19i1z94kndlS.cjs +19 -0
  18. package/browser/cjs/CNcsGELwCAV-A5oH.cjs +16 -0
  19. package/browser/cjs/CTuM_aZX8wZICUe_.cjs +6 -0
  20. package/browser/cjs/CWW_yQpIswo7DEAT.cjs +6 -0
  21. package/browser/cjs/CXIHULOe7x4DYKXw.cjs +12 -0
  22. package/browser/cjs/CYLnJHryQcQO4XoG.cjs +6 -0
  23. package/browser/cjs/C_mbaid3FQ52usBI.cjs +6 -0
  24. package/browser/cjs/Cj_1qUo5cZ3FnOpK.cjs +6 -0
  25. package/browser/cjs/Cl0XSnWVDoaHTIlF.cjs +6 -0
  26. package/browser/cjs/CnLdhURNkVXo_0Eg.cjs +6 -0
  27. package/browser/cjs/CpIIsygD5mnJyl47.cjs +1501 -0
  28. package/browser/cjs/CpRfx14is2_4Wgp3.cjs +6 -0
  29. package/browser/cjs/Cuq8Nim-ol5Gdehe.cjs +6 -0
  30. package/browser/cjs/D4NcrJlqcLExwCNT.cjs +124 -0
  31. package/browser/cjs/D4vbOk4hD8-b-c10.cjs +6 -0
  32. package/browser/cjs/D5YUIQeOcujtq6XS.cjs +7 -0
  33. package/browser/cjs/D6uIvR-6Y690_Em2.cjs +11 -0
  34. package/browser/cjs/DAbScbuk-sjZXMIC.cjs +11 -0
  35. package/browser/cjs/DBNXGIWfZmgb_sHL.cjs +6 -0
  36. package/browser/cjs/DCd5OZXj2IRbxEF2.cjs +6 -0
  37. package/browser/cjs/DFNisISrsMnZrV4B.cjs +6 -0
  38. package/browser/cjs/DIYOARVcGtRjKpjZ.cjs +6 -0
  39. package/browser/cjs/DL4HgriZ3TY2K-QP.cjs +6 -0
  40. package/browser/cjs/DPbzY4ppgKPrdbWc.cjs +6 -0
  41. package/browser/cjs/DQGdVVTxixgptLdj.cjs +366 -0
  42. package/browser/cjs/DWzQm8Q32qNP7qKL.cjs +6 -0
  43. package/browser/cjs/D_7RtbQABH1zdcjr.cjs +7 -0
  44. package/browser/cjs/D_Q0s9KLnWHwKxTK.cjs +6 -0
  45. package/browser/cjs/DdTcwutSPJMeCIv3.cjs +6 -0
  46. package/browser/cjs/DlnKrZRyxBfbqaTi.cjs +13 -0
  47. package/browser/cjs/DtpB0PMEtamaB-Hv.cjs +6 -0
  48. package/browser/cjs/Dv8SE05ABKNLPY6A.cjs +6 -0
  49. package/browser/cjs/DxBLU16_E62Umowp.cjs +6 -0
  50. package/browser/cjs/VU_KaqGTjvnisS9e.cjs +6 -0
  51. package/browser/cjs/bS_BOH9cvVCFy36v.cjs +6 -0
  52. package/browser/cjs/dbUUj8LyIitsdYpk.cjs +6 -0
  53. package/browser/cjs/eZGLUWbfY3JdZRM5.cjs +6 -0
  54. package/browser/cjs/index.cjs +3 -4
  55. package/browser/cjs/mBk4Z4LZ65b3f58_.cjs +6 -0
  56. package/browser/cjs/rIOsSIPwxoXlIawS.cjs +6 -0
  57. package/browser/cjs/sMBG5eQ3-iacLXUm.cjs +6 -0
  58. package/browser/cjs/tShlMZrIxsGZSeHX.cjs +42 -0
  59. package/browser/cjs/xDqIifM_--oXscCV.cjs +6 -0
  60. package/browser/cjs/yBSdtSSuNERefFhR.cjs +15 -0
  61. package/browser/esm/4eRu4yzXkvCBip8J.mjs +10 -0
  62. package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
  63. package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
  64. package/browser/esm/B4ji-HZTY0uvH8r7.mjs +10 -0
  65. package/browser/esm/B8TNpfJ8ymQcPriE.mjs +24 -0
  66. package/{cdn/assets/CiY3HumGDc_5bMtR.js → browser/esm/BBDu-GNDE7ZA-1sJ.mjs} +15 -17
  67. package/browser/esm/BF5nlSYZ38RJ0dPX.mjs +10 -0
  68. package/browser/esm/BHy77Km4i4t5U7ka.mjs +10 -0
  69. package/browser/esm/BIUVt79NHXdZx2Dz.mjs +10 -0
  70. package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
  71. package/browser/esm/BPen6C7JE2sWVgdi.mjs +10 -0
  72. package/browser/esm/BUqd1uVUNoWmepd2.mjs +148 -0
  73. package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
  74. package/browser/esm/BZxAttR2mi9td3k1.mjs +10 -0
  75. package/browser/esm/B_pEA9HeXKvEOCdS.mjs +10 -0
  76. package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
  77. package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
  78. package/browser/esm/BfFDvyaRcdKS0wPD.mjs +10 -0
  79. package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
  80. package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
  81. package/browser/esm/BvYUsRgBXLSuaQ-S.mjs +10 -0
  82. package/browser/esm/BzE-61bmpRQzEVPt.mjs +10 -0
  83. package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
  84. package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
  85. package/{cdn/assets/CfObTzh8pGdd8D23.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
  86. package/browser/esm/CITPwlsNzJvv551I.mjs +10 -0
  87. package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
  88. package/browser/esm/CN73n4VDayKh_l1J.mjs +10 -0
  89. package/browser/esm/CcARDY0PFSWkqsG9.mjs +21 -0
  90. package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
  91. package/browser/esm/Cmtx4dAVZrwq5cVO.mjs +10 -0
  92. package/browser/esm/Crza3kRJdEVylOfk.mjs +29 -0
  93. package/browser/esm/D3L89e08b7ewR6mt.mjs +21 -0
  94. package/browser/esm/D4G17ip9xxOX5jDd.mjs +3934 -0
  95. package/browser/esm/D9eVsUckA6bWBHni.mjs +10 -0
  96. package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
  97. package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
  98. package/{cdn/assets/DWJE3K3jMKMTCi3o.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
  99. package/browser/esm/DHPHhaCxihdR9Hl6.mjs +10 -0
  100. package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +47 -0
  101. package/browser/esm/DQLk_UmdpJBt-zZi.mjs +5582 -0
  102. package/browser/esm/DR7oVoNSe0FFWHOr.mjs +48 -0
  103. package/browser/esm/DVRMAeHUj0-TY-vK.mjs +10 -0
  104. package/browser/esm/DXIWAG-DUKHzNlRl.mjs +12 -0
  105. package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
  106. package/browser/esm/Dft4BSeY0bp0A6z0.mjs +10 -0
  107. package/browser/esm/DgO85Q5iHe-ZmvtQ.mjs +633 -0
  108. package/browser/esm/DwRHGEuscm3FvnkM.mjs +1665 -0
  109. package/browser/esm/HyTvrvH0vItPFnFG.mjs +472 -0
  110. package/{cdn/assets/DgLPO_EQ9DYoGgec.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +174 -172
  111. package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
  112. package/browser/esm/aLv-xujBO4X6ilhV.mjs +10 -0
  113. package/{cdn/assets/DJQOS9qxVAlpgDMt.js → browser/esm/c9fba0RuWGogsH0X.mjs} +21 -23
  114. package/browser/esm/index.mjs +6 -2
  115. package/browser/esm/jkSJc6Omxbf-rPQY.mjs +10 -0
  116. package/browser/esm/uuCmCmYQQXgwyRSd.mjs +10 -0
  117. package/browser/esm/w3TGaFTjdsc4XTcz.mjs +1466 -0
  118. package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
  119. package/browser/esm/wxvli1IH1NkfqE6-.mjs +10 -0
  120. package/cdn/assets/0fI22OQK5IczUH6s.js +29 -0
  121. package/cdn/assets/4eRu4yzXkvCBip8J.js +10 -0
  122. package/cdn/assets/5HYy7pIZxQRDUQl-.js +50 -0
  123. package/cdn/assets/6oc_f4xkoSmftsRd.js +22 -0
  124. package/cdn/assets/73gcCsbqgbW3KIoA.js +1346 -0
  125. package/cdn/assets/B3TPDOzYf_VRBIr6.js +2177 -0
  126. package/cdn/assets/B4HW_cy7gbE01jar.js +390 -0
  127. package/cdn/assets/B4ji-HZTY0uvH8r7.js +10 -0
  128. package/cdn/assets/B7Ky6m4VWP8vxhPt.js +1702 -0
  129. package/cdn/assets/B8TNpfJ8ymQcPriE.js +24 -0
  130. package/cdn/assets/BEfetwH6zTr6B51I.js +3755 -0
  131. package/cdn/assets/BF5nlSYZ38RJ0dPX.js +10 -0
  132. package/cdn/assets/BHy77Km4i4t5U7ka.js +10 -0
  133. package/cdn/assets/BIUVt79NHXdZx2Dz.js +10 -0
  134. package/cdn/assets/BPen6C7JE2sWVgdi.js +10 -0
  135. package/cdn/assets/BS1p7DgoyO-WkvB8.js +41 -0
  136. package/cdn/assets/BZxAttR2mi9td3k1.js +10 -0
  137. package/cdn/assets/B_pEA9HeXKvEOCdS.js +10 -0
  138. package/cdn/assets/BdFNxdtES-3_yQ9R.js +421 -0
  139. package/cdn/assets/BfFDvyaRcdKS0wPD.js +10 -0
  140. package/cdn/assets/{phYz0vGgqIEQ2hco.js → BiKaXKU3o287mgkN.js} +1 -1
  141. package/cdn/assets/BvYUsRgBXLSuaQ-S.js +10 -0
  142. package/cdn/assets/BzE-61bmpRQzEVPt.js +10 -0
  143. package/cdn/assets/C0yI-QYraFhnJUdD.js +49 -0
  144. package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
  145. package/cdn/assets/{qA23x9VVBL9R4qxN.js → C3FTuqvfGalOVHql.js} +9 -9
  146. package/cdn/assets/{BSAH88RG1oubICau.js → C3W0xsNrt-Was9g-.js} +26 -26
  147. package/cdn/assets/C8rQWD8C7ccUHNZL.js +3934 -0
  148. package/cdn/assets/CITPwlsNzJvv551I.js +10 -0
  149. package/cdn/assets/CN73n4VDayKh_l1J.js +10 -0
  150. package/cdn/assets/CWkF-50YF43t7qge.js +472 -0
  151. package/cdn/assets/{Bv0Xb6DdcQbPYJKo.js → CaKPs_ILqLIWfUUN.js} +10 -11
  152. package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
  153. package/cdn/assets/Cdx6LrqtHZKbwl63.js +425 -0
  154. package/cdn/assets/ChB-XZno7w9v221u.js +1575 -0
  155. package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
  156. package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
  157. package/cdn/assets/{dk2teWHDODYNarJY.js → CrBywNOOyPHSBoTT.js} +4 -4
  158. package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
  159. package/cdn/assets/DBpku3D2DSTmW4II.js +820 -0
  160. package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
  161. package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
  162. package/cdn/assets/DMWARnjq06oQnfrL.js +58 -0
  163. package/cdn/assets/{BoOefjrM4kZ-YXxa.js → DRa6yXWuTlAjuaKT.js} +2 -2
  164. package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
  165. package/cdn/assets/DXIWAG-DUKHzNlRl.js +12 -0
  166. package/cdn/assets/{B3kbBB6oxKBErwzn.js → DYowHOSLHcADsXuK.js} +3 -3
  167. package/cdn/assets/{DkS6quwH1okWaho6.js → DZNoPrlxULASVlOi.js} +14 -14
  168. package/cdn/assets/{BB66NDz7S3ocEfRB.js → DaUJajqmQYuM0Gew.js} +51 -51
  169. package/cdn/assets/DcdQwhlGoI1knRUy.js +46 -0
  170. package/cdn/assets/Dft4BSeY0bp0A6z0.js +10 -0
  171. package/cdn/assets/DgO85Q5iHe-ZmvtQ.js +633 -0
  172. package/cdn/assets/{DDW1WJ2IM_9ZUfKm.js → Dm0hrXCbV7DITOhi.js} +2 -2
  173. package/cdn/assets/DnWjhq4ZlgIuFcii.js +21 -0
  174. package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
  175. package/cdn/assets/{BT5EcMEFBsphczwC.js → DzyNujjbHLXo9UmH.js} +565 -568
  176. package/cdn/assets/EYTSqAG9YOdb1vKx.js +48823 -0
  177. package/cdn/assets/{D_5RgqgwXsoqLJDR.js → Ux2jUY_EwSsYBCov.js} +1 -1
  178. package/cdn/assets/{DfmaL8DmDaFAv8M_.js → XoKiuP2ZFq0cNGkH.js} +4 -4
  179. package/cdn/assets/Zi3E5Kzxw2FPtLVL.js +5582 -0
  180. package/cdn/assets/aLv-xujBO4X6ilhV.js +10 -0
  181. package/cdn/assets/jkSJc6Omxbf-rPQY.js +10 -0
  182. package/cdn/assets/uuCmCmYQQXgwyRSd.js +10 -0
  183. package/cdn/assets/wV8riZWKJE7AoKQk.js +1365 -0
  184. package/cdn/assets/wxvli1IH1NkfqE6-.js +10 -0
  185. package/cdn/index.js +2 -2
  186. package/cdn/loader.js +1 -1
  187. package/package.json +3 -5
  188. package/types/index.d.ts +1 -0
  189. package/browser/cjs/B35OZ0mE8aINQPP9.cjs +0 -7
  190. package/browser/cjs/BPzEQNENF-gEBkg9.cjs +0 -7
  191. package/browser/cjs/BUokV6yuzE-_8MyK.cjs +0 -7
  192. package/browser/cjs/BeZHmOKfa37mFNAu.cjs +0 -7
  193. package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +0 -7
  194. package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +0 -7
  195. package/browser/cjs/C3OizZPVuxO2fjSG.cjs +0 -7
  196. package/browser/cjs/CBL6KkiWI2RPflEN.cjs +0 -7
  197. package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +0 -7
  198. package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +0 -7
  199. package/browser/cjs/CU30GVjjFXl44vEU.cjs +0 -7
  200. package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +0 -7
  201. package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +0 -7
  202. package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +0 -7
  203. package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +0 -7
  204. package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +0 -7
  205. package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +0 -107
  206. package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +0 -7
  207. package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +0 -7
  208. package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +0 -7
  209. package/browser/cjs/L1iE_VcelYZIy0wI.cjs +0 -7
  210. package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +0 -7
  211. package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +0 -7
  212. package/browser/cjs/hwDUzorB6aCvH1eL.cjs +0 -7
  213. package/browser/cjs/no5c2H18QD2qmOH6.cjs +0 -7
  214. package/browser/esm/B4Mm5gczpI_k2zzN.mjs +0 -7
  215. package/browser/esm/B8ISUdOxsJMYWzNN.mjs +0 -7
  216. package/browser/esm/BnJiF38TGudjoHzT.mjs +0 -7
  217. package/browser/esm/Bts4nCgfCAUpTfxz.mjs +0 -7
  218. package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +0 -107
  219. package/browser/esm/C4jlaVv8bELgiHyE.mjs +0 -7
  220. package/browser/esm/CYIhGb86r-kKOrP5.mjs +0 -7
  221. package/browser/esm/CcpskguvlvemArQn.mjs +0 -7
  222. package/browser/esm/CeRfALx1iU5fqOUg.mjs +0 -7
  223. package/browser/esm/CfYWmP_Hots5f0f6.mjs +0 -7
  224. package/browser/esm/CkarbqNx_lhlBnw7.mjs +0 -7
  225. package/browser/esm/D2PlWNQjrTgf6GuR.mjs +0 -7
  226. package/browser/esm/D3KNxvnrwR6_fTJE.mjs +0 -7
  227. package/browser/esm/DIJyH94oCzUnlcNZ.mjs +0 -7
  228. package/browser/esm/DVAG1NxFe3cMjLE1.mjs +0 -7
  229. package/browser/esm/DVqga7g7j0FUiM6p.mjs +0 -7
  230. package/browser/esm/DcX8yGEBX6qi9RCe.mjs +0 -7
  231. package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +0 -7
  232. package/browser/esm/DzgM_rkwyIHsCb6I.mjs +0 -7
  233. package/browser/esm/M4hZ25330e96seUM.mjs +0 -7
  234. package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +0 -7
  235. package/browser/esm/SAyRTPVprOHZ8Up8.mjs +0 -7
  236. package/browser/esm/_ft7JYO6QdDbIu3d.mjs +0 -7
  237. package/browser/esm/dpdy0BU4GGI5lZrX.mjs +0 -7
  238. package/browser/esm/oLCocGFRAwsVsOSE.mjs +0 -7
  239. package/cdn/assets/7_O6nILzn1fSVvkO.js +0 -13449
  240. package/cdn/assets/BCK7yhx9JfzU2rF0.js +0 -22
  241. package/cdn/assets/BcWoqhD_sX85c7Mh.js +0 -1701
  242. package/cdn/assets/BtweFYnoj_aEfydW.js +0 -1371
  243. package/cdn/assets/CC-S4NMYhLg3WgqO.js +0 -3875
  244. package/cdn/assets/CJhyHcQcrhbtC33r.js +0 -50
  245. package/cdn/assets/CUc6gRjjRGTFWSHD.js +0 -50
  246. package/cdn/assets/CpPLN0-hDsTIFHZV.js +0 -46
  247. package/cdn/assets/Cq94woVmlxhjWVRI.js +0 -21
  248. package/cdn/assets/CsjftXmSYQRHNKdq.js +0 -41
  249. package/cdn/assets/DBL4jY0AVc53RGNm.js +0 -637
  250. package/cdn/assets/DxMu6URURFWj9aXM.js +0 -2373
  251. package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +0 -26490
  252. package/cdn/assets/MRBi3juXAW0lA_mj.js +0 -1358
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DJbKKxeeTEHHA1gR.cjs"),t=e.reactExports.createContext(),o=e.reactExports.createContext();function r(t){return e.generateUtilityClass("MuiTableCell",t)}const n=e.generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),i=e.styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,o[r.variant],o[`size${e.capitalize(r.size)}`],"normal"!==r.padding&&o[`padding${e.capitalize(r.padding)}`],"inherit"!==r.align&&o[`align${e.capitalize(r.align)}`],r.stickyHeader&&o.stickyHeader]}})(e.memoTheme(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n ${"light"===t.palette.mode?e.lighten(e.alpha(t.palette.divider,1),.88):e.darken(e.alpha(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${n.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),l=e.reactExports.forwardRef(function(n,l){const s=e.useDefaultProps({props:n,name:"MuiTableCell"}),{align:a="inherit",className:c,component:d,padding:u,scope:h,size:f,sortDirection:p,variant:m,...g}=s,v=e.reactExports.useContext(t),_=e.reactExports.useContext(o),S=_&&"head"===_.variant;let y;y=d||(S?"th":"td");let x=h;"td"===y?x=void 0:!x&&S&&(x="col");const w=m||_&&_.variant,C={...s,align:a,component:y,padding:u||(v&&v.padding?v.padding:"normal"),size:f||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:"head"===w&&v&&v.stickyHeader,variant:w},R=(t=>{const{classes:o,variant:n,align:i,padding:l,size:s,stickyHeader:a}=t,c={root:["root",n,a&&"stickyHeader","inherit"!==i&&`align${e.capitalize(i)}`,"normal"!==l&&`padding${e.capitalize(l)}`,`size${e.capitalize(s)}`]};return e.composeClasses(c,r,o)})(C);let b=null;return p&&(b="asc"===p?"ascending":"descending"),e.jsxRuntimeExports.jsx(i,{as:y,ref:l,className:e.clsx(R.root,c),"aria-sort":b,scope:x,ownerState:C,...g})}),s=e.Zv();function a(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function c(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function d(e){return e?(t,o)=>o[e]:null}function u(t,o,r){const n="function"==typeof o?o(t):o;if(Array.isArray(n))return n.flatMap(e=>u(t,e,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?c(n.style,r):n.style;else{const{variants:t,...i}=n;o=r?c(e.internal_serializeStyles(i),r):i}return h(t,n.variants,[o],r)}return n?.isProcessed?r?c(e.internal_serializeStyles(n.style),r):n.style:r?c(e.internal_serializeStyles(n),r):n}function h(t,o,r=[],n=void 0){let i;e:for(let l=0;l<o.length;l+=1){const s=o[l];if("function"==typeof s.props){if(i??={...t,...t.ownerState,ownerState:t.ownerState},!s.props(i))continue}else for(const e in s.props)if(t[e]!==s.props[e]&&t.ownerState?.[e]!==s.props[e])continue e;"function"==typeof s.style?(i??={...t,...t.ownerState,ownerState:t.ownerState},r.push(n?c(e.internal_serializeStyles(s.style(i)),n):s.style(i))):r.push(n?c(e.internal_serializeStyles(s.style),n):s.style)}return r}function f(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const p=function(t={}){const{themeId:o,defaultTheme:r=s,rootShouldForwardProp:n=a,slotShouldForwardProp:i=a}=t;function l(e){!function(e,t,o){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?o:e.theme[t]||e.theme}(e,o,r)}return(t,o={})=>{e.internal_mutateStyles(t,t=>t.filter(t=>t!==e.Uv));const{name:r,slot:s,skipVariantsResolver:p,skipSx:m,overridesResolver:g=d(f(s)),...v}=o,_=r&&r.startsWith("Mui")||s?"components":"custom",S=void 0!==p?p:s&&"Root"!==s&&"root"!==s||!1,y=m||!1;let x=a;"Root"===s||"root"===s?x=n:s?x=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(t)&&(x=void 0);const w=e.styled$1(t,{shouldForwardProp:x,label:void 0,...v}),C=t=>{if(t.__emotion_real===t)return t;if("function"==typeof t)return function(e){return u(e,t,e.theme.modularCssLayers?_:void 0)};if(e.zb(t)){const o=function(t){const{variants:o,...r}=t,n={variants:o,style:e.internal_serializeStyles(r),isProcessed:!0};return n.style===r||o&&o.forEach(t=>{"function"!=typeof t.style&&(t.style=e.internal_serializeStyles(t.style))}),n}(t);return function(e){return o.variants?u(e,o,e.theme.modularCssLayers?_:void 0):e.theme.modularCssLayers?c(o.style,_):o.style}}return t},R=(...o)=>{const n=[],i=o.map(C),s=[];if(n.push(l),r&&g&&s.push(function(e){const t=e.theme,o=t.components?.[r]?.styleOverrides;if(!o)return null;const n={};for(const t in o)n[t]=u(e,o[t],e.theme.modularCssLayers?"theme":void 0);return g(e,n)}),r&&!S&&s.push(function(e){const t=e.theme,o=t?.components?.[r]?.variants;return o?h(e,o,[],e.theme.modularCssLayers?"theme":void 0):null}),y||s.push(e.Uv),Array.isArray(i[0])){const e=i.shift(),t=new Array(n.length).fill(""),o=new Array(s.length).fill("");let r;r=[...t,...e,...o],r.raw=[...t,...e.raw,...o],n.unshift(r)}const a=[...n,...i,...s],c=w(...a);return t.muiName&&(c.muiName=t.muiName),c};return w.withConfig&&(R.withConfig=w.withConfig),R}}({themeId:e.Eb,defaultTheme:e._x,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e){var t=function(e){if("object"!=g(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(t)?t:t+""}function _(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function S(e,t,o){return t&&_(e.prototype,t),o&&_(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function w(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e.DI(t,o)}function C(e,t,o){return(t=v(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function R(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function b(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function z(e,t){try{var o=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,r)}finally{this.props=o,this.state=r}}function T(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,r=null,n=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?n="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(n="UNSAFE_componentWillUpdate"),null!==o||null!==r||null!==n){var i=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=R,t.componentWillReceiveProps=b),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=z;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;s.call(this,e,t,r)}}return e}function I(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function P(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?I(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):I(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}R.__suppressDeprecationWarning=!0,b.__suppressDeprecationWarning=!0,z.__suppressDeprecationWarning=!0;var O=function(){function t(){var e,o,r,n;m(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,r=t,n=[].concat(l),r=x(r),C(e=y(o,k()?Reflect.construct(r,n||[],x(o).constructor):r.apply(o,n)),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),C(e,"_columnStartIndex",0),C(e,"_columnStopIndex",0),C(e,"_rowStartIndex",0),C(e,"_rowStopIndex",0),C(e,"_onKeyDown",function(t){var o=e.props,r=o.columnCount,n=o.disabled,i=o.mode,l=o.rowCount;if(!n){var s=e._getScrollState(),a=s.scrollToColumn,c=s.scrollToRow,d=e._getScrollState(),u=d.scrollToColumn,h=d.scrollToRow;switch(t.key){case"ArrowDown":h="cells"===i?Math.min(h+1,l-1):Math.min(e._rowStopIndex+1,l-1);break;case"ArrowLeft":u="cells"===i?Math.max(u-1,0):Math.max(e._columnStartIndex-1,0);break;case"ArrowRight":u="cells"===i?Math.min(u+1,r-1):Math.min(e._columnStopIndex+1,r-1);break;case"ArrowUp":h="cells"===i?Math.max(h-1,0):Math.max(e._rowStartIndex-1,0)}u===a&&h===c||(t.preventDefault(),e._updateScrollState({scrollToColumn:u,scrollToRow:h}))}}),C(e,"_onSectionRendered",function(t){var o=t.columnStartIndex,r=t.columnStopIndex,n=t.rowStartIndex,i=t.rowStopIndex;e._columnStartIndex=o,e._columnStopIndex=r,e._rowStartIndex=n,e._rowStopIndex=i}),e}return w(t,e.reactExports.PureComponent),S(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var t=this.props,o=t.className,r=t.children,n=this._getScrollState(),i=n.scrollToColumn,l=n.scrollToRow;return e.reactExports.createElement("div",{className:o,onKeyDown:this._onKeyDown},r({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:l}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,r=this.props,n=r.isControlled,i=r.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),n||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?P(P({},t),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])}();function M(e,t){var o,r=void 0!==(o=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:global).document&&o.document.attachEvent;if(!r){var n=function(){var e=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(e){return o.setTimeout(e,20)};return function(t){return e(t)}}(),i=function(){var e=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||o.clearTimeout;return function(t){return e(t)}}(),l=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,r=t.lastElementChild,n=o.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,n.style.width=o.offsetWidth+1+"px",n.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&i(this.__resizeRAF__),this.__resizeRAF__=n(function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(o){o.call(t,e)}))})}},a=!1,c="",d="animationstart",u="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=o.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(a=!0),!1===a)for(var p=0;p<u.length;p++)if(void 0!==f.style[u[p]+"AnimationName"]){c="-"+u[p].toLowerCase()+"-",d=h[p],a=!0;break}var m="resizeanim",g="@"+c+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",v=c+"animation: 1ms "+m+"; "}return{addResizeListener:function(t,n){if(r)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,a=o.getComputedStyle(t);a&&"static"==a.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(g||"")+".resize-triggers { "+(v||"")+'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%; }',r=t.head||t.getElementsByTagName("head")[0],n=t.createElement("style");n.id="detectElementResize",n.type="text/css",null!=e&&n.setAttribute("nonce",e),n.styleSheet?n.styleSheet.cssText=o:n.appendChild(t.createTextNode(o)),r.appendChild(n)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c=i.createElement("div");c.className="expand-trigger",c.appendChild(i.createElement("div"));var u=i.createElement("div");u.className="contract-trigger",t.__resizeTriggers__.appendChild(c),t.__resizeTriggers__.appendChild(u),t.appendChild(t.__resizeTriggers__),l(t),t.addEventListener("scroll",s,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&l(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function E(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function L(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?E(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(G=function(){return!!e})()}C(O,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),T(O);var A=function(){function t(){var e,o,r,n;m(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,r=t,n=[].concat(l),r=x(r),C(e=y(o,G()?Reflect.construct(r,n||[],x(o).constructor):r.apply(o,n)),"state",{height:e.props.defaultHeight||0,width:e.props.defaultWidth||0}),C(e,"_parentNode",void 0),C(e,"_autoSizer",void 0),C(e,"_window",void 0),C(e,"_detectElementResize",void 0),C(e,"_onResize",function(){var t=e.props,o=t.disableHeight,r=t.disableWidth,n=t.onResize;if(e._parentNode){var i=e._parentNode.offsetHeight||0,l=e._parentNode.offsetWidth||0,s=(e._window||window).getComputedStyle(e._parentNode)||{},a=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,d=parseInt(s.paddingTop,10)||0,u=parseInt(s.paddingBottom,10)||0,h=i-d-u,f=l-a-c;(!o&&e.state.height!==h||!r&&e.state.width!==f)&&(e.setState({height:i-d-u,width:l-a-c}),n({height:i,width:l}))}}),C(e,"_setRef",function(t){e._autoSizer=t}),e}return w(t,e.reactExports.Component),S(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;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=M(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var t=this.props,o=t.children,r=t.className,n=t.disableHeight,i=t.disableWidth,l=t.style,s=this.state,a=s.height,c=s.width,d={overflow:"visible"},u={};return n||(d.height=0,u.height=a),i||(d.width=0,u.width=c),e.reactExports.createElement("div",{className:r,ref:this._setRef,style:L(L({},d),l)},o(u))}}])}();function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}C(A,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var H=function(){function t(){var o,r,n,i;m(this,t);for(var l=arguments.length,s=new Array(l),a=0;a<l;a++)s[a]=arguments[a];return r=this,n=t,i=[].concat(s),n=x(n),C(o=y(r,j()?Reflect.construct(n,i||[],x(r).constructor):n.apply(r,i)),"_child",e.reactExports.createRef()),C(o,"_measure",function(){var e=o.props,t=e.cache,r=e.columnIndex,n=void 0===r?0:r,i=e.parent,l=e.rowIndex,s=void 0===l?o.props.index||0:l,a=o._getCellMeasurements(),c=a.height,d=a.width;c===t.getHeight(s,n)&&d===t.getWidth(s,n)||(t.set(s,n,d,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:n,rowIndex:s}))}),C(o,"_registerChild",function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),o._child.current=e,e&&o._maybeMeasureCell()}),o}return w(t,e.reactExports.PureComponent),S(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var t=this,o=this.props.children,r="function"==typeof o?o({measure:this._measure,registerChild:this._registerChild}):o;return null===r?r:e.reactExports.cloneElement(r,{ref:function(e){"function"==typeof r.ref?r.ref(e):r.ref&&(r.ref.current=e),t._child.current=e}})}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child.current;if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var n=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),r&&(t.style.height=r),{height:n,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,n=e.parent,i=e.rowIndex,l=void 0===i?this.props.index||0:i;if(!t.has(l,r)){var s=this._getCellMeasurements(),a=s.height,c=s.width;t.set(l,r,c,a),n&&"function"==typeof n.invalidateCellSizeAfterRender&&n.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:l})}}}])}();function W(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var r=o.callback,n=o.indices,i=Object.keys(n),l=!e||i.every(function(e){var t=n[e];return Array.isArray(t)?t.length>0:t>=0}),s=i.length!==Object.keys(t).length||i.some(function(e){var o=t[e],r=n[e];return Array.isArray(r)?o.join(",")!==r.join(","):o!==r});t=n,l&&s&&r(n)}}C(H,"__internalCellMeasurerFlag",!1);const D=!("undefined"==typeof window||!window.document||!window.document.createElement);var F;function N(e){if((!F&&0!==F||e)&&D){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),F=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return F}function B(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function U(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?B(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(V=function(){return!!e})()}var $="requested",q=function(){function t(){var e,o,r,n;m(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,r=t,n=[].concat(l),r=x(r),C(e=y(o,V()?Reflect.construct(r,n||[],x(o).constructor):r.apply(o,n)),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),C(e,"_calculateSizeAndPositionDataOnNextUpdate",!1),C(e,"_onSectionRenderedMemoizer",W()),C(e,"_onScrollMemoizer",W(!1)),C(e,"_invokeOnSectionRenderedHelper",function(){var t=e.props,o=t.cellLayoutManager,r=t.onSectionRendered;e._onSectionRenderedMemoizer({callback:r,indices:{indices:o.getLastRenderedIndices()}})}),C(e,"_setScrollingContainerRef",function(t){e._scrollingContainer=t}),C(e,"_updateScrollPositionForScrollToCell",function(){var t=e.props,o=t.cellLayoutManager,r=t.height,n=t.scrollToAlignment,i=t.scrollToCell,l=t.width,s=e.state,a=s.scrollLeft,c=s.scrollTop;if(i>=0){var d=o.getScrollPositionForCell({align:n,cellIndex:i,height:r,scrollLeft:a,scrollTop:c,width:l});d.scrollLeft===a&&d.scrollTop===c||e._setScrollPosition(d)}}),C(e,"_onScroll",function(t){if(t.target===e._scrollingContainer){e._enablePointerEventsAfterDelay();var o=e.props,r=o.cellLayoutManager,n=o.height,i=o.isScrollingChange,l=o.width,s=e._scrollbarSize,a=r.getTotalSize(),c=a.height,d=a.width,u=Math.max(0,Math.min(d-l+s,t.target.scrollLeft)),h=Math.max(0,Math.min(c-n+s,t.target.scrollTop));if(e.state.scrollLeft!==u||e.state.scrollTop!==h){var f=t.cancelable?"observed":$;e.state.isScrolling||i(!0),e.setState({isScrolling:!0,scrollLeft:u,scrollPositionChangeReason:f,scrollTop:h})}e._invokeOnScrollMemoizer({scrollLeft:u,scrollTop:h,totalWidth:d,totalHeight:c})}}),e._scrollbarSize=N(),void 0===e._scrollbarSize?(e._scrollbarSizeMeasured=!1,e._scrollbarSize=0):e._scrollbarSizeMeasured=!0,e}return w(t,e.reactExports.PureComponent),S(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,r=e.scrollToCell,n=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=N(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(o>=0||n>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:n}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),l=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:n||0,totalHeight:l,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,r=o.height,n=o.scrollToAlignment,i=o.scrollToCell,l=o.width,s=this.state,a=s.scrollLeft,c=s.scrollPositionChangeReason,d=s.scrollTop;c===$&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),d>=0&&d!==t.scrollTop&&d!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=d)),r===e.height&&n===e.scrollToAlignment&&i===e.scrollToCell&&l===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var t=this.props,o=t.autoHeight,r=t.cellCount,n=t.cellLayoutManager,i=t.className,l=t.height,s=t.horizontalOverscanSize,a=t.id,c=t.noContentRenderer,d=t.style,u=t.verticalOverscanSize,h=t.width,f=this.state,p=f.isScrolling,m=f.scrollLeft,g=f.scrollTop;(this._lastRenderedCellCount!==r||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=r,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),_=v.height,S=v.width,y=Math.max(0,m-s),x=Math.max(0,g-u),w=Math.min(S,m+h+s),C=Math.min(_,g+l+u),R=l>0&&h>0?n.cellRenderers({height:C-x,isScrolling:p,width:w-y,x:y,y:x}):[],b={boxSizing:"border-box",direction:"ltr",height:o?"auto":l,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},z=_>l?this._scrollbarSize:0,T=S>h?this._scrollbarSize:0;return b.overflowX=S+z<=h?"hidden":"auto",b.overflowY=_+T<=l?"hidden":"auto",e.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:e.fP("ReactVirtualized__Collection",i),id:a,onScroll:this._onScroll,role:"grid",style:U(U({},b),d),tabIndex:0},r>0&&e.reactExports.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:S,overflow:"hidden",pointerEvents:p?"none":"",width:S}},R),0===r&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})},150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,n=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:n,scrollLeft:o,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:$};t>=0&&(r.scrollLeft=t),o>=0&&(r.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:$}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:$}}}])}();C(q,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),q.propTypes={},T(q);var K=S(function e(t){var o=t.height,r=t.width,n=t.x,i=t.y;m(this,e),this.height=o,this.width=r,this.x=n,this.y=i,this._indexMap={},this._indices=[]},[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),X=S(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;m(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}},[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,r=e.x,n=e.y,i={};return this.getSections({height:t,width:o,x:r,y:n}).forEach(function(e){return e.getCellIndices().forEach(function(e){i[e]=e})}),Object.keys(i).map(function(e){return i[e]})}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,r=e.x,n=e.y,i=Math.floor(r/this._sectionSize),l=Math.floor((r+o-1)/this._sectionSize),s=Math.floor(n/this._sectionSize),a=Math.floor((n+t-1)/this._sectionSize),c=[],d=i;d<=l;d++)for(var u=s;u<=a;u++){var h="".concat(d,".").concat(u);this._sections[h]||(this._sections[h]=new K({height:this._sectionSize,width:this._sectionSize,x:d*this._sectionSize,y:u*this._sectionSize})),c.push(this._sections[h])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map(function(t){return e._sections[t].toString()})}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach(function(e){return e.addCellIndex({index:o})})}}]);function Y(e){var t=e.align,o=void 0===t?"auto":t,r=e.cellOffset,n=e.cellSize,i=e.containerSize,l=e.currentOffset,s=r,a=s-i+n;switch(o){case"start":return s;case"end":return a;case"center":return s-(i-n)/2;default:return Math.max(a,Math.min(s,l))}}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}var Z=function(){function t(e,o){var r,n,i,l;return m(this,t),n=this,l=[e,o],i=x(i=t),(r=y(n,J()?Reflect.construct(i,l||[],x(n).constructor):i.apply(n,l)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(r),r._setCollectionViewRef=r._setCollectionViewRef.bind(r),r}return w(t,e.reactExports.PureComponent),S(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var t=e.TI({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(this.props),this.props));return e.reactExports.createElement(q,e.TI({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},t))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,r=[],n=new X(e.sectionSize),i=0,l=0,s=0;s<t;s++){var a=o({index:s});if(null==a.height||isNaN(a.height)||null==a.width||isNaN(a.width)||null==a.x||isNaN(a.x)||null==a.y||isNaN(a.y))throw Error("Invalid metadata returned for cell ".concat(s,":\n x:").concat(a.x,", y:").concat(a.y,", width:").concat(a.width,", height:").concat(a.height));i=Math.max(i,a.y+a.height),l=Math.max(l,a.x+a.width),r[s]=a,n.registerCell({cellMetadatum:a,index:s})}return{cellMetadata:r,height:i,sectionManager:n,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,r=e.height,n=e.scrollLeft,i=e.scrollTop,l=e.width,s=this.props.cellCount;if(o>=0&&o<s){var a=this._cellMetadata[o];n=Y({align:t,cellOffset:a.x,cellSize:a.width,containerSize:l,currentOffset:n}),i=Y({align:t,cellOffset:a.y,cellSize:a.height,containerSize:r,currentOffset:i})}return{scrollLeft:n,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,r=e.isScrolling,n=e.width,i=e.x,l=e.y,s=this.props,a=s.cellGroupRenderer,c=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:n,x:i,y:l}),a({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}();function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Q=function(){return!!e})()}function ee(e){var t=e.cellCount,o=e.cellSize,r=e.computeMetadataCallback,n=e.computeMetadataCallbackProps,i=e.nextCellsCount,l=e.nextCellSize,s=e.nextScrollToIndex,a=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof l||o===l)||(r(n),a>=0&&a===s&&c())}function te(t,o){if(null==t)return{};var r,n,i=e.MI(t,o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n<l.length;n++)r=l[n],-1===o.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}C(Z,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,r=e.cellSizeAndPositionGetter,n=e.indices,i=e.isScrolling;return n.map(function(e){var n=r({index:e}),l={index:e,isScrolling:i,key:e,style:{height:n.height,left:n.x,position:"absolute",top:n.y,width:n.width}};return i?(e in t||(t[e]=o(l)),t[e]):o(l)}).filter(function(e){return!!e})}}),Z.propTypes={},(function(){function t(e,o){var r,n,i,l;return m(this,t),n=this,l=[e,o],i=x(i=t),(r=y(n,Q()?Reflect.construct(i,l||[],x(n).constructor):i.apply(n,l)))._registerChild=r._registerChild.bind(r),r}return w(t,e.reactExports.PureComponent),S(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,r=t.columnMinWidth,n=t.columnCount,i=t.width;o===e.columnMaxWidth&&r===e.columnMinWidth&&n===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,r=e.columnMinWidth,n=e.columnCount,i=e.width,l=r||1,s=o?Math.min(o,i):i,a=i/n;return a=Math.max(l,a),a=Math.min(s,a),a=Math.floor(a),t({adjustedWidth:Math.min(i,a*n),columnWidth:a,getColumnWidth:function(){return a},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])}()).propTypes={};var oe,re=S(function e(t){var o=t.cellCount,r=t.cellSizeGetter,n=t.estimatedCellSize;m(this,e),C(this,"_cellSizeAndPositionData",{}),C(this,"_lastMeasuredIndex",-1),C(this,"_lastBatchedIndex",-1),C(this,"_cellCount",void 0),C(this,"_cellSizeGetter",void 0),C(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=o,this._estimatedCellSize=n},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var n=this._cellSizeGetter({index:r});if(void 0===n||isNaN(n))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(n));null===n?(this._cellSizeAndPositionData[r]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:o,size:n},o+=n,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,r=e.containerSize,n=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var l,s=this.getSizeAndPositionOfCell(i),a=s.offset,c=a-r+s.size;switch(o){case"start":l=a;break;case"end":l=c;break;case"center":l=a-(r-s.size)/2;break;default:l=Math.max(c,Math.min(a,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-r,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var r=o+t,n=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(n);o=i.offset+i.size;for(var l=n;o<r&&l<this._cellCount-1;)l++,o+=this.getSizeAndPositionOfCell(l).size;return{start:n,stop:l}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var r=t+Math.floor((e-t)/2),n=this.getSizeAndPositionOfCell(r).offset;if(n===o)return r;n<o?t=r+1:n>o&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),ne=["maxScrollSize"],ie=S(function e(t){var o=t.maxScrollSize,r=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,n=te(t,ne);m(this,e),C(this,"_cellSizeAndPositionManager",void 0),C(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new re(n),this._maxScrollSize=r},[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(n-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,r=e.containerSize,n=e.currentOffset,i=e.targetIndex;n=this._safeOffsetToOffset({containerSize:r,offset:n});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:r,currentOffset:n,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,r=e.totalSize;return r<=t?0:o/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}}]);function le(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,r=e.previousCellsCount,n=e.previousCellSize,i=e.previousScrollToAlignment,l=e.previousScrollToIndex,s=e.previousSize,a=e.scrollOffset,c=e.scrollToAlignment,d=e.scrollToIndex,u=e.size,h=e.sizeJustIncreasedFromZero,f=e.updateScrollIndexCallback,p=o.getCellCount(),m=d>=0&&d<p;m&&(u!==s||h||!n||"number"==typeof t&&t!==n||c!==i||d!==l)?f(d):!m&&p>0&&(u<s||p<r)&&a>o.getTotalSize()-u&&f(p-1)}var se=(oe="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||oe.webkitRequestAnimationFrame||oe.mozRequestAnimationFrame||oe.oRequestAnimationFrame||oe.msRequestAnimationFrame||function(e){return oe.setTimeout(e,1e3/60)},ae=oe.cancelAnimationFrame||oe.webkitCancelAnimationFrame||oe.mozCancelAnimationFrame||oe.oCancelAnimationFrame||oe.msCancelAnimationFrame||function(e){oe.clearTimeout(e)},ce=se,de=ae,ue=function(e){return de(e.id)},he=function(e,t){var o;Promise.resolve().then(function(){o=Date.now()});var r=function(){Date.now()-o>=t?e.call():n.id=ce(r)},n={id:ce(r)};return n};function fe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function pe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):fe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(me=function(){return!!e})()}var ge="requested",ve=function(){function t(e){var o,r,n,i;m(this,t),r=this,i=[e],n=x(n=t),C(o=y(r,me()?Reflect.construct(n,i||[],x(r).constructor):n.apply(r,i)),"_onGridRenderedMemoizer",W()),C(o,"_onScrollMemoizer",W(!1)),C(o,"_deferredInvalidateColumnIndex",null),C(o,"_deferredInvalidateRowIndex",null),C(o,"_recomputeScrollLeftFlag",!1),C(o,"_recomputeScrollTopFlag",!1),C(o,"_horizontalScrollBarSize",0),C(o,"_verticalScrollBarSize",0),C(o,"_scrollbarPresenceChanged",!1),C(o,"_scrollingContainer",void 0),C(o,"_childrenToDisplay",void 0),C(o,"_columnStartIndex",void 0),C(o,"_columnStopIndex",void 0),C(o,"_rowStartIndex",void 0),C(o,"_rowStopIndex",void 0),C(o,"_renderedColumnStartIndex",0),C(o,"_renderedColumnStopIndex",0),C(o,"_renderedRowStartIndex",0),C(o,"_renderedRowStopIndex",0),C(o,"_initialScrollTop",void 0),C(o,"_initialScrollLeft",void 0),C(o,"_disablePointerEventsTimeoutId",void 0),C(o,"_styleCache",{}),C(o,"_cellCache",{}),C(o,"_debounceScrollEndedCallback",function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})}),C(o,"_invokeOnGridRenderedHelper",function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})}),C(o,"_setScrollingContainerRef",function(e){o._scrollingContainer=e,"function"==typeof o.props.elementRef?o.props.elementRef(e):"object"===g(o.props.elementRef)&&(o.props.elementRef.current=e)}),C(o,"_onScroll",function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)});var l=new ie({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),s=new ie({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:l,rowSizeAndPositionManager:s,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,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&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return w(t,e.reactExports.PureComponent),S(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,n=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,l=void 0===i?this.props.scrollToRow:i,s=pe(pe({},this.props),{},{scrollToAlignment:o,scrollToColumn:n,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(s),scrollTop:this._getCalculatedScrollTop(s)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=void 0===t?0:t,r=e.scrollTop,n=void 0===r?0:r;if(!(n<0)){this._debounceScrollEnded();var i=this.props,l=i.autoHeight,s=i.autoWidth,a=i.height,c=i.width,d=this.state.instanceProps,u=d.scrollbarSize,h=d.rowSizeAndPositionManager.getTotalSize(),f=d.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,f-c+u),o),m=Math.min(Math.max(0,h-a+u),n);if(this.state.scrollLeft!==p||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};l||(g.scrollTop=m),s||(g.scrollLeft=p),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:m,totalColumnsWidth:f,totalRowsHeight:h})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,n=void 0===r?0:r,i=this.props,l=i.scrollToColumn,s=i.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(n),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?o<=l:o>=l),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?n<=s:n>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,r=this.props.columnCount,n=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(pe(pe({},n),{},{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(pe(pe({},n),{},{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,r=e.height,n=e.scrollLeft,i=e.scrollToColumn,l=e.scrollTop,s=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState(function(e){var t=pe(pe({},e),{},{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t}),"number"==typeof n&&n>=0||"number"==typeof l&&l>=0){var d=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:l});d&&(d.needToResetStyleCache=!1,this.setState(d))}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));var u=r>0&&a>0;i>=0&&u&&this._updateScrollLeftForScrollToColumn(),s>=0&&u&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,n=r.autoHeight,i=r.autoWidth,l=r.columnCount,s=r.height,a=r.rowCount,c=r.scrollToAlignment,d=r.scrollToColumn,u=r.scrollToRow,h=r.width,f=this.state,p=f.scrollLeft,m=f.scrollPositionChangeReason,g=f.scrollTop,v=f.instanceProps;this._handleInvalidatedGridSize();var _=l>0&&0===e.columnCount||a>0&&0===e.rowCount;m===ge&&(!i&&p>=0&&(p!==this._scrollingContainer.scrollLeft||_)&&(this._scrollingContainer.scrollLeft=p),!n&&g>=0&&(g!==this._scrollingContainer.scrollTop||_)&&(this._scrollingContainer.scrollTop=g));var S=(0===e.width||0===e.height)&&s>0&&h>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):le({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:p,scrollToAlignment:c,scrollToIndex:d,size:h,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):le({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:u,size:s,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),p!==t.scrollLeft||g!==t.scrollTop){var y=v.rowSizeAndPositionManager.getTotalSize(),x=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:x,totalRowsHeight:y})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&ue(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var t=this.props,o=t.autoContainerWidth,r=t.autoHeight,n=t.autoWidth,i=t.className,l=t.containerProps,s=t.containerRole,a=t.containerStyle,c=t.height,d=t.id,u=t.noContentRenderer,h=t.role,f=t.style,p=t.tabIndex,m=t.width,g=this.state,v=g.instanceProps,_=g.needToResetStyleCache,S=this._isScrolling(),y={boxSizing:"border-box",direction:"ltr",height:r?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};_&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var x=v.columnSizeAndPositionManager.getTotalSize(),w=v.rowSizeAndPositionManager.getTotalSize(),C=w>c?v.scrollbarSize:0,R=x>m?v.scrollbarSize:0;R===this._horizontalScrollBarSize&&C===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=C,this._scrollbarPresenceChanged=!0),y.overflowX=x+C<=m?"hidden":"auto",y.overflowY=w+R<=c?"hidden":"auto";var b=this._childrenToDisplay,z=0===b.length&&c>0&&m>0;return e.reactExports.createElement("div",e.TI({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:e.fP("ReactVirtualized__Grid",i),id:d,onScroll:this._onScroll,role:h,style:pe(pe({},y),f),tabIndex:p}),b.length>0&&e.reactExports.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:pe({width:o?"auto":x,height:w,maxWidth:x,maxHeight:w,overflow:"hidden",pointerEvents:S?"none":"",position:"relative"},a)},b),z&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,r=e.cellRangeRenderer,n=e.columnCount,i=e.deferredMeasurementCache,l=e.height,s=e.overscanColumnCount,a=e.overscanIndicesGetter,c=e.overscanRowCount,d=e.rowCount,u=e.width,h=e.isScrollingOptOut,f=t.scrollDirectionHorizontal,p=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,_=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&u>0){var S=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:u,offset:v}),y=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:g}),x=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:u,offset:v}),w=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:g});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=y.start,this._renderedRowStopIndex=y.stop;var C=a({direction:"horizontal",cellCount:n,overscanCellsCount:s,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),R=a({direction:"vertical",cellCount:d,overscanCellsCount:c,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),b=C.overscanStartIndex,z=C.overscanStopIndex,T=R.overscanStartIndex,I=R.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var P=T;P<=I;P++)if(!i.has(P,0)){b=0,z=n-1;break}if(!i.hasFixedWidth())for(var k=b;k<=z;k++)if(!i.has(0,k)){T=0,I=d-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:z,deferredMeasurementCache:i,horizontalOffsetAdjustment:x,isScrolling:_,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:I,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:S,visibleRowIndices:y}),this._columnStartIndex=b,this._columnStopIndex=z,this._rowStartIndex=T,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&ue(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=he(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,r=e.scrollTop,n=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:i,scrollLeft:o,scrollTop:r,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,r=e.scrollTop,n=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:r});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var n=this._columnStartIndex;n<=this._columnStopIndex;n++){var i="".concat(r,"-").concat(n);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,o);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var r={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,i,l=o.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(r.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),ee({cellCount:l.prevColumnCount,cellSize:"number"==typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),ee({cellCount:l.prevRowCount,cellSize:"number"==typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,r.instanceProps=l,pe(pe(pe({},r),n),i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,r=e.scrollTop,n={scrollPositionChangeReason:ge};return"number"==typeof o&&o>=0&&(n.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,n.scrollLeft=o),"number"==typeof r&&r>=0&&(n.scrollDirectionVertical=r>t.scrollTop?1:-1,n.scrollTop=r),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?n:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,r=e.height,n=e.scrollToAlignment,i=e.scrollToColumn,l=e.width,s=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,d=i<0?c:Math.min(c,i),u=a.rowSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>r?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:l-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var r=o.scrollLeft,n=t._getCalculatedScrollLeft(e,o);return"number"==typeof n&&n>=0&&r!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,r=e.rowCount,n=e.scrollToAlignment,i=e.scrollToRow,l=e.width,s=t.scrollTop,a=t.instanceProps;if(r>0){var c=r-1,d=i<0?c:Math.min(c,i),u=a.columnSizeAndPositionManager.getTotalSize(),h=a.scrollbarSizeMeasured&&u>l?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var r=o.scrollTop,n=t._getCalculatedScrollTop(e,o);return"number"==typeof n&&n>=0&&r!==n?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:n}):{}}}])}();function _e(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,n=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),1===r?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,i+1)}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function ye(e,t){if(e){if("string"==typeof e)return Se(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Se(e,t):void 0}}function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xe=function(){return!!e})()}C(ve,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(t){for(var o=t.cellCache,r=t.cellRenderer,n=t.columnSizeAndPositionManager,i=t.columnStartIndex,l=t.columnStopIndex,s=t.deferredMeasurementCache,a=t.horizontalOffsetAdjustment,c=t.isScrolling,d=t.isScrollingOptOut,u=t.parent,h=t.rowSizeAndPositionManager,f=t.rowStartIndex,p=t.rowStopIndex,m=t.styleCache,g=t.verticalOffsetAdjustment,v=t.visibleColumnIndices,_=t.visibleRowIndices,S=[],y=n.areOffsetsAdjusted()||h.areOffsetsAdjusted(),x=!c&&!y,w=f;w<=p;w++)for(var C=h.getSizeAndPositionOfCell(w),R=i;R<=l;R++){var b=n.getSizeAndPositionOfCell(R),z=R>=v.start&&R<=v.stop&&w>=_.start&&w<=_.stop,T="".concat(w,"-").concat(R),I=void 0;x&&m[T]?I=m[T]:s&&!s.has(w,R)?I={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(I={height:C.size,left:b.offset+a,position:"absolute",top:C.offset+g,width:b.size},m[T]=I);var P={columnIndex:R,isScrolling:c,isVisible:z,key:T,parent:u,rowIndex:w,style:I},k=void 0;!d&&!c||a||g?k=r(P):(o[T]||(o[T]=r(P)),k=o[T]),null!=k&&!1!==k&&(k.props.role||(k=e.z.cloneElement(k,{role:"gridcell"})),S.push(k))}return S},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:N,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,n=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,n-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),T(ve);var we=function(){function t(e,o){var r,n,i,l;return m(this,t),n=this,l=[e,o],i=x(i=t),(r=y(n,xe()?Reflect.construct(i,l||[],x(n).constructor):i.apply(n,l)))._loadMoreRowsMemoizer=W(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return w(t,e.reactExports.PureComponent),S(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=W(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach(function(e){var r=o(e);r&&r.then(function(){var o;(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>o.lastRenderedStopIndex||o.stopIndex<o.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,r=this,n=this.props,i=n.isRowLoaded,l=n.minimumBatchSize,s=n.rowCount,a=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,r=e.rowCount,n=e.stopIndex,i=[],l=null,s=null,a=e.startIndex;a<=n;a++)t({index:a})?null!==s&&(i.push({startIndex:l,stopIndex:s}),l=s=null):(s=a,null===l&&(l=a));if(null!==s){for(var c=Math.min(Math.max(s,l+o-1),r-1),d=s+1;d<=c&&!t({index:d});d++)s=d;i.push({startIndex:l,stopIndex:s})}if(i.length)for(var u=i[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var h=u.startIndex-1;if(t({index:h}))break;u.startIndex=h}return i}({isRowLoaded:i,minimumBatchSize:l,rowCount:s,startIndex:Math.max(0,e-a),stopIndex:Math.min(s-1,t+a)}),d=(o=[]).concat.apply(o,function(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(c.map(function(e){return[e.startIndex,e.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}();function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ce=function(){return!!e})()}C(we,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),we.propTypes={};var Re=function(){function t(){var e,o,r,n;m(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,r=t,n=[].concat(l),r=x(r),C(e=y(o,Ce()?Reflect.construct(r,n||[],x(o).constructor):r.apply(o,n)),"Grid",void 0),C(e,"_cellRenderer",function(t){var o=t.parent,r=t.rowIndex,n=t.style,i=t.isScrolling,l=t.isVisible,s=t.key,a=e.props.rowRenderer,c=Object.getOwnPropertyDescriptor(n,"width");return c&&c.writable&&(n.width="100%"),a({index:r,style:n,isScrolling:i,isVisible:l,key:s,parent:o})}),C(e,"_setRef",function(t){e.Grid=t}),C(e,"_onScroll",function(t){var o=t.clientHeight,r=t.scrollHeight,n=t.scrollTop;(0,e.props.onScroll)({clientHeight:o,scrollHeight:r,scrollTop:n})}),C(e,"_onSectionRendered",function(t){var o=t.rowOverscanStartIndex,r=t.rowOverscanStopIndex,n=t.rowStartIndex,i=t.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:o,overscanStopIndex:r,startIndex:n,stopIndex:i})}),e}return w(t,e.reactExports.PureComponent),S(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,n=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var t=this.props,o=t.className,r=t.noRowsRenderer,n=t.scrollToIndex,i=t.width,l=e.fP("ReactVirtualized__List",o);return e.reactExports.createElement(ve,e.TI({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:i,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}])}();C(Re,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:_e,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const be=function(e,t,o,r,n){return"function"==typeof o?function(e,t,o,r,n){for(var i=o+1;t<=o;){var l=t+o>>>1;n(e[l],r)>=0?(i=l,o=l-1):t=l+1}return i}(e,void 0===r?0:0|r,void 0===n?e.length-1:0|n,t,o):function(e,t,o,r){for(var n=o+1;t<=o;){var i=t+o>>>1;e[i]>=r?(n=i,o=i-1):t=i+1}return n}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t)};function ze(e,t,o,r,n){this.mid=e,this.left=t,this.right=o,this.leftPoints=r,this.rightPoints=n,this.count=(t?t.count:0)+(o?o.count:0)+r.length}var Te=ze.prototype;function Ie(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Pe(e,t){var o=He(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function ke(e,t){var o=e.intervals([]);o.push(t),Pe(e,o)}function Oe(e,t){var o=e.intervals([]),r=o.indexOf(t);return r<0?0:(o.splice(r,1),Pe(e,o),1)}function Me(e,t,o){for(var r=0;r<e.length&&e[r][0]<=t;++r){var n=o(e[r]);if(n)return n}}function Ee(e,t,o){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var n=o(e[r]);if(n)return n}}function Le(e,t){for(var o=0;o<e.length;++o){var r=t(e[o]);if(r)return r}}function Ge(e,t){return e-t}function Ae(e,t){return e[0]-t[0]||e[1]-t[1]}function je(e,t){return e[1]-t[1]||e[0]-t[0]}function He(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(Ge);var r=t[t.length>>1],n=[],i=[],l=[];for(o=0;o<e.length;++o){var s=e[o];s[1]<r?n.push(s):r<s[0]?i.push(s):l.push(s)}var a=l,c=l.slice();return a.sort(Ae),c.sort(je),new ze(r,He(n),He(i),a,c)}function We(e){this.root=e}Te.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},Te.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?ke(this,e):this.left.insert(e):this.left=He([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?ke(this,e):this.right.insert(e):this.right=He([e]);else{var o=be(this.leftPoints,e,Ae),r=be(this.rightPoints,e,je);this.leftPoints.splice(o,0,e),this.rightPoints.splice(r,0,e)}},Te.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Oe(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Oe(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,r=this.left;r.right;)o=r,r=r.right;if(o===this)r.right=this.right;else{var n=this.left,i=this.right;o.count-=r.count,o.right=r.left,r.left=n,r.right=i}Ie(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Ie(this,this.left):Ie(this,this.right);return 1}for(n=be(this.leftPoints,e,Ae);n<this.leftPoints.length&&this.leftPoints[n][0]===e[0];++n)if(this.leftPoints[n]===e)for(this.count-=1,this.leftPoints.splice(n,1),i=be(this.rightPoints,e,je);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1;return 0},Te.queryPoint=function(e,t){return e<this.mid?this.left&&(o=this.left.queryPoint(e,t))?o:Me(this.leftPoints,e,t):e>this.mid?this.right&&(o=this.right.queryPoint(e,t))?o:Ee(this.rightPoints,e,t):Le(this.leftPoints,t);var o},Te.queryInterval=function(e,t,o){var r;return e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,o))||t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,o))?r:t<this.mid?Me(this.leftPoints,t,o):e>this.mid?Ee(this.rightPoints,e,o):Le(this.leftPoints,o)};var De=We.prototype;De.insert=function(e){this.root?this.root.insert(e):this.root=new ze(e[0],null,null,[e],[e])},De.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},De.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},De.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(De,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(De,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Fe=S(function e(){m(this,e),C(this,"_columnSizeMap",{}),C(this,"_intervalTree",new We(null)),C(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(e,t,o){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*o}},{key:"range",value:function(e,t,o){var r=this;this._intervalTree.queryInterval(e,e+t,function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,n,i,l,s=[],a=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t);else for(;!(a=(r=i.call(o)).done)&&(s.push(r.value),s.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{if(!a&&null!=o.return&&(l=o.return(),Object(l)!==l))return}finally{if(c)throw n}}return s}}(e,t)||ye(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,3),n=t[0];t[1];var i=t[2];return o(i,r._leftMap[i],n)})}},{key:"setPosition",value:function(e,t,o,r){this._intervalTree.insert([o,o+r,e]),this._leftMap[e]=t;var n=this._columnSizeMap,i=n[t];n[t]=void 0===i?o+r:Math.max(i,o+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var r=e[o];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var r=e[o];t=Math.max(t,r)}return t}}]);function Ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function Be(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ne(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ue=function(){return!!e})()}var Ve=function(){function t(){var e,o,r,n;m(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,r=t,n=[].concat(l),r=x(r),C(e=y(o,Ue()?Reflect.construct(r,n||[],x(o).constructor):r.apply(o,n)),"state",{isScrolling:!1,scrollTop:0}),C(e,"_debounceResetIsScrollingId",void 0),C(e,"_invalidateOnUpdateStartIndex",null),C(e,"_invalidateOnUpdateStopIndex",null),C(e,"_positionCache",new Fe),C(e,"_startIndex",null),C(e,"_startIndexMemoized",null),C(e,"_stopIndex",null),C(e,"_stopIndexMemoized",null),C(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),C(e,"_setScrollingContainerRef",function(t){e._scrollingContainer=t}),C(e,"_onScroll",function(t){var o=e.props.height,r=t.currentTarget.scrollTop,n=Math.min(Math.max(0,e._getEstimatedTotalHeight()-o),r);r===n&&(e._debounceResetIsScrolling(),e.state.scrollTop!==n&&e.setState({isScrolling:!0,scrollTop:n}))}),e}return w(t,e.reactExports.PureComponent),S(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Fe,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Fe,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&ue(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var t,o=this,r=this.props,n=r.autoHeight,i=r.cellCount,l=r.cellMeasurerCache,s=r.cellRenderer,a=r.className,c=r.height,d=r.id,u=r.keyMapper,h=r.overscanByPixels,f=r.role,p=r.style,m=r.tabIndex,g=r.width,v=r.rowDirection,_=this.state,S=_.isScrolling,y=_.scrollTop,x=[],w=this._getEstimatedTotalHeight(),R=this._positionCache.shortestColumnSize,b=this._positionCache.count,z=0;if(this._positionCache.range(Math.max(0,y-h),c+2*h,function(e,r,n){void 0===t?(z=e,t=e):(z=Math.min(z,e),t=Math.max(t,e)),x.push(s({index:e,isScrolling:S,key:u(e),parent:o,style:C(C(C(C({height:l.getHeight(e)},"ltr"===v?"left":"right",r),"position","absolute"),"top",n),"width",l.getWidth(e))}))}),R<y+c+h&&b<i)for(var T=Math.min(i-b,Math.ceil((y+c+h-R)/l.defaultHeight*g/l.defaultWidth)),I=b;I<b+T;I++)t=I,x.push(s({index:I,isScrolling:S,key:u(I),parent:this,style:{width:l.getWidth(I)}}));return this._startIndex=z,this._stopIndex=t,e.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:e.fP("ReactVirtualized__Masonry",a),id:d,onScroll:this._onScroll,role:f,style:Be({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:w<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:m},e.reactExports.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:w,maxWidth:"100%",maxHeight:w,overflow:"hidden",pointerEvents:S?"none":"",position:"relative"}},x))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&ue(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=he(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,r=e.width,n=Math.max(1,Math.floor(r/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,n,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){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)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,r=o.cellMeasurerCache,n=o.cellPositioner,i=e;i<=t;i++){var l=n(i),s=l.left,a=l.top;this._positionCache.setPosition(i,s,a,r.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}();function $e(){}C(Ve,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:$e,onScroll:$e,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),T(Ve);var qe=S(function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,e),C(this,"_cellMeasurerCache",void 0),C(this,"_columnIndexOffset",void 0),C(this,"_rowIndexOffset",void 0),C(this,"columnWidth",function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})}),C(this,"rowHeight",function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})});var r=o.cellMeasurerCache,n=o.columnIndexOffset,i=void 0===n?0:n,l=o.rowIndexOffset,s=void 0===l?0:l;this._cellMeasurerCache=r,this._columnIndexOffset=i,this._rowIndexOffset=s},[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,r)}}]),Ke=["rowIndex"],Xe=["columnIndex","rowIndex"],Ye=["columnIndex"],Je=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Ze(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function Qe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ze(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(et=function(){return!!e})()}var tt=function(){function t(o,r){var n,i,l,s;m(this,t),i=this,s=[o,r],l=x(l=t),C(n=y(i,et()?Reflect.construct(l,s||[],x(i).constructor):l.apply(i,s)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),C(n,"_deferredInvalidateColumnIndex",null),C(n,"_deferredInvalidateRowIndex",null),C(n,"_bottomLeftGridRef",function(e){n._bottomLeftGrid=e}),C(n,"_bottomRightGridRef",function(e){n._bottomRightGrid=e}),C(n,"_cellRendererBottomLeftGrid",function(t){var o=t.rowIndex,r=te(t,Ke),i=n.props,l=i.cellRenderer,s=i.fixedRowCount;return o===i.rowCount-s?e.reactExports.createElement("div",{key:r.key,style:Qe(Qe({},r.style),{},{height:20})}):l(Qe(Qe({},r),{},{parent:n,rowIndex:o+s}))}),C(n,"_cellRendererBottomRightGrid",function(e){var t=e.columnIndex,o=e.rowIndex,r=te(e,Xe),i=n.props,l=i.cellRenderer,s=i.fixedColumnCount,a=i.fixedRowCount;return l(Qe(Qe({},r),{},{columnIndex:t+s,parent:n,rowIndex:o+a}))}),C(n,"_cellRendererTopRightGrid",function(t){var o=t.columnIndex,r=te(t,Ye),i=n.props,l=i.cellRenderer,s=i.columnCount,a=i.fixedColumnCount;return o===s-a?e.reactExports.createElement("div",{key:r.key,style:Qe(Qe({},r.style),{},{width:20})}):l(Qe(Qe({},r),{},{columnIndex:o+a,parent:n}))}),C(n,"_columnWidthRightGrid",function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,l=o.columnWidth,s=n.state,a=s.scrollbarSize;return s.showHorizontalScrollbar&&t===r-i?a:"function"==typeof l?l({index:t+i}):l}),C(n,"_onScroll",function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var r=n.props.onScroll;r&&r(e)}),C(n,"_onScrollbarPresenceChange",function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,l=i.showHorizontalScrollbar,s=i.showVerticalScrollbar;if(t!==l||r!==s){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var a=n.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:r})}}),C(n,"_onScrollLeft",function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})}),C(n,"_onScrollTop",function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})}),C(n,"_rowHeightBottomGrid",function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,l=o.rowHeight,s=n.state,a=s.scrollbarSize;return s.showVerticalScrollbar&&t===i-r?a:"function"==typeof l?l({index:t+r}):l}),C(n,"_topLeftGridRef",function(e){n._topLeftGrid=e}),C(n,"_topRightGridRef",function(e){n._topRightGrid=e});var a=o.deferredMeasurementCache,c=o.fixedColumnCount,d=o.fixedRowCount;return n._maybeCalculateCachedStyles(!0),a&&(n._deferredMeasurementCacheBottomLeftGrid=d>0?new qe({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:d}):a,n._deferredMeasurementCacheBottomRightGrid=c>0||d>0?new qe({cellMeasurerCache:a,columnIndexOffset:c,rowIndexOffset:d}):a,n._deferredMeasurementCacheTopRightGrid=c>0?new qe({cellMeasurerCache:a,columnIndexOffset:c,rowIndexOffset:0}):a),n}return w(t,e.reactExports.PureComponent),S(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,n=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,n=void 0===r?0:r,i=this.props,l=i.fixedColumnCount,s=i.fixedRowCount,a=Math.max(0,o-l),c=Math.max(0,n-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:n}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:n}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var r={};t>0&&(r.scrollLeft=t),o>0&&(r.scrollTop=o),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var t=this.props,o=t.onScroll,r=t.onSectionRendered;t.onScrollbarPresenceChange,t.scrollLeft;var n=t.scrollToColumn;t.scrollTop;var i=t.scrollToRow,l=te(t,Je);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,a=s.scrollLeft,c=s.scrollTop;return e.reactExports.createElement("div",{style:this._containerOuterStyle},e.reactExports.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(Qe(Qe({},l),{},{onScroll:o,scrollLeft:a}))),e.reactExports.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Qe(Qe({},l),{},{onScroll:o,scrollTop:c})),this._renderBottomRightGrid(Qe(Qe({},l),{},{onScroll:o,onSectionRendered:r,scrollLeft:a,scrollToColumn:n,scrollToRow:i,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var r=0,n=0;n<t;n++)r+=o({index:n});this._leftGridWidth=r}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var r=0,n=0;n<t;n++)r+=o({index:n});this._topGridHeight=r}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,r=t.enableFixedColumnScroll,n=t.enableFixedRowScroll,i=t.height,l=t.fixedColumnCount,s=t.fixedRowCount,a=t.rowHeight,c=t.style,d=t.styleBottomLeftGrid,u=t.styleBottomRightGrid,h=t.styleTopLeftGrid,f=t.styleTopRightGrid,p=t.width,m=e||i!==this._lastRenderedHeight||p!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||l!==this._lastRenderedFixedColumnCount,v=e||s!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Qe({height:i,overflow:"visible",width:p},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:p},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:p}),(e||d!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Qe({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},d)),(e||g||u!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Qe({left:this._getLeftGridWidth(this.props),position:"absolute"},u)),(e||h!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Qe({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},h)),(e||g||f!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Qe({left:this._getLeftGridWidth(this.props),overflowX:n?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},f)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=l,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=i,this._lastRenderedRowHeight=a,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=d,this._lastRenderedStyleBottomRightGrid=u,this._lastRenderedStyleTopLeftGrid=h,this._lastRenderedStyleTopRightGrid=f,this._lastRenderedWidth=p}},{key:"_prepareForRender",value:function(){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}},{key:"_renderBottomLeftGrid",value:function(t){var o=t.enableFixedColumnScroll,r=t.fixedColumnCount,n=t.fixedRowCount,i=t.rowCount,l=t.hideBottomLeftGridScrollbar,s=this.state.showVerticalScrollbar;if(!r)return null;var a=s?1:0,c=this._getBottomGridHeight(t),d=this._getLeftGridWidth(t),u=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,h=l?d+u:d,f=e.reactExports.createElement(ve,e.TI({},t,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:r,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:o?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-n)+a,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:h}));return l?e.reactExports.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Qe(Qe({},this._bottomLeftGridStyle),{},{height:c,width:d,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(t){var o=t.columnCount,r=t.fixedColumnCount,n=t.fixedRowCount,i=t.rowCount,l=t.scrollToColumn,s=t.scrollToRow;return e.reactExports.createElement(ve,e.TI({},t,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,o-r),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(t),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:l-r,scrollToRow:s-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(t)}))}},{key:"_renderTopLeftGrid",value:function(t){var o=t.fixedColumnCount,r=t.fixedRowCount;return o&&r?e.reactExports.createElement(ve,e.TI({},t,{className:this.props.classNameTopLeftGrid,columnCount:o,height:this._getTopGridHeight(t),ref:this._topLeftGridRef,rowCount:r,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(t)})):null}},{key:"_renderTopRightGrid",value:function(t){var o=t.columnCount,r=t.enableFixedRowScroll,n=t.fixedColumnCount,i=t.fixedRowCount,l=t.scrollLeft,s=t.hideTopRightGridScrollbar,a=this.state,c=a.showHorizontalScrollbar,d=a.scrollbarSize;if(!i)return null;var u=c?1:0,h=this._getTopGridHeight(t),f=this._getRightGridWidth(t),p=c?d:0,m=h,g=this._topRightGridStyle;s&&(m=h+p,g=Qe(Qe({},this._topRightGridStyle),{},{left:0}));var v=e.reactExports.createElement(ve,e.TI({},t,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,o-n)+u,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:r?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:l,style:g,tabIndex:null,width:f}));return s?e.reactExports.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Qe(Qe({},this._topRightGridStyle),{},{height:h,width:f,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}])}();function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ot=function(){return!!e})()}C(tt,"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}),tt.propTypes={},T(tt),(function(){function t(e,o){var r,n,i,l;return m(this,t),n=this,l=[e,o],i=x(i=t),(r=y(n,ot()?Reflect.construct(i,l||[],x(n).constructor):i.apply(n,l))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(r),r}return w(t,e.reactExports.PureComponent),S(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,r=t.clientWidth,n=t.scrollHeight,i=t.scrollLeft,l=t.scrollTop,s=t.scrollWidth;return e({clientHeight:o,clientWidth:r,onScroll:this._onScroll,scrollHeight:n,scrollLeft:i,scrollTop:l,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,r=e.scrollHeight,n=e.scrollLeft,i=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:r,scrollLeft:n,scrollTop:i,scrollWidth:l})}}])}()).propTypes={};var rt="ASC",nt="DESC";function it(t){var o=t.sortDirection,r=e.fP("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":o===rt,"ReactVirtualized__Table__sortableHeaderIcon--DESC":o===nt});return e.reactExports.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},o===rt?e.reactExports.createElement("path",{d:"M7 14l5-5 5 5z"}):e.reactExports.createElement("path",{d:"M7 10l5 5 5-5z"}),e.reactExports.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function lt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lt=function(){return!!e})()}it.propTypes={};var st=function(){function t(){return m(this,t),e=this,r=arguments,o=x(o=t),y(e,lt()?Reflect.construct(o,r||[],x(e).constructor):o.apply(e,r));var e,o,r}return w(t,e.reactExports.Component),S(t)}();function at(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function ct(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?at(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):at(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dt=function(){return!!e})()}C(st,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:rt,flexGrow:0,flexShrink:1,headerRenderer:function(t){var o=t.dataKey,r=t.label,n=t.sortBy,i=t.sortDirection,l=n===o,s=[e.reactExports.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof r?r:null},r)];return l&&s.push(e.reactExports.createElement(it,{key:"SortIndicator",sortDirection:i})),s},style:{}}),st.propTypes={};var ut=function(){function t(e){var o,r,n,i;return m(this,t),r=this,i=[e],n=x(n=t),(o=y(r,dt()?Reflect.construct(n,i||[],x(r).constructor):n.apply(r,i))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(o),o._createRow=o._createRow.bind(o),o._onScroll=o._onScroll.bind(o),o._onSectionRendered=o._onSectionRendered.bind(o),o._setRef=o._setRef.bind(o),o._setGridElementRef=o._setGridElementRef.bind(o),o}return w(t,e.reactExports.PureComponent),S(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,r=e.rowIndex,n=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var e=this.GridElement,t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var t=this,o=this.props,r=o.children,n=o.className,i=o.disableHeader,l=o.gridClassName,s=o.gridStyle,a=o.headerHeight,c=o.headerRowRenderer,d=o.height,u=o.id,h=o.noRowsRenderer,f=o.rowClassName,p=o.rowStyle,m=o.scrollToIndex,g=o.style,v=o.width,_=this.state.scrollbarWidth,S=i?d:d-a,y="function"==typeof f?f({index:-1}):f,x="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],e.reactExports.Children.toArray(r).forEach(function(e,o){var r=t._getFlexStyleForColumn(e,e.props.style||st.defaultProps.style);t._cachedColumnStyles[o]=ct({overflow:"hidden"},r)}),e.reactExports.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":e.reactExports.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:e.fP("ReactVirtualized__Table",n),id:u,role:"grid",style:g},!i&&c({className:e.fP("ReactVirtualized__Table__headerRow",y),columns:this._getHeaderColumns(),style:ct({height:a,overflow:"hidden",paddingRight:_,width:v},x)}),e.reactExports.createElement(ve,e.TI({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:e.fP("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:S,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:_,scrollToRow:m,style:ct(ct({},s),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(t){var o=t.column,r=t.columnIndex,n=t.isScrolling,i=t.parent,l=t.rowData,s=t.rowIndex,a=this.props.onColumnClick,c=o.props,d=c.cellDataGetter,u=c.cellRenderer,h=c.className,f=c.columnData,p=c.dataKey,m=c.id,g=u({cellData:d({columnData:f,dataKey:p,rowData:l}),columnData:f,columnIndex:r,dataKey:p,isScrolling:n,parent:i,rowData:l,rowIndex:s}),v=this._cachedColumnStyles[r],_="string"==typeof g?g:null;return e.reactExports.createElement("div",{"aria-colindex":r+1,"aria-describedby":m,className:e.fP("ReactVirtualized__Table__rowColumn",h),key:"Row"+s+"-Col"+r,onClick:function(e){a&&a({columnData:f,dataKey:p,event:e})},role:"gridcell",style:v,title:_},g)}},{key:"_createHeader",value:function(t){var o,r,n,i,l,s=t.column,a=t.index,c=this.props,d=c.headerClassName,u=c.headerStyle,h=c.onHeaderClick,f=c.sort,p=c.sortBy,m=c.sortDirection,g=s.props,v=g.columnData,_=g.dataKey,S=g.defaultSortDirection,y=g.disableSort,x=g.headerRenderer,w=g.id,C=g.label,R=!y&&f,b=e.fP("ReactVirtualized__Table__headerColumn",d,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),z=this._getFlexStyleForColumn(s,ct(ct({},u),s.props.headerStyle)),T=x({columnData:v,dataKey:_,disableSort:y,label:C,sortBy:p,sortDirection:m});if(R||h){var I=p!==_?S:m===nt?rt:nt,P=function(e){R&&f({defaultSortDirection:S,event:e,sortBy:_,sortDirection:I}),h&&h({columnData:v,dataKey:_,event:e})};l=s.props["aria-label"]||C||_,i="none",n=0,o=P,r=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return p===_&&(i=m===rt?"ascending":"descending"),e.reactExports.createElement("div",{"aria-label":l,"aria-sort":i,className:b,id:w,key:"Header-Col"+a,onClick:o,onKeyDown:r,role:"columnheader",style:z,tabIndex:n},T)}},{key:"_createRow",value:function(t){var o=this,r=t.rowIndex,n=t.isScrolling,i=t.key,l=t.parent,s=t.style,a=this.props,c=a.children,d=a.onRowClick,u=a.onRowDoubleClick,h=a.onRowRightClick,f=a.onRowMouseOver,p=a.onRowMouseOut,m=a.rowClassName,g=a.rowGetter,v=a.rowRenderer,_=a.rowStyle,S=this.state.scrollbarWidth,y="function"==typeof m?m({index:r}):m,x="function"==typeof _?_({index:r}):_,w=g({index:r}),C=e.reactExports.Children.toArray(c).map(function(e,t){return o._createColumn({column:e,columnIndex:t,isScrolling:n,parent:l,rowData:w,rowIndex:r,scrollbarWidth:S})}),R=e.fP("ReactVirtualized__Table__row",y),b=ct(ct({},s),{},{height:this._getRowHeight(r),overflow:"hidden",paddingRight:S},x);return v({className:R,columns:C,index:r,isScrolling:n,key:i,onRowClick:d,onRowDoubleClick:u,onRowRightClick:h,onRowMouseOver:f,onRowMouseOut:p,rowData:w,style:b})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=ct(ct({},t),{},{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var t=this,o=this.props,r=o.children;return(o.disableHeader?[]:e.reactExports.Children.toArray(r)).map(function(e,o){return t._createHeader({column:e,index:o})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,n=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:n})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setGridElementRef",value:function(e){this.GridElement=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}])}();C(ut,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:_e,overscanRowCount:10,rowRenderer:function(t){var o=t.className,r=t.columns,n=t.index,i=t.key,l=t.onRowClick,s=t.onRowDoubleClick,a=t.onRowMouseOut,c=t.onRowMouseOver,d=t.onRowRightClick,u=t.rowData,h=t.style,f={"aria-rowindex":n+1};return(l||s||a||c||d)&&(f["aria-label"]="row",f.tabIndex=0,l&&(f.onClick=function(e){return l({event:e,index:n,rowData:u})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:n,rowData:u})}),a&&(f.onMouseOut=function(e){return a({event:e,index:n,rowData:u})}),c&&(f.onMouseOver=function(e){return c({event:e,index:n,rowData:u})}),d&&(f.onContextMenu=function(e){return d({event:e,index:n,rowData:u})})),e.reactExports.createElement("div",e.TI({},f,{className:o,key:i,role:"row",style:h}),r)},headerRowRenderer:function(t){var o=t.className,r=t.columns,n=t.style;return e.reactExports.createElement("div",{className:o,role:"row",style:n},r)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ut.propTypes={};var ht=[],ft=null,pt=null;function mt(){pt&&(pt=null,document.body&&null!=ft&&(document.body.style.pointerEvents=ft),ft=null)}function gt(){mt(),ht.forEach(function(e){return e.__resetIsScrolling()})}function vt(e){e.currentTarget===window&&null==ft&&document.body&&(ft=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){pt&&ue(pt);var e=0;ht.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),pt=he(gt,e)}(),ht.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function _t(e,t){ht.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",vt),ht.push(e)}function St(e,t){(ht=ht.filter(function(t){return t!==e})).length||(t.removeEventListener("scroll",vt),pt&&(ue(pt),mt()))}var yt=function(e){return e===window},xt=function(e){return e.getBoundingClientRect()};function wt(e,t){if(e){if(yt(e)){var o=window,r=o.innerHeight,n=o.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof n?n:0}}return xt(e)}return{height:t.serverHeight,width:t.serverWidth}}function Ct(e){return yt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Rt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function bt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(o),!0).forEach(function(t){C(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rt(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function zt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zt=function(){return!!e})()}var Tt=function(){return"undefined"!=typeof window?window:void 0},It=function(){function t(){var o,r,n,i;m(this,t);for(var l=arguments.length,s=new Array(l),a=0;a<l;a++)s[a]=arguments[a];return r=this,n=t,i=[].concat(s),n=x(n),C(o=y(r,zt()?Reflect.construct(n,i||[],x(r).constructor):n.apply(r,i)),"_window",Tt()),C(o,"_isMounted",!1),C(o,"_positionFromTop",0),C(o,"_positionFromLeft",0),C(o,"_detectElementResize",void 0),C(o,"_child",void 0),C(o,"_windowScrollerRef",e.reactExports.createRef()),C(o,"state",bt(bt({},wt(o.props.scrollElement,o.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),C(o,"_registerChild",function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),o._child=e,o.updatePosition()}),C(o,"_onChildScroll",function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var r=o.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+o._positionFromTop):r.scrollTop=t+o._positionFromTop)}}),C(o,"_registerResizeListener",function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)}),C(o,"_unregisterResizeListener",function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)}),C(o,"_onResize",function(){o.updatePosition()}),C(o,"__handleWindowScrollEvent",function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var r=Ct(t),n=Math.max(0,r.left-o._positionFromLeft),i=Math.max(0,r.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:n,scrollTop:i}),e({scrollLeft:n,scrollTop:i})}}}),C(o,"__resetIsScrolling",function(){o.setState({isScrolling:!1})}),o}return w(t,e.reactExports.PureComponent),S(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,r=o.height,n=o.width,i=this._child||this._windowScrollerRef.current;if(i instanceof Element&&e){var l=function(e,t){if(yt(t)&&document.documentElement){var o=document.documentElement,r=xt(e),n=xt(o);return{top:r.top-n.top,left:r.left-n.left}}var i=Ct(t),l=xt(e),s=xt(t);return{top:l.top+i.top-s.top,left:l.left+i.left-s.left}}(i,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var s=wt(e,this.props);r===s.height&&n===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width})),!0===this.props.updateScrollTopOnUpdatePosition&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=M(),this.updatePosition(e),e&&(_t(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,r=e.scrollElement;r!==o&&null!=r&&null!=o&&(this.updatePosition(o),St(this,r),_t(this,o),this._unregisterResizeListener(r),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(St(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var t=this.props.children,o=this.state,r=o.isScrolling,n=o.scrollTop,i=o.scrollLeft,l=o.height,s=o.width;return e.reactExports.createElement("div",{ref:this._windowScrollerRef},t({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:l,isScrolling:r,scrollLeft:i,scrollTop:n,width:s}))}}])}();C(It,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Tt(),serverHeight:0,serverWidth:0});const Pt="ReactVirtualizedDemo-flexContainer",kt="ReactVirtualizedDemo-tableRow",Ot="ReactVirtualizedDemo-tableRowHover",Mt="ReactVirtualizedDemo-tableCell",Et="ReactVirtualizedDemo-noClick";class Lt extends e.z.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:t})=>{const{onRowClick:o}=this.props;return e.Et(kt,Pt,{[Ot]:-1!==t&&null!=o})},this.cellRenderer=({cellData:t,dataKey:o,columnIndex:r,width:n})=>{const{columns:i,rowHeight:s,onRowClick:a}=this.props;let c=t,d={height:s,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${n}px`,maxWidth:`${n}px`};return"shortcut"===o?c=e.Yf(t):"description"===o&&(d={...d,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),e.jsxRuntimeExports.jsx(l,{component:"div",className:e.Et(Mt,Pt,{[Et]:null==a}),variant:"body",style:d,align:null!=r&&i[r].numeric?"right":"left",children:c})},this.headerRenderer=({label:t,columnIndex:o,width:r})=>{const{headerHeight:n,columns:i}=this.props,s=i[o];return e.jsxRuntimeExports.jsx(l,{component:"div",className:e.Et(Mt,Pt,Et),variant:"head",sx:{width:r,height:n,backgroundColor:e=>e.palette.grey[300]},align:s.numeric?"right":"left",children:e.jsxRuntimeExports.jsx("span",{children:s.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:t,rowHeight:o,headerHeight:r,...n}=this.props;return e.jsxRuntimeExports.jsx(A,{children:({height:i,width:l})=>e.jsxRuntimeExports.jsx(ut,{height:i,width:l,rowHeight:o,gridStyle:{direction:"inherit"},headerHeight:r,...n,rowClassName:this.getRowClassName,children:t.map(({dataKey:t,width:o,widthLess:r,...n},i)=>{const s=r?l-r:o;return e.jsxRuntimeExports.jsx(st,{style:{flex:`1 1 ${s}px`},headerRenderer:e=>this.headerRenderer({...e,width:s,columnIndex:i}),className:Pt,cellDataGetter:({rowData:e,columnData:t,dataKey:o})=>e[o],cellRenderer:e=>this.cellRenderer({...e,width:s,columnIndex:i}),dataKey:t,width:s,...n},t)})})})}}const Gt=p(Lt)(({theme:e})=>({"& .ReactVirtualized__Table__headerRow":{..."rtl"===e.direction&&{paddingLeft:"0 !important"},..."rtl"!==e.direction&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${Pt}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${kt}`]:{cursor:"pointer"},[`& .${Ot}`]:{"&:hover:not([disabled])":{backgroundColor:e.palette.grey[200]}},[`& .${Mt}`]:{flex:1},[`& .${Et}`]:{cursor:"initial"}}));function At(t){const{commands:o,...r}=t,[n,i]=e.reactExports.useState(!1),[l,s]=e.reactExports.useState(""),a=e.reactExports.useMemo(()=>{let e=o.getAllCommands();n||(e=e.filter(e=>e.command.shortcut())),e.sort((e,t)=>e.command.label().localeCompare(t.command.label()));const t=[],r=e=>e.replace(/\n\n/g,"\n");for(let o=0;o<e.length;o++){const n=e[o].command,i=n.shortcut();if(Array.isArray(i)){const e=i;for(let o=0;o<e.length;o++)t.push({label:n.label(),description:r(n.description()),shortcut:e[o]})}else t.push({label:n.label(),description:r(n.description()),shortcut:n.shortcut()})}return t},[n,o]),[c,d]=e.reactExports.useState(null);e.reactExports.useEffect(()=>{Promise.resolve().then(()=>require("./L1iE_VcelYZIy0wI.cjs")).then(e=>{d(new e.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[u,h]=e.reactExports.useState(a),f=l.length>0&&0===u.length;return e.reactExports.useEffect(()=>{c&&e._n.debounce(()=>{if(0===l.trim().length)return void h(a);const e=c.search(l.trim()),t=new Array(e.length);for(let o=0;o<e.length;o++)t[o]=e[o].item;h(t)},90)()},[c,l]),e.jsxRuntimeExports.jsxs(e.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...r,children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:e=>e.spacing(2),color:e=>e.palette.text.secondary},children:[e.jsxRuntimeExports.jsx(e.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(1)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{opacity:l.length>0?1:0,display:l.length>0?"flex":"none"},position:"end",children:e.jsxRuntimeExports.jsx(e.IconButton,{"aria-label":"clear search",onClick:()=>s(""),edge:"end",children:e.jsxRuntimeExports.jsx(e.M,{})})})},sx:{flex:"1 1 40%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>f?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>f?`${e.palette.error.main} !important`:void 0}},value:l,onChange:e=>{s(e.target.value)},onKeyDown:t=>{t.which===e.io.Escape&&l.length>0&&(s(""),t.stopPropagation(),t.preventDefault())},onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{sx:{flex:"1 1 60%"},control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:n,onChange:()=>i(!n)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),e.jsxRuntimeExports.jsx(e.Box,{sx:{flex:"1 1 100%",borderRadius:e=>`${e.shape.borderRadius}px`,border:e=>`solid ${e.palette.divider} 1px`,paddingRight:"1px",overflow:"hidden","* .MuiTableCell-head":{background:e=>e.palette.background.paper,backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`}},children:e.jsxRuntimeExports.jsx(Gt,{rowCount:u.length,rowGetter:e=>u[e.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:e=>e.spacing(1),paddingTop:e=>e.spacing(1),paddingRight:e=>e.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:e.jsxRuntimeExports.jsx(e.Typography,{noWrap:!0,component:"div",sx:{color:e=>f?e.palette.error.main:e.palette.text.secondary},children:`${0===u.length?"No":u.length} shortcut key${1===u.length?"":"s"}${l.length>0?" found":""}`})})]})}exports.default=t=>{const{title:o="Shortcut Keys",commands:r,sx:n,...i}=t;return e.jsxRuntimeExports.jsx(e.Vg,{isModal:!0,onKeyDown:t=>{t.keyCode===e.io.F1&&t.preventDefault()},sx:{width:"780px",...n},title:o,autoFocusSel:".input",...i,children:e.jsxRuntimeExports.jsx(e.DialogContent,{dividers:!0,children:e.jsxRuntimeExports.jsx(At,{commands:r,sx:{marginBottom:"8px"}})})})};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import{NumberFormat as t,ScalarType as e,ResourceCollection as s,Tuple as i,IAutoFilter as o,AddressUtils as r,CoordUtils as n,FormulaError as a,IRange as l,CommonUtils as c,Theme as h,JSONStableStringify as u,Workbook as d,IColor as p,OutOfBoundsError as g}from"@sheetxl/sdk";import{_ as f}from"./C3cyAbIH8Qc8MIFN.mjs";const m=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",T=new RegExp(`^[${m}][-${m}.0-9·̀-ͯ‿-⁀]*$`,"u");function y(t){return t>=65&&t<=90||t>=97&&t<=122||58===t||95===t||8204===t||8205===t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}const b="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",x=new RegExp(`^[${b}][-${b}.0-9·̀-ͯ‿-⁀]*$`,"u");function w(t){return t>=65&&t<=90||95===t||t>=97&&t<=122||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}const v=function(t){return 32===t||10===t||13===t||9===t},S=function(t){return t>=32&&t<=55295||10===t||13===t||9===t||t>=57344&&t<=65533||t>=65536&&t<=1114111},C=y,k=function(t){return y(t)||t>=48&&t<=57||45===t||46===t||183===t||t>=768&&t<=879||t>=8255&&t<=8256},A=[32,10,13,9],D=T,E=function(t){return t>=1&&t<=55295||t>=57344&&t<=65533||t>=65536&&t<=1114111},P=w,O=function(t){return w(t)||45===t||46===t||t>=48&&t<=57||183===t||t>=768&&t<=879||t>=8255&&t<=8256},I=x,V="http://www.w3.org/XML/1998/namespace",L="http://www.w3.org/2000/xmlns/",N={__proto__:null,xml:V,xmlns:L},R={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},$=-1,M=-2,j=13,H=33,F=10,X=60,B=61,W=62,_=63,q=93,z=t=>34===t||39===t,U=[34,39],G=[...U,91,W],Z=[...U,X,q],Q=[B,_,...A],J=[...A,W,38,X];function K(t,e,s){switch(e){case"xml":s!==V&&t.fail(`xml prefix must be bound to ${V}.`);break;case"xmlns":s!==L&&t.fail(`xmlns prefix must be bound to ${L}.`)}switch(s){case L:t.fail(""===e?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${L}.`);break;case V:switch(e){case"xml":break;case"":t.fail(`the default namespace may not be set to ${s}.`);break;default:t.fail("may not assign the xml namespace to another prefix.")}}}const Y=t=>I.test(t),tt=t=>D.test(t),et={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class st{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const e=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,e){this.nameStartCheck=P,this.nameCheck=O,this.isName=Y,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...N};const t=this.opt.additionalNamespaces;null!=t&&(function(t,e){for(const s of Object.keys(e))K(t,s,e[s])}(this,t),Object.assign(this.ns,t))}else this.nameStartCheck=C,this.nameCheck=k,this.isName=tt,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?j:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:e}=this.opt;if(void 0===e){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");e="1.0"}this.setXMLVersion(e),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(R),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,e){this[et[t]]=e}off(t){this[et[t]]=void 0}makeError(t){let e=this.fileName??"";return this.trackPosition&&(e.length>0&&(e+=":"),e+=`${this.line}:${this.column}`),e.length>0&&(e+=": "),new Error(e+t)}fail(t){const e=this.makeError(t),s=this.errorHandler;if(void 0===s)throw e;return s(e),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let e=!1;null===t?(e=!0,t=""):"object"==typeof t&&(t=t.toString()),void 0!==this.carriedFromPrevious&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let s=t.length;const i=t.charCodeAt(s-1);!e&&(13===i||i>=55296&&i<=56319)&&(this.carriedFromPrevious=t[s-1],s--,t=t.slice(0,s));const{stateTable:o}=this;for(this.chunk=t,this.i=0;this.i<s;)o[this.state].call(this);return this.chunkPosition+=s,e?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,e=this.i;if(this.prevI=e,this.i++,e>=t.length)return $;const s=t.charCodeAt(e);if(this.column++,s<55296){if(s>=32||9===s)return s;switch(s){case F:return this.line++,this.column=0,this.positionAtNewLine=this.position,F;case 13:return t.charCodeAt(e+1)===F&&(this.i=e+2),this.line++,this.column=0,this.positionAtNewLine=this.position,M;default:return this.fail("disallowed character."),s}}if(s>56319)return s>=57344&&s<=65533||this.fail("disallowed character."),s;const i=65536+1024*(s-55296)+(t.charCodeAt(e+1)-56320);return this.i=e+2,i>1114111&&this.fail("disallowed character."),i}getCode11(){const{chunk:t,i:e}=this;if(this.prevI=e,this.i=e+1,e>=t.length)return $;const s=t.charCodeAt(e);if(this.column++,s<55296){if(s>31&&s<127||s>159&&8232!==s||9===s)return s;switch(s){case F:return this.line++,this.column=0,this.positionAtNewLine=this.position,F;case 13:{const s=t.charCodeAt(e+1);s!==F&&133!==s||(this.i=e+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,M;default:return this.fail("disallowed character."),s}}if(s>56319)return s>=57344&&s<=65533||this.fail("disallowed character."),s;const i=65536+1024*(s-55296)+(t.charCodeAt(e+1)-56320);return this.i=e+2,i>1114111&&this.fail("disallowed character."),i}getCodeNorm(){const t=this.getCode();return t===M?F:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:e}=this;const{chunk:s}=this;for(;;){const i=this.getCode(),o=i===M,r=o?F:i;if(r===$||t.includes(r))return this.text+=s.slice(e,this.prevI),r;o&&(this.text+=`${s.slice(e,this.prevI)}\n`,e=this.i)}}captureToChar(t){let{i:e}=this;const{chunk:s}=this;for(;;){let i=this.getCode();switch(i){case M:this.text+=`${s.slice(e,this.prevI)}\n`,e=this.i,i=F;break;case $:return this.text+=s.slice(e),!1}if(i===t)return this.text+=s.slice(e,this.prevI),!0}}captureNameChars(){const{chunk:t,i:e}=this;for(;;){const s=this.getCode();if(s===$)return this.name+=t.slice(e),$;if(!k(s))return this.name+=t.slice(e,this.prevI),s===M?F:s}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===$||!v(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,"1.0"===t?(this.isChar=S,this.getCode=this.getCode10):(this.isChar=E,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,e=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),e){case X:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case $:break;default:this.unget(),this.state=j,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(G);switch(t){case W:this.doctypeHandler?.(this.text),this.text="",this.state=j,this.doctype=!0;break;case $:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:z(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Z);t!==$&&(this.text+=String.fromCodePoint(t),t===q?this.state=2:t===X?this.state=6:z(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case _:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),e=this.openWakaBang+=t;this.text+=t,"-"!==e&&(this.state="--"===e?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=45===t?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===W?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(_)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===W&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:e}=this;t:for(;;)switch(this.getCode()){case M:this.entity+=`${e.slice(t,this.prevI)}\n`,t=this.i;break;case 59:{const{entityReturnState:s}=this,i=this.entity+e.slice(t,this.prevI);let o;this.state=s,""===i?(this.fail("empty entity name."),o="&;"):(o=this.parseEntity(i),this.entity=""),s===j&&void 0===this.textHandler||(this.text+=o);break t}case $:this.entity+=e.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(C(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case _:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=j,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();45===t?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==W?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=j}sCData(){this.captureToChar(q)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===q?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case W:this.cdataHandler?.(this.text),this.text="",this.state=j;break;case q:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===_||v(t)?(this.fail("processing instruction without a target."),this.state=t===_?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:e}=this;for(;;){const s=this.getCodeNorm();if(s===$)return void(this.piTarget+=t.slice(e));if(!this.nameCheck(s)){this.piTarget+=t.slice(e,this.prevI);const i=s===_;i||v(s)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=i?H:27):this.state=i?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(s));break}}}sPIBody(){if(0===this.text.length){const t=this.getCodeNorm();t===_?this.state=26:v(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(_)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===W){const{piTarget:t}=this;"xml"===t.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:t,body:this.text}),this.piTarget=this.text="",this.state=j}else t===_?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==_?t!==$&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=H}sXMLDeclName(){const t=this.captureTo(Q);if(t===_)return this.state=H,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(v(t)||t===B){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===B?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===_)return this.state=H,void this.fail("XML declaration is incomplete.");v(t)||(t!==B&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===_)return this.state=H,void this.fail("XML declaration is incomplete.");v(t)||(z(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,_]);if(t===_)return this.state=H,this.text="",void this.fail("XML declaration is incomplete.");if(t===$)return;const e=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const t=e;this.xmlDecl.version=t,/^1\.[0-9]+$/.test(t)?this.opt.forceXMLVersion||this.setXMLVersion(t):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(e)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=e;break;case"standalone":"yes"!==e&&"no"!==e&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=e}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==_?(v(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=H}sXMLDeclEnding(){this.getCodeNorm()===W?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=j):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===$)return;const e=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=e.ns=Object.create(null)),this.openTagStartHandler?.(e),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case W:this.openTag();break;case 47:this.state=35;break;default:v(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===W?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==$&&(C(t)?(this.unget(),this.state=37):t===W?this.openTag():47===t?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===B?this.state=39:v(t)?this.state=38:t===W?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==$&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case $:return;case B:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===W?this.openTag():C(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();z(t)?(this.q=t,this.state=40):v(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:e}=this;let{i:s}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+e.slice(s,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=e.slice(s,this.prevI),this.state=14,void(this.entityReturnState=40);case F:case M:case 9:this.text+=`${e.slice(s,this.prevI)} `,s=this.i;break;case X:return this.text+=e.slice(s,this.prevI),void this.fail("disallowed character.");case $:return void(this.text+=e.slice(s))}}sAttribValueClosed(){const t=this.getCodeNorm();v(t)?this.state=36:t===W?this.openTag():47===t?this.state=35:C(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(J);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case X:this.fail("disallowed character.");break;case $:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===W?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===W?this.closeTag():v(t)?this.state=44:t!==$&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case W:this.closeTag();break;case $:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:e}=this;const{chunk:s,textHandler:i}=this;t:for(;;)switch(this.getCode()){case X:if(this.state=15,void 0!==i){const{text:e}=this,o=s.slice(t,this.prevI);0!==e.length?(i(e+o),this.text=""):0!==o.length&&i(o)}e=0;break t;case 38:this.state=14,this.entityReturnState=j,void 0!==i&&(this.text+=s.slice(t,this.prevI)),e=0;break t;case q:switch(e){case 0:e=1;break;case 1:e=2;break;case 2:break;default:throw new Error("impossible state")}break;case W:2===e&&this.fail('the string "]]>" is disallowed in char data.'),e=0;break;case M:void 0!==i&&(this.text+=`${s.slice(t,this.prevI)}\n`),t=this.i,e=0;break;case $:void 0!==i&&(this.text+=s.slice(t));break t;default:e=0}this.forbiddenState=e}handleTextOutsideRoot(){let{i:t}=this;const{chunk:e,textHandler:s}=this;let i=!1;t:for(;;){const o=this.getCode();switch(o){case X:if(this.state=15,void 0!==s){const{text:i}=this,o=e.slice(t,this.prevI);0!==i.length?(s(i+o),this.text=""):0!==o.length&&s(o)}break t;case 38:this.state=14,this.entityReturnState=j,void 0!==s&&(this.text+=e.slice(t,this.prevI)),i=!0;break t;case M:void 0!==s&&(this.text+=`${e.slice(t,this.prevI)}\n`),t=this.i;break;case $:void 0!==s&&(this.text+=e.slice(t));break t;default:v(o)||(i=!0)}}i&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,e){const{prefix:s,local:i}=this.qname(t),o={name:t,prefix:s,local:i,value:e};if(this.attribList.push(o),this.attributeHandler?.(o),"xmlns"===s){const t=e.trim();"1.0"===this.currentXMLVersion&&""===t&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[i]=t,K(this,i,t)}else if("xmlns"===t){const t=e.trim();this.topNS[""]=t,K(this,"",t)}}pushAttribPlain(t,e){const s={name:t,value:e};this.attribList.push(s),this.attributeHandler?.(s)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const e=t.pop();this.fail(`unclosed tag: ${e.name}`)}0!==this.state&&this.state!==j&&this.fail("unexpected end.");const{text:e}=this;return 0!==e.length&&(this.textHandler?.(e),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let e=this.topNS[t];if(void 0!==e)return e;const{tags:s}=this;for(let i=s.length-1;i>=0;i--)if(e=s[i].ns[t],void 0!==e)return e;return e=this.ns[t],void 0!==e?e:this.opt.resolvePrefix?.(t)}qname(t){const e=t.indexOf(":");if(-1===e)return{prefix:"",local:t};const s=t.slice(e+1),i=t.slice(0,e);return(""===i||""===s||s.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:i,local:s}}processAttribsNS(){const{attribList:t}=this,e=this.tag;{const{prefix:t,local:s}=this.qname(e.name);e.prefix=t,e.local=s;const i=e.uri=this.resolve(t)??"";""!==t&&("xmlns"===t&&this.fail('tags may not have "xmlns" as prefix.'),""===i&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),e.uri=t))}if(0===t.length)return;const{attributes:s}=e,i=new Set;for(const e of t){const{name:t,prefix:o,local:r}=e;let n,a;""===o?(n="xmlns"===t?L:"",a=t):(n=this.resolve(o),void 0===n&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),n=o),a=`{${n}}${r}`),i.has(a)&&this.fail(`duplicate attribute: ${a}.`),i.add(a),e.uri=n,s[t]=e}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,e=this.tag.attributes;for(const{name:s,value:i}of t)void 0!==e[s]&&this.fail(`duplicate attribute: ${s}.`),e[s]=i;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,e=this.tag;e.isSelfClosing=!1,this.openTagHandler?.(e),t.push(e),this.state=j,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,e=this.tag;e.isSelfClosing=!0,this.openTagHandler?.(e),this.closeTagHandler?.(e),null===(this.tag=t[t.length-1]??null)&&(this.closedRoot=!0),this.state=j,this.name=""}closeTag(){const{tags:t,name:e}=this;if(this.state=j,this.name="",""===e)return this.fail("weird empty close tag."),void(this.text+="</>");const s=this.closeTagHandler;let i=t.length;for(;i-- >0;){const i=this.tag=t.pop();if(this.topNS=i.ns,s?.(i),i.name===e)break;this.fail("unexpected close tag.")}0===i?this.closedRoot=!0:i<0&&(this.fail(`unmatched closing tag: ${e}.`),this.text+=`</${e}>`)}parseEntity(t){if("#"!==t[0]){const e=this.ENTITIES[t];return void 0!==e?e:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let e=NaN;return"x"===t[1]&&/^#x[0-9a-f]+$/i.test(t)?e=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(e=parseInt(t.slice(1),10)),this.isChar(e)?String.fromCodePoint(e):(this.fail("malformed character entity."),`&${t};`)}}var it,ot;(ot=it||(it={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},ot.parseStream=async(t,e,s)=>{const i=new st({position:!1,...s});let o;if(e.onOpenTagStart&&i.on(ot.Events.OpenTagStart,e.onOpenTagStart),e.onOpenTag&&i.on(ot.Events.OpenTag,e.onOpenTag),e.onCloseTag&&i.on(ot.Events.CloseTag,e.onCloseTag),e.onAttribute&&i.on(ot.Events.Attribute,e.onAttribute),e.onText&&i.on(ot.Events.Text,e.onText),e.onError&&i.on(ot.Events.Error,e.onError),e.onEnd){e.onEnd;const t=()=>{o=e.onEnd()};i.on(ot.Events.End,t)}for(;;){const{value:e,done:s}=await t.read();if(s)break;i.write(e)}return i.close(),o};const rt=t=>!0===t||"1"===t||"on"===t||"true"===t||!1!==t&&"0"!==t&&"off"!==t&&"false"!==t&&null,nt=t=>{const e=parseInt(t);return isNaN(e)?null:e},at=t=>{const e=parseFloat(t);return isNaN(e)?null:e},lt=null;class ct{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,e,s){const i=this._registeredVisitors,o=[];let r=null,n=null,a=null,l=null;const c=[],h={key:null,source:t};let u=null,d=!1;const p=(t,e)=>{let s=a.attributes[t];if(e)if(Array.isArray(e))for(let t=0;t<e.length;t++){if(null==s)return;if(s=e[t](s),null==s)return}else{if(null==s)return;if(s=e(s),null==s)return}return s},g={getSource:()=>u.source,setSource:t=>{u.source=t},setKey:t=>{u.key=t},getFrom:()=>a,getAttribute:(t,e)=>p(t,e)??null,hasAttribute:t=>null!==g.getAttribute(t),getParent:()=>c[c.length-2].source,getPath:()=>{const t=[];for(let e=0;e<o.length;e++)t.push(o[e].local);return t.join("\\")},parseAttribute:p,copyToObject:(t,e,s,i)=>{const o=p(i??e,s);void 0!==o&&(t[e]=o)},copyTo:(t,e,s)=>{const i=p(s??t,e);void 0!==i&&(u.source[t]=i)},warn:t=>{s?s?.(t):console.warn(t)}};return{onOpenTag:t=>{let e=t.name;const s=e.indexOf(":");-1!==s&&(e=e.slice(s+1));const p=i.get(e);if(r={local:e,visitor:p,tag:t,destination:null},d)return o.push(r),n=e,void(a=t);l=r?.visitor??null,p&&(u=0===o.length?h:null!==l?.to?{key:null,source:{}}:null,r.destination=u,u&&c.push(u)),o.push(r),n=e,a=t,d=null===l?.to,l?.openTag?.(g)},onCloseTag:t=>{let e=t.name;const i=e.indexOf(":");if(-1!==i&&(e=e.slice(i+1)),e!==n)throw new Error(`mismatch open/close tag: '${e}'/'${n}'`);d||l?.closeTag?.(g);const p=o.pop()??null;r=o[o.length-1]??null;const f=p?.destination;if(f){c.pop(),u=c[c.length-1]??h;const t=p.visitor;t&&t.to&&void 0!==f.source&&(Array.isArray(t.to)?u.source.push?u.source.push(f.source):s?.(`Unable to parse array for ${t.from} at ${g.getPath()}`):f.key?u.source[f.key]=f.source:"string"==typeof t.to&&(u.source[t.to]=f.source))}n=r?.local??null,a=r?.tag??null,l=r?.visitor??null,d=!r?.destination},onText:t=>{l?.text?.(t,g)},onEnd:e}}}const ht=(t,e,s,i=null)=>{if(!t)return null;let o=t;o.startsWith("/")&&(o=o.substring(1));let r=i?.parsedRefs?.get(t);if(void 0!==r)return r;const n=e(o);if(!n)return null;let a=n.content;try{s&&(a=s(a))}catch(t){console.warn(t)}return i?.parsedRefs?.set(t,a),a},ut=(t,e,s,i,o=null)=>{if(!t)return null;let r=t;r.startsWith("/")&&(r=r.substring(1));let n=o?.parsedRefs?.get(t);if(void 0!==n)return n;const a=e(r);if(!a)return null;const l=a.content;try{const e=(new TextDecoder).decode(l),r=s.parseFromString(e,"text/xml"),n=i.convert(r,t,o);return o?.parsedRefs?.set(t,n),n}catch(t){console.warn(t)}return null},dt=(t,e,s,i,o=null)=>{const r=new Map;let n=e.Directory[t];const a=n?n.length:0;for(let t=0;t<a;t++){const a=n[t];if(!a)continue;let l=a;l.startsWith("/")&&(l=l.substring(1));const c=ut(l,t=>e.files[t],s,i,o);r.set(l,c)}return r},pt=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],gt=(t,e="dk1")=>{let s;const i=t("auto");void 0===i||"1"!==i&&"true"!==i||(s=e);const o=t("indexed");o&&(s=`index${o}`);const r=t("rgb");r&&(s=r.toLowerCase(),8!==r.length||r.startsWith("FF")||(s="FF"+r.substring(2,r.length)));const n=t("theme");n&&(s=pt[n]);let a=t("tint");if(a&&(s+=` ${p.AdjustmentType.ETint} ${parseFloat(a)}`),s)return s},ft=t=>t?t.replace(/^\{([\s\S]+)\}$/,"$1"):t,mt=t=>t?f.roundAccurately(parseFloat(t)/12700,4):null,Tt=t=>t?f.roundAccurately(parseFloat(t)/9525,1):null,yt=t=>parseFloat(t)/1e3,bt=t=>parseFloat(t)/6e4,xt=t=>"true"===t||"1"===t;class wt{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const vt=(t,e,s)=>{if(t[0].value[0]===t[1].value[0])return e},St={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Ct=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(t,p)=>{const{password:f,onWarning:m,createWorkbookOptions:T={},...y}=p??{},b=import("./M4hZ25330e96seUM.mjs"),x=import("./DIJyH94oCzUnlcNZ.mjs");let w=null;try{w=new DOMParser}catch(t){}let v=null;w||(v=import("./dpdy0BU4GGI5lZrX.mjs").then(t=>t.i));let S=null,C=null,k=null;try{const t=await Promise.all([b,x,v]);S=t[0],C=t[1],k=t[2]}catch(t){throw new Error("Unable to load XLSX parser.",{cause:t})}try{const p=S.read(t,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!p.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");p.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],p.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const g=new C.FromOOXMLConverter,f=w??new k.DOMParser,y=T?.resources??new s,b=y.beginPersist(),x={},v=new Set,A=new Map;A.set("richTypes",[]);const D=new Map,E=[],P=t=>p.files[t],O=(t,e)=>{const s=t.lastIndexOf("/"),i=t.substring(0,s+1)+"_rels/"+t.substring(s+1,t.length)+".rels";let o=e.get(i);return o||(o=((t,e,s,i,o=null)=>{if(!t)return null;const r=ut(t,e,s,i,o);if(!r)return null;const n=new Map,a=Object.keys(r),l=a.length;for(let t=0;t<l;t++){const e=a[t],s=r[e];n.set(e,s)}return n})(i,P,f,g,V),e.set(i,o)),o},I=(t,s,h,u=D)=>{let d=O(s,u).get(t),p=d?.target;if(!p)return null;if("External"===d.targetMode)return d.target;const T=s.lastIndexOf("/"),w=s.substring(0,T+1);p.startsWith("/")||(p=w+p),p=(t=>{const e=t.split(/\/+/),s=e.reduce((t,e,s)=>("."===e?t.splice(s,1):".."===e&&t.splice(s-1,2),t),e);return s.join("/")})(p);const S=g?.getVisitorParamsState().get("dxfs");let C=u.get(p);if(!C){const t="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet";if(d.type===t){const t={};C=t;const s=async()=>{const s=((t,s,c,h,u,d,p)=>{const g=new ct,f=new i.TransposedBuilder;let m=null;g.registerVisitor({from:"autoFilter",to:"filter",openTag:t=>{t.copyTo("ref",lt)}}),g.registerVisitor({from:"conditionalFormatting",to:{},openTag:t=>{const e=t.getParent();e.conditionals||(e.conditionals=[]),e.conditionals.push(t.getSource());const s=t.getAttribute("sqref");s&&(t.getSource().ref=s.split(" ").join(",")),t.copyTo("pivot",rt)},closeTag:t=>{const e=t.getSource();if(e.rule){const t=Object.keys(e.rule);for(let s=0;s<t.length;s++){const i=t[s];"rule"!==i&&(e[i]=e.rule[i])}}delete e.rule}}),g.registerVisitor({from:"cfRule",to:"rule",openTag:t=>{const e=t.getParent();t.copyToObject(e,"type",lt),t.copyToObject(e,"priority",nt),t.copyToObject(e,"stopIfTrue",rt);const s=t.getAttribute("dxfId",nt);if(null!==s){let i=h?.get(s);i||(d?.(`Unable to load conditional color. Invalid dxfI: '${s}' at '${t.getPath()}'.`),i={}),e.style=i}t.copyToObject(e,"aboveAverage",rt),t.copyToObject(e,"equalAverage",rt),t.copyToObject(e,"stdDev",nt),t.copyToObject(e,"bottom",rt),t.copyToObject(e,"percent",rt),t.copyToObject(e,"rank",nt),t.copyToObject(e,"operator",lt),t.copyToObject(e,"text",lt),t.copyToObject(e,"timePeriod",lt)}}),g.registerVisitor({from:"colorScale",to:"colorScale"}),g.registerVisitor({from:"dataBar",to:"dataBar",openTag:t=>{t.copyTo("maxLength",nt),t.copyTo("minLength",nt),t.copyTo("showValue",rt)}}),g.registerVisitor({from:"iconSet",to:"iconSet",openTag:t=>{t.copyTo("iconSet",lt),t.copyTo("reverse",rt),t.copyTo("showValue",rt)}}),g.registerVisitor({from:"formula",to:null,text:(t,e)=>{const s=e.getParent();let i=s.formulas;i||(i=[],s.formulas=i),i.push(t)}}),g.registerVisitor({from:"cfvo",to:{},openTag:t=>{const e=t.getParent();e.conditions||(e.conditions=[]),e.conditions.push(t.getSource()),t.copyTo("type",lt),t.copyTo("value",at,"val"),t.copyTo("gte",rt)}}),g.registerVisitor({from:"color",to:{},openTag:t=>{const e=t.getParent();e.colors||(e.colors=[]);const s=gt(e=>t.getAttribute(e));e.colors.push(s)}}),g.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:t=>{const e=t.getParent();e.fields||(e.fields=[]),e.fields.push(t.getSource()),t.copyTo("offset",nt,"colId"),t.copyTo("hiddenButton",rt),t.copyTo("showButton",rt)}}),g.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:t=>{const e=t.getParent();e.criteria||(e.criteria=[]),e.criteria.push(t.getSource()),t.getSource().type=o.Type.Color,t.copyTo("cellColor",rt),t.copyTo("styleId",nt,"dxfId")}}),g.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:t=>{const e=t.getParent();e.criteria||(e.criteria=[]),e.criteria.push(t.getSource()),t.getSource().type=o.Type.Dynamic,t.copyTo("dynamicType",lt,"type"),t.copyTo("val",at),t.copyTo("maxVal",at,"maxVal")}}),g.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:t=>{const e=t.getParent();e.criteria||(e.criteria=[]),e.criteria.push(t.getSource()),t.getSource().type=o.Type.Icon,t.copyTo("iconId",nt),t.copyTo("iconSet",lt)}}),g.registerVisitor({from:"top10",to:"top10",openTag:t=>{const e=t.getParent();e.criteria||(e.criteria=[]),e.criteria.push(t.getSource()),t.getSource().type=o.Type.Top10,t.copyTo("filterVal",at),t.copyTo("percent",rt),t.copyTo("top",rt),t.copyTo("val",at)}}),g.registerVisitor({from:"filters",to:"filters",openTag:t=>{const e=t.getParent();e.criteria||(e.criteria=[]),e.criteria.push(t.getSource()),t.getSource().type=o.Type.Items,t.copyTo("blank",rt),t.copyTo("calendarType",lt)}}),g.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:t=>{const e=t.getParent();e.dateGroups||(e.dateGroups=[]),e.dateGroups.push(t.getSource()),t.copyTo("group",lt,"dateTimeGrouping"),t.copyTo("day",nt),t.copyTo("hour",nt),t.copyTo("minute",nt),t.copyTo("month",nt),t.copyTo("second",nt),t.copyTo("year",nt)}}),g.registerVisitor({from:"filter",to:"filter",openTag:t=>{const e=t.getParent();e.items||(e.items=[]),e.items.push(t.getAttribute("val",at))}}),g.registerVisitor({from:"customFilters",to:"customFilters",openTag:t=>{const e=t.getParent();e.criteria||(e.criteria=[]),e.criteria.push(t.getSource()),t.getSource().type=o.Type.Custom,t.copyTo("and",rt)}}),g.registerVisitor({from:"customFilter",to:"customFilter",openTag:t=>{const e=t.getParent();e.filters||(e.filters=[]),e.filters.push(t.getSource()),t.copyTo("operator",lt),t.copyTo("value",at,"val")}}),g.registerVisitor({from:"sortState",to:"sort",openTag:t=>{t.copyTo("ref",lt)}}),g.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:t=>{const e=t.getParent();e.fields||(e.fields=[]);const s=t.getSource();e.fields.push(s),t.copyTo("sortOn",lt,"sortBy"),t.copyTo("dxfId",lt,"sortBy"),t.copyTo("iconSet",lt),t.copyTo("customList",lt);const i=t.getAttribute("ref");if(i){const t=r.fastStringToRange(i,St).colStart,o=r.fastStringToRange(e.ref,St),n=o.colStart;s.offset=o?t-n:t}s.reverse=t.getAttribute("descending",rt)??!1}}),g.registerVisitor({from:"AlternateContent",to:null});const T=t=>{m=t.getSource(),t.copyTo("topLeft",lt,"topLeftCell");const e=xt(t.getAttribute("defaultGridColor")),s=t.getAttribute("colorId");null===s||e||(t.getSource().gridLineColor="index"+parseFloat(s)),t.copyTo("showZeros",rt),t.copyTo("showFormulas",rt),t.copyTo("zoomScale",nt),t.copyTo("showRowHeaders",rt,"showRowColHeaders"),t.copyTo("showColumnHeaders",rt,"showRowColHeaders"),t.copyTo("showRowGridlines",rt,"showGridLines"),t.copyTo("showColumnGridlines",rt,"showGridLines")};g.registerVisitor({from:"sheetView",to:"view",openTag:t=>{T(t)},closeTag:()=>{m=null}}),g.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:t=>{t.setSource([])}}),g.registerVisitor({from:"customSheetView",to:[],openTag:t=>{T(t)},closeTag:()=>{m=null}}),g.registerVisitor({from:"selection",to:"selection",openTag:t=>{if(!m)return;t.copyTo("cell",lt,"activeCell"),t.copyTo("rangeIndex",nt,"activeCellId");const e=t.getAttribute("activeCell"),s=t.getAttribute("sqref");s&&s!==e&&(t.getSource().ranges=s.split(" "))}}),g.registerVisitor({from:"pane",to:"pane",openTag:t=>{if(m&&"frozen"===t.getAttribute("state")){const e={};m.freezePanes=e,t.copyToObject(e,"topLeft",lt,"topLeftCell");const s=m.topLeft?r.fastStringToCell(m.topLeft):{colIndex:0,rowIndex:0},i={colIndex:0,rowIndex:0};t.copyToObject(i,"colIndex",nt,"xSplit"),t.copyToObject(i,"rowIndex",nt,"ySplit");const o={colIndex:s.colIndex+i.colIndex,rowIndex:s.rowIndex+i.rowIndex};e.coords=r.cellToString(o)}}}),g.registerVisitor({from:"tabColor",to:null,openTag:e=>{const s=gt(t=>e.getAttribute(t));s&&(t.tabColor=s)}}),g.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:t=>{}}),g.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:t=>{}}),g.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:t=>{}}),g.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:t=>{}}),g.registerVisitor({from:"printOptions",to:"printOptions",openTag:t=>{}}),g.registerVisitor({from:"mergeCells",to:"merges",openTag:t=>{t.setSource([])}}),g.registerVisitor({from:"mergeCell",to:[],openTag:t=>{const e=t.getAttribute("ref");t.setSource(e)}}),g.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:t=>{t.setSource([])}}),g.registerVisitor({from:"hyperlink",to:[],openTag:t=>{const e=t.getAttribute("r:id"),i=t.getAttribute("ref");if(!i)return void console.warn("No ref found for hyperlink");t.setKey(i);let o=e?s(e):"";if("string"!=typeof o)return void console.warn("Invalid address ",o);const r=t.getAttribute("location");o.endsWith("\\")&&(o=o.substring(0,o.length-1));const n=t.getAttribute("location");if(n&&(r&&r!==n&&console.warn("display and location are different",r,n),o+="#"+n),!o)return void console.warn("No address found for hyperlink. r:id",e);let a;const l=t.getAttribute("tooltip");a=l?{address:o,tooltip:l}:o,t.setSource({r:i,v:a})}}),g.registerVisitor({from:"drawing",to:"movables",openTag:t=>{const e=t.getAttribute("r:id");if(!e)return;const i=s(e);i?t.setSource(i.movables):console.warn("no drawing found for rId",e)}}),g.registerVisitor({from:"tableParts",to:"tables",openTag:t=>{t.setSource([])}}),g.registerVisitor({from:"tablePart",to:[],openTag:t=>{const e=t.getAttribute("r:id");if(!e)return;const i=s(e);i?t.setSource(i):console.warn("no table found for rId",e)}}),g.registerVisitor({from:"worksheet",to:"worksheet",openTag:t=>{}}),g.registerVisitor({from:"sheetProtection",to:"protection",openTag:t=>{let e=!1;if(t.hasAttribute("sheet")&&rt(t.getAttribute("sheet"))&&(e=!0),!e)return void t.setSource(void 0);const s=t=>!0===t||"1"===t||"on"===t||"true"===t||!1===t||"0"===t||"off"===t||"false"===t||null;t.copyTo("autoFilter",s),t.copyTo("deleteColumns",s),t.copyTo("formatCells",s),t.copyTo("formatColumns",s),t.copyTo("formatRows",s),t.copyTo("insertColumns",s),t.copyTo("insertHyperlinks",s),t.copyTo("insertRows",s),t.copyTo("objects",s),t.copyTo("pivotTables",s),t.copyTo("scenarios",s),t.copyTo("selectUnlockedCells",s),t.copyTo("selectUnlockedCells",s),t.copyTo("sort",s);const i={};t.copyToObject(i,"hash",lt,"hashValue"),t.copyToObject(i,"algorithm",lt,"algorithmName"),t.copyToObject(i,"salt",lt,"saltValue"),t.copyToObject(i,"spinCount",nt),Object.keys(i).length>0&&(t.getSource().password=i)}}),g.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:t=>{t.setSource({})}}),g.registerVisitor({from:"protectedRange",to:{},openTag:t=>{const e=t.getAttribute("sqref");t.setKey(e),t.copyTo("name"),t.copyTo("securityDescriptor");const s={};t.copyToObject(s,"hash",lt,"hashValue"),t.copyToObject(s,"algorithm",lt,"algorithmName"),t.copyToObject(s,"salt",lt,"saltValue"),t.copyToObject(s,"spinCount",nt),Object.keys(s).length>0&&(t.getSource().password=s)}}),g.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(t,"defaultColSize",at,"defaultColWidth"),e.copyToObject(t,"outlineLevelCol",nt,"outlineLevelCol");const s=e.getAttribute("customHeight");"1"!==s&&"true"!==s||e.copyToObject(t,"defaultRowSize",at,"defaultRowHeight"),e.copyToObject(t,"outlineLevelRow",nt,"outlineLevelRow")}}),g.registerVisitor({from:"cols",to:"cols",openTag:t=>{t.setSource([])}}),g.registerVisitor({from:"col",to:[],openTag:t=>{t.copyTo("min",t=>parseInt(t)-1),t.copyTo("max",t=>parseInt(t)-1),t.copyTo("sz",at,"width"),t.copyTo("cs",rt,"customWidth"),t.copyTo("h",rt,"hidden"),t.copyTo("l",nt,"outlineLevel"),t.copyTo("s",nt,"style")}}),g.registerVisitor({from:"oleObjects",to:null,openTag:t=>{t.warn("'OLE Objects' are not supported.")}});let y=null;const b={onOpenTag:t=>{null===y&&(y="")},onText:t=>{y+=t},onEnd:()=>{const t=c(y);return y=null,t},onError:t=>{}};return((t,s,i,o,c,h)=>{let u=!1,d=!1,p=[],g=!1,f=null,m=null,T=null,y=null,b=null,x=null;const w=h?.get("richData")??[],v=r.normalizeA1ToR1C1,S=n.createConflatingRanges(),C=new Map,k=[];let A=null;const D=n.createConflatingRanges();let E,P=!1,O=-1,I=-1,V=null,L=null;const N=[];let R=null,$=-2,M=0,j="",H="",F="",X="",B="",W="",_="",q="",z="",U="",G="",Z="",Q="",J="",K=!0,Y=null;return{...i,onEnd:()=>{N.length>0&&(s.rows=N);let e=S.done(vt);const o=e.length;if(o>0){const t=new Array(o);for(let s=0;s<o;s++){const i=e[s],o=r.rangeToString(i),n=i.value[1],a=r.resolveRelativeToA1(n,i.rowStart,i.colStart);t[s]=[o,a]}s.formulas=t}const a=D.done(!0),c=a.length;if(c>0){const t=new Array(c);for(let e=0;e<c;e++){const s=a[e],i=r.rangeToString(s);t[e]=i}s.volatile=t}if(k.length>0&&(s.dynamicArray=[...k]),p.length>0){p.sort(n.createRangeComparator(l.Orientation.Column));const t=[];let e=null,i=-1,o=-1,r=-1,a=-1,c=null;const h=p.length;h>0&&(e=p[0],i=e.colStart,o=e.colEnd,r=e.rowEnd,a=e.value,t.push(e));for(let s=1;s<h;s++)c=p[s],a!==c.value||i!==c.colStart||o!==c.colEnd||r+1!==c.rowEnd?(t.push(c),e=c,i=e.colStart,o=e.colEnd,r=e.rowEnd,a=e.value):(r=c.rowEnd,e.rowEnd=r);let u=[];for(let e=0;e<t.length;e++){const s=t[e];u.push({r:{colStart:s.colStart,colEnd:s.colEnd,rowStart:s.rowStart,rowEnd:s.rowEnd},v:s.value})}s.directStyles=u}const h=t.build();if(h){const t=h.tuples;s.data=t}i?.onEnd?.()},onOpenTag:t=>{let e=t.name;const s=e.indexOf(":");if(-1!==s&&(e=e.slice(s+1)),E){const s=t.attributes;switch(e){case"v":d=!0;break;case"f":switch(s.t??null){case null:case"normal":g=!0;break;case"shared":const t=s.si;m=s.ref,f=t;break;case"array":g=!0,m=s.ref,A=[m,!1];break;case"datatable":g=!0,m=s.ref,g=!0}void 0!==s.ca&&D.append(O,I);break;case"is":return void(P=!0)}return void(P&&c?.onOpenTag(t))}if(u){if("c"===e){E=t;const e=t.attributes.r;I=r.fastStringToCol(e);const s=t.attributes.t;void 0===s?L=null:(L=s,"str"===L&&(P=!0));let i=t.attributes.s;void 0!==i&&(i=parseInt(i),Y&&Y.value===i&&Y.colEnd+1===I?Y.colEnd=I:(Y={colStart:I,rowStart:O,colEnd:I,rowEnd:O,value:i},p.push(Y)))}}else{if("row"===e){u=!0;const e=t.attributes.r;if(O=parseInt(e)-1,M=0,H=t.attributes.customHeight,void 0!==H&&(M|=wt.CustomHeight),H!==z&&(K=!0,z=H),j=t.attributes.ht,void 0!==j&&(M|=wt.Ht),j!==q&&(K=!0,q=j),F=t.attributes.hidden,void 0!==F&&(M|=wt.Hidden),F!==U&&(K=!0,U=F),B=t.attributes.s,void 0!==B&&(M|=wt.S),B!==Z&&(K=!0,Z=B),X=t.attributes.customFormat,void 0!==X&&(M|=wt.CustomFormat),X!==G&&(K=!0,G=X),W=t.attributes.outlineLevel,void 0!==W&&(M|=wt.OutlineLevel),W!==Q&&(K=!0,Q=W),_=t.attributes.collapsed,void 0!==_&&(M|=wt.Collapsed),_!==J&&(K=!0,J=_),0!==M)if($+1!==O||K){const t=void 0!==H&&("1"===H||"true"===H),e=void 0!==X&&("1"===X||"true"===X);R={min:O,max:O,sz:t&&void 0!==j?parseFloat(j):-1,csz:t,h:void 0!==F&&("1"===F||"true"===F),s:t&&void 0!==B&&"0"!==B?parseInt(B):0,cs:e,l:void 0===W||"0"===W?0:parseInt(W),cl:void 0!==_&&("1"===_||"true"===_)},N.push(R)}else R.max=O;return $=O,void(K=!1)}i?.onOpenTag(t)}},onCloseTag:e=>{if(E){let s=e.name;const i=s.indexOf(":");if(-1!==i&&(s=s.slice(i+1)),P)if("is"===s||"v"===s){const e=c?.onEnd();null!==e&&t.addValue(O,I,""+e)}else c?.onCloseTag?.(e);return d&&(d=!1),void("c"===s&&(E=null,P=!1))}if(u)return u=!1,void(Y=null);i?.onCloseTag(e)},onText:s=>{if(s=s.trim(),d){switch(V=null,L){case null:case"n":V=parseFloat(s);break;case"b":V="1"===s||"true"===s;break;case"s":V=s;break;case"e":if("#VALUE!"===s){const t=E.attributes.vm;if(void 0!==t){const s=w[parseInt(t)-1];if(s&&s.isFormulaError){V={t:e.Error,v:s.getCode()};break}}}const t=a.getBuiltInByLabel(s);t?V={t:e.Error,v:t.getCode()}:(V=s,o?.(`Unknown formula error '${s}' in cell ${r.cellToString({colIndex:I,rowIndex:O})}`));break;case"str":case"inlineStr":P=!0}null!==V&&t.addValue(O,I,V)}if(A&&("e"===L&&(A[1]=!0),k.push(A),A=null),f)if(b===f)y=x;else{if(y=C.get(f),!y){const t=[];T=v(s,O,I,t),y=[T,t,s],C.set(f,y)}b=f,x=y}if(g){const t=[];T=v(s,O,I,t),y=[T,t,s]}if(y)return S.append(O,I,y),y=null,g=!1,f=null,void(m=null);P?c?.onText(s):u||i?.onText(s)}}})(f,t,g.createEventHandler(t,()=>{},d),d,b,p)})(t,(t,e=!1)=>I(t,p,e)??null,j,S,0,t=>{m&&(t=p+": "+t,m?.(t))},A),h=ht(p,P),d=await(async(t,e=8388608)=>{await(async()=>{if("undefined"==typeof ReadableStream)if("undefined"==typeof window){const{ReadableStream:t}=await import("./DeXfOSxGE_Ez7DZq.mjs");globalThis.ReadableStream=t}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const s=new TextDecoder("utf-8");let i=0;const o=t instanceof Uint8Array?t:new Uint8Array(t);return new ReadableStream({pull(t){if(i>=o.byteLength)return void t.close();const r=o.subarray(i,Math.min(i+e,o.byteLength)),n=s.decode(r,{stream:i+e<o.byteLength});t.enqueue(n),i+=r.length}}).getReader()})(h);try{await it.parseStream(d,s,{xmlns:!1})}catch(t){throw console.warn(`Error parsing sheet: '${p}'`,t),new Error(`Error parsing sheet: '${p}'`,{cause:t})}const g=O(p,u);let f,T=new Map;if(g){const e="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let s;g.forEach((t,s)=>{if(t.type===e){const t=I(s,p,!1,u);f=t?.comments,f&&f.forEach(t=>{T.set(t.id,t)})}});const i="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(g.forEach((t,e)=>{if(t.type===i){const t=I(e,p,!1,u);s=t}}),s||f){const e=f??[],i=s?.comments;if(i){const t=s?.authors;for(let s=0;s<i.length;s++){const o=i[s];let r=void 0!==o.authorId?t[o.authorId]:void 0;if((!r||r.startsWith("tc="))&&(r=ft(r.substring(3)),T.has(r)))continue;let n=H.get(r);n||(n=F.get(r)),n||(n={id:c.uuidV4(),displayName:r},F.set(n.displayName,n),H.set(n.id,n)),r=n?.id??null;const a={id:c.uuidV4(),personId:r,ref:o.ref,done:!1,asNote:!0,content:o.content};e.push(a)}}t.comments=e}}};E.push(s())}else C=h?ht(p,P,t=>{const e=y.add({buffer:t});return e.addReference(x),v.add(e),b.toResourceId(e)},V):ut(p,P,f,g,V)}return C},V={paramMap:A,getRefs:O,getRef:I,parsedRefs:D,onWarning:m,addPerson:t=>null},L=[];let N=0;p.Strings&&(N=parseInt(p.Strings.Unique??p.Strings.length??0));const R=p.Strings??[];for(let t=0;t<N;t++)L.push(R[t]?.t??"");const $=new Map;let M=N;const j=t=>{const e=$.get(t);if(void 0!==e)return e;const s=M;return $.set(t,M++),L.push(t),s},H=(dt("richstructure",p,f,g,V),dt("richdata",p,f,g,V),new Map),F=new Map,X=dt("people",p,f,g);let B=null;if(X.size>0&&(B=X.entries().next()?.value?.[1]?.persons,B)){const t=B.length;for(let e=0;e<t;e++){const t=B[e];H.set(t.id,t),H.set(t.displayName,t)}}const W=dt("themes",p,f,g,V);let _=null;if(W&&W.entries){let t=W.entries().next();t?.value?.[1]&&(_=t.value[1])}const q=new h(_),z=dt("styles",p,f,g,V);let U=z.entries().next()?.value[1];U&&(U=JSON.parse(u(U)));const G=dt("workbooks",p,f,g,V);await Promise.all(E);const Z={...G.entries().next().value[1],styles:U,theme:q.toJSON()};L.length>0&&(Z.strings=L),B&&B.length>0&&(Z.people=B);const Q={...T,resources:y,json:Z},J=new d(Q);return v.forEach(t=>{t.deleteReference(x)}),b.endPersist(),J}catch(t){let e="Unable to parse XLSX.";throw t instanceof g&&(e="Unable to open XLSX. There are too many rows or columns."),new Error(e,{cause:t})}},toBufferXLSX:async(s,i)=>{const o=await import("./M4hZ25330e96seUM.mjs"),r=await s.toJSON(!0),n=o.utils.book_new();for(let i=0;i<r.sheets.length;i++){const a=r.sheets[i],l=o.utils.json_to_sheet([{}]);o.utils.book_append_sheet(n,l,a.name);const c=a.sheet,h=s.getSheetAt(i),u=h.getUsedRange();if(u?(l["!ref"]=u.getA1(),u.forEach((s,i)=>{const o={t:"z"},r=i.getCell().getStyle();if(!r.isNormal()){let e=r.getNumberFormat();e!==t.Type.General&&(e===t.Type.ShortDate?e="m/d/yyyy":e===t.Type.MediumDate?e="d-mmm-yy":e===t.Type.LongDate?e="[$-x-sysdate]dddd, mmmm dd, yyyy":e===t.Type.ShortTime?e="h:mm":e===t.Type.MediumTime?e="h:mm AM/PM":e===t.Type.LongTime&&(e="h:mm:ss AM/PM"),o.z=e)}if(null!==s)switch(i.getType()){case e.Number:o.t="n",o.v=s;break;case e.String:o.t="s",o.v=s;break;case e.Boolean:o.t="b",o.v=s;break;case e.Error:o.t="e",o.v=s.toString();case e.RichData:}l[i.getA1()]=o})):l["!ref"]="A1:A1",c.merges?.length>0){const t=[];l["!merges"]=t;for(let e=0;e<c.merges.length;e++)t.push(o.utils.decode_range(c.merges[e]))}if(c.cols?.length>0){const t=[];l["!cols"]=t;const e=c.cols,s={width:c.defaultColSize??h.getColumnWidthAsFontUnit(h.getColumnHeaders().getDefaultSize())};for(let i=0;i<e.length;i++){const o=e[i];for(let e=t.length;e<=o.min-1;e++)t.push(s);const r={};void 0!==o.sz&&(r.width=o.sz),void 0!==o.h&&(r.hidden=o.h),void 0!==o.l&&(r.level=o.l);for(let e=o.min;e<=o.max;e++)t.push(r)}}}return o.write(n,{type:"array",bookType:"xlsx"}),o.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));export{yt as a,xt as b,Tt as c,gt as d,Ct as i,bt as p,ft as r,mt as t};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import{r as a,t,q as n,j as o,s as e,B as s,F as i,T as p,c as l,d as r,K as u}from"./C3cyAbIH8Qc8MIFN.mjs";const c=["Input"],d=a.memo(a.forwardRef((d,g)=>{const{initialValue:m="",onOption:f,onValidateOption:h,onInputOption:x,onValidateInputOption:O,onDone:y,inputProps:w,inputLabel:T,inputType:F,inputPlaceHolder:j,options:I=c,autoFocusSel:P=".autoFocus",cancelOption:S,defaultOption:v=I?.[0],...C}=d,[b,k]=a.useState(!1),[V,B]=a.useState(m),[D,H]=a.useState(""),[K,L]=a.useState(!0),M=t(async(a,t)=>{if(!O)return!0;const n=await(O?.(a,t));H(n?.message??"");const o=n?.valid??!0;return L(o),o},[O]),N=t(async a=>{x?.(V,a)},[V,x,y,f,S,v]),$=t(async a=>{a.keyCode===n.Enter&&await(M?.(V,null))},[V,N]),q=t(a=>{B(a.target.value),M?.(a.target.value,null)},[h]),z=t(async a=>{let t=await M(V,a);try{!1!==t&&(t=await M(V,a))}catch(a){}return t??!0},[V,h]);return o.jsx(e,{options:I,onDone:y,onOption:(a,t)=>{t||N(a)},onValidateOption:z,cancelOption:S,defaultOption:v,autoFocusSel:P,ref:g,...C,children:o.jsx(s,{sx:{paddingTop:a=>a.spacing(1),paddingBottom:a=>a.spacing(0)},children:o.jsx(i,{sx:{paddingTop:a=>a.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:o.jsx(p,{onFocus:a=>{b||a.target?.select(),k(!0)},type:F,label:T,helperText:D||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:a=>a.spacing(.5),color:K?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:j,spellCheck:!1,autoComplete:"off",...w,className:r("autoFocus",w?.className),sx:{paddingTop:a=>a.spacing(1.25),paddingBottom:a=>a.spacing(.75),backgroundImage:`linear-gradient(${l("#fff",u(5))}, ${l("#fff",u(5))})`}}},value:V,onChange:q,onKeyDown:$,onContextMenu:a=>{a.stopPropagation()}})})})})}));export{d as default};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- var e,t,r={},n={},o={},i={},a={};function s(){if(t)return a;t=1;var e=a&&a.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},r=a&&a.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(a,"__esModule",{value:!0}),a.JsDelivrSourceResolver=void 0;var n=function(){function t(){}return t.prototype.resolvePackageJson=function(t,n,o){return e(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(n?"@".concat(n):"").concat(o?"/".concat(o):"","/package.json"))];case 1:return[2,e.sent()]}})})},t.prototype.resolveSourceFile=function(t,n,o){return e(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(n?"@".concat(n):"","/").concat(o))];case 1:return[2,e.sent()]}})})},t.prototype.resolveFile=function(t){return e(this,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(e=r.sent()).ok?[4,e.text()]:[3,3];case 2:return[2,r.sent()];case 3:if(404===e.status)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},t}();return a.JsDelivrSourceResolver=n,a}var c,u,l,p={},h={};function f(){if(u)return c;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",o=0):o=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}u=1;var r={resolve:function(){for(var r,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===r&&(r=process.cwd()),a=r),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0))}return n=t(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(r){if(e(r),0===r.length)return".";var n=47===r.charCodeAt(0),o=47===r.charCodeAt(r.length-1);return 0!==(r=t(r,!n)).length||n||(r="."),r.length>0&&o&&(r+="/"),n?"/"+r:r},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var o=arguments[n];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=r.resolve(t))===(n=r.resolve(n)))return"";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var c=n.length-s,u=a<c?a:c,l=-1,p=0;p<=u;++p){if(p===u){if(c>u){if(47===n.charCodeAt(s+p))return n.slice(s+p+1);if(0===p)return n.slice(s+p)}else a>u&&(47===t.charCodeAt(o+p)?l=p:0===p&&(l=0));break}var h=t.charCodeAt(o+p);if(h!==n.charCodeAt(s+p))break;47===h&&(l=p)}var f="";for(p=o+l+1;p<=i;++p)p!==i&&47!==t.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(s+l):(s+=l,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var s=r.length-1,c=-1;for(n=t.length-1;n>=0;--n){var u=t.charCodeAt(n);if(47===u){if(!a){o=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===r.charCodeAt(s)?-1===--s&&(i=n):(s=-1,i=c))}return o===i?i=c:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===o&&(i=!1,o=s+1),46===c?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,l=t.length-1,p=0;l>=n;--l)if(47!==(o=t.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===o?-1===a?a=l:1!==p&&(p=1):-1!==a&&(p=-1);else if(!u){s=l+1;break}return-1===a||-1===c||0===p||1===p&&a===c-1&&a===s+1?-1!==c&&(r.base=r.name=0===s&&i?t.slice(1,c):t.slice(s,c)):(0===s&&i?(r.name=t.slice(1,a),r.base=t.slice(1,c)):(r.name=t.slice(s,a),r.base=t.slice(s,c)),r.ext=t.slice(a,c)),s>0?r.dir=t.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,c=r}var d,v={};function y(){if(d)return v;d=1;var e=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v,"__esModule",{value:!0}),v.importResourcePathToString=void 0;var t=e(f());return v.importResourcePathToString=function(e){var r;switch(e.kind){case"package":return t.default.join(e.packageName,null!==(r=e.importPath)&&void 0!==r?r:"","package.json");case"relative":return t.default.join(e.sourcePath,e.importPath);case"relative-in-package":return t.default.join(e.packageName,e.sourcePath,e.importPath)}},v}var g,m={};function b(){return g||(g=1,Object.defineProperty(m,"__esModule",{value:!0}),m.invokeUpdate=void 0,m.invokeUpdate=function(e,t){var r,n="".concat(e.type,": ");switch(e.type){case"CodeChanged":case"ResolveNewImports":n+="";break;case"LookedUpTypeFile":n+='"'.concat(e.path,'" was ').concat(e.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":n+='"'.concat(e.path,'" was ').concat(e.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":n+='package.json for package "'.concat(e.package,'" was ').concat(e.success?"sucessfully":"not sucessfully"," looked up").concat(e.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":n+='"'.concat(e.importPath,'" was loaded from cache');break;case"StoredToCache":n+='"'.concat(e.importPath,'" was stored to cache')}n.endsWith(": ")&&(n=n.slice(void 0,-2)),null===(r=t.onUpdate)||void 0===r||r.call(t,e,n)}),m}var k,w,_,P,O={};function j(){if(k)return O;k=1,Object.defineProperty(O,"__esModule",{value:!0}),O.RecursionDepth=void 0;var e=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),this.options=e,this.fileRecursionDepth=t,this.packageRecursionDepth=r}return e.prototype.nextPackage=function(){return new e(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},e.prototype.nextFile=function(){return new e(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},e.prototype.same=function(){return new e(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},e.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},e}();return O.RecursionDepth=e,O}function R(){if(w)return p;w=1;var e=p&&p.__assign||function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)},t=p&&p.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=p&&p.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},i=p&&p.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=p&&p.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=p&&p.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(p,"__esModule",{value:!0}),p.ImportResolver=void 0;var c=function(){if(l)return h;l=1;var e=h&&h.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=h&&h.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=h&&h.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=h&&h.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(h,"__esModule",{value:!0}),h.DependencyParser=void 0;var i=r(f()),a=function(){function e(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return e.prototype.parseDependencies=function(e,t){var r=this;return o([],n(e.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(e){var t,r;return null!==(r=null!==(t=e[1])&&void 0!==t?t:e[2])&&void 0!==r?r:e[3]}).filter(function(e){return!!e}).map(function(e){return r.resolvePath(e,t)})},e.prototype.resolvePath=function(e,t){var r=e.match(this.REGEX_NODE_MODULE);if(r)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(r[1],".d.ts"),sourcePath:""};if("string"==typeof t){if(e.startsWith("."))return{kind:"relative",importPath:e,sourcePath:t};if(e.startsWith("@")){var n=e.split("/");return{kind:"package",packageName:"".concat(n[0],"/").concat(n[1]),importPath:n.slice(2).join("/")}}return{kind:"package",packageName:(n=e.split("/"))[0],importPath:n.slice(1).join("/")}}switch(t.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return e.startsWith(".")?{kind:"relative-in-package",packageName:t.packageName,sourcePath:i.join(t.sourcePath,t.importPath),importPath:e}:e.startsWith("@")?(n=e.split("/"),{kind:"package",packageName:"".concat(n[0],"/").concat(n[1]),importPath:n.slice(2).join("/")}):{kind:"package",packageName:(n=e.split("/"))[0],importPath:n.slice(1).join("/")}}},e}();return h.DependencyParser=a,h}(),u=y(),d=n(f()),v=b(),g=j(),m=function(){function t(e){var t,r;if(this.options=e,this.loadedFiles=[],this.dependencyParser=new c.DependencyParser,this.cache=e.sourceCache,this.sourceResolver=e.sourceResolver,this.newImportsResolved=!1,this.monaco=e.monaco,e.preloadPackages&&e.versions){this.versions=e.versions;try{for(var n=a(Object.entries(e.versions)),o=n.next();!o.done;o=n.next()){var i=s(o.value,2),u=i[0];i[1],this.resolveImport({kind:"package",packageName:u,importPath:""},new g.RecursionDepth(this.options)).catch(function(e){console.error(e)})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}}return t.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},t.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},t.prototype.resolveImportsInFile=function(e,t,r){var n,s,c;return o(this,void 0,void 0,function(){var o,u,l,p,h,f,d,v;return i(this,function(i){switch(i.label){case 0:if(r.shouldStop())return[2];o=this.dependencyParser.parseDependencies(e,t),i.label=1;case 1:i.trys.push([1,8,9,10]),u=a(o),l=u.next(),i.label=2;case 2:if(l.done)return[3,7];p=l.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,this.resolveImport(p,r)];case 4:return i.sent(),[3,6];case 5:return h=i.sent(),this.options.onError?null===(s=(n=this.options).onError)||void 0===s||s.call(n,null!==(c=h.message)&&void 0!==c?c:h):console.error(h),[3,6];case 6:return l=u.next(),[3,2];case 7:return[3,10];case 8:return f=i.sent(),d={error:f},[3,10];case 9:try{l&&!l.done&&(v=u.return)&&v.call(u)}finally{if(d)throw d.error}return[7];case 10:return[2]}})})},t.prototype.resolveImport=function(e,t){return o(this,void 0,void 0,function(){var r,n;return i(this,function(o){switch(o.label){case 0:if(r=this.hashImportResourcePath(e),this.loadedFiles.includes(r))return[2];switch(this.loadedFiles.push(r),e.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(e)];case 2:return(n=o.sent())?[4,this.resolveImportInPackage(n,t.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,o.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(e,t.nextFile())];case 8:return[2]}})})},t.prototype.resolveImportInPackage=function(e,t){return o(this,void 0,void 0,function(){var r,n,o;return i(this,function(i){switch(i.label){case 0:return[4,this.loadSourceFileContents(e)];case 1:return(r=i.sent())?(n=r.source,o=r.at,this.createModel(n,this.monaco.Uri.parse(this.options.fileRootPath+d.join("node_modules/".concat(e.packageName),o))),[4,this.resolveImportsInFile(n,{kind:"relative-in-package",packageName:e.packageName,sourcePath:d.dirname(o),importPath:""},t)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})},t.prototype.resolveImportFromPackageRoot=function(e){var t,r,n,a,s,c,u,l,p;return o(this,void 0,void 0,function(){var o,h,f,y,g,m,b,k,w;return i(this,function(i){switch(i.label){case 0:return o={type:"LookedUpPackage",package:e.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||(null===(t=this.versions)||void 0===t?void 0:t[e.packageName])||(null===(r=this.versions)||void 0===r?void 0:r["@types/"+e.packageName])?(h=null!==(a=null===(n=e.importPath)||void 0===n?void 0:n.length)&&void 0!==a&&a,f=h?"/".concat(e.importPath):"",[4,this.resolvePackageJson(e.packageName,null===(s=this.versions)||void 0===s?void 0:s[e.packageName],h?e.importPath:void 0)]):((0,v.invokeUpdate)(o,this.options),[2]);case 1:return(y=i.sent())||!h?[3,3]:[4,this.resolvePackageJson(e.packageName,null===(c=this.versions)||void 0===c?void 0:c[e.packageName])];case 2:y=i.sent(),f="",i.label=3;case 3:return y?(g=JSON.parse(y)).typings||g.types?(w=g.typings||g.types,this.createModel(y,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(e.packageName).concat(f,"/package.json"))),(0,v.invokeUpdate)({type:"LookedUpPackage",package:e.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(e.packageName,g.version),[2,{kind:"relative-in-package",packageName:e.packageName,sourcePath:"",importPath:d.join(null!==(u=e.importPath)&&void 0!==u?u:"",w.startsWith("./")?w.slice(2):w)}]):[3,4]:[3,7];case 4:return m="@types/".concat(e.packageName.startsWith("@")?e.packageName.slice(1).replace(/\//,"__"):e.packageName),[4,this.resolvePackageJson(m,null===(l=this.versions)||void 0===l?void 0:l[m])];case 5:if(b=i.sent()){if((k=JSON.parse(b)).typings||k.types)return w=k.typings||k.types,this.createModel(b,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(m,"/package.json"))),(0,v.invokeUpdate)({type:"LookedUpPackage",package:m,definitelyTyped:!0,success:!0},this.options),this.setVersion(m,k.version),[2,{kind:"relative-in-package",packageName:m,sourcePath:"",importPath:d.join(null!==(p=e.importPath)&&void 0!==p?p:"",w.startsWith("./")?w.slice(2):w)}];(0,v.invokeUpdate)(o,this.options)}else(0,v.invokeUpdate)(o,this.options);i.label=6;case 6:return[3,8];case 7:(0,v.invokeUpdate)(o,this.options),i.label=8;case 8:return[2]}})})},t.prototype.loadSourceFileContents=function(e){return o(this,void 0,void 0,function(){var t,r,n,o,s,c,u,l,p,h,f,y,g,m,b,k;return i(this,function(i){switch(i.label){case 0:return t=d.join(e.packageName,e.sourcePath,e.importPath),r={type:"LookedUpTypeFile",path:t,definitelyTyped:!1,success:!1},n=e.packageName,o=this.getVersion(e.packageName),(s=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(t){return e.importPath.endsWith(t)}).reduce(function(e,t){return e||t},!1)?[4,this.resolveSourceFile(n,o,d.join(e.sourcePath,e.importPath))]:[3,2];case 1:return(m=i.sent())?[2,{source:m,at:d.join(e.sourcePath,e.importPath)}]:[3,9];case 2:i.trys.push([2,7,8,9]),c=a(s),u=c.next(),i.label=3;case 3:return u.done?[3,6]:(l=u.value,p=d.join(e.sourcePath,e.importPath),g=(".d.ts"===l&&p.endsWith(".js")?p.slice(0,-3):p)+l,[4,this.resolveSourceFile(n,o,g)]);case 4:if(m=i.sent(),(0,v.invokeUpdate)({type:"AttemptedLookUpFile",path:d.join(n,g),success:!!m},this.options),m)return(0,v.invokeUpdate)({type:"LookedUpTypeFile",path:d.join(n,g),success:!0},this.options),[2,{source:m,at:g}];i.label=5;case 5:return u=c.next(),[3,3];case 6:return[3,9];case 7:return h=i.sent(),b={error:h},[3,9];case 8:try{u&&!u.done&&(k=c.return)&&k.call(c)}finally{if(b)throw b.error}return[7];case 9:return[4,this.resolvePackageJson(n,o,d.join(e.sourcePath,e.importPath))];case 10:return(f=i.sent())&&(y=JSON.parse(f).types)?(g=d.join(e.sourcePath,e.importPath,y),[4,this.resolveSourceFile(n,o,g)]):[3,12];case 11:if(m=i.sent())return(0,v.invokeUpdate)({type:"LookedUpTypeFile",path:d.join(n,g),success:!0},this.options),[2,{source:m,at:g}];i.label=12;case 12:return(0,v.invokeUpdate)(r,this.options),[2,null]}})})},t.prototype.getVersion=function(e){var t;return null===(t=this.versions)||void 0===t?void 0:t[e]},t.prototype.setVersions=function(e){var t,r;this.versions=e,null===(r=(t=this.options).onUpdateVersions)||void 0===r||r.call(t,e)},t.prototype.setVersion=function(t,r){var n;this.setVersions(e(e({},this.versions),((n={})[t]=r,n)))},t.prototype.createModel=function(e,t){t=t.with({path:t.path.replace("@types/","")}),this.monaco.editor.getModel(t)||(this.monaco.editor.createModel(e,"typescript",t),this.newImportsResolved=!0)},t.prototype.hashImportResourcePath=function(e){return(0,u.importResourcePathToString)(e)},t.prototype.resolvePackageJson=function(e,t,r){return o(this,void 0,void 0,function(){var n,o,a,s;return i(this,function(i){switch(i.label){case 0:return n=d.join(e+(t?"@".concat(t):""),null!=r?r:"","package.json"),o=!1,a=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(n)]:[3,2];case 1:return o=i.sent(),[3,4];case 2:return[4,this.cache.getFile(n)];case 3:a=i.sent(),o=void 0!==a,i.label=4;case 4:return o?null==a?[3,5]:(s=a,[3,7]):[3,8];case 5:return[4,this.cache.getFile(n)];case 6:s=i.sent(),i.label=7;case 7:return[2,s];case 8:return[4,this.sourceResolver.resolvePackageJson(e,t,r)];case 9:return(a=i.sent())&&this.cache.storeFile(n,a),[2,a]}})})},t.prototype.resolveSourceFile=function(e,t,r){return o(this,void 0,void 0,function(){var n,o,a,s;return i(this,function(i){switch(i.label){case 0:return n=d.join(e+(t?"@".concat(t):""),r),o=!1,a=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(n)]:[3,2];case 1:return o=i.sent(),[3,4];case 2:return[4,this.cache.getFile(n)];case 3:a=i.sent(),o=void 0!==a,i.label=4;case 4:return o?((0,v.invokeUpdate)({type:"LoadedFromCache",importPath:n},this.options),null==a?[3,5]:(s=a,[3,7])):[3,8];case 5:return[4,this.cache.getFile(n)];case 6:s=i.sent(),i.label=7;case 7:return[2,s];case 8:return[4,this.sourceResolver.resolveSourceFile(e,t,r)];case 9:return(a=i.sent())&&((0,v.invokeUpdate)({type:"StoredToCache",importPath:n},this.options),this.cache.storeFile(n,a)),[2,a]}})})},t}();return p.ImportResolver=m,p}function C(){if(_)return o;_=1;var t=o&&o.__assign||function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},r=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=o&&o.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=o&&o.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t},c=o&&o.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},u=o&&o.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},l=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.AutoTypingsCore=void 0;var p=function(){if(e)return i;e=1,Object.defineProperty(i,"__esModule",{value:!0}),i.DummySourceCache=void 0;var t=function(){function e(){}return e.prototype.getFile=function(e){return Promise.resolve(void 0)},e.prototype.isFileAvailable=function(e){return Promise.resolve(!1)},e.prototype.storeFile=function(e,t){return Promise.resolve(void 0)},e.prototype.clear=function(){return Promise.resolve(void 0)},e}();return i.DummySourceCache=t,i}(),h=s(),d=R(),v=a(f()),y=b(),g=j(),m=function(){function e(e,r){var n=this;this.editor=e,this.options=r,this.disposables=[],this.importResolver=new d.ImportResolver(r);var o=e.onDidChangeModelContent(function(e){n.debouncedResolveContents()});this.disposables.push(o),this.resolveContents(),r.dontAdaptEditorOptions||r.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(t(t({},r.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:r.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:r.fileRootPath}))}return e.create=function(r,n){var o,i;return c(this,void 0,void 0,function(){var a;return u(this,function(s){if((null==n?void 0:n.shareCache)&&n.sourceCache&&!e.sharedCache&&(e.sharedCache=n.sourceCache),!(a=null==n?void 0:n.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new e(r,t(t({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:null!==(o=e.sharedCache)&&void 0!==o?o:new p.DummySourceCache,sourceResolver:null!==(i=null==n?void 0:n.sourceResolver)&&void 0!==i?i:new h.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},n),{monaco:a}))]})})},e.prototype.dispose=function(){var e,t;try{for(var r=l(this.disposables),n=r.next();!n.done;n=r.next())n.value.dispose()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.setVersions=function(e){this.importResolver.setVersions(e),this.options.versions=e},e.prototype.clearCache=function(){return c(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return e.sent(),[2]}})})},e.prototype.debouncedResolveContents=function(){var e=this;this.isResolving||((0,y.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(void 0!==this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return c(e,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.resolveContents()];case 1:return e.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},e.prototype.resolveContents=function(){var e;return c(this,void 0,void 0,function(){var t,r,n,o;return u(this,function(i){switch(i.label){case 0:if(this.isResolving=!0,(0,y.invokeUpdate)({type:"ResolveNewImports"},this.options),!(t=this.editor.getModel()))throw Error("No model");r=t.getLinesContent(),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(r.join("\n"),v.dirname(t.uri.toString()),new g.RecursionDepth(this.options))];case 2:return i.sent(),[3,4];case 3:if(n=i.sent(),!this.options.onError)throw n;return this.options.onError(null!==(e=n.message)&&void 0!==e?e:n),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(o=this.editor.getPosition(),t.setValue(t.getValue()),o&&this.editor.setPosition(o)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},e}();return o.AutoTypingsCore=m,o}var S,x,A,D,E,F,T,N,I,M={},U={},L={},G={},J={},V={};const W=function(e,t){for(var r=0;r<t.length;r++){const n=t[r];if("string"!=typeof n&&!Array.isArray(n))for(const t in n)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[I?N:(I=1,N=function(){return T||(T=1,e=r,t=r&&r.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=r&&r.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)},Object.defineProperty(e,"__esModule",{value:!0}),o(function(){if(P)return n;P=1;var e,t=n&&n.__extends||(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.AutoTypings=void 0;var r=function(e){function r(t,r){return e.call(this,t,r)||this}return t(r,e),r}(C().AutoTypingsCore);return n.AutoTypings=r,n}(),e),o(y(),e),o(function(){if(S)return M;S=1;var e=M&&M.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},t=M&&M.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},r=M&&M.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(M,"__esModule",{value:!0}),M.LocalStorageCache=void 0;var n=function(){function n(){this.localCache={}}return n.prototype.getFile=function(r){var o;return e(this,void 0,void 0,function(){return t(this,function(e){try{return[2,null!==(o=localStorage.getItem(n.LOCALSTORAGE_PREFIX+r))&&void 0!==o?o:void 0]}catch(e){return[2,this.localCache[r]]}return[2]})})},n.prototype.storeFile=function(r,o){return e(this,void 0,void 0,function(){return t(this,function(e){this.localCache[r]=o;try{localStorage.setItem(n.LOCALSTORAGE_PREFIX+r,o)}catch(e){}return[2]})})},n.prototype.clear=function(){return e(this,void 0,void 0,function(){var e,o,i,a,s,c,u;return t(this,function(t){for(this.localCache={},e=[],o=0;o<localStorage.length;o++)(null==(s=localStorage.key(o))?void 0:s.startsWith(n.LOCALSTORAGE_PREFIX))&&e.push(s);try{for(i=r(e),a=i.next();!a.done;a=i.next())s=a.value,localStorage.removeItem(s)}catch(e){c={error:e}}finally{try{a&&!a.done&&(u=i.return)&&u.call(i)}finally{if(c)throw c.error}}return[2]})})},n.LOCALSTORAGE_PREFIX="__autotyper_cache_",n}();return M.LocalStorageCache=n,M}(),e),o((x||(x=1,Object.defineProperty(U,"__esModule",{value:!0})),U),e),o((A||(A=1,Object.defineProperty(L,"__esModule",{value:!0})),L),e),o((D||(D=1,Object.defineProperty(G,"__esModule",{value:!0})),G),e),o((E||(E=1,Object.defineProperty(J,"__esModule",{value:!0})),J),e),o(function(){if(F)return V;F=1;var e=V&&V.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},t=V&&V.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(V,"__esModule",{value:!0}),V.UnpkgSourceResolver=void 0;var r=function(){function r(){}return r.prototype.resolvePackageJson=function(r,n,o){return e(this,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(r).concat(n?"@".concat(n):"").concat(o?"/".concat(o):"","/package.json"))];case 1:return[2,e.sent()]}})})},r.prototype.resolveSourceFile=function(r,n,o){return e(this,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(r).concat(n?"@".concat(n):"","/").concat(o))];case 1:return[2,e.sent()]}})})},r.prototype.resolveFile=function(r){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return[4,fetch(r,{method:"GET"})];case 1:return(e=t.sent()).ok?[4,e.text()]:[3,3];case 2:return[2,t.sent()];case 3:if(404===e.status)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(r));case 4:return[2]}})})},r}();return V.UnpkgSourceResolver=r,V}(),e),o(s(),e)),r;var e,t,o}())]);export{W as c};