@sheetxl/studio-mui 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 (188) hide show
  1. package/browser/cjs/4qy63Boa4nvdxyjo.cjs +6 -0
  2. package/browser/cjs/{D69p4DRnZE5Oa52x.cjs → AQ9Vi-Cv6JK-IezR.cjs} +1 -1
  3. package/browser/cjs/{YpWYrg3Eysqtr9aZ.cjs → B13OXuZsTC4RULMo.cjs} +1 -1
  4. package/browser/cjs/BHJSCG4oU8pmuDwm.cjs +12 -0
  5. package/browser/cjs/{DSNu0kgR1_X-nK_Z.cjs → Bav0cmsoPAA3a5yu.cjs} +2 -2
  6. package/browser/cjs/{DAyHZyXZGsDWfbyd.cjs → Bkl3DGri3E5UGuvv.cjs} +1 -1
  7. package/browser/cjs/{BH160EggM2K8qaSr.cjs → BlxVofqfnSMNcuv8.cjs} +1 -1
  8. package/browser/cjs/{BL1st_QvuF5m8AaJ.cjs → ByVL-_c8JG4yCwyg.cjs} +2 -2
  9. package/browser/cjs/{BlBsVySC7wICKf3b.cjs → CGHGrJD1KaYGPUWt.cjs} +2 -2
  10. package/browser/cjs/{Bh785l7WNSK7G3hU.cjs → CQXkduebOzsWYR7I.cjs} +1 -1
  11. package/browser/cjs/{C9TJkm0tBPD04idM.cjs → CauYni4UlnUOg2KD.cjs} +2 -2
  12. package/browser/cjs/CetwWGtSVR7MPQmq.cjs +6 -0
  13. package/browser/cjs/{BQyDL6TxMqPmkugH.cjs → D76n8Obon9BUBaN9.cjs} +1 -1
  14. package/browser/cjs/{scolQa-PxnIvyiDb.cjs → DAIK3n9uEZA5B3jo.cjs} +1 -1
  15. package/browser/cjs/{CPKZW7FfYlmkNYbE.cjs → DKTmOXPHU474-EAe.cjs} +2 -2
  16. package/browser/cjs/DQxMsOz7p1VlzGGr.cjs +11 -0
  17. package/browser/cjs/DSumeKv5upBoatXJ.cjs +12 -0
  18. package/browser/cjs/{CEx5ZMI8c4HYrxzW.cjs → Dold2uHEN8H8QsT-.cjs} +1 -1
  19. package/browser/cjs/{B0-aLTQ0dAlPdRnQ.cjs → K7lHFQm8oaMP4Fc7.cjs} +3 -3
  20. package/browser/cjs/{D8qPzQKLyGrgGg08.cjs → LLqao183uS5MMxF5.cjs} +2 -2
  21. package/browser/cjs/index.cjs +2 -2
  22. package/browser/cjs/kEe9PBONC8-oT9AU.cjs +6 -0
  23. package/browser/cjs/{CP_eU6V1jkcP4WtQ.cjs → p8j2cCUulAy7yD2q.cjs} +2 -2
  24. package/browser/cjs/q9JmnJDMYsSf7UfZ.cjs +6 -0
  25. package/browser/cjs/wwocjd0UfaRLBBMZ.cjs +6 -0
  26. package/browser/cjs/zAZ0LJZMPXeu6JSh.cjs +87 -0
  27. package/browser/esm/{BeMVD9uqSXo5o9U7.mjs → B5O5PCrKRZ4DUAH5.mjs} +13 -13
  28. package/browser/esm/B89QkSJt5Nra70ba.mjs +19838 -0
  29. package/browser/esm/{5uqs7KjiX3pi6cd5.mjs → BRJgzXA_m_2aKWbd.mjs} +10 -10
  30. package/browser/esm/{C8eXD0cT7ZPGYNCl.mjs → BYUh5NiLu-E5n_2A.mjs} +21 -20
  31. package/browser/esm/{B9IRFHtuYz6_J4Sj.mjs → Bx8dhDDGV4fnPcL4.mjs} +8 -8
  32. package/browser/esm/{DpJqkBHKECEClAah.mjs → C2gkPo-K972JVp5g.mjs} +6 -6
  33. package/browser/esm/{BVjzMl2EkoD1ceqn.mjs → CEvGwR40Y6Ef-WDe.mjs} +7 -7
  34. package/browser/esm/{BLiRvSBEJD-6dWH0.mjs → Cb9SB2mI9VqoMLgo.mjs} +1 -1
  35. package/browser/esm/{BIQXdDApQqsa7WWH.mjs → CsT1vXKI_o6hLmzM.mjs} +1 -1
  36. package/browser/esm/D0WM4vskQ31-MkSX.mjs +1467 -0
  37. package/browser/esm/{QNCUQO7a-oixacNG.mjs → D5FRlmQmwf6Y4j_G.mjs} +1 -1
  38. package/browser/esm/{0qppnWkLyeMGOizg.mjs → DEorp4Rd9a565r_h.mjs} +1 -1
  39. package/browser/esm/{q1cTyqrb2yKNSDq5.mjs → DHvI-gSNOpEkZS0_.mjs} +170 -169
  40. package/browser/esm/{Dy7xNyqd4jfUcj2t.mjs → DK4TrH-nckKO9Q9L.mjs} +1 -1
  41. package/browser/esm/DMOlhSnOh4hHXiw0.mjs +52 -0
  42. package/browser/esm/{B1fKMAH-vx3TJ0ii.mjs → DQwg0nFQOuoWa9vC.mjs} +1 -1
  43. package/browser/esm/{BXvDIYhOIHqmZQQo.mjs → DVEcYvO4EkDBk4FX.mjs} +1 -1
  44. package/browser/esm/{CE3LjR3RfccnMUQt.mjs → DdsrrZg_d16qXBaF.mjs} +13 -13
  45. package/browser/esm/{BCiGYy5wMbcNSF3g.mjs → DhJgaHDvhGW9Q-Jd.mjs} +1 -1
  46. package/browser/esm/{PbEXrCdkQc02gfVZ.mjs → Dr-hrT0HVZs3fkdF.mjs} +10 -10
  47. package/browser/esm/{DTW06ga7BIWfkpc3.mjs → Drjhq-zlZ3HTK_ZI.mjs} +11 -10
  48. package/browser/esm/{CTdZQdi5BoNPu7rZ.mjs → Dw7dYD6MrvZb3WPh.mjs} +65 -65
  49. package/browser/esm/{DJVGX60ly4BfiFse.mjs → DzW551wAkGdUKn1f.mjs} +44 -43
  50. package/browser/esm/{DrzfnYtbTkZ0Vztm.mjs → XSaSkbiadpjvNPF-.mjs} +2 -2
  51. package/browser/esm/index.mjs +74 -73
  52. package/browser/esm/{B0k5xuPgYO9B-vto.mjs → q-qojAI33CqmRx77.mjs} +16 -16
  53. package/licenses/dependencies.txt +156 -178
  54. package/node/esm/{cT4-HbwV7TBlRjja.mjs → 0VUK_26rxW-1p-no.mjs} +276 -275
  55. package/node/esm/{BiiNcUkTIcWxOabS.mjs → B4Eo0tFRg7GybYQq.mjs} +2 -2
  56. package/node/esm/B6na2FpIb2N8_BII.mjs +25 -0
  57. package/node/esm/{tk69oRoeZHf4vk1z.mjs → BCqh-sztmdgZm9pd.mjs} +13 -13
  58. package/node/esm/{fENiUIb3u1Oy7Amv.mjs → BNhJrLEKwde0o2dg.mjs} +8 -8
  59. package/node/esm/{Cd5wE06_wa41Z6Wt.mjs → BQWO9jQkGVXLYnCK.mjs} +12 -12
  60. package/node/esm/{BvOnjWMz5o3z-qWe.mjs → BUDeEhnsn9-yrQlE.mjs} +1 -1
  61. package/node/esm/{CZlpZhqzgcRkv_bX.mjs → BXZpU4qRYF5maAg0.mjs} +9 -9
  62. package/node/esm/{D4ydLNNfUH8D41A7.mjs → BexDrSYf11he63De.mjs} +1 -1
  63. package/node/esm/{BnbhKW27rQ185mOb.mjs → BiU1UyUrEkNS9WeH.mjs} +2 -2
  64. package/node/esm/{Br_lQeehvACsDkzu.mjs → C53eiTE5QbclOU-x.mjs} +13 -12
  65. package/node/esm/{CBlVCA0uvCwlok1v.mjs → C63AwhK2bi3nQ-qh.mjs} +1 -1
  66. package/node/esm/{DbzTWKX0Q8SGsGA4.mjs → CJzMybL2SEMDl1Nw.mjs} +29 -29
  67. package/node/esm/{zQ0ozpm04cC2OG19.mjs → CKS2ltb4Bv_q8qad.mjs} +22 -22
  68. package/node/esm/{C0eiYtK0Lkx4fQGc.mjs → CZtyxHtVSnQOWUIw.mjs} +86 -85
  69. package/node/esm/{6L7TnSLCvI3zabFK.mjs → CvxTDOd3lLLowV8Z.mjs} +24 -23
  70. package/node/esm/DQv4OOMysHEA_ih5.mjs +553 -0
  71. package/node/esm/{CI3U9rEYT3a_Biw5.mjs → D_wrbdHZwcqLBmob.mjs} +1 -1
  72. package/node/esm/{BY1cZ8MXawge5drQ.mjs → Dca0ee8jhGRibBhk.mjs} +2 -2
  73. package/node/esm/{Ro_fz9s3_2DHfiE-.mjs → DpB6jqJa5heTZlo1.mjs} +1 -1
  74. package/node/esm/{CZA-oIez6io5vwv1.mjs → DrgN5wWkYF1hgIK3.mjs} +1 -1
  75. package/node/esm/DuL4Zvdz5hbTWC1z.mjs +308 -0
  76. package/node/esm/index.mjs +12885 -41674
  77. package/node/esm/{D6wjzUXEh-Q71uoB.mjs → mEXgu7-CAzFc23RE.mjs} +2 -2
  78. package/package.json +8 -8
  79. package/browser/cjs/BAGEDalcFwfUrDOV.cjs +0 -6
  80. package/browser/cjs/BMcvveT3JniLuWWw.cjs +0 -6
  81. package/browser/cjs/B_JRx-UyLNBI8Jr9.cjs +0 -6
  82. package/browser/cjs/BbCINWmJNJ1UoABX.cjs +0 -6
  83. package/browser/cjs/BdPTNgv6BQFiJXiH.cjs +0 -238
  84. package/browser/cjs/BgqUvcQGSrZtIsnp.cjs +0 -6
  85. package/browser/cjs/Bub0lBbzpOagYy-6.cjs +0 -12
  86. package/browser/cjs/BvV0mrFKi8cdsSFF.cjs +0 -6
  87. package/browser/cjs/BxCxDRRwMVIA9T0Q.cjs +0 -6
  88. package/browser/cjs/BxbbUhKRSHRfeoNL.cjs +0 -32
  89. package/browser/cjs/C3RxbodVdJ0MR0eY.cjs +0 -11
  90. package/browser/cjs/C4zc2Ll270E135fR.cjs +0 -6
  91. package/browser/cjs/CEkRIfptK2yyy4PS.cjs +0 -6
  92. package/browser/cjs/CGp4fzG2ZIsJmB72.cjs +0 -6
  93. package/browser/cjs/CT5f8xMCNbOhih6R.cjs +0 -12
  94. package/browser/cjs/CV6WjeLkZrGoM4SB.cjs +0 -6
  95. package/browser/cjs/CZA_Av5pG0M1RgJK.cjs +0 -6
  96. package/browser/cjs/Ca6YJnV2DBQrqx0b.cjs +0 -124
  97. package/browser/cjs/Ci7CqdgErq0IGcl5.cjs +0 -6
  98. package/browser/cjs/CmROQEOLO7s-rzZW.cjs +0 -6
  99. package/browser/cjs/Cnc0-T-tLmqyX7Mq.cjs +0 -6
  100. package/browser/cjs/Ct6nh7ILtW_PHbB3.cjs +0 -6
  101. package/browser/cjs/CtmTxxgCijL1ZuPa.cjs +0 -6
  102. package/browser/cjs/CyUaP6X--CmuILoU.cjs +0 -6
  103. package/browser/cjs/D598Bk4npBA6UESy.cjs +0 -6
  104. package/browser/cjs/D7asEaPB97YVwe1v.cjs +0 -6
  105. package/browser/cjs/D9lDObZe3CkEPPGI.cjs +0 -6
  106. package/browser/cjs/DFrTuKkfDctye00L.cjs +0 -7
  107. package/browser/cjs/DNquPukGj-6iRmmP.cjs +0 -13
  108. package/browser/cjs/DOXD9gLvRI-UN_9l.cjs +0 -6
  109. package/browser/cjs/DRhcrHz-whpKmHXb.cjs +0 -6
  110. package/browser/cjs/DdBygPkI15syG3qE.cjs +0 -1501
  111. package/browser/cjs/DrgfA0AIigevE5fO.cjs +0 -15
  112. package/browser/cjs/DyjUI4ZuHoE2UtYP.cjs +0 -6
  113. package/browser/cjs/Ou0ysDOtKXD_MCyi.cjs +0 -6
  114. package/browser/cjs/Tkr7WOf1Km7F6jc1.cjs +0 -6
  115. package/browser/cjs/Ui6MyVXLy4hSZZln.cjs +0 -6
  116. package/browser/cjs/ZSSSnynZ-cYurCZ4.cjs +0 -6
  117. package/browser/cjs/hDl6HNkylTvv-qT3.cjs +0 -6
  118. package/browser/cjs/tLWq6abRGIT6oIrd.cjs +0 -6
  119. package/browser/cjs/xS50A4hbimnAA3g8.cjs +0 -6
  120. package/browser/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
  121. package/browser/esm/91ZejdYNSNvEQyri.mjs +0 -43655
  122. package/browser/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
  123. package/browser/esm/BGfz8kkDQwuckxnU.mjs +0 -10
  124. package/browser/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
  125. package/browser/esm/BSB3k2C-vxhRI9pk.mjs +0 -5582
  126. package/browser/esm/Baiv07hkxLIkAcoq.mjs +0 -10
  127. package/browser/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
  128. package/browser/esm/BpfyDNlbLX4dOPvj.mjs +0 -24
  129. package/browser/esm/Bs0RJigDhPR1WzFT.mjs +0 -21
  130. package/browser/esm/BtP3Wpc2YRk8W2KZ.mjs +0 -12
  131. package/browser/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
  132. package/browser/esm/C7YTh7Sm32Nt_Kv5.mjs +0 -10
  133. package/browser/esm/CE1gssQmn8QAeBEI.mjs +0 -10
  134. package/browser/esm/CE3vBPdWXPf3M3h2.mjs +0 -51
  135. package/browser/esm/CJigh9OXZ04sdTLc.mjs +0 -1466
  136. package/browser/esm/CLHgqHwohIYlAAUF.mjs +0 -472
  137. package/browser/esm/CTuGnJMMNAi4EKiy.mjs +0 -10
  138. package/browser/esm/CUZmKq_NPR_OCibb.mjs +0 -10
  139. package/browser/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
  140. package/browser/esm/Cv8VSqfWEaftgiTH.mjs +0 -10
  141. package/browser/esm/CvJUNcDyz497Gxl7.mjs +0 -10
  142. package/browser/esm/D2OQwThnobBdsQ1x.mjs +0 -3934
  143. package/browser/esm/D73ljnqYKCXMdyPd.mjs +0 -1575
  144. package/browser/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
  145. package/browser/esm/Dsu3RRvUfCUWRZ6q.mjs +0 -10
  146. package/browser/esm/DxEtUnQEyEYWuqL7.mjs +0 -820
  147. package/browser/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
  148. package/browser/esm/JMr0jtu67PC8clGf.mjs +0 -10
  149. package/browser/esm/QhTxW6tFl-So20AH.mjs +0 -425
  150. package/browser/esm/_tXPsCW6hHTdj45y.mjs +0 -10
  151. package/browser/esm/bJWg5_Jxjizyivdn.mjs +0 -29
  152. package/browser/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
  153. package/browser/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
  154. package/browser/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
  155. package/node/esm/0CbEJyCpbWyFHdK1.mjs +0 -4002
  156. package/node/esm/6qF6HMFmVJEMu5ze.mjs +0 -10
  157. package/node/esm/A5WewF_ecyRMfEW9.mjs +0 -80
  158. package/node/esm/B0rQMzpUsBE47H-k.mjs +0 -10
  159. package/node/esm/B3TBImEZBAbKsEAq.mjs +0 -10
  160. package/node/esm/B6KWiZxcJDzPKz7A.mjs +0 -10
  161. package/node/esm/B8tFaB-W9JcM6xhy.mjs +0 -29
  162. package/node/esm/BGfz8kkDQwuckxnU.mjs +0 -10
  163. package/node/esm/BKb0zrP-OexxgIYb.mjs +0 -24
  164. package/node/esm/BNWWT7cxdCiMaWFC.mjs +0 -10
  165. package/node/esm/BQBHsnvwWPo5kQhy.mjs +0 -10
  166. package/node/esm/BZTLlsc-NvE1_mTb.mjs +0 -555
  167. package/node/esm/Baiv07hkxLIkAcoq.mjs +0 -10
  168. package/node/esm/Bc6K-JiRW1SodxIq.mjs +0 -10
  169. package/node/esm/BiVFM0O-4h4yY7oa.mjs +0 -10
  170. package/node/esm/Bq-gS5qqB1Jrllm2.mjs +0 -307
  171. package/node/esm/Bv7SpuMBfsaGEFxP.mjs +0 -16
  172. package/node/esm/BwWIlZYqfL7BAjSI.mjs +0 -10
  173. package/node/esm/C0qF-AAqNGDMeSVO.mjs +0 -813
  174. package/node/esm/CE1gssQmn8QAeBEI.mjs +0 -10
  175. package/node/esm/CUZmKq_NPR_OCibb.mjs +0 -10
  176. package/node/esm/ChIE2YGkU9_cnmDj.mjs +0 -10
  177. package/node/esm/CvJUNcDyz497Gxl7.mjs +0 -10
  178. package/node/esm/DAPWMPwVGQJsblPQ.mjs +0 -10
  179. package/node/esm/DJtTsiROzkkD2wRx.mjs +0 -5642
  180. package/node/esm/DLEDFraKFWvZtfvX.mjs +0 -10
  181. package/node/esm/DNYPU79SNlXuHN8j.mjs +0 -10
  182. package/node/esm/DjhMNAleaI3hhcHG.mjs +0 -13
  183. package/node/esm/DtUFCYSrTGcBjdBN.mjs +0 -453
  184. package/node/esm/Dxrje6uVvr2LGdV7.mjs +0 -10
  185. package/node/esm/EebvqIVFwWH3slRt.mjs +0 -14
  186. package/node/esm/cVH-KYzKaUP4C3dh.mjs +0 -10
  187. package/node/esm/cp8pKSzbJqh-zBtd.mjs +0 -10
  188. package/node/esm/dmuee2Is7r5Q4B3M.mjs +0 -10
