@sheetxl/studio-vanilla 0.2.0 → 0.3.0

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 (181) hide show
  1. package/LICENSE.md +11 -11
  2. package/README.md +97 -97
  3. package/browser/cjs/{SlClv0PVM92ztDVX.cjs → 3QL6_jTFdiirmbvL.cjs} +1 -1
  4. package/browser/cjs/{EDXMGSUZ8UQwkC7X.cjs → 733JB7rykyRwGt4E.cjs} +1 -1
  5. package/browser/cjs/{lkPV98fiKomQSCgR.cjs → 7_gN0Iu07E3GI7B1.cjs} +1 -1
  6. package/browser/cjs/{Bc2L0UJqPhPBwffj.cjs → 8igELOAHTBTibdxC.cjs} +1 -1
  7. package/browser/cjs/{CZkpEBAASzQBi8Bh.cjs → 99Nzn-PICRpNSUxm.cjs} +1 -1
  8. package/browser/cjs/{CmE57C_yA3jFIZos.cjs → B4tuWKTrIZsK5so4.cjs} +3 -3
  9. package/browser/cjs/{aWHOn3DaVbuU-ftK.cjs → B5_w23_mUAW0fmJf.cjs} +2 -2
  10. package/browser/cjs/{C0XmerLLqwaaqZ2o.cjs → B6YGJGvRNGuQ9_gp.cjs} +1 -1
  11. package/browser/cjs/{CJ9-quYDqOBB3oUV.cjs → BBRsvQi2qwf1nduI.cjs} +1 -1
  12. package/browser/cjs/{D5yPr453o--2fxmV.cjs → BBXoDmENVubxlArs.cjs} +4 -4
  13. package/browser/cjs/{DHFmQHgKgcFMFahD.cjs → BFLfq3S9KpGbl7Sg.cjs} +8 -8
  14. package/browser/cjs/{DVrhH2z9cGZBKu17.cjs → BFjFhtH4OqOirVjz.cjs} +32 -32
  15. package/browser/cjs/{BhQQmCaRq2RYxUie.cjs → BXfPkTrM6foeVPwk.cjs} +3 -3
  16. package/browser/cjs/{OpNWiW6pYHuJVaKY.cjs → BdCoE_M8e0hB71qX.cjs} +1 -1
  17. package/browser/cjs/{Bn43jSsdzLy_636p.cjs → BeR1ChCVTFwB5yHv.cjs} +3 -3
  18. package/browser/cjs/{AP-t2KCT_0bR_o4t.cjs → BgcoRkkmbBckGLPB.cjs} +1 -1
  19. package/browser/cjs/{Dy__fkEF_Jzrlf1D.cjs → Bjus8Eiw4cFgUHkk.cjs} +1 -1
  20. package/browser/cjs/{Be-w6Cc2N61jNFQe.cjs → BlYWr2BKhS18L5sc.cjs} +3 -3
  21. package/browser/cjs/{l1xXc-zCzzVSj1HN.cjs → Bqucdx31CZbbWECx.cjs} +4 -4
  22. package/browser/cjs/{B_pNdVIK1HzlKFSF.cjs → Br9jR9D1r5-o3MNY.cjs} +2 -2
  23. package/browser/cjs/{Cor1JV8jzd6HA1O9.cjs → ByAzlBbjSnhZyx7J.cjs} +5 -5
  24. package/browser/cjs/{CGnlC13lMNbZh3sP.cjs → BzHjhROODDie_GcY.cjs} +1 -1
  25. package/browser/cjs/{DtcLPs_dQHEN3bGR.cjs → C0s5F1POfARzrKP5.cjs} +3 -3
  26. package/browser/cjs/{CNs9_6duMD0PXHwG.cjs → C5jc-Y-Hgl0f-Bdo.cjs} +1 -1
  27. package/browser/cjs/{Cv80JVA2XYzBCaWN.cjs → C7zut22tCoRegV_d.cjs} +2 -2
  28. package/browser/cjs/{C6x5hrvJ433bQqqH.cjs → CFIXzpjjBJD9Ssfu.cjs} +3 -3
  29. package/browser/cjs/{Mdv1yV9ud45PsKRt.cjs → CMsqJV9uPQCkxjr1.cjs} +2 -2
  30. package/browser/cjs/{CgkUiG5Wgg1HcTYa.cjs → CPy6BZgWgaukH2wr.cjs} +1 -1
  31. package/browser/cjs/{CvhmZqLTDmkFauCs.cjs → CU_BzP7b4cIkOp0W.cjs} +2 -2
  32. package/browser/cjs/{Bbyd4sAM90GSqJqn.cjs → Cd5lC1p9vwmY8bXk.cjs} +4 -4
  33. package/browser/cjs/{DlBZXaCX3LQRptut.cjs → Cpw1pytHjcWHlrs5.cjs} +1 -1
  34. package/browser/cjs/{DHCCNLh27I_BglIv.cjs → Cq6nKXJncTvIPDs0.cjs} +5 -5
  35. package/browser/cjs/{C_iTpFgxZv6g-7m3.cjs → Cw23_9oAnZq0oGKM.cjs} +3 -3
  36. package/browser/cjs/{D6FNtKftCwyAwxsN.cjs → D0RwDzLW2tAOaOgp.cjs} +4 -4
  37. package/browser/cjs/{CuhJX_xGez7yc6zi.cjs → D1F49z1BTQNLc001.cjs} +2 -2
  38. package/browser/cjs/{-WimOX-_by9saCOH.cjs → D3jW9_q5k1lOmEQd.cjs} +8 -8
  39. package/browser/cjs/{km4BoFU87-pNNG5J.cjs → D6JdKwLNWc3ioSMm.cjs} +2 -2
  40. package/browser/cjs/{3w2ISP4JjVNmzrqs.cjs → DAEWVQt08NYEEiDp.cjs} +1 -1
  41. package/browser/cjs/{BZm3G8SHFhqXJ5Jo.cjs → DE8l2rQfo2VVUkcB.cjs} +4 -4
  42. package/browser/cjs/{prKrG5YAJ4ExfXHY.cjs → DIh6OO396kZjKhj2.cjs} +7 -7
  43. package/browser/cjs/{CU9y9CiXOR7IFAGB.cjs → DOfe_n57c-AmDBXL.cjs} +1 -1
  44. package/browser/cjs/{Bk9rYrDDbmByf-Kk.cjs → DVih-qsORYLFDJ00.cjs} +2 -2
  45. package/browser/cjs/{Cm19hoZFOQ4T_DTY.cjs → DVziX7RxofEvjdaZ.cjs} +2 -2
  46. package/browser/cjs/{geVI0OFpbRur4kxL.cjs → DW3yV3bFjBYU9FNp.cjs} +6 -6
  47. package/browser/cjs/{BDK2YaQ_WdlP_HdF.cjs → DdAp7pgJ74tC2bXc.cjs} +1 -1
  48. package/browser/cjs/{vpaDUo2WrdrlUWox.cjs → Dg-_EjDMveR9eAsS.cjs} +4 -4
  49. package/browser/cjs/{20oq16RduoK6IuCZ.cjs → Dqytj5avvhy0OfcQ.cjs} +2 -2
  50. package/browser/cjs/{CKfjvO-C5oBByvM4.cjs → Du3dcmxNI2FligcT.cjs} +1 -1
  51. package/browser/cjs/{rhwBn9bJGM1fHTpT.cjs → Dy8SVjsVQet5vLuM.cjs} +1 -1
  52. package/browser/cjs/{CUVcl_8fwvLTl8ZO.cjs → UaNxxw6ywOxwUm2P.cjs} +1 -1
  53. package/browser/cjs/{HL5BOFnf4XtzdqsS.cjs → VjVwC7Tg9iSVxZ_e.cjs} +2 -2
  54. package/browser/cjs/{B9REtaIpAi8F35id.cjs → cXKpamD3YJ7T7UIy.cjs} +3 -3
  55. package/browser/cjs/{C0KkDFATEXukfl0j.cjs → heo8nWRKxUNJeEc8.cjs} +2 -2
  56. package/browser/cjs/index.cjs +2 -2
  57. package/browser/cjs/{B5cV1UMP1UkKFRbL.cjs → jspcRaFi7FlNoOCi.cjs} +2 -2
  58. package/browser/cjs/{0kdpEwmehekH9O3t.cjs → mQf_DGFtPLC3XOGK.cjs} +1 -1
  59. package/browser/cjs/{C_JmjXjXg6Ycl_t6.cjs → pXJLtwMuQqVtfxDh.cjs} +1 -1
  60. package/browser/cjs/{DCgPUnL0Q5bTnusO.cjs → s-6Dp8AeCjfET6lC.cjs} +1 -1
  61. package/browser/cjs/{Dg5Lf7y1Os-1BWfx.cjs → wHFkNUwHgS4n79oY.cjs} +5 -5
  62. package/browser/esm/{2IFG1EGZ4BstfzzO.mjs → B0bFoOwu-SXqZdUA.mjs} +3 -3
  63. package/browser/esm/{E1R5xcWEyFUGz77Z.mjs → B3SIwz6UDnshg1xz.mjs} +3 -3
  64. package/browser/esm/{Dx35iUB-nAeCONTU.mjs → BF4cNyvUhV9e9yfu.mjs} +3 -3
  65. package/browser/esm/{LeqWxgpETsBLfM9S.mjs → BGHKmUXsDDoutTYQ.mjs} +2 -2
  66. package/browser/esm/{CEVdjgbSOkqM6gks.mjs → BaOp0-PqOpggAmtp.mjs} +3 -3
  67. package/browser/esm/{Fz-AZts2Lk6VgGtn.mjs → BeFmG8d-eHZsiUqR.mjs} +3 -3
  68. package/{cdn/assets/B5KblpU6ojvwGzld.js → browser/esm/BieQsUFphd-4Dl2o.mjs} +4 -4
  69. package/browser/esm/{HacQNvE-qbx_RTGf.mjs → BjJVmzUi3VgBwYWL.mjs} +3 -3
  70. package/browser/esm/{DqXAqUrCxY0s8eeL.mjs → Bn5K2xW-LDe4UKiG.mjs} +3 -3
  71. package/browser/esm/{Bv1kyZi_CNzyU0wM.mjs → Bqjg7PBsD1qpWapS.mjs} +3 -3
  72. package/browser/esm/{B_hQhGpEdNfdeECK.mjs → BqvvewQdU3dKato4.mjs} +8 -8
  73. package/browser/esm/{Cax3Gy4JS-lKyNWa.mjs → C53n3eOUOu4IDUnv.mjs} +3 -3
  74. package/browser/esm/{Cn4WWNIcHjVkozcN.mjs → CB7PEr_-y0BQWtqs.mjs} +6 -6
  75. package/browser/esm/{Cc8UhQeIi2R9xhLi.mjs → CDdRITGs1_hk1Kax.mjs} +4 -4
  76. package/{cdn/assets/B0J3pDq63QrDj6C-.js → browser/esm/CGCghKS4Jl7fGewC.mjs} +3 -3
  77. package/browser/esm/{D46R0vc8EDXOBoB8.mjs → CKJke70LtH4vX8Yy.mjs} +3 -3
  78. package/{cdn/assets/BF1UCuG25TaPe6Ah.js → browser/esm/CPlfXwZn952WQ8tu.mjs} +3 -3
  79. package/browser/esm/{DnBoGLFyl-sTKtCF.mjs → CRSV-894QtiDUmtJ.mjs} +7 -7
  80. package/browser/esm/{O3I_0JA16jsotYlO.mjs → CUR7HVbE-MYKeGoV.mjs} +5 -5
  81. package/{cdn/assets/i_EWmXLQe018WFIv.js → browser/esm/CVXeIfSHxFnpUSYz.mjs} +3 -3
  82. package/browser/esm/{C8Fp63LtXp1k3LSF.mjs → CYszs6SwCHoEdnWR.mjs} +3 -3
  83. package/browser/esm/{DUcfLyiXz-VgaOB4.mjs → CYvdymNohZi87Vmf.mjs} +4 -4
  84. package/browser/esm/{CdvMkp-EeYeQltyS.mjs → CZfsDeVlXP4VI0uK.mjs} +5 -5
  85. package/{cdn/assets/BrCaMwnNcblmuzDh.js → browser/esm/CZj7MpGmmgaB8lkL.mjs} +4 -4
  86. package/browser/esm/{SOdH8hP_uNxWw-D3.mjs → Cbs-rx1iLGiLCCUn.mjs} +50 -50
  87. package/browser/esm/{B5opv-736KpN6Bi4.mjs → Cfp-IQYhF8wI3U8j.mjs} +3 -3
  88. package/{cdn/assets/Cndg80xEbFcHtUn8.js → browser/esm/CnShx-cVURfKpVVG.mjs} +3 -3
  89. package/{cdn/assets/nVijr2StbdDY2e13.js → browser/esm/Cow5a04f6LqFGoQZ.mjs} +3 -3
  90. package/browser/esm/{Cwv4yqC_zytSa0P_.mjs → CsKXDEU_EhKwgwa2.mjs} +3 -3
  91. package/browser/esm/{DjDxVGn7JWBs4o5m.mjs → CwpligBAfWbwjv90.mjs} +3 -3
  92. package/browser/esm/{B47M3lFfW1t_gJZB.mjs → CxaMQw-I5c8XLq_x.mjs} +3 -3
  93. package/browser/esm/{BcdbwecLVoeuhtZL.mjs → Cz7ockkCtKQwddun.mjs} +6 -6
  94. package/browser/esm/{Iijcha1XE-c7OLNH.mjs → D2GULUblN-TF8TA3.mjs} +3 -3
  95. package/{cdn/assets/fHJOSOgVU027xNw-.js → browser/esm/D8I1NKgZQBM1OlB_.mjs} +3 -3
  96. package/{cdn/assets/D9C7gLp0kAPSxLtC.js → browser/esm/DE5GJPPKB9akZnOl.mjs} +3 -3
  97. package/browser/esm/{DPMEubfbdRv-vumV.mjs → DMc9rEXgTnQiUhVu.mjs} +3 -3
  98. package/browser/esm/{C9rK8RP4620RgQRS.mjs → DXky7q8UrsTfgOl6.mjs} +4 -4
  99. package/browser/esm/{B4x_WFSNRisMp9PK.mjs → D_mjyyaB1h7KHEAu.mjs} +3 -3
  100. package/browser/esm/{DcalwsKAfxQkC6tj.mjs → Dakx8EXKki7IUQWD.mjs} +4 -4
  101. package/{cdn/assets/DHkuZlzTuYV7YCeQ.js → browser/esm/DbbapxCRGpFogl_Q.mjs} +3 -3
  102. package/browser/esm/{C2gQBMYenqlI4flQ.mjs → Dbr6KB-IYBe-9CSb.mjs} +2 -2
  103. package/{cdn/assets/BuITsWgwvy1VWF9E.js → browser/esm/DeZqllxB8Fy4CjwJ.mjs} +3 -3
  104. package/{cdn/assets/DLUJaAlJp56PRHun.js → browser/esm/DhVke7KHq6lbQPZg.mjs} +3 -3
  105. package/browser/esm/{BZLFUPFZsWWl5XLX.mjs → DmwBpm4ERYyxSyyJ.mjs} +4 -4
  106. package/browser/esm/{BAYPWLjfgtuLg9qb.mjs → DpDIV4Iz_niumLpB.mjs} +3 -3
  107. package/browser/esm/{CDaAJggrXrOWRzgK.mjs → DwdX0RUFwrRrBtRA.mjs} +3 -3
  108. package/browser/esm/{D5VtB2hD3rvXyASS.mjs → HiDBwKQDu71n9dYT.mjs} +5 -5
  109. package/{cdn/assets/BuLL5OjBqMXUfH_A.js → browser/esm/Jv_Qhh-WUFMrxoID.mjs} +3 -3
  110. package/{cdn/assets/DYYzLaxXk8APXqEA.js → browser/esm/OGU71t0PDjtl3-M4.mjs} +3 -3
  111. package/browser/esm/{CNBg-OXuJX_EAZbw.mjs → TTYba_o2v8b2WWvm.mjs} +8 -8
  112. package/browser/esm/{BnjAI3vOpDYyQnou.mjs → Xxw0Y9hXxIwKKGPq.mjs} +3 -3
  113. package/{cdn/assets/CGlDo4wLUay4UXgF.js → browser/esm/ako9wmFN1XdkwSc1.mjs} +3 -3
  114. package/browser/esm/{BZv9jzgaGtXaiw5W.mjs → dYh86bRPKzI8ASeR.mjs} +3 -3
  115. package/browser/esm/{DVkLRz76XK91mLT7.mjs → iC6qNNMVatdQ7tzG.mjs} +3 -3
  116. package/browser/esm/index.mjs +2 -2
  117. package/browser/esm/{LeCCKiCnwske3JLp.mjs → rBWM2hNaaS5ELSY5.mjs} +8 -8
  118. package/{cdn/assets/07UGdEPZU4KgWAFN.js → browser/esm/sXwOwWbIPvtOcCOv.mjs} +3 -3
  119. package/{cdn/assets/CW2IdN3hA6cq5VBE.js → browser/esm/tUcACmQVgT_vQZRd.mjs} +3 -3
  120. package/{cdn/assets/CaLVQxWxp8lj_uyA.js → browser/esm/vBbdzr5TIj8oCBOQ.mjs} +3 -3
  121. package/cdn/assets/{B65mMi6-TRcnqOOr.js → 0KJ23PTXKNiflMEW.js} +3 -3
  122. package/cdn/assets/{BQ01ovyBt4DHdfm2.js → 3Oauro-m0-iFcqzH.js} +4 -4
  123. package/cdn/assets/{2IFG1EGZ4BstfzzO.js → B0bFoOwu-SXqZdUA.js} +3 -3
  124. package/cdn/assets/{E1R5xcWEyFUGz77Z.js → B3SIwz6UDnshg1xz.js} +3 -3
  125. package/cdn/assets/{BNF7gs2KIOp7CydV.js → B7MrO9H4Wh3DRVKy.js} +6 -6
  126. package/cdn/assets/{LeqWxgpETsBLfM9S.js → BGHKmUXsDDoutTYQ.js} +2 -2
  127. package/cdn/assets/{kj_NK4e2v-YDlOeA.js → BRJtUnAFvJgElG8C.js} +6 -6
  128. package/cdn/assets/{HacQNvE-qbx_RTGf.js → BjJVmzUi3VgBwYWL.js} +3 -3
  129. package/cdn/assets/{DqXAqUrCxY0s8eeL.js → Bn5K2xW-LDe4UKiG.js} +3 -3
  130. package/cdn/assets/{Bv1kyZi_CNzyU0wM.js → Bqjg7PBsD1qpWapS.js} +3 -3
  131. package/cdn/assets/{DltmvgX7cDRP7eGG.js → BzLOGtjuaZ3Mji-F.js} +8 -8
  132. package/cdn/assets/{Cax3Gy4JS-lKyNWa.js → C53n3eOUOu4IDUnv.js} +3 -3
  133. package/cdn/assets/{BelDTrwOGyChPcGE.js → C9pcd-6v0BwN-Nrg.js} +3 -3
  134. package/cdn/assets/{CWUdMl8HI6xopPZx.js → CC2fNxNRteCEEFhk.js} +4 -4
  135. package/cdn/assets/{Cc8UhQeIi2R9xhLi.js → CDdRITGs1_hk1Kax.js} +4 -4
  136. package/{browser/esm/B0J3pDq63QrDj6C-.mjs → cdn/assets/CGCghKS4Jl7fGewC.js} +3 -3
  137. package/cdn/assets/{DS4jen3n-p1f1Suv.js → CGc5eC8iV73B-vAE.js} +2 -2
  138. package/cdn/assets/{D46R0vc8EDXOBoB8.js → CKJke70LtH4vX8Yy.js} +3 -3
  139. package/{browser/esm/BF1UCuG25TaPe6Ah.mjs → cdn/assets/CPlfXwZn952WQ8tu.js} +3 -3
  140. package/cdn/assets/{B36BO77fuN4io3cH.js → CVOFtLS3D3hpykUP.js} +7 -7
  141. package/{browser/esm/i_EWmXLQe018WFIv.mjs → cdn/assets/CVXeIfSHxFnpUSYz.js} +3 -3
  142. package/{browser/esm/BrCaMwnNcblmuzDh.mjs → cdn/assets/CZj7MpGmmgaB8lkL.js} +4 -4
  143. package/cdn/assets/{B5opv-736KpN6Bi4.js → Cfp-IQYhF8wI3U8j.js} +3 -3
  144. package/{browser/esm/Cndg80xEbFcHtUn8.mjs → cdn/assets/CnShx-cVURfKpVVG.js} +3 -3
  145. package/{browser/esm/nVijr2StbdDY2e13.mjs → cdn/assets/Cow5a04f6LqFGoQZ.js} +3 -3
  146. package/cdn/assets/{DjDxVGn7JWBs4o5m.js → CwpligBAfWbwjv90.js} +3 -3
  147. package/cdn/assets/{Iijcha1XE-c7OLNH.js → D2GULUblN-TF8TA3.js} +3 -3
  148. package/cdn/assets/{E16WP2btW98-NdQA.js → D6CGsM4vcM8GtGg4.js} +3 -3
  149. package/cdn/assets/{CO8BPWxmHt9M0o5A.js → D6iCivbxJB9YAHRy.js} +4 -4
  150. package/cdn/assets/{B075ZA9s8bN6Bjk6.js → D7dirdQd4_w5Kf3O.js} +49 -49
  151. package/{browser/esm/fHJOSOgVU027xNw-.mjs → cdn/assets/D8I1NKgZQBM1OlB_.js} +3 -3
  152. package/cdn/assets/{_hp7T1iQm-VdgOx1.js → DDVokEjcl6-19dbU.js} +8 -8
  153. package/{browser/esm/D9C7gLp0kAPSxLtC.mjs → cdn/assets/DE5GJPPKB9akZnOl.js} +3 -3
  154. package/cdn/assets/{DPMEubfbdRv-vumV.js → DMc9rEXgTnQiUhVu.js} +3 -3
  155. package/cdn/assets/{BeDSWCZutZSLr6ui.js → DQCWbcueShZFNwmV.js} +3 -3
  156. package/cdn/assets/{BM3mTnON_Go8uW2n.js → DRNhrLbNn_6nGCEJ.js} +3 -3
  157. package/{browser/esm/CgNof4mi0iyac5e1.mjs → cdn/assets/DSaJvKGEG6fH2UFL.js} +4 -4
  158. package/cdn/assets/{BqDe3JfClPnZlUpT.js → DTaAiRRU2uWbT8Fc.js} +3 -3
  159. package/cdn/assets/{VBhE9EpKVDvlRQWF.js → DYZMXz31j3qNRh0f.js} +5 -5
  160. package/cdn/assets/{B0HGE6CZeNWxdgkD.js → D_PCdhiJi26hHS-8.js} +3 -3
  161. package/cdn/assets/{B4x_WFSNRisMp9PK.js → D_mjyyaB1h7KHEAu.js} +3 -3
  162. package/{browser/esm/DHkuZlzTuYV7YCeQ.mjs → cdn/assets/DbbapxCRGpFogl_Q.js} +3 -3
  163. package/{browser/esm/BuITsWgwvy1VWF9E.mjs → cdn/assets/DeZqllxB8Fy4CjwJ.js} +3 -3
  164. package/{browser/esm/DLUJaAlJp56PRHun.mjs → cdn/assets/DhVke7KHq6lbQPZg.js} +3 -3
  165. package/cdn/assets/{CFrbspKb0qyxwr1H.js → DotQ8xRWqk7D6hez.js} +5 -5
  166. package/cdn/assets/{CUe-PbZ8mz4nrE7E.js → DwOLxNWTgpajuVoq.js} +8 -8
  167. package/{browser/esm/BuLL5OjBqMXUfH_A.mjs → cdn/assets/Jv_Qhh-WUFMrxoID.js} +3 -3
  168. package/{browser/esm/DYYzLaxXk8APXqEA.mjs → cdn/assets/OGU71t0PDjtl3-M4.js} +3 -3
  169. package/cdn/assets/{DHhtxVQ8oICzeBem.js → S1pQULnXsDtSBJpY.js} +4 -4
  170. package/cdn/assets/{BnjAI3vOpDYyQnou.js → Xxw0Y9hXxIwKKGPq.js} +3 -3
  171. package/{browser/esm/CGlDo4wLUay4UXgF.mjs → cdn/assets/ako9wmFN1XdkwSc1.js} +3 -3
  172. package/cdn/assets/{Cwrp37FK1lwFYR0h.js → gu3uSTwzxG-Hq3Tn.js} +3 -3
  173. package/cdn/assets/{DVkLRz76XK91mLT7.js → iC6qNNMVatdQ7tzG.js} +3 -3
  174. package/cdn/assets/{C71PMxylnWyxGS2R.js → pf0juu-OwjVx8NfT.js} +5 -5
  175. package/{browser/esm/07UGdEPZU4KgWAFN.mjs → cdn/assets/sXwOwWbIPvtOcCOv.js} +3 -3
  176. package/{browser/esm/CW2IdN3hA6cq5VBE.mjs → cdn/assets/tUcACmQVgT_vQZRd.js} +3 -3
  177. package/{browser/esm/CaLVQxWxp8lj_uyA.mjs → cdn/assets/vBbdzr5TIj8oCBOQ.js} +3 -3
  178. package/cdn/assets/{i5sh0F171K8r-qUc.js → vhG_0swcLosZTyyb.js} +3 -3
  179. package/cdn/index.js +2 -2
  180. package/cdn/loader.js +1 -1
  181. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.2.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
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 u=require("./DVrhH2z9cGZBKu17.cjs"),Ke=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",ys=new RegExp(`^[${Ke}][-${Ke}.0-9·̀-ͯ‿-⁀]*$`,"u");/**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./BFjFhtH4OqOirVjz.cjs"),Ke=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",ys=new RegExp(`^[${Ke}][-${Ke}.0-9·̀-ͯ‿-⁀]*$`,"u");/**
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
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.
11
11
  *//**
