@sheetxl/studio-vanilla 0.6.18 → 0.6.19

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 (185) hide show
  1. package/browser/cjs/{a9BJpuwYvpGZNR7n.cjs → 2drJCgw6GpHdxbSK.cjs} +3 -3
  2. package/browser/cjs/{B1vbcDW-mYDc3tRk.cjs → 4g1UbjX6YlsGVbEm.cjs} +1 -1
  3. package/browser/cjs/{CsWCrLghuaHinksK.cjs → 5SZ60ooWoqGMaNK3.cjs} +2 -2
  4. package/browser/cjs/{BUqI0CJr_O39ytcK.cjs → B47mfZqJyxKtI8CE.cjs} +2 -2
  5. package/browser/cjs/{CJXmaIN6-RY_b9wx.cjs → B4_AJVmT7McyUdOB.cjs} +4 -4
  6. package/browser/cjs/{TT_pCtUsXieeNgpt.cjs → BH7xTeCEytVosgfr.cjs} +1 -1
  7. package/browser/cjs/{DvUjB80yD7NngR7u.cjs → BMuuQ56qDMt4tiU7.cjs} +1 -1
  8. package/browser/cjs/{Cc2HKduieh2Ml0fB.cjs → BNSoqm9cOCUWzAD4.cjs} +2 -2
  9. package/browser/cjs/{8zxD8IVrO9yyUZ3a.cjs → BO1_ldoUOWQSVTEe.cjs} +4 -4
  10. package/browser/cjs/{CM4Da9bK1-ZK9tZl.cjs → BRzNQVufZbxW7Lvt.cjs} +1 -1
  11. package/browser/cjs/{D7cxfobxpGfLYp0J.cjs → BTI0uykQYhIxbhTv.cjs} +1 -1
  12. package/browser/cjs/{D_zDrJpKgM40yH4G.cjs → BfXafsHk1zUIDLn3.cjs} +5 -5
  13. package/browser/cjs/{7rV2uwKSLqOukj9e.cjs → Bi5DO-ZfS2aT4mWs.cjs} +1 -1
  14. package/browser/cjs/{BF4BJ7ICmyANO_Q4.cjs → Bj90RpYAMQsurfI1.cjs} +2 -2
  15. package/browser/cjs/{DYF9H8YHoqMjUY7c.cjs → BpNPpalvEIVpJIiF.cjs} +2 -2
  16. package/browser/cjs/{C7qkCKC7cz2bM8tt.cjs → BuLdrfjqGl4JYOyz.cjs} +2 -2
  17. package/browser/cjs/{Bxj5ELEJ6_d2gxCa.cjs → Bz-QLXZSSxUIHfi4.cjs} +1 -1
  18. package/browser/cjs/{CHBJX-u8oCtzaSrb.cjs → CARHWk8YMLhiLd91.cjs} +1 -1
  19. package/browser/cjs/{Bv2LW8CE3eX1etFL.cjs → CBKy5Y_-vCEOolBF.cjs} +1 -1
  20. package/browser/cjs/{Bs40rX73-vb51Qz7.cjs → CHBglJCJZV-jMMkD.cjs} +2 -2
  21. package/browser/cjs/{BUiD3JsC13sWCk3V.cjs → CKsnAbXU6k12MtqJ.cjs} +52 -52
  22. package/browser/cjs/{BD2R8-fIGYYAHB9H.cjs → CX4H6UUJB0C7uh8W.cjs} +1 -1
  23. package/browser/cjs/{DWLm2mKpFgBwwJLR.cjs → CaRAyKakoU8SpC9G.cjs} +1 -1
  24. package/browser/cjs/{B3Ov59lhvST1QZmK.cjs → Ci0EKvgOZn9-_ttf.cjs} +1 -1
  25. package/browser/cjs/{BWTxMHl7R3y67U_d.cjs → CigS5Z4d01IaG9ub.cjs} +1 -1
  26. package/browser/cjs/{w4YlFfS386fo_S58.cjs → Ck_HKCoaIPkpLV79.cjs} +2 -2
  27. package/browser/cjs/{BRzDHN2xt_uDAHwX.cjs → Cn2_go_6hbgPFwkW.cjs} +2 -2
  28. package/browser/cjs/{DiIamhVM0RoVFXLi.cjs → CpNfNzGS9z2s8aT1.cjs} +2 -2
  29. package/browser/cjs/{CKxW-PvXRH3MzqOe.cjs → CxOt_4XC-B1IsItA.cjs} +1 -1
  30. package/browser/cjs/{l3Alplrf34PVd0AJ.cjs → D7c18hBET4SmqAe8.cjs} +5 -5
  31. package/browser/cjs/{CYN6QHX6p_JMAfHT.cjs → D8PSW70qNl1K577g.cjs} +3 -3
  32. package/browser/cjs/{DXpRbV6s_Zr_DZDs.cjs → D9Jf8ntRXxy2j_Hb.cjs} +1 -1
  33. package/browser/cjs/{kn--_4UYuYT6zY9Y.cjs → DAFcvRCbumhF9zts.cjs} +1 -1
  34. package/browser/cjs/{G_YoZ61wrlwLav1D.cjs → DBEUTITNqE_i5SIx.cjs} +2 -2
  35. package/browser/cjs/{BpbZpaE5LwicGNr3.cjs → DHJKuvZFFkbw4VqE.cjs} +1 -1
  36. package/browser/cjs/{DrYhOli3K6XDiiXW.cjs → DR6JxSiRCnYcYk-v.cjs} +1 -1
  37. package/browser/cjs/{DSdU__eP2PkuILHV.cjs → DUwwCP3FOAa-g_TV.cjs} +1 -1
  38. package/browser/cjs/{B4GQSMw3gxnusBYY.cjs → DYyX_8UWj8ho26jC.cjs} +1 -1
  39. package/browser/cjs/{VUqf4g-U5tVIBrsv.cjs → DakCX9v_5qWMRW7e.cjs} +1 -1
  40. package/browser/cjs/{Cvjj1yT8ySA8-05h.cjs → Dd_jIXCL8cD-c60w.cjs} +1 -1
  41. package/browser/cjs/{BjtApyVX1dv04hR0.cjs → DgMxn6VWWFvEkHUG.cjs} +1 -1
  42. package/browser/cjs/{UkC9qF_c7uaiA6fR.cjs → DlC2x5AdTARBJsDy.cjs} +1 -1
  43. package/browser/cjs/{HvX6UQOgKmt8wp33.cjs → DtmHb8fU9TxeQeit.cjs} +2 -2
  44. package/browser/cjs/{B3mc_exWx2zZirEx.cjs → Dx3gGKS7YbhhgAKO.cjs} +1 -1
  45. package/browser/cjs/{q-9pcItKNDq0Ha0P.cjs → KVGJnE-b7gVNXdfO.cjs} +2 -2
  46. package/browser/cjs/{BNPWsnKU30C4K59Q.cjs → WfDncfehdJROEdqt.cjs} +1 -1
  47. package/browser/cjs/{BjGVRa1hmUV2tq1X.cjs → _b3AifdzWKUr-TnA.cjs} +27 -27
  48. package/browser/cjs/{l31ATnFh_DPrFD4h.cjs → _gS2sCMO7Xve1yhK.cjs} +2 -2
  49. package/browser/cjs/{QtFyUpkyhm-jNJT0.cjs → cdegpT79McuYbuag.cjs} +1 -1
  50. package/browser/cjs/cu4jY3a04rzMg8ZC.cjs +6 -0
  51. package/browser/cjs/index.cjs +2 -2
  52. package/browser/cjs/{omhO6kYTZsHXV6P_.cjs → lAtx0soy7ihhCDrT.cjs} +1 -1
  53. package/browser/cjs/{HNbQVHhZvSNcxXSf.cjs → mu470H-E8Cv48d6o.cjs} +1 -1
  54. package/browser/cjs/{BnWO6x-8ZdNx3FPe.cjs → p615fA6M0TPyi6CE.cjs} +3 -3
  55. package/browser/cjs/{D0W-j4ja5ovYoX7S.cjs → pusV-zPA__3fImf6.cjs} +1 -1
  56. package/browser/cjs/{iOkzFA5V0gF6xdqB.cjs → u2OC_9h-6mSnYpWE.cjs} +1 -1
  57. package/browser/cjs/{Bdojd4kbtE3hcjg6.cjs → xKBHxIYzbBLBjcYm.cjs} +1 -1
  58. package/browser/cjs/{CPXGF_B_l-m-6xK0.cjs → xcIydsA4iBJP2woZ.cjs} +2 -2
  59. package/browser/esm/{DJrtpv9Odw-xI1cg.mjs → 057e2IO8fbeMwkU6.mjs} +1 -1
  60. package/browser/esm/{CjcAUuoRox-Djf3a.mjs → 1Po0liKdqjsW2JOh.mjs} +1 -1
  61. package/browser/esm/{BcRQsmugwm_jjI01.mjs → 3m432txQSOHqop3u.mjs} +2 -2
  62. package/browser/esm/{6pWT7Jm6yyVKs-Sk.mjs → B0Es6b_7QAXJ28gC.mjs} +1 -1
  63. package/browser/esm/{0ztFDfwfXQYwcNOg.mjs → B5mo1qYkJa1i5E7P.mjs} +1 -1
  64. package/{cdn/assets/CqcE3BQzn7L3qEyr.js → browser/esm/B7BJI446QcevaHI7.mjs} +1 -1
  65. package/{cdn/assets/B2-70dJtBZXFE9QU.js → browser/esm/BGhzaxP4Q0QswA3z.mjs} +1 -1
  66. package/{cdn/assets/A34YP98tOtmdRG_Z.js → browser/esm/BLRxsCb_G_dzBS18.mjs} +1 -1
  67. package/{cdn/assets/C1cXMIbJ4vIwwBAG.js → browser/esm/BRu6QH1OkoZTz9kI.mjs} +1 -1
  68. package/browser/esm/{BuQIEbAsMDvksSDJ.mjs → BU8GBRL1C-fely44.mjs} +1 -1
  69. package/browser/esm/{C152ovoM3kI9DwvN.mjs → BcGgmAWiTeKIXPvb.mjs} +1 -1
  70. package/browser/esm/{5Kj1DYswOXuI9dgx.mjs → BcaiqSiULY9lQf4Y.mjs} +4 -4
  71. package/browser/esm/{BrW4iXOyhTcOkcu-.mjs → BdOD7bMoMr6cPbkh.mjs} +2 -2
  72. package/browser/esm/{CFUJCBmmF1_6jouG.mjs → Bdkinv-jAdCftHaR.mjs} +3475 -3470
  73. package/browser/esm/{DVTLZy_MMrikhk4g.mjs → Bgz_ubk0XZI2iCKJ.mjs} +1 -1
  74. package/browser/esm/{CGR9KR3-MWII_jbT.mjs → BhHRrDHaOvki-uXw.mjs} +1 -1
  75. package/{cdn/assets/DDv11tRWH4-mvroG.js → browser/esm/BpwcpoDIav9BLN5S.mjs} +1 -1
  76. package/browser/esm/{5k9QG861nzFBoujc.mjs → BuXyA1veJ-5CcUM3.mjs} +1 -1
  77. package/browser/esm/{8OsFHvzIRvQcFRWJ.mjs → BySOltHpoCbQ8ElR.mjs} +2 -2
  78. package/{cdn/assets/Cls-FfbGLZ_7VkYF.js → browser/esm/BzRJK6UtpYt7iqrb.mjs} +1 -1
  79. package/browser/esm/{Btq2x_w1UtQRRBIM.mjs → C4g-ICAk36IAT_V9.mjs} +1 -1
  80. package/browser/esm/{7IdwgQD_0cio_-WZ.mjs → C71RzycgrMr7LBeg.mjs} +2 -2
  81. package/browser/esm/{BiDM5gDLXXzFiU4t.mjs → C8kbmtwSNop6-Dku.mjs} +4 -4
  82. package/browser/esm/{eisFb8E-Mqmd8dVu.mjs → CCuyT52sUtGgxkMa.mjs} +1 -1
  83. package/browser/esm/{D7HBDJvqPsBdEIaZ.mjs → CDMH9wdMc5VPAX-m.mjs} +1 -1
  84. package/browser/esm/{DrGGy0Ecg4uL-V5d.mjs → CDfoOmm8xq1CI9nq.mjs} +2 -2
  85. package/{cdn/assets/BQ3Izf7WSgFW7LFd.js → browser/esm/CQH0_f_EgS3xBubH.mjs} +1 -1
  86. package/browser/esm/{DsV5ljniIODwm8we.mjs → CSbXZ-wEr2w1XUjp.mjs} +3 -3
  87. package/browser/esm/{DY-Bg_-mGUOR-Io8.mjs → CXiV8USdfkaVELUL.mjs} +3 -3
  88. package/browser/esm/{DSS1GQwD4j6_aMHP.mjs → Cbu_cYcAjgLjDWJ2.mjs} +2 -2
  89. package/browser/esm/{BPxRQqqbdQzwMF1E.mjs → Cj5tGazA0ZC2OsMh.mjs} +2 -2
  90. package/browser/esm/{CYLafhGn3Xra5p9X.mjs → Cl5UVhmuceRz7cZq.mjs} +2 -2
  91. package/{cdn/assets/DOrSP_y0l7WVWx7x.js → browser/esm/CpbxjeRjyIS0hLpG.mjs} +1 -1
  92. package/{cdn/assets/DhbwMFI8riGLM8tB.js → browser/esm/CzPhPsxCBk39yKjO.mjs} +1 -1
  93. package/browser/esm/{vvNmf_jkFYfDAmN_.mjs → D7bXAN7_dRj20R_5.mjs} +2 -2
  94. package/browser/esm/{Ciay45U36Y6qrko3.mjs → D905_j-CC35cjJgS.mjs} +1 -1
  95. package/browser/esm/{BrYWZfObTL6HJo_F.mjs → DBie_TQxUPCcqrIM.mjs} +6 -6
  96. package/{cdn/assets/5kHqdyJB0jloGjeo.js → browser/esm/DEsUltrM2TmeuJl8.mjs} +1 -1
  97. package/browser/esm/{DuVqdCY41Q-uJ3CJ.mjs → DHTIhgnqDG1jXau2.mjs} +1 -1
  98. package/{cdn/assets/QMh1Gz2f1iGlxdd_.js → browser/esm/DIIBNPB_srFxAEro.mjs} +1 -1
  99. package/{cdn/assets/D4cm6Gj68la8jini.js → browser/esm/DIiYKvt7EHc3DTqa.mjs} +1 -1
  100. package/browser/esm/{BYuz6SBySPgW_TUJ.mjs → DS1Zrd-f6YoE9yqm.mjs} +4 -4
  101. package/browser/esm/{C6RMlhZNzuYaVKAE.mjs → DkVAaSCxWCAUsYYs.mjs} +2 -2
  102. package/browser/esm/{BKbqqgllOlsFYxJQ.mjs → DnP7S1nwdVOc4_23.mjs} +2 -2
  103. package/browser/esm/{D3AHewhq_4KnQzEC.mjs → DoVgp57vA_Whyrcf.mjs} +1 -1
  104. package/browser/esm/{CIRhhWBF5DqC7GR7.mjs → Dq1BupXYB4W4ZYxp.mjs} +1 -1
  105. package/browser/esm/{D3qRuRmv312EOyQY.mjs → DsWy6SR2J5ZpsJFp.mjs} +1 -1
  106. package/browser/esm/{CzT0zd_Pa3cE8OGk.mjs → DyHIBzKhPzoxm0no.mjs} +2 -2
  107. package/browser/esm/{CoiPYdujj4exdgZf.mjs → LAK0Gk13MrL2WYeL.mjs} +2 -2
  108. package/browser/esm/{ITS7d47TmMW9eJJG.mjs → M8Bb4k5XaJgLXsDD.mjs} +2 -2
  109. package/browser/esm/{MJL3-1j0pc_tXzzP.mjs → asDTEPWPOvT_wRS0.mjs} +3 -3
  110. package/browser/esm/index.mjs +2 -2
  111. package/{cdn/assets/DlZz1lMQQ7xnPhQH.js → browser/esm/o1mR6UZmqA1IA_v9.mjs} +1 -1
  112. package/browser/esm/{C3ZvCPrzk21XuSEK.mjs → rxlz1a9o9mj4Loz2.mjs} +3 -3
  113. package/{cdn/assets/C-i5hag6quL1dV-o.js → browser/esm/uOpXXQgSuYGxmylr.mjs} +1 -1
  114. package/browser/esm/{Dcnkse6zLlKm4_ar.mjs → uobpEWVhRi56et0j.mjs} +2 -2
  115. package/browser/esm/{BvegTjmPOfzXbMJF.mjs → vTZbstfrFuvXHzMl.mjs} +1 -1
  116. package/browser/esm/{6wSAa0OqW7awx8oV.mjs → wBw35yPNY3vCEtmg.mjs} +2 -2
  117. package/cdn/assets/{DJrtpv9Odw-xI1cg.js → 057e2IO8fbeMwkU6.js} +1 -1
  118. package/cdn/assets/{CjcAUuoRox-Djf3a.js → 1Po0liKdqjsW2JOh.js} +1 -1
  119. package/cdn/assets/{DgkebXJejGkJ7VDy.js → 4c_5mVf4YcccpPH2.js} +4 -4
  120. package/cdn/assets/{6pWT7Jm6yyVKs-Sk.js → B0Es6b_7QAXJ28gC.js} +1 -1
  121. package/cdn/assets/{CpbwIOlO-qmZ_7AB.js → B0YwYMbThNBhZFWl.js} +10 -10
  122. package/cdn/assets/{CjfXdbGZo4dVF6sI.js → B55P_pjScXH12i9J.js} +3484 -3479
  123. package/cdn/assets/{0ztFDfwfXQYwcNOg.js → B5mo1qYkJa1i5E7P.js} +1 -1
  124. package/{browser/esm/CqcE3BQzn7L3qEyr.mjs → cdn/assets/B7BJI446QcevaHI7.js} +1 -1
  125. package/cdn/assets/{BcMszZQOg7xGnZfQ.js → BEQ5iumi01B-K05F.js} +20 -20
  126. package/{browser/esm/B2-70dJtBZXFE9QU.mjs → cdn/assets/BGhzaxP4Q0QswA3z.js} +1 -1
  127. package/{browser/esm/A34YP98tOtmdRG_Z.mjs → cdn/assets/BLRxsCb_G_dzBS18.js} +1 -1
  128. package/{browser/esm/C1cXMIbJ4vIwwBAG.mjs → cdn/assets/BRu6QH1OkoZTz9kI.js} +1 -1
  129. package/cdn/assets/{BuQIEbAsMDvksSDJ.js → BU8GBRL1C-fely44.js} +1 -1
  130. package/cdn/assets/{C152ovoM3kI9DwvN.js → BcGgmAWiTeKIXPvb.js} +1 -1
  131. package/cdn/assets/{Bw2_Mg12CpFNSIzi.js → BcX1ThI9EN6FKnbB.js} +3 -3
  132. package/cdn/assets/{DVTLZy_MMrikhk4g.js → Bgz_ubk0XZI2iCKJ.js} +1 -1
  133. package/cdn/assets/BlpDLFQqcppczJVb.js +22 -0
  134. package/{browser/esm/DDv11tRWH4-mvroG.mjs → cdn/assets/BpwcpoDIav9BLN5S.js} +1 -1
  135. package/cdn/assets/{V04a-szNfDLVG8V8.js → BuIe3ptbjknbmjPa.js} +2 -2
  136. package/cdn/assets/{5k9QG861nzFBoujc.js → BuXyA1veJ-5CcUM3.js} +1 -1
  137. package/{browser/esm/Cls-FfbGLZ_7VkYF.mjs → cdn/assets/BzRJK6UtpYt7iqrb.js} +1 -1
  138. package/cdn/assets/{Bue-V-RRXPIKSrJh.js → C2I2yE4WDtOwsOqW.js} +4 -4
  139. package/cdn/assets/{Btq2x_w1UtQRRBIM.js → C4g-ICAk36IAT_V9.js} +1 -1
  140. package/cdn/assets/{HLg6wRtpuNhBlxW9.js → C6QJ5tt6c2KqXhnl.js} +13 -13
  141. package/cdn/assets/{Dqzg9b_GWlo3O5Gn.js → C80EE2xyMykjUzqA.js} +14 -14
  142. package/cdn/assets/{eisFb8E-Mqmd8dVu.js → CCuyT52sUtGgxkMa.js} +1 -1
  143. package/cdn/assets/{D7HBDJvqPsBdEIaZ.js → CDMH9wdMc5VPAX-m.js} +1 -1
  144. package/cdn/assets/{CTApQKVBWF-_jS85.js → CDanKgc-35lQ046U.js} +2 -2
  145. package/cdn/assets/{D7IYYEWkOU3nn0lW.js → CDbJe-W954WCAIwG.js} +3 -3
  146. package/{browser/esm/BQ3Izf7WSgFW7LFd.mjs → cdn/assets/CQH0_f_EgS3xBubH.js} +1 -1
  147. package/cdn/assets/{BgivW52HJvmWNJ70.js → CRVDofa0roRKNzt4.js} +7 -7
  148. package/cdn/assets/{di6R3ICpRFMRBDnK.js → CZfu4WA4DP3W_YG-.js} +4 -4
  149. package/cdn/assets/{Dou22X5AEYxNxiEA.js → Cnis6sin0ZnAFpwZ.js} +2 -2
  150. package/{browser/esm/DOrSP_y0l7WVWx7x.mjs → cdn/assets/CpbxjeRjyIS0hLpG.js} +1 -1
  151. package/cdn/assets/{CDnp0OJkwOf6E4_O.js → CsxsqojPhRmG8glc.js} +38 -38
  152. package/{browser/esm/DhbwMFI8riGLM8tB.mjs → cdn/assets/CzPhPsxCBk39yKjO.js} +1 -1
  153. package/cdn/assets/{C2vj6R0IX31tU8kl.js → D-RCHT2bCbsrpE9x.js} +4 -4
  154. package/cdn/assets/{CpJ5AP3OipKTQK5-.js → D3Hj5LkcSru9iZ3t.js} +1 -1
  155. package/cdn/assets/{Btj3gffpKHcFoBNC.js → D4wIwGg8UhGWcJVs.js} +4 -4
  156. package/cdn/assets/{DbPHJVAz2xVVHjK3.js → D6JEr5hHx7SFpJzK.js} +1 -1
  157. package/cdn/assets/{Ciay45U36Y6qrko3.js → D905_j-CC35cjJgS.js} +1 -1
  158. package/cdn/assets/{BJz24GkhJP-C6vb_.js → DCMogRN5Igfb0hg0.js} +42 -42
  159. package/{browser/esm/5kHqdyJB0jloGjeo.mjs → cdn/assets/DEsUltrM2TmeuJl8.js} +1 -1
  160. package/cdn/assets/{DuVqdCY41Q-uJ3CJ.js → DHTIhgnqDG1jXau2.js} +1 -1
  161. package/{browser/esm/QMh1Gz2f1iGlxdd_.mjs → cdn/assets/DIIBNPB_srFxAEro.js} +1 -1
  162. package/{browser/esm/D4cm6Gj68la8jini.mjs → cdn/assets/DIiYKvt7EHc3DTqa.js} +1 -1
  163. package/cdn/assets/{BMiqa-HxKRCv_Neo.js → DO2AwAhDeTd10icv.js} +2 -2
  164. package/cdn/assets/{Cr-w8KTAHVytOKGA.js → DOMwM2EYW343YFLd.js} +97 -97
  165. package/cdn/assets/{D7FIbHM83PKmnzMn.js → DOYrxO-NLbK4yZvG.js} +13 -13
  166. package/cdn/assets/{D3AHewhq_4KnQzEC.js → DoVgp57vA_Whyrcf.js} +1 -1
  167. package/cdn/assets/{CIRhhWBF5DqC7GR7.js → Dq1BupXYB4W4ZYxp.js} +1 -1
  168. package/cdn/assets/{wcOulwYmKcUonvCn.js → DqAV668_lwIfpMBL.js} +3 -3
  169. package/cdn/assets/{D3qRuRmv312EOyQY.js → DsWy6SR2J5ZpsJFp.js} +1 -1
  170. package/cdn/assets/{J_hYYA8_HqfoWlon.js → GH6226GwigaTSNSq.js} +3 -3
  171. package/cdn/assets/{BwT7DLAWhQKGGD95.js → QeWcgRxfCUUPFjG9.js} +2 -2
  172. package/cdn/assets/{yZi2kJacWsVeNKjd.js → UMAuvBDKs73JaNF6.js} +2 -2
  173. package/cdn/assets/{zsHmgM6SR1JtAtMp.js → eC52X-6LUm3gOLvV.js} +3 -3
  174. package/cdn/assets/{DF6zHXUVVo4LrTcx.js → ldxz38e7eCOO81DD.js} +2 -2
  175. package/{browser/esm/DlZz1lMQQ7xnPhQH.mjs → cdn/assets/o1mR6UZmqA1IA_v9.js} +1 -1
  176. package/cdn/assets/{LlxqphKLqLZ16Yaq.js → tD4zlj3FEAxOs7gO.js} +5 -5
  177. package/cdn/assets/{D_7jzLdfCPE63Lyd.js → tmHR4GSCvfG6NO3m.js} +6 -6
  178. package/{browser/esm/C-i5hag6quL1dV-o.mjs → cdn/assets/uOpXXQgSuYGxmylr.js} +1 -1
  179. package/cdn/assets/{BvegTjmPOfzXbMJF.js → vTZbstfrFuvXHzMl.js} +1 -1
  180. package/cdn/assets/{BoICSq7euzkA3p2f.js → xS4muyce_u8VZFuF.js} +12 -12
  181. package/cdn/index.js +2 -2
  182. package/cdn/loader.js +1 -1
  183. package/package.json +3 -3
  184. package/browser/cjs/DY2BNwXkVnavhj-H.cjs +0 -6
  185. package/cdn/assets/ZPL4UXLtrdujKkH-.js +0 -22
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./BUiD3JsC13sWCk3V.cjs");let i=null,r=null,t=null;const o=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(r&&c.Xt.deepEqual(r,e))return i;const l=await(async function(){if(t)return t;const{TypeScriptCompiler:u}=await Promise.resolve().then(()=>require("./BF4BJ7ICmyANO_Q4.cjs"));return t=new u,t})(),n=await l.compileModule(e);return i=n,r=e,n}});exports.ScriptingUtils=o;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./CKsnAbXU6k12MtqJ.cjs");let i=null,r=null,t=null;const o=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(r&&c.Xt.deepEqual(r,e))return i;const l=await(async function(){if(t)return t;const{TypeScriptCompiler:u}=await Promise.resolve().then(()=>require("./Bj90RpYAMQsurfI1.cjs"));return t=new u,t})(),n=await l.compileModule(e);return i=n,r=e,n}});exports.ScriptingUtils=o;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,6 @@
1
+ "use strict";/**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./CKsnAbXU6k12MtqJ.cjs"),g=require("./D7c18hBET4SmqAe8.cjs");class z{constructor(t){this.list=t}get length(){return this.list.length}item(t){return this.list[t]}forEach(t,e){for(let s=0;s<this.list.length;s++)t(this.list[s],s,this)}}const G=u=>u===!0||u==="1"||u==="on"||u==="true"||u!==!1&&u!=="0"&&u!=="off"&&u!=="false"&&null,X=u=>{const t=parseInt(u);return isNaN(t)?null:t},W=u=>{const t=parseFloat(u);return isNaN(t)?null:t},$=new Map;class V{constructor(t,e,s,r,o,i=null,n){const l=(c,h,d)=>n?.getRef?.(c,h,d,n?.parsedRefs),a=c=>n?.getRefs?.(c,n?.parsedRefs);this._parent=t,this.sharedShared=e,this.currentPath=s,this.elemRoot=r,this.jsonRoot=o,t?(this._fileLocation=t._fileLocation,this._getRef=t._getRef,this._getRefs=t._getRefs):(i&&(this._fileLocation=i),l&&a&&(this._getRef=l),a&&(this._getRefs=a),this._onWarning=n?.onWarning,this._addPerson=n?.addPerson)}getRef(t,e=!1){return this._getRef?.(t,this._fileLocation,e)??null}getRelationships(){return this._getRefs(this._fileLocation)??$}getPath(){return this.currentPath}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(t){this._onWarning?this._onWarning(t):this._parent?this._parent?.warn?.(t):console.warn(t)}addPerson(t){return this._addPerson?this._addPerson(t):this._parent?this._parent?._addPerson?.(t):null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(t,e){if(!t)return e;let s=[e];const r=t.split("/");for(let o=0;o<r.length;o++){const i=r[o];if(i===""||i===".")continue;let n=[];for(let l=0;l<s.length;l++){const a=s[l],c=a.childNodes;for(let h=0;c&&h<c.length;h++){const d=a.childNodes[h];d.localName!==i&&i!=="*"||n.push(d)}}s=n}return s.length===1?s[0]:s.length===0?null:new z(s)}getFromPath(t,e){return p.Xt.getFromPath(t,e)}setToPath(t,e,s){return p.Xt.setToPath(t,e,s)}getValAttrAsString(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?s.getAttribute("val")??null:null}getValAttrAsBoolean(t,e,s=!1){let r=this.evaluate(t,e);if(!r)return null;const o=r.hasAttribute("val")?r.getAttribute("val"):void 0;return o==null?s:o==="1"||o==="on"||o==="true"||o!=="0"&&o!=="off"&&o!=="false"&&s}getValAttrAsInteger(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseInt(s.getAttribute("val"))??null:null}getValAttrAsFloat(t,e){let s=this.evaluate(t,e);return s&&s.hasAttribute("val")?parseFloat(s.getAttribute("val"))??null:null}get BOOLEAN_COPY(){return G}get INT_COPY(){return X}get FLOAT_COPY(){return W}copyFromAttribute(t,e,s,r=e,o=null){if(!t||!s||!t.hasAttribute(e))return;let i=t.getAttribute(e);if(o){if(Array.isArray(o)){for(let n=0;n<o.length;n++)if(i==null||(i=o[n](i),i==null))return}else if(i==null||(i=o(i),i==null))return}this.setToPath(s,r,i)}}class S{constructor(t){this.jsonKey=t}visit(t,e,s){const r={};return s[this.jsonKey]=r,r}}class q{visit(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);i.nodeType===1&&i.localName==="Relationship"&&this.processRelationship(t,i,s)}return s}processRelationship(t,e,s){const r={};t.copyFromAttribute(e,"Target",r,"target"),t.copyFromAttribute(e,"Type",r,"type"),t.copyFromAttribute(e,"TargetMode",r,"targetMode"),s[e.getAttribute("Id")]=r}}const Y=(u,t)=>{if(u||!u.hasAttribute("rot"))return;const e=u.getAttribute("rot"),s=p.Xt.roundAccurately(g.p(e),2);s!==-1e3&&(t.rotation=s)},A=(u,t,e,s,r)=>{const o=u.getValAttrAsString(s,t);o!==null&&(e[r]=o)},f=(u,t,e,s,r=s,o=null)=>{const i=u.getValAttrAsBoolean(s,t,o);i!==null&&(e[r]=i)},C=(u,t,e,s,r)=>{const o=u.getValAttrAsInteger(s,t);o!==null&&(e[r]=o)},y=(u,t,e,s,r,o=1)=>{const i=u.getValAttrAsFloat(s,t);i!==null&&(e[r]=i*o)};class K{visit(t,e,s){return f(t,e,s,"roundedCorners","roundedCorners"),C(t,e,s,".//AlternateContent/Fallback/style","styleId"),s.range=null,s}afterVisit(t,e,s){let r={};s.types=r;let o={},i=0,n={},l=0,a=t.getVisitorParamsState().get("axes");const c=t.getVisitorParamsState().get("types");for(let m=0;m<c.length;m++){const b=c[m];if(b.xAxisId){const v=b.xAxisId,P=a.get(v);o[m+""]=P,b.offsetXAxis=m,delete b.xAxisId,s.xAxes=o,o.length=++i}if(b.yAxisId){const v=b.yAxisId,P=a.get(v);n[m+""]=P,b.offsetYAxis=m,delete b.yAxisId,s.yAxes=n,n.length=++l}r[m+""]=b}r.length=c.length;const h=t.getVisitorParamsState().get("series");if(!h||h.length===0)return;const d={};s.series=d;for(let m=0;m<h.length;m++)d[m+""]=h[m];d.length=h.length}}class Q{visit(t,e,s){return f(t,e,s,"plotVisOnly","plotVisOnly"),A(t,e,s,"dispBlanksAs","dispBlanksAs"),f(t,e,s,".//extLst/ext/dataDisplayOptions16/dispNaAsBlank","dispNaAsBlank"),f(t,e,s,"showDLblsOverMax","showDLblsOverMax"),s}afterVisit(t,e,s){try{const r=t.getValAttrAsBoolean("autoTitleDeleted",e),o=t.evaluate("title",e);t.setToPath(s,"title.shown",!(r===!0||!o));const i=t.evaluate("legend",e);t.setToPath(s,"legend.shown",i!==null)}catch(r){throw new Error("Unexpected Error parsing Chart: "+r)}}}class H{visit(t,e,s){let r={};return s.plotArea=r,r}}class O{EnumMappings(){}static fromOoxmlGradientType(t){return t==="circle"?"radial":t}static fromOoxmlLineCap(t){if(t==="rnd")return"round";if(t==="flat")return"butt";if(t==="sq")return"square";throw new Error("Invalid lineCap type: "+t)}static fromOoxmlCompound(t){return t==="sng"?"single":t}static fromOoxmlAlignment(t){return t==="ctr"?"center":t}}class D{visit(t,e,s){}processStroke(t,e,s){const r={},o=t.evaluate("ln",e);if(o){o.hasAttribute("algn")&&(r.align=O.fromOoxmlAlignment(o.getAttribute("algn"))),o.hasAttribute("cap")&&(r.lineCap=O.fromOoxmlLineCap(o.getAttribute("cap"))),o.hasAttribute("cmpd")&&(r.compound=O.fromOoxmlCompound(o.getAttribute("cmpd"))),o.hasAttribute("w")&&(r.width=g.t(o.getAttribute("w")));const i=t.evaluate("miter",o);i&&(r.lineJoin="miter",i.hasAttribute("lim")&&(r.miter=parseFloat(i.getAttribute("lim")))),t.evaluate("bevel",o)&&(r.lineJoin="bevel"),t.evaluate("round",o)&&(r.lineJoin="round");const n=t.evaluate("custDash",o);if(n){const c=t.evaluate("ds",n);if(c&&c.length>0){let h="";for(let d=0;d<c.length;d++){const m=c.item(d);h+=g.a(m.getAttribute("d"))+","+g.a(m.getAttribute("sp"))}r.dash=h}}const l=t.evaluate("prstDash",o);l&&l.hasAttribute("val")&&(r.dash=l.getAttribute("val")),this.parseEndElement(t,o,r,"headEnd","head"),this.parseEndElement(t,o,r,"tailEnd","tail");const a=this.processFill(t,o,s);r.fill=a}return r}parseEndElement(t,e,s,r,o){const i=t.evaluate(r,e);if(i&&(i.hasAttribute("type")&&(s[o+"Type"]=i.getAttribute("type")),i.hasAttribute("len")||i.hasAttribute("w"))){const n=i.getAttribute("len")?i.getAttribute("len"):"med",l=i.getAttribute("w")?i.getAttribute("w"):"med";s[o+"Size"]=n+"-"+l}}processFill(t,e,s){const r={};if(t.evaluate("noFill",e))return r.none=!0,r;const o=t.evaluate("solidFill",e);if(o){const a=this.processAdjColor(t,o);return a&&(r.solid=a),r}const i=t.evaluate("gradFill",e);if(i){i.hasAttribute("rotWithShape")&&(r.isRotated=i.getAttribute("rotWithShape")==="1");const a=this.processGradFill(t,i);return r.gradient=a,r}const n=t.evaluate("pattFill",e);if(n){const a=this.processPatternFill(t,n);return r.pattern=a,r}const l=t.evaluate("blipFill",e);if(l){l.hasAttribute("rotWithShape")&&(r.isRotated=g.b(l.getAttribute("rotWithShape"))),l.hasAttribute("dpi")&&(r.dpi=l.getAttribute("dpi"));const a=this.processImageFill(t,l);return r.image=a,r}return r.none=!0,r}processGradFill(t,e){const s={},r=t.evaluate("lin",e);if(r){if(s.type="linear",r.hasAttribute("ang")){const c=g.p(r.getAttribute("ang"));s.angle=c}if(r.hasAttribute("scaled")){const c=g.b(r.getAttribute("scaled"));s.scaled=c}}const o={};e.hasAttribute("flip")&&(o.mirror=e.getAttribute("flip")),Object.keys(o).length>0&&(s.tile=o);const i=t.evaluate("path",e);if(i){i.hasAttribute("path")&&(s.type=O.fromOoxmlGradientType(i.getAttribute("path")));const c=t.evaluate("fillToRect",i);c&&(s.fillTo=this.getRect(c))}const n=t.evaluate("tileRect",e);n&&(s.tile.bounds=this.getRect(n));const l=[],a=t.evaluate("gsLst/gs",e);for(let c=0;a&&c<a.length;c++){const h=a.item(c),d={offset:g.a(h.getAttribute("pos")),color:this.processAdjColor(t,h)};l.push(d)}return l.length>0&&(s.stops=l),s}getRect(t){const e={};return t.hasAttribute("t")&&(e.t=g.a(t.getAttribute("t"))),t.hasAttribute("l")&&(e.l=g.a(t.getAttribute("l"))),t.hasAttribute("b")&&(e.b=g.a(t.getAttribute("b"))),t.hasAttribute("r")&&(e.r=g.a(t.getAttribute("r"))),Object.keys(e).length===0?null:e}processImageFill(t,e){return{ref:"https://www.sheetxl.com/logo-color-padded-white.jpg",tile:!1}}processPatternFill(t,e){const s={},r=e.getAttribute("prst");s.type=r;const o=t.evaluate("bgClr",e);if(o){const n=this.processAdjColor(t,o);n&&(s.background=n)}const i=t.evaluate("fgClr",e);if(i){let n=this.processAdjColor(t,i);n&&(s.foreground=n)}return s}processAdjColor(t,e){const s=t.evaluate("hslClr",e);if(s)return this.processHslClr(t,s);const r=t.evaluate("prstClr",e);if(r)return this.processClrWithValAttribute(t,r);const o=t.evaluate("schemeClr",e);if(o)return this.processClrWithValAttribute(t,o);const i=t.evaluate("sysClr",e);if(i)return this.processClrWithValAttribute(t,i);const n=t.evaluate("scrgbClr",e);if(n)return this.processScrgbClrElement(t,n);const l=t.evaluate("srgbClr",e);return l?this.processSrgbClrElement(t,l):null}processScrgbClrElement(t,e){let s="lrgba("+g.a(e.getAttribute("r"))+","+g.a(e.getAttribute("g"))+","+g.a(e.getAttribute("b"))+")";return s+=this.processAdjustments(t,e),s}processSrgbClrElement(t,e){let s=e.getAttribute("val");return s+=this.processAdjustments(t,e),s}processHslClr(t,e){let s="hsl("+g.p(e.getAttribute("hue"))+","+g.a(e.getAttribute("sat"))+","+g.a(e.getAttribute("lum"))+")";return s+=this.processAdjustments(t,e),s}processClrWithValAttribute(t,e){const s=e.getAttribute("val");if(!s)return;let r=s;return r+=this.processAdjustments(t,e),r}processAdjustments(t,e){let s="";const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1){let n=i.localName;s+=n==="hue"||n==="hueOff"||n==="hueMod"?this.processAdjustmentElement(t,e,n,6e4):n==="gray"||n==="comp"||n==="inv"||n==="gamma"||n==="invGamma"?this.processAdjustmentElement(t,e,n,1):this.processAdjustmentElement(t,e,n)}}return s}processAdjustmentElement(t,e,s,r=1e3){const o=t.evaluate(s,e);if(!o)return"";const i=o.getAttribute("val");return i?` ${s} ${!i||parseFloat(i)/r}`:` ${s}`}}class L extends D{visit(t,e,s){try{const r=t.evaluate("xfrm",e);if(r){Y(r,s);const l={x:0,y:0,width:0,height:0},a=t.evaluate("off",r);a&&(l.x=g.c(a.getAttribute("x"))??0,l.y=g.c(a.getAttribute("y"))??0);const c=t.evaluate("ext",r);a&&(l.width=g.c(c.getAttribute("cx"))??0,l.height=g.c(c.getAttribute("cy"))??0),s.bounds=l}const o=t.evaluate("prstGeom",e);o?.hasAttribute("prst")?s.geometry=o?.getAttribute("prst"):t.evaluate("customGeom",e)&&console.warn("customGeom not supported yet");const i=this.processFill(t,e,s);i&&Object.keys(i).length>0&&(s.fill=i);const n=this.processStroke(t,e,s);return n&&Object.keys(n).length>0&&(s.stroke=n),s}catch(r){throw console.warn(r),new Error("Unexpected Error parsing Shape Properties element")}}}class N{visit(t,e,s){let r={};if(A(t,e,r,"grouping","grouping"),f(t,e,r,"varyColors","varyColors"),y(t,e,r,"gapWidth","gapWidth",.01),y(t,e,r,"overlap","overlap",.01),this.parseType(t,e,r),C(t,e,r,"bubbleScale","bubbleScale"),f(t,e,r,"showNegBubbles","showNegativeBubbleValues"),f(t,e,r,"sizeRepresents","bubbleSizeRepresentsWidth"),C(t,e,r,"firstSliceAng","startAngle"),C(t,e,r,"holeSize","holeSize"),A(t,e,r,"scatterStyle","scatterStyle"),this.parseAxisIds(t,e,r),Object.keys(r).length>0){let o=t.getVisitorParamsState().get("types");o||(o=[],t.getVisitorParamsState().set("types",o)),o.push(r)}return r}parseType(t,e,s){switch(e.localName){case"areaChart":s.type="area";break;case"bubbleChart":s.type="bubble";break;case"doughnutChart":case"ofPieType":case"pieChart":s.type="pie";break;case"lineChart":s.type="line";break;case"scatterChart":s.type="scatter"}}parseAxisIds(t,e,s){const r=t.evaluate("axId",e);if(!r||r.length===0)return;const o=r.item(0).getAttribute("val");s.xAxisId=o;const i=r.item(1).getAttribute("val");s.yAxisId=i}}class J extends N{parseType(t,e,s){const r=t.getValAttrAsString("barDir",e);r&&(s.type=r==="col"?"column":"bar")}}class w{constructor(t){this.jsonKey=t}visit(t,e,s){let r={},o=r,i=t.getValAttrAsString("idx",e);i!==null&&(o={},o[i]=r);const n=t.getValAttrAsBoolean("delete",e);this.parseNumFormat(t,e,r),n===!0?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(f(t,e,r,"showBubbleSize","showBubbleSize"),f(t,e,r,"showCatName","showCatName"),f(t,e,r,"showLeaderLines","showLeaderLines"),f(t,e,r,"showPercent","showPercentage"),f(t,e,r,"showSerName","showSerName"),f(t,e,r,"showVal","showVal"),f(t,e,r,"showLegendKey","showLegendKey"));const l=t.evaluate("separator",e);return l!==null&&(r.separator=l.textContent),A(t,e,r,"dLblPos","position"),s[this.jsonKey]=o,r}parseNumFormat(t,e,s){const r=t.evaluate("numFmt",e);if(r){const o=r.getAttribute("formatCode");s.formatCode=o,r.hasAttribute("sourceLinked")&&(s.sourceLinked=r.getAttribute("sourceLinked")==="1")}}}const M=(u,t,e)=>{if(u.getValAttrAsBoolean("invertIfNegative",t)===!0)if(u.evaluate("extLst/ext/invertSolidFillFmt",t)){if(e.fill&&e.fillNegative){const s=u.getFromPath(e,"fill.solid.adjs");s&&u.setToPath(e,"fillNegative.solid.adjs",s)}}else{const s={val:"FFFFFF"},r={};r.solid=s,e.fillNegative=r;const o={val:"000000"},i={};i.solid=o;const n={};n.fill=i,e.strokeNegative=n}};class Z{visit(t,e,s){const r={};C(t,e,r,"explosion","explosion");let o=t.evaluate("cat/*/f",e);o||(o=t.evaluate("xVal/*/f",e));let i=null;o!==null&&o.firstChild!==null&&(i=o.firstChild.nodeValue),o||(o=t.evaluate("cat/strLit",e),o||(o=t.evaluate("cat/numLit",e)),o&&(i=this.parsePointsAsString(t,o))),i!==null&&(r.xRange=i);let n=t.evaluate("val/*/f",e);n||(n=t.evaluate("yVal/*/f",e));let l=null;n&&n.firstChild&&(l=n.firstChild.nodeValue),n||(n=t.evaluate("val/numLit",e),n!==null&&(l=this.parsePointsAsString(t,n))),l!==null&&(r.valRange=l),this.parseTitleRangeOrValue(t,e,r),C(t,e,r,"idx","idx"),f(t,e,r,"smooth","smooth");const a=t.getVisitorParamsState().get("types").length-1;r.offsetChart=a;let c=t.getVisitorParamsState().get("series");return c||(c=[],t.getVisitorParamsState().set("series",c)),c.push(r),r}parseTitleRangeOrValue(t,e,s){const r=t.evaluate("tx/strRef/f",e);if(r!==null){const o=r.firstChild.nodeValue;t.setToPath(s,"title.range",o)}else{const o=t.evaluate("tx/v",e);o!==null&&t.setToPath(s,"title.text.simpleRun",o.firstChild.nodeValue)}}parsePointsAsString(t,e){let s="{";const r=t.getValAttrAsInteger("ptCount",e),o=t.evaluate("pt",e),i=[];for(let n=0;o&&r&&n<r;n++){let l=null,a=t.evaluate("pt[@idx='"+n+"']/v",e);a instanceof Node&&(l=a.textContent),i[n]=l}for(let n=0;n<i.length;n++)n>0&&(s+=","),i[n]!==void 0&&(s+=i[n]);return s+="}",s}afterVisit(t,e,s){M(t,e,s);let r=t.getFromPath(s,"points");if(r){const o=Object.keys(r);for(let i=0;i<o.length;i++){const n=o[i],l=t.getFromPath(r,n);if(!l)continue;let a=t.getFromPath(l,"markers");a&&(t.setToPath(s,"markers.points."+n,a),delete l.markers)}}}}class tt{DataPointVisitor(){}visit(t,e,s){let r=t.getFromPath(s,"points"),o=null;r?o=r:(o={},t.setToPath(s,"points",o));let i={},n=t.getValAttrAsString("idx",e);return n!==null&&(o[n]=i),f(t,e,i,"bubble3D","bubble3D"),C(t,e,i,"explosion","explosion"),M(t,e,i),i}}class et{visit(t,e,s){const r=e.parentNode.localName;if(r==="ser"||r==="dPt"){const o={},i=t.getValAttrAsString("size",e);i!==null&&(o.size=i);const n=t.getValAttrAsString("symbol",e);return n&&(o.type=n),s.markers=o,o}return null}}class k{visit(t,e,s){let r={};this.parseScaling(t,e,r),y(t,e,r,"majorUnit","majorUnits"),y(t,e,r,"minorUnit","minorUnits"),f(t,e,r,"delete","shown"),this.parseOrientation(t,e,r),this.parseNumFormat(t,e,r),A(t,e,r,"majorTickMark","majorTickMarks"),A(t,e,r,"minorTickMark","minorTickMarks"),A(t,e,r,"crosses","crosses"),y(t,e,r,"crossesAt","crosses"),A(t,e,r,"crossBetween","crossBetween"),this.parseLabelAlign(t,e,r),C(t,e,r,"lblOffset","labelOffset"),A(t,e,r,"tickLblPos","labelPosition");const o=t.getValAttrAsInteger("noMultiLvlLbl",e);r.labelMultiLevel=o!==null&&o===0,C(t,e,r,"tickMarkSkip","tickMarkSkip"),C(t,e,r,"tickLblSkip","labelInterval"),this.parseDisplayCustOrBuiltInUnit(e,t,r),this.parseTimeUnits(t,e,r,"majorUnitDates","majorTimeUnit","majorUnit"),this.parseTimeUnits(t,e,r,"minorUnitDates","minorTimeUnit","minorUnit"),A(t,e,r,"baseTimeUnit","baseUnitDates"),t.getVisitorParamsState().get("axes")||t.getVisitorParamsState().set("axes",new Map);const i=t.getValAttrAsString("axId",e);return t.getVisitorParamsState().get("axes").set(i,r),r}parseTimeUnits(t,e,s,r,o,i){const n={};let l=t.getValAttrAsString(o,e);if(l!==null){n.dem=l;let a=t.getValAttrAsString(i,e);n.amt=a}Object.keys(n).length>0&&(s[r]=n)}parseDisplayCustOrBuiltInUnit(t,e,s){let r=e.getValAttrAsString("dispUnits/builtInUnit",t);r||(r=e.getValAttrAsString("dispUnits/custUnit",t)),r&&(s.displayUnits=r)}parseLabelAlign(t,e,s){let r=t.getValAttrAsString("lblAlgn",e);r!==null&&(r==="ctr"?s.labelAlign="center":r==="l"?s.labelAlign="left":r==="r"&&(s.labelAlign="right"))}parseOrientation(t,e,s){const r=t.getValAttrAsString("AxPos",e);r!==null&&(r==="b"?s.orientation="bottom":r==="l"?s.orientation="left":r==="r"?s.orientation="right":r==="t"&&(s.orientation="top"))}parseNumFormat(t,e,s){const r={},o=t.evaluate("numFmt",e);o!==null&&(o.hasAttribute("formatCode")&&(r.formatCode=o.getAttribute("formatCode")),o.hasAttribute("sourceLinked")&&(r.sourceLinked=o.getAttribute("sourceLinked")==="1")),Object.keys(r).length>0&&(s.labels=r)}parseScaling(t,e,s){const r=t.getValAttrAsString("scaling/orientation",e);r!==null&&(s.inverted=r!=="minMax");const o=t.getValAttrAsFloat("scaling/logBase",e);o!==null&&(s.logBase=o,s.scaleType="log"),y(t,e,s,"scaling/max","max"),y(t,e,s,"scaling/min","min")}afterVisit(t,e,s){s.fill&&s.labels&&(s.labels.fill=s.fill,delete s.fill);let r=t.getValAttrAsBoolean("delete",e);r!==null&&(t.setToPath(s,"labels.shown",r!==!0),t.setToPath(s,"shown",r!==!0));const o=t.getFromPath(s,"dispUnits.displayUnitsLabel");o&&(t.setToPath(s,"displayUnitsLabel",o),delete s.dispUnits);const i=t.evaluate("title",e);t.setToPath(s,"title.shown",i!==null);const n=t.evaluate("minorGridlines",e);t.setToPath(s,"gridLinesMinor.shown",n!==null);const l=t.evaluate("majorGridlines",e);t.setToPath(s,"gridLinesMajor.shown",l!==null)}}class F{constructor(t="text"){this._jsonKey=t}getTextPath(){return this._jsonKey}visit(t,e,s){let r=t.getFromPath(s,this.getTextPath());return r||(r={}),this.parseTextElement(t,e,r,!1),Object.keys(r).length>0&&t.setToPath(s,this.getTextPath(),r),s}parseTextElement(t,e,s,r){const o=t.evaluate("p/pPr/defRPr",e)??t.evaluate("defRPr",e);o&&(this.parseTextProperties(t,o,s),new L().visit(t,o,s));let i=[],n=t.evaluate("p/r",e)??t.evaluate("r",e);const l=c=>{const h={};let d=t.evaluate("t",c);const m=t.evaluate("rPr",c);m&&this.parseTextProperties(t,m,h),d?h.text=d.firstChild.textContent??"":c.textContent&&(h.text=c.textContent??""),i.push(h)};if(n?.length!==void 0)for(let c=0;n&&c<n.length;c++)l(n.item(c));else l(n||e);i.length>0&&(s.runs=i);const a=t.evaluate("bodyPr",e);a&&Y(a,s)}parseTextProperties(t,e,s){if(!e)return;e.hasAttribute("sz")&&(s.size=parseFloat(e.getAttribute("sz"))/100),e.hasAttribute("b")&&(s.weight=e.getAttribute("b")==="1"?700:400),e.hasAttribute("i")&&(s.italic=e.getAttribute("i")==="1"),e.hasAttribute("u")&&(s.underline=e.getAttribute("u")),e.hasAttribute("strike")&&(s.strike=e.getAttribute("strike"));const r=t.evaluate("latin",e);if(r&&!r.getAttribute("typeface").startsWith("+")){const o=s.font??{};if(r.hasAttribute("typeface")&&(o.family=r.getAttribute("typeface")),r.hasAttribute("panose")){const i=r.getAttribute("panose");i&&(o.fallbacks=[p.at.getPanoseFallback(i)])}r.hasAttribute("pitchFamily")&&(o.pitch=r.getAttribute("pitchFamily")),r.hasAttribute("charset")&&(o.charset=r.getAttribute("charset")),Object.keys(o).length>0&&(s.font=o)}}}class rt{visit(t,e,s){let r=t.getVisitorParamsState().get("series")[t.getValAttrAsInteger("idx",e)];if(r){let o=t.getFromPath(r,"title");o||(o={},t.setToPath(r,"title",o));let i=o,n=t.getValAttrAsBoolean("delete",e);return n!==null&&(i.shown=!n),i}return s}}class st{visit(t,e,s){const r={};return f(t,e,r,"overlay","overlay"),A(t,e,r,"legendPos","position"),s.legend=r,r}}class ot extends L{visit(t,e,s){const r=this.processFill(t,e,s);Object.keys(r).length>0&&(s.fillNegative=r);const o=this.processStroke(t,e,s);return Object.keys(o).length>0&&(s.strokeNegative=o),s}}class _ extends F{constructor(t="title"){super(t)}parseTitleRangeOrValue(t,e,s){let r=t.evaluate("tx/strRef/f",e)??null;if(r){const o=r.firstElementChild.nodeValue;t.setToPath(s,"range",o)}}visit(t,e,s){const r={};f(t,e,r,"overlay","overlay"),s[this._jsonKey]=r;let o=t.getFromPath(r,this.getTextPath());o||(o={}),this.parseTitleRangeOrValue(t,e,r);const i=t.evaluate("txPr",e);i&&this.parseTextElement(t,i,o,!1);const n=t.evaluate("tx/rich",e);return n&&this.parseTextElement(t,n,o,!0),Object.keys(o).length>0&&t.setToPath(r,this.getTextPath(),o),r}afterVisit(t,e,s){if(s?.text){const r=s.text?.rotation??null;r!==null&&(s.rotation=parseInt(r),delete s.title.rotation)}}}class it{visit(t,e,s){const r=t.evaluate("manualLayout",e);if(r){let o={};y(t,r,o,"x","x"),y(t,r,o,"y","y"),y(t,r,o,"w","w"),y(t,r,o,"h","h"),A(t,r,o,"xMode","xMode"),A(t,r,o,"yMode","yMode"),A(t,r,o,"wMode","wMode"),A(t,r,o,"hMode","hMode"),Object.keys(o).length>0&&(s.manualLayout=o)}return s}}class nt{visit(t,e,s){return s.name=e.getAttribute("name"),s}}class lt extends D{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1){let l=n.localName;const a=t.evaluate(l,e),c=this.processAdjColor(t,a);r[l]=c}}return Object.keys(r).length>0&&(s.colors=r),r}}class at{visit(t,e,s){const r={};r.name=e.getAttribute("name");const o=t.evaluate("majorFont",e),i=this.processFontElement(t,o,{});r.majorFont=i.family,i.fallbacks&&(r.majorFallbacks=i.fallbacks);const n=t.evaluate("minorFont",e),l=this.processFontElement(t,n,{});return r.minorFont=l.family,i.fallbacks&&(r.minorFallbacks=l.fallbacks),s.fonts=r,r}processFontElement(t,e,s){if(!e)return;const r=t.evaluate("latin",e);if(!r)return;const o=r.getAttribute("typeface");o&&(s.family=o);const i=r.getAttribute("panose");return i&&(s.fallbacks=[p.at.getPanoseFallback(i)]),s}}class ct{visit(t,e,s){if(!e)return;const r={},o=e.getAttribute("r:id");if(o){const i=t.getRef(o);typeof i=="string"&&(r.address=i)}return t.copyFromAttribute(e,"tooltip",r),t.copyFromAttribute(e,"history",r,"history",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tgtFrame",r,"target"),s.hyperlink=r,r}}class ut{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),this.processFilterColumns(t,e,r),Object.keys(r).length>0&&(s.filter=r),r}processColorFilter(t,e){const s={type:p.du.Type.Color};return t.copyFromAttribute(e,"cellColor",s,"cellColor",t.BOOLEAN_COPY),t.copyFromAttribute(e,"dxfId",s,"styleId",t.INT_COPY),s}processCustomFilter(t,e){const s={};return t.copyFromAttribute(e,"operator",s,"operator",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val"),s}processCustomFilters(t,e){const s={type:p.du.Type.Custom};t.copyFromAttribute(e,"and",s,"and",t.BOOLEAN_COPY);const r=e.childNodes;s.filters=[];for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType!==1)continue;let n=null;i.localName==="customFilter"&&(n=this.processCustomFilter(t,i)),n&&s.filters.push(n)}return s}processDynamicFilter(t,e){const s={type:p.du.Type.Dynamic};return t.copyFromAttribute(e,"type",s,"dynamicType"),t.copyFromAttribute(e,"val",s,"val",t.INT_COPY),t.copyFromAttribute(e,"maxVal",s,"maxVal",t.INT_COPY),s}processDateGroupItem(t,e){const s={};return t.copyFromAttribute(e,"dateTimeGrouping",s,"group"),t.copyFromAttribute(e,"day",s,"day",t.INT_COPY),t.copyFromAttribute(e,"hour",s,"hour",t.INT_COPY),t.copyFromAttribute(e,"minute",s,"minute",t.INT_COPY),t.copyFromAttribute(e,"month",s,"month",t.INT_COPY),t.copyFromAttribute(e,"second",s,"second",t.INT_COPY),t.copyFromAttribute(e,"year",s,"year",t.INT_COPY),s}processFilterItem(t,e){if(e.hasAttribute("val"))return e.getAttribute("val")}processFilters(t,e){const s={type:p.du.Type.Items};t.copyFromAttribute(e,"blank",s,"blank",t.BOOLEAN_COPY),t.copyFromAttribute(e,"calendarType",s,"calendarType");let r=[],o=[];const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1){if(l.localName==="dateGroupItem"){const a=this.processDateGroupItem(t,l);a&&r.push(a)}else if(l.localName==="filter"){const a=this.processFilterItem(t,l);a!==void 0&&o.push(a)}}}return r.length>0&&(s.dateGroups=r),o.length>0&&(s.items=o),s}processIcon(t,e){const s={type:p.du.Type.Icon};return t.copyFromAttribute(e,"iconId",s,"iconId",t.INT_COPY),t.copyFromAttribute(e,"iconSet",s),s}processTop10(t,e){const s={type:p.du.Type.Top10};return t.copyFromAttribute(e,"filterVal",s,"filterVal",t.FLOAT_COPY),t.copyFromAttribute(e,"percent",s,"percent",t.BOOLEAN_COPY),t.copyFromAttribute(e,"top",s,"top",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",s,"val",t.FLOAT_COPY),s}processFilterCriteria(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType!==1)continue;let l=null;n.localName==="colorFilter"?l=this.processColorFilter(t,n):n.localName==="customFilters"?l=this.processCustomFilters(t,n):n.localName==="dynamicFilter"?l=this.processDynamicFilter(t,n):n.localName==="filters"?l=this.processFilters(t,n):n.localName==="iconFilter"?l=this.processIcon(t,n):n.localName==="top10"&&(l=this.processTop10(t,n)),l&&o.push(l)}return o.length>0&&(s.criteria=o),o}processFilterColumn(t,e){if(!e)return null;const s={};if(!e.hasAttribute("colId"))return;s.offset=parseInt(e.getAttribute("colId"));let r=!1;return e.hasAttribute("hiddenButton")&&(r=g.b(e.getAttribute("hiddenButton"))),r&&(s.hiddenButton=!0),e.hasAttribute("showButton")&&(s.showButton=g.b(e.getAttribute("showButton"))),this.processFilterCriteria(t,e,s),s}processFilterColumns(t,e,s){if(!e)return;const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="filterColumn"){const l=this.processFilterColumn(t,n);l&&o.push(l)}}return o.length>0&&(s.fields=o),o}}class ht{visit(t,e,s){if(!e)return;const r={};if(t.copyFromAttribute(e,"ref",r),e.hasAttribute("caseSensitive")){const n=g.b(e.getAttribute("caseSensitive"));r.collatorOptions=n?p.Ur.CaseSensitiveOptions:p.Ur.CaseInsensitiveOptions}const o=e.getAttribute("sortMethod");o!=null&&o!=="none"&&(o==="stroke"?r.collatorOptions={...r.collatorOptions,collation:"stroke"}:o==="pinYin"&&(r.collatorOptions={...r.collatorOptions,collation:"pinyin"})),e.hasAttribute("columnSort")&&g.b(e.getAttribute("columnSort"))&&(r.orientation=p.w.Orientation.Column);const i=p.Qr.fastStringToRange(r.ref);return this.processSortConditions(t,e,r,i),Object.keys(r).length>0&&(s.sort=r),r}processSortCondition(t,e,s){if(!e)return null;const r={};if(e.hasAttribute("ref")){if(e.hasAttribute("ref")){const o=e.getAttribute("ref"),i=p.Qr.fastStringToRange(o);r.offset=s?i.colStart-s.colStart:i.colStart}return r.reverse=!1,e.hasAttribute("descending")&&(r.reverse=g.b(e.getAttribute("descending"))),t.copyFromAttribute(e,"sortBy",r,"sortOn"),t.copyFromAttribute(e,"dxfId",r),t.copyFromAttribute(e,"iconSet",r),t.copyFromAttribute(e,"customList",r),r}console.warn("no ref for sort conditional",t.getPath())}processSortConditions(t,e,s,r){if(!e)return;const o=e.childNodes,i=[];for(let n=0;n<o.length;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="sortCondition"){const a=this.processSortCondition(t,l,r);a&&i.push(a)}}return i.length>0&&(s.fields=i),i}}class U{visit(t,e,s){}processDataBarColor(t,e,s,r,o="dk1"){if(!e)return;const i=g.d(n=>e.getAttribute(n),o);return i&&(s[r]=i),s}processFonts(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="font"){const l={};this.processFont(t,n,l),s[o++]=l}}return s}processFont(t,e,s){t.getValAttrAsBoolean("b",e,!0)&&(s.weight=700),t.getValAttrAsBoolean("i",e,!0)&&(s.style=p.at.Style.Italic),t.getValAttrAsBoolean("strike",e,!0)&&(s.strike=!0);const r=t.evaluate("u",e);if(r){const n=r.getAttribute("val");s.underline=n||p.at.UnderlineStyle.Single}A(t,e,s,"vertAlign","verticalAlign"),s.verticalAlign==="superscript"?s.verticalAlign=p.at.VerticalAlignment.Super:s.verticalAlign==="subscript"&&(s.verticalAlign=p.at.VerticalAlignment.Sub),y(t,e,s,"sz","size");const o=t.evaluate("color",e);this.processDataBarColor(t,o,s,"fill"),s.fill||(s.fill="dk1"),A(t,e,s,"name","family"),A(t,e,s,"rFont","family");const i=t.evaluate("family",e);if(i){const n=i.getAttribute("val");if(n)switch(n){case"1":s.fallbacks=["serif"];break;case"2":s.fallbacks=["sans-serif"];break;case"3":s.fallbacks=["monospace"];break;case"4":s.fallbacks=["cursive"];break;case"5":s.fallbacks=["fantasy"]}}return A(t,e,s,"scheme","scheme"),f(t,e,s,"shadow","shadow",!0),f(t,e,s,"outline","outline",!0),t.getValAttrAsBoolean("condense",e,!0)&&(s.letterSpacing=-1),t.getValAttrAsBoolean("extend",e,!0)&&(s.letterSpacing=1),A(t,e,s,"charset","charset"),s}processFills(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="fill"&&this.processFill(t,n,s,o++)}return s}processFill(t,e,s,r){const o={type:p.nt.Type.None},i=e.childNodes;let n=!1;for(let l=0;!n&&l<i.length;l++){const a=i.item(l);a.nodeType===1&&(a.localName==="gradientFill"?(this.processGradientFill(t,a,o),n=!0):a.localName==="patternFill"&&(this.processPatternFill(t,a,o),n=!0))}return s[r]=o,s}processGradientFill(t,e,s){if(!e)return;s.type=p.nt.Type.Gradient;const r=[];s.stops=r,s.angle=90+(e.hasAttribute("degree")?parseFloat(e.getAttribute("degree")):0);const o=e.getAttribute("type");o&&(s.gradientType=o);const i=l=>{if(!l)return 0;const a=parseFloat(l);return isNaN(a)?0:a};(e.hasAttribute("left")||e.hasAttribute("top")||e.hasAttribute("right")||e.hasAttribute("bottom"))&&(s.fillTo={left:i(e.getAttribute("left")),top:i(e.getAttribute("top")),right:i(e.getAttribute("right")),bottom:i(e.getAttribute("bottom"))});const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="stop"){const c={};r.push(c);const h=parseFloat(a.getAttribute("position"));c.offset=h;const d=t.evaluate("color",a);this.processDataBarColor(t,d,c,"color")}}return s}processPatternFill(t,e,s){if(!e)return;const r=t.getVisitorParamsState().get("processingDXFs"),o=e.getAttribute("patternType")||(r?p.nt.BuiltInSheetPattern.Solid:p.nt.BuiltInSheetPattern.None);if(o===p.nt.BuiltInSheetPattern.None)return{none:!0};s.type=p.nt.Type.Pattern,o&&(s.patternType=o);let i,n="foreground",l="background";const a=s.patternType===p.nt.BuiltInSheetPattern.Solid&&r;if(a){i="lt1";const d=n;n=l,l=d}const c=t.evaluate("fgColor",e);this.processDataBarColor(t,c,s,n,i);const h=t.evaluate("bgColor",e);return this.processDataBarColor(t,h,s,l,i),a&&!s.foreground&&(s.foreground=i),s}processBorders(t,e,s,r){if(!e)return;const o=e.childNodes;let i=0;for(let n=0;n<o.length;n++){const l=o.item(n);l.nodeType===1&&l.localName==="border"&&this.processBorder(t,l,s,i++,r)}return s}processBorder(t,e,s,r,o){if(!e)return;const i={};return this.processBorderStroke(t,e,i,p.q.Edge.Left),this.processBorderStroke(t,e,i,p.q.Edge.Right),o?(i.right||i.left)&&(i.right?i.vertical={...i.right}:i.vertical={...i.left}):this.processBorderStroke(t,e,i,p.q.Edge.Vertical),this.processBorderStroke(t,e,i,p.q.Edge.Top),this.processBorderStroke(t,e,i,p.q.Edge.Bottom),o?(i.bottom||i.top)&&(i.right?i.horizontal={...i.bottom}:i.horizontal={...i.top}):this.processBorderStroke(t,e,i,p.q.Edge.Horizontal),s[r]=i,s}processBorderStroke(t,e,s,r){if(!e)return;const o=t.evaluate(r,e);if(!o)return;const i={};o.hasAttribute("style")&&(i.style=o.getAttribute("style"));const n=t.evaluate("color",o);return n&&this.processDataBarColor(t,n,i,"color"),Object.keys(i).length>0?s[r]=i:null}}class pt extends U{visit(t,e,s){this.processNumFmts(t,t.evaluate("numFmts",e),null),t.getVisitorParamsState().set("colorsToProcess",new Set);const r={fills:{},fonts:{},borders:{}};this.processFonts(t,t.evaluate("fonts",e),r.fonts),this.processFills(t,t.evaluate("fills",e),r.fills),this.processBorders(t,t.evaluate("borders",e),r.borders,!0),r.fills[0]={type:p.nt.Type.None},r.fills[1]={type:p.nt.Type.Pattern,patternType:p.nt.BuiltInSheetPattern.Gray125},r.borders[0]={};const o=[];this.processXFs(t,t.evaluate("cellStyleXfs",e),o,r,null,!1);const i=new Map;if(o.length>0){const a=[];this.processCellStyles(t,t.evaluate("cellStyles",e),a,o,i),s.named=a}const n=[];this.processXFs(t,t.evaluate("cellXfs",e),n,r,i),Object.keys(n).length>0&&(s.direct=n);const l=[];return this.processDXFs(t,t.evaluate("dxfs",e),l),this.processTableStyles(t,t.evaluate("tableStyles",e),s,l),this.processIndexColors(t,t.evaluate("colors/indexedColors",e),s),this.processMruColors(t,t.evaluate("colors/mruColors",e),s),s}processIndexColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="rgbColor"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}s.indexedColors=r}processMruColors(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="color"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}r.length>0&&(s.mruColors=r)}processNumFmts(t,e,s){if(!e)return;const r=new Map;if(t.getVisitorParamsState().set("numFmts",r),!e)return;const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="numFmt"){const l=n.getAttribute("numFmtId"),a=n.getAttribute("formatCode");if(l&&a){const c=a.replace(/\\(.)/g,"$1");r.set(parseInt(l),c)}}}}processXFs(t,e,s,r,o=null,i=!0){if(!e)return;const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="xf"){const c={};this.processXF(t,a,c,r,o,i),s.push(c)}}}processXF(t,e,s,r,o,i){if(!e)return;const n=e.getAttribute("xfId");if(n&&o){const c=o.get(parseInt(n));c&&c!==p.gt$1.BuiltInName.Normal&&(s.named=c)}const l=c=>!(!i&&e.hasAttribute(c))||g.b(e.getAttribute("applyFont"));if(l("applyFont")){const c=r.fonts[e.getAttribute("fontId")];c&&(s.font=c)}if(l("applyFill")){const c=r.fills[e.getAttribute("fillId")];c&&Object.keys(c).length>0&&(s.fill=c)}if(l("applyBorder")){const c=r.borders[e.getAttribute("borderId")];c&&Object.keys(c).length>0&&(s.border=c)}if(l("applyNumberFormat")){const c=e.getAttribute("numFmtId");if(c){const h=parseInt(c);let d;const m=t.getVisitorParamsState();if(m){const b=m.get("numFmts");b&&(d=b.get(h)),s.numberFormat=d??h}else console.warn("no visitor params state")}}l("applyAlignment")&&this.processAlignment(t,t.evaluate("alignment",e),s),l("applyProtection")&&this.processProtection(t,t.evaluate("protection",e),s);const a=g.b(e.getAttribute("quotePrefix"));a&&(s.quotePrefix=a)}processAlignment(t,e,s){const r={};if(e?.hasAttribute("horizontal")?r.horizontal=e.getAttribute("horizontal"):r.horizontal=p.Q.HorizontalAlignment.General,e?.hasAttribute("vertical")?r.vertical=e.getAttribute("vertical"):r.vertical=p.Q.VerticalAlignment.Bottom,e?.hasAttribute("indent")?r.indent=parseInt(e.getAttribute("indent")):r.indent=0,e?.hasAttribute("relativeIndent")?r.relativeIndent=parseInt(e.getAttribute("relativeIndent")):r.relativeIndent=0,g.b(e?.getAttribute("wrapText"))?r.overflow=p.Q.Overflow.Wrap:r.overflow=p.Q.Overflow.Visible,g.b(e?.getAttribute("shrinkToFit"))&&(r.overflow=p.Q.Overflow.Shrink),e?.hasAttribute("textRotation")){let i=parseFloat(e.getAttribute("textRotation"));i>0&&i<=90?i=360-i:i>90&&i<=180?i-=90:i===255&&(i=0,r.stacked=!0),r.rotation=i}else r.rotation=0;e?.hasAttribute("justifyLastLine")&&(r.justifyLastLine=g.b(e.getAttribute("justifyLastLine")));const o=e?.getAttribute("readingOrder");return o&&(o==="0"?r.readingDirection=p.Q.ReadingDirection.Auto:o==="1"?r.readingDirection=p.Q.ReadingDirection.LeftToRight:o==="2"?r.readingDirection=p.Q.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${o}`)),Object.keys(r).length>0&&(s.alignment=r),s}processProtection(t,e,s){if(!e)return;const r={},o=e.getAttribute("locked");o&&!g.b(o)&&(r.edit=!0);const i=e.getAttribute("hidden");return i&&g.b(i)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(s.protection=r),s}processDXF(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="font"){const n={};this.processFont(t,i,n),s.font=n}else if(i.nodeType===1&&i.localName==="fill"){const n=[];this.processFill(t,i,n,0),n.length>0&&n[0]&&(s.fill=n[0])}else if(i.nodeType===1&&i.localName==="border"){const n=[];this.processBorder(t,i,n,0,!1),n.length>0&&n[0]&&(s.border=n[0])}}}processDXFs(t,e,s){if(!e)return;t.getVisitorParamsState().set("processingDXFs",!0);const r=new Map;t.getVisitorParamsState().set("dxfs",r);const o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="dxf"){const l={};this.processDXF(t,n,l);const a=s.length;r.set(a,l),s.push(l)}}t.getVisitorParamsState().delete("processingDXFs")}processTableStyle(t,e,s,r,o=!1){const i=e.getAttribute("name"),n={name:i};e.hasAttribute("table")&&(n.table=g.b(e.getAttribute("table"))),e.hasAttribute("pivot")&&(n.pivot=g.b(e.getAttribute("pivot"))),o&&!n.pivot&&r.unshift(null);const l=e.childNodes;for(let a=0;a<l.length;a++){const c=l.item(a);if(c.nodeType===1&&c.localName==="tableStyleElement"){const h=c.getAttribute("type"),d=c.getAttribute("dxfId");let m=r?.[d];m||(console.warn("invalid dfx id",d),m={}),n[h]=m;let b=null;c.hasAttribute("size")&&(b=parseInt(c.getAttribute("size"))),b&&!isNaN(b)&&(m.size=b)}}delete n.name,s[i]=n}processTableStyles(t,e,s,r,o){if(!e)return;const i={},n=e.getAttribute("defaultTableStyle");n&&(i.defaultTableStyle=n);const l=e.getAttribute("defaultPivotStyle");l&&(i.defaultPivotStyle=l);const a=e.childNodes,c={};for(let h=0;h<a.length;h++){const d=a.item(h);d.nodeType===1&&d.localName==="tableStyle"&&this.processTableStyle(t,d,c,r,o)}return Object.keys(c).length>0&&(i.styles=c),Object.keys(i).length>0&&(s.tables=i),s}processCellStyles(t,e,s,r,o){if(!e)return;const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1&&l.localName==="cellStyle"){const a=parseInt(l.getAttribute("xfId")),c=l.getAttribute("name");if(o.set(a,c),!r[a])continue;const h={name:c,style:r[a]};l.getAttribute("hidden")&&(h.hidden=g.b(l.getAttribute("hidden"))),l.getAttribute("iLevel")&&(h.iLevel=parseInt(l.getAttribute("iLevel"))),s.push(h)}}}afterVisit(t,e,s){}}class gt extends U{visit(t,e,s){return this.processSheetRefs(t,t.evaluate("sheets",e),s),this.processBookViews(t,t.evaluate("bookViews",e),s),this.processDefinedNames(t,t.evaluate("definedNames",e),s),this.processCalcPr(t,t.evaluate("calcPr",e),s),this.processWorkbookProtection(t,t.evaluate("workbookProtection",e),s),this.processWorkbookPr(t,t.evaluate("workbookPr",e),s),s}processPassword(t,e,s,r="password"){if(!e)return;const o={};t.copyFromAttribute(e,"algorithmName",o,"algorithmName"),t.copyFromAttribute(e,"hashValue",o,"hashValue"),t.copyFromAttribute(e,"saltValue",o,"saltValue",t.BOOLEAN_COPY),t.copyFromAttribute(e,"spinCount",o,"spinCount",t.INT_COPY),Object.keys(o).length>0&&(s[r]=o)}processWorkbookProtection(t,e,s){if(!e)return;const r={};this.processPassword(t,t.evaluate("workbookPassword",e),r),this.processPassword(t,t.evaluate("revisionsPassword",e),r,"revisionsPassword");const o=i=>i!==!0&&i!=="1"&&i!=="on"&&i!=="true"&&(i===!1||i==="0"||i==="off"||i==="false"||null);return t.copyFromAttribute(e,"lockStructure",r,"structure",o),t.copyFromAttribute(e,"lockWindows",r,"windows",o),t.copyFromAttribute(e,"lockRevision",r,"revision",o),s.protection=r,s}processCalcPr(t,e,s){e&&(s.calc={})}processSheetRefs(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="sheet"&&this.processSheetRef(t,n,r)}s.sheets=r}processSheetRef(t,e,s){const r={};t.copyFromAttribute(e,"name",r,"name"),t.copyFromAttribute(e,"state",r,"visibility");const o=e.getAttribute("r:id"),i=t.getRef(o);i&&(r.sheet=i),s.push(r)}processBookViews(t,e,s){if(!e)return;const r=e.childNodes;let o=0;for(let i=0;o<1&&i<e.childNodes.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="workbookView"&&(this.processWorkbookView(t,n,s),o++)}}processWorkbookView(t,e,s){if(!e)return;const r={};t.copyFromAttribute(e,"activeTab",r,"activeSheetId",[t.INT_COPY,o=>o+1]),e.hasAttribute("activeTab")||(r.activeSheetId=1),t.copyFromAttribute(e,"showHorizontalScroll",r,"showHorizontalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showVerticalScroll",r,"showVerticalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showSheetTabs",r,"showTabs",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tabRatio",r,"tabRatio",[t.FLOAT_COPY,o=>o]),Object.keys(r).length>0&&(s.view=r)}processDefineName(t,e,s,r){if(!e)return;const o={},i=e.firstChild;if(i&&i.nodeType===3&&(o.ref=i.textContent),t.copyFromAttribute(e,"name",o),t.copyFromAttribute(e,"comment",o),t.copyFromAttribute(e,"hidden",o,"hidden",t.BOOLEAN_COPY),e.hasAttribute("localSheetId")){const n=e.getAttribute("localSheetId");if(!r[n]?.name)return void console.warn(`Defined name '${e.getAttribute("name")}' references a sheet with localSheetId '${n}' which does not exist.`);o.scope=r[n].name}t.copyFromAttribute(e,"customMenu",o),t.copyFromAttribute(e,"description",o),t.copyFromAttribute(e,"statusBar",o),t.copyFromAttribute(e,"help",o),t.copyFromAttribute(e,"shortcutKey",o),t.copyFromAttribute(e,"function",o,"function",t.BOOLEAN_COPY),t.copyFromAttribute(e,"functionGroupId",o,"functionGroupId",t.INT_COPY),t.copyFromAttribute(e,"publishToServer",o,"publishToServer",t.BOOLEAN_COPY),t.copyFromAttribute(e,"vbProcedure",o,"vbProcedure",t.BOOLEAN_COPY),t.copyFromAttribute(e,"xlm",o,"xlm",t.BOOLEAN_COPY),Object.keys(o).length>0&&s.push(o)}processDefinedNames(t,e,s){if(!e)return;const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);n.nodeType===1&&n.localName==="definedName"&&this.processDefineName(t,n,r,s.sheets)}r.length>0&&(s.names=r)}processWorkbookPr(t,e,s){e&&t.copyFromAttribute(e,"date1904",s,"date1904",t.BOOLEAN_COPY)}afterVisit(t,e,s){}}class dt{visit(t,e,s){return t.copyFromAttribute(e,"name",s),t.copyFromAttribute(e,"displayName",s),t.copyFromAttribute(e,"ref",s),t.copyFromAttribute(e,"headerRowCount",s,"headerRowCount",t.INT_COPY),t.copyFromAttribute(e,"totalsRowCount",s,"totalsRowCount",t.INT_COPY),this.processTableColumns(t,e,s),this.processTableStyleInfo(t,e,s),s}processTableStyleInfo(t,e,s){if(!e)return;const r=e.childNodes,o={};for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableStyleInfo"&&(t.copyFromAttribute(n,"name",o),t.copyFromAttribute(n,"showColumnStripes",o,"showColumnStripes",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showFirstColumn",o,"showFirstColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showLastColumn",o,"showLastColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showRowStripes",o,"showRowStripes",t.BOOLEAN_COPY))}Object.keys(o).length>0&&(s.styleOptions=o)}processTableColumn(t,e,s){if(!e)return null;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="tableColumn"){const n={};t.copyFromAttribute(i,"name",n),t.copyFromAttribute(i,"uniqueName",n),s.push(n)}}return s}processTableColumns(t,e,s){const r=e.childNodes,o=[];for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableColumns"&&this.processTableColumn(t,n,o)}o.length>0&&(s.columns=o)}}class mt{visit(t,e,s){return s}}class x{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"editAs",r,"anchorType"),r.anchor={},this.processOffsetCoord(t,t.evaluate("from",e),r.anchor,"from"),this.processOffsetCoord(t,t.evaluate("to",e),r.anchor,"to"),s.movables||(s.movables=[]),s.movables.push(r),r}processOffsetCoord(t,e,s,r){if(!e)return;const o={c:0,r:0,x:0,y:0};return t.evaluate("col",e)&&(o.c=parseInt(t.evaluate("col",e).textContent)),t.evaluate("row",e)&&(o.r=parseInt(t.evaluate("row",e).textContent)),t.evaluate("colOff",e)&&(o.x=g.c(t.evaluate("colOff",e).textContent)),t.evaluate("rowOff",e)&&(o.y=g.c(t.evaluate("rowOff",e).textContent)),r==="from"?s.tl=o:s.br=o,s}}class I{visit(t,e,s){if(!e)return;const r=t.evaluate("*/cNvPr",e);return r&&(t.copyFromAttribute(r,"name",s),t.copyFromAttribute(r,"desc",s),t.copyFromAttribute(r,"hidden",s,"hidden",t.BOOLEAN_COPY),t.copyFromAttribute(r,"id",s)),s}}class bt extends I{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGraphicFramePr/cNvGraphicFramePr",e);if(r){const n=t.evaluate("graphicFrameLocks",r);if(n){n.hasAttribute("noChangeAspect")&&(s.lockAspect=n.getAttribute("noChangeAspect")==="1");const l={};Object.keys(l).length>0&&(s.locks=l)}}let o={type:"graphicFrame",json:{}};const i=t.evaluate("graphic/graphicData",e).childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1)try{let a=l.localName;a==="chart"&&(a="chart"),o.type=a;const c=l.getAttribute("r:id");c&&(o.json=t.getRef(c))}catch(a){console.warn("Unable to parse graphicFrame",a)}}return o&&(s.content=o),o}}class B extends I{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvSpPr/cNvSpPr",e);if(r){const i=t.evaluate("spLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', shapes are not supported.`);const o={};return s.content={type:"sp",json:o},o}}class ft extends I{visit(t,e,s){if(!e)return;const r=super.visit(t,e,s),o=t.evaluate("nvPicPr/cNvPicPr",e);if(o){t.copyFromAttribute(e,"preferRelativeResize",r,"preferRelativeResize",t.BOOLEAN_COPY);const a=t.evaluate("picLocks",o);if(a){a.hasAttribute("noChangeAspect")&&(r.lockAspect=a.getAttribute("noChangeAspect")==="1");const c={};t.copyFromAttribute(a,"noChangeArrowheads",r,"noChangeArrowheads",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noChangeShapeType",r,"noChangeShapeType",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noEditPoints",r,"noEditPoints",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noAdjustHandles",r,"noAdjustHandles",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noCrop",r,"noCrop",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noGrp",r,"noGrp",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noMove",r,"noMove",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noResize",r,"noResize",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noRot",r,"noRot",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noSelect",r,"noSelect",t.BOOLEAN_COPY),Object.keys(c).length>0&&(r.locks=c)}}const i=t.evaluate("blipFill/blip",e);let n;if(i){const a=i.getAttribute("r:embed")??i.getAttribute("embed");if(!a)return void console.warn("no rId found for blip",i);n=t.getRef(a,!0)}const l={resId:n};return s.content={type:"picture",json:l},r}}class At extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvGrpSpPr/cNvGrpSpPr",e);if(r){const i=t.evaluate("grpSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', group shapes are not supported.`);const o={};return s.content={type:"grpSp",json:o},o}}class yt extends B{visit(t,e,s){if(!e)return;s=super.visit(t,e,s);const r=t.evaluate("nvCxnSpPr/cNvCxnSpPr",e);if(r){const i=t.evaluate("cxnSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(s.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(s.locks=n)}}t.warn(`Unable to import '${s.name}', connection shapes are not supported.`);const o={};return s.content={type:"cxnSp",json:o},o}}const j="richTypes";class vt{visit(t,e,s){let r=t.getVisitorParamsState().get(j);r||(r=[],t.getVisitorParamsState().set(j,r));const o=e.childNodes,i=o.length;for(let n=0;n<i;n++){const l=o.item(n);if(l.nodeType===1&&l.localName==="s"){const a={type:l.getAttribute("t")??"n",keys:[]};this.processKeys(t,l,a),r.push(a)}}return s.richTypes=r,r}processKeys(t,e,s){const r=e.childNodes,o=r.length,i=s.keys;for(let n=0;n<o;n++){const l=r.item(n);if(l.nodeType===1&&l.localName==="k"){const a=l.getAttribute("n"),c=l.getAttribute("t");i.push([a,c])}}}}const R="richData";class Ft{visit(t,e,s){let r=t.getVisitorParamsState().get("richTypes");if(!r)return void t.warn("RichValueFound but not type.");let o=t.getVisitorParamsState().get(R);o||(o=[],t.getVisitorParamsState().set(R,o));const i=e.childNodes,n=i.length;for(let l=0;l<n;l++){const a=i.item(l);if(a.nodeType===1&&a.localName==="rv"){const c=r[a.getAttribute("s")],h={type:c.type};this.processValues(t,a,h,c);const d=this.mapType(t,h);o.push(d)}}return s.richData=o,o}mapType(t,e){if(e.type==="_error"){const s=e.errorType;if(s)try{e=p.n.getBuiltInById(s+1)}catch{}}return e}processValues(t,e,s,r){const o=e.childNodes,i=o.length;r.type;const n=r.keys;for(let l=0;l<i;l++){const a=o.item(l);if(a.nodeType===1&&a.localName==="v"){const c=n[l];if(!c)return void t.warn("Invalid richData");const h=c[0],d=c[1];let m=a.textContent;d==="i"&&(m=Number(m)),s[h]=m}}}}class Ct{visit(t,e,s){if(!e)return;const r=[];return this.processAuthors(t,t.evaluate("authors",e),r),r.length>0&&(s.authors=r),s.comments=[],s}processAuthors(t,e,s){if(!e)return;const r=e.childNodes;for(let o=0;o<r.length;o++){const i=r.item(o);if(i.nodeType===1&&i.localName==="author"){const n=i.firstChild;n&&n.nodeType===3&&s.push(n.textContent)}}}}class wt{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"authorId",r,"authorId",t.INT_COPY),r.asNote=!0,s.comments||(s.comments=[]),s.comments.push(r),r}}class Pt{visit(t,e,s){if(!e)return;const r=[];return s.comments=r,r}}class Nt{visit(t,e,s){if(!e)return;const r={};return t.copyFromAttribute(e,"id",r,"id",g.r),t.copyFromAttribute(e,"personId",r,"personId",g.r),t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"parentId",r,"parentId",g.r),t.copyFromAttribute(e,"dT",r),e.hasAttribute("done")&&(r.done=g.b(e.getAttribute("done"))),s.push(r),r}}class Ot{visit(t,e,s){const r=[],o=e.childNodes;for(let i=0;i<o.length;i++){const n=o.item(i);if(n.nodeType===1&&n.localName==="person"){const l={};t.copyFromAttribute(n,"id",l,"id",g.r),t.copyFromAttribute(n,"displayName",l),t.copyFromAttribute(n,"userId",l,"userId",g.r),t.copyFromAttribute(n,"providerId",l),r.push(l)}}return r.length>0&&(s.persons=r),r}}const Tt={};class Vt{constructor(t,e){this.path=t,this.visitor=e}}class E{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor("Relationships",new q),this.registerVisitor("spPr",new L),this.registerVisitor("txBody",new F),this.registerVisitor("txPr",new F),this.registerVisitor("c:chartSpace",new K),this.registerVisitor("c:chartSpace",new Q,"chart"),this.registerVisitor("c:plotArea",new H),this.registerVisitor("c:barChart",new J),this.registerVisitor("c:doughnutChart",new N),this.registerVisitor("c:lineChart",new N),this.registerVisitor("c:ofPieType",new N),this.registerVisitor("c:pieChart",new N),this.registerVisitor("c:scatterChart",new N),this.registerVisitor("c:barChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:doughnutChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:lineChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ofPieType",new w("dataLabels"),"dLbls"),this.registerVisitor("c:pieChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:scatterChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ser",new Z),this.registerVisitor("c:dPt",new tt),this.registerVisitor("c:marker",new et),this.registerVisitor("c:catAx",new k),this.registerVisitor("c:valAx",new k),this.registerVisitor("c:dateAx",new k),this.registerVisitor("c:majorGridlines",new S("gridLinesMajor")),this.registerVisitor("c:minorGridlines",new S("gridLinesMinor")),this.registerVisitor("c:chartSpace",null,"txPr"),this.registerVisitor("c:catAx",new F("labels.text"),"txPr"),this.registerVisitor("c:valAx",new F("labels.text"),"txPr"),this.registerVisitor("c:dateAx",new F("labels.text"),"txPr"),this.registerVisitor("c:legend",new st),this.registerVisitor("c:legend",new F("labels.text"),"txPr"),this.registerVisitor("c:legendEntry",new rt),this.registerVisitor("c:ser",new ot,"extLst/ext/invertSolidFillFmt/spPr"),this.registerVisitor("c:ser",new w("labels"),"dLbls"),this.registerVisitor("c:dLbl",new w("points")),this.registerVisitor("c:title",new _),this.registerVisitor("c:title",null,"tx/rich"),this.registerVisitor("c:title",null,"txPr"),this.registerVisitor("c:layout",new it),this.registerVisitor("c:dispUnits",new S("dispUnits")),this.registerVisitor("c:dispUnitsLbl",new _("displayUnitsLabel")),this.registerVisitor("c:dispUnitsLbl",new F,"tx/rich"),this.registerVisitor("a:theme",new nt),this.registerVisitor("a:theme",new lt,"themeElements/clrScheme"),this.registerVisitor("a:theme",new at,"themeElements/fontScheme"),this.registerVisitor("autoFilter",new ut),this.registerVisitor("sortState",new ht),this.registerVisitor("s:workbook",new gt),this.registerVisitor("styleSheet",new pt),this.registerVisitor("table",new dt),this.registerVisitor("hlinkClick",new ct),this.registerVisitor("wsDr",new mt),this.registerVisitor("twoCellAnchor",new x),this.registerVisitor("oneCellAnchor",new x),this.registerVisitor("absoluteAnchor",new x),this.registerVisitor("graphicFrame",new bt),this.registerVisitor("sp",new B),this.registerVisitor("grpSp",new At),this.registerVisitor("cxnSp",new yt),this.registerVisitor("pic",new ft),this.registerVisitor("rvStructures",new vt),this.registerVisitor("rvData",new Ft),this.registerVisitor("comments",new Ct),this.registerVisitor("commentList",new wt,"comment"),this.registerVisitor("comment",new F("content"),"text"),this.registerVisitor("ThreadedComments",new Pt),this.registerVisitor("threadedComment",new Nt),this.registerVisitor("threadedComment",new F("content"),"text"),this.registerVisitor("personList",new Ot)}registerVisitor(t,e,s=null){t.indexOf(":")===-1&&(t="*:"+t);const r=t.split(":"),o=r.length>1?r[1]:r[0];if(!s)return this.visitorsByXmlTagName.set(o,e),void this.visitorsByXmlTagName.set(t,e);let i=this.scopedVisitorsByXmlTagName.get(o);i||(i=[],this.scopedVisitorsByXmlTagName.set(o,i),this.scopedVisitorsByXmlTagName.set(t,i)),i.push(new Vt(s,e))}getVisitorParamsState(){return this.visitorParamsState}convert(t,e,s=Tt){const r=t.documentElement;this.visitorParamsState&&!s?.paramMap||(this.visitorParamsState=s?.paramMap??new Map);const o={};let i=this.visitorsByXmlTagName.get(r.nodeName);if(i||(i=this.visitorsByXmlTagName.get(r.localName)),!i)throw new Error(`A visitor for the root element: '${r.nodeName}' or '${r.localName}' must be registered.`);const n="/"+r.localName,l=new V(null,this,n,r,o,e,s),a=[];this._doWalk(i,l,a,r,o,e,s);for(let c=0;c<a.length;c++){const h=a[c];try{h.visitor?.afterVisit?.(h.context,h.elemParent,h.jsonParent)}catch(d){console.warn(`Error in afterVisit: ${h.context.getPath()}`,d)}}return o}_walkScoped(t,e,s,r,o,i,n){const l=this.scopedVisitorsByXmlTagName.get(t);for(let a=0;l&&a<l.length;a++){const c=l[a];let h=null;try{h=e.evaluate(c.path,r)}catch{console.warn(`"Invalid path '${c.path}' for '${t}'.`)}if(!h)continue;const d=m=>{let b=m.localName,v=m.parentNode;for(;v&&v!==r;)b=v.localName+"/"+b,v=v.parentNode;const P=e.getPath()+"/"+b;if(c.visitor){const T=new V(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(c.visitor,T,s,m,o,i,n)}};if(h.length>0){const m=h;for(let b=0;b<m.length;b++)d(m.item(b))}else d(h)}}_doWalk(t,e,s,r,o,i,n){let l=null;t&&(s.push({visitor:t,context:e,elemParent:r,jsonParent:o}),l=t.visit(e,r,o)),l||(l=o);const a=r.localName;this._walkScoped(a,e,s,r,l,i,n);const c=r.childNodes;for(let h=0;h<c.length;h++){const d=c.item(h);if(d.nodeType===1){const m=d,b=m.localName,v=this.visitorsByXmlTagName.get(b),P=e.getPath()+"/"+b,T=new V(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(v,T,s,m,l??o,i,n)}}return l}}exports.FromOOXMLConverter=E,exports.default=E;
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./BUiD3JsC13sWCk3V.cjs");exports.SheetXL=e.SheetXL,exports.default=e.SheetXL;
6
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./CKsnAbXU6k12MtqJ.cjs");exports.SheetXL=e.SheetXL,exports.default=e.SheetXL;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,9 +1,9 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./BUiD3JsC13sWCk3V.cjs"),Gt=f.reactExports.createContext(),At=f.reactExports.createContext();function Wt(o){return f.generateUtilityClass("MuiTableCell",o)}const Ht=f.generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jt=f.styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,e[t.variant],e[`size${f.capitalize(t.size)}`],t.padding!=="normal"&&e[`padding${f.capitalize(t.padding)}`],t.align!=="inherit"&&e[`align${f.capitalize(t.align)}`],t.stickyHeader&&e.stickyHeader]}})(f.memoTheme(({theme:o})=>({...o.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:o.vars?`1px solid ${o.vars.palette.TableCell.border}`:`1px solid
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./CKsnAbXU6k12MtqJ.cjs"),Gt=f.reactExports.createContext(),At=f.reactExports.createContext();function Wt(o){return f.generateUtilityClass("MuiTableCell",o)}const Ht=f.generateUtilityClasses("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jt=f.styled("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,e[t.variant],e[`size${f.capitalize(t.size)}`],t.padding!=="normal"&&e[`padding${f.capitalize(t.padding)}`],t.align!=="inherit"&&e[`align${f.capitalize(t.align)}`],t.stickyHeader&&e.stickyHeader]}})(f.memoTheme(({theme:o})=>({...o.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:o.vars?`1px solid ${o.vars.palette.TableCell.border}`:`1px solid
7
7
  ${o.palette.mode==="light"?f.lighten(f.alpha(o.palette.divider,1),.88):f.darken(f.alpha(o.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(o.vars||o).palette.text.primary,lineHeight:o.typography.pxToRem(24),fontWeight:o.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(o.vars||o).palette.text.primary}},{props:{variant:"footer"},style:{color:(o.vars||o).palette.text.secondary,lineHeight:o.typography.pxToRem(21),fontSize:o.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Ht.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:(o.vars||o).palette.background.default}}]}))),Re=f.reactExports.forwardRef(function(o,e){const t=f.useDefaultProps({props:o,name:"MuiTableCell"}),{align:r="inherit",className:n,component:i,padding:l,scope:a,size:s,sortDirection:c,variant:d,...h}=t,p=f.reactExports.useContext(Gt),u=f.reactExports.useContext(At),S=u&&u.variant==="head";let m;m=i||(S?"th":"td");let v=a;m==="td"?v=void 0:!v&&S&&(v="col");const y=d||u&&u.variant,x={...t,align:r,component:m,padding:l||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&p&&p.stickyHeader,variant:y},_=(C=>{const{classes:R,variant:b,align:z,padding:T,size:k,stickyHeader:O}=C,P={root:["root",b,O&&"stickyHeader",z!=="inherit"&&`align${f.capitalize(z)}`,T!=="normal"&&`padding${f.capitalize(T)}`,`size${f.capitalize(k)}`]};return f.composeClasses(P,Wt,R)})(x);let w=null;return c&&(w=c==="asc"?"ascending":"descending"),f.jsxRuntimeExports.jsx(jt,{as:m,ref:e,className:f.clsx(_.root,n),"aria-sort":w,scope:v,ownerState:x,...h})});function E(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function $(o){return($=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(o)}function nt(o){var e=(function(t){if($(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,"string");if($(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)})(o);return $(e)=="symbol"?e:e+""}function be(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,nt(r.key),r)}}function L(o,e,t){return e&&be(o.prototype,e),t&&be(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function A(o,e){if(e&&($(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t})(o)}function I(o){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(o)}function W(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&f.Zn(o,e)}function g(o,e,t){return(e=nt(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function it(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function lt(o){this.setState(function(e){return this.constructor.getDerivedStateFromProps(o,e)??null}.bind(this))}function st(o,e){try{var t=this.props,r=this.state;this.props=o,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(t,r)}finally{this.props=t,this.state=r}}function re(o){var e=o.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return o;var t=null,r=null,n=null;if(typeof e.componentWillMount=="function"?t="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(t="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?n="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),t!==null||r!==null||n!==null){var i=o.displayName||o.name,l=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
8
8
 
9
9
  `+i+" uses "+l+" but also contains the following legacy lifecycles:"+(t!==null?`
@@ -16,4 +16,4 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStat
16
16
  x:`).concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));s=Math.max(s,h.y+h.height),c=Math.max(c,h.x+h.width),l[d]=h,a.registerCell({cellMetadatum:h,index:d})}return{cellMetadata:l,height:s,sectionManager:a,width:c}})({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,r=e.cellIndex,n=e.height,i=e.scrollLeft,l=e.scrollTop,a=e.width,s=this.props.cellCount;if(r>=0&&r<s){var c=this._cellMetadata[r];i=Ee({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:i}),l=Ee({align:t,cellOffset:c.y,cellSize:c.height,containerSize:n,currentOffset:l})}return{scrollLeft:i,scrollTop:l}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,r=e.height,n=e.isScrolling,i=e.width,l=e.x,a=e.y,s=this.props,c=s.cellGroupRenderer,d=s.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:r,width:i,x:l,y:a}),c({cellCache:this._cellCache,cellRenderer:d,cellSizeAndPositionGetter:function(h){var p=h.index;return t._sectionManager.getCellMetadata({index:p})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}])})();function gt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gt=function(){return!!o})()}function Ge(o){var e=o.cellCount,t=o.cellSize,r=o.computeMetadataCallback,n=o.computeMetadataCallbackProps,i=o.nextCellsCount,l=o.nextCellSize,a=o.nextScrollToIndex,s=o.scrollToIndex,c=o.updateScrollOffsetForScrollToIndex;e===i&&(typeof t!="number"&&typeof l!="number"||t===l)||(r(n),s>=0&&s===a&&c())}function J(o,e){if(o==null)return{};var t,r,n=f.ol(o,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}g(Le,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(o){var e=o.cellCache,t=o.cellRenderer,r=o.cellSizeAndPositionGetter,n=o.indices,i=o.isScrolling;return n.map(function(l){var a=r({index:l}),s={index:l,isScrolling:i,key:l,style:{height:a.height,left:a.x,position:"absolute",top:a.y,width:a.width}};return i?(l in e||(e[l]=t(s)),e[l]):t(s)}).filter(function(l){return!!l})}}),Le.propTypes={},(function(){function o(e,t){var r,n,i,l;return E(this,o),n=this,l=[e,t],i=I(i=o),(r=A(n,gt()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l)))._registerChild=r._registerChild.bind(r),r}return W(o,f.reactExports.PureComponent),L(o,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.columnMaxWidth,n=t.columnMinWidth,i=t.columnCount,l=t.width;r===e.columnMaxWidth&&n===e.columnMinWidth&&i===e.columnCount&&l===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.columnMaxWidth,n=e.columnMinWidth,i=e.columnCount,l=e.width,a=n||1,s=r?Math.min(r,l):l,c=l/i;return c=Math.max(a,c),c=Math.min(s,c),c=Math.floor(c),t({adjustedWidth:Math.min(l,c*i),columnWidth:c,getColumnWidth:function(){return c},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&typeof e.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])})().propTypes={};var D,Ut=L(function o(e){var t=e.cellCount,r=e.cellSizeGetter,n=e.estimatedCellSize;E(this,o),g(this,"_cellSizeAndPositionData",{}),g(this,"_lastMeasuredIndex",-1),g(this,"_lastBatchedIndex",-1),g(this,"_cellCount",void 0),g(this,"_cellSizeGetter",void 0),g(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=t,this._estimatedCellSize=n},[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(o){var e=o.cellCount,t=o.estimatedCellSize,r=o.cellSizeGetter;this._cellCount=e,this._estimatedCellSize=t,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(o){if(o<0||o>=this._cellCount)throw Error("Requested index ".concat(o," is outside of range 0..").concat(this._cellCount));if(o>this._lastMeasuredIndex)for(var e=this.getSizeAndPositionOfLastMeasuredCell(),t=e.offset+e.size,r=this._lastMeasuredIndex+1;r<=o;r++){var n=this._cellSizeGetter({index:r});if(n===void 0||isNaN(n))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(n));n===null?(this._cellSizeAndPositionData[r]={offset:t,size:0},this._lastBatchedIndex=o):(this._cellSizeAndPositionData[r]={offset:t,size:n},t+=n,this._lastMeasuredIndex=o)}return this._cellSizeAndPositionData[o]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var o=this.getSizeAndPositionOfLastMeasuredCell();return o.offset+o.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,r=o.containerSize,n=o.currentOffset,i=o.targetIndex;if(r<=0)return 0;var l,a=this.getSizeAndPositionOfCell(i),s=a.offset,c=s-r+a.size;switch(t){case"start":l=s;break;case"end":l=c;break;case"center":l=s-(r-a.size)/2;break;default:l=Math.max(c,Math.min(s,n))}var d=this.getTotalSize();return Math.max(0,Math.min(d-r,l))}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;if(this.getTotalSize()===0)return{};var r=t+e,n=this._findNearestCell(t),i=this.getSizeAndPositionOfCell(n);t=i.offset+i.size;for(var l=n;t<r&&l<this._cellCount-1;)l++,t+=this.getSizeAndPositionOfCell(l).size;return{start:n,stop:l}}},{key:"resetCell",value:function(o){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,o-1)}},{key:"_binarySearch",value:function(o,e,t){for(;e<=o;){var r=e+Math.floor((o-e)/2),n=this.getSizeAndPositionOfCell(r).offset;if(n===t)return r;n<t?e=r+1:n>t&&(o=r-1)}return e>0?e-1:0}},{key:"_exponentialSearch",value:function(o,e){for(var t=1;o<this._cellCount&&this.getSizeAndPositionOfCell(o).offset<e;)o+=t,t*=2;return this._binarySearch(Math.min(o,this._cellCount-1),Math.floor(o/2),e)}},{key:"_findNearestCell",value:function(o){if(isNaN(o))throw Error("Invalid offset ".concat(o," specified"));o=Math.max(0,o);var e=this.getSizeAndPositionOfLastMeasuredCell(),t=Math.max(0,this._lastMeasuredIndex);return e.offset>=o?this._binarySearch(t,0,o):this._exponentialSearch(t,o)}}]),Vt=["maxScrollSize"],Ae=L(function o(e){var t=e.maxScrollSize,r=t===void 0?typeof window<"u"&&window.chrome?16777100:15e5:t,n=J(e,Vt);E(this,o),g(this,"_cellSizeAndPositionManager",void 0),g(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Ut(n),this._maxScrollSize=r},[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(o){this._cellSizeAndPositionManager.configure(o)}},{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(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(i*(n-r))}},{key:"getSizeAndPositionOfCell",value:function(o){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(o)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(o){var e=o.align,t=e===void 0?"auto":e,r=o.containerSize,n=o.currentOffset,i=o.targetIndex;n=this._safeOffsetToOffset({containerSize:r,offset:n});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:r,currentOffset:n,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:l})}},{key:"getVisibleCellRange",value:function(o){var e=o.containerSize,t=o.offset;return t=this._safeOffsetToOffset({containerSize:e,offset:t}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:e,offset:t})}},{key:"resetCell",value:function(o){this._cellSizeAndPositionManager.resetCell(o)}},{key:"_getOffsetPercentage",value:function(o){var e=o.containerSize,t=o.offset,r=o.totalSize;return r<=e?0:t/(r-e)}},{key:"_offsetToSafeOffset",value:function(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return t;var i=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:r});return Math.round(i*(n-e))}},{key:"_safeOffsetToOffset",value:function(o){var e=o.containerSize,t=o.offset,r=this._cellSizeAndPositionManager.getTotalSize(),n=this.getTotalSize();if(r===n)return t;var i=this._getOffsetPercentage({containerSize:e,offset:t,totalSize:n});return Math.round(i*(r-e))}}]);function We(o){var e=o.cellSize,t=o.cellSizeAndPositionManager,r=o.previousCellsCount,n=o.previousCellSize,i=o.previousScrollToAlignment,l=o.previousScrollToIndex,a=o.previousSize,s=o.scrollOffset,c=o.scrollToAlignment,d=o.scrollToIndex,h=o.size,p=o.sizeJustIncreasedFromZero,u=o.updateScrollIndexCallback,S=t.getCellCount(),m=d>=0&&d<S;m&&(h!==a||p||!n||typeof e=="number"&&e!==n||c!==i||d!==l)?u(d):!m&&S>0&&(h<a||S<r)&&s>t.getTotalSize()-h&&u(S-1)}var $t=(D=typeof window<"u"?window:typeof self<"u"?self:{}).requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||function(o){return D.setTimeout(o,1e3/60)},qt=D.cancelAnimationFrame||D.webkitCancelAnimationFrame||D.mozCancelAnimationFrame||D.oCancelAnimationFrame||D.msCancelAnimationFrame||function(o){D.clearTimeout(o)},He=$t,Kt=qt,K=function(o){return Kt(o.id)},xe=function(o,e){var t;Promise.resolve().then(function(){t=Date.now()});var r=function(){Date.now()-t>=e?o.call():n.id=He(r)},n={id:He(r)};return n};function je(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function H(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?je(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):je(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function mt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mt=function(){return!!o})()}var De="requested",N=(function(){function o(e){var t,r,n,i;E(this,o),r=this,i=[e],n=I(n=o),g(t=A(r,mt()?Reflect.construct(n,i||[],I(r).constructor):n.apply(r,i)),"_onGridRenderedMemoizer",q()),g(t,"_onScrollMemoizer",q(!1)),g(t,"_deferredInvalidateColumnIndex",null),g(t,"_deferredInvalidateRowIndex",null),g(t,"_recomputeScrollLeftFlag",!1),g(t,"_recomputeScrollTopFlag",!1),g(t,"_horizontalScrollBarSize",0),g(t,"_verticalScrollBarSize",0),g(t,"_scrollbarPresenceChanged",!1),g(t,"_scrollingContainer",void 0),g(t,"_childrenToDisplay",void 0),g(t,"_columnStartIndex",void 0),g(t,"_columnStopIndex",void 0),g(t,"_rowStartIndex",void 0),g(t,"_rowStopIndex",void 0),g(t,"_renderedColumnStartIndex",0),g(t,"_renderedColumnStopIndex",0),g(t,"_renderedRowStartIndex",0),g(t,"_renderedRowStopIndex",0),g(t,"_initialScrollTop",void 0),g(t,"_initialScrollLeft",void 0),g(t,"_disablePointerEventsTimeoutId",void 0),g(t,"_styleCache",{}),g(t,"_cellCache",{}),g(t,"_debounceScrollEndedCallback",function(){t._disablePointerEventsTimeoutId=null,t.setState({isScrolling:!1,needToResetStyleCache:!1})}),g(t,"_invokeOnGridRenderedHelper",function(){var s=t.props.onSectionRendered;t._onGridRenderedMemoizer({callback:s,indices:{columnOverscanStartIndex:t._columnStartIndex,columnOverscanStopIndex:t._columnStopIndex,columnStartIndex:t._renderedColumnStartIndex,columnStopIndex:t._renderedColumnStopIndex,rowOverscanStartIndex:t._rowStartIndex,rowOverscanStopIndex:t._rowStopIndex,rowStartIndex:t._renderedRowStartIndex,rowStopIndex:t._renderedRowStopIndex}})}),g(t,"_setScrollingContainerRef",function(s){t._scrollingContainer=s,typeof t.props.elementRef=="function"?t.props.elementRef(s):$(t.props.elementRef)==="object"&&(t.props.elementRef.current=s)}),g(t,"_onScroll",function(s){s.target===t._scrollingContainer&&t.handleScrollEvent(s.target)});var l=new Ae({cellCount:e.columnCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.columnWidth)(s)},estimatedCellSize:o._getEstimatedColumnSize(e)}),a=new Ae({cellCount:e.rowCount,cellSizeGetter:function(s){return o._wrapSizeGetter(e.rowHeight)(s)},estimatedCellSize:o._getEstimatedRowSize(e)});return t.state={instanceProps:{columnSizeAndPositionManager:l,rowSizeAndPositionManager:a,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:e.isScrolling===!0,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(t._initialScrollTop=t._getCalculatedScrollTop(e,t.state)),e.scrollToColumn>0&&(t._initialScrollLeft=t._getCalculatedScrollLeft(e,t.state)),t}return W(o,f.reactExports.PureComponent),L(o,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.alignment,r=t===void 0?this.props.scrollToAlignment:t,n=e.columnIndex,i=n===void 0?this.props.scrollToColumn:n,l=e.rowIndex,a=l===void 0?this.props.scrollToRow:l,s=H(H({},this.props),{},{scrollToAlignment:r,scrollToColumn:i,scrollToRow:a});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,r=t===void 0?0:t,n=e.scrollTop,i=n===void 0?0:n;if(!(i<0)){this._debounceScrollEnded();var l=this.props,a=l.autoHeight,s=l.autoWidth,c=l.height,d=l.width,h=this.state.instanceProps,p=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),S=h.columnSizeAndPositionManager.getTotalSize(),m=Math.min(Math.max(0,S-d+p),r),v=Math.min(Math.max(0,u-c+p),i);if(this.state.scrollLeft!==m||this.state.scrollTop!==v){var y={isScrolling:!0,scrollDirectionHorizontal:m!==this.state.scrollLeft?m>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:v!==this.state.scrollTop?v>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};a||(y.scrollTop=v),s||(y.scrollLeft=m),y.needToResetStyleCache=!1,this.setState(y)}this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:v,totalColumnsWidth:S,totalRowsHeight:u})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,r=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(r-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,i=n===void 0?0:n,l=this.props,a=l.scrollToColumn,s=l.scrollToRow,c=this.state.instanceProps;c.columnSizeAndPositionManager.resetCell(r),c.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===1?r<=a:r>=a),this._recomputeScrollTopFlag=s>=0&&(this.state.scrollDirectionVertical===1?i<=s:i>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,r=e.rowIndex,n=this.props.columnCount,i=this.props;n>1&&t!==void 0&&this._updateScrollLeftForScrollToColumn(H(H({},i),{},{scrollToColumn:t})),r!==void 0&&this._updateScrollTopForScrollToRow(H(H({},i),{},{scrollToRow:r}))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.getScrollbarSize,r=e.height,n=e.scrollLeft,i=e.scrollToColumn,l=e.scrollTop,a=e.scrollToRow,s=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState(function(p){var u=H(H({},p),{},{needToResetStyleCache:!1});return u.instanceProps.scrollbarSize=t(),u.instanceProps.scrollbarSizeMeasured=!0,u}),typeof n=="number"&&n>=0||typeof l=="number"&&l>=0){var d=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:l});d&&(d.needToResetStyleCache=!1,this.setState(d))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var h=r>0&&s>0;i>=0&&h&&this._updateScrollLeftForScrollToColumn(),a>=0&&h&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:l||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var r=this,n=this.props,i=n.autoHeight,l=n.autoWidth,a=n.columnCount,s=n.height,c=n.rowCount,d=n.scrollToAlignment,h=n.scrollToColumn,p=n.scrollToRow,u=n.width,S=this.state,m=S.scrollLeft,v=S.scrollPositionChangeReason,y=S.scrollTop,x=S.instanceProps;this._handleInvalidatedGridSize();var _=a>0&&e.columnCount===0||c>0&&e.rowCount===0;v===De&&(!l&&m>=0&&(m!==this._scrollingContainer.scrollLeft||_)&&(this._scrollingContainer.scrollLeft=m),!i&&y>=0&&(y!==this._scrollingContainer.scrollTop||_)&&(this._scrollingContainer.scrollTop=y));var w=(e.width===0||e.height===0)&&s>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):We({cellSizeAndPositionManager:x.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:m,scrollToAlignment:d,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return r._updateScrollLeftForScrollToColumn(r.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):We({cellSizeAndPositionManager:x.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:y,scrollToAlignment:d,scrollToIndex:p,size:s,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return r._updateScrollTopForScrollToRow(r.props)}}),this._invokeOnGridRenderedHelper(),m!==t.scrollLeft||y!==t.scrollTop){var C=x.rowSizeAndPositionManager.getTotalSize(),R=x.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:m,scrollTop:y,totalColumnsWidth:R,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&K(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,r=e.autoHeight,n=e.autoWidth,i=e.className,l=e.containerProps,a=e.containerRole,s=e.containerStyle,c=e.height,d=e.id,h=e.noContentRenderer,p=e.role,u=e.style,S=e.tabIndex,m=e.width,v=this.state,y=v.instanceProps,x=v.needToResetStyleCache,_=this._isScrolling(),w={boxSizing:"border-box",direction:"ltr",height:r?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};x&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=y.columnSizeAndPositionManager.getTotalSize(),R=y.rowSizeAndPositionManager.getTotalSize(),b=R>c?y.scrollbarSize:0,z=C>m?y.scrollbarSize:0;z===this._horizontalScrollBarSize&&b===this._verticalScrollBarSize||(this._horizontalScrollBarSize=z,this._verticalScrollBarSize=b,this._scrollbarPresenceChanged=!0),w.overflowX=C+b<=m?"hidden":"auto",w.overflowY=R+z<=c?"hidden":"auto";var T=this._childrenToDisplay,k=T.length===0&&c>0&&m>0;return f.reactExports.createElement("div",f.Yn({ref:this._setScrollingContainerRef},l,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:f.Wt("ReactVirtualized__Grid",i),id:d,onScroll:this._onScroll,role:p,style:H(H({},w),u),tabIndex:S}),T.length>0&&f.reactExports.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:H({width:t?"auto":C,height:R,maxWidth:C,maxHeight:R,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"},s)},T),k&&h())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,r=e.cellRenderer,n=e.cellRangeRenderer,i=e.columnCount,l=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,c=e.overscanIndicesGetter,d=e.overscanRowCount,h=e.rowCount,p=e.width,u=e.isScrollingOptOut,S=t.scrollDirectionHorizontal,m=t.scrollDirectionVertical,v=t.instanceProps,y=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,x=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,_=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&p>0){var w=v.columnSizeAndPositionManager.getVisibleCellRange({containerSize:p,offset:x}),C=v.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:y}),R=v.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:p,offset:x}),b=v.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:y});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var z=c({direction:"horizontal",cellCount:i,overscanCellsCount:s,scrollDirection:S,startIndex:typeof w.start=="number"?w.start:0,stopIndex:typeof w.stop=="number"?w.stop:-1}),T=c({direction:"vertical",cellCount:h,overscanCellsCount:d,scrollDirection:m,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),k=z.overscanStartIndex,O=z.overscanStopIndex,P=T.overscanStartIndex,G=T.overscanStopIndex;if(l){if(!l.hasFixedHeight()){for(var j=P;j<=G;j++)if(!l.has(j,0)){k=0,O=i-1;break}}if(!l.hasFixedWidth()){for(var ae=k;ae<=O;ae++)if(!l.has(0,ae)){P=0,G=h-1;break}}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:r,columnSizeAndPositionManager:v.columnSizeAndPositionManager,columnStartIndex:k,columnStopIndex:O,deferredMeasurementCache:l,horizontalOffsetAdjustment:R,isScrolling:_,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:v.rowSizeAndPositionManager,rowStartIndex:P,rowStopIndex:G,scrollLeft:x,scrollTop:y,styleCache:this._styleCache,verticalOffsetAdjustment:b,visibleColumnIndices:w,visibleRowIndices:C}),this._columnStartIndex=k,this._columnStopIndex=O,this._rowStartIndex=P,this._rowStopIndex=G}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&K(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=xe(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){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,r=e.scrollLeft,n=e.scrollTop,i=e.totalColumnsWidth,l=e.totalRowsHeight;this._onScrollMemoizer({callback:function(a){var s=a.scrollLeft,c=a.scrollTop,d=t.props,h=d.height;(0,d.onScroll)({clientHeight:h,clientWidth:d.width,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:i})},indices:{scrollLeft:r,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?!!e.isScrolling:!!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 t=e.scrollLeft,r=e.scrollTop,n=o._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:t,scrollTop:r});n&&(n.needToResetStyleCache=!1,this.setState(n))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return o._getCalculatedScrollLeft(e,t)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,r=o._getScrollLeftForScrollToColumnStateUpdate(e,t);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return o._getCalculatedScrollTop(e,t)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,r=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var l="".concat(n,"-").concat(i);this._styleCache[l]=e[l],r&&(this._cellCache[l]=t[l])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,r=o._getScrollTopForScrollToRowStateUpdate(e,t);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r={};e.columnCount===0&&t.scrollLeft!==0||e.rowCount===0&&t.scrollTop!==0?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==t.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==t.scrollTop&&e.scrollToRow<0)&&Object.assign(r,o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var n,i,l=t.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(r.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:o._getEstimatedColumnSize(e),cellSizeGetter:o._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:o._getEstimatedRowSize(e),cellSizeGetter:o._wrapSizeGetter(e.rowHeight)}),l.prevColumnCount!==0&&l.prevRowCount!==0||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&e.isScrolling===!1&&l.prevIsScrolling===!0&&Object.assign(r,{isScrolling:!1}),Ge({cellCount:l.prevColumnCount,cellSize:typeof l.prevColumnWidth=="number"?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:typeof e.columnWidth=="number"?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){n=o._getScrollLeftForScrollToColumnStateUpdate(e,t)}}),Ge({cellCount:l.prevRowCount,cellSize:typeof l.prevRowHeight=="number"?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:typeof e.rowHeight=="number"?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=o._getScrollTopForScrollToRowStateUpdate(e,t)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=e.isScrolling===!0,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),l.scrollbarSize===void 0?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,r.instanceProps=l,H(H(H({},r),n),i)}},{key:"_getEstimatedColumnSize",value:function(e){return typeof e.columnWidth=="number"?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return typeof e.rowHeight=="number"?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,r=e.scrollLeft,n=e.scrollTop,i={scrollPositionChangeReason:De};return typeof r=="number"&&r>=0&&(i.scrollDirectionHorizontal=r>t.scrollLeft?1:-1,i.scrollLeft=r),typeof n=="number"&&n>=0&&(i.scrollDirectionVertical=n>t.scrollTop?1:-1,i.scrollTop=n),typeof r=="number"&&r>=0&&r!==t.scrollLeft||typeof n=="number"&&n>=0&&n!==t.scrollTop?i:{}}},{key:"_wrapSizeGetter",value:function(e){return typeof e=="function"?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var r=e.columnCount,n=e.height,i=e.scrollToAlignment,l=e.scrollToColumn,a=e.width,s=t.scrollLeft,c=t.instanceProps;if(r>0){var d=r-1,h=l<0?d:Math.min(d,l),p=c.rowSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&p>n?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:a-u,currentOffset:s,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,t){var r=t.scrollLeft,n=o._getCalculatedScrollLeft(e,t);return typeof n=="number"&&n>=0&&r!==n?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:n,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var r=e.height,n=e.rowCount,i=e.scrollToAlignment,l=e.scrollToRow,a=e.width,s=t.scrollTop,c=t.instanceProps;if(n>0){var d=n-1,h=l<0?d:Math.min(d,l),p=c.columnSizeAndPositionManager.getTotalSize(),u=c.scrollbarSizeMeasured&&p>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:r-u,currentOffset:s,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,t){var r=t.scrollTop,n=o._getCalculatedScrollTop(e,t);return typeof n=="number"&&n>=0&&r!==n?o._getScrollToPositionStateUpdate({prevState:t,scrollLeft:-1,scrollTop:n}):{}}}])})();function vt(o){var e=o.cellCount,t=o.overscanCellsCount,r=o.scrollDirection,n=o.startIndex,i=o.stopIndex;return t=Math.max(1,t),r===1?{overscanStartIndex:Math.max(0,n-1),overscanStopIndex:Math.min(e-1,i+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,i+1)}}function fe(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function _t(o,e){if(o){if(typeof o=="string")return fe(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?fe(o,e):void 0}}function St(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(St=function(){return!!o})()}g(N,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(o){for(var e=o.cellCache,t=o.cellRenderer,r=o.columnSizeAndPositionManager,n=o.columnStartIndex,i=o.columnStopIndex,l=o.deferredMeasurementCache,a=o.horizontalOffsetAdjustment,s=o.isScrolling,c=o.isScrollingOptOut,d=o.parent,h=o.rowSizeAndPositionManager,p=o.rowStartIndex,u=o.rowStopIndex,S=o.styleCache,m=o.verticalOffsetAdjustment,v=o.visibleColumnIndices,y=o.visibleRowIndices,x=[],_=r.areOffsetsAdjusted()||h.areOffsetsAdjusted(),w=!s&&!_,C=p;C<=u;C++)for(var R=h.getSizeAndPositionOfCell(C),b=n;b<=i;b++){var z=r.getSizeAndPositionOfCell(b),T=b>=v.start&&b<=v.stop&&C>=y.start&&C<=y.stop,k="".concat(C,"-").concat(b),O=void 0;w&&S[k]?O=S[k]:l&&!l.has(C,b)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:R.size,left:z.offset+a,position:"absolute",top:R.offset+m,width:z.size},S[k]=O);var P={columnIndex:b,isScrolling:s,isVisible:T,key:k,parent:d,rowIndex:C,style:O},G=void 0;!c&&!s||a||m?G=t(P):(e[k]||(e[k]=t(P)),G=e[k]),G!=null&&G!==!1&&(G.props.role||(G=f.mt.cloneElement(G,{role:"gridcell"})),x.push(G))}return x},containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:pe,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(o){var e=o.cellCount,t=o.overscanCellsCount,r=o.scrollDirection,n=o.startIndex,i=o.stopIndex;return r===1?{overscanStartIndex:Math.max(0,n),overscanStopIndex:Math.min(e-1,i+t)}:{overscanStartIndex:Math.max(0,n-t),overscanStopIndex:Math.min(e-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),re(N);var Fe=(function(){function o(e,t){var r,n,i,l;return E(this,o),n=this,l=[e,t],i=I(i=o),(r=A(n,St()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l)))._loadMoreRowsMemoizer=q(),r._onRowsRendered=r._onRowsRendered.bind(r),r._registerChild=r._registerChild.bind(r),r}return W(o,f.reactExports.PureComponent),L(o,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=q(),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,r=this.props.loadMoreRows;e.forEach(function(n){var i=r(n);i&&i.then(function(){var l;(l={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:n.startIndex,stopIndex:n.stopIndex}).startIndex>l.lastRenderedStopIndex||l.stopIndex<l.lastRenderedStartIndex||t._registeredChild&&(function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=typeof a.recomputeGridSize=="function"?a.recomputeGridSize:a.recomputeRowHeights;c?c.call(a,s):a.forceUpdate()})(t._registeredChild,t._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,r=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=r,this._doStuff(t,r)}},{key:"_doStuff",value:function(e,t){var r,n=this,i=this.props,l=i.isRowLoaded,a=i.minimumBatchSize,s=i.rowCount,c=i.threshold,d=(function(p){for(var u=p.isRowLoaded,S=p.minimumBatchSize,m=p.rowCount,v=p.stopIndex,y=[],x=null,_=null,w=p.startIndex;w<=v;w++)u({index:w})?_!==null&&(y.push({startIndex:x,stopIndex:_}),x=_=null):(_=w,x===null&&(x=w));if(_!==null){for(var C=Math.min(Math.max(_,x+S-1),m-1),R=_+1;R<=C&&!u({index:R});R++)_=R;y.push({startIndex:x,stopIndex:_})}if(y.length)for(var b=y[0];b.stopIndex-b.startIndex+1<S&&b.startIndex>0;){var z=b.startIndex-1;if(u({index:z}))break;b.startIndex=z}return y})({isRowLoaded:l,minimumBatchSize:a,rowCount:s,startIndex:Math.max(0,e-c),stopIndex:Math.min(s-1,t+c)}),h=(r=[]).concat.apply(r,(function(p){return(function(u){if(Array.isArray(u))return fe(u)})(p)||(function(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)})(p)||_t(p)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
17
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(d.map(function(p){return[p.startIndex,p.stopIndex]})));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(d)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}])})();function yt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yt=function(){return!!o})()}g(Fe,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Fe.propTypes={};var Yt=(function(){function o(){var e,t,r,n;E(this,o);for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return t=this,r=o,n=[].concat(l),r=I(r),g(e=A(t,yt()?Reflect.construct(r,n||[],I(t).constructor):r.apply(t,n)),"Grid",void 0),g(e,"_cellRenderer",function(s){var c=s.parent,d=s.rowIndex,h=s.style,p=s.isScrolling,u=s.isVisible,S=s.key,m=e.props.rowRenderer,v=Object.getOwnPropertyDescriptor(h,"width");return v&&v.writable&&(h.width="100%"),m({index:d,style:h,isScrolling:p,isVisible:u,key:S,parent:c})}),g(e,"_setRef",function(s){e.Grid=s}),g(e,"_onScroll",function(s){var c=s.clientHeight,d=s.scrollHeight,h=s.scrollTop;(0,e.props.onScroll)({clientHeight:c,scrollHeight:d,scrollTop:h})}),g(e,"_onSectionRendered",function(s){var c=s.rowOverscanStartIndex,d=s.rowOverscanStopIndex,h=s.rowStartIndex,p=s.rowStopIndex;(0,e.props.onRowsRendered)({overscanStartIndex:c,overscanStopIndex:d,startIndex:h,stopIndex:p})}),e}return W(o,f.reactExports.PureComponent),L(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,i=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.noRowsRenderer,n=e.scrollToIndex,i=e.width,l=f.Wt("ReactVirtualized__List",t);return f.reactExports.createElement(N,f.Yn({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:l,columnWidth:i,columnCount:1,noContentRenderer:r,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}])})();g(Yt,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:vt,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const ie=function(o,e,t,r,n){return typeof t=="function"?(function(i,l,a,s,c){for(var d=a+1;l<=a;){var h=l+a>>>1;c(i[h],s)>=0?(d=h,a=h-1):l=h+1}return d})(o,r===void 0?0:0|r,n===void 0?o.length-1:0|n,e,t):(function(i,l,a,s){for(var c=a+1;l<=a;){var d=l+a>>>1;i[d]>=s?(c=d,a=d-1):l=d+1}return c})(o,t===void 0?0:0|t,r===void 0?o.length-1:0|r,e)};function we(o,e,t,r,n){this.mid=o,this.left=e,this.right=t,this.leftPoints=r,this.rightPoints=n,this.count=(e?e.count:0)+(t?t.count:0)+r.length}var X=we.prototype;function ce(o,e){o.mid=e.mid,o.left=e.left,o.right=e.right,o.leftPoints=e.leftPoints,o.rightPoints=e.rightPoints,o.count=e.count}function xt(o,e){var t=te(e);o.mid=t.mid,o.left=t.left,o.right=t.right,o.leftPoints=t.leftPoints,o.rightPoints=t.rightPoints,o.count=t.count}function Ne(o,e){var t=o.intervals([]);t.push(e),xt(o,t)}function Be(o,e){var t=o.intervals([]),r=t.indexOf(e);return r<0?0:(t.splice(r,1),xt(o,t),1)}function Ue(o,e,t){for(var r=0;r<o.length&&o[r][0]<=e;++r){var n=t(o[r]);if(n)return n}}function Ve(o,e,t){for(var r=o.length-1;r>=0&&o[r][1]>=e;--r){var n=t(o[r]);if(n)return n}}function $e(o,e){for(var t=0;t<o.length;++t){var r=e(o[t]);if(r)return r}}function Xt(o,e){return o-e}function ge(o,e){return o[0]-e[0]||o[1]-e[1]}function me(o,e){return o[1]-e[1]||o[0]-e[0]}function te(o){if(o.length===0)return null;for(var e=[],t=0;t<o.length;++t)e.push(o[t][0],o[t][1]);e.sort(Xt);var r=e[e.length>>1],n=[],i=[],l=[];for(t=0;t<o.length;++t){var a=o[t];a[1]<r?n.push(a):r<a[0]?i.push(a):l.push(a)}var s=l,c=l.slice();return s.sort(ge),c.sort(me),new we(r,te(n),te(i),s,c)}function wt(o){this.root=o}X.intervals=function(o){return o.push.apply(o,this.leftPoints),this.left&&this.left.intervals(o),this.right&&this.right.intervals(o),o},X.insert=function(o){var e=this.count-this.leftPoints.length;if(this.count+=1,o[1]<this.mid)this.left?4*(this.left.count+1)>3*(e+1)?Ne(this,o):this.left.insert(o):this.left=te([o]);else if(o[0]>this.mid)this.right?4*(this.right.count+1)>3*(e+1)?Ne(this,o):this.right.insert(o):this.right=te([o]);else{var t=ie(this.leftPoints,o,ge),r=ie(this.rightPoints,o,me);this.leftPoints.splice(t,0,o),this.rightPoints.splice(r,0,o)}},X.remove=function(o){var e=this.count-this.leftPoints;if(o[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(e-1)?Be(this,o):(i=this.left.remove(o))===2?(this.left=null,this.count-=1,1):(i===1&&(this.count-=1),i):0;if(o[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(e-1)?Be(this,o):(i=this.right.remove(o))===2?(this.right=null,this.count-=1,1):(i===1&&(this.count-=1),i):0;if(this.count===1)return this.leftPoints[0]===o?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===o){if(this.left&&this.right){for(var t=this,r=this.left;r.right;)t=r,r=r.right;if(t===this)r.right=this.right;else{var n=this.left,i=this.right;t.count-=r.count,t.right=r.left,r.left=n,r.right=i}ce(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ce(this,this.left):ce(this,this.right);return 1}for(n=ie(this.leftPoints,o,ge);n<this.leftPoints.length&&this.leftPoints[n][0]===o[0];++n)if(this.leftPoints[n]===o){for(this.count-=1,this.leftPoints.splice(n,1),i=ie(this.rightPoints,o,me);i<this.rightPoints.length&&this.rightPoints[i][1]===o[1];++i)if(this.rightPoints[i]===o)return this.rightPoints.splice(i,1),1}return 0},X.queryPoint=function(o,e){return o<this.mid?this.left&&(t=this.left.queryPoint(o,e))?t:Ue(this.leftPoints,o,e):o>this.mid?this.right&&(t=this.right.queryPoint(o,e))?t:Ve(this.rightPoints,o,e):$e(this.leftPoints,e);var t},X.queryInterval=function(o,e,t){var r;return o<this.mid&&this.left&&(r=this.left.queryInterval(o,e,t))||e>this.mid&&this.right&&(r=this.right.queryInterval(o,e,t))?r:e<this.mid?Ue(this.leftPoints,e,t):o>this.mid?Ve(this.rightPoints,o,t):$e(this.leftPoints,t)};var V=wt.prototype;V.insert=function(o){this.root?this.root.insert(o):this.root=new we(o[0],null,null,[o],[o])},V.remove=function(o){if(this.root){var e=this.root.remove(o);return e===2&&(this.root=null),e!==0}return!1},V.queryPoint=function(o,e){if(this.root)return this.root.queryPoint(o,e)},V.queryInterval=function(o,e,t){if(o<=e&&this.root)return this.root.queryInterval(o,e,t)},Object.defineProperty(V,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(V,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var de=L(function o(){E(this,o),g(this,"_columnSizeMap",{}),g(this,"_intervalTree",new wt(null)),g(this,"_leftMap",{})},[{key:"estimateTotalHeight",value:function(o,e,t){var r=o-this.count;return this.tallestColumnSize+Math.ceil(r/e)*t}},{key:"range",value:function(o,e,t){var r=this;this._intervalTree.queryInterval(o,o+e,function(n){var i=(function(s,c){return(function(d){if(Array.isArray(d))return d})(s)||(function(d,h){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var u,S,m,v,y=[],x=!0,_=!1;try{if(m=(p=p.call(d)).next,h!==0)for(;!(x=(u=m.call(p)).done)&&(y.push(u.value),y.length!==h);x=!0);}catch(w){_=!0,S=w}finally{try{if(!x&&p.return!=null&&(v=p.return(),Object(v)!==v))return}finally{if(_)throw S}}return y}})(s,c)||_t(s,c)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
18
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(n,3),l=i[0];i[1];var a=i[2];return t(a,r._leftMap[a],l)})}},{key:"setPosition",value:function(o,e,t,r){this._intervalTree.insert([t,t+r,o]),this._leftMap[o]=e;var n=this._columnSizeMap,i=n[e];n[e]=i===void 0?t+r:Math.max(i,t+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var r=o[t];e=e===0?r:Math.min(e,r)}return e}},{key:"tallestColumnSize",get:function(){var o=this._columnSizeMap,e=0;for(var t in o){var r=o[t];e=Math.max(e,r)}return e}}]);function qe(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function Jt(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qe(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ct(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ct=function(){return!!o})()}var Ke=(function(){function o(){var e,t,r,n;E(this,o);for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return t=this,r=o,n=[].concat(l),r=I(r),g(e=A(t,Ct()?Reflect.construct(r,n||[],I(t).constructor):r.apply(t,n)),"state",{isScrolling:!1,scrollTop:0}),g(e,"_debounceResetIsScrollingId",void 0),g(e,"_invalidateOnUpdateStartIndex",null),g(e,"_invalidateOnUpdateStopIndex",null),g(e,"_positionCache",new de),g(e,"_startIndex",null),g(e,"_startIndexMemoized",null),g(e,"_stopIndex",null),g(e,"_stopIndexMemoized",null),g(e,"_debounceResetIsScrollingCallback",function(){e.setState({isScrolling:!1})}),g(e,"_setScrollingContainerRef",function(s){e._scrollingContainer=s}),g(e,"_onScroll",function(s){var c=e.props.height,d=s.currentTarget.scrollTop,h=Math.min(Math.max(0,e._getEstimatedTotalHeight()-c),d);d===h&&(e._debounceResetIsScrolling(),e.state.scrollTop!==h&&e.setState({isScrolling:!0,scrollTop:h}))}),e}return W(o,f.reactExports.PureComponent),L(o,[{key:"clearCellPositions",value:function(){this._positionCache=new de,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;this._invalidateOnUpdateStartIndex===null?(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 de,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&&K(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.autoHeight,i=r.cellCount,l=r.cellMeasurerCache,a=r.cellRenderer,s=r.className,c=r.height,d=r.id,h=r.keyMapper,p=r.overscanByPixels,u=r.role,S=r.style,m=r.tabIndex,v=r.width,y=r.rowDirection,x=this.state,_=x.isScrolling,w=x.scrollTop,C=[],R=this._getEstimatedTotalHeight(),b=this._positionCache.shortestColumnSize,z=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,w-p),c+2*p,function(P,G,j){e===void 0?(T=P,e=P):(T=Math.min(T,P),e=Math.max(e,P)),C.push(a({index:P,isScrolling:_,key:h(P),parent:t,style:g(g(g(g({height:l.getHeight(P)},y==="ltr"?"left":"right",G),"position","absolute"),"top",j),"width",l.getWidth(P))}))}),b<w+c+p&&z<i)for(var k=Math.min(i-z,Math.ceil((w+c+p-b)/l.defaultHeight*v/l.defaultWidth)),O=z;O<z+k;O++)e=O,C.push(a({index:O,isScrolling:_,key:h(O),parent:this,style:{width:l.getWidth(O)}}));return this._startIndex=T,this._stopIndex=e,f.reactExports.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:f.Wt("ReactVirtualized__Masonry",s),id:d,onScroll:this._onScroll,role:u,style:Jt({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:R<c?"hidden":"auto",position:"relative",width:v,WebkitOverflowScrolling:"touch",willChange:"transform"},S),tabIndex:m},f.reactExports.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:_?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){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&&K(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=xe(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,r=e.cellMeasurerCache,n=e.width,i=Math.max(1,Math.floor(n/r.defaultWidth));return this._positionCache.estimateTotalHeight(t,i,r.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,r=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(r({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 r=this.props,n=r.cellMeasurerCache,i=r.cellPositioner,l=e;l<=t;l++){var a=i(l),s=a.left,c=a.top;this._positionCache.setPosition(l,s,c,n.getHeight(l))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollTop!==void 0&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}])})();function Ye(){}g(Ke,"defaultProps",{autoHeight:!1,keyMapper:function(o){return o},onCellsRendered:Ye,onScroll:Ye,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),re(Ke);var ue=L(function o(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};E(this,o),g(this,"_cellMeasurerCache",void 0),g(this,"_columnIndexOffset",void 0),g(this,"_rowIndexOffset",void 0),g(this,"columnWidth",function(s){var c=s.index;e._cellMeasurerCache.columnWidth({index:c+e._columnIndexOffset})}),g(this,"rowHeight",function(s){var c=s.index;e._cellMeasurerCache.rowHeight({index:c+e._rowIndexOffset})});var r=t.cellMeasurerCache,n=t.columnIndexOffset,i=n===void 0?0:n,l=t.rowIndexOffset,a=l===void 0?0:l;this._cellMeasurerCache=r,this._columnIndexOffset=i,this._rowIndexOffset=a},[{key:"clear",value:function(o,e){this._cellMeasurerCache.clear(o+this._rowIndexOffset,e+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(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"getWidth",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"has",value:function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(o+this._rowIndexOffset,e+this._columnIndexOffset)}},{key:"set",value:function(o,e,t,r){this._cellMeasurerCache.set(o+this._rowIndexOffset,e+this._columnIndexOffset,t,r)}}]),Zt=["rowIndex"],Qt=["columnIndex","rowIndex"],eo=["columnIndex"],to=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Xe(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function M(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Xe(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Rt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rt=function(){return!!o})()}var he=(function(){function o(e,t){var r,n,i,l;E(this,o),n=this,l=[e,t],i=I(i=o),g(r=A(n,Rt()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l)),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),g(r,"_deferredInvalidateColumnIndex",null),g(r,"_deferredInvalidateRowIndex",null),g(r,"_bottomLeftGridRef",function(d){r._bottomLeftGrid=d}),g(r,"_bottomRightGridRef",function(d){r._bottomRightGrid=d}),g(r,"_cellRendererBottomLeftGrid",function(d){var h=d.rowIndex,p=J(d,Zt),u=r.props,S=u.cellRenderer,m=u.fixedRowCount;return h===u.rowCount-m?f.reactExports.createElement("div",{key:p.key,style:M(M({},p.style),{},{height:20})}):S(M(M({},p),{},{parent:r,rowIndex:h+m}))}),g(r,"_cellRendererBottomRightGrid",function(d){var h=d.columnIndex,p=d.rowIndex,u=J(d,Qt),S=r.props,m=S.cellRenderer,v=S.fixedColumnCount,y=S.fixedRowCount;return m(M(M({},u),{},{columnIndex:h+v,parent:r,rowIndex:p+y}))}),g(r,"_cellRendererTopRightGrid",function(d){var h=d.columnIndex,p=J(d,eo),u=r.props,S=u.cellRenderer,m=u.columnCount,v=u.fixedColumnCount;return h===m-v?f.reactExports.createElement("div",{key:p.key,style:M(M({},p.style),{},{width:20})}):S(M(M({},p),{},{columnIndex:h+v,parent:r}))}),g(r,"_columnWidthRightGrid",function(d){var h=d.index,p=r.props,u=p.columnCount,S=p.fixedColumnCount,m=p.columnWidth,v=r.state,y=v.scrollbarSize;return v.showHorizontalScrollbar&&h===u-S?y:typeof m=="function"?m({index:h+S}):m}),g(r,"_onScroll",function(d){var h=d.scrollLeft,p=d.scrollTop;r.setState({scrollLeft:h,scrollTop:p});var u=r.props.onScroll;u&&u(d)}),g(r,"_onScrollbarPresenceChange",function(d){var h=d.horizontal,p=d.size,u=d.vertical,S=r.state,m=S.showHorizontalScrollbar,v=S.showVerticalScrollbar;if(h!==m||u!==v){r.setState({scrollbarSize:p,showHorizontalScrollbar:h,showVerticalScrollbar:u});var y=r.props.onScrollbarPresenceChange;typeof y=="function"&&y({horizontal:h,size:p,vertical:u})}}),g(r,"_onScrollLeft",function(d){var h=d.scrollLeft;r._onScroll({scrollLeft:h,scrollTop:r.state.scrollTop})}),g(r,"_onScrollTop",function(d){var h=d.scrollTop;r._onScroll({scrollTop:h,scrollLeft:r.state.scrollLeft})}),g(r,"_rowHeightBottomGrid",function(d){var h=d.index,p=r.props,u=p.fixedRowCount,S=p.rowCount,m=p.rowHeight,v=r.state,y=v.scrollbarSize;return v.showVerticalScrollbar&&h===S-u?y:typeof m=="function"?m({index:h+u}):m}),g(r,"_topLeftGridRef",function(d){r._topLeftGrid=d}),g(r,"_topRightGridRef",function(d){r._topRightGrid=d});var a=e.deferredMeasurementCache,s=e.fixedColumnCount,c=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),a&&(r._deferredMeasurementCacheBottomLeftGrid=c>0?new ue({cellMeasurerCache:a,columnIndexOffset:0,rowIndexOffset:c}):a,r._deferredMeasurementCacheBottomRightGrid=s>0||c>0?new ue({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:c}):a,r._deferredMeasurementCacheTopRightGrid=s>0?new ue({cellMeasurerCache:a,columnIndexOffset:s,rowIndexOffset:0}):a),r}return W(o,f.reactExports.PureComponent),L(o,[{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&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,i=n===void 0?0:n;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,r):r,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,i):i}},{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&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,i=n===void 0?0:n,l=this.props,a=l.fixedColumnCount,s=l.fixedRowCount,c=Math.max(0,r-a),d=Math.max(0,i-s);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:d}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:c,rowIndex:d}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:r,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:c,rowIndex:i}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,r=e.scrollTop;if(t>0||r>0){var n={};t>0&&(n.scrollLeft=t),r>0&&(n.scrollTop=r),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,r=e.onSectionRendered;e.onScrollbarPresenceChange,e.scrollLeft;var n=e.scrollToColumn;e.scrollTop;var i=e.scrollToRow,l=J(e,to);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var a=this.state,s=a.scrollLeft,c=a.scrollTop;return f.reactExports.createElement("div",{style:this._containerOuterStyle},f.reactExports.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(l),this._renderTopRightGrid(M(M({},l),{},{onScroll:t,scrollLeft:s}))),f.reactExports.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(M(M({},l),{},{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(M(M({},l),{},{onScroll:t,onSectionRendered:r,scrollLeft:s,scrollToColumn:n,scrollToRow:i,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,r=e.columnWidth;if(this._leftGridWidth==null)if(typeof r=="function"){for(var n=0,i=0;i<t;i++)n+=r({index:i});this._leftGridWidth=n}else this._leftGridWidth=r*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,r=e.rowHeight;if(this._topGridHeight==null)if(typeof r=="function"){for(var n=0,i=0;i<t;i++)n+=r({index:i});this._topGridHeight=n}else this._topGridHeight=r*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){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,r=t.columnWidth,n=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,l=t.height,a=t.fixedColumnCount,s=t.fixedRowCount,c=t.rowHeight,d=t.style,h=t.styleBottomLeftGrid,p=t.styleBottomRightGrid,u=t.styleTopLeftGrid,S=t.styleTopRightGrid,m=t.width,v=e||l!==this._lastRenderedHeight||m!==this._lastRenderedWidth,y=e||r!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,x=e||s!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||v||d!==this._lastRenderedStyle)&&(this._containerOuterStyle=M({height:l,overflow:"visible",width:m},d)),(e||v||x)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:m},this._containerBottomStyle={height:l-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:m}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=M({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||y||p!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=M({left:this._getLeftGridWidth(this.props),position:"absolute"},p)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=M({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||y||S!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=M({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},S)),this._lastRenderedColumnWidth=r,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=s,this._lastRenderedHeight=l,this._lastRenderedRowHeight=c,this._lastRenderedStyle=d,this._lastRenderedStyleBottomLeftGrid=h,this._lastRenderedStyleBottomRightGrid=p,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=S,this._lastRenderedWidth=m}},{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(e){var t=e.enableFixedColumnScroll,r=e.fixedColumnCount,n=e.fixedRowCount,i=e.rowCount,l=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!r)return null;var s=a?1:0,c=this._getBottomGridHeight(e),d=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,p=l?d+h:d,u=f.reactExports.createElement(N,f.Yn({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:r,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-n)+s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:p}));return l?f.reactExports.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:M(M({},this._bottomLeftGridStyle),{},{height:c,width:d,overflowY:"hidden"})},u):u}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,r=e.fixedColumnCount,n=e.fixedRowCount,i=e.rowCount,l=e.scrollToColumn,a=e.scrollToRow;return f.reactExports.createElement(N,f.Yn({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-r),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:l-r,scrollToRow:a-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,r=e.fixedRowCount;return t&&r?f.reactExports.createElement(N,f.Yn({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:r,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,r=e.enableFixedRowScroll,n=e.fixedColumnCount,i=e.fixedRowCount,l=e.scrollLeft,a=e.hideTopRightGridScrollbar,s=this.state,c=s.showHorizontalScrollbar,d=s.scrollbarSize;if(!i)return null;var h=c?1:0,p=this._getTopGridHeight(e),u=this._getRightGridWidth(e),S=c?d:0,m=p,v=this._topRightGridStyle;a&&(m=p+S,v=M(M({},this._topRightGridStyle),{},{left:0}));var y=f.reactExports.createElement(N,f.Yn({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+h,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:r?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:l,style:v,tabIndex:null,width:u}));return a?f.reactExports.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:M(M({},this._topRightGridStyle),{},{height:p,width:u,overflowX:"hidden"})},y):y}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:e.scrollLeft!=null&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:e.scrollTop!=null&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}])})();function bt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bt=function(){return!!o})()}g(he,"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}),he.propTypes={},re(he),(function(){function o(e,t){var r,n,i,l;return E(this,o),n=this,l=[e,t],i=I(i=o),(r=A(n,bt()?Reflect.construct(i,l||[],I(n).constructor):i.apply(n,l))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(r),r}return W(o,f.reactExports.PureComponent),L(o,[{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.clientHeight,n=t.clientWidth,i=t.scrollHeight,l=t.scrollLeft,a=t.scrollTop,s=t.scrollWidth;return e({clientHeight:r,clientWidth:n,onScroll:this._onScroll,scrollHeight:i,scrollLeft:l,scrollTop:a,scrollWidth:s})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.clientWidth,n=e.scrollHeight,i=e.scrollLeft,l=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:r,scrollHeight:n,scrollLeft:i,scrollTop:l,scrollWidth:a})}}])})().propTypes={};var oe="ASC",ve="DESC";function zt(o){var e=o.sortDirection,t=f.Wt("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":e===oe,"ReactVirtualized__Table__sortableHeaderIcon--DESC":e===ve});return f.reactExports.createElement("svg",{className:t,width:18,height:18,viewBox:"0 0 24 24"},e===oe?f.reactExports.createElement("path",{d:"M7 14l5-5 5 5z"}):f.reactExports.createElement("path",{d:"M7 10l5 5 5-5z"}),f.reactExports.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Tt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tt=function(){return!!o})()}zt.propTypes={};var se=(function(){function o(){return E(this,o),e=this,r=arguments,t=I(t=o),A(e,Tt()?Reflect.construct(t,r||[],I(e).constructor):t.apply(e,r));var e,t,r}return W(o,f.reactExports.Component),L(o)})();function Je(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function F(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Je(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function It(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(It=function(){return!!o})()}g(se,"defaultProps",{cellDataGetter:function(o){var e=o.dataKey,t=o.rowData;return typeof t.get=="function"?t.get(e):t[e]},cellRenderer:function(o){var e=o.cellData;return e==null?"":String(e)},defaultSortDirection:oe,flexGrow:0,flexShrink:1,headerRenderer:function(o){var e=o.dataKey,t=o.label,r=o.sortBy,n=o.sortDirection,i=r===e,l=[f.reactExports.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof t=="string"?t:null},t)];return i&&l.push(f.reactExports.createElement(zt,{key:"SortIndicator",sortDirection:n})),l},style:{}}),se.propTypes={};var _e=(function(){function o(e){var t,r,n,i;return E(this,o),r=this,i=[e],n=I(n=o),(t=A(r,It()?Reflect.construct(n,i||[],I(r).constructor):n.apply(r,i))).state={scrollbarWidth:0},t._createColumn=t._createColumn.bind(t),t._createRow=t._createRow.bind(t),t._onScroll=t._onScroll.bind(t),t._onSectionRendered=t._onSectionRendered.bind(t),t._setRef=t._setRef.bind(t),t._setGridElementRef=t._setGridElementRef.bind(t),t}return W(o,f.reactExports.PureComponent),L(o,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,r=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:r}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,r=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:r,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.columnIndex,r=t===void 0?0:t,n=e.rowIndex,i=n===void 0?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:i,columnIndex:r})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&arguments[0]!==void 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 e=this,t=this.props,r=t.children,n=t.className,i=t.disableHeader,l=t.gridClassName,a=t.gridStyle,s=t.headerHeight,c=t.headerRowRenderer,d=t.height,h=t.id,p=t.noRowsRenderer,u=t.rowClassName,S=t.rowStyle,m=t.scrollToIndex,v=t.style,y=t.width,x=this.state.scrollbarWidth,_=i?d:d-s,w=typeof u=="function"?u({index:-1}):u,C=typeof S=="function"?S({index:-1}):S;return this._cachedColumnStyles=[],f.reactExports.Children.toArray(r).forEach(function(R,b){var z=e._getFlexStyleForColumn(R,R.props.style||se.defaultProps.style);e._cachedColumnStyles[b]=F({overflow:"hidden"},z)}),f.reactExports.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":f.reactExports.Children.toArray(r).length,"aria-rowcount":this.props.rowCount,className:f.Wt("ReactVirtualized__Table",n),id:h,role:"grid",style:v},!i&&c({className:f.Wt("ReactVirtualized__Table__headerRow",w),columns:this._getHeaderColumns(),style:F({height:s,overflow:"hidden",paddingRight:x,width:y},C)}),f.reactExports.createElement(N,f.Yn({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:f.Wt("ReactVirtualized__Table__Grid",l),cellRenderer:this._createRow,columnWidth:y,columnCount:1,height:_,id:void 0,noContentRenderer:p,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:x,scrollToRow:m,style:F(F({},a),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,r=e.columnIndex,n=e.isScrolling,i=e.parent,l=e.rowData,a=e.rowIndex,s=this.props.onColumnClick,c=t.props,d=c.cellDataGetter,h=c.cellRenderer,p=c.className,u=c.columnData,S=c.dataKey,m=c.id,v=h({cellData:d({columnData:u,dataKey:S,rowData:l}),columnData:u,columnIndex:r,dataKey:S,isScrolling:n,parent:i,rowData:l,rowIndex:a}),y=this._cachedColumnStyles[r],x=typeof v=="string"?v:null;return f.reactExports.createElement("div",{"aria-colindex":r+1,"aria-describedby":m,className:f.Wt("ReactVirtualized__Table__rowColumn",p),key:"Row"+a+"-Col"+r,onClick:function(_){s&&s({columnData:u,dataKey:S,event:_})},role:"gridcell",style:y,title:x},v)}},{key:"_createHeader",value:function(e){var t,r,n,i,l,a=e.column,s=e.index,c=this.props,d=c.headerClassName,h=c.headerStyle,p=c.onHeaderClick,u=c.sort,S=c.sortBy,m=c.sortDirection,v=a.props,y=v.columnData,x=v.dataKey,_=v.defaultSortDirection,w=v.disableSort,C=v.headerRenderer,R=v.id,b=v.label,z=!w&&u,T=f.Wt("ReactVirtualized__Table__headerColumn",d,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:z}),k=this._getFlexStyleForColumn(a,F(F({},h),a.props.headerStyle)),O=C({columnData:y,dataKey:x,disableSort:w,label:b,sortBy:S,sortDirection:m});if(z||p){var P=S!==x?_:m===ve?oe:ve,G=function(j){z&&u({defaultSortDirection:_,event:j,sortBy:x,sortDirection:P}),p&&p({columnData:y,dataKey:x,event:j})};l=a.props["aria-label"]||b||x,i="none",n=0,t=G,r=function(j){j.key!=="Enter"&&j.key!==" "||G(j)}}return S===x&&(i=m===oe?"ascending":"descending"),f.reactExports.createElement("div",{"aria-label":l,"aria-sort":i,className:T,id:R,key:"Header-Col"+s,onClick:t,onKeyDown:r,role:"columnheader",style:k,tabIndex:n},O)}},{key:"_createRow",value:function(e){var t=this,r=e.rowIndex,n=e.isScrolling,i=e.key,l=e.parent,a=e.style,s=this.props,c=s.children,d=s.onRowClick,h=s.onRowDoubleClick,p=s.onRowRightClick,u=s.onRowMouseOver,S=s.onRowMouseOut,m=s.rowClassName,v=s.rowGetter,y=s.rowRenderer,x=s.rowStyle,_=this.state.scrollbarWidth,w=typeof m=="function"?m({index:r}):m,C=typeof x=="function"?x({index:r}):x,R=v({index:r}),b=f.reactExports.Children.toArray(c).map(function(k,O){return t._createColumn({column:k,columnIndex:O,isScrolling:n,parent:l,rowData:R,rowIndex:r,scrollbarWidth:_})}),z=f.Wt("ReactVirtualized__Table__row",w),T=F(F({},a),{},{height:this._getRowHeight(r),overflow:"hidden",paddingRight:_},C);return y({className:z,columns:b,index:r,isScrolling:n,key:i,onRowClick:d,onRowDoubleClick:h,onRowRightClick:p,onRowMouseOver:u,onRowMouseOut:S,rowData:R,style:T})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=F(F({},t),{},{flex:r,msFlex:r,WebkitFlex:r});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,r=t.children;return(t.disableHeader?[]:f.reactExports.Children.toArray(r)).map(function(n,i){return e._createHeader({column:n,index:i})})}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return typeof t=="function"?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,r=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,n=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:n,stopIndex:i})}},{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})}}])})();g(_e,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:vt,overscanRowCount:10,rowRenderer:function(o){var e=o.className,t=o.columns,r=o.index,n=o.key,i=o.onRowClick,l=o.onRowDoubleClick,a=o.onRowMouseOut,s=o.onRowMouseOver,c=o.onRowRightClick,d=o.rowData,h=o.style,p={"aria-rowindex":r+1};return(i||l||a||s||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(u){return i({event:u,index:r,rowData:d})}),l&&(p.onDoubleClick=function(u){return l({event:u,index:r,rowData:d})}),a&&(p.onMouseOut=function(u){return a({event:u,index:r,rowData:d})}),s&&(p.onMouseOver=function(u){return s({event:u,index:r,rowData:d})}),c&&(p.onContextMenu=function(u){return c({event:u,index:r,rowData:d})})),f.reactExports.createElement("div",f.Yn({},p,{className:e,key:n,role:"row",style:h}),t)},headerRowRenderer:function(o){var e=o.className,t=o.columns,r=o.style;return f.reactExports.createElement("div",{className:e,role:"row",style:r},t)},rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),_e.propTypes={};var U=[],ee=null,B=null;function Pt(){B&&(B=null,document.body&&ee!=null&&(document.body.style.pointerEvents=ee),ee=null)}function oo(){Pt(),U.forEach(function(o){return o.__resetIsScrolling()})}function kt(o){o.currentTarget===window&&ee==null&&document.body&&(ee=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),(function(){B&&K(B);var e=0;U.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),B=xe(oo,e)})(),U.forEach(function(e){e.props.scrollElement===o.currentTarget&&e.__handleWindowScrollEvent()})}function Ze(o,e){U.some(function(t){return t.props.scrollElement===e})||e.addEventListener("scroll",kt),U.push(o)}function Qe(o,e){(U=U.filter(function(t){return t!==o})).length||(e.removeEventListener("scroll",kt),B&&(K(B),Pt()))}var Ce=function(o){return o===window},Z=function(o){return o.getBoundingClientRect()};function et(o,e){if(o){if(Ce(o)){var t=window,r=t.innerHeight,n=t.innerWidth;return{height:typeof r=="number"?r:0,width:typeof n=="number"?n:0}}return Z(o)}return{height:e.serverHeight,width:e.serverWidth}}function tt(o){return Ce(o)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:o.scrollTop,left:o.scrollLeft}}function ot(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(o,n).enumerable})),t.push.apply(t,r)}return t}function rt(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ot(Object(t),!0).forEach(function(r){g(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ot(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ot=function(){return!!o})()}var Mt=function(){return typeof window<"u"?window:void 0},ro=(function(){function o(){var e,t,r,n;E(this,o);for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return t=this,r=o,n=[].concat(l),r=I(r),g(e=A(t,Ot()?Reflect.construct(r,n||[],I(t).constructor):r.apply(t,n)),"_window",Mt()),g(e,"_isMounted",!1),g(e,"_positionFromTop",0),g(e,"_positionFromLeft",0),g(e,"_detectElementResize",void 0),g(e,"_child",void 0),g(e,"_windowScrollerRef",f.reactExports.createRef()),g(e,"state",rt(rt({},et(e.props.scrollElement,e.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),g(e,"_registerChild",function(s){!s||s instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),e._child=s,e.updatePosition()}),g(e,"_onChildScroll",function(s){var c=s.scrollTop;if(e.state.scrollTop!==c){var d=e.props.scrollElement;d&&(typeof d.scrollTo=="function"?d.scrollTo(0,c+e._positionFromTop):d.scrollTop=c+e._positionFromTop)}}),g(e,"_registerResizeListener",function(s){s===window?window.addEventListener("resize",e._onResize,!1):e._detectElementResize.addResizeListener(s,e._onResize)}),g(e,"_unregisterResizeListener",function(s){s===window?window.removeEventListener("resize",e._onResize,!1):s&&e._detectElementResize.removeResizeListener(s,e._onResize)}),g(e,"_onResize",function(){e.updatePosition()}),g(e,"__handleWindowScrollEvent",function(){if(e._isMounted){var s=e.props.onScroll,c=e.props.scrollElement;if(c){var d=tt(c),h=Math.max(0,d.left-e._positionFromLeft),p=Math.max(0,d.top-e._positionFromTop);e.setState({isScrolling:!0,scrollLeft:h,scrollTop:p}),s({scrollLeft:h,scrollTop:p})}}}),g(e,"__resetIsScrolling",function(){e.setState({isScrolling:!1})}),e}return W(o,f.reactExports.PureComponent),L(o,[{key:"updatePosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,t=this.props.onResize,r=this.state,n=r.height,i=r.width,l=this._child||this._windowScrollerRef.current;if(l instanceof Element&&e){var a=(function(c,d){if(Ce(d)&&document.documentElement){var h=document.documentElement,p=Z(c),u=Z(h);return{top:p.top-u.top,left:p.left-u.left}}var S=tt(d),m=Z(c),v=Z(d);return{top:m.top+S.top-v.top,left:m.left+S.left-v.left}})(l,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var s=et(e,this.props);n===s.height&&i===s.width||(this.setState({height:s.height,width:s.width}),t({height:s.height,width:s.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=ct(),this.updatePosition(e),e&&(Ze(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var r=this.props.scrollElement,n=e.scrollElement;n!==r&&n!=null&&r!=null&&(this.updatePosition(r),Qe(this,n),Ze(this,r),this._unregisterResizeListener(n),this._registerResizeListener(r))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Qe(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,r=t.isScrolling,n=t.scrollTop,i=t.scrollLeft,l=t.height,a=t.width;return f.reactExports.createElement("div",{ref:this._windowScrollerRef},e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:l,isScrolling:r,scrollLeft:i,scrollTop:n,width:a}))}}])})();g(ro,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Mt(),serverHeight:0,serverWidth:0});const Q="ReactVirtualizedDemo-flexContainer",Et="ReactVirtualizedDemo-tableRow",Lt="ReactVirtualizedDemo-tableRowHover",Se="ReactVirtualizedDemo-tableCell",ye="ReactVirtualizedDemo-noClick";class no extends f.mt.PureComponent{constructor(){super(...arguments),this.getRowClassName=({index:e})=>{const{onRowClick:t}=this.props;return f.Ae(Et,Q,{[Lt]:e!==-1&&t!=null})},this.cellRenderer=({cellData:e,dataKey:t,columnIndex:r,width:n})=>{const{columns:i,rowHeight:l,onRowClick:a}=this.props;let s=e,c={height:l,paddingRight:"2px",paddingTop:"0px",paddingBottom:"0px",minWidth:`${n}px`,maxWidth:`${n}px`};return t==="shortcut"?s=f.n5(e):t==="description"&&(c={...c,fontSize:".75rem",display:"block",paddingTop:"4px",whiteSpace:"pre-line"}),f.jsxRuntimeExports.jsx(Re,{component:"div",className:f.Ae(Se,Q,{[ye]:a==null}),variant:"body",style:c,align:r!=null&&i[r].numeric?"right":"left",children:s})},this.headerRenderer=({label:e,columnIndex:t,width:r})=>{const{headerHeight:n,columns:i}=this.props,l=i[t];return f.jsxRuntimeExports.jsx(Re,{component:"div",className:f.Ae(Se,Q,ye),variant:"head",sx:{width:r,height:n,backgroundColor:a=>a.palette.grey[300]},align:l.numeric?"right":"left",children:f.jsxRuntimeExports.jsx("span",{children:l.label})})}}static{this.defaultProps={headerHeight:40,rowHeight:48}}render(){const{columns:e,rowHeight:t,headerHeight:r,...n}=this.props;return f.jsxRuntimeExports.jsx(ut,{children:({height:i,width:l})=>f.jsxRuntimeExports.jsx(_e,{height:i,width:l,rowHeight:t,gridStyle:{direction:"inherit"},headerHeight:r,...n,rowClassName:this.getRowClassName,children:e.map(({dataKey:a,width:s,widthLess:c,...d},h)=>{const p=c?l-c:s;return f.jsxRuntimeExports.jsx(se,{style:{flex:`1 1 ${p}px`},headerRenderer:u=>this.headerRenderer({...u,width:p,columnIndex:h}),className:Q,cellDataGetter:({rowData:u,columnData:S,dataKey:m})=>u[m],cellRenderer:u=>this.cellRenderer({...u,width:p,columnIndex:h}),dataKey:a,width:p,...d},a)})})})}}const io=f.styled(no)(({theme:o})=>({"& .ReactVirtualized__Table__headerRow":{...o.direction==="rtl"&&{paddingLeft:"0 !important"},...o.direction!=="rtl"&&{paddingRight:void 0}},"& .ReactVirtualized__Table__Grid":{outline:"none"},[`& .${Q}`]:{display:"flex",alignItems:"center",boxSizing:"border-box"},[`& .${Et}`]:{cursor:"pointer"},[`& .${Lt}`]:{"&:hover:not([disabled])":{backgroundColor:o.palette.grey[200]}},[`& .${Se}`]:{flex:1},[`& .${ye}`]:{cursor:"initial"}}));function lo(o){const{commands:e,...t}=o,[r,n]=f.reactExports.useState(!1),[i,l]=f.reactExports.useState(""),a=f.reactExports.useMemo(()=>{let u=e.getAllCommands();r||(u=u.filter(v=>v.command.shortcut())),u.sort((v,y)=>v.command.label().localeCompare(y.command.label()));const S=[],m=v=>v.replace(/\n\n/g,`
19
- `);for(let v=0;v<u.length;v++){const y=u[v].command,x=y.shortcut();if(Array.isArray(x)){const _=x;for(let w=0;w<_.length;w++)S.push({label:y.label(),description:m(y.description()),shortcut:_[w]})}else S.push({label:y.label(),description:m(y.description()),shortcut:y.shortcut()})}return S},[r,e]),[s,c]=f.reactExports.useState(null);f.reactExports.useEffect(()=>{Promise.resolve().then(()=>require("./DvUjB80yD7NngR7u.cjs")).then(u=>{c(new u.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[d,h]=f.reactExports.useState(a),p=i.length>0&&d.length===0;return f.reactExports.useEffect(()=>{s&&f.Xt.debounce(()=>{if(i.trim().length===0)return void h(a);const u=s.search(i.trim()),S=new Array(u.length);for(let m=0;m<u.length;m++)S[m]=u[m].item;h(S)},90)()},[s,i]),f.jsxRuntimeExports.jsxs(f.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[f.jsxRuntimeExports.jsxs(f.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:u=>u.spacing(2),color:u=>u.palette.text.secondary},children:[f.jsxRuntimeExports.jsx(f.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${f.alpha("#fff",f.getOverlayAlpha(5))}, ${f.alpha("#fff",f.getOverlayAlpha(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:u=>u.spacing(1),paddingBottom:u=>u.spacing(1)}},endAdornment:f.jsxRuntimeExports.jsx(f.InputAdornment,{sx:{opacity:i.length>0?1:0,display:i.length>0?"flex":"none"},position:"end",children:f.jsxRuntimeExports.jsx(f.IconButton,{"aria-label":"clear search",onClick:()=>l(""),edge:"end",children:f.jsxRuntimeExports.jsx(f.so,{})})})},sx:{flex:"1 1 40%",marginRight:u=>u.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:u=>p?`${u.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:u=>p?`${u.palette.error.main} !important`:void 0}},value:i,onChange:u=>{l(u.target.value)},onKeyDown:u=>{u.which===f.eo.Escape&&i.length>0&&(l(""),u.stopPropagation(),u.preventDefault())},onContextMenu:u=>{u.stopPropagation()}}),f.jsxRuntimeExports.jsx(f.FormControlLabel,{sx:{flex:"1 1 60%"},control:f.jsxRuntimeExports.jsx(f.Checkbox,{checked:r,onChange:()=>n(!r)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),f.jsxRuntimeExports.jsx(f.Box,{sx:{flex:"1 1 100%",borderRadius:u=>`${u.shape.borderRadius}px`,border:u=>`solid ${u.palette.divider} 1px`,paddingRight:"1px",overflow:"hidden","* .MuiTableCell-head":{background:u=>u.palette.background.paper,backgroundImage:`linear-gradient(${f.alpha("#fff",f.getOverlayAlpha(5))}, ${f.alpha("#fff",f.getOverlayAlpha(5))})`}},children:f.jsxRuntimeExports.jsx(io,{rowCount:d.length,rowGetter:u=>d[u.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),f.jsxRuntimeExports.jsx(f.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:u=>u.spacing(1),paddingTop:u=>u.spacing(1),paddingRight:u=>u.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:f.jsxRuntimeExports.jsx(f.Typography,{noWrap:!0,component:"div",sx:{color:u=>p?u.palette.error.main:u.palette.text.secondary},children:`${d.length===0?"No":d.length} shortcut key${d.length===1?"":"s"}${i.length>0?" found":""}`})})]})}exports.default=o=>{const{title:e="Shortcut Keys",commands:t,sx:r,...n}=o;return f.jsxRuntimeExports.jsx(f.x6,{isModal:!0,onKeyDown:i=>{i.keyCode===f.eo.F1&&i.preventDefault()},sx:{width:"780px",...r},title:e,autoFocusSel:".input",...n,children:f.jsxRuntimeExports.jsx(f.DialogContent,{dividers:!0,children:f.jsxRuntimeExports.jsx(lo,{commands:t,sx:{marginBottom:"8px"}})})})};
19
+ `);for(let v=0;v<u.length;v++){const y=u[v].command,x=y.shortcut();if(Array.isArray(x)){const _=x;for(let w=0;w<_.length;w++)S.push({label:y.label(),description:m(y.description()),shortcut:_[w]})}else S.push({label:y.label(),description:m(y.description()),shortcut:y.shortcut()})}return S},[r,e]),[s,c]=f.reactExports.useState(null);f.reactExports.useEffect(()=>{Promise.resolve().then(()=>require("./BMuuQ56qDMt4tiU7.cjs")).then(u=>{c(new u.default(a,{threshold:0,ignoreLocation:!0,keys:["label","description"]}))})},[a]);const[d,h]=f.reactExports.useState(a),p=i.length>0&&d.length===0;return f.reactExports.useEffect(()=>{s&&f.Xt.debounce(()=>{if(i.trim().length===0)return void h(a);const u=s.search(i.trim()),S=new Array(u.length);for(let m=0;m<u.length;m++)S[m]=u[m].item;h(S)},90)()},[s,i]),f.jsxRuntimeExports.jsxs(f.Box,{style:{height:440,width:"100%",display:"flex",flexDirection:"column"},...t,children:[f.jsxRuntimeExports.jsxs(f.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",marginBottom:u=>u.spacing(2),color:u=>u.palette.text.secondary},children:[f.jsxRuntimeExports.jsx(f.TextField,{InputProps:{sx:{backgroundImage:`linear-gradient(${f.alpha("#fff",f.getOverlayAlpha(5))}, ${f.alpha("#fff",f.getOverlayAlpha(5))})`},inputProps:{className:"input",autoFocus:!0,spellCheck:!1,placeholder:"Type to search key bindings",autoComplete:"off",sx:{paddingTop:u=>u.spacing(1),paddingBottom:u=>u.spacing(1)}},endAdornment:f.jsxRuntimeExports.jsx(f.InputAdornment,{sx:{opacity:i.length>0?1:0,display:i.length>0?"flex":"none"},position:"end",children:f.jsxRuntimeExports.jsx(f.IconButton,{"aria-label":"clear search",onClick:()=>l(""),edge:"end",children:f.jsxRuntimeExports.jsx(f.so,{})})})},sx:{flex:"1 1 40%",marginRight:u=>u.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:u=>p?`${u.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:u=>p?`${u.palette.error.main} !important`:void 0}},value:i,onChange:u=>{l(u.target.value)},onKeyDown:u=>{u.which===f.eo.Escape&&i.length>0&&(l(""),u.stopPropagation(),u.preventDefault())},onContextMenu:u=>{u.stopPropagation()}}),f.jsxRuntimeExports.jsx(f.FormControlLabel,{sx:{flex:"1 1 60%"},control:f.jsxRuntimeExports.jsx(f.Checkbox,{checked:r,onChange:()=>n(!r)}),label:"Show commands without key bindings",labelPlacement:"start"})]}),f.jsxRuntimeExports.jsx(f.Box,{sx:{flex:"1 1 100%",borderRadius:u=>`${u.shape.borderRadius}px`,border:u=>`solid ${u.palette.divider} 1px`,paddingRight:"1px",overflow:"hidden","* .MuiTableCell-head":{background:u=>u.palette.background.paper,backgroundImage:`linear-gradient(${f.alpha("#fff",f.getOverlayAlpha(5))}, ${f.alpha("#fff",f.getOverlayAlpha(5))})`}},children:f.jsxRuntimeExports.jsx(io,{rowCount:d.length,rowGetter:u=>d[u.index],columns:[{width:180,label:"Command",dataKey:"label"},{width:260,label:"Key Binding",dataKey:"shortcut"},{width:240,label:"Description",dataKey:"description",widthLess:440}]})}),f.jsxRuntimeExports.jsx(f.Box,{sx:{display:"flex",flexShrink:"0",paddingLeft:u=>u.spacing(1),paddingTop:u=>u.spacing(1),paddingRight:u=>u.spacing(1),userSelect:"none",justifyContent:"flex-end"},children:f.jsxRuntimeExports.jsx(f.Typography,{noWrap:!0,component:"div",sx:{color:u=>p?u.palette.error.main:u.palette.text.secondary},children:`${d.length===0?"No":d.length} shortcut key${d.length===1?"":"s"}${i.length>0?" found":""}`})})]})}exports.default=o=>{const{title:e="Shortcut Keys",commands:t,sx:r,...n}=o;return f.jsxRuntimeExports.jsx(f.x6,{isModal:!0,onKeyDown:i=>{i.keyCode===f.eo.F1&&i.preventDefault()},sx:{width:"780px",...r},title:e,autoFocusSel:".input",...n,children:f.jsxRuntimeExports.jsx(f.DialogContent,{dividers:!0,children:f.jsxRuntimeExports.jsx(lo,{commands:t,sx:{marginBottom:"8px"}})})})};
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BUiD3JsC13sWCk3V.cjs"),G=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>H(a,i));e.reactExports.useEffect(()=>{m(H(a,i))},[a,i]);const C=e.T(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:C,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),S={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},Z={Formulas:e.Ct.Content.Formulas,Values:e.Ct.Content.Values,Notes:e.Ct.Content.Notes,Comments:e.Ct.Content.Comments},W={...Z};delete W.Values;const Y={"By Rows":!0,"By Columns":!1},H=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},$=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...C}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),w=e.reactExports.useRef(null),k=e.reactExports.useRef(null),I=e.reactExports.useRef(null),F=e.reactExports.useRef(null),A=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[L,h]=e.reactExports.useState(!1),[y,N]=e.reactExports.useState(!1),[x,v]=e.reactExports.useState(d),[B,b]=e.reactExports.useState(!1),[D,P]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.Ct.Content.Formulas]},scope:S.Sheet}),j=e.T(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.Ct.Content.Values&&(u.findOptions.fields=[e.Ct.Content.Formulas]),u.findOptions.reverse=!t;const q=await m({autoFocus:E,...u});b(q===0)},[o,m]);e.reactExports.useEffect(()=>{b(!1)},[o,y,x]);const M=e.T((t,n)=>{if(t.keyCode===e.eo.Enter){if(!o.findText)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),A(t,E?F.current:I.current)):A(t,s?k.current:w.current),j(s,n,E,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",h(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.Ct.Content.Formulas]);const s=!(!f&&i===void 0);return s&&v(s),n}),D||K.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.Ct.Content.Values):h(!0)},[x]),e.reactExports.useEffect(()=>{if(L&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void h(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),h(!1)},{once:!0})},[L,o]);const[U,{width:V}]=e.Mo();return e.jsxRuntimeExports.jsx(e.x6,{ref:K,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>P(!0),onBlur:()=>{P(!1),b(!1)},PaperProps:{elevation:D?3:1},...C,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:U,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)v(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:y,onSelectToggle:t=>{N(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.p2(e.jsxRuntimeExports.jsx(e.b9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:x,onSelectToggle:t=>{v(t)},preventFocus:!0,label:"Toggle Replace",icon:e.p2(e.jsxRuntimeExports.jsx(e.g9,{})),shortcut:{key:x?"F":"H",modifiers:[e.Z.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.V9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.H9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.z9,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>B?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>B?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>M(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.reverse,onSelectToggle:t=>{j(!1,!1)},touchRippleRef:w,label:"",shortcut:{key:"Enter",modifiers:[e.Z.Shift]},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(G,{}):e.jsxRuntimeExports.jsx(Q,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{selected:!o.findOptions.reverse,onSelectToggle:t=>{j(!0,!1)},touchRippleRef:k,label:"Next Match",shortcut:{key:"Enter"},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(J,{}):e.jsxRuntimeExports.jsx(X,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>M(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0)},touchRippleRef:I,label:"Replace",shortcut:{key:"Enter"},icon:e.p2(e.jsxRuntimeExports.jsx(e.x9,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0,!0)},touchRippleRef:F,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.Z.Ctrl,e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.C9,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:y,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.f8,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:S,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Y,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.Ct.Content.Values?e.Ct.Content.Formulas:o.findOptions.fields?.[0],options:x?W:Z,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=$,exports.ScopeOptions=S,exports.default=$;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CKsnAbXU6k12MtqJ.cjs"),G=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>H(a,i));e.reactExports.useEffect(()=>{m(H(a,i))},[a,i]);const v=e.T(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:v,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),S={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},Z={Formulas:e.vt.Content.Formulas,Values:e.vt.Content.Values,Notes:e.vt.Content.Notes,Comments:e.vt.Content.Comments},W={...Z};delete W.Values;const Y={"By Rows":!0,"By Columns":!1},H=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},$=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...v}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),w=e.reactExports.useRef(null),k=e.reactExports.useRef(null),I=e.reactExports.useRef(null),F=e.reactExports.useRef(null),A=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[L,h]=e.reactExports.useState(!1),[y,N]=e.reactExports.useState(!1),[x,C]=e.reactExports.useState(d),[B,b]=e.reactExports.useState(!1),[D,P]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.vt.Content.Formulas]},scope:S.Sheet}),j=e.T(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.vt.Content.Values&&(u.findOptions.fields=[e.vt.Content.Formulas]),u.findOptions.reverse=!t;const q=await m({autoFocus:E,...u});b(q===0)},[o,m]);e.reactExports.useEffect(()=>{b(!1)},[o,y,x]);const M=e.T((t,n)=>{if(t.keyCode===e.eo.Enter){if(!o.findText)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),A(t,E?F.current:I.current)):A(t,s?k.current:w.current),j(s,n,E,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",h(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.vt.Content.Formulas]);const s=!(!f&&i===void 0);return s&&C(s),n}),D||K.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.vt.Content.Values):h(!0)},[x]),e.reactExports.useEffect(()=>{if(L&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void h(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),h(!1)},{once:!0})},[L,o]);const[U,{width:V}]=e.Mo();return e.jsxRuntimeExports.jsx(e.x6,{ref:K,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>P(!0),onBlur:()=>{P(!1),b(!1)},PaperProps:{elevation:D?3:1},...v,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:U,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)C(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:y,onSelectToggle:t=>{N(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.p2(e.jsxRuntimeExports.jsx(e.b9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:x,onSelectToggle:t=>{C(t)},preventFocus:!0,label:"Toggle Replace",icon:e.p2(e.jsxRuntimeExports.jsx(e.g9,{})),shortcut:{key:x?"F":"H",modifiers:[e.Z.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.V9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.H9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.z9,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>B?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>B?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>M(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.reverse,onSelectToggle:t=>{j(!1,!1)},touchRippleRef:w,label:"",shortcut:{key:"Enter",modifiers:[e.Z.Shift]},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(G,{}):e.jsxRuntimeExports.jsx(Q,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{selected:!o.findOptions.reverse,onSelectToggle:t=>{j(!0,!1)},touchRippleRef:k,label:"Next Match",shortcut:{key:"Enter"},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(J,{}):e.jsxRuntimeExports.jsx(X,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>M(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0)},touchRippleRef:I,label:"Replace",shortcut:{key:"Enter"},icon:e.p2(e.jsxRuntimeExports.jsx(e.x9,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0,!0)},touchRippleRef:F,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.Z.Ctrl,e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.C9,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:y,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.f8,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:S,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Y,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.vt.Content.Values?e.vt.Content.Formulas:o.findOptions.fields?.[0],options:x?W:Z,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=$,exports.ScopeOptions=S,exports.default=$;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.18
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.