@sheetxl/studio-vanilla 0.8.0-beta.10 → 0.8.0-beta.11

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 (477) hide show
  1. package/browser/esm/1oQRbol_4RzeM8pE.mjs +12 -0
  2. package/{cdn/assets/CwqRA5h1u92Cyit-.js → browser/esm/30kI2LkOs3zgefE5.mjs} +2 -2
  3. package/browser/esm/{BCWTI3jdTPG37r8W.mjs → 4JJNcz4YU6jhtSoO.mjs} +3 -3
  4. package/browser/esm/4o4C9bFlmQd0jPCw.mjs +310 -0
  5. package/browser/esm/6bLEYJYXAK-pOt4_.mjs +294 -0
  6. package/{cdn/assets/J3hutJxqQiHENpIe.js → browser/esm/8j7_68o_ftwk3Slv.mjs} +120 -118
  7. package/browser/esm/{BN2d5U1nw7pRtOrn.mjs → 9MTXF6MTjOgoHb-7.mjs} +1 -1
  8. package/browser/esm/9nCLSPKkGRmkIcuH.mjs +1694 -0
  9. package/browser/esm/{Dwxz0s23ra1tRtsH.mjs → 9wo9OtQmIPqM31Sy.mjs} +2 -2
  10. package/browser/esm/B-O2rWzzFV43__aU.mjs +9523 -0
  11. package/browser/esm/{B7iV5qzlmJlM2nQv.mjs → B-iVqSEgzuf6m47x.mjs} +2 -2
  12. package/browser/esm/{x6GcENwqoUVbd60j.mjs → B0ko2JVTNhsWWWTe.mjs} +1 -1
  13. package/{cdn/assets/pc49xtHdprXZLW2X.js → browser/esm/B1SstI4rcUe8OJ-b.mjs} +1 -1
  14. package/browser/esm/{CqoHxlGpZ3yzPj5V.mjs → B31Krc6W_iL-2TQt.mjs} +12 -12
  15. package/browser/esm/{B00ixdmb8-O5ijEp.mjs → B3ZFz_Z4E28AFJS3.mjs} +1 -1
  16. package/browser/esm/{PtGiIWFBYP-ujLmf.mjs → B5XpACGLcy3zYqlT.mjs} +1 -1
  17. package/browser/esm/{BsUrrzAgfyAdcCJW.mjs → B5cwFaYPxXTSh6vo.mjs} +2 -2
  18. package/browser/esm/{BAdRecWK1maKGOZd.mjs → B8VbElyA5zbjFNs1.mjs} +1 -1
  19. package/browser/esm/B90jZwl6n7fpLoRK.mjs +89 -0
  20. package/browser/esm/{ZbGPiRN9j0629JJQ.mjs → BBS47_AI2p2r0QxX.mjs} +2 -2
  21. package/browser/esm/BBrVIUFf4NJSXblH.mjs +3716 -0
  22. package/browser/esm/{DRm1R4uVOkaMfXNI.mjs → BDWKrgmyLVPkX3h0.mjs} +1 -1
  23. package/browser/esm/{qYca4mdySLkACfo1.mjs → BF9tQV6iUGvJK6QH.mjs} +1 -1
  24. package/browser/esm/{CRAzVh3CaAa16avf.mjs → BFL9_-ur7Lhhkg2F.mjs} +36 -35
  25. package/browser/esm/{ErIXJFPDFXwGEL8V.mjs → BFvZ5JI-hBk3FNJW.mjs} +2 -2
  26. package/browser/esm/{CSEMxasVyGCekxKf.mjs → BGDndra6U64QPYm4.mjs} +1 -1
  27. package/browser/esm/BHAYf-zNKfoCTsTT.mjs +86 -0
  28. package/browser/esm/{ClJvUf8aR8vNC_3Z.mjs → BHKm0iIUckEaUMLV.mjs} +3 -3
  29. package/browser/esm/{_MPToH4oMe4rhTdZ.mjs → BIo-ELlYF8kzkLvH.mjs} +3 -3
  30. package/browser/esm/{CCd192S7yVpc6iOe.mjs → BJKUgLha2XmF08mO.mjs} +17 -16
  31. package/browser/esm/{DvWCBuY0jAL-RmJV.mjs → BKS9kx_PEanwLUuU.mjs} +793 -787
  32. package/browser/esm/BLoUmwvJ5t1eBdZ8.mjs +104 -0
  33. package/browser/esm/{DSviq1TNoiIAGW7W.mjs → BN630GsmoKmNU7ur.mjs} +1 -1
  34. package/browser/esm/{CVxlfyE-gnJM8hOz.mjs → BNWxTMoiH1NkkmAh.mjs} +8 -8
  35. package/{cdn/assets/DQIRFXG4MveFkK3I.js → browser/esm/BNavcunnTVMpcxDs.mjs} +1 -1
  36. package/browser/esm/BRXV-NrDDC3ZrpMt.mjs +55466 -0
  37. package/browser/esm/{FO1Jezau486fH4kN.mjs → BRxDfB_xWCqmT-hR.mjs} +1 -1
  38. package/browser/esm/{DnyZmrwPxShyeUjm.mjs → BT-Bqh_7C0pZ5FlX.mjs} +118 -269
  39. package/{cdn/assets/DfESVLC8CAi8m8A7.js → browser/esm/BUWDOAY73JPQoNzs.mjs} +1 -1
  40. package/browser/esm/{CHMqT9DzYKTxPfP6.mjs → BV2wamfivt6aMUhk.mjs} +1 -1
  41. package/browser/esm/BWQqT6R8MZkUWAe9.mjs +7 -0
  42. package/browser/esm/BYBEZ_hZVBDv3eEU.mjs +1389 -0
  43. package/browser/esm/B_9GaCdaUs6AlWf3.mjs +1417 -0
  44. package/browser/esm/BaNdc_0Lf4FVPUW5.mjs +9715 -0
  45. package/{cdn/assets/BuYS_ZjSlcvWZ1JC.js → browser/esm/BaWDPv9pjRGmAQva.mjs} +2667 -2091
  46. package/{cdn/assets/i0P63Wd0RRlgJotb.js → browser/esm/BaaB1nz3Z8IIy5XL.mjs} +1 -1
  47. package/browser/esm/BbUF-CQBg3zQ_h9S.mjs +323 -0
  48. package/browser/esm/{cwuYkcKwsKkPe3gG.mjs → BdN5nsKULzTfOgkY.mjs} +2 -2
  49. package/{cdn/assets/DXo8mR6t5HGsmTcu.js → browser/esm/Bdt5IdX6u9CLkJdC.mjs} +1 -1
  50. package/browser/esm/BfyWJYjj89_N0zfg.mjs +213 -0
  51. package/browser/esm/{sDVzjXC1mS5rucF5.mjs → BgE-AWbezo3ZcNQU.mjs} +576 -696
  52. package/browser/esm/Bi8dy2A1euGZeE4C.mjs +780 -0
  53. package/browser/esm/{f1OJemsiZnbwnds-.mjs → BiJSAELjvcGbbrB5.mjs} +15 -15
  54. package/browser/esm/{sxxbiJiCMOW2Eivd.mjs → BiLb98_m7AwaRkX6.mjs} +7477 -5995
  55. package/{cdn/assets/FjNOhkR7-JAIaRP6.js → browser/esm/BiSGu7XE2wP-COS-.mjs} +1 -1
  56. package/browser/esm/Bj5v_mMZnT65-EYm.mjs +521 -0
  57. package/browser/esm/Bkf3SJynCJKiDDk9.mjs +1552 -0
  58. package/browser/esm/{iC69oOND5T8khIWf.mjs → BlC9vz791AaVSbC5.mjs} +6 -6
  59. package/browser/esm/{vGKTE7yjY8y-XnsW.mjs → BldyCakCtPYtGXcm.mjs} +2 -2
  60. package/{cdn/assets/DVpi1vC8ixXvUQG_.js → browser/esm/BovxopS-62ImjzWq.mjs} +1 -1
  61. package/browser/esm/BpJup_wq5-qM4TIN.mjs +390 -0
  62. package/browser/esm/Bqf1HNOGA-pPTdl2.mjs +322 -0
  63. package/browser/esm/{BlPn_DXaEXOPxMxC.mjs → Br1Vf_O1YcX7sOJE.mjs} +1 -1
  64. package/{cdn/assets/W1d6GQyySAHrtjEu.js → browser/esm/BsVFvNqmAQw6ai0x.mjs} +1626 -1018
  65. package/browser/esm/Bt4FhwPuIE1PRsBM.mjs +193 -0
  66. package/{cdn/assets/C3r_9RqlWrEmlXZ1.js → browser/esm/Bx9qg5bL1Fzbvk1z.mjs} +1 -1
  67. package/browser/esm/BzZWDsHSEnXClrlJ.mjs +7 -0
  68. package/browser/esm/{CaS8_J5HfBRk5_Nw.mjs → C02QWvfYw-El2r9j.mjs} +32 -32
  69. package/{cdn/assets/BSCja5yvevmKZPBB.js → browser/esm/C4Vjb-3d4J7GxBGw.mjs} +1 -1
  70. package/{cdn/assets/DjtXfgbmXjUAoG0y.js → browser/esm/C635yBozh_t0DPLr.mjs} +1 -1
  71. package/browser/esm/{djM9mJznx8GzVq51.mjs → C7GZIkD5Jz7A5r_a.mjs} +14 -14
  72. package/{cdn/assets/_t0Mx-mUFVtmVNkU.js → browser/esm/C7Yr6jxJx_xXDUR2.mjs} +1 -1
  73. package/browser/esm/C8XNRmzAp2MWyeej.mjs +42 -0
  74. package/{cdn/assets/CQOyeq_-pg3CM-uA.js → browser/esm/C9oBHe1kBAevREtg.mjs} +1 -1
  75. package/browser/esm/{_zRV52yhE4gPf3XI.mjs → C9oIU866QVMlgGyQ.mjs} +55 -55
  76. package/browser/esm/{SNze-adFJwKuGSQW.mjs → CAeD2o0Ls4sIyokt.mjs} +1 -1
  77. package/browser/esm/{C9NyIoUahFiyRCxP.mjs → CBRVZmrwcMfEHc5P.mjs} +1 -1
  78. package/browser/esm/{DTn9oYyiIYgyijAk.mjs → CDWuursC7HDw-bO8.mjs} +25 -24
  79. package/browser/esm/{DoS1sE431fEhdOQb.mjs → CF6TsrZkUX12RY9E.mjs} +4 -4
  80. package/browser/esm/{C4VT6lNbpaDXCpBb.mjs → CFPaTEuxUxH48Dnc.mjs} +2 -2
  81. package/browser/esm/{Dy44qJVkwNseMG-3.mjs → CHGtyPsxQrhRB5bz.mjs} +1 -1
  82. package/browser/esm/{pKc_RPdZPLAgvNDh.mjs → CI2oW6QUhftq4Zxe.mjs} +2 -2
  83. package/browser/esm/CIoNg-5VkB5Nf7xb.mjs +256 -0
  84. package/browser/esm/{CnWNviK4qlX2GVl6.mjs → CJJ6JyOoWWElIIFf.mjs} +12 -13
  85. package/{cdn/assets/gpQ4FdJMbIScKnS_.js → browser/esm/CJdgS3TQ_2BcjCW6.mjs} +8 -8
  86. package/browser/esm/{DNaPo7BQu6hr1fWq.mjs → CK5tMP35Iv98na5Z.mjs} +1 -1
  87. package/browser/esm/CLesyjpCdfNlo_s3.mjs +210 -0
  88. package/browser/esm/CMCV8PICIpUjWafw.mjs +12816 -0
  89. package/browser/esm/{D2coM-dNrlLpnUu5.mjs → CN1_Dq2VdyHJ8cMR.mjs} +6 -6
  90. package/browser/esm/{DLhK_oSGg71ry6-m.mjs → CNTmB0u0Mmzslqit.mjs} +6 -6
  91. package/browser/esm/{D-55MlIn7Wo_hdjI.mjs → CNsG-HP7MrYv4ANy.mjs} +328 -110
  92. package/browser/esm/{DAE3Kv0Vs0VuBecT.mjs → COtPL6l443kTvLpc.mjs} +1 -1
  93. package/browser/esm/{D7DWH3-5fBNx8jtc.mjs → CP_GYwZVbwA9vzxA.mjs} +2 -2
  94. package/{cdn/assets/CFvKDDbrL3wpXnQH.js → browser/esm/CRc3MloTINO1cx9Y.mjs} +1 -1
  95. package/browser/esm/{C5EKgE9Owsc_juw-.mjs → CSUhHtPXRx-MiOJ0.mjs} +1 -1
  96. package/browser/esm/CVB9R-zt99a3DSPN.mjs +3091 -0
  97. package/{cdn/assets/BoFx07POTorOb5g-.js → browser/esm/CVGsocXM6EdK3av8.mjs} +2538 -1728
  98. package/browser/esm/CVg6x0dnCUjr2iMY.mjs +7723 -0
  99. package/browser/esm/{DxwprgjYhcmfDbXH.mjs → CWLvkJU2bOMidhWV.mjs} +17 -17
  100. package/browser/esm/{BBjgqNlHm-ssbSAG.mjs → C_lz-BVnapcDsXH0.mjs} +1 -1
  101. package/browser/esm/C_x94fC0O4_OpNRB.mjs +101 -0
  102. package/browser/esm/CczQS-TJwiXbRhYC.mjs +200 -0
  103. package/{cdn/assets/RfHd1JATBlcsfLPv.js → browser/esm/CdOK8MepIC51cdz1.mjs} +1 -1
  104. package/browser/esm/{rkTVQiYG3wd8oPom.mjs → Cdg4TpupUeYIiz2B.mjs} +3 -3
  105. package/browser/esm/Cf-LLddGP5wUU4hH.mjs +8 -0
  106. package/browser/esm/Cf5dlM0Pkqz1y7Nw.mjs +387 -0
  107. package/{cdn/assets/BI6afPOpgNYkzIWv.js → browser/esm/CfGCIpWOVrKyroeI.mjs} +1775 -1731
  108. package/browser/esm/Cgff_mU98dEc-kSv.mjs +1723 -0
  109. package/browser/esm/{CvWGtHslTdesJik-.mjs → ChTKR1wEz8hgPWRE.mjs} +10 -9
  110. package/{cdn/assets/BAH_cWcQEIBKWnl6.js → browser/esm/Cl1bVTUk0rQUQT9p.mjs} +1 -1
  111. package/browser/esm/{CDsuiN--qdALFyql.mjs → ClKS_5IuXertzGEp.mjs} +2 -2
  112. package/browser/esm/{CWJzHmEgahdOfNjH.mjs → Cnx0vOv2ePi94hMN.mjs} +1 -1
  113. package/browser/esm/{BVJUL2HhoedhbwVy.mjs → CpUZbIdONEC6mghF.mjs} +11 -10
  114. package/browser/esm/{BxhKgo_rPQ2d12HT.mjs → CpzzMIebww7p4m_V.mjs} +4 -4
  115. package/browser/esm/CtX8ODZQGoUqUie3.mjs +162 -0
  116. package/browser/esm/{BeMLfv6hWo15VCIL.mjs → CwIcsETflE-gpYF6.mjs} +23 -23
  117. package/{cdn/assets/CVcCUfSRsiZ1-6hs.js → browser/esm/CzpnOqHBXxESl5Ts.mjs} +1 -1
  118. package/browser/esm/{mZ92wNrHVpYdli1U.mjs → D3HgYapmfdL-RhEV.mjs} +5 -5
  119. package/browser/esm/{ByUcqyCNfqi5Mm7w.mjs → D46u8d3O49bDLflJ.mjs} +1 -1
  120. package/browser/esm/{px-aQ8dMjiWag_pV.mjs → D5KlrP1rlBZO7HyP.mjs} +1 -1
  121. package/{cdn/assets/DONxZZT2Iwu7psS5.js → browser/esm/D5wm_fLXLK3Ve1ir.mjs} +6 -5
  122. package/browser/esm/{DLqc11Pf8vaE4Q5B.mjs → D90zUAjsvdYt4zAc.mjs} +1 -1
  123. package/browser/esm/DAEoN5lF7Xw1VMoH.mjs +520 -0
  124. package/browser/esm/DCA1pexOA5sUcYVT.mjs +181 -0
  125. package/browser/esm/{D0r2MPlWLnStWJNW.mjs → DD6l6wL5lCLFdLOw.mjs} +144 -134
  126. package/browser/esm/DFFX8FaN8Xyq2YvS.mjs +131 -0
  127. package/browser/esm/DFzpsLSn8pIrTlLO.mjs +95 -0
  128. package/browser/esm/DJMHQzwcPgTpS0f5.mjs +1240 -0
  129. package/browser/esm/{VwGokBaawZfZiV2X.mjs → DJhxuNvyE7FzNXTv.mjs} +1 -1
  130. package/{cdn/assets/H-JnJQMcZQbpvjdb.js → browser/esm/DK3BYp4NTX8n36q5.mjs} +1 -1
  131. package/browser/esm/DKXz55ACPsNADpJo.mjs +9 -0
  132. package/browser/esm/{CZOJogyZqMfUxcXj.mjs → DKxCeh3yib-owCxs.mjs} +1 -1
  133. package/browser/esm/{ycmpAs4kQfeh78Pa.mjs → DL57MpyMuNosTcrB.mjs} +1 -1
  134. package/browser/esm/DN14h84frphTmQnr.mjs +367 -0
  135. package/browser/esm/{Cpza4AeltEVHASij.mjs → DPE3kSrS3RMPgCwe.mjs} +3 -3
  136. package/browser/esm/DQsUwoGymfvPjfBo.mjs +86 -0
  137. package/browser/esm/{DJqj66SnUcx0QmSN.mjs → DUZyG-8cyY9A0Zg-.mjs} +1 -1
  138. package/browser/esm/{DNCqTF9EbT-U1TdV.mjs → DWlIofDXtKiTFRl3.mjs} +3 -3
  139. package/browser/esm/{CfltjY8hY-RPwwpd.mjs → DWs_Iccs4ADzMYw7.mjs} +7 -7
  140. package/browser/esm/DZU9jkqaNCYuvDzi.mjs +8196 -0
  141. package/browser/esm/DZxgKlZVMKS5Ta04.mjs +199 -0
  142. package/browser/esm/D_RNoIZHUhzXpaw6.mjs +232 -0
  143. package/{cdn/assets/anQDUZhHMDPi1eha.js → browser/esm/DaJhQHZ8na6yCHir.mjs} +149 -149
  144. package/{cdn/assets/BWo1N4YbK_zGU0nu.js → browser/esm/DagxhIjpKea9MwI8.mjs} +1 -1
  145. package/browser/esm/{DjdkGy-EI1kSo226.mjs → DbewMnLKZoGLGFNh.mjs} +1 -1
  146. package/browser/esm/DcuXU4w8jFVnuLgh.mjs +60 -0
  147. package/browser/esm/Df4WRA6refKZ9x9I.mjs +141 -0
  148. package/browser/esm/Dg8kGViumXiDAGwT.mjs +569 -0
  149. package/{cdn/assets/DWgp4t9N9u0eWthH.js → browser/esm/DhLN5r1sTHL_BWeH.mjs} +1 -1
  150. package/browser/esm/{ZxsFYopF0_WWqw4Q.mjs → DhU_l9pcEddg9s24.mjs} +1 -1
  151. package/browser/esm/{CTI-mCJbJzitJZwj.mjs → DiabpzKzIUUyat-1.mjs} +1 -1
  152. package/browser/esm/Dic2cHiohtgkK2jT.mjs +89 -0
  153. package/browser/esm/DizmXzo0RwB1aISW.mjs +86 -0
  154. package/browser/esm/{DrI_S0A9TQvriTua.mjs → Dl29uXIaOLiBIDEI.mjs} +1 -1
  155. package/browser/esm/{BtGmrIqU9W1L8zfZ.mjs → Dl40S1lFKvsN0DvK.mjs} +1 -1
  156. package/{cdn/assets/DxcRLd7wmBGDgJsA.js → browser/esm/DlWoVcsWZHiN-EYf.mjs} +1 -1
  157. package/{cdn/assets/DQjxp9lDP9DzP8ah.js → browser/esm/DmkrxPsGTgcfP5Rz.mjs} +56 -56
  158. package/browser/esm/{rY-dC3WB558TIbum.mjs → Dn6OF7owJvTQrrts.mjs} +4 -4
  159. package/browser/esm/DpRsbOf9X17if0J7.mjs +1645 -0
  160. package/browser/esm/Drw9hD1JE7JCMign.mjs +422 -0
  161. package/browser/esm/{BThOwSja2ra4xejQ.mjs → DsHzYBPSadCXZi-n.mjs} +1466 -1388
  162. package/browser/esm/{LAbUYeLiPG8z9cmA.mjs → DtegXHCQSKTTGQeu.mjs} +15 -15
  163. package/browser/esm/{C-0viTjg1dT2F-sk.mjs → Dut7EHGO0G5wuZvA.mjs} +2 -2
  164. package/browser/esm/{kVBPUUnVyZfb8pf3.mjs → DwhGTfGva3F7vuwp.mjs} +5 -5
  165. package/{cdn/assets/DYvBgX17ZerZSHEJ.js → browser/esm/DxwdHqgA78DuBgP5.mjs} +30 -31
  166. package/browser/esm/{aUREGNA8H7p4BpMK.mjs → DychvmektExlalXS.mjs} +3 -3
  167. package/{cdn/assets/CBdNC7BOfc5TewHU.js → browser/esm/DyeYHUP9q10K48wL.mjs} +1 -1
  168. package/{cdn/assets/BsTFy_iJXJYmaO3Z.js → browser/esm/DyvMwqOmBhQFYxOo.mjs} +5 -5
  169. package/browser/esm/{Cy00y9b9j17Txyv1.mjs → DzF6mYUZfggTAjhM.mjs} +1 -1
  170. package/browser/esm/Dzj3KK6YPVXSha8q.mjs +5117 -0
  171. package/browser/esm/Dzyz_pks7xPGZbyH.mjs +23434 -0
  172. package/browser/esm/{Dv8aQFTTaQBJKDDk.mjs → GA5X6vLsOcXufGyF.mjs} +1 -1
  173. package/browser/esm/Hx70AIfSA_0RVX86.mjs +415 -0
  174. package/browser/esm/{DaMKWQQTgIF08cT7.mjs → JIICfCUe6qam-nnP.mjs} +7 -7
  175. package/browser/esm/{UTZcodQydbuMfCOS.mjs → Jn0_AtebABdIzyQ8.mjs} +1 -1
  176. package/browser/esm/{CtZPEkaldpJpoGtW.mjs → KG-A3VX4kcf2uLJI.mjs} +67 -67
  177. package/browser/esm/{CMxbiQ5J79M3n1tk.mjs → PD_ckP5IyZurtALu.mjs} +723 -373
  178. package/{cdn/assets/lqknEt3DTma5Juxs.js → browser/esm/PFd1HLX9x3NbZS0Q.mjs} +1 -1
  179. package/browser/esm/{D2aQPiGg0ZoMYzuf.mjs → Q4gowihHveaVg346.mjs} +5 -5
  180. package/browser/esm/TEqlVdpb4Wjm-WJR.mjs +281 -0
  181. package/browser/esm/{DGcvio2uhlrsE3ZY.mjs → Ub7lo1Zsgc4OkWHw.mjs} +10 -10
  182. package/browser/esm/{CxCipDFamYSOctBo.mjs → VHANuEgclliEVOJy.mjs} +48 -46
  183. package/browser/esm/{Db6Tvr45TS9J5Qsb.mjs → WGYh_LRO1dkbp-TV.mjs} +35 -33
  184. package/browser/esm/{ByqhqEMBLrnkaPKE.mjs → WeD0V8DDCj3KQ_8p.mjs} +26 -24
  185. package/browser/esm/{DG3BfxRsbjey-B7E.mjs → XYN8zIYF95HfOLO2.mjs} +2 -2
  186. package/browser/esm/XvS1NvLqAFQgx6eS.mjs +7 -0
  187. package/{cdn/assets/Dc2ZwgbIEgYWwAsF.js → browser/esm/Z10MZFA0Sc2Zcelz.mjs} +1 -1
  188. package/browser/esm/{-LoBx7J6imeqaxCq.mjs → bFtJ6ds2ojy78Wre.mjs} +7 -7
  189. package/browser/esm/{DqBj-9o7UdXu4qhb.mjs → bTZCD31OE4KkUy4u.mjs} +1 -1
  190. package/browser/esm/{CQuv-nk5jtXUfu7C.mjs → bYlwY2JZnvT1cbtL.mjs} +2 -2
  191. package/browser/esm/{BaEZmurTZnX_yfKD.mjs → buJRIWKU9gQ4TTK_.mjs} +323 -369
  192. package/{cdn/assets/BPrHgyAsm2Htx15h.js → browser/esm/c6MwBF7fqj-4Wqct.mjs} +1 -1
  193. package/browser/esm/d3pzf6IOaGjo_S-F.mjs +2213 -0
  194. package/browser/esm/{DSf-Db1h8rlW2A6n.mjs → e5QfIq2gAzQVRtfG.mjs} +5 -5
  195. package/browser/esm/{DGuynZFJ9tqziqQs.mjs → gTTt3H5M0Lh8VxjO.mjs} +7 -7
  196. package/browser/esm/index.mjs +49 -645
  197. package/{cdn/assets/BhkeuRcx8RlLCQ5E.js → browser/esm/lPeOxAutCOlSB-aC.mjs} +1 -1
  198. package/browser/esm/{BRfat1fV3oGLwvin.mjs → mjkAWxWBrwQpoEkc.mjs} +15 -15
  199. package/browser/esm/{Bi5-feQLtwpV6Ai8.mjs → nmaneEnoRhUuMliV.mjs} +5 -5
  200. package/browser/esm/{DeUXRggj8Oz9ru_i.mjs → oLOwgPmipnKc68nJ.mjs} +1 -1
  201. package/browser/esm/{BMlPFJ1glExv-70Z.mjs → oY2yN-_0_AcCI46E.mjs} +1 -1
  202. package/browser/esm/szeZ7VgnRHyi2DxR.mjs +381 -0
  203. package/{cdn/assets/CTdFZ_I-41Vr6Dy4.js → browser/esm/tQAwA9RKsgzjziNe.mjs} +1 -1
  204. package/{cdn/assets/J9i3r1fU0H10b2hX.js → browser/esm/t_7A_GdY394OUV4v.mjs} +1 -1
  205. package/browser/esm/uBm_7th3ordJJKKM.mjs +1298 -0
  206. package/browser/esm/vY2ZLR024kVOwWej.mjs +36 -0
  207. package/browser/esm/{DQEjvIGMgEkiaP6J.mjs → xUNkyQFYnzQAzsVs.mjs} +1 -1
  208. package/browser/esm/xhVehZswNSGVAhdd.mjs +195 -0
  209. package/{cdn/assets/BwOxnbR61WFJwy0A.js → browser/esm/y-iW7vsJV47pYbw4.mjs} +1 -1
  210. package/browser/esm/y5zzqXzWZt9iBT17.mjs +5632 -0
  211. package/{cdn/assets/B0Wjc3lwtjKMwnvn.js → browser/esm/y8mfWM7VlyfJEEwg.mjs} +1 -1
  212. package/{browser/esm/M7RYrx20B_Yl_euJ.mjs → cdn/assets/03NnLxMlQLUwCU6J.js} +8 -8
  213. package/cdn/assets/1oQRbol_4RzeM8pE.js +12 -0
  214. package/cdn/assets/{CILUMtSddGz7WXEv.js → 3Oqq1u2C8zC0TeW9.js} +84 -84
  215. package/cdn/assets/4uPsJWrLx7xRHQAh.js +639 -0
  216. package/cdn/assets/{ENtt4kmaU9mJfVEp.js → 6GgPtwsOcxg8XpRN.js} +10 -10
  217. package/cdn/assets/{D8DghdqjOtBzO2Wx.js → 7twUDisI3AH_vo2v.js} +4 -4
  218. package/cdn/assets/{BeQ95CzwR65il0CK.js → 8CW-puLLSNyeaGce.js} +2 -3
  219. package/cdn/assets/{BB4MW8sSYEXjPvvf.js → 8yRVrfAZmWoSynP2.js} +5 -5
  220. package/cdn/assets/{BN2d5U1nw7pRtOrn.js → 9MTXF6MTjOgoHb-7.js} +1 -1
  221. package/cdn/assets/9zx-c-XsXQJu3H6F.js +237 -0
  222. package/cdn/assets/B-aF0nVKMi0rBQ-X.js +257 -0
  223. package/cdn/assets/{x6GcENwqoUVbd60j.js → B0ko2JVTNhsWWWTe.js} +1 -1
  224. package/{browser/esm/pc49xtHdprXZLW2X.mjs → cdn/assets/B1SstI4rcUe8OJ-b.js} +1 -1
  225. package/cdn/assets/{B00ixdmb8-O5ijEp.js → B3ZFz_Z4E28AFJS3.js} +1 -1
  226. package/cdn/assets/B4zK-38sPk49SiBE.js +9524 -0
  227. package/cdn/assets/{PtGiIWFBYP-ujLmf.js → B5XpACGLcy3zYqlT.js} +1 -1
  228. package/cdn/assets/B6hsm_RseP5jRKxa.js +100 -0
  229. package/cdn/assets/{DHH_uKVzQ_kRYO2N.js → B71MtA2mmixmeooi.js} +18 -18
  230. package/cdn/assets/B7L2gEZlcb8lr2A4.js +8196 -0
  231. package/cdn/assets/{BAdRecWK1maKGOZd.js → B8VbElyA5zbjFNs1.js} +1 -1
  232. package/cdn/assets/B9dUWlxApLMvjz60.js +220 -0
  233. package/cdn/assets/B9w9g_nectPJhun5.js +1724 -0
  234. package/cdn/assets/{AjMG7Fb9r4Fk7Hsf.js → BCypA6VuKdd2n_ru.js} +19 -18
  235. package/cdn/assets/{DRm1R4uVOkaMfXNI.js → BDWKrgmyLVPkX3h0.js} +1 -1
  236. package/cdn/assets/BETDm_1AaWuW6BVj.js +516 -0
  237. package/cdn/assets/{C32co-XulWTkEKrW.js → BEvqzG-mTBe_4aVC.js} +2 -2
  238. package/cdn/assets/{qYca4mdySLkACfo1.js → BF9tQV6iUGvJK6QH.js} +1 -1
  239. package/cdn/assets/BFKaVO5u424S8iQa.js +86 -0
  240. package/cdn/assets/{CSEMxasVyGCekxKf.js → BGDndra6U64QPYm4.js} +1 -1
  241. package/cdn/assets/BI1IDPvx--ARef3O.js +196 -0
  242. package/cdn/assets/{Cw7AJWd0S2sjRmr6.js → BJ5RRYxWA_yTbVpr.js} +1478 -1400
  243. package/cdn/assets/BJV4kSnvZHNfd68y.js +193 -0
  244. package/cdn/assets/BK2u8-YC8sG_k5G1.js +1299 -0
  245. package/cdn/assets/{DSviq1TNoiIAGW7W.js → BN630GsmoKmNU7ur.js} +1 -1
  246. package/{browser/esm/DQIRFXG4MveFkK3I.mjs → cdn/assets/BNavcunnTVMpcxDs.js} +1 -1
  247. package/cdn/assets/BORHWDUKR6caukc5.js +199 -0
  248. package/cdn/assets/BOeafp2_IuiQUCy9.js +7 -0
  249. package/cdn/assets/{FO1Jezau486fH4kN.js → BRxDfB_xWCqmT-hR.js} +1 -1
  250. package/{browser/esm/DfESVLC8CAi8m8A7.mjs → cdn/assets/BUWDOAY73JPQoNzs.js} +1 -1
  251. package/cdn/assets/{0vqRTRN0wEzWao1c.js → BUsC6YAGDNArajFL.js} +75 -74
  252. package/{browser/esm/ztqpWR65YYMZ3EPk.mjs → cdn/assets/BV13zVUdMca1rMPB.js} +120 -118
  253. package/cdn/assets/{C9NyIoUahFiyRCxP.js → BV2wamfivt6aMUhk.js} +1 -1
  254. package/cdn/assets/BWbSAM8vJA9oOVLo.js +46 -0
  255. package/cdn/assets/{De2z8LdHaWRFiR5T.js → BXVCl_xwTk61fpO9.js} +2 -2
  256. package/cdn/assets/BZEFRQpz68GXn6T9.js +96 -0
  257. package/cdn/assets/{wM7DzeOpoEGBVDBe.js → B_sANJqcUwqmlTx5.js} +2 -2
  258. package/{browser/esm/i0P63Wd0RRlgJotb.mjs → cdn/assets/BaaB1nz3Z8IIy5XL.js} +1 -1
  259. package/cdn/assets/{DckmFyHxGX4Y1gOq.js → BbO2UBFWu05VAtNb.js} +18 -17
  260. package/cdn/assets/{CCvBdPu7W2ZF6A9J.js → BdW05SsbRlVhxGr6.js} +3 -3
  261. package/cdn/assets/BdnTLvN0grpQAsLF.js +8 -0
  262. package/{browser/esm/DXo8mR6t5HGsmTcu.mjs → cdn/assets/Bdt5IdX6u9CLkJdC.js} +1 -1
  263. package/cdn/assets/Bebab8nHNHqve2AI.js +233 -0
  264. package/{browser/esm/FjNOhkR7-JAIaRP6.mjs → cdn/assets/BiSGu7XE2wP-COS-.js} +1 -1
  265. package/cdn/assets/BjAnEBtnBD5O0-sc.js +106 -0
  266. package/cdn/assets/{hg8WYI0Yy4WPPPoP.js → BmWMHgdcbZuZUGtm.js} +11 -11
  267. package/{browser/esm/DVpi1vC8ixXvUQG_.mjs → cdn/assets/BovxopS-62ImjzWq.js} +1 -1
  268. package/cdn/assets/Bqlj5Zz-vJpMDs6i.js +311 -0
  269. package/cdn/assets/{BlPn_DXaEXOPxMxC.js → Br1Vf_O1YcX7sOJE.js} +1 -1
  270. package/cdn/assets/{CSIZpJClc66_20kP.js → BuHsbgcxlvkOHGGR.js} +118 -269
  271. package/{browser/esm/C3r_9RqlWrEmlXZ1.mjs → cdn/assets/Bx9qg5bL1Fzbvk1z.js} +1 -1
  272. package/cdn/assets/BzZTldYRBXUqOINX.js +781 -0
  273. package/cdn/assets/C-_jzDXetpu0rH2K.js +8 -0
  274. package/cdn/assets/C2ydnpxcrFknfLw1.js +214 -0
  275. package/{browser/esm/BSCja5yvevmKZPBB.mjs → cdn/assets/C4Vjb-3d4J7GxBGw.js} +1 -1
  276. package/{browser/esm/DjtXfgbmXjUAoG0y.mjs → cdn/assets/C635yBozh_t0DPLr.js} +1 -1
  277. package/cdn/assets/C7FA7N-GON7DscOD.js +19 -0
  278. package/{browser/esm/_t0Mx-mUFVtmVNkU.mjs → cdn/assets/C7Yr6jxJx_xXDUR2.js} +1 -1
  279. package/cdn/assets/C7fZFw4yQ9VNHtnV.js +17 -0
  280. package/cdn/assets/C8XNRmzAp2MWyeej.js +42 -0
  281. package/{browser/esm/DAprxR00V9qvNLL2.mjs → cdn/assets/C9_WZzkqVDNPA1d0.js} +1708 -1660
  282. package/{browser/esm/CQOyeq_-pg3CM-uA.mjs → cdn/assets/C9oBHe1kBAevREtg.js} +1 -1
  283. package/cdn/assets/{SNze-adFJwKuGSQW.js → CAeD2o0Ls4sIyokt.js} +1 -1
  284. package/cdn/assets/{CHMqT9DzYKTxPfP6.js → CBRVZmrwcMfEHc5P.js} +1 -1
  285. package/cdn/assets/CBsadiIVpXoTVHLj.js +183 -0
  286. package/{browser/esm/D88StfSjZJi5E8Xb.mjs → cdn/assets/CDv_hXnUZNB1HY3N.js} +2384 -1905
  287. package/cdn/assets/{CFBgmXap8kmumhoz.js → CELW1QxGUlPfcuHG.js} +144 -134
  288. package/cdn/assets/CF6YxjWkuaqaHcCi.js +2230 -0
  289. package/cdn/assets/{CbTN0q6XnYGJqyEp.js → CGklNVK7pkjOQ6XF.js} +261 -261
  290. package/cdn/assets/{Dy44qJVkwNseMG-3.js → CHGtyPsxQrhRB5bz.js} +1 -1
  291. package/cdn/assets/{D32D_biNXRCZ24vG.js → CIa9t2NsEFKqvGac.js} +10 -10
  292. package/cdn/assets/CIfJsifn66BBcj2W.js +86 -0
  293. package/cdn/assets/CIscj5V7u9g5ZxM3.js +7 -0
  294. package/cdn/assets/{BNsqqoZY7a4N1wWC.js → CJgN6A7fquRRWJ9h.js} +328 -110
  295. package/cdn/assets/{DNaPo7BQu6hr1fWq.js → CK5tMP35Iv98na5Z.js} +1 -1
  296. package/cdn/assets/CLDXVyr5jbJC7Ldf.js +7 -0
  297. package/cdn/assets/CLesyjpCdfNlo_s3.js +210 -0
  298. package/cdn/assets/{Dp-GJXOMz_b8qAxD.js → CMRiIxUHB5XcDtA8.js} +2 -2
  299. package/cdn/assets/{DAE3Kv0Vs0VuBecT.js → COtPL6l443kTvLpc.js} +1 -1
  300. package/{browser/esm/CFvKDDbrL3wpXnQH.mjs → cdn/assets/CRc3MloTINO1cx9Y.js} +1 -1
  301. package/cdn/assets/CS7L0XE_IvJKdpQH.js +416 -0
  302. package/cdn/assets/{C5EKgE9Owsc_juw-.js → CSUhHtPXRx-MiOJ0.js} +1 -1
  303. package/cdn/assets/{D-yz3V2UC54rwctD.js → CSpWGMyjLegYuwTq.js} +2 -2
  304. package/cdn/assets/CVCFVKDhgOFbBNWn.js +382 -0
  305. package/cdn/assets/{DSXJHEORGmMQX_Mb.js → CViBm-zHl4k8Znzm.js} +12 -12
  306. package/cdn/assets/{DZRm4H75lnEtOG8e.js → CWRXS9rkz8fCwbZH.js} +48 -46
  307. package/cdn/assets/CZ0iN5i3edmVHcRK.js +323 -0
  308. package/cdn/assets/{B3NWCYKXucbHhOix.js → C_Q71OCVP6nPyP4U.js} +26 -26
  309. package/cdn/assets/{BBjgqNlHm-ssbSAG.js → C_lz-BVnapcDsXH0.js} +1 -1
  310. package/cdn/assets/CbKXmBz5CY-IwYsS.js +132 -0
  311. package/cdn/assets/CbqZMJ1c683b5iE7.js +278 -0
  312. package/cdn/assets/CdDIc0DsAwHzxpeO.js +5117 -0
  313. package/{browser/esm/RfHd1JATBlcsfLPv.mjs → cdn/assets/CdOK8MepIC51cdz1.js} +1 -1
  314. package/cdn/assets/{C6INLvBy8kdzFpsX.js → CdW0mis0FyG90paw.js} +576 -696
  315. package/cdn/assets/{DicTo_3G-KZyWDiE.js → CevaeSbWdKO5qeRu.js} +294 -340
  316. package/cdn/assets/{DxisV9_27l_WU-nk.js → CeySvrdNiT00QQJC.js} +5 -5
  317. package/cdn/assets/Cf-LLddGP5wUU4hH.js +8 -0
  318. package/cdn/assets/{CIyaijfp6itgRpFM.js → Cf0bbHHOW6iwvyXg.js} +2 -2
  319. package/cdn/assets/CixdB4xXcQhebm5U.js +73 -0
  320. package/cdn/assets/{BelX6bvQPsGuo-x3.js → Cj2lJ05kVoDb5HGx.js} +2 -2
  321. package/cdn/assets/{CsrTRThObSryov1b.js → CkfqUcoAlpPupbbK.js} +2 -2
  322. package/cdn/assets/CkgK3CrVsGp5FE2i.js +2213 -0
  323. package/{browser/esm/BAH_cWcQEIBKWnl6.mjs → cdn/assets/Cl1bVTUk0rQUQT9p.js} +1 -1
  324. package/cdn/assets/Cl3d4ILjFxp4IdO9.js +3716 -0
  325. package/cdn/assets/ClY9HTqosClkllrU.js +522 -0
  326. package/cdn/assets/Cllqhal9LBm1K8Yq.js +391 -0
  327. package/cdn/assets/CnVY0qezymE7-eML.js +89 -0
  328. package/cdn/assets/{CWJzHmEgahdOfNjH.js → Cnx0vOv2ePi94hMN.js} +1 -1
  329. package/cdn/assets/{C7fu6LrSMBlHqwUy.js → CqmrD2Xs8MKJTO4v.js} +4 -4
  330. package/cdn/assets/Cw6ozEzvtFq_HVef.js +8 -0
  331. package/cdn/assets/{BzbP4jaN13wC9aSi.js → CzG0p4x8L99XEdym.js} +40 -40
  332. package/{browser/esm/CVcCUfSRsiZ1-6hs.mjs → cdn/assets/CzpnOqHBXxESl5Ts.js} +1 -1
  333. package/cdn/assets/D-hAYmuTa0x0_oI-.js +1552 -0
  334. package/{browser/esm/By3a43qwWICwXRmw.mjs → cdn/assets/D2H92O2Ji36qebTp.js} +2667 -2091
  335. package/cdn/assets/{ByUcqyCNfqi5Mm7w.js → D46u8d3O49bDLflJ.js} +1 -1
  336. package/cdn/assets/D51TEwta0ZXmlNrx.js +570 -0
  337. package/cdn/assets/{px-aQ8dMjiWag_pV.js → D5KlrP1rlBZO7HyP.js} +1 -1
  338. package/cdn/assets/{Cfg4Dtndwurxv9LM.js → D7g9SLSLSONiRP8_.js} +8 -8
  339. package/cdn/assets/D8fBDoXy-QzJqIfC.js +132 -0
  340. package/cdn/assets/D97AuczhOIBnqMXI.js +55466 -0
  341. package/cdn/assets/DBnswN0nPHV8TM2q.js +8 -0
  342. package/cdn/assets/DE9bhDAlUdLUngdj.js +1646 -0
  343. package/cdn/assets/{D_pMOq6FdH4RSBLc.js → DG4PyKuuGu6RkAEv.js} +810 -804
  344. package/cdn/assets/DG8R6bLrQPHjouy2.js +86 -0
  345. package/cdn/assets/{VwGokBaawZfZiV2X.js → DJhxuNvyE7FzNXTv.js} +1 -1
  346. package/{browser/esm/H-JnJQMcZQbpvjdb.mjs → cdn/assets/DK3BYp4NTX8n36q5.js} +1 -1
  347. package/cdn/assets/{CZOJogyZqMfUxcXj.js → DKxCeh3yib-owCxs.js} +1 -1
  348. package/cdn/assets/{ycmpAs4kQfeh78Pa.js → DL57MpyMuNosTcrB.js} +1 -1
  349. package/{browser/esm/Dme0qpRinBnhzp53.mjs → cdn/assets/DLEPPn_cPPydMrpU.js} +150 -148
  350. package/cdn/assets/{D-bNmX0QsA8SuT0m.js → DP1jRSok-1NvqrBz.js} +34 -34
  351. package/cdn/assets/{DJqj66SnUcx0QmSN.js → DUZyG-8cyY9A0Zg-.js} +1 -1
  352. package/cdn/assets/{Cv5PLuhEmh5IDHjb.js → DWoFVKQrI917IanL.js} +23 -23
  353. package/cdn/assets/DXhizwpX3GUT2ECx.js +90 -0
  354. package/cdn/assets/DYbOfw0BRA2hWOCP.js +1390 -0
  355. package/cdn/assets/DZo_DGKkHCqIyM5N.js +388 -0
  356. package/{browser/esm/DlOVZD0OiAjouS6-.mjs → cdn/assets/D_d2cK3aSl0eMBpj.js} +1626 -1018
  357. package/{browser/esm/BWo1N4YbK_zGU0nu.mjs → cdn/assets/DagxhIjpKea9MwI8.js} +1 -1
  358. package/cdn/assets/{DjdkGy-EI1kSo226.js → DbewMnLKZoGLGFNh.js} +1 -1
  359. package/{browser/esm/8-jmVNNbOHuXFdVQ.mjs → cdn/assets/DdXikMOzMIALd8bz.js} +120 -118
  360. package/cdn/assets/Dg3UJabBou63ReiH.js +12816 -0
  361. package/cdn/assets/Dg9ALylpMhftKvuI.js +23434 -0
  362. package/cdn/assets/DgQFdPeLRIkg5O3C.js +3093 -0
  363. package/{browser/esm/DWgp4t9N9u0eWthH.mjs → cdn/assets/DhLN5r1sTHL_BWeH.js} +1 -1
  364. package/cdn/assets/{ZxsFYopF0_WWqw4Q.js → DhU_l9pcEddg9s24.js} +1 -1
  365. package/cdn/assets/{CTI-mCJbJzitJZwj.js → DiabpzKzIUUyat-1.js} +1 -1
  366. package/cdn/assets/{DrI_S0A9TQvriTua.js → Dl29uXIaOLiBIDEI.js} +1 -1
  367. package/cdn/assets/{BtGmrIqU9W1L8zfZ.js → Dl40S1lFKvsN0DvK.js} +1 -1
  368. package/{browser/esm/DxcRLd7wmBGDgJsA.mjs → cdn/assets/DlWoVcsWZHiN-EYf.js} +1 -1
  369. package/cdn/assets/{B27vTQlxbHhSQJx8.js → DliTwLXIImeC0eub.js} +7803 -6320
  370. package/cdn/assets/{aHTKr1ijZ6bRi3Zg.js → DsRSG0tf_a2zWfcu.js} +4 -4
  371. package/cdn/assets/{7i4WSxDsu2ApJJ2_.js → DsXc1EO6csuKfV4l.js} +3 -3
  372. package/cdn/assets/DtO07D35O2tAh7f4.js +1241 -0
  373. package/cdn/assets/{C-0viTjg1dT2F-sk.js → Dut7EHGO0G5wuZvA.js} +2 -2
  374. package/cdn/assets/DvBV9E2CaadV0-OK.js +104 -0
  375. package/cdn/assets/{CakrxSS_RXtKmcUX.js → Dw7mCCAZtWzy1kDg.js} +99 -98
  376. package/{browser/esm/DEvZj68igS7Q8SZE.mjs → cdn/assets/DwITQzYKh_c7vCO8.js} +5 -5
  377. package/cdn/assets/{C0CeCYdLWLjySEFe.js → DwTdBuvtngstv-Ee.js} +15 -15
  378. package/cdn/assets/{CMVTwWHsRgyfSEDM.js → Dwb9z-Om5vH_9GFX.js} +67 -65
  379. package/{browser/esm/D-KZpU6HMaP4VUva.mjs → cdn/assets/Dwd9mENEUTKk45OD.js} +56 -56
  380. package/cdn/assets/{BvlfKrfrDhE9Jw4d.js → Dwm4Q509nQKTAHZp.js} +2 -2
  381. package/cdn/assets/{mK8HcIZyXkOTvL6E.js → DxI14nqCsNi-yexx.js} +7 -7
  382. package/cdn/assets/Dy07J9xUgFU8srvP.js +7723 -0
  383. package/{browser/esm/CBdNC7BOfc5TewHU.mjs → cdn/assets/DyeYHUP9q10K48wL.js} +1 -1
  384. package/cdn/assets/{Cy00y9b9j17Txyv1.js → DzF6mYUZfggTAjhM.js} +1 -1
  385. package/cdn/assets/{BpZ7P0CO148rR4zW.js → Dzlfx9-RfNxYludH.js} +20 -20
  386. package/cdn/assets/FjjP2q5AOiFod5IL.js +282 -0
  387. package/cdn/assets/{Dv8aQFTTaQBJKDDk.js → GA5X6vLsOcXufGyF.js} +1 -1
  388. package/cdn/assets/Ga_dmEQPXt-tMjfv.js +7 -0
  389. package/cdn/assets/HMCOTgDNR6bpWL7f.js +163 -0
  390. package/cdn/assets/{UTZcodQydbuMfCOS.js → Jn0_AtebABdIzyQ8.js} +1 -1
  391. package/cdn/assets/{CMxbiQ5J79M3n1tk.js → PD_ckP5IyZurtALu.js} +723 -373
  392. package/{browser/esm/lqknEt3DTma5Juxs.mjs → cdn/assets/PFd1HLX9x3NbZS0Q.js} +1 -1
  393. package/{browser/esm/B3Ii8x6RquHW1jMc.mjs → cdn/assets/PlCjmMBePH7hotkL.js} +12 -11
  394. package/cdn/assets/{Bgbi7BFR3rN5qj51.js → RZYxEHY1tap8fDMU.js} +22 -22
  395. package/cdn/assets/{w5IQWbJETgHhqMsY.js → V3xJfVu5YgTJE15l.js} +33 -33
  396. package/cdn/assets/{dn69mDhY7Xcc91kF.js → VtDou2czLTs_x_lJ.js} +20 -20
  397. package/cdn/assets/Xr_m9JQCcD2iBqdf.js +324 -0
  398. package/cdn/assets/{VCiu_neIjCTg2NUa.js → Y0Uf_lVRToNYi395.js} +634 -634
  399. package/{browser/esm/Dc2ZwgbIEgYWwAsF.mjs → cdn/assets/Z10MZFA0Sc2Zcelz.js} +1 -1
  400. package/cdn/assets/ZHMYKkw9GtA9PmwP.js +61 -0
  401. package/cdn/assets/ZaFy1hzL6cnNlROy.js +1302 -0
  402. package/cdn/assets/__mMW0v3QyR1pQYO.js +294 -0
  403. package/cdn/assets/{DqBj-9o7UdXu4qhb.js → bTZCD31OE4KkUy4u.js} +1 -1
  404. package/{browser/esm/BPrHgyAsm2Htx15h.mjs → cdn/assets/c6MwBF7fqj-4Wqct.js} +1 -1
  405. package/cdn/assets/csh4FIrA7Yz0oQR4.js +9 -0
  406. package/cdn/assets/{CDAYVaQYywqaxg4O.js → eyjrmBPp0a3kmDM1.js} +2 -2
  407. package/{browser/esm/BtdRr6IbtO6Gypsk.mjs → cdn/assets/hlphmhe3M3MZPvOh.js} +6 -5
  408. package/cdn/assets/jJoDPeW_80P8c7ET.js +201 -0
  409. package/cdn/assets/kLmFvtw68s1_Kbq9.js +142 -0
  410. package/cdn/assets/kTq1x8_s5V2PwKeX.js +9715 -0
  411. package/{browser/esm/BhkeuRcx8RlLCQ5E.mjs → cdn/assets/lPeOxAutCOlSB-aC.js} +1 -1
  412. package/cdn/assets/{DeUXRggj8Oz9ru_i.js → oLOwgPmipnKc68nJ.js} +1 -1
  413. package/cdn/assets/{BMlPFJ1glExv-70Z.js → oY2yN-_0_AcCI46E.js} +1 -1
  414. package/cdn/assets/{G5z0uVlyF6CLw_PA.js → pS2054G_Le7EvgyY.js} +2 -2
  415. package/cdn/assets/qwL1y5daLJePT9OL.js +7 -0
  416. package/cdn/assets/rNuTuxLduwMl4Fyb.js +182 -0
  417. package/cdn/assets/sCeaYn7GnW1N9bKn.js +423 -0
  418. package/cdn/assets/{Bsn-tUx172sEG2kR.js → t8Ps76FWzb3VX_wg.js} +20 -20
  419. package/{browser/esm/CTdFZ_I-41Vr6Dy4.mjs → cdn/assets/tQAwA9RKsgzjziNe.js} +1 -1
  420. package/{browser/esm/J9i3r1fU0H10b2hX.mjs → cdn/assets/t_7A_GdY394OUV4v.js} +1 -1
  421. package/{browser/esm/CWoPWWRwMgkGPFFP.mjs → cdn/assets/u8iMUyjw60ayROFo.js} +2538 -1728
  422. package/cdn/assets/ubUqS2NO2sn4DX3v.js +1694 -0
  423. package/cdn/assets/vY2ZLR024kVOwWej.js +36 -0
  424. package/cdn/assets/{DQEjvIGMgEkiaP6J.js → xUNkyQFYnzQAzsVs.js} +1 -1
  425. package/{browser/esm/BwOxnbR61WFJwy0A.mjs → cdn/assets/y-iW7vsJV47pYbw4.js} +1 -1
  426. package/{browser/esm/B0Wjc3lwtjKMwnvn.mjs → cdn/assets/y8mfWM7VlyfJEEwg.js} +1 -1
  427. package/cdn/assets/{BIsbcP5RXRU2XPfx.js → yI2dKrysDG0lqxjX.js} +2 -2
  428. package/cdn/assets/{Ba8taVvLslFcKS72.js → yzl98RXbYvgX5DfY.js} +28 -27
  429. package/cdn/assets/z4XcPMxN5hfqRHIt.js +367 -0
  430. package/cdn/assets/{ZSYS1J3uR7UQuHwZ.js → zm4ZwKXeSetbtx9Z.js} +10 -10
  431. package/cdn/index.js +27 -17
  432. package/package.json +3 -3
  433. package/types/src/sheetxl.d.ts +1 -0
  434. package/browser/esm/BNIInlJQbJjH8B6G.mjs +0 -84250
  435. package/browser/esm/B_HB4y7AA88Z775Z.mjs +0 -91
  436. package/browser/esm/CdeXXPCp5cCYvGyD.mjs +0 -14
  437. package/browser/esm/Chr_TXM-48IsK8Va.mjs +0 -155
  438. package/browser/esm/Clx8vvGDOTWK_M2l.mjs +0 -484
  439. package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +0 -36
  440. package/browser/esm/D-9f1NKcpuYSgond.mjs +0 -412
  441. package/browser/esm/D7CGuQcwpkiuesEI.mjs +0 -229
  442. package/browser/esm/D7kkzIFPqKBK94kO.mjs +0 -17952
  443. package/browser/esm/D8exjrado9TJrBp-.mjs +0 -1946
  444. package/browser/esm/DGCOPbZbEmt0x9z0.mjs +0 -155
  445. package/browser/esm/DZRmBfjn2TgOTu5e.mjs +0 -3604
  446. package/browser/esm/D_7BWdsu8yejhUxy.mjs +0 -2353
  447. package/browser/esm/D_thhK0vSez8Yfle.mjs +0 -798
  448. package/browser/esm/Dv2z0548SZRGTN3l.mjs +0 -149
  449. package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +0 -89
  450. package/browser/esm/RLU85PsAYtKPUf6N.mjs +0 -71
  451. package/browser/esm/WMYR09ZOR8JbZEnx.mjs +0 -4748
  452. package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +0 -398
  453. package/cdn/assets/514mXPTuNvdNgw35.js +0 -412
  454. package/cdn/assets/7Sg0ht_ZCMJkPurt.js +0 -516
  455. package/cdn/assets/B_3Musz0q2MSZ5H-.js +0 -799
  456. package/cdn/assets/BgyY4zVPZSXljoCZ.js +0 -14
  457. package/cdn/assets/BlIZ30huelIxNo6S.js +0 -91
  458. package/cdn/assets/BxqXOiOyI_XiOmvN.js +0 -156
  459. package/cdn/assets/CEYyp6Qrr_IopxpL.js +0 -22597
  460. package/cdn/assets/CL6Tgu_rUO6G-fyq.js +0 -2352
  461. package/cdn/assets/COMOqucXq7X1vi0P.js +0 -230
  462. package/cdn/assets/CRXSrbGNABtzf532.js +0 -399
  463. package/cdn/assets/CTvPIYWTcjwlJeEA.js +0 -237
  464. package/cdn/assets/CU5cKipVT1X8Xz7F.js +0 -156
  465. package/cdn/assets/ChAKLV5zrGAHAof2.js +0 -130
  466. package/cdn/assets/Cw-4uoMuq_m7ziA3.js +0 -36
  467. package/cdn/assets/DCnWyVXikb_8Dat3.js +0 -61
  468. package/cdn/assets/DHugYwX4_ZyqGn-C.js +0 -1947
  469. package/cdn/assets/DOHh3pUXxMM09UY5.js +0 -3604
  470. package/cdn/assets/DlpgIJxNq2V4gdDq.js +0 -74
  471. package/cdn/assets/DuAbY54w5gJpQgss.js +0 -84250
  472. package/cdn/assets/DviEoeWW0EvDg1hr.js +0 -149
  473. package/cdn/assets/PzWqv-oXxEuzKdaT.js +0 -484
  474. package/cdn/assets/QJ4AkDD269D1MzmI.js +0 -89
  475. package/cdn/assets/fm3mUdTDo-STB36M.js +0 -4749
  476. package/cdn/assets/lWY3TbG2NDscy9He.js +0 -72
  477. package/cdn/assets/xlXDq-qoj7eOE6_T.js +0 -5153
