@sheetxl/studio-vanilla 0.7.2 → 0.7.4
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/{tAQ8ynkWge4wOgYz.cjs → 8ORcPDrnyLtyRBC5.cjs} +4 -4
- package/browser/cjs/{WoKc4K_4RIU3ciM4.cjs → 8gwQqoquag37n7A4.cjs} +1 -1
- package/browser/cjs/{0xZaW8IXfmN9CdOY.cjs → 9YNUOzk1ChRHaQ0A.cjs} +1 -1
- package/browser/cjs/{qaCoVlKEYbGk9Tqd.cjs → A4yAgzK3Yi1hFoyF.cjs} +1 -1
- package/browser/cjs/{B74CYOTROrzYrxzb.cjs → B0Z0aRvslQ-luY7V.cjs} +2 -2
- package/browser/cjs/{BaCL4SywKL_MRWB3.cjs → B13vFaAy_2-LVET-.cjs} +1 -1
- package/browser/cjs/{D6JCF-VcFYHjJwSo.cjs → B2LQcZ92fWIJv2Gz.cjs} +1 -1
- package/browser/cjs/{EU7_mHgKH5vka7H8.cjs → B3C8eQFrLaL-fvH-.cjs} +23 -23
- package/browser/cjs/{k5QxXqB6_DGHKlbu.cjs → B47DWuTo-MqQ3jZz.cjs} +1 -1
- package/browser/cjs/{tiLC1pjWjzfWUm8X.cjs → B4foheVEUqSBFEkt.cjs} +1 -1
- package/browser/cjs/{PlCnIIYOcSprBGC5.cjs → B7MW5qdFHlXONQ6l.cjs} +2 -2
- package/browser/cjs/{FJ3mIQn7VY9GY22I.cjs → BNPrWaUmde-C-8Vx.cjs} +1 -1
- package/browser/cjs/{B1Z1xpkromy-czPe.cjs → BeOgEB1ihIJx02Af.cjs} +1 -1
- package/browser/cjs/{ClSF7YFaazHqAjnr.cjs → BgSDdeTv_xCIgBGD.cjs} +3 -3
- package/browser/cjs/{CSi4QGULUCdxSEbO.cjs → BlswEA5cHtxUqfLX.cjs} +2 -2
- package/browser/cjs/{TjH9kpedZhA38omO.cjs → BprNr_E9PJXMBdn3.cjs} +1 -1
- package/browser/cjs/{0JlIcUEueXhYyWNb.cjs → BrKvmHqdJp6qNOFB.cjs} +1 -1
- package/browser/cjs/{Bd2qyoxjnwrGhidp.cjs → ByA09xUI5G9YbxMz.cjs} +1 -1
- package/browser/cjs/{eG5JEAxSYONX-z9E.cjs → Bzqv14cPgkvKImRH.cjs} +1 -1
- package/browser/cjs/{lPSISi0qOjKDaqKy.cjs → C23bIG7E2r_Q0RAj.cjs} +3 -3
- package/browser/cjs/{DpZr7a_2HXVTydVH.cjs → C7GKCVS4tFPkLsu7.cjs} +1 -1
- package/browser/cjs/{BhifORO0sSYZAGwS.cjs → CAiDHxx6Gd0WmW60.cjs} +2 -2
- package/browser/cjs/{B5EGVpRROPipVKYS.cjs → CBNecyEra54crLep.cjs} +2 -2
- package/browser/cjs/{CfsbrfL6VcFwp3yu.cjs → CTT_jzhLio55PSMa.cjs} +4 -4
- package/browser/cjs/{Xg5oSKbplTfPt9TS.cjs → CWOIza8vwfNX5KIr.cjs} +1 -1
- package/browser/cjs/{XGegLQpr6FukJd8l.cjs → Cd4lc7sbp3kKfIbA.cjs} +2 -2
- package/browser/cjs/Cfr9LxunC2fgJtM2.cjs +11 -0
- package/browser/cjs/{BpHhfGxWIyW3QtUV.cjs → ChIk2dRWK_RpFnZl.cjs} +3 -3
- package/browser/cjs/{Bw1q6Sd1c2hMtOOR.cjs → CwsdwMi5Xs8b4Yhg.cjs} +1 -1
- package/browser/cjs/{C0RmPXQ-rfYPoI8u.cjs → D0ApB39VH979ZUCx.cjs} +1 -1
- package/browser/cjs/{CXeKLqjkMQXO9KhH.cjs → D3tIyPRHWxjXZjiu.cjs} +383 -383
- package/browser/cjs/{CIfWv7rMa38q6f0L.cjs → D4llH4xbqGzmuVYe.cjs} +1 -1
- package/browser/cjs/{x1FSXsaFxE99cok0.cjs → D6Gix9vU3zy6x0wx.cjs} +1 -1
- package/browser/cjs/{CU-2PUL6JBlRtpQz.cjs → D6RF346wXtLKkoJ-.cjs} +2 -2
- package/browser/cjs/{BGvpDHFhSuRHs5RO.cjs → D6pv0GOQycMcOyhu.cjs} +1 -1
- package/browser/cjs/{4iZvavwvmn0rhTxn.cjs → D80cB8tOFfQNF4oS.cjs} +2 -2
- package/browser/cjs/{RH9GrgAyL3AAYwDp.cjs → DAJLF0E4eUH-LX9t.cjs} +3 -3
- package/browser/cjs/{DYTBVHRt3b8uHzM4.cjs → DEzEcMfZx0I-QgJj.cjs} +1 -1
- package/browser/cjs/{BBMg-qJB22lUyI41.cjs → DFAQXO44wRvSlwCZ.cjs} +1 -1
- package/browser/cjs/DH59epfNQumKG6UO.cjs +6 -0
- package/browser/cjs/{BBtYU1Q1kNbnpDcm.cjs → DHdO6HcI4UB6Ks3h.cjs} +2 -2
- package/browser/cjs/{BGIyPGNEf8Lomntm.cjs → DQrZ7_9M-BH9Zqhw.cjs} +2 -2
- package/browser/cjs/{DlGLLcGeYLhHqRio.cjs → DVATnEUJxTQMsLOO.cjs} +1 -1
- package/browser/cjs/{CZwxHnjJ9xcBwYhh.cjs → De082R33Q24Czdd2.cjs} +2 -2
- package/browser/cjs/{D-2WwHIUUqSp3Jbe.cjs → Dg0Zl23k4ZwHK5Nt.cjs} +2 -2
- package/browser/cjs/{DIgRd--9FST0IdEP.cjs → DnirKDgaxys3R_a-.cjs} +1 -1
- package/browser/cjs/{Bg1_-pUM6oUckREE.cjs → DsWfniauN1Pu2Go3.cjs} +1 -1
- package/browser/cjs/{BSt1tONeiSRPAxTq.cjs → JZZCpLEpsC2LCYHH.cjs} +2 -2
- package/browser/cjs/{C6ZZ6T47QGouz4MT.cjs → KuiK9SKQWvWBM3--.cjs} +1 -1
- package/browser/cjs/MD9O1VNhhdH5RoiA.cjs +330 -0
- package/browser/cjs/{DqdVPoFTOkXqFYex.cjs → Xzq847s6zAFUFWcq.cjs} +1 -1
- package/browser/cjs/{cwuDUx-2alalzUBH.cjs → dGtOlClU3aLzqX9G.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{B0Mu1GGQ-3S5CU7d.cjs → ipGL9YCfyze4LbQj.cjs} +1 -1
- package/browser/cjs/oGzYb3Ra2l_2M4Fe.cjs +6 -0
- package/browser/cjs/{Do19-WLGnRk0_G0n.cjs → pI4yZSOoBjkftfKX.cjs} +1 -1
- package/browser/cjs/{BCnTUuUuevu6nEnz.cjs → q1y9tq62y47f7mxy.cjs} +1 -1
- package/browser/cjs/{CvqGbL6eEY3I8Ngz.cjs → v9zKXidk5AvKGkz7.cjs} +1 -1
- package/browser/esm/{CTsw0yf5bt7k3qWG.mjs → 0egw9xufQUK5XQZ5.mjs} +1 -1
- package/browser/esm/{CMkLnAVjJHFvCzoy.mjs → 6dkX2k_H0PA_iz5X.mjs} +1 -1
- package/browser/esm/{DP8s7iNkbbF7Eyzy.mjs → B3ECMs0QjPnXbJEw.mjs} +8 -8
- package/browser/esm/{B3XZbvaXV3ApK7Hj.mjs → B4U-HbDDW978wKeB.mjs} +3 -3
- package/browser/esm/{BBy8UbGSHIyzdpFD.mjs → B7wG8K-M9ldv3InT.mjs} +1 -1
- package/browser/esm/{BmNiBXRAfKWNXpUU.mjs → B9wr_AwSb0JtPoMv.mjs} +1 -1
- package/{cdn/assets/BWIBOomtdE2_KipC.js → browser/esm/BDSX8FAyHcAmsE-T.mjs} +1 -1
- package/browser/esm/{BEUfHNnN047_s26K.mjs → BTM0pYbZvfLqBj6Z.mjs} +2 -2
- package/{cdn/assets/CzbSPQUDABjZq2LB.js → browser/esm/BVvwFIl1xvigNZTj.mjs} +1 -1
- package/browser/esm/{BhuEAPol3Fq5l-Ed.mjs → BfH0870g7ogWyWTa.mjs} +1 -1
- package/browser/esm/{OlERfm9IV34QhIcB.mjs → Bgcy7JI6AzSoovcw.mjs} +1 -1
- package/browser/esm/{DOO-RkJmD1NR6_zg.mjs → Bioh6T6jynIt2aBf.mjs} +6 -6
- package/{cdn/assets/BvJC5tqT7q6QPgCu.js → browser/esm/BkjhtLKdZkaleH6j.mjs} +1 -1
- package/browser/esm/{BOd0fYlpKE4x288Z.mjs → BrGzSkrQVV-CCVui.mjs} +1 -1
- package/browser/esm/{DEHBBNT-niL-b_Gk.mjs → BsryTthQuZrS1w0h.mjs} +3 -3
- package/browser/esm/{Bg9pBWj8BDzNBARl.mjs → BzCCXyLxR1Tx_PQ6.mjs} +3 -3
- package/browser/esm/{DQZdcvjVesxbx4Iz.mjs → BzXLeceeaODxxlsN.mjs} +3 -3
- package/browser/esm/{BC5GJS88mZlCHjBC.mjs → C1TJTYVoSUvCsI72.mjs} +2 -2
- package/{cdn/assets/B6Mkrs8lfI41-MPU.js → browser/esm/C2sR98LOxBBkEECx.mjs} +1 -1
- package/browser/esm/{Cj2l0rI_2jrxoxK6.mjs → C3ZYwFCm4zV0PV7L.mjs} +1 -1
- package/browser/esm/{DvMvZWbJczQmEH5x.mjs → C4aAJQZlcVwK7Bv7.mjs} +1 -1
- package/browser/esm/{FdbEVcOmGb_TmHq-.mjs → C4dAWyoYzg5AFxSE.mjs} +13 -13
- package/browser/esm/{aRXG05KxC17tAM80.mjs → CFey64nL6K_JDHyo.mjs} +1 -1
- package/browser/esm/{CxX8qCo5JpvXo2TY.mjs → CHOlVNulci003tpR.mjs} +4 -4
- package/browser/esm/{CUr9ZV_ouv-d4YYB.mjs → CKOpVcqPaB2s4dTb.mjs} +1 -1
- package/browser/esm/{Dy8tHZ6dLxW5HIp0.mjs → CR9jsRCQsHJO01J4.mjs} +14 -12
- package/browser/esm/{Ch7fEnJjTfELcHep.mjs → CSU3ycILp620z_i8.mjs} +2 -2
- package/browser/esm/CUq15BKQ0G25o03H.mjs +48 -0
- package/{cdn/assets/CYCnpu04mAcFdf_Y.js → browser/esm/Cb1GBW9E5GfRvhuS.mjs} +1 -1
- package/browser/esm/{CX2k7Kcrs0NuRmVS.mjs → CbiCECqtZzDk6jeR.mjs} +2 -2
- package/browser/esm/{D8OjAcM-gsYs2yUT.mjs → Ce3pCanMx2TnvT0I.mjs} +16 -16
- package/browser/esm/{B5uRTCAV-kZQhqT-.mjs → CfEvt84zrQGwFpt2.mjs} +1 -1
- package/browser/esm/{CX6oHKRuMxCtELBt.mjs → ChrPZQnuQU-qVVa1.mjs} +25 -25
- package/browser/esm/{bqYPGVfNa1RL62BS.mjs → CqxLzaP5z64d6Lx4.mjs} +1 -1
- package/browser/esm/{BGZHht2E8MyhXZkj.mjs → CrqJMWWEjzFZ-_Pk.mjs} +1 -1
- package/browser/esm/{Nk3XfWGh2n78qlN9.mjs → CzgyRT7Dh3AVKcWl.mjs} +1 -1
- package/{cdn/assets/CnGlSn8YFgEr-PNs.js → browser/esm/DKrP22W3r6dc2ll8.mjs} +1 -1
- package/browser/esm/{CxJUNyIFNYQB4t5O.mjs → DRVrzDz7nVU_faHO.mjs} +383 -383
- package/{cdn/assets/WBfvZdqvuzGXYHn5.js → browser/esm/DYqsn4bTq8tt9z2d.mjs} +1 -1
- package/browser/esm/{Dka3m7ki7rwK4dJr.mjs → DhT-2pf586yDvyqZ.mjs} +1 -1
- package/browser/esm/{Ck-NL9kdky7yymfq.mjs → DjtYK-s8g6tP0TRw.mjs} +2 -2
- package/browser/esm/{DVMjIpRMHwBoLb17.mjs → DswWgS_zGnCjt804.mjs} +5 -5
- package/browser/esm/{eZNYVnXio8MjaUQ3.mjs → DvaoVWL-VdS7k_i3.mjs} +2 -2
- package/{cdn/assets/CEKVD84oEReoCt7z.js → browser/esm/J_m4I2bQAeYSJPWS.mjs} +1 -1
- package/browser/esm/{ChyLU-qambE5Cer8.mjs → JgQgURqWEwvTv_wi.mjs} +1 -1
- package/{cdn/assets/DIfZkG6g0X7_frZk.js → browser/esm/NohZsi_dnB1kc2oI.mjs} +1 -1
- package/browser/esm/{C-959c3hdMZBTFub.mjs → P5B5SOdOUaZr99nj.mjs} +5 -5
- package/{cdn/assets/CplNLHZTwRjhkgtZ.js → browser/esm/UQSXr-cpRWqp8Ktj.mjs} +2 -2
- package/{cdn/assets/D3IGZGUCTa6yCgZz.js → browser/esm/VzlXiTXfqwuLrkgg.mjs} +1 -1
- package/browser/esm/{CMPSu64y8soBjhZi.mjs → YFMiozbFWZjo74Td.mjs} +1 -1
- package/browser/esm/{BT_-L-P67i6wQIlA.mjs → Z1fSZhtHNjC6OoN6.mjs} +15091 -14998
- package/{cdn/assets/ByIejS8Hi0JXEWOv.js → browser/esm/_N4vH5kWapbfarDc.mjs} +1 -1
- package/browser/esm/ee5ZMqTpvvsprimB.mjs +1480 -0
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CIFlNJX1V1NqOSL4.mjs → ji2x5yzvwhn2JiFp.mjs} +1 -1
- package/browser/esm/{ClsM8HBeXD4VTfzr.mjs → m7fz1VY0WrHhVE1u.mjs} +1 -1
- package/browser/esm/{INsil9MokeRZA1Yk.mjs → uYFnTWRHS-M71aW3.mjs} +48 -48
- package/{cdn/assets/DjV-m93GXkWlTn7n.js → browser/esm/wrn_BUWuBI2ou-lE.mjs} +1 -1
- package/cdn/assets/{CTsw0yf5bt7k3qWG.js → 0egw9xufQUK5XQZ5.js} +1 -1
- package/cdn/assets/{CMkLnAVjJHFvCzoy.js → 6dkX2k_H0PA_iz5X.js} +1 -1
- package/cdn/assets/{iT6CIjmMLScvb29H.js → B4MTgKmMZcXoDlYG.js} +2 -2
- package/cdn/assets/{BBy8UbGSHIyzdpFD.js → B7wG8K-M9ldv3InT.js} +1 -1
- package/cdn/assets/{BmNiBXRAfKWNXpUU.js → B9wr_AwSb0JtPoMv.js} +1 -1
- package/{browser/esm/BWIBOomtdE2_KipC.mjs → cdn/assets/BDSX8FAyHcAmsE-T.js} +1 -1
- package/cdn/assets/{BBkojPuL0y3TpSwy.js → BFfLoUaapPcM_eb0.js} +10 -10
- package/cdn/assets/{DlMXEBT9RML19eig.js → BHyn4CasWPQ92Eud.js} +26 -26
- package/{browser/esm/CzbSPQUDABjZq2LB.mjs → cdn/assets/BVvwFIl1xvigNZTj.js} +1 -1
- package/cdn/assets/{CuvMveChV8ylcO8-.js → BZ1FXLdV7kLoj8S2.js} +4 -4
- package/cdn/assets/{jmUU32lmlRPz8MPG.js → BZpRwfavZD9rO_v8.js} +383 -383
- package/{browser/esm/DAMIsTTJipXpdZXr.mjs → cdn/assets/BeENppGCoF_AwA6g.js} +2 -2
- package/cdn/assets/{BhuEAPol3Fq5l-Ed.js → BfH0870g7ogWyWTa.js} +1 -1
- package/cdn/assets/{OlERfm9IV34QhIcB.js → Bgcy7JI6AzSoovcw.js} +1 -1
- package/{browser/esm/BvJC5tqT7q6QPgCu.mjs → cdn/assets/BkjhtLKdZkaleH6j.js} +1 -1
- package/cdn/assets/{B-NY3UwkHp7hcB2a.js → Bp1BVz04Xy4W95PB.js} +8 -8
- package/cdn/assets/{CFi1_-HF6o0f_bgN.js → BqbxC6sS2OoaM51Y.js} +2 -2
- package/cdn/assets/{BOd0fYlpKE4x288Z.js → BrGzSkrQVV-CCVui.js} +1 -1
- package/cdn/assets/{DCUHKQhPbhG9Ko0f.js → Bv7E-FgORAWOkyiV.js} +2 -2
- package/{browser/esm/B6Mkrs8lfI41-MPU.mjs → cdn/assets/C2sR98LOxBBkEECx.js} +1 -1
- package/cdn/assets/{Cj2l0rI_2jrxoxK6.js → C3ZYwFCm4zV0PV7L.js} +1 -1
- package/cdn/assets/{DvMvZWbJczQmEH5x.js → C4aAJQZlcVwK7Bv7.js} +1 -1
- package/cdn/assets/{aRXG05KxC17tAM80.js → CFey64nL6K_JDHyo.js} +1 -1
- package/cdn/assets/{CUr9ZV_ouv-d4YYB.js → CKOpVcqPaB2s4dTb.js} +1 -1
- package/cdn/assets/{Bi0XAZnOKm1BHMDJ.js → CR-xAI2miMYh-gdy.js} +8 -8
- package/cdn/assets/{xZ-_PIgqrJR6Aoid.js → CaHwS8usPT5gIFuY.js} +14 -14
- package/{browser/esm/CYCnpu04mAcFdf_Y.mjs → cdn/assets/Cb1GBW9E5GfRvhuS.js} +1 -1
- package/cdn/assets/{DtQSYkSfDiYViQ1O.js → CdoIc8OarIB8C5y3.js} +18 -18
- package/cdn/assets/{B5uRTCAV-kZQhqT-.js → CfEvt84zrQGwFpt2.js} +1 -1
- package/cdn/assets/{BGZHht2E8MyhXZkj.js → CrqJMWWEjzFZ-_Pk.js} +1 -1
- package/cdn/assets/{BsXEhnx6Qr_4QdIP.js → CvTBNZMoY5-DwtAb.js} +2 -2
- package/cdn/assets/CxFPsh5ojrvYoLqP.js +1480 -0
- package/cdn/assets/{Nk3XfWGh2n78qlN9.js → CzgyRT7Dh3AVKcWl.js} +1 -1
- package/cdn/assets/{DIEyT2RH6embCVJO.js → D4aEzWRsHbRiDZQf.js} +15040 -14947
- package/cdn/assets/{DQ50XfTma-DdAwis.js → D6gMyvRPXwYEpaiW.js} +1 -1
- package/cdn/assets/{Dow86PcQmdzy6Gnj.js → DAMni_kLlITX8qAW.js} +50 -50
- package/cdn/assets/{BCr6-n9xQFLepSiu.js → DK5o4bmDWZoxlyie.js} +3 -3
- package/{browser/esm/CnGlSn8YFgEr-PNs.mjs → cdn/assets/DKrP22W3r6dc2ll8.js} +1 -1
- package/cdn/assets/{Dte0EXhwPe4nCvzs.js → DMOM_dk7px3Id2fD.js} +16 -14
- package/cdn/assets/{C-HpMtCGF2w8z3PH.js → DTHfoEyAv88YJtid.js} +2 -2
- package/cdn/assets/{CmMyE3YjiPCRzfG3.js → DWxb-keKnWDZ32ov.js} +2 -2
- package/{browser/esm/WBfvZdqvuzGXYHn5.mjs → cdn/assets/DYqsn4bTq8tt9z2d.js} +1 -1
- package/cdn/assets/{C27-HwlEm9v_nrCF.js → DZSQDf-SlYIAnwqI.js} +2 -2
- package/cdn/assets/{Dka3m7ki7rwK4dJr.js → DhT-2pf586yDvyqZ.js} +1 -1
- package/cdn/assets/{DpnxBLL2_2DUDk1n.js → DuVOZ5CVHDzuF-Wf.js} +5 -5
- package/cdn/assets/{srvA2b1zeAqE3hcv.js → IQp8evg14s1_pMGI.js} +3 -3
- package/{browser/esm/CEKVD84oEReoCt7z.mjs → cdn/assets/J_m4I2bQAeYSJPWS.js} +1 -1
- package/cdn/assets/{ChyLU-qambE5Cer8.js → JgQgURqWEwvTv_wi.js} +1 -1
- package/cdn/assets/{D0HYcOC6ppNt4ce3.js → McZLFG7PefCrtXxD.js} +1 -1
- package/{browser/esm/DIfZkG6g0X7_frZk.mjs → cdn/assets/NohZsi_dnB1kc2oI.js} +1 -1
- package/cdn/assets/{BN3YW5jMoCIzAxFC.js → TAuxEP6K9MOe8hvY.js} +3 -3
- package/cdn/assets/{BzsKavCtfHdYMELA.js → UGRaW68kY1lQin4c.js} +3 -3
- package/{browser/esm/D3IGZGUCTa6yCgZz.mjs → cdn/assets/VzlXiTXfqwuLrkgg.js} +1 -1
- package/cdn/assets/{CMPSu64y8soBjhZi.js → YFMiozbFWZjo74Td.js} +1 -1
- package/{browser/esm/ByIejS8Hi0JXEWOv.mjs → cdn/assets/_N4vH5kWapbfarDc.js} +1 -1
- package/cdn/assets/ddSl0Ga-rXVB9Yci.js +22 -0
- package/cdn/assets/gRJ4OcAtWEBEGLJD.js +48 -0
- package/cdn/assets/{BDo8bFO59SyelftP.js → jeiAiNavXwDjx5bH.js} +17 -17
- package/cdn/assets/{CIFlNJX1V1NqOSL4.js → ji2x5yzvwhn2JiFp.js} +1 -1
- package/cdn/assets/{ClsM8HBeXD4VTfzr.js → m7fz1VY0WrHhVE1u.js} +1 -1
- package/cdn/assets/{uAVHmmDWOwppE6xE.js → mgzh0Oj545G9VFmY.js} +9 -9
- package/cdn/assets/{D4-e75z6d_DXa5pJ.js → pv07rmyN2zy5KZrb.js} +2 -2
- package/cdn/assets/{DSU1d5GvO21PLhGa.js → tbqH71TvrNeRjwAy.js} +3 -3
- package/{browser/esm/DjV-m93GXkWlTn7n.mjs → cdn/assets/wrn_BUWuBI2ou-lE.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/BHYQEIDiXdpDprGm.cjs +0 -11
- package/browser/cjs/BiBsgEVyhyvZhFwd.cjs +0 -6
- package/browser/cjs/D-llMen45swGBAKB.cjs +0 -6
- package/browser/cjs/kEkuRcJueaS4LnSp.cjs +0 -330
- package/browser/esm/BVCbjrRaSItDIulh.mjs +0 -46
- package/browser/esm/CqnQiMz-oVs4I6T2.mjs +0 -1467
- package/cdn/assets/B79KMEbZmWkwjtwf.js +0 -22
- package/cdn/assets/Bno4lvuzSHzTGzBR.js +0 -46
- package/cdn/assets/CWJl6FF_2vyPvPWJ.js +0 -1467
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.4
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -40,7 +40,7 @@ var Re, ae, d;
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
e.Known = t;
|
|
43
|
-
class
|
|
43
|
+
class r extends t {
|
|
44
44
|
constructor(c, h) {
|
|
45
45
|
super(e.Code.Parse, e.Label.Parse, c, h);
|
|
46
46
|
}
|
|
@@ -52,8 +52,8 @@ var Re, ae, d;
|
|
|
52
52
|
return { line: c?.line ?? 1, column: c?.column ?? 1, offset: c?.offset ?? 0, length: c?.length ?? 0 };
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
e.Parse =
|
|
56
|
-
class
|
|
55
|
+
e.Parse = r;
|
|
56
|
+
class n extends t {
|
|
57
57
|
constructor(c, h) {
|
|
58
58
|
super(e.Code.Null, e.Label.Null, c, h);
|
|
59
59
|
}
|
|
@@ -61,7 +61,7 @@ var Re, ae, d;
|
|
|
61
61
|
this.code = e.Code.Null;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
e.Null =
|
|
64
|
+
e.Null = n;
|
|
65
65
|
class o extends t {
|
|
66
66
|
constructor(c, h) {
|
|
67
67
|
super(e.Code.Div0, e.Label.Div0, c, h);
|
|
@@ -209,21 +209,21 @@ var Re, ae, d;
|
|
|
209
209
|
})(d || (d = {}));
|
|
210
210
|
const _ = {};
|
|
211
211
|
_[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;
|
|
212
|
-
const
|
|
212
|
+
const rt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), nt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), ke = Object.keys(_);
|
|
213
213
|
for (let e = 0; e < ke.length; e++) {
|
|
214
|
-
const t = ke[e],
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
|
|
214
|
+
const t = ke[e], r = _[t];
|
|
215
|
+
nt.set(d.Label[t], r), ot.set(d.Code[t], r);
|
|
216
|
+
const n = new r();
|
|
217
|
+
rt.set(n.getLabel(), n), Te.set(n.getCode(), n);
|
|
218
218
|
}
|
|
219
219
|
const xt = Te.get(d.Code.Unknown);
|
|
220
220
|
var T;
|
|
221
|
-
(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) =>
|
|
222
|
-
let
|
|
223
|
-
return
|
|
221
|
+
(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, r) => {
|
|
222
|
+
let n;
|
|
223
|
+
return n = typeof e == "string" ? nt.get(e) : ot.get(e), n || (n = T.Unknown), new n(t, r);
|
|
224
224
|
}, T.getBuiltInById = (e) => Te.get(e) || xt;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.4
|
|
227
227
|
*
|
|
228
228
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
229
229
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -233,30 +233,30 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Tt, EmptyRec
|
|
|
233
233
|
const j = { Column: "column", Row: "row" }, _t = Object.freeze({ colIndex: 0, rowIndex: 0 }), Ot = 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, at = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, It = (e, t) => e.rowEnd === t.rowEnd ? t.colEnd - e.colEnd : t.rowEnd - e.rowEnd, Nt = (e, t) => e.colEnd === t.colEnd ? t.rowEnd - e.rowEnd : t.colEnd - e.colEnd, Le = (e, t) => e.colIndex === t.colIndex ? e.rowIndex - t.rowIndex : e.colIndex - t.colIndex, Ae = (e, t) => e.rowIndex === t.rowIndex ? e.colIndex - t.colIndex : e.rowIndex - t.rowIndex, Me = (e, t) => e.rowIndex === t.rowIndex ? t.colIndex - e.colIndex : t.rowIndex - e.rowIndex, je = (e, t) => e.colIndex === t.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex, lt = (e = j.Row, t = !1) => t ? e !== j.Column ? It : Nt : e !== j.Column ? at : it, Pe = (e, t) => e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex, Se = (e, t) => e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd, xe = (e, t) => !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd), Fe = (e, t) => {
|
|
234
234
|
if (e === t) return !0;
|
|
235
235
|
if (!e || !t || e.length !== t.length) return !1;
|
|
236
|
-
for (let
|
|
236
|
+
for (let r = 0; r < e.length; r++) if (!Se(e[r], t[r])) return !1;
|
|
237
237
|
return !0;
|
|
238
|
-
}, me = (e, t,
|
|
238
|
+
}, me = (e, t, r) => {
|
|
239
239
|
if (!e && !t) return null;
|
|
240
|
-
if (!e) return
|
|
241
|
-
if (!t) return
|
|
242
|
-
const
|
|
243
|
-
let l =
|
|
244
|
-
return l ? (l.colStart =
|
|
240
|
+
if (!e) return r ? t : { ...t };
|
|
241
|
+
if (!t) return r ? e : { ...e };
|
|
242
|
+
const n = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), i = Math.max(e.colEnd, t.colEnd), a = Math.max(e.rowEnd, t.rowEnd);
|
|
243
|
+
let l = r;
|
|
244
|
+
return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
|
|
245
245
|
}, De = (e, t) => {
|
|
246
246
|
if (!t || t.length === 0) return e;
|
|
247
|
-
const
|
|
248
|
-
for (let
|
|
249
|
-
const o = t[
|
|
250
|
-
xe(
|
|
247
|
+
const r = { ...e };
|
|
248
|
+
for (let n = 0; n < t.length; n++) {
|
|
249
|
+
const o = t[n];
|
|
250
|
+
xe(r, o) && (r.rowStart = Math.min(r.rowStart, o.rowStart), r.colStart = Math.min(r.colStart, o.colStart), r.rowEnd = Math.max(r.rowEnd, o.rowEnd), r.colEnd = Math.max(r.colEnd, o.colEnd));
|
|
251
251
|
}
|
|
252
|
-
return
|
|
253
|
-
}, Rt = [null, null], kt = (e, t,
|
|
252
|
+
return r;
|
|
253
|
+
}, Rt = [null, null], kt = (e, t, r) => {
|
|
254
254
|
if (e[0].value === e[1].value) return t;
|
|
255
255
|
};
|
|
256
|
-
function Ue(e, t = 2,
|
|
256
|
+
function Ue(e, t = 2, r, n = j.Row, o) {
|
|
257
257
|
let i = [...e];
|
|
258
258
|
if (t <= 0 || e.length <= 1) return i;
|
|
259
|
-
let a =
|
|
259
|
+
let a = n === j.Column, l = 0, u = !1;
|
|
260
260
|
do {
|
|
261
261
|
const p = i.sort(lt(a ? j.Row : j.Column));
|
|
262
262
|
i = [], i.push(p[0]);
|
|
@@ -267,9 +267,9 @@ function Ue(e, t = 2, n, r = j.Row, o) {
|
|
|
267
267
|
let J = !1;
|
|
268
268
|
if (J = a ? f && x === I.rowStart && D === I.rowEnd && A + 1 === I.colStart : f && y === I.colStart && A === I.colEnd && D + 1 === I.rowStart, J) {
|
|
269
269
|
let E = { colStart: y, rowStart: x, colEnd: a ? I.colEnd : A, rowEnd: a ? D : I.rowEnd };
|
|
270
|
-
if (f.value !== void 0 && (E.value = f.value),
|
|
270
|
+
if (f.value !== void 0 && (E.value = f.value), r) {
|
|
271
271
|
const c = o ?? [null, null];
|
|
272
|
-
c[0] = f, c[1] = I, E =
|
|
272
|
+
c[0] = f, c[1] = I, E = r(c, E, n);
|
|
273
273
|
}
|
|
274
274
|
if (E) {
|
|
275
275
|
i[g] = E, u = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
@@ -284,11 +284,11 @@ function Ue(e, t = 2, n, r = j.Row, o) {
|
|
|
284
284
|
}
|
|
285
285
|
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange: Ot, cellToRange: (e, t) => {
|
|
286
286
|
if (!e) return null;
|
|
287
|
-
let
|
|
288
|
-
return
|
|
287
|
+
let r = t;
|
|
288
|
+
return r || (r = { ...e }, delete r.colIndex, delete r.rowIndex), r.colStart = e.colIndex ?? 0, r.rowStart = e.rowIndex ?? 0, r.colEnd = e.colIndex ?? 0, r.rowEnd = e.rowIndex ?? 0, r;
|
|
289
289
|
}, columnFirstCellComparator: Le, columnFirstRangeComparator: it, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? Me : je : e !== j.Column ? Ae : Le, createConflatingRanges: (e, t = !1) => {
|
|
290
|
-
const
|
|
291
|
-
let
|
|
290
|
+
const r = [];
|
|
291
|
+
let n, o, i = Number.MIN_SAFE_INTEGER, a = Number.MIN_SAFE_INTEGER;
|
|
292
292
|
return { append: (l, u, p) => {
|
|
293
293
|
let w = !0;
|
|
294
294
|
const g = p !== void 0;
|
|
@@ -296,44 +296,44 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
|
|
|
296
296
|
const x = e ? e(o, p, t) : o === p ? p : void 0;
|
|
297
297
|
x === void 0 ? w = !1 : p = x;
|
|
298
298
|
}
|
|
299
|
-
if (w && u === a + 1 && l === i) return t ?
|
|
300
|
-
|
|
299
|
+
if (w && u === a + 1 && l === i) return t ? n.rowEnd = u : n.colEnd = u, a = u, void (o = p);
|
|
300
|
+
n && r.push(n);
|
|
301
301
|
const f = t ? l : u, y = t ? u : l;
|
|
302
|
-
|
|
303
|
-
}, done: (l) => (
|
|
304
|
-
}, createRangeComparator: lt, defaultRange: (e, t,
|
|
302
|
+
n = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (n.value = p), i = l, a = u, o = p;
|
|
303
|
+
}, done: (l) => (n && (r.push(n), n = null), l ? Ue(r, 3, l === !0 ? kt : l, t ? j.Column : j.Row, Rt) : r) };
|
|
304
|
+
}, createRangeComparator: lt, defaultRange: (e, t, r) => e ? r ? (r.colStart = e.colStart ?? t.colStart, r.rowStart = e.rowStart ?? t.rowStart, r.colEnd = e.colEnd ?? t.colEnd, r.rowEnd = e.rowEnd ?? t.rowEnd, r) : { colStart: e.colStart ?? t.colStart, rowStart: e.rowStart ?? t.rowStart, colEnd: e.colEnd ?? t.colEnd, rowEnd: e.rowEnd ?? t.rowEnd } : t, extendRangeToIntersectingRanges: De, extendRangeToUnionRanges: (e, t) => {
|
|
305
305
|
if (!t || t.length === 0) return e;
|
|
306
|
-
let
|
|
307
|
-
for (; !Se(
|
|
308
|
-
return
|
|
306
|
+
let r = e, n = null;
|
|
307
|
+
for (; !Se(r, n); ) n = r, r = De(n, t);
|
|
308
|
+
return r;
|
|
309
309
|
}, indexOfCoords: (e, t) => {
|
|
310
|
-
const
|
|
311
|
-
for (let
|
|
310
|
+
const r = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
311
|
+
for (let n = t.length - 1; n >= 0; n--) if (xe(r, t[n])) return n;
|
|
312
312
|
return -1;
|
|
313
|
-
}, intersectRanges: (e, t,
|
|
314
|
-
if (!e) return
|
|
315
|
-
if (!t) return
|
|
313
|
+
}, intersectRanges: (e, t, r) => {
|
|
314
|
+
if (!e) return r ? t : { ...t };
|
|
315
|
+
if (!t) return r ? e : { ...e };
|
|
316
316
|
if (!e && !t || e.rowStart > t.rowEnd || e.rowEnd < t.rowStart || e.colStart > t.colEnd || e.colEnd < t.colStart) return null;
|
|
317
|
-
const
|
|
318
|
-
let l =
|
|
319
|
-
return l ? (l.colStart =
|
|
317
|
+
const n = Math.max(e.colStart, t.colStart), o = Math.max(e.rowStart, t.rowStart), i = Math.min(e.colEnd, t.colEnd), a = Math.min(e.rowEnd, t.rowEnd);
|
|
318
|
+
let l = r;
|
|
319
|
+
return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
|
|
320
320
|
}, isCellWithinRange: (e, t) => {
|
|
321
321
|
if (!e || !t) return !1;
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
324
|
-
const
|
|
325
|
-
return !(
|
|
326
|
-
}, isEqualCells: Pe, isEqualRanges: Se, isEqualRangesArrays: Fe, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Pe(e.cell, t.cell) && Fe(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: xe, 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: Ue, reverseColumnFirstCellComparator: je, reverseRowFirstCellComparator: Me, rowFirstCellComparator: Ae, rowFirstRangeComparator: at, 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,
|
|
322
|
+
const r = e.rowIndex;
|
|
323
|
+
if (r < t.rowStart || r > t.rowEnd) return !1;
|
|
324
|
+
const n = e.colIndex;
|
|
325
|
+
return !(n < t.colStart || n > t.colEnd);
|
|
326
|
+
}, isEqualCells: Pe, isEqualRanges: Se, isEqualRangesArrays: Fe, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Pe(e.cell, t.cell) && Fe(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: xe, 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: Ue, reverseColumnFirstCellComparator: je, reverseRowFirstCellComparator: Me, rowFirstCellComparator: Ae, rowFirstRangeComparator: at, 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, r = -e.colStart, n) => n ? (n.colStart = e.colStart + r, n.rowStart = e.rowStart + t, n.colEnd = e.colEnd + r, n.rowEnd = e.rowEnd + t, n) : { colStart: e.colStart + r, rowStart: e.rowStart + t, colEnd: e.colEnd + r, rowEnd: e.rowEnd + t }, unionRanges: me, unionRangesArrays: (e, t, r) => {
|
|
327
327
|
if (!e || e.length === 0) return null;
|
|
328
328
|
if (e.length === 1 && !t) return e[0];
|
|
329
|
-
let
|
|
330
|
-
for (let o = 1; o < e.length; o++)
|
|
331
|
-
return t && (
|
|
329
|
+
let n = e[0];
|
|
330
|
+
for (let o = 1; o < e.length; o++) n = me(n, e[o], r);
|
|
331
|
+
return t && (n = me(n, t, r)), n;
|
|
332
332
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
333
333
|
function Lt(e) {
|
|
334
334
|
const t = Object.prototype.toString.call(e);
|
|
335
|
-
return t === "[object RegExp]" || t === "[object Date]" || (function(
|
|
336
|
-
return
|
|
335
|
+
return t === "[object RegExp]" || t === "[object Date]" || (function(r) {
|
|
336
|
+
return r.$$typeof === At;
|
|
337
337
|
})(e);
|
|
338
338
|
}
|
|
339
339
|
const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
@@ -342,19 +342,19 @@ function Mt(e) {
|
|
|
342
342
|
return !!t && typeof t == "object";
|
|
343
343
|
})(e) && !Lt(e);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Y((
|
|
347
|
-
var
|
|
345
|
+
function ne(e, t) {
|
|
346
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y((r = e, Array.isArray(r) ? [] : {}), e, t) : e;
|
|
347
|
+
var r;
|
|
348
348
|
}
|
|
349
|
-
function jt(e, t,
|
|
350
|
-
return e.concat(t).map(function(
|
|
351
|
-
return
|
|
349
|
+
function jt(e, t, r) {
|
|
350
|
+
return e.concat(t).map(function(n) {
|
|
351
|
+
return ne(n, r);
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
function Be(e) {
|
|
355
355
|
return Object.keys(e).concat((function(t) {
|
|
356
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(
|
|
357
|
-
return Object.propertyIsEnumerable.call(t,
|
|
356
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
|
|
357
|
+
return Object.propertyIsEnumerable.call(t, r);
|
|
358
358
|
}) : [];
|
|
359
359
|
})(e));
|
|
360
360
|
}
|
|
@@ -365,45 +365,45 @@ function $e(e, t) {
|
|
|
365
365
|
return !1;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function Pt(e, t,
|
|
369
|
-
const
|
|
370
|
-
return
|
|
371
|
-
|
|
368
|
+
function Pt(e, t, r) {
|
|
369
|
+
const n = {};
|
|
370
|
+
return r.isMergeableObject(e) && Be(e).forEach(function(o) {
|
|
371
|
+
n[o] = ne(e[o], r);
|
|
372
372
|
}), Be(t).forEach(function(o) {
|
|
373
373
|
(function(i, a) {
|
|
374
374
|
return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
|
|
375
|
-
})(e, o) || ($e(e, o) &&
|
|
375
|
+
})(e, o) || ($e(e, o) && r.isMergeableObject(t[o]) ? n[o] = (function(i, a) {
|
|
376
376
|
if (!a.customMerge) return Y;
|
|
377
377
|
const l = a.customMerge(i);
|
|
378
378
|
return typeof l == "function" ? l : Y;
|
|
379
|
-
})(o,
|
|
380
|
-
}),
|
|
379
|
+
})(o, r)(e[o], t[o], r) : n[o] = ne(t[o], r));
|
|
380
|
+
}), n;
|
|
381
381
|
}
|
|
382
|
-
function Y(e, t,
|
|
383
|
-
(
|
|
384
|
-
const
|
|
385
|
-
return
|
|
382
|
+
function Y(e, t, r) {
|
|
383
|
+
(r = r || {}).arrayMerge = r.arrayMerge || jt, r.isMergeableObject = r.isMergeableObject || Mt, r.cloneUnlessOtherwiseSpecified = ne;
|
|
384
|
+
const n = Array.isArray(t);
|
|
385
|
+
return n === Array.isArray(e) ? n ? r.arrayMerge(e, t, r) : Pt(e, t, r) : ne(t, r);
|
|
386
386
|
}
|
|
387
387
|
Y.all = function(e, t) {
|
|
388
388
|
if (!Array.isArray(e)) throw new Error("first argument should be an array");
|
|
389
|
-
return e.reduce(function(
|
|
390
|
-
return Y(
|
|
389
|
+
return e.reduce(function(r, n) {
|
|
390
|
+
return Y(r, n, t);
|
|
391
391
|
}, {});
|
|
392
392
|
};
|
|
393
393
|
const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
394
394
|
let t = 16 * Math.random() | 0;
|
|
395
395
|
return (e === "x" ? t : 3 & t | 8).toString(16);
|
|
396
|
-
}), Ut = (e) => 1 * e, st = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((
|
|
396
|
+
}), Ut = (e) => 1 * e, st = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((r, n) => r === t[n]), re = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, ct = (e) => typeof e != "object" || Array.isArray(e) || e === null ? e : (Object.keys(e).forEach(function(t) {
|
|
397
397
|
e[t] && typeof e[t] == "object" ? ct(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];
|
|
398
|
-
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t,
|
|
398
|
+
}), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t, r = Bt) => {
|
|
399
399
|
if (e == null || e === t) return null;
|
|
400
|
-
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return
|
|
401
|
-
const
|
|
402
|
-
if (
|
|
400
|
+
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return r(e, t) ? null : e;
|
|
401
|
+
const n = Object.keys(e);
|
|
402
|
+
if (n.length === 0) return null;
|
|
403
403
|
let o = !1;
|
|
404
|
-
for (let i = 0; i <
|
|
405
|
-
const a =
|
|
406
|
-
ut(e[a], t?.[a],
|
|
404
|
+
for (let i = 0; i < n.length; i++) {
|
|
405
|
+
const a = n[i];
|
|
406
|
+
ut(e[a], t?.[a], r) === null && (o = !0, delete e[a]);
|
|
407
407
|
}
|
|
408
408
|
return o && Object.keys(e).length === 0 ? null : void 0;
|
|
409
409
|
}, Ke = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), Ve = (e) => e == null, qe = (e, t) => !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top), Ge = !(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 = () => {
|
|
@@ -414,9 +414,9 @@ const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () =>
|
|
|
414
414
|
function dt() {
|
|
415
415
|
return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
|
|
416
416
|
}
|
|
417
|
-
const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: Ft, EmptyObject: Dt, OSType: k, arrayMove: function(e, t,
|
|
418
|
-
const
|
|
419
|
-
return
|
|
417
|
+
const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: Ft, EmptyObject: Dt, OSType: k, arrayMove: function(e, t, r) {
|
|
418
|
+
const n = e.slice();
|
|
419
|
+
return n.splice(r < 0 ? n.length + r : r, 0, n.splice(t, 1)[0]), n;
|
|
420
420
|
}, asNumber: (e) => {
|
|
421
421
|
const t = Ut(e);
|
|
422
422
|
return Number.isFinite(t) ? t : 0;
|
|
@@ -428,267 +428,267 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
428
428
|
setTimeout(() => {
|
|
429
429
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
430
430
|
});
|
|
431
|
-
}), debounce: function(e, t = 300,
|
|
432
|
-
let
|
|
431
|
+
}), debounce: function(e, t = 300, r = !1) {
|
|
432
|
+
let n, o, i, a, l = 0;
|
|
433
433
|
function u() {
|
|
434
434
|
let w = Date.now() - l;
|
|
435
|
-
w < t && w >= 0 ?
|
|
435
|
+
w < t && w >= 0 ? n = setTimeout(u, t - w) : (n = null, r || (a = e.apply(i, o), i = o = null));
|
|
436
436
|
}
|
|
437
437
|
t == null && (t = 100);
|
|
438
438
|
const p = function() {
|
|
439
439
|
i = globalThis, o = arguments, l = Date.now();
|
|
440
|
-
var w =
|
|
441
|
-
return
|
|
440
|
+
var w = r && !n;
|
|
441
|
+
return n || (n = setTimeout(u, t)), w && (a = e.apply(i, o), i = o = null), a;
|
|
442
442
|
};
|
|
443
443
|
return p.clear = function() {
|
|
444
|
-
|
|
444
|
+
n && (clearTimeout(n), n = null);
|
|
445
445
|
}, p.flush = function() {
|
|
446
|
-
|
|
446
|
+
n && (a = e.apply(i, o), i = o = null, clearTimeout(n), n = null);
|
|
447
447
|
}, p;
|
|
448
|
-
}, deepEqual: function e(t,
|
|
449
|
-
if (t ===
|
|
450
|
-
if (t &&
|
|
451
|
-
if (t.constructor !==
|
|
452
|
-
let
|
|
448
|
+
}, deepEqual: function e(t, r) {
|
|
449
|
+
if (t === r) return !0;
|
|
450
|
+
if (t && r && typeof t == "object" && typeof r == "object") {
|
|
451
|
+
if (t.constructor !== r.constructor) return !1;
|
|
452
|
+
let n, o, i;
|
|
453
453
|
if (Array.isArray(t)) {
|
|
454
|
-
if (
|
|
455
|
-
for (o =
|
|
454
|
+
if (n = t.length, n != r.length) return !1;
|
|
455
|
+
for (o = n; o-- !== 0; ) if (!e(t[o], r[o])) return !1;
|
|
456
456
|
return !0;
|
|
457
457
|
}
|
|
458
|
-
if (t instanceof Map &&
|
|
459
|
-
if (t.size !==
|
|
460
|
-
for (o of t.entries()) if (!
|
|
461
|
-
for (o of t.entries()) if (!e(o[1],
|
|
458
|
+
if (t instanceof Map && r instanceof Map) {
|
|
459
|
+
if (t.size !== r.size) return !1;
|
|
460
|
+
for (o of t.entries()) if (!r.has(o[0])) return !1;
|
|
461
|
+
for (o of t.entries()) if (!e(o[1], r.get(o[0]))) return !1;
|
|
462
462
|
return !0;
|
|
463
463
|
}
|
|
464
|
-
if (t instanceof Set &&
|
|
465
|
-
if (t.size !==
|
|
466
|
-
for (o of t.entries()) if (!
|
|
464
|
+
if (t instanceof Set && r instanceof Set) {
|
|
465
|
+
if (t.size !== r.size) return !1;
|
|
466
|
+
for (o of t.entries()) if (!r.has(o[0])) return !1;
|
|
467
467
|
return !0;
|
|
468
468
|
}
|
|
469
|
-
if (ArrayBuffer.isView(t) && ArrayBuffer.isView(
|
|
470
|
-
if (
|
|
471
|
-
for (o =
|
|
469
|
+
if (ArrayBuffer.isView(t) && ArrayBuffer.isView(r)) {
|
|
470
|
+
if (n = t.length, n != r.length) return !1;
|
|
471
|
+
for (o = n; o-- !== 0; ) if (t[o] !== r[o]) return !1;
|
|
472
472
|
return !0;
|
|
473
473
|
}
|
|
474
|
-
if (t.constructor === RegExp) return t.source ===
|
|
475
|
-
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() ===
|
|
476
|
-
if (t.toString !== Object.prototype.toString) return t.toString() ===
|
|
477
|
-
if (i = Object.keys(t),
|
|
478
|
-
for (o =
|
|
479
|
-
for (o =
|
|
474
|
+
if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags;
|
|
475
|
+
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf();
|
|
476
|
+
if (t.toString !== Object.prototype.toString) return t.toString() === r.toString();
|
|
477
|
+
if (i = Object.keys(t), n = i.length, n !== Object.keys(r).length) return !1;
|
|
478
|
+
for (o = n; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(r, i[o])) return !1;
|
|
479
|
+
for (o = n; o-- !== 0; ) {
|
|
480
480
|
let a = i[o];
|
|
481
|
-
if ((a !== "_owner" || !t.$$typeof) && !e(t[a],
|
|
481
|
+
if ((a !== "_owner" || !t.$$typeof) && !e(t[a], r[a])) return !1;
|
|
482
482
|
}
|
|
483
483
|
return !0;
|
|
484
484
|
}
|
|
485
|
-
return t != t &&
|
|
485
|
+
return t != t && r != r;
|
|
486
486
|
}, deepFreeze: function e(t) {
|
|
487
|
-
return Object.freeze(t), Object.keys(t).forEach((
|
|
488
|
-
typeof t[
|
|
487
|
+
return Object.freeze(t), Object.keys(t).forEach((r) => {
|
|
488
|
+
typeof t[r] != "object" || t[r] === null || Object.isFrozen(t[r]) || e(t[r]);
|
|
489
489
|
}), t;
|
|
490
490
|
}, deepMerge: Y, diffValues: (e, t) => {
|
|
491
|
-
const
|
|
491
|
+
const r = {}, n = Object.keys(t), o = n.length;
|
|
492
492
|
for (let i = 0; i < o; i++) {
|
|
493
|
-
const a =
|
|
494
|
-
e[a] !== t[a] && (e[a] === void 0 ?
|
|
495
|
-
}
|
|
496
|
-
return Object.keys(
|
|
497
|
-
}, findEqualOrGreater: function(e, t,
|
|
498
|
-
let
|
|
499
|
-
for (;
|
|
500
|
-
let i = Math.floor((
|
|
493
|
+
const a = n[i];
|
|
494
|
+
e[a] !== t[a] && (e[a] === void 0 ? r[a] = t[a] : r[a] = e[a]);
|
|
495
|
+
}
|
|
496
|
+
return Object.keys(r).length === 0 ? null : r;
|
|
497
|
+
}, findEqualOrGreater: function(e, t, r = ze) {
|
|
498
|
+
let n = 0, o = e.length - 1;
|
|
499
|
+
for (; n <= o; ) {
|
|
500
|
+
let i = Math.floor((n + o) / 2), a = r(e[i]);
|
|
501
501
|
if (a === t) return i;
|
|
502
|
-
a < t ?
|
|
502
|
+
a < t ? n = i + 1 : o = i - 1;
|
|
503
503
|
}
|
|
504
|
-
return
|
|
505
|
-
}, findEqualOrLesser: function(e, t,
|
|
506
|
-
let
|
|
507
|
-
for (;
|
|
508
|
-
let i = Math.floor((
|
|
504
|
+
return n;
|
|
505
|
+
}, findEqualOrLesser: function(e, t, r = ze) {
|
|
506
|
+
let n = e.length - 1, o = 0;
|
|
507
|
+
for (; n >= o; ) {
|
|
508
|
+
let i = Math.floor((n + o) / 2), a = r(e[i]);
|
|
509
509
|
if (a === t) return i;
|
|
510
|
-
a > t ?
|
|
510
|
+
a > t ? n = i - 1 : o = i + 1;
|
|
511
511
|
}
|
|
512
|
-
return
|
|
513
|
-
}, findNextStep: (e, t = !0,
|
|
514
|
-
const i = Math.max(e -
|
|
515
|
-
return Math.min(o, Math[t ? "ceil" : "floor"](i /
|
|
512
|
+
return n;
|
|
513
|
+
}, findNextStep: (e, t = !0, r = 15, n = 10, o = 400) => {
|
|
514
|
+
const i = Math.max(e - n, 0) + (t ? 1 : -1);
|
|
515
|
+
return Math.min(o, Math[t ? "ceil" : "floor"](i / r) * r + n);
|
|
516
516
|
}, getDPI: () => {
|
|
517
517
|
let e = 1;
|
|
518
518
|
return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
|
|
519
519
|
}, getFromPath: (e, t) => {
|
|
520
|
-
const
|
|
521
|
-
let
|
|
522
|
-
for (let o = 0; o <
|
|
523
|
-
const i =
|
|
524
|
-
if (!
|
|
525
|
-
let a =
|
|
526
|
-
if (typeof a == "function" && (a = a.bind(
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
return
|
|
520
|
+
const r = t.split(".");
|
|
521
|
+
let n = e;
|
|
522
|
+
for (let o = 0; o < r.length; o++) {
|
|
523
|
+
const i = r[o];
|
|
524
|
+
if (!n) return null;
|
|
525
|
+
let a = n[i];
|
|
526
|
+
if (typeof a == "function" && (a = a.bind(n)()), !a || !re(a)) return a;
|
|
527
|
+
n = a;
|
|
528
|
+
}
|
|
529
|
+
return n ?? null;
|
|
530
530
|
}, getOS: oe, hasFocus: We, isDefined: (e) => e != null, isEmpty: (e) => e == null || e === "", isEqualArrays: st, 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) => {
|
|
531
531
|
if (e === t) return !0;
|
|
532
532
|
if (e && !t || t && !e) return !1;
|
|
533
|
-
const
|
|
534
|
-
if (
|
|
535
|
-
for (let
|
|
533
|
+
const r = Object.keys(e);
|
|
534
|
+
if (r.length !== Object.keys(t).length) return !1;
|
|
535
|
+
for (let n = 0; n < r.length; n++) if (e[r[n]] !== t[r[n]]) return !1;
|
|
536
536
|
return !0;
|
|
537
537
|
}, isNode: dt, isNullOrUndefined: Ve, isNumeric: (e) => {
|
|
538
538
|
const t = 1 * e;
|
|
539
539
|
return Number.isFinite(t) && typeof t == "number";
|
|
540
|
-
}, isObject:
|
|
540
|
+
}, isObject: re, 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: qe, mergeContentful: (...e) => {
|
|
541
541
|
const t = e.length;
|
|
542
|
-
if (t > 0 && e[t - 1] !== void 0 && !
|
|
543
|
-
let
|
|
544
|
-
for (let
|
|
545
|
-
return
|
|
542
|
+
if (t > 0 && e[t - 1] !== void 0 && !re(e[t - 1])) return e[t - 1];
|
|
543
|
+
let r = e[0] || {};
|
|
544
|
+
for (let n = 1; n < t; n++) r = Y(r, e[n] || {}, { arrayMerge: (o, i) => [...i] });
|
|
545
|
+
return r;
|
|
546
546
|
}, nextTick: (e) => {
|
|
547
547
|
typeof window < "u" && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame(() => {
|
|
548
548
|
e();
|
|
549
549
|
}) : (typeof setImmediate == "function" ? setImmediate : setTimeout)(() => {
|
|
550
550
|
e();
|
|
551
551
|
});
|
|
552
|
-
}, openFileDialog: (e = "*.*") => new Promise((t,
|
|
553
|
-
if (!Ge) return void
|
|
554
|
-
const
|
|
555
|
-
|
|
552
|
+
}, openFileDialog: (e = "*.*") => new Promise((t, r) => {
|
|
553
|
+
if (!Ge) return void r("Unable to open dialog with no dom.");
|
|
554
|
+
const n = document.createElement("input");
|
|
555
|
+
n.type = "file", n.accept = e;
|
|
556
556
|
let o = null, i = !1;
|
|
557
557
|
globalThis.addEventListener?.("focus", () => {
|
|
558
558
|
setTimeout(() => {
|
|
559
559
|
o || i || (i = !0, t(null));
|
|
560
560
|
}, 1e3);
|
|
561
|
-
}, { once: !0, passive: !0 }),
|
|
562
|
-
if (o =
|
|
561
|
+
}, { once: !0, passive: !0 }), n.onchange = () => {
|
|
562
|
+
if (o = n.files[0], o) {
|
|
563
563
|
if (i) return void console.warn("File open detected after faux cancel.", o);
|
|
564
564
|
t(o);
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, n.autofocus = !0, n.click();
|
|
567
567
|
}), rafThrottle: (e) => {
|
|
568
|
-
let t,
|
|
569
|
-
|
|
568
|
+
let t, r = !1, n = function() {
|
|
569
|
+
r = !1, e(t);
|
|
570
570
|
};
|
|
571
571
|
return function(o) {
|
|
572
|
-
t = o, t && t.persist && t.persist(),
|
|
572
|
+
t = o, t && t.persist && t.persist(), r || (r = !0, requestAnimationFrame(n));
|
|
573
573
|
};
|
|
574
574
|
}, removeEmptyProperties: ct, removeEqualValues: ut, removeListenerAll: (e) => {
|
|
575
575
|
if (!e) return [];
|
|
576
576
|
for (let t = 0; t < e.length; t++) e[t] && e[t]();
|
|
577
577
|
return [];
|
|
578
578
|
}, requestTimeout: (e, t) => {
|
|
579
|
-
const
|
|
580
|
-
Ke() -
|
|
579
|
+
const r = Ke(), n = { id: requestAnimationFrame(function o() {
|
|
580
|
+
Ke() - r >= t ? e.call(null) : n.id = requestAnimationFrame(o);
|
|
581
581
|
}) };
|
|
582
|
-
return
|
|
582
|
+
return n;
|
|
583
583
|
}, roundAccurately: (e, t = 0) => {
|
|
584
584
|
if (e == null || !isFinite(e)) return null;
|
|
585
|
-
const
|
|
586
|
-
return Number(Math.round(e *
|
|
587
|
-
}, setToPath: (e, t,
|
|
588
|
-
const
|
|
585
|
+
const r = 10 ** t;
|
|
586
|
+
return Number(Math.round(e * r) / r);
|
|
587
|
+
}, setToPath: (e, t, r) => {
|
|
588
|
+
const n = t.split(".");
|
|
589
589
|
let o = e;
|
|
590
590
|
if (!o) throw new Error("Can not set path to a null path.");
|
|
591
|
-
for (let i = 0; o && i <
|
|
592
|
-
const a =
|
|
591
|
+
for (let i = 0; o && i < n.length - 1; i++) {
|
|
592
|
+
const a = n[i];
|
|
593
593
|
let l = o[a];
|
|
594
|
-
if (l == null && (l = {}, o[a] = l), !
|
|
594
|
+
if (l == null && (l = {}, o[a] = l), !re(l)) throw new Error("Can not set path to a non object path.");
|
|
595
595
|
o = l;
|
|
596
596
|
}
|
|
597
|
-
if (typeof
|
|
598
|
-
return o[
|
|
597
|
+
if (typeof r != "number" && typeof r != "boolean" && typeof r != "string" && !re(r)) throw new Error(\`Can not set path to \${r} that is not a a supported primitive.\`);
|
|
598
|
+
return o[n[n.length - 1]] = r, e;
|
|
599
599
|
}, splitNumber: (e) => {
|
|
600
600
|
let t = Math.abs(e);
|
|
601
601
|
if (isNaN(t) || !isFinite(e)) return null;
|
|
602
|
-
let
|
|
603
|
-
if (
|
|
604
|
-
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(
|
|
605
|
-
}, subtractRect: (e, t,
|
|
602
|
+
let r = 0 | t, n = t - r, o = 0, i = 0, a = 1;
|
|
603
|
+
if (n > 5e-8) for (; i < 8 && Math.abs(o / a - n) > 5e-8; ) i++, a *= 10, o = Math.round(n * a);
|
|
604
|
+
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(r + 1)), fpLength: i };
|
|
605
|
+
}, subtractRect: (e, t, r = !1) => {
|
|
606
606
|
if (!t) return [e];
|
|
607
607
|
if (!qe(e, t)) return [];
|
|
608
|
-
const
|
|
608
|
+
const n = [];
|
|
609
609
|
let o = e;
|
|
610
610
|
const i = () => {
|
|
611
|
-
t.top > o.top && t.top < o.bottom && (
|
|
611
|
+
t.top > o.top && t.top < o.bottom && (n.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
|
|
612
612
|
}, a = () => {
|
|
613
|
-
t.bottom > o.top && t.bottom < o.bottom && (
|
|
613
|
+
t.bottom > o.top && t.bottom < o.bottom && (n.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
|
|
614
614
|
}, l = () => {
|
|
615
|
-
t.right > o.left && t.right < o.right && (
|
|
615
|
+
t.right > o.left && t.right < o.right && (n.push({ ...o, left: t.right }), o = { ...o, right: t.right });
|
|
616
616
|
}, u = () => {
|
|
617
|
-
t.left > o.left && t.left < o.right && (
|
|
617
|
+
t.left > o.left && t.left < o.right && (n.push({ ...o, right: t.left }), o = { ...o, left: t.left });
|
|
618
618
|
};
|
|
619
|
-
return
|
|
619
|
+
return r ? (u(), l(), i(), a()) : (i(), a(), l(), u()), n;
|
|
620
620
|
}, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
|
|
621
|
-
let
|
|
622
|
-
return (...
|
|
621
|
+
let r = null;
|
|
622
|
+
return (...n) => {
|
|
623
623
|
const o = Date.now();
|
|
624
|
-
(!
|
|
624
|
+
(!r || o - r >= t) && (r = o, e(...n));
|
|
625
625
|
};
|
|
626
626
|
}, toSafeJSON: function e(t) {
|
|
627
627
|
if (t === null || typeof t != "object") return t;
|
|
628
628
|
if (typeof t.toJSON == "function") return t.toJSON();
|
|
629
|
-
if (Array.isArray(t)) return t.map((
|
|
629
|
+
if (Array.isArray(t)) return t.map((n) => e(n));
|
|
630
630
|
if (typeof t.toString == "function" && t.toString !== Object.prototype.toString) return t.toString();
|
|
631
|
-
const
|
|
632
|
-
for (const
|
|
633
|
-
return
|
|
631
|
+
const r = {};
|
|
632
|
+
for (const n in t) t.hasOwnProperty(n) && (r[n] = e(t[n]));
|
|
633
|
+
return r;
|
|
634
634
|
}, transpose: (e) => {
|
|
635
635
|
if (!e) return e;
|
|
636
|
-
const t = e.length,
|
|
637
|
-
for (let o = 0; o <
|
|
638
|
-
for (let o = 0; o < t; o++) for (let i = 0; i <
|
|
639
|
-
return
|
|
636
|
+
const t = e.length, r = e[0].length, n = [];
|
|
637
|
+
for (let o = 0; o < r; o++) n[o] = Array(t);
|
|
638
|
+
for (let o = 0; o < t; o++) for (let i = 0; i < r; i++) n[i][o] = e[o][i];
|
|
639
|
+
return n;
|
|
640
640
|
}, uuidV4: de, validEnumValue: (e, t) => {
|
|
641
641
|
if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
|
|
642
|
-
}, whenFocus: async (e, t = !1) => new Promise((
|
|
643
|
-
We(e, t) ?
|
|
644
|
-
|
|
642
|
+
}, whenFocus: async (e, t = !1) => new Promise((r) => {
|
|
643
|
+
We(e, t) ? r(!0) : e.addEventListener("focusin", () => {
|
|
644
|
+
r(!0);
|
|
645
645
|
}, { once: !0 }), e.focus();
|
|
646
646
|
}) }, Symbol.toStringTag, { value: "Module" }));
|
|
647
647
|
Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
|
|
648
648
|
const ft = (e) => {
|
|
649
|
-
const t = new Uint8Array(e),
|
|
650
|
-
let
|
|
651
|
-
for (let o = 0; o <
|
|
652
|
-
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(
|
|
653
|
-
if (typeof Buffer < "u") return Buffer.from(
|
|
649
|
+
const t = new Uint8Array(e), r = t.byteLength;
|
|
650
|
+
let n = "";
|
|
651
|
+
for (let o = 0; o < r; o++) n += String.fromCharCode(t[o]);
|
|
652
|
+
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(n);
|
|
653
|
+
if (typeof Buffer < "u") return Buffer.from(n, "binary").toString("base64");
|
|
654
654
|
throw new Error("Unsupported environment");
|
|
655
|
-
}, Ce = (e) => new Promise((t,
|
|
655
|
+
}, Ce = (e) => new Promise((t, r) => {
|
|
656
656
|
if (e) if (typeof FileReader < "u") {
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
t(
|
|
660
|
-
},
|
|
661
|
-
n
|
|
662
|
-
},
|
|
657
|
+
const n = new FileReader();
|
|
658
|
+
n.onload = () => {
|
|
659
|
+
t(n.result);
|
|
660
|
+
}, n.onerror = () => {
|
|
661
|
+
r(n.error);
|
|
662
|
+
}, n.readAsText(e);
|
|
663
663
|
} else if (typeof Buffer < "u") {
|
|
664
|
-
const
|
|
664
|
+
const n = (o) => Buffer.from(o).toString("utf-8");
|
|
665
665
|
e.arrayBuffer().then((o) => {
|
|
666
|
-
t(
|
|
666
|
+
t(n(o));
|
|
667
667
|
}).catch((o) => {
|
|
668
|
-
|
|
668
|
+
r(o);
|
|
669
669
|
});
|
|
670
|
-
} else
|
|
670
|
+
} else r(new Error("Unsupported environment"));
|
|
671
671
|
else t("");
|
|
672
672
|
});
|
|
673
673
|
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: ft, base64ToArrayBuffer: (e) => {
|
|
674
|
-
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"),
|
|
675
|
-
for (let o = 0; o <
|
|
676
|
-
return
|
|
674
|
+
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"), r = t.length, n = new Uint8Array(r);
|
|
675
|
+
for (let o = 0; o < r; o++) n[o] = t.charCodeAt(o);
|
|
676
|
+
return n.buffer;
|
|
677
677
|
}, blobToString: Ce }, Symbol.toStringTag, { value: "Module" }));
|
|
678
|
-
const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t,
|
|
679
|
-
let
|
|
678
|
+
const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t, r) => {
|
|
679
|
+
let n = null;
|
|
680
680
|
try {
|
|
681
|
-
|
|
682
|
-
t({ width:
|
|
683
|
-
}, { once: !0 }),
|
|
684
|
-
URL.revokeObjectURL(e),
|
|
685
|
-
}, { once: !0 }), await
|
|
681
|
+
n = new Image(), n.src = e, n.addEventListener("load", function() {
|
|
682
|
+
t({ width: n.naturalWidth, height: n.naturalHeight });
|
|
683
|
+
}, { once: !0 }), n.addEventListener("error", function() {
|
|
684
|
+
URL.revokeObjectURL(e), r("Invalid Image");
|
|
685
|
+
}, { once: !0 }), await n.decode("sync");
|
|
686
686
|
} catch {
|
|
687
|
-
|
|
687
|
+
n?.src && URL.revokeObjectURL(n.src);
|
|
688
688
|
}
|
|
689
|
-
|
|
689
|
+
n || r(ht);
|
|
690
690
|
}), we = "image/svg+xml";
|
|
691
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (
|
|
691
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (r, n) => {
|
|
692
692
|
let o = null;
|
|
693
693
|
try {
|
|
694
694
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
@@ -696,42 +696,42 @@ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt,
|
|
|
696
696
|
const i = document.createElement("canvas");
|
|
697
697
|
i.width = o.naturalWidth, i.height = o.naturalHeight, i.getContext("2d").drawImage(o, 0, 0);
|
|
698
698
|
const a = i.toDataURL("image/png", t);
|
|
699
|
-
|
|
699
|
+
r({ elemImg: o, dataUrl: a });
|
|
700
700
|
} catch (i) {
|
|
701
|
-
URL.revokeObjectURL(e),
|
|
701
|
+
URL.revokeObjectURL(e), n(i);
|
|
702
702
|
}
|
|
703
703
|
}, { once: !0 }), o.addEventListener("error", function() {
|
|
704
|
-
URL.revokeObjectURL(e),
|
|
704
|
+
URL.revokeObjectURL(e), n("Invalid Image");
|
|
705
705
|
}, { once: !0 }), await o.decode("sync");
|
|
706
706
|
} catch {
|
|
707
707
|
o?.src && URL.revokeObjectURL(o.src);
|
|
708
708
|
}
|
|
709
|
-
o ||
|
|
709
|
+
o || n(ht);
|
|
710
710
|
}), loadImageDetails: async (e, t = null) => {
|
|
711
|
-
let
|
|
712
|
-
const
|
|
711
|
+
let r = null;
|
|
712
|
+
const n = async () => {
|
|
713
713
|
try {
|
|
714
714
|
const i = t ?? "image/*", a = URL.createObjectURL(new Blob([e], { type: i })), l = await Ye(a);
|
|
715
|
-
|
|
715
|
+
r = { mimeType: i, naturalDimensions: l, asUrl: a };
|
|
716
716
|
} catch {
|
|
717
717
|
}
|
|
718
718
|
}, o = async () => {
|
|
719
719
|
try {
|
|
720
720
|
const i = new TextDecoder().decode(e), a = URL.createObjectURL(new Blob([i], { type: we })), l = await Ye(a);
|
|
721
|
-
|
|
721
|
+
r = { mimeType: t ?? we, naturalDimensions: l, asUrl: a, asSVGText: i };
|
|
722
722
|
} catch {
|
|
723
723
|
}
|
|
724
724
|
};
|
|
725
|
-
if (t === we ? await o() : t.startsWith("image/") ? await
|
|
726
|
-
return
|
|
725
|
+
if (t === we ? await o() : t.startsWith("image/") ? await n() : (await n(), r || await o()), !r) throw new Error("Failed to load image");
|
|
726
|
+
return r;
|
|
727
727
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
728
728
|
var Je, He;
|
|
729
|
-
(He = Je || (Je = {})).resolveTypedUpdates = (e, t,
|
|
729
|
+
(He = Je || (Je = {})).resolveTypedUpdates = (e, t, r, n) => {
|
|
730
730
|
if (e === null) return e;
|
|
731
|
-
if (e === void 0) return
|
|
731
|
+
if (e === void 0) return n;
|
|
732
732
|
let o = e;
|
|
733
733
|
if (t?.shorthand) {
|
|
734
|
-
const u = t?.shorthand(e,
|
|
734
|
+
const u = t?.shorthand(e, r);
|
|
735
735
|
u !== void 0 && (o = u);
|
|
736
736
|
}
|
|
737
737
|
if (o !== null && t?.getSubType) {
|
|
@@ -740,9 +740,9 @@ var Je, He;
|
|
|
740
740
|
}
|
|
741
741
|
const i = t?.properties, a = t?.arrayType ?? !1;
|
|
742
742
|
let l = o;
|
|
743
|
-
if (t && t.merge && l &&
|
|
743
|
+
if (t && t.merge && l && n) l = t.merge(l, n, r);
|
|
744
744
|
else if (!a && i) {
|
|
745
|
-
const u = Object.keys({ ...o, ...
|
|
745
|
+
const u = Object.keys({ ...o, ...n });
|
|
746
746
|
l = null;
|
|
747
747
|
const p = u.length;
|
|
748
748
|
for (let w = 0; w < p; w++) {
|
|
@@ -750,8 +750,8 @@ var Je, He;
|
|
|
750
750
|
let f, y = o[g];
|
|
751
751
|
if (y !== void 0) {
|
|
752
752
|
const x = i[g];
|
|
753
|
-
f = x ? (0, He.resolveTypedUpdates)(y, x,
|
|
754
|
-
} else f =
|
|
753
|
+
f = x ? (0, He.resolveTypedUpdates)(y, x, r, n?.[g]) : y;
|
|
754
|
+
} else f = n?.[g];
|
|
755
755
|
f != null && (l = l ?? {}, l[g] = f);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
@@ -768,10 +768,10 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
768
768
|
document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
|
|
769
769
|
e();
|
|
770
770
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
771
|
-
}), be = async (e, t,
|
|
772
|
-
if (oe() === k.Safari) return await
|
|
771
|
+
}), be = async (e, t, r) => {
|
|
772
|
+
if (oe() === k.Safari) return await r(new Error(mt.Safari));
|
|
773
773
|
try {
|
|
774
|
-
const
|
|
774
|
+
const n = async (a) => {
|
|
775
775
|
try {
|
|
776
776
|
return await a();
|
|
777
777
|
} catch (l) {
|
|
@@ -780,9 +780,9 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
780
780
|
}
|
|
781
781
|
}, o = await globalThis?.navigator?.permissions?.query({ name: e, allowWithoutGesture: !0, allowWithoutSanitization: !0 });
|
|
782
782
|
let i = !1;
|
|
783
|
-
if (o.state === "prompt" && (i = await
|
|
784
|
-
} catch (
|
|
785
|
-
return
|
|
783
|
+
if (o.state === "prompt" && (i = await n(t)), i || o.state !== "granted" || (i = await t()), !i) return await r(new Error(o.state));
|
|
784
|
+
} catch (n) {
|
|
785
|
+
return n.message === "No valid data on clipboard" || n.name === "DataError" ? void 0 : await r(n);
|
|
786
786
|
}
|
|
787
787
|
}, wt = async (e) => {
|
|
788
788
|
try {
|
|
@@ -792,21 +792,21 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
792
792
|
return await e.read();
|
|
793
793
|
}, zt = async (e, t) => {
|
|
794
794
|
if (!e) return null;
|
|
795
|
-
const
|
|
796
|
-
let
|
|
797
|
-
for (let o = 0; !
|
|
798
|
-
return await
|
|
799
|
-
return
|
|
795
|
+
const r = await wt(e);
|
|
796
|
+
let n = !1;
|
|
797
|
+
for (let o = 0; !n && r && o < r.length; o++) if (n = r[o].types.includes(t), n)
|
|
798
|
+
return await r[o].getType(t);
|
|
799
|
+
return n ? void 0 : null;
|
|
800
800
|
};
|
|
801
801
|
if (!globalThis.ClipboardItem) {
|
|
802
|
-
const e = (
|
|
802
|
+
const e = (r, n) => new Blob([n], { type: r });
|
|
803
803
|
class t {
|
|
804
|
-
constructor(
|
|
805
|
-
this._items = {}, this._types = Object.keys(
|
|
806
|
-
const i = {}, a = Object.keys(
|
|
804
|
+
constructor(n, o) {
|
|
805
|
+
this._items = {}, this._types = Object.keys(n);
|
|
806
|
+
const i = {}, a = Object.keys(n);
|
|
807
807
|
for (let l = 0; l < a.length; l++) {
|
|
808
808
|
const u = a[l];
|
|
809
|
-
let p =
|
|
809
|
+
let p = n[u];
|
|
810
810
|
i[u] = typeof p == "string" ? e(u, p) : p;
|
|
811
811
|
}
|
|
812
812
|
this._items = i, this._presentationStyle = o?.presentationStyle ?? "unspecified";
|
|
@@ -814,55 +814,55 @@ if (!globalThis.ClipboardItem) {
|
|
|
814
814
|
get types() {
|
|
815
815
|
return this._types;
|
|
816
816
|
}
|
|
817
|
-
getType(
|
|
818
|
-
return Promise.resolve(this._items[
|
|
817
|
+
getType(n) {
|
|
818
|
+
return Promise.resolve(this._items[n]);
|
|
819
819
|
}
|
|
820
|
-
supports(
|
|
820
|
+
supports(n) {
|
|
821
821
|
return !0;
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
globalThis.ClipboardItem = t;
|
|
825
825
|
}
|
|
826
|
-
const ve = async (e, t = S.html) => new Promise(async (
|
|
826
|
+
const ve = async (e, t = S.html) => new Promise(async (r, n) => {
|
|
827
827
|
try {
|
|
828
828
|
const o = await zt(e, t);
|
|
829
829
|
if (o) {
|
|
830
830
|
const i = new FileReader();
|
|
831
831
|
i.onload = () => {
|
|
832
|
-
|
|
832
|
+
r(i.result);
|
|
833
833
|
}, i.onerror = () => {
|
|
834
|
-
|
|
834
|
+
r("");
|
|
835
835
|
}, i.readAsText(o);
|
|
836
|
-
} else
|
|
836
|
+
} else r("");
|
|
837
837
|
} catch (o) {
|
|
838
|
-
|
|
838
|
+
n(o);
|
|
839
839
|
}
|
|
840
840
|
}), Ze = async (e, t = S.html) => {
|
|
841
|
-
const
|
|
842
|
-
if (!
|
|
843
|
-
let
|
|
841
|
+
const r = await ve(e, t);
|
|
842
|
+
if (!r) return null;
|
|
843
|
+
let n = null;
|
|
844
844
|
try {
|
|
845
|
-
|
|
845
|
+
n = new DOMParser().parseFromString(r, S.html);
|
|
846
846
|
} catch {
|
|
847
847
|
console.warn("Can't parse html from clipboard.");
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return n;
|
|
850
850
|
}, Kt = async (e) => {
|
|
851
851
|
e && await e.writeText("");
|
|
852
852
|
}, ie = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ie}="\${e}"/>\`, Vt = (e, t) => {
|
|
853
|
-
let
|
|
853
|
+
let r = null;
|
|
854
854
|
try {
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
} catch (
|
|
858
|
-
console.warn("Can't embed uuid.",
|
|
855
|
+
const n = new DOMParser().parseFromString(t, S.html);
|
|
856
|
+
n.body.firstElementChild.setAttribute(ie, e), r = n.getElementsByTagName("body")[0].innerHTML;
|
|
857
|
+
} catch (n) {
|
|
858
|
+
console.warn("Can't embed uuid.", n);
|
|
859
859
|
}
|
|
860
|
-
return
|
|
860
|
+
return r;
|
|
861
861
|
}, et = (e, t) => {
|
|
862
862
|
if (!t || !e) return !1;
|
|
863
863
|
try {
|
|
864
|
-
const
|
|
865
|
-
if (
|
|
864
|
+
const r = t.querySelectorAll(\`[\${ie}="\${e}"]\`);
|
|
865
|
+
if (r && r.length === 1) return !0;
|
|
866
866
|
if (t.querySelector("parsererror")) throw new Error("We are unable to parse node");
|
|
867
867
|
return !1;
|
|
868
868
|
} catch {
|
|
@@ -884,8 +884,8 @@ class tt {
|
|
|
884
884
|
await ge();
|
|
885
885
|
const t = await ve(this._nativeClipboard, Q);
|
|
886
886
|
if (!this._state || t && t === this._state.uuid) return !0;
|
|
887
|
-
const
|
|
888
|
-
return !this._state || (et(this._state.uuid,
|
|
887
|
+
const r = await Ze(this._nativeClipboard, S.html);
|
|
888
|
+
return !this._state || (et(this._state.uuid, r) || this.clear(), !0);
|
|
889
889
|
}, async (t) => {
|
|
890
890
|
t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
|
|
891
891
|
});
|
|
@@ -896,7 +896,7 @@ class tt {
|
|
|
896
896
|
t._checkForChanges();
|
|
897
897
|
}, this._onBlur = () => {
|
|
898
898
|
globalThis.addEventListener?.("focus", t._onFocus, { once: !0 });
|
|
899
|
-
}, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (
|
|
899
|
+
}, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (r) => {
|
|
900
900
|
t._checkForChanges();
|
|
901
901
|
}));
|
|
902
902
|
}
|
|
@@ -905,13 +905,13 @@ class tt {
|
|
|
905
905
|
const t = this;
|
|
906
906
|
return await be("clipboard-read", async () => {
|
|
907
907
|
if (await ge(), this._state?.uuid) {
|
|
908
|
-
const
|
|
909
|
-
if (
|
|
910
|
-
const
|
|
911
|
-
if (et(t._state?.uuid,
|
|
908
|
+
const r = await ve(this._nativeClipboard, Q);
|
|
909
|
+
if (r && r === t._state.uuid) return !0;
|
|
910
|
+
const n = await Ze(this._nativeClipboard, S.html);
|
|
911
|
+
if (et(t._state?.uuid, n)) return !0;
|
|
912
912
|
}
|
|
913
913
|
return t._state = { items: await wt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
|
|
914
|
-
}, async (
|
|
914
|
+
}, async (r) => {
|
|
915
915
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
916
916
|
}), this._state?.items ?? [];
|
|
917
917
|
}
|
|
@@ -920,10 +920,10 @@ class tt {
|
|
|
920
920
|
}
|
|
921
921
|
async _write(t) {
|
|
922
922
|
if (!this._nativeClipboard) return this._state = t, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
|
|
923
|
-
const
|
|
923
|
+
const r = this, n = [], o = t.uuid;
|
|
924
924
|
let i = t.items ?? [];
|
|
925
925
|
const a = () => {
|
|
926
|
-
|
|
926
|
+
r._state = { uuid: o, ref: t.ref, items: n }, r.dispatchEvent(new Event("clipboardwrite")), r.dispatchEvent(new Event("clipboardchange"));
|
|
927
927
|
};
|
|
928
928
|
await be("clipboard-write", async () => {
|
|
929
929
|
await ge(), o && i.length === 0 && (i.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), i.push(new ClipboardItem({ [S.html]: new Blob([Qe(o)], { type: S.html }) })));
|
|
@@ -951,10 +951,10 @@ class tt {
|
|
|
951
951
|
const x = u.types[y];
|
|
952
952
|
f[x] = y === p ? g : u.getType(x);
|
|
953
953
|
}
|
|
954
|
-
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })),
|
|
954
|
+
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), n.push(new ClipboardItem(f));
|
|
955
955
|
}
|
|
956
956
|
try {
|
|
957
|
-
|
|
957
|
+
n && n.length !== 0 ? await this._nativeClipboard.write(n) : await Kt(this._nativeClipboard);
|
|
958
958
|
} catch (l) {
|
|
959
959
|
l.message?.includes("Document is not focused") || console.warn("Unable to write to native clipboard: ", l);
|
|
960
960
|
}
|
|
@@ -965,28 +965,28 @@ class tt {
|
|
|
965
965
|
}
|
|
966
966
|
async writeReference(t) {
|
|
967
967
|
if (!t) return void this.clear();
|
|
968
|
-
let
|
|
969
|
-
const
|
|
968
|
+
let r = null;
|
|
969
|
+
const n = {};
|
|
970
970
|
try {
|
|
971
971
|
const i = await t.toText?.() ?? null;
|
|
972
|
-
i && (
|
|
972
|
+
i && (n[S.plain] = new Blob([i ?? ""], { type: S.plain }));
|
|
973
973
|
} catch (i) {
|
|
974
|
-
|
|
974
|
+
r = i;
|
|
975
975
|
}
|
|
976
976
|
try {
|
|
977
977
|
const i = await t.toHtml?.() ?? null;
|
|
978
|
-
i && (
|
|
978
|
+
i && (n[S.html] = new Blob([i], { type: S.html }));
|
|
979
979
|
} catch (i) {
|
|
980
|
-
|
|
980
|
+
r = i, console.warn("export to html", i);
|
|
981
981
|
}
|
|
982
982
|
try {
|
|
983
983
|
const i = await t.toImage?.() ?? null;
|
|
984
|
-
i && (
|
|
984
|
+
i && (n[S.png] = i);
|
|
985
985
|
} catch (i) {
|
|
986
|
-
|
|
986
|
+
r = i, console.warn("export to png", i);
|
|
987
987
|
}
|
|
988
|
-
const o = this._write({ uuid: de(), ref: t, items: Object.keys(
|
|
989
|
-
if (
|
|
988
|
+
const o = this._write({ uuid: de(), ref: t, items: Object.keys(n).length > 0 ? [new ClipboardItem(n)] : null });
|
|
989
|
+
if (r) throw r;
|
|
990
990
|
return o;
|
|
991
991
|
}
|
|
992
992
|
clear(t = !1) {
|
|
@@ -996,32 +996,32 @@ class tt {
|
|
|
996
996
|
return await this.read(), this._state?.ref ?? null;
|
|
997
997
|
}
|
|
998
998
|
readText() {
|
|
999
|
-
return new Promise(async (t,
|
|
1000
|
-
const
|
|
999
|
+
return new Promise(async (t, r) => {
|
|
1000
|
+
const n = await this.read();
|
|
1001
1001
|
let o = null;
|
|
1002
|
-
for (let a = 0; !o &&
|
|
1002
|
+
for (let a = 0; !o && n && a < n.length; a++) n[a].types.includes(S.plain) && (o = await n[a].getType(S.plain));
|
|
1003
1003
|
if (!o) return void t("");
|
|
1004
1004
|
const i = new FileReader();
|
|
1005
1005
|
i.onload = () => {
|
|
1006
1006
|
t(i.result);
|
|
1007
1007
|
}, i.readAsText(o), i.onerror = (a) => {
|
|
1008
|
-
|
|
1008
|
+
r(a);
|
|
1009
1009
|
};
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
async writeText(t) {
|
|
1013
|
-
const
|
|
1014
|
-
return this._write({ uuid: de(), items:
|
|
1013
|
+
const r = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
|
|
1014
|
+
return this._write({ uuid: de(), items: r, ref: null });
|
|
1015
1015
|
}
|
|
1016
|
-
addEventListener(t,
|
|
1017
|
-
const o =
|
|
1016
|
+
addEventListener(t, r, n = {}) {
|
|
1017
|
+
const o = n?.capture ? this._listenersCapture : this._listeners;
|
|
1018
1018
|
let i = o.get(t);
|
|
1019
|
-
i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(
|
|
1019
|
+
i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(r, typeof n == "boolean" ? {} : n);
|
|
1020
1020
|
}
|
|
1021
1021
|
dispatchEvent(t) {
|
|
1022
1022
|
if (!t) return;
|
|
1023
|
-
const
|
|
1024
|
-
const o =
|
|
1023
|
+
const r = (n) => {
|
|
1024
|
+
const o = n.get(t.type);
|
|
1025
1025
|
o && o.forEach((i, a) => {
|
|
1026
1026
|
try {
|
|
1027
1027
|
typeof a == "function" ? a(t) : a.handleEvent && a.handleEvent(t), i.once && o.delete(a);
|
|
@@ -1030,11 +1030,11 @@ class tt {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
});
|
|
1032
1032
|
};
|
|
1033
|
-
return
|
|
1033
|
+
return r(this._listenersCapture), r(this._listeners), !0;
|
|
1034
1034
|
}
|
|
1035
|
-
removeEventListener(t,
|
|
1036
|
-
const o =
|
|
1037
|
-
i && (i.delete(
|
|
1035
|
+
removeEventListener(t, r, n) {
|
|
1036
|
+
const o = n?.capture ? this._listenersCapture : this._listeners, i = o.get(t);
|
|
1037
|
+
i && (i.delete(r), i.size === 0 && o.delete(t));
|
|
1038
1038
|
}
|
|
1039
1039
|
close() {
|
|
1040
1040
|
globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
|
|
@@ -1053,16 +1053,16 @@ async function Gt() {
|
|
|
1053
1053
|
return ee;
|
|
1054
1054
|
}
|
|
1055
1055
|
let e, t;
|
|
1056
|
-
le = new Promise((
|
|
1057
|
-
e =
|
|
1056
|
+
le = new Promise((r, n) => {
|
|
1057
|
+
e = r, t = n;
|
|
1058
1058
|
});
|
|
1059
1059
|
try {
|
|
1060
|
-
const { initialize:
|
|
1061
|
-
return
|
|
1060
|
+
const { initialize: r } = await Promise.resolve().then(function() {
|
|
1061
|
+
return or;
|
|
1062
1062
|
});
|
|
1063
|
-
return ee = await
|
|
1064
|
-
} catch (
|
|
1065
|
-
throw console.error("Failed to import or initialize esbuild:",
|
|
1063
|
+
return ee = await r(), e(), ee;
|
|
1064
|
+
} catch (r) {
|
|
1065
|
+
throw console.error("Failed to import or initialize esbuild:", r), le = null, t(r), r;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
const Wt = {
|
|
@@ -1071,21 +1071,21 @@ const Wt = {
|
|
|
1071
1071
|
target: "esnext"
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
async function Yt(e, t,
|
|
1074
|
+
async function Yt(e, t, r = "/script.js", n = qt) {
|
|
1075
1075
|
try {
|
|
1076
1076
|
const o = await Gt(), i = "@sheetxl/primitives", a = \`
|
|
1077
|
-
export const FormulaContext = globalThis.\${
|
|
1078
|
-
export const ScalarType = globalThis.\${
|
|
1079
|
-
export const Observable = globalThis.\${
|
|
1080
|
-
export const IRange = globalThis.\${
|
|
1081
|
-
export const FormulaError = globalThis.\${
|
|
1077
|
+
export const FormulaContext = globalThis.\${n}?.FormulaContext;
|
|
1078
|
+
export const ScalarType = globalThis.\${n}?.ScalarType;
|
|
1079
|
+
export const Observable = globalThis.\${n}?.Observable;
|
|
1080
|
+
export const IRange = globalThis.\${n}?.IRange;
|
|
1081
|
+
export const FormulaError = globalThis.\${n}?.FormulaError;
|
|
1082
1082
|
// Add more exports as needed
|
|
1083
1083
|
\`, l = {
|
|
1084
1084
|
// ESBuild.Plugin = {
|
|
1085
1085
|
name: "sheetxl-esbuild-in-memory",
|
|
1086
1086
|
setup(p) {
|
|
1087
1087
|
const w = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
1088
|
-
p.onResolve({ filter: new RegExp(\`^(\${
|
|
1088
|
+
p.onResolve({ filter: new RegExp(\`^(\${r.replace("/", "\\\\/")}|\${i})$\`) }, (g) => ({
|
|
1089
1089
|
path: g.path,
|
|
1090
1090
|
namespace: w
|
|
1091
1091
|
})), p.onResolve({ filter: /.*/ }, (g) => {
|
|
@@ -1093,7 +1093,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1093
1093
|
return console.warn(\`esbuild: Treating import "\${g.path}" as external.\`), { path: g.path, external: !0 };
|
|
1094
1094
|
}), p.onLoad({ filter: /.*/, namespace: w }, (g) => {
|
|
1095
1095
|
let f;
|
|
1096
|
-
if (g.path ===
|
|
1096
|
+
if (g.path === r)
|
|
1097
1097
|
f = t;
|
|
1098
1098
|
else if (g.path === i)
|
|
1099
1099
|
f = a;
|
|
@@ -1109,7 +1109,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
1111
|
}, u = await o.build({
|
|
1112
|
-
entryPoints: [
|
|
1112
|
+
entryPoints: [r],
|
|
1113
1113
|
// Use the virtual entry point
|
|
1114
1114
|
bundle: !0,
|
|
1115
1115
|
// IMPORTANT: Enable bundling
|
|
@@ -1166,9 +1166,9 @@ interface Promise<T> {
|
|
|
1166
1166
|
["ICellRange", "range"],
|
|
1167
1167
|
["IFormulaContext", "context"]
|
|
1168
1168
|
]), _e = (e, t) => {
|
|
1169
|
-
Array.from(t.keys()).forEach((
|
|
1170
|
-
const o = t.get(
|
|
1171
|
-
t.set(\`\${e}.\${
|
|
1169
|
+
Array.from(t.keys()).forEach((n) => {
|
|
1170
|
+
const o = t.get(n);
|
|
1171
|
+
t.set(\`\${e}.\${n}\`, o);
|
|
1172
1172
|
});
|
|
1173
1173
|
}, Zt = /* @__PURE__ */ new Map([
|
|
1174
1174
|
["Scalar", "*"],
|
|
@@ -1181,7 +1181,7 @@ interface Promise<T> {
|
|
|
1181
1181
|
_e(Oe, yt);
|
|
1182
1182
|
_e(Oe, gt);
|
|
1183
1183
|
_e(Oe, Qt);
|
|
1184
|
-
const
|
|
1184
|
+
const er = /* @__PURE__ */ new Map([
|
|
1185
1185
|
["Promise", () => ({ async: !0 })],
|
|
1186
1186
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
1187
1187
|
// return { async: true };
|
|
@@ -1189,12 +1189,12 @@ const en = /* @__PURE__ */ new Map([
|
|
|
1189
1189
|
["Observable", () => ({ stream: !0 })]
|
|
1190
1190
|
]);
|
|
1191
1191
|
let se = null;
|
|
1192
|
-
async function
|
|
1192
|
+
async function tr() {
|
|
1193
1193
|
if (se)
|
|
1194
1194
|
return se;
|
|
1195
1195
|
try {
|
|
1196
1196
|
return await (await Promise.resolve().then(function() {
|
|
1197
|
-
return
|
|
1197
|
+
return ar;
|
|
1198
1198
|
})).initialize();
|
|
1199
1199
|
} catch (e) {
|
|
1200
1200
|
throw se = null, e;
|
|
@@ -1202,14 +1202,14 @@ async function tn() {
|
|
|
1202
1202
|
se = null;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
async function
|
|
1205
|
+
async function rr(e) {
|
|
1206
1206
|
const t = e?.source ?? null;
|
|
1207
1207
|
if (!t) return null;
|
|
1208
|
-
const
|
|
1208
|
+
const r = (e.disableBundle || e.declarationsOnly) ?? !1, n = [
|
|
1209
1209
|
Xt(),
|
|
1210
1210
|
//import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
|
|
1211
|
-
|
|
1212
|
-
], o = await Promise.all(
|
|
1211
|
+
tr()
|
|
1212
|
+
], o = await Promise.all(n), i = o[0], a = o[1];
|
|
1213
1213
|
let l = "", u = null;
|
|
1214
1214
|
const p = [], w = {
|
|
1215
1215
|
allowJs: !0,
|
|
@@ -1286,7 +1286,7 @@ async function nn(e) {
|
|
|
1286
1286
|
if (R)
|
|
1287
1287
|
return R;
|
|
1288
1288
|
} else {
|
|
1289
|
-
const R =
|
|
1289
|
+
const R = er.get(M);
|
|
1290
1290
|
if (R) {
|
|
1291
1291
|
const b = { ...m, ...R() };
|
|
1292
1292
|
let N = 0;
|
|
@@ -1433,7 +1433,7 @@ async function nn(e) {
|
|
|
1433
1433
|
throw new Error("No exported functions.");
|
|
1434
1434
|
const bt = \`\${$t.uuidV4()}-script\`;
|
|
1435
1435
|
try {
|
|
1436
|
-
!
|
|
1436
|
+
!r && B.length === 0 && (l = await Yt(a, l, g));
|
|
1437
1437
|
} catch {
|
|
1438
1438
|
console.warn("Error bundling script");
|
|
1439
1439
|
}
|
|
@@ -1449,30 +1449,30 @@ async function nn(e) {
|
|
|
1449
1449
|
return u && (Ie.autoRun = u), Ie;
|
|
1450
1450
|
}
|
|
1451
1451
|
self.addEventListener("message", async (e) => {
|
|
1452
|
-
const { id: t, params:
|
|
1452
|
+
const { id: t, params: r } = e.data;
|
|
1453
1453
|
try {
|
|
1454
|
-
const
|
|
1455
|
-
self.postMessage({ id: t, result:
|
|
1456
|
-
} catch (
|
|
1454
|
+
const n = await rr(r);
|
|
1455
|
+
self.postMessage({ id: t, result: n, error: null });
|
|
1456
|
+
} catch (n) {
|
|
1457
1457
|
self.postMessage({
|
|
1458
1458
|
id: t,
|
|
1459
1459
|
result: null,
|
|
1460
1460
|
error: {
|
|
1461
|
-
message:
|
|
1462
|
-
stack:
|
|
1463
|
-
cause:
|
|
1461
|
+
message: n.message,
|
|
1462
|
+
stack: n.stack,
|
|
1463
|
+
cause: n.cause
|
|
1464
1464
|
}
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
});
|
|
1468
1468
|
let ce = null;
|
|
1469
|
-
async function
|
|
1469
|
+
async function nr() {
|
|
1470
1470
|
return ce || (ce = new Promise(async (e, t) => {
|
|
1471
1471
|
try {
|
|
1472
|
-
const
|
|
1472
|
+
const r = "0.20.2", n = \`https://esm.sh/esbuild-wasm@\${r}\`, o = \`https://esm.sh/esbuild-wasm@\${r}/esbuild.wasm\`, a = (await import(
|
|
1473
1473
|
/* webpackIgnore: true */
|
|
1474
1474
|
/* @vite-ignore */
|
|
1475
|
-
|
|
1475
|
+
n
|
|
1476
1476
|
)).default;
|
|
1477
1477
|
await a.initialize({
|
|
1478
1478
|
wasmURL: o,
|
|
@@ -1480,29 +1480,29 @@ async function rn() {
|
|
|
1480
1480
|
worker: !1
|
|
1481
1481
|
// Keep processing on the current thread
|
|
1482
1482
|
}), e(a);
|
|
1483
|
-
} catch (
|
|
1484
|
-
console.error("Error initializing esbuild:",
|
|
1483
|
+
} catch (r) {
|
|
1484
|
+
console.error("Error initializing esbuild:", r), t(r);
|
|
1485
1485
|
}
|
|
1486
1486
|
}), ce);
|
|
1487
1487
|
}
|
|
1488
|
-
var
|
|
1488
|
+
var or = /* @__PURE__ */ Object.freeze({
|
|
1489
1489
|
__proto__: null,
|
|
1490
|
-
initialize:
|
|
1490
|
+
initialize: nr
|
|
1491
1491
|
});
|
|
1492
1492
|
let ue = null;
|
|
1493
|
-
async function
|
|
1493
|
+
async function ir() {
|
|
1494
1494
|
return ue || (ue = new Promise(async (e, t) => {
|
|
1495
|
-
let
|
|
1495
|
+
let r = null;
|
|
1496
1496
|
try {
|
|
1497
|
-
|
|
1498
|
-
} catch (
|
|
1499
|
-
console.error("Error initializing Browser TypeScript module:",
|
|
1497
|
+
r = await import("https://esm.sh/typescript@5.7.2");
|
|
1498
|
+
} catch (n) {
|
|
1499
|
+
console.error("Error initializing Browser TypeScript module:", n);
|
|
1500
1500
|
}
|
|
1501
|
-
|
|
1501
|
+
r || console.log("use script fallback"), e(r);
|
|
1502
1502
|
}), ue);
|
|
1503
1503
|
}
|
|
1504
|
-
var
|
|
1504
|
+
var ar = /* @__PURE__ */ Object.freeze({
|
|
1505
1505
|
__proto__: null,
|
|
1506
|
-
initialize:
|
|
1506
|
+
initialize: ir
|
|
1507
1507
|
});
|
|
1508
|
-
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1508
|
+
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./CTT_jzhLio55PSMa.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
|