@sheetxl/studio-vanilla 0.3.0 → 0.3.2

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 (214) hide show
  1. package/LICENSE.md +11 -11
  2. package/README.md +97 -97
  3. package/browser/cjs/{cXKpamD3YJ7T7UIy.cjs → 8Y7hlPEOJeSakYCm.cjs} +2 -12
  4. package/browser/cjs/B4SOP0NZdUa_5syD.cjs +452 -0
  5. package/browser/cjs/{Dqytj5avvhy0OfcQ.cjs → B5XBWUdLMqS2HDaF.cjs} +3 -3
  6. package/browser/cjs/{DAEWVQt08NYEEiDp.cjs → BDItG-Ctn9btjJYc.cjs} +1 -1
  7. package/browser/cjs/BHCPp9yjpWH3JG34.cjs +6 -0
  8. package/browser/cjs/{CU_BzP7b4cIkOp0W.cjs → BKGew2NYE-aa2w6y.cjs} +2 -2
  9. package/browser/cjs/{pXJLtwMuQqVtfxDh.cjs → BMBMwGW_zSiAe-XN.cjs} +1 -1
  10. package/browser/cjs/{C0s5F1POfARzrKP5.cjs → BPbd8bf2gOPV7ZtV.cjs} +8 -8
  11. package/browser/cjs/BZWVOs1oqYkcQagx.cjs +6 -0
  12. package/browser/cjs/B_HrZqG_mlwYR4Ae.cjs +6 -0
  13. package/browser/cjs/{BBRsvQi2qwf1nduI.cjs → Bb4zRbBuFZbbsMgv.cjs} +1 -1
  14. package/browser/cjs/{UaNxxw6ywOxwUm2P.cjs → BcapKXhCmLNJmfsN.cjs} +1 -1
  15. package/browser/cjs/{BgcoRkkmbBckGLPB.cjs → BivyzwRCqS37kNIh.cjs} +1 -1
  16. package/browser/cjs/Boig6aZA2-R5_w21.cjs +15 -0
  17. package/browser/cjs/Bwi2m9xG4JvXPBHQ.cjs +12 -0
  18. package/browser/cjs/{heo8nWRKxUNJeEc8.cjs → Bx6ZuxKkOWgx7s9X.cjs} +2 -2
  19. package/browser/cjs/{B6YGJGvRNGuQ9_gp.cjs → C4Far2itXrJ3DMOt.cjs} +1 -1
  20. package/browser/cjs/C6MqpTvQKwY2D1nN.cjs +7 -0
  21. package/browser/cjs/{Dy8SVjsVQet5vLuM.cjs → CDh1V-eGnwm_zj2N.cjs} +1 -1
  22. package/browser/cjs/{BdCoE_M8e0hB71qX.cjs → CDt2itaEJHdgdMf7.cjs} +1 -1
  23. package/browser/cjs/{733JB7rykyRwGt4E.cjs → CFRAYmx7O_QuuqLm.cjs} +1 -1
  24. package/browser/cjs/{3QL6_jTFdiirmbvL.cjs → CLT2qTd_lmEX24Wq.cjs} +1 -1
  25. package/browser/cjs/CU5XR4xQQYjuDqWh.cjs +6 -0
  26. package/browser/cjs/{jspcRaFi7FlNoOCi.cjs → CV3O2HrGgeVyZSTI.cjs} +2 -2
  27. package/browser/cjs/{Cq6nKXJncTvIPDs0.cjs → CWuna-uBlfjsma3U.cjs} +3 -25
  28. package/browser/cjs/{BzHjhROODDie_GcY.cjs → C_-gd03rNpCoIWh3.cjs} +1 -1
  29. package/browser/cjs/{C7zut22tCoRegV_d.cjs → CgBaptNB5xDzVtxH.cjs} +2 -2
  30. package/browser/cjs/CiCnx8sUQcc8athi.cjs +13 -0
  31. package/browser/cjs/{DE8l2rQfo2VVUkcB.cjs → CiJXZ4MMq0-g5pRy.cjs} +38 -48
  32. package/browser/cjs/{DIh6OO396kZjKhj2.cjs → CkOqLhMfOSUO6hZc.cjs} +9 -29
  33. package/browser/cjs/{C5jc-Y-Hgl0f-Bdo.cjs → CkboN9PqhMP8gVUO.cjs} +1 -1
  34. package/browser/cjs/{Br9jR9D1r5-o3MNY.cjs → CpPLkq1qYpELtBVb.cjs} +3 -3
  35. package/browser/cjs/CwhdUCDaoLQGcvJy.cjs +15 -0
  36. package/browser/cjs/{BFLfq3S9KpGbl7Sg.cjs → Cx2rTk-O7yQO7-q6.cjs} +4 -24
  37. package/browser/cjs/{8igELOAHTBTibdxC.cjs → Cx39LdblHkleUMb1.cjs} +1 -1
  38. package/browser/cjs/{BeR1ChCVTFwB5yHv.cjs → D4HABltWISUjVaOO.cjs} +3 -13
  39. package/browser/cjs/{DdAp7pgJ74tC2bXc.cjs → D99WjfuVwM-YRm4a.cjs} +1 -1
  40. package/browser/cjs/DCe0ifxJ2waXgr0H.cjs +6 -0
  41. package/browser/cjs/{Du3dcmxNI2FligcT.cjs → DDvILQ7_cSgi8K6F.cjs} +1 -1
  42. package/browser/cjs/DE3aCIXAZL7uLX0k.cjs +7 -0
  43. package/browser/cjs/{BXfPkTrM6foeVPwk.cjs → DRvH_199sgRclUKY.cjs} +2 -51
  44. package/browser/cjs/{Bjus8Eiw4cFgUHkk.cjs → DV0r3gTeA-w2Q6Jx.cjs} +1 -1
  45. package/browser/cjs/{Cpw1pytHjcWHlrs5.cjs → DWoR03zqV8zXWO-X.cjs} +1 -1
  46. package/browser/cjs/{DOfe_n57c-AmDBXL.cjs → DZ3gARHylllIcJDT.cjs} +1 -1
  47. package/browser/cjs/DbdPbW-LrAm6toaO.cjs +12 -0
  48. package/browser/cjs/{99Nzn-PICRpNSUxm.cjs → DciSg5hoXxvfqoKC.cjs} +1 -1
  49. package/browser/cjs/{CPy6BZgWgaukH2wr.cjs → DjmqyErluCMLOjsF.cjs} +1 -1
  50. package/browser/cjs/{CFIXzpjjBJD9Ssfu.cjs → DlAB_CcYmXk8tpYL.cjs} +1 -17
  51. package/browser/cjs/{VjVwC7Tg9iSVxZ_e.cjs → DmhCjj0KeysXxIzX.cjs} +2 -2
  52. package/browser/cjs/{CMsqJV9uPQCkxjr1.cjs → Dn1uL0GqyDGo3d67.cjs} +2 -2
  53. package/browser/cjs/{s-6Dp8AeCjfET6lC.cjs → Dn4RfIZ9VHwQ7Eex.cjs} +1 -1
  54. package/browser/cjs/{D1F49z1BTQNLc001.cjs → Dn6LoJinxzxUiMDg.cjs} +2 -2
  55. package/browser/cjs/{DVziX7RxofEvjdaZ.cjs → Do_T0KvdhyBUnWx_.cjs} +1 -6
  56. package/browser/cjs/DvtlLY8kPVwL4sgA.cjs +6 -0
  57. package/browser/cjs/{7_gN0Iu07E3GI7B1.cjs → DyS1Kn_U7Em83Hsq.cjs} +1 -1
  58. package/browser/cjs/INcIs0jpLlM3mm-H.cjs +11 -0
  59. package/browser/cjs/{mQf_DGFtPLC3XOGK.cjs → YHVbESGX6phJX20u.cjs} +1 -1
  60. package/browser/cjs/{D6JdKwLNWc3ioSMm.cjs → ZWsbkG6eb6seSRXv.cjs} +2 -2
  61. package/browser/cjs/index.cjs +2 -2
  62. package/{cdn/assets/CGCghKS4Jl7fGewC.js → browser/esm/3N51fmivOwyOXT3l.mjs} +1 -13
  63. package/{cdn/assets/C9pcd-6v0BwN-Nrg.js → browser/esm/3VzVhIOnlmOZ-dBg.mjs} +6 -12
  64. package/{cdn/assets/vhG_0swcLosZTyyb.js → browser/esm/6nSiDtF6igNyrf2y.mjs} +8 -14
  65. package/{cdn/assets/D6CGsM4vcM8GtGg4.js → browser/esm/B0DAlgwfAWOXvq4_.mjs} +2 -8
  66. package/{cdn/assets/Bqjg7PBsD1qpWapS.js → browser/esm/B1m-ozjxrnDeFhiZ.mjs} +1 -13
  67. package/browser/esm/B4LH4e6YQr0i0kbs.mjs +29 -0
  68. package/browser/esm/BEdbC5wAfOjfWhGs.mjs +21 -0
  69. package/{cdn/assets/Jv_Qhh-WUFMrxoID.js → browser/esm/BH6ldKaAlNHAWreh.mjs} +7 -77
  70. package/{cdn/assets/CwpligBAfWbwjv90.js → browser/esm/BM8e7ROZOHaAquLi.mjs} +1 -13
  71. package/browser/esm/{tUcACmQVgT_vQZRd.mjs → BTTKTkAe7jTaQvjz.mjs} +1 -13
  72. package/browser/esm/{Dbr6KB-IYBe-9CSb.mjs → BbYZAR2suHjEBaES.mjs} +2 -2
  73. package/browser/esm/Bjsc6wrUpvl_hjRj.mjs +12 -0
  74. package/{cdn/assets/0KJ23PTXKNiflMEW.js → browser/esm/Bjtb8lG8j5lZLmPO.mjs} +9 -15
  75. package/{cdn/assets/DYZMXz31j3qNRh0f.js → browser/esm/Bpt-cfH_EphAcLow.mjs} +3 -15
  76. package/{cdn/assets/CC2fNxNRteCEEFhk.js → browser/esm/BsMA-6c4MCPqfDAq.mjs} +2 -20
  77. package/{cdn/assets/D6iCivbxJB9YAHRy.js → browser/esm/C2nH1Z0Qv8dVA46o.mjs} +2 -14
  78. package/browser/esm/{B3SIwz6UDnshg1xz.mjs → C4ADTbdoMYv-xYb_.mjs} +1 -15
  79. package/browser/esm/C5ipzxDNB7mwOup8.mjs +10 -0
  80. package/browser/esm/{CxaMQw-I5c8XLq_x.mjs → CMICZ36cqe6eEELU.mjs} +16 -16
  81. package/{cdn/assets/3Oauro-m0-iFcqzH.js → browser/esm/CMwrohupcgVf9ovx.mjs} +163 -163
  82. package/browser/esm/{BjJVmzUi3VgBwYWL.mjs → CSvpcvVrtQMi5YMH.mjs} +1 -13
  83. package/browser/esm/{Cow5a04f6LqFGoQZ.mjs → CUFXsvWRmBglOxCh.mjs} +1 -13
  84. package/browser/esm/{iC6qNNMVatdQ7tzG.mjs → CUrekuBvZp8HzDRR.mjs} +1 -13
  85. package/{cdn/assets/CKJke70LtH4vX8Yy.js → browser/esm/CXM4duZAQ9xkx_-8.mjs} +1 -13
  86. package/browser/esm/C_9Upo5I-PSK47R_.mjs +10 -0
  87. package/browser/esm/{ako9wmFN1XdkwSc1.mjs → C_xUEkZ7r882X9Ha.mjs} +1 -19
  88. package/{cdn/assets/gu3uSTwzxG-Hq3Tn.js → browser/esm/CnenkhTeaOhTTMqv.mjs} +2 -8
  89. package/browser/esm/{DMc9rEXgTnQiUhVu.mjs → Ct9ZcjuuaNCX6kIj.mjs} +1 -13
  90. package/browser/esm/{BieQsUFphd-4Dl2o.mjs → Ctrv_0YzvwpnUr0y.mjs} +2 -14
  91. package/browser/esm/{rBWM2hNaaS5ELSY5.mjs → Cux5PsvHYlpp5b2x.mjs} +40 -46
  92. package/browser/esm/{DwdX0RUFwrRrBtRA.mjs → CvbAyNJlfhcCYfDr.mjs} +2 -8
  93. package/browser/esm/{D8I1NKgZQBM1OlB_.mjs → CxjY2TO23WNFisWX.mjs} +1 -13
  94. package/{cdn/assets/D7dirdQd4_w5Kf3O.js → browser/esm/Cz7RSKUHlEt4Sy6b.mjs} +6373 -6290
  95. package/browser/esm/{Xxw0Y9hXxIwKKGPq.mjs → D0wIYxN6_chAmwCc.mjs} +1 -13
  96. package/browser/esm/{sXwOwWbIPvtOcCOv.mjs → D3XmnZGIfxT4lk3w.mjs} +1 -13
  97. package/browser/esm/{D_mjyyaB1h7KHEAu.mjs → D6KZyFauO14Su023.mjs} +1 -13
  98. package/browser/esm/D8C3KeX9kFgFNEsb.mjs +10 -0
  99. package/browser/esm/DAW6ifi60VDar3-l.mjs +10 -0
  100. package/browser/esm/DDfN1juzl1hT_UFe.mjs +41 -0
  101. package/browser/esm/{TTYba_o2v8b2WWvm.mjs → DOGg1qByRfg3Xspr.mjs} +6 -32
  102. package/browser/esm/{DE5GJPPKB9akZnOl.mjs → DTeYi36ajMzmUc3x.mjs} +1 -13
  103. package/browser/esm/{CB7PEr_-y0BQWtqs.mjs → Dc1H2furircZlzN8.mjs} +13 -25
  104. package/{cdn/assets/DRNhrLbNn_6nGCEJ.js → browser/esm/Dd9etqsWH04KVyov.mjs} +12 -18
  105. package/{cdn/assets/Bn5K2xW-LDe4UKiG.js → browser/esm/DfKdydqLJ4MMUAow.mjs} +1 -13
  106. package/browser/esm/{BqvvewQdU3dKato4.mjs → DirjJILlmPlhPZwJ.mjs} +4 -28
  107. package/browser/esm/{Cfp-IQYhF8wI3U8j.mjs → DlF4ox6px_a8KGDI.mjs} +1 -13
  108. package/browser/esm/{BeFmG8d-eHZsiUqR.mjs → Dq8duLxf4-Tuo_wV.mjs} +5 -11
  109. package/browser/esm/{CRSV-894QtiDUmtJ.mjs → Dv5RrOnUwTMHeM7k.mjs} +8 -31
  110. package/{cdn/assets/B7MrO9H4Wh3DRVKy.js → browser/esm/HPDpApJMbty0fOGh.mjs} +3 -27
  111. package/browser/esm/{DhVke7KHq6lbQPZg.mjs → Ld4Og9zF7kdwc9Bq.mjs} +1 -13
  112. package/browser/esm/{vBbdzr5TIj8oCBOQ.mjs → MhA9JYSNQknyC2-7.mjs} +1 -13
  113. package/browser/esm/{DeZqllxB8Fy4CjwJ.mjs → TCHZxTIhWMVkgX3o.mjs} +1 -20
  114. package/browser/esm/{BGHKmUXsDDoutTYQ.mjs → TCyoIWnhQsOAGihq.mjs} +1 -7
  115. package/browser/esm/{OGU71t0PDjtl3-M4.mjs → XWOQU_sxt5_lFjJM.mjs} +1 -13
  116. package/browser/esm/{DbbapxCRGpFogl_Q.mjs → blfFjNlrt7wIm8ac.mjs} +1 -13
  117. package/browser/esm/index.mjs +2 -2
  118. package/browser/esm/nLQOv_3C-yTgOm_d.mjs +24 -0
  119. package/{cdn/assets/CVXeIfSHxFnpUSYz.js → browser/esm/nuGYHbGeWLkN7IFF.mjs} +1 -13
  120. package/{cdn/assets/pf0juu-OwjVx8NfT.js → browser/esm/on8xRgdppLtS76xu.mjs} +12 -16
  121. package/{browser/esm/CGCghKS4Jl7fGewC.mjs → cdn/assets/3N51fmivOwyOXT3l.js} +1 -13
  122. package/cdn/assets/{DQCWbcueShZFNwmV.js → 9ZJYmMX0oks56Dir.js} +16 -16
  123. package/{browser/esm/dYh86bRPKzI8ASeR.mjs → cdn/assets/B0h0MHiq87C7wRUG.js} +8 -14
  124. package/{browser/esm/Bqjg7PBsD1qpWapS.mjs → cdn/assets/B1m-ozjxrnDeFhiZ.js} +1 -13
  125. package/cdn/assets/{DwOLxNWTgpajuVoq.js → B537hPIx4O8b3yYs.js} +4 -28
  126. package/cdn/assets/{CGc5eC8iV73B-vAE.js → BDy4o1dgQMIqsMiY.js} +2 -2
  127. package/cdn/assets/BEdbC5wAfOjfWhGs.js +21 -0
  128. package/{browser/esm/Jv_Qhh-WUFMrxoID.mjs → cdn/assets/BH6ldKaAlNHAWreh.js} +7 -77
  129. package/{browser/esm/BF4cNyvUhV9e9yfu.mjs → cdn/assets/BHQC-R8MGLRzOxBA.js} +6 -12
  130. package/{browser/esm/CwpligBAfWbwjv90.mjs → cdn/assets/BM8e7ROZOHaAquLi.js} +1 -13
  131. package/cdn/assets/{tUcACmQVgT_vQZRd.js → BTTKTkAe7jTaQvjz.js} +1 -13
  132. package/{browser/esm/Cbs-rx1iLGiLCCUn.mjs → cdn/assets/BTXU6Aai-Ialy3og.js} +4799 -5022
  133. package/cdn/assets/{D_PCdhiJi26hHS-8.js → BUJQ7wUyL-iSUg8h.js} +5 -11
  134. package/{browser/esm/CYszs6SwCHoEdnWR.mjs → cdn/assets/BbtqTKem2BWD_lH0.js} +12 -18
  135. package/cdn/assets/Bjsc6wrUpvl_hjRj.js +12 -0
  136. package/cdn/assets/{DSaJvKGEG6fH2UFL.js → Bmo80_Qi8HeLXtBu.js} +2 -14
  137. package/{browser/esm/CZfsDeVlXP4VI0uK.mjs → cdn/assets/C0a277r4c7jdrbo-.js} +12 -16
  138. package/cdn/assets/{B3SIwz6UDnshg1xz.js → C4ADTbdoMYv-xYb_.js} +1 -15
  139. package/cdn/assets/C5ipzxDNB7mwOup8.js +10 -0
  140. package/{browser/esm/DXky7q8UrsTfgOl6.mjs → cdn/assets/C6VUt6vUMhiTBp21.js} +2 -20
  141. package/cdn/assets/{BRJtUnAFvJgElG8C.js → CKyyzgIojzuQ14Jb.js} +13 -25
  142. package/cdn/assets/{BjJVmzUi3VgBwYWL.js → CSvpcvVrtQMi5YMH.js} +1 -13
  143. package/cdn/assets/{Cow5a04f6LqFGoQZ.js → CUFXsvWRmBglOxCh.js} +1 -13
  144. package/cdn/assets/{iC6qNNMVatdQ7tzG.js → CUrekuBvZp8HzDRR.js} +1 -13
  145. package/cdn/assets/{DTaAiRRU2uWbT8Fc.js → CWmH4zsZyNsO9p41.js} +2 -8
  146. package/{browser/esm/CKJke70LtH4vX8Yy.mjs → cdn/assets/CXM4duZAQ9xkx_-8.js} +1 -13
  147. package/cdn/assets/C_9Upo5I-PSK47R_.js +10 -0
  148. package/cdn/assets/{ako9wmFN1XdkwSc1.js → C_xUEkZ7r882X9Ha.js} +1 -19
  149. package/{browser/esm/BaOp0-PqOpggAmtp.mjs → cdn/assets/CaN6N1dq3iIVO1hT.js} +9 -15
  150. package/{browser/esm/CsKXDEU_EhKwgwa2.mjs → cdn/assets/Cd3KcqA1q1QnCheo.js} +2 -8
  151. package/{browser/esm/CYvdymNohZi87Vmf.mjs → cdn/assets/CscbwTq6KR8XJrxB.js} +64 -64
  152. package/cdn/assets/{DMc9rEXgTnQiUhVu.js → Ct9ZcjuuaNCX6kIj.js} +1 -13
  153. package/cdn/assets/{D8I1NKgZQBM1OlB_.js → CxjY2TO23WNFisWX.js} +1 -13
  154. package/cdn/assets/{Xxw0Y9hXxIwKKGPq.js → D0wIYxN6_chAmwCc.js} +1 -13
  155. package/{browser/esm/Cz7ockkCtKQwddun.mjs → cdn/assets/D1QeQpmRY9PDIMEz.js} +3 -27
  156. package/cdn/assets/{sXwOwWbIPvtOcCOv.js → D3XmnZGIfxT4lk3w.js} +1 -13
  157. package/cdn/assets/{D_mjyyaB1h7KHEAu.js → D6KZyFauO14Su023.js} +1 -13
  158. package/cdn/assets/D8C3KeX9kFgFNEsb.js +10 -0
  159. package/cdn/assets/DAW6ifi60VDar3-l.js +10 -0
  160. package/{browser/esm/DmwBpm4ERYyxSyyJ.mjs → cdn/assets/DHDTA2yZ7ODlBAXM.js} +2 -14
  161. package/{browser/esm/DpDIV4Iz_niumLpB.mjs → cdn/assets/DIOp5ZkL1dY68cMH.js} +2 -8
  162. package/cdn/assets/{DE5GJPPKB9akZnOl.js → DTeYi36ajMzmUc3x.js} +1 -13
  163. package/{browser/esm/Bn5K2xW-LDe4UKiG.mjs → cdn/assets/DfKdydqLJ4MMUAow.js} +1 -13
  164. package/cdn/assets/DfNI2EiuegVK3udt.js +41 -0
  165. package/cdn/assets/DfQ3XXU3pjhhAldB.js +29 -0
  166. package/cdn/assets/{Cfp-IQYhF8wI3U8j.js → DlF4ox6px_a8KGDI.js} +1 -13
  167. package/cdn/assets/{DDVokEjcl6-19dbU.js → E-GOcSTy1uY4Oj3I.js} +6 -32
  168. package/cdn/assets/{DhVke7KHq6lbQPZg.js → Ld4Og9zF7kdwc9Bq.js} +1 -13
  169. package/cdn/assets/{vBbdzr5TIj8oCBOQ.js → MhA9JYSNQknyC2-7.js} +1 -13
  170. package/cdn/assets/{CVOFtLS3D3hpykUP.js → OMD1-UUDvqKr1SYQ.js} +8 -31
  171. package/cdn/assets/{DeZqllxB8Fy4CjwJ.js → TCHZxTIhWMVkgX3o.js} +1 -20
  172. package/cdn/assets/{BGHKmUXsDDoutTYQ.js → TCyoIWnhQsOAGihq.js} +1 -7
  173. package/cdn/assets/{OGU71t0PDjtl3-M4.js → XWOQU_sxt5_lFjJM.js} +1 -13
  174. package/cdn/assets/{BzLOGtjuaZ3Mji-F.js → b4A5hTjHI0rNI6Qk.js} +40 -46
  175. package/cdn/assets/{DbbapxCRGpFogl_Q.js → blfFjNlrt7wIm8ac.js} +1 -13
  176. package/{browser/esm/HiDBwKQDu71n9dYT.mjs → cdn/assets/jNoWEx25dsSqFAso.js} +3 -15
  177. package/cdn/assets/nLQOv_3C-yTgOm_d.js +24 -0
  178. package/{browser/esm/CVXeIfSHxFnpUSYz.mjs → cdn/assets/nuGYHbGeWLkN7IFF.js} +1 -13
  179. package/cdn/index.js +2 -2
  180. package/cdn/loader.js +1 -1
  181. package/package.json +5 -10
  182. package/browser/cjs/B4tuWKTrIZsK5so4.cjs +0 -30
  183. package/browser/cjs/B5_w23_mUAW0fmJf.cjs +0 -6
  184. package/browser/cjs/BBXoDmENVubxlArs.cjs +0 -16
  185. package/browser/cjs/BFjFhtH4OqOirVjz.cjs +0 -524
  186. package/browser/cjs/BlYWr2BKhS18L5sc.cjs +0 -21
  187. package/browser/cjs/Bqucdx31CZbbWECx.cjs +0 -22
  188. package/browser/cjs/ByAzlBbjSnhZyx7J.cjs +0 -17
  189. package/browser/cjs/Cd5lC1p9vwmY8bXk.cjs +0 -30
  190. package/browser/cjs/Cw23_9oAnZq0oGKM.cjs +0 -17
  191. package/browser/cjs/D0RwDzLW2tAOaOgp.cjs +0 -21
  192. package/browser/cjs/D3jW9_q5k1lOmEQd.cjs +0 -17
  193. package/browser/cjs/DVih-qsORYLFDJ00.cjs +0 -6
  194. package/browser/cjs/DW3yV3bFjBYU9FNp.cjs +0 -33
  195. package/browser/cjs/Dg-_EjDMveR9eAsS.cjs +0 -21
  196. package/browser/cjs/wHFkNUwHgS4n79oY.cjs +0 -16
  197. package/browser/esm/B0bFoOwu-SXqZdUA.mjs +0 -22
  198. package/browser/esm/C53n3eOUOu4IDUnv.mjs +0 -24
  199. package/browser/esm/CDdRITGs1_hk1Kax.mjs +0 -42
  200. package/browser/esm/CPlfXwZn952WQ8tu.mjs +0 -22
  201. package/browser/esm/CUR7HVbE-MYKeGoV.mjs +0 -47
  202. package/browser/esm/CZj7MpGmmgaB8lkL.mjs +0 -40
  203. package/browser/esm/CnShx-cVURfKpVVG.mjs +0 -22
  204. package/browser/esm/D2GULUblN-TF8TA3.mjs +0 -22
  205. package/browser/esm/Dakx8EXKki7IUQWD.mjs +0 -53
  206. package/cdn/assets/B0bFoOwu-SXqZdUA.js +0 -22
  207. package/cdn/assets/C53n3eOUOu4IDUnv.js +0 -24
  208. package/cdn/assets/CDdRITGs1_hk1Kax.js +0 -42
  209. package/cdn/assets/CPlfXwZn952WQ8tu.js +0 -22
  210. package/cdn/assets/CZj7MpGmmgaB8lkL.js +0 -40
  211. package/cdn/assets/CnShx-cVURfKpVVG.js +0 -22
  212. package/cdn/assets/D2GULUblN-TF8TA3.js +0 -22
  213. package/cdn/assets/DotQ8xRWqk7D6hez.js +0 -47
  214. package/cdn/assets/S1pQULnXsDtSBJpY.js +0 -53
