@sheetxl/studio-vanilla 0.4.13 → 0.4.14

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 (314) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/10IK8MFijJb-yvV6.cjs +7 -0
  3. package/browser/cjs/1bCMnueqxHW3rn0c.cjs +6 -0
  4. package/browser/cjs/AnJTeEGq7VP4T1b7.cjs +161 -0
  5. package/browser/cjs/BH3MYcOF7rxLX3Bk.cjs +15 -0
  6. package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +6 -0
  7. package/browser/cjs/BU5k1OZewc-Z-kR9.cjs +6 -0
  8. package/browser/cjs/BlwK-VslgEVH2cgX.cjs +145 -0
  9. package/browser/cjs/Bm9fNNMIOLIwq-94.cjs +6 -0
  10. package/browser/cjs/BtiY-n4sGy6WaqNg.cjs +32 -0
  11. package/browser/cjs/BxgDhdrrKrJMEaXd.cjs +6 -0
  12. package/browser/cjs/BzT1y15V6Zs7c_zX.cjs +6 -0
  13. package/browser/cjs/C0ySf2emOB0Mslc-.cjs +6 -0
  14. package/browser/cjs/CE5U7gB5L-PE17gV.cjs +6 -0
  15. package/browser/cjs/CHd9vauNLHnOLflj.cjs +6 -0
  16. package/browser/cjs/CJZtyunL_qaXFylY.cjs +12 -0
  17. package/browser/cjs/CJoJ19i1z94kndlS.cjs +19 -0
  18. package/browser/cjs/CNcsGELwCAV-A5oH.cjs +16 -0
  19. package/browser/cjs/CTuM_aZX8wZICUe_.cjs +6 -0
  20. package/browser/cjs/CWW_yQpIswo7DEAT.cjs +6 -0
  21. package/browser/cjs/CXIHULOe7x4DYKXw.cjs +12 -0
  22. package/browser/cjs/CYLnJHryQcQO4XoG.cjs +6 -0
  23. package/browser/cjs/C_mbaid3FQ52usBI.cjs +6 -0
  24. package/browser/cjs/Cj_1qUo5cZ3FnOpK.cjs +6 -0
  25. package/browser/cjs/Cl0XSnWVDoaHTIlF.cjs +6 -0
  26. package/browser/cjs/CnLdhURNkVXo_0Eg.cjs +6 -0
  27. package/browser/cjs/CpIIsygD5mnJyl47.cjs +1501 -0
  28. package/browser/cjs/CpRfx14is2_4Wgp3.cjs +6 -0
  29. package/browser/cjs/Cuq8Nim-ol5Gdehe.cjs +6 -0
  30. package/browser/cjs/D4NcrJlqcLExwCNT.cjs +124 -0
  31. package/browser/cjs/D4vbOk4hD8-b-c10.cjs +6 -0
  32. package/browser/cjs/D5YUIQeOcujtq6XS.cjs +7 -0
  33. package/browser/cjs/D6uIvR-6Y690_Em2.cjs +11 -0
  34. package/browser/cjs/DAbScbuk-sjZXMIC.cjs +11 -0
  35. package/browser/cjs/DBNXGIWfZmgb_sHL.cjs +6 -0
  36. package/browser/cjs/DCd5OZXj2IRbxEF2.cjs +6 -0
  37. package/browser/cjs/DFNisISrsMnZrV4B.cjs +6 -0
  38. package/browser/cjs/DIYOARVcGtRjKpjZ.cjs +6 -0
  39. package/browser/cjs/DL4HgriZ3TY2K-QP.cjs +6 -0
  40. package/browser/cjs/DPbzY4ppgKPrdbWc.cjs +6 -0
  41. package/browser/cjs/DQGdVVTxixgptLdj.cjs +366 -0
  42. package/browser/cjs/DWzQm8Q32qNP7qKL.cjs +6 -0
  43. package/browser/cjs/D_7RtbQABH1zdcjr.cjs +7 -0
  44. package/browser/cjs/D_Q0s9KLnWHwKxTK.cjs +6 -0
  45. package/browser/cjs/DdTcwutSPJMeCIv3.cjs +6 -0
  46. package/browser/cjs/DlnKrZRyxBfbqaTi.cjs +13 -0
  47. package/browser/cjs/DtpB0PMEtamaB-Hv.cjs +6 -0
  48. package/browser/cjs/Dv8SE05ABKNLPY6A.cjs +6 -0
  49. package/browser/cjs/DxBLU16_E62Umowp.cjs +6 -0
  50. package/browser/cjs/VU_KaqGTjvnisS9e.cjs +6 -0
  51. package/browser/cjs/bS_BOH9cvVCFy36v.cjs +6 -0
  52. package/browser/cjs/dbUUj8LyIitsdYpk.cjs +6 -0
  53. package/browser/cjs/eZGLUWbfY3JdZRM5.cjs +6 -0
  54. package/browser/cjs/index.cjs +3 -4
  55. package/browser/cjs/mBk4Z4LZ65b3f58_.cjs +6 -0
  56. package/browser/cjs/rIOsSIPwxoXlIawS.cjs +6 -0
  57. package/browser/cjs/sMBG5eQ3-iacLXUm.cjs +6 -0
  58. package/browser/cjs/tShlMZrIxsGZSeHX.cjs +42 -0
  59. package/browser/cjs/xDqIifM_--oXscCV.cjs +6 -0
  60. package/browser/cjs/yBSdtSSuNERefFhR.cjs +15 -0
  61. package/{cdn/assets/DHydjLSnijEgtpyU.js → browser/esm/4eRu4yzXkvCBip8J.mjs} +1 -1
  62. package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
  63. package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
  64. package/{cdn/assets/C3EFzvmp0DcC_HAx.js → browser/esm/B4ji-HZTY0uvH8r7.mjs} +1 -1
  65. package/{cdn/assets/D-5VYBO5_VEh6fEW.js → browser/esm/B8TNpfJ8ymQcPriE.mjs} +1 -1
  66. package/browser/esm/BBDu-GNDE7ZA-1sJ.mjs +56 -0
  67. package/{cdn/assets/BwpBFv8Ks2ka07ch.js → browser/esm/BF5nlSYZ38RJ0dPX.mjs} +1 -1
  68. package/{cdn/assets/B1Iys8a964LGNZKf.js → browser/esm/BHy77Km4i4t5U7ka.mjs} +1 -1
  69. package/{cdn/assets/BMiA9p1uOrwnooVT.js → browser/esm/BIUVt79NHXdZx2Dz.mjs} +1 -1
  70. package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
  71. package/{cdn/assets/BUwNyHytF9St68tJ.js → browser/esm/BPen6C7JE2sWVgdi.mjs} +1 -1
  72. package/{cdn/assets/DvFNLgeMJ9LdQROu.js → browser/esm/BUqd1uVUNoWmepd2.mjs} +54 -55
  73. package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
  74. package/{cdn/assets/BL6TUDSeou6wPejW.js → browser/esm/BZxAttR2mi9td3k1.mjs} +1 -1
  75. package/{cdn/assets/C4vStn7wNlvrxdsp.js → browser/esm/B_pEA9HeXKvEOCdS.mjs} +1 -1
  76. package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
  77. package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
  78. package/{cdn/assets/BciokME96sykArSM.js → browser/esm/BfFDvyaRcdKS0wPD.mjs} +1 -1
  79. package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
  80. package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
  81. package/{cdn/assets/CrLrvmlJhYpNpXqR.js → browser/esm/BvYUsRgBXLSuaQ-S.mjs} +1 -1
  82. package/{cdn/assets/C-Z8wvIy20kJ7R-k.js → browser/esm/BzE-61bmpRQzEVPt.mjs} +1 -1
  83. package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
  84. package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
  85. package/{cdn/assets/XysyS9rk9tFdbzZh.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
  86. package/{cdn/assets/DXtbonLk2ESfF4Dh.js → browser/esm/CITPwlsNzJvv551I.mjs} +1 -1
  87. package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
  88. package/{cdn/assets/C5q0qaKi2eeDgoO8.js → browser/esm/CN73n4VDayKh_l1J.mjs} +1 -1
  89. package/{cdn/assets/B2RAJJJFkcaWUfUW.js → browser/esm/CcARDY0PFSWkqsG9.mjs} +1 -1
  90. package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
  91. package/{cdn/assets/BBJxLS-wB_nXRnI2.js → browser/esm/Cmtx4dAVZrwq5cVO.mjs} +1 -1
  92. package/browser/esm/Crza3kRJdEVylOfk.mjs +29 -0
  93. package/browser/esm/D3L89e08b7ewR6mt.mjs +21 -0
  94. package/browser/esm/D4G17ip9xxOX5jDd.mjs +3934 -0
  95. package/{cdn/assets/CuNqTH3P8mCglRiz.js → browser/esm/D9eVsUckA6bWBHni.mjs} +1 -1
  96. package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
  97. package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
  98. package/{cdn/assets/DFHruAftzuzBZ71r.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
  99. package/{cdn/assets/9-cIcj6CRJx5HTn9.js → browser/esm/DHPHhaCxihdR9Hl6.mjs} +1 -1
  100. package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +47 -0
  101. package/browser/esm/DQLk_UmdpJBt-zZi.mjs +5582 -0
  102. package/browser/esm/DR7oVoNSe0FFWHOr.mjs +48 -0
  103. package/{cdn/assets/CKA4s2hlzSnrdWSD.js → browser/esm/DVRMAeHUj0-TY-vK.mjs} +1 -1
  104. package/{cdn/assets/N3pWBoccPrTedAw-.js → browser/esm/DXIWAG-DUKHzNlRl.mjs} +1 -1
  105. package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
  106. package/{cdn/assets/KDGtuIzSpkf1vsmH.js → browser/esm/Dft4BSeY0bp0A6z0.mjs} +1 -1
  107. package/browser/esm/DgO85Q5iHe-ZmvtQ.mjs +633 -0
  108. package/browser/esm/DwRHGEuscm3FvnkM.mjs +1665 -0
  109. package/browser/esm/HyTvrvH0vItPFnFG.mjs +472 -0
  110. package/{cdn/assets/F6zW9Vj410C4yRVG.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +167 -166
  111. package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
  112. package/{cdn/assets/5XdpCWQ6AcxZ6oY1.js → browser/esm/aLv-xujBO4X6ilhV.mjs} +1 -1
  113. package/{cdn/assets/Gz4u4ewyWfB-Pf-a.js → browser/esm/c9fba0RuWGogsH0X.mjs} +4 -5
  114. package/browser/esm/index.mjs +6 -2
  115. package/{cdn/assets/BxblmHGC7YxZcuak.js → browser/esm/jkSJc6Omxbf-rPQY.mjs} +1 -1
  116. package/{cdn/assets/CT0d1P-Aav62lUvV.js → browser/esm/uuCmCmYQQXgwyRSd.mjs} +1 -1
  117. package/{cdn/assets/DD3csu4pddGtMp3n.js → browser/esm/w3TGaFTjdsc4XTcz.mjs} +537 -539
  118. package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
  119. package/{cdn/assets/CsorxCiOoe7qX9j1.js → browser/esm/wxvli1IH1NkfqE6-.mjs} +1 -1
  120. package/cdn/assets/{C9eQW5GKgPRmKKgJ.js → 0fI22OQK5IczUH6s.js} +2 -2
  121. package/cdn/assets/4eRu4yzXkvCBip8J.js +10 -0
  122. package/cdn/assets/5HYy7pIZxQRDUQl-.js +50 -0
  123. package/cdn/assets/6oc_f4xkoSmftsRd.js +22 -0
  124. package/cdn/assets/73gcCsbqgbW3KIoA.js +1346 -0
  125. package/cdn/assets/B3TPDOzYf_VRBIr6.js +2177 -0
  126. package/cdn/assets/B4HW_cy7gbE01jar.js +390 -0
  127. package/cdn/assets/B4ji-HZTY0uvH8r7.js +10 -0
  128. package/cdn/assets/B7Ky6m4VWP8vxhPt.js +1702 -0
  129. package/cdn/assets/B8TNpfJ8ymQcPriE.js +24 -0
  130. package/cdn/assets/BEfetwH6zTr6B51I.js +3755 -0
  131. package/cdn/assets/BF5nlSYZ38RJ0dPX.js +10 -0
  132. package/cdn/assets/BHy77Km4i4t5U7ka.js +10 -0
  133. package/cdn/assets/BIUVt79NHXdZx2Dz.js +10 -0
  134. package/cdn/assets/BPen6C7JE2sWVgdi.js +10 -0
  135. package/cdn/assets/BS1p7DgoyO-WkvB8.js +41 -0
  136. package/cdn/assets/BZxAttR2mi9td3k1.js +10 -0
  137. package/cdn/assets/B_pEA9HeXKvEOCdS.js +10 -0
  138. package/cdn/assets/BdFNxdtES-3_yQ9R.js +421 -0
  139. package/cdn/assets/BfFDvyaRcdKS0wPD.js +10 -0
  140. package/cdn/assets/{quOP5QFyTT9soNIl.js → BiKaXKU3o287mgkN.js} +1 -1
  141. package/cdn/assets/BvYUsRgBXLSuaQ-S.js +10 -0
  142. package/cdn/assets/BzE-61bmpRQzEVPt.js +10 -0
  143. package/cdn/assets/{CV8UjJPDVplXjK1E.js → C0yI-QYraFhnJUdD.js} +19 -19
  144. package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
  145. package/cdn/assets/{BDE7FUo2oiivrvBL.js → C3FTuqvfGalOVHql.js} +15 -15
  146. package/cdn/assets/C3W0xsNrt-Was9g-.js +84 -0
  147. package/cdn/assets/C8rQWD8C7ccUHNZL.js +3934 -0
  148. package/cdn/assets/CITPwlsNzJvv551I.js +10 -0
  149. package/cdn/assets/CN73n4VDayKh_l1J.js +10 -0
  150. package/cdn/assets/{0j_nQmV1Bb0lJ6sB.js → CWkF-50YF43t7qge.js} +4 -4
  151. package/cdn/assets/{8U2WVdbZHYCBnd9L.js → CaKPs_ILqLIWfUUN.js} +13 -13
  152. package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
  153. package/cdn/assets/{Xwyp21e7L5fTeb_y.js → Cdx6LrqtHZKbwl63.js} +186 -184
  154. package/cdn/assets/{6JtXguBKwGj6dqfy.js → ChB-XZno7w9v221u.js} +385 -387
  155. package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
  156. package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
  157. package/cdn/assets/{BlYoycYtR-sUp0iC.js → CrBywNOOyPHSBoTT.js} +4 -4
  158. package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
  159. package/cdn/assets/{DPQqTIMsRLhMxPIy.js → DBpku3D2DSTmW4II.js} +2 -2
  160. package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
  161. package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
  162. package/cdn/assets/{DXHirQMr483hJBil.js → DMWARnjq06oQnfrL.js} +15 -15
  163. package/cdn/assets/{BNh9nSR83reiVMKt.js → DRa6yXWuTlAjuaKT.js} +2 -2
  164. package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
  165. package/{browser/esm/CVeyOpbAhaBhDRye.mjs → cdn/assets/DXIWAG-DUKHzNlRl.js} +7 -2
  166. package/cdn/assets/{0e9wDKSn4SFxSmP5.js → DYowHOSLHcADsXuK.js} +3 -3
  167. package/cdn/assets/{f3_QXO8z0p-q4nJo.js → DZNoPrlxULASVlOi.js} +4 -4
  168. package/cdn/assets/DaUJajqmQYuM0Gew.js +150 -0
  169. package/cdn/assets/DcdQwhlGoI1knRUy.js +46 -0
  170. package/cdn/assets/Dft4BSeY0bp0A6z0.js +10 -0
  171. package/cdn/assets/DgO85Q5iHe-ZmvtQ.js +633 -0
  172. package/cdn/assets/{CR01MBraUPYPpwy4.js → Dm0hrXCbV7DITOhi.js} +2 -2
  173. package/cdn/assets/{BgnlshX157Ob6RLs.js → DnWjhq4ZlgIuFcii.js} +2 -2
  174. package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
  175. package/cdn/assets/DzyNujjbHLXo9UmH.js +1466 -0
  176. package/cdn/assets/{B_2bXmyji3Dr7LRM.js → EYTSqAG9YOdb1vKx.js} +21832 -23233
  177. package/cdn/assets/{BVYDmdUGWvMG5gNK.js → Ux2jUY_EwSsYBCov.js} +1 -1
  178. package/cdn/assets/{Bsa9-Itkf_SdDBM9.js → XoKiuP2ZFq0cNGkH.js} +4 -4
  179. package/cdn/assets/{2mxiQm6dELsqQoX7.js → Zi3E5Kzxw2FPtLVL.js} +1376 -1418
  180. package/cdn/assets/aLv-xujBO4X6ilhV.js +10 -0
  181. package/cdn/assets/jkSJc6Omxbf-rPQY.js +10 -0
  182. package/cdn/assets/uuCmCmYQQXgwyRSd.js +10 -0
  183. package/cdn/assets/wV8riZWKJE7AoKQk.js +1365 -0
  184. package/cdn/assets/wxvli1IH1NkfqE6-.js +10 -0
  185. package/cdn/index.js +2 -2
  186. package/cdn/loader.js +1 -1
  187. package/package.json +3 -3
  188. package/types/index.d.ts +1 -0
  189. package/browser/cjs/-DkdmW3XP1ICRY25.cjs +0 -7
  190. package/browser/cjs/B-KQs1Bf48nEucW7.cjs +0 -7
  191. package/browser/cjs/B1xnY7pDnbnNzknG.cjs +0 -7
  192. package/browser/cjs/B6A5w_aWHkigBc6j.cjs +0 -7
  193. package/browser/cjs/B9jxuOg1CXcmbi9J.cjs +0 -110
  194. package/browser/cjs/BAYjkr4LmsWRLoPr.cjs +0 -7
  195. package/browser/cjs/BG2uV2RpxrfZyCuV.cjs +0 -7
  196. package/browser/cjs/BGCPG4Ip5ZijUQwi.cjs +0 -7
  197. package/browser/cjs/BHTlBOQH-tPGoKgo.cjs +0 -7
  198. package/browser/cjs/BLBNzBvRVl9VLynf.cjs +0 -7
  199. package/browser/cjs/BLh6E7ER8mrM6vc_.cjs +0 -7
  200. package/browser/cjs/BMaq_2S3IFrE5XeJ.cjs +0 -7
  201. package/browser/cjs/BO7Pbclmywy-QCSV.cjs +0 -13
  202. package/browser/cjs/BPlthbyKkqCDjgxO.cjs +0 -7
  203. package/browser/cjs/BUGo0mXtBfFOmQXV.cjs +0 -7
  204. package/browser/cjs/BdHdXCz_K1djQgI4.cjs +0 -7
  205. package/browser/cjs/BfNkb1jDZkJf3wRA.cjs +0 -7
  206. package/browser/cjs/BfdQd2UEOlOc5iF3.cjs +0 -7
  207. package/browser/cjs/Bi9KvObgq_kJ_pjC.cjs +0 -7
  208. package/browser/cjs/BjPpJjnABDd3_WOZ.cjs +0 -7
  209. package/browser/cjs/BsSNzyN8kOGCKzso.cjs +0 -7
  210. package/browser/cjs/BtCcoaKKb8ZDnliG.cjs +0 -7
  211. package/browser/cjs/BwHquG4sSd7OJjxz.cjs +0 -7
  212. package/browser/cjs/BywNBbTVRYbgRbNI.cjs +0 -7
  213. package/browser/cjs/C04Qr5P8uyQ6Vcml.cjs +0 -7
  214. package/browser/cjs/C42ZEPRmW9Wcd7tI.cjs +0 -7
  215. package/browser/cjs/CBpt1PBR1VfBegko.cjs +0 -7
  216. package/browser/cjs/CED8Az5C8GWF7pUT.cjs +0 -7
  217. package/browser/cjs/CbD4Wa5QLTdRCYcz.cjs +0 -7
  218. package/browser/cjs/CbILz9Skl6lWf6yR.cjs +0 -7
  219. package/browser/cjs/CoFQQqIzuvS9PM77.cjs +0 -7
  220. package/browser/cjs/CpDNo2Lhwr5ZHECs.cjs +0 -7
  221. package/browser/cjs/CsamfGfFsItvSgo_.cjs +0 -7
  222. package/browser/cjs/Cx3kn5gBsQ-1bORi.cjs +0 -7
  223. package/browser/cjs/CxLvGnG44-qNI36G.cjs +0 -7
  224. package/browser/cjs/D-xyWit7jxctQCpR.cjs +0 -7
  225. package/browser/cjs/D4XQsK7d7DRctaOO.cjs +0 -7
  226. package/browser/cjs/D9rVEA1BdB0JZwhE.cjs +0 -7
  227. package/browser/cjs/DES2NmIRVZg-HXgs.cjs +0 -7
  228. package/browser/cjs/DFxeLNhACFIHb0nv.cjs +0 -7
  229. package/browser/cjs/DIv1SrLYeyVwcaxE.cjs +0 -7
  230. package/browser/cjs/DJ6L43osbaMzEV5K.cjs +0 -7
  231. package/browser/cjs/DMjLN_HDktNzzUB8.cjs +0 -7
  232. package/browser/cjs/DVPfPZCFjmYu3xyn.cjs +0 -7
  233. package/browser/cjs/DhSlaiQXxEOVtZkA.cjs +0 -7
  234. package/browser/cjs/Dh_dFnagz7dMZlGh.cjs +0 -7
  235. package/browser/cjs/DpF6vgGka2d-RKkb.cjs +0 -10
  236. package/browser/cjs/DtY0Jzlwnr_YKnV4.cjs +0 -7
  237. package/browser/cjs/DwyyFI1Ix0uc0Qoz.cjs +0 -7
  238. package/browser/cjs/Dy5_viRzFls9rOzN.cjs +0 -7
  239. package/browser/cjs/GkINjQ8Te3GKi2mx.cjs +0 -7
  240. package/browser/cjs/aN3KCqswA1SdJIMq.cjs +0 -7
  241. package/browser/cjs/hLJbgylpETByV4wc.cjs +0 -7
  242. package/browser/cjs/qumqKlVHFx89iLeu.cjs +0 -7
  243. package/browser/cjs/rKZjTYQ0WpTriIv6.cjs +0 -7
  244. package/browser/cjs/xjKotAOVt3JH36U7.cjs +0 -7
  245. package/browser/cjs/ymbPxio09Fw7I2BW.cjs +0 -7
  246. package/browser/esm/2P5dQT7wZToOh-n9.mjs +0 -7
  247. package/browser/esm/4GgcUVhUmQmiv9Ha.mjs +0 -110
  248. package/browser/esm/7_x68v6PpvRDox_Z.mjs +0 -7
  249. package/browser/esm/9icgSuuzXq6mlgM8.mjs +0 -7
  250. package/browser/esm/B354iAatN9y9AIIP.mjs +0 -7
  251. package/browser/esm/B5EVyoxm3aSlAnxN.mjs +0 -7
  252. package/browser/esm/BD8rE7MUxuHXsdcf.mjs +0 -7
  253. package/browser/esm/BGFWI1a1PmU8_hCE.mjs +0 -7
  254. package/browser/esm/BI6JAQCQx1V0F2aC.mjs +0 -7
  255. package/browser/esm/BIYg30d_9HaluFFz.mjs +0 -7
  256. package/browser/esm/BKL-uyBp_OE47lXd.mjs +0 -7
  257. package/browser/esm/BMwJCtLAYUW8wExX.mjs +0 -13
  258. package/browser/esm/BNOfK-lGWF2S8vQE.mjs +0 -7
  259. package/browser/esm/Ba433v6lQUMtECiY.mjs +0 -7
  260. package/browser/esm/BbZWfDW2LUyjqUDy.mjs +0 -7
  261. package/browser/esm/C238uBmZN1XXqMUb.mjs +0 -7
  262. package/browser/esm/C34whwRkHO0lhq4-.mjs +0 -7
  263. package/browser/esm/C6FEpAqSZoW5Hgte.mjs +0 -7
  264. package/browser/esm/COlW5ULL29SUKN1Z.mjs +0 -7
  265. package/browser/esm/CRyxOj2xPj9qe9LK.mjs +0 -7
  266. package/browser/esm/CVyVvtlJuCTn4MDh.mjs +0 -7
  267. package/browser/esm/CapeIfjWq-_BHMlE.mjs +0 -7
  268. package/browser/esm/CcQqGNgK2CsgNtuD.mjs +0 -7
  269. package/browser/esm/CdZSxrk3k1Lx6G8W.mjs +0 -7
  270. package/browser/esm/CdchvB_wAbv_6Whw.mjs +0 -7
  271. package/browser/esm/Cf8eDl3Tu5NAWWwG.mjs +0 -7
  272. package/browser/esm/Cfq9tttQlsKvfaCr.mjs +0 -7
  273. package/browser/esm/ClR6uLJoM-xKVYEc.mjs +0 -7
  274. package/browser/esm/Cnl_e-EYkZ3CLbi2.mjs +0 -7
  275. package/browser/esm/CtRS2ZCPF7IH_mXe.mjs +0 -7
  276. package/browser/esm/CuV-bwi1vcXAqFUY.mjs +0 -7
  277. package/browser/esm/CwVE0qelO_xgf-l1.mjs +0 -7
  278. package/browser/esm/D1Dzlta8ZVy08ng6.mjs +0 -7
  279. package/browser/esm/D1TjRQiHLWhpl-dl.mjs +0 -7
  280. package/browser/esm/D8BJ-y3ulgO_ezrj.mjs +0 -10
  281. package/browser/esm/DTDXNEbHVnnZONNL.mjs +0 -7
  282. package/browser/esm/DTWfi8Dl-c2s5moT.mjs +0 -7
  283. package/browser/esm/DYVBXcu1r5KRLB-1.mjs +0 -7
  284. package/browser/esm/DZjWyWMvr2XHQrBg.mjs +0 -7
  285. package/browser/esm/DhHK4QmASvgAq9Xy.mjs +0 -7
  286. package/browser/esm/DoFV2S6Su86IN5Ul.mjs +0 -7
  287. package/browser/esm/Dq3ybkgattcCsF_4.mjs +0 -7
  288. package/browser/esm/DqWoZ4TjweoJWX3o.mjs +0 -7
  289. package/browser/esm/DtXxHirBm16ldE1l.mjs +0 -7
  290. package/browser/esm/DtuWZG6c_8vKRSdr.mjs +0 -7
  291. package/browser/esm/FBG8XXdIMd9PfUIo.mjs +0 -7
  292. package/browser/esm/Nh7JiwvF01PblHQ0.mjs +0 -7
  293. package/browser/esm/PVYiH9vBQM6rqXI4.mjs +0 -7
  294. package/browser/esm/U5-LDZQ0qkJ2Y-p8.mjs +0 -7
  295. package/browser/esm/XhQDWZu47oe6bwHh.mjs +0 -7
  296. package/browser/esm/_BjU6TtI-mQfFpfy.mjs +0 -7
  297. package/browser/esm/gOUfyCw957TzcbNB.mjs +0 -7
  298. package/browser/esm/lmkbfs9sNc7f0oe5.mjs +0 -7
  299. package/browser/esm/naa0kcRwxHEYGaQB.mjs +0 -7
  300. package/browser/esm/qxOkQutRxmAi1vRh.mjs +0 -7
  301. package/browser/esm/tMSro0g2GM5BBTIH.mjs +0 -7
  302. package/cdn/assets/B-kFRtzNNkf4_SiP.js +0 -1701
  303. package/cdn/assets/BAzGoI9gE2G3F3on.js +0 -637
  304. package/cdn/assets/BLqaorJ5Wl-1YOoy.js +0 -3875
  305. package/cdn/assets/BQON-ToGsIBPrPkM.js +0 -1371
  306. package/cdn/assets/CHTspRZD2v_dU_eV.js +0 -22
  307. package/cdn/assets/CMBDD1Mjde6UL5ep.js +0 -84
  308. package/cdn/assets/CwdMjMPFdIs8SAV0.js +0 -1358
  309. package/cdn/assets/DUtu7r6CzW4dtW3E.js +0 -50
  310. package/cdn/assets/Dr5X-ng9wbwUWVr4.js +0 -41
  311. package/cdn/assets/Dvj7UEckqOBrgs9i.js +0 -3947
  312. package/cdn/assets/KtKlo5mM4kTTfFgi.js +0 -46
  313. package/cdn/assets/NTINjW8JjyZudT8s.js +0 -13449
  314. package/cdn/assets/R9RwlorPWfftoboH.js +0 -2373
@@ -1,42 +1,42 @@
1
- import { g as Ht, h as Ft, i as Ss, j as Cs, k as Gt, l as at, W as Pe, r as ks, f as As, _ as ss, R as Ds, A as Es, I as Ps, m as Os, n as hs, o as Is } from "./B_2bXmyji3Dr7LRM.js";
1
+ import { L as Ht, K as Ft, g as vs, W as Ss, Q as Qt, h as at, D as Ee, Y as Cs, f as ks, l as es, m as As, n as Ds, $ as Es, o as Ps, p as cs, q as Os } from "./BbW_1O3cEhZ4aSgS.mjs";
2
2
  /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.14
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
- const is = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Vs = new RegExp(`^[${is}][-${is}.0-9·̀-ͯ‿-⁀]*$`, "u");
9
- function us(i) {
8
+ const ss = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Is = new RegExp(`^[${ss}][-${ss}.0-9·̀-ͯ‿-⁀]*$`, "u");
9
+ function hs(i) {
10
10
  return i >= 65 && i <= 90 || i >= 97 && i <= 122 || i === 58 || i === 95 || i === 8204 || i === 8205 || i >= 192 && i <= 214 || i >= 216 && i <= 246 || i >= 248 && i <= 767 || i >= 880 && i <= 893 || i >= 895 && i <= 8191 || i >= 8304 && i <= 8591 || i >= 11264 && i <= 12271 || i >= 12289 && i <= 55295 || i >= 63744 && i <= 64975 || i >= 65008 && i <= 65533 || i >= 65536 && i <= 983039;
11
11
  }
12
- const os = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ls = new RegExp(`^[${os}][-${os}.0-9·̀-ͯ‿-⁀]*$`, "u");
13
- function ds(i) {
12
+ const is = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Vs = new RegExp(`^[${is}][-${is}.0-9·̀-ͯ‿-⁀]*$`, "u");
13
+ function us(i) {
14
14
  return i >= 65 && i <= 90 || i === 95 || i >= 97 && i <= 122 || i >= 192 && i <= 214 || i >= 216 && i <= 246 || i >= 248 && i <= 767 || i >= 880 && i <= 893 || i >= 895 && i <= 8191 || i >= 8204 && i <= 8205 || i >= 8304 && i <= 8591 || i >= 11264 && i <= 12271 || i >= 12289 && i <= 55295 || i >= 63744 && i <= 64975 || i >= 65008 && i <= 65533 || i >= 65536 && i <= 983039;
15
15
  }
16
16
  const q = function(i) {
17
17
  return i === 32 || i === 10 || i === 13 || i === 9;
18
- }, Ns = function(i) {
18
+ }, Ls = function(i) {
19
19
  return i >= 32 && i <= 55295 || i === 10 || i === 13 || i === 9 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
20
- }, ce = us, rs = function(i) {
21
- return us(i) || i >= 48 && i <= 57 || i === 45 || i === 46 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
22
- }, ps = [32, 10, 13, 9], Rs = Vs, $s = function(i) {
20
+ }, le = hs, os = function(i) {
21
+ return hs(i) || i >= 48 && i <= 57 || i === 45 || i === 46 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
22
+ }, ds = [32, 10, 13, 9], Ns = Is, Rs = function(i) {
23
23
  return i >= 1 && i <= 55295 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
24
- }, Ms = ds, js = function(i) {
25
- return ds(i) || i === 45 || i === 46 || i >= 48 && i <= 57 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
26
- }, Hs = Ls, ye = "http://www.w3.org/XML/1998/namespace", Kt = "http://www.w3.org/2000/xmlns/", Fs = { __proto__: null, xml: ye, xmlns: Kt }, Xs = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, O = -1, lt = -2, B = 13, Xt = 33, it = 10, vt = 60, Qt = 61, M = 62, F = 63, Jt = 93, Te = (i) => i === 34 || i === 39, gs = [34, 39], Bs = [...gs, 91, M], Ws = [...gs, vt, Jt], _s = [Qt, F, ...ps], qs = [...ps, M, 38, vt];
27
- function Oe(i, t, s) {
24
+ }, $s = us, Ms = function(i) {
25
+ return us(i) || i === 45 || i === 46 || i >= 48 && i <= 57 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
26
+ }, js = Vs, Te = "http://www.w3.org/XML/1998/namespace", Yt = "http://www.w3.org/2000/xmlns/", Hs = { __proto__: null, xml: Te, xmlns: Yt }, Fs = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, O = -1, lt = -2, B = 13, Xt = 33, it = 10, St = 60, Jt = 61, M = 62, F = 63, Kt = 93, me = (i) => i === 34 || i === 39, ps = [34, 39], Xs = [...ps, 91, M], Bs = [...ps, St, Kt], Ws = [Jt, F, ...ds], _s = [...ds, M, 38, St];
27
+ function Pe(i, t, s) {
28
28
  switch (t) {
29
29
  case "xml":
30
- s !== ye && i.fail(`xml prefix must be bound to ${ye}.`);
30
+ s !== Te && i.fail(`xml prefix must be bound to ${Te}.`);
31
31
  break;
32
32
  case "xmlns":
33
- s !== Kt && i.fail(`xmlns prefix must be bound to ${Kt}.`);
33
+ s !== Yt && i.fail(`xmlns prefix must be bound to ${Yt}.`);
34
34
  }
35
35
  switch (s) {
36
- case Kt:
37
- i.fail(t === "" ? `the default namespace may not be set to ${s}.` : `may not assign a prefix (even "xmlns") to the URI ${Kt}.`);
36
+ case Yt:
37
+ i.fail(t === "" ? `the default namespace may not be set to ${s}.` : `may not assign a prefix (even "xmlns") to the URI ${Yt}.`);
38
38
  break;
39
- case ye:
39
+ case Te:
40
40
  switch (t) {
41
41
  case "xml":
42
42
  break;
@@ -48,18 +48,18 @@ function Oe(i, t, s) {
48
48
  }
49
49
  }
50
50
  }
51
- const zs = (i) => Hs.test(i), Us = (i) => Rs.test(i), ns = { xmldecl: "xmldeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
52
- class Gs {
51
+ const qs = (i) => js.test(i), zs = (i) => Ns.test(i), rs = { xmldecl: "xmldeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
52
+ class Us {
53
53
  constructor(t) {
54
54
  this.i = 0, this.prevI = 0, this.opt = t ?? {}, this.fragmentOpt = !!this.opt.fragment;
55
55
  const s = this.xmlnsOpt = !!this.opt.xmlns;
56
56
  if (this.trackPosition = this.opt.position !== !1, this.fileName = this.opt.fileName, s) {
57
- this.nameStartCheck = Ms, this.nameCheck = js, this.isName = zs, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Fs };
57
+ this.nameStartCheck = $s, this.nameCheck = Ms, this.isName = qs, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Hs };
58
58
  const o = this.opt.additionalNamespaces;
59
59
  o != null && (function(n, a) {
60
- for (const c of Object.keys(a)) Oe(n, c, a[c]);
60
+ for (const c of Object.keys(a)) Pe(n, c, a[c]);
61
61
  }(this, o), Object.assign(this.ns, o));
62
- } else this.nameStartCheck = ce, this.nameCheck = rs, this.isName = Us, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
62
+ } else this.nameStartCheck = le, this.nameCheck = os, this.isName = zs, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
63
63
  this.stateTable = [this.sBegin, this.sBeginWhitespace, this.sDoctype, this.sDoctypeQuote, this.sDTD, this.sDTDQuoted, this.sDTDOpenWaka, this.sDTDOpenWakaBang, this.sDTDComment, this.sDTDCommentEnding, this.sDTDCommentEnded, this.sDTDPI, this.sDTDPIEnding, this.sText, this.sEntity, this.sOpenWaka, this.sOpenWakaBang, this.sComment, this.sCommentEnding, this.sCommentEnded, this.sCData, this.sCDataEnding, this.sCDataEnding2, this.sPIFirstChar, this.sPIRest, this.sPIBody, this.sPIEnding, this.sXMLDeclNameStart, this.sXMLDeclName, this.sXMLDeclEq, this.sXMLDeclValueStart, this.sXMLDeclValue, this.sXMLDeclSeparator, this.sXMLDeclEnding, this.sOpenTag, this.sOpenTagSlash, this.sAttrib, this.sAttribName, this.sAttribNameSawWhite, this.sAttribValue, this.sAttribValueQuoted, this.sAttribValueClosed, this.sAttribValueUnquoted, this.sCloseTag, this.sCloseTagSawWhite], this._init();
64
64
  }
65
65
  get closed() {
@@ -74,7 +74,7 @@ class Gs {
74
74
  if (this.opt.forceXMLVersion === !0) throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
75
75
  s = "1.0";
76
76
  }
77
- this.setXMLVersion(s), this.positionAtNewLine = 0, this.doctype = !1, this._closed = !1, this.xmlDecl = { version: void 0, encoding: void 0, standalone: void 0 }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Xs), this.readyHandler?.();
77
+ this.setXMLVersion(s), this.positionAtNewLine = 0, this.doctype = !1, this._closed = !1, this.xmlDecl = { version: void 0, encoding: void 0, standalone: void 0 }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Fs), this.readyHandler?.();
78
78
  }
79
79
  get position() {
80
80
  return this.chunkPosition + this.i;
@@ -83,10 +83,10 @@ class Gs {
83
83
  return this.position - this.positionAtNewLine;
84
84
  }
85
85
  on(t, s) {
86
- this[ns[t]] = s;
86
+ this[rs[t]] = s;
87
87
  }
88
88
  off(t) {
89
- this[ns[t]] = void 0;
89
+ this[rs[t]] = void 0;
90
90
  }
91
91
  makeError(t) {
92
92
  let s = this.fileName ?? "";
@@ -192,7 +192,7 @@ class Gs {
192
192
  for (; ; ) {
193
193
  const o = this.getCode();
194
194
  if (o === O) return this.name += t.slice(s), O;
195
- if (!rs(o)) return this.name += t.slice(s, this.prevI), o === lt ? it : o;
195
+ if (!os(o)) return this.name += t.slice(s, this.prevI), o === lt ? it : o;
196
196
  }
197
197
  }
198
198
  skipSpaces() {
@@ -202,7 +202,7 @@ class Gs {
202
202
  }
203
203
  }
204
204
  setXMLVersion(t) {
205
- this.currentXMLVersion = t, t === "1.0" ? (this.isChar = Ns, this.getCode = this.getCode10) : (this.isChar = $s, this.getCode = this.getCode11);
205
+ this.currentXMLVersion = t, t === "1.0" ? (this.isChar = Ls, this.getCode = this.getCode10) : (this.isChar = Rs, this.getCode = this.getCode11);
206
206
  }
207
207
  sBegin() {
208
208
  this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = 1;
@@ -210,7 +210,7 @@ class Gs {
210
210
  sBeginWhitespace() {
211
211
  const t = this.i, s = this.skipSpaces();
212
212
  switch (this.prevI !== t && (this.xmlDeclPossible = !1), s) {
213
- case vt:
213
+ case St:
214
214
  if (this.state = 15, this.text.length !== 0) throw new Error("no-empty text at start");
215
215
  break;
216
216
  case O:
@@ -220,7 +220,7 @@ class Gs {
220
220
  }
221
221
  }
222
222
  sDoctype() {
223
- const t = this.captureTo(Bs);
223
+ const t = this.captureTo(Xs);
224
224
  switch (t) {
225
225
  case M:
226
226
  this.doctypeHandler?.(this.text), this.text = "", this.state = B, this.doctype = !0;
@@ -228,7 +228,7 @@ class Gs {
228
228
  case O:
229
229
  break;
230
230
  default:
231
- this.text += String.fromCodePoint(t), t === 91 ? this.state = 4 : Te(t) && (this.state = 3, this.q = t);
231
+ this.text += String.fromCodePoint(t), t === 91 ? this.state = 4 : me(t) && (this.state = 3, this.q = t);
232
232
  }
233
233
  }
234
234
  sDoctypeQuote() {
@@ -236,8 +236,8 @@ class Gs {
236
236
  this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.q = null, this.state = 2);
237
237
  }
238
238
  sDTD() {
239
- const t = this.captureTo(Ws);
240
- t !== O && (this.text += String.fromCodePoint(t), t === Jt ? this.state = 2 : t === vt ? this.state = 6 : Te(t) && (this.state = 5, this.q = t));
239
+ const t = this.captureTo(Bs);
240
+ t !== O && (this.text += String.fromCodePoint(t), t === Kt ? this.state = 2 : t === St ? this.state = 6 : me(t) && (this.state = 5, this.q = t));
241
241
  }
242
242
  sDTDQuoted() {
243
243
  const t = this.q;
@@ -302,7 +302,7 @@ class Gs {
302
302
  }
303
303
  sOpenWaka() {
304
304
  const t = this.getCode();
305
- if (ce(t)) this.state = 34, this.unget(), this.xmlDeclPossible = !1;
305
+ if (le(t)) this.state = 34, this.unget(), this.xmlDeclPossible = !1;
306
306
  else switch (t) {
307
307
  case 47:
308
308
  this.state = 43, this.xmlDeclPossible = !1;
@@ -344,11 +344,11 @@ class Gs {
344
344
  t !== M ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = B;
345
345
  }
346
346
  sCData() {
347
- this.captureToChar(Jt) && (this.state = 21);
347
+ this.captureToChar(Kt) && (this.state = 21);
348
348
  }
349
349
  sCDataEnding() {
350
350
  const t = this.getCodeNorm();
351
- t === Jt ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
351
+ t === Kt ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
352
352
  }
353
353
  sCDataEnding2() {
354
354
  const t = this.getCodeNorm();
@@ -356,7 +356,7 @@ class Gs {
356
356
  case M:
357
357
  this.cdataHandler?.(this.text), this.text = "", this.state = B;
358
358
  break;
359
- case Jt:
359
+ case Kt:
360
360
  this.text += "]";
361
361
  break;
362
362
  default:
@@ -399,9 +399,9 @@ class Gs {
399
399
  t !== F ? t !== O && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Xt;
400
400
  }
401
401
  sXMLDeclName() {
402
- const t = this.captureTo(_s);
402
+ const t = this.captureTo(Ws);
403
403
  if (t === F) return this.state = Xt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
404
- if (q(t) || t === Qt) {
404
+ if (q(t) || t === Jt) {
405
405
  if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
406
406
  case 0:
407
407
  this.fail("did not expect any more name/value pairs.");
@@ -412,18 +412,18 @@ class Gs {
412
412
  default:
413
413
  this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
414
414
  }
415
- this.state = t === Qt ? 30 : 29;
415
+ this.state = t === Jt ? 30 : 29;
416
416
  }
417
417
  }
418
418
  sXMLDeclEq() {
419
419
  const t = this.getCodeNorm();
420
420
  if (t === F) return this.state = Xt, void this.fail("XML declaration is incomplete.");
421
- q(t) || (t !== Qt && this.fail("value required."), this.state = 30);
421
+ q(t) || (t !== Jt && this.fail("value required."), this.state = 30);
422
422
  }
423
423
  sXMLDeclValueStart() {
424
424
  const t = this.getCodeNorm();
425
425
  if (t === F) return this.state = Xt, void this.fail("XML declaration is incomplete.");
426
- q(t) || (Te(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
426
+ q(t) || (me(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
427
427
  }
428
428
  sXMLDeclValue() {
429
429
  const t = this.captureTo([this.q, F]);
@@ -472,27 +472,27 @@ class Gs {
472
472
  }
473
473
  sAttrib() {
474
474
  const t = this.skipSpaces();
475
- t !== O && (ce(t) ? (this.unget(), this.state = 37) : t === M ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
475
+ t !== O && (le(t) ? (this.unget(), this.state = 37) : t === M ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
476
476
  }
477
477
  sAttribName() {
478
478
  const t = this.captureNameChars();
479
- t === Qt ? this.state = 39 : q(t) ? this.state = 38 : t === M ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== O && this.fail("disallowed character in attribute name.");
479
+ t === Jt ? this.state = 39 : q(t) ? this.state = 38 : t === M ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== O && this.fail("disallowed character in attribute name.");
480
480
  }
481
481
  sAttribNameSawWhite() {
482
482
  const t = this.skipSpaces();
483
483
  switch (t) {
484
484
  case O:
485
485
  return;
486
- case Qt:
486
+ case Jt:
487
487
  this.state = 39;
488
488
  break;
489
489
  default:
490
- this.fail("attribute without value."), this.text = "", this.name = "", t === M ? this.openTag() : ce(t) ? (this.unget(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
490
+ this.fail("attribute without value."), this.text = "", this.name = "", t === M ? this.openTag() : le(t) ? (this.unget(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
491
491
  }
492
492
  }
493
493
  sAttribValue() {
494
494
  const t = this.getCodeNorm();
495
- Te(t) ? (this.q = t, this.state = 40) : q(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unget());
495
+ me(t) ? (this.q = t, this.state = 40) : q(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unget());
496
496
  }
497
497
  sAttribValueQuoted() {
498
498
  const { q: t, chunk: s } = this;
@@ -507,7 +507,7 @@ class Gs {
507
507
  case 9:
508
508
  this.text += `${s.slice(o, this.prevI)} `, o = this.i;
509
509
  break;
510
- case vt:
510
+ case St:
511
511
  return this.text += s.slice(o, this.prevI), void this.fail("disallowed character.");
512
512
  case O:
513
513
  return void (this.text += s.slice(o));
@@ -515,15 +515,15 @@ class Gs {
515
515
  }
516
516
  sAttribValueClosed() {
517
517
  const t = this.getCodeNorm();
518
- q(t) ? this.state = 36 : t === M ? this.openTag() : t === 47 ? this.state = 35 : ce(t) ? (this.fail("no whitespace between attributes."), this.unget(), this.state = 37) : this.fail("disallowed character in attribute name.");
518
+ q(t) ? this.state = 36 : t === M ? this.openTag() : t === 47 ? this.state = 35 : le(t) ? (this.fail("no whitespace between attributes."), this.unget(), this.state = 37) : this.fail("disallowed character in attribute name.");
519
519
  }
520
520
  sAttribValueUnquoted() {
521
- const t = this.captureTo(qs);
521
+ const t = this.captureTo(_s);
522
522
  switch (t) {
523
523
  case 38:
524
524
  this.state = 14, this.entityReturnState = 42;
525
525
  break;
526
- case vt:
526
+ case St:
527
527
  this.fail("disallowed character.");
528
528
  break;
529
529
  case O:
@@ -551,7 +551,7 @@ class Gs {
551
551
  let { i: t, forbiddenState: s } = this;
552
552
  const { chunk: o, textHandler: n } = this;
553
553
  t: for (; ; ) switch (this.getCode()) {
554
- case vt:
554
+ case St:
555
555
  if (this.state = 15, n !== void 0) {
556
556
  const { text: a } = this, c = o.slice(t, this.prevI);
557
557
  a.length !== 0 ? (n(a + c), this.text = "") : c.length !== 0 && n(c);
@@ -561,7 +561,7 @@ class Gs {
561
561
  case 38:
562
562
  this.state = 14, this.entityReturnState = B, n !== void 0 && (this.text += o.slice(t, this.prevI)), s = 0;
563
563
  break t;
564
- case Jt:
564
+ case Kt:
565
565
  switch (s) {
566
566
  case 0:
567
567
  s = 1;
@@ -597,7 +597,7 @@ class Gs {
597
597
  t: for (; ; ) {
598
598
  const a = this.getCode();
599
599
  switch (a) {
600
- case vt:
600
+ case St:
601
601
  if (this.state = 15, o !== void 0) {
602
602
  const { text: c } = this, m = s.slice(t, this.prevI);
603
603
  c.length !== 0 ? (o(c + m), this.text = "") : m.length !== 0 && o(m);
@@ -623,10 +623,10 @@ class Gs {
623
623
  const { prefix: o, local: n } = this.qname(t), a = { name: t, prefix: o, local: n, value: s };
624
624
  if (this.attribList.push(a), this.attributeHandler?.(a), o === "xmlns") {
625
625
  const c = s.trim();
626
- this.currentXMLVersion === "1.0" && c === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[n] = c, Oe(this, n, c);
626
+ this.currentXMLVersion === "1.0" && c === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[n] = c, Pe(this, n, c);
627
627
  } else if (t === "xmlns") {
628
628
  const c = s.trim();
629
- this.topNS[""] = c, Oe(this, "", c);
629
+ this.topNS[""] = c, Pe(this, "", c);
630
630
  }
631
631
  }
632
632
  pushAttribPlain(t, s) {
@@ -670,7 +670,7 @@ class Gs {
670
670
  for (const a of t) {
671
671
  const { name: c, prefix: m, local: v } = a;
672
672
  let b, x;
673
- m === "" ? (b = c === "xmlns" ? Kt : "", x = c) : (b = this.resolve(m), b === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`), b = m), x = `{${b}}${v}`), n.has(x) && this.fail(`duplicate attribute: ${x}.`), n.add(x), a.uri = b, o[c] = a;
673
+ m === "" ? (b = c === "xmlns" ? Yt : "", x = c) : (b = this.resolve(m), b === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`), b = m), x = `{${b}}${v}`), n.has(x) && this.fail(`duplicate attribute: ${x}.`), n.add(x), a.uri = b, o[c] = a;
674
674
  }
675
675
  this.attribList = [];
676
676
  }
@@ -710,16 +710,16 @@ class Gs {
710
710
  return t[1] === "x" && /^#x[0-9a-f]+$/i.test(t) ? s = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (s = parseInt(t.slice(1), 10)), this.isChar(s) ? String.fromCodePoint(s) : (this.fail("malformed character entity."), `&${t};`);
711
711
  }
712
712
  }
713
- var Ie, yt;
714
- (yt = Ie || (Ie = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, yt.parseStream = async (i, t, s) => {
715
- const o = new Gs({ position: !1, ...s });
713
+ var Oe, Tt;
714
+ (Tt = Oe || (Oe = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, Tt.parseStream = async (i, t, s) => {
715
+ const o = new Us({ position: !1, ...s });
716
716
  let n;
717
- if (t.onOpenTagStart && o.on(yt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(yt.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(yt.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(yt.Events.Attribute, t.onAttribute), t.onText && o.on(yt.Events.Text, t.onText), t.onError && o.on(yt.Events.Error, t.onError), t.onEnd) {
717
+ if (t.onOpenTagStart && o.on(Tt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(Tt.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(Tt.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(Tt.Events.Attribute, t.onAttribute), t.onText && o.on(Tt.Events.Text, t.onText), t.onError && o.on(Tt.Events.Error, t.onError), t.onEnd) {
718
718
  t.onEnd;
719
719
  const a = () => {
720
720
  n = t.onEnd();
721
721
  };
722
- o.on(yt.Events.End, a);
722
+ o.on(Tt.Events.End, a);
723
723
  }
724
724
  for (; ; ) {
725
725
  const { value: a, done: c } = await i.read();
@@ -735,7 +735,7 @@ const w = (i) => i === !0 || i === "1" || i === "on" || i === "true" || i !== !1
735
735
  const t = parseFloat(i);
736
736
  return isNaN(t) ? null : t;
737
737
  }, k = null;
738
- class Zs {
738
+ class Gs {
739
739
  constructor() {
740
740
  this._registeredVisitors = /* @__PURE__ */ new Map();
741
741
  }
@@ -751,8 +751,7 @@ class Zs {
751
751
  let I = v.attributes[T];
752
752
  if (f) {
753
753
  if (Array.isArray(f)) {
754
- for (let H = 0; H < f.length; H++)
755
- if (I == null || (I = f[H](I), I == null)) return;
754
+ for (let H = 0; H < f.length; H++) if (I == null || (I = f[H](I), I == null)) return;
756
755
  } else if (I == null || (I = f(I), I == null)) return;
757
756
  }
758
757
  return I;
@@ -799,7 +798,7 @@ class Zs {
799
798
  }, onEnd: s };
800
799
  }
801
800
  }
802
- const as = (i, t, s, o = null) => {
801
+ const ns = (i, t, s, o = null) => {
803
802
  if (!i) return null;
804
803
  let n = i;
805
804
  n.startsWith("/") && (n = n.substring(1));
@@ -814,7 +813,7 @@ const as = (i, t, s, o = null) => {
814
813
  console.warn(v);
815
814
  }
816
815
  return o?.parsedRefs?.set(i, m), m;
817
- }, Ve = (i, t, s, o, n = null) => {
816
+ }, Ie = (i, t, s, o, n = null) => {
818
817
  if (!i) return null;
819
818
  let a = i;
820
819
  a.startsWith("/") && (a = a.substring(1));
@@ -839,11 +838,11 @@ const as = (i, t, s, o = null) => {
839
838
  if (!b) continue;
840
839
  let x = b;
841
840
  x.startsWith("/") && (x = x.substring(1));
842
- const D = Ve(x, (y) => t.files[y], s, o, n);
841
+ const D = Ie(x, (y) => t.files[y], s, o, n);
843
842
  a.set(x, D);
844
843
  }
845
844
  return a;
846
- }, Qs = ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], ls = (i, t = "dk1") => {
845
+ }, Qs = ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], as = (i, t = "dk1") => {
847
846
  let s;
848
847
  const o = i("auto");
849
848
  o === void 0 || o !== "1" && o !== "true" || (s = t);
@@ -854,8 +853,8 @@ const as = (i, t, s, o = null) => {
854
853
  const c = i("theme");
855
854
  c && (s = Qs[c]);
856
855
  let m = i("tint");
857
- if (m && (s += ` ${Os.AdjustmentType.ETint} ${parseFloat(m)}`), s) return s;
858
- }, Js = (i) => i && i.replace(/^\{([\s\S]+)\}$/, "$1"), si = (i) => i ? hs.roundAccurately(parseFloat(i) / 12700, 4) : null, ii = (i) => i ? hs.roundAccurately(parseFloat(i) / 9525, 1) : null, oi = (i) => parseFloat(i) / 1e3, ri = (i) => parseFloat(i) / 6e4, Ks = (i) => i === "true" || i === "1";
856
+ if (m && (s += ` ${Ps.AdjustmentType.ETint} ${parseFloat(m)}`), s) return s;
857
+ }, Zs = (i) => i && i.replace(/^\{([\s\S]+)\}$/, "$1"), ti = (i) => i ? cs.roundAccurately(parseFloat(i) / 12700, 4) : null, ei = (i) => i ? cs.roundAccurately(parseFloat(i) / 9525, 1) : null, si = (i) => parseFloat(i) / 1e3, ii = (i) => parseFloat(i) / 6e4, Js = (i) => i === "true" || i === "1";
859
858
  class Bt {
860
859
  static {
861
860
  this.Collapsed = 1;
@@ -894,17 +893,17 @@ class Bt {
894
893
  this.ThickTop = 2048;
895
894
  }
896
895
  }
897
- const Ys = (i, t, s) => {
896
+ const Ks = (i, t, s) => {
898
897
  if (i[0].value[0] === i[1].value[0]) return t;
899
- }, cs = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, ni = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (i, t) => {
900
- const { password: s, onWarning: o, createWorkbookOptions: n = {}, ...a } = t ?? {}, c = import("./NTINjW8JjyZudT8s.js"), m = import("./Gz4u4ewyWfB-Pf-a.js");
898
+ }, ls = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, oi = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (i, t) => {
899
+ const { password: s, onWarning: o, createWorkbookOptions: n = {}, ...a } = t ?? {}, c = import("./C28AZ0Rwo79iGg0v.mjs"), m = import("./c9fba0RuWGogsH0X.mjs");
901
900
  let v = null;
902
901
  try {
903
902
  v = new DOMParser();
904
903
  } catch {
905
904
  }
906
905
  let b = null;
907
- v || (b = import("./CwdMjMPFdIs8SAV0.js").then((u) => u.i));
906
+ v || (b = import("./73gcCsbqgbW3KIoA.mjs").then((u) => u.i));
908
907
  let x = null, D = null, y = null;
909
908
  try {
910
909
  const u = await Promise.all([c, m, b]);
@@ -916,501 +915,500 @@ const Ys = (i, t, s) => {
916
915
  const u = x.read(i, { type: "array", sheets: [], cellStyles: !1, bookFiles: !0 });
917
916
  if (!u.Directory) throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
918
917
  u.Directory.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], u.Directory.richdata = ["/xl/richData/rdrichvalue.xml"];
919
- const E = new D.FromOOXMLConverter(), g = v ?? new y.DOMParser(), T = n?.resources ?? new Ss(), f = T.beginPersist(), I = {}, H = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
918
+ const E = new D.FromOOXMLConverter(), g = v ?? new y.DOMParser(), T = n?.resources ?? new vs(), f = T.beginPersist(), I = {}, H = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
920
919
  W.set("richTypes", []);
921
- const ht = /* @__PURE__ */ new Map(), Le = [], he = (P) => u.files[P], be = (P, z) => {
920
+ const ht = /* @__PURE__ */ new Map(), Ve = [], ce = (P) => u.files[P], ye = (P, z) => {
922
921
  const K = P.lastIndexOf("/"), ut = P.substring(0, K + 1) + "_rels/" + P.substring(K + 1, P.length) + ".rels";
923
922
  let dt = z.get(ut);
924
- return dt || (dt = ((R, Se, Ce, ke, Wt = null) => {
923
+ return dt || (dt = ((R, ve, Se, Ce, Wt = null) => {
925
924
  if (!R) return null;
926
- const _t = Ve(R, Se, Ce, ke, Wt);
927
- if (!_t) return null;
928
- const Y = /* @__PURE__ */ new Map(), pt = Object.keys(_t), Ct = pt.length;
929
- for (let xt = 0; xt < Ct; xt++) {
930
- const kt = pt[xt], Yt = _t[kt];
931
- Y.set(kt, Yt);
925
+ const Y = Ie(R, ve, Se, Ce, Wt);
926
+ if (!Y) return null;
927
+ const tt = /* @__PURE__ */ new Map(), bt = Object.keys(Y), _t = bt.length;
928
+ for (let xt = 0; xt < _t; xt++) {
929
+ const qt = bt[xt], kt = Y[qt];
930
+ tt.set(qt, kt);
932
931
  }
933
- return Y;
934
- })(ut, he, g, E, bt), z.set(ut, dt)), dt;
935
- }, ue = (P, z, K, ut = ht) => {
936
- let dt = be(z, ut).get(P), R = dt?.target;
932
+ return tt;
933
+ })(ut, ce, g, E, yt), z.set(ut, dt)), dt;
934
+ }, he = (P, z, K, ut = ht) => {
935
+ let dt = ye(z, ut).get(P), R = dt?.target;
937
936
  if (!R) return null;
938
937
  if (dt.targetMode === "External") return dt.target;
939
- const Se = z.lastIndexOf("/"), Ce = z.substring(0, Se + 1);
940
- R.startsWith("/") || (R = Ce + R), R = ((_t) => {
941
- const Y = _t.split(/\/+/);
942
- return Y.reduce((Ct, xt, kt) => (xt === "." ? Ct.splice(kt, 1) : xt === ".." && Ct.splice(kt - 1, 2), Ct), Y).join("/");
938
+ const ve = z.lastIndexOf("/"), Se = z.substring(0, ve + 1);
939
+ R.startsWith("/") || (R = Se + R), R = ((Y) => {
940
+ const tt = Y.split(/\/+/);
941
+ return tt.reduce((bt, _t, xt) => (_t === "." ? bt.splice(xt, 1) : _t === ".." && bt.splice(xt - 1, 2), bt), tt).join("/");
943
942
  })(R);
944
- const ke = E?.getVisitorParamsState().get("dxfs");
943
+ const Ce = E?.getVisitorParamsState().get("dxfs");
945
944
  let Wt = ut.get(R);
946
- if (!Wt)
947
- if (dt.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
948
- const Y = {};
949
- Wt = Y;
950
- const pt = async () => {
951
- const Ct = ((V, U, ee, _, G, Z, tt) => {
952
- const h = new Zs(), Q = new Cs.TransposedBuilder();
953
- let j = null;
954
- h.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
955
- e.copyTo("ref", k);
956
- } }), h.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
957
- const r = e.getParent();
958
- r.conditionals || (r.conditionals = []), r.conditionals.push(e.getSource());
959
- const l = e.getAttribute("sqref");
960
- l && (e.getSource().ref = l.split(" ").join(",")), e.copyTo("pivot", w);
961
- }, closeTag: (e) => {
962
- const r = e.getSource();
963
- if (r.rule) {
964
- const l = Object.keys(r.rule);
965
- for (let d = 0; d < l.length; d++) {
966
- const S = l[d];
967
- S !== "rule" && (r[S] = r.rule[S]);
945
+ if (!Wt) if (dt.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
946
+ const Y = {};
947
+ Wt = Y;
948
+ const tt = async () => {
949
+ const bt = ((V, U, te, _, G, Q, wt) => {
950
+ const h = new Gs(), Z = new Ss.TransposedBuilder();
951
+ let j = null;
952
+ h.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
953
+ e.copyTo("ref", k);
954
+ } }), h.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
955
+ const r = e.getParent();
956
+ r.conditionals || (r.conditionals = []), r.conditionals.push(e.getSource());
957
+ const l = e.getAttribute("sqref");
958
+ l && (e.getSource().ref = l.split(" ").join(",")), e.copyTo("pivot", w);
959
+ }, closeTag: (e) => {
960
+ const r = e.getSource();
961
+ if (r.rule) {
962
+ const l = Object.keys(r.rule);
963
+ for (let d = 0; d < l.length; d++) {
964
+ const S = l[d];
965
+ S !== "rule" && (r[S] = r.rule[S]);
966
+ }
967
+ }
968
+ delete r.rule;
969
+ } }), h.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
970
+ const r = e.getParent();
971
+ e.copyToObject(r, "type", k), e.copyToObject(r, "priority", A), e.copyToObject(r, "stopIfTrue", w);
972
+ const l = e.getAttribute("dxfId", A);
973
+ if (l !== null) {
974
+ let d = _?.get(l);
975
+ d || (Q?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`), d = {}), r.style = d;
976
+ }
977
+ e.copyToObject(r, "aboveAverage", w), e.copyToObject(r, "equalAverage", w), e.copyToObject(r, "stdDev", A), e.copyToObject(r, "bottom", w), e.copyToObject(r, "percent", w), e.copyToObject(r, "rank", A), e.copyToObject(r, "operator", k), e.copyToObject(r, "text", k), e.copyToObject(r, "timePeriod", k);
978
+ } }), h.registerVisitor({ from: "colorScale", to: "colorScale" }), h.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
979
+ e.copyTo("maxLength", A), e.copyTo("minLength", A), e.copyTo("showValue", w);
980
+ } }), h.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
981
+ e.copyTo("iconSet", k), e.copyTo("reverse", w), e.copyTo("showValue", w);
982
+ } }), h.registerVisitor({ from: "formula", to: null, text: (e, r) => {
983
+ const l = r.getParent();
984
+ let d = l.formulas;
985
+ d || (d = [], l.formulas = d), d.push(e);
986
+ } }), h.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
987
+ const r = e.getParent();
988
+ r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", k), e.copyTo("value", ct, "val"), e.copyTo("gte", w);
989
+ } }), h.registerVisitor({ from: "color", to: {}, openTag: (e) => {
990
+ const r = e.getParent();
991
+ r.colors || (r.colors = []);
992
+ const l = as((d) => e.getAttribute(d));
993
+ r.colors.push(l);
994
+ } }), h.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
995
+ const r = e.getParent();
996
+ r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", A, "colId"), e.copyTo("hiddenButton", w), e.copyTo("showButton", w);
997
+ } }), h.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
998
+ const r = e.getParent();
999
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Qt.Type.Color, e.copyTo("cellColor", w), e.copyTo("styleId", A, "dxfId");
1000
+ } }), h.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
1001
+ const r = e.getParent();
1002
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Qt.Type.Dynamic, e.copyTo("dynamicType", k, "type"), e.copyTo("val", ct), e.copyTo("maxVal", ct, "maxVal");
1003
+ } }), h.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
1004
+ const r = e.getParent();
1005
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Qt.Type.Icon, e.copyTo("iconId", A), e.copyTo("iconSet", k);
1006
+ } }), h.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
1007
+ const r = e.getParent();
1008
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Qt.Type.Top10, e.copyTo("filterVal", ct), e.copyTo("percent", w), e.copyTo("top", w), e.copyTo("val", ct);
1009
+ } }), h.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
1010
+ const r = e.getParent();
1011
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Qt.Type.Items, e.copyTo("blank", w), e.copyTo("calendarType", k);
1012
+ } }), h.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
1013
+ const r = e.getParent();
1014
+ r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", k, "dateTimeGrouping"), e.copyTo("day", A), e.copyTo("hour", A), e.copyTo("minute", A), e.copyTo("month", A), e.copyTo("second", A), e.copyTo("year", A);
1015
+ } }), h.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
1016
+ const r = e.getParent();
1017
+ r.items || (r.items = []), r.items.push(e.getAttribute("val", ct));
1018
+ } }), h.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
1019
+ const r = e.getParent();
1020
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Qt.Type.Custom, e.copyTo("and", w);
1021
+ } }), h.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
1022
+ const r = e.getParent();
1023
+ r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", k), e.copyTo("value", ct, "val");
1024
+ } }), h.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
1025
+ e.copyTo("ref", k);
1026
+ } }), h.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
1027
+ const r = e.getParent();
1028
+ r.fields || (r.fields = []);
1029
+ const l = e.getSource();
1030
+ r.fields.push(l), e.copyTo("sortOn", k, "sortBy"), e.copyTo("dxfId", k, "sortBy"), e.copyTo("iconSet", k), e.copyTo("customList", k);
1031
+ const d = e.getAttribute("ref");
1032
+ if (d) {
1033
+ const S = at.fastStringToRange(d, ls).colStart, pt = at.fastStringToRange(r.ref, ls), ot = pt.colStart;
1034
+ l.offset = pt ? S - ot : S;
1035
+ }
1036
+ l.reverse = e.getAttribute("descending", w) ?? !1;
1037
+ } }), h.registerVisitor({ from: "AlternateContent", to: null });
1038
+ const ge = (e) => {
1039
+ j = e.getSource(), e.copyTo("topLeft", k, "topLeftCell");
1040
+ const r = Js(e.getAttribute("defaultGridColor")), l = e.getAttribute("colorId");
1041
+ l === null || r || (e.getSource().gridLineColor = "index" + parseFloat(l)), e.copyTo("showZeros", w), e.copyTo("showFormulas", w), e.copyTo("zoomScale", A), e.copyTo("showRowHeaders", w, "showRowColHeaders"), e.copyTo("showColumnHeaders", w, "showRowColHeaders"), e.copyTo("showRowGridlines", w, "showGridLines"), e.copyTo("showColumnGridlines", w, "showGridLines");
1042
+ };
1043
+ h.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
1044
+ ge(e);
1045
+ }, closeTag: () => {
1046
+ j = null;
1047
+ } }), h.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
1048
+ e.setSource([]);
1049
+ } }), h.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
1050
+ ge(e);
1051
+ }, closeTag: () => {
1052
+ j = null;
1053
+ } }), h.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
1054
+ if (!j) return;
1055
+ e.copyTo("cell", k, "activeCell"), e.copyTo("rangeIndex", A, "activeCellId");
1056
+ const r = e.getAttribute("activeCell"), l = e.getAttribute("sqref");
1057
+ l && l !== r && (e.getSource().ranges = l.split(" "));
1058
+ } }), h.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
1059
+ if (j && e.getAttribute("state") === "frozen") {
1060
+ const r = {};
1061
+ j.freezePanes = r, e.copyToObject(r, "topLeft", k, "topLeftCell");
1062
+ const l = j.topLeft ? at.fastStringToCell(j.topLeft) : { colIndex: 0, rowIndex: 0 }, d = { colIndex: 0, rowIndex: 0 };
1063
+ e.copyToObject(d, "colIndex", A, "xSplit"), e.copyToObject(d, "rowIndex", A, "ySplit");
1064
+ const S = { colIndex: l.colIndex + d.colIndex, rowIndex: l.rowIndex + d.rowIndex };
1065
+ r.coords = at.cellToString(S);
1066
+ }
1067
+ } }), h.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
1068
+ const r = as((l) => e.getAttribute(l));
1069
+ r && (V.tabColor = r);
1070
+ } }), h.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
1071
+ } }), h.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
1072
+ } }), h.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
1073
+ } }), h.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
1074
+ } }), h.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
1075
+ } }), h.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
1076
+ e.setSource([]);
1077
+ } }), h.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
1078
+ const r = e.getAttribute("ref");
1079
+ e.setSource(r);
1080
+ } }), h.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
1081
+ e.setSource([]);
1082
+ } }), h.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
1083
+ const r = e.getAttribute("r:id"), l = e.getAttribute("ref");
1084
+ if (!l) return void console.warn("No ref found for hyperlink");
1085
+ e.setKey(l);
1086
+ let d = r ? U(r) : "";
1087
+ if (typeof d != "string") return void console.warn("Invalid address ", d);
1088
+ const S = e.getAttribute("location");
1089
+ d.endsWith("\\") && (d = d.substring(0, d.length - 1));
1090
+ const pt = e.getAttribute("location");
1091
+ if (pt && (S && S !== pt && console.warn("display and location are different", S, pt), d += "#" + pt), !d) return void console.warn("No address found for hyperlink. r:id", r);
1092
+ let ot;
1093
+ const At = e.getAttribute("tooltip");
1094
+ ot = At ? { address: d, tooltip: At } : d, e.setSource({ r: l, v: ot });
1095
+ } }), h.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
1096
+ const r = e.getAttribute("r:id");
1097
+ if (!r) return;
1098
+ const l = U(r);
1099
+ l ? e.setSource(l.movables) : console.warn("no drawing found for rId", r);
1100
+ } }), h.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
1101
+ e.setSource([]);
1102
+ } }), h.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
1103
+ const r = e.getAttribute("r:id");
1104
+ if (!r) return;
1105
+ const l = U(r);
1106
+ l ? e.setSource(l) : console.warn("no table found for rId", r);
1107
+ } }), h.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
1108
+ } }), h.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
1109
+ let r = !1;
1110
+ if (e.hasAttribute("sheet") && w(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
1111
+ const l = (S) => S === !0 || S === "1" || S === "on" || S === "true" || S === !1 || S === "0" || S === "off" || S === "false" || null;
1112
+ e.copyTo("autoFilter", l), e.copyTo("deleteColumns", l), e.copyTo("formatCells", l), e.copyTo("formatColumns", l), e.copyTo("formatRows", l), e.copyTo("insertColumns", l), e.copyTo("insertHyperlinks", l), e.copyTo("insertRows", l), e.copyTo("objects", l), e.copyTo("pivotTables", l), e.copyTo("scenarios", l), e.copyTo("selectUnlockedCells", l), e.copyTo("selectUnlockedCells", l), e.copyTo("sort", l);
1113
+ const d = {};
1114
+ e.copyToObject(d, "hash", k, "hashValue"), e.copyToObject(d, "algorithm", k, "algorithmName"), e.copyToObject(d, "salt", k, "saltValue"), e.copyToObject(d, "spinCount", A), Object.keys(d).length > 0 && (e.getSource().password = d);
1115
+ } }), h.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
1116
+ e.setSource({});
1117
+ } }), h.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
1118
+ const r = e.getAttribute("sqref");
1119
+ e.setKey(r), e.copyTo("name"), e.copyTo("securityDescriptor");
1120
+ const l = {};
1121
+ e.copyToObject(l, "hash", k, "hashValue"), e.copyToObject(l, "algorithm", k, "algorithmName"), e.copyToObject(l, "salt", k, "saltValue"), e.copyToObject(l, "spinCount", A), Object.keys(l).length > 0 && (e.getSource().password = l);
1122
+ } }), h.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
1123
+ e.copyToObject(V, "defaultColSize", ct, "defaultColWidth"), e.copyToObject(V, "outlineLevelCol", A, "outlineLevelCol");
1124
+ const r = e.getAttribute("customHeight");
1125
+ r !== "1" && r !== "true" || e.copyToObject(V, "defaultRowSize", ct, "defaultRowHeight"), e.copyToObject(V, "outlineLevelRow", A, "outlineLevelRow");
1126
+ } }), h.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
1127
+ e.setSource([]);
1128
+ } }), h.registerVisitor({ from: "col", to: [], openTag: (e) => {
1129
+ e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", ct, "width"), e.copyTo("cs", w, "customWidth"), e.copyTo("h", w, "hidden"), e.copyTo("l", A, "outlineLevel"), e.copyTo("s", A, "style");
1130
+ } }), h.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
1131
+ e.warn("'OLE Objects' are not supported.");
1132
+ } });
1133
+ let ee = null;
1134
+ const xs = { onOpenTag: (e) => {
1135
+ ee === null && (ee = "");
1136
+ }, onText: (e) => {
1137
+ ee += e;
1138
+ }, onEnd: () => {
1139
+ const e = te(ee);
1140
+ return ee = null, e;
1141
+ }, onError: (e) => {
1142
+ } };
1143
+ return ((e, r, l, d, S, pt) => {
1144
+ let ot = !1, At = !1, zt = [], Ut = !1, Dt = null, se = null, fe = null, rt = null, He = null, Fe = null;
1145
+ const ws = pt?.get("richData") ?? [], Xe = at.normalizeA1ToR1C1, Be = Ee.createConflatingRanges(), We = /* @__PURE__ */ new Map(), ke = [];
1146
+ let ie = null;
1147
+ const _e = Ee.createConflatingRanges();
1148
+ let oe, Et = !1, X = -1, J = -1, gt = null, re = null;
1149
+ const Ae = [];
1150
+ let De = null, qe = -2, ft = 0, Gt = "", Pt = "", Ot = "", It = "", Vt = "", Lt = "", Nt = "", ze = "", Ue = "", Ge = "", Qe = "", Ze = "", Je = "", Ke = "", mt = !0, Rt = null;
1151
+ return { ...l, onEnd: () => {
1152
+ Ae.length > 0 && (r.rows = Ae);
1153
+ let p = Be.done(Ks);
1154
+ const C = p.length;
1155
+ if (C > 0) {
1156
+ const $ = new Array(C);
1157
+ for (let L = 0; L < C; L++) {
1158
+ const nt = p[L], $t = at.rangeToString(nt), Mt = nt.value[1], ne = at.resolveRelativeToA1(Mt, nt.rowStart, nt.colStart);
1159
+ $[L] = [$t, ne];
968
1160
  }
1161
+ r.formulas = $;
969
1162
  }
970
- delete r.rule;
971
- } }), h.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
972
- const r = e.getParent();
973
- e.copyToObject(r, "type", k), e.copyToObject(r, "priority", A), e.copyToObject(r, "stopIfTrue", w);
974
- const l = e.getAttribute("dxfId", A);
975
- if (l !== null) {
976
- let d = _?.get(l);
977
- d || (Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`), d = {}), r.style = d;
1163
+ const et = _e.done(!0), N = et.length;
1164
+ if (N > 0) {
1165
+ const $ = new Array(N);
1166
+ for (let L = 0; L < N; L++) {
1167
+ const nt = et[L], $t = at.rangeToString(nt);
1168
+ $[L] = $t;
1169
+ }
1170
+ r.volatile = $;
978
1171
  }
979
- e.copyToObject(r, "aboveAverage", w), e.copyToObject(r, "equalAverage", w), e.copyToObject(r, "stdDev", A), e.copyToObject(r, "bottom", w), e.copyToObject(r, "percent", w), e.copyToObject(r, "rank", A), e.copyToObject(r, "operator", k), e.copyToObject(r, "text", k), e.copyToObject(r, "timePeriod", k);
980
- } }), h.registerVisitor({ from: "colorScale", to: "colorScale" }), h.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
981
- e.copyTo("maxLength", A), e.copyTo("minLength", A), e.copyTo("showValue", w);
982
- } }), h.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
983
- e.copyTo("iconSet", k), e.copyTo("reverse", w), e.copyTo("showValue", w);
984
- } }), h.registerVisitor({ from: "formula", to: null, text: (e, r) => {
985
- const l = r.getParent();
986
- let d = l.formulas;
987
- d || (d = [], l.formulas = d), d.push(e);
988
- } }), h.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
989
- const r = e.getParent();
990
- r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", k), e.copyTo("value", ct, "val"), e.copyTo("gte", w);
991
- } }), h.registerVisitor({ from: "color", to: {}, openTag: (e) => {
992
- const r = e.getParent();
993
- r.colors || (r.colors = []);
994
- const l = ls((d) => e.getAttribute(d));
995
- r.colors.push(l);
996
- } }), h.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
997
- const r = e.getParent();
998
- r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", A, "colId"), e.copyTo("hiddenButton", w), e.copyTo("showButton", w);
999
- } }), h.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
1000
- const r = e.getParent();
1001
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Color, e.copyTo("cellColor", w), e.copyTo("styleId", A, "dxfId");
1002
- } }), h.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
1003
- const r = e.getParent();
1004
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Dynamic, e.copyTo("dynamicType", k, "type"), e.copyTo("val", ct), e.copyTo("maxVal", ct, "maxVal");
1005
- } }), h.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
1006
- const r = e.getParent();
1007
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Icon, e.copyTo("iconId", A), e.copyTo("iconSet", k);
1008
- } }), h.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
1009
- const r = e.getParent();
1010
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Top10, e.copyTo("filterVal", ct), e.copyTo("percent", w), e.copyTo("top", w), e.copyTo("val", ct);
1011
- } }), h.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
1012
- const r = e.getParent();
1013
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Items, e.copyTo("blank", w), e.copyTo("calendarType", k);
1014
- } }), h.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
1015
- const r = e.getParent();
1016
- r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", k, "dateTimeGrouping"), e.copyTo("day", A), e.copyTo("hour", A), e.copyTo("minute", A), e.copyTo("month", A), e.copyTo("second", A), e.copyTo("year", A);
1017
- } }), h.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
1018
- const r = e.getParent();
1019
- r.items || (r.items = []), r.items.push(e.getAttribute("val", ct));
1020
- } }), h.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
1021
- const r = e.getParent();
1022
- r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Gt.Type.Custom, e.copyTo("and", w);
1023
- } }), h.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
1024
- const r = e.getParent();
1025
- r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", k), e.copyTo("value", ct, "val");
1026
- } }), h.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
1027
- e.copyTo("ref", k);
1028
- } }), h.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
1029
- const r = e.getParent();
1030
- r.fields || (r.fields = []);
1031
- const l = e.getSource();
1032
- r.fields.push(l), e.copyTo("sortOn", k, "sortBy"), e.copyTo("dxfId", k, "sortBy"), e.copyTo("iconSet", k), e.copyTo("customList", k);
1033
- const d = e.getAttribute("ref");
1034
- if (d) {
1035
- const S = at.fastStringToRange(d, cs).colStart, gt = at.fastStringToRange(r.ref, cs), ot = gt.colStart;
1036
- l.offset = gt ? S - ot : S;
1172
+ if (ke.length > 0 && (r.dynamicArray = [...ke]), zt.length > 0) {
1173
+ zt.sort(Ee.createRangeComparator(ks.Orientation.Column));
1174
+ const $ = [];
1175
+ let L = null, nt = -1, $t = -1, Mt = -1, ne = -1, vt = null;
1176
+ const Ye = zt.length;
1177
+ Ye > 0 && (L = zt[0], nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ne = L.value, $.push(L));
1178
+ for (let jt = 1; jt < Ye; jt++) vt = zt[jt], ne !== vt.value || nt !== vt.colStart || $t !== vt.colEnd || Mt + 1 !== vt.rowEnd ? ($.push(vt), L = vt, nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ne = L.value) : (Mt = vt.rowEnd, L.rowEnd = Mt);
1179
+ let ts = [];
1180
+ for (let jt = 0; jt < $.length; jt++) {
1181
+ const ae = $[jt];
1182
+ ts.push({ r: { colStart: ae.colStart, colEnd: ae.colEnd, rowStart: ae.rowStart, rowEnd: ae.rowEnd }, v: ae.value });
1183
+ }
1184
+ r.directStyles = ts;
1037
1185
  }
1038
- l.reverse = e.getAttribute("descending", w) ?? !1;
1039
- } }), h.registerVisitor({ from: "AlternateContent", to: null });
1040
- const fe = (e) => {
1041
- j = e.getSource(), e.copyTo("topLeft", k, "topLeftCell");
1042
- const r = Ks(e.getAttribute("defaultGridColor")), l = e.getAttribute("colorId");
1043
- l === null || r || (e.getSource().gridLineColor = "index" + parseFloat(l)), e.copyTo("showZeros", w), e.copyTo("showFormulas", w), e.copyTo("zoomScale", A), e.copyTo("showRowHeaders", w, "showRowColHeaders"), e.copyTo("showColumnHeaders", w, "showRowColHeaders"), e.copyTo("showRowGridlines", w, "showGridLines"), e.copyTo("showColumnGridlines", w, "showGridLines");
1044
- };
1045
- h.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
1046
- fe(e);
1047
- }, closeTag: () => {
1048
- j = null;
1049
- } }), h.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
1050
- e.setSource([]);
1051
- } }), h.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
1052
- fe(e);
1053
- }, closeTag: () => {
1054
- j = null;
1055
- } }), h.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
1056
- if (!j) return;
1057
- e.copyTo("cell", k, "activeCell"), e.copyTo("rangeIndex", A, "activeCellId");
1058
- const r = e.getAttribute("activeCell"), l = e.getAttribute("sqref");
1059
- l && l !== r && (e.getSource().ranges = l.split(" "));
1060
- } }), h.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
1061
- if (j && e.getAttribute("state") === "frozen") {
1062
- const r = {};
1063
- j.freezePanes = r, e.copyToObject(r, "topLeft", k, "topLeftCell");
1064
- const l = j.topLeft ? at.fastStringToCell(j.topLeft) : { colIndex: 0, rowIndex: 0 }, d = { colIndex: 0, rowIndex: 0 };
1065
- e.copyToObject(d, "colIndex", A, "xSplit"), e.copyToObject(d, "rowIndex", A, "ySplit");
1066
- const S = { colIndex: l.colIndex + d.colIndex, rowIndex: l.rowIndex + d.rowIndex };
1067
- r.coords = at.cellToString(S);
1186
+ const st = e.build();
1187
+ if (st) {
1188
+ const $ = st.tuples;
1189
+ r.data = $;
1068
1190
  }
1069
- } }), h.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
1070
- const r = ls((l) => e.getAttribute(l));
1071
- r && (V.tabColor = r);
1072
- } }), h.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
1073
- } }), h.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
1074
- } }), h.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
1075
- } }), h.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
1076
- } }), h.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
1077
- } }), h.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
1078
- e.setSource([]);
1079
- } }), h.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
1080
- const r = e.getAttribute("ref");
1081
- e.setSource(r);
1082
- } }), h.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
1083
- e.setSource([]);
1084
- } }), h.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
1085
- const r = e.getAttribute("r:id"), l = e.getAttribute("ref");
1086
- if (!l) return void console.warn("No ref found for hyperlink");
1087
- e.setKey(l);
1088
- let d = r ? U(r) : "";
1089
- if (typeof d != "string") return void console.warn("Invalid address ", d);
1090
- const S = e.getAttribute("location");
1091
- d.endsWith("\\") && (d = d.substring(0, d.length - 1));
1092
- const gt = e.getAttribute("location");
1093
- if (gt && (S && S !== gt && console.warn("display and location are different", S, gt), d += "#" + gt), !d) return void console.warn("No address found for hyperlink. r:id", r);
1094
- let ot;
1095
- const At = e.getAttribute("tooltip");
1096
- ot = At ? { address: d, tooltip: At } : d, e.setSource({ r: l, v: ot });
1097
- } }), h.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
1098
- const r = e.getAttribute("r:id");
1099
- if (!r) return;
1100
- const l = U(r);
1101
- l ? e.setSource(l.movables) : console.warn("no drawing found for rId", r);
1102
- } }), h.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
1103
- e.setSource([]);
1104
- } }), h.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
1105
- const r = e.getAttribute("r:id");
1106
- if (!r) return;
1107
- const l = U(r);
1108
- l ? e.setSource(l) : console.warn("no table found for rId", r);
1109
- } }), h.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
1110
- } }), h.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
1111
- let r = !1;
1112
- if (e.hasAttribute("sheet") && w(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
1113
- const l = (S) => S === !0 || S === "1" || S === "on" || S === "true" || S === !1 || S === "0" || S === "off" || S === "false" || null;
1114
- e.copyTo("autoFilter", l), e.copyTo("deleteColumns", l), e.copyTo("formatCells", l), e.copyTo("formatColumns", l), e.copyTo("formatRows", l), e.copyTo("insertColumns", l), e.copyTo("insertHyperlinks", l), e.copyTo("insertRows", l), e.copyTo("objects", l), e.copyTo("pivotTables", l), e.copyTo("scenarios", l), e.copyTo("selectUnlockedCells", l), e.copyTo("selectUnlockedCells", l), e.copyTo("sort", l);
1115
- const d = {};
1116
- e.copyToObject(d, "hash", k, "hashValue"), e.copyToObject(d, "algorithm", k, "algorithmName"), e.copyToObject(d, "salt", k, "saltValue"), e.copyToObject(d, "spinCount", A), Object.keys(d).length > 0 && (e.getSource().password = d);
1117
- } }), h.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
1118
- e.setSource({});
1119
- } }), h.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
1120
- const r = e.getAttribute("sqref");
1121
- e.setKey(r), e.copyTo("name"), e.copyTo("securityDescriptor");
1122
- const l = {};
1123
- e.copyToObject(l, "hash", k, "hashValue"), e.copyToObject(l, "algorithm", k, "algorithmName"), e.copyToObject(l, "salt", k, "saltValue"), e.copyToObject(l, "spinCount", A), Object.keys(l).length > 0 && (e.getSource().password = l);
1124
- } }), h.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
1125
- e.copyToObject(V, "defaultColSize", ct, "defaultColWidth"), e.copyToObject(V, "outlineLevelCol", A, "outlineLevelCol");
1126
- const r = e.getAttribute("customHeight");
1127
- r !== "1" && r !== "true" || e.copyToObject(V, "defaultRowSize", ct, "defaultRowHeight"), e.copyToObject(V, "outlineLevelRow", A, "outlineLevelRow");
1128
- } }), h.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
1129
- e.setSource([]);
1130
- } }), h.registerVisitor({ from: "col", to: [], openTag: (e) => {
1131
- e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", ct, "width"), e.copyTo("cs", w, "customWidth"), e.copyTo("h", w, "hidden"), e.copyTo("l", A, "outlineLevel"), e.copyTo("s", A, "style");
1132
- } }), h.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
1133
- e.warn("'OLE Objects' are not supported.");
1134
- } });
1135
- let se = null;
1136
- const ws = { onOpenTag: (e) => {
1137
- se === null && (se = "");
1138
- }, onText: (e) => {
1139
- se += e;
1140
- }, onEnd: () => {
1141
- const e = ee(se);
1142
- return se = null, e;
1143
- }, onError: (e) => {
1144
- } };
1145
- return ((e, r, l, d, S, gt) => {
1146
- let ot = !1, At = !1, qt = [], zt = !1, Dt = null, ie = null, me = null, rt = null, Fe = null, Xe = null;
1147
- const vs = gt?.get("richData") ?? [], Be = at.normalizeA1ToR1C1, We = Pe.createConflatingRanges(), _e = /* @__PURE__ */ new Map(), Ae = [];
1148
- let oe = null;
1149
- const qe = Pe.createConflatingRanges();
1150
- let re, Et = !1, X = -1, J = -1, ft = null, ne = null;
1151
- const De = [];
1152
- let Ee = null, ze = -2, mt = 0, Ut = "", Pt = "", Ot = "", It = "", Vt = "", Lt = "", Nt = "", Ue = "", Ge = "", Ze = "", Qe = "", Je = "", Ke = "", Ye = "", Tt = !0, Rt = null;
1153
- return { ...l, onEnd: () => {
1154
- De.length > 0 && (r.rows = De);
1155
- let p = We.done(Ys);
1156
- const C = p.length;
1157
- if (C > 0) {
1158
- const $ = new Array(C);
1159
- for (let L = 0; L < C; L++) {
1160
- const nt = p[L], $t = at.rangeToString(nt), Mt = nt.value[1], ae = at.resolveRelativeToA1(Mt, nt.rowStart, nt.colStart);
1161
- $[L] = [$t, ae];
1162
- }
1163
- r.formulas = $;
1164
- }
1165
- const et = qe.done(!0), N = et.length;
1166
- if (N > 0) {
1167
- const $ = new Array(N);
1168
- for (let L = 0; L < N; L++) {
1169
- const nt = et[L], $t = at.rangeToString(nt);
1170
- $[L] = $t;
1171
- }
1172
- r.volatile = $;
1191
+ l?.onEnd?.();
1192
+ }, onOpenTag: (p) => {
1193
+ let C = p.name;
1194
+ const et = C.indexOf(":");
1195
+ if (et !== -1 && (C = C.slice(et + 1)), oe) {
1196
+ const N = p.attributes;
1197
+ switch (C) {
1198
+ case "v":
1199
+ At = !0;
1200
+ break;
1201
+ case "f":
1202
+ switch (N.t ?? null) {
1203
+ case null:
1204
+ case "normal":
1205
+ Ut = !0;
1206
+ break;
1207
+ case "shared":
1208
+ const st = N.si;
1209
+ se = N.ref, Dt = st;
1210
+ break;
1211
+ case "array":
1212
+ Ut = !0, se = N.ref, ie = [se, !1];
1213
+ break;
1214
+ case "datatable":
1215
+ Ut = !0, se = N.ref, Ut = !0;
1216
+ }
1217
+ N.ca !== void 0 && _e.append(X, J);
1218
+ break;
1219
+ case "is":
1220
+ return void (Et = !0);
1173
1221
  }
1174
- if (Ae.length > 0 && (r.dynamicArray = [...Ae]), qt.length > 0) {
1175
- qt.sort(Pe.createRangeComparator(As.Orientation.Column));
1176
- const $ = [];
1177
- let L = null, nt = -1, $t = -1, Mt = -1, ae = -1, wt = null;
1178
- const ts = qt.length;
1179
- ts > 0 && (L = qt[0], nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ae = L.value, $.push(L));
1180
- for (let jt = 1; jt < ts; jt++) wt = qt[jt], ae !== wt.value || nt !== wt.colStart || $t !== wt.colEnd || Mt + 1 !== wt.rowEnd ? ($.push(wt), L = wt, nt = L.colStart, $t = L.colEnd, Mt = L.rowEnd, ae = L.value) : (Mt = wt.rowEnd, L.rowEnd = Mt);
1181
- let es = [];
1182
- for (let jt = 0; jt < $.length; jt++) {
1183
- const le = $[jt];
1184
- es.push({ r: { colStart: le.colStart, colEnd: le.colEnd, rowStart: le.rowStart, rowEnd: le.rowEnd }, v: le.value });
1185
- }
1186
- r.directStyles = es;
1222
+ return void (Et && S?.onOpenTag(p));
1223
+ }
1224
+ if (ot) {
1225
+ if (C === "c") {
1226
+ oe = p;
1227
+ const N = p.attributes.r;
1228
+ J = at.fastStringToCol(N);
1229
+ const st = p.attributes.t;
1230
+ st === void 0 ? re = null : (re = st, re === "str" && (Et = !0));
1231
+ let $ = p.attributes.s;
1232
+ $ !== void 0 && ($ = parseInt($), Rt && Rt.value === $ && Rt.colEnd + 1 === J ? Rt.colEnd = J : (Rt = { colStart: J, rowStart: X, colEnd: J, rowEnd: X, value: $ }, zt.push(Rt)));
1187
1233
  }
1188
- const st = e.build();
1189
- if (st) {
1190
- const $ = st.tuples;
1191
- r.data = $;
1234
+ } else {
1235
+ if (C === "row") {
1236
+ ot = !0;
1237
+ const N = p.attributes.r;
1238
+ if (X = parseInt(N) - 1, ft = 0, Pt = p.attributes.customHeight, Pt !== void 0 && (ft |= Bt.CustomHeight), Pt !== Ue && (mt = !0, Ue = Pt), Gt = p.attributes.ht, Gt !== void 0 && (ft |= Bt.Ht), Gt !== ze && (mt = !0, ze = Gt), Ot = p.attributes.hidden, Ot !== void 0 && (ft |= Bt.Hidden), Ot !== Ge && (mt = !0, Ge = Ot), Vt = p.attributes.s, Vt !== void 0 && (ft |= Bt.S), Vt !== Ze && (mt = !0, Ze = Vt), It = p.attributes.customFormat, It !== void 0 && (ft |= Bt.CustomFormat), It !== Qe && (mt = !0, Qe = It), Lt = p.attributes.outlineLevel, Lt !== void 0 && (ft |= Bt.OutlineLevel), Lt !== Je && (mt = !0, Je = Lt), Nt = p.attributes.collapsed, Nt !== void 0 && (ft |= Bt.Collapsed), Nt !== Ke && (mt = !0, Ke = Nt), ft !== 0) if (qe + 1 !== X || mt) {
1239
+ const st = Pt !== void 0 && (Pt === "1" || Pt === "true"), $ = It !== void 0 && (It === "1" || It === "true");
1240
+ De = { min: X, max: X, sz: st && Gt !== void 0 ? parseFloat(Gt) : -1, csz: st, h: Ot !== void 0 && (Ot === "1" || Ot === "true"), s: st && Vt !== void 0 && Vt !== "0" ? parseInt(Vt) : 0, cs: $, l: Lt === void 0 || Lt === "0" ? 0 : parseInt(Lt), cl: Nt !== void 0 && (Nt === "1" || Nt === "true") }, Ae.push(De);
1241
+ } else De.max = X;
1242
+ return qe = X, void (mt = !1);
1192
1243
  }
1193
- l?.onEnd?.();
1194
- }, onOpenTag: (p) => {
1244
+ l?.onOpenTag(p);
1245
+ }
1246
+ }, onCloseTag: (p) => {
1247
+ if (oe) {
1195
1248
  let C = p.name;
1196
1249
  const et = C.indexOf(":");
1197
- if (et !== -1 && (C = C.slice(et + 1)), re) {
1198
- const N = p.attributes;
1199
- switch (C) {
1200
- case "v":
1201
- At = !0;
1202
- break;
1203
- case "f":
1204
- switch (N.t ?? null) {
1205
- case null:
1206
- case "normal":
1207
- zt = !0;
1208
- break;
1209
- case "shared":
1210
- const st = N.si;
1211
- ie = N.ref, Dt = st;
1212
- break;
1213
- case "array":
1214
- zt = !0, ie = N.ref, oe = [ie, !1];
1250
+ if (et !== -1 && (C = C.slice(et + 1)), Et) if (C === "is" || C === "v") {
1251
+ const N = S?.onEnd();
1252
+ N !== null && e.addValue(X, J, "" + N);
1253
+ } else S?.onCloseTag?.(p);
1254
+ return At && (At = !1), void (C === "c" && (oe = null, Et = !1));
1255
+ }
1256
+ if (ot) return ot = !1, void (Rt = null);
1257
+ l?.onCloseTag(p);
1258
+ }, onText: (p) => {
1259
+ if (p = p.trim(), At) {
1260
+ switch (gt = null, re) {
1261
+ case null:
1262
+ case "n":
1263
+ gt = parseFloat(p);
1264
+ break;
1265
+ case "b":
1266
+ gt = p === "1" || p === "true";
1267
+ break;
1268
+ case "s":
1269
+ gt = p;
1270
+ break;
1271
+ case "e":
1272
+ if (p === "#VALUE!") {
1273
+ const et = oe.attributes.vm;
1274
+ if (et !== void 0) {
1275
+ const N = ws[parseInt(et) - 1];
1276
+ if (N && N.isFormulaError) {
1277
+ gt = { t: Ft.Error, v: N.getCode() };
1215
1278
  break;
1216
- case "datatable":
1217
- zt = !0, ie = N.ref, zt = !0;
1218
- }
1219
- N.ca !== void 0 && qe.append(X, J);
1220
- break;
1221
- case "is":
1222
- return void (Et = !0);
1223
- }
1224
- return void (Et && S?.onOpenTag(p));
1225
- }
1226
- if (ot) {
1227
- if (C === "c") {
1228
- re = p;
1229
- const N = p.attributes.r;
1230
- J = at.fastStringToCol(N);
1231
- const st = p.attributes.t;
1232
- st === void 0 ? ne = null : (ne = st, ne === "str" && (Et = !0));
1233
- let $ = p.attributes.s;
1234
- $ !== void 0 && ($ = parseInt($), Rt && Rt.value === $ && Rt.colEnd + 1 === J ? Rt.colEnd = J : (Rt = { colStart: J, rowStart: X, colEnd: J, rowEnd: X, value: $ }, qt.push(Rt)));
1235
- }
1236
- } else {
1237
- if (C === "row") {
1238
- ot = !0;
1239
- const N = p.attributes.r;
1240
- if (X = parseInt(N) - 1, mt = 0, Pt = p.attributes.customHeight, Pt !== void 0 && (mt |= Bt.CustomHeight), Pt !== Ge && (Tt = !0, Ge = Pt), Ut = p.attributes.ht, Ut !== void 0 && (mt |= Bt.Ht), Ut !== Ue && (Tt = !0, Ue = Ut), Ot = p.attributes.hidden, Ot !== void 0 && (mt |= Bt.Hidden), Ot !== Ze && (Tt = !0, Ze = Ot), Vt = p.attributes.s, Vt !== void 0 && (mt |= Bt.S), Vt !== Je && (Tt = !0, Je = Vt), It = p.attributes.customFormat, It !== void 0 && (mt |= Bt.CustomFormat), It !== Qe && (Tt = !0, Qe = It), Lt = p.attributes.outlineLevel, Lt !== void 0 && (mt |= Bt.OutlineLevel), Lt !== Ke && (Tt = !0, Ke = Lt), Nt = p.attributes.collapsed, Nt !== void 0 && (mt |= Bt.Collapsed), Nt !== Ye && (Tt = !0, Ye = Nt), mt !== 0) if (ze + 1 !== X || Tt) {
1241
- const st = Pt !== void 0 && (Pt === "1" || Pt === "true"), $ = It !== void 0 && (It === "1" || It === "true");
1242
- Ee = { min: X, max: X, sz: st && Ut !== void 0 ? parseFloat(Ut) : -1, csz: st, h: Ot !== void 0 && (Ot === "1" || Ot === "true"), s: st && Vt !== void 0 && Vt !== "0" ? parseInt(Vt) : 0, cs: $, l: Lt === void 0 || Lt === "0" ? 0 : parseInt(Lt), cl: Nt !== void 0 && (Nt === "1" || Nt === "true") }, De.push(Ee);
1243
- } else Ee.max = X;
1244
- return ze = X, void (Tt = !1);
1245
- }
1246
- l?.onOpenTag(p);
1247
- }
1248
- }, onCloseTag: (p) => {
1249
- if (re) {
1250
- let C = p.name;
1251
- const et = C.indexOf(":");
1252
- if (et !== -1 && (C = C.slice(et + 1)), Et) if (C === "is" || C === "v") {
1253
- const N = S?.onEnd();
1254
- N !== null && e.addValue(X, J, "" + N);
1255
- } else S?.onCloseTag?.(p);
1256
- return At && (At = !1), void (C === "c" && (re = null, Et = !1));
1257
- }
1258
- if (ot) return ot = !1, void (Rt = null);
1259
- l?.onCloseTag(p);
1260
- }, onText: (p) => {
1261
- if (p = p.trim(), At) {
1262
- switch (ft = null, ne) {
1263
- case null:
1264
- case "n":
1265
- ft = parseFloat(p);
1266
- break;
1267
- case "b":
1268
- ft = p === "1" || p === "true";
1269
- break;
1270
- case "s":
1271
- ft = p;
1272
- break;
1273
- case "e":
1274
- if (p === "#VALUE!") {
1275
- const et = re.attributes.vm;
1276
- if (et !== void 0) {
1277
- const N = vs[parseInt(et) - 1];
1278
- if (N && N.isFormulaError) {
1279
- ft = { t: Ft.Error, v: N.getCode() };
1280
- break;
1281
- }
1282
1279
  }
1283
1280
  }
1284
- const C = ks.getBuiltInByLabel(p);
1285
- C ? ft = { t: Ft.Error, v: C.getCode() } : (ft = p, d?.(`Unknown formula error '${p}' in cell ${at.cellToString({ colIndex: J, rowIndex: X })}`));
1286
- break;
1287
- case "str":
1288
- case "inlineStr":
1289
- Et = !0;
1290
- }
1291
- ft !== null && e.addValue(X, J, ft);
1292
- }
1293
- if (oe && (ne === "e" && (oe[1] = !0), Ae.push(oe), oe = null), Dt) if (Fe === Dt) rt = Xe;
1294
- else {
1295
- if (rt = _e.get(Dt), !rt) {
1296
- const C = [];
1297
- me = Be(p, X, J, C), rt = [me, C, p], _e.set(Dt, rt);
1298
- }
1299
- Fe = Dt, Xe = rt;
1281
+ }
1282
+ const C = Cs.getBuiltInByLabel(p);
1283
+ C ? gt = { t: Ft.Error, v: C.getCode() } : (gt = p, d?.(`Unknown formula error '${p}' in cell ${at.cellToString({ colIndex: J, rowIndex: X })}`));
1284
+ break;
1285
+ case "str":
1286
+ case "inlineStr":
1287
+ Et = !0;
1300
1288
  }
1301
- if (zt) {
1289
+ gt !== null && e.addValue(X, J, gt);
1290
+ }
1291
+ if (ie && (re === "e" && (ie[1] = !0), ke.push(ie), ie = null), Dt) if (He === Dt) rt = Fe;
1292
+ else {
1293
+ if (rt = We.get(Dt), !rt) {
1302
1294
  const C = [];
1303
- me = Be(p, X, J, C), rt = [me, C, p];
1304
- }
1305
- if (rt) return We.append(X, J, rt), rt = null, zt = !1, Dt = null, void (ie = null);
1306
- Et ? S?.onText(p) : ot || l?.onText(p);
1307
- } };
1308
- })(Q, V, h.createEventHandler(V, () => {
1309
- }, Z), Z, ws, tt);
1310
- })(Y, (V, U = !1) => ue(V, R, U) ?? null, ms, ke, 0, (V) => {
1311
- o && (V = R + ": " + V, o?.(V));
1312
- }, W), xt = as(R, he), kt = await (async (V, U = 8388608) => {
1313
- await (async () => {
1314
- if (typeof ReadableStream > "u") if (typeof window > "u") {
1315
- const { ReadableStream: Z } = await import("./B-kFRtzNNkf4_SiP.js");
1316
- globalThis.ReadableStream = Z;
1317
- } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1318
- })();
1319
- const ee = new TextDecoder("utf-8");
1320
- let _ = 0;
1321
- const G = V instanceof Uint8Array ? V : new Uint8Array(V);
1322
- return new ReadableStream({ pull(Z) {
1323
- if (_ >= G.byteLength) return void Z.close();
1324
- const tt = G.subarray(_, Math.min(_ + U, G.byteLength)), h = ee.decode(tt, { stream: _ + U < G.byteLength });
1325
- Z.enqueue(h), _ += tt.length;
1326
- } }).getReader();
1327
- })(xt);
1328
- try {
1329
- await Ie.parseStream(kt, Ct, { xmlns: !1 });
1330
- } catch (V) {
1331
- throw console.warn(`Error parsing sheet: '${R}'`, V), new Error(`Error parsing sheet: '${R}'`, { cause: V });
1332
- }
1333
- const Yt = be(R, ut);
1334
- let te, He = /* @__PURE__ */ new Map();
1335
- if (Yt) {
1336
- const V = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
1337
- let U;
1338
- Yt.forEach((_, G) => {
1339
- _.type === V && (te = ue(G, R, !1, ut)?.comments, te && te.forEach((tt) => {
1340
- He.set(tt.id, tt);
1341
- }));
1342
- });
1343
- const ee = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
1344
- if (Yt.forEach((_, G) => {
1345
- _.type === ee && (U = ue(G, R, !1, ut));
1346
- }), U || te) {
1347
- const _ = te ?? [], G = U?.comments;
1348
- if (G) {
1349
- const Z = U?.authors;
1350
- for (let tt = 0; tt < G.length; tt++) {
1351
- const h = G[tt];
1352
- let Q = h.authorId !== void 0 ? Z[h.authorId] : void 0;
1353
- if ((!Q || Q.startsWith("tc=")) && (Q = Js(Q.substring(3)), He.has(Q))) continue;
1354
- let j = pe.get(Q);
1355
- j || (j = $e.get(Q)), j || (j = { id: ss.uuidV4(), displayName: Q }, $e.set(j.displayName, j), pe.set(j.id, j)), Q = j?.id ?? null;
1356
- const fe = { id: ss.uuidV4(), personId: Q, ref: h.ref, done: !1, asNote: !0, content: h.content };
1357
- _.push(fe);
1295
+ fe = Xe(p, X, J, C), rt = [fe, C, p], We.set(Dt, rt);
1358
1296
  }
1297
+ He = Dt, Fe = rt;
1298
+ }
1299
+ if (Ut) {
1300
+ const C = [];
1301
+ fe = Xe(p, X, J, C), rt = [fe, C, p];
1302
+ }
1303
+ if (rt) return Be.append(X, J, rt), rt = null, Ut = !1, Dt = null, void (se = null);
1304
+ Et ? S?.onText(p) : ot || l?.onText(p);
1305
+ } };
1306
+ })(Z, V, h.createEventHandler(V, () => {
1307
+ }, Q), Q, xs, wt);
1308
+ })(Y, (V, U = !1) => he(V, R, U) ?? null, fs, Ce, 0, (V) => {
1309
+ o && (V = R + ": " + V, o?.(V));
1310
+ }, W), _t = ns(R, ce), xt = await (async (V, U = 8388608) => {
1311
+ await (async () => {
1312
+ if (typeof ReadableStream > "u") if (typeof window > "u") {
1313
+ const { ReadableStream: Q } = await import("./DwRHGEuscm3FvnkM.mjs");
1314
+ globalThis.ReadableStream = Q;
1315
+ } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1316
+ })();
1317
+ const te = new TextDecoder("utf-8");
1318
+ let _ = 0;
1319
+ const G = V instanceof Uint8Array ? V : new Uint8Array(V);
1320
+ return new ReadableStream({ pull(Q) {
1321
+ if (_ >= G.byteLength) return void Q.close();
1322
+ const wt = G.subarray(_, Math.min(_ + U, G.byteLength)), h = te.decode(wt, { stream: _ + U < G.byteLength });
1323
+ Q.enqueue(h), _ += wt.length;
1324
+ } }).getReader();
1325
+ })(_t);
1326
+ try {
1327
+ await Oe.parseStream(xt, bt, { xmlns: !1 });
1328
+ } catch (V) {
1329
+ throw console.warn(`Error parsing sheet: '${R}'`, V), new Error(`Error parsing sheet: '${R}'`, { cause: V });
1330
+ }
1331
+ const qt = ye(R, ut);
1332
+ let kt, je = /* @__PURE__ */ new Map();
1333
+ if (qt) {
1334
+ const V = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
1335
+ let U;
1336
+ qt.forEach((_, G) => {
1337
+ _.type === V && (kt = he(G, R, !1, ut)?.comments, kt && kt.forEach((Q) => {
1338
+ je.set(Q.id, Q);
1339
+ }));
1340
+ });
1341
+ const te = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
1342
+ if (qt.forEach((_, G) => {
1343
+ _.type === te && (U = he(G, R, !1, ut));
1344
+ }), U || kt) {
1345
+ const _ = kt ?? [], G = U?.comments;
1346
+ if (G) {
1347
+ const Q = U?.authors;
1348
+ for (let wt = 0; wt < G.length; wt++) {
1349
+ const h = G[wt];
1350
+ let Z = h.authorId !== void 0 ? Q[h.authorId] : void 0;
1351
+ if ((!Z || Z.startsWith("tc=")) && (Z = Zs(Z.substring(3)), je.has(Z))) continue;
1352
+ let j = de.get(Z);
1353
+ j || (j = Re.get(Z)), j || (j = { id: es.uuidV4(), displayName: Z }, Re.set(j.displayName, j), de.set(j.id, j)), Z = j?.id ?? null;
1354
+ const ge = { id: es.uuidV4(), personId: Z, ref: h.ref, done: !1, asNote: !0, content: h.content };
1355
+ _.push(ge);
1359
1356
  }
1360
- Y.comments = _;
1361
1357
  }
1358
+ Y.comments = _;
1362
1359
  }
1363
- };
1364
- Le.push(pt());
1365
- } else Wt = K ? as(R, he, (Y) => {
1366
- const pt = T.add({ buffer: Y });
1367
- return pt.addReference(I), H.add(pt), f.toResourceId(pt);
1368
- }, bt) : Ve(R, he, g, E, bt);
1360
+ }
1361
+ };
1362
+ Ve.push(tt());
1363
+ } else Wt = K ? ns(R, ce, (Y) => {
1364
+ const tt = T.add({ buffer: Y });
1365
+ return tt.addReference(I), H.add(tt), f.toResourceId(tt);
1366
+ }, yt) : Ie(R, ce, g, E, yt);
1369
1367
  return Wt;