@@ -1,11 +1,12 @@
1
1
  import { jsx as h, jsxs as ie, Fragment as It } from "react/jsx-runtime";
2
- import S, { Component as At, createElement as le, createContext as an, memo as Ee, forwardRef as oe, useRef as ne, useState as ee, useCallback as Z, useEffect as R, useMemo as $, useContext as sn, isValidElement as ln, cloneElement as cn, useLayoutEffect as st } from "react";
3
- import { u as un, f as lt, V as dn, T as te, i as Je, y as Te, v as pn, j as mn, l as fn, n as hn, o as kt, W as pe, p as gn, t as kn, w as bt, M as bn, x as xn, B as wn, E as yn, H as vn, I as jt, K as En, L as Cn, N as Sn, O as Ln, Q as G, Z as De, P as xt, R as Ht, U as Tn, $ as Rt, a0 as ct, a1 as Dn, a2 as On, a3 as Mn, a4 as Wn, a5 as qt, a6 as Fn, a7 as Nn, a8 as He, a9 as Pn, aa as In, ab as wt, F as et, ac as An, ad as jn, ae as yt, af as Hn, ag as Rn, ah as qn, ai as Bn, aj as _n } from "./91ZejdYNSNvEQyri.mjs";
4
- import { createPortal as Vn } from "react-dom";
5
- import { Card as zn, CardActions as Un, Typography as Kn, IconButton as ut, Collapse as Gn, Box as ue, SvgIcon as $n, CssBaseline as Zn } from "@mui/material";
2
+ import S, { Component as At, createElement as le, createContext as an, memo as Ee, forwardRef as oe, useRef as ne, useState as ee, useCallback as Z, useEffect as j, useMemo as $, useContext as sn, isValidElement as ln, cloneElement as cn, useLayoutEffect as st } from "react";
3
+ import { u as un, b as lt, V as dn, T as te, f as Je, y as Te, v as pn, S as mn, A as fn, _ as hn, d as kt, W as pe, e as gn, z as kn, h as bt, M as bn, s as xn, i as wn, j as yn, k as vn, m as Ht, l as En, n as Cn, o as Sn, Y as Ln, Q as K, Z as De, p as xt, H as Rt, q as Tn, t as jt, w as ct, L as Dn, x as Mn, B as On, D as Wn, I as qt, E as Fn, F as Pn, G as Re, J as Nn, K as wt, R as In, N as An, O as Hn, P as Rn, U as jn, X as qn } from "./B89QkSJt5Nra70ba.mjs";
4
+ import { createPortal as Bn } from "react-dom";
5
+ import { Card as _n, CardActions as Vn, Typography as zn, IconButton as ut, Collapse as Un, Box as ue, SvgIcon as Gn, CssBaseline as Kn } from "@mui/material";
6
+ import { PartialError as $n, CommonUtils as et, UndoManager as Zn, Workbook as yt } from "@sheetxl/sdk";
6
7
  import { ExpandMore as Xn, Close as Qn, CancelOutlined as Yn } from "@mui/icons-material";
