@sheetxl/studio-vanilla 0.7.28-beta.4 → 0.8.0-beta.1

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 (336) hide show
  1. package/browser/cjs/2zXD3NPfuQT2KSZq.cjs +7 -0
  2. package/browser/cjs/{C7GpcB_YgM-RLa2P.cjs → B19QM3SGmPKKwD_o.cjs} +1 -1
  3. package/browser/cjs/B5YBx0GqLor3i0O1.cjs +1 -0
  4. package/browser/cjs/{X1LnR885SNQaK5HZ.cjs → B9EI7wviSkHS9ZkH.cjs} +1 -1
  5. package/browser/cjs/BC2gCQkR1iykfAuC.cjs +1 -0
  6. package/browser/cjs/{BbEwESVyRYXzMlW7.cjs → BEVqcFGFU6Ri9y8T.cjs} +1 -1
  7. package/browser/cjs/{mXzhcays1ok40iiU.cjs → BEzaum_kgG4yAOx0.cjs} +1 -1
  8. package/browser/cjs/{FUM_3mQlC-6WPjkT.cjs → BIQZDBQfv3Qm5iC8.cjs} +2 -2
  9. package/browser/cjs/{NzAMMcPT7SETmqPg.cjs → BSCgCfORdZz1Ii5S.cjs} +2 -2
  10. package/browser/cjs/{CxWeFfNAUvhHe9F-.cjs → BZr-IqNS1skh1hr6.cjs} +2 -2
  11. package/browser/cjs/BfzzZ9IR27ZPzj-8.cjs +3 -0
  12. package/browser/cjs/Bgke3PtMSF2Iaen4.cjs +1 -0
  13. package/browser/cjs/{n4ZQ0-3uSrEsInbg.cjs → BziOCn_XEGT4ynN5.cjs} +1 -1
  14. package/browser/cjs/C-HOJozu5NgCil1q.cjs +1 -0
  15. package/browser/cjs/{iyvcAhhnDFxkR8tW.cjs → C2oTW2DjZypuqq7x.cjs} +1 -1
  16. package/browser/cjs/{C0hGnOYkvrwxaGrw.cjs → C5rQELB0TUeXY6VM.cjs} +1 -1
  17. package/browser/cjs/C6yxQPAEgcGWAhYR.cjs +33 -0
  18. package/browser/cjs/{DMp9wql2kbZKAbGe.cjs → CPgCih_KEqnUZ9Rv.cjs} +1 -1
  19. package/browser/cjs/CSNCOmYEOR-iTJ7K.cjs +5 -0
  20. package/browser/cjs/{Ck7Tc5npWk73wrF3.cjs → CcneNtiqtKppCa-p.cjs} +2 -2
  21. package/browser/cjs/{jIxFDc3EQDDXisAC2.cjs → Ci8Uu7_b4lwwRLAD2.cjs} +1 -1
  22. package/browser/cjs/{zEytED4Eleo5DVvS.cjs → Cm21F18ga8TluA9h.cjs} +1 -1
  23. package/browser/cjs/{kqP-W5qRIy-d-ChZ.cjs → CojEXZgX08waZOoq.cjs} +1 -1
  24. package/browser/cjs/CrDTTLE9EvaGDSD4.cjs +88 -0
  25. package/browser/cjs/{Y78-VwYSNffwXRVz2.cjs → CvV18ZJgssoHMkdf2.cjs} +1 -1
  26. package/browser/cjs/{sFD2bsTPq558FCMx.cjs → Cy-4IMt-AbR-ifP3.cjs} +1 -1
  27. package/browser/cjs/CyGzzWYDy-IniKCq2.cjs +7 -0
  28. package/browser/cjs/CzgwTfy2072Dmt5u.cjs +1 -0
  29. package/browser/cjs/{CEpXnHhrczUmIwMa2.cjs → D19RglhKiroWfpQn2.cjs} +1 -1
  30. package/browser/cjs/DFHxNnJ-lHtv0hIq.cjs +1 -0
  31. package/browser/cjs/{DAA0zpvkrMOLDPxr.cjs → DH3WXPfGHwWJW0nH.cjs} +1 -1
  32. package/browser/cjs/{DcHxh5QxfVitzdhv.cjs → DNy-UU3NKNqQQngF.cjs} +1 -1
  33. package/browser/cjs/{stXrcKZOIHl0fq5U2.cjs → DPjEO7dwhCFd8DHR2.cjs} +1 -1
  34. package/browser/cjs/{CnjaTz8HJXStwuH8.cjs → DfMJOaJ0GcUiSn4Q.cjs} +1 -1
  35. package/browser/cjs/{J7LQgueGGNUE9emR.cjs → DiZDRPIgbO3sQ8Vb.cjs} +1 -1
  36. package/browser/cjs/{DQTBgNqDHInvxrwS.cjs → DsIHLUKUrSrYhFHl.cjs} +1 -1
  37. package/browser/cjs/{Dkgu60euhL6wPoYa2.cjs → DvSvfeo9V0Abfd3q2.cjs} +1 -1
  38. package/browser/cjs/{C9L-xibuJ434Mqqq2.cjs → DxQkFYAFNZubVdn22.cjs} +1 -1
  39. package/browser/cjs/{DgGGzl7jq3i7Cqfi.cjs → E-IqDztfMb_xdszH.cjs} +1 -1
  40. package/browser/cjs/{BFdq8CHyR6FQvmQA2.cjs → ElcoSB--cCpS6i7R2.cjs} +1 -1
  41. package/browser/cjs/KNCocKN9uPR0tvUS.cjs +1 -0
  42. package/browser/cjs/{D-o-mlG9tYSuZrvy2.cjs → Kr8f1inOTt-MICaP2.cjs} +1 -1
  43. package/browser/cjs/{Cu0UCwSpRK4OnCuP.cjs → PM3PrEWG3WHKxaDx.cjs} +1 -1
  44. package/browser/cjs/{QK9BfdSZPLmyRpGi2.cjs → YG320hBA20Dl3HoU2.cjs} +1 -1
  45. package/browser/cjs/{M19oMY91yZxf2WAR.cjs → _H5j4dU7HOBYTawU.cjs} +1 -1
  46. package/browser/cjs/a0Z-SXs_N71CtqYb2.cjs +1 -0
  47. package/browser/cjs/{DtaFdoK4CppKRF6F2.cjs → aYuNpndpwcZG5eik2.cjs} +1 -1
  48. package/browser/cjs/bGMaev70Zd_NXqLM2.cjs +1 -0
  49. package/browser/cjs/bIaGoYEDSBCrAaB6.cjs +1 -0
  50. package/browser/cjs/{BKXFdLiztqEHIjQ_2.cjs → hzUo76TXMOBqsI3U2.cjs} +1 -1
  51. package/browser/cjs/i2VboqjlOcozI9MQ.cjs +12 -0
  52. package/browser/cjs/index.cjs +1 -1
  53. package/browser/cjs/xBcvszV6x7ys-m532.cjs +1 -0
  54. package/browser/esm/{Duo6t8_BzIiBDrFm.mjs → -vgNEEXiEad4bltZ.mjs} +3417 -3070
  55. package/{cdn/assets/BzktrYJH7SQ9GyUI2.js → browser/esm/1guzFZp1LHz_FwfL.mjs} +1 -1
  56. package/browser/esm/{Bz3-FDGVU67Izdnv2.mjs → 3y_bCend8tkaewDG2.mjs} +7 -7
  57. package/{cdn/assets/CBC_MJL6Bwk7bzQz2.js → browser/esm/47Yv4X226-93If7L.mjs} +1 -1
  58. package/browser/esm/{pFBVGSvmImMMDMuJ.mjs → 7rixDGGrR72lXkMV.mjs} +5 -5
  59. package/browser/esm/{CXDtDYyREwoFwtMJ2.mjs → 8V-VceXEjpADM8qK2.mjs} +1 -1
  60. package/browser/esm/{5LJ1sC7IPn109Ien.mjs → 8f9hCbpXTTYEgG312.mjs} +2 -2
  61. package/browser/esm/{CXlA71yGA1Hqvp_S.mjs → 9_bymSfTn_rR_v6W.mjs} +5 -5
  62. package/browser/esm/{DimkHq0_x-d4uNdV.mjs → At60x9FEPePwPP_J.mjs} +6444 -6051
  63. package/browser/esm/{O982fBwJ80FSdhad.mjs → B0HA_dHcr0kKfudQ.mjs} +40 -40
  64. package/browser/esm/{C3dXBjR3SrDCdJlm.mjs → B1NoGosH2YQh01g7.mjs} +6 -6
  65. package/browser/esm/{DhgwMDb052opCiAA.mjs → B4h6iO7hQ9lCR7kj.mjs} +332 -332
  66. package/browser/esm/{DmqS0kz7jvlOw3qr.mjs → B4iT_CduJeJunwBc.mjs} +2 -2
  67. package/browser/esm/{BZSAb1WGbwagUKGv2.mjs → B4vYIE3kSPTxCgpf2.mjs} +5 -5
  68. package/browser/esm/{DLArQtAbWAarI8od2.mjs → B5ZqqASTcBEV5L9K2.mjs} +1 -1
  69. package/browser/esm/{CxKAnYBWCYMkUpnr.mjs → BBtOlJMVlsWorNJH.mjs} +189 -189
  70. package/browser/esm/{BZkd8LNLgEd5WQXO2.mjs → BCZjYGV8AqIZghBH.mjs} +1 -1
  71. package/{cdn/assets/DRAYZ0SGlbCLkftR.js → browser/esm/BCkXtOM3yKocv7L-2.mjs} +1 -1
  72. package/{cdn/assets/Dgt8kua8CYlMRfdw.js → browser/esm/BD7RxHQgrqy_4tb5.mjs} +2 -2
  73. package/{cdn/assets/DtkqR-Hu7K4agnCs2.js → browser/esm/BDkVAo0CDCTE04ZJ2.mjs} +1 -1
  74. package/browser/esm/{L6LjzOx1G9Idjtxa2.mjs → BHBJtVTiQByD_y9j.mjs} +1 -1
  75. package/{cdn/assets/BGAXiHOiX_PZ1ww1.js → browser/esm/BHmYoIIbNW3GdcqV2.mjs} +1 -1
  76. package/{cdn/assets/BF9yh58xfvR0KbSo.js → browser/esm/BLcn1kGRsjURZSzk.mjs} +2 -2
  77. package/browser/esm/{DnMUizHKSRwWpO_7.mjs → BMRav2VAqEzDSp3r2.mjs} +1 -1
  78. package/{cdn/assets/esX6dx06TUUL-cRt.js → browser/esm/BOl4FzJRD7MplCU72.mjs} +1 -1
  79. package/{cdn/assets/D2Ls6urWeByV5W-B.js → browser/esm/BPv6Pw1hW-sV5Fya.mjs} +1 -1
  80. package/browser/esm/{DygUxASTETZM60uN2.mjs → BQDXkeSabbxB5DUB2.mjs} +6 -6
  81. package/browser/esm/{FAHIw2t7_M_rvRio.mjs → BUCKq_2lHPd1ndvw.mjs} +6 -6
  82. package/browser/esm/{B9t9fF8FNCLomgK_.mjs → BVRzmIk5PujkT_Ap.mjs} +5 -5
  83. package/{cdn/assets/BaIe3fLfPLw3FbYP2.js → browser/esm/BVjXdv_wkL1x_8ZJ2.mjs} +1 -1
  84. package/browser/esm/{CElACTFuqPAnCAMJ.mjs → BX4f6i2WMBMKFVCq.mjs} +4 -4
  85. package/browser/esm/{HFqcMD9nTL0jdLxT.mjs → BZsx0QHg1RZlM9ZN.mjs} +1 -1
  86. package/browser/esm/{Dwko6HB2zePBBeBu2.mjs → BceIETi6JJRW6Ss62.mjs} +9 -9
  87. package/browser/esm/{B3tC7wY_kUGXf5sb2.mjs → Be4QC65cR8N84rTn.mjs} +1 -1
  88. package/browser/esm/{Cye91DfKIFwRdDpF.mjs → BhxX7CZWSOlV2Dsz.mjs} +7 -7
  89. package/browser/esm/{CFtsbobCiLpZIzCh.mjs → BhzLZRz2N8RxjQ_U.mjs} +3 -3
  90. package/browser/esm/{DGfzktq0BrIwcb8j.mjs → BjTf3XA9Swj0ngpH.mjs} +2 -2
  91. package/browser/esm/{CfjG7gHJ4oN60Clj.mjs → BkSb_vyWe-AhyEDa.mjs} +3 -3
  92. package/browser/esm/{XBb7Mxqf0beXaSJt.mjs → Bl6bX86tSq8hfyb2.mjs} +6 -6
  93. package/browser/esm/{BgwHVPZp494SgQ0d2.mjs → Blc1T4zLkp8bRC_n2.mjs} +7 -7
  94. package/browser/esm/{BgNWvKfVoVgVVDB4.mjs → Bp9qFBIcpIGXvMgo.mjs} +13 -13
  95. package/browser/esm/{Cd8G1nX1dKzp-mho2.mjs → BqTFwWLbXXJ0Fu-X2.mjs} +1 -1
  96. package/browser/esm/{DHQcJqD-EtJ0Efug2.mjs → BqwvP0318zI2izeL2.mjs} +9 -9
  97. package/browser/esm/{ByJMrAYRARLc7uZQ2.mjs → Bv_96nwOEMHN9Sa02.mjs} +1 -1
  98. package/{cdn/assets/D5BuXc-kVnr6Xiae2.js → browser/esm/BykiUmcpDgSRNQI12.mjs} +1 -1
  99. package/browser/esm/{BkBT2LB95lonIiBu.mjs → C0rS1uBqfsj-gPR8.mjs} +9 -9
  100. package/browser/esm/{BjYIAiuzZbD-dk822.mjs → C1ZePT2B182vSnxW2.mjs} +1 -1
  101. package/browser/esm/{CRsnKeHAnKrWvuG52.mjs → C6CK_4GD9IpxKglV2.mjs} +792 -792
  102. package/browser/esm/{Ykh10IaXTKA2XWot.mjs → CAPgMrAKg07EREFD.mjs} +1 -1
  103. package/browser/esm/{BetL7yI63lEdQ0gM.mjs → CEN8dYSpN2oew8HH.mjs} +1 -1
  104. package/{cdn/assets/BRBHACVjnV1_6VLQ.js → browser/esm/CG5v2hAwGR5Ptufn.mjs} +1 -1
  105. package/browser/esm/CGGJWgWSPZ0aP_C3.mjs +87 -0
  106. package/{cdn/assets/CsKCqLuggHhYC93k.js → browser/esm/CGqvy5LwQ4z9J2oD2.mjs} +1 -1
  107. package/{cdn/assets/CbJ_xQftC08KrH3E.js → browser/esm/CGyydD3tRb0ik50l2.mjs} +1 -1
  108. package/browser/esm/{DjS4iUli-T3uuUfK.mjs → CH0of3GZTzHviuQV.mjs} +1 -1
  109. package/{cdn/assets/DJSXXWTUJGbXqLLx.js → browser/esm/CJPemkFUzhcAD_qR.mjs} +1 -1
  110. package/browser/esm/{C4vqrW3EmJDy1otX.mjs → COA_SZY2x8q6t4BD.mjs} +1 -1
  111. package/browser/esm/{D_8B8jIlshd3eTIO2.mjs → CPUlpDM6aAzZzCat2.mjs} +11 -11
  112. package/browser/esm/{BsP1iPcd49wYIIoP.mjs → CQM87ZBN7Yzn4Yxr.mjs} +3 -3
  113. package/{cdn/assets/BPAEbeXV75XIAS4n.js → browser/esm/CR3jgkduTLczbMjH2.mjs} +1 -1
  114. package/{cdn/assets/6L6HfOFw1xzxXtf22.js → browser/esm/CU1d8OvDv5TU6fSd.mjs} +155 -155
  115. package/{cdn/assets/B6Y_HasaiihQLVYz2.js → browser/esm/CY1zykikO58_ADk8.mjs} +121 -121
  116. package/browser/esm/{s4trFf5sOSGNEzr3.mjs → CZWIS7FuqNjbheSw.mjs} +6 -6
  117. package/browser/esm/{BT2mYkpZGrhWovkv2.mjs → Cb-FUOYcyRSkHG6u2.mjs} +11 -11
  118. package/{cdn/assets/D4aK0uTRJQpM63922.js → browser/esm/Cbw0JeJURvQyxIoa.mjs} +1 -1
  119. package/browser/esm/{CFVzVz9BCRBowBea.mjs → Cc5IufffX4N-8QpE.mjs} +3 -3
  120. package/browser/esm/{BqMvXD8dX4ksYjnj.mjs → Cd8HXAJlflkkTXxc.mjs} +3 -3
  121. package/browser/esm/{DrKUGkrCTKZHu8XC.mjs → CdMv3f8Gyxh8q2RR2.mjs} +1 -1
  122. package/browser/esm/{DnCkPg9-xb3RvxD-.mjs → CfuhUkrvOq11d9FR.mjs} +7 -7
  123. package/{cdn/assets/MHuhAgQAA8zcnWkd2.js → browser/esm/CfvrjQGuf7vXiQCB.mjs} +1 -1
  124. package/browser/esm/{Bj3gyDL2ZJUDcxt72.mjs → Ckl3FLCOeqw7yhkP2.mjs} +8 -8
  125. package/browser/esm/{BxecIrskOMQZB-Xc.mjs → Clfp7SznkOrJoQvL.mjs} +1 -1
  126. package/browser/esm/{DuJ_gK9f35IbKDd6.mjs → CpjX81WsWJbXMUoT.mjs} +185 -181
  127. package/browser/esm/{D8zyGG6yt4CsyA8K.mjs → CsufM5aF6VTLKDWM.mjs} +7 -7
  128. package/{cdn/assets/Bce8ZTUCpXr5Y_zl2.js → browser/esm/CtXoSHbCUKMY-tSJ.mjs} +1 -1
  129. package/browser/esm/{hsy1zALC1oNNm5Sf.mjs → D3G3tI3DVCUF3Gdk.mjs} +1 -1
  130. package/browser/esm/{DER7-kADXFnTmK-32.mjs → D4VqLbEWag8lTWzC2.mjs} +13 -13
  131. package/browser/esm/{Bjx-9lUaScF5-Hki2.mjs → D6SKy2BtcWkhfiA02.mjs} +1 -1
  132. package/browser/esm/{B_U_UpQXdbjNRthb.mjs → D9-wpGVbTS9rRpxx.mjs} +1 -1
  133. package/browser/esm/{BrUe0MnOhxzeOngn2.mjs → DBL3Qp5jyPrFg7KI2.mjs} +1 -1
  134. package/browser/esm/{B-dSKzg5shPDd733.mjs → DDOO4tcrO4OfMUDe.mjs} +1 -1
  135. package/browser/esm/DDUYQ8FPeh1TJU24.mjs +538 -0
  136. package/browser/esm/{CJ-lOo2cXlcYrg2P.mjs → DFdU1DsC1lXOrejZ.mjs} +950 -945
  137. package/browser/esm/{DdtDlBp6KJZjL28o.mjs → DMLwXmjo28k_iNEU.mjs} +5 -10
  138. package/browser/esm/{BzktrYJH7SQ9GyUI.mjs → DMX-ZlC_ljcf7oUN.mjs} +1 -1
  139. package/{cdn/assets/DOsKUeLPwFIdzQv32.js → browser/esm/DQ-0yyFAwoWtxmhV2.mjs} +1 -1
  140. package/{cdn/assets/BGWyNjrM55ce-D1o.js → browser/esm/DQ4o4dG7gWbL1X8F2.mjs} +1 -1
  141. package/{cdn/assets/CmYCYFWjq9KP6xw7.js → browser/esm/DRc_Wi5c7WdKHTVN2.mjs} +1 -1
  142. package/{cdn/assets/CY7qR8ENX314HrrD.js → browser/esm/DTaVECXVrgvC48BE.mjs} +3 -3
  143. package/browser/esm/{DFQGftDcmDwUGxV8.mjs → DVJd6McdAG5udItH.mjs} +5 -5
  144. package/browser/esm/{B6bX01HNxwBooBTX2.mjs → DVQNQmjI2PKkwiOw2.mjs} +15 -15
  145. package/browser/esm/{BJQfvwvEke-uN0_02.mjs → DVZ_UnchuMRveDG32.mjs} +4 -4
  146. package/{cdn/assets/Bh4hZt6639QZusIG.js → browser/esm/DW72HwfnJtQxzoGa.mjs} +2 -2
  147. package/browser/esm/{CHmSnCPoww1StSta.mjs → DXWmgQSeh0_HDxZj.mjs} +4 -4
  148. package/{cdn/assets/FVJ1akngxeMiYwPa.js → browser/esm/DZbR5R1fNikjgqYb.mjs} +1 -1
  149. package/{cdn/assets/C7xBBqvPqat9oEft2.js → browser/esm/D_t53-8k73CNpV-p.mjs} +72 -46
  150. package/browser/esm/{DhW7Cqyuxk7D6zsW.mjs → D_zNx76HGunFi7xJ.mjs} +12 -12
  151. package/browser/esm/{DENx9Ts-f8adXw3Y2.mjs → Dc0BDcQUGy_WIVFa.mjs} +1 -1
  152. package/{cdn/assets/CpEgh9EOkeMvwAuj.js → browser/esm/DfRGH6mEtIVDWEYN2.mjs} +1 -1
  153. package/{cdn/assets/BZXvEddjoz4C8y4w.js → browser/esm/Dg5wjQp0fArKXlM3.mjs} +2 -2
  154. package/browser/esm/{N-koparnupMSl92y.mjs → DnuaqN0xfgqzl8qG.mjs} +231 -231
  155. package/{cdn/assets/CJGlwQusOCSy9ZAb.js → browser/esm/Dnx3_xXfRlD6ECfZ2.mjs} +1 -1
  156. package/browser/esm/{DJk14sSSnSHiEXZ72.mjs → DrUEYcXg6N2D2s1Z2.mjs} +1 -1
  157. package/{cdn/assets/DjfBSoaKM-vtbeqT.js → browser/esm/DtXC6uPF2LLktqFE.mjs} +2 -2
  158. package/browser/esm/{6A8iYjFWJzx5PaTP2.mjs → DuPdSe-EXFTx9dsc2.mjs} +8 -8
  159. package/browser/esm/{DSWdYe7SDB5cYWo5.mjs → DzDwSOBdJh_lx_NM.mjs} +5 -5
  160. package/browser/esm/{Bc2Dp6W4U_22cv7c.mjs → EwzqnZl1lTr56hH-2.mjs} +1 -1
  161. package/browser/esm/{PzCXbVRf1jOHVOAw.mjs → Gy0CHZTvn4hY-rkx2.mjs} +1 -1
  162. package/browser/esm/{CY4ANhbzXqZMJPnL2.mjs → NekeSGoazNCraGNC2.mjs} +7 -7
  163. package/browser/esm/{DM4g0nYgYXgI44dL2.mjs → R5bs6kCQSZmsCXz-.mjs} +1 -1
  164. package/browser/esm/{BQt5lpPjssz4Lvhs.mjs → RW23HF8taEtW8q9D.mjs} +2 -2
  165. package/browser/esm/{-9NsA_4pZqcEQBX7.mjs → fJ1McMt7xzRA_lUX.mjs} +6 -6
  166. package/{cdn/assets/g8dDbkwbYjhKWJM2.js → browser/esm/hFSDx-LnUOObv-6h2.mjs} +1 -1
  167. package/browser/esm/index.mjs +4 -4
  168. package/browser/esm/{BUKNpzG26V0YaAzW.mjs → nguMxPB9LKexKBRX.mjs} +12 -12
  169. package/browser/esm/{BmTSjuGI87QqMA-a.mjs → oYdWyqsKo9ejAdVm.mjs} +2 -2
  170. package/browser/esm/{CTwLETvNO4KeXbkK2.mjs → qG5zdZZAe6mQIJo32.mjs} +1 -1
  171. package/browser/esm/{evPbHV86yom22yGf2.mjs → qzhFT2j-mpQEQnKs.mjs} +2641 -2556
  172. package/browser/esm/{B4fSPDN923nqCDVE2.mjs → vcRSnmAqjwKglEkY.mjs} +1 -1
  173. package/cdn/assets/{hClmI7sWeaBbHo3W2.js → -2S675KWulPRlVNb2.js} +12 -12
  174. package/{browser/esm/BBhB25AlKEzdoI0V.mjs → cdn/assets/1guzFZp1LHz_FwfL2.js} +1 -1
  175. package/cdn/assets/{xMskoOI2CK9-AmBF2.js → 2CuCH0wi9XPgVzE42.js} +7 -7
  176. package/cdn/assets/{CimYGZTVXcjbjrBU2.js → 2UHIeioUPXrwtZy-2.js} +13 -13
  177. package/{browser/esm/CBC_MJL6Bwk7bzQz.mjs → cdn/assets/47Yv4X226-93If7L2.js} +1 -1
  178. package/cdn/assets/{CXDtDYyREwoFwtMJ.js → 8V-VceXEjpADM8qK.js} +1 -1
  179. package/cdn/assets/{5LJ1sC7IPn109Ien.js → 8f9hCbpXTTYEgG31.js} +2 -2
  180. package/{browser/esm/CBuulf8RrSItPZJi.mjs → cdn/assets/B55nrhIK6gAAu4ZA.js} +2 -2
  181. package/cdn/assets/{DLArQtAbWAarI8od.js → B5ZqqASTcBEV5L9K.js} +1 -1
  182. package/cdn/assets/{Dq7WxMef5CTJ47QI2.js → BAhvL7M7ZcgZ8eDc2.js} +7 -7
  183. package/cdn/assets/{BZkd8LNLgEd5WQXO.js → BCZjYGV8AqIZghBH.js} +1 -1
  184. package/{browser/esm/DRAYZ0SGlbCLkftR2.mjs → cdn/assets/BCkXtOM3yKocv7L-.js} +1 -1
  185. package/{browser/esm/DtkqR-Hu7K4agnCs.mjs → cdn/assets/BDkVAo0CDCTE04ZJ.js} +1 -1
  186. package/cdn/assets/{L6LjzOx1G9Idjtxa.js → BHBJtVTiQByD_y9j2.js} +1 -1
  187. package/{browser/esm/BGAXiHOiX_PZ1ww12.mjs → cdn/assets/BHmYoIIbNW3GdcqV.js} +1 -1
  188. package/cdn/assets/{Bfd3T36ocASPZddR.js → BJEpPEyFWtLzMIq-2.js} +389 -385
  189. package/{browser/esm/DxxlSejA2S6YUPWD.mjs → cdn/assets/BKEzd89UphJ8q1pp2.js} +166 -166
  190. package/cdn/assets/{DoJfPxuL3zziG4p62.js → BM7OqAUEUk-up7_82.js} +13 -13
  191. package/cdn/assets/{DnMUizHKSRwWpO_72.js → BMRav2VAqEzDSp3r.js} +1 -1
  192. package/cdn/assets/{B3ZyfwskutLZMYfl2.js → BNuoKAzs4zkxSocG2.js} +7 -7
  193. package/cdn/assets/{DW2yQm-sEcHogX7E.js → BNybEGR813e3aNIv.js} +953 -948
  194. package/{browser/esm/esX6dx06TUUL-cRt.mjs → cdn/assets/BOl4FzJRD7MplCU7.js} +1 -1
  195. package/{browser/esm/D2Ls6urWeByV5W-B2.mjs → cdn/assets/BPv6Pw1hW-sV5Fya.js} +1 -1
  196. package/cdn/assets/{CblzazoiTtSuaAkj.js → BU6uQhQhpaLElTT82.js} +8 -8
  197. package/cdn/assets/{omgRvCRxe7suvog8.js → BVgTMDEoPgsWFmku.js} +105 -105
  198. package/{browser/esm/BaIe3fLfPLw3FbYP2.mjs → cdn/assets/BVjXdv_wkL1x_8ZJ2.js} +1 -1
  199. package/cdn/assets/BWlMK76Aj2d4ygsH.js +538 -0
  200. package/cdn/assets/{HFqcMD9nTL0jdLxT2.js → BZsx0QHg1RZlM9ZN2.js} +1 -1
  201. package/cdn/assets/{B3tC7wY_kUGXf5sb.js → Be4QC65cR8N84rTn2.js} +1 -1
  202. package/cdn/assets/{DP9sLYfGGWMDI7hL2.js → BhDLR-jtbOOG-tl12.js} +25 -25
  203. package/cdn/assets/{B4492m5zRjz4JWIo2.js → BixsQGDDf3Iv_PtW2.js} +5 -10
  204. package/cdn/assets/{JL1xk8XqkuTOA_as2.js → Bl6C6xWT8E6b7OwJ2.js} +18 -18
  205. package/cdn/assets/{Cd8G1nX1dKzp-mho.js → BqTFwWLbXXJ0Fu-X.js} +1 -1
  206. package/cdn/assets/{ByJMrAYRARLc7uZQ.js → Bv_96nwOEMHN9Sa0.js} +1 -1
  207. package/{browser/esm/D5BuXc-kVnr6Xiae.mjs → cdn/assets/BykiUmcpDgSRNQI1.js} +1 -1
  208. package/cdn/assets/{DEyeWdXLwDRo2yYf2.js → BzUU8y1IFjREzgog2.js} +8 -8
  209. package/cdn/assets/{BjYIAiuzZbD-dk82.js → C1ZePT2B182vSnxW.js} +1 -1
  210. package/cdn/assets/{DGWhm91XZlY1GWHe2.js → C8mUyjJ26jsHGl_D.js} +6 -6
  211. package/cdn/assets/{Ykh10IaXTKA2XWot2.js → CAPgMrAKg07EREFD2.js} +1 -1
  212. package/cdn/assets/{B0N6rTGGJN2DZPaf.js → CBuvbUg67ah_3BOZ.js} +2 -2
  213. package/cdn/assets/{BetL7yI63lEdQ0gM2.js → CEN8dYSpN2oew8HH2.js} +1 -1
  214. package/{browser/esm/BOMct7uvqiNJIS63.mjs → cdn/assets/CF8m5SqeMaRkGIYM.js} +2 -2
  215. package/{browser/esm/BRBHACVjnV1_6VLQ2.mjs → cdn/assets/CG5v2hAwGR5Ptufn2.js} +1 -1
  216. package/{browser/esm/CsKCqLuggHhYC93k2.mjs → cdn/assets/CGqvy5LwQ4z9J2oD.js} +1 -1
  217. package/{browser/esm/CbJ_xQftC08KrH3E2.mjs → cdn/assets/CGyydD3tRb0ik50l.js} +1 -1
  218. package/cdn/assets/CH0of3GZTzHviuQV.js +24 -0
  219. package/cdn/assets/CH0of3GZTzHviuQV2.js +24 -0
  220. package/cdn/assets/{BIPjogMyMmLRly43.js → CHttngK66Ido5dWW.js} +7 -7
  221. package/{browser/esm/DJSXXWTUJGbXqLLx.mjs → cdn/assets/CJPemkFUzhcAD_qR.js} +1 -1
  222. package/cdn/assets/{C4vqrW3EmJDy1otX.js → COA_SZY2x8q6t4BD.js} +1 -1
  223. package/{browser/esm/BPAEbeXV75XIAS4n2.mjs → cdn/assets/CR3jgkduTLczbMjH.js} +1 -1
  224. package/cdn/assets/{CnfGgjuCEyX-PYs_2.js → CT3G9YRPVfKtHWwf2.js} +12 -12
  225. package/{browser/esm/Eszk9OugmYOhaS2s.mjs → cdn/assets/C_Io1QC4CeLGRBrz.js} +2 -2
  226. package/{browser/esm/D4aK0uTRJQpM6392.mjs → cdn/assets/Cbw0JeJURvQyxIoa.js} +1 -1
  227. package/cdn/assets/{DrKUGkrCTKZHu8XC.js → CdMv3f8Gyxh8q2RR.js} +1 -1
  228. package/cdn/assets/{BOTU30yJHbaNehFS.js → Ce5A_D4YBgi_s2KF.js} +8 -8
  229. package/{browser/esm/MHuhAgQAA8zcnWkd.mjs → cdn/assets/CfvrjQGuf7vXiQCB2.js} +1 -1
  230. package/cdn/assets/{DY9zG4TdF0FAs_QP2.js → Chq4BwbjH0sbIkJN2.js} +2 -2
  231. package/cdn/assets/{BxecIrskOMQZB-Xc.js → Clfp7SznkOrJoQvL.js} +1 -1
  232. package/{browser/esm/PAu9erpoOTNzgNbN.mjs → cdn/assets/CopfZ7Y1Zn_PDNXK.js} +2 -2
  233. package/{browser/esm/DdaO25i-WWFSh1W0.mjs → cdn/assets/CpYlf4dXa_V2v-iS2.js} +508 -508
  234. package/cdn/assets/{BO2NRW9sjHGE9tg-2.js → CpnA5TZRkPDt4HnM2.js} +2 -2
  235. package/cdn/assets/{NZO3-fDBtqhmCsbB2.js → Crkvq5j5KIa6eTLI2.js} +12471 -12078
  236. package/{browser/esm/Bce8ZTUCpXr5Y_zl.mjs → cdn/assets/CtXoSHbCUKMY-tSJ2.js} +1 -1
  237. package/cdn/assets/{CdPxVRKpCOqCDHI8.js → Cv-KXN9kl0UeMezQ.js} +215 -215
  238. package/cdn/assets/{BouCHi6QnBrUDYkx.js → CvtkpvGzCHhNuwTm.js} +2181 -2096
  239. package/cdn/assets/{llvXNxZaCMnYqvSm.js → D-fJXasEYyfRUcj2.js} +3 -3
  240. package/cdn/assets/{DlLXCXDokJ72EW-E.js → D1MA2ed2cLMt7hV9.js} +7 -7
  241. package/cdn/assets/{hsy1zALC1oNNm5Sf.js → D3G3tI3DVCUF3Gdk2.js} +1 -1
  242. package/cdn/assets/{Bjx-9lUaScF5-Hki.js → D6SKy2BtcWkhfiA0.js} +1 -1
  243. package/cdn/assets/{B_U_UpQXdbjNRthb.js → D9-wpGVbTS9rRpxx.js} +1 -1
  244. package/cdn/assets/{CSkSOhGT8E29E2Nh2.js → D9gETGi23d14kT7u2.js} +15 -15
  245. package/cdn/assets/{BjN8kU7URKZwGlmk2.js → D9joTG0Z2zdWHAEa2.js} +3 -3
  246. package/cdn/assets/{BrUe0MnOhxzeOngn.js → DBL3Qp5jyPrFg7KI.js} +1 -1
  247. package/cdn/assets/{HeznPoDlSj26Q4lq.js → DC9obE_EVmxtvXCf.js} +2196 -2195
  248. package/cdn/assets/{CDqMmEdh_CPaFCCi2.js → DCnA2-zB7W_QB-tD2.js} +9 -9
  249. package/cdn/assets/{BdmCBWTVHb7KuHxO2.js → DDNivpFWzQ3AIJia.js} +327 -327
  250. package/cdn/assets/{B-dSKzg5shPDd733.js → DDOO4tcrO4OfMUDe.js} +1 -1
  251. package/cdn/assets/{D57KcDfTbBzf_NGr.js → DEUY_zuVwmptMX4l.js} +7 -7
  252. package/cdn/assets/{DEFEOS3OuA23llF92.js → DIQf1pX-j-dWQu_e.js} +12 -12
  253. package/cdn/assets/{Wb48SedqaKMZnxym.js → DJwQ9abZkyFO9Doy.js} +4 -4
  254. package/cdn/assets/{KJzdwvEWwCwAXuo4.js → DKeLjEJPO9nT3bpr.js} +6 -6
  255. package/cdn/assets/{Dy5Z2XIqS7-0tdjc2.js → DLEdaT0MmrOxMa2h2.js} +41 -41
  256. package/cdn/assets/{CIgn8uIPaadIJP4a2.js → DOsbSsKsexrBoeXa2.js} +10 -10
  257. package/{browser/esm/DOsKUeLPwFIdzQv32.mjs → cdn/assets/DQ-0yyFAwoWtxmhV2.js} +1 -1
  258. package/{browser/esm/BGWyNjrM55ce-D1o2.mjs → cdn/assets/DQ4o4dG7gWbL1X8F.js} +1 -1
  259. package/{browser/esm/CmYCYFWjq9KP6xw72.mjs → cdn/assets/DRc_Wi5c7WdKHTVN.js} +1 -1
  260. package/cdn/assets/{Cb71rZAQvCk3wnfp.js → DTCtbG90ip7Z7LaG.js} +6 -6
  261. package/cdn/assets/{B2BvBxjz3Kfii_Gn2.js → DVS_5oDniuAFH3vT2.js} +1020 -1020
  262. package/cdn/assets/{DpNYiOK112bFC3KK2.js → DW7JlG-SQEdLYNar2.js} +3 -3
  263. package/cdn/assets/{DJHOKENCVOJMx3aE2.js → DZDynaLqNeVaDoiH2.js} +9 -9
  264. package/{browser/esm/FVJ1akngxeMiYwPa.mjs → cdn/assets/DZbR5R1fNikjgqYb.js} +1 -1
  265. package/cdn/assets/{XSUr59k0gaFIS1Qf2.js → D_HeH7AJqWoxehn52.js} +3 -3
  266. package/{browser/esm/C7xBBqvPqat9oEft.mjs → cdn/assets/D_t53-8k73CNpV-p2.js} +72 -46
  267. package/{browser/esm/DOIVDuyf7YyJZjcD.mjs → cdn/assets/DaBczM5xU9ev5_or.js} +2 -2
  268. package/cdn/assets/{D-tQc4bi3FzGVnFg.js → DbEGszSW_J_k96KJ.js} +2 -2
  269. package/cdn/assets/{DENx9Ts-f8adXw3Y.js → Dc0BDcQUGy_WIVFa.js} +1 -1
  270. package/{browser/esm/CpEgh9EOkeMvwAuj.mjs → cdn/assets/DfRGH6mEtIVDWEYN.js} +1 -1
  271. package/{browser/esm/CJGlwQusOCSy9ZAb2.mjs → cdn/assets/Dnx3_xXfRlD6ECfZ.js} +1 -1
  272. package/cdn/assets/{BynqRVXFRplO7XgC.js → DnzDlqizzNkbhJP7.js} +2 -2
  273. package/cdn/assets/{DJk14sSSnSHiEXZ7.js → DrUEYcXg6N2D2s1Z.js} +1 -1
  274. package/cdn/assets/{BdhFhDEa7Xed6dFE.js → DvItgGbf8IOWPyxd.js} +28240 -27892
  275. package/cdn/assets/{CgsQuAbp76UOAPHm2.js → DvlpP6sUZ9Qzl9s22.js} +49 -49
  276. package/cdn/assets/{DeFts-aGqB-RDuV1.js → EjOJX5m8OEL-IjPB.js} +6 -6
  277. package/cdn/assets/{Bc2Dp6W4U_22cv7c2.js → EwzqnZl1lTr56hH-.js} +1 -1
  278. package/cdn/assets/{PzCXbVRf1jOHVOAw.js → Gy0CHZTvn4hY-rkx.js} +1 -1
  279. package/cdn/assets/{DM4g0nYgYXgI44dL.js → R5bs6kCQSZmsCXz-2.js} +1 -1
  280. package/cdn/assets/{CuIUyLNDoHvYMJaQ2.js → UYgwKnPX3US3Cj2k2.js} +14 -14
  281. package/cdn/assets/{CLhSKL0Xdm8miSTy.js → WLUhtyUNK5QJ7Pff.js} +3 -3
  282. package/cdn/assets/{DaX0_AkJxkaUnNT7.js → c6VvwMHfXubjjtyj.js} +7 -7
  283. package/cdn/assets/{Dhq9e6LCpmlIkFod.js → c7aIqKLOO4pvUsV12.js} +72 -72
  284. package/cdn/assets/{DQhvG3cP0HPB6giA2.js → gspQcUnmlRIwG609.js} +5 -5
  285. package/{browser/esm/g8dDbkwbYjhKWJM22.mjs → cdn/assets/hFSDx-LnUOObv-6h.js} +1 -1
  286. package/cdn/assets/{Bj8bWbLg1IY965tK.js → iXWgTu3qpYZHcx1J.js} +8 -8
  287. package/cdn/assets/{DiKc6jzGM1isrN02.js → j8nXVEYbO2kPuEYQ.js} +3 -3
  288. package/cdn/assets/{Wsgx1I_j1chJ6hwn.js → mtI43hWjdp4E3Z_-.js} +9 -9
  289. package/{browser/esm/Ca6NSkWoi9DvRJjQ.mjs → cdn/assets/mtrwY1hjJeYlmzC-.js} +3 -3
  290. package/cdn/assets/{B8ok93z6wOu1Mo5H.js → nmR_PgTW7GrlbHHZ.js} +5 -5
  291. package/cdn/assets/{CTwLETvNO4KeXbkK.js → qG5zdZZAe6mQIJo3.js} +1 -1
  292. package/cdn/assets/{Dr1U0I01_KIa9vgR2.js → tVOVNvOs6ro8FXqa2.js} +8 -8
  293. package/cdn/assets/vTCuFafvRlSaT9wy.js +87 -0
  294. package/cdn/assets/{B4fSPDN923nqCDVE.js → vcRSnmAqjwKglEkY2.js} +1 -1
  295. package/cdn/index.js +2 -2
  296. package/package.json +3 -3
  297. package/browser/cjs/BClFnd-voK5qaz1I.cjs +0 -88
  298. package/browser/cjs/BF14ZEAnaqxXroSj.cjs +0 -1
  299. package/browser/cjs/BVN0uo1XwTCtE2mh.cjs +0 -7
  300. package/browser/cjs/BjgiE9MBDkKiRL6q.cjs +0 -3
  301. package/browser/cjs/Byl4bQWpLnjthChn2.cjs +0 -7
  302. package/browser/cjs/BzsAbsb35hYT3xUc.cjs +0 -5
  303. package/browser/cjs/C8GZf3UAOhfisYCs.cjs +0 -1
  304. package/browser/cjs/CEXs4eRDOv4EjbSw2.cjs +0 -1
  305. package/browser/cjs/CLXzYSmhCHV5LQh7.cjs +0 -1
  306. package/browser/cjs/CN-dCAHVcxuMSyFz.cjs +0 -1
  307. package/browser/cjs/CZfNBCd62H_Jpkhl.cjs +0 -12
  308. package/browser/cjs/CoiPEZabJyiXxLta.cjs +0 -1
  309. package/browser/cjs/DAXgAEDtRrsWAePT.cjs +0 -1
  310. package/browser/cjs/DDPxHIqx8aIbqTRE.cjs +0 -1
  311. package/browser/cjs/DsgqbxMOVQmAFSDy2.cjs +0 -1
  312. package/browser/cjs/Dtc_8P-koQRmNT2s.cjs +0 -33
  313. package/browser/cjs/IbciPMJP2Pam3ERm.cjs +0 -1
  314. package/browser/cjs/bpcQTcfzGVBK-rfT2.cjs +0 -1
  315. package/browser/esm/BPwpFe7c1-F62aAU.mjs +0 -518
  316. package/browser/esm/ohVj-y1gCC9PEHJI.mjs +0 -87
  317. package/cdn/assets/CXrcgTVB77CopjOJ.js +0 -518
  318. package/cdn/assets/DjS4iUli-T3uuUfK.js +0 -24
  319. package/cdn/assets/DjS4iUli-T3uuUfK2.js +0 -24
  320. package/cdn/assets/zrS_ERBQML_OXJ4J.js +0 -87
  321. /package/browser/cjs/{1XrWGMP3GmsQOMIX.cjs → 1XrWGMP3GmsQOMIX2.cjs} +0 -0
  322. /package/browser/cjs/{49_x589Na12sizKK2.cjs → 49_x589Na12sizKK.cjs} +0 -0
  323. /package/browser/cjs/{BAxVLKkxFgI6cXnR2.cjs → BAxVLKkxFgI6cXnR.cjs} +0 -0
  324. /package/browser/cjs/{Btc0Nzu40VYOpzLX2.cjs → Btc0Nzu40VYOpzLX.cjs} +0 -0
  325. /package/browser/cjs/{C2uDl8VIJqh58YF_2.cjs → C2uDl8VIJqh58YF_.cjs} +0 -0
  326. /package/browser/cjs/{C9C-pr-T_ThweQX9.cjs → C9C-pr-T_ThweQX92.cjs} +0 -0
  327. /package/browser/cjs/{CV4KQsHluMqo1I2Q2.cjs → CV4KQsHluMqo1I2Q.cjs} +0 -0
  328. /package/browser/cjs/{CW-b31_-r-_raT8Y.cjs → CW-b31_-r-_raT8Y2.cjs} +0 -0
  329. /package/browser/cjs/{Clu7XiAsCB48GDXN.cjs → Clu7XiAsCB48GDXN2.cjs} +0 -0
  330. /package/browser/cjs/{DCIlWcGDrp-5PDoA2.cjs → DCIlWcGDrp-5PDoA.cjs} +0 -0
  331. /package/browser/cjs/{DDnGLOLTqLFsdUDS.cjs → DDnGLOLTqLFsdUDS2.cjs} +0 -0
  332. /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
  333. /package/browser/cjs/{DNKyaSruDogoBd2H.cjs → DNKyaSruDogoBd2H2.cjs} +0 -0
  334. /package/browser/cjs/{Du4jBiFxRIF1OjD42.cjs → Du4jBiFxRIF1OjD4.cjs} +0 -0
  335. /package/browser/cjs/{JfM6P_qoQQTWakZf2.cjs → JfM6P_qoQQTWakZf.cjs} +0 -0
  336. /package/browser/cjs/{aONv0Ys3C8xmnaR8.cjs → aONv0Ys3C8xmnaR82.cjs} +0 -0
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.4
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.1
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { A as e, C as t, F as n, O as r, P as i, T as a, V as o, _ as s, d as c, l, m as u, r as d, s as f, t as p, v as m } from "./BetL7yI63lEdQ0gM.mjs";
8
- import { r as h } from "./DjS4iUli-T3uuUfK.mjs";
9
- import { a as g, n as _ } from "./C7xBBqvPqat9oEft.mjs";
10
- import { $ as v, $t as y, B as b, Bt as x, C as S, Ct as C, D as w, Dt as ee, E as T, Et as E, F as te, Ft as ne, Gt as D, H as re, J as ie, Kt as ae, L as O, Lt as oe, Nt as se, O as ce, P as le, Q as k, Qt as ue, S as de, St as fe, Tt as A, Ut as j, Wt as pe, X as me, Xt as he, Y as ge, Zt as _e, at as M, cn as ve, ct as ye, dn as N, dt as be, en as P, fn as F, ft as xe, g as I, gt as L, i as Se, in as Ce, j as R, kt as we, lt as Te, mt as Ee, nn as De, nt as Oe, on as ke, ot as Ae, p as je, pn as Me, s as Ne, sn as Pe, st as Fe, tt as Ie, u as Le, vt as Re, w as ze, wt as Be, x as Ve, yt as He, zt as Ue } from "./DimkHq0_x-d4uNdV.mjs";
11
- import { r as We } from "./CfjG7gHJ4oN60Clj.mjs";
7
+ import { r as e } from "./CH0of3GZTzHviuQV2.js";
8
+ import { o as t, t as n } from "./D_t53-8k73CNpV-p2.js";
9
+ import { A as r, C as i, F as a, O as o, P as s, T as c, V as l, _ as u, d, l as f, m as p, r as m, s as h, t as g, v as _ } from "./CEN8dYSpN2oew8HH2.js";
10
+ import { $ as v, $t as y, A as b, At as x, C as S, Ct as C, Dt as w, Et as T, F as ee, Ft as te, Gt as ne, Ht as re, J as ie, K as ae, L as oe, Lt as se, Mt as E, Nt as D, O, Pt as ce, Q as k, Qt as le, R as ue, Rt as A, St as de, Tt as fe, Ut as pe, V as j, W as me, X as he, Y as ge, Yt as _e, Z as M, Zt as ve, _t as N, at as ye, bt as be, c as xe, ct as Se, dn as P, dt as Ce, f as F, fn as I, gt as we, h as Te, i as Ee, in as L, k as De, ln as Oe, lt as ke, mt as Ae, n as je, nt as Me, on as Ne, ot as Pe, pn as Fe, rn as Ie, sn as Le, ut as Re, vt as ze, w as R, xt as Be, y as Ve, yt as He, zt as Ue } from "./Crkvq5j5KIa6eTLI2.js";
11
+ import { r as We } from "./D9joTG0Z2zdWHAEa2.js";
12
12
  var Ge;