1370
- }, bt = { paramMap: W, getRefs: be, getRef: ue, parsedRefs: ht, onWarning: o, addPerson: (P) => null }, de = [];
1371
- let xe = 0;
1372
- u.Strings && (xe = parseInt(u.Strings.Unique ?? u.Strings.length ?? 0));
1373
- const fs = u.Strings ?? [];
1374
- for (let P = 0; P < xe; P++) de.push(fs[P]?.t ?? "");
1375
- const Ne = /* @__PURE__ */ new Map();
1376
- let Re = xe;
1377
- const ms = (P) => {
1378
- const z = Ne.get(P);
1368
+ }, yt = { paramMap: W, getRefs: ye, getRef: he, parsedRefs: ht, onWarning: o, addPerson: (P) => null }, ue = [];
1369
+ let be = 0;
1370
+ u.Strings && (be = parseInt(u.Strings.Unique ?? u.Strings.length ?? 0));
1371
+ const gs = u.Strings ?? [];
1372
+ for (let P = 0; P < be; P++) ue.push(gs[P]?.t ?? "");
1373
+ const Le = /* @__PURE__ */ new Map();
1374
+ let Ne = be;
1375
+ const fs = (P) => {
1376
+ const z = Le.get(P);
1379
1377
  if (z !== void 0) return z;
1380
- const K = Re;
1381
- return Ne.set(P, Re++), de.push(P), K;
1382
- }, pe = (Zt("richstructure", u, g, E, bt), Zt("richdata", u, g, E, bt), /* @__PURE__ */ new Map()), $e = /* @__PURE__ */ new Map(), Me = Zt("people", u, g, E);
1383
- let St = null;
1384
- if (Me.size > 0 && (St = Me.entries().next()?.value?.[1]?.persons, St)) {
1385
- const P = St.length;
1378
+ const K = Ne;
1379
+ return Le.set(P, Ne++), ue.push(P), K;
1380
+ }, de = (Zt("richstructure", u, g, E, yt), Zt("richdata", u, g, E, yt), /* @__PURE__ */ new Map()), Re = /* @__PURE__ */ new Map(), $e = Zt("people", u, g, E);
1381
+ let Ct = null;
1382
+ if ($e.size > 0 && (Ct = $e.entries().next()?.value?.[1]?.persons, Ct)) {
1383
+ const P = Ct.length;
1386
1384
  for (let z = 0; z < P; z++) {
1387
- const K = St[z];
1388
- pe.set(K.id, K), pe.set(K.displayName, K);
1385
+ const K = Ct[z];
1386
+ de.set(K.id, K), de.set(K.displayName, K);
1389
1387
  }
1390
1388
  }
