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