@qitqode/qitqode-android-arm64 0.1.24 → 0.1.26
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-gn9p1d50.js → chunk-01gwb793.js} +1 -1
- package/bundle/{chunk-4kse3awh.js → chunk-0304b7xg.js} +1 -1
- package/bundle/{chunk-k9d927xe.js → chunk-05amr7y9.js} +1 -1
- package/bundle/{chunk-am73j1bt.js → chunk-06x1p3t4.js} +1 -1
- package/bundle/{chunk-9798jffg.js → chunk-07net7s8.js} +1 -1
- package/bundle/chunk-08y06vgt.js +3 -0
- package/bundle/chunk-09ecxdmd.js +2 -0
- package/bundle/{chunk-6mscvf6y.js → chunk-0cehm5fn.js} +1 -1
- package/bundle/chunk-0jaj2g7x.js +2 -0
- package/bundle/{chunk-7gczzccz.js → chunk-0m2tj2h9.js} +1 -1
- package/bundle/{chunk-srf73nm4.js → chunk-0mekr486.js} +1 -1
- package/bundle/{chunk-gen6f3dn.js → chunk-0ndvy0nh.js} +2 -2
- package/bundle/chunk-0nr2925m.js +2 -0
- package/bundle/chunk-0vqrakhw.js +3 -0
- package/bundle/{chunk-vf1r5ckp.js → chunk-0w5npkgr.js} +1 -1
- package/bundle/chunk-0wbq1y92.js +2 -0
- package/bundle/chunk-12pxszgn.js +2 -0
- package/bundle/chunk-1337582e.js +2 -0
- package/bundle/{chunk-hxgb0y1w.js → chunk-14ag9ea0.js} +1 -1
- package/bundle/chunk-182jf8fz.js +2 -0
- package/bundle/chunk-1ht3zcsh.js +2 -0
- package/bundle/{chunk-fhng5her.js → chunk-1n4w8dya.js} +2 -2
- package/bundle/{chunk-g7vkkmsk.js → chunk-1qbm1k9y.js} +3 -3
- package/bundle/{chunk-apq38bt4.js → chunk-1xkwm21b.js} +3 -3
- package/bundle/{chunk-3tkp27x7.js → chunk-1xpx1t40.js} +2 -2
- package/bundle/{chunk-w1atxyz0.js → chunk-1yx4jesj.js} +1 -1
- package/bundle/chunk-25zkavr0.js +2 -0
- package/bundle/{chunk-4k149ews.js → chunk-28vnspd4.js} +1 -1
- package/bundle/chunk-2cm91ktc.js +3 -0
- package/bundle/chunk-2jfd82jk.js +2 -0
- package/bundle/{chunk-ve5gb789.js → chunk-2jn2hd12.js} +2 -2
- package/bundle/chunk-2k7bbzj2.js +2 -0
- package/bundle/{chunk-7yf15a3a.js → chunk-2kdn66xt.js} +1 -1
- package/bundle/{chunk-99n6czag.js → chunk-2q76qax6.js} +2 -2
- package/bundle/{chunk-8pe047p0.js → chunk-2sy1wx99.js} +1 -1
- package/bundle/{chunk-8651hq0k.js → chunk-2yb59jwr.js} +1 -1
- package/bundle/chunk-30081kwd.js +2 -0
- package/bundle/{chunk-g0v9g37f.js → chunk-32zrch7h.js} +1 -1
- package/bundle/{chunk-7y3y3j51.js → chunk-3bb7y9pq.js} +2 -2
- package/bundle/{chunk-jz3aav8a.js → chunk-3kdhvq0p.js} +2 -2
- package/bundle/{chunk-m8djypsy.js → chunk-3rgct4bd.js} +1 -1
- package/bundle/{chunk-frdc3ysq.js → chunk-3s0d17xe.js} +1 -1
- package/bundle/chunk-3vag59se.js +2 -0
- package/bundle/{chunk-j1a64ade.js → chunk-3w64fpwn.js} +2 -2
- package/bundle/chunk-3x5v6sjw.js +2 -0
- package/bundle/{chunk-hqg5qbxk.js → chunk-3zn71txs.js} +1 -1
- package/bundle/{chunk-3vbtra1j.js → chunk-41ftye7w.js} +1 -1
- package/bundle/chunk-43ep9d7a.js +2 -0
- package/bundle/chunk-48j09m6e.js +3 -0
- package/bundle/{chunk-6szvs3k9.js → chunk-4920vf6a.js} +1 -1
- package/bundle/{chunk-wa2ce2sg.js → chunk-49tqzsy0.js} +2 -2
- package/bundle/{chunk-cvchztkc.js → chunk-49ypxzfx.js} +1 -1
- package/bundle/{chunk-6nhje520.js → chunk-4k70wrhf.js} +1 -1
- package/bundle/{chunk-tk3bve0x.js → chunk-4nck07pc.js} +2 -2
- package/bundle/chunk-4qqja22v.js +2 -0
- package/bundle/{chunk-23geekk5.js → chunk-54pk7nna.js} +1 -1
- package/bundle/{chunk-ewyk4py6.js → chunk-56pwz1kk.js} +1 -1
- package/bundle/{chunk-2y8qz8te.js → chunk-56qm8xpt.js} +1 -1
- package/bundle/{chunk-y3n31nnx.js → chunk-58gp7wbg.js} +2 -2
- package/bundle/{chunk-9easaxy7.js → chunk-5dm3p5r6.js} +1 -1
- package/bundle/chunk-5gazgxt5.js +2 -0
- package/bundle/{chunk-0ae5q6ck.js → chunk-5jtd006j.js} +2 -2
- package/bundle/{chunk-t488d66k.js → chunk-5mec6cde.js} +1 -1
- package/bundle/{chunk-gvzfffr4.js → chunk-5yaahmjb.js} +1 -1
- package/bundle/{chunk-jbd9k041.js → chunk-5ymj2q6j.js} +2 -2
- package/bundle/{chunk-ebjhggdw.js → chunk-613kegcn.js} +1 -1
- package/bundle/chunk-63znhwx0.js +2 -0
- package/bundle/{chunk-zavtsfxz.js → chunk-6fpfr8tk.js} +1 -1
- package/bundle/{chunk-0pvbk8ks.js → chunk-6h2faxs9.js} +2 -2
- package/bundle/chunk-6hmyy7n6.js +2 -0
- package/bundle/{chunk-78bajmqm.js → chunk-6nk3wx6f.js} +1 -1
- package/bundle/{chunk-1jsywey3.js → chunk-6nkcfncg.js} +1 -1
- package/bundle/{chunk-ps543k72.js → chunk-6s2f5sv4.js} +1 -1
- package/bundle/{chunk-dcx8hjbs.js → chunk-6vb26adv.js} +1 -1
- package/bundle/{chunk-r48g0kaq.js → chunk-6wdwwpsc.js} +2 -2
- package/bundle/{chunk-8r79zf3y.js → chunk-77e1wh0j.js} +2 -2
- package/bundle/chunk-7dyddrpk.js +2 -0
- package/bundle/{chunk-4d1a547n.js → chunk-7e1aw8rw.js} +1 -1
- package/bundle/{chunk-ac202abt.js → chunk-7ez3ye6e.js} +1 -1
- package/bundle/{chunk-wfnk2vsd.js → chunk-7fmy4cvn.js} +1 -1
- package/bundle/{chunk-82gs5cmn.js → chunk-7n2kpqh5.js} +1 -1
- package/bundle/chunk-7penjsgq.js +2 -0
- package/bundle/chunk-7qxn24qa.js +3 -0
- package/bundle/{chunk-4q9w2yve.js → chunk-7rxsj310.js} +2 -2
- package/bundle/{chunk-dkv2mg97.js → chunk-7ryv0f5h.js} +1 -1
- package/bundle/chunk-7t5gzkj6.js +2 -0
- package/bundle/{chunk-84gnbzky.js → chunk-7tbvr236.js} +1 -1
- package/bundle/{chunk-8cr7ks31.js → chunk-81engf0t.js} +1 -1
- package/bundle/{chunk-cy2586rv.js → chunk-880msfsd.js} +1 -1
- package/bundle/chunk-89vgt8vq.js +2 -0
- package/bundle/{chunk-vftqwdpg.js → chunk-8ahpk8td.js} +1 -1
- package/bundle/{chunk-9f7y0dj0.js → chunk-8bzwgcjb.js} +1 -1
- package/bundle/chunk-8e8n82f9.js +2 -0
- package/bundle/{chunk-xj73j10a.js → chunk-91khd3fq.js} +1 -1
- package/bundle/chunk-97exhw9j.js +2 -0
- package/bundle/chunk-9cvkaht5.js +2 -0
- package/bundle/{chunk-1jh5p5qw.js → chunk-9p83me3p.js} +2 -2
- package/bundle/{chunk-ygj1cy0n.js → chunk-9qtf8khv.js} +1 -1
- package/bundle/{chunk-kaeyhw2n.js → chunk-9wm41z2f.js} +2 -2
- package/bundle/chunk-9zrwbxx0.js +3 -0
- package/bundle/{chunk-q6fbyvpq.js → chunk-admgf65a.js} +1 -1
- package/bundle/{chunk-spm1yy6w.js → chunk-afhg3w2j.js} +1 -1
- package/bundle/chunk-akdvstd9.js +2 -0
- package/bundle/{chunk-w7p2x973.js → chunk-atbm0pnt.js} +2 -2
- package/bundle/chunk-ave2e4sa.js +2 -0
- package/bundle/chunk-axnwehc7.js +2 -0
- package/bundle/{chunk-ns0pswww.js → chunk-b79k456s.js} +1 -1
- package/bundle/chunk-bmzyxspj.js +2 -0
- package/bundle/{chunk-9sy9ws1w.js → chunk-bse8p94q.js} +1 -1
- package/bundle/chunk-bvaqpfv8.js +2 -0
- package/bundle/{chunk-gf4ek7rv.js → chunk-c0k8j498.js} +1 -1
- package/bundle/{chunk-pyq01301.js → chunk-cbmw8fy2.js} +1 -1
- package/bundle/{chunk-cesrhm09.js → chunk-cn10hn58.js} +1 -1
- package/bundle/{chunk-gc9q0x8z.js → chunk-cqhpbfcn.js} +3 -3
- package/bundle/{chunk-jegn6jc3.js → chunk-cr06m77n.js} +2 -2
- package/bundle/{chunk-3wzqs241.js → chunk-crap29f6.js} +1 -1
- package/bundle/chunk-cxb05cdg.js +2 -0
- package/bundle/chunk-cxe92z5c.js +2 -0
- package/bundle/{chunk-b643cra9.js → chunk-cyjzqa5p.js} +195 -195
- package/bundle/{chunk-0w4v0fbs.js → chunk-d2n09yvh.js} +2 -2
- package/bundle/{chunk-fm4xa6yx.js → chunk-d31yrcrn.js} +2 -2
- package/bundle/chunk-d5wp85kw.js +2 -0
- package/bundle/{chunk-6j0365q3.js → chunk-dazye86e.js} +2 -2
- package/bundle/chunk-dm5xnb4t.js +2 -0
- package/bundle/chunk-dpeqsvan.js +2 -0
- package/bundle/chunk-drxtmg5c.js +2 -0
- package/bundle/{chunk-k16hzy2q.js → chunk-dv5zf5gz.js} +1 -1
- package/bundle/{chunk-2qcndbxv.js → chunk-e57d1he9.js} +1 -1
- package/bundle/{chunk-1d64dywx.js → chunk-e58pdw5k.js} +2 -2
- package/bundle/chunk-e9pfdjcy.js +2 -0
- package/bundle/chunk-ejn5hfzd.js +2 -0
- package/bundle/{chunk-hg563h5r.js → chunk-ek1fawsj.js} +2 -2
- package/bundle/{chunk-rvvfs9ps.js → chunk-eq33vmze.js} +1 -1
- package/bundle/{chunk-6sdh1q7g.js → chunk-eqaym8gm.js} +1 -1
- package/bundle/chunk-ernd18jb.js +2 -0
- package/bundle/{chunk-evqxvhdb.js → chunk-ewvgbg68.js} +1 -1
- package/bundle/{chunk-wf09j72q.js → chunk-f3c9667r.js} +2 -2
- package/bundle/{chunk-9nx8hm57.js → chunk-f3rrd2p6.js} +1 -1
- package/bundle/chunk-f416n3mp.js +14 -0
- package/bundle/{chunk-hh3w51wp.js → chunk-f6y7a5w3.js} +2 -2
- package/bundle/{chunk-zeh481tm.js → chunk-fd9zrmhr.js} +2 -2
- package/bundle/chunk-ff9b4cg8.js +2 -0
- package/bundle/{chunk-bas6x25m.js → chunk-fffj9447.js} +2 -2
- package/bundle/{chunk-5y8efy5b.js → chunk-fk3praj7.js} +1 -1
- package/bundle/{chunk-ecwz9nhs.js → chunk-fk8cctjy.js} +2 -2
- package/bundle/{chunk-1y9t7nxn.js → chunk-fkat2pw6.js} +1 -1
- package/bundle/chunk-fpff6a4q.js +2 -0
- package/bundle/chunk-fvy5w4dh.js +7 -0
- package/bundle/{chunk-2gxjjqfx.js → chunk-fx7w497c.js} +1 -1
- package/bundle/{chunk-5rkmhzq0.js → chunk-fxb6vjcb.js} +2 -2
- package/bundle/{chunk-9xvctnjr.js → chunk-g4qwkcdv.js} +1 -1
- package/bundle/{chunk-2eardzxs.js → chunk-g6dgc5af.js} +1 -1
- package/bundle/{chunk-2mmspnr3.js → chunk-g7vahvkz.js} +1 -1
- package/bundle/chunk-g8wvr7a1.js +3 -0
- package/bundle/{chunk-21ejqv4v.js → chunk-gaxbbxk6.js} +1 -1
- package/bundle/chunk-gq361kdt.js +2 -0
- package/bundle/{chunk-n1chdwrs.js → chunk-gxa2r4zc.js} +1 -1
- package/bundle/{chunk-p54bzjtv.js → chunk-h56jxxvj.js} +1 -1
- package/bundle/{chunk-2z6fzwyc.js → chunk-hb4d06q0.js} +2 -2
- package/bundle/chunk-hbagpppv.js +2 -0
- package/bundle/chunk-hf473xav.js +2 -0
- package/bundle/{chunk-gff87y4n.js → chunk-hjratj6g.js} +1 -1
- package/bundle/{chunk-y2jmtfdh.js → chunk-hk8j5ht8.js} +2 -2
- package/bundle/{chunk-jr8qcf99.js → chunk-hkmb3zer.js} +2 -2
- package/bundle/chunk-hr88054m.js +2 -0
- package/bundle/{chunk-ep8zn49w.js → chunk-hybq019j.js} +2 -2
- package/bundle/{chunk-1xyn0sp2.js → chunk-hyckncza.js} +2 -2
- package/bundle/{chunk-wj6aq50n.js → chunk-hz1hd1bd.js} +1 -1
- package/bundle/{chunk-zp2ffbc2.js → chunk-j0ftbmex.js} +2 -2
- package/bundle/chunk-j3czd7v2.js +28 -0
- package/bundle/{chunk-0w0jfzb4.js → chunk-j7zs1yg2.js} +1 -1
- package/bundle/{chunk-xv8gnkh5.js → chunk-j87bvp1b.js} +1 -1
- package/bundle/chunk-j9m2d6t5.js +2 -0
- package/bundle/chunk-jd9edy2s.js +2 -0
- package/bundle/{chunk-4tn69nqs.js → chunk-jdkxeqw5.js} +1 -1
- package/bundle/chunk-jwtdbx31.js +2 -0
- package/bundle/chunk-jzcz92pq.js +8 -0
- package/bundle/{chunk-5h2hcp46.js → chunk-k7h6tfzj.js} +1 -1
- package/bundle/{chunk-dann9gfq.js → chunk-kbg3k1az.js} +1 -1
- package/bundle/{chunk-va4davgy.js → chunk-kbjwdv1x.js} +259 -253
- package/bundle/{chunk-j1veq3zr.js → chunk-kbyk7hyn.js} +2 -2
- package/bundle/{chunk-jr9xnvjq.js → chunk-kfk1zqc1.js} +1 -1
- package/bundle/{chunk-9jf67xb0.js → chunk-kkdgzeva.js} +2 -2
- package/bundle/{chunk-9rqrm9y8.js → chunk-kn318ev4.js} +1 -1
- package/bundle/{chunk-pv8jcpnf.js → chunk-kp84yba1.js} +1 -1
- package/bundle/{chunk-b8ag61vj.js → chunk-kpnfndkg.js} +1 -1
- package/bundle/chunk-krkxrej2.js +2 -0
- package/bundle/{chunk-ms1fd6h4.js → chunk-kvz0vzsn.js} +1 -1
- package/bundle/chunk-m26mcy8p.js +2 -0
- package/bundle/chunk-m62wgqp1.js +2 -0
- package/bundle/chunk-m7txgh5w.js +2 -0
- package/bundle/chunk-m84cn9c6.js +2 -0
- package/bundle/{chunk-kr0fsqas.js → chunk-md7vpe1e.js} +1 -1
- package/bundle/{chunk-yz7rqzby.js → chunk-mg239rc3.js} +3 -3
- package/bundle/chunk-mvc7pvtq.js +2 -0
- package/bundle/{chunk-tsn1jkr7.js → chunk-n07rsssz.js} +1 -1
- package/bundle/{chunk-8717htya.js → chunk-n10atvac.js} +1 -1
- package/bundle/chunk-nfp9xtca.js +3 -0
- package/bundle/{chunk-fdezde1z.js → chunk-ngz5xw45.js} +1 -1
- package/bundle/{chunk-7mhffm9f.js → chunk-njzpswgt.js} +183 -183
- package/bundle/{chunk-najzfhb2.js → chunk-nszqy06d.js} +1 -1
- package/bundle/{chunk-q3x4x2tq.js → chunk-nxjbbq5h.js} +1 -1
- package/bundle/{chunk-jmjg8d8a.js → chunk-p0k4sv89.js} +4 -4
- package/bundle/{chunk-bf146hz2.js → chunk-p31yg62z.js} +2 -2
- package/bundle/chunk-p5t9mq8r.js +2 -0
- package/bundle/chunk-pfbykat1.js +2 -0
- package/bundle/{chunk-bd21p9zz.js → chunk-pfn1db1m.js} +2 -2
- package/bundle/{chunk-1fnmkm0z.js → chunk-pjbbdm96.js} +2 -2
- package/bundle/{chunk-k9g77a02.js → chunk-pnj8s20t.js} +1 -1
- package/bundle/{chunk-a5zjrwqy.js → chunk-ppvmy940.js} +2 -2
- package/bundle/{chunk-r3yqe7x0.js → chunk-ptf09vmp.js} +1 -1
- package/bundle/{chunk-sjrmhd3e.js → chunk-q2exgz82.js} +1 -1
- package/bundle/{chunk-te1zfpzv.js → chunk-qan3kwbv.js} +1 -1
- package/bundle/{chunk-7tgm8wp5.js → chunk-qb5qemtp.js} +1 -1
- package/bundle/chunk-qd0nvn4z.js +2 -0
- package/bundle/chunk-qh99kv2j.js +2 -0
- package/bundle/{chunk-kc3hpmr2.js → chunk-qkwhgfjt.js} +2 -2
- package/bundle/{chunk-5kmfnkzv.js → chunk-qm9ezq93.js} +1 -1
- package/bundle/chunk-qmhcbdkg.js +8 -0
- package/bundle/{chunk-7a6p7dfx.js → chunk-qngs31yf.js} +1 -1
- package/bundle/{chunk-hbnr0j7h.js → chunk-qpv4438m.js} +2 -2
- package/bundle/{chunk-hv4nhx6q.js → chunk-qq71akpw.js} +2 -2
- package/bundle/chunk-qyrafh4m.js +2 -0
- package/bundle/{chunk-17ggas8k.js → chunk-r1yqmd4y.js} +1 -1
- package/bundle/chunk-rc37cw86.js +2 -0
- package/bundle/{chunk-xccs5c50.js → chunk-rf625fxx.js} +1 -1
- package/bundle/chunk-rmpty636.js +2 -0
- package/bundle/{chunk-9pe4agdz.js → chunk-rs0nx844.js} +2 -2
- package/bundle/{chunk-9vcw33dv.js → chunk-rvrjw0fy.js} +1 -1
- package/bundle/{chunk-jpygkh1c.js → chunk-rz54qjew.js} +1 -1
- package/bundle/{chunk-a9y27zd2.js → chunk-rze20q68.js} +1 -1
- package/bundle/{chunk-hg9nk090.js → chunk-s1h0k1yj.js} +1 -1
- package/bundle/{chunk-hh4c02fh.js → chunk-s2za1y84.js} +1 -1
- package/bundle/chunk-s3wjwxme.js +2 -0
- package/bundle/chunk-s4ncnbgd.js +2 -0
- package/bundle/{chunk-p4hpr8d7.js → chunk-s54c8fpf.js} +1 -1
- package/bundle/{chunk-0pbt75ev.js → chunk-s5krbdvd.js} +1 -1
- package/bundle/{chunk-wmw2gne9.js → chunk-s86fj82v.js} +2 -2
- package/bundle/{chunk-qywwj58s.js → chunk-sdsggxm4.js} +2 -2
- package/bundle/{chunk-r7xp0xcn.js → chunk-se195e52.js} +2 -2
- package/bundle/chunk-snz3w30x.js +2 -0
- package/bundle/chunk-srw748gr.js +2 -0
- package/bundle/{chunk-mj24ntn9.js → chunk-st74db4c.js} +1 -1
- package/bundle/{chunk-0rtshz2r.js → chunk-t1vtdgd6.js} +1 -1
- package/bundle/{chunk-6dxaty1v.js → chunk-t6xm49ea.js} +1 -1
- package/bundle/{chunk-f819a7ec.js → chunk-t7tstr83.js} +1 -1
- package/bundle/{chunk-v2kyarwz.js → chunk-tedrfa7d.js} +2 -2
- package/bundle/{chunk-zfnbk5gy.js → chunk-tfggzzqw.js} +1 -1
- package/bundle/chunk-tn167yyz.js +2 -0
- package/bundle/{chunk-d56zc21w.js → chunk-txty44v2.js} +1 -1
- package/bundle/{chunk-b6m4yyww.js → chunk-tyy4gx61.js} +1 -1
- package/bundle/chunk-v1xwe58d.js +2 -0
- package/bundle/{chunk-vvypb02q.js → chunk-vh05n2x3.js} +1 -1
- package/bundle/{chunk-agdfqncf.js → chunk-vpqd0t8a.js} +2 -2
- package/bundle/chunk-vrfegg5f.js +2 -0
- package/bundle/{chunk-tzc4jkzg.js → chunk-vthm5q05.js} +1 -1
- package/bundle/{chunk-6g3m7yxf.js → chunk-vw673y0t.js} +2 -2
- package/bundle/{chunk-3tdqsm5c.js → chunk-vx837ete.js} +1 -1
- package/bundle/{chunk-hjbks7r9.js → chunk-vy9xre57.js} +1 -1
- package/bundle/{chunk-x6z2b63w.js → chunk-vyjsng14.js} +1 -1
- package/bundle/{chunk-ftk58wxe.js → chunk-vztxv9dj.js} +1 -1
- package/bundle/{chunk-1p34bx7c.js → chunk-w01gjnty.js} +2 -2
- package/bundle/chunk-w12tky28.js +2 -0
- package/bundle/{chunk-t6w96xq2.js → chunk-w2gpgapp.js} +1 -1
- package/bundle/{chunk-gn7xgd4c.js → chunk-w3pzv615.js} +1 -1
- package/bundle/chunk-w4hbw37v.js +3 -0
- package/bundle/chunk-w9ct698t.js +2 -0
- package/bundle/{chunk-8ace31r2.js → chunk-wefjbwv6.js} +1 -1
- package/bundle/{chunk-sgtgvzv6.js → chunk-wg42cxrw.js} +1 -1
- package/bundle/{chunk-02txthqv.js → chunk-wg5dv21f.js} +2 -2
- package/bundle/chunk-wms4skr9.js +11 -0
- package/bundle/chunk-wr5hdsst.js +9 -0
- package/bundle/chunk-wxnqgh8t.js +2 -0
- package/bundle/chunk-wzmte7sy.js +3 -0
- package/bundle/chunk-x0h1jdxt.js +2 -0
- package/bundle/{chunk-ha1w0xzh.js → chunk-x36jhtex.js} +1 -1
- package/bundle/{chunk-yzdty5t9.js → chunk-x3931we7.js} +2 -2
- package/bundle/{chunk-v7r9np94.js → chunk-x3z8q0ep.js} +1 -1
- package/bundle/chunk-x6hsmnhz.js +2 -0
- package/bundle/{chunk-fkvccmgk.js → chunk-xak2r993.js} +2 -2
- package/bundle/{chunk-c31k8yh0.js → chunk-xc3fadkh.js} +1 -1
- package/bundle/{chunk-hh9a709t.js → chunk-xcs2jbz9.js} +1 -1
- package/bundle/{chunk-qw2hgs5b.js → chunk-xdv9xt0y.js} +2 -2
- package/bundle/{chunk-dgzyn27r.js → chunk-xdwej3ae.js} +1 -1
- package/bundle/chunk-xg9e0enb.js +2 -0
- package/bundle/{chunk-pfhp78cr.js → chunk-xqxpjbqk.js} +1 -1
- package/bundle/chunk-xtxxb25n.js +2 -0
- package/bundle/{chunk-8h9r6c8g.js → chunk-y2ch07yv.js} +2 -2
- package/bundle/chunk-y3s7sh1e.js +2 -0
- package/bundle/chunk-ydvheqw9.js +2 -0
- package/bundle/{chunk-0z3z0gk1.js → chunk-ygwe0vf1.js} +2 -2
- package/bundle/{chunk-58enbars.js → chunk-ykxde207.js} +2 -2
- package/bundle/{chunk-dkm7x8rj.js → chunk-ynfbz3sz.js} +2 -2
- package/bundle/{chunk-2wp1w8cy.js → chunk-yqtfvgrp.js} +1 -1
- package/bundle/{chunk-edvcz2gd.js → chunk-yt1yk4j1.js} +1 -1
- package/bundle/{chunk-yh174jhg.js → chunk-yvj021eg.js} +2 -2
- package/bundle/chunk-yxnq0d7k.js +2 -0
- package/bundle/{chunk-e346x00p.js → chunk-z2m09m4w.js} +1 -1
- package/bundle/{chunk-f3kjp838.js → chunk-z2q3mg73.js} +2 -2
- package/bundle/chunk-z2raegj9.js +2 -0
- package/bundle/{chunk-y1srca0c.js → chunk-z3hj5bfd.js} +2 -2
- package/bundle/chunk-z3pyhmg6.js +2 -0
- package/bundle/{chunk-3nhqd8wg.js → chunk-z4ae6jmb.js} +3 -3
- package/bundle/{chunk-7dckfame.js → chunk-z559gc3n.js} +1 -1
- package/bundle/chunk-z7pg6sw1.js +2 -0
- package/bundle/chunk-z84376c6.js +2 -0
- package/bundle/{chunk-ktmazmas.js → chunk-ze00x1xb.js} +2 -2
- package/bundle/{chunk-pb7rnkke.js → chunk-zjvzc0my.js} +1 -1
- package/bundle/chunk-zn8th65r.js +2 -0
- package/bundle/{chunk-sswbfqcq.js → chunk-zna6neq5.js} +1 -1
- package/bundle/chunk-ztv1brgn.js +2 -0
- package/bundle/{chunk-s9amvacw.js → chunk-zvsafnkp.js} +2 -2
- package/bundle/chunk-zyxvd9fj.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-0bvde0cx.js +0 -2
- package/bundle/chunk-0kbxnazj.js +0 -2
- package/bundle/chunk-19z5q33z.js +0 -2
- package/bundle/chunk-1a0wnwna.js +0 -2
- package/bundle/chunk-1ddm2wxv.js +0 -2
- package/bundle/chunk-1fk4vsmc.js +0 -2
- package/bundle/chunk-1j2f9nd5.js +0 -2
- package/bundle/chunk-27s736an.js +0 -2
- package/bundle/chunk-2j17xrzj.js +0 -2
- package/bundle/chunk-2zca3nak.js +0 -2
- package/bundle/chunk-2zcvcfq4.js +0 -2
- package/bundle/chunk-38hwkfj5.js +0 -2
- package/bundle/chunk-3afqxvsn.js +0 -2
- package/bundle/chunk-3avc1ppg.js +0 -7
- package/bundle/chunk-3v4vtah1.js +0 -2
- package/bundle/chunk-3ypk0j2f.js +0 -2
- package/bundle/chunk-3z1y040p.js +0 -3
- package/bundle/chunk-4aykrj51.js +0 -9
- package/bundle/chunk-4dtbmqmq.js +0 -2
- package/bundle/chunk-4zjb6rps.js +0 -2
- package/bundle/chunk-5hkcjgwh.js +0 -2
- package/bundle/chunk-5snrz263.js +0 -2
- package/bundle/chunk-653c0mxr.js +0 -11
- package/bundle/chunk-6av7hrrk.js +0 -7
- package/bundle/chunk-6bswn7w5.js +0 -2
- package/bundle/chunk-6epghftw.js +0 -2
- package/bundle/chunk-6jjhxh8p.js +0 -2
- package/bundle/chunk-6ws7xyc5.js +0 -2
- package/bundle/chunk-7g28zhar.js +0 -2
- package/bundle/chunk-7v02b2ms.js +0 -2
- package/bundle/chunk-7vmp2034.js +0 -2
- package/bundle/chunk-7wxrypkr.js +0 -2
- package/bundle/chunk-8kk9gvdy.js +0 -2
- package/bundle/chunk-8ygpp4y3.js +0 -2
- package/bundle/chunk-95q60g1p.js +0 -2
- package/bundle/chunk-9mjbenja.js +0 -2
- package/bundle/chunk-9vn1gy8h.js +0 -2
- package/bundle/chunk-ajp3f08k.js +0 -2
- package/bundle/chunk-aptkpdkc.js +0 -2
- package/bundle/chunk-bky5a42k.js +0 -3
- package/bundle/chunk-bry94ar5.js +0 -2
- package/bundle/chunk-btzyvqkf.js +0 -2
- package/bundle/chunk-c94pjdfh.js +0 -2
- package/bundle/chunk-cct9ds5c.js +0 -2
- package/bundle/chunk-czn535v0.js +0 -2
- package/bundle/chunk-d7wd5hz1.js +0 -2
- package/bundle/chunk-d86cmjrp.js +0 -2
- package/bundle/chunk-dnq65xvn.js +0 -2
- package/bundle/chunk-dpqv8rtn.js +0 -2
- package/bundle/chunk-e9mh7s3z.js +0 -2
- package/bundle/chunk-ek2y5f6g.js +0 -2
- package/bundle/chunk-epdsay73.js +0 -2
- package/bundle/chunk-f89gntcy.js +0 -3
- package/bundle/chunk-ffnsn7tv.js +0 -2
- package/bundle/chunk-fkezc7ew.js +0 -2
- package/bundle/chunk-fsxddgj0.js +0 -2
- package/bundle/chunk-gbcsfg6v.js +0 -2
- package/bundle/chunk-gfmz85hp.js +0 -2
- package/bundle/chunk-gk63k4t6.js +0 -2
- package/bundle/chunk-j0vf8s12.js +0 -2
- package/bundle/chunk-j1bxt69x.js +0 -2
- package/bundle/chunk-jcem8s30.js +0 -2
- package/bundle/chunk-jjwjb9w0.js +0 -3
- package/bundle/chunk-jpham2a3.js +0 -2
- package/bundle/chunk-jzkymnr5.js +0 -2
- package/bundle/chunk-k0qtwnhb.js +0 -2
- package/bundle/chunk-k2rsky7z.js +0 -2
- package/bundle/chunk-kcetcysa.js +0 -2
- package/bundle/chunk-kjfc5v3s.js +0 -2
- package/bundle/chunk-kkvb2c2z.js +0 -8
- package/bundle/chunk-km2ayfyf.js +0 -2
- package/bundle/chunk-knrh89eb.js +0 -2
- package/bundle/chunk-ksqfjawv.js +0 -2
- package/bundle/chunk-mjhb1q0n.js +0 -3
- package/bundle/chunk-mxcger73.js +0 -2
- package/bundle/chunk-nazkrkeb.js +0 -2
- package/bundle/chunk-nk01s49e.js +0 -2
- package/bundle/chunk-ns8b7rx1.js +0 -2
- package/bundle/chunk-ny6vpkx2.js +0 -2
- package/bundle/chunk-q0dd3ak6.js +0 -3
- package/bundle/chunk-q2s057bm.js +0 -2
- package/bundle/chunk-q5cqg2c0.js +0 -28
- package/bundle/chunk-qk2wnp2x.js +0 -2
- package/bundle/chunk-r012q335.js +0 -3
- package/bundle/chunk-rbdjbgkb.js +0 -2
- package/bundle/chunk-rxjprhgh.js +0 -2
- package/bundle/chunk-s3w9bmze.js +0 -2
- package/bundle/chunk-s3zste1a.js +0 -2
- package/bundle/chunk-sbt7qmwm.js +0 -3
- package/bundle/chunk-sf6h44pb.js +0 -2
- package/bundle/chunk-sgvzxs7m.js +0 -2
- package/bundle/chunk-sp9bndyh.js +0 -2
- package/bundle/chunk-vavrczqm.js +0 -3
- package/bundle/chunk-vg4styg5.js +0 -2
- package/bundle/chunk-vh09hhcs.js +0 -2
- package/bundle/chunk-vhktpm0n.js +0 -2
- package/bundle/chunk-vzjcmwry.js +0 -14
- package/bundle/chunk-wtp0yvqw.js +0 -2
- package/bundle/chunk-xmzs7q66.js +0 -2
- package/bundle/chunk-xv80476w.js +0 -2
- package/bundle/chunk-yjvr0et1.js +0 -2
- package/bundle/chunk-zk8n8hnh.js +0 -3
- package/bundle/chunk-zx3kcfkj.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{CP as n,zP as O}from"./chunk-hh4c02fh.js";var m=O((Y6,nq)=>{var V8=Number.MAX_SAFE_INTEGER||9007199254740991,X8=["major","premajor","minor","preminor","patch","prepatch","prerelease"];nq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:V8,RELEASE_TYPES:X8,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var s=O((W6,aq)=>{var O8=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};aq.exports=O8});var p=O((u,iq)=>{var{MAX_SAFE_COMPONENT_LENGTH:Aq,MAX_SAFE_BUILD_LENGTH:F8,MAX_LENGTH:x8}=m(),D8=s();u=iq.exports={};var U8=u.re=[],N8=u.safeRe=[],V=u.src=[],L8=u.safeSrc=[],X=u.t={},G8=0,Cq="[a-zA-Z0-9-]",P8=[["\\s",1],["\\d",x8],[Cq,F8]],A8=(q)=>{for(let[Z,$]of P8)q=q.split(`${Z}*`).join(`${Z}{0,${$}}`).split(`${Z}+`).join(`${Z}{1,${$}}`);return q},D=(q,Z,$)=>{let Q=A8(Z),K=G8++;D8(q,K,Z),X[q]=K,V[K]=Z,L8[K]=Q,U8[K]=new RegExp(Z,$?"g":void 0),N8[K]=new RegExp(Q,$?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Cq}*`);D("MAINVERSION",`(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})`);D("MAINVERSIONLOOSE",`(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASEIDENTIFIER",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIER]})`);D("PRERELEASEIDENTIFIERLOOSE",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASE",`(?:-(${V[X.PRERELEASEIDENTIFIER]}(?:\\.${V[X.PRERELEASEIDENTIFIER]})*))`);D("PRERELEASELOOSE",`(?:-?(${V[X.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[X.PRERELEASEIDENTIFIERLOOSE]})*))`);D("BUILDIDENTIFIER",`${Cq}+`);D("BUILD",`(?:\\+(${V[X.BUILDIDENTIFIER]}(?:\\.${V[X.BUILDIDENTIFIER]})*))`);D("FULLPLAIN",`v?${V[X.MAINVERSION]}${V[X.PRERELEASE]}?${V[X.BUILD]}?`);D("FULL",`^${V[X.FULLPLAIN]}$`);D("LOOSEPLAIN",`[v=\\s]*${V[X.MAINVERSIONLOOSE]}${V[X.PRERELEASELOOSE]}?${V[X.BUILD]}?`);D("LOOSE",`^${V[X.LOOSEPLAIN]}$`);D("GTLT","((?:<|>)?=?)");D("XRANGEIDENTIFIERLOOSE",`${V[X.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);D("XRANGEIDENTIFIER",`${V[X.NUMERICIDENTIFIER]}|x|X|\\*`);D("XRANGEPLAIN",`[v=\\s]*(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:${V[X.PRERELEASE]})?${V[X.BUILD]}?)?)?`);D("XRANGEPLAINLOOSE",`[v=\\s]*(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:${V[X.PRERELEASELOOSE]})?${V[X.BUILD]}?)?)?`);D("XRANGE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAIN]}$`);D("XRANGELOOSE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAINLOOSE]}$`);D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Aq}})(?:\\.(\\d{1,${Aq}}))?(?:\\.(\\d{1,${Aq}}))?`);D("COERCE",`${V[X.COERCEPLAIN]}(?:$|[^\\d])`);D("COERCEFULL",V[X.COERCEPLAIN]+`(?:${V[X.PRERELEASE]})?(?:${V[X.BUILD]})?(?:$|[^\\d])`);D("COERCERTL",V[X.COERCE],!0);D("COERCERTLFULL",V[X.COERCEFULL],!0);D("LONETILDE","(?:~>?)");D("TILDETRIM",`(\\s*)${V[X.LONETILDE]}\\s+`,!0);u.tildeTrimReplace="$1~";D("TILDE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAIN]}$`);D("TILDELOOSE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAINLOOSE]}$`);D("LONECARET","(?:\\^)");D("CARETTRIM",`(\\s*)${V[X.LONECARET]}\\s+`,!0);u.caretTrimReplace="$1^";D("CARET",`^${V[X.LONECARET]}${V[X.XRANGEPLAIN]}$`);D("CARETLOOSE",`^${V[X.LONECARET]}${V[X.XRANGEPLAINLOOSE]}$`);D("COMPARATORLOOSE",`^${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]})$|^$`);D("COMPARATOR",`^${V[X.GTLT]}\\s*(${V[X.FULLPLAIN]})$|^$`);D("COMPARATORTRIM",`(\\s*)${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]}|${V[X.XRANGEPLAIN]})`,!0);u.comparatorTrimReplace="$1$2$3";D("HYPHENRANGE",`^\\s*(${V[X.XRANGEPLAIN]})\\s+-\\s+(${V[X.XRANGEPLAIN]})\\s*$`);D("HYPHENRANGELOOSE",`^\\s*(${V[X.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[X.XRANGEPLAINLOOSE]})\\s*$`);D("STAR","(<|>)?=?\\s*\\*");D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Wq=O((z6,sq)=>{var C8=Object.freeze({loose:!0}),E8=Object.freeze({}),H8=(q)=>{if(!q)return E8;if(typeof q!=="object")return C8;return q};sq.exports=H8});var Eq=O((_6,tq)=>{var rq=/^[0-9]+$/,oq=(q,Z)=>{if(typeof q==="number"&&typeof Z==="number")return q===Z?0:q<Z?-1:1;let $=rq.test(q),Q=rq.test(Z);if($&&Q)q=+q,Z=+Z;return q===Z?0:$&&!Q?-1:Q&&!$?1:q<Z?-1:1},k8=(q,Z)=>oq(Z,q);tq.exports={compareIdentifiers:oq,rcompareIdentifiers:k8}});var R=O((I6,q0)=>{var zq=s(),{MAX_LENGTH:eq,MAX_SAFE_INTEGER:_q}=m(),{safeRe:Iq,t:Bq}=p(),R8=Wq(),{compareIdentifiers:Hq}=Eq(),y8=(q,Z)=>{let $=Z.split(".");if($.length>q.length)return!1;for(let Q=0;Q<$.length;Q++)if(Hq(q[Q],$[Q])!==0)return!1;return!0};class v{constructor(q,Z){if(Z=R8(Z),q instanceof v)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>eq)throw TypeError(`version is longer than ${eq} characters`);zq("SemVer",q,Z),this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease;let $=q.trim().match(Z.loose?Iq[Bq.LOOSE]:Iq[Bq.FULL]);if(!$)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+$[1],this.minor=+$[2],this.patch=+$[3],this.major>_q||this.major<0)throw TypeError("Invalid major version");if(this.minor>_q||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>_q||this.patch<0)throw TypeError("Invalid patch version");if(!$[4])this.prerelease=[];else this.prerelease=$[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let K=+Q;if(K>=0&&K<_q)return K}return Q});this.build=$[5]?$[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(zq("SemVer.compare",this.version,this.options,q),!(q instanceof v)){if(typeof q==="string"&&q===this.version)return 0;q=new v(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof v))q=new v(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof v))q=new v(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let Z=0;do{let $=this.prerelease[Z],Q=q.prerelease[Z];if(zq("prerelease compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}compareBuild(q){if(!(q instanceof v))q=new v(q,this.options);let Z=0;do{let $=this.build[Z],Q=q.build[Z];if(zq("build compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}inc(q,Z,$){if(q.startsWith("pre")){if(!Z&&$===!1)throw Error("invalid increment argument: identifier is empty");if(Z){let Q=`-${Z}`.match(this.options.loose?Iq[Bq.PRERELEASELOOSE]:Iq[Bq.PRERELEASE]);if(!Q||Q[1]!==Z)throw Error(`invalid identifier: ${Z}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Z,$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Z,$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Z,$),this.inc("pre",Z,$);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",Z,$);this.inc("pre",Z,$);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number($)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let K=this.prerelease.length;while(--K>=0)if(typeof this.prerelease[K]==="number")this.prerelease[K]++,K=-2;if(K===-1){if(Z===this.prerelease.join(".")&&$===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if(Z){let K=[Z,Q];if($===!1)K=[Z];if(y8(this.prerelease,Z)){let Y=this.prerelease[Z.split(".").length];if(isNaN(Y))this.prerelease=K}else this.prerelease=K}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}q0.exports=v});var d=O((B6,$0)=>{var Z0=R(),w8=(q,Z,$=!1)=>{if(q instanceof Z0)return q;try{return new Z0(q,Z)}catch(Q){if(!$)return null;throw Q}};$0.exports=w8});var K0=O((J6,Q0)=>{var S8=d(),T8=(q,Z)=>{let $=S8(q,Z);return $?$.version:null};Q0.exports=T8});var W0=O((V6,Y0)=>{var j8=d(),M8=(q,Z)=>{let $=j8(q.trim().replace(/^[=v]+/,""),Z);return $?$.version:null};Y0.exports=M8});var I0=O((X6,_0)=>{var z0=R(),b8=(q,Z,$,Q,K)=>{if(typeof $==="string")K=Q,Q=$,$=void 0;try{return new z0(q instanceof z0?q.version:q,$).inc(Z,Q,K).version}catch(Y){return null}};_0.exports=b8});var V0=O((O6,J0)=>{var B0=d(),v8=(q,Z)=>{let $=B0(q,null,!0),Q=B0(Z,null,!0),K=$.compare(Q);if(K===0)return null;let Y=K>0,W=Y?$:Q,z=Y?Q:$,_=!!W.prerelease.length;if(!!z.prerelease.length&&!_){if(!z.patch&&!z.minor)return"major";if(z.compareMain(W)===0){if(z.minor&&!z.patch)return"minor";return"patch"}}let J=_?"pre":"";if($.major!==Q.major)return J+"major";if($.minor!==Q.minor)return J+"minor";if($.patch!==Q.patch)return J+"patch";return"prerelease"};J0.exports=v8});var O0=O((F6,X0)=>{var u8=R(),f8=(q,Z)=>new u8(q,Z).major;X0.exports=f8});var x0=O((x6,F0)=>{var d8=R(),h8=(q,Z)=>new d8(q,Z).minor;F0.exports=h8});var U0=O((D6,D0)=>{var l8=R(),g8=(q,Z)=>new l8(q,Z).patch;D0.exports=g8});var L0=O((U6,N0)=>{var c8=d(),m8=(q,Z)=>{let $=c8(q,Z);return $&&$.prerelease.length?$.prerelease:null};N0.exports=m8});var M=O((N6,P0)=>{var G0=R(),p8=(q,Z,$)=>new G0(q,$).compare(new G0(Z,$));P0.exports=p8});var C0=O((L6,A0)=>{var n8=M(),a8=(q,Z,$)=>n8(Z,q,$);A0.exports=a8});var H0=O((G6,E0)=>{var i8=M(),s8=(q,Z)=>i8(q,Z,!0);E0.exports=s8});var Jq=O((P6,R0)=>{var k0=R(),r8=(q,Z,$)=>{let Q=new k0(q,$),K=new k0(Z,$);return Q.compare(K)||Q.compareBuild(K)};R0.exports=r8});var w0=O((A6,y0)=>{var o8=Jq(),t8=(q,Z)=>q.sort(($,Q)=>o8($,Q,Z));y0.exports=t8});var T0=O((C6,S0)=>{var e8=Jq(),q9=(q,Z)=>q.sort(($,Q)=>e8(Q,$,Z));S0.exports=q9});var r=O((E6,j0)=>{var Z9=M(),$9=(q,Z,$)=>Z9(q,Z,$)>0;j0.exports=$9});var Vq=O((H6,M0)=>{var Q9=M(),K9=(q,Z,$)=>Q9(q,Z,$)<0;M0.exports=K9});var kq=O((k6,b0)=>{var Y9=M(),W9=(q,Z,$)=>Y9(q,Z,$)===0;b0.exports=W9});var Rq=O((R6,v0)=>{var z9=M(),_9=(q,Z,$)=>z9(q,Z,$)!==0;v0.exports=_9});var Xq=O((y6,u0)=>{var I9=M(),B9=(q,Z,$)=>I9(q,Z,$)>=0;u0.exports=B9});var Oq=O((w6,f0)=>{var J9=M(),V9=(q,Z,$)=>J9(q,Z,$)<=0;f0.exports=V9});var yq=O((S6,d0)=>{var X9=kq(),O9=Rq(),F9=r(),x9=Xq(),D9=Vq(),U9=Oq(),N9=(q,Z,$,Q)=>{switch(Z){case"===":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q===$;case"!==":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q!==$;case"":case"=":case"==":return X9(q,$,Q);case"!=":return O9(q,$,Q);case">":return F9(q,$,Q);case">=":return x9(q,$,Q);case"<":return D9(q,$,Q);case"<=":return U9(q,$,Q);default:throw TypeError(`Invalid operator: ${Z}`)}};d0.exports=N9});var l0=O((T6,h0)=>{var L9=R(),G9=d(),{safeRe:Fq,t:xq}=p(),P9=(q,Z)=>{if(q instanceof L9)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;Z=Z||{};let $=null;if(!Z.rtl)$=q.match(Z.includePrerelease?Fq[xq.COERCEFULL]:Fq[xq.COERCE]);else{let _=Z.includePrerelease?Fq[xq.COERCERTLFULL]:Fq[xq.COERCERTL],I;while((I=_.exec(q))&&(!$||$.index+$[0].length!==q.length)){if(!$||I.index+I[0].length!==$.index+$[0].length)$=I;_.lastIndex=I.index+I[1].length+I[2].length}_.lastIndex=-1}if($===null)return null;let Q=$[2],K=$[3]||"0",Y=$[4]||"0",W=Z.includePrerelease&&$[5]?`-${$[5]}`:"",z=Z.includePrerelease&&$[6]?`+${$[6]}`:"";return G9(`${Q}.${K}.${Y}${W}${z}`,Z)};h0.exports=P9});var c0=O((j6,g0)=>{var A9=d(),C9=m(),E9=R(),H9=(q,Z,$)=>{if(!C9.RELEASE_TYPES.includes(Z))return null;let Q=k9(q,$);return Q&&R9(Q,Z)},k9=(q,Z)=>{let $=q instanceof E9?q.version:q;return A9($,Z)},R9=(q,Z)=>{if(y9(Z))return q.version;switch(q.prerelease=[],Z){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},y9=(q)=>{return q.startsWith("pre")};g0.exports=H9});var n0=O((M6,p0)=>{class m0{constructor(){this.max=1000,this.map=new Map}get(q){let Z=this.map.get(q);if(Z===void 0)return;else return this.map.delete(q),this.map.set(q,Z),Z}delete(q){return this.map.delete(q)}set(q,Z){if(!this.delete(q)&&Z!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,Z)}return this}}p0.exports=m0});var b=O((b6,r0)=>{var w9=/\s+/g;class o{constructor(q,Z){if(Z=T9(Z),q instanceof o)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else return new o(q.raw,Z);if(q instanceof wq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease,this.raw=q.trim().replace(w9," "),this.set=this.raw.split("||").map(($)=>this.parseRange($.trim())).filter(($)=>$.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let $=this.set[0];if(this.set=this.set.filter((Q)=>!i0(Q[0])),this.set.length===0)this.set=[$];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&l9(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let Z=this.set[q];for(let $=0;$<Z.length;$++){if($>0)this.formatted+=" ";this.formatted+=Z[$].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(h9,"");let $=((this.options.includePrerelease&&f9)|(this.options.loose&&d9))+":"+q,Q=a0.get($);if(Q)return Q;let K=this.options.loose,Y=K?S[y.HYPHENRANGELOOSE]:S[y.HYPHENRANGE];q=q.replace(Y,o9(this.options.includePrerelease)),P("hyphen replace",q),q=q.replace(S[y.COMPARATORTRIM],b9),P("comparator trim",q),q=q.replace(S[y.TILDETRIM],v9),P("tilde trim",q),q=q.replace(S[y.CARETTRIM],u9),P("caret trim",q);let W=q.split(" ").map((J)=>g9(J,this.options)).join(" ").split(/\s+/).map((J)=>r9(J,this.options));if(K)W=W.filter((J)=>{return P("loose invalid filter",J,this.options),!!J.match(S[y.COMPARATORLOOSE])});P("range list",W);let z=new Map,_=W.map((J)=>new wq(J,this.options));for(let J of _){if(i0(J))return[J];z.set(J.value,J)}if(z.size>1&&z.has(""))z.delete("");let I=[...z.values()];return a0.set($,I),I}intersects(q,Z){if(!(q instanceof o))throw TypeError("a Range is required");return this.set.some(($)=>{return s0($,Z)&&q.set.some((Q)=>{return s0(Q,Z)&&$.every((K)=>{return Q.every((Y)=>{return K.intersects(Y,Z)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new j9(q,this.options)}catch(Z){return!1}for(let Z=0;Z<this.set.length;Z++)if(t9(this.set[Z],q,this.options))return!0;return!1}}r0.exports=o;var S9=n0(),a0=new S9,T9=Wq(),wq=t(),P=s(),j9=R(),{safeRe:S,src:M9,t:y,comparatorTrimReplace:b9,tildeTrimReplace:v9,caretTrimReplace:u9}=p(),{FLAG_INCLUDE_PRERELEASE:f9,FLAG_LOOSE:d9}=m(),h9=new RegExp(M9[y.BUILD],"g"),i0=(q)=>q.value==="<0.0.0-0",l9=(q)=>q.value==="",s0=(q,Z)=>{let $=!0,Q=q.slice(),K=Q.pop();while($&&Q.length)$=Q.every((Y)=>{return K.intersects(Y,Z)}),K=Q.pop();return $},g9=(q,Z)=>{return q=q.replace(S[y.BUILD],""),P("comp",q,Z),q=p9(q,Z),P("caret",q),q=c9(q,Z),P("tildes",q),q=a9(q,Z),P("xrange",q),q=s9(q,Z),P("stars",q),q},T=(q)=>!q||q.toLowerCase()==="x"||q==="*",c9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>m9($,Z)).join(" ")},m9=(q,Z)=>{let $=Z.loose?S[y.TILDELOOSE]:S[y.TILDE];return q.replace($,(Q,K,Y,W,z)=>{P("tilde",q,Q,K,Y,W,z);let _;if(T(K))_="";else if(T(Y))_=`>=${K}.0.0 <${+K+1}.0.0-0`;else if(T(W))_=`>=${K}.${Y}.0 <${K}.${+Y+1}.0-0`;else if(z)P("replaceTilde pr",z),_=`>=${K}.${Y}.${W}-${z} <${K}.${+Y+1}.0-0`;else _=`>=${K}.${Y}.${W} <${K}.${+Y+1}.0-0`;return P("tilde return",_),_})},p9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>n9($,Z)).join(" ")},n9=(q,Z)=>{P("caret",q,Z);let $=Z.loose?S[y.CARETLOOSE]:S[y.CARET],Q=Z.includePrerelease?"-0":"";return q.replace($,(K,Y,W,z,_)=>{P("caret",q,K,Y,W,z,_);let I;if(T(Y))I="";else if(T(W))I=`>=${Y}.0.0${Q} <${+Y+1}.0.0-0`;else if(T(z))if(Y==="0")I=`>=${Y}.${W}.0${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.0${Q} <${+Y+1}.0.0-0`;else if(_)if(P("replaceCaret pr",_),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}-${_} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}-${_} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z}-${_} <${+Y+1}.0.0-0`;else if(P("no pr"),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}${Q} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z} <${+Y+1}.0.0-0`;return P("caret return",I),I})},a9=(q,Z)=>{return P("replaceXRanges",q,Z),q.split(/\s+/).map(($)=>i9($,Z)).join(" ")},i9=(q,Z)=>{q=q.trim();let $=Z.loose?S[y.XRANGELOOSE]:S[y.XRANGE];return q.replace($,(Q,K,Y,W,z,_)=>{P("xRange",q,Q,K,Y,W,z,_);let I=T(Y),J=I||T(W),F=J||T(z),N=F;if(K==="="&&N)K="";if(_=Z.includePrerelease?"-0":"",I)if(K===">"||K==="<")Q="<0.0.0-0";else Q="*";else if(K&&N){if(J)W=0;if(z=0,K===">")if(K=">=",J)Y=+Y+1,W=0,z=0;else W=+W+1,z=0;else if(K==="<=")if(K="<",J)Y=+Y+1;else W=+W+1;if(K==="<")_="-0";Q=`${K+Y}.${W}.${z}${_}`}else if(J)Q=`>=${Y}.0.0${_} <${+Y+1}.0.0-0`;else if(F)Q=`>=${Y}.${W}.0${_} <${Y}.${+W+1}.0-0`;return P("xRange return",Q),Q})},s9=(q,Z)=>{return P("replaceStars",q,Z),q.trim().replace(S[y.STAR],"")},r9=(q,Z)=>{return P("replaceGTE0",q,Z),q.trim().replace(S[Z.includePrerelease?y.GTE0PRE:y.GTE0],"")},o9=(q)=>(Z,$,Q,K,Y,W,z,_,I,J,F,N)=>{if(T(Q))$="";else if(T(K))$=`>=${Q}.0.0${q?"-0":""}`;else if(T(Y))$=`>=${Q}.${K}.0${q?"-0":""}`;else if(W)$=`>=${$}`;else $=`>=${$}${q?"-0":""}`;if(T(I))_="";else if(T(J))_=`<${+I+1}.0.0-0`;else if(T(F))_=`<${I}.${+J+1}.0-0`;else if(N)_=`<=${I}.${J}.${F}-${N}`;else if(q)_=`<${I}.${J}.${+F+1}-0`;else _=`<=${_}`;return`${$} ${_}`.trim()},t9=(q,Z,$)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test(Z))return!1;if(Z.prerelease.length&&!$.includePrerelease){for(let Q=0;Q<q.length;Q++){if(P(q[Q].semver),q[Q].semver===wq.ANY)continue;if(q[Q].semver.prerelease.length>0){let K=q[Q].semver;if(K.major===Z.major&&K.minor===Z.minor&&K.patch===Z.patch)return!0}}return!1}return!0}});var t=O((v6,$1)=>{var e=Symbol("SemVer ANY");class Dq{static get ANY(){return e}constructor(q,Z){if(Z=o0(Z),q instanceof Dq)if(q.loose===!!Z.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Tq("comparator",q,Z),this.options=Z,this.loose=!!Z.loose,this.parse(q),this.semver===e)this.value="";else this.value=this.operator+this.semver.version;Tq("comp",this)}parse(q){let Z=this.options.loose?t0[e0.COMPARATORLOOSE]:t0[e0.COMPARATOR],$=q.match(Z);if(!$)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=$[1]!==void 0?$[1]:"",this.operator==="=")this.operator="";if(!$[2])this.semver=e;else this.semver=new q1($[2],this.options.loose)}toString(){return this.value}test(q){if(Tq("Comparator.test",q,this.options.loose),this.semver===e||q===e)return!0;if(typeof q==="string")try{q=new q1(q,this.options)}catch(Z){return!1}return Sq(q,this.operator,this.semver,this.options)}intersects(q,Z){if(!(q instanceof Dq))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new Z1(q.value,Z).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new Z1(this.value,Z).test(q.semver)}if(Z=o0(Z),Z.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!Z.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Sq(this.semver,"<",q.semver,Z)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Sq(this.semver,">",q.semver,Z)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}$1.exports=Dq;var o0=Wq(),{safeRe:t0,t:e0}=p(),Sq=yq(),Tq=s(),q1=R(),Z1=b()});var qq=O((u6,Q1)=>{var e9=b(),qZ=(q,Z,$)=>{try{Z=new e9(Z,$)}catch(Q){return!1}return Z.test(q)};Q1.exports=qZ});var Y1=O((f6,K1)=>{var ZZ=b(),$Z=(q,Z)=>new ZZ(q,Z).set.map(($)=>$.map((Q)=>Q.value).join(" ").trim().split(" "));K1.exports=$Z});var z1=O((d6,W1)=>{var QZ=R(),KZ=b(),YZ=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new KZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===-1)Q=W,K=new QZ(Q,$)}}),Q};W1.exports=YZ});var I1=O((h6,_1)=>{var WZ=R(),zZ=b(),_Z=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new zZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===1)Q=W,K=new WZ(Q,$)}}),Q};_1.exports=_Z});var V1=O((l6,J1)=>{var jq=R(),IZ=b(),B1=r(),BZ=(q,Z)=>{q=new IZ(q,Z);let $=new jq("0.0.0");if(q.test($))return $;if($=new jq("0.0.0-0"),q.test($))return $;$=null;for(let Q=0;Q<q.set.length;++Q){let K=q.set[Q],Y=null;if(K.forEach((W)=>{let z=new jq(W.semver.version);switch(W.operator){case">":if(z.prerelease.length===0)z.patch++;else z.prerelease.push(0);z.raw=z.format();case"":case">=":if(!Y||B1(z,Y))Y=z;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${W.operator}`)}}),Y&&(!$||B1($,Y)))$=Y}if($&&q.test($))return $;return null};J1.exports=BZ});var O1=O((g6,X1)=>{var JZ=b(),VZ=(q,Z)=>{try{return new JZ(q,Z).range||"*"}catch($){return null}};X1.exports=VZ});var Uq=O((c6,U1)=>{var XZ=R(),D1=t(),{ANY:OZ}=D1,FZ=b(),xZ=qq(),F1=r(),x1=Vq(),DZ=Oq(),UZ=Xq(),NZ=(q,Z,$,Q)=>{q=new XZ(q,Q),Z=new FZ(Z,Q);let K,Y,W,z,_;switch($){case">":K=F1,Y=DZ,W=x1,z=">",_=">=";break;case"<":K=x1,Y=UZ,W=F1,z="<",_="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(xZ(q,Z,Q))return!1;for(let I=0;I<Z.set.length;++I){let J=Z.set[I],F=null,N=null;if(J.forEach((B)=>{if(B.semver===OZ)B=new D1(">=0.0.0");if(F=F||B,N=N||B,K(B.semver,F.semver,Q))F=B;else if(W(B.semver,N.semver,Q))N=B}),F.operator===z||F.operator===_)return!1;if((!N.operator||N.operator===z)&&Y(q,N.semver))return!1;else if(N.operator===_&&W(q,N.semver))return!1}return!0};U1.exports=NZ});var L1=O((m6,N1)=>{var LZ=Uq(),GZ=(q,Z,$)=>LZ(q,Z,">",$);N1.exports=GZ});var P1=O((p6,G1)=>{var PZ=Uq(),AZ=(q,Z,$)=>PZ(q,Z,"<",$);G1.exports=AZ});var E1=O((n6,C1)=>{var A1=b(),CZ=(q,Z,$)=>{return q=new A1(q,$),Z=new A1(Z,$),q.intersects(Z,$)};C1.exports=CZ});var k1=O((a6,H1)=>{var EZ=qq(),HZ=M();H1.exports=(q,Z,$)=>{let Q=[],K=null,Y=null,W=q.sort((J,F)=>HZ(J,F,$));for(let J of W)if(EZ(J,Z,$)){if(Y=J,!K)K=J}else{if(Y)Q.push([K,Y]);Y=null,K=null}if(K)Q.push([K,null]);let z=[];for(let[J,F]of Q)if(J===F)z.push(J);else if(!F&&J===W[0])z.push("*");else if(!F)z.push(`>=${J}`);else if(J===W[0])z.push(`<=${F}`);else z.push(`${J} - ${F}`);let _=z.join(" || "),I=typeof Z.raw==="string"?Z.raw:String(Z);return _.length<I.length?_:Z}});var j1=O((i6,T1)=>{var R1=b(),vq=t(),{ANY:Mq}=vq,bq=qq(),uq=M(),kZ=(q,Z,$={})=>{if(q===Z)return!0;q=new R1(q,$),Z=new R1(Z,$);let Q=!1;q:for(let K of q.set){for(let Y of Z.set){let W=yZ(K,Y,$);if(Q=Q||W!==null,W)continue q}if(Q)return!1}return!0},RZ=[new vq(">=0.0.0-0")],y1=[new vq(">=0.0.0")],yZ=(q,Z,$)=>{if(q===Z)return!0;if(q.length===1&&q[0].semver===Mq)if(Z.length===1&&Z[0].semver===Mq)return!0;else if($.includePrerelease)q=RZ;else q=y1;if(Z.length===1&&Z[0].semver===Mq)if($.includePrerelease)return!0;else Z=y1;let Q=new Set,K,Y;for(let B of q)if(B.operator===">"||B.operator===">=")K=w1(K,B,$);else if(B.operator==="<"||B.operator==="<=")Y=S1(Y,B,$);else Q.add(B.semver);if(Q.size>1)return null;let W;if(K&&Y){if(W=uq(K.semver,Y.semver,$),W>0)return null;else if(W===0&&(K.operator!==">="||Y.operator!=="<="))return null}for(let B of Q){if(K&&!bq(B,String(K),$))return null;if(Y&&!bq(B,String(Y),$))return null;for(let G of Z)if(!bq(B,String(G),$))return!1;return!0}let z,_,I,J,F=Y&&!$.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,N=K&&!$.includePrerelease&&K.semver.prerelease.length?K.semver:!1;if(F&&F.prerelease.length===1&&Y.operator==="<"&&F.prerelease[0]===0)F=!1;for(let B of Z){if(J=J||B.operator===">"||B.operator===">=",I=I||B.operator==="<"||B.operator==="<=",K){if(N){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===N.major&&B.semver.minor===N.minor&&B.semver.patch===N.patch)N=!1}if(B.operator===">"||B.operator===">="){if(z=w1(K,B,$),z===B&&z!==K)return!1}else if(K.operator===">="&&!B.test(K.semver))return!1}if(Y){if(F){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===F.major&&B.semver.minor===F.minor&&B.semver.patch===F.patch)F=!1}if(B.operator==="<"||B.operator==="<="){if(_=S1(Y,B,$),_===B&&_!==Y)return!1}else if(Y.operator==="<="&&!B.test(Y.semver))return!1}if(!B.operator&&(Y||K)&&W!==0)return!1}if(K&&I&&!Y&&W!==0)return!1;if(Y&&J&&!K&&W!==0)return!1;if(N||F)return!1;return!0},w1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q>0?q:Q<0?Z:Z.operator===">"&&q.operator===">="?Z:q},S1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q<0?q:Q>0?Z:Z.operator==="<"&&q.operator==="<="?Z:q};T1.exports=kZ});var u1=O((s6,v1)=>{var fq=p(),M1=m(),wZ=R(),b1=Eq(),SZ=d(),TZ=K0(),jZ=W0(),MZ=I0(),bZ=V0(),vZ=O0(),uZ=x0(),fZ=U0(),dZ=L0(),hZ=M(),lZ=C0(),gZ=H0(),cZ=Jq(),mZ=w0(),pZ=T0(),nZ=r(),aZ=Vq(),iZ=kq(),sZ=Rq(),rZ=Xq(),oZ=Oq(),tZ=yq(),eZ=l0(),q5=c0(),Z5=t(),$5=b(),Q5=qq(),K5=Y1(),Y5=z1(),W5=I1(),z5=V1(),_5=O1(),I5=Uq(),B5=L1(),J5=P1(),V5=E1(),X5=k1(),O5=j1();v1.exports={parse:SZ,valid:TZ,clean:jZ,inc:MZ,diff:bZ,major:vZ,minor:uZ,patch:fZ,prerelease:dZ,compare:hZ,rcompare:lZ,compareLoose:gZ,compareBuild:cZ,sort:mZ,rsort:pZ,gt:nZ,lt:aZ,eq:iZ,neq:sZ,gte:rZ,lte:oZ,cmp:tZ,coerce:eZ,truncate:q5,Comparator:Z5,Range:$5,satisfies:Q5,toComparators:K5,maxSatisfying:Y5,minSatisfying:W5,minVersion:z5,validRange:_5,outside:I5,gtr:B5,ltr:J5,intersects:V5,simplifyRange:X5,subset:O5,SemVer:wZ,re:fq.re,src:fq.src,tokens:fq.t,SEMVER_SPEC_VERSION:M1.SEMVER_SPEC_VERSION,RELEASE_TYPES:M1.RELEASE_TYPES,compareIdentifiers:b1.compareIdentifiers,rcompareIdentifiers:b1.rcompareIdentifiers}});var d1=O((r6,f1)=>{var F5=Symbol("proc-log.meta");f1.exports={META:F5,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...q){return process.emit("output","standard",...q)},error:function(...q){return process.emit("output","error",...q)},buffer:function(...q){return process.emit("output","buffer",...q)},flush:function(...q){return process.emit("output","flush",...q)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...q){return process.emit("log","error",...q)},notice:function(...q){return process.emit("log","notice",...q)},warn:function(...q){return process.emit("log","warn",...q)},info:function(...q){return process.emit("log","info",...q)},verbose:function(...q){return process.emit("log","verbose",...q)},http:function(...q){return process.emit("log","http",...q)},silly:function(...q){return process.emit("log","silly",...q)},timing:function(...q){return process.emit("log","timing",...q)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(q,Z){process.emit("time","start",q);function $(){return process.emit("time","end",q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(q){return process.emit("time","end",q)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(...q){let Z;if(typeof q[0]==="function")Z=q.shift();process.emit("input","start",...q);function $(){return process.emit("input","end",...q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(...q){return process.emit("input","end",...q)},read:function(...q){let Z,$,Q=new Promise((K,Y)=>{Z=K,$=Y});return process.emit("input","read",Z,$,...q),Q}}}});var n1=O((m1)=>{var l1=(q,Z)=>()=>(Z||q((Z={exports:{}}).exports,Z),Z.exports),x5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.tracing=q.metrics=void 0;var Z=n("diagnostics_channel");q.metrics=(0,Z.channel)("lru-cache:metrics"),q.tracing=(0,Z.tracingChannel)("lru-cache")}),D5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.defaultPerf=void 0,q.defaultPerf=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date});Object.defineProperty(m1,"__esModule",{value:!0});m1.LRUCache=void 0;var A=x5(),U5=D5(),dq=()=>A.metrics.hasSubscribers||A.tracing.hasSubscribers,g1=new Set,h1=typeof process=="object"&&process?process:{},N5=(q,Z,$,Q)=>{typeof h1.emitWarning=="function"?h1.emitWarning(q,Z,$,Q):console.error(`[${$}] ${Z}: ${q}`)},L5=(q)=>!g1.has(q),h=(q)=>!!q&&q===Math.floor(q)&&q>0&&isFinite(q),c1=(q)=>h(q)?q<=Math.pow(2,8)?Uint8Array:q<=Math.pow(2,16)?Uint16Array:q<=Math.pow(2,32)?Uint32Array:q<=Number.MAX_SAFE_INTEGER?Nq:null:null,Nq=class extends Array{constructor(q){super(q),this.fill(0)}},G5=class q{heap;length;static#K=!1;static create(Z){let $=c1(Z);if(!$)return[];q.#K=!0;let Q=new q(Z,$);return q.#K=!1,Q}constructor(Z,$){if(!q.#K)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new $(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}},P5=class q{#K;#I;#Z;#y;#D;#b;#v;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#W;#N;#Y;#Q;#q;#J;#X;#B;#z;#L;#_;#G;#P;#O;#F;#A;#u;#V;#w;static unsafeExposeInternals(Z){return{starts:Z.#P,ttls:Z.#O,autopurgeTimers:Z.#F,sizes:Z.#G,keyMap:Z.#Y,keyList:Z.#Q,valList:Z.#q,next:Z.#J,prev:Z.#X,get head(){return Z.#B},get tail(){return Z.#z},free:Z.#L,isBackgroundFetch:($)=>Z.#$($),backgroundFetch:($,Q,K,Y)=>Z.#h($,Q,K,Y),moveToTail:($)=>Z.#M($),indexes:($)=>Z.#C($),rindexes:($)=>Z.#E($),isStale:($)=>Z.#x($)}}get max(){return this.#K}get maxSize(){return this.#I}get calculatedSize(){return this.#N}get size(){return this.#W}get fetchMethod(){return this.#b}get memoMethod(){return this.#v}get dispose(){return this.#Z}get onInsert(){return this.#y}get disposeAfter(){return this.#D}constructor(Z){let{max:$=0,ttl:Q,ttlResolution:K=1,ttlAutopurge:Y,updateAgeOnGet:W,updateAgeOnHas:z,allowStale:_,dispose:I,onInsert:J,disposeAfter:F,noDisposeOnSet:N,noUpdateTTL:B,maxSize:G=0,maxEntrySize:x=0,sizeCalculation:H,fetchMethod:U,memoMethod:k,noDeleteOnFetchRejection:f,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:i,ignoreFetchAbort:g,backgroundFetchSize:Yq=1,perf:c}=Z;if(this.backgroundFetchSize=Yq,c!==void 0&&typeof c?.now!="function")throw TypeError("perf option must have a now() method if specified");if(this.#U=c??U5.defaultPerf,$!==0&&!h($))throw TypeError("max option must be a nonnegative integer");let Gq=$?c1($):Array;if(!Gq)throw Error("invalid max value: "+$);if(this.#K=$,this.#I=G,this.maxEntrySize=x||this.#I,this.sizeCalculation=H,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw TypeError("sizeCalculation set to non-function")}if(k!==void 0&&typeof k!="function")throw TypeError("memoMethod must be a function if defined");if(this.#v=k,U!==void 0&&typeof U!="function")throw TypeError("fetchMethod must be a function if specified");if(this.#b=U,this.#u=!!U,this.#Y=new Map,this.#Q=Array.from({length:$}).fill(void 0),this.#q=Array.from({length:$}).fill(void 0),this.#J=new Gq($),this.#X=new Gq($),this.#B=0,this.#z=0,this.#L=G5.create($),this.#W=0,this.#N=0,typeof I=="function"&&(this.#Z=I),typeof J=="function"&&(this.#y=J),typeof F=="function"?(this.#D=F,this.#_=[]):(this.#D=void 0,this.#_=void 0),this.#A=!!this.#Z,this.#w=!!this.#y,this.#V=!!this.#D,this.noDisposeOnSet=!!N,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!f,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!i,this.ignoreFetchAbort=!!g,this.maxEntrySize!==0){if(this.#I!==0&&!h(this.#I))throw TypeError("maxSize must be a positive integer if specified");if(!h(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#i()}if(this.allowStale=!!_,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!W,this.updateAgeOnHas=!!z,this.ttlResolution=h(K)||K===0?K:1,this.ttlAutopurge=!!Y,this.ttl=Q||0,this.ttl){if(!h(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#l()}if(this.#K===0&&this.ttl===0&&this.#I===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#K&&!this.#I){let Pq="LRU_CACHE_UNBOUNDED";L5(Pq)&&(g1.add(Pq),N5("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Pq,q))}}getRemainingTTL(Z){return this.#Y.has(Z)?1/0:0}#l(){let Z=new Nq(this.#K),$=new Nq(this.#K);this.#O=Z,this.#P=$;let Q=this.ttlAutopurge?Array.from({length:this.#K}):void 0;this.#F=Q,this.#g=(z,_,I=this.#U.now())=>{$[z]=_!==0?I:0,Z[z]=_,K(z,_)},this.#S=(z)=>{$[z]=Z[z]!==0?this.#U.now():0,K(z,Z[z])};let K=this.ttlAutopurge?(z,_)=>{if(Q?.[z]&&(clearTimeout(Q[z]),Q[z]=void 0),_&&_!==0&&Q){let I=setTimeout(()=>{this.#x(z)&&this.#H(this.#Q[z],"expire")},_+1);I.unref&&I.unref(),Q[z]=I}}:()=>{};this.#k=(z,_)=>{if(Z[_]){let I=Z[_],J=$[_];if(!I||!J)return;z.ttl=I,z.start=J,z.now=Y||W();let F=z.now-J;z.remainingTTL=I-F}};let Y=0,W=()=>{let z=this.#U.now();if(this.ttlResolution>0){Y=z;let _=setTimeout(()=>Y=0,this.ttlResolution);_.unref&&_.unref()}return z};this.getRemainingTTL=(z)=>{let _=this.#Y.get(z);if(_===void 0)return 0;let I=Z[_],J=$[_];if(!I||!J)return 1/0;let F=(Y||W())-J;return I-F},this.#x=(z)=>{let _=$[z],I=Z[z];return!!I&&!!_&&(Y||W())-_>I}}#S=()=>{};#k=()=>{};#g=()=>{};#x=()=>!1;#i(){let Z=new Nq(this.#K);this.#N=0,this.#G=Z,this.#T=($)=>{this.#N-=Z[$],Z[$]=0},this.#c=($,Q,K,Y)=>{if(!h(K)){if(this.#$(Q))return this.backgroundFetchSize;if(Y){if(typeof Y!="function")throw TypeError("sizeCalculation must be a function");if(K=Y(Q,$),!h(K))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return K},this.#f=($,Q,K)=>{if(Z[$]=Q,this.#I){let Y=this.#I-Z[$];for(;this.#N>Y;)this.#d(!0)}this.#N+=Z[$],K&&(K.entrySize=Q,K.totalCalculatedSize=this.#N)}}#T=(Z)=>{};#f=(Z,$,Q)=>{};#c=(Z,$,Q,K)=>{if(Q||K)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#z;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#B);)$=this.#X[$]}*#E({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#B;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#z);)$=this.#J[$]}#m(Z){return Z!==void 0&&this.#Y.get(this.#Q[Z])===Z}*entries(){for(let Z of this.#C())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*rentries(){for(let Z of this.#E())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*keys(){for(let Z of this.#C()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*rkeys(){for(let Z of this.#E()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*values(){for(let Z of this.#C())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}*rvalues(){for(let Z of this.#E())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,$={}){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y!==void 0&&Z(Y,this.#Q[Q],this))return this.#j(this.#Q[Q],$)}}forEach(Z,$=this){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}rforEach(Z,$=this){for(let Q of this.#E()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}purgeStale(){let Z=!1;for(let $ of this.#E({allowStale:!0}))this.#x($)&&(this.#H(this.#Q[$],"expire"),Z=!0);return Z}info(Z){let $=this.#Y.get(Z);if($===void 0)return;let Q=this.#q[$],K=this.#$(Q)?Q.__staleWhileFetching:Q;if(K===void 0)return;let Y={value:K};if(this.#O&&this.#P){let W=this.#O[$],z=this.#P[$];if(W&&z){let _=W-(this.#U.now()-z);Y.ttl=_,Y.start=Date.now()}}return this.#G&&(Y.size=this.#G[$]),Y}dump(){let Z=[];for(let $ of this.#C({allowStale:!0})){let Q=this.#Q[$],K=this.#q[$],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y===void 0||Q===void 0)continue;let W={value:Y};if(this.#O&&this.#P){W.ttl=this.#O[$];let z=this.#U.now()-this.#P[$];W.start=Math.floor(Date.now()-z)}this.#G&&(W.size=this.#G[$]),Z.unshift([Q,W])}return Z}load(Z){this.clear();for(let[$,Q]of Z){if(Q.start){let K=Date.now()-Q.start;Q.start=this.#U.now()-K}this.#R($,Q.value,Q)}}set(Z,$,Q={}){let{status:K=A.metrics.hasSubscribers?{}:void 0}=Q;Q.status=K,K&&(K.op="set",K.key=Z,$!==void 0&&(K.value=$),K.cache=this);let Y=this.#R(Z,$,Q);return K&&A.metrics.hasSubscribers&&A.metrics.publish(K),Y}#R(Z,$,Q,K){let{ttl:Y=this.ttl,start:W,noDisposeOnSet:z=this.noDisposeOnSet,sizeCalculation:_=this.sizeCalculation,status:I}=Q,J=this.#$($);if($===void 0)return I&&(I.set="deleted"),this.delete(Z),this;let{noUpdateTTL:F=this.noUpdateTTL}=Q;I&&!J&&(I.value=$);let N=this.#c(Z,$,Q.size||0,_,I);if(this.maxEntrySize&&N>this.maxEntrySize)return this.#H(Z,"set"),I&&(I.set="miss",I.maxEntrySizeExceeded=!0),this;let B=this.#W===0?void 0:this.#Y.get(Z);if(B===void 0)B=this.#W===0?this.#z:this.#L.length!==0?this.#L.pop():this.#W===this.#K?this.#d(!1):this.#W,this.#Q[B]=Z,this.#q[B]=$,this.#Y.set(Z,B),this.#J[this.#z]=B,this.#X[B]=this.#z,this.#z=B,this.#W++,this.#f(B,N,I),I&&(I.set="add"),F=!1,this.#w&&!J&&this.#y?.($,Z,"add");else{this.#M(B);let G=this.#q[B];if($!==G){if(!z)if(this.#$(G)){G!==K&&G.__abortController.abort(Error("replaced"));let{__staleWhileFetching:x}=G;x!==void 0&&x!==$&&(this.#A&&this.#Z?.(x,Z,"set"),this.#V&&this.#_?.push([x,Z,"set"]))}else this.#A&&this.#Z?.(G,Z,"set"),this.#V&&this.#_?.push([G,Z,"set"]);if(this.#T(B),this.#f(B,N,I),this.#q[B]=$,!J){let x=G&&this.#$(G)?G.__staleWhileFetching:G,H=x===void 0?"add":$!==x?"replace":"update";I&&(I.set=H,x!==void 0&&(I.oldValue=x)),this.#w&&this.onInsert?.($,Z,H)}}else J||(I&&(I.set="update"),this.#w&&this.onInsert?.($,Z,"update"))}if(Y!==0&&!this.#O&&this.#l(),this.#O&&(F||this.#g(B,Y,W),I&&this.#k(I,B)),!z&&this.#V&&this.#_){let G=this.#_,x;for(;x=G?.shift();)this.#D?.(...x)}return this}pop(){try{for(;this.#W;){let Z=this.#q[this.#B];if(this.#d(!0),this.#$(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#V&&this.#_){let Z=this.#_,$;for(;$=Z?.shift();)this.#D?.(...$)}}}#d(Z){let $=this.#B,Q=this.#Q[$],K=this.#q[$],Y=this.#$(K);Y&&K.__abortController.abort(Error("evicted"));let W=Y?K.__staleWhileFetching:K;return(this.#A||this.#V)&&W!==void 0&&(this.#A&&this.#Z?.(W,Q,"evict"),this.#V&&this.#_?.push([W,Q,"evict"])),this.#T($),this.#F?.[$]&&(clearTimeout(this.#F[$]),this.#F[$]=void 0),Z&&(this.#Q[$]=void 0,this.#q[$]=void 0,this.#L.push($)),this.#W===1?(this.#B=this.#z=0,this.#L.length=0):this.#B=this.#J[$],this.#Y.delete(Q),this.#W--,$}has(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="has",Q.key=Z,Q.cache=this);let K=this.#s(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#s(Z,$={}){let{updateAgeOnHas:Q=this.updateAgeOnHas,status:K}=$,Y=this.#Y.get(Z);if(Y!==void 0){let W=this.#q[Y];if(this.#$(W)&&W.__staleWhileFetching===void 0)return!1;if(this.#x(Y))K&&(K.has="stale",this.#k(K,Y));else return Q&&this.#S(Y),K&&(K.has="hit",this.#k(K,Y)),!0}else K&&(K.has="miss");return!1}peek(Z,$={}){let{status:Q=dq()?{}:void 0}=$;Q&&(Q.op="peek",Q.key=Z,Q.cache=this),$.status=Q;let K=this.#r(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#r(Z,$){let{status:Q,allowStale:K=this.allowStale}=$,Y=this.#Y.get(Z);if(Y===void 0||!K&&this.#x(Y)){Q&&(Q.peek=Y===void 0?"miss":"stale");return}let W=this.#q[Y],z=this.#$(W)?W.__staleWhileFetching:W;return Q&&(z!==void 0?(Q.peek="hit",Q.value=z):Q.peek="miss"),z}#h(Z,$,Q,K){let Y=$===void 0?void 0:this.#q[$];if(this.#$(Y))return Y;let W=new AbortController,{signal:z}=Q;z?.addEventListener("abort",()=>W.abort(z.reason),{signal:W.signal});let _={signal:W.signal,options:Q,context:K},I=(x,H=!1)=>{let{aborted:U}=W.signal,k=Q.ignoreFetchAbort&&x!==void 0,f=Q.ignoreFetchAbort||!!(Q.allowStaleOnFetchAbort&&x!==void 0);if(Q.status&&(U&&!H?(Q.status.fetchAborted=!0,Q.status.fetchError=W.signal.reason,k&&(Q.status.fetchAbortIgnored=!0)):Q.status.fetchResolved=!0),U&&!k&&!H)return F(W.signal.reason,f);let w=B,C=this.#q[$];return(C===B||C===void 0&&k&&H)&&(x===void 0?w.__staleWhileFetching!==void 0?this.#q[$]=w.__staleWhileFetching:this.#H(Z,"fetch"):(Q.status&&(Q.status.fetchUpdated=!0),this.#R(Z,x,_.options,w))),x},J=(x)=>(Q.status&&(Q.status.fetchRejected=!0,Q.status.fetchError=x),F(x,!1)),F=(x,H)=>{let{aborted:U}=W.signal,k=U&&Q.allowStaleOnFetchAbort,f=k||Q.allowStaleOnFetchRejection,w=f||Q.noDeleteOnFetchRejection,C=B;if(this.#q[$]===B&&(!w||!H&&C.__staleWhileFetching===void 0?this.#H(Z,"fetch"):k||(this.#q[$]=C.__staleWhileFetching)),f)return Q.status&&C.__staleWhileFetching!==void 0&&(Q.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw x},N=(x,H)=>{let U=this.#b?.(Z,Y,_);W.signal.addEventListener("abort",()=>{(!Q.ignoreFetchAbort||Q.allowStaleOnFetchAbort)&&(x(void 0),Q.allowStaleOnFetchAbort&&(x=(k)=>I(k,!0)))}),U&&U instanceof Promise?U.then((k)=>x(k===void 0?void 0:k),H):U!==void 0&&x(U)};Q.status&&(Q.status.fetchDispatched=!0);let B=new Promise(N).then(I,J),G=Object.assign(B,{__abortController:W,__staleWhileFetching:Y,__returned:void 0});return $===void 0?(this.#R(Z,G,{..._.options,status:void 0}),$=this.#Y.get(Z)):this.#q[$]=G,G}#$(Z){if(!this.#u)return!1;let $=Z;return!!$&&$ instanceof Promise&&$.hasOwnProperty("__staleWhileFetching")&&$.__abortController instanceof AbortController}fetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#p(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#p(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,ttl:W=this.ttl,noDisposeOnSet:z=this.noDisposeOnSet,size:_=0,sizeCalculation:I=this.sizeCalculation,noUpdateTTL:J=this.noUpdateTTL,noDeleteOnFetchRejection:F=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:N=this.allowStaleOnFetchRejection,ignoreFetchAbort:B=this.ignoreFetchAbort,allowStaleOnFetchAbort:G=this.allowStaleOnFetchAbort,context:x,forceRefresh:H=!1,status:U,signal:k}=$;if(U&&(U.op="fetch",U.key=Z,H&&(U.forceRefresh=!0),U.cache=this),!this.#u)return U&&(U.fetch="get"),this.#j(Z,{allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,status:U});let f={allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,ttl:W,noDisposeOnSet:z,size:_,sizeCalculation:I,noUpdateTTL:J,noDeleteOnFetchRejection:F,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:G,ignoreFetchAbort:B,status:U,signal:k},w=this.#Y.get(Z);if(w===void 0){U&&(U.fetch="miss");let C=this.#h(Z,w,f,x);return C.__returned=C}else{let C=this.#q[w];if(this.#$(C)){let c=Q&&C.__staleWhileFetching!==void 0;return U&&(U.fetch="inflight",c&&(U.returnedStale=!0)),c?C.__staleWhileFetching:C.__returned=C}let i=this.#x(w);if(!H&&!i)return U&&(U.fetch="hit"),this.#M(w),K&&this.#S(w),U&&this.#k(U,w),C;let g=this.#h(Z,w,f,x),Yq=g.__staleWhileFetching!==void 0&&Q;return U&&(U.fetch=i?"stale":"refresh",Yq&&i&&(U.returnedStale=!0)),Yq?g.__staleWhileFetching:g.__returned=g}}forceFetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#o(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#o(Z,$={}){let Q=await this.#p(Z,$);if(Q===void 0)throw Error("fetch() returned undefined");return Q}memo(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="memo",Q.key=Z,$.context&&(Q.context=$.context),Q.cache=this);let K=this.#t(Z,$);return Q&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#t(Z,$={}){let Q=this.#v;if(!Q)throw Error("no memoMethod provided to constructor");let{context:K,status:Y,forceRefresh:W,...z}=$;Y&&W&&(Y.forceRefresh=!0);let _=this.#j(Z,z),I=W||_===void 0;if(Y&&(Y.memo=I?"miss":"hit",I||(Y.value=_)),!I)return _;let J=Q(Z,_,{options:z,context:K});return Y&&(Y.value=J),this.#R(Z,J,z),J}get(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="get",Q.key=Z,Q.cache=this);let K=this.#j(Z,$);return Q&&(K!==void 0&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q)),K}#j(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,status:W}=$,z=this.#Y.get(Z);if(z===void 0){W&&(W.get="miss");return}let _=this.#q[z],I=this.#$(_);return W&&this.#k(W,z),this.#x(z)?I?(W&&(W.get="stale-fetching"),Q&&_.__staleWhileFetching!==void 0?(W&&(W.returnedStale=!0),_.__staleWhileFetching):void 0):(Y||this.#H(Z,"expire"),W&&(W.get="stale"),Q?(W&&(W.returnedStale=!0),_):void 0):(W&&(W.get=I?"fetching":"hit"),this.#M(z),K&&this.#S(z),I?_.__staleWhileFetching:_)}#n(Z,$){this.#X[$]=Z,this.#J[Z]=$}#M(Z){Z!==this.#z&&(Z===this.#B?this.#B=this.#J[Z]:this.#n(this.#X[Z],this.#J[Z]),this.#n(this.#z,Z),this.#z=Z)}delete(Z){return this.#H(Z,"delete")}#H(Z,$){A.metrics.hasSubscribers&&A.metrics.publish({op:"delete",delete:$,key:Z,cache:this});let Q=!1;if(this.#W!==0){let K=this.#Y.get(Z);if(K!==void 0)if(this.#F?.[K]&&(clearTimeout(this.#F?.[K]),this.#F[K]=void 0),Q=!0,this.#W===1)this.#a($);else{this.#T(K);let Y=this.#q[K];if(this.#$(Y)?Y.__abortController.abort(Error("deleted")):(this.#A||this.#V)&&(this.#A&&this.#Z?.(Y,Z,$),this.#V&&this.#_?.push([Y,Z,$])),this.#Y.delete(Z),this.#Q[K]=void 0,this.#q[K]=void 0,K===this.#z)this.#z=this.#X[K];else if(K===this.#B)this.#B=this.#J[K];else{let W=this.#X[K];this.#J[W]=this.#J[K];let z=this.#J[K];this.#X[z]=this.#X[K]}this.#W--,this.#L.push(K)}}if(this.#V&&this.#_?.length){let K=this.#_,Y;for(;Y=K?.shift();)this.#D?.(...Y)}return Q}clear(){return this.#a("delete")}#a(Z){for(let $ of this.#E({allowStale:!0})){let Q=this.#q[$];if(this.#$(Q))Q.__abortController.abort(Error("deleted"));else{let K=this.#Q[$];this.#A&&this.#Z?.(Q,K,Z),this.#V&&this.#_?.push([Q,K,Z])}}if(this.#Y.clear(),this.#q.fill(void 0),this.#Q.fill(void 0),this.#O&&this.#P){this.#O.fill(0),this.#P.fill(0);for(let $ of this.#F??[])$!==void 0&&clearTimeout($);this.#F?.fill(void 0)}if(this.#G&&this.#G.fill(0),this.#B=0,this.#z=0,this.#L.length=0,this.#N=0,this.#W=0,this.#V&&this.#_){let $=this.#_,Q;for(;Q=$?.shift();)this.#D?.(...Q)}}};m1.LRUCache=P5});var s1=O((e6,i1)=>{var L=(...q)=>q.every((Z)=>Z)?q.join(""):"",E=(q)=>q?encodeURIComponent(q):"",a1=(q)=>q.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),A5={sshtemplate:({domain:q,user:Z,project:$,committish:Q})=>`git@${q}:${Z}/${$}.git${L("#",Q)}`,sshurltemplate:({domain:q,user:Z,project:$,committish:Q})=>`git+ssh://git@${q}/${Z}/${$}.git${L("#",Q)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K,path:Y})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y)}`,browsetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q))}`,browsetreetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,browseblobtemplate:({domain:q,user:Z,project:$,committish:Q,blobpath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,docstemplate:({domain:q,user:Z,project:$,treepath:Q,committish:K})=>`https://${q}/${Z}/${$}${L("/",Q,"/",E(K))}#readme`,httpstemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git+https://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/raw/${E(Q||"HEAD")}/${K}`,shortcuttemplate:({type:q,user:Z,project:$,committish:Q})=>`${q}:${Z}/${$}${L("#",Q)}`,pathtemplate:({user:q,project:Z,committish:$})=>`${q}/${Z}${L("#",$)}`,bugstemplate:({domain:q,user:Z,project:$})=>`https://${q}/${Z}/${$}/issues`,hashformat:a1},l={};l.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:q,user:Z,project:$,committish:Q,path:K})=>`https://${L(q,"@")}raw.githubusercontent.com/${Z}/${$}/${E(Q||"HEAD")}/${K}`,gittemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://codeload.${q}/${Z}/${$}/tar.gz/${E(Q||"HEAD")}`,extract:(q)=>{let[,Z,$,Q,K]=q.pathname.split("/",5);if(Q&&Q!=="tree")return;if(!Q)K=q.hash.slice(1);if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:K}}};l.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,editpath:W})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y,W)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/get/${E(Q||"HEAD")}.tar.gz`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["get"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};l.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/api/v4/projects/${E(Z+"/"+$)}/repository/archive.tar.gz?sha=${E(Q||"HEAD")}`,extract:(q)=>{let Z=q.pathname.slice(1);if(Z.includes("/-/")||Z.includes("/archive.tar.gz"))return;let $=Z.split("/"),Q=$.pop();if(Q.endsWith(".git"))Q=Q.slice(0,-4);let K=$.join("/");if(!K||!Q)return;return{user:K,project:Q,committish:q.hash.slice(1)}}};l.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:q,project:Z,committish:$})=>`git@${q}:${Z}.git${L("#",$)}`,sshurltemplate:({domain:q,project:Z,committish:$})=>`git+ssh://git@${q}/${Z}.git${L("#",$)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K})=>`https://${q}/${Z}/${$}${L("/",E(Q))}/${K}`,browsetemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,browsetreetemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,browseblobtemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,docstemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,httpstemplate:({domain:q,project:Z,committish:$})=>`git+https://${q}/${Z}.git${L("#",$)}`,filetemplate:({user:q,project:Z,committish:$,path:Q})=>`https://gist.githubusercontent.com/${q}/${Z}/raw${L("/",E($))}/${Q}`,shortcuttemplate:({type:q,project:Z,committish:$})=>`${q}:${Z}${L("#",$)}`,pathtemplate:({project:q,committish:Z})=>`${q}${L("#",Z)}`,bugstemplate:({domain:q,project:Z})=>`https://${q}/${Z}`,gittemplate:({domain:q,project:Z,committish:$})=>`git://${q}/${Z}.git${L("#",$)}`,tarballtemplate:({project:q,committish:Z})=>`https://codeload.github.com/gist/${q}/tar.gz/${E(Z||"HEAD")}`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(Q==="raw")return;if(!$){if(!Z)return;$=Z,Z=null}if($.endsWith(".git"))$=$.slice(0,-4);return{user:Z,project:$,committish:q.hash.slice(1)}},hashformat:function(q){return q&&"file-"+a1(q)}};l.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/blob/${E(Q)||"HEAD"}/${K}`,httpstemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}${L("#",Q)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/archive/${E(Q)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["archive"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};for(let[q,Z]of Object.entries(l))l[q]=Object.assign({},A5,Z);i1.exports=l});var lq=O((q7,o1)=>{var C5=n("url"),hq=(q,Z,$)=>{let Q=q.indexOf($);return q.lastIndexOf(Z,Q>-1?Q:1/0)},r1=(q)=>{try{return new C5.URL(q)}catch{}},E5=(q,Z)=>{let $=q.indexOf(":"),Q=q.slice(0,$+1);if(Object.prototype.hasOwnProperty.call(Z,Q))return q;if(q.substr($,3)==="://")return q;let K=q.indexOf("@");if(K>-1)if(K>$)return`git+ssh://${q}`;else return q;return`${q.slice(0,$+1)}//${q.slice($+1)}`},H5=(q)=>{let Z=hq(q,"@","#"),$=hq(q,":","#");if($>Z)q=q.slice(0,$)+"/"+q.slice($+1);if(hq(q,":","#")===-1&&q.indexOf("//")===-1)q=`git+ssh://${q}`;return q};o1.exports=(q,Z)=>{let $=Z?E5(q,Z):q;return r1($)||r1(H5($))}});var e1=O((Z7,t1)=>{var k5=lq(),R5=(q)=>{let Z=q.indexOf("#"),$=q.indexOf("/"),Q=q.indexOf("/",$+1),K=q.indexOf(":"),Y=/\s/.exec(q),W=q.indexOf("@"),z=!Y||Z>-1&&Y.index>Z,_=W===-1||Z>-1&&W>Z,I=K===-1||Z>-1&&K>Z,J=Q===-1||Z>-1&&Q>Z,F=$>0,N=Z>-1?q[Z-1]!=="/":!q.endsWith("/"),B=!q.startsWith(".");return z&&F&&N&&B&&_&&I&&J};t1.exports=(q,Z,{gitHosts:$,protocols:Q})=>{if(!q)return;let K=R5(q)?`github:${q}`:q,Y=k5(K,Q);if(!Y)return;let W=$.byShortcut[Y.protocol],z=$.byDomain[Y.hostname.startsWith("www.")?Y.hostname.slice(4):Y.hostname],_=W||z;if(!_)return;let I=$[W||z],J=null;if(Q[Y.protocol]?.auth&&(Y.username||Y.password))J=`${Y.username}${Y.password?":"+Y.password:""}`;let F=null,N=null,B=null,G=null;try{if(W){let x=Y.pathname.startsWith("/")?Y.pathname.slice(1):Y.pathname,H=x.indexOf("@");if(H>-1)x=x.slice(H+1);let U=x.lastIndexOf("/");if(U>-1){if(N=decodeURIComponent(x.slice(0,U)),!N)N=null;B=decodeURIComponent(x.slice(U+1))}else B=decodeURIComponent(x);if(B.endsWith(".git"))B=B.slice(0,-4);if(Y.hash)F=decodeURIComponent(Y.hash.slice(1));G="shortcut"}else{if(!I.protocols.includes(Y.protocol))return;let x=I.extract(Y);if(!x)return;N=x.user&&decodeURIComponent(x.user),B=decodeURIComponent(x.project),F=decodeURIComponent(x.committish),G=Q[Y.protocol]?.name||Y.protocol.slice(0,-1)}}catch(x){if(x instanceof URIError)return;else throw x}return[_,N,J,B,F,G,Z]}});var Z8=O(($7,q8)=>{var{LRUCache:y5}=n1(),w5=s1(),S5=e1(),T5=lq(),gq=new y5({max:1000});function j5(q){try{let{protocol:Z,hostname:$,pathname:Q}=new URL(q);if(!$)return null;let K=/(?:git\+)http:$/.test(Z)?"http:":"https:",Y=Q.replace(/\.git$/,"");return`${K}//${$}${Y}`}catch{return null}}class j{constructor(q,Z,$,Q,K,Y,W={}){Object.assign(this,j.#K[q],{type:q,user:Z,auth:$,project:Q,committish:K,default:Y,opts:W})}static#K={byShortcut:{},byDomain:{}};static#I={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(q,Z){j.#K[q]=Z,j.#K.byDomain[Z.domain]=q,j.#K.byShortcut[`${q}:`]=q,j.#I[`${q}:`]={name:q}}static fromUrl(q,Z){if(typeof q!=="string")return;let $=q+JSON.stringify(Z||{});if(!gq.has($)){let Q=S5(q,Z,{gitHosts:j.#K,protocols:j.#I});gq.set($,Q?new j(...Q):void 0)}return gq.get($)}static fromManifest(q,Z={}){if(!q||typeof q!=="object")return;let $=q.repository,Q=$&&(typeof $==="string"?$:typeof $==="object"&&typeof $.url==="string"?$.url:null);if(!Q)throw Error("no repository");let K=Q&&j.fromUrl(Q.replace(/^git\+/,""),Z)||null;if(K)return K;let Y=j5(Q);return j.fromUrl(Y,Z)||Y}static parseUrl(q){return T5(q)}#Z(q,Z){if(typeof q!=="function")return null;let $={...this,...this.opts,...Z};if(!$.path)$.path="";if($.path.startsWith("/"))$.path=$.path.slice(1);if($.noCommittish)$.committish=null;let Q=q($);return $.noGitPlus&&Q.startsWith("git+")?Q.slice(4):Q}hash(){return this.committish?`#${this.committish}`:""}ssh(q){return this.#Z(this.sshtemplate,q)}sshurl(q){return this.#Z(this.sshurltemplate,q)}browse(q,...Z){if(typeof q!=="string")return this.#Z(this.browsetemplate,q);if(typeof Z[0]!=="string")return this.#Z(this.browsetreetemplate,{...Z[0],path:q});return this.#Z(this.browsetreetemplate,{...Z[1],fragment:Z[0],path:q})}browseFile(q,...Z){if(typeof Z[0]!=="string")return this.#Z(this.browseblobtemplate,{...Z[0],path:q});return this.#Z(this.browseblobtemplate,{...Z[1],fragment:Z[0],path:q})}docs(q){return this.#Z(this.docstemplate,q)}bugs(q){return this.#Z(this.bugstemplate,q)}https(q){return this.#Z(this.httpstemplate,q)}git(q){return this.#Z(this.gittemplate,q)}shortcut(q){return this.#Z(this.shortcuttemplate,q)}path(q){return this.#Z(this.pathtemplate,q)}tarball(q){return this.#Z(this.tarballtemplate,{...q,noCommittish:!1})}file(q,Z){return this.#Z(this.filetemplate,{...Z,path:q})}edit(q,Z){return this.#Z(this.edittemplate,{...Z,path:q})}getDefaultRepresentation(){return this.default}toString(q){if(this.default&&typeof this[this.default]==="function")return this[this.default](q);return this.sshurl(q)}}for(let[q,Z]of Object.entries(w5))j.addHost(q,Z);q8.exports=j});var $8=O((Q7,M5)=>{M5.exports=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib","node:sea","node:sqlite","node:test","node:test/reporters"]});var K8=O((K7,Q8)=>{var b5=$8(),v5=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),u5=["node_modules","favicon.ico"];function f5(q){var Z=[],$=[];if(q===null)return $.push("name cannot be null"),Zq(Z,$);if(q===void 0)return $.push("name cannot be undefined"),Zq(Z,$);if(typeof q!=="string")return $.push("name must be a string"),Zq(Z,$);if(!q.length)$.push("name length must be greater than zero");if(q.startsWith("."))$.push("name cannot start with a period");if(q.startsWith("-"))$.push("name cannot start with a hyphen");if(q.match(/^_/))$.push("name cannot start with an underscore");if(q.trim()!==q)$.push("name cannot contain leading or trailing spaces");if(u5.forEach(function(W){if(q.toLowerCase()===W)$.push(W+" is not a valid package name")}),b5.includes(q.toLowerCase()))Z.push(q+" is a core module name");if(q.length>214)Z.push("name can no longer contain more than 214 characters");if(q.toLowerCase()!==q)Z.push("name can no longer contain capital letters");if(/[~'!()*]/.test(q.split("/").slice(-1)[0]))Z.push(`name can no longer contain special characters ("~'!()*")`);if(encodeURIComponent(q)!==q){var Q=q.match(v5);if(Q){var K=Q[1],Y=Q[2];if(Y.startsWith("."))$.push("name cannot start with a period");if(encodeURIComponent(K)===K&&encodeURIComponent(Y)===Y)return Zq(Z,$)}$.push("name can only contain URL-friendly characters")}return Zq(Z,$)}var Zq=function(q,Z){var $={validForNewPackages:Z.length===0&&q.length===0,validForOldPackages:Z.length===0,warnings:q,errors:Z};if(!$.warnings.length)delete $.warnings;if(!$.errors.length)delete $.errors;return $};Q8.exports=f5});var K6=O((Y7,Kq)=>{var Qq=process.platform==="win32",{URL:cq}=n("url"),a=Qq?n("path/win32"):n("path"),{homedir:d5}=n("os"),h5=Z8(),Y8=u1(),_8=K8(),{log:l5}=d1(),I8=Qq?/\\|[/]/:/[/]/,B8=/^(?:git[+])?[a-z]+:/i,g5=/^[^@]+@[^:.]+\.[^:]+:.+$/i,pq=/[.](?:tgz|tar\.gz|tar)$/i,c5=/:[0-9]+(\/|$)/i,m5=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,p5=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function $q(q,Z){let $,Q;if(typeof q==="object")if(q instanceof Lq&&(!Z||Z===q.where))return q;else if(q.name&&q.rawSpec)return $q.resolve(q.name,q.rawSpec,Z||q.where);else return $q(q.raw,Z||q.where);let K=q.indexOf("@",1),Y=K>0?q.slice(0,K):q;if(B8.test(q))Q=q;else if(g5.test(q))Q=`git+ssh://${q}`;else if(!Y.startsWith("@")&&(I8.test(Y)||pq.test(Y)))Q=q;else if(K>0)$=Y,Q=q.slice(K+1)||"*";else if(_8(q).validForOldPackages)$=q,Q="*";else Q=q;return J8($,Q,Z,q)}function n5(q){if(!q)return!1;if(q.toLowerCase().startsWith("file:"))return!0;if(Qq)return m5.test(q);return p5.test(q)}function a5(q){if(!q)return!1;return q.toLowerCase().startsWith("npm:")}function J8(q,Z,$,Q){let K=new Lq({raw:Q,name:q,rawSpec:Z,fromArgument:Q!=null});if(q)K.name=q;if(!$)$=process.cwd();if(n5(Z))return z8(K,$);else if(a5(Z))return $6(K,$);let Y=h5.fromUrl(Z,{noGitPlus:!0,noCommittish:!0});if(Y)return e5(K,Y);else if(Z&&B8.test(Z))return Z6(K);else if(Z&&(I8.test(Z)||pq.test(Z)))return z8(K,$);else return Q6(K)}function i5(q,Z="https://registry.npmjs.org"){let $=$q(q);if($.type!=="version")throw o5($.type,$.raw);let Q="pkg:npm/"+$.name.replace(/^@/,"%40")+"@"+$.rawSpec;if(Z!=="https://registry.npmjs.org")Q+="?repository_url="+Z;return Q}function s5(q,Z,$){let Q=Error(`Invalid package name "${q}" of package "${$}": ${Z.errors.join("; ")}.`);return Q.code="EINVALIDPACKAGENAME",Q}function r5(q,Z){let $=Error(`Invalid tag name "${q}" of package "${Z}": Tags may not have any characters that encodeURIComponent encodes.`);return $.code="EINVALIDTAGNAME",$}function o5(q,Z){let $=Error(`Invalid type "${q}" of package "${Z}": Purl can only be generated for "version" types.`);return $.code="EINVALIDPURLTYPE",$}class Lq{constructor(q){if(this.type=q.type,this.registry=q.registry,this.where=q.where,q.raw==null)this.raw=q.name?`${q.name}@${q.rawSpec}`:q.rawSpec;else this.raw=q.raw;if(this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=q.rawSpec||"",this.saveSpec=q.saveSpec,this.fetchSpec=q.fetchSpec,q.name)this.setName(q.name);this.gitRange=q.gitRange,this.gitCommittish=q.gitCommittish,this.gitSubdir=q.gitSubdir,this.hosted=q.hosted}setName(q){let Z=_8(q);if(!Z.validForOldPackages)throw s5(q,Z,this.raw);return this.name=q,this.scope=q[0]==="@"?q.slice(0,q.indexOf("/")):void 0,this.escapedName=q.replace("/","%2f"),this}toString(){let q=[];if(this.name!=null&&this.name!=="")q.push(this.name);let Z=this.saveSpec||this.fetchSpec||this.rawSpec;if(Z!=null&&Z!=="")q.push(Z);return q.length?q.join("@"):this.raw}toJSON(){let q=Object.assign({},this);return delete q.hosted,q}}function mq(q,Z){if(!Z){q.gitCommittish=null;return}for(let $ of Z.split("::")){if(!$.includes(":")){if(q.gitRange)throw Error("cannot override existing semver range with a committish");if(q.gitCommittish)throw Error("cannot override existing committish with a second committish");q.gitCommittish=$;continue}let[Q,K]=$.split(":");if(Q==="semver"){if(q.gitCommittish)throw Error("cannot override existing committish with a semver range");if(q.gitRange)throw Error("cannot override existing semver range with a second semver range");q.gitRange=decodeURIComponent(K);continue}if(Q==="path"){if(q.gitSubdir)throw Error("cannot override existing path with a second path");q.gitSubdir=`/${K}`;continue}l5.warn("npm-package-arg",`ignoring unknown key "${Q}"`)}}var t5=new Map([["\x00","%00"],["\t","%09"],[`
|
|
2
|
+
import{DP as O,GP as n}from"./chunk-s2za1y84.js";var m=O((Y6,nq)=>{var V8=Number.MAX_SAFE_INTEGER||9007199254740991,X8=["major","premajor","minor","preminor","patch","prepatch","prerelease"];nq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:V8,RELEASE_TYPES:X8,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var s=O((W6,aq)=>{var O8=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};aq.exports=O8});var p=O((u,iq)=>{var{MAX_SAFE_COMPONENT_LENGTH:Aq,MAX_SAFE_BUILD_LENGTH:F8,MAX_LENGTH:x8}=m(),D8=s();u=iq.exports={};var U8=u.re=[],N8=u.safeRe=[],V=u.src=[],L8=u.safeSrc=[],X=u.t={},G8=0,Cq="[a-zA-Z0-9-]",P8=[["\\s",1],["\\d",x8],[Cq,F8]],A8=(q)=>{for(let[Z,$]of P8)q=q.split(`${Z}*`).join(`${Z}{0,${$}}`).split(`${Z}+`).join(`${Z}{1,${$}}`);return q},D=(q,Z,$)=>{let Q=A8(Z),K=G8++;D8(q,K,Z),X[q]=K,V[K]=Z,L8[K]=Q,U8[K]=new RegExp(Z,$?"g":void 0),N8[K]=new RegExp(Q,$?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Cq}*`);D("MAINVERSION",`(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})\\.(${V[X.NUMERICIDENTIFIER]})`);D("MAINVERSIONLOOSE",`(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})\\.(${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASEIDENTIFIER",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIER]})`);D("PRERELEASEIDENTIFIERLOOSE",`(?:${V[X.NONNUMERICIDENTIFIER]}|${V[X.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASE",`(?:-(${V[X.PRERELEASEIDENTIFIER]}(?:\\.${V[X.PRERELEASEIDENTIFIER]})*))`);D("PRERELEASELOOSE",`(?:-?(${V[X.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[X.PRERELEASEIDENTIFIERLOOSE]})*))`);D("BUILDIDENTIFIER",`${Cq}+`);D("BUILD",`(?:\\+(${V[X.BUILDIDENTIFIER]}(?:\\.${V[X.BUILDIDENTIFIER]})*))`);D("FULLPLAIN",`v?${V[X.MAINVERSION]}${V[X.PRERELEASE]}?${V[X.BUILD]}?`);D("FULL",`^${V[X.FULLPLAIN]}$`);D("LOOSEPLAIN",`[v=\\s]*${V[X.MAINVERSIONLOOSE]}${V[X.PRERELEASELOOSE]}?${V[X.BUILD]}?`);D("LOOSE",`^${V[X.LOOSEPLAIN]}$`);D("GTLT","((?:<|>)?=?)");D("XRANGEIDENTIFIERLOOSE",`${V[X.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);D("XRANGEIDENTIFIER",`${V[X.NUMERICIDENTIFIER]}|x|X|\\*`);D("XRANGEPLAIN",`[v=\\s]*(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:\\.(${V[X.XRANGEIDENTIFIER]})(?:${V[X.PRERELEASE]})?${V[X.BUILD]}?)?)?`);D("XRANGEPLAINLOOSE",`[v=\\s]*(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[X.XRANGEIDENTIFIERLOOSE]})(?:${V[X.PRERELEASELOOSE]})?${V[X.BUILD]}?)?)?`);D("XRANGE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAIN]}$`);D("XRANGELOOSE",`^${V[X.GTLT]}\\s*${V[X.XRANGEPLAINLOOSE]}$`);D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Aq}})(?:\\.(\\d{1,${Aq}}))?(?:\\.(\\d{1,${Aq}}))?`);D("COERCE",`${V[X.COERCEPLAIN]}(?:$|[^\\d])`);D("COERCEFULL",V[X.COERCEPLAIN]+`(?:${V[X.PRERELEASE]})?(?:${V[X.BUILD]})?(?:$|[^\\d])`);D("COERCERTL",V[X.COERCE],!0);D("COERCERTLFULL",V[X.COERCEFULL],!0);D("LONETILDE","(?:~>?)");D("TILDETRIM",`(\\s*)${V[X.LONETILDE]}\\s+`,!0);u.tildeTrimReplace="$1~";D("TILDE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAIN]}$`);D("TILDELOOSE",`^${V[X.LONETILDE]}${V[X.XRANGEPLAINLOOSE]}$`);D("LONECARET","(?:\\^)");D("CARETTRIM",`(\\s*)${V[X.LONECARET]}\\s+`,!0);u.caretTrimReplace="$1^";D("CARET",`^${V[X.LONECARET]}${V[X.XRANGEPLAIN]}$`);D("CARETLOOSE",`^${V[X.LONECARET]}${V[X.XRANGEPLAINLOOSE]}$`);D("COMPARATORLOOSE",`^${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]})$|^$`);D("COMPARATOR",`^${V[X.GTLT]}\\s*(${V[X.FULLPLAIN]})$|^$`);D("COMPARATORTRIM",`(\\s*)${V[X.GTLT]}\\s*(${V[X.LOOSEPLAIN]}|${V[X.XRANGEPLAIN]})`,!0);u.comparatorTrimReplace="$1$2$3";D("HYPHENRANGE",`^\\s*(${V[X.XRANGEPLAIN]})\\s+-\\s+(${V[X.XRANGEPLAIN]})\\s*$`);D("HYPHENRANGELOOSE",`^\\s*(${V[X.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[X.XRANGEPLAINLOOSE]})\\s*$`);D("STAR","(<|>)?=?\\s*\\*");D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Wq=O((z6,sq)=>{var C8=Object.freeze({loose:!0}),E8=Object.freeze({}),H8=(q)=>{if(!q)return E8;if(typeof q!=="object")return C8;return q};sq.exports=H8});var Eq=O((_6,tq)=>{var rq=/^[0-9]+$/,oq=(q,Z)=>{if(typeof q==="number"&&typeof Z==="number")return q===Z?0:q<Z?-1:1;let $=rq.test(q),Q=rq.test(Z);if($&&Q)q=+q,Z=+Z;return q===Z?0:$&&!Q?-1:Q&&!$?1:q<Z?-1:1},k8=(q,Z)=>oq(Z,q);tq.exports={compareIdentifiers:oq,rcompareIdentifiers:k8}});var R=O((I6,q0)=>{var zq=s(),{MAX_LENGTH:eq,MAX_SAFE_INTEGER:_q}=m(),{safeRe:Iq,t:Bq}=p(),R8=Wq(),{compareIdentifiers:Hq}=Eq(),y8=(q,Z)=>{let $=Z.split(".");if($.length>q.length)return!1;for(let Q=0;Q<$.length;Q++)if(Hq(q[Q],$[Q])!==0)return!1;return!0};class v{constructor(q,Z){if(Z=R8(Z),q instanceof v)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>eq)throw TypeError(`version is longer than ${eq} characters`);zq("SemVer",q,Z),this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease;let $=q.trim().match(Z.loose?Iq[Bq.LOOSE]:Iq[Bq.FULL]);if(!$)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+$[1],this.minor=+$[2],this.patch=+$[3],this.major>_q||this.major<0)throw TypeError("Invalid major version");if(this.minor>_q||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>_q||this.patch<0)throw TypeError("Invalid patch version");if(!$[4])this.prerelease=[];else this.prerelease=$[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let K=+Q;if(K>=0&&K<_q)return K}return Q});this.build=$[5]?$[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(zq("SemVer.compare",this.version,this.options,q),!(q instanceof v)){if(typeof q==="string"&&q===this.version)return 0;q=new v(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof v))q=new v(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof v))q=new v(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let Z=0;do{let $=this.prerelease[Z],Q=q.prerelease[Z];if(zq("prerelease compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}compareBuild(q){if(!(q instanceof v))q=new v(q,this.options);let Z=0;do{let $=this.build[Z],Q=q.build[Z];if(zq("build compare",Z,$,Q),$===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if($===void 0)return-1;else if($===Q)continue;else return Hq($,Q)}while(++Z)}inc(q,Z,$){if(q.startsWith("pre")){if(!Z&&$===!1)throw Error("invalid increment argument: identifier is empty");if(Z){let Q=`-${Z}`.match(this.options.loose?Iq[Bq.PRERELEASELOOSE]:Iq[Bq.PRERELEASE]);if(!Q||Q[1]!==Z)throw Error(`invalid identifier: ${Z}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",Z,$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",Z,$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",Z,$),this.inc("pre",Z,$);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",Z,$);this.inc("pre",Z,$);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number($)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let K=this.prerelease.length;while(--K>=0)if(typeof this.prerelease[K]==="number")this.prerelease[K]++,K=-2;if(K===-1){if(Z===this.prerelease.join(".")&&$===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if(Z){let K=[Z,Q];if($===!1)K=[Z];if(y8(this.prerelease,Z)){let Y=this.prerelease[Z.split(".").length];if(isNaN(Y))this.prerelease=K}else this.prerelease=K}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}q0.exports=v});var d=O((B6,$0)=>{var Z0=R(),w8=(q,Z,$=!1)=>{if(q instanceof Z0)return q;try{return new Z0(q,Z)}catch(Q){if(!$)return null;throw Q}};$0.exports=w8});var K0=O((J6,Q0)=>{var S8=d(),T8=(q,Z)=>{let $=S8(q,Z);return $?$.version:null};Q0.exports=T8});var W0=O((V6,Y0)=>{var j8=d(),M8=(q,Z)=>{let $=j8(q.trim().replace(/^[=v]+/,""),Z);return $?$.version:null};Y0.exports=M8});var I0=O((X6,_0)=>{var z0=R(),b8=(q,Z,$,Q,K)=>{if(typeof $==="string")K=Q,Q=$,$=void 0;try{return new z0(q instanceof z0?q.version:q,$).inc(Z,Q,K).version}catch(Y){return null}};_0.exports=b8});var V0=O((O6,J0)=>{var B0=d(),v8=(q,Z)=>{let $=B0(q,null,!0),Q=B0(Z,null,!0),K=$.compare(Q);if(K===0)return null;let Y=K>0,W=Y?$:Q,z=Y?Q:$,_=!!W.prerelease.length;if(!!z.prerelease.length&&!_){if(!z.patch&&!z.minor)return"major";if(z.compareMain(W)===0){if(z.minor&&!z.patch)return"minor";return"patch"}}let J=_?"pre":"";if($.major!==Q.major)return J+"major";if($.minor!==Q.minor)return J+"minor";if($.patch!==Q.patch)return J+"patch";return"prerelease"};J0.exports=v8});var O0=O((F6,X0)=>{var u8=R(),f8=(q,Z)=>new u8(q,Z).major;X0.exports=f8});var x0=O((x6,F0)=>{var d8=R(),h8=(q,Z)=>new d8(q,Z).minor;F0.exports=h8});var U0=O((D6,D0)=>{var l8=R(),g8=(q,Z)=>new l8(q,Z).patch;D0.exports=g8});var L0=O((U6,N0)=>{var c8=d(),m8=(q,Z)=>{let $=c8(q,Z);return $&&$.prerelease.length?$.prerelease:null};N0.exports=m8});var M=O((N6,P0)=>{var G0=R(),p8=(q,Z,$)=>new G0(q,$).compare(new G0(Z,$));P0.exports=p8});var C0=O((L6,A0)=>{var n8=M(),a8=(q,Z,$)=>n8(Z,q,$);A0.exports=a8});var H0=O((G6,E0)=>{var i8=M(),s8=(q,Z)=>i8(q,Z,!0);E0.exports=s8});var Jq=O((P6,R0)=>{var k0=R(),r8=(q,Z,$)=>{let Q=new k0(q,$),K=new k0(Z,$);return Q.compare(K)||Q.compareBuild(K)};R0.exports=r8});var w0=O((A6,y0)=>{var o8=Jq(),t8=(q,Z)=>q.sort(($,Q)=>o8($,Q,Z));y0.exports=t8});var T0=O((C6,S0)=>{var e8=Jq(),q9=(q,Z)=>q.sort(($,Q)=>e8(Q,$,Z));S0.exports=q9});var r=O((E6,j0)=>{var Z9=M(),$9=(q,Z,$)=>Z9(q,Z,$)>0;j0.exports=$9});var Vq=O((H6,M0)=>{var Q9=M(),K9=(q,Z,$)=>Q9(q,Z,$)<0;M0.exports=K9});var kq=O((k6,b0)=>{var Y9=M(),W9=(q,Z,$)=>Y9(q,Z,$)===0;b0.exports=W9});var Rq=O((R6,v0)=>{var z9=M(),_9=(q,Z,$)=>z9(q,Z,$)!==0;v0.exports=_9});var Xq=O((y6,u0)=>{var I9=M(),B9=(q,Z,$)=>I9(q,Z,$)>=0;u0.exports=B9});var Oq=O((w6,f0)=>{var J9=M(),V9=(q,Z,$)=>J9(q,Z,$)<=0;f0.exports=V9});var yq=O((S6,d0)=>{var X9=kq(),O9=Rq(),F9=r(),x9=Xq(),D9=Vq(),U9=Oq(),N9=(q,Z,$,Q)=>{switch(Z){case"===":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q===$;case"!==":if(typeof q==="object")q=q.version;if(typeof $==="object")$=$.version;return q!==$;case"":case"=":case"==":return X9(q,$,Q);case"!=":return O9(q,$,Q);case">":return F9(q,$,Q);case">=":return x9(q,$,Q);case"<":return D9(q,$,Q);case"<=":return U9(q,$,Q);default:throw TypeError(`Invalid operator: ${Z}`)}};d0.exports=N9});var l0=O((T6,h0)=>{var L9=R(),G9=d(),{safeRe:Fq,t:xq}=p(),P9=(q,Z)=>{if(q instanceof L9)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;Z=Z||{};let $=null;if(!Z.rtl)$=q.match(Z.includePrerelease?Fq[xq.COERCEFULL]:Fq[xq.COERCE]);else{let _=Z.includePrerelease?Fq[xq.COERCERTLFULL]:Fq[xq.COERCERTL],I;while((I=_.exec(q))&&(!$||$.index+$[0].length!==q.length)){if(!$||I.index+I[0].length!==$.index+$[0].length)$=I;_.lastIndex=I.index+I[1].length+I[2].length}_.lastIndex=-1}if($===null)return null;let Q=$[2],K=$[3]||"0",Y=$[4]||"0",W=Z.includePrerelease&&$[5]?`-${$[5]}`:"",z=Z.includePrerelease&&$[6]?`+${$[6]}`:"";return G9(`${Q}.${K}.${Y}${W}${z}`,Z)};h0.exports=P9});var c0=O((j6,g0)=>{var A9=d(),C9=m(),E9=R(),H9=(q,Z,$)=>{if(!C9.RELEASE_TYPES.includes(Z))return null;let Q=k9(q,$);return Q&&R9(Q,Z)},k9=(q,Z)=>{let $=q instanceof E9?q.version:q;return A9($,Z)},R9=(q,Z)=>{if(y9(Z))return q.version;switch(q.prerelease=[],Z){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},y9=(q)=>{return q.startsWith("pre")};g0.exports=H9});var n0=O((M6,p0)=>{class m0{constructor(){this.max=1000,this.map=new Map}get(q){let Z=this.map.get(q);if(Z===void 0)return;else return this.map.delete(q),this.map.set(q,Z),Z}delete(q){return this.map.delete(q)}set(q,Z){if(!this.delete(q)&&Z!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,Z)}return this}}p0.exports=m0});var b=O((b6,r0)=>{var w9=/\s+/g;class o{constructor(q,Z){if(Z=T9(Z),q instanceof o)if(q.loose===!!Z.loose&&q.includePrerelease===!!Z.includePrerelease)return q;else return new o(q.raw,Z);if(q instanceof wq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease,this.raw=q.trim().replace(w9," "),this.set=this.raw.split("||").map(($)=>this.parseRange($.trim())).filter(($)=>$.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let $=this.set[0];if(this.set=this.set.filter((Q)=>!i0(Q[0])),this.set.length===0)this.set=[$];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&l9(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let Z=this.set[q];for(let $=0;$<Z.length;$++){if($>0)this.formatted+=" ";this.formatted+=Z[$].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(h9,"");let $=((this.options.includePrerelease&&f9)|(this.options.loose&&d9))+":"+q,Q=a0.get($);if(Q)return Q;let K=this.options.loose,Y=K?S[y.HYPHENRANGELOOSE]:S[y.HYPHENRANGE];q=q.replace(Y,o9(this.options.includePrerelease)),P("hyphen replace",q),q=q.replace(S[y.COMPARATORTRIM],b9),P("comparator trim",q),q=q.replace(S[y.TILDETRIM],v9),P("tilde trim",q),q=q.replace(S[y.CARETTRIM],u9),P("caret trim",q);let W=q.split(" ").map((J)=>g9(J,this.options)).join(" ").split(/\s+/).map((J)=>r9(J,this.options));if(K)W=W.filter((J)=>{return P("loose invalid filter",J,this.options),!!J.match(S[y.COMPARATORLOOSE])});P("range list",W);let z=new Map,_=W.map((J)=>new wq(J,this.options));for(let J of _){if(i0(J))return[J];z.set(J.value,J)}if(z.size>1&&z.has(""))z.delete("");let I=[...z.values()];return a0.set($,I),I}intersects(q,Z){if(!(q instanceof o))throw TypeError("a Range is required");return this.set.some(($)=>{return s0($,Z)&&q.set.some((Q)=>{return s0(Q,Z)&&$.every((K)=>{return Q.every((Y)=>{return K.intersects(Y,Z)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new j9(q,this.options)}catch(Z){return!1}for(let Z=0;Z<this.set.length;Z++)if(t9(this.set[Z],q,this.options))return!0;return!1}}r0.exports=o;var S9=n0(),a0=new S9,T9=Wq(),wq=t(),P=s(),j9=R(),{safeRe:S,src:M9,t:y,comparatorTrimReplace:b9,tildeTrimReplace:v9,caretTrimReplace:u9}=p(),{FLAG_INCLUDE_PRERELEASE:f9,FLAG_LOOSE:d9}=m(),h9=new RegExp(M9[y.BUILD],"g"),i0=(q)=>q.value==="<0.0.0-0",l9=(q)=>q.value==="",s0=(q,Z)=>{let $=!0,Q=q.slice(),K=Q.pop();while($&&Q.length)$=Q.every((Y)=>{return K.intersects(Y,Z)}),K=Q.pop();return $},g9=(q,Z)=>{return q=q.replace(S[y.BUILD],""),P("comp",q,Z),q=p9(q,Z),P("caret",q),q=c9(q,Z),P("tildes",q),q=a9(q,Z),P("xrange",q),q=s9(q,Z),P("stars",q),q},T=(q)=>!q||q.toLowerCase()==="x"||q==="*",c9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>m9($,Z)).join(" ")},m9=(q,Z)=>{let $=Z.loose?S[y.TILDELOOSE]:S[y.TILDE];return q.replace($,(Q,K,Y,W,z)=>{P("tilde",q,Q,K,Y,W,z);let _;if(T(K))_="";else if(T(Y))_=`>=${K}.0.0 <${+K+1}.0.0-0`;else if(T(W))_=`>=${K}.${Y}.0 <${K}.${+Y+1}.0-0`;else if(z)P("replaceTilde pr",z),_=`>=${K}.${Y}.${W}-${z} <${K}.${+Y+1}.0-0`;else _=`>=${K}.${Y}.${W} <${K}.${+Y+1}.0-0`;return P("tilde return",_),_})},p9=(q,Z)=>{return q.trim().split(/\s+/).map(($)=>n9($,Z)).join(" ")},n9=(q,Z)=>{P("caret",q,Z);let $=Z.loose?S[y.CARETLOOSE]:S[y.CARET],Q=Z.includePrerelease?"-0":"";return q.replace($,(K,Y,W,z,_)=>{P("caret",q,K,Y,W,z,_);let I;if(T(Y))I="";else if(T(W))I=`>=${Y}.0.0${Q} <${+Y+1}.0.0-0`;else if(T(z))if(Y==="0")I=`>=${Y}.${W}.0${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.0${Q} <${+Y+1}.0.0-0`;else if(_)if(P("replaceCaret pr",_),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}-${_} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}-${_} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z}-${_} <${+Y+1}.0.0-0`;else if(P("no pr"),Y==="0")if(W==="0")I=`>=${Y}.${W}.${z}${Q} <${Y}.${W}.${+z+1}-0`;else I=`>=${Y}.${W}.${z}${Q} <${Y}.${+W+1}.0-0`;else I=`>=${Y}.${W}.${z} <${+Y+1}.0.0-0`;return P("caret return",I),I})},a9=(q,Z)=>{return P("replaceXRanges",q,Z),q.split(/\s+/).map(($)=>i9($,Z)).join(" ")},i9=(q,Z)=>{q=q.trim();let $=Z.loose?S[y.XRANGELOOSE]:S[y.XRANGE];return q.replace($,(Q,K,Y,W,z,_)=>{P("xRange",q,Q,K,Y,W,z,_);let I=T(Y),J=I||T(W),F=J||T(z),N=F;if(K==="="&&N)K="";if(_=Z.includePrerelease?"-0":"",I)if(K===">"||K==="<")Q="<0.0.0-0";else Q="*";else if(K&&N){if(J)W=0;if(z=0,K===">")if(K=">=",J)Y=+Y+1,W=0,z=0;else W=+W+1,z=0;else if(K==="<=")if(K="<",J)Y=+Y+1;else W=+W+1;if(K==="<")_="-0";Q=`${K+Y}.${W}.${z}${_}`}else if(J)Q=`>=${Y}.0.0${_} <${+Y+1}.0.0-0`;else if(F)Q=`>=${Y}.${W}.0${_} <${Y}.${+W+1}.0-0`;return P("xRange return",Q),Q})},s9=(q,Z)=>{return P("replaceStars",q,Z),q.trim().replace(S[y.STAR],"")},r9=(q,Z)=>{return P("replaceGTE0",q,Z),q.trim().replace(S[Z.includePrerelease?y.GTE0PRE:y.GTE0],"")},o9=(q)=>(Z,$,Q,K,Y,W,z,_,I,J,F,N)=>{if(T(Q))$="";else if(T(K))$=`>=${Q}.0.0${q?"-0":""}`;else if(T(Y))$=`>=${Q}.${K}.0${q?"-0":""}`;else if(W)$=`>=${$}`;else $=`>=${$}${q?"-0":""}`;if(T(I))_="";else if(T(J))_=`<${+I+1}.0.0-0`;else if(T(F))_=`<${I}.${+J+1}.0-0`;else if(N)_=`<=${I}.${J}.${F}-${N}`;else if(q)_=`<${I}.${J}.${+F+1}-0`;else _=`<=${_}`;return`${$} ${_}`.trim()},t9=(q,Z,$)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test(Z))return!1;if(Z.prerelease.length&&!$.includePrerelease){for(let Q=0;Q<q.length;Q++){if(P(q[Q].semver),q[Q].semver===wq.ANY)continue;if(q[Q].semver.prerelease.length>0){let K=q[Q].semver;if(K.major===Z.major&&K.minor===Z.minor&&K.patch===Z.patch)return!0}}return!1}return!0}});var t=O((v6,$1)=>{var e=Symbol("SemVer ANY");class Dq{static get ANY(){return e}constructor(q,Z){if(Z=o0(Z),q instanceof Dq)if(q.loose===!!Z.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Tq("comparator",q,Z),this.options=Z,this.loose=!!Z.loose,this.parse(q),this.semver===e)this.value="";else this.value=this.operator+this.semver.version;Tq("comp",this)}parse(q){let Z=this.options.loose?t0[e0.COMPARATORLOOSE]:t0[e0.COMPARATOR],$=q.match(Z);if(!$)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=$[1]!==void 0?$[1]:"",this.operator==="=")this.operator="";if(!$[2])this.semver=e;else this.semver=new q1($[2],this.options.loose)}toString(){return this.value}test(q){if(Tq("Comparator.test",q,this.options.loose),this.semver===e||q===e)return!0;if(typeof q==="string")try{q=new q1(q,this.options)}catch(Z){return!1}return Sq(q,this.operator,this.semver,this.options)}intersects(q,Z){if(!(q instanceof Dq))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new Z1(q.value,Z).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new Z1(this.value,Z).test(q.semver)}if(Z=o0(Z),Z.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!Z.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Sq(this.semver,"<",q.semver,Z)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Sq(this.semver,">",q.semver,Z)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}$1.exports=Dq;var o0=Wq(),{safeRe:t0,t:e0}=p(),Sq=yq(),Tq=s(),q1=R(),Z1=b()});var qq=O((u6,Q1)=>{var e9=b(),qZ=(q,Z,$)=>{try{Z=new e9(Z,$)}catch(Q){return!1}return Z.test(q)};Q1.exports=qZ});var Y1=O((f6,K1)=>{var ZZ=b(),$Z=(q,Z)=>new ZZ(q,Z).set.map(($)=>$.map((Q)=>Q.value).join(" ").trim().split(" "));K1.exports=$Z});var z1=O((d6,W1)=>{var QZ=R(),KZ=b(),YZ=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new KZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===-1)Q=W,K=new QZ(Q,$)}}),Q};W1.exports=YZ});var I1=O((h6,_1)=>{var WZ=R(),zZ=b(),_Z=(q,Z,$)=>{let Q=null,K=null,Y=null;try{Y=new zZ(Z,$)}catch(W){return null}return q.forEach((W)=>{if(Y.test(W)){if(!Q||K.compare(W)===1)Q=W,K=new WZ(Q,$)}}),Q};_1.exports=_Z});var V1=O((l6,J1)=>{var jq=R(),IZ=b(),B1=r(),BZ=(q,Z)=>{q=new IZ(q,Z);let $=new jq("0.0.0");if(q.test($))return $;if($=new jq("0.0.0-0"),q.test($))return $;$=null;for(let Q=0;Q<q.set.length;++Q){let K=q.set[Q],Y=null;if(K.forEach((W)=>{let z=new jq(W.semver.version);switch(W.operator){case">":if(z.prerelease.length===0)z.patch++;else z.prerelease.push(0);z.raw=z.format();case"":case">=":if(!Y||B1(z,Y))Y=z;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${W.operator}`)}}),Y&&(!$||B1($,Y)))$=Y}if($&&q.test($))return $;return null};J1.exports=BZ});var O1=O((g6,X1)=>{var JZ=b(),VZ=(q,Z)=>{try{return new JZ(q,Z).range||"*"}catch($){return null}};X1.exports=VZ});var Uq=O((c6,U1)=>{var XZ=R(),D1=t(),{ANY:OZ}=D1,FZ=b(),xZ=qq(),F1=r(),x1=Vq(),DZ=Oq(),UZ=Xq(),NZ=(q,Z,$,Q)=>{q=new XZ(q,Q),Z=new FZ(Z,Q);let K,Y,W,z,_;switch($){case">":K=F1,Y=DZ,W=x1,z=">",_=">=";break;case"<":K=x1,Y=UZ,W=F1,z="<",_="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(xZ(q,Z,Q))return!1;for(let I=0;I<Z.set.length;++I){let J=Z.set[I],F=null,N=null;if(J.forEach((B)=>{if(B.semver===OZ)B=new D1(">=0.0.0");if(F=F||B,N=N||B,K(B.semver,F.semver,Q))F=B;else if(W(B.semver,N.semver,Q))N=B}),F.operator===z||F.operator===_)return!1;if((!N.operator||N.operator===z)&&Y(q,N.semver))return!1;else if(N.operator===_&&W(q,N.semver))return!1}return!0};U1.exports=NZ});var L1=O((m6,N1)=>{var LZ=Uq(),GZ=(q,Z,$)=>LZ(q,Z,">",$);N1.exports=GZ});var P1=O((p6,G1)=>{var PZ=Uq(),AZ=(q,Z,$)=>PZ(q,Z,"<",$);G1.exports=AZ});var E1=O((n6,C1)=>{var A1=b(),CZ=(q,Z,$)=>{return q=new A1(q,$),Z=new A1(Z,$),q.intersects(Z,$)};C1.exports=CZ});var k1=O((a6,H1)=>{var EZ=qq(),HZ=M();H1.exports=(q,Z,$)=>{let Q=[],K=null,Y=null,W=q.sort((J,F)=>HZ(J,F,$));for(let J of W)if(EZ(J,Z,$)){if(Y=J,!K)K=J}else{if(Y)Q.push([K,Y]);Y=null,K=null}if(K)Q.push([K,null]);let z=[];for(let[J,F]of Q)if(J===F)z.push(J);else if(!F&&J===W[0])z.push("*");else if(!F)z.push(`>=${J}`);else if(J===W[0])z.push(`<=${F}`);else z.push(`${J} - ${F}`);let _=z.join(" || "),I=typeof Z.raw==="string"?Z.raw:String(Z);return _.length<I.length?_:Z}});var j1=O((i6,T1)=>{var R1=b(),vq=t(),{ANY:Mq}=vq,bq=qq(),uq=M(),kZ=(q,Z,$={})=>{if(q===Z)return!0;q=new R1(q,$),Z=new R1(Z,$);let Q=!1;q:for(let K of q.set){for(let Y of Z.set){let W=yZ(K,Y,$);if(Q=Q||W!==null,W)continue q}if(Q)return!1}return!0},RZ=[new vq(">=0.0.0-0")],y1=[new vq(">=0.0.0")],yZ=(q,Z,$)=>{if(q===Z)return!0;if(q.length===1&&q[0].semver===Mq)if(Z.length===1&&Z[0].semver===Mq)return!0;else if($.includePrerelease)q=RZ;else q=y1;if(Z.length===1&&Z[0].semver===Mq)if($.includePrerelease)return!0;else Z=y1;let Q=new Set,K,Y;for(let B of q)if(B.operator===">"||B.operator===">=")K=w1(K,B,$);else if(B.operator==="<"||B.operator==="<=")Y=S1(Y,B,$);else Q.add(B.semver);if(Q.size>1)return null;let W;if(K&&Y){if(W=uq(K.semver,Y.semver,$),W>0)return null;else if(W===0&&(K.operator!==">="||Y.operator!=="<="))return null}for(let B of Q){if(K&&!bq(B,String(K),$))return null;if(Y&&!bq(B,String(Y),$))return null;for(let G of Z)if(!bq(B,String(G),$))return!1;return!0}let z,_,I,J,F=Y&&!$.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,N=K&&!$.includePrerelease&&K.semver.prerelease.length?K.semver:!1;if(F&&F.prerelease.length===1&&Y.operator==="<"&&F.prerelease[0]===0)F=!1;for(let B of Z){if(J=J||B.operator===">"||B.operator===">=",I=I||B.operator==="<"||B.operator==="<=",K){if(N){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===N.major&&B.semver.minor===N.minor&&B.semver.patch===N.patch)N=!1}if(B.operator===">"||B.operator===">="){if(z=w1(K,B,$),z===B&&z!==K)return!1}else if(K.operator===">="&&!B.test(K.semver))return!1}if(Y){if(F){if(B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===F.major&&B.semver.minor===F.minor&&B.semver.patch===F.patch)F=!1}if(B.operator==="<"||B.operator==="<="){if(_=S1(Y,B,$),_===B&&_!==Y)return!1}else if(Y.operator==="<="&&!B.test(Y.semver))return!1}if(!B.operator&&(Y||K)&&W!==0)return!1}if(K&&I&&!Y&&W!==0)return!1;if(Y&&J&&!K&&W!==0)return!1;if(N||F)return!1;return!0},w1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q>0?q:Q<0?Z:Z.operator===">"&&q.operator===">="?Z:q},S1=(q,Z,$)=>{if(!q)return Z;let Q=uq(q.semver,Z.semver,$);return Q<0?q:Q>0?Z:Z.operator==="<"&&q.operator==="<="?Z:q};T1.exports=kZ});var u1=O((s6,v1)=>{var fq=p(),M1=m(),wZ=R(),b1=Eq(),SZ=d(),TZ=K0(),jZ=W0(),MZ=I0(),bZ=V0(),vZ=O0(),uZ=x0(),fZ=U0(),dZ=L0(),hZ=M(),lZ=C0(),gZ=H0(),cZ=Jq(),mZ=w0(),pZ=T0(),nZ=r(),aZ=Vq(),iZ=kq(),sZ=Rq(),rZ=Xq(),oZ=Oq(),tZ=yq(),eZ=l0(),q5=c0(),Z5=t(),$5=b(),Q5=qq(),K5=Y1(),Y5=z1(),W5=I1(),z5=V1(),_5=O1(),I5=Uq(),B5=L1(),J5=P1(),V5=E1(),X5=k1(),O5=j1();v1.exports={parse:SZ,valid:TZ,clean:jZ,inc:MZ,diff:bZ,major:vZ,minor:uZ,patch:fZ,prerelease:dZ,compare:hZ,rcompare:lZ,compareLoose:gZ,compareBuild:cZ,sort:mZ,rsort:pZ,gt:nZ,lt:aZ,eq:iZ,neq:sZ,gte:rZ,lte:oZ,cmp:tZ,coerce:eZ,truncate:q5,Comparator:Z5,Range:$5,satisfies:Q5,toComparators:K5,maxSatisfying:Y5,minSatisfying:W5,minVersion:z5,validRange:_5,outside:I5,gtr:B5,ltr:J5,intersects:V5,simplifyRange:X5,subset:O5,SemVer:wZ,re:fq.re,src:fq.src,tokens:fq.t,SEMVER_SPEC_VERSION:M1.SEMVER_SPEC_VERSION,RELEASE_TYPES:M1.RELEASE_TYPES,compareIdentifiers:b1.compareIdentifiers,rcompareIdentifiers:b1.rcompareIdentifiers}});var d1=O((r6,f1)=>{var F5=Symbol("proc-log.meta");f1.exports={META:F5,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...q){return process.emit("output","standard",...q)},error:function(...q){return process.emit("output","error",...q)},buffer:function(...q){return process.emit("output","buffer",...q)},flush:function(...q){return process.emit("output","flush",...q)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...q){return process.emit("log","error",...q)},notice:function(...q){return process.emit("log","notice",...q)},warn:function(...q){return process.emit("log","warn",...q)},info:function(...q){return process.emit("log","info",...q)},verbose:function(...q){return process.emit("log","verbose",...q)},http:function(...q){return process.emit("log","http",...q)},silly:function(...q){return process.emit("log","silly",...q)},timing:function(...q){return process.emit("log","timing",...q)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(q,Z){process.emit("time","start",q);function $(){return process.emit("time","end",q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(q){return process.emit("time","end",q)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(...q){let Z;if(typeof q[0]==="function")Z=q.shift();process.emit("input","start",...q);function $(){return process.emit("input","end",...q)}if(typeof Z==="function"){let Q=Z();if(Q&&Q.finally)return Q.finally($);return $(),Q}return $},end:function(...q){return process.emit("input","end",...q)},read:function(...q){let Z,$,Q=new Promise((K,Y)=>{Z=K,$=Y});return process.emit("input","read",Z,$,...q),Q}}}});var n1=O((m1)=>{var l1=(q,Z)=>()=>(Z||q((Z={exports:{}}).exports,Z),Z.exports),x5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.tracing=q.metrics=void 0;var Z=n("diagnostics_channel");q.metrics=(0,Z.channel)("lru-cache:metrics"),q.tracing=(0,Z.tracingChannel)("lru-cache")}),D5=l1((q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.defaultPerf=void 0,q.defaultPerf=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date});Object.defineProperty(m1,"__esModule",{value:!0});m1.LRUCache=void 0;var A=x5(),U5=D5(),dq=()=>A.metrics.hasSubscribers||A.tracing.hasSubscribers,g1=new Set,h1=typeof process=="object"&&process?process:{},N5=(q,Z,$,Q)=>{typeof h1.emitWarning=="function"?h1.emitWarning(q,Z,$,Q):console.error(`[${$}] ${Z}: ${q}`)},L5=(q)=>!g1.has(q),h=(q)=>!!q&&q===Math.floor(q)&&q>0&&isFinite(q),c1=(q)=>h(q)?q<=Math.pow(2,8)?Uint8Array:q<=Math.pow(2,16)?Uint16Array:q<=Math.pow(2,32)?Uint32Array:q<=Number.MAX_SAFE_INTEGER?Nq:null:null,Nq=class extends Array{constructor(q){super(q),this.fill(0)}},G5=class q{heap;length;static#K=!1;static create(Z){let $=c1(Z);if(!$)return[];q.#K=!0;let Q=new q(Z,$);return q.#K=!1,Q}constructor(Z,$){if(!q.#K)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new $(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}},P5=class q{#K;#I;#Z;#y;#D;#b;#v;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#W;#N;#Y;#Q;#q;#J;#X;#B;#z;#L;#_;#G;#P;#O;#F;#A;#u;#V;#w;static unsafeExposeInternals(Z){return{starts:Z.#P,ttls:Z.#O,autopurgeTimers:Z.#F,sizes:Z.#G,keyMap:Z.#Y,keyList:Z.#Q,valList:Z.#q,next:Z.#J,prev:Z.#X,get head(){return Z.#B},get tail(){return Z.#z},free:Z.#L,isBackgroundFetch:($)=>Z.#$($),backgroundFetch:($,Q,K,Y)=>Z.#h($,Q,K,Y),moveToTail:($)=>Z.#M($),indexes:($)=>Z.#C($),rindexes:($)=>Z.#E($),isStale:($)=>Z.#x($)}}get max(){return this.#K}get maxSize(){return this.#I}get calculatedSize(){return this.#N}get size(){return this.#W}get fetchMethod(){return this.#b}get memoMethod(){return this.#v}get dispose(){return this.#Z}get onInsert(){return this.#y}get disposeAfter(){return this.#D}constructor(Z){let{max:$=0,ttl:Q,ttlResolution:K=1,ttlAutopurge:Y,updateAgeOnGet:W,updateAgeOnHas:z,allowStale:_,dispose:I,onInsert:J,disposeAfter:F,noDisposeOnSet:N,noUpdateTTL:B,maxSize:G=0,maxEntrySize:x=0,sizeCalculation:H,fetchMethod:U,memoMethod:k,noDeleteOnFetchRejection:f,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:i,ignoreFetchAbort:g,backgroundFetchSize:Yq=1,perf:c}=Z;if(this.backgroundFetchSize=Yq,c!==void 0&&typeof c?.now!="function")throw TypeError("perf option must have a now() method if specified");if(this.#U=c??U5.defaultPerf,$!==0&&!h($))throw TypeError("max option must be a nonnegative integer");let Gq=$?c1($):Array;if(!Gq)throw Error("invalid max value: "+$);if(this.#K=$,this.#I=G,this.maxEntrySize=x||this.#I,this.sizeCalculation=H,this.sizeCalculation){if(!this.#I&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw TypeError("sizeCalculation set to non-function")}if(k!==void 0&&typeof k!="function")throw TypeError("memoMethod must be a function if defined");if(this.#v=k,U!==void 0&&typeof U!="function")throw TypeError("fetchMethod must be a function if specified");if(this.#b=U,this.#u=!!U,this.#Y=new Map,this.#Q=Array.from({length:$}).fill(void 0),this.#q=Array.from({length:$}).fill(void 0),this.#J=new Gq($),this.#X=new Gq($),this.#B=0,this.#z=0,this.#L=G5.create($),this.#W=0,this.#N=0,typeof I=="function"&&(this.#Z=I),typeof J=="function"&&(this.#y=J),typeof F=="function"?(this.#D=F,this.#_=[]):(this.#D=void 0,this.#_=void 0),this.#A=!!this.#Z,this.#w=!!this.#y,this.#V=!!this.#D,this.noDisposeOnSet=!!N,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!f,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!i,this.ignoreFetchAbort=!!g,this.maxEntrySize!==0){if(this.#I!==0&&!h(this.#I))throw TypeError("maxSize must be a positive integer if specified");if(!h(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#i()}if(this.allowStale=!!_,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!W,this.updateAgeOnHas=!!z,this.ttlResolution=h(K)||K===0?K:1,this.ttlAutopurge=!!Y,this.ttl=Q||0,this.ttl){if(!h(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#l()}if(this.#K===0&&this.ttl===0&&this.#I===0)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#K&&!this.#I){let Pq="LRU_CACHE_UNBOUNDED";L5(Pq)&&(g1.add(Pq),N5("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Pq,q))}}getRemainingTTL(Z){return this.#Y.has(Z)?1/0:0}#l(){let Z=new Nq(this.#K),$=new Nq(this.#K);this.#O=Z,this.#P=$;let Q=this.ttlAutopurge?Array.from({length:this.#K}):void 0;this.#F=Q,this.#g=(z,_,I=this.#U.now())=>{$[z]=_!==0?I:0,Z[z]=_,K(z,_)},this.#S=(z)=>{$[z]=Z[z]!==0?this.#U.now():0,K(z,Z[z])};let K=this.ttlAutopurge?(z,_)=>{if(Q?.[z]&&(clearTimeout(Q[z]),Q[z]=void 0),_&&_!==0&&Q){let I=setTimeout(()=>{this.#x(z)&&this.#H(this.#Q[z],"expire")},_+1);I.unref&&I.unref(),Q[z]=I}}:()=>{};this.#k=(z,_)=>{if(Z[_]){let I=Z[_],J=$[_];if(!I||!J)return;z.ttl=I,z.start=J,z.now=Y||W();let F=z.now-J;z.remainingTTL=I-F}};let Y=0,W=()=>{let z=this.#U.now();if(this.ttlResolution>0){Y=z;let _=setTimeout(()=>Y=0,this.ttlResolution);_.unref&&_.unref()}return z};this.getRemainingTTL=(z)=>{let _=this.#Y.get(z);if(_===void 0)return 0;let I=Z[_],J=$[_];if(!I||!J)return 1/0;let F=(Y||W())-J;return I-F},this.#x=(z)=>{let _=$[z],I=Z[z];return!!I&&!!_&&(Y||W())-_>I}}#S=()=>{};#k=()=>{};#g=()=>{};#x=()=>!1;#i(){let Z=new Nq(this.#K);this.#N=0,this.#G=Z,this.#T=($)=>{this.#N-=Z[$],Z[$]=0},this.#c=($,Q,K,Y)=>{if(!h(K)){if(this.#$(Q))return this.backgroundFetchSize;if(Y){if(typeof Y!="function")throw TypeError("sizeCalculation must be a function");if(K=Y(Q,$),!h(K))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return K},this.#f=($,Q,K)=>{if(Z[$]=Q,this.#I){let Y=this.#I-Z[$];for(;this.#N>Y;)this.#d(!0)}this.#N+=Z[$],K&&(K.entrySize=Q,K.totalCalculatedSize=this.#N)}}#T=(Z)=>{};#f=(Z,$,Q)=>{};#c=(Z,$,Q,K)=>{if(Q||K)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#z;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#B);)$=this.#X[$]}*#E({allowStale:Z=this.allowStale}={}){if(this.#W)for(let $=this.#B;this.#m($)&&((Z||!this.#x($))&&(yield $),$!==this.#z);)$=this.#J[$]}#m(Z){return Z!==void 0&&this.#Y.get(this.#Q[Z])===Z}*entries(){for(let Z of this.#C())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*rentries(){for(let Z of this.#E())this.#q[Z]!==void 0&&this.#Q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield[this.#Q[Z],this.#q[Z]])}*keys(){for(let Z of this.#C()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*rkeys(){for(let Z of this.#E()){let $=this.#Q[Z];$!==void 0&&!this.#$(this.#q[Z])&&(yield $)}}*values(){for(let Z of this.#C())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}*rvalues(){for(let Z of this.#E())this.#q[Z]!==void 0&&!this.#$(this.#q[Z])&&(yield this.#q[Z])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,$={}){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y!==void 0&&Z(Y,this.#Q[Q],this))return this.#j(this.#Q[Q],$)}}forEach(Z,$=this){for(let Q of this.#C()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}rforEach(Z,$=this){for(let Q of this.#E()){let K=this.#q[Q],Y=this.#$(K)?K.__staleWhileFetching:K;Y!==void 0&&Z.call($,Y,this.#Q[Q],this)}}purgeStale(){let Z=!1;for(let $ of this.#E({allowStale:!0}))this.#x($)&&(this.#H(this.#Q[$],"expire"),Z=!0);return Z}info(Z){let $=this.#Y.get(Z);if($===void 0)return;let Q=this.#q[$],K=this.#$(Q)?Q.__staleWhileFetching:Q;if(K===void 0)return;let Y={value:K};if(this.#O&&this.#P){let W=this.#O[$],z=this.#P[$];if(W&&z){let _=W-(this.#U.now()-z);Y.ttl=_,Y.start=Date.now()}}return this.#G&&(Y.size=this.#G[$]),Y}dump(){let Z=[];for(let $ of this.#C({allowStale:!0})){let Q=this.#Q[$],K=this.#q[$],Y=this.#$(K)?K.__staleWhileFetching:K;if(Y===void 0||Q===void 0)continue;let W={value:Y};if(this.#O&&this.#P){W.ttl=this.#O[$];let z=this.#U.now()-this.#P[$];W.start=Math.floor(Date.now()-z)}this.#G&&(W.size=this.#G[$]),Z.unshift([Q,W])}return Z}load(Z){this.clear();for(let[$,Q]of Z){if(Q.start){let K=Date.now()-Q.start;Q.start=this.#U.now()-K}this.#R($,Q.value,Q)}}set(Z,$,Q={}){let{status:K=A.metrics.hasSubscribers?{}:void 0}=Q;Q.status=K,K&&(K.op="set",K.key=Z,$!==void 0&&(K.value=$),K.cache=this);let Y=this.#R(Z,$,Q);return K&&A.metrics.hasSubscribers&&A.metrics.publish(K),Y}#R(Z,$,Q,K){let{ttl:Y=this.ttl,start:W,noDisposeOnSet:z=this.noDisposeOnSet,sizeCalculation:_=this.sizeCalculation,status:I}=Q,J=this.#$($);if($===void 0)return I&&(I.set="deleted"),this.delete(Z),this;let{noUpdateTTL:F=this.noUpdateTTL}=Q;I&&!J&&(I.value=$);let N=this.#c(Z,$,Q.size||0,_,I);if(this.maxEntrySize&&N>this.maxEntrySize)return this.#H(Z,"set"),I&&(I.set="miss",I.maxEntrySizeExceeded=!0),this;let B=this.#W===0?void 0:this.#Y.get(Z);if(B===void 0)B=this.#W===0?this.#z:this.#L.length!==0?this.#L.pop():this.#W===this.#K?this.#d(!1):this.#W,this.#Q[B]=Z,this.#q[B]=$,this.#Y.set(Z,B),this.#J[this.#z]=B,this.#X[B]=this.#z,this.#z=B,this.#W++,this.#f(B,N,I),I&&(I.set="add"),F=!1,this.#w&&!J&&this.#y?.($,Z,"add");else{this.#M(B);let G=this.#q[B];if($!==G){if(!z)if(this.#$(G)){G!==K&&G.__abortController.abort(Error("replaced"));let{__staleWhileFetching:x}=G;x!==void 0&&x!==$&&(this.#A&&this.#Z?.(x,Z,"set"),this.#V&&this.#_?.push([x,Z,"set"]))}else this.#A&&this.#Z?.(G,Z,"set"),this.#V&&this.#_?.push([G,Z,"set"]);if(this.#T(B),this.#f(B,N,I),this.#q[B]=$,!J){let x=G&&this.#$(G)?G.__staleWhileFetching:G,H=x===void 0?"add":$!==x?"replace":"update";I&&(I.set=H,x!==void 0&&(I.oldValue=x)),this.#w&&this.onInsert?.($,Z,H)}}else J||(I&&(I.set="update"),this.#w&&this.onInsert?.($,Z,"update"))}if(Y!==0&&!this.#O&&this.#l(),this.#O&&(F||this.#g(B,Y,W),I&&this.#k(I,B)),!z&&this.#V&&this.#_){let G=this.#_,x;for(;x=G?.shift();)this.#D?.(...x)}return this}pop(){try{for(;this.#W;){let Z=this.#q[this.#B];if(this.#d(!0),this.#$(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#V&&this.#_){let Z=this.#_,$;for(;$=Z?.shift();)this.#D?.(...$)}}}#d(Z){let $=this.#B,Q=this.#Q[$],K=this.#q[$],Y=this.#$(K);Y&&K.__abortController.abort(Error("evicted"));let W=Y?K.__staleWhileFetching:K;return(this.#A||this.#V)&&W!==void 0&&(this.#A&&this.#Z?.(W,Q,"evict"),this.#V&&this.#_?.push([W,Q,"evict"])),this.#T($),this.#F?.[$]&&(clearTimeout(this.#F[$]),this.#F[$]=void 0),Z&&(this.#Q[$]=void 0,this.#q[$]=void 0,this.#L.push($)),this.#W===1?(this.#B=this.#z=0,this.#L.length=0):this.#B=this.#J[$],this.#Y.delete(Q),this.#W--,$}has(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="has",Q.key=Z,Q.cache=this);let K=this.#s(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#s(Z,$={}){let{updateAgeOnHas:Q=this.updateAgeOnHas,status:K}=$,Y=this.#Y.get(Z);if(Y!==void 0){let W=this.#q[Y];if(this.#$(W)&&W.__staleWhileFetching===void 0)return!1;if(this.#x(Y))K&&(K.has="stale",this.#k(K,Y));else return Q&&this.#S(Y),K&&(K.has="hit",this.#k(K,Y)),!0}else K&&(K.has="miss");return!1}peek(Z,$={}){let{status:Q=dq()?{}:void 0}=$;Q&&(Q.op="peek",Q.key=Z,Q.cache=this),$.status=Q;let K=this.#r(Z,$);return A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#r(Z,$){let{status:Q,allowStale:K=this.allowStale}=$,Y=this.#Y.get(Z);if(Y===void 0||!K&&this.#x(Y)){Q&&(Q.peek=Y===void 0?"miss":"stale");return}let W=this.#q[Y],z=this.#$(W)?W.__staleWhileFetching:W;return Q&&(z!==void 0?(Q.peek="hit",Q.value=z):Q.peek="miss"),z}#h(Z,$,Q,K){let Y=$===void 0?void 0:this.#q[$];if(this.#$(Y))return Y;let W=new AbortController,{signal:z}=Q;z?.addEventListener("abort",()=>W.abort(z.reason),{signal:W.signal});let _={signal:W.signal,options:Q,context:K},I=(x,H=!1)=>{let{aborted:U}=W.signal,k=Q.ignoreFetchAbort&&x!==void 0,f=Q.ignoreFetchAbort||!!(Q.allowStaleOnFetchAbort&&x!==void 0);if(Q.status&&(U&&!H?(Q.status.fetchAborted=!0,Q.status.fetchError=W.signal.reason,k&&(Q.status.fetchAbortIgnored=!0)):Q.status.fetchResolved=!0),U&&!k&&!H)return F(W.signal.reason,f);let w=B,C=this.#q[$];return(C===B||C===void 0&&k&&H)&&(x===void 0?w.__staleWhileFetching!==void 0?this.#q[$]=w.__staleWhileFetching:this.#H(Z,"fetch"):(Q.status&&(Q.status.fetchUpdated=!0),this.#R(Z,x,_.options,w))),x},J=(x)=>(Q.status&&(Q.status.fetchRejected=!0,Q.status.fetchError=x),F(x,!1)),F=(x,H)=>{let{aborted:U}=W.signal,k=U&&Q.allowStaleOnFetchAbort,f=k||Q.allowStaleOnFetchRejection,w=f||Q.noDeleteOnFetchRejection,C=B;if(this.#q[$]===B&&(!w||!H&&C.__staleWhileFetching===void 0?this.#H(Z,"fetch"):k||(this.#q[$]=C.__staleWhileFetching)),f)return Q.status&&C.__staleWhileFetching!==void 0&&(Q.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw x},N=(x,H)=>{let U=this.#b?.(Z,Y,_);W.signal.addEventListener("abort",()=>{(!Q.ignoreFetchAbort||Q.allowStaleOnFetchAbort)&&(x(void 0),Q.allowStaleOnFetchAbort&&(x=(k)=>I(k,!0)))}),U&&U instanceof Promise?U.then((k)=>x(k===void 0?void 0:k),H):U!==void 0&&x(U)};Q.status&&(Q.status.fetchDispatched=!0);let B=new Promise(N).then(I,J),G=Object.assign(B,{__abortController:W,__staleWhileFetching:Y,__returned:void 0});return $===void 0?(this.#R(Z,G,{..._.options,status:void 0}),$=this.#Y.get(Z)):this.#q[$]=G,G}#$(Z){if(!this.#u)return!1;let $=Z;return!!$&&$ instanceof Promise&&$.hasOwnProperty("__staleWhileFetching")&&$.__abortController instanceof AbortController}fetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#p(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#p(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,ttl:W=this.ttl,noDisposeOnSet:z=this.noDisposeOnSet,size:_=0,sizeCalculation:I=this.sizeCalculation,noUpdateTTL:J=this.noUpdateTTL,noDeleteOnFetchRejection:F=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:N=this.allowStaleOnFetchRejection,ignoreFetchAbort:B=this.ignoreFetchAbort,allowStaleOnFetchAbort:G=this.allowStaleOnFetchAbort,context:x,forceRefresh:H=!1,status:U,signal:k}=$;if(U&&(U.op="fetch",U.key=Z,H&&(U.forceRefresh=!0),U.cache=this),!this.#u)return U&&(U.fetch="get"),this.#j(Z,{allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,status:U});let f={allowStale:Q,updateAgeOnGet:K,noDeleteOnStaleGet:Y,ttl:W,noDisposeOnSet:z,size:_,sizeCalculation:I,noUpdateTTL:J,noDeleteOnFetchRejection:F,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:G,ignoreFetchAbort:B,status:U,signal:k},w=this.#Y.get(Z);if(w===void 0){U&&(U.fetch="miss");let C=this.#h(Z,w,f,x);return C.__returned=C}else{let C=this.#q[w];if(this.#$(C)){let c=Q&&C.__staleWhileFetching!==void 0;return U&&(U.fetch="inflight",c&&(U.returnedStale=!0)),c?C.__staleWhileFetching:C.__returned=C}let i=this.#x(w);if(!H&&!i)return U&&(U.fetch="hit"),this.#M(w),K&&this.#S(w),U&&this.#k(U,w),C;let g=this.#h(Z,w,f,x),Yq=g.__staleWhileFetching!==void 0&&Q;return U&&(U.fetch=i?"stale":"refresh",Yq&&i&&(U.returnedStale=!0)),Yq?g.__staleWhileFetching:g.__returned=g}}forceFetch(Z,$={}){let Q=A.tracing.hasSubscribers,{status:K=dq()?{}:void 0}=$;$.status=K,K&&$.context&&(K.context=$.context);let Y=this.#o(Z,$);return K&&Q&&(K.trace=!0,A.tracing.tracePromise(()=>Y,K).catch(()=>{})),Y}async#o(Z,$={}){let Q=await this.#p(Z,$);if(Q===void 0)throw Error("fetch() returned undefined");return Q}memo(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="memo",Q.key=Z,$.context&&(Q.context=$.context),Q.cache=this);let K=this.#t(Z,$);return Q&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q),K}#t(Z,$={}){let Q=this.#v;if(!Q)throw Error("no memoMethod provided to constructor");let{context:K,status:Y,forceRefresh:W,...z}=$;Y&&W&&(Y.forceRefresh=!0);let _=this.#j(Z,z),I=W||_===void 0;if(Y&&(Y.memo=I?"miss":"hit",I||(Y.value=_)),!I)return _;let J=Q(Z,_,{options:z,context:K});return Y&&(Y.value=J),this.#R(Z,J,z),J}get(Z,$={}){let{status:Q=A.metrics.hasSubscribers?{}:void 0}=$;$.status=Q,Q&&(Q.op="get",Q.key=Z,Q.cache=this);let K=this.#j(Z,$);return Q&&(K!==void 0&&(Q.value=K),A.metrics.hasSubscribers&&A.metrics.publish(Q)),K}#j(Z,$={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:K=this.updateAgeOnGet,noDeleteOnStaleGet:Y=this.noDeleteOnStaleGet,status:W}=$,z=this.#Y.get(Z);if(z===void 0){W&&(W.get="miss");return}let _=this.#q[z],I=this.#$(_);return W&&this.#k(W,z),this.#x(z)?I?(W&&(W.get="stale-fetching"),Q&&_.__staleWhileFetching!==void 0?(W&&(W.returnedStale=!0),_.__staleWhileFetching):void 0):(Y||this.#H(Z,"expire"),W&&(W.get="stale"),Q?(W&&(W.returnedStale=!0),_):void 0):(W&&(W.get=I?"fetching":"hit"),this.#M(z),K&&this.#S(z),I?_.__staleWhileFetching:_)}#n(Z,$){this.#X[$]=Z,this.#J[Z]=$}#M(Z){Z!==this.#z&&(Z===this.#B?this.#B=this.#J[Z]:this.#n(this.#X[Z],this.#J[Z]),this.#n(this.#z,Z),this.#z=Z)}delete(Z){return this.#H(Z,"delete")}#H(Z,$){A.metrics.hasSubscribers&&A.metrics.publish({op:"delete",delete:$,key:Z,cache:this});let Q=!1;if(this.#W!==0){let K=this.#Y.get(Z);if(K!==void 0)if(this.#F?.[K]&&(clearTimeout(this.#F?.[K]),this.#F[K]=void 0),Q=!0,this.#W===1)this.#a($);else{this.#T(K);let Y=this.#q[K];if(this.#$(Y)?Y.__abortController.abort(Error("deleted")):(this.#A||this.#V)&&(this.#A&&this.#Z?.(Y,Z,$),this.#V&&this.#_?.push([Y,Z,$])),this.#Y.delete(Z),this.#Q[K]=void 0,this.#q[K]=void 0,K===this.#z)this.#z=this.#X[K];else if(K===this.#B)this.#B=this.#J[K];else{let W=this.#X[K];this.#J[W]=this.#J[K];let z=this.#J[K];this.#X[z]=this.#X[K]}this.#W--,this.#L.push(K)}}if(this.#V&&this.#_?.length){let K=this.#_,Y;for(;Y=K?.shift();)this.#D?.(...Y)}return Q}clear(){return this.#a("delete")}#a(Z){for(let $ of this.#E({allowStale:!0})){let Q=this.#q[$];if(this.#$(Q))Q.__abortController.abort(Error("deleted"));else{let K=this.#Q[$];this.#A&&this.#Z?.(Q,K,Z),this.#V&&this.#_?.push([Q,K,Z])}}if(this.#Y.clear(),this.#q.fill(void 0),this.#Q.fill(void 0),this.#O&&this.#P){this.#O.fill(0),this.#P.fill(0);for(let $ of this.#F??[])$!==void 0&&clearTimeout($);this.#F?.fill(void 0)}if(this.#G&&this.#G.fill(0),this.#B=0,this.#z=0,this.#L.length=0,this.#N=0,this.#W=0,this.#V&&this.#_){let $=this.#_,Q;for(;Q=$?.shift();)this.#D?.(...Q)}}};m1.LRUCache=P5});var s1=O((e6,i1)=>{var L=(...q)=>q.every((Z)=>Z)?q.join(""):"",E=(q)=>q?encodeURIComponent(q):"",a1=(q)=>q.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),A5={sshtemplate:({domain:q,user:Z,project:$,committish:Q})=>`git@${q}:${Z}/${$}.git${L("#",Q)}`,sshurltemplate:({domain:q,user:Z,project:$,committish:Q})=>`git+ssh://git@${q}/${Z}/${$}.git${L("#",Q)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K,path:Y})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y)}`,browsetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q))}`,browsetreetemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,browseblobtemplate:({domain:q,user:Z,project:$,committish:Q,blobpath:K,path:Y,fragment:W,hashformat:z})=>`https://${q}/${Z}/${$}/${K}/${E(Q||"HEAD")}/${Y}${L("#",z(W||""))}`,docstemplate:({domain:q,user:Z,project:$,treepath:Q,committish:K})=>`https://${q}/${Z}/${$}${L("/",Q,"/",E(K))}#readme`,httpstemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git+https://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/raw/${E(Q||"HEAD")}/${K}`,shortcuttemplate:({type:q,user:Z,project:$,committish:Q})=>`${q}:${Z}/${$}${L("#",Q)}`,pathtemplate:({user:q,project:Z,committish:$})=>`${q}/${Z}${L("#",$)}`,bugstemplate:({domain:q,user:Z,project:$})=>`https://${q}/${Z}/${$}/issues`,hashformat:a1},l={};l.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:q,user:Z,project:$,committish:Q,path:K})=>`https://${L(q,"@")}raw.githubusercontent.com/${Z}/${$}/${E(Q||"HEAD")}/${K}`,gittemplate:({auth:q,domain:Z,user:$,project:Q,committish:K})=>`git://${L(q,"@")}${Z}/${$}/${Q}.git${L("#",K)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://codeload.${q}/${Z}/${$}/tar.gz/${E(Q||"HEAD")}`,extract:(q)=>{let[,Z,$,Q,K]=q.pathname.split("/",5);if(Q&&Q!=="tree")return;if(!Q)K=q.hash.slice(1);if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:K}}};l.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:q,user:Z,project:$,committish:Q,treepath:K,path:Y,editpath:W})=>`https://${q}/${Z}/${$}${L("/",K,"/",E(Q||"HEAD"),"/",Y,W)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/get/${E(Q||"HEAD")}.tar.gz`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["get"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};l.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/api/v4/projects/${E(Z+"/"+$)}/repository/archive.tar.gz?sha=${E(Q||"HEAD")}`,extract:(q)=>{let Z=q.pathname.slice(1);if(Z.includes("/-/")||Z.includes("/archive.tar.gz"))return;let $=Z.split("/"),Q=$.pop();if(Q.endsWith(".git"))Q=Q.slice(0,-4);let K=$.join("/");if(!K||!Q)return;return{user:K,project:Q,committish:q.hash.slice(1)}}};l.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:q,project:Z,committish:$})=>`git@${q}:${Z}.git${L("#",$)}`,sshurltemplate:({domain:q,project:Z,committish:$})=>`git+ssh://git@${q}/${Z}.git${L("#",$)}`,edittemplate:({domain:q,user:Z,project:$,committish:Q,editpath:K})=>`https://${q}/${Z}/${$}${L("/",E(Q))}/${K}`,browsetemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,browsetreetemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,browseblobtemplate:({domain:q,project:Z,committish:$,path:Q,hashformat:K})=>`https://${q}/${Z}${L("/",E($))}${L("#",K(Q))}`,docstemplate:({domain:q,project:Z,committish:$})=>`https://${q}/${Z}${L("/",E($))}`,httpstemplate:({domain:q,project:Z,committish:$})=>`git+https://${q}/${Z}.git${L("#",$)}`,filetemplate:({user:q,project:Z,committish:$,path:Q})=>`https://gist.githubusercontent.com/${q}/${Z}/raw${L("/",E($))}/${Q}`,shortcuttemplate:({type:q,project:Z,committish:$})=>`${q}:${Z}${L("#",$)}`,pathtemplate:({project:q,committish:Z})=>`${q}${L("#",Z)}`,bugstemplate:({domain:q,project:Z})=>`https://${q}/${Z}`,gittemplate:({domain:q,project:Z,committish:$})=>`git://${q}/${Z}.git${L("#",$)}`,tarballtemplate:({project:q,committish:Z})=>`https://codeload.github.com/gist/${q}/tar.gz/${E(Z||"HEAD")}`,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(Q==="raw")return;if(!$){if(!Z)return;$=Z,Z=null}if($.endsWith(".git"))$=$.slice(0,-4);return{user:Z,project:$,committish:q.hash.slice(1)}},hashformat:function(q){return q&&"file-"+a1(q)}};l.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:q,user:Z,project:$,committish:Q,path:K})=>`https://${q}/${Z}/${$}/blob/${E(Q)||"HEAD"}/${K}`,httpstemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}${L("#",Q)}`,tarballtemplate:({domain:q,user:Z,project:$,committish:Q})=>`https://${q}/${Z}/${$}/archive/${E(Q)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:(q)=>{let[,Z,$,Q]=q.pathname.split("/",4);if(["archive"].includes(Q))return;if($&&$.endsWith(".git"))$=$.slice(0,-4);if(!Z||!$)return;return{user:Z,project:$,committish:q.hash.slice(1)}}};for(let[q,Z]of Object.entries(l))l[q]=Object.assign({},A5,Z);i1.exports=l});var lq=O((q7,o1)=>{var C5=n("url"),hq=(q,Z,$)=>{let Q=q.indexOf($);return q.lastIndexOf(Z,Q>-1?Q:1/0)},r1=(q)=>{try{return new C5.URL(q)}catch{}},E5=(q,Z)=>{let $=q.indexOf(":"),Q=q.slice(0,$+1);if(Object.prototype.hasOwnProperty.call(Z,Q))return q;if(q.substr($,3)==="://")return q;let K=q.indexOf("@");if(K>-1)if(K>$)return`git+ssh://${q}`;else return q;return`${q.slice(0,$+1)}//${q.slice($+1)}`},H5=(q)=>{let Z=hq(q,"@","#"),$=hq(q,":","#");if($>Z)q=q.slice(0,$)+"/"+q.slice($+1);if(hq(q,":","#")===-1&&q.indexOf("//")===-1)q=`git+ssh://${q}`;return q};o1.exports=(q,Z)=>{let $=Z?E5(q,Z):q;return r1($)||r1(H5($))}});var e1=O((Z7,t1)=>{var k5=lq(),R5=(q)=>{let Z=q.indexOf("#"),$=q.indexOf("/"),Q=q.indexOf("/",$+1),K=q.indexOf(":"),Y=/\s/.exec(q),W=q.indexOf("@"),z=!Y||Z>-1&&Y.index>Z,_=W===-1||Z>-1&&W>Z,I=K===-1||Z>-1&&K>Z,J=Q===-1||Z>-1&&Q>Z,F=$>0,N=Z>-1?q[Z-1]!=="/":!q.endsWith("/"),B=!q.startsWith(".");return z&&F&&N&&B&&_&&I&&J};t1.exports=(q,Z,{gitHosts:$,protocols:Q})=>{if(!q)return;let K=R5(q)?`github:${q}`:q,Y=k5(K,Q);if(!Y)return;let W=$.byShortcut[Y.protocol],z=$.byDomain[Y.hostname.startsWith("www.")?Y.hostname.slice(4):Y.hostname],_=W||z;if(!_)return;let I=$[W||z],J=null;if(Q[Y.protocol]?.auth&&(Y.username||Y.password))J=`${Y.username}${Y.password?":"+Y.password:""}`;let F=null,N=null,B=null,G=null;try{if(W){let x=Y.pathname.startsWith("/")?Y.pathname.slice(1):Y.pathname,H=x.indexOf("@");if(H>-1)x=x.slice(H+1);let U=x.lastIndexOf("/");if(U>-1){if(N=decodeURIComponent(x.slice(0,U)),!N)N=null;B=decodeURIComponent(x.slice(U+1))}else B=decodeURIComponent(x);if(B.endsWith(".git"))B=B.slice(0,-4);if(Y.hash)F=decodeURIComponent(Y.hash.slice(1));G="shortcut"}else{if(!I.protocols.includes(Y.protocol))return;let x=I.extract(Y);if(!x)return;N=x.user&&decodeURIComponent(x.user),B=decodeURIComponent(x.project),F=decodeURIComponent(x.committish),G=Q[Y.protocol]?.name||Y.protocol.slice(0,-1)}}catch(x){if(x instanceof URIError)return;else throw x}return[_,N,J,B,F,G,Z]}});var Z8=O(($7,q8)=>{var{LRUCache:y5}=n1(),w5=s1(),S5=e1(),T5=lq(),gq=new y5({max:1000});function j5(q){try{let{protocol:Z,hostname:$,pathname:Q}=new URL(q);if(!$)return null;let K=/(?:git\+)http:$/.test(Z)?"http:":"https:",Y=Q.replace(/\.git$/,"");return`${K}//${$}${Y}`}catch{return null}}class j{constructor(q,Z,$,Q,K,Y,W={}){Object.assign(this,j.#K[q],{type:q,user:Z,auth:$,project:Q,committish:K,default:Y,opts:W})}static#K={byShortcut:{},byDomain:{}};static#I={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(q,Z){j.#K[q]=Z,j.#K.byDomain[Z.domain]=q,j.#K.byShortcut[`${q}:`]=q,j.#I[`${q}:`]={name:q}}static fromUrl(q,Z){if(typeof q!=="string")return;let $=q+JSON.stringify(Z||{});if(!gq.has($)){let Q=S5(q,Z,{gitHosts:j.#K,protocols:j.#I});gq.set($,Q?new j(...Q):void 0)}return gq.get($)}static fromManifest(q,Z={}){if(!q||typeof q!=="object")return;let $=q.repository,Q=$&&(typeof $==="string"?$:typeof $==="object"&&typeof $.url==="string"?$.url:null);if(!Q)throw Error("no repository");let K=Q&&j.fromUrl(Q.replace(/^git\+/,""),Z)||null;if(K)return K;let Y=j5(Q);return j.fromUrl(Y,Z)||Y}static parseUrl(q){return T5(q)}#Z(q,Z){if(typeof q!=="function")return null;let $={...this,...this.opts,...Z};if(!$.path)$.path="";if($.path.startsWith("/"))$.path=$.path.slice(1);if($.noCommittish)$.committish=null;let Q=q($);return $.noGitPlus&&Q.startsWith("git+")?Q.slice(4):Q}hash(){return this.committish?`#${this.committish}`:""}ssh(q){return this.#Z(this.sshtemplate,q)}sshurl(q){return this.#Z(this.sshurltemplate,q)}browse(q,...Z){if(typeof q!=="string")return this.#Z(this.browsetemplate,q);if(typeof Z[0]!=="string")return this.#Z(this.browsetreetemplate,{...Z[0],path:q});return this.#Z(this.browsetreetemplate,{...Z[1],fragment:Z[0],path:q})}browseFile(q,...Z){if(typeof Z[0]!=="string")return this.#Z(this.browseblobtemplate,{...Z[0],path:q});return this.#Z(this.browseblobtemplate,{...Z[1],fragment:Z[0],path:q})}docs(q){return this.#Z(this.docstemplate,q)}bugs(q){return this.#Z(this.bugstemplate,q)}https(q){return this.#Z(this.httpstemplate,q)}git(q){return this.#Z(this.gittemplate,q)}shortcut(q){return this.#Z(this.shortcuttemplate,q)}path(q){return this.#Z(this.pathtemplate,q)}tarball(q){return this.#Z(this.tarballtemplate,{...q,noCommittish:!1})}file(q,Z){return this.#Z(this.filetemplate,{...Z,path:q})}edit(q,Z){return this.#Z(this.edittemplate,{...Z,path:q})}getDefaultRepresentation(){return this.default}toString(q){if(this.default&&typeof this[this.default]==="function")return this[this.default](q);return this.sshurl(q)}}for(let[q,Z]of Object.entries(w5))j.addHost(q,Z);q8.exports=j});var $8=O((Q7,M5)=>{M5.exports=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib","node:sea","node:sqlite","node:test","node:test/reporters"]});var K8=O((K7,Q8)=>{var b5=$8(),v5=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),u5=["node_modules","favicon.ico"];function f5(q){var Z=[],$=[];if(q===null)return $.push("name cannot be null"),Zq(Z,$);if(q===void 0)return $.push("name cannot be undefined"),Zq(Z,$);if(typeof q!=="string")return $.push("name must be a string"),Zq(Z,$);if(!q.length)$.push("name length must be greater than zero");if(q.startsWith("."))$.push("name cannot start with a period");if(q.startsWith("-"))$.push("name cannot start with a hyphen");if(q.match(/^_/))$.push("name cannot start with an underscore");if(q.trim()!==q)$.push("name cannot contain leading or trailing spaces");if(u5.forEach(function(W){if(q.toLowerCase()===W)$.push(W+" is not a valid package name")}),b5.includes(q.toLowerCase()))Z.push(q+" is a core module name");if(q.length>214)Z.push("name can no longer contain more than 214 characters");if(q.toLowerCase()!==q)Z.push("name can no longer contain capital letters");if(/[~'!()*]/.test(q.split("/").slice(-1)[0]))Z.push(`name can no longer contain special characters ("~'!()*")`);if(encodeURIComponent(q)!==q){var Q=q.match(v5);if(Q){var K=Q[1],Y=Q[2];if(Y.startsWith("."))$.push("name cannot start with a period");if(encodeURIComponent(K)===K&&encodeURIComponent(Y)===Y)return Zq(Z,$)}$.push("name can only contain URL-friendly characters")}return Zq(Z,$)}var Zq=function(q,Z){var $={validForNewPackages:Z.length===0&&q.length===0,validForOldPackages:Z.length===0,warnings:q,errors:Z};if(!$.warnings.length)delete $.warnings;if(!$.errors.length)delete $.errors;return $};Q8.exports=f5});var K6=O((Y7,Kq)=>{var Qq=process.platform==="win32",{URL:cq}=n("url"),a=Qq?n("path/win32"):n("path"),{homedir:d5}=n("os"),h5=Z8(),Y8=u1(),_8=K8(),{log:l5}=d1(),I8=Qq?/\\|[/]/:/[/]/,B8=/^(?:git[+])?[a-z]+:/i,g5=/^[^@]+@[^:.]+\.[^:]+:.+$/i,pq=/[.](?:tgz|tar\.gz|tar)$/i,c5=/:[0-9]+(\/|$)/i,m5=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,p5=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function $q(q,Z){let $,Q;if(typeof q==="object")if(q instanceof Lq&&(!Z||Z===q.where))return q;else if(q.name&&q.rawSpec)return $q.resolve(q.name,q.rawSpec,Z||q.where);else return $q(q.raw,Z||q.where);let K=q.indexOf("@",1),Y=K>0?q.slice(0,K):q;if(B8.test(q))Q=q;else if(g5.test(q))Q=`git+ssh://${q}`;else if(!Y.startsWith("@")&&(I8.test(Y)||pq.test(Y)))Q=q;else if(K>0)$=Y,Q=q.slice(K+1)||"*";else if(_8(q).validForOldPackages)$=q,Q="*";else Q=q;return J8($,Q,Z,q)}function n5(q){if(!q)return!1;if(q.toLowerCase().startsWith("file:"))return!0;if(Qq)return m5.test(q);return p5.test(q)}function a5(q){if(!q)return!1;return q.toLowerCase().startsWith("npm:")}function J8(q,Z,$,Q){let K=new Lq({raw:Q,name:q,rawSpec:Z,fromArgument:Q!=null});if(q)K.name=q;if(!$)$=process.cwd();if(n5(Z))return z8(K,$);else if(a5(Z))return $6(K,$);let Y=h5.fromUrl(Z,{noGitPlus:!0,noCommittish:!0});if(Y)return e5(K,Y);else if(Z&&B8.test(Z))return Z6(K);else if(Z&&(I8.test(Z)||pq.test(Z)))return z8(K,$);else return Q6(K)}function i5(q,Z="https://registry.npmjs.org"){let $=$q(q);if($.type!=="version")throw o5($.type,$.raw);let Q="pkg:npm/"+$.name.replace(/^@/,"%40")+"@"+$.rawSpec;if(Z!=="https://registry.npmjs.org")Q+="?repository_url="+Z;return Q}function s5(q,Z,$){let Q=Error(`Invalid package name "${q}" of package "${$}": ${Z.errors.join("; ")}.`);return Q.code="EINVALIDPACKAGENAME",Q}function r5(q,Z){let $=Error(`Invalid tag name "${q}" of package "${Z}": Tags may not have any characters that encodeURIComponent encodes.`);return $.code="EINVALIDTAGNAME",$}function o5(q,Z){let $=Error(`Invalid type "${q}" of package "${Z}": Purl can only be generated for "version" types.`);return $.code="EINVALIDPURLTYPE",$}class Lq{constructor(q){if(this.type=q.type,this.registry=q.registry,this.where=q.where,q.raw==null)this.raw=q.name?`${q.name}@${q.rawSpec}`:q.rawSpec;else this.raw=q.raw;if(this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=q.rawSpec||"",this.saveSpec=q.saveSpec,this.fetchSpec=q.fetchSpec,q.name)this.setName(q.name);this.gitRange=q.gitRange,this.gitCommittish=q.gitCommittish,this.gitSubdir=q.gitSubdir,this.hosted=q.hosted}setName(q){let Z=_8(q);if(!Z.validForOldPackages)throw s5(q,Z,this.raw);return this.name=q,this.scope=q[0]==="@"?q.slice(0,q.indexOf("/")):void 0,this.escapedName=q.replace("/","%2f"),this}toString(){let q=[];if(this.name!=null&&this.name!=="")q.push(this.name);let Z=this.saveSpec||this.fetchSpec||this.rawSpec;if(Z!=null&&Z!=="")q.push(Z);return q.length?q.join("@"):this.raw}toJSON(){let q=Object.assign({},this);return delete q.hosted,q}}function mq(q,Z){if(!Z){q.gitCommittish=null;return}for(let $ of Z.split("::")){if(!$.includes(":")){if(q.gitRange)throw Error("cannot override existing semver range with a committish");if(q.gitCommittish)throw Error("cannot override existing committish with a second committish");q.gitCommittish=$;continue}let[Q,K]=$.split(":");if(Q==="semver"){if(q.gitCommittish)throw Error("cannot override existing committish with a semver range");if(q.gitRange)throw Error("cannot override existing semver range with a second semver range");q.gitRange=decodeURIComponent(K);continue}if(Q==="path"){if(q.gitSubdir)throw Error("cannot override existing path with a second path");q.gitSubdir=`/${K}`;continue}l5.warn("npm-package-arg",`ignoring unknown key "${Q}"`)}}var t5=new Map([["\x00","%00"],["\t","%09"],[`
|
|
3
3
|
`,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",Qq?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function W8(q){let Z="";for(let $=0;$<q.length;$++)Z=`${Z}${t5.get(q[$])??q[$]}`;if(Z.startsWith("file:"))return Z;return`file:${Z}`}function z8(q,Z){q.type=pq.test(q.rawSpec)?"file":"directory",q.where=Z;let $=W8(q.rawSpec);if($.startsWith("file:/")){if(/^file:\/\/[^/]/.test($))$=`file:/${$.slice(5)}`;if(/^\/{1,3}\.\.?(\/|$)/.test($.slice(5)))$=$.replace(/^file:\/{1,3}/,"file:")}let Q,K;try{Q=new cq($,`${W8(a.resolve(Z))}/`),K=new cq($)}catch(z){let _=Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(_,{raw:q.rawSpec,spec:q,where:Z,originalError:z})}let Y=decodeURIComponent(K.pathname),W=decodeURIComponent(Q.pathname);if(Qq)Y=Y.replace(/^\/+([a-z]:\/)/i,"$1"),W=W.replace(/^\/+([a-z]:\/)/i,"$1");if(/^\/~(\/|$)/.test(Y))q.saveSpec=`file:${Y.substr(1)}`,W=a.resolve(d5(),Y.substr(3));else if(!a.isAbsolute($.slice(5)))q.saveSpec=`file:${a.relative(Z,W)}`;else q.saveSpec=`file:${a.resolve(W)}`;if(q.fetchSpec=a.resolve(Z,W),q.saveSpec=q.saveSpec.split("\\").join("/"),q.saveSpec.startsWith("file://"))q.saveSpec=`file:/${q.saveSpec.slice(7)}`;return q}function e5(q,Z){return q.type="git",q.hosted=Z,q.saveSpec=Z.toString({noGitPlus:!1,noCommittish:!1}),q.fetchSpec=Z.getDefaultRepresentation()==="shortcut"?null:Z.toString(),mq(q,Z.committish),q}function q6(q,Z){let $=Error(`Unsupported URL Type "${q}": ${Z}`);return $.code="EUNSUPPORTEDPROTOCOL",$}function Z6(q){let Z=q.rawSpec;if(q.saveSpec=Z,Z.startsWith("git+ssh:")){let Q=Z.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(Q&&!Q[1].match(c5))return q.type="git",mq(q,Q[2]),q.fetchSpec=Q[1],q}else if(Z.startsWith("git+file://"))Z=Z.replace(/\\/g,"/");let $=new cq(Z);switch($.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":if(q.type="git",mq(q,$.hash.slice(1)),$.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(Z))q.fetchSpec=`git+file://${$.host.toLowerCase()}:${$.pathname}`;else $.hash="",q.fetchSpec=$.toString();if(q.fetchSpec.startsWith("git+"))q.fetchSpec=q.fetchSpec.slice(4);break;case"http:":case"https:":q.type="remote",q.fetchSpec=q.saveSpec;break;default:throw q6($.protocol,Z)}return q}function $6(q,Z){let $=$q(q.rawSpec.substr(4),Z);if($.type==="alias")throw Error("nested aliases not supported");if(!$.registry)throw Error("aliases only work for registry deps");if(!$.name)throw Error("aliases must have a name");return q.subSpec=$,q.registry=!0,q.type="alias",q.saveSpec=null,q.fetchSpec=null,q}function Q6(q){q.registry=!0;let Z=q.rawSpec.trim();q.saveSpec=null,q.fetchSpec=Z;let $=Y8.valid(Z,!0),Q=Y8.validRange(Z,!0);if($)q.type="version";else if(Q)q.type="range";else{if(encodeURIComponent(Z)!==Z)throw r5(Z,q.raw);q.type="tag"}return q}Kq.exports=$q;Kq.exports.resolve=J8;Kq.exports.toPurl=i5;Kq.exports.Result=Lq});
|
|
4
|
-
export{n1 as
|
|
4
|
+
export{n1 as Is,Z8 as Js,K0 as Ks,W0 as Ls,qq as Ms,O1 as Ns,u1 as Os,d1 as Ps,K6 as Qs};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Td as X}from"./chunk-d31yrcrn.js";import{Ud as oe,Vd as re}from"./chunk-x3z8q0ep.js";import{Wd as k,Xd as $}from"./chunk-8bzwgcjb.js";import{Yd as we,Zd as ie}from"./chunk-ykxde207.js";import{_d as ge}from"./chunk-49tqzsy0.js";import{ge as H,je as K}from"./chunk-77e1wh0j.js";import{ke as M,le as Y,qe as T}from"./chunk-0w5npkgr.js";import{re as U}from"./chunk-dv5zf5gz.js";import"./chunk-hyckncza.js";import{Ae as ue,ze as me}from"./chunk-z4ae6jmb.js";import"./chunk-xak2r993.js";import{vf as y}from"./chunk-5ymj2q6j.js";import{CP as i,GP as g}from"./chunk-s2za1y84.js";var d=i(y(),1);var be=(...e)=>{let o=-1,t=Object.assign(async(n)=>{let c=await te(...e)(n);if(!c.expiration&&o!==-1)c.expiration=new Date(Date.now()+o);return c},{expireAfter(n){if(n<300000)throw Error("@aws-sdk/credential-providers - createCredentialChain(...).expireAfter(ms) may not be called with a duration lower than five minutes.");return o=n,t}});return t},te=(...e)=>async(o)=>{if(e.length===0)throw new d.ProviderError("No providers in chain",{tryNextLink:!1});let r;for(let t of e)try{return await t(o)}catch(n){if(r=n,n?.tryNextLink)continue;throw n}throw r};var v=i(y(),1);function O(e){return Promise.all(Object.keys(e).reduce((o,r)=>{let t=e[r];if(typeof t==="string")o.push([r,t]);else o.push(t().then((n)=>[r,n]));return o},[])).then((o)=>o.reduce((r,[t,n])=>{return r[t]=n,r},{}))}function N(e){return async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");let{GetCredentialsForIdentityCommand:r,CognitoIdentityClient:t}=await import("./chunk-05amr7y9.js"),n=(u)=>e.clientConfig?.[u]??e.parentClientConfig?.[u]??o?.callerClientConfig?.[u],{Credentials:{AccessKeyId:c=ne(e.logger),Expiration:l,SecretKey:s=le(e.logger),SessionToken:a}=ce(e.logger)}=await(e.client??new t(Object.assign({},e.clientConfig??{},{region:n("region"),profile:n("profile"),userAgentAppId:n("userAgentAppId")}))).send(new r({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await O(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:c,secretAccessKey:s,sessionToken:a,expiration:l}}}function ne(e){throw new v.CredentialsProviderError("Response from Amazon Cognito contained no access key ID",{logger:e})}function ce(e){throw new v.CredentialsProviderError("Response from Amazon Cognito contained no credentials",{logger:e})}function le(e){throw new v.CredentialsProviderError("Response from Amazon Cognito contained no secret key",{logger:e})}var I=i(y(),1);class R{dbName;constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",(o)=>{let r=o.get(e);return new Promise((t)=>{r.onerror=()=>t(null),r.onsuccess=()=>t(r.result?r.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",(o)=>{let r=o.delete(e);return new Promise((t,n)=>{r.onerror=()=>n(r.error),r.onsuccess=()=>t()})})}setItem(e,o){return this.withObjectStore("readwrite",(r)=>{let t=r.put({id:e,value:o});return new Promise((n,c)=>{t.onerror=()=>c(t.error),t.onsuccess=()=>n()})})}getDb(){let e=self.indexedDB.open(this.dbName,1);return new Promise((o,r)=>{e.onsuccess=()=>{o(e.result)},e.onerror=()=>{r(e.error)},e.onblocked=()=>{r(Error("Unable to access DB"))},e.onupgradeneeded=()=>{let t=e.result;t.onerror=()=>{r(Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}})}withObjectStore(e,o){return this.getDb().then((r)=>{let t=r.transaction("IdentityIds",e);return t.oncomplete=()=>r.close(),new Promise((n,c)=>{t.onerror=()=>c(t.error),n(o(t.objectStore("IdentityIds")))}).catch((n)=>{throw r.close(),n})})}}class j{store;constructor(e={}){this.store=e}getItem(e){if(e in this.store)return this.store[e];return null}removeItem(e){delete this.store[e]}setItem(e,o){this.store[e]=o}}var ae=new j;function P(){if(typeof self==="object"&&self.indexedDB)return new R;if(typeof window==="object"&&window.localStorage)return window.localStorage;return ae}function D({accountId:e,cache:o=P(),client:r,clientConfig:t,customRoleArn:n,identityPoolId:c,logins:l,userIdentifier:s=!l||Object.keys(l).length===0?"ANONYMOUS":void 0,logger:a,parentClientConfig:u}){a?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");let S=s?`aws:cognito-identity-credentials:${c}:${s}`:void 0,f=async(C)=>{let{GetIdCommand:m,CognitoIdentityClient:b}=await import("./chunk-05amr7y9.js"),h=(w)=>t?.[w]??u?.[w]??C?.callerClientConfig?.[w],p=r??new b(Object.assign({},t??{},{region:h("region"),profile:h("profile"),userAgentAppId:h("userAgentAppId")})),x=S&&await o.getItem(S);if(!x){let{IdentityId:w=se(a)}=await p.send(new m({AccountId:e,IdentityPoolId:c,Logins:l?await O(l):void 0}));if(x=w,S)Promise.resolve(o.setItem(S,x)).catch(()=>{})}return f=N({client:p,customRoleArn:n,logins:l,identityId:x}),f(C)};return(C)=>f(C).catch(async(m)=>{if(S)Promise.resolve(o.removeItem(S)).catch(()=>{});throw m})}function se(e){throw new I.CredentialsProviderError("Response from Amazon Cognito contained no identity ID",{logger:e})}var De=(e)=>N({...e});var Ke=(e)=>D({...e});var ze=(e)=>{return e?.logger?.debug("@smithy/credential-provider-imds","fromContainerMetadata"),H(e)};var Fe=(e)=>T(e);var Je=(e={})=>$({...e});var L=i(ue(),1);var Xe=(e)=>{return e?.logger?.debug("@smithy/credential-provider-imds","fromInstanceMetadata"),async()=>K(e)().then((o)=>L.setCredentialFeature(o,"CREDENTIALS_IMDS","0"))};var Ve=(e)=>k({...e});var A=i(y(),1);var E=i(y(),1),z="AWS_EC2_METADATA_DISABLED",G=async(e)=>{let{ENV_CMDS_FULL_URI:o,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:t,fromInstanceMetadata:n}=await import("./chunk-cxb05cdg.js");if(process.env[r]||process.env[o]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:c}=await import("./chunk-bmzyxspj.js");return E.chain(c(e),t(e))}if(process.env[z]&&process.env[z]!=="false")return async()=>{throw new E.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})};return e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),n(e)};function B(e,o){let r=fe(e),t,n,c,l,s=async(a)=>{if(a?.forceRefresh){if(!l)l=r(a).then((u)=>{c=u}).finally(()=>{l=void 0});return await l,c}if(c?.expiration){if(c?.expiration?.getTime()<Date.now())c=void 0}if(t)await t;else if(!c||o?.(c))if(c){if(!n)n=r(a).then((u)=>{c=u}).finally(()=>{n=void 0})}else return t=r(a).then((u)=>{c=u}).finally(()=>{t=void 0}),s(a);return c};return s}var fe=(e)=>async(o)=>{let r;for(let t of e)try{return await t(o)}catch(n){if(r=n,n?.tryNextLink)continue;throw n}throw r};var F=!1,J=(e={})=>B([async()=>{if(e.profile??process.env[A.ENV_PROFILE]){if(process.env[M]&&process.env[Y]){if(!F)(e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
3
3
|
Multiple credential sources detected:
|
|
4
4
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
5
5
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -7,4 +7,4 @@ import{Sd as X}from"./chunk-fm4xa6yx.js";import{Td as oe,Ud as re}from"./chunk-v
|
|
|
7
7
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
8
8
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
9
9
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
10
|
-
`),F=!0}throw new A.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:!0})}return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),T(e)()},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:t,ssoRegion:n,ssoRoleName:c,ssoSession:l}=e;if(!r&&!t&&!n&&!c&&!l)throw new A.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger});let{fromSSO:s}=await import("./chunk-
|
|
10
|
+
`),F=!0}throw new A.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:!0})}return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),T(e)()},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:t,ssoRegion:n,ssoRoleName:c,ssoSession:l}=e;if(!r&&!t&&!n&&!c&&!l)throw new A.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger});let{fromSSO:s}=await import("./chunk-z2raegj9.js");return s(e)(o)},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await import("./chunk-dm5xnb4t.js");return r(e)(o)},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await import("./chunk-ejn5hfzd.js");return r(e)(o)},async(o)=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await import("./chunk-cxe92z5c.js");return r(e)(o)},async()=>{return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await G(e))()},async()=>{throw new A.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:e.logger})}],de);var de=(e)=>e?.expiration!==void 0&&e.expiration.getTime()-Date.now()<300000;var Q=(e={})=>J({...e});var ur=(e)=>U(e);var mr=(e={})=>{return X({...e})};var _=i(we(),1),ee=i(ie(),1);var W=i(me(),1);var he="us-east-1",V=(e,o,r)=>{let t;return async(n={})=>{let{callerClientConfig:c}=n,l=e.clientConfig?.profile??c?.profile,s=e.logger??c?.logger;s?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)");let a={...e.params,RoleSessionName:e.params.RoleSessionName??"aws-sdk-js-"+Date.now()};if(a?.SerialNumber){if(!e.mfaCodeProvider)throw new d.CredentialsProviderError("Temporary credential requires multi-factor authentication, but no MFA code callback was provided.",{tryNextLink:!1,logger:s});a.TokenCode=await e.mfaCodeProvider(a?.SerialNumber)}let{AssumeRoleCommand:u,STSClient:S}=await import("./chunk-zna6neq5.js");if(!t){let C=typeof o==="function"?o():void 0,m=[e.masterCredentials,e.clientConfig?.credentials,void c?.credentials,c?.credentialDefaultProvider?.(),C],b="STS client default credentials";if(m[0])b="options.masterCredentials";else if(m[1])b="options.clientConfig.credentials";else if(m[2])throw b="caller client's credentials",Error("fromTemporaryCredentials recursion in callerClientConfig.credentials");else if(m[3])b="caller client's credentialDefaultProvider";else if(m[4])b="AWS SDK default credentials";let h=[e.clientConfig?.region,c?.region,await r?.({profile:l}),he],p="default partition's default region";if(h[0])p="options.clientConfig.region";else if(h[1])p="caller client's region";else if(h[2])p="file or env region";let x=[Z(e.clientConfig?.requestHandler),Z(c?.requestHandler)],w="STS default requestHandler";if(x[0])w="options.clientConfig.requestHandler";else if(x[1])w="caller client's requestHandler";s?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ${p}=${await W.normalizeProvider(q(h))()}, ${b}, ${w}.`),t=new S({userAgentAppId:c?.userAgentAppId,...e.clientConfig,credentials:q(m),logger:s,profile:l,region:q(h),requestHandler:q(x)})}if(e.clientPlugins)for(let C of e.clientPlugins)t.middlewareStack.use(C);let{Credentials:f}=await t.send(new u(a));if(!f||!f.AccessKeyId||!f.SecretAccessKey)throw new d.CredentialsProviderError(`Invalid response from STS.assumeRole call with role ${a.RoleArn}`,{logger:s});return{accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.SessionToken,expiration:f.Expiration,credentialScope:f.CredentialScope}}},Z=(e)=>{return e?.metadata?.handlerProtocol==="h2"?void 0:e},q=(e)=>{for(let o of e)if(o!==void 0)return o};var Cr=(e)=>{return V(e,Q,async({profile:o=process.env.AWS_PROFILE})=>ee.loadConfig({environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>{return r.region},default:()=>{return}},{..._.NODE_REGION_CONFIG_FILE_OPTIONS,profile:o})())};var pr=(e={})=>re({...e});var Or=(e)=>oe({...e});export{te as propertyProviderChain,Or as fromWebToken,pr as fromTokenFile,Cr as fromTemporaryCredentials,mr as fromSSO,ur as fromProcess,Q as fromNodeProviderChain,Ve as fromLoginCredentials,Xe as fromInstanceMetadata,Je as fromIni,ge as fromHttp,Fe as fromEnv,ze as fromContainerMetadata,Ke as fromCognitoIdentityPool,De as fromCognitoIdentity,be as createCredentialChain};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Aq as v,Bq as k,Hq as b,Iq as R,Jq as XG,Kq as I,Oq as d,Pp as V,Rp as l,Vp as e,Wp as t,dq as a,iq as o,jq as GG,mq as JG,qq as NG,tq as QG,yq as g}from"./chunk-bf146hz2.js";import{Qq as f,Wq as C,_q as m,br as O}from"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import{Pu as G}from"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-hh4c02fh.js";function c(J){var Q,$,K,j,z,q;if(J==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let A=(Q=J.prompt_tokens)!=null?Q:0,Z=($=J.completion_tokens)!=null?$:0,N=(j=(K=J.prompt_tokens_details)==null?void 0:K.cached_tokens)!=null?j:0,X=(q=(z=J.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?q:0;return{inputTokens:{total:A,noCache:A-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:Z,text:Z-X,reasoning:X},raw:J}}function _(J){switch(J){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}function u({id:J,model:Q,created:$}){return{id:J!=null?J:void 0,modelId:Q!=null?Q:void 0,timestamp:$!=null?new Date($*1000):void 0}}function i({tools:J,toolChoice:Q}){J=(J==null?void 0:J.length)?J:void 0;let $=[];if(J==null)return{tools:void 0,toolChoice:void 0,toolWarnings:$};let K=[];for(let z of J)if(z.type==="provider")$.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else K.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Q==null)return{tools:K,toolChoice:void 0,toolWarnings:$};let j=Q.type;switch(j){case"auto":case"none":case"required":return{tools:K,toolChoice:j,toolWarnings:$};case"tool":return{tools:K,toolChoice:{type:"function",function:{name:Q.toolName}},toolWarnings:$};default:throw new O({functionality:`tool choice type: ${j}`})}}var $G=G.object({enableThinking:G.boolean().optional(),thinkingBudget:G.number().positive().optional(),parallelToolCalls:G.boolean().optional()});function p(J){var Q,$,K,j;let z=c(J),q=($=(Q=J==null?void 0:J.prompt_tokens_details)==null?void 0:Q.cache_creation_input_tokens)!=null?$:0,A=((K=z.inputTokens.total)!=null?K:0)-((j=z.inputTokens.cacheRead)!=null?j:0)-q;return{...z,inputTokens:{...z.inputTokens,cacheWrite:q,noCache:A}}}function zG({data:J,mediaType:Q}){return J instanceof URL?J.toString():`data:${Q};base64,${t(J)}`}function BG({prompt:J,cacheControlValidator:Q}){var $,K;let j=[];for(let{role:z,content:q,...A}of J){let Z=Q==null?void 0:Q.getCacheControl(A.providerOptions);switch(z){case"system":{if(Z)j.push({role:"system",content:[{type:"text",text:q,cache_control:Z}]});else j.push({role:"system",content:q});break}case"user":{j.push({role:"user",content:q.map((N,X)=>{var E;let L=X===q.length-1,B=(E=Q==null?void 0:Q.getCacheControl(N.providerOptions))!=null?E:L?Z:void 0;switch(N.type){case"text":return{type:"text",text:N.text,...B?{cache_control:B}:{}};case"file":if(N.mediaType.startsWith("image/")){let U=N.mediaType==="image/*"?"image/jpeg":N.mediaType;return{type:"image_url",image_url:{url:zG({data:N.data,mediaType:U})},...B?{cache_control:B}:{}}}else throw new O({functionality:"Only image file parts are supported"})}})});break}case"assistant":{let N="",X=[];for(let E of q)switch(E.type){case"text":{N+=E.text;break}case"tool-call":{X.push({id:E.toolCallId,type:"function",function:{name:E.toolName,arguments:JSON.stringify(E.input)}});break}case"reasoning":{N+=E.text;break}}j.push({role:"assistant",content:Z?[{type:"text",text:N,cache_control:Z}]:N||null,tool_calls:X.length>0?X:void 0});break}case"tool":{let N=q.filter((X)=>X.type!=="tool-approval-response");for(let X=0;X<N.length;X++){let E=N[X],L=E.output,B=X===N.length-1,U=($=Q==null?void 0:Q.getCacheControl(E.providerOptions))!=null?$:B?Z:void 0,Y;switch(L.type){case"text":case"error-text":Y=L.value;break;case"execution-denied":Y=(K=L.reason)!=null?K:"Tool execution denied.";break;case"content":case"json":case"error-json":Y=JSON.stringify(L.value);break}j.push({role:"tool",tool_call_id:E.toolCallId,content:U?[{type:"text",text:Y,cache_control:U}]:Y})}break}default:throw Error(`Unsupported role: ${z}`)}}return j}var r=4;function EG(J){var Q;let $=J==null?void 0:J.alibaba;return(Q=$==null?void 0:$.cacheControl)!=null?Q:$==null?void 0:$.cache_control}var jG=class{constructor(){this.breakpointCount=0,this.warnings=[]}getCacheControl(J){let Q=EG(J);if(!Q)return;if(this.breakpointCount++,this.breakpointCount>r)this.warnings.push({type:"other",message:`Max breakpoint limit exceeded. Only the last ${r} cache markers will take effect.`});return Q}getWarnings(){return this.warnings}},KG=class{constructor(J,Q){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=J,this.config=Q}get provider(){return this.config.provider}async getArgs({prompt:J,maxOutputTokens:Q,temperature:$,topP:K,topK:j,frequencyPenalty:z,presencePenalty:q,stopSequences:A,responseFormat:Z,seed:N,providerOptions:X,tools:E,toolChoice:L}){var B;let U=[],Y=new jG,P=await v({provider:"alibaba",providerOptions:X,schema:$G});if(z!=null)U.push({type:"unsupported",feature:"frequencyPenalty"});let w={model:this.modelId,max_tokens:Q,temperature:$,top_p:K,top_k:j,presence_penalty:q,stop:A,seed:N,response_format:(Z==null?void 0:Z.type)==="json"?Z.schema!=null?{type:"json_schema",json_schema:{schema:Z.schema,name:(B=Z.name)!=null?B:"response",description:Z.description}}:{type:"json_object"}:void 0,...(P==null?void 0:P.enableThinking)!=null?{enable_thinking:P.enableThinking}:{},...(P==null?void 0:P.thinkingBudget)!=null?{thinking_budget:P.thinkingBudget}:{},messages:BG({prompt:J,cacheControlValidator:Y})},{tools:y,toolChoice:S,toolWarnings:F}=i({tools:E,toolChoice:L});return U.push(...Y.getWarnings()),{args:{...w,tools:y,tool_choice:S,...y!=null&&(P==null?void 0:P.parallelToolCalls)!==void 0?{parallel_tool_calls:P.parallelToolCalls}:{}},warnings:[...U,...F]}}async doGenerate(J){var Q;let{args:$,warnings:K}=await this.getArgs(J),{responseHeaders:j,value:z,rawValue:q}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:$,failedResponseHandler:s,successfulResponseHandler:I(qG),abortSignal:J.abortSignal,fetch:this.config.fetch}),A=z.choices[0],Z=[],N=A.message.content;if(N!=null&&N.length>0)Z.push({type:"text",text:N});let X=A.message.reasoning_content;if(X!=null&&X.length>0)Z.push({type:"reasoning",text:X});if(A.message.tool_calls!=null)for(let E of A.message.tool_calls)Z.push({type:"tool-call",toolCallId:E.id,toolName:E.function.name,input:E.function.arguments});return{content:Z,finishReason:{unified:_(A.finish_reason),raw:(Q=A.finish_reason)!=null?Q:void 0},usage:p(z.usage),request:{body:JSON.stringify($)},response:{...u(z),headers:j,body:q},warnings:K}}async doStream(J){let{args:Q,warnings:$}=await this.getArgs(J),K={...Q,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:j,value:z}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:K,failedResponseHandler:s,successfulResponseHandler:XG(AG),abortSignal:J.abortSignal,fetch:this.config.fetch}),q={unified:"other",raw:void 0},A=void 0,Z=!0,N=!1,X=null,E=[];return{stream:z.pipeThrough(new TransformStream({start(L){L.enqueue({type:"stream-start",warnings:$})},transform(L,B){var U,Y,P,w;if(J.includeRawChunks)B.enqueue({type:"raw",rawValue:L.rawValue});if(!L.success){B.enqueue({type:"error",error:L.error});return}let y=L.value;if(Z)Z=!1,B.enqueue({type:"response-metadata",...u(y)});if(y.usage!=null)A=y.usage;if(y.choices.length===0)return;let S=y.choices[0],F=S.delta;if(F.reasoning_content!=null&&F.reasoning_content.length>0){if(X==null){if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;X=a(),B.enqueue({type:"reasoning-start",id:X})}B.enqueue({type:"reasoning-delta",id:X,delta:F.reasoning_content})}if(F.content!=null&&F.content.length>0){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(!N)B.enqueue({type:"text-start",id:"0"}),N=!0;B.enqueue({type:"text-delta",id:"0",delta:F.content})}if(F.tool_calls!=null){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;for(let W of F.tool_calls){let M=(U=W.index)!=null?U:E.length;if(E[M]==null){if(W.id==null)throw new C({data:W,message:"Expected 'id' to be a string."});if(((Y=W.function)==null?void 0:Y.name)==null)throw new C({data:W,message:"Expected 'function.name' to be a string."});B.enqueue({type:"tool-input-start",id:W.id,toolName:W.function.name}),E[M]={id:W.id,type:"function",function:{name:W.function.name,arguments:(P=W.function.arguments)!=null?P:""},hasFinished:!1};let D=E[M];if(D.function.arguments.length>0)B.enqueue({type:"tool-input-delta",id:D.id,delta:D.function.arguments});if(g(D.function.arguments))B.enqueue({type:"tool-input-end",id:D.id}),B.enqueue({type:"tool-call",toolCallId:D.id,toolName:D.function.name,input:D.function.arguments}),D.hasFinished=!0;continue}let H=E[M];if(H.hasFinished)continue;if(((w=W.function)==null?void 0:w.arguments)!=null)H.function.arguments+=W.function.arguments,B.enqueue({type:"tool-input-delta",id:H.id,delta:W.function.arguments});if(g(H.function.arguments))B.enqueue({type:"tool-input-end",id:H.id}),B.enqueue({type:"tool-call",toolCallId:H.id,toolName:H.function.name,input:H.function.arguments}),H.hasFinished=!0}}if(S.finish_reason!=null)q={unified:_(S.finish_reason),raw:S.finish_reason}},flush(L){if(X!=null)L.enqueue({type:"reasoning-end",id:X});if(N)L.enqueue({type:"text-end",id:"0"});L.enqueue({type:"finish",finishReason:q,usage:p(A)})}})),request:{body:JSON.stringify(K)},response:{headers:j}}}},YG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish(),cache_creation_input_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish()}).nullish()}),qG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({id:G.string(),type:G.literal("function"),function:G.object({name:G.string(),arguments:G.string()})})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),AG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),type:G.literal("function").nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),HG=NG(()=>QG(G.object({negativePrompt:G.string().nullish(),audioUrl:G.string().nullish(),promptExtend:G.boolean().nullish(),shotType:G.enum(["single","multi"]).nullish(),watermark:G.boolean().nullish(),audio:G.boolean().nullish(),referenceUrls:G.array(G.string()).nullish(),pollIntervalMs:G.number().positive().nullish(),pollTimeoutMs:G.number().positive().nullish()}).passthrough())),LG=G.object({code:G.string().nullish(),message:G.string(),request_id:G.string().nullish()}),n=R({errorSchema:LG,errorToMessage:(J)=>J.message}),PG=G.object({output:G.object({task_status:G.string(),task_id:G.string()}).nullish(),request_id:G.string().nullish()}),WG=G.object({output:G.object({task_id:G.string(),task_status:G.string(),video_url:G.string().nullish(),submit_time:G.string().nullish(),scheduled_time:G.string().nullish(),end_time:G.string().nullish(),orig_prompt:G.string().nullish(),actual_prompt:G.string().nullish(),code:G.string().nullish(),message:G.string().nullish()}).nullish(),usage:G.object({duration:G.number().nullish(),output_video_duration:G.number().nullish(),SR:G.number().nullish(),size:G.string().nullish()}).nullish(),request_id:G.string().nullish()});function UG(J){if(J.includes("-i2v"))return"i2v";if(J.includes("-r2v"))return"r2v";return"t2v"}var wG=class{constructor(J,Q){this.modelId=J,this.config=Q,this.specificationVersion="v3",this.maxVideosPerCall=1}get provider(){return this.config.provider}async doGenerate(J){var Q,$,K,j,z,q,A,Z,N,X,E;let L=(K=($=(Q=this.config._internal)==null?void 0:Q.currentDate)==null?void 0:$.call(Q))!=null?K:new Date,B=[],U=UG(this.modelId),Y=await v({provider:"alibaba",providerOptions:J.providerOptions,schema:HG}),P={};if(J.prompt!=null)P.prompt=J.prompt;if((Y==null?void 0:Y.negativePrompt)!=null)P.negative_prompt=Y.negativePrompt;if((Y==null?void 0:Y.audioUrl)!=null)P.audio_url=Y.audioUrl;if(U==="i2v"&&J.image!=null)if(J.image.type==="url")P.img_url=J.image.url;else{let x=typeof J.image.data==="string"?J.image.data:e(J.image.data);P.img_url=x}if(U==="r2v"&&(Y==null?void 0:Y.referenceUrls)!=null)P.reference_urls=Y.referenceUrls;let w={};if(J.duration!=null)w.duration=J.duration;if(J.seed!=null)w.seed=J.seed;if(J.resolution!=null)if(U==="i2v"){let x={"1280x720":"720P","720x1280":"720P","960x960":"720P","1088x832":"720P","832x1088":"720P","1920x1080":"1080P","1080x1920":"1080P","1440x1440":"1080P","1632x1248":"1080P","1248x1632":"1080P","832x480":"480P","480x832":"480P","624x624":"480P"};w.resolution=x[J.resolution]||J.resolution}else w.size=J.resolution.replace("x","*");if((Y==null?void 0:Y.promptExtend)!=null)w.prompt_extend=Y.promptExtend;if((Y==null?void 0:Y.shotType)!=null)w.shot_type=Y.shotType;if((Y==null?void 0:Y.watermark)!=null)w.watermark=Y.watermark;if((Y==null?void 0:Y.audio)!=null)w.audio=Y.audio;if(J.aspectRatio)B.push({type:"unsupported",feature:"aspectRatio",details:"Alibaba video models use explicit size/resolution dimensions. Use the resolution option or providerOptions.alibaba for size control."});if(J.fps)B.push({type:"unsupported",feature:"fps",details:"Alibaba video models do not support custom FPS."});if(J.n!=null&&J.n>1)B.push({type:"unsupported",feature:"n",details:"Alibaba video models only support generating 1 video per call."});let{value:y}=await k({url:`${this.config.baseURL}/api/v1/services/aigc/video-generation/video-synthesis`,headers:V(await b(this.config.headers),J.headers,{"X-DashScope-Async":"enable"}),body:{model:this.modelId,input:P,parameters:w},successfulResponseHandler:I(PG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch}),S=(j=y.output)==null?void 0:j.task_id;if(!S)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No task_id returned from Alibaba API. Response: ${JSON.stringify(y)}`});let F=(z=Y==null?void 0:Y.pollIntervalMs)!=null?z:5000,W=(q=Y==null?void 0:Y.pollTimeoutMs)!=null?q:600000,M=Date.now(),H,D;while(!0){if(await l(F,{abortSignal:J.abortSignal}),Date.now()-M>W)throw new f({name:"ALIBABA_VIDEO_GENERATION_TIMEOUT",message:`Video generation timed out after ${W}ms`});let{value:x,responseHeaders:ZG}=await GG({url:`${this.config.baseURL}/api/v1/tasks/${S}`,headers:V(await b(this.config.headers),J.headers),successfulResponseHandler:I(WG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch});D=ZG;let T=(A=x.output)==null?void 0:A.task_status;if(T==="SUCCEEDED"){H=x;break}if(T==="FAILED"||T==="CANCELED")throw new f({name:"ALIBABA_VIDEO_GENERATION_FAILED",message:`Video generation ${T.toLowerCase()}. Task ID: ${S}. ${(N=(Z=x.output)==null?void 0:Z.message)!=null?N:""}`})}let h=(X=H==null?void 0:H.output)==null?void 0:X.video_url;if(!h)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No video URL in response. Task ID: ${S}`});return{videos:[{type:"url",url:h,mediaType:"video/mp4"}],warnings:B,response:{timestamp:L,modelId:this.modelId,headers:D},providerMetadata:{alibaba:{taskId:S,videoUrl:h,...((E=H==null?void 0:H.output)==null?void 0:E.actual_prompt)?{actualPrompt:H.output.actual_prompt}:{},...(H==null?void 0:H.usage)?{usage:{duration:H.usage.duration,outputVideoDuration:H.usage.output_video_duration,resolution:H.usage.SR,size:H.usage.size}}:{}}}}}},SG="1.0.17",FG=G.object({error:G.object({message:G.string(),code:G.string().nullish(),type:G.string().nullish()})}),s=R({errorSchema:FG,errorToMessage:(J)=>J.error.message});function DG(J={}){var Q,$;let K=(Q=d(J.baseURL))!=null?Q:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",j=($=d(J.videoBaseURL))!=null?$:"https://dashscope-intl.aliyuncs.com",z=()=>o({Authorization:`Bearer ${JG({apiKey:J.apiKey,environmentVariableName:"ALIBABA_API_KEY",description:"Alibaba Cloud (DashScope)"})}`,...J.headers},`ai-sdk/alibaba/${SG}`),q=(N)=>{var X;return new KG(N,{provider:"alibaba.chat",baseURL:K,headers:z,fetch:J.fetch,includeUsage:(X=J.includeUsage)!=null?X:!0})},A=(N)=>new wG(N,{provider:"alibaba.video",baseURL:j,headers:z,fetch:J.fetch}),Z=function(N){if(new.target)throw Error("The Alibaba model function cannot be called with the new keyword.");return q(N)};return Z.specificationVersion="v3",Z.languageModel=q,Z.chatModel=q,Z.video=A,Z.videoModel=A,Z.imageModel=(N)=>{throw new m({modelId:N,modelType:"imageModel"})},Z.embeddingModel=(N)=>{throw new m({modelId:N,modelType:"embeddingModel"})},Z}var gG=DG();export{DG as createAlibaba,gG as alibaba,SG as VERSION};
|
|
2
|
+
import{Bq as g,Dq as v,Eq as k,Kq as b,Lq as R,Mq as XG,Nq as I,Rq as d,Sp as V,Up as l,Yp as e,Zp as t,gq as a,lq as o,mq as GG,pq as JG,tq as NG,wq as QG}from"./chunk-p31yg62z.js";import{Tq as f,Zq as C,br as m,er as O}from"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import{Tu as G}from"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-s2za1y84.js";function c(J){var Q,$,K,j,z,q;if(J==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let A=(Q=J.prompt_tokens)!=null?Q:0,Z=($=J.completion_tokens)!=null?$:0,N=(j=(K=J.prompt_tokens_details)==null?void 0:K.cached_tokens)!=null?j:0,X=(q=(z=J.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?q:0;return{inputTokens:{total:A,noCache:A-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:Z,text:Z-X,reasoning:X},raw:J}}function _(J){switch(J){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}function u({id:J,model:Q,created:$}){return{id:J!=null?J:void 0,modelId:Q!=null?Q:void 0,timestamp:$!=null?new Date($*1000):void 0}}function i({tools:J,toolChoice:Q}){J=(J==null?void 0:J.length)?J:void 0;let $=[];if(J==null)return{tools:void 0,toolChoice:void 0,toolWarnings:$};let K=[];for(let z of J)if(z.type==="provider")$.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else K.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Q==null)return{tools:K,toolChoice:void 0,toolWarnings:$};let j=Q.type;switch(j){case"auto":case"none":case"required":return{tools:K,toolChoice:j,toolWarnings:$};case"tool":return{tools:K,toolChoice:{type:"function",function:{name:Q.toolName}},toolWarnings:$};default:throw new O({functionality:`tool choice type: ${j}`})}}var $G=G.object({enableThinking:G.boolean().optional(),thinkingBudget:G.number().positive().optional(),parallelToolCalls:G.boolean().optional()});function p(J){var Q,$,K,j;let z=c(J),q=($=(Q=J==null?void 0:J.prompt_tokens_details)==null?void 0:Q.cache_creation_input_tokens)!=null?$:0,A=((K=z.inputTokens.total)!=null?K:0)-((j=z.inputTokens.cacheRead)!=null?j:0)-q;return{...z,inputTokens:{...z.inputTokens,cacheWrite:q,noCache:A}}}function zG({data:J,mediaType:Q}){return J instanceof URL?J.toString():`data:${Q};base64,${t(J)}`}function BG({prompt:J,cacheControlValidator:Q}){var $,K;let j=[];for(let{role:z,content:q,...A}of J){let Z=Q==null?void 0:Q.getCacheControl(A.providerOptions);switch(z){case"system":{if(Z)j.push({role:"system",content:[{type:"text",text:q,cache_control:Z}]});else j.push({role:"system",content:q});break}case"user":{j.push({role:"user",content:q.map((N,X)=>{var E;let L=X===q.length-1,B=(E=Q==null?void 0:Q.getCacheControl(N.providerOptions))!=null?E:L?Z:void 0;switch(N.type){case"text":return{type:"text",text:N.text,...B?{cache_control:B}:{}};case"file":if(N.mediaType.startsWith("image/")){let U=N.mediaType==="image/*"?"image/jpeg":N.mediaType;return{type:"image_url",image_url:{url:zG({data:N.data,mediaType:U})},...B?{cache_control:B}:{}}}else throw new O({functionality:"Only image file parts are supported"})}})});break}case"assistant":{let N="",X=[];for(let E of q)switch(E.type){case"text":{N+=E.text;break}case"tool-call":{X.push({id:E.toolCallId,type:"function",function:{name:E.toolName,arguments:JSON.stringify(E.input)}});break}case"reasoning":{N+=E.text;break}}j.push({role:"assistant",content:Z?[{type:"text",text:N,cache_control:Z}]:N||null,tool_calls:X.length>0?X:void 0});break}case"tool":{let N=q.filter((X)=>X.type!=="tool-approval-response");for(let X=0;X<N.length;X++){let E=N[X],L=E.output,B=X===N.length-1,U=($=Q==null?void 0:Q.getCacheControl(E.providerOptions))!=null?$:B?Z:void 0,Y;switch(L.type){case"text":case"error-text":Y=L.value;break;case"execution-denied":Y=(K=L.reason)!=null?K:"Tool execution denied.";break;case"content":case"json":case"error-json":Y=JSON.stringify(L.value);break}j.push({role:"tool",tool_call_id:E.toolCallId,content:U?[{type:"text",text:Y,cache_control:U}]:Y})}break}default:throw Error(`Unsupported role: ${z}`)}}return j}var r=4;function EG(J){var Q;let $=J==null?void 0:J.alibaba;return(Q=$==null?void 0:$.cacheControl)!=null?Q:$==null?void 0:$.cache_control}var jG=class{constructor(){this.breakpointCount=0,this.warnings=[]}getCacheControl(J){let Q=EG(J);if(!Q)return;if(this.breakpointCount++,this.breakpointCount>r)this.warnings.push({type:"other",message:`Max breakpoint limit exceeded. Only the last ${r} cache markers will take effect.`});return Q}getWarnings(){return this.warnings}},KG=class{constructor(J,Q){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=J,this.config=Q}get provider(){return this.config.provider}async getArgs({prompt:J,maxOutputTokens:Q,temperature:$,topP:K,topK:j,frequencyPenalty:z,presencePenalty:q,stopSequences:A,responseFormat:Z,seed:N,providerOptions:X,tools:E,toolChoice:L}){var B;let U=[],Y=new jG,P=await v({provider:"alibaba",providerOptions:X,schema:$G});if(z!=null)U.push({type:"unsupported",feature:"frequencyPenalty"});let w={model:this.modelId,max_tokens:Q,temperature:$,top_p:K,top_k:j,presence_penalty:q,stop:A,seed:N,response_format:(Z==null?void 0:Z.type)==="json"?Z.schema!=null?{type:"json_schema",json_schema:{schema:Z.schema,name:(B=Z.name)!=null?B:"response",description:Z.description}}:{type:"json_object"}:void 0,...(P==null?void 0:P.enableThinking)!=null?{enable_thinking:P.enableThinking}:{},...(P==null?void 0:P.thinkingBudget)!=null?{thinking_budget:P.thinkingBudget}:{},messages:BG({prompt:J,cacheControlValidator:Y})},{tools:y,toolChoice:S,toolWarnings:F}=i({tools:E,toolChoice:L});return U.push(...Y.getWarnings()),{args:{...w,tools:y,tool_choice:S,...y!=null&&(P==null?void 0:P.parallelToolCalls)!==void 0?{parallel_tool_calls:P.parallelToolCalls}:{}},warnings:[...U,...F]}}async doGenerate(J){var Q;let{args:$,warnings:K}=await this.getArgs(J),{responseHeaders:j,value:z,rawValue:q}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:$,failedResponseHandler:s,successfulResponseHandler:I(qG),abortSignal:J.abortSignal,fetch:this.config.fetch}),A=z.choices[0],Z=[],N=A.message.content;if(N!=null&&N.length>0)Z.push({type:"text",text:N});let X=A.message.reasoning_content;if(X!=null&&X.length>0)Z.push({type:"reasoning",text:X});if(A.message.tool_calls!=null)for(let E of A.message.tool_calls)Z.push({type:"tool-call",toolCallId:E.id,toolName:E.function.name,input:E.function.arguments});return{content:Z,finishReason:{unified:_(A.finish_reason),raw:(Q=A.finish_reason)!=null?Q:void 0},usage:p(z.usage),request:{body:JSON.stringify($)},response:{...u(z),headers:j,body:q},warnings:K}}async doStream(J){let{args:Q,warnings:$}=await this.getArgs(J),K={...Q,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:j,value:z}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:K,failedResponseHandler:s,successfulResponseHandler:XG(AG),abortSignal:J.abortSignal,fetch:this.config.fetch}),q={unified:"other",raw:void 0},A=void 0,Z=!0,N=!1,X=null,E=[];return{stream:z.pipeThrough(new TransformStream({start(L){L.enqueue({type:"stream-start",warnings:$})},transform(L,B){var U,Y,P,w;if(J.includeRawChunks)B.enqueue({type:"raw",rawValue:L.rawValue});if(!L.success){B.enqueue({type:"error",error:L.error});return}let y=L.value;if(Z)Z=!1,B.enqueue({type:"response-metadata",...u(y)});if(y.usage!=null)A=y.usage;if(y.choices.length===0)return;let S=y.choices[0],F=S.delta;if(F.reasoning_content!=null&&F.reasoning_content.length>0){if(X==null){if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;X=a(),B.enqueue({type:"reasoning-start",id:X})}B.enqueue({type:"reasoning-delta",id:X,delta:F.reasoning_content})}if(F.content!=null&&F.content.length>0){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(!N)B.enqueue({type:"text-start",id:"0"}),N=!0;B.enqueue({type:"text-delta",id:"0",delta:F.content})}if(F.tool_calls!=null){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;for(let W of F.tool_calls){let M=(U=W.index)!=null?U:E.length;if(E[M]==null){if(W.id==null)throw new C({data:W,message:"Expected 'id' to be a string."});if(((Y=W.function)==null?void 0:Y.name)==null)throw new C({data:W,message:"Expected 'function.name' to be a string."});B.enqueue({type:"tool-input-start",id:W.id,toolName:W.function.name}),E[M]={id:W.id,type:"function",function:{name:W.function.name,arguments:(P=W.function.arguments)!=null?P:""},hasFinished:!1};let D=E[M];if(D.function.arguments.length>0)B.enqueue({type:"tool-input-delta",id:D.id,delta:D.function.arguments});if(g(D.function.arguments))B.enqueue({type:"tool-input-end",id:D.id}),B.enqueue({type:"tool-call",toolCallId:D.id,toolName:D.function.name,input:D.function.arguments}),D.hasFinished=!0;continue}let H=E[M];if(H.hasFinished)continue;if(((w=W.function)==null?void 0:w.arguments)!=null)H.function.arguments+=W.function.arguments,B.enqueue({type:"tool-input-delta",id:H.id,delta:W.function.arguments});if(g(H.function.arguments))B.enqueue({type:"tool-input-end",id:H.id}),B.enqueue({type:"tool-call",toolCallId:H.id,toolName:H.function.name,input:H.function.arguments}),H.hasFinished=!0}}if(S.finish_reason!=null)q={unified:_(S.finish_reason),raw:S.finish_reason}},flush(L){if(X!=null)L.enqueue({type:"reasoning-end",id:X});if(N)L.enqueue({type:"text-end",id:"0"});L.enqueue({type:"finish",finishReason:q,usage:p(A)})}})),request:{body:JSON.stringify(K)},response:{headers:j}}}},YG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish(),cache_creation_input_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish()}).nullish()}),qG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({id:G.string(),type:G.literal("function"),function:G.object({name:G.string(),arguments:G.string()})})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),AG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),type:G.literal("function").nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),HG=NG(()=>QG(G.object({negativePrompt:G.string().nullish(),audioUrl:G.string().nullish(),promptExtend:G.boolean().nullish(),shotType:G.enum(["single","multi"]).nullish(),watermark:G.boolean().nullish(),audio:G.boolean().nullish(),referenceUrls:G.array(G.string()).nullish(),pollIntervalMs:G.number().positive().nullish(),pollTimeoutMs:G.number().positive().nullish()}).passthrough())),LG=G.object({code:G.string().nullish(),message:G.string(),request_id:G.string().nullish()}),n=R({errorSchema:LG,errorToMessage:(J)=>J.message}),PG=G.object({output:G.object({task_status:G.string(),task_id:G.string()}).nullish(),request_id:G.string().nullish()}),WG=G.object({output:G.object({task_id:G.string(),task_status:G.string(),video_url:G.string().nullish(),submit_time:G.string().nullish(),scheduled_time:G.string().nullish(),end_time:G.string().nullish(),orig_prompt:G.string().nullish(),actual_prompt:G.string().nullish(),code:G.string().nullish(),message:G.string().nullish()}).nullish(),usage:G.object({duration:G.number().nullish(),output_video_duration:G.number().nullish(),SR:G.number().nullish(),size:G.string().nullish()}).nullish(),request_id:G.string().nullish()});function UG(J){if(J.includes("-i2v"))return"i2v";if(J.includes("-r2v"))return"r2v";return"t2v"}var wG=class{constructor(J,Q){this.modelId=J,this.config=Q,this.specificationVersion="v3",this.maxVideosPerCall=1}get provider(){return this.config.provider}async doGenerate(J){var Q,$,K,j,z,q,A,Z,N,X,E;let L=(K=($=(Q=this.config._internal)==null?void 0:Q.currentDate)==null?void 0:$.call(Q))!=null?K:new Date,B=[],U=UG(this.modelId),Y=await v({provider:"alibaba",providerOptions:J.providerOptions,schema:HG}),P={};if(J.prompt!=null)P.prompt=J.prompt;if((Y==null?void 0:Y.negativePrompt)!=null)P.negative_prompt=Y.negativePrompt;if((Y==null?void 0:Y.audioUrl)!=null)P.audio_url=Y.audioUrl;if(U==="i2v"&&J.image!=null)if(J.image.type==="url")P.img_url=J.image.url;else{let x=typeof J.image.data==="string"?J.image.data:e(J.image.data);P.img_url=x}if(U==="r2v"&&(Y==null?void 0:Y.referenceUrls)!=null)P.reference_urls=Y.referenceUrls;let w={};if(J.duration!=null)w.duration=J.duration;if(J.seed!=null)w.seed=J.seed;if(J.resolution!=null)if(U==="i2v"){let x={"1280x720":"720P","720x1280":"720P","960x960":"720P","1088x832":"720P","832x1088":"720P","1920x1080":"1080P","1080x1920":"1080P","1440x1440":"1080P","1632x1248":"1080P","1248x1632":"1080P","832x480":"480P","480x832":"480P","624x624":"480P"};w.resolution=x[J.resolution]||J.resolution}else w.size=J.resolution.replace("x","*");if((Y==null?void 0:Y.promptExtend)!=null)w.prompt_extend=Y.promptExtend;if((Y==null?void 0:Y.shotType)!=null)w.shot_type=Y.shotType;if((Y==null?void 0:Y.watermark)!=null)w.watermark=Y.watermark;if((Y==null?void 0:Y.audio)!=null)w.audio=Y.audio;if(J.aspectRatio)B.push({type:"unsupported",feature:"aspectRatio",details:"Alibaba video models use explicit size/resolution dimensions. Use the resolution option or providerOptions.alibaba for size control."});if(J.fps)B.push({type:"unsupported",feature:"fps",details:"Alibaba video models do not support custom FPS."});if(J.n!=null&&J.n>1)B.push({type:"unsupported",feature:"n",details:"Alibaba video models only support generating 1 video per call."});let{value:y}=await k({url:`${this.config.baseURL}/api/v1/services/aigc/video-generation/video-synthesis`,headers:V(await b(this.config.headers),J.headers,{"X-DashScope-Async":"enable"}),body:{model:this.modelId,input:P,parameters:w},successfulResponseHandler:I(PG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch}),S=(j=y.output)==null?void 0:j.task_id;if(!S)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No task_id returned from Alibaba API. Response: ${JSON.stringify(y)}`});let F=(z=Y==null?void 0:Y.pollIntervalMs)!=null?z:5000,W=(q=Y==null?void 0:Y.pollTimeoutMs)!=null?q:600000,M=Date.now(),H,D;while(!0){if(await l(F,{abortSignal:J.abortSignal}),Date.now()-M>W)throw new f({name:"ALIBABA_VIDEO_GENERATION_TIMEOUT",message:`Video generation timed out after ${W}ms`});let{value:x,responseHeaders:ZG}=await GG({url:`${this.config.baseURL}/api/v1/tasks/${S}`,headers:V(await b(this.config.headers),J.headers),successfulResponseHandler:I(WG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch});D=ZG;let T=(A=x.output)==null?void 0:A.task_status;if(T==="SUCCEEDED"){H=x;break}if(T==="FAILED"||T==="CANCELED")throw new f({name:"ALIBABA_VIDEO_GENERATION_FAILED",message:`Video generation ${T.toLowerCase()}. Task ID: ${S}. ${(N=(Z=x.output)==null?void 0:Z.message)!=null?N:""}`})}let h=(X=H==null?void 0:H.output)==null?void 0:X.video_url;if(!h)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No video URL in response. Task ID: ${S}`});return{videos:[{type:"url",url:h,mediaType:"video/mp4"}],warnings:B,response:{timestamp:L,modelId:this.modelId,headers:D},providerMetadata:{alibaba:{taskId:S,videoUrl:h,...((E=H==null?void 0:H.output)==null?void 0:E.actual_prompt)?{actualPrompt:H.output.actual_prompt}:{},...(H==null?void 0:H.usage)?{usage:{duration:H.usage.duration,outputVideoDuration:H.usage.output_video_duration,resolution:H.usage.SR,size:H.usage.size}}:{}}}}}},SG="1.0.17",FG=G.object({error:G.object({message:G.string(),code:G.string().nullish(),type:G.string().nullish()})}),s=R({errorSchema:FG,errorToMessage:(J)=>J.error.message});function DG(J={}){var Q,$;let K=(Q=d(J.baseURL))!=null?Q:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",j=($=d(J.videoBaseURL))!=null?$:"https://dashscope-intl.aliyuncs.com",z=()=>o({Authorization:`Bearer ${JG({apiKey:J.apiKey,environmentVariableName:"ALIBABA_API_KEY",description:"Alibaba Cloud (DashScope)"})}`,...J.headers},`ai-sdk/alibaba/${SG}`),q=(N)=>{var X;return new KG(N,{provider:"alibaba.chat",baseURL:K,headers:z,fetch:J.fetch,includeUsage:(X=J.includeUsage)!=null?X:!0})},A=(N)=>new wG(N,{provider:"alibaba.video",baseURL:j,headers:z,fetch:J.fetch}),Z=function(N){if(new.target)throw Error("The Alibaba model function cannot be called with the new keyword.");return q(N)};return Z.specificationVersion="v3",Z.languageModel=q,Z.chatModel=q,Z.video=A,Z.videoModel=A,Z.imageModel=(N)=>{throw new m({modelId:N,modelType:"imageModel"})},Z.embeddingModel=(N)=>{throw new m({modelId:N,modelType:"embeddingModel"})},Z}var gG=DG();export{DG as createAlibaba,gG as alibaba,SG as VERSION};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ce as F}from"./chunk-xdv9xt0y.js";import{Oe as z,Re as B,gf as D}from"./chunk-pjbbdm96.js";import{br as x}from"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import{Tu as q}from"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-s2za1y84.js";var N="2.0.41",P=q.object({message:q.string(),type:q.string(),param:q.string(),code:q.string()}),Q={errorSchema:P,errorToMessage:(k)=>k.message};function T(k={}){var y;let G=D((y=k.baseURL)!=null?y:"https://api.cerebras.ai/v1"),J=()=>z({Authorization:`Bearer ${B({apiKey:k.apiKey,environmentVariableName:"CEREBRAS_API_KEY",description:"Cerebras API key"})}`,...k.headers},`ai-sdk/cerebras/${N}`),w=(j)=>{return new F(j,{provider:"cerebras.chat",url:({path:K})=>`${G}${K}`,headers:J,fetch:k.fetch,errorStructure:Q,supportsStructuredOutputs:!0})},f=(j)=>w(j);return f.specificationVersion="v3",f.languageModel=w,f.chat=w,f.embeddingModel=(j)=>{throw new x({modelId:j,modelType:"embeddingModel"})},f.textEmbeddingModel=f.embeddingModel,f.imageModel=(j)=>{throw new x({modelId:j,modelType:"imageModel"})},f}var Z=T();export{T as createCerebras,Z as cerebras,N as VERSION};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{t as a,u as b,v as c,w as d,x as e,y as f,z as g}from"./chunk-9zrwbxx0.js";import"./chunk-atbm0pnt.js";import"./chunk-s86fj82v.js";import"./chunk-58gp7wbg.js";import"./chunk-w4hbw37v.js";import"./chunk-7qxn24qa.js";import"./chunk-d2n09yvh.js";import"./chunk-f3c9667r.js";import"./chunk-qpv4438m.js";import"./chunk-z2q3mg73.js";import"./chunk-08y06vgt.js";import"./chunk-9p83me3p.js";import"./chunk-9wm41z2f.js";import"./chunk-48j09m6e.js";import"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-tedrfa7d.js";import"./chunk-ynfbz3sz.js";import"./chunk-s2za1y84.js";export{e as waitForDependencies,c as layer,f as get,d as defaultLayer,g as TuiConfig,b as Service,a as Info};
|