1391
- const we = Zt("themes", u, g, E, bt);
1392
- let je = null;
1393
- if (we && we.entries) {
1394
- let P = we.entries().next();
1395
- P?.value?.[1] && (je = P.value[1]);
1389
+ const xe = Zt("themes", u, g, E, yt);
1390
+ let Me = null;
1391
+ if (xe && xe.entries) {
1392
+ let P = xe.entries().next();
1393
+ P?.value?.[1] && (Me = P.value[1]);
1396
1394
  }
1397
- const Ts = new Ds(je);
1398
- let ge = Zt("styles", u, g, E, bt).entries().next()?.value[1];
1399
- ge && (ge = JSON.parse(Es(ge)));
1400
- const ys = Zt("workbooks", u, g, E, bt);
1401
- await Promise.all(Le);
1402
- const ve = { ...ys.entries().next().value[1], styles: ge, theme: Ts.toJSON() };
1403
- de.length > 0 && (ve.strings = de), St && St.length > 0 && (ve.people = St);
1404
- const bs = { ...n, resources: T, json: ve }, xs = new Ps(bs);
1395
+ const ms = new As(Me);
1396
+ let pe = Zt("styles", u, g, E, yt).entries().next()?.value[1];
1397
+ pe && (pe = JSON.parse(Ds(pe)));
1398
+ const Ts = Zt("workbooks", u, g, E, yt);
1399
+ await Promise.all(Ve);
1400
+ const we = { ...Ts.entries().next().value[1], styles: pe, theme: ms.toJSON() };
1401
+ ue.length > 0 && (we.strings = ue), Ct && Ct.length > 0 && (we.people = Ct);
1402
+ const ys = { ...n, resources: T, json: we }, bs = new Es(ys);
1405
1403
  return H.forEach((P) => {
1406
1404
  P.deleteReference(I);
1407
- }), f.endPersist(), xs;
1405
+ }), f.endPersist(), bs;
1408
1406
  } catch (u) {
1409
1407
  let E = "Unable to parse XLSX.";
1410
- throw u instanceof Is && (E = "Unable to open XLSX. There are too many rows or columns."), new Error(E, { cause: u });
1408
+ throw u instanceof Os && (E = "Unable to open XLSX. There are too many rows or columns."), new Error(E, { cause: u });
1411
1409
  }
