@sheetxl/studio-vanilla 0.7.18 → 0.7.20

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 (195) hide show
  1. package/browser/cjs/{C6Dt4rQL6QpfZXQm.cjs → 1m-wMn6XJDyuhoUr.cjs} +1 -1
  2. package/browser/cjs/{DzPXt6evVjtMfZSZ.cjs → 1uvVWKoDCeURnacj.cjs} +2 -2
  3. package/browser/cjs/{7n-hEbUIYqSBaDat.cjs → AuRScZeD2PY2AU6g.cjs} +1 -1
  4. package/browser/cjs/{D5Io7AkIarxaLz0o.cjs → B8PCcQbCy_L67Q5-.cjs} +2 -2
  5. package/browser/cjs/{CTtmVCW39eSkvdm2.cjs → BNecxacZmW8BbSA-.cjs} +1 -1
  6. package/browser/cjs/{Bs9bhowg6reA3ZiG.cjs → BSf_vXfxIEMsDR97.cjs} +1 -1
  7. package/browser/cjs/{UXySlnm6n5GkKyYX.cjs → BXGuIvbSLE0qcvtY.cjs} +1 -1
  8. package/browser/cjs/{C5oHWS2wsHSxukpC.cjs → BXU0S-Z1NnPP3ylk.cjs} +2 -2
  9. package/browser/cjs/{DSb153-6mEozv0oi.cjs → Bg5_xfiCdUbKC3nM.cjs} +1 -1
  10. package/browser/cjs/{BduETbtBhV0XCmH1.cjs → BrvprhY7zodv1uu3.cjs} +1 -1
  11. package/browser/cjs/{CqAC3qdRSzuNldEf.cjs → Bv5M7z9CLmqUdHLL.cjs} +1 -1
  12. package/browser/cjs/{CnFV-rdV2OV4NoPf.cjs → BvhTv59YPQ9Jex6z.cjs} +1 -1
  13. package/browser/cjs/{yQr9TT0cwJS4lefS.cjs → Bx8hf99qQLC6Zw_j.cjs} +1 -1
  14. package/browser/cjs/{Dl-bgq_10atIBtKj.cjs → BzV8wBjArFtuUr6Q.cjs} +2 -2
  15. package/browser/cjs/{B1ub75RSZ_fZY-5u.cjs → C5sJO_GV1mgcGPrS.cjs} +2 -2
  16. package/browser/cjs/{BwVM8--8HyHn_87f.cjs → CBKrvN18sBqBx6vR.cjs} +1 -1
  17. package/browser/cjs/{-OpJd7DU9PwW2RXc.cjs → CH42PODl2_V0FZtI.cjs} +1 -1
  18. package/browser/cjs/{CHyM26fHmnShQyOK.cjs → CInLNBqwD6aHNCRz.cjs} +1 -1
  19. package/browser/cjs/{CN0u80hTqSY_HBl8.cjs → CWoatP9K16aMEshJ.cjs} +2 -2
  20. package/browser/cjs/{B8wDYqG5sHRdIDsj.cjs → C_e2ryc2JI9eNMRh.cjs} +2 -2
  21. package/browser/cjs/{Dri8w0JSm-asfiuG.cjs → CbQkI1WR3n-GhDJG.cjs} +1 -1
  22. package/browser/cjs/{DNZMJdlbY4rc9obW.cjs → CgqQ3MbDauazgzDn.cjs} +1 -1
  23. package/browser/cjs/{B5snYB_hoP7VcqzZ.cjs → ClZxTKmzqFM7s5vI.cjs} +1 -1
  24. package/browser/cjs/{fVwk2Ps0ia7OOeoN.cjs → CmeziBGLd6bVgVrZ.cjs} +2 -2
  25. package/browser/cjs/{DKdGkW0QG81Jiw7t.cjs → Cmht83hyEJh-aBv7.cjs} +1 -1
  26. package/browser/cjs/{D6NIMEmt1k6ha9ze.cjs → CpNruAkS6jLVhk_r.cjs} +3 -3
  27. package/browser/cjs/{Cn1R71AuCiyTgctH.cjs → CpeHh2-I0lILcwKL.cjs} +4 -4
  28. package/browser/cjs/{Df8pXCfA82TxY-iz.cjs → CsY_-c_ld490b0Kw.cjs} +2 -2
  29. package/browser/cjs/{D_j-ddwN_vyKl1gw.cjs → CxVS9NMNps9pQnt7.cjs} +2 -2
  30. package/browser/cjs/{D8obnqJFN0oBhWN5.cjs → CzN-CwCSYKcOS9vr.cjs} +1 -1
  31. package/browser/cjs/{CY6AU5GgBH3FEf6M.cjs → D3OKMM6mwpgKjq3T.cjs} +1 -1
  32. package/browser/cjs/{DXfnItDfztAnEKP4.cjs → D4OHS-bhMHaD-PvU.cjs} +1 -1
  33. package/browser/cjs/{Bx1mLfmB0irjjQ59.cjs → D5nhbOgizx6uKB2J.cjs} +1 -1
  34. package/browser/cjs/{D1RCqtdKH57FVTnr.cjs → D6uf2ZMGyZAVe7Xm.cjs} +1 -1
  35. package/browser/cjs/{SQbzOKRenIlNvJN4.cjs → DCWZonT7pZzbHdI1.cjs} +1 -1
  36. package/browser/cjs/{XseOGnoB6WRWeL1h.cjs → DF1HcS9SX6pajKgX.cjs} +4 -4
  37. package/browser/cjs/DF4qz_mUO-jxqN6R.cjs +12 -0
  38. package/browser/cjs/{Cuccw5_D6orsZ6ig.cjs → DKtZMuHCCyyGiMpj.cjs} +1 -1
  39. package/browser/cjs/{wuYSiUzDxFuv7qe0.cjs → DOkw8qQ4UPI7lmFA.cjs} +1 -1
  40. package/browser/cjs/{W2ON7E4F225_2o0x.cjs → DSQ5nW3HpFmyNbxX.cjs} +2 -2
  41. package/browser/cjs/{R1ROURFib9YPd6Uz.cjs → DUcNa0U95UG3xv1P.cjs} +1 -1
  42. package/browser/cjs/DV3WU2M19nBxtVRA.cjs +327 -0
  43. package/browser/cjs/{ee8TVXh-uuz06Qxj.cjs → DYXZiaE8jo1m7oKV.cjs} +8 -8
  44. package/browser/cjs/DZEuVThWm_qSXAtY.cjs +11 -0
  45. package/browser/cjs/{DSTkG5JgAPAw7yxZ.cjs → D_tIhPv9iNoWq6R4.cjs} +4 -4
  46. package/browser/cjs/{BdnAMpQtFN5ugYFZ.cjs → DaYLnQn6N_fPjQsP.cjs} +1 -1
  47. package/browser/cjs/{C4EY3whsmpcB8TfM.cjs → Dc8dDo0mpe9husnW.cjs} +4 -4
  48. package/browser/cjs/DhaOYvn3rBfUW4tj.cjs +6 -0
  49. package/browser/cjs/{D4bhF8b7ITBdKtXE.cjs → DwD9bLOnNXwaD1YF.cjs} +1 -1
  50. package/browser/cjs/{DXA9LmHL0Fevkkxq.cjs → IPzCC6TV2WSrZCQh.cjs} +1 -1
  51. package/browser/cjs/{QBOfAfp49JVJgEGM.cjs → VtVSJwkFbYZeuFeR.cjs} +6 -6
  52. package/browser/cjs/{Di1G1HIM3occAPQO.cjs → XOcmGykAqNLzobYR.cjs} +1 -1
  53. package/browser/cjs/{CG9M85LJg0wJNz2k.cjs → Xe4ngJY8sNgJ6brX.cjs} +2 -2
  54. package/browser/cjs/{Can0-bXoL2OhE52t.cjs → Z0HcgXF3OK6POtDO.cjs} +2 -2
  55. package/browser/cjs/{CLHrBw96SEaWqdwz.cjs → bjPVoyRMAxc_N8q8.cjs} +2 -2
  56. package/browser/cjs/index.cjs +2 -2
  57. package/browser/cjs/{wjiUE6QSbScJqQyj.cjs → rFJte8mjrtn_2vVE.cjs} +2 -2
  58. package/browser/cjs/{BYdPezSa2xYqjORK.cjs → sHIiaC-iDwXBh4VR.cjs} +1 -1
  59. package/browser/cjs/{gYnOAekaIzfUbBHK.cjs → wc5zoON-utlXwayE.cjs} +1 -1
  60. package/browser/esm/{BinO4Kv0E_DXOGPS.mjs → -3u5GbBQA0FSOuAP.mjs} +12 -12
  61. package/browser/esm/{Caq_VV3EDVXWQF_F.mjs → -dRLDgEfKLIrhQsi.mjs} +1 -1
  62. package/{cdn/assets/xEqptKjElxl2-Cxa.js → browser/esm/1MThtftElTy6WrA0.mjs} +1 -1
  63. package/{cdn/assets/Cexsa6YRMcgeElgD.js → browser/esm/4QZbPTlatdpGW8mW.mjs} +1 -1
  64. package/browser/esm/{DsIgs7p3pcuTKsPz.mjs → 4lA748o59cx4KITO.mjs} +1 -1
  65. package/browser/esm/{BmsaLC02SxtzRA6c.mjs → 5QXcgftJH5CfnJdM.mjs} +1 -1
  66. package/browser/esm/{C_qKrewe7FG7duUk.mjs → 61QT0ZDOqKxgj6_K.mjs} +3 -4
  67. package/browser/esm/{Cnp-iamct8cXZ7lZ.mjs → B4YKOSATl_vM4_VO.mjs} +2 -2
  68. package/{cdn/assets/MDcGjO44t1NA66gt.js → browser/esm/B4c17RzcYfxQeRny.mjs} +1 -1
  69. package/{cdn/assets/GncVQG4JILLz59go.js → browser/esm/BCzQK19xrI6fJV9-.mjs} +1 -1
  70. package/{cdn/assets/BvYFaSeWrHb-Mjlm.js → browser/esm/BFsGpbPpZIWq9j9G.mjs} +1 -1
  71. package/browser/esm/{BKCyeEHaOhs9q3J4.mjs → BKDjyp3RzGbtEZM3.mjs} +12 -12
  72. package/browser/esm/{CLUXUXEy55lTS1bq.mjs → BNqU4QZQSca9gEI2.mjs} +5 -5
  73. package/browser/esm/{CbkdO3Vq1_DiUtf_.mjs → BcuxIYGSAi3xC4Lk.mjs} +1 -1
  74. package/browser/esm/{_tWm1fSNAqYw-kRs.mjs → Bg15z7RuUZkCb9bo.mjs} +2 -2
  75. package/browser/esm/{Dycp02TMRmFQr07V.mjs → BmOuY3i5KeYOGOIN.mjs} +19 -19
  76. package/browser/esm/{CiewBvPqbClRmfxs.mjs → Bmp0G6OFsH4OYPK7.mjs} +1 -1
  77. package/browser/esm/BoLX2j6yXdLB3jXI.mjs +39 -0
  78. package/browser/esm/BqE0-P5J-y_rRP_G.mjs +1483 -0
  79. package/browser/esm/{DmU2nyEI-_Eb30r-.mjs → BsReprB77sMG7Ia3.mjs} +19 -19
  80. package/{cdn/assets/BzVVfsPrbQ5A5-rD.js → browser/esm/C-ZVytqqDm_z7xWM.mjs} +1 -1
  81. package/browser/esm/{C-XgZSeS4DjP7Oxm.mjs → C5WjPJZ8kaKrIU61.mjs} +1 -1
  82. package/{cdn/assets/FW0_jEmcY2wBldQu.js → browser/esm/C6-DkxYhg7RXmlo7.mjs} +1 -1
  83. package/{cdn/assets/BbZKD2SbKfuELXbf.js → browser/esm/CCo7GabBmelvhNyn.mjs} +1 -1
  84. package/browser/esm/CD0HbuVGcie3SJXt.mjs +46 -0
  85. package/browser/esm/{DzqX3Zoc7atMeUcF.mjs → COfCOEmst6i3w3-H.mjs} +2 -2
  86. package/browser/esm/{Bhb7bGNskbvjYv4x.mjs → CSIS9eBDu4JwmTHi.mjs} +1 -1
  87. package/browser/esm/{BGLYo-oLZFEA6mNA.mjs → CUOWdcWpdsKz372Z.mjs} +15 -12
  88. package/browser/esm/{Df41Rnk9w8CBQXCS.mjs → CV01HGZbX1r6oU0O.mjs} +5 -5
  89. package/{cdn/assets/DnNERP55hzjrrhc3.js → browser/esm/CVQG2g2PFKFijLz1.mjs} +1 -1
  90. package/browser/esm/{CwqfLo1J_X1HUTve.mjs → Ck3MM-jyP5O9Fbwo.mjs} +1 -1
  91. package/browser/esm/{XZBEquFAZ2eofgDN.mjs → CmQn9LrxD5KlRZ6i.mjs} +7 -7
  92. package/{cdn/assets/Bodzo07Ns86Hes_6.js → browser/esm/Cr7pXPBAHOtmgCJf.mjs} +1 -1
  93. package/browser/esm/{DNc01DUxUBvND9NP.mjs → Ct3zOB2fwBbjFVnJ.mjs} +3 -3
  94. package/{cdn/assets/B2ScwzcRdliNbCVA.js → browser/esm/D-o1pnphdBGmqkDS.mjs} +1 -1
  95. package/browser/esm/{BIUCcziaV7qfwVED.mjs → D1hJ_HNOxCWJcItV.mjs} +1 -1
  96. package/browser/esm/{DhG6grvVV7MmFPRO.mjs → D5kpCYo0lYaF8XG3.mjs} +2 -2
  97. package/browser/esm/{dMToZzUgh7thVzKN.mjs → DAoG0qewdAKdM_ho.mjs} +1 -1
  98. package/browser/esm/{C8anKI55xb9J8r8A.mjs → DJ7Usn1zMSWfd7o_.mjs} +4 -4
  99. package/browser/esm/{DnqXietOybYaqPPj.mjs → DKha__YF_NhQK0SK.mjs} +31 -31
  100. package/browser/esm/{C86ahDGlKcgHEpFW.mjs → DNASG22eNK2wJSII.mjs} +2 -2
  101. package/{cdn/assets/X7fbzrIpDUvf-HCz.js → browser/esm/DdKr4ehgWyYJpVp8.mjs} +1 -1
  102. package/browser/esm/{u_A963nMPgCdHQxv.mjs → Dhh9RXpPpVVlJoDC.mjs} +17304 -17315
  103. package/browser/esm/{xLjEMvbAB3LCzAoa.mjs → DpIf2SsnjarVkIuv.mjs} +1 -1
  104. package/browser/esm/{BmNWc7YPPdByxJEr.mjs → DrfVzaY6Q9kP4Bs_.mjs} +1 -1
  105. package/{cdn/assets/nyHNSxymtQj02wO4.js → browser/esm/DtQ8PkRqxGLC8DmS.mjs} +2 -2
  106. package/browser/esm/{DcFBTiZVyhQ9ZiLT.mjs → Dw6PE-qxq-I4r30f.mjs} +1 -1
  107. package/browser/esm/{CY3hoDW-As3R3n1r.mjs → LTd6f6bNi108-7q5.mjs} +4 -4
  108. package/browser/esm/{BKw_Lc1PPk4HqFoh.mjs → YhoVLGLgRFZWxMsx.mjs} +1 -1
  109. package/{cdn/assets/Bv7HyDfRLhfRflgD.js → browser/esm/aderzMl9WPEOXpEY.mjs} +1 -1
  110. package/browser/esm/{DVlq_yFzmYm585l7.mjs → bFsI9PmmnMoEtL__.mjs} +40 -40
  111. package/browser/esm/{D8baOjVCEcXTKDdp.mjs → d5ANpsHs_Cd32TxS.mjs} +1 -1
  112. package/browser/esm/{CZ4HcH8NIJ2O_YcC.mjs → dym78C0-EBdgTQA-.mjs} +1 -1
  113. package/browser/esm/{BZQ3CWGY87pdmaRe.mjs → hhUXO2d2SOFylRa6.mjs} +11 -11
  114. package/browser/esm/index.mjs +2 -2
  115. package/browser/esm/{DAknLepGdEeiMXM_.mjs → kPSDIvwgPsxxE24j.mjs} +3 -3
  116. package/{cdn/assets/DPcPFiKDxxoV8w3C.js → browser/esm/lGjZjGcY4pvqJBdB.mjs} +1 -1
  117. package/{cdn/assets/BqvYn8MDuN8Hp0fL.js → browser/esm/m4AYbY7xk35Yz6t_.mjs} +1 -1
  118. package/{cdn/assets/BbhvW0gf1ykgX4eB.js → browser/esm/oEQ0ruP2nlpvbSrL.mjs} +1 -1
  119. package/cdn/assets/{Caq_VV3EDVXWQF_F.js → -dRLDgEfKLIrhQsi.js} +1 -1
  120. package/{browser/esm/xEqptKjElxl2-Cxa.mjs → cdn/assets/1MThtftElTy6WrA0.js} +1 -1
  121. package/cdn/assets/{D_2R7XUstAWLtAbl.js → 27RYKPXNI81kxNqa.js} +2 -2
  122. package/cdn/assets/{Bdx3ruItp2_baXZU.js → 2ePZckFQMEXP71ln.js} +1 -1
  123. package/cdn/assets/{M3pI3KRDsMdkXj_F.js → 2ikZ1tpmgnnoWmvA.js} +1 -1
  124. package/{browser/esm/Cexsa6YRMcgeElgD.mjs → cdn/assets/4QZbPTlatdpGW8mW.js} +1 -1
  125. package/cdn/assets/{DsIgs7p3pcuTKsPz.js → 4lA748o59cx4KITO.js} +1 -1
  126. package/cdn/assets/{CrMb7WfYaFkTtaRw.js → 57A0lwhfYhakqAd0.js} +14 -14
  127. package/cdn/assets/{BmsaLC02SxtzRA6c.js → 5QXcgftJH5CfnJdM.js} +1 -1
  128. package/{browser/esm/MDcGjO44t1NA66gt.mjs → cdn/assets/B4c17RzcYfxQeRny.js} +1 -1
  129. package/cdn/assets/{DejxS3n7p1yMS3_g.js → BCx6y5BBxl46SHtk.js} +12 -12
  130. package/{browser/esm/GncVQG4JILLz59go.mjs → cdn/assets/BCzQK19xrI6fJV9-.js} +1 -1
  131. package/{browser/esm/BvYFaSeWrHb-Mjlm.mjs → cdn/assets/BFsGpbPpZIWq9j9G.js} +1 -1
  132. package/cdn/assets/{_vwgpguI74mUFPFw.js → BHh2zMZGJe6dUWlk.js} +29 -29
  133. package/cdn/assets/{D1a6QI4-ES868dRF.js → BZbbB0km7YjZH-ls.js} +3 -3
  134. package/cdn/assets/{CbkdO3Vq1_DiUtf_.js → BcuxIYGSAi3xC4Lk.js} +1 -1
  135. package/cdn/assets/{XQJOQMjS-LB9xq2g.js → BmYQis5LoyoPFlaz.js} +10 -10
  136. package/cdn/assets/{CiewBvPqbClRmfxs.js → Bmp0G6OFsH4OYPK7.js} +1 -1
  137. package/cdn/assets/{C5pGH1Zmf62_j66q.js → BnbqN9I5cg3axP7D.js} +2 -2
  138. package/cdn/assets/{DPa_VfaBIXFPlwou.js → Bsop2qtZKF9zaSub.js} +4 -4
  139. package/cdn/assets/{CwrlE4QCHEvkaHPN.js → Bu0itxC2rUwiWMEQ.js} +20 -20
  140. package/{browser/esm/BzVVfsPrbQ5A5-rD.mjs → cdn/assets/C-ZVytqqDm_z7xWM.js} +1 -1
  141. package/cdn/assets/{C-XgZSeS4DjP7Oxm.js → C5WjPJZ8kaKrIU61.js} +1 -1
  142. package/{browser/esm/FW0_jEmcY2wBldQu.mjs → cdn/assets/C6-DkxYhg7RXmlo7.js} +1 -1
  143. package/cdn/assets/{CiaCj4_YFGlEMTeo.js → C8ErMKswFhRIVklY.js} +9 -9
  144. package/{browser/esm/BbZKD2SbKfuELXbf.mjs → cdn/assets/CCo7GabBmelvhNyn.js} +1 -1
  145. package/cdn/assets/{Bhb7bGNskbvjYv4x.js → CSIS9eBDu4JwmTHi.js} +1 -1
  146. package/cdn/assets/{D0elTwWvY3NqsEWl.js → CUh7bWm0PDYyIgds.js} +19 -19
  147. package/cdn/assets/{Bdw_crsm0e74qfp7.js → CUnm3OFf6WTVDUL6.js} +3 -3
  148. package/{browser/esm/DnNERP55hzjrrhc3.mjs → cdn/assets/CVQG2g2PFKFijLz1.js} +1 -1
  149. package/cdn/assets/{C915DjG7OX8UAz6K.js → CZarNhw1Wj6tobmF.js} +7 -7
  150. package/cdn/assets/{CwqfLo1J_X1HUTve.js → Ck3MM-jyP5O9Fbwo.js} +1 -1
  151. package/cdn/assets/{CRDwiGWdCGjY3VTV.js → Ckf795_xHgemB6ls.js} +5 -6
  152. package/{browser/esm/Bodzo07Ns86Hes_6.mjs → cdn/assets/Cr7pXPBAHOtmgCJf.js} +1 -1
  153. package/cdn/assets/{rS78tt3VYVOHY4h-.js → D-SS16dWhPQviXwr.js} +15 -12
  154. package/{browser/esm/B2ScwzcRdliNbCVA.mjs → cdn/assets/D-o1pnphdBGmqkDS.js} +1 -1
  155. package/cdn/assets/{SuGjbhfbxh2gzCG3.js → D0A2A29hLklUBBW2.js} +4 -4
  156. package/cdn/assets/{BIUCcziaV7qfwVED.js → D1hJ_HNOxCWJcItV.js} +1 -1
  157. package/cdn/assets/{CGCRF99I-jhOR7jw.js → D30ogm4gygj8i8nN.js} +2 -2
  158. package/cdn/assets/{B8pTVRJyYXx1EY-x.js → D3IsWhYeF4VWF1yh.js} +3 -3
  159. package/cdn/assets/{Bi3wiCDiTpk2viZa.js → D8Vyk9JZvPQOI1N-.js} +2 -2
  160. package/cdn/assets/{C8cBWaKbtQGw_TPE.js → DKZNMsmM6A1pRtcG.js} +19 -19
  161. package/cdn/assets/{DLWXLdr28bw1c6dd.js → DWvh6NjXKQU6eMUt.js} +3 -3
  162. package/{browser/esm/X7fbzrIpDUvf-HCz.mjs → cdn/assets/DdKr4ehgWyYJpVp8.js} +1 -1
  163. package/cdn/assets/{koz370oSs59gWnK7.js → DhplvyRWSIrau07O.js} +4 -4
  164. package/cdn/assets/{xLjEMvbAB3LCzAoa.js → DpIf2SsnjarVkIuv.js} +1 -1
  165. package/cdn/assets/{Cdu_dwo8cFQhHV82.js → DpjBB4EF0ZrTtRdV.js} +2 -2
  166. package/cdn/assets/{BmNWc7YPPdByxJEr.js → DrfVzaY6Q9kP4Bs_.js} +1 -1
  167. package/{browser/esm/Ch6b5kcaGBAwLHt3.mjs → cdn/assets/Duj69RQfdRblYdPT.js} +2 -2
  168. package/cdn/assets/{DcFBTiZVyhQ9ZiLT.js → Dw6PE-qxq-I4r30f.js} +1 -1
  169. package/cdn/assets/{B3SLbUgWxigdYSoW.js → DwqpwyqGoQ36Oyfc.js} +18327 -18338
  170. package/cdn/assets/{q8X5-ItRNzGVCCyk.js → IX2BHljZEQ9dhYmv.js} +5 -5
  171. package/cdn/assets/{erJ-1t69v0aRHj0s.js → JguVvfKKqzNxFSPz.js} +2 -2
  172. package/cdn/assets/URQMYH7Tm-ryuQts.js +46 -0
  173. package/cdn/assets/{BKw_Lc1PPk4HqFoh.js → YhoVLGLgRFZWxMsx.js} +1 -1
  174. package/cdn/assets/{5z0OEWKKz6tvGEvM.js → Z2-dlS699zVzx3pY.js} +6 -6
  175. package/cdn/assets/{moLjHbBHh-yk5Dhm.js → _LZbly6Yqrd-8ih7.js} +4 -4
  176. package/{browser/esm/Bv7HyDfRLhfRflgD.mjs → cdn/assets/aderzMl9WPEOXpEY.js} +1 -1
  177. package/cdn/assets/{D8baOjVCEcXTKDdp.js → d5ANpsHs_Cd32TxS.js} +1 -1
  178. package/cdn/assets/{CZ4HcH8NIJ2O_YcC.js → dym78C0-EBdgTQA-.js} +1 -1
  179. package/{browser/esm/DPcPFiKDxxoV8w3C.mjs → cdn/assets/lGjZjGcY4pvqJBdB.js} +1 -1
  180. package/{browser/esm/BqvYn8MDuN8Hp0fL.mjs → cdn/assets/m4AYbY7xk35Yz6t_.js} +1 -1
  181. package/{browser/esm/BbhvW0gf1ykgX4eB.mjs → cdn/assets/oEQ0ruP2nlpvbSrL.js} +1 -1
  182. package/cdn/assets/{Do86HxDJX-Iup_sw.js → r7NBY_vG39kjGhEw.js} +4 -4
  183. package/cdn/assets/zBdl4-IsCQ8OcoAP.js +1483 -0
  184. package/cdn/index.js +2 -2
  185. package/cdn/loader.js +1 -1
  186. package/package.json +3 -3
  187. package/browser/cjs/BLw2ZetGgxM_UPbO.cjs +0 -327
  188. package/browser/cjs/C1iuoZpBS0VgPiZZ.cjs +0 -6
  189. package/browser/cjs/DRzXA3ngmzsTykhQ.cjs +0 -12
  190. package/browser/cjs/V1ZT2I2d_Vhy7JbL.cjs +0 -11
  191. package/browser/esm/ByHWUvEO_3ZE9jtG.mjs +0 -48
  192. package/browser/esm/C9k8b2H-QgOWRv-q.mjs +0 -39
  193. package/browser/esm/DVsrmHN0j_4KEJRa.mjs +0 -1485
  194. package/cdn/assets/B7OSw0wE9IMMRUtT.js +0 -48
  195. package/cdn/assets/BePb6bRlNmkX2lgo.js +0 -1485
