@sheetxl/studio-vanilla 0.4.13 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/browser/cjs/0wJgZUT7DgId9Xtu.cjs +11 -0
- package/browser/cjs/3oobHi8j_DGW35rC.cjs +124 -0
- package/browser/cjs/6DwFSFOve5d5Kh4O.cjs +6 -0
- package/browser/cjs/ArJueN3Q9EFBG6tK.cjs +6 -0
- package/browser/cjs/BFZbsyTO3uhLJbLO.cjs +6 -0
- package/browser/cjs/BG0zKZBHarIk0gKB.cjs +145 -0
- package/browser/cjs/BH_qrKPpuqL9YxGP.cjs +15 -0
- package/browser/cjs/BJu8UGaYuFmjvmwl.cjs +6 -0
- package/browser/cjs/BKIvZi8Z5lHc2S32.cjs +7 -0
- package/browser/cjs/BSJTx60VBwf450vd.cjs +6 -0
- package/browser/cjs/BUWv6Ysw6pYG7w7W.cjs +7 -0
- package/browser/cjs/BVHaNjM0-FXL7gyh.cjs +6 -0
- package/browser/cjs/BcHEeTMPgurSZ2Kh.cjs +6 -0
- package/browser/cjs/BdnGDChdub9m1gbK.cjs +6 -0
- package/browser/cjs/Bf0HoYuEDFO9Gwdv.cjs +12 -0
- package/browser/cjs/BgHBftj6ugXjpyaF.cjs +6 -0
- package/browser/cjs/BgsgGbpzcl7wg2IO.cjs +6 -0
- package/browser/cjs/BsCdHkza2KUgNs3F.cjs +6 -0
- package/browser/cjs/BzRfETjQwEEJfpgZ.cjs +6 -0
- package/browser/cjs/BzhfyRZdk-oiyEa3.cjs +6 -0
- package/browser/cjs/C8BQmea-gRcTEaYH.cjs +6 -0
- package/browser/cjs/CA0OjW0AOuGEjxZ2.cjs +6 -0
- package/browser/cjs/CRe-vd2WZQabNDDS.cjs +6 -0
- package/browser/cjs/CRe8klqBNVDkSDEr.cjs +13 -0
- package/browser/cjs/CXn4J7ISlTV_SfvZ.cjs +6 -0
- package/browser/cjs/Ck8K0c7E5RT8WMbO.cjs +15 -0
- package/browser/cjs/ClXfvzbTzK5w-Tv9.cjs +6 -0
- package/browser/cjs/CnDLmICwEpdeYECg.cjs +32 -0
- package/browser/cjs/CqILFqDohV7CdFQ1.cjs +6 -0
- package/browser/cjs/CqugZolY4J8viegd.cjs +6 -0
- package/browser/cjs/CrnvoFSZfgmBlK86.cjs +42 -0
- package/browser/cjs/Ct0fgg-1dB-T7u7T.cjs +161 -0
- package/browser/cjs/CtLA5mrQxGamDt92.cjs +6 -0
- package/browser/cjs/D4582BA0aCqJ_PrJ.cjs +6 -0
- package/browser/cjs/D74hXHJrfnGhbNBg.cjs +6 -0
- package/browser/cjs/DAGEOiTL4sCagK3p.cjs +6 -0
- package/browser/cjs/DAxpZHSeQ9vUP1m6.cjs +14 -0
- package/browser/cjs/DDbNLc2mUv7Q6msK.cjs +11 -0
- package/browser/cjs/DWh6QtlFsPfZ3Asz.cjs +1501 -0
- package/browser/cjs/DY1iEDz8BWZpqFOo.cjs +16 -0
- package/browser/cjs/D_RVszeEK0DfF-EN.cjs +6 -0
- package/browser/cjs/Dg9yKaBrYK9w4cQO.cjs +19 -0
- package/browser/cjs/DgFtbCf8dkncAq_r.cjs +6 -0
- package/browser/cjs/DotFGD_QKvqoQlAL.cjs +6 -0
- package/browser/cjs/DrRRwzZUlGvA6cQT.cjs +6 -0
- package/browser/cjs/DtQ-sP4vg1IpzFkc.cjs +6 -0
- package/browser/cjs/EIY0bt22HqBjrvRt.cjs +6 -0
- package/browser/cjs/TAIJH4y6CbXhFnhx.cjs +364 -0
- package/browser/cjs/YTXgMiobveLIPF9T.cjs +6 -0
- package/browser/cjs/_OSzgfBNK1m22Jek.cjs +6 -0
- package/browser/cjs/fjQ9vPUSGRU1VSoH.cjs +6 -0
- package/browser/cjs/gI7uI_k_jVDAtJup.cjs +6 -0
- package/browser/cjs/index.cjs +3 -4
- package/browser/cjs/mW3Ya0GEjpmsa_YK.cjs +6 -0
- package/browser/cjs/qB-lxZgY2Iz9Bc6T.cjs +7 -0
- package/browser/cjs/sXSha5rBK3lo_tOD.cjs +6 -0
- package/browser/cjs/uryrVY1PPsKlOzso.cjs +6 -0
- package/browser/cjs/vce4VfmWFd9ClUSo.cjs +6 -0
- package/{cdn/assets/KDGtuIzSpkf1vsmH.js → browser/esm/5RdhqzgwkuR2ox0E.mjs} +1 -1
- package/{cdn/assets/B1Iys8a964LGNZKf.js → browser/esm/B9vAqNVLp_vCTrP_.mjs} +1 -1
- package/{cdn/assets/CsorxCiOoe7qX9j1.js → browser/esm/BFYBuTXa6xa5ZjBo.mjs} +1 -1
- package/{cdn/assets/B2RAJJJFkcaWUfUW.js → browser/esm/BNuTKa0cEC3F4rTF.mjs} +1 -1
- package/{cdn/assets/C4vStn7wNlvrxdsp.js → browser/esm/BPDWQKVFxO_3IqZX.mjs} +1 -1
- package/{cdn/assets/BMiA9p1uOrwnooVT.js → browser/esm/BUAQRxezxaeHUbwe.mjs} +1 -1
- package/{cdn/assets/CT0d1P-Aav62lUvV.js → browser/esm/BXhoPHXmFqGJhEOT.mjs} +1 -1
- package/browser/esm/B_JJ8lAbaPdlt8l4.mjs +29 -0
- package/{cdn/assets/F6zW9Vj410C4yRVG.js → browser/esm/B_YrH7VnXiUkYu8u.mjs} +167 -166
- package/browser/esm/Beqd_eZheAqcy9eR.mjs +49911 -0
- package/{cdn/assets/BL6TUDSeou6wPejW.js → browser/esm/Bh6dC8KTHWpKMi09.mjs} +1 -1
- package/browser/esm/BmkIbFYjQZnaZGzF.mjs +13208 -0
- package/{cdn/assets/CrLrvmlJhYpNpXqR.js → browser/esm/Bp2dkgUm5zsuNnPH.mjs} +1 -1
- package/{cdn/assets/DD3csu4pddGtMp3n.js → browser/esm/Bpujg7eS-yYzfXnQ.mjs} +537 -539
- package/{cdn/assets/D-5VYBO5_VEh6fEW.js → browser/esm/BqmualWSYd-czqNW.mjs} +1 -1
- package/{cdn/assets/5XdpCWQ6AcxZ6oY1.js → browser/esm/Bt1LjWrzTz3VQP5i.mjs} +1 -1
- package/{cdn/assets/CKA4s2hlzSnrdWSD.js → browser/esm/BwEUAuMX1MAp6TLB.mjs} +1 -1
- package/browser/esm/BxForeOFuQExxhBo.mjs +3755 -0
- package/{cdn/assets/BDE7FUo2oiivrvBL.js → browser/esm/C0KLnjyGhfqKP-3J.mjs} +16 -18
- package/{cdn/assets/C-Z8wvIy20kJ7R-k.js → browser/esm/C2DVh9PCXymQ6Bku.mjs} +1 -1
- package/{cdn/assets/DHydjLSnijEgtpyU.js → browser/esm/C5Vhk6RekNjP_kzl.mjs} +1 -1
- package/{cdn/assets/DXHirQMr483hJBil.js → browser/esm/CMgjnCC7huqsMZ7l.mjs} +12 -14
- package/{cdn/assets/BwpBFv8Ks2ka07ch.js → browser/esm/CQMGhCDKbq2op_BI.mjs} +1 -1
- package/browser/esm/CQoo-4sVCrOfP9iU.mjs +1365 -0
- package/browser/esm/CSSayGD6fTeehKt_.mjs +1575 -0
- package/browser/esm/CTEiaS8NJUMozWzX.mjs +6800 -0
- package/{cdn/assets/DXtbonLk2ESfF4Dh.js → browser/esm/CWSZwGuenxmHgLXd.mjs} +1 -1
- package/{cdn/assets/DvFNLgeMJ9LdQROu.js → browser/esm/Cb1Q2phpEESgs7mi.mjs} +26 -28
- package/browser/esm/CeDuz_yZT4XG-Pv8.mjs +47 -0
- package/browser/esm/CfMo1fAExeFOibAQ.mjs +39 -0
- package/{cdn/assets/f3_QXO8z0p-q4nJo.js → browser/esm/ClLJBQr4mG8VGyC3.mjs} +12 -12
- package/{cdn/assets/BUwNyHytF9St68tJ.js → browser/esm/CnwSRSKNfq2GyXas.mjs} +1 -1
- package/browser/esm/CqRDFmwJualsG-hJ.mjs +1346 -0
- package/{cdn/assets/BxblmHGC7YxZcuak.js → browser/esm/CslDdQ92RlF9XCcF.mjs} +1 -1
- package/{cdn/assets/BBJxLS-wB_nXRnI2.js → browser/esm/CvTxaj5stKRFGegY.mjs} +1 -1
- package/browser/esm/D14VyfRK6-WOMJJO.mjs +1665 -0
- package/browser/esm/D9ftd36uosOvK1Bz.mjs +44 -0
- package/browser/esm/DAM-CuXQIzcQS8y2.mjs +820 -0
- package/browser/esm/DQiTAq0r1q5Z_7H6.mjs +84 -0
- package/browser/esm/DRoKqCpNKKdYKqZ3.mjs +3937 -0
- package/browser/esm/DSBeC26EhsTkKu9_.mjs +1702 -0
- package/{cdn/assets/N3pWBoccPrTedAw-.js → browser/esm/DT0kcrmyi0GrASFM.mjs} +1 -1
- package/{cdn/assets/CuNqTH3P8mCglRiz.js → browser/esm/DVAgkqy1aZdEMIzM.mjs} +1 -1
- package/browser/esm/DVqoG8OFm93ndK8u.mjs +21 -0
- package/browser/esm/DdcqO--nszyX8nqj.mjs +20 -0
- package/{cdn/assets/9-cIcj6CRJx5HTn9.js → browser/esm/DmSh4h3LBSgZNzzF.mjs} +1 -1
- package/{cdn/assets/C3EFzvmp0DcC_HAx.js → browser/esm/Do7w66ZbyFAW-Kvo.mjs} +1 -1
- package/{cdn/assets/BciokME96sykArSM.js → browser/esm/DrVjmz0t2Y2eHDvu.mjs} +1 -1
- package/{cdn/assets/2mxiQm6dELsqQoX7.js → browser/esm/Dre4qd4kiDqAnEpH.mjs} +1370 -1412
- package/browser/esm/DxOr3qEZVibn2HK7.mjs +421 -0
- package/{cdn/assets/C5q0qaKi2eeDgoO8.js → browser/esm/IWZ_bebXCJeQz19V.mjs} +1 -1
- package/{cdn/assets/XysyS9rk9tFdbzZh.js → browser/esm/YEeWnRTVhFsSnEoO.mjs} +501 -510
- package/browser/esm/ZciEgxXQYsHyV2gO.mjs +633 -0
- package/{cdn/assets/DFHruAftzuzBZ71r.js → browser/esm/azuJCFiVoU4Ebb9P.mjs} +65 -68
- package/browser/esm/iXnpVI-bOFX7L6z-.mjs +2344 -0
- package/browser/esm/index.mjs +6 -2
- package/browser/esm/n6RMMH6ZZaYET-uv.mjs +48 -0
- package/browser/esm/u8MA5qQcSH-VSLrB.mjs +472 -0
- package/cdn/assets/5RdhqzgwkuR2ox0E.js +10 -0
- package/cdn/assets/B9vAqNVLp_vCTrP_.js +10 -0
- package/cdn/assets/BAARsakyOFrwNKVu.js +1466 -0
- package/cdn/assets/BCMTnGKJGZCOn8RP.js +84 -0
- package/cdn/assets/BFYBuTXa6xa5ZjBo.js +10 -0
- package/cdn/assets/BNuTKa0cEC3F4rTF.js +21 -0
- package/cdn/assets/BPDWQKVFxO_3IqZX.js +10 -0
- package/cdn/assets/BUAQRxezxaeHUbwe.js +10 -0
- package/cdn/assets/BXhoPHXmFqGJhEOT.js +10 -0
- package/cdn/assets/Bh6dC8KTHWpKMi09.js +10 -0
- package/cdn/assets/BmkIbFYjQZnaZGzF.js +13208 -0
- package/cdn/assets/Bp2dkgUm5zsuNnPH.js +10 -0
- package/cdn/assets/BqmualWSYd-czqNW.js +24 -0
- package/cdn/assets/BsNGXIjB2gB75oDq.js +46 -0
- package/cdn/assets/Bt1LjWrzTz3VQP5i.js +10 -0
- package/cdn/assets/BwEUAuMX1MAp6TLB.js +10 -0
- package/cdn/assets/{0j_nQmV1Bb0lJ6sB.js → ByGApkjEdqWJCmIL.js} +4 -4
- package/cdn/assets/C2DVh9PCXymQ6Bku.js +10 -0
- package/cdn/assets/C4PvQzHOWYFQIrTT.js +22 -0
- package/cdn/assets/{quOP5QFyTT9soNIl.js → C5Vhk6RekNjP_kzl.js} +3 -5
- package/cdn/assets/{Xwyp21e7L5fTeb_y.js → C82_3AL3p2OPqUES.js} +186 -184
- package/cdn/assets/C8ZVHIXuFCsMz4su.js +3756 -0
- package/cdn/assets/CP0YRrUyk_DwRGye.js +46 -0
- package/cdn/assets/CQMGhCDKbq2op_BI.js +10 -0
- package/cdn/assets/CQ_eXYB8jRiWFzL8.js +149 -0
- package/cdn/assets/CQoo-4sVCrOfP9iU.js +1365 -0
- package/cdn/assets/CVtFEjbMohoQQwVa.js +2346 -0
- package/cdn/assets/CWSZwGuenxmHgLXd.js +10 -0
- package/cdn/assets/{BgnlshX157Ob6RLs.js → ChzKnwtP8tCXlyQC.js} +5 -5
- package/cdn/assets/ClwsvKMIARY6eKe8.js +43 -0
- package/cdn/assets/CnwSRSKNfq2GyXas.js +10 -0
- package/cdn/assets/CqRDFmwJualsG-hJ.js +1346 -0
- package/cdn/assets/CsV6TK9KYwaT40Nd.js +2177 -0
- package/cdn/assets/CslDdQ92RlF9XCcF.js +10 -0
- package/cdn/assets/CvTxaj5stKRFGegY.js +10 -0
- package/cdn/assets/{C9eQW5GKgPRmKKgJ.js → CxPN10OK3cql47vK.js} +2 -2
- package/cdn/assets/D14VyfRK6-WOMJJO.js +1665 -0
- package/cdn/assets/D3wy0hvPKjYlTqDZ.js +390 -0
- package/cdn/assets/D4UoNdvz3kZD9Fg7.js +3937 -0
- package/cdn/assets/{Gz4u4ewyWfB-Pf-a.js → D8Eij5qtEH8tI7eL.js} +4 -5
- package/cdn/assets/DPpga_z_sz7WeoGk.js +49739 -0
- package/{browser/esm/CVeyOpbAhaBhDRye.mjs → cdn/assets/DT0kcrmyi0GrASFM.js} +7 -2
- package/cdn/assets/{DPQqTIMsRLhMxPIy.js → DTlKjG3w2RgTejVm.js} +2 -2
- package/cdn/assets/DVAgkqy1aZdEMIzM.js +10 -0
- package/cdn/assets/DmSh4h3LBSgZNzzF.js +10 -0
- package/cdn/assets/DmTmS8Vw_AvNiuzU.js +50 -0
- package/cdn/assets/Do7w66ZbyFAW-Kvo.js +10 -0
- package/cdn/assets/DoiUKE9bzdCohsIn.js +58 -0
- package/cdn/assets/{6JtXguBKwGj6dqfy.js → DrKm9mDEvFK0tW1J.js} +385 -387
- package/cdn/assets/DrVjmz0t2Y2eHDvu.js +10 -0
- package/cdn/assets/DxOr3qEZVibn2HK7.js +421 -0
- package/cdn/assets/IWZ_bebXCJeQz19V.js +10 -0
- package/cdn/assets/NPHYIK_SYI8TgWVt.js +23 -0
- package/cdn/assets/ZciEgxXQYsHyV2gO.js +633 -0
- package/cdn/assets/bGhAFgohHm88dsqJ.js +41 -0
- package/cdn/assets/clveP5QdWgiuzHNH.js +5582 -0
- package/cdn/assets/sMpbLhp97YEbNwUD.js +49 -0
- package/cdn/index.js +73 -73
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +1 -0
- package/browser/cjs/-DkdmW3XP1ICRY25.cjs +0 -7
- package/browser/cjs/B-KQs1Bf48nEucW7.cjs +0 -7
- package/browser/cjs/B1xnY7pDnbnNzknG.cjs +0 -7
- package/browser/cjs/B6A5w_aWHkigBc6j.cjs +0 -7
- package/browser/cjs/B9jxuOg1CXcmbi9J.cjs +0 -110
- package/browser/cjs/BAYjkr4LmsWRLoPr.cjs +0 -7
- package/browser/cjs/BG2uV2RpxrfZyCuV.cjs +0 -7
- package/browser/cjs/BGCPG4Ip5ZijUQwi.cjs +0 -7
- package/browser/cjs/BHTlBOQH-tPGoKgo.cjs +0 -7
- package/browser/cjs/BLBNzBvRVl9VLynf.cjs +0 -7
- package/browser/cjs/BLh6E7ER8mrM6vc_.cjs +0 -7
- package/browser/cjs/BMaq_2S3IFrE5XeJ.cjs +0 -7
- package/browser/cjs/BO7Pbclmywy-QCSV.cjs +0 -13
- package/browser/cjs/BPlthbyKkqCDjgxO.cjs +0 -7
- package/browser/cjs/BUGo0mXtBfFOmQXV.cjs +0 -7
- package/browser/cjs/BdHdXCz_K1djQgI4.cjs +0 -7
- package/browser/cjs/BfNkb1jDZkJf3wRA.cjs +0 -7
- package/browser/cjs/BfdQd2UEOlOc5iF3.cjs +0 -7
- package/browser/cjs/Bi9KvObgq_kJ_pjC.cjs +0 -7
- package/browser/cjs/BjPpJjnABDd3_WOZ.cjs +0 -7
- package/browser/cjs/BsSNzyN8kOGCKzso.cjs +0 -7
- package/browser/cjs/BtCcoaKKb8ZDnliG.cjs +0 -7
- package/browser/cjs/BwHquG4sSd7OJjxz.cjs +0 -7
- package/browser/cjs/BywNBbTVRYbgRbNI.cjs +0 -7
- package/browser/cjs/C04Qr5P8uyQ6Vcml.cjs +0 -7
- package/browser/cjs/C42ZEPRmW9Wcd7tI.cjs +0 -7
- package/browser/cjs/CBpt1PBR1VfBegko.cjs +0 -7
- package/browser/cjs/CED8Az5C8GWF7pUT.cjs +0 -7
- package/browser/cjs/CbD4Wa5QLTdRCYcz.cjs +0 -7
- package/browser/cjs/CbILz9Skl6lWf6yR.cjs +0 -7
- package/browser/cjs/CoFQQqIzuvS9PM77.cjs +0 -7
- package/browser/cjs/CpDNo2Lhwr5ZHECs.cjs +0 -7
- package/browser/cjs/CsamfGfFsItvSgo_.cjs +0 -7
- package/browser/cjs/Cx3kn5gBsQ-1bORi.cjs +0 -7
- package/browser/cjs/CxLvGnG44-qNI36G.cjs +0 -7
- package/browser/cjs/D-xyWit7jxctQCpR.cjs +0 -7
- package/browser/cjs/D4XQsK7d7DRctaOO.cjs +0 -7
- package/browser/cjs/D9rVEA1BdB0JZwhE.cjs +0 -7
- package/browser/cjs/DES2NmIRVZg-HXgs.cjs +0 -7
- package/browser/cjs/DFxeLNhACFIHb0nv.cjs +0 -7
- package/browser/cjs/DIv1SrLYeyVwcaxE.cjs +0 -7
- package/browser/cjs/DJ6L43osbaMzEV5K.cjs +0 -7
- package/browser/cjs/DMjLN_HDktNzzUB8.cjs +0 -7
- package/browser/cjs/DVPfPZCFjmYu3xyn.cjs +0 -7
- package/browser/cjs/DhSlaiQXxEOVtZkA.cjs +0 -7
- package/browser/cjs/Dh_dFnagz7dMZlGh.cjs +0 -7
- package/browser/cjs/DpF6vgGka2d-RKkb.cjs +0 -10
- package/browser/cjs/DtY0Jzlwnr_YKnV4.cjs +0 -7
- package/browser/cjs/DwyyFI1Ix0uc0Qoz.cjs +0 -7
- package/browser/cjs/Dy5_viRzFls9rOzN.cjs +0 -7
- package/browser/cjs/GkINjQ8Te3GKi2mx.cjs +0 -7
- package/browser/cjs/aN3KCqswA1SdJIMq.cjs +0 -7
- package/browser/cjs/hLJbgylpETByV4wc.cjs +0 -7
- package/browser/cjs/qumqKlVHFx89iLeu.cjs +0 -7
- package/browser/cjs/rKZjTYQ0WpTriIv6.cjs +0 -7
- package/browser/cjs/xjKotAOVt3JH36U7.cjs +0 -7
- package/browser/cjs/ymbPxio09Fw7I2BW.cjs +0 -7
- package/browser/esm/2P5dQT7wZToOh-n9.mjs +0 -7
- package/browser/esm/4GgcUVhUmQmiv9Ha.mjs +0 -110
- package/browser/esm/7_x68v6PpvRDox_Z.mjs +0 -7
- package/browser/esm/9icgSuuzXq6mlgM8.mjs +0 -7
- package/browser/esm/B354iAatN9y9AIIP.mjs +0 -7
- package/browser/esm/B5EVyoxm3aSlAnxN.mjs +0 -7
- package/browser/esm/BD8rE7MUxuHXsdcf.mjs +0 -7
- package/browser/esm/BGFWI1a1PmU8_hCE.mjs +0 -7
- package/browser/esm/BI6JAQCQx1V0F2aC.mjs +0 -7
- package/browser/esm/BIYg30d_9HaluFFz.mjs +0 -7
- package/browser/esm/BKL-uyBp_OE47lXd.mjs +0 -7
- package/browser/esm/BMwJCtLAYUW8wExX.mjs +0 -13
- package/browser/esm/BNOfK-lGWF2S8vQE.mjs +0 -7
- package/browser/esm/Ba433v6lQUMtECiY.mjs +0 -7
- package/browser/esm/BbZWfDW2LUyjqUDy.mjs +0 -7
- package/browser/esm/C238uBmZN1XXqMUb.mjs +0 -7
- package/browser/esm/C34whwRkHO0lhq4-.mjs +0 -7
- package/browser/esm/C6FEpAqSZoW5Hgte.mjs +0 -7
- package/browser/esm/COlW5ULL29SUKN1Z.mjs +0 -7
- package/browser/esm/CRyxOj2xPj9qe9LK.mjs +0 -7
- package/browser/esm/CVyVvtlJuCTn4MDh.mjs +0 -7
- package/browser/esm/CapeIfjWq-_BHMlE.mjs +0 -7
- package/browser/esm/CcQqGNgK2CsgNtuD.mjs +0 -7
- package/browser/esm/CdZSxrk3k1Lx6G8W.mjs +0 -7
- package/browser/esm/CdchvB_wAbv_6Whw.mjs +0 -7
- package/browser/esm/Cf8eDl3Tu5NAWWwG.mjs +0 -7
- package/browser/esm/Cfq9tttQlsKvfaCr.mjs +0 -7
- package/browser/esm/ClR6uLJoM-xKVYEc.mjs +0 -7
- package/browser/esm/Cnl_e-EYkZ3CLbi2.mjs +0 -7
- package/browser/esm/CtRS2ZCPF7IH_mXe.mjs +0 -7
- package/browser/esm/CuV-bwi1vcXAqFUY.mjs +0 -7
- package/browser/esm/CwVE0qelO_xgf-l1.mjs +0 -7
- package/browser/esm/D1Dzlta8ZVy08ng6.mjs +0 -7
- package/browser/esm/D1TjRQiHLWhpl-dl.mjs +0 -7
- package/browser/esm/D8BJ-y3ulgO_ezrj.mjs +0 -10
- package/browser/esm/DTDXNEbHVnnZONNL.mjs +0 -7
- package/browser/esm/DTWfi8Dl-c2s5moT.mjs +0 -7
- package/browser/esm/DYVBXcu1r5KRLB-1.mjs +0 -7
- package/browser/esm/DZjWyWMvr2XHQrBg.mjs +0 -7
- package/browser/esm/DhHK4QmASvgAq9Xy.mjs +0 -7
- package/browser/esm/DoFV2S6Su86IN5Ul.mjs +0 -7
- package/browser/esm/Dq3ybkgattcCsF_4.mjs +0 -7
- package/browser/esm/DqWoZ4TjweoJWX3o.mjs +0 -7
- package/browser/esm/DtXxHirBm16ldE1l.mjs +0 -7
- package/browser/esm/DtuWZG6c_8vKRSdr.mjs +0 -7
- package/browser/esm/FBG8XXdIMd9PfUIo.mjs +0 -7
- package/browser/esm/Nh7JiwvF01PblHQ0.mjs +0 -7
- package/browser/esm/PVYiH9vBQM6rqXI4.mjs +0 -7
- package/browser/esm/U5-LDZQ0qkJ2Y-p8.mjs +0 -7
- package/browser/esm/XhQDWZu47oe6bwHh.mjs +0 -7
- package/browser/esm/_BjU6TtI-mQfFpfy.mjs +0 -7
- package/browser/esm/gOUfyCw957TzcbNB.mjs +0 -7
- package/browser/esm/lmkbfs9sNc7f0oe5.mjs +0 -7
- package/browser/esm/naa0kcRwxHEYGaQB.mjs +0 -7
- package/browser/esm/qxOkQutRxmAi1vRh.mjs +0 -7
- package/browser/esm/tMSro0g2GM5BBTIH.mjs +0 -7
- package/cdn/assets/0e9wDKSn4SFxSmP5.js +0 -27
- package/cdn/assets/8U2WVdbZHYCBnd9L.js +0 -23
- package/cdn/assets/B-kFRtzNNkf4_SiP.js +0 -1701
- package/cdn/assets/BAzGoI9gE2G3F3on.js +0 -637
- package/cdn/assets/BLqaorJ5Wl-1YOoy.js +0 -3875
- package/cdn/assets/BNh9nSR83reiVMKt.js +0 -90
- package/cdn/assets/BQON-ToGsIBPrPkM.js +0 -1371
- package/cdn/assets/BVYDmdUGWvMG5gNK.js +0 -241
- package/cdn/assets/B_2bXmyji3Dr7LRM.js +0 -50224
- package/cdn/assets/BlYoycYtR-sUp0iC.js +0 -27
- package/cdn/assets/Bsa9-Itkf_SdDBM9.js +0 -6481
- package/cdn/assets/CHTspRZD2v_dU_eV.js +0 -22
- package/cdn/assets/CMBDD1Mjde6UL5ep.js +0 -84
- package/cdn/assets/CR01MBraUPYPpwy4.js +0 -36
- package/cdn/assets/CV8UjJPDVplXjK1E.js +0 -49
- package/cdn/assets/CwdMjMPFdIs8SAV0.js +0 -1358
- package/cdn/assets/DUtu7r6CzW4dtW3E.js +0 -50
- package/cdn/assets/Dr5X-ng9wbwUWVr4.js +0 -41
- package/cdn/assets/Dvj7UEckqOBrgs9i.js +0 -3947
- package/cdn/assets/KtKlo5mM4kTTfFgi.js +0 -46
- package/cdn/assets/NTINjW8JjyZudT8s.js +0 -13449
- package/cdn/assets/R9RwlorPWfftoboH.js +0 -2373
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const e={ENCODEURL:{s:"Returns a URL-encoded string",p:{text:{d:"is a string to be URL encoded"}}},WEBSERVICE:{s:"Retrieves data from a web service.",p:{url:{d:"is the URL of the web service"}}}};export{e as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const e={DELTA:{s:"Tests whether two numbers are equal",p:{number1:{d:"is the first number"},number2:{d:"is the second number",v:0}}},GESTEP:{s:"Tests whether a number is greater than a threshold value",p:{number:{d:"is the value to test against step"},step:{d:"is the threshold value",v:0}}}};export{e as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
function e(){}function t(e){return"object"==typeof e&&null!==e||"function"==typeof e}const r=e;function o(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch(e){}}const n=Promise,i=Promise.resolve.bind(n),a=Promise.prototype.then,s=Promise.reject.bind(n),l=i;function u(e){return new n(e)}function c(e){return u(t=>t(e))}function d(e){return s(e)}function f(e,t,r){return a.call(e,t,r)}function b(e,t,o){f(f(e,t,o),void 0,r)}function h(e,t){b(e,t)}function _(e,t){b(e,void 0,t)}function p(e,t,r){return f(e,t,r)}function m(e){f(e,void 0,r)}let y=e=>{if("function"==typeof queueMicrotask)y=queueMicrotask;else{const e=c(void 0);y=t=>f(e,t)}return y(e)};function v(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function w(e,t,r){try{return c(v(e,t,r))}catch(e){return d(e)}}class g{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let o=r+1;const n=e._elements,i=n[r];return 16384===o&&(t=e._next,o=0),--this._size,this._cursor=o,e!==t&&(this._front=t),n[r]=void 0,i}forEach(e){let t=this._cursor,r=this._front,o=r._elements;for(;!(t===o.length&&void 0===r._next||t===o.length&&(r=r._next,o=r._elements,t=0,0===o.length));)e(o[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}const S=Symbol("[[AbortSteps]]"),R=Symbol("[[ErrorSteps]]"),T=Symbol("[[CancelSteps]]"),q=Symbol("[[PullSteps]]"),E=Symbol("[[ReleaseSteps]]");function P(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?j(e):"closed"===t._state?function(e){j(e),z(e)}(e):k(e,t._storedError)}function C(e,t){return zr(e._ownerReadableStream,t)}function O(e){const t=e._ownerReadableStream;"readable"===t._state?W(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e){k(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),t._readableStreamController[E](),t._reader=void 0,e._ownerReadableStream=void 0}function A(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function j(e){e._closedPromise=u((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function k(e,t){j(e),W(e,t)}function W(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function z(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const B=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},F=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function I(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(`${t} is not an object.`);var r}function L(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not a function.`)}function $(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function x(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function D(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function M(e){return Number(e)}function N(e){return 0===e?0:e}function Y(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=N(o),!B(o))throw new TypeError(`${t} is not a finite number`);if(o=function(e){return N(F(e))}(o),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return B(o)&&0!==o?o:0}function V(e,t){if(!kr(e))throw new TypeError(`${t} is not a ReadableStream.`)}function U(e){return new K(e)}function H(e,t){e._reader._readRequests.push(t)}function G(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function X(e){return e._reader._readRequests.length}function J(e){const t=e._reader;return void 0!==t&&!!Q(t)}class K{constructor(e){if(x(e,1,"ReadableStreamDefaultReader"),V(e,"First parameter"),Wr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");P(this,e),this._readRequests=new g}get closed(){return Q(this)?this._closedPromise:d(te("closed"))}cancel(e=void 0){return Q(this)?void 0===this._ownerReadableStream?d(A("cancel")):C(this,e):d(te("cancel"))}read(){if(!Q(this))return d(te("read"));if(void 0===this._ownerReadableStream)return d(A("read from"));let e,t;const r=u((r,o)=>{e=r,t=o});return Z(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!Q(this))throw te("releaseLock");void 0!==this._ownerReadableStream&&function(e){O(e),ee(e,new TypeError("Reader was released"))}(this)}}function Q(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof K}function Z(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[q](t)}function ee(e,t){const r=e._readRequests;e._readRequests=new g,r.forEach(e=>{e._errorSteps(t)})}function te(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var re,oe,ne;function ie(e){return e.slice()}function ae(e,t,r,o,n){new Uint8Array(e).set(new Uint8Array(r,o,n),t)}Object.defineProperties(K.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(K.prototype.cancel,"cancel"),o(K.prototype.read,"read"),o(K.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(K.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let se=e=>(se="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e,se(e)),le=e=>(le="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength,le(e));function ue(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,n=new ArrayBuffer(o);return ae(n,0,e,t,o),n}function ce(e,t){const r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(`${String(t)} is not a function`);return r}}function de(e){try{const t=e.done,r=e.value;return f(l(r),e=>({done:t,value:e}))}catch(e){return d(e)}}const fe=null!==(ne=null!==(re=Symbol.asyncIterator)&&void 0!==re?re:null===(oe=Symbol.for)||void 0===oe?void 0:oe.call(Symbol,"Symbol.asyncIterator"))&&void 0!==ne?ne:"@@asyncIterator";function be(e,r="sync",o){if(void 0===o)if("async"===r){if(void 0===(o=ce(e,fe)))return function(e){const r={next(){let t;try{t=he(e)}catch(e){return d(e)}return de(t)},return(r){let o;try{const t=ce(e.iterator,"return");if(void 0===t)return c({done:!0,value:r});o=v(t,e.iterator,[r])}catch(e){return d(e)}return t(o)?de(o):d(new TypeError("The iterator.return() method must return an object"))}};return{iterator:r,nextMethod:r.next,done:!1}}(be(e,"sync",ce(e,Symbol.iterator)))}else o=ce(e,Symbol.iterator);if(void 0===o)throw new TypeError("The object is not iterable");const n=v(o,e,[]);if(!t(n))throw new TypeError("The iterator method must return an object");return{iterator:n,nextMethod:n.next,done:!1}}function he(e){const r=v(e.nextMethod,e.iterator,[]);if(!t(r))throw new TypeError("The iterator.next() method must return an object");return r}class _e{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,t,t):t(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;let t,r;const o=u((e,o)=>{t=e,r=o});return Z(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,y(()=>t({value:e,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,O(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,O(e),r(t)}}),o}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(!this._preventCancel){const r=C(t,e);return O(t),p(r,()=>({value:e,done:!0}))}return O(t),c({value:e,done:!0})}}const pe={next(){return me(this)?this._asyncIteratorImpl.next():d(ye("next"))},return(e){return me(this)?this._asyncIteratorImpl.return(e):d(ye("return"))},[fe](){return this}};function me(e){if(!t(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof _e}catch(e){return!1}}function ye(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(pe,fe,{enumerable:!1});const ve=Number.isNaN||function(e){return e!=e};function we(e){const t=ue(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function ge(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Se(e,t,r){if("number"!=typeof(o=r)||ve(o)||o<0||r===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var o;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function Re(e){e._queue=new g,e._queueTotalSize=0}function Te(e){return e===DataView}class qe{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Ce(this))throw et("view");return this._view}respond(e){if(!Ce(this))throw et("respond");if(x(e,1,"respond"),e=Y(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Ke(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Ce(this))throw et("respondWithNewView");if(x(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(e.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Qe(this._associatedReadableByteStreamController,e)}}Object.defineProperties(qe.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),o(qe.prototype.respond,"respond"),o(qe.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(qe.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Ee{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Pe(this))throw tt("byobRequest");return Xe(this)}get desiredSize(){if(!Pe(this))throw tt("desiredSize");return Je(this)}close(){if(!Pe(this))throw tt("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);Ve(this)}enqueue(e){if(!Pe(this))throw tt("enqueue");if(x(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);Ue(this,e)}error(e=void 0){if(!Pe(this))throw tt("error");He(this,e)}[T](e){Ae(this),Re(this);const t=this._cancelAlgorithm(e);return Ye(this),t}[q](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Ge(this,e);const r=this._autoAllocateChunkSize;if(void 0!==r){let o;try{o=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const n={buffer:o,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}H(t,e),Oe(this)}[E](){if(this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new g,this._pendingPullIntos.push(e)}}}function Pe(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof Ee}function Ce(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof qe}function Oe(e){const t=function(e){const t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&(!!(J(t)&&X(t)>0)||!!(at(t)&&it(t)>0)||Je(e)>0)}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Oe(e)),null),t=>(He(e,t),null))))}function Ae(e){xe(e),e._pendingPullIntos=new g}function je(e,t){let r=!1;"closed"===e._state&&(r=!0);const o=We(t);"default"===t.readerType?G(e,o,r):function(e,t,r){const o=e._reader._readIntoRequests.shift();r?o._closeSteps(t):o._chunkSteps(t)}(e,o,r)}function ke(e,t){for(let r=0;r<t.length;++r)je(e,t[r])}function We(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function ze(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function Be(e,t,r,o){let n;try{n=ue(t,r,r+o)}catch(t){throw He(e,t),t}ze(e,n,0,o)}function Fe(e,t){t.bytesFilled>0&&Be(e,t.buffer,t.byteOffset,t.bytesFilled),Ne(e)}function Ie(e,t){const r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r;let n=r,i=!1;const a=o-o%t.elementSize;a>=t.minimumFill&&(n=a-t.bytesFilled,i=!0);const s=e._queue;for(;n>0;){const r=s.peek(),o=Math.min(n,r.byteLength),i=t.byteOffset+t.bytesFilled;ae(t.buffer,i,r.buffer,r.byteOffset,o),r.byteLength===o?s.shift():(r.byteOffset+=o,r.byteLength-=o),e._queueTotalSize-=o,Le(e,o,t),n-=o}return i}function Le(e,t,r){r.bytesFilled+=t}function $e(e){0===e._queueTotalSize&&e._closeRequested?(Ye(e),Br(e._controlledReadableByteStream)):Oe(e)}function xe(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function De(e){const t=[];for(;e._pendingPullIntos.length>0&&0!==e._queueTotalSize;){const r=e._pendingPullIntos.peek();Ie(e,r)&&(Ne(e),t.push(r))}return t}function Me(e,t){const r=e._pendingPullIntos.peek();xe(e),"closed"===e._controlledReadableByteStream._state?function(e,t){"none"===t.readerType&&Ne(e);const r=e._controlledReadableByteStream;if(at(r)){const t=[];for(let o=0;o<it(r);++o)t.push(Ne(e));ke(r,t)}}(e,r):function(e,t,r){if(Le(0,t,r),"none"===r.readerType){Fe(e,r);const t=De(e);return void ke(e._controlledReadableByteStream,t)}if(r.bytesFilled<r.minimumFill)return;Ne(e);const o=r.bytesFilled%r.elementSize;if(o>0){const t=r.byteOffset+r.bytesFilled;Be(e,r.buffer,t-o,o)}r.bytesFilled-=o;const n=De(e);je(e._controlledReadableByteStream,r),ke(e._controlledReadableByteStream,n)}(e,t,r),Oe(e)}function Ne(e){return e._pendingPullIntos.shift()}function Ye(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ve(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!=0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw He(e,t),t}}Ye(e),Br(t)}}function Ue(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;const{buffer:o,byteOffset:n,byteLength:i}=t;if(le(o))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const a=se(o);if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(le(t.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");xe(e),t.buffer=se(t.buffer),"none"===t.readerType&&Fe(e,t)}if(J(r))(function(e){const t=e._controlledReadableByteStream._reader;for(;t._readRequests.length>0;){if(0===e._queueTotalSize)return;Ge(e,t._readRequests.shift())}})(e),0===X(r)?ze(e,a,n,i):(e._pendingPullIntos.length>0&&Ne(e),G(r,new Uint8Array(a,n,i),!1));else if(at(r)){ze(e,a,n,i);const t=De(e);ke(e._controlledReadableByteStream,t)}else ze(e,a,n,i);Oe(e)}function He(e,t){const r=e._controlledReadableByteStream;"readable"===r._state&&(Ae(e),Re(e),Ye(e),Fr(r,t))}function Ge(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLength,$e(e);const o=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(o)}function Xe(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),o=Object.create(qe.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(o,e,r),e._byobRequest=o}return e._byobRequest}function Je(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Ke(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=se(r.buffer),Me(e,t)}function Qe(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const o=t.byteLength;r.buffer=se(t.buffer),Me(e,o)}function Ze(e,t,r,o,n,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Re(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=o,t._cancelAlgorithm=n,t._autoAllocateChunkSize=a,t._pendingPullIntos=new g,e._readableStreamController=t,b(c(r()),()=>(t._started=!0,Oe(t),null),e=>(He(t,e),null))}function et(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function tt(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function rt(e,t){if("byob"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function ot(e){return new st(e)}function nt(e,t){e._reader._readIntoRequests.push(t)}function it(e){return e._reader._readIntoRequests.length}function at(e){const t=e._reader;return void 0!==t&&!!lt(t)}Object.defineProperties(Ee.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),o(Ee.prototype.close,"close"),o(Ee.prototype.enqueue,"enqueue"),o(Ee.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Ee.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class st{constructor(e){if(x(e,1,"ReadableStreamBYOBReader"),V(e,"First parameter"),Wr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Pe(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");P(this,e),this._readIntoRequests=new g}get closed(){return lt(this)?this._closedPromise:d(dt("closed"))}cancel(e=void 0){return lt(this)?void 0===this._ownerReadableStream?d(A("cancel")):C(this,e):d(dt("cancel"))}read(e,t={}){if(!lt(this))return d(dt("read"));if(!ArrayBuffer.isView(e))return d(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return d(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return d(new TypeError("view's buffer must have non-zero byteLength"));if(le(e.buffer))return d(new TypeError("view's buffer has been detached"));let r;try{r=function(e,t){var r;return I(e,t),{min:Y(null!==(r=null==e?void 0:e.min)&&void 0!==r?r:1,`${t} has member 'min' that`)}}(t,"options")}catch(e){return d(e)}const o=r.min;if(0===o)return d(new TypeError("options.min must be greater than 0"));if(function(e){return Te(e.constructor)}(e)){if(o>e.byteLength)return d(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(o>e.length)return d(new RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return d(A("read from"));let n,i;const a=u((e,t)=>{n=e,i=t});return ut(this,e,o,{_chunkSteps:e=>n({value:e,done:!1}),_closeSteps:e=>n({value:e,done:!0}),_errorSteps:e=>i(e)}),a}releaseLock(){if(!lt(this))throw dt("releaseLock");void 0!==this._ownerReadableStream&&function(e){O(e),ct(e,new TypeError("Reader was released"))}(this)}}function lt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof st}function ut(e,t,r,o){const n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?o._errorSteps(n._storedError):function(e,t,r,o){const n=e._controlledReadableByteStream,i=t.constructor,a=function(e){return Te(e)?1:e.BYTES_PER_ELEMENT}(i),{byteOffset:s,byteLength:l}=t,u=r*a;let c;try{c=se(t.buffer)}catch(e){return void o._errorSteps(e)}const d={buffer:c,bufferByteLength:c.byteLength,byteOffset:s,byteLength:l,bytesFilled:0,minimumFill:u,elementSize:a,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(d),void nt(n,o);if("closed"!==n._state){if(e._queueTotalSize>0){if(Ie(e,d)){const t=We(d);return $e(e),void o._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return He(e,t),void o._errorSteps(t)}}e._pendingPullIntos.push(d),nt(n,o),Oe(e)}else{const e=new i(d.buffer,d.byteOffset,0);o._closeSteps(e)}}(n._readableStreamController,t,r,o)}function ct(e,t){const r=e._readIntoRequests;e._readIntoRequests=new g,r.forEach(e=>{e._errorSteps(t)})}function dt(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function ft(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(ve(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function bt(e){const{size:t}=e;return t||(()=>1)}function ht(e,t){I(e,t);const r=null==e?void 0:e.highWaterMark,o=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:M(r),size:void 0===o?void 0:_t(o,`${t} has member 'size' that`)}}function _t(e,t){return L(e,t),t=>M(e(t))}function pt(e,t,r){return L(e,r),r=>w(e,t,[r])}function mt(e,t,r){return L(e,r),()=>w(e,t,[])}function yt(e,t,r){return L(e,r),r=>v(e,t,[r])}function vt(e,t,r){return L(e,r),(r,o)=>w(e,t,[r,o])}function wt(e,t){if(!Rt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(st.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(st.prototype.cancel,"cancel"),o(st.prototype.read,"read"),o(st.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(st.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class gt{constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const r=ht(t,"Second parameter"),o=function(e,t){I(e,t);const r=null==e?void 0:e.abort,o=null==e?void 0:e.close,n=null==e?void 0:e.start,i=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:pt(r,e,`${t} has member 'abort' that`),close:void 0===o?void 0:mt(o,e,`${t} has member 'close' that`),start:void 0===n?void 0:yt(n,e,`${t} has member 'start' that`),write:void 0===a?void 0:vt(a,e,`${t} has member 'write' that`),type:i}}(e,"First parameter");if(function(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new g,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}(this),void 0!==o.type)throw new RangeError("Invalid type is specified");const n=bt(r);!function(e,t,r,o){const n=Object.create(xt.prototype);let i,a,s,l;i=void 0!==t.start?()=>t.start(n):()=>{},a=void 0!==t.write?e=>t.write(e,n):()=>c(void 0),s=void 0!==t.close?()=>t.close():()=>c(void 0),l=void 0!==t.abort?e=>t.abort(e):()=>c(void 0),function(e,t,r,o,n,i,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Re(t),t._abortReason=void 0,t._abortController=function(){if("function"==typeof AbortController)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=o,t._closeAlgorithm=n,t._abortAlgorithm=i;const l=Ut(t);kt(e,l),b(c(r()),()=>(t._started=!0,Yt(t),null),r=>(t._started=!0,Pt(e,r),null))}(e,n,i,a,s,l,r,o)}(this,o,ft(r,1),n)}get locked(){if(!Rt(this))throw Gt("locked");return Tt(this)}abort(e=void 0){return Rt(this)?Tt(this)?d(new TypeError("Cannot abort a stream that already has a writer")):qt(this,e):d(Gt("abort"))}close(){return Rt(this)?Tt(this)?d(new TypeError("Cannot close a stream that already has a writer")):At(this)?d(new TypeError("Cannot close an already-closing stream")):Et(this):d(Gt("close"))}getWriter(){if(!Rt(this))throw Gt("getWriter");return St(this)}}function St(e){return new Wt(e)}function Rt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof gt}function Tt(e){return void 0!==e._writer}function qt(e,t){var r;if("closed"===e._state||"errored"===e._state)return c(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort(t);const o=e._state;if("closed"===o||"errored"===o)return c(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===o&&(n=!0,t=void 0);const i=u((r,o)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:o,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,n||Ct(e,t),i}function Et(e){const t=e._state;if("closed"===t||"errored"===t)return d(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=u((t,r)=>{const o={_resolve:t,_reject:r};e._closeRequest=o}),o=e._writer;var n;return void 0!==o&&e._backpressure&&"writable"===t&&ar(o),Se(n=e._writableStreamController,$t,0),Yt(n),r}function Pt(e,t){"writable"!==e._state?Ot(e):Ct(e,t)}function Ct(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const o=e._writer;void 0!==o&&Ft(o,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&Ot(e)}function Ot(e){e._state="errored",e._writableStreamController[R]();const t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new g,void 0===e._pendingAbortRequest)return void jt(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void jt(e);b(e._writableStreamController[S](r._reason),()=>(r._resolve(),jt(e),null),t=>(r._reject(t),jt(e),null))}function At(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function jt(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&er(t,e._storedError)}function kt(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){rr(e)}(r):ar(r)),e._backpressure=t}Object.defineProperties(gt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),o(gt.prototype.abort,"abort"),o(gt.prototype.close,"close"),o(gt.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class Wt{constructor(e){if(x(e,1,"WritableStreamDefaultWriter"),wt(e,"First parameter"),Tt(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!At(e)&&e._backpressure?rr(this):nr(this),Qt(this);else if("erroring"===t)or(this,e._storedError),Qt(this);else if("closed"===t)nr(this),Qt(this),tr(this);else{const t=e._storedError;or(this,t),Zt(this,t)}}get closed(){return zt(this)?this._closedPromise:d(Jt("closed"))}get desiredSize(){if(!zt(this))throw Jt("desiredSize");if(void 0===this._ownerWritableStream)throw Kt("desiredSize");return function(e){const t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Nt(t._writableStreamController)}(this)}get ready(){return zt(this)?this._readyPromise:d(Jt("ready"))}abort(e=void 0){return zt(this)?void 0===this._ownerWritableStream?d(Kt("abort")):function(e,t){return qt(e._ownerWritableStream,t)}(this,e):d(Jt("abort"))}close(){if(!zt(this))return d(Jt("close"));const e=this._ownerWritableStream;return void 0===e?d(Kt("close")):At(e)?d(new TypeError("Cannot close an already-closing stream")):Bt(this)}releaseLock(){if(!zt(this))throw Jt("releaseLock");void 0!==this._ownerWritableStream&&It(this)}write(e=void 0){return zt(this)?void 0===this._ownerWritableStream?d(Kt("write to")):Lt(this,e):d(Jt("write"))}}function zt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof Wt}function Bt(e){return Et(e._ownerWritableStream)}function Ft(e,t){"pending"===e._readyPromiseState?ir(e,t):function(e,t){or(e,t)}(e,t)}function It(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ft(e,r),function(e,t){"pending"===e._closedPromiseState?er(e,t):function(e,t){Zt(e,t)}(e,t)}(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function Lt(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,n=function(e,t){if(void 0===e._strategySizeAlgorithm)return 1;try{return e._strategySizeAlgorithm(t)}catch(t){return Vt(e,t),1}}(o,t);if(r!==e._ownerWritableStream)return d(Kt("write to"));const i=r._state;if("errored"===i)return d(r._storedError);if(At(r)||"closed"===i)return d(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return d(r._storedError);const a=function(e){return u((t,r)=>{const o={_resolve:t,_reject:r};e._writeRequests.push(o)})}(r);return function(e,t,r){try{Se(e,t,r)}catch(t){return void Vt(e,t)}const o=e._controlledWritableStream;At(o)||"writable"!==o._state||kt(o,Ut(e)),Yt(e)}(o,t,n),a}Object.defineProperties(Wt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),o(Wt.prototype.abort,"abort"),o(Wt.prototype.close,"close"),o(Wt.prototype.releaseLock,"releaseLock"),o(Wt.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Wt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const $t={};class xt{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Dt(this))throw Xt("abortReason");return this._abortReason}get signal(){if(!Dt(this))throw Xt("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e=void 0){if(!Dt(this))throw Xt("error");"writable"===this._controlledWritableStream._state&&Ht(this,e)}[S](e){const t=this._abortAlgorithm(e);return Mt(this),t}[R](){Re(this)}}function Dt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof xt}function Mt(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Nt(e){return e._strategyHWM-e._queueTotalSize}function Yt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void Ot(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===$t?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),ge(e);const r=e._closeAlgorithm();Mt(e),b(r,()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&tr(t)}(t),null),e=>(function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Pt(e,t)}(t,e),null))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r),b(e._writeAlgorithm(t),()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(ge(e),!At(r)&&"writable"===t){const t=Ut(e);kt(r,t)}return Yt(e),null},t=>("writable"===r._state&&Mt(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Pt(e,t)}(r,t),null))}(e,r)}function Vt(e,t){"writable"===e._controlledWritableStream._state&&Ht(e,t)}function Ut(e){return Nt(e)<=0}function Ht(e,t){const r=e._controlledWritableStream;Mt(e),Ct(r,t)}function Gt(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function Xt(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function Jt(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Kt(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Qt(e){e._closedPromise=u((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Zt(e,t){Qt(e),er(e,t)}function er(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function tr(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function rr(e){e._readyPromise=u((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function or(e,t){rr(e),ir(e,t)}function nr(e){rr(e),ar(e)}function ir(e,t){void 0!==e._readyPromise_reject&&(m(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function ar(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(xt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(xt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const sr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof global?global:void 0,lr=function(){const e=null==sr?void 0:sr.DOMException;return function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;if("DOMException"!==e.name)return!1;try{return new e,!0}catch(e){return!1}}(e)?e:void 0}()||function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return o(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function ur(t,r,o,n,i,a){const s=U(t),l=St(r);t._disturbed=!0;let p=!1,y=c(void 0);return u((v,w)=>{let g;if(void 0!==a){if(g=()=>{const e=void 0!==a.reason?a.reason:new lr("Aborted","AbortError"),o=[];n||o.push(()=>"writable"===r._state?qt(r,e):c(void 0)),i||o.push(()=>"readable"===t._state?zr(t,e):c(void 0)),P(()=>Promise.all(o.map(e=>e())),!0,e)},a.aborted)return void g();a.addEventListener("abort",g)}var S,R,T;if(E(t,s._closedPromise,e=>(n?C(!0,e):P(()=>qt(r,e),!0,e),null)),E(r,l._closedPromise,e=>(i?C(!0,e):P(()=>zr(t,e),!0,e),null)),S=t,R=s._closedPromise,T=()=>(o?C():P(()=>function(e){const t=e._ownerWritableStream,r=t._state;return At(t)||"closed"===r?c(void 0):"errored"===r?d(t._storedError):Bt(e)}(l)),null),"closed"===S._state?T():h(R,T),At(r)||"closed"===r._state){const e=new TypeError("the destination writable stream closed before all data could be piped to it");i?C(!0,e):P(()=>zr(t,e),!0,e)}function q(){const e=y;return f(y,()=>e!==y?q():void 0)}function E(e,t,r){"errored"===e._state?r(e._storedError):_(t,r)}function P(e,t,o){function n(){return b(e(),()=>A(t,o),e=>A(!0,e)),null}p||(p=!0,"writable"!==r._state||At(r)?n():h(q(),n))}function C(e,t){p||(p=!0,"writable"!==r._state||At(r)?A(e,t):h(q(),()=>A(e,t)))}function A(e,t){return It(l),O(s),void 0!==a&&a.removeEventListener("abort",g),e?w(t):v(void 0),null}m(u((t,r)=>{!function o(n){n?t():f(p?c(!0):f(l._readyPromise,()=>u((t,r)=>{Z(s,{_chunkSteps:r=>{y=f(Lt(l,r),void 0,e),t(!1)},_closeSteps:()=>t(!0),_errorSteps:r})})),o,r)}(!1)}))})}class cr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!dr(this))throw gr("desiredSize");return yr(this)}close(){if(!dr(this))throw gr("close");if(!vr(this))throw new TypeError("The stream is not in a state that permits close");_r(this)}enqueue(e=void 0){if(!dr(this))throw gr("enqueue");if(!vr(this))throw new TypeError("The stream is not in a state that permits enqueue");return pr(this,e)}error(e=void 0){if(!dr(this))throw gr("error");mr(this,e)}[T](e){Re(this);const t=this._cancelAlgorithm(e);return hr(this),t}[q](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=ge(this);this._closeRequested&&0===this._queue.length?(hr(this),Br(t)):fr(this),e._chunkSteps(r)}else H(t,e),fr(this)}[E](){}}function dr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof cr}function fr(e){br(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,fr(e)),null),t=>(mr(e,t),null))))}function br(e){const t=e._controlledReadableStream;return!!vr(e)&&!!e._started&&(!!(Wr(t)&&X(t)>0)||yr(e)>0)}function hr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function _r(e){if(!vr(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(hr(e),Br(t))}function pr(e,t){if(!vr(e))return;const r=e._controlledReadableStream;if(Wr(r)&&X(r)>0)G(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw mr(e,t),t}try{Se(e,t,r)}catch(t){throw mr(e,t),t}}fr(e)}function mr(e,t){const r=e._controlledReadableStream;"readable"===r._state&&(Re(e),hr(e),Fr(r,t))}function yr(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function vr(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function wr(e,t,r,o,n,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Re(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=i,t._pullAlgorithm=o,t._cancelAlgorithm=n,e._readableStreamController=t,b(c(r()),()=>(t._started=!0,fr(t),null),e=>(mr(t,e),null))}function gr(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function Sr(r){return t(o=r)&&void 0!==o.getReader?function(r){let o;return o=Or(e,function(){let e;try{e=r.read()}catch(e){return d(e)}return p(e,e=>{if(!t(e))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)_r(o._readableStreamController);else{const t=e.value;pr(o._readableStreamController,t)}})},function(e){try{return c(r.cancel(e))}catch(e){return d(e)}},0),o}(r.getReader()):function(r){let o;const n=be(r,"async");return o=Or(e,function(){let e;try{e=he(n)}catch(e){return d(e)}return p(c(e),e=>{if(!t(e))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)_r(o._readableStreamController);else{const t=e.value;pr(o._readableStreamController,t)}})},function(e){const r=n.iterator;let o;try{o=ce(r,"return")}catch(e){return d(e)}return void 0===o?c(void 0):p(w(o,r,[e]),e=>{if(!t(e))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})},0),o}(r);var o}function Rr(e,t,r){return L(e,r),r=>w(e,t,[r])}function Tr(e,t,r){return L(e,r),r=>w(e,t,[r])}function qr(e,t,r){return L(e,r),r=>v(e,t,[r])}function Er(e,t){if("bytes"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Pr(e,t){I(e,t);const r=null==e?void 0:e.preventAbort,o=null==e?void 0:e.preventCancel,n=null==e?void 0:e.preventClose,i=null==e?void 0:e.signal;return void 0!==i&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(i,`${t} has member 'signal' that`),{preventAbort:Boolean(r),preventCancel:Boolean(o),preventClose:Boolean(n),signal:i}}Object.defineProperties(cr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),o(cr.prototype.close,"close"),o(cr.prototype.enqueue,"enqueue"),o(cr.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(cr.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class Cr{constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const r=ht(t,"Second parameter"),o=function(e,t){I(e,t);const r=e,o=null==r?void 0:r.autoAllocateChunkSize,n=null==r?void 0:r.cancel,i=null==r?void 0:r.pull,a=null==r?void 0:r.start,s=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===o?void 0:Y(o,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===n?void 0:Rr(n,r,`${t} has member 'cancel' that`),pull:void 0===i?void 0:Tr(i,r,`${t} has member 'pull' that`),start:void 0===a?void 0:qr(a,r,`${t} has member 'start' that`),type:void 0===s?void 0:Er(s,`${t} has member 'type' that`)}}(e,"First parameter");if(jr(this),"bytes"===o.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){const o=Object.create(Ee.prototype);let n,i,a;n=void 0!==t.start?()=>t.start(o):()=>{},i=void 0!==t.pull?()=>t.pull(o):()=>c(void 0),a=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0);const s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");Ze(e,o,n,i,a,r,s)}(this,o,ft(r,0))}else{const e=bt(r);!function(e,t,r,o){const n=Object.create(cr.prototype);let i,a,s;i=void 0!==t.start?()=>t.start(n):()=>{},a=void 0!==t.pull?()=>t.pull(n):()=>c(void 0),s=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0),wr(e,n,i,a,s,r,o)}(this,o,ft(r,1),e)}}get locked(){if(!kr(this))throw Ir("locked");return Wr(this)}cancel(e=void 0){return kr(this)?Wr(this)?d(new TypeError("Cannot cancel a stream that already has a reader")):zr(this,e):d(Ir("cancel"))}getReader(e=void 0){if(!kr(this))throw Ir("getReader");return void 0===function(e,t){I(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:rt(r,`${t} has member 'mode' that`)}}(e,"First parameter").mode?U(this):ot(this)}pipeThrough(e,t={}){if(!kr(this))throw Ir("pipeThrough");x(e,1,"pipeThrough");const r=function(e,t){I(e,t);const r=null==e?void 0:e.readable;D(r,"readable","ReadableWritablePair"),V(r,`${t} has member 'readable' that`);const o=null==e?void 0:e.writable;return D(o,"writable","ReadableWritablePair"),wt(o,`${t} has member 'writable' that`),{readable:r,writable:o}}(e,"First parameter"),o=Pr(t,"Second parameter");if(Wr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Tt(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return m(ur(this,r.writable,o.preventClose,o.preventAbort,o.preventCancel,o.signal)),r.readable}pipeTo(e,t={}){if(!kr(this))return d(Ir("pipeTo"));if(void 0===e)return d("Parameter 1 is required in 'pipeTo'.");if(!Rt(e))return d(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let r;try{r=Pr(t,"Second parameter")}catch(e){return d(e)}return Wr(this)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Tt(e)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ur(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!kr(this))throw Ir("tee");return ie(function(e){return Pe(e._readableStreamController)?function(e){let t,r,o,n,i,a=U(e),s=!1,l=!1,d=!1,f=!1,b=!1;const h=u(e=>{i=e});function p(e){_(e._closedPromise,t=>(e!==a||(He(o._readableStreamController,t),He(n._readableStreamController,t),f&&b||i(void 0)),null))}function m(){lt(a)&&(O(a),a=U(e),p(a)),Z(a,{_chunkSteps:t=>{y(()=>{l=!1,d=!1;const r=t;let a=t;if(!f&&!b)try{a=we(t)}catch(t){return He(o._readableStreamController,t),He(n._readableStreamController,t),void i(zr(e,t))}f||Ue(o._readableStreamController,r),b||Ue(n._readableStreamController,a),s=!1,l?w():d&&g()})},_closeSteps:()=>{s=!1,f||Ve(o._readableStreamController),b||Ve(n._readableStreamController),o._readableStreamController._pendingPullIntos.length>0&&Ke(o._readableStreamController,0),n._readableStreamController._pendingPullIntos.length>0&&Ke(n._readableStreamController,0),f&&b||i(void 0)},_errorSteps:()=>{s=!1}})}function v(t,r){Q(a)&&(O(a),a=ot(e),p(a));const u=r?n:o,c=r?o:n;ut(a,t,1,{_chunkSteps:t=>{y(()=>{l=!1,d=!1;const o=r?b:f;if(r?f:b)o||Qe(u._readableStreamController,t);else{let r;try{r=we(t)}catch(t){return He(u._readableStreamController,t),He(c._readableStreamController,t),void i(zr(e,t))}o||Qe(u._readableStreamController,t),Ue(c._readableStreamController,r)}s=!1,l?w():d&&g()})},_closeSteps:e=>{s=!1;const t=r?b:f,o=r?f:b;t||Ve(u._readableStreamController),o||Ve(c._readableStreamController),void 0!==e&&(t||Qe(u._readableStreamController,e),!o&&c._readableStreamController._pendingPullIntos.length>0&&Ke(c._readableStreamController,0)),t&&o||i(void 0)},_errorSteps:()=>{s=!1}})}function w(){if(s)return l=!0,c(void 0);s=!0;const e=Xe(o._readableStreamController);return null===e?m():v(e._view,!1),c(void 0)}function g(){if(s)return d=!0,c(void 0);s=!0;const e=Xe(n._readableStreamController);return null===e?m():v(e._view,!0),c(void 0)}function S(){}return o=Ar(S,w,function(o){if(f=!0,t=o,b){const o=ie([t,r]),n=zr(e,o);i(n)}return h}),n=Ar(S,g,function(o){if(b=!0,r=o,f){const o=ie([t,r]),n=zr(e,o);i(n)}return h}),p(a),[o,n]}(e):function(e){const t=U(e);let r,o,n,i,a,s=!1,l=!1,d=!1,f=!1;const b=u(e=>{a=e});function h(){return s?(l=!0,c(void 0)):(s=!0,Z(t,{_chunkSteps:e=>{y(()=>{l=!1;const t=e,r=e;d||pr(n._readableStreamController,t),f||pr(i._readableStreamController,r),s=!1,l&&h()})},_closeSteps:()=>{s=!1,d||_r(n._readableStreamController),f||_r(i._readableStreamController),d&&f||a(void 0)},_errorSteps:()=>{s=!1}}),c(void 0))}function p(){}return n=Or(p,h,function(t){if(d=!0,r=t,f){const t=ie([r,o]),n=zr(e,t);a(n)}return b}),i=Or(p,h,function(t){if(f=!0,o=t,d){const t=ie([r,o]),n=zr(e,t);a(n)}return b}),_(t._closedPromise,e=>(mr(n._readableStreamController,e),mr(i._readableStreamController,e),d&&f||a(void 0),null)),[n,i]}(e)}(this))}values(e=void 0){if(!kr(this))throw Ir("values");return function(e,t){const r=U(e),o=new _e(r,t),n=Object.create(pe);return n._asyncIteratorImpl=o,n}(this,function(e){I(e,"First parameter");const t=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(t)}}(e).preventCancel)}[fe](e){return this.values(e)}static from(e){return Sr(e)}}function Or(e,t,r,o=1,n=()=>1){const i=Object.create(Cr.prototype);return jr(i),wr(i,Object.create(cr.prototype),e,t,r,o,n),i}function Ar(e,t,r){const o=Object.create(Cr.prototype);return jr(o),Ze(o,Object.create(Ee.prototype),e,t,r,0,void 0),o}function jr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function kr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof Cr}function Wr(e){return void 0!==e._reader}function zr(t,r){if(t._disturbed=!0,"closed"===t._state)return c(void 0);if("errored"===t._state)return d(t._storedError);Br(t);const o=t._reader;if(void 0!==o&<(o)){const e=o._readIntoRequests;o._readIntoRequests=new g,e.forEach(e=>{e._closeSteps(void 0)})}return p(t._readableStreamController[T](r),e)}function Br(e){e._state="closed";const t=e._reader;if(void 0!==t&&(z(t),Q(t))){const e=t._readRequests;t._readRequests=new g,e.forEach(e=>{e._closeSteps()})}}function Fr(e,t){e._state="errored",e._storedError=t;const r=e._reader;void 0!==r&&(W(r,t),Q(r)?ee(r,t):ct(r,t))}function Ir(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Lr(e,t){(function(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0})(e._transformStreamController),Vt(e._writable._writableStreamController,t),function(e){e._backpressure&&$r(e,!1)}(e)}function $r(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=u(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(Cr,{from:{enumerable:!0}}),Object.defineProperties(Cr.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),o(Cr.from,"from"),o(Cr.prototype.cancel,"cancel"),o(Cr.prototype.getReader,"getReader"),o(Cr.prototype.pipeThrough,"pipeThrough"),o(Cr.prototype.pipeTo,"pipeTo"),o(Cr.prototype.tee,"tee"),o(Cr.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Cr.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Cr.prototype,fe,{value:Cr.prototype.values,writable:!0,configurable:!0}),o(e=>e.byteLength,"size"),o(()=>1,"size");class xr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Dr(this))throw Mr("desiredSize");return yr(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!Dr(this))throw Mr("enqueue");!function(e,t){const r=e._controlledTransformStream,o=r._readable._readableStreamController;if(!vr(o))throw new TypeError("Readable side is not in a state that permits enqueue");try{pr(o,t)}catch(e){throw Lr(r,e),r._readable._storedError}const n=function(e){return!br(e)}(o);n!==r._backpressure&&$r(r,!0)}(this,e)}error(e=void 0){if(!Dr(this))throw Mr("error");var t;t=e,function(e,t){mr(e._readable._readableStreamController,t),Lr(e,t)}(this._controlledTransformStream,t)}terminate(){if(!Dr(this))throw Mr("terminate");!function(e){const t=e._controlledTransformStream;_r(t._readable._readableStreamController),Lr(t,new TypeError("TransformStream terminated"))}(this)}}function Dr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof xr}function Mr(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}Object.defineProperties(xr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),o(xr.prototype.enqueue,"enqueue"),o(xr.prototype.error,"error"),o(xr.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(xr.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});export{Ee as ReadableByteStreamController,Cr as ReadableStream,st as ReadableStreamBYOBReader,qe as ReadableStreamBYOBRequest,cr as ReadableStreamDefaultController,K as ReadableStreamDefaultReader,xr as TransformStreamDefaultController,gt as WritableStream,xt as WritableStreamDefaultController,Wt as WritableStreamDefaultWriter};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import{I as e,h as t}from"./4GgcUVhUmQmiv9Ha.mjs";const n=async(e,t)=>{const{trimLeadingBlankRow:n=!0,trimLeadingBlankColumn:r=!0,excludeHidden:o=!1,sheetKey:s=null,papaParseConfig:a={}}=t||{},i=await import("./Cf8eDl3Tu5NAWWwG.mjs").then(e=>e.p);if(!e)throw new Error("workbook must be specified");let l=null;if(null===s?l=e.getSelectedSheet():"number"==typeof s?l=e.getSheets().search()[s]:"string"==typeof s&&(l=e.getSheets().getByName(s)),!l)throw new Error("invalid sheetKey specified");let p=null;const c=[];let d=null,f=l.getUsedRange({excludeHidden:o});if(!f)throw new Error("Nothing to export");if(!n||!r){const e=n?f.getRowStart():0,t=r?f.getColumnStart():0;f=f.getOffsetTo(e,t)}f.forEach((e,t)=>{const n=t.getCoords(),r=t.getCell();p!==n.rowIndex&&(d&&c.push(d),d=[],p=n.rowIndex);const o=r.toTextUnformatted()??"";d.push(o)},{includeEmpty:!0,address:null}),d&&c.push(d);const u={...a},g=i.unparse(c,u);return(new TextEncoder).encode(g).buffer},r=async(n,r)=>{const{papaParseConfig:o,setValuesOptions:s,createWorkbookOptions:a}=r??{},i=await import("./Cf8eDl3Tu5NAWWwG.mjs").then(e=>e.p),l=(new TextDecoder).decode(n);let p=-1;const c=new e(a),d=c.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:t.Orientation.Row}),f=r?.onProgress;let u=0;const g={...o,transform:(e,t)=>{o?.transform&&(e=o.transform(e,t));const n=t;0===n&&p++;let r=e??"";return d.pushAt(p,n,r),u++,u%1e5==0&&f?.(u),e}};return i.parse(l,g).data,d.apply({textParser:!0,...s}),c};export{r as fromBufferCSV,n as toBufferCSV};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import{r as t,J as e,e as r,j as n,f as o,B as i,M as a,z as u,U as s,g as c}from"./4GgcUVhUmQmiv9Ha.mjs";const f=a(s());function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}var h=/^\s+/,p=/\s+$/;function d(t,e){if(e=e||{},(t=t||"")instanceof d)return t;if(!(this instanceof d))return new d(t,e);var r=function(t){var e,r,n,o={r:0,g:0,b:0},i=1,a=null,u=null,s=null,c=!1,f=!1;return"string"==typeof t&&(t=function(t){t=t.replace(h,"").replace(p,"").toLowerCase();var e,r=!1;if(R[t])t=R[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=I.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=I.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=I.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=I.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=I.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=I.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=I.hex8.exec(t))?{r:F(e[1]),g:F(e[2]),b:F(e[3]),a:H(e[4]),format:r?"name":"hex8"}:(e=I.hex6.exec(t))?{r:F(e[1]),g:F(e[2]),b:F(e[3]),format:r?"name":"hex"}:(e=I.hex4.exec(t))?{r:F(e[1]+""+e[1]),g:F(e[2]+""+e[2]),b:F(e[3]+""+e[3]),a:H(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=I.hex3.exec(t))&&{r:F(e[1]+""+e[1]),g:F(e[2]+""+e[2]),b:F(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==l(t)&&(V(t.r)&&V(t.g)&&V(t.b)?(e=t.r,r=t.g,n=t.b,o={r:255*L(e,255),g:255*L(r,255),b:255*L(n,255)},c=!0,f="%"===String(t.r).substr(-1)?"prgb":"rgb"):V(t.h)&&V(t.s)&&V(t.v)?(a=z(t.s),u=z(t.v),o=function(t,e,r){t=6*L(t,360),e=L(e,100),r=L(r,100);var n=Math.floor(t),o=t-n,i=r*(1-e),a=r*(1-o*e),u=r*(1-(1-o)*e),s=n%6;return{r:255*[r,a,i,i,u,r][s],g:255*[u,r,r,a,i,i][s],b:255*[i,i,u,r,r,a][s]}}(t.h,a,u),c=!0,f="hsv"):V(t.h)&&V(t.s)&&V(t.l)&&(a=z(t.s),s=z(t.l),o=function(t,e,r){var n,o,i;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=o=i=r;else{var u=r<.5?r*(1+e):r+e-r*e,s=2*r-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*n,g:255*o,b:255*i}}(t.h,a,s),c=!0,f="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=T(i),{ok:c,format:t.format||f,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}function b(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,l:u}}function v(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,o,i=Math.max(t,e,r),a=Math.min(t,e,r),u=i,s=i-a;if(o=0===i?0:s/i,i==a)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,v:u}}function g(t,e,r,n){var o=[D(Math.round(t).toString(16)),D(Math.round(e).toString(16)),D(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function y(t,e,r,n){return[D(B(n)),D(Math.round(t).toString(16)),D(Math.round(e).toString(16)),D(Math.round(r).toString(16))].join("")}function m(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.s-=e/100,r.s=U(r.s),d(r)}function _(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.s+=e/100,r.s=U(r.s),d(r)}function w(t){return d(t).desaturate(100)}function x(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.l+=e/100,r.l=U(r.l),d(r)}function j(t,e){e=0===e?0:e||10;var r=d(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-e/100*255))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-e/100*255))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-e/100*255))),d(r)}function O(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.l-=e/100,r.l=U(r.l),d(r)}function M(t,e){var r=d(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,d(r)}function S(t){var e=d(t).toHsl();return e.h=(e.h+180)%360,d(e)}function k(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=d(t).toHsl(),n=[d(t)],o=360/e,i=1;i<e;i++)n.push(d({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function A(t){var e=d(t).toHsl(),r=e.h;return[d(t),d({h:(r+72)%360,s:e.s,l:e.l}),d({h:(r+216)%360,s:e.s,l:e.l})]}function C(t,e,r){e=e||6,r=r||30;var n=d(t).toHsl(),o=360/r,i=[d(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push(d(n));return i}function E(t,e){e=e||6;for(var r=d(t).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/e;e--;)a.push(d({h:n,s:o,v:i})),i=(i+u)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=T(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=b(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=b(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,o){var i=[D(Math.round(t).toString(16)),D(Math.round(e).toString(16)),D(Math.round(r).toString(16)),D(B(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*L(this._r,255))+"%",g:Math.round(100*L(this._g,255))+"%",b:Math.round(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*L(this._r,255))+"%, "+Math.round(100*L(this._g,255))+"%, "+Math.round(100*L(this._b,255))+"%)":"rgba("+Math.round(100*L(this._r,255))+"%, "+Math.round(100*L(this._g,255))+"%, "+Math.round(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+y(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=d(t);r="#"+y(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(k,[3])},tetrad:function(){return this._applyCombination(k,[4])}},d.fromRatio=function(t,e){if("object"==l(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:z(t[n]));t=r}return d(t,e)},d.equals=function(t,e){return!(!t||!e)&&d(t).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},d.mix=function(t,e,r){r=0===r?0:r||50;var n=d(t).toRgb(),o=d(e).toRgb(),i=r/100;return d({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},d.readability=function(t,e){var r=d(t),n=d(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(t,e,r){var n,o,i=d.readability(t,e);switch(o=!1,(n=function(t){var e,r;return"AA"!==(e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==e&&(e="AA"),"small"!==(r=(t.size||"small").toLowerCase())&&"large"!==r&&(r="small"),{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},d.mostReadable=function(t,e,r){var n,o,i,a,u=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var c=0;c<e.length;c++)(n=d.readability(t,e[c]))>s&&(s=n,u=d(e[c]));return d.isReadable(t,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,d.mostReadable(t,["#fff","#000"],r))};var R=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=d.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(R);function T(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function L(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function U(t){return Math.min(1,Math.max(0,t))}function F(t){return parseInt(t,16)}function D(t){return 1==t.length?"0"+t:""+t}function z(t){return t<=1&&(t=100*t+"%"),t}function B(t){return Math.round(255*parseFloat(t)).toString(16)}function H(t){return F(t)/255}var W,$,N,I=($="[\\s|\\(]+("+(W="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",N="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",{CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(t){return!!I.CSS_UNIT.exec(t)}var X,Y,q,K,G,J,Q,Z,tt,et,rt,nt,ot,it,at,ut,st,ct,ft,lt,ht,pt,dt,bt,vt,gt,yt,mt,_t={},wt={};function xt(){if(Y)return X;Y=1;var t="object"==typeof c&&c&&c.Object===Object&&c;return X=t}function jt(){if(K)return q;K=1;var t=xt(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return q=r}function Ot(){if(J)return G;J=1;var t=jt().Symbol;return G=t}function Mt(){if(nt)return rt;nt=1;var t=Ot(),e=function(){if(Z)return Q;Z=1;var t=Ot(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return Q=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var u=n.call(t);return a&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(et)return tt;et=1;var t=Object.prototype.toString;return tt=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return rt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function St(){if(it)return ot;it=1;var t=Array.isArray;return ot=t}function kt(){return ut?at:(ut=1,at=function(t){return null!=t&&"object"==typeof t})}function At(){if(mt)return yt;mt=1;var t=function(){if(gt)return vt;gt=1;var t=Mt(),e=kt();return vt=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=kt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return yt=i}var Ct,Et,Rt,Pt,Tt,Lt,Ut,Ft,Dt,zt,Bt,Ht={exports:{}};function Wt(){return Rt||(Rt=1,t=Ht,e=Ht.exports,r=jt(),n=Et?Ct:(Et=1,Ct=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||n,t.exports=u),Ht.exports;var t,e,r,n,o,i,a,u}function $t(){if(Tt)return Pt;Tt=1;var t=/^(?:0|[1-9]\d*)$/;return Pt=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Nt(){return Ut?Lt:(Ut=1,Lt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991})}function It(){return Bt?zt:(Bt=1,zt=function(t){return function(e){return t(e)}})}var Vt,Xt,Yt,qt,Kt,Gt,Jt,Qt,Zt,te,ee,re,ne,oe,ie,ae,ue,se,ce,fe,le,he,pe,de,be,ve,ge,ye,me,_e,we,xe,je,Oe,Me,Se,ke,Ae,Ce,Ee,Re,Pe,Te,Le,Ue,Fe,De,ze,Be,He,We,$e,Ne,Ie,Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,rr,nr,or,ir,ar,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,_r,wr,xr,jr,Or,Mr,Sr,kr,Ar,Cr,Er,Rr,Pr,Tr,Lr,Ur,Fr,Dr,zr,Br,Hr,Wr,$r,Nr,Ir,Vr,Xr,Yr,qr,Kr,Gr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,_n,wn,xn,jn,On,Mn,Sn,kn,An,Cn,En,Rn,Pn,Tn,Ln,Un,Fn,Dn,zn,Bn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,_o,wo,xo,jo,Oo,Mo,So,ko,Ao,Co,Eo,Ro,Po,To,Lo,Uo,Fo,Do,zo,Bo,Ho,Wo,$o,No={exports:{}};function Io(){return Vt||(Vt=1,t=No,e=No.exports,r=xt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=a),No.exports;var t,e,r,n,o,i,a}function Vo(){if(Yt)return Xt;Yt=1;var t=function(){if(Dt)return Ft;Dt=1;var t=Mt(),e=Nt(),r=kt(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Ft=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=It(),r=Io(),n=r&&r.isTypedArray,o=n?e(n):t;return Xt=o}function Xo(){if(Kt)return qt;Kt=1;var t=bt?dt:(bt=1,dt=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=At(),r=St(),n=Wt(),o=$t(),i=Vo(),a=Object.prototype.hasOwnProperty;return qt=function(u,s){var c=r(u),f=!c&&e(u),l=!c&&!f&&n(u),h=!c&&!f&&!l&&i(u),p=c||f||l||h,d=p?t(u.length,String):[],b=d.length;for(var v in u)!s&&!a.call(u,v)||p&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,b))||d.push(v);return d}}function Yo(){if(Jt)return Gt;Jt=1;var t=Object.prototype;return Gt=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function qo(){return Zt?Qt:(Zt=1,Qt=function(t,e){return function(r){return t(e(r))}})}function Ko(){return ie?oe:(ie=1,oe=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)})}function Go(){if(ue)return ae;ue=1;var t=Mt(),e=Ko();return ae=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Jo(){if(ce)return se;ce=1;var t=Go(),e=Nt();return se=function(r){return null!=r&&e(r.length)&&!t(r)}}function Qo(){if(le)return fe;le=1;var t=Xo(),e=function(){if(ne)return re;ne=1;var t=Yo(),e=function(){if(ee)return te;ee=1;var t=qo()(Object.keys,Object);return te=t}(),r=Object.prototype.hasOwnProperty;return re=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}(),r=Jo();return fe=function(n){return r(n)?t(n):e(n)}}function Zo(){if(pe)return he;pe=1;var t=function(){if(pt)return ht;pt=1;var t=(lt?ft:(lt=1,ft=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}))();return ht=t}(),e=Qo();return he=function(r,n){return r&&t(r,n,e)}}function ti(){return be?de:(be=1,de=function(t){return t})}function ei(){if(me)return ye;me=1;var t=Zo(),e=function(){if(ge)return ve;ge=1;var t=ti();return ve=function(e){return"function"==typeof e?e:t}}();return ye=function(r,n){return r&&t(r,e(n))}}function ri(){if(we)return _e;we=1;var t=qo()(Object.getPrototypeOf,Object);return _e=t}function ni(){return Me?Oe:(Me=1,Oe=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o})}function oi(){return Ce?Ae:(Ce=1,Ae=function(t,e){return t===e||t!=t&&e!=e})}function ii(){if(Re)return Ee;Re=1;var t=oi();return Ee=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function ai(){if(We)return He;We=1;var t=ke?Se:(ke=1,Se=function(){this.__data__=[],this.size=0}),e=function(){if(Te)return Pe;Te=1;var t=ii(),e=Array.prototype.splice;return Pe=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))}}(),r=function(){if(Ue)return Le;Ue=1;var t=ii();return Le=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(De)return Fe;De=1;var t=ii();return Fe=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Be)return ze;Be=1;var t=ii();return ze=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,He=i}function ui(){if(er)return tr;er=1;var t=Function.prototype.toString;return tr=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function si(){if(ur)return ar;ur=1;var t=function(){if(nr)return rr;nr=1;var t=Go(),e=function(){if(Ze)return Qe;Ze=1;var t,e=function(){if(Je)return Ge;Je=1;var t=jt()["__core-js_shared__"];return Ge=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Qe=function(t){return!!r&&r in t}}(),r=Ko(),n=ui(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,u=i.toString,s=a.hasOwnProperty,c=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return rr=function(i){return!(!r(i)||e(i))&&(t(i)?c:o).test(n(i))}}(),e=ir?or:(ir=1,or=function(t,e){return null==t?void 0:t[e]});return ar=function(r,n){var o=e(r,n);return t(o)?o:void 0}}function ci(){if(cr)return sr;cr=1;var t=si()(jt(),"Map");return sr=t}function fi(){if(lr)return fr;lr=1;var t=si()(Object,"create");return fr=t}function li(){if(Cr)return Ar;Cr=1;var t=kr?Sr:(kr=1,Sr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Ar=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function hi(){if(Br)return zr;Br=1;var t=function(){if(Mr)return Or;Mr=1;var t=function(){if(jr)return xr;jr=1;var t=function(){if(pr)return hr;pr=1;var t=fi();return hr=function(){this.__data__=t?t(null):{},this.size=0}}(),e=br?dr:(br=1,dr=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(gr)return vr;gr=1;var t=fi(),e=Object.prototype.hasOwnProperty;return vr=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(mr)return yr;mr=1;var t=fi(),e=Object.prototype.hasOwnProperty;return yr=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(wr)return _r;wr=1;var t=fi();return _r=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,xr=i}(),e=ai(),r=ci();return Or=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(Rr)return Er;Rr=1;var t=li();return Er=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(Tr)return Pr;Tr=1;var t=li();return Pr=function(e){return t(this,e).get(e)}}(),n=function(){if(Ur)return Lr;Ur=1;var t=li();return Lr=function(e){return t(this,e).has(e)}}(),o=function(){if(Dr)return Fr;Dr=1;var t=li();return Fr=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,zr=i}function pi(){if(Nr)return $r;Nr=1;var t=ai(),e=function(){if(Ne)return $e;Ne=1;var t=ai();return $e=function(){this.__data__=new t,this.size=0}}(),r=Ve?Ie:(Ve=1,Ie=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=Ye?Xe:(Ye=1,Xe=function(t){return this.__data__.get(t)}),o=Ke?qe:(Ke=1,qe=function(t){return this.__data__.has(t)}),i=function(){if(Wr)return Hr;Wr=1;var t=ai(),e=ci(),r=hi();return Hr=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,$r=a}function di(){if(en)return tn;en=1;var t=function(){if(Kr)return qr;Kr=1;var t=hi(),e=Vr?Ir:(Vr=1,Ir=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Yr?Xr:(Yr=1,Xr=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,qr=n}(),e=Jr?Gr:(Jr=1,Gr=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),r=Zr?Qr:(Zr=1,Qr=function(t,e){return t.has(e)});return tn=function(n,o,i,a,u,s){var c=1&i,f=n.length,l=o.length;if(f!=l&&!(c&&l>f))return!1;var h=s.get(n),p=s.get(o);if(h&&p)return h==o&&p==n;var d=-1,b=!0,v=2&i?new t:void 0;for(s.set(n,o),s.set(o,n);++d<f;){var g=n[d],y=o[d];if(a)var m=c?a(y,g,d,o,n,s):a(g,y,d,n,o,s);if(void 0!==m){if(m)continue;b=!1;break}if(v){if(!e(o,function(t,e){if(!r(v,e)&&(g===t||u(g,t,i,a,s)))return v.push(e)})){b=!1;break}}else if(g!==y&&!u(g,y,i,a,s)){b=!1;break}}return s.delete(n),s.delete(o),b}}function bi(){if(nn)return rn;nn=1;var t=jt().Uint8Array;return rn=t}function vi(){return hn?ln:(hn=1,ln=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t})}function gi(){if(dn)return pn;dn=1;var t=vi(),e=St();return pn=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))}}function yi(){return yn?gn:(yn=1,gn=function(){return[]})}function mi(){if(_n)return mn;_n=1;var t=vn?bn:(vn=1,bn=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}),e=yi(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return mn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}function _i(){if(xn)return wn;xn=1;var t=gi(),e=mi(),r=Qo();return wn=function(n){return t(n,r,e)}}function wi(){if(Ln)return Tn;Ln=1;var t=function(){if(Sn)return Mn;Sn=1;var t=si()(jt(),"DataView");return Mn=t}(),e=ci(),r=function(){if(An)return kn;An=1;var t=si()(jt(),"Promise");return kn=t}(),n=function(){if(En)return Cn;En=1;var t=si()(jt(),"Set");return Cn=t}(),o=function(){if(Pn)return Rn;Pn=1;var t=si()(jt(),"WeakMap");return Rn=t}(),i=Mt(),a=ui(),u="[object Map]",s="[object Promise]",c="[object Set]",f="[object WeakMap]",l="[object DataView]",h=a(t),p=a(e),d=a(r),b=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=l||e&&g(new e)!=u||r&&g(r.resolve())!=s||n&&g(new n)!=c||o&&g(new o)!=f)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case h:return l;case p:return u;case d:return s;case b:return c;case v:return f}return e}),Tn=g}function xi(){if(Fn)return Un;Fn=1;var t=pi(),e=di(),r=function(){if(fn)return cn;fn=1;var t=Ot(),e=bi(),r=oi(),n=di(),o=an?on:(an=1,on=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),i=sn?un:(sn=1,un=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return cn=function(t,a,s,c,f,l,h){switch(s){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!l(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var p=o;case"[object Set]":var d=1&c;if(p||(p=i),t.size!=a.size&&!d)return!1;var b=h.get(t);if(b)return b==a;c|=2,h.set(t,a);var v=n(p(t),p(a),c,f,l,h);return h.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(a)}return!1}}(),n=function(){if(On)return jn;On=1;var t=_i(),e=Object.prototype.hasOwnProperty;return jn=function(r,n,o,i,a,u){var s=1&o,c=t(r),f=c.length;if(f!=t(n).length&&!s)return!1;for(var l=f;l--;){var h=c[l];if(!(s?h in n:e.call(n,h)))return!1}var p=u.get(r),d=u.get(n);if(p&&d)return p==n&&d==r;var b=!0;u.set(r,n),u.set(n,r);for(var v=s;++l<f;){var g=r[h=c[l]],y=n[h];if(i)var m=s?i(y,g,h,n,r,u):i(g,y,h,r,n,u);if(!(void 0===m?g===y||a(g,y,o,i,u):m)){b=!1;break}v||(v="constructor"==h)}if(b&&!v){var _=r.constructor,w=n.constructor;_==w||!("constructor"in r)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(b=!1)}return u.delete(r),u.delete(n),b}}(),o=wi(),i=St(),a=Wt(),u=Vo(),s="[object Arguments]",c="[object Array]",f="[object Object]",l=Object.prototype.hasOwnProperty;return Un=function(h,p,d,b,v,g){var y=i(h),m=i(p),_=y?c:o(h),w=m?c:o(p),x=(_=_==s?f:_)==f,j=(w=w==s?f:w)==f,O=_==w;if(O&&a(h)){if(!a(p))return!1;y=!0,x=!1}if(O&&!x)return g||(g=new t),y||u(h)?e(h,p,d,b,v,g):r(h,p,_,d,b,v,g);if(!(1&d)){var M=x&&l.call(h,"__wrapped__"),S=j&&l.call(p,"__wrapped__");if(M||S){var k=M?h.value():h,A=S?p.value():p;return g||(g=new t),v(k,A,d,b,g)}}return!!O&&(g||(g=new t),n(h,p,d,b,v,g))}}function ji(){if(zn)return Dn;zn=1;var t=xi(),e=kt();return Dn=function r(n,o,i,a,u){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,u))}}function Oi(){if($n)return Wn;$n=1;var t=Ko();return Wn=function(e){return e==e&&!t(e)}}function Mi(){return Xn?Vn:(Xn=1,Vn=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}})}function Si(){if(Gn)return Kn;Gn=1;var t=Mt(),e=kt();return Kn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function ki(){if(Qn)return Jn;Qn=1;var t=St(),e=Si(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return Jn=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||n.test(o)||!r.test(o)||null!=i&&o in Object(i)}}function Ai(){if(fo)return co;fo=1;var t=St(),e=ki(),r=function(){if(oo)return no;oo=1;var t=function(){if(ro)return eo;ro=1;var t=function(){if(to)return Zn;to=1;var t=hi();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,Zn=e}();return eo=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)}),n});return no=n}(),n=function(){if(so)return uo;so=1;var t=function(){if(ao)return io;ao=1;var t=Ot(),e=ni(),r=St(),n=Si(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return io=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},io}();return uo=function(e){return null==e?"":t(e)}}();return co=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))}}function Ci(){if(ho)return lo;ho=1;var t=Si();return lo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Ei(){if(bo)return po;bo=1;var t=Ai(),e=Ci();return po=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0}}function Ri(){if(Mo)return Oo;Mo=1;var t=ji(),e=function(){if(go)return vo;go=1;var t=Ei();return vo=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o}}(),r=function(){if(jo)return xo;jo=1;var t=mo?yo:(mo=1,yo=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(wo)return _o;wo=1;var t=Ai(),e=At(),r=St(),n=$t(),o=Nt(),i=Ci();return _o=function(a,u,s){for(var c=-1,f=(u=t(u,a)).length,l=!1;++c<f;){var h=i(u[c]);if(!(l=null!=a&&s(a,h)))break;a=a[h]}return l||++c!=f?l:!!(f=null==a?0:a.length)&&o(f)&&n(h,f)&&(r(a)||e(a))}}();return xo=function(r,n){return null!=r&&e(r,n,t)}}(),n=ki(),o=Oi(),i=Mi(),a=Ci();return Oo=function(u,s){return n(u)&&o(s)?i(a(u),s):function(n){var o=e(n,u);return void 0===o&&o===s?r(n,u):t(s,o,3)}}}function Pi(){if(Wo)return Ho;Wo=1;var t=ni(),e=function(){if(To)return Po;To=1;var t=function(){if(qn)return Yn;qn=1;var t=function(){if(Hn)return Bn;Hn=1;var t=pi(),e=ji();return Bn=function(r,n,o,i){var a=o.length,u=a,s=!i;if(null==r)return!u;for(r=Object(r);a--;){var c=o[a];if(s&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++a<u;){var f=(c=o[a])[0],l=r[f],h=c[1];if(s&&c[2]){if(void 0===l&&!(f in r))return!1}else{var p=new t;if(i)var d=i(l,h,f,r,n,p);if(!(void 0===d?e(h,l,3,i,p):d))return!1}}return!0}}(),e=function(){if(In)return Nn;In=1;var t=Oi(),e=Qo();return Nn=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n}}(),r=Mi();return Yn=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}}}(),e=Ri(),r=ti(),n=St(),o=function(){if(Ro)return Eo;Ro=1;var t=ko?So:(ko=1,So=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(Co)return Ao;Co=1;var t=Ei();return Ao=function(e){return function(r){return t(r,e)}}}(),r=ki(),n=Ci();return Eo=function(o){return r(o)?t(n(o)):e(o)}}();return Po=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}(),r=function(){if(Bo)return zo;Bo=1;var t=function(){if(Do)return Fo;Do=1;var t=Zo(),e=function(){if(Uo)return Lo;Uo=1;var t=Jo();return Lo=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,u=Object(n);(r?a--:++a<i)&&!1!==o(u[a],a,u););return n}}}()(t);return Fo=e}(),e=Jo();return zo=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,function(t,e,r){i[++o]=n(t,e,r)}),i}}(),n=St();return Ho=function(o,i){return(n(o)?t:r)(o,e(i,3))}}var Ti,Li,Ui,Fi,Di,zi,Bi,Hi,Wi,$i,Ni,Ii,Vi,Xi,Yi,qi,Ki,Gi,Ji,Qi,Zi={};function ta(){if(zi)return Di;zi=1;var t=function(){if(Fi)return Ui;Fi=1;var t=si(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Ui=e}();return Di=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function ea(){if(Hi)return Bi;Hi=1;var t=ta(),e=oi(),r=Object.prototype.hasOwnProperty;return Bi=function(n,o,i){var a=n[o];r.call(n,o)&&e(a,i)&&(void 0!==i||o in n)||t(n,o,i)}}function ra(){if($i)return Wi;$i=1;var t=ea(),e=ta();return Wi=function(r,n,o,i){var a=!o;o||(o={});for(var u=-1,s=n.length;++u<s;){var c=n[u],f=i?i(o[c],r[c],c,o,r):void 0;void 0===f&&(f=r[c]),a?e(o,c,f):t(o,c,f)}return o}}function na(){if(Gi)return Ki;Gi=1;var t=Xo(),e=function(){if(qi)return Yi;qi=1;var t=Ko(),e=Yo(),r=Xi?Vi:(Xi=1,Vi=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return Yi=function(o){if(!t(o))return r(o);var i=e(o),a=[];for(var u in o)("constructor"!=u||!i&&n.call(o,u))&&a.push(u);return a}}(),r=Jo();return Ki=function(n){return r(n)?t(n,!0):e(n)}}var oa,ia,aa,ua,sa,ca,fa,la,ha,pa,da,ba,va,ga,ya,ma,_a,wa,xa,ja,Oa,Ma,Sa,ka,Aa,Ca,Ea,Ra,Pa,Ta,La,Ua,Fa,Da,za,Ba,Ha,Wa,$a,Na,Ia,Va,Xa={exports:{}};function Ya(){if(fa)return ca;fa=1;var t=vi(),e=ri(),r=mi(),n=yi(),o=Object.getOwnPropertySymbols;return ca=o?function(n){for(var o=[];n;)t(o,r(n)),n=e(n);return o}:n}function qa(){if(ya)return ga;ya=1;var t=bi();return ga=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function Ka(){if($a)return Wa;$a=1;var t=pi(),e=Li?Ti:(Li=1,Ti=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),r=ea(),n=function(){if(Ii)return Ni;Ii=1;var t=ra(),e=Qo();return Ni=function(r,n){return r&&t(n,e(n),r)}}(),o=function(){if(Qi)return Ji;Qi=1;var t=ra(),e=na();return Ji=function(r,n){return r&&t(n,e(n),r)}}(),i=(oa||(oa=1,function(t,e){var r=jt(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}(Xa,Xa.exports)),Xa.exports),a=aa?ia:(aa=1,ia=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),u=function(){if(sa)return ua;sa=1;var t=ra(),e=mi();return ua=function(r,n){return t(r,e(r),n)}}(),s=function(){if(ha)return la;ha=1;var t=ra(),e=Ya();return la=function(r,n){return t(r,e(r),n)}}(),c=_i(),f=function(){if(da)return pa;da=1;var t=gi(),e=Ya(),r=na();return pa=function(n){return t(n,r,e)}}(),l=wi(),h=function(){if(va)return ba;va=1;var t=Object.prototype.hasOwnProperty;return ba=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}(),p=function(){if(Aa)return ka;Aa=1;var t=qa(),e=function(){if(_a)return ma;_a=1;var t=qa();return ma=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(xa)return wa;xa=1;var t=/\w*$/;return wa=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(Oa)return ja;Oa=1;var t=Ot(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return ja=function(t){return r?Object(r.call(t)):{}}}(),o=function(){if(Sa)return Ma;Sa=1;var t=qa();return Ma=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return ka=function(i,a,u){var s=i.constructor;switch(a){case"[object ArrayBuffer]":return t(i);case"[object Boolean]":case"[object Date]":return new s(+i);case"[object DataView]":return e(i,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(i);case"[object RegExp]":return r(i);case"[object Symbol]":return n(i)}}}(),d=function(){if(Pa)return Ra;Pa=1;var t=function(){if(Ea)return Ca;Ea=1;var t=Ko(),e=Object.create,r=function(){function r(){}return function(n){if(!t(n))return{};if(e)return e(n);r.prototype=n;var o=new r;return r.prototype=void 0,o}}();return Ca=r}(),e=ri(),r=Yo();return Ra=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}(),b=St(),v=Wt(),g=function(){if(Fa)return Ua;Fa=1;var t=function(){if(La)return Ta;La=1;var t=wi(),e=kt();return Ta=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=It(),r=Io(),n=r&&r.isMap,o=n?e(n):t;return Ua=o}(),y=Ko(),m=function(){if(Ha)return Ba;Ha=1;var t=function(){if(za)return Da;za=1;var t=wi(),e=kt();return Da=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=It(),r=Io(),n=r&&r.isSet,o=n?e(n):t;return Ba=o}(),_=Qo(),w=na(),x="[object Arguments]",j="[object Function]",O="[object Object]",M={};return M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[O]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[j]=M["[object WeakMap]"]=!1,Wa=function S(k,A,C,E,R,P){var T,L=1&A,U=2&A,F=4&A;if(C&&(T=R?C(k,E,R,P):C(k)),void 0!==T)return T;if(!y(k))return k;var D=b(k);if(D){if(T=h(k),!L)return a(k,T)}else{var z=l(k),B=z==j||"[object GeneratorFunction]"==z;if(v(k))return i(k,L);if(z==O||z==x||B&&!R){if(T=U||B?{}:d(k),!L)return U?s(k,o(T,k)):u(k,n(T,k))}else{if(!M[z])return R?k:{};T=p(k,z,L)}}P||(P=new t);var H=P.get(k);if(H)return H;P.set(k,T),m(k)?k.forEach(function(t){T.add(S(t,A,C,t,k,P))}):g(k)&&k.forEach(function(t,e){T.set(e,S(t,A,C,e,k,P))});var W=D?void 0:(F?U?f:c:U?w:_)(k);return e(W||k,function(t,e){W&&(t=k[e=t]),r(T,e,S(t,A,C,e,k,P))}),T},Wa}var Ga,Ja,Qa={},Za={};var tu,eu={};var ru,nu,ou={};const iu=a(function(){if(nu)return _t;nu=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.ReactCSS=_t.loop=_t.handleActive=_t.handleHover=_t.hover=void 0;var t=s(function(){if($o)return wt;$o=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.flattenNames=void 0;var t=function(){if(ct)return st;ct=1;var t=Mt(),e=St(),r=kt();return st=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),e=a(t),r=a(ei()),n=function(){if(je)return xe;je=1;var t=Mt(),e=ri(),r=kt(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,u=i.call(Object);return xe=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var s=a.call(o,"constructor")&&o.constructor;return"function"==typeof s&&s instanceof s&&i.call(s)==u}}(),o=a(n),i=a(Pi());function a(t){return t&&t.__esModule?t:{default:t}}var u=wt.flattenNames=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[];return(0,i.default)(n,function(n){Array.isArray(n)?t(n).map(function(t){return a.push(t)}):(0,o.default)(n)?(0,r.default)(n,function(t,e){!0===t&&a.push(e),a.push(e+"-"+t)}):(0,e.default)(n)&&a.push(n)}),a};return wt.default=u,wt}()),e=s(function(){if(Va)return Zi;Va=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.mergeClasses=void 0;var t=n(ei()),e=n(function(){if(Ia)return Na;Ia=1;var t=Ka();return Na=function(e){return t(e,5)}}()),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};function n(t){return t&&t.__esModule?t:{default:t}}var o=Zi.mergeClasses=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=n.default&&(0,e.default)(n.default)||{};return o.map(function(e){var o=n[e];return o&&(0,t.default)(o,function(t,e){i[e]||(i[e]={}),i[e]=r({},i[e],o[e])}),e}),i};return Zi.default=o,Zi}()),r=function(){if(Ga)return Qa;Ga=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.autoprefix=void 0;var t,e=(t=ei())&&t.__esModule?t:{default:t},r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var e=t&&t.split(" ");return{position:"absolute",top:e&&e[0],right:e&&e[1],bottom:e&&e[2],left:e&&e[3]}},extend:function(t,e){return e[t]||{extend:t}}},o=Qa.autoprefix=function(t){var o={};return(0,e.default)(t,function(t,i){var a={};(0,e.default)(t,function(t,e){var o=n[e];o?a=r({},a,o(t)):a[e]=t}),o[i]=a}),o};return Qa.default=o,Qa}(),n=s(r),o=s(function(){if(Ja)return Za;Ja=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.hover=void 0;var t,e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r=(t=u)&&t.__esModule?t:{default:t};function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var o=Za.hover=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=n(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return r.default.createElement(o,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},r.default.createElement(t,e({},s.props,s.state)))},n(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(r.default.Component)};return Za.default=o,Za}()),i=s(function(){if(tu)return eu;tu=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.active=void 0;var t,e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r=(t=u)&&t.__esModule?t:{default:t};function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var o=eu.active=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(i){function a(){var i,u,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var c=arguments.length,f=Array(c),l=0;l<c;l++)f[l]=arguments[l];return u=s=n(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(f))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return r.default.createElement(o,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},r.default.createElement(t,e({},s.props,s.state)))},n(s,u)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,i),a}(r.default.Component)};return eu.default=o,eu}()),a=s((ru||(ru=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=function(t,e){var r={},n=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r[t]=e};return 0===t&&n("first-child"),t===e-1&&n("last-child"),(0===t||t%2==0)&&n("even"),1===Math.abs(t%2)&&n("odd"),n("nth-child",t),r}),ou));function s(t){return t&&t.__esModule?t:{default:t}}_t.hover=o.default,_t.handleHover=o.default,_t.handleActive=i.default,_t.loop=a.default;var c=_t.ReactCSS=function(r){for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var u=(0,t.default)(i),s=(0,e.default)(r,u);return(0,n.default)(s)};return _t.default=c,_t}());var au={},uu=function(t,e,r,n){var o=t+"-"+e+"-"+r+(n?"-server":"");if(au[o])return au[o];var i=function(t,e,r,n){if("undefined"==typeof document&&!n)return null;var o=n?new n:document.createElement("canvas");o.width=2*r,o.height=2*r;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=e,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null}(t,e,r,n);return au[o]=i,i},su=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cu=function(e){var r=e.white,n=e.grey,o=e.size,i=e.renderers,a=e.borderRadius,s=e.boxShadow,c=e.children,f=iu({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+uu(r,n,o,i.canvas)+") center left"}}});return t.isValidElement(c)?u.cloneElement(c,su({},c.props,{style:su({},c.props.style,f.grid)})):u.createElement("div",{style:f.grid})};cu.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var fu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function hu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var pu=function(){function e(){var t,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=hu(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n,o){var i=o.clientWidth,a=o.clientHeight,u="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,s="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,c=u-(o.getBoundingClientRect().left+window.pageXOffset),f=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===r){var l;if(l=f<0?0:f>a?1:Math.round(100*f/a)/100,e.a!==l)return{h:e.h,s:e.s,l:e.l,a:l,source:"rgb"}}else{var h;if(n!==(h=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:e.h,s:e.s,l:e.l,a:h,source:"rgb"}}return null}(t,n.props.hsl,n.props.direction,n.props.a,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},hu(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t.PureComponent||t.Component),lu(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var t=this,e=this.props.rgb,r=iu({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+", 0) 0%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*e.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+e.r+","+e.g+","+e.b+", 0) 0%,\n rgba("+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:fu({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return u.createElement("div",{style:r.alpha},u.createElement("div",{style:r.checkboard},u.createElement(cu,{renderers:this.props.renderers})),u.createElement("div",{style:r.gradient}),u.createElement("div",{style:r.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},u.createElement("div",{style:r.pointer},this.props.pointer?u.createElement(this.props.pointer,this.props):u.createElement("div",{style:r.slider}))))}}]),e}(),du=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),bu=[38,40],vu=1,gu=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(t){r.setUpdatedValue(t.target.value,t)},r.handleKeyDown=function(t){var e,n=function(t){return Number(String(t).replace(/%/g,""))}(t.target.value);if(!isNaN(n)&&(e=t.keyCode,bu.indexOf(e)>-1)){var o=r.getArrowOffset(),i=38===t.keyCode?n+o:n-o;r.setUpdatedValue(i,t)}},r.handleDrag=function(t){if(r.props.dragLabel){var e=Math.round(r.props.value+t.movementX);e>=0&&e<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(e),t)}},r.handleMouseDown=function(t){r.props.dragLabel&&(t.preventDefault(),r.handleDrag(t),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},r.inputId="rc-editable-input-"+vu++,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t.PureComponent||t.Component),du(e,[{key:"componentDidUpdate",value:function(t,e){this.props.value===this.state.value||t.value===this.props.value&&e.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(t){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},this.props.label,t)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(t,e){var r=this.props.label?this.getValueObjectWithLabel(t):t;this.props.onChange&&this.props.onChange(r,e),this.setState({value:t})}},{key:"render",value:function(){var t=this,e=iu({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return u.createElement("div",{style:e.wrap},u.createElement("input",{id:this.inputId,style:e.input,ref:function(e){return t.input=e},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?u.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(),yu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function mu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var _u=function(){function e(){var t,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=n=mu(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i))),n.handleChange=function(t){var e=function(t,e,r,n){var o=n.clientWidth,i=n.clientHeight,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(n.getBoundingClientRect().left+window.pageXOffset),c=u-(n.getBoundingClientRect().top+window.pageYOffset);if("vertical"===e){var f;if(f=c<0?359:c>i?0:360*(-100*c/i+100)/100,r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var l;if(l=s<0?0:s>o?359:100*s/o*360/100,r.h!==l)return{h:l,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null}(t,n.props.direction,n.props.hsl,n.container);e&&"function"==typeof n.props.onChange&&n.props.onChange(e,t)},n.handleMouseDown=function(t){n.handleChange(t),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},mu(n,r)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t.PureComponent||t.Component),yu(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,e=this.props.direction,r=void 0===e?"horizontal":e,n=iu({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===r});return u.createElement("div",{style:n.hue},u.createElement("div",{className:"hue-"+r,style:n.container,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},u.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),u.createElement("div",{style:n.pointer},this.props.pointer?u.createElement(this.props.pointer,this.props):u.createElement("div",{style:n.slider}))))}}]),e}(),wu="object"==typeof global&&global&&global.Object===Object&&global,xu="object"==typeof self&&self&&self.Object===Object&&self,ju=wu||xu||Function("return this")(),Ou=ju.Symbol,Mu=Object.prototype,Su=Mu.hasOwnProperty,ku=Mu.toString,Au=Ou?Ou.toStringTag:void 0,Cu=Object.prototype.toString,Eu=Ou?Ou.toStringTag:void 0;function Ru(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}f.string,f.oneOf([0,1,2,3,4,5]),f.number,f.object;var Pu=function(){return ju.Date.now()},Tu=/\s/,Lu=/^\s+/;var Uu=/^[-+]0x[0-9a-f]+$/i,Fu=/^0b[01]+$/i,Du=/^0o[0-7]+$/i,zu=parseInt;function Bu(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Eu&&Eu in Object(t)?function(t){var e=Su.call(t,Au),r=t[Au];try{t[Au]=void 0;var n=!0}catch(t){}var o=ku.call(t);return n&&(e?t[Au]=r:delete t[Au]),o}(t):function(t){return Cu.call(t)}(t)}(t)}(t))return NaN;if(Ru(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ru(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Tu.test(t.charAt(e)););return e}(t)+1).replace(Lu,""):t}(t);var r=Fu.test(t);return r||Du.test(t)?zu(t.slice(2),r?2:8):Uu.test(t)?NaN:+t}var Hu=Math.max,Wu=Math.min;var $u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();!function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.handleChange=function(t){"function"==typeof r.props.onChange&&r.throttle(r.props.onChange,function(t,e,r){var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}}(t,r.props.hsl,r.container),t)},r.handleMouseDown=function(t){r.handleChange(t);var e=r.getContainerRenderWindow();e.addEventListener("mousemove",r.handleChange),e.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.throttle=function(t,e,r){var n=!0,o=!0;return Ru(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),function(t,e,r){var n,o,i,a,u,s,c=0,f=!1,l=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,c=e,a=t.apply(i,r)}function d(t){var r=t-s;return void 0===s||r>=e||r<0||l&&t-c>=i}function b(){var t=Pu();if(d(t))return v(t);u=setTimeout(b,function(t){var r=e-(t-s);return l?Wu(r,i-(t-c)):r}(t))}function v(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=Pu(),r=d(t);if(n=arguments,o=this,s=t,r){if(void 0===u)return function(t){return c=t,u=setTimeout(b,e),f?p(t):a}(s);if(l)return clearTimeout(u),u=setTimeout(b,e),p(s)}return void 0===u&&(u=setTimeout(b,e)),a}return e=Bu(e)||0,Ru(r)&&(f=!!r.leading,i=(l="maxWait"in r)?Hu(Bu(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,n=s=o=u=void 0},g.flush=function(){return void 0===u?a:v(Pu())},g}(t,50,{leading:n,maxWait:50,trailing:o})}(function(t,e,r){t(e,r)}),r}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(e,t.PureComponent||t.Component),$u(e,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var t=this.container,e=window;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var t=this,e=this.props.style||{},r=e.color,n=e.white,o=e.black,i=e.pointer,a=e.circle,s=iu({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:r,white:n,black:o,pointer:i,circle:a}},{custom:!!this.props.style});return u.createElement("div",{style:s.color,ref:function(e){return t.container=e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},u.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),u.createElement("div",{style:s.white,className:"saturation-white"},u.createElement("div",{style:s.black,className:"saturation-black"}),u.createElement("div",{style:s.pointer},this.props.pointer?u.createElement(this.props.pointer,this.props):u.createElement("div",{style:s.circle}))))}}])}();var Nu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Iu=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function Vu(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var Xu=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";!function(){function r(){var t,e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=n=Vu(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(i))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},Vu(n,e)}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(r,u.Component),Iu(r,[{key:"render",value:function(){return u.createElement(e,{onFocus:this.handleFocus,onBlur:this.handleBlur},u.createElement(t,Nu({},this.props,this.state)))}}])}()}(function(t){var e=t.color,r=t.style,n=t.onClick,o=void 0===n?function(){}:n,i=t.onHover,a=t.title,s=void 0===a?e:a,c=t.children,f=t.focus,l=t.focusStyle,h="transparent"===e,p=iu({default:{swatch:Xu({background:e,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,f?void 0===l?{}:l:{})}}),d={};return i&&(d.onMouseOver=function(t){return i(e,t)}),u.createElement("div",Xu({style:p.swatch,onClick:function(t){return o(e,t)},title:s,tabIndex:0,onKeyDown:function(t){return 13===t.keyCode&&o(e,t)}},d),c,h&&u.createElement(cu,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Yu=function(t){var e=t.onChange,r=t.rgb,n=t.hsl,o=t.hex,i=t.disableAlpha,a=iu({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:i}),s=function(t,o){t.hex?function(t){if("transparent"===t)return!0;var e="#"===String(t).charAt(0)?1:0;return t.length!==4+e&&t.length<7+e&&d(t).isValid()}(t.hex)&&e({hex:t.hex,source:"hex"},o):t.r||t.g||t.b?e({r:t.r||r.r,g:t.g||r.g,b:t.b||r.b,a:r.a,source:"rgb"},o):t.a&&(t.a<0?t.a=0:t.a>100&&(t.a=100),t.a/=100,e({h:n.h,s:n.s,l:n.l,a:t.a,source:"rgb"},o))};return u.createElement("div",{style:a.fields,className:"flexbox-fix"},u.createElement("div",{style:a.double},u.createElement(gu,{style:{input:a.input,label:a.label},label:"hex",value:o.replace("#",""),onChange:s})),u.createElement("div",{style:a.single},u.createElement(gu,{style:{input:a.input,label:a.label},label:"r",value:r.r,onChange:s,dragLabel:"true",dragMax:"255"})),u.createElement("div",{style:a.single},u.createElement(gu,{style:{input:a.input,label:a.label},label:"g",value:r.g,onChange:s,dragLabel:"true",dragMax:"255"})),u.createElement("div",{style:a.single},u.createElement(gu,{style:{input:a.input,label:a.label},label:"b",value:r.b,onChange:s,dragLabel:"true",dragMax:"255"})),u.createElement("div",{style:a.alpha},u.createElement(gu,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*r.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class qu extends(t.PureComponent||t.Component){constructor(t){super(t),this.handleChange=t=>{"function"==typeof this.props.onChange&&this.throttle(this.props.onChange,((t,e,r)=>{var n=r.getBoundingClientRect(),o=n.width,i=n.height,a="number"==typeof t.pageX?t.pageX:t.touches[0].pageX,u="number"==typeof t.pageY?t.pageY:t.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>i&&(c=i);var f=s/o,l=1-c/i;return{h:e.h,s:f,v:l,a:e.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const e=this.getContainerRenderWindow();e.addEventListener("mousemove",this.handleChange),e.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,e,r){let n,o,i,a;var u=0;r||(r={});let s=function(){u=!1===r.leading?0:Date.now(),n=null,a=t.apply(o,i),n||(o=i=null)},c=function(){var e=Date.now();u||!1!==r.leading||(u=e);var c=50-(e-u);return o=this,i=arguments,c<=0||c>50?(n&&(clearTimeout(n),n=null),u=e,a=t.apply(o,i),n||(o=i=null)):n||!1===r.trailing||(n=setTimeout(s,c)),a};return c.cancel=function(){clearTimeout(n),u=0,n=o=i=null},c}((t,e,r)=>{t(e,r)})}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:t}=this;let e=window;for(;!e.document.contains(t)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const t=this.getContainerRenderWindow();t.removeEventListener("mousemove",this.handleChange),t.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:t,white:e,black:r,pointer:o,circle:i}=this.props||{},a={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},u={color:{...a,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...a,borderRadius:this.props.style?.borderRadius},black:{...a,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...a,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return n.jsxs("div",{style:u.color,ref:t=>this.container=t,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[n.jsx("style",{children:"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "}),n.jsxs("div",{style:u.white,className:"saturation-white",children:[n.jsx("div",{style:u.black,className:"saturation-black"}),n.jsx("div",{style:u.pointer,children:this.props.pointer?n.jsx(this.props.pointer,{...this.props}):n.jsx("div",{style:u.circle})})]})]})}}const Ku=(t,e=null)=>{const r=t.hex?d(t.hex):d(t||"transparent"),n=r.toHsl(),o=r.toHsv(),i=r.toRgb(),a=r.toHex();return 0===n.s&&(n.h=e??0,o.h=e??0),{hsl:n,hex:"#"+a,rgb:i,hsv:o,source:t.source}},Gu=t.memo(a=>{const{selectedColor:u,onColorChange:s,renderers:c,disableAlpha:f=!1,style:l=e.EmptyCssProperties,...h}=a,p=r(),[d,b]=t.useState(()=>Ku(u)),[v,g]=t.useState(d.hsl.h??0),y=t.useCallback(t=>{let e=Ku(t,v);return g(e.hsl.h??0),b(e),e},[v]),m=t.useCallback(t=>{const e=y(t),r=`rgba(${e.rgb.r},${e.rgb.g},${e.rgb.b},${f?1:e.rgb.a})`;s?.(r)},[s,y,f]);t.useLayoutEffect(()=>{y(u)},[u,y]);const _=n.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:n.jsx(pu,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:d.rgb,hsl:d.hsl,renderers:c,onChange:m})});return n.jsxs("div",{style:{display:"flex",flexDirection:"column",...l},...h,children:[n.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:n.jsx(qu,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:d.hsl,hsv:d.hsv,onChange:m})}),n.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[n.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:f?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[n.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:n.jsx(_u,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:d.hsl,onChange:m})}),f?null:_]}),n.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[n.jsx(o,{grey:p.palette.text.icon??p.palette.action.active}),n.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${d.rgb.r},${d.rgb.g},${d.rgb.b},${f?1:d.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),n.jsx(i,{sx:{marginBottom:"4px","& label":{fontFamily:t=>`${t.typography.fontFamily} !important`,color:t=>`${t.palette.text.secondary} !important`},"& *":{fontFamily:t=>`${t.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:t=>`${t.spacing(.5)} !important`,paddingRight:t=>`${t.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:n.jsx(Yu,{rgb:d.rgb,hsl:d.hsl,hex:d.hex,disableAlpha:f,onChange:m})})]})});export{Gu as CustomColorPanel,Gu as default,Ku as toState};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
const e={BIN2DEC:{s:"Converts a binary number to decimal",p:{number:{d:"is the binary number you want to convert"}}},BIN2HEX:{s:"Converts a binary number to hexadecimal",p:{number:{d:"is the binary number you want to convert"},places:{d:"is the number of characters to use"}}},BIN2OCT:{s:"Converts a binary number to octal",p:{number:{d:"is the binary number you want to convert"},places:{d:"is the number of characters to use"}}},BITAND:{s:"Returns a bitwise 'And' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},BITLSHIFT:{s:"Returns a number shifted left by shift_amount bits",p:{number:{d:"is the decimal representation of the binary number you want to evaluate"},shiftAmount:{d:"is the number of bits that you want to shift Number left by"}}},BITOR:{s:"Returns a bitwise 'Or' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},BITRSHIFT:{s:"Returns a number shifted right by shift_amount bits",p:{number:{d:"is the decimal representation of the binary number you want to evaluate"},shiftAmount:{d:"is the number of bits that you want to shift Number left by"}}},BITXOR:{s:"Returns a bitwise 'Exclusive Or' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},DEC2BIN:{s:"Converts a decimal number to binary",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},DEC2HEX:{s:"Converts a decimal number to hexadecimal",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},DEC2OCT:{s:"Converts a decimal number to octal",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},HEX2BIN:{s:"Converts a Hexadecimal number to binary",p:{number:{d:"is the hexadecimal number you want to convert"},places:{d:"is the number of characters to use"}}},HEX2DEC:{s:"Converts a hexadecimal number to decimal",p:{number:{d:"is the hexadecimal number you want to convert"}}},HEX2OCT:{s:"Converts a hexadecimal number to octal",p:{number:{d:"is the hexadecimal number you want to convert"},places:{d:"is the number of characters to use"}}},OCT2BIN:{s:"Converts an octal number to binary",p:{number:{d:"is the octal number you want to convert"},places:{d:"is the number of characters to use"}}},OCT2DEC:{s:"Converts an octal number to decimal",p:{number:{d:"is the octal number you want to convert"}}},OCT2HEX:{s:"Converts an octal number to hexadecimal",p:{number:{d:"is the octal number you want to convert"},places:{d:"is the number of characters to use"}}}};export{e as default};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
let i=null;async function s(){return i||(i=new Promise(async(i,s)=>{try{const s="0.20.2",t=`https://esm.sh/esbuild-wasm@${s}`,e=`https://esm.sh/esbuild-wasm@${s}/esbuild.wasm`,a=(await import(
|
|
8
|
-
/* webpackIgnore: true */
|
|
9
|
-
/* @vite-ignore */
|
|
10
|
-
t)).default;await a.initialize({wasmURL:e,worker:!1}),i(a)}catch(i){console.error("Error initializing esbuild:",i),s(i)}}),i)}export{s as initialize};
|