1412
1410
  }, toBufferXLSX: async (i, t) => {
1413
- const s = await import("./NTINjW8JjyZudT8s.js"), o = await i.toJSON(!0), n = s.utils.book_new();
1411
+ const s = await import("./C28AZ0Rwo79iGg0v.mjs"), o = await i.toJSON(!0), n = s.utils.book_new();
1414
1412
  for (let a = 0; a < o.sheets.length; a++) {
1415
1413
  const c = o.sheets[a], m = s.utils.json_to_sheet([{}]);
1416
1414
  s.utils.book_append_sheet(n, m, c.name);
@@ -1457,12 +1455,12 @@ const Ys = (i, t, s) => {
1457
1455
  return s.write(n, { type: "array", bookType: "xlsx" }), s.write(n, { type: "array", bookType: "xlsx" });
1458
1456
  } }, Symbol.toStringTag, { value: "Module" }));
1459
1457
  export {
1460
- oi as a,
1461
- Ks as b,
1462
- ii as c,
1463
- ls as d,
1464
- ni as i,
1465
- ri as p,
1466
- Js as r,
1467
- si as t
1458
+ si as a,
1459
+ Js as b,
1460
+ ei as c,
1461
+ as as d,
1462
+ oi as i,
1463
+ ii as p,
1464
+ Zs as r,
1465
+ ti as t
1468
1466
  };