claude-code-best 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/{chunk-gf4xnmc4.js → chunk-03881djp.js} +11 -11
- package/dist/{chunk-pn0k5wak.js → chunk-03qpgz7e.js} +749 -23
- package/dist/{chunk-4fz64hz2.js → chunk-04hdmsbx.js} +1 -1
- package/dist/{chunk-3qwkrx4a.js → chunk-06zzah5k.js} +19 -20
- package/dist/{chunk-2j1t3hcw.js → chunk-0fnpkgd6.js} +8 -8
- package/dist/{chunk-v6v77fzm.js → chunk-0jcebzyj.js} +45 -46
- package/dist/{chunk-waar1mpa.js → chunk-0mf8c3kx.js} +2 -3
- package/dist/{chunk-ss64n2ak.js → chunk-0z70mbgk.js} +45 -46
- package/dist/{chunk-tych856j.js → chunk-12e5a806.js} +17 -18
- package/dist/{chunk-txh9bz34.js → chunk-13pvvkd3.js} +45 -46
- package/dist/{chunk-62a2aw2s.js → chunk-194wmkgc.js} +46 -47
- package/dist/{chunk-zq8mhgbb.js → chunk-196500e9.js} +5 -5
- package/dist/{chunk-5yg9xx1w.js → chunk-1fn2d8e6.js} +48 -49
- package/dist/chunk-1gvjejsj.js +334 -0
- package/dist/{chunk-a9mer025.js → chunk-1mygjwf9.js} +45 -46
- package/dist/{chunk-hp3qwnm3.js → chunk-1scf0v8s.js} +9 -9
- package/dist/{chunk-v7drmj3a.js → chunk-1y0e25vy.js} +1 -1
- package/dist/{chunk-89e9sqgg.js → chunk-1ynhxc03.js} +5 -5
- package/dist/{chunk-pzmfb8kz.js → chunk-21r0t9p5.js} +73 -74
- package/dist/{chunk-d4v2s6fb.js → chunk-26zepstf.js} +5 -5
- package/dist/{chunk-r7z5mrhr.js → chunk-274pv89a.js} +45 -46
- package/dist/{chunk-hgjn6jcc.js → chunk-2dsqf7sp.js} +1 -1
- package/dist/{chunk-q6zzafj6.js → chunk-2fn6s9rq.js} +45 -46
- package/dist/{chunk-57njr518.js → chunk-2jzsktxp.js} +45 -46
- package/dist/{chunk-npwn0tpx.js → chunk-2k9fbk1p.js} +18 -19
- package/dist/{chunk-2jqeh9qy.js → chunk-2krazyfm.js} +46 -47
- package/dist/{chunk-0xbt86zm.js → chunk-2qhfqgbj.js} +18 -19
- package/dist/{chunk-7d3ba1n4.js → chunk-2t5ve6ev.js} +1 -1
- package/dist/{chunk-tf71jcn7.js → chunk-2wvxqpfc.js} +10 -11
- package/dist/{chunk-0mpe3gxm.js → chunk-2zzh0pds.js} +48 -49
- package/dist/{chunk-dfcxaccs.js → chunk-33fsprrx.js} +5 -5
- package/dist/{chunk-x97myxem.js → chunk-347zaz9e.js} +2 -2
- package/dist/{chunk-ps0x78g9.js → chunk-35g2t0y0.js} +1 -1
- package/dist/{chunk-s7fxx0yr.js → chunk-38tedxdq.js} +49 -50
- package/dist/{chunk-vxk5xq7a.js → chunk-39zy97qa.js} +1 -1
- package/dist/{chunk-z1eetpbw.js → chunk-3b0p0vrc.js} +57 -58
- package/dist/{chunk-1gek5y1c.js → chunk-3b9ar57s.js} +4 -5
- package/dist/{chunk-f6mtfbqk.js → chunk-3caf4y23.js} +18 -19
- package/dist/{chunk-trv1sz38.js → chunk-3cvw39wv.js} +6 -7
- package/dist/{chunk-z6e5jp2w.js → chunk-3ev51j3h.js} +2 -4
- package/dist/{chunk-np8325ac.js → chunk-3fp4s54c.js} +5 -7
- package/dist/{chunk-s4012mt2.js → chunk-3fqxcp51.js} +8 -12
- package/dist/{chunk-0xjt9p0k.js → chunk-3h4pyb94.js} +4 -4
- package/dist/{chunk-056544nq.js → chunk-3me1hah2.js} +45 -46
- package/dist/{chunk-ryhkqxgp.js → chunk-3synjm2x.js} +2 -2
- package/dist/{chunk-maqx3n0g.js → chunk-3tbrhape.js} +3 -3
- package/dist/{chunk-02xcx2td.js → chunk-42f9j6bp.js} +47 -48
- package/dist/{chunk-v3gwjyqs.js → chunk-4451b82w.js} +56 -57
- package/dist/{chunk-wftrdpva.js → chunk-4mtfrpdt.js} +45 -46
- package/dist/{chunk-7sgatxct.js → chunk-4qqswajh.js} +5 -5
- package/dist/{chunk-1g8jyf1v.js → chunk-4xbmk1fe.js} +45 -46
- package/dist/chunk-4zkbp6fk.js +175 -0
- package/dist/{chunk-fsb6jy4z.js → chunk-57vnbap8.js} +5 -5
- package/dist/{chunk-s3648c4w.js → chunk-5rezdbjk.js} +45 -46
- package/dist/{chunk-4tre5ddg.js → chunk-5wb5ym2h.js} +2 -2
- package/dist/{chunk-tmpakqa0.js → chunk-5zbm7te6.js} +1 -1
- package/dist/{chunk-erpa4tnf.js → chunk-6174c2qe.js} +17 -18
- package/dist/{chunk-0gy6y0md.js → chunk-61j8wh0j.js} +45 -46
- package/dist/{chunk-gha824cb.js → chunk-61q7vfrc.js} +1 -1
- package/dist/{chunk-j24yx86n.js → chunk-648z0z9m.js} +2 -2
- package/dist/{chunk-7pgqws2h.js → chunk-66s54sg3.js} +48 -49
- package/dist/{chunk-8bch667g.js → chunk-683cf5j7.js} +45 -46
- package/dist/{chunk-1ph0krjd.js → chunk-6a316dkg.js} +17 -17
- package/dist/{chunk-8vawdfrp.js → chunk-6c5zyga7.js} +3 -5
- package/dist/{chunk-mp4twja3.js → chunk-6e1xak8j.js} +5 -6
- package/dist/{chunk-sw3eq2x7.js → chunk-6p2kydfj.js} +45 -46
- package/dist/{chunk-8jpxzesa.js → chunk-6ye6d9gw.js} +1 -1
- package/dist/{chunk-ysm3qs2d.js → chunk-714yn4hd.js} +18 -18
- package/dist/{chunk-vzfjprwq.js → chunk-763jzvy7.js} +46 -47
- package/dist/{chunk-09rqypeh.js → chunk-777vk9pb.js} +14 -18
- package/dist/{chunk-t2gw0npv.js → chunk-79y6s5n4.js} +4 -4
- package/dist/{chunk-d04zy7q7.js → chunk-7jsk6wen.js} +46 -47
- package/dist/{chunk-e6t17rzg.js → chunk-7k3mv7cr.js} +18 -19
- package/dist/{chunk-zwa133ny.js → chunk-7nebst32.js} +2 -2
- package/dist/{chunk-0640dx01.js → chunk-7p3kar3b.js} +51 -52
- package/dist/{chunk-jkvn8cpz.js → chunk-7pfwfh7h.js} +46 -47
- package/dist/{chunk-skpbdpf7.js → chunk-7qf1wt5n.js} +2 -2
- package/dist/{chunk-37qwc47p.js → chunk-7r2k7qes.js} +1 -1
- package/dist/{chunk-hhcwvy82.js → chunk-7whq2gjt.js} +45 -46
- package/dist/{chunk-tzm0t75a.js → chunk-7xnaj5zg.js} +62 -63
- package/dist/{chunk-d6vexw90.js → chunk-7xxqf2r6.js} +1 -1
- package/dist/{chunk-dc83q1dm.js → chunk-81dq52pk.js} +2 -2
- package/dist/{chunk-qmec6qfj.js → chunk-8200svcn.js} +2 -2
- package/dist/{chunk-rdfsbd7v.js → chunk-84tfftm0.js} +3 -3
- package/dist/{chunk-k596540j.js → chunk-870vafdb.js} +17 -18
- package/dist/{chunk-jb2h39vp.js → chunk-89be833d.js} +47 -48
- package/dist/{chunk-mbv3f2vm.js → chunk-8q4yg5pk.js} +4 -4
- package/dist/{chunk-azrhqyw5.js → chunk-8vkefxtt.js} +45 -46
- package/dist/{chunk-16zwykx1.js → chunk-8wzwqd1z.js} +46 -47
- package/dist/{chunk-ssjdz86v.js → chunk-8xmqgp50.js} +1 -1
- package/dist/{chunk-twj1xr3v.js → chunk-9073kfry.js} +18 -19
- package/dist/{chunk-y517zad0.js → chunk-90tb6xj7.js} +48 -49
- package/dist/{chunk-g74eg4fj.js → chunk-92v75fwp.js} +7 -7
- package/dist/{chunk-mps411h4.js → chunk-95jqp7w7.js} +46 -47
- package/dist/{chunk-fshch3vg.js → chunk-963ysvck.js} +45 -46
- package/dist/{chunk-rhc0wcpx.js → chunk-979mvrgv.js} +17 -18
- package/dist/{chunk-b44ta58q.js → chunk-995f4htk.js} +45 -46
- package/dist/{chunk-nsb541r5.js → chunk-9dgec475.js} +5 -5
- package/dist/{chunk-9q3gw5ag.js → chunk-9hcw3b4h.js} +2 -2
- package/dist/{chunk-p93tfa33.js → chunk-9kgh44wk.js} +64 -65
- package/dist/{chunk-ng8q29em.js → chunk-9msn8xwq.js} +4 -5
- package/dist/{chunk-477asbfy.js → chunk-9nm5sbkf.js} +23 -23
- package/dist/{chunk-98bv6b37.js → chunk-9vshpe8q.js} +54 -55
- package/dist/{chunk-tjgwm6sr.js → chunk-9wz3jvbh.js} +23 -24
- package/dist/{chunk-6k4cnkcv.js → chunk-9zyfkrwt.js} +14 -14
- package/dist/{chunk-wmv1s840.js → chunk-a0yw6a1m.js} +17 -18
- package/dist/{chunk-kac6nm42.js → chunk-a1pm2zwv.js} +47 -48
- package/dist/{chunk-tqdxpcqt.js → chunk-a4c4m0nx.js} +1757 -42
- package/dist/{chunk-nhmtsw2p.js → chunk-a6hvbf61.js} +17 -18
- package/dist/{chunk-r4s3jfxp.js → chunk-a6s9h1qh.js} +2 -2
- package/dist/{chunk-enqe4vt0.js → chunk-a75g97ek.js} +18 -19
- package/dist/{chunk-qnyeawaq.js → chunk-ag255pqj.js} +45 -46
- package/dist/{chunk-k92v69y5.js → chunk-akc4jb4z.js} +1 -1
- package/dist/{chunk-pv6amr31.js → chunk-ardzdtan.js} +1 -1
- package/dist/{chunk-cc9tgq38.js → chunk-asfhkynx.js} +4 -4
- package/dist/{chunk-3aep7zqq.js → chunk-b4hkf17a.js} +1 -1
- package/dist/{chunk-2pxdjrhs.js → chunk-b7e8n2r7.js} +1 -1
- package/dist/{chunk-3t9d7d3p.js → chunk-bem4prar.js} +48 -49
- package/dist/{chunk-fn510gqw.js → chunk-brnc96x6.js} +2 -3
- package/dist/{chunk-j04z48rw.js → chunk-bt64sq5y.js} +3 -3
- package/dist/{chunk-5kf943w4.js → chunk-byrh00bq.js} +8 -8
- package/dist/{chunk-2xezy8pc.js → chunk-c209ascy.js} +9 -10
- package/dist/{chunk-gbd64n0k.js → chunk-c358prbg.js} +231 -4003
- package/dist/{chunk-xzrg833y.js → chunk-c3a6ss16.js} +4 -4
- package/dist/{chunk-edemd80h.js → chunk-c9js3490.js} +4 -4
- package/dist/{chunk-7ptfc382.js → chunk-cd99ankh.js} +18 -19
- package/dist/{chunk-8y3eszv7.js → chunk-cj8m3h8r.js} +2 -2
- package/dist/chunk-cmdvq8tr.js +4265 -0
- package/dist/{chunk-dqz26fah.js → chunk-ctbkh6m5.js} +46 -47
- package/dist/{chunk-ghbqgn5f.js → chunk-cy7hbg8h.js} +11 -12
- package/dist/{chunk-qeab87nr.js → chunk-d01wa055.js} +3 -3
- package/dist/{chunk-znehavdm.js → chunk-d2vb6m9e.js} +2 -2
- package/dist/{chunk-vw8ptdz0.js → chunk-d5qv71vm.js} +8 -12
- package/dist/{chunk-kv1sqqsr.js → chunk-d7mjq8wa.js} +101 -102
- package/dist/{chunk-x9a9as9h.js → chunk-d90bhmt1.js} +15 -18
- package/dist/{chunk-w5pbqp2n.js → chunk-dbv7vcrz.js} +45 -46
- package/dist/{chunk-61edjmf6.js → chunk-dchgtage.js} +2 -2
- package/dist/{chunk-9tnpmx63.js → chunk-de1831as.js} +5 -5
- package/dist/{chunk-q9t339jp.js → chunk-dh6khzjj.js} +2 -2
- package/dist/{chunk-0t913kzh.js → chunk-djydtvkr.js} +14 -20
- package/dist/{chunk-130m6ej7.js → chunk-dm2gyqck.js} +45 -46
- package/dist/{chunk-8h2mvr8n.js → chunk-dm2wnjrr.js} +18 -206
- package/dist/{chunk-kjhfx6jg.js → chunk-dnqrmqfa.js} +45 -46
- package/dist/{chunk-9mtx3hxq.js → chunk-dqrmn537.js} +4 -4
- package/dist/{chunk-jbdak60d.js → chunk-e0jj5paw.js} +45 -46
- package/dist/{chunk-wq5f1dmn.js → chunk-e1hqpkj1.js} +48 -49
- package/dist/{chunk-qf6kw5fd.js → chunk-e1hz6df1.js} +3 -3
- package/dist/{chunk-jeytpyca.js → chunk-e3kwey2b.js} +48 -49
- package/dist/{chunk-4x59357s.js → chunk-e4518h45.js} +2 -2
- package/dist/{chunk-wpbbt8sz.js → chunk-ed8b4mw3.js} +7 -7
- package/dist/{chunk-bkty19wy.js → chunk-eef1npre.js} +3 -4
- package/dist/{chunk-rhwz80w4.js → chunk-ej1wwrcw.js} +531 -311
- package/dist/{chunk-02ef2zy5.js → chunk-ejrvwn8n.js} +45 -46
- package/dist/{chunk-pb2nc7r0.js → chunk-ep17krqe.js} +31 -5
- package/dist/{chunk-152mfab2.js → chunk-epkw6jp6.js} +7 -7
- package/dist/{chunk-4ffegxyk.js → chunk-eqn3qmfz.js} +45 -46
- package/dist/{chunk-6y8vpxcg.js → chunk-eqvsjpvm.js} +46 -47
- package/dist/{chunk-0rxk47fx.js → chunk-etbqf6ty.js} +51 -52
- package/dist/{chunk-bbwjjmba.js → chunk-etv5netv.js} +4 -4
- package/dist/{chunk-pv7qc50f.js → chunk-evbemh4j.js} +48 -49
- package/dist/{chunk-k21fy9rs.js → chunk-ewcq3dcx.js} +7 -7
- package/dist/{chunk-nsbr8dpm.js → chunk-ez3c99v0.js} +20 -21
- package/dist/{chunk-5pnh2x8z.js → chunk-f39ftn0d.js} +52 -53
- package/dist/{chunk-axgy305y.js → chunk-f9my4m74.js} +46 -47
- package/dist/{chunk-9s5hnvyq.js → chunk-fcwx5cbb.js} +4 -4
- package/dist/{chunk-d4qhjhz1.js → chunk-fdc4mbdf.js} +1 -1
- package/dist/{chunk-1bdhymt6.js → chunk-ff5z5bf0.js} +6 -6
- package/dist/{chunk-2fv8vjbj.js → chunk-fg46hc6d.js} +14 -20
- package/dist/{chunk-c5z98h6c.js → chunk-fj7x7q9f.js} +46 -47
- package/dist/{chunk-nn8nkawn.js → chunk-fjne3x6c.js} +9 -10
- package/dist/{chunk-ry9rwebn.js → chunk-fqpabm91.js} +1 -1
- package/dist/{chunk-mdvqw8nh.js → chunk-fxqp3yt4.js} +6 -7
- package/dist/{chunk-tgj54psr.js → chunk-fy6tp8zj.js} +2 -2
- package/dist/{chunk-fw64v27c.js → chunk-fz0ch109.js} +3 -3
- package/dist/{chunk-v4swd98x.js → chunk-g04kk7dj.js} +46 -47
- package/dist/{chunk-a2zd92vt.js → chunk-g0ab48tb.js} +18 -19
- package/dist/{chunk-k6kfrjpr.js → chunk-g4fc7hyp.js} +18 -19
- package/dist/{chunk-j2cbcyf7.js → chunk-g649rtg8.js} +4 -6
- package/dist/{chunk-ryrk4yyb.js → chunk-gcxez66d.js} +7 -7
- package/dist/{chunk-8r07jh37.js → chunk-gd0gptts.js} +45 -46
- package/dist/{chunk-tsdqd747.js → chunk-gfex5hb6.js} +10 -4
- package/dist/{chunk-nkvjyysy.js → chunk-gnq6fd5g.js} +3 -3
- package/dist/{chunk-5rtvzx3a.js → chunk-gv4dsg6q.js} +54 -55
- package/dist/{chunk-9anx0pjh.js → chunk-h48af73s.js} +46 -47
- package/dist/{chunk-6djwbtcq.js → chunk-h6v79pb5.js} +299 -1848
- package/dist/{chunk-t0qfm201.js → chunk-hd98he8z.js} +21 -22
- package/dist/{chunk-8skmv844.js → chunk-hda58kjk.js} +4 -4
- package/dist/{chunk-3jtdg17c.js → chunk-hnx0eg6x.js} +3 -3
- package/dist/{chunk-32pyg17e.js → chunk-hs7qq18b.js} +52 -54
- package/dist/{chunk-jtn6eqc6.js → chunk-hw1qqgzj.js} +50 -51
- package/dist/{chunk-5m1a8s4f.js → chunk-hw4w8f8x.js} +9 -9
- package/dist/{chunk-32qgpkrv.js → chunk-hwby3r4g.js} +3 -3
- package/dist/{chunk-z1hsgc00.js → chunk-j06y02aw.js} +3 -3
- package/dist/{chunk-3j6n24jx.js → chunk-j16rp8y4.js} +1 -1
- package/dist/{chunk-3ngvwb6v.js → chunk-j1ftb6pr.js} +17 -18
- package/dist/{chunk-qzt21m86.js → chunk-j1r1mywp.js} +60 -318
- package/dist/{chunk-bbx27p87.js → chunk-j6493m6s.js} +4 -4
- package/dist/{chunk-ebx4j5r5.js → chunk-j6k3zjb5.js} +5 -7
- package/dist/{chunk-ha55t5qp.js → chunk-jbhhp82d.js} +46 -47
- package/dist/{chunk-h28tsw2b.js → chunk-jbts6gcv.js} +17 -18
- package/dist/{chunk-by6q9nyh.js → chunk-jfhmk1c6.js} +14 -20
- package/dist/{chunk-v4bv7spb.js → chunk-jg85npcz.js} +1 -1
- package/dist/{chunk-x2sq2n9p.js → chunk-jj2c3dtz.js} +4 -4
- package/dist/{chunk-0w3v0va8.js → chunk-jr10vd79.js} +45 -46
- package/dist/{chunk-nwazmsac.js → chunk-k25d0zv6.js} +3 -3
- package/dist/{chunk-r3xpr2gw.js → chunk-k2m40brd.js} +46 -47
- package/dist/{chunk-mmfsczbb.js → chunk-k3yxwy95.js} +3 -3
- package/dist/{chunk-vd1j7rxx.js → chunk-k73mekxt.js} +45 -46
- package/dist/chunk-k97ze3a8.js +524 -0
- package/dist/{chunk-748c2115.js → chunk-kbzh54rh.js} +1 -1
- package/dist/{chunk-bysb8jxc.js → chunk-kd2g8s3v.js} +45 -46
- package/dist/{chunk-sj6vxzbt.js → chunk-kkq06r33.js} +47 -48
- package/dist/{chunk-5qxgyby3.js → chunk-kmgp6prw.js} +613 -3
- package/dist/{chunk-t8nxdhhk.js → chunk-kmnz4ygv.js} +2 -2
- package/dist/{chunk-ge1dc6ya.js → chunk-knqbt146.js} +1 -1
- package/dist/{chunk-gccv47g7.js → chunk-knqgpzjb.js} +1 -1
- package/dist/{chunk-amb7wnvc.js → chunk-kw6sq28k.js} +78 -80
- package/dist/{chunk-0fghx6xc.js → chunk-m1xjfwvq.js} +45 -46
- package/dist/{chunk-hq7bsd63.js → chunk-m6ee4m2f.js} +45 -46
- package/dist/{chunk-5ycqyqbj.js → chunk-m8v1x99r.js} +2 -2
- package/dist/{chunk-xax0hpem.js → chunk-m9g44vvc.js} +7 -7
- package/dist/{chunk-vnhwdz55.js → chunk-mayfcyq2.js} +6 -6
- package/dist/{chunk-079wsdz8.js → chunk-mbetxrea.js} +46 -47
- package/dist/{chunk-y1gr81t7.js → chunk-mcmh43pn.js} +48 -49
- package/dist/{chunk-cmfbr80m.js → chunk-mh6e2xje.js} +24 -25
- package/dist/{chunk-4jr2yda9.js → chunk-mmcr6z1m.js} +5 -5
- package/dist/{chunk-qgradx63.js → chunk-mq37sf2q.js} +45 -46
- package/dist/{chunk-fmq83t7h.js → chunk-n1pa72ns.js} +2 -2
- package/dist/{chunk-1v78w60f.js → chunk-n3grbsgp.js} +51 -52
- package/dist/{chunk-xx7mdmhn.js → chunk-n562n1g9.js} +4 -4
- package/dist/{chunk-8gwh0zz4.js → chunk-n8whv674.js} +7 -8
- package/dist/{chunk-0w1q734z.js → chunk-namrjc11.js} +2 -2
- package/dist/{chunk-nvgpkm2k.js → chunk-nhpkz83c.js} +50 -51
- package/dist/{chunk-ez365ky1.js → chunk-nkvkmxw4.js} +2 -2
- package/dist/{chunk-85a0szmn.js → chunk-nsh75cdk.js} +19 -20
- package/dist/{chunk-21as2rdn.js → chunk-p4ebkyd1.js} +15 -15
- package/dist/{chunk-b6k231hq.js → chunk-p80rbxhh.js} +4 -4
- package/dist/{chunk-e8679xhx.js → chunk-p8vf12kz.js} +45 -46
- package/dist/{chunk-mkbt904v.js → chunk-pe3t1k22.js} +54 -55
- package/dist/{chunk-c729rmzs.js → chunk-pedmqmrf.js} +6 -6
- package/dist/{chunk-knq8ekjs.js → chunk-pj4p53ve.js} +45 -46
- package/dist/{chunk-122wp3n9.js → chunk-prgsmrmy.js} +1 -1
- package/dist/{chunk-sp78s324.js → chunk-psz76514.js} +1 -1
- package/dist/{chunk-kfjph09k.js → chunk-pwxgff26.js} +5 -5
- package/dist/{chunk-3gspysya.js → chunk-q0exa8dt.js} +47 -48
- package/dist/{chunk-j95j6wz8.js → chunk-q27bsq0y.js} +1 -1
- package/dist/{chunk-zach7fbv.js → chunk-q2q31ng9.js} +18 -19
- package/dist/{chunk-46brhsn0.js → chunk-q5v3yazb.js} +3 -3
- package/dist/{chunk-babm97pz.js → chunk-q6nvm3r5.js} +46 -47
- package/dist/{chunk-akjm94cc.js → chunk-q76tj8p6.js} +1 -1
- package/dist/{chunk-9kqtdah4.js → chunk-qwj4n799.js} +1 -1
- package/dist/{chunk-3khzwp24.js → chunk-qz32t082.js} +1 -1
- package/dist/{chunk-apysba52.js → chunk-r1pxpxxk.js} +5 -5
- package/dist/{chunk-hb4rkc7j.js → chunk-r26enj81.js} +3 -3
- package/dist/{chunk-h5hr49cj.js → chunk-r6pe7y6z.js} +6 -6
- package/dist/{chunk-zatd0y92.js → chunk-r8m19xnp.js} +4 -5
- package/dist/{chunk-nx91kgtg.js → chunk-r9cy8b69.js} +45 -46
- package/dist/{chunk-ts2p6bv1.js → chunk-r9e0q1sn.js} +1 -1
- package/dist/{chunk-y0fxk2a0.js → chunk-rb67t4fq.js} +28 -29
- package/dist/{chunk-gx4s76kc.js → chunk-rb79txq9.js} +3 -3
- package/dist/{chunk-48be0jbb.js → chunk-rbkhemh9.js} +14 -20
- package/dist/{chunk-rfqk7r8t.js → chunk-rd3w1pnm.js} +18 -19
- package/dist/{chunk-njz8pe1p.js → chunk-rjgn3yzv.js} +10 -11
- package/dist/{chunk-em1rkrsn.js → chunk-rpm043xg.js} +7 -7
- package/dist/{chunk-y85qd8t4.js → chunk-rwyc5eh7.js} +46 -47
- package/dist/{chunk-7v64zm6e.js → chunk-rzgj07hb.js} +46 -47
- package/dist/{chunk-rx9q2qs6.js → chunk-s26mv9yh.js} +9 -10
- package/dist/{chunk-bnwvk65v.js → chunk-s337frnp.js} +21 -22
- package/dist/{chunk-rax41kde.js → chunk-s3gzpm93.js} +1 -1
- package/dist/{chunk-b9jfm493.js → chunk-s5yykd80.js} +9 -9
- package/dist/{chunk-8w3hq14n.js → chunk-s6xaezgh.js} +5 -5
- package/dist/{chunk-s38qgqfs.js → chunk-s9nr589x.js} +5 -5
- package/dist/{chunk-436qfn2b.js → chunk-sbafpprr.js} +46 -47
- package/dist/{chunk-4fjc0zqh.js → chunk-sj7m6hsp.js} +1 -1
- package/dist/{chunk-a2h76rmk.js → chunk-sk1z4m1n.js} +3 -3
- package/dist/{chunk-e5fx2rh8.js → chunk-snpjjn5q.js} +2 -2
- package/dist/{chunk-9zp480zf.js → chunk-sqzmp660.js} +5 -5
- package/dist/{chunk-vnw84e7x.js → chunk-strvbymz.js} +14 -20
- package/dist/{chunk-70t19cmb.js → chunk-svb53yk3.js} +46 -47
- package/dist/{chunk-x6faa621.js → chunk-sxceea76.js} +3 -3
- package/dist/{chunk-0kh2f6kh.js → chunk-t0b0bas5.js} +3 -3
- package/dist/{chunk-h3zs3e2w.js → chunk-t6q0r0gs.js} +5 -5
- package/dist/{chunk-has8qv2q.js → chunk-t7a8ch9m.js} +45 -46
- package/dist/{chunk-vd7xnt59.js → chunk-t7z61mwv.js} +46 -47
- package/dist/{chunk-k6nzapvb.js → chunk-tbm211vs.js} +9 -9
- package/dist/{chunk-axe3e48v.js → chunk-tcgzwpm2.js} +46 -47
- package/dist/{chunk-cfw9qbca.js → chunk-tj6kayqs.js} +45 -46
- package/dist/{chunk-7mpdfrdm.js → chunk-tjbjxrqz.js} +7 -8
- package/dist/{chunk-d4snzh5t.js → chunk-tjwcr6x0.js} +45 -46
- package/dist/{chunk-wzk6czjb.js → chunk-tnhf35ky.js} +46 -47
- package/dist/{chunk-0rkp2b99.js → chunk-tpgs71gk.js} +5 -5
- package/dist/{chunk-x5x0vw1t.js → chunk-ttqs2rma.js} +45 -46
- package/dist/{chunk-6kwstfh1.js → chunk-ttswf1a8.js} +19 -20
- package/dist/{chunk-h33aaf50.js → chunk-txeekahj.js} +3 -3
- package/dist/{chunk-j4y57wq4.js → chunk-ty49mrty.js} +135 -134
- package/dist/{chunk-9rtywfhp.js → chunk-v1chtgnf.js} +1 -1
- package/dist/{chunk-sqnhqd21.js → chunk-v4bx30kd.js} +45 -46
- package/dist/{chunk-dd1h2gf8.js → chunk-v4nrk2f9.js} +9 -10
- package/dist/{chunk-de6yntzw.js → chunk-v6maw2x3.js} +46 -47
- package/dist/{chunk-z6n54r5f.js → chunk-veeeke8r.js} +19 -20
- package/dist/{chunk-d692gdhk.js → chunk-vhggszd9.js} +2 -2
- package/dist/{chunk-3nmhzccb.js → chunk-vpp13z80.js} +2 -2
- package/dist/{chunk-953e3q02.js → chunk-vrbt94t8.js} +45 -46
- package/dist/{chunk-28htzjs3.js → chunk-vs95kmdc.js} +45 -46
- package/dist/{chunk-2b5ymkne.js → chunk-vsfqfbsh.js} +1 -1
- package/dist/{chunk-y3d6k3h8.js → chunk-vsrejr6p.js} +56 -57
- package/dist/{chunk-rzxz8sq9.js → chunk-vyejsevp.js} +8 -8
- package/dist/{chunk-5cmwz21s.js → chunk-vyty9qyf.js} +55 -56
- package/dist/{chunk-jpk5sqms.js → chunk-w3sv9y41.js} +4 -4
- package/dist/{chunk-hf62dbkb.js → chunk-w43ks9ey.js} +53 -54
- package/dist/{chunk-nnmbprwz.js → chunk-w94epkj0.js} +6 -6
- package/dist/{chunk-j64ga6ta.js → chunk-whssn5y4.js} +304 -272
- package/dist/{chunk-a9jhnc53.js → chunk-wjhhetv4.js} +15 -21
- package/dist/{chunk-h13g15kb.js → chunk-wmbpegg3.js} +1 -1
- package/dist/{chunk-t76hcq6s.js → chunk-wnff3sck.js} +45 -46
- package/dist/{chunk-fcsfvfzs.js → chunk-wp6axm3b.js} +45 -46
- package/dist/{chunk-j8dp4nrp.js → chunk-wqmza60n.js} +2 -2
- package/dist/{chunk-h8h3x389.js → chunk-wqx2ybqh.js} +14 -14
- package/dist/{chunk-f520e1kz.js → chunk-wrxzr8y1.js} +59 -60
- package/dist/{chunk-1etr91kw.js → chunk-x1afcacf.js} +3 -3
- package/dist/{chunk-xpb6b1ad.js → chunk-x3nshkcr.js} +5 -5
- package/dist/{chunk-84rdx991.js → chunk-x4t0n8t3.js} +5 -6
- package/dist/{chunk-12519p65.js → chunk-xaw4scep.js} +2 -2
- package/dist/{chunk-tcqnnmx4.js → chunk-xce2xjv1.js} +45 -46
- package/dist/{chunk-k9f8j3dw.js → chunk-xfe2m04z.js} +1 -1
- package/dist/{chunk-7wqaz3g2.js → chunk-xfe479s0.js} +46 -47
- package/dist/{chunk-b4jdbw5f.js → chunk-xkfzn8zv.js} +19 -19
- package/dist/{chunk-te0m9qc6.js → chunk-xqch8m5f.js} +7 -7
- package/dist/{chunk-akvjpz1g.js → chunk-xspp3626.js} +4 -4
- package/dist/{chunk-hy654gmx.js → chunk-xzh7ae0a.js} +54 -55
- package/dist/{chunk-1sg2k4mx.js → chunk-y3jmpqat.js} +518 -518
- package/dist/{chunk-avtcf910.js → chunk-y5x8wqe5.js} +1 -1
- package/dist/{chunk-kmt02xfc.js → chunk-y7sdst27.js} +51 -52
- package/dist/{chunk-ypke4awr.js → chunk-yb4zstfq.js} +45 -46
- package/dist/{chunk-2n45kpbz.js → chunk-yhg6hhw7.js} +5 -5
- package/dist/{chunk-nkv825jk.js → chunk-yk15ya1h.js} +7 -7
- package/dist/{chunk-ttaq5hs0.js → chunk-ys51gfy8.js} +18 -19
- package/dist/{chunk-hgbydce1.js → chunk-yy3dj90t.js} +1 -1
- package/dist/{chunk-7739pg2c.js → chunk-z0csm2zq.js} +11 -1
- package/dist/{chunk-41h5jsrn.js → chunk-z3vynq90.js} +48 -49
- package/dist/{chunk-dxcr07z5.js → chunk-ze6zvkg6.js} +4 -4
- package/dist/{chunk-9690h8m1.js → chunk-zmdg1zhh.js} +18 -19
- package/dist/{chunk-anbq8stx.js → chunk-znpx8t4w.js} +18 -19
- package/dist/{chunk-9j37xjaj.js → chunk-zsssgqjr.js} +46 -47
- package/dist/{chunk-qa0c70x8.js → chunk-zx084xfr.js} +45 -46
- package/dist/cli-node.js +9 -1
- package/dist/cli.js +11 -11
- package/package.json +3 -3
- package/dist/chunk-0rtjmfky.js +0 -1095
- package/dist/chunk-1hjgrwd4.js +0 -910
- package/dist/chunk-27xc1csx.js +0 -104
- package/dist/chunk-30rst83v.js +0 -168
- package/dist/chunk-33t0pjb0.js +0 -864
- package/dist/chunk-3enkzjbw.js +0 -3966
- package/dist/chunk-3h8a89gy.js +0 -46
- package/dist/chunk-4g3v8y12.js +0 -23
- package/dist/chunk-8f6raa6q.js +0 -615
- package/dist/chunk-a03dt27n.js +0 -782
- package/dist/chunk-a9g4h96v.js +0 -16
- package/dist/chunk-a9vdeb6y.js +0 -258
- package/dist/chunk-b0bk6bxs.js +0 -742
- package/dist/chunk-b4wg70y1.js +0 -54
- package/dist/chunk-b5s5rqpw.js +0 -208
- package/dist/chunk-btnvjcc5.js +0 -15
- package/dist/chunk-cjy1qthp.js +0 -27
- package/dist/chunk-cs6c9gbk.js +0 -1172
- package/dist/chunk-enhtm7h3.js +0 -1731
- package/dist/chunk-g54dwtcr.js +0 -718
- package/dist/chunk-h0qngp9w.js +0 -157
- package/dist/chunk-hasadm64.js +0 -412
- package/dist/chunk-hk9xz7gk.js +0 -118
- package/dist/chunk-j2k4p94p.js +0 -55
- package/dist/chunk-jzmz18nn.js +0 -65
- package/dist/chunk-k1ggxjtw.js +0 -5241
- package/dist/chunk-kxqjncxw.js +0 -35
- package/dist/chunk-m8btrqrp.js +0 -176
- package/dist/chunk-n0qaeaa5.js +0 -256
- package/dist/chunk-n4ssv9yn.js +0 -40
- package/dist/chunk-nbxr4cfd.js +0 -880
- package/dist/chunk-pg8sjz45.js +0 -81
- package/dist/chunk-q25bjaev.js +0 -15
- package/dist/chunk-qpydzzk0.js +0 -182
- package/dist/chunk-r6h4zwjj.js +0 -36
- package/dist/chunk-r7350xv3.js +0 -659
- package/dist/chunk-rvh4gff0.js +0 -542
- package/dist/chunk-rxcf1qnf.js +0 -173
- package/dist/chunk-tb1es4q0.js +0 -220
- package/dist/chunk-th1cykx3.js +0 -494
- package/dist/chunk-tqzsn5bq.js +0 -24
- package/dist/chunk-ttk5dzz8.js +0 -25
- package/dist/chunk-wbwg8jz1.js +0 -607
- package/dist/chunk-xsq9ae7x.js +0 -90
- package/dist/chunk-yya2f05b.js +0 -17
- package/dist/chunk-ze6h1ch1.js +0 -21
|
@@ -2819,60 +2819,41 @@ ${hashEntry(stringified)} ${stringified}`);
|
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
2821
|
|
|
2822
|
-
// node_modules/.bun/lru-cache@11.
|
|
2822
|
+
// node_modules/.bun/lru-cache@11.3.3/node_modules/lru-cache/dist/commonjs/index.min.js
|
|
2823
2823
|
var require_index_min = __commonJS((exports) => {
|
|
2824
|
+
var G = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
|
|
2825
|
+
var M = G((O) => {
|
|
2826
|
+
Object.defineProperty(O, "__esModule", { value: true });
|
|
2827
|
+
O.tracing = O.metrics = undefined;
|
|
2828
|
+
var L = __require("diagnostics_channel");
|
|
2829
|
+
O.metrics = (0, L.channel)("lru-cache:metrics");
|
|
2830
|
+
O.tracing = (0, L.tracingChannel)("lru-cache");
|
|
2831
|
+
});
|
|
2824
2832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2825
2833
|
exports.LRUCache = undefined;
|
|
2826
|
-
var
|
|
2834
|
+
var u = M();
|
|
2835
|
+
var D = () => u.metrics.hasSubscribers || u.tracing.hasSubscribers;
|
|
2836
|
+
var P = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
2827
2837
|
var U = new Set;
|
|
2828
|
-
var
|
|
2829
|
-
var
|
|
2830
|
-
typeof
|
|
2838
|
+
var j = typeof process == "object" && process ? process : {};
|
|
2839
|
+
var H = (c, t, e, i) => {
|
|
2840
|
+
typeof j.emitWarning == "function" ? j.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
|
|
2831
2841
|
};
|
|
2832
|
-
var
|
|
2833
|
-
var
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
_onabort = [];
|
|
2838
|
-
reason;
|
|
2839
|
-
aborted = false;
|
|
2840
|
-
addEventListener(i, s) {
|
|
2841
|
-
this._onabort.push(s);
|
|
2842
|
-
}
|
|
2843
|
-
}, C = class {
|
|
2844
|
-
constructor() {
|
|
2845
|
-
t();
|
|
2846
|
-
}
|
|
2847
|
-
signal = new L;
|
|
2848
|
-
abort(i) {
|
|
2849
|
-
if (!this.signal.aborted) {
|
|
2850
|
-
this.signal.reason = i, this.signal.aborted = true;
|
|
2851
|
-
for (let s of this.signal._onabort)
|
|
2852
|
-
s(i);
|
|
2853
|
-
this.signal.onabort?.(i);
|
|
2854
|
-
}
|
|
2855
|
-
}
|
|
2856
|
-
};
|
|
2857
|
-
let c = R.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
|
|
2858
|
-
c && (c = false, I("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
2859
|
-
};
|
|
2860
|
-
}
|
|
2861
|
-
var x = (c) => !U.has(c);
|
|
2862
|
-
var H = Symbol("type");
|
|
2863
|
-
var y = (c) => c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
2864
|
-
var M = (c) => y(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? z : null : null;
|
|
2865
|
-
var z = class extends Array {
|
|
2842
|
+
var N = (c) => !U.has(c);
|
|
2843
|
+
var B = Symbol("type");
|
|
2844
|
+
var F = (c) => !!c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
2845
|
+
var I = (c) => F(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? W : null : null;
|
|
2846
|
+
var W = class extends Array {
|
|
2866
2847
|
constructor(t) {
|
|
2867
2848
|
super(t), this.fill(0);
|
|
2868
2849
|
}
|
|
2869
2850
|
};
|
|
2870
|
-
var
|
|
2851
|
+
var C = class c {
|
|
2871
2852
|
heap;
|
|
2872
2853
|
length;
|
|
2873
2854
|
static #o = false;
|
|
2874
2855
|
static create(t) {
|
|
2875
|
-
let e =
|
|
2856
|
+
let e = I(t);
|
|
2876
2857
|
if (!e)
|
|
2877
2858
|
return [];
|
|
2878
2859
|
c.#o = true;
|
|
@@ -2891,17 +2872,17 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2891
2872
|
return this.heap[--this.length];
|
|
2892
2873
|
}
|
|
2893
2874
|
};
|
|
2894
|
-
var
|
|
2875
|
+
var x = class c {
|
|
2895
2876
|
#o;
|
|
2896
2877
|
#c;
|
|
2878
|
+
#m;
|
|
2879
|
+
#D;
|
|
2897
2880
|
#w;
|
|
2898
|
-
#
|
|
2881
|
+
#M;
|
|
2882
|
+
#j;
|
|
2899
2883
|
#S;
|
|
2900
|
-
#L;
|
|
2901
|
-
#U;
|
|
2902
|
-
#m;
|
|
2903
2884
|
get perf() {
|
|
2904
|
-
return this.#
|
|
2885
|
+
return this.#S;
|
|
2905
2886
|
}
|
|
2906
2887
|
ttl;
|
|
2907
2888
|
ttlResolution;
|
|
@@ -2919,30 +2900,30 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2919
2900
|
allowStaleOnFetchRejection;
|
|
2920
2901
|
ignoreFetchAbort;
|
|
2921
2902
|
#n;
|
|
2922
|
-
#
|
|
2903
|
+
#b;
|
|
2923
2904
|
#s;
|
|
2924
2905
|
#i;
|
|
2925
2906
|
#t;
|
|
2926
|
-
#a;
|
|
2927
|
-
#u;
|
|
2928
2907
|
#l;
|
|
2908
|
+
#u;
|
|
2909
|
+
#a;
|
|
2929
2910
|
#h;
|
|
2930
|
-
#b;
|
|
2931
|
-
#r;
|
|
2932
2911
|
#y;
|
|
2933
|
-
#
|
|
2912
|
+
#r;
|
|
2913
|
+
#_;
|
|
2914
|
+
#F;
|
|
2934
2915
|
#d;
|
|
2935
2916
|
#g;
|
|
2936
2917
|
#T;
|
|
2937
|
-
#
|
|
2918
|
+
#O;
|
|
2938
2919
|
#f;
|
|
2939
|
-
#
|
|
2920
|
+
#U;
|
|
2940
2921
|
static unsafeExposeInternals(t) {
|
|
2941
|
-
return { starts: t.#
|
|
2942
|
-
return t.#
|
|
2922
|
+
return { starts: t.#F, ttls: t.#d, autopurgeTimers: t.#g, sizes: t.#_, keyMap: t.#s, keyList: t.#i, valList: t.#t, next: t.#l, prev: t.#u, get head() {
|
|
2923
|
+
return t.#a;
|
|
2943
2924
|
}, get tail() {
|
|
2944
2925
|
return t.#h;
|
|
2945
|
-
}, free: t.#
|
|
2926
|
+
}, free: t.#y, isBackgroundFetch: (e) => t.#e(e), backgroundFetch: (e, i, s, n) => t.#P(e, i, s, n), moveToTail: (e) => t.#L(e), indexes: (e) => t.#A(e), rindexes: (e) => t.#v(e), isStale: (e) => t.#p(e) };
|
|
2946
2927
|
}
|
|
2947
2928
|
get max() {
|
|
2948
2929
|
return this.#o;
|
|
@@ -2951,36 +2932,36 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2951
2932
|
return this.#c;
|
|
2952
2933
|
}
|
|
2953
2934
|
get calculatedSize() {
|
|
2954
|
-
return this.#
|
|
2935
|
+
return this.#b;
|
|
2955
2936
|
}
|
|
2956
2937
|
get size() {
|
|
2957
2938
|
return this.#n;
|
|
2958
2939
|
}
|
|
2959
2940
|
get fetchMethod() {
|
|
2960
|
-
return this.#
|
|
2941
|
+
return this.#M;
|
|
2961
2942
|
}
|
|
2962
2943
|
get memoMethod() {
|
|
2963
|
-
return this.#
|
|
2944
|
+
return this.#j;
|
|
2964
2945
|
}
|
|
2965
2946
|
get dispose() {
|
|
2966
|
-
return this.#
|
|
2947
|
+
return this.#m;
|
|
2967
2948
|
}
|
|
2968
2949
|
get onInsert() {
|
|
2969
|
-
return this.#
|
|
2950
|
+
return this.#D;
|
|
2970
2951
|
}
|
|
2971
2952
|
get disposeAfter() {
|
|
2972
|
-
return this.#
|
|
2953
|
+
return this.#w;
|
|
2973
2954
|
}
|
|
2974
2955
|
constructor(t) {
|
|
2975
|
-
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas:
|
|
2976
|
-
if (
|
|
2956
|
+
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: r, allowStale: h, dispose: a, onInsert: d, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: y, fetchMethod: l, memoMethod: S, noDeleteOnFetchRejection: _, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: A, ignoreFetchAbort: v, perf: R } = t;
|
|
2957
|
+
if (R !== undefined && typeof R?.now != "function")
|
|
2977
2958
|
throw new TypeError("perf option must have a now() method if specified");
|
|
2978
|
-
if (this.#
|
|
2959
|
+
if (this.#S = R ?? P, e !== 0 && !F(e))
|
|
2979
2960
|
throw new TypeError("max option must be a nonnegative integer");
|
|
2980
|
-
let
|
|
2981
|
-
if (!
|
|
2961
|
+
let z = e ? I(e) : Array;
|
|
2962
|
+
if (!z)
|
|
2982
2963
|
throw new Error("invalid max value: " + e);
|
|
2983
|
-
if (this.#o = e, this.#c =
|
|
2964
|
+
if (this.#o = e, this.#c = T, this.maxEntrySize = w || this.#c, this.sizeCalculation = y, this.sizeCalculation) {
|
|
2984
2965
|
if (!this.#c && !this.maxEntrySize)
|
|
2985
2966
|
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
2986
2967
|
if (typeof this.sizeCalculation != "function")
|
|
@@ -2988,155 +2969,155 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2988
2969
|
}
|
|
2989
2970
|
if (S !== undefined && typeof S != "function")
|
|
2990
2971
|
throw new TypeError("memoMethod must be a function if defined");
|
|
2991
|
-
if (this.#
|
|
2972
|
+
if (this.#j = S, l !== undefined && typeof l != "function")
|
|
2992
2973
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
2993
|
-
if (this.#
|
|
2994
|
-
if (this.#c !== 0 && !
|
|
2974
|
+
if (this.#M = l, this.#O = !!l, this.#s = new Map, this.#i = Array.from({ length: e }).fill(undefined), this.#t = Array.from({ length: e }).fill(undefined), this.#l = new z(e), this.#u = new z(e), this.#a = 0, this.#h = 0, this.#y = C.create(e), this.#n = 0, this.#b = 0, typeof a == "function" && (this.#m = a), typeof d == "function" && (this.#D = d), typeof f == "function" ? (this.#w = f, this.#r = []) : (this.#w = undefined, this.#r = undefined), this.#T = !!this.#m, this.#U = !!this.#D, this.#f = !!this.#w, this.noDisposeOnSet = !!p, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!g, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!v, this.maxEntrySize !== 0) {
|
|
2975
|
+
if (this.#c !== 0 && !F(this.#c))
|
|
2995
2976
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
2996
|
-
if (!
|
|
2977
|
+
if (!F(this.maxEntrySize))
|
|
2997
2978
|
throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
2998
|
-
this.#
|
|
2979
|
+
this.#X();
|
|
2999
2980
|
}
|
|
3000
|
-
if (this.allowStale = !!
|
|
3001
|
-
if (!
|
|
2981
|
+
if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!r, this.ttlResolution = F(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
|
|
2982
|
+
if (!F(this.ttl))
|
|
3002
2983
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
3003
|
-
this.#
|
|
2984
|
+
this.#H();
|
|
3004
2985
|
}
|
|
3005
2986
|
if (this.#o === 0 && this.ttl === 0 && this.#c === 0)
|
|
3006
2987
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
3007
2988
|
if (!this.ttlAutopurge && !this.#o && !this.#c) {
|
|
3008
2989
|
let E = "LRU_CACHE_UNBOUNDED";
|
|
3009
|
-
|
|
2990
|
+
N(E) && (U.add(E), H("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, c));
|
|
3010
2991
|
}
|
|
3011
2992
|
}
|
|
3012
2993
|
getRemainingTTL(t) {
|
|
3013
2994
|
return this.#s.has(t) ? 1 / 0 : 0;
|
|
3014
2995
|
}
|
|
3015
|
-
#
|
|
3016
|
-
let t = new
|
|
3017
|
-
this.#d = t, this.#
|
|
3018
|
-
let i = this.ttlAutopurge ?
|
|
3019
|
-
this.#g = i, this.#N = (
|
|
3020
|
-
e[
|
|
3021
|
-
}, this.#R = (
|
|
3022
|
-
e[
|
|
2996
|
+
#H() {
|
|
2997
|
+
let t = new W(this.#o), e = new W(this.#o);
|
|
2998
|
+
this.#d = t, this.#F = e;
|
|
2999
|
+
let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : undefined;
|
|
3000
|
+
this.#g = i, this.#N = (r, h, a = this.#S.now()) => {
|
|
3001
|
+
e[r] = h !== 0 ? a : 0, t[r] = h, s(r, h);
|
|
3002
|
+
}, this.#R = (r) => {
|
|
3003
|
+
e[r] = t[r] !== 0 ? this.#S.now() : 0, s(r, t[r]);
|
|
3023
3004
|
};
|
|
3024
|
-
let s = this.ttlAutopurge ? (
|
|
3025
|
-
if (i?.[
|
|
3005
|
+
let s = this.ttlAutopurge ? (r, h) => {
|
|
3006
|
+
if (i?.[r] && (clearTimeout(i[r]), i[r] = undefined), h && h !== 0 && i) {
|
|
3026
3007
|
let a = setTimeout(() => {
|
|
3027
|
-
this.#p(
|
|
3028
|
-
},
|
|
3029
|
-
a.unref && a.unref(), i[
|
|
3008
|
+
this.#p(r) && this.#z(this.#i[r], "expire");
|
|
3009
|
+
}, h + 1);
|
|
3010
|
+
a.unref && a.unref(), i[r] = a;
|
|
3030
3011
|
}
|
|
3031
3012
|
} : () => {};
|
|
3032
|
-
this.#
|
|
3033
|
-
if (t[
|
|
3034
|
-
let a = t[
|
|
3035
|
-
if (!a || !
|
|
3013
|
+
this.#E = (r, h) => {
|
|
3014
|
+
if (t[h]) {
|
|
3015
|
+
let a = t[h], d = e[h];
|
|
3016
|
+
if (!a || !d)
|
|
3036
3017
|
return;
|
|
3037
|
-
|
|
3038
|
-
let f =
|
|
3039
|
-
|
|
3018
|
+
r.ttl = a, r.start = d, r.now = n || o();
|
|
3019
|
+
let f = r.now - d;
|
|
3020
|
+
r.remainingTTL = a - f;
|
|
3040
3021
|
}
|
|
3041
3022
|
};
|
|
3042
3023
|
let n = 0, o = () => {
|
|
3043
|
-
let
|
|
3024
|
+
let r = this.#S.now();
|
|
3044
3025
|
if (this.ttlResolution > 0) {
|
|
3045
|
-
n =
|
|
3046
|
-
let
|
|
3047
|
-
|
|
3026
|
+
n = r;
|
|
3027
|
+
let h = setTimeout(() => n = 0, this.ttlResolution);
|
|
3028
|
+
h.unref && h.unref();
|
|
3048
3029
|
}
|
|
3049
|
-
return
|
|
3030
|
+
return r;
|
|
3050
3031
|
};
|
|
3051
|
-
this.getRemainingTTL = (
|
|
3052
|
-
let
|
|
3053
|
-
if (
|
|
3032
|
+
this.getRemainingTTL = (r) => {
|
|
3033
|
+
let h = this.#s.get(r);
|
|
3034
|
+
if (h === undefined)
|
|
3054
3035
|
return 0;
|
|
3055
|
-
let a = t[
|
|
3056
|
-
if (!a || !
|
|
3036
|
+
let a = t[h], d = e[h];
|
|
3037
|
+
if (!a || !d)
|
|
3057
3038
|
return 1 / 0;
|
|
3058
|
-
let f = (n || o()) -
|
|
3039
|
+
let f = (n || o()) - d;
|
|
3059
3040
|
return a - f;
|
|
3060
|
-
}, this.#p = (
|
|
3061
|
-
let
|
|
3062
|
-
return !!a && !!
|
|
3041
|
+
}, this.#p = (r) => {
|
|
3042
|
+
let h = e[r], a = t[r];
|
|
3043
|
+
return !!a && !!h && (n || o()) - h > a;
|
|
3063
3044
|
};
|
|
3064
3045
|
}
|
|
3065
3046
|
#R = () => {};
|
|
3066
|
-
#
|
|
3047
|
+
#E = () => {};
|
|
3067
3048
|
#N = () => {};
|
|
3068
3049
|
#p = () => false;
|
|
3069
|
-
#
|
|
3070
|
-
let t = new
|
|
3071
|
-
this.#
|
|
3072
|
-
this.#
|
|
3073
|
-
}, this.#
|
|
3050
|
+
#X() {
|
|
3051
|
+
let t = new W(this.#o);
|
|
3052
|
+
this.#b = 0, this.#_ = t, this.#C = (e) => {
|
|
3053
|
+
this.#b -= t[e], t[e] = 0;
|
|
3054
|
+
}, this.#k = (e, i, s, n) => {
|
|
3074
3055
|
if (this.#e(i))
|
|
3075
3056
|
return 0;
|
|
3076
|
-
if (!
|
|
3057
|
+
if (!F(s))
|
|
3077
3058
|
if (n) {
|
|
3078
3059
|
if (typeof n != "function")
|
|
3079
3060
|
throw new TypeError("sizeCalculation must be a function");
|
|
3080
|
-
if (s = n(i, e), !
|
|
3061
|
+
if (s = n(i, e), !F(s))
|
|
3081
3062
|
throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
3082
3063
|
} else
|
|
3083
3064
|
throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
3084
3065
|
return s;
|
|
3085
|
-
}, this.#
|
|
3066
|
+
}, this.#I = (e, i, s) => {
|
|
3086
3067
|
if (t[e] = i, this.#c) {
|
|
3087
3068
|
let n = this.#c - t[e];
|
|
3088
|
-
for (;this.#
|
|
3069
|
+
for (;this.#b > n; )
|
|
3089
3070
|
this.#G(true);
|
|
3090
3071
|
}
|
|
3091
|
-
this.#
|
|
3072
|
+
this.#b += t[e], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
|
|
3092
3073
|
};
|
|
3093
3074
|
}
|
|
3094
|
-
#
|
|
3095
|
-
#
|
|
3096
|
-
#
|
|
3075
|
+
#C = (t) => {};
|
|
3076
|
+
#I = (t, e, i) => {};
|
|
3077
|
+
#k = (t, e, i, s) => {
|
|
3097
3078
|
if (i || s)
|
|
3098
3079
|
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
3099
3080
|
return 0;
|
|
3100
3081
|
};
|
|
3101
|
-
*#
|
|
3082
|
+
*#A({ allowStale: t = this.allowStale } = {}) {
|
|
3102
3083
|
if (this.#n)
|
|
3103
|
-
for (let e = this.#h
|
|
3084
|
+
for (let e = this.#h;this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#a); )
|
|
3104
3085
|
e = this.#u[e];
|
|
3105
3086
|
}
|
|
3106
|
-
*#
|
|
3087
|
+
*#v({ allowStale: t = this.allowStale } = {}) {
|
|
3107
3088
|
if (this.#n)
|
|
3108
|
-
for (let e = this.#
|
|
3109
|
-
e = this.#
|
|
3089
|
+
for (let e = this.#a;this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#h); )
|
|
3090
|
+
e = this.#l[e];
|
|
3110
3091
|
}
|
|
3111
|
-
#
|
|
3092
|
+
#V(t) {
|
|
3112
3093
|
return t !== undefined && this.#s.get(this.#i[t]) === t;
|
|
3113
3094
|
}
|
|
3114
3095
|
*entries() {
|
|
3115
|
-
for (let t of this.#
|
|
3096
|
+
for (let t of this.#A())
|
|
3116
3097
|
this.#t[t] !== undefined && this.#i[t] !== undefined && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
3117
3098
|
}
|
|
3118
3099
|
*rentries() {
|
|
3119
|
-
for (let t of this.#
|
|
3100
|
+
for (let t of this.#v())
|
|
3120
3101
|
this.#t[t] !== undefined && this.#i[t] !== undefined && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
3121
3102
|
}
|
|
3122
3103
|
*keys() {
|
|
3123
|
-
for (let t of this.#
|
|
3104
|
+
for (let t of this.#A()) {
|
|
3124
3105
|
let e = this.#i[t];
|
|
3125
3106
|
e !== undefined && !this.#e(this.#t[t]) && (yield e);
|
|
3126
3107
|
}
|
|
3127
3108
|
}
|
|
3128
3109
|
*rkeys() {
|
|
3129
|
-
for (let t of this.#
|
|
3110
|
+
for (let t of this.#v()) {
|
|
3130
3111
|
let e = this.#i[t];
|
|
3131
3112
|
e !== undefined && !this.#e(this.#t[t]) && (yield e);
|
|
3132
3113
|
}
|
|
3133
3114
|
}
|
|
3134
3115
|
*values() {
|
|
3135
|
-
for (let t of this.#
|
|
3116
|
+
for (let t of this.#A())
|
|
3136
3117
|
this.#t[t] !== undefined && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
3137
3118
|
}
|
|
3138
3119
|
*rvalues() {
|
|
3139
|
-
for (let t of this.#
|
|
3120
|
+
for (let t of this.#v())
|
|
3140
3121
|
this.#t[t] !== undefined && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
3141
3122
|
}
|
|
3142
3123
|
[Symbol.iterator]() {
|
|
@@ -3144,28 +3125,28 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3144
3125
|
}
|
|
3145
3126
|
[Symbol.toStringTag] = "LRUCache";
|
|
3146
3127
|
find(t, e = {}) {
|
|
3147
|
-
for (let i of this.#
|
|
3128
|
+
for (let i of this.#A()) {
|
|
3148
3129
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3149
3130
|
if (n !== undefined && t(n, this.#i[i], this))
|
|
3150
|
-
return this
|
|
3131
|
+
return this.#x(this.#i[i], e);
|
|
3151
3132
|
}
|
|
3152
3133
|
}
|
|
3153
3134
|
forEach(t, e = this) {
|
|
3154
|
-
for (let i of this.#
|
|
3135
|
+
for (let i of this.#A()) {
|
|
3155
3136
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3156
3137
|
n !== undefined && t.call(e, n, this.#i[i], this);
|
|
3157
3138
|
}
|
|
3158
3139
|
}
|
|
3159
3140
|
rforEach(t, e = this) {
|
|
3160
|
-
for (let i of this.#
|
|
3141
|
+
for (let i of this.#v()) {
|
|
3161
3142
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3162
3143
|
n !== undefined && t.call(e, n, this.#i[i], this);
|
|
3163
3144
|
}
|
|
3164
3145
|
}
|
|
3165
3146
|
purgeStale() {
|
|
3166
3147
|
let t = false;
|
|
3167
|
-
for (let e of this.#
|
|
3168
|
-
this.#p(e) && (this.#
|
|
3148
|
+
for (let e of this.#v({ allowStale: true }))
|
|
3149
|
+
this.#p(e) && (this.#z(this.#i[e], "expire"), t = true);
|
|
3169
3150
|
return t;
|
|
3170
3151
|
}
|
|
3171
3152
|
info(t) {
|
|
@@ -3176,28 +3157,28 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3176
3157
|
if (s === undefined)
|
|
3177
3158
|
return;
|
|
3178
3159
|
let n = { value: s };
|
|
3179
|
-
if (this.#d && this.#
|
|
3180
|
-
let o = this.#d[e],
|
|
3181
|
-
if (o &&
|
|
3182
|
-
let
|
|
3183
|
-
n.ttl =
|
|
3160
|
+
if (this.#d && this.#F) {
|
|
3161
|
+
let o = this.#d[e], r = this.#F[e];
|
|
3162
|
+
if (o && r) {
|
|
3163
|
+
let h = o - (this.#S.now() - r);
|
|
3164
|
+
n.ttl = h, n.start = Date.now();
|
|
3184
3165
|
}
|
|
3185
3166
|
}
|
|
3186
|
-
return this.#
|
|
3167
|
+
return this.#_ && (n.size = this.#_[e]), n;
|
|
3187
3168
|
}
|
|
3188
3169
|
dump() {
|
|
3189
3170
|
let t = [];
|
|
3190
|
-
for (let e of this.#
|
|
3171
|
+
for (let e of this.#A({ allowStale: true })) {
|
|
3191
3172
|
let i = this.#i[e], s = this.#t[e], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3192
3173
|
if (n === undefined || i === undefined)
|
|
3193
3174
|
continue;
|
|
3194
3175
|
let o = { value: n };
|
|
3195
|
-
if (this.#d && this.#
|
|
3176
|
+
if (this.#d && this.#F) {
|
|
3196
3177
|
o.ttl = this.#d[e];
|
|
3197
|
-
let
|
|
3198
|
-
o.start = Math.floor(Date.now() -
|
|
3178
|
+
let r = this.#S.now() - this.#F[e];
|
|
3179
|
+
o.start = Math.floor(Date.now() - r);
|
|
3199
3180
|
}
|
|
3200
|
-
this.#
|
|
3181
|
+
this.#_ && (o.size = this.#_[e]), t.unshift([i, o]);
|
|
3201
3182
|
}
|
|
3202
3183
|
return t;
|
|
3203
3184
|
}
|
|
@@ -3206,50 +3187,59 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3206
3187
|
for (let [e, i] of t) {
|
|
3207
3188
|
if (i.start) {
|
|
3208
3189
|
let s = Date.now() - i.start;
|
|
3209
|
-
i.start = this.#
|
|
3190
|
+
i.start = this.#S.now() - s;
|
|
3210
3191
|
}
|
|
3211
|
-
this
|
|
3192
|
+
this.#W(e, i.value, i);
|
|
3212
3193
|
}
|
|
3213
3194
|
}
|
|
3214
3195
|
set(t, e, i = {}) {
|
|
3196
|
+
let { status: s = u.metrics.hasSubscribers ? {} : undefined } = i;
|
|
3197
|
+
i.status = s, s && (s.op = "set", s.key = t, e !== undefined && (s.value = e));
|
|
3198
|
+
let n = this.#W(t, e, i);
|
|
3199
|
+
return s && u.metrics.hasSubscribers && u.metrics.publish(s), n;
|
|
3200
|
+
}
|
|
3201
|
+
#W(t, e, i = {}) {
|
|
3202
|
+
let { ttl: s = this.ttl, start: n, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: r = this.sizeCalculation, status: h } = i;
|
|
3215
3203
|
if (e === undefined)
|
|
3216
|
-
return this.delete(t), this;
|
|
3217
|
-
let {
|
|
3218
|
-
|
|
3219
|
-
|
|
3204
|
+
return h && (h.set = "deleted"), this.delete(t), this;
|
|
3205
|
+
let { noUpdateTTL: a = this.noUpdateTTL } = i;
|
|
3206
|
+
h && !this.#e(e) && (h.value = e);
|
|
3207
|
+
let d = this.#k(t, e, i.size || 0, r, h);
|
|
3208
|
+
if (this.maxEntrySize && d > this.maxEntrySize)
|
|
3209
|
+
return this.#z(t, "set"), h && (h.set = "miss", h.maxEntrySizeExceeded = true), this;
|
|
3220
3210
|
let f = this.#n === 0 ? undefined : this.#s.get(t);
|
|
3221
3211
|
if (f === undefined)
|
|
3222
|
-
f = this.#n === 0 ? this.#h : this.#
|
|
3212
|
+
f = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[f] = t, this.#t[f] = e, this.#s.set(t, f), this.#l[this.#h] = f, this.#u[f] = this.#h, this.#h = f, this.#n++, this.#I(f, d, h), h && (h.set = "add"), a = false, this.#U && this.#D?.(e, t, "add");
|
|
3223
3213
|
else {
|
|
3224
|
-
this.#
|
|
3225
|
-
let
|
|
3226
|
-
if (e !==
|
|
3227
|
-
if (this.#
|
|
3228
|
-
|
|
3229
|
-
let { __staleWhileFetching:
|
|
3230
|
-
|
|
3214
|
+
this.#L(f);
|
|
3215
|
+
let p = this.#t[f];
|
|
3216
|
+
if (e !== p) {
|
|
3217
|
+
if (this.#O && this.#e(p)) {
|
|
3218
|
+
p.__abortController.abort(new Error("replaced"));
|
|
3219
|
+
let { __staleWhileFetching: m } = p;
|
|
3220
|
+
m !== undefined && !o && (this.#T && this.#m?.(m, t, "set"), this.#f && this.#r?.push([m, t, "set"]));
|
|
3231
3221
|
} else
|
|
3232
|
-
o || (this.#T && this.#
|
|
3233
|
-
if (this.#
|
|
3234
|
-
|
|
3235
|
-
let
|
|
3236
|
-
|
|
3222
|
+
o || (this.#T && this.#m?.(p, t, "set"), this.#f && this.#r?.push([p, t, "set"]));
|
|
3223
|
+
if (this.#C(f), this.#I(f, d, h), this.#t[f] = e, h) {
|
|
3224
|
+
h.set = "replace";
|
|
3225
|
+
let m = p && this.#e(p) ? p.__staleWhileFetching : p;
|
|
3226
|
+
m !== undefined && (h.oldValue = m);
|
|
3237
3227
|
}
|
|
3238
3228
|
} else
|
|
3239
|
-
|
|
3240
|
-
this.#
|
|
3229
|
+
h && (h.set = "update");
|
|
3230
|
+
this.#U && this.onInsert?.(e, t, e === p ? "update" : "replace");
|
|
3241
3231
|
}
|
|
3242
|
-
if (s !== 0 && !this.#d && this.#
|
|
3243
|
-
let
|
|
3244
|
-
for (;
|
|
3245
|
-
this.#
|
|
3232
|
+
if (s !== 0 && !this.#d && this.#H(), this.#d && (a || this.#N(f, s, n), h && this.#E(h, f)), !o && this.#f && this.#r) {
|
|
3233
|
+
let p = this.#r, m;
|
|
3234
|
+
for (;m = p?.shift(); )
|
|
3235
|
+
this.#w?.(...m);
|
|
3246
3236
|
}
|
|
3247
3237
|
return this;
|
|
3248
3238
|
}
|
|
3249
3239
|
pop() {
|
|
3250
3240
|
try {
|
|
3251
3241
|
for (;this.#n; ) {
|
|
3252
|
-
let t = this.#t[this.#
|
|
3242
|
+
let t = this.#t[this.#a];
|
|
3253
3243
|
if (this.#G(true), this.#e(t)) {
|
|
3254
3244
|
if (t.__staleWhileFetching)
|
|
3255
3245
|
return t.__staleWhileFetching;
|
|
@@ -3260,181 +3250,223 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3260
3250
|
if (this.#f && this.#r) {
|
|
3261
3251
|
let t = this.#r, e;
|
|
3262
3252
|
for (;e = t?.shift(); )
|
|
3263
|
-
this.#
|
|
3253
|
+
this.#w?.(...e);
|
|
3264
3254
|
}
|
|
3265
3255
|
}
|
|
3266
3256
|
}
|
|
3267
3257
|
#G(t) {
|
|
3268
|
-
let e = this.#
|
|
3269
|
-
return this.#
|
|
3258
|
+
let e = this.#a, i = this.#i[e], s = this.#t[e];
|
|
3259
|
+
return this.#O && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#m?.(s, i, "evict"), this.#f && this.#r?.push([s, i, "evict"])), this.#C(e), this.#g?.[e] && (clearTimeout(this.#g[e]), this.#g[e] = undefined), t && (this.#i[e] = undefined, this.#t[e] = undefined, this.#y.push(e)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[e], this.#s.delete(i), this.#n--, e;
|
|
3270
3260
|
}
|
|
3271
3261
|
has(t, e = {}) {
|
|
3262
|
+
let { status: i = u.metrics.hasSubscribers ? {} : undefined } = e;
|
|
3263
|
+
e.status = i, i && (i.op = "has", i.key = t);
|
|
3264
|
+
let s = this.#Y(t, e);
|
|
3265
|
+
return u.metrics.hasSubscribers && u.metrics.publish(i), s;
|
|
3266
|
+
}
|
|
3267
|
+
#Y(t, e = {}) {
|
|
3272
3268
|
let { updateAgeOnHas: i = this.updateAgeOnHas, status: s } = e, n = this.#s.get(t);
|
|
3273
3269
|
if (n !== undefined) {
|
|
3274
3270
|
let o = this.#t[n];
|
|
3275
3271
|
if (this.#e(o) && o.__staleWhileFetching === undefined)
|
|
3276
3272
|
return false;
|
|
3277
3273
|
if (this.#p(n))
|
|
3278
|
-
s && (s.has = "stale", this.#
|
|
3274
|
+
s && (s.has = "stale", this.#E(s, n));
|
|
3279
3275
|
else
|
|
3280
|
-
return i && this.#R(n), s && (s.has = "hit", this.#
|
|
3276
|
+
return i && this.#R(n), s && (s.has = "hit", this.#E(s, n)), true;
|
|
3281
3277
|
} else
|
|
3282
3278
|
s && (s.has = "miss");
|
|
3283
3279
|
return false;
|
|
3284
3280
|
}
|
|
3285
3281
|
peek(t, e = {}) {
|
|
3286
|
-
let {
|
|
3287
|
-
|
|
3282
|
+
let { status: i = D() ? {} : undefined } = e;
|
|
3283
|
+
i && (i.op = "peek", i.key = t), e.status = i;
|
|
3284
|
+
let s = this.#J(t, e);
|
|
3285
|
+
return u.metrics.hasSubscribers && u.metrics.publish(i), s;
|
|
3286
|
+
}
|
|
3287
|
+
#J(t, e) {
|
|
3288
|
+
let { status: i, allowStale: s = this.allowStale } = e, n = this.#s.get(t);
|
|
3289
|
+
if (n === undefined || !s && this.#p(n)) {
|
|
3290
|
+
i && (i.peek = n === undefined ? "miss" : "stale");
|
|
3288
3291
|
return;
|
|
3289
|
-
|
|
3290
|
-
|
|
3292
|
+
}
|
|
3293
|
+
let o = this.#t[n], r = this.#e(o) ? o.__staleWhileFetching : o;
|
|
3294
|
+
return i && (r !== undefined ? (i.peek = "hit", i.value = r) : i.peek = "miss"), r;
|
|
3291
3295
|
}
|
|
3292
|
-
#
|
|
3296
|
+
#P(t, e, i, s) {
|
|
3293
3297
|
let n = e === undefined ? undefined : this.#t[e];
|
|
3294
3298
|
if (this.#e(n))
|
|
3295
3299
|
return n;
|
|
3296
|
-
let o = new
|
|
3297
|
-
|
|
3298
|
-
let
|
|
3299
|
-
let { aborted: l } = o.signal, S = i.ignoreFetchAbort &&
|
|
3300
|
-
if (i.status && (l && !
|
|
3301
|
-
return f(o.signal.reason,
|
|
3302
|
-
let
|
|
3303
|
-
return (
|
|
3304
|
-
},
|
|
3305
|
-
let { aborted: l } = o.signal, S = l && i.allowStaleOnFetchAbort,
|
|
3306
|
-
if (this.#t[e] ===
|
|
3307
|
-
return i.status &&
|
|
3308
|
-
if (
|
|
3309
|
-
throw
|
|
3310
|
-
},
|
|
3311
|
-
let l = this.#
|
|
3312
|
-
l && l instanceof Promise && l.then((S) =>
|
|
3313
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
3300
|
+
let o = new AbortController, { signal: r } = i;
|
|
3301
|
+
r?.addEventListener("abort", () => o.abort(r.reason), { signal: o.signal });
|
|
3302
|
+
let h = { signal: o.signal, options: i, context: s }, a = (w, y = false) => {
|
|
3303
|
+
let { aborted: l } = o.signal, S = i.ignoreFetchAbort && w !== undefined, _ = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && w !== undefined);
|
|
3304
|
+
if (i.status && (l && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, S && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), l && !S && !y)
|
|
3305
|
+
return f(o.signal.reason, _);
|
|
3306
|
+
let b = m, g = this.#t[e];
|
|
3307
|
+
return (g === m || g === undefined && S && y) && (w === undefined ? b.__staleWhileFetching !== undefined ? this.#t[e] = b.__staleWhileFetching : this.#z(t, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#W(t, w, h.options))), w;
|
|
3308
|
+
}, d = (w) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = w), f(w, false)), f = (w, y) => {
|
|
3309
|
+
let { aborted: l } = o.signal, S = l && i.allowStaleOnFetchAbort, _ = S || i.allowStaleOnFetchRejection, b = _ || i.noDeleteOnFetchRejection, g = m;
|
|
3310
|
+
if (this.#t[e] === m && (!b || !y && g.__staleWhileFetching === undefined ? this.#z(t, "fetch") : S || (this.#t[e] = g.__staleWhileFetching)), _)
|
|
3311
|
+
return i.status && g.__staleWhileFetching !== undefined && (i.status.returnedStale = true), g.__staleWhileFetching;
|
|
3312
|
+
if (g.__returned === g)
|
|
3313
|
+
throw w;
|
|
3314
|
+
}, p = (w, y) => {
|
|
3315
|
+
let l = this.#M?.(t, n, h);
|
|
3316
|
+
l && l instanceof Promise && l.then((S) => w(S === undefined ? undefined : S), y), o.signal.addEventListener("abort", () => {
|
|
3317
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (w(undefined), i.allowStaleOnFetchAbort && (w = (S) => a(S, true)));
|
|
3314
3318
|
});
|
|
3315
3319
|
};
|
|
3316
3320
|
i.status && (i.status.fetchDispatched = true);
|
|
3317
|
-
let
|
|
3318
|
-
return e === undefined ? (this
|
|
3321
|
+
let m = new Promise(p).then(a, d), T = Object.assign(m, { __abortController: o, __staleWhileFetching: n, __returned: undefined });
|
|
3322
|
+
return e === undefined ? (this.#W(t, T, { ...h.options, status: undefined }), e = this.#s.get(t)) : this.#t[e] = T, T;
|
|
3319
3323
|
}
|
|
3320
3324
|
#e(t) {
|
|
3321
|
-
if (!this.#
|
|
3325
|
+
if (!this.#O)
|
|
3322
3326
|
return false;
|
|
3323
3327
|
let e = t;
|
|
3324
|
-
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3327
|
-
let
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3328
|
+
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof AbortController;
|
|
3329
|
+
}
|
|
3330
|
+
fetch(t, e = {}) {
|
|
3331
|
+
let i = u.tracing.hasSubscribers, { status: s = D() ? {} : undefined } = e;
|
|
3332
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
3333
|
+
let n = this.#q(t, e);
|
|
3334
|
+
return s && D() && i && (s.trace = true, u.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
3335
|
+
}
|
|
3336
|
+
async#q(t, e = {}) {
|
|
3337
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h = 0, sizeCalculation: a = this.sizeCalculation, noUpdateTTL: d = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: p = this.allowStaleOnFetchRejection, ignoreFetchAbort: m = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: y = false, status: l, signal: S } = e;
|
|
3338
|
+
if (l && (l.op = "fetch", l.key = t, y && (l.forceRefresh = true)), !this.#O)
|
|
3339
|
+
return l && (l.fetch = "get"), this.#x(t, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: l });
|
|
3340
|
+
let _ = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: r, size: h, sizeCalculation: a, noUpdateTTL: d, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: T, ignoreFetchAbort: m, status: l, signal: S }, b = this.#s.get(t);
|
|
3341
|
+
if (b === undefined) {
|
|
3332
3342
|
l && (l.fetch = "miss");
|
|
3333
|
-
let
|
|
3334
|
-
return
|
|
3343
|
+
let g = this.#P(t, b, _, w);
|
|
3344
|
+
return g.__returned = g;
|
|
3335
3345
|
} else {
|
|
3336
|
-
let
|
|
3337
|
-
if (this.#e(
|
|
3338
|
-
let E = i &&
|
|
3339
|
-
return l && (l.fetch = "inflight", E && (l.returnedStale = true)), E ?
|
|
3340
|
-
}
|
|
3341
|
-
let
|
|
3342
|
-
if (!
|
|
3343
|
-
return l && (l.fetch = "hit"), this.#
|
|
3344
|
-
let
|
|
3345
|
-
return l && (l.fetch =
|
|
3346
|
-
}
|
|
3347
|
-
}
|
|
3348
|
-
|
|
3349
|
-
let i =
|
|
3346
|
+
let g = this.#t[b];
|
|
3347
|
+
if (this.#e(g)) {
|
|
3348
|
+
let E = i && g.__staleWhileFetching !== undefined;
|
|
3349
|
+
return l && (l.fetch = "inflight", E && (l.returnedStale = true)), E ? g.__staleWhileFetching : g.__returned = g;
|
|
3350
|
+
}
|
|
3351
|
+
let A = this.#p(b);
|
|
3352
|
+
if (!y && !A)
|
|
3353
|
+
return l && (l.fetch = "hit"), this.#L(b), s && this.#R(b), l && this.#E(l, b), g;
|
|
3354
|
+
let v = this.#P(t, b, _, w), z = v.__staleWhileFetching !== undefined && i;
|
|
3355
|
+
return l && (l.fetch = A ? "stale" : "refresh", z && A && (l.returnedStale = true)), z ? v.__staleWhileFetching : v.__returned = v;
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
forceFetch(t, e = {}) {
|
|
3359
|
+
let i = u.tracing.hasSubscribers, { status: s = D() ? {} : undefined } = e;
|
|
3360
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
3361
|
+
let n = this.#K(t, e);
|
|
3362
|
+
return s && D() && i && (s.trace = true, u.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
3363
|
+
}
|
|
3364
|
+
async#K(t, e = {}) {
|
|
3365
|
+
let i = await this.#q(t, e);
|
|
3350
3366
|
if (i === undefined)
|
|
3351
3367
|
throw new Error("fetch() returned undefined");
|
|
3352
3368
|
return i;
|
|
3353
3369
|
}
|
|
3354
3370
|
memo(t, e = {}) {
|
|
3355
|
-
let i =
|
|
3371
|
+
let { status: i = u.metrics.hasSubscribers ? {} : undefined } = e;
|
|
3372
|
+
e.status = i, i && (i.op = "memo", i.key = t, e.context && (i.context = e.context));
|
|
3373
|
+
let s = this.#Q(t, e);
|
|
3374
|
+
return i && (i.value = s), u.metrics.hasSubscribers && u.metrics.publish(i), s;
|
|
3375
|
+
}
|
|
3376
|
+
#Q(t, e = {}) {
|
|
3377
|
+
let i = this.#j;
|
|
3356
3378
|
if (!i)
|
|
3357
3379
|
throw new Error("no memoMethod provided to constructor");
|
|
3358
|
-
let { context: s,
|
|
3359
|
-
|
|
3380
|
+
let { context: s, status: n, forceRefresh: o, ...r } = e;
|
|
3381
|
+
n && o && (n.forceRefresh = true);
|
|
3382
|
+
let h = this.#x(t, r), a = o || h === undefined;
|
|
3383
|
+
if (n && (n.memo = a ? "miss" : "hit", a || (n.value = h)), !a)
|
|
3360
3384
|
return h;
|
|
3361
|
-
let
|
|
3362
|
-
return this
|
|
3385
|
+
let d = i(t, h, { options: r, context: s });
|
|
3386
|
+
return n && (n.value = d), this.#W(t, d, r), d;
|
|
3363
3387
|
}
|
|
3364
3388
|
get(t, e = {}) {
|
|
3365
|
-
let {
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3389
|
+
let { status: i = u.metrics.hasSubscribers ? {} : undefined } = e;
|
|
3390
|
+
e.status = i, i && (i.op = "get", i.key = t);
|
|
3391
|
+
let s = this.#x(t, e);
|
|
3392
|
+
return i && (s !== undefined && (i.value = s), u.metrics.hasSubscribers && u.metrics.publish(i)), s;
|
|
3393
|
+
}
|
|
3394
|
+
#x(t, e = {}) {
|
|
3395
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = e, r = this.#s.get(t);
|
|
3396
|
+
if (r === undefined) {
|
|
3370
3397
|
o && (o.get = "miss");
|
|
3398
|
+
return;
|
|
3399
|
+
}
|
|
3400
|
+
let h = this.#t[r], a = this.#e(h);
|
|
3401
|
+
return o && this.#E(o, r), this.#p(r) ? a ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== undefined ? (o && (o.returnedStale = true), h.__staleWhileFetching) : undefined) : (n || this.#z(t, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : undefined) : (o && (o.get = a ? "fetching" : "hit"), this.#L(r), s && this.#R(r), a ? h.__staleWhileFetching : h);
|
|
3371
3402
|
}
|
|
3372
|
-
#
|
|
3373
|
-
this.#u[e] = t, this.#
|
|
3403
|
+
#B(t, e) {
|
|
3404
|
+
this.#u[e] = t, this.#l[t] = e;
|
|
3374
3405
|
}
|
|
3375
|
-
#
|
|
3376
|
-
t !== this.#h && (t === this.#
|
|
3406
|
+
#L(t) {
|
|
3407
|
+
t !== this.#h && (t === this.#a ? this.#a = this.#l[t] : this.#B(this.#u[t], this.#l[t]), this.#B(this.#h, t), this.#h = t);
|
|
3377
3408
|
}
|
|
3378
3409
|
delete(t) {
|
|
3379
|
-
return this.#
|
|
3410
|
+
return this.#z(t, "delete");
|
|
3380
3411
|
}
|
|
3381
|
-
#
|
|
3412
|
+
#z(t, e) {
|
|
3413
|
+
u.metrics.hasSubscribers && u.metrics.publish({ op: "delete", delete: e, key: t });
|
|
3382
3414
|
let i = false;
|
|
3383
3415
|
if (this.#n !== 0) {
|
|
3384
3416
|
let s = this.#s.get(t);
|
|
3385
3417
|
if (s !== undefined)
|
|
3386
3418
|
if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = undefined), i = true, this.#n === 1)
|
|
3387
|
-
this
|
|
3419
|
+
this.#$(e);
|
|
3388
3420
|
else {
|
|
3389
|
-
this.#
|
|
3421
|
+
this.#C(s);
|
|
3390
3422
|
let n = this.#t[s];
|
|
3391
|
-
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#
|
|
3423
|
+
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#m?.(n, t, e), this.#f && this.#r?.push([n, t, e])), this.#s.delete(t), this.#i[s] = undefined, this.#t[s] = undefined, s === this.#h)
|
|
3392
3424
|
this.#h = this.#u[s];
|
|
3393
|
-
else if (s === this.#
|
|
3394
|
-
this.#
|
|
3425
|
+
else if (s === this.#a)
|
|
3426
|
+
this.#a = this.#l[s];
|
|
3395
3427
|
else {
|
|
3396
3428
|
let o = this.#u[s];
|
|
3397
|
-
this.#
|
|
3398
|
-
let
|
|
3399
|
-
this.#u[
|
|
3429
|
+
this.#l[o] = this.#l[s];
|
|
3430
|
+
let r = this.#l[s];
|
|
3431
|
+
this.#u[r] = this.#u[s];
|
|
3400
3432
|
}
|
|
3401
|
-
this.#n--, this.#
|
|
3433
|
+
this.#n--, this.#y.push(s);
|
|
3402
3434
|
}
|
|
3403
3435
|
}
|
|
3404
3436
|
if (this.#f && this.#r?.length) {
|
|
3405
3437
|
let s = this.#r, n;
|
|
3406
3438
|
for (;n = s?.shift(); )
|
|
3407
|
-
this.#
|
|
3439
|
+
this.#w?.(...n);
|
|
3408
3440
|
}
|
|
3409
3441
|
return i;
|
|
3410
3442
|
}
|
|
3411
3443
|
clear() {
|
|
3412
|
-
return this
|
|
3444
|
+
return this.#$("delete");
|
|
3413
3445
|
}
|
|
3414
|
-
|
|
3415
|
-
for (let e of this.#
|
|
3446
|
+
#$(t) {
|
|
3447
|
+
for (let e of this.#v({ allowStale: true })) {
|
|
3416
3448
|
let i = this.#t[e];
|
|
3417
3449
|
if (this.#e(i))
|
|
3418
3450
|
i.__abortController.abort(new Error("deleted"));
|
|
3419
3451
|
else {
|
|
3420
3452
|
let s = this.#i[e];
|
|
3421
|
-
this.#T && this.#
|
|
3453
|
+
this.#T && this.#m?.(i, s, t), this.#f && this.#r?.push([i, s, t]);
|
|
3422
3454
|
}
|
|
3423
3455
|
}
|
|
3424
|
-
if (this.#s.clear(), this.#t.fill(undefined), this.#i.fill(undefined), this.#d && this.#
|
|
3425
|
-
this.#d.fill(0), this.#
|
|
3456
|
+
if (this.#s.clear(), this.#t.fill(undefined), this.#i.fill(undefined), this.#d && this.#F) {
|
|
3457
|
+
this.#d.fill(0), this.#F.fill(0);
|
|
3426
3458
|
for (let e of this.#g ?? [])
|
|
3427
3459
|
e !== undefined && clearTimeout(e);
|
|
3428
3460
|
this.#g?.fill(undefined);
|
|
3429
3461
|
}
|
|
3430
|
-
if (this.#
|
|
3462
|
+
if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
3431
3463
|
let e = this.#r, i;
|
|
3432
3464
|
for (;i = e?.shift(); )
|
|
3433
|
-
this.#
|
|
3465
|
+
this.#w?.(...i);
|
|
3434
3466
|
}
|
|
3435
3467
|
}
|
|
3436
3468
|
};
|
|
3437
|
-
exports.LRUCache =
|
|
3469
|
+
exports.LRUCache = x;
|
|
3438
3470
|
});
|
|
3439
3471
|
|
|
3440
3472
|
// node_modules/.bun/cacache@20.0.4/node_modules/cacache/lib/memoization.js
|