7
8
  /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.3
9
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.5
9
10
  *
10
11
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
12
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -127,7 +128,7 @@ function L() {
127
128
  function zt(t, a) {
128
129
  t.prototype = Object.create(a.prototype), t.prototype.constructor = t, t.__proto__ = a;
129
130
  }
130
- function Pe(t, a) {
131
+ function Ne(t, a) {
131
132
  if (t == null) return {};
132
133
  var r, e, n = {}, o = Object.keys(t);
133
134
  for (e = 0; e < o.length; e++) r = o[e], a.indexOf(r) >= 0 || (n[r] = t[r]);
@@ -140,18 +141,18 @@ function Et(t) {
140
141
  dt.bind({ g: 1 }), dt.bind({ k: 1 });
141
142
  var Ct = function() {
142
143
  return "";
143
- }, Ut = S.createContext({ enqueueSnackbar: Ct, closeSnackbar: Ct }), nt = "@media (max-width:599.95px)", Ke = "@media (min-width:600px)", St = function(t) {
144
+ }, Ut = S.createContext({ enqueueSnackbar: Ct, closeSnackbar: Ct }), nt = "@media (max-width:599.95px)", Ge = "@media (min-width:600px)", St = function(t) {
144
145
  return t.charAt(0).toUpperCase() + t.slice(1);
145
146
  }, mt = function(t) {
146
147
  return "" + St(t.vertical) + St(t.horizontal);
147
- }, Re = function(t) {
148
+ }, je = function(t) {
148
149
  return !!t || t === 0;
149
- }, qe = "unmounted", xe = "exited", we = "entering", Oe = "entered", Lt = "exiting", ft = function(t) {
150
+ }, qe = "unmounted", xe = "exited", we = "entering", Me = "entered", Lt = "exiting", ft = function(t) {
150
151
  function a(e) {
151
152
  var n;
152
153
  n = t.call(this, e) || this;
153
154
  var o, i = e.appear;
154
- return n.appearStatus = null, e.in ? i ? (o = xe, n.appearStatus = we) : o = Oe : o = e.unmountOnExit || e.mountOnEnter ? qe : xe, n.state = { status: o }, n.nextCallback = null, n;
155
+ return n.appearStatus = null, e.in ? i ? (o = xe, n.appearStatus = we) : o = Me : o = e.unmountOnExit || e.mountOnEnter ? qe : xe, n.state = { status: o }, n.nextCallback = null, n;
155
156
  }
156
157
  zt(a, t), a.getDerivedStateFromProps = function(e, n) {
157
158
  return e.in && n.status === qe ? { status: xe } : null;
@@ -163,7 +164,7 @@ var Ct = function() {
163
164
  var n = null;
164
165
  if (e !== this.props) {
165
166
  var o = this.state.status;
166
- this.props.in ? o !== we && o !== Oe && (n = we) : o !== we && o !== Oe || (n = Lt);
167
+ this.props.in ? o !== we && o !== Me && (n = we) : o !== we && o !== Me || (n = Lt);
167
168
  }
168
169
  this.updateStatus(!1, n);
169
170
  }, r.componentWillUnmount = function() {
@@ -177,11 +178,11 @@ var Ct = function() {
177
178
  var n = this, o = this.props.enter, i = e, c = this.getTimeouts();
178
179
  e || o ? (this.props.onEnter && this.props.onEnter(this.node, i), this.safeSetState({ status: we }, function() {
179
180
  n.props.onEntering && n.props.onEntering(n.node, i), n.onTransitionEnd(c.enter, function() {
180
- n.safeSetState({ status: Oe }, function() {
181
+ n.safeSetState({ status: Me }, function() {
181
182
  n.props.onEntered && n.props.onEntered(n.node, i);
182
183
  });
183
184
  });
184
- })) : this.safeSetState({ status: Oe }, function() {
185
+ })) : this.safeSetState({ status: Me }, function() {
185
186
  n.props.onEntered && n.props.onEntered(n.node, i);
186
187
  });
187
188
  }, r.performExit = function() {
@@ -214,7 +215,7 @@ var Ct = function() {
214
215
  var e = this.state.status;
215
216
  if (e === qe) return null;
216
217
  var n = this.props;
217
- return (0, n.children)(e, Pe(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
218
+ return (0, n.children)(e, Ne(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
218
219
  }, Vt(a, [{ key: "node", get: function() {
219
220
  var e, n = (e = this.props.nodeRef) === null || e === void 0 ? void 0 : e.current;
220
221
  if (!n) throw new Error("notistack - Custom snackbar is not refForwarding");
@@ -233,12 +234,12 @@ function pt(t, a) {
233
234
  };
234
235
  }, [t, a]);
235
236
  }
236
- function Ge(t) {
237
+ function Ke(t) {
237
238
  var a = t.timeout, r = t.style, e = r === void 0 ? {} : r, n = t.mode;
238
239
  return { duration: typeof a == "object" ? a[n] || 0 : a, easing: e.transitionTimingFunction, delay: e.transitionDelay };
239
240
  }
240
241
  ft.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: ye, onEntering: ye, onEntered: ye, onExit: ye, onExiting: ye, onExited: ye };
241
- var io = "cubic-bezier(0.4, 0, 0.2, 1)", so = "cubic-bezier(0.0, 0, 0.2, 1)", lo = "cubic-bezier(0.4, 0, 0.6, 1)", Kt = function(t) {
242
+ var io = "cubic-bezier(0.4, 0, 0.2, 1)", so = "cubic-bezier(0.0, 0, 0.2, 1)", lo = "cubic-bezier(0.4, 0, 0.6, 1)", Gt = function(t) {
242
243
  t.scrollTop = t.scrollTop;
243
244
  }, Dt = function(t) {
244
245
  return Math.round(t) + "ms";
@@ -251,7 +252,7 @@ function ve(t, a) {
251
252
  return l + " " + u + " " + i + " " + d;
252
253
  }).join(",");
253
254
  }
254
- function Gt(t) {
255
+ function Kt(t) {
255
256
  var a = function(r) {
256
257
  return r && r.ownerDocument || document;
257
258
  }(t);
@@ -260,7 +261,7 @@ function Gt(t) {
260
261
  function Be(t, a) {
261
262
  if (a) {
262
263
  var r = function(e, n) {
263
- var o, i = n.getBoundingClientRect(), c = Gt(n);
264
+ var o, i = n.getBoundingClientRect(), c = Kt(n);
264
265
  if (n.fakeTransform) o = n.fakeTransform;
265
266
  else {
266
267
  var s = c.getComputedStyle(n);
@@ -286,43 +287,43 @@ function Be(t, a) {
286
287
  }
287
288
  }
288
289
  var $t = oe(function(t, a) {
289
- var r = t.children, e = t.direction, n = e === void 0 ? "down" : e, o = t.in, i = t.style, c = t.timeout, s = c === void 0 ? 0 : c, l = t.onEnter, u = t.onEntered, d = t.onExit, m = t.onExited, b = Pe(t, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), w = ne(null), x = pt(r.ref, w), y = pt(x, a), g = Z(function() {
290
+ var r = t.children, e = t.direction, n = e === void 0 ? "down" : e, o = t.in, i = t.style, c = t.timeout, s = c === void 0 ? 0 : c, l = t.onEnter, u = t.onEntered, d = t.onExit, m = t.onExited, b = Ne(t, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), w = ne(null), x = pt(r.ref, w), y = pt(x, a), g = Z(function() {
290
291
  w.current && Be(n, w.current);
291
292
  }, [n]);
292
- return R(function() {
293
+ return j(function() {
293
294
  if (!o && n !== "down" && n !== "right") {
294
295
  var f = function(C, Y) {
295
- var H;
296
+ var R;
296
297
  function q() {
297
298
  for (var B = this, z = arguments.length, _ = new Array(z), X = 0; X < z; X++) _[X] = arguments[X];
298
- clearTimeout(H), H = setTimeout(function() {
299
+ clearTimeout(R), R = setTimeout(function() {
299
300
  C.apply(B, _);
300
301
  }, Y);
301
302
  }
302
303
  return Y === void 0 && (Y = 166), q.clear = function() {
303
- clearTimeout(H);
304
+ clearTimeout(R);
304
305
  }, q;
305
306
  }(function() {
306
307
  w.current && Be(n, w.current);
307
- }), M = Gt(w.current);
308
- return M.addEventListener("resize", f), function() {
309
- f.clear(), M.removeEventListener("resize", f);
308
+ }), O = Kt(w.current);
309
+ return O.addEventListener("resize", f), function() {
310
+ f.clear(), O.removeEventListener("resize", f);
310
311
  };
311
312
  }
312
- }, [n, o]), R(function() {
313
+ }, [n, o]), j(function() {
313
314
  o || g();
314
- }, [o, g]), le(ft, Object.assign({ appear: !0, nodeRef: w, onEnter: function(f, M) {
315
- Be(n, f), Kt(f), l && l(f, M);
315
+ }, [o, g]), le(ft, Object.assign({ appear: !0, nodeRef: w, onEnter: function(f, O) {
316
+ Be(n, f), Gt(f), l && l(f, O);
316
317
  }, onEntered: u, onEntering: function(f) {
317
- var M = i?.transitionTimingFunction || so, C = Ge({ timeout: s, mode: "enter", style: L({}, i, { transitionTimingFunction: M }) });
318
+ var O = i?.transitionTimingFunction || so, C = Ke({ timeout: s, mode: "enter", style: L({}, i, { transitionTimingFunction: O }) });
318
319
  f.style.webkitTransition = ve("-webkit-transform", C), f.style.transition = ve("transform", C), f.style.webkitTransform = "none", f.style.transform = "none";
319
320
  }, onExit: function(f) {
320
- var M = i?.transitionTimingFunction || lo, C = Ge({ timeout: s, mode: "exit", style: L({}, i, { transitionTimingFunction: M }) });
321
+ var O = i?.transitionTimingFunction || lo, C = Ke({ timeout: s, mode: "exit", style: L({}, i, { transitionTimingFunction: O }) });
321
322
  f.style.webkitTransition = ve("-webkit-transform", C), f.style.transition = ve("transform", C), Be(n, f), d && d(f);
322
323
  }, onExited: function(f) {
323
324
  f.style.webkitTransition = "", f.style.transition = "", m && m(f);
324
- }, in: o, timeout: s }, b), function(f, M) {
325
- return cn(r, L({ ref: y, style: L({ visibility: f !== "exited" || o ? void 0 : "hidden" }, i, {}, r.props.style) }, M));
325
+ }, in: o, timeout: s }, b), function(f, O) {
326
+ return cn(r, L({ ref: y, style: L({ visibility: f !== "exited" || o ? void 0 : "hidden" }, i, {}, r.props.style) }, O));
326
327
  });
327
328
  });
328
329
  $t.displayName = "Slide";
@@ -363,7 +364,7 @@ function Ie(t) {
363
364
  }
364
365
  var ho = "notistack-SnackbarContainer", go = "notistack-Snackbar", Zt = "notistack-CollapseWrapper", ko = "notistack-MuiContent", bo = function(t) {
365
366
  return "notistack-MuiContent-" + t;
366
- }, Ot = Ie({ root: { height: 0 }, entered: { height: "auto" } }), ot = "0px", Xt = oe(function(t, a) {
367
+ }, Mt = Ie({ root: { height: 0 }, entered: { height: "auto" } }), ot = "0px", Xt = oe(function(t, a) {
367
368
  var r = t.children, e = t.in, n = t.onExited, o = ne(null), i = ne(null), c = pt(a, i), s = function() {
368
369
  return o.current ? o.current.clientHeight : 0;
369
370
  };
@@ -372,24 +373,24 @@ var ho = "notistack-SnackbarContainer", go = "notistack-Snackbar", Zt = "notista
372
373
  }, onEntered: function(l) {
373
374
  l.style.height = "auto";
374
375
  }, onEntering: function(l) {
375
- var u = s(), d = Ge({ timeout: 175, mode: "enter" }), m = d.duration, b = d.easing;
376
+ var u = s(), d = Ke({ timeout: 175, mode: "enter" }), m = d.duration, b = d.easing;
376
377
  l.style.transitionDuration = typeof m == "string" ? m : m + "ms", l.style.height = u + "px", l.style.transitionTimingFunction = b || "";
377
378
  }, onExit: function(l) {
378
379
  l.style.height = s() + "px";
379
380
  }, onExited: n, onExiting: function(l) {
380
- Kt(l);
381
- var u = Ge({ timeout: 175, mode: "exit" }), d = u.duration, m = u.easing;
381
+ Gt(l);
382
+ var u = Ke({ timeout: 175, mode: "exit" }), d = u.duration, m = u.easing;
382
383
  l.style.transitionDuration = typeof d == "string" ? d : d + "ms", l.style.height = ot, l.style.transitionTimingFunction = m || "";
383
384
  }, nodeRef: i, timeout: 175 }, function(l, u) {
384
- return le("div", Object.assign({ ref: c, className: fe(Ot.root, l === "entered" && Ot.entered), style: L({ pointerEvents: "all", overflow: "hidden", minHeight: ot, transition: ve("height") }, l === "entered" && { overflow: "visible" }, {}, l === "exited" && !e && { visibility: "hidden" }) }, u), le("div", { ref: o, className: Zt, style: { display: "flex", width: "100%" } }, r));
385
+ return le("div", Object.assign({ ref: c, className: fe(Mt.root, l === "entered" && Mt.entered), style: L({ pointerEvents: "all", overflow: "hidden", minHeight: ot, transition: ve("height") }, l === "entered" && { overflow: "visible" }, {}, l === "exited" && !e && { visibility: "hidden" }) }, u), le("div", { ref: o, className: Zt, style: { display: "flex", width: "100%" } }, r));
385
386
  });
386
387
  });
387
388
  Xt.displayName = "Collapse";
388
- var Mt = { right: "left", left: "right", bottom: "up", top: "down" }, xo = function(t) {
389
+ var Ot = { right: "left", left: "right", bottom: "up", top: "down" }, xo = function(t) {
389
390
  return "anchorOrigin" + mt(t);
390
391
  }, wo = function() {
391
392
  };
392
- function Ne(t, a) {
393
+ function Pe(t, a) {
393
394
  return t.reduce(function(r, e) {
394
395
  return e == null ? r : function() {
395
396
  for (var n = arguments.length, o = new Array(n), i = 0; i < n; i++) o[i] = arguments[i];
@@ -398,7 +399,7 @@ function Ne(t, a) {
398
399
  };
399
400
  }, wo);
400
401
  }
401
- var yo = typeof window < "u" ? st : R;
402
+ var yo = typeof window < "u" ? st : j;
402
403
  function Wt(t) {
403
404
  var a = ne(t);
404
405
  return yo(function() {
@@ -415,7 +416,7 @@ var rt, Qt = oe(function(t, a) {
415
416
  b(null, "timeout", s);
416
417
  }, g));
417
418
  });
418
- R(function() {
419
+ j(function() {
419
420
  return l && w(n), function() {
420
421
  m.current && clearTimeout(m.current);
421
422
  };
@@ -425,7 +426,7 @@ var rt, Qt = oe(function(t, a) {
425
426
  }, y = Z(function() {
426
427
  n != null && w(0.5 * n);
427
428
  }, [n, w]);
428
- return R(function() {
429
+ return j(function() {
429
430
  if (!i && l) return window.addEventListener("focus", y), window.addEventListener("blur", x), function() {
430
431
  window.removeEventListener("focus", y), window.removeEventListener("blur", x);
431
432
  };
@@ -436,25 +437,25 @@ var rt, Qt = oe(function(t, a) {
436
437
  } }), r);
437
438
  });
438
439
  Qt.displayName = "Snackbar";
439
- var vo = Ie({ root: (rt = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, rt[Ke] = { flexGrow: "initial", minWidth: "288px" }, rt) }), ht = oe(function(t, a) {
440
- var r = t.className, e = Pe(t, ["className"]);
440
+ var vo = Ie({ root: (rt = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, rt[Ge] = { flexGrow: "initial", minWidth: "288px" }, rt) }), ht = oe(function(t, a) {
441
+ var r = t.className, e = Ne(t, ["className"]);
441
442
  return S.createElement("div", Object.assign({ ref: a, className: fe(vo.root, r) }, e));
442
443
  });
443
444
  ht.displayName = "SnackbarContent";
444
- var Me = Ie({ 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" } }), Ft = "notistack-snackbar", Yt = oe(function(t, a) {
445
+ var Oe = Ie({ 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" } }), Ft = "notistack-snackbar", Yt = oe(function(t, a) {
445
446
  var r = t.id, e = t.message, n = t.action, o = t.iconVariant, i = t.variant, c = t.hideIconVariant, s = t.style, l = t.className, u = o[i], d = n;
446
- return typeof d == "function" && (d = d(r)), S.createElement(ht, { ref: a, role: "alert", "aria-describedby": Ft, style: s, className: fe(ko, bo(i), Me.root, Me[i], l, !c && u && Me.lessPadding) }, S.createElement("div", { id: Ft, className: Me.message }, c ? null : u, e), d && S.createElement("div", { className: Me.action }, d));
447
+ return typeof d == "function" && (d = d(r)), S.createElement(ht, { ref: a, role: "alert", "aria-describedby": Ft, style: s, className: fe(ko, bo(i), Oe.root, Oe[i], l, !c && u && Oe.lessPadding) }, S.createElement("div", { id: Ft, className: Oe.message }, c ? null : u, e), d && S.createElement("div", { className: Oe.action }, d));
447
448
  });
448
449
  Yt.displayName = "MaterialDesignContent";
449
450
  var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), So = function(t) {
450
- var a = ne(), r = ee(!0), e = r[0], n = r[1], o = Ne([t.snack.onClose, t.onClose]), i = Z(function() {
451
+ var a = ne(), r = ee(!0), e = r[0], n = r[1], o = Pe([t.snack.onClose, t.onClose]), i = Z(function() {
451
452
  a.current = setTimeout(function() {
452
453
  n(function(B) {
453
454
  return !B;
454
455
  });
455
456
  }, 125);
456
457
  }, []);
457
- R(function() {
458
+ j(function() {
458
459
  return function() {
459
460
  a.current && clearTimeout(a.current);
460
461
  };
@@ -470,30 +471,30 @@ var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", pos
470
471
  return L({}, _, ((he = {})[X] = B[X], he));
471
472
  }, {});
472
473
  }(l);
473
- }, [l]), b = s.open, w = s.SnackbarProps, x = s.TransitionComponent, y = s.TransitionProps, g = s.transitionDuration, f = s.disableWindowBlurListener, M = s.content, C = Pe(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), Y = L({ direction: (c = C.anchorOrigin, c.horizontal !== "center" ? Mt[c.horizontal] : Mt[c.vertical]), timeout: g }, y), H = M;
474
- typeof H == "function" && (H = H(C.id, C.message));
474
+ }, [l]), b = s.open, w = s.SnackbarProps, x = s.TransitionComponent, y = s.TransitionProps, g = s.transitionDuration, f = s.disableWindowBlurListener, O = s.content, C = Ne(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), Y = L({ direction: (c = C.anchorOrigin, c.horizontal !== "center" ? Ot[c.horizontal] : Ot[c.vertical]), timeout: g }, y), R = O;
475
+ typeof R == "function" && (R = R(C.id, C.message));
475
476
  var q = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(B, z) {
476
477
  var _;
477
- return L({}, B, ((_ = {})[z] = Ne([t.snack[z], t[z]], C.id), _));
478
+ return L({}, B, ((_ = {})[z] = Pe([t.snack[z], t[z]], C.id), _));
478
479
  }, {});
479
- return S.createElement(Xt, { in: e, onExited: q.onExited }, S.createElement(Qt, { open: b, id: C.id, disableWindowBlurListener: f, autoHideDuration: C.autoHideDuration, className: fe(Co.wrappedRoot, m.root, m[xo(C.anchorOrigin)]), SnackbarProps: w, onClose: o }, S.createElement(x, Object.assign({}, Y, { appear: !0, in: b, onExit: q.onExit, onExited: i, onEnter: q.onEnter, onEntered: Ne([q.onEntered, function() {
480
+ return S.createElement(Xt, { in: e, onExited: q.onExited }, S.createElement(Qt, { open: b, id: C.id, disableWindowBlurListener: f, autoHideDuration: C.autoHideDuration, className: fe(Co.wrappedRoot, m.root, m[xo(C.anchorOrigin)]), SnackbarProps: w, onClose: o }, S.createElement(x, Object.assign({}, Y, { appear: !0, in: b, onExit: q.onExit, onExited: i, onEnter: q.onEnter, onEntered: Pe([q.onEntered, function() {
480
481
  t.snack.requestClose && o(null, "instructed", t.snack.id);
481
- }], C.id) }), H || S.createElement(d, Object.assign({}, C)))));
482
- }, Fe = { default: 20 }, ze = { default: 6, dense: 2 }, Nt = "." + Zt, Ue = Ie({ root: (We = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: ve(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, We[Nt] = { padding: ze.default + "px 0px", transition: "padding 300ms ease 0ms" }, We.maxWidth = "calc(100% - " + 2 * Fe.default + "px)", We[nt] = { width: "100%", maxWidth: "calc(100% - 32px)" }, We), rootDense: (at = {}, at[Nt] = { padding: ze.dense + "px 0px" }, at), top: { top: Fe.default - ze.default + "px", flexDirection: "column" }, bottom: { bottom: Fe.default - ze.default + "px", flexDirection: "column-reverse" }, left: (_e = { left: Fe.default + "px" }, _e[Ke] = { alignItems: "flex-start" }, _e[nt] = { left: "16px" }, _e), right: (Ve = { right: Fe.default + "px" }, Ve[Ke] = { alignItems: "flex-end" }, Ve[nt] = { right: "16px" }, Ve), center: (it = { left: "50%", transform: "translateX(-50%)" }, it[Ke] = { alignItems: "center" }, it) }), Lo = Ee(function(t) {
482
+ }], C.id) }), R || S.createElement(d, Object.assign({}, C)))));
483
+ }, Fe = { default: 20 }, ze = { default: 6, dense: 2 }, Pt = "." + Zt, Ue = Ie({ root: (We = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: ve(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, We[Pt] = { padding: ze.default + "px 0px", transition: "padding 300ms ease 0ms" }, We.maxWidth = "calc(100% - " + 2 * Fe.default + "px)", We[nt] = { width: "100%", maxWidth: "calc(100% - 32px)" }, We), rootDense: (at = {}, at[Pt] = { padding: ze.dense + "px 0px" }, at), top: { top: Fe.default - ze.default + "px", flexDirection: "column" }, bottom: { bottom: Fe.default - ze.default + "px", flexDirection: "column-reverse" }, left: (_e = { left: Fe.default + "px" }, _e[Ge] = { alignItems: "flex-start" }, _e[nt] = { left: "16px" }, _e), right: (Ve = { right: Fe.default + "px" }, Ve[Ge] = { alignItems: "flex-end" }, Ve[nt] = { right: "16px" }, Ve), center: (it = { left: "50%", transform: "translateX(-50%)" }, it[Ge] = { alignItems: "center" }, it) }), Lo = Ee(function(t) {
483
484
  var a = t.classes, r = a === void 0 ? {} : a, e = t.anchorOrigin, n = t.dense, o = t.children, i = fe(ho, Ue[e.vertical], Ue[e.horizontal], Ue.root, r.containerRoot, r["containerAnchorOrigin" + mt(e)], n && Ue.rootDense);
484
485
  return S.createElement("div", { className: i }, o);
485
- }), Pt = function(t) {
486
+ }), Nt = function(t) {
486
487
  return !(typeof t == "string" || ln(t));
487
488
  }, To = function(t) {
488
489
  function a(r) {
489
490
  var e;
490
491
  return (e = t.call(this, r) || this).enqueueSnackbar = function(n, o) {
491
492
  if (o === void 0 && (o = {}), n == null) throw new Error("enqueueSnackbar called with invalid argument");
492
- var i = Pt(n) ? n : o, c = Pt(n) ? n.message : n, s = i.key, l = i.preventDuplicate, u = Pe(i, ["key", "preventDuplicate"]), d = Re(s), m = d ? s : (/* @__PURE__ */ new Date()).getTime() + Math.random(), b = fo(u, e.props), w = L({ id: m }, u, { message: c, open: !0, entered: !1, requestClose: !1, persist: b("persist"), action: b("action"), content: b("content"), variant: b("variant"), anchorOrigin: b("anchorOrigin"), disableWindowBlurListener: b("disableWindowBlurListener"), autoHideDuration: b("autoHideDuration"), hideIconVariant: b("hideIconVariant"), TransitionComponent: b("TransitionComponent"), transitionDuration: b("transitionDuration"), TransitionProps: b("TransitionProps", !0), iconVariant: b("iconVariant", !0), style: b("style", !0), SnackbarProps: b("SnackbarProps", !0), className: fe(e.props.className, u.className) });
493
+ var i = Nt(n) ? n : o, c = Nt(n) ? n.message : n, s = i.key, l = i.preventDuplicate, u = Ne(i, ["key", "preventDuplicate"]), d = je(s), m = d ? s : (/* @__PURE__ */ new Date()).getTime() + Math.random(), b = fo(u, e.props), w = L({ id: m }, u, { message: c, open: !0, entered: !1, requestClose: !1, persist: b("persist"), action: b("action"), content: b("content"), variant: b("variant"), anchorOrigin: b("anchorOrigin"), disableWindowBlurListener: b("disableWindowBlurListener"), autoHideDuration: b("autoHideDuration"), hideIconVariant: b("hideIconVariant"), TransitionComponent: b("TransitionComponent"), transitionDuration: b("transitionDuration"), TransitionProps: b("TransitionProps", !0), iconVariant: b("iconVariant", !0), style: b("style", !0), SnackbarProps: b("SnackbarProps", !0), className: fe(e.props.className, u.className) });
493
494
  return w.persist && (w.autoHideDuration = void 0), e.setState(function(x) {
494
495
  if (l === void 0 && e.props.preventDuplicate || l) {
495
- var y = function(M) {
496
- return d ? M.id === m : M.message === c;
496
+ var y = function(O) {
497
+ return d ? O.id === m : O.message === c;
497
498
  }, g = x.queue.findIndex(y) > -1, f = x.snacks.findIndex(y) > -1;
498
499
  if (g || f) return x;
499
500
  }
@@ -517,7 +518,7 @@ var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", pos
517
518
  });
518
519
  return L({}, n, { snacks: c });
519
520
  }, e.handleEnteredSnack = function(n, o, i) {
520
- if (!Re(i)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
521
+ if (!je(i)) throw new Error("handleEnteredSnack Cannot be called with undefined key");
521
522
  e.setState(function(c) {
522
523
  return { snacks: c.snacks.map(function(s) {
523
524
  return s.id === i ? L({}, s, { entered: !0 }) : L({}, s);
@@ -538,9 +539,9 @@ var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", pos
538
539
  var o = e.state.snacks.find(function(i) {
539
540
  return i.id === n;
540
541
  });
541
- Re(n) && o && o.onClose && o.onClose(null, "instructed", n), e.handleCloseSnack(null, "instructed", n);
542
+ je(n) && o && o.onClose && o.onClose(null, "instructed", n), e.handleCloseSnack(null, "instructed", n);
542
543
  }, e.handleExitedSnack = function(n, o) {
543
- if (!Re(o)) throw new Error("handleExitedSnack Cannot be called with undefined key");
544
+ if (!je(o)) throw new Error("handleExitedSnack Cannot be called with undefined key");
544
545
  e.setState(function(i) {
545
546
  var c = e.processQueue(L({}, i, { snacks: i.snacks.filter(function(s) {
546
547
  return s.id !== o;
@@ -556,10 +557,10 @@ var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", pos
556
557
  }, {}), b = Object.keys(m).map(function(w) {
557
558
  var x = m[w], y = x[0];
558
559
  return S.createElement(Lo, { key: w, dense: s, anchorOrigin: y.anchorOrigin, classes: d }, x.map(function(g) {
559
- return S.createElement(So, { key: g.id, snack: g, classes: d, Component: u[g.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Ne([r.handleExitedSnack, r.props.onExited], g.id), onEntered: Ne([r.handleEnteredSnack, r.props.onEntered], g.id) });
560
+ return S.createElement(So, { key: g.id, snack: g, classes: d, Component: u[g.variant], onClose: r.handleCloseSnack, onEnter: r.props.onEnter, onExit: r.props.onExit, onExited: Pe([r.handleExitedSnack, r.props.onExited], g.id), onEntered: Pe([r.handleEnteredSnack, r.props.onEntered], g.id) });
560
561
  }));
561
562
  });
562
- return S.createElement(Ut.Provider, { value: e }, i, o ? Vn(b, o) : b);
563
+ return S.createElement(Ut.Provider, { value: e }, i, o ? Bn(b, o) : b);
563
564
  }, Vt(a, [{ key: "maxSnack", get: function() {
564
565
  return this.props.maxSnack || de.maxSnack;
565
566
  } }]), a;
@@ -572,7 +573,7 @@ const ae = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "
572
573
  }, []), b = Z(() => {
573
574
  s(r);
574
575
  }, [r, s]), w = o?.message || String(e);
575
- return h(ht, { ref: a, className: lt(ae.root, "error-snackbar"), children: ie(zn, { className: ae.card, style: { backgroundColor: l.palette.error.dark, border: `1px solid ${l.palette.error.dark}` }, children: [ie(Un, { className: ae.actionRoot, children: [i ? null : n?.error, h(Kn, { variant: "body2", component: "div", className: ae.typography, style: { color: l.palette.text.primary }, children: w }), h("div", { style: { flex: "1 1 auto" } }), ie("div", { className: ae.icons, children: [o ? h(ut, { "aria-label": "Show more", size: "small", className: lt(ae.expand, { [ae.expandOpen]: u }), style: { color: l.palette.action.active }, onClick: m, children: h(Xn, {}) }) : null, h(ut, { size: "small", className: ae.expand, style: { color: l.palette.action.active }, onClick: b, children: h(Qn, { fontSize: "small" }) })] })] }), o ? h(Gn, { in: u, timeout: "auto", unmountOnExit: !0, children: h("div", { className: ae.stackTraceContainer, style: { backgroundColor: l.palette.error.light, borderTop: `1px solid ${l.palette.error.main}` }, children: h(dn, { error: o, hideLineNumbers: !0 }) }) }) : null] }) });
576
+ return h(ht, { ref: a, className: lt(ae.root, "error-snackbar"), children: ie(_n, { className: ae.card, style: { backgroundColor: l.palette.error.dark, border: `1px solid ${l.palette.error.dark}` }, children: [ie(Vn, { className: ae.actionRoot, children: [i ? null : n?.error, h(zn, { variant: "body2", component: "div", className: ae.typography, style: { color: l.palette.text.primary }, children: w }), h("div", { style: { flex: "1 1 auto" } }), ie("div", { className: ae.icons, children: [o ? h(ut, { "aria-label": "Show more", size: "small", className: lt(ae.expand, { [ae.expandOpen]: u }), style: { color: l.palette.action.active }, onClick: m, children: h(Xn, {}) }) : null, h(ut, { size: "small", className: ae.expand, style: { color: l.palette.action.active }, onClick: b, children: h(Qn, { fontSize: "small" }) })] })] }), o ? h(Un, { in: u, timeout: "auto", unmountOnExit: !0, children: h("div", { className: ae.stackTraceContainer, style: { backgroundColor: l.palette.error.light, borderTop: `1px solid ${l.palette.error.main}` }, children: h(dn, { error: o, hideLineNumbers: !0 }) }) }) : null] }) });
576
577
  });
577
578
  en.displayName = "ToastError";
578
579
  const tn = Ee(oe((t, a) => {
@@ -601,55 +602,55 @@ const Do = h(En, { label: "SheetXL", description: "Visit me at sheetxl.com.", ch
601
602
  }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), nn = Ee(oe((t, a) => {
602
603
  const { commands: r, workbook: e, logo: n = Do, mainElement: o, showFileMenu: i = !0, showAppearanceMenu: c = !0, ...s } = t, { reference: l } = wn(), [u, { width: d }] = yn(), m = d < 530, b = i ? h(tn, { commands: r, commandHook: { beforeExecute() {
603
604
  l?.closeAll();
604
- }, onError(g, f, M) {
605
+ }, onError(g, f, O) {
605
606
  } } }) : null, w = c ? h(Sn, { commands: r, commandHook: { beforeExecute() {
606
607
  l?.closeAll();
607
- }, onError(g, f, M) {
608
+ }, onError(g, f, O) {
608
609
  } } }) : null, x = $(() => ({ paddingLeft: (g) => g.spacing(1), paddingRight: (g) => g.spacing(1) }), []), y = ne(null);
609
- return h(ue, { ref: jt([y, u, a]), ...s, children: vn({ commands: r, renderCompact: m, workbook: e, selectWrapper: (g) => ie(ue, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (f) => f.spacing(1), paddingLeft: (f) => f.spacing(1), paddingRight: (f) => f.spacing(1) }, children: [ie(ue, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (f) => f.spacing(0.5) }, children: [n, ie(ue, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (f) => f.spacing(0.25) }, children: [b, g] })] }), h(ue, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: o }), h(ue, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: m && !w ? "0 0 auto" : "1 1 100%" }, children: w })] }), selectProps: x, toolbarsProps: { Home: { sx: {} } } }) });
610
+ return h(ue, { ref: Ht([y, u, a]), ...s, children: vn({ commands: r, renderCompact: m, workbook: e, selectWrapper: (g) => ie(ue, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (f) => f.spacing(1), paddingLeft: (f) => f.spacing(1), paddingRight: (f) => f.spacing(1) }, children: [ie(ue, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (f) => f.spacing(0.5) }, children: [n, ie(ue, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (f) => f.spacing(0.25) }, children: [b, g] })] }), h(ue, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: o }), h(ue, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: m && !w ? "0 0 auto" : "1 1 100%" }, children: w })] }), selectProps: x, toolbarsProps: { Home: { sx: {} } } }) });
610
611
  }));
611
612
  nn.displayName = "StandaloneWorkbookToolbar";
612
613
  const on = Ee(oe((t, a) => {
613
614
  const { workbook: r, setWorkbook: e, refWorkbookTitle: n, titleWorkbook: o, setWorkbookTitle: i, titlePlaceHolder: c, children: s, undoManager: l, commands: u, importExportDisabled: d, themeModeOptions: m } = t, b = Jt(), w = b ? b.enqueueSnackbar : () => {
614
615
  }, x = b ? b.closeSnackbar : () => {
615
616
  }, [y, g] = ee({ isMounted: !1, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), f = Z(() => {
616
- g((O) => ({ ...O, isMounted: !0 }));
617
- }, []), M = Z(() => {
618
- g((O) => ({ ...O, isMounted: !1 }));
619
- }, []), C = On(), Y = Mn(), H = Wn(), q = ne(/* @__PURE__ */ new Set()), B = $(() => {
620
- const O = (v, E) => {
617
+ g((M) => ({ ...M, isMounted: !0 }));
618
+ }, []), O = Z(() => {
619
+ g((M) => ({ ...M, isMounted: !1 }));
620
+ }, []), C = Mn(), Y = On(), R = Wn(), q = ne(/* @__PURE__ */ new Set()), B = $(() => {
621
+ const M = (v, E) => {
621
622
  if (E?.onceKey) {
622
623
  if (q.current.has(E.onceKey)) return;
623
624
  const T = new Set(q.current);
624
625
  T.add(E.onceKey), q.current = T;
625
626
  }
626
- const W = { variant: E?.type ?? He.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: E?.preventDuplicate, persist: E?.persist ?? E?.type === He.Error, action: (T) => h(ut, { onClick: () => x(T), children: h(Yn, {}) }) };
627
+ const W = { variant: E?.type ?? Re.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: E?.preventDuplicate, persist: E?.persist ?? E?.type === Re.Error, action: (T) => h(ut, { onClick: () => x(T), children: h(Yn, {}) }) };
627
628
  E?.enqueueProps && Object.assign(W, E.enqueueProps), v || console.log("message is 'null'", E), w(v ?? "Alert", W);
628
629
  };
629
- return { showMessage: O, showBusy: (v, E) => {
630
+ return { showMessage: M, showBusy: (v, E) => {
630
631
  let W = null;
631
- const T = new Promise((j) => {
632
- W = j;
632
+ const T = new Promise((H) => {
633
+ W = H;
633
634
  });
634
- return g((j) => {
635
- const I = new Map(j.starting);
636
- return I.set(T, W), { ...j, label: v, starting: I };
635
+ return g((H) => {
636
+ const I = new Map(H.starting);
637
+ return I.set(T, W), { ...H, label: v, starting: I };
637
638
  }), T;
638
639
  }, showWindow: (v, E, W) => {
639
- const T = { ...E, onKeyDown: (j) => {
640
- u?.dispatchToFocusedCommand(j), j.isDefaultPrevented() || j.isPropagationStopped() || E?.onKeyDown?.(j);
640
+ const T = { ...E, onKeyDown: (H) => {
641
+ u?.dispatchToFocusedCommand(H), H.isDefaultPrevented() || H.isPropagationStopped() || E?.onKeyDown?.(H);
641
642
  } };
642
- return C(v, { sort: () => import("./DTW06ga7BIWfkpc3.mjs"), numberFormat: () => import("./CE3vBPdWXPf3M3h2.mjs"), hyperlink: () => import("./5uqs7KjiX3pi6cd5.mjs"), comments: () => import("./DpJqkBHKECEClAah.mjs"), find: () => import("./DJVGX60ly4BfiFse.mjs"), tableDetails: () => import("./B0k5xuPgYO9B-vto.mjs"), tableNew: () => import("./B9IRFHtuYz6_J4Sj.mjs"), namedDetails: () => import("./CE3LjR3RfccnMUQt.mjs") }[v], T, W);
643
- }, showOptions: Y, showInputOptions: H, showError: (v) => {
644
- let E, W = He.Error, T = "Unknown Error";
645
- typeof v == "string" ? T = v : v instanceof Error && (E = v, v.message && (T = v.message)), v instanceof Pn && (W = He.Info), O(T, { type: W, enqueueProps: { error: E } });
643
+ return C(v, { sort: () => import("./Drjhq-zlZ3HTK_ZI.mjs"), numberFormat: () => import("./DMOlhSnOh4hHXiw0.mjs"), hyperlink: () => import("./BRJgzXA_m_2aKWbd.mjs"), comments: () => import("./C2gkPo-K972JVp5g.mjs"), find: () => import("./DzW551wAkGdUKn1f.mjs"), tableDetails: () => import("./q-qojAI33CqmRx77.mjs"), tableNew: () => import("./Bx8dhDDGV4fnPcL4.mjs"), namedDetails: () => import("./DdsrrZg_d16qXBaF.mjs") }[v], T, W);
644
+ }, showOptions: Y, showInputOptions: R, showError: (v) => {
645
+ let E, W = Re.Error, T = "Unknown Error";
646
+ typeof v == "string" ? T = v : v instanceof Error && (E = v, v.message && (T = v.message)), v instanceof $n && (W = Re.Info), M(T, { type: W, enqueueProps: { error: E } });
646
647
  } };
647
648
  }, []), z = Z(() => {
648
- }, []), _ = ((O) => {
649
- const { workbook: v, setWorkbook: E, importExportDisabled: W, workbookTitle: T = "export", setWorkbookTitle: j, notifier: I, requestWorkbookTitle: J, themeModeOptions: F, undoManager: Ae, commands: Q, onExecute: ke } = O, je = te(F?.onForceModeChange, [F?.onForceModeChange]), Ze = te(F?.onForceLightGridChange, [F?.onForceLightGridChange]), be = te(F?.onForceLightImagesChange, [F?.onForceLightImagesChange]), Xe = te(async (D = null, U = null) => {
649
+ }, []), _ = ((M) => {
650
+ const { workbook: v, setWorkbook: E, importExportDisabled: W, workbookTitle: T = "export", setWorkbookTitle: H, notifier: I, requestWorkbookTitle: J, themeModeOptions: F, undoManager: Ae, commands: Q, onExecute: ke } = M, He = te(F?.onForceModeChange, [F?.onForceModeChange]), Ze = te(F?.onForceLightGridChange, [F?.onForceLightGridChange]), be = te(F?.onForceLightImagesChange, [F?.onForceLightImagesChange]), Xe = te(async (D = null, U = null) => {
650
651
  const p = [];
651
- let k, N = null, K = null;
652
- if (typeof D == "string" ? K = D : N = D, k = N ? D : await Ln.openFileDialog(K ?? pe.getAllReadFormatTypeAsString().join(",")), !k) return null;
652
+ let k, P = null, G = null;
653
+ if (typeof D == "string" ? G = D : P = D, k = P ? D : await Ln.openFileDialog(G ?? pe.getAllReadFormatTypeAsString().join(",")), !k) return null;
653
654
  const se = { source: k, constructorOptions: U, onWarning: (Ye) => {
654
655
  p.push(Ye);
655
656
  } }, Le = await pe.read(se, I);
@@ -666,36 +667,36 @@ const on = Ee(oe((t, a) => {
666
667
  } }), []), ce = $(() => {
667
668
  const D = [];
668
669
  W || (pe.getWriteFormats().forEach((p) => {
669
- const k = p.isDefault, N = { label: k ? "Save Workbook" : `Save Workbook as ${p.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${p.description}` }, tags: p.tags, description: `Save the workbook to the desktop${k ? "" : ` as ${p.description}`}.` };
670
- k && (N.shortcut = { key: "S", modifiers: [De.Ctrl] }, D.push(new G("saveWorkbookAs", A, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [De.Shift, De.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
670
+ const k = p.isDefault, P = { label: k ? "Save Workbook" : `Save Workbook as ${p.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${p.description}` }, tags: p.tags, description: `Save the workbook to the desktop${k ? "" : ` as ${p.description}`}.` };
671
+ k && (P.shortcut = { key: "S", modifiers: [De.Ctrl] }, D.push(new K("saveWorkbookAs", A, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [De.Shift, De.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
671
672
  Ce(v, null, p).catch((se) => {
672
673
  I?.showError?.(se);
673
674
  });
674
675
  })));
675
- const K = k ? "saveWorkbook" : `saveWorkbookAs${p.key}`;
676
- D.push(new G(K, A, N, (se) => {
676
+ const G = k ? "saveWorkbook" : `saveWorkbookAs${p.key}`;
677
+ D.push(new K(G, A, P, (se) => {
677
678
  Ce(v, se ?? T, p).catch((Le) => {
678
679
  I?.showError?.(Le);
679
680
  });
680
681
  }));
681
- }), D.push(new G("openWorkbook", A, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [De.Ctrl] } }, async (p = null) => {
682
+ }), D.push(new K("openWorkbook", A, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [De.Ctrl] } }, async (p = null) => {
682
683
  const k = { date1904: v.isDate1904(), ...v.options };
683
684
  try {
684
- const N = await Xe(p, k);
685
- if (!N) return;
686
- const K = N.title, se = N.workbook, Le = se.getSelectedSheet();
687
- if (N.formatType.mimeType === "text/csv") {
688
- const Ye = v.findValidSheetName(K);
685
+ const P = await Xe(p, k);
686
+ if (!P) return;
687
+ const G = P.title, se = P.workbook, Le = se.getSelectedSheet();
688
+ if (P.formatType.mimeType === "text/csv") {
689
+ const Ye = v.findValidSheetName(G);
689
690
  await v.doBatch(async () => {
690
691
  const gt = Le.getUsedRange();
691
692
  if (!gt) return void I?.showMessage("The file appears to be blank.");
692
693
  await v.getSheets().add({ name: Ye, autoSelect: !0 }).getRange({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }).copyFrom(gt);
693
- }, `Import CSV '${K}'`);
694
- } else v?.close(), j?.(K), E(se);
695
- } catch (N) {
696
- I?.showError?.(N);
694
+ }, `Import CSV '${G}'`);
695
+ } else v?.close(), H?.(G), E(se);
696
+ } catch (P) {
697
+ I?.showError?.(P);
697
698
  }
698
- })), D.push(new G("openWorkbookFromUrl", A, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(p) {
699
+ })), D.push(new K("openWorkbookFromUrl", A, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(p) {
699
700
  if (!p) {
700
701
  const k = await I?.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"] });
701
702
  if (k.option !== "Open") return;
@@ -704,30 +705,30 @@ const on = Ee(oe((t, a) => {
704
705
  p && console.log("openWorkbookFromUrl", p);
705
706
  })));
706
707
  let U = [];
707
- return F && (U = [new G("themeMode", A, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new G("defaultThemeMode", A, { 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 G("forceLightGrid", A, { 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 G("forceLightImages", A, { 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." })]), [...D, ...U, new xt("help", A, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
708
+ return F && (U = [new K("themeMode", A, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new K("defaultThemeMode", A, { 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 K("forceLightGrid", A, { 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 K("forceLightImages", A, { 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." })]), [...D, ...U, new xt("help", A, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
708
709
  }), new xt("showKeyboardShortcuts", A, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [De.Ctrl] } }, () => {
709
- }), new G("gotoUrlGithub", A, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
710
+ }), new K("gotoUrlGithub", A, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
710
711
  window?.open("https://github.com/sheetxl/sheetxl");
711
- }), new G("gotoUrlDiscord", A, { label: "Discord", description: "Join our community on discord." }, () => {
712
+ }), new K("gotoUrlDiscord", A, { label: "Discord", description: "Join our community on discord." }, () => {
712
713
  window?.open("https://discord.gg/NTKdwUgK9p");
713
- }), new G("gotoUrlDocumentation", A, { label: "Documentation", description: "Read the documentation." }, () => {
714
+ }), new K("gotoUrlDocumentation", A, { label: "Documentation", description: "Read the documentation." }, () => {
714
715
  window?.open("https://www.sheetxl.com/docs");
715
- }), new G("gotoUrlIssue", A, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
716
+ }), new K("gotoUrlIssue", A, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
716
717
  window?.open("https://github.com/sheetxl/sheetxl/issues");
717
718
  })];
718
719
  }, [v, T, I, W, F, Q, Ae]), V = $(() => {
719
720
  let D = null;
720
- return D = Q ? Q.createChildGroup(A, "standaloneWorkbook", !1) : new Ht(A, "standaloneWorkbook"), D.addCommands(ce, !0), D;
721
+ return D = Q ? Q.createChildGroup(A, "standaloneWorkbook", !1) : new Rt(A, "standaloneWorkbook"), D.addCommands(ce, !0), D;
721
722
  }, [Q, ce]);
722
723
  Tn({ manager: Ae, commands: V, notifier: I });
723
- const { themeMode: Se } = Rt();
724
- R(() => {
724
+ const { themeMode: Se } = jt();
725
+ j(() => {
725
726
  if (!F || !V) return;
726
727
  const D = F.forceMode === "dark" || !F.forceMode && Se === "dark";
727
728
  V.getCommand("themeMode").update({ state: F.forceMode ?? null, label: D ? "Dark Mode" : "Light Mode", scopedLabels: { appearance: D ? "Dark Mode" : "Light Mode" } }).updateCallback(() => {
728
- je(D ? ct.Light : ct.Dark);
729
+ He(D ? ct.Light : ct.Dark);
729
730
  }), V.getCommand("defaultThemeMode").update({ state: !F.forceMode }).updateCallback(() => {
730
- je(null);
731
+ He(null);
731
732
  }), V.getCommand("forceLightGrid").update({ state: F.forceLightGrid }).updateCallback(() => {
732
733
  Ze(!F.forceLightGrid);
733
734
  }), V.getCommand("forceLightImages").update({ state: F.forceLightImages }).updateCallback(() => {
@@ -735,54 +736,54 @@ const on = Ee(oe((t, a) => {
735
736
  });
736
737
  }, [Se, F, ce]);
737
738
  const { showModal: Qe } = Dn();
738
- return R(() => {
739
+ return j(() => {
739
740
  const D = () => new Promise((U, p) => {
740
- const k = S.lazy(() => import("./CTdZQdi5BoNPu7rZ.mjs")), N = Qe(k, { title: "Shortcut Keys Reference", commands: V, onDone: () => {
741
- N.hide();
741
+ const k = S.lazy(() => import("./Dw7dYD6MrvZb3WPh.mjs")), P = Qe(k, { title: "Shortcut Keys Reference", commands: V, onDone: () => {
742
+ P.hide();
742
743
  }, TransitionProps: { onExited: () => {
743
744
  U(!0);
744
745
  } } });
745
746
  });
746
747
  V.getCommand("showKeyboardShortcuts").updateCallback(() => D()), V.getCommand("help").updateCallback(() => D());
747
748
  }, [ce, V]), V;
748
- })({ workbook: r, setWorkbook: e, importExportDisabled: d, workbookTitle: o, setWorkbookTitle: i, commands: u, requestWorkbookTitle: (O) => new Promise((v) => {
749
+ })({ workbook: r, setWorkbook: e, importExportDisabled: d, workbookTitle: o, setWorkbookTitle: i, commands: u, requestWorkbookTitle: (M) => new Promise((v) => {
749
750
  n.current ? n.current.requestWorkbookTitle((E, W) => {
750
751
  v(E);
751
- }, { selectAll: !0, requestReason: O }) : v(c);
752
+ }, { selectAll: !0, requestReason: M }) : v(c);
752
753
  }), themeModeOptions: m, undoManager: l, notifier: B, onExecute: z });
753
- R(() => {
754
- y.starting.size <= 0 || !y.isMounted || g((O) => {
755
- const v = new Map(O.running);
756
- return O.starting.forEach((E, W) => {
754
+ j(() => {
755
+ y.starting.size <= 0 || !y.isMounted || g((M) => {
756
+ const v = new Map(M.running);
757
+ return M.starting.forEach((E, W) => {
757
758
  const T = () => {
758
- g((j) => {
759
- const I = new Map(j.running);
760
- return I.delete(W), { ...j, running: I };
759
+ g((H) => {
760
+ const I = new Map(H.running);
761
+ return I.delete(W), { ...H, running: I };
761
762
  });
762
763
  };
763
764
  v.set(W, T), E(T);
764
- }), { ...O, starting: /* @__PURE__ */ new Map(), running: v };
765
+ }), { ...M, starting: /* @__PURE__ */ new Map(), running: v };
765
766
  });
766
767
  }, [y]);
767
768
  const [X, he] = ee(null);
768
- R(() => {
769
- y.starting.size !== 0 || y.running.size !== 0 ? he(h(qt, { icon: h(Fn, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: y.label, onMount: f, onUnmount: M, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : he(null);
769
+ j(() => {
770
+ y.starting.size !== 0 || y.running.size !== 0 ? he(h(qt, { icon: h(Fn, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: y.label, onMount: f, onUnmount: O, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : he(null);
770
771
  }, [y.starting, y.running]);
771
- const P = $(() => h(Nn, { commands: _, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [_]), ge = { notifier: B, commands: _ };
772
- return r && (ge.statusBarProps = { childrenEnd: P }), ie(It, { children: [X, s ? S.cloneElement(s, ge) : null] });
772
+ const N = $(() => h(Pn, { commands: _, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [_]), ge = { notifier: B, commands: _ };
773
+ return r && (ge.statusBarProps = { childrenEnd: N }), ie(It, { children: [X, s ? S.cloneElement(s, ge) : null] });
773
774
  }));
774
775
  on.displayName = "SnackbarAndCommandsWrapper";
775
776
  const rn = Ee(oe((t, a) => {
776
- const { className: r, sx: e, style: n, onElementLoad: o, onError: i, undoManager: c, errorPanel: s = In, onKeyDown: l, workbook: u, createWorkbookOptions: d, onWorkbookChange: m, logo: b, importExportDisabled: w = !1, themeModeOptions: x, autoFocus: y = !1, commands: g, title: f, onTitleChange: M, titleProps: C, ...Y } = t, H = ne(null), q = te(m, [m]), B = te(M ?? C?.onTitleChange, [M ?? C?.onTitleChange]), z = C?.placeHolder ?? "Untitled", _ = x?.forceMode, { themeMode: X, source: he } = Rt({ mode: _ }), P = $(() => ({ ...x, light: wt(!1, et.deepMerge(x?.theme ?? {}, x?.light ?? {})), dark: wt(!0, et.deepMerge(x?.theme ?? {}, x?.dark ?? {})) }), [x]), ge = X === ct.Dark, [O, v] = ee(null);
777
- R(() => {
778
- v(c ?? new An());
777
+ const { className: r, sx: e, style: n, onElementLoad: o, onError: i, undoManager: c, errorPanel: s = Nn, onKeyDown: l, workbook: u, createWorkbookOptions: d, onWorkbookChange: m, logo: b, importExportDisabled: w = !1, themeModeOptions: x, autoFocus: y = !1, commands: g, title: f, onTitleChange: O, titleProps: C, ...Y } = t, R = ne(null), q = te(m, [m]), B = te(O ?? C?.onTitleChange, [O ?? C?.onTitleChange]), z = C?.placeHolder ?? "Untitled", _ = x?.forceMode, { themeMode: X, source: he } = jt({ mode: _ }), N = $(() => ({ ...x, light: wt(!1, et.deepMerge(x?.theme ?? {}, x?.light ?? {})), dark: wt(!0, et.deepMerge(x?.theme ?? {}, x?.dark ?? {})) }), [x]), ge = X === ct.Dark, [M, v] = ee(null);
778
+ j(() => {
779
+ v(c ?? new Zn());
779
780
  }, [c]);
780
- const [E, W] = ee(null), [T, j] = ee(null), I = jn();
781
+ const [E, W] = ee(null), [T, H] = ee(null), I = In();
781
782
  st(() => {
782
783
  if (!u || Object.keys(u).length === 0 && !et.isPromiseLike(u)) {
783
784
  const p = { theme: I.getDefaultTheme(), ...d };
784
- j(new yt(p));
785
- } else j(u);
785
+ H(new yt(p));
786
+ } else H(u);
786
787
  }, [u]), st(() => {
787
788
  if (T) {
788
789
  if (T instanceof yt) return W({ workbook: T }), void (u !== T && q?.(T));
@@ -797,63 +798,63 @@ const rn = Ee(oe((t, a) => {
797
798
  }
798
799
  }, [T]);
799
800
  const [J, F] = ee(null);
800
- R(() => {
801
- if (!O || !E) return;
802
- O.clear();
801
+ j(() => {
802
+ if (!M || !E) return;
803
+ M.clear();
803
804
  const p = E?.workbook?.getTransactions();
804
805
  if (p)
805
806
  return p.addListener({ onCommitEnd: (k) => {
806
- k.getDescription() ? O.addUndoOperation({ description: k.getDescription(), undo: () => (p.revert(k.getId()), J.source?.focus(), () => {
807
+ k.getDescription() ? M.addUndoOperation({ description: k.getDescription(), undo: () => (p.revert(k.getId()), J.source?.focus(), () => {
807
808
  p.restore(k.getId()), J.source?.focus();
808
809
  }) }) : console.warn("commit has no description", k);
809
810
  } });
810
- }, [O, E, J]);
811
+ }, [M, E, J]);
811
812
  const Ae = te((p) => {
812
- p ? O.setRepeatableOperation({ description: p.label(), repeat: async () => p.execute() }) : O.setRepeatableOperation(null);
813
- }, [O]), [Q, ke] = ee(f ?? C?.title ?? "");
814
- R(() => {
813
+ p ? M.setRepeatableOperation({ description: p.label(), repeat: async () => p.execute() }) : M.setRepeatableOperation(null);
814
+ }, [M]), [Q, ke] = ee(f ?? C?.title ?? "");
815
+ j(() => {
815
816
  ke(f ?? C?.title ?? "");
816
- }, [f ?? C?.title]), R(() => {
817
+ }, [f ?? C?.title]), j(() => {
817
818
  B?.(Q);
818
819
  }, [Q]);
819
- const [je, Ze] = ee(null), be = $(() => {
820
+ const [He, Ze] = ee(null), be = $(() => {
820
821
  const p = () => ({ contains: (k) => !0, focus() {
821
822
  } });
822
- return g ? g.createChildGroup(p, "application", !1) : new Ht(p, "application");
823
+ return g ? g.createChildGroup(p, "application", !1) : new Rt(p, "application");
823
824
  }, [g]), Xe = te((p) => {
824
825
  Ze(p.source.getViewportElement()), F(p), be.activate("sheet"), o?.(p);
825
826
  }, [be]);
826
- R(() => {
827
+ j(() => {
827
828
  J && y && J.source?.focus(typeof y == "object" ? y : void 0);
828
829
  }, [J]);
829
830
  const Ce = ne(null), A = Z((p) => {
830
831
  let k = null;
831
- return C?.hidden || (k = h(Hn, { ...C, style: { maxWidth: "100%", ...C?.style }, workbook: H.current, ref: Ce, title: Q, placeHolder: z, onTitleChange: (N) => {
832
- ke(N);
833
- } })), h(nn, { ...p, logo: b, mainElement: k, showFileMenu: !w, showAppearanceMenu: !!(P?.onForceLightGridChange || P?.onForceLightImagesChange || P?.onForceModeChange) });
834
- }, [b, Q, C, P, w, be]);
835
- R(() => {
832
+ return C?.hidden || (k = h(An, { ...C, style: { maxWidth: "100%", ...C?.style }, workbook: R.current, ref: Ce, title: Q, placeHolder: z, onTitleChange: (P) => {
833
+ ke(P);
834
+ } })), h(nn, { ...p, logo: b, mainElement: k, showFileMenu: !w, showAppearanceMenu: !!(N?.onForceLightGridChange || N?.onForceLightImagesChange || N?.onForceModeChange) });
835
+ }, [b, Q, C, N, w, be]);
836
+ j(() => {
836
837
  const p = (k) => k.preventDefault();
837
- return H.current?.addEventListener("wheel", p, { passive: !1 }), () => {
838
- H.current?.removeEventListener("wheel", p);
838
+ return R.current?.addEventListener("wheel", p, { passive: !1 }), () => {
839
+ R.current?.removeEventListener("wheel", p);
839
840
  };
840
841
  }, []);
841
- const ce = $(() => h(qt, { transparentBackground: !0, sx: e, style: n }), [e, n]), V = Z(({ error: p }) => (i?.(p), h(s, { sx: e, style: n, error: p ?? "Unable to display empty workbook." })), [e, n, i]), Se = $(() => ({ ...e, "& .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" } }), [e]), Qe = jt([H, a]), D = $(() => {
842
+ const ce = $(() => h(qt, { transparentBackground: !0, sx: e, style: n }), [e, n]), V = Z(({ error: p }) => (i?.(p), h(s, { sx: e, style: n, error: p ?? "Unable to display empty workbook." })), [e, n, i]), Se = $(() => ({ ...e, "& .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" } }), [e]), Qe = Ht([R, a]), D = $(() => {
842
843
  if (!E) return ce;
843
844
  if (E.error || !E.workbook) return V({ error: E.error });
844
- let p = null, k = null, N = !1;
845
- return P && (p = ge ? P.dark : P.light, k = ge && !P.forceLightGrid ? P.dark : P.light, N = P.forceLightImages), h(Rn, { sx: Se, style: n, tabIndex: 0, autoFocus: !0, workbook: E.workbook, ref: Qe, renderToolbar: A, onElementLoad: Xe, onRepeatCommandChange: Ae, onKeyDown: (K) => {
846
- l?.(K);
847
- }, gridTheme: k, headersTheme: p, forceLightImages: N, className: lt(r, "sheetxl-workbook"), onContextMenu: (K) => K.preventDefault(), ...Y }, "WorkbookElement");
848
- }, [E, Q, O, ce, P, Y, A, Se]);
849
- let U = h(eo, { fallbackRender: V, children: h(To, { maxSnack: 3, domRoot: je, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, k, N) => {
850
- H.current?.focus();
851
- }, Components: { error: en }, iconVariant: { success: h($n, { style: { marginRight: "8px" }, children: h("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: h(Bn, { style: { marginRight: "8px" } }) }, children: h(qn, { children: h(on, { workbook: E?.workbook, setWorkbook: j, importExportDisabled: w, titlePlaceHolder: z, titleWorkbook: Q, setWorkbookTitle: ke, refWorkbookTitle: Ce, commands: be, undoManager: O, themeModeOptions: P, children: D }) }) }) });
852
- return P && (U = ie(_n, { theme: ge ? P.dark : P.light, children: [P.cssBaseline ? h(Zn, {}) : null, U] })), U;
845
+ let p = null, k = null, P = !1;
846
+ return N && (p = ge ? N.dark : N.light, k = ge && !N.forceLightGrid ? N.dark : N.light, P = N.forceLightImages), h(Hn, { sx: Se, style: n, tabIndex: 0, autoFocus: !0, workbook: E.workbook, ref: Qe, renderToolbar: A, onElementLoad: Xe, onRepeatCommandChange: Ae, onKeyDown: (G) => {
847
+ l?.(G);
848
+ }, gridTheme: k, headersTheme: p, forceLightImages: P, className: lt(r, "sheetxl-workbook"), onContextMenu: (G) => G.preventDefault(), ...Y }, "WorkbookElement");
849
+ }, [E, Q, M, ce, N, Y, A, Se]);
850
+ let U = h(eo, { fallbackRender: V, children: h(To, { maxSnack: 3, domRoot: He, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (p, k, P) => {
851
+ R.current?.focus();
852
+ }, Components: { error: en }, iconVariant: { success: h(Gn, { style: { marginRight: "8px" }, children: h("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: h(jn, { style: { marginRight: "8px" } }) }, children: h(Rn, { children: h(on, { workbook: E?.workbook, setWorkbook: H, importExportDisabled: w, titlePlaceHolder: z, titleWorkbook: Q, setWorkbookTitle: ke, refWorkbookTitle: Ce, commands: be, undoManager: M, themeModeOptions: N, children: D }) }) }) });
853
+ return N && (U = ie(qn, { theme: ge ? N.dark : N.light, children: [N.cssBaseline ? h(Kn, {}) : null, U] })), U;
853
854
  }));
854
855
  rn.displayName = "EagerStandaloneWorkbook";
855
- const Ao = Object.freeze(Object.defineProperty({ __proto__: null, default: rn }, Symbol.toStringTag, { value: "Module" }));
856
+ const Ho = Object.freeze(Object.defineProperty({ __proto__: null, default: rn }, Symbol.toStringTag, { value: "Module" }));
856
857
  export {
857
- Ao as E,
858
+ Ho as E,
858
859
  fe as c
859
860
  };