@@ -1,10 +1,10 @@
1
1
  import { jsx as g, jsxs as se, Fragment as Gt } from "react/jsx-runtime";
2
2
  import * as ve from "react";
3
3
  import T, { memo as Me, forwardRef as ce, useRef as le, useMemo as te, useState as ae, useEffect as K, useLayoutEffect as dt, useCallback as ne, Component as Kt, createElement as fe, createContext as xn, useContext as yn, isValidElement as wn, cloneElement as vn } from "react";
4
- import { D as xt, E as yt, G as Je, N as En, P as Cn, V as Sn, W as Ln, X as Mn, Z as He, _ as wt, a0 as vt, a1 as Mt, a2 as Dn, a3 as Tn, a4 as Zt, a5 as On, a6 as Wn, a7 as ie, a8 as Xt, a9 as Dt, r as nt, aa as pt, ab as Fn, ac as Nn, i as Tt, ad as ye, ae as Qt, af as An, ag as Jt, ah as Rn, ai as mt, aj as Yt, ak as In, al as Pn, am as Hn, an as jn, ao as zn, ap as _n, aq as qn, B as xe, ar as Bn, J as Vn, as as $n, at as ht, au as Un, av as Gn, aw as Kn, ax as Zn, ay as Xn, az as Qn, y as Jn, aA as ee, aB as We, aC as Ot, aD as Yn, aE as eo, aF as to, aG as no, aH as oo, aI as ro, aJ as ot, aK as Fe, aL as ao, aM as io, aN as so, aO as lo, aP as Wt, aQ as Ft, aR as co, aS as uo, aT as po, aU as mo, aV as _e, aW as ho } from "./D7dirdQd4_w5Kf3O.js";
4
+ import { E as xt, G as yt, H as Je, I as En, L as Cn, O as Sn, P as Ln, Q as Mn, Z as He, $ as wt, a0 as vt, a1 as Mt, a2 as Dn, a3 as Tn, a4 as Zt, a5 as On, a6 as Wn, a7 as ie, a8 as Qt, a9 as Dt, r as nt, aa as pt, ab as Fn, ac as Nn, l as Tt, ad as ye, ae as Xt, af as An, ag as Jt, ah as Rn, ai as mt, aj as Yt, ak as In, al as Pn, am as Hn, an as jn, ao as zn, ap as _n, aq as qn, c as xe, ar as Bn, J as Vn, as as $n, at as ht, au as Un, av as Gn, aw as Kn, ax as Zn, ay as Qn, az as Xn, A as Jn, aA as ee, aB as We, aC as Ot, aD as Yn, aE as eo, aF as to, aG as no, aH as oo, aI as ro, aJ as ot, aK as Fe, aL as ao, aM as io, aN as so, aO as lo, aP as Wt, aQ as Ft, aR as co, aS as uo, aT as po, aU as mo, aV as _e, aW as ho } from "./BTXU6Aai-Ialy3og.js";
5
5
  import { createPortal as fo } from "react-dom";
