@sheetxl/mcp 0.8.0-beta.22 → 0.8.0-beta.24

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 (215) hide show
  1. package/assets/{BHsqPfJZrdKTbPLP.js → 2YT_wstXIH6UIigi.js} +1 -1
  2. package/assets/{DtvJg63vbDd6B7sD.js → 3VycPrqi6qgLOgGY.js} +6 -6
  3. package/assets/{DoScYrfTJOHXe-Ko.js → 6CBUVbF01Bedq0e2.js} +66 -66
  4. package/assets/{D-MsUF59BhikcNZt.js → 76dPHG5RYA7MUV_g.js} +3 -3
  5. package/assets/{DgVCjvTw9Df1DV1x.js → 7IzItpr7MkdnaAwh.js} +167 -167
  6. package/assets/{DevKDvFONeJ9euEq.js → 7vPlH3_rhJxmmBvG.js} +1 -1
  7. package/assets/{BV49J63s68Mj6lgF.js → 9GnbVPKozgrJpeLW.js} +1 -1
  8. package/assets/{VSbzBtGH0cA8VBsM.js → B-5mBXpY9i6-eCrZ.js} +39 -39
  9. package/assets/{4zyHb1mmcFfqwpjO.js → B-t1q2NS61c2B8E4.js} +1 -1
  10. package/assets/{BSdRn3B8QeJFflY6.js → B16G2473LTkZP6Mq.js} +157 -137
  11. package/assets/{DrLUi6vduqDLmQjl.js → B4uS01J0mrSJSftQ.js} +89 -89
  12. package/assets/{BzFIkeB_lheiTR7z.js → B6caaQsfOpFEgYQ4.js} +1 -1
  13. package/assets/{b-xk3WtCPBkC4E-Z.js → B7lATTNffVTrDsKE.js} +2 -2
  14. package/assets/{hhpAcu3tINDLk7Ov.js → B8bEJ65vQRqsfBlS.js} +5 -5
  15. package/assets/{ryaMyh_8KvmXVSJd.js → BAVltO4Xf7lC0Xr6.js} +1 -1
  16. package/assets/{3N6hsbh2WLceyO6T.js → BH7ctzMzOYVTGxzA.js} +1 -1
  17. package/assets/{HVwvDMZh0ZGR-hRT.js → BJqo8c5bFKjnq69G.js} +11 -11
  18. package/assets/{DEOkcuqKBFyRnY18.js → BJwiwzwx4Bl5L4Vq.js} +1 -1
  19. package/assets/{CT99WREgkKGpcDTO.js → BPNLZ07Bu_B8Yhf1.js} +1 -1
  20. package/assets/{CSKjFDYwiwn5XNnH.js → BWLavTnANLUerdS0.js} +2 -2
  21. package/assets/{Dvsld01DkmiNLjfP.js → BXWGS09xFG81nnIT.js} +1 -1
  22. package/assets/{C4-0s3Udk3v4ytSn.js → BaYk1vO2hP2S3_1w.js} +2 -2
  23. package/assets/{CHqnRMWNpLKcAWWn.js → BifwlrCmEVtjh_1U.js} +1 -1
  24. package/assets/{CYCqMEoWsry6_hrc.js → BjyXkr-CzV8mVx0t.js} +1 -1
  25. package/assets/{Ds5pLAwSN4lSbao6.js → BkHeIMSE7-LehRCs.js} +1 -1
  26. package/assets/{CwNKcoA7na7Ess3a.js → BkekCZ17YTtd07_C.js} +2 -2
  27. package/assets/{0jPw8-AyT6VbPuGO.js → BnNB_ejvNaLu6B3o.js} +1 -1
  28. package/assets/{BPZWfwUvFCLQInXN.js → BrJd9jVVv9SQzZol.js} +400 -400
  29. package/assets/{BRVEVVhj-8ZPrNyQ.js → BrYc6PLonux_gI6b.js} +223 -223
  30. package/assets/{Cu4VAHfmjXWfTMPu.js → BxwB3iTNSE1TgHkb.js} +1 -1
  31. package/assets/{DgYcOz0M0pmZf9x_.js → By1QPrSxtnRiJu0R.js} +2 -2
  32. package/assets/{B5VTjL9m0R-Icfaz.js → ByYJTTTUuu67hDF-.js} +4 -4
  33. package/assets/{CXk5vwFfosghrTKo.js → C-nA4SXN5hWHaxV6.js} +535 -535
  34. package/assets/{BnGNMsqG5CzUzmX7.js → C0uu0vLKQh0S508B.js} +23 -23
  35. package/assets/{BDq4iVyBh5lwX8pE.js → C6PNMev7cs5JLgwy.js} +1 -1
  36. package/assets/{C1PTfp7kVu3DqqZh.js → C9iFJ52KwQTePQ81.js} +8944 -8935
  37. package/assets/{xDx1vaNa2aCMs4_e.js → CCF6CwJ6cbeLRl23.js} +1 -1
  38. package/assets/{CAgQJrDxGEfoa7jn.js → CEk658HeLJk2cAjM.js} +3 -3
  39. package/assets/{Bf7Irm8Ua4s1T4xH.js → CFNtPYPfDPH-3BXK.js} +1 -1
  40. package/assets/{CHG9Q0uLAZdLXYVz.js → CFT_tDogP98gTbh7.js} +101 -101
  41. package/assets/{ze6Q8BiEw9RClBzZ.js → CFWwwr74qRKOBrg9.js} +1 -1
  42. package/assets/{Bi65BKwwiZYYZprq.js → CIY_RiLu1_FmRLAA.js} +1 -1
  43. package/assets/{D9ja7F9irHf9Iovx.js → CIw6ZC3K9x-ccacl.js} +1 -1
  44. package/assets/{1dUPpOVZSeeylKHv.js → CJ2hV-9ipqOEkLSG.js} +1 -1
  45. package/assets/{vazKaFOkHRriv7tX.js → CKD460cQOgwF6uSV.js} +1 -1
  46. package/assets/{zJoBN2CJdxEV7vdh.js → CM-q_J5aF6YXmjeu.js} +3 -3
  47. package/assets/{9AosCdy_xtdhLjN1.js → CR1aLf7CWEfPTO9a.js} +1 -1
  48. package/assets/{E9mta1q4VtVUusy5.js → CSXmTA6w6Pnbtqvb.js} +1 -1
  49. package/assets/{BI5L_Ysr8s0TQxdg.js → CT4czEKWIj1GeQN8.js} +1 -1
  50. package/assets/{D8dNiNpu9_L0NjGP.js → CUYQlZz5zWsUdmRy.js} +1 -1
  51. package/assets/{CGB4xgirbgEIN3tg.js → CbJWbjmv4bz4ppIZ.js} +356 -354
  52. package/assets/{Bx592y6pyOwTS2x7.js → Cf0zmfQYfJ7zM0Ya.js} +1 -1
  53. package/assets/{8csqJ8aGOdnKlrLl.js → Ch9w7xFxVMrvGuC_.js} +1 -1
  54. package/assets/{GGcMgq3ScY7Tv0PE.js → CmkgQ5-IG0BSCM3R.js} +3 -3
  55. package/assets/{BkqENH8xJ3_NQnD5.js → CmwNIrRssYuLN2fn.js} +422 -422
  56. package/assets/{sYakw2x8dcnpUlsX.js → CnI4Nli8vtWdFKvf.js} +3 -3
  57. package/assets/{DRd8gdwcr3EqtGkb.js → CnKX5SPVE2iuSK42.js} +1 -1
  58. package/assets/{BvKzhnweVF6GhjXh.js → CpvJUGg9ckuCIpIS.js} +1 -1
  59. package/assets/{DFQLoYLUO4TgDZPK.js → Cxzowsi6ASdZtzeI.js} +1 -1
  60. package/assets/{tIoHMgrZeRHWyxos.js → CzRvg04_TIbwBH5C.js} +3 -3
  61. package/assets/{BygXDW3XTdtR38aA.js → D-vo2bQyAmStQmD9.js} +1 -1
  62. package/assets/{DxNK3HVEzFdUou54.js → D6d1DKL15m52ZCuC.js} +1 -1
  63. package/assets/{Z5tQQ6IW5YBjblWX.js → D8k9de_hen-KqBWe.js} +1 -1
  64. package/assets/{91BKH9obG4IfBzhy.js → DE7G34oYbvrfXbJ7.js} +383 -378
  65. package/assets/{BrfsWImwRtf54LUU.js → DFVQIZ2zZyAphhCF.js} +1 -1
  66. package/assets/{D1tShC5iBlUoT2V2.js → DGI_8HyNF0eAv0P5.js} +1 -1
  67. package/assets/{C1yAmXrOu3iHV2cu.js → DGOgx3-IyO8bjF_t.js} +83 -83
  68. package/assets/{BXean6K6oDUxkzyd.js → DIgPlkEabQdKNUQn.js} +1 -1
  69. package/assets/{DmVQgN-N_HhYvakk.js → DJGYlGr2Zj7SkYqc.js} +1 -1
  70. package/assets/{DzGpZ2CQ1St9BF0y.js → DJfpKncnYnrr28G0.js} +1 -1
  71. package/assets/{CHnaSM8aMnQ2_VWW.js → DL8pez0eKo8arYPj.js} +3 -3
  72. package/assets/{tPa3RpqYRqCCCYf1.js → DM-yGHahbfA_uarn.js} +1 -1
  73. package/assets/{DHHYGjNwlLvja3dS.js → DMDTS0LH9Ke9t-3z.js} +1 -1
  74. package/assets/{D89TE5n8VKre9Gmp.js → DNSWaXblwhTtI3w7.js} +1 -1
  75. package/assets/{UgDy0WNXuV1sEnFW.js → DOSWSyKkK4eSi4PD.js} +2 -2
  76. package/assets/{CHpBOpoM9bCvQyn0.js → DPLTGglaPovTg9e5.js} +1 -1
  77. package/assets/{CpYgsvYMxV5SbRp3.js → DPYFRLJbHGlrcrJq.js} +2 -2
  78. package/assets/{DLbzfP7OOWhafkTq.js → DRq6lQLndj73WT35.js} +1 -1
  79. package/assets/{BUGEQS5WdiLcI_0X.js → DRzZ4bEyLRGVOLzV.js} +1 -1
  80. package/assets/{BUIjRIGTum7VuRFk.js → DUbIxDAzW1dzrtdI.js} +1 -1
  81. package/assets/{OfjHqYH31KqC5gVM.js → DXCTHw-ZutNIuo_2.js} +1 -1
  82. package/assets/{OtMeAlbq6tyW5Hnc.js → D_tdoUtUe7cApQJn.js} +4 -4
  83. package/assets/{DawLBAaNAAmo_P3Y.js → DaF9L7No8h8a-cqb.js} +2 -2
  84. package/assets/{DdDKDqtpIkzd-mXi.js → DaHD9SY75O8wDy3p.js} +2 -2
  85. package/assets/{CXqqaFgNeUVRGvEb.js → Daaro0HbHkKXkBP-.js} +2 -2
  86. package/assets/{BiC09_YKQPmlUklQ.js → DczQhB3mRSUw6GCf.js} +1 -1
  87. package/assets/Dfv_T_PQVL0O3lu5.js +14 -0
  88. package/assets/{B6pXiayrnDoDbQt1.js → Dhy6iU_09lrQnOAV.js} +47 -47
  89. package/assets/{Dbh-XVDw294AVLtl.js → Dk9zYXO3VoBhTdex.js} +1 -1
  90. package/assets/{DQIQR1t3IkC9wshP.js → DkQ4kxEKhKYQgfjK.js} +1 -1
  91. package/assets/{CSGN4rAf7CYnBDEa.js → Dlqk7XqKnAZ8Pcj3.js} +83 -83
  92. package/assets/{BaaVzb7xXROiWUhT.js → DqSBb1HmgeU7eg_i.js} +84 -84
  93. package/assets/{BgwCdHyXKQYFAl1M.js → Ds4TB1hn56-RK6_f.js} +1 -1
  94. package/assets/{VWEaItb0XvCoRiCT.js → DtVSjxL6N_7WyM8Z.js} +1 -1
  95. package/assets/{C9wlvcFyjQA59G-_.js → DuEtCJEnG_GnJzTX.js} +1 -1
  96. package/assets/{DdnALoxd3b8TLNla.js → DwNcvKM47ZHfvQM6.js} +1 -1
  97. package/assets/{CdtVv8YQ8PTmS4dz.js → DyiH3LlinD-38bG7.js} +1 -1
  98. package/assets/{hAVtdK6u2tlLI2cB.js → Jy-_0a72nn5Iv1NK.js} +1 -1
  99. package/assets/{Bzp3UtK_6fqEVlV8.js → KMzONx2Ps841nJHj.js} +8 -8
  100. package/assets/{CV729JV1mNyYCmrq.js → LM2rVDHdB0jVUFcT.js} +1 -1
  101. package/assets/{do_DTptu6c_xHJoZ.js → MosMza0-rXD8uHX_.js} +2 -2
  102. package/assets/{COVhUB0EotytQDHg.js → NAWWzA_hk4wYtsPP.js} +2 -2
  103. package/assets/{CufFcGwo5x95LSb7.js → P6V3JAiRpC3BWceC.js} +1 -1
  104. package/assets/{1U3DwsqHnOBwiGWn.js → TZnuVwhVjkOBax9F.js} +2 -2
  105. package/assets/{nSzQt54CIADky_tF.js → TdDTOcC1TYhk6UuR.js} +1 -1
  106. package/assets/{CGxhgXj5qKj_Ubcp.js → Xccc6oxtlSvJUDsC.js} +1 -1
  107. package/assets/{DAqaOCEQLmZRjcdR.js → a2e_g9YI3J-lUD7-.js} +1 -1
  108. package/assets/{D-N87jCOShDKTFDh.js → b8yACuWy67eIj_j2.js} +1 -1
  109. package/assets/{BlxrCp7d-SeM-2DW.js → bv3fZLUPzd14I58C.js} +631 -621
  110. package/assets/{CKhbbbjQ-_auMp3n.js → doqBmhonQlHp-1Ud.js} +1 -1
  111. package/assets/{BZxJKqVEO7B23XwE.js → fEfisM0E2fUYKIyU.js} +5 -5
  112. package/assets/{v5XZSqLd9ZV3kqcA.js → flby0g5gyZ9P2Wu2.js} +1 -1
  113. package/assets/{coTH4ab6CTEzw87b.js → g2Nu44uuSJFMzxEV.js} +2 -2
  114. package/assets/{Cahhn5OLNqRYy-n8.js → mZt9BTEejCJZ4YK4.js} +1 -1
  115. package/assets/{BnK6HEqT4rf1RoOG.js → qc7rA-Z3a4rkVQPx.js} +217 -217
  116. package/assets/{DsBXjYAgTUXAAWZZ.js → sJVPCrgeh0U6LbAK.js} +1 -1
  117. package/assets/{wWgI0JPoe_Wv0ceW.js → suLYEZBtGUhSYeB7.js} +1 -1
  118. package/assets/{WSiEiaP-NUEr9UaB.js → tWO-mE87mAuj1qih.js} +2 -2
  119. package/assets/{DdXp_iPwTOHAOvlL.js → xD41vsQY6h60lCqz.js} +1168 -1170
  120. package/assets/{C7zManFR1LEJXiwb.js → yz2PTfYm_8EGJPM5.js} +1 -1
  121. package/index.js +117 -117
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +12 -12
  124. package/package.json +4 -4
  125. package/screenshot-page/assets/{CFl15-2FAF9f3V7L.js → 0UZBKpOOsp7P-DkP.js} +2 -2
  126. package/screenshot-page/assets/{DfT1DMR1b5kiyYiV.js → B-0-chiwq4MIUQy9.js} +1 -1
  127. package/screenshot-page/assets/B7pXfEVkcbaMBMhc.js +1 -0
  128. package/screenshot-page/assets/BDRMUi2BsnBqytIq.js +2 -0
  129. package/screenshot-page/assets/BEjJHVSbtlsNtoq7.js +3 -0
  130. package/screenshot-page/assets/{BnZX0sxceYpvtg3I.js → BIuMiduMHSsTGacU.js} +2 -2
  131. package/screenshot-page/assets/BKwDvElKinpn1IK0.js +1 -0
  132. package/screenshot-page/assets/BPMQ22uISGOm3ymr.js +1 -0
  133. package/screenshot-page/assets/{adhmz3N2Kgq5eW66.js → BTJ1NNUzHotNDiDe.js} +2 -2
  134. package/screenshot-page/assets/BbT5KRhoeAKLzy54.js +2 -0
  135. package/screenshot-page/assets/{Dwv5Z_c2XS-hm-5y.js → BcZPWw18bdj_ZvA9.js} +1 -1
  136. package/screenshot-page/assets/{BEwl-ucV9Jfr0RoC.js → Bdb0azxGoCh6NBDk.js} +1 -1
  137. package/screenshot-page/assets/{CcOIj8c4N9KaWnD7.js → Bfq6-treWd_rRiWl.js} +1 -1
  138. package/screenshot-page/assets/{BGh5K-hHzy8mSVDr.js → Bg9UyX4yrB2mSdJt.js} +12 -12
  139. package/screenshot-page/assets/Bxq4FCQhyPbVhhaR.js +2 -0
  140. package/screenshot-page/assets/{zFbb8ESzwR_bE7IQ.js → CBP4y6KFPu24xhDT.js} +1 -1
  141. package/screenshot-page/assets/CI3Z1f4amZ9G2rPD.js +5 -0
  142. package/screenshot-page/assets/{COpZTXe_J1mSpeYD.js → CNB6WmYfGVZjlCKV.js} +1 -1
  143. package/screenshot-page/assets/{CXGgKVbVXjWzE0p6.js → CQ-33-es3XJ56pR4.js} +1 -1
  144. package/screenshot-page/assets/CSFFMEKyxEFaykqL.js +1 -0
  145. package/screenshot-page/assets/CXeJV1BW2CVemhPE.js +1 -0
  146. package/screenshot-page/assets/{Cmv8bpHaTWZ7Lmbt.js → C_YKEkTsGB_5gFNg.js} +2 -2
  147. package/screenshot-page/assets/CkxmJxdtjBIxYoMq.js +1 -0
  148. package/screenshot-page/assets/CtiTwHzd_ZSzd3W2.js +1 -0
  149. package/screenshot-page/assets/CwCu_r0BW41uLt3P.js +2 -0
  150. package/screenshot-page/assets/{DdusmeEPaU7CWT6e.js → Cx9eq2x1gIXGki3Q.js} +1 -1
  151. package/screenshot-page/assets/D43IayseD2Cy8OZo.js +4 -0
  152. package/screenshot-page/assets/{BftXEPOuf5Uwxpud.js → D6Ciix7JAZtdKqmj.js} +1 -1
  153. package/screenshot-page/assets/D6EXAYU-ZH8hjx_7.js +2 -0
  154. package/screenshot-page/assets/D7Yt7xmUlA6-Lq0Q.js +48 -0
  155. package/screenshot-page/assets/D8KyhLvfyjLZW92H.js +39 -0
  156. package/screenshot-page/assets/DACSL7FA_J91Z_H7.js +2 -0
  157. package/screenshot-page/assets/DBxAatsD6aWk7Zb6.js +586 -0
  158. package/screenshot-page/assets/DGkaCFHx4PsOJkFu.js +1 -0
  159. package/screenshot-page/assets/DM6hr-bvWV50-Oex.js +2 -0
  160. package/screenshot-page/assets/DOVt9zHz7FQ2KUQM.js +1 -0
  161. package/screenshot-page/assets/DR-og7vslxlOZd8j.js +1 -0
  162. package/screenshot-page/assets/DSTlKGmqncM7XHeW.js +1 -0
  163. package/screenshot-page/assets/Dh14XQinAphjZOKC.js +1 -0
  164. package/screenshot-page/assets/Dkf51CnZh2zPEGMd.js +1 -0
  165. package/screenshot-page/assets/{nM1r2xslndIMKlI2.js → DmDFKv_3APEWI-IY.js} +2 -2
  166. package/screenshot-page/assets/Dt8JxbBBr2TeDflQ.js +1 -0
  167. package/screenshot-page/assets/Dxi-bXNjS-CpC5Qr.js +1 -0
  168. package/screenshot-page/assets/{Bm9-R9keVK5Sx-8o.js → DynKB5GH-vfFMJEy.js} +1 -1
  169. package/screenshot-page/assets/{CZq2dMHs2MHHyyBl.js → FcTM4SB17cEX1M3X.js} +1 -1
  170. package/screenshot-page/assets/{B668_VaGrdcWRbkC.js → FqdZRM336KMEcsbU.js} +1 -1
  171. package/screenshot-page/assets/Oay0yGsGYgJDzy8r.js +1 -0
  172. package/screenshot-page/assets/Pt9ne0xkE2icD3Ih.js +1 -0
  173. package/screenshot-page/assets/QZg76Jflu3Q808W3.js +1 -0
  174. package/screenshot-page/assets/{BRemww1df2HKLd_k.js → WTrYzPnMQhYDILMR.js} +1 -1
  175. package/screenshot-page/assets/{CXUO3vYip3JPSJ7A.js → YH1wNXzhQbkuWxeS.js} +1 -1
  176. package/screenshot-page/assets/{CQ9C0-FcDZxrgC3T.js → a3fvt1Klg1uGE7p6.js} +7 -7
  177. package/screenshot-page/assets/{D8-mayyvvVE1a4JB.js → clrFU8i-0wNkmbs7.js} +1 -1
  178. package/screenshot-page/assets/{-cpi3yOZYn6GsYN4.js → gU2zeJaXoNh7QI_e.js} +2 -2
  179. package/screenshot-page/assets/r2HZG9_SMzF3__ID.js +13 -0
  180. package/screenshot-page/index.html +16 -16
  181. package/types/scripting-api.json +5747 -5744
  182. package/types/scripting.d.ts +27 -3
  183. package/assets/r-pk3RNq_HjMQFqr.js +0 -14
  184. package/screenshot-page/assets/0buGanYjZDNd9qAK.js +0 -39
  185. package/screenshot-page/assets/B2oadmu_j6WfNbZ1.js +0 -1
  186. package/screenshot-page/assets/BGWgIYge30MP6Xhz.js +0 -48
  187. package/screenshot-page/assets/BIQ7KK-buzeddVA9.js +0 -1
  188. package/screenshot-page/assets/BPRDGSNh0kvXRFUY.js +0 -1
  189. package/screenshot-page/assets/Bv2MgCMkg3EIQ6iE.js +0 -13
  190. package/screenshot-page/assets/BvaiwYJ5zZ0d5NRP.js +0 -1
  191. package/screenshot-page/assets/CAlTfQ_Gh-dURmUc.js +0 -1
  192. package/screenshot-page/assets/CCFxspvs5VzbYCfl.js +0 -1
  193. package/screenshot-page/assets/CCqTTfzZokVHIzs2.js +0 -1
  194. package/screenshot-page/assets/CPs_ARK8JCyz-yZg.js +0 -1
  195. package/screenshot-page/assets/CUeMb48Ucrm5dK5u.js +0 -1
  196. package/screenshot-page/assets/CjrHeIdacavAT_Ud.js +0 -3
  197. package/screenshot-page/assets/CqccUqSMYlwlf2ZU.js +0 -2
  198. package/screenshot-page/assets/CvmImq-Kbg9srxNr.js +0 -4
  199. package/screenshot-page/assets/D-3wYBqe4SWdE6bx.js +0 -2
  200. package/screenshot-page/assets/D-FWnGDbZ9BRDzPR.js +0 -1
  201. package/screenshot-page/assets/D717DArr-KKL0U6R.js +0 -1
  202. package/screenshot-page/assets/DM27mE98BNk1T18I.js +0 -1
  203. package/screenshot-page/assets/DN-T1DyRMKvxEJSK.js +0 -1
  204. package/screenshot-page/assets/DRdL1GN4SP7P8lSP.js +0 -2
  205. package/screenshot-page/assets/DcnhaY93LQd7kVdH.js +0 -2
  206. package/screenshot-page/assets/DigI6jhjHePzLgg1.js +0 -1
  207. package/screenshot-page/assets/DrDLCC0R2IV5VJd7.js +0 -1
  208. package/screenshot-page/assets/DuYb_otrRZZDq6-f.js +0 -2
  209. package/screenshot-page/assets/Dx0pUf3G4Oa3dGOk.js +0 -1
  210. package/screenshot-page/assets/JcgNMFaj_uqHSFxr.js +0 -1
  211. package/screenshot-page/assets/U_8_wApwfA7KmIG3.js +0 -586
  212. package/screenshot-page/assets/WZprjN2sb7HlraOb.js +0 -2
  213. package/screenshot-page/assets/qjoaeEBxfKWCHmqK.js +0 -2
  214. package/screenshot-page/assets/zALFdtoGJBN6m2Bn.js +0 -1
  215. package/screenshot-page/assets/zd1Z2E1NjFp2EWC7.js +0 -5
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.22
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.24
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { r as e } from "./Dvsld01DkmiNLjfP.js";
8
- import { B as t, D as s, I as r, J as i, S as o, T as n, Z as a, bt as l, ct as h, ht as c, i as u, ot as d, p as g, tt as f, u as _, xt as m } from "./DHHYGjNwlLvja3dS.js";
9
- import { a as p, c as w, s as y } from "./1U3DwsqHnOBwiGWn.js";
10
- import { At as S, C as b, E as k, F as C, G as v, I, Jt as R, L as N, U as O, Ut as x, Vt as L, Xt as E, Y as V, bt as A, ht as T, lt as P, qt as F, ut as B, v as W } from "./BSdRn3B8QeJFflY6.js";
11
- import { f as M, u as j } from "./BUGEQS5WdiLcI_0X.js";
12
- import { $a as D, $i as H, Ai as z, Cn as $, Dr as U, F as J, Fn as q, Ft as K, Gn as G, Ha as Z, Hr as X, Ht as Y, Ii as Q, Ji as ee, Kn as te, L as se, La as re, Mr as ie, Ni as oe, O as ne, Oi as ae, Or as le, Ot as he, Pr as ce, Pt as ue, Ra as de, T as ge, Tt as fe, U as _e, Ui as me, Ur as pe, Vi as we, Vt as ye, W as Se, Yr as be, Z as ke, Zn as Ce, Zr as ve, _a as Ie, c as Re, ct as Ne, d as Oe, dr as xe, en as Le, fa as Ee, fn as Ve, fo as Ae, gn as Te, gr as Pe, gt as Fe, ha as Be, hn as We, ho as Me, jr as je, ka as De, nr as He, oi as ze, oo as $e, pi as Ue, po as Je, pr as qe, pt as Ke, qa as Ge, qt as Ze, so as Xe, sr as Ye, tt as Qe, u as et, yi as tt, z as st, za as rt, zr as it } from "./C1PTfp7kVu3DqqZh.js";
7
+ import { r as e } from "./BXWGS09xFG81nnIT.js";
8
+ import { B as t, D as s, I as r, J as i, S as o, T as n, Z as a, bt as l, ct as h, ht as c, i as u, ot as d, p as g, tt as m, u as f, xt as _ } from "./DMDTS0LH9Ke9t-3z.js";
9
+ import { a as p, c as w, s as y } from "./TZnuVwhVjkOBax9F.js";
10
+ import { F as S, G as b, Ht as k, Kt as C, N as v, P as I, U as R, Y as N, Yt as O, ct as x, kt as E, lt as L, m as V, mt as A, qt as T, w as P, x as F, yt as B, zt as W } from "./B16G2473LTkZP6Mq.js";
11
+ import { f as M, u as j } from "./DRzZ4bEyLRGVOLzV.js";
12
+ import { $a as D, $r as z, Ar as H, E as $, Fi as U, Fr as J, Ga as q, Gi as K, Gn as G, I as X, J as Z, Ji as Q, Kn as Y, La as ee, Lr as te, M as se, Ma as re, Mt as ie, Pn as oe, Qn as ne, Ri as ae, Rn as le, Rr as he, Si as ce, Sr as ue, Ti as de, Tn as ge, Ua as me, Ut as fe, Wa as _e, Wr as pe, Wt as we, X as ye, Xa as Se, Xr as be, ai as ke, ar as Ce, bi as ve, bn as Ie, c as Re, d as Ne, ei as Oe, er as xe, fo as Ee, ia as Le, ir as Ve, jr as Ae, l as Te, li as Pe, lr as Fe, mi as Be, mo as We, n as Me, ni as je, no as De, oi as ze, ot as He, pt as $e, qa as Ue, rt as Je, sn as qe, uo as Ke, vn as Ge, vt as Xe, wi as Ze, wr as Qe, x as Ye, xn as et, yr as tt, yt as st, za as rt, zt as it } from "./C9iFJ52KwQTePQ81.js";
13
13
  var ot, nt, at = class extends r {
14
14
  constructor(e, t = 50) {
15
15
  super(t), this._transactions = e, this._floorId = e ? e.getCurrentCommit(!1).getId() : null, this._removeListener = e?.addListener({ onCommitChange: () => this._notifyOnStackChange() });
@@ -183,7 +183,7 @@ var ut = class e {
183
183
  getExtension() {
184
184
  const e = this._cleanPath();
185
185
  if (!e) return null;
186
- const t = z(e);
186
+ const t = de(e);
187
187
  return t ? t.toLowerCase() : null;
188
188
  }
189
189
  getEncryption() {
@@ -233,7 +233,7 @@ var ut = class e {
233
233
  ];
234
234
  return `${t} ${(s / Math.pow(1024, r)).toFixed(2)}${i[Math.min(r, i.length - 1)]}`;
235
235
  }
236
- }, dt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new Set(), ft = (e) => dt.get(e) ?? null, _t = class e {
236
+ }, dt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new Set(), mt = (e) => dt.get(e) ?? null, ft = class e {
237
237
  constructor(t) {
238
238
  this._released = !1, e._assertFree(t), this._emitter = new y(this), this._origin = t, dt.set(t, this), gt.add(this);
239
239
  }
@@ -252,7 +252,7 @@ var ut = class e {
252
252
  static _assertFree(e) {
253
253
  if (dt.has(e)) throw new Error("This origin already backs an open workbook; an origin backs one workbook at a time.");
254
254
  }
255
- }, mt = class {
255
+ }, _t = class {
256
256
  constructor() {
257
257
  this._defaultStringSourceType = "filepath";
258
258
  }
@@ -275,7 +275,7 @@ var ut = class e {
275
275
  const e = s, r = e?.name, n = r ? `${xe(r)}` : "";
276
276
  a = await e.arrayBuffer(), l = {
277
277
  format: o,
278
- ext: z(r),
278
+ ext: de(r),
279
279
  name: n,
280
280
  absolutePath: r,
281
281
  size: e.size,
@@ -299,7 +299,7 @@ var ut = class e {
299
299
  const [, t] = s.split(",");
300
300
  e = t;
301
301
  } else e = s;
302
- a = m.base64ToArrayBuffer(e), l = {
302
+ a = _.base64ToArrayBuffer(e), l = {
303
303
  format: o,
304
304
  size: e.length
305
305
  };
@@ -315,7 +315,7 @@ var ut = class e {
315
315
  t = e.input, r = e.init, i = e.timeout;
316
316
  }
317
317
  }
318
- const n = i || 3e4, h = new AbortController(), c = setTimeout(() => h.abort(), n), u = "string" == typeof t ? t : t.toString(), d = z(u);
318
+ const n = i || 3e4, h = new AbortController(), c = setTimeout(() => h.abort(), n), u = "string" == typeof t ? t : t.toString(), d = de(u);
319
319
  try {
320
320
  const e = await fetch(t, {
321
321
  ...r,
@@ -401,10 +401,10 @@ var ut = class e {
401
401
  }
402
402
  if ("undefined" != typeof File && e instanceof File) return "file";
403
403
  if ("undefined" != typeof Blob && e instanceof Blob) return "blob";
404
- const t = e instanceof ArrayBuffer || "[object ArrayBuffer]" === Object.prototype.toString.call(e), s = ArrayBuffer.isView(e), r = m.isNodeBuffer(e);
404
+ const t = e instanceof ArrayBuffer || "[object ArrayBuffer]" === Object.prototype.toString.call(e), s = ArrayBuffer.isView(e), r = _.isNodeBuffer(e);
405
405
  return t || s || r ? "buffer" : "undefined" != typeof ReadableStream && e instanceof ReadableStream || "[object ReadableStream]" === Object.prototype.toString.call(e) || e && "function" == typeof e.getReader && void 0 !== e.locked ? "stream" : null;
406
406
  }
407
- }, pt = class extends mt {
407
+ }, pt = class extends _t {
408
408
  constructor(e, t) {
409
409
  super();
410
410
  }
@@ -444,7 +444,7 @@ var ut = class e {
444
444
  ), r = e.origin.getPath(), i = !(!r || !e.origin.canWrite()), o = i ? r : e.origin.getName() ? e.suggestedName : null;
445
445
  if (!o) throw new Error("No file name provided to write to.");
446
446
  const n = s.resolve(o.replace(/\\/g, "/")), a = this.findOpenPath(n, e.workbook?.getOrigin?.());
447
- if (a) throw new f(g("error.io.openElsewhere", { name: a.getName() ?? n }));
447
+ if (a) throw new m(g("error.io.openElsewhere", { name: a.getName() ?? n }));
448
448
  const l = i ? e.origin : new ut(n, {
449
449
  format: e.format.key,
450
450
  canWrite: !0
@@ -487,30 +487,30 @@ var wt, yt, St, bt, kt = {
487
487
  BottomLeft: "bl",
488
488
  Bottom: "b",
489
489
  BottomRight: "br"
490
- }, Ct = W.BuiltInName, vt = {
491
- [Ct.Normal]: _("style.builtin.normal"),
492
- [Ct.Comma]: _("style.builtin.comma"),
493
- [Ct.Currency]: _("style.builtin.currency"),
494
- [Ct.Percent]: _("style.builtin.percent"),
495
- [Ct.Comma0]: _("style.builtin.comma0"),
496
- [Ct.Currency0]: _("style.builtin.currency0"),
497
- [Ct.Hyperlink]: _("style.builtin.hyperlink"),
498
- [Ct.FollowedHyperlink]: _("style.builtin.followedHyperlink"),
499
- [Ct.Note]: _("style.builtin.note"),
500
- [Ct.WarningText]: _("style.builtin.warningText"),
501
- [Ct.Title]: _("style.builtin.title"),
502
- [Ct.Input]: _("style.builtin.input"),
503
- [Ct.Output]: _("style.builtin.output"),
504
- [Ct.Calculation]: _("style.builtin.calculation"),
505
- [Ct.CheckCell]: _("style.builtin.checkCell"),
506
- [Ct.LinkedCell]: _("style.builtin.linkedCell"),
507
- [Ct.Total]: _("style.builtin.total"),
508
- [Ct.Good]: _("style.builtin.good"),
509
- [Ct.Bad]: _("style.builtin.bad"),
510
- [Ct.Neutral]: _("style.builtin.neutral"),
511
- [Ct.ExplanatoryText]: _("style.builtin.explanatoryText")
512
- }, It = _("style.builtin.heading"), Rt = _("style.builtin.accent"), Nt = _("style.builtin.accentTint"), Ot = /^Heading ([1-4])$/, xt = /^Accent([1-6])$/, Lt = /^(20|40|60)% - Accent([1-6])$/;
513
- function Et(e) {
490
+ }, Ct = V.BuiltInName, vt = {
491
+ [Ct.Normal]: f("style.builtin.normal"),
492
+ [Ct.Comma]: f("style.builtin.comma"),
493
+ [Ct.Currency]: f("style.builtin.currency"),
494
+ [Ct.Percent]: f("style.builtin.percent"),
495
+ [Ct.Comma0]: f("style.builtin.comma0"),
496
+ [Ct.Currency0]: f("style.builtin.currency0"),
497
+ [Ct.Hyperlink]: f("style.builtin.hyperlink"),
498
+ [Ct.FollowedHyperlink]: f("style.builtin.followedHyperlink"),
499
+ [Ct.Note]: f("style.builtin.note"),
500
+ [Ct.WarningText]: f("style.builtin.warningText"),
501
+ [Ct.Title]: f("style.builtin.title"),
502
+ [Ct.Input]: f("style.builtin.input"),
503
+ [Ct.Output]: f("style.builtin.output"),
504
+ [Ct.Calculation]: f("style.builtin.calculation"),
505
+ [Ct.CheckCell]: f("style.builtin.checkCell"),
506
+ [Ct.LinkedCell]: f("style.builtin.linkedCell"),
507
+ [Ct.Total]: f("style.builtin.total"),
508
+ [Ct.Good]: f("style.builtin.good"),
509
+ [Ct.Bad]: f("style.builtin.bad"),
510
+ [Ct.Neutral]: f("style.builtin.neutral"),
511
+ [Ct.ExplanatoryText]: f("style.builtin.explanatoryText")
512
+ }, It = f("style.builtin.heading"), Rt = f("style.builtin.accent"), Nt = f("style.builtin.accentTint"), Ot = /^Heading ([1-4])$/, xt = /^Accent([1-6])$/, Et = /^(20|40|60)% - Accent([1-6])$/;
513
+ function Lt(e) {
514
514
  const t = vt[e];
515
515
  if (t) return { key: t };
516
516
  let s = Ot.exec(e);
@@ -520,7 +520,7 @@ function Et(e) {
520
520
  } : (s = xt.exec(e), s ? {
521
521
  key: Rt,
522
522
  params: { n: +s[1] }
523
- } : (s = Lt.exec(e), s ? {
523
+ } : (s = Et.exec(e), s ? {
524
524
  key: Nt,
525
525
  params: {
526
526
  pct: +s[1],
@@ -532,8 +532,8 @@ var Vt, At = (e, t, s, r, i) => {
532
532
  const o = JSON.parse(JSON.stringify(e.definition));
533
533
  o.adjs || (o.adjs = []);
534
534
  let n = "", a = 0, l = 0;
535
- t > 0 ? (l = t, a = 100 - t, n = g("op.lighterPercent", { percent: t })) : t < 0 && (a = 100 + t, n = g("op.darkerPercent", { percent: -t })), a && o.adjs.push({ [L.AdjustmentType.LumMod]: a }), l && o.adjs.push({ [L.AdjustmentType.LumOff]: l });
536
- const h = new O({
535
+ t > 0 ? (l = t, a = 100 - t, n = g("op.lighterPercent", { percent: t })) : t < 0 && (a = 100 + t, n = g("op.darkerPercent", { percent: -t })), a && o.adjs.push({ [W.AdjustmentType.LumMod]: a }), l && o.adjs.push({ [W.AdjustmentType.LumOff]: l });
536
+ const h = new R({
537
537
  val: o.val,
538
538
  adjs: o.adjs
539
539
  }, s), c = h.toString();
@@ -552,7 +552,7 @@ var Vt, At = (e, t, s, r, i) => {
552
552
  const a = (i) => {
553
553
  for (let a = 0; a < i.length; a++) n.push(At(e[o], i[a], t, s, r));
554
554
  };
555
- let l = new O({
555
+ let l = new R({
556
556
  val: e[o].definition.val,
557
557
  adjs: e[o].definition.adjs
558
558
  }, t).toHSLA().lum;
@@ -593,7 +593,7 @@ var Vt, At = (e, t, s, r, i) => {
593
593
  var Tt = null;
594
594
  function Pt() {
595
595
  if (!Tt) {
596
- const e = import("./DdXp_iPwTOHAOvlL.js").then(({ initializeFunctions: e }) => {
596
+ const e = import("./xD41vsQY6h60lCqz.js").then(({ initializeFunctions: e }) => {
597
597
  const t = e(() => null);
598
598
  return Object.freeze(Array.from(t.keys()));
599
599
  });
@@ -604,7 +604,7 @@ function Pt() {
604
604
  return Tt;
605
605
  }
606
606
  function Ft(e) {
607
- return U.peek()?.readFormulaLiteral(e);
607
+ return Ie.peek()?.readFormulaLiteral(e);
608
608
  }
609
609
  function Bt(e, t) {
610
610
  const s = Wt(e), r = Wt(t);
@@ -621,7 +621,7 @@ function Wt(e) {
621
621
  }
622
622
  (function(e) {
623
623
  function t(e) {
624
- return U.peek()?.getFunctionDeclaration(e) ?? null;
624
+ return Ie.peek()?.getFunctionDeclaration(e) ?? null;
625
625
  }
626
626
  e.get = t, e.has = function(e) {
627
627
  return null !== t(e);
@@ -675,19 +675,19 @@ var Mt, jt = class {
675
675
  const s = t[e].getSortedNumbers().getValues();
676
676
  s.length > 0 && r.push(s);
677
677
  }
678
- e = new ke(function(e) {
678
+ e = new Xe(function(e) {
679
679
  const t = e.length;
680
680
  if (0 === t) return Dt;
681
681
  if (1 === t) return e[0];
682
682
  let s = e[0];
683
- for (let r = 1; r < t; r++) s = Ht(s, e[r]);
683
+ for (let r = 1; r < t; r++) s = zt(s, e[r]);
684
684
  return Object.freeze(s);
685
685
  }(r)), this._sortedNumbers = e;
686
686
  }
687
687
  return e;
688
688
  }
689
689
  getRanked(e) {
690
- return ye(this._children, e, Bt)[Symbol.iterator]();
690
+ return ie(this._children, e, Bt)[Symbol.iterator]();
691
691
  }
692
692
  getFrequencies(e) {
693
693
  if (e) return this._mergeFrequencies(e);
@@ -695,7 +695,7 @@ var Mt, jt = class {
695
695
  return t || (t = this._mergeFrequencies(), this._frequencies = t), t;
696
696
  }
697
697
  _mergeFrequencies(e) {
698
- const t = e?.keyFn ?? ee, s = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, o = i.length;
698
+ const t = e?.keyFn ?? X, s = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, o = i.length;
699
699
  let n = 0, a = 0, l = !1;
700
700
  for (let h = 0; h < o; h++) {
701
701
  const o = i[h].getFrequencies(e);
@@ -710,7 +710,7 @@ var Mt, jt = class {
710
710
  }) : l = !0, u = c.next();
711
711
  }
712
712
  }
713
- return Ee.fromGroups(r, t, e, Bt, n, a, l);
713
+ return U.fromGroups(r, t, e, Bt, n, a, l);
714
714
  }
715
715
  getTypedCounts(e) {
716
716
  let t = this._typedCounts;
@@ -760,10 +760,10 @@ var Mt, jt = class {
760
760
  const o = s.numericalCount;
761
761
  o <= 0 || (r.numericalCount += o, r.sum += s.sum, r.sumSq += s.varP * o + s.sum * s.sum / o, (void 0 === r.min || s.min < r.min) && (r.min = s.min), (void 0 === r.max || s.max > r.max) && (r.max = s.max));
762
762
  }
763
- return ge(r);
763
+ return z(r);
764
764
  }
765
765
  }, Dt = Object.freeze([]);
766
- function Ht(e, t) {
766
+ function zt(e, t) {
767
767
  const s = e.length, r = t.length, i = new Array(s + r);
768
768
  let o = 0, n = 0, a = 0;
769
769
  for (; o < s && n < r;) i[a++] = e[o] <= t[n] ? e[o++] : t[n++];
@@ -771,14 +771,14 @@ function Ht(e, t) {
771
771
  for (; n < r;) i[a++] = t[n++];
772
772
  return i;
773
773
  }
774
- var zt, $t = class e {
774
+ var Ht, $t = class e {
775
775
  constructor(e, t) {
776
776
  this._source = null, this._fresh = /* @__PURE__ */ new WeakSet(), this._unwatch = null, this.cacheId = e, this._store = t, this._fresh.add(t.get());
777
777
  }
778
778
  static dataOf(t, s) {
779
779
  const r = e.modelOf(t);
780
780
  return {
781
- part: de.fromJSON(t.part, s),
781
+ part: be.fromJSON(t.part, s),
782
782
  model: r,
783
783
  partFormats: !r && t.partFormats ? t.partFormats : null,
784
784
  source: !r && t.source ? t.source : null
@@ -820,7 +820,7 @@ var zt, $t = class e {
820
820
  if (this._source) return;
821
821
  const { ref: s, sheet: r, name: i } = this._sourceAsRead() ?? {};
822
822
  let o = null, n = null;
823
- if (s && r && !s.includes("#REF!") ? (o = e(r), n = `${te(r)}!${Ae(s)}`) : !i || s || r ? i && r && !s && (o = e(r), n = `${te(r)}!${i}`) : (o = t(i), n = `${i}[#All]`), !o || !n) return;
823
+ if (s && r && !s.includes("#REF!") ? (o = e(r), n = `${Ce(r)}!${ve(s)}`) : !i || s || r ? i && r && !s && (o = e(r), n = `${Ce(r)}!${i}`) : (o = t(i), n = `${i}[#All]`), !o || !n) return;
824
824
  const a = {
825
825
  formula: null,
826
826
  wired: null,
@@ -874,17 +874,17 @@ var zt, $t = class e {
874
874
  if (null === t || t === e.wired) return null;
875
875
  const s = this._sourceAsRead();
876
876
  if (s?.name && s.sheet) {
877
- const e = Te(t)?.sheet;
877
+ const e = _e(t)?.sheet;
878
878
  return e ? { sheet: e } : null;
879
879
  }
880
880
  const r = /^(.+)\[#All\]$/.exec(t)?.[1];
881
881
  if (r) return { name: r };
882
- const i = Te(t);
882
+ const i = _e(t);
883
883
  return i ? {
884
884
  name: null,
885
- ref: ae(i.reference),
885
+ ref: ne(i.reference),
886
886
  sheet: i.sheet
887
- } : { ref: ae(t) };
887
+ } : { ref: ne(t) };
888
888
  }
889
889
  _getSource() {
890
890
  const e = this._sourceAsRead();
@@ -903,7 +903,7 @@ var zt, $t = class e {
903
903
  return t;
904
904
  }
905
905
  toJSON(e) {
906
- const t = { cacheId: this.cacheId }, s = de.toJSON(this.part, e);
906
+ const t = { cacheId: this.cacheId }, s = be.toJSON(this.part, e);
907
907
  if (s) {
908
908
  t.part = s;
909
909
  const e = this._store.get().partFormats;
@@ -948,7 +948,7 @@ var zt, $t = class e {
948
948
  get isIPerson() {
949
949
  return !0;
950
950
  }
951
- }, Jt = class extends He {
951
+ }, Jt = class extends G {
952
952
  constructor(e) {
953
953
  super(), this._byId = /* @__PURE__ */ new Map(), this._byDisplayName = /* @__PURE__ */ new Map(), this._items = null, this._current = null, e && this.fromJSON(e);
954
954
  }
@@ -1032,22 +1032,22 @@ var zt, $t = class e {
1032
1032
  }
1033
1033
  }
1034
1034
  async createModule(e) {
1035
- const t = await (await import("./DawLBAaNAAmo_P3Y.js")).ScriptCompiler.compile({
1035
+ const t = await (await import("./DaF9L7No8h8a-cqb.js")).ScriptCompiler.compile({
1036
1036
  builtInNames: this._builtInNames(),
1037
1037
  minify: !0,
1038
1038
  ...e
1039
1039
  });
1040
- return t.module ? await se(H.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1040
+ return t.module ? await Ue(Q.DEFAULT_MODULE, t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1041
1041
  }
1042
1042
  addModule(e, t, s) {
1043
1043
  this._modules.add(e, t, s);
1044
1044
  }
1045
1045
  async addModuleFromJSON(e, t, s) {
1046
- const r = await se(e, t);
1046
+ const r = await Ue(e, t);
1047
1047
  return this.addModule(e, r, s), r;
1048
1048
  }
1049
1049
  async executeMacro(e, t, s) {
1050
- await Z.assertUsable("scripts");
1050
+ await pe.assertUsable("scripts");
1051
1051
  const r = this._modules.getItems({ name: t }), i = r.length;
1052
1052
  for (let t = 0; t < i; t++) {
1053
1053
  const i = r[t].getFunctions().getByName(e);
@@ -1060,8 +1060,8 @@ var zt, $t = class e {
1060
1060
  }
1061
1061
  async run(e, t) {
1062
1062
  try {
1063
- await Z.assertUsable("scripts");
1064
- const s = "string" == typeof e ? await this.createModule({ source: e }) : await se(H.DEFAULT_MODULE, e), r = "string" == typeof e ? e : e?.source ?? "";
1063
+ await pe.assertUsable("scripts");
1064
+ const s = "string" == typeof e ? await this.createModule({ source: e }) : await Ue(Q.DEFAULT_MODULE, e), r = "string" == typeof e ? e : e?.source ?? "";
1065
1065
  return await this._runModule(s, r, t);
1066
1066
  } catch (e) {
1067
1067
  return {
@@ -1143,7 +1143,7 @@ var zt, $t = class e {
1143
1143
  }
1144
1144
  if (!i || 0 === i.length) return c.EmptyArray;
1145
1145
  const n = e?.text ? e.text.trim().toUpperCase() : null;
1146
- return n ? Re(i, n) : i.sort((e, t) => {
1146
+ return n ? J(i, n) : i.sort((e, t) => {
1147
1147
  const s = e.getName().toUpperCase(), r = t.getName().toUpperCase();
1148
1148
  return s < r ? -1 : s > r ? 1 : 0;
1149
1149
  }), void 0 !== s && i.length > s ? i.slice(0, s) : i;
@@ -1182,13 +1182,13 @@ var zt, $t = class e {
1182
1182
  for (let o = 0; o < r.length; o++) {
1183
1183
  const n = r[o], a = t[n];
1184
1184
  try {
1185
- s[n] = await se(n, a, !1, [], "workbook" === a?.scope ? e : null);
1185
+ s[n] = await Ue(n, a, !1, [], "workbook" === a?.scope ? e : null);
1186
1186
  } catch (e) {
1187
1187
  i.error(`Could not load script '${n}'; it will be unavailable.`, e);
1188
1188
  }
1189
1189
  }
1190
1190
  }
1191
- const r = this, o = new Ce({
1191
+ const r = this, o = new Fe({
1192
1192
  transactions: this._options?.transactions,
1193
1193
  initial: s,
1194
1194
  isReadOnly: () => r.isReadOnly(),
@@ -1219,7 +1219,7 @@ var zt, $t = class e {
1219
1219
  }, Kt = /^([a-z][a-z0-9+.-]*):/i, Gt = (e) => {
1220
1220
  const t = e.toLowerCase();
1221
1221
  return t.endsWith(":") ? t : t + ":";
1222
- }, Zt = async (e, t) => {
1222
+ }, Xt = async (e, t) => {
1223
1223
  try {
1224
1224
  return await globalThis.fetch(e, t);
1225
1225
  } catch (s) {
@@ -1241,9 +1241,9 @@ var zt, $t = class e {
1241
1241
  })(e, t)) throw new j.Blocked("This site is restricted: it doesn't allow web apps to read its data, so the browser blocked the request for security.", { cause: s });
1242
1242
  throw s;
1243
1243
  }
1244
- }, Xt = class {
1244
+ }, Zt = class {
1245
1245
  constructor() {
1246
- this._handlers = /* @__PURE__ */ new Map([["http:", Zt], ["https:", Zt]]);
1246
+ this._handlers = /* @__PURE__ */ new Map([["http:", Xt], ["https:", Xt]]);
1247
1247
  }
1248
1248
  fetch(e, t) {
1249
1249
  const s = Kt.exec(e)?.[1], r = this._handlers.get(s ? Gt(s) : "https:");
@@ -1263,13 +1263,13 @@ var zt, $t = class e {
1263
1263
  get isIFetcher() {
1264
1264
  return !0;
1265
1265
  }
1266
- }, Yt = /* @__PURE__ */ new Set([
1266
+ }, Qt = /* @__PURE__ */ new Set([
1267
1267
  101,
1268
1268
  103,
1269
1269
  204,
1270
1270
  205,
1271
1271
  304
1272
- ]), Qt = (e) => new Response(Yt.has(e.status) ? null : e.body, {
1272
+ ]), Yt = (e) => new Response(Qt.has(e.status) ? null : e.body, {
1273
1273
  status: e.status,
1274
1274
  statusText: e.statusText,
1275
1275
  headers: e.headers
@@ -1285,19 +1285,19 @@ var zt, $t = class e {
1285
1285
  const s = this._kept.get(e) ?? this._findHeld(e);
1286
1286
  if (s && !s.isClosed()) return this._fromKept(s);
1287
1287
  const r = this._cached.get(e);
1288
- if (r) return Qt(r);
1288
+ if (r) return Yt(r);
1289
1289
  let i = this._inFlight.get(e);
1290
1290
  return i || (i = this._request(e, {
1291
1291
  ...t,
1292
1292
  signal: void 0
1293
1293
  }).finally(() => {
1294
1294
  this._inFlight.delete(e);
1295
- }), this._inFlight.set(e, i)), Qt(await ((e, t) => t ? t.aborted ? Promise.reject(t.reason) : new Promise((s, r) => {
1295
+ }), this._inFlight.set(e, i)), Yt(await ((e, t) => t ? t.aborted ? Promise.reject(t.reason) : new Promise((s, r) => {
1296
1296
  const i = () => r(t.reason);
1297
1297
  t.addEventListener("abort", i, { once: !0 }), e.then(s, r).finally(() => t.removeEventListener("abort", i));
1298
1298
  }) : e)(i, t?.signal));
1299
1299
  }
1300
- return Qt(await this._request(e, t));
1300
+ return Yt(await this._request(e, t));
1301
1301
  }
1302
1302
  adopt(e) {
1303
1303
  for (const t of e) {
@@ -1315,7 +1315,7 @@ var zt, $t = class e {
1315
1315
  }
1316
1316
  async _fromKept(e) {
1317
1317
  const [t, s] = await Promise.all([e.toBuffer(), e.getType()]);
1318
- return Qt({
1318
+ return Yt({
1319
1319
  status: 200,
1320
1320
  statusText: "OK",
1321
1321
  headers: s ? [["content-type", s.mime]] : [],
@@ -1323,7 +1323,7 @@ var zt, $t = class e {
1323
1323
  });
1324
1324
  }
1325
1325
  async _request(e, t) {
1326
- const s = await this._fetcher.fetch(e, t), r = Yt.has(s.status) ? null : await s.arrayBuffer(), i = [];
1326
+ const s = await this._fetcher.fetch(e, t), r = Qt.has(s.status) ? null : await s.arrayBuffer(), i = [];
1327
1327
  s.headers.forEach((e, t) => {
1328
1328
  i.push([t, e]);
1329
1329
  });
@@ -1334,14 +1334,14 @@ var zt, $t = class e {
1334
1334
  body: r
1335
1335
  };
1336
1336
  if (s.ok && r && r.byteLength > 0) {
1337
- const t = await new K({ source: { buffer: r } }).getType();
1337
+ const t = await new ye({ source: { buffer: r } }).getType();
1338
1338
  t?.mime.startsWith("image/") ? (o.headers = i.filter(([e]) => "content-type" !== e.toLowerCase()), o.headers.push(["content-type", t.mime])) : this._cached.set(e, o);
1339
1339
  }
1340
1340
  return o;
1341
1341
  }
1342
1342
  }, ts = class {
1343
1343
  constructor(e, t, s, r) {
1344
- this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = s, this._topLeft = t ?? d.EmptyCell, this._sheet = new q({
1344
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = s, this._topLeft = t ?? d.EmptyCell, this._sheet = new st({
1345
1345
  runtime: e,
1346
1346
  styles: this._styles,
1347
1347
  calcOnLoad: "none",
@@ -1363,33 +1363,33 @@ var zt, $t = class e {
1363
1363
  e.includes(r) && delete i[r];
1364
1364
  }
1365
1365
  }
1366
- const o = F(i.fontFamily);
1366
+ const o = C(i.fontFamily);
1367
1367
  r.font = {}, o && (r.font.family = o.family, r.font.fallbacks = o.fallbacks, r.font.size = o.size), r.font.size = i.fontSize, r.font.weight = i.fontWeight, r.font.style = i.fontStyle, r.font.color = i.color;
1368
- const n = x(i.textDecoration);
1369
- r.font.underline = n.underline, r.font.strike = n.strike ? v.StrikeStyle.Single : v.StrikeStyle.None, i.textUnderlineStyle && (r.font.underline = S(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = k(i.textAlign)), i?.textAlign && !r.alignment.horizontal && "general" !== i?.textAlign && ("center-across" === i.textAlign ? r.alignment.horizontal = P.HorizontalAlignment.CenterContinuous : "fill" === i.textAlign ? r.alignment.horizontal = P.HorizontalAlignment.Fill : "121" === i.textAlign || "010" === i.textAlign ? (r.alignment.horizontal = P.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = "121" === i.textAlign) : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && ("super" === i.verticalAlign.toLowerCase() ? r.font.baseline = b.Baseline.Superscript : "sub" === i.verticalAlign.toLowerCase() ? r.font.baseline = b.Baseline.Subscript : r.alignment.vertical = I(i.verticalAlign), r.alignment.vertical || ("121" === i.verticalAlign ? r.alignment.vertical = P.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = "no-wrap" === i.whiteSpace || "nowrap" === i.whiteSpace ? P.Overflow.Visible : P.Overflow.Wrap), "shrinktofit" === i.msoTextControl && (r.alignment.overflow = P.Overflow.Shrink);
1368
+ const n = k(i.textDecoration);
1369
+ r.font.underline = n.underline, r.font.strike = n.strike ? b.StrikeStyle.Single : b.StrikeStyle.None, i.textUnderlineStyle && (r.font.underline = E(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = P(i.textAlign)), i?.textAlign && !r.alignment.horizontal && "general" !== i?.textAlign && ("center-across" === i.textAlign ? r.alignment.horizontal = x.HorizontalAlignment.CenterContinuous : "fill" === i.textAlign ? r.alignment.horizontal = x.HorizontalAlignment.Fill : "121" === i.textAlign || "010" === i.textAlign ? (r.alignment.horizontal = x.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = "121" === i.textAlign) : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && ("super" === i.verticalAlign.toLowerCase() ? r.font.baseline = F.Baseline.Superscript : "sub" === i.verticalAlign.toLowerCase() ? r.font.baseline = F.Baseline.Subscript : r.alignment.vertical = I(i.verticalAlign), r.alignment.vertical || ("121" === i.verticalAlign ? r.alignment.vertical = x.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = "no-wrap" === i.whiteSpace || "nowrap" === i.whiteSpace ? x.Overflow.Visible : x.Overflow.Wrap), "shrinktofit" === i.msoTextControl && (r.alignment.overflow = x.Overflow.Shrink);
1370
1370
  let a = null;
1371
1371
  if (i.background ? a = i.background : i.backgroundColor && (a = i.backgroundColor), a && (r.fill = { color: a }), i.msoPattern) {
1372
- let e = R(i.msoPattern);
1373
- e && (e.patternType === C.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== C.BuiltInSheetPattern.None && (a && (e.background = a), r.fill = e));
1372
+ let e = T(i.msoPattern);
1373
+ e && (e.patternType === v.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== v.BuiltInSheetPattern.None && (a && (e.background = a), r.fill = e));
1374
1374
  }
1375
- "vertical" === i.layoutFlow || "vertical-ideographic" === i.layoutFlow ? r.alignment.stacked = !0 : void 0 !== i.msoRotate && (r.alignment.rotation = N(i.msoRotate));
1375
+ "vertical" === i.layoutFlow || "vertical-ideographic" === i.layoutFlow ? r.alignment.stacked = !0 : void 0 !== i.msoRotate && (r.alignment.rotation = S(i.msoRotate));
1376
1376
  const l = (e, t) => {
1377
1377
  e && (r.borders || (r.borders = {}), r.borders[e] = t);
1378
1378
  };
1379
1379
  i.border && "none" !== i.border && (l("top", i.border), l("left", i.border), l("right", i.border), l("bottom", i.border)), i.borderTop && l("top", i.borderTop), i.borderLeft && l("left", i.borderLeft), i.borderRight && l("right", i.borderRight), i.borderBottom && l("bottom", i.borderBottom), i.msoDiagonalUp && l("diagonalUp", i.msoDiagonalUp), i.msoDiagonalDown && l("diagonalDown", i.msoDiagonalDown);
1380
1380
  let h = r.numberFormat;
1381
- i.msoNumberFormat && (h = A(i.msoNumberFormat), h.includes("\\") ? h = null : "Fixed" === h ? h = T.Styles.lookupStyle(r.numberFormat).formatType === T.Type.Number ? null : T.Type.Number : "Percent" === h && (h = T.Styles.lookupStyle(r.numberFormat).formatType === T.Type.Percentage ? null : T.Type.Percentage)), h && (r.numberFormat = h), e.style = this._styles.normalize(r), s && 0 === Object.keys(e.style).length && delete e.style;
1381
+ i.msoNumberFormat && (h = B(i.msoNumberFormat), h.includes("\\") ? h = null : "Fixed" === h ? h = A.Styles.lookupStyle(r.numberFormat).formatType === A.Type.Number ? null : A.Type.Number : "Percent" === h && (h = A.Styles.lookupStyle(r.numberFormat).formatType === A.Type.Percentage ? null : A.Type.Percentage)), h && (r.numberFormat = h), e.style = this._styles.normalize(r), s && 0 === Object.keys(e.style).length && delete e.style;
1382
1382
  }
1383
1383
  onCell(e, t, s, r, i) {
1384
1384
  const o = r(i);
1385
1385
  let n = { value: void 0 !== t ? t : s ?? "" };
1386
1386
  if ("string" == typeof n.value && 0 === n.value.length && (n.value = void 0), o && this.applyCSSStyle(n, o), "string" == typeof n.value && /^#+$/.test(n.value)) {
1387
1387
  const e = n.style?.numberFormat;
1388
- e && (E(e) || B(e)) && (n.value = j.BuiltIn.Num);
1388
+ e && (O(e) || L(e)) && (n.value = j.BuiltIn.Num);
1389
1389
  }
1390
1390
  if ("TD" === i?.tagName.toUpperCase()) {
1391
1391
  let e = n.style, t = e?.font ?? {};
1392
- (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = v.StrikeStyle.Single), i.querySelectorAll("sub").length > 0 && (t.baseline = b.Baseline.Subscript), i.querySelectorAll("sup").length > 0 && (t.baseline = b.Baseline.Superscript), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = v.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = v.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, n.style = e), e.font || (e.font = t));
1392
+ (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = b.StrikeStyle.Single), i.querySelectorAll("sub").length > 0 && (t.baseline = F.Baseline.Subscript), i.querySelectorAll("sup").length > 0 && (t.baseline = F.Baseline.Superscript), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = b.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = b.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, n.style = e), e.font || (e.font = t));
1393
1393
  const s = i.querySelectorAll("a");
1394
1394
  if (s.length > 0) {
1395
1395
  const e = s[0].getAttribute("href");
@@ -1437,9 +1437,9 @@ var zt, $t = class e {
1437
1437
  if ("userset" !== i.msoHeightSource) return;
1438
1438
  if (!r) return;
1439
1439
  let o = r.getAttribute("height") ?? i.height, n = null;
1440
- if (o && (n = V(o, this._styles.getNormal().getFont().getSize(), "px")), null === n) for (let e = 0; e < r.cells.length; e++) {
1440
+ if (o && (n = N(o, this._styles.getNormal().getFont().getSize(), "px")), null === n) for (let e = 0; e < r.cells.length; e++) {
1441
1441
  const t = r.cells[e], i = t.getAttribute("height") ?? s(t).height;
1442
- let o = V(i, this._styles.getNormal().getFont().getSize(), "px");
1442
+ let o = N(i, this._styles.getNormal().getFont().getSize(), "px");
1443
1443
  null !== o && (n = Math.max(o, n ?? 0));
1444
1444
  }
1445
1445
  null !== n && this._rowsReading.push({
@@ -1447,7 +1447,7 @@ var zt, $t = class e {
1447
1447
  min: this._topLeft.rowIndex + e,
1448
1448
  max: this._topLeft.rowIndex + e + t - 1
1449
1449
  },
1450
- update: { size: n * v.getDeviceScale() }
1450
+ update: { size: n * b.getDeviceScale() }
1451
1451
  });
1452
1452
  }
1453
1453
  onColumn(e, t, s, r) {
@@ -1455,12 +1455,12 @@ var zt, $t = class e {
1455
1455
  if ("userset" !== i.msoWidthSource) return;
1456
1456
  if (!r) return;
1457
1457
  let o = r.getAttribute("width") ?? i.width, n = null;
1458
- o && (n = V(o, this._styles.getNormal().getFont().getSize(), "px")), null !== n && this._colsReading.push({
1458
+ o && (n = N(o, this._styles.getNormal().getFont().getSize(), "px")), null !== n && this._colsReading.push({
1459
1459
  address: {
1460
1460
  min: this._topLeft.colIndex + e,
1461
1461
  max: this._topLeft.colIndex + e + t - 1
1462
1462
  },
1463
- update: { size: n * v.getDeviceScale() }
1463
+ update: { size: n * b.getDeviceScale() }
1464
1464
  });
1465
1465
  }
1466
1466
  onDone() {
@@ -1552,15 +1552,15 @@ var zt, $t = class e {
1552
1552
  let e, t = this._native?.text, s = this._native.html;
1553
1553
  if (null === s && t && t.includes("<table")) try {
1554
1554
  const e = new DOMParser().parseFromString(t, n.Html), r = e.querySelector("parsererror");
1555
- if (r) throw new f("Unable to parse: " + r);
1555
+ if (r) throw new m("Unable to parse: " + r);
1556
1556
  s = e, t = null;
1557
1557
  } catch (e) {
1558
1558
  console.warn("Discovered text as html table but could could not parse.");
1559
1559
  }
1560
1560
  try {
1561
- const r = new ts(this._runtime, this._topLeft, this._styles, s ? "HTML" : "Text"), i = await Promise.resolve(t ? me(t) : [[]]);
1561
+ const r = new ts(this._runtime, this._topLeft, this._styles, s ? "HTML" : "Text"), i = await Promise.resolve(t ? Qe(t) : [[]]);
1562
1562
  let o;
1563
- if (X(s, i, r) ? (e = r.sheet(), o = e.getUsedRange()) : s = null, o) {
1563
+ if (ke(s, i, r) ? (e = r.sheet(), o = e.getUsedRange()) : s = null, o) {
1564
1564
  const t = o.getSnapshot();
1565
1565
  return this._parsed = {
1566
1566
  prepare: (e, s) => t.prepare?.(e, s),
@@ -1583,7 +1583,7 @@ var zt, $t = class e {
1583
1583
  sheet: i,
1584
1584
  options: await i.getMovables()._preparePicture({ source: { buffer: e } }, {
1585
1585
  type: "picture",
1586
- description: _("op.copyImageFromClipboard"),
1586
+ description: f("op.copyImageFromClipboard"),
1587
1587
  autoSelect: !0,
1588
1588
  ...t && { bounds: t }
1589
1589
  })
@@ -1619,11 +1619,11 @@ var zt, $t = class e {
1619
1619
  return this._assertOpen(), this._container.setName(e, t), this;
1620
1620
  }
1621
1621
  getVisibility() {
1622
- return this._closed ? ie.Visibility.VeryHidden : this._container.getVisibility();
1622
+ return this._closed ? Te.Visibility.VeryHidden : this._container.getVisibility();
1623
1623
  }
1624
1624
  setVisibility(e = !0, t) {
1625
1625
  let s;
1626
- return this._assertOpen(), s = !0 === e ? ie.Visibility.Visible : !1 === e ? ie.Visibility.Hidden : e, this._container.setVisibility(s, t), this;
1626
+ return this._assertOpen(), s = !0 === e ? Te.Visibility.Visible : !1 === e ? Te.Visibility.Hidden : e, this._container.setVisibility(s, t), this;
1627
1627
  }
1628
1628
  getIndex() {
1629
1629
  return this._container.getIndex();
@@ -1650,7 +1650,7 @@ var zt, $t = class e {
1650
1650
  try {
1651
1651
  this._notify("onBeforeDelete");
1652
1652
  } catch (e) {
1653
- throw e instanceof Error ? e : new f(e?.message ?? g("error.sheet.modelDelete"));
1653
+ throw e instanceof Error ? e : new m(e?.message ?? g("error.sheet.modelDelete"));
1654
1654
  }
1655
1655
  this._notify("onDelete"), e.commit();
1656
1656
  } catch (t) {
@@ -1831,7 +1831,7 @@ var os = {
1831
1831
  revision: !0,
1832
1832
  password: null,
1833
1833
  revisionsPassword: null
1834
- }), ls = class extends Q {
1834
+ }), ls = class extends De {
1835
1835
  isWindowsAllowed() {
1836
1836
  return this._isPropertyAllowed("windows");
1837
1837
  }
@@ -1865,7 +1865,7 @@ var os = {
1865
1865
  return !0;
1866
1866
  }
1867
1867
  };
1868
- (zt || (zt = {})).Type = {
1868
+ (Ht || (Ht = {})).Type = {
1869
1869
  Number: "number",
1870
1870
  Boolean: "boolean",
1871
1871
  Date: "date",
@@ -1874,24 +1874,24 @@ var os = {
1874
1874
  };
1875
1875
  var hs = (e) => {
1876
1876
  if ("string" == typeof e) return {
1877
- type: zt.Type.String,
1877
+ type: Ht.Type.String,
1878
1878
  value: e
1879
1879
  };
1880
1880
  if ("boolean" == typeof e) return {
1881
- type: zt.Type.Boolean,
1881
+ type: Ht.Type.Boolean,
1882
1882
  value: e
1883
1883
  };
1884
1884
  if ("number" == typeof e) {
1885
1885
  if (!Number.isFinite(e)) throw new Error("A custom property value must be a finite number.");
1886
1886
  return {
1887
- type: Number.isInteger(e) && e >= -2147483648 && e <= 2147483647 ? zt.Type.Number : zt.Type.Float,
1887
+ type: Number.isInteger(e) && e >= -2147483648 && e <= 2147483647 ? Ht.Type.Number : Ht.Type.Float,
1888
1888
  value: e
1889
1889
  };
1890
1890
  }
1891
1891
  if (e instanceof Date) {
1892
1892
  if (isNaN(e.getTime())) throw new Error("A custom property value must be a valid date.");
1893
1893
  return {
1894
- type: zt.Type.Date,
1894
+ type: Ht.Type.Date,
1895
1895
  value: e.toISOString()
1896
1896
  };
1897
1897
  }
@@ -1911,7 +1911,7 @@ var hs = (e) => {
1911
1911
  }
1912
1912
  getValue() {
1913
1913
  const { type: e, value: t } = this._json;
1914
- return e === zt.Type.Date ? new Date(t) : t;
1914
+ return e === Ht.Type.Date ? new Date(t) : t;
1915
1915
  }
1916
1916
  setValue(e) {
1917
1917
  this._owner._assertCustomEditable(this), this._json = {
@@ -2045,13 +2045,13 @@ function ds(e) {
2045
2045
  function gs(e) {
2046
2046
  return g("error.workbook.sheetNameNotFound", { sheetName: e });
2047
2047
  }
2048
- function fs(e, t) {
2048
+ function ms(e, t) {
2049
2049
  return g("chart" === t ? "error.workbook.sheetIsChart" : "macro" === t ? "error.workbook.sheetIsMacro" : "error.workbook.sheetIsDialog", { sheetName: e });
2050
2050
  }
2051
- function _s(e, t) {
2051
+ function fs(e, t) {
2052
2052
  return "chart" === t ? g("error.workbook.selectedIsChart", { sheetName: e }) : "macro" === t ? g("error.workbook.selectedIsMacro", { sheetName: e }) : "dialog" === t ? g("error.workbook.selectedIsDialog", { sheetName: e }) : g("error.workbook.noWorksheet");
2053
2053
  }
2054
- var ms = class extends He {
2054
+ var _s = class extends G {
2055
2055
  constructor(e, t, s, r) {
2056
2056
  super(), this._add = e, this._get = t, this._addListeners = s, this._getSelected = r;
2057
2057
  }
@@ -2084,14 +2084,14 @@ var ms = class extends He {
2084
2084
  }
2085
2085
  }, ps = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), ws = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
2086
2086
  function ys(e) {
2087
- const t = g(_("workbook.defaultSheetName"), { n: e + 1 });
2087
+ const t = g(f("workbook.defaultSheetName"), { n: e + 1 });
2088
2088
  return "workbook.defaultSheetName" === t ? `Sheet${e + 1}` : t;
2089
2089
  }
2090
2090
  function Ss(e, t) {
2091
2091
  return {
2092
- ...We,
2092
+ ...me,
2093
2093
  getWorksheet: () => null,
2094
- toString: () => ze(e, t)
2094
+ toString: () => K(e, t)
2095
2095
  };
2096
2096
  }
2097
2097
  function bs(e, t = !1) {
@@ -2114,7 +2114,7 @@ function bs(e, t = !1) {
2114
2114
  }
2115
2115
  return e;
2116
2116
  }
2117
- var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2117
+ var ks, Cs = "workbook.activeSheet", vs = class e extends Pe {
2118
2118
  constructor(e, t, s, r) {
2119
2119
  super(e, t, r), this._workbook = s;
2120
2120
  }
@@ -2125,24 +2125,24 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2125
2125
  let r = this._options;
2126
2126
  return s && (r = {
2127
2127
  ...this._options,
2128
- getOptions: pe(this._options?.getOptions, s)
2128
+ getOptions: ze(this._options?.getOptions, s)
2129
2129
  }), new e(t, this._internal, this._workbook, r);
2130
2130
  }
2131
2131
  _createRange(e, t) {
2132
- const s = e ? { ...e } : null, r = this._workbook, i = s ? r._getSheetRef(s.scope, ie.Visibility.VeryHidden) : null;
2133
- if (i && !i.sheet.isIWorksheet) throw new f(fs(i.name, i.sheet.getKind()));
2132
+ const s = e ? { ...e } : null, r = this._workbook, i = s ? r._getSheetRef(s.scope, Te.Visibility.VeryHidden) : null;
2133
+ if (i && !i.sheet.isIWorksheet) throw new m(ms(i.name, i.sheet.getKind()));
2134
2134
  if (!i) {
2135
2135
  const e = r._anchorWorksheet();
2136
2136
  return delete s?.scope, Ss(s, s ? {
2137
- scope: Xe,
2137
+ scope: Ae,
2138
2138
  ...e.getEntireRange().getCoords()
2139
2139
  } : null);
2140
2140
  }
2141
2141
  let o = this._options;
2142
2142
  return t && (o = {
2143
2143
  ...this._options,
2144
- getOptions: pe(this._options.getOptions, t)
2145
- }), new Is(e, _e(i.sheet), this._workbook, o);
2144
+ getOptions: ze(this._options.getOptions, t)
2145
+ }), new Is(e, fe(i.sheet), this._workbook, o);
2146
2146
  }
2147
2147
  async select(e) {
2148
2148
  const t = [];
@@ -2168,15 +2168,15 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2168
2168
  }
2169
2169
  getAddress(e) {
2170
2170
  const t = this._internal.getSheet(), s = t.getEntireRange().getCoords();
2171
- return ce(this.getCoords(), {
2171
+ return Ne(this.getCoords(), {
2172
2172
  ...s,
2173
2173
  scope: t.getName()
2174
- }, ze, Ie, e);
2174
+ }, K, le, e);
2175
2175
  }
2176
2176
  toString() {
2177
2177
  return this.getAddress();
2178
2178
  }
2179
- }, Is = class e extends $ {
2179
+ }, Is = class e extends Ye {
2180
2180
  constructor(e, t, s, r) {
2181
2181
  super(e, t, r), this._workbook = s;
2182
2182
  }
@@ -2184,17 +2184,17 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2184
2184
  let s = this._options;
2185
2185
  return t && (s = {
2186
2186
  ...this._options,
2187
- getOptions: pe(this._options?.getOptions, t)
2187
+ getOptions: ze(this._options?.getOptions, t)
2188
2188
  }), new vs(e, this._internal, this._workbook, s);
2189
2189
  }
2190
2190
  _createRange(t, s) {
2191
2191
  const r = this._internal;
2192
- if (!t) return ue(r.getSheet(), r.getSheet().getEntireCoords());
2193
- if (r.validateCoords(t), r.getSheet().isClosed()) return ue(null, r.getSheet().getEntireCoords(), t);
2192
+ if (!t) return Z(r.getSheet(), r.getSheet().getEntireCoords());
2193
+ if (r.validateCoords(t), r.getSheet().isClosed()) return Z(null, r.getSheet().getEntireCoords(), t);
2194
2194
  let i = this._options;
2195
2195
  return s && (i = {
2196
2196
  ...this._options,
2197
- getOptions: pe(this._options?.getOptions, s)
2197
+ getOptions: ze(this._options?.getOptions, s)
2198
2198
  }), new e(t, this._internal, this._workbook, i);
2199
2199
  }
2200
2200
  addListener(e, t) {
@@ -2207,7 +2207,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2207
2207
  }
2208
2208
  getAddress(e) {
2209
2209
  const t = this._internal.getSheet(), s = t?.getEntireRange().getCoords() ?? null;
2210
- return ze(this.getCoords(), {
2210
+ return K(this.getCoords(), {
2211
2211
  ...s,
2212
2212
  scope: t.getName()
2213
2213
  });
@@ -2217,13 +2217,13 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2217
2217
  }
2218
2218
  }, Rs = (e) => !!e && "object" == typeof e && "function" == typeof e.getOrigin, Ns = class {
2219
2219
  constructor(t) {
2220
- this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new et(() => {
2220
+ this._isLoadingSheets = !1, this._lastTransactionUUID = null, this._starting = null, this._closed = !1, this._listenerOriginProvider = null, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._pivotCaches = [], this._pivotTableCollection = new te(() => {
2221
2221
  const e = [];
2222
- for (const t of this.getWorksheets().getItems({ visibility: ie.Visibility.VeryHidden })) e.push(...t.getPivotTables());
2222
+ for (const t of this.getWorksheets().getItems({ visibility: Te.Visibility.VeryHidden })) e.push(...t.getPivotTables());
2223
2223
  return e;
2224
- }, (e, t) => this.doBatch(e, t)), this._people = new Jt(), this._commentCollection = new Je(null, (e, t, s) => {
2224
+ }, (e, t) => this.doBatch(e, t)), this._people = new Jt(), this._commentCollection = new ce(null, (e, t, s) => {
2225
2225
  const r = [];
2226
- for (const i of this.getWorksheets().getItems({ visibility: ie.Visibility.VeryHidden })) r.push(...i.getComments().getItems(e ? {
2226
+ for (const i of this.getWorksheets().getItems({ visibility: Te.Visibility.VeryHidden })) r.push(...i.getComments().getItems(e ? {
2227
2227
  address: e,
2228
2228
  ignoreHidden: t,
2229
2229
  fullyContained: s
@@ -2238,21 +2238,21 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2238
2238
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
2239
2239
  }), this._locale = null, this._localeOverrides = null, this._startModules = /* @__PURE__ */ new WeakSet();
2240
2240
  const s = "string" == typeof t ? { origin: t } : { ...t }, r = s.origin;
2241
- this._ownOriginProvider = !Rs(r), this._originProvider = Rs(r) ? r : new _t("string" == typeof r ? new ut(null, { name: r }) : r ?? new ut(null)), delete s.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
2241
+ this._ownOriginProvider = !Rs(r), this._originProvider = Rs(r) ? r : new ft("string" == typeof r ? new ut(null, { name: r }) : r ?? new ut(null)), delete s.origin, this._bindOrigin(this._originProvider.getOrigin()), this._listenerOriginProvider = this._originProvider.addListeners({ onOriginChange: () => this._onOriginChange() });
2242
2242
  const i = s.json;
2243
- delete s.json, this._transactions = s.transactions ?? new p(), this._id = this._transactions.create(), this._ownTransactions = !s.transactions, this._emitter = new y(this, this._transactions), this._runtime = s.runtime ?? new Be("Workbook Runtime", {
2243
+ delete s.json, this._transactions = s.transactions ?? new p(), this._id = this._transactions.create(), this._ownTransactions = !s.transactions, this._emitter = new y(this, this._transactions), this._runtime = s.runtime ?? new ae("Workbook Runtime", {
2244
2244
  isDate1904: () => this._isDate1904,
2245
2245
  getNow: () => this._transactions.getCurrentCommit().getTimestamp(),
2246
- getLocale: () => this._locale ?? Ue() ?? ne(),
2246
+ getLocale: () => this._locale ?? Le() ?? $e(),
2247
2247
  getLocaleOverrides: () => this._localeOverrides
2248
2248
  }), this._listenerLanguage = o.addChangeListener(() => {
2249
2249
  this._closed || this._notifyAllChange();
2250
2250
  });
2251
- const n = this, a = this._beginCommit({ description: _(i ? "op.openWorkbook" : "op.newWorkbook") });
2251
+ const n = this, a = this._beginCommit({ description: f(i ? "op.openWorkbook" : "op.newWorkbook") });
2252
2252
  try {
2253
- this._strings = s.strings ?? new Ne(), this._ownStrings = !s.strings, this._richValues = s.richData ?? new Fe(), this._resources = s.resources ?? new Le(), this._ownResources = !s.resources, this._fetch = new es(this._resources, s.fetcher ?? new Xt()), this._createSheetName = s.createSheetNameCallback ?? ys;
2253
+ this._strings = s.strings ?? new qe(), this._ownStrings = !s.strings, this._richValues = s.richData ?? new je(), this._resources = s.resources ?? new Je(), this._ownResources = !s.resources, this._fetch = new es(this._resources, s.fetcher ?? new Zt()), this._createSheetName = s.createSheetNameCallback ?? ys;
2254
2254
  let t = s.createWorksheetCallback;
2255
- t || (t = (e) => new q(e)), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, s, r, i, o, a, l) => {
2255
+ t || (t = (e) => new st(e)), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, s, r, i, o, a, l) => {
2256
2256
  let h = null;
2257
2257
  const c = {
2258
2258
  runtime: n._runtime,
@@ -2273,7 +2273,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2273
2273
  h = t, n._addSheetRef({
2274
2274
  name: s,
2275
2275
  id: e,
2276
- visibility: r ?? ie.Visibility.Visible,
2276
+ visibility: r ?? Te.Visibility.Visible,
2277
2277
  sheetId: o,
2278
2278
  sheet: t
2279
2279
  }, i);
@@ -2290,7 +2290,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2290
2290
  },
2291
2291
  getVisibility: () => {
2292
2292
  const e = n._getSheetRef(h);
2293
- return e ? e.visibility : ie.Visibility.Visible;
2293
+ return e ? e.visibility : Te.Visibility.Visible;
2294
2294
  },
2295
2295
  setVisibility: (e, t) => {
2296
2296
  n._setSheetVisibility(h, e, t);
@@ -2301,10 +2301,10 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2301
2301
  duplicate: () => n._duplicateSheet(h),
2302
2302
  getIndex: () => {
2303
2303
  const e = n._getSheetRef(h);
2304
- return e ? n._getOffsetForId(e.id, n._getSheetRefs(ie.Visibility.VeryHidden)) : i;
2304
+ return e ? n._getOffsetForId(e.id, n._getSheetRefs(Te.Visibility.VeryHidden)) : i;
2305
2305
  },
2306
2306
  setIndex: (e, t) => {
2307
- const s = n._getSheetRef(h, ie.Visibility.VeryHidden);
2307
+ const s = n._getSheetRef(h, Te.Visibility.VeryHidden);
2308
2308
  return !!s && (n._moveSheet(s, e, t), !0);
2309
2309
  },
2310
2310
  setIndexCallback: (t) => {
@@ -2314,16 +2314,16 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2314
2314
  }
2315
2315
  };
2316
2316
  return a && (c.json = a), void 0 !== l && (c.uid = () => l), h = t(c, s, i, r), h;
2317
- }, this._namedTableSource = new we({
2318
- getSheets: () => n._sheets ? n.getWorksheets().getItems({ visibility: ie.Visibility.VeryHidden }) : c.EmptyArray,
2317
+ }, this._namedTableSource = new ue({
2318
+ getSheets: () => n._sheets ? n.getWorksheets().getItems({ visibility: Te.Visibility.VeryHidden }) : c.EmptyArray,
2319
2319
  addSheetsListener: (e, t) => n.addListeners({ onSheetsChange: e }, t)
2320
- }), this._names = s.names ?? new qe({
2320
+ }), this._names = s.names ?? new Ee({
2321
2321
  addressToRanges: (e) => n.getRanges(e),
2322
2322
  getCurrentScope: () => n.getSelectedWorksheet()?.getName() ?? null,
2323
2323
  isReadOnly: () => (n._options.readonly ?? !1) || n._isStructureProtected(),
2324
2324
  transactions: n._transactions,
2325
2325
  getSources: () => n._calculation ? [n._calculation.getNamedFormulas(), n._namedTableSource] : c.EmptyArray
2326
- }), this._ownNames = !s.names, this._calculation = s.calculation ?? new be({
2326
+ }), this._ownNames = !s.names, this._calculation = s.calculation ?? new ee({
2327
2327
  runtime: n._runtime,
2328
2328
  functions: s.functions,
2329
2329
  json: i?.calc,
@@ -2342,9 +2342,9 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2342
2342
  getSheetIndex: (e) => {
2343
2343
  if (void 0 === e) {
2344
2344
  const e = n.getSelectedSheet();
2345
- return e ? this._getSheetRefs(ie.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
2345
+ return e ? this._getSheetRefs(Te.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
2346
2346
  }
2347
- const t = this._getSheetRefs(ie.Visibility.VeryHidden);
2347
+ const t = this._getSheetRefs(Te.Visibility.VeryHidden);
2348
2348
  e = e.toLowerCase();
2349
2349
  const s = t.length;
2350
2350
  for (let r = 0; r < s; r++) if (t[r].name.toLowerCase() === e) return r;
@@ -2354,7 +2354,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2354
2354
  if (!t || 0 === t.length) return -1;
2355
2355
  let s = (t[0].getRanges?.()?.getCoords()?.[0])?.scope;
2356
2356
  if (!s) return -1;
2357
- const r = this._getSheetRefs(ie.Visibility.VeryHidden);
2357
+ const r = this._getSheetRefs(Te.Visibility.VeryHidden);
2358
2358
  s = s.toLowerCase();
2359
2359
  const i = r.length;
2360
2360
  for (let e = 0; e < i; e++) if (r[e].name.toLowerCase() === s) return e;
@@ -2363,7 +2363,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2363
2363
  }
2364
2364
  return -1;
2365
2365
  },
2366
- getSheetCount: () => n._getSheetRefs(ie.Visibility.VeryHidden).length,
2366
+ getSheetCount: () => n._getSheetRefs(Te.Visibility.VeryHidden).length,
2367
2367
  externalBooks: i?.externalBooks,
2368
2368
  externalBookResolver: s.externalBookResolver,
2369
2369
  namedCollection: n._names,
@@ -2373,7 +2373,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2373
2373
  },
2374
2374
  fetch: (e, t) => n._fetch.fetch(e, t),
2375
2375
  parseText: (t, s) => (async (t, s, r) => {
2376
- const i = await import("./COVhUB0EotytQDHg.js").then((t) => e(t.default, 1)), o = (i.default ?? i).parse(s, {
2376
+ const i = await import("./NAWWzA_hk4wYtsPP.js").then((t) => e(t.default, 1)), o = (i.default ?? i).parse(s, {
2377
2377
  delimiter: r?.delimiter ?? ",",
2378
2378
  skipEmptyLines: !1
2379
2379
  }).data;
@@ -2387,7 +2387,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2387
2387
  const s = o[e], r = new Array(l);
2388
2388
  for (let e = 0; e < l; e++) {
2389
2389
  const i = s[e];
2390
- r[e] = void 0 === i || "" === i ? null : Ye(t, i).value;
2390
+ r[e] = void 0 === i || "" === i ? null : Me(t, i).value;
2391
2391
  }
2392
2392
  h[e] = r;
2393
2393
  }
@@ -2399,7 +2399,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2399
2399
  }), this._ownCalculation = !s.calculation, this._scripts = this._createScripts(i?.modules), this._ownNames = !s.names, this._options = Object.freeze({ ...s });
2400
2400
  const r = i?.sheets?.length ? i.sheets.map((e) => e.name) : [this._createSheetName(0)], o = r.map((e) => e + "-" + c.uuidV4()), l = (e) => {
2401
2401
  const t = i?.sheets?.[e]?.kind;
2402
- return !!t && t !== ie.Kind.Worksheet;
2402
+ return !!t && t !== Te.Kind.Worksheet;
2403
2403
  };
2404
2404
  this._calculation._setSheets(r.map((e, t) => l(t) ? [
2405
2405
  o[t],
@@ -2419,7 +2419,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2419
2419
  u = !0, this._starting = null;
2420
2420
  }
2421
2421
  })();
2422
- u || (this._starting = d), this._starting?.catch(() => {}), i ? this._fromJSON(i, o) : (this._initState(), this._addSheet(!1, r[0], null, o[0])), this._sheets = new ms((e) => n._addSheetOptions(e), (e, t) => {
2422
+ u || (this._starting = d), this._starting?.catch(() => {}), i ? this._fromJSON(i, o) : (this._initState(), this._addSheet(!1, r[0], null, o[0])), this._sheets = new _s((e) => n._addSheetOptions(e), (e, t) => {
2423
2423
  if (e) {
2424
2424
  const s = this._getSheetRef(e, t);
2425
2425
  return s && xs(s) ? [s.sheet] : c.EmptyArray;
@@ -2445,7 +2445,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2445
2445
  let e = this._getSheetRefs();
2446
2446
  for (let t = (e ? e.length : 0) - 1; t >= 0; t--);
2447
2447
  const t = this._options;
2448
- this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new Y().getDefaultTheme(), this._styles = t?.styles ?? new Pe(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new ns()), this._listenerProtection?.(), this._protection = new ls(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2448
+ this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new ge().getDefaultTheme(), this._styles = t?.styles ?? new We(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new ns()), this._listenerProtection?.(), this._protection = new ls(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2449
2449
  s._emitter.notify("onProtectionChange");
2450
2450
  } });
2451
2451
  const s = this;
@@ -2508,7 +2508,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2508
2508
  }
2509
2509
  setView(e) {
2510
2510
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
2511
- if (!e) throw new f(g("error.sheet.emptyView"));
2511
+ if (!e) throw new m(g("error.sheet.emptyView"));
2512
2512
  this._listenerWorkbookView?.();
2513
2513
  const t = this;
2514
2514
  let s = -1;
@@ -2563,10 +2563,10 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2563
2563
  return this._transactions;
2564
2564
  }
2565
2565
  getChanges(e) {
2566
- const t = this._transactions, [s, r] = t.getLog(e ?? t.getCurrentCommit(!1).getId(), 2), i = [], o = this.getWorksheets().getItems({ visibility: ie.Visibility.VeryHidden });
2566
+ const t = this._transactions, [s, r] = t.getLog(e ?? t.getCurrentCommit(!1).getId(), 2), i = [], o = this.getWorksheets().getItems({ visibility: Te.Visibility.VeryHidden });
2567
2567
  for (let e = 0; e < o.length; e++) {
2568
2568
  const t = o[e];
2569
- t instanceof q && i.push(...t._changeEventsOf(s, r ?? null));
2569
+ t instanceof st && i.push(...t._changeEventsOf(s, r ?? null));
2570
2570
  }
2571
2571
  return i;
2572
2572
  }
@@ -2597,7 +2597,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2597
2597
  }
2598
2598
  setTheme(e) {
2599
2599
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
2600
- if (!e) throw new f(g("error.workbook.notSetValue"));
2600
+ if (!e) throw new m(g("error.workbook.notSetValue"));
2601
2601
  const t = this._theme;
2602
2602
  return this._theme = e, this.getStyles().setTheme(e), this._emitter.notify("onThemeChange"), t;
2603
2603
  }
@@ -2619,7 +2619,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2619
2619
  return this.getSelectedWorksheet();
2620
2620
  }
2621
2621
  getSheets(e) {
2622
- const t = this._getSheetRefs(e?.visibility ?? ie.Visibility.Visible), s = new Array(t.length);
2622
+ const t = this._getSheetRefs(e?.visibility ?? Te.Visibility.Visible), s = new Array(t.length);
2623
2623
  for (let e = 0; e < t.length; e++) s[e] = t[e].sheet;
2624
2624
  return s;
2625
2625
  }
@@ -2630,16 +2630,16 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2630
2630
  if (!t) throw new a(gs(e));
2631
2631
  return t.sheet;
2632
2632
  }
2633
- getWorksheet(e, t = ie.Visibility.Visible) {
2633
+ getWorksheet(e, t = Te.Visibility.Visible) {
2634
2634
  if ("number" == typeof e) return this.getWorksheetAt(e, t);
2635
2635
  if (void 0 === e) return this._requireSelectedWorksheet();
2636
2636
  if (!e) throw new Error(g("error.workbook.sheetNameNotProvided"));
2637
2637
  const s = this._getSheetRef(e, t);
2638
2638
  if (!s) throw new a(gs(e));
2639
- if (!xs(s)) throw new a(fs(s.name, s.sheet.getKind()));
2639
+ if (!xs(s)) throw new a(ms(s.name, s.sheet.getKind()));
2640
2640
  return s.sheet;
2641
2641
  }
2642
- getWorksheetAt(e, t = ie.Visibility.Visible) {
2642
+ getWorksheetAt(e, t = Te.Visibility.Visible) {
2643
2643
  const s = this._getWorksheets(t)[e];
2644
2644
  if (!s) throw new a(function(e) {
2645
2645
  return g("error.workbook.sheetIndexNotFound", { index: e });
@@ -2650,10 +2650,10 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2650
2650
  const e = this.getSelectedWorksheet();
2651
2651
  if (e) return e;
2652
2652
  const t = this.getSelectedSheet();
2653
- throw new f(_s(t?.getName() ?? "", t?.getKind() ?? ie.Kind.Worksheet));
2653
+ throw new m(fs(t?.getName() ?? "", t?.getKind() ?? Te.Kind.Worksheet));
2654
2654
  }
2655
2655
  _anchorWorksheet() {
2656
- return this.getSelectedWorksheet() || (this._getWorksheets(ie.Visibility.VeryHidden)[0] ?? null);
2656
+ return this.getSelectedWorksheet() || (this._getWorksheets(Te.Visibility.VeryHidden)[0] ?? null);
2657
2657
  }
2658
2658
  getWorksheets() {
2659
2659
  return this._sheets;
@@ -2661,7 +2661,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2661
2661
  addWorksheet(e) {
2662
2662
  return this.getWorksheets().add(e);
2663
2663
  }
2664
- _getWorksheets(e = ie.Visibility.Visible) {
2664
+ _getWorksheets(e = Te.Visibility.Visible) {
2665
2665
  const t = this._getSheetRefs(e), s = [], r = t.length;
2666
2666
  for (let e = 0; e < r; e++) {
2667
2667
  const r = t[e];
@@ -2669,17 +2669,17 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2669
2669
  }
2670
2670
  return s;
2671
2671
  }
2672
- _getSheetRefs(e = ie.Visibility.Visible) {
2672
+ _getSheetRefs(e = Te.Visibility.Visible) {
2673
2673
  const t = this._getState();
2674
- return t ? e === ie.Visibility.Visible ? t.sheetRefsVisible : e === ie.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === ie.Visibility.VeryHidden ? t.sheetRefsAll : c.EmptyArray : [];
2674
+ return t ? e === Te.Visibility.Visible ? t.sheetRefsVisible : e === Te.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === Te.Visibility.VeryHidden ? t.sheetRefsAll : c.EmptyArray : [];
2675
2675
  }
2676
- _getSheetRef(e, t = ie.Visibility.Visible) {
2676
+ _getSheetRef(e, t = Te.Visibility.Visible) {
2677
2677
  let s = null;
2678
2678
  return "number" == typeof e ? this._getSheetRefs(t)[e] : ("string" == typeof e ? s = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : !0 === e?.isISheet ? s = this._getState().refsByInstance.get(e) : void 0 !== e?.id && (s = this._getState().refsById.get(e.id)), s);
2679
2679
  }
2680
2680
  _validateNewSheetName(e, t = !0) {
2681
2681
  if (null == e) return e;
2682
- if (bs(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new f(g("error.workbook.nameTaken"));
2682
+ if (bs(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new m(g("error.workbook.nameTaken"));
2683
2683
  return e.substring(0, 31);
2684
2684
  }
2685
2685
  findValidSheetName(e) {
@@ -2715,7 +2715,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2715
2715
  let s, r = null;
2716
2716
  s = "string" == typeof e ? { name: e } : "number" == typeof e ? { index: e } : e, s = {
2717
2717
  ...s,
2718
- description: s?.description ?? _("op.addSheet")
2718
+ description: s?.description ?? f("op.addSheet")
2719
2719
  };
2720
2720
  const i = this.beginCommit(s);
2721
2721
  try {
@@ -2734,7 +2734,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2734
2734
  _nextSheetName(e = null) {
2735
2735
  let t = e ? e.toLowerCase() : null;
2736
2736
  const s = this._getState(), r = s.sheetsByLowerCaseName;
2737
- if (e && r.has(t)) throw new f(function(e) {
2737
+ if (e && r.has(t)) throw new m(function(e) {
2738
2738
  return g("error.workbook.nameDuplicate", { sheetName: e });
2739
2739
  }(e));
2740
2740
  t = (e = this._validateNewSheetName(e)) ? e.toLowerCase() : null;
@@ -2747,8 +2747,8 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2747
2747
  }
2748
2748
  _addSheet(e, t = null, s = null, r) {
2749
2749
  t = this._nextSheetName(t);
2750
- const i = this._getState(), o = this._createSheet(i.lastId, t, ie.Visibility.Visible, s, void 0, null, r);
2751
- if (!o) throw new f(g("error.workbook.sheetNameBlank"));
2750
+ const i = this._getState(), o = this._createSheet(i.lastId, t, Te.Visibility.Visible, s, void 0, null, r);
2751
+ if (!o) throw new m(g("error.workbook.sheetNameBlank"));
2752
2752
  return e && (this._tellSheets(), this._emitter.notify("onSheetsChange")), o;
2753
2753
  }
2754
2754
  _createOpaqueSheet(e, t, s, r, i, o, n, a, l) {
@@ -2767,41 +2767,42 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2767
2767
  setName: (e, t) => {
2768
2768
  h._setSheetName(u, e, t);
2769
2769
  },
2770
- getVisibility: () => h._getSheetRef(u, ie.Visibility.VeryHidden)?.visibility ?? ie.Visibility.Visible,
2770
+ getVisibility: () => h._getSheetRef(u, Te.Visibility.VeryHidden)?.visibility ?? Te.Visibility.Visible,
2771
2771
  setVisibility: (e, t) => {
2772
2772
  h._setSheetVisibility(u, e, t);
2773
2773
  },
2774
2774
  getIndex: () => {
2775
- const e = h._getSheetRef(u, ie.Visibility.VeryHidden);
2776
- return e ? h._getOffsetForId(e.id, h._getSheetRefs(ie.Visibility.VeryHidden)) : -1;
2775
+ const e = h._getSheetRef(u, Te.Visibility.VeryHidden);
2776
+ return e ? h._getOffsetForId(e.id, h._getSheetRefs(Te.Visibility.VeryHidden)) : -1;
2777
2777
  },
2778
2778
  setIndex: (e, t) => {
2779
- const s = h._getSheetRef(u, ie.Visibility.VeryHidden);
2779
+ const s = h._getSheetRef(u, Te.Visibility.VeryHidden);
2780
2780
  s && h._moveSheet(s, e, t);
2781
2781
  },
2782
2782
  requestSelect: () => h._requestSelect(u),
2783
- isAttached: () => !!h._getSheetRef(u, ie.Visibility.VeryHidden)
2783
+ isAttached: () => !!h._getSheetRef(u, Te.Visibility.VeryHidden)
2784
2784
  }
2785
2785
  }), this._sheetOnNameChange.set(e, () => u._notify("onNameChange")), this._sheetOnVisibilityChange.set(e, () => u._notify("onVisibilityChange")), this._sheetOnIndexChange.set(e, () => u._notify("onIndexChange")), this._addSheetRef({
2786
2786
  name: t,
2787
2787
  id: e,
2788
- visibility: s ?? ie.Visibility.Visible,
2788
+ visibility: s ?? Te.Visibility.Visible,
2789
2789
  sheetId: i,
2790
2790
  sheet: u
2791
2791
  }, r), u;
2792
2792
  }
2793
2793
  async _requestSelect(e) {
2794
- return this._setSelectedSheet(e), await this._emitter.notify("onRequestSelect", {
2794
+ const t = this._transactions.getPendingTransaction(), s = t ? this.getView().getActiveSheetId() : null;
2795
+ return this._setSelectedSheet(e), t ? (this._recordActiveSheet(t, s, this.getView().getActiveSheetId()), this.getSelectedSheet() === e) : (await this._emitter.notify("onRequestSelect", {
2795
2796
  source: this,
2796
2797
  params: e,
2797
2798
  async: !0
2798
- }), this.getSelectedSheet() === e;
2799
+ }), this.getSelectedSheet() === e);
2799
2800
  }
2800
2801
  _updateSheetRefStates(e) {
2801
2802
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
2802
2803
  if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new t(g("error.workbook.protection"));
2803
2804
  const s = e, r = [], i = [], o = s.length;
2804
- for (let e = 0; e < o; e++) s[e].visibility === ie.Visibility.Visible ? (r.push(s[e]), i.push(s[e])) : s[e].visibility === ie.Visibility.Hidden && i.push(s[e]);
2805
+ for (let e = 0; e < o; e++) s[e].visibility === Te.Visibility.Visible ? (r.push(s[e]), i.push(s[e])) : s[e].visibility === Te.Visibility.Hidden && i.push(s[e]);
2805
2806
  this._updateState({
2806
2807
  sheetRefsAll: s,
2807
2808
  sheetRefsVisible: r,
@@ -2835,21 +2836,21 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2835
2836
  u.set(e.id, n);
2836
2837
  const d = new Map(s.sheetsByLowerCaseName);
2837
2838
  d.set(a, n);
2838
- const f = this;
2839
- let _ = s.listenersSheets;
2839
+ const m = this;
2840
+ let f = s.listenersSheets;
2840
2841
  if (void 0 !== n) {
2841
2842
  const t = n.addListeners({
2842
2843
  onBeforeDelete: (e) => {
2843
- f._validateDeleteSheet(e);
2844
+ m._validateDeleteSheet(e);
2844
2845
  },
2845
2846
  onDelete(e) {
2846
- let t = f._getSheetRef(e, ie.Visibility.VeryHidden);
2847
+ let t = m._getSheetRef(e, Te.Visibility.VeryHidden);
2847
2848
  if (!t) return;
2848
- const s = f._beginCommit({ description: g("op.deleteSheet", { name: t.name }) });
2849
+ const s = m._beginCommit({ description: g("op.deleteSheet", { name: t.name }) });
2849
2850
  try {
2850
- const r = f._getState(), i = r.sheetRefsAll, o = f._getOffsetForId(t.id, i);
2851
+ const r = m._getState(), i = r.sheetRefsAll, o = m._getOffsetForId(t.id, i);
2851
2852
  let a = [...i];
2852
- a.splice(o, 1), f._updateSheetRefStates(a);
2853
+ a.splice(o, 1), m._updateSheetRefStates(a);
2853
2854
  const l = new Map(r.refsById);
2854
2855
  l.delete(t.id);
2855
2856
  const h = new Map(r.sheetsById);
@@ -2860,40 +2861,40 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2860
2861
  d.delete(c);
2861
2862
  const g = new Map(r.refsByInstance);
2862
2863
  g.delete(e), r.listenersSheets.get(t.id)();
2863
- const _ = new Map(r.listenersSheets);
2864
- _.delete(t.id), f._adjustRemoveSelectionIfRequired(o, t.id), f._adjustSheetNamesIfRequired(), f._sheetOnNameChange.delete(t.id), f._sheetOnVisibilityChange.delete(t.id), f._sheetOnIndexChange.delete(t.id), f._tellSheets(), f._emitter.notify("onSheetsChange");
2865
- const m = new Set(r.sheetsCreated);
2866
- m.has(n) && m.delete(n), f._updateState({
2864
+ const f = new Map(r.listenersSheets);
2865
+ f.delete(t.id), m._adjustRemoveSelectionIfRequired(o, t.id), m._adjustSheetNamesIfRequired(), m._sheetOnNameChange.delete(t.id), m._sheetOnVisibilityChange.delete(t.id), m._sheetOnIndexChange.delete(t.id), m._tellSheets(), m._emitter.notify("onSheetsChange");
2866
+ const _ = new Set(r.sheetsCreated);
2867
+ _.has(n) && _.delete(n), m._updateState({
2867
2868
  refsById: l,
2868
2869
  sheetsById: h,
2869
2870
  refsByLowerCaseName: u,
2870
2871
  sheetsByLowerCaseName: d,
2871
2872
  refsByInstance: g,
2872
- sheetsCreated: m,
2873
- listenersSheets: _
2873
+ sheetsCreated: _,
2874
+ listenersSheets: f
2874
2875
  }), s.commit();
2875
2876
  } catch (e) {
2876
2877
  throw s.rollback(), e;
2877
2878
  }
2878
2879
  }
2879
2880
  }, { transactional: !0 }), r = xs(e) ? e.sheet.addListeners({ onSelectionChange: (e) => {
2880
- f.getView().getActiveSheetId() === f._getSheetRef(e)?.id && f._emitter.notify("onSelectionChange", {
2881
- source: f,
2881
+ m.getView().getActiveSheetId() === m._getSheetRef(e)?.id && m._emitter.notify("onSelectionChange", {
2882
+ source: m,
2882
2883
  params: e
2883
2884
  });
2884
2885
  } }, { transactional: !1 }) : null, i = () => {
2885
2886
  t(), r?.();
2886
2887
  };
2887
- _ = new Map(s.listenersSheets), _.set(e.id, i);
2888
+ f = new Map(s.listenersSheets), f.set(e.id, i);
2888
2889
  }
2889
- let m = s.lastId;
2890
- -1 !== m && (m = Math.max(m, e.id)), this._updateState({ lastId: m }), this._updateState({
2890
+ let _ = s.lastId;
2891
+ -1 !== _ && (_ = Math.max(_, e.id)), this._updateState({ lastId: _ }), this._updateState({
2891
2892
  refsById: l,
2892
2893
  refsByLowerCaseName: h,
2893
2894
  refsByInstance: c,
2894
2895
  sheetsById: u,
2895
2896
  sheetsByLowerCaseName: d,
2896
- listenersSheets: _
2897
+ listenersSheets: f
2897
2898
  }), this._adjustSheetNamesIfRequired();
2898
2899
  const p = new Set(this._getState().sheetsCreated);
2899
2900
  return p.add(e.sheet), this._updateState({ sheetsCreated: p }), this._tellSheets(), e;
@@ -2932,27 +2933,27 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2932
2933
  let s = this._view.getActiveSheetId();
2933
2934
  s ?? (this._view.setActiveSheetId(t), s = t);
2934
2935
  let r = e.refsById.get(s);
2935
- r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), s = t), r.visibility === ie.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(s, e.sheetRefsVisible));
2936
+ r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), s = t), r.visibility === Te.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(s, e.sheetRefsVisible));
2936
2937
  }
2937
2938
  _validateDeleteSheet(e) {
2938
2939
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
2939
2940
  if (!this.getProtection().isStructureAllowed()) throw new t(g("error.workbook.protection"));
2940
2941
  let s = this._getSheetRef(e);
2941
- if (!s) throw new f(function(e) {
2942
+ if (!s) throw new m(function(e) {
2942
2943
  return g("error.workbook.deleteKey", { key: e });
2943
2944
  }(e));
2944
2945
  const r = this._getState().sheetRefsVisible;
2945
- if (1 === r.length && r[0].id === s.id) throw new f(g("error.workbook.sheetOne"));
2946
+ if (1 === r.length && r[0].id === s.id) throw new m(g("error.workbook.sheetOne"));
2946
2947
  }
2947
2948
  _getOffsetForId(e, t) {
2948
2949
  const s = t.length;
2949
2950
  for (let r = 0; r < s; r++) if (t[r].id === e) return r;
2950
- throw new f(g("error.workbook.noVisibleRefs"));
2951
+ throw new m(g("error.workbook.noVisibleRefs"));
2951
2952
  }
2952
2953
  find(e) {
2953
2954
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
2954
2955
  const t = this._getWorksheets();
2955
- if (0 === t.length) return { next: () => Qe };
2956
+ if (0 === t.length) return { next: () => oe };
2956
2957
  if (1 === t.length) return t[0].find(e);
2957
2958
  "string" == typeof e && (e = { text: e });
2958
2959
  const s = !e?.reverse;
@@ -2971,24 +2972,24 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2971
2972
  rowIndex: t[0].rowStart
2972
2973
  };
2973
2974
  }
2974
- const f = d.createCellComparator(e?.axis, e?.reverse);
2975
+ const m = d.createCellComparator(e?.axis, e?.reverse);
2975
2976
  delete (e = { ...e }).from;
2976
- const _ = () => {
2977
+ const f = () => {
2977
2978
  if (!u && c.done && (a && o === i ? u = !0 : s ? (o++, o > t.length - 1 && (o = 0, a = !0)) : (o--, o < 0 && (o = t.length - 1, a = !0)), r && a && (u = !0), u || l || !a || o !== i || (u = !0), !u)) {
2978
2979
  n = t[o], h = n.find(e);
2979
2980
  const s = c;
2980
2981
  return c = h.next(), s;
2981
2982
  }
2982
- if (!u && a && o === i && (c.done || !l || !c.done && f(c.value.getCoords(), l) >= 0) && (u = !0), u) {
2983
+ if (!u && a && o === i && (c.done || !l || !c.done && m(c.value.getCoords(), l) >= 0) && (u = !0), u) {
2983
2984
  const e = c;
2984
- return c = Qe, e;
2985
+ return c = oe, e;
2985
2986
  }
2986
2987
  const d = c;
2987
2988
  return c = h.next(), d;
2988
2989
  };
2989
2990
  return { next: () => {
2990
- let e = _();
2991
- for (; !u && e.done;) e = _();
2991
+ let e = f();
2992
+ for (; !u && e.done;) e = f();
2992
2993
  return e;
2993
2994
  } };
2994
2995
  }
@@ -2997,23 +2998,23 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
2997
2998
  const o = "function" == typeof t, n = s?.maxCount ?? Number.MAX_SAFE_INTEGER, a = !s?.maxCount;
2998
2999
  let l = "";
2999
3000
  const h = "string" == typeof t ? re(t) : null;
3000
- let c = s?.description ?? _("op.replace");
3001
+ let c = s?.description ?? f("op.replace");
3001
3002
  const u = this._transactions.beginCommit({ description: c });
3002
3003
  try {
3003
- let c = null, d = null, f = e.next();
3004
- for (; !f.done && r < n;) {
3005
- const n = f.value, a = n.getWorksheet();
3004
+ let c = null, d = null, m = e.next();
3005
+ for (; !m.done && r < n;) {
3006
+ const n = m.value, a = n.getWorksheet();
3006
3007
  a !== c && (c = a, null !== d && d.apply(), d = c.getEntireRange().createSparseBuilder({
3007
3008
  axis: s?.axis,
3008
3009
  allowUnorderedWrites: !0
3009
3010
  }));
3010
3011
  const l = o ? t(n) : t;
3011
- void 0 !== l && l !== n && (d.push(n, l), r++, i = n), f = e.next();
3012
+ void 0 !== l && l !== n && (d.push(n, l), r++, i = n), m = e.next();
3012
3013
  }
3013
- d?.apply(), 1 === r && 1 === n && i && (l = i.getAddress()), 0 === r ? u.rollback() : u.commit({ description: s?.description ?? (a ? null !== h ? g("op.replaceAllWith", { value: h }) : _("op.replaceAll") : l ? null !== h ? g("op.replaceAtWith", {
3014
+ d?.apply(), 1 === r && 1 === n && i && (l = i.getAddress()), 0 === r ? u.rollback() : u.commit({ description: s?.description ?? (a ? null !== h ? g("op.replaceAllWith", { value: h }) : f("op.replaceAll") : l ? null !== h ? g("op.replaceAtWith", {
3014
3015
  address: l,
3015
3016
  value: h
3016
- }) : g("op.replaceAt", { address: l }) : null !== h ? g("op.replaceWith", { value: h }) : _("op.replace")) });
3017
+ }) : g("op.replaceAt", { address: l }) : null !== h ? g("op.replaceWith", { value: h }) : f("op.replace")) });
3017
3018
  } catch (e) {
3018
3019
  throw u.rollback(), e;
3019
3020
  }
@@ -3056,92 +3057,92 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3056
3057
  const s = this._getSheetRefs(), r = this.getSelectedSheetIndex();
3057
3058
  let i = null;
3058
3059
  if (e) {
3059
- if (i = this._getSheetRef(e), !i) throw new f(ds(i));
3060
+ if (i = this._getSheetRef(e), !i) throw new m(ds(i));
3060
3061
  } else i = s[r];
3061
3062
  if (!i) return null;
3062
- if (!xs(i)) throw new f((o = i.name, g("error.workbook.sheetNotDuplicable", { sheetName: o })));
3063
+ if (!xs(i)) throw new m((o = i.name, g("error.workbook.sheetNotDuplicable", { sheetName: o })));
3063
3064
  var o;
3064
3065
  const n = i.sheet, a = s.indexOf(i), l = this._strings.beginPersist(), h = this.getResources().beginPersist(), c = this.getStyles().beginPersist(), u = this._richValues.beginPersist();
3065
3066
  let d = null;
3066
- const _ = this.beginCommit(g("op.duplicateNamed", { name: n.getName() }));
3067
+ const f = this.beginCommit(g("op.duplicateNamed", { name: n.getName() }));
3067
3068
  try {
3068
3069
  const e = this._getState().refsByInstance.get(n), t = await n.toJSON(), r = s.length + 1, i = this.findValidSheetName(e.name), o = this._createSheet(r, i, e.visibility, a, void 0, t);
3069
- this._tellSheets(), this._emitter.notify("onSheetsChange"), d = o, _.commit();
3070
+ this._tellSheets(), this._emitter.notify("onSheetsChange"), d = o, f.commit();
3070
3071
  } catch (e) {
3071
- throw _.rollback(), e;
3072
+ throw f.rollback(), e;
3072
3073
  } finally {
3073
3074
  u.endPersist(), c.endPersist(), h.endPersist(), l.endPersist();
3074
3075
  }
3075
3076
  return d;
3076
3077
  }
3077
3078
  _createRange(e, t) {
3078
- const s = e ? { ...e } : null, r = s ? this._getSheetRef(s.scope, ie.Visibility.VeryHidden) : null;
3079
- if (r && !xs(r)) throw new f(fs(r.name, r.sheet.getKind()));
3079
+ const s = e ? { ...e } : null, r = s ? this._getSheetRef(s.scope, Te.Visibility.VeryHidden) : null;
3080
+ if (r && !xs(r)) throw new m(ms(r.name, r.sheet.getKind()));
3080
3081
  if (!r) {
3081
3082
  const e = this._anchorWorksheet();
3082
3083
  return e ? (delete s?.scope, Ss(s, s ? {
3083
- scope: Xe,
3084
+ scope: Ae,
3084
3085
  ...e.getEntireRange().getCoords()
3085
3086
  } : null)) : void console.warn(g("error.workbook.noVisibleRefs"));
3086
3087
  }
3087
3088
  const i = r.sheet;
3088
3089
  let o = null;
3089
- return t && (o = { getOptions: t }), new Is(e, _e(i), this, o);
3090
+ return t && (o = { getOptions: t }), new Is(e, fe(i), this, o);
3090
3091
  }
3091
3092
  _createRanges(e, t) {
3092
3093
  const s = this._anchorWorksheet();
3093
- if (!s) throw new f(_s("", ie.Kind.Worksheet));
3094
+ if (!s) throw new m(fs("", Te.Kind.Worksheet));
3094
3095
  let r = null;
3095
- return t && (r = { getOptions: t }), new vs(e, _e(s), this, r);
3096
+ return t && (r = { getOptions: t }), new vs(e, fe(s), this, r);
3096
3097
  }
3097
3098
  getRange(e, t) {
3098
3099
  if (void 0 === e) return this.getSelectedRange(t);
3099
- "number" == typeof e && (e = ve(arguments), t = void 0);
3100
+ "number" == typeof e && (e = rt(arguments), t = void 0);
3100
3101
  try {
3101
3102
  const s = this._rangesAddressToCoords(e);
3102
- if (1 !== s.length) throw new f(g("error.address.singleRangeOnlyAlt"));
3103
+ if (1 !== s.length) throw new m(g("error.address.singleRangeOnlyAlt"));
3103
3104
  return this._createRange(s[0], t);
3104
3105
  } catch (t) {
3105
3106
  if (t instanceof a) throw new a(t.message);
3106
- throw new f(t.message ?? Ze(e));
3107
+ throw new m(t.message ?? it(e));
3107
3108
  }
3108
3109
  }
3109
3110
  getCell(e) {
3110
3111
  if (void 0 === e) return this.getSelectedCell();
3111
3112
  const t = this.getRange(e);
3112
- if (t.size > 1) throw new f(g("error.address.singleCellOnly"));
3113
+ if (t.size > 1) throw new m(g("error.address.singleCellOnly"));
3113
3114
  return t.getCell();
3114
3115
  }
3115
3116
  getRanges(e, t) {
3116
3117
  const s = this._rangesAddressToCoords(e);
3117
- if (0 === s.length) throw new f(Ze(e));
3118
+ if (0 === s.length) throw new m(it(e));
3118
3119
  return this._createRanges(s, t);
3119
3120
  }
3120
3121
  _createGraphRanges(e, t) {
3121
3122
  const s = [], r = this.getCalculation()?.getNamedFormulas() ?? null;
3122
3123
  for (let e = 0; e < t.length; e++) {
3123
- const i = t[e], o = i.sheetName ? this._getSheetRef(i.sheetName, ie.Visibility.VeryHidden) : null, n = o && xs(o) ? o.sheet : this._anchorWorksheet();
3124
- n && s.push(new it(i, r, _e(n), null));
3124
+ const i = t[e], o = i.sheetName ? this._getSheetRef(i.sheetName, Te.Visibility.VeryHidden) : null, n = o && xs(o) ? o.sheet : this._anchorWorksheet();
3125
+ n && s.push(new Ge(i, r, fe(n), null));
3125
3126
  }
3126
3127
  for (let t = 0; t < e.length; t++) s.push(e[t]);
3127
3128
  const i = this._anchorWorksheet();
3128
- return 0 !== s.length && i ? new vs(s, _e(i), this, null) : null;
3129
+ return 0 !== s.length && i ? new vs(s, fe(i), this, null) : null;
3129
3130
  }
3130
3131
  getAnomalies(e) {
3131
3132
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
3132
- const t = st(e), s = this._getWorksheets(ie.Visibility.VeryHidden).map((e) => {
3133
- const t = _e(e);
3133
+ const t = Se(e), s = this._getWorksheets(Te.Visibility.VeryHidden).map((e) => {
3134
+ const t = fe(e);
3134
3135
  return {
3135
3136
  bounds: t.getSheet().getEntireCoords(),
3136
3137
  internal: t,
3137
3138
  qualified: !0
3138
3139
  };
3139
3140
  });
3140
- return new D(s, () => (this.getSelectedWorksheet() ?? this._getWorksheets(ie.Visibility.VeryHidden)[0]).getEntireRange(), t);
3141
+ return new tt(s, () => (this.getSelectedWorksheet() ?? this._getWorksheets(Te.Visibility.VeryHidden)[0]).getEntireRange(), t);
3141
3142
  }
3142
3143
  getStats(e) {
3143
3144
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
3144
- const t = this._getWorksheets(ie.Visibility.VeryHidden), s = t.length;
3145
+ const t = this._getWorksheets(Te.Visibility.VeryHidden), s = t.length;
3145
3146
  if (1 === s) return t[0].getStats(e);
3146
3147
  const r = new Array(s);
3147
3148
  for (let i = 0; i < s; i++) r[i] = t[i].getStats(e);
@@ -3170,8 +3171,8 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3170
3171
  getSelectedCell() {
3171
3172
  return this._requireSelectedWorksheet().getSelectedCell();
3172
3173
  }
3173
- _rangesAddressToCoords(e, t = !0, s = ie.Visibility.Hidden) {
3174
- if (!e) throw new f(g("error.address.noAddress"));
3174
+ _rangesAddressToCoords(e, t = !0, s = Te.Visibility.Hidden) {
3175
+ if (!e) throw new m(g("error.address.noAddress"));
3175
3176
  const r = this.getSelectedWorksheet(), i = { ...(r ?? this._anchorWorksheet())?.getEntireRange().getCoords() }, o = r?.getName();
3176
3177
  if (o && (i.scope = o), "string" == typeof e) {
3177
3178
  const t = e.trim().toLowerCase();
@@ -3180,11 +3181,11 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3180
3181
  "r" === t ? r.rowStart = r.rowEnd = s.rowIndex : r.colStart = r.colEnd = s.colIndex, e = r;
3181
3182
  }
3182
3183
  }
3183
- const n = this, a = tt(e, i, De, (e) => {
3184
+ const n = this, a = $(e, i, Be, (e) => {
3184
3185
  if (!t) return null;
3185
3186
  if ("string" == typeof e) {
3186
- const t = Oe(e, {
3187
- getTable: (e) => je(n.getNames().getByName(e)),
3187
+ const t = he(e, {
3188
+ getTable: (e) => Re(n.getNames().getByName(e)),
3188
3189
  getAnchor: () => r ? {
3189
3190
  sheet: r,
3190
3191
  coords: r.getSelectedCell().getCoords()
@@ -3194,16 +3195,16 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3194
3195
  const s = n.getNames().getByName(e)?.getRanges?.();
3195
3196
  if (s) return s.getCoords();
3196
3197
  }
3197
- throw new f(`Invalid sheet reference '${e}'.`);
3198
+ throw new m(`Invalid sheet reference '${e}'.`);
3198
3199
  }), l = a.length;
3199
3200
  for (let e = 0; e < l; e++) this._validateCoords(a[e], s);
3200
3201
  return a;
3201
3202
  }
3202
- _validateCoords(e, t = ie.Visibility.Visible, s = g("error.sheet.oobRange")) {
3203
+ _validateCoords(e, t = Te.Visibility.Visible, s = g("error.sheet.oobRange")) {
3203
3204
  if (null === e) return;
3204
3205
  const r = this.getWorksheet(e.scope ?? void 0, t).getEntireRange().getCoords();
3205
3206
  if (!d.isRangeWithinRange(e, r)) throw new a(s);
3206
- if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new f(g("error.address.invalidRangeInverted"));
3207
+ if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new m(g("error.address.invalidRangeInverted"));
3207
3208
  }
3208
3209
  _updateSheetRef(e, t) {
3209
3210
  const s = this._getState();
@@ -3228,15 +3229,15 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3228
3229
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
3229
3230
  if (!this.getProtection().isStructureAllowed()) throw new t(g("error.workbook.protection"));
3230
3231
  const i = this._getSheetRef(e);
3231
- if (!i) throw new f(ds(e));
3232
+ if (!i) throw new m(ds(e));
3232
3233
  if (s === i.name) return i.sheet;
3233
- if (null == (s = this._validateNewSheetName(s))) throw new f(g("error.workbook.sheetNameNotProvided"));
3234
+ if (null == (s = this._validateNewSheetName(s))) throw new m(g("error.workbook.sheetNameNotProvided"));
3234
3235
  const o = Object.freeze({
3235
3236
  ...i,
3236
3237
  name: s
3237
3238
  });
3238
3239
  let n = null;
3239
- const a = this.beginCommit(_("op.renameSheet"));
3240
+ const a = this.beginCommit(f("op.renameSheet"));
3240
3241
  try {
3241
3242
  const e = this._updateSheetRef(i, o);
3242
3243
  this._adjustSheetNamesIfRequired(), this._sheetOnNameChange.forEach((e, t) => {
@@ -3247,24 +3248,24 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3247
3248
  }
3248
3249
  return n;
3249
3250
  }
3250
- _setSheetVisibility(e, s = ie.Visibility.Visible, r) {
3251
+ _setSheetVisibility(e, s = Te.Visibility.Visible, r) {
3251
3252
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
3252
3253
  if (!this.getProtection().isStructureAllowed()) throw new t(g("error.workbook.protection"));
3253
- const i = this._getSheetRef(e, ie.Visibility.VeryHidden);
3254
+ const i = this._getSheetRef(e, Te.Visibility.VeryHidden);
3254
3255
  if (!i) return null;
3255
3256
  if (s === i.visibility) return;
3256
3257
  let o = null, n = "";
3257
- s === ie.Visibility.Visible ? n = _("op.unhideSheet") : s === ie.Visibility.Hidden ? n = _("op.hideSheet") : s === ie.Visibility.VeryHidden && (n = _("op.veryHideSheet"));
3258
+ s === Te.Visibility.Visible ? n = f("op.unhideSheet") : s === Te.Visibility.Hidden ? n = f("op.hideSheet") : s === Te.Visibility.VeryHidden && (n = f("op.veryHideSheet"));
3258
3259
  const a = this.beginCommit(n);
3259
3260
  try {
3260
3261
  const e = this._getState().sheetRefsVisible;
3261
- if (s !== ie.Visibility.Visible && 1 === e.length && e[0].id === i.id) throw new f(g("error.workbook.sheetOne"));
3262
+ if (s !== Te.Visibility.Visible && 1 === e.length && e[0].id === i.id) throw new m(g("error.workbook.sheetOne"));
3262
3263
  const t = {
3263
3264
  ...i,
3264
3265
  visibility: s
3265
3266
  };
3266
3267
  let n = -1;
3267
- s !== ie.Visibility.Visible && (n = this._getOffsetForId(i.id, e)), o = this._updateSheetRef(i, t).sheet, s !== ie.Visibility.Visible && this._adjustRemoveSelectionIfRequired(n, i.id), this._adjustSheetNamesIfRequired(), a.commit(r);
3268
+ s !== Te.Visibility.Visible && (n = this._getOffsetForId(i.id, e)), o = this._updateSheetRef(i, t).sheet, s !== Te.Visibility.Visible && this._adjustRemoveSelectionIfRequired(n, i.id), this._adjustSheetNamesIfRequired(), a.commit(r);
3268
3269
  } catch (e) {
3269
3270
  throw a.rollback(), e;
3270
3271
  }
@@ -3279,7 +3280,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3279
3280
  const o = this.beginCommit(g("op.moveSheetNamed", { name: e.name }));
3280
3281
  try {
3281
3282
  const t = this._getState(), n = t.sheetRefsVisible;
3282
- if (s < 0 || s > n.length - 1) throw new f(`Invalid to index: ${s}`);
3283
+ if (s < 0 || s > n.length - 1) throw new m(`Invalid to index: ${s}`);
3283
3284
  const a = this.getView().getActiveSheetId(), l = t.sheetRefsAll, h = this._getOffsetForId(e.id, l), c = this._getOffsetForId(n[s].id, l);
3284
3285
  if (h === c) return;
3285
3286
  const u = l[h];
@@ -3295,9 +3296,9 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3295
3296
  _setSelectedSheet(e) {
3296
3297
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
3297
3298
  const t = this._getSheetRef(e);
3298
- if (!t) throw new f(ds(e));
3299
+ if (!t) throw new m(ds(e));
3299
3300
  let s = null;
3300
- return t.visibility !== ie.Visibility.Visible && this._setSheetVisibility(t, ie.Visibility.Visible), this._view.setActiveSheetId(t.id), s = t.sheet, s;
3301
+ return t.visibility !== Te.Visibility.Visible && this._setSheetVisibility(t, Te.Visibility.Visible), this._view.setActiveSheetId(t.id), s = t.sheet, s;
3301
3302
  }
3302
3303
  getProtection() {
3303
3304
  return this._protection;
@@ -3315,7 +3316,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3315
3316
  return this._calculation;
3316
3317
  }
3317
3318
  getFonts() {
3318
- return G.getShared();
3319
+ return Ve.getShared();
3319
3320
  }
3320
3321
  createFormula(e, t, s) {
3321
3322
  return this.getCalculation().createFormula(e, t, s);
@@ -3386,7 +3387,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3386
3387
  const t = this._getSheetRef(e), s = t && xs(t) ? t.sheet : null;
3387
3388
  return s ? s._contentAddWatch(() => null) : null;
3388
3389
  }, s = (e) => {
3389
- for (const t of this._getSheetRefs(ie.Visibility.VeryHidden)) {
3390
+ for (const t of this._getSheetRefs(Te.Visibility.VeryHidden)) {
3390
3391
  if (!xs(t)) continue;
3391
3392
  const s = t.sheet;
3392
3393
  if (s.getTables().getByName(e)) return s._contentAddWatch(() => null);
@@ -3396,14 +3397,14 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3396
3397
  const s = this._getSheetRef(e);
3397
3398
  return s && xs(s) ? s.sheet.getRange(t) : null;
3398
3399
  }, i = (e) => {
3399
- for (const t of this._getSheetRefs(ie.Visibility.VeryHidden)) {
3400
+ for (const t of this._getSheetRefs(Te.Visibility.VeryHidden)) {
3400
3401
  if (!xs(t)) continue;
3401
3402
  const s = t.sheet.getTables().getByName(e);
3402
3403
  if (s) return s;
3403
3404
  }
3404
3405
  return null;
3405
3406
  }, o = (e, t) => {
3406
- const s = this._pivotSourceNamed(e, t)?.getValue(), i = "string" == typeof s ? Te(s) : null;
3407
+ const s = this._pivotSourceNamed(e, t)?.getValue(), i = "string" == typeof s ? _e(s) : null;
3407
3408
  return i && /^\$?[A-Za-z]+\$?\d+(?::\$?[A-Za-z]+\$?\d+)?$/.test(i.reference) ? r(i.sheet, i.reference.replaceAll("$", "")) : null;
3408
3409
  };
3409
3410
  for (let n = 0; n < e.length; n++) this._getState().pivotCacheData.has(e[n].cacheId) && (e[n]._hold(t, s), e[n]._watchSource(r, i, o));
@@ -3415,7 +3416,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3415
3416
  this._updateState((s) => ({
3416
3417
  ...s,
3417
3418
  pivotCacheData: new Map(s.pivotCacheData).set(e, t)
3418
- }), _("op.refreshPivotTable"));
3419
+ }), f("op.refreshPivotTable"));
3419
3420
  }
3420
3421
  };
3421
3422
  }
@@ -3426,25 +3427,25 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3426
3427
  if (e.isITable) return { name: e.getName() };
3427
3428
  let s = null;
3428
3429
  if ("string" == typeof e) {
3429
- for (const t of this._getSheetRefs(ie.Visibility.VeryHidden)) if (xs(t) && t.sheet.getTables().getByName(e)) return { name: e };
3430
+ for (const t of this._getSheetRefs(Te.Visibility.VeryHidden)) if (xs(t) && t.sheet.getTables().getByName(e)) return { name: e };
3430
3431
  if (this.getNames().getByName(e)) return { name: e };
3431
3432
  if (t.getNames().getByName(e)?.getScope()) return {
3432
3433
  name: e,
3433
3434
  sheet: t.getName()
3434
3435
  };
3435
- const r = Te(e), i = r ? this._getSheetRef(r.sheet) : null;
3436
+ const r = _e(e), i = r ? this._getSheetRef(r.sheet) : null;
3436
3437
  if (r && (!i || !xs(i))) return null;
3437
3438
  try {
3438
3439
  s = r ? i.sheet.getRange(r.reference) : t.getRange(e);
3439
3440
  } catch (e) {
3440
- if (!(e instanceof f)) throw e;
3441
+ if (!(e instanceof m)) throw e;
3441
3442
  return null;
3442
3443
  }
3443
3444
  } else s = e.isICellRange ? e : t.getRange(e);
3444
3445
  if (!s || s.isInvalid()) return null;
3445
3446
  const { rowStart: r, colStart: i, rowEnd: o, colEnd: n } = s.getCoords();
3446
3447
  return {
3447
- ref: Me({
3448
+ ref: Ze({
3448
3449
  rowStart: r,
3449
3450
  colStart: i,
3450
3451
  rowEnd: o,
@@ -3474,15 +3475,15 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3474
3475
  }
3475
3476
  async _refreshPivotCaches(e, t) {
3476
3477
  const s = [];
3477
- for (const t of this._getSheetRefs(ie.Visibility.VeryHidden)) if (xs(t)) for (const r of t.sheet.getPivotTables().getItems()) e.has(r.getCacheId()) && s.push(r);
3478
+ for (const t of this._getSheetRefs(Te.Visibility.VeryHidden)) if (xs(t)) for (const r of t.sheet.getPivotTables().getItems()) e.has(r.getCacheId()) && s.push(r);
3478
3479
  for (const e of s) e._assertRefreshAllowed();
3479
3480
  for (const r of e) {
3480
3481
  const e = this._getPivotCache(r), i = e ? await this._pivotSourceRangeOf(e._getSource()) : null;
3481
- if (!e || !i) throw new f(g("error.pivotTable.refreshSourceUnsupported"));
3482
- if (i.getRowCount() < 2) throw new f(g("error.pivotTable.refreshSourceTooSmall"));
3482
+ if (!e || !i) throw new m(g("error.pivotTable.refreshSourceUnsupported"));
3483
+ if (i.getRowCount() < 2) throw new m(g("error.pivotTable.refreshSourceTooSmall"));
3483
3484
  i.getWorksheet()._cellBuffer?.release();
3484
3485
  const o = e.toJSON();
3485
- if (!o.fields) throw new f(g("error.pivotTable.refreshSourceUnsupported"));
3486
+ if (!o.fields) throw new m(g("error.pivotTable.refreshSourceUnsupported"));
3486
3487
  const { model: n, remap: a } = t.refreshPivotCache(o, t.readPivotSource(i), e._getSource() ?? void 0, this._isDate1904);
3487
3488
  e._replace(n);
3488
3489
  for (const e of s) e.getCacheId() === r && e._remapCache(a, t);
@@ -3493,13 +3494,13 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3493
3494
  async _refreshPivotCachesOnLoad() {
3494
3495
  const e = this._pivotCaches.filter((e) => !!e._getData().model?.refreshOnLoad);
3495
3496
  if (0 === e.length) return;
3496
- const s = await $e.load();
3497
+ const s = await H.load();
3497
3498
  for (const r of e) {
3498
3499
  if (this._closed) return;
3499
3500
  try {
3500
3501
  await this._transactions.doBatch(() => this._refreshPivotCaches(/* @__PURE__ */ new Set([r.cacheId]), s));
3501
3502
  } catch (e) {
3502
- if (!(e instanceof f || e instanceof t)) throw e;
3503
+ if (!(e instanceof m || e instanceof t)) throw e;
3503
3504
  }
3504
3505
  }
3505
3506
  }
@@ -3511,7 +3512,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3511
3512
  return t && xs(t) ? t.sheet.getRange(e.ref) : null;
3512
3513
  }
3513
3514
  if (!e.name) return null;
3514
- if (!e.sheet) for (const t of this._getSheetRefs(ie.Visibility.VeryHidden)) {
3515
+ if (!e.sheet) for (const t of this._getSheetRefs(Te.Visibility.VeryHidden)) {
3515
3516
  if (!xs(t)) continue;
3516
3517
  const s = t.sheet.getTables().getByName(e.name);
3517
3518
  if (!s || s.isDeleted()) continue;
@@ -3538,7 +3539,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3538
3539
  const s = this._getSheetRef(e);
3539
3540
  return (s && xs(s) ? s.sheet : null)?.getPivotTables().getByName(t) ?? null;
3540
3541
  };
3541
- for (const t of this._getSheetRefs(ie.Visibility.VeryHidden)) {
3542
+ for (const t of this._getSheetRefs(Te.Visibility.VeryHidden)) {
3542
3543
  if (!xs(t)) continue;
3543
3544
  const s = t.sheet.getMovables().getItems();
3544
3545
  for (let t = 0; t < s.length; t++) {
@@ -3548,8 +3549,8 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3548
3549
  }
3549
3550
  }
3550
3551
  _fromJSON(e, t) {
3551
- if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || 0 === e.sheets.length) throw new f(g("error.workbook.sheetOne"));
3552
- e.theme && (this._theme = new Se(e.theme), this._styles.setTheme(this._theme));
3552
+ if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || 0 === e.sheets.length) throw new m(g("error.workbook.sheetOne"));
3553
+ e.theme && (this._theme = new we(e.theme), this._styles.setTheme(this._theme));
3553
3554
  const s = this._strings.beginPersist(), r = this._resources.beginPersist(), i = this._styles.beginPersist(), o = this._richValues.beginPersist();
3554
3555
  try {
3555
3556
  s.fromJSON(e.strings), r.fromJSON(e.resources), this._fetch.adopt(this._resources.getItems()), i.fromJSON(e.styles), o.fromJSON(e.richData, {
@@ -3571,16 +3572,16 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3571
3572
  const h = e.sheets, c = h.length;
3572
3573
  let u = e.view.activeSheetId ?? null;
3573
3574
  null !== u && (u = Math.min(Math.max(0, u), c - 1));
3574
- let d = null, _ = null;
3575
+ let d = null, f = null;
3575
3576
  this._isLoadingSheets = !0;
3576
3577
  for (let s = 0; s < c; s++) {
3577
- const i = h[s], o = i.visibility || ie.Visibility.Visible, n = s;
3578
- _ = n, o === ie.Visibility.Visible ? null === d && (d = n) : null !== u && u === n && (u = null);
3578
+ const i = h[s], o = i.visibility || Te.Visibility.Visible, n = s;
3579
+ f = n, o === Te.Visibility.Visible ? null === d && (d = n) : null !== u && u === n && (u = null);
3579
3580
  try {
3580
- const e = i.kind ?? ie.Kind.Worksheet;
3581
- if (e !== ie.Kind.Worksheet) {
3582
- const a = i.sheet, l = de.fromJSON(a?.part, r.fromResourceId.bind(r));
3583
- if (!l) throw new f(g("error.workbook.sheetPartMissing", { sheetName: i.name }));
3581
+ const e = i.kind ?? Te.Kind.Worksheet;
3582
+ if (e !== Te.Kind.Worksheet) {
3583
+ const a = i.sheet, l = be.fromJSON(a?.part, r.fromResourceId.bind(r));
3584
+ if (!l) throw new m(g("error.workbook.sheetPartMissing", { sheetName: i.name }));
3584
3585
  this._createOpaqueSheet(n, i.name, o, s, i.sheetId, e, l, a?.tabColor ?? null, t?.[s]);
3585
3586
  } else this._createSheet(n, i.name, o, s, i.sheetId, i.sheet, t?.[s]);
3586
3587
  } catch (e) {
@@ -3588,11 +3589,11 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3588
3589
  }
3589
3590
  }
3590
3591
  this._isLoadingSheets = !1, this._tellSheets(), this._holdPivotCaches(), this._holdPivotSlicers();
3591
- for (const e of this._getSheetRefs(ie.Visibility.VeryHidden)) xs(e) && e.sheet._tellPivots();
3592
- this._updateState({ lastId: _ }), e.view.activeSheetId = u ?? d, this.setView(new ns({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
3593
- const m = this;
3592
+ for (const e of this._getSheetRefs(Te.Visibility.VeryHidden)) xs(e) && e.sheet._tellPivots();
3593
+ this._updateState({ lastId: f }), e.view.activeSheetId = u ?? d, this.setView(new ns({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
3594
+ const _ = this;
3594
3595
  this._protection = new ls(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
3595
- m._emitter.notify("onProtectionChange", { source: e });
3596
+ _._emitter.notify("onProtectionChange", { source: e });
3596
3597
  } }), this._emitter.notify("onLoad");
3597
3598
  } finally {
3598
3599
  o.endPersist(), i.endPersist(), r.endPersist(), s.endPersist();
@@ -3618,7 +3619,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3618
3619
  getBuiltInFunctions: () => t._calculation?.getFunctions(),
3619
3620
  onAdd: (e, s) => {
3620
3621
  const r = t._calculation;
3621
- r.getStatus() !== J.Status.Off && r.start().then(async () => {
3622
+ r.getStatus() !== q.Status.Off && r.start().then(async () => {
3622
3623
  if (t._startModules.has(s)) return;
3623
3624
  const e = s.getFunctions().getItems({
3624
3625
  type: "formula",
@@ -3641,7 +3642,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3641
3642
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
3642
3643
  await Promise.resolve(this._starting);
3643
3644
  const t = this.getCalculation();
3644
- t.getStatus() !== J.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
3645
+ t.getStatus() !== q.Status.Off && (await t.ready(), await t._whenRequestsSettled?.()), await this._emitter.notify("onBeforeSave", { async: !0 });
3645
3646
  const s = { sheets: [] }, r = e?.ignoreStyles ?? !1;
3646
3647
  if (!r) {
3647
3648
  const e = this._theme.toJSON();
@@ -3658,31 +3659,31 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3658
3659
  try {
3659
3660
  const t = this._getSheetRef(this.getSelectedSheetIndex()).id;
3660
3661
  let i = t, u = null;
3661
- const d = this._getState(), g = d.sheetRefsAll, f = d.sheetsById, _ = g.length;
3662
- for (let r = 0; r < _; r++) {
3662
+ const d = this._getState(), g = d.sheetRefsAll, m = d.sheetsById, f = g.length;
3663
+ for (let r = 0; r < f; r++) {
3663
3664
  const o = g[r], n = r + 1;
3664
3665
  let a;
3665
- const h = f.get(o.id);
3666
+ const h = m.get(o.id);
3666
3667
  if (xs(o)) a = {
3667
3668
  name: o.name,
3668
3669
  sheet: await o.sheet.toJSON(e)
3669
3670
  };
3670
3671
  else {
3671
- const e = h, t = l ? l.toResourceId.bind(l) : () => null, s = { part: de.toJSON(e._getPart(), t) }, r = e.getTabColor();
3672
+ const e = h, t = l ? l.toResourceId.bind(l) : () => null, s = { part: be.toJSON(e._getPart(), t) }, r = e.getTabColor();
3672
3673
  r && (s.tabColor = r.toString()), a = {
3673
3674
  name: o.name,
3674
3675
  kind: e.getKind(),
3675
3676
  sheet: s
3676
3677
  };
3677
3678
  }
3678
- void 0 !== o.sheetId && (a.sheetId = o.sheetId), o.visibility === ie.Visibility.Visible ? null === u && (u = n) : a.visibility = o.visibility, o.id === t && (i = n), s.sheets.push(a);
3679
+ void 0 !== o.sheetId && (a.sheetId = o.sheetId), o.visibility === Te.Visibility.Visible ? null === u && (u = n) : a.visibility = o.visibility, o.id === t && (i = n), s.sheets.push(a);
3679
3680
  }
3680
3681
  if (!r) {
3681
3682
  const e = h.toJSON();
3682
3683
  e && Object.keys(e).length > 0 && (s.styles = e);
3683
3684
  }
3684
- const m = this.getProtection().toJSON();
3685
- m && (s.protection = m);
3685
+ const _ = this.getProtection().toJSON();
3686
+ _ && (s.protection = _);
3686
3687
  const p = this._calculation.toJSON();
3687
3688
  Object.keys(p).length > 0 && (s.calc = p);
3688
3689
  const w = await a.toJSONAsync();
@@ -3699,7 +3700,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3699
3700
  if (b.length > 0) {
3700
3701
  const e = l ? l.toResourceId.bind(l) : () => null, t = /* @__PURE__ */ new Set();
3701
3702
  for (const e of this.getPivotTables()) t.add(e.getCacheId());
3702
- const r = fe(this);
3703
+ const r = Y(this);
3703
3704
  for (let e = 0; e < r.length; e++) {
3704
3705
  const s = r[e].toJSON()?.pivot?.cacheId;
3705
3706
  void 0 !== s && t.add(s);
@@ -3738,7 +3739,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3738
3739
  } catch (e) {
3739
3740
  console.warn("error on close", e);
3740
3741
  }
3741
- this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._listenerOriginProvider?.(), this._ownOriginProvider && this._originProvider instanceof _t && this._originProvider.release(), this._closed = !0;
3742
+ this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._listenerOriginProvider?.(), this._ownOriginProvider && this._originProvider instanceof ft && this._originProvider.release(), this._closed = !0;
3742
3743
  }
3743
3744
  beginCommit(e) {
3744
3745
  if (this._closed) throw new Error(g("error.workbook.modelClosed"));
@@ -3747,7 +3748,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3747
3748
  doBatch(e, t) {
3748
3749
  const s = this;
3749
3750
  t = "string" == typeof t ? { description: t } : {
3750
- description: _("op.updateWorkbook"),
3751
+ description: f("op.updateWorkbook"),
3751
3752
  ...t
3752
3753
  };
3753
3754
  const r = w.bind(this._transactions, this, e);
@@ -3767,7 +3768,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3767
3768
  _getState() {
3768
3769
  return this._transactions.getState(this._id);
3769
3770
  }
3770
- _updateState(e, t = _("op.updateWorkbook"), s) {
3771
+ _updateState(e, t = f("op.updateWorkbook"), s) {
3771
3772
  if (!e) return;
3772
3773
  const r = this._beginCommit(t);
3773
3774
  try {
@@ -3788,7 +3789,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3788
3789
  get isIWorkbook() {
3789
3790
  return !0;
3790
3791
  }
3791
- }, Os = { address: null }, xs = (e) => e.sheet.getKind() === ie.Kind.Worksheet, Ls = class {
3792
+ }, Os = { address: null }, xs = (e) => e.sheet.getKind() === Te.Kind.Worksheet, Es = class {
3792
3793
  constructor() {
3793
3794
  this._readFormats = [], this._writeFormats = [], this._encryptions = [];
3794
3795
  }
@@ -3865,9 +3866,9 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3865
3866
  return !0;
3866
3867
  });
3867
3868
  }
3868
- }, Es = /* @__PURE__ */ new WeakMap(), Vs = (e) => !!e && "object" == typeof e && "function" == typeof e.getPath && "function" == typeof e.canWrite, As = class {
3869
+ }, Ls = /* @__PURE__ */ new WeakMap(), Vs = (e) => !!e && "object" == typeof e && "function" == typeof e.getPath && "function" == typeof e.canWrite, As = class {
3869
3870
  constructor() {
3870
- this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new y(this), this._registry = new Ls(), this._defaultStore = new pt(() => this.getWriteFormats(), () => this.getReadFormats());
3871
+ this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new y(this), this._registry = new Es(), this._defaultStore = new pt(() => this.getWriteFormats(), () => this.getReadFormats());
3871
3872
  }
3872
3873
  getBackingStore() {
3873
3874
  return this._backingStore ?? this._defaultStore;
@@ -3910,7 +3911,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3910
3911
  else if (Vs(e)) {
3911
3912
  const s = e.getPath();
3912
3913
  if (!s) throw new Error("Cannot read from an unbound origin (no path).");
3913
- ft(e) ? e = {
3914
+ mt(e) ? e = {
3914
3915
  source: s,
3915
3916
  asCopy: !0
3916
3917
  } : (t = e, e = { source: s });
@@ -3926,7 +3927,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
3926
3927
  const i = t.format, o = t.ext;
3927
3928
  if (!i && !o) throw new Error("Either format or file extension must be provided to determine read type.");
3928
3929
  const n = (await this._registry.getReadFormats(i ? { search: i } : { ext: o }))[0];
3929
- if (!n) throw new f(g("error.io.readFormatUnavailable", { format: i ?? o }));
3930
+ if (!n) throw new m(g("error.io.readFormatUnavailable", { format: i ?? o }));
3930
3931
  const a = s?.typedCreateWorkbookOptions, l = a ? Object.keys(a).find((e) => e.toLowerCase() === n.key.toLowerCase()) : void 0;
3931
3932
  let h = {
3932
3933
  ...s,
@@ -4014,7 +4015,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4014
4015
  async writeArrayBuffer(e, t) {
4015
4016
  if (!t?.format) throw new Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
4016
4017
  const s = (await this._registry.getWriteFormats({ search: t.format }))[0];
4017
- if (!s) throw new f(g("error.io.writeFormatUnavailable", { format: t.format }));
4018
+ if (!s) throw new m(g("error.io.writeFormatUnavailable", { format: t.format }));
4018
4019
  return this._writeArrayBuffer(e, s, t);
4019
4020
  }
4020
4021
  async write(e, t, s) {
@@ -4030,13 +4031,13 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4030
4031
  let i = "string" == typeof t ? this.getOrigin(t) : t;
4031
4032
  const o = i.getFormat();
4032
4033
  let n;
4033
- if ((r?.format || o) && (n = (await this._registry.getWriteFormats({ search: r?.format ?? o ?? void 0 }))[0]), n || i.getPath() && i.canWrite() && i.getExtension() || (n = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !n) throw new f(g("error.io.writeFormatUnresolved"));
4034
+ if ((r?.format || o) && (n = (await this._registry.getWriteFormats({ search: r?.format ?? o ?? void 0 }))[0]), n || i.getPath() && i.canWrite() && i.getExtension() || (n = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !n) throw new m(g("error.io.writeFormatUnresolved"));
4034
4035
  const a = i.getExtension();
4035
4036
  if (r?.format && a && i.getPath() && i.canWrite() && !n.exts.includes(a)) {
4036
4037
  const e = (await this._registry.getWriteFormats({ ext: a }))[0];
4037
4038
  if (e && e.key !== n.key) {
4038
4039
  const e = i.getPath().split(/[/\\]/).pop();
4039
- throw new f(g("error.io.writeFormatMismatch", {
4040
+ throw new m(g("error.io.writeFormatMismatch", {
4040
4041
  format: r.format,
4041
4042
  file: e
4042
4043
  }));
@@ -4044,16 +4045,16 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4044
4045
  }
4045
4046
  if ("string" == typeof t) {
4046
4047
  const e = i.getPath();
4047
- i = new ut(z(e) ? e : `${e}.${n.exts[0]}`, { format: n.key });
4048
+ i = new ut(de(e) ? e : `${e}.${n.exts[0]}`, { format: n.key });
4048
4049
  }
4049
- const h = i.getEncryption(), c = e.getOrigin?.(), u = (i instanceof ut ? i.getPassword() : null) ?? (c instanceof ut ? c.getPassword() : null), d = i.isEncrypted() || (c?.isEncrypted() ?? !1), _ = void 0 !== r?.password ? r.password : u ?? (d ? void 0 : null);
4050
- let m = null;
4051
- if (void 0 === _) {
4050
+ const h = i.getEncryption(), c = e.getOrigin?.(), u = (i instanceof ut ? i.getPassword() : null) ?? (c instanceof ut ? c.getPassword() : null), d = i.isEncrypted() || (c?.isEncrypted() ?? !1), f = void 0 !== r?.password ? r.password : u ?? (d ? void 0 : null);
4051
+ let _ = null;
4052
+ if (void 0 === f) {
4052
4053
  if (d) {
4053
4054
  const e = i.getName();
4054
4055
  throw new l(e ? g("error.io.passwordRequiredSave", { name: e }) : g("error.io.passwordRequiredSaveUnnamed"));
4055
4056
  }
4056
- } else if (null !== _ && (m = await this._registry.getEncryption(h), !m)) throw new f(g("error.io.encryptionUnavailable"));
4057
+ } else if (null !== f && (_ = await this._registry.getEncryption(h), !_)) throw new m(g("error.io.encryptionUnavailable"));
4057
4058
  const p = `${i.getName() ?? g("workbook.defaultName")}.${n.exts[0]}`, w = r?.progress, y = !i.getPath() || !i.canWrite() || !!r?.prompt;
4058
4059
  let S = !1;
4059
4060
  const b = this;
@@ -4061,6 +4062,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4061
4062
  const v = {
4062
4063
  workbook: e,
4063
4064
  format: n,
4065
+ formatNamed: !!r?.format,
4064
4066
  origin: i,
4065
4067
  suggestedName: p,
4066
4068
  prompt: r?.prompt,
@@ -4083,7 +4085,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4083
4085
  }))(w, h), u = await b._writeArrayBuffer(e, l, {
4084
4086
  ...r,
4085
4087
  progress: c
4086
- }), d = Es.get(a);
4088
+ }), d = Ls.get(a);
4087
4089
  if (h.some((e) => !d?.has(e.message)) && r?.onWarnings) {
4088
4090
  const t = await Promise.resolve(r.onWarnings({
4089
4091
  workbook: e,
@@ -4094,7 +4096,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4094
4096
  }));
4095
4097
  if (!y && !1 === t) return null;
4096
4098
  }
4097
- return C = h, m ? m.encode(u, _) : u;
4099
+ return C = h, _ ? _.encode(u, f) : u;
4098
4100
  }
4099
4101
  };
4100
4102
  let I = null;
@@ -4102,12 +4104,12 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4102
4104
  const t = this.getBackingStore();
4103
4105
  if (!t.write) throw new Error("The active backing store is read-only (no write implementation).");
4104
4106
  if (I = await t.write(v), I) {
4105
- if (void 0 !== _ && I instanceof ut && (I.setPassword(_), I.update({ encryption: m ? m.key : null })), C.length) {
4106
- const e = Es.get(I) ?? /* @__PURE__ */ new Set();
4107
+ if (void 0 !== f && I instanceof ut && (I.setPassword(f), I.update({ encryption: _ ? _.key : null })), C.length) {
4108
+ const e = Ls.get(I) ?? /* @__PURE__ */ new Set();
4107
4109
  for (const t of C) e.add(t.message);
4108
- Es.set(I, e);
4110
+ Ls.set(I, e);
4109
4111
  }
4110
- s && I !== e.getOrigin() && ft(e.getOrigin())?.setOrigin(I);
4112
+ s && I !== e.getOrigin() && mt(e.getOrigin())?.setOrigin(I);
4111
4113
  const t = k ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
4112
4114
  this._emitter.notify("onWrite", {
4113
4115
  params: {
@@ -4122,13 +4124,13 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4122
4124
  w?.onComplete && await Promise.resolve(w.onComplete(I));
4123
4125
  } catch (e) {
4124
4126
  const t = e instanceof Error ? e : new Error(String(e));
4125
- if (w?.onError && await Promise.resolve(w.onError(t)), w?.onComplete && await Promise.resolve(w.onComplete(null)), t instanceof f) throw t;
4127
+ if (w?.onError && await Promise.resolve(w.onError(t)), w?.onComplete && await Promise.resolve(w.onComplete(null)), t instanceof m) throw t;
4126
4128
  throw new Error(g("error.io.writeFailed", { reason: t.message }), { cause: e });
4127
4129
  }
4128
4130
  return I;
4129
4131
  }
4130
4132
  _stripExtension(e) {
4131
- const t = z(e);
4133
+ const t = de(e);
4132
4134
  return t ? e.slice(0, e.length - t.length - 1) : e;
4133
4135
  }
4134
4136
  _baseName(e) {
@@ -4140,7 +4142,7 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4140
4142
  if (!t) throw new Error("A write format must be provided.");
4141
4143
  const r = t.handler;
4142
4144
  if (!r) throw new Error(`Unable to resolve a write handler for '${t.key}'.`);
4143
- return he(t.key) || await Z.assertUsable("exports", 0), r(e, {
4145
+ return He(t.key) || await pe.assertUsable("exports", 0), r(e, {
4144
4146
  ...s,
4145
4147
  format: t.key
4146
4148
  });
@@ -4155,13 +4157,13 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4155
4157
  try {
4156
4158
  i = await r(e, s);
4157
4159
  } catch (e) {
4158
- if (e instanceof f) throw e;
4159
- throw new f(g("error.io.readFailed", {
4160
+ if (e instanceof m) throw e;
4161
+ throw new m(g("error.io.readFailed", {
4160
4162
  format: t.description ?? t.key,
4161
4163
  reason: e?.message ?? String(e)
4162
4164
  }), { cause: e });
4163
4165
  }
4164
- return await oe(), i;
4166
+ return await D(), i;
4165
4167
  }
4166
4168
  get isIWorkbookIO() {
4167
4169
  return !0;
@@ -4247,20 +4249,20 @@ var ks, Cs = "workbook.activeSheet", vs = class e extends rt {
4247
4249
  ...Ms
4248
4250
  ]
4249
4251
  }];
4250
- async function Hs(e, t) {
4251
- const { Chart: s } = await import("./DgVCjvTw9Df1DV1x.js");
4252
+ async function zs(e, t) {
4253
+ const { Chart: s } = await import("./7IzItpr7MkdnaAwh.js");
4252
4254
  return new s({
4253
4255
  json: e,
4254
4256
  getStyles: t?.getStyles
4255
4257
  });
4256
4258
  }
4257
- var zs = {
4259
+ var Hs = {
4258
4260
  showRowHeaders: !0,
4259
4261
  showColumnHeaders: !0,
4260
4262
  showRowStripes: !1,
4261
4263
  showColumnStripes: !1,
4262
4264
  showLastColumn: !0
4263
- }, $s = class extends Ke {
4265
+ }, $s = class extends Oe {
4264
4266
  constructor(e, t, s, r) {
4265
4267
  super(e, t?.getProperties() ?? { name: "" }, {
4266
4268
  rowStart: 0,
@@ -4281,11 +4283,11 @@ var zs = {
4281
4283
  return "firstRowSubheading" === s ? `${e}` : "";
4282
4284
  }
4283
4285
  }, Us = (e, t, s, r = 5) => {
4284
- const i = Math.max(3, Math.floor(r)), o = new $s(e, t, s ?? zs, i);
4286
+ const i = Math.max(3, Math.floor(r)), o = new $s(e, t, s ?? Hs, i);
4285
4287
  return {
4286
4288
  rows: i,
4287
4289
  columns: 5,
4288
- getStyleAt: (t, s) => le(void 0, e, o, {
4290
+ getStyleAt: (t, s) => et(void 0, e, o, {
4289
4291
  rowStart: t,
4290
4292
  colStart: s,
4291
4293
  rowEnd: t,
@@ -4295,24 +4297,24 @@ var zs = {
4295
4297
  };
4296
4298
  ks || (ks = {});
4297
4299
  var Js, qs, Ks, Gs = null;
4298
- function Zs() {
4300
+ function Xs() {
4299
4301
  if (!Gs) {
4300
- const e = import("./D9ja7F9irHf9Iovx.js").then((e) => e.loadScriptingDeclarations());
4302
+ const e = import("./CIw6ZC3K9x-ccacl.js").then((e) => e.loadScriptingDeclarations());
4301
4303
  e.catch(() => {
4302
4304
  Gs = null;
4303
4305
  }), Gs = e;
4304
4306
  }
4305
4307
  return Gs;
4306
4308
  }
4307
- var Xs = null;
4308
- function Ys() {
4309
- if (!Xs) {
4310
- const e = import("./D9ja7F9irHf9Iovx.js").then((e) => e.loadScriptingApi()).then((e) => JSON.parse(e));
4309
+ var Zs = null;
4310
+ function Qs() {
4311
+ if (!Zs) {
4312
+ const e = import("./CIw6ZC3K9x-ccacl.js").then((e) => e.loadScriptingApi()).then((e) => JSON.parse(e));
4311
4313
  e.catch(() => {
4312
- Xs = null;
4313
- }), Xs = e;
4314
+ Zs = null;
4315
+ }), Zs = e;
4314
4316
  }
4315
- return Xs;
4317
+ return Zs;
4316
4318
  }
4317
4319
  Js || (Js = {}), (qs || (qs = {})).Type = {
4318
4320
  Button: "button",
@@ -4332,7 +4334,7 @@ Js || (Js = {}), (qs || (qs = {})).Type = {
4332
4334
  ComboEdit: "comboEdit",
4333
4335
  Simple: "simple"
4334
4336
  };
4335
- var Qs = class extends Ve {
4337
+ var Ys = class extends Ke {
4336
4338
  constructor(e) {
4337
4339
  super(e);
4338
4340
  }
@@ -4345,8 +4347,8 @@ var Qs = class extends Ve {
4345
4347
  colEnd: (e?.size?.width ?? 5) - 1,
4346
4348
  rowEnd: (e?.size?.height ?? 5) - 1
4347
4349
  },
4348
- getRanges: (e) => new Ge(null)
4350
+ getRanges: (e) => new se(null)
4349
4351
  }, super._initializeOptions(e);
4350
4352
  }
4351
- }, er = "0.8.0-beta.22", tr = "2026-11-10T18:56:04.829Z";
4352
- export { Ts as A, Ft as C, Pt as D, Ps as E, wt as F, Bs as I, qs as L, St as M, yt as N, bt as O, Ns as P, er as R, Fs as S, Ds as T, ut as _, Js as a, As as b, ct as c, rs as d, Ys as f, ot as g, Us as h, nt as i, ks as j, Zs as k, Ks as l, ns as m, zt as n, tr as o, Qs as p, at as r, ss as s, kt as t, Xt as u, Hs as v, Et as w, Vt as x, Mt as y, Jt as z };
4353
+ }, er = "0.8.0-beta.24", tr = "2026-11-12T02:44:43.343Z";
4354
+ export { Ts as A, Ft as C, Pt as D, Ps as E, wt as F, Bs as I, qs as L, St as M, yt as N, bt as O, Ns as P, er as R, Fs as S, Ds as T, ut as _, tr as a, As as b, Ks as c, at as d, Qs as f, rs as g, Us as h, Js as i, ks as j, Xs as k, Zt as l, ns as m, ot as n, ss as o, Ys as p, nt as r, ct as s, kt as t, Ht as u, zs as v, Lt as w, Vt as x, Mt as y, Jt as z };