@redscope-ai/redscope 1.0.0
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 +224 -0
- package/dist/chunk-090920rk.js +288 -0
- package/dist/chunk-0afb2r78.js +141 -0
- package/dist/chunk-0d4ekx1g.js +73 -0
- package/dist/chunk-0g6nwbhq.js +15 -0
- package/dist/chunk-0qj905nt.js +18 -0
- package/dist/chunk-0s5btnn1.js +186 -0
- package/dist/chunk-0s8fars0.js +91 -0
- package/dist/chunk-10ev3dvh.js +312 -0
- package/dist/chunk-10k5jfc5.js +1295 -0
- package/dist/chunk-12tspwqa.js +240 -0
- package/dist/chunk-13qesvnw.js +17 -0
- package/dist/chunk-143eh1e0.js +121 -0
- package/dist/chunk-14p6wvsq.js +39 -0
- package/dist/chunk-19f3zb1m.js +342 -0
- package/dist/chunk-1a5cep8h.js +145 -0
- package/dist/chunk-1abw9kkn.js +34 -0
- package/dist/chunk-1aer7c78.js +118 -0
- package/dist/chunk-1dazz4g6.js +154 -0
- package/dist/chunk-1fcf4ty1.js +142 -0
- package/dist/chunk-1gnxhyf8.js +62 -0
- package/dist/chunk-1he3944e.js +8124 -0
- package/dist/chunk-1jpayz7y.js +952 -0
- package/dist/chunk-1qd6f6vk.js +269 -0
- package/dist/chunk-1v0kpe62.js +2547 -0
- package/dist/chunk-1w20m7gw.js +445 -0
- package/dist/chunk-1y7kp51j.js +72 -0
- package/dist/chunk-1ycb5sxt.js +247 -0
- package/dist/chunk-1zbwhcbt.js +1124 -0
- package/dist/chunk-20psem54.js +116 -0
- package/dist/chunk-23h69r5b.js +30 -0
- package/dist/chunk-23x86ptv.js +473 -0
- package/dist/chunk-24fyv3jz.js +378 -0
- package/dist/chunk-24kv69g3.js +97 -0
- package/dist/chunk-2azx8zsc.js +125 -0
- package/dist/chunk-2d1gwzz9.js +524 -0
- package/dist/chunk-2g0ytd9d.js +29058 -0
- package/dist/chunk-2hfp9kat.js +21 -0
- package/dist/chunk-2j875eq6.js +37 -0
- package/dist/chunk-2kcgxnvp.js +39 -0
- package/dist/chunk-2kz09j2s.js +23 -0
- package/dist/chunk-2mwnwp0n.js +17 -0
- package/dist/chunk-2p1cqhcn.js +921 -0
- package/dist/chunk-2p369q9z.js +61 -0
- package/dist/chunk-2rf6asgf.js +151 -0
- package/dist/chunk-2vr7mqx1.js +384 -0
- package/dist/chunk-2xcg933e.js +205 -0
- package/dist/chunk-2ypwckbz.js +40310 -0
- package/dist/chunk-30wnahyg.js +626 -0
- package/dist/chunk-326zehp8.js +204 -0
- package/dist/chunk-32s6jzgw.js +183 -0
- package/dist/chunk-35yzt1a7.js +202 -0
- package/dist/chunk-38frkej6.js +62 -0
- package/dist/chunk-3abaq08g.js +34 -0
- package/dist/chunk-3h59ttr5.js +32 -0
- package/dist/chunk-3nk9q8dr.js +154 -0
- package/dist/chunk-3prrxevm.js +224 -0
- package/dist/chunk-3tv8p9xw.js +127 -0
- package/dist/chunk-3txyekes.js +19 -0
- package/dist/chunk-3vfxjn7g.js +19 -0
- package/dist/chunk-3w9sye8h.js +81 -0
- package/dist/chunk-3y69j7y8.js +24 -0
- package/dist/chunk-3zwjpkjh.js +1603 -0
- package/dist/chunk-40t1d75v.js +3442 -0
- package/dist/chunk-470kmby4.js +318 -0
- package/dist/chunk-47jc141z.js +335 -0
- package/dist/chunk-48rz50ct.js +868 -0
- package/dist/chunk-49wv03ts.js +232 -0
- package/dist/chunk-4a189mn2.js +103 -0
- package/dist/chunk-4c4fmh7a.js +15 -0
- package/dist/chunk-4ct8dsj5.js +49 -0
- package/dist/chunk-4kqt1pm1.js +100 -0
- package/dist/chunk-4ng0xy0e.js +802 -0
- package/dist/chunk-4spgkgr3.js +43 -0
- package/dist/chunk-4tjdwtyy.js +19 -0
- package/dist/chunk-4tr60273.js +370 -0
- package/dist/chunk-4vnaeng5.js +29 -0
- package/dist/chunk-4wbqpeaw.js +871 -0
- package/dist/chunk-4wgkv3fv.js +1140 -0
- package/dist/chunk-4yjskjb6.js +40 -0
- package/dist/chunk-50m3a23z.js +35 -0
- package/dist/chunk-511f79az.js +182 -0
- package/dist/chunk-51sgztvv.js +161 -0
- package/dist/chunk-563fcpv1.js +290 -0
- package/dist/chunk-564cnq6v.js +735 -0
- package/dist/chunk-569r8cxc.js +31 -0
- package/dist/chunk-570x55d4.js +12 -0
- package/dist/chunk-571556cm.js +80 -0
- package/dist/chunk-59t4c56e.js +63 -0
- package/dist/chunk-5axjhkma.js +36 -0
- package/dist/chunk-5b188q5e.js +157 -0
- package/dist/chunk-5dmn1865.js +439 -0
- package/dist/chunk-5ks4829r.js +267 -0
- package/dist/chunk-5mmhfbxb.js +1078 -0
- package/dist/chunk-5rdt14hy.js +742 -0
- package/dist/chunk-5ssryexj.js +121 -0
- package/dist/chunk-5v95pnq4.js +15 -0
- package/dist/chunk-5xvjt2t9.js +68 -0
- package/dist/chunk-5zyq6t1q.js +118 -0
- package/dist/chunk-60fkafk2.js +15 -0
- package/dist/chunk-62fjkf5q.js +46 -0
- package/dist/chunk-64gazrrb.js +8067 -0
- package/dist/chunk-65tq2yjx.js +126 -0
- package/dist/chunk-65zbgg1n.js +14 -0
- package/dist/chunk-66v8mty3.js +264 -0
- package/dist/chunk-6acx5heq.js +292 -0
- package/dist/chunk-6hr7742d.js +61 -0
- package/dist/chunk-6hygvrhn.js +143 -0
- package/dist/chunk-6kjh280m.js +128 -0
- package/dist/chunk-6s0q1s5r.js +66 -0
- package/dist/chunk-6x35ffpx.js +690 -0
- package/dist/chunk-71jfy1hh.js +570 -0
- package/dist/chunk-71sdcaq6.js +15 -0
- package/dist/chunk-754qdxs5.js +92 -0
- package/dist/chunk-79v5bkj4.js +1176 -0
- package/dist/chunk-7br0w7j5.js +151 -0
- package/dist/chunk-7cjgrzz1.js +298 -0
- package/dist/chunk-7d41ks0y.js +133 -0
- package/dist/chunk-7f40pmtr.js +71 -0
- package/dist/chunk-7g15x8hm.js +131 -0
- package/dist/chunk-7gtnzdet.js +120 -0
- package/dist/chunk-7h0z4aqx.js +702 -0
- package/dist/chunk-7h7e5a7d.js +25 -0
- package/dist/chunk-7m2cznwr.js +40 -0
- package/dist/chunk-7nvday0n.js +252 -0
- package/dist/chunk-7qey87th.js +145 -0
- package/dist/chunk-7qx3xhv3.js +9076 -0
- package/dist/chunk-7tfdhkpy.js +61 -0
- package/dist/chunk-80m511j6.js +121 -0
- package/dist/chunk-80ysxfe9.js +784 -0
- package/dist/chunk-8375zk8t.js +17200 -0
- package/dist/chunk-85bpkyy9.js +412 -0
- package/dist/chunk-85tcn547.js +876 -0
- package/dist/chunk-85vqgbc8.js +13 -0
- package/dist/chunk-86626jb4.js +49 -0
- package/dist/chunk-87ms17f6.js +444 -0
- package/dist/chunk-87mz239c.js +118 -0
- package/dist/chunk-89vdzt4e.js +254 -0
- package/dist/chunk-89z3e99z.js +159 -0
- package/dist/chunk-8cwrz1dd.js +1806 -0
- package/dist/chunk-8gv2pjby.js +21 -0
- package/dist/chunk-8hdevr3s.js +140 -0
- package/dist/chunk-8hdsk6qc.js +710 -0
- package/dist/chunk-8kct9arg.js +724 -0
- package/dist/chunk-8kf8h7xf.js +23 -0
- package/dist/chunk-8qed8ymj.js +605 -0
- package/dist/chunk-8sdgr592.js +101 -0
- package/dist/chunk-8we9w8pw.js +111 -0
- package/dist/chunk-8xnm5637.js +72 -0
- package/dist/chunk-8y3q0eqy.js +67 -0
- package/dist/chunk-8yvsnrkr.js +3449 -0
- package/dist/chunk-8zz4z1q3.js +42 -0
- package/dist/chunk-90eyff3k.js +119 -0
- package/dist/chunk-92bjkrf2.js +121 -0
- package/dist/chunk-92zrc7c6.js +327 -0
- package/dist/chunk-935nrvdb.js +13 -0
- package/dist/chunk-94pfyv6a.js +48 -0
- package/dist/chunk-9568p8se.js +115 -0
- package/dist/chunk-96km1ywr.js +37 -0
- package/dist/chunk-980bg4w4.js +163 -0
- package/dist/chunk-9a9g5hbj.js +205 -0
- package/dist/chunk-9cm4725d.js +4395 -0
- package/dist/chunk-9ds3vzq8.js +847 -0
- package/dist/chunk-9ffc9n60.js +618 -0
- package/dist/chunk-9fstrwv2.js +184 -0
- package/dist/chunk-9gt0g0qe.js +153 -0
- package/dist/chunk-9h9k5vz3.js +2761 -0
- package/dist/chunk-9he8bmhy.js +17 -0
- package/dist/chunk-9hn8e6h1.js +12 -0
- package/dist/chunk-9j0n3g8e.js +179 -0
- package/dist/chunk-9j6pa3ft.js +251 -0
- package/dist/chunk-9jpg9dn7.js +122 -0
- package/dist/chunk-9mycnwj5.js +46 -0
- package/dist/chunk-9npy2c17.js +517 -0
- package/dist/chunk-9p6sec8n.js +34 -0
- package/dist/chunk-9pnym83h.js +4584 -0
- package/dist/chunk-9skwrnd2.js +25 -0
- package/dist/chunk-9tsfaqr8.js +459 -0
- package/dist/chunk-9tsw3cqv.js +5924 -0
- package/dist/chunk-9w6ckyk4.js +49 -0
- package/dist/chunk-a15bwzv6.js +147 -0
- package/dist/chunk-a9t6cp69.js +28 -0
- package/dist/chunk-ad2yk19p.js +102 -0
- package/dist/chunk-ad4cw4nw.js +336 -0
- package/dist/chunk-ad69fbsk.js +347 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-aeysytks.js +216 -0
- package/dist/chunk-ag81m9bq.js +61 -0
- package/dist/chunk-ahx7gp6r.js +4448 -0
- package/dist/chunk-aj4tk4tk.js +23 -0
- package/dist/chunk-an82t9jc.js +104 -0
- package/dist/chunk-apg95qd7.js +1393 -0
- package/dist/chunk-aq5n2adz.js +27 -0
- package/dist/chunk-aw4s3a99.js +208 -0
- package/dist/chunk-awgdfggg.js +14 -0
- package/dist/chunk-ayymxgn1.js +164 -0
- package/dist/chunk-azbab59e.js +637 -0
- package/dist/chunk-azdxq2a3.js +293 -0
- package/dist/chunk-b0tjx3k1.js +523 -0
- package/dist/chunk-b5pp4g2g.js +371 -0
- package/dist/chunk-b5zm8dt6.js +26 -0
- package/dist/chunk-bcnye5a0.js +109 -0
- package/dist/chunk-beqz3k49.js +190 -0
- package/dist/chunk-bf906wpw.js +147 -0
- package/dist/chunk-bgan4cpf.js +13 -0
- package/dist/chunk-bhzp13h7.js +1178 -0
- package/dist/chunk-bk403kpw.js +142 -0
- package/dist/chunk-bmq4c135.js +489 -0
- package/dist/chunk-bprbeda7.js +35 -0
- package/dist/chunk-bst7czdd.js +888 -0
- package/dist/chunk-bths4xgn.js +111 -0
- package/dist/chunk-btjn3qby.js +13 -0
- package/dist/chunk-bwb1vxnt.js +120 -0
- package/dist/chunk-bxa6tw4m.js +643 -0
- package/dist/chunk-bxfjr8qb.js +27 -0
- package/dist/chunk-bxpzhrej.js +73 -0
- package/dist/chunk-bzyzrq0k.js +51 -0
- package/dist/chunk-c0k7b0jw.js +4265 -0
- package/dist/chunk-c17f0h2s.js +16 -0
- package/dist/chunk-c1yc761e.js +6748 -0
- package/dist/chunk-c5g9shkw.js +298 -0
- package/dist/chunk-c696122m.js +69 -0
- package/dist/chunk-c92b3yxx.js +109 -0
- package/dist/chunk-c9aqz56y.js +143 -0
- package/dist/chunk-cba7c5w3.js +345 -0
- package/dist/chunk-cbcxbbe6.js +6543 -0
- package/dist/chunk-cdfjb87h.js +11 -0
- package/dist/chunk-ce8zjt1y.js +136 -0
- package/dist/chunk-cep7e37k.js +22740 -0
- package/dist/chunk-chs5qm8d.js +258 -0
- package/dist/chunk-ckydq33g.js +144 -0
- package/dist/chunk-cnge6wpj.js +514 -0
- package/dist/chunk-cpnsvqf1.js +13 -0
- package/dist/chunk-cqqebkv4.js +32 -0
- package/dist/chunk-cvqpp7dk.js +627 -0
- package/dist/chunk-cwc33j40.js +65 -0
- package/dist/chunk-cypvrq2a.js +155 -0
- package/dist/chunk-d1ha0swn.js +475 -0
- package/dist/chunk-d2an0138.js +35 -0
- package/dist/chunk-d2tt72ck.js +343 -0
- package/dist/chunk-d6wvcqrw.js +9507 -0
- package/dist/chunk-d7ys2kka.js +991 -0
- package/dist/chunk-dbts5q5p.js +122 -0
- package/dist/chunk-dct29ggs.js +295 -0
- package/dist/chunk-de0qnnf7.js +1059 -0
- package/dist/chunk-dep72ce4.js +513 -0
- package/dist/chunk-dgpvgy8x.js +47 -0
- package/dist/chunk-dhhd7dtc.js +20 -0
- package/dist/chunk-dhzpmxv6.js +594 -0
- package/dist/chunk-djes4da7.js +413 -0
- package/dist/chunk-dnhv3vx7.js +166 -0
- package/dist/chunk-dqtvafan.js +2365 -0
- package/dist/chunk-dr4a3tcp.js +60 -0
- package/dist/chunk-dz2xk9kb.js +100 -0
- package/dist/chunk-dz7nc6rf.js +15 -0
- package/dist/chunk-e3abfxpy.js +1486 -0
- package/dist/chunk-e3cq9z89.js +85 -0
- package/dist/chunk-e3j7m7k2.js +642 -0
- package/dist/chunk-e4dsy4g1.js +9951 -0
- package/dist/chunk-e5592pnn.js +197 -0
- package/dist/chunk-e55hdegh.js +129 -0
- package/dist/chunk-e5r5r04e.js +1030 -0
- package/dist/chunk-e60zztbt.js +442 -0
- package/dist/chunk-e7qq6vn0.js +372 -0
- package/dist/chunk-e9aat7xw.js +80 -0
- package/dist/chunk-e9d5v3zs.js +143 -0
- package/dist/chunk-eax32zk4.js +87 -0
- package/dist/chunk-ebfwmbx1.js +117 -0
- package/dist/chunk-ec71pb8t.js +971 -0
- package/dist/chunk-eemjb825.js +17252 -0
- package/dist/chunk-ees8xdhd.js +256 -0
- package/dist/chunk-eewg66y1.js +112 -0
- package/dist/chunk-eg22v12d.js +266 -0
- package/dist/chunk-enzzk67f.js +313 -0
- package/dist/chunk-eskhp70f.js +117 -0
- package/dist/chunk-ewx6z4g8.js +55 -0
- package/dist/chunk-eyvx461k.js +76 -0
- package/dist/chunk-eztq2b5f.js +94 -0
- package/dist/chunk-f0ffwzdd.js +321 -0
- package/dist/chunk-f80n68mf.js +119 -0
- package/dist/chunk-fae2hjxp.js +99 -0
- package/dist/chunk-fbtfp370.js +60 -0
- package/dist/chunk-fc6ndtgf.js +94 -0
- package/dist/chunk-fdwabr8p.js +13870 -0
- package/dist/chunk-fejeqe61.js +785 -0
- package/dist/chunk-fh0d6mvk.js +168 -0
- package/dist/chunk-fh19zcaf.js +304 -0
- package/dist/chunk-fh8bd39r.js +186 -0
- package/dist/chunk-fj2ebbpn.js +33 -0
- package/dist/chunk-fjn632v7.js +194 -0
- package/dist/chunk-fncpkzs5.js +1389 -0
- package/dist/chunk-fpd1gpt8.js +332 -0
- package/dist/chunk-fq9snrnh.js +295 -0
- package/dist/chunk-fqcfzg3j.js +207 -0
- package/dist/chunk-ftt3vqj2.js +1919 -0
- package/dist/chunk-g06pm4n9.js +395 -0
- package/dist/chunk-g4m5pf4g.js +8 -0
- package/dist/chunk-g72h52y6.js +36 -0
- package/dist/chunk-g79ej71s.js +1627 -0
- package/dist/chunk-g7fwk59d.js +19 -0
- package/dist/chunk-g9jnkrtm.js +663 -0
- package/dist/chunk-g9vg5d7t.js +38 -0
- package/dist/chunk-ga1jkyqy.js +1636 -0
- package/dist/chunk-gaaap2nk.js +676 -0
- package/dist/chunk-gc6erq5q.js +483 -0
- package/dist/chunk-gjrcmf0a.js +752 -0
- package/dist/chunk-gmdy2w3z.js +238999 -0
- package/dist/chunk-gsz4yrrk.js +81 -0
- package/dist/chunk-gy47rjy8.js +3830 -0
- package/dist/chunk-h12a4f4x.js +11 -0
- package/dist/chunk-h1yratmg.js +725 -0
- package/dist/chunk-h9y0jnsy.js +155 -0
- package/dist/chunk-hbhs3mwy.js +133 -0
- package/dist/chunk-hbs8cmb4.js +8 -0
- package/dist/chunk-hdk0t1ht.js +940 -0
- package/dist/chunk-hef8dx4s.js +178 -0
- package/dist/chunk-hgsca8mt.js +381 -0
- package/dist/chunk-hhsxm2yr.js +67 -0
- package/dist/chunk-hj5tzzpd.js +39 -0
- package/dist/chunk-hjxqmtg5.js +94 -0
- package/dist/chunk-hn4w9pkj.js +68 -0
- package/dist/chunk-hnprkjgp.js +25 -0
- package/dist/chunk-hq3n5ex7.js +183 -0
- package/dist/chunk-hqjspfma.js +158 -0
- package/dist/chunk-hqxp6b72.js +1198 -0
- package/dist/chunk-hs6nrmq6.js +94 -0
- package/dist/chunk-hwba5xdc.js +267 -0
- package/dist/chunk-hy566ev3.js +430 -0
- package/dist/chunk-hzmzwte2.js +153 -0
- package/dist/chunk-hzxzvzw8.js +274 -0
- package/dist/chunk-j139fzgs.js +114 -0
- package/dist/chunk-j1mep9ck.js +62 -0
- package/dist/chunk-j3xveeg4.js +273 -0
- package/dist/chunk-j5y1s11j.js +100 -0
- package/dist/chunk-j9475b46.js +26 -0
- package/dist/chunk-j9rgqs8m.js +1192 -0
- package/dist/chunk-jccjaddz.js +74 -0
- package/dist/chunk-jdkwfy9e.js +35 -0
- package/dist/chunk-jdqp0r4h.js +6157 -0
- package/dist/chunk-jdzk4zwn.js +587 -0
- package/dist/chunk-jfafmkte.js +49 -0
- package/dist/chunk-jg3r989b.js +16 -0
- package/dist/chunk-jhtccjc9.js +54 -0
- package/dist/chunk-jj2ff1pr.js +688 -0
- package/dist/chunk-jmv7k0jn.js +37 -0
- package/dist/chunk-jmxzmwpw.js +65 -0
- package/dist/chunk-jnjxdqyr.js +353 -0
- package/dist/chunk-jsbbez9j.js +138 -0
- package/dist/chunk-jvpt2dc0.js +424 -0
- package/dist/chunk-jwd7cka0.js +34 -0
- package/dist/chunk-jy5er3st.js +15 -0
- package/dist/chunk-jyby79z5.js +121 -0
- package/dist/chunk-jzyr6j5n.js +332 -0
- package/dist/chunk-k49xc781.js +63 -0
- package/dist/chunk-k7dt2g4a.js +41 -0
- package/dist/chunk-k7hexw3v.js +969 -0
- package/dist/chunk-k7wwkraa.js +117 -0
- package/dist/chunk-kb3758f7.js +51 -0
- package/dist/chunk-kc67kt75.js +3119 -0
- package/dist/chunk-kdhmfxmh.js +3149 -0
- package/dist/chunk-kejdd6zc.js +51 -0
- package/dist/chunk-kekrjeem.js +402 -0
- package/dist/chunk-kez5r0zz.js +280 -0
- package/dist/chunk-kfsvcs5t.js +75 -0
- package/dist/chunk-khtvffc4.js +285 -0
- package/dist/chunk-kkz4w1tv.js +64 -0
- package/dist/chunk-kmywng0j.js +272 -0
- package/dist/chunk-kq6vcpdr.js +224 -0
- package/dist/chunk-kqzdszcc.js +37 -0
- package/dist/chunk-ktxpp02w.js +435 -0
- package/dist/chunk-kwcvhbtz.js +26 -0
- package/dist/chunk-kx0cm9qr.js +128 -0
- package/dist/chunk-kxcmqz10.js +120 -0
- package/dist/chunk-kxwava1g.js +14 -0
- package/dist/chunk-kywtr3jg.js +825 -0
- package/dist/chunk-kzwg923p.js +8 -0
- package/dist/chunk-m1eq3sgv.js +255 -0
- package/dist/chunk-m21h5zb4.js +119 -0
- package/dist/chunk-m2c3bjv1.js +111 -0
- package/dist/chunk-m41e19ms.js +42 -0
- package/dist/chunk-m7ka36ex.js +97 -0
- package/dist/chunk-m81w8tbm.js +259 -0
- package/dist/chunk-m95ggkax.js +281 -0
- package/dist/chunk-manx26xa.js +145 -0
- package/dist/chunk-mdxh3pk2.js +298 -0
- package/dist/chunk-mhbfkcja.js +311 -0
- package/dist/chunk-mjnr5erm.js +173 -0
- package/dist/chunk-mngvnmwp.js +135 -0
- package/dist/chunk-mvfqanv5.js +63 -0
- package/dist/chunk-mw1nesq1.js +140 -0
- package/dist/chunk-mx168925.js +661 -0
- package/dist/chunk-mxwvj18g.js +795 -0
- package/dist/chunk-my7r5mba.js +257 -0
- package/dist/chunk-myaa1kkf.js +17 -0
- package/dist/chunk-myypc3tn.js +46 -0
- package/dist/chunk-mzcnmnpq.js +3379 -0
- package/dist/chunk-mznav6d1.js +194 -0
- package/dist/chunk-n0qxskpr.js +24 -0
- package/dist/chunk-n6a6hgtp.js +394 -0
- package/dist/chunk-n6d5fgx0.js +254 -0
- package/dist/chunk-n6ym3n03.js +120 -0
- package/dist/chunk-n9g24mwe.js +104 -0
- package/dist/chunk-naamqdf9.js +185 -0
- package/dist/chunk-nb2jk7zj.js +15 -0
- package/dist/chunk-nbkbq9en.js +67 -0
- package/dist/chunk-ndttd6es.js +38 -0
- package/dist/chunk-nfygaaxg.js +133 -0
- package/dist/chunk-ngdzpszd.js +454 -0
- package/dist/chunk-nmfwksa4.js +1297 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nwc3v0vp.js +691 -0
- package/dist/chunk-nz8ha95p.js +3610 -0
- package/dist/chunk-nzxfj0gq.js +2007 -0
- package/dist/chunk-p0r8887g.js +6932 -0
- package/dist/chunk-p1seyqdm.js +120 -0
- package/dist/chunk-p425zbgw.js +726 -0
- package/dist/chunk-p7hamd2c.js +146 -0
- package/dist/chunk-pdvg91cg.js +32 -0
- package/dist/chunk-pecy49yr.js +14649 -0
- package/dist/chunk-pfxrg89f.js +547 -0
- package/dist/chunk-pfyw3155.js +2750 -0
- package/dist/chunk-pr8m11pm.js +1192 -0
- package/dist/chunk-ptxteaeh.js +1591 -0
- package/dist/chunk-pv164mac.js +394 -0
- package/dist/chunk-pxxhtxf5.js +10154 -0
- package/dist/chunk-q0e485mg.js +61 -0
- package/dist/chunk-q1vrhh0q.js +458 -0
- package/dist/chunk-q2h79ncs.js +370 -0
- package/dist/chunk-q3b4n194.js +56 -0
- package/dist/chunk-q44zc68f.js +4301 -0
- package/dist/chunk-q8gknbdx.js +352 -0
- package/dist/chunk-q8xk3kdj.js +11 -0
- package/dist/chunk-qak46xtp.js +119 -0
- package/dist/chunk-qfq7absv.js +95 -0
- package/dist/chunk-qfsn720k.js +151 -0
- package/dist/chunk-qg4811f6.js +228 -0
- package/dist/chunk-qgzn3qps.js +90 -0
- package/dist/chunk-qhaggqkt.js +113 -0
- package/dist/chunk-qjjp27z8.js +195 -0
- package/dist/chunk-qxp0nye6.js +34 -0
- package/dist/chunk-qy3nagaq.js +4957 -0
- package/dist/chunk-qz2meav1.js +1452 -0
- package/dist/chunk-r50hne7m.js +63 -0
- package/dist/chunk-r6m0vgnv.js +80 -0
- package/dist/chunk-r7yw38vf.js +22864 -0
- package/dist/chunk-r8xc618w.js +42 -0
- package/dist/chunk-r961r5kj.js +87 -0
- package/dist/chunk-r9b5xrh0.js +66 -0
- package/dist/chunk-rcn2pd6q.js +477 -0
- package/dist/chunk-rdeh8p3y.js +148 -0
- package/dist/chunk-rg9x1742.js +542 -0
- package/dist/chunk-rgyzsbs3.js +39 -0
- package/dist/chunk-rk2fsxtz.js +16 -0
- package/dist/chunk-rkchkwv9.js +40 -0
- package/dist/chunk-rp8whpb3.js +478 -0
- package/dist/chunk-rpkxdtgr.js +68 -0
- package/dist/chunk-rpmntgyh.js +394 -0
- package/dist/chunk-rpshz4dy.js +614 -0
- package/dist/chunk-rqd60ay5.js +133 -0
- package/dist/chunk-rrsjf2ea.js +229 -0
- package/dist/chunk-rtjk8c8e.js +173 -0
- package/dist/chunk-rw0y2wdf.js +1017 -0
- package/dist/chunk-rx5w7ess.js +663 -0
- package/dist/chunk-rx8t9d35.js +1947 -0
- package/dist/chunk-rxcazxgf.js +195 -0
- package/dist/chunk-rxg6q3bp.js +1413 -0
- package/dist/chunk-rxrb7xnd.js +71 -0
- package/dist/chunk-rxrzxff3.js +118 -0
- package/dist/chunk-ryqjc943.js +71 -0
- package/dist/chunk-rzk9k2rf.js +81 -0
- package/dist/chunk-s2qv0nht.js +119 -0
- package/dist/chunk-s3hafnk3.js +2285 -0
- package/dist/chunk-s4a496tt.js +226 -0
- package/dist/chunk-s4d1h3ka.js +35 -0
- package/dist/chunk-sm3k3ze4.js +16525 -0
- package/dist/chunk-sn0bja82.js +385 -0
- package/dist/chunk-sngjggw1.js +4227 -0
- package/dist/chunk-sq047n34.js +364 -0
- package/dist/chunk-sttwe2tw.js +8584 -0
- package/dist/chunk-sw8qx1r0.js +86 -0
- package/dist/chunk-swstah6a.js +240 -0
- package/dist/chunk-syrkr0mf.js +63 -0
- package/dist/chunk-sz206bd9.js +26 -0
- package/dist/chunk-t09669cj.js +333 -0
- package/dist/chunk-t5f8e30k.js +602 -0
- package/dist/chunk-t5m78mc8.js +432 -0
- package/dist/chunk-t5x1dqwn.js +143 -0
- package/dist/chunk-t877ea0w.js +168 -0
- package/dist/chunk-t91hb71c.js +17 -0
- package/dist/chunk-tb636bcf.js +942 -0
- package/dist/chunk-tb8sykbr.js +426 -0
- package/dist/chunk-tbdkekz3.js +125 -0
- package/dist/chunk-td2gsz7s.js +225 -0
- package/dist/chunk-tenvxbyh.js +20 -0
- package/dist/chunk-texg4qqt.js +317 -0
- package/dist/chunk-teymzz80.js +266 -0
- package/dist/chunk-tj26qpf7.js +153 -0
- package/dist/chunk-tk85ec4p.js +395 -0
- package/dist/chunk-tq205h01.js +164 -0
- package/dist/chunk-tqzddjzg.js +61 -0
- package/dist/chunk-trqrj23e.js +134 -0
- package/dist/chunk-tw1hfsxv.js +2477 -0
- package/dist/chunk-txxdfq83.js +122 -0
- package/dist/chunk-v0yhe582.js +31 -0
- package/dist/chunk-v14184xm.js +15 -0
- package/dist/chunk-v1h9z4hw.js +138 -0
- package/dist/chunk-v3ey5j7f.js +329 -0
- package/dist/chunk-v3nh1sfn.js +208 -0
- package/dist/chunk-v3x8tcc0.js +45 -0
- package/dist/chunk-v4nqnvqq.js +3984 -0
- package/dist/chunk-v4ypszbb.js +15 -0
- package/dist/chunk-v7wbqcx9.js +63 -0
- package/dist/chunk-v8r5fev3.js +341 -0
- package/dist/chunk-v9zg5kzx.js +2810 -0
- package/dist/chunk-va1wh5ss.js +24 -0
- package/dist/chunk-vbfswhht.js +42 -0
- package/dist/chunk-ve7x2tfq.js +124 -0
- package/dist/chunk-vfz8k89y.js +485 -0
- package/dist/chunk-vgm5k14x.js +35678 -0
- package/dist/chunk-vh9pej3c.js +247 -0
- package/dist/chunk-vjxqyt6f.js +3820 -0
- package/dist/chunk-vpb1xstn.js +178 -0
- package/dist/chunk-vqt79tj8.js +110 -0
- package/dist/chunk-vr0n9pv9.js +152 -0
- package/dist/chunk-vrejmja5.js +90 -0
- package/dist/chunk-vrxasmdw.js +449 -0
- package/dist/chunk-vrxb946v.js +125 -0
- package/dist/chunk-vv4kj0q8.js +98 -0
- package/dist/chunk-vvpfng7w.js +8 -0
- package/dist/chunk-vw6ybyew.js +2007 -0
- package/dist/chunk-vwenx8ke.js +17 -0
- package/dist/chunk-vwfa0s5a.js +155 -0
- package/dist/chunk-vx71j8xe.js +63 -0
- package/dist/chunk-vxbjzggp.js +43 -0
- package/dist/chunk-vxjxtz8w.js +440 -0
- package/dist/chunk-vy0c1bwp.js +9 -0
- package/dist/chunk-w3zczyse.js +14 -0
- package/dist/chunk-w4p5t920.js +655 -0
- package/dist/chunk-w68wc625.js +287 -0
- package/dist/chunk-w9ddp3yf.js +96 -0
- package/dist/chunk-wcggm5ja.js +125 -0
- package/dist/chunk-wgnyph3q.js +1306 -0
- package/dist/chunk-wjm5pc1e.js +134 -0
- package/dist/chunk-wnve0drm.js +131 -0
- package/dist/chunk-wp27ev2k.js +135 -0
- package/dist/chunk-wyvy8a4x.js +131 -0
- package/dist/chunk-x671y4dk.js +129 -0
- package/dist/chunk-xbj5keyy.js +22 -0
- package/dist/chunk-xf4fzms8.js +39 -0
- package/dist/chunk-xf59k3zg.js +65 -0
- package/dist/chunk-xgzc4w49.js +204 -0
- package/dist/chunk-xhj7g13b.js +2149 -0
- package/dist/chunk-xjp0cd00.js +56 -0
- package/dist/chunk-xkhnmhqs.js +74 -0
- package/dist/chunk-xkrkqx61.js +55 -0
- package/dist/chunk-xmpgmeb8.js +114 -0
- package/dist/chunk-xrw80zgd.js +4249 -0
- package/dist/chunk-xrzc96g0.js +202 -0
- package/dist/chunk-xt76sm44.js +318 -0
- package/dist/chunk-xwet3awb.js +20 -0
- package/dist/chunk-xyg1sk2w.js +78 -0
- package/dist/chunk-y0jpkqb0.js +180 -0
- package/dist/chunk-y1q7rt9n.js +102 -0
- package/dist/chunk-y67ntyek.js +258 -0
- package/dist/chunk-ybk37qp9.js +37 -0
- package/dist/chunk-yc1stfve.js +5386 -0
- package/dist/chunk-ychjpjef.js +62 -0
- package/dist/chunk-yez8fa9g.js +276 -0
- package/dist/chunk-ygm7xszr.js +90 -0
- package/dist/chunk-ym11azkj.js +37 -0
- package/dist/chunk-ympz2h15.js +578 -0
- package/dist/chunk-yqx3az3n.js +129 -0
- package/dist/chunk-yt3nfhcc.js +152 -0
- package/dist/chunk-yy8q0n8s.js +120 -0
- package/dist/chunk-yzb92zxv.js +8 -0
- package/dist/chunk-yzet6xyr.js +119 -0
- package/dist/chunk-yzm97qp1.js +226 -0
- package/dist/chunk-z0jgeax8.js +35 -0
- package/dist/chunk-z1r3z6w6.js +29 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z79355gz.js +308 -0
- package/dist/chunk-z7e94hxz.js +251 -0
- package/dist/chunk-z8cqdcec.js +173 -0
- package/dist/chunk-z99tbg45.js +148 -0
- package/dist/chunk-z9nsjcht.js +37 -0
- package/dist/chunk-za3k6h2h.js +470 -0
- package/dist/chunk-zacynq5p.js +265 -0
- package/dist/chunk-zb0x40az.js +1785 -0
- package/dist/chunk-zbxtzycc.js +274 -0
- package/dist/chunk-zga50181.js +342 -0
- package/dist/chunk-zhb2pns1.js +44 -0
- package/dist/chunk-zkch6trx.js +231 -0
- package/dist/chunk-znf3z4qt.js +954 -0
- package/dist/chunk-zp8zwdgq.js +72 -0
- package/dist/chunk-ztjd8pyf.js +120 -0
- package/dist/chunk-ztmb7geg.js +173 -0
- package/dist/chunk-zvr4snzv.js +887 -0
- package/dist/chunk-zw62m6n3.js +34858 -0
- package/dist/chunk-zwwdebd0.js +65 -0
- package/dist/chunk-zxc6x9w8.js +340 -0
- package/dist/chunk-zy2e7sz0.js +8 -0
- package/dist/chunk-zzf074w3.js +196 -0
- package/dist/chunk-zzz0nwb5.js +310 -0
- package/dist/cli-bun.js +2 -0
- package/dist/cli-node.js +2 -0
- package/dist/cli.js +218 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/package.json +243 -0
- package/scripts/chrome-mcp-bridge-resolver.mjs +43 -0
- package/scripts/chrome-mcp-env.mjs +19 -0
- package/scripts/postinstall.cjs +339 -0
- package/scripts/run-parallel.mjs +10 -0
- package/scripts/setup-chrome-mcp.mjs +69 -0
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
__esm
|
|
4
|
+
} from "./chunk-hhsxm2yr.js";
|
|
5
|
+
|
|
6
|
+
// node_modules/.bun/lru-cache@11.3.5/node_modules/lru-cache/dist/esm/node/index.min.js
|
|
7
|
+
import { tracingChannel as j, channel as I } from "diagnostics_channel";
|
|
8
|
+
var S, W, D = () => S.hasSubscribers || W.hasSubscribers, G, M, C, P = (u, e, t, i) => {
|
|
9
|
+
typeof C.emitWarning == "function" ? C.emitWarning(u, e, t, i) : console.error(`[${t}] ${e}: ${u}`);
|
|
10
|
+
}, H = (u) => !M.has(u), $, F = (u) => !!u && u === Math.floor(u) && u > 0 && isFinite(u), U = (u) => F(u) ? u <= Math.pow(2, 8) ? Uint8Array : u <= Math.pow(2, 16) ? Uint16Array : u <= Math.pow(2, 32) ? Uint32Array : u <= Number.MAX_SAFE_INTEGER ? O : null : null, O, R = class u {
|
|
11
|
+
heap;
|
|
12
|
+
length;
|
|
13
|
+
static #o = false;
|
|
14
|
+
static create(e) {
|
|
15
|
+
let t = U(e);
|
|
16
|
+
if (!t)
|
|
17
|
+
return [];
|
|
18
|
+
u.#o = true;
|
|
19
|
+
let i = new u(e, t);
|
|
20
|
+
return u.#o = false, i;
|
|
21
|
+
}
|
|
22
|
+
constructor(e, t) {
|
|
23
|
+
if (!u.#o)
|
|
24
|
+
throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
25
|
+
this.heap = new t(e), this.length = 0;
|
|
26
|
+
}
|
|
27
|
+
push(e) {
|
|
28
|
+
this.heap[this.length++] = e;
|
|
29
|
+
}
|
|
30
|
+
pop() {
|
|
31
|
+
return this.heap[--this.length];
|
|
32
|
+
}
|
|
33
|
+
}, L;
|
|
34
|
+
var init_index_min = __esm(() => {
|
|
35
|
+
S = I("lru-cache:metrics");
|
|
36
|
+
W = j("lru-cache");
|
|
37
|
+
G = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
38
|
+
M = new Set;
|
|
39
|
+
C = typeof process == "object" && process ? process : {};
|
|
40
|
+
$ = Symbol("type");
|
|
41
|
+
O = class extends Array {
|
|
42
|
+
constructor(e) {
|
|
43
|
+
super(e), this.fill(0);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
L = class u2 {
|
|
47
|
+
#o;
|
|
48
|
+
#u;
|
|
49
|
+
#w;
|
|
50
|
+
#D;
|
|
51
|
+
#S;
|
|
52
|
+
#M;
|
|
53
|
+
#U;
|
|
54
|
+
#m;
|
|
55
|
+
get perf() {
|
|
56
|
+
return this.#m;
|
|
57
|
+
}
|
|
58
|
+
ttl;
|
|
59
|
+
ttlResolution;
|
|
60
|
+
ttlAutopurge;
|
|
61
|
+
updateAgeOnGet;
|
|
62
|
+
updateAgeOnHas;
|
|
63
|
+
allowStale;
|
|
64
|
+
noDisposeOnSet;
|
|
65
|
+
noUpdateTTL;
|
|
66
|
+
maxEntrySize;
|
|
67
|
+
sizeCalculation;
|
|
68
|
+
noDeleteOnFetchRejection;
|
|
69
|
+
noDeleteOnStaleGet;
|
|
70
|
+
allowStaleOnFetchAbort;
|
|
71
|
+
allowStaleOnFetchRejection;
|
|
72
|
+
ignoreFetchAbort;
|
|
73
|
+
#n;
|
|
74
|
+
#b;
|
|
75
|
+
#s;
|
|
76
|
+
#i;
|
|
77
|
+
#t;
|
|
78
|
+
#a;
|
|
79
|
+
#c;
|
|
80
|
+
#l;
|
|
81
|
+
#h;
|
|
82
|
+
#y;
|
|
83
|
+
#r;
|
|
84
|
+
#_;
|
|
85
|
+
#F;
|
|
86
|
+
#d;
|
|
87
|
+
#g;
|
|
88
|
+
#T;
|
|
89
|
+
#W;
|
|
90
|
+
#f;
|
|
91
|
+
#j;
|
|
92
|
+
static unsafeExposeInternals(e) {
|
|
93
|
+
return { starts: e.#F, ttls: e.#d, autopurgeTimers: e.#g, sizes: e.#_, keyMap: e.#s, keyList: e.#i, valList: e.#t, next: e.#a, prev: e.#c, get head() {
|
|
94
|
+
return e.#l;
|
|
95
|
+
}, get tail() {
|
|
96
|
+
return e.#h;
|
|
97
|
+
}, free: e.#y, isBackgroundFetch: (t) => e.#e(t), backgroundFetch: (t, i, s, n) => e.#P(t, i, s, n), moveToTail: (t) => e.#L(t), indexes: (t) => e.#A(t), rindexes: (t) => e.#z(t), isStale: (t) => e.#p(t) };
|
|
98
|
+
}
|
|
99
|
+
get max() {
|
|
100
|
+
return this.#o;
|
|
101
|
+
}
|
|
102
|
+
get maxSize() {
|
|
103
|
+
return this.#u;
|
|
104
|
+
}
|
|
105
|
+
get calculatedSize() {
|
|
106
|
+
return this.#b;
|
|
107
|
+
}
|
|
108
|
+
get size() {
|
|
109
|
+
return this.#n;
|
|
110
|
+
}
|
|
111
|
+
get fetchMethod() {
|
|
112
|
+
return this.#M;
|
|
113
|
+
}
|
|
114
|
+
get memoMethod() {
|
|
115
|
+
return this.#U;
|
|
116
|
+
}
|
|
117
|
+
get dispose() {
|
|
118
|
+
return this.#w;
|
|
119
|
+
}
|
|
120
|
+
get onInsert() {
|
|
121
|
+
return this.#D;
|
|
122
|
+
}
|
|
123
|
+
get disposeAfter() {
|
|
124
|
+
return this.#S;
|
|
125
|
+
}
|
|
126
|
+
constructor(e) {
|
|
127
|
+
let { max: t = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: r, allowStale: h, dispose: l, onInsert: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: y, fetchMethod: a, memoMethod: m, noDeleteOnFetchRejection: _, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: A, ignoreFetchAbort: z, perf: x } = e;
|
|
128
|
+
if (x !== undefined && typeof x?.now != "function")
|
|
129
|
+
throw new TypeError("perf option must have a now() method if specified");
|
|
130
|
+
if (this.#m = x ?? G, t !== 0 && !F(t))
|
|
131
|
+
throw new TypeError("max option must be a nonnegative integer");
|
|
132
|
+
let v = t ? U(t) : Array;
|
|
133
|
+
if (!v)
|
|
134
|
+
throw new Error("invalid max value: " + t);
|
|
135
|
+
if (this.#o = t, this.#u = T, this.maxEntrySize = w || this.#u, this.sizeCalculation = y, this.sizeCalculation) {
|
|
136
|
+
if (!this.#u && !this.maxEntrySize)
|
|
137
|
+
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
138
|
+
if (typeof this.sizeCalculation != "function")
|
|
139
|
+
throw new TypeError("sizeCalculation set to non-function");
|
|
140
|
+
}
|
|
141
|
+
if (m !== undefined && typeof m != "function")
|
|
142
|
+
throw new TypeError("memoMethod must be a function if defined");
|
|
143
|
+
if (this.#U = m, a !== undefined && typeof a != "function")
|
|
144
|
+
throw new TypeError("fetchMethod must be a function if specified");
|
|
145
|
+
if (this.#M = a, this.#W = !!a, this.#s = new Map, this.#i = Array.from({ length: t }).fill(undefined), this.#t = Array.from({ length: t }).fill(undefined), this.#a = new v(t), this.#c = new v(t), this.#l = 0, this.#h = 0, this.#y = R.create(t), this.#n = 0, this.#b = 0, typeof l == "function" && (this.#w = l), typeof c == "function" && (this.#D = c), typeof f == "function" ? (this.#S = f, this.#r = []) : (this.#S = undefined, this.#r = undefined), this.#T = !!this.#w, this.#j = !!this.#D, this.#f = !!this.#S, this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!d, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z, this.maxEntrySize !== 0) {
|
|
146
|
+
if (this.#u !== 0 && !F(this.#u))
|
|
147
|
+
throw new TypeError("maxSize must be a positive integer if specified");
|
|
148
|
+
if (!F(this.maxEntrySize))
|
|
149
|
+
throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
150
|
+
this.#X();
|
|
151
|
+
}
|
|
152
|
+
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) {
|
|
153
|
+
if (!F(this.ttl))
|
|
154
|
+
throw new TypeError("ttl must be a positive integer if specified");
|
|
155
|
+
this.#H();
|
|
156
|
+
}
|
|
157
|
+
if (this.#o === 0 && this.ttl === 0 && this.#u === 0)
|
|
158
|
+
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
159
|
+
if (!this.ttlAutopurge && !this.#o && !this.#u) {
|
|
160
|
+
let E = "LRU_CACHE_UNBOUNDED";
|
|
161
|
+
H(E) && (M.add(E), P("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, u2));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
getRemainingTTL(e) {
|
|
165
|
+
return this.#s.has(e) ? 1 / 0 : 0;
|
|
166
|
+
}
|
|
167
|
+
#H() {
|
|
168
|
+
let e = new O(this.#o), t = new O(this.#o);
|
|
169
|
+
this.#d = e, this.#F = t;
|
|
170
|
+
let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : undefined;
|
|
171
|
+
this.#g = i, this.#N = (r, h, l = this.#m.now()) => {
|
|
172
|
+
t[r] = h !== 0 ? l : 0, e[r] = h, s(r, h);
|
|
173
|
+
}, this.#x = (r) => {
|
|
174
|
+
t[r] = e[r] !== 0 ? this.#m.now() : 0, s(r, e[r]);
|
|
175
|
+
};
|
|
176
|
+
let s = this.ttlAutopurge ? (r, h) => {
|
|
177
|
+
if (i?.[r] && (clearTimeout(i[r]), i[r] = undefined), h && h !== 0 && i) {
|
|
178
|
+
let l = setTimeout(() => {
|
|
179
|
+
this.#p(r) && this.#v(this.#i[r], "expire");
|
|
180
|
+
}, h + 1);
|
|
181
|
+
l.unref && l.unref(), i[r] = l;
|
|
182
|
+
}
|
|
183
|
+
} : () => {};
|
|
184
|
+
this.#E = (r, h) => {
|
|
185
|
+
if (e[h]) {
|
|
186
|
+
let l = e[h], c = t[h];
|
|
187
|
+
if (!l || !c)
|
|
188
|
+
return;
|
|
189
|
+
r.ttl = l, r.start = c, r.now = n || o();
|
|
190
|
+
let f = r.now - c;
|
|
191
|
+
r.remainingTTL = l - f;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
let n = 0, o = () => {
|
|
195
|
+
let r = this.#m.now();
|
|
196
|
+
if (this.ttlResolution > 0) {
|
|
197
|
+
n = r;
|
|
198
|
+
let h = setTimeout(() => n = 0, this.ttlResolution);
|
|
199
|
+
h.unref && h.unref();
|
|
200
|
+
}
|
|
201
|
+
return r;
|
|
202
|
+
};
|
|
203
|
+
this.getRemainingTTL = (r) => {
|
|
204
|
+
let h = this.#s.get(r);
|
|
205
|
+
if (h === undefined)
|
|
206
|
+
return 0;
|
|
207
|
+
let l = e[h], c = t[h];
|
|
208
|
+
if (!l || !c)
|
|
209
|
+
return 1 / 0;
|
|
210
|
+
let f = (n || o()) - c;
|
|
211
|
+
return l - f;
|
|
212
|
+
}, this.#p = (r) => {
|
|
213
|
+
let h = t[r], l = e[r];
|
|
214
|
+
return !!l && !!h && (n || o()) - h > l;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
#x = () => {};
|
|
218
|
+
#E = () => {};
|
|
219
|
+
#N = () => {};
|
|
220
|
+
#p = () => false;
|
|
221
|
+
#X() {
|
|
222
|
+
let e = new O(this.#o);
|
|
223
|
+
this.#b = 0, this.#_ = e, this.#R = (t) => {
|
|
224
|
+
this.#b -= e[t], e[t] = 0;
|
|
225
|
+
}, this.#k = (t, i, s, n) => {
|
|
226
|
+
if (this.#e(i))
|
|
227
|
+
return 0;
|
|
228
|
+
if (!F(s))
|
|
229
|
+
if (n) {
|
|
230
|
+
if (typeof n != "function")
|
|
231
|
+
throw new TypeError("sizeCalculation must be a function");
|
|
232
|
+
if (s = n(i, t), !F(s))
|
|
233
|
+
throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
234
|
+
} else
|
|
235
|
+
throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
236
|
+
return s;
|
|
237
|
+
}, this.#I = (t, i, s) => {
|
|
238
|
+
if (e[t] = i, this.#u) {
|
|
239
|
+
let n = this.#u - e[t];
|
|
240
|
+
for (;this.#b > n; )
|
|
241
|
+
this.#G(true);
|
|
242
|
+
}
|
|
243
|
+
this.#b += e[t], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
#R = (e) => {};
|
|
247
|
+
#I = (e, t, i) => {};
|
|
248
|
+
#k = (e, t, i, s) => {
|
|
249
|
+
if (i || s)
|
|
250
|
+
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
251
|
+
return 0;
|
|
252
|
+
};
|
|
253
|
+
*#A({ allowStale: e = this.allowStale } = {}) {
|
|
254
|
+
if (this.#n)
|
|
255
|
+
for (let t = this.#h;this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#l); )
|
|
256
|
+
t = this.#c[t];
|
|
257
|
+
}
|
|
258
|
+
*#z({ allowStale: e = this.allowStale } = {}) {
|
|
259
|
+
if (this.#n)
|
|
260
|
+
for (let t = this.#l;this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#h); )
|
|
261
|
+
t = this.#a[t];
|
|
262
|
+
}
|
|
263
|
+
#V(e) {
|
|
264
|
+
return e !== undefined && this.#s.get(this.#i[e]) === e;
|
|
265
|
+
}
|
|
266
|
+
*entries() {
|
|
267
|
+
for (let e of this.#A())
|
|
268
|
+
this.#t[e] !== undefined && this.#i[e] !== undefined && !this.#e(this.#t[e]) && (yield [this.#i[e], this.#t[e]]);
|
|
269
|
+
}
|
|
270
|
+
*rentries() {
|
|
271
|
+
for (let e of this.#z())
|
|
272
|
+
this.#t[e] !== undefined && this.#i[e] !== undefined && !this.#e(this.#t[e]) && (yield [this.#i[e], this.#t[e]]);
|
|
273
|
+
}
|
|
274
|
+
*keys() {
|
|
275
|
+
for (let e of this.#A()) {
|
|
276
|
+
let t = this.#i[e];
|
|
277
|
+
t !== undefined && !this.#e(this.#t[e]) && (yield t);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
*rkeys() {
|
|
281
|
+
for (let e of this.#z()) {
|
|
282
|
+
let t = this.#i[e];
|
|
283
|
+
t !== undefined && !this.#e(this.#t[e]) && (yield t);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
*values() {
|
|
287
|
+
for (let e of this.#A())
|
|
288
|
+
this.#t[e] !== undefined && !this.#e(this.#t[e]) && (yield this.#t[e]);
|
|
289
|
+
}
|
|
290
|
+
*rvalues() {
|
|
291
|
+
for (let e of this.#z())
|
|
292
|
+
this.#t[e] !== undefined && !this.#e(this.#t[e]) && (yield this.#t[e]);
|
|
293
|
+
}
|
|
294
|
+
[Symbol.iterator]() {
|
|
295
|
+
return this.entries();
|
|
296
|
+
}
|
|
297
|
+
[Symbol.toStringTag] = "LRUCache";
|
|
298
|
+
find(e, t = {}) {
|
|
299
|
+
for (let i of this.#A()) {
|
|
300
|
+
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
301
|
+
if (n !== undefined && e(n, this.#i[i], this))
|
|
302
|
+
return this.#C(this.#i[i], t);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
forEach(e, t = this) {
|
|
306
|
+
for (let i of this.#A()) {
|
|
307
|
+
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
308
|
+
n !== undefined && e.call(t, n, this.#i[i], this);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
rforEach(e, t = this) {
|
|
312
|
+
for (let i of this.#z()) {
|
|
313
|
+
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
314
|
+
n !== undefined && e.call(t, n, this.#i[i], this);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
purgeStale() {
|
|
318
|
+
let e = false;
|
|
319
|
+
for (let t of this.#z({ allowStale: true }))
|
|
320
|
+
this.#p(t) && (this.#v(this.#i[t], "expire"), e = true);
|
|
321
|
+
return e;
|
|
322
|
+
}
|
|
323
|
+
info(e) {
|
|
324
|
+
let t = this.#s.get(e);
|
|
325
|
+
if (t === undefined)
|
|
326
|
+
return;
|
|
327
|
+
let i = this.#t[t], s = this.#e(i) ? i.__staleWhileFetching : i;
|
|
328
|
+
if (s === undefined)
|
|
329
|
+
return;
|
|
330
|
+
let n = { value: s };
|
|
331
|
+
if (this.#d && this.#F) {
|
|
332
|
+
let o = this.#d[t], r = this.#F[t];
|
|
333
|
+
if (o && r) {
|
|
334
|
+
let h = o - (this.#m.now() - r);
|
|
335
|
+
n.ttl = h, n.start = Date.now();
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return this.#_ && (n.size = this.#_[t]), n;
|
|
339
|
+
}
|
|
340
|
+
dump() {
|
|
341
|
+
let e = [];
|
|
342
|
+
for (let t of this.#A({ allowStale: true })) {
|
|
343
|
+
let i = this.#i[t], s = this.#t[t], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
344
|
+
if (n === undefined || i === undefined)
|
|
345
|
+
continue;
|
|
346
|
+
let o = { value: n };
|
|
347
|
+
if (this.#d && this.#F) {
|
|
348
|
+
o.ttl = this.#d[t];
|
|
349
|
+
let r = this.#m.now() - this.#F[t];
|
|
350
|
+
o.start = Math.floor(Date.now() - r);
|
|
351
|
+
}
|
|
352
|
+
this.#_ && (o.size = this.#_[t]), e.unshift([i, o]);
|
|
353
|
+
}
|
|
354
|
+
return e;
|
|
355
|
+
}
|
|
356
|
+
load(e) {
|
|
357
|
+
this.clear();
|
|
358
|
+
for (let [t, i] of e) {
|
|
359
|
+
if (i.start) {
|
|
360
|
+
let s = Date.now() - i.start;
|
|
361
|
+
i.start = this.#m.now() - s;
|
|
362
|
+
}
|
|
363
|
+
this.#O(t, i.value, i);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
set(e, t, i = {}) {
|
|
367
|
+
let { status: s = S.hasSubscribers ? {} : undefined } = i;
|
|
368
|
+
i.status = s, s && (s.op = "set", s.key = e, t !== undefined && (s.value = t));
|
|
369
|
+
let n = this.#O(e, t, i);
|
|
370
|
+
return s && S.hasSubscribers && S.publish(s), n;
|
|
371
|
+
}
|
|
372
|
+
#O(e, t, i = {}) {
|
|
373
|
+
let { ttl: s = this.ttl, start: n, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: r = this.sizeCalculation, status: h } = i;
|
|
374
|
+
if (t === undefined)
|
|
375
|
+
return h && (h.set = "deleted"), this.delete(e), this;
|
|
376
|
+
let { noUpdateTTL: l = this.noUpdateTTL } = i;
|
|
377
|
+
h && !this.#e(t) && (h.value = t);
|
|
378
|
+
let c = this.#k(e, t, i.size || 0, r, h);
|
|
379
|
+
if (this.maxEntrySize && c > this.maxEntrySize)
|
|
380
|
+
return this.#v(e, "set"), h && (h.set = "miss", h.maxEntrySizeExceeded = true), this;
|
|
381
|
+
let f = this.#n === 0 ? undefined : this.#s.get(e);
|
|
382
|
+
if (f === undefined)
|
|
383
|
+
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] = e, this.#t[f] = t, this.#s.set(e, f), this.#a[this.#h] = f, this.#c[f] = this.#h, this.#h = f, this.#n++, this.#I(f, c, h), h && (h.set = "add"), l = false, this.#j && this.#D?.(t, e, "add");
|
|
384
|
+
else {
|
|
385
|
+
this.#L(f);
|
|
386
|
+
let g = this.#t[f];
|
|
387
|
+
if (t !== g) {
|
|
388
|
+
if (this.#W && this.#e(g)) {
|
|
389
|
+
g.__abortController.abort(new Error("replaced"));
|
|
390
|
+
let { __staleWhileFetching: p } = g;
|
|
391
|
+
p !== undefined && !o && (this.#T && this.#w?.(p, e, "set"), this.#f && this.#r?.push([p, e, "set"]));
|
|
392
|
+
} else
|
|
393
|
+
o || (this.#T && this.#w?.(g, e, "set"), this.#f && this.#r?.push([g, e, "set"]));
|
|
394
|
+
if (this.#R(f), this.#I(f, c, h), this.#t[f] = t, h) {
|
|
395
|
+
h.set = "replace";
|
|
396
|
+
let p = g && this.#e(g) ? g.__staleWhileFetching : g;
|
|
397
|
+
p !== undefined && (h.oldValue = p);
|
|
398
|
+
}
|
|
399
|
+
} else
|
|
400
|
+
h && (h.set = "update");
|
|
401
|
+
this.#j && this.onInsert?.(t, e, t === g ? "update" : "replace");
|
|
402
|
+
}
|
|
403
|
+
if (s !== 0 && !this.#d && this.#H(), this.#d && (l || this.#N(f, s, n), h && this.#E(h, f)), !o && this.#f && this.#r) {
|
|
404
|
+
let g = this.#r, p;
|
|
405
|
+
for (;p = g?.shift(); )
|
|
406
|
+
this.#S?.(...p);
|
|
407
|
+
}
|
|
408
|
+
return this;
|
|
409
|
+
}
|
|
410
|
+
pop() {
|
|
411
|
+
try {
|
|
412
|
+
for (;this.#n; ) {
|
|
413
|
+
let e = this.#t[this.#l];
|
|
414
|
+
if (this.#G(true), this.#e(e)) {
|
|
415
|
+
if (e.__staleWhileFetching)
|
|
416
|
+
return e.__staleWhileFetching;
|
|
417
|
+
} else if (e !== undefined)
|
|
418
|
+
return e;
|
|
419
|
+
}
|
|
420
|
+
} finally {
|
|
421
|
+
if (this.#f && this.#r) {
|
|
422
|
+
let e = this.#r, t;
|
|
423
|
+
for (;t = e?.shift(); )
|
|
424
|
+
this.#S?.(...t);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
#G(e) {
|
|
429
|
+
let t = this.#l, i = this.#i[t], s = this.#t[t];
|
|
430
|
+
return this.#W && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#w?.(s, i, "evict"), this.#f && this.#r?.push([s, i, "evict"])), this.#R(t), this.#g?.[t] && (clearTimeout(this.#g[t]), this.#g[t] = undefined), e && (this.#i[t] = undefined, this.#t[t] = undefined, this.#y.push(t)), this.#n === 1 ? (this.#l = this.#h = 0, this.#y.length = 0) : this.#l = this.#a[t], this.#s.delete(i), this.#n--, t;
|
|
431
|
+
}
|
|
432
|
+
has(e, t = {}) {
|
|
433
|
+
let { status: i = S.hasSubscribers ? {} : undefined } = t;
|
|
434
|
+
t.status = i, i && (i.op = "has", i.key = e);
|
|
435
|
+
let s = this.#Y(e, t);
|
|
436
|
+
return S.hasSubscribers && S.publish(i), s;
|
|
437
|
+
}
|
|
438
|
+
#Y(e, t = {}) {
|
|
439
|
+
let { updateAgeOnHas: i = this.updateAgeOnHas, status: s } = t, n = this.#s.get(e);
|
|
440
|
+
if (n !== undefined) {
|
|
441
|
+
let o = this.#t[n];
|
|
442
|
+
if (this.#e(o) && o.__staleWhileFetching === undefined)
|
|
443
|
+
return false;
|
|
444
|
+
if (this.#p(n))
|
|
445
|
+
s && (s.has = "stale", this.#E(s, n));
|
|
446
|
+
else
|
|
447
|
+
return i && this.#x(n), s && (s.has = "hit", this.#E(s, n)), true;
|
|
448
|
+
} else
|
|
449
|
+
s && (s.has = "miss");
|
|
450
|
+
return false;
|
|
451
|
+
}
|
|
452
|
+
peek(e, t = {}) {
|
|
453
|
+
let { status: i = D() ? {} : undefined } = t;
|
|
454
|
+
i && (i.op = "peek", i.key = e), t.status = i;
|
|
455
|
+
let s = this.#J(e, t);
|
|
456
|
+
return S.hasSubscribers && S.publish(i), s;
|
|
457
|
+
}
|
|
458
|
+
#J(e, t) {
|
|
459
|
+
let { status: i, allowStale: s = this.allowStale } = t, n = this.#s.get(e);
|
|
460
|
+
if (n === undefined || !s && this.#p(n)) {
|
|
461
|
+
i && (i.peek = n === undefined ? "miss" : "stale");
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
let o = this.#t[n], r = this.#e(o) ? o.__staleWhileFetching : o;
|
|
465
|
+
return i && (r !== undefined ? (i.peek = "hit", i.value = r) : i.peek = "miss"), r;
|
|
466
|
+
}
|
|
467
|
+
#P(e, t, i, s) {
|
|
468
|
+
let n = t === undefined ? undefined : this.#t[t];
|
|
469
|
+
if (this.#e(n))
|
|
470
|
+
return n;
|
|
471
|
+
let o = new AbortController, { signal: r } = i;
|
|
472
|
+
r?.addEventListener("abort", () => o.abort(r.reason), { signal: o.signal });
|
|
473
|
+
let h = { signal: o.signal, options: i, context: s }, l = (w, y = false) => {
|
|
474
|
+
let { aborted: a } = o.signal, m = i.ignoreFetchAbort && w !== undefined, _ = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && w !== undefined);
|
|
475
|
+
if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, m && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !m && !y)
|
|
476
|
+
return f(o.signal.reason, _);
|
|
477
|
+
let b = p, d = this.#t[t];
|
|
478
|
+
return (d === p || d === undefined && m && y) && (w === undefined ? b.__staleWhileFetching !== undefined ? this.#t[t] = b.__staleWhileFetching : this.#v(e, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#O(e, w, h.options))), w;
|
|
479
|
+
}, c = (w) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = w), f(w, false)), f = (w, y) => {
|
|
480
|
+
let { aborted: a } = o.signal, m = a && i.allowStaleOnFetchAbort, _ = m || i.allowStaleOnFetchRejection, b = _ || i.noDeleteOnFetchRejection, d = p;
|
|
481
|
+
if (this.#t[t] === p && (!b || !y && d.__staleWhileFetching === undefined ? this.#v(e, "fetch") : m || (this.#t[t] = d.__staleWhileFetching)), _)
|
|
482
|
+
return i.status && d.__staleWhileFetching !== undefined && (i.status.returnedStale = true), d.__staleWhileFetching;
|
|
483
|
+
if (d.__returned === d)
|
|
484
|
+
throw w;
|
|
485
|
+
}, g = (w, y) => {
|
|
486
|
+
let a = this.#M?.(e, n, h);
|
|
487
|
+
a && a instanceof Promise && a.then((m) => w(m === undefined ? undefined : m), y), o.signal.addEventListener("abort", () => {
|
|
488
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (w(undefined), i.allowStaleOnFetchAbort && (w = (m) => l(m, true)));
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
i.status && (i.status.fetchDispatched = true);
|
|
492
|
+
let p = new Promise(g).then(l, c), T = Object.assign(p, { __abortController: o, __staleWhileFetching: n, __returned: undefined });
|
|
493
|
+
return t === undefined ? (this.#O(e, T, { ...h.options, status: undefined }), t = this.#s.get(e)) : this.#t[t] = T, T;
|
|
494
|
+
}
|
|
495
|
+
#e(e) {
|
|
496
|
+
if (!this.#W)
|
|
497
|
+
return false;
|
|
498
|
+
let t = e;
|
|
499
|
+
return !!t && t instanceof Promise && t.hasOwnProperty("__staleWhileFetching") && t.__abortController instanceof AbortController;
|
|
500
|
+
}
|
|
501
|
+
fetch(e, t = {}) {
|
|
502
|
+
let i = W.hasSubscribers, { status: s = D() ? {} : undefined } = t;
|
|
503
|
+
t.status = s, s && t.context && (s.context = t.context);
|
|
504
|
+
let n = this.#B(e, t);
|
|
505
|
+
return s && D() && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {})), n;
|
|
506
|
+
}
|
|
507
|
+
async#B(e, t = {}) {
|
|
508
|
+
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: l = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: g = this.allowStaleOnFetchRejection, ignoreFetchAbort: p = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: y = false, status: a, signal: m } = t;
|
|
509
|
+
if (a && (a.op = "fetch", a.key = e, y && (a.forceRefresh = true)), !this.#W)
|
|
510
|
+
return a && (a.fetch = "get"), this.#C(e, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
|
|
511
|
+
let _ = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: r, size: h, sizeCalculation: l, noUpdateTTL: c, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: T, ignoreFetchAbort: p, status: a, signal: m }, b = this.#s.get(e);
|
|
512
|
+
if (b === undefined) {
|
|
513
|
+
a && (a.fetch = "miss");
|
|
514
|
+
let d = this.#P(e, b, _, w);
|
|
515
|
+
return d.__returned = d;
|
|
516
|
+
} else {
|
|
517
|
+
let d = this.#t[b];
|
|
518
|
+
if (this.#e(d)) {
|
|
519
|
+
let E = i && d.__staleWhileFetching !== undefined;
|
|
520
|
+
return a && (a.fetch = "inflight", E && (a.returnedStale = true)), E ? d.__staleWhileFetching : d.__returned = d;
|
|
521
|
+
}
|
|
522
|
+
let A = this.#p(b);
|
|
523
|
+
if (!y && !A)
|
|
524
|
+
return a && (a.fetch = "hit"), this.#L(b), s && this.#x(b), a && this.#E(a, b), d;
|
|
525
|
+
let z = this.#P(e, b, _, w), v = z.__staleWhileFetching !== undefined && i;
|
|
526
|
+
return a && (a.fetch = A ? "stale" : "refresh", v && A && (a.returnedStale = true)), v ? z.__staleWhileFetching : z.__returned = z;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
forceFetch(e, t = {}) {
|
|
530
|
+
let i = W.hasSubscribers, { status: s = D() ? {} : undefined } = t;
|
|
531
|
+
t.status = s, s && t.context && (s.context = t.context);
|
|
532
|
+
let n = this.#K(e, t);
|
|
533
|
+
return s && D() && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {})), n;
|
|
534
|
+
}
|
|
535
|
+
async#K(e, t = {}) {
|
|
536
|
+
let i = await this.#B(e, t);
|
|
537
|
+
if (i === undefined)
|
|
538
|
+
throw new Error("fetch() returned undefined");
|
|
539
|
+
return i;
|
|
540
|
+
}
|
|
541
|
+
memo(e, t = {}) {
|
|
542
|
+
let { status: i = S.hasSubscribers ? {} : undefined } = t;
|
|
543
|
+
t.status = i, i && (i.op = "memo", i.key = e, t.context && (i.context = t.context));
|
|
544
|
+
let s = this.#Q(e, t);
|
|
545
|
+
return i && (i.value = s), S.hasSubscribers && S.publish(i), s;
|
|
546
|
+
}
|
|
547
|
+
#Q(e, t = {}) {
|
|
548
|
+
let i = this.#U;
|
|
549
|
+
if (!i)
|
|
550
|
+
throw new Error("no memoMethod provided to constructor");
|
|
551
|
+
let { context: s, status: n, forceRefresh: o, ...r } = t;
|
|
552
|
+
n && o && (n.forceRefresh = true);
|
|
553
|
+
let h = this.#C(e, r), l = o || h === undefined;
|
|
554
|
+
if (n && (n.memo = l ? "miss" : "hit", l || (n.value = h)), !l)
|
|
555
|
+
return h;
|
|
556
|
+
let c = i(e, h, { options: r, context: s });
|
|
557
|
+
return n && (n.value = c), this.#O(e, c, r), c;
|
|
558
|
+
}
|
|
559
|
+
get(e, t = {}) {
|
|
560
|
+
let { status: i = S.hasSubscribers ? {} : undefined } = t;
|
|
561
|
+
t.status = i, i && (i.op = "get", i.key = e);
|
|
562
|
+
let s = this.#C(e, t);
|
|
563
|
+
return i && (s !== undefined && (i.value = s), S.hasSubscribers && S.publish(i)), s;
|
|
564
|
+
}
|
|
565
|
+
#C(e, t = {}) {
|
|
566
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t, r = this.#s.get(e);
|
|
567
|
+
if (r === undefined) {
|
|
568
|
+
o && (o.get = "miss");
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
let h = this.#t[r], l = this.#e(h);
|
|
572
|
+
return o && this.#E(o, r), this.#p(r) ? l ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== undefined ? (o && (o.returnedStale = true), h.__staleWhileFetching) : undefined) : (n || this.#v(e, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : undefined) : (o && (o.get = l ? "fetching" : "hit"), this.#L(r), s && this.#x(r), l ? h.__staleWhileFetching : h);
|
|
573
|
+
}
|
|
574
|
+
#$(e, t) {
|
|
575
|
+
this.#c[t] = e, this.#a[e] = t;
|
|
576
|
+
}
|
|
577
|
+
#L(e) {
|
|
578
|
+
e !== this.#h && (e === this.#l ? this.#l = this.#a[e] : this.#$(this.#c[e], this.#a[e]), this.#$(this.#h, e), this.#h = e);
|
|
579
|
+
}
|
|
580
|
+
delete(e) {
|
|
581
|
+
return this.#v(e, "delete");
|
|
582
|
+
}
|
|
583
|
+
#v(e, t) {
|
|
584
|
+
S.hasSubscribers && S.publish({ op: "delete", delete: t, key: e });
|
|
585
|
+
let i = false;
|
|
586
|
+
if (this.#n !== 0) {
|
|
587
|
+
let s = this.#s.get(e);
|
|
588
|
+
if (s !== undefined)
|
|
589
|
+
if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = undefined), i = true, this.#n === 1)
|
|
590
|
+
this.#q(t);
|
|
591
|
+
else {
|
|
592
|
+
this.#R(s);
|
|
593
|
+
let n = this.#t[s];
|
|
594
|
+
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#w?.(n, e, t), this.#f && this.#r?.push([n, e, t])), this.#s.delete(e), this.#i[s] = undefined, this.#t[s] = undefined, s === this.#h)
|
|
595
|
+
this.#h = this.#c[s];
|
|
596
|
+
else if (s === this.#l)
|
|
597
|
+
this.#l = this.#a[s];
|
|
598
|
+
else {
|
|
599
|
+
let o = this.#c[s];
|
|
600
|
+
this.#a[o] = this.#a[s];
|
|
601
|
+
let r = this.#a[s];
|
|
602
|
+
this.#c[r] = this.#c[s];
|
|
603
|
+
}
|
|
604
|
+
this.#n--, this.#y.push(s);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
if (this.#f && this.#r?.length) {
|
|
608
|
+
let s = this.#r, n;
|
|
609
|
+
for (;n = s?.shift(); )
|
|
610
|
+
this.#S?.(...n);
|
|
611
|
+
}
|
|
612
|
+
return i;
|
|
613
|
+
}
|
|
614
|
+
clear() {
|
|
615
|
+
return this.#q("delete");
|
|
616
|
+
}
|
|
617
|
+
#q(e) {
|
|
618
|
+
for (let t of this.#z({ allowStale: true })) {
|
|
619
|
+
let i = this.#t[t];
|
|
620
|
+
if (this.#e(i))
|
|
621
|
+
i.__abortController.abort(new Error("deleted"));
|
|
622
|
+
else {
|
|
623
|
+
let s = this.#i[t];
|
|
624
|
+
this.#T && this.#w?.(i, s, e), this.#f && this.#r?.push([i, s, e]);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
if (this.#s.clear(), this.#t.fill(undefined), this.#i.fill(undefined), this.#d && this.#F) {
|
|
628
|
+
this.#d.fill(0), this.#F.fill(0);
|
|
629
|
+
for (let t of this.#g ?? [])
|
|
630
|
+
t !== undefined && clearTimeout(t);
|
|
631
|
+
this.#g?.fill(undefined);
|
|
632
|
+
}
|
|
633
|
+
if (this.#_ && this.#_.fill(0), this.#l = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
634
|
+
let t = this.#r, i;
|
|
635
|
+
for (;i = t?.shift(); )
|
|
636
|
+
this.#S?.(...i);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
});
|
|
641
|
+
|
|
642
|
+
export { L, init_index_min };
|