13
13
  Ge ||= {};
14
- var Ke = class extends u {
14
+ var Ke = class extends p {
15
15
  constructor(e, t = 50) {
16
16
  super(t), this._transactions = e, this._floorId = e ? e.getCurrentCommit(!1).getId() : null, this._removeListener = e?.addListener({ onCommitChange: () => this._notifyOnStackChange() });
17
17
  }
@@ -106,7 +106,7 @@ var Ke = class extends u {
106
106
  }
107
107
  }, qe = class {
108
108
  constructor(e, t) {
109
- this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new A(this);
109
+ this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new x(this);
110
110
  let n = this;
111
111
  this._removeStoreListener = e.addListener({
112
112
  onCommitEnd() {
@@ -143,7 +143,7 @@ var Ke = class extends u {
143
143
  }
144
144
  }, z = class e {
145
145
  constructor(t, n = {}) {
146
- this._password = null, this._emitter = new A(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
146
+ this._password = null, this._emitter = new x(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
147
147
  }
148
148
  static _defaultCanWrite(e) {
149
149
  return !!e && !/^(https?:|data:|blob:)/i.test(e);
@@ -154,7 +154,7 @@ var Ke = class extends u {
154
154
  getName() {
155
155
  if (this._name !== null && this._name !== void 0) return this._name;
156
156
  let e = this._cleanPath();
157
- return e && L(e) || null;
157
+ return e && N(e) || null;
158
158
  }
159
159
  getPath() {
160
160
  return this._path;
@@ -165,7 +165,7 @@ var Ke = class extends u {
165
165
  getExtension() {
166
166
  let e = this._cleanPath();
167
167
  if (!e) return null;
168
- let t = E(e);
168
+ let t = D(e);
169
169
  return t ? t.toLowerCase() : null;
170
170
  }
171
171
  getEncryption() {
@@ -217,22 +217,22 @@ var Ke = class extends u {
217
217
  this._defaultStringSourceType = "filepath";
218
218
  }
219
219
  async read(e) {
220
- let t = e.options ?? {}, r = e.source;
221
- if (typeof r == "function" && (r = r()), r && typeof r == "object" && typeof r.then == "function" && (r = await Promise.resolve(r)), r == null && (r = await this.resolveSource(e), r == null)) return null;
222
- let i = t.format, a = this._detectSourceType(r);
223
- if (!a) throw Error("Unable to detect source type from provided input.");
220
+ let t = e.options ?? {}, n = e.source;
221
+ if (typeof n == "function" && (n = n()), n && typeof n == "object" && typeof n.then == "function" && (n = await Promise.resolve(n)), n == null && (n = await this.resolveSource(e), n == null)) return null;
222
+ let r = t.format, i = this._detectSourceType(n);
223
+ if (!i) throw Error("Unable to detect source type from provided input.");
224
224
  let o, s, c = !1;
225
- if (a === "filepath") {
226
- let e = typeof r == "string" && r.startsWith("file://") ? r.slice(7) : r;
227
- r = await this.filePathToFile(e), a = "file", c = !0;
225
+ if (i === "filepath") {
226
+ let e = typeof n == "string" && n.startsWith("file://") ? n.slice(7) : n;
227
+ n = await this.filePathToFile(e), i = "file", c = !0;
228
228
  }
229
- switch (a) {
229
+ switch (i) {
230
230
  case "file": {
231
- let e = r, t = e?.name, n = t ? `${L(t)}` : "";
231
+ let e = n, t = e?.name, i = t ? `${N(t)}` : "";
232
232
  o = await e.arrayBuffer(), s = {
233
- format: i,
234
- ext: E(t),
235
- name: n,
233
+ format: r,
234
+ ext: D(t),
235
+ name: i,
236
236
  absolutePath: t,
237
237
  size: e.size,
238
238
  canWrite: c && this._canWriteLocalPath()
@@ -240,49 +240,49 @@ var Ke = class extends u {
240
240
  break;
241
241
  }
242
242
  case "blob": {
243
- let e = r;
243
+ let e = n;
244
244
  o = await e.arrayBuffer(), s = {
245
- format: i,
245
+ format: r,
246
246
  size: e.size
247
247
  };
248
248
  break;
249
249
  }
250
250
  case "base64": {
251
251
  let e;
252
- if (r && typeof r == "object" && "base64" in r) e = r.base64;
253
- else if (typeof r == "string" && r.startsWith("data:")) {
254
- let [, t] = r.split(",");
252
+ if (n && typeof n == "object" && "base64" in n) e = n.base64;
253
+ else if (typeof n == "string" && n.startsWith("data:")) {
254
+ let [, t] = n.split(",");
255
255
  e = t;
256
- } else e = r;
257
- o = n.base64ToArrayBuffer(e), s = {
258
- format: i,
256
+ } else e = n;
257
+ o = a.base64ToArrayBuffer(e), s = {
258
+ format: r,
259
259
  size: e.length
260
260
  };
261
261
  break;
262
262
  }
263
263
  case "fetch": {
264
- let e, t, n;
265
- if (typeof r == "string") e = r;
264
+ let e, t, i;
265
+ if (typeof n == "string") e = n;
266
266
  else {
267
- if (!r || typeof r != "object" || !("input" in r)) throw Error("Invalid fetch source provided.");
267
+ if (!n || typeof n != "object" || !("input" in n)) throw Error("Invalid fetch source provided.");
268
268
  {
269
- let i = r;
270
- e = i.input, t = i.init, n = i.timeout;
269
+ let r = n;
270
+ e = r.input, t = r.init, i = r.timeout;
271
271
  }
272
272
  }
273
- let a = n || 3e4, c = new AbortController(), l = setTimeout(() => c.abort(), a), u = typeof e == "string" ? e : e.toString(), d = E(u);
273
+ let a = i || 3e4, c = new AbortController(), l = setTimeout(() => c.abort(), a), u = typeof e == "string" ? e : e.toString(), d = D(u);
274
274
  try {
275
275
  let n = await fetch(e, {
276
276
  ...t,
277
277
  signal: c.signal
278
278
  });
279
279
  if (clearTimeout(l), !n.ok) throw Error(`Failed to fetch: ${n.status} ${n.statusText}`);
280
- let r = await n.arrayBuffer();
281
- if (!r) throw Error(`Unable to fetched content: ${u}`);
282
- o = r, s = {
283
- format: i,
280
+ let i = await n.arrayBuffer();
281
+ if (!i) throw Error(`Unable to fetched content: ${u}`);
282
+ o = i, s = {
283
+ format: r,
284
284
  ext: d,
285
- name: L(u, !0),
285
+ name: N(u, !0),
286
286
  absolutePath: u
287
287
  };
288
288
  } catch (e) {
@@ -291,31 +291,31 @@ var Ke = class extends u {
291
291
  break;
292
292
  }
293
293
  case "buffer":
294
- o = r, s = { format: i };
294
+ o = n, s = { format: r };
295
295
  break;
296
296
  case "stream": {
297
- let e = r.getReader(), t = [], n = 0;
297
+ let e = n.getReader(), t = [], i = 0;
298
298
  try {
299
299
  for (;;) {
300
- let { done: r, value: i } = await e.read();
301
- if (r) break;
302
- t.push(i), n += i.length;
300
+ let { done: n, value: r } = await e.read();
301
+ if (n) break;
302
+ t.push(r), i += r.length;
303
303
  }
304
304
  } finally {
305
305
  e.releaseLock();
306
306
  }
307
- let a = new ArrayBuffer(n), c = new Uint8Array(a), l = 0;
307
+ let a = new ArrayBuffer(i), c = new Uint8Array(a), l = 0;
308
308
  for (let e of t) c.set(e, l), l += e.length;
309
- o = a, s = { format: i };
309
+ o = a, s = { format: r };
310
310
  break;
311
311
  }
312
- default: throw Error(`Unsupported source type: ${a}`);
312
+ default: throw Error(`Unsupported source type: ${i}`);
313
313
  }
314
314
  let l = await e.decode(o, {
315
- sourceType: a,
315
+ sourceType: i,
316
316
  ...s
317
317
  });
318
- return l ? (await this.onWorkbookRead(l, r), l) : null;
318
+ return l ? (await this.onWorkbookRead(l, n), l) : null;
319
319
  }
320
320
  async resolveSource(e) {
321
321
  return null;
@@ -336,8 +336,8 @@ var Ke = class extends u {
336
336
  }
337
337
  if (typeof File < "u" && e instanceof File) return "file";
338
338
  if (typeof Blob < "u" && e instanceof Blob) return "blob";
339
- let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", r = ArrayBuffer.isView(e), i = n.isNodeBuffer(e);
340
- return t || r || i ? "buffer" : typeof ReadableStream < "u" && e instanceof ReadableStream || Object.prototype.toString.call(e) === "[object ReadableStream]" || e && typeof e.getReader == "function" && e.locked !== void 0 ? "stream" : null;
339
+ let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", n = ArrayBuffer.isView(e), r = a.isNodeBuffer(e);
340
+ return t || n || r ? "buffer" : typeof ReadableStream < "u" && e instanceof ReadableStream || Object.prototype.toString.call(e) === "[object ReadableStream]" || e && typeof e.getReader == "function" && e.locked !== void 0 ? "stream" : null;
341
341
  }
342
342
  }, Ye = class extends Je {
343
343
  constructor(e, t) {
@@ -369,7 +369,7 @@ var Ke = class extends u {
369
369
  throw e;
370
370
  }
371
371
  let t = e.flatMap((e) => e.exts.map((e) => "." + e)).join(", ");
372
- return p.openFileDialog(t);
372
+ return g.openFileDialog(t);
373
373
  }
374
374
  async onWorkbookRead(e) {
375
375
  if (this._pendingOpenHandle) {
@@ -475,10 +475,10 @@ var $e = class {
475
475
  get isIFont() {
476
476
  return !0;
477
477
  }
478
- }, et = h({
478
+ }, et = e({
479
479
  findBestMatch: () => at,
480
- getFontList: () => rt,
481
- setFontList: () => U
480
+ getFontList: () => it,
481
+ setFontList: () => H
482
482
  }), tt = [
483
483
  "Arial",
484
484
  "Arial Black",
@@ -497,18 +497,18 @@ var $e = class {
497
497
  "Verdana"
498
498
  ], B = /* @__PURE__ */ new Map();
499
499
  B.set(k.GenericName.Serif, ["Tahoma"]), B.set(k.GenericName.SanSerif, ["Calibri"]), B.set(k.GenericName.MonoSpace, ["Courier New"]), B.set(k.GenericName.Cursive, ["Comic Sans MS"]), B.set(k.GenericName.Fantasy, ["Luminari"]), B.set(k.GenericName.UISystem, ["Arial"]), B.set(k.GenericName.UISerif, ["Tahoma"]), B.set(k.GenericName.UISanSerif, ["Arial"]), B.set(k.GenericName.UIMonoSpace, ["Courier New"]), B.set(k.GenericName.UIRounded, ["Arial"]), B.set(k.GenericName.Math, []), B.set(k.GenericName.Emoji, []), B.set(k.GenericName.Fangsong, []);
500
- var V = /* @__PURE__ */ new Map(), H = [];
501
- U(tt);
502
- var nt = eval;
503
- function U(e) {
504
- e || U(tt);
500
+ var V = /* @__PURE__ */ new Map(), nt = [];
501
+ H(tt);
502
+ var rt = eval;
503
+ function H(e) {
504
+ e || H(tt);
505
505
  let t = [];
506
506
  for (let n = 0; n < e.length; n++) {
507
507
  let r = e[n];
508
508
  typeof r == "string" && (r = new $e(r));
509
509
  let i = !0;
510
510
  try {
511
- i = nt(`document.fonts.check('12px ${r.getFamily()}')`);
511
+ i = rt(`document.fonts.check('12px ${r.getFamily()}')`);
512
512
  } catch {}
513
513
  let a = {
514
514
  fontRef: r,
@@ -516,12 +516,12 @@ function U(e) {
516
516
  };
517
517
  t.push(a), V.set(r.getFamily(), a);
518
518
  }
519
- H = Object.freeze(t);
519
+ nt = Object.freeze(t);
520
520
  }
521
- function rt() {
522
- return H;
521
+ function it() {
522
+ return nt;
523
523
  }
524
- var W, G, K, it, q = /* @__PURE__ */ new Map();
524
+ var U, W, G, K, q = /* @__PURE__ */ new Map();
525
525
  function at(e, t) {
526
526
  let n = q.get(e);
527
527
  if (n) return n.fontRef === null ? null : n;
@@ -540,7 +540,7 @@ function at(e, t) {
540
540
  loaded: !1
541
541
  }), i;
542
542
  }
543
- var ot = h({
543
+ var ot = e({
544
544
  DefaultFontSizes: () => st,
545
545
  findNextFontSize: () => ct
546
546
  }), st = Object.freeze([
@@ -562,42 +562,42 @@ var ot = h({
562
562
  48,
563
563
  72
564
564
  ]);
565
- function ct(t, n = !0, r = st) {
566
- if (!r || r.length === 0) return t;
567
- if (t === void 0) return r[0];
568
- if (n && t >= r[r.length - 1] || !n && t <= r[0]) return t;
569
- let i = e.findEqualOrGreater(r, t);
570
- return n ? (r[i] === t && (i += 1), r[i] || --i, r[i]) : (--i, r[i]);
565
+ function ct(e, t = !0, n = st) {
566
+ if (!n || n.length === 0) return e;
567
+ if (e === void 0) return n[0];
568
+ if (t && e >= n[n.length - 1] || !t && e <= n[0]) return e;
569
+ let i = r.findEqualOrGreater(n, e);
570
+ return t ? (n[i] === e && (i += 1), n[i] || --i, n[i]) : (--i, n[i]);
571
571
  }
572
- (W ||= {}).SortOn = {
572
+ (U ||= {}).SortOn = {
573
573
  Value: "value",
574
574
  FillColor: "fillColor",
575
575
  FontColor: "fontColor",
576
576
  Icon: "icon"
577
- }, (K = G ||= {}).Compound = {
577
+ }, (G = W ||= {}).Compound = {
578
578
  Single: "sng",
579
579
  Double: "dbl",
580
580
  ThickThin: "thickThin",
581
581
  ThinThick: "thinThick",
582
582
  Triple: "tri"
583
- }, K.Align = {
583
+ }, G.Align = {
584
584
  Center: "ctr",
585
585
  Inset: "in",
586
586
  Outset: "outset"
587
- }, K.LineCap = {
587
+ }, G.LineCap = {
588
588
  Butt: "butt",
589
589
  Round: "round",
590
590
  Square: "square"
591
- }, K.LineJoin = {
591
+ }, G.LineJoin = {
592
592
  Bevel: "bevel",
593
593
  Miter: "miter",
594
594
  Round: "round"
595
- }, K.PresetMarkerShape = {
595
+ }, G.PresetMarkerShape = {
596
596
  Single: "none",
597
597
  Double: "double",
598
598
  ThickThin: "thickThin",
599
599
  ThinThick: "thickThin"
600
- }, K.StrokeStyle = {
600
+ }, G.StrokeStyle = {
601
601
  None: "none",
602
602
  Dashed: "dashed",
603
603
  Dotted: "dotted",
@@ -609,7 +609,7 @@ function ct(t, n = !0, r = st) {
609
609
  SysDashDot: "sysDashDot",
610
610
  SysDashDotDot: "sysDashDotDot",
611
611
  SysDot: "sysDot"
612
- }, (it ||= {}).Type = {
612
+ }, (K ||= {}).Type = {
613
613
  OuterShadow: "outerShadow",
614
614
  InnerShadow: "innerShadow",
615
615
  PresetShadow: "presetShadow",
@@ -617,29 +617,29 @@ function ct(t, n = !0, r = st) {
617
617
  SoftEdge: "softEdge",
618
618
  Reflection: "reflection"
619
619
  };
620
- var lt, ut, dt, ft, J = Fe.BuiltInName, pt = {
621
- [J.Normal]: m("style.builtin.normal"),
622
- [J.Comma]: m("style.builtin.comma"),
623
- [J.Currency]: m("style.builtin.currency"),
624
- [J.Percent]: m("style.builtin.percent"),
625
- [J.Comma0]: m("style.builtin.comma0"),
626
- [J.Currency0]: m("style.builtin.currency0"),
627
- [J.Hyperlink]: m("style.builtin.hyperlink"),
628
- [J.FollowedHyperlink]: m("style.builtin.followedHyperlink"),
629
- [J.Note]: m("style.builtin.note"),
630
- [J.WarningText]: m("style.builtin.warningText"),
631
- [J.Title]: m("style.builtin.title"),
632
- [J.Input]: m("style.builtin.input"),
633
- [J.Output]: m("style.builtin.output"),
634
- [J.Calculation]: m("style.builtin.calculation"),
635
- [J.CheckCell]: m("style.builtin.checkCell"),
636
- [J.LinkedCell]: m("style.builtin.linkedCell"),
637
- [J.Total]: m("style.builtin.total"),
638
- [J.Good]: m("style.builtin.good"),
639
- [J.Bad]: m("style.builtin.bad"),
640
- [J.Neutral]: m("style.builtin.neutral"),
641
- [J.ExplanatoryText]: m("style.builtin.explanatoryText")
642
- }, mt = m("style.builtin.heading"), ht = m("style.builtin.accent"), gt = m("style.builtin.accentTint"), _t = /^Heading ([1-4])$/, vt = /^Accent([1-6])$/, yt = /^(20|40|60)% - Accent([1-6])$/;
620
+ var lt, ut, dt, ft, J = Se.BuiltInName, pt = {
621
+ [J.Normal]: _("style.builtin.normal"),
622
+ [J.Comma]: _("style.builtin.comma"),
623
+ [J.Currency]: _("style.builtin.currency"),
624
+ [J.Percent]: _("style.builtin.percent"),
625
+ [J.Comma0]: _("style.builtin.comma0"),
626
+ [J.Currency0]: _("style.builtin.currency0"),
627
+ [J.Hyperlink]: _("style.builtin.hyperlink"),
628
+ [J.FollowedHyperlink]: _("style.builtin.followedHyperlink"),
629
+ [J.Note]: _("style.builtin.note"),
630
+ [J.WarningText]: _("style.builtin.warningText"),
631
+ [J.Title]: _("style.builtin.title"),
632
+ [J.Input]: _("style.builtin.input"),
633
+ [J.Output]: _("style.builtin.output"),
634
+ [J.Calculation]: _("style.builtin.calculation"),
635
+ [J.CheckCell]: _("style.builtin.checkCell"),
636
+ [J.LinkedCell]: _("style.builtin.linkedCell"),
637
+ [J.Total]: _("style.builtin.total"),
638
+ [J.Good]: _("style.builtin.good"),
639
+ [J.Bad]: _("style.builtin.bad"),
640
+ [J.Neutral]: _("style.builtin.neutral"),
641
+ [J.ExplanatoryText]: _("style.builtin.explanatoryText")
642
+ }, mt = _("style.builtin.heading"), ht = _("style.builtin.accent"), gt = _("style.builtin.accentTint"), _t = /^Heading ([1-4])$/, vt = /^Accent([1-6])$/, yt = /^(20|40|60)% - Accent([1-6])$/;
643
643
  function bt(e) {
644
644
  let t = pt[e];
645
645
  if (t) return { key: t };
@@ -661,15 +661,15 @@ function bt(e) {
661
661
  var xt = (e, t, n, r, i) => {
662
662
  let a = JSON.parse(JSON.stringify(e.definition));
663
663
  a.adjs ||= [];
664
- let o = "", c = 0, l = 0;
665
- t > 0 ? (l = t, c = 100 - t, o = s("op.lighterPercent", { percent: t })) : t < 0 && (c = 100 + t, o = s("op.darkerPercent", { percent: -t })), c && a.adjs.push({ [T.AdjustmentType.LumMod]: c }), l && a.adjs.push({ [T.AdjustmentType.LumOff]: l });
666
- let u = new j({
664
+ let o = "", s = 0, c = 0;
665
+ t > 0 ? (c = t, s = 100 - t, o = u("op.lighterPercent", { percent: t })) : t < 0 && (s = 100 + t, o = u("op.darkerPercent", { percent: -t })), s && a.adjs.push({ [S.AdjustmentType.LumMod]: s }), c && a.adjs.push({ [S.AdjustmentType.LumOff]: c });
666
+ let l = new ge({
667
667
  val: a.val,
668
668
  adjs: a.adjs
669
- }, n), d = u.toString();
670
- r?.set(d, u);
671
- let f = u.toRGBA().toString();
672
- return i?.set(f, u), {
669
+ }, n), d = l.toString();
670
+ r?.set(d, l);
671
+ let f = l.toRGBA().toString();
672
+ return i?.set(f, l), {
673
673
  description: e.description + ", " + o,
674
674
  definition: a
675
675
  };
@@ -696,22 +696,22 @@ function St(e) {
696
696
  case "NumberToken":
697
697
  case "ScientificDigit":
698
698
  case "DigitToken": {
699
- let e = te(o).value;
699
+ let e = De(o).value;
700
700
  return r === 0 ? e : r * e;
701
701
  }
702
- case "StringToken": return r === 0 ? ge(o).value : void 0;
703
- case "BooleanToken": return r === 0 ? Ie(o).value : void 0;
702
+ case "StringToken": return r === 0 ? _e(o).value : void 0;
703
+ case "BooleanToken": return r === 0 ? ke(o).value : void 0;
704
704
  case "LiteralError":
705
- case "RefError": return r === 0 ? S(o).value : void 0;
705
+ case "RefError": return r === 0 ? Ae(o).value : void 0;
706
706
  default: return;
707
707
  }
708
708
  } catch {
709
709
  return;
710
710
  }
711
711
  }
712
- function Ct(e, t) {
713
- let n = wt(e), r = wt(t);
714
- return n === r ? e === t ? 0 : typeof e == "number" && typeof t == "number" ? e < t ? -1 : 1 : typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : typeof e == "boolean" ? e ? 1 : -1 : g.isError(e) && g.isError(t) ? e.getCode() - t.getCode() : 0 : n - r;
712
+ function Ct(e, n) {
713
+ let r = wt(e), i = wt(n);
714
+ return r === i ? e === n ? 0 : typeof e == "number" && typeof n == "number" ? e < n ? -1 : 1 : typeof e == "string" && typeof n == "string" ? e < n ? -1 : +(e > n) : typeof e == "boolean" ? e ? 1 : -1 : t.isError(e) && t.isError(n) ? e.getCode() - n.getCode() : 0 : r - i;
715
715
  }
716
716
  function wt(e) {
717
717
  if (e === null) return 0;
@@ -719,7 +719,7 @@ function wt(e) {
719
719
  case "number": return 1;
720
720
  case "string": return 2;
721
721
  case "boolean": return 3;
722
- default: return g.isError(e) ? 4 : 5;
722
+ default: return t.isError(e) ? 4 : 5;
723
723
  }
724
724
  }
725
725
  (lt ||= {}).buildPalette = function(e, t, n, r) {
@@ -729,7 +729,7 @@ function wt(e) {
729
729
  i.push(o);
730
730
  let s = (i) => {
731
731
  for (let s = 0; s < i.length; s++) o.push(xt(e[a], i[s], t, n, r));
732
- }, c = new j({
732
+ }, c = new ge({
733
733
  val: e[a].definition.val,
734
734
  adjs: e[a].definition.adjs
735
735
  }, t).toHSLA().lum;
@@ -799,7 +799,7 @@ var Tt = class {
799
799
  let n = t[e].getSortedNumbers().getValues();
800
800
  n.length > 0 && r.push(n);
801
801
  }
802
- e = new Be(function(e) {
802
+ e = new oe(function(e) {
803
803
  let t = e.length;
804
804
  if (t === 0) return Et;
805
805
  if (t === 1) return e[0];
@@ -811,7 +811,7 @@ var Tt = class {
811
811
  return e;
812
812
  }
813
813
  getRanked(e) {
814
- return ne(this._children, e, Ct)[Symbol.iterator]();
814
+ return Ue(this._children, e, Ct)[Symbol.iterator]();
815
815
  }
816
816
  getFrequencies(e) {
817
817
  if (e) return this._mergeFrequencies(e);
@@ -819,7 +819,7 @@ var Tt = class {
819
819
  return t || (t = this._mergeFrequencies(), this._frequencies = t), t;
820
820
  }
821
821
  _mergeFrequencies(e) {
822
- let t = e?.keyFn ?? ce, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
822
+ let t = e?.keyFn ?? le, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
823
823
  for (let l = 0; l < a; l++) {
824
824
  let a = i[l].getFrequencies(e);
825
825
  o += a.getVisitedCount(), s += a.getTotalCount(), c ||= a.isTruncated();
@@ -832,35 +832,35 @@ var Tt = class {
832
832
  }) : c = !0, d = u.next();
833
833
  }
834
834
  }
835
- return ae.fromGroups(r, t, e, Ct, o, s, c);
835
+ return ne.fromGroups(r, t, e, Ct, o, s, c);
836
836
  }
837
837
  getTypedCounts(e) {
838
838
  let t = this._typedCounts;
839
839
  if (!t) {
840
840
  let e = {
841
- [_.Number]: 0,
842
- [_.String]: 0,
843
- [_.Boolean]: 0,
844
- [_.Error]: 0,
845
- [_.RichData]: 0,
846
- [_.Null]: 0
847
- }, n = this._children, r = n.length;
848
- for (let t = 0; t < r; t++) {
849
- let r = n[t].getTypedCounts();
850
- e[_.Number] += r[_.Number] ?? 0, e[_.String] += r[_.String] ?? 0, e[_.Boolean] += r[_.Boolean] ?? 0, e[_.Error] += r[_.Error] ?? 0, e[_.RichData] += r[_.RichData] ?? 0, e[_.Null] += r[_.Null] ?? 0;
841
+ [n.Number]: 0,
842
+ [n.String]: 0,
843
+ [n.Boolean]: 0,
844
+ [n.Error]: 0,
845
+ [n.RichData]: 0,
846
+ [n.Null]: 0
847
+ }, r = this._children, i = r.length;
848
+ for (let t = 0; t < i; t++) {
849
+ let i = r[t].getTypedCounts();
850
+ e[n.Number] += i[n.Number] ?? 0, e[n.String] += i[n.String] ?? 0, e[n.Boolean] += i[n.Boolean] ?? 0, e[n.Error] += i[n.Error] ?? 0, e[n.RichData] += i[n.RichData] ?? 0, e[n.Null] += i[n.Null] ?? 0;
851
851
  }
852
852
  t = Object.freeze(e), this._typedCounts = t;
853
853
  }
854
854
  if (e === void 0) return t;
855
- let n = {}, r = e.length;
856
- for (let i = 0; i < r; i++) n[e[i]] = t[e[i]] ?? 0;
857
- return n;
855
+ let r = {}, i = e.length;
856
+ for (let n = 0; n < i; n++) r[e[n]] = t[e[n]] ?? 0;
857
+ return r;
858
858
  }
859
859
  get isIRangeStats() {
860
860
  return !0;
861
861
  }
862
862
  _mergeAggregates(e) {
863
- let t = this._children, n = t.length, r = {
863
+ let t = this._children, r = t.length, i = {
864
864
  count: 0,
865
865
  min: void 0,
866
866
  max: void 0,
@@ -868,21 +868,21 @@ var Tt = class {
868
868
  sum: 0,
869
869
  sumSq: 0,
870
870
  typed: {
871
- [_.Number]: 0,
872
- [_.String]: 0,
873
- [_.Boolean]: 0,
874
- [_.Error]: 0,
875
- [_.RichData]: 0,
876
- [_.Null]: 0
871
+ [n.Number]: 0,
872
+ [n.String]: 0,
873
+ [n.Boolean]: 0,
874
+ [n.Error]: 0,
875
+ [n.RichData]: 0,
876
+ [n.Null]: 0
877
877
  }
878
878
  };
879
- for (let i = 0; i < n; i++) {
880
- let n = t[i].getAggregates(e);
881
- r.count += n.count;
882
- let a = n.numericalCount;
883
- a <= 0 || (r.numericalCount += a, r.sum += n.sum, r.sumSq += n.varP * a + n.sum * n.sum / a, (r.min === void 0 || n.min < r.min) && (r.min = n.min), (r.max === void 0 || n.max > r.max) && (r.max = n.max));
879
+ for (let n = 0; n < r; n++) {
880
+ let r = t[n].getAggregates(e);
881
+ i.count += r.count;
882
+ let a = r.numericalCount;
883
+ a <= 0 || (i.numericalCount += a, i.sum += r.sum, i.sumSq += r.varP * a + r.sum * r.sum / a, (i.min === void 0 || r.min < i.min) && (i.min = r.min), (i.max === void 0 || r.max > i.max) && (i.max = r.max));
884
884
  }
885
- return Ee(r);
885
+ return Le(i);
886
886
  }
887
887
  }, Et = Object.freeze([]);
888
888
  function Dt(e, t) {
@@ -941,7 +941,7 @@ var Ot = class {
941
941
  let t = this;
942
942
  this._transactions = this._options.transactions ?? new fe({ transient: !0 }), this._stateId = this._transactions.create(), this._transactionsRemoveListener = this._transactions.addStateListener(this._stateId, { onAfterStateChange(e, n, r) {
943
943
  t._emitter.notify("onCollectionChange");
944
- } }), this._emitter = new A(this, this._transactions), this._initState(e?.initial);
944
+ } }), this._emitter = new x(this, this._transactions), this._initState(e?.initial);
945
945
  }
946
946
  add(e, t, n) {
947
947
  let r = this;
@@ -954,27 +954,27 @@ var Ot = class {
954
954
  return r._options.onRemove?.(e, n), r._emitter.notify("onCollectionChange"), delete i.modules[e], i;
955
955
  }
956
956
  return t;
957
- }, m("op.deleteModule"));
957
+ }, _("op.deleteModule"));
958
958
  } }, { once: !0 });
959
959
  let i = this._getState()?.modules, a = i?.[e], o = n?.replace ?? !1;
960
960
  if (a && !o) throw Error(`Already existing '${e}'`);
961
961
  let s = { ...i };
962
- t ? (s[e] = t, r._options.onAdd?.(e, t), this._updateState({ modules: s }, m(o ? "op.saveScripts" : "op.addScript"))) : (delete s[e], r._options.onRemove?.(e, null), this._updateState({ modules: s }, m("op.removeScript"))), r._emitter.notify("onCollectionChange");
962
+ t ? (s[e] = t, r._options.onAdd?.(e, t), this._updateState({ modules: s }, _(o ? "op.saveScripts" : "op.addScript"))) : (delete s[e], r._options.onRemove?.(e, null), this._updateState({ modules: s }, _("op.removeScript"))), r._emitter.notify("onCollectionChange");
963
963
  }
964
964
  *[Symbol.iterator]() {
965
965
  yield* this.getItems();
966
966
  }
967
- getItems(t) {
968
- let n = this._getState();
969
- if (!n) return e.EmptyArray;
970
- let r = n.modules, i = Object.keys(r), a = i.length;
971
- if (a === 0) return e.EmptyArray;
972
- let o = [], s = t?.name ? t.name.toUpperCase() : null;
967
+ getItems(e) {
968
+ let t = this._getState();
969
+ if (!t) return r.EmptyArray;
970
+ let n = t.modules, i = Object.keys(n), a = i.length;
971
+ if (a === 0) return r.EmptyArray;
972
+ let o = [], s = e?.name ? e.name.toUpperCase() : null;
973
973
  for (let e = 0; e < a; e++) {
974
- let t = i[e], n = r[t], a = !0;
975
- s && s !== t.toUpperCase() && (a = !1), a && o.push(n);
974
+ let t = i[e], r = n[t], a = !0;
975
+ s && s !== t.toUpperCase() && (a = !1), a && o.push(r);
976
976
  }
977
- return o ?? e.EmptyArray;
977
+ return o ?? r.EmptyArray;
978
978
  }
979
979
  getByName(e) {
980
980
  if (!e) return null;
@@ -995,13 +995,13 @@ var Ot = class {
995
995
  return this._beginCommit(e);
996
996
  }
997
997
  _getState() {
998
- if (this._closed) throw Error(s("error.model.modelClosed"));
998
+ if (this._closed) throw Error(u("error.model.modelClosed"));
999
999
  return this._transactions.getState(this._stateId);
1000
1000
  }
1001
1001
  _beginCommit(e) {
1002
1002
  return this._transactions.beginCommit(typeof e == "string" ? { description: e } : e);
1003
1003
  }
1004
- _updateState(e, t = m("op.update"), n) {
1004
+ _updateState(e, t = _("op.update"), n) {
1005
1005
  if (!e) return;
1006
1006
  let r = this._beginCommit(t);
1007
1007
  try {
@@ -1012,7 +1012,7 @@ var Ot = class {
1012
1012
  }
1013
1013
  _initState(e) {
1014
1014
  let t = e ?? {};
1015
- this._updateState({ modules: t }, m("op.initialize"), { forceAmend: !0 });
1015
+ this._updateState({ modules: t }, _("op.initialize"), { forceAmend: !0 });
1016
1016
  let n = this._options.onAdd;
1017
1017
  if (n) {
1018
1018
  let e = Object.keys(t), r = e.length;
@@ -1026,12 +1026,12 @@ var Ot = class {
1026
1026
  return this._emitter.addListeners(e, t);
1027
1027
  }
1028
1028
  toJSON() {
1029
- let t = this._getState();
1030
- if (!t) return e.EmptyArray;
1031
- let n = t.modules, r = Object.keys(n), i = r.length, a = {};
1029
+ let e = this._getState();
1030
+ if (!e) return r.EmptyArray;
1031
+ let t = e.modules, n = Object.keys(t), i = n.length, a = {};
1032
1032
  for (let e = 0; e < i; e++) {
1033
- let t = r[e];
1034
- a[t] = n[t].toJSON();
1033
+ let r = n[e];
1034
+ a[r] = t[r].toJSON();
1035
1035
  }
1036
1036
  return a;
1037
1037
  }
@@ -1046,7 +1046,7 @@ var Ot = class {
1046
1046
  }
1047
1047
  }, jt = class {
1048
1048
  constructor(e) {
1049
- this._options = e, this._emitter = new A(this), this._initState();
1049
+ this._options = e, this._emitter = new x(this), this._initState();
1050
1050
  }
1051
1051
  _initState() {}
1052
1052
  getModules() {
@@ -1054,27 +1054,27 @@ var Ot = class {
1054
1054
  }
1055
1055
  _builtInNames() {
1056
1056
  try {
1057
- let t = this._options.getBuiltInFunctions?.();
1058
- if (!t) return e.EmptyArray;
1059
- let n = [];
1060
- for (let e of t.getItems()) e.isBuiltIn() && n.push(e.getName());
1061
- return n;
1057
+ let e = this._options.getBuiltInFunctions?.();
1058
+ if (!e) return r.EmptyArray;
1059
+ let t = [];
1060
+ for (let n of e.getItems()) n.isBuiltIn() && t.push(n.getName());
1061
+ return t;
1062
1062
  } catch {
1063
- return e.EmptyArray;
1063
+ return r.EmptyArray;
1064
1064
  }
1065
1065
  }
1066
1066
  async createModule(e) {
1067
- let t = await (await import("./DnCkPg9-xb3RvxD-.mjs").then((e) => e.t)).ScriptCompiler.compile({
1067
+ let t = await (await import("./BNuoKAzs4zkxSocG2.js").then((e) => e.t)).ScriptCompiler.compile({
1068
1068
  builtInNames: this._builtInNames(),
1069
1069
  ...e
1070
1070
  });
1071
- return t.module ? await P("scripts", t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1071
+ return t.module ? await L("scripts", t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1072
1072
  }
1073
1073
  addModule(e, t, n) {
1074
1074
  this._modules.add(e, t, n);
1075
1075
  }
1076
1076
  async addModuleFromJSON(e, t, n) {
1077
- let r = await P(e, t);
1077
+ let r = await L(e, t);
1078
1078
  return this.addModule(e, r, n), r;
1079
1079
  }
1080
1080
  executeMacro(e, t, n) {
@@ -1090,7 +1090,7 @@ var Ot = class {
1090
1090
  }
1091
1091
  async run(e, t) {
1092
1092
  try {
1093
- let n = typeof e == "string" ? await this.createModule({ source: e }) : await P("scripts", e), r = typeof e == "string" ? e : e?.source ?? "";
1093
+ let n = typeof e == "string" ? await this.createModule({ source: e }) : await L("scripts", e), r = typeof e == "string" ? e : e?.source ?? "";
1094
1094
  return await this._runModule(n, r, t);
1095
1095
  } catch (e) {
1096
1096
  return {
@@ -1152,52 +1152,52 @@ var Ot = class {
1152
1152
  for (let e = 0; e < a; e++) t.push(i[e].getFunctions());
1153
1153
  return t;
1154
1154
  }
1155
- async searchFunctions(t) {
1155
+ async searchFunctions(e) {
1156
1156
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1157
- let n = await this._searchable(t);
1158
- if (n.length === 0) return e.EmptyArray;
1159
- let r, i = t?.limit, a = i === void 0 ? t : {
1160
- ...t,
1157
+ let t = await this._searchable(e);
1158
+ if (t.length === 0) return r.EmptyArray;
1159
+ let n, i = e?.limit, a = i === void 0 ? e : {
1160
+ ...e,
1161
1161
  limit: void 0
1162
1162
  }, o = /* @__PURE__ */ new Set();
1163
- for (let e = 0; e < n.length; e++) {
1164
- let t = await n[e].search(a);
1165
- if (t.length !== 0) {
1166
- r ||= [];
1167
- for (let e = 0; e < t.length; e++) {
1168
- let n = t[e], i = n.getName().toUpperCase();
1169
- o.has(i) || (o.add(i), r.push(n));
1163
+ for (let e = 0; e < t.length; e++) {
1164
+ let r = await t[e].search(a);
1165
+ if (r.length !== 0) {
1166
+ n ||= [];
1167
+ for (let e = 0; e < r.length; e++) {
1168
+ let t = r[e], i = t.getName().toUpperCase();
1169
+ o.has(i) || (o.add(i), n.push(t));
1170
1170
  }
1171
1171
  }
1172
1172
  }
1173
- if (!r || r.length === 0) return e.EmptyArray;
1174
- let s = t?.text ? t.text.trim().toUpperCase() : null;
1175
- return s && n.length > 1 && ye(r, s), i !== void 0 && r.length > i ? r.slice(0, i) : r;
1173
+ if (!n || n.length === 0) return r.EmptyArray;
1174
+ let s = e?.text ? e.text.trim().toUpperCase() : null;
1175
+ return s && t.length > 1 && He(n, s), i !== void 0 && n.length > i ? n.slice(0, i) : n;
1176
1176
  }
1177
- async getFunctionCategories(t) {
1177
+ async getFunctionCategories(e) {
1178
1178
  await this._emitter.notify("onBeforeSearch", { async: !0 });
1179
- let n = await this._searchable(t);
1180
- if (n.length === 0) return e.EmptyArray;
1181
- if (n.length === 1) return n[0].getCategories(t);
1182
- let r = t?.includeDeprecated ?? !1, i = /* @__PURE__ */ new Map(), a = (e) => {
1179
+ let t = await this._searchable(e);
1180
+ if (t.length === 0) return r.EmptyArray;
1181
+ if (t.length === 1) return t[0].getCategories(e);
1182
+ let n = e?.includeDeprecated ?? !1, i = /* @__PURE__ */ new Map(), a = (e) => {
1183
1183
  let t = e.toUpperCase(), n = i.get(t);
1184
1184
  n ? n.count++ : i.set(t, {
1185
1185
  name: e,
1186
1186
  count: 1
1187
1187
  });
1188
1188
  };
1189
- for (let e of await n[0].getCategories(t)) i.set(e.name.toUpperCase(), {
1190
- name: e.name,
1191
- count: e.count
1189
+ for (let n of await t[0].getCategories(e)) i.set(n.name.toUpperCase(), {
1190
+ name: n.name,
1191
+ count: n.count
1192
1192
  });
1193
- for (let e = 1; e < n.length; e++) {
1194
- let i = await n[e].search(t?.type ? { type: t.type } : void 0);
1195
- for (let t = 0; t < i.length; t++) {
1196
- let o = i[t], s = o.getName().toUpperCase(), c = !1;
1197
- for (let t = 0; t < e && !c; t++) c = !!n[t].getByName(s);
1193
+ for (let r = 1; r < t.length; r++) {
1194
+ let i = await t[r].search(e?.type ? { type: e.type } : void 0);
1195
+ for (let e = 0; e < i.length; e++) {
1196
+ let o = i[e], s = o.getName().toUpperCase(), c = !1;
1197
+ for (let e = 0; e < r && !c; e++) c = !!t[e].getByName(s);
1198
1198
  if (c) continue;
1199
1199
  let l = await o.getDescriptor().catch(() => null);
1200
- !r && l?.isDeprecated() || a(l?.getCategory() ?? "Uncategorized");
1200
+ !n && l?.isDeprecated() || a(l?.getCategory() ?? "Uncategorized");
1201
1201
  }
1202
1202
  }
1203
1203
  let o = Array.from(i.values());
@@ -1209,21 +1209,21 @@ var Ot = class {
1209
1209
  })), this._startPromise;
1210
1210
  }
1211
1211
  async _doStart() {
1212
- let t = this._options?.workbook, n = this._options?.json, r = {};
1213
- if (n) {
1214
- let e = Object.keys(n);
1215
- for (let t = 0; t < e.length; t++) {
1216
- let i = e[t], a = n[i];
1212
+ let e = this._options?.workbook, t = this._options?.json, n = {};
1213
+ if (t) {
1214
+ let e = Object.keys(t);
1215
+ for (let r = 0; r < e.length; r++) {
1216
+ let i = e[r], a = t[i];
1217
1217
  try {
1218
- r[i] = await P(i, a);
1218
+ n[i] = await L(i, a);
1219
1219
  } catch (e) {
1220
- o.error(`Could not load script '${i}'; it will be unavailable.`, e);
1220
+ l.error(`Could not load script '${i}'; it will be unavailable.`, e);
1221
1221
  }
1222
1222
  }
1223
1223
  }
1224
1224
  let i = this, a = new At({
1225
1225
  transactions: this._options?.transactions,
1226
- initial: r,
1226
+ initial: n,
1227
1227
  onRemove: (e, t) => {
1228
1228
  i._options?.onRemove?.(e, t);
1229
1229
  },
@@ -1232,16 +1232,16 @@ var Ot = class {
1232
1232
  }
1233
1233
  });
1234
1234
  this._modules = a;
1235
- let s = a.getItems();
1236
- if (s.length === 0) return Promise.resolve(e.EmptyArray);
1237
- let c = s.length;
1238
- for (let e = 0; e < c; e++) {
1239
- let n = s[e];
1235
+ let o = a.getItems();
1236
+ if (o.length === 0) return Promise.resolve(r.EmptyArray);
1237
+ let s = o.length;
1238
+ for (let t = 0; t < s; t++) {
1239
+ let n = o[t];
1240
1240
  try {
1241
- let e = await n.getFunctions().search({ type: "autoRun" }), r = e.length;
1242
- for (let n = 0; n < r; n++) await e[n].execute(t);
1241
+ let t = await n.getFunctions().search({ type: "autoRun" }), r = t.length;
1242
+ for (let n = 0; n < r; n++) await t[n].execute(e);
1243
1243
  } catch (e) {
1244
- o.error("Error executing autoRun script:", e);
1244
+ l.error("Error executing autoRun script:", e);
1245
1245
  }
1246
1246
  }
1247
1247
  }
@@ -1259,7 +1259,7 @@ var Ot = class {
1259
1259
  }
1260
1260
  }, Mt = class {
1261
1261
  constructor(e, t, n, r) {
1262
- this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? l.EmptyCell, this._sheet = new D({
1262
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? f.EmptyCell, this._sheet = new E({
1263
1263
  runtime: e,
1264
1264
  styles: this._styles,
1265
1265
  container: {
@@ -1279,22 +1279,22 @@ var Ot = class {
1279
1279
  e.includes(r) && delete i[r];
1280
1280
  }
1281
1281
  }
1282
- let a = Te(i.fontFamily);
1282
+ let a = ze(i.fontFamily);
1283
1283
  r.font = {}, a && (r.font.family = a.family, r.font.fallbacks = a.fallbacks, r.font.size = a.size), r.font.size = i.fontSize, r.font.weight = i.fontWeight, r.font.style = i.fontStyle, r.font.color = i.color;
1284
- let o = y(i.textDecoration);
1285
- r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = Ue(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = me(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = N.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = N.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = N.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = k.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = k.VerticalAlignment.Sub : r.alignment.vertical = Le(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = N.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? N.Overflow.Visible : N.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = N.Overflow.Shrink);
1284
+ let o = Ie(i.textDecoration);
1285
+ r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = w(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = ue(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = I.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = I.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = I.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = k.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = k.VerticalAlignment.Sub : r.alignment.vertical = Ve(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = I.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? I.Overflow.Visible : I.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = I.Overflow.Shrink);
1286
1286
  let s = null;
1287
1287
  if (i.background ? s = i.background : i.backgroundColor && (s = i.backgroundColor), s && (r.fill = { color: s }), i.msoPattern) {
1288
- let e = w(i.msoPattern);
1289
- e && (e.patternType === be.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== be.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1288
+ let e = ve(i.msoPattern);
1289
+ e && (e.patternType === Ce.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== Ce.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1290
1290
  }
1291
- i.msoRotate !== void 0 && (r.alignment.rotation = xe(i.msoRotate));
1291
+ i.msoRotate !== void 0 && (r.alignment.rotation = se(i.msoRotate));
1292
1292
  let c = (e, t) => {
1293
1293
  e && (r.border ||= {}, r.border[e] = t);
1294
1294
  };
1295
1295
  i.border && i.border !== "none" && (c("top", i.border), c("left", i.border), c("right", i.border), c("bottom", i.border)), i.borderTop && c("top", i.borderTop), i.borderLeft && c("left", i.borderLeft), i.borderRight && c("right", i.borderRight), i.borderBottom && c("bottom", i.borderBottom), i.msoDiagonalUp && c("diagonalUp", i.msoDiagonalUp), i.msoDiagonalDown && c("diagonalDown", i.msoDiagonalDown);
1296
1296
  let l = r.numberFormat;
1297
- i.msoNumberFormat && (l = he(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = M.Styles.lookupStyle(r.numberFormat).formatType === M.Type.Number ? null : M.Type.Number : l === "Percent" && (l = M.Styles.lookupStyle(r.numberFormat).formatType === M.Type.Percentage ? null : M.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1297
+ i.msoNumberFormat && (l = ce(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = O.Styles.lookupStyle(r.numberFormat).formatType === O.Type.Number ? null : O.Type.Number : l === "Percent" && (l = O.Styles.lookupStyle(r.numberFormat).formatType === O.Type.Percentage ? null : O.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1298
1298
  }
1299
1299
  onCell(e, t, n, r, i) {
1300
1300
  let a = r(i), o = { value: t === void 0 ? n ?? "" : t };
@@ -1307,7 +1307,7 @@ var Ot = class {
1307
1307
  e && (o.hyperlink = e);
1308
1308
  }
1309
1309
  }
1310
- if (!l.isSingleCell(e)) {
1310
+ if (!f.isSingleCell(e)) {
1311
1311
  let t = {
1312
1312
  rowStart: this._topLeft.rowIndex + e.rowStart,
1313
1313
  colStart: this._topLeft.colIndex + e.colStart,
@@ -1318,7 +1318,7 @@ var Ot = class {
1318
1318
  }
1319
1319
  if (o.value === void 0 && !o.style && Object.keys(o).length <= 1) return;
1320
1320
  let s = this._builder, c = this._topLeft;
1321
- if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !l.isSingleCell(e) && a.msoIgnore) {
1321
+ if (s.pushAt(c.rowIndex + e.rowStart, c.colIndex + e.colStart, o), !f.isSingleCell(e) && a.msoIgnore) {
1322
1322
  if (a.msoIgnore.includes("colspan")) {
1323
1323
  let t = {};
1324
1324
  a && this.applyCSSStyle(t, a);
@@ -1347,8 +1347,8 @@ var Ot = class {
1347
1347
  let i = n(r);
1348
1348
  if (i.msoHeightSource !== "userset" || !r) return;
1349
1349
  let a = r.getAttribute("height") ?? i.height, o = null;
1350
- if (a && (o = v(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1351
- let t = r.cells[e], i = v(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1350
+ if (a && (o = j(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1351
+ let t = r.cells[e], i = j(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1352
1352
  i !== null && (o = Math.max(i, o ?? 0));
1353
1353
  }
1354
1354
  o !== null && this._rowsReading.push({
@@ -1363,7 +1363,7 @@ var Ot = class {
1363
1363
  let i = n(r);
1364
1364
  if (i.msoWidthSource !== "userset" || !r) return;
1365
1365
  let a = r.getAttribute("width") ?? i.width, o = null;
1366
- a && (o = v(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1366
+ a && (o = j(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1367
1367
  address: {
1368
1368
  min: this._topLeft.colIndex + e,
1369
1369
  max: this._topLeft.colIndex + e + t - 1
@@ -1381,7 +1381,7 @@ var Ot = class {
1381
1381
  }
1382
1382
  }, Nt = class {
1383
1383
  constructor(e) {
1384
- if (!e) throw new r("snapshot is required.");
1384
+ if (!e) throw new o("snapshot is required.");
1385
1385
  this._snapshot = e;
1386
1386
  }
1387
1387
  getItemType() {
@@ -1412,9 +1412,9 @@ var Ot = class {
1412
1412
  return !0;
1413
1413
  }
1414
1414
  }, Pt = class {
1415
- constructor(e, t, n, i, a) {
1416
- if (this._parsed = void 0, this._runtime = e, !t) throw new r("nativeItems are required.");
1417
- this._topLeft = n ?? l.EmptyCell, this._native = t, this._markOptions = Object.freeze(i ?? {}), this._styles = a;
1415
+ constructor(e, t, n, r, i) {
1416
+ if (this._parsed = void 0, this._runtime = e, !t) throw new o("nativeItems are required.");
1417
+ this._topLeft = n ?? f.EmptyCell, this._native = t, this._markOptions = Object.freeze(r ?? {}), this._styles = i;
1418
1418
  }
1419
1419
  getItemType() {
1420
1420
  return "range";
@@ -1455,8 +1455,8 @@ var Ot = class {
1455
1455
  async parse() {
1456
1456
  let e, t = this._native?.text, n = this._native.html;
1457
1457
  if (n === null && t && t.includes("<table")) try {
1458
- let e = new DOMParser().parseFromString(t, d.Html), r = e.querySelector("parsererror");
1459
- if (r) throw new f("Unable to parse: " + r);
1458
+ let e = new DOMParser().parseFromString(t, m.Html), r = e.querySelector("parsererror");
1459
+ if (r) throw new h("Unable to parse: " + r);
1460
1460
  n = e, t = null;
1461
1461
  } catch {
1462
1462
  console.warn("Discovered text as html table but could could not parse.");
@@ -1464,8 +1464,8 @@ var Ot = class {
1464
1464
  try {
1465
1465
  let r = new Mt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text");
1466
1466
  await r.sheet().getCalculation().ready(), await r.sheet().getCalculation().stop();
1467
- let i, a = await Promise.resolve(t ? ue(t) : [[]]);
1468
- if (we(n, a, r) ? (e = r.sheet(), i = e.getUsedRange()) : n = null, i) return this._parsed = {
1467
+ let i, a = await Promise.resolve(t ? we(t) : [[]]);
1468
+ if (be(n, a, r) ? (e = r.sheet(), i = e.getUsedRange()) : n = null, i) return this._parsed = {
1469
1469
  copyTo: async (e, t) => (await e.copyFrom(i, t))?.getCoords() ?? null,
1470
1470
  getCoords: () => i.getCoords(),
1471
1471
  getSource: () => e,
@@ -1480,7 +1480,7 @@ var Ot = class {
1480
1480
  async copyTo(t, n) {
1481
1481
  let r = t.getSheet(), i = await e._native.image.arrayBuffer(), a = await r.getMovables().addPicture({ source: { buffer: i } }, {
1482
1482
  type: "picture",
1483
- description: m("op.copyImageFromClipboard")
1483
+ description: _("op.copyImageFromClipboard")
1484
1484
  });
1485
1485
  return r.getView().selectMovables([a]), null;
1486
1486
  },
@@ -1502,7 +1502,7 @@ var Ot = class {
1502
1502
  activeSheetId: 0
1503
1503
  }, Ft = class {
1504
1504
  constructor(e) {
1505
- this._emitter = new A(this), this._state = { ...Y }, e?.json && this._fromJSON(e?.json);
1505
+ this._emitter = new x(this), this._state = { ...Y }, e?.json && this._fromJSON(e?.json);
1506
1506
  }
1507
1507
  isShowFormulaBar() {
1508
1508
  return this._state.showFormulaBar;
@@ -1582,7 +1582,7 @@ var Ot = class {
1582
1582
  revision: !1,
1583
1583
  password: null,
1584
1584
  revisionsPassword: null
1585
- }), Lt = class extends _e {
1585
+ }), Lt = class extends te {
1586
1586
  isWindowsAllowed() {
1587
1587
  return this._isPropertyAllowed("windows");
1588
1588
  }
@@ -1615,7 +1615,7 @@ var Ot = class {
1615
1615
  }
1616
1616
  };
1617
1617
  function X(e) {
1618
- return s("error.workbook.invalidSheetKey", { key: e });
1618
+ return u("error.workbook.invalidSheetKey", { key: e });
1619
1619
  }
1620
1620
  var Rt, zt, Bt = class {
1621
1621
  constructor(e, t) {
@@ -1638,37 +1638,37 @@ var Rt, zt, Bt = class {
1638
1638
  }
1639
1639
  }, Z = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), Vt = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1640
1640
  function Ht(e) {
1641
- let t = s(m("workbook.defaultSheetName"), { n: e + 1 });
1641
+ let t = u(_("workbook.defaultSheetName"), { n: e + 1 });
1642
1642
  return t === "workbook.defaultSheetName" ? `Sheet${e + 1}` : t;
1643
1643
  }
1644
- function Q(e, t) {
1644
+ function Ut(e, t) {
1645
1645
  return {
1646
- ...Se,
1646
+ ...je,
1647
1647
  getSheet: () => null,
1648
- toString: () => O(e, t)
1648
+ toString: () => F(e, t)
1649
1649
  };
1650
1650
  }
1651
- function Ut(e, t = !1) {
1652
- if (!e) throw Error(s("error.workbook.sheetNameBlank"));
1651
+ function Wt(e, t = !1) {
1652
+ if (!e) throw Error(u("error.workbook.sheetNameBlank"));
1653
1653
  if (Z.test(e)) {
1654
1654
  if (!t) throw Error(function(e) {
1655
- return e ? s("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : s("error.workbook.sheetNameInvalidChars");
1655
+ return e ? u("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : u("error.workbook.sheetNameInvalidChars");
1656
1656
  }(e));
1657
1657
  e = e.replace(Z, "");
1658
1658
  }
1659
- if (e.length === 0) throw Error(s("error.workbook.sheetNameBlank"));
1659
+ if (e.length === 0) throw Error(u("error.workbook.sheetNameBlank"));
1660
1660
  let n = e.length;
1661
1661
  if (n > 31) {
1662
- if (!t) throw Error(s("error.workbook.sheetNameTooLong"));
1662
+ if (!t) throw Error(u("error.workbook.sheetNameTooLong"));
1663
1663
  e = e.substring(0, 31);
1664
1664
  }
1665
1665
  if (e.charAt(0) === "'" || e.charAt(n - 1) === "'") {
1666
- if (!t) throw Error(s("error.workbook.sheetNameQuotes"));
1666
+ if (!t) throw Error(u("error.workbook.sheetNameQuotes"));
1667
1667
  e = e.replace(/^'|'$/g, "");
1668
1668
  }
1669
1669
  return e;
1670
1670
  }
1671
- var Wt, $ = class e extends ee {
1671
+ var Gt, Q = class e extends me {
1672
1672
  constructor(e, t, n, r) {
1673
1673
  super(e, t, r), this._workbook = n;
1674
1674
  }
@@ -1679,23 +1679,23 @@ var Wt, $ = class e extends ee {
1679
1679
  let r = this._options;
1680
1680
  return n && (r = {
1681
1681
  ...this._options,
1682
- getOptions: x(this._options?.getOptions, n)
1682
+ getOptions: M(this._options?.getOptions, n)
1683
1683
  }), new e(t, this._internal, this._workbook, r);
1684
1684
  }
1685
1685
  _createRange(e, t) {
1686
1686
  let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, R.Visibility.VeryHidden) : null;
1687
1687
  if (!r) {
1688
1688
  let e = this._workbook.getSelectedSheet();
1689
- return delete n?.scope, Q(n, n ? {
1690
- scope: Pe,
1689
+ return delete n?.scope, Ut(n, n ? {
1690
+ scope: C,
1691
1691
  ...e.getEntireRange().getCoords()
1692
1692
  } : null);
1693
1693
  }
1694
1694
  let i = this._options;
1695
1695
  return t && (i = {
1696
1696
  ...this._options,
1697
- getOptions: x(this._options.getOptions, t)
1698
- }), new Gt(e, I(r.sheet), this._workbook, i);
1697
+ getOptions: M(this._options.getOptions, t)
1698
+ }), new Kt(e, A(r.sheet), this._workbook, i);
1699
1699
  }
1700
1700
  async select(e) {
1701
1701
  let t = [], n = null, r = this.getCoords();
@@ -1722,12 +1722,12 @@ var Wt, $ = class e extends ee {
1722
1722
  return Me(this.getCoords(), {
1723
1723
  ...n,
1724
1724
  scope: t.getName()
1725
- }, O, je, e);
1725
+ }, F, ee, e);
1726
1726
  }
1727
1727
  toString() {
1728
1728
  return this.getAddress();
1729
1729
  }
1730
- }, Gt = class e extends oe {
1730
+ }, Kt = class e extends Ne {
1731
1731
  constructor(e, t, n, r) {
1732
1732
  super(e, t, r), this._workbook = n;
1733
1733
  }
@@ -1735,17 +1735,17 @@ var Wt, $ = class e extends ee {
1735
1735
  let n = this._options;
1736
1736
  return t && (n = {
1737
1737
  ...this._options,
1738
- getOptions: x(this._options?.getOptions, t)
1739
- }), new $(e, this._internal, this._workbook, n);
1738
+ getOptions: M(this._options?.getOptions, t)
1739
+ }), new Q(e, this._internal, this._workbook, n);
1740
1740
  }
1741
1741
  _createRange(t, n) {
1742
1742
  let r = this._internal;
1743
- if (!t) return F(r.getSheet(), r.getSheet().getEntireCoords());
1744
- if (r.validateCoords(t), r.getSheet().isClosed()) return F(null, r.getSheet().getEntireCoords(), t);
1743
+ if (!t) return T(r.getSheet(), r.getSheet().getEntireCoords());
1744
+ if (r.validateCoords(t), r.getSheet().isClosed()) return T(null, r.getSheet().getEntireCoords(), t);
1745
1745
  let i = this._options;
1746
1746
  return n && (i = {
1747
1747
  ...this._options,
1748
- getOptions: x(this._options?.getOptions, n)
1748
+ getOptions: M(this._options?.getOptions, n)
1749
1749
  }), new e(t, this._internal, this._workbook, i);
1750
1750
  }
1751
1751
  addListener(e, t) {
@@ -1758,7 +1758,7 @@ var Wt, $ = class e extends ee {
1758
1758
  }
1759
1759
  getAddress(e) {
1760
1760
  let t = this._internal.getSheet(), n = t?.getEntireRange().getCoords() ?? null;
1761
- return O(this.getCoords(), {
1761
+ return F(this.getCoords(), {
1762
1762
  ...n,
1763
1763
  scope: t.getName()
1764
1764
  });
@@ -1766,28 +1766,28 @@ var Wt, $ = class e extends ee {
1766
1766
  toString() {
1767
1767
  return this.getAddress();
1768
1768
  }
1769
- }, Kt = class {
1770
- constructor(t) {
1769
+ }, $ = class {
1770
+ constructor(e) {
1771
1771
  this._lastTransactionUUID = null, this._closed = !1, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._isDate1904 = !1, this._locale = null, this._localeOverrides = null;
1772
- let n = typeof t == "string" ? { origin: t } : { ...t }, r = n.origin;
1773
- this._origin = typeof r == "string" ? new z(null, { name: r }) : r ?? new z(null), delete n.origin, this._lastOriginName = this._origin.getName(), this._listenerOrigin = this._origin.addListeners({ onChange: () => {
1772
+ let t = typeof e == "string" ? { origin: e } : { ...e }, n = t.origin;
1773
+ this._origin = typeof n == "string" ? new z(null, { name: n }) : n ?? new z(null), delete t.origin, this._lastOriginName = this._origin.getName(), this._listenerOrigin = this._origin.addListeners({ onChange: () => {
1774
1774
  if (this._closed) return;
1775
1775
  let e = this._origin.getName();
1776
1776
  e !== this._lastOriginName && (this._lastOriginName = e, this._emitter.notify("onNameChange"));
1777
1777
  } });
1778
- let i = n.json;
1779
- delete n.json, this._transactions = n.transactions ?? new fe(), this._id = this._transactions.create(), this._ownTransactions = !n.transactions, this._emitter = new A(this, this._transactions), this._runtime = n.runtime ?? new ve("Workbook Runtime", {
1778
+ let i = t.json;
1779
+ delete t.json, this._transactions = t.transactions ?? new fe(), this._id = this._transactions.create(), this._ownTransactions = !t.transactions, this._emitter = new x(this, this._transactions), this._runtime = t.runtime ?? new xe("Workbook Runtime", {
1780
1780
  isDate1904: () => this._isDate1904,
1781
- getLocale: () => this._locale ?? He() ?? ke(),
1781
+ getLocale: () => this._locale ?? ie() ?? de(),
1782
1782
  getLocaleOverrides: () => this._localeOverrides
1783
- }), this._listenerLanguage = c.addChangeListener(() => {
1783
+ }), this._listenerLanguage = d.addChangeListener(() => {
1784
1784
  this._locale !== null || this._closed || this._notifyAllChange();
1785
1785
  });
1786
- let a = this, o = this._beginCommit({ description: m(i ? "op.openWorkbook" : "op.newWorkbook") });
1786
+ let a = this, o = this._beginCommit({ description: _(i ? "op.openWorkbook" : "op.newWorkbook") });
1787
1787
  try {
1788
- this._strings = n.strings ?? new se(), this._ownStrings = !n.strings, this._externalBooks = new kt({ json: i?.externalBooks }), this._resources = n.resources ?? new b(), this._ownResources = !n.resources, this._createSheetName = n.createSheetNameCallback ?? Ht;
1789
- let t = n.createSheetCallback;
1790
- t ||= (e) => new D(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, n, r, i, o) => {
1788
+ this._strings = t.strings ?? new ae(), this._ownStrings = !t.strings, this._externalBooks = new kt({ json: i?.externalBooks }), this._resources = t.resources ?? new b(), this._ownResources = !t.resources, this._createSheetName = t.createSheetNameCallback ?? Ht;
1789
+ let e = t.createSheetCallback;
1790
+ e ||= (e) => new E(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (t, n, r, i, o) => {
1791
1791
  let s = null, c = {
1792
1792
  runtime: a._runtime,
1793
1793
  readonly: a._options.readonly ?? !1,
@@ -1803,12 +1803,12 @@ var Wt, $ = class e extends ee {
1803
1803
  calculation: a._calculation,
1804
1804
  resolveRange: (e) => a._options.resolveRange?.(e) ?? a.getRange(e),
1805
1805
  container: {
1806
- beforeFromJSON: (t) => {
1807
- s = t, a._addSheetRef({
1806
+ beforeFromJSON: (e) => {
1807
+ s = e, a._addSheetRef({
1808
1808
  name: n,
1809
- id: e,
1809
+ id: t,
1810
1810
  visibility: r ?? R.Visibility.Visible,
1811
- sheet: t
1811
+ sheet: e
1812
1812
  }, i);
1813
1813
  },
1814
1814
  getName: () => {
@@ -1818,8 +1818,8 @@ var Wt, $ = class e extends ee {
1818
1818
  setName: (e, t) => {
1819
1819
  a._getSheetRef(s) && a._setSheetName(s, e, t);
1820
1820
  },
1821
- setNameChangeCallback: (t) => {
1822
- a._sheetOnNameChange.set(e, t);
1821
+ setNameChangeCallback: (e) => {
1822
+ a._sheetOnNameChange.set(t, e);
1823
1823
  },
1824
1824
  getVisibility: () => {
1825
1825
  let e = a._getSheetRef(s);
@@ -1828,8 +1828,8 @@ var Wt, $ = class e extends ee {
1828
1828
  setVisibility: (e, t) => {
1829
1829
  a._setSheetVisibility(s, e, t);
1830
1830
  },
1831
- setVisibilityCallback: (t) => {
1832
- a._sheetOnVisibilityChange.set(e, t);
1831
+ setVisibilityCallback: (e) => {
1832
+ a._sheetOnVisibilityChange.set(t, e);
1833
1833
  },
1834
1834
  duplicate: () => a._duplicateSheet(s),
1835
1835
  getIndex: () => {
@@ -1840,8 +1840,8 @@ var Wt, $ = class e extends ee {
1840
1840
  let n = a._getSheetRef(s, R.Visibility.VeryHidden);
1841
1841
  return !!n && (a._moveSheet(n, e, t), !0);
1842
1842
  },
1843
- setIndexCallback: (t) => {
1844
- a._sheetOnIndexChange.set(e, t);
1843
+ setIndexCallback: (e) => {
1844
+ a._sheetOnIndexChange.set(t, e);
1845
1845
  },
1846
1846
  requestSelect: async () => (a._setSelectedSheet(s), await this._emitter.notify("onRequestSelect", {
1847
1847
  source: a,
@@ -1850,19 +1850,19 @@ var Wt, $ = class e extends ee {
1850
1850
  }), a.getSelectedSheet() === s)
1851
1851
  }
1852
1852
  };
1853
- return o && (c.json = o), s = t(c, n, i, r), s;
1854
- }, this._namedTableSource = new Ae({
1855
- getSheets: () => a._sheets ? a.getSheets().getItems() : e.EmptyArray,
1853
+ return o && (c.json = o), s = e(c, n, i, r), s;
1854
+ }, this._namedTableSource = new Ee({
1855
+ getSheets: () => a._sheets ? a.getSheets().getItems() : r.EmptyArray,
1856
1856
  addSheetsListener: (e, t) => a.addListeners({ onSheetsChange: e }, t)
1857
- }), this._names = n.names ?? new C({
1857
+ }), this._names = t.names ?? new pe({
1858
1858
  addressToRanges: (e) => a.getRanges(e),
1859
1859
  getCurrentScope: () => a.getSelectedSheet().getName(),
1860
1860
  isReadOnly: () => a._options.readonly ?? !1,
1861
1861
  transactions: a._transactions,
1862
- getSources: () => a._calculation ? [a._calculation.getNamedFormulas(), a._namedTableSource] : e.EmptyArray
1863
- }), this._ownNames = !n.names, this._calculation = n.calculation ?? new Ne({
1862
+ getSources: () => a._calculation ? [a._calculation.getNamedFormulas(), a._namedTableSource] : r.EmptyArray
1863
+ }), this._ownNames = !t.names, this._calculation = t.calculation ?? new re({
1864
1864
  runtime: a._runtime,
1865
- functions: n.functions,
1865
+ functions: t.functions,
1866
1866
  json: i?.calc,
1867
1867
  getActiveCell: () => {
1868
1868
  let e = a.getSelectedSheet(), t = e?.getSelectedRange()?.getCoords();
@@ -1916,17 +1916,17 @@ var Wt, $ = class e extends ee {
1916
1916
  strings: a._strings,
1917
1917
  transactions: a._transactions,
1918
1918
  names: i?.names,
1919
- formulaTransform: n.formulaTransform
1920
- }), this._ownCalculation = !n.calculation, this._scripts = this._createScripts(), this._ownNames = !n.names, this._options = Object.freeze({ ...n });
1921
- let r = async () => {
1919
+ formulaTransform: t.formulaTransform
1920
+ }), this._ownCalculation = !t.calculation, this._scripts = this._createScripts(), this._ownNames = !t.names, this._options = Object.freeze({ ...t });
1921
+ let n = async () => {
1922
1922
  this._ownCalculation && await this._calculation.start(), await this._scripts.start(), this._starting = null;
1923
1923
  };
1924
- this._starting = r(), this._starting?.catch(() => {}), i ? this._fromJSON(i) : (this._initState(), this._addSheet(!1)), this._sheets = new Bt((e) => a._addSheetOptions(e), (t, n) => {
1925
- if (t) {
1926
- let r = this._getSheetRef(t, n);
1927
- return r ? [r.sheet] : e.EmptyArray;
1924
+ this._starting = n(), this._starting?.catch(() => {}), i ? this._fromJSON(i) : (this._initState(), this._addSheet(!1)), this._sheets = new Bt((e) => a._addSheetOptions(e), (e, t) => {
1925
+ if (e) {
1926
+ let n = this._getSheetRef(e, t);
1927
+ return n ? [n.sheet] : r.EmptyArray;
1928
1928
  }
1929
- return this._getSheets(n);
1929
+ return this._getSheets(t);
1930
1930
  }), this._ownCalculation && this._calculation.hydrateNames(), this._emitter.notify("onLoad"), o.commit({ forceAmend: this._ownTransactions });
1931
1931
  } catch (e) {
1932
1932
  throw o.rollback(), e;
@@ -1937,7 +1937,7 @@ var Wt, $ = class e extends ee {
1937
1937
  let e = this._getSheetRefs();
1938
1938
  for (let t = (e ? e.length : 0) - 1; t >= 0; t--);
1939
1939
  let t = this._options;
1940
- this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new ze().getDefaultTheme(), this._styles = t?.styles ?? new De(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Ft()), this._listenerProtection?.(), this._protection = new Lt(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1940
+ this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new Te().getDefaultTheme(), this._styles = t?.styles ?? new Oe(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Ft()), this._listenerProtection?.(), this._protection = new Lt(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1941
1941
  n._emitter.notify("onProtectionChange");
1942
1942
  } });
1943
1943
  let n = this;
@@ -1991,8 +1991,8 @@ var Wt, $ = class e extends ee {
1991
1991
  return this._view;
1992
1992
  }
1993
1993
  setView(e) {
1994
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
1995
- if (!e) throw new f(s("error.sheet.emptyView"));
1994
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
1995
+ if (!e) throw new h(u("error.sheet.emptyView"));
1996
1996
  this._listenerWorkbookView?.();
1997
1997
  let t = this, n = -1;
1998
1998
  return this._listenerWorkbookView = e.addListeners({ onViewChange: (e) => {
@@ -2004,7 +2004,7 @@ var Wt, $ = class e extends ee {
2004
2004
  return this._runtime;
2005
2005
  }
2006
2006
  setDate1904(e) {
2007
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2007
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2008
2008
  return this._isDate1904 = e, this._notifyAllChange(), this;
2009
2009
  }
2010
2010
  getLocale() {
@@ -2014,11 +2014,11 @@ var Wt, $ = class e extends ee {
2014
2014
  return this._locale;
2015
2015
  }
2016
2016
  setLocale(e) {
2017
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2017
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2018
2018
  if (e) try {
2019
2019
  new Intl.Locale(e);
2020
2020
  } catch {
2021
- throw Error(s("error.workbook.invalidLocale", { locale: e }));
2021
+ throw Error(u("error.workbook.invalidLocale", { locale: e }));
2022
2022
  }
2023
2023
  return this._locale === e || (this._locale = e, this._notifyAllChange()), this;
2024
2024
  }
@@ -2026,7 +2026,7 @@ var Wt, $ = class e extends ee {
2026
2026
  return this._localeOverrides;
2027
2027
  }
2028
2028
  setLocaleOverrides(e) {
2029
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2029
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2030
2030
  let t = e && Object.keys(e).length > 0 ? e : null;
2031
2031
  return this._localeOverrides = t, this._notifyAllChange(), this;
2032
2032
  }
@@ -2049,8 +2049,8 @@ var Wt, $ = class e extends ee {
2049
2049
  return this._theme;
2050
2050
  }
2051
2051
  setTheme(e) {
2052
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2053
- if (!e) throw new f(s("error.workbook.notSetValue"));
2052
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2053
+ if (!e) throw new h(u("error.workbook.notSetValue"));
2054
2054
  let t = this._theme;
2055
2055
  return this._theme = e, this.getStyles().setTheme(e), this._emitter.notify("onThemeChange"), t;
2056
2056
  }
@@ -2061,19 +2061,19 @@ var Wt, $ = class e extends ee {
2061
2061
  let e = this._getSheetRef(this.getSelectedSheetIndex());
2062
2062
  return e ? e?.sheet : null;
2063
2063
  }
2064
- getSheet(e, n = R.Visibility.Visible) {
2064
+ getSheet(e, t = R.Visibility.Visible) {
2065
2065
  if (e === void 0) return this.getSelectedSheet();
2066
- if (!e) throw Error(s("error.workbook.sheetNameNotProvided"));
2067
- let r = this._getSheetRef(e, n);
2068
- if (!r) throw new t(s("error.workbook.sheetNameNotFound", { sheetName: e }));
2069
- return r.sheet;
2070
- }
2071
- getSheetAt(e, n = R.Visibility.Visible) {
2072
- let r = this._getSheetRef(e, n);
2073
- if (!r) throw new t(function(e) {
2074
- return s("error.workbook.sheetIndexNotFound", { index: e });
2066
+ if (!e) throw Error(u("error.workbook.sheetNameNotProvided"));
2067
+ let n = this._getSheetRef(e, t);
2068
+ if (!n) throw new i(u("error.workbook.sheetNameNotFound", { sheetName: e }));
2069
+ return n.sheet;
2070
+ }
2071
+ getSheetAt(e, t = R.Visibility.Visible) {
2072
+ let n = this._getSheetRef(e, t);
2073
+ if (!n) throw new i(function(e) {
2074
+ return u("error.workbook.sheetIndexNotFound", { index: e });
2075
2075
  }(e));
2076
- return r.sheet;
2076
+ return n.sheet;
2077
2077
  }
2078
2078
  getSheets() {
2079
2079
  return this._sheets;
@@ -2086,21 +2086,21 @@ var Wt, $ = class e extends ee {
2086
2086
  for (let e = 0; e < r; e++) n.push(t[e].sheet);
2087
2087
  return n;
2088
2088
  }
2089
- _getSheetRefs(t = R.Visibility.Visible) {
2090
- let n = this._getState();
2091
- return n ? t === R.Visibility.Visible ? n.sheetRefsVisible : t === R.Visibility.Hidden ? n.sheetRefsVisibleAndHidden : t === R.Visibility.VeryHidden ? n.sheetRefsAll : e.EmptyArray : [];
2089
+ _getSheetRefs(e = R.Visibility.Visible) {
2090
+ let t = this._getState();
2091
+ return t ? e === R.Visibility.Visible ? t.sheetRefsVisible : e === R.Visibility.Hidden ? t.sheetRefsVisibleAndHidden : e === R.Visibility.VeryHidden ? t.sheetRefsAll : r.EmptyArray : [];
2092
2092
  }
2093
2093
  _getSheetRef(e, t = R.Visibility.Visible) {
2094
2094
  let n = null;
2095
- return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof D ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2095
+ return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof E ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2096
2096
  }
2097
2097
  _validateNewSheetName(e, t = !0) {
2098
2098
  if (e == null) return e;
2099
- if (Ut(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new f(s("error.workbook.nameTaken"));
2099
+ if (Wt(e), t && this._getState().sheetsByLowerCaseName.has(e.toLowerCase())) throw new h(u("error.workbook.nameTaken"));
2100
2100
  return e.substring(0, 31);
2101
2101
  }
2102
2102
  findValidSheetName(e) {
2103
- e &&= Ut(e, !0);
2103
+ e &&= Wt(e, !0);
2104
2104
  try {
2105
2105
  return function(e, t) {
2106
2106
  try {
@@ -2124,12 +2124,12 @@ var Wt, $ = class e extends ee {
2124
2124
  return !Z.test(e);
2125
2125
  }
2126
2126
  _addSheetOptions(e) {
2127
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2128
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2127
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2128
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2129
2129
  let t, n = null;
2130
2130
  t = typeof e == "string" ? { name: e } : typeof e == "number" ? { index: e } : e, t = {
2131
2131
  ...t,
2132
- description: t?.description ?? m("op.addSheet")
2132
+ description: t?.description ?? _("op.addSheet")
2133
2133
  };
2134
2134
  let r = this.beginCommit(t);
2135
2135
  try {
@@ -2147,7 +2147,7 @@ var Wt, $ = class e extends ee {
2147
2147
  });
2148
2148
  }
2149
2149
  if (r.commit({
2150
- description: s("op.addSheetNamed", { name: n.getName() }),
2150
+ description: u("op.addSheetNamed", { name: n.getName() }),
2151
2151
  viewBefore: i,
2152
2152
  viewAfter: a
2153
2153
  }), !1 !== e) {
@@ -2161,8 +2161,8 @@ var Wt, $ = class e extends ee {
2161
2161
  }
2162
2162
  _nextSheetName(e = null) {
2163
2163
  let t = e ? e.toLowerCase() : null, n = this._getState(), r = n.sheetsByLowerCaseName;
2164
- if (e && r.has(t)) throw new f(function(e) {
2165
- return s("error.workbook.nameDuplicate", { sheetName: e });
2164
+ if (e && r.has(t)) throw new h(function(e) {
2165
+ return u("error.workbook.nameDuplicate", { sheetName: e });
2166
2166
  }(e));
2167
2167
  t = (e = this._validateNewSheetName(e)) ? e.toLowerCase() : null;
2168
2168
  let i = n.lastId + 1;
@@ -2175,12 +2175,12 @@ var Wt, $ = class e extends ee {
2175
2175
  _addSheet(e, t = null, n = null) {
2176
2176
  t = this._nextSheetName(t);
2177
2177
  let r = this._getState(), i = this._createSheet(r.lastId, t, R.Visibility.Visible, n, null);
2178
- if (!i) throw new f(s("error.workbook.sheetNameBlank"));
2178
+ if (!i) throw new h(u("error.workbook.sheetNameBlank"));
2179
2179
  return e && this._emitter.notify("onSheetsChange"), i;
2180
2180
  }
2181
2181
  _updateSheetRefStates(e) {
2182
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2183
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2182
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2183
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2184
2184
  let t = e, n = [], r = [], i = t.length;
2185
2185
  for (let e = 0; e < i; e++) t[e].visibility === R.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === R.Visibility.Hidden && r.push(t[e]);
2186
2186
  this._updateState({
@@ -2196,16 +2196,16 @@ var Wt, $ = class e extends ee {
2196
2196
  ...r.slice(i)
2197
2197
  ];
2198
2198
  this._updateSheetRefStates(a);
2199
- let o = e.sheet, c = e.name.toLowerCase(), l = new Map(n.refsById);
2200
- l.set(e.id, e);
2201
- let u = new Map(n.refsByLowerCaseName);
2202
- u.set(c, e);
2199
+ let o = e.sheet, s = e.name.toLowerCase(), c = new Map(n.refsById);
2200
+ c.set(e.id, e);
2201
+ let l = new Map(n.refsByLowerCaseName);
2202
+ l.set(s, e);
2203
2203
  let d = new Map(n.refsByInstance);
2204
2204
  d.set(o, e);
2205
2205
  let f = new Map(n.sheetsById);
2206
2206
  f.set(e.id, o);
2207
2207
  let p = new Map(n.sheetsByLowerCaseName);
2208
- p.set(c, o);
2208
+ p.set(s, o);
2209
2209
  let m = this, h = n.listenersSheets;
2210
2210
  if (o !== void 0) {
2211
2211
  let t = o.addListeners({
@@ -2215,7 +2215,7 @@ var Wt, $ = class e extends ee {
2215
2215
  onDelete(e) {
2216
2216
  let t = m._getSheetRef(e, R.Visibility.VeryHidden);
2217
2217
  if (!t) return;
2218
- let n = m._beginCommit({ description: s("op.deleteSheet", { name: t.name }) });
2218
+ let n = m._beginCommit({ description: u("op.deleteSheet", { name: t.name }) });
2219
2219
  try {
2220
2220
  let r = m._getState(), i = r.sheetRefsAll, a = m._getOffsetForId(t.id, i), s = [...i];
2221
2221
  s.splice(a, 1), m._updateSheetRefStates(s);
@@ -2257,8 +2257,8 @@ var Wt, $ = class e extends ee {
2257
2257
  }
2258
2258
  let g = n.lastId;
2259
2259
  g !== -1 && (g = Math.max(g, e.id)), this._updateState({ lastId: g }), this._updateState({
2260
- refsById: l,
2261
- refsByLowerCaseName: u,
2260
+ refsById: c,
2261
+ refsByLowerCaseName: l,
2262
2262
  refsByInstance: d,
2263
2263
  sheetsById: f,
2264
2264
  sheetsByLowerCaseName: p,
@@ -2282,52 +2282,52 @@ var Wt, $ = class e extends ee {
2282
2282
  r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === R.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2283
2283
  }
2284
2284
  _validateDeleteSheet(e) {
2285
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2286
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2285
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2286
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2287
2287
  let t = this._getSheetRef(e);
2288
- if (!t) throw new f(function(e) {
2289
- return s("error.workbook.deleteKey", { key: e });
2288
+ if (!t) throw new h(function(e) {
2289
+ return u("error.workbook.deleteKey", { key: e });
2290
2290
  }(e));
2291
2291
  let n = this._getState().sheetRefsVisible;
2292
- if (n.length === 1 && n[0].id === t.id) throw new f(s("error.workbook.sheetOne"));
2292
+ if (n.length === 1 && n[0].id === t.id) throw new h(u("error.workbook.sheetOne"));
2293
2293
  }
2294
2294
  _getOffsetForId(e, t) {
2295
2295
  let n = t.length;
2296
2296
  for (let r = 0; r < n; r++) if (t[r].id === e) return r;
2297
- throw new f(s("error.workbook.noVisibleRefs"));
2297
+ throw new h(u("error.workbook.noVisibleRefs"));
2298
2298
  }
2299
2299
  find(e) {
2300
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2300
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2301
2301
  let t = this._getSheets();
2302
2302
  if (t.length === 1) return t[0].find(e);
2303
2303
  typeof e == "string" && (e = { text: e });
2304
- let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this.getSelectedSheetIndex(), a = i, o = t[a], c = !1;
2304
+ let n = !e?.reverse, r = e?.disableWrap ?? !1, i = this.getSelectedSheetIndex(), a = i, o = t[a], s = !1;
2305
2305
  e = {
2306
2306
  ...e,
2307
2307
  disableWrap: !0
2308
2308
  };
2309
- let u, d = o.find(e), f = d.next(), p = !1;
2309
+ let c, l = o.find(e), d = l.next(), p = !1;
2310
2310
  if (e?.from) {
2311
2311
  let t = this._rangesAddressToCoords(e?.from);
2312
- u = {
2312
+ c = {
2313
2313
  colIndex: t[0].colStart,
2314
2314
  rowIndex: t[0].rowStart
2315
2315
  };
2316
2316
  }
2317
- let m = l.createCellComparator(e?.axis, e?.reverse);
2317
+ let m = f.createCellComparator(e?.axis, e?.reverse);
2318
2318
  delete (e = { ...e }).from;
2319
2319
  let h = () => {
2320
- if (!p && f.done && (c && a === i ? p = !0 : n ? (a++, a > t.length - 1 && (a = 0, c = !0)) : (a--, a < 0 && (a = t.length - 1, c = !0)), r && c && (p = !0), p || u || !c || a !== i || (p = !0), !p)) {
2321
- o = t[a], d = o.find(e);
2322
- let n = f;
2323
- return f = d.next(), n;
2320
+ if (!p && d.done && (s && a === i ? p = !0 : n ? (a++, a > t.length - 1 && (a = 0, s = !0)) : (a--, a < 0 && (a = t.length - 1, s = !0)), r && s && (p = !0), p || c || !s || a !== i || (p = !0), !p)) {
2321
+ o = t[a], l = o.find(e);
2322
+ let n = d;
2323
+ return d = l.next(), n;
2324
2324
  }
2325
- if (!p && c && a === i && (f.done || !u || !f.done && m(f.value.getCoords(), u) >= 0) && (p = !0), p) {
2326
- let e = f;
2327
- return f = Ve, e;
2325
+ if (!p && s && a === i && (d.done || !c || !d.done && m(d.value.getCoords(), c) >= 0) && (p = !0), p) {
2326
+ let e = d;
2327
+ return d = ye, e;
2328
2328
  }
2329
- let s = f;
2330
- return f = d.next(), s;
2329
+ let u = d;
2330
+ return d = l.next(), u;
2331
2331
  };
2332
2332
  return { next: () => {
2333
2333
  let e = h();
@@ -2336,23 +2336,23 @@ var Wt, $ = class e extends ee {
2336
2336
  } };
2337
2337
  }
2338
2338
  replace(e, t, n) {
2339
- let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, c = !n?.maxCount, l = "", u = typeof t == "string" ? Re(t) : null, d = n?.description ?? m("op.replace"), f = this._transactions.beginCommit({ description: d });
2339
+ let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, s = !n?.maxCount, c = "", l = typeof t == "string" ? Be(t) : null, d = n?.description ?? _("op.replace"), f = this._transactions.beginCommit({ description: d });
2340
2340
  try {
2341
- let d = null, p = null, h = e.next();
2342
- for (; !h.done && r < o;) {
2343
- let o = h.value, s = o.getSheet();
2341
+ let d = null, p = null, m = e.next();
2342
+ for (; !m.done && r < o;) {
2343
+ let o = m.value, s = o.getSheet();
2344
2344
  s !== d && (d = s, p !== null && p.apply(), p = d.getEntireRange().createSparseBuilder({
2345
2345
  axis: n?.axis,
2346
2346
  allowUnorderedWrites: !0
2347
2347
  }));
2348
2348
  let c = a ? t(o) : t;
2349
- c !== void 0 && c !== o && (p.push(o, c), r++, i = o), h = e.next();
2349
+ c !== void 0 && c !== o && (p.push(o, c), r++, i = o), m = e.next();
2350
2350
  }
2351
- p?.apply(), r === 1 && o === 1 && i && (l = i.getAddress()), r === 0 ? f.rollback() : f.commit({
2352
- description: n?.description ?? (c ? u === null ? m("op.replaceAll") : s("op.replaceAllWith", { value: u }) : l ? u === null ? s("op.replaceAt", { address: l }) : s("op.replaceAtWith", {
2353
- address: l,
2354
- value: u
2355
- }) : u === null ? m("op.replace") : s("op.replaceWith", { value: u })),
2351
+ p?.apply(), r === 1 && o === 1 && i && (c = i.getAddress()), r === 0 ? f.rollback() : f.commit({
2352
+ description: n?.description ?? (s ? l === null ? _("op.replaceAll") : u("op.replaceAllWith", { value: l }) : c ? l === null ? u("op.replaceAt", { address: c }) : u("op.replaceAtWith", {
2353
+ address: c,
2354
+ value: l
2355
+ }) : l === null ? _("op.replace") : u("op.replaceWith", { value: l })),
2356
2356
  viewAfter: { selection: null }
2357
2357
  });
2358
2358
  } catch (e) {
@@ -2372,82 +2372,82 @@ var Wt, $ = class e extends ee {
2372
2372
  return n === 1 ? 0 : (e === void 0 && (e = this.getSelectedSheetIndex()), (e = Math.max(0, Math.min(e, n - 1))) <= 0 ? n - 1 : e - 1);
2373
2373
  }
2374
2374
  getNextSheet(e) {
2375
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2375
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2376
2376
  let t = this._getSheetRefs();
2377
2377
  return t[this._nextSheetIndex(e, t)]?.sheet ?? null;
2378
2378
  }
2379
2379
  getPreviousSheet(e) {
2380
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2380
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2381
2381
  let t = this._getSheetRefs();
2382
2382
  return t[this._prevSheetIndex(e, t)]?.sheet ?? null;
2383
2383
  }
2384
2384
  async _duplicateSheet(e) {
2385
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2386
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2385
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2386
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2387
2387
  let t = this._getSheetRefs(), n = this.getSelectedSheetIndex(), r = null;
2388
2388
  if (e) {
2389
- if (r = this._getSheetRef(e), !r) throw new f(X(r));
2389
+ if (r = this._getSheetRef(e), !r) throw new h(X(r));
2390
2390
  } else r = t[n];
2391
2391
  if (!r) return null;
2392
- let i = r.sheet, a = this._strings.beginPersist(), o = this.getResources().beginPersist(), c = this.getStyles().beginPersist(), l = null, u = this.beginCommit(s("op.duplicateNamed", { name: i.getName() }));
2392
+ let i = r.sheet, a = this._strings.beginPersist(), o = this.getResources().beginPersist(), s = this.getStyles().beginPersist(), c = null, l = this.beginCommit(u("op.duplicateNamed", { name: i.getName() }));
2393
2393
  try {
2394
2394
  let e = this._getState().refsByInstance.get(i), r = await i.toJSON(), a = t.length + 1, o = this.findValidSheetName(e.name), s = this._createSheet(a, o, e.visibility, n, r);
2395
- this._emitter.notify("onSheetsChange"), l = s, u.commit();
2395
+ this._emitter.notify("onSheetsChange"), c = s, l.commit();
2396
2396
  } catch (e) {
2397
- throw u.rollback(), e;
2397
+ throw l.rollback(), e;
2398
2398
  } finally {
2399
- c.endPersist(), o.endPersist(), a.endPersist();
2399
+ s.endPersist(), o.endPersist(), a.endPersist();
2400
2400
  }
2401
- return l;
2401
+ return c;
2402
2402
  }
2403
2403
  _createRange(e, t) {
2404
2404
  let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, R.Visibility.VeryHidden) : null;
2405
2405
  if (!r) {
2406
2406
  let e = this.getSelectedSheet();
2407
- return e ? (delete n?.scope, Q(n, n ? {
2408
- scope: Pe,
2407
+ return e ? (delete n?.scope, Ut(n, n ? {
2408
+ scope: C,
2409
2409
  ...e.getEntireRange().getCoords()
2410
- } : null)) : void console.warn(s("error.workbook.noVisibleRefs"));
2410
+ } : null)) : void console.warn(u("error.workbook.noVisibleRefs"));
2411
2411
  }
2412
2412
  let i = r.sheet, a = null;
2413
- return t && (a = { getOptions: t }), new Gt(e, I(i), this, a);
2413
+ return t && (a = { getOptions: t }), new Kt(e, A(i), this, a);
2414
2414
  }
2415
2415
  _createRanges(e, t) {
2416
2416
  let n = this.getSelectedSheet(), r = null;
2417
- return t && (r = { getOptions: t }), new $(e, I(n), this, r);
2417
+ return t && (r = { getOptions: t }), new Q(e, A(n), this, r);
2418
2418
  }
2419
- getRange(e, n) {
2420
- if (e === void 0) return this.getSelectedRange(n);
2419
+ getRange(e, t) {
2420
+ if (e === void 0) return this.getSelectedRange(t);
2421
2421
  try {
2422
- let t = this._rangesAddressToCoords(e);
2423
- if (t.length !== 1) throw new f(s("error.address.singleRangeOnlyAlt"));
2424
- return this._createRange(t[0], n);
2425
- } catch (n) {
2426
- throw n instanceof t ? new t(n.message) : new f(n.message ?? Ce(e));
2422
+ let n = this._rangesAddressToCoords(e);
2423
+ if (n.length !== 1) throw new h(u("error.address.singleRangeOnlyAlt"));
2424
+ return this._createRange(n[0], t);
2425
+ } catch (t) {
2426
+ throw t instanceof i ? new i(t.message) : new h(t.message ?? P(e));
2427
2427
  }
2428
2428
  }
2429
2429
  getCell(e) {
2430
2430
  if (e === void 0) return this.getSelectedCell();
2431
2431
  let t = this.getRange(e);
2432
- if (t.size > 1) throw new f(s("error.address.singleCellOnly"));
2432
+ if (t.size > 1) throw new h(u("error.address.singleCellOnly"));
2433
2433
  return t.getCell();
2434
2434
  }
2435
2435
  getRanges(e, t) {
2436
2436
  let n = this._rangesAddressToCoords(e);
2437
- if (n.length === 0) throw new f(Ce(e));
2437
+ if (n.length === 0) throw new h(P(e));
2438
2438
  return this._createRanges(n, t);
2439
2439
  }
2440
2440
  _createGraphRanges(e, t) {
2441
2441
  let n = [];
2442
2442
  for (let e = 0; e < t.length; e++) {
2443
2443
  let r = t[e], i = (r.sheetName ? this._getSheetRef(r.sheetName, R.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2444
- i && n.push(new pe(r, I(i), null));
2444
+ i && n.push(new he(r, A(i), null));
2445
2445
  }
2446
2446
  for (let t = 0; t < e.length; t++) n.push(e[t]);
2447
- return n.length === 0 ? null : new $(n, I(this.getSelectedSheet()), this, null);
2447
+ return n.length === 0 ? null : new Q(n, A(this.getSelectedSheet()), this, null);
2448
2448
  }
2449
2449
  getStats(e) {
2450
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2450
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2451
2451
  let t = this._getSheets(R.Visibility.VeryHidden), n = t.length;
2452
2452
  if (n === 1) return t[0].getStats(e);
2453
2453
  let r = Array(n);
@@ -2478,7 +2478,7 @@ var Wt, $ = class e extends ee {
2478
2478
  return this.getSelectedSheet().getSelectedCell();
2479
2479
  }
2480
2480
  _rangesAddressToCoords(e, t = !0, n = R.Visibility.Hidden) {
2481
- if (!e) throw new f(s("error.address.noAddress"));
2481
+ if (!e) throw new h(u("error.address.noAddress"));
2482
2482
  let r = this.getSelectedSheet(), i = { ...r?.getEntireRange().getCoords() }, a = r?.getName();
2483
2483
  if (a && (i.scope = a), typeof e == "string") {
2484
2484
  let t = e.trim().toLowerCase();
@@ -2487,22 +2487,22 @@ var Wt, $ = class e extends ee {
2487
2487
  t === "r" ? r.rowStart = r.rowEnd = n.rowIndex : r.colStart = r.colEnd = n.colIndex, e = r;
2488
2488
  }
2489
2489
  }
2490
- let o = this, c = de(e, i, le, (e) => {
2490
+ let o = this, s = Pe(e, i, Fe, (e) => {
2491
2491
  if (!t) return null;
2492
2492
  if (typeof e == "string") {
2493
2493
  let t = o.getNames().getByName(e)?.getRanges?.();
2494
2494
  if (t) return t.getCoords();
2495
2495
  }
2496
- throw new f(`Invalid sheet reference '${e}'.`);
2497
- }), l = c.length;
2498
- for (let e = 0; e < l; e++) this._validateCoords(c[e], n);
2499
- return c;
2496
+ throw new h(`Invalid sheet reference '${e}'.`);
2497
+ }), c = s.length;
2498
+ for (let e = 0; e < c; e++) this._validateCoords(s[e], n);
2499
+ return s;
2500
2500
  }
2501
- _validateCoords(e, n = R.Visibility.Visible, r = s("error.sheet.oobRange")) {
2501
+ _validateCoords(e, t = R.Visibility.Visible, n = u("error.sheet.oobRange")) {
2502
2502
  if (e === null) return;
2503
- let i = this.getSheet(e.scope, n).getEntireRange().getCoords();
2504
- if (!l.isRangeWithinRange(e, i)) throw new t(r);
2505
- if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new f(s("error.address.invalidRangeInverted"));
2503
+ let r = this.getSheet(e.scope, t).getEntireRange().getCoords();
2504
+ if (!f.isRangeWithinRange(e, r)) throw new i(n);
2505
+ if (e.rowEnd < e.rowStart || e.colEnd < e.colStart) throw new h(u("error.address.invalidRangeInverted"));
2506
2506
  }
2507
2507
  _updateSheetRef(e, t) {
2508
2508
  let n = this._getState(), r = [...n.sheetRefsAll];
@@ -2522,16 +2522,16 @@ var Wt, $ = class e extends ee {
2522
2522
  }), t;
2523
2523
  }
2524
2524
  _setSheetName(e, t, n) {
2525
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2526
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2525
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2526
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2527
2527
  let r = this._getSheetRef(e);
2528
- if (!r) throw new f(X(e));
2528
+ if (!r) throw new h(X(e));
2529
2529
  if (t === r.name) return r.sheet;
2530
- if ((t = this._validateNewSheetName(t)) == null) throw new f(s("error.workbook.sheetNameNotProvided"));
2530
+ if ((t = this._validateNewSheetName(t)) == null) throw new h(u("error.workbook.sheetNameNotProvided"));
2531
2531
  let i = Object.freeze({
2532
2532
  ...r,
2533
2533
  name: t
2534
- }), a = null, o = this.beginCommit(m("op.renameSheet"));
2534
+ }), a = null, o = this.beginCommit(_("op.renameSheet"));
2535
2535
  try {
2536
2536
  let e = this._updateSheetRef(r, i);
2537
2537
  this._adjustSheetNamesIfRequired(), this._sheetOnNameChange.forEach((e, t) => {
@@ -2543,22 +2543,22 @@ var Wt, $ = class e extends ee {
2543
2543
  return a;
2544
2544
  }
2545
2545
  _setSheetVisibility(e, t = R.Visibility.Visible, n) {
2546
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2547
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2546
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2547
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2548
2548
  let r = this._getSheetRef(e, R.Visibility.VeryHidden);
2549
2549
  if (!r) return null;
2550
2550
  if (t === r.visibility) return;
2551
2551
  let i = null, a = "";
2552
- t === R.Visibility.Visible ? a = m("op.unhideSheet") : t === R.Visibility.Hidden ? a = m("op.hideSheet") : t === R.Visibility.VeryHidden && (a = m("op.veryHideSheet"));
2552
+ t === R.Visibility.Visible ? a = _("op.unhideSheet") : t === R.Visibility.Hidden ? a = _("op.hideSheet") : t === R.Visibility.VeryHidden && (a = _("op.veryHideSheet"));
2553
2553
  let o = this.beginCommit(a);
2554
2554
  try {
2555
2555
  let e = this._getState().sheetRefsVisible;
2556
- if (t !== R.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new f(s("error.workbook.sheetOne"));
2556
+ if (t !== R.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new h(u("error.workbook.sheetOne"));
2557
2557
  let a = {
2558
2558
  ...r,
2559
2559
  visibility: t
2560
- }, c = -1;
2561
- t !== R.Visibility.Visible && (c = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== R.Visibility.Visible && this._adjustRemoveSelectionIfRequired(c, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
2560
+ }, s = -1;
2561
+ t !== R.Visibility.Visible && (s = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== R.Visibility.Visible && this._adjustRemoveSelectionIfRequired(s, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
2562
2562
  } catch (e) {
2563
2563
  throw o.rollback(), e;
2564
2564
  }
@@ -2567,19 +2567,19 @@ var Wt, $ = class e extends ee {
2567
2567
  }), this._emitter.notify("onSheetsChange"), i;
2568
2568
  }
2569
2569
  _moveSheet(e, t, n) {
2570
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2571
- if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2572
- let r = null, i = this.beginCommit(s("op.moveSheetNamed", { name: e.name }));
2570
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2571
+ if (!this.getProtection().isStructureAllowed()) throw new h(u("error.workbook.protection"));
2572
+ let r = null, i = this.beginCommit(u("op.moveSheetNamed", { name: e.name }));
2573
2573
  try {
2574
2574
  let a = this._getState(), o = a.sheetRefsVisible;
2575
- if (t < 0 || t > o.length - 1) throw new f(`Invalid to index: ${t}`);
2575
+ if (t < 0 || t > o.length - 1) throw new h(`Invalid to index: ${t}`);
2576
2576
  let s = {
2577
2577
  view: this.getView(),
2578
2578
  activeSheetId: this.getView().getActiveSheetId()
2579
2579
  }, c = a.sheetRefsAll, l = this._getOffsetForId(e.id, c), u = this._getOffsetForId(o[t].id, c);
2580
2580
  if (l === u) return;
2581
- let d = c[l], p = [...c];
2582
- p.splice(l, 1), p.splice(u, 0, d), this._updateSheetRefStates(p), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2581
+ let d = c[l], f = [...c];
2582
+ f.splice(l, 1), f.splice(u, 0, d), this._updateSheetRefStates(f), this._adjustSheetNamesIfRequired(), this._sheetOnIndexChange.forEach((e, t) => {
2583
2583
  t >= l && t <= u && e();
2584
2584
  }), this._emitter.notify("onSheetsChange"), r = d.sheet, i.commit({
2585
2585
  ...n,
@@ -2595,9 +2595,9 @@ var Wt, $ = class e extends ee {
2595
2595
  return r;
2596
2596
  }
2597
2597
  _setSelectedSheet(e) {
2598
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2598
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2599
2599
  let t = this._getSheetRef(e);
2600
- if (!t) throw new f(X(e));
2600
+ if (!t) throw new h(X(e));
2601
2601
  let n = null;
2602
2602
  return t.visibility !== R.Visibility.Visible && this._setSheetVisibility(t, R.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2603
2603
  }
@@ -2666,8 +2666,8 @@ var Wt, $ = class e extends ee {
2666
2666
  };
2667
2667
  }
2668
2668
  _fromJSON(e) {
2669
- if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new f(s("error.workbook.sheetOne"));
2670
- e.theme && (this._theme = new re(e.theme), this._styles.setTheme(this._theme));
2669
+ if (this._emitter.notify("onBeforeLoad", { params: e }), this._initState(), !e.sheets || e.sheets.length === 0) throw new h(u("error.workbook.sheetOne"));
2670
+ e.theme && (this._theme = new v(e.theme), this._styles.setTheme(this._theme));
2671
2671
  let t = this._strings.beginPersist(), n = this._resources.beginPersist(), r = this._styles.beginPersist();
2672
2672
  try {
2673
2673
  t.fromJSON(e.strings), n.fromJSON(e.resources), r.fromJSON(e.styles), e.date1904 && (this._isDate1904 = !0), e.locale && (this._locale = e.locale), e.localeOverrides && (this._localeOverrides = e.localeOverrides), e.view ||= {};
@@ -2696,14 +2696,14 @@ var Wt, $ = class e extends ee {
2696
2696
  getBuiltInFunctions: () => t._calculation?.getFunctions(),
2697
2697
  onAdd: (e, n) => {
2698
2698
  let r = t._calculation;
2699
- r.getStatus() !== ie.Status.Off && r.start().then(async () => {
2699
+ r.getStatus() !== y.Status.Off && r.start().then(async () => {
2700
2700
  let e = n.getFunctions().getItems({ type: "formula" }), t = e.length;
2701
2701
  for (let n = 0; n < t; n++) {
2702
2702
  let t = e[n];
2703
2703
  try {
2704
2704
  await this._calculation.getFunctions().add(t);
2705
2705
  } catch (e) {
2706
- o.error(e?.message ?? String(e), e);
2706
+ l.error(e?.message ?? String(e), e);
2707
2707
  }
2708
2708
  }
2709
2709
  }).catch(() => {});
@@ -2712,7 +2712,7 @@ var Wt, $ = class e extends ee {
2712
2712
  });
2713
2713
  }
2714
2714
  async toJSON(e) {
2715
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2715
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2716
2716
  await Promise.resolve(this._starting), await this._emitter.notify("onBeforeSave", { async: !0 });
2717
2717
  let t = { sheets: [] }, n = e?.ignoreStyles ?? !1;
2718
2718
  if (!n) {
@@ -2777,13 +2777,13 @@ var Wt, $ = class e extends ee {
2777
2777
  this._ownResources, this._ownNames && this._names.close(), this._ownCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._listenerLanguage?.(), this._listenerOrigin?.(), this._closed = !0;
2778
2778
  }
2779
2779
  beginCommit(e) {
2780
- if (this._closed) throw Error(s("error.workbook.modelClosed"));
2780
+ if (this._closed) throw Error(u("error.workbook.modelClosed"));
2781
2781
  return this._beginCommit(typeof e == "string" ? { description: e } : e);
2782
2782
  }
2783
2783
  doBatch(e, t) {
2784
2784
  let n = this;
2785
2785
  return t = typeof t == "string" ? { description: t } : {
2786
- description: m("op.updateWorkbook"),
2786
+ description: _("op.updateWorkbook"),
2787
2787
  ...t
2788
2788
  }, this._transactions.doBatch(e, t, (e, t) => {
2789
2789
  e.getDepth() === 0 && (n._lastTransactionUUID = e.getId());
@@ -2798,7 +2798,7 @@ var Wt, $ = class e extends ee {
2798
2798
  _getState() {
2799
2799
  return this._transactions.getState(this._id);
2800
2800
  }
2801
- _updateState(e, t = m("op.updateWorkbook"), n) {
2801
+ _updateState(e, t = _("op.updateWorkbook"), n) {
2802
2802
  if (!e) return;
2803
2803
  let r = this._beginCommit(t);
2804
2804
  try {
@@ -2897,7 +2897,7 @@ var Wt, $ = class e extends ee {
2897
2897
  }
2898
2898
  }, Yt = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", Xt = new class {
2899
2899
  constructor() {
2900
- this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new A(this), this._registry = new Jt(), this._defaultStore = new Ye(() => this.getWriteFormats(), () => this.getReadFormats());
2900
+ this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new x(this), this._registry = new Jt(), this._defaultStore = new Ye(() => this.getWriteFormats(), () => this.getReadFormats());
2901
2901
  }
2902
2902
  getBackingStore() {
2903
2903
  return this._backingStore ?? this._defaultStore;
@@ -2956,12 +2956,12 @@ var Wt, $ = class e extends ee {
2956
2956
  search: i,
2957
2957
  ext: a
2958
2958
  }))[0];
2959
- if (!o) throw new f(s("error.io.readFormatUnavailable", { format: i ?? a }));
2960
- let c = n?.typedCreateWorkbookOptions, l = c ? Object.keys(c).find((e) => e.toLowerCase() === o.key.toLowerCase()) : void 0, u = {
2959
+ if (!o) throw new h(u("error.io.readFormatUnavailable", { format: i ?? a }));
2960
+ let s = n?.typedCreateWorkbookOptions, c = s ? Object.keys(s).find((e) => e.toLowerCase() === o.key.toLowerCase()) : void 0, l = {
2961
2961
  ...n,
2962
- ...l === void 0 ? void 0 : c[l]
2962
+ ...c === void 0 ? void 0 : s[c]
2963
2963
  };
2964
- delete u.typedCreateWorkbookOptions, delete u.source;
2964
+ delete l.typedCreateWorkbookOptions, delete l.source;
2965
2965
  let d = r ?? new z(t.absolutePath ?? null, {
2966
2966
  name: t.name ?? null,
2967
2967
  format: o.key,
@@ -2971,24 +2971,24 @@ var Wt, $ = class e extends ee {
2971
2971
  r instanceof z && r.update({
2972
2972
  format: o.key,
2973
2973
  size: t.size ?? null
2974
- }), u.createWorkbookOptions = {
2975
- ...u.createWorkbookOptions || {},
2974
+ }), l.createWorkbookOptions = {
2975
+ ...l.createWorkbookOptions || {},
2976
2976
  origin: d
2977
- }, u.readonly !== void 0 && (u.createWorkbookOptions = {
2978
- readonly: u.readonly,
2979
- ...u.createWorkbookOptions
2980
- }, delete u.readonly), u.calcOnly && (u.createWorkbookOptions = {
2977
+ }, l.readonly !== void 0 && (l.createWorkbookOptions = {
2978
+ readonly: l.readonly,
2979
+ ...l.createWorkbookOptions
2980
+ }, delete l.readonly), l.calcOnly && (l.createWorkbookOptions = {
2981
2981
  disableLoadAutoFit: !0,
2982
- ...u.createWorkbookOptions
2982
+ ...l.createWorkbookOptions
2983
2983
  });
2984
- let p = await this._decrypt(e, d, u);
2985
- if (p === null) return null;
2986
- e = p.bytes;
2987
- let m = u?.progress?.onStart?.bind(u.progress);
2988
- m && await Promise.resolve(m(d, t.size));
2984
+ let f = await this._decrypt(e, d, l);
2985
+ if (f === null) return null;
2986
+ e = f.bytes;
2987
+ let p = l?.progress?.onStart?.bind(l.progress);
2988
+ p && await Promise.resolve(p(d, t.size));
2989
2989
  try {
2990
- let t = await this._readArrayBuffer(e, o, u);
2991
- return p.password !== null && d.setPassword(p.password), u?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
2990
+ let t = await this._readArrayBuffer(e, o, l);
2991
+ return f.password !== null && d.setPassword(f.password), l?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
2992
2992
  params: {
2993
2993
  workbook: t,
2994
2994
  origin: d
@@ -2996,7 +2996,7 @@ var Wt, $ = class e extends ee {
2996
2996
  transactional: !1
2997
2997
  }), t;
2998
2998
  } catch (e) {
2999
- throw u?.progress?.onError?.(e), u?.progress?.onComplete?.(null), e;
2999
+ throw l?.progress?.onError?.(e), l?.progress?.onComplete?.(null), e;
3000
3000
  }
3001
3001
  }
3002
3002
  async _decrypt(e, t, n) {
@@ -3005,38 +3005,38 @@ var Wt, $ = class e extends ee {
3005
3005
  bytes: e,
3006
3006
  password: null
3007
3007
  };
3008
- let o = null, c = async (t) => {
3008
+ let i = null, a = async (t) => {
3009
3009
  try {
3010
- return o = await r.decode(e, t), !0;
3010
+ return i = await r.decode(e, t), !0;
3011
3011
  } catch (e) {
3012
- if (!(e instanceof i)) throw e;
3012
+ if (!(e instanceof s)) throw e;
3013
3013
  return !1;
3014
3014
  }
3015
3015
  };
3016
- if (n?.password && await c(n.password)) return {
3017
- bytes: o,
3016
+ if (n?.password && await a(n.password)) return {
3017
+ bytes: i,
3018
3018
  password: n.password
3019
3019
  };
3020
3020
  if (!n?.onPassword) {
3021
3021
  let e = t.getName();
3022
- throw new a(e ? s("error.io.passwordRequired", { name: e }) : s("error.io.passwordRequiredUnnamed"));
3022
+ throw new c(e ? u("error.io.passwordRequired", { name: e }) : u("error.io.passwordRequiredUnnamed"));
3023
3023
  }
3024
- let l = await Promise.resolve(n.onPassword({
3024
+ let o = await Promise.resolve(n.onPassword({
3025
3025
  origin: t,
3026
3026
  encryption: r.key,
3027
- validate: c
3027
+ validate: a
3028
3028
  }));
3029
- if (l == null) return null;
3030
- if (o !== null || await c(l)) return {
3031
- bytes: o,
3032
- password: l
3029
+ if (o == null) return null;
3030
+ if (i !== null || await a(o)) return {
3031
+ bytes: i,
3032
+ password: o
3033
3033
  };
3034
- throw new i(s("error.io.passwordIncorrect"));
3034
+ throw new s(u("error.io.passwordIncorrect"));
3035
3035
  }
3036
3036
  async writeArrayBuffer(e, t) {
3037
3037
  if (!t?.format) throw Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
3038
3038
  let n = (await this._registry.getWriteFormats({ search: t.format }))[0];
3039
- if (!n) throw new f(s("error.io.writeFormatUnavailable", { format: t.format }));
3039
+ if (!n) throw new h(u("error.io.writeFormatUnavailable", { format: t.format }));
3040
3040
  return this._writeArrayBuffer(e, n, t);
3041
3041
  }
3042
3042
  async write(e, t, n) {
@@ -3044,30 +3044,30 @@ var Wt, $ = class e extends ee {
3044
3044
  if (!e.isIWorkbook) throw Error("Invalid workbook model provided. Must be an instance of IWorkbook.");
3045
3045
  let r = n, i = null;
3046
3046
  typeof t == "string" ? i = this.getOrigin(t) : Yt(t) ? i = t : t && (r = t);
3047
- let o, c = !i, l = i ?? e.getOrigin(), u = l.getFormat();
3048
- if ((r?.format || u) && (o = (await this._registry.getWriteFormats({ search: r?.format ?? u ?? void 0 }))[0]), o || l.getPath() && l.canWrite() && l.getExtension() || (o = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !o) throw new f(s("error.io.writeFormatUnresolved"));
3047
+ let a, o = !i, s = i ?? e.getOrigin(), l = s.getFormat();
3048
+ if ((r?.format || l) && (a = (await this._registry.getWriteFormats({ search: r?.format ?? l ?? void 0 }))[0]), a || s.getPath() && s.canWrite() && s.getExtension() || (a = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !a) throw new h(u("error.io.writeFormatUnresolved"));
3049
3049
  if (i && typeof t == "string") {
3050
3050
  let e = i.getPath();
3051
- e && !E(e) && i.update?.({ path: `${e}.${o.exts[0]}` });
3051
+ e && !D(e) && i.update?.({ path: `${e}.${a.exts[0]}` });
3052
3052
  }
3053
- let d = l.getEncryption(), p = e.getOrigin?.(), m = (l instanceof z ? l.getPassword() : null) ?? (p instanceof z ? p.getPassword() : null), h = l.isEncrypted() || (p?.isEncrypted() ?? !1), g = r?.password === void 0 ? m ?? (h ? void 0 : null) : r.password, _ = null;
3053
+ let d = s.getEncryption(), f = e.getOrigin?.(), p = (s instanceof z ? s.getPassword() : null) ?? (f instanceof z ? f.getPassword() : null), m = s.isEncrypted() || (f?.isEncrypted() ?? !1), g = r?.password === void 0 ? p ?? (m ? void 0 : null) : r.password, _ = null;
3054
3054
  if (g === void 0) {
3055
- if (h) {
3056
- let e = l.getName();
3057
- throw new a(e ? s("error.io.passwordRequiredSave", { name: e }) : s("error.io.passwordRequiredSaveUnnamed"));
3055
+ if (m) {
3056
+ let e = s.getName();
3057
+ throw new c(e ? u("error.io.passwordRequiredSave", { name: e }) : u("error.io.passwordRequiredSaveUnnamed"));
3058
3058
  }
3059
- } else if (g !== null && (_ = await this._registry.getEncryption(d), !_)) throw new f(s("error.io.encryptionUnavailable"));
3060
- let v = `${l.getName() ?? s("workbook.defaultName")}.${o.exts[0]}`, y = r?.progress, b = !1, x = this, S = null, C = {
3059
+ } else if (g !== null && (_ = await this._registry.getEncryption(d), !_)) throw new h(u("error.io.encryptionUnavailable"));
3060
+ let v = `${s.getName() ?? u("workbook.defaultName")}.${a.exts[0]}`, y = r?.progress, b = !1, x = this, S = null, C = {
3061
3061
  workbook: e,
3062
- format: o,
3063
- origin: l,
3062
+ format: a,
3063
+ origin: s,
3064
3064
  suggestedName: v,
3065
3065
  prompt: r?.prompt,
3066
3066
  async encode(t) {
3067
3067
  await (async () => {
3068
- b || (b = !0, y?.onStart && await Promise.resolve(y.onStart(l)));
3068
+ b || (b = !0, y?.onStart && await Promise.resolve(y.onStart(s)));
3069
3069
  })(), S = e.getTransactions?.()?.getCurrentCommit() ?? S;
3070
- let n = t ? (await x._registry.getWriteFormats({ search: t }))[0] ?? o : o, i = await x._writeArrayBuffer(e, n, r);
3070
+ let n = t ? (await x._registry.getWriteFormats({ search: t }))[0] ?? a : a, i = await x._writeArrayBuffer(e, n, r);
3071
3071
  return _ ? _.encode(i, g) : i;
3072
3072
  }
3073
3073
  }, w = null;
@@ -3082,7 +3082,7 @@ var Wt, $ = class e extends ee {
3082
3082
  workbook: e,
3083
3083
  origin: w,
3084
3084
  commitId: t?.getId() ?? null,
3085
- save: c
3085
+ save: o
3086
3086
  },
3087
3087
  transactional: !1
3088
3088
  });
@@ -3090,7 +3090,7 @@ var Wt, $ = class e extends ee {
3090
3090
  y?.onComplete && await Promise.resolve(y.onComplete(w));
3091
3091
  } catch (e) {
3092
3092
  let t = e instanceof Error ? e : Error(String(e));
3093
- throw y?.onError && await Promise.resolve(y.onError(t)), y?.onComplete && await Promise.resolve(y.onComplete(null)), t instanceof f ? t : Error(s("error.io.writeFailed", { reason: t.message }), { cause: e });
3093
+ throw y?.onError && await Promise.resolve(y.onError(t)), y?.onComplete && await Promise.resolve(y.onComplete(null)), t instanceof h ? t : Error(u("error.io.writeFailed", { reason: t.message }), { cause: e });
3094
3094
  }
3095
3095
  return w;
3096
3096
  }
@@ -3098,7 +3098,7 @@ var Wt, $ = class e extends ee {
3098
3098
  if (!t) throw Error("A target must be provided for writeAs (use write(workbook) for a plain save).");
3099
3099
  let r = e?.getOrigin?.();
3100
3100
  if (!(r instanceof z)) return this.write(e, t, n);
3101
- let i = typeof t == "string" ? t : t.getPath(), a = i && E(i)?.toLowerCase() || null, o = a ? (await this._registry.getWriteFormats({ search: a }))[0]?.key ?? a : null, s = {
3101
+ let i = typeof t == "string" ? t : t.getPath(), a = i && D(i)?.toLowerCase() || null, o = a ? (await this._registry.getWriteFormats({ search: a }))[0]?.key ?? a : null, s = {
3102
3102
  path: r.getPath(),
3103
3103
  name: r.getName(),
3104
3104
  format: r.getFormat(),
@@ -3119,7 +3119,7 @@ var Wt, $ = class e extends ee {
3119
3119
  return c;
3120
3120
  }
3121
3121
  _stripExtension(e) {
3122
- let t = E(e);
3122
+ let t = D(e);
3123
3123
  return t ? e.slice(0, e.length - t.length - 1) : e;
3124
3124
  }
3125
3125
  _baseName(e) {
@@ -3139,13 +3139,13 @@ var Wt, $ = class e extends ee {
3139
3139
  async _readArrayBuffer(e, t, n) {
3140
3140
  if (!e) throw Error("ArrayBuffer must be specified.");
3141
3141
  if (!t) throw Error("format must be specified.");
3142
- if (e.byteLength === 0) return new Kt(n?.createWorkbookOptions);
3142
+ if (e.byteLength === 0) return new $(n?.createWorkbookOptions);
3143
3143
  let r, i = t.handler;
3144
3144
  if (!i) throw Error(`Unable to resolve a read handler for '${t.key}'.`);
3145
3145
  try {
3146
3146
  r = await i(e, n);
3147
3147
  } catch (e) {
3148
- throw e instanceof f ? e : new f(s("error.io.readFailed", {
3148
+ throw e instanceof h ? e : new h(u("error.io.readFailed", {
3149
3149
  format: t.description ?? t.key,
3150
3150
  reason: e?.message ?? String(e)
3151
3151
  }), { cause: e });
@@ -3163,12 +3163,12 @@ var Wt, $ = class e extends ee {
3163
3163
  suffix: e,
3164
3164
  place: (e, t) => t ? `${t}/${e}` : e
3165
3165
  })), Rt ||= {}, zt ||= {};
3166
- var Zt = h({ nowWithPrecision: () => Qt });
3166
+ var Zt = e({ nowWithPrecision: () => Qt });
3167
3167
  function Qt(e = 6e4) {
3168
3168
  return new Date(Math.floor(Date.now() / e) * e);
3169
3169
  }
3170
- Wt ||= {};
3171
- var $t = class extends Oe {
3170
+ Gt ||= {};
3171
+ var $t = class extends Re {
3172
3172
  constructor(e) {
3173
3173
  super(e);
3174
3174
  }
@@ -3185,4 +3185,4 @@ var $t = class extends Oe {
3185
3185
  }, super._initializeOptions(e);
3186
3186
  }
3187
3187
  };
3188
- export { Ke as _, bt as a, ot as c, lt as d, Pt as f, St as g, et as h, G as i, qe as l, Kt as m, W as n, it as o, Nt as p, $t as r, Xt as s, Zt as t, z as u };
3188
+ export { Ke as _, bt as a, ot as c, lt as d, Pt as f, St as g, et as h, W as i, qe as l, $ as m, U as n, K as o, Nt as p, $t as r, Xt as s, Zt as t, z as u };