6
6
  /**
7
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
7
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -20,16 +20,16 @@ const ko = He("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e,
20
20
  const r = Je({ props: e, name: "MuiCollapse" }), { addEndListener: t, children: n, className: a, collapsedSize: i = "0px", component: l, easing: s, in: c, onEnter: u, onEntered: m, onEntering: k, onExit: y, onExited: b, onExiting: f, orientation: x = "vertical", style: h, timeout: d = En.standard, TransitionComponent: L = Cn, ...w } = r, R = { ...r, orientation: x, collapsedSize: i }, M = ((C) => {
21
21
  const { orientation: W, classes: V } = C;
22
22
  return vt({ root: ["root", `${W}`], entered: ["entered"], hidden: ["hidden"], wrapper: ["wrapper", `${W}`], wrapperInner: ["wrapperInner", `${W}`] }, go, V);
23
- })(R), H = Sn(), q = Ln(), N = ve.useRef(null), z = ve.useRef(), G = typeof i == "number" ? `${i}px` : i, Q = x === "horizontal", I = Q ? "width" : "height", oe = ve.useRef(null), A = Mn(o, oe), E = (C) => (W) => {
23
+ })(R), H = Sn(), q = Ln(), N = ve.useRef(null), z = ve.useRef(), G = typeof i == "number" ? `${i}px` : i, X = x === "horizontal", I = X ? "width" : "height", oe = ve.useRef(null), A = Mn(o, oe), E = (C) => (W) => {
24
24
  if (C) {
25
25
  const V = oe.current;
26
26
  W === void 0 ? C(V) : C(V, W);
27
27
  }
28
- }, S = () => N.current ? N.current[Q ? "clientWidth" : "clientHeight"] : 0, P = E((C, W) => {
29
- N.current && Q && (N.current.style.position = "absolute"), C.style[I] = G, u && u(C, W);
28
+ }, S = () => N.current ? N.current[X ? "clientWidth" : "clientHeight"] : 0, P = E((C, W) => {
29
+ N.current && X && (N.current.style.position = "absolute"), C.style[I] = G, u && u(C, W);
30
30
  }), D = E((C, W) => {
31
31
  const V = S();
32
- N.current && Q && (N.current.style.position = "");
32
+ N.current && X && (N.current.style.position = "");
33
33
  const { duration: re, easing: me } = Mt({ style: h, timeout: d, easing: s }, { mode: "enter" });
34
34
  if (d === "auto") {
35
35
  const ue = H.transitions.getAutoHeightDuration(V);
@@ -50,7 +50,7 @@ const ko = He("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e,
50
50
  });
51
51
  return g(L, { in: c, onEnter: P, onEntered: B, onEntering: D, onExit: _, onExited: J, onExiting: j, addEndListener: (C) => {
52
52
  d === "auto" && q.start(z.current || 0, C), t && t(oe.current, C);
53
- }, nodeRef: oe, timeout: d === "auto" ? null : d, ...w, children: (C, { ownerState: W, ...V }) => g(ko, { as: l, className: wt(M.root, a, { entered: M.entered, exited: !c && G === "0px" && M.hidden }[C]), style: { [Q ? "minWidth" : "minHeight"]: G, ...h }, ref: A, ownerState: { ...R, state: C }, ...V, children: g(bo, { ownerState: { ...R, state: C }, className: M.wrapper, ref: N, children: g(xo, { ownerState: { ...R, state: C }, className: M.wrapperInner, children: n }) }) }) });
53
+ }, nodeRef: oe, timeout: d === "auto" ? null : d, ...w, children: (C, { ownerState: W, ...V }) => g(ko, { as: l, className: wt(M.root, a, { entered: M.entered, exited: !c && G === "0px" && M.hidden }[C]), style: { [X ? "minWidth" : "minHeight"]: G, ...h }, ref: A, ownerState: { ...R, state: C }, ...V, children: g(bo, { ownerState: { ...R, state: C }, className: M.wrapper, ref: N, children: g(xo, { ownerState: { ...R, state: C }, className: M.wrapperInner, children: n }) }) }) });
54
54
  });
55
55
  function yo(e) {
56
56
  return xt("MuiCard", e);
@@ -97,12 +97,6 @@ function To(e) {
97
97
  return se(ve.Fragment, { children: [gt && g(Do, { enableColorScheme: t }), !gt && !t && g("span", { className: Ze, style: { display: "none" } }), r] });
98
98
  }
99
99
  const Oo = On(g("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z" }), "CancelOutlined"), Wo = xn(null), rt = { didCatch: !1, error: null };
100
- /**
101
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
102
- *
103
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
104
- * License: The license can be found at https://www.sheetxl.com/license.
105
- */
106
100
  class Fo extends Kt {
107
101
  constructor(o) {
108
102
  super(o), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = rt;
@@ -232,7 +226,7 @@ function Rt(e) {
232
226
  kt.bind({ g: 1 }), kt.bind({ k: 1 });
233
227
  var It = function() {
234
228
  return "";
235
- }, rn = T.createContext({ enqueueSnackbar: It, closeSnackbar: It }), at = "@media (max-width:599.95px)", Xe = "@media (min-width:600px)", Pt = function(e) {
229
+ }, rn = T.createContext({ enqueueSnackbar: It, closeSnackbar: It }), at = "@media (max-width:599.95px)", Qe = "@media (min-width:600px)", Pt = function(e) {
236
230
  return e.charAt(0).toUpperCase() + e.slice(1);
237
231
  }, Et = function(e) {
238
232
  return "" + Pt(e.vertical) + Pt(e.horizontal);
@@ -325,7 +319,7 @@ function bt(e, o) {
325
319
  };
326
320
  }, [e, o]);
327
321
  }
328
- function Qe(e) {
322
+ function Xe(e) {
329
323
  var o = e.timeout, r = e.style, t = r === void 0 ? {} : r, n = e.mode;
330
324
  return { duration: typeof o == "object" ? o[n] || 0 : o, easing: t.transitionTimingFunction, delay: t.transitionDelay };
331
325
  }
@@ -404,10 +398,10 @@ var ln = ce(function(e, o) {
404
398
  }, [a, h]), fe(Ct, Object.assign({ appear: !0, nodeRef: b, onEnter: function(d, L) {
405
399
  Ve(n, d), an(d), c && c(d, L);
406
400
  }, onEntered: u, onEntering: function(d) {
407
- var L = Qe({ timeout: s, mode: "enter", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.0, 0, 0.2, 1)" }) });
401
+ var L = Xe({ timeout: s, mode: "enter", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.0, 0, 0.2, 1)" }) });
408
402
  d.style.webkitTransition = Le("-webkit-transform", L), d.style.transition = Le("transform", L), d.style.webkitTransform = "none", d.style.transform = "none";
409
403
  }, onExit: function(d) {
410
- var L = Qe({ timeout: s, mode: "exit", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.4, 0, 0.6, 1)" }) });
404
+ var L = Xe({ timeout: s, mode: "exit", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.4, 0, 0.6, 1)" }) });
411
405
  d.style.webkitTransition = Le("-webkit-transform", L), d.style.transition = Le("transform", L), Ve(n, d), m && m(d);
412
406
  }, onExited: function(d) {
413
407
  d.style.webkitTransition = "", d.style.transition = "", k && k(d);
@@ -448,13 +442,13 @@ var cn = "notistack-CollapseWrapper", Io = function(e) {
448
442
  }, onEntered: function(c) {
449
443
  c.style.height = "auto";
450
444
  }, onEntering: function(c) {
451
- var u = s(), m = Qe({ timeout: 175, mode: "enter" }), k = m.duration, y = m.easing;
445
+ var u = s(), m = Xe({ timeout: 175, mode: "enter" }), k = m.duration, y = m.easing;
452
446
  c.style.transitionDuration = typeof k == "string" ? k : k + "ms", c.style.height = u + "px", c.style.transitionTimingFunction = y || "";
453
447
  }, onExit: function(c) {
454
448
  c.style.height = s() + "px";
455
449
  }, onExited: n, onExiting: function(c) {
456
450
  an(c);
457
- var u = Qe({ timeout: 175, mode: "exit" }), m = u.duration, k = u.easing;
451
+ var u = Xe({ timeout: 175, mode: "exit" }), m = u.duration, k = u.easing;
458
452
  c.style.transitionDuration = typeof m == "string" ? m : m + "ms", c.style.height = it, c.style.transitionTimingFunction = k || "";
459
453
  }, nodeRef: i, timeout: 175 }, function(c, u) {
460
454
  return fe("div", Object.assign({ ref: l, className: ge(_t.root, c === "entered" && _t.entered), style: O({ pointerEvents: "all", overflow: "hidden", minHeight: it, transition: Le("height") }, c === "entered" && { overflow: "visible" }, {}, c === "exited" && !t && { visibility: "hidden" }) }, u), fe("div", { ref: a, className: cn, style: { display: "flex", width: "100%" } }, r));
@@ -512,7 +506,7 @@ var st, dn = ce(function(e, o) {
512
506
  } }), r);
513
507
  });
514
508
  dn.displayName = "Snackbar";
515
- var zo = ze({ root: (st = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, st[Xe] = { flexGrow: "initial", minWidth: "288px" }, st) }), St = ce(function(e, o) {
509
+ var zo = ze({ root: (st = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, st[Qe] = { flexGrow: "initial", minWidth: "288px" }, st) }), St = ce(function(e, o) {
516
510
  var r = e.className, t = je(e, ["className"]);
517
511
  return T.createElement("div", Object.assign({ ref: o, className: ge(zo.root, r) }, t));
518
512
  });
@@ -542,8 +536,8 @@ var Re, lt, Ue, Ge, ct, _o = Me(pn), qo = ze({ wrappedRoot: { width: "100%", pos
542
536
  return Object.keys(q).filter(function(z) {
543
537
  return !N[z];
544
538
  }).reduce(function(z, G) {
545
- var Q;
546
- return O({}, z, ((Q = {})[G] = q[G], Q));
539
+ var X;
540
+ return O({}, z, ((X = {})[G] = q[G], X));
547
541
  }, {});
548
542
  }(c);
549
543
  }, [c]), y = s.open, b = s.SnackbarProps, f = s.TransitionComponent, x = s.TransitionProps, h = s.transitionDuration, d = s.disableWindowBlurListener, L = s.content, w = je(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), R = O({ direction: (l = w.anchorOrigin, l.horizontal !== "center" ? qt[l.horizontal] : qt[l.vertical]), timeout: h }, x), M = L;
@@ -555,7 +549,7 @@ var Re, lt, Ue, Ge, ct, _o = Me(pn), qo = ze({ wrappedRoot: { width: "100%", pos
555
549
  return T.createElement(un, { in: t, onExited: H.onExited }, T.createElement(dn, { open: y, id: w.id, disableWindowBlurListener: d, autoHideDuration: w.autoHideDuration, className: ge(qo.wrappedRoot, k.root, k[Po(w.anchorOrigin)]), SnackbarProps: b, onClose: a }, T.createElement(f, Object.assign({}, R, { appear: !0, in: y, onExit: H.onExit, onExited: i, onEnter: H.onEnter, onEntered: Pe([H.onEntered, function() {
556
550
  e.snack.requestClose && a(null, "instructed", e.snack.id);
557
551
  }], w.id) }), M || T.createElement(m, Object.assign({}, w)))));
558
- }, Ie = 20, ut = 6, Vo = 2, $t = "." + cn, Ke = ze({ root: (Re = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Le(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Re[$t] = { padding: ut + "px 0px", transition: "padding 300ms ease 0ms" }, Re.maxWidth = "calc(100% - " + 2 * Ie + "px)", Re[at] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Re), rootDense: (lt = {}, lt[$t] = { padding: Vo + "px 0px" }, lt), top: { top: Ie - ut + "px", flexDirection: "column" }, bottom: { bottom: Ie - ut + "px", flexDirection: "column-reverse" }, left: (Ue = { left: Ie + "px" }, Ue[Xe] = { alignItems: "flex-start" }, Ue[at] = { left: "16px" }, Ue), right: (Ge = { right: Ie + "px" }, Ge[Xe] = { alignItems: "flex-end" }, Ge[at] = { right: "16px" }, Ge), center: (ct = { left: "50%", transform: "translateX(-50%)" }, ct[Xe] = { alignItems: "center" }, ct) }), $o = Me(function(e) {
552
+ }, Ie = 20, ut = 6, Vo = 2, $t = "." + cn, Ke = ze({ root: (Re = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Le(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Re[$t] = { padding: ut + "px 0px", transition: "padding 300ms ease 0ms" }, Re.maxWidth = "calc(100% - " + 2 * Ie + "px)", Re[at] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Re), rootDense: (lt = {}, lt[$t] = { padding: Vo + "px 0px" }, lt), top: { top: Ie - ut + "px", flexDirection: "column" }, bottom: { bottom: Ie - ut + "px", flexDirection: "column-reverse" }, left: (Ue = { left: Ie + "px" }, Ue[Qe] = { alignItems: "flex-start" }, Ue[at] = { left: "16px" }, Ue), right: (Ge = { right: Ie + "px" }, Ge[Qe] = { alignItems: "flex-end" }, Ge[at] = { right: "16px" }, Ge), center: (ct = { left: "50%", transform: "translateX(-50%)" }, ct[Qe] = { alignItems: "center" }, ct) }), $o = Me(function(e) {
559
553
  var o = e.classes, r = o === void 0 ? {} : o, t = e.anchorOrigin, n = e.dense, a = e.children, i = ge("notistack-SnackbarContainer", Ke[t.vertical], Ke[t.horizontal], Ke.root, r.containerRoot, r["containerAnchorOrigin" + Et(t)], n && Ke.rootDense);
560
554
  return T.createElement("div", { className: i }, a);
561
555
  }), Ut = function(e) {
@@ -653,7 +647,7 @@ var Re, lt, Ue, Ge, ct, _o = Me(pn), qo = ze({ wrappedRoot: { width: "100%", pos
653
647
  }(Kt), mn = function() {
654
648
  return yn(rn);
655
649
  };
656
- const pe = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, hn = ce((e, o) => {
650
+ const pe = { card: "_card_r6a8n_13", actionRoot: "_actionRoot_r6a8n_21", icons: "_icons_r6a8n_31", expand: "_expand_r6a8n_43", expandOpen: "_expandOpen_r6a8n_57", stackTraceContainer: "_stackTraceContainer_r6a8n_65" }, hn = ce((e, o) => {
657
651
  const { id: r, message: t, iconVariant: n, error: a, hideIconVariant: i, ...l } = e, { closeSnackbar: s } = mn(), c = Vn(), [u, m] = ae(!1), k = ne(() => {
658
652
  m((f) => !f);
659
653
  }, []), y = ne(() => {
@@ -703,7 +697,7 @@ const kn = Me(ce((e, o) => {
703
697
  h((A) => ({ ...A, isMounted: !0 }));
704
698
  }, []), L = ne(() => {
705
699
  h((A) => ({ ...A, isMounted: !1 }));
706
- }, []), w = Zn(), R = Xn(), M = Qn(), H = le(/* @__PURE__ */ new Set()), q = te(() => {
700
+ }, []), w = Zn(), R = Qn(), M = Xn(), H = le(/* @__PURE__ */ new Set()), q = te(() => {
707
701
  const A = (E, S) => {
708
702
  if (S?.onceKey) {
709
703
  if (H.current.has(S.onceKey)) return;
@@ -726,29 +720,29 @@ const kn = Me(ce((e, o) => {
726
720
  const D = { ...S, onKeyDown: (B) => {
727
721
  u?.dispatchToFocusedCommand(B), B.isDefaultPrevented() || B.isPropagationStopped() || S?.onKeyDown?.(B);
728
722
  } };
729
- return w(E, { sort: () => import("./DTaAiRRU2uWbT8Fc.js"), numberFormat: () => import("./vhG_0swcLosZTyyb.js"), hyperlink: () => import("./C9pcd-6v0BwN-Nrg.js"), comments: () => import("./D6CGsM4vcM8GtGg4.js"), find: () => import("./DQCWbcueShZFNwmV.js"), tableDetails: () => import("./D_PCdhiJi26hHS-8.js"), tableNew: () => import("./0KJ23PTXKNiflMEW.js"), namedDetails: () => import("./DRNhrLbNn_6nGCEJ.js") }[E], D, P);
723
+ return w(E, { sort: () => import("./CWmH4zsZyNsO9p41.js"), numberFormat: () => import("./B0h0MHiq87C7wRUG.js"), hyperlink: () => import("./BHQC-R8MGLRzOxBA.js"), comments: () => import("./Cd3KcqA1q1QnCheo.js"), find: () => import("./9ZJYmMX0oks56Dir.js"), tableDetails: () => import("./BUJQ7wUyL-iSUg8h.js"), tableNew: () => import("./CaN6N1dq3iIVO1hT.js"), namedDetails: () => import("./BbtqTKem2BWD_lH0.js") }[E], D, P);
730
724
  }, showOptions: R, showInputOptions: M, showError: (E) => {
731
725
  let S, P = _e.Error, D = "Unknown Error";
732
726
  typeof E == "string" ? D = E : E instanceof Error && (S = E, E.message && (D = E.message)), E instanceof ho && (P = _e.Info), A(D, { type: P, enqueueProps: { error: S } });
733
727
  } };
734
728
  }, []), N = ne(() => {
735
729
  }, []), z = ((A) => {
736
- const { workbook: E, setWorkbook: S, importExportDisabled: P, workbookTitle: D = "export", setWorkbookTitle: B, notifier: _, requestWorkbookTitle: J, themeModeOptions: j, undoManager: C, commands: W, onExecute: V } = A, re = ie(j?.onForceModeChange, [j?.onForceModeChange]), me = ie(j?.onForceLightGridChange, [j?.onForceLightGridChange]), ue = ie(j?.onForceLightImagesChange, [j?.onForceLightImagesChange]), Ye = ie(async (F = null, X = null) => {
730
+ const { workbook: E, setWorkbook: S, importExportDisabled: P, workbookTitle: D = "export", setWorkbookTitle: B, notifier: _, requestWorkbookTitle: J, themeModeOptions: j, undoManager: C, commands: W, onExecute: V } = A, re = ie(j?.onForceModeChange, [j?.onForceModeChange]), me = ie(j?.onForceLightGridChange, [j?.onForceLightGridChange]), ue = ie(j?.onForceLightImagesChange, [j?.onForceLightImagesChange]), Ye = ie(async (F = null, Q = null) => {
737
731
  const p = [];
738
732
  let v, $ = null, Y = null;
739
733
  if (typeof F == "string" ? Y = F : $ = F, v = $ ? F : await Jn.openFileDialog(Y ?? ye.getAllReadFormatTypeAsString().join(",")), !v) return null;
740
- const he = { source: v, constructorOptions: X, onWarning: (tt) => {
734
+ const he = { source: v, constructorOptions: Q, onWarning: (tt) => {
741
735
  p.push(tt);
742
736
  } }, Oe = await ye.read(he, _);
743
737
  return p.length > 0 && (_?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
744
738
  ` + p.join(`
745
739
  `))), Oe;
746
- }, [V, _, E]), De = ie(async (F, X, p) => {
747
- if (!X && J) {
740
+ }, [V, _, E]), De = ie(async (F, Q, p) => {
741
+ if (!Q && J) {
748
742
  const v = await J("Enter Workbook name to " + (p.isDefault ? "Save." : `Export as ${p.description}.`));
749
743
  return v !== null && ye.writeFile(v, F, { formatType: p.key });
750
744
  }
751
- return ye.writeFile(X, F, { formatType: p.key });
745
+ return ye.writeFile(Q, F, { formatType: p.key });
752
746
  }, [_, E, J]), U = ne(() => ({ contains: (F) => !0, focus() {
753
747
  } }), []), ke = te(() => {
754
748
  const F = [];
@@ -789,8 +783,8 @@ const kn = Me(ce((e, o) => {
789
783
  }
790
784
  p && console.log("openWorkbookFromUrl", p);
791
785
  })));
792
- let X = [];
793
- return j && (X = [new ee("themeMode", U, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", U, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("forceLightGrid", U, { label: "Force Light Grid", description: "Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("forceLightImages", U, { label: "Force Light Images", description: "Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...F, ...X, new Ot("help", U, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
786
+ let Q = [];
787
+ return j && (Q = [new ee("themeMode", U, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", U, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("forceLightGrid", U, { label: "Force Light Grid", description: "Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("forceLightImages", U, { label: "Force Light Images", description: "Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...F, ...Q, new Ot("help", U, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
794
788
  }), new Ot("showKeyboardShortcuts", U, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [We.Ctrl] } }, () => {
795
789
  }), new ee("gotoUrlGithub", U, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
796
790
  window?.open("https://github.com/sheetxl/sheetxl");
@@ -803,10 +797,10 @@ const kn = Me(ce((e, o) => {
803
797
  })];
804
798
  }, [E, D, _, P, j, W, C]), Z = te(() => {
805
799
  let F = null;
806
- return F = W ? W.createChildGroup(U, "standaloneWorkbook", !1) : new Qt(U, "standaloneWorkbook"), F.addCommands(ke, !0), F;
800
+ return F = W ? W.createChildGroup(U, "standaloneWorkbook", !1) : new Xt(U, "standaloneWorkbook"), F.addCommands(ke, !0), F;
807
801
  }, [W, ke]);
808
802
  Yn({ manager: C, commands: Z, notifier: _ });
809
- const { themeMode: Te } = Xt();
803
+ const { themeMode: Te } = Qt();
810
804
  K(() => {
811
805
  if (!j || !Z) return;
812
806
  const F = j.forceMode === "dark" || !j.forceMode && Te === "dark";
@@ -822,11 +816,11 @@ const kn = Me(ce((e, o) => {
822
816
  }, [Te, j, ke]);
823
817
  const { showModal: et } = eo();
824
818
  return K(() => {
825
- const F = () => new Promise((X, p) => {
826
- const v = T.lazy(() => import("./3Oauro-m0-iFcqzH.js")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
819
+ const F = () => new Promise((Q, p) => {
820
+ const v = T.lazy(() => import("./CscbwTq6KR8XJrxB.js")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
827
821
  $.hide();
828
822
  }, TransitionProps: { onExited: () => {
829
- X(!0);
823
+ Q(!0);
830
824
  } } });
831
825
  });
832
826
  Z.getCommand("showKeyboardShortcuts").updateCallback(() => F()), Z.getCommand("help").updateCallback(() => F());
@@ -850,16 +844,16 @@ const kn = Me(ce((e, o) => {
850
844
  }), { ...A, starting: /* @__PURE__ */ new Map(), running: E };
851
845
  });
852
846
  }, [x]);
853
- const [G, Q] = ae(null);
847
+ const [G, X] = ae(null);
854
848
  K(() => {
855
- x.starting.size !== 0 || x.running.size !== 0 ? Q(g(Jt, { icon: g(to, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: x.label, onMount: d, onUnmount: L, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : Q(null);
849
+ x.starting.size !== 0 || x.running.size !== 0 ? X(g(Jt, { icon: g(to, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: x.label, onMount: d, onUnmount: L, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : X(null);
856
850
  }, [x.starting, x.running]);
857
851
  const I = te(() => g(no, { commands: z, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [z]), oe = { notifier: q, commands: z };
858
852
  return r && (oe.statusBarProps = { childrenEnd: I }), se(Gt, { children: [G, s ? T.cloneElement(s, oe) : null] });
859
853
  }));
860
854
  kn.displayName = "SnackbarAndCommandsWrapper";
861
855
  const bn = Me(ce((e, o) => {
862
- const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: l, errorPanel: s = Wn, onKeyDown: c, workbook: u, createWorkbookOptions: m, onWorkbookChange: k, logo: y, importExportDisabled: b = !1, themeModeOptions: f, autoFocus: x = !1, commands: h, title: d, onTitleChange: L, titleProps: w, ...R } = e, M = le(null), H = ie(k, [k]), q = ie(L ?? w?.onTitleChange, [L ?? w?.onTitleChange]), N = w?.placeHolder ?? "Untitled", z = f?.forceMode, { themeMode: G, source: Q } = Xt({ mode: z }), I = te(() => ({ ...f, light: Dt(!1, nt.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Dt(!0, nt.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), oe = G === pt.Dark, [A, E] = ae(null);
856
+ const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: l, errorPanel: s = Wn, onKeyDown: c, workbook: u, createWorkbookOptions: m, onWorkbookChange: k, logo: y, importExportDisabled: b = !1, themeModeOptions: f, autoFocus: x = !1, commands: h, title: d, onTitleChange: L, titleProps: w, ...R } = e, M = le(null), H = ie(k, [k]), q = ie(L ?? w?.onTitleChange, [L ?? w?.onTitleChange]), N = w?.placeHolder ?? "Untitled", z = f?.forceMode, { themeMode: G, source: X } = Qt({ mode: z }), I = te(() => ({ ...f, light: Dt(!1, nt.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Dt(!0, nt.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), oe = G === pt.Dark, [A, E] = ae(null);
863
857
  K(() => {
864
858
  E(l ?? new Fn());
865
859
  }, [l]);
@@ -904,7 +898,7 @@ const bn = Me(ce((e, o) => {
904
898
  const [re, me] = ae(null), ue = te(() => {
905
899
  const p = () => ({ contains: (v) => !0, focus() {
906
900
  } });
907
- return h ? h.createChildGroup(p, "application", !1) : new Qt(p, "application");
901
+ return h ? h.createChildGroup(p, "application", !1) : new Xt(p, "application");
908
902
  }, [h]), Ye = ie((p) => {
909
903
  me(p.source.getViewportElement()), j(p), ue.activate("sheet"), a?.(p);
910
904
  }, [ue]);
@@ -931,15 +925,15 @@ const bn = Me(ce((e, o) => {
931
925
  c?.(Y);
932
926
  }, gridTheme: v, headersTheme: p, forceLightImages: $, className: mt(r, "sheetxl-workbook"), onContextMenu: (Y) => Y.preventDefault(), ...R }, "WorkbookElement");
933
927
  }, [S, W, A, ke, I, R, U, Te]);
934
- let X = g(Fo, { fallbackRender: Z, children: g(Uo, { maxSnack: 3, domRoot: re, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, v, $) => {
928
+ let Q = g(Fo, { fallbackRender: Z, children: g(Uo, { maxSnack: 3, domRoot: re, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, v, $) => {
935
929
  M.current?.focus();
936
930
  }, Components: { error: hn }, iconVariant: { success: g(Hn, { style: { marginRight: "8px" }, children: g("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: g(Pn, { style: { marginRight: "8px" } }) }, children: g(In, { children: g(kn, { workbook: S?.workbook, setWorkbook: B, importExportDisabled: b, titlePlaceHolder: N, titleWorkbook: W, setWorkbookTitle: V, refWorkbookTitle: De, commands: ue, undoManager: A, themeModeOptions: I, children: F }) }) }) });
937
- return I && (X = se(jn, { theme: oe ? I.dark : I.light, children: [I.cssBaseline ? g(To, {}) : null, X] })), X;
931
+ return I && (Q = se(jn, { theme: oe ? I.dark : I.light, children: [I.cssBaseline ? g(To, {}) : null, Q] })), Q;
938
932
  }));
939
933
  bn.displayName = "EagerStandaloneWorkbook";
940
934
  const Ko = Object.freeze(Object.defineProperty({ __proto__: null, default: bn }, Symbol.toStringTag, { value: "Module" })), Yo = Object.freeze(Object.defineProperty({ __proto__: null, E: Ko, c: ge }, Symbol.toStringTag, { value: "Module" }));
941
935
  export {
936
+ Yo as B,
942
937
  ft as C,
943
- ge as f,
944
- Yo as w
938
+ ge as f
945
939
  };
@@ -1,17 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
9
- *
10
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
- * License: The license can be found at https://www.sheetxl.com/license.
12
- */
13
- /**
14
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
15
3
  *
16
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
17
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,19 +1,7 @@
1
- import { aX as k, o as T, aY as G, q as Q, S as W, aZ as C, a_ as tt, a$ as P, M as et, y as Y, b0 as V } from "./Cbs-rx1iLGiLCCUn.mjs";
2
- import { c as x, b as f, r as L, t as rt, a as A, p as D, d as st } from "./TTYba_o2v8b2WWvm.mjs";
1
+ import { aX as k, t as T, aY as G, q as Q, S as W, aZ as C, a_ as tt, a$ as P, R as et, A as Y, b0 as V } from "./BTXU6Aai-Ialy3og.js";
2
+ import { c as x, b as f, r as L, t as rt, a as A, p as D, d as st } from "./E-GOcSTy1uY4Oj3I.js";
3
3
  /**
4
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
5
- *
6
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
- * License: The license can be found at https://www.sheetxl.com/license.
8
- */
9
- /**
10
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
11
- *
12
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
13
- * License: The license can be found at https://www.sheetxl.com/license.
14
- */
15
- /**
16
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
4
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
17
5
  *
18
6
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
19
7
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ let s = null;
8
+ async function l() {
9
+ return s || (s = new Promise(async (e, a) => {
10
+ try {
11
+ const i = "0.20.2", r = `https://esm.sh/esbuild-wasm@${i}`, n = `https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`, t = (await import(
12
+ /* webpackIgnore: true */
13
+ /* @vite-ignore */
14
+ r
15
+ )).default;
16
+ await t.initialize({ wasmURL: n, worker: !1 }), e(t);
17
+ } catch (i) {
18
+ console.error("Error initializing esbuild:", i), a(i);
19
+ }
20
+ }), s);
21
+ }
22
+ export {
23
+ l as initialize
24
+ };
@@ -1,17 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
9
- *
10
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
- * License: The license can be found at https://www.sheetxl.com/license.
12
- */
13
- /**
14
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
15
3
  *
16
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
17
5
  * License: The license can be found at https://www.sheetxl.com/license.
package/cdn/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
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.
@@ -115,7 +115,7 @@ let c;
115
115
  const b = async (e) => c || (c = await (async (n, t) => {
116
116
  try {
117
117
  if (t?.selector && C(t?.selector, t?.loading), !n) {
118
- const { resolveDependencies: r } = await import("./assets/CGc5eC8iV73B-vAE.js");
118
+ const { resolveDependencies: r } = await import("./assets/BDy4o1dgQMIqsMiY.js");
119
119
  n = await r(t?.dependencies);
120
120
  }
121
121
  t?.licenseKey && await n.StudioMUI.LicenseManager.setLicenseKey(t.licenseKey), t?.selector && h(t?.selector);
package/cdn/loader.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(e){typeof define=="function"&&define.amd?define(e):e()})(function(){"use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
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.
package/package.json CHANGED
@@ -1,26 +1,21 @@
1
1
  {
2
2
  "name": "@sheetxl/studio-vanilla",
3
3
  "description": "SheetXL Studio - Vanilla entry point for integrating SheetXL UI.",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
+ "main": "./browser/esm/index.mjs",
8
+ "module": "./browser/esm/index.mjs",
7
9
  "exports": {
8
10
  ".": {
9
- "types": "./types/index.d.ts",
10
- "browser": "./browser/esm/index.mjs",
11
- "node": "./node/esm/index.mjs",
12
11
  "import": "./browser/esm/index.mjs",
13
12
  "require": "./browser/cjs/index.cjs",
14
- "cdn": "./cdn/index.js"
13
+ "types": "./types/index.d.ts"
15
14
  },
16
15
  "./cdn": "./cdn/index.js",
17
16
  "./loader.js": "./cdn/loader.js"
18
17
  },
19
18
  "types": "./types/index.d.ts",
20
- "main": "./browser/cjs/index.cjs",
21
- "module": "./browser/esm/index.mjs",
22
- "unpkg": "./cdn/index.js",
23
- "jsdelivr": "./cdn/index.js",
24
19
  "sideEffects": [
25
20
  "*.css",
26
21
  "**/*.css"
@@ -46,7 +41,7 @@
46
41
  "@mui/styled-engine": "^6.4.2",
47
42
  "@mui/system": "^6.4.2",
48
43
  "@mui/utils": "^6.4.2",
49
- "@sheetxl/studio-mui": "^0.3.0",
44
+ "@sheetxl/studio-mui": "^0.3.2",
50
45
  "csstype": "^3.1.3",
51
46
  "http-server": "^14.1.1"
52
47
  },
@@ -1,30 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
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"});/**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
8
- *
9
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
- * License: The license can be found at https://www.sheetxl.com/license.
11
- *//**
12
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
13
- *
14
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
15
- * License: The license can be found at https://www.sheetxl.com/license.
16
- */var ct,pt={exports:{}};/* @license
17
- Papa Parse
18
- v5.5.3
19
- https://github.com/mholt/PapaParse
20
- License: MIT
21
- */const _t=function(Y,Q){for(var b=0;b<Q.length;b++){const P=Q[b];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[(ct||(ct=1,pt.exports=function Y(){var Q,b=typeof self<"u"?self:typeof window<"u"?window:b!==void 0?b:{},P=!b.document&&!!b.postMessage,B=b.IS_PAPA_WORKER||!1,J={},gt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&y(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)b.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(y(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!y(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){y(this._config.error)?this._config.error(e):B&&this._config.error&&b.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),p=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,_=this,T=0,o=0,j=!1,u=!1,g=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),L()){let f=function(O,A){y(t.transformHeader)&&(O=t.transformHeader(O,A)),g.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;L()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var A=t.header?{}:[],v=0;v<f.length;v++){var k=v,m=f[v];m=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),p<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(k=t.header?v>=g.length?"__parsed_extra":g[v]:k,m=t.transform?t.transform(m,k):m),k==="__parsed_extra"?(A[k]=A[k]||[],A[k].push(m)):A[k]=m}return t.header&&(v>g.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+v,o+O):v<g.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+g.length+" fields but parsed "+v,o+O)),A}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=g),o+=E)}function L(){return t.header&&g.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}y(t.step)&&(r=t.step,t.step=function(h){s=h,L()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,_))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?y(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,A,v,k,m)=>{var U,d,S,I;m=m||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<m.length;Z++){for(var W,tt=m[Z],F=0,q=0,x=0,D=(S=void 0,new st({comments:k,delimiter:tt,newline:A,preview:10}).parse(O)),H=0;H<D.data.length;H++)v&&C(D.data[H])?x++:(q+=W=D.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<D.data.length&&(q/=D.data.length-x),(d===void 0||F<=d)&&(I===void 0||I<q)&&1.99<q&&(d=F,U=tt,I=q)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=y(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){_.streamer._halted?(j=!1,_.streamer.parseChunk(e,!0)):setTimeout(_.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,y(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
22
- `)).length&&c[0].length<E[0].length,E.length===1||h)return`
23
- `;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
24
- `&&f++;return f>=E.length/2?`\r
25
- `:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,p=t.fastMode,M=null,w=!1,_=t.quoteChar==null?'"':t.quoteChar,T=_;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
26
- `&&i!=="\r"&&i!==`\r
27
- `&&(i=`
28
- `);var o=0,j=!1;this.parse=function(u,g,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,L=i.length,z=n.length,h=y(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(p||p!==!1&&u.indexOf(_)===-1){for(var A=u.split(i),v=0;v<A.length;v++){if(f=A[v],o+=f.length,v!==A.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),q(),j)return F()}else I(f.split(e));if(l&&l<=v)return c=c.slice(0,l),F(!0)}}return F()}for(var k=u.indexOf(e,o),m=u.indexOf(i,o),U=new RegExp(V(T)+V(_),"g"),d=u.indexOf(_,o);;)if(u[o]===_)for(d=o,o++;;){if((d=u.indexOf(_,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,_));if(_===T&&u[d+1]===T)d++;else if(_===T||d===0||u[d-1]!==T){k!==-1&&k<d+1&&(k=u.indexOf(e,d+1));var S=Z((m=m!==-1&&m<d+1?u.indexOf(i,d+1):m)===-1?k:Math.min(k,m));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,_)),u[o=d+1+S+R]!==_&&(d=u.indexOf(_,o)),k=u.indexOf(e,o),m=u.indexOf(i,o);break}if(S=Z(m),u.substring(d+1+S,d+1+S+L)===i){if(f.push(u.substring(o,d).replace(U,_)),tt(d+1+S+L),k=u.indexOf(e,o),d=u.indexOf(_,o),h&&(q(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(m===-1)return F();o=m+L,m=u.indexOf(i,o),k=u.indexOf(e,o)}else if(k!==-1&&(k<m||m===-1))f.push(u.substring(o,k)),o=k+R,k=u.indexOf(e,o);else{if(m===-1)break;if(f.push(u.substring(o,m)),tt(m+L),h&&(q(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function I(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&q()),F()}function tt(x){o=x,I(f),f=[],m=u.indexOf(i,o)}function F(x){if(t.header&&!g&&c.length&&!w){var D=c[0],H=Object.create(null),ot=new Set(D);let ft=!1;for(let G=0;G<D.length;G++){let N=D[G];if(H[N=y(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),D[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,D[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(g||0),renamedHeaders:M}}}function q(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function mt(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(y(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else y(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];y(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function y(t){return typeof t=="function"}return a.parse=function(t,e){var i,n,r,l,p=(e=e||{}).dynamicTyping||!1;if(y(p)&&(e.dynamicTypingFunction=p,p={}),e.dynamicTyping=p,e.transform=!!y(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return p=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),p=new(e.download?it:X)(e)):t.readable===!0&&y(t.read)&&y(t.on)?p=new nt(e):(b.File&&t instanceof File||t instanceof Object)&&(p=new rt(e)),p.stream(t);(p=!!a.WORKERS_SUPPORTED&&(r=b.URL||b.webkitURL||null,l=Y.toString(),n=a.BLOB_URL||(a.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",l,")();"],{type:"text/javascript"}))),(n=new b.Worker(n)).onmessage=mt,n.id=gt++,J[n.id]=n)).userStep=e.step,p.userChunk=e.chunk,p.userComplete=e.complete,p.userError=e.error,e.step=y(e.step),e.chunk=y(e.chunk),e.complete=y(e.complete),e.error=y(e.error),delete e.worker,p.postMessage({input:t,config:e,workerId:p.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
29
- `,p='"',M=p+p,w=!1,_=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(g){return e.delimiter.indexOf(g)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(p=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");_=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+p),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(p),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(_||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||_),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(g,s,C){var R="",L=(typeof g=="string"&&(g=JSON.parse(g)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(g)&&0<g.length),z=!Array.isArray(s[0]);if(L&&n){for(var h=0;h<g.length;h++)0<h&&(R+=r),R+=u(g[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(L?g:s[c]).length,f=!1,O=L?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!L&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&L){for(var A=[],v=0;v<E;v++){var k=z?g[v]:v;A.push(s[c][k])}f=A.join("").trim()===""}if(!f){for(var m=0;m<E;m++){0<m&&!O&&(R+=r);var U=L&&z?g[m]:m;R+=u(s[c][U],m)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(g,s){var C,R;return g==null?"":g.constructor===Date?JSON.stringify(g).slice(1,25):(R=!1,T&&typeof g=="string"&&T.test(g)&&(g="'"+g,R=!0),C=g.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(g,s)||Array.isArray(i)&&i[s]||((L,z)=>{for(var h=0;h<z.length;h++)if(-1<L.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?p+C+p:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
30
- `,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!b.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,b.jQuery&&((Q=b.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!b.FileReader||!this.files||this.files.length===0)return!0;for(var p=0;p<this.files.length;p++)i.push({file:this.files[p],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)y(t.complete)&&t.complete();else{var l,p,M,w=i[0];if(y(t.before)){var _=t.before(w.file,w.inputElem);if(typeof _=="object"){if(_.action==="abort")return l=w.file,p=w.inputElem,M=_.reason,void(y(t.error)&&t.error({name:"AbortError"},l,p,M));if(_.action==="skip")return void r();typeof _.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,_.config))}else if(_==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){y(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(b.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?b.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(b.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&b.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a}()),pt.exports)]);exports.p=_t;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
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 o=require("react/jsx-runtime"),l=require("react"),n=require("./BFjFhtH4OqOirVjz.cjs"),$=require("./D3jW9_q5k1lOmEQd.cjs"),Y=n.createSvgIcon(o.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),Z=n.createSvgIcon(o.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),_=n.createSvgIcon(o.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),ee=n.createSvgIcon(o.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),w=l.memo(O=>{const{label:g,value:p,options:r,onSelect:u,tabIndex:m=0,...T}=O,[b,h]=l.useState(()=>W(p,r));l.useEffect(()=>{h(W(p,r))},[p,r]);const v=n.Te(d=>{h(d.target.value),u?.(r[d.target.value])},[u,r]),a=l.useMemo(()=>Object.keys(r).map(d=>o.jsx(n.MenuItem,{value:d,children:d},d)),[r]);return o.jsxs(n.FormControl,{sx:{minWidth:135},size:"small",children:[o.jsx(n.InputLabel,{children:g}),o.jsx(n.Select,{inputProps:{tabIndex:m},value:b,label:g,onChange:v,sx:{backgroundImage:`linear-gradient(${n.alpha("#fff",n.eo(5))}, ${n.alpha("#fff",n.eo(5))})`},...T,children:a})]})}),L={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},X={Formulas:n.An.Content.Formulas,Values:n.An.Content.Values,Notes:n.An.Content.Notes,Comments:n.An.Content.Comments},Q={...X};delete Q.Values;const ne={"By Rows":!0,"By Columns":!1},W=(O,g)=>{const p=Object.keys(g);for(let r=0;r<p.length;r++){const u=p[r];if(g[u]===O)return u}},N=l.memo(O=>{const{replace:g=!1,findText:p,replaceText:r,findOptions:u,replaceOptions:m,title:T,onHide:b,onFindOrReplace:h,...v}=O,a=l.useRef(null),d=l.useRef(null),E=l.useRef(null),H=l.useRef(null),I=l.useRef(null),A=l.useRef(null),F=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[B,y]=l.useState(!1),[R,U]=l.useState(!1),[f,S]=l.useState(g),[D,k]=l.useState(!1),[K,P]=l.useState(!1),[s,c]=l.useState({findText:null,replaceText:null,replace:g,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:n.q.Orientation.Row,fields:[n.An.Content.Formulas]},scope:L.Sheet}),j=n.Te(async(e,t,i,C)=>{if(!h)return;const x={...s};x.replaceOptions={...x.replaceOptions},x.findOptions={...x.findOptions},x.replaceOptions.maxCount=i?void 0:1,x.replace=t,t&&s.findOptions.fields?.[0]===n.An.Content.Values&&(x.findOptions.fields=[n.An.Content.Formulas]),x.findOptions.reverse=!e;const J=await h({autoFocus:C,...x});k(J===0)},[s,h]);l.useEffect(()=>{k(!1)},[s,R,f]);const M=n.Te((e,t)=>{if(e.keyCode===n.wn.Enter){if(!s.findText)return;let i=!0,C=!1;e.shiftKey&&(i=!1),t?(e.ctrlKey&&e.altKey&&(C=!0),F(e,C?A.current:I.current)):F(e,i?H.current:E.current),j(i,t,C,!1)}},[s]),q=l.useRef(null);l.useLayoutEffect(()=>{c(e=>{const t={...e};t.findText=p&&p.length>0?p:e.findText??"",y(!0),r!==void 0&&(t.replaceText=r),u&&(t.findOptions={...t.findOptions,...u}),t.replaceText||(t.replaceText=""),t.replaceOptions&&(t.replaceOptions={...t.replaceOptions}),m&&(t.replaceOptions={...t.replaceOptions,...m}),s.findOptions.fields?.[0]||(s.findOptions.fields=[n.An.Content.Formulas]);const i=!(!m&&r===void 0);return i&&S(i),t}),K||q.current?.focus()},[p,r,u,m]),l.useEffect(()=>{f?(s.findOptions.fields[0],n.An.Content.Values):y(!0)},[f]),l.useEffect(()=>{if(B&&a.current&&s.findText===a.current.value)return a.current===document.activeElement||a.current.contains(document.activeElement)?(a.current?.select(),void y(!1)):void a.current.addEventListener("focus",()=>{a.current?.select(),y(!1)},{once:!0})},[B,s]);const[G,{width:V}]=n.eg();return o.jsx(n.LH,{title:T??(f?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",refWindow:q,onHide:b,onFocus:()=>P(!0),onBlur:()=>{P(!1),k(!1)},PaperProps:{elevation:K?3:1},...v,children:o.jsxs(n.DialogContent,{dividers:!0,ref:G,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if(e.key==="h"&&e.ctrlKey)S(!0),a.current?.contains(document.activeElement)&&d.current?.focus();else if(e.key==="f"&&e.ctrlKey)a.current?.focus();else if(e.key==="c"&&e.altKey)c(t=>{const i={...t};return i.findOptions.matchCase=!t.findOptions.matchCase,i});else if(e.key==="e"&&e.altKey)c(t=>{const i={...t};return i.findOptions.matchEntireCell=!t.findOptions.matchEntireCell,i});else{if(e.key!=="r"||!e.altKey)return;c(t=>{const i={...t};return i.findOptions.useRegex=!t.findOptions.useRegex,i})}e.preventDefault()},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[o.jsx(n.uH,{selected:R,onSelectToggle:e=>{U(e)},preventFocus:!0,label:"Toggle Additional Options",icon:n.Le(o.jsx(n.QK,{}))}),o.jsx(n.uH,{selected:f,onSelectToggle:e=>{S(e)},preventFocus:!0,label:"Toggle Replace",icon:n.Le(o.jsx(n.JK,{})),shortcut:{key:f?"F":"H",modifiers:[n.He.Ctrl]}})]}),o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[o.jsx(n.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${n.alpha("#fff",n.eo(5))}, ${n.alpha("#fff",n.eo(5))})`},inputProps:{draggable:!1,ref:a,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:o.jsx(n.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:o.jsxs(n.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[o.jsx(n.uH,{selected:s.findOptions.matchCase,onSelectToggle:e=>{c(t=>{const i={...t};return i.findOptions.matchCase=e,i})},label:"Match Case",shortcut:{key:"C",modifiers:[n.He.Alt]},icon:n.Le(o.jsx(n.eX,{}))}),o.jsx(n.uH,{selected:s.findOptions.matchEntireCell,onSelectToggle:e=>{c(t=>{const i={...t};return i.findOptions.matchEntireCell=e,i})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[n.He.Alt]},icon:n.Le(o.jsx(n.tX,{}))}),o.jsx(n.uH,{selected:s.findOptions.useRegex,onSelectToggle:e=>{c(t=>{const i={...t};return i.findOptions.useRegex=e,i})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[n.He.Alt]},icon:n.Le(o.jsx(n.oX,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>D?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>D?`${e.palette.error.main} !important`:void 0}},value:s.findText??"",onChange:e=>{c(t=>{const i={...t};return i.findText=e.target.value,i})},onKeyDown:e=>M(e,!1),onContextMenu:e=>{e.stopPropagation()}}),o.jsx(n.uH,{selected:s.findOptions.reverse,onSelectToggle:e=>{j(!1,!1)},touchRippleRef:E,label:"",shortcut:{key:"Enter",modifiers:[n.He.Shift]},icon:n.Le(s.findOptions.orientation!==n.q.Orientation.Column?o.jsx(Y,{}):o.jsx(ee,{})),disabled:!s.findText}),o.jsx(n.uH,{selected:!s.findOptions.reverse,onSelectToggle:e=>{j(!0,!1)},touchRippleRef:H,label:"Next Match",shortcut:{key:"Enter"},icon:n.Le(s.findOptions.orientation!==n.q.Orientation.Column?o.jsx(_,{}):o.jsx(Z,{})),disabled:!s.findText})]}),o.jsx($.Collapse,{in:f,timeout:z,onExit:()=>{a.current?.focus()},children:o.jsxs(n.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[o.jsx(n.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${n.alpha("#fff",n.eo(5))}, ${n.alpha("#fff",n.eo(5))})`},inputProps:{ref:d,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:s.replaceText??"",onChange:e=>{c(t=>{const i={...t};return i.replaceText=e.target.value,i})},onKeyDown:e=>M(e,!0),onContextMenu:e=>{e.stopPropagation()}}),o.jsx(n.uH,{onSelectToggle:e=>{j(!0,!0)},touchRippleRef:I,label:"Replace",shortcut:{key:"Enter"},icon:n.Le(o.jsx(n.hV,{})),disabled:!s.findText}),o.jsx(n.uH,{onSelectToggle:e=>{j(!0,!0,!0)},touchRippleRef:A,label:"Replace All",shortcut:{key:"Enter",modifiers:[n.He.Ctrl,n.He.Alt]},icon:n.Le(o.jsx(n.nX,{})),disabled:!s.findText})]})})]})]}),o.jsx($.Collapse,{in:R,timeout:z,onExit:()=>{a.current?.focus()},children:o.jsxs(n.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.Qt,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),o.jsxs(n.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[o.jsx(w,{label:"Within",value:s.scope,options:L,onSelect:e=>{c(t=>{const i={...t};return i.scope=e,i})}}),o.jsx(w,{label:"Search",value:s.findOptions.orientation!==n.q.Orientation.Column,options:ne,onSelect:e=>{c(t=>{const i={...t};return i.findOptions.orientation=e?n.q.Orientation.Row:n.q.Orientation.Column,i})}}),o.jsx(w,{label:"Look in",value:f&&s.findOptions.fields?.[0]===n.An.Content.Values?n.An.Content.Formulas:s.findOptions.fields?.[0],options:f?Q:X,onSelect:e=>{c(t=>{const i={...t};return i.findOptions.fields=[e],i})}})]})]})})]})})});exports.FindReplaceWindow=N,exports.ScopeOptions=L,exports.default=N;