@sheetxl/studio-vanilla 0.4.13 → 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 (314) 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/{cdn/assets/DHydjLSnijEgtpyU.js → browser/esm/4eRu4yzXkvCBip8J.mjs} +1 -1
  62. package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
  63. package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
  64. package/{cdn/assets/C3EFzvmp0DcC_HAx.js → browser/esm/B4ji-HZTY0uvH8r7.mjs} +1 -1
  65. package/{cdn/assets/D-5VYBO5_VEh6fEW.js → browser/esm/B8TNpfJ8ymQcPriE.mjs} +1 -1
  66. package/browser/esm/BBDu-GNDE7ZA-1sJ.mjs +56 -0
  67. package/{cdn/assets/BwpBFv8Ks2ka07ch.js → browser/esm/BF5nlSYZ38RJ0dPX.mjs} +1 -1
  68. package/{cdn/assets/B1Iys8a964LGNZKf.js → browser/esm/BHy77Km4i4t5U7ka.mjs} +1 -1
  69. package/{cdn/assets/BMiA9p1uOrwnooVT.js → browser/esm/BIUVt79NHXdZx2Dz.mjs} +1 -1
  70. package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
  71. package/{cdn/assets/BUwNyHytF9St68tJ.js → browser/esm/BPen6C7JE2sWVgdi.mjs} +1 -1
  72. package/{cdn/assets/DvFNLgeMJ9LdQROu.js → browser/esm/BUqd1uVUNoWmepd2.mjs} +54 -55
  73. package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
  74. package/{cdn/assets/BL6TUDSeou6wPejW.js → browser/esm/BZxAttR2mi9td3k1.mjs} +1 -1
  75. package/{cdn/assets/C4vStn7wNlvrxdsp.js → browser/esm/B_pEA9HeXKvEOCdS.mjs} +1 -1
  76. package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
  77. package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
  78. package/{cdn/assets/BciokME96sykArSM.js → browser/esm/BfFDvyaRcdKS0wPD.mjs} +1 -1
  79. package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
  80. package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
  81. package/{cdn/assets/CrLrvmlJhYpNpXqR.js → browser/esm/BvYUsRgBXLSuaQ-S.mjs} +1 -1
  82. package/{cdn/assets/C-Z8wvIy20kJ7R-k.js → browser/esm/BzE-61bmpRQzEVPt.mjs} +1 -1
  83. package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
  84. package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
  85. package/{cdn/assets/XysyS9rk9tFdbzZh.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
  86. package/{cdn/assets/DXtbonLk2ESfF4Dh.js → browser/esm/CITPwlsNzJvv551I.mjs} +1 -1
  87. package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
  88. package/{cdn/assets/C5q0qaKi2eeDgoO8.js → browser/esm/CN73n4VDayKh_l1J.mjs} +1 -1
  89. package/{cdn/assets/B2RAJJJFkcaWUfUW.js → browser/esm/CcARDY0PFSWkqsG9.mjs} +1 -1
  90. package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
  91. package/{cdn/assets/BBJxLS-wB_nXRnI2.js → browser/esm/Cmtx4dAVZrwq5cVO.mjs} +1 -1
  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/{cdn/assets/CuNqTH3P8mCglRiz.js → browser/esm/D9eVsUckA6bWBHni.mjs} +1 -1
  96. package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
  97. package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
  98. package/{cdn/assets/DFHruAftzuzBZ71r.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
  99. package/{cdn/assets/9-cIcj6CRJx5HTn9.js → browser/esm/DHPHhaCxihdR9Hl6.mjs} +1 -1
  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/{cdn/assets/CKA4s2hlzSnrdWSD.js → browser/esm/DVRMAeHUj0-TY-vK.mjs} +1 -1
  104. package/{cdn/assets/N3pWBoccPrTedAw-.js → browser/esm/DXIWAG-DUKHzNlRl.mjs} +1 -1
  105. package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
  106. package/{cdn/assets/KDGtuIzSpkf1vsmH.js → browser/esm/Dft4BSeY0bp0A6z0.mjs} +1 -1
  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/F6zW9Vj410C4yRVG.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +167 -166
  111. package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
  112. package/{cdn/assets/5XdpCWQ6AcxZ6oY1.js → browser/esm/aLv-xujBO4X6ilhV.mjs} +1 -1
  113. package/{cdn/assets/Gz4u4ewyWfB-Pf-a.js → browser/esm/c9fba0RuWGogsH0X.mjs} +4 -5
  114. package/browser/esm/index.mjs +6 -2
  115. package/{cdn/assets/BxblmHGC7YxZcuak.js → browser/esm/jkSJc6Omxbf-rPQY.mjs} +1 -1
  116. package/{cdn/assets/CT0d1P-Aav62lUvV.js → browser/esm/uuCmCmYQQXgwyRSd.mjs} +1 -1
  117. package/{cdn/assets/DD3csu4pddGtMp3n.js → browser/esm/w3TGaFTjdsc4XTcz.mjs} +537 -539
  118. package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
  119. package/{cdn/assets/CsorxCiOoe7qX9j1.js → browser/esm/wxvli1IH1NkfqE6-.mjs} +1 -1
  120. package/cdn/assets/{C9eQW5GKgPRmKKgJ.js → 0fI22OQK5IczUH6s.js} +2 -2
  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/{quOP5QFyTT9soNIl.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/{CV8UjJPDVplXjK1E.js → C0yI-QYraFhnJUdD.js} +19 -19
  144. package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
  145. package/cdn/assets/{BDE7FUo2oiivrvBL.js → C3FTuqvfGalOVHql.js} +15 -15
  146. package/cdn/assets/C3W0xsNrt-Was9g-.js +84 -0
  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/{0j_nQmV1Bb0lJ6sB.js → CWkF-50YF43t7qge.js} +4 -4
  151. package/cdn/assets/{8U2WVdbZHYCBnd9L.js → CaKPs_ILqLIWfUUN.js} +13 -13
  152. package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
  153. package/cdn/assets/{Xwyp21e7L5fTeb_y.js → Cdx6LrqtHZKbwl63.js} +186 -184
  154. package/cdn/assets/{6JtXguBKwGj6dqfy.js → ChB-XZno7w9v221u.js} +385 -387
  155. package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
  156. package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
  157. package/cdn/assets/{BlYoycYtR-sUp0iC.js → CrBywNOOyPHSBoTT.js} +4 -4
  158. package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
  159. package/cdn/assets/{DPQqTIMsRLhMxPIy.js → DBpku3D2DSTmW4II.js} +2 -2
  160. package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
  161. package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
  162. package/cdn/assets/{DXHirQMr483hJBil.js → DMWARnjq06oQnfrL.js} +15 -15
  163. package/cdn/assets/{BNh9nSR83reiVMKt.js → DRa6yXWuTlAjuaKT.js} +2 -2
  164. package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
  165. package/{browser/esm/CVeyOpbAhaBhDRye.mjs → cdn/assets/DXIWAG-DUKHzNlRl.js} +7 -2
  166. package/cdn/assets/{0e9wDKSn4SFxSmP5.js → DYowHOSLHcADsXuK.js} +3 -3
  167. package/cdn/assets/{f3_QXO8z0p-q4nJo.js → DZNoPrlxULASVlOi.js} +4 -4
  168. package/cdn/assets/DaUJajqmQYuM0Gew.js +150 -0
  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/{CR01MBraUPYPpwy4.js → Dm0hrXCbV7DITOhi.js} +2 -2
  173. package/cdn/assets/{BgnlshX157Ob6RLs.js → DnWjhq4ZlgIuFcii.js} +2 -2
  174. package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
  175. package/cdn/assets/DzyNujjbHLXo9UmH.js +1466 -0
  176. package/cdn/assets/{B_2bXmyji3Dr7LRM.js → EYTSqAG9YOdb1vKx.js} +21832 -23233
  177. package/cdn/assets/{BVYDmdUGWvMG5gNK.js → Ux2jUY_EwSsYBCov.js} +1 -1
  178. package/cdn/assets/{Bsa9-Itkf_SdDBM9.js → XoKiuP2ZFq0cNGkH.js} +4 -4
  179. package/cdn/assets/{2mxiQm6dELsqQoX7.js → Zi3E5Kzxw2FPtLVL.js} +1376 -1418
  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 -3
  188. package/types/index.d.ts +1 -0
  189. package/browser/cjs/-DkdmW3XP1ICRY25.cjs +0 -7
  190. package/browser/cjs/B-KQs1Bf48nEucW7.cjs +0 -7
  191. package/browser/cjs/B1xnY7pDnbnNzknG.cjs +0 -7
  192. package/browser/cjs/B6A5w_aWHkigBc6j.cjs +0 -7
  193. package/browser/cjs/B9jxuOg1CXcmbi9J.cjs +0 -110
  194. package/browser/cjs/BAYjkr4LmsWRLoPr.cjs +0 -7
  195. package/browser/cjs/BG2uV2RpxrfZyCuV.cjs +0 -7
  196. package/browser/cjs/BGCPG4Ip5ZijUQwi.cjs +0 -7
  197. package/browser/cjs/BHTlBOQH-tPGoKgo.cjs +0 -7
  198. package/browser/cjs/BLBNzBvRVl9VLynf.cjs +0 -7
  199. package/browser/cjs/BLh6E7ER8mrM6vc_.cjs +0 -7
  200. package/browser/cjs/BMaq_2S3IFrE5XeJ.cjs +0 -7
  201. package/browser/cjs/BO7Pbclmywy-QCSV.cjs +0 -13
  202. package/browser/cjs/BPlthbyKkqCDjgxO.cjs +0 -7
  203. package/browser/cjs/BUGo0mXtBfFOmQXV.cjs +0 -7
  204. package/browser/cjs/BdHdXCz_K1djQgI4.cjs +0 -7
  205. package/browser/cjs/BfNkb1jDZkJf3wRA.cjs +0 -7
  206. package/browser/cjs/BfdQd2UEOlOc5iF3.cjs +0 -7
  207. package/browser/cjs/Bi9KvObgq_kJ_pjC.cjs +0 -7
  208. package/browser/cjs/BjPpJjnABDd3_WOZ.cjs +0 -7
  209. package/browser/cjs/BsSNzyN8kOGCKzso.cjs +0 -7
  210. package/browser/cjs/BtCcoaKKb8ZDnliG.cjs +0 -7
  211. package/browser/cjs/BwHquG4sSd7OJjxz.cjs +0 -7
  212. package/browser/cjs/BywNBbTVRYbgRbNI.cjs +0 -7
  213. package/browser/cjs/C04Qr5P8uyQ6Vcml.cjs +0 -7
  214. package/browser/cjs/C42ZEPRmW9Wcd7tI.cjs +0 -7
  215. package/browser/cjs/CBpt1PBR1VfBegko.cjs +0 -7
  216. package/browser/cjs/CED8Az5C8GWF7pUT.cjs +0 -7
  217. package/browser/cjs/CbD4Wa5QLTdRCYcz.cjs +0 -7
  218. package/browser/cjs/CbILz9Skl6lWf6yR.cjs +0 -7
  219. package/browser/cjs/CoFQQqIzuvS9PM77.cjs +0 -7
  220. package/browser/cjs/CpDNo2Lhwr5ZHECs.cjs +0 -7
  221. package/browser/cjs/CsamfGfFsItvSgo_.cjs +0 -7
  222. package/browser/cjs/Cx3kn5gBsQ-1bORi.cjs +0 -7
  223. package/browser/cjs/CxLvGnG44-qNI36G.cjs +0 -7
  224. package/browser/cjs/D-xyWit7jxctQCpR.cjs +0 -7
  225. package/browser/cjs/D4XQsK7d7DRctaOO.cjs +0 -7
  226. package/browser/cjs/D9rVEA1BdB0JZwhE.cjs +0 -7
  227. package/browser/cjs/DES2NmIRVZg-HXgs.cjs +0 -7
  228. package/browser/cjs/DFxeLNhACFIHb0nv.cjs +0 -7
  229. package/browser/cjs/DIv1SrLYeyVwcaxE.cjs +0 -7
  230. package/browser/cjs/DJ6L43osbaMzEV5K.cjs +0 -7
  231. package/browser/cjs/DMjLN_HDktNzzUB8.cjs +0 -7
  232. package/browser/cjs/DVPfPZCFjmYu3xyn.cjs +0 -7
  233. package/browser/cjs/DhSlaiQXxEOVtZkA.cjs +0 -7
  234. package/browser/cjs/Dh_dFnagz7dMZlGh.cjs +0 -7
  235. package/browser/cjs/DpF6vgGka2d-RKkb.cjs +0 -10
  236. package/browser/cjs/DtY0Jzlwnr_YKnV4.cjs +0 -7
  237. package/browser/cjs/DwyyFI1Ix0uc0Qoz.cjs +0 -7
  238. package/browser/cjs/Dy5_viRzFls9rOzN.cjs +0 -7
  239. package/browser/cjs/GkINjQ8Te3GKi2mx.cjs +0 -7
  240. package/browser/cjs/aN3KCqswA1SdJIMq.cjs +0 -7
  241. package/browser/cjs/hLJbgylpETByV4wc.cjs +0 -7
  242. package/browser/cjs/qumqKlVHFx89iLeu.cjs +0 -7
  243. package/browser/cjs/rKZjTYQ0WpTriIv6.cjs +0 -7
  244. package/browser/cjs/xjKotAOVt3JH36U7.cjs +0 -7
  245. package/browser/cjs/ymbPxio09Fw7I2BW.cjs +0 -7
  246. package/browser/esm/2P5dQT7wZToOh-n9.mjs +0 -7
  247. package/browser/esm/4GgcUVhUmQmiv9Ha.mjs +0 -110
  248. package/browser/esm/7_x68v6PpvRDox_Z.mjs +0 -7
  249. package/browser/esm/9icgSuuzXq6mlgM8.mjs +0 -7
  250. package/browser/esm/B354iAatN9y9AIIP.mjs +0 -7
  251. package/browser/esm/B5EVyoxm3aSlAnxN.mjs +0 -7
  252. package/browser/esm/BD8rE7MUxuHXsdcf.mjs +0 -7
  253. package/browser/esm/BGFWI1a1PmU8_hCE.mjs +0 -7
  254. package/browser/esm/BI6JAQCQx1V0F2aC.mjs +0 -7
  255. package/browser/esm/BIYg30d_9HaluFFz.mjs +0 -7
  256. package/browser/esm/BKL-uyBp_OE47lXd.mjs +0 -7
  257. package/browser/esm/BMwJCtLAYUW8wExX.mjs +0 -13
  258. package/browser/esm/BNOfK-lGWF2S8vQE.mjs +0 -7
  259. package/browser/esm/Ba433v6lQUMtECiY.mjs +0 -7
  260. package/browser/esm/BbZWfDW2LUyjqUDy.mjs +0 -7
  261. package/browser/esm/C238uBmZN1XXqMUb.mjs +0 -7
  262. package/browser/esm/C34whwRkHO0lhq4-.mjs +0 -7
  263. package/browser/esm/C6FEpAqSZoW5Hgte.mjs +0 -7
  264. package/browser/esm/COlW5ULL29SUKN1Z.mjs +0 -7
  265. package/browser/esm/CRyxOj2xPj9qe9LK.mjs +0 -7
  266. package/browser/esm/CVyVvtlJuCTn4MDh.mjs +0 -7
  267. package/browser/esm/CapeIfjWq-_BHMlE.mjs +0 -7
  268. package/browser/esm/CcQqGNgK2CsgNtuD.mjs +0 -7
  269. package/browser/esm/CdZSxrk3k1Lx6G8W.mjs +0 -7
  270. package/browser/esm/CdchvB_wAbv_6Whw.mjs +0 -7
  271. package/browser/esm/Cf8eDl3Tu5NAWWwG.mjs +0 -7
  272. package/browser/esm/Cfq9tttQlsKvfaCr.mjs +0 -7
  273. package/browser/esm/ClR6uLJoM-xKVYEc.mjs +0 -7
  274. package/browser/esm/Cnl_e-EYkZ3CLbi2.mjs +0 -7
  275. package/browser/esm/CtRS2ZCPF7IH_mXe.mjs +0 -7
  276. package/browser/esm/CuV-bwi1vcXAqFUY.mjs +0 -7
  277. package/browser/esm/CwVE0qelO_xgf-l1.mjs +0 -7
  278. package/browser/esm/D1Dzlta8ZVy08ng6.mjs +0 -7
  279. package/browser/esm/D1TjRQiHLWhpl-dl.mjs +0 -7
  280. package/browser/esm/D8BJ-y3ulgO_ezrj.mjs +0 -10
  281. package/browser/esm/DTDXNEbHVnnZONNL.mjs +0 -7
  282. package/browser/esm/DTWfi8Dl-c2s5moT.mjs +0 -7
  283. package/browser/esm/DYVBXcu1r5KRLB-1.mjs +0 -7
  284. package/browser/esm/DZjWyWMvr2XHQrBg.mjs +0 -7
  285. package/browser/esm/DhHK4QmASvgAq9Xy.mjs +0 -7
  286. package/browser/esm/DoFV2S6Su86IN5Ul.mjs +0 -7
  287. package/browser/esm/Dq3ybkgattcCsF_4.mjs +0 -7
  288. package/browser/esm/DqWoZ4TjweoJWX3o.mjs +0 -7
  289. package/browser/esm/DtXxHirBm16ldE1l.mjs +0 -7
  290. package/browser/esm/DtuWZG6c_8vKRSdr.mjs +0 -7
  291. package/browser/esm/FBG8XXdIMd9PfUIo.mjs +0 -7
  292. package/browser/esm/Nh7JiwvF01PblHQ0.mjs +0 -7
  293. package/browser/esm/PVYiH9vBQM6rqXI4.mjs +0 -7
  294. package/browser/esm/U5-LDZQ0qkJ2Y-p8.mjs +0 -7
  295. package/browser/esm/XhQDWZu47oe6bwHh.mjs +0 -7
  296. package/browser/esm/_BjU6TtI-mQfFpfy.mjs +0 -7
  297. package/browser/esm/gOUfyCw957TzcbNB.mjs +0 -7
  298. package/browser/esm/lmkbfs9sNc7f0oe5.mjs +0 -7
  299. package/browser/esm/naa0kcRwxHEYGaQB.mjs +0 -7
  300. package/browser/esm/qxOkQutRxmAi1vRh.mjs +0 -7
  301. package/browser/esm/tMSro0g2GM5BBTIH.mjs +0 -7
  302. package/cdn/assets/B-kFRtzNNkf4_SiP.js +0 -1701
  303. package/cdn/assets/BAzGoI9gE2G3F3on.js +0 -637
  304. package/cdn/assets/BLqaorJ5Wl-1YOoy.js +0 -3875
  305. package/cdn/assets/BQON-ToGsIBPrPkM.js +0 -1371
  306. package/cdn/assets/CHTspRZD2v_dU_eV.js +0 -22
  307. package/cdn/assets/CMBDD1Mjde6UL5ep.js +0 -84
  308. package/cdn/assets/CwdMjMPFdIs8SAV0.js +0 -1358
  309. package/cdn/assets/DUtu7r6CzW4dtW3E.js +0 -50
  310. package/cdn/assets/Dr5X-ng9wbwUWVr4.js +0 -41
  311. package/cdn/assets/Dvj7UEckqOBrgs9i.js +0 -3947
  312. package/cdn/assets/KtKlo5mM4kTTfFgi.js +0 -46
  313. package/cdn/assets/NTINjW8JjyZudT8s.js +0 -13449
  314. package/cdn/assets/R9RwlorPWfftoboH.js +0 -2373
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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{aN as e}from"./4GgcUVhUmQmiv9Ha.mjs";var t,i={exports:{}},r=(t||(t=1,i.exports=function e(){var t,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},r=!i.document&&!!i.postMessage,n=i.IS_PAPA_WORKER||!1,s={},a=0,o={};function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,n)i.postMessage({results:s,workerId:o.WORKER_ID,finished:r});else if(v(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!r||!v(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):n&&this._config.error&&i.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),h.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,i=this._config.downloadRequestHeaders;for(e in i)t.setRequestHeader(e,i[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function l(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),a=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,f=0,l=0,c=!1,_=!1,m=[],y={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){if(y&&r&&(R("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!b(e)})),E()){if(y)if(Array.isArray(y.data[0])){for(var t=0;E()&&t<y.data.length;t++)y.data[t].forEach(d);y.data.splice(0,1)}else y.data.forEach(d);function d(t,i){v(e.transformHeader)&&(t=e.transformHeader(t,i)),m.push(t)}}function i(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var o=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),a<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(o=e.header?n>=m.length?"__parsed_extra":m[n]:o,d=e.transform?e.transform(d,o):d),"__parsed_extra"===o?(r[o]=r[o]||[],r[o].push(d)):r[o]=d}return e.header&&(n>m.length?R("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,l+i):n<m.length&&R("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,l+i)),r}var n;y&&(e.header||e.dynamicTyping||e.transform)&&(n=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(i),n=y.data.length):y.data=i(y.data,0),e.header&&y.meta&&(y.meta.fields=m),l+=n)}function E(){return e.header&&0===m.length}function R(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}v(e.step)&&(n=e.step,e.step=function(t){y=t,E()?w():(w(),0!==y.data.length&&(f+=t.data.length,e.preview&&f>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,a){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var a,h,u,d;s=s||[",","\t","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f<s.length;f++){for(var l,c=s[f],p=0,_=0,m=0,y=(u=void 0,new g({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&b(y.data[k])?m++:(_+=l=y.data[k].length,void 0===u?u=l:0<l&&(p+=Math.abs(l-u),u=l));0<y.data.length&&(_/=y.data.length-m),(void 0===h||p<=h)&&(void 0===d||d<_)&&1.99<_&&(h=p,a=c,d=_)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),y.meta.delimiter=e.delimiter),h=k(e),e.preview&&e.header&&h.preview++,t=n,i=new g(h),y=i.parse(t,s,a),w(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=v(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,i.abort(),y.meta.aborted=!0,v(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,a=e.fastMode,h=null,u=!1,d=null==e.quoteChar?'"':e.quoteChar,f=d;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var l=0,c=!1;this.parse=function(o,g,_){if("string"!=typeof o)throw new Error("Input must be a string");var m=o.length,y=t.length,k=i.length,b=r.length,w=v(n),E=[],R=[],C=[],O=l=0;if(!o)return P();if(a||!1!==a&&-1===o.indexOf(d)){for(var S=o.split(i),x=0;x<S.length;x++){if(C=S[x],l+=C.length,x!==S.length-1)l+=i.length;else if(_)return P();if(!r||C.substring(0,b)!==r){if(w){if(E=[],F(C.split(t)),U(),c)return P()}else F(C.split(t));if(s&&s<=x)return E=E.slice(0,s),P(!0)}}return P()}for(var A=o.indexOf(t,l),I=o.indexOf(i,l),T=new RegExp(p(f)+p(d),"g"),D=o.indexOf(d,l);;)if(o[l]===d)for(D=l,l++;;){if(-1===(D=o.indexOf(d,D+1)))return _||R.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:l}),z();if(D===m-1)return z(o.substring(l,D).replace(T,d));if(d===f&&o[D+1]===f)D++;else if(d===f||0===D||o[D-1]!==f){-1!==A&&A<D+1&&(A=o.indexOf(t,D+1));var L=j(-1===(I=-1!==I&&I<D+1?o.indexOf(i,D+1):I)?A:Math.min(A,I));if(o.substr(D+1+L,y)===t){C.push(o.substring(l,D).replace(T,d)),o[l=D+1+L+y]!==d&&(D=o.indexOf(d,l)),A=o.indexOf(t,l),I=o.indexOf(i,l);break}if(L=j(I),o.substring(D+1+L,D+1+L+k)===i){if(C.push(o.substring(l,D).replace(T,d)),M(D+1+L+k),A=o.indexOf(t,l),D=o.indexOf(d,l),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0);break}R.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:l}),D++}}else if(r&&0===C.length&&o.substring(l,l+b)===r){if(-1===I)return P();l=I+k,I=o.indexOf(i,l),A=o.indexOf(t,l)}else if(-1!==A&&(A<I||-1===I))C.push(o.substring(l,A)),l=A+y,A=o.indexOf(t,l);else{if(-1===I)break;if(C.push(o.substring(l,I)),M(I+k),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0)}return z();function F(e){E.push(e),O=l}function j(e){return-1!==e&&(e=o.substring(D+1,e))&&""===e.trim()?e.length:0}function z(e){return _||(void 0===e&&(e=o.substring(l)),C.push(e),l=m,F(C),w&&U()),P()}function M(e){l=e,F(C),C=[],I=o.indexOf(i,l)}function P(r){if(e.header&&!g&&E.length&&!u){var n=E[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=n[i];if(s[r=v(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(h=null===h?{}:h)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:E,errors:R,meta:{delimiter:t,linebreak:i,aborted:c,truncated:!!r,cursor:O+(g||0),renamedHeaders:h}}}function U(){n(P()),E=[],R=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return l}}function _(e){var t=e.data,i=s[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(v(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!r);a++);delete t.results}else v(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=s[e];v(i.userComplete)&&i.userComplete(t),i.terminate(),delete s[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function b(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return o.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if(v(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!v(r.transform)&&r.transform,!r.worker||!o.WORKERS_SUPPORTED)return n=null,o.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),n=new(r.download?u:f)(r)):!0===t.readable&&v(t.read)&&v(t.on)?n=new l(r):(i.File&&t instanceof File||t instanceof Object)&&(n=new d(r)),n.stream(t);(n=(()=>{var t;return!!o.WORKERS_SUPPORTED&&(t=(()=>{var t=i.URL||i.webkitURL||null,r=e.toString();return o.BLOB_URL||(o.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new i.Worker(t)).onmessage=_,t.id=a++,s[t.id]=t)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=v(r.step),r.chunk=v(r.chunk),r.complete=v(r.complete),r.error=v(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},o.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",a='"',h=a+a,u=!1,d=null,f=!1,l=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=g(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var f=(o?e:t[d]).length,l=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(l="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],_=0;_<f;_++){var m=h?e[_]:_;p.push(t[d][m])}l=""===p.join("").trim()}if(!l){for(var y=0;y<f;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=g(t[d][k],y)}d<t.length-1&&(!i||0<f&&!c)&&(a+=s)}}return a}function g(e,t){var r,s;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(s=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,s=!0),r=e.toString().replace(l,h),(s=s||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(r,o.BAD_DELIMITERS)||-1<r.indexOf(n)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?a+r+a:r)}},o.RECORD_SEP=String.fromCharCode(30),o.UNIT_SEP=String.fromCharCode(31),o.BYTE_ORDER_MARK="\ufeff",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!r&&!!i.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=g,o.ParserHandle=c,o.NetworkStreamer=u,o.FileStreamer=d,o.StringStreamer=f,o.ReadableStreamStreamer=l,i.jQuery&&((t=i.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:t.extend({},r)})}),s(),this;function s(){if(0===n.length)v(e.complete)&&e.complete();else{var i,r,s,h=n[0];if(v(e.before)){var u=e.before(h.file,h.inputElem);if("object"==typeof u){if("abort"===u.action)return i=h.file,r=h.inputElem,s=u.reason,void(v(e.error)&&e.error({name:"AbortError"},i,r,s));if("skip"===u.action)return void a();"object"==typeof u.config&&(h.instanceConfig=t.extend(h.instanceConfig,u.config))}else if("skip"===u)return void a()}var d=h.instanceConfig.complete;h.instanceConfig.complete=function(e){v(d)&&d(e,h.file,h.inputElem),a()},o.parse(h.file,h.instanceConfig)}}function a(){n.splice(0,1),s()}}),n&&(i.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&i.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(f.prototype=Object.create(f.prototype)).constructor=f,(l.prototype=Object.create(h.prototype)).constructor=l,o}()),i.exports);const n=function(e,t){for(var i=0;i<t.length;i++){const r=t[i];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const i=Object.getOwnPropertyDescriptor(r,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:e(r)},[r]);export{n as p};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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
- let t=null;const e={reactUrl:"https://esm.sh/react@19.1.0",reactJsxTransform:"https://esm.sh/react@19.1.0/jsx-runtime",reactDomUrl:"https://esm.sh/react-dom@19.1.0",reactDomUrlClient:"https://esm.sh/react-dom@19.1.0/client"},r=r=>(r={...r,...e},t||(t=(async()=>{const t=r.reactUrl,e=r.reactDomUrl,m=r.reactDomUrlClient,s=r.reactJsxTransform;if(document.querySelector('script[type="importmap"]'))console.warn("SheetXL: Import map already exists. Skipping injection.");else{const r=document.createElement("script");r.type="importmap",r.textContent=JSON.stringify({imports:{react:t,"react/jsx-runtime":s,"react-dom":e,"react-dom/client":m}}),document.head.appendChild(r)}await new Promise(t=>setTimeout(t,0));const a=await Promise.all([import("./4GgcUVhUmQmiv9Ha.mjs").then(t=>t.R),import("./4GgcUVhUmQmiv9Ha.mjs").then(t=>t.a),import("./4GgcUVhUmQmiv9Ha.mjs").then(t=>t.i),import("./4GgcUVhUmQmiv9Ha.mjs").then(t=>t.b),import("./4GgcUVhUmQmiv9Ha.mjs").then(t=>t.b3)]);return{React:a[0],ReactJSXTransform:a[1],ReactDOM:a[2],ReactDOMClient:a[3],StudioMUI:a[4]}})(),t));export{r as resolveDependencies};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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 e,C as t,D as o,E as n,j as r,G as i,H as l,L as s,N as a,O as c,P as d,Q as u,c as h,V as f,S as p,X as m,x as g,B as v,T as _,Y as S,Z as y,$ as w,a0 as C,a1 as x,a2 as R,a3 as b,a4 as z,a5 as T,a6 as I,a7 as P,a8 as O,a9 as k,z as M,aa as L,ab as G,ac as A,ad as E,ae as H,af as W,ag as D,ah as j}from"./4GgcUVhUmQmiv9Ha.mjs";const F=e.createContext(),N=e.createContext();function B(e){return o("MuiTableCell",e)}const U=t("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),V=i("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${s(o.size)}`],"normal"!==o.padding&&t[`padding${s(o.padding)}`],"inherit"!==o.align&&t[`align${s(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(c(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?d(h(e.palette.divider,1),.88):u(h(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${U.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:(e.vars||e).palette.background.default}}]}))),$=e.forwardRef(function(t,o){const i=n({props:t,name:"MuiTableCell"}),{align:c="inherit",className:d,component:u,padding:h,scope:f,size:p,sortDirection:m,variant:g,...v}=i,_=e.useContext(F),S=e.useContext(N),y=S&&"head"===S.variant;let w;w=u||(y?"th":"td");let C=f;"td"===w?C=void 0:!C&&y&&(C="col");const x=g||S&&S.variant,R={...i,align:c,component:w,padding:h||(_&&_.padding?_.padding:"normal"),size:p||(_&&_.size?_.size:"medium"),sortDirection:m,stickyHeader:"head"===x&&_&&_.stickyHeader,variant:x},b=(e=>{const{classes:t,variant:o,align:n,padding:r,size:i,stickyHeader:l}=e,c={root:["root",o,l&&"stickyHeader","inherit"!==n&&`align${s(n)}`,"normal"!==r&&`padding${s(r)}`,`size${s(i)}`]};return a(c,B,t)})(R);let z=null;return m&&(z="asc"===m?"ascending":"descending"),r.jsx(V,{as:w,ref:o,className:l(b.root,d),"aria-sort":z,scope:C,ownerState:R,...v})}),K=z();function q(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function X(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y(e){return e?(t,o)=>o[e]:null}function J(e,t,o){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>J(e,t,o));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=o?X(n.style,o):n.style;else{const{variants:e,...r}=n;t=o?X(E(r),o):r}return Z(e,n.variants,[t],o)}return n?.isProcessed?o?X(E(n.style),o):n.style:o?X(E(n),o):n}function Z(e,t,o=[],n=void 0){let r;e:for(let i=0;i<t.length;i+=1){const l=t[i];if("function"==typeof l.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(r))continue}else for(const t in l.props)if(e[t]!==l.props[t]&&e.ownerState?.[t]!==l.props[t])continue e;"function"==typeof l.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},o.push(n?X(E(l.style(r)),n):l.style(r))):o.push(n?X(E(l.style),n):l.style)}return o}function Q(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const ee=function(e={}){const{themeId:t,defaultTheme:o=K,rootShouldForwardProp:n=q,slotShouldForwardProp:r=q}=e;function i(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,t,o)}return(e,t={})=>{T(e,e=>e.filter(e=>e!==I));const{name:o,slot:l,skipVariantsResolver:s,skipSx:a,overridesResolver:c=Y(Q(l)),...d}=t,u=o&&o.startsWith("Mui")||l?"components":"custom",h=void 0!==s?s:l&&"Root"!==l&&"root"!==l||!1,f=a||!1;let p=q;"Root"===l||"root"===l?p=n:l?p=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const m=P(e,{shouldForwardProp:p,label:void 0,...d}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return J(t,e,t.theme.modularCssLayers?u:void 0)};if(A(e)){const t=function(e){const{variants:t,...o}=e,n={variants:t,style:E(o),isProcessed:!0};return n.style===o||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=E(e.style))}),n}(e);return function(e){return t.variants?J(e,t,e.theme.modularCssLayers?u:void 0):e.theme.modularCssLayers?X(t.style,u):t.style}}return e},v=(...t)=>{const n=[],r=t.map(g),l=[];if(n.push(i),o&&c&&l.push(function(e){const t=e.theme,n=t.components?.[o]?.styleOverrides;if(!n)return null;const r={};for(const t in n)r[t]=J(e,n[t],e.theme.modularCssLayers?"theme":void 0);return c(e,r)}),o&&!h&&l.push(function(e){const t=e.theme,n=t?.components?.[o]?.variants;return n?Z(e,n,[],e.theme.modularCssLayers?"theme":void 0):null}),f||l.push(I),Array.isArray(r[0])){const e=r.shift(),t=new Array(n.length).fill(""),o=new Array(l.length).fill("");let i;i=[...t,...e,...o],i.raw=[...t,...e.raw,...o],n.unshift(i)}const s=[...n,...r,...l],a=m(...s);return e.muiName&&(a.muiName=e.muiName),a};return m.withConfig&&(v.withConfig=m.withConfig),v}}({themeId:O,defaultTheme:k,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oe(e){return oe="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},oe(e)}function ne(e){var t=function(e){if("object"!=oe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=oe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oe(t)?t:t+""}function re(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ne(n.key),n)}}function ie(e,t,o){return t&&re(e.prototype,t),o&&re(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function le(e,t){if(t&&("object"==oe(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 se(e){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},se(e)}function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}function ce(e,t,o){return(t=ne(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function de(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function ue(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function he(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}function fe(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,n=null,r=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?r="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==o||null!==n||null!==r){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!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+"\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=de,t.componentWillReceiveProps=ue),"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=he;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;s.call(this,e,t,n)}}return e}function pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function me(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ge=function(){return!!e})()}de.__suppressDeprecationWarning=!0,ue.__suppressDeprecationWarning=!0,he.__suppressDeprecationWarning=!0;var ve=function(){function t(){var e,o,n,r;te(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,n=t,r=[].concat(l),n=se(n),ce(e=le(o,ge()?Reflect.construct(n,r||[],se(o).constructor):n.apply(o,r)),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),ce(e,"_columnStartIndex",0),ce(e,"_columnStopIndex",0),ce(e,"_rowStartIndex",0),ce(e,"_rowStopIndex",0),ce(e,"_onKeyDown",function(t){var o=e.props,n=o.columnCount,r=o.disabled,i=o.mode,l=o.rowCount;if(!r){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,n-1):Math.min(e._columnStopIndex+1,n-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}))}}),ce(e,"_onSectionRendered",function(t){var o=t.columnStartIndex,n=t.columnStopIndex,r=t.rowStartIndex,i=t.rowStopIndex;e._columnStartIndex=o,e._columnStopIndex=n,e._rowStartIndex=r,e._rowStopIndex=i}),e}return ae(t,e.PureComponent),ie(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,n=t.children,r=this._getScrollState(),i=r.scrollToColumn,l=r.scrollToRow;return e.createElement("div",{className:o,onKeyDown:this._onKeyDown},n({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,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||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?me(me({},t),{},{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}])}();function _e(e,t){var o,n=void 0!==(o=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:global).document&&o.document.attachEvent;if(!n){var r=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,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.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__=r(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,r){if(n)t.attachEvent("onresize",r);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%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(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(r)}},removeResizeListener:function(e,t){if(n)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 Se(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ye(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Se(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function we(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(we=function(){return!!e})()}ce(ve,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),fe(ve);var Ce=function(){function t(){var e,o,n,r;te(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,n=t,r=[].concat(l),n=se(n),ce(e=le(o,we()?Reflect.construct(n,r||[],se(o).constructor):n.apply(o,r)),"state",{height:e.props.defaultHeight||0,width:e.props.defaultWidth||0}),ce(e,"_parentNode",void 0),ce(e,"_autoSizer",void 0),ce(e,"_window",void 0),ce(e,"_detectElementResize",void 0),ce(e,"_onResize",function(){var t=e.props,o=t.disableHeight,n=t.disableWidth,r=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||!n&&e.state.width!==f)&&(e.setState({height:i-d-u,width:l-a-c}),r({height:i,width:l}))}}),ce(e,"_setRef",function(t){e._autoSizer=t}),e}return ae(t,e.Component),ie(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=_e(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,n=t.className,r=t.disableHeight,i=t.disableWidth,l=t.style,s=this.state,a=s.height,c=s.width,d={overflow:"visible"},u={};return r||(d.height=0,u.height=a),i||(d.width=0,u.width=c),e.createElement("div",{className:n,ref:this._setRef,style:ye(ye({},d),l)},o(u))}}])}();function xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xe=function(){return!!e})()}ce(Ce,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Re=function(){function t(){var o,n,r,i;te(this,t);for(var l=arguments.length,s=new Array(l),a=0;a<l;a++)s[a]=arguments[a];return n=this,r=t,i=[].concat(s),r=se(r),ce(o=le(n,xe()?Reflect.construct(r,i||[],se(n).constructor):r.apply(n,i)),"_child",e.createRef()),ce(o,"_measure",function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,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,r)&&d===t.getWidth(s,r)||(t.set(s,r,d,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:s}))}),ce(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 ae(t,e.PureComponent),ie(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var t=this,o=this.props.children,n="function"==typeof o?o({measure:this._measure,registerChild:this._registerChild}):o;return null===n?n:e.cloneElement(n,{ref:function(e){"function"==typeof n.ref?n.ref(e):n.ref&&(n.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,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,l=void 0===i?this.props.index||0:i;if(!t.has(l,n)){var s=this._getCellMeasurements(),a=s.height,c=s.width;t.set(l,n,c,a),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:l})}}}])}();function be(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),l=!e||i.every(function(e){var t=r[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],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n});t=r,l&&s&&n(r)}}ce(Re,"__internalCellMeasurerFlag",!1);const ze=!("undefined"==typeof window||!window.document||!window.document.createElement);var Te;function Ie(e){if((!Te&&0!==Te||e)&&ze){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),Te=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Te}function Pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Oe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ke=function(){return!!e})()}var Me="requested",Le=function(){function t(){var e,o,n,r;te(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,n=t,r=[].concat(l),n=se(n),ce(e=le(o,ke()?Reflect.construct(n,r||[],se(o).constructor):n.apply(o,r)),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),ce(e,"_calculateSizeAndPositionDataOnNextUpdate",!1),ce(e,"_onSectionRenderedMemoizer",be()),ce(e,"_onScrollMemoizer",be(!1)),ce(e,"_invokeOnSectionRenderedHelper",function(){var t=e.props,o=t.cellLayoutManager,n=t.onSectionRendered;e._onSectionRenderedMemoizer({callback:n,indices:{indices:o.getLastRenderedIndices()}})}),ce(e,"_setScrollingContainerRef",function(t){e._scrollingContainer=t}),ce(e,"_updateScrollPositionForScrollToCell",function(){var t=e.props,o=t.cellLayoutManager,n=t.height,r=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:r,cellIndex:i,height:n,scrollLeft:a,scrollTop:c,width:l});d.scrollLeft===a&&d.scrollTop===c||e._setScrollPosition(d)}}),ce(e,"_onScroll",function(t){if(t.target===e._scrollingContainer){e._enablePointerEventsAfterDelay();var o=e.props,n=o.cellLayoutManager,r=o.height,i=o.isScrollingChange,l=o.width,s=e._scrollbarSize,a=n.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-r+s,t.target.scrollTop));if(e.state.scrollLeft!==u||e.state.scrollTop!==h){var f=t.cancelable?"observed":Me;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=Ie(),void 0===e._scrollbarSize?(e._scrollbarSizeMeasured=!1,e._scrollbarSize=0):e._scrollbarSizeMeasured=!0,e}return ae(t,e.PureComponent),ie(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Ie(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),l=i.height,s=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:l,totalWidth:s})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,l=o.width,s=this.state,a=s.scrollLeft,c=s.scrollPositionChangeReason,d=s.scrollTop;c===Me&&(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)),n===e.height&&r===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,n=t.cellCount,r=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!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var v=r.getTotalSize(),_=v.height,S=v.width,y=Math.max(0,m-s),w=Math.max(0,g-u),C=Math.min(S,m+h+s),x=Math.min(_,g+l+u),R=l>0&&h>0?r.cellRenderers({height:x-w,isScrolling:p,width:C-y,x:y,y:w}):[],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.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:W("ReactVirtualized__Collection",i),id:a,onScroll:this._onScroll,role:"grid",style:Oe(Oe({},b),d),tabIndex:0},n>0&&e.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:S,overflow:"hidden",pointerEvents:p?"none":"",width:S}},R),0===n&&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,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:Me};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(n)}}],[{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:Me}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Me}}}])}();ce(Le,"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}),Le.propTypes={},fe(Le);var Ge=ie(function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;te(this,e),this.height=o,this.width=n,this.x=r,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)}}]),Ae=ie(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;te(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}},[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).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,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),l=Math.floor((n+o-1)/this._sectionSize),s=Math.floor(r/this._sectionSize),a=Math.floor((r+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 Ge({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 Ee(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,l=e.currentOffset,s=n,a=s-i+r;switch(o){case"start":return s;case"end":return a;case"center":return s-(i-r)/2;default:return Math.max(a,Math.min(s,l))}}function He(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(He=function(){return!!e})()}var We=function(){function t(e,o){var n,r,i,l;return te(this,t),r=this,l=[e,o],i=se(i=t),(n=le(r,He()?Reflect.construct(i,l||[],se(r).constructor):i.apply(r,l)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(n),n._setCollectionViewRef=n._setCollectionViewRef.bind(n),n}return ae(t,e.PureComponent),ie(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=D({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(this.props),this.props));return e.createElement(Le,D({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,n=[],r=new Ae(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),n[s]=a,r.registerCell({cellMetadatum:a,index:s})}return{cellMetadata:n,height:i,sectionManager:r,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,n=e.height,r=e.scrollLeft,i=e.scrollTop,l=e.width,s=this.props.cellCount;if(o>=0&&o<s){var a=this._cellMetadata[o];r=Ee({align:t,cellOffset:a.x,cellSize:a.width,containerSize:l,currentOffset:r}),i=Ee({align:t,cellOffset:a.y,cellSize:a.height,containerSize:n,currentOffset:i})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=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:r,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:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])}();function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(De=function(){return!!e})()}function je(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=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)||(n(r),a>=0&&a===s&&c())}function Fe(e,t){if(null==e)return{};var o,n,r=j(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}ce(We,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map(function(e){var r=n({index:e}),l={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(l)),t[e]):o(l)}).filter(function(e){return!!e})}}),We.propTypes={},(function(){function t(e,o){var n,r,i,l;return te(this,t),r=this,l=[e,o],i=se(i=t),(n=le(r,De()?Reflect.construct(i,l||[],se(r).constructor):i.apply(r,l)))._registerChild=n._registerChild.bind(n),n}return ae(t,e.PureComponent),ie(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,l=n||1,s=o?Math.min(o,i):i,a=i/r;return a=Math.max(l,a),a=Math.min(s,a),a=Math.floor(a),t({adjustedWidth:Math.min(i,a*r),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 Ne,Be=ie(function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;te(this,e),ce(this,"_cellSizeAndPositionData",{}),ce(this,"_lastMeasuredIndex",-1),ce(this,"_lastBatchedIndex",-1),ce(this,"_cellCount",void 0),ce(this,"_cellSizeGetter",void 0),ce(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=n}},{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,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,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,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var l,s=this.getSizeAndPositionOfCell(i),a=s.offset,c=a-n+s.size;switch(o){case"start":l=a;break;case"end":l=c;break;case"center":l=a-(n-s.size)/2;break;default:l=Math.max(c,Math.min(a,r))}var d=this.getTotalSize();return Math.max(0,Math.min(d-n,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var l=r;o<n&&l<this._cellCount-1;)l++,o+=this.getSizeAndPositionOfCell(l).size;return{start:r,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 n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-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)}}]),Ue=["maxScrollSize"],Ve=ie(function e(t){var o=t.maxScrollSize,n=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,r=Fe(t,Ue);te(this,e),ce(this,"_cellSizeAndPositionManager",void 0),ce(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Be(r),this._maxScrollSize=n},[{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,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-n))}},{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,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,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,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]);function $e(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=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||!r||"number"==typeof t&&t!==r||c!==i||d!==l)?f(d):!m&&p>0&&(u<s||p<n)&&a>o.getTotalSize()-u&&f(p-1)}var Ke=(Ne="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||Ne.webkitRequestAnimationFrame||Ne.mozRequestAnimationFrame||Ne.oRequestAnimationFrame||Ne.msRequestAnimationFrame||function(e){return Ne.setTimeout(e,1e3/60)},qe=Ne.cancelAnimationFrame||Ne.webkitCancelAnimationFrame||Ne.mozCancelAnimationFrame||Ne.oCancelAnimationFrame||Ne.msCancelAnimationFrame||function(e){Ne.clearTimeout(e)},Xe=Ke,Ye=qe,Je=function(e){return Ye(e.id)},Ze=function(e,t){var o;Promise.resolve().then(function(){o=Date.now()});var n=function(){Date.now()-o>=t?e.call():r.id=Xe(n)},r={id:Xe(n)};return r};function Qe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function et(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Qe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tt=function(){return!!e})()}var ot="requested",nt=function(){function t(e){var o,n,r,i;te(this,t),n=this,i=[e],r=se(r=t),ce(o=le(n,tt()?Reflect.construct(r,i||[],se(n).constructor):r.apply(n,i)),"_onGridRenderedMemoizer",be()),ce(o,"_onScrollMemoizer",be(!1)),ce(o,"_deferredInvalidateColumnIndex",null),ce(o,"_deferredInvalidateRowIndex",null),ce(o,"_recomputeScrollLeftFlag",!1),ce(o,"_recomputeScrollTopFlag",!1),ce(o,"_horizontalScrollBarSize",0),ce(o,"_verticalScrollBarSize",0),ce(o,"_scrollbarPresenceChanged",!1),ce(o,"_scrollingContainer",void 0),ce(o,"_childrenToDisplay",void 0),ce(o,"_columnStartIndex",void 0),ce(o,"_columnStopIndex",void 0),ce(o,"_rowStartIndex",void 0),ce(o,"_rowStopIndex",void 0),ce(o,"_renderedColumnStartIndex",0),ce(o,"_renderedColumnStopIndex",0),ce(o,"_renderedRowStartIndex",0),ce(o,"_renderedRowStopIndex",0),ce(o,"_initialScrollTop",void 0),ce(o,"_initialScrollLeft",void 0),ce(o,"_disablePointerEventsTimeoutId",void 0),ce(o,"_styleCache",{}),ce(o,"_cellCache",{}),ce(o,"_debounceScrollEndedCallback",function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})}),ce(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}})}),ce(o,"_setScrollingContainerRef",function(e){o._scrollingContainer=e,"function"==typeof o.props.elementRef?o.props.elementRef(e):"object"===oe(o.props.elementRef)&&(o.props.elementRef.current=e)}),ce(o,"_onScroll",function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)});var l=new Ve({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),s=new Ve({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 ae(t,e.PureComponent),ie(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,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,l=void 0===i?this.props.scrollToRow:i,s=et(et({},this.props),{},{scrollToAlignment:o,scrollToColumn:r,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,n=e.scrollTop,r=void 0===n?0:n;if(!(r<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),r);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,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.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,n=e.rowIndex,r=void 0===n?0:n,i=this.props,l=i.scrollToColumn,s=i.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?o<=l:o>=l),this._recomputeScrollTopFlag=s>=0&&(1===this.state.scrollDirectionVertical?r<=s:r>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props.columnCount,r=this.props;n>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(et(et({},r),{},{scrollToColumn:t})),void 0!==o&&this._updateScrollTopForScrollToRow(et(et({},r),{},{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=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=et(et({},e),{},{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t}),"number"==typeof r&&r>=0||"number"==typeof l&&l>=0){var d=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,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=n>0&&a>0;i>=0&&u&&this._updateScrollLeftForScrollToColumn(),s>=0&&u&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,l=n.columnCount,s=n.height,a=n.rowCount,c=n.scrollToAlignment,d=n.scrollToColumn,u=n.scrollToRow,h=n.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===ot&&(!i&&p>=0&&(p!==this._scrollingContainer.scrollLeft||_)&&(this._scrollingContainer.scrollLeft=p),!r&&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)):$e({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)):$e({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(),w=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:g,totalColumnsWidth:w,totalRowsHeight:y})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Je(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var t=this.props,o=t.autoContainerWidth,n=t.autoHeight,r=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:n?"auto":c,position:"relative",width:r?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};_&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var w=v.columnSizeAndPositionManager.getTotalSize(),C=v.rowSizeAndPositionManager.getTotalSize(),x=C>c?v.scrollbarSize:0,R=w>m?v.scrollbarSize:0;R===this._horizontalScrollBarSize&&x===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=x,this._scrollbarPresenceChanged=!0),y.overflowX=w+x<=m?"hidden":"auto",y.overflowY=C+R<=c?"hidden":"auto";var b=this._childrenToDisplay,z=0===b.length&&c>0&&m>0;return e.createElement("div",D({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:W("ReactVirtualized__Grid",i),id:d,onScroll:this._onScroll,role:h,style:et(et({},y),f),tabIndex:p}),b.length>0&&e.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:et({width:o?"auto":w,height:C,maxWidth:w,maxHeight:C,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,n=e.cellRangeRenderer,r=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}),w=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:u,offset:v}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:g});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=y.start,this._renderedRowStopIndex=y.stop;var x=a({direction:"horizontal",cellCount:r,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=x.overscanStartIndex,z=x.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=r-1;break}if(!i.hasFixedWidth())for(var O=b;O<=z;O++)if(!i.has(0,O)){T=0,I=d-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:z,deferredMeasurementCache:i,horizontalOffsetAdjustment:w,isScrolling:_,isScrollingOptOut:h,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:I,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,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&&Je(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Ze(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,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,l=t.props,s=l.height;(0,l.onScroll)({clientHeight:s,clientWidth:l.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:n}})}},{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,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{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,n=t._getScrollLeftForScrollToColumnStateUpdate(e,o);n&&(n.needToResetStyleCache=!1,this.setState(n))}},{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 n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);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,n=t._getScrollTopForScrollToRowStateUpdate(e,o);n&&(n.needToResetStyleCache=!1,this.setState(n))}}],[{key:"getDerivedStateFromProps",value:function(e,o){var n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,l=o.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(n.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(n,{isScrolling:!1}),je({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(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),je({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,n.instanceProps=l,et(et(et({},n),r),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,n=e.scrollTop,r={scrollPositionChangeReason:ot};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?1:-1,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=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>n?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:l-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,l=e.width,s=t.scrollTop,a=t.instanceProps;if(n>0){var c=n-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:r,containerSize:o-h,currentOffset:s,targetIndex:d})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}])}();function rt(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),1===n?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function lt(e,t){if(e){if("string"==typeof e)return it(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)?it(e,t):void 0}}function st(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(st=function(){return!!e})()}ce(nt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,l=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,a=e.isScrolling,c=e.isScrollingOptOut,d=e.parent,u=e.rowSizeAndPositionManager,h=e.rowStartIndex,f=e.rowStopIndex,p=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,_=[],S=n.areOffsetsAdjusted()||u.areOffsetsAdjusted(),y=!a&&!S,w=h;w<=f;w++)for(var C=u.getSizeAndPositionOfCell(w),x=r;x<=i;x++){var R=n.getSizeAndPositionOfCell(x),b=x>=g.start&&x<=g.stop&&w>=v.start&&w<=v.stop,z="".concat(w,"-").concat(x),T=void 0;y&&p[z]?T=p[z]:l&&!l.has(w,x)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:C.size,left:R.offset+s,position:"absolute",top:C.offset+m,width:R.size},p[z]=T);var I={columnIndex:x,isScrolling:a,isVisible:b,key:z,parent:d,rowIndex:w,style:T},P=void 0;!c&&!a||s||m?P=o(I):(t[z]||(t[z]=o(I)),P=t[z]),null!=P&&!1!==P&&(P.props.role||(P=M.cloneElement(P,{role:"gridcell"})),_.push(P))}return _},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:Ie,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return 1===n?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),fe(nt);var at=function(){function t(e,o){var n,r,i,l;return te(this,t),r=this,l=[e,o],i=se(i=t),(n=le(r,st()?Reflect.construct(i,l||[],se(r).constructor):i.apply(r,l)))._loadMoreRowsMemoizer=be(),n._onRowsRendered=n._onRowsRendered.bind(n),n._registerChild=n._registerChild.bind(n),n}return ae(t,e.PureComponent),ie(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=be(),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 n=o(e);n&&n.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,n=this,r=this.props,i=r.isRowLoaded,l=r.minimumBatchSize,s=r.rowCount,a=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.stopIndex,i=[],l=null,s=null,a=e.startIndex;a<=r;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),n-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 it(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lt(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(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])}();function ct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ct=function(){return!!e})()}ce(at,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),at.propTypes={};var dt=function(){function t(){var e,o,n,r;te(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,n=t,r=[].concat(l),n=se(n),ce(e=le(o,ct()?Reflect.construct(n,r||[],se(o).constructor):n.apply(o,r)),"Grid",void 0),ce(e,"_cellRenderer",function(t){var o=t.parent,n=t.rowIndex,r=t.style,i=t.isScrolling,l=t.isVisible,s=t.key,a=e.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),a({index:n,style:r,isScrolling:i,isVisible:l,key:s,parent:o})}),ce(e,"_setRef",function(t){e.Grid=t}),ce(e,"_onScroll",function(t){var o=t.clientHeight,n=t.scrollHeight,r=t.scrollTop;(0,e.props.onScroll)({clientHeight:o,scrollHeight:n,scrollTop:r})}),ce(e,"_onSectionRendered",function(t){var o=t.rowOverscanStartIndex,n=t.rowOverscanStopIndex,r=t.rowStartIndex,i=t.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:o,overscanStopIndex:n,startIndex:r,stopIndex:i})}),e}return ae(t,e.PureComponent),ie(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,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,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,n=t.noRowsRenderer,r=t.scrollToIndex,i=t.width,l=W("ReactVirtualized__List",o);return e.createElement(nt,D({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:i,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}])}();ce(dt,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:rt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ut=function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var l=t+o>>>1;r(e[l],n)>=0?(i=l,o=l-1):t=l+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)};function ht(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var ft=ht.prototype;function pt(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 mt(e,t){var o=Rt(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 gt(e,t){var o=e.intervals([]);o.push(t),mt(e,o)}function vt(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?0:(o.splice(n,1),mt(e,o),1)}function _t(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function St(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function yt(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function wt(e,t){return e-t}function Ct(e,t){return e[0]-t[0]||e[1]-t[1]}function xt(e,t){return e[1]-t[1]||e[0]-t[0]}function Rt(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(wt);var n=t[t.length>>1],r=[],i=[],l=[];for(o=0;o<e.length;++o){var s=e[o];s[1]<n?r.push(s):n<s[0]?i.push(s):l.push(s)}var a=l,c=l.slice();return a.sort(Ct),c.sort(xt),new ht(n,Rt(r),Rt(i),a,c)}function bt(e){this.root=e}ft.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},ft.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)?gt(this,e):this.left.insert(e):this.left=Rt([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?gt(this,e):this.right.insert(e):this.right=Rt([e]);else{var o=ut(this.leftPoints,e,Ct),n=ut(this.rightPoints,e,xt);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},ft.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)?vt(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)?vt(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,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}pt(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?pt(this,this.left):pt(this,this.right);return 1}for(r=ut(this.leftPoints,e,Ct);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e)for(this.count-=1,this.leftPoints.splice(r,1),i=ut(this.rightPoints,e,xt);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},ft.queryPoint=function(e,t){return e<this.mid?this.left&&(o=this.left.queryPoint(e,t))?o:_t(this.leftPoints,e,t):e>this.mid?this.right&&(o=this.right.queryPoint(e,t))?o:St(this.rightPoints,e,t):yt(this.leftPoints,t);var o},ft.queryInterval=function(e,t,o){var n;return e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o))||t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o))?n:t<this.mid?_t(this.leftPoints,t,o):e>this.mid?St(this.rightPoints,e,o):yt(this.leftPoints,o)};var zt=bt.prototype;zt.insert=function(e){this.root?this.root.insert(e):this.root=new ht(e[0],null,null,[e],[e])},zt.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},zt.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},zt.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(zt,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(zt,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Tt=ie(function e(){te(this,e),ce(this,"_columnSizeMap",{}),ce(this,"_intervalTree",new bt(null)),ce(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=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 n,r,i,l,s=[],a=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t);else for(;!(a=(n=i.call(o)).done)&&(s.push(n.value),s.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{if(!a&&null!=o.return&&(l=o.return(),Object(l)!==l))return}finally{if(c)throw r}}return s}}(e,t)||lt(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),r=t[0];t[1];var i=t[2];return o(i,n._leftMap[i],r)})}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]);function It(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Pt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?It(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):It(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ot=function(){return!!e})()}var kt=function(){function t(){var e,o,n,r;te(this,t);for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return o=this,n=t,r=[].concat(l),n=se(n),ce(e=le(o,Ot()?Reflect.construct(n,r||[],se(o).constructor):n.apply(o,r)),"state",{isScrolling:!1,scrollTop:0}),ce(e,"_debounceResetIsScrollingId",void 0),ce(e,"_invalidateOnUpdateStartIndex",null),ce(e,"_invalidateOnUpdateStopIndex",null),ce(e,"_positionCache",new Tt),ce(e,"_startIndex",null),ce(e,"_startIndexMemoized",null),ce(e,"_stopIndex",null),ce(e,"_stopIndexMemoized",null),ce(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),ce(e,"_setScrollingContainerRef",function(t){e._scrollingContainer=t}),ce(e,"_onScroll",function(t){var o=e.props.height,n=t.currentTarget.scrollTop,r=Math.min(Math.max(0,e._getEstimatedTotalHeight()-o),n);n===r&&(e._debounceResetIsScrolling(),e.state.scrollTop!==r&&e.setState({isScrolling:!0,scrollTop:r}))}),e}return ae(t,e.PureComponent),ie(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Tt,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 Tt,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&&Je(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var t,o=this,n=this.props,r=n.autoHeight,i=n.cellCount,l=n.cellMeasurerCache,s=n.cellRenderer,a=n.className,c=n.height,d=n.id,u=n.keyMapper,h=n.overscanByPixels,f=n.role,p=n.style,m=n.tabIndex,g=n.width,v=n.rowDirection,_=this.state,S=_.isScrolling,y=_.scrollTop,w=[],C=this._getEstimatedTotalHeight(),x=this._positionCache.shortestColumnSize,R=this._positionCache.count,b=0;if(this._positionCache.range(Math.max(0,y-h),c+2*h,function(e,n,r){void 0===t?(b=e,t=e):(b=Math.min(b,e),t=Math.max(t,e)),w.push(s({index:e,isScrolling:S,key:u(e),parent:o,style:ce(ce(ce(ce({height:l.getHeight(e)},"ltr"===v?"left":"right",n),"position","absolute"),"top",r),"width",l.getWidth(e))}))}),x<y+c+h&&R<i)for(var z=Math.min(i-R,Math.ceil((y+c+h-x)/l.defaultHeight*g/l.defaultWidth)),T=R;T<R+z;T++)t=T,w.push(s({index:T,isScrolling:S,key:u(T),parent:this,style:{width:l.getWidth(T)}}));return this._startIndex=b,this._stopIndex=t,e.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:W("ReactVirtualized__Masonry",a),id:d,onScroll:this._onScroll,role:f,style:Pt({boxSizing:"border-box",direction:"ltr",height:r?"auto":c,overflowX:"hidden",overflowY:C<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:m},e.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:C,maxWidth:"100%",maxHeight:C,overflow:"hidden",pointerEvents:S?"none":"",position:"relative"}},w))}},{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&&Je(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Ze(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{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,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var l=r(i),s=l.left,a=l.top;this._positionCache.setPosition(i,s,a,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])}();function Mt(){}ce(kt,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Mt,onScroll:Mt,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),fe(kt);var Lt=ie(function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};te(this,e),ce(this,"_cellMeasurerCache",void 0),ce(this,"_columnIndexOffset",void 0),ce(this,"_rowIndexOffset",void 0),ce(this,"columnWidth",function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})}),ce(this,"rowHeight",function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})});var n=o.cellMeasurerCache,r=o.columnIndexOffset,i=void 0===r?0:r,l=o.rowIndexOffset,s=void 0===l?0:l;this._cellMeasurerCache=n,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,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}}]),Gt=["rowIndex"],At=["columnIndex","rowIndex"],Et=["columnIndex"],Ht=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Wt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Dt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Wt(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function jt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jt=function(){return!!e})()}var Ft=function(){function t(o,n){var r,i,l,s;te(this,t),i=this,s=[o,n],l=se(l=t),ce(r=le(i,jt()?Reflect.construct(l,s||[],se(i).constructor):l.apply(i,s)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),ce(r,"_deferredInvalidateColumnIndex",null),ce(r,"_deferredInvalidateRowIndex",null),ce(r,"_bottomLeftGridRef",function(e){r._bottomLeftGrid=e}),ce(r,"_bottomRightGridRef",function(e){r._bottomRightGrid=e}),ce(r,"_cellRendererBottomLeftGrid",function(t){var o=t.rowIndex,n=Fe(t,Gt),i=r.props,l=i.cellRenderer,s=i.fixedRowCount;return o===i.rowCount-s?e.createElement("div",{key:n.key,style:Dt(Dt({},n.style),{},{height:20})}):l(Dt(Dt({},n),{},{parent:r,rowIndex:o+s}))}),ce(r,"_cellRendererBottomRightGrid",function(e){var t=e.columnIndex,o=e.rowIndex,n=Fe(e,At),i=r.props,l=i.cellRenderer,s=i.fixedColumnCount,a=i.fixedRowCount;return l(Dt(Dt({},n),{},{columnIndex:t+s,parent:r,rowIndex:o+a}))}),ce(r,"_cellRendererTopRightGrid",function(t){var o=t.columnIndex,n=Fe(t,Et),i=r.props,l=i.cellRenderer,s=i.columnCount,a=i.fixedColumnCount;return o===s-a?e.createElement("div",{key:n.key,style:Dt(Dt({},n.style),{},{width:20})}):l(Dt(Dt({},n),{},{columnIndex:o+a,parent:r}))}),ce(r,"_columnWidthRightGrid",function(e){var t=e.index,o=r.props,n=o.columnCount,i=o.fixedColumnCount,l=o.columnWidth,s=r.state,a=s.scrollbarSize;return s.showHorizontalScrollbar&&t===n-i?a:"function"==typeof l?l({index:t+i}):l}),ce(r,"_onScroll",function(e){var t=e.scrollLeft,o=e.scrollTop;r.setState({scrollLeft:t,scrollTop:o});var n=r.props.onScroll;n&&n(e)}),ce(r,"_onScrollbarPresenceChange",function(e){var t=e.horizontal,o=e.size,n=e.vertical,i=r.state,l=i.showHorizontalScrollbar,s=i.showVerticalScrollbar;if(t!==l||n!==s){r.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:n});var a=r.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:n})}}),ce(r,"_onScrollLeft",function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})}),ce(r,"_onScrollTop",function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})}),ce(r,"_rowHeightBottomGrid",function(e){var t=e.index,o=r.props,n=o.fixedRowCount,i=o.rowCount,l=o.rowHeight,s=r.state,a=s.scrollbarSize;return s.showVerticalScrollbar&&t===i-n?a:"function"==typeof l?l({index:t+n}):l}),ce(r,"_topLeftGridRef",function(e){r._topLeftGrid=e}),ce(r,"_topRightGridRef",function(e){r._topRightGrid=e});var a=o.deferredMeasurementCache,c=o.fixedColumnCount,d=o.fixedRowCount;return r._maybeCalculateCachedStyles(!0),a&&(r._deferredMeasurementCacheBottomLeftGrid=d>0?new Lt({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:d}):a,r._deferredMeasurementCacheBottomRightGrid=c>0||d>0?new Lt({cellMeasurerCache:a,columnIndexOffset:c,rowIndexOffset:d}):a,r._deferredMeasurementCacheTopRightGrid=c>0?new Lt({cellMeasurerCache:a,columnIndexOffset:c,rowIndexOffset:0}):a),r}return ae(t,e.PureComponent),ie(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,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{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,n=e.rowIndex,r=void 0===n?0:n,i=this.props,l=i.fixedColumnCount,s=i.fixedRowCount,a=Math.max(0,o-l),c=Math.max(0,r-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:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:r}),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 n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var t=this.props,o=t.onScroll,n=t.onSectionRendered;t.onScrollbarPresenceChange,t.scrollLeft;var r=t.scrollToColumn;t.scrollTop;var i=t.scrollToRow,l=Fe(t,Ht);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.createElement("div",{style:this._containerOuterStyle},e.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(Dt(Dt({},l),{},{onScroll:o,scrollLeft:a}))),e.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Dt(Dt({},l),{},{onScroll:o,scrollTop:c})),this._renderBottomRightGrid(Dt(Dt({},l),{},{onScroll:o,onSectionRendered:n,scrollLeft:a,scrollToColumn:r,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 n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}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 n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}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,n=t.enableFixedColumnScroll,r=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=Dt({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=Dt({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},d)),(e||g||u!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Dt({left:this._getLeftGridWidth(this.props),position:"absolute"},u)),(e||h!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Dt({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},h)),(e||g||f!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Dt({left:this._getLeftGridWidth(this.props),overflowX:r?"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,n=t.fixedColumnCount,r=t.fixedRowCount,i=t.rowCount,l=t.hideBottomLeftGridScrollbar,s=this.state.showVerticalScrollbar;if(!n)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.createElement(nt,D({},t,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:o?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-r)+a,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:h}));return l?e.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Dt(Dt({},this._bottomLeftGridStyle),{},{height:c,width:d,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(t){var o=t.columnCount,n=t.fixedColumnCount,r=t.fixedRowCount,i=t.rowCount,l=t.scrollToColumn,s=t.scrollToRow;return e.createElement(nt,D({},t,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,o-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(t),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:l-n,scrollToRow:s-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(t)}))}},{key:"_renderTopLeftGrid",value:function(t){var o=t.fixedColumnCount,n=t.fixedRowCount;return o&&n?e.createElement(nt,D({},t,{className:this.props.classNameTopLeftGrid,columnCount:o,height:this._getTopGridHeight(t),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(t)})):null}},{key:"_renderTopRightGrid",value:function(t){var o=t.columnCount,n=t.enableFixedRowScroll,r=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=Dt(Dt({},this._topRightGridStyle),{},{left:0}));var v=e.createElement(nt,D({},t,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,o-r)+u,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:l,style:g,tabIndex:null,width:f}));return s?e.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Dt(Dt({},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 Nt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nt=function(){return!!e})()}ce(Ft,"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}),Ft.propTypes={},fe(Ft),(function(){function t(e,o){var n,r,i,l;return te(this,t),r=this,l=[e,o],i=se(i=t),(n=le(r,Nt()?Reflect.construct(i,l||[],se(r).constructor):i.apply(r,l))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(n),n}return ae(t,e.PureComponent),ie(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,l=t.scrollTop,s=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:l,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:l})}}])}()).propTypes={};var Bt="ASC",Ut="DESC";function Vt(t){var o=t.sortDirection,n=W("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":o===Bt,"ReactVirtualized__Table__sortableHeaderIcon--DESC":o===Ut});return e.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},o===Bt?e.createElement("path",{d:"M7 14l5-5 5 5z"}):e.createElement("path",{d:"M7 10l5 5 5-5z"}),e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function $t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($t=function(){return!!e})()}Vt.propTypes={};var Kt=function(){function t(){return te(this,t),e=this,n=arguments,o=se(o=t),le(e,$t()?Reflect.construct(o,n||[],se(e).constructor):o.apply(e,n));var e,o,n}return ae(t,e.Component),ie(t)}();function qt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Xt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qt(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Yt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yt=function(){return!!e})()}ce(Kt,"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:Bt,flexGrow:0,flexShrink:1,headerRenderer:function(t){var o=t.dataKey,n=t.label,r=t.sortBy,i=t.sortDirection,l=r===o,s=[e.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return l&&s.push(e.createElement(Vt,{key:"SortIndicator",sortDirection:i})),s},style:{}}),Kt.propTypes={};var Jt=function(){function t(e){var o,n,r,i;return te(this,t),n=this,i=[e],r=se(r=t),(o=le(n,Yt()?Reflect.construct(r,i||[],se(n).constructor):r.apply(n,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 ae(t,e.PureComponent),ie(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,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,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,n=o.children,r=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,w="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],e.Children.toArray(n).forEach(function(e,o){var n=t._getFlexStyleForColumn(e,e.props.style||Kt.defaultProps.style);t._cachedColumnStyles[o]=Xt({overflow:"hidden"},n)}),e.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":e.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:W("ReactVirtualized__Table",r),id:u,role:"grid",style:g},!i&&c({className:W("ReactVirtualized__Table__headerRow",y),columns:this._getHeaderColumns(),style:Xt({height:a,overflow:"hidden",paddingRight:_,width:v},w)}),e.createElement(nt,D({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:W("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:Xt(Xt({},s),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(t){var o=t.column,n=t.columnIndex,r=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:n,dataKey:p,isScrolling:r,parent:i,rowData:l,rowIndex:s}),v=this._cachedColumnStyles[n],_="string"==typeof g?g:null;return e.createElement("div",{"aria-colindex":n+1,"aria-describedby":m,className:W("ReactVirtualized__Table__rowColumn",h),key:"Row"+s+"-Col"+n,onClick:function(e){a&&a({columnData:f,dataKey:p,event:e})},role:"gridcell",style:v,title:_},g)}},{key:"_createHeader",value:function(t){var o,n,r,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,w=g.headerRenderer,C=g.id,x=g.label,R=!y&&f,b=W("ReactVirtualized__Table__headerColumn",d,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),z=this._getFlexStyleForColumn(s,Xt(Xt({},u),s.props.headerStyle)),T=w({columnData:v,dataKey:_,disableSort:y,label:x,sortBy:p,sortDirection:m});if(R||h){var I=p!==_?S:m===Ut?Bt:Ut,P=function(e){R&&f({defaultSortDirection:S,event:e,sortBy:_,sortDirection:I}),h&&h({columnData:v,dataKey:_,event:e})};l=s.props["aria-label"]||x||_,i="none",r=0,o=P,n=function(e){"Enter"!==e.key&&" "!==e.key||P(e)}}return p===_&&(i=m===Bt?"ascending":"descending"),e.createElement("div",{"aria-label":l,"aria-sort":i,className:b,id:C,key:"Header-Col"+a,onClick:o,onKeyDown:n,role:"columnheader",style:z,tabIndex:r},T)}},{key:"_createRow",value:function(t){var o=this,n=t.rowIndex,r=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:n}):m,w="function"==typeof _?_({index:n}):_,C=g({index:n}),x=e.Children.toArray(c).map(function(e,t){return o._createColumn({column:e,columnIndex:t,isScrolling:r,parent:l,rowData:C,rowIndex:n,scrollbarWidth:S})}),R=W("ReactVirtualized__Table__row",y),b=Xt(Xt({},s),{},{height:this._getRowHeight(n),overflow:"hidden",paddingRight:S},w);return v({className:R,columns:x,index:n,isScrolling:r,key:i,onRowClick:d,onRowDoubleClick:u,onRowRightClick:h,onRowMouseOver:f,onRowMouseOut:p,rowData:C,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"),n=Xt(Xt({},t),{},{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var t=this,o=this.props,n=o.children;return(o.disableHeader?[]:e.Children.toArray(n)).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,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{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})}}])}();ce(Jt,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:rt,overscanRowCount:10,rowRenderer:function(t){var o=t.className,n=t.columns,r=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":r+1};return(l||s||a||c||d)&&(f["aria-label"]="row",f.tabIndex=0,l&&(f.onClick=function(e){return l({event:e,index:r,rowData:u})}),s&&(f.onDoubleClick=function(e){return s({event:e,index:r,rowData:u})}),a&&(f.onMouseOut=function(e){return a({event:e,index:r,rowData:u})}),c&&(f.onMouseOver=function(e){return c({event:e,index:r,rowData:u})}),d&&(f.onContextMenu=function(e){return d({event:e,index:r,rowData:u})})),e.createElement("div",D({},f,{className:o,key:i,role:"row",style:h}),n)},headerRowRenderer:function(t){var o=t.className,n=t.columns,r=t.style;return e.createElement("div",{className:o,role:"row",style:r},n)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Jt.propTypes={};var Zt=[],Qt=null,eo=null;function to(){eo&&(eo=null,document.body&&null!=Qt&&(document.body.style.pointerEvents=Qt),Qt=null)}function oo(){to(),Zt.forEach(function(e){return e.__resetIsScrolling()})}function no(e){e.currentTarget===window&&null==Qt&&document.body&&(Qt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){eo&&Je(eo);var e=0;Zt.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),eo=Ze(oo,e)}(),Zt.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function ro(e,t){Zt.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",no),Zt.push(e)}function io(e,t){(Zt=Zt.filter(function(t){return t!==e})).length||(t.removeEventListener("scroll",no),eo&&(Je(eo),to()))}var lo=function(e){return e===window},so=function(e){return e.getBoundingClientRect()};function ao(e,t){if(e){if(lo(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return so(e)}return{height:t.serverHeight,width:t.serverWidth}}function co(e){return lo(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 uo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ho(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(o),!0).forEach(function(t){ce(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):uo(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function fo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fo=function(){return!!e})()}var po=function(){return"undefined"!=typeof window?window:void 0},mo=function(){function t(){var o,n,r,i;te(this,t);for(var l=arguments.length,s=new Array(l),a=0;a<l;a++)s[a]=arguments[a];return n=this,r=t,i=[].concat(s),r=se(r),ce(o=le(n,fo()?Reflect.construct(r,i||[],se(n).constructor):r.apply(n,i)),"_window",po()),ce(o,"_isMounted",!1),ce(o,"_positionFromTop",0),ce(o,"_positionFromLeft",0),ce(o,"_detectElementResize",void 0),ce(o,"_child",void 0),ce(o,"_windowScrollerRef",e.createRef()),ce(o,"state",ho(ho({},ao(o.props.scrollElement,o.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),ce(o,"_registerChild",function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),o._child=e,o.updatePosition()}),ce(o,"_onChildScroll",function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}}),ce(o,"_registerResizeListener",function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)}),ce(o,"_unregisterResizeListener",function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)}),ce(o,"_onResize",function(){o.updatePosition()}),ce(o,"__handleWindowScrollEvent",function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=co(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}}),ce(o,"__resetIsScrolling",function(){o.setState({isScrolling:!1})}),o}return ae(t,e.PureComponent),ie(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,n=o.height,r=o.width,i=this._child||this._windowScrollerRef.current;if(i instanceof Element&&e){var l=function(e,t){if(lo(t)&&document.documentElement){var o=document.documentElement,n=so(e),r=so(o);return{top:n.top-r.top,left:n.left-r.left}}var i=co(t),l=so(e),s=so(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=ao(e,this.props);n===s.height&&r===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=_e(),this.updatePosition(e),e&&(ro(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),io(this,n),ro(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(io(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var t=this.props.children,o=this.state,n=o.isScrolling,r=o.scrollTop,i=o.scrollLeft,l=o.height,s=o.width;return e.createElement("div",{ref:this._windowScrollerRef},t({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:l,isScrolling:n,scrollLeft:i,scrollTop:r,width:s}))}}])}();ce(mo,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:po(),serverHeight:0,serverWidth:0});const go="ReactVirtualizedDemo-flexContainer",vo="ReactVirtualizedDemo-tableRow",_o="ReactVirtualizedDemo-tableRowHover",So="ReactVirtualizedDemo-tableCell",yo="ReactVirtualizedDemo-noClick";class wo extends M.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return L(vo,go,{[_o]:-1!==e&&null!=t})},this.cellRenderer=({cellData:e,dataKey:t,columnIndex:o,width:n})=>{const{columns:i,rowHeight:l,onRowClick:s}=this.props;let a=e,c={height:l,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${n}px`,maxWidth:`${n}px`};return"shortcut"===t?a=G(e):"description"===t&&(c={...c,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),r.jsx($,{component:"div",className:L(So,go,{[yo]:null==s}),variant:"body",style:c,align:null!=o&&i[o].numeric?"right":"left",children:a})},this.headerRenderer=({label:e,columnIndex:t,width:o})=>{const{headerHeight:n,columns:i}=this.props,l=i[t];return r.jsx($,{component:"div",className:L(So,go,yo),variant:"head",sx:{width:o,height:n,backgroundColor:e=>e.palette.grey[300]},align:l.numeric?"right":"left",children:r.jsx("span",{children:l.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:o,...n}=this.props;return r.jsx(Ce,{children:({height:i,width:l})=>r.jsx(Jt,{height:i,width:l,rowHeight:t,gridStyle:{direction:"inherit"},headerHeight:o,...n,rowClassName:this.getRowClassName,children:e.map(({dataKey:e,width:t,widthLess:o,...n},i)=>{const s=o?l-o:t;return r.jsx(Kt,{style:{flex:`1 1 ${s}px`},headerRenderer:e=>this.headerRenderer({...e,width:s,columnIndex:i}),className:go,cellDataGetter:({rowData:e,columnData:t,dataKey:o})=>e[o],cellRenderer:e=>this.cellRenderer({...e,width:s,columnIndex:i}),dataKey:e,width:s,...n},e)})})})}}const Co=ee(wo)(({theme:e})=>({"& .ReactVirtualized__Table__headerRow":{..."rtl"===e.direction&&{paddingLeft:"0 !important"},..."rtl"!==e.direction&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${go}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${vo}`]:{cursor:"pointer"},[`& .${_o}`]:{"&:hover:not([disabled])":{backgroundColor:e.palette.grey[200]}},[`& .${So}`]:{flex:1},[`& .${yo}`]:{cursor:"initial"}}));function xo(t){const{commands:o,...n}=t,[i,l]=e.useState(!1),[s,a]=e.useState(""),c=e.useMemo(()=>{let e=o.getAllCommands();i||(e=e.filter(e=>e.command.shortcut())),e.sort((e,t)=>e.command.label().localeCompare(t.command.label()));const t=[],n=e=>e.replace(/\n\n/g,"\n");for(let o=0;o<e.length;o++){const r=e[o].command,i=r.shortcut();if(Array.isArray(i)){const e=i;for(let o=0;o<e.length;o++)t.push({label:r.label(),description:n(r.description()),shortcut:e[o]})}else t.push({label:r.label(),description:n(r.description()),shortcut:r.shortcut()})}return t},[i,o]),[d,u]=e.useState(null);e.useEffect(()=>{import("./gOUfyCw957TzcbNB.mjs").then(e=>{u(new e.default(c,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[c]);const[f,p]=e.useState(c),z=s.length>0&&0===f.length;return e.useEffect(()=>{d&&g.debounce(()=>{if(0===s.trim().length)return void p(c);const e=d.search(s.trim()),t=new Array(e.length);for(let o=0;o<e.length;o++)t[o]=e[o].item;p(t)},90)()},[d,s]),r.jsxs(v,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...n,children:[r.jsxs(v,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:e=>e.spacing(2),color:e=>e.palette.text.secondary},children:[r.jsx(_,{InputProps:{sx:{backgroundImage:`linear-gradient(${h("#fff",C(5))}, ${h("#fff",C(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:r.jsx(S,{sx:{opacity:s.length>0?1:0,display:s.length>0?"flex":"none"},position:"end",children:r.jsx(y,{"aria-label":"clear search",onClick:()=>a(""),edge:"end",children:r.jsx(w,{})})})},sx:{flex:"1 1 40%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>z?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>z?`${e.palette.error.main} !important`:void 0}},value:s,onChange:e=>{a(e.target.value)},onKeyDown:e=>{e.which===m.Escape&&s.length>0&&(a(""),e.stopPropagation(),e.preventDefault())},onContextMenu:e=>{e.stopPropagation()}}),r.jsx(x,{sx:{flex:"1 1 60%"},control:r.jsx(R,{checked:i,onChange:()=>l(!i)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),r.jsx(v,{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(${h("#fff",C(5))}, ${h("#fff",C(5))})`}},children:r.jsx(Co,{rowCount:f.length,rowGetter:e=>f[e.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),r.jsx(v,{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:r.jsx(b,{noWrap:!0,component:"div",sx:{color:e=>z?e.palette.error.main:e.palette.text.secondary},children:`${0===f.length?"No":f.length} shortcut key${1===f.length?"":"s"}${s.length>0?" found":""}`})})]})}const Ro=e=>{const{title:t="Shortcut Keys",commands:o,sx:n,...i}=e;return r.jsx(f,{isModal:!0,onKeyDown:e=>{e.keyCode===m.F1&&e.preventDefault()},sx:{width:"780px",...n},title:t,autoFocusSel:".input",...i,children:r.jsx(p,{dividers:!0,children:r.jsx(xo,{commands:o,sx:{marginBottom:"8px"}})})})};export{Ro as default};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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
- const e={ACCRINT:{p:{issue:{d:"is the security's issue date, expressed as a serial date number"},firstInterest:{d:"is the security's first interest date, expressed as a serial date number"},settlement:{d:"is the security's settlement date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0},calcMethod:{d:"is a logical value: to accrued interest from issue date = TRUE; to calculate from last coupon payment date = FALSE",v:!0}}},ACCRINTM:{s:"Returns the accrued interest for a security that pays interest at maturity",p:{issue:{d:"is the security's issue date, expressed as a serial date number"},settlement:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},par:{d:"is the security's par value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},AMORLINC:{s:"Returns the prorated linear depreciation of an asset for each accounting period.",p:{cost:{d:"is the cost of the asset"},datePurchased:{d:"is the date the asset is purchased"},firstPeriod:{d:"is the date of the end of the first period"},salvarge:{d:"is the salvage value at the end of life of the asset."},period:{d:"is the period"},rate:{d:"is the rate of depreciation"},basis:{d:"year_basis : 0 for year of 360 days, 1 for actual, 3 for year of 365 days.",v:0}},h:"Unimplemented"},COUPDAYBS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPDAYS:{s:"Returns the number of days from the beginning of the coupon period to the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}}},COUPNCD:{s:"Returns the next coupon date after the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPNUM:{s:"Returns the number of coupons payable between the settlement date and maturity date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},COUPPCD:{s:"Returns the previous coupon date before the settlement date",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},CUMIPMT:{s:"Returns the cumulative interest paid between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},CUMPRINC:{s:"Returns the cumulative principal paid on a loan between two periods",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},type:{d:"is the timing of the payment"}}},DB:{s:"Returns the depreciation of an asset for a specified period using the fixed-declining balance method",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},month:{d:"is the number of months in the first year",v:12}}},DDB:{s:"Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},period:{d:"is the period for which you want to calculate the depreciation. Period must use the same units as Life"},factor:{d:"is the rate at which the balance declines",v:2}}},DISC:{s:"Returns the discount rate for a security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}}},DOLLARDE:{s:"Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number",p:{fractionalDollar:{d:"is a number expressed as a fraction"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DOLLARFR:{s:"Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction",p:{decimalDollar:{d:"is a decimal number"},fraction:{d:"is the integer to use in the denominator of the fraction"}}},DURATION:{s:"Returns the annual duration of a security with periodic interest payments",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},EFFECT:{s:"Returns the effective annual interest rate",p:{nominalRate:{d:"is the nominal interest rate"},npery:{d:"is the number of compounding periods per year"}}},FV:{s:"Returns the future value of an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value of the investment",v:0},type:{d:"Indicates when pmts are due.",v:0}}},FVSCHEDULE:{s:"Returns the future value of an initial principal after applying a series of compound interest rates",p:{principal:{d:"is the present value"},schedule:{d:"is an array of interest rates to apply"}}},INTRATE:{s:"Returns the interest rate for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},IPMT:{s:"Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},per:{d:"is the period for which you want to find the interest and must be in the range 1 to Nper"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value representing the timing of payment: at the end of the period = 0, at the beginning of the period = 1",v:0}}},IRR:{s:"Returns the internal rate of return for a series of cash flows",p:{values:{d:"is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return"},guess:{d:"is a number that you guess is close to the result of IRR",v:.1}},h:"Unimplemented"},ISPMT:{s:"Returns the interest paid during a specific period of an investment",p:{rate:{d:"is the interest rate"},per:{d:"period for which you want to find the interest"},nper:{d:"number of payment periods in an investment"},pv:{d:"lump sum amount that a series of future payments is right now"}}},MDURATION:{s:"Returns the Macauley modified duration for a security with an assumed par value of $100",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},coupon:{d:"is the security's annual coupon rate"},yld:{d:"is the security's annual yield"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:2}},h:"Unimplemented"},MIRR:{s:"Returns the internal rate of return for a series of periodic cash flows, considering both cost of investment and interest on reinvestment of cash",p:{values:{d:"is an array or a reference to cells that contain numbers that represent a series of payments (negative) and income (positive) at regular periods"},financeRate:{d:"is the interest rate you pay on the money used in the cash flows"},reinvestRate:{d:"is the interest rate you receive on the cash flows as you reinvest them"}}},NOMINAL:{s:"Returns the annual nominal interest rate",p:{effectiveRate:{d:"is the effective interest rate"},npery:{d:"is the number of compounding periods per year@param npery"}}},NPER:{s:"Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate",p:{rate:{d:"is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR"},pmt:{d:"is the payment made each period; it cannot change over the life of the investment"},pv:{d:"is the present value, or the lump-sum amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},NPV:{s:"Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values)",p:{rate:{d:"is the rate of discount over the length of one period"},value:{d:"value1,value2,... are 1 to 254 payments and income, equally spaced in time and occurring at the end of each period"}}},ODDFPRICE:{s:"Returns the price per $100 face value of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDFYIELD:{s:"Returns the yield of a security with an odd first period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},firstCoupon:{d:"is the security's first coupon date, expressed as a serial date number"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLPRICE:{s:"Returns the price per $100 face value of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},ODDLYIELD:{s:"Returns the yield of a security with an odd last period",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},lastInterest:{d:"is the security's last coupon date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PDURATION:{s:"Returns the number of periods required by an investment to reach a specified value",p:{rate:{d:"is the interest rate"},pv:{d:"is the present value of the investment"},fv:{d:"is the desired future value of the investment"}}},PMT:{s:"Calculates the payment for a loan based on constant payments and a constant interest rate",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},PRICE:{s:"Returns the price per $100 face value of a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},redemption:{d:"is the amount to be received at maturity"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PRICEDISC:{s:"Returns the price per $100 face value of a discounted security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},discount:{d:"is the security's discount rate"},redemption:{d:"is the amount to be received at maturity"},basis:{d:"is the type of day count basis to use",v:0}}},PRICEMAT:{s:"Returns the price per $100 face value of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},yld:{d:"is the security's annual yield"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},PV:{s:"Returns the present value of an investment: the total amount that a series of future payments is worth now",p:{rate:{d:"is the interest rate"},nper:{d:"is the total number of payment periods in an investment"},pmt:{d:"is the payment made each period and cannot change over the life of the investment"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0}}},RATE:{s:"Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR",p:{nper:{d:"is the total number of payment periods"},pmt:{d:"is the payment made each period and cannot change over the life of the loan or investment"},pv:{d:"is the present value: the total amount that a series of future payments is worth now"},fv:{d:"is the future value, or a cash balance you want to attain after the last payment is made",v:0},type:{d:"is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0",v:0},guess:{d:"is your guess for what the rate will be",v:.1}}},RECEIVED:{s:"Returns the amount received at maturity for a fully invested security",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},investment:{d:"is the amount invested in the security"},discount:{d:"is the security's discount rate"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},RRI:{s:"Returns an equivalent interest rate for the growth of an investment",p:{nper:{d:"is the total number of payment periods"},pv:{d:"is the present value of the investment"},fv:{d:"is the future value of the investment"}}},SLN:{s:"Returns the straight-line depreciation of an asset for one period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"}}},STOCKHISTORY:{s:"Returns an array of historical quote data for a symbol and date range you specify.",p:{stock:{d:"Symbol of financial instrument to be considered or a Stock data type."},startDate:{d:"First date to return data from."},endDate:{d:"Last date to return data from."},interval:{d:"A number indicating the granularity of the data; 0 - Daily, 1 - Weekly, 2 - Monthly",v:0},headers:{d:"A logical value to add column header data; 0 - No column header, 1 - Show column header, 2 - Show instrument identifier and column header",v:1},properties:{d:"properties1,properties2,... A number indicating which column of data to return; 0 through 5",v:"[0, 1, 2, 3, 4]"}},h:"Unimplemented"},SYD:{s:"Returns the sum-of-years' digits depreciation of an asset for a specified period",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},per:{d:"is the period and must use the same units as Life"}}},TBILLEQ:{s:"Returns the bond-equivalent yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLPRICE:{s:"Returns the price per $100 face value for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},discount:{d:"is the Treasury bill's discount rate"}}},TBILLYIELD:{s:"Returns the yield for a treasury bill",p:{settlement:{d:"is the Treasury bill's settlement date, expressed as a serial date number"},maturity:{d:"is the Treasury bill's maturity date, expressed as a serial date number"},pr:{d:"is the Treasury Bill's price per $100 face value"}}},VDB:{s:"Returns the depreciation of an asset for any period you specify, including partial periods, using the double-declining balance method or some other method you specify",p:{cost:{d:"is the initial cost of the asset"},salvage:{d:"is the salvage value at the end of the life of the asset"},life:{d:"is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)"},startPeriod:{d:"is the first period in the calculation"},endPeriod:{d:"is the last period in the calculation"},factor:{d:"is the rate at which the balance declines",v:2},noSwitch:{d:"switch to straight-line depreciation when depreciation is greater than the declining balance = FALSE; do not switch = TRUE",v:!1}},h:"Unimplemented"},XIRR:{s:"Returns the internal rate of return for a schedule of cash flows",p:{values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"},guess:{d:"is a number that you guess is close to the result of XIRR",v:.1}},h:"Unimplemented"},XNPV:{s:"Returns the net present value for a schedule of cash flows",p:{rate:{d:"is the discount rate to apply to the cash flows"},values:{d:"is a series of cash flows that correspond to a schedule of payments in dates"},dates:{d:"is a schedule of payment dates that corresponds to the cash flow payments"}}},YIELD:{s:"Returns the yield on a security that pays periodic interest",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},rate:{d:"is the security's annual coupon rate"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDDISC:{s:"Returns the annual yield for a discounted security. For example, a treasury bill",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},pr:{d:"is the security's price per $100 face value"},redemption:{d:"is the security's redemption value per $100 face value"},frequency:{d:"is the number of coupon payments per year"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"},YIELDMAT:{s:"Returns the annual yield of a security that pays interest at maturity",p:{settlement:{d:"is the security's settlement date, expressed as a serial date number"},maturity:{d:"is the security's maturity date, expressed as a serial date number"},issue:{d:"is the security's issue date, expressed as a serial date number"},rate:{d:"is the interest rate"},pr:{d:"is the security's price per $100 face value"},basis:{d:"is the type of day count basis to use",v:0}},h:"Unimplemented"}};export{e as default};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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 t,aj as n,j as o,s as e,B as a,F as s,T as i,c as l,a0 as c}from"./4GgcUVhUmQmiv9Ha.mjs";const p=["Ok","Cancel"],r=t.memo(r=>{const{initialComments:u=null,onUpdateComments:m,context:d,onOption:g,onValidateOption:x,onDone:f,options:h=p,defaultOption:C=h?.[0],cancelOption:O="Cancel",sx:j,...F}=r,T=t.useMemo(()=>{const t=u??d?.()?.getComments();let n="";if(t&&t.content&&t.content.runs){const o=t.content.runs;for(let t=0;t<o.length;t++){const e=o[t];n+=e?.text}}return n},[]),[k,w]=t.useState(T),[y,P]=t.useState(!1),b=t.useCallback(async(t,n)=>null,[]),v=n(async t=>{const n=""===k?[]:k.split("\n");if(t!==O){const t=[];for(let o=0;o<n.length;o++)t.push({text:n[o]});const o={content:{runs:t}};m?.(o)}g?.(t,t===O,t===C),f?.()},[k,m,f,g,C,O]),D=n(t=>{w(t.target.value),b(t.target.value,null)},[x]),I=n(async t=>{let n=await Promise.resolve(x?.(t));try{!1!==n&&(n=await b(k,t))}catch(t){}return n??!0},[x,k]);return o.jsx(e,{title:(T?"Edit":"Insert")+" Comments",options:h,onDone:f,onOption:t=>v(t),onValidateOption:I,defaultOption:C,cancelOption:O,autoFocusSel:".autoFocus",sx:{width:"480px",...j},...F,children:o.jsx(a,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:o.jsx(s,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:o.jsx(i,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{y||t.target?.select(),P(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${l("#fff",c(5))}, ${l("#fff",c(5))})`}}},value:k,onChange:D,onContextMenu:t=>{t.stopPropagation()}})})})})});export{r as CommentsDialog,r as default};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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 e,aj as a,X as t,k as o,j as s,s as n,B as l,F as i,ak as r,al as p,c,a0 as u,T as d,a3 as m,am as g}from"./4GgcUVhUmQmiv9Ha.mjs";const x=["Ok","Cancel"],y=e.memo(y=>{const{initialValue:f,context:h,onOption:C,onValidateOption:b,onInputOption:j,onDone:k,options:v=x,defaultOption:T=v?.[0],cancelOption:O="Cancel",sx:F,...S}=y,[w,P]=e.useState(f),[D,$]=e.useState(!1),I=e.useCallback(async(e,a)=>!0,[]),M=a(async e=>{j?.(w,e),C?.(e,e===O,e===T),k?.()},[w,j,k,C,O,T]),N=a(async e=>{e.keyCode===t.Enter&&!1!==await(I?.(w,null))&&M(T)},[w,M]),V=a(e=>{P(e.target.value),I?.(e.target.value,null)},[b]),B=a(async e=>{let a=await Promise.resolve(b?.(e));try{!1!==a&&(a=await Promise.resolve(I?.(w,e))??!0)}catch(e){}return a??!0},[b]),[z,E]=e.useState(o.Styles.lookupStyle(w).formatType??o.Type.Custom);e.useEffect(()=>{E(o.Styles.lookupStyle(w).formatType??o.Type.Custom)},[w]);const L=e.useMemo(()=>{const e=o.Styles.lookupPrimary(),a=e=>s.jsx(g,{value:e,children:e},e),t=Object.keys(e).map(t=>a(e[t].formatType));return t.push(a(o.Type.Custom)),t},[]),R=e.useCallback(e=>{const a=e.target.value;E(a);const t=o.Styles.lookupDefault(a);t&&P(t)},[]),W=e.useMemo(()=>{const e=h();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:w}})},[z,w,h]);return s.jsx(n,{title:"Number Format",options:v,onDone:k,onOption:e=>M(e),onValidateOption:B,defaultOption:T,cancelOption:O,autoFocusSel:".autoFocus",sx:{width:"580px",...F},...S,children:s.jsxs(l,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[s.jsxs(i,{sx:{minWidth:135},size:"small",children:[s.jsx(r,{children:"Category"}),s.jsx(p,{value:z,label:"Category",onChange:R,sx:{backgroundImage:`linear-gradient(${c("#fff",u(5))}, ${c("#fff",u(5))})`},children:L})]}),s.jsx(i,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:s.jsx(d,{label:"Code",onFocus:e=>{D||e.target?.select(),$(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${c("#fff",u(5))}, ${c("#fff",u(5))})`}}},value:w,onChange:V,onKeyDown:N,onContextMenu:e=>{e.stopPropagation()}})}),s.jsxs(l,{children:[s.jsx(m,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),s.jsx(m,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:W.getNumberFormat().displayText||"(empty)"})]})]})})});export{y as NumberFormatDialog,y as default};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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
- function t(t){return Array.isArray?Array.isArray(t):"[object Array]"===c(t)}function e(t){return"string"==typeof t}function n(t){return"number"==typeof t}function s(t){return!0===t||!1===t||function(t){return i(t)&&null!==t}(t)&&"[object Boolean]"==c(t)}function i(t){return"object"==typeof t}function r(t){return null!=t}function u(t){return!t.trim().length}function c(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const o=Object.prototype.hasOwnProperty;class h{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let n=a(t);this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function a(n){let s=null,i=null,r=null,u=1,c=null;if(e(n)||t(n))r=n,s=l(n),i=d(n);else{if(!o.call(n,"name"))throw new Error("Missing name property in key");const t=n.name;if(r=t,o.call(n,"weight")&&(u=n.weight,u<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(t));s=l(t),i=d(t),c=n.getFn}return{path:s,id:i,weight:u,src:r,getFn:c}}function l(e){return t(e)?e:e.split(".")}function d(e){return t(e)?e.join("."):e}var g={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(i,u){let c=[],o=!1;const h=(i,u,a)=>{if(r(i))if(u[a]){const l=i[u[a]];if(!r(l))return;if(a===u.length-1&&(e(l)||n(l)||s(l)))c.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(l));else if(t(l)){o=!0;for(let t=0,e=l.length;t<e;t+=1)h(l[t],u,a+1)}else u.length&&h(l,u,a+1)}else c.push(i)};return h(i,e(u)?u.split("."):u,0),o?c:c[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const f=/[^ ]+/g;class A{constructor({getFn:t=g.getFn,fieldNormWeight:e=g.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(e){const i=e.match(f).length;if(n.has(i))return n.get(i);const r=1/Math.pow(i,.5*t),u=parseFloat(Math.round(r*s)/s);return n.set(i,u),u},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,e(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const n=this.size();e(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!r(t)||u(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(n,s){let i={i:s,$:{}};this.keys.forEach((s,c)=>{let o=s.getFn?s.getFn(n):this.getFn(n,s.path);if(r(o))if(t(o)){let n=[];const s=[{nestedArrIndex:-1,value:o}];for(;s.length;){const{nestedArrIndex:i,value:c}=s.pop();if(r(c))if(e(c)&&!u(c)){let t={v:c,i:i,n:this.norm.get(c)};n.push(t)}else t(c)&&c.forEach((t,e)=>{s.push({nestedArrIndex:e,value:t})})}i.$[c]=n}else if(e(o)&&!u(o)){let t={v:o,n:this.norm.get(o)};i.$[c]=t}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function p(t,e,{getFn:n=g.getFn,fieldNormWeight:s=g.fieldNormWeight}={}){const i=new A({getFn:n,fieldNormWeight:s});return i.setKeys(t.map(a)),i.setSources(e),i.create(),i}function C(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:i=g.distance,ignoreLocation:r=g.ignoreLocation}={}){const u=e/t.length;if(r)return u;const c=Math.abs(s-n);return i?u+c/i:c?1:u}const m=32;function F(t,e,n,{location:s=g.location,distance:i=g.distance,threshold:r=g.threshold,findAllMatches:u=g.findAllMatches,minMatchCharLength:c=g.minMatchCharLength,includeMatches:o=g.includeMatches,ignoreLocation:h=g.ignoreLocation}={}){if(e.length>m)throw new Error("Pattern length exceeds max of 32.");const a=e.length,l=t.length,d=Math.max(0,Math.min(s,l));let f=r,A=d;const p=c>1||o,F=p?Array(l):[];let M;for(;(M=t.indexOf(e,A))>-1;){let t=C(e,{currentLocation:M,expectedLocation:d,distance:i,ignoreLocation:h});if(f=Math.min(t,f),A=M+a,p){let t=0;for(;t<a;)F[M+t]=1,t+=1}}A=-1;let E=[],D=1,y=a+l;const B=1<<a-1;for(let s=0;s<a;s+=1){let r=0,c=y;for(;r<c;)C(e,{errors:s,currentLocation:d+c,expectedLocation:d,distance:i,ignoreLocation:h})<=f?r=c:y=c,c=Math.floor((y-r)/2+r);y=c;let o=Math.max(1,d-c+1),g=u?l:Math.min(d+c,l)+a,m=Array(g+2);m[g+1]=(1<<s)-1;for(let r=g;r>=o;r-=1){let u=r-1,c=n[t.charAt(u)];if(p&&(F[u]=+!!c),m[r]=(m[r+1]<<1|1)&c,s&&(m[r]|=(E[r+1]|E[r])<<1|1|E[r+1]),m[r]&B&&(D=C(e,{errors:s,currentLocation:u,expectedLocation:d,distance:i,ignoreLocation:h}),D<=f)){if(f=D,A=u,A<=d)break;o=Math.max(1,2*d-A)}}if(C(e,{errors:s+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:h})>f)break;E=m}const x={isMatch:A>=0,score:Math.max(.001,D)};if(p){const t=function(t=[],e=g.minMatchCharLength){let n=[],s=-1,i=-1,r=0;for(let u=t.length;r<u;r+=1){let u=t[r];u&&-1===s?s=r:u||-1===s||(i=r-1,i-s+1>=e&&n.push([s,i]),s=-1)}return t[r-1]&&r-s>=e&&n.push([s,r-1]),n}(F,c);t.length?o&&(x.indices=t):x.isMatch=!1}return x}function M(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const i=t.charAt(n);e[i]=(e[i]||0)|1<<s-n-1}return e}const E=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class D{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:s=g.distance,includeMatches:i=g.includeMatches,findAllMatches:r=g.findAllMatches,minMatchCharLength:u=g.minMatchCharLength,isCaseSensitive:c=g.isCaseSensitive,ignoreDiacritics:o=g.ignoreDiacritics,ignoreLocation:h=g.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h},t=c?t:t.toLowerCase(),t=o?E(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const a=(t,e)=>{this.chunks.push({pattern:t,alphabet:M(t),startIndex:e})},l=this.pattern.length;if(l>m){let t=0;const e=l%m,n=l-e;for(;t<n;)a(this.pattern.substr(t,m),t),t+=m;if(e){const t=l-m;a(this.pattern.substr(t),t)}}else a(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s}=this.options;if(t=e?t:t.toLowerCase(),t=n?E(t):t,this.pattern===t){let e={isMatch:!0,score:0};return s&&(e.indices=[[0,t.length-1]]),e}const{location:i,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,ignoreLocation:h}=this.options;let a=[],l=0,d=!1;this.chunks.forEach(({pattern:e,alphabet:n,startIndex:g})=>{const{isMatch:f,score:A,indices:p}=F(t,e,n,{location:i+g,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,includeMatches:s,ignoreLocation:h});f&&(d=!0),l+=A,f&&p&&(a=[...a,...p])});let g={isMatch:d,score:d?l/this.chunks.length:1};return d&&s&&(g.indices=a),g}}class y{constructor(t){this.pattern=t}static isMultiMatch(t){return B(t,this.multiRegex)}static isSingleMatch(t){return B(t,this.singleRegex)}search(){}}function B(t,e){const n=t.match(e);return n?n[1]:null}class x extends y{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:s=g.distance,includeMatches:i=g.includeMatches,findAllMatches:r=g.findAllMatches,minMatchCharLength:u=g.minMatchCharLength,isCaseSensitive:c=g.isCaseSensitive,ignoreDiacritics:o=g.ignoreDiacritics,ignoreLocation:h=g.ignoreLocation}={}){super(t),this._bitapSearch=new D(t,{location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class L extends y{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const s=[],i=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,s.push([e,n-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const k=[class extends y{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},L,class extends y{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends y{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends y{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends y{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends y{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},x],_=k.length,v=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,S=new Set([x.type,L.type]);const I=[];function w(t,e){for(let n=0,s=I.length;n<s;n+=1){let s=I[n];if(s.condition(t,e))return new s(t,e)}return new D(t,e)}const $="$and",b="$path",N=t=>!(!t[$]&&!t.$or),R=t=>({[$]:Object.keys(t).map(e=>({[e]:t[e]}))});function O(n,s,{auto:r=!0}={}){const u=n=>{let c=Object.keys(n);const o=(t=>!!t[b])(n);if(!o&&c.length>1&&!N(n))return u(R(n));if((e=>!t(e)&&i(e)&&!N(e))(n)){const t=o?n[b]:c[0],i=o?n.$val:n[t];if(!e(i))throw new Error((t=>`Invalid value for key ${t}`)(t));const u={keyId:d(t),pattern:i};return r&&(u.searcher=w(i,s)),u}let h={children:[],operator:c[0]};return c.forEach(e=>{const s=n[e];t(s)&&s.forEach(t=>{h.children.push(u(t))})}),h};return N(n)||(n=R(n)),u(n)}function j(t,e){const n=t.matches;e.matches=[],r(n)&&n.forEach(t=>{if(!r(t.indices)||!t.indices.length)return;const{indices:n,value:s}=t;let i={indices:n,value:s};t.key&&(i.key=t.key.src),t.idx>-1&&(i.refIndex=t.idx),e.matches.push(i)})}function W(t,e){e.score=t.score}class z{constructor(t,e={},n){this.options={...g,...e},this.options.useExtendedSearch,this._keyStore=new h(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof A))throw new Error("Incorrect 'index' type");this._myIndex=e||p(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){r(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const e=[];for(let n=0,s=this._docs.length;n<s;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,s-=1,e.push(i))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:i,includeScore:r,shouldSort:u,sortFn:c,ignoreFieldNorm:o}=this.options;let h=e(t)?e(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=g.ignoreFieldNorm}){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:s,score:i})=>{const r=t?t.weight:null;n*=Math.pow(0===i&&r?Number.EPSILON:i,(r||1)*(e?1:s))}),t.score=n})}(h,{ignoreFieldNorm:o}),u&&h.sort(c),n(s)&&s>-1&&(h=h.slice(0,s)),function(t,e,{includeMatches:n=g.includeMatches,includeScore:s=g.includeScore}={}){const i=[];return n&&i.push(j),s&&i.push(W),t.map(t=>{const{idx:n}=t,s={item:e[n],refIndex:n};return i.length&&i.forEach(e=>{e(t,s)}),s})}(h,this._docs,{includeMatches:i,includeScore:r})}_searchStringList(t){const e=w(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:t,i:n,n:i})=>{if(!r(t))return;const{isMatch:u,score:c,indices:o}=e.searchIn(t);u&&s.push({item:t,idx:n,matches:[{score:c,value:t,norm:i,indices:o}]})}),s}_searchLogical(t){const e=O(t,this.options),n=(t,e,s)=>{if(!t.children){const{keyId:n,searcher:i}=t,r=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:i});return r&&r.length?[{idx:s,item:e,matches:r}]:[]}const i=[];for(let r=0,u=t.children.length;r<u;r+=1){const u=t.children[r],c=n(u,e,s);if(c.length)i.push(...c);else if(t.operator===$)return[]}return i},s=this._myIndex.records,i={},u=[];return s.forEach(({$:t,i:s})=>{if(r(t)){let r=n(e,t,s);r.length&&(i[s]||(i[s]={idx:s,item:t,matches:[]},u.push(i[s])),r.forEach(({matches:t})=>{i[s].matches.push(...t)}))}}),u}_searchObjectList(t){const e=w(t,this.options),{keys:n,records:s}=this._myIndex,i=[];return s.forEach(({$:t,i:s})=>{if(!r(t))return;let u=[];n.forEach((n,s)=>{u.push(...this._findMatches({key:n,value:t[s],searcher:e}))}),u.length&&i.push({idx:s,item:t,matches:u})}),i}_findMatches({key:e,value:n,searcher:s}){if(!r(n))return[];let i=[];if(t(n))n.forEach(({v:t,i:n,n:u})=>{if(!r(t))return;const{isMatch:c,score:o,indices:h}=s.searchIn(t);c&&i.push({score:o,key:e,value:t,idx:n,norm:u,indices:h})});else{const{v:t,n:r}=n,{isMatch:u,score:c,indices:o}=s.searchIn(t);u&&i.push({score:c,key:e,value:t,norm:r,indices:o})}return i}}z.version="7.1.0",z.createIndex=p,z.parseIndex=function(t,{getFn:e=g.getFn,fieldNormWeight:n=g.fieldNormWeight}={}){const{keys:s,records:i}=t,r=new A({getFn:e,fieldNormWeight:n});return r.setKeys(s),r.setIndexRecords(i),r},z.config=g,z.parseQuery=O,function(...t){I.push(...t)}(class{constructor(t,{isCaseSensitive:e=g.isCaseSensitive,ignoreDiacritics:n=g.ignoreDiacritics,includeMatches:s=g.includeMatches,minMatchCharLength:i=g.minMatchCharLength,ignoreLocation:r=g.ignoreLocation,findAllMatches:u=g.findAllMatches,location:c=g.location,threshold:o=g.threshold,distance:h=g.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:i,findAllMatches:u,ignoreLocation:r,location:c,threshold:o,distance:h},t=e?t:t.toLowerCase(),t=n?E(t):t,this.pattern=t,this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split(v).filter(t=>t&&!!t.trim()),s=[];for(let t=0,i=n.length;t<i;t+=1){const i=n[t];let r=!1,u=-1;for(;!r&&++u<_;){const t=k[u];let n=t.isMultiMatch(i);n&&(s.push(new t(n,e)),r=!0)}if(!r)for(u=-1;++u<_;){const t=k[u];let n=t.isSingleMatch(i);if(n){s.push(new t(n,e));break}}}return s})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:i}=this.options;t=s?t:t.toLowerCase(),t=i?E(t):t;let r=0,u=[],c=0;for(let s=0,i=e.length;s<i;s+=1){const i=e[s];u.length=0,r=0;for(let e=0,s=i.length;e<s;e+=1){const s=i[e],{isMatch:o,indices:h,score:a}=s.search(t);if(!o){c=0,r=0,u.length=0;break}if(r+=1,c+=a,n){const t=s.constructor.type;S.has(t)?u=[...u,...h]:u.push(h)}}if(r){let t={isMatch:!0,score:c/r};return n&&(t.indices=u),t}}return{isMatch:!1,score:1}}});export{z as default};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
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 e,aj as a,j as n,s,B as t,aG as o,a1 as l,a2 as i}from"./4GgcUVhUmQmiv9Ha.mjs";const c=["Ok","Cancel"],p=e.memo(p=>{const{tableOptions:r,context:d,onOption:u,onValidateOption:g,onDone:x,options:m=c,defaultOption:h=m?.[0],cancelOption:O="Cancel",sx:b,...j}=p,[f,C]=e.useState(!1),[D,N]=e.useState(()=>r?.hasHeader??!1),[S,T]=e.useState(()=>r?.ranges??null),k=a(e=>{const a={...r,hasHeader:D,ranges:S};u?.(e,e===O,e===h),x?.({option:e,tableOptions:a})},[x,u,h,O,D,S,r]),w=e.useCallback(async(e,a)=>null,[]);return n.jsx(s,{title:"Insert Table",options:m,onDone:k,onValidateOption:w,defaultOption:h,cancelOption:O,autoFocusSel:".range-input input",sx:{width:"360px",...b},...j,children:n.jsxs(t,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(o,{formName:"range",value:S,onChangeInput:e=>T(e),resolvedAddress:d.getNames().getRanges.bind(d.getNames()),onFocus:e=>{f||e.target?.select(),C(!0)}}),n.jsx(l,{control:n.jsx(i,{checked:D,onChange:()=>N(!D)}),label:"Table has headers",labelPlacement:"end"})]})})});export{p as TableNewDialog,p as default};