@sheetxl/studio-vanilla 0.7.28-beta.2 → 0.7.28-beta.4

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 (330) hide show
  1. package/browser/cjs/BClFnd-voK5qaz1I.cjs +88 -0
  2. package/browser/cjs/{Cf902jiI4KmAo0xm.cjs → BEJFcqVMDMKOvs11.cjs} +1 -1
  3. package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +1 -0
  4. package/browser/cjs/{BREMLtxkQhtNSVra.cjs → BF14ZEAnaqxXroSj.cjs} +1 -1
  5. package/browser/cjs/{Ca4DwcXOTqVuUOVq2.cjs → BFdq8CHyR6FQvmQA2.cjs} +1 -1
  6. package/browser/cjs/{DMNRMppC1tGKEiCa2.cjs → BKXFdLiztqEHIjQ_2.cjs} +1 -1
  7. package/browser/cjs/{Bf__CHuG3Xml-c51.cjs → BbEwESVyRYXzMlW7.cjs} +2 -2
  8. package/browser/cjs/BjgiE9MBDkKiRL6q.cjs +3 -0
  9. package/browser/cjs/Byl4bQWpLnjthChn2.cjs +7 -0
  10. package/browser/cjs/BzsAbsb35hYT3xUc.cjs +5 -0
  11. package/browser/cjs/{DOkSIS6STTVNDKfk.cjs → C0hGnOYkvrwxaGrw.cjs} +1 -1
  12. package/browser/cjs/{CFnnvEHNOFcAUaHE.cjs → C7GpcB_YgM-RLa2P.cjs} +1 -1
  13. package/browser/cjs/C8GZf3UAOhfisYCs.cjs +1 -0
  14. package/browser/cjs/{BhZ21zg_gpygQ79x2.cjs → C9L-xibuJ434Mqqq2.cjs} +1 -1
  15. package/browser/cjs/CEXs4eRDOv4EjbSw2.cjs +1 -0
  16. package/browser/cjs/{CJGPlP_eqUiNvS8J2.cjs → CEpXnHhrczUmIwMa2.cjs} +1 -1
  17. package/browser/cjs/{0udzrkQg8Nf9nRbI.cjs → CLXzYSmhCHV5LQh7.cjs} +1 -1
  18. package/browser/cjs/{CFSMFEE8YXmRYGPL.cjs → CN-dCAHVcxuMSyFz.cjs} +1 -1
  19. package/browser/cjs/CZfNBCd62H_Jpkhl.cjs +12 -0
  20. package/browser/cjs/{CUCXS7BrMsSnSXVr.cjs → Ck7Tc5npWk73wrF3.cjs} +2 -2
  21. package/browser/cjs/{BFDhFIqPaIRivcO3.cjs → CnjaTz8HJXStwuH8.cjs} +1 -1
  22. package/browser/cjs/CoiPEZabJyiXxLta.cjs +1 -0
  23. package/browser/cjs/{pb5LnC0Ye1NBoRvg.cjs → Cu0UCwSpRK4OnCuP.cjs} +1 -1
  24. package/browser/cjs/{C1nECuaXDUkYlVQY2.cjs → D-o-mlG9tYSuZrvy2.cjs} +1 -1
  25. package/browser/cjs/DAA0zpvkrMOLDPxr.cjs +1 -0
  26. package/browser/cjs/{Bf2M1sdVR89d3yxg.cjs → DAXgAEDtRrsWAePT.cjs} +1 -1
  27. package/browser/cjs/{BHgdQUCqHS6ORa7c.cjs → DMp9wql2kbZKAbGe.cjs} +1 -1
  28. package/browser/cjs/{B37bgauMls6bQwyP.cjs → DQTBgNqDHInvxrwS.cjs} +1 -1
  29. package/browser/cjs/DcHxh5QxfVitzdhv.cjs +1 -0
  30. package/browser/cjs/{CctPhNbQyX8s8ExI.cjs → DgGGzl7jq3i7Cqfi.cjs} +1 -1
  31. package/browser/cjs/{CcLfDX6uHge33mwb2.cjs → Dkgu60euhL6wPoYa2.cjs} +1 -1
  32. package/browser/cjs/DsgqbxMOVQmAFSDy2.cjs +1 -0
  33. package/browser/cjs/{1KM7qHlz__nQ218X2.cjs → DtaFdoK4CppKRF6F2.cjs} +1 -1
  34. package/browser/cjs/Dtc_8P-koQRmNT2s.cjs +33 -0
  35. package/browser/cjs/{BOLM1QOvxUKhYbK5.cjs → FUM_3mQlC-6WPjkT.cjs} +1 -1
  36. package/browser/cjs/IbciPMJP2Pam3ERm.cjs +1 -0
  37. package/browser/cjs/{DCoIIJyPtSyIsTJb.cjs → J7LQgueGGNUE9emR.cjs} +1 -1
  38. package/browser/cjs/{Dl_WSCZ-dmkNHosq.cjs → M19oMY91yZxf2WAR.cjs} +1 -1
  39. package/browser/cjs/NzAMMcPT7SETmqPg.cjs +2 -0
  40. package/browser/cjs/{DtgmpiVT0_CaM-eU2.cjs → QK9BfdSZPLmyRpGi2.cjs} +1 -1
  41. package/browser/cjs/{VRIZX6-JADRk2Iao.cjs → X1LnR885SNQaK5HZ.cjs} +1 -1
  42. package/browser/cjs/{CLb55xtEE2qOnXPJ2.cjs → Y78-VwYSNffwXRVz2.cjs} +1 -1
  43. package/browser/cjs/bpcQTcfzGVBK-rfT2.cjs +1 -0
  44. package/browser/cjs/index.cjs +2 -2
  45. package/browser/cjs/{hI9m9CzcSN-spUI2.cjs → iyvcAhhnDFxkR8tW.cjs} +1 -1
  46. package/browser/cjs/jIxFDc3EQDDXisAC2.cjs +1 -0
  47. package/browser/cjs/{BqJIWrtud1IdCny_.cjs → kqP-W5qRIy-d-ChZ.cjs} +1 -1
  48. package/browser/cjs/{CwBld2h5K_-uk804.cjs → mXzhcays1ok40iiU.cjs} +1 -1
  49. package/browser/cjs/{udZZuwSKdGYCjFsn.cjs → n4ZQ0-3uSrEsInbg.cjs} +1 -1
  50. package/browser/cjs/{BC9dJX0j0S8cLlfd.cjs → sFD2bsTPq558FCMx.cjs} +1 -1
  51. package/browser/cjs/{COpCKLHQ5jF_IoiS2.cjs → stXrcKZOIHl0fq5U2.cjs} +1 -1
  52. package/browser/cjs/{KzrnzN7NeOPdB-Ic.cjs → zEytED4Eleo5DVvS.cjs} +1 -1
  53. package/browser/esm/{DBVG6J7cidK5K5QE.mjs → -9NsA_4pZqcEQBX7.mjs} +6 -6
  54. package/browser/esm/{CMBLrQ2K32IKaZHu.mjs → 5LJ1sC7IPn109Ien.mjs} +2 -2
  55. package/browser/esm/{GjOmlUOFqz90L-9x2.mjs → 6A8iYjFWJzx5PaTP2.mjs} +8 -8
  56. package/{cdn/assets/COgR28nGHeL59WLY.js → browser/esm/B-dSKzg5shPDd733.mjs} +1 -1
  57. package/{cdn/assets/MIcNDPtZ2tOqEJLi.js → browser/esm/B3tC7wY_kUGXf5sb2.mjs} +1 -1
  58. package/browser/esm/{CZVi5-MceLzKtZCX2.mjs → B4fSPDN923nqCDVE2.mjs} +1 -1
  59. package/browser/esm/{qxXoiVui214rfZng2.mjs → B6bX01HNxwBooBTX2.mjs} +15 -15
  60. package/browser/esm/{B9yaWiEn9khUlCmT.mjs → B9t9fF8FNCLomgK_.mjs} +12 -8
  61. package/browser/esm/{D0OOkDRea_6_jbt2.mjs → BBhB25AlKEzdoI0V.mjs} +1 -1
  62. package/{cdn/assets/Ds-v1MKCCCRK5y__.js → browser/esm/BGAXiHOiX_PZ1ww12.mjs} +1 -1
  63. package/{cdn/assets/BsGIsDAUk9bSNC2-.js → browser/esm/BGWyNjrM55ce-D1o2.mjs} +1 -1
  64. package/browser/esm/{Bi2jbQd8mecebnRM2.mjs → BJQfvwvEke-uN0_02.mjs} +12 -4
  65. package/browser/esm/{BVGcECvfrJsTA5kD.mjs → BOMct7uvqiNJIS63.mjs} +2 -2
  66. package/{cdn/assets/BkgfJjCizaRuC_N5.js → browser/esm/BPAEbeXV75XIAS4n2.mjs} +1 -1
  67. package/{cdn/assets/D5F6MTHIhDIafUlO.js → browser/esm/BPwpFe7c1-F62aAU.mjs} +2 -2
  68. package/{cdn/assets/7R7r4iHAxN8rnOmW2.js → browser/esm/BQt5lpPjssz4Lvhs.mjs} +2 -2
  69. package/{cdn/assets/9XJnug1pfQreKXZr.js → browser/esm/BRBHACVjnV1_6VLQ2.mjs} +1 -1
  70. package/browser/esm/BT2mYkpZGrhWovkv2.mjs +238 -0
  71. package/browser/esm/{9LhOHxxuP2jO-YDv.mjs → BUKNpzG26V0YaAzW.mjs} +12 -12
  72. package/browser/esm/{BfmngO7uzIcK9Lux2.mjs → BZSAb1WGbwagUKGv2.mjs} +5 -5
  73. package/browser/esm/{BFIwPtz-TW4VvaZR.mjs → BZkd8LNLgEd5WQXO2.mjs} +1 -1
  74. package/{cdn/assets/Ccj-Gq_hyRtb93R-.js → browser/esm/B_U_UpQXdbjNRthb.mjs} +1 -1
  75. package/browser/esm/{Ba0_2fGhHSS7kV2l2.mjs → BaIe3fLfPLw3FbYP2.mjs} +1 -1
  76. package/browser/esm/{B27wXIrrKNvUzMGE.mjs → Bc2Dp6W4U_22cv7c.mjs} +1 -1
  77. package/{cdn/assets/DwGeIZ6nCjk9UiXk.js → browser/esm/Bce8ZTUCpXr5Y_zl.mjs} +1 -1
  78. package/browser/esm/{ioECgEEk-HCEo_qL.mjs → BetL7yI63lEdQ0gM.mjs} +1 -1
  79. package/browser/esm/{DJl3zpaAG7xtX-vB.mjs → BgNWvKfVoVgVVDB4.mjs} +13 -13
  80. package/browser/esm/{CZDNrQuttGG8SW_a2.mjs → BgwHVPZp494SgQ0d2.mjs} +7 -7
  81. package/browser/esm/{DRU8HlvNdJ-IdDad2.mjs → Bj3gyDL2ZJUDcxt72.mjs} +8 -8
  82. package/{cdn/assets/DavD7unX6vAvDq492.js → browser/esm/BjYIAiuzZbD-dk822.mjs} +1 -1
  83. package/{cdn/assets/Cl5KKGUmrf4e7lB3.js → browser/esm/Bjx-9lUaScF5-Hki2.mjs} +1 -1
  84. package/browser/esm/{ejd62mg_zHpVGhbH.mjs → BkBT2LB95lonIiBu.mjs} +7 -7
  85. package/{cdn/assets/_fGcdybbKg6_ekOp.js → browser/esm/BmTSjuGI87QqMA-a.mjs} +2 -2
  86. package/browser/esm/{BmNqTvvRVjF_c1qz.mjs → BqMvXD8dX4ksYjnj.mjs} +3 -3
  87. package/{cdn/assets/BJkZVLqBoBngX2V-.js → browser/esm/BrUe0MnOhxzeOngn2.mjs} +1 -1
  88. package/browser/esm/{D8iYbJIpITf1DL9N.mjs → BsP1iPcd49wYIIoP.mjs} +3 -3
  89. package/browser/esm/{Dnk-x1RHZ-HCYKGy2.mjs → BxecIrskOMQZB-Xc.mjs} +1 -1
  90. package/browser/esm/{B9epCKVFFaq_fX4j.mjs → ByJMrAYRARLc7uZQ2.mjs} +1 -1
  91. package/browser/esm/{Dr0aqIJxcsRdzQox2.mjs → Bz3-FDGVU67Izdnv2.mjs} +7 -7
  92. package/browser/esm/{DzujlnEzr0M92mNz.mjs → BzktrYJH7SQ9GyUI.mjs} +1 -1
  93. package/browser/esm/{CbGZtQlImYkXEGhI.mjs → C3dXBjR3SrDCdJlm.mjs} +6 -6
  94. package/browser/esm/{CTZpbsb07-ieZ8Sv.mjs → C4vqrW3EmJDy1otX.mjs} +1 -1
  95. package/browser/esm/{DqJYCOxMI0h7olt5.mjs → C7xBBqvPqat9oEft.mjs} +1 -1
  96. package/browser/esm/{D2fjpIsYf8xbJ3qt2.mjs → CBC_MJL6Bwk7bzQz.mjs} +1 -1
  97. package/browser/esm/{ytk4-EolaWr77_nC.mjs → CBuulf8RrSItPZJi.mjs} +2 -2
  98. package/browser/esm/{BnFl2afy78teEcaD.mjs → CElACTFuqPAnCAMJ.mjs} +4 -4
  99. package/browser/esm/{Btdn9KXWaFikV2VI.mjs → CFVzVz9BCRBowBea.mjs} +3 -3
  100. package/browser/esm/{ZFZ3X4ek1OFa4xKm.mjs → CFtsbobCiLpZIzCh.mjs} +3 -3
  101. package/browser/esm/{GzFeH6oCN6eWnXbX.mjs → CHmSnCPoww1StSta.mjs} +4 -4
  102. package/browser/esm/{DvFh-0k-PvKrKwkt.mjs → CJ-lOo2cXlcYrg2P.mjs} +5 -5
  103. package/browser/esm/{DL-6XEhXlHkvgtF_2.mjs → CJGlwQusOCSy9ZAb2.mjs} +1 -1
  104. package/browser/esm/{B6mzT3jt8PsKgBWH2.mjs → CRsnKeHAnKrWvuG52.mjs} +1271 -1233
  105. package/browser/esm/{uwB2_ERsYGldq4on2.mjs → CTwLETvNO4KeXbkK2.mjs} +1 -1
  106. package/{cdn/assets/BVRLpEysZKAgHCqC.js → browser/esm/CXDtDYyREwoFwtMJ2.mjs} +1 -1
  107. package/browser/esm/{AS-KiFBez1nwB_vC.mjs → CXlA71yGA1Hqvp_S.mjs} +5 -5
  108. package/browser/esm/{DafUQqzTsegjuTX92.mjs → CY4ANhbzXqZMJPnL2.mjs} +7 -7
  109. package/browser/esm/{DbmQdZUcujE_ICGk.mjs → Ca6NSkWoi9DvRJjQ.mjs} +3 -3
  110. package/{cdn/assets/zsqoPH22vSCRd7nP.js → browser/esm/CbJ_xQftC08KrH3E2.mjs} +1 -1
  111. package/{cdn/assets/BIklj1nwWIcZCmKp.js → browser/esm/Cd8G1nX1dKzp-mho2.mjs} +1 -1
  112. package/{cdn/assets/Dwplym5bjb2VhwM82.js → browser/esm/CfjG7gHJ4oN60Clj.mjs} +3 -3
  113. package/{cdn/assets/ClIlIFc_63tI2r9S.js → browser/esm/CmYCYFWjq9KP6xw72.mjs} +1 -1
  114. package/browser/esm/{CQhIZf112hMPFsjD2.mjs → CpEgh9EOkeMvwAuj.mjs} +1 -1
  115. package/{cdn/assets/D-YuVmmS-kKcV9xr2.js → browser/esm/CsKCqLuggHhYC93k2.mjs} +1 -1
  116. package/{cdn/assets/D_olfPNNH0l8JrFu.js → browser/esm/CxKAnYBWCYMkUpnr.mjs} +234 -228
  117. package/browser/esm/{DnS-xX8jkMERhPbF.mjs → Cye91DfKIFwRdDpF.mjs} +8 -8
  118. package/{cdn/assets/HA0CYoHHAU5VgVW5.js → browser/esm/D2Ls6urWeByV5W-B2.mjs} +1 -1
  119. package/browser/esm/{DeY3vEbV4T2WgYP22.mjs → D4aK0uTRJQpM6392.mjs} +1 -1
  120. package/{cdn/assets/BCcFKm-VY0gZ0TzZ.js → browser/esm/D5BuXc-kVnr6Xiae.mjs} +1 -1
  121. package/browser/esm/{Bp1kaqNxSV0Hskwb.mjs → D8zyGG6yt4CsyA8K.mjs} +7 -7
  122. package/{cdn/assets/DUVV-c3N8XuG8lyr.js → browser/esm/DENx9Ts-f8adXw3Y2.mjs} +1 -1
  123. package/browser/esm/{BVLamiPGpKQKiyPW2.mjs → DER7-kADXFnTmK-32.mjs} +13 -13
  124. package/browser/esm/{CshVZ7dBZzXK1qdP.mjs → DFQGftDcmDwUGxV8.mjs} +5 -5
  125. package/browser/esm/{C8KBkOocNYDNWBDu.mjs → DGfzktq0BrIwcb8j.mjs} +2 -2
  126. package/browser/esm/{B-cVGeAqeE1MJbcg2.mjs → DHQcJqD-EtJ0Efug2.mjs} +9 -9
  127. package/browser/esm/{DyDgU8THo8GBGQ4M.mjs → DJSXXWTUJGbXqLLx.mjs} +1 -1
  128. package/browser/esm/{me8l7609yOrUhpBU2.mjs → DJk14sSSnSHiEXZ72.mjs} +1 -1
  129. package/{cdn/assets/Wy-cTg0gDeXuKv0a.js → browser/esm/DLArQtAbWAarI8od2.mjs} +1 -1
  130. package/{cdn/assets/CwRqY3jy0pkU72Ty.js → browser/esm/DM4g0nYgYXgI44dL2.mjs} +1 -1
  131. package/browser/esm/{BfkghIcy-zOKLz4c.mjs → DOIVDuyf7YyJZjcD.mjs} +2 -2
  132. package/{cdn/assets/DcTAnKNgB4UiSyH-2.js → browser/esm/DOsKUeLPwFIdzQv32.mjs} +1 -1
  133. package/{cdn/assets/B609gZLpNve9hsr-.js → browser/esm/DRAYZ0SGlbCLkftR2.mjs} +1 -1
  134. package/browser/esm/{DMXx0lIMiLsQgbVK.mjs → DSWdYe7SDB5cYWo5.mjs} +5 -5
  135. package/browser/esm/{BZ6ssyp3xvgxb4Ux2.mjs → D_8B8jIlshd3eTIO2.mjs} +11 -11
  136. package/{cdn/assets/TikP0KAVISVw72_42.js → browser/esm/DdaO25i-WWFSh1W0.mjs} +321 -313
  137. package/{cdn/assets/BwbtHh-oXpG5mLZu2.js → browser/esm/DdtDlBp6KJZjL28o.mjs} +1119 -1046
  138. package/browser/esm/{DpjPEgS5W70lK0GU.mjs → DhW7Cqyuxk7D6zsW.mjs} +12 -12
  139. package/browser/esm/{B3N4rAHBBKghSNf-.mjs → DhgwMDb052opCiAA.mjs} +1895 -1513
  140. package/{cdn/assets/CKGUrocJnCQ7uGt72.js → browser/esm/DimkHq0_x-d4uNdV.mjs} +4716 -3854
  141. package/{cdn/assets/CpD0Rq1ei0UW4wvV2.js → browser/esm/DjS4iUli-T3uuUfK.mjs} +1 -1
  142. package/{cdn/assets/q1AmoBDraQE-T8im2.js → browser/esm/DmqS0kz7jvlOw3qr.mjs} +2 -2
  143. package/browser/esm/{BJhMeXHgj2izJPad.mjs → DnCkPg9-xb3RvxD-.mjs} +7 -7
  144. package/browser/esm/{Z4L_LGr5jeXjCPo6.mjs → DnMUizHKSRwWpO_7.mjs} +1 -1
  145. package/{cdn/assets/CDVkQjbphikzy5cP.js → browser/esm/DrKUGkrCTKZHu8XC.mjs} +1 -1
  146. package/browser/esm/{CtPuA7JjziKZTOy4.mjs → DtkqR-Hu7K4agnCs.mjs} +1 -1
  147. package/browser/esm/{tEoFD7IKo7vDcL80.mjs → DuJ_gK9f35IbKDd6.mjs} +846 -812
  148. package/browser/esm/{CTpri2fSv5dZbUwJ.mjs → Duo6t8_BzIiBDrFm.mjs} +4086 -3710
  149. package/browser/esm/{DJoktru8Ln1idAEk2.mjs → Dwko6HB2zePBBeBu2.mjs} +7 -7
  150. package/browser/esm/{CCH2N2D6f4m3sxHV.mjs → DxxlSejA2S6YUPWD.mjs} +242 -224
  151. package/browser/esm/{CukE7coIERV0PmeU2.mjs → DygUxASTETZM60uN2.mjs} +6 -6
  152. package/browser/esm/{C0Cbiq1ZKs0s-oUn.mjs → Eszk9OugmYOhaS2s.mjs} +2 -2
  153. package/browser/esm/{CVtQ8m0S6nnXk7XH.mjs → FAHIw2t7_M_rvRio.mjs} +6 -6
  154. package/browser/esm/{39GslBYZKZUJpjcX.mjs → FVJ1akngxeMiYwPa.mjs} +1 -1
  155. package/browser/esm/{DYhGe1HslNmi3MWF.mjs → HFqcMD9nTL0jdLxT.mjs} +1 -1
  156. package/browser/esm/{COZ775SOX8hXz68T2.mjs → L6LjzOx1G9Idjtxa2.mjs} +1 -1
  157. package/{cdn/assets/BJahzXLdJMKJrGJ82.js → browser/esm/MHuhAgQAA8zcnWkd.mjs} +1 -1
  158. package/browser/esm/{CH-EdTSDEYE7IaBC.mjs → N-koparnupMSl92y.mjs} +665 -603
  159. package/browser/esm/{0HCb-Mkw8Otpj9B6.mjs → O982fBwJ80FSdhad.mjs} +43 -43
  160. package/browser/esm/{BrmKrgxwVxzOs8v9.mjs → PAu9erpoOTNzgNbN.mjs} +2 -2
  161. package/{cdn/assets/BXzrl80_N9hn_3462.js → browser/esm/PzCXbVRf1jOHVOAw.mjs} +1 -1
  162. package/browser/esm/{C5wklWg-nVHGfhda.mjs → XBb7Mxqf0beXaSJt.mjs} +6 -6
  163. package/browser/esm/{TJB9Rw8_wY-D-aKa2.mjs → Ykh10IaXTKA2XWot.mjs} +1 -1
  164. package/browser/esm/{CTdaEmBnApCaYU--.mjs → esX6dx06TUUL-cRt.mjs} +1 -1
  165. package/{cdn/assets/D4e9Z6yAYtli_UZy.js → browser/esm/evPbHV86yom22yGf2.mjs} +1150 -1087
  166. package/{cdn/assets/CTsLj1vEfSqm_tm4.js → browser/esm/g8dDbkwbYjhKWJM22.mjs} +1 -1
  167. package/browser/esm/{IPVHjbNIjyMsOxUR.mjs → hsy1zALC1oNNm5Sf.mjs} +1 -1
  168. package/browser/esm/index.mjs +6 -6
  169. package/browser/esm/{BXOm0hdx068QsENe.mjs → ohVj-y1gCC9PEHJI.mjs} +3 -3
  170. package/browser/esm/{BwYNDge9HsfAlKEk.mjs → pFBVGSvmImMMDMuJ.mjs} +5 -5
  171. package/browser/esm/{BKY2gKXOB637hih-.mjs → s4trFf5sOSGNEzr3.mjs} +6 -6
  172. package/cdn/assets/{CMBLrQ2K32IKaZHu.js → 5LJ1sC7IPn109Ien.js} +2 -2
  173. package/cdn/assets/{CyhnDYQf3_cdp52w2.js → 6L6HfOFw1xzxXtf22.js} +216 -198
  174. package/{browser/esm/COgR28nGHeL59WLY.mjs → cdn/assets/B-dSKzg5shPDd733.js} +1 -1
  175. package/cdn/assets/{CXULuRUQ4TAsm84q.js → B0N6rTGGJN2DZPaf.js} +2 -2
  176. package/cdn/assets/{Dp_KsQdcEefYydgO2.js → B2BvBxjz3Kfii_Gn2.js} +1532 -1494
  177. package/cdn/assets/{CWdwxTP6ZBP_KJE42.js → B3ZyfwskutLZMYfl2.js} +7 -7
  178. package/{browser/esm/MIcNDPtZ2tOqEJLi.mjs → cdn/assets/B3tC7wY_kUGXf5sb.js} +1 -1
  179. package/{browser/esm/CkRTvOlXWFrTaFLB.mjs → cdn/assets/B4492m5zRjz4JWIo2.js} +1119 -1046
  180. package/cdn/assets/{CZVi5-MceLzKtZCX.js → B4fSPDN923nqCDVE.js} +1 -1
  181. package/{browser/esm/DCILZE5X4dLAM7Qa.mjs → cdn/assets/B6Y_HasaiihQLVYz2.js} +321 -313
  182. package/cdn/assets/{olHQykNiRoLYpdJB.js → B8ok93z6wOu1Mo5H.js} +5 -5
  183. package/cdn/assets/{B9HUtdLQ29C5hAM2.js → BF9yh58xfvR0KbSo.js} +2 -2
  184. package/{browser/esm/Ds-v1MKCCCRK5y__2.mjs → cdn/assets/BGAXiHOiX_PZ1ww1.js} +1 -1
  185. package/{browser/esm/BsGIsDAUk9bSNC2-2.mjs → cdn/assets/BGWyNjrM55ce-D1o.js} +1 -1
  186. package/cdn/assets/{nzKpfea1MNkFBMak.js → BIPjogMyMmLRly43.js} +7 -7
  187. package/{browser/esm/gd127f9DAewQX3YF.mjs → cdn/assets/BO2NRW9sjHGE9tg-2.js} +2 -2
  188. package/cdn/assets/{DfzSY0wpTYYTWIY2.js → BOTU30yJHbaNehFS.js} +8 -8
  189. package/{browser/esm/BkgfJjCizaRuC_N52.mjs → cdn/assets/BPAEbeXV75XIAS4n.js} +1 -1
  190. package/{browser/esm/9XJnug1pfQreKXZr2.mjs → cdn/assets/BRBHACVjnV1_6VLQ.js} +1 -1
  191. package/cdn/assets/{BQvxcrhV7qxXjTHq.js → BZXvEddjoz4C8y4w.js} +2 -2
  192. package/cdn/assets/{BFIwPtz-TW4VvaZR2.js → BZkd8LNLgEd5WQXO.js} +1 -1
  193. package/{browser/esm/Ccj-Gq_hyRtb93R-.mjs → cdn/assets/B_U_UpQXdbjNRthb.js} +1 -1
  194. package/cdn/assets/{Ba0_2fGhHSS7kV2l.js → BaIe3fLfPLw3FbYP2.js} +1 -1
  195. package/cdn/assets/{B27wXIrrKNvUzMGE2.js → Bc2Dp6W4U_22cv7c2.js} +1 -1
  196. package/{browser/esm/DwGeIZ6nCjk9UiXk2.mjs → cdn/assets/Bce8ZTUCpXr5Y_zl2.js} +1 -1
  197. package/cdn/assets/{s_afm7GAx-6Ktr_x.js → BdhFhDEa7Xed6dFE.js} +17330 -16955
  198. package/cdn/assets/{B102zq0Z2de_ly2m.js → BdmCBWTVHb7KuHxO2.js} +672 -610
  199. package/cdn/assets/{ioECgEEk-HCEo_qL2.js → BetL7yI63lEdQ0gM2.js} +1 -1
  200. package/cdn/assets/{CTzZ6Xzw63GKixmU2.js → Bfd3T36ocASPZddR.js} +846 -812
  201. package/cdn/assets/{w9gI9mzOHGtRSOFe.js → Bh4hZt6639QZusIG.js} +2 -2
  202. package/cdn/assets/{DtFr2Mm_KqU6PZfY.js → Bj8bWbLg1IY965tK.js} +8 -8
  203. package/{browser/esm/CtCW25b0E8FaH1jL.mjs → cdn/assets/BjN8kU7URKZwGlmk2.js} +3 -3
  204. package/{browser/esm/DavD7unX6vAvDq49.mjs → cdn/assets/BjYIAiuzZbD-dk82.js} +1 -1
  205. package/{browser/esm/Cl5KKGUmrf4e7lB32.mjs → cdn/assets/Bjx-9lUaScF5-Hki.js} +1 -1
  206. package/{browser/esm/BZDhc9cFdvb2DZp52.mjs → cdn/assets/BouCHi6QnBrUDYkx.js} +1150 -1087
  207. package/{browser/esm/BJkZVLqBoBngX2V-2.mjs → cdn/assets/BrUe0MnOhxzeOngn.js} +1 -1
  208. package/cdn/assets/{Dnk-x1RHZ-HCYKGy.js → BxecIrskOMQZB-Xc.js} +1 -1
  209. package/cdn/assets/{B9epCKVFFaq_fX4j.js → ByJMrAYRARLc7uZQ.js} +1 -1
  210. package/cdn/assets/{CurA0H2pTTmFWY4N.js → BynqRVXFRplO7XgC.js} +2 -2
  211. package/{browser/esm/CpD0Rq1ei0UW4wvV.mjs → cdn/assets/BzktrYJH7SQ9GyUI2.js} +1 -1
  212. package/cdn/assets/{CTZpbsb07-ieZ8Sv.js → C4vqrW3EmJDy1otX.js} +1 -1
  213. package/cdn/assets/{DqJYCOxMI0h7olt52.js → C7xBBqvPqat9oEft2.js} +1 -1
  214. package/cdn/assets/{D2fjpIsYf8xbJ3qt.js → CBC_MJL6Bwk7bzQz2.js} +1 -1
  215. package/cdn/assets/{CzQUeHmA3XvLXm-s2.js → CDqMmEdh_CPaFCCi2.js} +16 -12
  216. package/cdn/assets/{BvONQrMoKCUSnkqN.js → CIgn8uIPaadIJP4a2.js} +10 -10
  217. package/cdn/assets/{DL-6XEhXlHkvgtF_.js → CJGlwQusOCSy9ZAb.js} +1 -1
  218. package/cdn/assets/{Boe-L-sc0zC0Cw5N.js → CLhSKL0Xdm8miSTy.js} +3 -3
  219. package/cdn/assets/{ByJlomQcLV_4oZGw2.js → CSkSOhGT8E29E2Nh2.js} +4 -4
  220. package/cdn/assets/{uwB2_ERsYGldq4on.js → CTwLETvNO4KeXbkK.js} +1 -1
  221. package/{browser/esm/BVRLpEysZKAgHCqC.mjs → cdn/assets/CXDtDYyREwoFwtMJ.js} +1 -1
  222. package/{browser/esm/CySaHP1TkAtt7IqW.mjs → cdn/assets/CXrcgTVB77CopjOJ.js} +2 -2
  223. package/cdn/assets/{Cge4sxB_4OwAQwod.js → CY7qR8ENX314HrrD.js} +3 -3
  224. package/cdn/assets/{CqFZWOO-31j7rHdf.js → Cb71rZAQvCk3wnfp.js} +6 -6
  225. package/{browser/esm/zsqoPH22vSCRd7nP2.mjs → cdn/assets/CbJ_xQftC08KrH3E.js} +1 -1
  226. package/cdn/assets/{C8cUmy4K0YRcXOBu2.js → CblzazoiTtSuaAkj.js} +9 -9
  227. package/{browser/esm/BIklj1nwWIcZCmKp2.mjs → cdn/assets/Cd8G1nX1dKzp-mho.js} +1 -1
  228. package/{browser/esm/B2pyobtSQ_9fn__o.mjs → cdn/assets/CdPxVRKpCOqCDHI8.js} +234 -228
  229. package/cdn/assets/{xH_Bg7r0fryoCvSl2.js → CgsQuAbp76UOAPHm2.js} +48 -48
  230. package/cdn/assets/{ko_gqiF0zCGAHO1l2.js → CimYGZTVXcjbjrBU2.js} +13 -13
  231. package/{browser/esm/ClIlIFc_63tI2r9S2.mjs → cdn/assets/CmYCYFWjq9KP6xw7.js} +1 -1
  232. package/cdn/assets/{DzRXZ_mhd60oh-A52.js → CnfGgjuCEyX-PYs_2.js} +12 -12
  233. package/cdn/assets/{CQhIZf112hMPFsjD.js → CpEgh9EOkeMvwAuj.js} +1 -1
  234. package/{browser/esm/D-YuVmmS-kKcV9xr.mjs → cdn/assets/CsKCqLuggHhYC93k.js} +1 -1
  235. package/cdn/assets/{CbWjq5gAF4Empxh12.js → CuIUyLNDoHvYMJaQ2.js} +14 -14
  236. package/{browser/esm/DD_-Q_s0aq0ehCRj.mjs → cdn/assets/D-tQc4bi3FzGVnFg.js} +2 -2
  237. package/{browser/esm/HA0CYoHHAU5VgVW5.mjs → cdn/assets/D2Ls6urWeByV5W-B.js} +1 -1
  238. package/cdn/assets/{DeY3vEbV4T2WgYP2.js → D4aK0uTRJQpM63922.js} +1 -1
  239. package/cdn/assets/{CVuIbopxUvt0-2rL.js → D57KcDfTbBzf_NGr.js} +7 -7
  240. package/{browser/esm/BCcFKm-VY0gZ0TzZ.mjs → cdn/assets/D5BuXc-kVnr6Xiae2.js} +1 -1
  241. package/cdn/assets/{dL4ou82v-pjouw0s2.js → DEFEOS3OuA23llF92.js} +12 -12
  242. package/{browser/esm/DUVV-c3N8XuG8lyr2.mjs → cdn/assets/DENx9Ts-f8adXw3Y.js} +1 -1
  243. package/cdn/assets/{WMPhjIQfI4mQp3Bg.js → DEyeWdXLwDRo2yYf2.js} +8 -8
  244. package/cdn/assets/{HfJJBylzZ4Z4VNp82.js → DGWhm91XZlY1GWHe2.js} +6 -6
  245. package/cdn/assets/{bY52psG3lmpa706j2.js → DJHOKENCVOJMx3aE2.js} +9 -9
  246. package/cdn/assets/{DyDgU8THo8GBGQ4M.js → DJSXXWTUJGbXqLLx.js} +1 -1
  247. package/cdn/assets/{me8l7609yOrUhpBU.js → DJk14sSSnSHiEXZ7.js} +1 -1
  248. package/{browser/esm/Wy-cTg0gDeXuKv0a2.mjs → cdn/assets/DLArQtAbWAarI8od.js} +1 -1
  249. package/{browser/esm/CwRqY3jy0pkU72Ty2.mjs → cdn/assets/DM4g0nYgYXgI44dL.js} +1 -1
  250. package/{browser/esm/DcTAnKNgB4UiSyH-2.mjs → cdn/assets/DOsKUeLPwFIdzQv32.js} +1 -1
  251. package/cdn/assets/{B0iMXJrxCR1TmwMa2.js → DP9sLYfGGWMDI7hL2.js} +8 -8
  252. package/cdn/assets/{kaSysgj5TE-xQXsG2.js → DQhvG3cP0HPB6giA2.js} +5 -5
  253. package/{browser/esm/B609gZLpNve9hsr-2.mjs → cdn/assets/DRAYZ0SGlbCLkftR.js} +1 -1
  254. package/cdn/assets/{DXnM0BURZgjm8R2W.js → DW2yQm-sEcHogX7E.js} +8 -8
  255. package/{browser/esm/BHdUUWliTWsGcyUW.mjs → cdn/assets/DY9zG4TdF0FAs_QP2.js} +2 -2
  256. package/cdn/assets/{CiIadd7oAsvq2iR9.js → DaX0_AkJxkaUnNT7.js} +7 -7
  257. package/cdn/assets/{CkqsTJkl1cuZl14R.js → DeFts-aGqB-RDuV1.js} +6 -6
  258. package/cdn/assets/{TGZuqw2NN_OSIJO0.js → Dgt8kua8CYlMRfdw.js} +2 -2
  259. package/cdn/assets/{BXRMXZjJExEHTMfL2.js → Dhq9e6LCpmlIkFod.js} +72 -72
  260. package/cdn/assets/{DWX7iaXMf0PrhOuh.js → DiKc6jzGM1isrN02.js} +3 -3
  261. package/cdn/assets/DjS4iUli-T3uuUfK.js +24 -0
  262. package/cdn/assets/DjS4iUli-T3uuUfK2.js +24 -0
  263. package/cdn/assets/{DZn5mtzClpE29qV5.js → DjfBSoaKM-vtbeqT.js} +2 -2
  264. package/cdn/assets/{r4hni7MWaP9SUvzC.js → DlLXCXDokJ72EW-E.js} +7 -7
  265. package/cdn/assets/{Z4L_LGr5jeXjCPo62.js → DnMUizHKSRwWpO_72.js} +1 -1
  266. package/cdn/assets/{Dctsk-QW8KKUje0b2.js → DoJfPxuL3zziG4p62.js} +13 -13
  267. package/cdn/assets/{CvC5oy9uXPzktYaz2.js → DpNYiOK112bFC3KK2.js} +11 -3
  268. package/cdn/assets/{SHgLeVOmAOO6qQOR2.js → Dq7WxMef5CTJ47QI2.js} +7 -7
  269. package/cdn/assets/{C6v7rU3plIdoUWre2.js → Dr1U0I01_KIa9vgR2.js} +8 -8
  270. package/{browser/esm/CDVkQjbphikzy5cP2.mjs → cdn/assets/DrKUGkrCTKZHu8XC.js} +1 -1
  271. package/cdn/assets/{CtPuA7JjziKZTOy42.js → DtkqR-Hu7K4agnCs2.js} +1 -1
  272. package/cdn/assets/{DacWhkcqwjK3VnAA2.js → Dy5Z2XIqS7-0tdjc2.js} +41 -41
  273. package/cdn/assets/{39GslBYZKZUJpjcX.js → FVJ1akngxeMiYwPa.js} +1 -1
  274. package/cdn/assets/{DYhGe1HslNmi3MWF2.js → HFqcMD9nTL0jdLxT2.js} +1 -1
  275. package/cdn/assets/{Cl2Y6toZDsktHGlZ.js → HeznPoDlSj26Q4lq.js} +2403 -2022
  276. package/cdn/assets/JL1xk8XqkuTOA_as2.js +239 -0
  277. package/cdn/assets/{BOSnQONqTqkqjHEU.js → KJzdwvEWwCwAXuo4.js} +6 -6
  278. package/cdn/assets/{COZ775SOX8hXz68T.js → L6LjzOx1G9Idjtxa.js} +1 -1
  279. package/{browser/esm/BJahzXLdJMKJrGJ8.mjs → cdn/assets/MHuhAgQAA8zcnWkd2.js} +1 -1
  280. package/{browser/esm/BDJXGdb3hQGrna00.mjs → cdn/assets/NZO3-fDBtqhmCsbB2.js} +4716 -3854
  281. package/{browser/esm/BXzrl80_N9hn_346.mjs → cdn/assets/PzCXbVRf1jOHVOAw.js} +1 -1
  282. package/cdn/assets/{Dm-vUbnccwQ63uHt.js → Wb48SedqaKMZnxym.js} +4 -4
  283. package/cdn/assets/{Dungsxp8KcjLsV23.js → Wsgx1I_j1chJ6hwn.js} +7 -7
  284. package/cdn/assets/{Dzxg4kLxKyMklPNe2.js → XSUr59k0gaFIS1Qf2.js} +3 -3
  285. package/cdn/assets/{TJB9Rw8_wY-D-aKa.js → Ykh10IaXTKA2XWot2.js} +1 -1
  286. package/cdn/assets/{CTdaEmBnApCaYU--2.js → esX6dx06TUUL-cRt.js} +1 -1
  287. package/{browser/esm/CTsLj1vEfSqm_tm42.mjs → cdn/assets/g8dDbkwbYjhKWJM2.js} +1 -1
  288. package/cdn/assets/{C5yCm-TSfx74xL002.js → hClmI7sWeaBbHo3W2.js} +12 -12
  289. package/cdn/assets/{IPVHjbNIjyMsOxUR2.js → hsy1zALC1oNNm5Sf.js} +1 -1
  290. package/cdn/assets/{BwJlIoU5gbBMo6Q5.js → llvXNxZaCMnYqvSm.js} +3 -3
  291. package/cdn/assets/{DMBv9-cZDNgrEPnj.js → omgRvCRxe7suvog8.js} +105 -105
  292. package/cdn/assets/{nBpkSj6rxz09lHp42.js → xMskoOI2CK9-AmBF2.js} +7 -7
  293. package/cdn/assets/{BO2RVHzXl9yxZmKM.js → zrS_ERBQML_OXJ4J.js} +3 -3
  294. package/cdn/index.js +2 -2
  295. package/package.json +3 -3
  296. package/browser/cjs/3xD-77z5V9IlNXjn2.cjs +0 -1
  297. package/browser/cjs/BH_9BSdzWI3sYvEo2.cjs +0 -1
  298. package/browser/cjs/BeYzZkmTef6nGcoR.cjs +0 -2
  299. package/browser/cjs/BtuU_zhIvl9orhXJ2.cjs +0 -1
  300. package/browser/cjs/BxP_CBFuJxlFVfJP2.cjs +0 -1
  301. package/browser/cjs/CBXWKzJggj62dtpP.cjs +0 -1
  302. package/browser/cjs/CVvPoEKURol1Aftd.cjs +0 -1
  303. package/browser/cjs/Cdi9twdv4KfAl5I72.cjs +0 -7
  304. package/browser/cjs/Crk724Yv2awixZFL.cjs +0 -33
  305. package/browser/cjs/DE8xPZdgqnIs7vdp.cjs +0 -86
  306. package/browser/cjs/Di-65J92p03pfERi.cjs +0 -5
  307. package/browser/cjs/LObFxO4TDyRQ2l05.cjs +0 -12
  308. package/browser/cjs/X5Grge615whs1q_I2.cjs +0 -1
  309. package/browser/cjs/Y37Q7YjNKfaPg9qC.cjs +0 -1
  310. package/browser/cjs/dJ3N_yPCcdiUsFNY.cjs +0 -3
  311. package/browser/cjs/jQhVJbABYXmAnYFf.cjs +0 -1
  312. package/browser/cjs/jgba8pT4LamzxlS8.cjs +0 -1
  313. package/browser/esm/EHwbgKRgADVAwQbs2.mjs +0 -193
  314. package/cdn/assets/COnOkTReK4TBuBx52.js +0 -194
  315. package/cdn/assets/D0OOkDRea_6_jbt2.js +0 -24
  316. package/cdn/assets/D0OOkDRea_6_jbt22.js +0 -24
  317. /package/browser/cjs/{BWDfauDHqB6U_2ka.cjs → BWDfauDHqB6U_2ka2.cjs} +0 -0
  318. /package/browser/cjs/{C2uDl8VIJqh58YF_.cjs → C2uDl8VIJqh58YF_2.cjs} +0 -0
  319. /package/browser/cjs/{CJYewYJ5Z3iojl7J2.cjs → CJYewYJ5Z3iojl7J.cjs} +0 -0
  320. /package/browser/cjs/{CV4KQsHluMqo1I2Q.cjs → CV4KQsHluMqo1I2Q2.cjs} +0 -0
  321. /package/browser/cjs/{CW-b31_-r-_raT8Y2.cjs → CW-b31_-r-_raT8Y.cjs} +0 -0
  322. /package/browser/cjs/{CXlzsh_WHCOsErJ1.cjs → CXlzsh_WHCOsErJ12.cjs} +0 -0
  323. /package/browser/cjs/{Clu7XiAsCB48GDXN2.cjs → Clu7XiAsCB48GDXN.cjs} +0 -0
  324. /package/browser/cjs/{CnZfa45XxA-9Jhmp2.cjs → CnZfa45XxA-9Jhmp.cjs} +0 -0
  325. /package/browser/cjs/{CpJJh4UnFl1_qFui2.cjs → CpJJh4UnFl1_qFui.cjs} +0 -0
  326. /package/browser/cjs/{CrZlUtdX1h2RUnCP2.cjs → CrZlUtdX1h2RUnCP.cjs} +0 -0
  327. /package/browser/cjs/{D8-KovdJ0LjxqCe22.cjs → D8-KovdJ0LjxqCe2.cjs} +0 -0
  328. /package/browser/cjs/{DCIlWcGDrp-5PDoA.cjs → DCIlWcGDrp-5PDoA2.cjs} +0 -0
  329. /package/browser/cjs/{h3dw1jAp2J5Pu4p3.cjs → h3dw1jAp2J5Pu4p32.cjs} +0 -0
  330. /package/browser/cjs/{z_rZE1OHFPpdGBh4.cjs → z_rZE1OHFPpdGBh42.cjs} +0 -0
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.2
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.4
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { t as e } from "./D0OOkDRea_6_jbt22.js";
8
- import { A as t, C as n, F as r, l as i, s as a } from "./ioECgEEk-HCEo_qL2.js";
9
- import { a as o, l as s } from "./DqJYCOxMI0h7olt52.js";
10
- import { F as c, Ht as l, X as u, Yt as d, ct as f, r as p } from "./CKGUrocJnCQ7uGt72.js";
11
- import { m } from "./TikP0KAVISVw72_42.js";
12
- import { a as h, c as g, d as _, l as ee, n as v, o as te, p as ne, u as re } from "./ByJlomQcLV_4oZGw2.js";
13
- import { H as ie, L as ae, M as oe, N as se, O as ce, R as le, S as ue, a as de, b as fe, c as y, f as pe, h as b, i as x, j as me, m as S, n as he, p as ge, r as _e, s as ve, t as C, u as w, v as ye, x as T, z as be } from "./BwbtHh-oXpG5mLZu2.js";
14
- var E = /* @__PURE__ */ new Uint8Array(), D = class e {
7
+ import { t as e } from "./DjS4iUli-T3uuUfK2.js";
8
+ import { A as t, C as n, F as r, l as i, s as a } from "./BetL7yI63lEdQ0gM2.js";
9
+ import { a as o, l as s } from "./C7xBBqvPqat9oEft2.js";
10
+ import { B as c, H as l, Mt as u, Rt as d, n as f, q as p } from "./NZO3-fDBtqhmCsbB2.js";
11
+ import { m } from "./B6Y_HasaiihQLVYz2.js";
12
+ import { A as ee, B as h, D as g, H as _, K as v, L as y, P as te, R as ne, S as re, U as ie, V as ae, _ as oe, a as se, b, d as x, g as S, i as ce, j as le, k as C, m as w, o as T, p as E, r as ue, w as de, x as fe, y as pe, z as me } from "./B4492m5zRjz4JWIo2.js";
13
+ import { a as D, c as O, d as he, l as ge, n as _e, o as ve, p as ye, u as be } from "./CSkSOhGT8E29E2Nh2.js";
14
+ var k = /* @__PURE__ */ new Uint8Array(), xe = class e {
15
15
  constructor(e, t, n) {
16
16
  this.buffers = /* @__PURE__ */ new Map(), this.zip = e, this.entries = t, this.rawBuffer = n;
17
17
  }
@@ -19,7 +19,7 @@ var E = /* @__PURE__ */ new Uint8Array(), D = class e {
19
19
  return e.startsWith("/") ? e.slice(1) : e;
20
20
  }
21
21
  static async create(t) {
22
- let n = t instanceof Blob ? E : t instanceof Uint8Array ? t : new Uint8Array(t), r = new ae(t instanceof Blob ? new w(t) : new y(n)), i = /* @__PURE__ */ new Map();
22
+ let n = t instanceof Blob ? k : t instanceof Uint8Array ? t : new Uint8Array(t), r = new C(t instanceof Blob ? new h(t) : new ie(n)), i = /* @__PURE__ */ new Map();
23
23
  for (let e of await r.getEntries()) e.directory || i.set(e.filename, e);
24
24
  return new e(r, i, n);
25
25
  }
@@ -37,12 +37,12 @@ var E = /* @__PURE__ */ new Uint8Array(), D = class e {
37
37
  if (r) return r;
38
38
  let i = this.entries.get(n);
39
39
  if (!i) return null;
40
- let a = await i.getData(new S());
40
+ let a = await i.getData(new b());
41
41
  return this.buffers.set(n, a), a;
42
42
  }
43
43
  async prefetch(e) {
44
44
  let t = [];
45
- for (let [n, r] of this.entries) !this.buffers.has(n) && e(n, r) && t.push(r.getData(new S()).then((e) => {
45
+ for (let [n, r] of this.entries) !this.buffers.has(n) && e(n, r) && t.push(r.getData(new b()).then((e) => {
46
46
  this.buffers.set(n, e);
47
47
  }));
48
48
  await Promise.all(t);
@@ -85,18 +85,18 @@ var E = /* @__PURE__ */ new Uint8Array(), D = class e {
85
85
  async close() {
86
86
  await this.zip.close();
87
87
  }
88
- }, O = class {
88
+ }, Se = class {
89
89
  constructor(e) {
90
- this._sink = e, this._samples = [], this._t0 = k(), this._tPrev = this._t0, this._heapPrev = A();
90
+ this._sink = e, this._samples = [], this._t0 = A(), this._tPrev = this._t0, this._heapPrev = j();
91
91
  }
92
92
  mark(e) {
93
- let t = k(), n = A(), r = {
93
+ let t = A(), n = j(), r = {
94
94
  label: e,
95
95
  tMs: t - this._t0,
96
96
  dtMs: t - this._tPrev,
97
97
  heapBytes: n,
98
98
  dHeapBytes: n !== void 0 && this._heapPrev !== void 0 ? n - this._heapPrev : void 0,
99
- rssBytes: xe()
99
+ rssBytes: Ce()
100
100
  };
101
101
  this._tPrev = t, this._heapPrev = n, this._samples.push(r), this._sink?.(r);
102
102
  }
@@ -108,91 +108,91 @@ var E = /* @__PURE__ */ new Uint8Array(), D = class e {
108
108
  phase: e.label,
109
109
  tMs: Math.round(e.tMs),
110
110
  dtMs: Math.round(e.dtMs),
111
- heapMB: e.heapBytes === void 0 ? "—" : Se(e.heapBytes / 1048576),
112
- dHeapMB: e.dHeapBytes === void 0 ? "—" : Se(e.dHeapBytes / 1048576),
113
- rssMB: e.rssBytes === void 0 ? "—" : Se(e.rssBytes / 1048576)
111
+ heapMB: e.heapBytes === void 0 ? "—" : we(e.heapBytes / 1048576),
112
+ dHeapMB: e.dHeapBytes === void 0 ? "—" : we(e.dHeapBytes / 1048576),
113
+ rssMB: e.rssBytes === void 0 ? "—" : we(e.rssBytes / 1048576)
114
114
  }));
115
115
  }
116
- }, k = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
117
- function A() {
116
+ }, A = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
117
+ function j() {
118
118
  let e = typeof performance == "object" ? performance.memory : void 0;
119
119
  if (e && typeof e.usedJSHeapSize == "number") return e.usedJSHeapSize;
120
120
  let t = globalThis.process;
121
121
  return typeof t == "object" && typeof t.memoryUsage == "function" ? t.memoryUsage().heapUsed : void 0;
122
122
  }
123
- function xe() {
123
+ function Ce() {
124
124
  let e = globalThis.process;
125
125
  if (typeof e == "object" && typeof e.memoryUsage == "function") return e.memoryUsage().rss;
126
126
  }
127
- function Se(e) {
127
+ function we(e) {
128
128
  return Math.round(10 * e) / 10;
129
129
  }
130
- var j = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ce = `-${j}.0-9·̀-ͯ‿-⁀`, we = (RegExp(`^[${j}]$`, "u"), RegExp(`^[${Ce}]$`, "u"), RegExp(`^[${j}][${Ce}]*$`, "u")), M = (RegExp(`^[${Ce}]+$`, "u"), [
130
+ var M = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", N = `-${M}.0-9·̀-ͯ‿-⁀`, Te = (RegExp(`^[${M}]$`, "u"), RegExp(`^[${N}]$`, "u"), RegExp(`^[${M}][${N}]*$`, "u")), Ee = (RegExp(`^[${N}]+$`, "u"), [
131
131
  32,
132
132
  10,
133
133
  13,
134
134
  9
135
135
  ]);
136
- function N(e) {
136
+ function P(e) {
137
137
  return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 58 || e === 95 || e === 8204 || e === 8205 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 767 || e >= 880 && e <= 893 || e >= 895 && e <= 8191 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
138
138
  }
139
- var P = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", F = `-${P}.0-9·̀-ͯ‿-⁀`;
140
- RegExp(`^[${P}]$`, "u"), RegExp(`^[${F}]$`, "u"), RegExp(`^[${P}][${F}]*$`, "u"), RegExp(`^[${F}]+$`, "u");
141
- var I = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", L = `-${I}.0-9·̀-ͯ‿-⁀`, R = (RegExp(`^[${I}]$`, "u"), RegExp(`^[${L}]$`, "u"), RegExp(`^[${I}][${L}]*$`, "u"));
142
- function Te(e) {
139
+ var F = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", I = `-${F}.0-9·̀-ͯ‿-⁀`;
140
+ RegExp(`^[${F}]$`, "u"), RegExp(`^[${I}]$`, "u"), RegExp(`^[${F}][${I}]*$`, "u"), RegExp(`^[${I}]+$`, "u");
141
+ var De = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Oe = `-${De}.0-9·̀-ͯ‿-⁀`, L = (RegExp(`^[${De}]$`, "u"), RegExp(`^[${Oe}]$`, "u"), RegExp(`^[${De}][${Oe}]*$`, "u"));
142
+ function ke(e) {
143
143
  return e >= 65 && e <= 90 || e === 95 || e >= 97 && e <= 122 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 767 || e >= 880 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
144
144
  }
145
- var z, Ee, B = function(e) {
145
+ var R, Ae, z = function(e) {
146
146
  return e === 32 || e === 10 || e === 13 || e === 9;
147
- }, De = function(e) {
147
+ }, je = function(e) {
148
148
  return e >= 32 && e <= 55295 || e === 10 || e === 13 || e === 9 || e >= 57344 && e <= 65533 || e >= 65536 && e <= 1114111;
149
- }, Oe = N, V = function(e) {
150
- return N(e) || e >= 48 && e <= 57 || e === 45 || e === 46 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
151
- }, ke = M, H = we, Ae = function(e) {
149
+ }, Me = P, B = function(e) {
150
+ return P(e) || e >= 48 && e <= 57 || e === 45 || e === 46 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
151
+ }, Ne = Ee, V = Te, Pe = function(e) {
152
152
  return e >= 1 && e <= 55295 || e >= 57344 && e <= 65533 || e >= 65536 && e <= 1114111;
153
- }, je = Te, Me = function(e) {
154
- return Te(e) || e === 45 || e === 46 || e >= 48 && e <= 57 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
155
- }, Ne = R, Pe = "http://www.w3.org/XML/1998/namespace", Fe = "http://www.w3.org/2000/xmlns/", Ie = {
153
+ }, Fe = ke, Ie = function(e) {
154
+ return ke(e) || e === 45 || e === 46 || e >= 48 && e <= 57 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
155
+ }, Le = L, Re = "http://www.w3.org/XML/1998/namespace", ze = "http://www.w3.org/2000/xmlns/", Be = {
156
156
  __proto__: null,
157
- xml: Pe,
158
- xmlns: Fe
159
- }, Le = {
157
+ xml: Re,
158
+ xmlns: ze
159
+ }, Ve = {
160
160
  __proto__: null,
161
161
  amp: "&",
162
162
  gt: ">",
163
163
  lt: "<",
164
164
  quot: "\"",
165
165
  apos: "'"
166
- }, U = -1, W = -2, G = 13, Re = 33, K = 10, ze = 60, Be = 61, q = 62, J = 63, Ve = 93, Y = (e) => e === 34 || e === 39, He = [34, 39], Ue = [
167
- ...He,
166
+ }, H = -1, U = -2, W = 13, He = 33, G = 10, K = 60, Ue = 61, q = 62, J = 63, We = 93, Y = (e) => e === 34 || e === 39, Ge = [34, 39], Ke = [
167
+ ...Ge,
168
168
  91,
169
169
  q
170
- ], We = [
171
- ...He,
172
- ze,
173
- Ve
174
- ], Ge = [
175
- Be,
170
+ ], qe = [
171
+ ...Ge,
172
+ K,
173
+ We
174
+ ], Je = [
175
+ Ue,
176
176
  J,
177
- ...ke
178
- ], Ke = [
179
- ...ke,
177
+ ...Ne
178
+ ], Ye = [
179
+ ...Ne,
180
180
  q,
181
181
  38,
182
- ze
182
+ K
183
183
  ];
184
- function qe(e, t, n) {
184
+ function Xe(e, t, n) {
185
185
  switch (t) {
186
186
  case "xml":
187
- n !== Pe && e.fail(`xml prefix must be bound to ${Pe}.`);
187
+ n !== Re && e.fail(`xml prefix must be bound to ${Re}.`);
188
188
  break;
189
- case "xmlns": n !== Fe && e.fail(`xmlns prefix must be bound to ${Fe}.`);
189
+ case "xmlns": n !== ze && e.fail(`xmlns prefix must be bound to ${ze}.`);
190
190
  }
191
191
  switch (n) {
192
- case Fe:
193
- e.fail(t === "" ? `the default namespace may not be set to ${n}.` : `may not assign a prefix (even "xmlns") to the URI ${Fe}.`);
192
+ case ze:
193
+ e.fail(t === "" ? `the default namespace may not be set to ${n}.` : `may not assign a prefix (even "xmlns") to the URI ${ze}.`);
194
194
  break;
195
- case Pe: switch (t) {
195
+ case Re: switch (t) {
196
196
  case "xml": break;
197
197
  case "":
198
198
  e.fail(`the default namespace may not be set to ${n}.`);
@@ -201,7 +201,7 @@ function qe(e, t, n) {
201
201
  }
202
202
  }
203
203
  }
204
- var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
204
+ var Ze = (e) => Le.test(e), Qe = (e) => V.test(e), $e = {
205
205
  xmldecl: "xmlDeclHandler",
206
206
  text: "textHandler",
207
207
  processinginstruction: "piHandler",
@@ -215,7 +215,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
215
215
  error: "errorHandler",
216
216
  end: "endHandler",
217
217
  ready: "readyHandler"
218
- }, Ze = class {
218
+ }, et = class {
219
219
  get closed() {
220
220
  return this._closed;
221
221
  }
@@ -223,15 +223,15 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
223
223
  this.i = 0, this.prevI = 0, this.opt = e ?? {}, this.fragmentOpt = !!this.opt.fragment;
224
224
  let t = this.xmlnsOpt = !!this.opt.xmlns;
225
225
  if (this.trackPosition = !1 !== this.opt.position, this.fileName = this.opt.fileName, t) {
226
- this.nameStartCheck = je, this.nameCheck = Me, this.isName = Je, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
226
+ this.nameStartCheck = Fe, this.nameCheck = Ie, this.isName = Ze, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
227
227
  __proto__: null,
228
- ...Ie
228
+ ...Be
229
229
  };
230
230
  let e = this.opt.additionalNamespaces;
231
231
  e != null && (function(e, t) {
232
- for (let n of Object.keys(t)) qe(e, n, t[n]);
232
+ for (let n of Object.keys(t)) Xe(e, n, t[n]);
233
233
  }(this, e), Object.assign(this.ns, e));
234
- } else this.nameStartCheck = Oe, this.nameCheck = V, this.isName = Ye, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
234
+ } else this.nameStartCheck = Me, this.nameCheck = B, this.isName = Qe, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
235
235
  this.stateTable = [
236
236
  this.sBegin,
237
237
  this.sBeginWhitespace,
@@ -283,7 +283,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
283
283
  _init() {
284
284
  this.openWakaBang = "", this.text = "", this.name = "", this.piTarget = "", this.entity = "", this.q = null, this.tags = [], this.tag = null, this.topNS = null, this.chunk = "", this.chunkPosition = 0, this.i = 0, this.prevI = 0, this.carriedFromPrevious = void 0, this.forbiddenState = 0, this.attribList = [];
285
285
  let { fragmentOpt: e } = this;
286
- this.state = e ? G : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = e, this.xmlDeclPossible = !e, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
286
+ this.state = e ? W : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = e, this.xmlDeclPossible = !e, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
287
287
  let { defaultXMLVersion: t } = this.opt;
288
288
  if (t === void 0) {
289
289
  if (!0 === this.opt.forceXMLVersion) throw Error("forceXMLVersion set but defaultXMLVersion is not set");
@@ -293,7 +293,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
293
293
  version: void 0,
294
294
  encoding: void 0,
295
295
  standalone: void 0
296
- }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Le), this.readyHandler?.();
296
+ }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Ve), this.readyHandler?.();
297
297
  }
298
298
  get position() {
299
299
  return this.chunkPosition + this.i;
@@ -302,10 +302,10 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
302
302
  return this.position - this.positionAtNewLine;
303
303
  }
304
304
  on(e, t) {
305
- this[Xe[e]] = t;
305
+ this[$e[e]] = t;
306
306
  }
307
307
  off(e) {
308
- this[Xe[e]] = void 0;
308
+ this[$e[e]] = void 0;
309
309
  }
310
310
  makeError(e) {
311
311
  let t = this.fileName ?? "";
@@ -331,13 +331,13 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
331
331
  }
332
332
  getCode10() {
333
333
  let e = this.chunk, t = this.i;
334
- if (this.prevI = t, this.i++, t >= e.length) return U;
334
+ if (this.prevI = t, this.i++, t >= e.length) return H;
335
335
  let n = e.charCodeAt(t);
336
336
  if (this.column++, n < 55296) {
337
337
  if (n >= 32 || n === 9) return n;
338
338
  switch (n) {
339
- case K: return this.line++, this.column = 0, this.positionAtNewLine = this.position, K;
340
- case 13: return e.charCodeAt(t + 1) === K && (this.i = t + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, W;
339
+ case G: return this.line++, this.column = 0, this.positionAtNewLine = this.position, G;
340
+ case 13: return e.charCodeAt(t + 1) === G && (this.i = t + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, U;
341
341
  default: return this.fail("disallowed character."), n;
342
342
  }
343
343
  }
@@ -347,18 +347,18 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
347
347
  }
348
348
  getCode11() {
349
349
  let { chunk: e, i: t } = this;
350
- if (this.prevI = t, this.i = t + 1, t >= e.length) return U;
350
+ if (this.prevI = t, this.i = t + 1, t >= e.length) return H;
351
351
  let n = e.charCodeAt(t);
352
352
  if (this.column++, n < 55296) {
353
353
  if (n > 31 && n < 127 || n > 159 && n !== 8232 || n === 9) return n;
354
354
  switch (n) {
355
- case K: return this.line++, this.column = 0, this.positionAtNewLine = this.position, K;
355
+ case G: return this.line++, this.column = 0, this.positionAtNewLine = this.position, G;
356
356
  case 13: {
357
357
  let n = e.charCodeAt(t + 1);
358
- n !== K && n !== 133 || (this.i = t + 2);
358
+ n !== G && n !== 133 || (this.i = t + 2);
359
359
  }
360
360
  case 133:
361
- case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, W;
361
+ case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, U;
362
362
  default: return this.fail("disallowed character."), n;
363
363
  }
364
364
  }
@@ -368,7 +368,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
368
368
  }
369
369
  getCodeNorm() {
370
370
  let e = this.getCode();
371
- return e === W ? K : e;
371
+ return e === U ? G : e;
372
372
  }
373
373
  unGet() {
374
374
  this.i = this.prevI, this.column--;
@@ -376,8 +376,8 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
376
376
  captureTo(e) {
377
377
  let { i: t } = this, { chunk: n } = this;
378
378
  for (;;) {
379
- let r = this.getCode(), i = r === W, a = i ? K : r;
380
- if (a === U || e.includes(a)) return this.text += n.slice(t, this.prevI), a;
379
+ let r = this.getCode(), i = r === U, a = i ? G : r;
380
+ if (a === H || e.includes(a)) return this.text += n.slice(t, this.prevI), a;
381
381
  i && (this.text += `${n.slice(t, this.prevI)}\n`, t = this.i);
382
382
  }
383
383
  }
@@ -386,10 +386,10 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
386
386
  for (;;) {
387
387
  let r = this.getCode();
388
388
  switch (r) {
389
- case W:
390
- this.text += `${n.slice(t, this.prevI)}\n`, t = this.i, r = K;
389
+ case U:
390
+ this.text += `${n.slice(t, this.prevI)}\n`, t = this.i, r = G;
391
391
  break;
392
- case U: return this.text += n.slice(t), !1;
392
+ case H: return this.text += n.slice(t), !1;
393
393
  }
394
394
  if (r === e) return this.text += n.slice(t, this.prevI), !0;
395
395
  }
@@ -398,18 +398,18 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
398
398
  let { chunk: e, i: t } = this;
399
399
  for (;;) {
400
400
  let n = this.getCode();
401
- if (n === U) return this.name += e.slice(t), U;
402
- if (!V(n)) return this.name += e.slice(t, this.prevI), n === W ? K : n;
401
+ if (n === H) return this.name += e.slice(t), H;
402
+ if (!B(n)) return this.name += e.slice(t, this.prevI), n === U ? G : n;
403
403
  }
404
404
  }
405
405
  skipSpaces() {
406
406
  for (;;) {
407
407
  let e = this.getCodeNorm();
408
- if (e === U || !B(e)) return e;
408
+ if (e === H || !z(e)) return e;
409
409
  }
410
410
  }
411
411
  setXMLVersion(e) {
412
- this.currentXMLVersion = e, e === "1.0" ? (this.isChar = De, this.getCode = this.getCode10) : (this.isChar = Ae, this.getCode = this.getCode11);
412
+ this.currentXMLVersion = e, e === "1.0" ? (this.isChar = je, this.getCode = this.getCode10) : (this.isChar = Pe, this.getCode = this.getCode11);
413
413
  }
414
414
  sBegin() {
415
415
  this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = 1;
@@ -417,20 +417,20 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
417
417
  sBeginWhitespace() {
418
418
  let e = this.i, t = this.skipSpaces();
419
419
  switch (this.prevI !== e && (this.xmlDeclPossible = !1), t) {
420
- case ze:
420
+ case K:
421
421
  if (this.state = 15, this.text.length !== 0) throw Error("no-empty text at start");
422
422
  break;
423
- case U: break;
424
- default: this.unGet(), this.state = G, this.xmlDeclPossible = !1;
423
+ case H: break;
424
+ default: this.unGet(), this.state = W, this.xmlDeclPossible = !1;
425
425
  }
426
426
  }
427
427
  sDoctype() {
428
- let e = this.captureTo(Ue);
428
+ let e = this.captureTo(Ke);
429
429
  switch (e) {
430
430
  case q:
431
- this.doctypeHandler?.(this.text), this.text = "", this.state = G, this.doctype = !0;
431
+ this.doctypeHandler?.(this.text), this.text = "", this.state = W, this.doctype = !0;
432
432
  break;
433
- case U: break;
433
+ case H: break;
434
434
  default: this.text += String.fromCodePoint(e), e === 91 ? this.state = 4 : Y(e) && (this.state = 3, this.q = e);
435
435
  }
436
436
  }
@@ -439,8 +439,8 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
439
439
  this.captureToChar(e) && (this.text += String.fromCodePoint(e), this.q = null, this.state = 2);
440
440
  }
441
441
  sDTD() {
442
- let e = this.captureTo(We);
443
- e !== U && (this.text += String.fromCodePoint(e), e === Ve ? this.state = 2 : e === ze ? this.state = 6 : Y(e) && (this.state = 5, this.q = e));
442
+ let e = this.captureTo(qe);
443
+ e !== H && (this.text += String.fromCodePoint(e), e === We ? this.state = 2 : e === K ? this.state = 6 : Y(e) && (this.state = 5, this.q = e));
444
444
  }
445
445
  sDTDQuoted() {
446
446
  let e = this.q;
@@ -486,22 +486,22 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
486
486
  sEntity() {
487
487
  let { i: e } = this, { chunk: t } = this;
488
488
  t: for (;;) switch (this.getCode()) {
489
- case W:
489
+ case U:
490
490
  this.entity += `${t.slice(e, this.prevI)}\n`, e = this.i;
491
491
  break;
492
492
  case 59: {
493
493
  let n, { entityReturnState: r } = this, i = this.entity + t.slice(e, this.prevI);
494
- this.state = r, i === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(i), this.entity = ""), r === G && this.textHandler === void 0 || (this.text += n);
494
+ this.state = r, i === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(i), this.entity = ""), r === W && this.textHandler === void 0 || (this.text += n);
495
495
  break t;
496
496
  }
497
- case U:
497
+ case H:
498
498
  this.entity += t.slice(e);
499
499
  break t;
500
500
  }
501
501
  }
502
502
  sOpenWaka() {
503
503
  let e = this.getCode();
504
- if (Oe(e)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
504
+ if (Me(e)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
505
505
  else switch (e) {
506
506
  case 47:
507
507
  this.state = 43, this.xmlDeclPossible = !1;
@@ -512,7 +512,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
512
512
  case J:
513
513
  this.state = 23;
514
514
  break;
515
- default: this.fail("disallowed character in tag name"), this.state = G, this.xmlDeclPossible = !1;
515
+ default: this.fail("disallowed character in tag name"), this.state = W, this.xmlDeclPossible = !1;
516
516
  }
517
517
  }
518
518
  sOpenWakaBang() {
@@ -538,22 +538,22 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
538
538
  }
539
539
  sCommentEnded() {
540
540
  let e = this.getCodeNorm();
541
- e === q ? this.state = G : (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(e)}`, this.state = 17);
541
+ e === q ? this.state = W : (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(e)}`, this.state = 17);
542
542
  }
543
543
  sCData() {
544
- this.captureToChar(Ve) && (this.state = 21);
544
+ this.captureToChar(We) && (this.state = 21);
545
545
  }
546
546
  sCDataEnding() {
547
547
  let e = this.getCodeNorm();
548
- e === Ve ? this.state = 22 : (this.text += `]${String.fromCodePoint(e)}`, this.state = 20);
548
+ e === We ? this.state = 22 : (this.text += `]${String.fromCodePoint(e)}`, this.state = 20);
549
549
  }
550
550
  sCDataEnding2() {
551
551
  let e = this.getCodeNorm();
552
552
  switch (e) {
553
553
  case q:
554
- this.cdataHandler?.(this.text), this.text = "", this.state = G;
554
+ this.cdataHandler?.(this.text), this.text = "", this.state = W;
555
555
  break;
556
- case Ve:
556
+ case We:
557
557
  this.text += "]";
558
558
  break;
559
559
  default: this.text += `]]${String.fromCodePoint(e)}`, this.state = 20;
@@ -561,17 +561,17 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
561
561
  }
562
562
  sPIFirstChar() {
563
563
  let e = this.getCodeNorm();
564
- this.nameStartCheck(e) ? (this.piTarget += String.fromCodePoint(e), this.state = 24) : e === J || B(e) ? (this.fail("processing instruction without a target."), this.state = e === J ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(e), this.state = 24);
564
+ this.nameStartCheck(e) ? (this.piTarget += String.fromCodePoint(e), this.state = 24) : e === J || z(e) ? (this.fail("processing instruction without a target."), this.state = e === J ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(e), this.state = 24);
565
565
  }
566
566
  sPIRest() {
567
567
  let { chunk: e, i: t } = this;
568
568
  for (;;) {
569
569
  let n = this.getCodeNorm();
570
- if (n === U) return void (this.piTarget += e.slice(t));
570
+ if (n === H) return void (this.piTarget += e.slice(t));
571
571
  if (!this.nameCheck(n)) {
572
572
  this.piTarget += e.slice(t, this.prevI);
573
573
  let r = n === J;
574
- r || B(n) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = r ? Re : 27) : this.state = r ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(n));
574
+ r || z(n) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = r ? He : 27) : this.state = r ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(n));
575
575
  break;
576
576
  }
577
577
  }
@@ -579,7 +579,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
579
579
  sPIBody() {
580
580
  if (this.text.length === 0) {
581
581
  let e = this.getCodeNorm();
582
- e === J ? this.state = 26 : B(e) || (this.text = String.fromCodePoint(e));
582
+ e === J ? this.state = 26 : z(e) || (this.text = String.fromCodePoint(e));
583
583
  } else this.captureToChar(J) && (this.state = 26);
584
584
  }
585
585
  sPIEnding() {
@@ -589,18 +589,18 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
589
589
  e.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({
590
590
  target: e,
591
591
  body: this.text
592
- }), this.piTarget = this.text = "", this.state = G;
592
+ }), this.piTarget = this.text = "", this.state = W;
593
593
  } else e === J ? this.text += "?" : (this.text += `?${String.fromCodePoint(e)}`, this.state = 25);
594
594
  this.xmlDeclPossible = !1;
595
595
  }
596
596
  sXMLDeclNameStart() {
597
597
  let e = this.skipSpaces();
598
- e === J ? this.state = Re : e !== U && (this.state = 28, this.name = String.fromCodePoint(e));
598
+ e === J ? this.state = He : e !== H && (this.state = 28, this.name = String.fromCodePoint(e));
599
599
  }
600
600
  sXMLDeclName() {
601
- let e = this.captureTo(Ge);
602
- if (e === J) return this.state = Re, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
603
- if (B(e) || e === Be) {
601
+ let e = this.captureTo(Je);
602
+ if (e === J) return this.state = He, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
603
+ if (z(e) || e === Ue) {
604
604
  if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
605
605
  case 0:
606
606
  this.fail("did not expect any more name/value pairs.");
@@ -610,23 +610,23 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
610
610
  break;
611
611
  default: this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
612
612
  }
613
- this.state = e === Be ? 30 : 29;
613
+ this.state = e === Ue ? 30 : 29;
614
614
  }
615
615
  }
616
616
  sXMLDeclEq() {
617
617
  let e = this.getCodeNorm();
618
- if (e === J) return this.state = Re, void this.fail("XML declaration is incomplete.");
619
- B(e) || (e !== Be && this.fail("value required."), this.state = 30);
618
+ if (e === J) return this.state = He, void this.fail("XML declaration is incomplete.");
619
+ z(e) || (e !== Ue && this.fail("value required."), this.state = 30);
620
620
  }
621
621
  sXMLDeclValueStart() {
622
622
  let e = this.getCodeNorm();
623
- if (e === J) return this.state = Re, void this.fail("XML declaration is incomplete.");
624
- B(e) || (Y(e) ? this.q = e : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
623
+ if (e === J) return this.state = He, void this.fail("XML declaration is incomplete.");
624
+ z(e) || (Y(e) ? this.q = e : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
625
625
  }
626
626
  sXMLDeclValue() {
627
627
  let e = this.captureTo([this.q, J]);
628
- if (e === J) return this.state = Re, this.text = "", void this.fail("XML declaration is incomplete.");
629
- if (e === U) return;
628
+ if (e === J) return this.state = He, this.text = "", void this.fail("XML declaration is incomplete.");
629
+ if (e === H) return;
630
630
  let t = this.text;
631
631
  switch (this.text = "", this.name) {
632
632
  case "version": {
@@ -644,14 +644,14 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
644
644
  }
645
645
  sXMLDeclSeparator() {
646
646
  let e = this.getCodeNorm();
647
- e === J ? this.state = Re : (B(e) || (this.fail("whitespace required."), this.unGet()), this.state = 27);
647
+ e === J ? this.state = He : (z(e) || (this.fail("whitespace required."), this.unGet()), this.state = 27);
648
648
  }
649
649
  sXMLDeclEnding() {
650
- this.getCodeNorm() === q ? (this.piTarget === "xml" ? this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version.") : this.fail("processing instructions are not allowed before root."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = G) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
650
+ this.getCodeNorm() === q ? (this.piTarget === "xml" ? this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version.") : this.fail("processing instructions are not allowed before root."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = W) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
651
651
  }
652
652
  sOpenTag() {
653
653
  let e = this.captureNameChars();
654
- if (e === U) return;
654
+ if (e === H) return;
655
655
  let t = this.tag = {
656
656
  name: this.name,
657
657
  attributes: Object.create(null)
@@ -663,7 +663,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
663
663
  case 47:
664
664
  this.state = 35;
665
665
  break;
666
- default: B(e) || this.fail("disallowed character in tag name."), this.state = 36;
666
+ default: z(e) || this.fail("disallowed character in tag name."), this.state = 36;
667
667
  }
668
668
  }
669
669
  sOpenTagSlash() {
@@ -671,25 +671,25 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
671
671
  }
672
672
  sAttrib() {
673
673
  let e = this.skipSpaces();
674
- e !== U && (Oe(e) ? (this.unGet(), this.state = 37) : e === q ? this.openTag() : e === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
674
+ e !== H && (Me(e) ? (this.unGet(), this.state = 37) : e === q ? this.openTag() : e === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
675
675
  }
676
676
  sAttribName() {
677
677
  let e = this.captureNameChars();
678
- e === Be ? this.state = 39 : B(e) ? this.state = 38 : e === q ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : e !== U && this.fail("disallowed character in attribute name.");
678
+ e === Ue ? this.state = 39 : z(e) ? this.state = 38 : e === q ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : e !== H && this.fail("disallowed character in attribute name.");
679
679
  }
680
680
  sAttribNameSawWhite() {
681
681
  let e = this.skipSpaces();
682
682
  switch (e) {
683
- case U: return;
684
- case Be:
683
+ case H: return;
684
+ case Ue:
685
685
  this.state = 39;
686
686
  break;
687
- default: this.fail("attribute without value."), this.text = "", this.name = "", e === q ? this.openTag() : Oe(e) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
687
+ default: this.fail("attribute without value."), this.text = "", this.name = "", e === q ? this.openTag() : Me(e) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
688
688
  }
689
689
  }
690
690
  sAttribValue() {
691
691
  let e = this.getCodeNorm();
692
- Y(e) ? (this.q = e, this.state = 40) : B(e) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
692
+ Y(e) ? (this.q = e, this.state = 40) : z(e) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
693
693
  }
694
694
  sAttribValueQuoted() {
695
695
  let { q: e, chunk: t } = this, { i: n } = this;
@@ -700,53 +700,53 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
700
700
  case 38:
701
701
  this.text += t.slice(n, this.prevI), this.state = 14, this.entityReturnState = 40;
702
702
  return;
703
- case K:
704
- case W:
703
+ case G:
704
+ case U:
705
705
  case 9:
706
706
  this.text += `${t.slice(n, this.prevI)} `, n = this.i;
707
707
  break;
708
- case ze:
708
+ case K:
709
709
  this.text += t.slice(n, this.prevI), this.fail("disallowed character.");
710
710
  return;
711
- case U:
711
+ case H:
712
712
  this.text += t.slice(n);
713
713
  return;
714
714
  }
715
715
  }
716
716
  sAttribValueClosed() {
717
717
  let e = this.getCodeNorm();
718
- B(e) ? this.state = 36 : e === q ? this.openTag() : e === 47 ? this.state = 35 : Oe(e) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
718
+ z(e) ? this.state = 36 : e === q ? this.openTag() : e === 47 ? this.state = 35 : Me(e) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
719
719
  }
720
720
  sAttribValueUnquoted() {
721
- let e = this.captureTo(Ke);
721
+ let e = this.captureTo(Ye);
722
722
  switch (e) {
723
723
  case 38:
724
724
  this.state = 14, this.entityReturnState = 42;
725
725
  break;
726
- case ze:
726
+ case K:
727
727
  this.fail("disallowed character.");
728
728
  break;
729
- case U: break;
729
+ case H: break;
730
730
  default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", e === q ? this.openTag() : this.state = 36;
731
731
  }
732
732
  }
733
733
  sCloseTag() {
734
734
  let e = this.captureNameChars();
735
- e === q ? this.closeTag() : B(e) ? this.state = 44 : e !== U && this.fail("disallowed character in closing tag.");
735
+ e === q ? this.closeTag() : z(e) ? this.state = 44 : e !== H && this.fail("disallowed character in closing tag.");
736
736
  }
737
737
  sCloseTagSawWhite() {
738
738
  switch (this.skipSpaces()) {
739
739
  case q:
740
740
  this.closeTag();
741
741
  break;
742
- case U: break;
742
+ case H: break;
743
743
  default: this.fail("disallowed character in closing tag.");
744
744
  }
745
745
  }
746
746
  handleTextInRoot() {
747
747
  let { i: e, forbiddenState: t } = this, { chunk: n, textHandler: r } = this;
748
748
  t: for (;;) switch (this.getCode()) {
749
- case ze:
749
+ case K:
750
750
  if (this.state = 15, r !== void 0) {
751
751
  let { text: t } = this, i = n.slice(e, this.prevI);
752
752
  t.length === 0 ? i.length !== 0 && r(i) : (r(t + i), this.text = "");
@@ -754,9 +754,9 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
754
754
  t = 0;
755
755
  break t;
756
756
  case 38:
757
- this.state = 14, this.entityReturnState = G, r !== void 0 && (this.text += n.slice(e, this.prevI)), t = 0;
757
+ this.state = 14, this.entityReturnState = W, r !== void 0 && (this.text += n.slice(e, this.prevI)), t = 0;
758
758
  break t;
759
- case Ve:
759
+ case We:
760
760
  switch (t) {
761
761
  case 0:
762
762
  t = 1;
@@ -771,10 +771,10 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
771
771
  case q:
772
772
  t === 2 && this.fail("the string \"]]>\" is disallowed in char data."), t = 0;
773
773
  break;
774
- case W:
774
+ case U:
775
775
  r !== void 0 && (this.text += `${n.slice(e, this.prevI)}\n`), e = this.i, t = 0;
776
776
  break;
777
- case U:
777
+ case H:
778
778
  r !== void 0 && (this.text += n.slice(e));
779
779
  break t;
780
780
  default: t = 0;
@@ -786,22 +786,22 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
786
786
  t: for (;;) {
787
787
  let i = this.getCode();
788
788
  switch (i) {
789
- case ze:
789
+ case K:
790
790
  if (this.state = 15, n !== void 0) {
791
791
  let { text: r } = this, i = t.slice(e, this.prevI);
792
792
  r.length === 0 ? i.length !== 0 && n(i) : (n(r + i), this.text = "");
793
793
  }
794
794
  break t;
795
795
  case 38:
796
- this.state = 14, this.entityReturnState = G, n !== void 0 && (this.text += t.slice(e, this.prevI)), r = !0;
796
+ this.state = 14, this.entityReturnState = W, n !== void 0 && (this.text += t.slice(e, this.prevI)), r = !0;
797
797
  break t;
798
- case W:
798
+ case U:
799
799
  n !== void 0 && (this.text += `${t.slice(e, this.prevI)}\n`), e = this.i;
800
800
  break;
801
- case U:
801
+ case H:
802
802
  n !== void 0 && (this.text += t.slice(e));
803
803
  break t;
804
- default: B(i) || (r = !0);
804
+ default: z(i) || (r = !0);
805
805
  }
806
806
  }
807
807
  r && (this.sawRoot || this.reportedTextBeforeRoot || (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0));
@@ -815,10 +815,10 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
815
815
  };
816
816
  if (this.attribList.push(i), this.attributeHandler?.(i), n === "xmlns") {
817
817
  let e = t.trim();
818
- this.currentXMLVersion === "1.0" && e === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[r] = e, qe(this, r, e);
818
+ this.currentXMLVersion === "1.0" && e === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[r] = e, Xe(this, r, e);
819
819
  } else if (e === "xmlns") {
820
820
  let e = t.trim();
821
- this.topNS[""] = e, qe(this, "", e);
821
+ this.topNS[""] = e, Xe(this, "", e);
822
822
  }
823
823
  }
824
824
  pushAttribPlain(e, t) {
@@ -835,7 +835,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
835
835
  let t = e.pop();
836
836
  this.fail(`unclosed tag: ${t.name}`);
837
837
  }
838
- this.state !== 0 && this.state !== G && this.fail("unexpected end.");
838
+ this.state !== 0 && this.state !== W && this.fail("unexpected end.");
839
839
  let { text: t } = this;
840
840
  return t.length !== 0 && (this.textHandler?.(t), this.text = ""), this._closed = !0, this.endHandler?.(), this._init(), this;
841
841
  }
@@ -870,7 +870,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
870
870
  let { attributes: n } = t, r = /* @__PURE__ */ new Set();
871
871
  for (let t of e) {
872
872
  let e, i, { name: a, prefix: o, local: s } = t;
873
- o === "" ? (e = a === "xmlns" ? Fe : "", i = a) : (e = this.resolve(o), e === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`), e = o), i = `{${e}}${s}`), r.has(i) && this.fail(`duplicate attribute: ${i}.`), r.add(i), t.uri = e, n[a] = t;
873
+ o === "" ? (e = a === "xmlns" ? ze : "", i = a) : (e = this.resolve(o), e === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`), e = o), i = `{${e}}${s}`), r.has(i) && this.fail(`duplicate attribute: ${i}.`), r.add(i), t.uri = e, n[a] = t;
874
874
  }
875
875
  this.attribList = [];
876
876
  }
@@ -882,16 +882,16 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
882
882
  openTag() {
883
883
  this.processAttribs();
884
884
  let { tags: e } = this, t = this.tag;
885
- t.isSelfClosing = !1, this.openTagHandler?.(t), e.push(t), this.state = G, this.name = "";
885
+ t.isSelfClosing = !1, this.openTagHandler?.(t), e.push(t), this.state = W, this.name = "";
886
886
  }
887
887
  openSelfClosingTag() {
888
888
  this.processAttribs();
889
889
  let { tags: e } = this, t = this.tag;
890
- t.isSelfClosing = !0, this.openTagHandler?.(t), this.closeTagHandler?.(t), (this.tag = e[e.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = G, this.name = "";
890
+ t.isSelfClosing = !0, this.openTagHandler?.(t), this.closeTagHandler?.(t), (this.tag = e[e.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = W, this.name = "";
891
891
  }
892
892
  closeTag() {
893
893
  let { tags: e, name: t } = this;
894
- if (this.state = G, this.name = "", t === "") return this.fail("weird empty close tag."), void (this.text += "</>");
894
+ if (this.state = W, this.name = "", t === "") return this.fail("weird empty close tag."), void (this.text += "</>");
895
895
  let n = this.closeTagHandler, r = e.length;
896
896
  for (; r-- > 0;) {
897
897
  let r = this.tag = e.pop();
@@ -909,7 +909,7 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
909
909
  return e[1] === "x" && /^#x[0-9a-f]+$/i.test(e) ? t = parseInt(e.slice(2), 16) : /^#[0-9]+$/.test(e) && (t = parseInt(e.slice(1), 10)), this.isChar(t) ? String.fromCodePoint(t) : (this.fail("malformed character entity."), `&${e};`);
910
910
  }
911
911
  };
912
- (Ee = z ||= {}).Events = {
912
+ (Ae = R ||= {}).Events = {
913
913
  XmlDecl: "xmldecl",
914
914
  Text: "text",
915
915
  ProcessingInstruction: "processinginstruction",
@@ -923,14 +923,14 @@ var Je = (e) => Ne.test(e), Ye = (e) => H.test(e), Xe = {
923
923
  Error: "error",
924
924
  End: "end",
925
925
  Ready: "ready"
926
- }, Ee.parseStream = async (e, t, n) => {
927
- let r, i = new Ze({
926
+ }, Ae.parseStream = async (e, t, n) => {
927
+ let r, i = new et({
928
928
  position: !1,
929
929
  ...n
930
930
  });
931
- t.onOpenTagStart && i.on(z.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && i.on(z.Events.OpenTag, t.onOpenTag), t.onCloseTag && i.on(z.Events.CloseTag, t.onCloseTag), t.onAttribute && i.on(z.Events.Attribute, t.onAttribute), t.onText && i.on(z.Events.Text, t.onText), t.onError && i.on(z.Events.Error, t.onError);
931
+ t.onOpenTagStart && i.on(R.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && i.on(R.Events.OpenTag, t.onOpenTag), t.onCloseTag && i.on(R.Events.CloseTag, t.onCloseTag), t.onAttribute && i.on(R.Events.Attribute, t.onAttribute), t.onText && i.on(R.Events.Text, t.onText), t.onError && i.on(R.Events.Error, t.onError);
932
932
  let a = t.onEnd;
933
- for (a && i.on(z.Events.End, () => {
933
+ for (a && i.on(R.Events.End, () => {
934
934
  r = a();
935
935
  });;) {
936
936
  let { value: t, done: n } = await e.read();
@@ -945,7 +945,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
945
945
  }, Q = (e) => {
946
946
  let t = parseFloat(e);
947
947
  return isNaN(t) ? null : t;
948
- }, $ = null, Qe = class {
948
+ }, $ = null, tt = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), nt = (e) => tt(e).replace(/"/g, "&quot;"), rt = class {
949
949
  constructor() {
950
950
  this._registeredVisitors = /* @__PURE__ */ new Map();
951
951
  }
@@ -957,7 +957,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
957
957
  key: null,
958
958
  source: e,
959
959
  parent: null
960
- }, f = null, p = !1, m = (e, t) => {
960
+ }, f = null, p = !1, m = null, ee = null, h = null, g = (e, t) => {
961
961
  let n = c.attributes[e];
962
962
  if (t) {
963
963
  if (Array.isArray(t)) {
@@ -966,7 +966,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
966
966
  } else if (n == null || (n = t(n), n == null)) return;
967
967
  }
968
968
  return n;
969
- }, h = {
969
+ }, _ = {
970
970
  getSource: () => f?.source ?? null,
971
971
  setSource: (e) => {
972
972
  f.source = e;
@@ -975,8 +975,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
975
975
  f.key = e;
976
976
  },
977
977
  getFrom: () => c,
978
- getAttribute: (e, t) => m(e, t) ?? null,
979
- hasAttribute: (e) => h.getAttribute(e) !== null,
978
+ getAttribute: (e, t) => g(e, t) ?? null,
979
+ hasAttribute: (e) => _.getAttribute(e) !== null,
980
980
  getParent: () => {
981
981
  let e = u[u.length - 2];
982
982
  return e.parent ?? e.source;
@@ -986,13 +986,14 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
986
986
  for (let n = 0; n < t; n++) e.push(a[n].local);
987
987
  return e.join("\\");
988
988
  },
989
- parseAttribute: m,
989
+ parseAttribute: g,
990
+ getRawXml: () => h,
990
991
  copyToObject: (e, t, n, r) => {
991
- let i = m(r ?? t, n);
992
+ let i = g(r ?? t, n);
992
993
  i !== void 0 && (e[t] = i);
993
994
  },
994
995
  copyTo: (e, t, n) => {
995
- let r = m(n ?? e, t);
996
+ let r = g(n ?? e, t);
996
997
  r !== void 0 && (f.source[e] = r);
997
998
  },
998
999
  warn: (e) => {
@@ -1002,49 +1003,65 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1002
1003
  return {
1003
1004
  onOpenTag: (e) => {
1004
1005
  let t = e.name, n = t.indexOf(":");
1005
- n !== -1 && (t = t.slice(n + 1));
1006
- let m = (i.length > 0 ? i[i.length - 1] : r).get(t);
1006
+ if (n !== -1 && (t = t.slice(n + 1)), m) return m.push(((e) => {
1007
+ let t = e.attributes ?? {}, n = `<${e.name}`;
1008
+ for (let e in t) {
1009
+ let r = t[e];
1010
+ n += ` ${e}="${nt(typeof r == "string" ? r : r?.value ?? "")}"`;
1011
+ }
1012
+ return n + ">";
1013
+ })(e)), o = {
1014
+ local: t,
1015
+ tag: e,
1016
+ destination: null
1017
+ }, a.push(o), s = t, void (c = e);
1018
+ let h = (i.length > 0 ? i[i.length - 1] : r).get(t);
1007
1019
  if (o = {
1008
1020
  local: t,
1009
- visitor: m,
1021
+ visitor: h,
1010
1022
  tag: e,
1011
1023
  destination: null
1012
1024
  }, p) return a.push(o), s = t, void (c = e);
1013
1025
  l = o?.visitor ?? null, s = t, c = e;
1014
- let g = !!m && m.to === null;
1015
- if (m && !g && m.scope) {
1016
- let e = m.scope(h);
1026
+ let g = !!h && h.to === null;
1027
+ if (h && !g && h.scope) {
1028
+ let e = h.scope(_);
1017
1029
  e === null ? g = !0 : e && (i.push(e), o.pushedScope = !0);
1018
1030
  }
1019
- m && (a.length === 0 ? (f = d, o.destination = f, o.pushedDestination = !0, u.push(f)) : g ? (f = null, o.destination = null) : m.transparent ? o.destination = f : (f = {
1031
+ h && (a.length === 0 ? (f = d, o.destination = f, o.pushedDestination = !0, u.push(f)) : g ? (f = null, o.destination = null) : h.transparent ? o.destination = f : (f = {
1020
1032
  key: null,
1021
1033
  source: {},
1022
1034
  parent: null
1023
1035
  }, o.destination = f, o.pushedDestination = !0, u.push(f))), a.push(o), p = g;
1024
- let _ = l?.openTag?.(h);
1025
- _ !== void 0 && (f.parent = _);
1036
+ let v = l?.openTag?.(_);
1037
+ v !== void 0 && (f.parent = v), h?.raw && !g && (m = [], ee = o);
1026
1038
  },
1027
1039
  onCloseTag: (e) => {
1028
1040
  let t = e.name, r = t.indexOf(":");
1029
1041
  if (r !== -1 && (t = t.slice(r + 1)), t !== s) throw Error(`mismatch open/close tag: '${t}'/'${s}'`);
1030
- p || l?.closeTag?.(h);
1031
- let m = a.pop() ?? null;
1032
- o = a[a.length - 1] ?? null, m?.pushedScope && i.pop();
1033
- let g = m?.destination;
1034
- if (g && m.pushedDestination) {
1042
+ let g = !1;
1043
+ if (m) {
1044
+ if (a[a.length - 1] !== ee) return m.push(`</${e.name}>`), a.pop(), o = a[a.length - 1] ?? null, s = o?.local ?? null, void (c = o?.tag ?? null);
1045
+ h = m.join(""), m = null, ee = null, g = !0;
1046
+ }
1047
+ p || l?.closeTag?.(_), g && (h = null);
1048
+ let v = a.pop() ?? null;
1049
+ o = a[a.length - 1] ?? null, v?.pushedScope && i.pop();
1050
+ let y = v?.destination;
1051
+ if (y && v.pushedDestination) {
1035
1052
  u.pop(), f = u[u.length - 1] ?? d;
1036
- let e = m.visitor;
1037
- e && e.to && g.source !== void 0 && (Array.isArray(e.to) ? f.source.push ? f.source.push(g.source) : n?.(`Unable to parse array for ${e.from} at ${h.getPath()}`) : g.key ? f.source[g.key] = g.source : typeof e.to == "string" && (f.source[e.to] = g.source));
1053
+ let e = v.visitor;
1054
+ e && e.to && y.source !== void 0 && (Array.isArray(e.to) ? f.source.push ? f.source.push(y.source) : n?.(`Unable to parse array for ${e.from} at ${_.getPath()}`) : y.key ? f.source[y.key] = y.source : typeof e.to == "string" && (f.source[e.to] = y.source));
1038
1055
  }
1039
1056
  s = o?.local ?? null, c = o?.tag ?? null, l = o?.visitor ?? null, p = !o?.destination;
1040
1057
  },
1041
1058
  onText: (e) => {
1042
- l?.text?.(e, h);
1059
+ m ? m.push(tt(e)) : l?.text?.(e, _);
1043
1060
  },
1044
1061
  onEnd: t
1045
1062
  };
1046
1063
  }
1047
- }, $e = `IFERROR(${b}(`, et = $e.toUpperCase(), tt = T.toUpperCase(), nt = { kind: "none" }, rt = { kind: "spilled" }, it = (e, t) => {
1064
+ }, it = `IFERROR(${w}(`, at = it.toUpperCase(), ot = S.toUpperCase(), st = { kind: "none" }, ct = { kind: "spilled" }, lt = (e, t) => {
1048
1065
  if (e.charCodeAt(t) !== 34) return null;
1049
1066
  let n = "", r = t + 1;
1050
1067
  for (; r < e.length;) if (e.charCodeAt(r) === 34) {
@@ -1055,12 +1072,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1055
1072
  n += "\"", r += 2;
1056
1073
  } else n += e[r], r++;
1057
1074
  return null;
1058
- }, at = (e) => {
1075
+ }, ut = (e) => {
1059
1076
  let t = [], n = 0;
1060
1077
  for (; n < e.length;) {
1061
1078
  let r = e.charCodeAt(n);
1062
1079
  if (r === 34) {
1063
- let t = it(e, n);
1080
+ let t = lt(e, n);
1064
1081
  if (t === null) break;
1065
1082
  n = t.end;
1066
1083
  continue;
@@ -1078,7 +1095,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1078
1095
  e.charCodeAt(i) === 40 && t.push(e.slice(n, i).toUpperCase().replace(/^_XLFN\./, "").replace(/^_XLWS\./, "")), n = i;
1079
1096
  }
1080
1097
  return t;
1081
- }, ot = (e) => {
1098
+ }, dt = (e) => {
1082
1099
  let t = 0, n = 0;
1083
1100
  for (let r = 0; r < e.length; r++) {
1084
1101
  let i = e[r];
@@ -1104,7 +1121,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1104
1121
  }
1105
1122
  }
1106
1123
  return t === 0 && n === 0;
1107
- }, st = class {
1124
+ }, ft = class {
1108
1125
  static {
1109
1126
  this.Collapsed = 1;
1110
1127
  }
@@ -1141,119 +1158,119 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1141
1158
  static {
1142
1159
  this.ThickTop = 2048;
1143
1160
  }
1144
- }, ct = (e, t, n) => {
1161
+ }, pt = (e, t, n) => {
1145
1162
  if (e[0].value[0] === e[1].value[0]) return t;
1146
- }, lt = {
1163
+ }, mt = {
1147
1164
  colStart: 0,
1148
1165
  colEnd: 0,
1149
1166
  rowStart: 0,
1150
1167
  rowEnd: 0
1151
- }, ut = (e, n, r, a, c, l, d) => {
1152
- let f = !1, p = !1, m = [], h = !1, g = null, _ = null, ee = null, v = null, te = null, ne = null, re = d?.get("richData") ?? t.EmptyArray, ie = d?.get("dummyWrapped") ?? null, ae = u.normalizeA1ToR1C1, oe = i.createConflatingRanges(), se = /* @__PURE__ */ new Map(), ce = [], le = !1, ue = !1, de = null, fe = !1, y = i.createConflatingRanges(), pe = !1, b = -1, x = -1, me = null, S = null, he = null, ge = [], _e = null, ve = -2, C = 0, w = "", ye = "", T = "", be = "", E = "", D = "", O = "", k = "", A = "", xe = "", Se = "", j = "", Ce = "", we = "", M = !0, N = null, P = !1, F = !1, I = null, L = 0;
1168
+ }, ht = (e, n, r, a, c, l, u) => {
1169
+ let f = !1, p = !1, m = [], ee = !1, h = null, g = null, _ = null, v = null, y = null, te = null, ne = u?.get("richData") ?? t.EmptyArray, re = u?.get("dummyWrapped") ?? null, ie = d.normalizeA1ToR1C1, ae = i.createConflatingRanges(), oe = /* @__PURE__ */ new Map(), se = [], b = !1, x = !1, S = null, ce = !1, le = i.createConflatingRanges(), C = !1, w = -1, T = -1, E = null, ue = null, de = null, fe = [], pe = null, me = -2, D = 0, O = "", he = "", ge = "", _e = "", ve = "", ye = "", be = "", k = "", xe = "", Se = "", A = "", j = "", Ce = "", we = "", M = !0, N = null, Te = !1, Ee = !1, P = null, F = 0;
1153
1170
  return {
1154
1171
  ...r,
1155
1172
  onEnd: () => {
1156
- ge.length > 0 && (n.rows = u.runsToRefs(ge, !1));
1157
- let t = oe.done(ct), a = t.length;
1173
+ fe.length > 0 && (n.rows = d.runsToRefs(fe, !1));
1174
+ let t = ae.done(pt), a = t.length;
1158
1175
  if (a > 0) {
1159
1176
  let e = /* @__PURE__ */ new Set();
1160
- for (let t = 0; t < ce.length; t++) e.add(ce[t][0].split(":")[0]);
1177
+ for (let t = 0; t < se.length; t++) e.add(se[t][0].split(":")[0]);
1161
1178
  let r = Array(a);
1162
1179
  for (let n = 0; n < a; n++) {
1163
- let i = t[n], a = u.rangeToString(i), o = i.value[1], s = u.resolveRelativeToA1(o, i.rowStart, i.colStart);
1164
- s && !e.has(a.split(":")[0]) && ot(s) && (s = `__sxl.INTERSECT(${s})`), r[n] = [a, s];
1180
+ let i = t[n], a = d.rangeToString(i), o = i.value[1], s = d.resolveRelativeToA1(o, i.rowStart, i.colStart);
1181
+ s && !e.has(a.split(":")[0]) && dt(s) && (s = `__sxl.INTERSECT(${s})`), r[n] = [a, s];
1165
1182
  }
1166
1183
  n.formulas = r;
1167
1184
  }
1168
- let o = y.done(!0), c = o.length;
1185
+ let o = le.done(!0), c = o.length;
1169
1186
  if (c > 0) {
1170
1187
  let e = Array(c);
1171
1188
  for (let t = 0; t < c; t++) {
1172
1189
  let n = o[t];
1173
- e[t] = u.rangeToString(n);
1190
+ e[t] = d.rangeToString(n);
1174
1191
  }
1175
1192
  n.volatile = e;
1176
1193
  }
1177
- ce.length > 0 && (n.formulaArray = [...ce]);
1194
+ se.length > 0 && (n.formulaArray = [...se]);
1178
1195
  let l = m.length;
1179
1196
  if (l > 0) {
1180
1197
  m.sort(i.createRangeComparator(s.Axis.Column));
1181
1198
  let e = m[0], t = e.colStart, r = e.colEnd, a = e.rowEnd, o = e.value, c = [];
1182
1199
  c.push(e);
1183
- let d = null;
1184
- for (let n = 1; n < l; n++) d = m[n], o !== d.value || t !== d.colStart || r !== d.colEnd || a + 1 !== d.rowEnd ? (c.push(d), e = d, t = e.colStart, r = e.colEnd, a = e.rowEnd, o = e.value) : (a = d.rowEnd, e.rowEnd = a);
1200
+ let u = null;
1201
+ for (let n = 1; n < l; n++) u = m[n], o !== u.value || t !== u.colStart || r !== u.colEnd || a + 1 !== u.rowEnd ? (c.push(u), e = u, t = e.colStart, r = e.colEnd, a = e.rowEnd, o = e.value) : (a = u.rowEnd, e.rowEnd = a);
1185
1202
  let f = c.length, p = Array(f);
1186
1203
  for (let e = 0; e < f; e++) {
1187
1204
  let t = c[e];
1188
- p[e] = [u.rangeToString(t), t.value];
1205
+ p[e] = [d.rangeToString(t), t.value];
1189
1206
  }
1190
1207
  n.directStyles = p;
1191
1208
  }
1192
- let d = e.build();
1193
- d && (n.data = d.tuples), r?.onEnd?.();
1209
+ let u = e.build();
1210
+ u && (n.data = u.tuples), r?.onEnd?.();
1194
1211
  },
1195
1212
  onOpenTag: (e) => {
1196
1213
  let t = e.name, i = t.indexOf(":");
1197
- if (i !== -1 && (t = t.slice(i + 1)), L++, L % 196608 == 0 && c?.(L), S) {
1214
+ if (i !== -1 && (t = t.slice(i + 1)), F++, F % 196608 == 0 && c?.(F), ue) {
1198
1215
  let n = e.attributes;
1199
1216
  switch (t) {
1200
1217
  case "v":
1201
1218
  p = !0;
1202
1219
  break;
1203
1220
  case "f":
1204
- switch (h = !0, n.t ?? null) {
1221
+ switch (ee = !0, n.t ?? null) {
1205
1222
  case null:
1206
1223
  case "normal": break;
1207
1224
  case "shared":
1208
1225
  let e = n.si;
1209
- _ = n.ref, g = e;
1226
+ g = n.ref, h = e;
1210
1227
  break;
1211
1228
  case "array":
1212
- _ = n.ref, de = _;
1229
+ g = n.ref, S = g;
1213
1230
  break;
1214
- case "datatable": _ = n.ref, h = !0;
1231
+ case "datatable": g = n.ref, ee = !0;
1215
1232
  }
1216
1233
  let e = n.ca;
1217
- e !== void 0 && (fe = e === "1");
1234
+ e !== void 0 && (ce = e === "1");
1218
1235
  break;
1219
1236
  case "is":
1220
- pe = !0;
1237
+ C = !0;
1221
1238
  return;
1222
1239
  }
1223
- pe && !h && l?.onOpenTag?.(e);
1240
+ C && !ee && l?.onOpenTag?.(e);
1224
1241
  return;
1225
1242
  }
1226
1243
  if (f) {
1227
1244
  if (t === "c") {
1228
- S = e;
1245
+ ue = e;
1229
1246
  let t = e.attributes, n = t.r;
1230
- x = u.fastStringToCol(n);
1247
+ T = d.fastStringToCol(n);
1231
1248
  let r = t.t;
1232
- r === void 0 ? he = null : (he = r, he === "str" && (pe = !0));
1249
+ r === void 0 ? de = null : (de = r, de === "str" && (C = !0));
1233
1250
  let i = t.s;
1234
- i === void 0 && (I !== null || F) && (i = "0"), i !== void 0 && (i = parseInt(i), N && N.value === i && N.colEnd + 1 === x ? N.colEnd = x : (N = {
1235
- colStart: x,
1236
- rowStart: b,
1237
- colEnd: x,
1238
- rowEnd: b,
1251
+ i === void 0 && (P !== null || Ee) && (i = "0"), i !== void 0 && (i = parseInt(i), N && N.value === i && N.colEnd + 1 === T ? N.colEnd = T : (N = {
1252
+ colStart: T,
1253
+ rowStart: w,
1254
+ colEnd: T,
1255
+ rowEnd: w,
1239
1256
  value: i
1240
- }, m.push(N))), de = null, ue = !1;
1257
+ }, m.push(N))), S = null, x = !1;
1241
1258
  let a = t.cm;
1242
- le = a !== void 0 && ((e) => {
1243
- let t = d?.get("metadata")?.cells;
1259
+ b = a !== void 0 && ((e) => {
1260
+ let t = u?.get("metadata")?.cells;
1244
1261
  if (!t) return !1;
1245
1262
  let n = parseInt(e, 10);
1246
1263
  return !(!Number.isFinite(n) || n < 1) && !0 === t[n - 1]?.get("XLDAPR")?.fDynamic;
1247
1264
  })(a);
1248
1265
  let s = t.vm;
1249
1266
  if (s !== void 0) {
1250
- let e = re[parseInt(s) - 1];
1267
+ let e = ne[parseInt(s) - 1];
1251
1268
  if (o.isError(e)) {
1252
1269
  let t = e.getCode();
1253
- me = {
1270
+ E = {
1254
1271
  t: "e",
1255
1272
  v: t
1256
- }, le && t === o.Code.Spill && (ue = !0);
1273
+ }, b && t === o.Code.Spill && (x = !0);
1257
1274
  }
1258
1275
  }
1259
1276
  }
@@ -1261,41 +1278,41 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1261
1278
  if (t === "row") {
1262
1279
  f = !0;
1263
1280
  let t = e.attributes.r;
1264
- if (b = parseInt(t) - 1, C = 0, ye = e.attributes.customHeight, ye !== void 0 && (C |= st.CustomHeight), ye !== A && (M = !0, A = ye), w = e.attributes.ht, w !== void 0 && (C |= st.Ht), w !== k && (M = !0, k = w), T = e.attributes.hidden, T !== void 0 && (C |= st.Hidden), T !== xe && (M = !0, xe = T), E = e.attributes.s, E !== void 0 && (C |= st.S), E !== j && (M = !0, j = E), be = e.attributes.customFormat, be !== void 0 && (C |= st.CustomFormat), be !== Se && (M = !0, Se = be), D = e.attributes.outlineLevel, D !== void 0 && (C |= st.OutlineLevel), D !== Ce && (M = !0, Ce = D), O = e.attributes.collapsed, O !== void 0 && (C |= st.Collapsed), O !== we && (M = !0, we = O), C !== 0) if (ve + 1 !== b || M) {
1265
- let e = ye !== void 0 && (ye === "1" || ye === "true"), t = be !== void 0 && (be === "1" || be === "true");
1266
- I = t && E !== void 0 ? E : null, t && I === null && (I = "0"), _e = {
1267
- min: b,
1268
- max: b,
1281
+ if (w = parseInt(t) - 1, D = 0, he = e.attributes.customHeight, he !== void 0 && (D |= ft.CustomHeight), he !== xe && (M = !0, xe = he), O = e.attributes.ht, O !== void 0 && (D |= ft.Ht), O !== k && (M = !0, k = O), ge = e.attributes.hidden, ge !== void 0 && (D |= ft.Hidden), ge !== Se && (M = !0, Se = ge), ve = e.attributes.s, ve !== void 0 && (D |= ft.S), ve !== j && (M = !0, j = ve), _e = e.attributes.customFormat, _e !== void 0 && (D |= ft.CustomFormat), _e !== A && (M = !0, A = _e), ye = e.attributes.outlineLevel, ye !== void 0 && (D |= ft.OutlineLevel), ye !== Ce && (M = !0, Ce = ye), be = e.attributes.collapsed, be !== void 0 && (D |= ft.Collapsed), be !== we && (M = !0, we = be), D !== 0) if (me + 1 !== w || M) {
1282
+ let e = he !== void 0 && (he === "1" || he === "true"), t = _e !== void 0 && (_e === "1" || _e === "true");
1283
+ P = t && ve !== void 0 ? ve : null, t && P === null && (P = "0"), pe = {
1284
+ min: w,
1285
+ max: w,
1269
1286
  value: {
1270
- sz: w === void 0 ? -1 : parseFloat(w),
1287
+ sz: O === void 0 ? -1 : parseFloat(O),
1271
1288
  csz: e,
1272
- h: T !== void 0 && (T === "1" || T === "true"),
1273
- s: I === null ? void 0 : I === "0" ? 0 : parseInt(I),
1274
- l: D === void 0 || D === "0" ? 0 : parseInt(D),
1275
- cl: O !== void 0 && (O === "1" || O === "true")
1276
- }
1277
- }, ge.push(_e);
1278
- } else _e.max = b;
1279
- ve = b, M = !1;
1289
+ h: ge !== void 0 && (ge === "1" || ge === "true"),
1290
+ s: P === null ? void 0 : P === "0" ? 0 : parseInt(P),
1291
+ l: ye === void 0 || ye === "0" ? 0 : parseInt(ye),
1292
+ cl: be !== void 0 && (be === "1" || be === "true")
1293
+ }
1294
+ }, fe.push(pe);
1295
+ } else pe.max = w;
1296
+ me = w, M = !1;
1280
1297
  return;
1281
1298
  }
1282
- if (!P && t === "sheetData") {
1283
- P = !0;
1299
+ if (!Te && t === "sheetData") {
1300
+ Te = !0;
1284
1301
  let e = n.cols, t = e ? e.length : 0;
1285
- for (let n = 0; !F && n < t; n++) e[n].v.s && (F = !0);
1302
+ for (let n = 0; !Ee && n < t; n++) e[n].v.s && (Ee = !0);
1286
1303
  }
1287
1304
  r?.onOpenTag?.(e);
1288
1305
  }
1289
1306
  },
1290
1307
  onCloseTag: (t) => {
1291
1308
  let n = t.name;
1292
- if (!h || n !== "c" && n !== "f" || (g && (v = se.get(g) ?? null), v && (oe.append(b, x, v), fe && y.append(b, x)), de !== null && ce.push([de, le ? ue ? "dynamicSpillError" : "dynamic" : "static"]), h = !1, v = null, g = null, _ = null, p = !1, fe = !1, de = null, le = !1, ue = !1), S) {
1309
+ if (!ee || n !== "c" && n !== "f" || (h && (v = oe.get(h) ?? null), v && (ae.append(w, T, v), ce && le.append(w, T)), S !== null && se.push([S, b ? x ? "dynamicSpillError" : "dynamic" : "static"]), ee = !1, v = null, h = null, g = null, p = !1, ce = !1, S = null, b = !1, x = !1), ue) {
1293
1310
  let r = n.indexOf(":");
1294
- if (r !== -1 && (n = n.slice(r + 1)), pe) if (n === "is" || n === "v") {
1311
+ if (r !== -1 && (n = n.slice(r + 1)), C) if (n === "is" || n === "v") {
1295
1312
  let t = l?.onEnd?.();
1296
- t != null && e.pushAt(b, x, "" + t);
1313
+ t != null && e.pushAt(w, T, "" + t);
1297
1314
  } else n !== "f" && l?.onCloseTag?.(t);
1298
- p &&= !1, n === "c" && (S = null, pe = !1);
1315
+ p &&= !1, n === "c" && (ue = null, C = !1);
1299
1316
  return;
1300
1317
  }
1301
1318
  if (f) return f = !1, void (N = null);
@@ -1304,24 +1321,24 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1304
1321
  onText: (t) => {
1305
1322
  let i = t.trim();
1306
1323
  if (p) {
1307
- switch (me = null, he) {
1324
+ switch (E = null, de) {
1308
1325
  case null:
1309
1326
  case "n":
1310
- me = parseFloat(i);
1327
+ E = parseFloat(i);
1311
1328
  break;
1312
1329
  case "b":
1313
- me = i === "1" || i === "true";
1330
+ E = i === "1" || i === "true";
1314
1331
  break;
1315
1332
  case "s":
1316
- me = i;
1333
+ E = i;
1317
1334
  break;
1318
1335
  case "e":
1319
1336
  if (i === "#VALUE!") {
1320
- let e = S.attributes.vm;
1337
+ let e = ue.attributes.vm;
1321
1338
  if (e !== void 0) {
1322
- let t = re[parseInt(e) - 1];
1339
+ let t = ne[parseInt(e) - 1];
1323
1340
  if (o.isError(t)) {
1324
- me = {
1341
+ E = {
1325
1342
  t: "e",
1326
1343
  v: t.getCode()
1327
1344
  };
@@ -1330,67 +1347,67 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1330
1347
  }
1331
1348
  }
1332
1349
  let e = o.getBuiltInByLabel(i);
1333
- e ? me = {
1350
+ e ? E = {
1334
1351
  t: "e",
1335
1352
  v: e.getCode()
1336
- } : (me = i, a?.(`Unknown formula error '${i}' in cell ${u.cellToString({
1337
- colIndex: x,
1338
- rowIndex: b
1353
+ } : (E = i, a?.(`Unknown formula error '${i}' in cell ${d.cellToString({
1354
+ colIndex: T,
1355
+ rowIndex: w
1339
1356
  })}`));
1340
1357
  break;
1341
1358
  case "str":
1342
- case "inlineStr": pe = !0;
1359
+ case "inlineStr": C = !0;
1343
1360
  }
1344
- me !== null && e.pushAt(b, x, me);
1361
+ E !== null && e.pushAt(w, T, E);
1345
1362
  }
1346
- if (g) {
1347
- if (te === g) v = ne;
1363
+ if (h) {
1364
+ if (y === h) v = te;
1348
1365
  else {
1349
- if (v = se.get(g) ?? null, !v) {
1366
+ if (v = oe.get(h) ?? null, !v) {
1350
1367
  let e = [];
1351
- ee = ae(i, b, x, e), v = [
1352
- ee,
1368
+ _ = ie(i, w, T, e), v = [
1369
+ _,
1353
1370
  e,
1354
1371
  i
1355
- ], se.set(g, v);
1372
+ ], oe.set(h, v);
1356
1373
  }
1357
- te = g, ne = v;
1374
+ y = h, te = v;
1358
1375
  }
1359
- g = null;
1376
+ h = null;
1360
1377
  }
1361
- if (h) {
1362
- if (ie !== null) {
1378
+ if (ee) {
1379
+ if (re !== null) {
1363
1380
  let e = ((e) => {
1364
- if (e.length < $e.length || e.slice(0, $e.length).toUpperCase() !== et) return nt;
1365
- let t = it(e, $e.length);
1366
- if (t === null || e.charCodeAt(t.end) !== 41 || e.charCodeAt(t.end + 1) !== 44 || e.charCodeAt(e.length - 1) !== 41) return nt;
1381
+ if (e.length < it.length || e.slice(0, it.length).toUpperCase() !== at) return st;
1382
+ let t = lt(e, it.length);
1383
+ if (t === null || e.charCodeAt(t.end) !== 41 || e.charCodeAt(t.end + 1) !== 44 || e.charCodeAt(e.length - 1) !== 41) return st;
1367
1384
  let n = t.value;
1368
- return n.toUpperCase() === tt ? rt : n.length === 0 ? nt : {
1385
+ return n.toUpperCase() === ot ? ct : n.length === 0 ? st : {
1369
1386
  kind: "formula",
1370
1387
  formula: n
1371
1388
  };
1372
1389
  })(i);
1373
- e.kind !== "none" && ie.push({
1390
+ e.kind !== "none" && re.push({
1374
1391
  sheet: n,
1375
- rowIndex: b,
1376
- colIndex: x,
1392
+ rowIndex: w,
1393
+ colIndex: T,
1377
1394
  formula: e.kind === "formula" ? e.formula : null
1378
1395
  });
1379
1396
  }
1380
1397
  let e = [];
1381
- ee = ae(i, b, x, e), v = [
1382
- ee,
1398
+ _ = ie(i, w, T, e), v = [
1399
+ _,
1383
1400
  e,
1384
1401
  i
1385
1402
  ];
1386
1403
  }
1387
- pe ? l?.onText?.(t) : f || r?.onText?.(i);
1404
+ C ? l?.onText?.(t) : f || r?.onText?.(i);
1388
1405
  }
1389
1406
  };
1390
- }, dt = (e) => {
1407
+ }, gt = (e) => {
1391
1408
  let t = e.indexOf(":");
1392
1409
  return t === -1 ? e : e.slice(t + 1);
1393
- }, ft = {
1410
+ }, _t = {
1394
1411
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": "workbooks",
1395
1412
  "application/vnd.ms-excel.sheet.macroEnabled.main+xml": "workbooks",
1396
1413
  "application/vnd.ms-excel.sheet.binary.macroEnabled.main": "workbooks",
@@ -1420,39 +1437,39 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1420
1437
  "application/vnd.ms-excel.externalLink": "links",
1421
1438
  "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml": "links",
1422
1439
  "application/vnd.openxmlformats-officedocument.theme+xml": "themes"
1423
- }, pt = (e) => e.startsWith("/") ? e.slice(1) : e, mt = /^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i, ht = async (i, o) => {
1424
- let { password: s, onVBA: ae, profile: y, createWorkbookOptions: b = {}, ...S } = o ?? {}, w = b.origin && typeof b.origin != "string" ? b.origin : null, T = y ? new O(typeof y == "function" ? y : void 0) : null, E = [], k = o?.progress, A = k?.onProgress ? k.onProgress.bind(k) : void 0, xe = i.byteLength, Se = 0, j = 0, Ce = A ? (e) => {
1425
- if (Se <= 0) return;
1426
- j += e;
1427
- let t = Math.min(xe, Math.round(j / Se * xe));
1428
- A(t, xe);
1429
- } : void 0, we = import("./CyhnDYQf3_cdp52w2.js"), M = null;
1440
+ }, vt = (e) => e.startsWith("/") ? e.slice(1) : e, yt = /^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i, bt = async (i, o) => {
1441
+ let { password: s, onVBA: h, profile: ie, createWorkbookOptions: b = {}, ...S } = o ?? {}, C = b.origin && typeof b.origin != "string" ? b.origin : null, w = ie ? new Se(typeof ie == "function" ? ie : void 0) : null, k = [], A = o?.progress, j = A?.onProgress ? A.onProgress.bind(A) : void 0, Ce = i.byteLength, we = 0, M = 0, N = j ? (e) => {
1442
+ if (we <= 0) return;
1443
+ M += e;
1444
+ let t = Math.min(Ce, Math.round(M / we * Ce));
1445
+ j(t, Ce);
1446
+ } : void 0, Te = import("./6L6HfOFw1xzxXtf22.js"), Ee = null;
1430
1447
  try {
1431
- M = new DOMParser();
1448
+ Ee = new DOMParser();
1432
1449
  } catch {}
1433
- let N = null;
1450
+ let P = null;
1434
1451
  try {
1435
- N = new XMLSerializer();
1452
+ P = new XMLSerializer();
1436
1453
  } catch {}
1437
- let P, F, I, L = null;
1438
- M || (L = import("./7R7r4iHAxN8rnOmW2.js").then((t) => e(t.default, 1)));
1454
+ let F, I, De, Oe = null;
1455
+ Ee || (Oe = import("./BO2NRW9sjHGE9tg-2.js").then((t) => e(t.default, 1)));
1439
1456
  try {
1440
- let [e, t] = await Promise.all([L, we]);
1441
- P = new t.DOMTransformer(), F = M ?? new e.DOMParser(), I = N ?? new e.XMLSerializer();
1457
+ let [e, t] = await Promise.all([Oe, Te]);
1458
+ F = new t.DOMTransformer(), I = Ee ?? new e.DOMParser(), De = P ?? new e.XMLSerializer();
1442
1459
  } catch (e) {
1443
1460
  throw Error("Unable to load XLSX parser.", { cause: e });
1444
1461
  }
1445
- let R, Te = (e) => I.serializeToString(e);
1462
+ let L, ke = (e) => De.serializeToString(e);
1446
1463
  try {
1447
- R = await D.create(i);
1464
+ L = await xe.create(i);
1448
1465
  } catch (e) {
1449
1466
  throw new a("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: e });
1450
1467
  }
1451
- T?.mark("zip-open");
1468
+ w?.mark("zip-open");
1452
1469
  try {
1453
- if (!R.has("[Content_Types].xml")) throw new a("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
1470
+ if (!L.has("[Content_Types].xml")) throw new a("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
1454
1471
  let e = (e) => {
1455
- let t = R.getEntry(e);
1472
+ let t = L.getEntry(e);
1456
1473
  return t ? { content: t } : void 0;
1457
1474
  }, n = {
1458
1475
  workbooks: [],
@@ -1485,7 +1502,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1485
1502
  if (n === "Override") {
1486
1503
  let t = r.ContentType, n = r.PartName;
1487
1504
  if (!t || !n) return;
1488
- let i = ft[t], a = i ? e[i] : void 0;
1505
+ let i = _t[t], a = i ? e[i] : void 0;
1489
1506
  Array.isArray(a) && a.push(n);
1490
1507
  } else if (n === "Default") {
1491
1508
  let t = r.Extension, n = r.ContentType;
@@ -1497,25 +1514,25 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1497
1514
  },
1498
1515
  onError: (e) => {
1499
1516
  ((e) => {
1500
- E.push([e, "[Content_Types].xml"]);
1517
+ k.push([e, "[Content_Types].xml"]);
1501
1518
  })(`Error parsing content types: ${e?.message ?? e}`);
1502
1519
  }
1503
- }))(n), t = await R.getTextStream("[Content_Types].xml");
1520
+ }))(n), t = await L.getTextStream("[Content_Types].xml");
1504
1521
  if (!t) throw Error("Error parsing content types: '[Content_Types].xml'");
1505
1522
  try {
1506
- await z.parseStream(t, e, { xmlns: !1 });
1523
+ await R.parseStream(t, e, { xmlns: !1 });
1507
1524
  } catch (e) {
1508
1525
  throw Error("Error parsing content types: '[Content_Types].xml'", { cause: e });
1509
1526
  }
1510
- w && await R.getBuffer("[Content_Types].xml");
1527
+ C && await L.getBuffer("[Content_Types].xml");
1511
1528
  }
1512
- T?.mark("content-types");
1529
+ w?.mark("content-types");
1513
1530
  let i = n.sst, o = /* @__PURE__ */ new Set();
1514
- for (let e of n.sheets) o.add(pt(e));
1515
- i && o.add(pt(i));
1516
- for (let e of o) Se += R.uncompressedSize(e);
1517
- if (await R.prefetch((e) => !o.has(e) && !mt.test(e)), T?.mark("prefetch-side-parts"), n.workbooks.length === 0) {
1518
- let t = v("_rels/.rels", e, F, P);
1531
+ for (let e of n.sheets) o.add(vt(e));
1532
+ i && o.add(vt(i));
1533
+ for (let e of o) we += L.uncompressedSize(e);
1534
+ if (await L.prefetch((e) => !o.has(e) && !yt.test(e)), w?.mark("prefetch-side-parts"), n.workbooks.length === 0) {
1535
+ let t = _e("_rels/.rels", e, I, F);
1519
1536
  if (t) {
1520
1537
  for (let e of t.values()) if (e.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" && e.target) {
1521
1538
  n.workbooks.push(e.target);
@@ -1525,36 +1542,42 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1525
1542
  }
1526
1543
  if (n.workbooks.length === 0) throw new a("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
1527
1544
  n.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], n.richdata = ["/xl/richData/rdrichvalue.xml"];
1528
- let s = b?.resources ?? new d(), S = s.beginPersist(), D = {}, O = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map();
1529
- j.set("richTypes", []);
1530
- let we = [];
1531
- j.set("dummyWrapped", we);
1532
- let M = g("metadata", n, e, F, P).entries().next()?.value?.[1]?.metadata;
1533
- M && j.set("metadata", M);
1534
- let N = /* @__PURE__ */ new Map(), I = [], L = (t, n = N) => {
1545
+ let s = b?.resources ?? new c(), S = s.beginPersist(), xe = {}, Se = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Map();
1546
+ M.set("richTypes", []), M.set("parseInlineDxf", (e) => {
1547
+ if (!e) return;
1548
+ let t = I.parseFromString(`<dxf xmlns:x14="${me}" xmlns:xm="${g}">${e}</dxf>`, "text/xml")?.documentElement;
1549
+ if (!t) return;
1550
+ let n = F.parseDxf(t);
1551
+ return Object.keys(n).length > 0 ? n : void 0;
1552
+ });
1553
+ let Te = [];
1554
+ M.set("dummyWrapped", Te);
1555
+ let Ee = O("metadata", n, e, I, F).entries().next()?.value?.[1]?.metadata;
1556
+ Ee && M.set("metadata", Ee);
1557
+ let P = /* @__PURE__ */ new Map(), De = [], Oe = (t, n = P) => {
1535
1558
  let r = t.lastIndexOf("/"), i = t.substring(0, r + 1) + "_rels/" + t.substring(r + 1, t.length) + ".rels", a = n.get(i);
1536
- return a || (a = v(i, e, F, P, H), n.set(i, a)), a;
1537
- }, Ee = (n, r, i, a = N) => {
1538
- let o = L(r, a).get(n), l = o?.target;
1539
- if (!l) return null;
1559
+ return a || (a = _e(i, e, I, F, V), n.set(i, a)), a;
1560
+ }, Ae = (n, r, i, a = P) => {
1561
+ let o = Oe(r, a).get(n), c = o?.target;
1562
+ if (!c) return null;
1540
1563
  if (o.targetMode === "External") {
1541
1564
  if (!i) return o.target;
1542
1565
  let e = s.add({ source: { external: o.target } });
1543
- return e.addReference(D), O.add(e), S.toResourceId(e);
1566
+ return e.addReference(xe), Se.add(e), S.toResourceId(e);
1544
1567
  }
1545
- let d = r.lastIndexOf("/"), m = r.substring(0, d + 1);
1546
- l.startsWith("/") || (l = m + l), l = re(l);
1547
- let g = P?.getVisitorParamsState().get("dxfs"), v = a.get(l);
1548
- if (!v) if (o.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
1568
+ let l = r.lastIndexOf("/"), m = r.substring(0, l + 1);
1569
+ c.startsWith("/") || (c = m + c), c = be(c);
1570
+ let h = F?.getVisitorParamsState().get("dxfs"), g = a.get(c);
1571
+ if (!g) if (o.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
1549
1572
  let e = {};
1550
- v = e, I.push((async () => {
1573
+ g = e, De.push((async () => {
1551
1574
  let n = ((e, t, n, r, i, a, o, s) => {
1552
- let l = new Qe(), d = new p.TransposedBuilder(), m = null;
1553
- l.registerVisitor({
1575
+ let c = new rt(), l = s?.get("parseInlineDxf"), m = new f.TransposedBuilder(), h = null;
1576
+ c.registerVisitor({
1554
1577
  from: "autoFilter",
1555
1578
  to: "autoTable",
1556
1579
  openTag: (e) => {
1557
- let t = e.getAttribute("ref"), n = u.fastStringToRange(t);
1580
+ let t = e.getAttribute("ref"), n = d.fastStringToRange(t);
1558
1581
  e.getSource().r = n, e.getSource().v = {};
1559
1582
  },
1560
1583
  closeTag: (e) => {
@@ -1564,7 +1587,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1564
1587
  e === 0 ? n.hiddenButtons = !1 : e === a && (n.hiddenButtons = !0);
1565
1588
  }
1566
1589
  }
1567
- }), l.registerVisitor({
1590
+ }), c.registerVisitor({
1568
1591
  from: "conditionalFormatting",
1569
1592
  to: {},
1570
1593
  openTag: (e) => {
@@ -1578,7 +1601,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1578
1601
  }, i = e.getAttribute("pivot", X);
1579
1602
  i !== null && (r.pivot = i), e.setSource(r);
1580
1603
  }
1581
- }), l.registerVisitor({
1604
+ }), c.registerVisitor({
1582
1605
  from: "cfRule",
1583
1606
  to: {},
1584
1607
  openTag: (e) => {
@@ -1602,11 +1625,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1602
1625
  if (!t?.r) return;
1603
1626
  let n = t.conditionals[t.conditionals.length - 1], r = n?.rule;
1604
1627
  if (!r) return;
1605
- let i = {}, o = x(r, a);
1628
+ let i = {}, o = ce(r, a);
1606
1629
  o && (i.condition = o), r.style && (i.style = r.style), r.scale && (i.scale = r.scale), r.stopIfTrue && (i.stopIfTrue = !0), r.pivot && (i.pivot = !0), n.v = i, n.priority = r.priority, r.x14Id && (n.x14Id = r.x14Id), delete n.rule;
1607
1630
  }
1608
1631
  });
1609
- let h = (e) => {
1632
+ let g = (e) => {
1610
1633
  let t = e.conditions ?? [], n = [];
1611
1634
  for (let e = 0; e < t.length; e++) {
1612
1635
  let r = t[e], i = {};
@@ -1614,19 +1637,19 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1614
1637
  }
1615
1638
  return n;
1616
1639
  };
1617
- l.registerVisitor({
1640
+ c.registerVisitor({
1618
1641
  from: "colorScale",
1619
1642
  to: {},
1620
1643
  openTag: (e) => {},
1621
1644
  closeTag: (e) => {
1622
- let t = e.getSource(), n = t.colors ?? [], r = h(t);
1645
+ let t = e.getSource(), n = t.colors ?? [], r = g(t);
1623
1646
  for (let e = 0; e < r.length; e++) r[e].color = n[e];
1624
1647
  e.getParent().scale = {
1625
- type: f.ScaleType.ColorScale,
1648
+ type: u.ScaleType.ColorScale,
1626
1649
  stops: r
1627
1650
  };
1628
1651
  }
1629
- }), l.registerVisitor({
1652
+ }), c.registerVisitor({
1630
1653
  from: "dataBar",
1631
1654
  to: {},
1632
1655
  openTag: (e) => {
@@ -1634,12 +1657,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1634
1657
  },
1635
1658
  closeTag: (e) => {
1636
1659
  let t = e.getSource(), n = {
1637
- type: f.ScaleType.DataBar,
1638
- stops: h(t)
1660
+ type: u.ScaleType.DataBar,
1661
+ stops: g(t)
1639
1662
  }, r = t.colors?.[0];
1640
1663
  r && (n.color = r), t.minLength !== void 0 && (n.minLength = t.minLength), t.maxLength !== void 0 && (n.maxLength = t.maxLength), t.showValue !== void 0 && (n.showValue = t.showValue), e.getParent().scale = n;
1641
1664
  }
1642
- }), l.registerVisitor({
1665
+ }), c.registerVisitor({
1643
1666
  from: "iconSet",
1644
1667
  to: {},
1645
1668
  openTag: (e) => {
@@ -1647,37 +1670,37 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1647
1670
  },
1648
1671
  closeTag: (e) => {
1649
1672
  let t = e.getSource(), n = {
1650
- type: f.ScaleType.IconSet,
1651
- stops: h(t)
1673
+ type: u.ScaleType.IconSet,
1674
+ stops: g(t)
1652
1675
  };
1653
1676
  t.iconSet !== void 0 && (n.iconSet = t.iconSet), t.reverse !== void 0 && (n.reverse = t.reverse), t.showValue !== void 0 && (n.showValue = t.showValue), e.getParent().scale = n;
1654
1677
  }
1655
- }), l.registerVisitor({
1678
+ }), c.registerVisitor({
1656
1679
  from: "formula",
1657
1680
  to: {},
1658
1681
  text: (e, t) => {
1659
1682
  let n = t.getParent(), r = n.formulas;
1660
1683
  r || (r = [], n.formulas = r), r.push(e);
1661
1684
  }
1662
- }), l.registerVisitor({
1685
+ }), c.registerVisitor({
1663
1686
  from: "cfvo",
1664
1687
  to: {},
1665
1688
  openTag: (e) => {
1666
1689
  let t = e.getParent();
1667
1690
  t.conditions ||= [];
1668
1691
  let n = e.getSource();
1669
- t.conditions.push(n), e.copyTo("type", $), n.type === f.ColorStopType.Formula ? e.copyTo("value", $, "val") : e.copyTo("value", Q, "val"), !1 === e.getAttribute("gte", X) && (n.exclusive = !0);
1692
+ t.conditions.push(n), e.copyTo("type", $), n.type === u.ColorStopType.Formula ? e.copyTo("value", $, "val") : e.copyTo("value", Q, "val"), !1 === e.getAttribute("gte", X) && (n.exclusive = !0);
1670
1693
  }
1671
- }), l.registerVisitor({
1694
+ }), c.registerVisitor({
1672
1695
  from: "color",
1673
1696
  to: {},
1674
1697
  openTag: (e) => {
1675
1698
  let t = e.getParent();
1676
1699
  t.colors ||= [];
1677
- let n = te((t) => e.getAttribute(t));
1700
+ let n = ve((t) => e.getAttribute(t));
1678
1701
  t.colors.push(n);
1679
1702
  }
1680
- }), l.registerVisitor({
1703
+ }), c.registerVisitor({
1681
1704
  from: "filterColumn",
1682
1705
  to: {},
1683
1706
  openTag: (e) => {
@@ -1696,77 +1719,83 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1696
1719
  }
1697
1720
  return r;
1698
1721
  }
1699
- }), l.registerVisitor({
1722
+ }), c.registerVisitor({
1700
1723
  from: "colorFilter",
1701
1724
  openTag: (e) => {
1702
1725
  let t = e.getParent(), n = {};
1703
- t.operator = c.BuiltInOperatorNames.Color, t.param = n, e.copyToObject(n, "cellColor"), e.copyToObject(n, "styleId", Z, "dxfId");
1726
+ t.operator = p.BuiltInOperatorNames.Color, t.param = n, e.copyToObject(n, "cellColor"), e.copyToObject(n, "styleId", Z, "dxfId");
1704
1727
  }
1705
- }), l.registerVisitor({
1728
+ }), c.registerVisitor({
1706
1729
  from: "iconFilter",
1707
1730
  openTag: (e) => {
1708
1731
  let t = e.getParent(), n = {};
1709
- t.operator = c.BuiltInOperatorNames.Icon, t.param = n, e.copyToObject(n, "iconId", Z), e.copyToObject(n, "iconSet", $);
1732
+ t.operator = p.BuiltInOperatorNames.Icon, t.param = n, e.copyToObject(n, "iconId", Z), e.copyToObject(n, "iconSet", $);
1710
1733
  }
1711
- }), l.registerVisitor({
1734
+ }), c.registerVisitor({
1712
1735
  from: "top10",
1713
1736
  openTag: (e) => {
1714
1737
  let t = e.getParent(), n = {};
1715
- t.operator = c.BuiltInOperatorNames.TopN, t.param = n, e.copyToObject(n, "filterVal", Q), e.copyToObject(n, "percent", X), e.copyToObject(n, "top", X), e.copyToObject(n, "limit", Q, "val");
1738
+ t.operator = p.BuiltInOperatorNames.TopN, t.param = n, e.copyToObject(n, "filterVal", Q), e.copyToObject(n, "percent", X), e.copyToObject(n, "top", X), e.copyToObject(n, "limit", Q, "val");
1716
1739
  }
1717
- }), l.registerVisitor({
1740
+ }), c.registerVisitor({
1718
1741
  from: "dynamicFilter",
1719
1742
  openTag: (e) => {
1720
1743
  let t = e.getParent(), n = {};
1721
- t.operator = c.BuiltInOperatorNames.TimePeriod, t.param = n;
1744
+ t.operator = p.BuiltInOperatorNames.TimePeriod, t.param = n;
1722
1745
  let r = e.getAttribute("type");
1723
- Object.values(c.AverageType).includes(r) ? (t.operator = c.BuiltInOperatorNames.Average, e.copyToObject(n, "stdDevs", Z, "val")) : e.copyToObject(n, "anchorDate", Z, "val"), e.copyToObject(n, "operator", $, "type"), e.copyToObject(n, "maxVal", Q, "maxVal");
1746
+ Object.values(p.AverageType).includes(r) ? (t.operator = p.BuiltInOperatorNames.Average, e.copyToObject(n, "stdDevs", Z, "val")) : e.copyToObject(n, "anchorDate", Z, "val"), e.copyToObject(n, "operator", $, "type"), e.copyToObject(n, "maxVal", Q, "maxVal");
1724
1747
  }
1725
- }), l.registerVisitor({
1748
+ }), c.registerVisitor({
1726
1749
  from: "filters",
1727
1750
  to: {},
1728
1751
  openTag: (e) => {
1729
1752
  let t = e.getParent(), n = {};
1730
- return t.operator = c.BuiltInOperatorNames.InSet, t.param = n, e.copyToObject(n, "blank", X), e.copyToObject(n, "calendarType", $), n;
1753
+ return t.operator = p.BuiltInOperatorNames.InSet, t.param = n, e.copyToObject(n, "blank", X), e.copyToObject(n, "calendarType", $), n;
1731
1754
  }
1732
- }), l.registerVisitor({
1755
+ }), c.registerVisitor({
1733
1756
  from: "filter",
1734
1757
  openTag: (e) => {
1735
1758
  let t = e.getParent(), n = t.items;
1736
1759
  n || (n = [], t.items = n), n.push(e.getAttribute("val", $));
1737
1760
  }
1738
- }), l.registerVisitor({
1761
+ }), c.registerVisitor({
1739
1762
  from: "dateGroupItem",
1740
1763
  to: {},
1741
1764
  openTag: (e) => {
1742
1765
  let t = e.getParent(), n = t.dateGroups;
1743
1766
  n || (n = [], t.dateGroups = n), n.push(e.getSource()), e.copyTo("group", $, "dateTimeGrouping"), e.copyTo("day", Z), e.copyTo("hour", Z), e.copyTo("minute", Z), e.copyTo("month", Z), e.copyTo("second", Z), e.copyTo("year", Z);
1744
1767
  }
1745
- }), l.registerVisitor({
1768
+ }), c.registerVisitor({
1746
1769
  from: "customFilters",
1747
1770
  openTag: (e) => {
1748
- let t = e.getParent(), n = e.getAttribute("and"), r = n === "and" || n === "1";
1749
- e.getAttribute("val");
1750
- let i = [];
1751
- return t.operator = r ? c.BuiltInOperatorNames.And : c.BuiltInOperatorNames.Or, t.param = { conditions: i }, e.setSource(t), i;
1771
+ let t = e.getParent(), n = e.getAttribute("and"), r = n === "and" || n === "1", i = [];
1772
+ return t.operator = r ? p.BuiltInOperatorNames.And : p.BuiltInOperatorNames.Or, t.param = i, e.setSource(t), i;
1752
1773
  },
1753
1774
  closeTag: (e) => {
1754
- e.getSource().param.conditions.length;
1775
+ let t = e.getSource(), n = t?.param;
1776
+ if (n?.length !== 1) return;
1777
+ let r = n[0];
1778
+ t.operator = r.operator, t.param = r.param;
1755
1779
  }
1756
- }), l.registerVisitor({
1780
+ }), c.registerVisitor({
1757
1781
  from: "customFilter",
1758
1782
  openTag: (e) => {
1759
1783
  let t, n = e.getParent();
1760
- Array.isArray(n) ? (t = {}, n.push(t)) : t = n, e.copyToObject(t, "operator"), e.copyToObject(t, "param", $, "val");
1784
+ Array.isArray(n) ? (t = {}, n.push(t)) : t = n;
1785
+ let r = T({
1786
+ operator: e.getAttribute("operator"),
1787
+ val: e.getAttribute("val")
1788
+ });
1789
+ r && (t.operator = r.operator, t.param = r.param);
1761
1790
  }
1762
- }), l.registerVisitor({
1791
+ }), c.registerVisitor({
1763
1792
  from: "sortState",
1764
1793
  to: {},
1765
1794
  openTag: (e) => {
1766
1795
  let t = e.getParent(), n = t.v;
1767
1796
  n && (n.sort = {}, e.setSource(t));
1768
1797
  }
1769
- }), l.registerVisitor({
1798
+ }), c.registerVisitor({
1770
1799
  from: "sortCondition",
1771
1800
  to: {},
1772
1801
  openTag: (e) => {
@@ -1778,7 +1807,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1778
1807
  i || (i = [], r.sorts = i);
1779
1808
  let a = e.getAttribute("ref"), o = 0;
1780
1809
  if (a) {
1781
- let e = u.fastStringToRange(a, lt).colStart, n = t.r, r = n.colStart;
1810
+ let e = d.fastStringToRange(a, mt).colStart, n = t.r, r = n.colStart;
1782
1811
  o = n ? e - r : e;
1783
1812
  }
1784
1813
  let s = {};
@@ -1789,56 +1818,56 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1789
1818
  };
1790
1819
  i.push(c);
1791
1820
  }
1792
- }), l.registerVisitor({
1821
+ }), c.registerVisitor({
1793
1822
  from: "AlternateContent",
1794
1823
  to: null
1795
1824
  });
1796
- let g = (e) => {
1797
- m = e.getSource(), e.copyTo("topLeft", $, "topLeftCell");
1798
- let t = ne(e.getAttribute("defaultGridColor")), n = e.getAttribute("colorId");
1825
+ let ne = (e) => {
1826
+ h = e.getSource(), e.copyTo("topLeft", $, "topLeftCell");
1827
+ let t = ye(e.getAttribute("defaultGridColor")), n = e.getAttribute("colorId");
1799
1828
  n === null || t || (e.getSource().gridLineColor = "index" + parseFloat(n)), e.copyTo("showZeros", X), e.copyTo("showFormulas", X), e.copyTo("zoomScale", Z), e.copyTo("showRowHeaders", X, "showRowColHeaders"), e.copyTo("showColumnHeaders", X, "showRowColHeaders"), e.copyTo("showRowGridlines", X, "showGridLines"), e.copyTo("showColumnGridlines", X, "showGridLines"), e.copyTo("rightToLeft", X);
1800
1829
  };
1801
- l.registerVisitor({
1830
+ c.registerVisitor({
1802
1831
  from: "sheetView",
1803
1832
  to: "view",
1804
1833
  openTag: (e) => {
1805
- g(e);
1834
+ ne(e);
1806
1835
  },
1807
1836
  closeTag: () => {
1808
- m = null;
1837
+ h = null;
1809
1838
  }
1810
- }), l.registerVisitor({
1839
+ }), c.registerVisitor({
1811
1840
  from: "customSheetViews",
1812
1841
  to: "customSheetViews",
1813
1842
  openTag: (e) => {
1814
1843
  e.setSource([]);
1815
1844
  }
1816
- }), l.registerVisitor({
1845
+ }), c.registerVisitor({
1817
1846
  from: "customSheetView",
1818
1847
  to: [],
1819
1848
  openTag: (e) => {
1820
- g(e);
1849
+ ne(e);
1821
1850
  },
1822
1851
  closeTag: () => {
1823
- m = null;
1852
+ h = null;
1824
1853
  }
1825
- }), l.registerVisitor({
1854
+ }), c.registerVisitor({
1826
1855
  from: "selection",
1827
1856
  to: "selection",
1828
1857
  openTag: (e) => {
1829
- if (!m) return;
1858
+ if (!h) return;
1830
1859
  e.copyTo("cell", $, "activeCell"), e.copyTo("rangeIndex", Z, "activeCellId");
1831
1860
  let t = e.getAttribute("activeCell"), n = e.getAttribute("sqref");
1832
1861
  n && n !== t && (e.getSource().ranges = n.trim().split(/\s+/));
1833
1862
  }
1834
- }), l.registerVisitor({
1863
+ }), c.registerVisitor({
1835
1864
  from: "pane",
1836
1865
  to: null,
1837
1866
  openTag: (e) => {
1838
- if (m && e.getAttribute("state") === "frozen") {
1867
+ if (h && e.getAttribute("state") === "frozen") {
1839
1868
  let t = {};
1840
- m.freezePanes = t, e.copyToObject(t, "topLeft", $, "topLeftCell");
1841
- let n = (m.topLeft ? u.fastStringToCell(m.topLeft) : void 0) ?? {
1869
+ h.freezePanes = t, e.copyToObject(t, "topLeft", $, "topLeftCell");
1870
+ let n = (h.topLeft ? d.fastStringToCell(h.topLeft) : void 0) ?? {
1842
1871
  colIndex: 0,
1843
1872
  rowIndex: 0
1844
1873
  }, r = {
@@ -1850,60 +1879,60 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1850
1879
  colIndex: n.colIndex + r.colIndex,
1851
1880
  rowIndex: n.rowIndex + r.rowIndex
1852
1881
  };
1853
- t.coords = u.cellToString(i);
1882
+ t.coords = d.cellToString(i);
1854
1883
  }
1855
1884
  }
1856
- }), l.registerVisitor({
1885
+ }), c.registerVisitor({
1857
1886
  from: "tabColor",
1858
1887
  to: null,
1859
1888
  openTag: (t) => {
1860
- let n = te((e) => t.getAttribute(e));
1889
+ let n = ve((e) => t.getAttribute(e));
1861
1890
  n && (e.tabColor = n);
1862
1891
  }
1863
- }), l.registerVisitor({
1892
+ }), c.registerVisitor({
1864
1893
  from: "pageSetUpPr",
1865
1894
  to: "pageSetUpPr",
1866
1895
  openTag: (e) => {}
1867
- }), l.registerVisitor({
1896
+ }), c.registerVisitor({
1868
1897
  from: "outlinePr",
1869
1898
  to: "outlinePr",
1870
1899
  openTag: (e) => {}
1871
- }), l.registerVisitor({
1900
+ }), c.registerVisitor({
1872
1901
  from: "pageMargins",
1873
1902
  to: "pageMargins",
1874
1903
  openTag: (e) => {
1875
1904
  e.copyTo("bottom", Q), e.copyTo("footer", Q), e.copyTo("header", Q), e.copyTo("left", Q), e.copyTo("right", Q), e.copyTo("top", Q), e.copyTo("bottom", Q);
1876
1905
  }
1877
- }), l.registerVisitor({
1906
+ }), c.registerVisitor({
1878
1907
  from: "pageSetup",
1879
1908
  to: "pageSetup",
1880
1909
  openTag: (e) => {
1881
1910
  e.copyTo("blackAndWhite", X), e.copyTo("cellComments"), e.copyTo("copies", Z), e.copyTo("draft", X), e.copyTo("errors"), e.copyTo("firstPageNumber", Z), e.copyTo("fitToHeight", Z), e.copyTo("fitToWidth", Z), e.copyTo("horizontalDpi", Z), e.copyTo("orientation"), e.copyTo("pageOrder"), e.copyTo("paperSize", Z), e.copyTo("scale", Z), e.copyTo("useFirstPageNumber", X), e.copyTo("usePrinterDefaults", X), e.copyTo("verticalDpi", Z);
1882
1911
  }
1883
- }), l.registerVisitor({
1912
+ }), c.registerVisitor({
1884
1913
  from: "printOptions",
1885
1914
  to: "printOptions",
1886
1915
  openTag: (e) => {
1887
1916
  e.copyTo("gridLines", X), e.copyTo("gridLinesSet", X), e.copyTo("headings", X), e.copyTo("horizontalCentered", X), e.copyTo("verticalCentered", X);
1888
1917
  }
1889
- }), l.registerVisitor({
1918
+ }), c.registerVisitor({
1890
1919
  from: "headerFoot",
1891
1920
  to: "headerFoot",
1892
1921
  openTag: (e) => {}
1893
- }), l.registerVisitor({
1922
+ }), c.registerVisitor({
1894
1923
  from: "mergeCells",
1895
1924
  to: "merges",
1896
1925
  openTag: (e) => {
1897
1926
  e.setSource([]);
1898
1927
  }
1899
- }), l.registerVisitor({
1928
+ }), c.registerVisitor({
1900
1929
  from: "dataValidations",
1901
1930
  to: "validations",
1902
1931
  openTag: (e) => {
1903
1932
  e.setSource([]);
1904
1933
  }
1905
1934
  });
1906
- let _ = {
1935
+ let ie = {
1907
1936
  from: "dataValidation",
1908
1937
  to: [],
1909
1938
  openTag: (e) => {
@@ -1922,25 +1951,25 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1922
1951
  closeTag: (e) => {
1923
1952
  let t = e.getSource();
1924
1953
  if (!t?.rule) return;
1925
- let n = _e(t.rule, a);
1954
+ let n = re(t.rule, a);
1926
1955
  n && (e.getAttribute("allowBlank", X) && (n.includeBlanks = !0), t.v.condition = n), delete t.rule;
1927
1956
  }
1928
1957
  };
1929
- l.registerVisitor(_), l.registerVisitor({
1958
+ c.registerVisitor(ie), c.registerVisitor({
1930
1959
  from: "formula1",
1931
1960
  to: {},
1932
1961
  text: (e, t) => {
1933
1962
  let n = t.getParent().rule;
1934
- n?.type && (n.formula1 = ue(e, n.type));
1963
+ n?.type && (n.formula1 = le(e, n.type));
1935
1964
  }
1936
- }), l.registerVisitor({
1965
+ }), c.registerVisitor({
1937
1966
  from: "formula2",
1938
1967
  to: {},
1939
1968
  text: (e, t) => {
1940
1969
  let n = t.getParent().rule;
1941
- n?.type && (n.formula2 = ue(e, n.type));
1970
+ n?.type && (n.formula2 = le(e, n.type));
1942
1971
  }
1943
- }), l.registerVisitor({
1972
+ }), c.registerVisitor({
1944
1973
  from: "picture",
1945
1974
  to: "picture",
1946
1975
  openTag: (e) => {
@@ -1950,7 +1979,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1950
1979
  e.getSource().resId = r;
1951
1980
  }
1952
1981
  });
1953
- let ee = {
1982
+ let se = {
1954
1983
  from: "slicer",
1955
1984
  to: {},
1956
1985
  openTag: (e) => {
@@ -1962,8 +1991,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1962
1991
  for (let e of a) i.slicers[e] = r[e];
1963
1992
  }
1964
1993
  };
1965
- l.registerVisitor(ee);
1966
- let v = (e, t) => ({
1994
+ c.registerVisitor(se);
1995
+ let b = (e, t) => ({
1967
1996
  from: e,
1968
1997
  to: {},
1969
1998
  openTag: (e) => {
@@ -1975,8 +2004,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1975
2004
  closeTag: (e) => {
1976
2005
  t(String(e.getSource() ?? ""), e);
1977
2006
  }
1978
- }), re = /* @__PURE__ */ new Map();
1979
- re.set("dataValidations", {
2007
+ }), x = /* @__PURE__ */ new Map();
2008
+ x.set("dataValidations", {
1980
2009
  from: "dataValidations",
1981
2010
  to: "validations",
1982
2011
  openTag: (e) => {
@@ -1986,15 +2015,15 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1986
2015
  closeTag: (e) => {
1987
2016
  (e.getSource()?.length ?? 0) === 0 && e.setSource(void 0);
1988
2017
  }
1989
- }), re.set("dataValidation", {
1990
- ..._,
2018
+ }), x.set("dataValidation", {
2019
+ ...ie,
1991
2020
  closeTag: (e) => {
1992
- _.closeTag(e);
2021
+ ie.closeTag(e);
1993
2022
  let t = e.getSource();
1994
2023
  t && !t.r && (e.warn("x14 dataValidation with no xm:sqref was dropped."), e.setSource(void 0));
1995
2024
  }
1996
2025
  });
1997
- let ae = (e) => ({
2026
+ let S = (e) => ({
1998
2027
  from: e,
1999
2028
  to: {},
2000
2029
  openTag: (t) => {
@@ -2004,18 +2033,18 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2004
2033
  });
2005
2034
  }
2006
2035
  });
2007
- re.set("formula1", ae("formula1")), re.set("formula2", ae("formula2")), re.set("f", v("f", (e, t) => {
2036
+ x.set("formula1", S("formula1")), x.set("formula2", S("formula2")), x.set("f", b("f", (e, t) => {
2008
2037
  let n = t.getParent(), r = n?.rule;
2009
- r && (r[n.key] = ue(e, r.type));
2010
- })), re.set("sqref", v("sqref", (e, t) => {
2038
+ r && (r[n.key] = le(e, r.type));
2039
+ })), x.set("sqref", b("sqref", (e, t) => {
2011
2040
  let n = t.getParent(), r = e.trim();
2012
2041
  n && r && (n.r = r.split(/\s+/).join(","));
2013
2042
  }));
2014
- let le = /* @__PURE__ */ new Map(), de = [], y = /* @__PURE__ */ new Map();
2015
- y.set("conditionalFormattings", {
2043
+ let C = /* @__PURE__ */ new Map(), w = [], E = /* @__PURE__ */ new Map();
2044
+ E.set("conditionalFormattings", {
2016
2045
  from: "conditionalFormattings",
2017
2046
  transparent: !0
2018
- }), y.set("conditionalFormatting", {
2047
+ }), E.set("conditionalFormatting", {
2019
2048
  from: "conditionalFormatting",
2020
2049
  to: {},
2021
2050
  openTag: (e) => {
@@ -2025,23 +2054,23 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2025
2054
  let t = e.getSource(), n = t?.rules ?? [];
2026
2055
  for (let e = 0; e < n.length; e++) {
2027
2056
  let r = n[e];
2028
- r.sqref = t.sqref, r.id ? le.set(r.id, r) : de.push(r);
2057
+ r.sqref = t.sqref, r.id ? C.set(r.id, r) : w.push(r);
2029
2058
  }
2030
2059
  }
2031
- }), y.set("cfRule", {
2060
+ }), E.set("cfRule", {
2032
2061
  from: "cfRule",
2033
2062
  to: {},
2034
2063
  openTag: (e) => {
2035
- e.copyTo("id", $), e.copyTo("type", $), e.copyTo("priority", Z);
2064
+ e.copyTo("id", $), e.copyTo("type", $), e.copyTo("priority", Z), e.copyTo("stopIfTrue", X), e.copyTo("operator", $), e.copyTo("text", $), e.copyTo("timePeriod", $), e.copyTo("aboveAverage", X), e.copyTo("equalAverage", X), e.copyTo("stdDev", Z), e.copyTo("bottom", X), e.copyTo("percent", X), e.copyTo("rank", Z);
2036
2065
  },
2037
2066
  closeTag: (e) => {
2038
2067
  let t = e.getSource();
2039
2068
  t && e.getParent()?.rules?.push(t);
2040
2069
  }
2041
- }), y.set("sqref", v("sqref", (e, t) => {
2070
+ }), E.set("sqref", b("sqref", (e, t) => {
2042
2071
  let n = t.getParent(), r = e.trim();
2043
2072
  n && r && (n.sqref = r);
2044
- })), y.set("dataBar", {
2073
+ })), E.set("dataBar", {
2045
2074
  from: "dataBar",
2046
2075
  to: {},
2047
2076
  openTag: (e) => {
@@ -2050,7 +2079,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2050
2079
  closeTag: (e) => {
2051
2080
  e.getParent().dataBar = e.getSource();
2052
2081
  }
2053
- }), y.set("iconSet", {
2082
+ }), E.set("iconSet", {
2054
2083
  from: "iconSet",
2055
2084
  to: {},
2056
2085
  openTag: (e) => {
@@ -2059,30 +2088,47 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2059
2088
  closeTag: (e) => {
2060
2089
  e.getParent().iconSet = e.getSource();
2061
2090
  }
2062
- }), y.set("cfvo", {
2091
+ });
2092
+ let ue = /* @__PURE__ */ new Map();
2093
+ ue.set("f", b("f", (e, t) => {
2094
+ let n = t.getParent();
2095
+ if (!n) return;
2096
+ let r = e.trim(), i = Number(r);
2097
+ n.value = r.length > 0 && Number.isFinite(i) ? i : e;
2098
+ })), E.set("cfvo", {
2063
2099
  from: "cfvo",
2064
2100
  to: {},
2101
+ scope: () => ue,
2065
2102
  openTag: (e) => {
2066
2103
  let t = e.getParent();
2067
2104
  t.conditions ||= [];
2068
2105
  let n = e.getSource();
2069
2106
  t.conditions.push(n), e.copyTo("type", $), !1 === e.getAttribute("gte", X) && (n.exclusive = !0);
2070
2107
  }
2071
- }), y.set("f", v("f", (e, t) => {
2108
+ }), E.set("f", b("f", (e, t) => {
2072
2109
  let n = t.getParent();
2073
- if (!n) return;
2074
- let r = e.trim(), i = Number(r);
2075
- n.value = r.length > 0 && Number.isFinite(i) ? i : e;
2076
- }));
2077
- let b = (e) => ({
2110
+ n && (n.formulas ??= []).push(e);
2111
+ })), E.set("dxf", {
2112
+ from: "dxf",
2113
+ to: {},
2114
+ raw: !0,
2115
+ closeTag: (e) => {
2116
+ if (!l) return;
2117
+ let t = e.getParent();
2118
+ if (!t) return;
2119
+ let n = l(e.getRawXml() ?? "");
2120
+ n && (t.style = n);
2121
+ }
2122
+ });
2123
+ let me = (e) => ({
2078
2124
  from: e,
2079
2125
  to: {},
2080
2126
  openTag: (t) => {
2081
- let n = te((e) => t.getAttribute(e));
2127
+ let n = ve((e) => t.getAttribute(e));
2082
2128
  n && (t.getParent()[e] = n);
2083
2129
  }
2084
2130
  });
2085
- y.set("borderColor", b("borderColor")), y.set("negativeFillColor", b("negativeFillColor")), y.set("negativeBorderColor", b("negativeBorderColor")), y.set("axisColor", b("axisColor")), y.set("cfIcon", {
2131
+ E.set("borderColor", me("borderColor")), E.set("negativeFillColor", me("negativeFillColor")), E.set("negativeBorderColor", me("negativeBorderColor")), E.set("axisColor", me("axisColor")), E.set("cfIcon", {
2086
2132
  from: "cfIcon",
2087
2133
  to: {},
2088
2134
  openTag: (e) => {
@@ -2095,54 +2141,54 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2095
2141
  });
2096
2142
  }
2097
2143
  });
2098
- let S = /* @__PURE__ */ new Map();
2099
- S.set("id", v("id", (e, t) => {
2144
+ let D = /* @__PURE__ */ new Map();
2145
+ D.set("id", b("id", (e, t) => {
2100
2146
  let n = t.getParent(), r = e.trim();
2101
2147
  n && r && (n.x14Id = r);
2102
2148
  }));
2103
- let he = /* @__PURE__ */ new Map();
2104
- he.set("slicerList", {
2149
+ let O = /* @__PURE__ */ new Map();
2150
+ O.set("slicerList", {
2105
2151
  from: "slicerList",
2106
2152
  transparent: !0
2107
- }), he.set("slicer", ee);
2108
- let w = /* @__PURE__ */ new Map([
2109
- [C(ve), re],
2110
- [C(ge), y],
2111
- [C(ie), y],
2112
- [C(pe), S],
2113
- [C(oe), he],
2114
- [C(me), he]
2115
- ]), ye = /* @__PURE__ */ new Set();
2116
- l.registerVisitor({
2153
+ }), O.set("slicer", se);
2154
+ let he = /* @__PURE__ */ new Map([
2155
+ [y(oe), x],
2156
+ [y(te), E],
2157
+ [y(_), E],
2158
+ [y(pe), D],
2159
+ [y(ee), O],
2160
+ [y(v), O]
2161
+ ]), ge = /* @__PURE__ */ new Set();
2162
+ c.registerVisitor({
2117
2163
  from: "extLst",
2118
2164
  transparent: !0
2119
- }), l.registerVisitor({
2165
+ }), c.registerVisitor({
2120
2166
  from: "ext",
2121
2167
  transparent: !0,
2122
2168
  scope: (e) => {
2123
- let t = e.getAttribute("uri"), n = C(t), r = w.get(n);
2169
+ let t = e.getAttribute("uri"), n = y(t), r = he.get(n);
2124
2170
  if (r) return r;
2125
- if (!fe.has(n) && !ye.has(n)) {
2126
- ye.add(n);
2127
- let r = se[n];
2171
+ if (!de.has(n) && !ge.has(n)) {
2172
+ ge.add(n);
2173
+ let r = fe[n];
2128
2174
  e.warn(r ? `Extension content '${r}' (${t}) is not read; it will be lost on resave.` : `Unknown extension content (uri ${t}) is not read; it will be lost on resave.`);
2129
2175
  }
2130
2176
  return null;
2131
2177
  }
2132
- }), l.registerVisitor({
2178
+ }), c.registerVisitor({
2133
2179
  from: "mergeCell",
2134
2180
  to: [],
2135
2181
  openTag: (e) => {
2136
2182
  let t = e.getAttribute("ref");
2137
2183
  e.setSource(t);
2138
2184
  }
2139
- }), l.registerVisitor({
2185
+ }), c.registerVisitor({
2140
2186
  from: "hyperlinks",
2141
2187
  to: "hyperlinks",
2142
2188
  openTag: (e) => {
2143
2189
  e.setSource([]);
2144
2190
  }
2145
- }), l.registerVisitor({
2191
+ }), c.registerVisitor({
2146
2192
  from: "hyperlink",
2147
2193
  to: [],
2148
2194
  openTag: (e) => {
@@ -2163,7 +2209,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2163
2209
  v: o
2164
2210
  });
2165
2211
  }
2166
- }), l.registerVisitor({
2212
+ }), c.registerVisitor({
2167
2213
  from: "drawing",
2168
2214
  to: "movables",
2169
2215
  openTag: (e) => {
@@ -2172,13 +2218,13 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2172
2218
  let r = t(n);
2173
2219
  r ? e.setSource(r.movables) : console.warn("no drawing found for rId", n);
2174
2220
  }
2175
- }), l.registerVisitor({
2221
+ }), c.registerVisitor({
2176
2222
  from: "tableParts",
2177
2223
  to: "tables",
2178
2224
  openTag: (e) => {
2179
2225
  e.setSource([]);
2180
2226
  }
2181
- }), l.registerVisitor({
2227
+ }), c.registerVisitor({
2182
2228
  from: "tablePart",
2183
2229
  to: [],
2184
2230
  openTag: (e) => {
@@ -2188,23 +2234,35 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2188
2234
  r ? e.setSource(r) : console.warn("no table found for rId", n);
2189
2235
  }
2190
2236
  });
2191
- let T = (e, t) => {
2192
- t.conditions?.length && (e.stops = h(t)), t.minLength !== void 0 && (e.minLength = t.minLength), t.maxLength !== void 0 && (e.maxLength = t.maxLength), (t.gradient ?? 1) && (e.gradient = !0), t.border && t.borderColor && (e.borderColor = t.borderColor), !t.negativeBarColorSameAsPositive && t.negativeFillColor && (e.negativeFillColor = t.negativeFillColor), !(t.negativeBarBorderColorSameAsPositive ?? 1) && t.negativeBorderColor && (e.negativeBorderColor = t.negativeBorderColor), t.axisColor && (e.axisColor = t.axisColor), t.axisPosition !== "middle" && t.axisPosition !== "none" || (e.axisPosition = t.axisPosition), t.direction !== "leftToRight" && t.direction !== "rightToLeft" || (e.direction = t.direction);
2237
+ let _e = (e, t) => {
2238
+ t.conditions?.length && (e.stops = g(t)), t.minLength !== void 0 && (e.minLength = t.minLength), t.maxLength !== void 0 && (e.maxLength = t.maxLength), (t.gradient ?? 1) && (e.gradient = !0), t.border && t.borderColor && (e.borderColor = t.borderColor), !t.negativeBarColorSameAsPositive && t.negativeFillColor && (e.negativeFillColor = t.negativeFillColor), !(t.negativeBarBorderColorSameAsPositive ?? 1) && t.negativeBorderColor && (e.negativeBorderColor = t.negativeBorderColor), t.axisColor && (e.axisColor = t.axisColor), t.axisPosition !== "middle" && t.axisPosition !== "none" || (e.axisPosition = t.axisPosition), t.direction !== "leftToRight" && t.direction !== "rightToLeft" || (e.direction = t.direction);
2193
2239
  }, be = (e, t) => {
2194
- t.conditions?.length && (e.stops = h(t)), t.iconSet && t.iconSet !== e.iconSet && (e.iconSet = t.iconSet), t.icons?.length && (e.icon = t.icons), t.reverse !== void 0 && (e.reverse = t.reverse), t.showValue !== void 0 && (e.showValue = t.showValue);
2195
- }, E = (e) => {
2196
- if (e.type !== "iconSet" || !e.iconSet || !e.sqref) return null;
2197
- let t = {
2198
- type: f.ScaleType.IconSet,
2199
- stops: []
2200
- };
2201
- return be(t, e.iconSet), {
2202
- r: e.sqref.split(/\s+/).join(","),
2203
- v: { scale: t },
2240
+ t.conditions?.length && (e.stops = g(t)), t.iconSet && t.iconSet !== e.iconSet && (e.iconSet = t.iconSet), t.icons?.length && (e.icon = t.icons), t.reverse !== void 0 && (e.reverse = t.reverse), t.showValue !== void 0 && (e.showValue = t.showValue);
2241
+ }, k = (e) => {
2242
+ if (!e.sqref) return null;
2243
+ let t = e.sqref.split(/\s+/).join(",");
2244
+ if (e.type === "iconSet") {
2245
+ if (!e.iconSet) return null;
2246
+ let n = {
2247
+ type: u.ScaleType.IconSet,
2248
+ stops: []
2249
+ };
2250
+ return be(n, e.iconSet), {
2251
+ r: t,
2252
+ v: { scale: n },
2253
+ priority: e.priority
2254
+ };
2255
+ }
2256
+ let n = ce(e, a);
2257
+ if (!n) return null;
2258
+ let r = { condition: n };
2259
+ return e.style && (r.style = e.style), e.stopIfTrue && (r.stopIfTrue = !0), {
2260
+ r: t,
2261
+ v: r,
2204
2262
  priority: e.priority
2205
2263
  };
2206
2264
  };
2207
- l.registerVisitor({
2265
+ c.registerVisitor({
2208
2266
  from: "worksheet",
2209
2267
  to: {},
2210
2268
  openTag: (e) => {},
@@ -2214,23 +2272,27 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2214
2272
  let t = n[e], r = t.x14Id;
2215
2273
  if (!r) continue;
2216
2274
  delete t.x14Id;
2217
- let i = le.get(r);
2275
+ let i = C.get(r);
2218
2276
  if (!i) continue;
2219
- le.delete(r);
2277
+ C.delete(r);
2220
2278
  let a = t.v?.scale;
2221
- i.dataBar && a?.type === f.ScaleType.DataBar ? T(a, i.dataBar) : i.iconSet && a?.type === f.ScaleType.IconSet && be(a, i.iconSet);
2279
+ i.dataBar && a?.type === u.ScaleType.DataBar ? _e(a, i.dataBar) : i.iconSet && a?.type === u.ScaleType.IconSet && be(a, i.iconSet);
2222
2280
  }
2223
- let r = [...le.values(), ...de];
2281
+ let r = [...C.values(), ...w], i = /* @__PURE__ */ new Set(), o = 0;
2224
2282
  for (let e = 0; e < r.length; e++) {
2225
- let i = E(r[e]);
2226
- i ? (n || (n = [], t.conditionals = n), n.push(i)) : a?.(`x14-only conditional formatting rule (type '${r[e].type ?? "unknown"}') is not read and will be lost on resave.`);
2283
+ let a = k(r[e]);
2284
+ a ? (n || (n = [], t.conditionals = n), n.push(a)) : (i.add(r[e].type ?? "unknown"), o++);
2285
+ }
2286
+ if (o > 0) {
2287
+ let e = [...i].map((e) => `'${e}'`).join(", ");
2288
+ a?.(o === 1 ? `An x14-only conditional formatting rule (type ${e}) is not read and will be lost on resave.` : `${o} x14-only conditional formatting rules (types ${e}) are not read and will be lost on resave.`);
2227
2289
  }
2228
2290
  if (n) {
2229
2291
  n.length > 1 && n.sort((e, t) => (e.priority ?? Infinity) - (t.priority ?? Infinity));
2230
2292
  for (let e = 0; e < n.length; e++) delete n[e].priority;
2231
2293
  }
2232
2294
  }
2233
- }), l.registerVisitor({
2295
+ }), c.registerVisitor({
2234
2296
  from: "customProperties",
2235
2297
  to: "customProperties",
2236
2298
  openTag: (e) => {
@@ -2240,7 +2302,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2240
2302
  let t = e.getSource();
2241
2303
  t.length > 0 && (e.getParent().customProperties = t);
2242
2304
  }
2243
- }), l.registerVisitor({
2305
+ }), c.registerVisitor({
2244
2306
  from: "customPr",
2245
2307
  to: {},
2246
2308
  openTag: (e) => {
@@ -2251,7 +2313,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2251
2313
  let i = t(r, !0), a = e.getSource();
2252
2314
  a.resId = i, n.push(a);
2253
2315
  }
2254
- }), l.registerVisitor({
2316
+ }), c.registerVisitor({
2255
2317
  from: "sheetProtection",
2256
2318
  to: "protection",
2257
2319
  openTag: (e) => {
@@ -2262,13 +2324,13 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2262
2324
  let r = {};
2263
2325
  e.copyToObject(r, "hash", $, "hashValue"), e.copyToObject(r, "algorithm", $, "algorithmName"), e.copyToObject(r, "salt", $, "saltValue"), e.copyToObject(r, "spinCount", Z), Object.keys(r).length > 0 && (e.getSource().password = r);
2264
2326
  }
2265
- }), l.registerVisitor({
2327
+ }), c.registerVisitor({
2266
2328
  from: "protectedRanges",
2267
2329
  to: "protectedRanges",
2268
2330
  openTag: (e) => {
2269
2331
  e.setSource([]);
2270
2332
  }
2271
- }), l.registerVisitor({
2333
+ }), c.registerVisitor({
2272
2334
  from: "protectedRange",
2273
2335
  to: [],
2274
2336
  openTag: (e) => {
@@ -2286,7 +2348,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2286
2348
  let t = e.getSource();
2287
2349
  t?.r && t.v.name || e.setSource(void 0);
2288
2350
  }
2289
- }), l.registerVisitor({
2351
+ }), c.registerVisitor({
2290
2352
  from: "sheetFormatPr",
2291
2353
  to: "sheetFormatPr",
2292
2354
  openTag: (t) => {
@@ -2294,79 +2356,79 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2294
2356
  let n = t.getAttribute("customHeight");
2295
2357
  n !== "1" && n !== "true" || t.copyToObject(e, "defaultRowSize", Q, "defaultRowHeight"), t.copyToObject(e, "outlineLevelRow", Z, "outlineLevelRow");
2296
2358
  }
2297
- }), l.registerVisitor({
2359
+ }), c.registerVisitor({
2298
2360
  from: "cols",
2299
2361
  to: "cols",
2300
2362
  openTag: (e) => {
2301
2363
  e.setSource([]);
2302
2364
  }
2303
- }), l.registerVisitor({
2365
+ }), c.registerVisitor({
2304
2366
  from: "col",
2305
2367
  to: [],
2306
2368
  openTag: (e) => {
2307
2369
  let t = e.getSource(), n = e.getAttribute("min"), r = e.getAttribute("max"), i = n === void 0 ? 0 : parseInt(n) - 1, a = r === void 0 ? i : parseInt(r) - 1;
2308
- t.r = u.runToString(i, a, !0);
2370
+ t.r = d.runToString(i, a, !0);
2309
2371
  let o = {};
2310
2372
  t.v = o, e.copyToObject(o, "sz", Q, "width"), e.copyToObject(o, "csz", X, "customWidth"), e.copyToObject(o, "h", X, "hidden"), e.copyToObject(o, "l", Z, "outlineLevel"), e.copyToObject(o, "s", Z, "style");
2311
2373
  }
2312
- }), l.registerVisitor({
2374
+ }), c.registerVisitor({
2313
2375
  from: "oleObjects",
2314
2376
  to: null,
2315
2377
  openTag: (e) => {
2316
2378
  e.warn("'OLE Objects' are not supported.");
2317
2379
  }
2318
2380
  });
2319
- let D = !1, O = !1, k = 0, A = "", xe = (e) => {
2381
+ let xe = !1, Se = !1, A = 0, j = "", Ce = (e) => {
2320
2382
  let t = e.indexOf(":");
2321
2383
  return t === -1 ? e : e.slice(t + 1);
2322
2384
  };
2323
- return ut(d, e, l.createEventHandler(e, () => {}, a), a, void 0, {
2385
+ return ht(m, e, c.createEventHandler(e, () => {}, a), a, void 0, {
2324
2386
  onOpenTag: (e) => {
2325
- D = !0;
2326
- let t = xe(e.name);
2327
- t === "t" || t === "v" ? k === 0 && (O = !0) : t !== "rPh" && t !== "phoneticPr" || k++;
2387
+ xe = !0;
2388
+ let t = Ce(e.name);
2389
+ t === "t" || t === "v" ? A === 0 && (Se = !0) : t !== "rPh" && t !== "phoneticPr" || A++;
2328
2390
  },
2329
2391
  onText: (e) => {
2330
- O && (A += e);
2392
+ Se && (j += e);
2331
2393
  },
2332
2394
  onCloseTag: (e) => {
2333
- let t = xe(e.name);
2334
- t === "t" || t === "v" ? O = !1 : t !== "rPh" && t !== "phoneticPr" || k > 0 && k--;
2395
+ let t = Ce(e.name);
2396
+ t === "t" || t === "v" ? Se = !1 : t !== "rPh" && t !== "phoneticPr" || A > 0 && A--;
2335
2397
  },
2336
2398
  onEnd: () => {
2337
- if (!D) return;
2338
- let e = n(ce(A));
2339
- return D = !1, O = !1, k = 0, A = "", e;
2399
+ if (!xe) return;
2400
+ let e = n(ae(j));
2401
+ return xe = !1, Se = !1, A = 0, j = "", e;
2340
2402
  },
2341
2403
  onError: (e) => {}
2342
2404
  }, s);
2343
- })(e, (e, t = !1) => Ee(e, l, t) ?? null, Pe, g, 0, (e, t) => {
2344
- let n = t ? `${t} (${l})` : l;
2345
- E.push([e, n]);
2346
- }, 0, j), r = await R.getTextStream(l, Ce);
2405
+ })(e, (e, t = !1) => Ae(e, c, t) ?? null, Re, h, 0, (e, t) => {
2406
+ let n = t ? `${t} (${c})` : c;
2407
+ k.push([e, n]);
2408
+ }, 0, M), r = await L.getTextStream(c, N);
2347
2409
  if (r) try {
2348
- await z.parseStream(r, n, { xmlns: !1 });
2410
+ await R.parseStream(r, n, { xmlns: !1 });
2349
2411
  } catch (e) {
2350
- throw console.warn(`Error parsing sheet: '${l}'`, e), Error(`Error parsing sheet: '${l}'`, { cause: e });
2412
+ throw console.warn(`Error parsing sheet: '${c}'`, e), Error(`Error parsing sheet: '${c}'`, { cause: e });
2351
2413
  }
2352
- let i, o = L(l, a), s = /* @__PURE__ */ new Map();
2414
+ let i, o = Oe(c, a), s = /* @__PURE__ */ new Map();
2353
2415
  if (o) {
2354
2416
  let n;
2355
2417
  if (o.forEach((e, t) => {
2356
- e.type === "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment" && (i = Ee(t, l, !1, a)?.comments, i && i.forEach((e) => {
2418
+ e.type === "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment" && (i = Ae(t, c, !1, a)?.comments, i && i.forEach((e) => {
2357
2419
  let t = e.v;
2358
2420
  s.set(t.id, e);
2359
2421
  }));
2360
2422
  }), o.forEach((e, t) => {
2361
- e.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" && (n = Ee(t, l, !1, a));
2423
+ e.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" && (n = Ae(t, c, !1, a));
2362
2424
  }), n || i) {
2363
2425
  let r = i ?? [], a = n?.authors, o = n?.comments, c = o ? o.length : 0;
2364
2426
  if (o) for (let e = 0; e < c; e++) {
2365
2427
  let n = o[e];
2366
2428
  if (!n) continue;
2367
2429
  let i = n.v, c = a && i.personId !== void 0 ? a[i.personId] : i.personId;
2368
- if (c && c.startsWith("tc=") && (c = _(c.substring(3)), s.has(c))) continue;
2369
- let l = ke({ displayName: c }), u = {
2430
+ if (c && c.startsWith("tc=") && (c = he(c.substring(3)), s.has(c))) continue;
2431
+ let l = Ne({ displayName: c }), u = {
2370
2432
  id: t.uuidV4(),
2371
2433
  personId: l.id,
2372
2434
  done: !1,
@@ -2383,137 +2445,137 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2383
2445
  }
2384
2446
  })());
2385
2447
  } else if (o.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink") {
2386
- let t = h(l, e, F, P, H);
2448
+ let t = D(c, e, I, F, V);
2387
2449
  if (t && Object.keys(t).length !== 0) {
2388
2450
  let e = t, n = [];
2389
- L(l, a)?.forEach((e) => {
2451
+ Oe(c, a)?.forEach((e) => {
2390
2452
  e.targetMode === "External" && e.type && e.target && n.push({
2391
2453
  type: e.type,
2392
2454
  target: e.target
2393
2455
  });
2394
- }), e.identity = n, v = e;
2395
- } else v = null;
2396
- } else v = i ? ee(l, e, (e, t) => {
2456
+ }), e.identity = n, g = e;
2457
+ } else g = null;
2458
+ } else g = i ? ge(c, e, (e, t) => {
2397
2459
  let n = s.add({ source: { buffer: e } });
2398
- return n.addReference(D), O.add(n), S.toResourceId(n);
2399
- }, H) : h(l, e, F, P, H);
2400
- return v;
2460
+ return n.addReference(xe), Se.add(n), S.toResourceId(n);
2461
+ }, V) : D(c, e, I, F, V);
2462
+ return g;
2401
2463
  };
2402
- g("coreprops", n, e, F, P), g("extprops", n, e, F, P);
2403
- let B = /* @__PURE__ */ new Map(), De = /* @__PURE__ */ new Map(), Oe = g("people", n, e, F, P), V = null;
2404
- if (Oe.size > 0 && (V = Oe.entries().next()?.value?.[1]?.persons, V)) {
2405
- let e = V.length;
2464
+ O("coreprops", n, e, I, F), O("extprops", n, e, I, F);
2465
+ let z = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Map(), Me = O("people", n, e, I, F), B = null;
2466
+ if (Me.size > 0 && (B = Me.entries().next()?.value?.[1]?.persons, B)) {
2467
+ let e = B.length;
2406
2468
  for (let t = 0; t < e; t++) {
2407
- let e = V[t];
2408
- B.set(e.id, e), e.displayName !== void 0 && De.set(e.displayName, e);
2469
+ let e = B[t];
2470
+ z.set(e.id, e), e.displayName !== void 0 && je.set(e.displayName, e);
2409
2471
  }
2410
2472
  }
2411
- let ke = (e) => {
2473
+ let Ne = (e) => {
2412
2474
  if (!e) return;
2413
- if (e.id && B.has(e.id)) return B.get(e.id);
2475
+ if (e.id && z.has(e.id)) return z.get(e.id);
2414
2476
  let n = e.displayName;
2415
2477
  if (!e.id) {
2416
2478
  if (n) {
2417
- let e = De.get(n);
2479
+ let e = je.get(n);
2418
2480
  if (e) return e;
2419
2481
  }
2420
2482
  e.id = t.uuidV4();
2421
2483
  }
2422
- let r = B.get(e.id);
2484
+ let r = z.get(e.id);
2423
2485
  if (r) return r;
2424
2486
  let i = e;
2425
- return B.set(e.id, i), n && De.set(n, i), V ||= [], V.push(i), i;
2426
- }, H = {
2427
- paramMap: j,
2428
- getRefs: L,
2429
- getRef: Ee,
2430
- parsedRefs: N,
2431
- addPerson: ke,
2432
- serializeElement: Te
2433
- }, Ae = [];
2487
+ return z.set(e.id, i), n && je.set(n, i), B ||= [], B.push(i), i;
2488
+ }, V = {
2489
+ paramMap: M,
2490
+ getRefs: Oe,
2491
+ getRef: Ae,
2492
+ parsedRefs: P,
2493
+ addPerson: Ne,
2494
+ serializeElement: ke
2495
+ }, Pe = [];
2434
2496
  if (i) {
2435
- let e = await R.getTextStream(i, Ce);
2497
+ let e = await L.getTextStream(i, N);
2436
2498
  if (e) {
2437
2499
  let t = (() => {
2438
2500
  let e = !1, t = !1, n = 0, r = "";
2439
2501
  return {
2440
2502
  onOpenTag: (i) => {
2441
- let a = dt(i.name);
2503
+ let a = gt(i.name);
2442
2504
  a === "t" ? e && n === 0 && (t = !0) : a === "si" ? (e = !0, r = "", n = 0) : a !== "rPh" && a !== "phoneticPr" || n++;
2443
2505
  },
2444
2506
  onText: (e) => {
2445
2507
  t && (r += e);
2446
2508
  },
2447
2509
  onCloseTag: (i) => {
2448
- let a = dt(i.name);
2510
+ let a = gt(i.name);
2449
2511
  a === "t" ? t = !1 : a === "si" ? (((e) => {
2450
- Ae.push(e);
2451
- })(ce(r)), e = !1, r = "") : a !== "rPh" && a !== "phoneticPr" || n > 0 && n--;
2512
+ Pe.push(e);
2513
+ })(ae(r)), e = !1, r = "") : a !== "rPh" && a !== "phoneticPr" || n > 0 && n--;
2452
2514
  },
2453
2515
  onError: (e) => {
2454
2516
  ((e) => {
2455
- E.push([e, i]);
2517
+ k.push([e, i]);
2456
2518
  })(`Error parsing shared strings: ${e?.message ?? e}`);
2457
2519
  }
2458
2520
  };
2459
2521
  })();
2460
2522
  try {
2461
- await z.parseStream(e, t, { xmlns: !1 });
2523
+ await R.parseStream(e, t, { xmlns: !1 });
2462
2524
  } catch (e) {
2463
2525
  throw console.warn(`Error parsing shared strings: '${i}'`, e), Error(`Error parsing shared strings: '${i}'`, { cause: e });
2464
2526
  }
2465
2527
  }
2466
2528
  }
2467
- T?.mark("shared-strings");
2468
- let je = Ae.length, Me = /* @__PURE__ */ new Map(), Ne = je, Pe = (e) => {
2469
- let t = Me.get(e);
2529
+ w?.mark("shared-strings");
2530
+ let Fe = Pe.length, Ie = /* @__PURE__ */ new Map(), Le = Fe, Re = (e) => {
2531
+ let t = Ie.get(e);
2470
2532
  if (t !== void 0) return t;
2471
- let n = Ne;
2472
- return Me.set(e, Ne++), Ae.push(e), n;
2473
- }, Fe = [];
2474
- n.slicersCache = Fe;
2475
- let Ie = R.getNames(), Le = Ie.length;
2476
- for (let e = 0; e < Le; e++) {
2477
- let t = Ie[e];
2478
- t && t.startsWith("xl/slicerCache") && Fe.push(`/${t}`);
2533
+ let n = Le;
2534
+ return Ie.set(e, Le++), Pe.push(e), n;
2535
+ }, ze = [];
2536
+ n.slicersCache = ze;
2537
+ let Be = L.getNames(), Ve = Be.length;
2538
+ for (let e = 0; e < Ve; e++) {
2539
+ let t = Be[e];
2540
+ t && t.startsWith("xl/slicerCache") && ze.push(`/${t}`);
2479
2541
  }
2480
- let U = g("slicersCache", n, e, F, P, H), W = /* @__PURE__ */ new Map();
2481
- U.forEach((e) => {
2542
+ let H = O("slicersCache", n, e, I, F, V), U = /* @__PURE__ */ new Map();
2543
+ H.forEach((e) => {
2482
2544
  let t = e.name;
2483
- delete e.name, W.set(t, e);
2484
- }), j.set("slicerCaches", W), g("richstructure", n, e, F, P, H), g("richdata", n, e, F, P, H);
2485
- let G = g("themes", n, e, F, P, H), Re = null;
2486
- if (G && G.entries) {
2487
- let e = G.entries().next();
2488
- e?.value?.[1] && (Re = e.value[1]);
2545
+ delete e.name, U.set(t, e);
2546
+ }), M.set("slicerCaches", U), O("richstructure", n, e, I, F, V), O("richdata", n, e, I, F, V);
2547
+ let W = O("themes", n, e, I, F, V), He = null;
2548
+ if (W && W.entries) {
2549
+ let e = W.entries().next();
2550
+ e?.value?.[1] && (He = e.value[1]);
2489
2551
  }
2490
- let K = new l(Re), ze = g("styles", n, e, F, P, H).entries().next()?.value?.[1];
2491
- ze &&= JSON.parse(r.JSONStableStringify(ze));
2492
- let Be = g("workbooks", n, e, F, P, H);
2493
- T?.mark("side-parts-json"), await Promise.all(I), A && Se > 0 && (A(xe, xe), await new Promise((e) => setTimeout(e, 0))), T?.mark("sheets");
2552
+ let G = new l(He), K = O("styles", n, e, I, F, V).entries().next()?.value?.[1];
2553
+ K &&= JSON.parse(r.JSONStableStringify(K));
2554
+ let Ue = O("workbooks", n, e, I, F, V);
2555
+ w?.mark("side-parts-json"), await Promise.all(De), j && we > 0 && (j(Ce, Ce), await new Promise((e) => setTimeout(e, 0))), w?.mark("sheets");
2494
2556
  let q = {
2495
- ...Be.entries().next().value?.[1],
2496
- styles: ze,
2497
- theme: K.toJSON()
2557
+ ...Ue.entries().next().value?.[1],
2558
+ styles: K,
2559
+ theme: G.toJSON()
2498
2560
  };
2499
- if (Ae.length > 0 && (q.strings = Ae), V && V.length > 0 && (q.people = V), ae) {
2500
- let e = R.getEntry("xl/vbaProject.bin");
2561
+ if (Pe.length > 0 && (q.strings = Pe), B && B.length > 0 && (q.people = B), h) {
2562
+ let e = L.getEntry("xl/vbaProject.bin");
2501
2563
  if (e) try {
2502
- let { VBAProject: t } = await import("./q1AmoBDraQE-T8im2.js"), n = t.extract(e);
2503
- n ? (ae?.(n), q.vba = n) : E.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
2564
+ let { VBAProject: t } = await import("./DY9zG4TdF0FAs_QP2.js"), n = t.extract(e);
2565
+ n ? (h?.(n), q.vba = n) : k.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
2504
2566
  } catch (e) {
2505
- E.push([`Error extracting VBA: ${e?.message ?? e}`, "xl/vbaProject.bin"]);
2567
+ k.push([`Error extracting VBA: ${e?.message ?? e}`, "xl/vbaProject.bin"]);
2506
2568
  }
2507
2569
  }
2508
- let J = null, Ve = {
2570
+ let J = null, We = {
2509
2571
  ...b,
2510
2572
  resources: s,
2511
2573
  json: q,
2512
- formulaTransform: be(() => J?.getCalculation())
2574
+ formulaTransform: ue(() => J?.getCalculation())
2513
2575
  };
2514
- Ve.disableLoadAutoFit === void 0 && (Ve.disableLoadAutoFit = !1), T?.mark("json-assembled");
2515
- let Y = new m(Ve);
2516
- if (J = Y, T?.mark("workbook-constructed"), we.length > 0) {
2576
+ We.disableLoadAutoFit === void 0 && (We.disableLoadAutoFit = !1), w?.mark("json-assembled");
2577
+ let Y = new m(We);
2578
+ if (J = Y, w?.mark("workbook-constructed"), Te.length > 0) {
2517
2579
  await Y.whenCalculationReady();
2518
2580
  let e = /* @__PURE__ */ new Map(), t = q.sheets ?? [], n = Y.getSheets().getItems();
2519
2581
  for (let r = 0; r < t.length; r++) {
@@ -2537,7 +2599,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2537
2599
  for (let e of t) e.formula === null && o.add(i(e.rowIndex, e.colIndex));
2538
2600
  for (let e of t) {
2539
2601
  if (e.formula === null) continue;
2540
- let t = at(e.formula), n = !0;
2602
+ let t = ut(e.formula), n = !0;
2541
2603
  for (let e of t) if (!a(e)) {
2542
2604
  n = !1;
2543
2605
  break;
@@ -2570,19 +2632,19 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2570
2632
  }).setValue("=" + e.formula);
2571
2633
  }
2572
2634
  }
2573
- })(Y, we, e);
2635
+ })(Y, Te, e);
2574
2636
  }
2575
- if (O.forEach((e) => {
2576
- e.deleteReference(D);
2577
- }), S.endPersist(), w) {
2578
- de(w);
2637
+ if (Se.forEach((e) => {
2638
+ e.deleteReference(xe);
2639
+ }), S.endPersist(), C) {
2640
+ se(C);
2579
2641
  let e = /* @__PURE__ */ new Map(), t = 0;
2580
- for (let n of R.getNames()) {
2581
- let r = R.getEntry(n);
2642
+ for (let n of L.getNames()) {
2643
+ let r = L.getEntry(n);
2582
2644
  if (!r) continue;
2583
- let i = R.getRawEntry(n), a = i ? {
2645
+ let i = L.getRawEntry(n), a = i ? {
2584
2646
  data: r,
2585
- uncompressedSize: R.uncompressedSize(n),
2647
+ uncompressedSize: L.uncompressedSize(n),
2586
2648
  raw: {
2587
2649
  compressedData: i.data,
2588
2650
  compressionMethod: i.compressionMethod,
@@ -2590,14 +2652,14 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2590
2652
  }
2591
2653
  } : {
2592
2654
  data: r,
2593
- uncompressedSize: R.uncompressedSize(n)
2655
+ uncompressedSize: L.uncompressedSize(n)
2594
2656
  };
2595
2657
  e.set(n, a), t += r.byteLength;
2596
2658
  }
2597
- if (t > 67108864) E.push([`Source package too large to retain (${t} bytes, limit ${he}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
2659
+ if (t > 67108864) k.push([`Source package too large to retain (${t} bytes, limit ${x}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
2598
2660
  else if (e.size > 0) {
2599
- let t = new le(e);
2600
- ye(w, t);
2661
+ let t = new E(e);
2662
+ ne(C, t);
2601
2663
  let n = Y.getSheets().getItems(), r = Y.getTransactions().addListener({ onCommitEnd: (e) => {
2602
2664
  let n = e.getOperation()?.name;
2603
2665
  n !== "insertCells" && n !== "deleteCells" || t.markStructuralChange();
@@ -2606,20 +2668,20 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2606
2668
  (e.length !== n.length || e.some((e, t) => e !== n[t])) && t.markStructuralChange(), n = e;
2607
2669
  } });
2608
2670
  Y.addListeners({ onClose: () => {
2609
- r(), i(), de(w);
2671
+ r(), i(), se(C);
2610
2672
  } });
2611
2673
  }
2612
2674
  }
2613
- if (E.length && k?.onWarning) for (let e of E) {
2675
+ if (k.length && A?.onWarning) for (let e of k) {
2614
2676
  let [t, n] = e;
2615
- k.onWarning(t, n);
2677
+ A.onWarning(t, n);
2616
2678
  }
2617
- return T && !0 === y && console.table(T.toTable()), Y;
2679
+ return w && !0 === ie && console.table(w.toTable()), Y;
2618
2680
  } catch (e) {
2619
2681
  let t = "Unable to parse XLSX.";
2620
2682
  throw e instanceof n && (t = "Unable to open XLSX. There are too many rows or columns."), Error(t, { cause: e });
2621
2683
  } finally {
2622
- await R.close().catch(() => {});
2684
+ await L.close().catch(() => {});
2623
2685
  }
2624
2686
  };
2625
- export { ht as readXLSX };
2687
+ export { bt as readXLSX };