@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,21 +1,21 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.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.
|
|
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 a=new Error(r.message);a.stack=r.stack,r.cause&&(a.cause=r.cause),o.reject(a)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.22
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
11
|
*/
|
|
12
12
|
const W = { Number: "n", String: "s", Boolean: "b", Error: "e", Null: "z" };
|
|
13
|
-
var
|
|
14
|
-
(
|
|
13
|
+
var Ae, le, d;
|
|
14
|
+
(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) => {
|
|
15
15
|
e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
16
16
|
class t extends Error {
|
|
17
|
-
constructor(u, h,
|
|
18
|
-
super(
|
|
17
|
+
constructor(u, h, pe, $) {
|
|
18
|
+
super(pe, $), this._label = h, this._code = u, this.details = $;
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
21
|
this.code = e.Code.Unknown;
|
|
@@ -170,7 +170,7 @@ var ke, ie, d;
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
e.Field = A;
|
|
173
|
-
class
|
|
173
|
+
class U extends t {
|
|
174
174
|
constructor(u, h) {
|
|
175
175
|
super(e.Code.Calc, e.Label.Calc, u, h);
|
|
176
176
|
}
|
|
@@ -178,8 +178,8 @@ var ke, ie, d;
|
|
|
178
178
|
this.code = e.Code.Calc;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
e.Calc =
|
|
182
|
-
class
|
|
181
|
+
e.Calc = U;
|
|
182
|
+
class B extends t {
|
|
183
183
|
constructor(u, h) {
|
|
184
184
|
super(e.Code.Busy, e.Label.Busy, u, h);
|
|
185
185
|
}
|
|
@@ -187,8 +187,8 @@ var ke, ie, d;
|
|
|
187
187
|
this.code = e.Code.Busy;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
e.Busy =
|
|
191
|
-
class
|
|
190
|
+
e.Busy = B;
|
|
191
|
+
class O extends t {
|
|
192
192
|
constructor(u, h) {
|
|
193
193
|
super(e.Code.Python, e.Label.Python, u, h);
|
|
194
194
|
}
|
|
@@ -196,7 +196,7 @@ var ke, ie, d;
|
|
|
196
196
|
this.code = e.Code.Python;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
e.Python =
|
|
199
|
+
e.Python = O;
|
|
200
200
|
class J extends t {
|
|
201
201
|
constructor(u, h) {
|
|
202
202
|
super(e.Code.Timeout, e.Label.Timeout, u, h);
|
|
@@ -207,84 +207,84 @@ var ke, ie, d;
|
|
|
207
207
|
}
|
|
208
208
|
e.Timeout = J;
|
|
209
209
|
})(d || (d = {}));
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
for (let e = 0; e <
|
|
214
|
-
const t =
|
|
215
|
-
|
|
210
|
+
const T = {};
|
|
211
|
+
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;
|
|
212
|
+
const at = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map(), it = /* @__PURE__ */ new Map(), lt = /* @__PURE__ */ new Map(), Me = Object.keys(T);
|
|
213
|
+
for (let e = 0; e < Me.length; e++) {
|
|
214
|
+
const t = Me[e], n = T[t];
|
|
215
|
+
it.set(d.Label[t], n), lt.set(d.Code[t], n);
|
|
216
216
|
const r = new n();
|
|
217
|
-
|
|
217
|
+
at.set(r.getLabel(), r), Ie.set(r.getCode(), r);
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
var
|
|
221
|
-
(
|
|
219
|
+
const Tt = Ie.get(d.Code.Unknown);
|
|
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) => at.get(e), v.newTypedError = (e, t, n) => {
|
|
222
222
|
let r;
|
|
223
|
-
return r = typeof e == "string" ?
|
|
224
|
-
},
|
|
223
|
+
return r = typeof e == "string" ? it.get(e) : lt.get(e), r || (r = v.Unknown), new r(t, n);
|
|
224
|
+
}, v.getBuiltInById = (e) => Ie.get(e) || Tt;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.22
|
|
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
|
|
231
|
+
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) => {
|
|
232
232
|
if (e === t) return !0;
|
|
233
233
|
if (!e || !t || e.length !== t.length) return !1;
|
|
234
|
-
for (let n = 0; n < e.length; n++) if (!
|
|
234
|
+
for (let n = 0; n < e.length; n++) if (!ve(e[n], t[n])) return !1;
|
|
235
235
|
return !0;
|
|
236
|
-
},
|
|
236
|
+
}, ye = (e, t, n) => {
|
|
237
237
|
if (!e && !t) return null;
|
|
238
238
|
if (!e) return n ? t : { ...t };
|
|
239
239
|
if (!t) return n ? e : { ...e };
|
|
240
240
|
const r = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), a = Math.max(e.colEnd, t.colEnd), i = Math.max(e.rowEnd, t.rowEnd);
|
|
241
241
|
let l = n;
|
|
242
242
|
return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
|
|
243
|
-
},
|
|
243
|
+
}, $e = (e, t) => {
|
|
244
244
|
if (!t || t.length === 0) return e;
|
|
245
245
|
const n = { ...e };
|
|
246
246
|
for (let r = 0; r < t.length; r++) {
|
|
247
247
|
const o = t[r];
|
|
248
|
-
|
|
248
|
+
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));
|
|
249
249
|
}
|
|
250
250
|
return n;
|
|
251
|
-
},
|
|
251
|
+
}, Rt = [null, null], kt = (e, t, n) => {
|
|
252
252
|
if (e[0].value === e[1].value) return t;
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function ze(e, t = 2, n, r = P.Row, o) {
|
|
255
255
|
let a = [...e];
|
|
256
256
|
if (t <= 0 || e.length <= 1) return a;
|
|
257
|
-
let i = r ===
|
|
257
|
+
let i = r === P.Column, l = 0, c = !1;
|
|
258
258
|
do {
|
|
259
|
-
const p = a.sort(
|
|
259
|
+
const p = a.sort(ut(i ? P.Row : P.Column));
|
|
260
260
|
a = [], a.push(p[0]);
|
|
261
261
|
const w = p.length;
|
|
262
|
-
let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd,
|
|
263
|
-
for (let
|
|
264
|
-
const
|
|
262
|
+
let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd, U = f.rowEnd;
|
|
263
|
+
for (let B = 1; B < w; B++) {
|
|
264
|
+
const O = p[B];
|
|
265
265
|
let J = !1;
|
|
266
|
-
if (J = i ? f && x ===
|
|
267
|
-
let
|
|
268
|
-
if (f.value !== void 0 && (
|
|
266
|
+
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) {
|
|
267
|
+
let b = { colStart: y, rowStart: x, colEnd: i ? O.colEnd : A, rowEnd: i ? U : O.rowEnd };
|
|
268
|
+
if (f.value !== void 0 && (b.value = f.value), n) {
|
|
269
269
|
const u = o ?? [null, null];
|
|
270
|
-
u[0] = f, u[1] =
|
|
270
|
+
u[0] = f, u[1] = O, b = n(u, b, r);
|
|
271
271
|
}
|
|
272
|
-
if (
|
|
273
|
-
a[g] =
|
|
272
|
+
if (b) {
|
|
273
|
+
a[g] = b, c = !0, f = b, y = f.colStart, x = f.rowStart, A = f.colEnd, U = f.rowEnd;
|
|
274
274
|
continue;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
a[++g] =
|
|
277
|
+
a[++g] = O, f = O, y = f.colStart, x = f.rowStart, A = f.colEnd, U = f.rowEnd;
|
|
278
278
|
}
|
|
279
279
|
l++, i = !i, l === 1 && (c = !0);
|
|
280
280
|
} while (l < t && c && a.length > 1);
|
|
281
281
|
return a;
|
|
282
282
|
}
|
|
283
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell:
|
|
283
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange: Ot, cellToRange: (e, t) => {
|
|
284
284
|
if (!e) return null;
|
|
285
285
|
let n = t;
|
|
286
286
|
return n || (n = { ...e }, delete n.colIndex, delete n.rowIndex), n.colStart = e.colIndex ?? 0, n.rowStart = e.rowIndex ?? 0, n.colEnd = e.colIndex ?? 0, n.rowEnd = e.rowIndex ?? 0, n;
|
|
287
|
-
}, columnFirstCellComparator:
|
|
287
|
+
}, 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) => {
|
|
288
288
|
const n = [];
|
|
289
289
|
let r, o, a = Number.MIN_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
290
290
|
return { append: (l, c, p) => {
|
|
@@ -298,15 +298,15 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: vt, EmptyRange
|
|
|
298
298
|
r && n.push(r);
|
|
299
299
|
const f = t ? l : c, y = t ? c : l;
|
|
300
300
|
r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i = c, o = p;
|
|
301
|
-
}, done: (l) => (r && (n.push(r), r = null), l ?
|
|
302
|
-
}, createRangeComparator:
|
|
301
|
+
}, done: (l) => (r && (n.push(r), r = null), l ? ze(n, 3, l === !0 ? kt : l, t ? P.Column : P.Row, Rt) : n) };
|
|
302
|
+
}, 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) => {
|
|
303
303
|
if (!t || t.length === 0) return e;
|
|
304
304
|
let n = e, r = null;
|
|
305
|
-
for (; !
|
|
305
|
+
for (; !ve(n, r); ) r = n, n = $e(r, t);
|
|
306
306
|
return n;
|
|
307
307
|
}, indexOfCoords: (e, t) => {
|
|
308
308
|
const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
|
|
309
|
-
for (let r = t.length - 1; r >= 0; r--) if (
|
|
309
|
+
for (let r = t.length - 1; r >= 0; r--) if (Te(n, t[r])) return r;
|
|
310
310
|
return -1;
|
|
311
311
|
}, intersectRanges: (e, t, n) => {
|
|
312
312
|
if (!e) return n ? t : { ...t };
|
|
@@ -321,58 +321,58 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: vt, EmptyRange
|
|
|
321
321
|
if (n < t.rowStart || n > t.rowEnd) return !1;
|
|
322
322
|
const r = e.colIndex;
|
|
323
323
|
return !(r < t.colStart || r > t.colEnd);
|
|
324
|
-
}, isEqualCells:
|
|
324
|
+
}, 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) => {
|
|
325
325
|
if (!e || e.length === 0) return null;
|
|
326
326
|
if (e.length === 1 && !t) return e[0];
|
|
327
327
|
let r = e[0];
|
|
328
|
-
for (let o = 1; o < e.length; o++) r =
|
|
329
|
-
return t && (r =
|
|
328
|
+
for (let o = 1; o < e.length; o++) r = ye(r, e[o], n);
|
|
329
|
+
return t && (r = ye(r, t, n)), r;
|
|
330
330
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
331
|
-
const S = { html: "text/html", plain: "text/plain", png: "image/png" },
|
|
332
|
-
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds:
|
|
333
|
-
function
|
|
331
|
+
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 });
|
|
332
|
+
Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Mt, EmptyRect: At, EmptyTopLeft: Lt }, Symbol.toStringTag, { value: "Module" }));
|
|
333
|
+
function jt(e) {
|
|
334
334
|
const t = Object.prototype.toString.call(e);
|
|
335
335
|
return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
|
|
336
|
-
return n.$$typeof ===
|
|
336
|
+
return n.$$typeof === Pt;
|
|
337
337
|
})(e);
|
|
338
338
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
339
|
+
const Pt = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
340
|
+
function Ft(e) {
|
|
341
341
|
return /* @__PURE__ */ (function(t) {
|
|
342
342
|
return !!t && typeof t == "object";
|
|
343
|
-
})(e) && !
|
|
343
|
+
})(e) && !jt(e);
|
|
344
344
|
}
|
|
345
345
|
function re(e, t) {
|
|
346
346
|
return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
|
|
347
347
|
var n;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Dt(e, t, n) {
|
|
350
350
|
return e.concat(t).map(function(r) {
|
|
351
351
|
return re(r, n);
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Ke(e) {
|
|
355
355
|
return Object.keys(e).concat((function(t) {
|
|
356
356
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
|
|
357
357
|
return Object.propertyIsEnumerable.call(t, n);
|
|
358
358
|
}) : [];
|
|
359
359
|
})(e));
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ve(e, t) {
|
|
362
362
|
try {
|
|
363
363
|
return t in e;
|
|
364
364
|
} catch {
|
|
365
365
|
return !1;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Ut(e, t, n) {
|
|
369
369
|
const r = {};
|
|
370
|
-
return n.isMergeableObject(e) &&
|
|
370
|
+
return n.isMergeableObject(e) && Ke(e).forEach(function(o) {
|
|
371
371
|
r[o] = re(e[o], n);
|
|
372
|
-
}),
|
|
372
|
+
}), Ke(t).forEach(function(o) {
|
|
373
373
|
(function(a, i) {
|
|
374
|
-
return
|
|
375
|
-
})(e, o) || (
|
|
374
|
+
return Ve(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
|
|
375
|
+
})(e, o) || (Ve(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(a, i) {
|
|
376
376
|
if (!i.customMerge) return Y;
|
|
377
377
|
const l = i.customMerge(a);
|
|
378
378
|
return typeof l == "function" ? l : Y;
|
|
@@ -380,9 +380,9 @@ function Ft(e, t, n) {
|
|
|
380
380
|
}), r;
|
|
381
381
|
}
|
|
382
382
|
function Y(e, t, n) {
|
|
383
|
-
(n = n || {}).arrayMerge = n.arrayMerge ||
|
|
383
|
+
(n = n || {}).arrayMerge = n.arrayMerge || Dt, n.isMergeableObject = n.isMergeableObject || Ft, n.cloneUnlessOtherwiseSpecified = re;
|
|
384
384
|
const r = Array.isArray(t);
|
|
385
|
-
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) :
|
|
385
|
+
return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Ut(e, t, n) : re(t, n);
|
|
386
386
|
}
|
|
387
387
|
Y.all = function(e, t) {
|
|
388
388
|
if (!Array.isArray(e)) throw new Error("first argument should be an array");
|
|
@@ -390,12 +390,12 @@ Y.all = function(e, t) {
|
|
|
390
390
|
return Y(n, r, t);
|
|
391
391
|
}, {});
|
|
392
392
|
};
|
|
393
|
-
const
|
|
393
|
+
const ge = Object.freeze([]), Bt = Object.freeze({}), qe = (e) => e, fe = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
394
394
|
let t = 16 * Math.random() | 0;
|
|
395
395
|
return (e === "x" ? t : 3 & t | 8).toString(16);
|
|
396
|
-
}),
|
|
397
|
-
e[t] && typeof e[t] == "object" ?
|
|
398
|
-
}), Object.keys(e).length === 0 ? null : e),
|
|
396
|
+
}), $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) {
|
|
397
|
+
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];
|
|
398
|
+
}), Object.keys(e).length === 0 ? null : e), zt = (e, t) => !(e !== t && !dt(e, t)) || !!e.isEqual?.(t), pt = (e, t, n = zt) => {
|
|
399
399
|
if (e == null || e === t) return null;
|
|
400
400
|
if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return n(e, t) ? null : e;
|
|
401
401
|
const r = Object.keys(e);
|
|
@@ -403,28 +403,28 @@ const we = Object.freeze([]), Dt = Object.freeze({}), Ke = (e) => e, de = () =>
|
|
|
403
403
|
let o = !1;
|
|
404
404
|
for (let a = 0; a < r.length; a++) {
|
|
405
405
|
const i = r[a];
|
|
406
|
-
|
|
406
|
+
pt(e[i], t?.[i], n) === null && (o = !0, delete e[i]);
|
|
407
407
|
}
|
|
408
408
|
return o && Object.keys(e).length === 0 ? null : void 0;
|
|
409
|
-
},
|
|
410
|
-
if (
|
|
409
|
+
}, 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 = () => {
|
|
410
|
+
if (ht()) return k.Node;
|
|
411
411
|
const e = globalThis.navigator !== void 0 && globalThis.navigator.userAgent ? globalThis.navigator.userAgent.toLowerCase() : "";
|
|
412
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;
|
|
413
413
|
};
|
|
414
|
-
function
|
|
414
|
+
function ht() {
|
|
415
415
|
return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
|
|
416
416
|
}
|
|
417
|
-
const
|
|
417
|
+
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) {
|
|
418
418
|
const r = e.slice();
|
|
419
419
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
420
420
|
}, asNumber: (e) => {
|
|
421
|
-
const t =
|
|
421
|
+
const t = $t(e);
|
|
422
422
|
return Number.isFinite(t) ? t : 0;
|
|
423
423
|
}, camelToPrettyCase: (e) => e.length === 1 ? e.toUpperCase() : e.replace(/([A-Z])/g, " $1").replace(/^./, function(t) {
|
|
424
424
|
return t.toUpperCase();
|
|
425
|
-
}).trim(), canUseDOM:
|
|
425
|
+
}).trim(), canUseDOM: Je, cancelTimeout: (e) => {
|
|
426
426
|
cancelAnimationFrame(e.id);
|
|
427
|
-
}, 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) => We(e) ? e : JSON.parse(JSON.stringify(e)), consoleWithNoSource: (...e) => new Promise((t) => {
|
|
428
428
|
setTimeout(() => {
|
|
429
429
|
Function("console.log.apply(console, arguments)").apply(null, e), t();
|
|
430
430
|
});
|
|
@@ -494,7 +494,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
494
494
|
l !== c && (n[i] = l === void 0 ? c : l);
|
|
495
495
|
}
|
|
496
496
|
return Object.keys(n).length === 0 ? null : n;
|
|
497
|
-
}, findEqualOrGreater: function(e, t, n =
|
|
497
|
+
}, findEqualOrGreater: function(e, t, n = qe) {
|
|
498
498
|
let r = 0, o = e.length - 1;
|
|
499
499
|
for (; r <= o; ) {
|
|
500
500
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -502,7 +502,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
502
502
|
i < t ? r = a + 1 : o = a - 1;
|
|
503
503
|
}
|
|
504
504
|
return r;
|
|
505
|
-
}, findEqualOrLesser: function(e, t, n =
|
|
505
|
+
}, findEqualOrLesser: function(e, t, n = qe) {
|
|
506
506
|
let r = e.length - 1, o = 0;
|
|
507
507
|
for (; r >= o; ) {
|
|
508
508
|
let a = Math.floor((r + o) / 2), i = n(e[a]);
|
|
@@ -527,17 +527,17 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
527
527
|
r = i;
|
|
528
528
|
}
|
|
529
529
|
return r ?? null;
|
|
530
|
-
}, getOS: oe, hasFocus:
|
|
530
|
+
}, 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) => {
|
|
531
531
|
if (e === t) return !0;
|
|
532
532
|
if (e && !t || t && !e) return !1;
|
|
533
533
|
const n = Object.keys(e);
|
|
534
534
|
if (n.length !== Object.keys(t).length) return !1;
|
|
535
535
|
for (let r = 0; r < n.length; r++) if (e[n[r]] !== t[n[r]]) return !1;
|
|
536
536
|
return !0;
|
|
537
|
-
}, isNode:
|
|
537
|
+
}, isNode: ht, isNullOrUndefined: We, isNumeric: (e) => {
|
|
538
538
|
const t = 1 * e;
|
|
539
539
|
return Number.isFinite(t) && typeof t == "number";
|
|
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:
|
|
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: Ye, mergeContentful: (...e) => {
|
|
541
541
|
const t = e.length;
|
|
542
542
|
if (t > 0 && e[t - 1] !== void 0 && !ne(e[t - 1])) return e[t - 1];
|
|
543
543
|
let n = e[0] || {};
|
|
@@ -550,7 +550,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
550
550
|
e();
|
|
551
551
|
});
|
|
552
552
|
}, openFileDialog: (e = "*.*") => new Promise((t, n) => {
|
|
553
|
-
if (!
|
|
553
|
+
if (!Je) return void n("Unable to open dialog with no dom.");
|
|
554
554
|
const r = document.createElement("input");
|
|
555
555
|
r.type = "file", r.accept = e;
|
|
556
556
|
let o = null, a = !1;
|
|
@@ -571,17 +571,17 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
571
571
|
return function(o) {
|
|
572
572
|
t = o, t && t.persist && t.persist(), n || (n = !0, requestAnimationFrame(r));
|
|
573
573
|
};
|
|
574
|
-
}, removeEmptyProperties:
|
|
575
|
-
if (!e) return
|
|
574
|
+
}, removeEmptyProperties: ft, removeEqualValues: pt, removeListenerAll: (e) => {
|
|
575
|
+
if (!e) return ge;
|
|
576
576
|
const t = e.length;
|
|
577
577
|
for (let n = 0; n < t; n++) {
|
|
578
578
|
const r = e[n];
|
|
579
579
|
r && r();
|
|
580
580
|
}
|
|
581
|
-
return
|
|
581
|
+
return ge;
|
|
582
582
|
}, requestTimeout: (e, t) => {
|
|
583
|
-
const n =
|
|
584
|
-
|
|
583
|
+
const n = Ge(), r = { id: requestAnimationFrame(function o() {
|
|
584
|
+
Ge() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
|
|
585
585
|
}) };
|
|
586
586
|
return r;
|
|
587
587
|
}, roundAccurately: (e, t = 0) => {
|
|
@@ -608,7 +608,7 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
608
608
|
return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(n + 1)), fpLength: a };
|
|
609
609
|
}, subtractRect: (e, t, n = !1) => {
|
|
610
610
|
if (!t) return [e];
|
|
611
|
-
if (!
|
|
611
|
+
if (!Ye(e, t)) return [];
|
|
612
612
|
const r = [];
|
|
613
613
|
let o = e;
|
|
614
614
|
const a = () => {
|
|
@@ -641,22 +641,22 @@ const Ye = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
|
|
|
641
641
|
for (let o = 0; o < n; o++) r[o] = Array(t);
|
|
642
642
|
for (let o = 0; o < t; o++) for (let a = 0; a < n; a++) r[a][o] = e[o][a];
|
|
643
643
|
return r;
|
|
644
|
-
}, uuidV4:
|
|
644
|
+
}, uuidV4: fe, validEnumValue: (e, t) => {
|
|
645
645
|
if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
|
|
646
646
|
}, whenFocus: async (e, t = !1) => new Promise((n) => {
|
|
647
|
-
|
|
647
|
+
He(e, t) ? n(!0) : e.addEventListener("focusin", () => {
|
|
648
648
|
n(!0);
|
|
649
649
|
}, { once: !0 }), e.focus();
|
|
650
650
|
}) }, Symbol.toStringTag, { value: "Module" }));
|
|
651
651
|
Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
|
|
652
|
-
const
|
|
652
|
+
const mt = (e) => {
|
|
653
653
|
const t = new Uint8Array(e), n = t.byteLength;
|
|
654
654
|
let r = "";
|
|
655
655
|
for (let o = 0; o < n; o++) r += String.fromCharCode(t[o]);
|
|
656
656
|
if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(r);
|
|
657
657
|
if (typeof Buffer < "u") return Buffer.from(r, "binary").toString("base64");
|
|
658
658
|
throw new Error("Unsupported environment");
|
|
659
|
-
},
|
|
659
|
+
}, _e = (e) => new Promise((t, n) => {
|
|
660
660
|
if (e) if (typeof FileReader < "u") {
|
|
661
661
|
const r = new FileReader();
|
|
662
662
|
r.onload = () => {
|
|
@@ -674,12 +674,12 @@ const pt = (e) => {
|
|
|
674
674
|
} else n(new Error("Unsupported environment"));
|
|
675
675
|
else t("");
|
|
676
676
|
});
|
|
677
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64:
|
|
677
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: mt, base64ToArrayBuffer: (e) => {
|
|
678
678
|
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);
|
|
679
679
|
for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
|
|
680
680
|
return r.buffer;
|
|
681
|
-
}, blobToString:
|
|
682
|
-
const
|
|
681
|
+
}, blobToString: _e }, Symbol.toStringTag, { value: "Module" }));
|
|
682
|
+
const wt = "data:image/png;base64,", yt = "Unable to resolve image.", Xe = (e) => new Promise(async (t, n) => {
|
|
683
683
|
let r = null;
|
|
684
684
|
try {
|
|
685
685
|
r = new Image(), r.src = e, r.addEventListener("load", function() {
|
|
@@ -690,9 +690,9 @@ const ht = "data:image/png;base64,", mt = "Unable to resolve image.", Je = (e) =
|
|
|
690
690
|
} catch {
|
|
691
691
|
r?.src && URL.revokeObjectURL(r.src);
|
|
692
692
|
}
|
|
693
|
-
r || n(
|
|
694
|
-
}),
|
|
695
|
-
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX:
|
|
693
|
+
r || n(yt);
|
|
694
|
+
}), be = "image/svg+xml";
|
|
695
|
+
Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: wt, getImageDataUrl: (e, t = 1) => new Promise(async (n, r) => {
|
|
696
696
|
let o = null;
|
|
697
697
|
try {
|
|
698
698
|
o = new Image(), o.src = e, o.addEventListener("load", function() {
|
|
@@ -710,27 +710,27 @@ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: ht,
|
|
|
710
710
|
} catch {
|
|
711
711
|
o?.src && URL.revokeObjectURL(o.src);
|
|
712
712
|
}
|
|
713
|
-
o || r(
|
|
713
|
+
o || r(yt);
|
|
714
714
|
}), loadImageDetails: async (e, t = null) => {
|
|
715
715
|
let n = null;
|
|
716
716
|
const r = async () => {
|
|
717
717
|
try {
|
|
718
|
-
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await
|
|
718
|
+
const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await Xe(i);
|
|
719
719
|
n = { mimeType: a, naturalSize: l, asUrl: i };
|
|
720
720
|
} catch {
|
|
721
721
|
}
|
|
722
722
|
}, o = async () => {
|
|
723
723
|
try {
|
|
724
|
-
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type:
|
|
725
|
-
n = { mimeType: t ??
|
|
724
|
+
const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type: be })), l = await Xe(i);
|
|
725
|
+
n = { mimeType: t ?? be, naturalSize: l, asUrl: i, asSVGText: a };
|
|
726
726
|
} catch {
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
|
-
if (t ===
|
|
729
|
+
if (t === be ? await o() : t.startsWith("image/") ? await r() : (await r(), n || await o()), !n) throw new Error("Failed to load image");
|
|
730
730
|
return n;
|
|
731
731
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
732
|
-
var
|
|
733
|
-
(
|
|
732
|
+
var Ze, Qe;
|
|
733
|
+
(Qe = Ze || (Ze = {})).resolveTypedUpdates = (e, t, n, r) => {
|
|
734
734
|
if (e === null) return e;
|
|
735
735
|
if (e === void 0) return r;
|
|
736
736
|
let o = e;
|
|
@@ -754,26 +754,26 @@ var He, Xe;
|
|
|
754
754
|
let f, y = o[g];
|
|
755
755
|
if (y !== void 0) {
|
|
756
756
|
const x = a[g];
|
|
757
|
-
f = x ? (0,
|
|
757
|
+
f = x ? (0, Qe.resolveTypedUpdates)(y, x, n, r?.[g]) : y;
|
|
758
758
|
} else f = r?.[g];
|
|
759
759
|
f != null && (l = l ?? {}, l[g] = f);
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
return l;
|
|
763
763
|
};
|
|
764
|
-
const
|
|
764
|
+
const et = \`The Safari browser does not support advanced copy and paste.
|
|
765
765
|
Copy and paste will be limited to within the browser tab.
|
|
766
766
|
|
|
767
|
-
Please use Chrome or Edge if external copy and paste is required.\`,
|
|
768
|
-
All copy and paste operations will be limited to the browser tab.\`,
|
|
767
|
+
Please use Chrome or Edge if external copy and paste is required.\`, Ee = \`You do not have permissions to access the clipboard.
|
|
768
|
+
All copy and paste operations will be limited to the browser tab.\`, gt = { Safari: \`The Safari browser does not support advanced copy and paste.
|
|
769
769
|
Copy and paste will be limited to within the browser tab.
|
|
770
770
|
|
|
771
|
-
Please use Chrome or Edge if external copy and paste is required.\`, Perms:
|
|
771
|
+
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) => {
|
|
772
772
|
document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
|
|
773
773
|
e();
|
|
774
774
|
}, { once: !0 }), document.activeElement.focus?.();
|
|
775
|
-
}),
|
|
776
|
-
if (oe() === k.Safari) return await n(new Error(
|
|
775
|
+
}), xe = async (e, t, n) => {
|
|
776
|
+
if (oe() === k.Safari) return await n(new Error(gt.Safari));
|
|
777
777
|
try {
|
|
778
778
|
const r = async (i) => {
|
|
779
779
|
try {
|
|
@@ -788,15 +788,15 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ge,
|
|
|
788
788
|
} catch (r) {
|
|
789
789
|
return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
|
|
790
790
|
}
|
|
791
|
-
},
|
|
791
|
+
}, bt = async (e) => {
|
|
792
792
|
try {
|
|
793
793
|
return await e.read({ unsanitized: [S.html] });
|
|
794
794
|
} catch {
|
|
795
795
|
}
|
|
796
796
|
return await e.read();
|
|
797
|
-
},
|
|
797
|
+
}, Vt = async (e, t) => {
|
|
798
798
|
if (!e) return null;
|
|
799
|
-
const n = await
|
|
799
|
+
const n = await bt(e);
|
|
800
800
|
let r = !1;
|
|
801
801
|
for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
|
|
802
802
|
return await n[o].getType(t);
|
|
@@ -827,9 +827,9 @@ if (!globalThis.ClipboardItem) {
|
|
|
827
827
|
}
|
|
828
828
|
globalThis.ClipboardItem = t;
|
|
829
829
|
}
|
|
830
|
-
const
|
|
830
|
+
const Oe = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
831
831
|
try {
|
|
832
|
-
const o = await
|
|
832
|
+
const o = await Vt(e, t);
|
|
833
833
|
if (o) {
|
|
834
834
|
const a = new FileReader();
|
|
835
835
|
a.onload = () => {
|
|
@@ -841,8 +841,8 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
841
841
|
} catch (o) {
|
|
842
842
|
r(o);
|
|
843
843
|
}
|
|
844
|
-
}),
|
|
845
|
-
const n = await
|
|
844
|
+
}), tt = async (e, t = S.html) => {
|
|
845
|
+
const n = await Oe(e, t);
|
|
846
846
|
if (!n) return null;
|
|
847
847
|
let r = null;
|
|
848
848
|
try {
|
|
@@ -851,9 +851,9 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
851
851
|
console.warn("Can't parse html from clipboard.");
|
|
852
852
|
}
|
|
853
853
|
return r;
|
|
854
|
-
},
|
|
854
|
+
}, qt = async (e) => {
|
|
855
855
|
e && await e.writeText("");
|
|
856
|
-
}, ae = "clipboard-uuid", Q = "web text/uuid",
|
|
856
|
+
}, ae = "clipboard-uuid", Q = "web text/uuid", nt = (e) => \`<div style="display:none" \${ae}="\${e}"/>\`, Gt = (e, t) => {
|
|
857
857
|
let n = null;
|
|
858
858
|
try {
|
|
859
859
|
const r = new DOMParser().parseFromString(t, S.html);
|
|
@@ -862,7 +862,7 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
862
862
|
console.warn("Can't embed uuid.", r);
|
|
863
863
|
}
|
|
864
864
|
return n;
|
|
865
|
-
},
|
|
865
|
+
}, rt = (e, t) => {
|
|
866
866
|
if (!t || !e) return !1;
|
|
867
867
|
try {
|
|
868
868
|
const n = t.querySelectorAll(\`[\${ae}="\${e}"]\`);
|
|
@@ -873,7 +873,7 @@ const Te = async (e, t = S.html) => new Promise(async (n, r) => {
|
|
|
873
873
|
return !1;
|
|
874
874
|
}
|
|
875
875
|
};
|
|
876
|
-
class
|
|
876
|
+
class ot {
|
|
877
877
|
constructor(t) {
|
|
878
878
|
if (t?.nativeClipboard === void 0 || t?.nativeClipboard === !0) try {
|
|
879
879
|
this._nativeClipboard = globalThis?.navigator.clipboard;
|
|
@@ -884,12 +884,12 @@ class nt {
|
|
|
884
884
|
this._disableCheckOnFocus = t?.disableCheckOnFocus ?? !1, this._init();
|
|
885
885
|
}
|
|
886
886
|
async _checkForChanges() {
|
|
887
|
-
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await
|
|
888
|
-
await
|
|
889
|
-
const t = await
|
|
887
|
+
this._nativeClipboard && this._state && !this._disableCheckOnFocus && await xe("clipboard-read", async () => {
|
|
888
|
+
await Se();
|
|
889
|
+
const t = await Oe(this._nativeClipboard, Q);
|
|
890
890
|
if (!this._state || t && t === this._state.uuid) return !0;
|
|
891
|
-
const n = await
|
|
892
|
-
return !this._state || (
|
|
891
|
+
const n = await tt(this._nativeClipboard, S.html);
|
|
892
|
+
return !this._state || (rt(this._state.uuid, n) || this.clear(), !0);
|
|
893
893
|
}, async (t) => {
|
|
894
894
|
t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
|
|
895
895
|
});
|
|
@@ -907,20 +907,20 @@ class nt {
|
|
|
907
907
|
async read() {
|
|
908
908
|
if (!this._nativeClipboard) return this._state?.items ?? null;
|
|
909
909
|
const t = this;
|
|
910
|
-
return await
|
|
911
|
-
if (await
|
|
912
|
-
const n = await
|
|
910
|
+
return await xe("clipboard-read", async () => {
|
|
911
|
+
if (await Se(), this._state?.uuid) {
|
|
912
|
+
const n = await Oe(this._nativeClipboard, Q);
|
|
913
913
|
if (n && n === t._state.uuid) return !0;
|
|
914
|
-
const r = await
|
|
915
|
-
if (
|
|
914
|
+
const r = await tt(this._nativeClipboard, S.html);
|
|
915
|
+
if (rt(t._state?.uuid, r)) return !0;
|
|
916
916
|
}
|
|
917
|
-
return t._state = { items: await
|
|
917
|
+
return t._state = { items: await bt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
|
|
918
918
|
}, async (n) => {
|
|
919
919
|
this.dispatchEvent(new Event("clipboarderrorread"));
|
|
920
920
|
}), this._state?.items ?? [];
|
|
921
921
|
}
|
|
922
922
|
async write(t) {
|
|
923
|
-
return this._write({ uuid:
|
|
923
|
+
return this._write({ uuid: fe(), items: t, ref: null });
|
|
924
924
|
}
|
|
925
925
|
async _write(t) {
|
|
926
926
|
if (!this._nativeClipboard) return this._state = t, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
|
|
@@ -929,27 +929,27 @@ class nt {
|
|
|
929
929
|
const i = () => {
|
|
930
930
|
n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
|
|
931
931
|
};
|
|
932
|
-
await
|
|
933
|
-
await
|
|
932
|
+
await xe("clipboard-write", async () => {
|
|
933
|
+
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 }) })));
|
|
934
934
|
for (let l = 0; l < Math.min(1, a.length); l++) {
|
|
935
935
|
const c = a[l];
|
|
936
936
|
let p = c.types.indexOf(S.html), w = null;
|
|
937
937
|
if (p !== -1) {
|
|
938
938
|
const y = await c.getType(S.html);
|
|
939
|
-
w = await
|
|
939
|
+
w = await _e(y), w && (w = Gt(o, w));
|
|
940
940
|
}
|
|
941
941
|
if (!w && c.types.includes(S.plain)) {
|
|
942
942
|
const y = await c.getType(S.plain);
|
|
943
943
|
if (y) {
|
|
944
944
|
let x = null;
|
|
945
|
-
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await
|
|
945
|
+
typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await _e(y), x && (w = \`<div \${ae}="\${o}">\${x}</div>\`);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
if (!w && c.types.includes(S.png)) {
|
|
949
|
-
const y = await c.getType(S.png), x =
|
|
950
|
-
w = \`<div \${ae}="\${o}"><img src="\${
|
|
949
|
+
const y = await c.getType(S.png), x = mt(await y.arrayBuffer());
|
|
950
|
+
w = \`<div \${ae}="\${o}"><img src="\${wt + x}"/></div>\`;
|
|
951
951
|
}
|
|
952
|
-
!w && o && (w =
|
|
952
|
+
!w && o && (w = nt(o));
|
|
953
953
|
const g = new Blob([w ?? ""], { type: S.html }), f = {};
|
|
954
954
|
for (let y = 0; y < c.types.length; y++) {
|
|
955
955
|
const x = c.types[y];
|
|
@@ -958,7 +958,7 @@ class nt {
|
|
|
958
958
|
w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), r.push(new ClipboardItem(f));
|
|
959
959
|
}
|
|
960
960
|
try {
|
|
961
|
-
r && r.length !== 0 ? await this._nativeClipboard.write(r) : await
|
|
961
|
+
r && r.length !== 0 ? await this._nativeClipboard.write(r) : await qt(this._nativeClipboard);
|
|
962
962
|
} catch (l) {
|
|
963
963
|
l.message?.includes("Document is not focused") || console.warn("Unable to write to native clipboard: ", l);
|
|
964
964
|
}
|
|
@@ -989,7 +989,7 @@ class nt {
|
|
|
989
989
|
} catch (a) {
|
|
990
990
|
n = a, console.warn("export to png", a);
|
|
991
991
|
}
|
|
992
|
-
const o = this._write({ uuid:
|
|
992
|
+
const o = this._write({ uuid: fe(), ref: t, items: Object.keys(r).length > 0 ? [new ClipboardItem(r)] : null });
|
|
993
993
|
if (n) throw n;
|
|
994
994
|
return o;
|
|
995
995
|
}
|
|
@@ -1015,7 +1015,7 @@ class nt {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
async writeText(t) {
|
|
1017
1017
|
const n = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
|
|
1018
|
-
return this._write({ uuid:
|
|
1018
|
+
return this._write({ uuid: fe(), items: n, ref: null });
|
|
1019
1019
|
}
|
|
1020
1020
|
addEventListener(t, n, r = {}) {
|
|
1021
1021
|
const o = r?.capture ? this._listenersCapture : this._listeners;
|
|
@@ -1044,40 +1044,40 @@ class nt {
|
|
|
1044
1044
|
globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
var
|
|
1048
|
-
(
|
|
1049
|
-
const
|
|
1050
|
-
let ee = null,
|
|
1051
|
-
async function
|
|
1047
|
+
var Ce;
|
|
1048
|
+
(Ce = ot || (ot = {})).ErrorMessages = gt, Ce.Global = new Ce();
|
|
1049
|
+
const Wt = "__SHEETXL";
|
|
1050
|
+
let ee = null, se = null;
|
|
1051
|
+
async function Yt() {
|
|
1052
1052
|
if (ee)
|
|
1053
1053
|
return ee;
|
|
1054
|
-
if (
|
|
1055
|
-
if (await
|
|
1054
|
+
if (se) {
|
|
1055
|
+
if (await se, !ee)
|
|
1056
1056
|
throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
1057
1057
|
return ee;
|
|
1058
1058
|
}
|
|
1059
1059
|
let e, t;
|
|
1060
|
-
|
|
1060
|
+
se = new Promise((n, r) => {
|
|
1061
1061
|
e = n, t = r;
|
|
1062
1062
|
});
|
|
1063
1063
|
try {
|
|
1064
1064
|
const { initialize: n } = await Promise.resolve().then(function() {
|
|
1065
|
-
return
|
|
1065
|
+
return ln;
|
|
1066
1066
|
});
|
|
1067
1067
|
return ee = await n(), e(), ee;
|
|
1068
1068
|
} catch (n) {
|
|
1069
|
-
throw console.error("Failed to import or initialize esbuild:", n),
|
|
1069
|
+
throw console.error("Failed to import or initialize esbuild:", n), se = null, t(n), n;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
const
|
|
1072
|
+
const Jt = {
|
|
1073
1073
|
// ESBuild.TsconfigRaw =
|
|
1074
1074
|
compilerOptions: {
|
|
1075
1075
|
target: "esnext"
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
async function
|
|
1078
|
+
async function Ht(e, t, n = "/script.js", r = Wt) {
|
|
1079
1079
|
try {
|
|
1080
|
-
const o = await
|
|
1080
|
+
const o = await Yt(), a = "@sheetxl/primitives", i = \`
|
|
1081
1081
|
export const FormulaContext = globalThis.\${r}?.FormulaContext;
|
|
1082
1082
|
export const ScalarType = globalThis.\${r}?.ScalarType;
|
|
1083
1083
|
export const Observable = globalThis.\${r}?.Observable;
|
|
@@ -1125,7 +1125,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1125
1125
|
// TODO - later change to external and prepend when executing from ui
|
|
1126
1126
|
sourcemap: "inline",
|
|
1127
1127
|
// Generate separate source map string
|
|
1128
|
-
tsconfigRaw:
|
|
1128
|
+
tsconfigRaw: Jt,
|
|
1129
1129
|
// Pass the mapped options
|
|
1130
1130
|
minify: !0,
|
|
1131
1131
|
// sourcemap: 'external', // Generate separate source map string
|
|
@@ -1143,7 +1143,7 @@ async function Yt(e, t, n = "/script.js", r = qt) {
|
|
|
1143
1143
|
throw console.error("esbuild bundling process failed:", o), o;
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
|
-
const
|
|
1146
|
+
const Xt = \`
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Represents the completion of an asynchronous operation
|
|
1149
1149
|
*/
|
|
@@ -1156,63 +1156,63 @@ interface Promise<T> {
|
|
|
1156
1156
|
*/
|
|
1157
1157
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
1158
1158
|
}
|
|
1159
|
-
\`,
|
|
1159
|
+
\`, Zt = \`
|
|
1160
1160
|
interface FirstTest {
|
|
1161
1161
|
isTrue?: boolean;
|
|
1162
1162
|
}
|
|
1163
|
-
\`,
|
|
1163
|
+
\`, Qt = async () => Zt, Et = /* @__PURE__ */ new Map([
|
|
1164
1164
|
["IReferenceRange", "r"],
|
|
1165
1165
|
["IRange", "l"]
|
|
1166
|
-
]),
|
|
1166
|
+
]), St = /* @__PURE__ */ new Map([
|
|
1167
1167
|
["IWorkbook", "workbook"],
|
|
1168
1168
|
["ISheet", "sheet"],
|
|
1169
1169
|
["ICellRanges", "ranges"],
|
|
1170
1170
|
["ICellRange", "range"],
|
|
1171
1171
|
["IFormulaContext", "context"]
|
|
1172
|
-
]),
|
|
1172
|
+
]), Ne = (e, t) => {
|
|
1173
1173
|
Array.from(t.keys()).forEach((r) => {
|
|
1174
1174
|
const o = t.get(r);
|
|
1175
1175
|
t.set(\`\${e}.\${r}\`, o);
|
|
1176
1176
|
});
|
|
1177
|
-
},
|
|
1177
|
+
}, en = /* @__PURE__ */ new Map([
|
|
1178
1178
|
["Scalar", "*"],
|
|
1179
1179
|
["FormulaError.Known", W.Error],
|
|
1180
1180
|
["Date", "Date"],
|
|
1181
1181
|
["JSON", "JSON"]
|
|
1182
|
-
]),
|
|
1182
|
+
]), tn = /* @__PURE__ */ new Map([
|
|
1183
1183
|
// Repeating
|
|
1184
|
-
]),
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
const
|
|
1184
|
+
]), Re = "SheetXL";
|
|
1185
|
+
Ne(Re, Et);
|
|
1186
|
+
Ne(Re, St);
|
|
1187
|
+
Ne(Re, tn);
|
|
1188
|
+
const nn = /* @__PURE__ */ new Map([
|
|
1189
1189
|
["Promise", () => ({ async: !0 })],
|
|
1190
1190
|
// ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
|
|
1191
1191
|
// return { async: true };
|
|
1192
1192
|
// }],
|
|
1193
1193
|
["Observable", () => ({ stream: !0 })]
|
|
1194
1194
|
]);
|
|
1195
|
-
let
|
|
1196
|
-
async function
|
|
1197
|
-
if (
|
|
1198
|
-
return
|
|
1195
|
+
let ce = null;
|
|
1196
|
+
async function rn() {
|
|
1197
|
+
if (ce)
|
|
1198
|
+
return ce;
|
|
1199
1199
|
try {
|
|
1200
1200
|
return await (await Promise.resolve().then(function() {
|
|
1201
|
-
return
|
|
1201
|
+
return cn;
|
|
1202
1202
|
})).initialize();
|
|
1203
1203
|
} catch (e) {
|
|
1204
|
-
throw
|
|
1204
|
+
throw ce = null, e;
|
|
1205
1205
|
} finally {
|
|
1206
|
-
|
|
1206
|
+
ce = null;
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
|
-
async function
|
|
1209
|
+
async function on(e) {
|
|
1210
1210
|
const t = e?.source ?? null;
|
|
1211
1211
|
if (!t) return null;
|
|
1212
1212
|
const n = (e.disableBundle || e.declarationsOnly) ?? !1, r = [
|
|
1213
|
-
|
|
1213
|
+
Qt(),
|
|
1214
1214
|
//import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
|
|
1215
|
-
|
|
1215
|
+
rn()
|
|
1216
1216
|
], o = await Promise.all(r), a = o[0], i = o[1];
|
|
1217
1217
|
let l = "", c = null;
|
|
1218
1218
|
const p = [], w = {
|
|
@@ -1233,10 +1233,10 @@ async function nn(e) {
|
|
|
1233
1233
|
// lib: ['webworker', 'es2020', 'esnext.asynciterable'], // Use the webworker lib instead of dom
|
|
1234
1234
|
}, g = "script", f = \`\${g}.ts\`, y = "lib.d.ts", x = "global.d.ts", A = {
|
|
1235
1235
|
[f]: t,
|
|
1236
|
-
[y]:
|
|
1236
|
+
[y]: Xt,
|
|
1237
1237
|
[x]: a
|
|
1238
|
-
},
|
|
1239
|
-
getSourceFile: (s, m, L,
|
|
1238
|
+
}, U = {
|
|
1239
|
+
getSourceFile: (s, m, L, F) => i.createSourceFile(s, A[s], i.ScriptTarget.Latest, !0),
|
|
1240
1240
|
fileExists: (s) => A[s] !== void 0,
|
|
1241
1241
|
readFile: (s) => A[s],
|
|
1242
1242
|
writeFile: (s, m) => {
|
|
@@ -1249,11 +1249,11 @@ async function nn(e) {
|
|
|
1249
1249
|
getDefaultLibFileName: (s) => y,
|
|
1250
1250
|
getNewLine: () => \`
|
|
1251
1251
|
\`
|
|
1252
|
-
},
|
|
1253
|
-
|
|
1254
|
-
const u = (s, m, L,
|
|
1252
|
+
}, B = i.createProgram([f, x], w, U), O = B.getTypeChecker(), J = B.getSourceFile(f), b = B.emit();
|
|
1253
|
+
b.diagnostics.length > 0 && console.warn(b.diagnostics), l = A[\`\${g}.js\`];
|
|
1254
|
+
const u = (s, m, L, F) => {
|
|
1255
1255
|
if (!s) {
|
|
1256
|
-
|
|
1256
|
+
z(s, new Error(\`Type is not defined for '\${m?.name ?? "return"}'.\`));
|
|
1257
1257
|
return;
|
|
1258
1258
|
}
|
|
1259
1259
|
if (s.kind === i.SyntaxKind.NumberKeyword)
|
|
@@ -1263,8 +1263,8 @@ async function nn(e) {
|
|
|
1263
1263
|
else if (s.kind === i.SyntaxKind.BooleanKeyword)
|
|
1264
1264
|
m.scalar = W.Boolean;
|
|
1265
1265
|
else if (s.kind === i.SyntaxKind.UndefinedKeyword || s.kind === i.SyntaxKind.NullKeyword || s.kind === i.SyntaxKind.VoidKeyword) {
|
|
1266
|
-
if (
|
|
1267
|
-
|
|
1266
|
+
if (F) {
|
|
1267
|
+
z(s, new Error(\`'undefined' is not a valid type for input: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1268
1268
|
return;
|
|
1269
1269
|
}
|
|
1270
1270
|
m.scalar = W.Null;
|
|
@@ -1275,187 +1275,188 @@ async function nn(e) {
|
|
|
1275
1275
|
else if (s.kind === i.SyntaxKind.ArrayType) {
|
|
1276
1276
|
const M = s.elementType;
|
|
1277
1277
|
if (!M) {
|
|
1278
|
-
|
|
1278
|
+
z(s, new Error(\`'Array' must be typed: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1279
1279
|
return;
|
|
1280
1280
|
}
|
|
1281
|
-
m.arrayDepth = (m.arrayDepth ?? 0) + 1, u(M, m, L,
|
|
1281
|
+
m.arrayDepth = (m.arrayDepth ?? 0) + 1, u(M, m, L, F);
|
|
1282
1282
|
} else if (s.kind !== i.SyntaxKind.TupleType) {
|
|
1283
1283
|
if (s.kind === i.SyntaxKind.TypeReference) {
|
|
1284
|
-
const M = s.typeName?.getText?.() ?? null,
|
|
1285
|
-
let
|
|
1286
|
-
|
|
1287
|
-
const
|
|
1288
|
-
if (
|
|
1289
|
-
const
|
|
1290
|
-
if (
|
|
1291
|
-
return
|
|
1284
|
+
const M = s.typeName?.getText?.() ?? null, V = Et.get(M);
|
|
1285
|
+
let q = !1;
|
|
1286
|
+
V && (m.range = V, q = !0);
|
|
1287
|
+
const G = en.get(M);
|
|
1288
|
+
if (G && (m.scalar = G), G !== void 0 && (q = !0), F) {
|
|
1289
|
+
const N = St.get(M);
|
|
1290
|
+
if (N)
|
|
1291
|
+
return N;
|
|
1292
1292
|
} else {
|
|
1293
|
-
const
|
|
1294
|
-
if (
|
|
1295
|
-
const
|
|
1296
|
-
let
|
|
1297
|
-
if (
|
|
1298
|
-
|
|
1293
|
+
const N = nn.get(M);
|
|
1294
|
+
if (N) {
|
|
1295
|
+
const E = { ...m, ...N() };
|
|
1296
|
+
let I = 0;
|
|
1297
|
+
if (E.async && I++, E.stream && I++, I > 1) {
|
|
1298
|
+
z(s, new Error(\`'\${M}' cannot have multiple modifiers: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1299
1299
|
return;
|
|
1300
1300
|
}
|
|
1301
|
-
m =
|
|
1301
|
+
m = E, q = !0;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
if (!
|
|
1305
|
-
|
|
1304
|
+
if (!q) {
|
|
1305
|
+
z("node", new Error(\`'\${M}' is not a valid type: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1306
1306
|
return;
|
|
1307
1307
|
}
|
|
1308
1308
|
const H = s.typeArguments;
|
|
1309
1309
|
if (H) {
|
|
1310
1310
|
if (H.length !== 1) {
|
|
1311
|
-
|
|
1311
|
+
z(s, new Error(\`'\${M}' must be typed with exactly 1 type: '\${s?.parent?.name?.escapedText}'.\`));
|
|
1312
1312
|
return;
|
|
1313
1313
|
}
|
|
1314
|
-
u(H[0], m, L,
|
|
1314
|
+
u(H[0], m, L, F);
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
}, h = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Export) !== 0,
|
|
1319
|
-
|
|
1318
|
+
}, h = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Export) !== 0, pe = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Default) !== 0, $ = [], z = (s, m) => {
|
|
1319
|
+
$.push(m);
|
|
1320
1320
|
};
|
|
1321
1321
|
if (i.forEachChild(J, (s) => {
|
|
1322
1322
|
if (h(s) && i.isFunctionDeclaration(s)) {
|
|
1323
1323
|
const m = {}, L = {
|
|
1324
1324
|
parameters: {}
|
|
1325
|
-
},
|
|
1325
|
+
}, F = s?.name?.getText();
|
|
1326
1326
|
try {
|
|
1327
|
-
m.name =
|
|
1328
|
-
const
|
|
1329
|
-
if (
|
|
1330
|
-
let
|
|
1331
|
-
|
|
1327
|
+
m.name = F;
|
|
1328
|
+
const V = O.getSymbolAtLocation(s.name).getDocumentationComment(O);
|
|
1329
|
+
if (V && V.length > 0 && V[0].text) {
|
|
1330
|
+
let N = V[0].text;
|
|
1331
|
+
N = N.replace(/[\\r\\n]+/g, "\\\\n").trim(), L.summary = N;
|
|
1332
1332
|
}
|
|
1333
|
-
const V = {};
|
|
1334
|
-
u(s.type, V, m, !1), m.returnType = V;
|
|
1335
1333
|
const q = {};
|
|
1336
|
-
|
|
1334
|
+
u(s.type, q, m, !1), m.returnType = q;
|
|
1335
|
+
const G = {};
|
|
1336
|
+
pe(s) && (G.default = !0, c = F), Object.keys(G).length > 0 && (m.behavior = G), m.parameters = [];
|
|
1337
1337
|
const H = /* @__PURE__ */ new Map();
|
|
1338
|
-
for (let
|
|
1339
|
-
const
|
|
1340
|
-
|
|
1341
|
-
const X = u(
|
|
1338
|
+
for (let N = 0; N < s.parameters.length; N++) {
|
|
1339
|
+
const E = s.parameters[N], I = {};
|
|
1340
|
+
I.name = E.name?.getText();
|
|
1341
|
+
const X = u(E.type, I, m, !0);
|
|
1342
1342
|
if (X) {
|
|
1343
1343
|
if (m.parameters.length !== 0) {
|
|
1344
|
-
const
|
|
1345
|
-
|
|
1344
|
+
const ie = s?.parent?.name?.getText();
|
|
1345
|
+
z(s, new Error(\`'\${m.name}' contexts must be the first parameter: '\${ie}'.\`));
|
|
1346
1346
|
return;
|
|
1347
1347
|
}
|
|
1348
1348
|
m.context = X;
|
|
1349
1349
|
continue;
|
|
1350
1350
|
}
|
|
1351
|
-
const
|
|
1352
|
-
let
|
|
1353
|
-
if (
|
|
1351
|
+
const he = !((E.initializer === void 0 || E.initializer === null) && (E.questionToken === void 0 || E.questionToken === null));
|
|
1352
|
+
let j;
|
|
1353
|
+
if (he && (I.optional = !0, E.initializer))
|
|
1354
1354
|
try {
|
|
1355
|
-
|
|
1356
|
-
} catch (
|
|
1357
|
-
console.warn(\`Couldn't extract default value for parameter '\${
|
|
1355
|
+
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?.();
|
|
1356
|
+
} catch (C) {
|
|
1357
|
+
console.warn(\`Couldn't extract default value for parameter '\${I.name}'\`, C);
|
|
1358
1358
|
}
|
|
1359
|
-
|
|
1360
|
-
const
|
|
1361
|
-
L.parameters[
|
|
1362
|
-
const
|
|
1363
|
-
|
|
1359
|
+
E.dotDotDotToken && (I.rest = !0), m.parameters.push(I);
|
|
1360
|
+
const D = { description: "" };
|
|
1361
|
+
L.parameters[I.name] = D;
|
|
1362
|
+
const _ = O.getSymbolAtLocation(E.name).getDocumentationComment(O);
|
|
1363
|
+
_ && _.length > 0 && _[0].text && (D.description = _[0].text), j !== void 0 && (D.defaultValue = j), H.set(I.name, I);
|
|
1364
1364
|
}
|
|
1365
1365
|
if (s.jsDoc && s.jsDoc.length > 0) {
|
|
1366
|
-
const
|
|
1367
|
-
for (let
|
|
1368
|
-
const
|
|
1369
|
-
if (
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
C = Z, te.length > 0 && v === "see" && (L.links || (L.links = []), L.links.push(...te));
|
|
1366
|
+
const N = s.jsDoc, E = N.length;
|
|
1367
|
+
for (let I = 0; I < E; I++) {
|
|
1368
|
+
const X = N[I]?.tags;
|
|
1369
|
+
if (!X) continue;
|
|
1370
|
+
const he = X.length;
|
|
1371
|
+
for (let j = 0; j < he; j++) {
|
|
1372
|
+
const D = X[j];
|
|
1373
|
+
let _ = D?.tagName?.text;
|
|
1374
|
+
if (!_) continue;
|
|
1375
|
+
_ = _.toLowerCase();
|
|
1376
|
+
let C = D.comment;
|
|
1377
|
+
const ie = _ === "hidden";
|
|
1378
|
+
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)))) {
|
|
1379
|
+
if (C && typeof C == "string") {
|
|
1380
|
+
const R = /\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g;
|
|
1381
|
+
let K, Z = C, te = [];
|
|
1382
|
+
for (; (K = R.exec(C)) !== null; ) {
|
|
1383
|
+
const [me, we, Ct, Le] = K, vt = [Ct.trim()];
|
|
1384
|
+
Le && vt.push(Le.trim());
|
|
1386
1385
|
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
try {
|
|
1403
|
-
const Z = z.typeExpression.type;
|
|
1404
|
-
if (Z.kind === i.SyntaxKind.UnionType) {
|
|
1405
|
-
const te = [];
|
|
1406
|
-
F.enums = te, Z.types.forEach((pe) => {
|
|
1407
|
-
if (pe.kind === i.SyntaxKind.LiteralType) {
|
|
1408
|
-
const he = pe.literal.text;
|
|
1409
|
-
he && te.push(he);
|
|
1410
|
-
}
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
} catch (Z) {
|
|
1414
|
-
console.warn("Error parsing JSDoc type expression:", Z);
|
|
1415
|
-
}
|
|
1416
|
-
} else if (v === "returns" || v === "return")
|
|
1417
|
-
m.returnType.description = C;
|
|
1418
|
-
else if (v === "category")
|
|
1419
|
-
L.category = C;
|
|
1420
|
-
else if (v === "hidden") {
|
|
1421
|
-
let O = !0;
|
|
1422
|
-
const F = C?.toLowerCase();
|
|
1423
|
-
F === "false" ? O = !1 : F !== "true" && (O = C), O !== !1 && (L.hidden = O ?? !0);
|
|
1386
|
+
C = Z, te.length > 0 && _ === "see" && (L.links || (L.links = []), L.links.push(...te));
|
|
1387
|
+
}
|
|
1388
|
+
if (_ === "name") {
|
|
1389
|
+
const R = C;
|
|
1390
|
+
R !== F && (L.name = R);
|
|
1391
|
+
} else if (_ === "description") {
|
|
1392
|
+
const R = C;
|
|
1393
|
+
} else if (_ === "summary") {
|
|
1394
|
+
const R = C;
|
|
1395
|
+
R && (L.summary = R);
|
|
1396
|
+
} else if (_ === "param") {
|
|
1397
|
+
const R = D.name?.text, K = H.get(R);
|
|
1398
|
+
if (!K) {
|
|
1399
|
+
$.push(new Error(\`Parameter '\${R}' not found in function '\${F}'.\`));
|
|
1400
|
+
continue;
|
|
1424
1401
|
}
|
|
1402
|
+
if (D.typeExpression && D.typeExpression.type)
|
|
1403
|
+
try {
|
|
1404
|
+
const Z = D.typeExpression.type;
|
|
1405
|
+
if (Z.kind === i.SyntaxKind.UnionType) {
|
|
1406
|
+
const te = [];
|
|
1407
|
+
K.enums = te, Z.types.forEach((me) => {
|
|
1408
|
+
if (me.kind === i.SyntaxKind.LiteralType) {
|
|
1409
|
+
const we = me.literal.text;
|
|
1410
|
+
we && te.push(we);
|
|
1411
|
+
}
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
} catch (Z) {
|
|
1415
|
+
console.warn("Error parsing JSDoc type expression:", Z);
|
|
1416
|
+
}
|
|
1417
|
+
} else if (_ === "returns" || _ === "return")
|
|
1418
|
+
m.returnType.description = C;
|
|
1419
|
+
else if (_ === "category")
|
|
1420
|
+
L.category = C;
|
|
1421
|
+
else if (_ === "hidden") {
|
|
1422
|
+
let R = !0;
|
|
1423
|
+
const K = C?.toLowerCase();
|
|
1424
|
+
K === "false" ? R = !1 : K !== "true" && (R = C), R !== !1 && (L.hidden = R ?? !0);
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
+
}
|
|
1427
1428
|
}
|
|
1428
1429
|
}
|
|
1429
1430
|
Object.keys(m.returnType).length === 0 && delete m.returnType, p.push([m, L]);
|
|
1430
1431
|
} catch (M) {
|
|
1431
|
-
|
|
1432
|
+
z(s, new Error(\`'\${F}': \${M.message}\`));
|
|
1432
1433
|
}
|
|
1433
1434
|
}
|
|
1434
|
-
}),
|
|
1435
|
-
throw console.warn(
|
|
1435
|
+
}), $.length > 0)
|
|
1436
|
+
throw console.warn($), new Error("There were compilation errors.", { cause: $ });
|
|
1436
1437
|
if (p.length === 0)
|
|
1437
1438
|
throw new Error("No exported functions.");
|
|
1438
|
-
const
|
|
1439
|
+
const xt = \`\${Kt.uuidV4()}-script\`;
|
|
1439
1440
|
try {
|
|
1440
|
-
!n &&
|
|
1441
|
+
!n && $.length === 0 && (l = await Ht(i, l, g));
|
|
1441
1442
|
} catch {
|
|
1442
1443
|
console.warn("Error bundling script");
|
|
1443
1444
|
}
|
|
1444
|
-
const
|
|
1445
|
+
const ke = {
|
|
1445
1446
|
functions: p,
|
|
1446
|
-
commitId:
|
|
1447
|
+
commitId: xt,
|
|
1447
1448
|
source: t,
|
|
1448
1449
|
name: "Script",
|
|
1449
1450
|
language: "typescript",
|
|
1450
1451
|
// default
|
|
1451
1452
|
compiled: l
|
|
1452
1453
|
};
|
|
1453
|
-
return c && (
|
|
1454
|
+
return c && (ke.autoRun = c), ke;
|
|
1454
1455
|
}
|
|
1455
1456
|
self.addEventListener("message", async (e) => {
|
|
1456
1457
|
const { id: t, params: n } = e.data;
|
|
1457
1458
|
try {
|
|
1458
|
-
const r = await
|
|
1459
|
+
const r = await on(n);
|
|
1459
1460
|
self.postMessage({ id: t, result: r, error: null });
|
|
1460
1461
|
} catch (r) {
|
|
1461
1462
|
self.postMessage({
|
|
@@ -1469,9 +1470,9 @@ self.addEventListener("message", async (e) => {
|
|
|
1469
1470
|
});
|
|
1470
1471
|
}
|
|
1471
1472
|
});
|
|
1472
|
-
let
|
|
1473
|
-
async function
|
|
1474
|
-
return
|
|
1473
|
+
let ue = null;
|
|
1474
|
+
async function an() {
|
|
1475
|
+
return ue || (ue = new Promise(async (e, t) => {
|
|
1475
1476
|
try {
|
|
1476
1477
|
const n = "0.20.2", r = \`https://esm.sh/esbuild-wasm@\${n}\`, o = \`https://esm.sh/esbuild-wasm@\${n}/esbuild.wasm\`, i = (await import(
|
|
1477
1478
|
/* webpackIgnore: true */
|
|
@@ -1487,15 +1488,15 @@ async function rn() {
|
|
|
1487
1488
|
} catch (n) {
|
|
1488
1489
|
console.error("Error initializing esbuild:", n), t(n);
|
|
1489
1490
|
}
|
|
1490
|
-
}),
|
|
1491
|
+
}), ue);
|
|
1491
1492
|
}
|
|
1492
|
-
var
|
|
1493
|
+
var ln = /* @__PURE__ */ Object.freeze({
|
|
1493
1494
|
__proto__: null,
|
|
1494
|
-
initialize:
|
|
1495
|
+
initialize: an
|
|
1495
1496
|
});
|
|
1496
|
-
let
|
|
1497
|
-
async function
|
|
1498
|
-
return
|
|
1497
|
+
let de = null;
|
|
1498
|
+
async function sn() {
|
|
1499
|
+
return de || (de = new Promise(async (e, t) => {
|
|
1499
1500
|
let n = null;
|
|
1500
1501
|
try {
|
|
1501
1502
|
n = await import("https://esm.sh/typescript@5.7.2");
|
|
@@ -1503,10 +1504,10 @@ async function an() {
|
|
|
1503
1504
|
console.error("Error initializing Browser TypeScript module:", r);
|
|
1504
1505
|
}
|
|
1505
1506
|
n || console.log("use script fallback"), e(n);
|
|
1506
|
-
}),
|
|
1507
|
+
}), de);
|
|
1507
1508
|
}
|
|
1508
|
-
var
|
|
1509
|
+
var cn = /* @__PURE__ */ Object.freeze({
|
|
1509
1510
|
__proto__: null,
|
|
1510
|
-
initialize:
|
|
1511
|
+
initialize: sn
|
|
1511
1512
|
});
|
|
1512
|
-
`,i=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=i&&(self.URL||self.webkitURL).createObjectURL(i),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1513
|
+
`,i=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=i&&(self.URL||self.webkitURL).createObjectURL(i),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./Btc-dn9vrxeuHrvE.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()};
|