@qitqode/qitqode-android-arm64 0.1.23 → 0.1.25
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/bundle/{chunk-hyr049cr.js → chunk-0304b7xg.js} +1 -1
- package/bundle/{chunk-ky840wjj.js → chunk-08ba67f4.js} +1 -1
- package/bundle/chunk-0eneddjj.js +2 -0
- package/bundle/{chunk-mj7rk4xs.js → chunk-0hsb4knd.js} +1 -1
- package/bundle/{chunk-k0arcqnt.js → chunk-0jaxgrq0.js} +2 -2
- package/bundle/chunk-0ke6x10y.js +5 -0
- package/bundle/{chunk-naq602da.js → chunk-0rmmg3g4.js} +1 -1
- package/bundle/chunk-0vqrakhw.js +3 -0
- package/bundle/{chunk-kn9skc0g.js → chunk-0x7dbj5e.js} +1 -1
- package/bundle/{chunk-vay29sqp.js → chunk-0xmx2zfg.js} +1 -1
- package/bundle/chunk-0yb4pxjv.js +2 -0
- package/bundle/chunk-129kq1w7.js +2 -0
- package/bundle/{chunk-2e9a9brg.js → chunk-14qvaxtp.js} +1 -1
- package/bundle/chunk-1a5hq7d5.js +2 -0
- package/bundle/{chunk-bkaprkf6.js → chunk-1ce5jpdc.js} +1 -1
- package/bundle/{chunk-gz8x3915.js → chunk-1e8mja6v.js} +1 -1
- package/bundle/{chunk-12cd1yj9.js → chunk-1n1dh6zj.js} +1 -1
- package/bundle/{chunk-q1nvfmrm.js → chunk-1txkz6dt.js} +1 -1
- package/bundle/chunk-1w3y1dkk.js +2 -0
- package/bundle/{chunk-mg03szpz.js → chunk-23f6rc7a.js} +1 -1
- package/bundle/chunk-26qt44f1.js +3 -0
- package/bundle/{chunk-101y7ce2.js → chunk-2armxd20.js} +1 -1
- package/bundle/{chunk-zx90w4mt.js → chunk-2je5tp0x.js} +1 -1
- package/bundle/{chunk-9jjjzmvn.js → chunk-2k2axg73.js} +1 -1
- package/bundle/chunk-2pkake0h.js +2 -0
- package/bundle/{chunk-576zfh1s.js → chunk-2rxt1s22.js} +2 -2
- package/bundle/{chunk-xjr0xy58.js → chunk-2s28fdbp.js} +1 -1
- package/bundle/{chunk-haw1jzwb.js → chunk-2sy1wx99.js} +1 -1
- package/bundle/{chunk-bwgnmy92.js → chunk-2z35ewwc.js} +1 -1
- package/bundle/{chunk-y62tnk9q.js → chunk-2zj3h3xj.js} +2 -2
- package/bundle/chunk-32188rww.js +2 -0
- package/bundle/chunk-334tc1rh.js +2 -0
- package/bundle/{chunk-dn1jryxz.js → chunk-3dvyfmgc.js} +1 -1
- package/bundle/{chunk-2qy760rf.js → chunk-3e8p4a3y.js} +1 -1
- package/bundle/chunk-3f054f69.js +800 -0
- package/bundle/chunk-3ff94m8r.js +2 -0
- package/bundle/{chunk-3wzpdvpg.js → chunk-3fy57jcy.js} +1 -1
- package/bundle/{chunk-hk1ha5fj.js → chunk-3h08jdq8.js} +2 -2
- package/bundle/{chunk-44amvtcs.js → chunk-3j7skhxg.js} +2 -2
- package/bundle/{chunk-qkn4039t.js → chunk-3jhx8g5d.js} +1 -1
- package/bundle/{chunk-rmmyjyr9.js → chunk-3nhth7c2.js} +1 -1
- package/bundle/{chunk-b8z4hgq0.js → chunk-3tnek022.js} +1 -1
- package/bundle/{chunk-m81z3zgm.js → chunk-3xna2rk5.js} +2 -2
- package/bundle/{chunk-an5sr6gw.js → chunk-42t25nkb.js} +1 -1
- package/bundle/{chunk-3w60y2x5.js → chunk-453wpzg6.js} +1 -1
- package/bundle/chunk-4aqd2bty.js +2 -0
- package/bundle/{chunk-y0qaz8db.js → chunk-4kb2efq3.js} +1 -1
- package/bundle/{chunk-cbfjjbfd.js → chunk-4pssh5d3.js} +2 -2
- package/bundle/{chunk-9yaw0hbp.js → chunk-4stgw33j.js} +1 -1
- package/bundle/{chunk-cz8nnm2a.js → chunk-4w5t515p.js} +1 -1
- package/bundle/chunk-4wa0gf8y.js +28 -0
- package/bundle/{chunk-z1hd38wp.js → chunk-4wgb80jm.js} +2 -2
- package/bundle/{chunk-c38ppnm8.js → chunk-4wyjapes.js} +2 -2
- package/bundle/chunk-4xg5ptk9.js +2 -0
- package/bundle/chunk-54pk7nna.js +3 -0
- package/bundle/chunk-58680z2j.js +3 -0
- package/bundle/{chunk-2qj66wf5.js → chunk-5mdsrv0a.js} +1 -1
- package/bundle/{chunk-2adsn1ca.js → chunk-5mp82az0.js} +1 -1
- package/bundle/chunk-5nm36wxa.js +2 -0
- package/bundle/{chunk-7bxe5s20.js → chunk-5zw7knvd.js} +1 -1
- package/bundle/{chunk-63pvqy8n.js → chunk-61ks7c71.js} +3 -3
- package/bundle/chunk-64jet8nc.js +2 -0
- package/bundle/chunk-6584d9m8.js +2 -0
- package/bundle/chunk-66hv9bbw.js +2 -0
- package/bundle/{chunk-qr2ave8f.js → chunk-692vn48b.js} +1 -1
- package/bundle/chunk-6a1g6jzn.js +2 -0
- package/bundle/chunk-6be8p915.js +2 -0
- package/bundle/{chunk-3xf7q4ww.js → chunk-6ddp36ar.js} +1 -1
- package/bundle/chunk-6f03158n.js +2 -0
- package/bundle/{chunk-yffkcska.js → chunk-6gbaw2pk.js} +1 -1
- package/bundle/{chunk-07szgr15.js → chunk-6rrmjrm2.js} +1 -1
- package/bundle/{chunk-y2r3zker.js → chunk-6s2f5sv4.js} +1 -1
- package/bundle/{chunk-799c17nk.js → chunk-754varfr.js} +2 -2
- package/bundle/{chunk-ecczet3b.js → chunk-78h5dd4t.js} +2 -2
- package/bundle/{chunk-ejy5404v.js → chunk-7d6jhzng.js} +1 -1
- package/bundle/{chunk-kpkbyek5.js → chunk-7fx6x8x9.js} +2 -2
- package/bundle/chunk-7jnjttqx.js +2 -0
- package/bundle/{chunk-t66hycva.js → chunk-7q5srx7q.js} +2 -2
- package/bundle/chunk-7q8pa6s8.js +2 -0
- package/bundle/{chunk-36c2avm4.js → chunk-7qvkyjjg.js} +1 -1
- package/bundle/{chunk-22tf95dw.js → chunk-7rjf9b8n.js} +2 -2
- package/bundle/{chunk-zzdbrxkh.js → chunk-7v4fzkbb.js} +1 -1
- package/bundle/chunk-7w84hfxs.js +3 -0
- package/bundle/{chunk-g8zrn0at.js → chunk-7ws3gdjq.js} +1 -1
- package/bundle/{chunk-my0kzcby.js → chunk-87x607rz.js} +310 -284
- package/bundle/{chunk-hnzs3ywg.js → chunk-8ahpk8td.js} +1 -1
- package/bundle/{chunk-62yja34m.js → chunk-8atry88r.js} +1 -1
- package/bundle/chunk-8casywce.js +2 -0
- package/bundle/chunk-8cty50g7.js +2 -0
- package/bundle/{chunk-5dpev64z.js → chunk-8gy99gfb.js} +2 -2
- package/bundle/chunk-8hxwxt5p.js +2 -0
- package/bundle/{chunk-px15ev1g.js → chunk-8jcx4tep.js} +2 -2
- package/bundle/chunk-8y8140dm.js +2 -0
- package/bundle/{chunk-fhjpfzjc.js → chunk-8za87zkr.js} +1 -1
- package/bundle/{chunk-m8njvpb8.js → chunk-99p5m2f1.js} +1 -1
- package/bundle/{chunk-c7dt464m.js → chunk-9dpn4792.js} +2 -2
- package/bundle/chunk-9dqcyt6x.js +2 -0
- package/bundle/{chunk-w6t1qmeg.js → chunk-9f6pqped.js} +1 -1
- package/bundle/chunk-9he248a8.js +2 -0
- package/bundle/{chunk-3ne6j2h5.js → chunk-9jncnqbj.js} +2 -2
- package/bundle/{chunk-mwjhyj53.js → chunk-9jvnc14g.js} +1 -1
- package/bundle/chunk-9qmmse2n.js +2 -0
- package/bundle/chunk-9r6bvkp4.js +8 -0
- package/bundle/chunk-9va5eh9s.js +3 -0
- package/bundle/chunk-9w5rx0fb.js +3 -0
- package/bundle/{chunk-g5g9r3v5.js → chunk-a27yjp71.js} +1 -1
- package/bundle/chunk-aabrsxrq.js +2 -0
- package/bundle/{chunk-shav33fq.js → chunk-ag9thqkv.js} +2 -2
- package/bundle/chunk-amx3x4kd.js +3 -0
- package/bundle/{chunk-863s0tqa.js → chunk-aqm597px.js} +2 -2
- package/bundle/chunk-atd0q4v8.js +3 -0
- package/bundle/{chunk-58w4dhb6.js → chunk-av290sja.js} +1 -1
- package/bundle/chunk-avaba4sr.js +2 -0
- package/bundle/{chunk-p33fchnf.js → chunk-aw0q4y3s.js} +1 -1
- package/bundle/{chunk-7pr4jxkn.js → chunk-b2xya6pq.js} +1 -1
- package/bundle/{chunk-hqv0s6sw.js → chunk-b50t4jc5.js} +1 -1
- package/bundle/chunk-bdy1etja.js +2 -0
- package/bundle/{chunk-bwvjft74.js → chunk-bnc4626b.js} +1 -1
- package/bundle/{chunk-k5294ajv.js → chunk-bpnpxdyv.js} +2 -2
- package/bundle/chunk-bqdvqmjc.js +2 -0
- package/bundle/chunk-bqs6a1ts.js +14 -0
- package/bundle/{chunk-n889mwgv.js → chunk-bsqcfqya.js} +1 -1
- package/bundle/{chunk-ntfh16rj.js → chunk-c1ypbbka.js} +2 -2
- package/bundle/{chunk-0136n3jt.js → chunk-c27rpvdz.js} +1 -1
- package/bundle/chunk-cdws8ggq.js +2 -0
- package/bundle/{chunk-5x19yah0.js → chunk-cjxp72dv.js} +2 -2
- package/bundle/chunk-cqs9a2cs.js +2 -0
- package/bundle/{chunk-b54t7ycj.js → chunk-crap29f6.js} +1 -1
- package/bundle/{chunk-b2k9yafd.js → chunk-d0m7nbbx.js} +2 -2
- package/bundle/chunk-d0rjst58.js +2 -0
- package/bundle/{chunk-y68fp4kt.js → chunk-d1bsxz2t.js} +1 -1
- package/bundle/{chunk-2e76kpa6.js → chunk-d5b0bqbr.js} +1 -1
- package/bundle/chunk-d833a2fj.js +2 -0
- package/bundle/{chunk-mwbcmvmh.js → chunk-dd11kryy.js} +2 -2
- package/bundle/chunk-dday4nm2.js +2 -0
- package/bundle/{chunk-05badzhy.js → chunk-ddxjc803.js} +2 -2
- package/bundle/{chunk-0vhsc0yh.js → chunk-dee1a3yk.js} +2 -2
- package/bundle/{chunk-kktcccep.js → chunk-dgggvses.js} +1 -1
- package/bundle/{chunk-2es79khv.js → chunk-dk3z4k46.js} +3 -3
- package/bundle/{chunk-24r5h0fx.js → chunk-e075v4e9.js} +2 -2
- package/bundle/{chunk-m34zrf70.js → chunk-e1pwnf0b.js} +2 -2
- package/bundle/chunk-e2sj30hk.js +2 -0
- package/bundle/{chunk-t86vj45b.js → chunk-eaatrmcg.js} +1 -1
- package/bundle/{chunk-g6gs7cc6.js → chunk-eg7drzzt.js} +1 -1
- package/bundle/chunk-enc0fykg.js +2 -0
- package/bundle/chunk-evan93av.js +2 -0
- package/bundle/{chunk-wk11xsdh.js → chunk-evmfntm3.js} +1 -1
- package/bundle/{chunk-jvkqvgae.js → chunk-ey4ktbyb.js} +1 -1
- package/bundle/{chunk-fnect0ny.js → chunk-f55txcsa.js} +1 -1
- package/bundle/chunk-f600dzsr.js +2 -0
- package/bundle/chunk-f6jzwydk.js +2 -0
- package/bundle/{chunk-f958hsha.js → chunk-f84cd0a1.js} +2 -2
- package/bundle/{chunk-5wr5gpaa.js → chunk-fgw420gb.js} +1 -1
- package/bundle/chunk-fv67ng8z.js +2 -0
- package/bundle/{chunk-g7g3zm4v.js → chunk-g3s2z5xa.js} +1 -1
- package/bundle/{chunk-wmmck56g.js → chunk-g4qwkcdv.js} +1 -1
- package/bundle/{chunk-yccm7cfm.js → chunk-g73drh98.js} +3 -3
- package/bundle/{chunk-8hh5ejmr.js → chunk-gaen9ya4.js} +2 -2
- package/bundle/{chunk-m3gsrb1x.js → chunk-gefh32jb.js} +1 -1
- package/bundle/chunk-gevazsx3.js +2 -0
- package/bundle/{chunk-tfpwfczs.js → chunk-gfmfrkxc.js} +1 -1
- package/bundle/{chunk-ac69b9tm.js → chunk-ggeena9t.js} +1 -1
- package/bundle/chunk-gh18pzkx.js +2 -0
- package/bundle/chunk-gnvvgr4y.js +2 -0
- package/bundle/chunk-grkkzrg1.js +5 -0
- package/bundle/chunk-gsbjs2ws.js +2 -0
- package/bundle/{chunk-1w8b88y5.js → chunk-gsz1wqy6.js} +1 -1
- package/bundle/{chunk-ar1by07g.js → chunk-gvtw9c44.js} +1 -1
- package/bundle/chunk-gw0j8hr9.js +3 -0
- package/bundle/{chunk-3j6nrrva.js → chunk-h19ty95q.js} +1 -1
- package/bundle/{chunk-381j1hqf.js → chunk-h2fh1g8g.js} +1 -1
- package/bundle/{chunk-n1m5qdf5.js → chunk-h56jxxvj.js} +1 -1
- package/bundle/{chunk-87pzwjjj.js → chunk-hmfefq0d.js} +4 -4
- package/bundle/{chunk-g7742sqm.js → chunk-hvpe07pt.js} +1 -1
- package/bundle/{chunk-yyarzhw3.js → chunk-hwbxehhf.js} +1 -1
- package/bundle/{chunk-agyxa9nj.js → chunk-hznsed5n.js} +2 -2
- package/bundle/{chunk-fvwys8ej.js → chunk-j5b5h08g.js} +1 -1
- package/bundle/chunk-j7pdz979.js +2 -0
- package/bundle/{chunk-9zg3y89v.js → chunk-j9s62g01.js} +2 -2
- package/bundle/chunk-jfe2qbv8.js +2 -0
- package/bundle/{chunk-1vx26nt2.js → chunk-jgs6ngte.js} +1 -1
- package/bundle/{chunk-dsny9dh8.js → chunk-jhq5bvhs.js} +2 -2
- package/bundle/{chunk-9n6f9n1c.js → chunk-jq81hb32.js} +2 -2
- package/bundle/{chunk-nb0gc3sx.js → chunk-jqzejny3.js} +1 -1
- package/bundle/{chunk-t42kh492.js → chunk-jtrcnpm7.js} +2 -2
- package/bundle/{chunk-vxc5q0wk.js → chunk-jv98gw88.js} +2 -2
- package/bundle/chunk-jvaffe5d.js +10 -0
- package/bundle/chunk-k6zvb8xm.js +2 -0
- package/bundle/{chunk-erh9y0sx.js → chunk-k8bp3jjv.js} +1 -1
- package/bundle/{chunk-q1472d56.js → chunk-kb14wxcs.js} +2 -2
- package/bundle/chunk-kcht9kvx.js +2 -0
- package/bundle/{chunk-jge74hh4.js → chunk-kdcspxvq.js} +1 -1
- package/bundle/{chunk-w6zgm4vn.js → chunk-kdct3e8s.js} +1 -1
- package/bundle/{chunk-m8tfv36b.js → chunk-kgsq240v.js} +2 -2
- package/bundle/chunk-knvsa1d4.js +2 -0
- package/bundle/chunk-kp6d68hd.js +2 -0
- package/bundle/{chunk-jq6y56m5.js → chunk-kwm87f18.js} +1 -1
- package/bundle/{chunk-29hmwttd.js → chunk-kyny0t2g.js} +2 -2
- package/bundle/{chunk-v1hvnq7y.js → chunk-m2ang7yb.js} +1 -1
- package/bundle/{chunk-r0sjwtfc.js → chunk-mbh1pdv9.js} +2 -2
- package/bundle/{chunk-g2ec45xj.js → chunk-mczw8e3s.js} +2 -2
- package/bundle/chunk-me78p9x4.js +2 -0
- package/bundle/{chunk-afpwjn78.js → chunk-meaybtcc.js} +3 -3
- package/bundle/{chunk-k0v37hc6.js → chunk-mkdyknbz.js} +1 -1
- package/bundle/{chunk-fp5mvrrx.js → chunk-mkyrg7gt.js} +2 -2
- package/bundle/{chunk-ax9yyznf.js → chunk-mr7agwgn.js} +1 -1
- package/bundle/{chunk-9y65kbcf.js → chunk-msm3r7ny.js} +2 -2
- package/bundle/chunk-mv1d7wyt.js +2 -0
- package/bundle/{chunk-gjsaw7wm.js → chunk-mybpgrjj.js} +2 -2
- package/bundle/{chunk-1eg8mr1q.js → chunk-n8dcmjph.js} +1 -1
- package/bundle/chunk-n8xmmxh5.js +2 -0
- package/bundle/chunk-n90219q9.js +2 -0
- package/bundle/chunk-nckg3ydx.js +2 -0
- package/bundle/{chunk-apv1v4tk.js → chunk-nf8gkxbk.js} +2 -2
- package/bundle/chunk-nhaenjw3.js +2 -0
- package/bundle/chunk-nhtrt5ec.js +2 -0
- package/bundle/{chunk-sgq94p3x.js → chunk-nhx2xp2x.js} +1 -1
- package/bundle/{chunk-mt8btwrv.js → chunk-nmnsf3fc.js} +1 -1
- package/bundle/{chunk-wf2mj6de.js → chunk-nqefvn28.js} +1 -1
- package/bundle/{chunk-kdr6nxmk.js → chunk-p409grvp.js} +2 -2
- package/bundle/chunk-p72n0tfq.js +2 -0
- package/bundle/{chunk-rwanncah.js → chunk-p80dc6kt.js} +2 -2
- package/bundle/{chunk-z65snfyw.js → chunk-p883sz67.js} +1 -1
- package/bundle/{chunk-eqed7tvt.js → chunk-p8enedkf.js} +1 -1
- package/bundle/chunk-pd33qvr0.js +2 -0
- package/bundle/chunk-pepn5jp4.js +3 -0
- package/bundle/chunk-pf7cj4jd.js +3 -0
- package/bundle/{chunk-q6x5bmc3.js → chunk-pfn1db1m.js} +2 -2
- package/bundle/{chunk-xtj5qqsw.js → chunk-pk0tytcm.js} +1 -1
- package/bundle/chunk-pq3622ae.js +2 -0
- package/bundle/{chunk-26m5yn5d.js → chunk-psveqqv2.js} +1 -1
- package/bundle/{chunk-w8r4gjea.js → chunk-pvee151a.js} +1 -1
- package/bundle/chunk-qatj4h6b.js +2 -0
- package/bundle/{chunk-cwkdc1cc.js → chunk-qdnxv55k.js} +1 -1
- package/bundle/{chunk-s75chpxq.js → chunk-qe0sfafy.js} +2 -2
- package/bundle/chunk-qfz0a58d.js +2 -0
- package/bundle/chunk-qjwfj51e.js +2 -0
- package/bundle/chunk-qkg73rs9.js +2 -0
- package/bundle/{chunk-7b69jj5g.js → chunk-qm9ezq93.js} +1 -1
- package/bundle/{chunk-hvcdemxe.js → chunk-qnqqrvvs.js} +2 -2
- package/bundle/{chunk-bqeyh2gx.js → chunk-qnv2v02g.js} +2 -2
- package/bundle/{chunk-kfdqfha0.js → chunk-qpm5afdz.js} +1 -1
- package/bundle/chunk-qvcfst7n.js +11 -0
- package/bundle/{chunk-xqzbcs8x.js → chunk-rgecc41f.js} +2 -2
- package/bundle/chunk-rjcptzem.js +8 -0
- package/bundle/{chunk-k1ht1sjr.js → chunk-rjf21v5c.js} +1 -1
- package/bundle/chunk-rmsqb6r4.js +10 -0
- package/bundle/{chunk-dq1wprmb.js → chunk-rq4hqwjy.js} +1 -1
- package/bundle/chunk-rqrpbcm6.js +2 -0
- package/bundle/{chunk-kbhby60s.js → chunk-rs1mm5ef.js} +1 -1
- package/bundle/{chunk-jj7wrfty.js → chunk-rze20q68.js} +1 -1
- package/bundle/chunk-s76hdgw6.js +2 -0
- package/bundle/chunk-s7vhjg9e.js +2 -0
- package/bundle/{chunk-88kt6qmd.js → chunk-se79ke63.js} +2 -2
- package/bundle/chunk-sec3a60m.js +2 -0
- package/bundle/chunk-sjnt5e6w.js +2 -0
- package/bundle/chunk-sntb757q.js +2 -0
- package/bundle/chunk-svscftd7.js +2 -0
- package/bundle/chunk-sx0cabcs.js +2 -0
- package/bundle/{chunk-6j07cgna.js → chunk-sx5m81em.js} +1 -1
- package/bundle/{chunk-yr4evt94.js → chunk-syhay5ye.js} +1 -1
- package/bundle/{chunk-5d18fd4p.js → chunk-t07a5431.js} +1 -1
- package/bundle/{chunk-hs8qwx4n.js → chunk-t0amhhsk.js} +1 -1
- package/bundle/{chunk-70gfpkxv.js → chunk-t2tsyazc.js} +1 -1
- package/bundle/{chunk-7m4camry.js → chunk-tdmaxc6n.js} +1 -1
- package/bundle/{chunk-y2h0adg5.js → chunk-tf1me2r4.js} +3 -3
- package/bundle/{chunk-cn7nnjsf.js → chunk-tfggzzqw.js} +1 -1
- package/bundle/chunk-tmdm6vm6.js +2 -0
- package/bundle/{chunk-qx9j6nz1.js → chunk-v4xgceeq.js} +1 -1
- package/bundle/chunk-v6g0ksks.js +2 -0
- package/bundle/chunk-v7ah9gg0.js +3 -0
- package/bundle/{chunk-g0vzdt58.js → chunk-vb4e7y4d.js} +1 -1
- package/bundle/chunk-vbf73c7z.js +2 -0
- package/bundle/chunk-vbf9jpas.js +2 -0
- package/bundle/{chunk-5vyper2h.js → chunk-veev25yg.js} +1 -1
- package/bundle/{chunk-sjqgmp12.js → chunk-vfj5nwab.js} +2 -2
- package/bundle/{chunk-a3te67a5.js → chunk-vmgknvxs.js} +2 -2
- package/bundle/{chunk-agx5m1ev.js → chunk-vq6bh2z9.js} +1 -1
- package/bundle/{chunk-7n994qss.js → chunk-vqq5vmh1.js} +222 -222
- package/bundle/chunk-vrcf5q4s.js +2 -0
- package/bundle/chunk-vxrsp6n7.js +2 -0
- package/bundle/chunk-w8ax3pvh.js +2 -0
- package/bundle/chunk-w98r39gd.js +9 -0
- package/bundle/chunk-wb69d52j.js +3 -0
- package/bundle/{chunk-39h565hz.js → chunk-wmrq9qqf.js} +1 -1
- package/bundle/{chunk-8k4mkrdw.js → chunk-wrgg270f.js} +1 -1
- package/bundle/{chunk-w32tj884.js → chunk-ww8ear80.js} +2 -2
- package/bundle/{chunk-zeh3mjgp.js → chunk-x36jhtex.js} +1 -1
- package/bundle/{chunk-7tthc48p.js → chunk-x6b99nt3.js} +1 -1
- package/bundle/{chunk-k3pvgwgc.js → chunk-xdde80rf.js} +2 -2
- package/bundle/{chunk-ypff4a5n.js → chunk-xjrt0dta.js} +1 -1
- package/bundle/chunk-xk2cmh49.js +2 -0
- package/bundle/{chunk-3w9k7yxx.js → chunk-xqa6qkx2.js} +1 -1
- package/bundle/{chunk-scb48j07.js → chunk-xw283h2r.js} +2 -2
- package/bundle/{chunk-qzd0q1jg.js → chunk-xy4t5qf8.js} +1 -1
- package/bundle/{chunk-8e2wwdgb.js → chunk-xyn3xxfs.js} +1 -1
- package/bundle/chunk-xzhkfctf.js +2 -0
- package/bundle/chunk-y0xt5a6g.js +2 -0
- package/bundle/{chunk-26mt118z.js → chunk-ybn8tb09.js} +1 -1
- package/bundle/chunk-ydmrvx7q.js +2 -0
- package/bundle/{chunk-9tq5yt3t.js → chunk-ydsen7w0.js} +1 -1
- package/bundle/{chunk-0svy8w30.js → chunk-yhqk8bzk.js} +2 -2
- package/bundle/{chunk-shxny9x9.js → chunk-ykfq8bem.js} +1 -1
- package/bundle/{chunk-22vvjp4g.js → chunk-ym4ydwrz.js} +2 -2
- package/bundle/{chunk-1gg4c0pq.js → chunk-yzchwmb4.js} +1 -1
- package/bundle/{chunk-3cpqdake.js → chunk-z015twaq.js} +2 -2
- package/bundle/chunk-z2rtcgad.js +3 -0
- package/bundle/{chunk-c546xxjk.js → chunk-z3zx6g09.js} +1 -1
- package/bundle/chunk-z9b3t2jm.js +2 -0
- package/bundle/{chunk-brrtcqrc.js → chunk-zbdbsagd.js} +2 -2
- package/bundle/{chunk-y3qf1kg9.js → chunk-zh808d4t.js} +1 -1
- package/bundle/{chunk-7tb9fjvq.js → chunk-zny2qaqa.js} +2 -2
- package/bundle/{chunk-gzse9pab.js → chunk-zsnbxsdx.js} +2 -2
- package/bundle/{chunk-w9vv1whr.js → chunk-zss93r48.js} +1 -1
- package/bundle/chunk-zzr8smtm.js +2 -0
- package/bundle/index.js +16 -16
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-1by6y9tm.js +0 -2
- package/bundle/chunk-1gjh45v5.js +0 -9
- package/bundle/chunk-1p7wqmxp.js +0 -2
- package/bundle/chunk-1v47v7vm.js +0 -3
- package/bundle/chunk-21hnx8rx.js +0 -24
- package/bundle/chunk-22pvftx8.js +0 -2
- package/bundle/chunk-2bce1njy.js +0 -2
- package/bundle/chunk-2wcwbp3t.js +0 -799
- package/bundle/chunk-338hbnza.js +0 -11
- package/bundle/chunk-3gsvbfqz.js +0 -2
- package/bundle/chunk-3sem578c.js +0 -3
- package/bundle/chunk-3vgnqaem.js +0 -2
- package/bundle/chunk-3xrhxyz9.js +0 -2
- package/bundle/chunk-3zdyrnvp.js +0 -2
- package/bundle/chunk-4nhbgva1.js +0 -2
- package/bundle/chunk-5ch23jj3.js +0 -2
- package/bundle/chunk-5hzkd9te.js +0 -2
- package/bundle/chunk-5vwhfa42.js +0 -2
- package/bundle/chunk-662x3gq6.js +0 -2
- package/bundle/chunk-6an0pk19.js +0 -2
- package/bundle/chunk-6ybqwnp7.js +0 -2
- package/bundle/chunk-7365jzj1.js +0 -2
- package/bundle/chunk-7amvpgng.js +0 -2
- package/bundle/chunk-7dcz5ytp.js +0 -2
- package/bundle/chunk-7h7bwjmm.js +0 -2
- package/bundle/chunk-7vk5fhhv.js +0 -2
- package/bundle/chunk-7vqw9wge.js +0 -2
- package/bundle/chunk-7vxk5t11.js +0 -2
- package/bundle/chunk-83fm5xcn.js +0 -2
- package/bundle/chunk-8b644ae2.js +0 -2
- package/bundle/chunk-av2q0ffj.js +0 -2
- package/bundle/chunk-avk3wfch.js +0 -7
- package/bundle/chunk-azna4wdf.js +0 -2
- package/bundle/chunk-b192q4m0.js +0 -2
- package/bundle/chunk-bh46627y.js +0 -2
- package/bundle/chunk-c267ggx2.js +0 -2
- package/bundle/chunk-c4x99ayd.js +0 -11
- package/bundle/chunk-c6kxegws.js +0 -2
- package/bundle/chunk-cek3cfz4.js +0 -2
- package/bundle/chunk-ete0y35c.js +0 -2
- package/bundle/chunk-f1mmzzsn.js +0 -2
- package/bundle/chunk-f66cvq2q.js +0 -2
- package/bundle/chunk-fd1vbz1f.js +0 -3
- package/bundle/chunk-febbrhev.js +0 -3
- package/bundle/chunk-fq4v97xn.js +0 -2
- package/bundle/chunk-fw1f6br4.js +0 -2
- package/bundle/chunk-fzzze6zd.js +0 -5
- package/bundle/chunk-g3pb8rad.js +0 -2
- package/bundle/chunk-g6tw5dvr.js +0 -14
- package/bundle/chunk-gc1yetqd.js +0 -2
- package/bundle/chunk-gtckkn15.js +0 -2
- package/bundle/chunk-gtzreftf.js +0 -2
- package/bundle/chunk-hg7kfd0t.js +0 -3
- package/bundle/chunk-j5vahbw1.js +0 -2
- package/bundle/chunk-jazpapb9.js +0 -3
- package/bundle/chunk-jek1cnfk.js +0 -3
- package/bundle/chunk-jevrajsx.js +0 -2
- package/bundle/chunk-jzdks7bv.js +0 -2
- package/bundle/chunk-k1e7w7w5.js +0 -2
- package/bundle/chunk-k33xx2z9.js +0 -2
- package/bundle/chunk-k6vf6vq6.js +0 -2
- package/bundle/chunk-kn391hb2.js +0 -2
- package/bundle/chunk-knmba0q6.js +0 -2
- package/bundle/chunk-knnemqfm.js +0 -3
- package/bundle/chunk-kx4b39v6.js +0 -2
- package/bundle/chunk-mah572rs.js +0 -2
- package/bundle/chunk-mg6nwfw3.js +0 -2
- package/bundle/chunk-pdgrang4.js +0 -2
- package/bundle/chunk-r3q82hz3.js +0 -2
- package/bundle/chunk-r4ygs0jv.js +0 -2
- package/bundle/chunk-r6xhxvjv.js +0 -2
- package/bundle/chunk-r79mz5kd.js +0 -5
- package/bundle/chunk-r99pnfra.js +0 -2
- package/bundle/chunk-rjjgnvdk.js +0 -2
- package/bundle/chunk-rq4xdyst.js +0 -2
- package/bundle/chunk-rsd3v7cg.js +0 -2
- package/bundle/chunk-rxsgbdv0.js +0 -2
- package/bundle/chunk-s4x1jhj3.js +0 -2
- package/bundle/chunk-s7sksztt.js +0 -3
- package/bundle/chunk-sx760d9d.js +0 -2
- package/bundle/chunk-tmjd3evp.js +0 -8
- package/bundle/chunk-tp1d856p.js +0 -2
- package/bundle/chunk-tpxs00p5.js +0 -2
- package/bundle/chunk-tqk12r89.js +0 -2
- package/bundle/chunk-tycgrqgq.js +0 -2
- package/bundle/chunk-tydvpy1s.js +0 -3
- package/bundle/chunk-tz8qhbk9.js +0 -3
- package/bundle/chunk-v1y3pbfv.js +0 -2
- package/bundle/chunk-v32cyrg2.js +0 -2
- package/bundle/chunk-v7pypmvk.js +0 -2
- package/bundle/chunk-vbqyddy8.js +0 -2
- package/bundle/chunk-vgx86f2r.js +0 -2
- package/bundle/chunk-w0jvqdez.js +0 -2
- package/bundle/chunk-w79yek40.js +0 -2
- package/bundle/chunk-w7nxsfbd.js +0 -3
- package/bundle/chunk-wcea06cr.js +0 -2
- package/bundle/chunk-wcx4bbvn.js +0 -2
- package/bundle/chunk-wdw183vh.js +0 -2
- package/bundle/chunk-wqd3svh6.js +0 -2
- package/bundle/chunk-wqe5spdq.js +0 -2
- package/bundle/chunk-wqww2byk.js +0 -2
- package/bundle/chunk-wybd806z.js +0 -2
- package/bundle/chunk-x1vb00hr.js +0 -2
- package/bundle/chunk-xafh07r3.js +0 -2
- package/bundle/chunk-xgzjcsad.js +0 -2
- package/bundle/chunk-xn0xhd0w.js +0 -3
- package/bundle/chunk-xnbfy5jy.js +0 -2
- package/bundle/chunk-xxed39zx.js +0 -3
- package/bundle/chunk-y6pzag4n.js +0 -2
- package/bundle/chunk-y7w6fjwt.js +0 -2
- package/bundle/chunk-z195gv71.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-0rmmg3g4.js";var{create:mr,defineProperty:it,getOwnPropertyDescriptor:fr,getOwnPropertyNames:yr,getPrototypeOf:xr}=Object,Pr=Object.prototype.hasOwnProperty,Ar=(l,u)=>()=>(u||l((u={exports:{}}).exports,u),u.exports),rt=(l,u)=>{for(var m in u)it(l,m,{get:u[m],enumerable:!0})},gr=(l,u,m,f)=>{if(u&&typeof u=="object"||typeof u=="function")for(let x of yr(u))!Pr.call(l,x)&&x!==m&&it(l,x,{get:()=>u[x],enumerable:!(f=fr(u,x))||f.enumerable});return l},Gt=(l,u,m)=>(m=l!=null?mr(xr(l)):{},gr(u||!l||!l.__esModule?it(m,"default",{value:l,enumerable:!0}):m,l)),Yt=Ar((l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(t,e){if(t==null)return{};var s={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;s[i]=t[i]}return s}var m=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},f=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function x(t,e){let{line:s,column:i,index:r}=t;return new m(s,i+e,r+e)}var C="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",D={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:C},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:C}},U={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},S=(t)=>t.type==="UpdateExpression"?U.UpdateExpression[`${t.prefix}`]:U[t.type],M={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
3
3
|
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
4
4
|
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${S(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${S(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${S(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map((e)=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e)=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},B={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},X={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},ie=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),re=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${S({type:t})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),ms=["message"];function ot(t,e,s){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:s})}function fs({toMessage:t,code:e,reasonCode:s,syntaxPlugin:i}){let r=s==="MissingPlugin"||s==="MissingOneOfPlugins";{let a={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};a[s]&&(s=a[s])}return function a(n,o){let p=SyntaxError();return p.code=e,p.reasonCode=s,p.loc=n,p.pos=n.index,p.syntaxPlugin=i,r&&(p.missingPlugin=o.missingPlugin),ot(p,"clone",function(h={}){var d;let{line:y,column:A,index:T}=(d=h.loc)!=null?d:n;return a(new m(y,A,T),Object.assign({},o,h.details))}),ot(p,"details",o),Object.defineProperty(p,"message",{configurable:!0,get(){let h=`${t(o)} (${n.line}:${n.column})`;return this.message=h,h},set(h){Object.defineProperty(this,"message",{value:h,writable:!0})}}),p}}function $(t,e){if(Array.isArray(t))return(i)=>$(i,t[0]);let s={};for(let i of Object.keys(t)){let r=t[i],a=typeof r=="string"?{message:()=>r}:typeof r=="function"?{message:r}:r,{message:n}=a,o=u(a,ms),p=typeof n=="string"?()=>n:n;s[i]=fs(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:p},e?{syntaxPlugin:e}:{},o))}return s}var c=Object.assign({},$(D),$(M),$(B),$(X),$`pipelineOperator`(re));function ys(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function xs(t){let e=ys();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let s of Object.keys(e))t[s]!=null&&(e[s]=t[s]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((t.startColumn==null||t.startIndex==null)&&t.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return e}var{defineProperty:Ps}=Object,ht=(t,e)=>{t&&Ps(t,e,{enumerable:!1,value:t[e]})};function pe(t){return ht(t.loc.start,"index"),ht(t.loc.end,"index"),t}var As=(t)=>class extends t{parse(){let e=pe(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(pe)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||e),s}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,s){let i=this.startNodeAtNode(e);return i.expression=e,this.finishNodeAt(i,"ChainExpression",s)}directiveToStmt(e){let s=e.value;delete e.value,this.castNodeTo(s,"Literal"),s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=this.castNodeTo(e,"ExpressionStatement");return i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:s,end:i,loc:r,range:a,raw:n,value:o}=e,p=Object.create(e.constructor.prototype);return p.type="Literal",p.start=s,p.end=i,p.loc=r,p.range=a,p.raw=n,p.value=o,p}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,a){super.parseBlockBody(e,s,i,r,a);let n=e.directives.map((o)=>this.directiveToStmt(o));e.body=n.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,a,n,o=!1){let p=this.startNode();p.kind=e.kind,p=super.parseMethod(p,s,i,r,a,n,o),delete p.kind;let{typeParameters:h}=e;h&&(delete e.typeParameters,p.typeParameters=h,this.resetStartLocationFromNode(p,h));let d=this.castNodeTo(p,"FunctionExpression");return e.value=d,n==="ClassPrivateMethod"&&(e.computed=!1),n==="ObjectMethod"?(e.kind==="method"&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(s,"PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(s,"PropertyDefinition"),s.computed=!1),s}parseClassAccessorProperty(e){let s=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")&&(s.abstract&&this.hasPlugin("typescript")?(delete s.abstract,this.castNodeTo(s,"TSAbstractAccessorProperty")):this.castNodeTo(s,"AccessorProperty")),s}parseObjectProperty(e,s,i,r){let a=super.parseObjectProperty(e,s,i,r);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(c.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(c.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){var r,a;this.castNodeTo(i,"ImportExpression"),i.source=i.arguments[0],i.options=(r=i.arguments[1])!=null?r:null,i.attributes=(a=i.arguments[1])!=null?a:null,delete i.arguments,delete i.callee}else i.type==="OptionalCallExpression"?this.castNodeTo(i,"CallExpression"):i.optional=!1;return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(r,"ExportAllDeclaration"),r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:n}=r;(n==null?void 0:n.type)==="ClassDeclaration"&&((a=n.decorators)==null?void 0:a.length)>0&&n.start===r.start&&this.resetStartLocation(r,i)}break}return r}stopParseSubscript(e,s){let i=super.stopParseSubscript(e,s);return s.optionalChainMember?this.estreeParseChainExpression(i,e.loc.end):i}parseMember(e,s,i,r,a){let n=super.parseMember(e,s,i,r,a);return n.type==="OptionalMemberExpression"?this.castNodeTo(n,"MemberExpression"):n.optional=!1,n}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,s){let i=super.castNodeTo(e,s);return this.fillOptionalPropertiesForTSESLint(i),i}cloneIdentifier(e){let s=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(s),s}cloneStringLiteral(e){return e.type==="Literal"?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,s,i){return pe(super.finishNodeAt(e,s,i))}finishNode(e,s){let i=super.finishNode(e,s);return this.fillOptionalPropertiesForTSESLint(i),i}resetStartLocation(e,s){super.resetStartLocation(e,s),pe(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),pe(e)}},ce=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},F={brace:new ce("{"),j_oTag:new ce("<tag"),j_cTag:new ce("</tag"),j_expr:new ce("<tag>...</tag>",!0)};F.template=new ce("`",!0);var I=!0,P=!0,Me=!0,ue=!0,G=!0,gs=!0,lt=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},Be=new Map;function v(t,e={}){e.keyword=t;let s=b(t,e);return Be.set(t,s),s}function j(t,e){return b(t,{beforeExpr:I,binop:e})}var de=-1,q=[],Oe=[],Re=[],Ue=[],je=[],_e=[];function b(t,e={}){var s,i,r,a;return++de,Oe.push(t),Re.push((s=e.binop)!=null?s:-1),Ue.push((i=e.beforeExpr)!=null?i:!1),je.push((r=e.startsExpr)!=null?r:!1),_e.push((a=e.prefix)!=null?a:!1),q.push(new lt(t,e)),de}function N(t,e={}){var s,i,r,a;return++de,Be.set(t,de),Oe.push(t),Re.push((s=e.binop)!=null?s:-1),Ue.push((i=e.beforeExpr)!=null?i:!1),je.push((r=e.startsExpr)!=null?r:!1),_e.push((a=e.prefix)!=null?a:!1),q.push(new lt("name",e)),de}var Ts={bracketL:b("[",{beforeExpr:I,startsExpr:P}),bracketHashL:b("#[",{beforeExpr:I,startsExpr:P}),bracketBarL:b("[|",{beforeExpr:I,startsExpr:P}),bracketR:b("]"),bracketBarR:b("|]"),braceL:b("{",{beforeExpr:I,startsExpr:P}),braceBarL:b("{|",{beforeExpr:I,startsExpr:P}),braceHashL:b("#{",{beforeExpr:I,startsExpr:P}),braceR:b("}"),braceBarR:b("|}"),parenL:b("(",{beforeExpr:I,startsExpr:P}),parenR:b(")"),comma:b(",",{beforeExpr:I}),semi:b(";",{beforeExpr:I}),colon:b(":",{beforeExpr:I}),doubleColon:b("::",{beforeExpr:I}),dot:b("."),question:b("?",{beforeExpr:I}),questionDot:b("?."),arrow:b("=>",{beforeExpr:I}),template:b("template"),ellipsis:b("...",{beforeExpr:I}),backQuote:b("`",{startsExpr:P}),dollarBraceL:b("${",{beforeExpr:I,startsExpr:P}),templateTail:b("...`",{startsExpr:P}),templateNonTail:b("...${",{beforeExpr:I,startsExpr:P}),at:b("@"),hash:b("#",{startsExpr:P}),interpreterDirective:b("#!..."),eq:b("=",{beforeExpr:I,isAssign:ue}),assign:b("_=",{beforeExpr:I,isAssign:ue}),slashAssign:b("_=",{beforeExpr:I,isAssign:ue}),xorAssign:b("_=",{beforeExpr:I,isAssign:ue}),moduloAssign:b("_=",{beforeExpr:I,isAssign:ue}),incDec:b("++/--",{prefix:G,postfix:gs,startsExpr:P}),bang:b("!",{beforeExpr:I,prefix:G,startsExpr:P}),tilde:b("~",{beforeExpr:I,prefix:G,startsExpr:P}),doubleCaret:b("^^",{startsExpr:P}),doubleAt:b("@@",{startsExpr:P}),pipeline:j("|>",0),nullishCoalescing:j("??",1),logicalOR:j("||",1),logicalAND:j("&&",2),bitwiseOR:j("|",3),bitwiseXOR:j("^",4),bitwiseAND:j("&",5),equality:j("==/!=/===/!==",6),lt:j("</>/<=/>=",7),gt:j("</>/<=/>=",7),relational:j("</>/<=/>=",7),bitShift:j("<</>>/>>>",8),bitShiftL:j("<</>>/>>>",8),bitShiftR:j("<</>>/>>>",8),plusMin:b("+/-",{beforeExpr:I,binop:9,prefix:G,startsExpr:P}),modulo:b("%",{binop:10,startsExpr:P}),star:b("*",{binop:10}),slash:j("/",10),exponent:b("**",{beforeExpr:I,binop:11,rightAssociative:!0}),_in:v("in",{beforeExpr:I,binop:7}),_instanceof:v("instanceof",{beforeExpr:I,binop:7}),_break:v("break"),_case:v("case",{beforeExpr:I}),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",{beforeExpr:I}),_else:v("else",{beforeExpr:I}),_finally:v("finally"),_function:v("function",{startsExpr:P}),_if:v("if"),_return:v("return",{beforeExpr:I}),_switch:v("switch"),_throw:v("throw",{beforeExpr:I,prefix:G,startsExpr:P}),_try:v("try"),_var:v("var"),_const:v("const"),_with:v("with"),_new:v("new",{beforeExpr:I,startsExpr:P}),_this:v("this",{startsExpr:P}),_super:v("super",{startsExpr:P}),_class:v("class",{startsExpr:P}),_extends:v("extends",{beforeExpr:I}),_export:v("export"),_import:v("import",{startsExpr:P}),_null:v("null",{startsExpr:P}),_true:v("true",{startsExpr:P}),_false:v("false",{startsExpr:P}),_typeof:v("typeof",{beforeExpr:I,prefix:G,startsExpr:P}),_void:v("void",{beforeExpr:I,prefix:G,startsExpr:P}),_delete:v("delete",{beforeExpr:I,prefix:G,startsExpr:P}),_do:v("do",{isLoop:Me,beforeExpr:I}),_for:v("for",{isLoop:Me}),_while:v("while",{isLoop:Me}),_as:N("as",{startsExpr:P}),_assert:N("assert",{startsExpr:P}),_async:N("async",{startsExpr:P}),_await:N("await",{startsExpr:P}),_defer:N("defer",{startsExpr:P}),_from:N("from",{startsExpr:P}),_get:N("get",{startsExpr:P}),_let:N("let",{startsExpr:P}),_meta:N("meta",{startsExpr:P}),_of:N("of",{startsExpr:P}),_sent:N("sent",{startsExpr:P}),_set:N("set",{startsExpr:P}),_source:N("source",{startsExpr:P}),_static:N("static",{startsExpr:P}),_using:N("using",{startsExpr:P}),_yield:N("yield",{startsExpr:P}),_asserts:N("asserts",{startsExpr:P}),_checks:N("checks",{startsExpr:P}),_exports:N("exports",{startsExpr:P}),_global:N("global",{startsExpr:P}),_implements:N("implements",{startsExpr:P}),_intrinsic:N("intrinsic",{startsExpr:P}),_infer:N("infer",{startsExpr:P}),_is:N("is",{startsExpr:P}),_mixins:N("mixins",{startsExpr:P}),_proto:N("proto",{startsExpr:P}),_require:N("require",{startsExpr:P}),_satisfies:N("satisfies",{startsExpr:P}),_keyof:N("keyof",{startsExpr:P}),_readonly:N("readonly",{startsExpr:P}),_unique:N("unique",{startsExpr:P}),_abstract:N("abstract",{startsExpr:P}),_declare:N("declare",{startsExpr:P}),_enum:N("enum",{startsExpr:P}),_module:N("module",{startsExpr:P}),_namespace:N("namespace",{startsExpr:P}),_interface:N("interface",{startsExpr:P}),_type:N("type",{startsExpr:P}),_opaque:N("opaque",{startsExpr:P}),name:b("name",{startsExpr:P}),placeholder:b("%%",{startsExpr:P}),string:b("string",{startsExpr:P}),num:b("num",{startsExpr:P}),bigint:b("bigint",{startsExpr:P}),decimal:b("decimal",{startsExpr:P}),regexp:b("regexp",{startsExpr:P}),privateName:b("#name",{startsExpr:P}),eof:b("eof"),jsxName:b("jsxName"),jsxText:b("jsxText",{beforeExpr:I}),jsxTagStart:b("jsxTagStart",{startsExpr:P}),jsxTagEnd:b("jsxTagEnd")};function L(t){return t>=93&&t<=133}function bs(t){return t<=92}function V(t){return t>=58&&t<=133}function pt(t){return t>=58&&t<=137}function Es(t){return Ue[t]}function me(t){return je[t]}function Cs(t){return t>=29&&t<=33}function ct(t){return t>=129&&t<=131}function Ss(t){return t>=90&&t<=92}function He(t){return t>=58&&t<=92}function ws(t){return t>=39&&t<=59}function Is(t){return t===34}function Ns(t){return _e[t]}function vs(t){return t>=121&&t<=123}function ks(t){return t>=124&&t<=130}function Y(t){return Oe[t]}function Ee(t){return Re[t]}function Ds(t){return t===57}function Ce(t){return t>=24&&t<=25}function K(t){return q[t]}q[8].updateContext=(t)=>{t.pop()},q[5].updateContext=q[7].updateContext=q[23].updateContext=(t)=>{t.push(F.brace)},q[22].updateContext=(t)=>{t[t.length-1]===F.template?t.pop():t.push(F.template)},q[143].updateContext=(t)=>{t.push(F.j_expr,F.j_oTag)};var ze="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",ut="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Fs=new RegExp("["+ze+"]"),Ls=new RegExp("["+ze+ut+"]");ze=ut=null;var dt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ms=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function Ve(t,e){let s=65536;for(let i=0,r=e.length;i<r;i+=2){if(s+=e[i],s>t)return!1;if(s+=e[i+1],s>=t)return!0}return!1}function J(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&Fs.test(String.fromCharCode(t)):Ve(t,dt)}function ae(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&Ls.test(String.fromCharCode(t)):Ve(t,dt)||Ve(t,Ms)}var $e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Bs=new Set($e.keyword),Os=new Set($e.strict),Rs=new Set($e.strictBind);function mt(t,e){return e&&t==="await"||t==="enum"}function ft(t,e){return mt(t,e)||Os.has(t)}function yt(t){return Rs.has(t)}function xt(t,e){return ft(t,e)||yt(t)}function Us(t){return Bs.has(t)}function js(t,e,s){return t===64&&e===64&&J(s)}var _s=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Hs(t){return _s.has(t)}var qe=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},Ke=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new qe(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16){this.checkRedeclarationInScope(i,t,e,s);let r=i.names.get(t)||0;e&16?r=r|4:(i.firstLexicalName||(i.firstLexicalName=t),r=r|2),i.names.set(t,r),e&8&&this.maybeExportDefined(i,t)}else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&1667));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(c.VarRedeclaration,i,{identifierName:e})}isRedeclaredInScope(t,e,s){if(!(s&1))return!1;if(s&8)return t.names.has(e);let i=t.names.get(e);return s&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&1667)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&1731&&!(e&4))return e}}},zs=class extends qe{constructor(...t){super(...t),this.declareFunctions=new Set}},Vs=class extends Ke{createScope(t){return new zs(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){if(super.isRedeclaredInScope(t,e,s))return!0;if(s&2048&&!t.declareFunctions.has(e)){let i=t.names.get(e);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},$s=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),E=$`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:s})=>`Enum \`${t}\` has type \`${s}\`, so the initializer of \`${e}\` needs to be a ${s} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:s})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${s}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function qs(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Pt(t){return t.importKind==="type"||t.importKind==="typeof"}var Ks={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Js(t,e){let s=[],i=[];for(let r=0;r<t.length;r++)(e(t[r],r,t)?s:i).push(t[r]);return[s,i]}var Ws=/\*?\s*@((?:no)?flow)\b/,Xs=(t)=>class extends t{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Vs}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,s){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=Ws.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1&&this.raise(E.UnexpectedSpaceBetweenModuloChecks,s),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(E.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let n=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(E.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(n)):(this.expectContextual(125,E.UnsupportedStatementInDeclareModule),n=this.flowParseDeclare(n,!0)),i.push(n)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,a=!1;return i.forEach((n)=>{qs(n)?(r==="CommonJS"&&this.raise(E.AmbiguousDeclareModuleKind,n),r="ES"):n.type==="DeclareModuleExports"&&(a&&this.raise(E.DuplicateDeclareModuleExports,n),r==="ES"&&this.raise(E.AmbiguousDeclareModuleKind,n),r="CommonJS",a=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(E.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:Ks[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return this.castNodeTo(s,"DeclareTypeAlias"),s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return this.castNodeTo(s,"DeclareOpaqueType"),s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(E.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,s,i){$s.has(e)&&this.raise(i?E.AssignReservedType:E.UnexpectedReservedType,s,{reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=r,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(E.MissingTypeParamDefault,s),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==F.brace){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=i}),this.state.inType=s,!this.state.inType&&this.curContext()===F.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:a}){let n=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let p,h,d=!1;for(s&&this.match(6)?(this.expect(6),p=9,h=!0):(this.expect(5),p=8,h=!1),o.exact=h;!this.match(p);){let A=!1,T=null,w=null,O=this.startNode();if(r&&this.isContextual(118)){let R=this.lookahead();R.type!==14&&R.type!==17&&(this.next(),T=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let R=this.lookahead();R.type!==14&&R.type!==17&&(this.next(),A=!0)}let k=this.flowParseVariance();if(this.eat(0))T!=null&&this.unexpected(T),this.eat(0)?(k&&this.unexpected(k.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(O,A))):o.indexers.push(this.flowParseObjectTypeIndexer(O,A,k));else if(this.match(10)||this.match(47))T!=null&&this.unexpected(T),k&&this.unexpected(k.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(O,A));else{let R="init";if(this.isContextual(99)||this.isContextual(104)){let Pe=this.lookahead();pt(Pe.type)&&(R=this.state.value,this.next())}let _=this.flowParseObjectTypeProperty(O,A,T,k,R,i,a??!h);_===null?(d=!0,w=this.state.lastTokStartLoc):o.properties.push(_)}this.flowObjectTypeSemicolon(),w&&!this.match(8)&&!this.match(9)&&this.raise(E.UnexpectedExplicitInexactInObject,w)}this.expect(p),i&&(o.inexact=d);let y=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=n,y}flowParseObjectTypeProperty(e,s,i,r,a,n,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(n?o||this.raise(E.InexactInsideExact,this.state.lastTokStartLoc):this.raise(E.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(E.InexactVariance,r),null):(n||this.raise(E.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),r&&this.raise(E.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=a;let p=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(e),!n&&e.key.name==="constructor"&&e.value.this&&this.raise(E.ThisParamBannedInConstructor,e.value.this)):(a!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(p=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=p,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?E.GetterMayNotHaveThisParam:E.SetterMayNotHaveThisParam,e.value.this),i!==s&&this.raise(e.kind==="get"?c.BadGetterArity:c.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(c.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){e??(e=this.state.startLoc);let i=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let r=this.startNodeAt(e);r.qualification=i,r.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let s=null,i=!1,r=null,a=this.startNode(),n=this.lookahead(),o=this.state.type===78;return n.type===14||n.type===17?(o&&!e&&this.raise(E.ThisParamMustBeFirst,a),s=this.parseIdentifier(o),this.eat(17)&&(i=!0,o&&this.raise(E.ThisParamMayNotBeOptional,a)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),a.name=s,a.optional=i,a.typeAnnotation=r,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let s=this.startNodeAt(e.loc.start);return s.name=null,s.optional=!1,s.typeAnnotation=e,this.finishNode(s,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let s=null,i=null;for(this.match(78)&&(i=this.flowParseFunctionTypeParam(!0),i.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(s=this.flowParseFunctionTypeParam(!1)),{params:e,rest:s,_this:i}}flowIdentToTypeAnnotation(e,s,i){switch(i.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,i)}}flowParsePrimaryType(){let e=this.state.startLoc,s=this.startNode(),i,r,a=!1,n=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=n,r;case 47:{let o=this.startNode();return o.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),o.params=i.params,o.rest=i.rest,o.this=i._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),this.finishNode(o,"FunctionTypeAnnotation")}case 10:{let o=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(L(this.state.type)||this.match(78)){let p=this.lookahead().type;a=p!==17&&p!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=n,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return r?i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):i=this.flowParseFunctionTypeParams(),o.params=i.params,o.rest=i.rest,o.this=i._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return s.value=this.match(85),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(E.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(He(this.state.type)){let o=Y(this.state.type);return this.next(),super.createIdentifier(s,o)}else if(L(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,s,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,s=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),a=this.eat(18);i=i||a,this.expect(0),!a&&this.match(3)?(r.elementType=s,this.next(),s=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=s,r.indexType=this.flowParseType(),this.expect(3),i?(r.optional=a,s=this.finishNode(r,"OptionalIndexedAccessType")):s=this.finishNode(r,"IndexedAccessType"))}return s}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let s=this.startNodeAt(e.loc.start);return s.params=[this.reinterpretTypeAsFunctionTypeParam(e)],s.rest=null,s.this=null,s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let s=this.flowParseAnonFunctionWithoutParens();for(e.types=[s];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?s:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let s=this.flowParseIntersectionType();for(e.types=[s];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?s:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let s=this.flowParseUnionType();return this.state.inType=e,s}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let e=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(e,s)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let s=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(s)),s}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,s,i=!1){if(s){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(V(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||L(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(L(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||ct(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||ct(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let y=this.lookaheadCharCode();if(y===44||y===61||y===58||y===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),a=this.state.noArrowAt,n=this.startNodeAt(s),{consequent:o,failed:p}=this.tryParseConditionalConsequent(),[h,d]=this.getArrowLikeExpressions(o);if(p||d.length>0){let y=[...a];if(d.length>0){this.state=r,this.state.noArrowAt=y;for(let A=0;A<d.length;A++)y.push(d[A].start);({consequent:o,failed:p}=this.tryParseConditionalConsequent()),[h,d]=this.getArrowLikeExpressions(o)}p&&h.length>1&&this.raise(E.AmbiguousConditionalArrow,r.startLoc),p&&h.length===1&&(this.state=r,y.push(h[0].start),this.state.noArrowAt=y,{consequent:o,failed:p}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=a,this.expect(14),n.test=e,n.consequent=o,n.alternate=this.forwardNoArrowParamsConversionAt(n,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(n,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):r.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate))}return s?(r.forEach((a)=>this.finishArrowValidation(a)),[r,[]]):Js(r,(a)=>a.params.every((n)=>this.isAssignable(n,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=i,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(131)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.isContextual(126)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(E.DeclareClassElement,r):s.value&&this.raise(E.DeclareClassFieldInitializer,s.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(c.InvalidIdentifier,this.state.curPosition(),{identifierName:s}),this.finishToken(132,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):js(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r<e.length;r++){let a=e[r];(a==null?void 0:a.type)==="TypeCastExpression"&&(e[r]=this.typeCastToParameter(a))}super.toAssignableList(e,s,i)}toReferencedList(e,s){for(let r=0;r<e.length;r++){var i;let a=e[r];a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(e.length>1||!s)&&this.raise(E.TypeCastInPattern,a.typeAnnotation)}return e}parseArrayLike(e,s,i,r){let a=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,a,n){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,a,n),s.params&&a){let o=s.params;o.length>0&&this.isThisParam(o[0])&&this.raise(E.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&a&&s.value.params){let o=s.value.params;o.length>0&&this.isThisParam(o[0])&&this.raise(E.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(E.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(E.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,a,n,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let p;this.match(47)&&!n&&(p=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let h=super.parseObjPropValue(e,s,i,r,a,n,o);return p&&((h.value||h).typeParameters=p),h}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(E.PatternIsOptional,e),this.isThisParam(e)&&this.raise(E.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(E.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(E.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(E.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(E.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,s,i){s.local=Pt(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(s,i))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let s=this.lookaheadCharCode();return s===123||s===42}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){if(super.applyImportPhase(e,s,i,r),s){if(!i&&this.match(65))return;e.exportKind=i==="type"?i:"value"}else i==="type"&&this.match(55)&&this.unexpected(),e.importKind=i==="type"||i==="typeof"?i:"value"}parseImportSpecifier(e,s,i,r,a){let n=e.imported,o=null;n.type==="Identifier"&&(n.name==="type"?o="type":n.name==="typeof"&&(o="typeof"));let p=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let d=this.parseIdentifier(!0);o!==null&&!V(this.state.type)?(e.imported=d,e.importKind=o,e.local=this.cloneIdentifier(d)):(e.imported=n,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&V(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(s)throw this.raise(c.ImportBindingIsString,e,{importName:n.value});e.imported=n,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(p=!0,e.local=this.cloneIdentifier(e.imported))}let h=Pt(e);return i&&h&&this.raise(E.ImportTypeShorthandOnlyInPureImport,e),(i||h)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),p&&!i&&!h&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,s){let i=e.kind;i!=="get"&&i!=="set"&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){if(this.match(14)){let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i}return super.parseAsyncArrowFromCallExpression(e,s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,s){var i;let r=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(r=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(e,s),r),!a.error)return a.node;let{context:p}=this.state,h=p[p.length-1];(h===F.j_oTag||h===F.j_expr)&&p.pop()}if((i=a)!=null&&i.error||this.match(47)){var n,o;r=r||this.state.clone();let p,h=this.tryParse((y)=>{var A;p=this.flowParseTypeParameterDeclaration();let T=this.forwardNoArrowParamsConversionAt(p,()=>{let O=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(O,p),O});(A=T.extra)!=null&&A.parenthesized&&y();let w=this.maybeUnwrapTypeCastExpression(T);return w.type!=="ArrowFunctionExpression"&&y(),w.typeParameters=p,this.resetStartLocationFromNode(w,p),T},r),d=null;if(h.node&&this.maybeUnwrapTypeCastExpression(h.node).type==="ArrowFunctionExpression"){if(!h.error&&!h.aborted)return h.node.async&&this.raise(E.UnexpectedTypeParameterBeforeAsyncArrowFunction,p),h.node;d=h.node}if((n=a)!=null&&n.node)return this.state=a.failState,a.node;if(d)return this.state=h.failState,d;throw(o=a)!=null&&o.thrown?a.error:h.thrown?h.error:this.raise(E.UnexpectedTokenAfterTypeParameter,p)}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let a=0;a<e.params.length;a++)this.isThisParam(e.params[a])&&a>0&&this.raise(E.ThisParamMustBeFirst,e.params[a]);super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),a=this.tryParse((o)=>this.parseAsyncArrowWithTypeParameters(s)||o(),r);if(!a.error&&!a.aborted)return a.node;let n=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(n.node&&!n.error)return n.node;if(a.node)return this.state=a.failState,a.node;if(n.node)return this.state=n.failState,n.node;throw a.error||n.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let a=this.startNodeAt(s);return a.callee=e,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(s);a.callee=e;let n=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11),r.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,r.optionalChainMember)));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(E.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(E.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(c.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(E.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?E.EnumInvalidMemberInitializerSymbolType:E.EnumInvalidMemberInitializerPrimaryType:E.EnumInvalidMemberInitializerUnknownType,e,s)}flowEnumErrorNumberMemberNotInitialized(e,s){this.raise(E.EnumNumberMemberNotInitialized,e,s)}flowEnumErrorStringMemberInconsistentlyInitialized(e,s){this.raise(E.EnumStringMemberInconsistentlyInitialized,e,s)}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 134:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let n=this.startNode(),{id:o,init:p}=this.flowEnumMemberRaw(),h=o.name;if(h==="")continue;/^[a-z]/.test(h)&&this.raise(E.EnumInvalidMemberName,o,{memberName:h,suggestion:h[0].toUpperCase()+h.slice(1),enumName:e}),i.has(h)&&this.raise(E.EnumDuplicateMemberName,o,{memberName:h,enumName:e}),i.add(h);let d={enumName:e,explicitType:s,memberName:h};switch(n.id=o,p.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(p.loc,d,"boolean"),n.init=p.value,r.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(p.loc,d,"number"),n.init=p.value,r.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(p.loc,d,"string"),n.init=p.value,r.stringMembers.push(this.finishNode(n,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(p.loc,d);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(p.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(p.loc,d);break;default:r.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:a}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!L(this.state.type))throw this.raise(E.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(E.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:n,hasUnknownMembers:o}=this.flowEnumMembers({enumName:i,explicitType:a});switch(e.hasUnknownMembers=o,a){case"boolean":return e.explicitType=!0,e.members=n.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=n.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=n.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let p=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let h=n.booleanMembers.length,d=n.numberMembers.length,y=n.stringMembers.length,A=n.defaultedMembers.length;if(!h&&!d&&!y&&!A)return p();if(!h&&!d)return e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!d&&!y&&h>=A){for(let T of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(T.loc.start,{enumName:i,memberName:T.id.name});return e.members=n.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!h&&!y&&d>=A){for(let T of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(T.loc.start,{enumName:i,memberName:T.id.name});return e.members=n.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(E.EnumInconsistentMemberValues,r,{enumName:i}),p()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},Gs=/\r\n|[\r\n\u2028\u2029]/,Se=new RegExp(Gs.source,"g");function ne(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function At(t,e,s){for(let i=e;i<s;i++)if(ne(t.charCodeAt(i)))return!0;return!1}var Je=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,We=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Ys(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var se=$`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Q(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function oe(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return oe(t.object)+"."+oe(t.property);throw Error("Node had unexpected type: "+t.type)}var Qs=(t)=>class extends t{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(se.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:ne(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?`
|
|
5
5
|
`:`\r
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{dO as vQ,eO as A,hO as _}from"./chunk-0rmmg3g4.js";var U1=A((_5,e6)=>{var E8=Object.prototype.hasOwnProperty,t6=Object.prototype.toString,i6=Object.defineProperty,a6=Object.getOwnPropertyDescriptor,n6=function($){if(typeof Array.isArray==="function")return Array.isArray($);return t6.call($)==="[object Array]"},r6=function($){if(!$||t6.call($)!=="[object Object]")return!1;var Q=E8.call($,"constructor"),Y=$.constructor&&$.constructor.prototype&&E8.call($.constructor.prototype,"isPrototypeOf");if($.constructor&&!Q&&!Y)return!1;var V;for(V in $);return typeof V>"u"||E8.call($,V)},s6=function($,Q){if(i6&&Q.name==="__proto__")i6($,Q.name,{enumerable:!0,configurable:!0,value:Q.newValue,writable:!0});else $[Q.name]=Q.newValue},o6=function($,Q){if(Q==="__proto__"){if(!E8.call($,Q))return;else if(a6)return a6($,Q).value}return $[Q]};e6.exports=function Z(){var $,Q,Y,V,W,z,K=arguments[0],F=1,L=arguments.length,N=!1;if(typeof K==="boolean")N=K,K=arguments[1]||{},F=2;if(K==null||typeof K!=="object"&&typeof K!=="function")K={};for(;F<L;++F)if($=arguments[F],$!=null){for(Q in $)if(Y=o6(K,Q),V=o6($,Q),K!==V){if(N&&V&&(r6(V)||(W=n6(V)))){if(W)W=!1,z=Y&&n6(Y)?Y:[];else z=Y&&r6(Y)?Y:{};s6(K,{name:Q,newValue:Z(N,z,V)})}else if(typeof V<"u")s6(K,{name:Q,newValue:V})}}return K}});var ZZ=A((x5,LQ)=>{LQ.exports={name:"gaxios",version:"7.1.4",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/cjs/src/index.js",types:"build/cjs/src/index.d.ts",files:["build/"],exports:{".":{import:{types:"./build/esm/src/index.d.ts",default:"./build/esm/src/index.js"},require:{types:"./build/cjs/src/index.d.ts",default:"./build/cjs/src/index.js"}}},scripts:{lint:"gts check --no-inline-config",test:"c8 mocha build/esm/test","presystem-test":"npm run compile","system-test":"mocha build/esm/system-test --timeout 80000",compile:"tsc -b ./tsconfig.json ./tsconfig.cjs.json && node utils/enable-esm.mjs",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"jsdoc -c .jsdoc.js","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean"},repository:{type:"git",directory:"packages/gaxios",url:"https://github.com/googleapis/google-cloud-node-core.git"},keywords:["google"],engines:{node:">=18"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@types/cors":"^2.8.6","@types/express":"^5.0.0","@types/extend":"^3.0.1","@types/mocha":"^10.0.10","@types/multiparty":"4.2.1","@types/mv":"^2.1.0","@types/ncp":"^2.0.8","@types/node":"^22.13.1","@types/sinon":"^17.0.3","@types/tmp":"^0.2.6",assert:"^2.0.0",browserify:"^17.0.0",c8:"^10.1.3",cors:"^2.8.5",express:"^5.0.0",gts:"^6.0.2","is-docker":"^3.0.0",jsdoc:"^4.0.4","jsdoc-fresh":"^5.0.0","jsdoc-region-tag":"^4.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"^5.0.1",linkinator:"^6.1.2",mocha:"^11.1.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^14.0.5","null-loader":"^4.0.1","pack-n-play":"^4.0.0",puppeteer:"^24.0.0",sinon:"^21.0.0","stream-browserify":"^3.0.0",tmp:"0.2.5","ts-loader":"^9.5.2",typescript:"5.8.3",webpack:"^5.97.1","webpack-cli":"^6.0.1"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","node-fetch":"^3.3.2"},homepage:"https://github.com/googleapis/google-cloud-node-core/tree/main/packages/gaxios"}});var QZ=A((b5,$Z)=>{var SQ=ZZ();$Z.exports={pkg:SQ}});var G1=A((T0)=>{var VZ=T0&&T0.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(T0,"__esModule",{value:!0});T0.GaxiosError=T0.GAXIOS_ERROR_SYMBOL=void 0;T0.defaultErrorRedactor=WZ;var YZ=VZ(U1()),BQ=VZ(QZ()),D1=BQ.default.pkg;T0.GAXIOS_ERROR_SYMBOL=Symbol.for(`${D1.name}-gaxios-error`);class M1 extends Error{config;response;code;status;error;[T0.GAXIOS_ERROR_SYMBOL]=D1.version;static[Symbol.hasInstance](Z){if(Z&&typeof Z==="object"&&T0.GAXIOS_ERROR_SYMBOL in Z&&Z[T0.GAXIOS_ERROR_SYMBOL]===D1.version)return!0;return Function.prototype[Symbol.hasInstance].call(M1,Z)}constructor(Z,$,Q,Y){super(Z,{cause:Y});if(this.config=$,this.response=Q,this.error=Y instanceof Error?Y:void 0,this.config=(0,YZ.default)(!0,{},$),this.response)this.response.config=(0,YZ.default)(!0,{},this.response.config);if(this.response){try{this.response.data=OQ(this.config.responseType,this.response?.bodyUsed?this.response?.data:void 0)}catch{}this.status=this.response.status}if(Y instanceof DOMException)this.code=Y.name;else if(Y&&typeof Y==="object"&&"code"in Y&&(typeof Y.code==="string"||typeof Y.code==="number"))this.code=Y.code}static extractAPIErrorFromResponse(Z,$="The request failed"){let Q=$;if(typeof Z.data==="string")Q=Z.data;if(Z.data&&typeof Z.data==="object"&&"error"in Z.data&&Z.data.error&&!Z.ok){if(typeof Z.data.error==="string")return{message:Z.data.error,code:Z.status,status:Z.statusText};if(typeof Z.data.error==="object"){Q="message"in Z.data.error&&typeof Z.data.error.message==="string"?Z.data.error.message:Q;let Y="status"in Z.data.error&&typeof Z.data.error.status==="string"?Z.data.error.status:Z.statusText,V="code"in Z.data.error&&typeof Z.data.error.code==="number"?Z.data.error.code:Z.status;if("errors"in Z.data.error&&Array.isArray(Z.data.error.errors)){let W=[];for(let z of Z.data.error.errors)if(typeof z==="object"&&"message"in z&&typeof z.message==="string")W.push(z.message);return Object.assign({message:W.join(`
|
|
3
3
|
`)||Q,code:V,status:Y},Z.data.error)}return Object.assign({message:Q,code:V,status:Y},Z.data.error)}}return{message:Q,code:Z.status,status:Z.statusText}}}T0.GaxiosError=M1;function OQ(Z,$){switch(Z){case"stream":return $;case"json":return JSON.parse(JSON.stringify($));case"arraybuffer":return JSON.parse(Buffer.from($).toString("utf8"));case"blob":return JSON.parse($.text());default:return $}}function WZ(Z){function Q(W){if(!W)return;W.forEach((z,K)=>{if(/^authentication$/i.test(K)||/^authorization$/i.test(K)||/secret/i.test(K))W.set(K,"<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.")})}function Y(W,z){if(typeof W==="object"&&W!==null&&typeof W[z]==="string"){let K=W[z];if(/grant_type=/i.test(K)||/assertion=/i.test(K)||/secret/i.test(K))W[z]="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>."}}function V(W){if(!W||typeof W!=="object")return;else if(W instanceof FormData||W instanceof URLSearchParams||"forEach"in W&&"set"in W)W.forEach((z,K)=>{if(["grant_type","assertion"].includes(K)||/secret/.test(K))W.set(K,"<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.")});else{if("grant_type"in W)W.grant_type="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";if("assertion"in W)W.assertion="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";if("client_secret"in W)W.client_secret="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>."}}if(Z.config){if(Q(Z.config.headers),Y(Z.config,"data"),V(Z.config.data),Y(Z.config,"body"),V(Z.config.body),Z.config.url.searchParams.has("token"))Z.config.url.searchParams.set("token","<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.");if(Z.config.url.searchParams.has("client_secret"))Z.config.url.searchParams.set("client_secret","<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.")}if(Z.response){if(WZ({config:Z.response.config}),Q(Z.response.headers),Z.response.bodyUsed)Y(Z.response,"data"),V(Z.response.data)}return Z}});var HZ=A((XZ)=>{Object.defineProperty(XZ,"__esModule",{value:!0});XZ.getRetryConfig=PQ;async function PQ(Z){let $=JZ(Z);if(!Z||!Z.config||!$&&!Z.config.retry)return{shouldRetry:!1};$=$||{},$.currentRetryAttempt=$.currentRetryAttempt||0,$.retry=$.retry===void 0||$.retry===null?3:$.retry,$.httpMethodsToRetry=$.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],$.noResponseRetries=$.noResponseRetries===void 0||$.noResponseRetries===null?2:$.noResponseRetries,$.retryDelayMultiplier=$.retryDelayMultiplier?$.retryDelayMultiplier:2,$.timeOfFirstRequest=$.timeOfFirstRequest?$.timeOfFirstRequest:Date.now(),$.totalTimeout=$.totalTimeout?$.totalTimeout:Number.MAX_SAFE_INTEGER,$.maxRetryDelay=$.maxRetryDelay?$.maxRetryDelay:Number.MAX_SAFE_INTEGER;let Q=[[100,199],[408,408],[429,429],[500,599]];if($.statusCodesToRetry=$.statusCodesToRetry||Q,Z.config.retryConfig=$,!await($.shouldRetry||AQ)(Z))return{shouldRetry:!1,config:Z.config};let V=jQ($);Z.config.retryConfig.currentRetryAttempt+=1;let W=$.retryBackoff?$.retryBackoff(Z,V):new Promise((z)=>{setTimeout(z,V)});if($.onRetryAttempt)await $.onRetryAttempt(Z);return await W,{shouldRetry:!0,config:Z.config}}function AQ(Z){let $=JZ(Z);if(Z.config.signal?.aborted&&Z.code!=="TimeoutError"||Z.code==="AbortError")return!1;if(!$||$.retry===0)return!1;if(!Z.response&&($.currentRetryAttempt||0)>=$.noResponseRetries)return!1;if(!$.httpMethodsToRetry||!$.httpMethodsToRetry.includes(Z.config.method?.toUpperCase()||"GET"))return!1;if(Z.response&&Z.response.status){let Q=!1;for(let[Y,V]of $.statusCodesToRetry){let W=Z.response.status;if(W>=Y&&W<=V){Q=!0;break}}if(!Q)return!1}if($.currentRetryAttempt=$.currentRetryAttempt||0,$.currentRetryAttempt>=$.retry)return!1;return!0}function JZ(Z){if(Z&&Z.config&&Z.config.retryConfig)return Z.config.retryConfig;return}function jQ(Z){let Q=(Z.currentRetryAttempt?0:Z.retryDelay??100)+(Math.pow(Z.retryDelayMultiplier,Z.currentRetryAttempt)-1)/2*1000,Y=Z.totalTimeout-(Date.now()-Z.timeOfFirstRequest);return Math.min(Q,Y,Z.maxRetryDelay)}});var I1=A((KZ)=>{Object.defineProperty(KZ,"__esModule",{value:!0});KZ.GaxiosInterceptorManager=void 0;class zZ extends Set{}KZ.GaxiosInterceptorManager=zZ});var UZ=A((o0)=>{var EQ=o0&&o0.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},s0;Object.defineProperty(o0,"__esModule",{value:!0});o0.Gaxios=void 0;var hQ=EQ(U1()),fQ=_("https"),p0=G1(),kQ=HZ(),wZ=_("stream"),FZ=I1(),yQ=async()=>globalThis.crypto?.randomUUID()||(await import("crypto")).randomUUID(),_Q=204;class R1{agentCache=new Map;defaults;interceptors;constructor(Z){this.defaults=Z||{},this.interceptors={request:new FZ.GaxiosInterceptorManager,response:new FZ.GaxiosInterceptorManager}}fetch(...Z){let $=Z[0],Q=Z[1],Y=void 0,V=new Headers;if(typeof $==="string")Y=new URL($);else if($ instanceof URL)Y=$;else if($&&$.url)Y=new URL($.url);if($&&typeof $==="object"&&"headers"in $)s0.mergeHeaders(V,$.headers);if(Q)s0.mergeHeaders(V,new Headers(Q.headers));if(typeof $==="object"&&!($ instanceof URL))return this.request({...Q,...$,headers:V,url:Y});else return this.request({...Q,headers:V,url:Y})}async request(Z={}){let $=await this.#Y(Z);return $=await this.#$($),this.#Q(this._request($))}async _defaultAdapter(Z){let $=Z.fetchImplementation||this.defaults.fetchImplementation||await s0.#H(),Q={...Z};delete Q.data;let Y=await $(Z.url,Q),V=await this.getResponseData(Z,Y);if(!Object.getOwnPropertyDescriptor(Y,"data")?.configurable)Object.defineProperties(Y,{data:{configurable:!0,writable:!0,enumerable:!0,value:V}});return Object.assign(Y,{config:Z,data:V})}async _request(Z){try{let $;if(Z.adapter)$=await Z.adapter(Z,this._defaultAdapter.bind(this));else $=await this._defaultAdapter(Z);if(!Z.validateStatus($.status)){if(Z.responseType==="stream"){let Y=[];for await(let V of $.data)Y.push(V);$.data=Y.toString()}let Q=p0.GaxiosError.extractAPIErrorFromResponse($,`Request failed with status code ${$.status}`);throw new p0.GaxiosError(Q?.message,Z,$,Q)}return $}catch($){let Q;if($ instanceof p0.GaxiosError)Q=$;else if($ instanceof Error)Q=new p0.GaxiosError($.message,Z,void 0,$);else Q=new p0.GaxiosError("Unexpected Gaxios Error",Z,void 0,$);let{shouldRetry:Y,config:V}=await(0,kQ.getRetryConfig)(Q);if(Y&&V)return Q.config.retryConfig.currentRetryAttempt=V.retryConfig.currentRetryAttempt,Z.retryConfig=Q.config?.retryConfig,this.#V(Z),this._request(Z);if(Z.errorRedactor)Z.errorRedactor(Q);throw Q}}async getResponseData(Z,$){if($.status===_Q)return"";if(Z.maxContentLength&&$.headers.has("content-length")&&Z.maxContentLength<Number.parseInt($.headers?.get("content-length")||""))throw new p0.GaxiosError("Response's `Content-Length` is over the limit.",Z,Object.assign($,{config:Z}));switch(Z.responseType){case"stream":return $.body;case"json":{let Q=await $.text();try{return JSON.parse(Q)}catch{return Q}}case"arraybuffer":return $.arrayBuffer();case"blob":return $.blob();case"text":return $.text();default:return this.getResponseDataFromContentType($)}}#Z(Z,$=[]){let Q=new URL(Z),Y=[...$],V=(process.env.NO_PROXY??process.env.no_proxy)?.split(",")||[];for(let W of V)Y.push(W.trim());for(let W of Y)if(W instanceof RegExp){if(W.test(Q.toString()))return!1}else if(W instanceof URL){if(W.origin===Q.origin)return!1}else if(W.startsWith("*.")||W.startsWith(".")){let z=W.replace(/^\*\./,".");if(Q.hostname.endsWith(z))return!1}else if(W===Q.origin||W===Q.hostname||W===Q.href)return!1;return!0}async#$(Z){let $=Promise.resolve(Z);for(let Q of this.interceptors.request.values())if(Q)$=$.then(Q.resolved,Q.rejected);return $}async#Q(Z){let $=Promise.resolve(Z);for(let Q of this.interceptors.response.values())if(Q)$=$.then(Q.resolved,Q.rejected);return $}async#Y(Z){let $=new Headers(this.defaults.headers);s0.mergeHeaders($,Z.headers);let Q=(0,hQ.default)(!0,{},this.defaults,Z);if(!Q.url)throw Error("URL is required.");if(Q.baseURL)Q.url=new URL(Q.url,Q.baseURL);if(Q.url=new URL(Q.url),Q.params)if(Q.paramsSerializer){let W=Q.paramsSerializer(Q.params);if(W.startsWith("?"))W=W.slice(1);let z=Q.url.toString().includes("?")?"&":"?";Q.url=Q.url+z+W}else{let W=Q.url instanceof URL?Q.url:new URL(Q.url);for(let[z,K]of new URLSearchParams(Q.params))W.searchParams.append(z,K);Q.url=W}if(typeof Z.maxContentLength==="number")Q.size=Z.maxContentLength;if(typeof Z.maxRedirects==="number")Q.follow=Z.maxRedirects;let Y=typeof Q.data==="string"||Q.data instanceof ArrayBuffer||Q.data instanceof Blob||globalThis.File&&Q.data instanceof File||Q.data instanceof FormData||Q.data instanceof wZ.Readable||Q.data instanceof ReadableStream||Q.data instanceof String||Q.data instanceof URLSearchParams||ArrayBuffer.isView(Q.data)||["Blob","File","FormData"].includes(Q.data?.constructor?.name||"");if(Q.multipart?.length){let W=await yQ();$.set("content-type",`multipart/related; boundary=${W}`),Q.body=wZ.Readable.from(this.getMultipartRequest(Q.multipart,W))}else if(Y)Q.body=Q.data;else if(typeof Q.data==="object")if($.get("Content-Type")==="application/x-www-form-urlencoded")Q.body=Q.paramsSerializer?Q.paramsSerializer(Q.data):new URLSearchParams(Q.data);else{if(!$.has("content-type"))$.set("content-type","application/json");Q.body=JSON.stringify(Q.data)}else if(Q.data)Q.body=Q.data;if(Q.validateStatus=Q.validateStatus||this.validateStatus,Q.responseType=Q.responseType||"unknown",!$.has("accept")&&Q.responseType==="json")$.set("accept","application/json");let V=Q.proxy||process?.env?.HTTPS_PROXY||process?.env?.https_proxy||process?.env?.HTTP_PROXY||process?.env?.http_proxy;if(Q.agent);else if(V&&this.#Z(Q.url,Q.noProxy)){let W=await s0.#X();if(this.agentCache.has(V))Q.agent=this.agentCache.get(V);else Q.agent=new W(V,{cert:Q.cert,key:Q.key}),this.agentCache.set(V,Q.agent)}else if(Q.cert&&Q.key)if(this.agentCache.has(Q.key))Q.agent=this.agentCache.get(Q.key);else Q.agent=new fQ.Agent({cert:Q.cert,key:Q.key}),this.agentCache.set(Q.key,Q.agent);if(typeof Q.errorRedactor!=="function"&&Q.errorRedactor!==!1)Q.errorRedactor=p0.defaultErrorRedactor;if(Q.body&&!("duplex"in Q))Q.duplex="half";return this.#V(Q),Object.assign(Q,{headers:$,url:Q.url instanceof URL?Q.url:new URL(Q.url)})}#V(Z){if(Z.timeout){let $=AbortSignal.timeout(Z.timeout);if(Z.signal&&!Z.signal.aborted)Z.signal=AbortSignal.any([Z.signal,$]);else Z.signal=$}}validateStatus(Z){return Z>=200&&Z<300}async getResponseDataFromContentType(Z){let $=Z.headers.get("Content-Type");if($===null)return Z.text();if($=$.toLowerCase(),$.includes("application/json")){let Q=await Z.text();try{Q=JSON.parse(Q)}catch{}return Q}else if($.match(/^text\//))return Z.text();else return Z.blob()}async*getMultipartRequest(Z,$){let Q=`--${$}--`;for(let Y of Z){let V=Y.headers.get("Content-Type")||"application/octet-stream";if(yield`--${$}\r
|
|
4
4
|
Content-Type: ${V}\r
|
|
5
5
|
\r
|
|
6
6
|
`,typeof Y.content==="string")yield Y.content;else yield*Y.content;yield`\r
|
|
7
|
-
`}yield Q}static#W;static#J;static async#X(){return this.#W||=(await import("./chunk-w0jvqdez.js").then((m)=>vQ(m.default))).HttpsProxyAgent,this.#W}static async#H(){let Z=typeof window<"u"&&!!window;return this.#J||=Z?window.fetch:(await import("node-fetch")).default,this.#J}static mergeHeaders(Z,...$){Z=Z instanceof Headers?Z:new Headers(Z);for(let Q of $)(Q instanceof Headers?Q:new Headers(Q)).forEach((V,W)=>{W==="set-cookie"?Z.append(W,V):Z.set(W,V)});return Z}}o0.Gaxios=R1;s0=R1});var X0=A((q0)=>{var xQ=q0&&q0.__createBinding||(Object.create?function(Z,$,Q,Y){if(Y===void 0)Y=Q;var V=Object.getOwnPropertyDescriptor($,Q);if(!V||("get"in V?!$.__esModule:V.writable||V.configurable))V={enumerable:!0,get:function(){return $[Q]}};Object.defineProperty(Z,Y,V)}:function(Z,$,Q,Y){if(Y===void 0)Y=Q;Z[Y]=$[Q]}),bQ=q0&&q0.__exportStar||function(Z,$){for(var Q in Z)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call($,Q))xQ($,Z,Q)};Object.defineProperty(q0,"__esModule",{value:!0});q0.instance=q0.Gaxios=q0.GaxiosError=void 0;q0.request=gQ;var DZ=UZ();Object.defineProperty(q0,"Gaxios",{enumerable:!0,get:function(){return DZ.Gaxios}});var mQ=G1();Object.defineProperty(q0,"GaxiosError",{enumerable:!0,get:function(){return mQ.GaxiosError}});bQ(I1(),q0);q0.instance=new DZ.Gaxios;async function gQ(Z){return q0.instance.request(Z)}});var N1=A((MZ,h8)=>{(function(Z){var $,Q=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Y=Math.ceil,V=Math.floor,W="[BigNumber Error] ",z=W+"Number primitive has more than 15 significant digits: ",K=100000000000000,F=14,L=9007199254740991,N=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],S=1e7,P=1e9;function x(b){var v,k,m,O=B.prototype={constructor:B,toString:null,valueOf:null},t=new B(1),i=20,d=4,V0=-7,s=21,Q0=-1e7,e=1e7,Y0=!1,y0=1,w0=0,H1={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},c0="0123456789abcdefghijklmnopqrstuvwxyz",z1=!0;function B(J,X){var H,G,w,D,R,q,U,I,M=this;if(!(M instanceof B))return new B(J,X);if(X==null){if(J&&J._isBigNumber===!0){if(M.s=J.s,!J.c||J.e>e)M.c=M.e=null;else if(J.e<Q0)M.c=[M.e=0];else M.e=J.e,M.c=J.c.slice();return}if((q=typeof J=="number")&&J*0==0){if(M.s=1/J<0?(J=-J,-1):1,J===~~J){for(D=0,R=J;R>=10;R/=10,D++);if(D>e)M.c=M.e=null;else M.e=D,M.c=[J];return}I=String(J)}else{if(!Q.test(I=String(J)))return m(M,I,q);M.s=I.charCodeAt(0)==45?(I=I.slice(1),-1):1}if((D=I.indexOf("."))>-1)I=I.replace(".","");if((R=I.search(/e/i))>0){if(D<0)D=R;D+=+I.slice(R+1),I=I.substring(0,R)}else if(D<0)D=I.length}else{if(j(X,2,c0.length,"Base"),X==10&&z1)return M=new B(J),R0(M,i+M.e+1,d);if(I=String(J),q=typeof J=="number"){if(J*0!=0)return m(M,I,q,X);if(M.s=1/J<0?(I=I.slice(1),-1):1,B.DEBUG&&I.replace(/^0\.0*|\./,"").length>15)throw Error(z+J)}else M.s=I.charCodeAt(0)===45?(I=I.slice(1),-1):1;H=c0.slice(0,X),D=R=0;for(U=I.length;R<U;R++)if(H.indexOf(G=I.charAt(R))<0){if(G=="."){if(R>D){D=U;continue}}else if(!w){if(I==I.toUpperCase()&&(I=I.toLowerCase())||I==I.toLowerCase()&&(I=I.toUpperCase())){w=!0,R=-1,D=0;continue}}return m(M,String(J),q,X)}if(q=!1,I=k(I,X,10,M.s),(D=I.indexOf("."))>-1)I=I.replace(".","");else D=I.length}for(R=0;I.charCodeAt(R)===48;R++);for(U=I.length;I.charCodeAt(--U)===48;);if(I=I.slice(R,++U)){if(U-=R,q&&B.DEBUG&&U>15&&(J>L||J!==V(J)))throw Error(z+M.s*J);if((D=D-R-1)>e)M.c=M.e=null;else if(D<Q0)M.c=[M.e=0];else{if(M.e=D,M.c=[],R=(D+1)%F,D<0)R+=F;if(R<U){if(R)M.c.push(+I.slice(0,R));for(U-=F;R<U;)M.c.push(+I.slice(R,R+=F));R=F-(I=I.slice(R)).length}else R-=U;for(;R--;I+="0");M.c.push(+I)}}else M.c=[M.e=0]}B.clone=x,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(J){var X,H;if(J!=null)if(typeof J=="object"){if(J.hasOwnProperty(X="DECIMAL_PLACES"))H=J[X],j(H,0,P,X),i=H;if(J.hasOwnProperty(X="ROUNDING_MODE"))H=J[X],j(H,0,8,X),d=H;if(J.hasOwnProperty(X="EXPONENTIAL_AT"))if(H=J[X],H&&H.pop)j(H[0],-P,0,X),j(H[1],0,P,X),V0=H[0],s=H[1];else j(H,-P,P,X),V0=-(s=H<0?-H:H);if(J.hasOwnProperty(X="RANGE"))if(H=J[X],H&&H.pop)j(H[0],-P,-1,X),j(H[1],1,P,X),Q0=H[0],e=H[1];else if(j(H,-P,P,X),H)Q0=-(e=H<0?-H:H);else throw Error(W+X+" cannot be zero: "+H);if(J.hasOwnProperty(X="CRYPTO"))if(H=J[X],H===!!H)if(H)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Y0=H;else throw Y0=!H,Error(W+"crypto unavailable");else Y0=H;else throw Error(W+X+" not true or false: "+H);if(J.hasOwnProperty(X="MODULO_MODE"))H=J[X],j(H,0,9,X),y0=H;if(J.hasOwnProperty(X="POW_PRECISION"))H=J[X],j(H,0,P,X),w0=H;if(J.hasOwnProperty(X="FORMAT"))if(H=J[X],typeof H=="object")H1=H;else throw Error(W+X+" not an object: "+H);if(J.hasOwnProperty(X="ALPHABET"))if(H=J[X],typeof H=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(H))z1=H.slice(0,10)=="0123456789",c0=H;else throw Error(W+X+" invalid: "+H)}else throw Error(W+"Object expected: "+J);return{DECIMAL_PLACES:i,ROUNDING_MODE:d,EXPONENTIAL_AT:[V0,s],RANGE:[Q0,e],CRYPTO:Y0,MODULO_MODE:y0,POW_PRECISION:w0,FORMAT:H1,ALPHABET:c0}},B.isBigNumber=function(J){if(!J||J._isBigNumber!==!0)return!1;if(!B.DEBUG)return!0;var X,H,G=J.c,w=J.e,D=J.s;Z:if({}.toString.call(G)=="[object Array]"){if((D===1||D===-1)&&w>=-P&&w<=P&&w===V(w)){if(G[0]===0){if(w===0&&G.length===1)return!0;break Z}if(X=(w+1)%F,X<1)X+=F;if(String(G[0]).length==X){for(X=0;X<G.length;X++)if(H=G[X],H<0||H>=K||H!==V(H))break Z;if(H!==0)return!0}}}else if(G===null&&w===null&&(D===null||D===1||D===-1))return!0;throw Error(W+"Invalid BigNumber: "+J)},B.maximum=B.max=function(){return p6(arguments,-1)},B.minimum=B.min=function(){return p6(arguments,1)},B.random=function(){var J=9007199254740992,X=Math.random()*J&2097151?function(){return V(Math.random()*J)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(H){var G,w,D,R,q,U=0,I=[],M=new B(t);if(H==null)H=i;else j(H,0,P);if(R=Y(H/F),Y0)if(crypto.getRandomValues){G=crypto.getRandomValues(new Uint32Array(R*=2));for(;U<R;)if(q=G[U]*131072+(G[U+1]>>>11),q>=9000000000000000)w=crypto.getRandomValues(new Uint32Array(2)),G[U]=w[0],G[U+1]=w[1];else I.push(q%100000000000000),U+=2;U=R/2}else if(crypto.randomBytes){G=crypto.randomBytes(R*=7);for(;U<R;)if(q=(G[U]&31)*281474976710656+G[U+1]*1099511627776+G[U+2]*4294967296+G[U+3]*16777216+(G[U+4]<<16)+(G[U+5]<<8)+G[U+6],q>=9000000000000000)crypto.randomBytes(7).copy(G,U);else I.push(q%100000000000000),U+=7;U=R/7}else throw Y0=!1,Error(W+"crypto unavailable");if(!Y0){for(;U<R;)if(q=X(),q<9000000000000000)I[U++]=q%100000000000000}if(R=I[--U],H%=F,R&&H)q=N[F-H],I[U]=V(R/q)*q;for(;I[U]===0;I.pop(),U--);if(U<0)I=[D=0];else{for(D=-1;I[0]===0;I.splice(0,1),D-=F);for(U=1,q=I[0];q>=10;q/=10,U++);if(U<F)D-=F-U}return M.e=D,M.c=I,M}}(),B.sum=function(){var J=1,X=arguments,H=new B(X[0]);for(;J<X.length;)H=H.plus(X[J++]);return H},k=function(){var J="0123456789";function X(H,G,w,D){var R,q=[0],U,I=0,M=H.length;for(;I<M;){for(U=q.length;U--;q[U]*=G);q[0]+=D.indexOf(H.charAt(I++));for(R=0;R<q.length;R++)if(q[R]>w-1){if(q[R+1]==null)q[R+1]=0;q[R+1]+=q[R]/w|0,q[R]%=w}}return q.reverse()}return function(H,G,w,D,R){var q,U,I,M,T,E,h,c,Z0=H.indexOf("."),W0=i,l=d;if(Z0>=0)M=w0,w0=0,H=H.replace(".",""),c=new B(G),E=c.pow(H.length-Z0),w0=M,c.c=X(J0(C(E.c),E.e,"0"),10,w,J),c.e=c.c.length;h=X(H,G,w,R?(q=c0,J):(q=J,c0)),I=M=h.length;for(;h[--M]==0;h.pop());if(!h[0])return q.charAt(0);if(Z0<0)--I;else E.c=h,E.e=I,E.s=D,E=v(E,c,W0,l,w),h=E.c,T=E.r,I=E.e;if(U=I+W0+1,Z0=h[U],M=w/2,T=T||U<0||h[U+1]!=null,T=l<4?(Z0!=null||T)&&(l==0||l==(E.s<0?3:2)):Z0>M||Z0==M&&(l==4||T||l==6&&h[U-1]&1||l==(E.s<0?8:7)),U<1||!h[0])H=T?J0(q.charAt(1),-W0,q.charAt(0)):q.charAt(0);else{if(h.length=U,T){for(--w;++h[--U]>w;)if(h[U]=0,!U)++I,h=[1].concat(h)}for(M=h.length;!h[--M];);for(Z0=0,H="";Z0<=M;H+=q.charAt(h[Z0++]));H=J0(H,I,q.charAt(0))}return H}}(),v=function(){function J(G,w,D){var R,q,U,I,M=0,T=G.length,E=w%S,h=w/S|0;for(G=G.slice();T--;)U=G[T]%S,I=G[T]/S|0,R=h*U+I*E,q=E*U+R%S*S+M,M=(q/D|0)+(R/S|0)+h*I,G[T]=q%D;if(M)G=[M].concat(G);return G}function X(G,w,D,R){var q,U;if(D!=R)U=D>R?1:-1;else for(q=U=0;q<D;q++)if(G[q]!=w[q]){U=G[q]>w[q]?1:-1;break}return U}function H(G,w,D,R){var q=0;for(;D--;)G[D]-=q,q=G[D]<w[D]?1:0,G[D]=q*R+G[D]-w[D];for(;!G[0]&&G.length>1;G.splice(0,1));}return function(G,w,D,R,q){var U,I,M,T,E,h,c,Z0,W0,l,a,z0,v8,w1,F1,v0,K8,N0=G.s==w.s?1:-1,K0=G.c,$0=w.c;if(!K0||!K0[0]||!$0||!$0[0])return new B(!G.s||!w.s||(K0?$0&&K0[0]==$0[0]:!$0)?NaN:K0&&K0[0]==0||!$0?N0*0:N0/0);if(Z0=new B(N0),W0=Z0.c=[],I=G.e-w.e,N0=D+I+1,!q)q=K,I=u(G.e/F)-u(w.e/F),N0=N0/F|0;for(M=0;$0[M]==(K0[M]||0);M++);if($0[M]>(K0[M]||0))I--;if(N0<0)W0.push(1),T=!0;else{if(w1=K0.length,v0=$0.length,M=0,N0+=2,E=V(q/($0[0]+1)),E>1)$0=J($0,E,q),K0=J(K0,E,q),v0=$0.length,w1=K0.length;v8=v0,l=K0.slice(0,v0),a=l.length;for(;a<v0;l[a++]=0);if(K8=$0.slice(),K8=[0].concat(K8),F1=$0[0],$0[1]>=q/2)F1++;do{if(E=0,U=X($0,l,v0,a),U<0){if(z0=l[0],v0!=a)z0=z0*q+(l[1]||0);if(E=V(z0/F1),E>1){if(E>=q)E=q-1;h=J($0,E,q),c=h.length,a=l.length;while(X(h,l,c,a)==1)E--,H(h,v0<c?K8:$0,c,q),c=h.length,U=1}else{if(E==0)U=E=1;h=$0.slice(),c=h.length}if(c<a)h=[0].concat(h);if(H(l,h,a,q),a=l.length,U==-1)while(X($0,l,v0,a)<1)E++,H(l,v0<a?K8:$0,a,q),a=l.length}else if(U===0)E++,l=[0];if(W0[M++]=E,l[0])l[a++]=K0[v8]||0;else l=[K0[v8]],a=1}while((v8++<w1||l[0]!=null)&&N0--);if(T=l[0]!=null,!W0[0])W0.splice(0,1)}if(q==K){for(M=1,N0=W0[0];N0>=10;N0/=10,M++);R0(Z0,D+(Z0.e=M+I*F-1)+1,R,T)}else Z0.e=I,Z0.r=+T;return Z0}}();function K1(J,X,H,G){var w,D,R,q,U;if(H==null)H=d;else j(H,0,8);if(!J.c)return J.toString();if(w=J.c[0],R=J.e,X==null)U=C(J.c),U=G==1||G==2&&(R<=V0||R>=s)?o(U,R):J0(U,R,"0");else if(J=R0(new B(J),X,H),D=J.e,U=C(J.c),q=U.length,G==1||G==2&&(X<=D||D<=V0)){for(;q<X;U+="0",q++);U=o(U,D)}else if(X-=R+(G===2&&D>R),U=J0(U,D,"0"),D+1>q){if(--X>0)for(U+=".";X--;U+="0");}else if(X+=D-q,X>0){if(D+1==q)U+=".";for(;X--;U+="0");}return J.s<0&&w?"-"+U:U}function p6(J,X){var H,G,w=1,D=new B(J[0]);for(;w<J.length;w++)if(G=new B(J[w]),!G.s||(H=f(D,G))===X||H===0&&D.s===X)D=G;return D}function q1(J,X,H){var G=1,w=X.length;for(;!X[--w];X.pop());for(w=X[0];w>=10;w/=10,G++);if((H=G+H*F-1)>e)J.c=J.e=null;else if(H<Q0)J.c=[J.e=0];else J.e=H,J.c=X;return J}m=function(){var J=/^(-?)0([xbo])(?=\w[\w.]*$)/i,X=/^([^.]+)\.$/,H=/^\.([^.]+)$/,G=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(D,R,q,U){var I,M=q?R:R.replace(w,"");if(G.test(M))D.s=isNaN(M)?null:M<0?-1:1;else{if(!q){if(M=M.replace(J,function(T,E,h){return I=(h=h.toLowerCase())=="x"?16:h=="b"?2:8,!U||U==I?E:T}),U)I=U,M=M.replace(X,"$1").replace(H,"0.$1");if(R!=M)return new B(M,I)}if(B.DEBUG)throw Error(W+"Not a"+(U?" base "+U:"")+" number: "+R);D.s=null}D.c=D.e=null}}();function R0(J,X,H,G){var w,D,R,q,U,I,M,T=J.c,E=N;if(T){Z:{for(w=1,q=T[0];q>=10;q/=10,w++);if(D=X-w,D<0)D+=F,R=X,U=T[I=0],M=V(U/E[w-R-1]%10);else if(I=Y((D+1)/F),I>=T.length)if(G){for(;T.length<=I;T.push(0));U=M=0,w=1,D%=F,R=D-F+1}else break Z;else{U=q=T[I];for(w=1;q>=10;q/=10,w++);D%=F,R=D-F+w,M=R<0?0:V(U/E[w-R-1]%10)}if(G=G||X<0||T[I+1]!=null||(R<0?U:U%E[w-R-1]),G=H<4?(M||G)&&(H==0||H==(J.s<0?3:2)):M>5||M==5&&(H==4||G||H==6&&(D>0?R>0?U/E[w-R]:0:T[I-1])%10&1||H==(J.s<0?8:7)),X<1||!T[0]){if(T.length=0,G)X-=J.e+1,T[0]=E[(F-X%F)%F],J.e=-X||0;else T[0]=J.e=0;return J}if(D==0)T.length=I,q=1,I--;else T.length=I+1,q=E[F-D],T[I]=R>0?V(U/E[w-R]%E[R])*q:0;if(G)for(;;)if(I==0){for(D=1,R=T[0];R>=10;R/=10,D++);R=T[0]+=q;for(q=1;R>=10;R/=10,q++);if(D!=q){if(J.e++,T[0]==K)T[0]=1}break}else{if(T[I]+=q,T[I]!=K)break;T[I--]=0,q=1}for(D=T.length;T[--D]===0;T.pop());}if(J.e>e)J.c=J.e=null;else if(J.e<Q0)J.c=[J.e=0]}return J}function _0(J){var X,H=J.e;if(H===null)return J.toString();return X=C(J.c),X=H<=V0||H>=s?o(X,H):J0(X,H,"0"),J.s<0?"-"+X:X}if(O.absoluteValue=O.abs=function(){var J=new B(this);if(J.s<0)J.s=1;return J},O.comparedTo=function(J,X){return f(this,new B(J,X))},O.decimalPlaces=O.dp=function(J,X){var H,G,w,D=this;if(J!=null){if(j(J,0,P),X==null)X=d;else j(X,0,8);return R0(new B(D),J+D.e+1,X)}if(!(H=D.c))return null;if(G=((w=H.length-1)-u(this.e/F))*F,w=H[w])for(;w%10==0;w/=10,G--);if(G<0)G=0;return G},O.dividedBy=O.div=function(J,X){return v(this,new B(J,X),i,d)},O.dividedToIntegerBy=O.idiv=function(J,X){return v(this,new B(J,X),0,1)},O.exponentiatedBy=O.pow=function(J,X){var H,G,w,D,R,q,U,I,M,T=this;if(J=new B(J),J.c&&!J.isInteger())throw Error(W+"Exponent not an integer: "+_0(J));if(X!=null)X=new B(X);if(q=J.e>14,!T.c||!T.c[0]||T.c[0]==1&&!T.e&&T.c.length==1||!J.c||!J.c[0])return M=new B(Math.pow(+_0(T),q?J.s*(2-p(J)):+_0(J))),X?M.mod(X):M;if(U=J.s<0,X){if(X.c?!X.c[0]:!X.s)return new B(NaN);if(G=!U&&T.isInteger()&&X.isInteger(),G)T=T.mod(X)}else if(J.e>9&&(T.e>0||T.e<-1||(T.e==0?T.c[0]>1||q&&T.c[1]>=240000000:T.c[0]<80000000000000||q&&T.c[0]<=99999750000000))){if(D=T.s<0&&p(J)?-0:0,T.e>-1)D=1/D;return new B(U?1/D:D)}else if(w0)D=Y(w0/F+2);if(q){if(H=new B(0.5),U)J.s=1;I=p(J)}else w=Math.abs(+_0(J)),I=w%2;M=new B(t);for(;;){if(I){if(M=M.times(T),!M.c)break;if(D){if(M.c.length>D)M.c.length=D}else if(G)M=M.mod(X)}if(w){if(w=V(w/2),w===0)break;I=w%2}else if(J=J.times(H),R0(J,J.e+1,1),J.e>14)I=p(J);else{if(w=+_0(J),w===0)break;I=w%2}if(T=T.times(T),D){if(T.c&&T.c.length>D)T.c.length=D}else if(G)T=T.mod(X)}if(G)return M;if(U)M=t.div(M);return X?M.mod(X):D?R0(M,w0,d,R):M},O.integerValue=function(J){var X=new B(this);if(J==null)J=d;else j(J,0,8);return R0(X,X.e+1,J)},O.isEqualTo=O.eq=function(J,X){return f(this,new B(J,X))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(J,X){return f(this,new B(J,X))>0},O.isGreaterThanOrEqualTo=O.gte=function(J,X){return(X=f(this,new B(J,X)))===1||X===0},O.isInteger=function(){return!!this.c&&u(this.e/F)>this.c.length-2},O.isLessThan=O.lt=function(J,X){return f(this,new B(J,X))<0},O.isLessThanOrEqualTo=O.lte=function(J,X){return(X=f(this,new B(J,X)))===-1||X===0},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&this.c[0]==0},O.minus=function(J,X){var H,G,w,D,R=this,q=R.s;if(J=new B(J,X),X=J.s,!q||!X)return new B(NaN);if(q!=X)return J.s=-X,R.plus(J);var U=R.e/F,I=J.e/F,M=R.c,T=J.c;if(!U||!I){if(!M||!T)return M?(J.s=-X,J):new B(T?R:NaN);if(!M[0]||!T[0])return T[0]?(J.s=-X,J):new B(M[0]?R:d==3?-0:0)}if(U=u(U),I=u(I),M=M.slice(),q=U-I){if(D=q<0)q=-q,w=M;else I=U,w=T;w.reverse();for(X=q;X--;w.push(0));w.reverse()}else{G=(D=(q=M.length)<(X=T.length))?q:X;for(q=X=0;X<G;X++)if(M[X]!=T[X]){D=M[X]<T[X];break}}if(D)w=M,M=T,T=w,J.s=-J.s;if(X=(G=T.length)-(H=M.length),X>0)for(;X--;M[H++]=0);X=K-1;for(;G>q;){if(M[--G]<T[G]){for(H=G;H&&!M[--H];M[H]=X);--M[H],M[G]+=K}M[G]-=T[G]}for(;M[0]==0;M.splice(0,1),--I);if(!M[0])return J.s=d==3?-1:1,J.c=[J.e=0],J;return q1(J,M,I)},O.modulo=O.mod=function(J,X){var H,G,w=this;if(J=new B(J,X),!w.c||!J.s||J.c&&!J.c[0])return new B(NaN);else if(!J.c||w.c&&!w.c[0])return new B(w);if(y0==9)G=J.s,J.s=1,H=v(w,J,0,3),J.s=G,H.s*=G;else H=v(w,J,0,y0);if(J=w.minus(H.times(J)),!J.c[0]&&y0==1)J.s=w.s;return J},O.multipliedBy=O.times=function(J,X){var H,G,w,D,R,q,U,I,M,T,E,h,c,Z0,W0,l=this,a=l.c,z0=(J=new B(J,X)).c;if(!a||!z0||!a[0]||!z0[0]){if(!l.s||!J.s||a&&!a[0]&&!z0||z0&&!z0[0]&&!a)J.c=J.e=J.s=null;else if(J.s*=l.s,!a||!z0)J.c=J.e=null;else J.c=[0],J.e=0;return J}if(G=u(l.e/F)+u(J.e/F),J.s*=l.s,U=a.length,T=z0.length,U<T)c=a,a=z0,z0=c,w=U,U=T,T=w;for(w=U+T,c=[];w--;c.push(0));Z0=K,W0=S;for(w=T;--w>=0;){H=0,E=z0[w]%W0,h=z0[w]/W0|0;for(R=U,D=w+R;D>w;)I=a[--R]%W0,M=a[R]/W0|0,q=h*I+M*E,I=E*I+q%W0*W0+c[D]+H,H=(I/Z0|0)+(q/W0|0)+h*M,c[D--]=I%Z0;c[D]=H}if(H)++G;else c.splice(0,1);return q1(J,c,G)},O.negated=function(){var J=new B(this);return J.s=-J.s||null,J},O.plus=function(J,X){var H,G=this,w=G.s;if(J=new B(J,X),X=J.s,!w||!X)return new B(NaN);if(w!=X)return J.s=-X,G.minus(J);var D=G.e/F,R=J.e/F,q=G.c,U=J.c;if(!D||!R){if(!q||!U)return new B(w/0);if(!q[0]||!U[0])return U[0]?J:new B(q[0]?G:w*0)}if(D=u(D),R=u(R),q=q.slice(),w=D-R){if(w>0)R=D,H=U;else w=-w,H=q;H.reverse();for(;w--;H.push(0));H.reverse()}if(w=q.length,X=U.length,w-X<0)H=U,U=q,q=H,X=w;for(w=0;X;)w=(q[--X]=q[X]+U[X]+w)/K|0,q[X]=K===q[X]?0:q[X]%K;if(w)q=[w].concat(q),++R;return q1(J,q,R)},O.precision=O.sd=function(J,X){var H,G,w,D=this;if(J!=null&&J!==!!J){if(j(J,1,P),X==null)X=d;else j(X,0,8);return R0(new B(D),J,X)}if(!(H=D.c))return null;if(w=H.length-1,G=w*F+1,w=H[w]){for(;w%10==0;w/=10,G--);for(w=H[0];w>=10;w/=10,G++);}if(J&&D.e+1>G)G=D.e+1;return G},O.shiftedBy=function(J){return j(J,-L,L),this.times("1e"+J)},O.squareRoot=O.sqrt=function(){var J,X,H,G,w,D=this,R=D.c,q=D.s,U=D.e,I=i+4,M=new B("0.5");if(q!==1||!R||!R[0])return new B(!q||q<0&&(!R||R[0])?NaN:R?D:1/0);if(q=Math.sqrt(+_0(D)),q==0||q==1/0){if(X=C(R),(X.length+U)%2==0)X+="0";if(q=Math.sqrt(+X),U=u((U+1)/2)-(U<0||U%2),q==1/0)X="5e"+U;else X=q.toExponential(),X=X.slice(0,X.indexOf("e")+1)+U;H=new B(X)}else H=new B(q+"");if(H.c[0]){if(U=H.e,q=U+I,q<3)q=0;for(;;)if(w=H,H=M.times(w.plus(v(D,w,I,1))),C(w.c).slice(0,q)===(X=C(H.c)).slice(0,q)){if(H.e<U)--q;if(X=X.slice(q-3,q+1),X=="9999"||!G&&X=="4999"){if(!G){if(R0(w,w.e+i+2,0),w.times(w).eq(D)){H=w;break}}I+=4,q+=4,G=1}else{if(!+X||!+X.slice(1)&&X.charAt(0)=="5")R0(H,H.e+i+2,1),J=!H.times(H).eq(D);break}}}return R0(H,H.e+i+1,d,J)},O.toExponential=function(J,X){if(J!=null)j(J,0,P),J++;return K1(this,J,X,1)},O.toFixed=function(J,X){if(J!=null)j(J,0,P),J=J+this.e+1;return K1(this,J,X)},O.toFormat=function(J,X,H){var G,w=this;if(H==null)if(J!=null&&X&&typeof X=="object")H=X,X=null;else if(J&&typeof J=="object")H=J,J=X=null;else H=H1;else if(typeof H!="object")throw Error(W+"Argument not an object: "+H);if(G=w.toFixed(J,X),w.c){var D,R=G.split("."),q=+H.groupSize,U=+H.secondaryGroupSize,I=H.groupSeparator||"",M=R[0],T=R[1],E=w.s<0,h=E?M.slice(1):M,c=h.length;if(U)D=q,q=U,U=D,c-=D;if(q>0&&c>0){D=c%q||q,M=h.substr(0,D);for(;D<c;D+=q)M+=I+h.substr(D,q);if(U>0)M+=I+h.slice(D);if(E)M="-"+M}G=T?M+(H.decimalSeparator||"")+((U=+H.fractionGroupSize)?T.replace(new RegExp("\\d{"+U+"}\\B","g"),"$&"+(H.fractionGroupSeparator||"")):T):M}return(H.prefix||"")+G+(H.suffix||"")},O.toFraction=function(J){var X,H,G,w,D,R,q,U,I,M,T,E,h=this,c=h.c;if(J!=null){if(q=new B(J),!q.isInteger()&&(q.c||q.s!==1)||q.lt(t))throw Error(W+"Argument "+(q.isInteger()?"out of range: ":"not an integer: ")+_0(q))}if(!c)return new B(h);X=new B(t),I=H=new B(t),G=U=new B(t),E=C(c),D=X.e=E.length-h.e-1,X.c[0]=N[(R=D%F)<0?F+R:R],J=!J||q.comparedTo(X)>0?D>0?X:I:q,R=e,e=1/0,q=new B(E),U.c[0]=0;for(;;){if(M=v(q,X,0,1),w=H.plus(M.times(G)),w.comparedTo(J)==1)break;H=G,G=w,I=U.plus(M.times(w=I)),U=w,X=q.minus(M.times(w=X)),q=w}return w=v(J.minus(H),G,0,1),U=U.plus(w.times(I)),H=H.plus(w.times(G)),U.s=I.s=h.s,D=D*2,T=v(I,G,D,d).minus(h).abs().comparedTo(v(U,H,D,d).minus(h).abs())<1?[I,G]:[U,H],e=R,T},O.toNumber=function(){return+_0(this)},O.toPrecision=function(J,X){if(J!=null)j(J,1,P);return K1(this,J,X,2)},O.toString=function(J){var X,H=this,G=H.s,w=H.e;if(w===null)if(G){if(X="Infinity",G<0)X="-"+X}else X="NaN";else{if(J==null)X=w<=V0||w>=s?o(C(H.c),w):J0(C(H.c),w,"0");else if(J===10&&z1)H=R0(new B(H),i+w+1,d),X=J0(C(H.c),H.e,"0");else j(J,2,c0.length,"Base"),X=k(J0(C(H.c),w,"0"),10,J,G,!0);if(G<0&&H.c[0])X="-"+X}return X},O.valueOf=O.toJSON=function(){return _0(this)},O._isBigNumber=!0,b!=null)B.set(b);return B}function u(b){var v=b|0;return b>0||b===v?v:v-1}function C(b){var v,k,m=1,O=b.length,t=b[0]+"";for(;m<O;){v=b[m++]+"",k=F-v.length;for(;k--;v="0"+v);t+=v}for(O=t.length;t.charCodeAt(--O)===48;);return t.slice(0,O+1||1)}function f(b,v){var k,m,O=b.c,t=v.c,i=b.s,d=v.s,V0=b.e,s=v.e;if(!i||!d)return null;if(k=O&&!O[0],m=t&&!t[0],k||m)return k?m?0:-d:i;if(i!=d)return i;if(k=i<0,m=V0==s,!O||!t)return m?0:!O^k?1:-1;if(!m)return V0>s^k?1:-1;d=(V0=O.length)<(s=t.length)?V0:s;for(i=0;i<d;i++)if(O[i]!=t[i])return O[i]>t[i]^k?1:-1;return V0==s?0:V0>s^k?1:-1}function j(b,v,k,m){if(b<v||b>k||b!==V(b))throw Error(W+(m||"Argument")+(typeof b=="number"?b<v||b>k?" out of range: ":" not an integer: ":" not a primitive number: ")+String(b))}function p(b){var v=b.c.length-1;return u(b.e/F)==v&&b.c[v]%2!=0}function o(b,v){return(b.length>1?b.charAt(0)+"."+b.slice(1):b)+(v<0?"e":"e+")+v}function J0(b,v,k){var m,O;if(v<0){for(O=k+".";++v;O+=k);b=O+b}else if(m=b.length,++v>m){for(O=k,v-=m;--v;O+=k);b+=O}else if(v<m)b=b.slice(0,v)+"."+b.slice(v);return b}if($=x(),$.default=$.BigNumber=$,typeof define=="function"&&define.amd)define(function(){return $});else if(typeof h8<"u"&&h8.exports)h8.exports=$;else{if(!Z)Z=typeof self<"u"&&self?self:window;Z.BigNumber=$}})(MZ)});var NZ=A((c5,RZ)=>{var GZ=N1(),IZ=c5;(function(){function Z(L){return L<10?"0"+L:L}var $=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Q=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Y,V,W={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':"\\\"","\\":"\\\\"},z;function K(L){return Q.lastIndex=0,Q.test(L)?'"'+L.replace(Q,function(N){var S=W[N];return typeof S==="string"?S:"\\u"+("0000"+N.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+L+'"'}function F(L,N){var S,P,x,u,C=Y,f,j=N[L],p=j!=null&&(j instanceof GZ||GZ.isBigNumber(j));if(j&&typeof j==="object"&&typeof j.toJSON==="function")j=j.toJSON(L);if(typeof z==="function")j=z.call(N,L,j);switch(typeof j){case"string":if(p)return j;else return K(j);case"number":return isFinite(j)?String(j):"null";case"boolean":case"null":case"bigint":return String(j);case"object":if(!j)return"null";if(Y+=V,f=[],Object.prototype.toString.apply(j)==="[object Array]"){u=j.length;for(S=0;S<u;S+=1)f[S]=F(S,j)||"null";return x=f.length===0?"[]":Y?`[
|
|
7
|
+
`}yield Q}static#W;static#J;static async#X(){return this.#W||=(await import("./chunk-sntb757q.js").then((m)=>vQ(m.default))).HttpsProxyAgent,this.#W}static async#H(){let Z=typeof window<"u"&&!!window;return this.#J||=Z?window.fetch:(await import("node-fetch")).default,this.#J}static mergeHeaders(Z,...$){Z=Z instanceof Headers?Z:new Headers(Z);for(let Q of $)(Q instanceof Headers?Q:new Headers(Q)).forEach((V,W)=>{W==="set-cookie"?Z.append(W,V):Z.set(W,V)});return Z}}o0.Gaxios=R1;s0=R1});var X0=A((q0)=>{var xQ=q0&&q0.__createBinding||(Object.create?function(Z,$,Q,Y){if(Y===void 0)Y=Q;var V=Object.getOwnPropertyDescriptor($,Q);if(!V||("get"in V?!$.__esModule:V.writable||V.configurable))V={enumerable:!0,get:function(){return $[Q]}};Object.defineProperty(Z,Y,V)}:function(Z,$,Q,Y){if(Y===void 0)Y=Q;Z[Y]=$[Q]}),bQ=q0&&q0.__exportStar||function(Z,$){for(var Q in Z)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call($,Q))xQ($,Z,Q)};Object.defineProperty(q0,"__esModule",{value:!0});q0.instance=q0.Gaxios=q0.GaxiosError=void 0;q0.request=gQ;var DZ=UZ();Object.defineProperty(q0,"Gaxios",{enumerable:!0,get:function(){return DZ.Gaxios}});var mQ=G1();Object.defineProperty(q0,"GaxiosError",{enumerable:!0,get:function(){return mQ.GaxiosError}});bQ(I1(),q0);q0.instance=new DZ.Gaxios;async function gQ(Z){return q0.instance.request(Z)}});var N1=A((MZ,h8)=>{(function(Z){var $,Q=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Y=Math.ceil,V=Math.floor,W="[BigNumber Error] ",z=W+"Number primitive has more than 15 significant digits: ",K=100000000000000,F=14,L=9007199254740991,N=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],S=1e7,P=1e9;function x(b){var v,k,m,O=B.prototype={constructor:B,toString:null,valueOf:null},t=new B(1),i=20,d=4,V0=-7,s=21,Q0=-1e7,e=1e7,Y0=!1,y0=1,w0=0,H1={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},c0="0123456789abcdefghijklmnopqrstuvwxyz",z1=!0;function B(J,X){var H,G,w,D,R,q,U,I,M=this;if(!(M instanceof B))return new B(J,X);if(X==null){if(J&&J._isBigNumber===!0){if(M.s=J.s,!J.c||J.e>e)M.c=M.e=null;else if(J.e<Q0)M.c=[M.e=0];else M.e=J.e,M.c=J.c.slice();return}if((q=typeof J=="number")&&J*0==0){if(M.s=1/J<0?(J=-J,-1):1,J===~~J){for(D=0,R=J;R>=10;R/=10,D++);if(D>e)M.c=M.e=null;else M.e=D,M.c=[J];return}I=String(J)}else{if(!Q.test(I=String(J)))return m(M,I,q);M.s=I.charCodeAt(0)==45?(I=I.slice(1),-1):1}if((D=I.indexOf("."))>-1)I=I.replace(".","");if((R=I.search(/e/i))>0){if(D<0)D=R;D+=+I.slice(R+1),I=I.substring(0,R)}else if(D<0)D=I.length}else{if(j(X,2,c0.length,"Base"),X==10&&z1)return M=new B(J),R0(M,i+M.e+1,d);if(I=String(J),q=typeof J=="number"){if(J*0!=0)return m(M,I,q,X);if(M.s=1/J<0?(I=I.slice(1),-1):1,B.DEBUG&&I.replace(/^0\.0*|\./,"").length>15)throw Error(z+J)}else M.s=I.charCodeAt(0)===45?(I=I.slice(1),-1):1;H=c0.slice(0,X),D=R=0;for(U=I.length;R<U;R++)if(H.indexOf(G=I.charAt(R))<0){if(G=="."){if(R>D){D=U;continue}}else if(!w){if(I==I.toUpperCase()&&(I=I.toLowerCase())||I==I.toLowerCase()&&(I=I.toUpperCase())){w=!0,R=-1,D=0;continue}}return m(M,String(J),q,X)}if(q=!1,I=k(I,X,10,M.s),(D=I.indexOf("."))>-1)I=I.replace(".","");else D=I.length}for(R=0;I.charCodeAt(R)===48;R++);for(U=I.length;I.charCodeAt(--U)===48;);if(I=I.slice(R,++U)){if(U-=R,q&&B.DEBUG&&U>15&&(J>L||J!==V(J)))throw Error(z+M.s*J);if((D=D-R-1)>e)M.c=M.e=null;else if(D<Q0)M.c=[M.e=0];else{if(M.e=D,M.c=[],R=(D+1)%F,D<0)R+=F;if(R<U){if(R)M.c.push(+I.slice(0,R));for(U-=F;R<U;)M.c.push(+I.slice(R,R+=F));R=F-(I=I.slice(R)).length}else R-=U;for(;R--;I+="0");M.c.push(+I)}}else M.c=[M.e=0]}B.clone=x,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(J){var X,H;if(J!=null)if(typeof J=="object"){if(J.hasOwnProperty(X="DECIMAL_PLACES"))H=J[X],j(H,0,P,X),i=H;if(J.hasOwnProperty(X="ROUNDING_MODE"))H=J[X],j(H,0,8,X),d=H;if(J.hasOwnProperty(X="EXPONENTIAL_AT"))if(H=J[X],H&&H.pop)j(H[0],-P,0,X),j(H[1],0,P,X),V0=H[0],s=H[1];else j(H,-P,P,X),V0=-(s=H<0?-H:H);if(J.hasOwnProperty(X="RANGE"))if(H=J[X],H&&H.pop)j(H[0],-P,-1,X),j(H[1],1,P,X),Q0=H[0],e=H[1];else if(j(H,-P,P,X),H)Q0=-(e=H<0?-H:H);else throw Error(W+X+" cannot be zero: "+H);if(J.hasOwnProperty(X="CRYPTO"))if(H=J[X],H===!!H)if(H)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))Y0=H;else throw Y0=!H,Error(W+"crypto unavailable");else Y0=H;else throw Error(W+X+" not true or false: "+H);if(J.hasOwnProperty(X="MODULO_MODE"))H=J[X],j(H,0,9,X),y0=H;if(J.hasOwnProperty(X="POW_PRECISION"))H=J[X],j(H,0,P,X),w0=H;if(J.hasOwnProperty(X="FORMAT"))if(H=J[X],typeof H=="object")H1=H;else throw Error(W+X+" not an object: "+H);if(J.hasOwnProperty(X="ALPHABET"))if(H=J[X],typeof H=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(H))z1=H.slice(0,10)=="0123456789",c0=H;else throw Error(W+X+" invalid: "+H)}else throw Error(W+"Object expected: "+J);return{DECIMAL_PLACES:i,ROUNDING_MODE:d,EXPONENTIAL_AT:[V0,s],RANGE:[Q0,e],CRYPTO:Y0,MODULO_MODE:y0,POW_PRECISION:w0,FORMAT:H1,ALPHABET:c0}},B.isBigNumber=function(J){if(!J||J._isBigNumber!==!0)return!1;if(!B.DEBUG)return!0;var X,H,G=J.c,w=J.e,D=J.s;Z:if({}.toString.call(G)=="[object Array]"){if((D===1||D===-1)&&w>=-P&&w<=P&&w===V(w)){if(G[0]===0){if(w===0&&G.length===1)return!0;break Z}if(X=(w+1)%F,X<1)X+=F;if(String(G[0]).length==X){for(X=0;X<G.length;X++)if(H=G[X],H<0||H>=K||H!==V(H))break Z;if(H!==0)return!0}}}else if(G===null&&w===null&&(D===null||D===1||D===-1))return!0;throw Error(W+"Invalid BigNumber: "+J)},B.maximum=B.max=function(){return p6(arguments,-1)},B.minimum=B.min=function(){return p6(arguments,1)},B.random=function(){var J=9007199254740992,X=Math.random()*J&2097151?function(){return V(Math.random()*J)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(H){var G,w,D,R,q,U=0,I=[],M=new B(t);if(H==null)H=i;else j(H,0,P);if(R=Y(H/F),Y0)if(crypto.getRandomValues){G=crypto.getRandomValues(new Uint32Array(R*=2));for(;U<R;)if(q=G[U]*131072+(G[U+1]>>>11),q>=9000000000000000)w=crypto.getRandomValues(new Uint32Array(2)),G[U]=w[0],G[U+1]=w[1];else I.push(q%100000000000000),U+=2;U=R/2}else if(crypto.randomBytes){G=crypto.randomBytes(R*=7);for(;U<R;)if(q=(G[U]&31)*281474976710656+G[U+1]*1099511627776+G[U+2]*4294967296+G[U+3]*16777216+(G[U+4]<<16)+(G[U+5]<<8)+G[U+6],q>=9000000000000000)crypto.randomBytes(7).copy(G,U);else I.push(q%100000000000000),U+=7;U=R/7}else throw Y0=!1,Error(W+"crypto unavailable");if(!Y0){for(;U<R;)if(q=X(),q<9000000000000000)I[U++]=q%100000000000000}if(R=I[--U],H%=F,R&&H)q=N[F-H],I[U]=V(R/q)*q;for(;I[U]===0;I.pop(),U--);if(U<0)I=[D=0];else{for(D=-1;I[0]===0;I.splice(0,1),D-=F);for(U=1,q=I[0];q>=10;q/=10,U++);if(U<F)D-=F-U}return M.e=D,M.c=I,M}}(),B.sum=function(){var J=1,X=arguments,H=new B(X[0]);for(;J<X.length;)H=H.plus(X[J++]);return H},k=function(){var J="0123456789";function X(H,G,w,D){var R,q=[0],U,I=0,M=H.length;for(;I<M;){for(U=q.length;U--;q[U]*=G);q[0]+=D.indexOf(H.charAt(I++));for(R=0;R<q.length;R++)if(q[R]>w-1){if(q[R+1]==null)q[R+1]=0;q[R+1]+=q[R]/w|0,q[R]%=w}}return q.reverse()}return function(H,G,w,D,R){var q,U,I,M,T,E,h,c,Z0=H.indexOf("."),W0=i,l=d;if(Z0>=0)M=w0,w0=0,H=H.replace(".",""),c=new B(G),E=c.pow(H.length-Z0),w0=M,c.c=X(J0(C(E.c),E.e,"0"),10,w,J),c.e=c.c.length;h=X(H,G,w,R?(q=c0,J):(q=J,c0)),I=M=h.length;for(;h[--M]==0;h.pop());if(!h[0])return q.charAt(0);if(Z0<0)--I;else E.c=h,E.e=I,E.s=D,E=v(E,c,W0,l,w),h=E.c,T=E.r,I=E.e;if(U=I+W0+1,Z0=h[U],M=w/2,T=T||U<0||h[U+1]!=null,T=l<4?(Z0!=null||T)&&(l==0||l==(E.s<0?3:2)):Z0>M||Z0==M&&(l==4||T||l==6&&h[U-1]&1||l==(E.s<0?8:7)),U<1||!h[0])H=T?J0(q.charAt(1),-W0,q.charAt(0)):q.charAt(0);else{if(h.length=U,T){for(--w;++h[--U]>w;)if(h[U]=0,!U)++I,h=[1].concat(h)}for(M=h.length;!h[--M];);for(Z0=0,H="";Z0<=M;H+=q.charAt(h[Z0++]));H=J0(H,I,q.charAt(0))}return H}}(),v=function(){function J(G,w,D){var R,q,U,I,M=0,T=G.length,E=w%S,h=w/S|0;for(G=G.slice();T--;)U=G[T]%S,I=G[T]/S|0,R=h*U+I*E,q=E*U+R%S*S+M,M=(q/D|0)+(R/S|0)+h*I,G[T]=q%D;if(M)G=[M].concat(G);return G}function X(G,w,D,R){var q,U;if(D!=R)U=D>R?1:-1;else for(q=U=0;q<D;q++)if(G[q]!=w[q]){U=G[q]>w[q]?1:-1;break}return U}function H(G,w,D,R){var q=0;for(;D--;)G[D]-=q,q=G[D]<w[D]?1:0,G[D]=q*R+G[D]-w[D];for(;!G[0]&&G.length>1;G.splice(0,1));}return function(G,w,D,R,q){var U,I,M,T,E,h,c,Z0,W0,l,a,z0,v8,w1,F1,v0,K8,N0=G.s==w.s?1:-1,K0=G.c,$0=w.c;if(!K0||!K0[0]||!$0||!$0[0])return new B(!G.s||!w.s||(K0?$0&&K0[0]==$0[0]:!$0)?NaN:K0&&K0[0]==0||!$0?N0*0:N0/0);if(Z0=new B(N0),W0=Z0.c=[],I=G.e-w.e,N0=D+I+1,!q)q=K,I=u(G.e/F)-u(w.e/F),N0=N0/F|0;for(M=0;$0[M]==(K0[M]||0);M++);if($0[M]>(K0[M]||0))I--;if(N0<0)W0.push(1),T=!0;else{if(w1=K0.length,v0=$0.length,M=0,N0+=2,E=V(q/($0[0]+1)),E>1)$0=J($0,E,q),K0=J(K0,E,q),v0=$0.length,w1=K0.length;v8=v0,l=K0.slice(0,v0),a=l.length;for(;a<v0;l[a++]=0);if(K8=$0.slice(),K8=[0].concat(K8),F1=$0[0],$0[1]>=q/2)F1++;do{if(E=0,U=X($0,l,v0,a),U<0){if(z0=l[0],v0!=a)z0=z0*q+(l[1]||0);if(E=V(z0/F1),E>1){if(E>=q)E=q-1;h=J($0,E,q),c=h.length,a=l.length;while(X(h,l,c,a)==1)E--,H(h,v0<c?K8:$0,c,q),c=h.length,U=1}else{if(E==0)U=E=1;h=$0.slice(),c=h.length}if(c<a)h=[0].concat(h);if(H(l,h,a,q),a=l.length,U==-1)while(X($0,l,v0,a)<1)E++,H(l,v0<a?K8:$0,a,q),a=l.length}else if(U===0)E++,l=[0];if(W0[M++]=E,l[0])l[a++]=K0[v8]||0;else l=[K0[v8]],a=1}while((v8++<w1||l[0]!=null)&&N0--);if(T=l[0]!=null,!W0[0])W0.splice(0,1)}if(q==K){for(M=1,N0=W0[0];N0>=10;N0/=10,M++);R0(Z0,D+(Z0.e=M+I*F-1)+1,R,T)}else Z0.e=I,Z0.r=+T;return Z0}}();function K1(J,X,H,G){var w,D,R,q,U;if(H==null)H=d;else j(H,0,8);if(!J.c)return J.toString();if(w=J.c[0],R=J.e,X==null)U=C(J.c),U=G==1||G==2&&(R<=V0||R>=s)?o(U,R):J0(U,R,"0");else if(J=R0(new B(J),X,H),D=J.e,U=C(J.c),q=U.length,G==1||G==2&&(X<=D||D<=V0)){for(;q<X;U+="0",q++);U=o(U,D)}else if(X-=R+(G===2&&D>R),U=J0(U,D,"0"),D+1>q){if(--X>0)for(U+=".";X--;U+="0");}else if(X+=D-q,X>0){if(D+1==q)U+=".";for(;X--;U+="0");}return J.s<0&&w?"-"+U:U}function p6(J,X){var H,G,w=1,D=new B(J[0]);for(;w<J.length;w++)if(G=new B(J[w]),!G.s||(H=f(D,G))===X||H===0&&D.s===X)D=G;return D}function q1(J,X,H){var G=1,w=X.length;for(;!X[--w];X.pop());for(w=X[0];w>=10;w/=10,G++);if((H=G+H*F-1)>e)J.c=J.e=null;else if(H<Q0)J.c=[J.e=0];else J.e=H,J.c=X;return J}m=function(){var J=/^(-?)0([xbo])(?=\w[\w.]*$)/i,X=/^([^.]+)\.$/,H=/^\.([^.]+)$/,G=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(D,R,q,U){var I,M=q?R:R.replace(w,"");if(G.test(M))D.s=isNaN(M)?null:M<0?-1:1;else{if(!q){if(M=M.replace(J,function(T,E,h){return I=(h=h.toLowerCase())=="x"?16:h=="b"?2:8,!U||U==I?E:T}),U)I=U,M=M.replace(X,"$1").replace(H,"0.$1");if(R!=M)return new B(M,I)}if(B.DEBUG)throw Error(W+"Not a"+(U?" base "+U:"")+" number: "+R);D.s=null}D.c=D.e=null}}();function R0(J,X,H,G){var w,D,R,q,U,I,M,T=J.c,E=N;if(T){Z:{for(w=1,q=T[0];q>=10;q/=10,w++);if(D=X-w,D<0)D+=F,R=X,U=T[I=0],M=V(U/E[w-R-1]%10);else if(I=Y((D+1)/F),I>=T.length)if(G){for(;T.length<=I;T.push(0));U=M=0,w=1,D%=F,R=D-F+1}else break Z;else{U=q=T[I];for(w=1;q>=10;q/=10,w++);D%=F,R=D-F+w,M=R<0?0:V(U/E[w-R-1]%10)}if(G=G||X<0||T[I+1]!=null||(R<0?U:U%E[w-R-1]),G=H<4?(M||G)&&(H==0||H==(J.s<0?3:2)):M>5||M==5&&(H==4||G||H==6&&(D>0?R>0?U/E[w-R]:0:T[I-1])%10&1||H==(J.s<0?8:7)),X<1||!T[0]){if(T.length=0,G)X-=J.e+1,T[0]=E[(F-X%F)%F],J.e=-X||0;else T[0]=J.e=0;return J}if(D==0)T.length=I,q=1,I--;else T.length=I+1,q=E[F-D],T[I]=R>0?V(U/E[w-R]%E[R])*q:0;if(G)for(;;)if(I==0){for(D=1,R=T[0];R>=10;R/=10,D++);R=T[0]+=q;for(q=1;R>=10;R/=10,q++);if(D!=q){if(J.e++,T[0]==K)T[0]=1}break}else{if(T[I]+=q,T[I]!=K)break;T[I--]=0,q=1}for(D=T.length;T[--D]===0;T.pop());}if(J.e>e)J.c=J.e=null;else if(J.e<Q0)J.c=[J.e=0]}return J}function _0(J){var X,H=J.e;if(H===null)return J.toString();return X=C(J.c),X=H<=V0||H>=s?o(X,H):J0(X,H,"0"),J.s<0?"-"+X:X}if(O.absoluteValue=O.abs=function(){var J=new B(this);if(J.s<0)J.s=1;return J},O.comparedTo=function(J,X){return f(this,new B(J,X))},O.decimalPlaces=O.dp=function(J,X){var H,G,w,D=this;if(J!=null){if(j(J,0,P),X==null)X=d;else j(X,0,8);return R0(new B(D),J+D.e+1,X)}if(!(H=D.c))return null;if(G=((w=H.length-1)-u(this.e/F))*F,w=H[w])for(;w%10==0;w/=10,G--);if(G<0)G=0;return G},O.dividedBy=O.div=function(J,X){return v(this,new B(J,X),i,d)},O.dividedToIntegerBy=O.idiv=function(J,X){return v(this,new B(J,X),0,1)},O.exponentiatedBy=O.pow=function(J,X){var H,G,w,D,R,q,U,I,M,T=this;if(J=new B(J),J.c&&!J.isInteger())throw Error(W+"Exponent not an integer: "+_0(J));if(X!=null)X=new B(X);if(q=J.e>14,!T.c||!T.c[0]||T.c[0]==1&&!T.e&&T.c.length==1||!J.c||!J.c[0])return M=new B(Math.pow(+_0(T),q?J.s*(2-p(J)):+_0(J))),X?M.mod(X):M;if(U=J.s<0,X){if(X.c?!X.c[0]:!X.s)return new B(NaN);if(G=!U&&T.isInteger()&&X.isInteger(),G)T=T.mod(X)}else if(J.e>9&&(T.e>0||T.e<-1||(T.e==0?T.c[0]>1||q&&T.c[1]>=240000000:T.c[0]<80000000000000||q&&T.c[0]<=99999750000000))){if(D=T.s<0&&p(J)?-0:0,T.e>-1)D=1/D;return new B(U?1/D:D)}else if(w0)D=Y(w0/F+2);if(q){if(H=new B(0.5),U)J.s=1;I=p(J)}else w=Math.abs(+_0(J)),I=w%2;M=new B(t);for(;;){if(I){if(M=M.times(T),!M.c)break;if(D){if(M.c.length>D)M.c.length=D}else if(G)M=M.mod(X)}if(w){if(w=V(w/2),w===0)break;I=w%2}else if(J=J.times(H),R0(J,J.e+1,1),J.e>14)I=p(J);else{if(w=+_0(J),w===0)break;I=w%2}if(T=T.times(T),D){if(T.c&&T.c.length>D)T.c.length=D}else if(G)T=T.mod(X)}if(G)return M;if(U)M=t.div(M);return X?M.mod(X):D?R0(M,w0,d,R):M},O.integerValue=function(J){var X=new B(this);if(J==null)J=d;else j(J,0,8);return R0(X,X.e+1,J)},O.isEqualTo=O.eq=function(J,X){return f(this,new B(J,X))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(J,X){return f(this,new B(J,X))>0},O.isGreaterThanOrEqualTo=O.gte=function(J,X){return(X=f(this,new B(J,X)))===1||X===0},O.isInteger=function(){return!!this.c&&u(this.e/F)>this.c.length-2},O.isLessThan=O.lt=function(J,X){return f(this,new B(J,X))<0},O.isLessThanOrEqualTo=O.lte=function(J,X){return(X=f(this,new B(J,X)))===-1||X===0},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&this.c[0]==0},O.minus=function(J,X){var H,G,w,D,R=this,q=R.s;if(J=new B(J,X),X=J.s,!q||!X)return new B(NaN);if(q!=X)return J.s=-X,R.plus(J);var U=R.e/F,I=J.e/F,M=R.c,T=J.c;if(!U||!I){if(!M||!T)return M?(J.s=-X,J):new B(T?R:NaN);if(!M[0]||!T[0])return T[0]?(J.s=-X,J):new B(M[0]?R:d==3?-0:0)}if(U=u(U),I=u(I),M=M.slice(),q=U-I){if(D=q<0)q=-q,w=M;else I=U,w=T;w.reverse();for(X=q;X--;w.push(0));w.reverse()}else{G=(D=(q=M.length)<(X=T.length))?q:X;for(q=X=0;X<G;X++)if(M[X]!=T[X]){D=M[X]<T[X];break}}if(D)w=M,M=T,T=w,J.s=-J.s;if(X=(G=T.length)-(H=M.length),X>0)for(;X--;M[H++]=0);X=K-1;for(;G>q;){if(M[--G]<T[G]){for(H=G;H&&!M[--H];M[H]=X);--M[H],M[G]+=K}M[G]-=T[G]}for(;M[0]==0;M.splice(0,1),--I);if(!M[0])return J.s=d==3?-1:1,J.c=[J.e=0],J;return q1(J,M,I)},O.modulo=O.mod=function(J,X){var H,G,w=this;if(J=new B(J,X),!w.c||!J.s||J.c&&!J.c[0])return new B(NaN);else if(!J.c||w.c&&!w.c[0])return new B(w);if(y0==9)G=J.s,J.s=1,H=v(w,J,0,3),J.s=G,H.s*=G;else H=v(w,J,0,y0);if(J=w.minus(H.times(J)),!J.c[0]&&y0==1)J.s=w.s;return J},O.multipliedBy=O.times=function(J,X){var H,G,w,D,R,q,U,I,M,T,E,h,c,Z0,W0,l=this,a=l.c,z0=(J=new B(J,X)).c;if(!a||!z0||!a[0]||!z0[0]){if(!l.s||!J.s||a&&!a[0]&&!z0||z0&&!z0[0]&&!a)J.c=J.e=J.s=null;else if(J.s*=l.s,!a||!z0)J.c=J.e=null;else J.c=[0],J.e=0;return J}if(G=u(l.e/F)+u(J.e/F),J.s*=l.s,U=a.length,T=z0.length,U<T)c=a,a=z0,z0=c,w=U,U=T,T=w;for(w=U+T,c=[];w--;c.push(0));Z0=K,W0=S;for(w=T;--w>=0;){H=0,E=z0[w]%W0,h=z0[w]/W0|0;for(R=U,D=w+R;D>w;)I=a[--R]%W0,M=a[R]/W0|0,q=h*I+M*E,I=E*I+q%W0*W0+c[D]+H,H=(I/Z0|0)+(q/W0|0)+h*M,c[D--]=I%Z0;c[D]=H}if(H)++G;else c.splice(0,1);return q1(J,c,G)},O.negated=function(){var J=new B(this);return J.s=-J.s||null,J},O.plus=function(J,X){var H,G=this,w=G.s;if(J=new B(J,X),X=J.s,!w||!X)return new B(NaN);if(w!=X)return J.s=-X,G.minus(J);var D=G.e/F,R=J.e/F,q=G.c,U=J.c;if(!D||!R){if(!q||!U)return new B(w/0);if(!q[0]||!U[0])return U[0]?J:new B(q[0]?G:w*0)}if(D=u(D),R=u(R),q=q.slice(),w=D-R){if(w>0)R=D,H=U;else w=-w,H=q;H.reverse();for(;w--;H.push(0));H.reverse()}if(w=q.length,X=U.length,w-X<0)H=U,U=q,q=H,X=w;for(w=0;X;)w=(q[--X]=q[X]+U[X]+w)/K|0,q[X]=K===q[X]?0:q[X]%K;if(w)q=[w].concat(q),++R;return q1(J,q,R)},O.precision=O.sd=function(J,X){var H,G,w,D=this;if(J!=null&&J!==!!J){if(j(J,1,P),X==null)X=d;else j(X,0,8);return R0(new B(D),J,X)}if(!(H=D.c))return null;if(w=H.length-1,G=w*F+1,w=H[w]){for(;w%10==0;w/=10,G--);for(w=H[0];w>=10;w/=10,G++);}if(J&&D.e+1>G)G=D.e+1;return G},O.shiftedBy=function(J){return j(J,-L,L),this.times("1e"+J)},O.squareRoot=O.sqrt=function(){var J,X,H,G,w,D=this,R=D.c,q=D.s,U=D.e,I=i+4,M=new B("0.5");if(q!==1||!R||!R[0])return new B(!q||q<0&&(!R||R[0])?NaN:R?D:1/0);if(q=Math.sqrt(+_0(D)),q==0||q==1/0){if(X=C(R),(X.length+U)%2==0)X+="0";if(q=Math.sqrt(+X),U=u((U+1)/2)-(U<0||U%2),q==1/0)X="5e"+U;else X=q.toExponential(),X=X.slice(0,X.indexOf("e")+1)+U;H=new B(X)}else H=new B(q+"");if(H.c[0]){if(U=H.e,q=U+I,q<3)q=0;for(;;)if(w=H,H=M.times(w.plus(v(D,w,I,1))),C(w.c).slice(0,q)===(X=C(H.c)).slice(0,q)){if(H.e<U)--q;if(X=X.slice(q-3,q+1),X=="9999"||!G&&X=="4999"){if(!G){if(R0(w,w.e+i+2,0),w.times(w).eq(D)){H=w;break}}I+=4,q+=4,G=1}else{if(!+X||!+X.slice(1)&&X.charAt(0)=="5")R0(H,H.e+i+2,1),J=!H.times(H).eq(D);break}}}return R0(H,H.e+i+1,d,J)},O.toExponential=function(J,X){if(J!=null)j(J,0,P),J++;return K1(this,J,X,1)},O.toFixed=function(J,X){if(J!=null)j(J,0,P),J=J+this.e+1;return K1(this,J,X)},O.toFormat=function(J,X,H){var G,w=this;if(H==null)if(J!=null&&X&&typeof X=="object")H=X,X=null;else if(J&&typeof J=="object")H=J,J=X=null;else H=H1;else if(typeof H!="object")throw Error(W+"Argument not an object: "+H);if(G=w.toFixed(J,X),w.c){var D,R=G.split("."),q=+H.groupSize,U=+H.secondaryGroupSize,I=H.groupSeparator||"",M=R[0],T=R[1],E=w.s<0,h=E?M.slice(1):M,c=h.length;if(U)D=q,q=U,U=D,c-=D;if(q>0&&c>0){D=c%q||q,M=h.substr(0,D);for(;D<c;D+=q)M+=I+h.substr(D,q);if(U>0)M+=I+h.slice(D);if(E)M="-"+M}G=T?M+(H.decimalSeparator||"")+((U=+H.fractionGroupSize)?T.replace(new RegExp("\\d{"+U+"}\\B","g"),"$&"+(H.fractionGroupSeparator||"")):T):M}return(H.prefix||"")+G+(H.suffix||"")},O.toFraction=function(J){var X,H,G,w,D,R,q,U,I,M,T,E,h=this,c=h.c;if(J!=null){if(q=new B(J),!q.isInteger()&&(q.c||q.s!==1)||q.lt(t))throw Error(W+"Argument "+(q.isInteger()?"out of range: ":"not an integer: ")+_0(q))}if(!c)return new B(h);X=new B(t),I=H=new B(t),G=U=new B(t),E=C(c),D=X.e=E.length-h.e-1,X.c[0]=N[(R=D%F)<0?F+R:R],J=!J||q.comparedTo(X)>0?D>0?X:I:q,R=e,e=1/0,q=new B(E),U.c[0]=0;for(;;){if(M=v(q,X,0,1),w=H.plus(M.times(G)),w.comparedTo(J)==1)break;H=G,G=w,I=U.plus(M.times(w=I)),U=w,X=q.minus(M.times(w=X)),q=w}return w=v(J.minus(H),G,0,1),U=U.plus(w.times(I)),H=H.plus(w.times(G)),U.s=I.s=h.s,D=D*2,T=v(I,G,D,d).minus(h).abs().comparedTo(v(U,H,D,d).minus(h).abs())<1?[I,G]:[U,H],e=R,T},O.toNumber=function(){return+_0(this)},O.toPrecision=function(J,X){if(J!=null)j(J,1,P);return K1(this,J,X,2)},O.toString=function(J){var X,H=this,G=H.s,w=H.e;if(w===null)if(G){if(X="Infinity",G<0)X="-"+X}else X="NaN";else{if(J==null)X=w<=V0||w>=s?o(C(H.c),w):J0(C(H.c),w,"0");else if(J===10&&z1)H=R0(new B(H),i+w+1,d),X=J0(C(H.c),H.e,"0");else j(J,2,c0.length,"Base"),X=k(J0(C(H.c),w,"0"),10,J,G,!0);if(G<0&&H.c[0])X="-"+X}return X},O.valueOf=O.toJSON=function(){return _0(this)},O._isBigNumber=!0,b!=null)B.set(b);return B}function u(b){var v=b|0;return b>0||b===v?v:v-1}function C(b){var v,k,m=1,O=b.length,t=b[0]+"";for(;m<O;){v=b[m++]+"",k=F-v.length;for(;k--;v="0"+v);t+=v}for(O=t.length;t.charCodeAt(--O)===48;);return t.slice(0,O+1||1)}function f(b,v){var k,m,O=b.c,t=v.c,i=b.s,d=v.s,V0=b.e,s=v.e;if(!i||!d)return null;if(k=O&&!O[0],m=t&&!t[0],k||m)return k?m?0:-d:i;if(i!=d)return i;if(k=i<0,m=V0==s,!O||!t)return m?0:!O^k?1:-1;if(!m)return V0>s^k?1:-1;d=(V0=O.length)<(s=t.length)?V0:s;for(i=0;i<d;i++)if(O[i]!=t[i])return O[i]>t[i]^k?1:-1;return V0==s?0:V0>s^k?1:-1}function j(b,v,k,m){if(b<v||b>k||b!==V(b))throw Error(W+(m||"Argument")+(typeof b=="number"?b<v||b>k?" out of range: ":" not an integer: ":" not a primitive number: ")+String(b))}function p(b){var v=b.c.length-1;return u(b.e/F)==v&&b.c[v]%2!=0}function o(b,v){return(b.length>1?b.charAt(0)+"."+b.slice(1):b)+(v<0?"e":"e+")+v}function J0(b,v,k){var m,O;if(v<0){for(O=k+".";++v;O+=k);b=O+b}else if(m=b.length,++v>m){for(O=k,v-=m;--v;O+=k);b+=O}else if(v<m)b=b.slice(0,v)+"."+b.slice(v);return b}if($=x(),$.default=$.BigNumber=$,typeof define=="function"&&define.amd)define(function(){return $});else if(typeof h8<"u"&&h8.exports)h8.exports=$;else{if(!Z)Z=typeof self<"u"&&self?self:window;Z.BigNumber=$}})(MZ)});var NZ=A((c5,RZ)=>{var GZ=N1(),IZ=c5;(function(){function Z(L){return L<10?"0"+L:L}var $=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Q=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Y,V,W={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':"\\\"","\\":"\\\\"},z;function K(L){return Q.lastIndex=0,Q.test(L)?'"'+L.replace(Q,function(N){var S=W[N];return typeof S==="string"?S:"\\u"+("0000"+N.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+L+'"'}function F(L,N){var S,P,x,u,C=Y,f,j=N[L],p=j!=null&&(j instanceof GZ||GZ.isBigNumber(j));if(j&&typeof j==="object"&&typeof j.toJSON==="function")j=j.toJSON(L);if(typeof z==="function")j=z.call(N,L,j);switch(typeof j){case"string":if(p)return j;else return K(j);case"number":return isFinite(j)?String(j):"null";case"boolean":case"null":case"bigint":return String(j);case"object":if(!j)return"null";if(Y+=V,f=[],Object.prototype.toString.apply(j)==="[object Array]"){u=j.length;for(S=0;S<u;S+=1)f[S]=F(S,j)||"null";return x=f.length===0?"[]":Y?`[
|
|
8
8
|
`+Y+f.join(`,
|
|
9
9
|
`+Y)+`
|
|
10
10
|
`+C+"]":"["+f.join(",")+"]",Y=C,x}if(z&&typeof z==="object"){u=z.length;for(S=0;S<u;S+=1)if(typeof z[S]==="string"){if(P=z[S],x=F(P,j),x)f.push(K(P)+(Y?": ":":")+x)}}else Object.keys(j).forEach(function(o){var J0=F(o,j);if(J0)f.push(K(o)+(Y?": ":":")+J0)});return x=f.length===0?"{}":Y?`{
|
|
@@ -29,4 +29,4 @@ To learn more about authentication and Google APIs, visit:
|
|
|
29
29
|
https://cloud.google.com/docs/authentication/getting-started`,NO_ADC_FOUND:"Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.",NO_UNIVERSE_DOMAIN_FOUND:`Unable to detect a Universe Domain in the current environment.
|
|
30
30
|
To learn more about Universe Domain retrieval, visit:
|
|
31
31
|
https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys`};class QQ{checkIsGCE=void 0;useJWTAccessWithScope;defaultServicePath;get isGCE(){return this.checkIsGCE}_findProjectIdPromise;_cachedProjectId;jsonContent=null;apiKey;cachedCredential=null;#Z=null;defaultScopes;keyFilename;scopes;clientOptions={};constructor(Z={}){if(this._cachedProjectId=Z.projectId||null,this.cachedCredential=Z.authClient||null,this.keyFilename=Z.keyFilename||Z.keyFile,this.scopes=Z.scopes,this.clientOptions=Z.clientOptions||{},this.jsonContent=Z.credentials||null,this.apiKey=Z.apiKey||this.clientOptions.apiKey||null,this.apiKey&&(this.jsonContent||this.clientOptions.credentials))throw RangeError(YQ.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS);if(Z.universeDomain)this.clientOptions.universeDomain=Z.universeDomain}setGapicJWTValues(Z){Z.defaultServicePath=this.defaultServicePath,Z.useJWTAccessWithScope=this.useJWTAccessWithScope,Z.defaultScopes=this.defaultScopes}getProjectId(Z){if(Z)this.getProjectIdAsync().then(($)=>Z(null,$),Z);else return this.getProjectIdAsync()}async getProjectIdOptional(){try{return await this.getProjectId()}catch(Z){if(Z instanceof Error&&Z.message===YQ.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)return null;else throw Z}}async findAndCacheProjectId(){let Z=null;if(Z||=await this.getProductionProjectId(),Z||=await this.getFileProjectId(),Z||=await this.getDefaultServiceProjectId(),Z||=await this.getGCEProjectId(),Z||=await this.getExternalAccountClientProjectId(),Z)return this._cachedProjectId=Z,Z;else throw Error(YQ.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND)}async getProjectIdAsync(){if(this._cachedProjectId)return this._cachedProjectId;if(!this._findProjectIdPromise)this._findProjectIdPromise=this.findAndCacheProjectId();return this._findProjectIdPromise}async getUniverseDomainFromMetadataServer(){let Z;try{Z=await j8.universe("universe-domain"),Z||=u6.DEFAULT_UNIVERSE}catch($){if($&&$?.response?.status===404)Z=u6.DEFAULT_UNIVERSE;else throw $}return Z}async getUniverseDomain(){let Z=(0,$Q.originalOrCamelOptions)(this.clientOptions).get("universe_domain");try{Z??=(await this.getClient()).universeDomain}catch{Z??=u6.DEFAULT_UNIVERSE}return Z}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(Z={},$){let Q;if(typeof Z==="function")$=Z;else Q=Z;if($)this.getApplicationDefaultAsync(Q).then((Y)=>$(null,Y.credential,Y.projectId),$);else return this.getApplicationDefaultAsync(Q)}async getApplicationDefaultAsync(Z={}){if(this.cachedCredential)return await this.#$(this.cachedCredential,null);let $;if($=await this._tryGetApplicationCredentialsFromEnvironmentVariable(Z),$){if($ instanceof X8.JWT)$.scopes=this.scopes;else if($ instanceof C8.BaseExternalAccountClient)$.scopes=this.getAnyScopes();return await this.#$($)}if($=await this._tryGetApplicationCredentialsFromWellKnownFile(Z),$){if($ instanceof X8.JWT)$.scopes=this.scopes;else if($ instanceof C8.BaseExternalAccountClient)$.scopes=this.getAnyScopes();return await this.#$($)}if(await this._checkIsGCE())return Z.scopes=this.getAnyScopes(),await this.#$(new Q5.Compute(Z));throw Error(YQ.GoogleAuthExceptionMessages.NO_ADC_FOUND)}async#$(Z,$=process.env.GOOGLE_CLOUD_QUOTA_PROJECT||null){let Q=await this.getProjectIdOptional();if($)Z.quotaProjectId=$;return this.cachedCredential=Z,{credential:Z,projectId:Q}}async _checkIsGCE(){if(this.checkIsGCE===void 0)this.checkIsGCE=j8.getGCPResidency()||await j8.isAvailable();return this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(Z){let $=process.env.GOOGLE_APPLICATION_CREDENTIALS||process.env.google_application_credentials;if(!$||$.length===0)return null;try{return this._getApplicationCredentialsFromFilePath($,Z)}catch(Q){if(Q instanceof Error)Q.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${Q.message}`;throw Q}}async _tryGetApplicationCredentialsFromWellKnownFile(Z){let $=null;if(this._isWindows())$=process.env.APPDATA;else{let Y=process.env.HOME;if(Y)$=g6.join(Y,".config")}if($){if($=g6.join($,"gcloud","application_default_credentials.json"),!A8.existsSync($))$=null}if(!$)return null;return await this._getApplicationCredentialsFromFilePath($,Z)}async _getApplicationCredentialsFromFilePath(Z,$={}){if(!Z||Z.length===0)throw Error("The file path is invalid.");try{if(Z=A8.realpathSync(Z),!A8.lstatSync(Z).isFile())throw Error()}catch(Y){if(Y instanceof Error)Y.message=`The file at ${Z} does not exist, or it is not a file. ${Y.message}`;throw Y}let Q=A8.createReadStream(Z);return this.fromStream(Q,$)}fromImpersonatedJSON(Z){if(!Z)throw Error("Must pass in a JSON object containing an impersonated refresh token");if(Z.type!==H8.IMPERSONATED_ACCOUNT_TYPE)throw Error(`The incoming JSON object does not have the "${H8.IMPERSONATED_ACCOUNT_TYPE}" type`);if(!Z.source_credentials)throw Error("The incoming JSON object does not contain a source_credentials field");if(!Z.service_account_impersonation_url)throw Error("The incoming JSON object does not contain a service_account_impersonation_url field");let $=this.fromJSON(Z.source_credentials);if(Z.service_account_impersonation_url?.length>256)throw RangeError(`Target principal is too long: ${Z.service_account_impersonation_url}`);let Q=/(?<target>[^/]+):(generateAccessToken|generateIdToken)$/.exec(Z.service_account_impersonation_url)?.groups?.target;if(!Q)throw RangeError(`Cannot extract target principal from ${Z.service_account_impersonation_url}`);let Y=(this.scopes||Z.scopes||this.defaultScopes)??[];return new H8.Impersonated({...Z,sourceClient:$,targetPrincipal:Q,targetScopes:Array.isArray(Y)?Y:[Y]})}fromJSON(Z,$={}){let Q,Y=(0,$Q.originalOrCamelOptions)($).get("universe_domain");if(Z.type===e9.USER_REFRESH_ACCOUNT_TYPE)Q=new e9.UserRefreshClient($),Q.fromJSON(Z);else if(Z.type===H8.IMPERSONATED_ACCOUNT_TYPE)Q=this.fromImpersonatedJSON(Z);else if(Z.type===C8.EXTERNAL_ACCOUNT_TYPE)Q=W5.ExternalAccountClient.fromJSON({...Z,...$}),Q.scopes=this.getAnyScopes();else if(Z.type===ZQ.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE)Q=new ZQ.ExternalAccountAuthorizedUserClient({...Z,...$});else $.scopes=this.scopes,Q=new X8.JWT($),this.setGapicJWTValues(Q),Q.fromJSON(Z);if(Y)Q.universeDomain=Y;return Q}_cacheClientFromJSON(Z,$){let Q=this.fromJSON(Z,$);return this.jsonContent=Z,this.cachedCredential=Q,Q}fromStream(Z,$={},Q){let Y={};if(typeof $==="function")Q=$;else Y=$;if(Q)this.fromStreamAsync(Z,Y).then((V)=>Q(null,V),Q);else return this.fromStreamAsync(Z,Y)}fromStreamAsync(Z,$){return new Promise((Q,Y)=>{if(!Z)throw Error("Must pass in a stream containing the Google auth settings.");let V=[];Z.setEncoding("utf8").on("error",Y).on("data",(W)=>V.push(W)).on("end",()=>{try{try{let W=JSON.parse(V.join("")),z=this._cacheClientFromJSON(W,$);return Q(z)}catch(W){if(!this.keyFilename)throw W;let z=new X8.JWT({...this.clientOptions,keyFile:this.keyFilename});return this.cachedCredential=z,this.setGapicJWTValues(z),Q(z)}}catch(W){return Y(W)}})})}fromAPIKey(Z,$={}){return new X8.JWT({...$,apiKey:Z})}_isWindows(){let Z=Z5.platform();if(Z&&Z.length>=3){if(Z.substring(0,3).toLowerCase()==="win")return!0}return!1}async getDefaultServiceProjectId(){return new Promise((Z)=>{(0,tJ.exec)("gcloud config config-helper --format json",($,Q)=>{if(!$&&Q)try{let Y=JSON.parse(Q).configuration.properties.core.project;Z(Y);return}catch(Y){}Z(null)})})}getProductionProjectId(){return process.env.GCLOUD_PROJECT||process.env.GOOGLE_CLOUD_PROJECT||process.env.gcloud_project||process.env.google_cloud_project}async getFileProjectId(){if(this.cachedCredential)return this.cachedCredential.projectId;if(this.keyFilename){let $=await this.getClient();if($&&$.projectId)return $.projectId}let Z=await this._tryGetApplicationCredentialsFromEnvironmentVariable();if(Z)return Z.projectId;else return null}async getExternalAccountClientProjectId(){if(!this.jsonContent||this.jsonContent.type!==C8.EXTERNAL_ACCOUNT_TYPE)return null;return await(await this.getClient()).getProjectId()}async getGCEProjectId(){try{return await j8.project("project-id")}catch(Z){return null}}getCredentials(Z){if(Z)this.getCredentialsAsync().then(($)=>Z(null,$),Z);else return this.getCredentialsAsync()}async getCredentialsAsync(){let Z=await this.getClient();if(Z instanceof H8.Impersonated)return{client_email:Z.getTargetPrincipal()};if(Z instanceof C8.BaseExternalAccountClient){let $=Z.getServiceAccountEmail();if($)return{client_email:$,universe_domain:Z.universeDomain}}if(this.jsonContent)return{client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key,universe_domain:this.jsonContent.universe_domain};if(await this._checkIsGCE()){let[$,Q]=await Promise.all([j8.instance("service-accounts/default/email"),this.getUniverseDomain()]);return{client_email:$,universe_domain:Q}}throw Error(YQ.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND)}async getClient(){if(this.cachedCredential)return this.cachedCredential;this.#Z=this.#Z||this.#Q();try{return await this.#Z}finally{this.#Z=null}}async#Q(){if(this.jsonContent)return this._cacheClientFromJSON(this.jsonContent,this.clientOptions);else if(this.keyFilename){let Z=g6.resolve(this.keyFilename),$=A8.createReadStream(Z);return await this.fromStreamAsync($,this.clientOptions)}else if(this.apiKey){let Z=await this.fromAPIKey(this.apiKey,this.clientOptions);Z.scopes=this.scopes;let{credential:$}=await this.#$(Z);return $}else{let{credential:Z}=await this.getApplicationDefaultAsync(this.clientOptions);return Z}}async getIdTokenClient(Z){let $=await this.getClient();if(!("fetchIdToken"in $))throw Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.");return new Y5.IdTokenClient({targetAudience:Z,idTokenProvider:$})}async getAccessToken(){return(await(await this.getClient()).getAccessToken()).token}async getRequestHeaders(Z){return(await this.getClient()).getRequestHeaders(Z)}async authorizeRequest(Z={}){let $=Z.url,Y=await(await this.getClient()).getRequestHeaders($);return Z.headers=eJ.Gaxios.mergeHeaders(Z.headers,Y),Z}async fetch(...Z){return(await this.getClient()).fetch(...Z)}async request(Z){return(await this.getClient()).request(Z)}getEnv(){return(0,V5.getEnv)()}async sign(Z,$){let Q=await this.getClient(),Y=await this.getUniverseDomain();if($=$||`https://iamcredentials.${Y}/v1/projects/-/serviceAccounts/`,Q instanceof H8.Impersonated)return(await Q.sign(Z)).signedBlob;let V=(0,$5.createCrypto)();if(Q instanceof X8.JWT&&Q.key)return await V.sign(Q.key,Z);let W=await this.getCredentials();if(!W.client_email)throw Error("Cannot sign data without `client_email`.");return this.signBlob(V,W.client_email,Z,$)}async signBlob(Z,$,Q,Y){let V=new URL(Y+`${$}:signBlob`);return(await this.request({method:"POST",url:V.href,data:{payload:Z.encodeBase64StringUtf8(Q)},retry:!0,retryConfig:{httpMethodsToRetry:["POST"]}})).data.signedBlob}}YQ.GoogleAuth=QQ});var zQ=A((XQ)=>{Object.defineProperty(XQ,"__esModule",{value:!0});XQ.IAMAuth=void 0;class JQ{selector;token;constructor(Z,$){this.selector=Z,this.token=$,this.selector=Z,this.token=$}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}}XQ.IAMAuth=JQ});var FQ=A((qQ)=>{Object.defineProperty(qQ,"__esModule",{value:!0});qQ.DownscopedClient=qQ.EXPIRATION_TIME_OFFSET=qQ.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;var J5=X0(),X5=_("stream"),d6=D0(),H5=o8(),z5="urn:ietf:params:oauth:grant-type:token-exchange",K5="urn:ietf:params:oauth:token-type:access_token",q5="urn:ietf:params:oauth:token-type:access_token";qQ.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;qQ.EXPIRATION_TIME_OFFSET=300000;class KQ extends d6.AuthClient{authClient;credentialAccessBoundary;cachedDownscopedAccessToken;stsCredential;constructor(Z,$={accessBoundary:{accessBoundaryRules:[]}}){super(Z instanceof d6.AuthClient?{}:Z);if(Z instanceof d6.AuthClient)this.authClient=Z,this.credentialAccessBoundary=$;else this.authClient=Z.authClient,this.credentialAccessBoundary=Z.credentialAccessBoundary;if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length===0)throw Error("At least one access boundary rule needs to be defined.");else if(this.credentialAccessBoundary.accessBoundary.accessBoundaryRules.length>qQ.MAX_ACCESS_BOUNDARY_RULES_COUNT)throw Error(`The provided access boundary has more than ${qQ.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`);for(let Q of this.credentialAccessBoundary.accessBoundary.accessBoundaryRules)if(Q.availablePermissions.length===0)throw Error("At least one permission should be defined in access boundary rules.");this.stsCredential=new H5.StsCredentials({tokenExchangeEndpoint:`https://sts.${this.universeDomain}/v1/token`}),this.cachedDownscopedAccessToken=null}setCredentials(Z){if(!Z.expiry_date)throw Error("The access token expiry_date field is missing in the provided credentials.");super.setCredentials(Z),this.cachedDownscopedAccessToken=Z}async getAccessToken(){if(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken))await this.refreshAccessTokenAsync();return{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){let Z=await this.getAccessToken(),$=new Headers({authorization:`Bearer ${Z.token}`});return this.addSharedMetadataHeaders($)}request(Z,$){if($)this.requestAsync(Z).then((Q)=>$(null,Q),(Q)=>{return $(Q,Q.response)});else return this.requestAsync(Z)}async requestAsync(Z,$=!1){let Q;try{let Y=await this.getRequestHeaders();Z.headers=J5.Gaxios.mergeHeaders(Z.headers),this.addUserProjectAndAuthHeaders(Z.headers,Y),Q=await this.transporter.request(Z)}catch(Y){let V=Y.response;if(V){let W=V.status,z=V.config.data instanceof X5.Readable;if(!$&&(W===401||W===403)&&!z&&this.forceRefreshOnFailure)return await this.refreshAccessTokenAsync(),await this.requestAsync(Z,!0)}throw Y}return Q}async refreshAccessTokenAsync(){let Z=(await this.authClient.getAccessToken()).token,$={grantType:z5,requestedTokenType:K5,subjectToken:Z,subjectTokenType:q5},Q=await this.stsCredential.exchangeToken($,void 0,this.credentialAccessBoundary),Y=this.authClient.credentials?.expiry_date||null,V=Q.expires_in?new Date().getTime()+Q.expires_in*1000:Y;return this.cachedDownscopedAccessToken={access_token:Q.access_token,expiry_date:V,res:Q.res},this.credentials={},Object.assign(this.credentials,this.cachedDownscopedAccessToken),delete this.credentials.res,this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null}),this.cachedDownscopedAccessToken}isExpired(Z){let $=new Date().getTime();return Z.expiry_date?$>=Z.expiry_date-this.eagerRefreshThresholdMillis:!1}}qQ.DownscopedClient=KQ});var GQ=A((DQ)=>{Object.defineProperty(DQ,"__esModule",{value:!0});DQ.PassThroughClient=void 0;var F5=D0();class UQ extends F5.AuthClient{async request(Z){return this.transporter.request(Z)}async getAccessToken(){return{}}async getRequestHeaders(){return new Headers}}DQ.PassThroughClient=UQ});var y5=A((r)=>{Object.defineProperty(r,"__esModule",{value:!0});r.GoogleAuth=r.auth=r.PassThroughClient=r.ExternalAccountAuthorizedUserClient=r.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE=r.ExecutableError=r.PluggableAuthClient=r.DownscopedClient=r.BaseExternalAccountClient=r.ExternalAccountClient=r.IdentityPoolClient=r.AwsRequestSigner=r.AwsClient=r.UserRefreshClient=r.LoginTicket=r.ClientAuthentication=r.OAuth2Client=r.CodeChallengeMethod=r.Impersonated=r.JWT=r.JWTAccess=r.IdTokenClient=r.IAMAuth=r.GCPEnv=r.Compute=r.DEFAULT_UNIVERSE=r.AuthClient=r.gaxios=r.gcpMetadata=void 0;var IQ=WQ();Object.defineProperty(r,"GoogleAuth",{enumerable:!0,get:function(){return IQ.GoogleAuth}});r.gcpMetadata=U8();r.gaxios=X0();var RQ=D0();Object.defineProperty(r,"AuthClient",{enumerable:!0,get:function(){return RQ.AuthClient}});Object.defineProperty(r,"DEFAULT_UNIVERSE",{enumerable:!0,get:function(){return RQ.DEFAULT_UNIVERSE}});var U5=u1();Object.defineProperty(r,"Compute",{enumerable:!0,get:function(){return U5.Compute}});var D5=l1();Object.defineProperty(r,"GCPEnv",{enumerable:!0,get:function(){return D5.GCPEnv}});var M5=zQ();Object.defineProperty(r,"IAMAuth",{enumerable:!0,get:function(){return M5.IAMAuth}});var G5=d1();Object.defineProperty(r,"IdTokenClient",{enumerable:!0,get:function(){return G5.IdTokenClient}});var I5=J6();Object.defineProperty(r,"JWTAccess",{enumerable:!0,get:function(){return I5.JWTAccess}});var R5=H6();Object.defineProperty(r,"JWT",{enumerable:!0,get:function(){return R5.JWT}});var N5=K6();Object.defineProperty(r,"Impersonated",{enumerable:!0,get:function(){return N5.Impersonated}});var c6=n0();Object.defineProperty(r,"CodeChallengeMethod",{enumerable:!0,get:function(){return c6.CodeChallengeMethod}});Object.defineProperty(r,"OAuth2Client",{enumerable:!0,get:function(){return c6.OAuth2Client}});Object.defineProperty(r,"ClientAuthentication",{enumerable:!0,get:function(){return c6.ClientAuthentication}});var T5=m1();Object.defineProperty(r,"LoginTicket",{enumerable:!0,get:function(){return T5.LoginTicket}});var L5=z6();Object.defineProperty(r,"UserRefreshClient",{enumerable:!0,get:function(){return L5.UserRefreshClient}});var S5=L6();Object.defineProperty(r,"AwsClient",{enumerable:!0,get:function(){return S5.AwsClient}});var B5=T6();Object.defineProperty(r,"AwsRequestSigner",{enumerable:!0,get:function(){return B5.AwsRequestSigner}});var O5=N6();Object.defineProperty(r,"IdentityPoolClient",{enumerable:!0,get:function(){return O5.IdentityPoolClient}});var P5=x6();Object.defineProperty(r,"ExternalAccountClient",{enumerable:!0,get:function(){return P5.ExternalAccountClient}});var A5=l0();Object.defineProperty(r,"BaseExternalAccountClient",{enumerable:!0,get:function(){return A5.BaseExternalAccountClient}});var j5=FQ();Object.defineProperty(r,"DownscopedClient",{enumerable:!0,get:function(){return j5.DownscopedClient}});var NQ=_6();Object.defineProperty(r,"PluggableAuthClient",{enumerable:!0,get:function(){return NQ.PluggableAuthClient}});Object.defineProperty(r,"ExecutableError",{enumerable:!0,get:function(){return NQ.ExecutableError}});var TQ=m6();Object.defineProperty(r,"EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE",{enumerable:!0,get:function(){return TQ.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE}});Object.defineProperty(r,"ExternalAccountAuthorizedUserClient",{enumerable:!0,get:function(){return TQ.ExternalAccountAuthorizedUserClient}});var C5=GQ();Object.defineProperty(r,"PassThroughClient",{enumerable:!0,get:function(){return C5.PassThroughClient}});var v5=new IQ.GoogleAuth;r.auth=v5});
|
|
32
|
-
export{y5 as
|
|
32
|
+
export{y5 as hf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function i(f,r){let e=JSON.parse(JSON.stringify(f));if("nullable"in e&&e.nullable===!0){if(e.type)if(Array.isArray(e.type)){if(!e.type.includes("null"))e.type.push("null")}else e.type=[e.type,"null"];else e.type=["null"];delete e.nullable}if(e.$schema)delete e.$schema;if(["properties","additionalProperties","items","additionalItems","allOf","anyOf","oneOf","not","if","then","else","definitions","$defs","patternProperties","propertyNames","contains"].forEach((s)=>{if(e[s]&&(typeof e[s]==="object"||Array.isArray(e[s])))if(s==="properties"||s==="definitions"||s==="$defs"||s==="patternProperties")for(let n in e[s])e[s][n]=i(e[s][n],r);else if(s==="allOf"||s==="anyOf"||s==="oneOf")e[s]=e[s].map((n)=>i(n,r));else if(s==="items")if(Array.isArray(e[s]))e[s]=e[s].map((n)=>i(n,r));else e[s]=i(e[s],r);else e[s]=i(e[s],r)}),e.ref||e.$id){let{ref:s,$id:n,...t}=e,a=s||n;return r.components.schemas={...r.components.schemas,[a]:t},{$ref:`#/components/schemas/${a}`}}else if(e.$ref){let{$ref:s,$defs:n,...t}=e;if(s.includes("://"))return Object.keys(t).length>0?t:{type:"string"};let a=s.split("/").pop();return r.components.schemas={...r.components.schemas,...n},{$ref:`#/components/schemas/${a}`}}return e}
|
|
3
|
-
export{i as
|
|
3
|
+
export{i as Cf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{n as L}from"./chunk-vqq5vmh1.js";import"./chunk-3xna2rk5.js";import{z as K}from"./chunk-gw0j8hr9.js";import{A as N}from"./chunk-wmrq9qqf.js";import{B as F,D as J}from"./chunk-453wpzg6.js";import"./chunk-pepn5jp4.js";import"./chunk-0vqrakhw.js";import"./chunk-rze20q68.js";import"./chunk-3h08jdq8.js";import{O as M}from"./chunk-zbdbsagd.js";import"./chunk-hmfefq0d.js";import"./chunk-mczw8e3s.js";import"./chunk-54pk7nna.js";import"./chunk-qm9ezq93.js";import"./chunk-754varfr.js";import{Qd as B}from"./chunk-g4qwkcdv.js";import"./chunk-hznsed5n.js";import"./chunk-4wgb80jm.js";import"./chunk-grkkzrg1.js";import{Uf as z}from"./chunk-qe0sfafy.js";import"./chunk-2rxt1s22.js";import"./chunk-w98r39gd.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
|