@@ -0,0 +1,1483 @@
1
+ import { a0 as Lt, M as Mt, ag as ve, ah as Se, ai as Ce, aj as Ft, ak as wt, t as oe, al as ke, am as Ae, af as De, an as Ee, H as re, w as Pe, ao as Oe, n as Ie } from "./DwqpwyqGoQ36Oyfc.js";
2
+ /**
3
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.20
4
+ *
5
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
+ * License: The license can be found at https://www.sheetxl.com/license.
7
+ */
8
+ const he = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ve = new RegExp(`^[${he}][-${he}.0-9·̀-ͯ‿-⁀]*$`, "u");
9
+ function Te(i) {
10
+ return i >= 65 && i <= 90 || i >= 97 && i <= 122 || i === 58 || i === 95 || i === 8204 || i === 8205 || i >= 192 && i <= 214 || i >= 216 && i <= 246 || i >= 248 && i <= 767 || i >= 880 && i <= 893 || i >= 895 && i <= 8191 || i >= 8304 && i <= 8591 || i >= 11264 && i <= 12271 || i >= 12289 && i <= 55295 || i >= 63744 && i <= 64975 || i >= 65008 && i <= 65533 || i >= 65536 && i <= 983039;
11
+ }
12
+ const ue = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ne = new RegExp(`^[${ue}][-${ue}.0-9·̀-ͯ‿-⁀]*$`, "u");
13
+ function ye(i) {
14
+ return i >= 65 && i <= 90 || i === 95 || i >= 97 && i <= 122 || i >= 192 && i <= 214 || i >= 216 && i <= 246 || i >= 248 && i <= 767 || i >= 880 && i <= 893 || i >= 895 && i <= 8191 || i >= 8204 && i <= 8205 || i >= 8304 && i <= 8591 || i >= 11264 && i <= 12271 || i >= 12289 && i <= 55295 || i >= 63744 && i <= 64975 || i >= 65008 && i <= 65533 || i >= 65536 && i <= 983039;
15
+ }
16
+ const nt = function(i) {
17
+ return i === 32 || i === 10 || i === 13 || i === 9;
18
+ }, Le = function(i) {
19
+ return i >= 32 && i <= 55295 || i === 10 || i === 13 || i === 9 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
20
+ }, Ut = Te, de = function(i) {
21
+ return Te(i) || i >= 48 && i <= 57 || i === 45 || i === 46 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
22
+ }, be = [32, 10, 13, 9], Re = Ve, $e = function(i) {
23
+ return i >= 1 && i <= 55295 || i >= 57344 && i <= 65533 || i >= 65536 && i <= 1114111;
24
+ }, Me = ye, He = function(i) {
25
+ return ye(i) || i === 45 || i === 46 || i >= 48 && i <= 57 || i === 183 || i >= 768 && i <= 879 || i >= 8255 && i <= 8256;
26
+ }, je = Ne, ie = "http://www.w3.org/XML/1998/namespace", _t = "http://www.w3.org/2000/xmlns/", Fe = { __proto__: null, xml: ie, xmlns: _t }, Xe = { __proto__: null, amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, L = -1, bt = -2, et = 13, Rt = 33, mt = 10, Pt = 60, Bt = 61, _ = 62, z = 63, Wt = 93, se = (i) => i === 34 || i === 39, xe = [34, 39], Be = [...xe, 91, _], We = [...xe, Pt, Wt], _e = [Bt, z, ...be], qe = [...be, _, 38, Pt];
27
+ function ne(i, t, s) {
28
+ switch (t) {
29
+ case "xml":
30
+ s !== ie && i.fail(`xml prefix must be bound to ${ie}.`);
31
+ break;
32
+ case "xmlns":
33
+ s !== _t && i.fail(`xmlns prefix must be bound to ${_t}.`);
34
+ }
35
+ switch (s) {
36
+ case _t:
37
+ i.fail(t === "" ? `the default namespace may not be set to ${s}.` : `may not assign a prefix (even "xmlns") to the URI ${_t}.`);
38
+ break;
39
+ case ie:
40
+ switch (t) {
41
+ case "xml":
42
+ break;
43
+ case "":
44
+ i.fail(`the default namespace may not be set to ${s}.`);
45
+ break;
46
+ default:
47
+ i.fail("may not assign the xml namespace to another prefix.");
48
+ }
49
+ }
50
+ }
51
+ const ze = (i) => je.test(i), Ge = (i) => Re.test(i), pe = { xmldecl: "xmlDeclHandler", text: "textHandler", processinginstruction: "piHandler", doctype: "doctypeHandler", comment: "commentHandler", opentagstart: "openTagStartHandler", attribute: "attributeHandler", opentag: "openTagHandler", closetag: "closeTagHandler", cdata: "cdataHandler", error: "errorHandler", end: "endHandler", ready: "readyHandler" };
52
+ class Ue {
53
+ constructor(t) {
54
+ this.i = 0, this.prevI = 0, this.opt = t ?? {}, this.fragmentOpt = !!this.opt.fragment;
55
+ const s = this.xmlnsOpt = !!this.opt.xmlns;
56
+ if (this.trackPosition = this.opt.position !== !1, this.fileName = this.opt.fileName, s) {
57
+ this.nameStartCheck = Me, this.nameCheck = He, this.isName = ze, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = { __proto__: null, ...Fe };
58
+ const o = this.opt.additionalNamespaces;
59
+ o != null && ((function(a, n) {
60
+ for (const h of Object.keys(n)) ne(a, h, n[h]);
61
+ })(this, o), Object.assign(this.ns, o));
62
+ } else this.nameStartCheck = Ut, this.nameCheck = de, this.isName = Ge, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
63
+ this.stateTable = [this.sBegin, this.sBeginWhitespace, this.sDoctype, this.sDoctypeQuote, this.sDTD, this.sDTDQuoted, this.sDTDOpenWaka, this.sDTDOpenWakaBang, this.sDTDComment, this.sDTDCommentEnding, this.sDTDCommentEnded, this.sDTDPI, this.sDTDPIEnding, this.sText, this.sEntity, this.sOpenWaka, this.sOpenWakaBang, this.sComment, this.sCommentEnding, this.sCommentEnded, this.sCData, this.sCDataEnding, this.sCDataEnding2, this.sPIFirstChar, this.sPIRest, this.sPIBody, this.sPIEnding, this.sXMLDeclNameStart, this.sXMLDeclName, this.sXMLDeclEq, this.sXMLDeclValueStart, this.sXMLDeclValue, this.sXMLDeclSeparator, this.sXMLDeclEnding, this.sOpenTag, this.sOpenTagSlash, this.sAttrib, this.sAttribName, this.sAttribNameSawWhite, this.sAttribValue, this.sAttribValueQuoted, this.sAttribValueClosed, this.sAttribValueUnquoted, this.sCloseTag, this.sCloseTagSawWhite], this._init();
64
+ }
65
+ get closed() {
66
+ return this._closed;
67
+ }
68
+ _init() {
69
+ 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 = [];
70
+ const { fragmentOpt: t } = this;
71
+ this.state = t ? et : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = t, this.xmlDeclPossible = !t, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
72
+ let { defaultXMLVersion: s } = this.opt;
73
+ if (s === void 0) {
74
+ if (this.opt.forceXMLVersion === !0) throw new Error("forceXMLVersion set but defaultXMLVersion is not set");
75
+ s = "1.0";
76
+ }
77
+ this.setXMLVersion(s), this.positionAtNewLine = 0, this.doctype = !1, this._closed = !1, this.xmlDecl = { version: void 0, encoding: void 0, standalone: void 0 }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Xe), this.readyHandler?.();
78
+ }
79
+ get position() {
80
+ return this.chunkPosition + this.i;
81
+ }
82
+ get columnIndex() {
83
+ return this.position - this.positionAtNewLine;
84
+ }
85
+ on(t, s) {
86
+ this[pe[t]] = s;
87
+ }
88
+ off(t) {
89
+ this[pe[t]] = void 0;
90
+ }
91
+ makeError(t) {
92
+ let s = this.fileName ?? "";
93
+ return this.trackPosition && (s.length > 0 && (s += ":"), s += `${this.line}:${this.column}`), s.length > 0 && (s += ": "), new Error(s + t);
94
+ }
95
+ fail(t) {
96
+ const s = this.makeError(t), o = this.errorHandler;
97
+ if (o === void 0) throw s;
98
+ return o(s), this;
99
+ }
100
+ write(t) {
101
+ if (this.closed) return this.fail("cannot write after close.");
102
+ let s = !1;
103
+ t === null ? (s = !0, t = "") : typeof t == "object" && (t = t.toString()), this.carriedFromPrevious !== void 0 && (t = `${this.carriedFromPrevious}${t}`, this.carriedFromPrevious = void 0);
104
+ let o = t.length;
105
+ const a = t.charCodeAt(o - 1);
106
+ !s && (a === 13 || a >= 55296 && a <= 56319) && (this.carriedFromPrevious = t[o - 1], o--, t = t.slice(0, o));
107
+ const { stateTable: n } = this;
108
+ for (this.chunk = t, this.i = 0; this.i < o; ) n[this.state].call(this);
109
+ return this.chunkPosition += o, s ? this.end() : this;
110
+ }
111
+ close() {
112
+ return this.write(null);
113
+ }
114
+ getCode10() {
115
+ const t = this.chunk, s = this.i;
116
+ if (this.prevI = s, this.i++, s >= t.length) return L;
117
+ const o = t.charCodeAt(s);
118
+ if (this.column++, o < 55296) {
119
+ if (o >= 32 || o === 9) return o;
120
+ switch (o) {
121
+ case mt:
122
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, mt;
123
+ case 13:
124
+ return t.charCodeAt(s + 1) === mt && (this.i = s + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, bt;
125
+ default:
126
+ return this.fail("disallowed character."), o;
127
+ }
128
+ }
129
+ if (o > 56319) return o >= 57344 && o <= 65533 || this.fail("disallowed character."), o;
130
+ const a = 65536 + 1024 * (o - 55296) + (t.charCodeAt(s + 1) - 56320);
131
+ return this.i = s + 2, a > 1114111 && this.fail("disallowed character."), a;
132
+ }
133
+ getCode11() {
134
+ const { chunk: t, i: s } = this;
135
+ if (this.prevI = s, this.i = s + 1, s >= t.length) return L;
136
+ const o = t.charCodeAt(s);
137
+ if (this.column++, o < 55296) {
138
+ if (o > 31 && o < 127 || o > 159 && o !== 8232 || o === 9) return o;
139
+ switch (o) {
140
+ case mt:
141
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, mt;
142
+ case 13: {
143
+ const n = t.charCodeAt(s + 1);
144
+ n !== mt && n !== 133 || (this.i = s + 2);
145
+ }
146
+ case 133:
147
+ case 8232:
148
+ return this.line++, this.column = 0, this.positionAtNewLine = this.position, bt;
149
+ default:
150
+ return this.fail("disallowed character."), o;
151
+ }
152
+ }
153
+ if (o > 56319) return o >= 57344 && o <= 65533 || this.fail("disallowed character."), o;
154
+ const a = 65536 + 1024 * (o - 55296) + (t.charCodeAt(s + 1) - 56320);
155
+ return this.i = s + 2, a > 1114111 && this.fail("disallowed character."), a;
156
+ }
157
+ getCodeNorm() {
158
+ const t = this.getCode();
159
+ return t === bt ? mt : t;
160
+ }
161
+ unGet() {
162
+ this.i = this.prevI, this.column--;
163
+ }
164
+ captureTo(t) {
165
+ let { i: s } = this;
166
+ const { chunk: o } = this;
167
+ for (; ; ) {
168
+ const a = this.getCode(), n = a === bt, h = n ? mt : a;
169
+ if (h === L || t.includes(h)) return this.text += o.slice(s, this.prevI), h;
170
+ n && (this.text += `${o.slice(s, this.prevI)}
171
+ `, s = this.i);
172
+ }
173
+ }
174
+ captureToChar(t) {
175
+ let { i: s } = this;
176
+ const { chunk: o } = this;
177
+ for (; ; ) {
178
+ let a = this.getCode();
179
+ switch (a) {
180
+ case bt:
181
+ this.text += `${o.slice(s, this.prevI)}
182
+ `, s = this.i, a = mt;
183
+ break;
184
+ case L:
185
+ return this.text += o.slice(s), !1;
186
+ }
187
+ if (a === t) return this.text += o.slice(s, this.prevI), !0;
188
+ }
189
+ }
190
+ captureNameChars() {
191
+ const { chunk: t, i: s } = this;
192
+ for (; ; ) {
193
+ const o = this.getCode();
194
+ if (o === L) return this.name += t.slice(s), L;
195
+ if (!de(o)) return this.name += t.slice(s, this.prevI), o === bt ? mt : o;
196
+ }
197
+ }
198
+ skipSpaces() {
199
+ for (; ; ) {
200
+ const t = this.getCodeNorm();
201
+ if (t === L || !nt(t)) return t;
202
+ }
203
+ }
204
+ setXMLVersion(t) {
205
+ this.currentXMLVersion = t, t === "1.0" ? (this.isChar = Le, this.getCode = this.getCode10) : (this.isChar = $e, this.getCode = this.getCode11);
206
+ }
207
+ sBegin() {
208
+ this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = 1;
209
+ }
210
+ sBeginWhitespace() {
211
+ const t = this.i, s = this.skipSpaces();
212
+ switch (this.prevI !== t && (this.xmlDeclPossible = !1), s) {
213
+ case Pt:
214
+ if (this.state = 15, this.text.length !== 0) throw new Error("no-empty text at start");
215
+ break;
216
+ case L:
217
+ break;
218
+ default:
219
+ this.unGet(), this.state = et, this.xmlDeclPossible = !1;
220
+ }
221
+ }
222
+ sDoctype() {
223
+ const t = this.captureTo(Be);
224
+ switch (t) {
225
+ case _:
226
+ this.doctypeHandler?.(this.text), this.text = "", this.state = et, this.doctype = !0;
227
+ break;
228
+ case L:
229
+ break;
230
+ default:
231
+ this.text += String.fromCodePoint(t), t === 91 ? this.state = 4 : se(t) && (this.state = 3, this.q = t);
232
+ }
233
+ }
234
+ sDoctypeQuote() {
235
+ const t = this.q;
236
+ this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.q = null, this.state = 2);
237
+ }
238
+ sDTD() {
239
+ const t = this.captureTo(We);
240
+ t !== L && (this.text += String.fromCodePoint(t), t === Wt ? this.state = 2 : t === Pt ? this.state = 6 : se(t) && (this.state = 5, this.q = t));
241
+ }
242
+ sDTDQuoted() {
243
+ const t = this.q;
244
+ this.captureToChar(t) && (this.text += String.fromCodePoint(t), this.state = 4, this.q = null);
245
+ }
246
+ sDTDOpenWaka() {
247
+ const t = this.getCodeNorm();
248
+ switch (this.text += String.fromCodePoint(t), t) {
249
+ case 33:
250
+ this.state = 7, this.openWakaBang = "";
251
+ break;
252
+ case z:
253
+ this.state = 11;
254
+ break;
255
+ default:
256
+ this.state = 4;
257
+ }
258
+ }
259
+ sDTDOpenWakaBang() {
260
+ const t = String.fromCodePoint(this.getCodeNorm()), s = this.openWakaBang += t;
261
+ this.text += t, s !== "-" && (this.state = s === "--" ? 8 : 4, this.openWakaBang = "");
262
+ }
263
+ sDTDComment() {
264
+ this.captureToChar(45) && (this.text += "-", this.state = 9);
265
+ }
266
+ sDTDCommentEnding() {
267
+ const t = this.getCodeNorm();
268
+ this.text += String.fromCodePoint(t), this.state = t === 45 ? 10 : 8;
269
+ }
270
+ sDTDCommentEnded() {
271
+ const t = this.getCodeNorm();
272
+ this.text += String.fromCodePoint(t), t === _ ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
273
+ }
274
+ sDTDPI() {
275
+ this.captureToChar(z) && (this.text += "?", this.state = 12);
276
+ }
277
+ sDTDPIEnding() {
278
+ const t = this.getCodeNorm();
279
+ this.text += String.fromCodePoint(t), t === _ && (this.state = 4);
280
+ }
281
+ sText() {
282
+ this.tags.length !== 0 ? this.handleTextInRoot() : this.handleTextOutsideRoot();
283
+ }
284
+ sEntity() {
285
+ let { i: t } = this;
286
+ const { chunk: s } = this;
287
+ t: for (; ; ) switch (this.getCode()) {
288
+ case bt:
289
+ this.entity += `${s.slice(t, this.prevI)}
290
+ `, t = this.i;
291
+ break;
292
+ case 59: {
293
+ const { entityReturnState: o } = this, a = this.entity + s.slice(t, this.prevI);
294
+ let n;
295
+ this.state = o, a === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(a), this.entity = ""), o === et && this.textHandler === void 0 || (this.text += n);
296
+ break t;
297
+ }
298
+ case L:
299
+ this.entity += s.slice(t);
300
+ break t;
301
+ }
302
+ }
303
+ sOpenWaka() {
304
+ const t = this.getCode();
305
+ if (Ut(t)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
306
+ else switch (t) {
307
+ case 47:
308
+ this.state = 43, this.xmlDeclPossible = !1;
309
+ break;
310
+ case 33:
311
+ this.state = 16, this.openWakaBang = "", this.xmlDeclPossible = !1;
312
+ break;
313
+ case z:
314
+ this.state = 23;
315
+ break;
316
+ default:
317
+ this.fail("disallowed character in tag name"), this.state = et, this.xmlDeclPossible = !1;
318
+ }
319
+ }
320
+ sOpenWakaBang() {
321
+ switch (this.openWakaBang += String.fromCodePoint(this.getCodeNorm()), this.openWakaBang) {
322
+ case "[CDATA[":
323
+ 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), this.state = 20, this.openWakaBang = "";
324
+ break;
325
+ case "--":
326
+ this.state = 17, this.openWakaBang = "";
327
+ break;
328
+ case "DOCTYPE":
329
+ this.state = 2, (this.doctype || this.sawRoot) && this.fail("inappropriately located doctype declaration."), this.openWakaBang = "";
330
+ break;
331
+ default:
332
+ this.openWakaBang.length >= 7 && this.fail("incorrect syntax.");
333
+ }
334
+ }
335
+ sComment() {
336
+ this.captureToChar(45) && (this.state = 18);
337
+ }
338
+ sCommentEnding() {
339
+ const t = this.getCodeNorm();
340
+ t === 45 ? (this.state = 19, this.commentHandler?.(this.text), this.text = "") : (this.text += `-${String.fromCodePoint(t)}`, this.state = 17);
341
+ }
342
+ sCommentEnded() {
343
+ const t = this.getCodeNorm();
344
+ t !== _ ? (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(t)}`, this.state = 17) : this.state = et;
345
+ }
346
+ sCData() {
347
+ this.captureToChar(Wt) && (this.state = 21);
348
+ }
349
+ sCDataEnding() {
350
+ const t = this.getCodeNorm();
351
+ t === Wt ? this.state = 22 : (this.text += `]${String.fromCodePoint(t)}`, this.state = 20);
352
+ }
353
+ sCDataEnding2() {
354
+ const t = this.getCodeNorm();
355
+ switch (t) {
356
+ case _:
357
+ this.cdataHandler?.(this.text), this.text = "", this.state = et;
358
+ break;
359
+ case Wt:
360
+ this.text += "]";
361
+ break;
362
+ default:
363
+ this.text += `]]${String.fromCodePoint(t)}`, this.state = 20;
364
+ }
365
+ }
366
+ sPIFirstChar() {
367
+ const t = this.getCodeNorm();
368
+ this.nameStartCheck(t) ? (this.piTarget += String.fromCodePoint(t), this.state = 24) : t === z || nt(t) ? (this.fail("processing instruction without a target."), this.state = t === z ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(t), this.state = 24);
369
+ }
370
+ sPIRest() {
371
+ const { chunk: t, i: s } = this;
372
+ for (; ; ) {
373
+ const o = this.getCodeNorm();
374
+ if (o === L) return void (this.piTarget += t.slice(s));
375
+ if (!this.nameCheck(o)) {
376
+ this.piTarget += t.slice(s, this.prevI);
377
+ const a = o === z;
378
+ a || nt(o) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = a ? Rt : 27) : this.state = a ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(o));
379
+ break;
380
+ }
381
+ }
382
+ }
383
+ sPIBody() {
384
+ if (this.text.length === 0) {
385
+ const t = this.getCodeNorm();
386
+ t === z ? this.state = 26 : nt(t) || (this.text = String.fromCodePoint(t));
387
+ } else this.captureToChar(z) && (this.state = 26);
388
+ }
389
+ sPIEnding() {
390
+ const t = this.getCodeNorm();
391
+ if (t === _) {
392
+ const { piTarget: s } = this;
393
+ s.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({ target: s, body: this.text }), this.piTarget = this.text = "", this.state = et;
394
+ } else t === z ? this.text += "?" : (this.text += `?${String.fromCodePoint(t)}`, this.state = 25);
395
+ this.xmlDeclPossible = !1;
396
+ }
397
+ sXMLDeclNameStart() {
398
+ const t = this.skipSpaces();
399
+ t !== z ? t !== L && (this.state = 28, this.name = String.fromCodePoint(t)) : this.state = Rt;
400
+ }
401
+ sXMLDeclName() {
402
+ const t = this.captureTo(_e);
403
+ if (t === z) return this.state = Rt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
404
+ if (nt(t) || t === Bt) {
405
+ if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
406
+ case 0:
407
+ this.fail("did not expect any more name/value pairs.");
408
+ break;
409
+ case 1:
410
+ this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);
411
+ break;
412
+ default:
413
+ this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
414
+ }
415
+ this.state = t === Bt ? 30 : 29;
416
+ }
417
+ }
418
+ sXMLDeclEq() {
419
+ const t = this.getCodeNorm();
420
+ if (t === z) return this.state = Rt, void this.fail("XML declaration is incomplete.");
421
+ nt(t) || (t !== Bt && this.fail("value required."), this.state = 30);
422
+ }
423
+ sXMLDeclValueStart() {
424
+ const t = this.getCodeNorm();
425
+ if (t === z) return this.state = Rt, void this.fail("XML declaration is incomplete.");
426
+ nt(t) || (se(t) ? this.q = t : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
427
+ }
428
+ sXMLDeclValue() {
429
+ const t = this.captureTo([this.q, z]);
430
+ if (t === z) return this.state = Rt, this.text = "", void this.fail("XML declaration is incomplete.");
431
+ if (t === L) return;
432
+ const s = this.text;
433
+ switch (this.text = "", this.name) {
434
+ case "version": {
435
+ this.xmlDeclExpects = ["encoding", "standalone"];
436
+ const o = s;
437
+ this.xmlDecl.version = o, /^1\.[0-9]+$/.test(o) ? this.opt.forceXMLVersion || this.setXMLVersion(o) : this.fail("version number must match /^1\\.[0-9]+$/.");
438
+ break;
439
+ }
440
+ case "encoding":
441
+ /^[A-Za-z][A-Za-z0-9._-]*$/.test(s) || this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."), this.xmlDeclExpects = ["standalone"], this.xmlDecl.encoding = s;
442
+ break;
443
+ case "standalone":
444
+ s !== "yes" && s !== "no" && this.fail('standalone value must match "yes" or "no".'), this.xmlDeclExpects = [], this.xmlDecl.standalone = s;
445
+ }
446
+ this.name = "", this.state = 32;
447
+ }
448
+ sXMLDeclSeparator() {
449
+ const t = this.getCodeNorm();
450
+ t !== z ? (nt(t) || (this.fail("whitespace required."), this.unGet()), this.state = 27) : this.state = Rt;
451
+ }
452
+ sXMLDeclEnding() {
453
+ this.getCodeNorm() === _ ? (this.piTarget !== "xml" ? this.fail("processing instructions are not allowed before root.") : this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = et) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
454
+ }
455
+ sOpenTag() {
456
+ const t = this.captureNameChars();
457
+ if (t === L) return;
458
+ const s = this.tag = { name: this.name, attributes: /* @__PURE__ */ Object.create(null) };
459
+ switch (this.name = "", this.xmlnsOpt && (this.topNS = s.ns = /* @__PURE__ */ Object.create(null)), this.openTagStartHandler?.(s), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), t) {
460
+ case _:
461
+ this.openTag();
462
+ break;
463
+ case 47:
464
+ this.state = 35;
465
+ break;
466
+ default:
467
+ nt(t) || this.fail("disallowed character in tag name."), this.state = 36;
468
+ }
469
+ }
470
+ sOpenTagSlash() {
471
+ this.getCode() === _ ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
472
+ }
473
+ sAttrib() {
474
+ const t = this.skipSpaces();
475
+ t !== L && (Ut(t) ? (this.unGet(), this.state = 37) : t === _ ? this.openTag() : t === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
476
+ }
477
+ sAttribName() {
478
+ const t = this.captureNameChars();
479
+ t === Bt ? this.state = 39 : nt(t) ? this.state = 38 : t === _ ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : t !== L && this.fail("disallowed character in attribute name.");
480
+ }
481
+ sAttribNameSawWhite() {
482
+ const t = this.skipSpaces();
483
+ switch (t) {
484
+ case L:
485
+ return;
486
+ case Bt:
487
+ this.state = 39;
488
+ break;
489
+ default:
490
+ this.fail("attribute without value."), this.text = "", this.name = "", t === _ ? this.openTag() : Ut(t) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
491
+ }
492
+ }
493
+ sAttribValue() {
494
+ const t = this.getCodeNorm();
495
+ se(t) ? (this.q = t, this.state = 40) : nt(t) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
496
+ }
497
+ sAttribValueQuoted() {
498
+ const { q: t, chunk: s } = this;
499
+ let { i: o } = this;
500
+ for (; ; ) switch (this.getCode()) {
501
+ case t:
502
+ return this.pushAttrib(this.name, this.text + s.slice(o, this.prevI)), this.name = this.text = "", this.q = null, void (this.state = 41);
503
+ case 38:
504
+ return this.text += s.slice(o, this.prevI), this.state = 14, void (this.entityReturnState = 40);
505
+ case mt:
506
+ case bt:
507
+ case 9:
508
+ this.text += `${s.slice(o, this.prevI)} `, o = this.i;
509
+ break;
510
+ case Pt:
511
+ return this.text += s.slice(o, this.prevI), void this.fail("disallowed character.");
512
+ case L:
513
+ return void (this.text += s.slice(o));
514
+ }
515
+ }
516
+ sAttribValueClosed() {
517
+ const t = this.getCodeNorm();
518
+ nt(t) ? this.state = 36 : t === _ ? this.openTag() : t === 47 ? this.state = 35 : Ut(t) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
519
+ }
520
+ sAttribValueUnquoted() {
521
+ const t = this.captureTo(qe);
522
+ switch (t) {
523
+ case 38:
524
+ this.state = 14, this.entityReturnState = 42;
525
+ break;
526
+ case Pt:
527
+ this.fail("disallowed character.");
528
+ break;
529
+ case L:
530
+ break;
531
+ default:
532
+ this.text.includes("]]>") && this.fail('the string "]]>" is disallowed in char data.'), this.pushAttrib(this.name, this.text), this.name = this.text = "", t === _ ? this.openTag() : this.state = 36;
533
+ }
534
+ }
535
+ sCloseTag() {
536
+ const t = this.captureNameChars();
537
+ t === _ ? this.closeTag() : nt(t) ? this.state = 44 : t !== L && this.fail("disallowed character in closing tag.");
538
+ }
539
+ sCloseTagSawWhite() {
540
+ switch (this.skipSpaces()) {
541
+ case _:
542
+ this.closeTag();
543
+ break;
544
+ case L:
545
+ break;
546
+ default:
547
+ this.fail("disallowed character in closing tag.");
548
+ }
549
+ }
550
+ handleTextInRoot() {
551
+ let { i: t, forbiddenState: s } = this;
552
+ const { chunk: o, textHandler: a } = this;
553
+ t: for (; ; ) switch (this.getCode()) {
554
+ case Pt:
555
+ if (this.state = 15, a !== void 0) {
556
+ const { text: n } = this, h = o.slice(t, this.prevI);
557
+ n.length !== 0 ? (a(n + h), this.text = "") : h.length !== 0 && a(h);
558
+ }
559
+ s = 0;
560
+ break t;
561
+ case 38:
562
+ this.state = 14, this.entityReturnState = et, a !== void 0 && (this.text += o.slice(t, this.prevI)), s = 0;
563
+ break t;
564
+ case Wt:
565
+ switch (s) {
566
+ case 0:
567
+ s = 1;
568
+ break;
569
+ case 1:
570
+ s = 2;
571
+ break;
572
+ case 2:
573
+ break;
574
+ default:
575
+ throw new Error("impossible state");
576
+ }
577
+ break;
578
+ case _:
579
+ s === 2 && this.fail('the string "]]>" is disallowed in char data.'), s = 0;
580
+ break;
581
+ case bt:
582
+ a !== void 0 && (this.text += `${o.slice(t, this.prevI)}
583
+ `), t = this.i, s = 0;
584
+ break;
585
+ case L:
586
+ a !== void 0 && (this.text += o.slice(t));
587
+ break t;
588
+ default:
589
+ s = 0;
590
+ }
591
+ this.forbiddenState = s;
592
+ }
593
+ handleTextOutsideRoot() {
594
+ let { i: t } = this;
595
+ const { chunk: s, textHandler: o } = this;
596
+ let a = !1;
597
+ t: for (; ; ) {
598
+ const n = this.getCode();
599
+ switch (n) {
600
+ case Pt:
601
+ if (this.state = 15, o !== void 0) {
602
+ const { text: h } = this, p = s.slice(t, this.prevI);
603
+ h.length !== 0 ? (o(h + p), this.text = "") : p.length !== 0 && o(p);
604
+ }
605
+ break t;
606
+ case 38:
607
+ this.state = 14, this.entityReturnState = et, o !== void 0 && (this.text += s.slice(t, this.prevI)), a = !0;
608
+ break t;
609
+ case bt:
610
+ o !== void 0 && (this.text += `${s.slice(t, this.prevI)}
611
+ `), t = this.i;
612
+ break;
613
+ case L:
614
+ o !== void 0 && (this.text += s.slice(t));
615
+ break t;
616
+ default:
617
+ nt(n) || (a = !0);
618
+ }
619
+ }
620
+ a && (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));
621
+ }
622
+ pushAttribNS(t, s) {
623
+ const { prefix: o, local: a } = this.qName(t), n = { name: t, prefix: o, local: a, value: s };
624
+ if (this.attribList.push(n), this.attributeHandler?.(n), o === "xmlns") {
625
+ const h = s.trim();
626
+ this.currentXMLVersion === "1.0" && h === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[a] = h, ne(this, a, h);
627
+ } else if (t === "xmlns") {
628
+ const h = s.trim();
629
+ this.topNS[""] = h, ne(this, "", h);
630
+ }
631
+ }
632
+ pushAttribPlain(t, s) {
633
+ const o = { name: t, value: s };
634
+ this.attribList.push(o), this.attributeHandler?.(o);
635
+ }
636
+ end() {
637
+ this.sawRoot || this.fail("document must contain a root element.");
638
+ const { tags: t } = this;
639
+ for (; t.length > 0; ) {
640
+ const o = t.pop();
641
+ this.fail(`unclosed tag: ${o.name}`);
642
+ }
643
+ this.state !== 0 && this.state !== et && this.fail("unexpected end.");
644
+ const { text: s } = this;
645
+ return s.length !== 0 && (this.textHandler?.(s), this.text = ""), this._closed = !0, this.endHandler?.(), this._init(), this;
646
+ }
647
+ resolve(t) {
648
+ let s = this.topNS[t];
649
+ if (s !== void 0) return s;
650
+ const { tags: o } = this;
651
+ for (let a = o.length - 1; a >= 0; a--) if (s = o[a].ns[t], s !== void 0) return s;
652
+ return s = this.ns[t], s !== void 0 ? s : this.opt.resolvePrefix?.(t);
653
+ }
654
+ qName(t) {
655
+ const s = t.indexOf(":");
656
+ if (s === -1) return { prefix: "", local: t };
657
+ const o = t.slice(s + 1), a = t.slice(0, s);
658
+ return (a === "" || o === "" || o.includes(":")) && this.fail(`malformed name: ${t}.`), { prefix: a, local: o };
659
+ }
660
+ processAttribsNS() {
661
+ const { attribList: t } = this, s = this.tag;
662
+ {
663
+ const { prefix: n, local: h } = this.qName(s.name);
664
+ s.prefix = n, s.local = h;
665
+ const p = s.uri = this.resolve(n) ?? "";
666
+ n !== "" && (n === "xmlns" && this.fail('tags may not have "xmlns" as prefix.'), p === "" && (this.fail(`unbound namespace prefix: ${JSON.stringify(n)}.`), s.uri = n));
667
+ }
668
+ if (t.length === 0) return;
669
+ const { attributes: o } = s, a = /* @__PURE__ */ new Set();
670
+ for (const n of t) {
671
+ const { name: h, prefix: p, local: A } = n;
672
+ let x, w;
673
+ p === "" ? (x = h === "xmlns" ? _t : "", w = h) : (x = this.resolve(p), x === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(p)}.`), x = p), w = `{${x}}${A}`), a.has(w) && this.fail(`duplicate attribute: ${w}.`), a.add(w), n.uri = x, o[h] = n;
674
+ }
675
+ this.attribList = [];
676
+ }
677
+ processAttribsPlain() {
678
+ const { attribList: t } = this, s = this.tag.attributes;
679
+ for (const { name: o, value: a } of t) s[o] !== void 0 && this.fail(`duplicate attribute: ${o}.`), s[o] = a;
680
+ this.attribList = [];
681
+ }
682
+ openTag() {
683
+ this.processAttribs();
684
+ const { tags: t } = this, s = this.tag;
685
+ s.isSelfClosing = !1, this.openTagHandler?.(s), t.push(s), this.state = et, this.name = "";
686
+ }
687
+ openSelfClosingTag() {
688
+ this.processAttribs();
689
+ const { tags: t } = this, s = this.tag;
690
+ s.isSelfClosing = !0, this.openTagHandler?.(s), this.closeTagHandler?.(s), (this.tag = t[t.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = et, this.name = "";
691
+ }
692
+ closeTag() {
693
+ const { tags: t, name: s } = this;
694
+ if (this.state = et, this.name = "", s === "") return this.fail("weird empty close tag."), void (this.text += "</>");
695
+ const o = this.closeTagHandler;
696
+ let a = t.length;
697
+ for (; a-- > 0; ) {
698
+ const n = this.tag = t.pop();
699
+ if (this.topNS = n.ns, o?.(n), n.name === s) break;
700
+ this.fail(`unexpected close tag: ${s}.`);
701
+ }
702
+ a === 0 ? this.closedRoot = !0 : a < 0 && (this.fail(`unmatched closing tag: ${s}.`), this.text += `</${s}>`);
703
+ }
704
+ parseEntity(t) {
705
+ if (t[0] !== "#") {
706
+ const o = this.ENTITIES[t];
707
+ return o !== void 0 ? o : (this.fail(this.isName(t) ? "undefined entity." : "disallowed character in entity name."), `&${t};`);
708
+ }
709
+ let s = NaN;
710
+ return t[1] === "x" && /^#x[0-9a-f]+$/i.test(t) ? s = parseInt(t.slice(2), 16) : /^#[0-9]+$/.test(t) && (s = parseInt(t.slice(1), 10)), this.isChar(s) ? String.fromCodePoint(s) : (this.fail("malformed character entity."), `&${t};`);
711
+ }
712
+ }
713
+ var ae, kt;
714
+ (kt = ae || (ae = {})).Events = { XmlDecl: "xmldecl", Text: "text", ProcessingInstruction: "processinginstruction", Doctype: "doctype", Comment: "comment", OpenTagStart: "opentagstart", Attribute: "attribute", OpenTag: "opentag", CloseTag: "closetag", CDdata: "cdata", Error: "error", End: "end", Ready: "ready" }, kt.parseStream = async (i, t, s) => {
715
+ const o = new Ue({ position: !1, ...s });
716
+ let a;
717
+ if (t.onOpenTagStart && o.on(kt.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && o.on(kt.Events.OpenTag, t.onOpenTag), t.onCloseTag && o.on(kt.Events.CloseTag, t.onCloseTag), t.onAttribute && o.on(kt.Events.Attribute, t.onAttribute), t.onText && o.on(kt.Events.Text, t.onText), t.onError && o.on(kt.Events.Error, t.onError), t.onEnd) {
718
+ t.onEnd;
719
+ const n = () => {
720
+ a = t.onEnd();
721
+ };
722
+ o.on(kt.Events.End, n);
723
+ }
724
+ for (; ; ) {
725
+ const { value: n, done: h } = await i.read();
726
+ if (h) break;
727
+ o.write(n);
728
+ }
729
+ return o.close(), a;
730
+ };
731
+ const E = (i) => i === !0 || i === "1" || i === "on" || i === "true" || i !== !1 && i !== "0" && i !== "off" && i !== "false" && null, V = (i) => {
732
+ const t = parseInt(i);
733
+ return isNaN(t) ? null : t;
734
+ }, xt = (i) => {
735
+ const t = parseFloat(i);
736
+ return isNaN(t) ? null : t;
737
+ }, P = null;
738
+ class Ze {
739
+ constructor() {
740
+ this._registeredVisitors = /* @__PURE__ */ new Map();
741
+ }
742
+ registerVisitor(t) {
743
+ this._registeredVisitors.set(t.from, t);
744
+ }
745
+ createEventHandler(t, s, o) {
746
+ const a = this._registeredVisitors, n = [];
747
+ let h = null, p = null, A = null, x = null;
748
+ const w = [], v = { key: null, source: t };
749
+ let b = null, O = !1;
750
+ const R = (l, d) => {
751
+ let m = A.attributes[l];
752
+ if (d) {
753
+ if (Array.isArray(d)) {
754
+ for (let H = 0; H < d.length; H++) if (m == null || (m = d[H](m), m == null)) return;
755
+ } else if (m == null || (m = d(m), m == null)) return;
756
+ }
757
+ return m;
758
+ }, D = { getSource: () => b.source, setSource: (l) => {
759
+ b.source = l;
760
+ }, setKey: (l) => {
761
+ b.key = l;
762
+ }, getFrom: () => A, getAttribute: (l, d) => R(l, d) ?? null, hasAttribute: (l) => D.getAttribute(l) !== null, getParent: () => w[w.length - 2].source, getPath: () => {
763
+ const l = [];
764
+ for (let d = 0; d < n.length; d++) l.push(n[d].local);
765
+ return l.join("\\");
766
+ }, parseAttribute: R, copyToObject: (l, d, m, H) => {
767
+ const G = R(H ?? d, m);
768
+ G !== void 0 && (l[d] = G);
769
+ }, copyTo: (l, d, m) => {
770
+ const H = R(m ?? l, d);
771
+ H !== void 0 && (b.source[l] = H);
772
+ }, warn: (l) => {
773
+ o ? o?.(l) : console.warn(l);
774
+ } };
775
+ return { onOpenTag: (l) => {
776
+ let d = l.name;
777
+ const m = d.indexOf(":");
778
+ m !== -1 && (d = d.slice(m + 1));
779
+ const H = a.get(d);
780
+ if (h = { local: d, visitor: H, tag: l, destination: null }, O) return n.push(h), p = d, void (A = l);
781
+ x = h?.visitor ?? null, H && (b = n.length === 0 ? v : x?.to !== null ? { key: null, source: {} } : null, h.destination = b, b && w.push(b)), n.push(h), p = d, A = l, O = x?.to === null, x?.openTag?.(D);
782
+ }, onCloseTag: (l) => {
783
+ let d = l.name;
784
+ const m = d.indexOf(":");
785
+ if (m !== -1 && (d = d.slice(m + 1)), d !== p) throw new Error(`mismatch open/close tag: '${d}'/'${p}'`);
786
+ O || x?.closeTag?.(D);
787
+ const H = n.pop() ?? null;
788
+ h = n[n.length - 1] ?? null;
789
+ const G = H?.destination;
790
+ if (G) {
791
+ w.pop(), b = w[w.length - 1] ?? v;
792
+ const at = H.visitor;
793
+ at && at.to && G.source !== void 0 && (Array.isArray(at.to) ? b.source.push ? b.source.push(G.source) : o?.(`Unable to parse array for ${at.from} at ${D.getPath()}`) : G.key ? b.source[G.key] = G.source : typeof at.to == "string" && (b.source[at.to] = G.source));
794
+ }
795
+ p = h?.local ?? null, A = h?.tag ?? null, x = h?.visitor ?? null, O = !h?.destination;
796
+ }, onText: (l) => {
797
+ x?.text?.(l, D);
798
+ }, onEnd: s };
799
+ }
800
+ }
801
+ const ge = (i, t, s, o = null) => {
802
+ if (!i) return null;
803
+ let a = i;
804
+ a.startsWith("/") && (a = a.substring(1));
805
+ let n = o?.parsedRefs?.get(i);
806
+ if (n !== void 0) return n;
807
+ const h = t(a);
808
+ if (!h) return null;
809
+ let p = h.content;
810
+ try {
811
+ s && (p = s(p));
812
+ } catch (A) {
813
+ console.warn(A);
814
+ }
815
+ return o?.parsedRefs?.set(i, p), p;
816
+ }, le = (i, t, s, o, a = null) => {
817
+ if (!i) return null;
818
+ let n = i;
819
+ n.startsWith("/") && (n = n.substring(1));
820
+ let h = a?.parsedRefs?.get(i);
821
+ if (h !== void 0) return h;
822
+ const p = t(n);
823
+ if (!p) return null;
824
+ const A = p.content;
825
+ try {
826
+ const x = new TextDecoder().decode(A), w = s.parseFromString(x, "text/xml"), v = o.convert(w, i, a);
827
+ return a?.parsedRefs?.set(i, v), v;
828
+ } catch (x) {
829
+ console.warn(x);
830
+ }
831
+ return null;
832
+ }, Xt = (i, t, s, o, a = null) => {
833
+ const n = /* @__PURE__ */ new Map();
834
+ let h = t.Directory[i];
835
+ const p = h ? h.length : 0;
836
+ for (let A = 0; A < p; A++) {
837
+ const x = h[A];
838
+ if (!x) continue;
839
+ let w = x;
840
+ w.startsWith("/") && (w = w.substring(1));
841
+ const v = le(w, (b) => t.files[b], s, o, a);
842
+ n.set(w, v);
843
+ }
844
+ return n;
845
+ }, Qe = ["lt1", "dk1", "lt2", "dk2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], fe = (i, t = "dk1") => {
846
+ let s;
847
+ const o = i("auto");
848
+ o === void 0 || o !== "1" && o !== "true" || (s = t);
849
+ const a = i("indexed");
850
+ a && (s = `index${a}`);
851
+ const n = i("rgb");
852
+ n && (s = n.toLowerCase(), n.length !== 8 || n.startsWith("FF") || (s = "FF" + n.substring(2, n.length)));
853
+ const h = i("theme");
854
+ h && (s = Qe[h]);
855
+ let p = i("tint");
856
+ if (p && (s += ` ${Ee.AdjustmentType.ETint} ${parseFloat(p)}`), s) return s;
857
+ }, Je = (i) => i && i.replace(/^\{([\s\S]+)\}$/, "$1"), ss = (i) => i ? oe.roundAccurately(parseFloat(i) / 12700, 4) : null, is = (i) => i ? oe.roundAccurately(parseFloat(i) / 9525, 1) : null, os = (i) => parseFloat(i) / 1e3, rs = (i) => parseFloat(i) / 6e4, Ke = (i) => i === "true" || i === "1";
858
+ class $t {
859
+ static {
860
+ this.Collapsed = 1;
861
+ }
862
+ static {
863
+ this.CustomFormat = 2;
864
+ }
865
+ static {
866
+ this.CustomHeight = 4;
867
+ }
868
+ static {
869
+ this.Hidden = 8;
870
+ }
871
+ static {
872
+ this.Ht = 16;
873
+ }
874
+ static {
875
+ this.OutlineLevel = 32;
876
+ }
877
+ static {
878
+ this.Ph = 64;
879
+ }
880
+ static {
881
+ this.R = 128;
882
+ }
883
+ static {
884
+ this.S = 256;
885
+ }
886
+ static {
887
+ this.Spans = 512;
888
+ }
889
+ static {
890
+ this.ThickBot = 1024;
891
+ }
892
+ static {
893
+ this.ThickTop = 2048;
894
+ }
895
+ }
896
+ const Ye = (i, t, s) => {
897
+ if (i[0].value[0] === i[1].value[0]) return t;
898
+ }, me = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, ts = (i, t, s, o, a, n, h) => {
899
+ let p = !1, A = !1, x = [], w = !1, v = null, b = null, O = null, R = null, D = null, l = null;
900
+ const d = h?.get("richData") ?? [], m = wt.normalizeA1ToR1C1, H = re.createConflatingRanges(), G = /* @__PURE__ */ new Map(), at = [];
901
+ let At = null;
902
+ const Ht = re.createConflatingRanges();
903
+ let Dt, Tt = !1, X = -1, U = -1, st = null, it = null;
904
+ const Et = [];
905
+ let Ot = null, Zt = -2, dt = 0, vt = "", St = "", pt = "", yt = "", Ct = "", J = "", gt = "", qt = "", Qt = "", It = "", Jt = "", jt = "", Kt = "", Yt = "", T = !0, $ = null, Z = !1, K = !1, Y = null, I = 0;
906
+ return { ...s, onEnd: () => {
907
+ Et.length > 0 && (t.rows = Et);
908
+ let g = H.done(Ye);
909
+ const C = g.length;
910
+ if (C > 0) {
911
+ const y = new Array(C);
912
+ for (let k = 0; k < C; k++) {
913
+ const q = g[k], Q = wt.rangeToString(q), ot = q.value[1], lt = wt.resolveRelativeToA1(ot, q.rowStart, q.colStart);
914
+ y[k] = [Q, lt];
915
+ }
916
+ t.formulas = y;
917
+ }
918
+ const tt = Ht.done(!0), S = tt.length;
919
+ if (S > 0) {
920
+ const y = new Array(S);
921
+ for (let k = 0; k < S; k++) {
922
+ const q = tt[k], Q = wt.rangeToString(q);
923
+ y[k] = Q;
924
+ }
925
+ t.volatile = y;
926
+ }
927
+ if (at.length > 0 && (t.dynamicArray = [...at]), x.length > 0) {
928
+ x.sort(re.createRangeComparator(Pe.Orientation.Column));
929
+ const y = [];
930
+ let k = null, q = -1, Q = -1, ot = -1, lt = -1, ft = null;
931
+ const M = x.length;
932
+ M > 0 && (k = x[0], q = k.colStart, Q = k.colEnd, ot = k.rowEnd, lt = k.value, y.push(k));
933
+ for (let ct = 1; ct < M; ct++) ft = x[ct], lt !== ft.value || q !== ft.colStart || Q !== ft.colEnd || ot + 1 !== ft.rowEnd ? (y.push(ft), k = ft, q = k.colStart, Q = k.colEnd, ot = k.rowEnd, lt = k.value) : (ot = ft.rowEnd, k.rowEnd = ot);
934
+ let j = [];
935
+ for (let ct = 0; ct < y.length; ct++) {
936
+ const B = y[ct];
937
+ j.push({ r: { colStart: B.colStart, colEnd: B.colEnd, rowStart: B.rowStart, rowEnd: B.rowEnd }, v: B.value });
938
+ }
939
+ t.directStyles = j;
940
+ }
941
+ const N = i.build();
942
+ if (N) {
943
+ const y = N.tuples;
944
+ t.data = y;
945
+ }
946
+ s?.onEnd?.();
947
+ }, onOpenTag: (g) => {
948
+ let C = g.name;
949
+ const tt = C.indexOf(":");
950
+ if (tt !== -1 && (C = C.slice(tt + 1)), I++, I % 196608 == 0 && a(I), Dt) {
951
+ const S = g.attributes;
952
+ switch (C) {
953
+ case "v":
954
+ A = !0;
955
+ break;
956
+ case "f":
957
+ switch (S.t ?? null) {
958
+ case null:
959
+ case "normal":
960
+ w = !0;
961
+ break;
962
+ case "shared":
963
+ const N = S.si;
964
+ b = S.ref, v = N;
965
+ break;
966
+ case "array":
967
+ w = !0, b = S.ref, At = [b, !1];
968
+ break;
969
+ case "datatable":
970
+ w = !0, b = S.ref, w = !0;
971
+ }
972
+ S.ca !== void 0 && Ht.append(X, U);
973
+ break;
974
+ case "is":
975
+ return void (Tt = !0);
976
+ }
977
+ return void (Tt && n?.onOpenTag(g));
978
+ }
979
+ if (p) {
980
+ if (C === "c") {
981
+ Dt = g;
982
+ const S = g.attributes.r;
983
+ U = wt.fastStringToCol(S);
984
+ const N = g.attributes.t;
985
+ N === void 0 ? it = null : (it = N, it === "str" && (Tt = !0));
986
+ let y = g.attributes.s;
987
+ y === void 0 && (Y !== null || K) && (y = "0"), y !== void 0 && (y = parseInt(y), $ && $.value === y && $.colEnd + 1 === U ? $.colEnd = U : ($ = { colStart: U, rowStart: X, colEnd: U, rowEnd: X, value: y }, x.push($)));
988
+ }
989
+ } else {
990
+ if (C === "row") {
991
+ p = !0;
992
+ const S = g.attributes.r;
993
+ if (X = parseInt(S) - 1, dt = 0, St = g.attributes.customHeight, St !== void 0 && (dt |= $t.CustomHeight), St !== Qt && (T = !0, Qt = St), vt = g.attributes.ht, vt !== void 0 && (dt |= $t.Ht), vt !== qt && (T = !0, qt = vt), pt = g.attributes.hidden, pt !== void 0 && (dt |= $t.Hidden), pt !== It && (T = !0, It = pt), Ct = g.attributes.s, Ct !== void 0 && (dt |= $t.S), Ct !== jt && (T = !0, jt = Ct), yt = g.attributes.customFormat, yt !== void 0 && (dt |= $t.CustomFormat), yt !== Jt && (T = !0, Jt = yt), J = g.attributes.outlineLevel, J !== void 0 && (dt |= $t.OutlineLevel), J !== Kt && (T = !0, Kt = J), gt = g.attributes.collapsed, gt !== void 0 && (dt |= $t.Collapsed), gt !== Yt && (T = !0, Yt = gt), dt !== 0) if (Zt + 1 !== X || T) {
994
+ const N = St !== void 0 && (St === "1" || St === "true");
995
+ Y = yt === void 0 || yt !== "1" && yt !== "true" || Ct === void 0 ? null : Ct, Ot = { min: X, max: X, sz: N && vt !== void 0 ? parseFloat(vt) : -1, csz: N, h: pt !== void 0 && (pt === "1" || pt === "true"), s: Y === null ? void 0 : Y === "0" ? 0 : parseInt(Y), l: J === void 0 || J === "0" ? 0 : parseInt(J), cl: gt !== void 0 && (gt === "1" || gt === "true") }, Et.push(Ot);
996
+ } else Ot.max = X;
997
+ return Zt = X, void (T = !1);
998
+ }
999
+ if (!Z && C === "sheetData") {
1000
+ Z = !0;
1001
+ const S = t.cols, N = S ? S.length : 0;
1002
+ for (let y = 0; !K && y < N; y++) S[y].s && (K = !0);
1003
+ }
1004
+ s?.onOpenTag(g);
1005
+ }
1006
+ }, onCloseTag: (g) => {
1007
+ if (Dt) {
1008
+ let C = g.name;
1009
+ const tt = C.indexOf(":");
1010
+ if (tt !== -1 && (C = C.slice(tt + 1)), Tt) if (C === "is" || C === "v") {
1011
+ const S = n?.onEnd();
1012
+ S !== null && i.addValue(X, U, "" + S);
1013
+ } else n?.onCloseTag?.(g);
1014
+ return A && (A = !1), void (C === "c" && (Dt = null, Tt = !1));
1015
+ }
1016
+ if (p) return p = !1, void ($ = null);
1017
+ s?.onCloseTag(g);
1018
+ }, onText: (g) => {
1019
+ if (g = g.trim(), A) {
1020
+ switch (st = null, it) {
1021
+ case null:
1022
+ case "n":
1023
+ st = parseFloat(g);
1024
+ break;
1025
+ case "b":
1026
+ st = g === "1" || g === "true";
1027
+ break;
1028
+ case "s":
1029
+ st = g;
1030
+ break;
1031
+ case "e":
1032
+ if (g === "#VALUE!") {
1033
+ const tt = Dt.attributes.vm;
1034
+ if (tt !== void 0) {
1035
+ const S = d[parseInt(tt) - 1];
1036
+ if (S && S.isFormulaError) {
1037
+ st = { t: Mt.Error, v: S.getCode() };
1038
+ break;
1039
+ }
1040
+ }
1041
+ }
1042
+ const C = Ie.getBuiltInByLabel(g);
1043
+ C ? st = { t: Mt.Error, v: C.getCode() } : (st = g, o?.(`Unknown formula error '${g}' in cell ${wt.cellToString({ colIndex: U, rowIndex: X })}`));
1044
+ break;
1045
+ case "str":
1046
+ case "inlineStr":
1047
+ Tt = !0;
1048
+ }
1049
+ st !== null && i.addValue(X, U, st);
1050
+ }
1051
+ if (At && (it === "e" && (At[1] = !0), at.push(At), At = null), v) if (D === v) R = l;
1052
+ else {
1053
+ if (R = G.get(v), !R) {
1054
+ const C = [];
1055
+ O = m(g, X, U, C), R = [O, C, g], G.set(v, R);
1056
+ }
1057
+ D = v, l = R;
1058
+ }
1059
+ if (w) {
1060
+ const C = [];
1061
+ O = m(g, X, U, C), R = [O, C, g];
1062
+ }
1063
+ if (R) return H.append(X, U, R), R = null, w = !1, v = null, void (b = null);
1064
+ Tt ? n?.onText(g) : p || s?.onText(g);
1065
+ } };
1066
+ }, ns = Object.freeze(Object.defineProperty({ __proto__: null, readBufferXLSX: async (i, t) => {
1067
+ const { password: s, createWorkbookOptions: o = {}, ...a } = t ?? {}, n = [], h = t?.progress, p = h?.onProgress;
1068
+ let A = 0;
1069
+ const x = import("./BcuxIYGSAi3xC4Lk.js"), w = import("./D3IsWhYeF4VWF1yh.js");
1070
+ let v = null;
1071
+ try {
1072
+ v = new DOMParser();
1073
+ } catch {
1074
+ }
1075
+ let b = null;
1076
+ v || (b = import("./4lA748o59cx4KITO.js").then((l) => l.i));
1077
+ let O = null, R = null, D = null;
1078
+ try {
1079
+ const l = await Promise.all([x, w, b]);
1080
+ O = l[0], R = l[1], D = l[2];
1081
+ } catch (l) {
1082
+ throw new Error("Unable to load XLSX parser.", { cause: l });
1083
+ }
1084
+ try {
1085
+ const l = O.read(i, { type: "array", sheets: [], cellStyles: !1, bookFiles: !0 });
1086
+ if (!l.Directory) throw new ve("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
1087
+ l.Directory.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], l.Directory.richdata = ["/xl/richData/rdrichvalue.xml"];
1088
+ const d = new R.FromOOXMLConverter(), m = v ?? new D.DOMParser(), H = o?.resources ?? new Se(), G = H.beginPersist(), at = {}, At = /* @__PURE__ */ new Set(), Ht = /* @__PURE__ */ new Map();
1089
+ Ht.set("richTypes", []);
1090
+ const Dt = /* @__PURE__ */ new Map(), Tt = [], X = (T) => l.files[T], U = (T, $) => {
1091
+ const Z = T.lastIndexOf("/"), K = T.substring(0, Z + 1) + "_rels/" + T.substring(Z + 1, T.length) + ".rels";
1092
+ let Y = $.get(K);
1093
+ return Y || (Y = ((I, g, C, tt, S = null) => {
1094
+ if (!I) return null;
1095
+ const N = le(I, g, C, tt, S);
1096
+ if (!N) return null;
1097
+ const y = /* @__PURE__ */ new Map(), k = Object.keys(N), q = k.length;
1098
+ for (let Q = 0; Q < q; Q++) {
1099
+ const ot = k[Q], lt = N[ot];
1100
+ y.set(ot, lt);
1101
+ }
1102
+ return y;
1103
+ })(K, X, m, d, it), $.set(K, Y)), Y;
1104
+ }, st = (T, $, Z, K = Dt) => {
1105
+ let Y = U($, K).get(T), I = Y?.target;
1106
+ if (!I) return null;
1107
+ if (Y.targetMode === "External") return Y.target;
1108
+ const g = $.lastIndexOf("/"), C = $.substring(0, g + 1);
1109
+ I.startsWith("/") || (I = C + I), I = ((N) => {
1110
+ const y = N.split(/\/+/);
1111
+ return y.reduce((k, q, Q) => (q === "." ? k.splice(Q, 1) : q === ".." && k.splice(Q - 1, 2), k), y).join("/");
1112
+ })(I);
1113
+ const tt = d?.getVisitorParamsState().get("dxfs");
1114
+ let S = K.get(I);
1115
+ if (!S) if (Y.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
1116
+ const N = {};
1117
+ S = N;
1118
+ const y = async () => {
1119
+ const k = ((M, j, ct, B, ht, rt, zt, Vt) => {
1120
+ const u = new Ze(), ut = new Ce.TransposedBuilder();
1121
+ let W = null;
1122
+ u.registerVisitor({ from: "autoFilter", to: "filter", openTag: (e) => {
1123
+ e.copyTo("ref", P);
1124
+ } }), u.registerVisitor({ from: "conditionalFormatting", to: {}, openTag: (e) => {
1125
+ const r = e.getParent();
1126
+ r.conditionals || (r.conditionals = []), r.conditionals.push(e.getSource());
1127
+ const c = e.getAttribute("sqref");
1128
+ c && (e.getSource().ref = c.split(" ").join(",")), e.copyTo("pivot", E);
1129
+ }, closeTag: (e) => {
1130
+ const r = e.getSource();
1131
+ if (r.rule) {
1132
+ const c = Object.keys(r.rule);
1133
+ for (let f = 0; f < c.length; f++) {
1134
+ const F = c[f];
1135
+ F !== "rule" && (r[F] = r.rule[F]);
1136
+ }
1137
+ }
1138
+ delete r.rule;
1139
+ } }), u.registerVisitor({ from: "cfRule", to: "rule", openTag: (e) => {
1140
+ const r = e.getParent();
1141
+ e.copyToObject(r, "type", P), e.copyToObject(r, "priority", V), e.copyToObject(r, "stopIfTrue", E);
1142
+ const c = e.getAttribute("dxfId", V);
1143
+ if (c !== null) {
1144
+ let f = B?.get(c);
1145
+ f || (rt?.(`Unable to load conditional color. Invalid dxfI: '${c}' at '${e.getPath()}'.`), f = {}), r.style = f;
1146
+ }
1147
+ e.copyToObject(r, "aboveAverage", E), e.copyToObject(r, "equalAverage", E), e.copyToObject(r, "stdDev", V), e.copyToObject(r, "bottom", E), e.copyToObject(r, "percent", E), e.copyToObject(r, "rank", V), e.copyToObject(r, "operator", P), e.copyToObject(r, "text", P), e.copyToObject(r, "timePeriod", P);
1148
+ } }), u.registerVisitor({ from: "colorScale", to: "colorScale" }), u.registerVisitor({ from: "dataBar", to: "dataBar", openTag: (e) => {
1149
+ e.copyTo("maxLength", V), e.copyTo("minLength", V), e.copyTo("showValue", E);
1150
+ } }), u.registerVisitor({ from: "iconSet", to: "iconSet", openTag: (e) => {
1151
+ e.copyTo("iconSet", P), e.copyTo("reverse", E), e.copyTo("showValue", E);
1152
+ } }), u.registerVisitor({ from: "formula", to: null, text: (e, r) => {
1153
+ const c = r.getParent();
1154
+ let f = c.formulas;
1155
+ f || (f = [], c.formulas = f), f.push(e);
1156
+ } }), u.registerVisitor({ from: "cfvo", to: {}, openTag: (e) => {
1157
+ const r = e.getParent();
1158
+ r.conditions || (r.conditions = []), r.conditions.push(e.getSource()), e.copyTo("type", P), e.copyTo("value", xt, "val"), e.copyTo("gte", E);
1159
+ } }), u.registerVisitor({ from: "color", to: {}, openTag: (e) => {
1160
+ const r = e.getParent();
1161
+ r.colors || (r.colors = []);
1162
+ const c = fe((f) => e.getAttribute(f));
1163
+ r.colors.push(c);
1164
+ } }), u.registerVisitor({ from: "filterColumn", to: "filterColumn", openTag: (e) => {
1165
+ const r = e.getParent();
1166
+ r.fields || (r.fields = []), r.fields.push(e.getSource()), e.copyTo("offset", V, "colId"), e.copyTo("hiddenButton", E), e.copyTo("showButton", E);
1167
+ } }), u.registerVisitor({ from: "colorFilter", to: "colorFilter", openTag: (e) => {
1168
+ const r = e.getParent();
1169
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Color, e.copyTo("cellColor", E), e.copyTo("styleId", V, "dxfId");
1170
+ } }), u.registerVisitor({ from: "dynamicFilter", to: "dynamicFilter", openTag: (e) => {
1171
+ const r = e.getParent();
1172
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Dynamic, e.copyTo("dynamicType", P, "type"), e.copyTo("val", xt), e.copyTo("maxVal", xt, "maxVal");
1173
+ } }), u.registerVisitor({ from: "iconFilter", to: "iconFilter", openTag: (e) => {
1174
+ const r = e.getParent();
1175
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Icon, e.copyTo("iconId", V), e.copyTo("iconSet", P);
1176
+ } }), u.registerVisitor({ from: "top10", to: "top10", openTag: (e) => {
1177
+ const r = e.getParent();
1178
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Top10, e.copyTo("filterVal", xt), e.copyTo("percent", E), e.copyTo("top", E), e.copyTo("val", xt);
1179
+ } }), u.registerVisitor({ from: "filters", to: "filters", openTag: (e) => {
1180
+ const r = e.getParent();
1181
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Items, e.copyTo("blank", E), e.copyTo("calendarType", P);
1182
+ } }), u.registerVisitor({ from: "dateGroupItem", to: "dateGroupItem", openTag: (e) => {
1183
+ const r = e.getParent();
1184
+ r.dateGroups || (r.dateGroups = []), r.dateGroups.push(e.getSource()), e.copyTo("group", P, "dateTimeGrouping"), e.copyTo("day", V), e.copyTo("hour", V), e.copyTo("minute", V), e.copyTo("month", V), e.copyTo("second", V), e.copyTo("year", V);
1185
+ } }), u.registerVisitor({ from: "filter", to: "filter", openTag: (e) => {
1186
+ const r = e.getParent();
1187
+ r.items || (r.items = []), r.items.push(e.getAttribute("val", xt));
1188
+ } }), u.registerVisitor({ from: "customFilters", to: "customFilters", openTag: (e) => {
1189
+ const r = e.getParent();
1190
+ r.criteria || (r.criteria = []), r.criteria.push(e.getSource()), e.getSource().type = Ft.Type.Custom, e.copyTo("and", E);
1191
+ } }), u.registerVisitor({ from: "customFilter", to: "customFilter", openTag: (e) => {
1192
+ const r = e.getParent();
1193
+ r.filters || (r.filters = []), r.filters.push(e.getSource()), e.copyTo("operator", P), e.copyTo("value", xt, "val");
1194
+ } }), u.registerVisitor({ from: "sortState", to: "sort", openTag: (e) => {
1195
+ e.copyTo("ref", P);
1196
+ } }), u.registerVisitor({ from: "sortCondition", to: "sortCondition", openTag: (e) => {
1197
+ const r = e.getParent();
1198
+ r.fields || (r.fields = []);
1199
+ const c = e.getSource();
1200
+ r.fields.push(c), e.copyTo("sortOn", P, "sortBy"), e.copyTo("dxfId", P, "sortBy"), e.copyTo("iconSet", P), e.copyTo("customList", P);
1201
+ const f = e.getAttribute("ref");
1202
+ if (f) {
1203
+ const F = wt.fastStringToRange(f, me).colStart, Nt = wt.fastStringToRange(r.ref, me), ee = Nt.colStart;
1204
+ c.offset = Nt ? F - ee : F;
1205
+ }
1206
+ c.reverse = e.getAttribute("descending", E) ?? !1;
1207
+ } }), u.registerVisitor({ from: "AlternateContent", to: null });
1208
+ const te = (e) => {
1209
+ W = e.getSource(), e.copyTo("topLeft", P, "topLeftCell");
1210
+ const r = Ke(e.getAttribute("defaultGridColor")), c = e.getAttribute("colorId");
1211
+ c === null || r || (e.getSource().gridLineColor = "index" + parseFloat(c)), e.copyTo("showZeros", E), e.copyTo("showFormulas", E), e.copyTo("zoomScale", V), e.copyTo("showRowHeaders", E, "showRowColHeaders"), e.copyTo("showColumnHeaders", E, "showRowColHeaders"), e.copyTo("showRowGridlines", E, "showGridLines"), e.copyTo("showColumnGridlines", E, "showGridLines");
1212
+ };
1213
+ u.registerVisitor({ from: "sheetView", to: "view", openTag: (e) => {
1214
+ te(e);
1215
+ }, closeTag: () => {
1216
+ W = null;
1217
+ } }), u.registerVisitor({ from: "customSheetViews", to: "customSheetViews", openTag: (e) => {
1218
+ e.setSource([]);
1219
+ } }), u.registerVisitor({ from: "customSheetView", to: [], openTag: (e) => {
1220
+ te(e);
1221
+ }, closeTag: () => {
1222
+ W = null;
1223
+ } }), u.registerVisitor({ from: "selection", to: "selection", openTag: (e) => {
1224
+ if (!W) return;
1225
+ e.copyTo("cell", P, "activeCell"), e.copyTo("rangeIndex", V, "activeCellId");
1226
+ const r = e.getAttribute("activeCell"), c = e.getAttribute("sqref");
1227
+ c && c !== r && (e.getSource().ranges = c.split(" "));
1228
+ } }), u.registerVisitor({ from: "pane", to: "pane", openTag: (e) => {
1229
+ if (W && e.getAttribute("state") === "frozen") {
1230
+ const r = {};
1231
+ W.freezePanes = r, e.copyToObject(r, "topLeft", P, "topLeftCell");
1232
+ const c = W.topLeft ? wt.fastStringToCell(W.topLeft) : { colIndex: 0, rowIndex: 0 }, f = { colIndex: 0, rowIndex: 0 };
1233
+ e.copyToObject(f, "colIndex", V, "xSplit"), e.copyToObject(f, "rowIndex", V, "ySplit");
1234
+ const F = { colIndex: c.colIndex + f.colIndex, rowIndex: c.rowIndex + f.rowIndex };
1235
+ r.coords = wt.cellToString(F);
1236
+ }
1237
+ } }), u.registerVisitor({ from: "tabColor", to: null, openTag: (e) => {
1238
+ const r = fe((c) => e.getAttribute(c));
1239
+ r && (M.tabColor = r);
1240
+ } }), u.registerVisitor({ from: "pageSetUpPr", to: "pageSetUpPr", openTag: (e) => {
1241
+ } }), u.registerVisitor({ from: "outlinePr", to: "outlinePr", openTag: (e) => {
1242
+ } }), u.registerVisitor({ from: "pageMargins", to: "pageMargins", openTag: (e) => {
1243
+ } }), u.registerVisitor({ from: "pageSetup", to: "pageSetup", openTag: (e) => {
1244
+ } }), u.registerVisitor({ from: "printOptions", to: "printOptions", openTag: (e) => {
1245
+ } }), u.registerVisitor({ from: "mergeCells", to: "merges", openTag: (e) => {
1246
+ e.setSource([]);
1247
+ } }), u.registerVisitor({ from: "mergeCell", to: [], openTag: (e) => {
1248
+ const r = e.getAttribute("ref");
1249
+ e.setSource(r);
1250
+ } }), u.registerVisitor({ from: "hyperlinks", to: "hyperlinks", openTag: (e) => {
1251
+ e.setSource([]);
1252
+ } }), u.registerVisitor({ from: "hyperlink", to: [], openTag: (e) => {
1253
+ const r = e.getAttribute("r:id"), c = e.getAttribute("ref");
1254
+ if (!c) return void console.warn("No ref found for hyperlink");
1255
+ e.setKey(c);
1256
+ let f = r ? j(r) : "";
1257
+ if (typeof f != "string") return void console.warn("Invalid address ", f);
1258
+ const F = e.getAttribute("location");
1259
+ f.endsWith("\\") && (f = f.substring(0, f.length - 1));
1260
+ const Nt = e.getAttribute("location");
1261
+ if (Nt && (F && F !== Nt && console.warn("display and location are different", F, Nt), f += "#" + Nt), !f) return void console.warn("No address found for hyperlink. r:id", r);
1262
+ let ee;
1263
+ const ce = e.getAttribute("tooltip");
1264
+ ee = ce ? { address: f, tooltip: ce } : f, e.setSource({ r: c, v: ee });
1265
+ } }), u.registerVisitor({ from: "drawing", to: "movables", openTag: (e) => {
1266
+ const r = e.getAttribute("r:id");
1267
+ if (!r) return;
1268
+ const c = j(r);
1269
+ c ? e.setSource(c.movables) : console.warn("no drawing found for rId", r);
1270
+ } }), u.registerVisitor({ from: "tableParts", to: "tables", openTag: (e) => {
1271
+ e.setSource([]);
1272
+ } }), u.registerVisitor({ from: "tablePart", to: [], openTag: (e) => {
1273
+ const r = e.getAttribute("r:id");
1274
+ if (!r) return;
1275
+ const c = j(r);
1276
+ c ? e.setSource(c) : console.warn("no table found for rId", r);
1277
+ } }), u.registerVisitor({ from: "worksheet", to: "worksheet", openTag: (e) => {
1278
+ } }), u.registerVisitor({ from: "sheetProtection", to: "protection", openTag: (e) => {
1279
+ let r = !1;
1280
+ if (e.hasAttribute("sheet") && E(e.getAttribute("sheet")) && (r = !0), !r) return void e.setSource(void 0);
1281
+ const c = (F) => F === !0 || F === "1" || F === "on" || F === "true" || F === !1 || F === "0" || F === "off" || F === "false" || null;
1282
+ e.copyTo("autoFilter", c), e.copyTo("deleteColumns", c), e.copyTo("formatCells", c), e.copyTo("formatColumns", c), e.copyTo("formatRows", c), e.copyTo("insertColumns", c), e.copyTo("insertHyperlinks", c), e.copyTo("insertRows", c), e.copyTo("objects", c), e.copyTo("pivotTables", c), e.copyTo("scenarios", c), e.copyTo("selectUnlockedCells", c), e.copyTo("selectUnlockedCells", c), e.copyTo("sort", c);
1283
+ const f = {};
1284
+ e.copyToObject(f, "hash", P, "hashValue"), e.copyToObject(f, "algorithm", P, "algorithmName"), e.copyToObject(f, "salt", P, "saltValue"), e.copyToObject(f, "spinCount", V), Object.keys(f).length > 0 && (e.getSource().password = f);
1285
+ } }), u.registerVisitor({ from: "protectedRanges", to: "protectedRanges", openTag: (e) => {
1286
+ e.setSource({});
1287
+ } }), u.registerVisitor({ from: "protectedRange", to: {}, openTag: (e) => {
1288
+ const r = e.getAttribute("sqref");
1289
+ e.setKey(r), e.copyTo("name"), e.copyTo("securityDescriptor");
1290
+ const c = {};
1291
+ e.copyToObject(c, "hash", P, "hashValue"), e.copyToObject(c, "algorithm", P, "algorithmName"), e.copyToObject(c, "salt", P, "saltValue"), e.copyToObject(c, "spinCount", V), Object.keys(c).length > 0 && (e.getSource().password = c);
1292
+ } }), u.registerVisitor({ from: "sheetFormatPr", to: "sheetFormatPr", openTag: (e) => {
1293
+ e.copyToObject(M, "defaultColSize", xt, "defaultColWidth"), e.copyToObject(M, "outlineLevelCol", V, "outlineLevelCol");
1294
+ const r = e.getAttribute("customHeight");
1295
+ r !== "1" && r !== "true" || e.copyToObject(M, "defaultRowSize", xt, "defaultRowHeight"), e.copyToObject(M, "outlineLevelRow", V, "outlineLevelRow");
1296
+ } }), u.registerVisitor({ from: "cols", to: "cols", openTag: (e) => {
1297
+ e.setSource([]);
1298
+ } }), u.registerVisitor({ from: "col", to: [], openTag: (e) => {
1299
+ e.copyTo("min", (r) => parseInt(r) - 1), e.copyTo("max", (r) => parseInt(r) - 1), e.copyTo("sz", xt, "width"), e.copyTo("csz", E, "customWidth"), e.copyTo("h", E, "hidden"), e.copyTo("l", V, "outlineLevel"), e.copyTo("s", V, "style");
1300
+ } }), u.registerVisitor({ from: "oleObjects", to: null, openTag: (e) => {
1301
+ e.warn("'OLE Objects' are not supported.");
1302
+ } });
1303
+ let Gt = null;
1304
+ const we = { onOpenTag: (e) => {
1305
+ Gt === null && (Gt = "");
1306
+ }, onText: (e) => {
1307
+ Gt += e;
1308
+ }, onEnd: () => {
1309
+ const e = ct(Gt);
1310
+ return Gt = null, e;
1311
+ }, onError: (e) => {
1312
+ } };
1313
+ return ts(ut, M, u.createEventHandler(M, () => {
1314
+ }, rt), rt, (e) => {
1315
+ A += e, p?.(A);
1316
+ }, we, Vt);
1317
+ })(N, (M, j = !1) => st(M, I, j) ?? null, St, tt, 0, (M, j) => {
1318
+ j = j ? `${j} (${I})` : I, n.push([M, j]);
1319
+ }, 0, Ht), q = ge(I, X), Q = await (async (M, j = 8388608) => {
1320
+ await (async () => {
1321
+ if (typeof ReadableStream > "u") if (typeof window > "u") {
1322
+ const { ReadableStream: rt } = await import("./CCo7GabBmelvhNyn.js");
1323
+ globalThis.ReadableStream = rt;
1324
+ } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1325
+ })();
1326
+ const ct = new TextDecoder("utf-8");
1327
+ let B = 0;
1328
+ const ht = M instanceof Uint8Array ? M : new Uint8Array(M);
1329
+ return new ReadableStream({ pull(rt) {
1330
+ if (B >= ht.byteLength) return void rt.close();
1331
+ const zt = ht.subarray(B, Math.min(B + j, ht.byteLength)), Vt = ct.decode(zt, { stream: B + j < ht.byteLength });
1332
+ rt.enqueue(Vt), B += zt.length;
1333
+ } }).getReader();
1334
+ })(q);
1335
+ try {
1336
+ await ae.parseStream(Q, k, { xmlns: !1 });
1337
+ } catch (M) {
1338
+ throw console.warn(`Error parsing sheet: '${I}'`, M), new Error(`Error parsing sheet: '${I}'`, { cause: M });
1339
+ }
1340
+ const ot = U(I, K);
1341
+ let lt, ft = /* @__PURE__ */ new Map();
1342
+ if (ot) {
1343
+ const M = "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";
1344
+ let j;
1345
+ ot.forEach((B, ht) => {
1346
+ B.type === M && (lt = st(ht, I, !1, K)?.comments, lt && lt.forEach((rt) => {
1347
+ ft.set(rt.id, rt);
1348
+ }));
1349
+ });
1350
+ const ct = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
1351
+ if (ot.forEach((B, ht) => {
1352
+ B.type === ct && (j = st(ht, I, !1, K));
1353
+ }), j || lt) {
1354
+ const B = lt ?? [], ht = j?.comments;
1355
+ if (ht) {
1356
+ const rt = j?.authors, zt = ht.length;
1357
+ for (let Vt = 0; Vt < zt; Vt++) {
1358
+ const u = ht[Vt];
1359
+ if (!u) continue;
1360
+ let ut = rt && u.authorId !== void 0 ? rt[u.authorId] : u.authorId;
1361
+ if (ut && ut.startsWith("tc=") && (ut = Je(ut.substring(3)), ft.has(ut))) continue;
1362
+ let W = null;
1363
+ ut && (W = pt.get(ut)), W || (W = yt.get(ut)), W || (W = { id: oe.uuidV4(), displayName: ut }, yt.set(W.displayName, W), pt.set(W.id, W)), ut = W?.id ?? null;
1364
+ const te = { id: oe.uuidV4(), personId: ut, ref: u.ref, done: !1, asNote: !0, content: u.content };
1365
+ B.push(te);
1366
+ }
1367
+ }
1368
+ N.comments = B;
1369
+ }
1370
+ }
1371
+ };
1372
+ Tt.push(y());
1373
+ } else S = Z ? ge(I, X, (N) => {
1374
+ const y = H.add({ buffer: N });
1375
+ return y.addReference(at), At.add(y), G.toResourceId(y);
1376
+ }, it) : le(I, X, m, d, it);
1377
+ return S;
1378
+ }, it = { paramMap: Ht, getRefs: U, getRef: st, parsedRefs: Dt, addPerson: (T) => null }, Et = [];
1379
+ let Ot = 0;
1380
+ l.Strings && (Ot = parseInt(l.Strings.Unique ?? l.Strings.length ?? 0));
1381
+ const Zt = l.Strings ?? [];
1382
+ for (let T = 0; T < Ot; T++) Et.push(Zt[T]?.t ?? "");
1383
+ const dt = /* @__PURE__ */ new Map();
1384
+ let vt = Ot;
1385
+ const St = (T) => {
1386
+ const $ = dt.get(T);
1387
+ if ($ !== void 0) return $;
1388
+ const Z = vt;
1389
+ return dt.set(T, vt++), Et.push(T), Z;
1390
+ }, pt = (Xt("richstructure", l, m, d, it), Xt("richdata", l, m, d, it), /* @__PURE__ */ new Map()), yt = /* @__PURE__ */ new Map(), Ct = Xt("people", l, m, d);
1391
+ let J = null;
1392
+ if (Ct.size > 0 && (J = Ct.entries().next()?.value?.[1]?.persons, J)) {
1393
+ const T = J.length;
1394
+ for (let $ = 0; $ < T; $++) {
1395
+ const Z = J[$];
1396
+ pt.set(Z.id, Z), pt.set(Z.displayName, Z);
1397
+ }
1398
+ }
1399
+ const gt = Xt("themes", l, m, d, it);
1400
+ let qt = null;
1401
+ if (gt && gt.entries) {
1402
+ let T = gt.entries().next();
1403
+ T?.value?.[1] && (qt = T.value[1]);
1404
+ }
1405
+ const Qt = new ke(qt);
1406
+ let It = Xt("styles", l, m, d, it).entries().next()?.value[1];
1407
+ It && (It = JSON.parse(Ae(It)));
1408
+ const Jt = Xt("workbooks", l, m, d, it);
1409
+ await Promise.all(Tt);
1410
+ const jt = { ...Jt.entries().next().value[1], styles: It, theme: Qt.toJSON() };
1411
+ Et.length > 0 && (jt.strings = Et), J && J.length > 0 && (jt.people = J);
1412
+ const Kt = { ...o, resources: H, json: jt }, Yt = new De(Kt);
1413
+ if (At.forEach((T) => {
1414
+ T.deleteReference(at);
1415
+ }), G.endPersist(), n.length) {
1416
+ const T = h?.onWarning;
1417
+ if (T) for (const $ of n) {
1418
+ const [Z, K] = $;
1419
+ T(Z, K);
1420
+ }
1421
+ }
1422
+ return Yt;
1423
+ } catch (l) {
1424
+ let d = "Unable to parse XLSX.";
1425
+ throw l instanceof Oe && (d = "Unable to open XLSX. There are too many rows or columns."), new Error(d, { cause: l });
1426
+ }
1427
+ }, writeBufferXLSX: async (i, t) => {
1428
+ const s = await import("./BcuxIYGSAi3xC4Lk.js"), o = await i.toJSON(!0), a = s.utils.book_new();
1429
+ for (let n = 0; n < o.sheets.length; n++) {
1430
+ const h = o.sheets[n], p = s.utils.json_to_sheet([{}]);
1431
+ s.utils.book_append_sheet(a, p, h.name);
1432
+ const A = h.sheet, x = i.getSheetAt(n), w = x.getUsedRange();
1433
+ if (w ? (p["!ref"] = w.getA1(), w.forEach((v, b) => {
1434
+ const O = { t: "z" }, R = b.getCell().getStyle();
1435
+ if (!R.isNormal()) {
1436
+ let D = R.getNumberFormat();
1437
+ D !== Lt.Type.General && (D === Lt.Type.ShortDate ? D = "m/d/yyyy" : D === Lt.Type.MediumDate ? D = "d-mmm-yy" : D === Lt.Type.LongDate ? D = "[$-x-sysdate]dddd, mmmm dd, yyyy" : D === Lt.Type.ShortTime ? D = "h:mm" : D === Lt.Type.MediumTime ? D = "h:mm AM/PM" : D === Lt.Type.LongTime && (D = "h:mm:ss AM/PM"), O.z = D);
1438
+ }
1439
+ if (v !== null) switch (b.getType()) {
1440
+ case Mt.Number:
1441
+ O.t = "n", O.v = v;
1442
+ break;
1443
+ case Mt.String:
1444
+ O.t = "s", O.v = v;
1445
+ break;
1446
+ case Mt.Boolean:
1447
+ O.t = "b", O.v = v;
1448
+ break;
1449
+ case Mt.Error:
1450
+ O.t = "e", O.v = v.toString();
1451
+ case Mt.RichData:
1452
+ }
1453
+ p[b.getA1()] = O;
1454
+ })) : p["!ref"] = "A1:A1", A.merges?.length > 0) {
1455
+ const v = [];
1456
+ p["!merges"] = v;
1457
+ for (let b = 0; b < A.merges.length; b++) v.push(s.utils.decode_range(A.merges[b]));
1458
+ }
1459
+ if (A.cols?.length > 0) {
1460
+ const v = [];
1461
+ p["!cols"] = v;
1462
+ const b = A.cols, O = { width: A.defaultColSize ?? x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize()) }, R = b.length;
1463
+ for (let D = 0; D < R; D++) {
1464
+ const l = b[D];
1465
+ for (let m = v.length; m <= l.min - 1; m++) v.push(O);
1466
+ const d = {};
1467
+ l.sz !== void 0 && (d.width = l.sz), l.h !== void 0 && (d.hidden = l.h), l.l !== void 0 && (d.level = l.l);
1468
+ for (let m = l.min; m <= l.max; m++) v.push(d);
1469
+ }
1470
+ }
1471
+ }
1472
+ return s.write(a, { type: "array", bookType: "xlsx" }), s.write(a, { type: "array", bookType: "xlsx" });
1473
+ } }, Symbol.toStringTag, { value: "Module" }));
1474
+ export {
1475
+ ns as H,
1476
+ os as a,
1477
+ Ke as b,
1478
+ is as c,
1479
+ fe as d,
1480
+ rs as p,
1481
+ Je as r,
1482
+ ss as t
1483
+ };