@@ -1,27 +1,27 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.10
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.11
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 { C as e, P as t, V as n, q as r, u as i } from "./CMxbiQ5J79M3n1tk.mjs";
8
- import { W as a, m as o } from "./CWoPWWRwMgkGPFFP.mjs";
9
- import { i as s, l as c } from "./BAH_cWcQEIBKWnl6.mjs";
10
- import { $ as l, K as u, Ut as d, _t as f, it as p, s as m, zt as h } from "./BNIInlJQbJjH8B6G.mjs";
11
- import { m as g, r as _ } from "./DZRmBfjn2TgOTu5e.mjs";
12
- import { $ as v, A as y, At as b, B as ee, Dt as x, I as te, J as ne, K as re, Kt as S, L as ie, Mt as ae, N as oe, Nt as se, O as ce, Ot as le, R as C, Rt as w, S as T, Tt as E, Ut as ue, V as D, W as O, Wt as de, X as fe, Y as k, _ as A, bt as pe, c as j, ct as me, d as M, ft as he, gt as N, h as ge, ht as _e, j as ve, m as ye, mt as P, nn as F, nt as I, ot as L, r as R, rn as be, ut as xe, xt as Se, z as Ce } from "./By3a43qwWICwXRmw.mjs";
13
- var we = {
7
+ import { D as e, G as t, W as n, Z as r, h as i, n as a, w as o } from "./PD_ckP5IyZurtALu.js";
8
+ import { d as s, g as c } from "./u8iMUyjw60ayROFo.js";
9
+ import { i as l, l as u } from "./Cl1bVTUk0rQUQT9p.js";
10
+ import { Ot as d, Si as f, er as p, lt as m, tn as h, tr as g, vi as _, w as v } from "./D97AuczhOIBnqMXI.js";
11
+ import { l as y, m as b, n as x } from "./Cl3d4ILjFxp4IdO9.js";
12
+ import { A as S, An as ee, At as te, B as C, Bt as ne, C as re, D as ie, Dt as ae, En as oe, F as se, Gn as ce, H as le, In as ue, Ln as de, Nt as fe, O as pe, On as me, Ot as w, P as T, Rn as E, S as D, St as O, Tt as k, U as he, Vt as ge, W as A, X as _e, Xn as j, Yt as M, Z as N, Zt as P, _ as ve, _n as ye, a as F, an as I, bt as L, d as be, f as xe, ft as Se, g as Ce, hn as we, ht as Te, j as R, jn as Ee, k as De, kn as Oe, ln as z, lt as B, m as ke, mn as Ae, mt as je, n as Me, on as V, pn as Ne, pt as Pe, q as Fe, qn as Ie, qt as H, r as Le, rn as Re, rt as U, t as W, un as G, ut as ze, w as Be, wn as Ve, wt as He, x as Ue, xt as We, yn as Ge, zt as Ke } from "./D2H92O2Ji36qebTp.js";
13
+ var qe = {
14
14
  ascending: "ascending",
15
15
  descending: "descending",
16
16
  natural: "dataSource"
17
17
  };
18
- function Te(e, t) {
18
+ function Je(e, t) {
19
19
  if (!t) return null;
20
20
  for (let n = 0; n < e.length; n++) if (e[n].id !== void 0 && String(e[n].id) === t) return e[n];
21
21
  let n = Number(t);
22
22
  return Number.isInteger(n) && n >= 1 && n <= e.length ? e[n - 1] : null;
23
23
  }
24
- function Ee(e, t, n) {
24
+ function Ye(e, t, n) {
25
25
  let r = {
26
26
  ...t,
27
27
  source: n
@@ -31,77 +31,10 @@ function Ee(e, t, n) {
31
31
  t > 0 && t !== 27 && (r.rowHeight = t);
32
32
  }
33
33
  e.style && e.style !== "SlicerStyleLight1" && (r.style = e.style);
34
- let i = e.sortOrder ? we[e.sortOrder] : void 0;
34
+ let i = e.sortOrder ? qe[e.sortOrder] : void 0;
35
35
  return i && i !== "ascending" && (r.sortOrder = i), e.crossFilter && e.crossFilter !== "showItemsWithDataAtTop" && (r.crossFilter = e.crossFilter), e.lockedPosition && (r.lockedPosition = !0), !1 === e.customListSort && (r.disabledCustomListSort = !0), e.cacheName && (r.cacheName = e.cacheName), e.startItem && (r.startItem = e.startItem), e.level !== void 0 && (r.level = e.level), e.uid && (r.uid = e.uid), r;
36
36
  }
37
- var De = (e, t, n) => {
38
- let r = `Unable to read '${e}': ${t?.message ?? t}`;
39
- n?.onWarning ? n.onWarning(r, e) : console.warn(r);
40
- }, z = (e, n, r, i, a = null) => {
41
- if (!e) return null;
42
- let o = e;
43
- o.startsWith("/") && (o = o.substring(1));
44
- let s = a?.parsedRefs?.get(e);
45
- if (s !== void 0) return s;
46
- let c = n(o);
47
- if (!c) return null;
48
- let l = c.content;
49
- try {
50
- let n = new TextDecoder().decode(l), o = r.parseFromString(n, "text/xml"), s = i.transform(o, e, a ?? t.EmptyObject);
51
- return a?.parsedRefs?.set(e, s), s;
52
- } catch (t) {
53
- De(e, t, a);
54
- }
55
- return null;
56
- }, Oe = (e, t, n, r, i = null) => {
57
- if (!e) return null;
58
- let a = z(e, t, n, r, i);
59
- if (!a) return null;
60
- let o = /* @__PURE__ */ new Map(), s = Object.keys(a), c = s.length;
61
- for (let e = 0; e < c; e++) {
62
- let t = s[e], n = a[t];
63
- o.set(t, n);
64
- }
65
- return o;
66
- }, B = (e, t, n, r, i, a = null) => {
67
- let o = /* @__PURE__ */ new Map(), s = t[e], c = s ? s.length : 0;
68
- for (let e = 0; e < c; e++) {
69
- let t = s[e];
70
- if (!t) continue;
71
- let c = t;
72
- c.startsWith("/") && (c = c.substring(1));
73
- let l = z(c, n, r, i, a);
74
- o.set(c, l);
75
- }
76
- return o;
77
- }, ke = (e) => {
78
- let t = e.split(/\/+/);
79
- return t.reduce((e, t, n) => (t === "." ? e.splice(n, 1) : t === ".." && e.splice(n - 1, 2), e), t).join("/");
80
- }, Ae = Object.freeze([
81
- "lt1",
82
- "dk1",
83
- "lt2",
84
- "dk2",
85
- "accent1",
86
- "accent2",
87
- "accent3",
88
- "accent4",
89
- "accent5",
90
- "accent6",
91
- "hlink",
92
- "folHlink"
93
- ]), V = (e, t = "auto") => {
94
- let n, r = e("auto");
95
- r === void 0 || r !== "1" && r !== "true" || (n = t);
96
- let i = e("indexed");
97
- i && (n = i === "64" ? "auto" : `index${i}`);
98
- let a = e("rgb");
99
- a && (n = a.toLowerCase(), a.length !== 8 || a.startsWith("FF") || (n = "FF" + a.substring(2, a.length)));
100
- let s = e("theme");
101
- s && (n = Ae[Number(s)]);
102
- let c = e("tint");
103
- if (c && (n += ` ${o.AdjustmentType.ETint} ${parseFloat(c)}`), n) return n;
104
- }, je = (e) => e && e.replace(/^\{([\s\S]+)\}$/, "$1"), Me = /* @__PURE__ */ new Uint8Array(), H = class e {
37
+ var Xe = /* @__PURE__ */ new Uint8Array(), Ze = class e {
105
38
  constructor(e, t, n) {
106
39
  this.buffers = /* @__PURE__ */ new Map(), this.zip = e, this.entries = t, this.rawBuffer = n;
107
40
  }
@@ -109,7 +42,7 @@ var De = (e, t, n) => {
109
42
  return e.startsWith("/") ? e.slice(1) : e;
110
43
  }
111
44
  static async create(t) {
112
- let n = t instanceof Blob ? Me : t instanceof Uint8Array ? t : new Uint8Array(t), r = t instanceof Blob ? new y(t) : new I(n), i = new ve(r), a = /* @__PURE__ */ new Map();
45
+ let n = t instanceof Blob ? Xe : t instanceof Uint8Array ? t : new Uint8Array(t), r = t instanceof Blob ? new Oe(t) : new M(n), i = new U(r), a = /* @__PURE__ */ new Map();
113
46
  for (let e of await i.getEntries()) e.directory || a.set(e.filename, e);
114
47
  return new e(i, a, n);
115
48
  }
@@ -127,12 +60,12 @@ var De = (e, t, n) => {
127
60
  if (r) return r;
128
61
  let i = this.entries.get(n);
129
62
  if (!i) return null;
130
- let a = await i.getData(new v());
63
+ let a = await i.getData(new O());
131
64
  return this.buffers.set(n, a), a;
132
65
  }
133
66
  async prefetch(e) {
134
67
  let t = [];
135
- for (let [n, r] of this.entries) !this.buffers.has(n) && e(n, r) && t.push(r.getData(new v()).then((e) => {
68
+ for (let [n, r] of this.entries) !this.buffers.has(n) && e(n, r) && t.push(r.getData(new O()).then((e) => {
136
69
  this.buffers.set(n, e);
137
70
  }));
138
71
  await Promise.all(t);
@@ -175,18 +108,18 @@ var De = (e, t, n) => {
175
108
  async close() {
176
109
  await this.zip.close();
177
110
  }
178
- }, U = class {
111
+ }, Qe = class {
179
112
  constructor(e) {
180
- this._sink = e, this._samples = [], this._t0 = Ne(), this._tPrev = this._t0, this._heapPrev = Pe();
113
+ this._sink = e, this._samples = [], this._t0 = $e(), this._tPrev = this._t0, this._heapPrev = et();
181
114
  }
182
115
  mark(e) {
183
- let t = Ne(), n = Pe(), r = {
116
+ let t = $e(), n = et(), r = {
184
117
  label: e,
185
118
  tMs: t - this._t0,
186
119
  dtMs: t - this._tPrev,
187
120
  heapBytes: n,
188
121
  dHeapBytes: n !== void 0 && this._heapPrev !== void 0 ? n - this._heapPrev : void 0,
189
- rssBytes: Fe()
122
+ rssBytes: tt()
190
123
  };
191
124
  this._tPrev = t, this._heapPrev = n, this._samples.push(r), this._sink?.(r);
192
125
  }
@@ -198,91 +131,91 @@ var De = (e, t, n) => {
198
131
  phase: e.label,
199
132
  tMs: Math.round(e.tMs),
200
133
  dtMs: Math.round(e.dtMs),
201
- heapMB: e.heapBytes === void 0 ? "—" : Ie(e.heapBytes / 1048576),
202
- dHeapMB: e.dHeapBytes === void 0 ? "—" : Ie(e.dHeapBytes / 1048576),
203
- rssMB: e.rssBytes === void 0 ? "—" : Ie(e.rssBytes / 1048576)
134
+ heapMB: e.heapBytes === void 0 ? "—" : nt(e.heapBytes / 1048576),
135
+ dHeapMB: e.dHeapBytes === void 0 ? "—" : nt(e.dHeapBytes / 1048576),
136
+ rssMB: e.rssBytes === void 0 ? "—" : nt(e.rssBytes / 1048576)
204
137
  }));
205
138
  }
206
- }, Ne = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
207
- function Pe() {
139
+ }, $e = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
140
+ function et() {
208
141
  let e = typeof performance == "object" ? performance.memory : void 0;
209
142
  if (e && typeof e.usedJSHeapSize == "number") return e.usedJSHeapSize;
210
143
  let t = globalThis.process;
211
144
  return typeof t == "object" && typeof t.memoryUsage == "function" ? t.memoryUsage().heapUsed : void 0;
212
145
  }
213
- function Fe() {
146
+ function tt() {
214
147
  let e = globalThis.process;
215
148
  if (typeof e == "object" && typeof e.memoryUsage == "function") return e.memoryUsage().rss;
216
149
  }
217
- function Ie(e) {
150
+ function nt(e) {
218
151
  return Math.round(10 * e) / 10;
219
152
  }
220
- var Le = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Re = `-${Le}.0-9·̀-ͯ‿-⁀`, ze = (RegExp(`^[${Le}]$`, "u"), RegExp(`^[${Re}]$`, "u"), RegExp(`^[${Le}][${Re}]*$`, "u")), Be = (RegExp(`^[${Re}]+$`, "u"), [
153
+ var rt = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", it = `-${rt}.0-9·̀-ͯ‿-⁀`, at = (RegExp(`^[${rt}]$`, "u"), RegExp(`^[${it}]$`, "u"), RegExp(`^[${rt}][${it}]*$`, "u")), ot = (RegExp(`^[${it}]+$`, "u"), [
221
154
  32,
222
155
  10,
223
156
  13,
224
157
  9
225
158
  ]);
226
- function Ve(e) {
159
+ function st(e) {
227
160
  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;
228
161
  }
229
- var He = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ue = `-${He}.0-9·̀-ͯ‿-⁀`;
230
- RegExp(`^[${He}]$`, "u"), RegExp(`^[${Ue}]$`, "u"), RegExp(`^[${He}][${Ue}]*$`, "u"), RegExp(`^[${Ue}]+$`, "u");
231
- var We = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ge = `-${We}.0-9·̀-ͯ‿-⁀`, Ke = (RegExp(`^[${We}]$`, "u"), RegExp(`^[${Ge}]$`, "u"), RegExp(`^[${We}][${Ge}]*$`, "u"));
232
- function qe(e) {
162
+ var ct = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", lt = `-${ct}.0-9·̀-ͯ‿-⁀`;
163
+ RegExp(`^[${ct}]$`, "u"), RegExp(`^[${lt}]$`, "u"), RegExp(`^[${ct}][${lt}]*$`, "u"), RegExp(`^[${lt}]+$`, "u");
164
+ var ut = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", dt = `-${ut}.0-9·̀-ͯ‿-⁀`, ft = (RegExp(`^[${ut}]$`, "u"), RegExp(`^[${dt}]$`, "u"), RegExp(`^[${ut}][${dt}]*$`, "u"));
165
+ function pt(e) {
233
166
  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;
234
167
  }
235
- var Je, W = function(e) {
168
+ var mt, K = function(e) {
236
169
  return e === 32 || e === 10 || e === 13 || e === 9;
237
- }, Ye = function(e) {
170
+ }, ht = function(e) {
238
171
  return e >= 32 && e <= 55295 || e === 10 || e === 13 || e === 9 || e >= 57344 && e <= 65533 || e >= 65536 && e <= 1114111;
239
- }, Xe = Ve, Ze = function(e) {
240
- return Ve(e) || e >= 48 && e <= 57 || e === 45 || e === 46 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
241
- }, Qe = Be, $e = ze, et = function(e) {
172
+ }, gt = st, _t = function(e) {
173
+ return st(e) || e >= 48 && e <= 57 || e === 45 || e === 46 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
174
+ }, vt = ot, yt = at, bt = function(e) {
242
175
  return e >= 1 && e <= 55295 || e >= 57344 && e <= 65533 || e >= 65536 && e <= 1114111;
243
- }, tt = qe, G = function(e) {
244
- return qe(e) || e === 45 || e === 46 || e >= 48 && e <= 57 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
245
- }, nt = Ke, rt = "http://www.w3.org/XML/1998/namespace", it = "http://www.w3.org/2000/xmlns/", at = {
176
+ }, xt = pt, St = function(e) {
177
+ return pt(e) || e === 45 || e === 46 || e >= 48 && e <= 57 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
178
+ }, Ct = ft, wt = "http://www.w3.org/XML/1998/namespace", Tt = "http://www.w3.org/2000/xmlns/", Et = {
246
179
  __proto__: null,
247
- xml: rt,
248
- xmlns: it
249
- }, ot = {
180
+ xml: wt,
181
+ xmlns: Tt
182
+ }, Dt = {
250
183
  __proto__: null,
251
184
  amp: "&",
252
185
  gt: ">",
253
186
  lt: "<",
254
187
  quot: "\"",
255
188
  apos: "'"
256
- }, K = -1, st = -2, q = 13, ct = 33, lt = 10, ut = 60, dt = 61, J = 62, Y = 63, ft = 93, pt = (e) => e === 34 || e === 39, mt = [34, 39], ht = [
257
- ...mt,
189
+ }, q = -1, Ot = -2, J = 13, kt = 33, At = 10, jt = 60, Mt = 61, Y = 62, X = 63, Nt = 93, Pt = (e) => e === 34 || e === 39, Ft = [34, 39], It = [
190
+ ...Ft,
258
191
  91,
259
- J
260
- ], gt = [
261
- ...mt,
262
- ut,
263
- ft
264
- ], _t = [
265
- dt,
192
+ Y
193
+ ], Lt = [
194
+ ...Ft,
195
+ jt,
196
+ Nt
197
+ ], Rt = [
198
+ Mt,
199
+ X,
200
+ ...vt
201
+ ], zt = [
202
+ ...vt,
266
203
  Y,
267
- ...Qe
268
- ], vt = [
269
- ...Qe,
270
- J,
271
204
  38,
272
- ut
205
+ jt
273
206
  ];
274
- function yt(e, t, n) {
207
+ function Bt(e, t, n) {
275
208
  switch (t) {
276
209
  case "xml":
277
- n !== rt && e.fail(`xml prefix must be bound to ${rt}.`);
210
+ n !== wt && e.fail(`xml prefix must be bound to ${wt}.`);
278
211
  break;
279
- case "xmlns": n !== it && e.fail(`xmlns prefix must be bound to ${it}.`);
212
+ case "xmlns": n !== Tt && e.fail(`xmlns prefix must be bound to ${Tt}.`);
280
213
  }
281
214
  switch (n) {
282
- case it:
283
- e.fail(t === "" ? `the default namespace may not be set to ${n}.` : `may not assign a prefix (even "xmlns") to the URI ${it}.`);
215
+ case Tt:
216
+ e.fail(t === "" ? `the default namespace may not be set to ${n}.` : `may not assign a prefix (even "xmlns") to the URI ${Tt}.`);
284
217
  break;
285
- case rt: switch (t) {
218
+ case wt: switch (t) {
286
219
  case "xml": break;
287
220
  case "":
288
221
  e.fail(`the default namespace may not be set to ${n}.`);
@@ -291,7 +224,7 @@ function yt(e, t, n) {
291
224
  }
292
225
  }
293
226
  }
294
- var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
227
+ var Vt, Ht = (e) => Ct.test(e), Ut = (e) => yt.test(e), Wt = {
295
228
  xmldecl: "xmlDeclHandler",
296
229
  text: "textHandler",
297
230
  processinginstruction: "piHandler",
@@ -305,7 +238,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
305
238
  error: "errorHandler",
306
239
  end: "endHandler",
307
240
  ready: "readyHandler"
308
- }, wt = class {
241
+ }, Gt = class {
309
242
  get closed() {
310
243
  return this._closed;
311
244
  }
@@ -313,15 +246,15 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
313
246
  this.i = 0, this.prevI = 0, this.opt = e ?? {}, this.fragmentOpt = !!this.opt.fragment;
314
247
  let t = this.xmlnsOpt = !!this.opt.xmlns;
315
248
  if (this.trackPosition = !1 !== this.opt.position, this.fileName = this.opt.fileName, t) {
316
- this.nameStartCheck = tt, this.nameCheck = G, this.isName = xt, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
249
+ this.nameStartCheck = xt, this.nameCheck = St, this.isName = Ht, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
317
250
  __proto__: null,
318
- ...at
251
+ ...Et
319
252
  };
320
253
  let e = this.opt.additionalNamespaces;
321
254
  e != null && (function(e, t) {
322
- for (let n of Object.keys(t)) yt(e, n, t[n]);
255
+ for (let n of Object.keys(t)) Bt(e, n, t[n]);
323
256
  }(this, e), Object.assign(this.ns, e));
324
- } else this.nameStartCheck = Xe, this.nameCheck = Ze, this.isName = St, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
257
+ } else this.nameStartCheck = gt, this.nameCheck = _t, this.isName = Ut, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
325
258
  this.stateTable = [
326
259
  this.sBegin,
327
260
  this.sBeginWhitespace,
@@ -373,7 +306,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
373
306
  _init() {
374
307
  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 = [];
375
308
  let { fragmentOpt: e } = this;
376
- this.state = e ? q : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = e, this.xmlDeclPossible = !e, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
309
+ this.state = e ? J : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = e, this.xmlDeclPossible = !e, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
377
310
  let { defaultXMLVersion: t } = this.opt;
378
311
  if (t === void 0) {
379
312
  if (!0 === this.opt.forceXMLVersion) throw Error("forceXMLVersion set but defaultXMLVersion is not set");
@@ -383,7 +316,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
383
316
  version: void 0,
384
317
  encoding: void 0,
385
318
  standalone: void 0
386
- }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(ot), this.readyHandler?.();
319
+ }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Dt), this.readyHandler?.();
387
320
  }
388
321
  get position() {
389
322
  return this.chunkPosition + this.i;
@@ -392,10 +325,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
392
325
  return this.position - this.positionAtNewLine;
393
326
  }
394
327
  on(e, t) {
395
- this[Ct[e]] = t;
328
+ this[Wt[e]] = t;
396
329
  }
397
330
  off(e) {
398
- this[Ct[e]] = void 0;
331
+ this[Wt[e]] = void 0;
399
332
  }
400
333
  makeError(e) {
401
334
  let t = this.fileName ?? "";
@@ -421,13 +354,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
421
354
  }
422
355
  getCode10() {
423
356
  let e = this.chunk, t = this.i;
424
- if (this.prevI = t, this.i++, t >= e.length) return K;
357
+ if (this.prevI = t, this.i++, t >= e.length) return q;
425
358
  let n = e.charCodeAt(t);
426
359
  if (this.column++, n < 55296) {
427
360
  if (n >= 32 || n === 9) return n;
428
361
  switch (n) {
429
- case lt: return this.line++, this.column = 0, this.positionAtNewLine = this.position, lt;
430
- case 13: return e.charCodeAt(t + 1) === lt && (this.i = t + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, st;
362
+ case At: return this.line++, this.column = 0, this.positionAtNewLine = this.position, At;
363
+ case 13: return e.charCodeAt(t + 1) === At && (this.i = t + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, Ot;
431
364
  default: return this.fail("disallowed character."), n;
432
365
  }
433
366
  }
@@ -437,18 +370,18 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
437
370
  }
438
371
  getCode11() {
439
372
  let { chunk: e, i: t } = this;
440
- if (this.prevI = t, this.i = t + 1, t >= e.length) return K;
373
+ if (this.prevI = t, this.i = t + 1, t >= e.length) return q;
441
374
  let n = e.charCodeAt(t);
442
375
  if (this.column++, n < 55296) {
443
376
  if (n > 31 && n < 127 || n > 159 && n !== 8232 || n === 9) return n;
444
377
  switch (n) {
445
- case lt: return this.line++, this.column = 0, this.positionAtNewLine = this.position, lt;
378
+ case At: return this.line++, this.column = 0, this.positionAtNewLine = this.position, At;
446
379
  case 13: {
447
380
  let n = e.charCodeAt(t + 1);
448
- n !== lt && n !== 133 || (this.i = t + 2);
381
+ n !== At && n !== 133 || (this.i = t + 2);
449
382
  }
450
383
  case 133:
451
- case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, st;
384
+ case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Ot;
452
385
  default: return this.fail("disallowed character."), n;
453
386
  }
454
387
  }
@@ -458,7 +391,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
458
391
  }
459
392
  getCodeNorm() {
460
393
  let e = this.getCode();
461
- return e === st ? lt : e;
394
+ return e === Ot ? At : e;
462
395
  }
463
396
  unGet() {
464
397
  this.i = this.prevI, this.column--;
@@ -466,8 +399,8 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
466
399
  captureTo(e) {
467
400
  let { i: t } = this, { chunk: n } = this;
468
401
  for (;;) {
469
- let r = this.getCode(), i = r === st, a = i ? lt : r;
470
- if (a === K || e.includes(a)) return this.text += n.slice(t, this.prevI), a;
402
+ let r = this.getCode(), i = r === Ot, a = i ? At : r;
403
+ if (a === q || e.includes(a)) return this.text += n.slice(t, this.prevI), a;
471
404
  i && (this.text += `${n.slice(t, this.prevI)}\n`, t = this.i);
472
405
  }
473
406
  }
@@ -476,10 +409,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
476
409
  for (;;) {
477
410
  let r = this.getCode();
478
411
  switch (r) {
479
- case st:
480
- this.text += `${n.slice(t, this.prevI)}\n`, t = this.i, r = lt;
412
+ case Ot:
413
+ this.text += `${n.slice(t, this.prevI)}\n`, t = this.i, r = At;
481
414
  break;
482
- case K: return this.text += n.slice(t), !1;
415
+ case q: return this.text += n.slice(t), !1;
483
416
  }
484
417
  if (r === e) return this.text += n.slice(t, this.prevI), !0;
485
418
  }
@@ -488,18 +421,18 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
488
421
  let { chunk: e, i: t } = this;
489
422
  for (;;) {
490
423
  let n = this.getCode();
491
- if (n === K) return this.name += e.slice(t), K;
492
- if (!Ze(n)) return this.name += e.slice(t, this.prevI), n === st ? lt : n;
424
+ if (n === q) return this.name += e.slice(t), q;
425
+ if (!_t(n)) return this.name += e.slice(t, this.prevI), n === Ot ? At : n;
493
426
  }
494
427
  }
495
428
  skipSpaces() {
496
429
  for (;;) {
497
430
  let e = this.getCodeNorm();
498
- if (e === K || !W(e)) return e;
431
+ if (e === q || !K(e)) return e;
499
432
  }
500
433
  }
501
434
  setXMLVersion(e) {
502
- this.currentXMLVersion = e, e === "1.0" ? (this.isChar = Ye, this.getCode = this.getCode10) : (this.isChar = et, this.getCode = this.getCode11);
435
+ this.currentXMLVersion = e, e === "1.0" ? (this.isChar = ht, this.getCode = this.getCode10) : (this.isChar = bt, this.getCode = this.getCode11);
503
436
  }
504
437
  sBegin() {
505
438
  this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = 1;
@@ -507,21 +440,21 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
507
440
  sBeginWhitespace() {
508
441
  let e = this.i, t = this.skipSpaces();
509
442
  switch (this.prevI !== e && (this.xmlDeclPossible = !1), t) {
510
- case ut:
443
+ case jt:
511
444
  if (this.state = 15, this.text.length !== 0) throw Error("no-empty text at start");
512
445
  break;
513
- case K: break;
514
- default: this.unGet(), this.state = q, this.xmlDeclPossible = !1;
446
+ case q: break;
447
+ default: this.unGet(), this.state = J, this.xmlDeclPossible = !1;
515
448
  }
516
449
  }
517
450
  sDoctype() {
518
- let e = this.captureTo(ht);
451
+ let e = this.captureTo(It);
519
452
  switch (e) {
520
- case J:
521
- this.doctypeHandler?.(this.text), this.text = "", this.state = q, this.doctype = !0;
453
+ case Y:
454
+ this.doctypeHandler?.(this.text), this.text = "", this.state = J, this.doctype = !0;
522
455
  break;
523
- case K: break;
524
- default: this.text += String.fromCodePoint(e), e === 91 ? this.state = 4 : pt(e) && (this.state = 3, this.q = e);
456
+ case q: break;
457
+ default: this.text += String.fromCodePoint(e), e === 91 ? this.state = 4 : Pt(e) && (this.state = 3, this.q = e);
525
458
  }
526
459
  }
527
460
  sDoctypeQuote() {
@@ -529,8 +462,8 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
529
462
  this.captureToChar(e) && (this.text += String.fromCodePoint(e), this.q = null, this.state = 2);
530
463
  }
531
464
  sDTD() {
532
- let e = this.captureTo(gt);
533
- e !== K && (this.text += String.fromCodePoint(e), e === ft ? this.state = 2 : e === ut ? this.state = 6 : pt(e) && (this.state = 5, this.q = e));
465
+ let e = this.captureTo(Lt);
466
+ e !== q && (this.text += String.fromCodePoint(e), e === Nt ? this.state = 2 : e === jt ? this.state = 6 : Pt(e) && (this.state = 5, this.q = e));
534
467
  }
535
468
  sDTDQuoted() {
536
469
  let e = this.q;
@@ -542,7 +475,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
542
475
  case 33:
543
476
  this.state = 7, this.openWakaBang = "";
544
477
  break;
545
- case Y:
478
+ case X:
546
479
  this.state = 11;
547
480
  break;
548
481
  default: this.state = 4;
@@ -561,14 +494,14 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
561
494
  }
562
495
  sDTDCommentEnded() {
563
496
  let e = this.getCodeNorm();
564
- this.text += String.fromCodePoint(e), e === J ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
497
+ this.text += String.fromCodePoint(e), e === Y ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
565
498
  }
566
499
  sDTDPI() {
567
- this.captureToChar(Y) && (this.text += "?", this.state = 12);
500
+ this.captureToChar(X) && (this.text += "?", this.state = 12);
568
501
  }
569
502
  sDTDPIEnding() {
570
503
  let e = this.getCodeNorm();
571
- this.text += String.fromCodePoint(e), e === J && (this.state = 4);
504
+ this.text += String.fromCodePoint(e), e === Y && (this.state = 4);
572
505
  }
573
506
  sText() {
574
507
  this.tags.length === 0 ? this.handleTextOutsideRoot() : this.handleTextInRoot();
@@ -576,22 +509,22 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
576
509
  sEntity() {
577
510
  let { i: e } = this, { chunk: t } = this;
578
511
  t: for (;;) switch (this.getCode()) {
579
- case st:
512
+ case Ot:
580
513
  this.entity += `${t.slice(e, this.prevI)}\n`, e = this.i;
581
514
  break;
582
515
  case 59: {
583
516
  let n, { entityReturnState: r } = this, i = this.entity + t.slice(e, this.prevI);
584
- this.state = r, i === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(i), this.entity = ""), r === q && this.textHandler === void 0 || (this.text += n);
517
+ this.state = r, i === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(i), this.entity = ""), r === J && this.textHandler === void 0 || (this.text += n);
585
518
  break t;
586
519
  }
587
- case K:
520
+ case q:
588
521
  this.entity += t.slice(e);
589
522
  break t;
590
523
  }
591
524
  }
592
525
  sOpenWaka() {
593
526
  let e = this.getCode();
594
- if (Xe(e)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
527
+ if (gt(e)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
595
528
  else switch (e) {
596
529
  case 47:
597
530
  this.state = 43, this.xmlDeclPossible = !1;
@@ -599,10 +532,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
599
532
  case 33:
600
533
  this.state = 16, this.openWakaBang = "", this.xmlDeclPossible = !1;
601
534
  break;
602
- case Y:
535
+ case X:
603
536
  this.state = 23;
604
537
  break;
605
- default: this.fail("disallowed character in tag name"), this.state = q, this.xmlDeclPossible = !1;
538
+ default: this.fail("disallowed character in tag name"), this.state = J, this.xmlDeclPossible = !1;
606
539
  }
607
540
  }
608
541
  sOpenWakaBang() {
@@ -628,22 +561,22 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
628
561
  }
629
562
  sCommentEnded() {
630
563
  let e = this.getCodeNorm();
631
- e === J ? this.state = q : (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(e)}`, this.state = 17);
564
+ e === Y ? this.state = J : (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(e)}`, this.state = 17);
632
565
  }
633
566
  sCData() {
634
- this.captureToChar(ft) && (this.state = 21);
567
+ this.captureToChar(Nt) && (this.state = 21);
635
568
  }
636
569
  sCDataEnding() {
637
570
  let e = this.getCodeNorm();
638
- e === ft ? this.state = 22 : (this.text += `]${String.fromCodePoint(e)}`, this.state = 20);
571
+ e === Nt ? this.state = 22 : (this.text += `]${String.fromCodePoint(e)}`, this.state = 20);
639
572
  }
640
573
  sCDataEnding2() {
641
574
  let e = this.getCodeNorm();
642
575
  switch (e) {
643
- case J:
644
- this.cdataHandler?.(this.text), this.text = "", this.state = q;
576
+ case Y:
577
+ this.cdataHandler?.(this.text), this.text = "", this.state = J;
645
578
  break;
646
- case ft:
579
+ case Nt:
647
580
  this.text += "]";
648
581
  break;
649
582
  default: this.text += `]]${String.fromCodePoint(e)}`, this.state = 20;
@@ -651,17 +584,17 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
651
584
  }
652
585
  sPIFirstChar() {
653
586
  let e = this.getCodeNorm();
654
- this.nameStartCheck(e) ? (this.piTarget += String.fromCodePoint(e), this.state = 24) : e === Y || W(e) ? (this.fail("processing instruction without a target."), this.state = e === Y ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(e), this.state = 24);
587
+ this.nameStartCheck(e) ? (this.piTarget += String.fromCodePoint(e), this.state = 24) : e === X || K(e) ? (this.fail("processing instruction without a target."), this.state = e === X ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(e), this.state = 24);
655
588
  }
656
589
  sPIRest() {
657
590
  let { chunk: e, i: t } = this;
658
591
  for (;;) {
659
592
  let n = this.getCodeNorm();
660
- if (n === K) return void (this.piTarget += e.slice(t));
593
+ if (n === q) return void (this.piTarget += e.slice(t));
661
594
  if (!this.nameCheck(n)) {
662
595
  this.piTarget += e.slice(t, this.prevI);
663
- let r = n === Y;
664
- r || W(n) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = r ? ct : 27) : this.state = r ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(n));
596
+ let r = n === X;
597
+ r || K(n) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = r ? kt : 27) : this.state = r ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(n));
665
598
  break;
666
599
  }
667
600
  }
@@ -669,28 +602,28 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
669
602
  sPIBody() {
670
603
  if (this.text.length === 0) {
671
604
  let e = this.getCodeNorm();
672
- e === Y ? this.state = 26 : W(e) || (this.text = String.fromCodePoint(e));
673
- } else this.captureToChar(Y) && (this.state = 26);
605
+ e === X ? this.state = 26 : K(e) || (this.text = String.fromCodePoint(e));
606
+ } else this.captureToChar(X) && (this.state = 26);
674
607
  }
675
608
  sPIEnding() {
676
609
  let e = this.getCodeNorm();
677
- if (e === J) {
610
+ if (e === Y) {
678
611
  let { piTarget: e } = this;
679
612
  e.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({
680
613
  target: e,
681
614
  body: this.text
682
- }), this.piTarget = this.text = "", this.state = q;
683
- } else e === Y ? this.text += "?" : (this.text += `?${String.fromCodePoint(e)}`, this.state = 25);
615
+ }), this.piTarget = this.text = "", this.state = J;
616
+ } else e === X ? this.text += "?" : (this.text += `?${String.fromCodePoint(e)}`, this.state = 25);
684
617
  this.xmlDeclPossible = !1;
685
618
  }
686
619
  sXMLDeclNameStart() {
687
620
  let e = this.skipSpaces();
688
- e === Y ? this.state = ct : e !== K && (this.state = 28, this.name = String.fromCodePoint(e));
621
+ e === X ? this.state = kt : e !== q && (this.state = 28, this.name = String.fromCodePoint(e));
689
622
  }
690
623
  sXMLDeclName() {
691
- let e = this.captureTo(_t);
692
- if (e === Y) return this.state = ct, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
693
- if (W(e) || e === dt) {
624
+ let e = this.captureTo(Rt);
625
+ if (e === X) return this.state = kt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
626
+ if (K(e) || e === Mt) {
694
627
  if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
695
628
  case 0:
696
629
  this.fail("did not expect any more name/value pairs.");
@@ -700,23 +633,23 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
700
633
  break;
701
634
  default: this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
702
635
  }
703
- this.state = e === dt ? 30 : 29;
636
+ this.state = e === Mt ? 30 : 29;
704
637
  }
705
638
  }
706
639
  sXMLDeclEq() {
707
640
  let e = this.getCodeNorm();
708
- if (e === Y) return this.state = ct, void this.fail("XML declaration is incomplete.");
709
- W(e) || (e !== dt && this.fail("value required."), this.state = 30);
641
+ if (e === X) return this.state = kt, void this.fail("XML declaration is incomplete.");
642
+ K(e) || (e !== Mt && this.fail("value required."), this.state = 30);
710
643
  }
711
644
  sXMLDeclValueStart() {
712
645
  let e = this.getCodeNorm();
713
- if (e === Y) return this.state = ct, void this.fail("XML declaration is incomplete.");
714
- W(e) || (pt(e) ? this.q = e : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
646
+ if (e === X) return this.state = kt, void this.fail("XML declaration is incomplete.");
647
+ K(e) || (Pt(e) ? this.q = e : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
715
648
  }
716
649
  sXMLDeclValue() {
717
- let e = this.captureTo([this.q, Y]);
718
- if (e === Y) return this.state = ct, this.text = "", void this.fail("XML declaration is incomplete.");
719
- if (e === K) return;
650
+ let e = this.captureTo([this.q, X]);
651
+ if (e === X) return this.state = kt, this.text = "", void this.fail("XML declaration is incomplete.");
652
+ if (e === q) return;
720
653
  let t = this.text;
721
654
  switch (this.text = "", this.name) {
722
655
  case "version": {
@@ -734,52 +667,52 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
734
667
  }
735
668
  sXMLDeclSeparator() {
736
669
  let e = this.getCodeNorm();
737
- e === Y ? this.state = ct : (W(e) || (this.fail("whitespace required."), this.unGet()), this.state = 27);
670
+ e === X ? this.state = kt : (K(e) || (this.fail("whitespace required."), this.unGet()), this.state = 27);
738
671
  }
739
672
  sXMLDeclEnding() {
740
- this.getCodeNorm() === J ? (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 = q) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
673
+ this.getCodeNorm() === Y ? (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 = J) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
741
674
  }
742
675
  sOpenTag() {
743
676
  let e = this.captureNameChars();
744
- if (e === K) return;
677
+ if (e === q) return;
745
678
  let t = this.tag = {
746
679
  name: this.name,
747
680
  attributes: Object.create(null)
748
681
  };
749
682
  switch (this.name = "", this.xmlnsOpt && (this.topNS = t.ns = Object.create(null)), this.openTagStartHandler?.(t), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), e) {
750
- case J:
683
+ case Y:
751
684
  this.openTag();
752
685
  break;
753
686
  case 47:
754
687
  this.state = 35;
755
688
  break;
756
- default: W(e) || this.fail("disallowed character in tag name."), this.state = 36;
689
+ default: K(e) || this.fail("disallowed character in tag name."), this.state = 36;
757
690
  }
758
691
  }
759
692
  sOpenTagSlash() {
760
- this.getCode() === J ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
693
+ this.getCode() === Y ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
761
694
  }
762
695
  sAttrib() {
763
696
  let e = this.skipSpaces();
764
- e !== K && (Xe(e) ? (this.unGet(), this.state = 37) : e === J ? this.openTag() : e === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
697
+ e !== q && (gt(e) ? (this.unGet(), this.state = 37) : e === Y ? this.openTag() : e === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
765
698
  }
766
699
  sAttribName() {
767
700
  let e = this.captureNameChars();
768
- e === dt ? this.state = 39 : W(e) ? this.state = 38 : e === J ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : e !== K && this.fail("disallowed character in attribute name.");
701
+ e === Mt ? this.state = 39 : K(e) ? this.state = 38 : e === Y ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : e !== q && this.fail("disallowed character in attribute name.");
769
702
  }
770
703
  sAttribNameSawWhite() {
771
704
  let e = this.skipSpaces();
772
705
  switch (e) {
773
- case K: return;
774
- case dt:
706
+ case q: return;
707
+ case Mt:
775
708
  this.state = 39;
776
709
  break;
777
- default: this.fail("attribute without value."), this.text = "", this.name = "", e === J ? this.openTag() : Xe(e) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
710
+ default: this.fail("attribute without value."), this.text = "", this.name = "", e === Y ? this.openTag() : gt(e) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
778
711
  }
779
712
  }
780
713
  sAttribValue() {
781
714
  let e = this.getCodeNorm();
782
- pt(e) ? (this.q = e, this.state = 40) : W(e) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
715
+ Pt(e) ? (this.q = e, this.state = 40) : K(e) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
783
716
  }
784
717
  sAttribValueQuoted() {
785
718
  let { q: e, chunk: t } = this, { i: n } = this;
@@ -790,53 +723,53 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
790
723
  case 38:
791
724
  this.text += t.slice(n, this.prevI), this.state = 14, this.entityReturnState = 40;
792
725
  return;
793
- case lt:
794
- case st:
726
+ case At:
727
+ case Ot:
795
728
  case 9:
796
729
  this.text += `${t.slice(n, this.prevI)} `, n = this.i;
797
730
  break;
798
- case ut:
731
+ case jt:
799
732
  this.text += t.slice(n, this.prevI), this.fail("disallowed character.");
800
733
  return;
801
- case K:
734
+ case q:
802
735
  this.text += t.slice(n);
803
736
  return;
804
737
  }
805
738
  }
806
739
  sAttribValueClosed() {
807
740
  let e = this.getCodeNorm();
808
- W(e) ? this.state = 36 : e === J ? this.openTag() : e === 47 ? this.state = 35 : Xe(e) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
741
+ K(e) ? this.state = 36 : e === Y ? this.openTag() : e === 47 ? this.state = 35 : gt(e) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
809
742
  }
810
743
  sAttribValueUnquoted() {
811
- let e = this.captureTo(vt);
744
+ let e = this.captureTo(zt);
812
745
  switch (e) {
813
746
  case 38:
814
747
  this.state = 14, this.entityReturnState = 42;
815
748
  break;
816
- case ut:
749
+ case jt:
817
750
  this.fail("disallowed character.");
818
751
  break;
819
- case K: break;
820
- default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", e === J ? this.openTag() : this.state = 36;
752
+ case q: break;
753
+ default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", e === Y ? this.openTag() : this.state = 36;
821
754
  }
822
755
  }
823
756
  sCloseTag() {
824
757
  let e = this.captureNameChars();
825
- e === J ? this.closeTag() : W(e) ? this.state = 44 : e !== K && this.fail("disallowed character in closing tag.");
758
+ e === Y ? this.closeTag() : K(e) ? this.state = 44 : e !== q && this.fail("disallowed character in closing tag.");
826
759
  }
827
760
  sCloseTagSawWhite() {
828
761
  switch (this.skipSpaces()) {
829
- case J:
762
+ case Y:
830
763
  this.closeTag();
831
764
  break;
832
- case K: break;
765
+ case q: break;
833
766
  default: this.fail("disallowed character in closing tag.");
834
767
  }
835
768
  }
836
769
  handleTextInRoot() {
837
770
  let { i: e, forbiddenState: t } = this, { chunk: n, textHandler: r } = this;
838
771
  t: for (;;) switch (this.getCode()) {
839
- case ut:
772
+ case jt:
840
773
  if (this.state = 15, r !== void 0) {
841
774
  let { text: t } = this, i = n.slice(e, this.prevI);
842
775
  t.length === 0 ? i.length !== 0 && r(i) : (r(t + i), this.text = "");
@@ -844,9 +777,9 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
844
777
  t = 0;
845
778
  break t;
846
779
  case 38:
847
- this.state = 14, this.entityReturnState = q, r !== void 0 && (this.text += n.slice(e, this.prevI)), t = 0;
780
+ this.state = 14, this.entityReturnState = J, r !== void 0 && (this.text += n.slice(e, this.prevI)), t = 0;
848
781
  break t;
849
- case ft:
782
+ case Nt:
850
783
  switch (t) {
851
784
  case 0:
852
785
  t = 1;
@@ -858,13 +791,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
858
791
  default: throw Error("impossible state");
859
792
  }
860
793
  break;
861
- case J:
794
+ case Y:
862
795
  t === 2 && this.fail("the string \"]]>\" is disallowed in char data."), t = 0;
863
796
  break;
864
- case st:
797
+ case Ot:
865
798
  r !== void 0 && (this.text += `${n.slice(e, this.prevI)}\n`), e = this.i, t = 0;
866
799
  break;
867
- case K:
800
+ case q:
868
801
  r !== void 0 && (this.text += n.slice(e));
869
802
  break t;
870
803
  default: t = 0;
@@ -876,22 +809,22 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
876
809
  t: for (;;) {
877
810
  let i = this.getCode();
878
811
  switch (i) {
879
- case ut:
812
+ case jt:
880
813
  if (this.state = 15, n !== void 0) {
881
814
  let { text: r } = this, i = t.slice(e, this.prevI);
882
815
  r.length === 0 ? i.length !== 0 && n(i) : (n(r + i), this.text = "");
883
816
  }
884
817
  break t;
885
818
  case 38:
886
- this.state = 14, this.entityReturnState = q, n !== void 0 && (this.text += t.slice(e, this.prevI)), r = !0;
819
+ this.state = 14, this.entityReturnState = J, n !== void 0 && (this.text += t.slice(e, this.prevI)), r = !0;
887
820
  break t;
888
- case st:
821
+ case Ot:
889
822
  n !== void 0 && (this.text += `${t.slice(e, this.prevI)}\n`), e = this.i;
890
823
  break;
891
- case K:
824
+ case q:
892
825
  n !== void 0 && (this.text += t.slice(e));
893
826
  break t;
894
- default: W(i) || (r = !0);
827
+ default: K(i) || (r = !0);
895
828
  }
896
829
  }
897
830
  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));
@@ -905,10 +838,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
905
838
  };
906
839
  if (this.attribList.push(i), this.attributeHandler?.(i), n === "xmlns") {
907
840
  let e = t.trim();
908
- this.currentXMLVersion === "1.0" && e === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[r] = e, yt(this, r, e);
841
+ this.currentXMLVersion === "1.0" && e === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[r] = e, Bt(this, r, e);
909
842
  } else if (e === "xmlns") {
910
843
  let e = t.trim();
911
- this.topNS[""] = e, yt(this, "", e);
844
+ this.topNS[""] = e, Bt(this, "", e);
912
845
  }
913
846
  }
914
847
  pushAttribPlain(e, t) {
@@ -925,7 +858,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
925
858
  let t = e.pop();
926
859
  this.fail(`unclosed tag: ${t.name}`);
927
860
  }
928
- this.state !== 0 && this.state !== q && this.fail("unexpected end.");
861
+ this.state !== 0 && this.state !== J && this.fail("unexpected end.");
929
862
  let { text: t } = this;
930
863
  return t.length !== 0 && (this.textHandler?.(t), this.text = ""), this._closed = !0, this.endHandler?.(), this._init(), this;
931
864
  }
@@ -960,7 +893,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
960
893
  let { attributes: n } = t, r = /* @__PURE__ */ new Set();
961
894
  for (let t of e) {
962
895
  let e, i, { name: a, prefix: o, local: s } = t;
963
- o === "" ? (e = a === "xmlns" ? it : "", 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;
896
+ o === "" ? (e = a === "xmlns" ? Tt : "", 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;
964
897
  }
965
898
  this.attribList = [];
966
899
  }
@@ -972,16 +905,16 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
972
905
  openTag() {
973
906
  this.processAttribs();
974
907
  let { tags: e } = this, t = this.tag;
975
- t.isSelfClosing = !1, this.openTagHandler?.(t), e.push(t), this.state = q, this.name = "";
908
+ t.isSelfClosing = !1, this.openTagHandler?.(t), e.push(t), this.state = J, this.name = "";
976
909
  }
977
910
  openSelfClosingTag() {
978
911
  this.processAttribs();
979
912
  let { tags: e } = this, t = this.tag;
980
- t.isSelfClosing = !0, this.openTagHandler?.(t), this.closeTagHandler?.(t), (this.tag = e[e.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = q, this.name = "";
913
+ t.isSelfClosing = !0, this.openTagHandler?.(t), this.closeTagHandler?.(t), (this.tag = e[e.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = J, this.name = "";
981
914
  }
982
915
  closeTag() {
983
916
  let { tags: e, name: t } = this;
984
- if (this.state = q, this.name = "", t === "") return this.fail("weird empty close tag."), void (this.text += "</>");
917
+ if (this.state = J, this.name = "", t === "") return this.fail("weird empty close tag."), void (this.text += "</>");
985
918
  let n = this.closeTagHandler, r = e.length;
986
919
  for (; r-- > 0;) {
987
920
  let r = this.tag = e.pop();
@@ -998,21 +931,21 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
998
931
  let t = NaN;
999
932
  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};`);
1000
933
  }
1001
- }, Tt = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, Et = {
934
+ }, Kt = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, qt = {
1002
935
  amp: "&",
1003
936
  lt: "<",
1004
937
  gt: ">",
1005
938
  quot: "\"",
1006
939
  apos: "'"
1007
- }, Dt = (e, t) => {
1008
- let n = Et[t];
940
+ }, Jt = (e, t) => {
941
+ let n = qt[t];
1009
942
  if (n !== void 0) return n;
1010
943
  let r = t.charCodeAt(1) === 120 ? parseInt(t.slice(2), 16) : parseInt(t.slice(1), 10);
1011
944
  return r > 0 && r <= 1114111 ? String.fromCodePoint(r) : e;
1012
- }, Ot = (e) => {
945
+ }, Yt = (e) => {
1013
946
  let t = e;
1014
- return t.indexOf("\r") !== -1 && (t = t.replace(/\r\n?/g, "\n")), t.indexOf("&") !== -1 && (t = t.replace(Tt, Dt)), t;
1015
- }, kt = (e) => {
947
+ return t.indexOf("\r") !== -1 && (t = t.replace(/\r\n?/g, "\n")), t.indexOf("&") !== -1 && (t = t.replace(Kt, Jt)), t;
948
+ }, Xt = (e) => {
1016
949
  let t = e, n = t.length;
1017
950
  for (let e = 0; e < n; e++) {
1018
951
  let n = t.charCodeAt(e);
@@ -1021,8 +954,8 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1021
954
  break;
1022
955
  }
1023
956
  }
1024
- return t.indexOf("&") !== -1 && (t = t.replace(Tt, Dt)), t;
1025
- }, At = (e) => e === 32 || e === 9 || e === 10 || e === 13, jt = class e {
957
+ return t.indexOf("&") !== -1 && (t = t.replace(Kt, Jt)), t;
958
+ }, Zt = (e) => e === 32 || e === 9 || e === 10 || e === 13, Qt = class e {
1026
959
  constructor() {
1027
960
  this._openTagHandler = void 0, this._closeTagHandler = void 0, this._textHandler = void 0, this._cdataHandler = void 0, this._errorHandler = void 0, this._endHandler = void 0, this._scanners = null, this._carry = "", this._text = "", this._tags = [], this._sawRoot = !1, this._closed = !1;
1028
961
  }
@@ -1033,7 +966,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1033
966
  this.NOT_HANDLED = -2;
1034
967
  }
1035
968
  static decodeText(e) {
1036
- return Ot(e);
969
+ return Yt(e);
1037
970
  }
1038
971
  on(e, t) {
1039
972
  switch (e) {
@@ -1099,7 +1032,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1099
1032
  if (e.length === 0) return;
1100
1033
  this._text = "";
1101
1034
  let t = this._textHandler;
1102
- t !== void 0 && this._tags.length !== 0 && t(Ot(e));
1035
+ t !== void 0 && this._tags.length !== 0 && t(Yt(e));
1103
1036
  }
1104
1037
  _markup(t, n, r) {
1105
1038
  if (n + 1 >= r) return -1;
@@ -1138,7 +1071,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1138
1071
  let i = n + 1 + o.name.length;
1139
1072
  if (i >= r) return -1;
1140
1073
  let a = t.charCodeAt(i);
1141
- if (a === 62 || a === 47 || At(a)) {
1074
+ if (a === 62 || a === 47 || Zt(a)) {
1142
1075
  this._flushText();
1143
1076
  let i = o.scan(t, n, r);
1144
1077
  if (i !== e.NOT_HANDLED) {
@@ -1156,11 +1089,11 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1156
1089
  }
1157
1090
  _openTag(e, t, n) {
1158
1091
  let r = t + 1, i = 0;
1159
- for (; r < n && (i = e.charCodeAt(r), i !== 62 && i !== 47 && !At(i));) r++;
1092
+ for (; r < n && (i = e.charCodeAt(r), i !== 62 && i !== 47 && !Zt(i));) r++;
1160
1093
  if (r >= n) return -1;
1161
1094
  let a = e.slice(t + 1, r), o = {}, s = !1;
1162
1095
  for (;;) {
1163
- for (; r < n && At(i = e.charCodeAt(r));) r++;
1096
+ for (; r < n && Zt(i = e.charCodeAt(r));) r++;
1164
1097
  if (r >= n) return -1;
1165
1098
  if (i === 62) {
1166
1099
  r++;
@@ -1176,16 +1109,16 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1176
1109
  break;
1177
1110
  }
1178
1111
  let t = r;
1179
- for (; r < n && (i = e.charCodeAt(r), i !== 61 && i !== 62 && i !== 47 && !At(i));) r++;
1112
+ for (; r < n && (i = e.charCodeAt(r), i !== 61 && i !== 62 && i !== 47 && !Zt(i));) r++;
1180
1113
  if (r >= n) return -1;
1181
1114
  let a = e.slice(t, r);
1182
- for (; r < n && At(i = e.charCodeAt(r));) r++;
1115
+ for (; r < n && Zt(i = e.charCodeAt(r));) r++;
1183
1116
  if (r >= n) return -1;
1184
1117
  if (i !== 61) {
1185
1118
  this.fail("attribute without value.");
1186
1119
  continue;
1187
1120
  }
1188
- for (r++; r < n && At(i = e.charCodeAt(r));) r++;
1121
+ for (r++; r < n && Zt(i = e.charCodeAt(r));) r++;
1189
1122
  if (r >= n) return -1;
1190
1123
  if (i !== 34 && i !== 39) {
1191
1124
  this.fail("unquoted attribute value.");
@@ -1193,7 +1126,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1193
1126
  }
1194
1127
  let c = e.indexOf(i === 34 ? "\"" : "'", r + 1);
1195
1128
  if (c === -1) return -1;
1196
- a !== "__proto__" && (o[a] = kt(e.slice(r + 1, c))), r = c + 1;
1129
+ a !== "__proto__" && (o[a] = Xt(e.slice(r + 1, c))), r = c + 1;
1197
1130
  }
1198
1131
  this._flushText(), this._sawRoot = !0;
1199
1132
  let c = {
@@ -1214,7 +1147,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1214
1147
  this.fail(`unmatched closing tag: ${e}.`);
1215
1148
  }
1216
1149
  };
1217
- (bt = Je ||= {}).Events = {
1150
+ (Vt = mt ||= {}).Events = {
1218
1151
  XmlDecl: "xmldecl",
1219
1152
  Text: "text",
1220
1153
  ProcessingInstruction: "processinginstruction",
@@ -1228,9 +1161,9 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1228
1161
  Error: "error",
1229
1162
  End: "end",
1230
1163
  Ready: "ready"
1231
- }, bt.parseStream = async (e, t, n) => {
1164
+ }, Vt.parseStream = async (e, t, n) => {
1232
1165
  if (n?.lean) return (async (e, t) => {
1233
- let n, r = new jt();
1166
+ let n, r = new Qt();
1234
1167
  t.elementScanners && r.setElementScanners(t.elementScanners), t.onOpenTag && r.on("opentag", t.onOpenTag), t.onCloseTag && r.on("closetag", t.onCloseTag), t.onText && r.on("text", t.onText), t.onError && r.on("error", t.onError);
1235
1168
  let i = t.onEnd;
1236
1169
  for (i && r.on("end", () => {
@@ -1242,13 +1175,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1242
1175
  }
1243
1176
  return r.close(), n;
1244
1177
  })(e, t);
1245
- let r, i = new wt({
1178
+ let r, i = new Gt({
1246
1179
  position: !1,
1247
1180
  ...n
1248
1181
  });
1249
- t.onOpenTagStart && i.on(Je.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && i.on(Je.Events.OpenTag, t.onOpenTag), t.onCloseTag && i.on(Je.Events.CloseTag, t.onCloseTag), t.onAttribute && i.on(Je.Events.Attribute, t.onAttribute), t.onText && i.on(Je.Events.Text, t.onText), t.onError && i.on(Je.Events.Error, t.onError);
1182
+ t.onOpenTagStart && i.on(mt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && i.on(mt.Events.OpenTag, t.onOpenTag), t.onCloseTag && i.on(mt.Events.CloseTag, t.onCloseTag), t.onAttribute && i.on(mt.Events.Attribute, t.onAttribute), t.onText && i.on(mt.Events.Text, t.onText), t.onError && i.on(mt.Events.Error, t.onError);
1250
1183
  let a = t.onEnd;
1251
- for (a && i.on(Je.Events.End, () => {
1184
+ for (a && i.on(mt.Events.End, () => {
1252
1185
  r = a();
1253
1186
  });;) {
1254
1187
  let { value: t, done: n } = await e.read();
@@ -1257,13 +1190,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1257
1190
  }
1258
1191
  return i.close(), r;
1259
1192
  };
1260
- var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e && e !== "0" && e !== "off" && e !== "false" && null, Z = (e) => {
1193
+ var Z = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e && e !== "0" && e !== "off" && e !== "false" && null, Q = (e) => {
1261
1194
  let t = parseInt(e);
1262
1195
  return isNaN(t) ? null : t;
1263
- }, Q = (e) => {
1196
+ }, $t = (e) => {
1264
1197
  let t = parseFloat(e);
1265
1198
  return isNaN(t) ? null : t;
1266
- }, $ = null, Mt = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Nt = (e) => Mt(e).replace(/"/g, "&quot;"), Pt = class {
1199
+ }, $ = null, en = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), tn = (e) => en(e).replace(/"/g, "&quot;"), nn = class {
1267
1200
  constructor() {
1268
1201
  this._registeredVisitors = /* @__PURE__ */ new Map();
1269
1202
  }
@@ -1325,7 +1258,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1325
1258
  let t = e.attributes ?? {}, n = `<${e.name}`;
1326
1259
  for (let e in t) {
1327
1260
  let r = t[e];
1328
- n += ` ${e}="${Nt(typeof r == "string" ? r : r?.value ?? "")}"`;
1261
+ n += ` ${e}="${tn(typeof r == "string" ? r : r?.value ?? "")}"`;
1329
1262
  }
1330
1263
  return n + ">";
1331
1264
  })(e)), o = {
@@ -1374,12 +1307,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1374
1307
  s = o?.local ?? null, c = o?.tag ?? null, l = o?.visitor ?? null, p = !o?.destination;
1375
1308
  },
1376
1309
  onText: (e) => {
1377
- m ? m.push(Mt(e)) : l?.text?.(e, v);
1310
+ m ? m.push(en(e)) : l?.text?.(e, v);
1378
1311
  },
1379
1312
  onEnd: t
1380
1313
  };
1381
1314
  }
1382
- }, Ft = `IFERROR(${ae}(`, It = Ft.toUpperCase(), Lt = x.toUpperCase(), Rt = { kind: "none" }, zt = { kind: "spilled" }, Bt = (e, t) => {
1315
+ }, rn = `IFERROR(${oe}(`, an = rn.toUpperCase(), on = ae.toUpperCase(), sn = { kind: "none" }, cn = { kind: "spilled" }, ln = (e, t) => {
1383
1316
  if (e.charCodeAt(t) !== 34) return null;
1384
1317
  let n = "", r = t + 1;
1385
1318
  for (; r < e.length;) if (e.charCodeAt(r) === 34) {
@@ -1390,12 +1323,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1390
1323
  n += "\"", r += 2;
1391
1324
  } else n += e[r], r++;
1392
1325
  return null;
1393
- }, Vt = (e) => {
1326
+ }, un = (e) => {
1394
1327
  let t = [], n = 0;
1395
1328
  for (; n < e.length;) {
1396
1329
  let r = e.charCodeAt(n);
1397
1330
  if (r === 34) {
1398
- let t = Bt(e, n);
1331
+ let t = ln(e, n);
1399
1332
  if (t === null) break;
1400
1333
  n = t.end;
1401
1334
  continue;
@@ -1413,7 +1346,191 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1413
1346
  e.charCodeAt(i) === 40 && t.push(e.slice(n, i).toUpperCase().replace(/^_XLFN\./, "").replace(/^_XLWS\./, "")), n = i;
1414
1347
  }
1415
1348
  return t;
1416
- }, Ht = (e) => {
1349
+ }, dn = /^\s*TABLE\s*\(([^()]*)\)\s*$/i, fn = /^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/, pn = (e) => {
1350
+ let t = fn.exec(e);
1351
+ if (!t) return null;
1352
+ let n = m.fastStringToCol(t[2]), r = parseInt(t[4], 10) - 1;
1353
+ return n < 0 || r < 0 ? null : {
1354
+ row: r,
1355
+ col: n,
1356
+ colAbsolute: t[1] === "$",
1357
+ rowAbsolute: t[3] === "$"
1358
+ };
1359
+ }, mn = (e) => m.cellToString({
1360
+ rowIndex: e.row,
1361
+ colIndex: e.col
1362
+ }), hn = (e, t) => {
1363
+ let n = dn.exec(e);
1364
+ if (!n) return null;
1365
+ let r = n[1].split(",");
1366
+ if (r.length !== 3 && r.length !== 5) return null;
1367
+ let i = [];
1368
+ for (let e = 0; e < r.length; e++) {
1369
+ let t = pn(r[e]);
1370
+ if (!t) return null;
1371
+ i.push(t);
1372
+ }
1373
+ let a = t.rowStart, o = t.colStart, s = (e) => e.colAbsolute && !e.rowAbsolute && e.col === o - 1 && e.row === a, c = (e) => e.rowAbsolute && !e.colAbsolute && e.row === a - 1 && e.col === o, l = m.rangeToString(t), u = i[0];
1374
+ if (i.length === 3) {
1375
+ let [, e, t] = i;
1376
+ return s(t) && c(u) ? {
1377
+ ref: l,
1378
+ columnInput: mn(e)
1379
+ } : c(t) && s(u) ? {
1380
+ ref: l,
1381
+ rowInput: mn(e)
1382
+ } : null;
1383
+ }
1384
+ if (!u.rowAbsolute || !u.colAbsolute || u.row !== a - 1 || u.col !== o - 1) return null;
1385
+ let [, d, f, p, h] = i;
1386
+ return s(f) && c(h) ? {
1387
+ ref: l,
1388
+ rowInput: mn(p),
1389
+ columnInput: mn(d)
1390
+ } : c(f) && s(h) ? {
1391
+ ref: l,
1392
+ rowInput: mn(d),
1393
+ columnInput: mn(p)
1394
+ } : null;
1395
+ }, gn = /^(?:(\d{4})-(\d{2})-(\d{2}))?T?(?:(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/, _n = /^PT(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?$/, vn = (e, t, n) => {
1396
+ let r = Math.floor((14 - t) / 12), i = e + 4800 - r, a = t + 12 * r - 3;
1397
+ return n + Math.floor((153 * a + 2) / 5) + 365 * i + Math.floor(i / 4) - Math.floor(i / 100) + Math.floor(i / 400) - 32045;
1398
+ }, yn = vn(1899, 12, 30), bn = (e) => {
1399
+ let t = e.indexOf(":");
1400
+ return t === -1 ? e : e.slice(t + 1);
1401
+ }, xn = class {
1402
+ constructor() {
1403
+ this._runs = null, this._text = "", this._font = null, this._inRun = !1, this._inRPr = !1;
1404
+ }
1405
+ reset() {
1406
+ this._runs = null, this._inRun = !1, this._inRPr = !1;
1407
+ }
1408
+ onOpenTag(e, t) {
1409
+ e === "r" ? (this._inRun = !0, this._text = "", this._font = null, this._runs ??= []) : e === "rPr" ? this._inRun && (this._inRPr = !0) : this._inRPr && function(e, t, n) {
1410
+ switch (e) {
1411
+ case "b":
1412
+ n.weight = wn(t) ? 700 : 400;
1413
+ break;
1414
+ case "i":
1415
+ n.style = wn(t) ? s.Style.Italic : s.Style.Normal;
1416
+ break;
1417
+ case "strike":
1418
+ n.strike = de(wn(t));
1419
+ break;
1420
+ case "outline":
1421
+ n.outline = wn(t);
1422
+ break;
1423
+ case "shadow":
1424
+ n.shadow = wn(t);
1425
+ break;
1426
+ case "condense":
1427
+ case "extend": {
1428
+ let r = be(e, wn(t));
1429
+ r !== void 0 && (n.letterSpacing = r);
1430
+ break;
1431
+ }
1432
+ case "u":
1433
+ n.underline = C(t.val);
1434
+ break;
1435
+ case "vertAlign": {
1436
+ let e = N(t.val);
1437
+ e !== void 0 && (n.baseline = e);
1438
+ break;
1439
+ }
1440
+ case "sz": {
1441
+ let e = parseFloat(t.val ?? "");
1442
+ isNaN(e) || (n.size = e);
1443
+ break;
1444
+ }
1445
+ case "rFont": {
1446
+ let e = t.val;
1447
+ e && (n.family = e);
1448
+ break;
1449
+ }
1450
+ case "family": {
1451
+ let e = Cn[t.val ?? ""];
1452
+ e && (n.fallbacks = [e]);
1453
+ break;
1454
+ }
1455
+ case "charset": {
1456
+ let e = parseInt(t.val ?? "", 10);
1457
+ isNaN(e) || (n.charset = e);
1458
+ break;
1459
+ }
1460
+ case "scheme":
1461
+ k(n, t.val);
1462
+ break;
1463
+ case "color": {
1464
+ let e = t.rgb;
1465
+ if (e && t.theme === void 0) {
1466
+ n.color = "#" + (e.length === 8 ? e.substring(2) : e).toUpperCase();
1467
+ break;
1468
+ }
1469
+ let r = L((e) => t[e]);
1470
+ r && (n.color = r);
1471
+ break;
1472
+ }
1473
+ }
1474
+ }(e, t, this._font ??= {});
1475
+ }
1476
+ onText(e) {
1477
+ this._inRun && (this._text += e);
1478
+ }
1479
+ onCloseTag(e) {
1480
+ if (e === "rPr") this._inRPr = !1, this._font ??= {};
1481
+ else if (e === "r" && this._inRun) {
1482
+ let e = E(this._text), t = this._font;
1483
+ this._runs.push(t ? {
1484
+ text: e,
1485
+ font: t
1486
+ } : { text: e }), this._inRun = !1;
1487
+ }
1488
+ }
1489
+ take() {
1490
+ let e = this._runs;
1491
+ if (this.reset(), !e) return null;
1492
+ for (let t = 0; t < e.length; t++) if (e[t].font) return e;
1493
+ return null;
1494
+ }
1495
+ };
1496
+ function Sn(e, t) {
1497
+ let n = {
1498
+ family: "Calibri",
1499
+ size: 11,
1500
+ ...t,
1501
+ weight: 400,
1502
+ style: s.Style.Normal,
1503
+ underline: s.UnderlineStyle.None,
1504
+ strike: s.StrikeStyle.None,
1505
+ baseline: 0
1506
+ }, r = Array(e.length);
1507
+ for (let t = 0; t < e.length; t++) {
1508
+ let i = e[t];
1509
+ if (!i.font) {
1510
+ r[t] = i;
1511
+ continue;
1512
+ }
1513
+ let a = {
1514
+ ...n,
1515
+ ...i.font
1516
+ };
1517
+ r[t] = {
1518
+ text: i.text,
1519
+ font: a
1520
+ };
1521
+ }
1522
+ return r;
1523
+ }
1524
+ var Cn = {
1525
+ 1: "serif",
1526
+ 2: "sans-serif",
1527
+ 3: "monospace",
1528
+ 4: "cursive",
1529
+ 5: "fantasy"
1530
+ }, wn = (e) => {
1531
+ let t = e.val;
1532
+ return t === void 0 || t === "1" || t === "true";
1533
+ }, Tn = (e) => {
1417
1534
  let t = (t) => {
1418
1535
  if (e) return RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([^<]*)<`).exec(e)?.[1];
1419
1536
  }, n = (e) => {
@@ -1423,11 +1540,14 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1423
1540
  return {
1424
1541
  c: n(t("col")),
1425
1542
  r: n(t("row")),
1426
- x: P(t("colOff") ?? "0") ?? 0,
1427
- y: P(t("rowOff") ?? "0") ?? 0
1543
+ x: G(t("colOff") ?? "0") ?? 0,
1544
+ y: G(t("rowOff") ?? "0") ?? 0
1428
1545
  };
1429
- }, Ut = "formulaDialect", Wt = (e, t, n, r, i, a, o, s) => {
1430
- let c = new Pt(), u = s?.get("parseInlineDxf"), d = s?.get(Ut), f = (e) => d && e ? d.readDetached(e) : e, g = new p.TransposedBuilder(), _ = null;
1546
+ }, En = "formulaDialect", Dn = "date1904", On = "richStrings", kn = "defaultFont", An = (e, t, n, r, i, a, o, s) => {
1547
+ let c = new nn(), l = (e) => {
1548
+ let t = e.getAttribute("dxfId", Q);
1549
+ return t === null ? void 0 : r?.get(t) || (a?.(`A color filter or sort names a format that does not exist (dxfId '${t}').`), {});
1550
+ }, d = !1, p = s?.get("parseInlineDxf"), _ = s?.get(En), y = (e) => _ && e ? _.readDetached(e) : e, b = new g.TransposedBuilder(), x = null, te = "topLeft";
1431
1551
  c.registerVisitor({
1432
1552
  from: "autoFilter",
1433
1553
  to: "autoTable",
@@ -1453,7 +1573,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1453
1573
  let r = {
1454
1574
  r: n,
1455
1575
  conditionals: t.conditionals
1456
- }, i = e.getAttribute("pivot", X);
1576
+ }, i = e.getAttribute("pivot", Z);
1457
1577
  i !== null && (r.pivot = i), e.setSource(r);
1458
1578
  }
1459
1579
  }), c.registerVisitor({
@@ -1467,24 +1587,24 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1467
1587
  r: t.r,
1468
1588
  v: null,
1469
1589
  rule: n
1470
- }), e.copyToObject(n, "type", $), e.copyToObject(n, "priority", Z), e.copyToObject(n, "stopIfTrue", X);
1471
- let i = e.getAttribute("dxfId", Z);
1590
+ }), e.copyToObject(n, "type", $), e.copyToObject(n, "priority", Q), e.copyToObject(n, "stopIfTrue", Z);
1591
+ let i = e.getAttribute("dxfId", Q);
1472
1592
  if (i !== null) {
1473
1593
  let t = r?.get(i);
1474
1594
  t ||= (a?.(`Unable to load conditional color. Invalid dxfI: '${i}' at '${e.getPath()}'.`), {}), n.style = t;
1475
1595
  }
1476
- e.copyToObject(n, "aboveAverage", X), e.copyToObject(n, "equalAverage", X), e.copyToObject(n, "stdDev", Z), e.copyToObject(n, "bottom", X), e.copyToObject(n, "percent", X), e.copyToObject(n, "rank", Z), e.copyToObject(n, "operator", $), e.copyToObject(n, "text", $), e.copyToObject(n, "timePeriod", $);
1596
+ e.copyToObject(n, "aboveAverage", Z), e.copyToObject(n, "equalAverage", Z), e.copyToObject(n, "stdDev", Q), e.copyToObject(n, "bottom", Z), e.copyToObject(n, "percent", Z), e.copyToObject(n, "rank", Q), e.copyToObject(n, "operator", $), e.copyToObject(n, "text", $), e.copyToObject(n, "timePeriod", $);
1477
1597
  },
1478
1598
  closeTag: (e) => {
1479
1599
  let t = e.getParent();
1480
1600
  if (!t?.r) return;
1481
1601
  let n = t.conditionals[t.conditionals.length - 1], r = n?.rule;
1482
1602
  if (!r) return;
1483
- let i = {}, o = le(r, a);
1603
+ let i = {}, o = ge(r, a);
1484
1604
  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;
1485
1605
  }
1486
1606
  });
1487
- let v = (e) => {
1607
+ let C = (e) => {
1488
1608
  let t = e.conditions ?? [], n = [];
1489
1609
  for (let e = 0; e < t.length; e++) {
1490
1610
  let r = t[e], i = {};
@@ -1497,10 +1617,10 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1497
1617
  to: {},
1498
1618
  openTag: (e) => {},
1499
1619
  closeTag: (e) => {
1500
- let t = e.getSource(), n = t.colors ?? [], r = v(t);
1620
+ let t = e.getSource(), n = t.colors ?? [], r = C(t);
1501
1621
  for (let e = 0; e < r.length; e++) r[e].color = n[e];
1502
1622
  e.getParent().scale = {
1503
- type: h.ScaleType.ColorScale,
1623
+ type: f.ScaleType.ColorScale,
1504
1624
  stops: r
1505
1625
  };
1506
1626
  }
@@ -1508,12 +1628,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1508
1628
  from: "dataBar",
1509
1629
  to: {},
1510
1630
  openTag: (e) => {
1511
- e.copyTo("maxLength", Z), e.copyTo("minLength", Z), e.copyTo("showValue", X);
1631
+ e.copyTo("maxLength", Q), e.copyTo("minLength", Q), e.copyTo("showValue", Z);
1512
1632
  },
1513
1633
  closeTag: (e) => {
1514
1634
  let t = e.getSource(), n = {
1515
- type: h.ScaleType.DataBar,
1516
- stops: v(t)
1635
+ type: f.ScaleType.DataBar,
1636
+ stops: C(t)
1517
1637
  }, r = t.colors?.[0];
1518
1638
  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;
1519
1639
  }
@@ -1521,12 +1641,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1521
1641
  from: "iconSet",
1522
1642
  to: {},
1523
1643
  openTag: (e) => {
1524
- e.copyTo("iconSet", $), e.copyTo("reverse", X), e.copyTo("showValue", X);
1644
+ e.copyTo("iconSet", $), e.copyTo("reverse", Z), e.copyTo("showValue", Z);
1525
1645
  },
1526
1646
  closeTag: (e) => {
1527
1647
  let t = e.getSource(), n = {
1528
- type: h.ScaleType.IconSet,
1529
- stops: v(t)
1648
+ type: f.ScaleType.IconSet,
1649
+ stops: C(t)
1530
1650
  };
1531
1651
  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;
1532
1652
  }
@@ -1535,7 +1655,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1535
1655
  to: {},
1536
1656
  text: (e, t) => {
1537
1657
  let n = t.getParent(), r = n.formulas;
1538
- r || (r = [], n.formulas = r), r.push(f(e));
1658
+ r || (r = [], n.formulas = r), r.push(y(e));
1539
1659
  }
1540
1660
  }), c.registerVisitor({
1541
1661
  from: "cfvo",
@@ -1544,11 +1664,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1544
1664
  let t = e.getParent();
1545
1665
  t.conditions ||= [];
1546
1666
  let n = e.getSource();
1547
- if (t.conditions.push(n), e.copyTo("type", $), n.type === h.ColorStopType.Formula) {
1667
+ if (t.conditions.push(n), e.copyTo("type", $), n.type === f.ColorStopType.Formula) {
1548
1668
  let t = e.getAttribute("val");
1549
- t != null && (n.value = f(String(t)));
1550
- } else e.copyTo("value", Q, "val");
1551
- !1 === e.getAttribute("gte", X) && (n.exclusive = !0);
1669
+ t != null && (n.value = y(String(t)));
1670
+ } else e.copyTo("value", $t, "val");
1671
+ !1 === e.getAttribute("gte", Z) && (n.exclusive = !0);
1552
1672
  }
1553
1673
  }), c.registerVisitor({
1554
1674
  from: "color",
@@ -1556,7 +1676,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1556
1676
  openTag: (e) => {
1557
1677
  let t = e.getParent();
1558
1678
  t.colors ||= [];
1559
- let n = V((t) => e.getAttribute(t));
1679
+ let n = L((t) => e.getAttribute(t));
1560
1680
  t.colors.push(n);
1561
1681
  }
1562
1682
  }), c.registerVisitor({
@@ -1568,11 +1688,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1568
1688
  let i = t.filter;
1569
1689
  i || (i = { conditions: [] }, t.filter = i);
1570
1690
  let a = i.conditions;
1571
- if (a || (a = [], i.conditions = a), a.push(r), e.getAttribute("hiddenButton", X) && t) {
1691
+ if (a || (a = [], i.conditions = a), a.push(r), e.getAttribute("hiddenButton", Z) && t) {
1572
1692
  let e = t.hiddenButtons;
1573
1693
  e || (e = [], t.hiddenButtons = e), e.push(n);
1574
1694
  }
1575
- if (e.getAttribute("showButton", X) && t) {
1695
+ if (e.getAttribute("showButton", Z) && t) {
1576
1696
  let e = t.showButtons;
1577
1697
  e || (e = [], t.showButtons = e), e.push(n);
1578
1698
  }
@@ -1582,67 +1702,69 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1582
1702
  from: "colorFilter",
1583
1703
  openTag: (e) => {
1584
1704
  let t = e.getParent(), n = {};
1585
- t.operator = l.BuiltInOperatorNames.Color, t.param = n, e.copyToObject(n, "cellColor", X), e.copyToObject(n, "styleId", Z, "dxfId");
1705
+ t.operator = h.BuiltInOperatorNames.Color, t.param = n, e.copyToObject(n, "cellColor", Z);
1706
+ let r = l(e);
1707
+ r && (n.style = r);
1586
1708
  }
1587
1709
  }), c.registerVisitor({
1588
1710
  from: "iconFilter",
1589
1711
  openTag: (e) => {
1590
1712
  let t = e.getParent(), n = {};
1591
- t.operator = l.BuiltInOperatorNames.Icon, t.param = n, e.copyToObject(n, "iconId", Z), e.copyToObject(n, "iconSet", $);
1713
+ t.operator = h.BuiltInOperatorNames.Icon, t.param = n, e.copyToObject(n, "iconId", Q), e.copyToObject(n, "iconSet", $);
1592
1714
  }
1593
1715
  }), c.registerVisitor({
1594
1716
  from: "top10",
1595
1717
  openTag: (e) => {
1596
1718
  let t = e.getParent(), n = {};
1597
- t.operator = l.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");
1719
+ t.operator = h.BuiltInOperatorNames.TopN, t.param = n, e.copyToObject(n, "filterVal", $t), e.copyToObject(n, "percent", Z), e.copyToObject(n, "top", Z), e.copyToObject(n, "limit", $t, "val");
1598
1720
  }
1599
1721
  }), c.registerVisitor({
1600
1722
  from: "dynamicFilter",
1601
1723
  openTag: (e) => {
1602
- let t = e.getParent(), n = me(e.getAttribute("type"));
1724
+ let t = e.getParent(), n = ce(e.getAttribute("type"));
1603
1725
  t.operator = n.operator, t.param = n.param;
1604
1726
  }
1605
1727
  });
1606
- let y = {
1728
+ let re = {
1607
1729
  from: "filters",
1608
1730
  to: {},
1609
1731
  openTag: (e) => {
1610
1732
  let t = e.getParent(), n = {};
1611
- return t.selector = l.BuiltInSelectorNames.Display, t.operator = l.BuiltInOperatorNames.InSet, t.param = n, e.copyToObject(n, "blank", X), e.copyToObject(n, "calendarType", $), n;
1733
+ return t.selector = h.BuiltInSelectorNames.Display, t.operator = h.BuiltInOperatorNames.InSet, t.param = n, e.copyToObject(n, "blank", Z), e.copyToObject(n, "calendarType", $), n;
1612
1734
  }
1613
1735
  };
1614
- c.registerVisitor(y);
1615
- let b = {
1736
+ c.registerVisitor(re);
1737
+ let ie = {
1616
1738
  from: "filter",
1617
1739
  openTag: (e) => {
1618
1740
  let t = e.getParent(), n = t.items;
1619
1741
  n || (n = [], t.items = n), n.push(e.getAttribute("val", $));
1620
1742
  }
1621
1743
  };
1622
- c.registerVisitor(b);
1623
- let ee = {
1744
+ c.registerVisitor(ie);
1745
+ let ae = {
1624
1746
  from: "dateGroupItem",
1625
1747
  to: {},
1626
1748
  openTag: (e) => {
1627
1749
  let t = e.getParent(), n = t.dateGroups;
1628
- 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);
1750
+ n || (n = [], t.dateGroups = n), n.push(e.getSource()), e.copyTo("group", $, "dateTimeGrouping"), e.copyTo("day", Q), e.copyTo("hour", Q), e.copyTo("minute", Q), e.copyTo("month", Q), e.copyTo("second", Q), e.copyTo("year", Q);
1629
1751
  }
1630
1752
  };
1631
- c.registerVisitor(ee);
1632
- let x = /* @__PURE__ */ new Map();
1633
- x.set("filterColumn", {
1753
+ c.registerVisitor(ae);
1754
+ let oe = /* @__PURE__ */ new Map();
1755
+ oe.set("filterColumn", {
1634
1756
  from: "filterColumn",
1635
1757
  transparent: !0
1636
- }), x.set("filters", y), x.set("filter", b), x.set("dateGroupItem", ee), c.registerVisitor({
1758
+ }), oe.set("filters", re), oe.set("filter", ie), oe.set("dateGroupItem", ae), c.registerVisitor({
1637
1759
  from: "customFilters",
1638
1760
  openTag: (e) => {
1639
1761
  let t = e.getParent(), n = e.getAttribute("and"), r = n === "and" || n === "1", i = [];
1640
- return t.operator = r ? l.BuiltInOperatorNames.And : l.BuiltInOperatorNames.Or, t.param = i, e.setSource(t), i;
1762
+ return t.operator = r ? h.BuiltInOperatorNames.And : h.BuiltInOperatorNames.Or, t.param = i, e.setSource(t), i;
1641
1763
  },
1642
1764
  closeTag: (e) => {
1643
1765
  let t = e.getSource(), n = t?.param;
1644
1766
  if (!t || !n) return;
1645
- let r = n.length === 1 ? n[0] : j(t);
1767
+ let r = n.length === 1 ? n[0] : R(t);
1646
1768
  r !== t && (t.operator = r.operator, t.param = r.param);
1647
1769
  }
1648
1770
  }), c.registerVisitor({
@@ -1650,18 +1772,31 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1650
1772
  openTag: (e) => {
1651
1773
  let t, n = e.getParent();
1652
1774
  Array.isArray(n) ? (t = {}, n.push(t)) : t = n;
1653
- let r = ie({
1775
+ let r = D({
1654
1776
  operator: e.getAttribute("operator"),
1655
1777
  val: e.getAttribute("val")
1656
1778
  }, (t) => e.warn(t));
1657
1779
  r && (t.operator = r.operator, t.param = r.param);
1658
1780
  }
1659
- }), c.registerVisitor({
1781
+ });
1782
+ let ue = {}, de = null;
1783
+ c.registerVisitor({
1660
1784
  from: "sortState",
1661
1785
  to: {},
1662
1786
  openTag: (e) => {
1663
1787
  let t = e.getParent(), n = t.v;
1664
- n && (n.sort = {}, e.setSource(t));
1788
+ if (!n) return;
1789
+ let r = {};
1790
+ ue = {};
1791
+ let i = e.getAttribute("caseSensitive", Z);
1792
+ i != null && (ue.collatorOptions = i ? v.CaseSensitiveOptions : v.CaseInsensitiveOptions);
1793
+ let a = e.getAttribute("sortMethod");
1794
+ a !== "stroke" && a !== "pinYin" || (ue.collatorOptions = {
1795
+ ...ue.collatorOptions,
1796
+ collation: a === "stroke" ? "stroke" : "pinyin"
1797
+ }), e.getAttribute("columnSort", Z) && (r.axis = u.Axis.Column);
1798
+ let o = e.getAttribute("ref"), s = t.r;
1799
+ de = o && s ? m.fastStringToRange(o) : null, de && (r.extent = { range: I(s, de) }), n.sort = r, e.setSource(t);
1665
1800
  }
1666
1801
  }), c.registerVisitor({
1667
1802
  from: "sortCondition",
@@ -1673,33 +1808,42 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1673
1808
  if (!r) return;
1674
1809
  let i = r.sorts;
1675
1810
  i || (i = [], r.sorts = i);
1676
- let a = e.getAttribute("ref"), o = 0;
1811
+ let a = e.getAttribute("ref"), o = 0, s = null;
1677
1812
  if (a) {
1678
- let e = m.fastStringToRange(a, qt).colStart, n = t.r, r = n.colStart;
1679
- o = n ? e - r : e;
1813
+ let e = m.fastStringToRange(a, Pn), n = e.colStart, r = t.r, i = r.colStart;
1814
+ o = r ? n - i : n, r && de && (s = ne(r, de, e));
1680
1815
  }
1681
- let s = {};
1682
- e.copyToObject(s, "sortOn", $, "sortBy"), e.copyToObject(s, "dxfId", $, "sortBy"), e.copyToObject(s, "iconSet", $), e.copyToObject(s, "customList", $), s.reverse = e.getAttribute("descending", X) ?? !1;
1683
- let c = {
1816
+ r.extent && (r.extent.sorts ??= []).push(s);
1817
+ let c = { ...ue }, u = ve(e.getAttribute("sortBy"));
1818
+ u && (c.sortOn = u);
1819
+ let d = l(e);
1820
+ d && (c.style = d), e.copyToObject(c, "iconSet", $), e.copyToObject(c, "customList", $), c.reverse = e.getAttribute("descending", Z) ?? !1;
1821
+ let f = {
1684
1822
  index: o,
1685
- criteria: s
1823
+ criteria: c
1686
1824
  };
1687
- i.push(c);
1825
+ i.push(f);
1688
1826
  }
1689
1827
  });
1690
- let te = (e) => {
1691
- _ = e.getSource(), e.copyTo("topLeft", $, "topLeftCell");
1692
- let t = N(e.getAttribute("defaultGridColor")), n = e.getAttribute("colorId");
1693
- 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), e.copyTo("showOutlineSymbols", X);
1828
+ let fe = (e) => {
1829
+ x = e.getSource(), te = "topLeft", e.copyTo("topLeft", $, "topLeftCell");
1830
+ let t = We(e.getAttribute("defaultGridColor")), n = e.getAttribute("colorId");
1831
+ n === null || t || (e.getSource().gridLineColor = "index" + parseFloat(n)), e.copyTo("showZeros", Z), e.copyTo("showFormulas", Z), e.copyTo("zoomScale", Q), e.copyTo("viewMode", $, "view");
1832
+ let r = {};
1833
+ for (let [t, n] of le) {
1834
+ let i = e.getAttribute(n, Q);
1835
+ i && (r[t] = Math.min(400, Math.max(10, i)));
1836
+ }
1837
+ Object.keys(r).length > 0 && (e.getSource().zoomScales = r), e.copyTo("showRuler", Z), e.copyTo("showWhitespace", Z, "showWhiteSpace"), e.copyTo("windowProtection", Z), e.copyTo("showRowHeaders", Z, "showRowColHeaders"), e.copyTo("showColumnHeaders", Z, "showRowColHeaders"), e.copyTo("showRowGridlines", Z, "showGridLines"), e.copyTo("showColumnGridlines", Z, "showGridLines"), e.copyTo("rightToLeft", Z), e.copyTo("showOutlineSymbols", Z);
1694
1838
  };
1695
1839
  c.registerVisitor({
1696
1840
  from: "sheetView",
1697
1841
  to: "view",
1698
1842
  openTag: (e) => {
1699
- te(e);
1843
+ fe(e);
1700
1844
  },
1701
1845
  closeTag: () => {
1702
- _ = null;
1846
+ x = null;
1703
1847
  }
1704
1848
  }), c.registerVisitor({
1705
1849
  from: "customSheetViews",
@@ -1711,35 +1855,48 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1711
1855
  from: "customSheetView",
1712
1856
  to: [],
1713
1857
  openTag: (e) => {
1714
- te(e);
1858
+ pe = !0, fe(e);
1715
1859
  },
1716
1860
  closeTag: () => {
1717
- _ = null;
1861
+ pe = !1, x = null;
1718
1862
  }
1719
1863
  }), c.registerVisitor({
1720
1864
  from: "selection",
1721
- to: "selection",
1865
+ to: null,
1722
1866
  openTag: (e) => {
1723
- if (!_) return;
1724
- e.copyTo("cell", $, "activeCell"), e.copyTo("rangeIndex", Z, "activeCellId");
1725
- let t = e.getAttribute("activeCell"), n = e.getAttribute("sqref");
1726
- n && n !== t && (e.getSource().ranges = n.trim().split(/\s+/));
1867
+ if (!x) return;
1868
+ let t = e.getAttribute("activeCell")?.replace(/\$/g, ""), n = e.getAttribute("sqref")?.replace(/\$/g, ""), r = e.getAttribute("pane") ?? "topLeft";
1869
+ if (r !== te) {
1870
+ let e = x.freezePanes;
1871
+ if (e && t) {
1872
+ let i = { activeCell: t };
1873
+ n && n !== t && (i.sqref = n), (e.paneSelections ??= {})[r] = i;
1874
+ }
1875
+ return;
1876
+ }
1877
+ let i = {};
1878
+ t && (i.cell = t);
1879
+ let a = e.getAttribute("activeCellId", Q);
1880
+ a !== null && (i.rangeIndex = a), n && n !== t && (i.ranges = n.trim().split(/\s+/)), x.selection = i;
1727
1881
  }
1728
1882
  }), c.registerVisitor({
1729
1883
  from: "pane",
1730
1884
  to: null,
1731
1885
  openTag: (e) => {
1732
- if (_ && e.getAttribute("state") === "frozen") {
1886
+ if (!x) return;
1887
+ te = e.getAttribute("activePane") ?? "topLeft";
1888
+ let t = e.getAttribute("state");
1889
+ if (t === "frozen" || t === "frozenSplit") {
1733
1890
  let t = {};
1734
- _.freezePanes = t, e.copyToObject(t, "topLeft", $, "topLeftCell");
1735
- let n = (_.topLeft ? m.fastStringToCell(_.topLeft) : void 0) ?? {
1891
+ x.freezePanes = t, e.copyToObject(t, "topLeft", $, "topLeftCell");
1892
+ let n = (x.topLeft ? m.fastStringToCell(x.topLeft) : void 0) ?? {
1736
1893
  colIndex: 0,
1737
1894
  rowIndex: 0
1738
1895
  }, r = {
1739
1896
  colIndex: 0,
1740
1897
  rowIndex: 0
1741
1898
  };
1742
- e.copyToObject(r, "colIndex", Z, "xSplit"), e.copyToObject(r, "rowIndex", Z, "ySplit");
1899
+ e.copyToObject(r, "colIndex", Q, "xSplit"), e.copyToObject(r, "rowIndex", Q, "ySplit");
1743
1900
  let i = {
1744
1901
  colIndex: n.colIndex + r.colIndex,
1745
1902
  rowIndex: n.rowIndex + r.rowIndex
@@ -1752,19 +1909,27 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1752
1909
  transparent: !0,
1753
1910
  openTag: (t) => {
1754
1911
  let n = t.getAttribute("codeName");
1755
- n && (e.codeName = n), !1 === t.getAttribute("enableFormatConditionsCalculation", X) && (e.conditionalFormatCalculation = !1);
1912
+ n && (e.codeName = n), !1 === t.getAttribute("enableFormatConditionsCalculation", Z) && (e.conditionalFormatCalculation = !1), !0 === t.getAttribute("transitionEvaluation", Z) && (e.transitionFormulaEvaluation = !0), !0 === t.getAttribute("transitionEntry", Z) && (e.transitionFormulaEntry = !0), !1 === t.getAttribute("published", Z) && (e.excludeFromPublishing = !0);
1913
+ let r = {};
1914
+ !0 === t.getAttribute("syncHorizontal", Z) && (r.horizontal = !0), !0 === t.getAttribute("syncVertical", Z) && (r.vertical = !0);
1915
+ let i = t.getAttribute("syncRef");
1916
+ i && (r.anchor = i), Object.keys(r).length > 0 && (e.syncScroll = r);
1756
1917
  }
1757
1918
  }), c.registerVisitor({
1758
1919
  from: "tabColor",
1759
1920
  to: null,
1760
1921
  openTag: (t) => {
1761
- let n = V((e) => t.getAttribute(e));
1922
+ let n = L((e) => t.getAttribute(e));
1762
1923
  n && (e.tabColor = n);
1763
1924
  }
1764
- }), c.registerVisitor({
1925
+ });
1926
+ let pe = !1, O = () => e.pageLayout ??= {};
1927
+ c.registerVisitor({
1765
1928
  from: "pageSetUpPr",
1766
- to: "pageSetUpPr",
1767
- openTag: (e) => {}
1929
+ to: null,
1930
+ openTag: (e) => {
1931
+ !0 === e.getAttribute("fitToPage", Z) && (O().fitToPage = !0), !1 === e.getAttribute("autoPageBreaks", Z) && (O().hideAutoPageBreaks = !0);
1932
+ }
1768
1933
  }), c.registerVisitor({
1769
1934
  from: "outlinePr",
1770
1935
  to: null,
@@ -1780,26 +1945,114 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1780
1945
  }
1781
1946
  }), c.registerVisitor({
1782
1947
  from: "pageMargins",
1783
- to: "pageMargins",
1948
+ to: null,
1784
1949
  openTag: (e) => {
1785
- 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);
1950
+ if (pe) return;
1951
+ let t = (t, n) => e.getAttribute(t, $t) ?? n, n = {
1952
+ left: t("left", .7),
1953
+ right: t("right", .7),
1954
+ top: t("top", .75),
1955
+ bottom: t("bottom", .75),
1956
+ header: t("header", .3),
1957
+ footer: t("footer", .3)
1958
+ };
1959
+ n.left === .7 && n.right === .7 && n.top === .75 && n.bottom === .75 && n.header === .3 && n.footer === .3 || (O().margins = n);
1786
1960
  }
1787
1961
  }), c.registerVisitor({
1788
1962
  from: "pageSetup",
1789
- to: "pageSetup",
1963
+ to: null,
1790
1964
  openTag: (e) => {
1791
- 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);
1965
+ if (pe) return;
1966
+ let n = O(), r = (t) => e.getAttribute(t, Q) ?? void 0, i = (t) => e.getAttribute(t, Z), a = e.getAttribute("orientation");
1967
+ a !== "landscape" && a !== "portrait" || (n.orientation = a);
1968
+ for (let e of [
1969
+ "paperSize",
1970
+ "scale",
1971
+ "fitToWidth",
1972
+ "fitToHeight",
1973
+ "firstPageNumber",
1974
+ "horizontalDpi",
1975
+ "verticalDpi",
1976
+ "copies"
1977
+ ]) {
1978
+ let t = r(e);
1979
+ t !== void 0 && (n[e] = t);
1980
+ }
1981
+ let o = e.getAttribute("paperHeight");
1982
+ o && (n.paperHeight = o);
1983
+ let s = e.getAttribute("paperWidth");
1984
+ s && (n.paperWidth = s), e.getAttribute("pageOrder") === "overThenDown" && (n.printOrder = "overThenDown"), !0 === i("blackAndWhite") && (n.blackAndWhite = !0), !0 === i("draft") && (n.draftMode = !0), !0 === i("useFirstPageNumber") && (n.useFirstPageNumber = !0), !1 === i("usePrinterDefaults") && (n.ignorePrinterDefaults = !0);
1985
+ let c = e.getAttribute("cellComments"), l = xe.find(([e]) => e === c)?.[1];
1986
+ l && (n.printComments = l);
1987
+ let u = e.getAttribute("errors"), d = Ue.find(([e]) => e === u)?.[1];
1988
+ d && (n.printErrors = d);
1989
+ let f = e.getAttribute("r:id"), p = f ? t(f, "part") : null;
1990
+ p && (n.printerSettings = p);
1792
1991
  }
1793
1992
  }), c.registerVisitor({
1794
1993
  from: "printOptions",
1795
- to: "printOptions",
1994
+ to: null,
1995
+ openTag: (e) => {
1996
+ if (pe) return;
1997
+ let t = (t) => !0 === e.getAttribute(t, Z);
1998
+ t("horizontalCentered") && (O().centerHorizontally = !0), t("verticalCentered") && (O().centerVertically = !0), t("gridLines") && (O().printGridlines = !0), t("headings") && (O().printHeadings = !0);
1999
+ }
2000
+ }), c.registerVisitor({
2001
+ from: "headerFooter",
2002
+ to: {},
2003
+ openTag: (e) => {
2004
+ if (pe) return;
2005
+ let t = {}, n = (t) => e.getAttribute(t, Z);
2006
+ !0 === n("differentOddEven") && (t.differentOddEven = !0), !0 === n("differentFirst") && (t.differentFirst = !0), !1 === n("scaleWithDoc") && (t.ignoreSheetScale = !0), !1 === n("alignWithMargins") && (t.ignoreSheetMargins = !0), Object.keys(t).length > 0 && (O().headerFooter = t);
2007
+ }
2008
+ });
2009
+ for (let e of S) c.registerVisitor({
2010
+ from: e,
2011
+ to: {},
2012
+ text: (t, n) => {
2013
+ if (pe) return;
2014
+ let r = O(), i = r.headerFooter ??= {};
2015
+ i[e] = (i[e] ?? "") + E(t);
2016
+ }
2017
+ });
2018
+ let k = "rowBreaks";
2019
+ for (let [e, t] of [["rowBreaks", "rowBreaks"], ["colBreaks", "columnBreaks"]]) c.registerVisitor({
2020
+ from: e,
2021
+ to: {},
2022
+ openTag: () => {
2023
+ k = t;
2024
+ }
2025
+ });
2026
+ c.registerVisitor({
2027
+ from: "brk",
2028
+ to: null,
1796
2029
  openTag: (e) => {
1797
- e.copyTo("gridLines", X), e.copyTo("gridLinesSet", X), e.copyTo("headings", X), e.copyTo("horizontalCentered", X), e.copyTo("verticalCentered", X);
2030
+ if (pe) return;
2031
+ let t = e.getAttribute("id", Q);
2032
+ if (t == null) return;
2033
+ let n = { index: t }, r = e.getAttribute("min", Q);
2034
+ r != null && (n.min = r);
2035
+ let i = e.getAttribute("max", Q);
2036
+ i != null && (n.max = i), !0 !== e.getAttribute("man", Z) && (n.automatic = !0), !0 === e.getAttribute("pt", Z) && (n.pivot = !0);
2037
+ let a = O();
2038
+ (a[k] ??= []).push(n);
1798
2039
  }
1799
2040
  }), c.registerVisitor({
1800
- from: "headerFoot",
1801
- to: "headerFoot",
1802
- openTag: (e) => {}
2041
+ from: "ignoredErrors",
2042
+ transparent: !0
2043
+ }), c.registerVisitor({
2044
+ from: "ignoredError",
2045
+ to: null,
2046
+ openTag: (t) => {
2047
+ let n = t.getAttribute("sqref");
2048
+ if (!n) return;
2049
+ let r = [];
2050
+ for (let e of Se) !0 === t.getAttribute(e, Z) && r.push(e);
2051
+ if (r.length !== 0) for (let t of n.trim().split(/\s+/)) (e.ignoredErrors ??= []).push({
2052
+ r: t,
2053
+ v: r
2054
+ });
2055
+ }
1803
2056
  }), c.registerVisitor({
1804
2057
  from: "mergeCells",
1805
2058
  to: "merges",
@@ -1809,11 +2062,20 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1809
2062
  }), c.registerVisitor({
1810
2063
  from: "dataValidations",
1811
2064
  to: "validations",
1812
- openTag: (e) => {
1813
- e.setSource([]);
2065
+ openTag: (t) => {
2066
+ t.setSource([]);
2067
+ let n = {};
2068
+ !0 === t.getAttribute("disablePrompts", Z) && (n.disablePrompts = !0);
2069
+ let r = t.getAttribute("xWindow", Q);
2070
+ r !== null && (n.windowX = r);
2071
+ let i = t.getAttribute("yWindow", Q);
2072
+ i !== null && (n.windowY = i), Object.keys(n).length > 0 && (e.validationSettings = {
2073
+ ...e.validationSettings,
2074
+ ...n
2075
+ });
1814
2076
  }
1815
2077
  });
1816
- let S = {
2078
+ let he = {
1817
2079
  from: "dataValidation",
1818
2080
  to: [],
1819
2081
  openTag: (e) => {
@@ -1827,28 +2089,28 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1827
2089
  operator: e.getAttribute("operator") ?? void 0
1828
2090
  }
1829
2091
  };
1830
- !0 === e.getAttribute("showDropDown", X) && (n.hideDropdown = !0), e.copyToObject(n, "alert", $, "error"), e.copyToObject(n, "alertTitle", $, "errorTitle"), e.copyToObject(n, "showAlertMessage", X, "showErrorMessage"), n.alertStyle = e.getAttribute("errorStyle") ?? "stop", e.copyToObject(n, "imeMode"), e.copyToObject(n, "prompt"), e.copyToObject(n, "promptTitle"), e.copyToObject(n, "showPromptMessage", X, "showInputMessage"), e.setSource(r);
2092
+ !0 === e.getAttribute("showDropDown", Z) && (n.hideDropdown = !0), e.copyToObject(n, "alert", $, "error"), e.copyToObject(n, "alertTitle", $, "errorTitle"), e.copyToObject(n, "showAlertMessage", Z, "showErrorMessage"), n.alertStyle = e.getAttribute("errorStyle") ?? "stop", e.copyToObject(n, "imeMode"), e.copyToObject(n, "prompt"), e.copyToObject(n, "promptTitle"), e.copyToObject(n, "showPromptMessage", Z, "showInputMessage"), e.setSource(r);
1831
2093
  },
1832
2094
  closeTag: (e) => {
1833
2095
  let t = e.getSource();
1834
2096
  if (!t?.rule) return;
1835
- let n = k(t.rule, a);
1836
- n && (e.getAttribute("allowBlank", X) && (n.includeBlanks = !0), t.v.condition = n), delete t.rule;
2097
+ let n = Ae(t.rule, a);
2098
+ n && (e.getAttribute("allowBlank", Z) && (n.includeBlanks = !0), t.v.condition = n), delete t.rule;
1837
2099
  }
1838
2100
  };
1839
- c.registerVisitor(S), c.registerVisitor({
2101
+ c.registerVisitor(he), c.registerVisitor({
1840
2102
  from: "formula1",
1841
2103
  to: {},
1842
2104
  text: (e, t) => {
1843
2105
  let n = t.getParent().rule;
1844
- n?.type && (n.formula1 = re(f(e), n.type));
2106
+ n?.type && (n.formula1 = Ve(y(e), n.type));
1845
2107
  }
1846
2108
  }), c.registerVisitor({
1847
2109
  from: "formula2",
1848
2110
  to: {},
1849
2111
  text: (e, t) => {
1850
2112
  let n = t.getParent().rule;
1851
- n?.type && (n.formula2 = re(f(e), n.type));
2113
+ n?.type && (n.formula2 = Ve(y(e), n.type));
1852
2114
  }
1853
2115
  }), c.registerVisitor({
1854
2116
  from: "picture",
@@ -1860,7 +2122,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1860
2122
  e.getSource().resId = r;
1861
2123
  }
1862
2124
  });
1863
- let ae = {
2125
+ let _e = {
1864
2126
  from: "slicer",
1865
2127
  to: {},
1866
2128
  openTag: (e) => {
@@ -1872,8 +2134,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1872
2134
  for (let e of a) i.slicers[e] = r[e];
1873
2135
  }
1874
2136
  };
1875
- c.registerVisitor(ae);
1876
- let se = (e, t) => ({
2137
+ c.registerVisitor(_e);
2138
+ let j = (e, t) => ({
1877
2139
  from: e,
1878
2140
  to: {},
1879
2141
  openTag: (e) => {
@@ -1885,8 +2147,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1885
2147
  closeTag: (e) => {
1886
2148
  t(String(e.getSource() ?? ""), e);
1887
2149
  }
1888
- }), ce = /* @__PURE__ */ new Map();
1889
- ce.set("dataValidations", {
2150
+ }), M = /* @__PURE__ */ new Map();
2151
+ M.set("dataValidations", {
1890
2152
  from: "dataValidations",
1891
2153
  to: "validations",
1892
2154
  openTag: (e) => {
@@ -1896,15 +2158,15 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1896
2158
  closeTag: (e) => {
1897
2159
  (e.getSource()?.length ?? 0) === 0 && e.setSource(void 0);
1898
2160
  }
1899
- }), ce.set("dataValidation", {
1900
- ...S,
2161
+ }), M.set("dataValidation", {
2162
+ ...he,
1901
2163
  closeTag: (e) => {
1902
- S.closeTag(e);
2164
+ he.closeTag(e);
1903
2165
  let t = e.getSource();
1904
2166
  t && !t.r && (e.warn("x14 dataValidation with no xm:sqref was dropped."), e.setSource(void 0));
1905
2167
  }
1906
2168
  });
1907
- let C = (e) => ({
2169
+ let N = (e) => ({
1908
2170
  from: e,
1909
2171
  to: {},
1910
2172
  openTag: (t) => {
@@ -1914,18 +2176,18 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1914
2176
  });
1915
2177
  }
1916
2178
  });
1917
- ce.set("formula1", C("formula1")), ce.set("formula2", C("formula2")), ce.set("f", se("f", (e, t) => {
2179
+ M.set("formula1", N("formula1")), M.set("formula2", N("formula2")), M.set("f", j("f", (e, t) => {
1918
2180
  let n = t.getParent(), r = n?.rule;
1919
- r && (r[n.key] = re(f(e), r.type));
1920
- })), ce.set("sqref", se("sqref", (e, t) => {
2181
+ r && (r[n.key] = Ve(y(e), r.type));
2182
+ })), M.set("sqref", j("sqref", (e, t) => {
1921
2183
  let n = t.getParent(), r = e.trim();
1922
2184
  n && r && (n.r = r.split(/\s+/).join(","));
1923
2185
  }));
1924
- let w = /* @__PURE__ */ new Map(), T = [], D = /* @__PURE__ */ new Map();
1925
- D.set("conditionalFormattings", {
2186
+ let P = /* @__PURE__ */ new Map(), ye = [], F = /* @__PURE__ */ new Map();
2187
+ F.set("conditionalFormattings", {
1926
2188
  from: "conditionalFormattings",
1927
2189
  transparent: !0
1928
- }), D.set("conditionalFormatting", {
2190
+ }), F.set("conditionalFormatting", {
1929
2191
  from: "conditionalFormatting",
1930
2192
  to: {},
1931
2193
  openTag: (e) => {
@@ -1935,85 +2197,85 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1935
2197
  let t = e.getSource(), n = t?.rules ?? [];
1936
2198
  for (let e = 0; e < n.length; e++) {
1937
2199
  let r = n[e];
1938
- r.sqref = t.sqref, r.id ? w.set(r.id, r) : T.push(r);
2200
+ r.sqref = t.sqref, r.id ? P.set(r.id, r) : ye.push(r);
1939
2201
  }
1940
2202
  }
1941
- }), D.set("cfRule", {
2203
+ }), F.set("cfRule", {
1942
2204
  from: "cfRule",
1943
2205
  to: {},
1944
2206
  openTag: (e) => {
1945
- 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);
2207
+ e.copyTo("id", $), e.copyTo("type", $), e.copyTo("priority", Q), e.copyTo("stopIfTrue", Z), e.copyTo("operator", $), e.copyTo("text", $), e.copyTo("timePeriod", $), e.copyTo("aboveAverage", Z), e.copyTo("equalAverage", Z), e.copyTo("stdDev", Q), e.copyTo("bottom", Z), e.copyTo("percent", Z), e.copyTo("rank", Q);
1946
2208
  },
1947
2209
  closeTag: (e) => {
1948
2210
  let t = e.getSource();
1949
2211
  t && e.getParent()?.rules?.push(t);
1950
2212
  }
1951
- }), D.set("sqref", se("sqref", (e, t) => {
2213
+ }), F.set("sqref", j("sqref", (e, t) => {
1952
2214
  let n = t.getParent(), r = e.trim();
1953
2215
  n && r && (n.sqref = r);
1954
- })), D.set("dataBar", {
2216
+ })), F.set("dataBar", {
1955
2217
  from: "dataBar",
1956
2218
  to: {},
1957
2219
  openTag: (e) => {
1958
- e.copyTo("minLength", Z), e.copyTo("maxLength", Z), e.copyTo("gradient", X), e.copyTo("border", X), e.copyTo("direction", $), e.copyTo("axisPosition", $), e.copyTo("negativeBarColorSameAsPositive", X), e.copyTo("negativeBarBorderColorSameAsPositive", X);
2220
+ e.copyTo("minLength", Q), e.copyTo("maxLength", Q), e.copyTo("gradient", Z), e.copyTo("border", Z), e.copyTo("direction", $), e.copyTo("axisPosition", $), e.copyTo("negativeBarColorSameAsPositive", Z), e.copyTo("negativeBarBorderColorSameAsPositive", Z);
1959
2221
  },
1960
2222
  closeTag: (e) => {
1961
2223
  e.getParent().dataBar = e.getSource();
1962
2224
  }
1963
- }), D.set("iconSet", {
2225
+ }), F.set("iconSet", {
1964
2226
  from: "iconSet",
1965
2227
  to: {},
1966
2228
  openTag: (e) => {
1967
- e.copyTo("iconSet", $), e.copyTo("custom", X), e.copyTo("reverse", X), e.copyTo("showValue", X);
2229
+ e.copyTo("iconSet", $), e.copyTo("custom", Z), e.copyTo("reverse", Z), e.copyTo("showValue", Z);
1968
2230
  },
1969
2231
  closeTag: (e) => {
1970
2232
  e.getParent().iconSet = e.getSource();
1971
2233
  }
1972
2234
  });
1973
- let de = /* @__PURE__ */ new Map();
1974
- de.set("f", se("f", (e, t) => {
2235
+ let be = /* @__PURE__ */ new Map();
2236
+ be.set("f", j("f", (e, t) => {
1975
2237
  let n = t.getParent();
1976
2238
  if (!n) return;
1977
2239
  let r = e.trim(), i = Number(r);
1978
- n.value = r.length > 0 && Number.isFinite(i) ? i : f(e);
1979
- })), D.set("cfvo", {
2240
+ n.value = r.length > 0 && Number.isFinite(i) ? i : y(e);
2241
+ })), F.set("cfvo", {
1980
2242
  from: "cfvo",
1981
2243
  to: {},
1982
- scope: () => de,
2244
+ scope: () => be,
1983
2245
  openTag: (e) => {
1984
2246
  let t = e.getParent();
1985
2247
  t.conditions ||= [];
1986
2248
  let n = e.getSource();
1987
- t.conditions.push(n), e.copyTo("type", $), !1 === e.getAttribute("gte", X) && (n.exclusive = !0);
2249
+ t.conditions.push(n), e.copyTo("type", $), !1 === e.getAttribute("gte", Z) && (n.exclusive = !0);
1988
2250
  }
1989
- }), D.set("f", se("f", (e, t) => {
2251
+ }), F.set("f", j("f", (e, t) => {
1990
2252
  let n = t.getParent();
1991
- n && (n.formulas ??= []).push(f(e));
1992
- })), D.set("dxf", {
2253
+ n && (n.formulas ??= []).push(y(e));
2254
+ })), F.set("dxf", {
1993
2255
  from: "dxf",
1994
2256
  to: {},
1995
2257
  raw: !0,
1996
2258
  closeTag: (e) => {
1997
- if (!u) return;
2259
+ if (!p) return;
1998
2260
  let t = e.getParent();
1999
2261
  if (!t) return;
2000
- let n = u(e.getRawXml() ?? "");
2262
+ let n = p(e.getRawXml() ?? "");
2001
2263
  n && (t.style = n);
2002
2264
  }
2003
2265
  });
2004
- let fe = (e) => ({
2266
+ let Ce = (e) => ({
2005
2267
  from: e,
2006
2268
  to: {},
2007
2269
  openTag: (t) => {
2008
- let n = V((e) => t.getAttribute(e));
2270
+ let n = L((e) => t.getAttribute(e));
2009
2271
  n && (t.getParent()[e] = n);
2010
2272
  }
2011
2273
  });
2012
- D.set("borderColor", fe("borderColor")), D.set("negativeFillColor", fe("negativeFillColor")), D.set("negativeBorderColor", fe("negativeBorderColor")), D.set("axisColor", fe("axisColor")), D.set("cfIcon", {
2274
+ F.set("borderColor", Ce("borderColor")), F.set("negativeFillColor", Ce("negativeFillColor")), F.set("negativeBorderColor", Ce("negativeBorderColor")), F.set("axisColor", Ce("axisColor")), F.set("cfIcon", {
2013
2275
  from: "cfIcon",
2014
2276
  to: {},
2015
2277
  openTag: (e) => {
2016
- let t = e.getAttribute("iconSet"), n = e.getAttribute("iconId", Z);
2278
+ let t = e.getAttribute("iconSet"), n = e.getAttribute("iconId", Q);
2017
2279
  if (t === null || n === null) return;
2018
2280
  let r = e.getParent();
2019
2281
  r.icons ||= [], r.icons.push({
@@ -2022,25 +2284,25 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2022
2284
  });
2023
2285
  }
2024
2286
  });
2025
- let pe = /* @__PURE__ */ new Map();
2026
- pe.set("id", se("id", (e, t) => {
2287
+ let Ee = /* @__PURE__ */ new Map();
2288
+ Ee.set("id", j("id", (e, t) => {
2027
2289
  let n = t.getParent(), r = e.trim();
2028
2290
  n && r && (n.x14Id = r);
2029
2291
  }));
2030
- let _e = /* @__PURE__ */ new Map();
2031
- _e.set("slicerList", {
2292
+ let De = /* @__PURE__ */ new Map();
2293
+ De.set("slicerList", {
2032
2294
  from: "slicerList",
2033
2295
  transparent: !0
2034
- }), _e.set("slicer", ae);
2035
- let ve = /* @__PURE__ */ new Map([
2036
- [E(L), ce],
2037
- [E(ue), D],
2038
- [E(be), D],
2039
- [E(xe), pe],
2040
- [E(Ce), _e],
2041
- [E(M), _e],
2042
- [E(A), x]
2043
- ]), P = /* @__PURE__ */ new Set();
2296
+ }), De.set("slicer", _e);
2297
+ let Oe = /* @__PURE__ */ new Map([
2298
+ [w(ze), M],
2299
+ [w(Te), F],
2300
+ [w(A), F],
2301
+ [w(W), Ee],
2302
+ [w(ee), De],
2303
+ [w(Ne), De],
2304
+ [w(He), oe]
2305
+ ]), z = /* @__PURE__ */ new Set();
2044
2306
  c.registerVisitor({
2045
2307
  from: "extLst",
2046
2308
  transparent: !0
@@ -2048,11 +2310,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2048
2310
  from: "ext",
2049
2311
  transparent: !0,
2050
2312
  scope: (e) => {
2051
- let t = e.getAttribute("uri"), n = E(t), r = ve.get(n);
2313
+ let t = e.getAttribute("uri"), n = w(t), r = Oe.get(n);
2052
2314
  if (r) return r;
2053
- if (!oe.has(n) && !P.has(n)) {
2054
- P.add(n);
2055
- let r = ye[n];
2315
+ if (!me.has(n) && !z.has(n)) {
2316
+ z.add(n);
2317
+ let r = we[n];
2056
2318
  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.`);
2057
2319
  }
2058
2320
  return null;
@@ -2082,11 +2344,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2082
2344
  i.endsWith("\\") && (i = i.substring(0, i.length - 1));
2083
2345
  let a = e.getAttribute("location");
2084
2346
  if (a && (i += "#" + a), !i) return void e.warn("A hyperlink has no address; it was dropped.", { onceKey: "xlsx.sheet.hyperlink.address" });
2085
- let o, s = e.getAttribute("tooltip");
2086
- o = s ? {
2087
- address: i,
2088
- screenTip: s
2089
- } : i, e.setSource({
2347
+ let o, s = e.getAttribute("tooltip"), c = e.getAttribute("display");
2348
+ s || c ? (o = { address: i }, s && (o.screenTip = s), c && (o.display = c)) : o = i, e.setSource({
2090
2349
  r,
2091
2350
  v: o
2092
2351
  });
@@ -2113,19 +2372,19 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2113
2372
  e.setSource(t(e.getAttribute("r:id"), "legacyDrawing") ?? void 0);
2114
2373
  }
2115
2374
  });
2116
- let F = null, I = !1, R = /* @__PURE__ */ new Map(), Se = {
2375
+ let B = null, ke = !1, je = /* @__PURE__ */ new Map(), Me = {
2117
2376
  from: "Fallback",
2118
2377
  to: null
2119
- }, we = {
2378
+ }, V = {
2120
2379
  from: "Choice",
2121
2380
  transparent: !0
2122
2381
  };
2123
- R.set("Fallback", Se), R.set("Choice", we), R.set("control", {
2382
+ je.set("Fallback", Me), je.set("Choice", V), je.set("control", {
2124
2383
  from: "control",
2125
2384
  transparent: !0,
2126
2385
  openTag: (e) => {
2127
2386
  let n = e.getAttribute("name"), r = e.getAttribute("r:id"), i = r ? t(r, "formControl") : null;
2128
- if (!i) return e.warn(`The form control '${n ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (F = null);
2387
+ if (!i) return e.warn(`The form control '${n ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (B = null);
2129
2388
  let a = i.json, o = parseInt(e.getAttribute("shapeId") ?? "", 10);
2130
2389
  isNaN(o) || (a.shapeId = o);
2131
2390
  let s = {
@@ -2148,60 +2407,60 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2148
2407
  json: a
2149
2408
  }
2150
2409
  };
2151
- n && (s.content.name = n), F = {
2410
+ n && (s.content.name = n), B = {
2152
2411
  movable: s,
2153
2412
  control: a
2154
2413
  };
2155
2414
  },
2156
2415
  closeTag: () => {
2157
- F &&= (e.movables ||= [], e.movables.push(F.movable), null);
2416
+ B &&= (e.movables ||= [], e.movables.push(B.movable), null);
2158
2417
  }
2159
- }), R.set("controlPr", {
2418
+ }), je.set("controlPr", {
2160
2419
  from: "controlPr",
2161
2420
  transparent: !0,
2162
2421
  raw: !0,
2163
2422
  openTag: (e) => {
2164
- if (!F) return;
2423
+ if (!B) return;
2165
2424
  let t = e.getFrom().attributes ?? {}, n = {};
2166
2425
  for (let e in t) {
2167
2426
  let r = t[e];
2168
2427
  n[e] = typeof r == "string" ? r : r?.value ?? "";
2169
2428
  }
2170
- ne(n, F.control);
2429
+ se(n, B.control);
2171
2430
  },
2172
2431
  closeTag: (e) => {
2173
- if (!F) return;
2432
+ if (!B) return;
2174
2433
  let t = ((e) => {
2175
2434
  let t = /<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(e);
2176
2435
  if (!t) return null;
2177
2436
  let n = t[2], r = (e) => RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${e}>`).exec(n)?.[1], i = t[1], a = /\bmoveWithCells="(?:1|true)"/.test(i), o = /\bsizeWithCells="(?:1|true)"/.test(i);
2178
2437
  return {
2179
2438
  anchor: {
2180
- tl: Ht(r("from")),
2181
- br: Ht(r("to"))
2439
+ tl: Tn(r("from")),
2440
+ br: Tn(r("to"))
2182
2441
  },
2183
2442
  anchorType: a ? o ? "twoCell" : "oneCell" : "absolute",
2184
2443
  rest: (e.slice(0, t.index) + e.slice(t.index + t[0].length)).trim()
2185
2444
  };
2186
2445
  })(e.getRawXml() ?? "");
2187
- t ? (F.movable.anchor = t.anchor, t.anchorType !== "twoCell" && (F.movable.anchorType = t.anchorType), t.rest && (F.control.xml = t.rest)) : I || (I = !0, e.warn("A form control has no anchor; it is placed at the top left of the sheet."));
2446
+ t ? (B.movable.anchor = t.anchor, t.anchorType !== "twoCell" && (B.movable.anchorType = t.anchorType), t.rest && (B.control.xml = t.rest)) : ke || (ke = !0, e.warn("A form control has no anchor; it is placed at the top left of the sheet."));
2188
2447
  }
2189
2448
  });
2190
- let Te = {
2449
+ let Pe = {
2191
2450
  from: "controls",
2192
2451
  transparent: !0,
2193
- scope: () => R
2452
+ scope: () => je
2194
2453
  };
2195
- c.registerVisitor(Te);
2196
- let Ee = /* @__PURE__ */ new Map([
2197
- ["Choice", we],
2198
- ["Fallback", Se],
2199
- ["controls", Te]
2454
+ c.registerVisitor(Pe);
2455
+ let Fe = /* @__PURE__ */ new Map([
2456
+ ["Choice", V],
2457
+ ["Fallback", Me],
2458
+ ["controls", Pe]
2200
2459
  ]);
2201
2460
  c.registerVisitor({
2202
2461
  from: "AlternateContent",
2203
2462
  transparent: !0,
2204
- scope: () => Ee
2463
+ scope: () => Fe
2205
2464
  }), c.registerVisitor({
2206
2465
  from: "tableParts",
2207
2466
  to: "tables",
@@ -2218,26 +2477,26 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2218
2477
  r ? e.setSource(r) : e.warn("A table part is missing; the table was not imported.", { onceKey: "xlsx.sheet.table.missing" });
2219
2478
  }
2220
2479
  });
2221
- let De = (e, t) => {
2222
- t.conditions?.length && (e.stops = v(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);
2223
- }, z = (e, t) => {
2224
- t.conditions?.length && (e.stops = v(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);
2225
- }, Oe = (e) => {
2480
+ let Ie = (e, t) => {
2481
+ t.conditions?.length && (e.stops = C(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);
2482
+ }, H = (e, t) => {
2483
+ t.conditions?.length && (e.stops = C(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);
2484
+ }, Re = (e) => {
2226
2485
  if (!e.sqref) return null;
2227
2486
  let t = e.sqref.split(/\s+/).join(",");
2228
2487
  if (e.type === "iconSet") {
2229
2488
  if (!e.iconSet) return null;
2230
2489
  let n = {
2231
- type: h.ScaleType.IconSet,
2490
+ type: f.ScaleType.IconSet,
2232
2491
  stops: []
2233
2492
  };
2234
- return z(n, e.iconSet), {
2493
+ return H(n, e.iconSet), {
2235
2494
  r: t,
2236
2495
  v: { scale: n },
2237
2496
  priority: e.priority
2238
2497
  };
2239
2498
  }
2240
- let n = le(e, a);
2499
+ let n = ge(e, a);
2241
2500
  if (!n) return null;
2242
2501
  let r = { condition: n };
2243
2502
  return e.style && (r.style = e.style), e.stopIfTrue && (r.stopIfTrue = !0), {
@@ -2256,15 +2515,15 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2256
2515
  let t = n[e], r = t.x14Id;
2257
2516
  if (!r) continue;
2258
2517
  delete t.x14Id;
2259
- let i = w.get(r);
2518
+ let i = P.get(r);
2260
2519
  if (!i) continue;
2261
- w.delete(r);
2520
+ P.delete(r);
2262
2521
  let a = t.v?.scale;
2263
- i.dataBar && a?.type === h.ScaleType.DataBar ? De(a, i.dataBar) : i.iconSet && a?.type === h.ScaleType.IconSet && z(a, i.iconSet);
2522
+ i.dataBar && a?.type === f.ScaleType.DataBar ? Ie(a, i.dataBar) : i.iconSet && a?.type === f.ScaleType.IconSet && H(a, i.iconSet);
2264
2523
  }
2265
- let r = [...w.values(), ...T], i = /* @__PURE__ */ new Set(), o = 0;
2524
+ let r = [...P.values(), ...ye], i = /* @__PURE__ */ new Set(), o = 0;
2266
2525
  for (let e = 0; e < r.length; e++) {
2267
- let a = Oe(r[e]);
2526
+ let a = Re(r[e]);
2268
2527
  a ? (n || (n = [], t.conditionals = n), n.push(a)) : (i.add(r[e].type ?? "unknown"), o++);
2269
2528
  }
2270
2529
  if (o > 0) {
@@ -2302,13 +2561,13 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2302
2561
  to: "protection",
2303
2562
  openTag: (e) => {
2304
2563
  let t = e.getSource();
2305
- for (let n of O) {
2564
+ for (let n of Le) {
2306
2565
  let r = e.hasAttribute(n.attribute) ? e.getAttribute(n.attribute) : null;
2307
- t[n.key] = ge(n, r);
2566
+ t[n.key] = T(n, r);
2308
2567
  }
2309
2568
  if (t.sheet) return;
2310
2569
  let n = {};
2311
- e.copyToObject(n, "hash", $, "hashValue"), e.copyToObject(n, "algorithm", $, "algorithmName"), e.copyToObject(n, "salt", $, "saltValue"), e.copyToObject(n, "spinCount", Z), Object.keys(n).length > 0 && (e.getSource().password = n);
2570
+ e.copyToObject(n, "hash", $, "hashValue"), e.copyToObject(n, "algorithm", $, "algorithmName"), e.copyToObject(n, "salt", $, "saltValue"), e.copyToObject(n, "spinCount", Q), e.copyToObject(n, "legacyHash", $, "password"), Object.keys(n).length > 0 && (e.getSource().password = n);
2312
2571
  }
2313
2572
  }), c.registerVisitor({
2314
2573
  from: "protectedRanges",
@@ -2328,7 +2587,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2328
2587
  };
2329
2588
  e.copyToObject(n, "name"), e.copyToObject(n, "securityDescriptor");
2330
2589
  let i = {};
2331
- e.copyToObject(i, "hash", $, "hashValue"), e.copyToObject(i, "algorithm", $, "algorithmName"), e.copyToObject(i, "salt", $, "saltValue"), e.copyToObject(i, "spinCount", Z), Object.keys(i).length > 0 && (n.password = i), e.setSource(r);
2590
+ e.copyToObject(i, "hash", $, "hashValue"), e.copyToObject(i, "algorithm", $, "algorithmName"), e.copyToObject(i, "salt", $, "saltValue"), e.copyToObject(i, "spinCount", Q), e.copyToObject(i, "legacyHash", $, "password"), Object.keys(i).length > 0 && (n.password = i), e.setSource(r);
2332
2591
  },
2333
2592
  closeTag: (e) => {
2334
2593
  let t = e.getSource();
@@ -2338,9 +2597,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2338
2597
  from: "sheetFormatPr",
2339
2598
  to: "sheetFormatPr",
2340
2599
  openTag: (t) => {
2341
- t.copyToObject(e, "defaultColSize", Q, "defaultColWidth");
2600
+ t.copyToObject(e, "defaultColSize", $t, "defaultColWidth");
2342
2601
  let n = t.getAttribute("customHeight");
2343
- n !== "1" && n !== "true" || t.copyToObject(e, "defaultRowSize", Q, "defaultRowHeight");
2602
+ n !== "1" && n !== "true" || t.copyToObject(e, "defaultRowSize", $t, "defaultRowHeight");
2603
+ let r = t.getAttribute("baseColWidth", Q);
2604
+ r && r !== 8 && (e.baseColSize = r), d = !!t.getAttribute("zeroHeight", Z);
2344
2605
  }
2345
2606
  }), c.registerVisitor({
2346
2607
  from: "cols",
@@ -2355,7 +2616,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2355
2616
  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;
2356
2617
  t.r = m.runToString(i, a, !0);
2357
2618
  let o = {};
2358
- 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, "cl", X, "collapsed"), e.copyToObject(o, "s", Z, "style");
2619
+ t.v = o, e.copyToObject(o, "sz", $t, "width"), e.copyToObject(o, "csz", Z, "customWidth"), e.copyToObject(o, "h", Z, "hidden"), e.copyToObject(o, "l", Q, "outlineLevel"), e.copyToObject(o, "cl", Z, "collapsed"), e.getAttribute("bestFit", Z) && (o.bf = !0), e.copyToObject(o, "s", Q, "style");
2359
2620
  }
2360
2621
  }), c.registerVisitor({
2361
2622
  from: "oleObjects",
@@ -2364,31 +2625,39 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2364
2625
  e.warn("'OLE Objects' are not supported.");
2365
2626
  }
2366
2627
  });
2367
- let B = !1, ke = !1, Ae = 0, je = "", Me = (e) => {
2628
+ let U = !1, G = !1, Be = 0, Ge = "", Ke = (e) => {
2368
2629
  let t = e.indexOf(":");
2369
2630
  return t === -1 ? e : e.slice(t + 1);
2370
- };
2371
- return Jt(g, e, c.createEventHandler(e, i, a), a, o, {
2631
+ }, qe = new xn();
2632
+ return In(b, e, c.createEventHandler(e, i, a), a, o, {
2372
2633
  onOpenTag: (e) => {
2373
- B = !0;
2374
- let t = Me(e.name);
2375
- t === "t" || t === "v" ? Ae === 0 && (ke = !0) : t !== "rPh" && t !== "phoneticPr" || Ae++;
2634
+ U = !0;
2635
+ let t = Ke(e.name);
2636
+ t === "t" || t === "v" ? Be === 0 && (G = !0) : t === "rPh" || t === "phoneticPr" ? Be++ : Be === 0 && qe.onOpenTag(t, e.attributes);
2376
2637
  },
2377
2638
  onText: (e) => {
2378
- ke && (je += e);
2639
+ G && (Ge += e, qe.onText(e));
2379
2640
  },
2380
2641
  onCloseTag: (e) => {
2381
- let t = Me(e.name);
2382
- t === "t" || t === "v" ? ke = !1 : t !== "rPh" && t !== "phoneticPr" || Ae > 0 && Ae--;
2642
+ let t = Ke(e.name);
2643
+ t === "t" || t === "v" ? G = !1 : t === "rPh" || t === "phoneticPr" ? Be > 0 && Be-- : qe.onCloseTag(t);
2383
2644
  },
2384
2645
  onEnd: () => {
2385
- if (!B) return;
2386
- let e = n(he(je));
2387
- return B = !1, ke = !1, Ae = 0, je = "", e;
2646
+ if (!U) return;
2647
+ let e = qe.take();
2648
+ U = !1, G = !1, Be = 0;
2649
+ let t = E(Ge);
2650
+ return Ge = "", e ? {
2651
+ t: "r",
2652
+ v: {
2653
+ type: "richText",
2654
+ data: { runs: Sn(e, s?.get(kn)) }
2655
+ }
2656
+ } : n(t);
2388
2657
  },
2389
2658
  onError: (e) => {}
2390
- }, s);
2391
- }, Gt = class {
2659
+ }, s, n, () => d);
2660
+ }, jn = class {
2392
2661
  static {
2393
2662
  this.Collapsed = 1;
2394
2663
  }
@@ -2419,150 +2688,214 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2419
2688
  static {
2420
2689
  this.Spans = 512;
2421
2690
  }
2422
- static {
2423
- this.ThickBot = 1024;
2424
- }
2425
- static {
2426
- this.ThickTop = 2048;
2427
- }
2428
- }, Kt = (e, t, n) => {
2691
+ }, Mn = (e, t, n) => {
2429
2692
  if (e[0].value[0] === e[1].value[0]) return t;
2430
- }, qt = {
2693
+ }, Nn = /^\s*TABLE\s*\(/i, Pn = {
2431
2694
  colStart: 0,
2432
2695
  colEnd: 0,
2433
2696
  rowStart: 0,
2434
2697
  rowEnd: 0
2435
- }, Jt = (n, r, i, a, o, l, u) => {
2436
- let d = !1, f = !1, p = [], h = !1, g = null, _ = null, v = null, y = null, b = null, ee = null, x = u?.get("richData") ?? t.EmptyArray, te = u?.get("dummyWrapped") ?? null, ne = m.normalizeA1ToR1C1, re = e.createConflatingRanges(), S = /* @__PURE__ */ new Map(), ie = [], ae = !1, oe = !1, se = null, ce = !1, le = e.createConflatingRanges(), C = !1, w = -1, T = -1, E = null, ue = null, D = null, O = [], de = null, fe = -2, k = 0, A = "", pe = "", j = "", me = "", M = "", he = "", N = "", ge = "", _e = "", ve = "", ye = "", P = "", F = "", I = "", L = !0, R = null, be = !1, xe = !1, Se = !1, Ce = null, we = 0, Te = (e) => {
2437
- let t = e.name, n = t.indexOf(":");
2438
- if (n !== -1 && (t = t.slice(n + 1)), we++, we % 196608 == 0 && o?.(we), ue) {
2439
- let n = e.attributes;
2440
- switch (t) {
2698
+ }, Fn = (e) => e === "1" || e === "true", In = (e, t, r, i, a, s, c, d, f) => {
2699
+ let p = !1, h = [], g = c?.get(On), _ = c?.get(kn), v = /* @__PURE__ */ new Map(), y = !1, b = [], x = !1, S = null, ee = null, te = null, C = null, ne = null, re = null, ie = c?.get("richData") ?? n.EmptyArray, ae = c?.get("dummyWrapped") ?? null, oe = m.normalizeA1ToR1C1, se = o.createConflatingRanges(), ce = /* @__PURE__ */ new Map(), le = [], ue = !1, de = !1, fe = null, pe = (e) => {
2700
+ let t = c?.get("metadata")?.values;
2701
+ if (!t) return;
2702
+ let n = parseInt(e, 10);
2703
+ if (!Number.isFinite(n) || n < 1) return;
2704
+ let r = t[n - 1]?.get("XLRICHVALUE");
2705
+ return r?.richValueIndex === void 0 ? void 0 : ie[r.richValueIndex];
2706
+ }, me = !1, w = o.createConflatingRanges(), T = !1, E = -1, D = -1, O = null, k = null, he = null, ge = [], A = null, _e = -2, j = 0, M = "", N = "", P = "", ve = "", ye = "", F = "", I = "", L = "", be = "", xe = "", Se = "", Ce = "", we = "", Te = "", R = !0, Ee = null, De = !1, Oe = !1, z = !1, B = null, ke = 0, Ae = (e) => {
2707
+ let n = e.name, i = n.indexOf(":");
2708
+ if (i !== -1 && (n = n.slice(i + 1)), ke++, ke % 196608 == 0 && a?.(ke), k) {
2709
+ let r = e.attributes;
2710
+ switch (n) {
2441
2711
  case "v":
2442
- f = !0;
2712
+ y = !0;
2443
2713
  break;
2444
2714
  case "f":
2445
- switch (h = !0, n.t ?? null) {
2715
+ switch (x = !0, r.t ?? null) {
2446
2716
  case null:
2447
2717
  case "normal": break;
2448
2718
  case "shared":
2449
- let e = n.si;
2450
- _ = n.ref, g = e;
2719
+ let e = r.si;
2720
+ ee = r.ref, S = e;
2451
2721
  break;
2452
2722
  case "array":
2453
- _ = n.ref, se = _;
2723
+ ee = r.ref, fe = ee;
2454
2724
  break;
2455
- case "dataTable": _ = n.ref, h = !0;
2725
+ case "dataTable": {
2726
+ let e = ((e, t, n) => {
2727
+ let r = e.r1;
2728
+ if (!r) return null;
2729
+ let i = { ref: e.ref ?? m.cellToString({
2730
+ rowIndex: t,
2731
+ colIndex: n
2732
+ }) }, a = Fn(e.del1);
2733
+ if (Fn(e.dt2D)) {
2734
+ i.rowInput = r, a && (i.rowInputDeleted = !0);
2735
+ let t = e.r2;
2736
+ t && (i.columnInput = t, Fn(e.del2) && (i.columnInputDeleted = !0));
2737
+ } else Fn(e.dtr) ? (i.rowInput = r, a && (i.rowInputDeleted = !0)) : (i.columnInput = r, a && (i.columnInputDeleted = !0));
2738
+ return Fn(e.ca) && (i.calculateAlways = !0), i;
2739
+ })(r, E, D);
2740
+ e && (t.dataTables ??= []).push(e);
2741
+ return;
2742
+ }
2456
2743
  }
2457
- let e = n.ca;
2458
- e !== void 0 && (ce = e === "1");
2744
+ let e = r.ca;
2745
+ e !== void 0 && (me = e === "1");
2459
2746
  break;
2460
2747
  case "is":
2461
- C = !0;
2748
+ T = !0;
2462
2749
  return;
2463
2750
  }
2464
- C && !h && l?.onOpenTag?.(e);
2465
- } else if (d) {
2466
- if (t === "c") {
2467
- ue = e;
2751
+ T && !x && s?.onOpenTag?.(e);
2752
+ } else if (p) {
2753
+ if (n === "c") {
2754
+ k = e;
2468
2755
  let t = e.attributes, n = t.r;
2469
- T = m.fastStringToCol(n);
2756
+ D = n === void 0 ? D + 1 : m.fastStringToCol(n);
2470
2757
  let r = t.t;
2471
- r === void 0 ? D = null : (D = r, D === "str" && (C = !0));
2758
+ r === void 0 ? he = null : (he = r, he === "str" && (T = !0));
2472
2759
  let i = t.s;
2473
- i === void 0 && (Ce !== null || Se) && (i = "0"), i !== void 0 && (i = parseInt(i), R && R.value === i && R.colEnd + 1 === T ? R.colEnd = T : (R = {
2474
- colStart: T,
2475
- rowStart: w,
2476
- colEnd: T,
2477
- rowEnd: w,
2760
+ i === void 0 && (B !== null || z) && (i = "0"), i !== void 0 && (i = parseInt(i), Ee && Ee.value === i && Ee.colEnd + 1 === D ? Ee.colEnd = D : (Ee = {
2761
+ colStart: D,
2762
+ rowStart: E,
2763
+ colEnd: D,
2764
+ rowEnd: E,
2478
2765
  value: i
2479
- }, p.push(R))), se = null, oe = !1;
2766
+ }, b.push(Ee))), fe = null, de = !1;
2480
2767
  let a = t.cm;
2481
- ae = a !== void 0 && ((e) => {
2482
- let t = u?.get("metadata")?.cells;
2768
+ ue = a !== void 0 && ((e) => {
2769
+ let t = c?.get("metadata")?.cells;
2483
2770
  if (!t) return !1;
2484
2771
  let n = parseInt(e, 10);
2485
2772
  return !(!Number.isFinite(n) || n < 1) && !0 === t[n - 1]?.get("XLDAPR")?.fDynamic;
2486
2773
  })(a);
2487
2774
  let o = t.vm;
2488
2775
  if (o !== void 0) {
2489
- let e = x[parseInt(o) - 1];
2490
- if (s.isError(e)) {
2776
+ let e = pe(o);
2777
+ if (l.isError(e)) {
2491
2778
  let t = e.getCode();
2492
- E = {
2779
+ O = {
2493
2780
  t: "e",
2494
2781
  v: t
2495
- }, ae && t === s.Code.Spill && (oe = !0);
2782
+ }, ue && t === l.Code.Spill && (de = !0);
2496
2783
  }
2497
2784
  }
2498
2785
  }
2499
2786
  } else {
2500
- if (xe && t === "row") {
2501
- d = !0;
2787
+ if (Oe && n === "row") {
2788
+ p = !0;
2502
2789
  let t = e.attributes.r;
2503
- if (w = parseInt(t) - 1, k = 0, pe = e.attributes.customHeight, pe !== void 0 && (k |= Gt.CustomHeight), pe !== _e && (L = !0, _e = pe), A = e.attributes.ht, A !== void 0 && (k |= Gt.Ht), A !== ge && (L = !0, ge = A), j = e.attributes.hidden, j !== void 0 && (k |= Gt.Hidden), j !== ve && (L = !0, ve = j), M = e.attributes.s, M !== void 0 && (k |= Gt.S), M !== P && (L = !0, P = M), me = e.attributes.customFormat, me !== void 0 && (k |= Gt.CustomFormat), me !== ye && (L = !0, ye = me), he = e.attributes.outlineLevel, he !== void 0 && (k |= Gt.OutlineLevel), he !== F && (L = !0, F = he), N = e.attributes.collapsed, N !== void 0 && (k |= Gt.Collapsed), N !== I && (L = !0, I = N), k !== 0) {
2504
- if (fe + 1 !== w || L) {
2505
- let e = pe !== void 0 && (pe === "1" || pe === "true"), t = me !== void 0 && (me === "1" || me === "true");
2506
- Ce = t && M !== void 0 ? M : null, t && Ce === null && (Ce = "0"), de = {
2507
- min: w,
2508
- max: w,
2790
+ if (E = t === void 0 ? E + 1 : parseInt(t) - 1, D = -1, f?.()) {
2791
+ let e = h[h.length - 1];
2792
+ e && e.max + 1 === E ? e.max = E : h.push({
2793
+ min: E,
2794
+ max: E
2795
+ });
2796
+ }
2797
+ if (j = 0, N = e.attributes.customHeight, N !== void 0 && (j |= jn.CustomHeight), N !== be && (R = !0, be = N), M = e.attributes.ht, M !== void 0 && (j |= jn.Ht), M !== L && (R = !0, L = M), P = e.attributes.hidden, P !== void 0 && (j |= jn.Hidden), P !== xe && (R = !0, xe = P), ye = e.attributes.s, ye !== void 0 && (j |= jn.S), ye !== Ce && (R = !0, Ce = ye), ve = e.attributes.customFormat, ve !== void 0 && (j |= jn.CustomFormat), ve !== Se && (R = !0, Se = ve), F = e.attributes.outlineLevel, F !== void 0 && (j |= jn.OutlineLevel), F !== we && (R = !0, we = F), I = e.attributes.collapsed, I !== void 0 && (j |= jn.Collapsed), I !== Te && (R = !0, Te = I), j !== 0) {
2798
+ if (_e + 1 !== E || R) {
2799
+ let e = N !== void 0 && (N === "1" || N === "true"), t = ve !== void 0 && (ve === "1" || ve === "true");
2800
+ B = t && ye !== void 0 ? ye : null, t && B === null && (B = "0"), A = {
2801
+ min: E,
2802
+ max: E,
2509
2803
  value: {
2510
- sz: A === void 0 ? -1 : parseFloat(A),
2804
+ sz: M === void 0 ? -1 : parseFloat(M),
2511
2805
  csz: e,
2512
- h: j !== void 0 && (j === "1" || j === "true"),
2513
- s: Ce === null ? void 0 : Ce === "0" ? 0 : parseInt(Ce),
2514
- l: he === void 0 || he === "0" ? 0 : parseInt(he),
2515
- cl: N !== void 0 && (N === "1" || N === "true")
2806
+ h: P !== void 0 && (P === "1" || P === "true"),
2807
+ s: B === null ? void 0 : B === "0" ? 0 : parseInt(B),
2808
+ l: F === void 0 || F === "0" ? 0 : parseInt(F),
2809
+ cl: I !== void 0 && (I === "1" || I === "true")
2516
2810
  }
2517
- }, O.push(de);
2518
- } else de.max = w;
2811
+ }, ge.push(A);
2812
+ } else A.max = E;
2519
2813
  }
2520
- fe = w, L = !1;
2814
+ _e = E, R = !1;
2521
2815
  return;
2522
2816
  }
2523
- if (t === "sheetData" && (xe = !0), !be && t === "sheetData") {
2524
- be = !0;
2525
- let e = r.cols, t = e ? e.length : 0;
2526
- for (let n = 0; !Se && n < t; n++) e[n].v.s && (Se = !0);
2817
+ if (n === "sheetData" && (Oe = !0), !De && n === "sheetData") {
2818
+ De = !0;
2819
+ let e = t.cols, n = e ? e.length : 0;
2820
+ for (let t = 0; !z && t < n; t++) e[t].v.s && (z = !0);
2527
2821
  }
2528
- i?.onOpenTag?.(e);
2529
- }
2530
- }, Ee = (e) => {
2531
- let t = e.name;
2532
- if (t === "sheetData" && (xe = !1), !h || t !== "c" && t !== "f" || (g && (y = S.get(g) ?? null), y && (re.append(w, T, y), ce && le.append(w, T)), se !== null && ie.push([se, ae ? oe ? "error" : "dynamic" : "fixed"]), h = !1, y = null, g = null, _ = null, f = !1, ce = !1, se = null, ae = !1, oe = !1), ue) {
2533
- let r = t.indexOf(":");
2534
- if (r !== -1 && (t = t.slice(r + 1)), C) {
2535
- if (t === "is" || t === "v") {
2536
- let e = l?.onEnd?.();
2537
- e != null && n.pushAt(w, T, "" + e);
2538
- } else t !== "f" && l?.onCloseTag?.(e);
2822
+ r?.onOpenTag?.(e);
2823
+ }
2824
+ }, je = (t) => {
2825
+ let n = t.name;
2826
+ if (n === "sheetData" && (Oe = !1), !x || n !== "c" && n !== "f" || (S && (C = ce.get(S) ?? null), C && (se.append(E, D, C), me && w.append(E, D)), fe !== null && le.push([fe, ue ? de ? "error" : "dynamic" : "fixed"]), x = !1, C = null, S = null, ee = null, y = !1, me = !1, fe = null, ue = !1, de = !1), k) {
2827
+ let r = n.indexOf(":");
2828
+ if (r !== -1 && (n = n.slice(r + 1)), T) {
2829
+ if (n === "is" || n === "v") {
2830
+ let t = s?.onEnd?.();
2831
+ t != null && e.pushAt(E, D, typeof t == "number" ? "" + t : t);
2832
+ } else n !== "f" && s?.onCloseTag?.(t);
2539
2833
  }
2540
- f &&= !1, t === "c" && (ue = null, C = !1);
2834
+ y &&= !1, n === "c" && (k = null, T = !1);
2541
2835
  } else {
2542
- if (d) return d = !1, void (R = null);
2543
- i?.onCloseTag?.(e);
2836
+ if (p) return p = !1, void (Ee = null);
2837
+ r?.onCloseTag?.(t);
2544
2838
  }
2545
- }, De = (e) => {
2546
- let t = e.trim();
2547
- if (f) {
2548
- switch (E = null, D) {
2839
+ }, Me = (n) => {
2840
+ let a = n.trim();
2841
+ if (y) {
2842
+ switch (O = null, he) {
2549
2843
  case null:
2550
2844
  case "n":
2551
- E = parseFloat(t);
2845
+ O = parseFloat(a);
2552
2846
  break;
2553
2847
  case "b":
2554
- E = t === "1" || t === "true";
2848
+ O = a === "1" || a === "true";
2849
+ break;
2850
+ case "s": {
2851
+ let e = parseInt(a, 10), t = v.get(e);
2852
+ if (t === void 0) {
2853
+ let n = g?.get(e);
2854
+ t = n ? Sn(n, _) : null, v.set(e, t);
2855
+ }
2856
+ O = t ? {
2857
+ t: "r",
2858
+ v: {
2859
+ type: "richText",
2860
+ data: { runs: t }
2861
+ }
2862
+ } : a;
2555
2863
  break;
2556
- case "s":
2557
- E = t;
2864
+ }
2865
+ case "d": {
2866
+ let e = ((e, t = !1) => {
2867
+ if (!e) return null;
2868
+ let n = _n.exec(e);
2869
+ if (n) {
2870
+ let [, e, t, r] = n;
2871
+ return e === void 0 && t === void 0 && r === void 0 ? null : (3600 * parseFloat(e ?? "0") + 60 * parseFloat(t ?? "0") + parseFloat(r ?? "0")) / 86400;
2872
+ }
2873
+ let r = gn.exec(e);
2874
+ if (!r) return null;
2875
+ let [, i, a, o, s, c, l, u] = r;
2876
+ if (i === void 0 && s === void 0) return null;
2877
+ let d = 0;
2878
+ if (i !== void 0) {
2879
+ let e = parseInt(i, 10), n = parseInt(a, 10), r = parseInt(o, 10);
2880
+ if (n < 1 || n > 12 || r < 1 || r > 31) return null;
2881
+ let s = vn(e, n, r) - yn;
2882
+ if (d = s <= 60 ? s - 1 : s, t && (d -= 1462), d < 0) return null;
2883
+ }
2884
+ return s !== void 0 && (d += (3600 * parseInt(s, 10) + 60 * parseInt(c, 10) + (l === void 0 ? 0 : parseInt(l, 10)) + (u === void 0 ? 0 : parseFloat(u))) / 86400), d;
2885
+ })(a, !0 === c?.get(Dn));
2886
+ e === null ? d && (i?.(`Date '${a}' in cell ${m.cellToString({
2887
+ colIndex: D,
2888
+ rowIndex: E
2889
+ })} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"), O = "" + d(a)) : O = e;
2558
2890
  break;
2891
+ }
2559
2892
  case "e":
2560
- if (t === "#VALUE!") {
2561
- let e = ue.attributes.vm;
2893
+ if (a === "#VALUE!") {
2894
+ let e = k.attributes.vm;
2562
2895
  if (e !== void 0) {
2563
- let t = x[parseInt(e) - 1];
2564
- if (s.isError(t)) {
2565
- E = {
2896
+ let t = pe(e);
2897
+ if (l.isError(t)) {
2898
+ O = {
2566
2899
  t: "e",
2567
2900
  v: t.getCode()
2568
2901
  };
@@ -2570,86 +2903,86 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2570
2903
  }
2571
2904
  }
2572
2905
  }
2573
- let e = s.getBuiltInByLabel(t);
2574
- e ? E = {
2906
+ let e = l.getBuiltInByLabel(a);
2907
+ e ? O = {
2575
2908
  t: "e",
2576
2909
  v: e.getCode()
2577
- } : (E = t, a?.(`Unknown formula error '${t}' in cell ${m.cellToString({
2578
- colIndex: T,
2579
- rowIndex: w
2910
+ } : (O = a, i?.(`Unknown formula error '${a}' in cell ${m.cellToString({
2911
+ colIndex: D,
2912
+ rowIndex: E
2580
2913
  })}`));
2581
2914
  break;
2582
2915
  case "str":
2583
- case "inlineStr": C = !0;
2916
+ case "inlineStr": T = !0;
2584
2917
  }
2585
- E !== null && n.pushAt(w, T, E);
2918
+ O !== null && e.pushAt(E, D, O);
2586
2919
  }
2587
- if (g) {
2588
- if (b === g) y = ee;
2920
+ if (S) {
2921
+ if (ne === S) C = re;
2589
2922
  else {
2590
- if (y = S.get(g) ?? null, !y) {
2923
+ if (C = ce.get(S) ?? null, !C) {
2591
2924
  let e = [];
2592
- v = ne(t, w, T, e), y = [
2593
- v,
2925
+ te = oe(a, E, D, e), C = [
2926
+ te,
2594
2927
  e,
2595
- t
2596
- ], S.set(g, y);
2928
+ a
2929
+ ], ce.set(S, C);
2597
2930
  }
2598
- b = g, ee = y;
2931
+ ne = S, re = C;
2599
2932
  }
2600
- g = null;
2933
+ S = null;
2601
2934
  }
2602
- if (h) {
2603
- if (te !== null) {
2935
+ if (x) {
2936
+ if (ae !== null) {
2604
2937
  let e = ((e) => {
2605
- if (e.length < Ft.length || e.slice(0, Ft.length).toUpperCase() !== It) return Rt;
2606
- let t = Bt(e, Ft.length);
2607
- if (t === null || e.charCodeAt(t.end) !== 41 || e.charCodeAt(t.end + 1) !== 44 || e.charCodeAt(e.length - 1) !== 41) return Rt;
2938
+ if (e.length < rn.length || e.slice(0, rn.length).toUpperCase() !== an) return sn;
2939
+ let t = ln(e, rn.length);
2940
+ if (t === null || e.charCodeAt(t.end) !== 41 || e.charCodeAt(t.end + 1) !== 44 || e.charCodeAt(e.length - 1) !== 41) return sn;
2608
2941
  let n = t.value;
2609
- return n.toUpperCase() === Lt ? zt : n.length === 0 ? Rt : {
2942
+ return n.toUpperCase() === on ? cn : n.length === 0 ? sn : {
2610
2943
  kind: "formula",
2611
2944
  formula: n
2612
2945
  };
2613
- })(t);
2614
- e.kind !== "none" && te.push({
2615
- sheet: r,
2616
- rowIndex: w,
2617
- colIndex: T,
2946
+ })(a);
2947
+ e.kind !== "none" && ae.push({
2948
+ sheet: t,
2949
+ rowIndex: E,
2950
+ colIndex: D,
2618
2951
  formula: e.kind === "formula" ? e.formula : null
2619
2952
  });
2620
2953
  }
2621
2954
  let e = [];
2622
- v = ne(t, w, T, e), y = [
2623
- v,
2955
+ te = oe(a, E, D, e), C = [
2956
+ te,
2624
2957
  e,
2625
- t
2958
+ a
2626
2959
  ];
2627
2960
  }
2628
- C ? l?.onText?.(e) : d || i?.onText?.(t);
2629
- }, z = {
2961
+ T ? s?.onText?.(n) : p || r?.onText?.(a);
2962
+ }, V = {
2630
2963
  r: void 0,
2631
2964
  t: void 0,
2632
2965
  s: void 0,
2633
2966
  cm: void 0,
2634
2967
  vm: void 0
2635
- }, Oe = {
2968
+ }, Ne = {
2636
2969
  name: "c",
2637
- attributes: z,
2970
+ attributes: V,
2638
2971
  isSelfClosing: !1
2639
- }, B = {
2972
+ }, Pe = {
2640
2973
  t: void 0,
2641
2974
  si: void 0,
2642
2975
  ref: void 0,
2643
2976
  ca: void 0
2644
- }, ke = {
2977
+ }, Fe = {
2645
2978
  name: "f",
2646
- attributes: B,
2979
+ attributes: Pe,
2647
2980
  isSelfClosing: !1
2648
- }, Ae = {
2981
+ }, Ie = {
2649
2982
  name: "v",
2650
2983
  attributes: {},
2651
2984
  isSelfClosing: !1
2652
- }, V = {
2985
+ }, H = {
2653
2986
  r: void 0,
2654
2987
  s: void 0,
2655
2988
  ht: void 0,
@@ -2658,180 +2991,382 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2658
2991
  customHeight: void 0,
2659
2992
  customFormat: void 0,
2660
2993
  outlineLevel: void 0
2661
- }, je = {
2994
+ }, Le = {
2662
2995
  name: "row",
2663
- attributes: V,
2996
+ attributes: H,
2664
2997
  isSelfClosing: !1
2665
- }, Me = jt.NEED_MORE, H = jt.NOT_HANDLED, U = jt.decodeText, Ne = !1, Pe = (e, t, n, r) => {
2998
+ }, Re = Qt.NEED_MORE, U = Qt.NOT_HANDLED, W = Qt.decodeText, G = !1, ze = (e, t, n, r) => {
2666
2999
  for (;;) {
2667
3000
  let i = 0;
2668
3001
  for (; t < n && ((i = e.charCodeAt(t)) === 32 || i === 9 || i === 10 || i === 13);) t++;
2669
- if (t >= n) return Me;
2670
- if (i === 62) return Ne = !1, t + 1;
2671
- if (i === 47) return t + 1 >= n ? Me : e.charCodeAt(t + 1) === 62 ? (Ne = !0, t + 2) : H;
3002
+ if (t >= n) return Re;
3003
+ if (i === 62) return G = !1, t + 1;
3004
+ if (i === 47) return t + 1 >= n ? Re : e.charCodeAt(t + 1) === 62 ? (G = !0, t + 2) : U;
2672
3005
  let a = t;
2673
3006
  for (; t < n && (i = e.charCodeAt(t)) !== 61;) {
2674
- if (i === 62 || i === 47 || i === 32 || i === 9 || i === 10 || i === 13) return H;
3007
+ if (i === 62 || i === 47 || i === 32 || i === 9 || i === 10 || i === 13) return U;
2675
3008
  t++;
2676
3009
  }
2677
- if (t + 1 >= n) return Me;
3010
+ if (t + 1 >= n) return Re;
2678
3011
  let o = t - a, s = e.charCodeAt(t + 1);
2679
- if (s !== 34 && s !== 39) return H;
3012
+ if (s !== 34 && s !== 39) return U;
2680
3013
  let c = t + 2, l = c;
2681
3014
  for (; l < n && (i = e.charCodeAt(l)) !== s;) {
2682
- if (i === 38 || i < 32) return H;
3015
+ if (i === 38 || i < 32) return U;
2683
3016
  l++;
2684
3017
  }
2685
- if (l >= n) return Me;
3018
+ if (l >= n) return Re;
2686
3019
  t = l + 1;
2687
3020
  let u = e.charCodeAt(a);
2688
3021
  if (r === 2) switch (o) {
2689
3022
  case 1:
2690
- u === 114 ? V.r = e.slice(c, l) : u === 115 && (V.s = e.slice(c, l));
3023
+ u === 114 ? H.r = e.slice(c, l) : u === 115 && (H.s = e.slice(c, l));
2691
3024
  break;
2692
3025
  case 2:
2693
- e.startsWith("ht", a) && (V.ht = e.slice(c, l));
3026
+ e.startsWith("ht", a) && (H.ht = e.slice(c, l));
2694
3027
  break;
2695
3028
  case 6:
2696
- e.startsWith("hidden", a) && (V.hidden = e.slice(c, l));
3029
+ e.startsWith("hidden", a) && (H.hidden = e.slice(c, l));
2697
3030
  break;
2698
3031
  case 9:
2699
- e.startsWith("collapsed", a) && (V.collapsed = e.slice(c, l));
3032
+ e.startsWith("collapsed", a) && (H.collapsed = e.slice(c, l));
2700
3033
  break;
2701
- case 12: e.startsWith("customHeight", a) ? V.customHeight = e.slice(c, l) : e.startsWith("customFormat", a) ? V.customFormat = e.slice(c, l) : e.startsWith("outlineLevel", a) && (V.outlineLevel = e.slice(c, l));
3034
+ case 12: e.startsWith("customHeight", a) ? H.customHeight = e.slice(c, l) : e.startsWith("customFormat", a) ? H.customFormat = e.slice(c, l) : e.startsWith("outlineLevel", a) && (H.outlineLevel = e.slice(c, l));
2702
3035
  }
2703
- else if (r === 0) o === 1 ? u === 114 ? z.r = e.slice(c, l) : u === 116 ? z.t = e.slice(c, l) : u === 115 && (z.s = e.slice(c, l)) : o === 2 && e.charCodeAt(a + 1) === 109 && (u === 99 ? z.cm = e.slice(c, l) : u === 118 && (z.vm = e.slice(c, l)));
2704
- else if (o === 1) u === 116 && (B.t = e.slice(c, l));
3036
+ else if (r === 0) o === 1 ? u === 114 ? V.r = e.slice(c, l) : u === 116 ? V.t = e.slice(c, l) : u === 115 && (V.s = e.slice(c, l)) : o === 2 && e.charCodeAt(a + 1) === 109 && (u === 99 ? V.cm = e.slice(c, l) : u === 118 && (V.vm = e.slice(c, l)));
3037
+ else if (o === 1) u === 116 && (Pe.t = e.slice(c, l));
2705
3038
  else if (o === 2) {
2706
3039
  let t = e.charCodeAt(a + 1);
2707
- u === 115 && t === 105 ? B.si = e.slice(c, l) : u === 99 && t === 97 && (B.ca = e.slice(c, l));
2708
- } else o === 3 && e.startsWith("ref", a) && (B.ref = e.slice(c, l));
3040
+ u === 115 && t === 105 ? Pe.si = e.slice(c, l) : u === 99 && t === 97 && (Pe.ca = e.slice(c, l));
3041
+ } else o === 3 && e.startsWith("ref", a) && (Pe.ref = e.slice(c, l));
2709
3042
  }
2710
- }, Fe = (e, t, n) => e.charCodeAt(t + 1) === 47 && e.charCodeAt(t + 2) === n && e.charCodeAt(t + 3) === 62;
3043
+ }, Be = (e, t, n) => e.charCodeAt(t + 1) === 47 && e.charCodeAt(t + 2) === n && e.charCodeAt(t + 3) === 62;
2711
3044
  return {
2712
- ...i,
3045
+ ...r,
2713
3046
  onEnd: () => {
2714
- O.length > 0 && (r.rows = m.runsToRefs(O, !1));
2715
- let t = re.done(Kt), a = t.length;
2716
- if (a > 0) {
2717
- let e = Array(a);
2718
- for (let n = 0; n < a; n++) {
2719
- let r = t[n], i = m.rangeToString(r), a = r.value[1], o = m.resolveRelativeToA1(a, r.rowStart, r.colStart);
2720
- e[n] = [i, o];
3047
+ if (f?.()) {
3048
+ let e = 0, t = [], n = (e, t) => ({
3049
+ min: e,
3050
+ max: t,
3051
+ value: {
3052
+ sz: -1,
3053
+ csz: !1,
3054
+ h: !0,
3055
+ s: void 0,
3056
+ l: 0,
3057
+ cl: !1
3058
+ }
3059
+ });
3060
+ for (let r of h) r.min > e && t.push(n(e, r.min - 1)), e = Math.max(e, r.max + 1);
3061
+ e <= 1048575 && t.push(n(e, 1048575)), t.length > 0 && (ge.push(...t), ge.sort((e, t) => e.min - t.min));
3062
+ }
3063
+ ge.length > 0 && (t.rows = m.runsToRefs(ge, !1));
3064
+ let n = se.done(Mn);
3065
+ n = ((e, t) => {
3066
+ let n = null;
3067
+ for (let t = 0; t < e.length; t++) {
3068
+ let r = e[t];
3069
+ if (!Nn.test(r.value[2])) continue;
3070
+ n ??= /* @__PURE__ */ new Map();
3071
+ let i = r.value[0], a = n.get(i);
3072
+ a ? a.push(r) : n.set(i, [r]);
3073
+ }
3074
+ if (n === null) return e;
3075
+ let r = /* @__PURE__ */ new Set();
3076
+ for (let e of n.values()) {
3077
+ let n = e[0], i = {
3078
+ rowStart: n.rowStart,
3079
+ colStart: n.colStart,
3080
+ rowEnd: n.rowEnd,
3081
+ colEnd: n.colEnd
3082
+ }, a = 0;
3083
+ for (let t = 0; t < e.length; t++) {
3084
+ let n = e[t];
3085
+ n.rowStart < i.rowStart && (i.rowStart = n.rowStart), n.colStart < i.colStart && (i.colStart = n.colStart), n.rowEnd > i.rowEnd && (i.rowEnd = n.rowEnd), n.colEnd > i.colEnd && (i.colEnd = n.colEnd), a += (n.rowEnd - n.rowStart + 1) * (n.colEnd - n.colStart + 1);
3086
+ }
3087
+ if (a !== (i.rowEnd - i.rowStart + 1) * (i.colEnd - i.colStart + 1)) continue;
3088
+ let o = hn(m.resolveRelativeToA1(n.value[1], i.rowStart, i.colStart), i);
3089
+ if (o) {
3090
+ (t.dataTables ??= []).push(o);
3091
+ for (let t = 0; t < e.length; t++) r.add(e[t]);
3092
+ }
3093
+ }
3094
+ return r.size === 0 ? e : e.filter((e) => !r.has(e));
3095
+ })(n, t);
3096
+ let i = n.length;
3097
+ if (i > 0) {
3098
+ let e = Array(i);
3099
+ for (let t = 0; t < i; t++) {
3100
+ let r = n[t], i = m.rangeToString(r), a = r.value[1], o = m.resolveRelativeToA1(a, r.rowStart, r.colStart);
3101
+ e[t] = [i, o];
2721
3102
  }
2722
- r.formulas = e;
3103
+ t.formulas = e;
2723
3104
  }
2724
- let o = le.done(!0), s = o.length;
3105
+ let a = w.done(!0), s = a.length;
2725
3106
  if (s > 0) {
2726
3107
  let e = Array(s);
2727
3108
  for (let t = 0; t < s; t++) {
2728
- let n = o[t], r = m.rangeToString(n);
3109
+ let n = a[t], r = m.rangeToString(n);
2729
3110
  e[t] = r;
2730
3111
  }
2731
- r.volatile = e;
2732
- }
2733
- ie.length > 0 && (r.formulaArray = [...ie]);
2734
- let l = p.length;
2735
- if (l > 0) {
2736
- p.sort(e.createRangeComparator(c.Axis.Column));
2737
- let t = p[0], n = t.colStart, i = t.colEnd, a = t.rowEnd, o = t.value, s = [];
2738
- s.push(t);
2739
- let u = null;
2740
- for (let e = 1; e < l; e++) u = p[e], o !== u.value || n !== u.colStart || i !== u.colEnd || a + 1 !== u.rowEnd ? (s.push(u), t = u, n = t.colStart, i = t.colEnd, a = t.rowEnd, o = t.value) : (a = u.rowEnd, t.rowEnd = a);
3112
+ t.volatile = e;
3113
+ }
3114
+ le.length > 0 && (t.formulaArray = [...le]);
3115
+ let c = b.length;
3116
+ if (c > 0) {
3117
+ b.sort(o.createRangeComparator(u.Axis.Column));
3118
+ let e = b[0], n = e.colStart, r = e.colEnd, i = e.rowEnd, a = e.value, s = [];
3119
+ s.push(e);
3120
+ let l = null;
3121
+ for (let t = 1; t < c; t++) l = b[t], a !== l.value || n !== l.colStart || r !== l.colEnd || i + 1 !== l.rowEnd ? (s.push(l), e = l, n = e.colStart, r = e.colEnd, i = e.rowEnd, a = e.value) : (i = l.rowEnd, e.rowEnd = i);
2741
3122
  let d = s.length, f = Array(d);
2742
3123
  for (let e = 0; e < d; e++) {
2743
3124
  let t = s[e], n = m.rangeToString(t);
2744
3125
  f[e] = [n, t.value];
2745
3126
  }
2746
- r.directStyles = f;
3127
+ t.directStyles = f;
2747
3128
  }
2748
- let u = n.build();
2749
- u && (r.data = u.tuples), i?.onEnd?.();
3129
+ let l = e.build();
3130
+ l && (t.data = l.tuples), r?.onEnd?.();
2750
3131
  },
2751
- onOpenTag: Te,
2752
- onCloseTag: Ee,
2753
- onText: De,
3132
+ onOpenTag: Ae,
3133
+ onCloseTag: je,
3134
+ onText: Me,
2754
3135
  elementScanners: [{
2755
3136
  name: "c",
2756
3137
  scan: (e, t, n) => {
2757
- if (!d || ue !== null) return H;
2758
- z.r = z.t = z.s = z.cm = z.vm = void 0;
2759
- let r = Pe(e, t + 2, n, 0);
3138
+ if (!p || k !== null) return U;
3139
+ V.r = V.t = V.s = V.cm = V.vm = void 0;
3140
+ let r = ze(e, t + 2, n, 0);
2760
3141
  if (r < 0) return r;
2761
- let i = z.t;
2762
- if (z.r === void 0 || i === "str" || i === "inlineStr") return H;
3142
+ let i = V.t;
3143
+ if (V.r === void 0 || i === "str" || i === "inlineStr") return U;
2763
3144
  let a = !1, o = -1, s = -1, c = -1, l = -1, u = r;
2764
- if (!Ne) for (B.t = B.si = B.ref = B.ca = void 0;;) {
3145
+ if (!G) for (Pe.t = Pe.si = Pe.ref = Pe.ca = void 0;;) {
2765
3146
  let t = e.indexOf("<", r);
2766
- if (t === -1 || t + 3 >= n) return Me;
3147
+ if (t === -1 || t + 3 >= n) return Re;
2767
3148
  for (let n = r; n < t; n++) {
2768
3149
  let t = e.charCodeAt(n);
2769
- if (t !== 32 && t !== 9 && t !== 10 && t !== 13) return H;
3150
+ if (t !== 32 && t !== 9 && t !== 10 && t !== 13) return U;
2770
3151
  }
2771
3152
  let i = e.charCodeAt(t + 1), d = e.charCodeAt(t + 2);
2772
3153
  if (i === 47) {
2773
- if (!Fe(e, t, 99)) return H;
3154
+ if (!Be(e, t, 99)) return U;
2774
3155
  u = t + 4;
2775
3156
  break;
2776
3157
  }
2777
3158
  if (i !== 102 || a || c !== -1 || d !== 32 && d !== 62 && d !== 47) {
2778
- if (i !== 118 || d !== 62 || c !== -1) return H;
3159
+ if (i !== 118 || d !== 62 || c !== -1) return U;
2779
3160
  {
2780
3161
  let i = e.indexOf("<", t + 3);
2781
- if (i === -1 || i + 3 >= n) return Me;
2782
- if (!Fe(e, i, 118)) return H;
3162
+ if (i === -1 || i + 3 >= n) return Re;
3163
+ if (!Be(e, i, 118)) return U;
2783
3164
  c = t + 3, l = i, r = i + 4;
2784
3165
  }
2785
3166
  } else {
2786
- if (a = !0, r = Pe(e, t + 2, n, 1), r < 0) return r;
2787
- if (Ne) continue;
3167
+ if (a = !0, r = ze(e, t + 2, n, 1), r < 0) return r;
3168
+ if (Pe.t === "dataTable") return U;
3169
+ if (G) continue;
2788
3170
  let i = e.indexOf("<", r);
2789
- if (i === -1 || i + 3 >= n) return Me;
2790
- if (!Fe(e, i, 102)) return H;
3171
+ if (i === -1 || i + 3 >= n) return Re;
3172
+ if (!Be(e, i, 102)) return U;
2791
3173
  o = r, s = i, r = i + 4;
2792
3174
  }
2793
3175
  }
2794
- return Te(Oe), a && (Te(ke), s > o && De(U(e.slice(o, s))), Ee(ke)), c !== -1 && (Te(Ae), l > c && De(U(e.slice(c, l))), Ee(Ae)), Ee(Oe), u;
3176
+ return Ae(Ne), a && (Ae(Fe), s > o && Me(W(e.slice(o, s))), je(Fe)), c !== -1 && (Ae(Ie), l > c && Me(W(e.slice(c, l))), je(Ie)), je(Ne), u;
2795
3177
  }
2796
3178
  }, {
2797
3179
  name: "row",
2798
- openTag: je,
3180
+ openTag: Le,
2799
3181
  scan: (e, t, n) => {
2800
- if (!xe || d || ue !== null) return H;
2801
- V.r = V.s = V.ht = V.hidden = V.collapsed = V.customHeight = V.customFormat = V.outlineLevel = void 0;
2802
- let r = Pe(e, t + 4, n, 2);
2803
- return r < 0 ? r : Ne || V.r === void 0 ? H : (Te(je), r);
3182
+ if (!Oe || p || k !== null) return U;
3183
+ H.r = H.s = H.ht = H.hidden = H.collapsed = H.customHeight = H.customFormat = H.outlineLevel = void 0;
3184
+ let r = ze(e, t + 4, n, 2);
3185
+ return r < 0 ? r : G || H.r === void 0 ? U : (Ae(Le), r);
2804
3186
  }
2805
3187
  }]
2806
3188
  };
2807
- }, Yt = "hiddenXfs", Xt = (e) => (Array.isArray(e) ? e[1] : e?.v)?.s, Zt = (e) => {
3189
+ }, Ln = /* @__PURE__ */ new Map([
3190
+ ["urn:schemas-microsoft-com:vml", "v"],
3191
+ ["urn:schemas-microsoft-com:office:office", "o"],
3192
+ ["urn:schemas-microsoft-com:office:excel", "x"]
3193
+ ]), Rn = [...Ln].map(([e, t]) => ` xmlns:${t}="${e}"`).join(""), zn = /<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g, Bn = /(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g, Vn = /\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
3194
+ function Hn(e) {
3195
+ if (!e || !((e) => {
3196
+ let t;
3197
+ for (Vn.lastIndex = 0; (t = Vn.exec(e)) !== null;) {
3198
+ let e = Ln.get(t[2] ?? t[3] ?? "");
3199
+ if (e && e !== (t[1] ?? "")) return !0;
3200
+ }
3201
+ return !1;
3202
+ })(e)) return e;
3203
+ let t = [], n = (e, n, r) => {
3204
+ let i = e.indexOf(":");
3205
+ if (i === -1 && r) return null;
3206
+ let a = i === -1 ? "" : e.substring(0, i);
3207
+ if (a === "xmlns") return null;
3208
+ let o = ((e, n) => {
3209
+ let r = n?.get(e);
3210
+ if (r !== void 0) return r;
3211
+ for (let n = t.length - 1; n >= 0; n--) {
3212
+ let r = t[n].bindings.get(e);
3213
+ if (r !== void 0) return r;
3214
+ }
3215
+ })(a, n), s = o === void 0 ? void 0 : Ln.get(o);
3216
+ return s ? `${s}:${i === -1 ? e : e.substring(i + 1)}` : null;
3217
+ }, r = !1, i = !1, a = e.replace(zn, (e, a, o, s, c) => {
3218
+ if (a) {
3219
+ let r = t[t.length - 1], i = n(o, null, !1);
3220
+ return r && r.name === o && (r.nested > 0 ? r.nested-- : t.pop()), i ? `</${i}>` : e;
3221
+ }
3222
+ let l = ((e) => {
3223
+ let t, n = null;
3224
+ for (Vn.lastIndex = 0; (t = Vn.exec(e)) !== null;) (n ??= /* @__PURE__ */ new Map()).set(t[1] ?? "", t[2] ?? t[3] ?? "");
3225
+ return n;
3226
+ })(s);
3227
+ l?.forEach((e, t) => {
3228
+ let n = [...Ln].find(([, e]) => e === t)?.[0];
3229
+ n && n !== e && (r = !0);
3230
+ });
3231
+ let u = n(o, l, !1), d = s.replace(Bn, (e, t, r, i, a) => {
3232
+ if (r === "xmlns" || r.startsWith("xmlns:")) {
3233
+ let t = a.slice(1, -1);
3234
+ return Ln.has(t) ? "" : e;
3235
+ }
3236
+ let o = n(r, l, !0);
3237
+ return o ? `${t}${o}${i}${a}` : e;
3238
+ });
3239
+ if (i || (i = !0, d = d.replace(/\s+$/, "") + Rn), !c) {
3240
+ let e = t[t.length - 1];
3241
+ l ? t.push({
3242
+ name: o,
3243
+ bindings: l,
3244
+ nested: 0
3245
+ }) : e && e.name === o && e.nested++;
3246
+ }
3247
+ return `<${u ?? o}${d}${c}>`;
3248
+ });
3249
+ return r ? e : a;
3250
+ }
3251
+ var Un = {
3252
+ creator: "author",
3253
+ category: "category",
3254
+ description: "comments",
3255
+ contentStatus: "contentStatus",
3256
+ created: "creationDate",
3257
+ keywords: "keywords",
3258
+ lastModifiedBy: "lastAuthor",
3259
+ modified: "lastModifiedDate",
3260
+ lastPrinted: "lastPrinted",
3261
+ revision: "revisionNumber",
3262
+ subject: "subject",
3263
+ title: "title"
3264
+ }, Wn = {
3265
+ Company: "company",
3266
+ Manager: "manager"
3267
+ }, Gn = {
3268
+ lpwstr: y.Type.String,
3269
+ lpstr: y.Type.String,
3270
+ bstr: y.Type.String,
3271
+ i1: y.Type.Number,
3272
+ i2: y.Type.Number,
3273
+ i4: y.Type.Number,
3274
+ i8: y.Type.Number,
3275
+ int: y.Type.Number,
3276
+ ui1: y.Type.Number,
3277
+ ui2: y.Type.Number,
3278
+ ui4: y.Type.Number,
3279
+ ui8: y.Type.Number,
3280
+ uint: y.Type.Number,
3281
+ r4: y.Type.Float,
3282
+ r8: y.Type.Float,
3283
+ decimal: y.Type.Float,
3284
+ bool: y.Type.Boolean,
3285
+ filetime: y.Type.Date,
3286
+ date: y.Type.Date
3287
+ }, Kn = (e) => {
3288
+ let t = e.kind ? Gn[e.kind] : void 0;
3289
+ if (!t) return null;
3290
+ let n, r = e.value.trim();
3291
+ if (t === y.Type.String) n = {
3292
+ key: e.key,
3293
+ type: t,
3294
+ value: e.value
3295
+ };
3296
+ else if (t === y.Type.Boolean) {
3297
+ if (r !== "true" && r !== "false" && r !== "1" && r !== "0") return null;
3298
+ n = {
3299
+ key: e.key,
3300
+ type: t,
3301
+ value: r === "true" || r === "1"
3302
+ };
3303
+ } else if (t === y.Type.Date) {
3304
+ let i = new Date(r);
3305
+ if (!r || isNaN(i.getTime())) return null;
3306
+ n = {
3307
+ key: e.key,
3308
+ type: t,
3309
+ value: i.toISOString()
3310
+ };
3311
+ } else {
3312
+ let i = Number(r);
3313
+ if (!r || !Number.isFinite(i)) return null;
3314
+ let a = t === y.Type.Number && i >= -2147483648 && i <= 2147483647;
3315
+ n = {
3316
+ key: e.key,
3317
+ type: a ? t : y.Type.Float,
3318
+ value: i
3319
+ };
3320
+ }
3321
+ return e.linkTarget && (n.linkTarget = e.linkTarget), n;
3322
+ }, qn = "hiddenXfs", Jn = (e) => (Array.isArray(e) ? e[1] : e?.v)?.s, Yn = (e) => {
2808
3323
  if (!e || e.length === 0) return !1;
2809
3324
  let t = m.refsToRuns(e, !0), n = 0;
2810
3325
  for (let e of t) {
2811
3326
  if (e.min > n || e.value?.s === void 0) return !1;
2812
3327
  n = Math.max(n, e.max + 1);
2813
3328
  }
2814
- return n > C;
2815
- }, Qt = (e, t) => {
3329
+ return n > F;
3330
+ }, Xn = (e, t) => {
2816
3331
  e.protection = {
2817
3332
  ...e.protection,
2818
3333
  showFormulas: t
2819
3334
  };
2820
- }, $t = (e) => {
2821
- let t = e.indexOf(":");
2822
- return t === -1 ? e : e.slice(t + 1);
2823
- }, en = {
3335
+ }, Zn = (e) => {
3336
+ let t = Array.isArray(e) ? e[1] : e.v;
3337
+ if (!t || !("s" in t)) return;
3338
+ let n = t.s;
3339
+ return delete t.s, n;
3340
+ }, Qn = (e, t, n, r) => {
3341
+ if (!e) return;
3342
+ let i, a = t ? 2 : 1, o = t ? n.rowStart : n.colStart, s = t ? n.rowEnd : n.colEnd, c = -1;
3343
+ for (let n of e) {
3344
+ let e = m.refToRun(n, t), l = Zn(n);
3345
+ e && l !== void 0 ? l !== c || (t ? i.colEnd : i.rowEnd) + 1 !== e.min ? (i = {
3346
+ colStart: t ? e.min : o,
3347
+ rowStart: t ? o : e.min,
3348
+ colEnd: t ? e.max : s,
3349
+ rowEnd: t ? s : e.max,
3350
+ value: {
3351
+ kind: a,
3352
+ index: l
3353
+ }
3354
+ }, c = l, r.push(i)) : t ? i.colEnd = e.max : i.rowEnd = e.max : c = -1;
3355
+ }
3356
+ }, $n = {
2824
3357
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": "workbooks",
2825
3358
  "application/vnd.ms-excel.sheet.macroEnabled.main+xml": "workbooks",
2826
3359
  "application/vnd.ms-excel.sheet.binary.macroEnabled.main": "workbooks",
2827
3360
  "application/vnd.ms-excel.addin.macroEnabled.main+xml": "workbooks",
2828
3361
  "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": "workbooks",
3362
+ "application/vnd.ms-excel.template.macroEnabled.main+xml": "workbooks",
2829
3363
  "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": "sheets",
2830
3364
  "application/vnd.ms-excel.worksheet": "sheets",
2831
3365
  "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": "charts",
2832
3366
  "application/vnd.ms-excel.chartsheet": "charts",
2833
3367
  "application/vnd.ms-excel.macrosheet+xml": "macros",
2834
3368
  "application/vnd.ms-excel.macrosheet": "macros",
3369
+ "application/vnd.ms-excel.intlmacrosheet+xml": "macros",
2835
3370
  "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": "dialogs",
2836
3371
  "application/vnd.ms-excel.dialogsheet": "dialogs",
2837
3372
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml": "strs",
@@ -2850,47 +3385,63 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2850
3385
  "application/vnd.ms-excel.externalLink": "links",
2851
3386
  "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml": "links",
2852
3387
  "application/vnd.openxmlformats-officedocument.theme+xml": "themes"
2853
- }, tn = S({ readXLSX: () => on }), nn = (e) => e.startsWith("/") ? e.slice(1) : e, rn = /^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i, an = (e) => typeof e == "string" ? e : (e?.runs ?? []).map((e) => e.text ?? "").join(""), on = async (e, o) => {
2854
- let { password: s, onVBA: c, profile: l, calcOnLoad: p = "auto", createWorkbookOptions: h = {}, ...v } = o ?? {}, y = !!h.origin && typeof h.origin != "string", x = l ? new U(typeof l == "function" ? l : void 0) : null, ne = [], re = (e, t, n) => {
2855
- ne.push([
3388
+ }, er = Me({ readXLSX: () => ar }), tr = (e) => e.startsWith("/") ? e.slice(1) : e, nr = [
3389
+ 208,
3390
+ 207,
3391
+ 17,
3392
+ 224,
3393
+ 161,
3394
+ 177,
3395
+ 26,
3396
+ 225
3397
+ ], rr = /^xl\/worksheets\/[^/]+\.xml$/i, ir = (e) => typeof e == "string" ? e : (e?.runs ?? []).map((e) => e.text ?? "").join(""), ar = async (o, s) => {
3398
+ let { password: l, onVBA: u, profile: f, calcOnLoad: h = "auto", createWorkbookOptions: g = {}, ...v } = s ?? {};
3399
+ await p.load();
3400
+ let y = !!g.origin && typeof g.origin != "string", S = f ? new Qe(typeof f == "function" ? f : void 0) : null, ee = [], C = (e, t, n) => {
3401
+ ee.push([
2856
3402
  e,
2857
3403
  t ?? "",
2858
3404
  n
2859
3405
  ]);
2860
- }, S = { onWarning: re }, ie = o?.progress, ae = ie?.onProgress ? ie.onProgress.bind(ie) : void 0, oe = e.byteLength, le = 0, C = 0, E = ae ? (e) => {
2861
- if (le <= 0) return;
2862
- C += e;
2863
- let t = Math.min(oe, Math.round(C / le * oe));
2864
- ae(t, oe);
2865
- } : void 0, ue = import("./sDVzjXC1mS5rucF5.mjs"), O = null;
3406
+ }, ne = { onWarning: C }, ae = s?.progress, oe = ae?.onProgress ? ae.onProgress.bind(ae) : void 0, se = o.byteLength, ce = 0, le = 0, de = oe ? (e) => {
3407
+ if (ce <= 0) return;
3408
+ le += e;
3409
+ let t = Math.min(se, Math.round(le / ce * se));
3410
+ oe(t, se);
3411
+ } : void 0, me = import("./CdW0mis0FyG90paw.js"), w = null;
2866
3412
  try {
2867
- O = new DOMParser();
3413
+ w = new DOMParser();
2868
3414
  } catch {}
2869
- let k = null;
3415
+ let T = null;
2870
3416
  try {
2871
- k = new XMLSerializer();
3417
+ T = new XMLSerializer();
2872
3418
  } catch {}
2873
- let A, j, me, M = null;
2874
- O || (M = import("./D7DWH3-5fBNx8jtc.mjs").then((e) => D(e.default, 1)));
3419
+ let D, O, k, ge = null;
3420
+ w || (ge = import("./CkfqUcoAlpPupbbK.js").then((e) => P(e.default, 1)));
2875
3421
  try {
2876
- let [e, t] = await Promise.all([M, ue]);
2877
- A = new t.DOMTransformer(), j = O ?? new e.DOMParser(), me = k ?? new e.XMLSerializer();
3422
+ let [e, t] = await Promise.all([ge, me]);
3423
+ D = new t.DOMTransformer(), O = w ?? new e.DOMParser(), k = T ?? new e.XMLSerializer();
2878
3424
  } catch (e) {
2879
3425
  throw Error("Unable to load XLSX parser.", { cause: e });
2880
3426
  }
2881
- let N, ge = (e) => me.serializeToString(e);
3427
+ let A, M = (e) => k.serializeToString(e);
3428
+ if (((e) => {
3429
+ if (e.byteLength < nr.length) return !1;
3430
+ let t = new Uint8Array(e, 0, nr.length);
3431
+ return nr.every((e, n) => t[n] === e);
3432
+ })(o)) throw new i("This is an Excel 97-2003 workbook (.xls), which cannot be read. Save it as '.xlsx' and try again.");
2882
3433
  try {
2883
- N = await H.create(e);
3434
+ A = await Ze.create(o);
2884
3435
  } catch (e) {
2885
3436
  throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: e });
2886
3437
  }
2887
- x?.mark("zip-open");
3438
+ S?.mark("zip-open");
2888
3439
  try {
2889
- if (!N.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
2890
- let e = (e) => {
2891
- let t = N.getEntry(e);
3440
+ if (!A.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
3441
+ let a = (e) => {
3442
+ let t = A.getEntry(e);
2892
3443
  return t ? { content: t } : void 0;
2893
- }, r = {
3444
+ }, o = {
2894
3445
  workbooks: [],
2895
3446
  sheets: [],
2896
3447
  charts: [],
@@ -2923,7 +3474,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2923
3474
  let t = r.ContentType, n = r.PartName;
2924
3475
  if (!t || !n) return;
2925
3476
  e.overrides[n.startsWith("/") ? n.slice(1) : n] = t;
2926
- let i = en[t], a = i ? e[i] : void 0;
3477
+ let i = $n[t], a = i ? e[i] : void 0;
2927
3478
  Array.isArray(a) && a.push(n);
2928
3479
  } else if (n === "Default") {
2929
3480
  let t = r.Extension, n = r.ContentType;
@@ -2935,151 +3486,136 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2935
3486
  },
2936
3487
  onError: (e) => {
2937
3488
  ((e) => {
2938
- ne.push([e, "[Content_Types].xml"]);
3489
+ ee.push([e, "[Content_Types].xml"]);
2939
3490
  })(`Error parsing content types: ${e?.message ?? e}`);
2940
3491
  }
2941
- }))(r), t = await N.getTextStream("[Content_Types].xml");
3492
+ }))(o), t = await A.getTextStream("[Content_Types].xml");
2942
3493
  if (!t) throw Error("Error parsing content types: '[Content_Types].xml'");
2943
3494
  try {
2944
- await Je.parseStream(t, e, { xmlns: !1 });
3495
+ await mt.parseStream(t, e, { xmlns: !1 });
2945
3496
  } catch (e) {
2946
3497
  throw Error("Error parsing content types: '[Content_Types].xml'", { cause: e });
2947
3498
  }
2948
- y && await N.getBuffer("[Content_Types].xml");
2949
- }
2950
- x?.mark("content-types");
2951
- let o = r.sst, s = /* @__PURE__ */ new Set();
2952
- for (let e of r.sheets) s.add(nn(e));
2953
- o && s.add(nn(o));
2954
- for (let e of s) le += N.uncompressedSize(e);
2955
- if (await N.prefetch((e) => !s.has(e) && !rn.test(e)), x?.mark("prefetch-side-parts"), r.workbooks.length === 0) {
2956
- let t = Oe("_rels/.rels", e, j, A, S);
2957
- if (t) {
2958
- for (let e of t.values()) if (e.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" && e.target) {
2959
- r.workbooks.push(e.target);
3499
+ y && await A.getBuffer("[Content_Types].xml");
3500
+ }
3501
+ S?.mark("content-types");
3502
+ let s = o.sst, l = /* @__PURE__ */ new Set();
3503
+ for (let e of o.sheets) l.add(tr(e));
3504
+ s && l.add(tr(s));
3505
+ for (let e of l) ce += A.uncompressedSize(e);
3506
+ if (await A.prefetch((e) => !l.has(e) && !rr.test(e)), S?.mark("prefetch-side-parts"), o.workbooks.length === 0) {
3507
+ let e = Ge("_rels/.rels", a, O, D, ne);
3508
+ if (e) {
3509
+ for (let t of e.values()) if (t.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" && t.target) {
3510
+ o.workbooks.push(t.target);
2960
3511
  break;
2961
3512
  }
2962
3513
  }
2963
3514
  }
2964
- if (r.workbooks.length === 0) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
2965
- r.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], r.richdata = ["/xl/richData/rdrichvalue.xml"];
2966
- let v = h?.resources ?? new f(), C = v.beginPersist(), ue = {}, D = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
2967
- O.set("richTypes", []), O.set("parseInlineDxf", (e) => {
3515
+ if (o.workbooks.length === 0) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
3516
+ o.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], o.richdata = ["/xl/richData/rdrichvalue.xml"];
3517
+ let v = g?.resources ?? new d(), le = v.beginPersist(), me = {}, w = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Map();
3518
+ T.set("richTypes", []), T.set("parseInlineDxf", (e) => {
2968
3519
  if (!e) return;
2969
- let t = j.parseFromString(`<dxf xmlns:x14="${Se}" xmlns:xm="${pe}">${e}</dxf>`, "text/xml")?.documentElement;
3520
+ let t = O.parseFromString(`<dxf xmlns:x14="${ie}" xmlns:xm="${Pe}">${e}</dxf>`, "text/xml")?.documentElement;
2970
3521
  if (!t) return;
2971
- let n = A.parseDxf(t, "", S);
3522
+ let n = D.parseDxf(t, "", ne);
2972
3523
  return Object.keys(n).length > 0 ? n : void 0;
2973
3524
  });
2974
3525
  let k = [];
2975
- O.set("dummyWrapped", k);
2976
- let me = B("metadata", r, e, j, A, S).entries().next()?.value?.[1]?.metadata;
2977
- me && O.set("metadata", me), O.set(Ut, ce());
2978
- let M = /* @__PURE__ */ new Map(), ve = [], ye = /* @__PURE__ */ new Set(), P = (e) => {
2979
- ye.add(nn(e));
2980
- }, I = (t, n = M) => {
2981
- let r = t.lastIndexOf("/"), i = t.substring(0, r + 1) + "_rels/" + t.substring(r + 1, t.length) + ".rels", a = n.get(i);
2982
- return a || (a = Oe(i, e, j, A, U), n.set(i, a)), a;
2983
- }, L = (t, n, r, i = M) => {
2984
- let a = I(n, i).get(t), o = a?.target;
3526
+ T.set("dummyWrapped", k);
3527
+ let ge = z("metadata", o, a, O, D, ne).entries().next()?.value?.[1]?.metadata;
3528
+ ge && T.set("metadata", ge), T.set(En, _e());
3529
+ let N = /* @__PURE__ */ new Map(), P = [], ve = /* @__PURE__ */ new Set(), I = (e) => {
3530
+ ve.add(tr(e));
3531
+ }, L = (e, t = N) => {
3532
+ let n = e.lastIndexOf("/"), r = e.substring(0, n + 1) + "_rels/" + e.substring(n + 1, e.length) + ".rels", i = t.get(r);
3533
+ return i || (i = Ge(r, a, O, D, W), t.set(r, i)), i;
3534
+ }, be = (e, t, n, r = N) => {
3535
+ let i = L(t, r).get(e), o = i?.target;
2985
3536
  if (!o) return null;
2986
- if (a.targetMode === "External") {
2987
- if (!r) return a.target;
2988
- let e = v.add({ source: { external: a.target } });
2989
- return e.addReference(ue), D.add(e), C.toResourceId(e);
2990
- }
2991
- let s = n.lastIndexOf("/"), c = n.substring(0, s + 1);
2992
- o.startsWith("/") || (o = c + o), o = ke(o);
2993
- let l = A?.getVisitorParamsState().get("dxfs"), u = i.get(o);
3537
+ if (i.targetMode === "External") {
3538
+ if (!n) return i.target;
3539
+ let e = v.add({ source: { external: i.target } });
3540
+ return e.addReference(me), w.add(e), le.toResourceId(e);
3541
+ }
3542
+ let s = t.lastIndexOf("/"), c = t.substring(0, s + 1);
3543
+ o.startsWith("/") || (o = c + o), o = H(o);
3544
+ let l = D?.getVisitorParamsState().get("dxfs"), u = r.get(o);
2994
3545
  if (!u) {
2995
- if (a.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
3546
+ if (i.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
2996
3547
  let e = {};
2997
- u = e, ve.push((async () => {
2998
- let t = Wt(e, (e, t) => t === "legacyDrawing" ? Ce(e, o) : t === "formControl" ? we(e, o) : t === "part" ? Ae(e, o) : L(e, o, t === "resource") ?? null, Le, l, () => {}, (e, t, n) => {
2999
- re(e, t ? `${t} (${o})` : o, n);
3000
- }, void 0, O), n = await N.getTextStream(o, E);
3548
+ u = e, P.push((async () => {
3549
+ let t = An(e, (e, t) => t === "legacyDrawing" ? we(e, o) : t === "formControl" ? Te(e, o) : t === "part" ? R(e, o) : be(e, o, t === "resource") ?? null, We, l, () => {}, (e, t, n) => {
3550
+ C(e, t ? `${t} (${o})` : o, n);
3551
+ }, void 0, T), n = await A.getTextStream(o, de);
3001
3552
  if (n) try {
3002
- await Je.parseStream(n, t, {
3553
+ await mt.parseStream(n, t, {
3003
3554
  xmlns: !1,
3004
3555
  lean: !0
3005
3556
  });
3006
3557
  } catch (e) {
3007
3558
  throw Error(`Error parsing sheet: '${o}'`, { cause: e });
3008
3559
  }
3009
- let r = I(o, i);
3010
- if (r) {
3011
- xe(e, o, r, i), T(e), F(e);
3560
+ let i = L(o, r);
3561
+ if (i) {
3562
+ Se(e, o, i, r), re(e), Ee(e);
3012
3563
  let t = [];
3013
- r.forEach((e, n) => {
3564
+ i.forEach((e, n) => {
3014
3565
  if (e.type !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable") return;
3015
- let r = Ae(n, o, e.type, (e) => e !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition");
3566
+ let r = R(n, o, e.type, (e) => e !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition");
3016
3567
  if (!r?.xml) return;
3017
3568
  let i = /<pivotTableDefinition\b[^>]*>/.exec(r.xml)?.[0] ?? "", a = parseInt(/\scacheId="(\d+)"/.exec(i)?.[1] ?? "", 10);
3018
- if (isNaN(a)) return void ne.push([`Pivot table '${r.name}' names no cache and was dropped.`, o]);
3569
+ if (isNaN(a)) return void ee.push([`Pivot table '${r.name}' names no cache and was dropped.`, o]);
3019
3570
  let s = /\sname="([^"]*)"/.exec(i)?.[1];
3020
3571
  t.push({
3021
- ...s ? { name: fe(s) } : {},
3572
+ ...s ? { name: Fe(s) } : {},
3022
3573
  cacheId: a,
3023
3574
  part: r
3024
3575
  });
3025
3576
  }), t.length > 0 && (e.pivotTables = t);
3026
3577
  }
3027
3578
  })());
3028
- } else if (a.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink") {
3029
- let t = z(o, e, j, A, U);
3030
- if (t && Object.keys(t).length !== 0) {
3031
- let e = t, n = e.__bookRelId, r = e.__absoluteUrlRelId;
3032
- delete e.__bookRelId, delete e.__absoluteUrlRelId;
3579
+ } else if (i.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink") {
3580
+ let e = Ke(o, a, O, D, W);
3581
+ if (e && Object.keys(e).length !== 0) {
3582
+ let t = e, n = t.__bookRelId, i = t.__absoluteUrlRelId;
3583
+ delete t.__bookRelId, delete t.__absoluteUrlRelId;
3033
3584
  let a = [];
3034
- I(o, i)?.forEach((e, t) => {
3585
+ L(o, r)?.forEach((e, t) => {
3035
3586
  if (e.targetMode === "External" && e.type && e.target) {
3036
- let i = {
3587
+ let r = {
3037
3588
  type: e.type,
3038
3589
  target: e.target
3039
3590
  };
3040
- t === n ? i.role = "book" : t === r && (i.role = "absoluteUrl"), a.push(i);
3591
+ t === n ? r.role = "book" : t === i && (r.role = "absoluteUrl"), a.push(r);
3041
3592
  }
3042
- }), a.sort((e, t) => (e.role === "book" ? 0 : 1) - (t.role === "book" ? 0 : 1)), e.sources = a, P(o), u = e;
3593
+ }), a.sort((e, t) => (e.role === "book" ? 0 : 1) - (t.role === "book" ? 0 : 1)), t.sources = a, I(o), u = t;
3043
3594
  } else u = null;
3044
- } else u = r ? ((e, t, n, r = null) => {
3045
- if (!e) return null;
3046
- let i = e;
3047
- i.startsWith("/") && (i = i.substring(1));
3048
- let a = r?.parsedRefs?.get(e);
3049
- if (a !== void 0) return a;
3050
- let o = t(i);
3051
- if (!o) return null;
3052
- let s = o.content;
3053
- try {
3054
- n && (s = n(s, e));
3055
- } catch (t) {
3056
- De(e, t, r);
3057
- }
3058
- return r?.parsedRefs?.set(e, s), s;
3059
- })(o, e, (e, t) => {
3595
+ } else u = n ? fe(o, a, (e, t) => {
3060
3596
  let n = v.add({ source: { buffer: e } });
3061
- return n.addReference(ue), D.add(n), C.toResourceId(n);
3062
- }, U) : z(o, e, j, A, U);
3597
+ return n.addReference(me), w.add(n), le.toResourceId(n);
3598
+ }, W) : Ke(o, a, O, D, W);
3063
3599
  }
3064
3600
  return u;
3065
- }, be = (e, t) => {
3601
+ }, xe = (e, t) => {
3066
3602
  if (!e) return null;
3067
- let n = I(t, M)?.get(e);
3603
+ let n = L(t, N)?.get(e);
3068
3604
  if (!n?.target || n.targetMode === "External") return null;
3069
3605
  let r = n.target;
3070
- return r.startsWith("/") || (r = t.substring(0, t.lastIndexOf("/") + 1) + r), ke(r);
3071
- }, xe = (e, n, r, i) => {
3606
+ return r.startsWith("/") || (r = t.substring(0, t.lastIndexOf("/") + 1) + r), H(r);
3607
+ }, Se = (e, t, r, i) => {
3072
3608
  let a = [], o = /* @__PURE__ */ new Map(), s = [];
3073
- r.forEach((e, t) => {
3609
+ r.forEach((e, n) => {
3074
3610
  if (e.type !== "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment") return;
3075
- let r = L(t, n, !1, i)?.comments;
3611
+ let r = be(n, t, !1, i)?.comments;
3076
3612
  if (!r) return;
3077
3613
  for (let e = 0; e < r.length; e++) {
3078
3614
  let t = r[e];
3079
3615
  if (!t?.v?.id) continue;
3080
3616
  let { parentId: n, done: i, content: c, ...l } = t.v, u = {
3081
3617
  ...l,
3082
- content: an(c)
3618
+ content: ir(c)
3083
3619
  };
3084
3620
  n ? s.push({
3085
3621
  parentId: n,
@@ -3089,8 +3625,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3089
3625
  v: u
3090
3626
  }));
3091
3627
  }
3092
- let c = be(t, n);
3093
- c && P(c);
3628
+ let c = xe(n, t);
3629
+ c && I(c);
3094
3630
  });
3095
3631
  for (let e = 0; e < s.length; e++) {
3096
3632
  let { parentId: t, json: n } = s[e], r = o.get(t);
@@ -3099,33 +3635,33 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3099
3635
  let c = [];
3100
3636
  if (r.forEach((e, r) => {
3101
3637
  if (e.type !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments") return;
3102
- let a = L(r, n, !1, i), s = a?.comments;
3638
+ let a = be(r, t, !1, i), s = a?.comments;
3103
3639
  if (!s) return;
3104
3640
  let l = a?.authors;
3105
3641
  for (let e = 0; e < s.length; e++) {
3106
- let n = s[e];
3107
- if (!n?.r) continue;
3108
- let r = l && n.v.authorId !== void 0 ? l[n.v.authorId] : void 0;
3642
+ let t = s[e];
3643
+ if (!t?.r) continue;
3644
+ let r = l && t.v.authorId !== void 0 ? l[t.v.authorId] : void 0;
3109
3645
  if (r && r.startsWith("tc=")) {
3110
- if (o.has(je(r.substring(3)))) continue;
3646
+ if (o.has(ue(r.substring(3)))) continue;
3111
3647
  r = void 0;
3112
3648
  }
3113
3649
  let i = {
3114
- id: t.uuidV4().toUpperCase(),
3650
+ id: n.uuidV4().toUpperCase(),
3115
3651
  asNote: !0,
3116
- content: n.v.content ?? ""
3117
- }, a = r ? H({ displayName: r }) : void 0;
3652
+ content: t.v.content ?? ""
3653
+ }, a = r ? U({ displayName: r }) : void 0;
3118
3654
  a && (i.personId = a.id), c.push({
3119
- r: n.r,
3655
+ r: t.r,
3120
3656
  v: i
3121
3657
  });
3122
3658
  }
3123
- let u = be(r, n);
3124
- u && P(u);
3659
+ let u = xe(r, t);
3660
+ u && I(u);
3125
3661
  }), a.length === 0 && c.length === 0) return;
3126
3662
  let l = [...a, ...c], u = e.legacyDrawing;
3127
3663
  if (u?.xml) {
3128
- let { rest: t, notes: n } = _e(u.xml);
3664
+ let { rest: t, notes: n } = he(u.xml);
3129
3665
  if (n.length > 0) {
3130
3666
  let r = /* @__PURE__ */ new Map();
3131
3667
  for (let e = 0; e < n.length; e++) {
@@ -3138,7 +3674,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3138
3674
  for (let e = 0; e < l.length; e++) {
3139
3675
  let t = l[e], n = r.get(String(t.r).toUpperCase());
3140
3676
  if (!n || (r.delete(String(t.r).toUpperCase()), !t.v.asNote)) continue;
3141
- let i = de(n.xml), a = {};
3677
+ let i = Re(n.xml), a = {};
3142
3678
  if (i.anchor) {
3143
3679
  let [e, t, r, o, s, c, l, u] = i.anchor;
3144
3680
  a.anchor = {
@@ -3155,61 +3691,61 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3155
3691
  y: u
3156
3692
  }
3157
3693
  };
3158
- }
3159
- i.xml && (a.xml = i.xml), (a.anchor || a.xml) && (t.v.box = a), i.visible && (t.v.shown = !0), i.alt && (t.v.description = i.alt);
3694
+ } else i.bounds && (a.bounds = i.bounds);
3695
+ i.style.fill && (a.fill = i.style.fill), i.style.stroke && (a.stroke = i.style.stroke), i.xml && (a.xml = i.xml), (a.anchor || a.bounds || a.fill || a.stroke || a.xml) && (t.v.box = a), i.visible && (t.v.shown = !0), i.alt && (t.v.description = i.alt);
3160
3696
  }
3161
3697
  let i = [];
3162
3698
  r.forEach((e) => {
3163
3699
  i.push(e.xml);
3164
3700
  });
3165
- let a = ee(t, i);
3701
+ let a = ye(t, i);
3166
3702
  a ? u.xml = a : delete e.legacyDrawing;
3167
3703
  }
3168
3704
  }
3169
3705
  e.comments = l;
3170
- }, Ce = (t, n) => {
3171
- let r = be(t, n);
3706
+ }, we = (e, t) => {
3707
+ let n = xe(e, t);
3708
+ if (!n) return null;
3709
+ let r = a(tr(n));
3172
3710
  if (!r) return null;
3173
- let i = e(nn(r));
3174
- if (!i) return null;
3175
- let a = { xml: new TextDecoder("utf-8").decode(i.content) }, o = [];
3176
- return I(r, M)?.forEach((e, t) => {
3711
+ let i = { xml: Hn(new TextDecoder("utf-8").decode(r.content)) }, o = [];
3712
+ return L(n, N)?.forEach((e, t) => {
3177
3713
  if (e.type !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") return;
3178
- let n = L(t, r, !0);
3179
- typeof n == "number" && o.push({
3714
+ let r = be(t, n, !0);
3715
+ typeof r == "number" && o.push({
3180
3716
  id: t,
3181
- resId: n
3717
+ resId: r
3182
3718
  });
3183
- }), o.length > 0 && (a.images = o), P(r), a;
3184
- }, we = (t, n) => {
3185
- let r = be(t, n);
3186
- if (!r) return null;
3187
- let i = z(r, e, j, A, U)?.formControl ?? null;
3188
- return i && P(r), i;
3189
- }, Ae = (t, n, i, a, o = /* @__PURE__ */ new Set()) => {
3190
- let s = be(t, n);
3191
- if (!s || o.has(s)) return null;
3192
- let c = i ?? I(n, M)?.get(t)?.type;
3719
+ }), o.length > 0 && (i.images = o), I(n), i;
3720
+ }, Te = (e, t) => {
3721
+ let n = xe(e, t);
3722
+ if (!n) return null;
3723
+ let r = Ke(n, a, O, D, W)?.formControl ?? null;
3724
+ return r && I(n), r;
3725
+ }, R = (e, t, n, r, i = /* @__PURE__ */ new Set()) => {
3726
+ let s = xe(e, t);
3727
+ if (!s || i.has(s)) return null;
3728
+ let c = n ?? L(t, N)?.get(e)?.type;
3193
3729
  if (!c) return null;
3194
- let l = e(nn(s));
3730
+ let l = a(tr(s));
3195
3731
  if (!l) return null;
3196
- o.add(s);
3197
- let u = s.substring(s.lastIndexOf("/") + 1), d = r.overrides[nn(s)] ?? r.defaults[u.substring(u.lastIndexOf(".") + 1).toLowerCase()], f = {
3198
- id: t,
3732
+ i.add(s);
3733
+ let u = s.substring(s.lastIndexOf("/") + 1), d = o.overrides[tr(s)] ?? o.defaults[u.substring(u.lastIndexOf(".") + 1).toLowerCase()], f = {
3734
+ id: e,
3199
3735
  type: c,
3200
3736
  name: u
3201
3737
  };
3202
3738
  if (d && (f.contentType = d), ((e, t) => e ? e.endsWith("+xml") || e === "application/xml" : /\.(xml|rels|vml)$/i.test(t))(d, u)) f.xml = new TextDecoder("utf-8").decode(l.content);
3203
3739
  else {
3204
- let e = L(t, n, !0);
3205
- if (typeof e != "number") return null;
3206
- f.resId = e;
3740
+ let n = be(e, t, !0);
3741
+ if (typeof n != "number") return null;
3742
+ f.resId = n;
3207
3743
  }
3208
3744
  let p = [];
3209
- return I(s, M)?.forEach((e, t) => {
3210
- if (!e?.type || a && !a(e.type)) return;
3745
+ return L(s, N)?.forEach((e, t) => {
3746
+ if (!e?.type || r && !r(e.type)) return;
3211
3747
  if (e.targetMode === "External") {
3212
- let n = L(t, s, !0);
3748
+ let n = be(t, s, !0);
3213
3749
  typeof n == "number" && p.push({
3214
3750
  id: t,
3215
3751
  type: e.type,
@@ -3217,99 +3753,106 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3217
3753
  });
3218
3754
  return;
3219
3755
  }
3220
- let n = Ae(t, s, e.type, a, o);
3756
+ let n = R(t, s, e.type, r, i);
3221
3757
  n && p.push(n);
3222
- }), p.length > 0 && (f.parts = p), P(s), f;
3223
- };
3224
- B("coreprops", r, e, j, A, S), B("extprops", r, e, j, A, S);
3225
- let V = new g(), Me = B("people", r, e, j, A, S);
3226
- if (Me.size > 0) {
3227
- let [e, t] = Me.entries().next().value;
3228
- V.fromJSON(t?.persons), P(e);
3229
- }
3230
- let H = (e) => {
3231
- if (e) return V.add(e).toJSON();
3232
- }, U = {
3233
- paramMap: O,
3234
- getRefs: I,
3235
- getRef: L,
3236
- parsedRefs: M,
3237
- readEmbeddedPart: (e, t) => Ae(e, t),
3238
- addPerson: H,
3239
- serializeElement: ge,
3240
- onWarning: re
3241
- }, Ne = [];
3242
- if (o) {
3243
- let e = await N.getTextStream(o, E);
3758
+ }), p.length > 0 && (f.parts = p), I(s), f;
3759
+ }, Oe = z("coreprops", o, a, O, D, ne), Ae = z("extprops", o, a, O, D, ne), Me = z("custprops", o, a, O, D, ne);
3760
+ Me.forEach((e, t) => {
3761
+ e?.custom && I(t);
3762
+ });
3763
+ let Ne = new b(), Le = z("people", o, a, O, D, ne);
3764
+ if (Le.size > 0) {
3765
+ let [e, t] = Le.entries().next().value;
3766
+ Ne.fromJSON(t?.persons), I(e);
3767
+ }
3768
+ let U = (e) => {
3769
+ if (e) return Ne.add(e).toJSON();
3770
+ }, W = {
3771
+ paramMap: T,
3772
+ getRefs: L,
3773
+ getRef: be,
3774
+ parsedRefs: N,
3775
+ readEmbeddedPart: (e, t) => R(e, t),
3776
+ addPerson: U,
3777
+ serializeElement: M,
3778
+ onWarning: C
3779
+ }, G = [], ze = /* @__PURE__ */ new Map();
3780
+ if (T.set(On, ze), s) {
3781
+ let e = await A.getTextStream(s, de);
3244
3782
  if (e) {
3245
- let t = (() => {
3246
- let e = !1, t = !1, n = 0, r = "";
3783
+ let t = ((e, t) => {
3784
+ let n = !1, r = !1, i = 0, a = "", o = new xn();
3247
3785
  return {
3248
- onOpenTag: (i) => {
3249
- let a = $t(i.name);
3250
- a === "t" ? e && n === 0 && (t = !0) : a === "si" ? (e = !0, r = "", n = 0) : a !== "rPh" && a !== "phoneticPr" || n++;
3786
+ onOpenTag: (e) => {
3787
+ let t = bn(e.name);
3788
+ t === "t" ? n && i === 0 && (r = !0) : t === "si" ? (n = !0, a = "", o.reset(), i = 0) : t === "rPh" || t === "phoneticPr" ? i++ : n && i === 0 && o.onOpenTag(t, e.attributes);
3251
3789
  },
3252
3790
  onText: (e) => {
3253
- t && (r += e);
3791
+ r && (a += e, o.onText(e));
3254
3792
  },
3255
- onCloseTag: (i) => {
3256
- let a = $t(i.name);
3257
- a === "t" ? t = !1 : a === "si" ? (((e) => {
3258
- Ne.push(e);
3259
- })(he(r)), e = !1, r = "") : a !== "rPh" && a !== "phoneticPr" || n > 0 && n--;
3793
+ onCloseTag: (e) => {
3794
+ let t = bn(e.name);
3795
+ t === "t" ? r = !1 : t === "si" ? (((e, t) => {
3796
+ t && ze.set(G.length, t), G.push(e);
3797
+ })(E(a), o.take() ?? void 0), n = !1, a = "") : t === "rPh" || t === "phoneticPr" ? i > 0 && i-- : o.onCloseTag(t);
3260
3798
  },
3261
3799
  onError: (e) => {
3262
- ((e) => {
3263
- re(e, o);
3264
- })(`Error parsing shared strings: ${e?.message ?? e}`);
3800
+ t?.(`Error parsing shared strings: ${e?.message ?? e}`);
3265
3801
  }
3266
3802
  };
3267
- })();
3803
+ })(0, (e) => {
3804
+ C(e, s);
3805
+ });
3268
3806
  try {
3269
- await Je.parseStream(e, t, { xmlns: !1 });
3807
+ await mt.parseStream(e, t, { xmlns: !1 });
3270
3808
  } catch (e) {
3271
- throw Error(`Error parsing shared strings: '${o}'`, { cause: e });
3809
+ throw Error(`Error parsing shared strings: '${s}'`, { cause: e });
3272
3810
  }
3273
3811
  }
3274
3812
  }
3275
- x?.mark("shared-strings");
3276
- let Pe = Ne.length, Fe = /* @__PURE__ */ new Map(), Ie = Pe, Le = (e) => {
3277
- let t = Fe.get(e);
3813
+ S?.mark("shared-strings");
3814
+ let Ve = G.length, He = /* @__PURE__ */ new Map(), Ue = Ve, We = (e) => {
3815
+ let t = He.get(e);
3278
3816
  if (t !== void 0) return t;
3279
- let n = Ie;
3280
- return Fe.set(e, Ie++), Ne.push(e), n;
3281
- }, Re = [];
3282
- r.slicersCache = Re;
3283
- let ze = N.getNames(), Be = ze.length;
3284
- for (let e = 0; e < Be; e++) {
3285
- let t = ze[e];
3286
- t && t.startsWith("xl/slicerCache") && Re.push(`/${t}`);
3287
- }
3288
- let Ve = B("slicersCache", r, e, j, A, U), He = /* @__PURE__ */ new Map();
3289
- Ve.forEach((e, t) => {
3290
- e?.cacheName && (e.cachePath = t, He.set(e.cacheName, e));
3291
- }), O.set("slicerCaches", He);
3292
- let Ue = [];
3293
- r.slicers = Ue;
3294
- for (let e = 0; e < Be; e++) {
3295
- let t = ze[e];
3296
- t && t.startsWith("xl/slicers/") && t.endsWith(".xml") && Ue.push(`/${t}`);
3297
- }
3298
- B("richstructure", r, e, j, A, U), B("richdata", r, e, j, A, U);
3299
- let We = B("themes", r, e, j, A, U), Ge = null;
3300
- if (We && We.entries) {
3301
- let e = We.entries().next();
3302
- e?.value?.[1] && (Ge = e.value[1]);
3303
- }
3304
- let Ke = new u(Ge), qe = B("styles", r, e, j, A, U).entries().next()?.value?.[1];
3305
- qe &&= JSON.parse(n.JSONStableStringify(qe));
3306
- let W = B("workbooks", r, e, j, A, U);
3307
- x?.mark("side-parts-json"), await Promise.all(ve);
3817
+ let n = Ue;
3818
+ return He.set(e, Ue++), G.push(e), n;
3819
+ }, qe = [];
3820
+ o.slicersCache = qe;
3821
+ let Xe = A.getNames(), Ze = Xe.length;
3822
+ for (let e = 0; e < Ze; e++) {
3823
+ let t = Xe[e];
3824
+ t && t.startsWith("xl/slicerCache") && qe.push(`/${t}`);
3825
+ }
3826
+ let Qe = z("slicersCache", o, a, O, D, W), $e = /* @__PURE__ */ new Map();
3827
+ Qe.forEach((e, t) => {
3828
+ e?.cacheName && (e.cachePath = t, $e.set(e.cacheName, e));
3829
+ }), T.set("slicerCaches", $e);
3830
+ let et = [];
3831
+ o.slicers = et;
3832
+ for (let e = 0; e < Ze; e++) {
3833
+ let t = Xe[e];
3834
+ t && t.startsWith("xl/slicers/") && t.endsWith(".xml") && et.push(`/${t}`);
3835
+ }
3836
+ z("richstructure", o, a, O, D, W), z("richdata", o, a, O, D, W);
3837
+ let tt = z("themes", o, a, O, D, W), nt = null;
3838
+ if (tt && tt.entries) {
3839
+ let e = tt.entries().next();
3840
+ e?.value?.[1] && (nt = e.value[1]);
3841
+ }
3842
+ let rt = new _(nt), it = z("styles", o, a, O, D, W).entries().next()?.value?.[1];
3843
+ it &&= JSON.parse(r.JSONStableStringify(it));
3844
+ let at = z("workbooks", o, a, O, D, W);
3845
+ T.set(Dn, !0 === at.entries().next().value?.[1]?.date1904), S?.mark("side-parts-json"), await Promise.all(P);
3308
3846
  {
3309
- let e = W.entries().next().value?.[1], t = ce(e?.names), n = e?.sheets ?? [];
3847
+ let e = at.entries().next().value?.[1], t = _e(e?.names), n = e?.sheets ?? [];
3310
3848
  for (let e = 0; e < n.length; e++) {
3311
- let r = n[e]?.sheet;
3312
- r && se(r, t);
3849
+ let r = n[e], i = Be(r);
3850
+ if (r?.kind === "macro" && i?.part.xml) {
3851
+ i.part.xml = De(i.part.xml, G);
3852
+ continue;
3853
+ }
3854
+ let a = ke(r);
3855
+ a && j(a, t);
3313
3856
  }
3314
3857
  let r = e?.names;
3315
3858
  if (r) for (let e = 0; e < r.length; e++) {
@@ -3317,29 +3860,52 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3317
3860
  typeof n == "string" && (r[e].ref = t.readDetached(n));
3318
3861
  }
3319
3862
  }
3320
- ae && le > 0 && (ae(oe, oe), await new Promise((e) => setTimeout(e, 0))), x?.mark("sheets");
3321
- let Ye = {
3322
- ...W.entries().next().value?.[1],
3323
- styles: qe,
3324
- theme: Ke.toJSON()
3325
- };
3326
- ((e, t) => {
3863
+ oe && ce > 0 && (oe(se, se), await new Promise((e) => setTimeout(e, 0))), S?.mark("sheets");
3864
+ let ot = {
3865
+ ...at.entries().next().value?.[1],
3866
+ styles: it,
3867
+ theme: rt.toJSON()
3868
+ }, st = ((e, t, n, r) => {
3869
+ let i = {}, a = (e, t) => {
3870
+ if (e) for (let { key: n, value: r } of e) {
3871
+ let e = t[n];
3872
+ if (e && r) {
3873
+ if (e === "revisionNumber") {
3874
+ let e = parseInt(r, 10);
3875
+ Number.isFinite(e) && (i.revisionNumber = e);
3876
+ } else i[e] = r;
3877
+ }
3878
+ }
3879
+ };
3880
+ if (a(e, Un), a(t, Wn), n) {
3881
+ let e = [];
3882
+ for (let t of n) {
3883
+ let n = Kn(t);
3884
+ n ? e.push(n) : r?.(`The custom document property '${t.key}' holds a value of a kind that is not read (${t.kind ? "vt:" + t.kind : "none"}); it was dropped.`, "xlsx.docProps.custom.kind");
3885
+ }
3886
+ e.length > 0 && (i.custom = e);
3887
+ }
3888
+ return Object.keys(i).length > 0 ? i : void 0;
3889
+ })(Oe.values().next().value?.properties, Ae.values().next().value?.properties, Me.values().next().value?.custom, (e, t) => {
3890
+ C(e, "docProps/custom.xml", t);
3891
+ });
3892
+ st && (ot.properties = st), ((e, t) => {
3327
3893
  if (!t || t.size === 0) return;
3328
3894
  let n = e.styles;
3329
3895
  if (!n) return;
3330
3896
  let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
3331
3897
  for (let n of e.sheets ?? []) {
3332
- let e = n?.sheet;
3898
+ let e = ke(n);
3333
3899
  if (!e) continue;
3334
3900
  let a = /* @__PURE__ */ new Set();
3335
- Zt(e.cols) || a.add(0);
3901
+ Yn(e.cols) || a.add(0);
3336
3902
  for (let t of e.directStyles ?? []) a.add(Array.isArray(t) ? t[1] : t.v);
3337
3903
  for (let t of e.rows ?? []) {
3338
- let e = Xt(t);
3904
+ let e = Jn(t);
3339
3905
  e !== void 0 && a.add(e);
3340
3906
  }
3341
3907
  for (let t of e.cols ?? []) {
3342
- let e = Xt(t);
3908
+ let e = Jn(t);
3343
3909
  e !== void 0 && a.add(e);
3344
3910
  }
3345
3911
  let o = !1;
@@ -3356,104 +3922,146 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3356
3922
  }
3357
3923
  }
3358
3924
  if (r.size === 0) return;
3359
- let o = n.direct ??= [];
3360
- for (let e of r) e !== 0 && Qt(o[e] ?? (o[e] = {}), !0);
3361
- for (let e of i) e !== 0 && Qt(o[e] ?? (o[e] = {}), !1);
3925
+ let a = n.direct ??= [];
3926
+ for (let e of r) e !== 0 && Xn(a[e] ?? (a[e] = {}), !0);
3927
+ for (let e of i) e !== 0 && Xn(a[e] ?? (a[e] = {}), !1);
3362
3928
  if (r.has(0)) {
3363
- let e = n.named ??= [], t = a.BuiltInName.Normal.toLowerCase(), r = e.find((e) => e.name?.toLowerCase() === t);
3929
+ let e = n.named ??= [], t = c.BuiltInName.Normal.toLowerCase(), r = e.find((e) => e.name?.toLowerCase() === t);
3364
3930
  r || (r = {
3365
- name: a.BuiltInName.Normal,
3931
+ name: c.BuiltInName.Normal,
3366
3932
  style: {}
3367
- }, e.push(r)), Qt(r.style, !0);
3933
+ }, e.push(r)), Xn(r.style, !0);
3934
+ }
3935
+ })(ot, T.get(qn)), ((n) => {
3936
+ let r = {
3937
+ colStart: 0,
3938
+ rowStart: 0,
3939
+ colEnd: F,
3940
+ rowEnd: Ie
3941
+ };
3942
+ for (let i of n.sheets ?? []) {
3943
+ let n = ke(i);
3944
+ if (!n) continue;
3945
+ let a = [];
3946
+ if (Qn(n.cols, !0, r, a), Qn(n.rows, !1, r, a), a.length === 0) continue;
3947
+ let o = [];
3948
+ for (let [e, t] of n.directStyles ?? []) o.push({
3949
+ ...m.fastStringToRange(e),
3950
+ value: {
3951
+ kind: 0,
3952
+ index: t
3953
+ }
3954
+ });
3955
+ o.push(...a);
3956
+ let s = [], c = new e.IteratorInstance(o, { axis: t.Column });
3957
+ for (let e = c.next(); !e.done; e = c.next()) {
3958
+ let t, n = e.value.overlaps;
3959
+ if (n.length === 1) {
3960
+ if (t = n[0].value, t.index === 0) continue;
3961
+ } else {
3962
+ let e, r, i;
3963
+ for (let t = 0; !e && t < n.length; t++) {
3964
+ let a = n[t].value;
3965
+ a.kind === 0 ? e = a : a.kind === 1 ? r = a : i = a;
3966
+ }
3967
+ t = e ?? r ?? i;
3968
+ }
3969
+ s.push([m.rangeToString(e.value.range, r), t.index]);
3970
+ }
3971
+ s.length > 0 ? n.directStyles = s : delete n.directStyles;
3368
3972
  }
3369
- })(Ye, O.get(Yt));
3973
+ })(ot);
3370
3974
  {
3371
- let t = /* @__PURE__ */ new Map();
3372
- B("slicers", r, e, j, A, U).forEach((e, n) => {
3373
- e?.slicers && t.set(n, e.slicers);
3975
+ let e = /* @__PURE__ */ new Map();
3976
+ z("slicers", o, a, O, D, W).forEach((t, n) => {
3977
+ t?.slicers && e.set(n, t.slicers);
3374
3978
  }), function(e, t) {
3375
3979
  let n = e.sheets ?? [], r = /* @__PURE__ */ new Map();
3376
3980
  for (let e = 0; e < n.length; e++) {
3377
- let t = n[e]?.sheet?.tables ?? [];
3378
- for (let e = 0; e < t.length; e++) {
3379
- let n = t[e], i = Array.isArray(n) ? n[1] : n?.v;
3380
- if (!i?.id) continue;
3381
- let a = (i.columns ?? []).map((e) => typeof e == "string" ? { name: e } : e);
3382
- r.set(String(i.id), {
3383
- name: i.name ?? "",
3981
+ let t = n[e], i = ke(t)?.tables ?? [];
3982
+ for (let e = 0; e < i.length; e++) {
3983
+ let t = i[e], n = Array.isArray(t) ? t[1] : t?.v;
3984
+ if (!n?.id) continue;
3985
+ let a = (n.columns ?? []).map((e) => typeof e == "string" ? { name: e } : e);
3986
+ r.set(String(n.id), {
3987
+ name: n.name ?? "",
3384
3988
  columns: a
3385
3989
  });
3386
3990
  }
3387
3991
  }
3388
3992
  let i = /* @__PURE__ */ new Set();
3389
3993
  for (let e = 0; e < n.length; e++) {
3390
- let a = n[e]?.sheet;
3391
- if (!a) continue;
3392
- let o = a.slicers, s = a.movables;
3393
- if (o && s) for (let e = s.length - 1; e >= 0; e--) {
3394
- let n = s[e].content;
3994
+ let a = n[e], o = ke(a);
3995
+ if (!o) continue;
3996
+ let s = o.slicers, c = o.movables;
3997
+ if (s && c) for (let e = c.length - 1; e >= 0; e--) {
3998
+ let n = c[e].content;
3395
3999
  if (n?.type !== "slicer" || n.json?.source) continue;
3396
- let a = n.name ?? "", c = o[a];
3397
- if (!c?.tableId) continue;
3398
- let l = r.get(String(c.tableId)), u = l ? Te(l.columns, c.columnId) : null;
3399
- l && u ? (n.json = Ee(c, n.json, d.structuredReference(l.name, u.name)), i.add(a), c.cachePath && t.markAbsorbed(c.cachePath)) : (t.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), s.splice(e, 1));
4000
+ let a = n.name ?? "", o = s[a];
4001
+ if (!o?.tableId) continue;
4002
+ let l = r.get(String(o.tableId)), u = l ? Je(l.columns, o.columnId) : null;
4003
+ l && u ? (n.json = Ye(o, n.json, p.structuredReference(l.name, u.name)), i.add(a), o.cachePath && t.markAbsorbed(o.cachePath)) : (t.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), c.splice(e, 1));
3400
4004
  }
3401
- delete a.slicers;
4005
+ delete o.slicers;
3402
4006
  }
3403
4007
  t.slicerParts.forEach((e, n) => {
3404
4008
  let r = Object.keys(e);
3405
4009
  r.length > 0 && r.every((e) => i.has(e)) && t.markAbsorbed(n);
3406
4010
  });
3407
- }(Ye, {
4011
+ }(ot, {
3408
4012
  warn: (e, t) => {
3409
- re(e, "xl/slicers", t);
4013
+ C(e, "xl/slicers", t);
3410
4014
  },
3411
- markAbsorbed: P,
3412
- slicerParts: t
4015
+ markAbsorbed: I,
4016
+ slicerParts: e
3413
4017
  });
3414
4018
  }
3415
- Ye.calc = {
3416
- ...Ye.calc ?? {},
4019
+ ot.calc = {
4020
+ ...ot.calc ?? {},
3417
4021
  legacyIntersect: !0
3418
- }, Ne.length > 0 && (Ye.strings = Ne);
3419
- let Xe = V.toJSON();
3420
- Xe && Xe.length > 0 && (Ye.people = Xe);
3421
- let Ze = N.getEntry("xl/vbaProject.bin");
3422
- if (Ze) try {
3423
- let { VBAProject: e } = await import("./BsUrrzAgfyAdcCJW.mjs"), t = e.extract(Ze);
4022
+ }, G.length > 0 && (ot.strings = G);
4023
+ let ct = Ne.toJSON();
4024
+ ct && ct.length > 0 && (ot.people = ct);
4025
+ let lt = A.getEntry("xl/vbaProject.bin");
4026
+ if (lt) try {
4027
+ let { VBAProject: e } = await import("./eyjrmBPp0a3kmDM1.js"), t = e.extract(lt);
3424
4028
  if (t) {
3425
4029
  let n = /* @__PURE__ */ new Map();
3426
- for (let e of Ye.sheets ?? []) {
3427
- let t = e?.sheet?.codeName;
3428
- t && n.set(t, e.sheet);
4030
+ for (let e of ot.sheets ?? []) {
4031
+ let t = ke(e), r = t?.codeName;
4032
+ r && n.set(r, t);
3429
4033
  }
3430
4034
  for (let r of t.modules) {
3431
4035
  let t = { language: "vba" }, { header: i, body: a } = e.splitAttributes(r.code);
3432
4036
  a && (t.source = a), i && (t.sourceHeader = i);
3433
4037
  let o = r.type === "document" ? n.get(r.name) : void 0;
3434
4038
  o || r.type !== "document" || (t.scope = "workbook");
3435
- let s = o ? o.modules ??= {} : Ye.modules ??= {};
4039
+ let s = o ? o.modules ??= {} : ot.modules ??= {};
3436
4040
  s[r.name] || (s[r.name] = t);
3437
4041
  }
3438
- c?.(t);
3439
- } else ne.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
4042
+ u?.(t);
4043
+ } else ee.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
3440
4044
  } catch (e) {
3441
- ne.push([`Error extracting VBA: ${e?.message ?? e}`, "xl/vbaProject.bin"]);
4045
+ ee.push([`Error extracting VBA: ${e?.message ?? e}`, "xl/vbaProject.bin"]);
3442
4046
  }
3443
- let Qe = O.get("calcId"), $e = Qe === void 0 || !(Number(Qe) >= 191029), et = h.calcOnLoad ?? (p === "auto" && $e ? "full" : p), tt = {
3444
- ...h,
3445
- calcOnLoad: et,
4047
+ let ut = T.get("calcId"), dt = ut === void 0 || !(Number(ut) >= 191029), ft = g.calcOnLoad ?? (h === "auto" && dt ? "full" : h), pt = {
4048
+ ...g,
4049
+ calcOnLoad: ft,
3446
4050
  resources: v,
3447
- json: Ye
4051
+ json: ot
3448
4052
  };
3449
- tt.disableLoadAutoFit === void 0 && (tt.disableLoadAutoFit = !1), x?.mark("json-assembled");
3450
- let G = new _(tt);
3451
- if (x?.mark("workbook-constructed"), k.length > 0 && et !== "none") {
3452
- await G.whenCalculationReady();
3453
- let e = /* @__PURE__ */ new Map(), t = Ye.sheets ?? [], n = G.getSheets().getItems();
4053
+ if (pt.disableLoadAutoFit === void 0) {
4054
+ let e = T.get(te);
4055
+ pt.disableLoadAutoFit = !!e?.declared && e.normalIsThemeFont && await V(e.faces);
4056
+ }
4057
+ S?.mark("json-assembled");
4058
+ let K = new x(pt);
4059
+ if (S?.mark("workbook-constructed"), k.length > 0 && ft !== "none") {
4060
+ await K.whenCalculationReady();
4061
+ let e = /* @__PURE__ */ new Map(), t = ot.sheets ?? [], n = K.getSheets({ visibility: "veryHidden" });
3454
4062
  for (let r = 0; r < t.length; r++) {
3455
- let i = t[r]?.sheet, a = n[r];
3456
- i && a && e.set(i, a);
4063
+ let i = t[r], a = n[r], o = ke(i);
4064
+ o && a?.isIWorksheet && e.set(o, a);
3457
4065
  }
3458
4066
  ((e, t, n) => {
3459
4067
  if (t.length === 0) return;
@@ -3472,7 +4080,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3472
4080
  for (let e of t) e.formula === null && o.add(i(e.rowIndex, e.colIndex));
3473
4081
  for (let e of t) {
3474
4082
  if (e.formula === null) continue;
3475
- let t = Vt(e.formula), n = !0;
4083
+ let t = un(e.formula), n = !0;
3476
4084
  for (let e of t) if (!a(e)) {
3477
4085
  n = !1;
3478
4086
  break;
@@ -3505,19 +4113,19 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3505
4113
  }).setValue("=" + e.formula);
3506
4114
  }
3507
4115
  }
3508
- })(G, k, e);
4116
+ })(K, k, e);
3509
4117
  }
3510
- if (D.forEach((e) => {
3511
- e.deleteReference(ue);
3512
- }), C.endPersist(), y) {
3513
- w(G);
4118
+ if (w.forEach((e) => {
4119
+ e.deleteReference(me);
4120
+ }), le.endPersist(), y) {
4121
+ je(K);
3514
4122
  let e = /* @__PURE__ */ new Map(), t = 0;
3515
- for (let n of N.getNames()) {
3516
- let r = N.getEntry(n);
4123
+ for (let n of A.getNames()) {
4124
+ let r = A.getEntry(n);
3517
4125
  if (!r) continue;
3518
- let i = N.getRawEntry(n), a = i ? {
4126
+ let i = A.getRawEntry(n), a = i ? {
3519
4127
  data: r,
3520
- uncompressedSize: N.uncompressedSize(n),
4128
+ uncompressedSize: A.uncompressedSize(n),
3521
4129
  raw: {
3522
4130
  compressedData: i.data,
3523
4131
  compressionMethod: i.compressionMethod,
@@ -3525,39 +4133,39 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3525
4133
  }
3526
4134
  } : {
3527
4135
  data: r,
3528
- uncompressedSize: N.uncompressedSize(n)
4136
+ uncompressedSize: A.uncompressedSize(n)
3529
4137
  };
3530
4138
  e.set(n, a), t += r.byteLength;
3531
4139
  }
3532
- if (t > 67108864) ne.push([`Source package too large to retain (${t} bytes, limit ${te}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
4140
+ if (t > 67108864) ee.push([`Source package too large to retain (${t} bytes, limit ${B}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
3533
4141
  else if (e.size > 0) {
3534
- let t = new R(e, ye);
3535
- b(G, t);
3536
- let n = G.getSheets().getItems(), r = G.getTransactions().addListener({ onCommitEnd: (e) => {
4142
+ let t = new Ce(e, ve);
4143
+ pe(K, t);
4144
+ let n = K.getWorksheets().getItems(), r = K.getTransactions().addListener({ onCommitEnd: (e) => {
3537
4145
  let n = e.getOperation()?.name;
3538
4146
  n !== "insertCells" && n !== "deleteCells" || t.markStructuralChange();
3539
- } }), i = G.addListeners({ onSheetsChange: () => {
3540
- let e = G.getSheets().getItems();
4147
+ } }), i = K.addListeners({ onSheetsChange: () => {
4148
+ let e = K.getWorksheets().getItems();
3541
4149
  (e.length !== n.length || e.some((e, t) => e !== n[t])) && t.markStructuralChange(), n = e;
3542
4150
  } });
3543
- G.addListeners({ onClose: () => {
3544
- r(), i(), w(G);
4151
+ K.addListeners({ onClose: () => {
4152
+ r(), i(), je(K);
3545
4153
  } });
3546
4154
  }
3547
4155
  }
3548
- if (ne.length && ie?.onWarning) {
4156
+ if (ee.length && ae?.onWarning) {
3549
4157
  let e = /* @__PURE__ */ new Set();
3550
- for (let t of ne) {
4158
+ for (let t of ee) {
3551
4159
  let [n, r, i] = t, a = i ?? n;
3552
- e.has(a) || (e.add(a), ie.onWarning(n, r));
4160
+ e.has(a) || (e.add(a), ae.onWarning(n, r));
3553
4161
  }
3554
4162
  }
3555
- return x && !0 === l && console.table(x.toTable()), G;
4163
+ return S && !0 === f && console.table(S.toTable()), await K.whenFontsReady(), K;
3556
4164
  } catch (e) {
3557
4165
  let t = "Unable to parse XLSX.";
3558
- throw e instanceof r && (t = "Unable to open XLSX. There are too many rows or columns."), Error(t, { cause: e });
4166
+ throw e instanceof a && (t = "Unable to open XLSX. There are too many rows or columns."), Error(t, { cause: e });
3559
4167
  } finally {
3560
- await N.close().catch(() => {});
4168
+ await A.close().catch(() => {});
3561
4169
  }
3562
4170
  };
3563
- export { je as i, Yt as n, V as r, tn as t };
4171
+ export { qn as i, er as n, kn as r, ar as t };