@sheetxl/studio-vanilla 0.3.3 → 0.3.5

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 (201) hide show
  1. package/browser/cjs/{C-YXuaIn5H1e3gGL.cjs → -aNm3r-RpjcRRCbw.cjs} +2 -2
  2. package/browser/cjs/6e91IXsvk9_k3W5c.cjs +6 -0
  3. package/browser/cjs/{TJOJ_VEsTmCJ4d0P.cjs → BLHbDre9R0bvyb9G.cjs} +2 -2
  4. package/browser/cjs/BN0MiwKQ8NjKXgue.cjs +7 -0
  5. package/browser/cjs/BNtn_2pcq6Dd-2HL.cjs +11 -0
  6. package/browser/cjs/{-mcHZst9U0zNDZao.cjs → BW_fZwvTtMLqteuJ.cjs} +1 -1
  7. package/browser/cjs/{Dh5RBi3PW-5ty2QU.cjs → Bg9KIoDuqtkhIYfN.cjs} +1 -1
  8. package/browser/cjs/{D4a_UoEEluqny9gi.cjs → BiiW2FlRZHxGIWso.cjs} +1 -1
  9. package/browser/cjs/{pPJG7KbyLkcVi77H.cjs → Biyqj-Wu75uxLHv1.cjs} +2 -2
  10. package/browser/cjs/BwocMiKAPb8s__1Z.cjs +6 -0
  11. package/browser/cjs/{CSZ-Bfo-TZpVumqr.cjs → CdWBtYv7LuuDLPL2.cjs} +1 -1
  12. package/browser/cjs/CuY7mAREmYhHuYWx.cjs +6 -0
  13. package/browser/cjs/CvESC6HiL0-peppq.cjs +12 -0
  14. package/browser/cjs/{VXCGmehGJvuKNhXg.cjs → Cxt39d6l0pu9k1vT.cjs} +8 -8
  15. package/browser/cjs/{DbSTC90BuNxq2k-j.cjs → D7NgrO__M-IUmM8o.cjs} +1 -1
  16. package/browser/cjs/{DnkioRlJqXrbcW-8.cjs → DCWZ2ZkLp-Horeca.cjs} +1 -1
  17. package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +301 -0
  18. package/browser/cjs/{Bhq8u8Q04XpLmF4K.cjs → DIawrhwQ7E_1l99b.cjs} +6 -6
  19. package/browser/cjs/{BoBKeal3_qovATWu.cjs → DKit140jXAUUSf-_.cjs} +2 -2
  20. package/browser/cjs/DKsZXMMHWKP9IZ4E.cjs +12 -0
  21. package/browser/cjs/DeAt9vyyaeB2vbxQ.cjs +6 -0
  22. package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +6 -0
  23. package/browser/cjs/Ya4f5p9go_UndgNy.cjs +6 -0
  24. package/browser/cjs/{BnYTCcol8RjTTC3U.cjs → hSI9QVPgIxqt3pXc.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/qjPE6k7aYlu-R90s.cjs +6 -0
  27. package/browser/cjs/{WKvz7zs0yI8-TRzJ.cjs → yvA5FY7oe6FILMqB.cjs} +1 -1
  28. package/{cdn/assets/DAC77jdtNbZopLX5.js → browser/esm/BLsIMzjofsOnRFrU.mjs} +16 -16
  29. package/{cdn/assets/DQQK1YdQWQGsESk_.js → browser/esm/BTQ-TGJnw7w1Y0CX.mjs} +14 -14
  30. package/browser/esm/{BNixyL5UPlHciWwi.mjs → BdLAPrmXIfjGFhhA.mjs} +152 -152
  31. package/browser/esm/BsDYj6xix3mlXry2.mjs +46 -0
  32. package/browser/esm/Btk74VwCVJ1T5LQD.mjs +46 -0
  33. package/browser/esm/{DhFd9KX61TdmTNyk.mjs → C60KakDbde-A4anI.mjs} +1 -1
  34. package/browser/esm/{1Esqj-uAqAeHBGzU.mjs → CAm14rTtmPL5-rvQ.mjs} +193 -192
  35. package/browser/esm/{CZ9K3g_56s3hfJO0.mjs → CLTP12OHGQ2k4_Kt.mjs} +21 -20
  36. package/browser/esm/{BXkh5kfYj7Zx_PAe.mjs → CPWh2H15145LP-d5.mjs} +1 -1
  37. package/browser/esm/CYXzmWJtZn5OJVBF.mjs +24861 -0
  38. package/{cdn/assets/BQFdL0Ou_nLqI7lR.js → browser/esm/ChMaIhqaEhF3SLLt.mjs} +6 -6
  39. package/browser/esm/{nT3k8GnD4H3I293i.mjs → CntwHkPpskE88Ixu.mjs} +11 -10
  40. package/{cdn/assets/C1opHAkl00_vHPMO.js → browser/esm/CsVV_QnEl77BQM3V.mjs} +1 -1
  41. package/{cdn/assets/iHc25sW_jPEvAQNG.js → browser/esm/CvFAAktSd9TQK1h4.mjs} +1 -1
  42. package/browser/esm/{DwLRqrlPfv8xcbxB.mjs → D0-tgawYa4KXYT2c.mjs} +2 -2
  43. package/browser/esm/{B3iFtnvwZZ0izvkj.mjs → D244UwY3qPC_LNc5.mjs} +2 -2
  44. package/{cdn/assets/B1bRlKApOQZbRHvx.js → browser/esm/DCuLWmzd9eLWgI03.mjs} +1 -1
  45. package/{cdn/assets/Dwd9xRP6sCbvd7-2.js → browser/esm/DDD5zfwNNPKuc_zZ.mjs} +1 -1
  46. package/browser/esm/{BZD8sqVzxMPTV1eH.mjs → DFa_tXqv1VN1OZdv.mjs} +75 -74
  47. package/{cdn/assets/Cqq1J11IdNmbXlgF.js → browser/esm/DJxioSY-hxyM7dmk.mjs} +24 -23
  48. package/{cdn/assets/Dkcj5uYhkoaa5JJt.js → browser/esm/DdrICyX8Ead15N32.mjs} +7 -7
  49. package/{cdn/assets/vw_ELbpa8MGzVBfc.js → browser/esm/Di2tNceI3NodSsgU.mjs} +10 -10
  50. package/browser/esm/{B7RdrgkvZilWOBgD.mjs → Did46-x6ZVwk_-r-.mjs} +1 -1
  51. package/browser/esm/Q1yWEkJBu4cVEF33.mjs +1467 -0
  52. package/browser/esm/index.mjs +2 -2
  53. package/{cdn/assets/CtW_m0lUeW_X_FHB.js → browser/esm/mq5uPzTIc1x8unBP.mjs} +1 -1
  54. package/browser/esm/wziCLl5xvHu6Guu_.mjs +22 -0
  55. package/cdn/assets/B41q92oKD_VR31Dd.js +46 -0
  56. package/cdn/assets/{DJ3siDIdJVpw0GCs.js → BOl7blN8JotSzCHJ.js} +2 -2
  57. package/{browser/esm/CaLAEGMKeQ3INVEV.mjs → cdn/assets/Bs-psXrTRw1jFety.js} +14 -14
  58. package/cdn/assets/{3ijH6Pl-l2q9T5Ky.js → BzptX9H_YCM2l0DE.js} +11 -10
  59. package/cdn/assets/{DhFd9KX61TdmTNyk.js → C60KakDbde-A4anI.js} +1 -1
  60. package/{browser/esm/Bz98C5-blFN81GJ-.mjs → cdn/assets/C8omEbSXHWI_wNjp.js} +10 -10
  61. package/{browser/esm/C7cRxJLNfGjCT_Hk.mjs → cdn/assets/CEXK9SXjFf1dGHZe.js} +16 -16
  62. package/cdn/assets/{BXkh5kfYj7Zx_PAe.js → CPWh2H15145LP-d5.js} +1 -1
  63. package/cdn/assets/C_E1C68wCcRpC6XN.js +46 -0
  64. package/cdn/assets/{D5Ns-uBNTj4-Jo0p.js → ClFGbVy7cnhMW-dO.js} +2 -2
  65. package/cdn/assets/{C4Vp4GoCEGQgWaGc.js → CoCIP7n4THmzOggq.js} +75 -74
  66. package/{browser/esm/C1opHAkl00_vHPMO.mjs → cdn/assets/CsVV_QnEl77BQM3V.js} +1 -1
  67. package/{browser/esm/iHc25sW_jPEvAQNG.mjs → cdn/assets/CvFAAktSd9TQK1h4.js} +1 -1
  68. package/{browser/esm/CdJVpNbmXP_fHybW.mjs → cdn/assets/Cz33L9W3cdQckAL5.js} +24 -23
  69. package/{browser/esm/DTHujOSrUxuBuwud.mjs → cdn/assets/DBgbBl_3O65WhfWN.js} +6 -6
  70. package/{browser/esm/B1bRlKApOQZbRHvx.mjs → cdn/assets/DCuLWmzd9eLWgI03.js} +1 -1
  71. package/{browser/esm/Dwd9xRP6sCbvd7-2.mjs → cdn/assets/DDD5zfwNNPKuc_zZ.js} +1 -1
  72. package/cdn/assets/DLYF-18qErpwF9Q-.js +1467 -0
  73. package/cdn/assets/{Dk8MDG7PNGIWw80U.js → DXMyzCcyP7039z13.js} +238 -238
  74. package/{browser/esm/FXy016gXiiQkH7aF.mjs → cdn/assets/DdrICyX8Ead15N32.js} +7 -7
  75. package/cdn/assets/{B7RdrgkvZilWOBgD.js → Did46-x6ZVwk_-r-.js} +1 -1
  76. package/cdn/assets/{ukDxhSJqMPzLXoCP.js → Dj3GhNedlKE9TeTn.js} +193 -192
  77. package/cdn/assets/F-RqJeKWiW4i5344.js +24708 -0
  78. package/cdn/assets/{DirkLhQ9-HVY0eDv.js → NHbXgEQMftGzY01r.js} +21 -20
  79. package/cdn/assets/lM5it-aJgI7DLNH9.js +22 -0
  80. package/{browser/esm/CtW_m0lUeW_X_FHB.mjs → cdn/assets/mq5uPzTIc1x8unBP.js} +1 -1
  81. package/cdn/index.js +2 -2
  82. package/cdn/loader.js +1 -1
  83. package/package.json +3 -2
  84. package/browser/cjs/-q2o2lS8jxJdArvq.cjs +0 -6
  85. package/browser/cjs/-wP4OG5GpQTxGLJN.cjs +0 -6
  86. package/browser/cjs/2TmE8J3tbgenWyNa.cjs +0 -6
  87. package/browser/cjs/3ghCxtNVxZjrbziE.cjs +0 -6
  88. package/browser/cjs/6AlZR3dVayTg7C5E.cjs +0 -452
  89. package/browser/cjs/B0BcYYAX9Qq_i5Iv.cjs +0 -6
  90. package/browser/cjs/B237Hj6a3Klw9rQn.cjs +0 -12
  91. package/browser/cjs/B24aLncmXYgEQNjl.cjs +0 -6
  92. package/browser/cjs/B9C-V-MR_epPI-2J.cjs +0 -6
  93. package/browser/cjs/BASowCefqJFspuu-.cjs +0 -6
  94. package/browser/cjs/BeDnbSWoeqV6GajE.cjs +0 -6
  95. package/browser/cjs/BucBlzmuZS_nYU9N.cjs +0 -6
  96. package/browser/cjs/C662YNYNcFb-AwnS.cjs +0 -6
  97. package/browser/cjs/CGg3vZ0YENmM73uu.cjs +0 -6
  98. package/browser/cjs/CJ9WKDMLDxv2vmlL.cjs +0 -6
  99. package/browser/cjs/CcxjUuuq3eq1io9D.cjs +0 -6
  100. package/browser/cjs/Ch4kNO1QwQ4Dqczw.cjs +0 -124
  101. package/browser/cjs/CrXR8mOrQVdukohR.cjs +0 -6
  102. package/browser/cjs/CuLinKNAohDMFqJU.cjs +0 -6
  103. package/browser/cjs/D0Ruzl2vdZGdUhjE.cjs +0 -12
  104. package/browser/cjs/D4CfqUrC04nbs39G.cjs +0 -6
  105. package/browser/cjs/D6cHa8Tv5I8L_uAO.cjs +0 -6
  106. package/browser/cjs/D7MyL7xgt0wGGz3I.cjs +0 -13
  107. package/browser/cjs/D7U5Wmdc51Op-pty.cjs +0 -6
  108. package/browser/cjs/D9SYWsd_viMxXbL_.cjs +0 -6
  109. package/browser/cjs/DMIPzZRAbLsma6rR.cjs +0 -7
  110. package/browser/cjs/DPTxGnV0pA87nrhG.cjs +0 -32
  111. package/browser/cjs/DTtUhkXmo3x2L2GG.cjs +0 -6
  112. package/browser/cjs/DgBFcVOVhZuytQ4k.cjs +0 -6
  113. package/browser/cjs/DoCfDJUgwatpHG4J.cjs +0 -1501
  114. package/browser/cjs/Dwc5vGQ4nkaSmift.cjs +0 -6
  115. package/browser/cjs/GbU6d05bhcxQrAUD.cjs +0 -15
  116. package/browser/cjs/OW7aZPHGxXjRF38A.cjs +0 -6
  117. package/browser/cjs/WQBNSYPbQzvO23r-.cjs +0 -6
  118. package/browser/cjs/XF920uRM7LSmFp49.cjs +0 -6
  119. package/browser/cjs/XazDEHRGho7wJTUR.cjs +0 -6
  120. package/browser/cjs/Zjw2XvR7-Zfykt20.cjs +0 -6
  121. package/browser/cjs/eM5uLWq0QtvNN4O-.cjs +0 -6
  122. package/browser/cjs/gjPOOFOH_THG1O-L.cjs +0 -6
  123. package/browser/cjs/hhZA8Q_VAVRnX3Rz.cjs +0 -7
  124. package/browser/cjs/qjCnEqCfcXzLIady.cjs +0 -6
  125. package/browser/cjs/s238D5kFNyDNYzIV.cjs +0 -6
  126. package/browser/cjs/t-6Fa6b5-CXTHDjn.cjs +0 -6
  127. package/browser/cjs/zvHV2c0_QPS3v2Wt.cjs +0 -11
  128. package/browser/esm/B-v14ikVOXpmpHCI.mjs +0 -5560
  129. package/browser/esm/B1M7fpFXcO34FZ5C.mjs +0 -29
  130. package/browser/esm/B6nZCfPr7UmxzAi6.mjs +0 -48671
  131. package/browser/esm/B7k3pb4haBsw-Yvr.mjs +0 -10
  132. package/browser/esm/B8ajmWm1J-ZsmBzK.mjs +0 -10
  133. package/browser/esm/BGvKR9TNj2ORlcKm.mjs +0 -10
  134. package/browser/esm/Bc8y371ooCwvBkRs.mjs +0 -10
  135. package/browser/esm/BezHCUZawkIGzzUm.mjs +0 -422
  136. package/browser/esm/BnxMjyy6JPTUe9Lg.mjs +0 -10
  137. package/browser/esm/BskzQvqHyjuVccIH.mjs +0 -22
  138. package/browser/esm/BzS_V6RkpVpk_d1w.mjs +0 -472
  139. package/browser/esm/CM--Vw5PcrLIXc8O.mjs +0 -12
  140. package/browser/esm/CflOcniWVa_VR5Wy.mjs +0 -10
  141. package/browser/esm/Cn9w-KgbsxAKNj6s.mjs +0 -10
  142. package/browser/esm/D6KdwQgZEBMy0260.mjs +0 -10
  143. package/browser/esm/DAOw8vm-XsJ_n7BK.mjs +0 -10
  144. package/browser/esm/DIKvxkHBBvYo2rnC.mjs +0 -10
  145. package/browser/esm/DNVkA-vwqtIw6aKf.mjs +0 -1575
  146. package/browser/esm/DTS0EgQuwHdS5aQN.mjs +0 -10
  147. package/browser/esm/DaeiyDhcdRvg5nGs.mjs +0 -1466
  148. package/browser/esm/DeSyxK8Ibb-tIa67.mjs +0 -10
  149. package/browser/esm/DgPz063GFvbhOHHK.mjs +0 -10
  150. package/browser/esm/Di8gWiOWhfFzcOuw.mjs +0 -21
  151. package/browser/esm/Dlg7LT4wsJCPSTCT.mjs +0 -46
  152. package/browser/esm/DqDxWoCftkWurpDk.mjs +0 -10
  153. package/browser/esm/DupExqAEenu5ZS6G.mjs +0 -820
  154. package/browser/esm/Dy1zdTKMeT50nXcy.mjs +0 -10
  155. package/browser/esm/Dz_O3du2SrhYK47v.mjs +0 -10
  156. package/browser/esm/IbCi65rCiiLS_OGe.mjs +0 -46
  157. package/browser/esm/R2Li5a5IPMuoQEGD.mjs +0 -10
  158. package/browser/esm/SWzqhkO1HABv0bfG.mjs +0 -10
  159. package/browser/esm/VDflSVY_vwi7ZcHQ.mjs +0 -3922
  160. package/browser/esm/dAJOajC7rsn3_hWk.mjs +0 -10
  161. package/browser/esm/fvsQWBiDZg7zRYOa.mjs +0 -10
  162. package/browser/esm/o8Z04Tjc17JBUDsL.mjs +0 -10
  163. package/browser/esm/qbGHKDeXrxvghjMt.mjs +0 -24
  164. package/browser/esm/uk5NsqjbkRuKv1vU.mjs +0 -10
  165. package/cdn/assets/B2P82Dvadjo7-hRY.js +0 -1466
  166. package/cdn/assets/B7k3pb4haBsw-Yvr.js +0 -10
  167. package/cdn/assets/B8ajmWm1J-ZsmBzK.js +0 -10
  168. package/cdn/assets/BFDOApZozGNnJdxs.js +0 -46
  169. package/cdn/assets/BGvKR9TNj2ORlcKm.js +0 -10
  170. package/cdn/assets/BJgFwyqDjKdTH0xW.js +0 -422
  171. package/cdn/assets/BKxjmGpW0pe8KUzm.js +0 -472
  172. package/cdn/assets/Bc8y371ooCwvBkRs.js +0 -10
  173. package/cdn/assets/BnxMjyy6JPTUe9Lg.js +0 -10
  174. package/cdn/assets/CM--Vw5PcrLIXc8O.js +0 -12
  175. package/cdn/assets/COS-oUtP1lQi0Hd8.js +0 -22
  176. package/cdn/assets/CSxbcCsSh3AdRzkk.js +0 -3922
  177. package/cdn/assets/CflOcniWVa_VR5Wy.js +0 -10
  178. package/cdn/assets/Cn9w-KgbsxAKNj6s.js +0 -10
  179. package/cdn/assets/Cqyz2pkIcU2pAivO.js +0 -5560
  180. package/cdn/assets/CuYtiG4SP9OK6dJP.js +0 -1575
  181. package/cdn/assets/D6KdwQgZEBMy0260.js +0 -10
  182. package/cdn/assets/DAOw8vm-XsJ_n7BK.js +0 -10
  183. package/cdn/assets/DCwhACFXcpYD60H9.js +0 -820
  184. package/cdn/assets/DIKvxkHBBvYo2rnC.js +0 -10
  185. package/cdn/assets/DOLBqVto8cJdYLWp.js +0 -46
  186. package/cdn/assets/DTS0EgQuwHdS5aQN.js +0 -10
  187. package/cdn/assets/DeSyxK8Ibb-tIa67.js +0 -10
  188. package/cdn/assets/Dew12-owBXPNmL1S.js +0 -29
  189. package/cdn/assets/DgPz063GFvbhOHHK.js +0 -10
  190. package/cdn/assets/Di8gWiOWhfFzcOuw.js +0 -21
  191. package/cdn/assets/DqDxWoCftkWurpDk.js +0 -10
  192. package/cdn/assets/Dy1zdTKMeT50nXcy.js +0 -10
  193. package/cdn/assets/Dz_O3du2SrhYK47v.js +0 -10
  194. package/cdn/assets/G9bfOnISYlZUeW4U.js +0 -48518
  195. package/cdn/assets/R2Li5a5IPMuoQEGD.js +0 -10
  196. package/cdn/assets/SWzqhkO1HABv0bfG.js +0 -10
  197. package/cdn/assets/dAJOajC7rsn3_hWk.js +0 -10
  198. package/cdn/assets/fvsQWBiDZg7zRYOa.js +0 -10
  199. package/cdn/assets/o8Z04Tjc17JBUDsL.js +0 -10
  200. package/cdn/assets/qbGHKDeXrxvghjMt.js +0 -24
  201. package/cdn/assets/uk5NsqjbkRuKv1vU.js +0 -10
@@ -1,10 +1,11 @@
1
- import { jsx as g, jsxs as se, Fragment as Gt } from "react/jsx-runtime";
1
+ import { jsx as g, jsxs as se, Fragment as Kt } from "react/jsx-runtime";
2
2
  import * as ve from "react";
3
- import T, { memo as Me, forwardRef as ce, useRef as le, useMemo as te, useState as ae, useEffect as K, useLayoutEffect as dt, useCallback as ne, Component as Kt, createElement as fe, createContext as xn, useContext as yn, isValidElement as wn, cloneElement as vn } from "react";
4
- import { E as xt, G as yt, H as Je, I as En, L as Cn, O as Sn, P as Ln, Q as Mn, Z as He, $ as wt, a0 as vt, a1 as Mt, a2 as Dn, a3 as Tn, a4 as Zt, a5 as On, a6 as Wn, a7 as ie, a8 as Qt, a9 as Dt, r as nt, aa as pt, ab as Fn, ac as Nn, l as Tt, ad as ye, ae as Xt, af as An, ag as Jt, ah as Rn, ai as mt, aj as Yt, ak as In, al as Pn, am as Hn, an as jn, ao as zn, ap as qn, aq as _n, c as xe, ar as Bn, J as Vn, as as $n, at as ht, au as Un, av as Gn, aw as Kn, ax as Zn, ay as Qn, az as Xn, A as Jn, aA as ee, aB as We, aC as Ot, aD as Yn, aE as eo, aF as to, aG as no, aH as oo, aI as ro, aJ as ot, aK as Fe, aL as ao, aM as io, aN as so, aO as lo, aP as Wt, aQ as Ft, aR as co, aS as uo, aT as po, aU as mo, aV as qe, aW as ho } from "./B6nZCfPr7UmxzAi6.mjs";
5
- import { createPortal as fo } from "react-dom";
3
+ import T, { memo as Me, forwardRef as ce, useRef as le, useMemo as te, useState as ae, useEffect as G, useLayoutEffect as dt, useCallback as ne, Component as Gt, createElement as fe, createContext as xn, useContext as yn, isValidElement as wn, cloneElement as vn } from "react";
4
+ import { g as xt, d as yt, u as Ye, e as En, f as Cn, h as Sn, i as Ln, j as Mn, k as je, l as wt, n as vt, o as Mt, p as Dn, P as Tn, q as Zt, r as On, v as Wn, t as ie, H as Xt, x as Dt, y as pt, z as Fn, $ as ye, A as Qt, C as Nn, J as Yt, K as An, L as mt, M as Jt, N as Rn, O as Pn, S as In, R as jn, U as Hn, V as zn, W as qn, B as xe, Y as _n, E as Bn, Z as Vn, a0 as ht, a1 as $n, a2 as Un, a3 as Kn, a4 as Gn, a5 as Zn, a6 as Xn, Q as Qn, a7 as ee, a8 as We, a9 as Tt, aa as Yn, ab as Jn, ac as eo, ad as to, ae as no, af as oo, ag as nt, ah as Fe, ai as ro, aj as ao, ak as io, al as so, am as Ot, an as Wt, ao as lo, ap as co, aq as uo, ar as po, as as qe } from "./CYXzmWJtZn5OJVBF.mjs";
5
+ import { createPortal as mo } from "react-dom";
6
+ import { CommonUtils as ot, UndoManager as ho, Workbook as Ft, PartialError as fo } from "@sheetxl/sdk";
6
7
  /**
7
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.3
8
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
8
9
  *
9
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
11
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -13,51 +14,51 @@ function go(e) {
13
14
  return xt("MuiCollapse", e);
14
15
  }
15
16
  yt("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
16
- const ko = He("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e, o) => {
17
+ const ko = je("div", { name: "MuiCollapse", slot: "Root", overridesResolver: (e, o) => {
17
18
  const { ownerState: r } = e;
18
19
  return [o.root, o[r.orientation], r.state === "entered" && o.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && o.hidden];
19
- } })(Dn(({ 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" } }] }))), bo = He("div", { name: "MuiCollapse", slot: "Wrapper", overridesResolver: (e, o) => o.wrapper })({ display: "flex", width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), xo = He("div", { name: "MuiCollapse", slot: "WrapperInner", overridesResolver: (e, o) => o.wrapperInner })({ width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), ft = ve.forwardRef(function(e, o) {
20
- const r = Je({ props: e, name: "MuiCollapse" }), { addEndListener: t, children: n, className: a, collapsedSize: i = "0px", component: l, easing: s, in: c, onEnter: u, onEntered: m, onEntering: k, onExit: y, onExited: b, onExiting: f, orientation: x = "vertical", style: h, timeout: d = En.standard, TransitionComponent: L = Cn, ...w } = r, R = { ...r, orientation: x, collapsedSize: i }, M = ((C) => {
20
+ } })(Dn(({ 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" } }] }))), bo = je("div", { name: "MuiCollapse", slot: "Wrapper", overridesResolver: (e, o) => o.wrapper })({ display: "flex", width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), xo = je("div", { name: "MuiCollapse", slot: "WrapperInner", overridesResolver: (e, o) => o.wrapperInner })({ width: "100%", variants: [{ props: { orientation: "horizontal" }, style: { width: "auto", height: "100%" } }] }), ft = ve.forwardRef(function(e, o) {
21
+ const r = Ye({ props: e, name: "MuiCollapse" }), { addEndListener: t, children: n, className: a, collapsedSize: i = "0px", component: l, easing: s, in: c, onEnter: u, onEntered: m, onEntering: k, onExit: y, onExited: b, onExiting: f, orientation: x = "vertical", style: h, timeout: d = En.standard, TransitionComponent: L = Cn, ...w } = r, R = { ...r, orientation: x, collapsedSize: i }, M = ((C) => {
21
22
  const { orientation: W, classes: V } = C;
22
23
  return vt({ root: ["root", `${W}`], entered: ["entered"], hidden: ["hidden"], wrapper: ["wrapper", `${W}`], wrapperInner: ["wrapperInner", `${W}`] }, go, V);
23
- })(R), H = Sn(), _ = Ln(), N = ve.useRef(null), z = ve.useRef(), G = typeof i == "number" ? `${i}px` : i, X = x === "horizontal", I = X ? "width" : "height", oe = ve.useRef(null), A = Mn(o, oe), E = (C) => (W) => {
24
+ })(R), j = Sn(), _ = Ln(), N = ve.useRef(null), z = ve.useRef(), K = typeof i == "number" ? `${i}px` : i, Q = x === "horizontal", P = Q ? "width" : "height", oe = ve.useRef(null), A = Mn(o, oe), E = (C) => (W) => {
24
25
  if (C) {
25
26
  const V = oe.current;
26
27
  W === void 0 ? C(V) : C(V, W);
27
28
  }
28
- }, S = () => N.current ? N.current[X ? "clientWidth" : "clientHeight"] : 0, P = E((C, W) => {
29
- N.current && X && (N.current.style.position = "absolute"), C.style[I] = G, u && u(C, W);
29
+ }, S = () => N.current ? N.current[Q ? "clientWidth" : "clientHeight"] : 0, I = E((C, W) => {
30
+ N.current && Q && (N.current.style.position = "absolute"), C.style[P] = K, u && u(C, W);
30
31
  }), D = E((C, W) => {
31
32
  const V = S();
32
- N.current && X && (N.current.style.position = "");
33
+ N.current && Q && (N.current.style.position = "");
33
34
  const { duration: re, easing: me } = Mt({ style: h, timeout: d, easing: s }, { mode: "enter" });
34
35
  if (d === "auto") {
35
- const ue = H.transitions.getAutoHeightDuration(V);
36
+ const ue = j.transitions.getAutoHeightDuration(V);
36
37
  C.style.transitionDuration = `${ue}ms`, z.current = ue;
37
38
  } else C.style.transitionDuration = typeof re == "string" ? re : `${re}ms`;
38
- C.style[I] = `${V}px`, C.style.transitionTimingFunction = me, k && k(C, W);
39
+ C.style[P] = `${V}px`, C.style.transitionTimingFunction = me, k && k(C, W);
39
40
  }), B = E((C, W) => {
40
- C.style[I] = "auto", m && m(C, W);
41
+ C.style[P] = "auto", m && m(C, W);
41
42
  }), q = E((C) => {
42
- C.style[I] = `${S()}px`, y && y(C);
43
- }), J = E(b), j = E((C) => {
43
+ C.style[P] = `${S()}px`, y && y(C);
44
+ }), Y = E(b), H = E((C) => {
44
45
  const W = S(), { duration: V, easing: re } = Mt({ style: h, timeout: d, easing: s }, { mode: "exit" });
45
46
  if (d === "auto") {
46
- const me = H.transitions.getAutoHeightDuration(W);
47
+ const me = j.transitions.getAutoHeightDuration(W);
47
48
  C.style.transitionDuration = `${me}ms`, z.current = me;
48
49
  } else C.style.transitionDuration = typeof V == "string" ? V : `${V}ms`;
49
- C.style[I] = G, C.style.transitionTimingFunction = re, f && f(C);
50
+ C.style[P] = K, C.style.transitionTimingFunction = re, f && f(C);
50
51
  });
51
- return g(L, { in: c, onEnter: P, onEntered: B, onEntering: D, onExit: q, onExited: J, onExiting: j, addEndListener: (C) => {
52
+ return g(L, { in: c, onEnter: I, onEntered: B, onEntering: D, onExit: q, onExited: Y, onExiting: H, addEndListener: (C) => {
52
53
  d === "auto" && _.start(z.current || 0, C), t && t(oe.current, C);
53
- }, nodeRef: oe, timeout: d === "auto" ? null : d, ...w, children: (C, { ownerState: W, ...V }) => g(ko, { as: l, className: wt(M.root, a, { entered: M.entered, exited: !c && G === "0px" && M.hidden }[C]), style: { [X ? "minWidth" : "minHeight"]: G, ...h }, ref: A, ownerState: { ...R, state: C }, ...V, children: g(bo, { ownerState: { ...R, state: C }, className: M.wrapper, ref: N, children: g(xo, { ownerState: { ...R, state: C }, className: M.wrapperInner, children: n }) }) }) });
54
+ }, nodeRef: oe, timeout: d === "auto" ? null : d, ...w, children: (C, { ownerState: W, ...V }) => g(ko, { as: l, className: wt(M.root, a, { entered: M.entered, exited: !c && K === "0px" && M.hidden }[C]), style: { [Q ? "minWidth" : "minHeight"]: K, ...h }, ref: A, ownerState: { ...R, state: C }, ...V, children: g(bo, { ownerState: { ...R, state: C }, className: M.wrapper, ref: N, children: g(xo, { ownerState: { ...R, state: C }, className: M.wrapperInner, children: n }) }) }) });
54
55
  });
55
56
  function yo(e) {
56
57
  return xt("MuiCard", e);
57
58
  }
58
59
  ft && (ft.muiSupportAuto = !0), yt("MuiCard", ["root"]);
59
- const wo = He(Tn, { name: "MuiCard", slot: "Root", overridesResolver: (e, o) => o.root })({ overflow: "hidden" }), vo = ve.forwardRef(function(e, o) {
60
- const r = Je({ props: e, name: "MuiCard" }), { className: t, raised: n = !1, ...a } = r, i = { ...r, raised: n }, l = ((s) => {
60
+ const wo = je(Tn, { name: "MuiCard", slot: "Root", overridesResolver: (e, o) => o.root })({ overflow: "hidden" }), vo = ve.forwardRef(function(e, o) {
61
+ const r = Ye({ props: e, name: "MuiCard" }), { className: t, raised: n = !1, ...a } = r, i = { ...r, raised: n }, l = ((s) => {
61
62
  const { classes: c } = s;
62
63
  return vt({ root: ["root"] }, yo, c);
63
64
  })(i);
@@ -67,11 +68,11 @@ function Eo(e) {
67
68
  return xt("MuiCardActions", e);
68
69
  }
69
70
  yt("MuiCardActions", ["root", "spacing"]);
70
- const Co = He("div", { name: "MuiCardActions", slot: "Root", overridesResolver: (e, o) => {
71
+ const Co = je("div", { name: "MuiCardActions", slot: "Root", overridesResolver: (e, o) => {
71
72
  const { ownerState: r } = e;
72
73
  return [o.root, !r.disableSpacing && o.spacing];
73
74
  } })({ display: "flex", alignItems: "center", padding: 8, variants: [{ props: { disableSpacing: !1 }, style: { "& > :not(style) ~ :not(style)": { marginLeft: 8 } } }] }), So = ve.forwardRef(function(e, o) {
74
- const r = Je({ props: e, name: "MuiCardActions" }), { disableSpacing: t = !1, className: n, ...a } = r, i = { ...r, disableSpacing: t }, l = ((s) => {
75
+ const r = Ye({ props: e, name: "MuiCardActions" }), { disableSpacing: t = !1, className: n, ...a } = r, i = { ...r, disableSpacing: t }, l = ((s) => {
75
76
  const { classes: c, disableSpacing: u } = s;
76
77
  return vt({ root: ["root", !u && "spacing"] }, Eo, c);
77
78
  })(i);
@@ -93,11 +94,11 @@ const Co = He("div", { name: "MuiCardActions", slot: "Root", overridesResolver:
93
94
  }), r;
94
95
  })(e));
95
96
  function To(e) {
96
- const o = Je({ props: e, name: "MuiCssBaseline" }), { children: r, enableColorScheme: t = !1 } = o;
97
+ const o = Ye({ props: e, name: "MuiCssBaseline" }), { children: r, enableColorScheme: t = !1 } = o;
97
98
  return se(ve.Fragment, { children: [gt && g(Do, { enableColorScheme: t }), !gt && !t && g("span", { className: Ze, style: { display: "none" } }), r] });
98
99
  }
99
100
  const Oo = On(g("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z" }), "CancelOutlined"), Wo = xn(null), rt = { didCatch: !1, error: null };
100
- class Fo extends Kt {
101
+ class Fo extends Gt {
101
102
  constructor(o) {
102
103
  super(o), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = rt;
103
104
  }
@@ -213,7 +214,7 @@ function O() {
213
214
  function on(e, o) {
214
215
  e.prototype = Object.create(o.prototype), e.prototype.constructor = e, e.__proto__ = o;
215
216
  }
216
- function je(e, o) {
217
+ function He(e, o) {
217
218
  if (e == null) return {};
218
219
  var r, t, n = {}, a = Object.keys(e);
219
220
  for (t = 0; t < a.length; t++) r = a[t], o.indexOf(r) >= 0 || (n[r] = e[r]);
@@ -224,15 +225,15 @@ function Rt(e) {
224
225
  return e;
225
226
  }
226
227
  kt.bind({ g: 1 }), kt.bind({ k: 1 });
227
- var It = function() {
228
+ var Pt = function() {
228
229
  return "";
229
- }, rn = T.createContext({ enqueueSnackbar: It, closeSnackbar: It }), at = "@media (max-width:599.95px)", Qe = "@media (min-width:600px)", Pt = function(e) {
230
+ }, rn = T.createContext({ enqueueSnackbar: Pt, closeSnackbar: Pt }), at = "@media (max-width:599.95px)", Xe = "@media (min-width:600px)", It = function(e) {
230
231
  return e.charAt(0).toUpperCase() + e.slice(1);
231
232
  }, Et = function(e) {
232
- return "" + Pt(e.vertical) + Pt(e.horizontal);
233
+ return "" + It(e.vertical) + It(e.horizontal);
233
234
  }, _e = function(e) {
234
235
  return !!e || e === 0;
235
- }, Be = "unmounted", Ee = "exited", Ce = "entering", Ne = "entered", Ht = "exiting", Ct = function(e) {
236
+ }, Be = "unmounted", Ee = "exited", Ce = "entering", Ne = "entered", jt = "exiting", Ct = function(e) {
236
237
  function o(t) {
237
238
  var n;
238
239
  n = e.call(this, t) || this;
@@ -249,7 +250,7 @@ var It = function() {
249
250
  var n = null;
250
251
  if (t !== this.props) {
251
252
  var a = this.state.status;
252
- this.props.in ? a !== Ce && a !== Ne && (n = Ce) : a !== Ce && a !== Ne || (n = Ht);
253
+ this.props.in ? a !== Ce && a !== Ne && (n = Ce) : a !== Ce && a !== Ne || (n = jt);
253
254
  }
254
255
  this.updateStatus(!1, n);
255
256
  }, r.componentWillUnmount = function() {
@@ -272,7 +273,7 @@ var It = function() {
272
273
  });
273
274
  }, r.performExit = function() {
274
275
  var t = this, n = this.props.exit, a = this.getTimeouts();
275
- n ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: Ht }, function() {
276
+ n ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: jt }, function() {
276
277
  t.props.onExiting && t.props.onExiting(t.node), t.onTransitionEnd(a.exit, function() {
277
278
  t.safeSetState({ status: Ee }, function() {
278
279
  t.props.onExited && t.props.onExited(t.node);
@@ -300,7 +301,7 @@ var It = function() {
300
301
  var t = this.state.status;
301
302
  if (t === Be) return null;
302
303
  var n = this.props;
303
- return (0, n.children)(t, je(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
304
+ return (0, n.children)(t, He(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
304
305
  }, nn(o, [{ key: "node", get: function() {
305
306
  var t, n = (t = this.props.nodeRef) === null || t === void 0 ? void 0 : t.current;
306
307
  if (!n) throw new Error("notistack - Custom snackbar is not refForwarding");
@@ -309,17 +310,17 @@ var It = function() {
309
310
  }(T.Component);
310
311
  function Se() {
311
312
  }
312
- function jt(e, o) {
313
+ function Ht(e, o) {
313
314
  typeof e == "function" ? e(o) : e && (e.current = o);
314
315
  }
315
316
  function bt(e, o) {
316
317
  return te(function() {
317
318
  return e == null && o == null ? null : function(r) {
318
- jt(e, r), jt(o, r);
319
+ Ht(e, r), Ht(o, r);
319
320
  };
320
321
  }, [e, o]);
321
322
  }
322
- function Xe(e) {
323
+ function Qe(e) {
323
324
  var o = e.timeout, r = e.style, t = r === void 0 ? {} : r, n = e.mode;
324
325
  return { duration: typeof o == "object" ? o[n] || 0 : o, easing: t.transitionTimingFunction, delay: t.transitionDelay };
325
326
  }
@@ -370,22 +371,22 @@ function Ve(e, o) {
370
371
  }
371
372
  }
372
373
  var ln = ce(function(e, o) {
373
- var r = e.children, t = e.direction, n = t === void 0 ? "down" : t, a = e.in, i = e.style, l = e.timeout, s = l === void 0 ? 0 : l, c = e.onEnter, u = e.onEntered, m = e.onExit, k = e.onExited, y = je(e, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), b = le(null), f = bt(r.ref, b), x = bt(f, o), h = ne(function() {
374
+ var r = e.children, t = e.direction, n = t === void 0 ? "down" : t, a = e.in, i = e.style, l = e.timeout, s = l === void 0 ? 0 : l, c = e.onEnter, u = e.onEntered, m = e.onExit, k = e.onExited, y = He(e, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), b = le(null), f = bt(r.ref, b), x = bt(f, o), h = ne(function() {
374
375
  b.current && Ve(n, b.current);
375
376
  }, [n]);
376
- return K(function() {
377
+ return G(function() {
377
378
  if (!a && n !== "down" && n !== "right") {
378
379
  var d = function(w, R) {
379
380
  var M;
380
- function H() {
381
- for (var _ = this, N = arguments.length, z = new Array(N), G = 0; G < N; G++) z[G] = arguments[G];
381
+ function j() {
382
+ for (var _ = this, N = arguments.length, z = new Array(N), K = 0; K < N; K++) z[K] = arguments[K];
382
383
  clearTimeout(M), M = setTimeout(function() {
383
384
  w.apply(_, z);
384
385
  }, R);
385
386
  }
386
- return R === void 0 && (R = 166), H.clear = function() {
387
+ return R === void 0 && (R = 166), j.clear = function() {
387
388
  clearTimeout(M);
388
- }, H;
389
+ }, j;
389
390
  }(function() {
390
391
  b.current && Ve(n, b.current);
391
392
  }), L = sn(b.current);
@@ -393,15 +394,15 @@ var ln = ce(function(e, o) {
393
394
  d.clear(), L.removeEventListener("resize", d);
394
395
  };
395
396
  }
396
- }, [n, a]), K(function() {
397
+ }, [n, a]), G(function() {
397
398
  a || h();
398
399
  }, [a, h]), fe(Ct, Object.assign({ appear: !0, nodeRef: b, onEnter: function(d, L) {
399
400
  Ve(n, d), an(d), c && c(d, L);
400
401
  }, onEntered: u, onEntering: function(d) {
401
- var L = Xe({ timeout: s, mode: "enter", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.0, 0, 0.2, 1)" }) });
402
+ var L = Qe({ timeout: s, mode: "enter", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.0, 0, 0.2, 1)" }) });
402
403
  d.style.webkitTransition = Le("-webkit-transform", L), d.style.transition = Le("transform", L), d.style.webkitTransform = "none", d.style.transform = "none";
403
404
  }, onExit: function(d) {
404
- var L = Xe({ timeout: s, mode: "exit", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.4, 0, 0.6, 1)" }) });
405
+ var L = Qe({ timeout: s, mode: "exit", style: O({}, i, { transitionTimingFunction: i?.transitionTimingFunction || "cubic-bezier(0.4, 0, 0.6, 1)" }) });
405
406
  d.style.webkitTransition = Le("-webkit-transform", L), d.style.transition = Le("transform", L), Ve(n, d), m && m(d);
406
407
  }, onExited: function(d) {
407
408
  d.style.webkitTransition = "", d.style.transition = "", k && k(d);
@@ -431,7 +432,7 @@ function ze(e) {
431
432
  return O({}, o, ((t = {})[n] = kt(a), t));
432
433
  }, {});
433
434
  }
434
- var cn = "notistack-CollapseWrapper", Io = function(e) {
435
+ var cn = "notistack-CollapseWrapper", Po = function(e) {
435
436
  return "notistack-MuiContent-" + e;
436
437
  }, qt = ze({ root: { height: 0 }, entered: { height: "auto" } }), it = "0px", un = ce(function(e, o) {
437
438
  var r = e.children, t = e.in, n = e.onExited, a = le(null), i = le(null), l = bt(o, i), s = function() {
@@ -442,36 +443,36 @@ var cn = "notistack-CollapseWrapper", Io = function(e) {
442
443
  }, onEntered: function(c) {
443
444
  c.style.height = "auto";
444
445
  }, onEntering: function(c) {
445
- var u = s(), m = Xe({ timeout: 175, mode: "enter" }), k = m.duration, y = m.easing;
446
+ var u = s(), m = Qe({ timeout: 175, mode: "enter" }), k = m.duration, y = m.easing;
446
447
  c.style.transitionDuration = typeof k == "string" ? k : k + "ms", c.style.height = u + "px", c.style.transitionTimingFunction = y || "";
447
448
  }, onExit: function(c) {
448
449
  c.style.height = s() + "px";
449
450
  }, onExited: n, onExiting: function(c) {
450
451
  an(c);
451
- var u = Xe({ timeout: 175, mode: "exit" }), m = u.duration, k = u.easing;
452
+ var u = Qe({ timeout: 175, mode: "exit" }), m = u.duration, k = u.easing;
452
453
  c.style.transitionDuration = typeof m == "string" ? m : m + "ms", c.style.height = it, c.style.transitionTimingFunction = k || "";
453
454
  }, nodeRef: i, timeout: 175 }, function(c, u) {
454
455
  return fe("div", Object.assign({ ref: l, className: ge(qt.root, c === "entered" && qt.entered), style: O({ pointerEvents: "all", overflow: "hidden", minHeight: it, transition: Le("height") }, c === "entered" && { overflow: "visible" }, {}, c === "exited" && !t && { visibility: "hidden" }) }, u), fe("div", { ref: a, className: cn, style: { display: "flex", width: "100%" } }, r));
455
456
  });
456
457
  });
457
458
  un.displayName = "Collapse";
458
- var _t = { right: "left", left: "right", bottom: "up", top: "down" }, Po = function(e) {
459
+ var _t = { right: "left", left: "right", bottom: "up", top: "down" }, Io = function(e) {
459
460
  return "anchorOrigin" + Et(e);
460
- }, Ho = function() {
461
+ }, jo = function() {
461
462
  };
462
- function Pe(e, o) {
463
+ function Ie(e, o) {
463
464
  return e.reduce(function(r, t) {
464
465
  return t == null ? r : function() {
465
466
  for (var n = arguments.length, a = new Array(n), i = 0; i < n; i++) a[i] = arguments[i];
466
467
  var l = [].concat(a);
467
468
  o && l.indexOf(o) === -1 && l.push(o), r.apply(this, l), t.apply(this, l);
468
469
  };
469
- }, Ho);
470
+ }, jo);
470
471
  }
471
- var jo = typeof window < "u" ? dt : K;
472
+ var Ho = typeof window < "u" ? dt : G;
472
473
  function Bt(e) {
473
474
  var o = le(e);
474
- return jo(function() {
475
+ return Ho(function() {
475
476
  o.current = e;
476
477
  }), ne(function() {
477
478
  return o.current.apply(void 0, arguments);
@@ -485,7 +486,7 @@ var st, dn = ce(function(e, o) {
485
486
  y(null, "timeout", s);
486
487
  }, h));
487
488
  });
488
- K(function() {
489
+ G(function() {
489
490
  return c && b(n), function() {
490
491
  k.current && clearTimeout(k.current);
491
492
  };
@@ -495,7 +496,7 @@ var st, dn = ce(function(e, o) {
495
496
  }, x = ne(function() {
496
497
  n != null && b(0.5 * n);
497
498
  }, [n, b]);
498
- return K(function() {
499
+ return G(function() {
499
500
  if (!i && c) return window.addEventListener("focus", x), window.addEventListener("blur", f), function() {
500
501
  window.removeEventListener("focus", x), window.removeEventListener("blur", f);
501
502
  };
@@ -506,25 +507,25 @@ var st, dn = ce(function(e, o) {
506
507
  } }), r);
507
508
  });
508
509
  dn.displayName = "Snackbar";
509
- var zo = ze({ root: (st = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, st[Qe] = { flexGrow: "initial", minWidth: "288px" }, st) }), St = ce(function(e, o) {
510
- var r = e.className, t = je(e, ["className"]);
510
+ var zo = ze({ root: (st = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, st[Xe] = { flexGrow: "initial", minWidth: "288px" }, st) }), St = ce(function(e, o) {
511
+ var r = e.className, t = He(e, ["className"]);
511
512
  return T.createElement("div", Object.assign({ ref: o, className: ge(zo.root, r) }, t));
512
513
  });
513
514
  St.displayName = "SnackbarContent";
514
515
  var Ae = ze({ 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" } }), Vt = "notistack-snackbar", pn = ce(function(e, o) {
515
516
  var r = e.id, t = e.message, n = e.action, a = e.iconVariant, i = e.variant, l = e.hideIconVariant, s = e.style, c = e.className, u = a[i], m = n;
516
- return typeof m == "function" && (m = m(r)), T.createElement(St, { ref: o, role: "alert", "aria-describedby": Vt, style: s, className: ge("notistack-MuiContent", Io(i), Ae.root, Ae[i], c, !l && u && Ae.lessPadding) }, T.createElement("div", { id: Vt, className: Ae.message }, l ? null : u, t), m && T.createElement("div", { className: Ae.action }, m));
517
+ return typeof m == "function" && (m = m(r)), T.createElement(St, { ref: o, role: "alert", "aria-describedby": Vt, style: s, className: ge("notistack-MuiContent", Po(i), Ae.root, Ae[i], c, !l && u && Ae.lessPadding) }, T.createElement("div", { id: Vt, className: Ae.message }, l ? null : u, t), m && T.createElement("div", { className: Ae.action }, m));
517
518
  });
518
519
  pn.displayName = "MaterialDesignContent";
519
- var Re, lt, Ue, Ge, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), Bo = function(e) {
520
- var o = le(), r = ae(!0), t = r[0], n = r[1], a = Pe([e.snack.onClose, e.onClose]), i = ne(function() {
520
+ var Re, lt, Ue, Ke, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), Bo = function(e) {
521
+ var o = le(), r = ae(!0), t = r[0], n = r[1], a = Ie([e.snack.onClose, e.onClose]), i = ne(function() {
521
522
  o.current = setTimeout(function() {
522
523
  n(function(_) {
523
524
  return !_;
524
525
  });
525
526
  }, 125);
526
527
  }, []);
527
- K(function() {
528
+ G(function() {
528
529
  return function() {
529
530
  o.current && clearTimeout(o.current);
530
531
  };
@@ -535,22 +536,22 @@ var Re, lt, Ue, Ge, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", pos
535
536
  var N = { containerRoot: !0, containerAnchorOriginTopCenter: !0, containerAnchorOriginBottomCenter: !0, containerAnchorOriginTopRight: !0, containerAnchorOriginBottomRight: !0, containerAnchorOriginTopLeft: !0, containerAnchorOriginBottomLeft: !0 };
536
537
  return Object.keys(_).filter(function(z) {
537
538
  return !N[z];
538
- }).reduce(function(z, G) {
539
- var X;
540
- return O({}, z, ((X = {})[G] = _[G], X));
539
+ }).reduce(function(z, K) {
540
+ var Q;
541
+ return O({}, z, ((Q = {})[K] = _[K], Q));
541
542
  }, {});
542
543
  }(c);
543
- }, [c]), y = s.open, b = s.SnackbarProps, f = s.TransitionComponent, x = s.TransitionProps, h = s.transitionDuration, d = s.disableWindowBlurListener, L = s.content, w = je(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), R = O({ direction: (l = w.anchorOrigin, l.horizontal !== "center" ? _t[l.horizontal] : _t[l.vertical]), timeout: h }, x), M = L;
544
+ }, [c]), y = s.open, b = s.SnackbarProps, f = s.TransitionComponent, x = s.TransitionProps, h = s.transitionDuration, d = s.disableWindowBlurListener, L = s.content, w = He(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), R = O({ direction: (l = w.anchorOrigin, l.horizontal !== "center" ? _t[l.horizontal] : _t[l.vertical]), timeout: h }, x), M = L;
544
545
  typeof M == "function" && (M = M(w.id, w.message));
545
- var H = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(_, N) {
546
+ var j = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(_, N) {
546
547
  var z;
547
- return O({}, _, ((z = {})[N] = Pe([e.snack[N], e[N]], w.id), z));
548
+ return O({}, _, ((z = {})[N] = Ie([e.snack[N], e[N]], w.id), z));
548
549
  }, {});
549
- return T.createElement(un, { in: t, onExited: H.onExited }, T.createElement(dn, { open: y, id: w.id, disableWindowBlurListener: d, autoHideDuration: w.autoHideDuration, className: ge(_o.wrappedRoot, k.root, k[Po(w.anchorOrigin)]), SnackbarProps: b, onClose: a }, T.createElement(f, Object.assign({}, R, { appear: !0, in: y, onExit: H.onExit, onExited: i, onEnter: H.onEnter, onEntered: Pe([H.onEntered, function() {
550
+ return T.createElement(un, { in: t, onExited: j.onExited }, T.createElement(dn, { open: y, id: w.id, disableWindowBlurListener: d, autoHideDuration: w.autoHideDuration, className: ge(_o.wrappedRoot, k.root, k[Io(w.anchorOrigin)]), SnackbarProps: b, onClose: a }, T.createElement(f, Object.assign({}, R, { appear: !0, in: y, onExit: j.onExit, onExited: i, onEnter: j.onEnter, onEntered: Ie([j.onEntered, function() {
550
551
  e.snack.requestClose && a(null, "instructed", e.snack.id);
551
552
  }], w.id) }), M || T.createElement(m, Object.assign({}, w)))));
552
- }, Ie = 20, ut = 6, Vo = 2, $t = "." + cn, Ke = ze({ root: (Re = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Le(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Re[$t] = { padding: ut + "px 0px", transition: "padding 300ms ease 0ms" }, Re.maxWidth = "calc(100% - " + 2 * Ie + "px)", Re[at] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Re), rootDense: (lt = {}, lt[$t] = { padding: Vo + "px 0px" }, lt), top: { top: Ie - ut + "px", flexDirection: "column" }, bottom: { bottom: Ie - ut + "px", flexDirection: "column-reverse" }, left: (Ue = { left: Ie + "px" }, Ue[Qe] = { alignItems: "flex-start" }, Ue[at] = { left: "16px" }, Ue), right: (Ge = { right: Ie + "px" }, Ge[Qe] = { alignItems: "flex-end" }, Ge[at] = { right: "16px" }, Ge), center: (ct = { left: "50%", transform: "translateX(-50%)" }, ct[Qe] = { alignItems: "center" }, ct) }), $o = Me(function(e) {
553
- var o = e.classes, r = o === void 0 ? {} : o, t = e.anchorOrigin, n = e.dense, a = e.children, i = ge("notistack-SnackbarContainer", Ke[t.vertical], Ke[t.horizontal], Ke.root, r.containerRoot, r["containerAnchorOrigin" + Et(t)], n && Ke.rootDense);
553
+ }, Pe = 20, ut = 6, Vo = 2, $t = "." + cn, Ge = ze({ root: (Re = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: Le(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Re[$t] = { padding: ut + "px 0px", transition: "padding 300ms ease 0ms" }, Re.maxWidth = "calc(100% - " + 2 * Pe + "px)", Re[at] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Re), rootDense: (lt = {}, lt[$t] = { padding: Vo + "px 0px" }, lt), top: { top: Pe - ut + "px", flexDirection: "column" }, bottom: { bottom: Pe - ut + "px", flexDirection: "column-reverse" }, left: (Ue = { left: Pe + "px" }, Ue[Xe] = { alignItems: "flex-start" }, Ue[at] = { left: "16px" }, Ue), right: (Ke = { right: Pe + "px" }, Ke[Xe] = { alignItems: "flex-end" }, Ke[at] = { right: "16px" }, Ke), center: (ct = { left: "50%", transform: "translateX(-50%)" }, ct[Xe] = { alignItems: "center" }, ct) }), $o = Me(function(e) {
554
+ var o = e.classes, r = o === void 0 ? {} : o, t = e.anchorOrigin, n = e.dense, a = e.children, i = ge("notistack-SnackbarContainer", Ge[t.vertical], Ge[t.horizontal], Ge.root, r.containerRoot, r["containerAnchorOrigin" + Et(t)], n && Ge.rootDense);
554
555
  return T.createElement("div", { className: i }, a);
555
556
  }), Ut = function(e) {
556
557
  return !(typeof e == "string" || wn(e));
@@ -559,16 +560,16 @@ var Re, lt, Ue, Ge, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", pos
559
560
  var t;
560
561
  return (t = e.call(this, r) || this).enqueueSnackbar = function(n, a) {
561
562
  if (a === void 0 && (a = {}), n == null) throw new Error("enqueueSnackbar called with invalid argument");
562
- var i = Ut(n) ? n : a, l = Ut(n) ? n.message : n, s = i.key, c = i.preventDuplicate, u = je(i, ["key", "preventDuplicate"]), m = _e(s), k = m ? s : (/* @__PURE__ */ new Date()).getTime() + Math.random(), y = /* @__PURE__ */ function(f, x) {
563
+ var i = Ut(n) ? n : a, l = Ut(n) ? n.message : n, s = i.key, c = i.preventDuplicate, u = He(i, ["key", "preventDuplicate"]), m = _e(s), k = m ? s : (/* @__PURE__ */ new Date()).getTime() + Math.random(), y = /* @__PURE__ */ function(f, x) {
563
564
  return function(h, d) {
564
- return d === void 0 && (d = !1), d ? O({}, be[h], {}, x[h], {}, f[h]) : h === "autoHideDuration" ? (M = f.autoHideDuration, H = x.autoHideDuration, (_ = function(N) {
565
+ return d === void 0 && (d = !1), d ? O({}, be[h], {}, x[h], {}, f[h]) : h === "autoHideDuration" ? (M = f.autoHideDuration, j = x.autoHideDuration, (_ = function(N) {
565
566
  return typeof N == "number" || N === null;
566
- })(M) ? M : _(H) ? H : be.autoHideDuration) : h === "transitionDuration" ? (L = f.transitionDuration, w = x.transitionDuration, (R = function(N, z) {
567
- return z.some(function(G) {
568
- return typeof N === G;
567
+ })(M) ? M : _(j) ? j : be.autoHideDuration) : h === "transitionDuration" ? (L = f.transitionDuration, w = x.transitionDuration, (R = function(N, z) {
568
+ return z.some(function(K) {
569
+ return typeof N === K;
569
570
  });
570
571
  })(L, ["string", "number"]) ? L : R(L, ["object"]) ? O({}, be.transitionDuration, {}, R(w, ["object"]) && w, {}, L) : R(w, ["string", "number"]) ? w : R(w, ["object"]) ? O({}, be.transitionDuration, {}, w) : be.transitionDuration) : f[h] || x[h] || be[h];
571
- var L, w, R, M, H, _;
572
+ var L, w, R, M, j, _;
572
573
  };
573
574
  }(u, t.props), b = O({ id: k }, u, { message: l, open: !0, entered: !1, requestClose: !1, persist: y("persist"), action: y("action"), content: y("content"), variant: y("variant"), anchorOrigin: y("anchorOrigin"), disableWindowBlurListener: y("disableWindowBlurListener"), autoHideDuration: y("autoHideDuration"), hideIconVariant: y("hideIconVariant"), TransitionComponent: y("TransitionComponent"), transitionDuration: y("transitionDuration"), TransitionProps: y("TransitionProps", !0), iconVariant: y("iconVariant", !0), style: y("style", !0), SnackbarProps: y("SnackbarProps", !0), className: ge(t.props.className, u.className) });
574
575
  return b.persist && (b.autoHideDuration = void 0), t.setState(function(f) {
@@ -637,57 +638,57 @@ var Re, lt, Ue, Ge, ct, qo = Me(pn), _o = ze({ wrappedRoot: { width: "100%", pos
637
638
  }, {}), y = Object.keys(k).map(function(b) {
638
639
  var f = k[b], x = f[0];
639
640
  return T.createElement($o, { key: b, dense: s, anchorOrigin: x.anchorOrigin, classes: m }, f.map(function(h) {
640
- return T.createElement(Bo, { key: h.id, snack: h, classes: m, Component: u[h.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Pe([r.handleExitedSnack, r.props.onExited], h.id), onEntered: Pe([r.handleEnteredSnack, r.props.onEntered], h.id) });
641
+ return T.createElement(Bo, { key: h.id, snack: h, classes: m, Component: u[h.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Ie([r.handleExitedSnack, r.props.onExited], h.id), onEntered: Ie([r.handleEnteredSnack, r.props.onEntered], h.id) });
641
642
  }));
642
643
  });
643
- return T.createElement(rn.Provider, { value: t }, i, a ? fo(y, a) : y);
644
+ return T.createElement(rn.Provider, { value: t }, i, a ? mo(y, a) : y);
644
645
  }, nn(o, [{ key: "maxSnack", get: function() {
645
646
  return this.props.maxSnack || be.maxSnack;
646
647
  } }]), o;
647
- }(Kt), mn = function() {
648
+ }(Gt), mn = function() {
648
649
  return yn(rn);
649
650
  };
650
651
  const pe = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, hn = ce((e, o) => {
651
- const { id: r, message: t, iconVariant: n, error: a, hideIconVariant: i, ...l } = e, { closeSnackbar: s } = mn(), c = Vn(), [u, m] = ae(!1), k = ne(() => {
652
+ const { id: r, message: t, iconVariant: n, error: a, hideIconVariant: i, ...l } = e, { closeSnackbar: s } = mn(), c = Bn(), [u, m] = ae(!1), k = ne(() => {
652
653
  m((f) => !f);
653
654
  }, []), y = ne(() => {
654
655
  s(r);
655
656
  }, [r, s]), b = a?.message || String(t);
656
- return g(St, { ref: o, className: mt(pe.root, "error-snackbar"), children: se(vo, { className: pe.card, style: { backgroundColor: c.palette.error.dark, border: `1px solid ${c.palette.error.dark}` }, children: [se(So, { className: pe.actionRoot, children: [i ? null : n?.error, g($n, { variant: "body2", component: "div", className: pe.typography, style: { color: c.palette.text.primary }, children: b }), g("div", { style: { flex: "1 1 auto" } }), se("div", { className: pe.icons, children: [a ? g(ht, { "aria-label": "Show more", size: "small", className: mt(pe.expand, { [pe.expandOpen]: u }), style: { color: c.palette.action.active }, onClick: k, children: g(Un, {}) }) : null, g(ht, { size: "small", className: pe.expand, style: { color: c.palette.action.active }, onClick: y, children: g(Gn, { fontSize: "small" }) })] })] }), a ? g(ft, { in: u, timeout: "auto", unmountOnExit: !0, children: g("div", { className: pe.stackTraceContainer, style: { backgroundColor: c.palette.error.light, borderTop: `1px solid ${c.palette.error.main}` }, children: g(Kn, { error: a, hideLineNumbers: !0 }) }) }) : null] }) });
657
+ return g(St, { ref: o, className: mt(pe.root, "error-snackbar"), children: se(vo, { className: pe.card, style: { backgroundColor: c.palette.error.dark, border: `1px solid ${c.palette.error.dark}` }, children: [se(So, { className: pe.actionRoot, children: [i ? null : n?.error, g(Vn, { variant: "body2", component: "div", className: pe.typography, style: { color: c.palette.text.primary }, children: b }), g("div", { style: { flex: "1 1 auto" } }), se("div", { className: pe.icons, children: [a ? g(ht, { "aria-label": "Show more", size: "small", className: mt(pe.expand, { [pe.expandOpen]: u }), style: { color: c.palette.action.active }, onClick: k, children: g($n, {}) }) : null, g(ht, { size: "small", className: pe.expand, style: { color: c.palette.action.active }, onClick: y, children: g(Un, { fontSize: "small" }) })] })] }), a ? g(ft, { in: u, timeout: "auto", unmountOnExit: !0, children: g("div", { className: pe.stackTraceContainer, style: { backgroundColor: c.palette.error.light, borderTop: `1px solid ${c.palette.error.main}` }, children: g(Kn, { error: a, hideLineNumbers: !0 }) }) }) : null] }) });
657
658
  });
658
659
  hn.displayName = "ToastError";
659
660
  const fn = Me(ce((e, o) => {
660
661
  const { commands: r, commandHook: t, scope: n = "workbook", disabled: a = !1, ...i } = e, l = ie((c) => {
661
- const u = { variant: ao.Menuitem, parentFloat: c.floatReference, commandHook: t, scope: n, disabled: a }, m = se(Gt, { children: [g(ot, { ...u, command: r.getCommand("newWorkbook"), icon: Fe(g(io, {})) }), g(so, { orientation: "horizontal" }), g(ot, { ...u, command: r.getCommand("openWorkbook"), icon: Fe(g(lo, {})) }), g(Wt, { ...u, commands: r, quickCommand: "saveWorkbook", icon: Fe(g(po, {})), createPopupPanel: (k) => {
662
+ const u = { variant: ro.Menuitem, parentFloat: c.floatReference, commandHook: t, scope: n, disabled: a }, m = se(Kt, { children: [g(nt, { ...u, command: r.getCommand("newWorkbook"), icon: Fe(g(ao, {})) }), g(io, { orientation: "horizontal" }), g(nt, { ...u, command: r.getCommand("openWorkbook"), icon: Fe(g(so, {})) }), g(Ot, { ...u, commands: r, quickCommand: "saveWorkbook", icon: Fe(g(uo, {})), createPopupPanel: (k) => {
662
663
  const y = { ...u, parentFloat: k.floatReference, scope: "saveWorkbook" }, b = [];
663
664
  return ye.getWriteFormats().forEach((f) => {
664
665
  if (f.isDefault) return;
665
666
  let x = null;
666
- f.key === "CSV" ? x = Fe(g(co, {})) : f.key === "Excel" && (x = Fe(g(uo, {})));
667
+ f.key === "CSV" ? x = Fe(g(lo, {})) : f.key === "Excel" && (x = Fe(g(co, {})));
667
668
  const h = r.getCommand(`saveWorkbookAs${f.key}`);
668
- h ? b.push(fe(ot, { ...y, key: f.key, command: h, icon: x })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${f.key}'`);
669
- }), Ft({ ...k, children: b, onClick: () => {
669
+ h ? b.push(fe(nt, { ...y, key: f.key, command: h, icon: x })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${f.key}'`);
670
+ }), Wt({ ...k, children: b, onClick: () => {
670
671
  k.closeFloatAll();
671
672
  } });
672
673
  } })] });
673
- return Ft({ ...c, children: m, onClick: (k) => {
674
+ return Wt({ ...c, children: m, onClick: (k) => {
674
675
  k.isDefaultPrevented || c.closeFloatAll();
675
676
  } });
676
677
  }, [a, r, t, n]), s = "File";
677
- return g(Wt, { commands: r, disabled: a, commandHook: t, scope: n, label: s, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (c) => `calc(1.25rem + ${c.spacing(2)}px)` } }, ...i, createPopupPanel: l, icon: g(mo, { className: "label", icon: null, label: s }) });
678
+ return g(Ot, { commands: r, disabled: a, commandHook: t, scope: n, label: s, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (c) => `calc(1.25rem + ${c.spacing(2)}px)` } }, ...i, createPopupPanel: l, icon: g(po, { className: "label", icon: null, label: s }) });
678
679
  }));
679
680
  fn.displayName = "StandaloneFileCommandButton";
680
- const Go = g(oo, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: g(xe, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: g(ro, { onClick: () => {
681
+ const Ko = g(no, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: g(xe, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: g(oo, { onClick: () => {
681
682
  window?.open("https://www.sheetxl.com", "_blank");
682
683
  }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), gn = Me(ce((e, o) => {
683
- const { commands: r, workbook: t, logo: n = Go, mainElement: a, showFileMenu: i = !0, showAppearanceMenu: l = !0, ...s } = e, { reference: c } = zn(), [u, { width: m }] = qn(), k = m < 530, y = i ? g(fn, { commands: r, commandHook: { beforeExecute() {
684
+ const { commands: r, workbook: t, logo: n = Ko, mainElement: a, showFileMenu: i = !0, showAppearanceMenu: l = !0, ...s } = e, { reference: c } = Hn(), [u, { width: m }] = zn(), k = m < 530, y = i ? g(fn, { commands: r, commandHook: { beforeExecute() {
684
685
  c?.closeAll();
685
686
  }, onError(h, d, L) {
686
- } } }) : null, b = l ? g(_n, { commands: r, commandHook: { beforeExecute() {
687
+ } } }) : null, b = l ? g(qn, { commands: r, commandHook: { beforeExecute() {
687
688
  c?.closeAll();
688
689
  }, onError(h, d, L) {
689
690
  } } }) : null, f = te(() => ({ paddingLeft: (h) => h.spacing(1), paddingRight: (h) => h.spacing(1) }), []), x = le(null);
690
- return g(xe, { ref: Yt([x, u, o]), ...s, children: Bn({ commands: r, renderCompact: k, workbook: t, selectWrapper: (h) => se(xe, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (d) => d.spacing(1), paddingLeft: (d) => d.spacing(1), paddingRight: (d) => d.spacing(1) }, children: [se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (d) => d.spacing(0.5) }, children: [n, se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (d) => d.spacing(0.25) }, children: [y, h] })] }), g(xe, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: a }), g(xe, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: k && !b ? "0 0 auto" : "1 1 100%" }, children: b })] }), selectProps: f, toolbarsProps: { Home: { sx: {} } } }) });
691
+ return g(xe, { ref: Jt([x, u, o]), ...s, children: _n({ commands: r, renderCompact: k, workbook: t, selectWrapper: (h) => se(xe, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (d) => d.spacing(1), paddingLeft: (d) => d.spacing(1), paddingRight: (d) => d.spacing(1) }, children: [se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (d) => d.spacing(0.5) }, children: [n, se(xe, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (d) => d.spacing(0.25) }, children: [y, h] })] }), g(xe, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: a }), g(xe, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: k && !b ? "0 0 auto" : "1 1 100%" }, children: b })] }), selectProps: f, toolbarsProps: { Home: { sx: {} } } }) });
691
692
  }));
692
693
  gn.displayName = "StandaloneWorkbookToolbar";
693
694
  const kn = Me(ce((e, o) => {
@@ -697,64 +698,64 @@ const kn = Me(ce((e, o) => {
697
698
  h((A) => ({ ...A, isMounted: !0 }));
698
699
  }, []), L = ne(() => {
699
700
  h((A) => ({ ...A, isMounted: !1 }));
700
- }, []), w = Zn(), R = Qn(), M = Xn(), H = le(/* @__PURE__ */ new Set()), _ = te(() => {
701
+ }, []), w = Gn(), R = Zn(), M = Xn(), j = le(/* @__PURE__ */ new Set()), _ = te(() => {
701
702
  const A = (E, S) => {
702
703
  if (S?.onceKey) {
703
- if (H.current.has(S.onceKey)) return;
704
- const D = new Set(H.current);
705
- D.add(S.onceKey), H.current = D;
704
+ if (j.current.has(S.onceKey)) return;
705
+ const D = new Set(j.current);
706
+ D.add(S.onceKey), j.current = D;
706
707
  }
707
- const P = { variant: S?.type ?? qe.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: S?.preventDuplicate, persist: S?.persist ?? S?.type === qe.Error, action: (D) => g(ht, { onClick: () => f(D), children: g(Oo, {}) }) };
708
- S?.enqueueProps && Object.assign(P, S.enqueueProps), E || console.log("message is 'null'", S), b(E ?? "Alert", P);
708
+ const I = { variant: S?.type ?? qe.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: S?.preventDuplicate, persist: S?.persist ?? S?.type === qe.Error, action: (D) => g(ht, { onClick: () => f(D), children: g(Oo, {}) }) };
709
+ S?.enqueueProps && Object.assign(I, S.enqueueProps), E || console.log("message is 'null'", S), b(E ?? "Alert", I);
709
710
  };
710
711
  return { showMessage: A, showBusy: (E, S) => {
711
- let P = null;
712
+ let I = null;
712
713
  const D = new Promise((B) => {
713
- P = B;
714
+ I = B;
714
715
  });
715
716
  return h((B) => {
716
717
  const q = new Map(B.starting);
717
- return q.set(D, P), { ...B, label: E, starting: q };
718
+ return q.set(D, I), { ...B, label: E, starting: q };
718
719
  }), D;
719
- }, showWindow: (E, S, P) => {
720
+ }, showWindow: (E, S, I) => {
720
721
  const D = { ...S, onKeyDown: (B) => {
721
722
  u?.dispatchToFocusedCommand(B), B.isDefaultPrevented() || B.isPropagationStopped() || S?.onKeyDown?.(B);
722
723
  } };
723
- return w(E, { sort: () => import("./nT3k8GnD4H3I293i.mjs"), numberFormat: () => import("./CZ9K3g_56s3hfJO0.mjs"), hyperlink: () => import("./Dlg7LT4wsJCPSTCT.mjs"), comments: () => import("./DTHujOSrUxuBuwud.mjs"), find: () => import("./BZD8sqVzxMPTV1eH.mjs"), tableDetails: () => import("./CaLAEGMKeQ3INVEV.mjs"), tableNew: () => import("./BskzQvqHyjuVccIH.mjs"), namedDetails: () => import("./C7cRxJLNfGjCT_Hk.mjs") }[E], D, P);
724
+ return w(E, { sort: () => import("./CntwHkPpskE88Ixu.mjs"), numberFormat: () => import("./CLTP12OHGQ2k4_Kt.mjs"), hyperlink: () => import("./BsDYj6xix3mlXry2.mjs"), comments: () => import("./ChMaIhqaEhF3SLLt.mjs"), find: () => import("./DFa_tXqv1VN1OZdv.mjs"), tableDetails: () => import("./BTQ-TGJnw7w1Y0CX.mjs"), tableNew: () => import("./wziCLl5xvHu6Guu_.mjs"), namedDetails: () => import("./BLsIMzjofsOnRFrU.mjs") }[E], D, I);
724
725
  }, showOptions: R, showInputOptions: M, showError: (E) => {
725
- let S, P = qe.Error, D = "Unknown Error";
726
- typeof E == "string" ? D = E : E instanceof Error && (S = E, E.message && (D = E.message)), E instanceof ho && (P = qe.Info), A(D, { type: P, enqueueProps: { error: S } });
726
+ let S, I = qe.Error, D = "Unknown Error";
727
+ typeof E == "string" ? D = E : E instanceof Error && (S = E, E.message && (D = E.message)), E instanceof fo && (I = qe.Info), A(D, { type: I, enqueueProps: { error: S } });
727
728
  } };
728
729
  }, []), N = ne(() => {
729
730
  }, []), z = ((A) => {
730
- const { workbook: E, setWorkbook: S, importExportDisabled: P, workbookTitle: D = "export", setWorkbookTitle: B, notifier: q, requestWorkbookTitle: J, themeModeOptions: j, undoManager: C, commands: W, onExecute: V } = A, re = ie(j?.onForceModeChange, [j?.onForceModeChange]), me = ie(j?.onForceLightGridChange, [j?.onForceLightGridChange]), ue = ie(j?.onForceLightImagesChange, [j?.onForceLightImagesChange]), Ye = ie(async (F = null, Q = null) => {
731
+ const { workbook: E, setWorkbook: S, importExportDisabled: I, workbookTitle: D = "export", setWorkbookTitle: B, notifier: q, requestWorkbookTitle: Y, themeModeOptions: H, undoManager: C, commands: W, onExecute: V } = A, re = ie(H?.onForceModeChange, [H?.onForceModeChange]), me = ie(H?.onForceLightGridChange, [H?.onForceLightGridChange]), ue = ie(H?.onForceLightImagesChange, [H?.onForceLightImagesChange]), Je = ie(async (F = null, X = null) => {
731
732
  const p = [];
732
- let v, $ = null, Y = null;
733
- if (typeof F == "string" ? Y = F : $ = F, v = $ ? F : await Jn.openFileDialog(Y ?? ye.getAllReadFormatTypeAsString().join(",")), !v) return null;
734
- const he = { source: v, constructorOptions: Q, onWarning: (tt) => {
733
+ let v, $ = null, J = null;
734
+ if (typeof F == "string" ? J = F : $ = F, v = $ ? F : await Qn.openFileDialog(J ?? ye.getAllReadFormatTypeAsString().join(",")), !v) return null;
735
+ const he = { source: v, constructorOptions: X, onWarning: (tt) => {
735
736
  p.push(tt);
736
737
  } }, Oe = await ye.read(he, q);
737
738
  return p.length > 0 && (q?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
738
739
  ` + p.join(`
739
740
  `))), Oe;
740
- }, [V, q, E]), De = ie(async (F, Q, p) => {
741
- if (!Q && J) {
742
- const v = await J("Enter Workbook name to " + (p.isDefault ? "Save." : `Export as ${p.description}.`));
741
+ }, [V, q, E]), De = ie(async (F, X, p) => {
742
+ if (!X && Y) {
743
+ const v = await Y("Enter Workbook name to " + (p.isDefault ? "Save." : `Export as ${p.description}.`));
743
744
  return v !== null && ye.writeFile(v, F, { formatType: p.key });
744
745
  }
745
- return ye.writeFile(Q, F, { formatType: p.key });
746
- }, [q, E, J]), U = ne(() => ({ contains: (F) => !0, focus() {
746
+ return ye.writeFile(X, F, { formatType: p.key });
747
+ }, [q, E, Y]), U = ne(() => ({ contains: (F) => !0, focus() {
747
748
  } }), []), ke = te(() => {
748
749
  const F = [];
749
- P || (ye.getWriteFormats().forEach((p) => {
750
+ I || (ye.getWriteFormats().forEach((p) => {
750
751
  const v = p.isDefault, $ = { label: v ? "Save Workbook" : `Save Workbook as ${p.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${p.description}` }, tags: p.tags, description: `Save the workbook to the desktop${v ? "" : ` as ${p.description}`}.` };
751
752
  v && ($.shortcut = { key: "S", modifiers: [We.Ctrl] }, F.push(new ee("saveWorkbookAs", U, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [We.Shift, We.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
752
753
  De(E, null, p).catch((he) => {
753
754
  q?.showError?.(he);
754
755
  });
755
756
  })));
756
- const Y = v ? "saveWorkbook" : `saveWorkbookAs${p.key}`;
757
- F.push(new ee(Y, U, $, (he) => {
757
+ const J = v ? "saveWorkbook" : `saveWorkbookAs${p.key}`;
758
+ F.push(new ee(J, U, $, (he) => {
758
759
  De(E, he ?? D, p).catch((Oe) => {
759
760
  q?.showError?.(Oe);
760
761
  });
@@ -762,16 +763,16 @@ const kn = Me(ce((e, o) => {
762
763
  }), F.push(new ee("openWorkbook", U, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [We.Ctrl] } }, async (p = null) => {
763
764
  const v = { date1904: E.isDate1904(), ...E.options };
764
765
  try {
765
- const $ = await Ye(p, v);
766
+ const $ = await Je(p, v);
766
767
  if (!$) return;
767
- const Y = $.title, he = $.workbook, Oe = he.getSelectedSheet();
768
+ const J = $.title, he = $.workbook, Oe = he.getSelectedSheet();
768
769
  if ($.formatType.mimeType === "text/csv") {
769
- const tt = E.findValidSheetName(Y);
770
+ const tt = E.findValidSheetName(J);
770
771
  await E.doBatch(async () => {
771
772
  const Lt = Oe.getUsedRange();
772
773
  Lt ? await E.getSheets().add({ name: tt, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(Lt) : q?.showMessage("The file appears to be blank.");
773
- }, `Import CSV '${Y}'`);
774
- } else E?.close(), B?.(Y), S(he);
774
+ }, `Import CSV '${J}'`);
775
+ } else E?.close(), B?.(J), S(he);
775
776
  } catch ($) {
776
777
  q?.showError?.($);
777
778
  }
@@ -783,9 +784,9 @@ const kn = Me(ce((e, o) => {
783
784
  }
784
785
  p && console.log("openWorkbookFromUrl", p);
785
786
  })));
786
- let Q = [];
787
- return j && (Q = [new ee("themeMode", U, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", U, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("forceLightGrid", U, { label: "Force Light Grid", description: "Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("forceLightImages", U, { label: "Force Light Images", description: "Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...F, ...Q, new Ot("help", U, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
788
- }), new Ot("showKeyboardShortcuts", U, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [We.Ctrl] } }, () => {
787
+ let X = [];
788
+ return H && (X = [new ee("themeMode", U, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", U, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("forceLightGrid", U, { label: "Force Light Grid", description: "Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("forceLightImages", U, { label: "Force Light Images", description: "Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...F, ...X, new Tt("help", U, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
789
+ }), new Tt("showKeyboardShortcuts", U, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [We.Ctrl] } }, () => {
789
790
  }), new ee("gotoUrlGithub", U, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
790
791
  window?.open("https://github.com/sheetxl/sheetxl");
791
792
  }), new ee("gotoUrlDiscord", U, { label: "Discord", description: "Join our community on discord." }, () => {
@@ -795,145 +796,145 @@ const kn = Me(ce((e, o) => {
795
796
  }), new ee("gotoUrlIssue", U, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
796
797
  window?.open("https://github.com/sheetxl/sheetxl/issues");
797
798
  })];
798
- }, [E, D, q, P, j, W, C]), Z = te(() => {
799
+ }, [E, D, q, I, H, W, C]), Z = te(() => {
799
800
  let F = null;
800
- return F = W ? W.createChildGroup(U, "standaloneWorkbook", !1) : new Xt(U, "standaloneWorkbook"), F.addCommands(ke, !0), F;
801
+ return F = W ? W.createChildGroup(U, "standaloneWorkbook", !1) : new Qt(U, "standaloneWorkbook"), F.addCommands(ke, !0), F;
801
802
  }, [W, ke]);
802
803
  Yn({ manager: C, commands: Z, notifier: q });
803
- const { themeMode: Te } = Qt();
804
- K(() => {
805
- if (!j || !Z) return;
806
- const F = j.forceMode === "dark" || !j.forceMode && Te === "dark";
807
- Z.getCommand("themeMode").update({ state: j.forceMode ?? null, label: F ? "Dark Mode" : "Light Mode", scopedLabels: { appearance: F ? "Dark Mode" : "Light Mode" } }).updateCallback(() => {
804
+ const { themeMode: Te } = Xt();
805
+ G(() => {
806
+ if (!H || !Z) return;
807
+ const F = H.forceMode === "dark" || !H.forceMode && Te === "dark";
808
+ Z.getCommand("themeMode").update({ state: H.forceMode ?? null, label: F ? "Dark Mode" : "Light Mode", scopedLabels: { appearance: F ? "Dark Mode" : "Light Mode" } }).updateCallback(() => {
808
809
  re(F ? pt.Light : pt.Dark);
809
- }), Z.getCommand("defaultThemeMode").update({ state: !j.forceMode }).updateCallback(() => {
810
+ }), Z.getCommand("defaultThemeMode").update({ state: !H.forceMode }).updateCallback(() => {
810
811
  re(null);
811
- }), Z.getCommand("forceLightGrid").update({ state: j.forceLightGrid }).updateCallback(() => {
812
- me(!j.forceLightGrid);
813
- }), Z.getCommand("forceLightImages").update({ state: j.forceLightImages }).updateCallback(() => {
814
- ue(!j.forceLightImages);
812
+ }), Z.getCommand("forceLightGrid").update({ state: H.forceLightGrid }).updateCallback(() => {
813
+ me(!H.forceLightGrid);
814
+ }), Z.getCommand("forceLightImages").update({ state: H.forceLightImages }).updateCallback(() => {
815
+ ue(!H.forceLightImages);
815
816
  });
816
- }, [Te, j, ke]);
817
- const { showModal: et } = eo();
818
- return K(() => {
819
- const F = () => new Promise((Q, p) => {
820
- const v = T.lazy(() => import("./BNixyL5UPlHciWwi.mjs")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
817
+ }, [Te, H, ke]);
818
+ const { showModal: et } = Jn();
819
+ return G(() => {
820
+ const F = () => new Promise((X, p) => {
821
+ const v = T.lazy(() => import("./BdLAPrmXIfjGFhhA.mjs")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
821
822
  $.hide();
822
823
  }, TransitionProps: { onExited: () => {
823
- Q(!0);
824
+ X(!0);
824
825
  } } });
825
826
  });
826
827
  Z.getCommand("showKeyboardShortcuts").updateCallback(() => F()), Z.getCommand("help").updateCallback(() => F());
827
828
  }, [ke, Z]), Z;
828
829
  })({ workbook: r, setWorkbook: t, importExportDisabled: m, workbookTitle: a, setWorkbookTitle: i, commands: u, requestWorkbookTitle: (A) => new Promise((E) => {
829
- n.current ? n.current.requestWorkbookTitle((S, P) => {
830
+ n.current ? n.current.requestWorkbookTitle((S, I) => {
830
831
  E(S);
831
832
  }, { selectAll: !0, requestReason: A }) : E(l);
832
833
  }), themeModeOptions: k, undoManager: c, notifier: _, onExecute: N });
833
- K(() => {
834
+ G(() => {
834
835
  x.starting.size <= 0 || !x.isMounted || h((A) => {
835
836
  const E = new Map(A.running);
836
- return A.starting.forEach((S, P) => {
837
+ return A.starting.forEach((S, I) => {
837
838
  const D = () => {
838
839
  h((B) => {
839
840
  const q = new Map(B.running);
840
- return q.delete(P), { ...B, running: q };
841
+ return q.delete(I), { ...B, running: q };
841
842
  });
842
843
  };
843
- E.set(P, D), S(D);
844
+ E.set(I, D), S(D);
844
845
  }), { ...A, starting: /* @__PURE__ */ new Map(), running: E };
845
846
  });
846
847
  }, [x]);
847
- const [G, X] = ae(null);
848
- K(() => {
849
- x.starting.size !== 0 || x.running.size !== 0 ? X(g(Jt, { icon: g(to, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: x.label, onMount: d, onUnmount: L, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : X(null);
848
+ const [K, Q] = ae(null);
849
+ G(() => {
850
+ x.starting.size !== 0 || x.running.size !== 0 ? Q(g(Yt, { icon: g(eo, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: x.label, onMount: d, onUnmount: L, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : Q(null);
850
851
  }, [x.starting, x.running]);
851
- const I = te(() => g(no, { commands: z, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [z]), oe = { notifier: _, commands: z };
852
- return r && (oe.statusBarProps = { childrenEnd: I }), se(Gt, { children: [G, s ? T.cloneElement(s, oe) : null] });
852
+ const P = te(() => g(to, { commands: z, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [z]), oe = { notifier: _, commands: z };
853
+ return r && (oe.statusBarProps = { childrenEnd: P }), se(Kt, { children: [K, s ? T.cloneElement(s, oe) : null] });
853
854
  }));
854
855
  kn.displayName = "SnackbarAndCommandsWrapper";
855
856
  const bn = Me(ce((e, o) => {
856
- const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: l, errorPanel: s = Wn, onKeyDown: c, workbook: u, createWorkbookOptions: m, onWorkbookChange: k, logo: y, importExportDisabled: b = !1, themeModeOptions: f, autoFocus: x = !1, commands: h, title: d, onTitleChange: L, titleProps: w, ...R } = e, M = le(null), H = ie(k, [k]), _ = ie(L ?? w?.onTitleChange, [L ?? w?.onTitleChange]), N = w?.placeHolder ?? "Untitled", z = f?.forceMode, { themeMode: G, source: X } = Qt({ mode: z }), I = te(() => ({ ...f, light: Dt(!1, nt.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Dt(!0, nt.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), oe = G === pt.Dark, [A, E] = ae(null);
857
- K(() => {
858
- E(l ?? new Fn());
857
+ const { className: r, sx: t, style: n, onElementLoad: a, onError: i, undoManager: l, errorPanel: s = Wn, onKeyDown: c, workbook: u, createWorkbookOptions: m, onWorkbookChange: k, logo: y, importExportDisabled: b = !1, themeModeOptions: f, autoFocus: x = !1, commands: h, title: d, onTitleChange: L, titleProps: w, ...R } = e, M = le(null), j = ie(k, [k]), _ = ie(L ?? w?.onTitleChange, [L ?? w?.onTitleChange]), N = w?.placeHolder ?? "Untitled", z = f?.forceMode, { themeMode: K, source: Q } = Xt({ mode: z }), P = te(() => ({ ...f, light: Dt(!1, ot.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Dt(!0, ot.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), oe = K === pt.Dark, [A, E] = ae(null);
858
+ G(() => {
859
+ E(l ?? new ho());
859
860
  }, [l]);
860
- const [S, P] = ae(null), [D, B] = ae(null), q = Nn();
861
+ const [S, I] = ae(null), [D, B] = ae(null), q = Fn();
861
862
  dt(() => {
862
- if (!u || Object.keys(u).length === 0 && !nt.isPromiseLike(u)) {
863
+ if (!u || Object.keys(u).length === 0 && !ot.isPromiseLike(u)) {
863
864
  const p = { theme: q.getDefaultTheme(), ...m };
864
- B(new Tt(p));
865
+ B(new Ft(p));
865
866
  } else B(u);
866
867
  }, [u]), dt(() => {
867
868
  if (D) {
868
- if (D instanceof Tt) return P({ workbook: D }), void (u !== D && H?.(D));
869
+ if (D instanceof Ft) return I({ workbook: D }), void (u !== D && j?.(D));
869
870
  (async () => {
870
871
  try {
871
872
  let p, v = await Promise.resolve(D);
872
- v && v.source && (v = await ye.read(v)), v.workbook ? (V(v.title), p = v.workbook) : p = v, H?.(p), P({ workbook: p });
873
+ v && v.source && (v = await ye.read(v)), v.workbook ? (V(v.title), p = v.workbook) : p = v, j?.(p), I({ workbook: p });
873
874
  } catch (p) {
874
- H?.(null), P({ error: p });
875
+ j?.(null), I({ error: p });
875
876
  }
876
877
  })();
877
878
  }
878
879
  }, [D]);
879
- const [J, j] = ae(null);
880
- K(() => {
880
+ const [Y, H] = ae(null);
881
+ G(() => {
881
882
  if (!A || !S) return;
882
883
  A.clear();
883
884
  const p = S?.workbook?.getTransactions();
884
885
  return p ? p.addListener({ onCommitEnd: (v) => {
885
- v.getDescription() ? A.addUndoOperation({ description: v.getDescription(), undo: () => (p.revert(v.getId()), J.source?.focus(), () => {
886
- p.restore(v.getId()), J.source?.focus();
886
+ v.getDescription() ? A.addUndoOperation({ description: v.getDescription(), undo: () => (p.revert(v.getId()), Y.source?.focus(), () => {
887
+ p.restore(v.getId()), Y.source?.focus();
887
888
  }) }) : console.warn("commit has no description", v);
888
889
  } }) : void 0;
889
- }, [A, S, J]);
890
+ }, [A, S, Y]);
890
891
  const C = ie((p) => {
891
892
  p ? A.setRepeatableOperation({ description: p.label(), repeat: async () => p.execute() }) : A.setRepeatableOperation(null);
892
893
  }, [A]), [W, V] = ae(d ?? w?.title ?? "");
893
- K(() => {
894
+ G(() => {
894
895
  V(d ?? w?.title ?? "");
895
- }, [d ?? w?.title]), K(() => {
896
+ }, [d ?? w?.title]), G(() => {
896
897
  _?.(W);
897
898
  }, [W]);
898
899
  const [re, me] = ae(null), ue = te(() => {
899
900
  const p = () => ({ contains: (v) => !0, focus() {
900
901
  } });
901
- return h ? h.createChildGroup(p, "application", !1) : new Xt(p, "application");
902
- }, [h]), Ye = ie((p) => {
903
- me(p.source.getViewportElement()), j(p), ue.activate("sheet"), a?.(p);
902
+ return h ? h.createChildGroup(p, "application", !1) : new Qt(p, "application");
903
+ }, [h]), Je = ie((p) => {
904
+ me(p.source.getViewportElement()), H(p), ue.activate("sheet"), a?.(p);
904
905
  }, [ue]);
905
- K(() => {
906
- J && x && J.source?.focus(typeof x == "object" ? x : void 0);
907
- }, [J]);
906
+ G(() => {
907
+ Y && x && Y.source?.focus(typeof x == "object" ? x : void 0);
908
+ }, [Y]);
908
909
  const De = le(null), U = ne((p) => {
909
910
  let v = null;
910
- return w?.hidden || (v = g(An, { ...w, style: { maxWidth: "100%", ...w?.style }, workbook: M.current, ref: De, title: W, placeHolder: N, onTitleChange: ($) => {
911
+ return w?.hidden || (v = g(Nn, { ...w, style: { maxWidth: "100%", ...w?.style }, workbook: M.current, ref: De, title: W, placeHolder: N, onTitleChange: ($) => {
911
912
  V($);
912
- } })), g(gn, { ...p, logo: y, mainElement: v, showFileMenu: !b, showAppearanceMenu: !!(I?.onForceLightGridChange || I?.onForceLightImagesChange || I?.onForceModeChange) });
913
- }, [y, W, w, I, b, ue]);
914
- K(() => {
913
+ } })), g(gn, { ...p, logo: y, mainElement: v, showFileMenu: !b, showAppearanceMenu: !!(P?.onForceLightGridChange || P?.onForceLightImagesChange || P?.onForceModeChange) });
914
+ }, [y, W, w, P, b, ue]);
915
+ G(() => {
915
916
  const p = (v) => v.preventDefault();
916
917
  return M.current?.addEventListener("wheel", p, { passive: !1 }), () => {
917
918
  M.current?.removeEventListener("wheel", p);
918
919
  };
919
920
  }, []);
920
- const ke = te(() => g(Jt, { transparentBackground: !0, sx: t, style: n }), [t, n]), Z = ne(({ error: p }) => (i?.(p), g(s, { sx: t, style: n, error: p ?? "Unable to display empty workbook." })), [t, n, i]), Te = te(() => ({ ...t, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-MuiContent *": { fontFamily: (p) => p.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [t]), et = Yt([M, o]), F = te(() => {
921
+ const ke = te(() => g(Yt, { transparentBackground: !0, sx: t, style: n }), [t, n]), Z = ne(({ error: p }) => (i?.(p), g(s, { sx: t, style: n, error: p ?? "Unable to display empty workbook." })), [t, n, i]), Te = te(() => ({ ...t, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-MuiContent *": { fontFamily: (p) => p.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [t]), et = Jt([M, o]), F = te(() => {
921
922
  if (!S) return ke;
922
923
  if (S.error || !S.workbook) return Z({ error: S.error });
923
924
  let p = null, v = null, $ = !1;
924
- return I && (p = oe ? I.dark : I.light, v = oe && !I.forceLightGrid ? I.dark : I.light, $ = I.forceLightImages), g(Rn, { sx: Te, style: n, tabIndex: 0, autoFocus: !0, workbook: S.workbook, ref: et, renderToolbar: U, onElementLoad: Ye, onRepeatCommandChange: C, onKeyDown: (Y) => {
925
- c?.(Y);
926
- }, gridTheme: v, headersTheme: p, forceLightImages: $, className: mt(r, "sheetxl-workbook"), onContextMenu: (Y) => Y.preventDefault(), ...R }, "WorkbookElement");
927
- }, [S, W, A, ke, I, R, U, Te]);
928
- let Q = g(Fo, { fallbackRender: Z, children: g(Uo, { maxSnack: 3, domRoot: re, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, v, $) => {
925
+ return P && (p = oe ? P.dark : P.light, v = oe && !P.forceLightGrid ? P.dark : P.light, $ = P.forceLightImages), g(An, { sx: Te, style: n, tabIndex: 0, autoFocus: !0, workbook: S.workbook, ref: et, renderToolbar: U, onElementLoad: Je, onRepeatCommandChange: C, onKeyDown: (J) => {
926
+ c?.(J);
927
+ }, gridTheme: v, headersTheme: p, forceLightImages: $, className: mt(r, "sheetxl-workbook"), onContextMenu: (J) => J.preventDefault(), ...R }, "WorkbookElement");
928
+ }, [S, W, A, ke, P, R, U, Te]);
929
+ let X = g(Fo, { fallbackRender: Z, children: g(Uo, { maxSnack: 3, domRoot: re, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, v, $) => {
929
930
  M.current?.focus();
930
- }, Components: { error: hn }, iconVariant: { success: g(Hn, { style: { marginRight: "8px" }, children: g("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: g(Pn, { style: { marginRight: "8px" } }) }, children: g(In, { children: g(kn, { workbook: S?.workbook, setWorkbook: B, importExportDisabled: b, titlePlaceHolder: N, titleWorkbook: W, setWorkbookTitle: V, refWorkbookTitle: De, commands: ue, undoManager: A, themeModeOptions: I, children: F }) }) }) });
931
- return I && (Q = se(jn, { theme: oe ? I.dark : I.light, children: [I.cssBaseline ? g(To, {}) : null, Q] })), Q;
931
+ }, Components: { error: hn }, iconVariant: { success: g(In, { style: { marginRight: "8px" }, children: g("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: g(Pn, { style: { marginRight: "8px" } }) }, children: g(Rn, { children: g(kn, { workbook: S?.workbook, setWorkbook: B, importExportDisabled: b, titlePlaceHolder: N, titleWorkbook: W, setWorkbookTitle: V, refWorkbookTitle: De, commands: ue, undoManager: A, themeModeOptions: P, children: F }) }) }) });
932
+ return P && (X = se(jn, { theme: oe ? P.dark : P.light, children: [P.cssBaseline ? g(To, {}) : null, X] })), X;
932
933
  }));
933
934
  bn.displayName = "EagerStandaloneWorkbook";
934
- const Ko = Object.freeze(Object.defineProperty({ __proto__: null, default: bn }, Symbol.toStringTag, { value: "Module" })), Yo = Object.freeze(Object.defineProperty({ __proto__: null, E: Ko, c: ge }, Symbol.toStringTag, { value: "Module" }));
935
+ const Go = Object.freeze(Object.defineProperty({ __proto__: null, default: bn }, Symbol.toStringTag, { value: "Module" })), er = Object.freeze(Object.defineProperty({ __proto__: null, E: Go, c: ge }, Symbol.toStringTag, { value: "Module" }));
935
936
  export {
936
937
  ft as C,
937
- ge as f,
938
- Yo as q
938
+ er as D,
939
+ ge as f
939
940
  };