@sheetxl/studio-vanilla 0.7.17 → 0.7.18
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/{-yNm4nZGW6oBCNWD.cjs → -OpJd7DU9PwW2RXc.cjs} +1 -1
- package/browser/cjs/{B9qgit8PjHJuyYOp.cjs → 7n-hEbUIYqSBaDat.cjs} +1 -1
- package/browser/cjs/{BxEuVP9ucIWFkTqo.cjs → B1ub75RSZ_fZY-5u.cjs} +2 -2
- package/browser/cjs/{CcMGshOE5d1m-1f8.cjs → B5snYB_hoP7VcqzZ.cjs} +1 -1
- package/browser/cjs/{C61MOdhGMszg1C2U.cjs → B8wDYqG5sHRdIDsj.cjs} +2 -2
- package/browser/cjs/BLw2ZetGgxM_UPbO.cjs +327 -0
- package/browser/cjs/{B4Ljh1SX5IaGkIGX.cjs → BYdPezSa2xYqjORK.cjs} +1 -1
- package/browser/cjs/{D0_IINTrfXlXfxER.cjs → BdnAMpQtFN5ugYFZ.cjs} +1 -1
- package/browser/cjs/{CYEVzTL4XEeM2iSw.cjs → BduETbtBhV0XCmH1.cjs} +1 -1
- package/browser/cjs/{BUoCeZCjrMUTZVmg.cjs → Bs9bhowg6reA3ZiG.cjs} +1 -1
- package/browser/cjs/{G-QjJ2QtlB1ifjtA.cjs → BwVM8--8HyHn_87f.cjs} +1 -1
- package/browser/cjs/{D63UluXUHli4tPea.cjs → Bx1mLfmB0irjjQ59.cjs} +1 -1
- package/browser/cjs/C1iuoZpBS0VgPiZZ.cjs +6 -0
- package/browser/cjs/{oHQTaFi48ojf1BCO.cjs → C4EY3whsmpcB8TfM.cjs} +4 -4
- package/browser/cjs/{Vrfwy0e6SweDE7FV.cjs → C5oHWS2wsHSxukpC.cjs} +2 -2
- package/browser/cjs/{DKY6Y9cdzHn7BZ6_.cjs → C6Dt4rQL6QpfZXQm.cjs} +1 -1
- package/browser/cjs/{CJOyjFElORFuUIdv.cjs → CG9M85LJg0wJNz2k.cjs} +2 -2
- package/browser/cjs/{uSvdH1mCWlg3dNFu.cjs → CHyM26fHmnShQyOK.cjs} +1 -1
- package/browser/cjs/{D6_ZKruhsxbB1XZ1.cjs → CLHrBw96SEaWqdwz.cjs} +2 -2
- package/browser/cjs/{BqSFxp6kFYBlkmS3.cjs → CN0u80hTqSY_HBl8.cjs} +2 -2
- package/browser/cjs/{nZp9cR-GUPKzhRZy.cjs → CTtmVCW39eSkvdm2.cjs} +1 -1
- package/browser/cjs/{aEUt2dyQJHwNzcZd.cjs → CY6AU5GgBH3FEf6M.cjs} +1 -1
- package/browser/cjs/{DYZCCgXdxrwFqk6H.cjs → Can0-bXoL2OhE52t.cjs} +2 -2
- package/browser/cjs/{BKy2QI_dqY2u6-VR.cjs → Cn1R71AuCiyTgctH.cjs} +4 -4
- package/browser/cjs/{C_dMA8qMOlFifojV.cjs → CnFV-rdV2OV4NoPf.cjs} +1 -1
- package/browser/cjs/{BXoogJgfvlBdGjcy.cjs → CqAC3qdRSzuNldEf.cjs} +1 -1
- package/browser/cjs/{BDI2X-uxO9RqgVcA.cjs → Cuccw5_D6orsZ6ig.cjs} +1 -1
- package/browser/cjs/{pNhPF__fvekXJqRB.cjs → D1RCqtdKH57FVTnr.cjs} +1 -1
- package/browser/cjs/{CqQ-Ghs12y1q6QxY.cjs → D4bhF8b7ITBdKtXE.cjs} +1 -1
- package/browser/cjs/{CfsUAQKIJfZVfpqY.cjs → D5Io7AkIarxaLz0o.cjs} +2 -2
- package/browser/cjs/{QkU8n6EvDcxQgLhb.cjs → D6NIMEmt1k6ha9ze.cjs} +3 -3
- package/browser/cjs/{jlt5U7AG4nC1c7oH.cjs → D8obnqJFN0oBhWN5.cjs} +1 -1
- package/browser/cjs/{BE6S5mD2X6XYhB73.cjs → DKdGkW0QG81Jiw7t.cjs} +1 -1
- package/browser/cjs/{mvvx-Old8nlHmKS_.cjs → DNZMJdlbY4rc9obW.cjs} +1 -1
- package/browser/cjs/DRzXA3ngmzsTykhQ.cjs +12 -0
- package/browser/cjs/{uPv2EqsX1ASXnEBq.cjs → DSTkG5JgAPAw7yxZ.cjs} +240 -236
- package/browser/cjs/{bbKVKsorljm1bnzm.cjs → DSb153-6mEozv0oi.cjs} +1 -1
- package/browser/cjs/{DlLE_Nt_2RfEsi1R.cjs → DXA9LmHL0Fevkkxq.cjs} +1 -1
- package/browser/cjs/{CrFB5S_hHBLEOhWe.cjs → DXfnItDfztAnEKP4.cjs} +1 -1
- package/browser/cjs/{DfgitTR6RekXoIxp.cjs → D_j-ddwN_vyKl1gw.cjs} +2 -2
- package/browser/cjs/{1tRhHl303E8Hkn92.cjs → Df8pXCfA82TxY-iz.cjs} +2 -2
- package/browser/cjs/{pWvj2l2ScVN9bGc8.cjs → Di1G1HIM3occAPQO.cjs} +1 -1
- package/browser/cjs/{B3W1PqoqSxsvCJnt.cjs → Dl-bgq_10atIBtKj.cjs} +2 -2
- package/browser/cjs/{BDrmEZxdgPIWjAqS.cjs → Dri8w0JSm-asfiuG.cjs} +1 -1
- package/browser/cjs/{G8sgs7T7l4lEGGAK.cjs → DzPXt6evVjtMfZSZ.cjs} +2 -2
- package/browser/cjs/{Cs5r68wlb5QQB-n6.cjs → QBOfAfp49JVJgEGM.cjs} +3 -3
- package/browser/cjs/{BW6iAFSygqnaIrpk.cjs → R1ROURFib9YPd6Uz.cjs} +1 -1
- package/browser/cjs/{7wPFcItyHeByUtaC.cjs → SQbzOKRenIlNvJN4.cjs} +1 -1
- package/browser/cjs/{moxrtL1Unv4EfhfP.cjs → UXySlnm6n5GkKyYX.cjs} +1 -1
- package/browser/cjs/{C57_RaSyTwNsLDLn.cjs → V1ZT2I2d_Vhy7JbL.cjs} +6 -6
- package/browser/cjs/{CHrOzHV0mkXxphBw.cjs → W2ON7E4F225_2o0x.cjs} +2 -2
- package/browser/cjs/{Cz4OiBFPd7Yw_Acp.cjs → XseOGnoB6WRWeL1h.cjs} +4 -4
- package/browser/cjs/{DyJfDZ8fsBLfMsm2.cjs → ee8TVXh-uuz06Qxj.cjs} +4 -4
- package/browser/cjs/{D6Eb2t4J5DXL45oX.cjs → fVwk2Ps0ia7OOeoN.cjs} +2 -2
- package/browser/cjs/{DtNVqHp3Dnl0KJ8v.cjs → gYnOAekaIzfUbBHK.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{k5XY8CCJ-UHv--Zx.cjs → wjiUE6QSbScJqQyj.cjs} +2 -2
- package/browser/cjs/{DAZYE-uQx0b5Dc0g.cjs → wuYSiUzDxFuv7qe0.cjs} +1 -1
- package/browser/cjs/{Df550p_OyCcGYwdV.cjs → yQr9TT0cwJS4lefS.cjs} +1 -1
- package/{cdn/assets/CSreUySDfbsDpQe5.js → browser/esm/B2ScwzcRdliNbCVA.mjs} +1 -1
- package/browser/esm/{B33Rpu-kjzxmYcoc.mjs → BGLYo-oLZFEA6mNA.mjs} +3 -3
- package/browser/esm/{CDMMTs9q-mk9qhOn.mjs → BIUCcziaV7qfwVED.mjs} +1 -1
- package/browser/esm/{DhfmpKK0j4zwjrFw.mjs → BKCyeEHaOhs9q3J4.mjs} +2 -2
- package/browser/esm/{Rvb4UIwb_H9QhRrb.mjs → BKw_Lc1PPk4HqFoh.mjs} +1 -1
- package/browser/esm/{1d7Aft4vQaznJBBw.mjs → BZQ3CWGY87pdmaRe.mjs} +2 -2
- package/browser/esm/{B1644qru3veN3T5N.mjs → BbZKD2SbKfuELXbf.mjs} +1 -1
- package/{cdn/assets/D8tj5ehHlhzfheNn.js → browser/esm/BbhvW0gf1ykgX4eB.mjs} +1 -1
- package/browser/esm/{CeUu1iTV_1cWEzfR.mjs → Bhb7bGNskbvjYv4x.mjs} +1 -1
- package/browser/esm/{C5ufMjxY0KI2t1Gq.mjs → BinO4Kv0E_DXOGPS.mjs} +8 -8
- package/{cdn/assets/B852x-CAFndzl1Pn.js → browser/esm/BmNWc7YPPdByxJEr.mjs} +1 -1
- package/browser/esm/{5jfaCJ2A21vE6L3j.mjs → BmsaLC02SxtzRA6c.mjs} +1 -1
- package/browser/esm/{hlZWtfgr0-z0tiwM.mjs → Bodzo07Ns86Hes_6.mjs} +1 -1
- package/{cdn/assets/DOVHwS9l7XB0D112.js → browser/esm/BqvYn8MDuN8Hp0fL.mjs} +1 -1
- package/{cdn/assets/DmEn4HUVOzbZjsSk.js → browser/esm/Bv7HyDfRLhfRflgD.mjs} +1 -1
- package/{cdn/assets/D2erHtC_3enJU853.js → browser/esm/BvYFaSeWrHb-Mjlm.mjs} +1 -1
- package/browser/esm/ByHWUvEO_3ZE9jtG.mjs +48 -0
- package/browser/esm/{YIbtKjVM1nOvMZvP.mjs → BzVVfsPrbQ5A5-rD.mjs} +1 -1
- package/{cdn/assets/DAnK8hVf7ME_llxx.js → browser/esm/C-XgZSeS4DjP7Oxm.mjs} +1 -1
- package/{cdn/assets/DdeSfSM3gLzpMLBO.js → browser/esm/C86ahDGlKcgHEpFW.mjs} +2 -2
- package/browser/esm/{C0mYBVeD88eyNteC.mjs → C8anKI55xb9J8r8A.mjs} +4 -4
- package/browser/esm/{DDgjJDjkrt3iMr3H.mjs → C9k8b2H-QgOWRv-q.mjs} +9 -9
- package/browser/esm/{D9UwsCo-ppUuUVR_.mjs → CLUXUXEy55lTS1bq.mjs} +5 -5
- package/browser/esm/{eEBVB8oAzikfUmDV.mjs → CY3hoDW-As3R3n1r.mjs} +240 -236
- package/browser/esm/{CSqQov357rbKyWqy.mjs → CZ4HcH8NIJ2O_YcC.mjs} +1 -1
- package/browser/esm/{DGVQdAEWtlwON-QH.mjs → C_qKrewe7FG7duUk.mjs} +2 -2
- package/{cdn/assets/Bvicutnw4ljOuDH0.js → browser/esm/Caq_VV3EDVXWQF_F.mjs} +1 -1
- package/{cdn/assets/CjYCxM1grAhz8MF-.js → browser/esm/CbkdO3Vq1_DiUtf_.mjs} +1 -1
- package/{cdn/assets/CbujxmVSzwTt_RHu.js → browser/esm/Cexsa6YRMcgeElgD.mjs} +1 -1
- package/browser/esm/{C8tIYj16xuImSN-9.mjs → Ch6b5kcaGBAwLHt3.mjs} +2 -2
- package/browser/esm/{BcG6cGAs6SCKT2oq.mjs → CiewBvPqbClRmfxs.mjs} +1 -1
- package/browser/esm/{C4heXWzPixq--HbZ.mjs → Cnp-iamct8cXZ7lZ.mjs} +2 -2
- package/browser/esm/{DjdhT3BrIwhOORnu.mjs → CwqfLo1J_X1HUTve.mjs} +1 -1
- package/browser/esm/{Cb704H2clLYJVxU2.mjs → D8baOjVCEcXTKDdp.mjs} +1 -1
- package/browser/esm/{CfXL0PI_uELS5881.mjs → DAknLepGdEeiMXM_.mjs} +8 -8
- package/browser/esm/{DWSx2x2G37z5aM1G.mjs → DNc01DUxUBvND9NP.mjs} +3 -3
- package/{cdn/assets/KTk6BV5FEQiYRj_u.js → browser/esm/DPcPFiKDxxoV8w3C.mjs} +1 -1
- package/browser/esm/{eIbYx1yYfg3hhocM.mjs → DVlq_yFzmYm585l7.mjs} +3 -3
- package/browser/esm/{B_mQxm5atVJx4CYN.mjs → DVsrmHN0j_4KEJRa.mjs} +9 -9
- package/browser/esm/{hajtbAiDiQCKDskz.mjs → DcFBTiZVyhQ9ZiLT.mjs} +1 -1
- package/browser/esm/{welsuZV-uT5GqtOR.mjs → Df41Rnk9w8CBQXCS.mjs} +9 -9
- package/browser/esm/{BDkW7UhKjVpgiLQm.mjs → DhG6grvVV7MmFPRO.mjs} +2 -2
- package/browser/esm/{DYQxeskdOPHye_nf.mjs → DmU2nyEI-_Eb30r-.mjs} +7 -7
- package/{cdn/assets/BEzbLdDUgWgWjutq.js → browser/esm/DnNERP55hzjrrhc3.mjs} +1 -1
- package/browser/esm/{9YCLdoqEoVsTaLW1.mjs → DnqXietOybYaqPPj.mjs} +34 -34
- package/browser/esm/{BIXlt1qCRcCQqrsR.mjs → DsIgs7p3pcuTKsPz.mjs} +1 -1
- package/browser/esm/{Wv9k21i-bgCAr9Jt.mjs → Dycp02TMRmFQr07V.mjs} +33 -33
- package/browser/esm/{2nmuU0mX4kghWbEO.mjs → DzqX3Zoc7atMeUcF.mjs} +2 -2
- package/{cdn/assets/CHSNxi2e3P1I018K.js → browser/esm/FW0_jEmcY2wBldQu.mjs} +1 -1
- package/browser/esm/{Bp_7px9kGtrnUsTb.mjs → GncVQG4JILLz59go.mjs} +1 -1
- package/{cdn/assets/H7eht2HhDaexkvUx.js → browser/esm/MDcGjO44t1NA66gt.mjs} +1 -1
- package/browser/esm/{BXZXRiaWfhtpKMVk.mjs → X7fbzrIpDUvf-HCz.mjs} +1 -1
- package/browser/esm/{BeUphXMXj6wR4ELr.mjs → XZBEquFAZ2eofgDN.mjs} +2 -2
- package/browser/esm/{-Lv1TANUNicVCyny.mjs → _tWm1fSNAqYw-kRs.mjs} +2 -2
- package/browser/esm/{BtR8V5RjbS9dJ33d.mjs → dMToZzUgh7thVzKN.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DlsPnPOwcNdbXstf.mjs → u_A963nMPgCdHQxv.mjs} +14897 -14861
- package/{cdn/assets/BPx7oySRllCMbzuD.js → browser/esm/xEqptKjElxl2-Cxa.mjs} +1 -1
- package/browser/esm/{DaJvsWdDzhPO_KIB.mjs → xLjEMvbAB3LCzAoa.mjs} +1 -1
- package/cdn/assets/{CxCKTE1Jf5koh9hk.js → 5z0OEWKKz6tvGEvM.js} +4 -4
- package/{browser/esm/CSreUySDfbsDpQe5.mjs → cdn/assets/B2ScwzcRdliNbCVA.js} +1 -1
- package/cdn/assets/{Dn_feNW7bNmSup19.js → B3SLbUgWxigdYSoW.js} +15121 -15085
- package/cdn/assets/B7OSw0wE9IMMRUtT.js +48 -0
- package/cdn/assets/{b_km3ns3cOyV9TWu.js → B8pTVRJyYXx1EY-x.js} +3 -3
- package/cdn/assets/{CDMMTs9q-mk9qhOn.js → BIUCcziaV7qfwVED.js} +1 -1
- package/cdn/assets/{Rvb4UIwb_H9QhRrb.js → BKw_Lc1PPk4HqFoh.js} +1 -1
- package/cdn/assets/{B1644qru3veN3T5N.js → BbZKD2SbKfuELXbf.js} +1 -1
- package/{browser/esm/D8tj5ehHlhzfheNn.mjs → cdn/assets/BbhvW0gf1ykgX4eB.js} +1 -1
- package/cdn/assets/{DpzQd_HDbcmhJkli.js → Bdw_crsm0e74qfp7.js} +3 -3
- package/cdn/assets/{CNqQdQQbMwsHaClt.js → Bdx3ruItp2_baXZU.js} +1 -1
- package/cdn/assets/{DBDZCz98Rpa3_dGk.js → BePb6bRlNmkX2lgo.js} +9 -9
- package/cdn/assets/{CeUu1iTV_1cWEzfR.js → Bhb7bGNskbvjYv4x.js} +1 -1
- package/cdn/assets/{oxOOv9uPE2sfO6Y5.js → Bi3wiCDiTpk2viZa.js} +2 -2
- package/{browser/esm/B852x-CAFndzl1Pn.mjs → cdn/assets/BmNWc7YPPdByxJEr.js} +1 -1
- package/cdn/assets/{5jfaCJ2A21vE6L3j.js → BmsaLC02SxtzRA6c.js} +1 -1
- package/cdn/assets/{hlZWtfgr0-z0tiwM.js → Bodzo07Ns86Hes_6.js} +1 -1
- package/{browser/esm/DOVHwS9l7XB0D112.mjs → cdn/assets/BqvYn8MDuN8Hp0fL.js} +1 -1
- package/{browser/esm/DmEn4HUVOzbZjsSk.mjs → cdn/assets/Bv7HyDfRLhfRflgD.js} +1 -1
- package/{browser/esm/D2erHtC_3enJU853.mjs → cdn/assets/BvYFaSeWrHb-Mjlm.js} +1 -1
- package/cdn/assets/{YIbtKjVM1nOvMZvP.js → BzVVfsPrbQ5A5-rD.js} +1 -1
- package/{browser/esm/DAnK8hVf7ME_llxx.mjs → cdn/assets/C-XgZSeS4DjP7Oxm.js} +1 -1
- package/cdn/assets/{BcZyRqrwdUSmE_J0.js → C5pGH1Zmf62_j66q.js} +2 -2
- package/cdn/assets/{DJIupEi1yOa-zI6F.js → C8cBWaKbtQGw_TPE.js} +16 -16
- package/cdn/assets/{ClZu4lGWP2KkCF_D.js → C915DjG7OX8UAz6K.js} +10 -10
- package/cdn/assets/{D4uvuiZcnrixFxe7.js → CGCRF99I-jhOR7jw.js} +2 -2
- package/cdn/assets/{D7GOwlSXDP3fd_yH.js → CRDwiGWdCGjY3VTV.js} +4 -4
- package/cdn/assets/{CSqQov357rbKyWqy.js → CZ4HcH8NIJ2O_YcC.js} +1 -1
- package/{browser/esm/Bvicutnw4ljOuDH0.mjs → cdn/assets/Caq_VV3EDVXWQF_F.js} +1 -1
- package/{browser/esm/CjYCxM1grAhz8MF-.mjs → cdn/assets/CbkdO3Vq1_DiUtf_.js} +1 -1
- package/cdn/assets/{CJ9LF_V3xRMb0gUd.js → Cdu_dwo8cFQhHV82.js} +2 -2
- package/{browser/esm/CbujxmVSzwTt_RHu.mjs → cdn/assets/Cexsa6YRMcgeElgD.js} +1 -1
- package/cdn/assets/{BtUkR7Puu4tMW6y6.js → CiaCj4_YFGlEMTeo.js} +7 -7
- package/cdn/assets/{BcG6cGAs6SCKT2oq.js → CiewBvPqbClRmfxs.js} +1 -1
- package/cdn/assets/{DMfsGc2IpANuqJQY.js → CrMb7WfYaFkTtaRw.js} +15 -15
- package/cdn/assets/{DjdhT3BrIwhOORnu.js → CwqfLo1J_X1HUTve.js} +1 -1
- package/cdn/assets/{D60NeKIQnzvT49Vu.js → CwrlE4QCHEvkaHPN.js} +15 -15
- package/cdn/assets/{C4Empjom6ZoRDo_o.js → D0elTwWvY3NqsEWl.js} +13 -13
- package/cdn/assets/{DZ5n_bHdPFfYqHOM.js → D1a6QI4-ES868dRF.js} +3 -3
- package/cdn/assets/{Cb704H2clLYJVxU2.js → D8baOjVCEcXTKDdp.js} +1 -1
- package/cdn/assets/{ByNVXcfFmojElIOz.js → DLWXLdr28bw1c6dd.js} +3 -3
- package/cdn/assets/{DW0DCdCA-Yz3t9mF.js → DPa_VfaBIXFPlwou.js} +240 -236
- package/{browser/esm/KTk6BV5FEQiYRj_u.mjs → cdn/assets/DPcPFiKDxxoV8w3C.js} +1 -1
- package/cdn/assets/{CYiVmEg8u-gjkWca.js → D_2R7XUstAWLtAbl.js} +2 -2
- package/cdn/assets/{hajtbAiDiQCKDskz.js → DcFBTiZVyhQ9ZiLT.js} +1 -1
- package/{browser/esm/De8PFvFXtxsbABmk.mjs → cdn/assets/DejxS3n7p1yMS3_g.js} +12 -12
- package/{browser/esm/BEzbLdDUgWgWjutq.mjs → cdn/assets/DnNERP55hzjrrhc3.js} +1 -1
- package/cdn/assets/{D0Q4vwBbwR62z8I3.js → Do86HxDJX-Iup_sw.js} +7 -7
- package/cdn/assets/{BIXlt1qCRcCQqrsR.js → DsIgs7p3pcuTKsPz.js} +1 -1
- package/{browser/esm/CHSNxi2e3P1I018K.mjs → cdn/assets/FW0_jEmcY2wBldQu.js} +1 -1
- package/cdn/assets/{Bp_7px9kGtrnUsTb.js → GncVQG4JILLz59go.js} +1 -1
- package/cdn/assets/{BiDnChpXWqg41lNb.js → M3pI3KRDsMdkXj_F.js} +1 -1
- package/{browser/esm/H7eht2HhDaexkvUx.mjs → cdn/assets/MDcGjO44t1NA66gt.js} +1 -1
- package/cdn/assets/{DfkdRvK69HToiXoA.js → SuGjbhfbxh2gzCG3.js} +4 -4
- package/cdn/assets/{BXZXRiaWfhtpKMVk.js → X7fbzrIpDUvf-HCz.js} +1 -1
- package/cdn/assets/{Oz5TCDin3n5hZ6HZ.js → XQJOQMjS-LB9xq2g.js} +7 -7
- package/cdn/assets/{Ce0flzxPSvcAkcQn.js → _vwgpguI74mUFPFw.js} +18 -18
- package/cdn/assets/{DiNBHfEVqxyPFbPH.js → erJ-1t69v0aRHj0s.js} +2 -2
- package/cdn/assets/{BpSHQqYfSGgEOF_j.js → koz370oSs59gWnK7.js} +4 -4
- package/cdn/assets/{BqIxBsOQ_Mjm9Qfs.js → moLjHbBHh-yk5Dhm.js} +3 -3
- package/cdn/assets/{1sfmqGUYA777Xk9y.js → nyHNSxymtQj02wO4.js} +2 -2
- package/cdn/assets/{B0Nii2H246KHPawx.js → q8X5-ItRNzGVCCyk.js} +49 -49
- package/cdn/assets/{A7agAc3eTsrqP7Qr.js → rS78tt3VYVOHY4h-.js} +3 -3
- package/{browser/esm/BPx7oySRllCMbzuD.mjs → cdn/assets/xEqptKjElxl2-Cxa.js} +1 -1
- package/cdn/assets/{DaJvsWdDzhPO_KIB.js → xLjEMvbAB3LCzAoa.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B6gPKX91bKPL030F.cjs +0 -12
- package/browser/cjs/Bly2wUGVevTrN1mC.cjs +0 -327
- package/browser/cjs/nD_bO9BhkQkZENX3.cjs +0 -6
- package/browser/esm/DHE7UmNpfh-p40tp.mjs +0 -48
- package/cdn/assets/CHWGRV2rkf_9btAc.js +0 -48
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.18
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -47,18 +47,18 @@ class u {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const s = `/**
|
|
50
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.
|
|
50
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.18
|
|
51
51
|
*
|
|
52
52
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
53
53
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
54
54
|
*/
|
|
55
55
|
const W = { Number: "n", String: "s", Boolean: "b", Error: "e", Null: "z" };
|
|
56
|
-
var
|
|
57
|
-
(ie =
|
|
56
|
+
var ke, ie, d;
|
|
57
|
+
(ie = ke || (ke = {})).Orientation = { Column: "column", Row: "row" }, ie.Orientations = { ...ie.Orientation, Both: "both" }, ie.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
|
|
58
58
|
e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
59
59
|
class t extends Error {
|
|
60
|
-
constructor(
|
|
61
|
-
super(fe, B), this._label = h, this._code =
|
|
60
|
+
constructor(u, h, fe, B) {
|
|
61
|
+
super(fe, B), this._label = h, this._code = u, this.details = B;
|
|
62
62
|
}
|
|
63
63
|
static {
|
|
64
64
|
this.code = e.Code.Unknown;
|
|
@@ -72,8 +72,8 @@ var Re, ie, d;
|
|
|
72
72
|
getCode() {
|
|
73
73
|
return this._code;
|
|
74
74
|
}
|
|
75
|
-
equals(
|
|
76
|
-
return !!
|
|
75
|
+
equals(u) {
|
|
76
|
+
return !!u && (this._code === u._code || this._code === u.code);
|
|
77
77
|
}
|
|
78
78
|
get [Symbol.toStringTag]() {
|
|
79
79
|
return "[FormulaError]";
|
|
@@ -84,21 +84,21 @@ var Re, ie, d;
|
|
|
84
84
|
}
|
|
85
85
|
e.Known = t;
|
|
86
86
|
class n extends t {
|
|
87
|
-
constructor(
|
|
88
|
-
super(e.Code.Parse, e.Label.Parse,
|
|
87
|
+
constructor(u, h) {
|
|
88
|
+
super(e.Code.Parse, e.Label.Parse, u, h);
|
|
89
89
|
}
|
|
90
90
|
static {
|
|
91
91
|
this.code = e.Code.Parse;
|
|
92
92
|
}
|
|
93
93
|
getDetails() {
|
|
94
|
-
const
|
|
95
|
-
return { line:
|
|
94
|
+
const u = this.details;
|
|
95
|
+
return { line: u?.line ?? 1, column: u?.column ?? 1, offset: u?.offset ?? 0, length: u?.length ?? 0 };
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
e.Parse = n;
|
|
99
99
|
class r extends t {
|
|
100
|
-
constructor(
|
|
101
|
-
super(e.Code.Null, e.Label.Null,
|
|
100
|
+
constructor(u, h) {
|
|
101
|
+
super(e.Code.Null, e.Label.Null, u, h);
|
|
102
102
|
}
|
|
103
103
|
static {
|
|
104
104
|
this.code = e.Code.Null;
|
|
@@ -106,8 +106,8 @@ var Re, ie, d;
|
|
|
106
106
|
}
|
|
107
107
|
e.Null = r;
|
|
108
108
|
class o extends t {
|
|
109
|
-
constructor(
|
|
110
|
-
super(e.Code.Div0, e.Label.Div0,
|
|
109
|
+
constructor(u, h) {
|
|
110
|
+
super(e.Code.Div0, e.Label.Div0, u, h);
|
|
111
111
|
}
|
|
112
112
|
static {
|
|
113
113
|
this.code = e.Code.Div0;
|
|
@@ -115,8 +115,8 @@ var Re, ie, d;
|
|
|
115
115
|
}
|
|
116
116
|
e.Div0 = o;
|
|
117
117
|
class a extends t {
|
|
118
|
-
constructor(
|
|
119
|
-
super(e.Code.Value, e.Label.Value,
|
|
118
|
+
constructor(u, h) {
|
|
119
|
+
super(e.Code.Value, e.Label.Value, u, h);
|
|
120
120
|
}
|
|
121
121
|
static {
|
|
122
122
|
this.code = e.Code.Value;
|
|
@@ -124,8 +124,8 @@ var Re, ie, d;
|
|
|
124
124
|
}
|
|
125
125
|
e.Value = a;
|
|
126
126
|
class i extends t {
|
|
127
|
-
constructor(
|
|
128
|
-
super(e.Code.Ref, e.Label.Ref,
|
|
127
|
+
constructor(u, h) {
|
|
128
|
+
super(e.Code.Ref, e.Label.Ref, u, h);
|
|
129
129
|
}
|
|
130
130
|
static {
|
|
131
131
|
this.code = e.Code.Ref;
|
|
@@ -133,26 +133,26 @@ var Re, ie, d;
|
|
|
133
133
|
}
|
|
134
134
|
e.Ref = i;
|
|
135
135
|
class l extends t {
|
|
136
|
-
constructor(
|
|
137
|
-
super(e.Code.Name, e.Label.Name,
|
|
136
|
+
constructor(u, h) {
|
|
137
|
+
super(e.Code.Name, e.Label.Name, u, h);
|
|
138
138
|
}
|
|
139
139
|
static {
|
|
140
140
|
this.code = e.Code.Name;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
e.Name = l;
|
|
144
|
-
class
|
|
145
|
-
constructor(
|
|
146
|
-
super(e.Code.Num, e.Label.Num,
|
|
144
|
+
class c extends t {
|
|
145
|
+
constructor(u, h) {
|
|
146
|
+
super(e.Code.Num, e.Label.Num, u, h);
|
|
147
147
|
}
|
|
148
148
|
static {
|
|
149
149
|
this.code = e.Code.Num;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
e.Num =
|
|
152
|
+
e.Num = c;
|
|
153
153
|
class p extends t {
|
|
154
|
-
constructor(
|
|
155
|
-
super(e.Code.NA, e.Label.NA,
|
|
154
|
+
constructor(u, h) {
|
|
155
|
+
super(e.Code.NA, e.Label.NA, u, h);
|
|
156
156
|
}
|
|
157
157
|
static {
|
|
158
158
|
this.code = e.Code.NA;
|
|
@@ -160,8 +160,8 @@ var Re, ie, d;
|
|
|
160
160
|
}
|
|
161
161
|
e.NA = p;
|
|
162
162
|
class w extends t {
|
|
163
|
-
constructor(
|
|
164
|
-
super(e.Code.GettingData, e.Label.GettingData,
|
|
163
|
+
constructor(u, h) {
|
|
164
|
+
super(e.Code.GettingData, e.Label.GettingData, u, h);
|
|
165
165
|
}
|
|
166
166
|
static {
|
|
167
167
|
this.code = e.Code.GettingData;
|
|
@@ -169,8 +169,8 @@ var Re, ie, d;
|
|
|
169
169
|
}
|
|
170
170
|
e.GettingData = w;
|
|
171
171
|
class g extends t {
|
|
172
|
-
constructor(
|
|
173
|
-
super(e.Code.Spill, e.Label.Spill,
|
|
172
|
+
constructor(u, h) {
|
|
173
|
+
super(e.Code.Spill, e.Label.Spill, u, h);
|
|
174
174
|
}
|
|
175
175
|
static {
|
|
176
176
|
this.code = e.Code.Spill;
|
|
@@ -178,8 +178,8 @@ var Re, ie, d;
|
|
|
178
178
|
}
|
|
179
179
|
e.Spill = g;
|
|
180
180
|
class f extends t {
|
|
181
|
-
constructor(
|
|
182
|
-
super(e.Code.Connect, e.Label.Connect,
|
|
181
|
+
constructor(u, h) {
|
|
182
|
+
super(e.Code.Connect, e.Label.Connect, u, h);
|
|
183
183
|
}
|
|
184
184
|
static {
|
|
185
185
|
this.code = e.Code.Connect;
|
|
@@ -187,8 +187,8 @@ var Re, ie, d;
|
|
|
187
187
|
}
|
|
188
188
|
e.Connect = f;
|
|
189
189
|
class y extends t {
|
|
190
|
-
constructor(
|
|
191
|
-
super(e.Code.Blocked, e.Label.Blocked,
|
|
190
|
+
constructor(u, h) {
|
|
191
|
+
super(e.Code.Blocked, e.Label.Blocked, u, h);
|
|
192
192
|
}
|
|
193
193
|
static {
|
|
194
194
|
this.code = e.Code.Blocked;
|
|
@@ -196,8 +196,8 @@ var Re, ie, d;
|
|
|
196
196
|
}
|
|
197
197
|
e.Blocked = y;
|
|
198
198
|
class x extends t {
|
|
199
|
-
constructor(
|
|
200
|
-
super(e.Code.Unknown, e.Label.Unknown,
|
|
199
|
+
constructor(u, h) {
|
|
200
|
+
super(e.Code.Unknown, e.Label.Unknown, u, h);
|
|
201
201
|
}
|
|
202
202
|
static {
|
|
203
203
|
this.code = e.Code.Unknown;
|
|
@@ -205,8 +205,8 @@ var Re, ie, d;
|
|
|
205
205
|
}
|
|
206
206
|
e.Unknown = x;
|
|
207
207
|
class A extends t {
|
|
208
|
-
constructor(
|
|
209
|
-
super(e.Code.Field, e.Label.Field,
|
|
208
|
+
constructor(u, h) {
|
|
209
|
+
super(e.Code.Field, e.Label.Field, u, h);
|
|
210
210
|
}
|
|
211
211
|
static {
|
|
212
212
|
this.code = e.Code.Field;
|
|
@@ -214,8 +214,8 @@ var Re, ie, d;
|
|
|
214
214
|
}
|
|
215
215
|
e.Field = A;
|
|
216
216
|
class D extends t {
|
|
217
|
-
constructor(
|
|
218
|
-
super(e.Code.Calc, e.Label.Calc,
|
|
217
|
+
constructor(u, h) {
|
|
218
|
+
super(e.Code.Calc, e.Label.Calc, u, h);
|
|
219
219
|
}
|
|
220
220
|
static {
|
|
221
221
|
this.code = e.Code.Calc;
|
|
@@ -223,8 +223,8 @@ var Re, ie, d;
|
|
|
223
223
|
}
|
|
224
224
|
e.Calc = D;
|
|
225
225
|
class U extends t {
|
|
226
|
-
constructor(
|
|
227
|
-
super(e.Code.Busy, e.Label.Busy,
|
|
226
|
+
constructor(u, h) {
|
|
227
|
+
super(e.Code.Busy, e.Label.Busy, u, h);
|
|
228
228
|
}
|
|
229
229
|
static {
|
|
230
230
|
this.code = e.Code.Busy;
|
|
@@ -232,8 +232,8 @@ var Re, ie, d;
|
|
|
232
232
|
}
|
|
233
233
|
e.Busy = U;
|
|
234
234
|
class I extends t {
|
|
235
|
-
constructor(
|
|
236
|
-
super(e.Code.Python, e.Label.Python,
|
|
235
|
+
constructor(u, h) {
|
|
236
|
+
super(e.Code.Python, e.Label.Python, u, h);
|
|
237
237
|
}
|
|
238
238
|
static {
|
|
239
239
|
this.code = e.Code.Python;
|
|
@@ -241,8 +241,8 @@ var Re, ie, d;
|
|
|
241
241
|
}
|
|
242
242
|
e.Python = I;
|
|
243
243
|
class J extends t {
|
|
244
|
-
constructor(
|
|
245
|
-
super(e.Code.Timeout, e.Label.Timeout,
|
|
244
|
+
constructor(u, h) {
|
|
245
|
+
super(e.Code.Timeout, e.Label.Timeout, u, h);
|
|
246
246
|
}
|
|
247
247
|
static {
|
|
248
248
|
this.code = e.Code.Timeout;
|
|
@@ -252,29 +252,29 @@ var Re, ie, d;
|
|
|
252
252
|
})(d || (d = {}));
|
|
253
253
|
const _ = {};
|
|
254
254
|
_[d.Code.Parse] = d.Parse, _[d.Code.Null] = d.Null, _[d.Code.Div0] = d.Div0, _[d.Code.Value] = d.Value, _[d.Code.Ref] = d.Ref, _[d.Code.Name] = d.Name, _[d.Code.Num] = d.Num, _[d.Code.NA] = d.NA, _[d.Code.GettingData] = d.GettingData, _[d.Code.Spill] = d.Spill, _[d.Code.Connect] = d.Connect, _[d.Code.Blocked] = d.Blocked, _[d.Code.Unknown] = d.Unknown, _[d.Code.Field] = d.Field, _[d.Code.Calc] = d.Calc, _[d.Code.Busy] = d.Busy, _[d.Code.Python] = d.Python, _[d.Code.Timeout] = d.Timeout;
|
|
255
|
-
const
|
|
256
|
-
for (let e = 0; e <
|
|
257
|
-
const t =
|
|
258
|
-
|
|
255
|
+
const rt = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), Le = Object.keys(_);
|
|
256
|
+
for (let e = 0; e < Le.length; e++) {
|
|
257
|
+
const t = Le[e], n = _[t];
|
|
258
|
+
ot.set(d.Label[t], n), at.set(d.Code[t], n);
|
|
259
259
|
const r = new n();
|
|
260
|
-
|
|
260
|
+
rt.set(r.getLabel(), r), _e.set(r.getCode(), r);
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const Ct = _e.get(d.Code.Unknown);
|
|
263
263
|
var T;
|
|
264
|
-
(T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) =>
|
|
264
|
+
(T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) => rt.get(e), T.newTypedError = (e, t, n) => {
|
|
265
265
|
let r;
|
|
266
|
-
return r = typeof e == "string" ?
|
|
267
|
-
}, T.getBuiltInById = (e) =>
|
|
266
|
+
return r = typeof e == "string" ? ot.get(e) : at.get(e), r || (r = T.Unknown), new r(t, n);
|
|
267
|
+
}, T.getBuiltInById = (e) => _e.get(e) || Ct;
|
|
268
268
|
/**
|
|
269
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.
|
|
269
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.18
|
|
270
270
|
*
|
|
271
271
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
272
272
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
273
273
|
*/
|
|
274
|
-
const j = { Column: "column", Row: "row" },
|
|
274
|
+
const j = { Column: "column", Row: "row" }, vt = Object.freeze({ colIndex: 0, rowIndex: 0 }), Tt = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), it = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, lt = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, _t = (e, t) => e.rowEnd === t.rowEnd ? t.colEnd - e.colEnd : t.rowEnd - e.rowEnd, Ot = (e, t) => e.colEnd === t.colEnd ? t.rowEnd - e.rowEnd : t.colEnd - e.colEnd, Ae = (e, t) => e.colIndex === t.colIndex ? e.rowIndex - t.rowIndex : e.colIndex - t.colIndex, Me = (e, t) => e.rowIndex === t.rowIndex ? e.colIndex - t.colIndex : e.rowIndex - t.rowIndex, je = (e, t) => e.rowIndex === t.rowIndex ? t.colIndex - e.colIndex : t.rowIndex - e.rowIndex, Pe = (e, t) => e.colIndex === t.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex, st = (e = j.Row, t = !1) => t ? e !== j.Column ? _t : Ot : e !== j.Column ? lt : it, Fe = (e, t) => e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex, xe = (e, t) => e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd, Ce = (e, t) => !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd), De = (e, t) => {
|
|
275
275
|
if (e === t) return !0;
|
|
276
276
|
if (!e || !t || e.length !== t.length) return !1;
|
|
277
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
277
|
+
for (let n = 0; n < e.length; n++) if (!xe(e[n], t[n])) return !1;
|
|
278
278
|
return !0;
|
|
279
279
|
}, me = (e, t, n) => {
|
|
280
280
|
if (!e && !t) return null;
|
|
@@ -283,23 +283,23 @@ const j = { Column: "column", Row: "row" }, Ct = Object.freeze({ colIndex: 0, ro
|
|
|
283
283
|
const r = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), a = Math.max(e.colEnd, t.colEnd), i = Math.max(e.rowEnd, t.rowEnd);
|
|
284
284
|
let l = n;
|
|
285
285
|
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
|
|
286
|
-
},
|
|
286
|
+
}, Ue = (e, t) => {
|
|
287
287
|
if (!t || t.length === 0) return e;
|
|
288
288
|
const n = { ...e };
|
|
289
289
|
for (let r = 0; r < t.length; r++) {
|
|
290
290
|
const o = t[r];
|
|
291
|
-
|
|
291
|
+
Ce(n, o) && (n.rowStart = Math.min(n.rowStart, o.rowStart), n.colStart = Math.min(n.colStart, o.colStart), n.rowEnd = Math.max(n.rowEnd, o.rowEnd), n.colEnd = Math.max(n.colEnd, o.colEnd));
|
|
292
292
|
}
|
|
293
293
|
return n;
|
|
294
|
-
},
|
|
294
|
+
}, It = [null, null], Nt = (e, t, n) => {
|
|
295
295
|
if (e[0].value === e[1].value) return t;
|
|
296
296
|
};
|
|
297
|
-
function
|
|
297
|
+
function Be(e, t = 2, n, r = j.Row, o) {
|
|
298
298
|
let a = [...e];
|
|
299
299
|
if (t <= 0 || e.length <= 1) return a;
|
|
300
|
-
let i = r === j.Column, l = 0,
|
|
300
|
+
let i = r === j.Column, l = 0, c = !1;
|
|
301
301
|
do {
|
|
302
|
-
const p = a.sort(
|
|
302
|
+
const p = a.sort(st(i ? j.Row : j.Column));
|
|
303
303
|
a = [], a.push(p[0]);
|
|
304
304
|
const w = p.length;
|
|
305
305
|
let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
@@ -309,47 +309,47 @@ function Ue(e, t = 2, n, r = j.Row, o) {
|
|
|
309
309
|
if (J = i ? f && x === I.rowStart && D === I.rowEnd && A + 1 === I.colStart : f && y === I.colStart && A === I.colEnd && D + 1 === I.rowStart, J) {
|
|
310
310
|
let E = { colStart: y, rowStart: x, colEnd: i ? I.colEnd : A, rowEnd: i ? D : I.rowEnd };
|
|
311
311
|
if (f.value !== void 0 && (E.value = f.value), n) {
|
|
312
|
-
const
|
|
313
|
-
|
|
312
|
+
const u = o ?? [null, null];
|
|
313
|
+
u[0] = f, u[1] = I, E = n(u, E, r);
|
|
314
314
|
}
|
|
315
315
|
if (E) {
|
|
316
|
-
a[g] = E,
|
|
316
|
+
a[g] = E, c = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
317
317
|
continue;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
a[++g] = I, f = I, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
321
321
|
}
|
|
322
|
-
l++, i = !i, l === 1 && (
|
|
323
|
-
} while (l < t &&
|
|
322
|
+
l++, i = !i, l === 1 && (c = !0);
|
|
323
|
+
} while (l < t && c && a.length > 1);
|
|
324
324
|
return a;
|
|
325
325
|
}
|
|
326
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell:
|
|
326
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: vt, EmptyRange: Tt, cellToRange: (e, t) => {
|
|
327
327
|
if (!e) return null;
|
|
328
328
|
let n = t;
|
|
329
329
|
return n || (n = { ...e }, delete n.colIndex, delete n.rowIndex), n.colStart = e.colIndex ?? 0, n.rowStart = e.rowIndex ?? 0, n.colEnd = e.colIndex ?? 0, n.rowEnd = e.rowIndex ?? 0, n;
|
|
330
|
-
}, columnFirstCellComparator:
|
|
330
|
+
}, columnFirstCellComparator: Ae, columnFirstRangeComparator: it, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? je : Pe : e !== j.Column ? Me : Ae, createConflatingRanges: (e, t = !1) => {
|
|
331
331
|
const n = [];
|
|
332
332
|
let r, o, a = Number.MIN_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
333
|
-
return { append: (l,
|
|
333
|
+
return { append: (l, c, p) => {
|
|
334
334
|
let w = !0;
|
|
335
335
|
const g = p !== void 0;
|
|
336
336
|
if (g) {
|
|
337
337
|
const x = e ? e(o, p, t) : o === p ? p : void 0;
|
|
338
338
|
x === void 0 ? w = !1 : p = x;
|
|
339
339
|
}
|
|
340
|
-
if (w &&
|
|
340
|
+
if (w && c === i + 1 && l === a) return t ? r.rowEnd = c : r.colEnd = c, i = c, void (o = p);
|
|
341
341
|
r && n.push(r);
|
|
342
|
-
const f = t ? l :
|
|
343
|
-
r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i =
|
|
344
|
-
}, done: (l) => (r && (n.push(r), r = null), l ?
|
|
345
|
-
}, createRangeComparator:
|
|
342
|
+
const f = t ? l : c, y = t ? c : l;
|
|
343
|
+
r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i = c, o = p;
|
|
344
|
+
}, done: (l) => (r && (n.push(r), r = null), l ? Be(n, 3, l === !0 ? Nt : l, t ? j.Column : j.Row, It) : n) };
|
|
345
|
+
}, createRangeComparator: st, defaultRange: (e, t, n) => e ? n ? (n.colStart = e.colStart ?? t.colStart, n.rowStart = e.rowStart ?? t.rowStart, n.colEnd = e.colEnd ?? t.colEnd, n.rowEnd = e.rowEnd ?? t.rowEnd, n) : { colStart: e.colStart ?? t.colStart, rowStart: e.rowStart ?? t.rowStart, colEnd: e.colEnd ?? t.colEnd, rowEnd: e.rowEnd ?? t.rowEnd } : t, extendRangeToIntersectingRanges: Ue, extendRangeToUnionRanges: (e, t) => {
|
|
346
346
|
if (!t || t.length === 0) return e;
|
|
347
347
|
let n = e, r = null;
|
|
348
|
-
for (; !
|
|
348
|
+
for (; !xe(n, r); ) r = n, n = Ue(r, t);
|
|
349
349
|
return n;
|
|
350
350
|
}, indexOfCoords: (e, t) => {
|
|
351
351
|
const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
352
|
-
for (let r = t.length - 1; r >= 0; r--) if (
|
|
352
|
+
for (let r = t.length - 1; r >= 0; r--) if (Ce(n, t[r])) return r;
|
|
353
353
|
return -1;
|
|
354
354
|
}, intersectRanges: (e, t, n) => {
|
|
355
355
|
if (!e) return n ? t : { ...t };
|
|
@@ -364,58 +364,58 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: Ct, EmptyRange
|
|
|
364
364
|
if (n < t.rowStart || n > t.rowEnd) return !1;
|
|
365
365
|
const r = e.colIndex;
|
|
366
366
|
return !(r < t.colStart || r > t.colEnd);
|
|
367
|
-
}, isEqualCells:
|
|
367
|
+
}, isEqualCells: Fe, isEqualRanges: xe, isEqualRangesArrays: De, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Fe(e.cell, t.cell) && De(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: Ce, isSingleCell: (e) => !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd, isValidRange: (e) => !!e && !(typeof e.colStart != "number" || e.colStart < 0) && !(typeof e.colEnd != "number" || e.colEnd < e.colStart) && !(typeof e.rowStart != "number" || e.rowStart < 0) && !(typeof e.rowEnd != "number" || e.rowEnd < e.rowStart), mergeRangedValues: Be, reverseColumnFirstCellComparator: Pe, reverseRowFirstCellComparator: je, rowFirstCellComparator: Me, rowFirstRangeComparator: lt, sanitizeRange: (e) => e ? { colStart: e.colIndex ?? e.colStart ?? 0, rowStart: e.rowIndex ?? e.rowStart ?? 0, colEnd: e.colIndex ?? e.colEnd ?? 0, rowEnd: e.rowIndex ?? e.rowEnd ?? 0 } : null, translateRange: (e, t = -e.rowStart, n = -e.colStart, r) => r ? (r.colStart = e.colStart + n, r.rowStart = e.rowStart + t, r.colEnd = e.colEnd + n, r.rowEnd = e.rowEnd + t, r) : { colStart: e.colStart + n, rowStart: e.rowStart + t, colEnd: e.colEnd + n, rowEnd: e.rowEnd + t }, unionRanges: me, unionRangesArrays: (e, t, n) => {
|
|
368
368
|
if (!e || e.length === 0) return null;
|
|
369
369
|
if (e.length === 1 && !t) return e[0];
|
|
370
370
|
let r = e[0];
|
|
371
371
|
for (let o = 1; o < e.length; o++) r = me(r, e[o], n);
|
|
372
372
|
return t && (r = me(r, t, n)), r;
|
|
373
373
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
374
|
-
const S = { html: "text/html", plain: "text/plain", png: "image/png" },
|
|
375
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds:
|
|
376
|
-
function
|
|
374
|
+
const S = { html: "text/html", plain: "text/plain", png: "image/png" }, Rt = Object.freeze({ left: 0, top: 0 }), kt = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), Lt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 });
|
|
375
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Lt, EmptyRect: kt, EmptyTopLeft: Rt }, Symbol.toStringTag, { value: "Module" }));
|
|
376
|
+
function At(e) {
|
|
377
377
|
const t = Object.prototype.toString.call(e);
|
|
378
378
|
return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
|
|
379
|
-
return n.$$typeof ===
|
|
379
|
+
return n.$$typeof === Mt;
|
|
380
380
|
})(e);
|
|
381
381
|
}
|
|
382
|
-
const
|
|
383
|
-
function
|
|
382
|
+
const Mt = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
383
|
+
function jt(e) {
|
|
384
384
|
return /* @__PURE__ */ (function(t) {
|
|
385
385
|
return !!t && typeof t == "object";
|
|
386
|
-
})(e) && !
|
|
386
|
+
})(e) && !At(e);
|
|
387
387
|
}
|
|
388
388
|
function re(e, t) {
|
|
389
389
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
390
390
|
var n;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Pt(e, t, n) {
|
|
393
393
|
return e.concat(t).map(function(r) {
|
|
394
394
|
return re(r, n);
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function $e(e) {
|
|
398
398
|
return Object.keys(e).concat((function(t) {
|
|
399
399
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
400
400
|
return Object.propertyIsEnumerable.call(t, n);
|
|
401
401
|
}) : [];
|
|
402
402
|
})(e));
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function ze(e, t) {
|
|
405
405
|
try {
|
|
406
406
|
return t in e;
|
|
407
407
|
} catch {
|
|
408
408
|
return !1;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Ft(e, t, n) {
|
|
412
412
|
const r = {};
|
|
413
|
-
return n.isMergeableObject(e) &&
|
|
413
|
+
return n.isMergeableObject(e) && $e(e).forEach(function(o) {
|
|
414
414
|
r[o] = re(e[o], n);
|
|
415
|
-
}),
|
|
415
|
+
}), $e(t).forEach(function(o) {
|
|
416
416
|
(function(a, i) {
|
|
417
|
-
return
|
|
418
|
-
})(e, o) || (
|
|
417
|
+
return ze(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
|
|
418
|
+
})(e, o) || (ze(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(a, i) {
|
|
419
419
|
if (!i.customMerge) return Y;
|
|
420
420
|
const l = i.customMerge(a);
|
|
421
421
|
return typeof l == "function" ? l : Y;
|
|
@@ -423,9 +423,9 @@ function Pt(e, t, n) {
|
|
|
423
423
|
}), r;
|
|
424
424
|
}
|
|
425
425
|
function Y(e, t, n) {
|
|
426
|
-
(n = n || {}).arrayMerge = n.arrayMerge ||
|
|
426
|
+
(n = n || {}).arrayMerge = n.arrayMerge || Pt, n.isMergeableObject = n.isMergeableObject || jt, n.cloneUnlessOtherwiseSpecified = re;
|
|
427
427
|
const r = Array.isArray(t);
|
|
428
|
-
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) :
|
|
428
|
+
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Ft(e, t, n) : re(t, n);
|
|
429
429
|
}
|
|
430
430
|
Y.all = function(e, t) {
|
|
431
431
|
if (!Array.isArray(e)) throw new Error("first argument should be an array");
|
|
@@ -433,12 +433,12 @@ Y.all = function(e, t) {
|
|
|
433
433
|
return Y(n, r, t);
|
|
434
434
|
}, {});
|
|
435
435
|
};
|
|
436
|
-
const
|
|
436
|
+
const we = Object.freeze([]), Dt = Object.freeze({}), Ke = (e) => e, de = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
437
437
|
let t = 16 * Math.random() | 0;
|
|
438
438
|
return (e === "x" ? t : 3 & t | 8).toString(16);
|
|
439
|
-
}), Ut = (e) => 1 * e,
|
|
440
|
-
e[t] && typeof e[t] == "object" ?
|
|
441
|
-
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !
|
|
439
|
+
}), Ut = (e) => 1 * e, ct = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((n, r) => n === t[r]), ne = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, ut = (e) => typeof e != "object" || Array.isArray(e) || e === null ? e : (Object.keys(e).forEach(function(t) {
|
|
440
|
+
e[t] && typeof e[t] == "object" ? ut(e[t]) : e[t] !== null && e[t] !== void 0 || delete e[t], typeof e[t] == "object" && Object.keys(e[t]).length === 0 && delete e[t];
|
|
441
|
+
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !ct(e, t)) || !!e.isEqual?.(t), dt = (e, t, n = Bt) => {
|
|
442
442
|
if (e == null || e === t) return null;
|
|
443
443
|
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return n(e, t) ? null : e;
|
|
444
444
|
const r = Object.keys(e);
|
|
@@ -446,18 +446,18 @@ const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () =>
|
|
|
446
446
|
let o = !1;
|
|
447
447
|
for (let a = 0; a < r.length; a++) {
|
|
448
448
|
const i = r[a];
|
|
449
|
-
|
|
449
|
+
dt(e[i], t?.[i], n) === null && (o = !0, delete e[i]);
|
|
450
450
|
}
|
|
451
451
|
return o && Object.keys(e).length === 0 ? null : void 0;
|
|
452
|
-
},
|
|
453
|
-
if (
|
|
452
|
+
}, Ve = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), qe = (e) => e == null, Ge = (e, t) => !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top), We = !(typeof window > "u" || !window.document || !window.document.createElement), k = { Windows: "windows", MacOS: "macos", IOS: "ios", Linux: "linux", Android: "android", Safari: "safari", Firefox: "firefox", Node: "node", Unknown: "unknown" }, oe = () => {
|
|
453
|
+
if (ft()) return k.Node;
|
|
454
454
|
const e = globalThis.navigator !== void 0 && globalThis.navigator.userAgent ? globalThis.navigator.userAgent.toLowerCase() : "";
|
|
455
455
|
return e ? /(win32|win64|windows|wince)/i.test(e) ? k.Windows : /(macintosh|macintel|macppc|mac68k|macos)/i.test(e) ? k.MacOS : /(iphone|ipad|ipod)/i.test(e) ? k.IOS : /android/.test(e) ? k.Android : /linux/.test(e) ? k.Linux : /^((?!chrome|android|).)*safari/i.test(e) ? k.Safari : /^((?!chrome|android|Seamonkey).)*firefox/i.test(e) ? k.Firefox : k.Unknown : k.Unknown;
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function ft() {
|
|
458
458
|
return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: we, EmptyObject: Dt, OSType: k, arrayMove: function(e, t, n) {
|
|
461
461
|
const r = e.slice();
|
|
462
462
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
463
463
|
}, asNumber: (e) => {
|
|
@@ -465,23 +465,23 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
465
465
|
return Number.isFinite(t) ? t : 0;
|
|
466
466
|
}, camelToPrettyCase: (e) => e.length === 1 ? e.toUpperCase() : e.replace(/([A-Z])/g, " $1").replace(/^./, function(t) {
|
|
467
467
|
return t.toUpperCase();
|
|
468
|
-
}).trim(), canUseDOM:
|
|
468
|
+
}).trim(), canUseDOM: We, cancelTimeout: (e) => {
|
|
469
469
|
cancelAnimationFrame(e.id);
|
|
470
|
-
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) =>
|
|
470
|
+
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) => qe(e) ? e : JSON.parse(JSON.stringify(e)), consoleWithNoSource: (...e) => new Promise((t) => {
|
|
471
471
|
setTimeout(() => {
|
|
472
472
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
473
473
|
});
|
|
474
474
|
}), debounce: function(e, t = 300, n = !1) {
|
|
475
475
|
let r, o, a, i, l = 0;
|
|
476
|
-
function
|
|
476
|
+
function c() {
|
|
477
477
|
let w = Date.now() - l;
|
|
478
|
-
w < t && w >= 0 ? r = setTimeout(
|
|
478
|
+
w < t && w >= 0 ? r = setTimeout(c, t - w) : (r = null, n || (i = e.apply(a, o), a = o = null));
|
|
479
479
|
}
|
|
480
480
|
t == null && (t = 100);
|
|
481
481
|
const p = function() {
|
|
482
482
|
a = globalThis, o = arguments, l = Date.now();
|
|
483
483
|
var w = n && !r;
|
|
484
|
-
return r || (r = setTimeout(
|
|
484
|
+
return r || (r = setTimeout(c, t)), w && (i = e.apply(a, o), a = o = null), i;
|
|
485
485
|
};
|
|
486
486
|
return p.clear = function() {
|
|
487
487
|
r && (clearTimeout(r), r = null);
|
|
@@ -533,11 +533,11 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
533
533
|
}, deepMerge: Y, diffValues: (e, t) => {
|
|
534
534
|
const n = {}, r = Object.keys(t), o = r.length;
|
|
535
535
|
for (let a = 0; a < o; a++) {
|
|
536
|
-
const i = r[a];
|
|
537
|
-
|
|
536
|
+
const i = r[a], l = e[i], c = t[i];
|
|
537
|
+
l !== c && (n[i] = l === void 0 ? c : l);
|
|
538
538
|
}
|
|
539
539
|
return Object.keys(n).length === 0 ? null : n;
|
|
540
|
-
}, findEqualOrGreater: function(e, t, n =
|
|
540
|
+
}, findEqualOrGreater: function(e, t, n = Ke) {
|
|
541
541
|
let r = 0, o = e.length - 1;
|
|
542
542
|
for (; r <= o; ) {
|
|
543
543
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -545,7 +545,7 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
545
545
|
i < t ? r = a + 1 : o = a - 1;
|
|
546
546
|
}
|
|
547
547
|
return r;
|
|
548
|
-
}, findEqualOrLesser: function(e, t, n =
|
|
548
|
+
}, findEqualOrLesser: function(e, t, n = Ke) {
|
|
549
549
|
let r = e.length - 1, o = 0;
|
|
550
550
|
for (; r >= o; ) {
|
|
551
551
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -570,14 +570,14 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
570
570
|
r = i;
|
|
571
571
|
}
|
|
572
572
|
return r ?? null;
|
|
573
|
-
}, getOS: oe, hasFocus:
|
|
573
|
+
}, getOS: oe, hasFocus: Ye, isDefined: (e) => e != null, isEmpty: (e) => e == null || e === "", isEqualArrays: ct, isEqualBounds: (e, t) => e === t || !(e && !t || t && !e) && e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, isEqualObjectKeys: (e, t) => {
|
|
574
574
|
if (e === t) return !0;
|
|
575
575
|
if (e && !t || t && !e) return !1;
|
|
576
576
|
const n = Object.keys(e);
|
|
577
577
|
if (n.length !== Object.keys(t).length) return !1;
|
|
578
578
|
for (let r = 0; r < n.length; r++) if (e[n[r]] !== t[n[r]]) return !1;
|
|
579
579
|
return !0;
|
|
580
|
-
}, isNode:
|
|
580
|
+
}, isNode: ft, isNullOrUndefined: qe, isNumeric: (e) => {
|
|
581
581
|
const t = 1 * e;
|
|
582
582
|
return Number.isFinite(t) && typeof t == "number";
|
|
583
583
|
}, isObject: ne, isPromiseLike: (e) => !!e && typeof e.then == "function", isRectInsideRect: (e, t) => e.top >= t.top && e.bottom <= t.bottom && e.left >= t.left && e.right <= t.right, isRectIntersect: Ge, mergeContentful: (...e) => {
|
|
@@ -593,7 +593,7 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
593
593
|
e();
|
|
594
594
|
});
|
|
595
595
|
}, openFileDialog: (e = "*.*") => new Promise((t, n) => {
|
|
596
|
-
if (!
|
|
596
|
+
if (!We) return void n("Unable to open dialog with no dom.");
|
|
597
597
|
const r = document.createElement("input");
|
|
598
598
|
r.type = "file", r.accept = e;
|
|
599
599
|
let o = null, a = !1;
|
|
@@ -614,13 +614,17 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
614
614
|
return function(o) {
|
|
615
615
|
t = o, t && t.persist && t.persist(), n || (n = !0, requestAnimationFrame(r));
|
|
616
616
|
};
|
|
617
|
-
}, removeEmptyProperties:
|
|
618
|
-
if (!e) return
|
|
619
|
-
|
|
620
|
-
|
|
617
|
+
}, removeEmptyProperties: ut, removeEqualValues: dt, removeListenerAll: (e) => {
|
|
618
|
+
if (!e) return we;
|
|
619
|
+
const t = e.length;
|
|
620
|
+
for (let n = 0; n < t; n++) {
|
|
621
|
+
const r = e[n];
|
|
622
|
+
r && r();
|
|
623
|
+
}
|
|
624
|
+
return we;
|
|
621
625
|
}, requestTimeout: (e, t) => {
|
|
622
|
-
const n =
|
|
623
|
-
|
|
626
|
+
const n = Ve(), r = { id: requestAnimationFrame(function o() {
|
|
627
|
+
Ve() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
|
|
624
628
|
}) };
|
|
625
629
|
return r;
|
|
626
630
|
}, roundAccurately: (e, t = 0) => {
|
|
@@ -656,10 +660,10 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
656
660
|
t.bottom > o.top && t.bottom < o.bottom && (r.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
|
|
657
661
|
}, l = () => {
|
|
658
662
|
t.right > o.left && t.right < o.right && (r.push({ ...o, left: t.right }), o = { ...o, right: t.right });
|
|
659
|
-
},
|
|
663
|
+
}, c = () => {
|
|
660
664
|
t.left > o.left && t.left < o.right && (r.push({ ...o, right: t.left }), o = { ...o, left: t.left });
|
|
661
665
|
};
|
|
662
|
-
return n ? (
|
|
666
|
+
return n ? (c(), l(), a(), i()) : (a(), i(), l(), c()), r;
|
|
663
667
|
}, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
|
|
664
668
|
let n = null;
|
|
665
669
|
return (...r) => {
|
|
@@ -683,19 +687,19 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
683
687
|
}, uuidV4: de, validEnumValue: (e, t) => {
|
|
684
688
|
if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
|
|
685
689
|
}, whenFocus: async (e, t = !1) => new Promise((n) => {
|
|
686
|
-
|
|
690
|
+
Ye(e, t) ? n(!0) : e.addEventListener("focusin", () => {
|
|
687
691
|
n(!0);
|
|
688
692
|
}, { once: !0 }), e.focus();
|
|
689
693
|
}) }, Symbol.toStringTag, { value: "Module" }));
|
|
690
694
|
Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
|
|
691
|
-
const
|
|
695
|
+
const pt = (e) => {
|
|
692
696
|
const t = new Uint8Array(e), n = t.byteLength;
|
|
693
697
|
let r = "";
|
|
694
698
|
for (let o = 0; o < n; o++) r += String.fromCharCode(t[o]);
|
|
695
699
|
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(r);
|
|
696
700
|
if (typeof Buffer < "u") return Buffer.from(r, "binary").toString("base64");
|
|
697
701
|
throw new Error("Unsupported environment");
|
|
698
|
-
},
|
|
702
|
+
}, ve = (e) => new Promise((t, n) => {
|
|
699
703
|
if (e) if (typeof FileReader < "u") {
|
|
700
704
|
const r = new FileReader();
|
|
701
705
|
r.onload = () => {
|
|
@@ -713,12 +717,12 @@ const ft = (e) => {
|
|
|
713
717
|
} else n(new Error("Unsupported environment"));
|
|
714
718
|
else t("");
|
|
715
719
|
});
|
|
716
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64:
|
|
720
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: pt, base64ToArrayBuffer: (e) => {
|
|
717
721
|
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"), n = t.length, r = new Uint8Array(n);
|
|
718
722
|
for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
|
|
719
723
|
return r.buffer;
|
|
720
|
-
}, blobToString:
|
|
721
|
-
const
|
|
724
|
+
}, blobToString: ve }, Symbol.toStringTag, { value: "Module" }));
|
|
725
|
+
const ht = "data:image/png;base64,", mt = "Unable to resolve image.", Je = (e) => new Promise(async (t, n) => {
|
|
722
726
|
let r = null;
|
|
723
727
|
try {
|
|
724
728
|
r = new Image(), r.src = e, r.addEventListener("load", function() {
|
|
@@ -729,9 +733,9 @@ const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) =
|
|
|
729
733
|
} catch {
|
|
730
734
|
r?.src && URL.revokeObjectURL(r.src);
|
|
731
735
|
}
|
|
732
|
-
r || n(
|
|
733
|
-
}),
|
|
734
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX:
|
|
736
|
+
r || n(mt);
|
|
737
|
+
}), ye = "image/svg+xml";
|
|
738
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: ht, getImageDataUrl: (e, t = 1) => new Promise(async (n, r) => {
|
|
735
739
|
let o = null;
|
|
736
740
|
try {
|
|
737
741
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
@@ -749,70 +753,70 @@ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt,
|
|
|
749
753
|
} catch {
|
|
750
754
|
o?.src && URL.revokeObjectURL(o.src);
|
|
751
755
|
}
|
|
752
|
-
o || r(
|
|
756
|
+
o || r(mt);
|
|
753
757
|
}), loadImageDetails: async (e, t = null) => {
|
|
754
758
|
let n = null;
|
|
755
759
|
const r = async () => {
|
|
756
760
|
try {
|
|
757
|
-
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await
|
|
761
|
+
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await Je(i);
|
|
758
762
|
n = { mimeType: a, naturalSize: l, asUrl: i };
|
|
759
763
|
} catch {
|
|
760
764
|
}
|
|
761
765
|
}, o = async () => {
|
|
762
766
|
try {
|
|
763
|
-
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type:
|
|
764
|
-
n = { mimeType: t ??
|
|
767
|
+
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type: ye })), l = await Je(i);
|
|
768
|
+
n = { mimeType: t ?? ye, naturalSize: l, asUrl: i, asSVGText: a };
|
|
765
769
|
} catch {
|
|
766
770
|
}
|
|
767
771
|
};
|
|
768
|
-
if (t ===
|
|
772
|
+
if (t === ye ? await o() : t.startsWith("image/") ? await r() : (await r(), n || await o()), !n) throw new Error("Failed to load image");
|
|
769
773
|
return n;
|
|
770
774
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
771
|
-
var
|
|
772
|
-
(
|
|
775
|
+
var He, Xe;
|
|
776
|
+
(Xe = He || (He = {})).resolveTypedUpdates = (e, t, n, r) => {
|
|
773
777
|
if (e === null) return e;
|
|
774
778
|
if (e === void 0) return r;
|
|
775
779
|
let o = e;
|
|
776
780
|
if (t?.shorthand) {
|
|
777
|
-
const
|
|
778
|
-
|
|
781
|
+
const c = t?.shorthand(e, n);
|
|
782
|
+
c !== void 0 && (o = c);
|
|
779
783
|
}
|
|
780
784
|
if (o !== null && t?.getSubType) {
|
|
781
|
-
const
|
|
782
|
-
|
|
785
|
+
const c = t.getSubType(o);
|
|
786
|
+
c && (t = c);
|
|
783
787
|
}
|
|
784
788
|
const a = t?.properties, i = t?.arrayType ?? !1;
|
|
785
789
|
let l = o;
|
|
786
790
|
if (t && t.merge && l && r) l = t.merge(l, r, n);
|
|
787
791
|
else if (!i && a) {
|
|
788
|
-
const
|
|
792
|
+
const c = Object.keys({ ...o, ...r });
|
|
789
793
|
l = null;
|
|
790
|
-
const p =
|
|
794
|
+
const p = c.length;
|
|
791
795
|
for (let w = 0; w < p; w++) {
|
|
792
|
-
const g =
|
|
796
|
+
const g = c[w];
|
|
793
797
|
let f, y = o[g];
|
|
794
798
|
if (y !== void 0) {
|
|
795
799
|
const x = a[g];
|
|
796
|
-
f = x ? (0,
|
|
800
|
+
f = x ? (0, Xe.resolveTypedUpdates)(y, x, n, r?.[g]) : y;
|
|
797
801
|
} else f = r?.[g];
|
|
798
802
|
f != null && (l = l ?? {}, l[g] = f);
|
|
799
803
|
}
|
|
800
804
|
}
|
|
801
805
|
return l;
|
|
802
806
|
};
|
|
803
|
-
const
|
|
807
|
+
const Ze = \`The Safari browser does not support advanced copy and paste.
|
|
804
808
|
Copy and paste will be limited to within the browser tab.
|
|
805
809
|
|
|
806
|
-
Please use Chrome or Edge if external copy and paste is required.\`,
|
|
807
|
-
All copy and paste operations will be limited to the browser tab.\`,
|
|
810
|
+
Please use Chrome or Edge if external copy and paste is required.\`, ge = \`You do not have permissions to access the clipboard.
|
|
811
|
+
All copy and paste operations will be limited to the browser tab.\`, wt = { Safari: \`The Safari browser does not support advanced copy and paste.
|
|
808
812
|
Copy and paste will be limited to within the browser tab.
|
|
809
813
|
|
|
810
|
-
Please use Chrome or Edge if external copy and paste is required.\`, Perms:
|
|
814
|
+
Please use Chrome or Edge if external copy and paste is required.\`, Perms: ge, PermsWrite: oe() === k.Safari ? Ze : ge, PermsRead: oe() === k.Safari ? Ze : ge }, be = async () => new Promise((e) => {
|
|
811
815
|
document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
|
|
812
816
|
e();
|
|
813
817
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
814
|
-
}),
|
|
815
|
-
if (oe() === k.Safari) return await n(new Error(
|
|
818
|
+
}), Ee = async (e, t, n) => {
|
|
819
|
+
if (oe() === k.Safari) return await n(new Error(wt.Safari));
|
|
816
820
|
try {
|
|
817
821
|
const r = async (i) => {
|
|
818
822
|
try {
|
|
@@ -827,7 +831,7 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
827
831
|
} catch (r) {
|
|
828
832
|
return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
|
|
829
833
|
}
|
|
830
|
-
},
|
|
834
|
+
}, yt = async (e) => {
|
|
831
835
|
try {
|
|
832
836
|
return await e.read({ unsanitized: [S.html] });
|
|
833
837
|
} catch {
|
|
@@ -835,7 +839,7 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
835
839
|
return await e.read();
|
|
836
840
|
}, zt = async (e, t) => {
|
|
837
841
|
if (!e) return null;
|
|
838
|
-
const n = await
|
|
842
|
+
const n = await yt(e);
|
|
839
843
|
let r = !1;
|
|
840
844
|
for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
|
|
841
845
|
return await n[o].getType(t);
|
|
@@ -848,9 +852,9 @@ if (!globalThis.ClipboardItem) {
|
|
|
848
852
|
this._items = {}, this._types = Object.keys(r);
|
|
849
853
|
const a = {}, i = Object.keys(r);
|
|
850
854
|
for (let l = 0; l < i.length; l++) {
|
|
851
|
-
const
|
|
852
|
-
let p = r[
|
|
853
|
-
a[
|
|
855
|
+
const c = i[l];
|
|
856
|
+
let p = r[c];
|
|
857
|
+
a[c] = typeof p == "string" ? e(c, p) : p;
|
|
854
858
|
}
|
|
855
859
|
this._items = a, this._presentationStyle = o?.presentationStyle ?? "unspecified";
|
|
856
860
|
}
|
|
@@ -866,7 +870,7 @@ if (!globalThis.ClipboardItem) {
|
|
|
866
870
|
}
|
|
867
871
|
globalThis.ClipboardItem = t;
|
|
868
872
|
}
|
|
869
|
-
const
|
|
873
|
+
const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
870
874
|
try {
|
|
871
875
|
const o = await zt(e, t);
|
|
872
876
|
if (o) {
|
|
@@ -880,8 +884,8 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
880
884
|
} catch (o) {
|
|
881
885
|
r(o);
|
|
882
886
|
}
|
|
883
|
-
}),
|
|
884
|
-
const n = await
|
|
887
|
+
}), Qe = async (e, t = S.html) => {
|
|
888
|
+
const n = await Te(e, t);
|
|
885
889
|
if (!n) return null;
|
|
886
890
|
let r = null;
|
|
887
891
|
try {
|
|
@@ -892,7 +896,7 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
892
896
|
return r;
|
|
893
897
|
}, Kt = async (e) => {
|
|
894
898
|
e && await e.writeText("");
|
|
895
|
-
}, ae = "clipboard-uuid", Q = "web text/uuid",
|
|
899
|
+
}, ae = "clipboard-uuid", Q = "web text/uuid", et = (e) => \`<div style="display:none" \${ae}="\${e}"/>\`, Vt = (e, t) => {
|
|
896
900
|
let n = null;
|
|
897
901
|
try {
|
|
898
902
|
const r = new DOMParser().parseFromString(t, S.html);
|
|
@@ -901,7 +905,7 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
901
905
|
console.warn("Can't embed uuid.", r);
|
|
902
906
|
}
|
|
903
907
|
return n;
|
|
904
|
-
},
|
|
908
|
+
}, tt = (e, t) => {
|
|
905
909
|
if (!t || !e) return !1;
|
|
906
910
|
try {
|
|
907
911
|
const n = t.querySelectorAll(\`[\${ae}="\${e}"]\`);
|
|
@@ -912,7 +916,7 @@ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
912
916
|
return !1;
|
|
913
917
|
}
|
|
914
918
|
};
|
|
915
|
-
class
|
|
919
|
+
class nt {
|
|
916
920
|
constructor(t) {
|
|
917
921
|
if (t?.nativeClipboard === void 0 || t?.nativeClipboard === !0) try {
|
|
918
922
|
this._nativeClipboard = globalThis?.navigator.clipboard;
|
|
@@ -923,12 +927,12 @@ class tt {
|
|
|
923
927
|
this._disableCheckOnFocus = t?.disableCheckOnFocus ?? !1, this._init();
|
|
924
928
|
}
|
|
925
929
|
async _checkForChanges() {
|
|
926
|
-
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await
|
|
927
|
-
await
|
|
928
|
-
const t = await
|
|
930
|
+
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await Ee("clipboard-read", async () => {
|
|
931
|
+
await be();
|
|
932
|
+
const t = await Te(this._nativeClipboard, Q);
|
|
929
933
|
if (!this._state || t && t === this._state.uuid) return !0;
|
|
930
|
-
const n = await
|
|
931
|
-
return !this._state || (
|
|
934
|
+
const n = await Qe(this._nativeClipboard, S.html);
|
|
935
|
+
return !this._state || (tt(this._state.uuid, n) || this.clear(), !0);
|
|
932
936
|
}, async (t) => {
|
|
933
937
|
t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
|
|
934
938
|
});
|
|
@@ -946,14 +950,14 @@ class tt {
|
|
|
946
950
|
async read() {
|
|
947
951
|
if (!this._nativeClipboard) return this._state?.items ?? null;
|
|
948
952
|
const t = this;
|
|
949
|
-
return await
|
|
950
|
-
if (await
|
|
951
|
-
const n = await
|
|
953
|
+
return await Ee("clipboard-read", async () => {
|
|
954
|
+
if (await be(), this._state?.uuid) {
|
|
955
|
+
const n = await Te(this._nativeClipboard, Q);
|
|
952
956
|
if (n && n === t._state.uuid) return !0;
|
|
953
|
-
const r = await
|
|
954
|
-
if (
|
|
957
|
+
const r = await Qe(this._nativeClipboard, S.html);
|
|
958
|
+
if (tt(t._state?.uuid, r)) return !0;
|
|
955
959
|
}
|
|
956
|
-
return t._state = { items: await
|
|
960
|
+
return t._state = { items: await yt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
|
|
957
961
|
}, async (n) => {
|
|
958
962
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
959
963
|
}), this._state?.items ?? [];
|
|
@@ -968,31 +972,31 @@ class tt {
|
|
|
968
972
|
const i = () => {
|
|
969
973
|
n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
|
|
970
974
|
};
|
|
971
|
-
await
|
|
972
|
-
await
|
|
975
|
+
await Ee("clipboard-write", async () => {
|
|
976
|
+
await be(), o && a.length === 0 && (a.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), a.push(new ClipboardItem({ [S.html]: new Blob([et(o)], { type: S.html }) })));
|
|
973
977
|
for (let l = 0; l < Math.min(1, a.length); l++) {
|
|
974
|
-
const
|
|
975
|
-
let p =
|
|
978
|
+
const c = a[l];
|
|
979
|
+
let p = c.types.indexOf(S.html), w = null;
|
|
976
980
|
if (p !== -1) {
|
|
977
|
-
const y = await
|
|
978
|
-
w = await
|
|
981
|
+
const y = await c.getType(S.html);
|
|
982
|
+
w = await ve(y), w && (w = Vt(o, w));
|
|
979
983
|
}
|
|
980
|
-
if (!w &&
|
|
981
|
-
const y = await
|
|
984
|
+
if (!w && c.types.includes(S.plain)) {
|
|
985
|
+
const y = await c.getType(S.plain);
|
|
982
986
|
if (y) {
|
|
983
987
|
let x = null;
|
|
984
|
-
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await
|
|
988
|
+
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await ve(y), x && (w = \`<div \${ae}="\${o}">\${x}</div>\`);
|
|
985
989
|
}
|
|
986
990
|
}
|
|
987
|
-
if (!w &&
|
|
988
|
-
const y = await
|
|
989
|
-
w = \`<div \${ae}="\${o}"><img src="\${
|
|
991
|
+
if (!w && c.types.includes(S.png)) {
|
|
992
|
+
const y = await c.getType(S.png), x = pt(await y.arrayBuffer());
|
|
993
|
+
w = \`<div \${ae}="\${o}"><img src="\${ht + x}"/></div>\`;
|
|
990
994
|
}
|
|
991
|
-
!w && o && (w =
|
|
995
|
+
!w && o && (w = et(o));
|
|
992
996
|
const g = new Blob([w ?? ""], { type: S.html }), f = {};
|
|
993
|
-
for (let y = 0; y <
|
|
994
|
-
const x =
|
|
995
|
-
f[x] = y === p ? g :
|
|
997
|
+
for (let y = 0; y < c.types.length; y++) {
|
|
998
|
+
const x = c.types[y];
|
|
999
|
+
f[x] = y === p ? g : c.getType(x);
|
|
996
1000
|
}
|
|
997
1001
|
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), r.push(new ClipboardItem(f));
|
|
998
1002
|
}
|
|
@@ -1083,11 +1087,11 @@ class tt {
|
|
|
1083
1087
|
globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
|
|
1084
1088
|
}
|
|
1085
1089
|
}
|
|
1086
|
-
var
|
|
1087
|
-
(
|
|
1088
|
-
const
|
|
1090
|
+
var Se;
|
|
1091
|
+
(Se = nt || (nt = {})).ErrorMessages = wt, Se.Global = new Se();
|
|
1092
|
+
const qt = "__SHEETXL";
|
|
1089
1093
|
let ee = null, le = null;
|
|
1090
|
-
async function
|
|
1094
|
+
async function Gt() {
|
|
1091
1095
|
if (ee)
|
|
1092
1096
|
return ee;
|
|
1093
1097
|
if (le) {
|
|
@@ -1114,9 +1118,9 @@ const Wt = {
|
|
|
1114
1118
|
target: "esnext"
|
|
1115
1119
|
}
|
|
1116
1120
|
};
|
|
1117
|
-
async function Yt(e, t, n = "/script.js", r =
|
|
1121
|
+
async function Yt(e, t, n = "/script.js", r = qt) {
|
|
1118
1122
|
try {
|
|
1119
|
-
const o = await
|
|
1123
|
+
const o = await Gt(), a = "@sheetxl/primitives", i = \`
|
|
1120
1124
|
export const FormulaContext = globalThis.\${r}?.FormulaContext;
|
|
1121
1125
|
export const ScalarType = globalThis.\${r}?.ScalarType;
|
|
1122
1126
|
export const Observable = globalThis.\${r}?.Observable;
|
|
@@ -1151,7 +1155,7 @@ async function Yt(e, t, n = "/script.js", r = Gt) {
|
|
|
1151
1155
|
};
|
|
1152
1156
|
});
|
|
1153
1157
|
}
|
|
1154
|
-
},
|
|
1158
|
+
}, c = await o.build({
|
|
1155
1159
|
entryPoints: [n],
|
|
1156
1160
|
// Use the virtual entry point
|
|
1157
1161
|
bundle: !0,
|
|
@@ -1174,9 +1178,9 @@ async function Yt(e, t, n = "/script.js", r = Gt) {
|
|
|
1174
1178
|
platform: "neutral"
|
|
1175
1179
|
// not really needed
|
|
1176
1180
|
});
|
|
1177
|
-
if (
|
|
1178
|
-
return
|
|
1179
|
-
throw
|
|
1181
|
+
if (c.outputFiles && c.outputFiles.length > 0)
|
|
1182
|
+
return c.outputFiles[0].text;
|
|
1183
|
+
throw c.errors && c.errors.length > 0 ? new Error(\`esbuild bundling failed: \${c.errors.map((p) => p.text).join(\`
|
|
1180
1184
|
\`)}\`) : new Error("esbuild did not produce an output file.");
|
|
1181
1185
|
} catch (o) {
|
|
1182
1186
|
throw console.error("esbuild bundling process failed:", o), o;
|
|
@@ -1199,16 +1203,16 @@ interface Promise<T> {
|
|
|
1199
1203
|
interface FirstTest {
|
|
1200
1204
|
isTrue?: boolean;
|
|
1201
1205
|
}
|
|
1202
|
-
\`, Xt = async () => Ht,
|
|
1206
|
+
\`, Xt = async () => Ht, gt = /* @__PURE__ */ new Map([
|
|
1203
1207
|
["IReferenceRange", "r"],
|
|
1204
1208
|
["IRange", "l"]
|
|
1205
|
-
]),
|
|
1209
|
+
]), bt = /* @__PURE__ */ new Map([
|
|
1206
1210
|
["IWorkbook", "workbook"],
|
|
1207
1211
|
["ISheet", "sheet"],
|
|
1208
1212
|
["ICellRanges", "ranges"],
|
|
1209
1213
|
["ICellRange", "range"],
|
|
1210
1214
|
["IFormulaContext", "context"]
|
|
1211
|
-
]),
|
|
1215
|
+
]), Oe = (e, t) => {
|
|
1212
1216
|
Array.from(t.keys()).forEach((r) => {
|
|
1213
1217
|
const o = t.get(r);
|
|
1214
1218
|
t.set(\`\${e}.\${r}\`, o);
|
|
@@ -1220,10 +1224,10 @@ interface Promise<T> {
|
|
|
1220
1224
|
["JSON", "JSON"]
|
|
1221
1225
|
]), Qt = /* @__PURE__ */ new Map([
|
|
1222
1226
|
// Repeating
|
|
1223
|
-
]),
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
+
]), Ie = "SheetXL";
|
|
1228
|
+
Oe(Ie, gt);
|
|
1229
|
+
Oe(Ie, bt);
|
|
1230
|
+
Oe(Ie, Qt);
|
|
1227
1231
|
const en = /* @__PURE__ */ new Map([
|
|
1228
1232
|
["Promise", () => ({ async: !0 })],
|
|
1229
1233
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
@@ -1253,7 +1257,7 @@ async function nn(e) {
|
|
|
1253
1257
|
//import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
|
|
1254
1258
|
tn()
|
|
1255
1259
|
], o = await Promise.all(r), a = o[0], i = o[1];
|
|
1256
|
-
let l = "",
|
|
1260
|
+
let l = "", c = null;
|
|
1257
1261
|
const p = [], w = {
|
|
1258
1262
|
allowJs: !0,
|
|
1259
1263
|
declaration: !1,
|
|
@@ -1290,7 +1294,7 @@ async function nn(e) {
|
|
|
1290
1294
|
\`
|
|
1291
1295
|
}, U = i.createProgram([f, x], w, D), I = U.getTypeChecker(), J = U.getSourceFile(f), E = U.emit();
|
|
1292
1296
|
E.diagnostics.length > 0 && console.warn(E.diagnostics), l = A[\`\${g}.js\`];
|
|
1293
|
-
const
|
|
1297
|
+
const u = (s, m, L, P) => {
|
|
1294
1298
|
if (!s) {
|
|
1295
1299
|
$(s, new Error(\`Type is not defined for '\${m?.name ?? "return"}'.\`));
|
|
1296
1300
|
return;
|
|
@@ -1317,15 +1321,15 @@ async function nn(e) {
|
|
|
1317
1321
|
$(s, new Error(\`'Array' must be typed: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1318
1322
|
return;
|
|
1319
1323
|
}
|
|
1320
|
-
m.arrayDepth = (m.arrayDepth ?? 0) + 1,
|
|
1324
|
+
m.arrayDepth = (m.arrayDepth ?? 0) + 1, u(M, m, L, P);
|
|
1321
1325
|
} else if (s.kind !== i.SyntaxKind.TupleType) {
|
|
1322
1326
|
if (s.kind === i.SyntaxKind.TypeReference) {
|
|
1323
|
-
const M = s.typeName?.getText?.() ?? null, K =
|
|
1327
|
+
const M = s.typeName?.getText?.() ?? null, K = gt.get(M);
|
|
1324
1328
|
let V = !1;
|
|
1325
1329
|
K && (m.range = K, V = !0);
|
|
1326
|
-
const
|
|
1327
|
-
if (
|
|
1328
|
-
const R =
|
|
1330
|
+
const q = Zt.get(M);
|
|
1331
|
+
if (q && (m.scalar = q), q !== void 0 && (V = !0), P) {
|
|
1332
|
+
const R = bt.get(M);
|
|
1329
1333
|
if (R)
|
|
1330
1334
|
return R;
|
|
1331
1335
|
} else {
|
|
@@ -1350,7 +1354,7 @@ async function nn(e) {
|
|
|
1350
1354
|
$(s, new Error(\`'\${M}' must be typed with exactly 1 type: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1351
1355
|
return;
|
|
1352
1356
|
}
|
|
1353
|
-
|
|
1357
|
+
u(H[0], m, L, P);
|
|
1354
1358
|
}
|
|
1355
1359
|
}
|
|
1356
1360
|
}
|
|
@@ -1370,14 +1374,14 @@ async function nn(e) {
|
|
|
1370
1374
|
R = R.replace(/[\\r\\n]+/g, "\\\\n").trim(), L.summary = R;
|
|
1371
1375
|
}
|
|
1372
1376
|
const V = {};
|
|
1373
|
-
|
|
1374
|
-
const
|
|
1375
|
-
fe(s) && (
|
|
1377
|
+
u(s.type, V, m, !1), m.returnType = V;
|
|
1378
|
+
const q = {};
|
|
1379
|
+
fe(s) && (q.default = !0, c = P), Object.keys(q).length > 0 && (m.behavior = q), m.parameters = [];
|
|
1376
1380
|
const H = /* @__PURE__ */ new Map();
|
|
1377
1381
|
for (let R = 0; R < s.parameters.length; R++) {
|
|
1378
1382
|
const b = s.parameters[R], N = {};
|
|
1379
1383
|
N.name = b.name?.getText();
|
|
1380
|
-
const X =
|
|
1384
|
+
const X = u(b.type, N, m, !0);
|
|
1381
1385
|
if (X) {
|
|
1382
1386
|
if (m.parameters.length !== 0) {
|
|
1383
1387
|
const F = s?.parent?.name?.getText();
|
|
@@ -1398,8 +1402,8 @@ async function nn(e) {
|
|
|
1398
1402
|
b.dotDotDotToken && (N.rest = !0), m.parameters.push(N);
|
|
1399
1403
|
const C = { description: "" };
|
|
1400
1404
|
L.parameters[N.name] = C;
|
|
1401
|
-
const
|
|
1402
|
-
|
|
1405
|
+
const G = I.getSymbolAtLocation(b.name).getDocumentationComment(I);
|
|
1406
|
+
G && G.length > 0 && G[0].text && (C.description = G[0].text), v !== void 0 && (C.defaultValue = v), H.set(N.name, N);
|
|
1403
1407
|
}
|
|
1404
1408
|
if (s.jsDoc && s.jsDoc.length > 0) {
|
|
1405
1409
|
const R = s.jsDoc;
|
|
@@ -1412,14 +1416,14 @@ async function nn(e) {
|
|
|
1412
1416
|
if (!v) continue;
|
|
1413
1417
|
v = v.toLowerCase();
|
|
1414
1418
|
let C = z.comment;
|
|
1415
|
-
const
|
|
1416
|
-
if (!(typeof C != "string" && !
|
|
1419
|
+
const G = v === "hidden";
|
|
1420
|
+
if (!(typeof C != "string" && !G) && (typeof C == "string" && (C = C.replace(/[\\r\\n]+/g, "\\\\n").trim()), !(!G && C && (C = C.split(/\\\\n/)[0], !C || C.length === 0)))) {
|
|
1417
1421
|
if (C && typeof C == "string") {
|
|
1418
1422
|
const O = /\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g;
|
|
1419
1423
|
let F, Z = C, te = [];
|
|
1420
1424
|
for (; (F = O.exec(C)) !== null; ) {
|
|
1421
|
-
const [pe, he,
|
|
1422
|
-
|
|
1425
|
+
const [pe, he, St, Re] = F, xt = [St.trim()];
|
|
1426
|
+
Re && xt.push(Re.trim());
|
|
1423
1427
|
}
|
|
1424
1428
|
C = Z, te.length > 0 && v === "see" && (L.links || (L.links = []), L.links.push(...te));
|
|
1425
1429
|
}
|
|
@@ -1474,22 +1478,22 @@ async function nn(e) {
|
|
|
1474
1478
|
throw console.warn(B), new Error("There were compilation errors.", { cause: B });
|
|
1475
1479
|
if (p.length === 0)
|
|
1476
1480
|
throw new Error("No exported functions.");
|
|
1477
|
-
const
|
|
1481
|
+
const Et = \`\${$t.uuidV4()}-script\`;
|
|
1478
1482
|
try {
|
|
1479
1483
|
!n && B.length === 0 && (l = await Yt(i, l, g));
|
|
1480
1484
|
} catch {
|
|
1481
1485
|
console.warn("Error bundling script");
|
|
1482
1486
|
}
|
|
1483
|
-
const
|
|
1487
|
+
const Ne = {
|
|
1484
1488
|
functions: p,
|
|
1485
|
-
commitId:
|
|
1489
|
+
commitId: Et,
|
|
1486
1490
|
source: t,
|
|
1487
1491
|
name: "Script",
|
|
1488
1492
|
language: "typescript",
|
|
1489
1493
|
// default
|
|
1490
1494
|
compiled: l
|
|
1491
1495
|
};
|
|
1492
|
-
return
|
|
1496
|
+
return c && (Ne.autoRun = c), Ne;
|
|
1493
1497
|
}
|
|
1494
1498
|
self.addEventListener("message", async (e) => {
|
|
1495
1499
|
const { id: t, params: n } = e.data;
|
|
@@ -1574,7 +1578,7 @@ async function p() {
|
|
|
1574
1578
|
return await l();
|
|
1575
1579
|
}
|
|
1576
1580
|
const l = async () => {
|
|
1577
|
-
const { compileModule: e } = await import("./
|
|
1581
|
+
const { compileModule: e } = await import("./C8anKI55xb9J8r8A.mjs"), n = new u((t) => e(t));
|
|
1578
1582
|
return await n.start(), n;
|
|
1579
1583
|
};
|
|
1580
1584
|
export {
|