@sheetxl/studio-vanilla 0.6.4 → 0.6.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/browser/cjs/{BU4LrknRmXm16lnY.cjs → -e-e6x4DydOkgfVc.cjs} +1 -1
- package/browser/cjs/{S68eUxzRdlHWF61N.cjs → 0Y5TF7N-_tzvHQVc.cjs} +4 -4
- package/browser/cjs/{BioOzYtqszFPDx9j.cjs → 6wuTyFc2OkEg0YDy.cjs} +3 -3
- package/browser/cjs/{D_QnESiw7nv6tGHG.cjs → B19XDmw3OEi3gSNn.cjs} +5 -5
- package/browser/cjs/{C7n822sRX3n9j6Le.cjs → B1jgIjvlVNA8GFNW.cjs} +2 -2
- package/browser/cjs/{CdUaCVhkCrUCE4AF.cjs → B3J8lwJ5LijhN3tn.cjs} +1 -1
- package/browser/cjs/{Bs9gl3q4ZVkgMLqI.cjs → B4IvAxHfbs1PhNrl.cjs} +1 -1
- package/browser/cjs/{CBwxQg7vslrWv8Sx.cjs → B60hIOo5qZUt-0c9.cjs} +1 -1
- package/browser/cjs/{Ds19g7QNWVVe8zC0.cjs → B9eXjWPqyv2f2Vlb.cjs} +8 -8
- package/browser/cjs/BDk6w5arhq-Is61b.cjs +12 -0
- package/browser/cjs/{Ht_g2b253DmJoXJA.cjs → BFiaTsn72ZQNY4wG.cjs} +1 -1
- package/browser/cjs/{CXua8PIdCswzKop0.cjs → BGzSwhO2H5T4phR5.cjs} +2 -2
- package/browser/cjs/{gwbEDTCqfM9dg1_-.cjs → BJ1WplGSHjaVniJ2.cjs} +1 -1
- package/browser/cjs/{Bky6IJxf41vfmiEa.cjs → BRbmq4oKdNRRdQVw.cjs} +1 -1
- package/browser/cjs/{PEKHr2twsqpjIg8X.cjs → BWJjG9lChn_biRWK.cjs} +2 -2
- package/browser/cjs/{CChKea_o24Bc9rA5.cjs → B_tAQ6NjYmRgJfjr.cjs} +2 -2
- package/browser/cjs/{Bw8qrVtTuYGZh_JY.cjs → BeOlGuqc3a-VytP2.cjs} +1 -1
- package/browser/cjs/{CR-I7zSNwzikpa4B.cjs → BkSrJaacn3OYpKiI.cjs} +1 -1
- package/browser/cjs/{B1GnvUw9NPQZ7F9M.cjs → BnSv5t6KM-F6UjnT.cjs} +2 -2
- package/browser/cjs/{D-ufMElgFHqLdu1H.cjs → BtFsTB7tByGgTFTS.cjs} +1 -1
- package/browser/cjs/{Cj9W_jhqDIPmnNVg.cjs → BtpdtK6X5kYFON_1.cjs} +2 -2
- package/browser/cjs/{CNW_UcPXbiZ0Ym0m.cjs → BvtpgA7Hgaq6ZV2H.cjs} +1 -1
- package/browser/cjs/{UErXc6FC0wOLS7NJ.cjs → BynqqUXsUJ6HXiZn.cjs} +1 -1
- package/browser/cjs/{BMxS0znlpc2XdxLu.cjs → Bz6JSFIxWIFlSIbO.cjs} +1 -1
- package/browser/cjs/{PTCzG15fjiV6_9ss.cjs → C0Lkr_--Cxs31BDb.cjs} +1 -1
- package/browser/cjs/{BfblRAi6Yag4M8F6.cjs → C3rAuKXyv3IAMarI.cjs} +1 -1
- package/browser/cjs/{DBeABQkyatwuyaIE.cjs → C6aDurA3QFvuwi2s.cjs} +1 -1
- package/browser/cjs/{DtHIRS5GQnpEFP8g.cjs → CF0dYrnCZLK0SIwW.cjs} +1 -1
- package/browser/cjs/{BIhrhSruETxGwVLA.cjs → CKIX0AfAnOnjimpb.cjs} +1 -1
- package/browser/cjs/{D_zRqEWysQlmoIWH.cjs → CPs17M3Xf7TIphbH.cjs} +1 -1
- package/browser/cjs/{YqW8e8iyC4JhXCYy.cjs → CUZ2Y1rgKje31rmq.cjs} +1 -1
- package/browser/cjs/{CbpO5o4OoHU-okS7.cjs → CXie1KeQLXlWtuFB.cjs} +2 -2
- package/browser/cjs/{B_SQGFlHO6XiQp1E.cjs → C_lS_SrpK8RvrliQ.cjs} +1 -1
- package/browser/cjs/{BRYC-StrOkR8owHv.cjs → Ce5kMQ7KyLM0FD-L.cjs} +1 -1
- package/browser/cjs/{BArIqDY-zX_9JbKq.cjs → CeZwZsfBSeNFzBRj.cjs} +1 -1
- package/browser/cjs/D-jAZv3G7PXDD1Cl.cjs +330 -0
- package/browser/cjs/{JPWqggSzT92WyA_Y.cjs → DE4vWhD9gh5TzYDS.cjs} +2 -2
- package/browser/cjs/{O8LSNGCAj2xaaPi5.cjs → DEKywAPnit6nelii.cjs} +1 -1
- package/browser/cjs/{B9HYx_gx43hgY1TU.cjs → DHES3VrZvl0CSf2G.cjs} +1 -1
- package/browser/cjs/DMVOPwwm1q8F1Fmb.cjs +6 -0
- package/browser/cjs/{IsuXLvdkF0LqeBCp.cjs → DSF8l2QqwXpTN4Ja.cjs} +1 -1
- package/browser/cjs/{CwZVDaG3pju6lkZZ.cjs → DUnBXgtPLOvtvcMm.cjs} +5 -5
- package/browser/cjs/{CstKou1fPRKuDMfM.cjs → DbatomO6r9W0NwNu.cjs} +460 -454
- package/browser/cjs/{D5JhBYTBEMISf4z5.cjs → DdMY09pvx5ru0U1Q.cjs} +1 -1
- package/browser/cjs/{BVN5e1a2ZA0exR3w.cjs → Df9MYHn7aVLA7abz.cjs} +2 -2
- package/browser/cjs/{CJICnBJhKSztz3ix.cjs → Dlx1FHAfZ8BCXAv-.cjs} +1 -1
- package/browser/cjs/{vP1Us8Eze-aP3xYg.cjs → DmtRLRLitcmFXNBb.cjs} +1 -1
- package/browser/cjs/{D99VNs0h_sNM4tHW.cjs → DoJVL2XhmzNjb-lR.cjs} +2 -2
- package/browser/cjs/{D8Py2h3aPLASFMA3.cjs → DplqlJ7HcglmlTGS.cjs} +5 -5
- package/browser/cjs/{DV3_29DxoQNNFy53.cjs → Hboq9CzOQN_f83xm.cjs} +4 -4
- package/browser/cjs/{DUNp0OgSEAcLy8RH.cjs → JMbMtOhA1iNAqg9M.cjs} +2 -2
- package/browser/cjs/{Y7a0RdulN-E8Qprw.cjs → OLabgsQBwtaTK0W0.cjs} +2 -2
- package/browser/cjs/{Q1rohJQ99VrVZM4N.cjs → UdSif7-6u2CCyoCF.cjs} +2 -2
- package/browser/cjs/{CGQZTLUEKfgcOCgb.cjs → dpPMu9SnEmkjFxLS.cjs} +1 -1
- package/browser/cjs/{CP1jrGRLh9liezjk.cjs → gAS-cGAMFNh1L6Q8.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{B7KYkBc1E43v5Rdg.cjs → qJWlVkguMbHKZo4U.cjs} +2 -2
- package/browser/cjs/{DPnJYg1u8GDODOhi.cjs → zZBeoLrH03ilFGbk.cjs} +1 -1
- package/{cdn/assets/k2OxnBkaD4yvARfd.js → browser/esm/0w-BNQGPkDhzl4XV.mjs} +1 -1
- package/browser/esm/{Bhb0IiwE6MSaSY2a.mjs → 29gCxd6vbI5VRTfn.mjs} +2 -2
- package/{cdn/assets/DCdAMMa8IzWWY7fl.js → browser/esm/5FUp9qfD2-cbJjYw.mjs} +1 -1
- package/{cdn/assets/euIZeWiUlDt0TCHt.js → browser/esm/67jatfS90fzwU27R.mjs} +1 -1
- package/browser/esm/{CSdizHzDATInUMSF.mjs → B1YdsvFxgY3cBuvU.mjs} +5 -5
- package/browser/esm/{-EBvrHk3aKUkxxyP.mjs → BDwfJYYjLxGxBbfd.mjs} +22 -22
- package/browser/esm/{BowC0DrjwBuQSDlH.mjs → BEJRY0y2fQ4GPPtE.mjs} +1 -1
- package/browser/esm/{Dx0zoo9U_hFs7YxA.mjs → BFrPcKvgjQjcu9eN.mjs} +1 -1
- package/browser/esm/{DQLbhwTDnMxQTVoS.mjs → BHMr0Avspy2bTfaW.mjs} +9 -9
- package/browser/esm/{xrgAvPTh_e_PtpDG.mjs → BIU3HZSh3eHX5SVx.mjs} +8 -8
- package/{cdn/assets/BZdSP0VhStasEeUx.js → browser/esm/BJ7Roh6BEZyEYCBf.mjs} +1 -1
- package/browser/esm/{AT-fq7GzXwHXLNrl.mjs → BLoVxuMcliAyTYvm.mjs} +1 -1
- package/{cdn/assets/CeETeACz1-fsjGTw.js → browser/esm/BPpmr49quCMrgcX0.mjs} +1 -1
- package/browser/esm/{DfLXWoU9oZQH2Itt.mjs → BQl8_GephJT1zJkF.mjs} +1 -1
- package/{cdn/assets/DLtEwo1ab2jvn_b5.js → browser/esm/BSwvcpIMVfqXj73i.mjs} +1 -1
- package/browser/esm/{CRzi1OuRotBW8Sll.mjs → BZmUvqJx-yz1aU-5.mjs} +1 -1
- package/{cdn/assets/BGRzYPSFkaGgdzEZ.js → browser/esm/BbFWsuy2TOFb7L6V.mjs} +1 -1
- package/browser/esm/{CeJkxDeIBYskjWSB.mjs → BbI24vIIyg7QnIWY.mjs} +2 -2
- package/browser/esm/{B7xKwPc3dShIy-nn.mjs → BgxNRZhNxwSVMObt.mjs} +1 -1
- package/browser/esm/{CQXRXzWvzMTZ6ih6.mjs → BkguhAeEvTcTVZN3.mjs} +10 -10
- package/browser/esm/{BzFTpD9Nf1CPa692.mjs → BmQ1SS-asI9ita-i.mjs} +2 -2
- package/{cdn/assets/D2F21iwfhk7brFDZ.js → browser/esm/Bn4AQ04vq7zHnoL_.mjs} +1 -1
- package/browser/esm/{CpmPS0XDa1YDIcn5.mjs → BnusHharCufsqHcK.mjs} +8 -8
- package/browser/esm/{BXzspda8JhpEr0RI.mjs → BpJyUoZ7qbXZNfEv.mjs} +1 -1
- package/{cdn/assets/Cd5FvhDd8yddH07t.js → browser/esm/Buboguw3B4iA6kZz.mjs} +1 -1
- package/browser/esm/{CuM6FFUSNEAltDdu.mjs → Bv8yISQhT9pU00bI.mjs} +2 -2
- package/browser/esm/{B0Q5DMVzQVBrRH5u.mjs → C2oRTm-hB0wbzQzF.mjs} +460 -454
- package/browser/esm/{BxZlmGzsXD9gGqd6.mjs → C7KXRC3vXznZQMjB.mjs} +2 -2
- package/browser/esm/{bzoFaTPsOkNM6b-q.mjs → C7ota-WuLdqFs7uL.mjs} +1 -1
- package/{cdn/assets/CfQXO9QgDXEI1Sgo.js → browser/esm/CC7AU2fXo3KfvWsR.mjs} +1 -1
- package/{cdn/assets/DfQHVmm1Aiz4b6GJ.js → browser/esm/CJkiM4g8IYjNDixD.mjs} +1 -1
- package/{cdn/assets/cEp9L01nLekgiF9x.js → browser/esm/CTgBHefewD51JTeI.mjs} +1 -1
- package/browser/esm/{YZ-VgG7-5D3t3lre.mjs → CWYXCDadrTpz_-C_.mjs} +3 -3
- package/browser/esm/{C2nXFLNCmWklNPkc.mjs → CZ7Use237ej2QPOK.mjs} +13 -13
- package/{cdn/assets/CQaO6ZEvkHw2gfXL.js → browser/esm/ClOj__E12OzLFjTs.mjs} +1 -1
- package/browser/esm/{DOxIG-2DrW6KCImE.mjs → DPIItzNnxMbq2VfI.mjs} +12 -12
- package/browser/esm/{BSBfTVDfriNqNy6s.mjs → DTrC3bkaQd-PALtG.mjs} +1 -1
- package/browser/esm/{CKMUGnpdnieN0Llt.mjs → DWr4xYPlaw8j1mv4.mjs} +6 -6
- package/browser/esm/{CYD3BV5ECn-CKwrj.mjs → D_Da-BJ5yYKKDQ4f.mjs} +3 -3
- package/browser/esm/{DLXwAWOG11Wpjwso.mjs → Df2NuZU9juUIKwg8.mjs} +11 -11
- package/browser/esm/{BM0APYFIQHTGxxYF.mjs → DqHHGbrzfGptVwKT.mjs} +1 -1
- package/{cdn/assets/j4IyoNYp8IF40Q8T.js → browser/esm/DqY233UP8cctSm77.mjs} +1 -1
- package/{cdn/assets/tzAtsVRq8fh0AQOk.js → browser/esm/DqpL0PUcHc2yhukz.mjs} +1 -1
- package/browser/esm/{Mdeli4Ux2pIhMTna.mjs → DtVOzXc0D5P_N9Tm.mjs} +4 -4
- package/browser/esm/{BL2mtJ0CU9BBKSMK.mjs → DwxBIXOwBXJ0OfuA.mjs} +25 -25
- package/browser/esm/{tPxwcj9fyQig_g0z.mjs → DyIyAX_MrOKaiauf.mjs} +8 -8
- package/{cdn/assets/Dm24M4tfHrPDHOCg.js → browser/esm/EN4tauuENSQlsREt.mjs} +16816 -16494
- package/browser/esm/{vzeva821r4KgCSk7.mjs → NQYuQ6Fwe1hZ8G7q.mjs} +1 -1
- package/browser/esm/{B6M04wH6vpX8Tswo.mjs → PK_vF_J7qweQDmnh.mjs} +1 -1
- package/{cdn/assets/Dbj5xbwgmxpqP18Z.js → browser/esm/PL8e8GY7OsUL26sU.mjs} +1 -1
- package/browser/esm/{BRcP3bZej4lt-fwi.mjs → XG8H8R2jYaQEG5vJ.mjs} +1 -1
- package/browser/esm/{Bbn-RMGRp0MSam42.mjs → cRhgWaTuF5ulsTUo.mjs} +4 -4
- package/browser/esm/{DKcOzCTQofX6cY_B.mjs → fRJbgbZ_fawDpe4Y.mjs} +2 -2
- package/browser/esm/{BFY7Fnq3J4ZSMp9P.mjs → i-cDcFJjQOjsCvkc.mjs} +2 -2
- package/{cdn/assets/BycubXhphudONHRz.js → browser/esm/iEQmmn4nEfkZiIn_.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CwDeBfn2HcOixvHE.mjs → l3bAiTRrp-5sxROq.mjs} +1 -1
- package/{cdn/assets/CNQTifWAw4UZqu4J.js → browser/esm/nXa-TVOMsrXxtuc9.mjs} +1 -1
- package/{browser/esm/k2OxnBkaD4yvARfd.mjs → cdn/assets/0w-BNQGPkDhzl4XV.js} +1 -1
- package/cdn/assets/{DJU28FT-fFQgl9TT.js → 3UI-_5R_kCNSpf11.js} +460 -454
- package/{browser/esm/DCdAMMa8IzWWY7fl.mjs → cdn/assets/5FUp9qfD2-cbJjYw.js} +1 -1
- package/{browser/esm/euIZeWiUlDt0TCHt.mjs → cdn/assets/67jatfS90fzwU27R.js} +1 -1
- package/cdn/assets/{ESo6qTbjf45cfiLm.js → B-vmqKXIqM4BtjB0.js} +2 -2
- package/cdn/assets/{BjUnH-Jak3KkxyMS.js → BDYXl0I19foxo18Q.js} +3 -3
- package/cdn/assets/{BowC0DrjwBuQSDlH.js → BEJRY0y2fQ4GPPtE.js} +1 -1
- package/cdn/assets/{Dx0zoo9U_hFs7YxA.js → BFrPcKvgjQjcu9eN.js} +1 -1
- package/cdn/assets/{DdDAkCzLnDiQdL3A.js → BGgSpq92Z9F-Ntye.js} +3 -3
- package/{browser/esm/BZdSP0VhStasEeUx.mjs → cdn/assets/BJ7Roh6BEZyEYCBf.js} +1 -1
- package/cdn/assets/{C5HcNwtQCCCRFFOF.js → BJVeRrxdO-nBr5NZ.js} +2 -2
- package/cdn/assets/{AT-fq7GzXwHXLNrl.js → BLoVxuMcliAyTYvm.js} +1 -1
- package/{browser/esm/CeETeACz1-fsjGTw.mjs → cdn/assets/BPpmr49quCMrgcX0.js} +1 -1
- package/cdn/assets/{DfLXWoU9oZQH2Itt.js → BQl8_GephJT1zJkF.js} +1 -1
- package/{browser/esm/DLtEwo1ab2jvn_b5.mjs → cdn/assets/BSwvcpIMVfqXj73i.js} +1 -1
- package/cdn/assets/{CRzi1OuRotBW8Sll.js → BZmUvqJx-yz1aU-5.js} +1 -1
- package/{browser/esm/BGRzYPSFkaGgdzEZ.mjs → cdn/assets/BbFWsuy2TOFb7L6V.js} +1 -1
- package/cdn/assets/BeIJny9YSrpatFa_.js +22 -0
- package/cdn/assets/{BLM_iAjwRwVBN8bb.js → BgeMTXAZBFP6Lm1K.js} +4 -4
- package/cdn/assets/{B7xKwPc3dShIy-nn.js → BgxNRZhNxwSVMObt.js} +1 -1
- package/cdn/assets/{BEE98W-H6L1rZRv8.js → BjiRKxp3WuyUvzaK.js} +28 -28
- package/cdn/assets/{NNVwV-Jgrf4zhOot.js → Bkevg67QC8R5eRdN.js} +3 -3
- package/cdn/assets/{BWqF1U19j_5ZT4e-.js → BlI6YZ6neVjkkQx2.js} +4 -4
- package/{browser/esm/D2F21iwfhk7brFDZ.mjs → cdn/assets/Bn4AQ04vq7zHnoL_.js} +1 -1
- package/cdn/assets/{BXzspda8JhpEr0RI.js → BpJyUoZ7qbXZNfEv.js} +1 -1
- package/cdn/assets/{BU2py2W3_ANviutQ.js → Bt9u_FUrrLFhsXQD.js} +3 -3
- package/{browser/esm/Cd5FvhDd8yddH07t.mjs → cdn/assets/Buboguw3B4iA6kZz.js} +1 -1
- package/cdn/assets/{CkuMHJ2UQRlXqJRP.js → Bws93VgZItsFgUk3.js} +2 -2
- package/cdn/assets/{Dp_LPFvPc1MIziNH.js → BxZmciTi6VGgkute.js} +50 -50
- package/cdn/assets/{CpPCaR9szrHTsQwm.js → C01DVMkA79lIKwia.js} +2 -2
- package/cdn/assets/{XcJJ_a5IJ1YgOul_.js → C4K-H3IXpWDSbdYQ.js} +11 -11
- package/cdn/assets/{bzoFaTPsOkNM6b-q.js → C7ota-WuLdqFs7uL.js} +1 -1
- package/cdn/assets/{DrkxURYJO1rFt6Di.js → C9OEMeyLi2PcGoM_.js} +13 -13
- package/cdn/assets/{DsfC0KVaFX14vAIv.js → C9RXOT83ZaDxZypr.js} +19 -19
- package/{browser/esm/CfQXO9QgDXEI1Sgo.mjs → cdn/assets/CC7AU2fXo3KfvWsR.js} +1 -1
- package/{browser/esm/DfQHVmm1Aiz4b6GJ.mjs → cdn/assets/CJkiM4g8IYjNDixD.js} +1 -1
- package/cdn/assets/{5sjE_f0eCRmKl1YH.js → CMro8-BzdQ70fPcS.js} +13 -13
- package/cdn/assets/{C1XMRiAzO92X4UST.js → CR_vqV_czKiKF4fw.js} +1 -1
- package/{browser/esm/cEp9L01nLekgiF9x.mjs → cdn/assets/CTgBHefewD51JTeI.js} +1 -1
- package/cdn/assets/{Dj6M_idmpQIbVYSA.js → CVdAYNj8GYvhnIO9.js} +49 -49
- package/cdn/assets/{2HU0zg8YzSAR3SHM.js → CZq9aU6b4OMjD4So.js} +10 -10
- package/cdn/assets/{C7b6b0C-si4zxAkA.js → CjpVzFKvzpgazG0_.js} +4 -4
- package/{browser/esm/CQaO6ZEvkHw2gfXL.mjs → cdn/assets/ClOj__E12OzLFjTs.js} +1 -1
- package/cdn/assets/{C_yNh_M_1Virv7s5.js → CoHkOJBYGnv7nVtH.js} +9 -9
- package/cdn/assets/{sIFC0Mpxbo4p3KuX.js → Cr_OegqF4_kCciKy.js} +42 -42
- package/cdn/assets/{BPAxVisl1gIuavoO.js → CwNV1YGbYAb8Uj2X.js} +14 -14
- package/cdn/assets/{C6EwtLb_X8xO56xy.js → D6rXwkO_1Ii6alNc.js} +2 -2
- package/cdn/assets/{TguQ-N0Ymfvy3Jui.js → DBZHLc-qxHxMEvda.js} +2 -2
- package/{browser/esm/EFJ5klSL3OL5aq6z.mjs → cdn/assets/DDebECDOqTJ8ep5A.js} +16646 -16670
- package/cdn/assets/{q-BPyETPY3lfSoRm.js → DJ5kSGtcg1tDP5HP.js} +12 -12
- package/cdn/assets/{BSBfTVDfriNqNy6s.js → DTrC3bkaQd-PALtG.js} +1 -1
- package/cdn/assets/{BM0APYFIQHTGxxYF.js → DqHHGbrzfGptVwKT.js} +1 -1
- package/{browser/esm/j4IyoNYp8IF40Q8T.mjs → cdn/assets/DqY233UP8cctSm77.js} +1 -1
- package/{browser/esm/tzAtsVRq8fh0AQOk.mjs → cdn/assets/DqpL0PUcHc2yhukz.js} +1 -1
- package/cdn/assets/{B6M04wH6vpX8Tswo.js → PK_vF_J7qweQDmnh.js} +1 -1
- package/{browser/esm/Dbj5xbwgmxpqP18Z.mjs → cdn/assets/PL8e8GY7OsUL26sU.js} +1 -1
- package/cdn/assets/{BjZFsdRm_rFuN4hm.js → VSTVSUa9PQF0q0El.js} +1 -1
- package/cdn/assets/{BRcP3bZej4lt-fwi.js → XG8H8R2jYaQEG5vJ.js} +1 -1
- package/cdn/assets/{B9aoOkmZ0D_YtsXK.js → _VkCiSR35Ycf4qMs.js} +2 -2
- package/cdn/assets/{UXesOLOvLQd8UezZ.js → _kc0UHqioVnr5VaW.js} +21 -21
- package/{browser/esm/BycubXhphudONHRz.mjs → cdn/assets/iEQmmn4nEfkZiIn_.js} +1 -1
- package/cdn/assets/{CwDeBfn2HcOixvHE.js → l3bAiTRrp-5sxROq.js} +1 -1
- package/{browser/esm/CNQTifWAw4UZqu4J.mjs → cdn/assets/nXa-TVOMsrXxtuc9.js} +1 -1
- package/cdn/assets/{De3jlByxtk3rWL2a.js → pQH8gesojID3Qjpt.js} +2 -2
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/Bd-US8M4eZh5SC26.cjs +0 -330
- package/browser/cjs/CNg6obQK0hrWbXte.cjs +0 -6
- package/browser/cjs/OmF2qL-WWE9cjtm6.cjs +0 -12
- package/cdn/assets/C-B2_rbodxKYJ8_E.js +0 -22
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.6.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
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.6.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.
|
|
@@ -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, m) {
|
|
45
45
|
super(e.Code.Parse, e.Label.Parse, c, m);
|
|
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, m) {
|
|
58
58
|
super(e.Code.Null, e.Label.Null, c, m);
|
|
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, m) {
|
|
67
67
|
super(e.Code.Div0, e.Label.Div0, c, m);
|
|
@@ -209,56 +209,56 @@ 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
|
-
const
|
|
219
|
+
const xt = Te.get(d.Code.Unknown);
|
|
220
220
|
var v;
|
|
221
|
-
(v = d || (d = {})).BuiltIn = { Parse: new v.Parse(), Null: new v.Null(), Div0: new v.Div0(), Value: new v.Value(), Ref: new v.Ref(), Name: new v.Name(), Num: new v.Num(), NA: new v.NA(), GettingData: new v.GettingData(), Spill: new v.Spill(), Connect: new v.Connect(), Blocked: new v.Blocked(), Unknown: new v.Unknown(), Field: new v.Field(), Calc: new v.Calc(), Busy: new v.Busy(), Python: new v.Python(), Timeout: new v.Timeout() }, v.getBuiltInByLabel = (e) =>
|
|
222
|
-
let
|
|
223
|
-
return
|
|
224
|
-
}, v.getBuiltInById = (e) => Te.get(e) ||
|
|
221
|
+
(v = d || (d = {})).BuiltIn = { Parse: new v.Parse(), Null: new v.Null(), Div0: new v.Div0(), Value: new v.Value(), Ref: new v.Ref(), Name: new v.Name(), Num: new v.Num(), NA: new v.NA(), GettingData: new v.GettingData(), Spill: new v.Spill(), Connect: new v.Connect(), Blocked: new v.Blocked(), Unknown: new v.Unknown(), Field: new v.Field(), Calc: new v.Calc(), Busy: new v.Busy(), Python: new v.Python(), Timeout: new v.Timeout() }, v.getBuiltInByLabel = (e) => nt.get(e), v.newTypedError = (e, t, n) => {
|
|
222
|
+
let r;
|
|
223
|
+
return r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = v.Unknown), new r(t, n);
|
|
224
|
+
}, v.getBuiltInById = (e) => Te.get(e) || xt;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.6.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 S = { html: "text/html", plain: "text/plain", png: "image/png" },
|
|
232
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds:
|
|
233
|
-
const j = { Column: "column", Row: "row" },
|
|
231
|
+
const S = { html: "text/html", plain: "text/plain", png: "image/png" }, Ct = Object.freeze({ left: 0, top: 0 }), vt = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), Tt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 });
|
|
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) => {
|
|
234
234
|
if (e === t) return !0;
|
|
235
235
|
if (!e || !t || e.length !== t.length) return !1;
|
|
236
|
-
for (let
|
|
236
|
+
for (let n = 0; n < e.length; n++) if (!Se(e[n], t[n])) return !1;
|
|
237
237
|
return !0;
|
|
238
|
-
}, he = (e, t,
|
|
238
|
+
}, he = (e, t, n) => {
|
|
239
239
|
if (!e && !t) return null;
|
|
240
|
-
if (!e) return
|
|
241
|
-
if (!t) return
|
|
242
|
-
const
|
|
243
|
-
let l =
|
|
244
|
-
return l ? (l.colStart =
|
|
245
|
-
},
|
|
240
|
+
if (!e) return n ? t : { ...t };
|
|
241
|
+
if (!t) return n ? e : { ...e };
|
|
242
|
+
const r = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), i = Math.max(e.colEnd, t.colEnd), a = Math.max(e.rowEnd, t.rowEnd);
|
|
243
|
+
let l = n;
|
|
244
|
+
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: r, rowStart: o, colEnd: i, rowEnd: a }, l;
|
|
245
|
+
}, De = (e, t) => {
|
|
246
246
|
if (!t || t.length === 0) return e;
|
|
247
|
-
const
|
|
248
|
-
for (let
|
|
249
|
-
const o = t[
|
|
250
|
-
xe(
|
|
247
|
+
const n = { ...e };
|
|
248
|
+
for (let r = 0; r < t.length; r++) {
|
|
249
|
+
const o = t[r];
|
|
250
|
+
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
251
|
}
|
|
252
|
-
return
|
|
253
|
-
},
|
|
252
|
+
return n;
|
|
253
|
+
}, Rt = [null, null], kt = (e, t, n) => {
|
|
254
254
|
if (e[0].value === e[1].value) return t;
|
|
255
255
|
};
|
|
256
|
-
function
|
|
256
|
+
function Ue(e, t = 2, n, r = j.Row, o) {
|
|
257
257
|
let i = [...e];
|
|
258
258
|
if (t <= 0 || e.length <= 1) return i;
|
|
259
|
-
let a =
|
|
259
|
+
let a = r === j.Column, l = 0, u = !1;
|
|
260
260
|
do {
|
|
261
|
-
const f = i.sort(
|
|
261
|
+
const f = i.sort(lt(a ? j.Row : j.Column));
|
|
262
262
|
i = [], i.push(f[0]);
|
|
263
263
|
const h = f.length;
|
|
264
264
|
let g = 0, p = f[0], y = p.colStart, T = p.rowStart, A = p.colEnd, D = p.rowEnd;
|
|
@@ -267,9 +267,9 @@ function Fe(e, t = 2, r, n = j.Row, o) {
|
|
|
267
267
|
let J = !1;
|
|
268
268
|
if (J = a ? p && T === I.rowStart && D === I.rowEnd && A + 1 === I.colStart : p && y === I.colStart && A === I.colEnd && D + 1 === I.rowStart, J) {
|
|
269
269
|
let E = { colStart: y, rowStart: T, colEnd: a ? I.colEnd : A, rowEnd: a ? D : I.rowEnd };
|
|
270
|
-
if (p.value !== void 0 && (E.value = p.value),
|
|
270
|
+
if (p.value !== void 0 && (E.value = p.value), n) {
|
|
271
271
|
const c = o ?? [null, null];
|
|
272
|
-
c[0] = p, c[1] = I, E =
|
|
272
|
+
c[0] = p, c[1] = I, E = n(c, E, r);
|
|
273
273
|
}
|
|
274
274
|
if (E) {
|
|
275
275
|
i[g] = E, u = !0, p = E, y = p.colStart, T = p.rowStart, A = p.colEnd, D = p.rowEnd;
|
|
@@ -282,13 +282,13 @@ function Fe(e, t = 2, r, n = j.Row, o) {
|
|
|
282
282
|
} while (l < t && u && i.length > 1);
|
|
283
283
|
return i;
|
|
284
284
|
}
|
|
285
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell:
|
|
285
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange: Ot, cellToRange: (e, t) => {
|
|
286
286
|
if (!e) return null;
|
|
287
|
-
let
|
|
288
|
-
return
|
|
289
|
-
}, columnFirstCellComparator: Le, columnFirstRangeComparator:
|
|
290
|
-
const
|
|
291
|
-
let
|
|
287
|
+
let n = t;
|
|
288
|
+
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;
|
|
289
|
+
}, columnFirstCellComparator: Le, columnFirstRangeComparator: it, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? Me : je : e !== j.Column ? Ae : Le, createConflatingRanges: (e, t = !1) => {
|
|
290
|
+
const n = [];
|
|
291
|
+
let r, o, i = Number.MIN_SAFE_INTEGER, a = Number.MIN_SAFE_INTEGER;
|
|
292
292
|
return { append: (l, u, f) => {
|
|
293
293
|
let h = !0;
|
|
294
294
|
const g = f !== void 0;
|
|
@@ -296,393 +296,399 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: vt, EmptyRange
|
|
|
296
296
|
const T = e ? e(o, f, t) : o === f ? f : void 0;
|
|
297
297
|
T === void 0 ? h = !1 : f = T;
|
|
298
298
|
}
|
|
299
|
-
if (h && u === a + 1 && l === i) return t ?
|
|
300
|
-
|
|
299
|
+
if (h && u === a + 1 && l === i) return t ? r.rowEnd = u : r.colEnd = u, a = u, void (o = f);
|
|
300
|
+
r && n.push(r);
|
|
301
301
|
const p = t ? l : u, y = t ? u : l;
|
|
302
|
-
|
|
303
|
-
}, done: (l) => (
|
|
304
|
-
}, createRangeComparator:
|
|
302
|
+
r = { colStart: p, rowStart: y, colEnd: p, rowEnd: y }, g && (r.value = f), i = l, a = u, o = f;
|
|
303
|
+
}, done: (l) => (r && (n.push(r), r = null), l ? Ue(n, 3, l === !0 ? kt : l, t ? j.Column : j.Row, Rt) : n) };
|
|
304
|
+
}, 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
305
|
if (!t || t.length === 0) return e;
|
|
306
|
-
let
|
|
307
|
-
for (; !Se(
|
|
308
|
-
return
|
|
306
|
+
let n = e, r = null;
|
|
307
|
+
for (; !Se(n, r); ) r = n, n = De(r, t);
|
|
308
|
+
return n;
|
|
309
309
|
}, indexOfCoords: (e, t) => {
|
|
310
|
-
const
|
|
311
|
-
for (let
|
|
310
|
+
const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
311
|
+
for (let r = t.length - 1; r >= 0; r--) if (xe(n, t[r])) return r;
|
|
312
312
|
return -1;
|
|
313
|
-
}, intersectRanges: (e, t,
|
|
314
|
-
if (!e) return
|
|
315
|
-
if (!t) return
|
|
313
|
+
}, intersectRanges: (e, t, n) => {
|
|
314
|
+
if (!e) return n ? t : { ...t };
|
|
315
|
+
if (!t) return n ? e : { ...e };
|
|
316
316
|
if (!e && !t || e.rowStart > t.rowEnd || e.rowEnd < t.rowStart || e.colStart > t.colEnd || e.colEnd < t.colStart) return null;
|
|
317
|
-
const
|
|
318
|
-
let l =
|
|
319
|
-
return l ? (l.colStart =
|
|
320
|
-
}, isCellWithinRange: (e, t) =>
|
|
317
|
+
const r = Math.max(e.colStart, t.colStart), o = Math.max(e.rowStart, t.rowStart), i = Math.min(e.colEnd, t.colEnd), a = Math.min(e.rowEnd, t.rowEnd);
|
|
318
|
+
let l = n;
|
|
319
|
+
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: r, rowStart: o, colEnd: i, rowEnd: a }, l;
|
|
320
|
+
}, isCellWithinRange: (e, t) => {
|
|
321
|
+
if (!e || !t) return !1;
|
|
322
|
+
const n = e.rowIndex;
|
|
323
|
+
if (n < t.rowStart || n > t.rowEnd) return !1;
|
|
324
|
+
const r = e.colIndex;
|
|
325
|
+
return !(r < t.colStart || r > t.colEnd);
|
|
326
|
+
}, isEqualCells: Pe, isEqualRanges: Se, isEqualRangesArrays: Fe, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Pe(e.cell, t.cell) && Fe(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: xe, isSingleCell: (e) => !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd, isValidRange: (e) => !!e && !(typeof e.colStart != "number" || e.colStart < 0) && !(typeof e.colEnd != "number" || e.colEnd < e.colStart) && !(typeof e.rowStart != "number" || e.rowStart < 0) && !(typeof e.rowEnd != "number" || e.rowEnd < e.rowStart), mergeRangedValues: Ue, reverseColumnFirstCellComparator: je, reverseRowFirstCellComparator: Me, rowFirstCellComparator: Ae, rowFirstRangeComparator: at, sanitizeRange: (e) => e ? { colStart: e.colIndex ?? e.colStart ?? 0, rowStart: e.rowIndex ?? e.rowStart ?? 0, colEnd: e.colIndex ?? e.colEnd ?? 0, rowEnd: e.rowIndex ?? e.rowEnd ?? 0 } : null, translateRange: (e, t = -e.rowStart, 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: he, unionRangesArrays: (e, t, n) => {
|
|
321
327
|
if (!e || e.length === 0) return null;
|
|
322
328
|
if (e.length === 1 && !t) return e[0];
|
|
323
|
-
let
|
|
324
|
-
for (let o = 1; o < e.length; o++)
|
|
325
|
-
return t && (
|
|
329
|
+
let r = e[0];
|
|
330
|
+
for (let o = 1; o < e.length; o++) r = he(r, e[o], n);
|
|
331
|
+
return t && (r = he(r, t, n)), r;
|
|
326
332
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
327
|
-
function
|
|
333
|
+
function Lt(e) {
|
|
328
334
|
const t = Object.prototype.toString.call(e);
|
|
329
|
-
return t === "[object RegExp]" || t === "[object Date]" || function(
|
|
330
|
-
return
|
|
335
|
+
return t === "[object RegExp]" || t === "[object Date]" || function(n) {
|
|
336
|
+
return n.$$typeof === At;
|
|
331
337
|
}(e);
|
|
332
338
|
}
|
|
333
|
-
const
|
|
334
|
-
function
|
|
339
|
+
const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
340
|
+
function Mt(e) {
|
|
335
341
|
return /* @__PURE__ */ function(t) {
|
|
336
342
|
return !!t && typeof t == "object";
|
|
337
|
-
}(e) && !
|
|
343
|
+
}(e) && !Lt(e);
|
|
338
344
|
}
|
|
339
|
-
function
|
|
340
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Y((
|
|
341
|
-
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;
|
|
342
348
|
}
|
|
343
|
-
function
|
|
344
|
-
return e.concat(t).map(function(
|
|
345
|
-
return
|
|
349
|
+
function jt(e, t, n) {
|
|
350
|
+
return e.concat(t).map(function(r) {
|
|
351
|
+
return re(r, n);
|
|
346
352
|
});
|
|
347
353
|
}
|
|
348
|
-
function
|
|
354
|
+
function Be(e) {
|
|
349
355
|
return Object.keys(e).concat(function(t) {
|
|
350
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(
|
|
351
|
-
return Object.propertyIsEnumerable.call(t,
|
|
356
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
357
|
+
return Object.propertyIsEnumerable.call(t, n);
|
|
352
358
|
}) : [];
|
|
353
359
|
}(e));
|
|
354
360
|
}
|
|
355
|
-
function
|
|
361
|
+
function $e(e, t) {
|
|
356
362
|
try {
|
|
357
363
|
return t in e;
|
|
358
364
|
} catch {
|
|
359
365
|
return !1;
|
|
360
366
|
}
|
|
361
367
|
}
|
|
362
|
-
function
|
|
363
|
-
const
|
|
364
|
-
return
|
|
365
|
-
|
|
366
|
-
}),
|
|
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
|
+
}), Be(t).forEach(function(o) {
|
|
367
373
|
(function(i, a) {
|
|
368
|
-
return
|
|
369
|
-
})(e, o) || (
|
|
374
|
+
return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
|
|
375
|
+
})(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = function(i, a) {
|
|
370
376
|
if (!a.customMerge) return Y;
|
|
371
377
|
const l = a.customMerge(i);
|
|
372
378
|
return typeof l == "function" ? l : Y;
|
|
373
|
-
}(o,
|
|
374
|
-
}),
|
|
379
|
+
}(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
|
|
380
|
+
}), r;
|
|
375
381
|
}
|
|
376
|
-
function Y(e, t,
|
|
377
|
-
(
|
|
378
|
-
const
|
|
379
|
-
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);
|
|
380
386
|
}
|
|
381
387
|
Y.all = function(e, t) {
|
|
382
388
|
if (!Array.isArray(e)) throw new Error("first argument should be an array");
|
|
383
|
-
return e.reduce(function(
|
|
384
|
-
return Y(
|
|
389
|
+
return e.reduce(function(n, r) {
|
|
390
|
+
return Y(n, r, t);
|
|
385
391
|
}, {});
|
|
386
392
|
};
|
|
387
|
-
const
|
|
393
|
+
const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
388
394
|
let t = 16 * Math.random() | 0;
|
|
389
395
|
return (e === "x" ? t : 3 & t | 8).toString(16);
|
|
390
|
-
}),
|
|
391
|
-
e[t] && typeof e[t] == "object" ?
|
|
392
|
-
}), Object.keys(e).length === 0 ? null : e),
|
|
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
|
+
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, n = Bt) => {
|
|
393
399
|
if (e == null || e === t) return null;
|
|
394
|
-
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return
|
|
395
|
-
const
|
|
396
|
-
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;
|
|
397
403
|
let o = !1;
|
|
398
|
-
for (let i = 0; i <
|
|
399
|
-
const a =
|
|
400
|
-
|
|
404
|
+
for (let i = 0; i < r.length; i++) {
|
|
405
|
+
const a = r[i];
|
|
406
|
+
ut(e[a], t?.[a], n) === null && (o = !0, delete e[a]);
|
|
401
407
|
}
|
|
402
408
|
return o && Object.keys(e).length === 0 ? null : void 0;
|
|
403
|
-
},
|
|
404
|
-
if (
|
|
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 = () => {
|
|
410
|
+
if (dt()) return k.Node;
|
|
405
411
|
const e = globalThis.navigator !== void 0 && globalThis.navigator.userAgent ? globalThis.navigator.userAgent.toLowerCase() : "";
|
|
406
412
|
return e ? /(win32|win64|windows|wince)/i.test(e) ? k.Windows : /(macintosh|macintel|macppc|mac68k|macos)/i.test(e) ? k.MacOS : /(iphone|ipad|ipod)/i.test(e) ? k.IOS : /android/.test(e) ? k.Android : /linux/.test(e) ? k.Linux : /^((?!chrome|android|).)*safari/i.test(e) ? k.Safari : /^((?!chrome|android|Seamonkey).)*firefox/i.test(e) ? k.Firefox : k.Unknown : k.Unknown;
|
|
407
413
|
};
|
|
408
|
-
function
|
|
414
|
+
function dt() {
|
|
409
415
|
return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
|
|
410
416
|
}
|
|
411
|
-
const
|
|
412
|
-
const
|
|
413
|
-
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;
|
|
414
420
|
}, asNumber: (e) => {
|
|
415
|
-
const t =
|
|
421
|
+
const t = Ut(e);
|
|
416
422
|
return Number.isFinite(t) ? t : 0;
|
|
417
423
|
}, camelToPrettyCase: (e) => e.length === 1 ? e.toUpperCase() : e.replace(/([A-Z])/g, " $1").replace(/^./, function(t) {
|
|
418
424
|
return t.toUpperCase();
|
|
419
|
-
}).trim(), canUseDOM:
|
|
425
|
+
}).trim(), canUseDOM: Ge, cancelTimeout: (e) => {
|
|
420
426
|
cancelAnimationFrame(e.id);
|
|
421
|
-
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) =>
|
|
427
|
+
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) => Ve(e) ? e : JSON.parse(JSON.stringify(e)), consoleWithNoSource: (...e) => new Promise((t) => {
|
|
422
428
|
setTimeout(() => {
|
|
423
429
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
424
430
|
});
|
|
425
|
-
}), debounce: function(e, t = 300,
|
|
426
|
-
let
|
|
431
|
+
}), debounce: function(e, t = 300, n = !1) {
|
|
432
|
+
let r, o, i, a, l = 0;
|
|
427
433
|
function u() {
|
|
428
434
|
let h = Date.now() - l;
|
|
429
|
-
h < t && h >= 0 ?
|
|
435
|
+
h < t && h >= 0 ? r = setTimeout(u, t - h) : (r = null, n || (a = e.apply(i, o), i = o = null));
|
|
430
436
|
}
|
|
431
437
|
t == null && (t = 100);
|
|
432
438
|
const f = function() {
|
|
433
439
|
i = globalThis, o = arguments, l = Date.now();
|
|
434
|
-
var h =
|
|
435
|
-
return
|
|
440
|
+
var h = n && !r;
|
|
441
|
+
return r || (r = setTimeout(u, t)), h && (a = e.apply(i, o), i = o = null), a;
|
|
436
442
|
};
|
|
437
443
|
return f.clear = function() {
|
|
438
|
-
|
|
444
|
+
r && (clearTimeout(r), r = null);
|
|
439
445
|
}, f.flush = function() {
|
|
440
|
-
|
|
446
|
+
r && (a = e.apply(i, o), i = o = null, clearTimeout(r), r = null);
|
|
441
447
|
}, f;
|
|
442
|
-
}, deepEqual: function e(t,
|
|
443
|
-
if (t ===
|
|
444
|
-
if (t &&
|
|
445
|
-
if (t.constructor !==
|
|
446
|
-
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, i;
|
|
447
453
|
if (Array.isArray(t)) {
|
|
448
|
-
if (
|
|
449
|
-
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;
|
|
450
456
|
return !0;
|
|
451
457
|
}
|
|
452
|
-
if (t instanceof Map &&
|
|
453
|
-
if (t.size !==
|
|
454
|
-
for (o of t.entries()) if (!
|
|
455
|
-
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;
|
|
456
462
|
return !0;
|
|
457
463
|
}
|
|
458
|
-
if (t instanceof Set &&
|
|
459
|
-
if (t.size !==
|
|
460
|
-
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;
|
|
461
467
|
return !0;
|
|
462
468
|
}
|
|
463
|
-
if (ArrayBuffer.isView(t) && ArrayBuffer.isView(
|
|
464
|
-
if (
|
|
465
|
-
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;
|
|
466
472
|
return !0;
|
|
467
473
|
}
|
|
468
|
-
if (t.constructor === RegExp) return t.source ===
|
|
469
|
-
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() ===
|
|
470
|
-
if (t.toString !== Object.prototype.toString) return t.toString() ===
|
|
471
|
-
if (i = Object.keys(t),
|
|
472
|
-
for (o =
|
|
473
|
-
for (o =
|
|
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 (i = Object.keys(t), r = i.length, r !== Object.keys(n).length) return !1;
|
|
478
|
+
for (o = r; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(n, i[o])) return !1;
|
|
479
|
+
for (o = r; o-- !== 0; ) {
|
|
474
480
|
let a = i[o];
|
|
475
|
-
if ((a !== "_owner" || !t.$$typeof) && !e(t[a],
|
|
481
|
+
if ((a !== "_owner" || !t.$$typeof) && !e(t[a], n[a])) return !1;
|
|
476
482
|
}
|
|
477
483
|
return !0;
|
|
478
484
|
}
|
|
479
|
-
return t != t &&
|
|
485
|
+
return t != t && n != n;
|
|
480
486
|
}, deepFreeze: function e(t) {
|
|
481
|
-
return Object.freeze(t), Object.keys(t).forEach((
|
|
482
|
-
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]);
|
|
483
489
|
}), t;
|
|
484
490
|
}, deepMerge: Y, diffValues: (e, t) => {
|
|
485
|
-
const
|
|
491
|
+
const n = {}, r = Object.keys(t), o = r.length;
|
|
486
492
|
for (let i = 0; i < o; i++) {
|
|
487
|
-
const a =
|
|
488
|
-
e[a] !== t[a] && (e[a] === void 0 ?
|
|
489
|
-
}
|
|
490
|
-
return Object.keys(
|
|
491
|
-
}, findEqualOrGreater: function(e, t,
|
|
492
|
-
let
|
|
493
|
-
for (;
|
|
494
|
-
let i = Math.floor((
|
|
493
|
+
const a = r[i];
|
|
494
|
+
e[a] !== t[a] && (e[a] === void 0 ? n[a] = t[a] : n[a] = e[a]);
|
|
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 i = Math.floor((r + o) / 2), a = n(e[i]);
|
|
495
501
|
if (a === t) return i;
|
|
496
|
-
a < t ?
|
|
502
|
+
a < t ? r = i + 1 : o = i - 1;
|
|
497
503
|
}
|
|
498
|
-
return
|
|
499
|
-
}, findEqualOrLesser: function(e, t,
|
|
500
|
-
let
|
|
501
|
-
for (;
|
|
502
|
-
let i = Math.floor((
|
|
504
|
+
return r;
|
|
505
|
+
}, findEqualOrLesser: function(e, t, n = ze) {
|
|
506
|
+
let r = e.length - 1, o = 0;
|
|
507
|
+
for (; r >= o; ) {
|
|
508
|
+
let i = Math.floor((r + o) / 2), a = n(e[i]);
|
|
503
509
|
if (a === t) return i;
|
|
504
|
-
a > t ?
|
|
510
|
+
a > t ? r = i - 1 : o = i + 1;
|
|
505
511
|
}
|
|
506
|
-
return
|
|
507
|
-
}, findNextStep: (e, t = !0,
|
|
508
|
-
const i = Math.max(e -
|
|
509
|
-
return Math.min(o, Math[t ? "ceil" : "floor"](i /
|
|
512
|
+
return r;
|
|
513
|
+
}, findNextStep: (e, t = !0, n = 15, r = 10, o = 400) => {
|
|
514
|
+
const i = Math.max(e - r, 0) + (t ? 1 : -1);
|
|
515
|
+
return Math.min(o, Math[t ? "ceil" : "floor"](i / n) * n + r);
|
|
510
516
|
}, getDPI: () => {
|
|
511
517
|
let e = 1;
|
|
512
518
|
return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
|
|
513
519
|
}, getFromPath: (e, t) => {
|
|
514
|
-
const
|
|
515
|
-
let
|
|
516
|
-
for (let o = 0; o <
|
|
517
|
-
const i =
|
|
518
|
-
if (!
|
|
519
|
-
let a =
|
|
520
|
-
if (typeof a == "function" && (a = a.bind(
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
return
|
|
524
|
-
}, getOS: oe, hasFocus:
|
|
520
|
+
const n = t.split(".");
|
|
521
|
+
let r = e;
|
|
522
|
+
for (let o = 0; o < n.length; o++) {
|
|
523
|
+
const i = n[o];
|
|
524
|
+
if (!r) return null;
|
|
525
|
+
let a = r[i];
|
|
526
|
+
if (typeof a == "function" && (a = a.bind(r)()), !a || !ne(a)) return a;
|
|
527
|
+
r = a;
|
|
528
|
+
}
|
|
529
|
+
return r ?? null;
|
|
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) => {
|
|
525
531
|
if (e === t) return !0;
|
|
526
532
|
if (e && !t || t && !e) return !1;
|
|
527
|
-
const
|
|
528
|
-
if (
|
|
529
|
-
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;
|
|
530
536
|
return !0;
|
|
531
|
-
}, isNode:
|
|
537
|
+
}, isNode: dt, isNullOrUndefined: Ve, isNumeric: (e) => {
|
|
532
538
|
const t = 1 * e;
|
|
533
539
|
return Number.isFinite(t) && typeof t == "number";
|
|
534
|
-
}, 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) => {
|
|
535
541
|
const t = e.length;
|
|
536
|
-
if (t > 0 && e[t - 1] !== void 0 && !
|
|
537
|
-
let
|
|
538
|
-
for (let
|
|
539
|
-
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, i) => [...i] });
|
|
545
|
+
return n;
|
|
540
546
|
}, nextTick: (e) => {
|
|
541
547
|
typeof window < "u" && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame(() => {
|
|
542
548
|
e();
|
|
543
549
|
}) : (typeof setImmediate == "function" ? setImmediate : setTimeout)(() => {
|
|
544
550
|
e();
|
|
545
551
|
});
|
|
546
|
-
}, openFileDialog: (e = "*.*") => new Promise((t,
|
|
547
|
-
if (!
|
|
548
|
-
const
|
|
549
|
-
|
|
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;
|
|
550
556
|
let o = null, i = !1;
|
|
551
557
|
globalThis.addEventListener?.("focus", () => {
|
|
552
558
|
setTimeout(() => {
|
|
553
559
|
o || i || (i = !0, t(null));
|
|
554
560
|
}, 1e3);
|
|
555
|
-
}, { once: !0, passive: !0 }),
|
|
556
|
-
if (o =
|
|
561
|
+
}, { once: !0, passive: !0 }), r.onchange = () => {
|
|
562
|
+
if (o = r.files[0], o) {
|
|
557
563
|
if (i) return void console.warn("File open detected after faux cancel.", o);
|
|
558
564
|
t(o);
|
|
559
565
|
}
|
|
560
|
-
},
|
|
566
|
+
}, r.autofocus = !0, r.click();
|
|
561
567
|
}), rafThrottle: (e) => {
|
|
562
|
-
let t,
|
|
563
|
-
|
|
568
|
+
let t, n = !1, r = function() {
|
|
569
|
+
n = !1, e(t);
|
|
564
570
|
};
|
|
565
571
|
return function(o) {
|
|
566
|
-
t = o, t && t.persist && t.persist(),
|
|
572
|
+
t = o, t && t.persist && t.persist(), n || (n = !0, requestAnimationFrame(r));
|
|
567
573
|
};
|
|
568
|
-
}, removeEmptyProperties:
|
|
574
|
+
}, removeEmptyProperties: ct, removeEqualValues: ut, removeListenerAll: (e) => {
|
|
569
575
|
if (!e) return [];
|
|
570
576
|
for (let t = 0; t < e.length; t++) e[t] && e[t]();
|
|
571
577
|
return [];
|
|
572
578
|
}, requestTimeout: (e, t) => {
|
|
573
|
-
const
|
|
574
|
-
|
|
579
|
+
const n = Ke(), r = { id: requestAnimationFrame(function o() {
|
|
580
|
+
Ke() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
|
|
575
581
|
}) };
|
|
576
|
-
return
|
|
582
|
+
return r;
|
|
577
583
|
}, roundAccurately: (e, t = 0) => {
|
|
578
584
|
if (e == null || !isFinite(e)) return null;
|
|
579
|
-
const
|
|
580
|
-
return Number(Math.round(e *
|
|
581
|
-
}, setToPath: (e, t,
|
|
582
|
-
const
|
|
585
|
+
const n = 10 ** t;
|
|
586
|
+
return Number(Math.round(e * n) / n);
|
|
587
|
+
}, setToPath: (e, t, n) => {
|
|
588
|
+
const r = t.split(".");
|
|
583
589
|
let o = e;
|
|
584
590
|
if (!o) throw new Error("Can not set path to a null path.");
|
|
585
|
-
for (let i = 0; o && i <
|
|
586
|
-
const a =
|
|
591
|
+
for (let i = 0; o && i < r.length - 1; i++) {
|
|
592
|
+
const a = r[i];
|
|
587
593
|
let l = o[a];
|
|
588
|
-
if (l == null && (l = {}, o[a] = l), !
|
|
594
|
+
if (l == null && (l = {}, o[a] = l), !ne(l)) throw new Error("Can not set path to a non object path.");
|
|
589
595
|
o = l;
|
|
590
596
|
}
|
|
591
|
-
if (typeof
|
|
592
|
-
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;
|
|
593
599
|
}, splitNumber: (e) => {
|
|
594
600
|
let t = Math.abs(e);
|
|
595
601
|
if (isNaN(t) || !isFinite(e)) return null;
|
|
596
|
-
let
|
|
597
|
-
if (
|
|
598
|
-
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(
|
|
599
|
-
}, subtractRect: (e, t,
|
|
602
|
+
let n = 0 | t, r = t - n, o = 0, i = 0, a = 1;
|
|
603
|
+
if (r > 5e-8) for (; i < 8 && Math.abs(o / a - r) > 5e-8; ) i++, a *= 10, o = Math.round(r * a);
|
|
604
|
+
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(n + 1)), fpLength: i };
|
|
605
|
+
}, subtractRect: (e, t, n = !1) => {
|
|
600
606
|
if (!t) return [e];
|
|
601
|
-
if (!
|
|
602
|
-
const
|
|
607
|
+
if (!qe(e, t)) return [];
|
|
608
|
+
const r = [];
|
|
603
609
|
let o = e;
|
|
604
610
|
const i = () => {
|
|
605
|
-
t.top > o.top && t.top < o.bottom && (
|
|
611
|
+
t.top > o.top && t.top < o.bottom && (r.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
|
|
606
612
|
}, a = () => {
|
|
607
|
-
t.bottom > o.top && t.bottom < o.bottom && (
|
|
613
|
+
t.bottom > o.top && t.bottom < o.bottom && (r.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
|
|
608
614
|
}, l = () => {
|
|
609
|
-
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 });
|
|
610
616
|
}, u = () => {
|
|
611
|
-
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 });
|
|
612
618
|
};
|
|
613
|
-
return
|
|
619
|
+
return n ? (u(), l(), i(), a()) : (i(), a(), l(), u()), r;
|
|
614
620
|
}, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
|
|
615
|
-
let
|
|
616
|
-
return (...
|
|
621
|
+
let n = null;
|
|
622
|
+
return (...r) => {
|
|
617
623
|
const o = Date.now();
|
|
618
|
-
(!
|
|
624
|
+
(!n || o - n >= t) && (n = o, e(...r));
|
|
619
625
|
};
|
|
620
626
|
}, toSafeJSON: function e(t) {
|
|
621
627
|
if (t === null || typeof t != "object") return t;
|
|
622
628
|
if (typeof t.toJSON == "function") return t.toJSON();
|
|
623
|
-
if (Array.isArray(t)) return t.map((
|
|
629
|
+
if (Array.isArray(t)) return t.map((r) => e(r));
|
|
624
630
|
if (typeof t.toString == "function" && t.toString !== Object.prototype.toString) return t.toString();
|
|
625
|
-
const
|
|
626
|
-
for (const
|
|
627
|
-
return
|
|
631
|
+
const n = {};
|
|
632
|
+
for (const r in t) t.hasOwnProperty(r) && (n[r] = e(t[r]));
|
|
633
|
+
return n;
|
|
628
634
|
}, transpose: (e) => {
|
|
629
635
|
if (!e) return e;
|
|
630
|
-
const t = e.length,
|
|
631
|
-
for (let o = 0; o <
|
|
632
|
-
for (let o = 0; o < t; o++) for (let i = 0; i <
|
|
633
|
-
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 i = 0; i < n; i++) r[i][o] = e[o][i];
|
|
639
|
+
return r;
|
|
634
640
|
}, uuidV4: de, validEnumValue: (e, t) => {
|
|
635
641
|
if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
|
|
636
|
-
}, whenFocus: async (e, t = !1) => new Promise((
|
|
637
|
-
|
|
638
|
-
|
|
642
|
+
}, whenFocus: async (e, t = !1) => new Promise((n) => {
|
|
643
|
+
We(e, t) ? n(!0) : e.addEventListener("focusin", () => {
|
|
644
|
+
n(!0);
|
|
639
645
|
}, { once: !0 }), e.focus();
|
|
640
646
|
}) }, Symbol.toStringTag, { value: "Module" }));
|
|
641
647
|
Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
|
|
642
|
-
const
|
|
643
|
-
const t = new Uint8Array(e),
|
|
644
|
-
let
|
|
645
|
-
for (let o = 0; o <
|
|
646
|
-
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(
|
|
647
|
-
if (typeof Buffer < "u") return Buffer.from(
|
|
648
|
+
const ft = (e) => {
|
|
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");
|
|
648
654
|
throw new Error("Unsupported environment");
|
|
649
|
-
}, Ce = (e) => new Promise((t,
|
|
655
|
+
}, Ce = (e) => new Promise((t, n) => {
|
|
650
656
|
if (e) if (typeof FileReader < "u") {
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
t(
|
|
654
|
-
},
|
|
655
|
-
r
|
|
656
|
-
},
|
|
657
|
+
const r = new FileReader();
|
|
658
|
+
r.onload = () => {
|
|
659
|
+
t(r.result);
|
|
660
|
+
}, r.onerror = () => {
|
|
661
|
+
n(r.error);
|
|
662
|
+
}, r.readAsText(e);
|
|
657
663
|
} else if (typeof Buffer < "u") {
|
|
658
|
-
const
|
|
664
|
+
const r = (o) => Buffer.from(o).toString("utf-8");
|
|
659
665
|
e.arrayBuffer().then((o) => {
|
|
660
|
-
t(
|
|
666
|
+
t(r(o));
|
|
661
667
|
}).catch((o) => {
|
|
662
|
-
|
|
668
|
+
n(o);
|
|
663
669
|
});
|
|
664
|
-
} else
|
|
670
|
+
} else n(new Error("Unsupported environment"));
|
|
665
671
|
else t("");
|
|
666
672
|
});
|
|
667
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64:
|
|
668
|
-
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"),
|
|
669
|
-
for (let o = 0; o <
|
|
670
|
-
return
|
|
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"), n = t.length, r = new Uint8Array(n);
|
|
675
|
+
for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
|
|
676
|
+
return r.buffer;
|
|
671
677
|
}, blobToString: Ce }, Symbol.toStringTag, { value: "Module" }));
|
|
672
|
-
const
|
|
673
|
-
let
|
|
678
|
+
const pt = "data:image/png;base64,", mt = "Unable to resolve image.", Ye = (e) => new Promise(async (t, n) => {
|
|
679
|
+
let r = null;
|
|
674
680
|
try {
|
|
675
|
-
|
|
676
|
-
t({ width:
|
|
677
|
-
}, { once: !0 }),
|
|
678
|
-
URL.revokeObjectURL(e),
|
|
679
|
-
}, { 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");
|
|
680
686
|
} catch {
|
|
681
|
-
|
|
687
|
+
r?.src && URL.revokeObjectURL(r.src);
|
|
682
688
|
}
|
|
683
|
-
|
|
689
|
+
r || n(mt);
|
|
684
690
|
}), we = "image/svg+xml";
|
|
685
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX:
|
|
691
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (n, r) => {
|
|
686
692
|
let o = null;
|
|
687
693
|
try {
|
|
688
694
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
@@ -690,42 +696,42 @@ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: dt,
|
|
|
690
696
|
const i = document.createElement("canvas");
|
|
691
697
|
i.width = o.naturalWidth, i.height = o.naturalHeight, i.getContext("2d").drawImage(o, 0, 0);
|
|
692
698
|
const a = i.toDataURL("image/png", t);
|
|
693
|
-
|
|
699
|
+
n({ elemImg: o, dataUrl: a });
|
|
694
700
|
} catch (i) {
|
|
695
|
-
URL.revokeObjectURL(e),
|
|
701
|
+
URL.revokeObjectURL(e), r(i);
|
|
696
702
|
}
|
|
697
703
|
}, { once: !0 }), o.addEventListener("error", function() {
|
|
698
|
-
URL.revokeObjectURL(e),
|
|
704
|
+
URL.revokeObjectURL(e), r("Invalid Image");
|
|
699
705
|
}, { once: !0 }), await o.decode("sync");
|
|
700
706
|
} catch {
|
|
701
707
|
o?.src && URL.revokeObjectURL(o.src);
|
|
702
708
|
}
|
|
703
|
-
o ||
|
|
709
|
+
o || r(mt);
|
|
704
710
|
}), loadImageDetails: async (e, t = null) => {
|
|
705
|
-
let
|
|
706
|
-
const
|
|
711
|
+
let n = null;
|
|
712
|
+
const r = async () => {
|
|
707
713
|
try {
|
|
708
|
-
const i = t ?? "image/*", a = URL.createObjectURL(new Blob([e], { type: i })), l = await
|
|
709
|
-
|
|
714
|
+
const i = t ?? "image/*", a = URL.createObjectURL(new Blob([e], { type: i })), l = await Ye(a);
|
|
715
|
+
n = { mimeType: i, naturalDimensions: l, asUrl: a };
|
|
710
716
|
} catch {
|
|
711
717
|
}
|
|
712
718
|
}, o = async () => {
|
|
713
719
|
try {
|
|
714
|
-
const i = new TextDecoder().decode(e), a = URL.createObjectURL(new Blob([i], { type: we })), l = await
|
|
715
|
-
|
|
720
|
+
const i = new TextDecoder().decode(e), a = URL.createObjectURL(new Blob([i], { type: we })), l = await Ye(a);
|
|
721
|
+
n = { mimeType: t ?? we, naturalDimensions: l, asUrl: a, asSVGText: i };
|
|
716
722
|
} catch {
|
|
717
723
|
}
|
|
718
724
|
};
|
|
719
|
-
if (t === we ? await o() : t.startsWith("image/") ? await
|
|
720
|
-
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;
|
|
721
727
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
722
|
-
var
|
|
723
|
-
(
|
|
728
|
+
var Je, He;
|
|
729
|
+
(He = Je || (Je = {})).resolveTypedUpdates = (e, t, n, r) => {
|
|
724
730
|
if (e === null) return e;
|
|
725
|
-
if (e === void 0) return
|
|
731
|
+
if (e === void 0) return r;
|
|
726
732
|
let o = e;
|
|
727
733
|
if (t?.shorthand) {
|
|
728
|
-
const u = t?.shorthand(e,
|
|
734
|
+
const u = t?.shorthand(e, n);
|
|
729
735
|
u !== void 0 && (o = u);
|
|
730
736
|
}
|
|
731
737
|
if (o !== null && t?.getSubType) {
|
|
@@ -734,37 +740,37 @@ var We, Ye;
|
|
|
734
740
|
}
|
|
735
741
|
const i = t?.properties, a = t?.arrayType ?? !1;
|
|
736
742
|
let l = o;
|
|
737
|
-
if (t && t.merge && l &&
|
|
743
|
+
if (t && t.merge && l && r) l = t.merge(l, r, n);
|
|
738
744
|
else if (!a && i) {
|
|
739
|
-
const u = Object.keys({ ...o, ...
|
|
745
|
+
const u = Object.keys({ ...o, ...r });
|
|
740
746
|
l = null;
|
|
741
747
|
for (let f = 0; f < u.length; f++) {
|
|
742
748
|
const h = u[f];
|
|
743
749
|
let g, p = o[h];
|
|
744
750
|
if (p !== void 0) {
|
|
745
751
|
const y = i[h];
|
|
746
|
-
g = y ? (0,
|
|
747
|
-
} else g =
|
|
752
|
+
g = y ? (0, He.resolveTypedUpdates)(p, y, n, r?.[h]) : p;
|
|
753
|
+
} else g = r?.[h];
|
|
748
754
|
g != null && (l = l ?? {}, l[h] = g);
|
|
749
755
|
}
|
|
750
756
|
}
|
|
751
757
|
return l;
|
|
752
758
|
};
|
|
753
|
-
const
|
|
759
|
+
const Xe = \`The Safari browser does not support advanced copy and paste.
|
|
754
760
|
Copy and paste will be limited to within the browser tab.
|
|
755
761
|
|
|
756
762
|
Please use Chrome or Edge if external copy and paste is required.\`, ye = \`You do not have permissions to access the clipboard.
|
|
757
|
-
All copy and paste operations will be limited to the browser tab.\`,
|
|
763
|
+
All copy and paste operations will be limited to the browser tab.\`, ht = { Safari: \`The Safari browser does not support advanced copy and paste.
|
|
758
764
|
Copy and paste will be limited to within the browser tab.
|
|
759
765
|
|
|
760
|
-
Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye, PermsWrite: oe() === k.Safari ?
|
|
766
|
+
Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye, PermsWrite: oe() === k.Safari ? Xe : ye, PermsRead: oe() === k.Safari ? Xe : ye }, ge = async () => new Promise((e) => {
|
|
761
767
|
document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
|
|
762
768
|
e();
|
|
763
769
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
764
|
-
}), be = async (e, t,
|
|
765
|
-
if (oe() === k.Safari) return await
|
|
770
|
+
}), be = async (e, t, n) => {
|
|
771
|
+
if (oe() === k.Safari) return await n(new Error(ht.Safari));
|
|
766
772
|
try {
|
|
767
|
-
const
|
|
773
|
+
const r = async (a) => {
|
|
768
774
|
try {
|
|
769
775
|
return await a();
|
|
770
776
|
} catch (l) {
|
|
@@ -773,33 +779,33 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
|
|
|
773
779
|
}
|
|
774
780
|
}, o = await globalThis?.navigator?.permissions?.query({ name: e, allowWithoutGesture: !0, allowWithoutSanitization: !0 });
|
|
775
781
|
let i = !1;
|
|
776
|
-
if (o.state === "prompt" && (i = await
|
|
777
|
-
} catch (
|
|
778
|
-
return
|
|
782
|
+
if (o.state === "prompt" && (i = await r(t)), i || o.state !== "granted" || (i = await t()), !i) return await n(new Error(o.state));
|
|
783
|
+
} catch (r) {
|
|
784
|
+
return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
|
|
779
785
|
}
|
|
780
|
-
},
|
|
786
|
+
}, wt = async (e) => {
|
|
781
787
|
try {
|
|
782
788
|
return await e.read({ unsanitized: [S.html] });
|
|
783
789
|
} catch {
|
|
784
790
|
}
|
|
785
791
|
return await e.read();
|
|
786
|
-
},
|
|
792
|
+
}, zt = async (e, t) => {
|
|
787
793
|
if (!e) return null;
|
|
788
|
-
const
|
|
789
|
-
let
|
|
790
|
-
for (let o = 0; !
|
|
791
|
-
return await
|
|
792
|
-
return
|
|
794
|
+
const n = await wt(e);
|
|
795
|
+
let r = !1;
|
|
796
|
+
for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
|
|
797
|
+
return await n[o].getType(t);
|
|
798
|
+
return r ? void 0 : null;
|
|
793
799
|
};
|
|
794
800
|
if (!globalThis.ClipboardItem) {
|
|
795
|
-
const e = (
|
|
801
|
+
const e = (n, r) => new Blob([r], { type: n });
|
|
796
802
|
class t {
|
|
797
|
-
constructor(
|
|
798
|
-
this._items = {}, this._types = Object.keys(
|
|
799
|
-
const i = {}, a = Object.keys(
|
|
803
|
+
constructor(r, o) {
|
|
804
|
+
this._items = {}, this._types = Object.keys(r);
|
|
805
|
+
const i = {}, a = Object.keys(r);
|
|
800
806
|
for (let l = 0; l < a.length; l++) {
|
|
801
807
|
const u = a[l];
|
|
802
|
-
let f =
|
|
808
|
+
let f = r[u];
|
|
803
809
|
i[u] = typeof f == "string" ? e(u, f) : f;
|
|
804
810
|
}
|
|
805
811
|
this._items = i, this._presentationStyle = o?.presentationStyle ?? "unspecified";
|
|
@@ -807,62 +813,62 @@ if (!globalThis.ClipboardItem) {
|
|
|
807
813
|
get types() {
|
|
808
814
|
return this._types;
|
|
809
815
|
}
|
|
810
|
-
getType(
|
|
811
|
-
return Promise.resolve(this._items[
|
|
816
|
+
getType(r) {
|
|
817
|
+
return Promise.resolve(this._items[r]);
|
|
812
818
|
}
|
|
813
|
-
supports(
|
|
819
|
+
supports(r) {
|
|
814
820
|
return !0;
|
|
815
821
|
}
|
|
816
822
|
}
|
|
817
823
|
globalThis.ClipboardItem = t;
|
|
818
824
|
}
|
|
819
|
-
const ve = async (e, t = S.html) => new Promise(async (
|
|
825
|
+
const ve = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
820
826
|
try {
|
|
821
|
-
const o = await
|
|
827
|
+
const o = await zt(e, t);
|
|
822
828
|
if (o) {
|
|
823
829
|
const i = new FileReader();
|
|
824
830
|
i.onload = () => {
|
|
825
|
-
|
|
831
|
+
n(i.result);
|
|
826
832
|
}, i.onerror = () => {
|
|
827
|
-
|
|
833
|
+
n("");
|
|
828
834
|
}, i.readAsText(o);
|
|
829
|
-
} else
|
|
835
|
+
} else n("");
|
|
830
836
|
} catch (o) {
|
|
831
|
-
|
|
837
|
+
r(o);
|
|
832
838
|
}
|
|
833
|
-
}),
|
|
834
|
-
const
|
|
835
|
-
if (!
|
|
836
|
-
let
|
|
839
|
+
}), Ze = async (e, t = S.html) => {
|
|
840
|
+
const n = await ve(e, t);
|
|
841
|
+
if (!n) return null;
|
|
842
|
+
let r = null;
|
|
837
843
|
try {
|
|
838
|
-
|
|
844
|
+
r = new DOMParser().parseFromString(n, S.html);
|
|
839
845
|
} catch {
|
|
840
846
|
console.warn("Can't parse html from clipboard.");
|
|
841
847
|
}
|
|
842
|
-
return
|
|
843
|
-
},
|
|
848
|
+
return r;
|
|
849
|
+
}, Kt = async (e) => {
|
|
844
850
|
e && await e.writeText("");
|
|
845
|
-
}, ie = "clipboard-uuid", Q = "web text/uuid",
|
|
846
|
-
let
|
|
851
|
+
}, ie = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ie}="\${e}"/>\`, Vt = (e, t) => {
|
|
852
|
+
let n = null;
|
|
847
853
|
try {
|
|
848
|
-
const
|
|
849
|
-
|
|
850
|
-
} catch (
|
|
851
|
-
console.warn("Can't embed uuid.",
|
|
854
|
+
const r = new DOMParser().parseFromString(t, S.html);
|
|
855
|
+
r.body.firstElementChild.setAttribute(ie, e), n = r.getElementsByTagName("body")[0].innerHTML;
|
|
856
|
+
} catch (r) {
|
|
857
|
+
console.warn("Can't embed uuid.", r);
|
|
852
858
|
}
|
|
853
|
-
return
|
|
854
|
-
},
|
|
859
|
+
return n;
|
|
860
|
+
}, et = (e, t) => {
|
|
855
861
|
if (!t || !e) return !1;
|
|
856
862
|
try {
|
|
857
|
-
const
|
|
858
|
-
if (
|
|
863
|
+
const n = t.querySelectorAll(\`[\${ie}="\${e}"]\`);
|
|
864
|
+
if (n && n.length === 1) return !0;
|
|
859
865
|
if (t.querySelector("parsererror")) throw new Error("We are unable to parse node");
|
|
860
866
|
return !1;
|
|
861
867
|
} catch {
|
|
862
868
|
return !1;
|
|
863
869
|
}
|
|
864
870
|
};
|
|
865
|
-
class
|
|
871
|
+
class tt {
|
|
866
872
|
constructor(t) {
|
|
867
873
|
if (t?.nativeClipboard === void 0 || t?.nativeClipboard === !0) try {
|
|
868
874
|
this._nativeClipboard = globalThis?.navigator.clipboard;
|
|
@@ -877,8 +883,8 @@ class Qe {
|
|
|
877
883
|
await ge();
|
|
878
884
|
const t = await ve(this._nativeClipboard, Q);
|
|
879
885
|
if (!this._state || t && t === this._state.uuid) return !0;
|
|
880
|
-
const
|
|
881
|
-
return !this._state || (
|
|
886
|
+
const n = await Ze(this._nativeClipboard, S.html);
|
|
887
|
+
return !this._state || (et(this._state.uuid, n) || this.clear(), !0);
|
|
882
888
|
}, async (t) => {
|
|
883
889
|
t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
|
|
884
890
|
});
|
|
@@ -889,7 +895,7 @@ class Qe {
|
|
|
889
895
|
t._checkForChanges();
|
|
890
896
|
}, this._onBlur = () => {
|
|
891
897
|
globalThis.addEventListener?.("focus", t._onFocus, { once: !0 });
|
|
892
|
-
}, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (
|
|
898
|
+
}, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (n) => {
|
|
893
899
|
t._checkForChanges();
|
|
894
900
|
}));
|
|
895
901
|
}
|
|
@@ -898,13 +904,13 @@ class Qe {
|
|
|
898
904
|
const t = this;
|
|
899
905
|
return await be("clipboard-read", async () => {
|
|
900
906
|
if (await ge(), this._state?.uuid) {
|
|
901
|
-
const
|
|
902
|
-
if (
|
|
903
|
-
const
|
|
904
|
-
if (
|
|
907
|
+
const n = await ve(this._nativeClipboard, Q);
|
|
908
|
+
if (n && n === t._state.uuid) return !0;
|
|
909
|
+
const r = await Ze(this._nativeClipboard, S.html);
|
|
910
|
+
if (et(t._state?.uuid, r)) return !0;
|
|
905
911
|
}
|
|
906
|
-
return t._state = { items: await
|
|
907
|
-
}, async (
|
|
912
|
+
return t._state = { items: await wt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
|
|
913
|
+
}, async (n) => {
|
|
908
914
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
909
915
|
}), this._state?.items ?? [];
|
|
910
916
|
}
|
|
@@ -913,19 +919,19 @@ class Qe {
|
|
|
913
919
|
}
|
|
914
920
|
async _write(t) {
|
|
915
921
|
if (!this._nativeClipboard) return this._state = t, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
|
|
916
|
-
const
|
|
922
|
+
const n = this, r = [], o = t.uuid;
|
|
917
923
|
let i = t.items ?? [];
|
|
918
924
|
const a = () => {
|
|
919
|
-
|
|
925
|
+
n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
|
|
920
926
|
};
|
|
921
927
|
await be("clipboard-write", async () => {
|
|
922
|
-
await ge(), o && i.length === 0 && (i.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), i.push(new ClipboardItem({ [S.html]: new Blob([
|
|
928
|
+
await ge(), o && i.length === 0 && (i.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), i.push(new ClipboardItem({ [S.html]: new Blob([Qe(o)], { type: S.html }) })));
|
|
923
929
|
for (let l = 0; l < Math.min(1, i.length); l++) {
|
|
924
930
|
const u = i[l];
|
|
925
931
|
let f = u.types.indexOf(S.html), h = null;
|
|
926
932
|
if (f !== -1) {
|
|
927
933
|
const y = await u.getType(S.html);
|
|
928
|
-
h = await Ce(y), h && (h =
|
|
934
|
+
h = await Ce(y), h && (h = Vt(o, h));
|
|
929
935
|
}
|
|
930
936
|
if (!h && u.types.includes(S.plain)) {
|
|
931
937
|
const y = await u.getType(S.plain);
|
|
@@ -935,19 +941,19 @@ class Qe {
|
|
|
935
941
|
}
|
|
936
942
|
}
|
|
937
943
|
if (!h && u.types.includes(S.png)) {
|
|
938
|
-
const y = await u.getType(S.png), T =
|
|
939
|
-
h = \`<div \${ie}="\${o}"><img src="\${
|
|
944
|
+
const y = await u.getType(S.png), T = ft(await y.arrayBuffer());
|
|
945
|
+
h = \`<div \${ie}="\${o}"><img src="\${pt + T}"/></div>\`;
|
|
940
946
|
}
|
|
941
|
-
!h && o && (h =
|
|
947
|
+
!h && o && (h = Qe(o));
|
|
942
948
|
const g = new Blob([h ?? ""], { type: S.html }), p = {};
|
|
943
949
|
for (let y = 0; y < u.types.length; y++) {
|
|
944
950
|
const T = u.types[y];
|
|
945
951
|
p[T] = y === f ? g : u.getType(T);
|
|
946
952
|
}
|
|
947
|
-
h && f === -1 && (p[S.html] = g), o && (p[Q] = new Blob([o], { type: Q })),
|
|
953
|
+
h && f === -1 && (p[S.html] = g), o && (p[Q] = new Blob([o], { type: Q })), r.push(new ClipboardItem(p));
|
|
948
954
|
}
|
|
949
955
|
try {
|
|
950
|
-
|
|
956
|
+
r && r.length !== 0 ? await this._nativeClipboard.write(r) : await Kt(this._nativeClipboard);
|
|
951
957
|
} catch (l) {
|
|
952
958
|
l.message?.includes("Document is not focused") || console.warn("Unable to write to native clipboard: ", l);
|
|
953
959
|
}
|
|
@@ -958,28 +964,28 @@ class Qe {
|
|
|
958
964
|
}
|
|
959
965
|
async writeReference(t) {
|
|
960
966
|
if (!t) return void this.clear();
|
|
961
|
-
let
|
|
962
|
-
const
|
|
967
|
+
let n = null;
|
|
968
|
+
const r = {};
|
|
963
969
|
try {
|
|
964
970
|
const i = await t.toText?.() ?? null;
|
|
965
|
-
i && (
|
|
971
|
+
i && (r[S.plain] = new Blob([i ?? ""], { type: S.plain }));
|
|
966
972
|
} catch (i) {
|
|
967
|
-
|
|
973
|
+
n = i;
|
|
968
974
|
}
|
|
969
975
|
try {
|
|
970
976
|
const i = await t.toHtml?.() ?? null;
|
|
971
|
-
i && (
|
|
977
|
+
i && (r[S.html] = new Blob([i], { type: S.html }));
|
|
972
978
|
} catch (i) {
|
|
973
|
-
|
|
979
|
+
n = i, console.warn("export to html", i);
|
|
974
980
|
}
|
|
975
981
|
try {
|
|
976
982
|
const i = await t.toImage?.() ?? null;
|
|
977
|
-
i && (
|
|
983
|
+
i && (r[S.png] = i);
|
|
978
984
|
} catch (i) {
|
|
979
|
-
|
|
985
|
+
n = i, console.warn("export to png", i);
|
|
980
986
|
}
|
|
981
|
-
const o = this._write({ uuid: de(), ref: t, items: Object.keys(
|
|
982
|
-
if (
|
|
987
|
+
const o = this._write({ uuid: de(), ref: t, items: Object.keys(r).length > 0 ? [new ClipboardItem(r)] : null });
|
|
988
|
+
if (n) throw n;
|
|
983
989
|
return o;
|
|
984
990
|
}
|
|
985
991
|
clear(t = !1) {
|
|
@@ -989,32 +995,32 @@ class Qe {
|
|
|
989
995
|
return await this.read(), this._state?.ref ?? null;
|
|
990
996
|
}
|
|
991
997
|
readText() {
|
|
992
|
-
return new Promise(async (t,
|
|
993
|
-
const
|
|
998
|
+
return new Promise(async (t, n) => {
|
|
999
|
+
const r = await this.read();
|
|
994
1000
|
let o = null;
|
|
995
|
-
for (let a = 0; !o &&
|
|
1001
|
+
for (let a = 0; !o && r && a < r.length; a++) r[a].types.includes(S.plain) && (o = await r[a].getType(S.plain));
|
|
996
1002
|
if (!o) return void t("");
|
|
997
1003
|
const i = new FileReader();
|
|
998
1004
|
i.onload = () => {
|
|
999
1005
|
t(i.result);
|
|
1000
1006
|
}, i.readAsText(o), i.onerror = (a) => {
|
|
1001
|
-
|
|
1007
|
+
n(a);
|
|
1002
1008
|
};
|
|
1003
1009
|
});
|
|
1004
1010
|
}
|
|
1005
1011
|
async writeText(t) {
|
|
1006
|
-
const
|
|
1007
|
-
return this._write({ uuid: de(), items:
|
|
1012
|
+
const n = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
|
|
1013
|
+
return this._write({ uuid: de(), items: n, ref: null });
|
|
1008
1014
|
}
|
|
1009
|
-
addEventListener(t,
|
|
1010
|
-
const o =
|
|
1015
|
+
addEventListener(t, n, r = {}) {
|
|
1016
|
+
const o = r?.capture ? this._listenersCapture : this._listeners;
|
|
1011
1017
|
let i = o.get(t);
|
|
1012
|
-
i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(
|
|
1018
|
+
i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(n, typeof r == "boolean" ? {} : r);
|
|
1013
1019
|
}
|
|
1014
1020
|
dispatchEvent(t) {
|
|
1015
1021
|
if (!t) return;
|
|
1016
|
-
const
|
|
1017
|
-
const o =
|
|
1022
|
+
const n = (r) => {
|
|
1023
|
+
const o = r.get(t.type);
|
|
1018
1024
|
o && o.forEach((i, a) => {
|
|
1019
1025
|
try {
|
|
1020
1026
|
typeof a == "function" ? a(t) : a.handleEvent && a.handleEvent(t), i.once && o.delete(a);
|
|
@@ -1023,21 +1029,21 @@ class Qe {
|
|
|
1023
1029
|
}
|
|
1024
1030
|
});
|
|
1025
1031
|
};
|
|
1026
|
-
return
|
|
1032
|
+
return n(this._listenersCapture), n(this._listeners), !0;
|
|
1027
1033
|
}
|
|
1028
|
-
removeEventListener(t,
|
|
1029
|
-
const o =
|
|
1030
|
-
i && (i.delete(
|
|
1034
|
+
removeEventListener(t, n, r) {
|
|
1035
|
+
const o = r?.capture ? this._listenersCapture : this._listeners, i = o.get(t);
|
|
1036
|
+
i && (i.delete(n), i.size === 0 && o.delete(t));
|
|
1031
1037
|
}
|
|
1032
1038
|
close() {
|
|
1033
1039
|
globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
|
|
1034
1040
|
}
|
|
1035
1041
|
}
|
|
1036
1042
|
var Ee;
|
|
1037
|
-
(Ee =
|
|
1038
|
-
const
|
|
1043
|
+
(Ee = tt || (tt = {})).ErrorMessages = ht, Ee.Global = new Ee();
|
|
1044
|
+
const qt = "__SHEETXL";
|
|
1039
1045
|
let ee = null, le = null;
|
|
1040
|
-
async function
|
|
1046
|
+
async function Gt() {
|
|
1041
1047
|
if (ee)
|
|
1042
1048
|
return ee;
|
|
1043
1049
|
if (le) {
|
|
@@ -1046,39 +1052,39 @@ async function Vt() {
|
|
|
1046
1052
|
return ee;
|
|
1047
1053
|
}
|
|
1048
1054
|
let e, t;
|
|
1049
|
-
le = new Promise((
|
|
1050
|
-
e =
|
|
1055
|
+
le = new Promise((n, r) => {
|
|
1056
|
+
e = n, t = r;
|
|
1051
1057
|
});
|
|
1052
1058
|
try {
|
|
1053
|
-
const { initialize:
|
|
1054
|
-
return
|
|
1059
|
+
const { initialize: n } = await Promise.resolve().then(function() {
|
|
1060
|
+
return on;
|
|
1055
1061
|
});
|
|
1056
|
-
return ee = await
|
|
1057
|
-
} catch (
|
|
1058
|
-
throw console.error("Failed to import or initialize esbuild:",
|
|
1062
|
+
return ee = await n(), e(), ee;
|
|
1063
|
+
} catch (n) {
|
|
1064
|
+
throw console.error("Failed to import or initialize esbuild:", n), le = null, t(n), n;
|
|
1059
1065
|
}
|
|
1060
1066
|
}
|
|
1061
|
-
const
|
|
1067
|
+
const Wt = {
|
|
1062
1068
|
// ESBuild.TsconfigRaw =
|
|
1063
1069
|
compilerOptions: {
|
|
1064
1070
|
target: "esnext"
|
|
1065
1071
|
}
|
|
1066
1072
|
};
|
|
1067
|
-
async function
|
|
1073
|
+
async function Yt(e, t, n = "/script.js", r = qt) {
|
|
1068
1074
|
try {
|
|
1069
|
-
const o = await
|
|
1070
|
-
export const FormulaContext = globalThis.\${
|
|
1071
|
-
export const ScalarType = globalThis.\${
|
|
1072
|
-
export const Observable = globalThis.\${
|
|
1073
|
-
export const IRange = globalThis.\${
|
|
1074
|
-
export const FormulaError = globalThis.\${
|
|
1075
|
+
const o = await Gt(), i = "@sheetxl/primitives", a = \`
|
|
1076
|
+
export const FormulaContext = globalThis.\${r}?.FormulaContext;
|
|
1077
|
+
export const ScalarType = globalThis.\${r}?.ScalarType;
|
|
1078
|
+
export const Observable = globalThis.\${r}?.Observable;
|
|
1079
|
+
export const IRange = globalThis.\${r}?.IRange;
|
|
1080
|
+
export const FormulaError = globalThis.\${r}?.FormulaError;
|
|
1075
1081
|
// Add more exports as needed
|
|
1076
1082
|
\`, l = {
|
|
1077
1083
|
// ESBuild.Plugin = {
|
|
1078
1084
|
name: "sheetxl-esbuild-in-memory",
|
|
1079
1085
|
setup(f) {
|
|
1080
1086
|
const h = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
1081
|
-
f.onResolve({ filter: new RegExp(\`^(\${
|
|
1087
|
+
f.onResolve({ filter: new RegExp(\`^(\${n.replace("/", "\\\\/")}|\${i})$\`) }, (g) => ({
|
|
1082
1088
|
path: g.path,
|
|
1083
1089
|
namespace: h
|
|
1084
1090
|
})), f.onResolve({ filter: /.*/ }, (g) => {
|
|
@@ -1086,7 +1092,7 @@ async function Gt(e, t, r = "/script.js", n = Kt) {
|
|
|
1086
1092
|
return console.warn(\`esbuild: Treating import "\${g.path}" as external.\`), { path: g.path, external: !0 };
|
|
1087
1093
|
}), f.onLoad({ filter: /.*/, namespace: h }, (g) => {
|
|
1088
1094
|
let p;
|
|
1089
|
-
if (g.path ===
|
|
1095
|
+
if (g.path === n)
|
|
1090
1096
|
p = t;
|
|
1091
1097
|
else if (g.path === i)
|
|
1092
1098
|
p = a;
|
|
@@ -1102,7 +1108,7 @@ async function Gt(e, t, r = "/script.js", n = Kt) {
|
|
|
1102
1108
|
});
|
|
1103
1109
|
}
|
|
1104
1110
|
}, u = await o.build({
|
|
1105
|
-
entryPoints: [
|
|
1111
|
+
entryPoints: [n],
|
|
1106
1112
|
// Use the virtual entry point
|
|
1107
1113
|
bundle: !0,
|
|
1108
1114
|
// IMPORTANT: Enable bundling
|
|
@@ -1114,7 +1120,7 @@ async function Gt(e, t, r = "/script.js", n = Kt) {
|
|
|
1114
1120
|
// TODO - later change to external and prepend when executing from ui
|
|
1115
1121
|
sourcemap: "inline",
|
|
1116
1122
|
// Generate separate source map string
|
|
1117
|
-
tsconfigRaw:
|
|
1123
|
+
tsconfigRaw: Wt,
|
|
1118
1124
|
// Pass the mapped options
|
|
1119
1125
|
minify: !0,
|
|
1120
1126
|
// sourcemap: 'external', // Generate separate source map string
|
|
@@ -1132,7 +1138,7 @@ async function Gt(e, t, r = "/script.js", n = Kt) {
|
|
|
1132
1138
|
throw console.error("esbuild bundling process failed:", o), o;
|
|
1133
1139
|
}
|
|
1134
1140
|
}
|
|
1135
|
-
const
|
|
1141
|
+
const Jt = \`
|
|
1136
1142
|
/**
|
|
1137
1143
|
* Represents the completion of an asynchronous operation
|
|
1138
1144
|
*/
|
|
@@ -1145,36 +1151,36 @@ interface Promise<T> {
|
|
|
1145
1151
|
*/
|
|
1146
1152
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
1147
1153
|
}
|
|
1148
|
-
\`,
|
|
1154
|
+
\`, Ht = \`
|
|
1149
1155
|
interface FirstTest {
|
|
1150
1156
|
isTrue?: boolean;
|
|
1151
1157
|
}
|
|
1152
|
-
\`,
|
|
1158
|
+
\`, Xt = async () => Ht, yt = /* @__PURE__ */ new Map([
|
|
1153
1159
|
["IReferenceRange", "r"],
|
|
1154
1160
|
["IRange", "l"]
|
|
1155
|
-
]),
|
|
1161
|
+
]), gt = /* @__PURE__ */ new Map([
|
|
1156
1162
|
["IWorkbook", "workbook"],
|
|
1157
1163
|
["ISheet", "sheet"],
|
|
1158
1164
|
["ICellRanges", "ranges"],
|
|
1159
1165
|
["ICellRange", "range"],
|
|
1160
1166
|
["IFormulaContext", "context"]
|
|
1161
1167
|
]), _e = (e, t) => {
|
|
1162
|
-
Array.from(t.keys()).forEach((
|
|
1163
|
-
const o = t.get(
|
|
1164
|
-
t.set(\`\${e}.\${
|
|
1168
|
+
Array.from(t.keys()).forEach((r) => {
|
|
1169
|
+
const o = t.get(r);
|
|
1170
|
+
t.set(\`\${e}.\${r}\`, o);
|
|
1165
1171
|
});
|
|
1166
|
-
},
|
|
1172
|
+
}, Zt = /* @__PURE__ */ new Map([
|
|
1167
1173
|
["Scalar", "*"],
|
|
1168
1174
|
["FormulaError.Known", W.Error],
|
|
1169
1175
|
["Date", "Date"],
|
|
1170
1176
|
["JSON", "JSON"]
|
|
1171
|
-
]),
|
|
1177
|
+
]), Qt = /* @__PURE__ */ new Map([
|
|
1172
1178
|
// Repeating
|
|
1173
1179
|
]), Oe = "SheetXL";
|
|
1174
|
-
_e(Oe,
|
|
1175
|
-
_e(Oe,
|
|
1176
|
-
_e(Oe,
|
|
1177
|
-
const
|
|
1180
|
+
_e(Oe, yt);
|
|
1181
|
+
_e(Oe, gt);
|
|
1182
|
+
_e(Oe, Qt);
|
|
1183
|
+
const en = /* @__PURE__ */ new Map([
|
|
1178
1184
|
["Promise", () => ({ async: !0 })],
|
|
1179
1185
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
1180
1186
|
// return { async: true };
|
|
@@ -1182,12 +1188,12 @@ const Zt = /* @__PURE__ */ new Map([
|
|
|
1182
1188
|
["Observable", () => ({ stream: !0 })]
|
|
1183
1189
|
]);
|
|
1184
1190
|
let se = null;
|
|
1185
|
-
async function
|
|
1191
|
+
async function tn() {
|
|
1186
1192
|
if (se)
|
|
1187
1193
|
return se;
|
|
1188
1194
|
try {
|
|
1189
1195
|
return await (await Promise.resolve().then(function() {
|
|
1190
|
-
return
|
|
1196
|
+
return ln;
|
|
1191
1197
|
})).initialize();
|
|
1192
1198
|
} catch (e) {
|
|
1193
1199
|
throw se = null, e;
|
|
@@ -1195,14 +1201,14 @@ async function Qt() {
|
|
|
1195
1201
|
se = null;
|
|
1196
1202
|
}
|
|
1197
1203
|
}
|
|
1198
|
-
async function
|
|
1204
|
+
async function nn(e) {
|
|
1199
1205
|
const t = e?.source ?? null;
|
|
1200
1206
|
if (!t) return null;
|
|
1201
|
-
const
|
|
1202
|
-
|
|
1207
|
+
const n = (e.disableBundle || e.declarationsOnly) ?? !1, r = [
|
|
1208
|
+
Xt(),
|
|
1203
1209
|
//import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
|
|
1204
|
-
|
|
1205
|
-
], o = await Promise.all(
|
|
1210
|
+
tn()
|
|
1211
|
+
], o = await Promise.all(r), i = o[0], a = o[1];
|
|
1206
1212
|
let l = "", u = null;
|
|
1207
1213
|
const f = [], h = {
|
|
1208
1214
|
allowJs: !0,
|
|
@@ -1222,7 +1228,7 @@ async function er(e) {
|
|
|
1222
1228
|
// lib: ['webworker', 'es2020', 'esnext.asynciterable'], // Use the webworker lib instead of dom
|
|
1223
1229
|
}, g = "script", p = \`\${g}.ts\`, y = "lib.d.ts", T = "global.d.ts", A = {
|
|
1224
1230
|
[p]: t,
|
|
1225
|
-
[y]:
|
|
1231
|
+
[y]: Jt,
|
|
1226
1232
|
[T]: i
|
|
1227
1233
|
}, D = {
|
|
1228
1234
|
getSourceFile: (s, w, L, P) => a.createSourceFile(s, A[s], a.ScriptTarget.Latest, !0),
|
|
@@ -1270,16 +1276,16 @@ async function er(e) {
|
|
|
1270
1276
|
w.arrayDepth = (w.arrayDepth ?? 0) + 1, c(M, w, L, P);
|
|
1271
1277
|
} else if (s.kind !== a.SyntaxKind.TupleType) {
|
|
1272
1278
|
if (s.kind === a.SyntaxKind.TypeReference) {
|
|
1273
|
-
const M = s.typeName?.getText?.() ?? null, K =
|
|
1279
|
+
const M = s.typeName?.getText?.() ?? null, K = yt.get(M);
|
|
1274
1280
|
let V = !1;
|
|
1275
1281
|
K && (w.range = K, V = !0);
|
|
1276
|
-
const q =
|
|
1282
|
+
const q = Zt.get(M);
|
|
1277
1283
|
if (q && (w.scalar = q), q !== void 0 && (V = !0), P) {
|
|
1278
|
-
const R =
|
|
1284
|
+
const R = gt.get(M);
|
|
1279
1285
|
if (R)
|
|
1280
1286
|
return R;
|
|
1281
1287
|
} else {
|
|
1282
|
-
const R =
|
|
1288
|
+
const R = en.get(M);
|
|
1283
1289
|
if (R) {
|
|
1284
1290
|
const b = { ...w, ...R() };
|
|
1285
1291
|
let N = 0;
|
|
@@ -1368,8 +1374,8 @@ async function er(e) {
|
|
|
1368
1374
|
const O = /\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g;
|
|
1369
1375
|
let F, Z = x, te = [];
|
|
1370
1376
|
for (; (F = O.exec(x)) !== null; ) {
|
|
1371
|
-
const [pe, me,
|
|
1372
|
-
Ne &&
|
|
1377
|
+
const [pe, me, Et, Ne] = F, St = [Et.trim()];
|
|
1378
|
+
Ne && St.push(Ne.trim());
|
|
1373
1379
|
}
|
|
1374
1380
|
x = Z, te.length > 0 && C === "see" && (L.links || (L.links = []), L.links.push(...te));
|
|
1375
1381
|
}
|
|
@@ -1424,15 +1430,15 @@ async function er(e) {
|
|
|
1424
1430
|
throw console.warn(B), new Error("There were compilation errors.", { cause: B });
|
|
1425
1431
|
if (f.length === 0)
|
|
1426
1432
|
throw new Error("No exported functions.");
|
|
1427
|
-
const
|
|
1433
|
+
const bt = \`\${$t.uuidV4()}-script\`;
|
|
1428
1434
|
try {
|
|
1429
|
-
!
|
|
1435
|
+
!n && B.length === 0 && (l = await Yt(a, l, g));
|
|
1430
1436
|
} catch {
|
|
1431
1437
|
console.warn("Error bundling script");
|
|
1432
1438
|
}
|
|
1433
1439
|
const Ie = {
|
|
1434
1440
|
functions: f,
|
|
1435
|
-
commitId:
|
|
1441
|
+
commitId: bt,
|
|
1436
1442
|
source: t,
|
|
1437
1443
|
name: "Script",
|
|
1438
1444
|
language: "typescript",
|
|
@@ -1442,30 +1448,30 @@ async function er(e) {
|
|
|
1442
1448
|
return u && (Ie.autoRun = u), Ie;
|
|
1443
1449
|
}
|
|
1444
1450
|
self.addEventListener("message", async (e) => {
|
|
1445
|
-
const { id: t, params:
|
|
1451
|
+
const { id: t, params: n } = e.data;
|
|
1446
1452
|
try {
|
|
1447
|
-
const
|
|
1448
|
-
self.postMessage({ id: t, result:
|
|
1449
|
-
} catch (
|
|
1453
|
+
const r = await nn(n);
|
|
1454
|
+
self.postMessage({ id: t, result: r, error: null });
|
|
1455
|
+
} catch (r) {
|
|
1450
1456
|
self.postMessage({
|
|
1451
1457
|
id: t,
|
|
1452
1458
|
result: null,
|
|
1453
1459
|
error: {
|
|
1454
|
-
message:
|
|
1455
|
-
stack:
|
|
1456
|
-
cause:
|
|
1460
|
+
message: r.message,
|
|
1461
|
+
stack: r.stack,
|
|
1462
|
+
cause: r.cause
|
|
1457
1463
|
}
|
|
1458
1464
|
});
|
|
1459
1465
|
}
|
|
1460
1466
|
});
|
|
1461
1467
|
let ce = null;
|
|
1462
|
-
async function
|
|
1468
|
+
async function rn() {
|
|
1463
1469
|
return ce || (ce = new Promise(async (e, t) => {
|
|
1464
1470
|
try {
|
|
1465
|
-
const
|
|
1471
|
+
const n = "0.20.2", r = \`https://esm.sh/esbuild-wasm@\${n}\`, o = \`https://esm.sh/esbuild-wasm@\${n}/esbuild.wasm\`, a = (await import(
|
|
1466
1472
|
/* webpackIgnore: true */
|
|
1467
1473
|
/* @vite-ignore */
|
|
1468
|
-
|
|
1474
|
+
r
|
|
1469
1475
|
)).default;
|
|
1470
1476
|
await a.initialize({
|
|
1471
1477
|
wasmURL: o,
|
|
@@ -1473,29 +1479,29 @@ async function tr() {
|
|
|
1473
1479
|
worker: !1
|
|
1474
1480
|
// Keep processing on the current thread
|
|
1475
1481
|
}), e(a);
|
|
1476
|
-
} catch (
|
|
1477
|
-
console.error("Error initializing esbuild:",
|
|
1482
|
+
} catch (n) {
|
|
1483
|
+
console.error("Error initializing esbuild:", n), t(n);
|
|
1478
1484
|
}
|
|
1479
1485
|
}), ce);
|
|
1480
1486
|
}
|
|
1481
|
-
var
|
|
1487
|
+
var on = /* @__PURE__ */ Object.freeze({
|
|
1482
1488
|
__proto__: null,
|
|
1483
|
-
initialize:
|
|
1489
|
+
initialize: rn
|
|
1484
1490
|
});
|
|
1485
1491
|
let ue = null;
|
|
1486
|
-
async function
|
|
1492
|
+
async function an() {
|
|
1487
1493
|
return ue || (ue = new Promise(async (e, t) => {
|
|
1488
|
-
let
|
|
1494
|
+
let n = null;
|
|
1489
1495
|
try {
|
|
1490
|
-
|
|
1491
|
-
} catch (
|
|
1492
|
-
console.error("Error initializing Browser TypeScript module:",
|
|
1496
|
+
n = await import("https://esm.sh/typescript@5.7.2");
|
|
1497
|
+
} catch (r) {
|
|
1498
|
+
console.error("Error initializing Browser TypeScript module:", r);
|
|
1493
1499
|
}
|
|
1494
|
-
|
|
1500
|
+
n || console.log("use script fallback"), e(n);
|
|
1495
1501
|
}), ue);
|
|
1496
1502
|
}
|
|
1497
|
-
var
|
|
1503
|
+
var ln = /* @__PURE__ */ Object.freeze({
|
|
1498
1504
|
__proto__: null,
|
|
1499
|
-
initialize:
|
|
1505
|
+
initialize: an
|
|
1500
1506
|
});
|
|
1501
|
-
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1507
|
+
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./B19XDmw3OEi3gSNn.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()};
|