@sheetxl/studio-vanilla 0.7.20 → 0.7.22
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/{CgqQ3MbDauazgzDn.cjs → 40PNk1cfiyq9L_4P.cjs} +1 -1
- package/browser/cjs/{D4OHS-bhMHaD-PvU.cjs → 6YMUrwC5B9o7F51O.cjs} +1 -1
- package/browser/cjs/{Dc8dDo0mpe9husnW.cjs → Ao2feovUbm9qEpu6.cjs} +4 -4
- package/browser/cjs/{BzV8wBjArFtuUr6Q.cjs → B0V3NBGVADl8GvTd.cjs} +2 -2
- package/browser/cjs/{CpeHh2-I0lILcwKL.cjs → B7woEff5ViE_kZT-.cjs} +3 -3
- package/browser/cjs/{BSf_vXfxIEMsDR97.cjs → B8ShxCGjp3Bq9npC.cjs} +1 -1
- package/browser/cjs/BG4ywprwSWaidvVB.cjs +6 -0
- package/browser/cjs/{CzN-CwCSYKcOS9vr.cjs → BS4w2O3cSLUXL_jH.cjs} +1 -1
- package/browser/cjs/{XOcmGykAqNLzobYR.cjs → BSJkbBMMBW7yd1md.cjs} +1 -1
- package/browser/cjs/{1m-wMn6XJDyuhoUr.cjs → Bc93_RTPVl-3eczf.cjs} +1 -1
- package/browser/cjs/{B8PCcQbCy_L67Q5-.cjs → Bk65bujvPonPpX0S.cjs} +2 -2
- package/browser/cjs/{C_e2ryc2JI9eNMRh.cjs → BpYLKD4aaSHfLRzj.cjs} +2 -2
- package/browser/cjs/{DZEuVThWm_qSXAtY.cjs → BsjqWxmgGH5iDW-L.cjs} +5 -5
- package/browser/cjs/Btc-dn9vrxeuHrvE.cjs +32 -0
- package/browser/cjs/BvUZHzHcBTZzu0RP.cjs +327 -0
- package/browser/cjs/{DhaOYvn3rBfUW4tj.cjs → BwaiJLfj0y1QPRPg.cjs} +2 -2
- package/browser/cjs/{D_tIhPv9iNoWq6R4.cjs → C3D1HRHhgNo3NFbv.cjs} +325 -324
- package/browser/cjs/{Xe4ngJY8sNgJ6brX.cjs → C7dVb2uIiorrCyKG.cjs} +2 -2
- package/browser/cjs/{Bg5_xfiCdUbKC3nM.cjs → CB2yvkubIntPJQyR.cjs} +1 -1
- package/browser/cjs/{DSQ5nW3HpFmyNbxX.cjs → CQQ-vko7roBUAKDi.cjs} +2 -2
- package/browser/cjs/{Z0HcgXF3OK6POtDO.cjs → CRm7Cq8A8b-fJliQ.cjs} +2 -2
- package/browser/cjs/{IPzCC6TV2WSrZCQh.cjs → CRnuv2nNLnWG3OZC.cjs} +1 -1
- package/browser/cjs/{C5sJO_GV1mgcGPrS.cjs → C_89mysFInqhWK2V.cjs} +2 -2
- package/browser/cjs/{DKtZMuHCCyyGiMpj.cjs → Ca4n2JdJSmReqev5.cjs} +1 -1
- package/browser/cjs/{BXU0S-Z1NnPP3ylk.cjs → Cc1iqyyt1L4hPPT7.cjs} +2 -2
- package/browser/cjs/{CxVS9NMNps9pQnt7.cjs → Ceorq4uQEw1AQxBb.cjs} +2 -2
- package/browser/cjs/{CBKrvN18sBqBx6vR.cjs → CsN-Uk9IDZV3vG2y.cjs} +1 -1
- package/browser/cjs/{CH42PODl2_V0FZtI.cjs → Cv8bFZDzw5LQwOaw.cjs} +1 -1
- package/browser/cjs/{Bv5M7z9CLmqUdHLL.cjs → D-5aZhamCrYZ6ZGG.cjs} +1 -1
- package/browser/cjs/{CmeziBGLd6bVgVrZ.cjs → D-mXHYUWexAEwyrV.cjs} +2 -2
- package/browser/cjs/{BvhTv59YPQ9Jex6z.cjs → D3cB_bI5qqH2lIw0.cjs} +1 -1
- package/browser/cjs/{DaYLnQn6N_fPjQsP.cjs → D8UIf57KGA4QXYUM.cjs} +1 -1
- package/browser/cjs/{AuRScZeD2PY2AU6g.cjs → DBD7LpiISPIYO2od.cjs} +1 -1
- package/browser/cjs/{DwD9bLOnNXwaD1YF.cjs → DJXhVXN2-O9EFN5z.cjs} +1 -1
- package/browser/cjs/DKDOkNGoi7CO8rzb.cjs +6 -0
- package/browser/cjs/{DYXZiaE8jo1m7oKV.cjs → DKrZPL0pykbE5fI-.cjs} +7 -7
- package/browser/cjs/{VtVSJwkFbYZeuFeR.cjs → DNtwdCZ-qW4s3Ebz.cjs} +5 -5
- package/browser/cjs/{DUcNa0U95UG3xv1P.cjs → DUcVDwb2QpOyu1RP.cjs} +1 -1
- package/browser/cjs/{sHIiaC-iDwXBh4VR.cjs → DWmyUxQEFya7Q_LU.cjs} +1 -1
- package/browser/cjs/{D6uf2ZMGyZAVe7Xm.cjs → DWxZ2rIhC5eYP-VL.cjs} +1 -1
- package/browser/cjs/{D3OKMM6mwpgKjq3T.cjs → DZetVnqqE-E-SG3W.cjs} +1 -1
- package/browser/cjs/{Bx8hf99qQLC6Zw_j.cjs → Dd3nwSjn_oVLZv4C.cjs} +1 -1
- package/browser/cjs/{BrvprhY7zodv1uu3.cjs → DeNh9fYqDL16oTCp.cjs} +1 -1
- package/browser/cjs/{bjPVoyRMAxc_N8q8.cjs → DhnW__9M1D4GskCc.cjs} +2 -2
- package/browser/cjs/{Cmht83hyEJh-aBv7.cjs → DjY8WFxuXA18nqWA.cjs} +1 -1
- package/browser/cjs/{1uvVWKoDCeURnacj.cjs → DkyB-U1DBTXmubfg.cjs} +2 -2
- package/browser/cjs/{ClZxTKmzqFM7s5vI.cjs → DnBJ0t8l5LlYyyFQ.cjs} +1 -1
- package/browser/cjs/{BXGuIvbSLE0qcvtY.cjs → DqbIzabHTAeSs0A2.cjs} +1 -1
- package/browser/cjs/{DCWZonT7pZzbHdI1.cjs → DyVu5n2ipHKTd7DE.cjs} +1 -1
- package/browser/cjs/{DOkw8qQ4UPI7lmFA.cjs → U-3hxtZxnQZoAsnc.cjs} +1 -1
- package/browser/cjs/{CbQkI1WR3n-GhDJG.cjs → UQF74Vt5S0B-wlMc.cjs} +1 -1
- package/browser/cjs/{DF4qz_mUO-jxqN6R.cjs → V_EM7dq816p8_4dG.cjs} +2 -2
- package/browser/cjs/{CpNruAkS6jLVhk_r.cjs → VieeuPbsrj66m2wN.cjs} +3 -3
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CInLNBqwD6aHNCRz.cjs → mo0iAab7vyrY0Vyj.cjs} +1 -1
- package/browser/cjs/{D5nhbOgizx6uKB2J.cjs → n7v_sMq879OKt7Yz.cjs} +1 -1
- package/browser/cjs/{CWoatP9K16aMEshJ.cjs → sWbfmK2PhrhDpoeu.cjs} +2 -2
- package/browser/cjs/{BNecxacZmW8BbSA-.cjs → x1hXIqIbxJ-_-YTi.cjs} +1 -1
- package/browser/cjs/{wc5zoON-utlXwayE.cjs → xwfX8oRH7U8b0-7s.cjs} +1 -1
- package/{cdn/assets/C5WjPJZ8kaKrIU61.js → browser/esm/B2Y8GFi7e2Wy6cdG.mjs} +1 -1
- package/browser/esm/{D-o1pnphdBGmqkDS.mjs → BB1bzfhztR6Ov5qy.mjs} +1 -1
- package/browser/esm/{CD0HbuVGcie3SJXt.mjs → BHsaKVZQhER0IjHG.mjs} +4 -4
- package/{cdn/assets/Duj69RQfdRblYdPT.js → browser/esm/BQphdGRABPVtdQAs.mjs} +2 -2
- package/browser/esm/{hhUXO2d2SOFylRa6.mjs → BYG5djWv9MPHjdlS.mjs} +8 -8
- package/{cdn/assets/BcuxIYGSAi3xC4Lk.js → browser/esm/B_n_Aj27PS58-7qD.mjs} +1 -1
- package/browser/esm/{d5ANpsHs_Cd32TxS.mjs → BbIn7NPw3J9kXHDc.mjs} +1 -1
- package/browser/esm/{BNqU4QZQSca9gEI2.mjs → BbbObYt-Qt3nK42F.mjs} +6 -6
- package/browser/esm/{61QT0ZDOqKxgj6_K.mjs → BbyTDKIkS_AvlEK4.mjs} +49 -49
- package/browser/esm/{Ct3zOB2fwBbjFVnJ.mjs → Beq_3jtJCifUk0Zr.mjs} +3 -3
- package/browser/esm/{-dRLDgEfKLIrhQsi.mjs → BioQXZcoVYOpL6Ej.mjs} +1 -1
- package/browser/esm/BnyIgrSKYLZhkCPd.mjs +39 -0
- package/browser/esm/{B4YKOSATl_vM4_VO.mjs → BvG-Q5E0vFjnV7O0.mjs} +2 -2
- package/browser/esm/{BqE0-P5J-y_rRP_G.mjs → BwvOedykRi3a_ld9.mjs} +52 -52
- package/browser/esm/{CUOWdcWpdsKz372Z.mjs → BxuMJXNACHg-X428.mjs} +3 -3
- package/browser/esm/{LTd6f6bNi108-7q5.mjs → ByHqa56Ue2aS4Jty.mjs} +325 -324
- package/browser/esm/{DpIf2SsnjarVkIuv.mjs → C3DmrblDyN3dlf_b.mjs} +1 -1
- package/browser/esm/{CV01HGZbX1r6oU0O.mjs → C52W-XN4ZbQ6c_--.mjs} +8 -8
- package/browser/esm/{bFsI9PmmnMoEtL__.mjs → C58_uLp9scNOE7MA.mjs} +42 -42
- package/browser/esm/{DNASG22eNK2wJSII.mjs → CFzzJEQye34b_nAc.mjs} +2 -2
- package/browser/esm/{4lA748o59cx4KITO.mjs → CGIlWRi9UD0r_3V_.mjs} +1 -1
- package/browser/esm/{COfCOEmst6i3w3-H.mjs → CGx0R2rJB22lw1qd.mjs} +2 -2
- package/browser/esm/{CmQn9LrxD5KlRZ6i.mjs → CReya9-3BIqwZ1UD.mjs} +4 -4
- package/browser/esm/{Bmp0G6OFsH4OYPK7.mjs → CWg5r0ZiYNY2f6YY.mjs} +1 -1
- package/{cdn/assets/CCo7GabBmelvhNyn.js → browser/esm/C_IEbgy4NXuPou7K.mjs} +1 -1
- package/browser/esm/{BmOuY3i5KeYOGOIN.mjs → CdTUd5MIWe-J7v6h.mjs} +2 -2
- package/{cdn/assets/Ck3MM-jyP5O9Fbwo.js → browser/esm/ClSGsa1HocZ09x8U.mjs} +1 -1
- package/{cdn/assets/5QXcgftJH5CfnJdM.js → browser/esm/Cr13Nujdybw2U5Eg.mjs} +1 -1
- package/browser/esm/{Dhh9RXpPpVVlJoDC.mjs → Crs1Qr0WpnA-yvT8.mjs} +16698 -16632
- package/browser/esm/{C6-DkxYhg7RXmlo7.mjs → CxDrTaPeGiD_kpbL.mjs} +1 -1
- package/browser/esm/{Dw6PE-qxq-I4r30f.mjs → D20WAgItdsUHi_2m.mjs} +1 -1
- package/{cdn/assets/BCzQK19xrI6fJV9-.js → browser/esm/DDkNAcDgG91_bhrZ.mjs} +1 -1
- package/browser/esm/{DAoG0qewdAKdM_ho.mjs → DIjMjfjqAP89CJ7g.mjs} +1 -1
- package/browser/esm/{CSIS9eBDu4JwmTHi.mjs → DNX4oXrf-LexF-3L.mjs} +1 -1
- package/browser/esm/{B4c17RzcYfxQeRny.mjs → DOITfigQotsjSwIm.mjs} +1 -1
- package/{cdn/assets/Cr7pXPBAHOtmgCJf.js → browser/esm/DOshPqpud6DO1FoB.mjs} +1 -1
- package/browser/esm/{DdKr4ehgWyYJpVp8.mjs → DPmKV1ceqZcb_mQW.mjs} +1 -1
- package/{cdn/assets/DrfVzaY6Q9kP4Bs_.js → browser/esm/DUQIwKm2lU-TmVV1.mjs} +1 -1
- package/{cdn/assets/4QZbPTlatdpGW8mW.js → browser/esm/DYIxUp3rfnB84JbA.mjs} +1 -1
- package/browser/esm/{DKha__YF_NhQK0SK.mjs → DabMI-gQY7ULWuSm.mjs} +29 -29
- package/{cdn/assets/oEQ0ruP2nlpvbSrL.js → browser/esm/Dg5tUkYMLRn38yn4.mjs} +1 -1
- package/{cdn/assets/dym78C0-EBdgTQA-.js → browser/esm/DkPpJb8Rfz04PWcx.mjs} +1 -1
- package/browser/esm/{1MThtftElTy6WrA0.mjs → Dl5IckgNc3e4uvIS.mjs} +1 -1
- package/browser/esm/{C-ZVytqqDm_z7xWM.mjs → Dy7c7Htn4nRcR9wv.mjs} +1 -1
- package/browser/esm/{CVQG2g2PFKFijLz1.mjs → Kt-K1Eyo136xipn2.mjs} +1 -1
- package/browser/esm/{YhoVLGLgRFZWxMsx.mjs → PbZ8u8pUX7HwRE_Q.mjs} +1 -1
- package/browser/esm/{BFsGpbPpZIWq9j9G.mjs → ROkZxUj0iXZ6G7Xe.mjs} +1 -1
- package/browser/esm/{D5kpCYo0lYaF8XG3.mjs → aeLHpMlgmy69ERYL.mjs} +2 -2
- package/browser/esm/{kPSDIvwgPsxxE24j.mjs → c83mUV6ssG-Pm8qj.mjs} +8 -8
- package/browser/esm/{BsReprB77sMG7Ia3.mjs → fKoSDw4qZySRuDoz.mjs} +18 -18
- package/browser/esm/{Bg15z7RuUZkCb9bo.mjs → hP7RfsxY8cCAP-Ov.mjs} +2 -2
- package/browser/esm/{-3u5GbBQA0FSOuAP.mjs → hZSR8fGJnYp0t1Hv.mjs} +11 -11
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{m4AYbY7xk35Yz6t_.mjs → jEj2Ph9b_6KI1-oD.mjs} +1 -1
- package/browser/esm/{BKDjyp3RzGbtEZM3.mjs → qAHKntNTukfHe6zT.mjs} +7 -7
- package/{cdn/assets/lGjZjGcY4pvqJBdB.js → browser/esm/rMnCC1dhlkC91gLS.mjs} +1 -1
- package/{cdn/assets/D1hJ_HNOxCWJcItV.js → browser/esm/vc1-nL9ZacZsNV5x.mjs} +1 -1
- package/browser/esm/{aderzMl9WPEOXpEY.mjs → vcpFekIrDfVs3H1Y.mjs} +1 -1
- package/{cdn/assets/DhplvyRWSIrau07O.js → browser/esm/zdfb6g8BE8z4BI9x.mjs} +117 -115
- package/cdn/assets/{D8Vyk9JZvPQOI1N-.js → 18lNPYAtyf95Mdom.js} +2 -2
- package/cdn/assets/{D3IsWhYeF4VWF1yh.js → 3SDZXFop4jaQoxlJ.js} +3 -3
- package/{browser/esm/C5WjPJZ8kaKrIU61.mjs → cdn/assets/B2Y8GFi7e2Wy6cdG.js} +1 -1
- package/cdn/assets/{URQMYH7Tm-ryuQts.js → B3Wm1t1it-mHZvks.js} +4 -4
- package/cdn/assets/{D-o1pnphdBGmqkDS.js → BB1bzfhztR6Ov5qy.js} +1 -1
- package/cdn/assets/{D-SS16dWhPQviXwr.js → BJjJ78THxxs_jXjB.js} +3 -3
- package/cdn/assets/{C8ErMKswFhRIVklY.js → BKrYKw0Rm_0yOiu8.js} +9 -9
- package/cdn/assets/{BmYQis5LoyoPFlaz.js → BT9SjSmkrUYAb5d_.js} +11 -11
- package/{browser/esm/DtQ8PkRqxGLC8DmS.mjs → cdn/assets/BXtdqRss-o1Y1qXS.js} +2 -2
- package/{browser/esm/BcuxIYGSAi3xC4Lk.mjs → cdn/assets/B_n_Aj27PS58-7qD.js} +1 -1
- package/cdn/assets/{d5ANpsHs_Cd32TxS.js → BbIn7NPw3J9kXHDc.js} +1 -1
- package/cdn/assets/{JguVvfKKqzNxFSPz.js → BeT0AobKOrKAtU7Y.js} +2 -2
- package/cdn/assets/{r7NBY_vG39kjGhEw.js → BhZmiLHxQfwPqDdd.js} +7 -7
- package/cdn/assets/{-dRLDgEfKLIrhQsi.js → BioQXZcoVYOpL6Ej.js} +1 -1
- package/cdn/assets/{CUh7bWm0PDYyIgds.js → BwRNfTv6Z220RxkY.js} +2 -2
- package/cdn/assets/{BnbqN9I5cg3axP7D.js → BzG5oXwgZ23eCaF3.js} +2 -2
- package/cdn/assets/{DKZNMsmM6A1pRtcG.js → C14et7zH6u-LCYC8.js} +15 -15
- package/cdn/assets/{DpIf2SsnjarVkIuv.js → C3DmrblDyN3dlf_b.js} +1 -1
- package/cdn/assets/{4lA748o59cx4KITO.js → CGIlWRi9UD0r_3V_.js} +1 -1
- package/cdn/assets/{Z2-dlS699zVzx3pY.js → CMlP7fnFOM5hPKgX.js} +4 -4
- package/cdn/assets/{27RYKPXNI81kxNqa.js → CQ5wkhRLvMbZfoF_.js} +2 -2
- package/cdn/assets/{Bmp0G6OFsH4OYPK7.js → CWg5r0ZiYNY2f6YY.js} +1 -1
- package/{browser/esm/CCo7GabBmelvhNyn.mjs → cdn/assets/C_IEbgy4NXuPou7K.js} +1 -1
- package/cdn/assets/{2ePZckFQMEXP71ln.js → Cap7v38vrhn8CIZO.js} +1 -1
- package/cdn/assets/{IX2BHljZEQ9dhYmv.js → Ce5G16jMVlZmzIv8.js} +53 -53
- package/cdn/assets/{DpjBB4EF0ZrTtRdV.js → CiFvktamTDDdroc1.js} +2 -2
- package/cdn/assets/{DwqpwyqGoQ36Oyfc.js → Cjfprhic6u-Yh-QX.js} +18071 -18005
- package/{browser/esm/Ck3MM-jyP5O9Fbwo.mjs → cdn/assets/ClSGsa1HocZ09x8U.js} +1 -1
- package/cdn/assets/{Bsop2qtZKF9zaSub.js → CpKbwr3AUfVLT9Fz.js} +325 -324
- package/{browser/esm/5QXcgftJH5CfnJdM.mjs → cdn/assets/Cr13Nujdybw2U5Eg.js} +1 -1
- package/cdn/assets/{_LZbly6Yqrd-8ih7.js → CruIn8K_x-gipnjg.js} +9 -9
- package/cdn/assets/{C6-DkxYhg7RXmlo7.js → CxDrTaPeGiD_kpbL.js} +1 -1
- package/cdn/assets/{2ikZ1tpmgnnoWmvA.js → CyAyfxuQYROYrfNw.js} +1 -1
- package/cdn/assets/{Dw6PE-qxq-I4r30f.js → D20WAgItdsUHi_2m.js} +1 -1
- package/cdn/assets/{BCx6y5BBxl46SHtk.js → D6ozl5xTT0Co8RaJ.js} +2 -2
- package/cdn/assets/{CUnm3OFf6WTVDUL6.js → D9LxrRmBb1K59ngW.js} +3 -3
- package/{browser/esm/BCzQK19xrI6fJV9-.mjs → cdn/assets/DDkNAcDgG91_bhrZ.js} +1 -1
- package/cdn/assets/{BZbbB0km7YjZH-ls.js → DEKu2bBsjKJBoMf3.js} +3 -3
- package/cdn/assets/{CSIS9eBDu4JwmTHi.js → DNX4oXrf-LexF-3L.js} +1 -1
- package/cdn/assets/{B4c17RzcYfxQeRny.js → DOITfigQotsjSwIm.js} +1 -1
- package/{browser/esm/Cr7pXPBAHOtmgCJf.mjs → cdn/assets/DOshPqpud6DO1FoB.js} +1 -1
- package/cdn/assets/{DdKr4ehgWyYJpVp8.js → DPmKV1ceqZcb_mQW.js} +1 -1
- package/cdn/assets/{Bu0itxC2rUwiWMEQ.js → DQJvmgP-0J-N-EYK.js} +16 -16
- package/cdn/assets/{Ckf795_xHgemB6ls.js → DStC-ksfGtvNYjl-.js} +4 -4
- package/{browser/esm/DrfVzaY6Q9kP4Bs_.mjs → cdn/assets/DUQIwKm2lU-TmVV1.js} +1 -1
- package/{browser/esm/4QZbPTlatdpGW8mW.mjs → cdn/assets/DYIxUp3rfnB84JbA.js} +1 -1
- package/cdn/assets/DavM9soKuwtndteP.js +41 -0
- package/{browser/esm/oEQ0ruP2nlpvbSrL.mjs → cdn/assets/Dg5tUkYMLRn38yn4.js} +1 -1
- package/{browser/esm/dym78C0-EBdgTQA-.mjs → cdn/assets/DkPpJb8Rfz04PWcx.js} +1 -1
- package/cdn/assets/{1MThtftElTy6WrA0.js → Dl5IckgNc3e4uvIS.js} +1 -1
- package/cdn/assets/{BHh2zMZGJe6dUWlk.js → DlwhC2qcZRZ0Uz1K.js} +30 -30
- package/cdn/assets/{D30ogm4gygj8i8nN.js → DoJbpUoYdcr1WPfn.js} +2 -2
- package/cdn/assets/{C-ZVytqqDm_z7xWM.js → Dy7c7Htn4nRcR9wv.js} +1 -1
- package/cdn/assets/{CVQG2g2PFKFijLz1.js → Kt-K1Eyo136xipn2.js} +1 -1
- package/cdn/assets/{CZarNhw1Wj6tobmF.js → MRV7wTkQmIALMbYa.js} +10 -10
- package/cdn/assets/{YhoVLGLgRFZWxMsx.js → PbZ8u8pUX7HwRE_Q.js} +1 -1
- package/cdn/assets/{BFsGpbPpZIWq9j9G.js → ROkZxUj0iXZ6G7Xe.js} +1 -1
- package/cdn/assets/{DWvh6NjXKQU6eMUt.js → ZDYUpJ7sA-l-87X0.js} +3 -3
- package/cdn/assets/{D0A2A29hLklUBBW2.js → fSbTvdKQ_9sX8Up1.js} +4 -4
- package/cdn/assets/{zBdl4-IsCQ8OcoAP.js → fdA10P6CzeqJLfRc.js} +6 -6
- package/cdn/assets/{m4AYbY7xk35Yz6t_.js → jEj2Ph9b_6KI1-oD.js} +1 -1
- package/{browser/esm/lGjZjGcY4pvqJBdB.mjs → cdn/assets/rMnCC1dhlkC91gLS.js} +1 -1
- package/{browser/esm/D1hJ_HNOxCWJcItV.mjs → cdn/assets/vc1-nL9ZacZsNV5x.js} +1 -1
- package/cdn/assets/{aderzMl9WPEOXpEY.js → vcpFekIrDfVs3H1Y.js} +1 -1
- package/{browser/esm/DJ7Usn1zMSWfd7o_.mjs → cdn/assets/z3wZCYFfeoKhs19u.js} +117 -115
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/CsY_-c_ld490b0Kw.cjs +0 -6
- package/browser/cjs/DF1HcS9SX6pajKgX.cjs +0 -32
- package/browser/cjs/DV3WU2M19nBxtVRA.cjs +0 -327
- package/browser/cjs/rFJte8mjrtn_2vVE.cjs +0 -6
- package/browser/esm/BoLX2j6yXdLB3jXI.mjs +0 -39
- package/cdn/assets/57A0lwhfYhakqAd0.js +0 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -47,18 +47,18 @@ class u {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
const s = `/**
|
|
50
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.
|
|
50
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.22
|
|
51
51
|
*
|
|
52
52
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
53
53
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
54
54
|
*/
|
|
55
55
|
const W = { Number: "n", String: "s", Boolean: "b", Error: "e", Null: "z" };
|
|
56
|
-
var
|
|
57
|
-
(
|
|
56
|
+
var Ae, le, d;
|
|
57
|
+
(le = Ae || (Ae = {})).Orientation = { Column: "column", Row: "row" }, le.Orientations = { ...le.Orientation, Both: "both" }, le.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
|
|
58
58
|
e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
59
59
|
class t extends Error {
|
|
60
|
-
constructor(u, h,
|
|
61
|
-
super(
|
|
60
|
+
constructor(u, h, pe, $) {
|
|
61
|
+
super(pe, $), this._label = h, this._code = u, this.details = $;
|
|
62
62
|
}
|
|
63
63
|
static {
|
|
64
64
|
this.code = e.Code.Unknown;
|
|
@@ -213,7 +213,7 @@ var ke, ie, d;
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
e.Field = A;
|
|
216
|
-
class
|
|
216
|
+
class U extends t {
|
|
217
217
|
constructor(u, h) {
|
|
218
218
|
super(e.Code.Calc, e.Label.Calc, u, h);
|
|
219
219
|
}
|
|
@@ -221,8 +221,8 @@ var ke, ie, d;
|
|
|
221
221
|
this.code = e.Code.Calc;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
e.Calc =
|
|
225
|
-
class
|
|
224
|
+
e.Calc = U;
|
|
225
|
+
class B extends t {
|
|
226
226
|
constructor(u, h) {
|
|
227
227
|
super(e.Code.Busy, e.Label.Busy, u, h);
|
|
228
228
|
}
|
|
@@ -230,8 +230,8 @@ var ke, ie, d;
|
|
|
230
230
|
this.code = e.Code.Busy;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
e.Busy =
|
|
234
|
-
class
|
|
233
|
+
e.Busy = B;
|
|
234
|
+
class O extends t {
|
|
235
235
|
constructor(u, h) {
|
|
236
236
|
super(e.Code.Python, e.Label.Python, u, h);
|
|
237
237
|
}
|
|
@@ -239,7 +239,7 @@ var ke, ie, d;
|
|
|
239
239
|
this.code = e.Code.Python;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
e.Python =
|
|
242
|
+
e.Python = O;
|
|
243
243
|
class J extends t {
|
|
244
244
|
constructor(u, h) {
|
|
245
245
|
super(e.Code.Timeout, e.Label.Timeout, u, h);
|
|
@@ -250,84 +250,84 @@ var ke, ie, d;
|
|
|
250
250
|
}
|
|
251
251
|
e.Timeout = J;
|
|
252
252
|
})(d || (d = {}));
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
for (let e = 0; e <
|
|
257
|
-
const t =
|
|
258
|
-
|
|
253
|
+
const T = {};
|
|
254
|
+
T[d.Code.Parse] = d.Parse, T[d.Code.Null] = d.Null, T[d.Code.Div0] = d.Div0, T[d.Code.Value] = d.Value, T[d.Code.Ref] = d.Ref, T[d.Code.Name] = d.Name, T[d.Code.Num] = d.Num, T[d.Code.NA] = d.NA, T[d.Code.GettingData] = d.GettingData, T[d.Code.Spill] = d.Spill, T[d.Code.Connect] = d.Connect, T[d.Code.Blocked] = d.Blocked, T[d.Code.Unknown] = d.Unknown, T[d.Code.Field] = d.Field, T[d.Code.Calc] = d.Calc, T[d.Code.Busy] = d.Busy, T[d.Code.Python] = d.Python, T[d.Code.Timeout] = d.Timeout;
|
|
255
|
+
const at = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Map(), lt = /* @__PURE__ */ new Map(), Me = Object.keys(T);
|
|
256
|
+
for (let e = 0; e < Me.length; e++) {
|
|
257
|
+
const t = Me[e], n = T[t];
|
|
258
|
+
it.set(d.Label[t], n), lt.set(d.Code[t], n);
|
|
259
259
|
const r = new n();
|
|
260
|
-
|
|
260
|
+
at.set(r.getLabel(), r), Ie.set(r.getCode(), r);
|
|
261
261
|
}
|
|
262
|
-
const
|
|
263
|
-
var
|
|
264
|
-
(
|
|
262
|
+
const Tt = Ie.get(d.Code.Unknown);
|
|
263
|
+
var v;
|
|
264
|
+
(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) => at.get(e), v.newTypedError = (e, t, n) => {
|
|
265
265
|
let r;
|
|
266
|
-
return r = typeof e == "string" ?
|
|
267
|
-
},
|
|
266
|
+
return r = typeof e == "string" ? it.get(e) : lt.get(e), r || (r = v.Unknown), new r(t, n);
|
|
267
|
+
}, v.getBuiltInById = (e) => Ie.get(e) || Tt;
|
|
268
268
|
/**
|
|
269
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.
|
|
269
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.22
|
|
270
270
|
*
|
|
271
271
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
272
272
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
273
273
|
*/
|
|
274
|
-
const
|
|
274
|
+
const P = { Column: "column", Row: "row" }, _t = Object.freeze({ colIndex: 0, rowIndex: 0 }), Ot = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), st = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, ct = (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, je = (e, t) => e.colIndex === t.colIndex ? e.rowIndex - t.rowIndex : e.colIndex - t.colIndex, Pe = (e, t) => e.rowIndex === t.rowIndex ? e.colIndex - t.colIndex : e.rowIndex - t.rowIndex, Fe = (e, t) => e.rowIndex === t.rowIndex ? t.colIndex - e.colIndex : t.rowIndex - e.rowIndex, De = (e, t) => e.colIndex === t.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex, ut = (e = P.Row, t = !1) => t ? e !== P.Column ? It : Nt : e !== P.Column ? ct : st, Ue = (e, t) => e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex, ve = (e, t) => e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd, Te = (e, t) => !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd), Be = (e, t) => {
|
|
275
275
|
if (e === t) return !0;
|
|
276
276
|
if (!e || !t || e.length !== t.length) return !1;
|
|
277
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
277
|
+
for (let n = 0; n < e.length; n++) if (!ve(e[n], t[n])) return !1;
|
|
278
278
|
return !0;
|
|
279
|
-
},
|
|
279
|
+
}, ye = (e, t, n) => {
|
|
280
280
|
if (!e && !t) return null;
|
|
281
281
|
if (!e) return n ? t : { ...t };
|
|
282
282
|
if (!t) return n ? e : { ...e };
|
|
283
283
|
const r = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), a = Math.max(e.colEnd, t.colEnd), i = Math.max(e.rowEnd, t.rowEnd);
|
|
284
284
|
let l = n;
|
|
285
285
|
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
|
|
286
|
-
},
|
|
286
|
+
}, $e = (e, t) => {
|
|
287
287
|
if (!t || t.length === 0) return e;
|
|
288
288
|
const n = { ...e };
|
|
289
289
|
for (let r = 0; r < t.length; r++) {
|
|
290
290
|
const o = t[r];
|
|
291
|
-
|
|
291
|
+
Te(n, o) && (n.rowStart = Math.min(n.rowStart, o.rowStart), n.colStart = Math.min(n.colStart, o.colStart), n.rowEnd = Math.max(n.rowEnd, o.rowEnd), n.colEnd = Math.max(n.colEnd, o.colEnd));
|
|
292
292
|
}
|
|
293
293
|
return n;
|
|
294
|
-
},
|
|
294
|
+
}, Rt = [null, null], kt = (e, t, n) => {
|
|
295
295
|
if (e[0].value === e[1].value) return t;
|
|
296
296
|
};
|
|
297
|
-
function
|
|
297
|
+
function ze(e, t = 2, n, r = P.Row, o) {
|
|
298
298
|
let a = [...e];
|
|
299
299
|
if (t <= 0 || e.length <= 1) return a;
|
|
300
|
-
let i = r ===
|
|
300
|
+
let i = r === P.Column, l = 0, c = !1;
|
|
301
301
|
do {
|
|
302
|
-
const p = a.sort(
|
|
302
|
+
const p = a.sort(ut(i ? P.Row : P.Column));
|
|
303
303
|
a = [], a.push(p[0]);
|
|
304
304
|
const w = p.length;
|
|
305
|
-
let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd,
|
|
306
|
-
for (let
|
|
307
|
-
const
|
|
305
|
+
let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd, U = f.rowEnd;
|
|
306
|
+
for (let B = 1; B < w; B++) {
|
|
307
|
+
const O = p[B];
|
|
308
308
|
let J = !1;
|
|
309
|
-
if (J = i ? f && x ===
|
|
310
|
-
let
|
|
311
|
-
if (f.value !== void 0 && (
|
|
309
|
+
if (J = i ? f && x === O.rowStart && U === O.rowEnd && A + 1 === O.colStart : f && y === O.colStart && A === O.colEnd && U + 1 === O.rowStart, J) {
|
|
310
|
+
let b = { colStart: y, rowStart: x, colEnd: i ? O.colEnd : A, rowEnd: i ? U : O.rowEnd };
|
|
311
|
+
if (f.value !== void 0 && (b.value = f.value), n) {
|
|
312
312
|
const u = o ?? [null, null];
|
|
313
|
-
u[0] = f, u[1] =
|
|
313
|
+
u[0] = f, u[1] = O, b = n(u, b, r);
|
|
314
314
|
}
|
|
315
|
-
if (
|
|
316
|
-
a[g] =
|
|
315
|
+
if (b) {
|
|
316
|
+
a[g] = b, c = !0, f = b, y = f.colStart, x = f.rowStart, A = f.colEnd, U = f.rowEnd;
|
|
317
317
|
continue;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
a[++g] =
|
|
320
|
+
a[++g] = O, f = O, y = f.colStart, x = f.rowStart, A = f.colEnd, U = f.rowEnd;
|
|
321
321
|
}
|
|
322
322
|
l++, i = !i, l === 1 && (c = !0);
|
|
323
323
|
} while (l < t && c && a.length > 1);
|
|
324
324
|
return a;
|
|
325
325
|
}
|
|
326
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell:
|
|
326
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange: Ot, cellToRange: (e, t) => {
|
|
327
327
|
if (!e) return null;
|
|
328
328
|
let n = t;
|
|
329
329
|
return n || (n = { ...e }, delete n.colIndex, delete n.rowIndex), n.colStart = e.colIndex ?? 0, n.rowStart = e.rowIndex ?? 0, n.colEnd = e.colIndex ?? 0, n.rowEnd = e.rowIndex ?? 0, n;
|
|
330
|
-
}, columnFirstCellComparator:
|
|
330
|
+
}, columnFirstCellComparator: je, columnFirstRangeComparator: st, createCellComparator: (e = P.Row, t = !1) => t ? e !== P.Column ? Fe : De : e !== P.Column ? Pe : je, createConflatingRanges: (e, t = !1) => {
|
|
331
331
|
const n = [];
|
|
332
332
|
let r, o, a = Number.MIN_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
333
333
|
return { append: (l, c, p) => {
|
|
@@ -341,15 +341,15 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: vt, EmptyRange
|
|
|
341
341
|
r && n.push(r);
|
|
342
342
|
const f = t ? l : c, y = t ? c : l;
|
|
343
343
|
r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i = c, o = p;
|
|
344
|
-
}, done: (l) => (r && (n.push(r), r = null), l ?
|
|
345
|
-
}, createRangeComparator:
|
|
344
|
+
}, done: (l) => (r && (n.push(r), r = null), l ? ze(n, 3, l === !0 ? kt : l, t ? P.Column : P.Row, Rt) : n) };
|
|
345
|
+
}, createRangeComparator: ut, 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: $e, extendRangeToUnionRanges: (e, t) => {
|
|
346
346
|
if (!t || t.length === 0) return e;
|
|
347
347
|
let n = e, r = null;
|
|
348
|
-
for (; !
|
|
348
|
+
for (; !ve(n, r); ) r = n, n = $e(r, t);
|
|
349
349
|
return n;
|
|
350
350
|
}, indexOfCoords: (e, t) => {
|
|
351
351
|
const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
352
|
-
for (let r = t.length - 1; r >= 0; r--) if (
|
|
352
|
+
for (let r = t.length - 1; r >= 0; r--) if (Te(n, t[r])) return r;
|
|
353
353
|
return -1;
|
|
354
354
|
}, intersectRanges: (e, t, n) => {
|
|
355
355
|
if (!e) return n ? t : { ...t };
|
|
@@ -364,58 +364,58 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: vt, EmptyRange
|
|
|
364
364
|
if (n < t.rowStart || n > t.rowEnd) return !1;
|
|
365
365
|
const r = e.colIndex;
|
|
366
366
|
return !(r < t.colStart || r > t.colEnd);
|
|
367
|
-
}, isEqualCells:
|
|
367
|
+
}, isEqualCells: Ue, isEqualRanges: ve, isEqualRangesArrays: Be, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Ue(e.cell, t.cell) && Be(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: Te, 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: ze, reverseColumnFirstCellComparator: De, reverseRowFirstCellComparator: Fe, rowFirstCellComparator: Pe, rowFirstRangeComparator: ct, 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: ye, unionRangesArrays: (e, t, n) => {
|
|
368
368
|
if (!e || e.length === 0) return null;
|
|
369
369
|
if (e.length === 1 && !t) return e[0];
|
|
370
370
|
let r = e[0];
|
|
371
|
-
for (let o = 1; o < e.length; o++) r =
|
|
372
|
-
return t && (r =
|
|
371
|
+
for (let o = 1; o < e.length; o++) r = ye(r, e[o], n);
|
|
372
|
+
return t && (r = ye(r, t, n)), r;
|
|
373
373
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
374
|
-
const S = { html: "text/html", plain: "text/plain", png: "image/png" },
|
|
375
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds:
|
|
376
|
-
function
|
|
374
|
+
const S = { html: "text/html", plain: "text/plain", png: "image/png" }, Lt = Object.freeze({ left: 0, top: 0 }), At = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), Mt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 });
|
|
375
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Mt, EmptyRect: At, EmptyTopLeft: Lt }, Symbol.toStringTag, { value: "Module" }));
|
|
376
|
+
function jt(e) {
|
|
377
377
|
const t = Object.prototype.toString.call(e);
|
|
378
378
|
return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
|
|
379
|
-
return n.$$typeof ===
|
|
379
|
+
return n.$$typeof === Pt;
|
|
380
380
|
})(e);
|
|
381
381
|
}
|
|
382
|
-
const
|
|
383
|
-
function
|
|
382
|
+
const Pt = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
383
|
+
function Ft(e) {
|
|
384
384
|
return /* @__PURE__ */ (function(t) {
|
|
385
385
|
return !!t && typeof t == "object";
|
|
386
|
-
})(e) && !
|
|
386
|
+
})(e) && !jt(e);
|
|
387
387
|
}
|
|
388
388
|
function re(e, t) {
|
|
389
389
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
390
390
|
var n;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Dt(e, t, n) {
|
|
393
393
|
return e.concat(t).map(function(r) {
|
|
394
394
|
return re(r, n);
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ke(e) {
|
|
398
398
|
return Object.keys(e).concat((function(t) {
|
|
399
399
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
400
400
|
return Object.propertyIsEnumerable.call(t, n);
|
|
401
401
|
}) : [];
|
|
402
402
|
})(e));
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Ve(e, t) {
|
|
405
405
|
try {
|
|
406
406
|
return t in e;
|
|
407
407
|
} catch {
|
|
408
408
|
return !1;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Ut(e, t, n) {
|
|
412
412
|
const r = {};
|
|
413
|
-
return n.isMergeableObject(e) &&
|
|
413
|
+
return n.isMergeableObject(e) && Ke(e).forEach(function(o) {
|
|
414
414
|
r[o] = re(e[o], n);
|
|
415
|
-
}),
|
|
415
|
+
}), Ke(t).forEach(function(o) {
|
|
416
416
|
(function(a, i) {
|
|
417
|
-
return
|
|
418
|
-
})(e, o) || (
|
|
417
|
+
return Ve(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
|
|
418
|
+
})(e, o) || (Ve(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(a, i) {
|
|
419
419
|
if (!i.customMerge) return Y;
|
|
420
420
|
const l = i.customMerge(a);
|
|
421
421
|
return typeof l == "function" ? l : Y;
|
|
@@ -423,9 +423,9 @@ function Ft(e, t, n) {
|
|
|
423
423
|
}), r;
|
|
424
424
|
}
|
|
425
425
|
function Y(e, t, n) {
|
|
426
|
-
(n = n || {}).arrayMerge = n.arrayMerge ||
|
|
426
|
+
(n = n || {}).arrayMerge = n.arrayMerge || Dt, n.isMergeableObject = n.isMergeableObject || Ft, n.cloneUnlessOtherwiseSpecified = re;
|
|
427
427
|
const r = Array.isArray(t);
|
|
428
|
-
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) :
|
|
428
|
+
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Ut(e, t, n) : re(t, n);
|
|
429
429
|
}
|
|
430
430
|
Y.all = function(e, t) {
|
|
431
431
|
if (!Array.isArray(e)) throw new Error("first argument should be an array");
|
|
@@ -433,12 +433,12 @@ Y.all = function(e, t) {
|
|
|
433
433
|
return Y(n, r, t);
|
|
434
434
|
}, {});
|
|
435
435
|
};
|
|
436
|
-
const
|
|
436
|
+
const ge = Object.freeze([]), Bt = Object.freeze({}), qe = (e) => e, fe = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
437
437
|
let t = 16 * Math.random() | 0;
|
|
438
438
|
return (e === "x" ? t : 3 & t | 8).toString(16);
|
|
439
|
-
}),
|
|
440
|
-
e[t] && typeof e[t] == "object" ?
|
|
441
|
-
}), Object.keys(e).length === 0 ? null : e),
|
|
439
|
+
}), $t = (e) => 1 * e, dt = (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, ft = (e) => typeof e != "object" || Array.isArray(e) || e === null ? e : (Object.keys(e).forEach(function(t) {
|
|
440
|
+
e[t] && typeof e[t] == "object" ? ft(e[t]) : e[t] !== null && e[t] !== void 0 || delete e[t], typeof e[t] == "object" && Object.keys(e[t]).length === 0 && delete e[t];
|
|
441
|
+
}), Object.keys(e).length === 0 ? null : e), zt = (e, t) => !(e !== t && !dt(e, t)) || !!e.isEqual?.(t), pt = (e, t, n = zt) => {
|
|
442
442
|
if (e == null || e === t) return null;
|
|
443
443
|
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return n(e, t) ? null : e;
|
|
444
444
|
const r = Object.keys(e);
|
|
@@ -446,28 +446,28 @@ const we = Object.freeze([]), Dt = Object.freeze({}), Ke = (e) => e, de = () =>
|
|
|
446
446
|
let o = !1;
|
|
447
447
|
for (let a = 0; a < r.length; a++) {
|
|
448
448
|
const i = r[a];
|
|
449
|
-
|
|
449
|
+
pt(e[i], t?.[i], n) === null && (o = !0, delete e[i]);
|
|
450
450
|
}
|
|
451
451
|
return o && Object.keys(e).length === 0 ? null : void 0;
|
|
452
|
-
},
|
|
453
|
-
if (
|
|
452
|
+
}, Ge = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), We = (e) => e == null, Ye = (e, t) => !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top), Je = !(typeof window > "u" || !window.document || !window.document.createElement), k = { Windows: "windows", MacOS: "macos", IOS: "ios", Linux: "linux", Android: "android", Safari: "safari", Firefox: "firefox", Node: "node", Unknown: "unknown" }, oe = () => {
|
|
453
|
+
if (ht()) return k.Node;
|
|
454
454
|
const e = globalThis.navigator !== void 0 && globalThis.navigator.userAgent ? globalThis.navigator.userAgent.toLowerCase() : "";
|
|
455
455
|
return e ? /(win32|win64|windows|wince)/i.test(e) ? k.Windows : /(macintosh|macintel|macppc|mac68k|macos)/i.test(e) ? k.MacOS : /(iphone|ipad|ipod)/i.test(e) ? k.IOS : /android/.test(e) ? k.Android : /linux/.test(e) ? k.Linux : /^((?!chrome|android|).)*safari/i.test(e) ? k.Safari : /^((?!chrome|android|Seamonkey).)*firefox/i.test(e) ? k.Firefox : k.Unknown : k.Unknown;
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function ht() {
|
|
458
458
|
return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const He = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), Kt = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: ge, EmptyObject: Bt, OSType: k, arrayMove: function(e, t, n) {
|
|
461
461
|
const r = e.slice();
|
|
462
462
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
463
463
|
}, asNumber: (e) => {
|
|
464
|
-
const t =
|
|
464
|
+
const t = $t(e);
|
|
465
465
|
return Number.isFinite(t) ? t : 0;
|
|
466
466
|
}, camelToPrettyCase: (e) => e.length === 1 ? e.toUpperCase() : e.replace(/([A-Z])/g, " $1").replace(/^./, function(t) {
|
|
467
467
|
return t.toUpperCase();
|
|
468
|
-
}).trim(), canUseDOM:
|
|
468
|
+
}).trim(), canUseDOM: Je, cancelTimeout: (e) => {
|
|
469
469
|
cancelAnimationFrame(e.id);
|
|
470
|
-
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) =>
|
|
470
|
+
}, castToString: (e) => e == null || e === void 0 ? "" : typeof e != "string" ? "" + e : e, cloneObject: (e) => We(e) ? e : JSON.parse(JSON.stringify(e)), consoleWithNoSource: (...e) => new Promise((t) => {
|
|
471
471
|
setTimeout(() => {
|
|
472
472
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
473
473
|
});
|
|
@@ -537,7 +537,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
537
537
|
l !== c && (n[i] = l === void 0 ? c : l);
|
|
538
538
|
}
|
|
539
539
|
return Object.keys(n).length === 0 ? null : n;
|
|
540
|
-
}, findEqualOrGreater: function(e, t, n =
|
|
540
|
+
}, findEqualOrGreater: function(e, t, n = qe) {
|
|
541
541
|
let r = 0, o = e.length - 1;
|
|
542
542
|
for (; r <= o; ) {
|
|
543
543
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -545,7 +545,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
545
545
|
i < t ? r = a + 1 : o = a - 1;
|
|
546
546
|
}
|
|
547
547
|
return r;
|
|
548
|
-
}, findEqualOrLesser: function(e, t, n =
|
|
548
|
+
}, findEqualOrLesser: function(e, t, n = qe) {
|
|
549
549
|
let r = e.length - 1, o = 0;
|
|
550
550
|
for (; r >= o; ) {
|
|
551
551
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -570,17 +570,17 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
570
570
|
r = i;
|
|
571
571
|
}
|
|
572
572
|
return r ?? null;
|
|
573
|
-
}, getOS: oe, hasFocus:
|
|
573
|
+
}, getOS: oe, hasFocus: He, isDefined: (e) => e != null, isEmpty: (e) => e == null || e === "", isEqualArrays: dt, isEqualBounds: (e, t) => e === t || !(e && !t || t && !e) && e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, isEqualObjectKeys: (e, t) => {
|
|
574
574
|
if (e === t) return !0;
|
|
575
575
|
if (e && !t || t && !e) return !1;
|
|
576
576
|
const n = Object.keys(e);
|
|
577
577
|
if (n.length !== Object.keys(t).length) return !1;
|
|
578
578
|
for (let r = 0; r < n.length; r++) if (e[n[r]] !== t[n[r]]) return !1;
|
|
579
579
|
return !0;
|
|
580
|
-
}, isNode:
|
|
580
|
+
}, isNode: ht, isNullOrUndefined: We, isNumeric: (e) => {
|
|
581
581
|
const t = 1 * e;
|
|
582
582
|
return Number.isFinite(t) && typeof t == "number";
|
|
583
|
-
}, isObject: ne, isPromiseLike: (e) => !!e && typeof e.then == "function", isRectInsideRect: (e, t) => e.top >= t.top && e.bottom <= t.bottom && e.left >= t.left && e.right <= t.right, isRectIntersect:
|
|
583
|
+
}, isObject: ne, isPromiseLike: (e) => !!e && typeof e.then == "function", isRectInsideRect: (e, t) => e.top >= t.top && e.bottom <= t.bottom && e.left >= t.left && e.right <= t.right, isRectIntersect: Ye, mergeContentful: (...e) => {
|
|
584
584
|
const t = e.length;
|
|
585
585
|
if (t > 0 && e[t - 1] !== void 0 && !ne(e[t - 1])) return e[t - 1];
|
|
586
586
|
let n = e[0] || {};
|
|
@@ -593,7 +593,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
593
593
|
e();
|
|
594
594
|
});
|
|
595
595
|
}, openFileDialog: (e = "*.*") => new Promise((t, n) => {
|
|
596
|
-
if (!
|
|
596
|
+
if (!Je) return void n("Unable to open dialog with no dom.");
|
|
597
597
|
const r = document.createElement("input");
|
|
598
598
|
r.type = "file", r.accept = e;
|
|
599
599
|
let o = null, a = !1;
|
|
@@ -614,17 +614,17 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
614
614
|
return function(o) {
|
|
615
615
|
t = o, t && t.persist && t.persist(), n || (n = !0, requestAnimationFrame(r));
|
|
616
616
|
};
|
|
617
|
-
}, removeEmptyProperties:
|
|
618
|
-
if (!e) return
|
|
617
|
+
}, removeEmptyProperties: ft, removeEqualValues: pt, removeListenerAll: (e) => {
|
|
618
|
+
if (!e) return ge;
|
|
619
619
|
const t = e.length;
|
|
620
620
|
for (let n = 0; n < t; n++) {
|
|
621
621
|
const r = e[n];
|
|
622
622
|
r && r();
|
|
623
623
|
}
|
|
624
|
-
return
|
|
624
|
+
return ge;
|
|
625
625
|
}, requestTimeout: (e, t) => {
|
|
626
|
-
const n =
|
|
627
|
-
|
|
626
|
+
const n = Ge(), r = { id: requestAnimationFrame(function o() {
|
|
627
|
+
Ge() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
|
|
628
628
|
}) };
|
|
629
629
|
return r;
|
|
630
630
|
}, roundAccurately: (e, t = 0) => {
|
|
@@ -651,7 +651,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
651
651
|
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(n + 1)), fpLength: a };
|
|
652
652
|
}, subtractRect: (e, t, n = !1) => {
|
|
653
653
|
if (!t) return [e];
|
|
654
|
-
if (!
|
|
654
|
+
if (!Ye(e, t)) return [];
|
|
655
655
|
const r = [];
|
|
656
656
|
let o = e;
|
|
657
657
|
const a = () => {
|
|
@@ -684,22 +684,22 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
684
684
|
for (let o = 0; o < n; o++) r[o] = Array(t);
|
|
685
685
|
for (let o = 0; o < t; o++) for (let a = 0; a < n; a++) r[a][o] = e[o][a];
|
|
686
686
|
return r;
|
|
687
|
-
}, uuidV4:
|
|
687
|
+
}, uuidV4: fe, validEnumValue: (e, t) => {
|
|
688
688
|
if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
|
|
689
689
|
}, whenFocus: async (e, t = !1) => new Promise((n) => {
|
|
690
|
-
|
|
690
|
+
He(e, t) ? n(!0) : e.addEventListener("focusin", () => {
|
|
691
691
|
n(!0);
|
|
692
692
|
}, { once: !0 }), e.focus();
|
|
693
693
|
}) }, Symbol.toStringTag, { value: "Module" }));
|
|
694
694
|
Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
|
|
695
|
-
const
|
|
695
|
+
const mt = (e) => {
|
|
696
696
|
const t = new Uint8Array(e), n = t.byteLength;
|
|
697
697
|
let r = "";
|
|
698
698
|
for (let o = 0; o < n; o++) r += String.fromCharCode(t[o]);
|
|
699
699
|
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(r);
|
|
700
700
|
if (typeof Buffer < "u") return Buffer.from(r, "binary").toString("base64");
|
|
701
701
|
throw new Error("Unsupported environment");
|
|
702
|
-
},
|
|
702
|
+
}, _e = (e) => new Promise((t, n) => {
|
|
703
703
|
if (e) if (typeof FileReader < "u") {
|
|
704
704
|
const r = new FileReader();
|
|
705
705
|
r.onload = () => {
|
|
@@ -717,12 +717,12 @@ const pt = (e) => {
|
|
|
717
717
|
} else n(new Error("Unsupported environment"));
|
|
718
718
|
else t("");
|
|
719
719
|
});
|
|
720
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64:
|
|
720
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: mt, base64ToArrayBuffer: (e) => {
|
|
721
721
|
const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"), n = t.length, r = new Uint8Array(n);
|
|
722
722
|
for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
|
|
723
723
|
return r.buffer;
|
|
724
|
-
}, blobToString:
|
|
725
|
-
const
|
|
724
|
+
}, blobToString: _e }, Symbol.toStringTag, { value: "Module" }));
|
|
725
|
+
const wt = "data:image/png;base64,", yt = "Unable to resolve image.", Xe = (e) => new Promise(async (t, n) => {
|
|
726
726
|
let r = null;
|
|
727
727
|
try {
|
|
728
728
|
r = new Image(), r.src = e, r.addEventListener("load", function() {
|
|
@@ -733,9 +733,9 @@ const ht = "data:image/png;base64,", mt = "Unable to resolve image.", Je = (e) =
|
|
|
733
733
|
} catch {
|
|
734
734
|
r?.src && URL.revokeObjectURL(r.src);
|
|
735
735
|
}
|
|
736
|
-
r || n(
|
|
737
|
-
}),
|
|
738
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX:
|
|
736
|
+
r || n(yt);
|
|
737
|
+
}), be = "image/svg+xml";
|
|
738
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: wt, getImageDataUrl: (e, t = 1) => new Promise(async (n, r) => {
|
|
739
739
|
let o = null;
|
|
740
740
|
try {
|
|
741
741
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
@@ -753,27 +753,27 @@ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: ht,
|
|
|
753
753
|
} catch {
|
|
754
754
|
o?.src && URL.revokeObjectURL(o.src);
|
|
755
755
|
}
|
|
756
|
-
o || r(
|
|
756
|
+
o || r(yt);
|
|
757
757
|
}), loadImageDetails: async (e, t = null) => {
|
|
758
758
|
let n = null;
|
|
759
759
|
const r = async () => {
|
|
760
760
|
try {
|
|
761
|
-
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await
|
|
761
|
+
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await Xe(i);
|
|
762
762
|
n = { mimeType: a, naturalSize: l, asUrl: i };
|
|
763
763
|
} catch {
|
|
764
764
|
}
|
|
765
765
|
}, o = async () => {
|
|
766
766
|
try {
|
|
767
|
-
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type:
|
|
768
|
-
n = { mimeType: t ??
|
|
767
|
+
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type: be })), l = await Xe(i);
|
|
768
|
+
n = { mimeType: t ?? be, naturalSize: l, asUrl: i, asSVGText: a };
|
|
769
769
|
} catch {
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
|
-
if (t ===
|
|
772
|
+
if (t === be ? await o() : t.startsWith("image/") ? await r() : (await r(), n || await o()), !n) throw new Error("Failed to load image");
|
|
773
773
|
return n;
|
|
774
774
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
775
|
-
var
|
|
776
|
-
(
|
|
775
|
+
var Ze, Qe;
|
|
776
|
+
(Qe = Ze || (Ze = {})).resolveTypedUpdates = (e, t, n, r) => {
|
|
777
777
|
if (e === null) return e;
|
|
778
778
|
if (e === void 0) return r;
|
|
779
779
|
let o = e;
|
|
@@ -797,26 +797,26 @@ var He, Xe;
|
|
|
797
797
|
let f, y = o[g];
|
|
798
798
|
if (y !== void 0) {
|
|
799
799
|
const x = a[g];
|
|
800
|
-
f = x ? (0,
|
|
800
|
+
f = x ? (0, Qe.resolveTypedUpdates)(y, x, n, r?.[g]) : y;
|
|
801
801
|
} else f = r?.[g];
|
|
802
802
|
f != null && (l = l ?? {}, l[g] = f);
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
return l;
|
|
806
806
|
};
|
|
807
|
-
const
|
|
807
|
+
const et = \`The Safari browser does not support advanced copy and paste.
|
|
808
808
|
Copy and paste will be limited to within the browser tab.
|
|
809
809
|
|
|
810
|
-
Please use Chrome or Edge if external copy and paste is required.\`,
|
|
811
|
-
All copy and paste operations will be limited to the browser tab.\`,
|
|
810
|
+
Please use Chrome or Edge if external copy and paste is required.\`, Ee = \`You do not have permissions to access the clipboard.
|
|
811
|
+
All copy and paste operations will be limited to the browser tab.\`, gt = { Safari: \`The Safari browser does not support advanced copy and paste.
|
|
812
812
|
Copy and paste will be limited to within the browser tab.
|
|
813
813
|
|
|
814
|
-
Please use Chrome or Edge if external copy and paste is required.\`, Perms:
|
|
814
|
+
Please use Chrome or Edge if external copy and paste is required.\`, Perms: Ee, PermsWrite: oe() === k.Safari ? et : Ee, PermsRead: oe() === k.Safari ? et : Ee }, Se = async () => new Promise((e) => {
|
|
815
815
|
document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
|
|
816
816
|
e();
|
|
817
817
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
818
|
-
}),
|
|
819
|
-
if (oe() === k.Safari) return await n(new Error(
|
|
818
|
+
}), xe = async (e, t, n) => {
|
|
819
|
+
if (oe() === k.Safari) return await n(new Error(gt.Safari));
|
|
820
820
|
try {
|
|
821
821
|
const r = async (i) => {
|
|
822
822
|
try {
|
|
@@ -831,15 +831,15 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ge,
|
|
|
831
831
|
} catch (r) {
|
|
832
832
|
return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
|
|
833
833
|
}
|
|
834
|
-
},
|
|
834
|
+
}, bt = async (e) => {
|
|
835
835
|
try {
|
|
836
836
|
return await e.read({ unsanitized: [S.html] });
|
|
837
837
|
} catch {
|
|
838
838
|
}
|
|
839
839
|
return await e.read();
|
|
840
|
-
},
|
|
840
|
+
}, Vt = async (e, t) => {
|
|
841
841
|
if (!e) return null;
|
|
842
|
-
const n = await
|
|
842
|
+
const n = await bt(e);
|
|
843
843
|
let r = !1;
|
|
844
844
|
for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
|
|
845
845
|
return await n[o].getType(t);
|
|
@@ -870,9 +870,9 @@ if (!globalThis.ClipboardItem) {
|
|
|
870
870
|
}
|
|
871
871
|
globalThis.ClipboardItem = t;
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const Oe = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
874
874
|
try {
|
|
875
|
-
const o = await
|
|
875
|
+
const o = await Vt(e, t);
|
|
876
876
|
if (o) {
|
|
877
877
|
const a = new FileReader();
|
|
878
878
|
a.onload = () => {
|
|
@@ -884,8 +884,8 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
884
884
|
} catch (o) {
|
|
885
885
|
r(o);
|
|
886
886
|
}
|
|
887
|
-
}),
|
|
888
|
-
const n = await
|
|
887
|
+
}), tt = async (e, t = S.html) => {
|
|
888
|
+
const n = await Oe(e, t);
|
|
889
889
|
if (!n) return null;
|
|
890
890
|
let r = null;
|
|
891
891
|
try {
|
|
@@ -894,9 +894,9 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
894
894
|
console.warn("Can't parse html from clipboard.");
|
|
895
895
|
}
|
|
896
896
|
return r;
|
|
897
|
-
},
|
|
897
|
+
}, qt = async (e) => {
|
|
898
898
|
e && await e.writeText("");
|
|
899
|
-
}, ae = "clipboard-uuid", Q = "web text/uuid",
|
|
899
|
+
}, ae = "clipboard-uuid", Q = "web text/uuid", nt = (e) => \`<div style="display:none" \${ae}="\${e}"/>\`, Gt = (e, t) => {
|
|
900
900
|
let n = null;
|
|
901
901
|
try {
|
|
902
902
|
const r = new DOMParser().parseFromString(t, S.html);
|
|
@@ -905,7 +905,7 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
905
905
|
console.warn("Can't embed uuid.", r);
|
|
906
906
|
}
|
|
907
907
|
return n;
|
|
908
|
-
},
|
|
908
|
+
}, rt = (e, t) => {
|
|
909
909
|
if (!t || !e) return !1;
|
|
910
910
|
try {
|
|
911
911
|
const n = t.querySelectorAll(\`[\${ae}="\${e}"]\`);
|
|
@@ -916,7 +916,7 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
916
916
|
return !1;
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
class
|
|
919
|
+
class ot {
|
|
920
920
|
constructor(t) {
|
|
921
921
|
if (t?.nativeClipboard === void 0 || t?.nativeClipboard === !0) try {
|
|
922
922
|
this._nativeClipboard = globalThis?.navigator.clipboard;
|
|
@@ -927,12 +927,12 @@ class nt {
|
|
|
927
927
|
this._disableCheckOnFocus = t?.disableCheckOnFocus ?? !1, this._init();
|
|
928
928
|
}
|
|
929
929
|
async _checkForChanges() {
|
|
930
|
-
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await
|
|
931
|
-
await
|
|
932
|
-
const t = await
|
|
930
|
+
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await xe("clipboard-read", async () => {
|
|
931
|
+
await Se();
|
|
932
|
+
const t = await Oe(this._nativeClipboard, Q);
|
|
933
933
|
if (!this._state || t && t === this._state.uuid) return !0;
|
|
934
|
-
const n = await
|
|
935
|
-
return !this._state || (
|
|
934
|
+
const n = await tt(this._nativeClipboard, S.html);
|
|
935
|
+
return !this._state || (rt(this._state.uuid, n) || this.clear(), !0);
|
|
936
936
|
}, async (t) => {
|
|
937
937
|
t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
|
|
938
938
|
});
|
|
@@ -950,20 +950,20 @@ class nt {
|
|
|
950
950
|
async read() {
|
|
951
951
|
if (!this._nativeClipboard) return this._state?.items ?? null;
|
|
952
952
|
const t = this;
|
|
953
|
-
return await
|
|
954
|
-
if (await
|
|
955
|
-
const n = await
|
|
953
|
+
return await xe("clipboard-read", async () => {
|
|
954
|
+
if (await Se(), this._state?.uuid) {
|
|
955
|
+
const n = await Oe(this._nativeClipboard, Q);
|
|
956
956
|
if (n && n === t._state.uuid) return !0;
|
|
957
|
-
const r = await
|
|
958
|
-
if (
|
|
957
|
+
const r = await tt(this._nativeClipboard, S.html);
|
|
958
|
+
if (rt(t._state?.uuid, r)) return !0;
|
|
959
959
|
}
|
|
960
|
-
return t._state = { items: await
|
|
960
|
+
return t._state = { items: await bt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
|
|
961
961
|
}, async (n) => {
|
|
962
962
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
963
963
|
}), this._state?.items ?? [];
|
|
964
964
|
}
|
|
965
965
|
async write(t) {
|
|
966
|
-
return this._write({ uuid:
|
|
966
|
+
return this._write({ uuid: fe(), items: t, ref: null });
|
|
967
967
|
}
|
|
968
968
|
async _write(t) {
|
|
969
969
|
if (!this._nativeClipboard) return this._state = t, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
|
|
@@ -972,27 +972,27 @@ class nt {
|
|
|
972
972
|
const i = () => {
|
|
973
973
|
n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
|
|
974
974
|
};
|
|
975
|
-
await
|
|
976
|
-
await
|
|
975
|
+
await xe("clipboard-write", async () => {
|
|
976
|
+
await Se(), o && a.length === 0 && (a.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), a.push(new ClipboardItem({ [S.html]: new Blob([nt(o)], { type: S.html }) })));
|
|
977
977
|
for (let l = 0; l < Math.min(1, a.length); l++) {
|
|
978
978
|
const c = a[l];
|
|
979
979
|
let p = c.types.indexOf(S.html), w = null;
|
|
980
980
|
if (p !== -1) {
|
|
981
981
|
const y = await c.getType(S.html);
|
|
982
|
-
w = await
|
|
982
|
+
w = await _e(y), w && (w = Gt(o, w));
|
|
983
983
|
}
|
|
984
984
|
if (!w && c.types.includes(S.plain)) {
|
|
985
985
|
const y = await c.getType(S.plain);
|
|
986
986
|
if (y) {
|
|
987
987
|
let x = null;
|
|
988
|
-
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await
|
|
988
|
+
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await _e(y), x && (w = \`<div \${ae}="\${o}">\${x}</div>\`);
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
if (!w && c.types.includes(S.png)) {
|
|
992
|
-
const y = await c.getType(S.png), x =
|
|
993
|
-
w = \`<div \${ae}="\${o}"><img src="\${
|
|
992
|
+
const y = await c.getType(S.png), x = mt(await y.arrayBuffer());
|
|
993
|
+
w = \`<div \${ae}="\${o}"><img src="\${wt + x}"/></div>\`;
|
|
994
994
|
}
|
|
995
|
-
!w && o && (w =
|
|
995
|
+
!w && o && (w = nt(o));
|
|
996
996
|
const g = new Blob([w ?? ""], { type: S.html }), f = {};
|
|
997
997
|
for (let y = 0; y < c.types.length; y++) {
|
|
998
998
|
const x = c.types[y];
|
|
@@ -1001,7 +1001,7 @@ class nt {
|
|
|
1001
1001
|
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), r.push(new ClipboardItem(f));
|
|
1002
1002
|
}
|
|
1003
1003
|
try {
|
|
1004
|
-
r && r.length !== 0 ? await this._nativeClipboard.write(r) : await
|
|
1004
|
+
r && r.length !== 0 ? await this._nativeClipboard.write(r) : await qt(this._nativeClipboard);
|
|
1005
1005
|
} catch (l) {
|
|
1006
1006
|
l.message?.includes("Document is not focused") || console.warn("Unable to write to native clipboard: ", l);
|
|
1007
1007
|
}
|
|
@@ -1032,7 +1032,7 @@ class nt {
|
|
|
1032
1032
|
} catch (a) {
|
|
1033
1033
|
n = a, console.warn("export to png", a);
|
|
1034
1034
|
}
|
|
1035
|
-
const o = this._write({ uuid:
|
|
1035
|
+
const o = this._write({ uuid: fe(), ref: t, items: Object.keys(r).length > 0 ? [new ClipboardItem(r)] : null });
|
|
1036
1036
|
if (n) throw n;
|
|
1037
1037
|
return o;
|
|
1038
1038
|
}
|
|
@@ -1058,7 +1058,7 @@ class nt {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
async writeText(t) {
|
|
1060
1060
|
const n = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
|
|
1061
|
-
return this._write({ uuid:
|
|
1061
|
+
return this._write({ uuid: fe(), items: n, ref: null });
|
|
1062
1062
|
}
|
|
1063
1063
|
addEventListener(t, n, r = {}) {
|
|
1064
1064
|
const o = r?.capture ? this._listenersCapture : this._listeners;
|
|
@@ -1087,40 +1087,40 @@ class nt {
|
|
|
1087
1087
|
globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
(
|
|
1092
|
-
const
|
|
1093
|
-
let ee = null,
|
|
1094
|
-
async function
|
|
1090
|
+
var Ce;
|
|
1091
|
+
(Ce = ot || (ot = {})).ErrorMessages = gt, Ce.Global = new Ce();
|
|
1092
|
+
const Wt = "__SHEETXL";
|
|
1093
|
+
let ee = null, se = null;
|
|
1094
|
+
async function Yt() {
|
|
1095
1095
|
if (ee)
|
|
1096
1096
|
return ee;
|
|
1097
|
-
if (
|
|
1098
|
-
if (await
|
|
1097
|
+
if (se) {
|
|
1098
|
+
if (await se, !ee)
|
|
1099
1099
|
throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
1100
1100
|
return ee;
|
|
1101
1101
|
}
|
|
1102
1102
|
let e, t;
|
|
1103
|
-
|
|
1103
|
+
se = new Promise((n, r) => {
|
|
1104
1104
|
e = n, t = r;
|
|
1105
1105
|
});
|
|
1106
1106
|
try {
|
|
1107
1107
|
const { initialize: n } = await Promise.resolve().then(function() {
|
|
1108
|
-
return
|
|
1108
|
+
return ln;
|
|
1109
1109
|
});
|
|
1110
1110
|
return ee = await n(), e(), ee;
|
|
1111
1111
|
} catch (n) {
|
|
1112
|
-
throw console.error("Failed to import or initialize esbuild:", n),
|
|
1112
|
+
throw console.error("Failed to import or initialize esbuild:", n), se = null, t(n), n;
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
const
|
|
1115
|
+
const Jt = {
|
|
1116
1116
|
// ESBuild.TsconfigRaw =
|
|
1117
1117
|
compilerOptions: {
|
|
1118
1118
|
target: "esnext"
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
|
-
async function
|
|
1121
|
+
async function Ht(e, t, n = "/script.js", r = Wt) {
|
|
1122
1122
|
try {
|
|
1123
|
-
const o = await
|
|
1123
|
+
const o = await Yt(), a = "@sheetxl/primitives", i = \`
|
|
1124
1124
|
export const FormulaContext = globalThis.\${r}?.FormulaContext;
|
|
1125
1125
|
export const ScalarType = globalThis.\${r}?.ScalarType;
|
|
1126
1126
|
export const Observable = globalThis.\${r}?.Observable;
|
|
@@ -1168,7 +1168,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1168
1168
|
// TODO - later change to external and prepend when executing from ui
|
|
1169
1169
|
sourcemap: "inline",
|
|
1170
1170
|
// Generate separate source map string
|
|
1171
|
-
tsconfigRaw:
|
|
1171
|
+
tsconfigRaw: Jt,
|
|
1172
1172
|
// Pass the mapped options
|
|
1173
1173
|
minify: !0,
|
|
1174
1174
|
// sourcemap: 'external', // Generate separate source map string
|
|
@@ -1186,7 +1186,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1186
1186
|
throw console.error("esbuild bundling process failed:", o), o;
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
const
|
|
1189
|
+
const Xt = \`
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Represents the completion of an asynchronous operation
|
|
1192
1192
|
*/
|
|
@@ -1199,63 +1199,63 @@ interface Promise<T> {
|
|
|
1199
1199
|
*/
|
|
1200
1200
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
1201
1201
|
}
|
|
1202
|
-
\`,
|
|
1202
|
+
\`, Zt = \`
|
|
1203
1203
|
interface FirstTest {
|
|
1204
1204
|
isTrue?: boolean;
|
|
1205
1205
|
}
|
|
1206
|
-
\`,
|
|
1206
|
+
\`, Qt = async () => Zt, Et = /* @__PURE__ */ new Map([
|
|
1207
1207
|
["IReferenceRange", "r"],
|
|
1208
1208
|
["IRange", "l"]
|
|
1209
|
-
]),
|
|
1209
|
+
]), St = /* @__PURE__ */ new Map([
|
|
1210
1210
|
["IWorkbook", "workbook"],
|
|
1211
1211
|
["ISheet", "sheet"],
|
|
1212
1212
|
["ICellRanges", "ranges"],
|
|
1213
1213
|
["ICellRange", "range"],
|
|
1214
1214
|
["IFormulaContext", "context"]
|
|
1215
|
-
]),
|
|
1215
|
+
]), Ne = (e, t) => {
|
|
1216
1216
|
Array.from(t.keys()).forEach((r) => {
|
|
1217
1217
|
const o = t.get(r);
|
|
1218
1218
|
t.set(\`\${e}.\${r}\`, o);
|
|
1219
1219
|
});
|
|
1220
|
-
},
|
|
1220
|
+
}, en = /* @__PURE__ */ new Map([
|
|
1221
1221
|
["Scalar", "*"],
|
|
1222
1222
|
["FormulaError.Known", W.Error],
|
|
1223
1223
|
["Date", "Date"],
|
|
1224
1224
|
["JSON", "JSON"]
|
|
1225
|
-
]),
|
|
1225
|
+
]), tn = /* @__PURE__ */ new Map([
|
|
1226
1226
|
// Repeating
|
|
1227
|
-
]),
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
const
|
|
1227
|
+
]), Re = "SheetXL";
|
|
1228
|
+
Ne(Re, Et);
|
|
1229
|
+
Ne(Re, St);
|
|
1230
|
+
Ne(Re, tn);
|
|
1231
|
+
const nn = /* @__PURE__ */ new Map([
|
|
1232
1232
|
["Promise", () => ({ async: !0 })],
|
|
1233
1233
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
1234
1234
|
// return { async: true };
|
|
1235
1235
|
// }],
|
|
1236
1236
|
["Observable", () => ({ stream: !0 })]
|
|
1237
1237
|
]);
|
|
1238
|
-
let
|
|
1239
|
-
async function
|
|
1240
|
-
if (
|
|
1241
|
-
return
|
|
1238
|
+
let ce = null;
|
|
1239
|
+
async function rn() {
|
|
1240
|
+
if (ce)
|
|
1241
|
+
return ce;
|
|
1242
1242
|
try {
|
|
1243
1243
|
return await (await Promise.resolve().then(function() {
|
|
1244
|
-
return
|
|
1244
|
+
return cn;
|
|
1245
1245
|
})).initialize();
|
|
1246
1246
|
} catch (e) {
|
|
1247
|
-
throw
|
|
1247
|
+
throw ce = null, e;
|
|
1248
1248
|
} finally {
|
|
1249
|
-
|
|
1249
|
+
ce = null;
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
async function
|
|
1252
|
+
async function on(e) {
|
|
1253
1253
|
const t = e?.source ?? null;
|
|
1254
1254
|
if (!t) return null;
|
|
1255
1255
|
const n = (e.disableBundle || e.declarationsOnly) ?? !1, r = [
|
|
1256
|
-
|
|
1256
|
+
Qt(),
|
|
1257
1257
|
//import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
|
|
1258
|
-
|
|
1258
|
+
rn()
|
|
1259
1259
|
], o = await Promise.all(r), a = o[0], i = o[1];
|
|
1260
1260
|
let l = "", c = null;
|
|
1261
1261
|
const p = [], w = {
|
|
@@ -1276,10 +1276,10 @@ async function nn(e) {
|
|
|
1276
1276
|
// lib: ['webworker', 'es2020', 'esnext.asynciterable'], // Use the webworker lib instead of dom
|
|
1277
1277
|
}, g = "script", f = \`\${g}.ts\`, y = "lib.d.ts", x = "global.d.ts", A = {
|
|
1278
1278
|
[f]: t,
|
|
1279
|
-
[y]:
|
|
1279
|
+
[y]: Xt,
|
|
1280
1280
|
[x]: a
|
|
1281
|
-
},
|
|
1282
|
-
getSourceFile: (s, m, L,
|
|
1281
|
+
}, U = {
|
|
1282
|
+
getSourceFile: (s, m, L, F) => i.createSourceFile(s, A[s], i.ScriptTarget.Latest, !0),
|
|
1283
1283
|
fileExists: (s) => A[s] !== void 0,
|
|
1284
1284
|
readFile: (s) => A[s],
|
|
1285
1285
|
writeFile: (s, m) => {
|
|
@@ -1292,11 +1292,11 @@ async function nn(e) {
|
|
|
1292
1292
|
getDefaultLibFileName: (s) => y,
|
|
1293
1293
|
getNewLine: () => \`
|
|
1294
1294
|
\`
|
|
1295
|
-
},
|
|
1296
|
-
|
|
1297
|
-
const u = (s, m, L,
|
|
1295
|
+
}, B = i.createProgram([f, x], w, U), O = B.getTypeChecker(), J = B.getSourceFile(f), b = B.emit();
|
|
1296
|
+
b.diagnostics.length > 0 && console.warn(b.diagnostics), l = A[\`\${g}.js\`];
|
|
1297
|
+
const u = (s, m, L, F) => {
|
|
1298
1298
|
if (!s) {
|
|
1299
|
-
|
|
1299
|
+
z(s, new Error(\`Type is not defined for '\${m?.name ?? "return"}'.\`));
|
|
1300
1300
|
return;
|
|
1301
1301
|
}
|
|
1302
1302
|
if (s.kind === i.SyntaxKind.NumberKeyword)
|
|
@@ -1306,8 +1306,8 @@ async function nn(e) {
|
|
|
1306
1306
|
else if (s.kind === i.SyntaxKind.BooleanKeyword)
|
|
1307
1307
|
m.scalar = W.Boolean;
|
|
1308
1308
|
else if (s.kind === i.SyntaxKind.UndefinedKeyword || s.kind === i.SyntaxKind.NullKeyword || s.kind === i.SyntaxKind.VoidKeyword) {
|
|
1309
|
-
if (
|
|
1310
|
-
|
|
1309
|
+
if (F) {
|
|
1310
|
+
z(s, new Error(\`'undefined' is not a valid type for input: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
1313
|
m.scalar = W.Null;
|
|
@@ -1318,187 +1318,188 @@ async function nn(e) {
|
|
|
1318
1318
|
else if (s.kind === i.SyntaxKind.ArrayType) {
|
|
1319
1319
|
const M = s.elementType;
|
|
1320
1320
|
if (!M) {
|
|
1321
|
-
|
|
1321
|
+
z(s, new Error(\`'Array' must be typed: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1322
1322
|
return;
|
|
1323
1323
|
}
|
|
1324
|
-
m.arrayDepth = (m.arrayDepth ?? 0) + 1, u(M, m, L,
|
|
1324
|
+
m.arrayDepth = (m.arrayDepth ?? 0) + 1, u(M, m, L, F);
|
|
1325
1325
|
} else if (s.kind !== i.SyntaxKind.TupleType) {
|
|
1326
1326
|
if (s.kind === i.SyntaxKind.TypeReference) {
|
|
1327
|
-
const M = s.typeName?.getText?.() ?? null,
|
|
1328
|
-
let
|
|
1329
|
-
|
|
1330
|
-
const
|
|
1331
|
-
if (
|
|
1332
|
-
const
|
|
1333
|
-
if (
|
|
1334
|
-
return
|
|
1327
|
+
const M = s.typeName?.getText?.() ?? null, V = Et.get(M);
|
|
1328
|
+
let q = !1;
|
|
1329
|
+
V && (m.range = V, q = !0);
|
|
1330
|
+
const G = en.get(M);
|
|
1331
|
+
if (G && (m.scalar = G), G !== void 0 && (q = !0), F) {
|
|
1332
|
+
const N = St.get(M);
|
|
1333
|
+
if (N)
|
|
1334
|
+
return N;
|
|
1335
1335
|
} else {
|
|
1336
|
-
const
|
|
1337
|
-
if (
|
|
1338
|
-
const
|
|
1339
|
-
let
|
|
1340
|
-
if (
|
|
1341
|
-
|
|
1336
|
+
const N = nn.get(M);
|
|
1337
|
+
if (N) {
|
|
1338
|
+
const E = { ...m, ...N() };
|
|
1339
|
+
let I = 0;
|
|
1340
|
+
if (E.async && I++, E.stream && I++, I > 1) {
|
|
1341
|
+
z(s, new Error(\`'\${M}' cannot have multiple modifiers: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1342
1342
|
return;
|
|
1343
1343
|
}
|
|
1344
|
-
m =
|
|
1344
|
+
m = E, q = !0;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
if (!
|
|
1348
|
-
|
|
1347
|
+
if (!q) {
|
|
1348
|
+
z("node", new Error(\`'\${M}' is not a valid type: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1349
1349
|
return;
|
|
1350
1350
|
}
|
|
1351
1351
|
const H = s.typeArguments;
|
|
1352
1352
|
if (H) {
|
|
1353
1353
|
if (H.length !== 1) {
|
|
1354
|
-
|
|
1354
|
+
z(s, new Error(\`'\${M}' must be typed with exactly 1 type: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1355
1355
|
return;
|
|
1356
1356
|
}
|
|
1357
|
-
u(H[0], m, L,
|
|
1357
|
+
u(H[0], m, L, F);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
}, h = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Export) !== 0,
|
|
1362
|
-
|
|
1361
|
+
}, h = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Export) !== 0, pe = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Default) !== 0, $ = [], z = (s, m) => {
|
|
1362
|
+
$.push(m);
|
|
1363
1363
|
};
|
|
1364
1364
|
if (i.forEachChild(J, (s) => {
|
|
1365
1365
|
if (h(s) && i.isFunctionDeclaration(s)) {
|
|
1366
1366
|
const m = {}, L = {
|
|
1367
1367
|
parameters: {}
|
|
1368
|
-
},
|
|
1368
|
+
}, F = s?.name?.getText();
|
|
1369
1369
|
try {
|
|
1370
|
-
m.name =
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1373
|
-
let
|
|
1374
|
-
|
|
1370
|
+
m.name = F;
|
|
1371
|
+
const V = O.getSymbolAtLocation(s.name).getDocumentationComment(O);
|
|
1372
|
+
if (V && V.length > 0 && V[0].text) {
|
|
1373
|
+
let N = V[0].text;
|
|
1374
|
+
N = N.replace(/[\\r\\n]+/g, "\\\\n").trim(), L.summary = N;
|
|
1375
1375
|
}
|
|
1376
|
-
const V = {};
|
|
1377
|
-
u(s.type, V, m, !1), m.returnType = V;
|
|
1378
1376
|
const q = {};
|
|
1379
|
-
|
|
1377
|
+
u(s.type, q, m, !1), m.returnType = q;
|
|
1378
|
+
const G = {};
|
|
1379
|
+
pe(s) && (G.default = !0, c = F), Object.keys(G).length > 0 && (m.behavior = G), m.parameters = [];
|
|
1380
1380
|
const H = /* @__PURE__ */ new Map();
|
|
1381
|
-
for (let
|
|
1382
|
-
const
|
|
1383
|
-
|
|
1384
|
-
const X = u(
|
|
1381
|
+
for (let N = 0; N < s.parameters.length; N++) {
|
|
1382
|
+
const E = s.parameters[N], I = {};
|
|
1383
|
+
I.name = E.name?.getText();
|
|
1384
|
+
const X = u(E.type, I, m, !0);
|
|
1385
1385
|
if (X) {
|
|
1386
1386
|
if (m.parameters.length !== 0) {
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1387
|
+
const ie = s?.parent?.name?.getText();
|
|
1388
|
+
z(s, new Error(\`'\${m.name}' contexts must be the first parameter: '\${ie}'.\`));
|
|
1389
1389
|
return;
|
|
1390
1390
|
}
|
|
1391
1391
|
m.context = X;
|
|
1392
1392
|
continue;
|
|
1393
1393
|
}
|
|
1394
|
-
const
|
|
1395
|
-
let
|
|
1396
|
-
if (
|
|
1394
|
+
const he = !((E.initializer === void 0 || E.initializer === null) && (E.questionToken === void 0 || E.questionToken === null));
|
|
1395
|
+
let j;
|
|
1396
|
+
if (he && (I.optional = !0, E.initializer))
|
|
1397
1397
|
try {
|
|
1398
|
-
|
|
1399
|
-
} catch (
|
|
1400
|
-
console.warn(\`Couldn't extract default value for parameter '\${
|
|
1398
|
+
E.initializer.kind === i.SyntaxKind.StringLiteral ? j = E.initializer.text : E.initializer.kind === i.SyntaxKind.NumericLiteral ? j = parseFloat(E.initializer.text) : E.initializer.kind === i.SyntaxKind.TrueKeyword || E.initializer.kind === i.SyntaxKind.FalseKeyword ? j = E.initializer.kind === i.SyntaxKind.TrueKeyword : E.initializer.kind === i.SyntaxKind.NullKeyword ? j = null : E.initializer.kind === i.SyntaxKind.ObjectLiteralExpression || E.initializer.kind === i.SyntaxKind.ArrayLiteralExpression ? j = E.initializer.getText() : j = E.initializer.getText?.();
|
|
1399
|
+
} catch (C) {
|
|
1400
|
+
console.warn(\`Couldn't extract default value for parameter '\${I.name}'\`, C);
|
|
1401
1401
|
}
|
|
1402
|
-
|
|
1403
|
-
const
|
|
1404
|
-
L.parameters[
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1402
|
+
E.dotDotDotToken && (I.rest = !0), m.parameters.push(I);
|
|
1403
|
+
const D = { description: "" };
|
|
1404
|
+
L.parameters[I.name] = D;
|
|
1405
|
+
const _ = O.getSymbolAtLocation(E.name).getDocumentationComment(O);
|
|
1406
|
+
_ && _.length > 0 && _[0].text && (D.description = _[0].text), j !== void 0 && (D.defaultValue = j), H.set(I.name, I);
|
|
1407
1407
|
}
|
|
1408
1408
|
if (s.jsDoc && s.jsDoc.length > 0) {
|
|
1409
|
-
const
|
|
1410
|
-
for (let
|
|
1411
|
-
const
|
|
1412
|
-
if (
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
C = Z, te.length > 0 && v === "see" && (L.links || (L.links = []), L.links.push(...te));
|
|
1409
|
+
const N = s.jsDoc, E = N.length;
|
|
1410
|
+
for (let I = 0; I < E; I++) {
|
|
1411
|
+
const X = N[I]?.tags;
|
|
1412
|
+
if (!X) continue;
|
|
1413
|
+
const he = X.length;
|
|
1414
|
+
for (let j = 0; j < he; j++) {
|
|
1415
|
+
const D = X[j];
|
|
1416
|
+
let _ = D?.tagName?.text;
|
|
1417
|
+
if (!_) continue;
|
|
1418
|
+
_ = _.toLowerCase();
|
|
1419
|
+
let C = D.comment;
|
|
1420
|
+
const ie = _ === "hidden";
|
|
1421
|
+
if (!(typeof C != "string" && !ie) && (typeof C == "string" && (C = C.replace(/[\\r\\n]+/g, "\\\\n").trim()), !(!ie && C && (C = C.split(/\\\\n/)[0], !C || C.length === 0)))) {
|
|
1422
|
+
if (C && typeof C == "string") {
|
|
1423
|
+
const R = /\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g;
|
|
1424
|
+
let K, Z = C, te = [];
|
|
1425
|
+
for (; (K = R.exec(C)) !== null; ) {
|
|
1426
|
+
const [me, we, Ct, Le] = K, vt = [Ct.trim()];
|
|
1427
|
+
Le && vt.push(Le.trim());
|
|
1429
1428
|
}
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
try {
|
|
1446
|
-
const Z = z.typeExpression.type;
|
|
1447
|
-
if (Z.kind === i.SyntaxKind.UnionType) {
|
|
1448
|
-
const te = [];
|
|
1449
|
-
F.enums = te, Z.types.forEach((pe) => {
|
|
1450
|
-
if (pe.kind === i.SyntaxKind.LiteralType) {
|
|
1451
|
-
const he = pe.literal.text;
|
|
1452
|
-
he && te.push(he);
|
|
1453
|
-
}
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
} catch (Z) {
|
|
1457
|
-
console.warn("Error parsing JSDoc type expression:", Z);
|
|
1458
|
-
}
|
|
1459
|
-
} else if (v === "returns" || v === "return")
|
|
1460
|
-
m.returnType.description = C;
|
|
1461
|
-
else if (v === "category")
|
|
1462
|
-
L.category = C;
|
|
1463
|
-
else if (v === "hidden") {
|
|
1464
|
-
let O = !0;
|
|
1465
|
-
const F = C?.toLowerCase();
|
|
1466
|
-
F === "false" ? O = !1 : F !== "true" && (O = C), O !== !1 && (L.hidden = O ?? !0);
|
|
1429
|
+
C = Z, te.length > 0 && _ === "see" && (L.links || (L.links = []), L.links.push(...te));
|
|
1430
|
+
}
|
|
1431
|
+
if (_ === "name") {
|
|
1432
|
+
const R = C;
|
|
1433
|
+
R !== F && (L.name = R);
|
|
1434
|
+
} else if (_ === "description") {
|
|
1435
|
+
const R = C;
|
|
1436
|
+
} else if (_ === "summary") {
|
|
1437
|
+
const R = C;
|
|
1438
|
+
R && (L.summary = R);
|
|
1439
|
+
} else if (_ === "param") {
|
|
1440
|
+
const R = D.name?.text, K = H.get(R);
|
|
1441
|
+
if (!K) {
|
|
1442
|
+
$.push(new Error(\`Parameter '\${R}' not found in function '\${F}'.\`));
|
|
1443
|
+
continue;
|
|
1467
1444
|
}
|
|
1445
|
+
if (D.typeExpression && D.typeExpression.type)
|
|
1446
|
+
try {
|
|
1447
|
+
const Z = D.typeExpression.type;
|
|
1448
|
+
if (Z.kind === i.SyntaxKind.UnionType) {
|
|
1449
|
+
const te = [];
|
|
1450
|
+
K.enums = te, Z.types.forEach((me) => {
|
|
1451
|
+
if (me.kind === i.SyntaxKind.LiteralType) {
|
|
1452
|
+
const we = me.literal.text;
|
|
1453
|
+
we && te.push(we);
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
} catch (Z) {
|
|
1458
|
+
console.warn("Error parsing JSDoc type expression:", Z);
|
|
1459
|
+
}
|
|
1460
|
+
} else if (_ === "returns" || _ === "return")
|
|
1461
|
+
m.returnType.description = C;
|
|
1462
|
+
else if (_ === "category")
|
|
1463
|
+
L.category = C;
|
|
1464
|
+
else if (_ === "hidden") {
|
|
1465
|
+
let R = !0;
|
|
1466
|
+
const K = C?.toLowerCase();
|
|
1467
|
+
K === "false" ? R = !1 : K !== "true" && (R = C), R !== !1 && (L.hidden = R ?? !0);
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
+
}
|
|
1470
1471
|
}
|
|
1471
1472
|
}
|
|
1472
1473
|
Object.keys(m.returnType).length === 0 && delete m.returnType, p.push([m, L]);
|
|
1473
1474
|
} catch (M) {
|
|
1474
|
-
|
|
1475
|
+
z(s, new Error(\`'\${F}': \${M.message}\`));
|
|
1475
1476
|
}
|
|
1476
1477
|
}
|
|
1477
|
-
}),
|
|
1478
|
-
throw console.warn(
|
|
1478
|
+
}), $.length > 0)
|
|
1479
|
+
throw console.warn($), new Error("There were compilation errors.", { cause: $ });
|
|
1479
1480
|
if (p.length === 0)
|
|
1480
1481
|
throw new Error("No exported functions.");
|
|
1481
|
-
const
|
|
1482
|
+
const xt = \`\${Kt.uuidV4()}-script\`;
|
|
1482
1483
|
try {
|
|
1483
|
-
!n &&
|
|
1484
|
+
!n && $.length === 0 && (l = await Ht(i, l, g));
|
|
1484
1485
|
} catch {
|
|
1485
1486
|
console.warn("Error bundling script");
|
|
1486
1487
|
}
|
|
1487
|
-
const
|
|
1488
|
+
const ke = {
|
|
1488
1489
|
functions: p,
|
|
1489
|
-
commitId:
|
|
1490
|
+
commitId: xt,
|
|
1490
1491
|
source: t,
|
|
1491
1492
|
name: "Script",
|
|
1492
1493
|
language: "typescript",
|
|
1493
1494
|
// default
|
|
1494
1495
|
compiled: l
|
|
1495
1496
|
};
|
|
1496
|
-
return c && (
|
|
1497
|
+
return c && (ke.autoRun = c), ke;
|
|
1497
1498
|
}
|
|
1498
1499
|
self.addEventListener("message", async (e) => {
|
|
1499
1500
|
const { id: t, params: n } = e.data;
|
|
1500
1501
|
try {
|
|
1501
|
-
const r = await
|
|
1502
|
+
const r = await on(n);
|
|
1502
1503
|
self.postMessage({ id: t, result: r, error: null });
|
|
1503
1504
|
} catch (r) {
|
|
1504
1505
|
self.postMessage({
|
|
@@ -1512,9 +1513,9 @@ self.addEventListener("message", async (e) => {
|
|
|
1512
1513
|
});
|
|
1513
1514
|
}
|
|
1514
1515
|
});
|
|
1515
|
-
let
|
|
1516
|
-
async function
|
|
1517
|
-
return
|
|
1516
|
+
let ue = null;
|
|
1517
|
+
async function an() {
|
|
1518
|
+
return ue || (ue = new Promise(async (e, t) => {
|
|
1518
1519
|
try {
|
|
1519
1520
|
const n = "0.20.2", r = \`https://esm.sh/esbuild-wasm@\${n}\`, o = \`https://esm.sh/esbuild-wasm@\${n}/esbuild.wasm\`, i = (await import(
|
|
1520
1521
|
/* webpackIgnore: true */
|
|
@@ -1530,15 +1531,15 @@ async function rn() {
|
|
|
1530
1531
|
} catch (n) {
|
|
1531
1532
|
console.error("Error initializing esbuild:", n), t(n);
|
|
1532
1533
|
}
|
|
1533
|
-
}),
|
|
1534
|
+
}), ue);
|
|
1534
1535
|
}
|
|
1535
|
-
var
|
|
1536
|
+
var ln = /* @__PURE__ */ Object.freeze({
|
|
1536
1537
|
__proto__: null,
|
|
1537
|
-
initialize:
|
|
1538
|
+
initialize: an
|
|
1538
1539
|
});
|
|
1539
|
-
let
|
|
1540
|
-
async function
|
|
1541
|
-
return
|
|
1540
|
+
let de = null;
|
|
1541
|
+
async function sn() {
|
|
1542
|
+
return de || (de = new Promise(async (e, t) => {
|
|
1542
1543
|
let n = null;
|
|
1543
1544
|
try {
|
|
1544
1545
|
n = await import("https://esm.sh/typescript@5.7.2");
|
|
@@ -1546,11 +1547,11 @@ async function an() {
|
|
|
1546
1547
|
console.error("Error initializing Browser TypeScript module:", r);
|
|
1547
1548
|
}
|
|
1548
1549
|
n || console.log("use script fallback"), e(n);
|
|
1549
|
-
}),
|
|
1550
|
+
}), de);
|
|
1550
1551
|
}
|
|
1551
|
-
var
|
|
1552
|
+
var cn = /* @__PURE__ */ Object.freeze({
|
|
1552
1553
|
__proto__: null,
|
|
1553
|
-
initialize:
|
|
1554
|
+
initialize: sn
|
|
1554
1555
|
});
|
|
1555
1556
|
`, i = typeof self < "u" && self.Blob && new Blob(["URL.revokeObjectURL(import.meta.url);", s], { type: "text/javascript;charset=utf-8" });
|
|
1556
1557
|
function d(e) {
|
|
@@ -1578,7 +1579,7 @@ async function p() {
|
|
|
1578
1579
|
return await l();
|
|
1579
1580
|
}
|
|
1580
1581
|
const l = async () => {
|
|
1581
|
-
const { compileModule: e } = await import("./
|
|
1582
|
+
const { compileModule: e } = await import("./z3wZCYFfeoKhs19u.js"), n = new u((t) => e(t));
|
|
1582
1583
|
return await n.start(), n;
|
|
1583
1584
|
};
|
|
1584
1585
|
export {
|