12
- * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.2.0
12
+ * @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.3.0
13
13
  *
14
14
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
15
15
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -30,4 +30,4 @@
30
30
  `,s=this.i,n=ot;break;case I:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case I:break;default:this.unget(),this.state=q,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Ds);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=q,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Ps);t!==I&&(this.text+=String.fromCodePoint(t),t===Zt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
31
31
  `,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===q&&this.textHandler===void 0||(this.text+=a);break t}case I:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=q,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==j?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=q}sCData(){this.captureToChar(Zt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Zt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case j:this.cdataHandler?.(this.text),this.text="",this.state=q;break;case Zt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||z(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||z(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Ht:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:z(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===j){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=q}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Ht}sXMLDeclName(){const t=this.captureTo(Os);if(t===X)return this.state=Ht,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(z(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=Ht,void this.fail("XML declaration is incomplete.");z(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=Ht,void this.fail("XML declaration is incomplete.");z(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=Ht,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(z(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=Ht}sXMLDeclEnding(){this.getCodeNorm()===j?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=q):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case j:this.openTag();break;case 47:this.state=35;break;default:z(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(re(t)?(this.unget(),this.state=37):t===j?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:z(t)?this.state=38:t===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?this.openTag():re(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):z(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();z(t)?this.state=36:t===j?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():z(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case I:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=q,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Zt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case j:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
32
32
  `),t=this.i,s=0;break;case I:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=q,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
33
- `),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:z(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==q&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Qt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=q,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=q,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=q,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],D={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let F=0;F<m.length;F++)if(V==null||(V=m[F](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,F)=>{const W=P(F??m,V);W!==void 0&&(y[m]=W)},copyTo:(y,m,V)=>{const F=P(V??y,m);F!==void 0&&(b.source[y]=F)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const F=n.get(m);if(c={local:m,visitor:F,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,F&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const F=a.pop()??null;c=a[a.length-1]??null;const W=F?.destination;if(W){w.pop(),b=w[w.length-1]??D;const ht=F.visitor;ht&&ht.to&&W.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(W.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):W.key?b.source[W.key]=W.source:typeof ht.to=="string"&&(b.source[ht.to]=W.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},Ee=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),D=o.convert(w,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const D=Ee(w,b=>t.files[b],s,o,n);a.set(w,D)}return a},$s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],De=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=$s[c]);let T=i("tint");if(T&&(s+=` ${u.oe.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ms=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,constructorOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./Bn43jSsdzLy_636p.cjs")),T=Promise.resolve().then(()=>require("./D5yPr453o--2fxmV.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./Be-w6Cc2N61jNFQe.cjs")).then(d=>d.i));let w=null,D=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],D=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new D.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.cE,m=y.beginPersist(),V={},F=new Set,W=new Map;W.set("richTypes",[]);const ht=new Map,Pe=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=Ee($,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ne,f,P,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})($);const we=P?.getVisitorParamsState().get("dxfs");let Xt=ut.get($);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((L,G,Jt,_,Z,Q,wt)=>{const h=new Rs,J=new u.mo.TransposedBuilder;let H=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",E);if(l!==null){let p=_?.get(l);p||(Q?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=De(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",E,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.Sc.fastStringToRange(p,is).colStart,pt=u.Sc.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{H=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=H.topLeft?u.Sc.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",E,"xSplit"),e.copyToObject(p,"rowIndex",E,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.Sc.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=De(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",E),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",E,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const ms={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Jt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,Wt=[],_t=!1,Et=null,Yt=null,de=null,nt=null,$e=null,Me=null;const Ts=pt?.get("richData")??[],je=u.Sc.normalizeA1ToR1C1,He=u.me.createConflatingRanges(),Fe=new Map,ve=[];let te=null;const Xe=u.me.createConflatingRanges();let ee,Dt=!1,B=-1,K=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Pt="",Ot="",It="",Vt="",Lt="",Nt="",qe="",We="",_e="",ze="",Ue="",Ge="",Ze="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done(Ms);const k=g.length;if(k>0){const M=new Array(k);for(let N=0;N<k;N++){const at=g[N],$t=u.Sc.rangeToString(at),Mt=at.value[1],ie=u.Sc.resolveRelativeToA1(Mt,at.rowStart,at.colStart);M[N]=[$t,ie]}r.formulas=M}const st=Xe.done(!0),R=st.length;if(R>0){const M=new Array(R);for(let N=0;N<R;N++){const at=st[N],$t=u.Sc.rangeToString(at);M[N]=$t}r.volatile=M}if(ve.length>0&&(r.dynamicArray=[...ve]),Wt.length>0){Wt.sort(u.me.createRangeComparator(u.q.Orientation.Column));const M=[];let N=null,at=-1,$t=-1,Mt=-1,ie=-1,vt=null;const Qe=Wt.length;Qe>0&&(N=Wt[0],at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value,M.push(N));for(let jt=1;jt<Qe;jt++)vt=Wt[jt],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Mt+1!==vt.rowEnd?(M.push(vt),N=vt,at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value):(Mt=vt.rowEnd,N.rowEnd=Mt);let Je=[];for(let jt=0;jt<M.length;jt++){const oe=M[jt];Je.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Je}const it=e.build();if(it){const M=it.tuples;r.data=M}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Et=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,K);break;case"is":return void(Dt=!0)}return void(Dt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;K=u.Sc.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Dt=!0));let M=g.attributes.s;M!==void 0&&(M=parseInt(M),Rt&&Rt.value===M&&Rt.colEnd+1===K?Rt.colEnd=K:(Rt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:M},Wt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ft.CustomHeight),Pt!==We&&(mt=!0,We=Pt),zt=g.attributes.ht,zt!==void 0&&(ft|=Ft.Ht),zt!==qe&&(mt=!0,qe=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Ft.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ft.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Ft.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ft.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ft.Collapsed),Nt!==Ze&&(mt=!0,Ze=Nt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),M=It!==void 0&&(It==="1"||It==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:M,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Dt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Dt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.mt.Error,v:R.getCode()};break}}}const k=u.Mt.getBuiltInByLabel(g);k?gt={t:u.mt.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.Sc.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Dt=!0}gt!==null&&e.addValue(B,K,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Et)if($e===Et)nt=Me;else{if(nt=Fe.get(Et),!nt){const k=[];de=je(g,B,K,k),nt=[de,k,g],Fe.set(Et,nt)}$e=Et,Me=nt}if(_t){const k=[];de=je(g,B,K,k),nt=[de,k,g]}if(nt)return He.append(B,K,nt),nt=null,_t=!1,Et=null,void(Yt=null);Dt?C?.onText(g):rt||l?.onText(g)}}})(J,L,h.createEventHandler(L,()=>{},Q),Q,ms,wt)})(tt,(L,G=!1)=>ae(L,$,G)??null,us,we,0,L=>{o&&(L=$+": "+L,o?.(L))},W),Bt=ss($,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Q}=await Promise.resolve().then(()=>require("./C6x5hrvJ433bQqqH.cjs"));global.ReadableStream=Q}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let _=0;const Z=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Q){if(_>=Z.byteLength)return void Q.close();const wt=Z.subarray(_,Math.min(_+G,Z.byteLength)),h=Jt.decode(wt,{stream:_+G<Z.byteLength});Q.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${$}'`,L),new Error(`Error parsing sheet: '${$}'`,{cause:L})}const qt=fe($,ut);let kt,Re=new Map;if(qt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;qt.forEach((_,Z)=>{_.type===L&&(kt=ae(Z,$,!1,ut)?.comments,kt&&kt.forEach(Q=>{Re.set(Q.id,Q)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,Z)=>{_.type===Jt&&(G=ae(Z,$,!1,ut))}),G||kt){const _=kt??[],Z=G?.comments;if(Z){const Q=G?.authors;for(let wt=0;wt<Z.length;wt++){const h=Z[wt];let J=h.authorId!==void 0?Q[h.authorId]:void 0;if((!J||J.startsWith("tc="))&&(J=ls(J.substring(3)),Re.has(J)))continue;let H=ce.get(J);H||(H=Ve.get(J)),H||(H={id:u.re.uuidV4(),displayName:J},Ve.set(H.displayName,H),ce.set(H.id,H)),J=H?.id??null;const ue={id:u.re.uuidV4(),personId:J,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?ss($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),F.add(et),m.toResourceId(et)},yt):Ee($,ne,f,P,yt);return Xt},yt={paramMap:W,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,P,yt),Ut("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Ut("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.I5(Ne);let he=Ut("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.$g(he)));const ps=Ut("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.bL(gs);return F.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.ko&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./Bn43jSsdzLy_636p.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((D,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.lo.Type.General&&(f===u.lo.Type.ShortDate?f="m/d/yyyy":f===u.lo.Type.MediumDate?f="d-mmm-yy":f===u.lo.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.lo.Type.ShortTime?f="h:mm":f===u.lo.Type.MediumTime?f="h:mm AM/PM":f===u.lo.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(D!==null)switch(b.getType()){case u.mt.Number:d.t="n",d.v=D;break;case u.mt.String:d.t="s",d.v=D;break;case u.mt.Boolean:d.t="b",d.v=D;break;case u.mt.Error:d.t="e",d.v=D.toString();case u.mt.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const D=[];T["!merges"]=D;for(let b=0;b<S.merges.length;b++)D.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const D=[];T["!cols"]=D;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=D.length;m<=f.min-1;m++)D.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)D.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.dn.roundAccurately(parseFloat(i)/9525,1):null,exports.d=De,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.dn.roundAccurately(parseFloat(i)/12700,4):null;
33
+ `),t=this.i;break;case I:o!==void 0&&(this.text+=s.slice(t));break t;default:z(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==q&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Qt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=q,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=q,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=q,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Ns({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],D={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let F=0;F<m.length;F++)if(V==null||(V=m[F](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,F)=>{const W=P(F??m,V);W!==void 0&&(y[m]=W)},copyTo:(y,m,V)=>{const F=P(V??y,m);F!==void 0&&(b.source[y]=F)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const F=n.get(m);if(c={local:m,visitor:F,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,F&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const F=a.pop()??null;c=a[a.length-1]??null;const W=F?.destination;if(W){w.pop(),b=w[w.length-1]??D;const ht=F.visitor;ht&&ht.to&&W.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(W.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):W.key?b.source[W.key]=W.source:typeof ht.to=="string"&&(b.source[ht.to]=W.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const ss=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},Ee=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),D=o.convert(w,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const D=Ee(w,b=>t.files[b],s,o,n);a.set(w,D)}return a},$s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],De=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=$s[c]);let T=i("tint");if(T&&(s+=` ${u.oe.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ms=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,constructorOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./BeR1ChCVTFwB5yHv.cjs")),T=Promise.resolve().then(()=>require("./BBXoDmENVubxlArs.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./BlYWr2BKhS18L5sc.cjs")).then(d=>d.i));let w=null,D=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],D=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new D.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.cE,m=y.beginPersist(),V={},F=new Set,W=new Map;W.set("richTypes",[]);const ht=new Map,Pe=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=Ee($,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ne,f,P,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})($);const we=P?.getVisitorParamsState().get("dxfs");let Xt=ut.get($);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((L,G,Jt,_,Z,Q,wt)=>{const h=new Rs,J=new u.mo.TransposedBuilder;let H=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",E);if(l!==null){let p=_?.get(l);p||(Q?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=De(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",E,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.iy.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.Sc.fastStringToRange(p,is).colStart,pt=u.Sc.fastStringToRange(r.ref,is),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{H=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=H.topLeft?u.Sc.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",E,"xSplit"),e.copyToObject(p,"rowIndex",E,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.Sc.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=De(l=>e.getAttribute(l));r&&(L.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",E),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",E,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const ms={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Jt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,Wt=[],_t=!1,Et=null,Yt=null,de=null,nt=null,$e=null,Me=null;const Ts=pt?.get("richData")??[],je=u.Sc.normalizeA1ToR1C1,He=u.me.createConflatingRanges(),Fe=new Map,ve=[];let te=null;const Xe=u.me.createConflatingRanges();let ee,Dt=!1,B=-1,K=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,zt="",Pt="",Ot="",It="",Vt="",Lt="",Nt="",qe="",We="",_e="",ze="",Ue="",Ge="",Ze="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done(Ms);const k=g.length;if(k>0){const M=new Array(k);for(let N=0;N<k;N++){const at=g[N],$t=u.Sc.rangeToString(at),Mt=at.value[1],ie=u.Sc.resolveRelativeToA1(Mt,at.rowStart,at.colStart);M[N]=[$t,ie]}r.formulas=M}const st=Xe.done(!0),R=st.length;if(R>0){const M=new Array(R);for(let N=0;N<R;N++){const at=st[N],$t=u.Sc.rangeToString(at);M[N]=$t}r.volatile=M}if(ve.length>0&&(r.dynamicArray=[...ve]),Wt.length>0){Wt.sort(u.me.createRangeComparator(u.q.Orientation.Column));const M=[];let N=null,at=-1,$t=-1,Mt=-1,ie=-1,vt=null;const Qe=Wt.length;Qe>0&&(N=Wt[0],at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value,M.push(N));for(let jt=1;jt<Qe;jt++)vt=Wt[jt],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Mt+1!==vt.rowEnd?(M.push(vt),N=vt,at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value):(Mt=vt.rowEnd,N.rowEnd=Mt);let Je=[];for(let jt=0;jt<M.length;jt++){const oe=M[jt];Je.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Je}const it=e.build();if(it){const M=it.tuples;r.data=M}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Et=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,K);break;case"is":return void(Dt=!0)}return void(Dt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;K=u.Sc.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Dt=!0));let M=g.attributes.s;M!==void 0&&(M=parseInt(M),Rt&&Rt.value===M&&Rt.colEnd+1===K?Rt.colEnd=K:(Rt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:M},Wt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ft.CustomHeight),Pt!==We&&(mt=!0,We=Pt),zt=g.attributes.ht,zt!==void 0&&(ft|=Ft.Ht),zt!==qe&&(mt=!0,qe=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Ft.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ft.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Ft.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ft.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ft.Collapsed),Nt!==Ze&&(mt=!0,Ze=Nt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),M=It!==void 0&&(It==="1"||It==="true");Ce={min:B,max:B,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:M,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Dt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Dt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.mt.Error,v:R.getCode()};break}}}const k=u.Mt.getBuiltInByLabel(g);k?gt={t:u.mt.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.Sc.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Dt=!0}gt!==null&&e.addValue(B,K,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Et)if($e===Et)nt=Me;else{if(nt=Fe.get(Et),!nt){const k=[];de=je(g,B,K,k),nt=[de,k,g],Fe.set(Et,nt)}$e=Et,Me=nt}if(_t){const k=[];de=je(g,B,K,k),nt=[de,k,g]}if(nt)return He.append(B,K,nt),nt=null,_t=!1,Et=null,void(Yt=null);Dt?C?.onText(g):rt||l?.onText(g)}}})(J,L,h.createEventHandler(L,()=>{},Q),Q,ms,wt)})(tt,(L,G=!1)=>ae(L,$,G)??null,us,we,0,L=>{o&&(L=$+": "+L,o?.(L))},W),Bt=ss($,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Q}=await Promise.resolve().then(()=>require("./CFIXzpjjBJD9Ssfu.cjs"));global.ReadableStream=Q}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let _=0;const Z=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Q){if(_>=Z.byteLength)return void Q.close();const wt=Z.subarray(_,Math.min(_+G,Z.byteLength)),h=Jt.decode(wt,{stream:_+G<Z.byteLength});Q.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${$}'`,L),new Error(`Error parsing sheet: '${$}'`,{cause:L})}const qt=fe($,ut);let kt,Re=new Map;if(qt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;qt.forEach((_,Z)=>{_.type===L&&(kt=ae(Z,$,!1,ut)?.comments,kt&&kt.forEach(Q=>{Re.set(Q.id,Q)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,Z)=>{_.type===Jt&&(G=ae(Z,$,!1,ut))}),G||kt){const _=kt??[],Z=G?.comments;if(Z){const Q=G?.authors;for(let wt=0;wt<Z.length;wt++){const h=Z[wt];let J=h.authorId!==void 0?Q[h.authorId]:void 0;if((!J||J.startsWith("tc="))&&(J=ls(J.substring(3)),Re.has(J)))continue;let H=ce.get(J);H||(H=Ve.get(J)),H||(H={id:u.re.uuidV4(),displayName:J},Ve.set(H.displayName,H),ce.set(H.id,H)),J=H?.id??null;const ue={id:u.re.uuidV4(),personId:J,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?ss($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),F.add(et),m.toResourceId(et)},yt):Ee($,ne,f,P,yt);return Xt},yt={paramMap:W,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,P,yt),Ut("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Ut("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.I5(Ne);let he=Ut("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.$g(he)));const ps=Ut("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.bL(gs);return F.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.ko&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./BeR1ChCVTFwB5yHv.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((D,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.lo.Type.General&&(f===u.lo.Type.ShortDate?f="m/d/yyyy":f===u.lo.Type.MediumDate?f="d-mmm-yy":f===u.lo.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.lo.Type.ShortTime?f="h:mm":f===u.lo.Type.MediumTime?f="h:mm AM/PM":f===u.lo.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(D!==null)switch(b.getType()){case u.mt.Number:d.t="n",d.v=D;break;case u.mt.String:d.t="s",d.v=D;break;case u.mt.Boolean:d.t="b",d.v=D;break;case u.mt.Error:d.t="e",d.v=D.toString();case u.mt.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const D=[];T["!merges"]=D;for(let b=0;b<S.merges.length;b++)D.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const D=[];T["!cols"]=D;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=D.length;m<=f.min-1;m++)D.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)D.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=cs,exports.c=i=>i?u.dn.roundAccurately(parseFloat(i)/9525,1):null,exports.d=De,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.dn.roundAccurately(parseFloat(i)/12700,4):null;
@@ -1,15 +1,15 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.2.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
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
6
  */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
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.
11
11
  *//**
12
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.2.0
12
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.3.0
13
13
  *
14
14
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
15
15
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,20 +1,20 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.2.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
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
6
  */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
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.
11
11
  *//**
12
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.2.0
12
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.0
13
13
  *
14
14
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
15
15
  * License: The license can be found at https://www.sheetxl.com/license.
16
16
  *//**
17
- * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.2.0
17
+ * @license @sheetxl/scripting - Scripting - Scripting engine for Macros and formulas; includes TypeScript and EsBuild. - v0.3.0
18
18
  *
19
19
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
20
20
  * 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.2.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
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 o=require("react/jsx-runtime"),u=require("react"),e=require("./DVrhH2z9cGZBKu17.cjs"),a=({range:c,options:r,cell:d,onDone:s,...C})=>{const[t,i]=u.useState(r??e.pc.DefaultRangeOptions),b=e.Te(n=>{let l=null;n==="Sort"&&(l={...r,options:t}),s?.(l)},[t,s,r]);return o.jsx(e.Cb,{title:"Sort",options:["Sort","Cancel"],onDone:b,...C,children:o.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column"},children:[o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:!t.reverse,onChange:()=>i(n=>({...n,reverse:!n.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.hasHeader,onChange:()=>i(n=>({...n,hasHeader:!n.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.collatorOptions?.sensitivity===e.pc.CaseSensitiveOptions.sensitivity,onChange:()=>i(n=>({...n,collatorOptions:t.collatorOptions?.sensitivity===e.pc.CaseSensitiveOptions.sensitivity?e.pc.CaseInsensitiveOptions:e.pc.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.orientation===e.q.Orientation.Row,onChange:()=>i(n=>{const l=n.orientation===e.q.Orientation.Row?e.q.Orientation.Column:e.q.Orientation.Row;return{...c.getDefaultSortCriteria(l,d).options,includeHidden:n.includeHidden,reverse:n.reverse,orientation:l}})}),label:"Row Sort",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.includeHidden,onChange:()=>i(n=>({...n,includeHidden:!n.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=a,exports.default=a;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),e=require("./BFjFhtH4OqOirVjz.cjs"),a=({range:c,options:r,cell:d,onDone:s,...C})=>{const[t,i]=u.useState(r??e.pc.DefaultRangeOptions),b=e.Te(n=>{let l=null;n==="Sort"&&(l={...r,options:t}),s?.(l)},[t,s,r]);return o.jsx(e.Cb,{title:"Sort",options:["Sort","Cancel"],onDone:b,...C,children:o.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column"},children:[o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:!t.reverse,onChange:()=>i(n=>({...n,reverse:!n.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.hasHeader,onChange:()=>i(n=>({...n,hasHeader:!n.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.collatorOptions?.sensitivity===e.pc.CaseSensitiveOptions.sensitivity,onChange:()=>i(n=>({...n,collatorOptions:t.collatorOptions?.sensitivity===e.pc.CaseSensitiveOptions.sensitivity?e.pc.CaseInsensitiveOptions:e.pc.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.orientation===e.q.Orientation.Row,onChange:()=>i(n=>{const l=n.orientation===e.q.Orientation.Row?e.q.Orientation.Column:e.q.Orientation.Row;return{...c.getDefaultSortCriteria(l,d).options,includeHidden:n.includeHidden,reverse:n.reverse,orientation:l}})}),label:"Row Sort",labelPlacement:"end"}),o.jsx(e.FormControlLabel,{control:o.jsx(e.Checkbox,{checked:t.includeHidden,onChange:()=>i(n=>({...n,includeHidden:!n.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=a,exports.default=a;
@@ -1,17 +1,17 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.2.0
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.0
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
- */const m=require("react/jsx-runtime"),l=require("react"),r=require("./DVrhH2z9cGZBKu17.cjs"),Wt=require("react-dom");function Rt(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return o.default=e,Object.freeze(o)}const de=Rt(l);function Pt(e){return r.generateUtilityClass("MuiCollapse",e)}r.generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ft=r.styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,o[i.orientation],i.state==="entered"&&o.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&o.hidden]}})(r.memoTheme(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Nt=r.styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,o)=>o.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),It=r.styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,o)=>o.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Fe=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCollapse"}),{addEndListener:t,children:n,className:a,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:x,onExit:v,onExited:y,onExiting:k,orientation:w="vertical",style:b,timeout:h=r.duration.standard,TransitionComponent:M=r.Transition,...E}=i,N={...i,orientation:w,collapsedSize:s},T=(j=>{const{orientation:W,classes:V}=j,J={root:["root",`${W}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${W}`],wrapperInner:["wrapperInner",`${W}`]};return r.composeClasses(J,Pt,V)})(N),H=r.useTheme(),_=r.useTimeout(),P=de.useRef(null),z=de.useRef(),$=typeof s=="number"?`${s}px`:s,Y=w==="horizontal",I=Y?"width":"height",te=de.useRef(null),F=r.useForkRef(o,te),S=j=>W=>{if(j){const V=te.current;W===void 0?j(V):j(V,W)}},L=()=>P.current?P.current[Y?"clientWidth":"clientHeight"]:0,A=S((j,W)=>{P.current&&Y&&(P.current.style.position="absolute"),j.style[I]=$,p&&p(j,W)}),D=S((j,W)=>{const V=L();P.current&&Y&&(P.current.style.position="");const{duration:J,easing:ae}=r.getTransitionProps({style:b,timeout:h,easing:c},{mode:"enter"});if(h==="auto"){const ne=H.transitions.getAutoHeightDuration(V);j.style.transitionDuration=`${ne}ms`,z.current=ne}else j.style.transitionDuration=typeof J=="string"?J:`${J}ms`;j.style[I]=`${V}px`,j.style.transitionTimingFunction=ae,x&&x(j,W)}),X=S((j,W)=>{j.style[I]="auto",f&&f(j,W)}),B=S(j=>{j.style[I]=`${L()}px`,v&&v(j)}),Q=S(y),q=S(j=>{const W=L(),{duration:V,easing:J}=r.getTransitionProps({style:b,timeout:h,easing:c},{mode:"exit"});if(h==="auto"){const ae=H.transitions.getAutoHeightDuration(W);j.style.transitionDuration=`${ae}ms`,z.current=ae}else j.style.transitionDuration=typeof V=="string"?V:`${V}ms`;j.style[I]=$,j.style.transitionTimingFunction=J,k&&k(j)});return m.jsx(M,{in:d,onEnter:A,onEntered:X,onEntering:D,onExit:B,onExited:Q,onExiting:q,addEndListener:j=>{h==="auto"&&_.start(z.current||0,j),t&&t(te.current,j)},nodeRef:te,timeout:h==="auto"?null:h,...E,children:(j,{ownerState:W,...V})=>m.jsx(Ft,{as:u,className:r.clsx(T.root,a,{entered:T.entered,exited:!d&&$==="0px"&&T.hidden}[j]),style:{[Y?"minWidth":"minHeight"]:$,...b},ref:F,ownerState:{...N,state:j},...V,children:m.jsx(Nt,{ownerState:{...N,state:j},className:T.wrapper,ref:P,children:m.jsx(It,{ownerState:{...N,state:j},className:T.wrapperInner,children:n})})})})});function At(e){return r.generateUtilityClass("MuiCard",e)}Fe&&(Fe.muiSupportAuto=!0),r.generateUtilityClasses("MuiCard",["root"]);const Ht=r.styled(r.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})({overflow:"hidden"}),qt=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCard"}),{className:t,raised:n=!1,...a}=i,s={...i,raised:n},u=(c=>{const{classes:d}=c;return r.composeClasses({root:["root"]},At,d)})(s);return m.jsx(Ht,{className:r.clsx(u.root,t),elevation:n?8:void 0,ref:o,ownerState:s,...a})});function zt(e){return r.generateUtilityClass("MuiCardActions",e)}r.generateUtilityClasses("MuiCardActions",["root","spacing"]);const Bt=r.styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,!i.disableSpacing&&o.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),_t=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCardActions"}),{disableSpacing:t=!1,className:n,...a}=i,s={...i,disableSpacing:t},u=(c=>{const{classes:d,disableSpacing:p}=c,f={root:["root",!p&&"spacing"]};return r.composeClasses(f,zt,d)})(s);return m.jsx(Bt,{className:r.clsx(u.root,n),ownerState:s,ref:o,...a})}),Ue=typeof r.globalCss({})=="function",Xt=(e,o)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...o&&!e.vars&&{colorScheme:e.palette.mode}}),Vt=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),et=(e,o=!1)=>{const i={};o&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const u=e.getColorSchemeSelector(a);u.startsWith("@")?i[u]={":root":{colorScheme:s.palette?.mode}}:i[u.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let t={html:Xt(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Vt(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const n=e.components?.MuiCssBaseline?.styleOverrides;return n&&(t=[t,n]),t},Re="mui-ecs",Kt=r.globalCss(Ue?({theme:e,enableColorScheme:o})=>et(e,o):({theme:e})=>(o=>{const i=et(o,!1),t=Array.isArray(i)?i[0]:i;return!o.vars&&t&&(t.html[`:root:has(${Re})`]={colorScheme:o.palette.mode}),o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([n,a])=>{const s=o.getColorSchemeSelector(n);s.startsWith("@")?t[s]={[`:root:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}:t[s.replace(/\s*&/,"")]={[`&:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}}),i})(e));function Ut(e){const o=r.useDefaultProps({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:t=!1}=o;return m.jsxs(de.Fragment,{children:[Ue&&m.jsx(Kt,{enableColorScheme:t}),!Ue&&!t&&m.jsx("span",{className:Re,style:{display:"none"}}),i]})}const $t=r.createSvgIcon(m.jsx("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"),Gt=l.createContext(null),qe={didCatch:!1,error:null};/**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.2.0
6
+ */const m=require("react/jsx-runtime"),l=require("react"),r=require("./BFjFhtH4OqOirVjz.cjs"),Wt=require("react-dom");function Rt(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return o.default=e,Object.freeze(o)}const de=Rt(l);function Pt(e){return r.generateUtilityClass("MuiCollapse",e)}r.generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ft=r.styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,o[i.orientation],i.state==="entered"&&o.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&o.hidden]}})(r.memoTheme(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Nt=r.styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,o)=>o.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),It=r.styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,o)=>o.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Fe=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCollapse"}),{addEndListener:t,children:n,className:a,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:x,onExit:v,onExited:y,onExiting:b,orientation:w="vertical",style:k,timeout:h=r.duration.standard,TransitionComponent:T=r.Transition,...E}=i,N={...i,orientation:w,collapsedSize:s},L=(j=>{const{orientation:W,classes:K}=j,J={root:["root",`${W}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${W}`],wrapperInner:["wrapperInner",`${W}`]};return r.composeClasses(J,Pt,K)})(N),H=r.useTheme(),_=r.useTimeout(),P=de.useRef(null),z=de.useRef(),$=typeof s=="number"?`${s}px`:s,Q=w==="horizontal",I=Q?"width":"height",te=de.useRef(null),F=r.useForkRef(o,te),S=j=>W=>{if(j){const K=te.current;W===void 0?j(K):j(K,W)}},M=()=>P.current?P.current[Q?"clientWidth":"clientHeight"]:0,A=S((j,W)=>{P.current&&Q&&(P.current.style.position="absolute"),j.style[I]=$,p&&p(j,W)}),D=S((j,W)=>{const K=M();P.current&&Q&&(P.current.style.position="");const{duration:J,easing:ae}=r.getTransitionProps({style:k,timeout:h,easing:c},{mode:"enter"});if(h==="auto"){const ne=H.transitions.getAutoHeightDuration(K);j.style.transitionDuration=`${ne}ms`,z.current=ne}else j.style.transitionDuration=typeof J=="string"?J:`${J}ms`;j.style[I]=`${K}px`,j.style.transitionTimingFunction=ae,x&&x(j,W)}),X=S((j,W)=>{j.style[I]="auto",f&&f(j,W)}),B=S(j=>{j.style[I]=`${M()}px`,v&&v(j)}),Y=S(y),q=S(j=>{const W=M(),{duration:K,easing:J}=r.getTransitionProps({style:k,timeout:h,easing:c},{mode:"exit"});if(h==="auto"){const ae=H.transitions.getAutoHeightDuration(W);j.style.transitionDuration=`${ae}ms`,z.current=ae}else j.style.transitionDuration=typeof K=="string"?K:`${K}ms`;j.style[I]=$,j.style.transitionTimingFunction=J,b&&b(j)});return m.jsx(T,{in:d,onEnter:A,onEntered:X,onEntering:D,onExit:B,onExited:Y,onExiting:q,addEndListener:j=>{h==="auto"&&_.start(z.current||0,j),t&&t(te.current,j)},nodeRef:te,timeout:h==="auto"?null:h,...E,children:(j,{ownerState:W,...K})=>m.jsx(Ft,{as:u,className:r.clsx(L.root,a,{entered:L.entered,exited:!d&&$==="0px"&&L.hidden}[j]),style:{[Q?"minWidth":"minHeight"]:$,...k},ref:F,ownerState:{...N,state:j},...K,children:m.jsx(Nt,{ownerState:{...N,state:j},className:L.wrapper,ref:P,children:m.jsx(It,{ownerState:{...N,state:j},className:L.wrapperInner,children:n})})})})});function At(e){return r.generateUtilityClass("MuiCard",e)}Fe&&(Fe.muiSupportAuto=!0),r.generateUtilityClasses("MuiCard",["root"]);const Ht=r.styled(r.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})({overflow:"hidden"}),qt=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCard"}),{className:t,raised:n=!1,...a}=i,s={...i,raised:n},u=(c=>{const{classes:d}=c;return r.composeClasses({root:["root"]},At,d)})(s);return m.jsx(Ht,{className:r.clsx(u.root,t),elevation:n?8:void 0,ref:o,ownerState:s,...a})});function zt(e){return r.generateUtilityClass("MuiCardActions",e)}r.generateUtilityClasses("MuiCardActions",["root","spacing"]);const Bt=r.styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,!i.disableSpacing&&o.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),_t=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCardActions"}),{disableSpacing:t=!1,className:n,...a}=i,s={...i,disableSpacing:t},u=(c=>{const{classes:d,disableSpacing:p}=c,f={root:["root",!p&&"spacing"]};return r.composeClasses(f,zt,d)})(s);return m.jsx(Bt,{className:r.clsx(u.root,n),ownerState:s,ref:o,...a})}),Ue=typeof r.globalCss({})=="function",Xt=(e,o)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...o&&!e.vars&&{colorScheme:e.palette.mode}}),Kt=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),et=(e,o=!1)=>{const i={};o&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const u=e.getColorSchemeSelector(a);u.startsWith("@")?i[u]={":root":{colorScheme:s.palette?.mode}}:i[u.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let t={html:Xt(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Kt(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const n=e.components?.MuiCssBaseline?.styleOverrides;return n&&(t=[t,n]),t},Re="mui-ecs",Vt=r.globalCss(Ue?({theme:e,enableColorScheme:o})=>et(e,o):({theme:e})=>(o=>{const i=et(o,!1),t=Array.isArray(i)?i[0]:i;return!o.vars&&t&&(t.html[`:root:has(${Re})`]={colorScheme:o.palette.mode}),o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([n,a])=>{const s=o.getColorSchemeSelector(n);s.startsWith("@")?t[s]={[`:root:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}:t[s.replace(/\s*&/,"")]={[`&:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}}),i})(e));function Ut(e){const o=r.useDefaultProps({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:t=!1}=o;return m.jsxs(de.Fragment,{children:[Ue&&m.jsx(Vt,{enableColorScheme:t}),!Ue&&!t&&m.jsx("span",{className:Re,style:{display:"none"}}),i]})}const $t=r.createSvgIcon(m.jsx("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"),Gt=l.createContext(null),qe={didCatch:!1,error:null};/**
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
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.
11
- */class Zt extends l.Component{constructor(o){super(o),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qe}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}resetErrorBoundary(){const{error:o}=this.state;if(o!==null){for(var i,t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(i=(t=this.props).onReset)===null||i===void 0||i.call(t,{args:a,reason:"imperative-api"}),this.setState(qe)}}componentDidCatch(o,i){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,o,i)}componentDidUpdate(o,i){const{didCatch:t}=this.state,{resetKeys:n}=this.props;var a,s;t&&i.error!==null&&function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return u.length!==c.length||u.some((d,p)=>!Object.is(d,c[p]))}(o.resetKeys,n)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:n,prev:o.resetKeys,reason:"keys"}),this.setState(qe))}render(){const{children:o,fallbackRender:i,FallbackComponent:t,fallback:n}=this.props,{didCatch:a,error:s}=this.state;let u=o;if(a){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")u=i(c);else if(t)u=l.createElement(t,c);else{if(n===void 0)throw s;u=n}}return l.createElement(Gt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function ft(e){var o,i,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(i=ft(e[o]))&&(t&&(t+=" "),t+=i);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function ie(){for(var e,o,i=0,t="";i<arguments.length;)(e=arguments[i++])&&(o=ft(e))&&(t&&(t+=" "),t+=o);return t}let Yt={data:""},Qt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Jt=/\/\*[^]*?\*\/| +/g,tt=/\n+/g,ue=(e,o)=>{let i="",t="",n="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?i=a+" "+s+";":t+=a[1]=="f"?ue(s,a):a+"{"+ue(s,a[1]=="k"?"":o)+"}":typeof s=="object"?t+=ue(s,o?o.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,u):u?u+" "+c:c)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ue.p?ue.p(a,s):a+":"+s+";")}return i+(o&&n?o+"{"+n+"}":n)+t},oe={},ht=e=>{if(typeof e=="object"){let o="";for(let i in e)o+=i+ht(e[i]);return o}return e};function $e(e){let o=this||{},i=e.call?e(o.p):e;return((s,u,c,d,p)=>{let f=ht(s),x=oe[f]||(oe[f]=(h=>{let M=0,E=11;for(;M<h.length;)E=101*E+h.charCodeAt(M++)>>>0;return"go"+E})(f));if(!oe[x]){let h=f!==s?s:(M=>{let E,N,T=[{}];for(;E=Qt.exec(M.replace(Jt,""));)E[4]?T.shift():E[3]?(N=E[3].replace(tt," ").trim(),T.unshift(T[0][N]=T[0][N]||{})):T[0][E[1]]=E[2].replace(tt," ").trim();return T[0]})(s);oe[x]=ue(p?{["@keyframes "+x]:h}:h,c?"":"."+x)}let v=c&&oe.g?oe.g:null;return c&&(oe.g=oe[x]),y=oe[x],k=u,w=d,(b=v)?k.data=k.data.replace(b,y):k.data.indexOf(y)===-1&&(k.data=w?y+k.data:k.data+y),x;var y,k,w,b})(i.unshift?i.raw?(t=i,n=[].slice.call(arguments,1),a=o.p,t.reduce((s,u,c)=>{let d=n[c];if(d&&d.call){let p=d(a),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;d=f?"."+f:p&&typeof p=="object"?p.props?"":ue(p,""):p===!1?"":p}return s+u+(d??"")},"")):i.reduce((s,u)=>Object.assign(s,u&&u.call?u(o.p):u),{}):i,(s=>typeof window=="object"?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||Yt)(o.target),o.g,o.o,o.k);var t,n,a}function gt(e,o,i){return o&&function(t,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(e.prototype,o),e}function O(){return O=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},O.apply(this,arguments)}function bt(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function Ce(e,o){if(e==null)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)i=a[t],o.indexOf(i)>=0||(n[i]=e[i]);return n}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}$e.bind({g:1}),$e.bind({k:1});var ot=function(){return""},kt=l.createContext({enqueueSnackbar:ot,closeSnackbar:ot}),ze="@media (max-width:599.95px)",Pe="@media (min-width:600px)",rt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ze=function(e){return""+rt(e.vertical)+rt(e.horizontal)},je=function(e){return!!e||e===0},Le="unmounted",pe="exited",me="entering",xe="entered",it="exiting",Ye=function(e){function o(t){var n;n=e.call(this,t)||this;var a,s=t.appear;return n.appearStatus=null,t.in?s?(a=pe,n.appearStatus=me):a=xe:a=t.unmountOnExit||t.mountOnEnter?Le:pe,n.state={status:a},n.nextCallback=null,n}bt(o,e),o.getDerivedStateFromProps=function(t,n){return t.in&&n.status===Le?{status:pe}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(t){var n=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==me&&a!==xe&&(n=me):a!==me&&a!==xe||(n=it)}this.updateStatus(!1,n)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var t=this.props.timeout,n=t,a=t;return t!=null&&typeof t!="number"&&typeof t!="string"&&(a=t.exit,n=t.enter),{exit:a,enter:n}},i.updateStatus=function(t,n){t===void 0&&(t=!1),n!==null?(this.cancelNextCallback(),n===me?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===pe&&this.setState({status:Le})},i.performEnter=function(t){var n=this,a=this.props.enter,s=t,u=this.getTimeouts();t||a?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:me},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(u.enter,function(){n.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},i.performExit=function(){var t=this,n=this.props.exit,a=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:it},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})})})):this.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})},i.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},i.setNextCallback=function(t){var n=this,a=!0;return this.nextCallback=function(){a&&(a=!1,n.nextCallback=null,t())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var a=t==null&&!this.props.addEndListener;this.node&&!a?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),t!=null&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Le)return null;var n=this.props;return(0,n.children)(t,Ce(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},gt(o,[{key:"node",get:function(){var t,n=(t=this.props.nodeRef)===null||t===void 0?void 0:t.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),o}(l.Component);function fe(){}function at(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Ge(e,o){return l.useMemo(function(){return e==null&&o==null?null:function(i){at(e,i),at(o,i)}},[e,o])}function Ne(e){var o=e.timeout,i=e.style,t=i===void 0?{}:i,n=e.mode;return{duration:typeof o=="object"?o[n]||0:o,easing:t.transitionTimingFunction,delay:t.transitionDelay}}Ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fe,onEntering:fe,onEntered:fe,onExit:fe,onExiting:fe,onExited:fe};var xt=function(e){e.scrollTop=e.scrollTop},st=function(e){return Math.round(e)+"ms"};function he(e,o){e===void 0&&(e=["all"]);var i=o||{},t=i.duration,n=t===void 0?300:t,a=i.easing,s=a===void 0?"cubic-bezier(0.4, 0, 0.2, 1)":a,u=i.delay,c=u===void 0?0:u;return(Array.isArray(e)?e:[e]).map(function(d){var p=typeof n=="string"?n:st(n),f=typeof c=="string"?c:st(c);return d+" "+p+" "+s+" "+f}).join(",")}function yt(e){var o;return((o=e)&&o.ownerDocument||document).defaultView||window}function Me(e,o){if(o){var i=function(t,n){var a,s=n.getBoundingClientRect(),u=yt(n);if(n.fakeTransform)a=n.fakeTransform;else{var c=u.getComputedStyle(n);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var d=0,p=0;if(a&&a!=="none"&&typeof a=="string"){var f=a.split("(")[1].split(")")[0].split(",");d=parseInt(f[4],10),p=parseInt(f[5],10)}switch(t){case"left":return"translateX("+(u.innerWidth+d-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-d)+"px)";case"up":return"translateY("+(u.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(e,o);i&&(o.style.webkitTransform=i,o.style.transform=i)}}var wt=l.forwardRef(function(e,o){var i=e.children,t=e.direction,n=t===void 0?"down":t,a=e.in,s=e.style,u=e.timeout,c=u===void 0?0:u,d=e.onEnter,p=e.onEntered,f=e.onExit,x=e.onExited,v=Ce(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=l.useRef(null),k=Ge(i.ref,y),w=Ge(k,o),b=l.useCallback(function(){y.current&&Me(n,y.current)},[n]);return l.useEffect(function(){if(!a&&n!=="down"&&n!=="right"){var h=function(E,N){var T;function H(){for(var _=this,P=arguments.length,z=new Array(P),$=0;$<P;$++)z[$]=arguments[$];clearTimeout(T),T=setTimeout(function(){E.apply(_,z)},N)}return N===void 0&&(N=166),H.clear=function(){clearTimeout(T)},H}(function(){y.current&&Me(n,y.current)}),M=yt(y.current);return M.addEventListener("resize",h),function(){h.clear(),M.removeEventListener("resize",h)}}},[n,a]),l.useEffect(function(){a||b()},[a,b]),l.createElement(Ye,Object.assign({appear:!0,nodeRef:y,onEnter:function(h,M){Me(n,h),xt(h),d&&d(h,M)},onEntered:p,onEntering:function(h){var M=Ne({timeout:c,mode:"enter",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.0, 0, 0.2, 1)"})});h.style.webkitTransition=he("-webkit-transform",M),h.style.transition=he("transform",M),h.style.webkitTransform="none",h.style.transform="none"},onExit:function(h){var M=Ne({timeout:c,mode:"exit",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.4, 0, 0.6, 1)"})});h.style.webkitTransition=he("-webkit-transform",M),h.style.transition=he("transform",M),Me(n,h),f&&f(h)},onExited:function(h){h.style.webkitTransition="",h.style.transition="",x&&x(h)},in:a,timeout:c},v),function(h,M){return l.cloneElement(i,O({ref:w,style:O({visibility:h!=="exited"||a?void 0:"hidden"},s,{},i.props.style)},M))})});wt.displayName="Slide";var Te=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},ce={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(Te,null,l.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
12
- 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},null),warning:l.createElement(function(){return l.createElement(Te,null,l.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:l.createElement(function(){return l.createElement(Te,null,l.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
11
+ */class Zt extends l.Component{constructor(o){super(o),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qe}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}resetErrorBoundary(){const{error:o}=this.state;if(o!==null){for(var i,t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(i=(t=this.props).onReset)===null||i===void 0||i.call(t,{args:a,reason:"imperative-api"}),this.setState(qe)}}componentDidCatch(o,i){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,o,i)}componentDidUpdate(o,i){const{didCatch:t}=this.state,{resetKeys:n}=this.props;var a,s;t&&i.error!==null&&function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return u.length!==c.length||u.some((d,p)=>!Object.is(d,c[p]))}(o.resetKeys,n)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:n,prev:o.resetKeys,reason:"keys"}),this.setState(qe))}render(){const{children:o,fallbackRender:i,FallbackComponent:t,fallback:n}=this.props,{didCatch:a,error:s}=this.state;let u=o;if(a){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")u=i(c);else if(t)u=l.createElement(t,c);else{if(n===void 0)throw s;u=n}}return l.createElement(Gt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function ft(e){var o,i,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(i=ft(e[o]))&&(t&&(t+=" "),t+=i);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function ie(){for(var e,o,i=0,t="";i<arguments.length;)(e=arguments[i++])&&(o=ft(e))&&(t&&(t+=" "),t+=o);return t}let Qt={data:""},Yt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Jt=/\/\*[^]*?\*\/| +/g,tt=/\n+/g,ue=(e,o)=>{let i="",t="",n="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?i=a+" "+s+";":t+=a[1]=="f"?ue(s,a):a+"{"+ue(s,a[1]=="k"?"":o)+"}":typeof s=="object"?t+=ue(s,o?o.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,u):u?u+" "+c:c)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ue.p?ue.p(a,s):a+":"+s+";")}return i+(o&&n?o+"{"+n+"}":n)+t},oe={},ht=e=>{if(typeof e=="object"){let o="";for(let i in e)o+=i+ht(e[i]);return o}return e};function $e(e){let o=this||{},i=e.call?e(o.p):e;return((s,u,c,d,p)=>{let f=ht(s),x=oe[f]||(oe[f]=(h=>{let T=0,E=11;for(;T<h.length;)E=101*E+h.charCodeAt(T++)>>>0;return"go"+E})(f));if(!oe[x]){let h=f!==s?s:(T=>{let E,N,L=[{}];for(;E=Yt.exec(T.replace(Jt,""));)E[4]?L.shift():E[3]?(N=E[3].replace(tt," ").trim(),L.unshift(L[0][N]=L[0][N]||{})):L[0][E[1]]=E[2].replace(tt," ").trim();return L[0]})(s);oe[x]=ue(p?{["@keyframes "+x]:h}:h,c?"":"."+x)}let v=c&&oe.g?oe.g:null;return c&&(oe.g=oe[x]),y=oe[x],b=u,w=d,(k=v)?b.data=b.data.replace(k,y):b.data.indexOf(y)===-1&&(b.data=w?y+b.data:b.data+y),x;var y,b,w,k})(i.unshift?i.raw?(t=i,n=[].slice.call(arguments,1),a=o.p,t.reduce((s,u,c)=>{let d=n[c];if(d&&d.call){let p=d(a),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;d=f?"."+f:p&&typeof p=="object"?p.props?"":ue(p,""):p===!1?"":p}return s+u+(d??"")},"")):i.reduce((s,u)=>Object.assign(s,u&&u.call?u(o.p):u),{}):i,(s=>typeof window=="object"?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||Qt)(o.target),o.g,o.o,o.k);var t,n,a}function gt(e,o,i){return o&&function(t,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(e.prototype,o),e}function O(){return O=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},O.apply(this,arguments)}function kt(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function Ce(e,o){if(e==null)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)i=a[t],o.indexOf(i)>=0||(n[i]=e[i]);return n}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}$e.bind({g:1}),$e.bind({k:1});var ot=function(){return""},bt=l.createContext({enqueueSnackbar:ot,closeSnackbar:ot}),ze="@media (max-width:599.95px)",Pe="@media (min-width:600px)",rt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ze=function(e){return""+rt(e.vertical)+rt(e.horizontal)},je=function(e){return!!e||e===0},Me="unmounted",pe="exited",me="entering",xe="entered",it="exiting",Qe=function(e){function o(t){var n;n=e.call(this,t)||this;var a,s=t.appear;return n.appearStatus=null,t.in?s?(a=pe,n.appearStatus=me):a=xe:a=t.unmountOnExit||t.mountOnEnter?Me:pe,n.state={status:a},n.nextCallback=null,n}kt(o,e),o.getDerivedStateFromProps=function(t,n){return t.in&&n.status===Me?{status:pe}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(t){var n=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==me&&a!==xe&&(n=me):a!==me&&a!==xe||(n=it)}this.updateStatus(!1,n)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var t=this.props.timeout,n=t,a=t;return t!=null&&typeof t!="number"&&typeof t!="string"&&(a=t.exit,n=t.enter),{exit:a,enter:n}},i.updateStatus=function(t,n){t===void 0&&(t=!1),n!==null?(this.cancelNextCallback(),n===me?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===pe&&this.setState({status:Me})},i.performEnter=function(t){var n=this,a=this.props.enter,s=t,u=this.getTimeouts();t||a?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:me},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(u.enter,function(){n.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},i.performExit=function(){var t=this,n=this.props.exit,a=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:it},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})})})):this.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})},i.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},i.setNextCallback=function(t){var n=this,a=!0;return this.nextCallback=function(){a&&(a=!1,n.nextCallback=null,t())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var a=t==null&&!this.props.addEndListener;this.node&&!a?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),t!=null&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Me)return null;var n=this.props;return(0,n.children)(t,Ce(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},gt(o,[{key:"node",get:function(){var t,n=(t=this.props.nodeRef)===null||t===void 0?void 0:t.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),o}(l.Component);function fe(){}function at(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Ge(e,o){return l.useMemo(function(){return e==null&&o==null?null:function(i){at(e,i),at(o,i)}},[e,o])}function Ne(e){var o=e.timeout,i=e.style,t=i===void 0?{}:i,n=e.mode;return{duration:typeof o=="object"?o[n]||0:o,easing:t.transitionTimingFunction,delay:t.transitionDelay}}Qe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fe,onEntering:fe,onEntered:fe,onExit:fe,onExiting:fe,onExited:fe};var xt=function(e){e.scrollTop=e.scrollTop},st=function(e){return Math.round(e)+"ms"};function he(e,o){e===void 0&&(e=["all"]);var i=o||{},t=i.duration,n=t===void 0?300:t,a=i.easing,s=a===void 0?"cubic-bezier(0.4, 0, 0.2, 1)":a,u=i.delay,c=u===void 0?0:u;return(Array.isArray(e)?e:[e]).map(function(d){var p=typeof n=="string"?n:st(n),f=typeof c=="string"?c:st(c);return d+" "+p+" "+s+" "+f}).join(",")}function yt(e){var o;return((o=e)&&o.ownerDocument||document).defaultView||window}function Te(e,o){if(o){var i=function(t,n){var a,s=n.getBoundingClientRect(),u=yt(n);if(n.fakeTransform)a=n.fakeTransform;else{var c=u.getComputedStyle(n);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var d=0,p=0;if(a&&a!=="none"&&typeof a=="string"){var f=a.split("(")[1].split(")")[0].split(",");d=parseInt(f[4],10),p=parseInt(f[5],10)}switch(t){case"left":return"translateX("+(u.innerWidth+d-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-d)+"px)";case"up":return"translateY("+(u.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(e,o);i&&(o.style.webkitTransform=i,o.style.transform=i)}}var wt=l.forwardRef(function(e,o){var i=e.children,t=e.direction,n=t===void 0?"down":t,a=e.in,s=e.style,u=e.timeout,c=u===void 0?0:u,d=e.onEnter,p=e.onEntered,f=e.onExit,x=e.onExited,v=Ce(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=l.useRef(null),b=Ge(i.ref,y),w=Ge(b,o),k=l.useCallback(function(){y.current&&Te(n,y.current)},[n]);return l.useEffect(function(){if(!a&&n!=="down"&&n!=="right"){var h=function(E,N){var L;function H(){for(var _=this,P=arguments.length,z=new Array(P),$=0;$<P;$++)z[$]=arguments[$];clearTimeout(L),L=setTimeout(function(){E.apply(_,z)},N)}return N===void 0&&(N=166),H.clear=function(){clearTimeout(L)},H}(function(){y.current&&Te(n,y.current)}),T=yt(y.current);return T.addEventListener("resize",h),function(){h.clear(),T.removeEventListener("resize",h)}}},[n,a]),l.useEffect(function(){a||k()},[a,k]),l.createElement(Qe,Object.assign({appear:!0,nodeRef:y,onEnter:function(h,T){Te(n,h),xt(h),d&&d(h,T)},onEntered:p,onEntering:function(h){var T=Ne({timeout:c,mode:"enter",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.0, 0, 0.2, 1)"})});h.style.webkitTransition=he("-webkit-transform",T),h.style.transition=he("transform",T),h.style.webkitTransform="none",h.style.transform="none"},onExit:function(h){var T=Ne({timeout:c,mode:"exit",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.4, 0, 0.6, 1)"})});h.style.webkitTransition=he("-webkit-transform",T),h.style.transition=he("transform",T),Te(n,h),f&&f(h)},onExited:function(h){h.style.webkitTransition="",h.style.transition="",x&&x(h)},in:a,timeout:c},v),function(h,T){return l.cloneElement(i,O({ref:w,style:O({visibility:h!=="exited"||a?void 0:"hidden"},s,{},i.props.style)},T))})});wt.displayName="Slide";var Le=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},ce={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
12
+ 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},null),warning:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
13
13
  6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
14
- 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},null),info:l.createElement(function(){return l.createElement(Te,null,l.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
15
- 0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:wt,transitionDuration:{enter:225,exit:195}};function Se(e){return Object.entries(e).reduce(function(o,i){var t,n=i[0],a=i[1];return O({},o,((t={})[n]=$e(a),t))},{})}var vt="notistack-CollapseWrapper",en=function(e){return"notistack-MuiContent-"+e},lt=Se({root:{height:0},entered:{height:"auto"}}),Be="0px",Et=l.forwardRef(function(e,o){var i=e.children,t=e.in,n=e.onExited,a=l.useRef(null),s=l.useRef(null),u=Ge(o,s),c=function(){return a.current?a.current.clientHeight:0};return l.createElement(Ye,{in:t,unmountOnExit:!0,onEnter:function(d){d.style.height=Be},onEntered:function(d){d.style.height="auto"},onEntering:function(d){var p=c(),f=Ne({timeout:175,mode:"enter"}),x=f.duration,v=f.easing;d.style.transitionDuration=typeof x=="string"?x:x+"ms",d.style.height=p+"px",d.style.transitionTimingFunction=v||""},onExit:function(d){d.style.height=c()+"px"},onExited:n,onExiting:function(d){xt(d);var p=Ne({timeout:175,mode:"exit"}),f=p.duration,x=p.easing;d.style.transitionDuration=typeof f=="string"?f:f+"ms",d.style.height=Be,d.style.transitionTimingFunction=x||""},nodeRef:s,timeout:175},function(d,p){return l.createElement("div",Object.assign({ref:u,className:ie(lt.root,d==="entered"&&lt.entered),style:O({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:he("height")},d==="entered"&&{overflow:"visible"},{},d==="exited"&&!t&&{visibility:"hidden"})},p),l.createElement("div",{ref:a,className:vt,style:{display:"flex",width:"100%"}},i))})});Et.displayName="Collapse";var ct={right:"left",left:"right",bottom:"up",top:"down"},tn=function(e){return"anchorOrigin"+Ze(e)},nn=function(){};function Ee(e,o){return e.reduce(function(i,t){return t==null?i:function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var u=[].concat(a);o&&u.indexOf(o)===-1&&u.push(o),i.apply(this,u),t.apply(this,u)}},nn)}var on=typeof window<"u"?l.useLayoutEffect:l.useEffect;function ut(e){var o=l.useRef(e);return on(function(){o.current=e}),l.useCallback(function(){return o.current.apply(void 0,arguments)},[])}var _e,Ct=l.forwardRef(function(e,o){var i=e.children,t=e.className,n=e.autoHideDuration,a=e.disableWindowBlurListener,s=a!==void 0&&a,u=e.onClose,c=e.id,d=e.open,p=e.SnackbarProps,f=p===void 0?{}:p,x=l.useRef(),v=ut(function(){u&&u.apply(void 0,arguments)}),y=ut(function(b){u&&b!=null&&(x.current&&clearTimeout(x.current),x.current=setTimeout(function(){v(null,"timeout",c)},b))});l.useEffect(function(){return d&&y(n),function(){x.current&&clearTimeout(x.current)}},[d,n,y]);var k=function(){x.current&&clearTimeout(x.current)},w=l.useCallback(function(){n!=null&&y(.5*n)},[n,y]);return l.useEffect(function(){if(!s&&d)return window.addEventListener("focus",w),window.addEventListener("blur",k),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",k)}},[s,w,d]),l.createElement("div",Object.assign({ref:o},f,{className:ie("notistack-Snackbar",t),onMouseEnter:function(b){f.onMouseEnter&&f.onMouseEnter(b),k()},onMouseLeave:function(b){f.onMouseLeave&&f.onMouseLeave(b),w()}}),i)});Ct.displayName="Snackbar";var rn=Se({root:(_e={display:"flex",flexWrap:"wrap",flexGrow:1},_e[Pe]={flexGrow:"initial",minWidth:"288px"},_e)}),Qe=l.forwardRef(function(e,o){var i=e.className,t=Ce(e,["className"]);return l.createElement("div",Object.assign({ref:o,className:ie(rn.root,i)},t))});Qe.displayName="SnackbarContent";var ye=Se({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),dt="notistack-snackbar",St=l.forwardRef(function(e,o){var i=e.id,t=e.message,n=e.action,a=e.iconVariant,s=e.variant,u=e.hideIconVariant,c=e.style,d=e.className,p=a[s],f=n;return typeof f=="function"&&(f=f(i)),l.createElement(Qe,{ref:o,role:"alert","aria-describedby":dt,style:c,className:ie("notistack-MuiContent",en(s),ye.root,ye[s],d,!u&&p&&ye.lessPadding)},l.createElement("div",{id:dt,className:ye.message},u?null:p,t),f&&l.createElement("div",{className:ye.action},f))});St.displayName="MaterialDesignContent";var we,Xe,De,Oe,Ve,an=l.memo(St),sn=Se({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),ln=function(e){var o=l.useRef(),i=l.useState(!0),t=i[0],n=i[1],a=Ee([e.snack.onClose,e.onClose]),s=l.useCallback(function(){o.current=setTimeout(function(){n(function(_){return!_})},125)},[]);l.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var u,c=e.snack,d=e.classes,p=e.Component,f=p===void 0?an:p,x=l.useMemo(function(){return function(_){_===void 0&&(_={});var P={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(_).filter(function(z){return!P[z]}).reduce(function(z,$){var Y;return O({},z,((Y={})[$]=_[$],Y))},{})}(d)},[d]),v=c.open,y=c.SnackbarProps,k=c.TransitionComponent,w=c.TransitionProps,b=c.transitionDuration,h=c.disableWindowBlurListener,M=c.content,E=Ce(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),N=O({direction:(u=E.anchorOrigin,u.horizontal!=="center"?ct[u.horizontal]:ct[u.vertical]),timeout:b},w),T=M;typeof T=="function"&&(T=T(E.id,E.message));var H=["onEnter","onEntered","onExit","onExited"].reduce(function(_,P){var z;return O({},_,((z={})[P]=Ee([e.snack[P],e[P]],E.id),z))},{});return l.createElement(Et,{in:t,onExited:H.onExited},l.createElement(Ct,{open:v,id:E.id,disableWindowBlurListener:h,autoHideDuration:E.autoHideDuration,className:ie(sn.wrappedRoot,x.root,x[tn(E.anchorOrigin)]),SnackbarProps:y,onClose:a},l.createElement(k,Object.assign({},N,{appear:!0,in:v,onExit:H.onExit,onExited:s,onEnter:H.onEnter,onEntered:Ee([H.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],E.id)}),T||l.createElement(f,Object.assign({},E)))))},ve=20,Ke=6,cn=2,pt="."+vt,We=Se({root:(we={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:he(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},we[pt]={padding:Ke+"px 0px",transition:"padding 300ms ease 0ms"},we.maxWidth="calc(100% - "+2*ve+"px)",we[ze]={width:"100%",maxWidth:"calc(100% - 32px)"},we),rootDense:(Xe={},Xe[pt]={padding:cn+"px 0px"},Xe),top:{top:ve-Ke+"px",flexDirection:"column"},bottom:{bottom:ve-Ke+"px",flexDirection:"column-reverse"},left:(De={left:ve+"px"},De[Pe]={alignItems:"flex-start"},De[ze]={left:"16px"},De),right:(Oe={right:ve+"px"},Oe[Pe]={alignItems:"flex-end"},Oe[ze]={right:"16px"},Oe),center:(Ve={left:"50%",transform:"translateX(-50%)"},Ve[Pe]={alignItems:"center"},Ve)}),un=l.memo(function(e){var o=e.classes,i=o===void 0?{}:o,t=e.anchorOrigin,n=e.dense,a=e.children,s=ie("notistack-SnackbarContainer",We[t.vertical],We[t.horizontal],We.root,i.containerRoot,i["containerAnchorOrigin"+Ze(t)],n&&We.rootDense);return l.createElement("div",{className:s},a)}),mt=function(e){return!(typeof e=="string"||l.isValidElement(e))},dn=function(e){function o(i){var t;return(t=e.call(this,i)||this).enqueueSnackbar=function(n,a){if(a===void 0&&(a={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=mt(n)?n:a,u=mt(n)?n.message:n,c=s.key,d=s.preventDuplicate,p=Ce(s,["key","preventDuplicate"]),f=je(c),x=f?c:new Date().getTime()+Math.random(),v=function(k,w){return function(b,h){return h===void 0&&(h=!1),h?O({},ce[b],{},w[b],{},k[b]):b==="autoHideDuration"?(T=k.autoHideDuration,H=w.autoHideDuration,(_=function(P){return typeof P=="number"||P===null})(T)?T:_(H)?H:ce.autoHideDuration):b==="transitionDuration"?(M=k.transitionDuration,E=w.transitionDuration,(N=function(P,z){return z.some(function($){return typeof P===$})})(M,["string","number"])?M:N(M,["object"])?O({},ce.transitionDuration,{},N(E,["object"])&&E,{},M):N(E,["string","number"])?E:N(E,["object"])?O({},ce.transitionDuration,{},E):ce.transitionDuration):k[b]||w[b]||ce[b];var M,E,N,T,H,_}}(p,t.props),y=O({id:x},p,{message:u,open:!0,entered:!1,requestClose:!1,persist:v("persist"),action:v("action"),content:v("content"),variant:v("variant"),anchorOrigin:v("anchorOrigin"),disableWindowBlurListener:v("disableWindowBlurListener"),autoHideDuration:v("autoHideDuration"),hideIconVariant:v("hideIconVariant"),TransitionComponent:v("TransitionComponent"),transitionDuration:v("transitionDuration"),TransitionProps:v("TransitionProps",!0),iconVariant:v("iconVariant",!0),style:v("style",!0),SnackbarProps:v("SnackbarProps",!0),className:ie(t.props.className,p.className)});return y.persist&&(y.autoHideDuration=void 0),t.setState(function(k){if(d===void 0&&t.props.preventDuplicate||d){var w=function(M){return f?M.id===x:M.message===u},b=k.queue.findIndex(w)>-1,h=k.snacks.findIndex(w)>-1;if(b||h)return k}return t.handleDisplaySnack(O({},k,{queue:[].concat(k.queue,[y])}))}),x},t.handleDisplaySnack=function(n){return n.snacks.length>=t.maxSnack?t.handleDismissOldest(n):t.processQueue(n)},t.processQueue=function(n){var a=n.queue,s=n.snacks;return a.length>0?O({},n,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):n},t.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var a=!1,s=!1;n.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0)===t.maxSnack&&(s=!0);var u=n.snacks.map(function(c){return a||c.persist&&!s?O({},c):(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),t.props.onClose&&t.props.onClose(null,"maxsnack",c.id),O({},c,{open:!1})):O({},c,{requestClose:!0}))});return O({},n,{snacks:u})},t.handleEnteredSnack=function(n,a,s){if(!je(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(u){return{snacks:u.snacks.map(function(c){return c.id===s?O({},c,{entered:!0}):O({},c)})}})},t.handleCloseSnack=function(n,a,s){t.props.onClose&&t.props.onClose(n,a,s);var u=s===void 0;t.setState(function(c){var d=c.snacks,p=c.queue;return{snacks:d.map(function(f){return u||f.id===s?f.entered?O({},f,{open:!1}):O({},f,{requestClose:!0}):O({},f)}),queue:p.filter(function(f){return f.id!==s})}})},t.closeSnackbar=function(n){var a=t.state.snacks.find(function(s){return s.id===n});je(n)&&a&&a.onClose&&a.onClose(null,"instructed",n),t.handleCloseSnack(null,"instructed",n)},t.handleExitedSnack=function(n,a){if(!je(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(s){var u=t.processQueue(O({},s,{snacks:s.snacks.filter(function(c){return c.id!==a})}));return u.queue.length===0?u:t.handleDismissOldest(u)})},t.enqueueSnackbar,t.closeSnackbar,t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar.bind(nt(t)),closeSnackbar:t.closeSnackbar.bind(nt(t))}},t}return bt(o,e),o.prototype.render=function(){var i=this,t=this.state.contextValue,n=this.props,a=n.domRoot,s=n.children,u=n.dense,c=u!==void 0&&u,d=n.Components,p=d===void 0?{}:d,f=n.classes,x=this.state.snacks.reduce(function(y,k){var w,b=Ze(k.anchorOrigin),h=y[b]||[];return O({},y,((w={})[b]=[].concat(h,[k]),w))},{}),v=Object.keys(x).map(function(y){var k=x[y],w=k[0];return l.createElement(un,{key:y,dense:c,anchorOrigin:w.anchorOrigin,classes:f},k.map(function(b){return l.createElement(ln,{key:b.id,snack:b,classes:f,Component:p[b.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:Ee([i.handleExitedSnack,i.props.onExited],b.id),onEntered:Ee([i.handleEnteredSnack,i.props.onEntered],b.id)})}))});return l.createElement(kt.Provider,{value:t},s,a?Wt.createPortal(v,a):v)},gt(o,[{key:"maxSnack",get:function(){return this.props.maxSnack||ce.maxSnack}}]),o}(l.Component),jt=function(){return l.useContext(kt)};const re={card:"_card_r6a8n_13",actionRoot:"_actionRoot_r6a8n_21",icons:"_icons_r6a8n_31",expand:"_expand_r6a8n_43",expandOpen:"_expandOpen_r6a8n_57",stackTraceContainer:"_stackTraceContainer_r6a8n_65"},Lt=l.forwardRef((e,o)=>{const{id:i,message:t,iconVariant:n,error:a,hideIconVariant:s,...u}=e,{closeSnackbar:c}=jt(),d=r.Js(),[p,f]=l.useState(!1),x=l.useCallback(()=>{f(k=>!k)},[]),v=l.useCallback(()=>{c(i)},[i,c]),y=a?.message||String(t);return m.jsx(Qe,{ref:o,className:r.jo(re.root,"error-snackbar"),children:m.jsxs(qt,{className:re.card,style:{backgroundColor:d.palette.error.dark,border:`1px solid ${d.palette.error.dark}`},children:[m.jsxs(_t,{className:re.actionRoot,children:[s?null:n?.error,m.jsx(r.Typography,{variant:"body2",component:"div",className:re.typography,style:{color:d.palette.text.primary},children:y}),m.jsx("div",{style:{flex:"1 1 auto"}}),m.jsxs("div",{className:re.icons,children:[a?m.jsx(r.IconButton,{"aria-label":"Show more",size:"small",className:r.jo(re.expand,{[re.expandOpen]:p}),style:{color:d.palette.action.active},onClick:x,children:m.jsx(r.Xn,{})}):null,m.jsx(r.IconButton,{size:"small",className:re.expand,style:{color:d.palette.action.active},onClick:v,children:m.jsx(r.vo,{fontSize:"small"})})]})]}),a?m.jsx(Fe,{in:p,timeout:"auto",unmountOnExit:!0,children:m.jsx("div",{className:re.stackTraceContainer,style:{backgroundColor:d.palette.error.light,borderTop:`1px solid ${d.palette.error.main}`},children:m.jsx(r.nk,{error:a,hideLineNumbers:!0})})}):null]})})});Lt.displayName="ToastError";const Mt=l.memo(l.forwardRef((e,o)=>{const{commands:i,commandHook:t,scope:n="workbook",disabled:a=!1,...s}=e,u=r.Te(d=>{const p={variant:r.pn.Menuitem,parentFloat:d.floatReference,commandHook:t,scope:n,disabled:a},f=m.jsxs(m.Fragment,{children:[m.jsx(r.qe,{...p,command:i.getCommand("newWorkbook"),icon:r.Le(m.jsx(r.qK,{}))}),m.jsx(r.Qt,{orientation:"horizontal"}),m.jsx(r.qe,{...p,command:i.getCommand("openWorkbook"),icon:r.Le(m.jsx(r.KK,{}))}),m.jsx(r.uo,{...p,commands:i,quickCommand:"saveWorkbook",icon:r.Le(m.jsx(r.XK,{})),createPopupPanel:x=>{const v={...p,parentFloat:x.floatReference,scope:"saveWorkbook"},y=[];return r.xX.getWriteFormats().forEach(k=>{if(k.isDefault)return;let w=null;k.key==="CSV"?w=r.Le(m.jsx(r.YK,{})):k.key==="Excel"&&(w=r.Le(m.jsx(r.ZK,{})));const b=i.getCommand(`saveWorkbookAs${k.key}`);b?y.push(l.createElement(r.qe,{...v,key:k.key,command:b,icon:w})):console.warn(`Unable to resolve command: 'saveWorkbookAs${k.key}'`)}),r.Zn({...x,children:y,onClick:()=>{x.closeFloatAll()}})}})]});return r.Zn({...d,children:f,onClick:x=>{x.isDefaultPrevented||d.closeFloatAll()}})},[a,i,t,n]),c="File";return m.jsx(r.uo,{commands:i,disabled:a,commandHook:t,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:d=>`calc(1.25rem + ${d.spacing(2)}px)`}},...s,createPopupPanel:u,icon:m.jsx(r.iu,{className:"label",icon:null,label:c})})}));Mt.displayName="StandaloneFileCommandButton";const pn=m.jsx(r.ni,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:m.jsx(r.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:m.jsx(r.gX,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Tt=l.memo(l.forwardRef((e,o)=>{const{commands:i,workbook:t,logo:n=pn,mainElement:a,showFileMenu:s=!0,showAppearanceMenu:u=!0,...c}=e,{reference:d}=r.El(),[p,{width:f}]=r.eg(),x=f<530,v=s?m.jsx(Mt,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(b,h,M){}}}):null,y=u?m.jsx(r.yX,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(b,h,M){}}}):null,k=l.useMemo(()=>({paddingLeft:b=>b.spacing(1),paddingRight:b=>b.spacing(1)}),[]),w=l.useRef(null);return m.jsx(r.Box,{ref:r.F6([w,p,o]),...c,children:r.iK({commands:i,renderCompact:x,workbook:t,selectWrapper:b=>m.jsxs(r.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:h=>h.spacing(1),paddingLeft:h=>h.spacing(1),paddingRight:h=>h.spacing(1)},children:[m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:h=>h.spacing(.5)},children:[n,m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:h=>h.spacing(.25)},children:[v,b]})]}),m.jsx(r.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:a}),m.jsx(r.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:x&&!y?"0 0 auto":"1 1 100%"},children:y})]}),selectProps:k,toolbarsProps:{Home:{sx:{}}}})})}));Tt.displayName="StandaloneWorkbookToolbar";const Dt=l.memo(l.forwardRef((e,o)=>{const{workbook:i,setWorkbook:t,refWorkbookTitle:n,titleWorkbook:a,setWorkbookTitle:s,titlePlaceHolder:u,children:c,undoManager:d,commands:p,importExportDisabled:f,themeModeOptions:x}=e,v=jt(),y=v?v.enqueueSnackbar:()=>{},k=v?v.closeSnackbar:()=>{},[w,b]=l.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),h=l.useCallback(()=>{b(F=>({...F,isMounted:!0}))},[]),M=l.useCallback(()=>{b(F=>({...F,isMounted:!1}))},[]),E=r.aX(),N=r.cX(),T=r.dX(),H=l.useRef(new Set),_=l.useMemo(()=>{const F=(S,L)=>{if(L?.onceKey){if(H.current.has(L.onceKey))return;const D=new Set(H.current);D.add(L.onceKey),H.current=D}const A={variant:L?.type??r._l.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:L?.preventDuplicate,persist:L?.persist??L?.type===r._l.Error,action:D=>m.jsx(r.IconButton,{onClick:()=>k(D),children:m.jsx($t,{})})};L?.enqueueProps&&Object.assign(A,L.enqueueProps),S||console.log("message is 'null'",L),y(S??"Alert",A)};return{showMessage:F,showBusy:(S,L)=>{let A=null;const D=new Promise(X=>{A=X});return b(X=>{const B=new Map(X.starting);return B.set(D,A),{...X,label:S,starting:B}}),D},showWindow:(S,L,A)=>{const D={...L,onKeyDown:X=>{p?.dispatchToFocusedCommand(X),X.isDefaultPrevented()||X.isPropagationStopped()||L?.onKeyDown?.(X)}};return E(S,{sort:()=>Promise.resolve().then(()=>require("./CuhJX_xGez7yc6zi.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./CvhmZqLTDmkFauCs.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./km4BoFU87-pNNG5J.cjs")),comments:()=>Promise.resolve().then(()=>require("./20oq16RduoK6IuCZ.cjs")),find:()=>Promise.resolve().then(()=>require("./aWHOn3DaVbuU-ftK.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./HL5BOFnf4XtzdqsS.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./C0KkDFATEXukfl0j.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./B5cV1UMP1UkKFRbL.cjs"))}[S],D,A)},showOptions:N,showInputOptions:T,showError:S=>{let L,A=r._l.Error,D="Unknown Error";typeof S=="string"?D=S:S instanceof Error&&(L=S,S.message&&(D=S.message)),S instanceof r.CA&&(A=r._l.Info),F(D,{type:A,enqueueProps:{error:L}})}}},[]),P=l.useCallback(()=>{},[]),z=(F=>{const{workbook:S,setWorkbook:L,importExportDisabled:A,workbookTitle:D="export",setWorkbookTitle:X,notifier:B,requestWorkbookTitle:Q,themeModeOptions:q,undoManager:j,commands:W,onExecute:V}=F,J=r.Te(q?.onForceModeChange,[q?.onForceModeChange]),ae=r.Te(q?.onForceLightGridChange,[q?.onForceLightGridChange]),ne=r.Te(q?.onForceLightImagesChange,[q?.onForceLightImagesChange]),Ie=r.Te(async(R=null,Z=null)=>{const g=[];let C,K=null,ee=null;if(typeof R=="string"?ee=R:K=R,C=K?R:await r.dn.openFileDialog(ee??r.xX.getAllReadFormatTypeAsString().join(",")),!C)return null;const se={source:C,constructorOptions:Z,onWarning:He=>{g.push(He)}},ke=await r.xX.read(se,B);return g.length>0&&(B?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
14
+ 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},null),info:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
15
+ 0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:wt,transitionDuration:{enter:225,exit:195}};function Se(e){return Object.entries(e).reduce(function(o,i){var t,n=i[0],a=i[1];return O({},o,((t={})[n]=$e(a),t))},{})}var vt="notistack-CollapseWrapper",en=function(e){return"notistack-MuiContent-"+e},lt=Se({root:{height:0},entered:{height:"auto"}}),Be="0px",Et=l.forwardRef(function(e,o){var i=e.children,t=e.in,n=e.onExited,a=l.useRef(null),s=l.useRef(null),u=Ge(o,s),c=function(){return a.current?a.current.clientHeight:0};return l.createElement(Qe,{in:t,unmountOnExit:!0,onEnter:function(d){d.style.height=Be},onEntered:function(d){d.style.height="auto"},onEntering:function(d){var p=c(),f=Ne({timeout:175,mode:"enter"}),x=f.duration,v=f.easing;d.style.transitionDuration=typeof x=="string"?x:x+"ms",d.style.height=p+"px",d.style.transitionTimingFunction=v||""},onExit:function(d){d.style.height=c()+"px"},onExited:n,onExiting:function(d){xt(d);var p=Ne({timeout:175,mode:"exit"}),f=p.duration,x=p.easing;d.style.transitionDuration=typeof f=="string"?f:f+"ms",d.style.height=Be,d.style.transitionTimingFunction=x||""},nodeRef:s,timeout:175},function(d,p){return l.createElement("div",Object.assign({ref:u,className:ie(lt.root,d==="entered"&&lt.entered),style:O({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:he("height")},d==="entered"&&{overflow:"visible"},{},d==="exited"&&!t&&{visibility:"hidden"})},p),l.createElement("div",{ref:a,className:vt,style:{display:"flex",width:"100%"}},i))})});Et.displayName="Collapse";var ct={right:"left",left:"right",bottom:"up",top:"down"},tn=function(e){return"anchorOrigin"+Ze(e)},nn=function(){};function Ee(e,o){return e.reduce(function(i,t){return t==null?i:function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var u=[].concat(a);o&&u.indexOf(o)===-1&&u.push(o),i.apply(this,u),t.apply(this,u)}},nn)}var on=typeof window<"u"?l.useLayoutEffect:l.useEffect;function ut(e){var o=l.useRef(e);return on(function(){o.current=e}),l.useCallback(function(){return o.current.apply(void 0,arguments)},[])}var _e,Ct=l.forwardRef(function(e,o){var i=e.children,t=e.className,n=e.autoHideDuration,a=e.disableWindowBlurListener,s=a!==void 0&&a,u=e.onClose,c=e.id,d=e.open,p=e.SnackbarProps,f=p===void 0?{}:p,x=l.useRef(),v=ut(function(){u&&u.apply(void 0,arguments)}),y=ut(function(k){u&&k!=null&&(x.current&&clearTimeout(x.current),x.current=setTimeout(function(){v(null,"timeout",c)},k))});l.useEffect(function(){return d&&y(n),function(){x.current&&clearTimeout(x.current)}},[d,n,y]);var b=function(){x.current&&clearTimeout(x.current)},w=l.useCallback(function(){n!=null&&y(.5*n)},[n,y]);return l.useEffect(function(){if(!s&&d)return window.addEventListener("focus",w),window.addEventListener("blur",b),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",b)}},[s,w,d]),l.createElement("div",Object.assign({ref:o},f,{className:ie("notistack-Snackbar",t),onMouseEnter:function(k){f.onMouseEnter&&f.onMouseEnter(k),b()},onMouseLeave:function(k){f.onMouseLeave&&f.onMouseLeave(k),w()}}),i)});Ct.displayName="Snackbar";var rn=Se({root:(_e={display:"flex",flexWrap:"wrap",flexGrow:1},_e[Pe]={flexGrow:"initial",minWidth:"288px"},_e)}),Ye=l.forwardRef(function(e,o){var i=e.className,t=Ce(e,["className"]);return l.createElement("div",Object.assign({ref:o,className:ie(rn.root,i)},t))});Ye.displayName="SnackbarContent";var ye=Se({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),dt="notistack-snackbar",St=l.forwardRef(function(e,o){var i=e.id,t=e.message,n=e.action,a=e.iconVariant,s=e.variant,u=e.hideIconVariant,c=e.style,d=e.className,p=a[s],f=n;return typeof f=="function"&&(f=f(i)),l.createElement(Ye,{ref:o,role:"alert","aria-describedby":dt,style:c,className:ie("notistack-MuiContent",en(s),ye.root,ye[s],d,!u&&p&&ye.lessPadding)},l.createElement("div",{id:dt,className:ye.message},u?null:p,t),f&&l.createElement("div",{className:ye.action},f))});St.displayName="MaterialDesignContent";var we,Xe,De,Oe,Ke,an=l.memo(St),sn=Se({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),ln=function(e){var o=l.useRef(),i=l.useState(!0),t=i[0],n=i[1],a=Ee([e.snack.onClose,e.onClose]),s=l.useCallback(function(){o.current=setTimeout(function(){n(function(_){return!_})},125)},[]);l.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var u,c=e.snack,d=e.classes,p=e.Component,f=p===void 0?an:p,x=l.useMemo(function(){return function(_){_===void 0&&(_={});var P={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(_).filter(function(z){return!P[z]}).reduce(function(z,$){var Q;return O({},z,((Q={})[$]=_[$],Q))},{})}(d)},[d]),v=c.open,y=c.SnackbarProps,b=c.TransitionComponent,w=c.TransitionProps,k=c.transitionDuration,h=c.disableWindowBlurListener,T=c.content,E=Ce(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),N=O({direction:(u=E.anchorOrigin,u.horizontal!=="center"?ct[u.horizontal]:ct[u.vertical]),timeout:k},w),L=T;typeof L=="function"&&(L=L(E.id,E.message));var H=["onEnter","onEntered","onExit","onExited"].reduce(function(_,P){var z;return O({},_,((z={})[P]=Ee([e.snack[P],e[P]],E.id),z))},{});return l.createElement(Et,{in:t,onExited:H.onExited},l.createElement(Ct,{open:v,id:E.id,disableWindowBlurListener:h,autoHideDuration:E.autoHideDuration,className:ie(sn.wrappedRoot,x.root,x[tn(E.anchorOrigin)]),SnackbarProps:y,onClose:a},l.createElement(b,Object.assign({},N,{appear:!0,in:v,onExit:H.onExit,onExited:s,onEnter:H.onEnter,onEntered:Ee([H.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],E.id)}),L||l.createElement(f,Object.assign({},E)))))},ve=20,Ve=6,cn=2,pt="."+vt,We=Se({root:(we={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:he(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},we[pt]={padding:Ve+"px 0px",transition:"padding 300ms ease 0ms"},we.maxWidth="calc(100% - "+2*ve+"px)",we[ze]={width:"100%",maxWidth:"calc(100% - 32px)"},we),rootDense:(Xe={},Xe[pt]={padding:cn+"px 0px"},Xe),top:{top:ve-Ve+"px",flexDirection:"column"},bottom:{bottom:ve-Ve+"px",flexDirection:"column-reverse"},left:(De={left:ve+"px"},De[Pe]={alignItems:"flex-start"},De[ze]={left:"16px"},De),right:(Oe={right:ve+"px"},Oe[Pe]={alignItems:"flex-end"},Oe[ze]={right:"16px"},Oe),center:(Ke={left:"50%",transform:"translateX(-50%)"},Ke[Pe]={alignItems:"center"},Ke)}),un=l.memo(function(e){var o=e.classes,i=o===void 0?{}:o,t=e.anchorOrigin,n=e.dense,a=e.children,s=ie("notistack-SnackbarContainer",We[t.vertical],We[t.horizontal],We.root,i.containerRoot,i["containerAnchorOrigin"+Ze(t)],n&&We.rootDense);return l.createElement("div",{className:s},a)}),mt=function(e){return!(typeof e=="string"||l.isValidElement(e))},dn=function(e){function o(i){var t;return(t=e.call(this,i)||this).enqueueSnackbar=function(n,a){if(a===void 0&&(a={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=mt(n)?n:a,u=mt(n)?n.message:n,c=s.key,d=s.preventDuplicate,p=Ce(s,["key","preventDuplicate"]),f=je(c),x=f?c:new Date().getTime()+Math.random(),v=function(b,w){return function(k,h){return h===void 0&&(h=!1),h?O({},ce[k],{},w[k],{},b[k]):k==="autoHideDuration"?(L=b.autoHideDuration,H=w.autoHideDuration,(_=function(P){return typeof P=="number"||P===null})(L)?L:_(H)?H:ce.autoHideDuration):k==="transitionDuration"?(T=b.transitionDuration,E=w.transitionDuration,(N=function(P,z){return z.some(function($){return typeof P===$})})(T,["string","number"])?T:N(T,["object"])?O({},ce.transitionDuration,{},N(E,["object"])&&E,{},T):N(E,["string","number"])?E:N(E,["object"])?O({},ce.transitionDuration,{},E):ce.transitionDuration):b[k]||w[k]||ce[k];var T,E,N,L,H,_}}(p,t.props),y=O({id:x},p,{message:u,open:!0,entered:!1,requestClose:!1,persist:v("persist"),action:v("action"),content:v("content"),variant:v("variant"),anchorOrigin:v("anchorOrigin"),disableWindowBlurListener:v("disableWindowBlurListener"),autoHideDuration:v("autoHideDuration"),hideIconVariant:v("hideIconVariant"),TransitionComponent:v("TransitionComponent"),transitionDuration:v("transitionDuration"),TransitionProps:v("TransitionProps",!0),iconVariant:v("iconVariant",!0),style:v("style",!0),SnackbarProps:v("SnackbarProps",!0),className:ie(t.props.className,p.className)});return y.persist&&(y.autoHideDuration=void 0),t.setState(function(b){if(d===void 0&&t.props.preventDuplicate||d){var w=function(T){return f?T.id===x:T.message===u},k=b.queue.findIndex(w)>-1,h=b.snacks.findIndex(w)>-1;if(k||h)return b}return t.handleDisplaySnack(O({},b,{queue:[].concat(b.queue,[y])}))}),x},t.handleDisplaySnack=function(n){return n.snacks.length>=t.maxSnack?t.handleDismissOldest(n):t.processQueue(n)},t.processQueue=function(n){var a=n.queue,s=n.snacks;return a.length>0?O({},n,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):n},t.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var a=!1,s=!1;n.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0)===t.maxSnack&&(s=!0);var u=n.snacks.map(function(c){return a||c.persist&&!s?O({},c):(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),t.props.onClose&&t.props.onClose(null,"maxsnack",c.id),O({},c,{open:!1})):O({},c,{requestClose:!0}))});return O({},n,{snacks:u})},t.handleEnteredSnack=function(n,a,s){if(!je(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(u){return{snacks:u.snacks.map(function(c){return c.id===s?O({},c,{entered:!0}):O({},c)})}})},t.handleCloseSnack=function(n,a,s){t.props.onClose&&t.props.onClose(n,a,s);var u=s===void 0;t.setState(function(c){var d=c.snacks,p=c.queue;return{snacks:d.map(function(f){return u||f.id===s?f.entered?O({},f,{open:!1}):O({},f,{requestClose:!0}):O({},f)}),queue:p.filter(function(f){return f.id!==s})}})},t.closeSnackbar=function(n){var a=t.state.snacks.find(function(s){return s.id===n});je(n)&&a&&a.onClose&&a.onClose(null,"instructed",n),t.handleCloseSnack(null,"instructed",n)},t.handleExitedSnack=function(n,a){if(!je(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(s){var u=t.processQueue(O({},s,{snacks:s.snacks.filter(function(c){return c.id!==a})}));return u.queue.length===0?u:t.handleDismissOldest(u)})},t.enqueueSnackbar,t.closeSnackbar,t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar.bind(nt(t)),closeSnackbar:t.closeSnackbar.bind(nt(t))}},t}return kt(o,e),o.prototype.render=function(){var i=this,t=this.state.contextValue,n=this.props,a=n.domRoot,s=n.children,u=n.dense,c=u!==void 0&&u,d=n.Components,p=d===void 0?{}:d,f=n.classes,x=this.state.snacks.reduce(function(y,b){var w,k=Ze(b.anchorOrigin),h=y[k]||[];return O({},y,((w={})[k]=[].concat(h,[b]),w))},{}),v=Object.keys(x).map(function(y){var b=x[y],w=b[0];return l.createElement(un,{key:y,dense:c,anchorOrigin:w.anchorOrigin,classes:f},b.map(function(k){return l.createElement(ln,{key:k.id,snack:k,classes:f,Component:p[k.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:Ee([i.handleExitedSnack,i.props.onExited],k.id),onEntered:Ee([i.handleEnteredSnack,i.props.onEntered],k.id)})}))});return l.createElement(bt.Provider,{value:t},s,a?Wt.createPortal(v,a):v)},gt(o,[{key:"maxSnack",get:function(){return this.props.maxSnack||ce.maxSnack}}]),o}(l.Component),jt=function(){return l.useContext(bt)};const re={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},Mt=l.forwardRef((e,o)=>{const{id:i,message:t,iconVariant:n,error:a,hideIconVariant:s,...u}=e,{closeSnackbar:c}=jt(),d=r.Js(),[p,f]=l.useState(!1),x=l.useCallback(()=>{f(b=>!b)},[]),v=l.useCallback(()=>{c(i)},[i,c]),y=a?.message||String(t);return m.jsx(Ye,{ref:o,className:r.jo(re.root,"error-snackbar"),children:m.jsxs(qt,{className:re.card,style:{backgroundColor:d.palette.error.dark,border:`1px solid ${d.palette.error.dark}`},children:[m.jsxs(_t,{className:re.actionRoot,children:[s?null:n?.error,m.jsx(r.Typography,{variant:"body2",component:"div",className:re.typography,style:{color:d.palette.text.primary},children:y}),m.jsx("div",{style:{flex:"1 1 auto"}}),m.jsxs("div",{className:re.icons,children:[a?m.jsx(r.IconButton,{"aria-label":"Show more",size:"small",className:r.jo(re.expand,{[re.expandOpen]:p}),style:{color:d.palette.action.active},onClick:x,children:m.jsx(r.Xn,{})}):null,m.jsx(r.IconButton,{size:"small",className:re.expand,style:{color:d.palette.action.active},onClick:v,children:m.jsx(r.vo,{fontSize:"small"})})]})]}),a?m.jsx(Fe,{in:p,timeout:"auto",unmountOnExit:!0,children:m.jsx("div",{className:re.stackTraceContainer,style:{backgroundColor:d.palette.error.light,borderTop:`1px solid ${d.palette.error.main}`},children:m.jsx(r.nk,{error:a,hideLineNumbers:!0})})}):null]})})});Mt.displayName="ToastError";const Tt=l.memo(l.forwardRef((e,o)=>{const{commands:i,commandHook:t,scope:n="workbook",disabled:a=!1,...s}=e,u=r.Te(d=>{const p={variant:r.pn.Menuitem,parentFloat:d.floatReference,commandHook:t,scope:n,disabled:a},f=m.jsxs(m.Fragment,{children:[m.jsx(r.qe,{...p,command:i.getCommand("newWorkbook"),icon:r.Le(m.jsx(r.qK,{}))}),m.jsx(r.Qt,{orientation:"horizontal"}),m.jsx(r.qe,{...p,command:i.getCommand("openWorkbook"),icon:r.Le(m.jsx(r.KK,{}))}),m.jsx(r.uo,{...p,commands:i,quickCommand:"saveWorkbook",icon:r.Le(m.jsx(r.XK,{})),createPopupPanel:x=>{const v={...p,parentFloat:x.floatReference,scope:"saveWorkbook"},y=[];return r.xX.getWriteFormats().forEach(b=>{if(b.isDefault)return;let w=null;b.key==="CSV"?w=r.Le(m.jsx(r.YK,{})):b.key==="Excel"&&(w=r.Le(m.jsx(r.ZK,{})));const k=i.getCommand(`saveWorkbookAs${b.key}`);k?y.push(l.createElement(r.qe,{...v,key:b.key,command:k,icon:w})):console.warn(`Unable to resolve command: 'saveWorkbookAs${b.key}'`)}),r.Zn({...x,children:y,onClick:()=>{x.closeFloatAll()}})}})]});return r.Zn({...d,children:f,onClick:x=>{x.isDefaultPrevented||d.closeFloatAll()}})},[a,i,t,n]),c="File";return m.jsx(r.uo,{commands:i,disabled:a,commandHook:t,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:d=>`calc(1.25rem + ${d.spacing(2)}px)`}},...s,createPopupPanel:u,icon:m.jsx(r.iu,{className:"label",icon:null,label:c})})}));Tt.displayName="StandaloneFileCommandButton";const pn=m.jsx(r.ni,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:m.jsx(r.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:m.jsx(r.gX,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Lt=l.memo(l.forwardRef((e,o)=>{const{commands:i,workbook:t,logo:n=pn,mainElement:a,showFileMenu:s=!0,showAppearanceMenu:u=!0,...c}=e,{reference:d}=r.El(),[p,{width:f}]=r.eg(),x=f<530,v=s?m.jsx(Tt,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,T){}}}):null,y=u?m.jsx(r.yX,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,T){}}}):null,b=l.useMemo(()=>({paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)}),[]),w=l.useRef(null);return m.jsx(r.Box,{ref:r.F6([w,p,o]),...c,children:r.iK({commands:i,renderCompact:x,workbook:t,selectWrapper:k=>m.jsxs(r.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:h=>h.spacing(1),paddingLeft:h=>h.spacing(1),paddingRight:h=>h.spacing(1)},children:[m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:h=>h.spacing(.5)},children:[n,m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:h=>h.spacing(.25)},children:[v,k]})]}),m.jsx(r.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:a}),m.jsx(r.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:x&&!y?"0 0 auto":"1 1 100%"},children:y})]}),selectProps:b,toolbarsProps:{Home:{sx:{}}}})})}));Lt.displayName="StandaloneWorkbookToolbar";const Dt=l.memo(l.forwardRef((e,o)=>{const{workbook:i,setWorkbook:t,refWorkbookTitle:n,titleWorkbook:a,setWorkbookTitle:s,titlePlaceHolder:u,children:c,undoManager:d,commands:p,importExportDisabled:f,themeModeOptions:x}=e,v=jt(),y=v?v.enqueueSnackbar:()=>{},b=v?v.closeSnackbar:()=>{},[w,k]=l.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),h=l.useCallback(()=>{k(F=>({...F,isMounted:!0}))},[]),T=l.useCallback(()=>{k(F=>({...F,isMounted:!1}))},[]),E=r.aX(),N=r.cX(),L=r.dX(),H=l.useRef(new Set),_=l.useMemo(()=>{const F=(S,M)=>{if(M?.onceKey){if(H.current.has(M.onceKey))return;const D=new Set(H.current);D.add(M.onceKey),H.current=D}const A={variant:M?.type??r._l.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:M?.preventDuplicate,persist:M?.persist??M?.type===r._l.Error,action:D=>m.jsx(r.IconButton,{onClick:()=>b(D),children:m.jsx($t,{})})};M?.enqueueProps&&Object.assign(A,M.enqueueProps),S||console.log("message is 'null'",M),y(S??"Alert",A)};return{showMessage:F,showBusy:(S,M)=>{let A=null;const D=new Promise(X=>{A=X});return k(X=>{const B=new Map(X.starting);return B.set(D,A),{...X,label:S,starting:B}}),D},showWindow:(S,M,A)=>{const D={...M,onKeyDown:X=>{p?.dispatchToFocusedCommand(X),X.isDefaultPrevented()||X.isPropagationStopped()||M?.onKeyDown?.(X)}};return E(S,{sort:()=>Promise.resolve().then(()=>require("./D1F49z1BTQNLc001.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./CU_BzP7b4cIkOp0W.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./D6JdKwLNWc3ioSMm.cjs")),comments:()=>Promise.resolve().then(()=>require("./Dqytj5avvhy0OfcQ.cjs")),find:()=>Promise.resolve().then(()=>require("./B5_w23_mUAW0fmJf.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./VjVwC7Tg9iSVxZ_e.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./heo8nWRKxUNJeEc8.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./jspcRaFi7FlNoOCi.cjs"))}[S],D,A)},showOptions:N,showInputOptions:L,showError:S=>{let M,A=r._l.Error,D="Unknown Error";typeof S=="string"?D=S:S instanceof Error&&(M=S,S.message&&(D=S.message)),S instanceof r.CA&&(A=r._l.Info),F(D,{type:A,enqueueProps:{error:M}})}}},[]),P=l.useCallback(()=>{},[]),z=(F=>{const{workbook:S,setWorkbook:M,importExportDisabled:A,workbookTitle:D="export",setWorkbookTitle:X,notifier:B,requestWorkbookTitle:Y,themeModeOptions:q,undoManager:j,commands:W,onExecute:K}=F,J=r.Te(q?.onForceModeChange,[q?.onForceModeChange]),ae=r.Te(q?.onForceLightGridChange,[q?.onForceLightGridChange]),ne=r.Te(q?.onForceLightImagesChange,[q?.onForceLightImagesChange]),Ie=r.Te(async(R=null,Z=null)=>{const g=[];let C,V=null,ee=null;if(typeof R=="string"?ee=R:V=R,C=V?R:await r.dn.openFileDialog(ee??r.xX.getAllReadFormatTypeAsString().join(",")),!C)return null;const se={source:C,constructorOptions:Z,onWarning:He=>{g.push(He)}},be=await r.xX.read(se,B);return g.length>0&&(B?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
16
16
  `+g.join(`
17
- `))),ke},[V,B,S]),ge=r.Te(async(R,Z,g)=>{if(!Z&&Q){const C=await Q("Enter Workbook name to "+(g.isDefault?"Save.":`Export as ${g.description}.`));return C!==null&&r.xX.writeFile(C,R,{formatType:g.key})}return r.xX.writeFile(Z,R,{formatType:g.key})},[B,S,Q]),U=l.useCallback(()=>({contains:R=>!0,focus(){}}),[]),le=l.useMemo(()=>{const R=[];A||(r.xX.getWriteFormats().forEach(g=>{const C=g.isDefault,K={label:C?"Save Workbook":`Save Workbook as ${g.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${g.description}`},tags:g.tags,description:`Save the workbook to the desktop${C?"":` as ${g.description}`}.`};C&&(K.shortcut={key:"S",modifiers:[r.He.Ctrl]},R.push(new r.We("saveWorkbookAs",U,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[r.He.Shift,r.He.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{ge(S,null,g).catch(se=>{B?.showError?.(se)})})));const ee=C?"saveWorkbook":`saveWorkbookAs${g.key}`;R.push(new r.We(ee,U,K,se=>{ge(S,se??D,g).catch(ke=>{B?.showError?.(ke)})}))}),R.push(new r.We("openWorkbook",U,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[r.He.Ctrl]}},async(g=null)=>{const C={date1904:S.isDate1904(),...S.options};try{const K=await Ie(g,C);if(!K)return;const ee=K.title,se=K.workbook,ke=se.getSelectedSheet();if(K.formatType.mimeType==="text/csv"){const He=S.findValidSheetName(ee);await S.doBatch(async()=>{const Je=ke.getUsedRange();Je?await S.getSheets().add({name:He,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Je):B?.showMessage("The file appears to be blank.")},`Import CSV '${ee}'`)}else S?.close(),X?.(ee),L(se)}catch(K){B?.showError?.(K)}})),R.push(new r.We("openWorkbookFromUrl",U,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(g){if(!g){const C=await B?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(C.option!=="Open")return;g=C.input}g&&console.log("openWorkbookFromUrl",g)})));let Z=[];return q&&(Z=[new r.We("themeMode",U,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new r.We("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 r.We("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 r.We("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."})]),[...R,...Z,new r.Bt("help",U,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new r.Bt("showKeyboardShortcuts",U,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[r.He.Ctrl]}},()=>{}),new r.We("gotoUrlGithub",U,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new r.We("gotoUrlDiscord",U,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new r.We("gotoUrlDocumentation",U,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new r.We("gotoUrlIssue",U,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[S,D,B,A,q,W,j]),G=l.useMemo(()=>{let R=null;return R=W?W.createChildGroup(U,"standaloneWorkbook",!1):new r.Ru(U,"standaloneWorkbook"),R.addCommands(le,!0),R},[W,le]);r.GK({manager:j,commands:G,notifier:B});const{themeMode:be}=r.vX();l.useEffect(()=>{if(!q||!G)return;const R=q.forceMode==="dark"||!q.forceMode&&be==="dark";G.getCommand("themeMode").update({state:q.forceMode??null,label:R?"Dark Mode":"Light Mode",scopedLabels:{appearance:R?"Dark Mode":"Light Mode"}}).updateCallback(()=>{J(R?r.bX.Light:r.bX.Dark)}),G.getCommand("defaultThemeMode").update({state:!q.forceMode}).updateCallback(()=>{J(null)}),G.getCommand("forceLightGrid").update({state:q.forceLightGrid}).updateCallback(()=>{ae(!q.forceLightGrid)}),G.getCommand("forceLightImages").update({state:q.forceLightImages}).updateCallback(()=>{ne(!q.forceLightImages)})},[be,q,le]);const{showModal:Ae}=r.c6();return l.useEffect(()=>{const R=()=>new Promise((Z,g)=>{const C=l.lazy(()=>Promise.resolve().then(()=>require("./DtcLPs_dQHEN3bGR.cjs"))),K=Ae(C,{title:"Shortcut Keys Reference",commands:G,onDone:()=>{K.hide()},TransitionProps:{onExited:()=>{Z(!0)}}})});G.getCommand("showKeyboardShortcuts").updateCallback(()=>R()),G.getCommand("help").updateCallback(()=>R())},[le,G]),G})({workbook:i,setWorkbook:t,importExportDisabled:f,workbookTitle:a,setWorkbookTitle:s,commands:p,requestWorkbookTitle:F=>new Promise(S=>{n.current?n.current.requestWorkbookTitle((L,A)=>{S(L)},{selectAll:!0,requestReason:F}):S(u)}),themeModeOptions:x,undoManager:d,notifier:_,onExecute:P});l.useEffect(()=>{w.starting.size<=0||!w.isMounted||b(F=>{const S=new Map(F.running);return F.starting.forEach((L,A)=>{const D=()=>{b(X=>{const B=new Map(X.running);return B.delete(A),{...X,running:B}})};S.set(A,D),L(D)}),{...F,starting:new Map,running:S}})},[w]);const[$,Y]=l.useState(null);l.useEffect(()=>{w.starting.size!==0||w.running.size!==0?Y(m.jsx(r.Nu,{icon:m.jsx(r.iX,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:w.label,onMount:h,onUnmount:M,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):Y(null)},[w.starting,w.running]);const I=l.useMemo(()=>m.jsx(r.wX,{commands:z,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[z]),te={notifier:_,commands:z};return i&&(te.statusBarProps={childrenEnd:I}),m.jsxs(m.Fragment,{children:[$,c?l.cloneElement(c,te):null]})}));Dt.displayName="SnackbarAndCommandsWrapper";const Ot=l.memo(l.forwardRef((e,o)=>{const{className:i,sx:t,style:n,onElementLoad:a,onError:s,undoManager:u,errorPanel:c=r.YV,onKeyDown:d,workbook:p,createWorkbookOptions:f,onWorkbookChange:x,logo:v,importExportDisabled:y=!1,themeModeOptions:k,autoFocus:w=!1,commands:b,title:h,onTitleChange:M,titleProps:E,...N}=e,T=l.useRef(null),H=r.Te(x,[x]),_=r.Te(M??E?.onTitleChange,[M??E?.onTitleChange]),P=E?.placeHolder??"Untitled",z=k?.forceMode,{themeMode:$,source:Y}=r.vX({mode:z}),I=l.useMemo(()=>({...k,light:r.sX(!1,r.re.deepMerge(k?.theme??{},k?.light??{})),dark:r.sX(!0,r.re.deepMerge(k?.theme??{},k?.dark??{}))}),[k]),te=$===r.bX.Dark,[F,S]=l.useState(null);l.useEffect(()=>{S(u??new r.WK)},[u]);const[L,A]=l.useState(null),[D,X]=l.useState(null),B=r.SR();l.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!r.re.isPromiseLike(p)){const g={theme:B.getDefaultTheme(),...f};X(new r.bL(g))}else X(p)},[p]),l.useLayoutEffect(()=>{if(D){if(D instanceof r.bL)return A({workbook:D}),void(p!==D&&H?.(D));(async()=>{try{let g,C=await Promise.resolve(D);C&&C.source&&(C=await r.xX.read(C)),C.workbook?(V(C.title),g=C.workbook):g=C,H?.(g),A({workbook:g})}catch(g){H?.(null),A({error:g})}})()}},[D]);const[Q,q]=l.useState(null);l.useEffect(()=>{if(!F||!L)return;F.clear();const g=L?.workbook?.getTransactions();return g?g.addListener({onCommitEnd:C=>{C.getDescription()?F.addUndoOperation({description:C.getDescription(),undo:()=>(g.revert(C.getId()),Q.source?.focus(),()=>{g.restore(C.getId()),Q.source?.focus()})}):console.warn("commit has no description",C)}}):void 0},[F,L,Q]);const j=r.Te(g=>{g?F.setRepeatableOperation({description:g.label(),repeat:async()=>g.execute()}):F.setRepeatableOperation(null)},[F]),[W,V]=l.useState(h??E?.title??"");l.useEffect(()=>{V(h??E?.title??"")},[h??E?.title]),l.useEffect(()=>{_?.(W)},[W]);const[J,ae]=l.useState(null),ne=l.useMemo(()=>{const g=()=>({contains:C=>!0,focus(){}});return b?b.createChildGroup(g,"application",!1):new r.Ru(g,"application")},[b]),Ie=r.Te(g=>{ae(g.source.getViewportElement()),q(g),ne.activate("sheet"),a?.(g)},[ne]);l.useEffect(()=>{Q&&w&&Q.source?.focus(typeof w=="object"?w:void 0)},[Q]);const ge=l.useRef(null),U=l.useCallback(g=>{let C=null;return E?.hidden||(C=m.jsx(r.RK,{...E,style:{maxWidth:"100%",...E?.style},workbook:T.current,ref:ge,title:W,placeHolder:P,onTitleChange:K=>{V(K)}})),m.jsx(Tt,{...g,logo:v,mainElement:C,showFileMenu:!y,showAppearanceMenu:!!(I?.onForceLightGridChange||I?.onForceLightImagesChange||I?.onForceModeChange)})},[v,W,E,I,y,ne]);l.useEffect(()=>{const g=C=>C.preventDefault();return T.current?.addEventListener("wheel",g,{passive:!1}),()=>{T.current?.removeEventListener("wheel",g)}},[]);const le=l.useMemo(()=>m.jsx(r.Nu,{transparentBackground:!0,sx:t,style:n}),[t,n]),G=l.useCallback(({error:g})=>(s?.(g),m.jsx(c,{sx:t,style:n,error:g??"Unable to display empty workbook."})),[t,n,s]),be=l.useMemo(()=>({...t,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:g=>g.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[t]),Ae=r.F6([T,o]),R=l.useMemo(()=>{if(!L)return le;if(L.error||!L.workbook)return G({error:L.error});let g=null,C=null,K=!1;return I&&(g=te?I.dark:I.light,C=te&&!I.forceLightGrid?I.dark:I.light,K=I.forceLightImages),m.jsx(r.kK,{sx:be,style:n,tabIndex:0,autoFocus:!0,workbook:L.workbook,ref:Ae,renderToolbar:U,onElementLoad:Ie,onRepeatCommandChange:j,onKeyDown:ee=>{d?.(ee)},gridTheme:C,headersTheme:g,forceLightImages:K,className:r.jo(i,"sheetxl-workbook"),onContextMenu:ee=>ee.preventDefault(),...N},"WorkbookElement")},[L,W,F,le,I,N,U,be]);let Z=m.jsx(Zt,{fallbackRender:G,children:m.jsx(dn,{maxSnack:3,domRoot:J,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(g,C,K)=>{T.current?.focus()},Components:{error:Lt},iconVariant:{success:m.jsx(r.SvgIcon,{style:{marginRight:"8px"},children:m.jsx("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:m.jsx(r.rX,{style:{marginRight:"8px"}})},children:m.jsx(r.lX,{children:m.jsx(Dt,{workbook:L?.workbook,setWorkbook:X,importExportDisabled:y,titlePlaceHolder:P,titleWorkbook:W,setWorkbookTitle:V,refWorkbookTitle:ge,commands:ne,undoManager:F,themeModeOptions:I,children:R})})})});return I&&(Z=m.jsxs(r.Oj,{theme:te?I.dark:I.light,children:[I.cssBaseline?m.jsx(Ut,{}):null,Z]})),Z}));Ot.displayName="EagerStandaloneWorkbook";const mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,E:mn,c:ie},Symbol.toStringTag,{value:"Module"}));exports.CL8dYrIob_nNamy9=fn,exports.Collapse=Fe,exports.fe=ie;
17
+ `))),be},[K,B,S]),ge=r.Te(async(R,Z,g)=>{if(!Z&&Y){const C=await Y("Enter Workbook name to "+(g.isDefault?"Save.":`Export as ${g.description}.`));return C!==null&&r.xX.writeFile(C,R,{formatType:g.key})}return r.xX.writeFile(Z,R,{formatType:g.key})},[B,S,Y]),U=l.useCallback(()=>({contains:R=>!0,focus(){}}),[]),le=l.useMemo(()=>{const R=[];A||(r.xX.getWriteFormats().forEach(g=>{const C=g.isDefault,V={label:C?"Save Workbook":`Save Workbook as ${g.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${g.description}`},tags:g.tags,description:`Save the workbook to the desktop${C?"":` as ${g.description}`}.`};C&&(V.shortcut={key:"S",modifiers:[r.He.Ctrl]},R.push(new r.We("saveWorkbookAs",U,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[r.He.Shift,r.He.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{ge(S,null,g).catch(se=>{B?.showError?.(se)})})));const ee=C?"saveWorkbook":`saveWorkbookAs${g.key}`;R.push(new r.We(ee,U,V,se=>{ge(S,se??D,g).catch(be=>{B?.showError?.(be)})}))}),R.push(new r.We("openWorkbook",U,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[r.He.Ctrl]}},async(g=null)=>{const C={date1904:S.isDate1904(),...S.options};try{const V=await Ie(g,C);if(!V)return;const ee=V.title,se=V.workbook,be=se.getSelectedSheet();if(V.formatType.mimeType==="text/csv"){const He=S.findValidSheetName(ee);await S.doBatch(async()=>{const Je=be.getUsedRange();Je?await S.getSheets().add({name:He,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Je):B?.showMessage("The file appears to be blank.")},`Import CSV '${ee}'`)}else S?.close(),X?.(ee),M(se)}catch(V){B?.showError?.(V)}})),R.push(new r.We("openWorkbookFromUrl",U,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(g){if(!g){const C=await B?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(C.option!=="Open")return;g=C.input}g&&console.log("openWorkbookFromUrl",g)})));let Z=[];return q&&(Z=[new r.We("themeMode",U,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new r.We("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 r.We("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 r.We("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."})]),[...R,...Z,new r.Bt("help",U,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new r.Bt("showKeyboardShortcuts",U,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[r.He.Ctrl]}},()=>{}),new r.We("gotoUrlGithub",U,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new r.We("gotoUrlDiscord",U,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new r.We("gotoUrlDocumentation",U,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new r.We("gotoUrlIssue",U,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[S,D,B,A,q,W,j]),G=l.useMemo(()=>{let R=null;return R=W?W.createChildGroup(U,"standaloneWorkbook",!1):new r.Ru(U,"standaloneWorkbook"),R.addCommands(le,!0),R},[W,le]);r.GK({manager:j,commands:G,notifier:B});const{themeMode:ke}=r.vX();l.useEffect(()=>{if(!q||!G)return;const R=q.forceMode==="dark"||!q.forceMode&&ke==="dark";G.getCommand("themeMode").update({state:q.forceMode??null,label:R?"Dark Mode":"Light Mode",scopedLabels:{appearance:R?"Dark Mode":"Light Mode"}}).updateCallback(()=>{J(R?r.bX.Light:r.bX.Dark)}),G.getCommand("defaultThemeMode").update({state:!q.forceMode}).updateCallback(()=>{J(null)}),G.getCommand("forceLightGrid").update({state:q.forceLightGrid}).updateCallback(()=>{ae(!q.forceLightGrid)}),G.getCommand("forceLightImages").update({state:q.forceLightImages}).updateCallback(()=>{ne(!q.forceLightImages)})},[ke,q,le]);const{showModal:Ae}=r.c6();return l.useEffect(()=>{const R=()=>new Promise((Z,g)=>{const C=l.lazy(()=>Promise.resolve().then(()=>require("./C0s5F1POfARzrKP5.cjs"))),V=Ae(C,{title:"Shortcut Keys Reference",commands:G,onDone:()=>{V.hide()},TransitionProps:{onExited:()=>{Z(!0)}}})});G.getCommand("showKeyboardShortcuts").updateCallback(()=>R()),G.getCommand("help").updateCallback(()=>R())},[le,G]),G})({workbook:i,setWorkbook:t,importExportDisabled:f,workbookTitle:a,setWorkbookTitle:s,commands:p,requestWorkbookTitle:F=>new Promise(S=>{n.current?n.current.requestWorkbookTitle((M,A)=>{S(M)},{selectAll:!0,requestReason:F}):S(u)}),themeModeOptions:x,undoManager:d,notifier:_,onExecute:P});l.useEffect(()=>{w.starting.size<=0||!w.isMounted||k(F=>{const S=new Map(F.running);return F.starting.forEach((M,A)=>{const D=()=>{k(X=>{const B=new Map(X.running);return B.delete(A),{...X,running:B}})};S.set(A,D),M(D)}),{...F,starting:new Map,running:S}})},[w]);const[$,Q]=l.useState(null);l.useEffect(()=>{w.starting.size!==0||w.running.size!==0?Q(m.jsx(r.Nu,{icon:m.jsx(r.iX,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:w.label,onMount:h,onUnmount:T,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):Q(null)},[w.starting,w.running]);const I=l.useMemo(()=>m.jsx(r.wX,{commands:z,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[z]),te={notifier:_,commands:z};return i&&(te.statusBarProps={childrenEnd:I}),m.jsxs(m.Fragment,{children:[$,c?l.cloneElement(c,te):null]})}));Dt.displayName="SnackbarAndCommandsWrapper";const Ot=l.memo(l.forwardRef((e,o)=>{const{className:i,sx:t,style:n,onElementLoad:a,onError:s,undoManager:u,errorPanel:c=r.YV,onKeyDown:d,workbook:p,createWorkbookOptions:f,onWorkbookChange:x,logo:v,importExportDisabled:y=!1,themeModeOptions:b,autoFocus:w=!1,commands:k,title:h,onTitleChange:T,titleProps:E,...N}=e,L=l.useRef(null),H=r.Te(x,[x]),_=r.Te(T??E?.onTitleChange,[T??E?.onTitleChange]),P=E?.placeHolder??"Untitled",z=b?.forceMode,{themeMode:$,source:Q}=r.vX({mode:z}),I=l.useMemo(()=>({...b,light:r.sX(!1,r.re.deepMerge(b?.theme??{},b?.light??{})),dark:r.sX(!0,r.re.deepMerge(b?.theme??{},b?.dark??{}))}),[b]),te=$===r.bX.Dark,[F,S]=l.useState(null);l.useEffect(()=>{S(u??new r.WK)},[u]);const[M,A]=l.useState(null),[D,X]=l.useState(null),B=r.SR();l.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!r.re.isPromiseLike(p)){const g={theme:B.getDefaultTheme(),...f};X(new r.bL(g))}else X(p)},[p]),l.useLayoutEffect(()=>{if(D){if(D instanceof r.bL)return A({workbook:D}),void(p!==D&&H?.(D));(async()=>{try{let g,C=await Promise.resolve(D);C&&C.source&&(C=await r.xX.read(C)),C.workbook?(K(C.title),g=C.workbook):g=C,H?.(g),A({workbook:g})}catch(g){H?.(null),A({error:g})}})()}},[D]);const[Y,q]=l.useState(null);l.useEffect(()=>{if(!F||!M)return;F.clear();const g=M?.workbook?.getTransactions();return g?g.addListener({onCommitEnd:C=>{C.getDescription()?F.addUndoOperation({description:C.getDescription(),undo:()=>(g.revert(C.getId()),Y.source?.focus(),()=>{g.restore(C.getId()),Y.source?.focus()})}):console.warn("commit has no description",C)}}):void 0},[F,M,Y]);const j=r.Te(g=>{g?F.setRepeatableOperation({description:g.label(),repeat:async()=>g.execute()}):F.setRepeatableOperation(null)},[F]),[W,K]=l.useState(h??E?.title??"");l.useEffect(()=>{K(h??E?.title??"")},[h??E?.title]),l.useEffect(()=>{_?.(W)},[W]);const[J,ae]=l.useState(null),ne=l.useMemo(()=>{const g=()=>({contains:C=>!0,focus(){}});return k?k.createChildGroup(g,"application",!1):new r.Ru(g,"application")},[k]),Ie=r.Te(g=>{ae(g.source.getViewportElement()),q(g),ne.activate("sheet"),a?.(g)},[ne]);l.useEffect(()=>{Y&&w&&Y.source?.focus(typeof w=="object"?w:void 0)},[Y]);const ge=l.useRef(null),U=l.useCallback(g=>{let C=null;return E?.hidden||(C=m.jsx(r.RK,{...E,style:{maxWidth:"100%",...E?.style},workbook:L.current,ref:ge,title:W,placeHolder:P,onTitleChange:V=>{K(V)}})),m.jsx(Lt,{...g,logo:v,mainElement:C,showFileMenu:!y,showAppearanceMenu:!!(I?.onForceLightGridChange||I?.onForceLightImagesChange||I?.onForceModeChange)})},[v,W,E,I,y,ne]);l.useEffect(()=>{const g=C=>C.preventDefault();return L.current?.addEventListener("wheel",g,{passive:!1}),()=>{L.current?.removeEventListener("wheel",g)}},[]);const le=l.useMemo(()=>m.jsx(r.Nu,{transparentBackground:!0,sx:t,style:n}),[t,n]),G=l.useCallback(({error:g})=>(s?.(g),m.jsx(c,{sx:t,style:n,error:g??"Unable to display empty workbook."})),[t,n,s]),ke=l.useMemo(()=>({...t,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:g=>g.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[t]),Ae=r.F6([L,o]),R=l.useMemo(()=>{if(!M)return le;if(M.error||!M.workbook)return G({error:M.error});let g=null,C=null,V=!1;return I&&(g=te?I.dark:I.light,C=te&&!I.forceLightGrid?I.dark:I.light,V=I.forceLightImages),m.jsx(r.kK,{sx:ke,style:n,tabIndex:0,autoFocus:!0,workbook:M.workbook,ref:Ae,renderToolbar:U,onElementLoad:Ie,onRepeatCommandChange:j,onKeyDown:ee=>{d?.(ee)},gridTheme:C,headersTheme:g,forceLightImages:V,className:r.jo(i,"sheetxl-workbook"),onContextMenu:ee=>ee.preventDefault(),...N},"WorkbookElement")},[M,W,F,le,I,N,U,ke]);let Z=m.jsx(Zt,{fallbackRender:G,children:m.jsx(dn,{maxSnack:3,domRoot:J,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(g,C,V)=>{L.current?.focus()},Components:{error:Mt},iconVariant:{success:m.jsx(r.SvgIcon,{style:{marginRight:"8px"},children:m.jsx("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:m.jsx(r.rX,{style:{marginRight:"8px"}})},children:m.jsx(r.lX,{children:m.jsx(Dt,{workbook:M?.workbook,setWorkbook:X,importExportDisabled:y,titlePlaceHolder:P,titleWorkbook:W,setWorkbookTitle:K,refWorkbookTitle:ge,commands:ne,undoManager:F,themeModeOptions:I,children:R})})})});return I&&(Z=m.jsxs(r.Oj,{theme:te?I.dark:I.light,children:[I.cssBaseline?m.jsx(Ut,{}):null,Z]})),Z}));Ot.displayName="EagerStandaloneWorkbook";const mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,E:mn,c:ie},Symbol.toStringTag,{value:"Module"}));exports.Collapse=Fe,exports.fe=ie,exports.wy5pKj7t63p_up1j=fn;