@sheetxl/studio-vanilla 0.7.4 → 0.7.6
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/README.md +9 -5
- package/browser/cjs/B7wz5PktsGQNKYoq.cjs +6 -0
- package/browser/cjs/{dGtOlClU3aLzqX9G.cjs → BCp8EKu-fnWiHBVn.cjs} +1 -1
- package/browser/cjs/{B4foheVEUqSBFEkt.cjs → BDDGDj16_JM9JSNw.cjs} +1 -1
- package/browser/cjs/{ChIk2dRWK_RpFnZl.cjs → BExG5buAzGxZlmJw.cjs} +4 -4
- package/browser/cjs/{C7GKCVS4tFPkLsu7.cjs → BFooBtpsd0cC8qDG.cjs} +1 -1
- package/browser/cjs/{A4yAgzK3Yi1hFoyF.cjs → BVMvTKkVRG3ARblV.cjs} +1 -1
- package/browser/cjs/{D3tIyPRHWxjXZjiu.cjs → BVjaiAwC49wwDMDI.cjs} +487 -487
- package/browser/cjs/{JZZCpLEpsC2LCYHH.cjs → BXZgVqL7XkYsoi33.cjs} +2 -2
- package/browser/cjs/{D4llH4xbqGzmuVYe.cjs → BYG2IVD2Gqh-q7h2.cjs} +1 -1
- package/browser/cjs/{De082R33Q24Czdd2.cjs → Bdri1EOZVClr_s5d.cjs} +3 -3
- package/browser/cjs/{8ORcPDrnyLtyRBC5.cjs → BgE8ast3JVnmh0C3.cjs} +8 -8
- package/browser/cjs/BiHqOGcXJWRP3FQy.cjs +32 -0
- package/browser/cjs/{DEzEcMfZx0I-QgJj.cjs → Bk3M_kByuRSgE2I7.cjs} +1 -1
- package/browser/cjs/{q1y9tq62y47f7mxy.cjs → BkGg_LJgjZj1NXHZ.cjs} +1 -1
- package/browser/cjs/BtkQmDedsmbw95Pc.cjs +6 -0
- package/browser/cjs/{Xzq847s6zAFUFWcq.cjs → BuBu8hoBcG1L5gWU.cjs} +1 -1
- package/browser/cjs/Bv5i7awWQ7wuK-N1.cjs +6 -0
- package/browser/cjs/{BeOgEB1ihIJx02Af.cjs → BzgLQhJ2sqEZCsrb.cjs} +1 -1
- package/browser/cjs/{B0Z0aRvslQ-luY7V.cjs → C2AUpeG75-dSdAU8.cjs} +2 -2
- package/browser/cjs/{DsWfniauN1Pu2Go3.cjs → C4IJ8og_7pYXOaaa.cjs} +1 -1
- package/browser/cjs/CA1KKidNd07a0DJH.cjs +11 -0
- package/browser/cjs/CEt7dvaTwfePj4ER.cjs +326 -0
- package/browser/cjs/{DAJLF0E4eUH-LX9t.cjs → CR_3znwknfRYUQjJ.cjs} +2 -2
- package/browser/cjs/{B13vFaAy_2-LVET-.cjs → CSyKzMKdjLhLe40I.cjs} +1 -1
- package/browser/cjs/{BgSDdeTv_xCIgBGD.cjs → CUpgKTIV0yg_QYHZ.cjs} +3 -3
- package/browser/cjs/{CAiDHxx6Gd0WmW60.cjs → CXoepqRJNlPbIb0L.cjs} +2 -2
- package/browser/cjs/{B47DWuTo-MqQ3jZz.cjs → CbvWAZQhSUzqCg17.cjs} +1 -1
- package/browser/cjs/{B3C8eQFrLaL-fvH-.cjs → CcpKk964zuH4DpgM.cjs} +23 -23
- package/browser/cjs/{B2LQcZ92fWIJv2Gz.cjs → CkA2FSMaiJvL4xnW.cjs} +1 -1
- package/browser/cjs/Ck_CXORzAURg_vBX.cjs +6 -0
- package/browser/cjs/{DHdO6HcI4UB6Ks3h.cjs → Cr07exWoIE8PUEEj.cjs} +2 -2
- package/browser/cjs/{D6RF346wXtLKkoJ-.cjs → CvfHD9dwIrbEr7hM.cjs} +2 -2
- package/browser/cjs/{BNPrWaUmde-C-8Vx.cjs → CwW8vJh2IPnMize_.cjs} +1 -1
- package/browser/cjs/{Bzqv14cPgkvKImRH.cjs → D10iC-iUoXqxQ9CM.cjs} +1 -1
- package/browser/cjs/{ipGL9YCfyze4LbQj.cjs → D3LgtUzW8PLgmpsZ.cjs} +1 -1
- package/browser/cjs/{8gwQqoquag37n7A4.cjs → DNQbFZZOmDP_rJEI.cjs} +1 -1
- package/browser/cjs/{DVATnEUJxTQMsLOO.cjs → DQmdNFzWR-h9wYSi.cjs} +1 -1
- package/browser/cjs/{ByA09xUI5G9YbxMz.cjs → DSJLyqI4SU0MEH4t.cjs} +1 -1
- package/browser/cjs/{C23bIG7E2r_Q0RAj.cjs → DT7rBrGhpA-qvk1s.cjs} +2 -2
- package/browser/cjs/{D0ApB39VH979ZUCx.cjs → DVN-SKDgVS0saY0w.cjs} +1 -1
- package/browser/cjs/{DFAQXO44wRvSlwCZ.cjs → DbMWszNm4m-5OHJM.cjs} +1 -1
- package/browser/cjs/{9YNUOzk1ChRHaQ0A.cjs → DlekR-mM3nwaCQEe.cjs} +1 -1
- package/browser/cjs/{DQrZ7_9M-BH9Zqhw.cjs → DpTEicgZ3kB8YiOW.cjs} +2 -2
- package/browser/cjs/{CwsdwMi5Xs8b4Yhg.cjs → DxV-3v_QDuTNlIGN.cjs} +1 -1
- package/browser/cjs/{pI4yZSOoBjkftfKX.cjs → DxeyIaJ9kTqsgZRQ.cjs} +1 -1
- package/browser/cjs/DzZiFk2M690x2Na1.cjs +6 -0
- package/browser/cjs/{DnirKDgaxys3R_a-.cjs → DzhZxaJEM_tDkpp3.cjs} +1 -1
- package/browser/cjs/{KuiK9SKQWvWBM3--.cjs → FNnpnCx0BZnP5O_r.cjs} +1 -1
- package/browser/cjs/{BlswEA5cHtxUqfLX.cjs → IvtzDl_wnrZdNyGU.cjs} +2 -2
- package/browser/cjs/{BprNr_E9PJXMBdn3.cjs → KsrjGYui6AhDRqb2.cjs} +1 -1
- package/browser/cjs/{BrKvmHqdJp6qNOFB.cjs → L04N6OHKBL9HtaR6.cjs} +1 -1
- package/browser/cjs/{oGzYb3Ra2l_2M4Fe.cjs → LBIRCj-htZFg3vYw.cjs} +2 -2
- package/browser/cjs/{D6Gix9vU3zy6x0wx.cjs → h58md3Y3c_TrQFVs.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{v9zKXidk5AvKGkz7.cjs → n8FQtLqAFmSMvjE4.cjs} +1 -1
- package/browser/cjs/{CWOIza8vwfNX5KIr.cjs → ogfsvA_pd4h9pATi.cjs} +1 -1
- package/browser/cjs/{D6pv0GOQycMcOyhu.cjs → tRdYhB45JaC-A2GK.cjs} +1 -1
- package/browser/cjs/{CBNecyEra54crLep.cjs → vboT_zkA4ebu7qb6.cjs} +2 -2
- package/browser/cjs/{D80cB8tOFfQNF4oS.cjs → xadQkBVply50Pfsy.cjs} +2 -2
- package/{cdn/assets/Bgcy7JI6AzSoovcw.js → browser/esm/1oqbqwBb8fBG-SRu.mjs} +1 -1
- package/{cdn/assets/BkjhtLKdZkaleH6j.js → browser/esm/2Q2-3kHAmqNdLDwx.mjs} +1 -1
- package/browser/esm/{CKOpVcqPaB2s4dTb.mjs → 95UgFJTU5KLLCYf1.mjs} +1 -1
- package/{cdn/assets/DhT-2pf586yDvyqZ.js → browser/esm/B-ODKhdttBS8vm_N.mjs} +1 -1
- package/browser/esm/B234kPv37vM5M_fj.mjs +147 -0
- package/browser/esm/{m7fz1VY0WrHhVE1u.mjs → B2xZE9bUnQFNq8II.mjs} +1 -1
- package/browser/esm/{ee5ZMqTpvvsprimB.mjs → B2zSi60WxtMoZe1R.mjs} +6 -6
- package/browser/esm/{CUq15BKQ0G25o03H.mjs → B6jSw9o_80cFla40.mjs} +16 -16
- package/browser/esm/{CrqJMWWEjzFZ-_Pk.mjs → BACzy7WLUtqbx_4H.mjs} +1 -1
- package/browser/esm/{BTM0pYbZvfLqBj6Z.mjs → BBklcrb4gMwawbW0.mjs} +2 -2
- package/browser/esm/{NohZsi_dnB1kc2oI.mjs → BNtLK4CbKRlPzlKT.mjs} +1 -1
- package/{cdn/assets/BfH0870g7ogWyWTa.js → browser/esm/BQEH9vzW6MLoEQpS.mjs} +1 -1
- package/{cdn/assets/JgQgURqWEwvTv_wi.js → browser/esm/B_8aGF2Dt1micWZg.mjs} +1 -1
- package/browser/esm/{CHOlVNulci003tpR.mjs → B_x9S07WXHgD87c0.mjs} +4 -4
- package/browser/esm/{J_m4I2bQAeYSJPWS.mjs → Bab--HPvvqz_dgfE.mjs} +1 -1
- package/browser/esm/{Ce3pCanMx2TnvT0I.mjs → BdviOCLagnd001u0.mjs} +7 -7
- package/browser/esm/{DRVrzDz7nVU_faHO.mjs → BgY1Ko1OPI79IwRW.mjs} +490 -490
- package/browser/esm/{CR9jsRCQsHJO01J4.mjs → BkUCD0Hn_pXVY8BG.mjs} +19 -19
- package/{cdn/assets/DYqsn4bTq8tt9z2d.js → browser/esm/BoXZxgubGIYbaajd.mjs} +1 -1
- package/{cdn/assets/C4aAJQZlcVwK7Bv7.js → browser/esm/BpD67geWfh3vSqJb.mjs} +1 -1
- package/browser/esm/{BsryTthQuZrS1w0h.mjs → BrFqlosk1B5lJ1wT.mjs} +3 -3
- package/{cdn/assets/ji2x5yzvwhn2JiFp.js → browser/esm/C7IRTn7ZcC4A4N9E.mjs} +1 -1
- package/browser/esm/{P5B5SOdOUaZr99nj.mjs → CE_I19FK1G8gpXuH.mjs} +6 -6
- package/browser/esm/{uYFnTWRHS-M71aW3.mjs → CGT3S9MzdRk9rFZa.mjs} +48 -48
- package/browser/esm/{B7wG8K-M9ldv3InT.mjs → CIyDrXxc2D-28-mW.mjs} +1 -1
- package/{cdn/assets/YFMiozbFWZjo74Td.js → browser/esm/CNtcjn_Cn7cQOWP5.mjs} +1 -1
- package/{cdn/assets/_N4vH5kWapbfarDc.js → browser/esm/CQ7RZs6ggMhy9TKv.mjs} +1 -1
- package/{cdn/assets/Cb1GBW9E5GfRvhuS.js → browser/esm/CXwDT0Rc1CeP5C6C.mjs} +1 -1
- package/browser/esm/{Bioh6T6jynIt2aBf.mjs → Cck1ZCX3140-xMNV.mjs} +6 -6
- package/browser/esm/{C3ZYwFCm4zV0PV7L.mjs → CdWkJs6rYnFmetuJ.mjs} +1 -1
- package/browser/esm/{BVvwFIl1xvigNZTj.mjs → Cf3RGVsf9qqF9dVB.mjs} +1 -1
- package/browser/esm/{CFey64nL6K_JDHyo.mjs → CrM-2l9BMnS0Lkh1.mjs} +1 -1
- package/browser/esm/{DswWgS_zGnCjt804.mjs → CuTudjzephfkt36F.mjs} +5 -5
- package/browser/esm/{B3ECMs0QjPnXbJEw.mjs → Cx11CBX88voKcCgb.mjs} +12 -12
- package/browser/esm/{BzCCXyLxR1Tx_PQ6.mjs → D2h5jM12-ZC4VX_T.mjs} +53 -53
- package/browser/esm/{BzXLeceeaODxxlsN.mjs → D3h1wZvV9AHRqaZq.mjs} +4 -4
- package/browser/esm/{CbiCECqtZzDk6jeR.mjs → D8NWmHOvxbnTKXqJ.mjs} +6 -6
- package/browser/esm/{0egw9xufQUK5XQZ5.mjs → D8xKI9bNALrDO0EI.mjs} +1 -1
- package/{cdn/assets/B9wr_AwSb0JtPoMv.js → browser/esm/DCyiJ8jlUG-B76Tb.mjs} +1 -1
- package/browser/esm/{C2sR98LOxBBkEECx.mjs → DDCRVmkZtcoY5u7P.mjs} +1 -1
- package/browser/esm/{CSU3ycILp620z_i8.mjs → DElt69us9iAn7_Ww.mjs} +2 -2
- package/browser/esm/{CqxLzaP5z64d6Lx4.mjs → DMKVMuMh4XJ4LGTp.mjs} +1 -1
- package/{cdn/assets/CfEvt84zrQGwFpt2.js → browser/esm/DVTFDA3Ssz9_4NcI.mjs} +1 -1
- package/{cdn/assets/DK5o4bmDWZoxlyie.js → browser/esm/DWvwKL3aLkiqeSo1.mjs} +8 -8
- package/{cdn/assets/CzgyRT7Dh3AVKcWl.js → browser/esm/DZUm1u-H4bx3eAew.mjs} +1 -1
- package/browser/esm/{VzlXiTXfqwuLrkgg.mjs → Dfx2_yQe2iRmxaeg.mjs} +1 -1
- package/browser/esm/{DvaoVWL-VdS7k_i3.mjs → DpfLzruLjqt5WaT4.mjs} +11 -11
- package/browser/esm/{C4dAWyoYzg5AFxSE.mjs → DsdO4-Dxa2PoruYq.mjs} +13 -13
- package/browser/esm/DwDbdg2MYgA3Tnfe.mjs +11 -0
- package/{cdn/assets/BeENppGCoF_AwA6g.js → browser/esm/FMJGVl5BuwTspvXB.mjs} +2 -2
- package/{cdn/assets/BDSX8FAyHcAmsE-T.js → browser/esm/Gye5i_y6LTkSeZWV.mjs} +1 -1
- package/browser/esm/{BrGzSkrQVV-CCVui.mjs → T7q0269_QPB8lCOv.mjs} +1 -1
- package/{cdn/assets/D4aEzWRsHbRiDZQf.js → browser/esm/Yx74P2tuzTl_vWeR.mjs} +20410 -19852
- package/browser/esm/{DjtYK-s8g6tP0TRw.mjs → ftYo_nnqtr7QkIOP.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/DKrP22W3r6dc2ll8.js → browser/esm/pOUm75Y0UEeP9DxX.mjs} +1 -1
- package/{cdn/assets/wrn_BUWuBI2ou-lE.js → browser/esm/ymbdHoeF6JmtSeHf.mjs} +1 -1
- package/browser/esm/{C1TJTYVoSUvCsI72.mjs → yvf7TZWzRux6eb-r.mjs} +2 -2
- package/browser/esm/{6dkX2k_H0PA_iz5X.mjs → zd-Kc5cLey9IZ283.mjs} +1 -1
- package/cdn/assets/{D6gMyvRPXwYEpaiW.js → -ZtRkphm8qlj8ebp.js} +1 -1
- package/{browser/esm/Bgcy7JI6AzSoovcw.mjs → cdn/assets/1oqbqwBb8fBG-SRu.js} +1 -1
- package/{browser/esm/BkjhtLKdZkaleH6j.mjs → cdn/assets/2Q2-3kHAmqNdLDwx.js} +1 -1
- package/cdn/assets/{CdoIc8OarIB8C5y3.js → 3tDFtZFz8w76rYBA.js} +18 -18
- package/cdn/assets/{CvTBNZMoY5-DwtAb.js → 5dKHsl0r2V-JmyNP.js} +2 -2
- package/cdn/assets/{BZpRwfavZD9rO_v8.js → 8lSvXDLbx-eV1Nz0.js} +490 -490
- package/cdn/assets/{CKOpVcqPaB2s4dTb.js → 95UgFJTU5KLLCYf1.js} +1 -1
- package/{browser/esm/DhT-2pf586yDvyqZ.mjs → cdn/assets/B-ODKhdttBS8vm_N.js} +1 -1
- package/cdn/assets/{m7fz1VY0WrHhVE1u.js → B2xZE9bUnQFNq8II.js} +1 -1
- package/cdn/assets/{CrqJMWWEjzFZ-_Pk.js → BACzy7WLUtqbx_4H.js} +1 -1
- package/cdn/assets/{gRJ4OcAtWEBEGLJD.js → BCA5bMx1egW3eRmp.js} +14 -14
- package/cdn/assets/{DTHfoEyAv88YJtid.js → BH4LGqC8Z4Iqh7XS.js} +2 -2
- package/cdn/assets/{NohZsi_dnB1kc2oI.js → BNtLK4CbKRlPzlKT.js} +1 -1
- package/{browser/esm/BfH0870g7ogWyWTa.mjs → cdn/assets/BQEH9vzW6MLoEQpS.js} +1 -1
- package/cdn/assets/{TAuxEP6K9MOe8hvY.js → BXHEwZhPbMaOdb_Z.js} +3 -3
- package/cdn/assets/{DuVOZ5CVHDzuF-Wf.js → BXs2QdxsuX2lw_x3.js} +73 -73
- package/{browser/esm/JgQgURqWEwvTv_wi.mjs → cdn/assets/B_8aGF2Dt1micWZg.js} +1 -1
- package/cdn/assets/{J_m4I2bQAeYSJPWS.js → Bab--HPvvqz_dgfE.js} +1 -1
- package/{browser/esm/DYqsn4bTq8tt9z2d.mjs → cdn/assets/BoXZxgubGIYbaajd.js} +1 -1
- package/{browser/esm/C4aAJQZlcVwK7Bv7.mjs → cdn/assets/BpD67geWfh3vSqJb.js} +1 -1
- package/cdn/assets/{jeiAiNavXwDjx5bH.js → BqOHcOxJPktjB8oL.js} +12 -12
- package/{browser/esm/Z1fSZhtHNjC6OoN6.mjs → cdn/assets/Bqca9Nkofzm6UFZ1.js} +20260 -20050
- package/cdn/assets/{DAMni_kLlITX8qAW.js → BtXsNo8KL5XLE7xA.js} +50 -50
- package/cdn/assets/{CxFPsh5ojrvYoLqP.js → ByTOIrEYNeA_wpXy.js} +80 -80
- package/cdn/assets/{IQp8evg14s1_pMGI.js → C2wV3vQ-5dEezy7R.js} +3 -3
- package/cdn/assets/{BZ1FXLdV7kLoj8S2.js → C3urWNCGtWeKM42K.js} +4 -4
- package/cdn/assets/{Bp1BVz04Xy4W95PB.js → C75SpXwjYmdo6WC6.js} +10 -10
- package/{browser/esm/ji2x5yzvwhn2JiFp.mjs → cdn/assets/C7IRTn7ZcC4A4N9E.js} +1 -1
- package/cdn/assets/{DZSQDf-SlYIAnwqI.js → CHESIwo-YlB-g6gr.js} +2 -2
- package/cdn/assets/{B7wG8K-M9ldv3InT.js → CIyDrXxc2D-28-mW.js} +1 -1
- package/{browser/esm/YFMiozbFWZjo74Td.mjs → cdn/assets/CNtcjn_Cn7cQOWP5.js} +1 -1
- package/{browser/esm/_N4vH5kWapbfarDc.mjs → cdn/assets/CQ7RZs6ggMhy9TKv.js} +1 -1
- package/{browser/esm/Cb1GBW9E5GfRvhuS.mjs → cdn/assets/CXwDT0Rc1CeP5C6C.js} +1 -1
- package/cdn/assets/{C3ZYwFCm4zV0PV7L.js → CdWkJs6rYnFmetuJ.js} +1 -1
- package/cdn/assets/{BVvwFIl1xvigNZTj.js → Cf3RGVsf9qqF9dVB.js} +1 -1
- package/cdn/assets/{McZLFG7PefCrtXxD.js → Cn0K1aSWZCVlK66V.js} +1 -1
- package/cdn/assets/{mgzh0Oj545G9VFmY.js → CnLv6xBX-8QXgr8C.js} +7 -7
- package/cdn/assets/{CFey64nL6K_JDHyo.js → CrM-2l9BMnS0Lkh1.js} +1 -1
- package/cdn/assets/{CaHwS8usPT5gIFuY.js → Cwd_PFnZO3GB10Ib.js} +10 -10
- package/cdn/assets/{CR-xAI2miMYh-gdy.js → D6Bd-wh8DUctiTBq.js} +4 -4
- package/cdn/assets/{0egw9xufQUK5XQZ5.js → D8xKI9bNALrDO0EI.js} +1 -1
- package/{browser/esm/B9wr_AwSb0JtPoMv.mjs → cdn/assets/DCyiJ8jlUG-B76Tb.js} +1 -1
- package/cdn/assets/{C2sR98LOxBBkEECx.js → DDCRVmkZtcoY5u7P.js} +1 -1
- package/cdn/assets/{BqbxC6sS2OoaM51Y.js → DNDzb50fYztOU6sL.js} +2 -2
- package/cdn/assets/{ddSl0Ga-rXVB9Yci.js → DPUzShmQFsZiAy1y.js} +14 -14
- package/cdn/assets/{UGRaW68kY1lQin4c.js → DVE11KnTbk8UCl2L.js} +4 -4
- package/{browser/esm/CfEvt84zrQGwFpt2.mjs → cdn/assets/DVTFDA3Ssz9_4NcI.js} +1 -1
- package/{browser/esm/CzgyRT7Dh3AVKcWl.mjs → cdn/assets/DZUm1u-H4bx3eAew.js} +1 -1
- package/cdn/assets/DZwStU2_wQO6T5Ug.js +12 -0
- package/cdn/assets/{Bv7E-FgORAWOkyiV.js → DfsGU1WZFPDvuEF7.js} +2 -2
- package/cdn/assets/{VzlXiTXfqwuLrkgg.js → Dfx2_yQe2iRmxaeg.js} +1 -1
- package/{browser/esm/UQSXr-cpRWqp8Ktj.mjs → cdn/assets/DnoVwExJraUmPO4h.js} +2 -2
- package/cdn/assets/{DWxb-keKnWDZ32ov.js → Dqv_r2crwVb5hDRt.js} +2 -2
- package/cdn/assets/{DMOM_dk7px3Id2fD.js → DtDieGCmD7tfP-IC.js} +21 -21
- package/{browser/esm/B4U-HbDDW978wKeB.mjs → cdn/assets/F9FRh_1TEIanjKfd.js} +20 -20
- package/{browser/esm/BDSX8FAyHcAmsE-T.mjs → cdn/assets/Gye5i_y6LTkSeZWV.js} +1 -1
- package/cdn/assets/JUjq8dsNEwlP2TmD.js +149 -0
- package/cdn/assets/{tbqH71TvrNeRjwAy.js → L4iwFaFUwrc5iENg.js} +3 -3
- package/cdn/assets/{pv07rmyN2zy5KZrb.js → RgzmLUjP4Fyf4q1K.js} +2 -2
- package/cdn/assets/{BrGzSkrQVV-CCVui.js → T7q0269_QPB8lCOv.js} +1 -1
- package/cdn/assets/{BFfLoUaapPcM_eb0.js → eIefNRuHeizv4VyQ.js} +10 -10
- package/cdn/assets/{B4MTgKmMZcXoDlYG.js → ij04ZtjSyJ1O2CRc.js} +2 -2
- package/{browser/esm/DKrP22W3r6dc2ll8.mjs → cdn/assets/pOUm75Y0UEeP9DxX.js} +1 -1
- package/{browser/esm/wrn_BUWuBI2ou-lE.mjs → cdn/assets/ymbdHoeF6JmtSeHf.js} +1 -1
- package/cdn/assets/{6dkX2k_H0PA_iz5X.js → zd-Kc5cLey9IZ283.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +16 -5
- package/browser/cjs/B7MW5qdFHlXONQ6l.cjs +0 -6
- package/browser/cjs/CTT_jzhLio55PSMa.cjs +0 -32
- package/browser/cjs/Cd4lc7sbp3kKfIbA.cjs +0 -6
- package/browser/cjs/Cfr9LxunC2fgJtM2.cjs +0 -11
- package/browser/cjs/DH59epfNQumKG6UO.cjs +0 -6
- package/browser/cjs/Dg0Zl23k4ZwHK5Nt.cjs +0 -6
- package/browser/cjs/MD9O1VNhhdH5RoiA.cjs +0 -330
- package/browser/esm/ChrPZQnuQU-qVVa1.mjs +0 -147
- package/cdn/assets/BHyn4CasWPQ92Eud.js +0 -149
|
@@ -1,17 +1,17 @@
|
|
|
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.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});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
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.
|
|
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 a=new Error(r.message);a.stack=r.stack,r.cause&&(a.cause=r.cause),o.reject(a)}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.6
|
|
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.
|
|
11
11
|
*/
|
|
12
12
|
const W = { Number: "n", String: "s", Boolean: "b", Error: "e", Null: "z" };
|
|
13
|
-
var Re,
|
|
14
|
-
(
|
|
13
|
+
var Re, ie, d;
|
|
14
|
+
(ie = Re || (Re = {})).Orientation = { Column: "column", Row: "row" }, ie.Orientations = { ...ie.Orientation, Both: "both" }, ie.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
|
|
15
15
|
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!" };
|
|
16
16
|
class t extends Error {
|
|
17
17
|
constructor(c, h, fe, B) {
|
|
@@ -40,7 +40,7 @@ var Re, ae, d;
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
e.Known = t;
|
|
43
|
-
class
|
|
43
|
+
class n 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 = n;
|
|
56
|
+
class r 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 = r;
|
|
65
65
|
class o extends t {
|
|
66
66
|
constructor(c, h) {
|
|
67
67
|
super(e.Code.Div0, e.Label.Div0, c, h);
|
|
@@ -71,7 +71,7 @@ var Re, ae, d;
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
e.Div0 = o;
|
|
74
|
-
class
|
|
74
|
+
class a extends t {
|
|
75
75
|
constructor(c, h) {
|
|
76
76
|
super(e.Code.Value, e.Label.Value, c, h);
|
|
77
77
|
}
|
|
@@ -79,8 +79,8 @@ var Re, ae, d;
|
|
|
79
79
|
this.code = e.Code.Value;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
e.Value =
|
|
83
|
-
class
|
|
82
|
+
e.Value = a;
|
|
83
|
+
class i extends t {
|
|
84
84
|
constructor(c, h) {
|
|
85
85
|
super(e.Code.Ref, e.Label.Ref, c, h);
|
|
86
86
|
}
|
|
@@ -88,7 +88,7 @@ var Re, ae, d;
|
|
|
88
88
|
this.code = e.Code.Ref;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
e.Ref =
|
|
91
|
+
e.Ref = i;
|
|
92
92
|
class l extends t {
|
|
93
93
|
constructor(c, h) {
|
|
94
94
|
super(e.Code.Name, e.Label.Name, c, h);
|
|
@@ -209,86 +209,84 @@ 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 nt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), rt = /* @__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], n = _[t];
|
|
215
|
+
rt.set(d.Label[t], n), ot.set(d.Code[t], n);
|
|
216
|
+
const r = new n();
|
|
217
|
+
nt.set(r.getLabel(), r), Te.set(r.getCode(), r);
|
|
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) => nt.get(e), T.newTypedError = (e, t, n) => {
|
|
222
|
+
let r;
|
|
223
|
+
return r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = T.Unknown), new r(t, n);
|
|
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.6
|
|
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.
|
|
230
230
|
*/
|
|
231
|
-
const
|
|
232
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Tt, EmptyRect: vt, EmptyTopLeft: Ct }, Symbol.toStringTag, { value: "Module" }));
|
|
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) => {
|
|
231
|
+
const j = { Column: "column", Row: "row" }, Ct = Object.freeze({ colIndex: 0, rowIndex: 0 }), vt = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), at = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, it = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, Tt = (e, t) => e.rowEnd === t.rowEnd ? t.colEnd - e.colEnd : t.rowEnd - e.rowEnd, _t = (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 ? Tt : _t : e !== j.Column ? it : at, 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
232
|
if (e === t) return !0;
|
|
235
233
|
if (!e || !t || e.length !== t.length) return !1;
|
|
236
|
-
for (let
|
|
234
|
+
for (let n = 0; n < e.length; n++) if (!Se(e[n], t[n])) return !1;
|
|
237
235
|
return !0;
|
|
238
|
-
}, me = (e, t,
|
|
236
|
+
}, me = (e, t, n) => {
|
|
239
237
|
if (!e && !t) return null;
|
|
240
|
-
if (!e) return
|
|
241
|
-
if (!t) return
|
|
242
|
-
const
|
|
243
|
-
let l =
|
|
244
|
-
return l ? (l.colStart =
|
|
238
|
+
if (!e) return n ? t : { ...t };
|
|
239
|
+
if (!t) return n ? e : { ...e };
|
|
240
|
+
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);
|
|
241
|
+
let l = n;
|
|
242
|
+
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
|
|
245
243
|
}, De = (e, t) => {
|
|
246
244
|
if (!t || t.length === 0) return e;
|
|
247
|
-
const
|
|
248
|
-
for (let
|
|
249
|
-
const o = t[
|
|
250
|
-
xe(
|
|
245
|
+
const n = { ...e };
|
|
246
|
+
for (let r = 0; r < t.length; r++) {
|
|
247
|
+
const o = t[r];
|
|
248
|
+
xe(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));
|
|
251
249
|
}
|
|
252
|
-
return
|
|
253
|
-
},
|
|
250
|
+
return n;
|
|
251
|
+
}, Ot = [null, null], It = (e, t, n) => {
|
|
254
252
|
if (e[0].value === e[1].value) return t;
|
|
255
253
|
};
|
|
256
|
-
function Ue(e, t = 2,
|
|
257
|
-
let
|
|
258
|
-
if (t <= 0 || e.length <= 1) return
|
|
259
|
-
let
|
|
254
|
+
function Ue(e, t = 2, n, r = j.Row, o) {
|
|
255
|
+
let a = [...e];
|
|
256
|
+
if (t <= 0 || e.length <= 1) return a;
|
|
257
|
+
let i = r === j.Column, l = 0, u = !1;
|
|
260
258
|
do {
|
|
261
|
-
const p =
|
|
262
|
-
|
|
259
|
+
const p = a.sort(lt(i ? j.Row : j.Column));
|
|
260
|
+
a = [], a.push(p[0]);
|
|
263
261
|
const w = p.length;
|
|
264
262
|
let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
265
263
|
for (let U = 1; U < w; U++) {
|
|
266
264
|
const I = p[U];
|
|
267
265
|
let J = !1;
|
|
268
|
-
if (J =
|
|
269
|
-
let E = { colStart: y, rowStart: x, colEnd:
|
|
270
|
-
if (f.value !== void 0 && (E.value = f.value),
|
|
266
|
+
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) {
|
|
267
|
+
let E = { colStart: y, rowStart: x, colEnd: i ? I.colEnd : A, rowEnd: i ? D : I.rowEnd };
|
|
268
|
+
if (f.value !== void 0 && (E.value = f.value), n) {
|
|
271
269
|
const c = o ?? [null, null];
|
|
272
|
-
c[0] = f, c[1] = I, E =
|
|
270
|
+
c[0] = f, c[1] = I, E = n(c, E, r);
|
|
273
271
|
}
|
|
274
272
|
if (E) {
|
|
275
|
-
|
|
273
|
+
a[g] = E, u = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
276
274
|
continue;
|
|
277
275
|
}
|
|
278
276
|
}
|
|
279
|
-
|
|
277
|
+
a[++g] = I, f = I, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
|
|
280
278
|
}
|
|
281
|
-
l++,
|
|
282
|
-
} while (l < t && u &&
|
|
283
|
-
return
|
|
279
|
+
l++, i = !i, l === 1 && (u = !0);
|
|
280
|
+
} while (l < t && u && a.length > 1);
|
|
281
|
+
return a;
|
|
284
282
|
}
|
|
285
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell:
|
|
283
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: Ct, EmptyRange: vt, cellToRange: (e, t) => {
|
|
286
284
|
if (!e) return null;
|
|
287
|
-
let
|
|
288
|
-
return
|
|
289
|
-
}, columnFirstCellComparator: Le, columnFirstRangeComparator:
|
|
290
|
-
const
|
|
291
|
-
let
|
|
285
|
+
let n = t;
|
|
286
|
+
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;
|
|
287
|
+
}, columnFirstCellComparator: Le, columnFirstRangeComparator: at, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? Me : je : e !== j.Column ? Ae : Le, createConflatingRanges: (e, t = !1) => {
|
|
288
|
+
const n = [];
|
|
289
|
+
let r, o, a = Number.MIN_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
292
290
|
return { append: (l, u, p) => {
|
|
293
291
|
let w = !0;
|
|
294
292
|
const g = p !== void 0;
|
|
@@ -296,44 +294,46 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
|
|
|
296
294
|
const x = e ? e(o, p, t) : o === p ? p : void 0;
|
|
297
295
|
x === void 0 ? w = !1 : p = x;
|
|
298
296
|
}
|
|
299
|
-
if (w && u ===
|
|
300
|
-
|
|
297
|
+
if (w && u === i + 1 && l === a) return t ? r.rowEnd = u : r.colEnd = u, i = u, void (o = p);
|
|
298
|
+
r && n.push(r);
|
|
301
299
|
const f = t ? l : u, y = t ? u : l;
|
|
302
|
-
|
|
303
|
-
}, done: (l) => (
|
|
304
|
-
}, createRangeComparator: lt, defaultRange: (e, t,
|
|
300
|
+
r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i = u, o = p;
|
|
301
|
+
}, done: (l) => (r && (n.push(r), r = null), l ? Ue(n, 3, l === !0 ? It : l, t ? j.Column : j.Row, Ot) : n) };
|
|
302
|
+
}, createRangeComparator: lt, 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: De, extendRangeToUnionRanges: (e, t) => {
|
|
305
303
|
if (!t || t.length === 0) return e;
|
|
306
|
-
let
|
|
307
|
-
for (; !Se(
|
|
308
|
-
return
|
|
304
|
+
let n = e, r = null;
|
|
305
|
+
for (; !Se(n, r); ) r = n, n = De(r, t);
|
|
306
|
+
return n;
|
|
309
307
|
}, indexOfCoords: (e, t) => {
|
|
310
|
-
const
|
|
311
|
-
for (let
|
|
308
|
+
const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
309
|
+
for (let r = t.length - 1; r >= 0; r--) if (xe(n, t[r])) return r;
|
|
312
310
|
return -1;
|
|
313
|
-
}, intersectRanges: (e, t,
|
|
314
|
-
if (!e) return
|
|
315
|
-
if (!t) return
|
|
311
|
+
}, intersectRanges: (e, t, n) => {
|
|
312
|
+
if (!e) return n ? t : { ...t };
|
|
313
|
+
if (!t) return n ? e : { ...e };
|
|
316
314
|
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 =
|
|
315
|
+
const r = Math.max(e.colStart, t.colStart), o = Math.max(e.rowStart, t.rowStart), a = Math.min(e.colEnd, t.colEnd), i = Math.min(e.rowEnd, t.rowEnd);
|
|
316
|
+
let l = n;
|
|
317
|
+
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
|
|
320
318
|
}, isCellWithinRange: (e, t) => {
|
|
321
319
|
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:
|
|
320
|
+
const n = e.rowIndex;
|
|
321
|
+
if (n < t.rowStart || n > t.rowEnd) return !1;
|
|
322
|
+
const r = e.colIndex;
|
|
323
|
+
return !(r < t.colStart || r > t.colEnd);
|
|
324
|
+
}, 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: it, 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) => {
|
|
327
325
|
if (!e || e.length === 0) return null;
|
|
328
326
|
if (e.length === 1 && !t) return e[0];
|
|
329
|
-
let
|
|
330
|
-
for (let o = 1; o < e.length; o++)
|
|
331
|
-
return t && (
|
|
327
|
+
let r = e[0];
|
|
328
|
+
for (let o = 1; o < e.length; o++) r = me(r, e[o], n);
|
|
329
|
+
return t && (r = me(r, t, n)), r;
|
|
332
330
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
331
|
+
const S = { html: "text/html", plain: "text/plain", png: "image/png" }, Nt = Object.freeze({ left: 0, top: 0 }), Rt = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), kt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 });
|
|
332
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: kt, EmptyRect: Rt, EmptyTopLeft: Nt }, 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(n) {
|
|
336
|
+
return n.$$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 re(e, t) {
|
|
346
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
347
|
+
var n;
|
|
348
348
|
}
|
|
349
|
-
function jt(e, t,
|
|
350
|
-
return e.concat(t).map(function(
|
|
351
|
-
return
|
|
349
|
+
function jt(e, t, n) {
|
|
350
|
+
return e.concat(t).map(function(r) {
|
|
351
|
+
return re(r, n);
|
|
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(n) {
|
|
357
|
+
return Object.propertyIsEnumerable.call(t, n);
|
|
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, n) {
|
|
369
|
+
const r = {};
|
|
370
|
+
return n.isMergeableObject(e) && Be(e).forEach(function(o) {
|
|
371
|
+
r[o] = re(e[o], n);
|
|
372
372
|
}), Be(t).forEach(function(o) {
|
|
373
|
-
(function(
|
|
374
|
-
return $e(
|
|
375
|
-
})(e, o) || ($e(e, o) &&
|
|
376
|
-
if (!
|
|
377
|
-
const l =
|
|
373
|
+
(function(a, i) {
|
|
374
|
+
return $e(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
|
|
375
|
+
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(a, i) {
|
|
376
|
+
if (!i.customMerge) return Y;
|
|
377
|
+
const l = i.customMerge(a);
|
|
378
378
|
return typeof l == "function" ? l : Y;
|
|
379
|
-
})(o,
|
|
380
|
-
}),
|
|
379
|
+
})(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
380
|
+
}), r;
|
|
381
381
|
}
|
|
382
|
-
function Y(e, t,
|
|
383
|
-
(
|
|
384
|
-
const
|
|
385
|
-
return
|
|
382
|
+
function Y(e, t, n) {
|
|
383
|
+
(n = n || {}).arrayMerge = n.arrayMerge || jt, n.isMergeableObject = n.isMergeableObject || Mt, n.cloneUnlessOtherwiseSpecified = re;
|
|
384
|
+
const r = Array.isArray(t);
|
|
385
|
+
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Pt(e, t, n) : re(t, n);
|
|
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(n, r) {
|
|
390
|
+
return Y(n, r, 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((n, r) => n === t[r]), ne = (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, n = 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 n(e, t) ? null : e;
|
|
401
|
+
const r = Object.keys(e);
|
|
402
|
+
if (r.length === 0) return null;
|
|
403
403
|
let o = !1;
|
|
404
|
-
for (let
|
|
405
|
-
const
|
|
406
|
-
ut(e[
|
|
404
|
+
for (let a = 0; a < r.length; a++) {
|
|
405
|
+
const i = r[a];
|
|
406
|
+
ut(e[i], t?.[i], n) === null && (o = !0, delete e[i]);
|
|
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, n) {
|
|
418
|
+
const r = e.slice();
|
|
419
|
+
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
420
420
|
}, asNumber: (e) => {
|
|
421
421
|
const t = Ut(e);
|
|
422
422
|
return Number.isFinite(t) ? t : 0;
|
|
@@ -428,330 +428,330 @@ 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, n = !1) {
|
|
432
|
+
let r, o, a, i, l = 0;
|
|
433
433
|
function u() {
|
|
434
434
|
let w = Date.now() - l;
|
|
435
|
-
w < t && w >= 0 ?
|
|
435
|
+
w < t && w >= 0 ? r = setTimeout(u, t - w) : (r = null, n || (i = e.apply(a, o), a = o = null));
|
|
436
436
|
}
|
|
437
437
|
t == null && (t = 100);
|
|
438
438
|
const p = function() {
|
|
439
|
-
|
|
440
|
-
var w =
|
|
441
|
-
return
|
|
439
|
+
a = globalThis, o = arguments, l = Date.now();
|
|
440
|
+
var w = n && !r;
|
|
441
|
+
return r || (r = setTimeout(u, t)), w && (i = e.apply(a, o), a = o = null), i;
|
|
442
442
|
};
|
|
443
443
|
return p.clear = function() {
|
|
444
|
-
|
|
444
|
+
r && (clearTimeout(r), r = null);
|
|
445
445
|
}, p.flush = function() {
|
|
446
|
-
|
|
446
|
+
r && (i = e.apply(a, o), a = o = null, clearTimeout(r), r = 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, n) {
|
|
449
|
+
if (t === n) return !0;
|
|
450
|
+
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
451
|
+
if (t.constructor !== n.constructor) return !1;
|
|
452
|
+
let r, o, a;
|
|
453
453
|
if (Array.isArray(t)) {
|
|
454
|
-
if (
|
|
455
|
-
for (o =
|
|
454
|
+
if (r = t.length, r != n.length) return !1;
|
|
455
|
+
for (o = r; o-- !== 0; ) if (!e(t[o], n[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 && n instanceof Map) {
|
|
459
|
+
if (t.size !== n.size) return !1;
|
|
460
|
+
for (o of t.entries()) if (!n.has(o[0])) return !1;
|
|
461
|
+
for (o of t.entries()) if (!e(o[1], n.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 && n instanceof Set) {
|
|
465
|
+
if (t.size !== n.size) return !1;
|
|
466
|
+
for (o of t.entries()) if (!n.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(n)) {
|
|
470
|
+
if (r = t.length, r != n.length) return !1;
|
|
471
|
+
for (o = r; o-- !== 0; ) if (t[o] !== n[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 (
|
|
478
|
-
for (o =
|
|
479
|
-
for (o =
|
|
480
|
-
let
|
|
481
|
-
if ((
|
|
474
|
+
if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags;
|
|
475
|
+
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf();
|
|
476
|
+
if (t.toString !== Object.prototype.toString) return t.toString() === n.toString();
|
|
477
|
+
if (a = Object.keys(t), r = a.length, r !== Object.keys(n).length) return !1;
|
|
478
|
+
for (o = r; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(n, a[o])) return !1;
|
|
479
|
+
for (o = r; o-- !== 0; ) {
|
|
480
|
+
let i = a[o];
|
|
481
|
+
if ((i !== "_owner" || !t.$$typeof) && !e(t[i], n[i])) return !1;
|
|
482
482
|
}
|
|
483
483
|
return !0;
|
|
484
484
|
}
|
|
485
|
-
return t != t &&
|
|
485
|
+
return t != t && n != n;
|
|
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((n) => {
|
|
488
|
+
typeof t[n] != "object" || t[n] === null || Object.isFrozen(t[n]) || e(t[n]);
|
|
489
489
|
}), t;
|
|
490
490
|
}, deepMerge: Y, diffValues: (e, t) => {
|
|
491
|
-
const
|
|
492
|
-
for (let
|
|
493
|
-
const
|
|
494
|
-
e[
|
|
495
|
-
}
|
|
496
|
-
return Object.keys(
|
|
497
|
-
}, findEqualOrGreater: function(e, t,
|
|
498
|
-
let
|
|
499
|
-
for (;
|
|
500
|
-
let
|
|
501
|
-
if (
|
|
502
|
-
|
|
491
|
+
const n = {}, r = Object.keys(t), o = r.length;
|
|
492
|
+
for (let a = 0; a < o; a++) {
|
|
493
|
+
const i = r[a];
|
|
494
|
+
e[i] !== t[i] && (e[i] === void 0 ? n[i] = t[i] : n[i] = e[i]);
|
|
495
|
+
}
|
|
496
|
+
return Object.keys(n).length === 0 ? null : n;
|
|
497
|
+
}, findEqualOrGreater: function(e, t, n = ze) {
|
|
498
|
+
let r = 0, o = e.length - 1;
|
|
499
|
+
for (; r <= o; ) {
|
|
500
|
+
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
501
|
+
if (i === t) return a;
|
|
502
|
+
i < t ? r = a + 1 : o = a - 1;
|
|
503
503
|
}
|
|
504
|
-
return
|
|
505
|
-
}, findEqualOrLesser: function(e, t,
|
|
506
|
-
let
|
|
507
|
-
for (;
|
|
508
|
-
let
|
|
509
|
-
if (
|
|
510
|
-
|
|
504
|
+
return r;
|
|
505
|
+
}, findEqualOrLesser: function(e, t, n = ze) {
|
|
506
|
+
let r = e.length - 1, o = 0;
|
|
507
|
+
for (; r >= o; ) {
|
|
508
|
+
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
509
|
+
if (i === t) return a;
|
|
510
|
+
i > t ? r = a - 1 : o = a + 1;
|
|
511
511
|
}
|
|
512
|
-
return
|
|
513
|
-
}, findNextStep: (e, t = !0,
|
|
514
|
-
const
|
|
515
|
-
return Math.min(o, Math[t ? "ceil" : "floor"](
|
|
512
|
+
return r;
|
|
513
|
+
}, findNextStep: (e, t = !0, n = 15, r = 10, o = 400) => {
|
|
514
|
+
const a = Math.max(e - r, 0) + (t ? 1 : -1);
|
|
515
|
+
return Math.min(o, Math[t ? "ceil" : "floor"](a / n) * n + r);
|
|
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
|
|
524
|
-
if (!
|
|
525
|
-
let
|
|
526
|
-
if (typeof
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
return
|
|
520
|
+
const n = t.split(".");
|
|
521
|
+
let r = e;
|
|
522
|
+
for (let o = 0; o < n.length; o++) {
|
|
523
|
+
const a = n[o];
|
|
524
|
+
if (!r) return null;
|
|
525
|
+
let i = r[a];
|
|
526
|
+
if (typeof i == "function" && (i = i.bind(r)()), !i || !ne(i)) return i;
|
|
527
|
+
r = i;
|
|
528
|
+
}
|
|
529
|
+
return r ?? 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 n = Object.keys(e);
|
|
534
|
+
if (n.length !== Object.keys(t).length) return !1;
|
|
535
|
+
for (let r = 0; r < n.length; r++) if (e[n[r]] !== t[n[r]]) 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: 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: 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 && !ne(e[t - 1])) return e[t - 1];
|
|
543
|
+
let n = e[0] || {};
|
|
544
|
+
for (let r = 1; r < t; r++) n = Y(n, e[r] || {}, { arrayMerge: (o, a) => [...a] });
|
|
545
|
+
return n;
|
|
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
|
-
|
|
556
|
-
let o = null,
|
|
552
|
+
}, openFileDialog: (e = "*.*") => new Promise((t, n) => {
|
|
553
|
+
if (!Ge) return void n("Unable to open dialog with no dom.");
|
|
554
|
+
const r = document.createElement("input");
|
|
555
|
+
r.type = "file", r.accept = e;
|
|
556
|
+
let o = null, a = !1;
|
|
557
557
|
globalThis.addEventListener?.("focus", () => {
|
|
558
558
|
setTimeout(() => {
|
|
559
|
-
o ||
|
|
559
|
+
o || a || (a = !0, t(null));
|
|
560
560
|
}, 1e3);
|
|
561
|
-
}, { once: !0, passive: !0 }),
|
|
562
|
-
if (o =
|
|
563
|
-
if (
|
|
561
|
+
}, { once: !0, passive: !0 }), r.onchange = () => {
|
|
562
|
+
if (o = r.files[0], o) {
|
|
563
|
+
if (a) return void console.warn("File open detected after faux cancel.", o);
|
|
564
564
|
t(o);
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, r.autofocus = !0, r.click();
|
|
567
567
|
}), rafThrottle: (e) => {
|
|
568
|
-
let t,
|
|
569
|
-
|
|
568
|
+
let t, n = !1, r = function() {
|
|
569
|
+
n = !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(), n || (n = !0, requestAnimationFrame(r));
|
|
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 n = Ke(), r = { id: requestAnimationFrame(function o() {
|
|
580
|
+
Ke() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
|
|
581
581
|
}) };
|
|
582
|
-
return
|
|
582
|
+
return r;
|
|
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 n = 10 ** t;
|
|
586
|
+
return Number(Math.round(e * n) / n);
|
|
587
|
+
}, setToPath: (e, t, n) => {
|
|
588
|
+
const r = 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
|
|
592
|
-
const
|
|
593
|
-
let l = o[
|
|
594
|
-
if (l == null && (l = {}, o[
|
|
591
|
+
for (let a = 0; o && a < r.length - 1; a++) {
|
|
592
|
+
const i = r[a];
|
|
593
|
+
let l = o[i];
|
|
594
|
+
if (l == null && (l = {}, o[i] = l), !ne(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 n != "number" && typeof n != "boolean" && typeof n != "string" && !ne(n)) throw new Error(\`Can not set path to \${n} that is not a a supported primitive.\`);
|
|
598
|
+
return o[r[r.length - 1]] = n, 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 n = 0 | t, r = t - n, o = 0, a = 0, i = 1;
|
|
603
|
+
if (r > 5e-8) for (; a < 8 && Math.abs(o / i - r) > 5e-8; ) a++, i *= 10, o = Math.round(r * i);
|
|
604
|
+
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(n + 1)), fpLength: a };
|
|
605
|
+
}, subtractRect: (e, t, n = !1) => {
|
|
606
606
|
if (!t) return [e];
|
|
607
607
|
if (!qe(e, t)) return [];
|
|
608
|
-
const
|
|
608
|
+
const r = [];
|
|
609
609
|
let o = e;
|
|
610
|
-
const
|
|
611
|
-
t.top > o.top && t.top < o.bottom && (
|
|
612
|
-
},
|
|
613
|
-
t.bottom > o.top && t.bottom < o.bottom && (
|
|
610
|
+
const a = () => {
|
|
611
|
+
t.top > o.top && t.top < o.bottom && (r.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
|
|
612
|
+
}, i = () => {
|
|
613
|
+
t.bottom > o.top && t.bottom < o.bottom && (r.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 && (r.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 && (r.push({ ...o, right: t.left }), o = { ...o, left: t.left });
|
|
618
618
|
};
|
|
619
|
-
return
|
|
619
|
+
return n ? (u(), l(), a(), i()) : (a(), i(), l(), u()), r;
|
|
620
620
|
}, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
|
|
621
|
-
let
|
|
622
|
-
return (...
|
|
621
|
+
let n = null;
|
|
622
|
+
return (...r) => {
|
|
623
623
|
const o = Date.now();
|
|
624
|
-
(!
|
|
624
|
+
(!n || o - n >= t) && (n = o, e(...r));
|
|
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((r) => e(r));
|
|
630
630
|
if (typeof t.toString == "function" && t.toString !== Object.prototype.toString) return t.toString();
|
|
631
|
-
const
|
|
632
|
-
for (const
|
|
633
|
-
return
|
|
631
|
+
const n = {};
|
|
632
|
+
for (const r in t) t.hasOwnProperty(r) && (n[r] = e(t[r]));
|
|
633
|
+
return n;
|
|
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
|
|
639
|
-
return
|
|
636
|
+
const t = e.length, n = e[0].length, r = [];
|
|
637
|
+
for (let o = 0; o < n; o++) r[o] = Array(t);
|
|
638
|
+
for (let o = 0; o < t; o++) for (let a = 0; a < n; a++) r[a][o] = e[o][a];
|
|
639
|
+
return r;
|
|
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((n) => {
|
|
643
|
+
We(e, t) ? n(!0) : e.addEventListener("focusin", () => {
|
|
644
|
+
n(!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), n = t.byteLength;
|
|
650
|
+
let r = "";
|
|
651
|
+
for (let o = 0; o < n; o++) r += String.fromCharCode(t[o]);
|
|
652
|
+
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(r);
|
|
653
|
+
if (typeof Buffer < "u") return Buffer.from(r, "binary").toString("base64");
|
|
654
654
|
throw new Error("Unsupported environment");
|
|
655
|
-
}, Ce = (e) => new Promise((t,
|
|
655
|
+
}, Ce = (e) => new Promise((t, n) => {
|
|
656
656
|
if (e) if (typeof FileReader < "u") {
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
t(
|
|
660
|
-
},
|
|
661
|
-
r
|
|
662
|
-
},
|
|
657
|
+
const r = new FileReader();
|
|
658
|
+
r.onload = () => {
|
|
659
|
+
t(r.result);
|
|
660
|
+
}, r.onerror = () => {
|
|
661
|
+
n(r.error);
|
|
662
|
+
}, r.readAsText(e);
|
|
663
663
|
} else if (typeof Buffer < "u") {
|
|
664
|
-
const
|
|
664
|
+
const r = (o) => Buffer.from(o).toString("utf-8");
|
|
665
665
|
e.arrayBuffer().then((o) => {
|
|
666
|
-
t(
|
|
666
|
+
t(r(o));
|
|
667
667
|
}).catch((o) => {
|
|
668
|
-
|
|
668
|
+
n(o);
|
|
669
669
|
});
|
|
670
|
-
} else
|
|
670
|
+
} else n(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"), n = t.length, r = new Uint8Array(n);
|
|
675
|
+
for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
|
|
676
|
+
return r.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, n) => {
|
|
679
|
+
let r = null;
|
|
680
680
|
try {
|
|
681
|
-
|
|
682
|
-
t({ width:
|
|
683
|
-
}, { once: !0 }),
|
|
684
|
-
URL.revokeObjectURL(e),
|
|
685
|
-
}, { once: !0 }), await
|
|
681
|
+
r = new Image(), r.src = e, r.addEventListener("load", function() {
|
|
682
|
+
t({ width: r.naturalWidth, height: r.naturalHeight });
|
|
683
|
+
}, { once: !0 }), r.addEventListener("error", function() {
|
|
684
|
+
URL.revokeObjectURL(e), n("Invalid Image");
|
|
685
|
+
}, { once: !0 }), await r.decode("sync");
|
|
686
686
|
} catch {
|
|
687
|
-
|
|
687
|
+
r?.src && URL.revokeObjectURL(r.src);
|
|
688
688
|
}
|
|
689
|
-
|
|
689
|
+
r || n(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 (n, r) => {
|
|
692
692
|
let o = null;
|
|
693
693
|
try {
|
|
694
694
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
695
695
|
try {
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
|
|
700
|
-
} catch (
|
|
701
|
-
URL.revokeObjectURL(e),
|
|
696
|
+
const a = document.createElement("canvas");
|
|
697
|
+
a.width = o.naturalWidth, a.height = o.naturalHeight, a.getContext("2d").drawImage(o, 0, 0);
|
|
698
|
+
const i = a.toDataURL("image/png", t);
|
|
699
|
+
n({ elemImg: o, dataUrl: i });
|
|
700
|
+
} catch (a) {
|
|
701
|
+
URL.revokeObjectURL(e), r(a);
|
|
702
702
|
}
|
|
703
703
|
}, { once: !0 }), o.addEventListener("error", function() {
|
|
704
|
-
URL.revokeObjectURL(e),
|
|
704
|
+
URL.revokeObjectURL(e), r("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 || r(ht);
|
|
710
710
|
}), loadImageDetails: async (e, t = null) => {
|
|
711
|
-
let
|
|
712
|
-
const
|
|
711
|
+
let n = null;
|
|
712
|
+
const r = async () => {
|
|
713
713
|
try {
|
|
714
|
-
const
|
|
715
|
-
|
|
714
|
+
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await Ye(i);
|
|
715
|
+
n = { mimeType: a, naturalSize: l, asUrl: i };
|
|
716
716
|
} catch {
|
|
717
717
|
}
|
|
718
718
|
}, o = async () => {
|
|
719
719
|
try {
|
|
720
|
-
const
|
|
721
|
-
|
|
720
|
+
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type: we })), l = await Ye(i);
|
|
721
|
+
n = { mimeType: t ?? we, naturalSize: l, asUrl: i, asSVGText: a };
|
|
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 r() : (await r(), n || await o()), !n) throw new Error("Failed to load image");
|
|
726
|
+
return n;
|
|
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, n, r) => {
|
|
730
730
|
if (e === null) return e;
|
|
731
|
-
if (e === void 0) return
|
|
731
|
+
if (e === void 0) return r;
|
|
732
732
|
let o = e;
|
|
733
733
|
if (t?.shorthand) {
|
|
734
|
-
const u = t?.shorthand(e,
|
|
734
|
+
const u = t?.shorthand(e, n);
|
|
735
735
|
u !== void 0 && (o = u);
|
|
736
736
|
}
|
|
737
737
|
if (o !== null && t?.getSubType) {
|
|
738
738
|
const u = t.getSubType(o);
|
|
739
739
|
u && (t = u);
|
|
740
740
|
}
|
|
741
|
-
const
|
|
741
|
+
const a = t?.properties, i = t?.arrayType ?? !1;
|
|
742
742
|
let l = o;
|
|
743
|
-
if (t && t.merge && l &&
|
|
744
|
-
else if (!
|
|
745
|
-
const u = Object.keys({ ...o, ...
|
|
743
|
+
if (t && t.merge && l && r) l = t.merge(l, r, n);
|
|
744
|
+
else if (!i && a) {
|
|
745
|
+
const u = Object.keys({ ...o, ...r });
|
|
746
746
|
l = null;
|
|
747
747
|
const p = u.length;
|
|
748
748
|
for (let w = 0; w < p; w++) {
|
|
749
749
|
const g = u[w];
|
|
750
750
|
let f, y = o[g];
|
|
751
751
|
if (y !== void 0) {
|
|
752
|
-
const x =
|
|
753
|
-
f = x ? (0, He.resolveTypedUpdates)(y, x,
|
|
754
|
-
} else f =
|
|
752
|
+
const x = a[g];
|
|
753
|
+
f = x ? (0, He.resolveTypedUpdates)(y, x, n, r?.[g]) : y;
|
|
754
|
+
} else f = r?.[g];
|
|
755
755
|
f != null && (l = l ?? {}, l[g] = f);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
@@ -768,21 +768,21 @@ 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, n) => {
|
|
772
|
+
if (oe() === k.Safari) return await n(new Error(mt.Safari));
|
|
773
773
|
try {
|
|
774
|
-
const
|
|
774
|
+
const r = async (i) => {
|
|
775
775
|
try {
|
|
776
|
-
return await
|
|
776
|
+
return await i();
|
|
777
777
|
} catch (l) {
|
|
778
778
|
if (l.message?.includes("Document is not focused")) return !1;
|
|
779
779
|
throw l;
|
|
780
780
|
}
|
|
781
781
|
}, o = await globalThis?.navigator?.permissions?.query({ name: e, allowWithoutGesture: !0, allowWithoutSanitization: !0 });
|
|
782
|
-
let
|
|
783
|
-
if (o.state === "prompt" && (
|
|
784
|
-
} catch (
|
|
785
|
-
return
|
|
782
|
+
let a = !1;
|
|
783
|
+
if (o.state === "prompt" && (a = await r(t)), a || o.state !== "granted" || (a = await t()), !a) return await n(new Error(o.state));
|
|
784
|
+
} catch (r) {
|
|
785
|
+
return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
|
|
786
786
|
}
|
|
787
787
|
}, wt = async (e) => {
|
|
788
788
|
try {
|
|
@@ -792,77 +792,77 @@ 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 n = await wt(e);
|
|
796
|
+
let r = !1;
|
|
797
|
+
for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
|
|
798
|
+
return await n[o].getType(t);
|
|
799
|
+
return r ? void 0 : null;
|
|
800
800
|
};
|
|
801
801
|
if (!globalThis.ClipboardItem) {
|
|
802
|
-
const e = (
|
|
802
|
+
const e = (n, r) => new Blob([r], { type: n });
|
|
803
803
|
class t {
|
|
804
|
-
constructor(
|
|
805
|
-
this._items = {}, this._types = Object.keys(
|
|
806
|
-
const
|
|
807
|
-
for (let l = 0; l <
|
|
808
|
-
const u =
|
|
809
|
-
let p =
|
|
810
|
-
|
|
804
|
+
constructor(r, o) {
|
|
805
|
+
this._items = {}, this._types = Object.keys(r);
|
|
806
|
+
const a = {}, i = Object.keys(r);
|
|
807
|
+
for (let l = 0; l < i.length; l++) {
|
|
808
|
+
const u = i[l];
|
|
809
|
+
let p = r[u];
|
|
810
|
+
a[u] = typeof p == "string" ? e(u, p) : p;
|
|
811
811
|
}
|
|
812
|
-
this._items =
|
|
812
|
+
this._items = a, this._presentationStyle = o?.presentationStyle ?? "unspecified";
|
|
813
813
|
}
|
|
814
814
|
get types() {
|
|
815
815
|
return this._types;
|
|
816
816
|
}
|
|
817
|
-
getType(
|
|
818
|
-
return Promise.resolve(this._items[
|
|
817
|
+
getType(r) {
|
|
818
|
+
return Promise.resolve(this._items[r]);
|
|
819
819
|
}
|
|
820
|
-
supports(
|
|
820
|
+
supports(r) {
|
|
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 (n, r) => {
|
|
827
827
|
try {
|
|
828
828
|
const o = await zt(e, t);
|
|
829
829
|
if (o) {
|
|
830
|
-
const
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
},
|
|
834
|
-
|
|
835
|
-
},
|
|
836
|
-
} else
|
|
830
|
+
const a = new FileReader();
|
|
831
|
+
a.onload = () => {
|
|
832
|
+
n(a.result);
|
|
833
|
+
}, a.onerror = () => {
|
|
834
|
+
n("");
|
|
835
|
+
}, a.readAsText(o);
|
|
836
|
+
} else n("");
|
|
837
837
|
} catch (o) {
|
|
838
|
-
|
|
838
|
+
r(o);
|
|
839
839
|
}
|
|
840
840
|
}), Ze = async (e, t = S.html) => {
|
|
841
|
-
const
|
|
842
|
-
if (!
|
|
843
|
-
let
|
|
841
|
+
const n = await ve(e, t);
|
|
842
|
+
if (!n) return null;
|
|
843
|
+
let r = null;
|
|
844
844
|
try {
|
|
845
|
-
|
|
845
|
+
r = new DOMParser().parseFromString(n, S.html);
|
|
846
846
|
} catch {
|
|
847
847
|
console.warn("Can't parse html from clipboard.");
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return r;
|
|
850
850
|
}, Kt = async (e) => {
|
|
851
851
|
e && await e.writeText("");
|
|
852
|
-
},
|
|
853
|
-
let
|
|
852
|
+
}, ae = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ae}="\${e}"/>\`, Vt = (e, t) => {
|
|
853
|
+
let n = null;
|
|
854
854
|
try {
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
} catch (
|
|
858
|
-
console.warn("Can't embed uuid.",
|
|
855
|
+
const r = new DOMParser().parseFromString(t, S.html);
|
|
856
|
+
r.body.firstElementChild.setAttribute(ae, e), n = r.getElementsByTagName("body")[0].innerHTML;
|
|
857
|
+
} catch (r) {
|
|
858
|
+
console.warn("Can't embed uuid.", r);
|
|
859
859
|
}
|
|
860
|
-
return
|
|
860
|
+
return n;
|
|
861
861
|
}, et = (e, t) => {
|
|
862
862
|
if (!t || !e) return !1;
|
|
863
863
|
try {
|
|
864
|
-
const
|
|
865
|
-
if (
|
|
864
|
+
const n = t.querySelectorAll(\`[\${ae}="\${e}"]\`);
|
|
865
|
+
if (n && n.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 n = await Ze(this._nativeClipboard, S.html);
|
|
888
|
+
return !this._state || (et(this._state.uuid, n) || 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", (n) => {
|
|
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 n = await ve(this._nativeClipboard, Q);
|
|
909
|
+
if (n && n === t._state.uuid) return !0;
|
|
910
|
+
const r = await Ze(this._nativeClipboard, S.html);
|
|
911
|
+
if (et(t._state?.uuid, r)) 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 (n) => {
|
|
915
915
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
916
916
|
}), this._state?.items ?? [];
|
|
917
917
|
}
|
|
@@ -920,15 +920,15 @@ 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
|
|
924
|
-
let
|
|
925
|
-
const
|
|
926
|
-
|
|
923
|
+
const n = this, r = [], o = t.uuid;
|
|
924
|
+
let a = t.items ?? [];
|
|
925
|
+
const i = () => {
|
|
926
|
+
n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
|
|
927
927
|
};
|
|
928
928
|
await be("clipboard-write", async () => {
|
|
929
|
-
await ge(), o &&
|
|
930
|
-
for (let l = 0; l < Math.min(1,
|
|
931
|
-
const u =
|
|
929
|
+
await ge(), o && a.length === 0 && (a.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), a.push(new ClipboardItem({ [S.html]: new Blob([Qe(o)], { type: S.html }) })));
|
|
930
|
+
for (let l = 0; l < Math.min(1, a.length); l++) {
|
|
931
|
+
const u = a[l];
|
|
932
932
|
let p = u.types.indexOf(S.html), w = null;
|
|
933
933
|
if (p !== -1) {
|
|
934
934
|
const y = await u.getType(S.html);
|
|
@@ -938,12 +938,12 @@ class tt {
|
|
|
938
938
|
const y = await u.getType(S.plain);
|
|
939
939
|
if (y) {
|
|
940
940
|
let x = null;
|
|
941
|
-
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await Ce(y), x && (w = \`<div \${
|
|
941
|
+
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await Ce(y), x && (w = \`<div \${ae}="\${o}">\${x}</div>\`);
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
if (!w && u.types.includes(S.png)) {
|
|
945
945
|
const y = await u.getType(S.png), x = ft(await y.arrayBuffer());
|
|
946
|
-
w = \`<div \${
|
|
946
|
+
w = \`<div \${ae}="\${o}"><img src="\${pt + x}"/></div>\`;
|
|
947
947
|
}
|
|
948
948
|
!w && o && (w = Qe(o));
|
|
949
949
|
const g = new Blob([w ?? ""], { type: S.html }), f = {};
|
|
@@ -951,42 +951,42 @@ 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 })), r.push(new ClipboardItem(f));
|
|
955
955
|
}
|
|
956
956
|
try {
|
|
957
|
-
|
|
957
|
+
r && r.length !== 0 ? await this._nativeClipboard.write(r) : 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
|
}
|
|
961
|
-
return
|
|
961
|
+
return i(), !0;
|
|
962
962
|
}, async (l) => {
|
|
963
|
-
this.dispatchEvent(new Event("clipboarderrorwrite")),
|
|
963
|
+
this.dispatchEvent(new Event("clipboarderrorwrite")), i();
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
966
|
async writeReference(t) {
|
|
967
967
|
if (!t) return void this.clear();
|
|
968
|
-
let
|
|
969
|
-
const
|
|
968
|
+
let n = null;
|
|
969
|
+
const r = {};
|
|
970
970
|
try {
|
|
971
|
-
const
|
|
972
|
-
|
|
973
|
-
} catch (
|
|
974
|
-
|
|
971
|
+
const a = await t.toText?.() ?? null;
|
|
972
|
+
a && (r[S.plain] = new Blob([a ?? ""], { type: S.plain }));
|
|
973
|
+
} catch (a) {
|
|
974
|
+
n = a;
|
|
975
975
|
}
|
|
976
976
|
try {
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
} catch (
|
|
980
|
-
|
|
977
|
+
const a = await t.toHtml?.() ?? null;
|
|
978
|
+
a && (r[S.html] = new Blob([a], { type: S.html }));
|
|
979
|
+
} catch (a) {
|
|
980
|
+
n = a, console.warn("export to html", a);
|
|
981
981
|
}
|
|
982
982
|
try {
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
} catch (
|
|
986
|
-
|
|
983
|
+
const a = await t.toImage?.() ?? null;
|
|
984
|
+
a && (r[S.png] = a);
|
|
985
|
+
} catch (a) {
|
|
986
|
+
n = a, console.warn("export to png", a);
|
|
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(r).length > 0 ? [new ClipboardItem(r)] : null });
|
|
989
|
+
if (n) throw n;
|
|
990
990
|
return o;
|
|
991
991
|
}
|
|
992
992
|
clear(t = !1) {
|
|
@@ -996,45 +996,45 @@ 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, n) => {
|
|
1000
|
+
const r = await this.read();
|
|
1001
1001
|
let o = null;
|
|
1002
|
-
for (let
|
|
1002
|
+
for (let i = 0; !o && r && i < r.length; i++) r[i].types.includes(S.plain) && (o = await r[i].getType(S.plain));
|
|
1003
1003
|
if (!o) return void t("");
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1006
|
-
t(
|
|
1007
|
-
},
|
|
1008
|
-
|
|
1004
|
+
const a = new FileReader();
|
|
1005
|
+
a.onload = () => {
|
|
1006
|
+
t(a.result);
|
|
1007
|
+
}, a.readAsText(o), a.onerror = (i) => {
|
|
1008
|
+
n(i);
|
|
1009
1009
|
};
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
async writeText(t) {
|
|
1013
|
-
const
|
|
1014
|
-
return this._write({ uuid: de(), items:
|
|
1013
|
+
const n = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
|
|
1014
|
+
return this._write({ uuid: de(), items: n, ref: null });
|
|
1015
1015
|
}
|
|
1016
|
-
addEventListener(t,
|
|
1017
|
-
const o =
|
|
1018
|
-
let
|
|
1019
|
-
|
|
1016
|
+
addEventListener(t, n, r = {}) {
|
|
1017
|
+
const o = r?.capture ? this._listenersCapture : this._listeners;
|
|
1018
|
+
let a = o.get(t);
|
|
1019
|
+
a || (a = /* @__PURE__ */ new Map(), o.set(t, a)), a.set(n, typeof r == "boolean" ? {} : r);
|
|
1020
1020
|
}
|
|
1021
1021
|
dispatchEvent(t) {
|
|
1022
1022
|
if (!t) return;
|
|
1023
|
-
const
|
|
1024
|
-
const o =
|
|
1025
|
-
o && o.forEach((
|
|
1023
|
+
const n = (r) => {
|
|
1024
|
+
const o = r.get(t.type);
|
|
1025
|
+
o && o.forEach((a, i) => {
|
|
1026
1026
|
try {
|
|
1027
|
-
typeof
|
|
1027
|
+
typeof i == "function" ? i(t) : i.handleEvent && i.handleEvent(t), a.once && o.delete(i);
|
|
1028
1028
|
} catch (l) {
|
|
1029
1029
|
console.warn(l);
|
|
1030
1030
|
}
|
|
1031
1031
|
});
|
|
1032
1032
|
};
|
|
1033
|
-
return
|
|
1033
|
+
return n(this._listenersCapture), n(this._listeners), !0;
|
|
1034
1034
|
}
|
|
1035
|
-
removeEventListener(t,
|
|
1036
|
-
const o =
|
|
1037
|
-
|
|
1035
|
+
removeEventListener(t, n, r) {
|
|
1036
|
+
const o = r?.capture ? this._listenersCapture : this._listeners, a = o.get(t);
|
|
1037
|
+
a && (a.delete(n), a.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((n, r) => {
|
|
1057
|
+
e = n, t = r;
|
|
1058
1058
|
});
|
|
1059
1059
|
try {
|
|
1060
|
-
const { initialize:
|
|
1061
|
-
return
|
|
1060
|
+
const { initialize: n } = await Promise.resolve().then(function() {
|
|
1061
|
+
return on;
|
|
1062
1062
|
});
|
|
1063
|
-
return ee = await
|
|
1064
|
-
} catch (
|
|
1065
|
-
throw console.error("Failed to import or initialize esbuild:",
|
|
1063
|
+
return ee = await n(), e(), ee;
|
|
1064
|
+
} catch (n) {
|
|
1065
|
+
throw console.error("Failed to import or initialize esbuild:", n), le = null, t(n), n;
|
|
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, n = "/script.js", r = qt) {
|
|
1075
1075
|
try {
|
|
1076
|
-
const o = await Gt(),
|
|
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.\${
|
|
1076
|
+
const o = await Gt(), a = "@sheetxl/primitives", i = \`
|
|
1077
|
+
export const FormulaContext = globalThis.\${r}?.FormulaContext;
|
|
1078
|
+
export const ScalarType = globalThis.\${r}?.ScalarType;
|
|
1079
|
+
export const Observable = globalThis.\${r}?.Observable;
|
|
1080
|
+
export const IRange = globalThis.\${r}?.IRange;
|
|
1081
|
+
export const FormulaError = globalThis.\${r}?.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(\`^(\${n.replace("/", "\\\\/")}|\${a})$\`) }, (g) => ({
|
|
1089
1089
|
path: g.path,
|
|
1090
1090
|
namespace: w
|
|
1091
1091
|
})), p.onResolve({ filter: /.*/ }, (g) => {
|
|
@@ -1093,10 +1093,10 @@ async function Yt(e, t, r = "/script.js", n = 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 === n)
|
|
1097
1097
|
f = t;
|
|
1098
|
-
else if (g.path ===
|
|
1099
|
-
f =
|
|
1098
|
+
else if (g.path === a)
|
|
1099
|
+
f = i;
|
|
1100
1100
|
else
|
|
1101
1101
|
return {
|
|
1102
1102
|
errors: [{ text: \`Cannot load unknown path in \${w}: \${g.path}\` }]
|
|
@@ -1109,7 +1109,7 @@ async function Yt(e, t, r = "/script.js", n = qt) {
|
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
1111
|
}, u = await o.build({
|
|
1112
|
-
entryPoints: [
|
|
1112
|
+
entryPoints: [n],
|
|
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((r) => {
|
|
1170
|
+
const o = t.get(r);
|
|
1171
|
+
t.set(\`\${e}.\${r}\`, 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 en = /* @__PURE__ */ new Map([
|
|
1185
1185
|
["Promise", () => ({ async: !0 })],
|
|
1186
1186
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
1187
1187
|
// return { async: true };
|
|
@@ -1189,12 +1189,12 @@ const er = /* @__PURE__ */ new Map([
|
|
|
1189
1189
|
["Observable", () => ({ stream: !0 })]
|
|
1190
1190
|
]);
|
|
1191
1191
|
let se = null;
|
|
1192
|
-
async function
|
|
1192
|
+
async function tn() {
|
|
1193
1193
|
if (se)
|
|
1194
1194
|
return se;
|
|
1195
1195
|
try {
|
|
1196
1196
|
return await (await Promise.resolve().then(function() {
|
|
1197
|
-
return
|
|
1197
|
+
return ln;
|
|
1198
1198
|
})).initialize();
|
|
1199
1199
|
} catch (e) {
|
|
1200
1200
|
throw se = null, e;
|
|
@@ -1202,14 +1202,14 @@ async function tr() {
|
|
|
1202
1202
|
se = null;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
async function
|
|
1205
|
+
async function nn(e) {
|
|
1206
1206
|
const t = e?.source ?? null;
|
|
1207
1207
|
if (!t) return null;
|
|
1208
|
-
const
|
|
1208
|
+
const n = (e.disableBundle || e.declarationsOnly) ?? !1, r = [
|
|
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
|
+
tn()
|
|
1212
|
+
], o = await Promise.all(r), a = o[0], i = o[1];
|
|
1213
1213
|
let l = "", u = null;
|
|
1214
1214
|
const p = [], w = {
|
|
1215
1215
|
allowJs: !0,
|
|
@@ -1225,14 +1225,14 @@ async function rr(e) {
|
|
|
1225
1225
|
//"esNext",
|
|
1226
1226
|
noResolve: !0,
|
|
1227
1227
|
emitDeclarationOnly: !1,
|
|
1228
|
-
target:
|
|
1228
|
+
target: i.ScriptTarget.ES2020
|
|
1229
1229
|
// lib: ['webworker', 'es2020', 'esnext.asynciterable'], // Use the webworker lib instead of dom
|
|
1230
1230
|
}, g = "script", f = \`\${g}.ts\`, y = "lib.d.ts", x = "global.d.ts", A = {
|
|
1231
1231
|
[f]: t,
|
|
1232
1232
|
[y]: Jt,
|
|
1233
|
-
[x]:
|
|
1233
|
+
[x]: a
|
|
1234
1234
|
}, D = {
|
|
1235
|
-
getSourceFile: (s, m, L, P) =>
|
|
1235
|
+
getSourceFile: (s, m, L, P) => i.createSourceFile(s, A[s], i.ScriptTarget.Latest, !0),
|
|
1236
1236
|
fileExists: (s) => A[s] !== void 0,
|
|
1237
1237
|
readFile: (s) => A[s],
|
|
1238
1238
|
writeFile: (s, m) => {
|
|
@@ -1245,38 +1245,38 @@ async function rr(e) {
|
|
|
1245
1245
|
getDefaultLibFileName: (s) => y,
|
|
1246
1246
|
getNewLine: () => \`
|
|
1247
1247
|
\`
|
|
1248
|
-
}, U =
|
|
1248
|
+
}, U = i.createProgram([f, x], w, D), I = U.getTypeChecker(), J = U.getSourceFile(f), E = U.emit();
|
|
1249
1249
|
E.diagnostics.length > 0 && console.warn(E.diagnostics), l = A[\`\${g}.js\`];
|
|
1250
1250
|
const c = (s, m, L, P) => {
|
|
1251
1251
|
if (!s) {
|
|
1252
1252
|
$(s, new Error(\`Type is not defined for '\${m?.name ?? "return"}'.\`));
|
|
1253
1253
|
return;
|
|
1254
1254
|
}
|
|
1255
|
-
if (s.kind ===
|
|
1255
|
+
if (s.kind === i.SyntaxKind.NumberKeyword)
|
|
1256
1256
|
m.scalar = W.Number;
|
|
1257
|
-
else if (s.kind ===
|
|
1257
|
+
else if (s.kind === i.SyntaxKind.StringKeyword)
|
|
1258
1258
|
m.scalar = W.String;
|
|
1259
|
-
else if (s.kind ===
|
|
1259
|
+
else if (s.kind === i.SyntaxKind.BooleanKeyword)
|
|
1260
1260
|
m.scalar = W.Boolean;
|
|
1261
|
-
else if (s.kind ===
|
|
1261
|
+
else if (s.kind === i.SyntaxKind.UndefinedKeyword || s.kind === i.SyntaxKind.NullKeyword || s.kind === i.SyntaxKind.VoidKeyword) {
|
|
1262
1262
|
if (P) {
|
|
1263
1263
|
$(s, new Error(\`'undefined' is not a valid type for input: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1264
1264
|
return;
|
|
1265
1265
|
}
|
|
1266
1266
|
m.scalar = W.Null;
|
|
1267
|
-
} else if (s.kind ===
|
|
1267
|
+
} else if (s.kind === i.SyntaxKind.BigIntKeyword)
|
|
1268
1268
|
m.scalar = W.Number;
|
|
1269
|
-
else if (s.kind ===
|
|
1269
|
+
else if (s.kind === i.SyntaxKind.AnyKeyword)
|
|
1270
1270
|
m.scalar = W.Null;
|
|
1271
|
-
else if (s.kind ===
|
|
1271
|
+
else if (s.kind === i.SyntaxKind.ArrayType) {
|
|
1272
1272
|
const M = s.elementType;
|
|
1273
1273
|
if (!M) {
|
|
1274
1274
|
$(s, new Error(\`'Array' must be typed: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1275
1275
|
return;
|
|
1276
1276
|
}
|
|
1277
1277
|
m.arrayDepth = (m.arrayDepth ?? 0) + 1, c(M, m, L, P);
|
|
1278
|
-
} else if (s.kind !==
|
|
1279
|
-
if (s.kind ===
|
|
1278
|
+
} else if (s.kind !== i.SyntaxKind.TupleType) {
|
|
1279
|
+
if (s.kind === i.SyntaxKind.TypeReference) {
|
|
1280
1280
|
const M = s.typeName?.getText?.() ?? null, K = yt.get(M);
|
|
1281
1281
|
let V = !1;
|
|
1282
1282
|
K && (m.range = K, V = !0);
|
|
@@ -1286,7 +1286,7 @@ async function rr(e) {
|
|
|
1286
1286
|
if (R)
|
|
1287
1287
|
return R;
|
|
1288
1288
|
} else {
|
|
1289
|
-
const R =
|
|
1289
|
+
const R = en.get(M);
|
|
1290
1290
|
if (R) {
|
|
1291
1291
|
const b = { ...m, ...R() };
|
|
1292
1292
|
let N = 0;
|
|
@@ -1311,11 +1311,11 @@ async function rr(e) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
|
-
}, h = (s) => (
|
|
1314
|
+
}, h = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Export) !== 0, fe = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Default) !== 0, B = [], $ = (s, m) => {
|
|
1315
1315
|
B.push(m);
|
|
1316
1316
|
};
|
|
1317
|
-
if (
|
|
1318
|
-
if (h(s) &&
|
|
1317
|
+
if (i.forEachChild(J, (s) => {
|
|
1318
|
+
if (h(s) && i.isFunctionDeclaration(s)) {
|
|
1319
1319
|
const m = {}, L = {
|
|
1320
1320
|
parameters: {}
|
|
1321
1321
|
}, P = s?.name?.getText();
|
|
@@ -1348,7 +1348,7 @@ async function rr(e) {
|
|
|
1348
1348
|
let v;
|
|
1349
1349
|
if (z && (N.optional = !0, b.initializer))
|
|
1350
1350
|
try {
|
|
1351
|
-
b.initializer.kind ===
|
|
1351
|
+
b.initializer.kind === i.SyntaxKind.StringLiteral ? v = b.initializer.text : b.initializer.kind === i.SyntaxKind.NumericLiteral ? v = parseFloat(b.initializer.text) : b.initializer.kind === i.SyntaxKind.TrueKeyword || b.initializer.kind === i.SyntaxKind.FalseKeyword ? v = b.initializer.kind === i.SyntaxKind.TrueKeyword : b.initializer.kind === i.SyntaxKind.NullKeyword ? v = null : b.initializer.kind === i.SyntaxKind.ObjectLiteralExpression || b.initializer.kind === i.SyntaxKind.ArrayLiteralExpression ? v = b.initializer.getText() : v = b.initializer.getText?.();
|
|
1352
1352
|
} catch (O) {
|
|
1353
1353
|
console.warn(\`Couldn't extract default value for parameter '\${N.name}'\`, O);
|
|
1354
1354
|
}
|
|
@@ -1397,10 +1397,10 @@ async function rr(e) {
|
|
|
1397
1397
|
if (z.typeExpression && z.typeExpression.type)
|
|
1398
1398
|
try {
|
|
1399
1399
|
const Z = z.typeExpression.type;
|
|
1400
|
-
if (Z.kind ===
|
|
1400
|
+
if (Z.kind === i.SyntaxKind.UnionType) {
|
|
1401
1401
|
const te = [];
|
|
1402
1402
|
F.enums = te, Z.types.forEach((pe) => {
|
|
1403
|
-
if (pe.kind ===
|
|
1403
|
+
if (pe.kind === i.SyntaxKind.LiteralType) {
|
|
1404
1404
|
const he = pe.literal.text;
|
|
1405
1405
|
he && te.push(he);
|
|
1406
1406
|
}
|
|
@@ -1433,7 +1433,7 @@ async function rr(e) {
|
|
|
1433
1433
|
throw new Error("No exported functions.");
|
|
1434
1434
|
const bt = \`\${$t.uuidV4()}-script\`;
|
|
1435
1435
|
try {
|
|
1436
|
-
!
|
|
1436
|
+
!n && B.length === 0 && (l = await Yt(i, l, g));
|
|
1437
1437
|
} catch {
|
|
1438
1438
|
console.warn("Error bundling script");
|
|
1439
1439
|
}
|
|
@@ -1449,60 +1449,60 @@ async function rr(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: n } = e.data;
|
|
1453
1453
|
try {
|
|
1454
|
-
const
|
|
1455
|
-
self.postMessage({ id: t, result:
|
|
1456
|
-
} catch (
|
|
1454
|
+
const r = await nn(n);
|
|
1455
|
+
self.postMessage({ id: t, result: r, error: null });
|
|
1456
|
+
} catch (r) {
|
|
1457
1457
|
self.postMessage({
|
|
1458
1458
|
id: t,
|
|
1459
1459
|
result: null,
|
|
1460
1460
|
error: {
|
|
1461
|
-
message:
|
|
1462
|
-
stack:
|
|
1463
|
-
cause:
|
|
1461
|
+
message: r.message,
|
|
1462
|
+
stack: r.stack,
|
|
1463
|
+
cause: r.cause
|
|
1464
1464
|
}
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
});
|
|
1468
1468
|
let ce = null;
|
|
1469
|
-
async function
|
|
1469
|
+
async function rn() {
|
|
1470
1470
|
return ce || (ce = new Promise(async (e, t) => {
|
|
1471
1471
|
try {
|
|
1472
|
-
const
|
|
1472
|
+
const n = "0.20.2", r = \`https://esm.sh/esbuild-wasm@\${n}\`, o = \`https://esm.sh/esbuild-wasm@\${n}/esbuild.wasm\`, i = (await import(
|
|
1473
1473
|
/* webpackIgnore: true */
|
|
1474
1474
|
/* @vite-ignore */
|
|
1475
|
-
|
|
1475
|
+
r
|
|
1476
1476
|
)).default;
|
|
1477
|
-
await
|
|
1477
|
+
await i.initialize({
|
|
1478
1478
|
wasmURL: o,
|
|
1479
1479
|
// Provide the specific WASM URL
|
|
1480
1480
|
worker: !1
|
|
1481
1481
|
// Keep processing on the current thread
|
|
1482
|
-
}), e(
|
|
1483
|
-
} catch (
|
|
1484
|
-
console.error("Error initializing esbuild:",
|
|
1482
|
+
}), e(i);
|
|
1483
|
+
} catch (n) {
|
|
1484
|
+
console.error("Error initializing esbuild:", n), t(n);
|
|
1485
1485
|
}
|
|
1486
1486
|
}), ce);
|
|
1487
1487
|
}
|
|
1488
|
-
var
|
|
1488
|
+
var on = /* @__PURE__ */ Object.freeze({
|
|
1489
1489
|
__proto__: null,
|
|
1490
|
-
initialize:
|
|
1490
|
+
initialize: rn
|
|
1491
1491
|
});
|
|
1492
1492
|
let ue = null;
|
|
1493
|
-
async function
|
|
1493
|
+
async function an() {
|
|
1494
1494
|
return ue || (ue = new Promise(async (e, t) => {
|
|
1495
|
-
let
|
|
1495
|
+
let n = null;
|
|
1496
1496
|
try {
|
|
1497
|
-
|
|
1498
|
-
} catch (
|
|
1499
|
-
console.error("Error initializing Browser TypeScript module:",
|
|
1497
|
+
n = await import("https://esm.sh/typescript@5.7.2");
|
|
1498
|
+
} catch (r) {
|
|
1499
|
+
console.error("Error initializing Browser TypeScript module:", r);
|
|
1500
1500
|
}
|
|
1501
|
-
|
|
1501
|
+
n || console.log("use script fallback"), e(n);
|
|
1502
1502
|
}), ue);
|
|
1503
1503
|
}
|
|
1504
|
-
var
|
|
1504
|
+
var ln = /* @__PURE__ */ Object.freeze({
|
|
1505
1505
|
__proto__: null,
|
|
1506
|
-
initialize:
|
|
1506
|
+
initialize: an
|
|
1507
1507
|
});
|
|
1508
|
-
`,
|
|
1508
|
+
`,i=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=i&&(self.URL||self.webkitURL).createObjectURL(i),!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("./BiHqOGcXJWRP3FQy.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()};
|