@sheetxl/studio-vanilla 0.7.13 → 0.7.15
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.
- package/browser/cjs/{Cf0pm5JLv3pWJAWd.cjs → B1-Q1_mvjFTOHAOo.cjs} +2 -2
- package/browser/cjs/{rwFdEXq7gPabWAk2.cjs → B2TdLGM1J31IITbd.cjs} +1 -1
- package/browser/cjs/{5FB2JNZkAB-WAguX.cjs → B3AmnoEtmGJ8xfss.cjs} +1 -1
- package/browser/cjs/{CGsvXu-FjuZ3-GmY.cjs → B5Lhlhn9N__KXzs_.cjs} +1 -1
- package/browser/cjs/{DIEzvzfJ8nRAv8L5.cjs → B5sHgRJA6NZf79td.cjs} +3 -3
- package/browser/cjs/{ByDHkyffMaSPKuyr.cjs → BI-BgFhqhGB3Ljue.cjs} +5 -5
- package/browser/cjs/BI9erhszojGZe0lb.cjs +327 -0
- package/browser/cjs/{DGRC9Vgd6jMELIa3.cjs → BMs_qxGcRNNT23f4.cjs} +1 -1
- package/browser/cjs/{NshRRIkBb-qQy-Dp.cjs → BNkPDK1Yo4iom9f-.cjs} +2 -2
- package/browser/cjs/{COKPliuQ_2UpHCww.cjs → BRBXFHgza4Ddksll.cjs} +1 -1
- package/browser/cjs/{DBRpIE6o5HyzsdGy.cjs → BRdAz2vZLLBpy7Fa.cjs} +1 -1
- package/browser/cjs/{C3r_CIITb0MvUeGK.cjs → BRlo-i2or58TOLFO.cjs} +1 -1
- package/browser/cjs/{78dOV0RAF5rgwQUW.cjs → BTRXLO6Dq2gDP0o0.cjs} +1 -1
- package/browser/cjs/{DV34hLiOdokdu4jR.cjs → BU3oz_RbRnXaOTad.cjs} +1 -1
- package/browser/cjs/{CAOf4UKmkwzLXOLK.cjs → BUkdipEgVwUBVNFK.cjs} +2 -2
- package/browser/cjs/{CWoAzlcnU0WyFA4f.cjs → Ba46OxYNXEIu1CyE.cjs} +1 -1
- package/browser/cjs/{CA8WuC6jtCmvswvn.cjs → Bb-tFbvYiZJx0L2l.cjs} +3 -3
- package/browser/cjs/{B9PX1doxigBD0DCk.cjs → BnNu46onFcxBcXdo.cjs} +2 -2
- package/browser/cjs/{BGZa_8CRodA2LEYx.cjs → BrB2XU-piMTwf11_.cjs} +2 -2
- package/browser/cjs/{BDtyqEH_YEwu9ldA.cjs → BuDo8DIzYlUPEqNs.cjs} +4 -4
- package/browser/cjs/{bBlfAuw2hA_trg2r.cjs → Bw23hD5CPgMvI0Oi.cjs} +1 -1
- package/browser/cjs/{B7X1IPkASiw0G90-.cjs → BxaWxfqdpo4bymeP.cjs} +2 -2
- package/browser/cjs/{DyZeaiDTtM0AauRr.cjs → C7lJpizc_L4AieTJ.cjs} +1 -1
- package/browser/cjs/{CVaFHItd3JqvYmTa.cjs → CCT-zIpJ5K6XA4dA.cjs} +1 -1
- package/browser/cjs/{DrMv8ZKeHEn8wl3K.cjs → CDIjwEhdhh8VJmIE.cjs} +1 -1
- package/browser/cjs/{Bmadznj02hAZ6Vcd.cjs → CDmkSZDy-1quavLe.cjs} +2 -2
- package/browser/cjs/{DG1ATeBBO4_HMBnR.cjs → CI-YuY1emQOr0OFm.cjs} +3 -3
- package/browser/cjs/{Cbxq2EWu1ezSBp-h.cjs → CIXH8B6D9X4yvTvc.cjs} +1 -1
- package/browser/cjs/{DpLkeIZqCp8B7njY.cjs → CP9ULZf_aAXkiwVf.cjs} +1 -1
- package/browser/cjs/{Cv_2k9kWPs4pyStL.cjs → CQ0TNHjA1O6wjlt1.cjs} +1 -1
- package/browser/cjs/{BbyzYQSgWxzepYCc.cjs → CZ1f9_eLsqHSatF0.cjs} +1 -1
- package/browser/cjs/{xQDGnleNFZuZFImw.cjs → CbpGtHImVZv3w2E0.cjs} +2 -2
- package/browser/cjs/{DbFebCV0almTLgec.cjs → Cc8dc9WaCwHtTCLI.cjs} +1 -1
- package/browser/cjs/{nX5Matbx22rSI3ap.cjs → ClTUsmOQrodRf-mW.cjs} +4 -4
- package/browser/cjs/{BlcJcQhBPqHfjX2x.cjs → CmwRwHxuD7yYl1X2.cjs} +1 -1
- package/browser/cjs/{D-WNKJUOmfSjrp-b.cjs → CutEY3UC3P15FLwu.cjs} +2 -2
- package/browser/cjs/{B_F2ElEw3X66F_L3.cjs → D6K5yUga3fxq3QzO.cjs} +2 -2
- package/browser/cjs/{BFGxbCIoibTxqnIi.cjs → D71igvASQh6YaRKS.cjs} +1 -1
- package/browser/cjs/{BWcEJnZcKKcHkz0f.cjs → D9A_6yfNBCZW1Yut.cjs} +2 -2
- package/browser/cjs/{BbkCk4nfjCe1Cpij.cjs → DBKOrhjg1iQfhM8q.cjs} +1 -1
- package/browser/cjs/{DlzkqGBXaS247pQN.cjs → DBdYYaMC8kfhMC6T.cjs} +8 -8
- package/browser/cjs/{H--CEwf6a7eiKJH_.cjs → DEZG38n7vLjyIoLj.cjs} +2 -2
- package/browser/cjs/{DlbSHBBSh5E0p5sG.cjs → DIkVQBvVNhxd2Hgq.cjs} +1 -1
- package/browser/cjs/{DYziJ4DC7YM5urcF.cjs → DIsmOLdqB5xTx_5n.cjs} +1 -1
- package/browser/cjs/{B_AseJLPSuGo6GDf.cjs → DLRknG25MMRL-hWn.cjs} +1 -1
- package/browser/cjs/{CkwyRC0iJA2hdrQs.cjs → DSPfRNy-x_cgHJuT.cjs} +1 -1
- package/browser/cjs/{DjfJ-t6bOqRCMflS.cjs → DSlPD9__Ie2bA0JY.cjs} +2 -2
- package/browser/cjs/{DF2YGBnOY3cxvU9n.cjs → D_2GG5bepokUbozn.cjs} +2 -2
- package/browser/cjs/{B1VvX7VCdcsH8Gti.cjs → Db0FjpP-OPHnJYml.cjs} +1 -1
- package/browser/cjs/{BcnudOYprbQZTGHW.cjs → DbVtsgeR40hMwm4O.cjs} +1 -1
- package/browser/cjs/{DRjUdQ9CefKRI7CX.cjs → Ds3y9sBGBX27FoUg.cjs} +1 -1
- package/browser/cjs/{l0VTRdM_ld0I_gdY.cjs → Tg3gIAGiKJ4cKpmz.cjs} +3 -3
- package/browser/cjs/{BoA1u6SJv0aFc353.cjs → XrmHgQYhHs2lWXBc.cjs} +1 -1
- package/browser/cjs/{CgeeIQXxuADgwpH5.cjs → h_oeDDJhmLYzEvYD.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DuQa4Eq6hLkAi4L9.cjs → mywRJvop6cfIDOea.cjs} +1 -1
- package/browser/cjs/{CC0Dgap4BzVNkRIy.cjs → qmNI9CPpagH46QUf.cjs} +4 -4
- package/browser/cjs/{CNRVA3rz1kniUscm.cjs → xBbAyLWVpC-pol7c.cjs} +3 -3
- package/browser/cjs/{BMaZl9v1WOvtOADY.cjs → xsaHOmgHpJeqdBku.cjs} +2 -2
- package/browser/esm/{aklAXH3i-vJOFht0.mjs → 3ZNpgJh1JAQ5FW_a.mjs} +4 -4
- package/browser/esm/{DWbzCCaDXB8zMb60.mjs → 8knDfHlL7ydeMuZm.mjs} +2 -2
- package/{cdn/assets/DK0jAoefLeQgYeYg.js → browser/esm/A6HidFMpRS8n-9rh.mjs} +1 -1
- package/browser/esm/{Bx7aHQieKPFd6qH9.mjs → B7hgv4B7Ij2omJq3.mjs} +1 -1
- package/{cdn/assets/DrSQqt9_r5waPhyT.js → browser/esm/BDnc3w0_i7DtHnsN.mjs} +1 -1
- package/browser/esm/{D1Q3jk3SN052POoL.mjs → BFYaVMXfPK1MNYul.mjs} +10 -10
- package/browser/esm/{FQKDEomPzTYq5ls5.mjs → BO2aHuHd7DilNZr2.mjs} +1 -1
- package/browser/esm/{WUX2b0l28FRmJGMz.mjs → BUZ_cANT9ZuGL4m4.mjs} +1 -1
- package/browser/esm/{B6J0aAD-HabRj8lU.mjs → BWzM7UBYSuD1G8Mj.mjs} +1 -1
- package/browser/esm/{BTj16Jpq9LabC1ct.mjs → BXqqDozCELUxV_W0.mjs} +3 -3
- package/browser/esm/{FXAN_qipSw7b0rk9.mjs → BY9-N803dOeaX_wh.mjs} +6 -6
- package/browser/esm/{CFcNImdxR1fAen07.mjs → BalgRJiD8ePgxTIB.mjs} +1 -1
- package/browser/esm/{BmootmPaMrAYlh-i.mjs → BblHM0Twqi1rnpih.mjs} +7 -7
- package/{cdn/assets/BUWI98LWKzpLltoB.js → browser/esm/BgyUDs47eN9xnSS-.mjs} +1 -1
- package/browser/esm/{DXz1Oic-6nQRAewd.mjs → BohYc4gc2VDIbm05.mjs} +29 -29
- package/browser/esm/{BRChXYjL4dgT5Acf.mjs → Bq5099O7xg-lVXuY.mjs} +2 -2
- package/{cdn/assets/2rQi-ZQGcQ7M8d31.js → browser/esm/BsSkIphrOxGYltXe.mjs} +16512 -16424
- package/{cdn/assets/Ccc8HN1TvaWenXG3.js → browser/esm/BtWNUUl3g44WMwNR.mjs} +1 -1
- package/{cdn/assets/D6Ajj2DYdbc3SDFs.js → browser/esm/BxV20zsFEjgip2y6.mjs} +1 -1
- package/{cdn/assets/BnAowM0EnxUXrnrv.js → browser/esm/Bxv2rkSl9hwQcRvq.mjs} +1 -1
- package/browser/esm/{Bs2Gjt2rGx2tBBuf.mjs → C4Xem-aBM1R7QwCU.mjs} +9 -9
- package/{cdn/assets/BXZvKDNcrjMpMjkM.js → browser/esm/C5fL6nkfwqKZUHg9.mjs} +1 -1
- package/browser/esm/{DRJpIWMEwovO1buV.mjs → C82d3qmtydGLJe4h.mjs} +1 -1
- package/browser/esm/{U0p5BBqppTmlxGkR.mjs → CM6kILs8268XIyTJ.mjs} +1 -1
- package/browser/esm/{qKezPJyu8tVx4M7G.mjs → CMOK0Lp_UBstdXLV.mjs} +1 -1
- package/{cdn/assets/CljwsKtaO3RXpkQp.js → browser/esm/COE6K0spMfq_HU2V.mjs} +1 -1
- package/{cdn/assets/DpKjaZFvNDajFoPy.js → browser/esm/Cisp3lTFUui5ryvu.mjs} +1 -1
- package/browser/esm/{nedndZDepZuCPUPk.mjs → Cui9S75J-gvt2yNt.mjs} +1 -1
- package/browser/esm/{C0IT8vG1z0PurDHx.mjs → CvPHgij2NPsDJTob.mjs} +12 -12
- package/{cdn/assets/9ctvSwmM18jYwMFT.js → browser/esm/Cz_bQii1mrZOC05r.mjs} +1 -1
- package/browser/esm/{DpoNkpY8iPCn3m4C.mjs → CzpOCNnjeoVrvO4Z.mjs} +1 -1
- package/browser/esm/{CL5GtpNDLILXmHu_.mjs → D1q2XtgIocrhJLcq.mjs} +40 -40
- package/browser/esm/{D-TgOIJZ4k8efoZs.mjs → DB6FhGNM3z8OH5tz.mjs} +1 -1
- package/{cdn/assets/Dby3rJONLIgRXJEp.js → browser/esm/DE7tSbRtKL69T3_v.mjs} +1 -1
- package/browser/esm/{Bm4rfr_Cx_aoCmLn.mjs → DFSy7bE3QUdHt27F.mjs} +1 -1
- package/browser/esm/{D9h0ke7a7mIAuw72.mjs → DGYhuZHd3V0Gh0ke.mjs} +1 -1
- package/browser/esm/{C-lXyFUBEAW5exiY.mjs → DH2o4v8mWhpvh0D0.mjs} +2 -2
- package/browser/esm/{BvJMrNHXbOKCTgRb.mjs → DMCxzzCNlLmvw96J.mjs} +2 -2
- package/browser/esm/{C7URrQo6Wkhr5jT8.mjs → DMqxPxfOHNPF-t3H.mjs} +9 -9
- package/{cdn/assets/BRlrhCxrPmpasdAq.js → browser/esm/DQeB2mVQCaG9tMN_.mjs} +1 -1
- package/browser/esm/{DDqu9PmY-OCWxh4y.mjs → DT9-iogoIgSWuxPv.mjs} +2 -2
- package/browser/esm/{D_gSswRpVgwA_hbg.mjs → DTTAEg3pYcvGZd9-.mjs} +9 -9
- package/browser/esm/{BkCbuVVBeJSHG13N.mjs → DTr1BbEwkAICW915.mjs} +1 -1
- package/browser/esm/{pImSI15xRLyAC5kV.mjs → DcpDzI_6k90siBEW.mjs} +2 -2
- package/browser/esm/{CqUeRLqKKxuj7CGF.mjs → Df8RGBp7QpVNGJn4.mjs} +1 -1
- package/browser/esm/{BcheI2SkDXSDfNWf.mjs → DjIq2Ke76uH9pcO9.mjs} +10 -10
- package/{cdn/assets/DPteSel_Kz5jyMA-.js → browser/esm/Dj_YYnsXYavjAuVL.mjs} +1 -1
- package/browser/esm/{BvT1qZHVf1vKwVRj.mjs → DmXSYrO0gKHORvJt.mjs} +4 -4
- package/browser/esm/{spROgAvd5ibinf8q.mjs → DmbpOGNvt8-oc9x0.mjs} +1 -1
- package/{cdn/assets/D7NYy1UIGY4JyQeb.js → browser/esm/DnY7_-yLNdBeU5yf.mjs} +1 -1
- package/{cdn/assets/CSBwJrMTSTtYvxJu.js → browser/esm/DsNxSyAKms-2-HKL.mjs} +2 -2
- package/browser/esm/{DOc3EgZdz6rFbqel.mjs → HUdUdNW9fXbvaS8n.mjs} +2 -2
- package/browser/esm/{Bo3eioKp9uerGFhK.mjs → VHOqmWkVzZX7RAnD.mjs} +3 -3
- package/browser/esm/{wv7W2ELnbb8ZKNXB.mjs → _h99tUXP3kxYC9Pl.mjs} +14 -14
- package/browser/esm/{dn2I9QGElGE3tUEt.mjs → bfIAxnq5wBAQVpEp.mjs} +4 -4
- package/browser/esm/{D64vxslweSTP13xR.mjs → i7x0htRdVcSRA1ik.mjs} +3 -3
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/COiAzrLUE7r62nw2.js → browser/esm/l7k_c0SCQQ2K6DYD.mjs} +1 -1
- package/browser/esm/{6CzQuXrkb2vam89N.mjs → qEUUZ-DdqkShuv-H.mjs} +1 -1
- package/cdn/assets/{fZNj1uwvRzWquyu2.js → 2OD3yppTzA2m11cs.js} +2 -2
- package/{browser/esm/DK0jAoefLeQgYeYg.mjs → cdn/assets/A6HidFMpRS8n-9rh.js} +1 -1
- package/cdn/assets/{BG6gRExeTqxF4Uzb.js → BDa89NUT06bxkZf_.js} +6 -6
- package/{browser/esm/DrSQqt9_r5waPhyT.mjs → cdn/assets/BDnc3w0_i7DtHnsN.js} +1 -1
- package/cdn/assets/{FQKDEomPzTYq5ls5.js → BO2aHuHd7DilNZr2.js} +1 -1
- package/cdn/assets/{BaWQ5jdLwZpcoIbf.js → BQM02SKE1KN4eC4d.js} +30 -30
- package/cdn/assets/{BM3Woa_n5vyDkAGU.js → BTfe4ekgnqi5nDzf.js} +13 -13
- package/cdn/assets/{WUX2b0l28FRmJGMz.js → BUZ_cANT9ZuGL4m4.js} +1 -1
- package/cdn/assets/{B6J0aAD-HabRj8lU.js → BWzM7UBYSuD1G8Mj.js} +1 -1
- package/cdn/assets/{BotF4v7CfYUVDgdR.js → BXEk6GO0UDyEdFTW.js} +4 -4
- package/cdn/assets/{CFcNImdxR1fAen07.js → BalgRJiD8ePgxTIB.js} +1 -1
- package/cdn/assets/{BJNZzjzhcS_HDPnu.js → Bg5oD1KiEfqk43Xa.js} +20 -20
- package/{browser/esm/BUWI98LWKzpLltoB.mjs → cdn/assets/BgyUDs47eN9xnSS-.js} +1 -1
- package/cdn/assets/{BQ4iB5PSJidcVDir.js → Bo0xq5rge9nnLxou.js} +5 -5
- package/cdn/assets/{D58uHrTYGk0cexx3.js → BqLQw9n0IHaUtYov.js} +2 -2
- package/{browser/esm/Ccc8HN1TvaWenXG3.mjs → cdn/assets/BtWNUUl3g44WMwNR.js} +1 -1
- package/{browser/esm/D6Ajj2DYdbc3SDFs.mjs → cdn/assets/BxV20zsFEjgip2y6.js} +1 -1
- package/{browser/esm/BnAowM0EnxUXrnrv.mjs → cdn/assets/Bxv2rkSl9hwQcRvq.js} +1 -1
- package/cdn/assets/{Dbkzw2Dbc79x_TGO.js → C4rehE8GWewQxvVt.js} +2 -2
- package/{browser/esm/BXZvKDNcrjMpMjkM.mjs → cdn/assets/C5fL6nkfwqKZUHg9.js} +1 -1
- package/cdn/assets/{DRJpIWMEwovO1buV.js → C82d3qmtydGLJe4h.js} +1 -1
- package/cdn/assets/{DZ_aNpywKZjJOp1j.js → CI47Ghzg-dJSgTSB.js} +2 -2
- package/cdn/assets/{U0p5BBqppTmlxGkR.js → CM6kILs8268XIyTJ.js} +1 -1
- package/cdn/assets/{qKezPJyu8tVx4M7G.js → CMOK0Lp_UBstdXLV.js} +1 -1
- package/{browser/esm/CljwsKtaO3RXpkQp.mjs → cdn/assets/COE6K0spMfq_HU2V.js} +1 -1
- package/{browser/esm/DpKjaZFvNDajFoPy.mjs → cdn/assets/Cisp3lTFUui5ryvu.js} +1 -1
- package/cdn/assets/{CtyZHJTYP-9LgQxL.js → CqajedR088Iz9vaB.js} +4 -4
- package/cdn/assets/{nedndZDepZuCPUPk.js → Cui9S75J-gvt2yNt.js} +1 -1
- package/cdn/assets/{DwXZtsZKFTghm2xd.js → CxC2kj_05Z7-AlzN.js} +4 -4
- package/cdn/assets/{D69keuuL7hU1Dnic.js → CxW5wx-dQFXDnT7O.js} +3 -3
- package/cdn/assets/{BiLJuKv_22l0dghP.js → CycTtuXXBRx2_QZE.js} +4 -4
- package/{browser/esm/9ctvSwmM18jYwMFT.mjs → cdn/assets/Cz_bQii1mrZOC05r.js} +1 -1
- package/cdn/assets/{DpoNkpY8iPCn3m4C.js → CzpOCNnjeoVrvO4Z.js} +1 -1
- package/cdn/assets/{BZNMDd-HvJEwnULT.js → D4FATUYGcpxnU7CO.js} +3 -3
- package/cdn/assets/{DgqBfvIFmA0jgqHV.js → D6Api4Yp6SORK1LJ.js} +4 -4
- package/cdn/assets/{DxBSfeFnzh3av1Kx.js → D9_ukkvx-ydJCAKP.js} +6 -6
- package/cdn/assets/{D-TgOIJZ4k8efoZs.js → DB6FhGNM3z8OH5tz.js} +1 -1
- package/cdn/assets/{DLD33vocqg50Srt6.js → DCrGjzRdNWi_iM5p.js} +4 -4
- package/{browser/esm/Dby3rJONLIgRXJEp.mjs → cdn/assets/DE7tSbRtKL69T3_v.js} +1 -1
- package/cdn/assets/{Bm4rfr_Cx_aoCmLn.js → DFSy7bE3QUdHt27F.js} +1 -1
- package/cdn/assets/{D9h0ke7a7mIAuw72.js → DGYhuZHd3V0Gh0ke.js} +1 -1
- package/{browser/esm/BRlrhCxrPmpasdAq.mjs → cdn/assets/DQeB2mVQCaG9tMN_.js} +1 -1
- package/cdn/assets/{rn1QhkA9d6ye5hFe.js → DRc4MDQOWkxKCS_R.js} +1 -1
- package/cdn/assets/{BkCbuVVBeJSHG13N.js → DTr1BbEwkAICW915.js} +1 -1
- package/cdn/assets/{DDx51j_svq2hiZh0.js → DUbCqQ5CNOQ5Mcti.js} +3 -3
- package/cdn/assets/{DdQtG7fDOGw-8weZ.js → DayPy4E21nXUd8Y1.js} +7 -7
- package/cdn/assets/{CqUeRLqKKxuj7CGF.js → Df8RGBp7QpVNGJn4.js} +1 -1
- package/cdn/assets/{CPH8yJrWplfJS73i.js → DhYQTb4befWn8lpY.js} +12 -12
- package/cdn/assets/{DpCeTRhgoRFi6SO-.js → Ditq4Vr5l_7zsUkk.js} +2 -2
- package/{browser/esm/DPteSel_Kz5jyMA-.mjs → cdn/assets/Dj_YYnsXYavjAuVL.js} +1 -1
- package/cdn/assets/{D-x-yb-ab3PSsoLp.js → Djdu6ALO080Y4tUz.js} +1 -1
- package/cdn/assets/{tuC-wgl8wZ_I-jrr.js → DlXl8sxY4BFovN5n.js} +2 -2
- package/cdn/assets/{spROgAvd5ibinf8q.js → DmbpOGNvt8-oc9x0.js} +1 -1
- package/{browser/esm/D7NYy1UIGY4JyQeb.mjs → cdn/assets/DnY7_-yLNdBeU5yf.js} +1 -1
- package/cdn/assets/{Cvrm9_9yv1m363G3.js → Do_5uDzLBTZoB7WW.js} +4 -4
- package/cdn/assets/{BVOgz3zzOoeIDWUT.js → DrZrn_3v9aIi0crm.js} +8 -8
- package/{browser/esm/Dp3iqrsApKfm3-yY.mjs → cdn/assets/DstNpjLILDp3a6bz.js} +16904 -17164
- package/cdn/assets/{Bwl5DOEl0NPZHs_1.js → FdFeMSkVPJ8zgmzM.js} +7 -7
- package/cdn/assets/{C9rYbbtn-ueZFc_k.js → XR-5QqK3XFIFxM3y.js} +3 -3
- package/cdn/assets/{LG_tevT5cNrZTkZi.js → gL5QS2cF2WeCcpKq.js} +14 -14
- package/{browser/esm/COiAzrLUE7r62nw2.mjs → cdn/assets/l7k_c0SCQQ2K6DYD.js} +1 -1
- package/{browser/esm/BXTfqh_OHTdckyrX.mjs → cdn/assets/m1dOO6lTGVJkSMAb.js} +2 -2
- package/cdn/assets/{CL4yCbgGijoAlCpu.js → omgXBaEiWh0IPQN9.js} +2 -2
- package/cdn/assets/{6CzQuXrkb2vam89N.js → qEUUZ-DdqkShuv-H.js} +1 -1
- package/cdn/assets/{aecrCD5ZX8G4uYzf.js → y_T3grXtQKQhx28K.js} +8 -8
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B4skn6YstpEWT1bs.cjs +0 -327
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";var c=Object.create;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var p=(e,r,t,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of s(r))!y.call(e,i)&&i!==t&&n(e,i,{get:()=>r[i],enumerable:!(l=a(r,i))||l.enumerable});return e};var g=(e,r,t)=>(t=e!=null?c(u(e)):{},p(r||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e));/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./BI9erhszojGZe0lb.cjs"),ls=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",Ps=new RegExp(`^[${ls}][-${ls}.0-9·̀-ͯ‿-⁀]*$`,"u");function gs(i){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}const cs="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",Es=new RegExp(`^[${cs}][-${cs}.0-9·̀-ͯ‿-⁀]*$`,"u");function fs(i){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}const U=function(i){return i===32||i===10||i===13||i===9},Os=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ae=gs,hs=function(i){return gs(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ms=[32,10,13,9],Is=Ps,Vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ns=fs,Ls=function(i){return fs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},Rs=Es,Te="http://www.w3.org/XML/1998/namespace",Qt="http://www.w3.org/2000/xmlns/",Ms={__proto__:null,xml:Te,xmlns:Qt},$s={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},O=-1,ct=-2,W=13,$t=33,nt=10,vt=60,Ut=61,j=62,F=63,Zt=93,me=i=>i===34||i===39,Ts=[34,39],Hs=[...Ts,91,j],js=[...Ts,vt,Zt],Xs=[Ut,F,...ms],Fs=[...ms,j,38,vt];function Ie(i,t,s){switch(t){case"xml":s!==Te&&i.fail(`xml prefix must be bound to ${Te}.`);break;case"xmlns":s!==Qt&&i.fail(`xmlns prefix must be bound to ${Qt}.`)}switch(s){case Qt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Qt}.`);break;case Te:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Bs=i=>Rs.test(i),qs=i=>Is.test(i),us={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"};class Ws{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Ns,this.nameCheck=Ls,this.isName=Bs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Ms};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const h of Object.keys(a))Ie(n,h,a[h])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ae,this.nameCheck=hs,this.isName=qs,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;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()}get closed(){return this._closed}_init(){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=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}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($s),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[us[t]]=s}off(t){this[us[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:return t.charCodeAt(s+1)===nt&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:{const a=t.charCodeAt(s+1);a!==nt&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===ct?nt:t}unGet(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===ct,h=a?nt:n;if(h===O||t.includes(h))return this.text+=o.slice(s,this.prevI),h;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
7
7
|
`,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case ct:this.text+=`${o.slice(s,this.prevI)}
|
|
8
8
|
`,s=this.i,n=nt;break;case O:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===O)return this.name+=t.slice(s),O;if(!hs(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===O||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=Os,this.getCode=this.getCode10):(this.isChar=Vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case vt:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case O:break;default:this.unGet(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Hs);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case O:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:me(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(js);t!==O&&(this.text+=String.fromCodePoint(t),t===Zt?this.state=2:t===vt?this.state=6:me(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case F:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(F)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case ct:this.entity+=`${s.slice(t,this.prevI)}
|
|
9
9
|
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case O:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ae(t))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":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="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==j?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Zt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Zt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case j:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Zt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===F||U(t)?(this.fail("processing instruction without a target."),this.state=t===F?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===O)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===F;n||U(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?$t:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===F?this.state=26:U(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(F)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===j){const{piTarget:s}=this;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=W}else t===F?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==F?t!==O&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=$t}sXMLDeclName(){const t=this.captureTo(Xs);if(t===F)return this.state=$t,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(U(t)||t===Ut){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Ut?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===F)return this.state=$t,void this.fail("XML declaration is incomplete.");U(t)||(t!==Ut&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===F)return this.state=$t,void this.fail("XML declaration is incomplete.");U(t)||(me(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,F]);if(t===F)return this.state=$t,this.text="",void this.fail("XML declaration is incomplete.");if(t===O)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[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;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==F?(U(t)||(this.fail("whitespace required."),this.unGet()),this.state=27):this.state=$t}sXMLDeclEnding(){this.getCodeNorm()===j?(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=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===O)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case j:this.openTag();break;case 47:this.state=35;break;default:U(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==O&&(ae(t)?(this.unGet(),this.state=37):t===j?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Ut?this.state=39:U(t)?this.state=38:t===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==O&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case O:return;case Ut:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?this.openTag():ae(t)?(this.unGet(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();me(t)?(this.q=t,this.state=40):U(t)||(this.fail("unquoted attribute value."),this.state=42,this.unGet())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case nt:case ct:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case vt:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case O:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();U(t)?this.state=36:t===j?this.openTag():t===47?this.state=35:ae(t)?(this.fail("no whitespace between attributes."),this.unGet(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Fs);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case vt:this.fail("disallowed character.");break;case O:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():U(t)?this.state=44:t!==O&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case O:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case vt:if(this.state=15,n!==void 0){const{text:a}=this,h=o.slice(t,this.prevI);a.length!==0?(n(a+h),this.text=""):h.length!==0&&n(h)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Zt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case j:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case ct:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
10
|
`),t=this.i,s=0;break;case O:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case vt:if(this.state=15,o!==void 0){const{text:h}=this,m=s.slice(t,this.prevI);h.length!==0?(o(h+m),this.text=""):m.length!==0&&o(m)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case ct:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
-
`),t=this.i;break;case O:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(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))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qName(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ie(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ie(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qName(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qName(s.name);s.prefix=a,s.local=h;const m=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),m===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:m,local:P}=a;let b,C;m===""?(b=h==="xmlns"?Qt:"",C=h):(b=this.resolve(m),b===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`),b=m),C=`{${b}}${P}`),n.has(C)&&this.fail(`duplicate attribute: ${C}.`),n.add(C),a.uri=b,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail(`unexpected close tag: ${s}.`)}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;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};`)}}var Ve,mt;(mt=Ve||(Ve={})).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"},mt.parseStream=async(i,t,s)=>{const o=new Ws({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const S=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class _s{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,m=null,P=null,b=null;const C=[],I={key:null,source:t};let y=null,M=!1;const K=(p,c)=>{let T=P.attributes[p];if(c){if(Array.isArray(c)){for(let V=0;V<c.length;V++)if(T==null||(T=c[V](T),T==null))return}else if(T==null||(T=c(T),T==null))return}return T},x={getSource:()=>y.source,setSource:p=>{y.source=p},setKey:p=>{y.key=p},getFrom:()=>P,getAttribute:(p,c)=>K(p,c)??null,hasAttribute:p=>x.getAttribute(p)!==null,getParent:()=>C[C.length-2].source,getPath:()=>{const p=[];for(let c=0;c<a.length;c++)p.push(a[c].local);return p.join("\\")},parseAttribute:K,copyToObject:(p,c,T,V)=>{const _=K(V??c,T);_!==void 0&&(p[c]=_)},copyTo:(p,c,T)=>{const V=K(T??p,c);V!==void 0&&(y.source[p]=V)},warn:p=>{o?o?.(p):console.warn(p)}};return{onOpenTag:p=>{let c=p.name;const T=c.indexOf(":");T!==-1&&(c=c.slice(T+1));const V=n.get(c);if(h={local:c,visitor:V,tag:p,destination:null},M)return a.push(h),m=c,void(P=p);b=h?.visitor??null,V&&(y=a.length===0?I:b?.to!==null?{key:null,source:{}}:null,h.destination=y,y&&C.push(y)),a.push(h),m=c,P=p,M=b?.to===null,b?.openTag?.(x)},onCloseTag:p=>{let c=p.name;const T=c.indexOf(":");if(T!==-1&&(c=c.slice(T+1)),c!==m)throw new Error(`mismatch open/close tag: '${c}'/'${m}'`);M||b?.closeTag?.(x);const V=a.pop()??null;h=a[a.length-1]??null;const _=V?.destination;if(_){C.pop(),y=C[C.length-1]??I;const ut=V.visitor;ut&&ut.to&&_.source!==void 0&&(Array.isArray(ut.to)?y.source.push?y.source.push(_.source):o?.(`Unable to parse array for ${ut.from} at ${x.getPath()}`):_.key?y.source[_.key]=_.source:typeof ut.to=="string"&&(y.source[ut.to]=_.source))}m=h?.local??null,P=h?.tag??null,b=h?.visitor??null,M=!h?.destination},onText:p=>{b?.text?.(p,x)},onEnd:s}}}const ds=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let m=h.content;try{s&&(m=s(m))}catch(P){console.warn(P)}return o?.parsedRefs?.set(i,m),m},Ne=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const m=t(a);if(!m)return null;const P=m.content;try{const b=new TextDecoder().decode(P),C=s.parseFromString(b,"text/xml"),I=o.convert(C,i,n);return n?.parsedRefs?.set(i,I),I}catch(b){console.warn(b)}return null},Gt=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const m=h?h.length:0;for(let P=0;P<m;P++){const b=h[P];if(!b)continue;let C=b;C.startsWith("/")&&(C=C.substring(1));const I=Ne(C,y=>t.files[y],s,o,n);a.set(C,I)}return a},zs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Le=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=zs[h]);let m=i("tint");if(m&&(s+=` ${d.N.AdjustmentType.ETint} ${parseFloat(m)}`),s)return s},ys=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),bs=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Gs=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},ps={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Us=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,m=h?.onStart?.(t?.name??"Parsing XLSX");await Promise.resolve(m);const P=h?.onProgress;let b=0;const C=Promise.resolve().then(()=>require("./DlbSHBBSh5E0p5sG.cjs")),I=Promise.resolve().then(()=>require("./B7X1IPkASiw0G90-.cjs"));let y=null;try{y=new DOMParser}catch{}let M=null;y||(M=Promise.resolve().then(()=>require("./bBlfAuw2hA_trg2r.cjs")).then(c=>c.i));let K=null,x=null,p=null;try{const c=await Promise.all([C,I,M]);K=c[0],x=c[1],p=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=K.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new d.vt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const T=new x.FromOOXMLConverter,V=y??new p.DOMParser,_=o?.resources??new d.Bm,ut=_.beginPersist(),Re={},Me=new Set,ye=new Map;ye.set("richTypes",[]);const $e=new Map,He=[],le=w=>c.files[w],be=(w,B)=>{const Z=w.lastIndexOf("/"),st=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(st);return dt||(dt=((R,Se,Ce,ke,jt=null)=>{if(!R)return null;const it=Ne(R,Se,Ce,ke,jt);if(!it)return null;const ot=new Map,yt=Object.keys(it),Xt=yt.length;for(let bt=0;bt<Xt;bt++){const Ft=yt[bt],Ct=it[Ft];ot.set(Ft,Ct)}return ot})(st,le,V,T,Tt),B.set(st,dt)),dt},ce=(w,B,Z,st=$e)=>{let dt=be(B,st).get(w),R=dt?.target;if(!R)return null;if(dt.targetMode==="External")return dt.target;const Se=B.lastIndexOf("/"),Ce=B.substring(0,Se+1);R.startsWith("/")||(R=Ce+R),R=(it=>{const ot=it.split(/\/+/);return ot.reduce((yt,Xt,bt)=>(Xt==="."?yt.splice(bt,1):Xt===".."&&yt.splice(bt-1,2),yt),ot).join("/")})(R);const ke=T?.getVisitorParamsState().get("dxfs");let jt=st.get(R);if(!jt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const it={};jt=it;const ot=async()=>{const yt=(($,X,Jt,z,Q,G,Kt,kt)=>{const u=new _s,J=new d.Gt.TransposedBuilder;let H=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",S)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let g=0;g<l.length;g++){const N=l[g];N!=="rule"&&(r[N]=r.rule[N])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",S);const l=e.getAttribute("dxfId",D);if(l!==null){let g=z?.get(l);g||(G?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),g={}),r.style=g}e.copyToObject(r,"aboveAverage",S),e.copyToObject(r,"equalAverage",S),e.copyToObject(r,"stdDev",D),e.copyToObject(r,"bottom",S),e.copyToObject(r,"percent",S),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",S)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",S),e.copyTo("showValue",S)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let g=l.formulas;g||(g=[],l.formulas=g),g.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",S)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Le(g=>e.getAttribute(g));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",S),e.copyTo("showButton",S)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.gu.Type.Color,e.copyTo("cellColor",S),e.copyTo("styleId",D,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.gu.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.gu.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.gu.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",S),e.copyTo("top",S),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.gu.Type.Items,e.copyTo("blank",S),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.gu.Type.Custom,e.copyTo("and",S)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const g=e.getAttribute("ref");if(g){const N=d.so.fastStringToRange(g,ps).colStart,Y=d.so.fastStringToRange(r.ref,ps),Bt=Y.colStart;l.offset=Y?N-Bt:N}l.reverse=e.getAttribute("descending",S)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const pe=e=>{H=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=bs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",S),e.copyTo("showFormulas",S),e.copyTo("zoomScale",D),e.copyTo("showRowHeaders",S,"showRowColHeaders"),e.copyTo("showColumnHeaders",S,"showRowColHeaders"),e.copyTo("showRowGridlines",S,"showGridLines"),e.copyTo("showColumnGridlines",S,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{pe(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{pe(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=H.topLeft?d.so.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},g={colIndex:0,rowIndex:0};e.copyToObject(g,"colIndex",D,"xSplit"),e.copyToObject(g,"rowIndex",D,"ySplit");const N={colIndex:l.colIndex+g.colIndex,rowIndex:l.rowIndex+g.rowIndex};r.coords=d.so.cellToString(N)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Le(l=>e.getAttribute(l));r&&($.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let g=r?X(r):"";if(typeof g!="string")return void console.warn("Invalid address ",g);const N=e.getAttribute("location");g.endsWith("\\")&&(g=g.substring(0,g.length-1));const Y=e.getAttribute("location");if(Y&&(N&&N!==Y&&console.warn("display and location are different",N,Y),g+="#"+Y),!g)return void console.warn("No address found for hyperlink. r:id",r);let Bt;const xt=e.getAttribute("tooltip");Bt=xt?{address:g,tooltip:xt}:g,e.setSource({r:l,v:Bt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&S(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=N=>N===!0||N==="1"||N==="on"||N==="true"||N===!1||N==="0"||N==="off"||N==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const g={};e.copyToObject(g,"hash",k,"hashValue"),e.copyToObject(g,"algorithm",k,"algorithmName"),e.copyToObject(g,"salt",k,"saltValue"),e.copyToObject(g,"spinCount",D),Object.keys(g).length>0&&(e.getSource().password=g)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject($,"defaultColSize",ht,"defaultColWidth"),e.copyToObject($,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject($,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject($,"outlineLevelRow",D,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("csz",S,"customWidth"),e.copyTo("h",S,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const As={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,g,N,Y,Bt)=>{let xt=!1,ge=!1,qt=[],Wt=!1,At=null,te=null,fe=null,at=null,_e=null,ze=null;const Ds=Bt?.get("richData")??[],Ge=d.so.normalizeA1ToR1C1,Ue=d.Ht.createConflatingRanges(),Ze=new Map,Ae=[];let ee=null;const Qe=d.Ht.createConflatingRanges();let se,Dt=!1,q=-1,tt=-1,pt=null,ie=null;const De=[];let Pe=null,Je=-2,gt=0,_t="",Pt="",Et="",Ot="",zt="",It="",Vt="",Ke="",Ye="",ts="",es="",ss="",is="",os="",ft=!0,Nt=null,rs=!1,Ee=!1,oe=null,Oe=0;return{...l,onEnd:()=>{De.length>0&&(r.rows=De);let f=Ue.done(Gs);const v=f.length;if(v>0){const E=new Array(v);for(let L=0;L<v;L++){const lt=f[L],Lt=d.so.rangeToString(lt),Rt=lt.value[1],re=d.so.resolveRelativeToA1(Rt,lt.rowStart,lt.colStart);E[L]=[Lt,re]}r.formulas=E}const rt=Qe.done(!0),A=rt.length;if(A>0){const E=new Array(A);for(let L=0;L<A;L++){const lt=rt[L],Lt=d.so.rangeToString(lt);E[L]=Lt}r.volatile=E}if(Ae.length>0&&(r.dynamicArray=[...Ae]),qt.length>0){qt.sort(d.Ht.createRangeComparator(d.w.Orientation.Column));const E=[];let L=null,lt=-1,Lt=-1,Rt=-1,re=-1,wt=null;const ns=qt.length;ns>0&&(L=qt[0],lt=L.colStart,Lt=L.colEnd,Rt=L.rowEnd,re=L.value,E.push(L));for(let Mt=1;Mt<ns;Mt++)wt=qt[Mt],re!==wt.value||lt!==wt.colStart||Lt!==wt.colEnd||Rt+1!==wt.rowEnd?(E.push(wt),L=wt,lt=L.colStart,Lt=L.colEnd,Rt=L.rowEnd,re=L.value):(Rt=wt.rowEnd,L.rowEnd=Rt);let as=[];for(let Mt=0;Mt<E.length;Mt++){const ne=E[Mt];as.push({r:{colStart:ne.colStart,colEnd:ne.colEnd,rowStart:ne.rowStart,rowEnd:ne.rowEnd},v:ne.value})}r.directStyles=as}const et=e.build();if(et){const E=et.tuples;r.data=E}l?.onEnd?.()},onOpenTag:f=>{let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Oe++,Oe%196608==0&&N(Oe),se){const A=f.attributes;switch(v){case"v":ge=!0;break;case"f":switch(A.t??null){case null:case"normal":Wt=!0;break;case"shared":const et=A.si;te=A.ref,At=et;break;case"array":Wt=!0,te=A.ref,ee=[te,!1];break;case"datatable":Wt=!0,te=A.ref,Wt=!0}A.ca!==void 0&&Qe.append(q,tt);break;case"is":return void(Dt=!0)}return void(Dt&&Y?.onOpenTag(f))}if(xt){if(v==="c"){se=f;const A=f.attributes.r;tt=d.so.fastStringToCol(A);const et=f.attributes.t;et===void 0?ie=null:(ie=et,ie==="str"&&(Dt=!0));let E=f.attributes.s;E===void 0&&(oe!==null||Ee)&&(E="0"),E!==void 0&&(E=parseInt(E),Nt&&Nt.value===E&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:E},qt.push(Nt)))}}else{if(v==="row"){xt=!0;const A=f.attributes.r;if(q=parseInt(A)-1,gt=0,Pt=f.attributes.customHeight,Pt!==void 0&&(gt|=Ht.CustomHeight),Pt!==Ye&&(ft=!0,Ye=Pt),_t=f.attributes.ht,_t!==void 0&&(gt|=Ht.Ht),_t!==Ke&&(ft=!0,Ke=_t),Et=f.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==ts&&(ft=!0,ts=Et),zt=f.attributes.s,zt!==void 0&&(gt|=Ht.S),zt!==ss&&(ft=!0,ss=zt),Ot=f.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==es&&(ft=!0,es=Ot),It=f.attributes.outlineLevel,It!==void 0&&(gt|=Ht.OutlineLevel),It!==is&&(ft=!0,is=It),Vt=f.attributes.collapsed,Vt!==void 0&&(gt|=Ht.Collapsed),Vt!==os&&(ft=!0,os=Vt),gt!==0)if(Je+1!==q||ft){const et=Pt!==void 0&&(Pt==="1"||Pt==="true");oe=Ot===void 0||Ot!=="1"&&Ot!=="true"||zt===void 0?null:zt,Pe={min:q,max:q,sz:et&&_t!==void 0?parseFloat(_t):-1,csz:et,h:Et!==void 0&&(Et==="1"||Et==="true"),s:oe===null?void 0:oe==="0"?0:parseInt(oe),l:It===void 0||It==="0"?0:parseInt(It),cl:Vt!==void 0&&(Vt==="1"||Vt==="true")},De.push(Pe)}else Pe.max=q;return Je=q,void(ft=!1)}if(!rs&&v==="sheetData"){rs=!0;const A=r.cols,et=A?A.length:0;for(let E=0;!Ee&&E<et;E++)A[E].s&&(Ee=!0)}l?.onOpenTag(f)}},onCloseTag:f=>{if(se){let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Dt)if(v==="is"||v==="v"){const A=Y?.onEnd();A!==null&&e.addValue(q,tt,""+A)}else Y?.onCloseTag?.(f);return ge&&(ge=!1),void(v==="c"&&(se=null,Dt=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(f)},onText:f=>{if(f=f.trim(),ge){switch(pt=null,ie){case null:case"n":pt=parseFloat(f);break;case"b":pt=f==="1"||f==="true";break;case"s":pt=f;break;case"e":if(f==="#VALUE!"){const rt=se.attributes.vm;if(rt!==void 0){const A=Ds[parseInt(rt)-1];if(A&&A.isFormulaError){pt={t:d.M.Error,v:A.getCode()};break}}}const v=d.n.getBuiltInByLabel(f);v?pt={t:d.M.Error,v:v.getCode()}:(pt=f,g?.(`Unknown formula error '${f}' in cell ${d.so.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":Dt=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),Ae.push(ee),ee=null),At)if(_e===At)at=ze;else{if(at=Ze.get(At),!at){const v=[];fe=Ge(f,q,tt,v),at=[fe,v,f],Ze.set(At,at)}_e=At,ze=at}if(Wt){const v=[];fe=Ge(f,q,tt,v),at=[fe,v,f]}if(at)return Ue.append(q,tt,at),at=null,Wt=!1,At=null,void(te=null);Dt?Y?.onText(f):xt||l?.onText(f)}}})(J,$,u.createEventHandler($,()=>{},G),G,e=>{b+=e,P?.(b)},As,kt)})(it,($,X=!1)=>ce($,R,X)??null,ws,ke,0,($,X)=>{X=X?`${X} (${R})`:R,a.push([$,X])},0,ye),Xt=ds(R,le),bt=await(async($,X=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:G}=await Promise.resolve().then(()=>require("./BcnudOYprbQZTGHW.cjs"));globalThis.ReadableStream=G}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let z=0;const Q=$ instanceof Uint8Array?$:new Uint8Array($);return new ReadableStream({pull(G){if(z>=Q.byteLength)return void G.close();const Kt=Q.subarray(z,Math.min(z+X,Q.byteLength)),kt=Jt.decode(Kt,{stream:z+X<Q.byteLength});G.enqueue(kt),z+=Kt.length}}).getReader()})(Xt);try{await Ve.parseStream(bt,yt,{xmlns:!1})}catch($){throw console.warn(`Error parsing sheet: '${R}'`,$),new Error(`Error parsing sheet: '${R}'`,{cause:$})}const Ft=be(R,st);let Ct,We=new Map;if(Ft){const $="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let X;Ft.forEach((z,Q)=>{z.type===$&&(Ct=ce(Q,R,!1,st)?.comments,Ct&&Ct.forEach(G=>{We.set(G.id,G)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Ft.forEach((z,Q)=>{z.type===Jt&&(X=ce(Q,R,!1,st))}),X||Ct){const z=Ct??[],Q=X?.comments;if(Q){const G=X?.authors,Kt=Q.length;for(let kt=0;kt<Kt;kt++){const u=Q[kt];if(!u)continue;let J=G&&u.authorId!==void 0?G[u.authorId]:u.authorId;if(J&&J.startsWith("tc=")&&(J=ys(J.substring(3)),We.has(J)))continue;let H=null;J&&(H=ue.get(J)),H||(H=Fe.get(J)),H||(H={id:d.te.uuidV4(),displayName:J},Fe.set(H.displayName,H),ue.set(H.id,H)),J=H?.id??null;const pe={id:d.te.uuidV4(),personId:J,ref:u.ref,done:!1,asNote:!0,content:u.content};z.push(pe)}}it.comments=z}}};He.push(ot())}else jt=Z?ds(R,le,it=>{const ot=_.add({buffer:it});return ot.addReference(Re),Me.add(ot),ut.toResourceId(ot)},Tt):Ne(R,le,V,T,Tt);return jt},Tt={paramMap:ye,getRefs:be,getRef:ce,parsedRefs:$e,addPerson:w=>null},he=[];let xe=0;c.Strings&&(xe=parseInt(c.Strings.Unique??c.Strings.length??0));const xs=c.Strings??[];for(let w=0;w<xe;w++)he.push(xs[w]?.t??"");const je=new Map;let Xe=xe;const ws=w=>{const B=je.get(w);if(B!==void 0)return B;const Z=Xe;return je.set(w,Xe++),he.push(w),Z},ue=(Gt("richstructure",c,V,T,Tt),Gt("richdata",c,V,T,Tt),new Map),Fe=new Map,Be=Gt("people",c,V,T);let St=null;if(Be.size>0&&(St=Be.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];ue.set(Z.id,Z),ue.set(Z.displayName,Z)}}const we=Gt("themes",c,V,T,Tt);let qe=null;if(we&&we.entries){let w=we.entries().next();w?.value?.[1]&&(qe=w.value[1])}const vs=new d.Bl(qe);let de=Gt("styles",c,V,T,Tt).entries().next()?.value[1];de&&(de=JSON.parse(d.oe(de)));const Ss=Gt("workbooks",c,V,T,Tt);await Promise.all(He);const ve={...Ss.entries().next().value[1],styles:de,theme:vs.toJSON()};he.length>0&&(ve.strings=he),St&&St.length>0&&(ve.people=St);const Cs={...o,resources:_,json:ve},ks=new d.Ny(Cs);if(Me.forEach(w=>{w.deleteReference(Re)}),ut.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,st]=B;w(Z,st)}}return h?.onComplete?.(b),ks}catch(c){let T="Unable to parse XLSX.";throw c instanceof d.ae&&(T="Unable to open XLSX. There are too many rows or columns."),new Error(T,{cause:c})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DlbSHBBSh5E0p5sG.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],m=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,m,h.name);const P=h.sheet,b=i.getSheetAt(a),C=b.getUsedRange();if(C?(m["!ref"]=C.getA1(),C.forEach((I,y)=>{const M={t:"z"},K=y.getCell().getStyle();if(!K.isNormal()){let x=K.getNumberFormat();x!==d.ze.Type.General&&(x===d.ze.Type.ShortDate?x="m/d/yyyy":x===d.ze.Type.MediumDate?x="d-mmm-yy":x===d.ze.Type.LongDate?x="[$-x-sysdate]dddd, mmmm dd, yyyy":x===d.ze.Type.ShortTime?x="h:mm":x===d.ze.Type.MediumTime?x="h:mm AM/PM":x===d.ze.Type.LongTime&&(x="h:mm:ss AM/PM"),M.z=x)}if(I!==null)switch(y.getType()){case d.M.Number:M.t="n",M.v=I;break;case d.M.String:M.t="s",M.v=I;break;case d.M.Boolean:M.t="b",M.v=I;break;case d.M.Error:M.t="e",M.v=I.toString();case d.M.RichData:}m[y.getA1()]=M})):m["!ref"]="A1:A1",P.merges?.length>0){const I=[];m["!merges"]=I;for(let y=0;y<P.merges.length;y++)I.push(s.utils.decode_range(P.merges[y]))}if(P.cols?.length>0){const I=[];m["!cols"]=I;const y=P.cols,M={width:P.defaultColSize??b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize())},K=y.length;for(let x=0;x<K;x++){const p=y[x];for(let T=I.length;T<=p.min-1;T++)I.push(M);const c={};p.sz!==void 0&&(c.width=p.sz),p.h!==void 0&&(c.hidden=p.h),p.l!==void 0&&(c.level=p.l);for(let T=p.min;T<=p.max;T++)I.push(c)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=bs,exports.c=i=>i?d.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Le,exports.i=Us,exports.p=i=>parseFloat(i)/6e4,exports.r=ys,exports.t=i=>i?d.te.roundAccurately(parseFloat(i)/12700,4):null;
|
|
11
|
+
`),t=this.i;break;case O:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(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))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qName(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ie(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ie(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qName(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qName(s.name);s.prefix=a,s.local=h;const m=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),m===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:m,local:P}=a;let b,C;m===""?(b=h==="xmlns"?Qt:"",C=h):(b=this.resolve(m),b===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`),b=m),C=`{${b}}${P}`),n.has(C)&&this.fail(`duplicate attribute: ${C}.`),n.add(C),a.uri=b,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail(`unexpected close tag: ${s}.`)}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;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};`)}}var Ve,mt;(mt=Ve||(Ve={})).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"},mt.parseStream=async(i,t,s)=>{const o=new Ws({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const S=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,A=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class _s{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,m=null,P=null,b=null;const C=[],I={key:null,source:t};let y=null,M=!1;const K=(p,c)=>{let T=P.attributes[p];if(c){if(Array.isArray(c)){for(let V=0;V<c.length;V++)if(T==null||(T=c[V](T),T==null))return}else if(T==null||(T=c(T),T==null))return}return T},x={getSource:()=>y.source,setSource:p=>{y.source=p},setKey:p=>{y.key=p},getFrom:()=>P,getAttribute:(p,c)=>K(p,c)??null,hasAttribute:p=>x.getAttribute(p)!==null,getParent:()=>C[C.length-2].source,getPath:()=>{const p=[];for(let c=0;c<a.length;c++)p.push(a[c].local);return p.join("\\")},parseAttribute:K,copyToObject:(p,c,T,V)=>{const _=K(V??c,T);_!==void 0&&(p[c]=_)},copyTo:(p,c,T)=>{const V=K(T??p,c);V!==void 0&&(y.source[p]=V)},warn:p=>{o?o?.(p):console.warn(p)}};return{onOpenTag:p=>{let c=p.name;const T=c.indexOf(":");T!==-1&&(c=c.slice(T+1));const V=n.get(c);if(h={local:c,visitor:V,tag:p,destination:null},M)return a.push(h),m=c,void(P=p);b=h?.visitor??null,V&&(y=a.length===0?I:b?.to!==null?{key:null,source:{}}:null,h.destination=y,y&&C.push(y)),a.push(h),m=c,P=p,M=b?.to===null,b?.openTag?.(x)},onCloseTag:p=>{let c=p.name;const T=c.indexOf(":");if(T!==-1&&(c=c.slice(T+1)),c!==m)throw new Error(`mismatch open/close tag: '${c}'/'${m}'`);M||b?.closeTag?.(x);const V=a.pop()??null;h=a[a.length-1]??null;const _=V?.destination;if(_){C.pop(),y=C[C.length-1]??I;const ut=V.visitor;ut&&ut.to&&_.source!==void 0&&(Array.isArray(ut.to)?y.source.push?y.source.push(_.source):o?.(`Unable to parse array for ${ut.from} at ${x.getPath()}`):_.key?y.source[_.key]=_.source:typeof ut.to=="string"&&(y.source[ut.to]=_.source))}m=h?.local??null,P=h?.tag??null,b=h?.visitor??null,M=!h?.destination},onText:p=>{b?.text?.(p,x)},onEnd:s}}}const ds=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let m=h.content;try{s&&(m=s(m))}catch(P){console.warn(P)}return o?.parsedRefs?.set(i,m),m},Ne=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const m=t(a);if(!m)return null;const P=m.content;try{const b=new TextDecoder().decode(P),C=s.parseFromString(b,"text/xml"),I=o.convert(C,i,n);return n?.parsedRefs?.set(i,I),I}catch(b){console.warn(b)}return null},Gt=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const m=h?h.length:0;for(let P=0;P<m;P++){const b=h[P];if(!b)continue;let C=b;C.startsWith("/")&&(C=C.substring(1));const I=Ne(C,y=>t.files[y],s,o,n);a.set(C,I)}return a},zs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Le=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=zs[h]);let m=i("tint");if(m&&(s+=` ${d.N.AdjustmentType.ETint} ${parseFloat(m)}`),s)return s},ys=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),bs=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Gs=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},ps={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Us=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,m=h?.onStart?.(t?.name??"Parsing XLSX");await Promise.resolve(m);const P=h?.onProgress;let b=0;const C=Promise.resolve().then(()=>require("./DIkVQBvVNhxd2Hgq.cjs")),I=Promise.resolve().then(()=>require("./BxaWxfqdpo4bymeP.cjs"));let y=null;try{y=new DOMParser}catch{}let M=null;y||(M=Promise.resolve().then(()=>require("./Bw23hD5CPgMvI0Oi.cjs")).then(c=>c.i));let K=null,x=null,p=null;try{const c=await Promise.all([C,I,M]);K=c[0],x=c[1],p=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=K.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new d.vt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const T=new x.FromOOXMLConverter,V=y??new p.DOMParser,_=o?.resources??new d.Mm,ut=_.beginPersist(),Re={},Me=new Set,ye=new Map;ye.set("richTypes",[]);const $e=new Map,He=[],le=w=>c.files[w],be=(w,B)=>{const Z=w.lastIndexOf("/"),st=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(st);return dt||(dt=((R,Se,Ce,ke,jt=null)=>{if(!R)return null;const it=Ne(R,Se,Ce,ke,jt);if(!it)return null;const ot=new Map,yt=Object.keys(it),Xt=yt.length;for(let bt=0;bt<Xt;bt++){const Ft=yt[bt],Ct=it[Ft];ot.set(Ft,Ct)}return ot})(st,le,V,T,Tt),B.set(st,dt)),dt},ce=(w,B,Z,st=$e)=>{let dt=be(B,st).get(w),R=dt?.target;if(!R)return null;if(dt.targetMode==="External")return dt.target;const Se=B.lastIndexOf("/"),Ce=B.substring(0,Se+1);R.startsWith("/")||(R=Ce+R),R=(it=>{const ot=it.split(/\/+/);return ot.reduce((yt,Xt,bt)=>(Xt==="."?yt.splice(bt,1):Xt===".."&&yt.splice(bt-1,2),yt),ot).join("/")})(R);const ke=T?.getVisitorParamsState().get("dxfs");let jt=st.get(R);if(!jt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const it={};jt=it;const ot=async()=>{const yt=(($,X,Jt,z,Q,G,Kt,kt)=>{const u=new _s,J=new d.Vt.TransposedBuilder;let H=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",S)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let g=0;g<l.length;g++){const N=l[g];N!=="rule"&&(r[N]=r.rule[N])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",A),e.copyToObject(r,"stopIfTrue",S);const l=e.getAttribute("dxfId",A);if(l!==null){let g=z?.get(l);g||(G?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),g={}),r.style=g}e.copyToObject(r,"aboveAverage",S),e.copyToObject(r,"equalAverage",S),e.copyToObject(r,"stdDev",A),e.copyToObject(r,"bottom",S),e.copyToObject(r,"percent",S),e.copyToObject(r,"rank",A),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",A),e.copyTo("minLength",A),e.copyTo("showValue",S)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",S),e.copyTo("showValue",S)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let g=l.formulas;g||(g=[],l.formulas=g),g.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",S)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Le(g=>e.getAttribute(g));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",A,"colId"),e.copyTo("hiddenButton",S),e.copyTo("showButton",S)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.su.Type.Color,e.copyTo("cellColor",S),e.copyTo("styleId",A,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.su.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.su.Type.Icon,e.copyTo("iconId",A),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.su.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",S),e.copyTo("top",S),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.su.Type.Items,e.copyTo("blank",S),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",A),e.copyTo("hour",A),e.copyTo("minute",A),e.copyTo("month",A),e.copyTo("second",A),e.copyTo("year",A)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.su.Type.Custom,e.copyTo("and",S)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const g=e.getAttribute("ref");if(g){const N=d.to.fastStringToRange(g,ps).colStart,Y=d.to.fastStringToRange(r.ref,ps),Bt=Y.colStart;l.offset=Y?N-Bt:N}l.reverse=e.getAttribute("descending",S)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const pe=e=>{H=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=bs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",S),e.copyTo("showFormulas",S),e.copyTo("zoomScale",A),e.copyTo("showRowHeaders",S,"showRowColHeaders"),e.copyTo("showColumnHeaders",S,"showRowColHeaders"),e.copyTo("showRowGridlines",S,"showGridLines"),e.copyTo("showColumnGridlines",S,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{pe(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{pe(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",A,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=H.topLeft?d.to.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},g={colIndex:0,rowIndex:0};e.copyToObject(g,"colIndex",A,"xSplit"),e.copyToObject(g,"rowIndex",A,"ySplit");const N={colIndex:l.colIndex+g.colIndex,rowIndex:l.rowIndex+g.rowIndex};r.coords=d.to.cellToString(N)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Le(l=>e.getAttribute(l));r&&($.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let g=r?X(r):"";if(typeof g!="string")return void console.warn("Invalid address ",g);const N=e.getAttribute("location");g.endsWith("\\")&&(g=g.substring(0,g.length-1));const Y=e.getAttribute("location");if(Y&&(N&&N!==Y&&console.warn("display and location are different",N,Y),g+="#"+Y),!g)return void console.warn("No address found for hyperlink. r:id",r);let Bt;const xt=e.getAttribute("tooltip");Bt=xt?{address:g,tooltip:xt}:g,e.setSource({r:l,v:Bt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&S(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=N=>N===!0||N==="1"||N==="on"||N==="true"||N===!1||N==="0"||N==="off"||N==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const g={};e.copyToObject(g,"hash",k,"hashValue"),e.copyToObject(g,"algorithm",k,"algorithmName"),e.copyToObject(g,"salt",k,"saltValue"),e.copyToObject(g,"spinCount",A),Object.keys(g).length>0&&(e.getSource().password=g)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",A),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject($,"defaultColSize",ht,"defaultColWidth"),e.copyToObject($,"outlineLevelCol",A,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject($,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject($,"outlineLevelRow",A,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("csz",S,"customWidth"),e.copyTo("h",S,"hidden"),e.copyTo("l",A,"outlineLevel"),e.copyTo("s",A,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const Ds={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,g,N,Y,Bt)=>{let xt=!1,ge=!1,qt=[],Wt=!1,Dt=null,te=null,fe=null,at=null,_e=null,ze=null;const As=Bt?.get("richData")??[],Ge=d.to.normalizeA1ToR1C1,Ue=d.Ht$1.createConflatingRanges(),Ze=new Map,De=[];let ee=null;const Qe=d.Ht$1.createConflatingRanges();let se,At=!1,q=-1,tt=-1,pt=null,ie=null;const Ae=[];let Pe=null,Je=-2,gt=0,_t="",Pt="",Et="",Ot="",zt="",It="",Vt="",Ke="",Ye="",ts="",es="",ss="",is="",os="",ft=!0,Nt=null,rs=!1,Ee=!1,oe=null,Oe=0;return{...l,onEnd:()=>{Ae.length>0&&(r.rows=Ae);let f=Ue.done(Gs);const v=f.length;if(v>0){const E=new Array(v);for(let L=0;L<v;L++){const lt=f[L],Lt=d.to.rangeToString(lt),Rt=lt.value[1],re=d.to.resolveRelativeToA1(Rt,lt.rowStart,lt.colStart);E[L]=[Lt,re]}r.formulas=E}const rt=Qe.done(!0),D=rt.length;if(D>0){const E=new Array(D);for(let L=0;L<D;L++){const lt=rt[L],Lt=d.to.rangeToString(lt);E[L]=Lt}r.volatile=E}if(De.length>0&&(r.dynamicArray=[...De]),qt.length>0){qt.sort(d.Ht$1.createRangeComparator(d.w.Orientation.Column));const E=[];let L=null,lt=-1,Lt=-1,Rt=-1,re=-1,wt=null;const ns=qt.length;ns>0&&(L=qt[0],lt=L.colStart,Lt=L.colEnd,Rt=L.rowEnd,re=L.value,E.push(L));for(let Mt=1;Mt<ns;Mt++)wt=qt[Mt],re!==wt.value||lt!==wt.colStart||Lt!==wt.colEnd||Rt+1!==wt.rowEnd?(E.push(wt),L=wt,lt=L.colStart,Lt=L.colEnd,Rt=L.rowEnd,re=L.value):(Rt=wt.rowEnd,L.rowEnd=Rt);let as=[];for(let Mt=0;Mt<E.length;Mt++){const ne=E[Mt];as.push({r:{colStart:ne.colStart,colEnd:ne.colEnd,rowStart:ne.rowStart,rowEnd:ne.rowEnd},v:ne.value})}r.directStyles=as}const et=e.build();if(et){const E=et.tuples;r.data=E}l?.onEnd?.()},onOpenTag:f=>{let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Oe++,Oe%196608==0&&N(Oe),se){const D=f.attributes;switch(v){case"v":ge=!0;break;case"f":switch(D.t??null){case null:case"normal":Wt=!0;break;case"shared":const et=D.si;te=D.ref,Dt=et;break;case"array":Wt=!0,te=D.ref,ee=[te,!1];break;case"datatable":Wt=!0,te=D.ref,Wt=!0}D.ca!==void 0&&Qe.append(q,tt);break;case"is":return void(At=!0)}return void(At&&Y?.onOpenTag(f))}if(xt){if(v==="c"){se=f;const D=f.attributes.r;tt=d.to.fastStringToCol(D);const et=f.attributes.t;et===void 0?ie=null:(ie=et,ie==="str"&&(At=!0));let E=f.attributes.s;E===void 0&&(oe!==null||Ee)&&(E="0"),E!==void 0&&(E=parseInt(E),Nt&&Nt.value===E&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:E},qt.push(Nt)))}}else{if(v==="row"){xt=!0;const D=f.attributes.r;if(q=parseInt(D)-1,gt=0,Pt=f.attributes.customHeight,Pt!==void 0&&(gt|=Ht.CustomHeight),Pt!==Ye&&(ft=!0,Ye=Pt),_t=f.attributes.ht,_t!==void 0&&(gt|=Ht.Ht),_t!==Ke&&(ft=!0,Ke=_t),Et=f.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==ts&&(ft=!0,ts=Et),zt=f.attributes.s,zt!==void 0&&(gt|=Ht.S),zt!==ss&&(ft=!0,ss=zt),Ot=f.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==es&&(ft=!0,es=Ot),It=f.attributes.outlineLevel,It!==void 0&&(gt|=Ht.OutlineLevel),It!==is&&(ft=!0,is=It),Vt=f.attributes.collapsed,Vt!==void 0&&(gt|=Ht.Collapsed),Vt!==os&&(ft=!0,os=Vt),gt!==0)if(Je+1!==q||ft){const et=Pt!==void 0&&(Pt==="1"||Pt==="true");oe=Ot===void 0||Ot!=="1"&&Ot!=="true"||zt===void 0?null:zt,Pe={min:q,max:q,sz:et&&_t!==void 0?parseFloat(_t):-1,csz:et,h:Et!==void 0&&(Et==="1"||Et==="true"),s:oe===null?void 0:oe==="0"?0:parseInt(oe),l:It===void 0||It==="0"?0:parseInt(It),cl:Vt!==void 0&&(Vt==="1"||Vt==="true")},Ae.push(Pe)}else Pe.max=q;return Je=q,void(ft=!1)}if(!rs&&v==="sheetData"){rs=!0;const D=r.cols,et=D?D.length:0;for(let E=0;!Ee&&E<et;E++)D[E].s&&(Ee=!0)}l?.onOpenTag(f)}},onCloseTag:f=>{if(se){let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),At)if(v==="is"||v==="v"){const D=Y?.onEnd();D!==null&&e.addValue(q,tt,""+D)}else Y?.onCloseTag?.(f);return ge&&(ge=!1),void(v==="c"&&(se=null,At=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(f)},onText:f=>{if(f=f.trim(),ge){switch(pt=null,ie){case null:case"n":pt=parseFloat(f);break;case"b":pt=f==="1"||f==="true";break;case"s":pt=f;break;case"e":if(f==="#VALUE!"){const rt=se.attributes.vm;if(rt!==void 0){const D=As[parseInt(rt)-1];if(D&&D.isFormulaError){pt={t:d.M.Error,v:D.getCode()};break}}}const v=d.n.getBuiltInByLabel(f);v?pt={t:d.M.Error,v:v.getCode()}:(pt=f,g?.(`Unknown formula error '${f}' in cell ${d.to.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":At=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),De.push(ee),ee=null),Dt)if(_e===Dt)at=ze;else{if(at=Ze.get(Dt),!at){const v=[];fe=Ge(f,q,tt,v),at=[fe,v,f],Ze.set(Dt,at)}_e=Dt,ze=at}if(Wt){const v=[];fe=Ge(f,q,tt,v),at=[fe,v,f]}if(at)return Ue.append(q,tt,at),at=null,Wt=!1,Dt=null,void(te=null);At?Y?.onText(f):xt||l?.onText(f)}}})(J,$,u.createEventHandler($,()=>{},G),G,e=>{b+=e,P?.(b)},Ds,kt)})(it,($,X=!1)=>ce($,R,X)??null,ws,ke,0,($,X)=>{X=X?`${X} (${R})`:R,a.push([$,X])},0,ye),Xt=ds(R,le),bt=await(async($,X=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:G}=await Promise.resolve().then(()=>require("./DbVtsgeR40hMwm4O.cjs"));globalThis.ReadableStream=G}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let z=0;const Q=$ instanceof Uint8Array?$:new Uint8Array($);return new ReadableStream({pull(G){if(z>=Q.byteLength)return void G.close();const Kt=Q.subarray(z,Math.min(z+X,Q.byteLength)),kt=Jt.decode(Kt,{stream:z+X<Q.byteLength});G.enqueue(kt),z+=Kt.length}}).getReader()})(Xt);try{await Ve.parseStream(bt,yt,{xmlns:!1})}catch($){throw console.warn(`Error parsing sheet: '${R}'`,$),new Error(`Error parsing sheet: '${R}'`,{cause:$})}const Ft=be(R,st);let Ct,We=new Map;if(Ft){const $="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let X;Ft.forEach((z,Q)=>{z.type===$&&(Ct=ce(Q,R,!1,st)?.comments,Ct&&Ct.forEach(G=>{We.set(G.id,G)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Ft.forEach((z,Q)=>{z.type===Jt&&(X=ce(Q,R,!1,st))}),X||Ct){const z=Ct??[],Q=X?.comments;if(Q){const G=X?.authors,Kt=Q.length;for(let kt=0;kt<Kt;kt++){const u=Q[kt];if(!u)continue;let J=G&&u.authorId!==void 0?G[u.authorId]:u.authorId;if(J&&J.startsWith("tc=")&&(J=ys(J.substring(3)),We.has(J)))continue;let H=null;J&&(H=ue.get(J)),H||(H=Fe.get(J)),H||(H={id:d.te.uuidV4(),displayName:J},Fe.set(H.displayName,H),ue.set(H.id,H)),J=H?.id??null;const pe={id:d.te.uuidV4(),personId:J,ref:u.ref,done:!1,asNote:!0,content:u.content};z.push(pe)}}it.comments=z}}};He.push(ot())}else jt=Z?ds(R,le,it=>{const ot=_.add({buffer:it});return ot.addReference(Re),Me.add(ot),ut.toResourceId(ot)},Tt):Ne(R,le,V,T,Tt);return jt},Tt={paramMap:ye,getRefs:be,getRef:ce,parsedRefs:$e,addPerson:w=>null},he=[];let xe=0;c.Strings&&(xe=parseInt(c.Strings.Unique??c.Strings.length??0));const xs=c.Strings??[];for(let w=0;w<xe;w++)he.push(xs[w]?.t??"");const je=new Map;let Xe=xe;const ws=w=>{const B=je.get(w);if(B!==void 0)return B;const Z=Xe;return je.set(w,Xe++),he.push(w),Z},ue=(Gt("richstructure",c,V,T,Tt),Gt("richdata",c,V,T,Tt),new Map),Fe=new Map,Be=Gt("people",c,V,T);let St=null;if(Be.size>0&&(St=Be.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];ue.set(Z.id,Z),ue.set(Z.displayName,Z)}}const we=Gt("themes",c,V,T,Tt);let qe=null;if(we&&we.entries){let w=we.entries().next();w?.value?.[1]&&(qe=w.value[1])}const vs=new d.Il(qe);let de=Gt("styles",c,V,T,Tt).entries().next()?.value[1];de&&(de=JSON.parse(d.oe(de)));const Ss=Gt("workbooks",c,V,T,Tt);await Promise.all(He);const ve={...Ss.entries().next().value[1],styles:de,theme:vs.toJSON()};he.length>0&&(ve.strings=he),St&&St.length>0&&(ve.people=St);const Cs={...o,resources:_,json:ve},ks=new d.Ey(Cs);if(Me.forEach(w=>{w.deleteReference(Re)}),ut.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,st]=B;w(Z,st)}}return h?.onComplete?.(b),ks}catch(c){let T="Unable to parse XLSX.";throw c instanceof d.ae&&(T="Unable to open XLSX. There are too many rows or columns."),new Error(T,{cause:c})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DIkVQBvVNhxd2Hgq.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],m=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,m,h.name);const P=h.sheet,b=i.getSheetAt(a),C=b.getUsedRange();if(C?(m["!ref"]=C.getA1(),C.forEach((I,y)=>{const M={t:"z"},K=y.getCell().getStyle();if(!K.isNormal()){let x=K.getNumberFormat();x!==d.De.Type.General&&(x===d.De.Type.ShortDate?x="m/d/yyyy":x===d.De.Type.MediumDate?x="d-mmm-yy":x===d.De.Type.LongDate?x="[$-x-sysdate]dddd, mmmm dd, yyyy":x===d.De.Type.ShortTime?x="h:mm":x===d.De.Type.MediumTime?x="h:mm AM/PM":x===d.De.Type.LongTime&&(x="h:mm:ss AM/PM"),M.z=x)}if(I!==null)switch(y.getType()){case d.M.Number:M.t="n",M.v=I;break;case d.M.String:M.t="s",M.v=I;break;case d.M.Boolean:M.t="b",M.v=I;break;case d.M.Error:M.t="e",M.v=I.toString();case d.M.RichData:}m[y.getA1()]=M})):m["!ref"]="A1:A1",P.merges?.length>0){const I=[];m["!merges"]=I;for(let y=0;y<P.merges.length;y++)I.push(s.utils.decode_range(P.merges[y]))}if(P.cols?.length>0){const I=[];m["!cols"]=I;const y=P.cols,M={width:P.defaultColSize??b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize())},K=y.length;for(let x=0;x<K;x++){const p=y[x];for(let T=I.length;T<=p.min-1;T++)I.push(M);const c={};p.sz!==void 0&&(c.width=p.sz),p.h!==void 0&&(c.hidden=p.h),p.l!==void 0&&(c.level=p.l);for(let T=p.min;T<=p.max;T++)I.push(c)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=bs,exports.c=i=>i?d.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Le,exports.i=Us,exports.p=i=>parseFloat(i)/6e4,exports.r=ys,exports.t=i=>i?d.te.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./BI9erhszojGZe0lb.cjs");var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=(function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},mt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),A()){let f=function(O,L){_(t.transformHeader)&&(O=t.transformHeader(O,L)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;A()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var L=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),v<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(L[y]=L[y]||[],L[y].push(g)):L[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),L}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function A(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,A()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,L,b,y,g)=>{var U,d,S,I;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<g.length;Z++){for(var W,tt=g[Z],F=0,D=0,x=0,q=(S=void 0,new st({comments:y,delimiter:tt,newline:L,preview:10}).parse(O)),H=0;H<q.data.length;H++)b&&C(q.data[H])?x++:(D+=W=q.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<q.data.length&&(D/=q.data.length-x),(d===void 0||F<=d)&&(I===void 0||I<D)&&1.99<D&&(d=F,U=tt,I=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
|
|
7
7
|
`)).length&&c[0].length<E[0].length,E.length===1||h)return`
|
|
8
8
|
`;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
|
|
9
9
|
`&&f++;return f>=E.length/2?`\r
|
|
10
10
|
`:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,v=t.fastMode,M=null,w=!1,m=t.quoteChar==null?'"':t.quoteChar,T=m;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
|
|
11
11
|
`&&i!=="\r"&&i!==`\r
|
|
12
12
|
`&&(i=`
|
|
13
|
-
`);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,
|
|
14
|
-
`,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",
|
|
15
|
-
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a})()),pt.exports);const kt=(function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))})({__proto__:null,default:yt.
|
|
13
|
+
`);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,A=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(v||v!==!1&&u.indexOf(m)===-1){for(var L=u.split(i),b=0;b<L.length;b++){if(f=L[b],o+=f.length,b!==L.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),D(),j)return F()}else I(f.split(e));if(l&&l<=b)return c=c.slice(0,l),F(!0)}}return F()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=Z((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=Z(g),u.substring(d+1+S,d+1+S+A)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+A),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return F();o=g+A,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+A),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function I(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&D()),F()}function tt(x){o=x,I(f),f=[],g=u.indexOf(i,o)}function F(x){if(t.header&&!p&&c.length&&!w){var q=c[0],H=Object.create(null),ot=new Set(q);let ft=!1;for(let G=0;G<q.length;G++){let N=q[G];if(H[N=_(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),q[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,q[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function D(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function _t(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=_t,r.id=mt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
|
|
14
|
+
`,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",A=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(A&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(A?p:s[c]).length,f=!1,O=A?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!A&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&A){for(var L=[],b=0;b<E;b++){var y=z?p[b]:b;L.push(s[c][y])}f=L.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=A&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((A,z)=>{for(var h=0;h<z.length;h++)if(-1<A.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
|
|
15
|
+
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a})()),pt.exports);const kt=(function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))})({__proto__:null,default:yt.Ag(gt)},[gt]);exports.p=kt;
|