@qitqode/qitqode-android-arm64 0.2.14 → 0.2.16
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/bun +2 -2
- package/bundle/{chunk-wrzn87w0.js → chunk-098mr0zz.js} +1 -1
- package/bundle/{chunk-j15wejz0.js → chunk-0catm9vq.js} +1 -1
- package/bundle/{chunk-kdqhwa65.js → chunk-0cqs1qkh.js} +1 -1
- package/bundle/{chunk-d10qre1b.js → chunk-0f3ncvfe.js} +1 -1
- package/bundle/{chunk-583d91xq.js → chunk-0gqwvt8w.js} +2 -2
- package/bundle/chunk-0mb55ytc.js +2 -0
- package/bundle/{chunk-9zsp3qkh.js → chunk-0n2ncnwz.js} +1 -1
- package/bundle/chunk-0y0hm0m5.js +2 -0
- package/bundle/chunk-120e8yr1.js +2 -0
- package/bundle/{chunk-spcdwmy4.js → chunk-1aneepm5.js} +1 -1
- package/bundle/chunk-1dxm8yev.js +2 -0
- package/bundle/{chunk-96sra8g8.js → chunk-1jg7cybp.js} +1 -1
- package/bundle/{chunk-ngygp66y.js → chunk-1k5nfw7g.js} +1 -1
- package/bundle/{chunk-fmcg649e.js → chunk-1kksj8cn.js} +1 -1
- package/bundle/chunk-1pgpv979.js +2 -0
- package/bundle/{chunk-szfqmkj6.js → chunk-1xsjkf4c.js} +1 -1
- package/bundle/{chunk-zx63mepv.js → chunk-1yetxft4.js} +1 -1
- package/bundle/chunk-23zh9s18.js +2 -0
- package/bundle/{chunk-8qpfphdz.js → chunk-24pf9s68.js} +1 -1
- package/bundle/chunk-2a0zf12g.js +2 -0
- package/bundle/chunk-2b8x31p3.js +2 -0
- package/bundle/chunk-2cvmdss3.js +2 -0
- package/bundle/{chunk-bm8azfnt.js → chunk-2kvghwar.js} +1 -1
- package/bundle/{chunk-ch7s512a.js → chunk-2nkjwqpm.js} +1 -1
- package/bundle/chunk-2qbsg6dp.js +2 -0
- package/bundle/{chunk-9ttebtcf.js → chunk-2rvs18fx.js} +1 -1
- package/bundle/{chunk-rxt6gktt.js → chunk-2thbax1j.js} +1 -1
- package/bundle/{chunk-6y0wgz2j.js → chunk-2zxygnx4.js} +1 -1
- package/bundle/{chunk-zgwasq3p.js → chunk-36kg3v3k.js} +1 -1
- package/bundle/{chunk-1gdt9q05.js → chunk-37hh7eee.js} +1 -1
- package/bundle/chunk-39mwv068.js +2 -0
- package/bundle/{chunk-set1f1wr.js → chunk-39z0qxkt.js} +1 -1
- package/bundle/{chunk-p0852vfn.js → chunk-3dfy9k0t.js} +2 -2
- package/bundle/{chunk-et3tgx7t.js → chunk-3e26pryk.js} +1 -1
- package/bundle/{chunk-vzkdzhn0.js → chunk-3eddms0g.js} +1 -1
- package/bundle/chunk-3re79hkf.js +2 -0
- package/bundle/{chunk-sy76e7nr.js → chunk-3vjs8aht.js} +1 -1
- package/bundle/{chunk-k769v1ds.js → chunk-3z7r4c0p.js} +1 -1
- package/bundle/chunk-40pe0tde.js +11 -0
- package/bundle/{chunk-0ejx0yqx.js → chunk-47nber5v.js} +1 -1
- package/bundle/{chunk-bga4kqd1.js → chunk-491f4ab9.js} +2 -2
- package/bundle/{chunk-3152y1q9.js → chunk-4bp91rza.js} +1 -1
- package/bundle/{chunk-pdcxmr6x.js → chunk-4dy64hgp.js} +1 -1
- package/bundle/{chunk-0mztgsxp.js → chunk-4fqwg54p.js} +1 -1
- package/bundle/{chunk-2w3n0q9m.js → chunk-4gv7nsdd.js} +2 -2
- package/bundle/{chunk-2ascwm7j.js → chunk-4nw19yab.js} +1 -1
- package/bundle/chunk-51fyaa6r.js +2 -0
- package/bundle/{chunk-9znfb8f2.js → chunk-52f62kr0.js} +2 -2
- package/bundle/chunk-52n4tdeh.js +5 -0
- package/bundle/{chunk-x4jnyj09.js → chunk-543jma8r.js} +1 -1
- package/bundle/chunk-58q03ah1.js +2 -0
- package/bundle/{chunk-hrcqbadm.js → chunk-5fhy0wb0.js} +1 -1
- package/bundle/{chunk-8zpsgfb6.js → chunk-5fym1zr2.js} +1 -1
- package/bundle/{chunk-a3g8de96.js → chunk-5k5jdayv.js} +1 -1
- package/bundle/chunk-5nmqgqj2.js +2 -0
- package/bundle/{chunk-psmwrvqs.js → chunk-5t69v8jg.js} +2 -2
- package/bundle/{chunk-7w571q26.js → chunk-5vtbg7pj.js} +1 -1
- package/bundle/{chunk-g738e799.js → chunk-5xmtzs15.js} +2 -2
- package/bundle/chunk-5ydg5ny1.js +2 -0
- package/bundle/{chunk-v5me0cj9.js → chunk-5z5rk3ng.js} +1 -1
- package/bundle/{chunk-5dvy83ms.js → chunk-62mb6wxm.js} +2 -2
- package/bundle/chunk-62mytrwv.js +2 -0
- package/bundle/{chunk-edvfqxfr.js → chunk-6396bg4p.js} +1 -1
- package/bundle/chunk-63bccmze.js +2 -0
- package/bundle/{chunk-1ypzf18e.js → chunk-64x1vtdq.js} +1 -1
- package/bundle/{chunk-9mabvb06.js → chunk-6kx4atkt.js} +1 -1
- package/bundle/{chunk-dmb0ez0m.js → chunk-6r7vm4xc.js} +3 -3
- package/bundle/{chunk-tcyzj3rz.js → chunk-6rggm6tm.js} +1 -1
- package/bundle/{chunk-fp2xgnjn.js → chunk-6vpc1y3w.js} +2 -2
- package/bundle/{chunk-71jmhvef.js → chunk-6vxddv5w.js} +2 -2
- package/bundle/chunk-6ynaebaw.js +2 -0
- package/bundle/{chunk-ep4drmt9.js → chunk-700jhn67.js} +1 -1
- package/bundle/{chunk-fdmz0502.js → chunk-76jbys6j.js} +2 -2
- package/bundle/chunk-782y3dm8.js +2 -0
- package/bundle/{chunk-d7h1dp0h.js → chunk-89g9wzc2.js} +1 -1
- package/bundle/chunk-8q50bha4.js +2 -0
- package/bundle/chunk-8v6qbhm1.js +2 -0
- package/bundle/chunk-955jtenj.js +2 -0
- package/bundle/chunk-95yzwxpf.js +2 -0
- package/bundle/{chunk-2w79k0mh.js → chunk-96281xfb.js} +2 -2
- package/bundle/{chunk-bdcd2mcb.js → chunk-96657nrr.js} +2 -2
- package/bundle/chunk-99ansgsj.js +2 -0
- package/bundle/{chunk-3c73rngn.js → chunk-9dd2krfn.js} +1 -1
- package/bundle/chunk-9exxjnxc.js +2 -0
- package/bundle/{chunk-eqsank84.js → chunk-9ge1mkfs.js} +1 -1
- package/bundle/{chunk-4r7fbkcm.js → chunk-9mmaja9n.js} +1 -1
- package/bundle/{chunk-mjkwd1sz.js → chunk-9rd7q5e9.js} +1 -1
- package/bundle/{chunk-6cztstry.js → chunk-9skj2w9e.js} +2 -2
- package/bundle/{chunk-nb4xtk1n.js → chunk-9tdbts1r.js} +1 -1
- package/bundle/{chunk-sg9enzsp.js → chunk-9tfm1dk2.js} +2 -2
- package/bundle/{chunk-z6qyx227.js → chunk-9xaea8h1.js} +1 -1
- package/bundle/{chunk-meehnnv9.js → chunk-a0c6w901.js} +2 -2
- package/bundle/chunk-a2tp2f6s.js +2 -0
- package/bundle/{chunk-69htq8kq.js → chunk-a3ynq3h7.js} +1 -1
- package/bundle/chunk-a4y0wjtq.js +3 -0
- package/bundle/{chunk-6dd2dx69.js → chunk-afagt413.js} +2 -2
- package/bundle/{chunk-px69995t.js → chunk-afzx47y2.js} +1 -1
- package/bundle/chunk-ag3s3t7x.js +2 -0
- package/bundle/{chunk-n7zd97hy.js → chunk-ajdn1n77.js} +2 -2
- package/bundle/chunk-arwm1qxm.js +2 -0
- package/bundle/{chunk-adws0hhk.js → chunk-awt3q88j.js} +2 -2
- package/bundle/{chunk-qn1fhqyw.js → chunk-az2pxgx6.js} +2 -2
- package/bundle/chunk-b0gq0s8a.js +2 -0
- package/bundle/{chunk-48rg4yhk.js → chunk-b2zfr7jz.js} +2 -2
- package/bundle/{chunk-mbmaeq0a.js → chunk-b63733cw.js} +1 -1
- package/bundle/chunk-b7430vg8.js +2 -0
- package/bundle/{chunk-07b4pkk6.js → chunk-b7dw5ged.js} +1 -1
- package/bundle/{chunk-prz2fkn9.js → chunk-b83qf145.js} +1 -1
- package/bundle/{chunk-veptx3fk.js → chunk-b8w33ck9.js} +1 -1
- package/bundle/{chunk-674pexjx.js → chunk-bd21p9zz.js} +2 -2
- package/bundle/chunk-be2z0tr4.js +2 -0
- package/bundle/{chunk-x0de4z05.js → chunk-bkqemdv8.js} +2 -2
- package/bundle/chunk-bq585t67.js +2 -0
- package/bundle/chunk-bts3gw8w.js +2 -0
- package/bundle/{chunk-qz20b42s.js → chunk-c0sr83np.js} +1 -1
- package/bundle/{chunk-zh7e6kqs.js → chunk-c4tdfar1.js} +1 -1
- package/bundle/chunk-c6ege2yp.js +2 -0
- package/bundle/{chunk-00ft63qn.js → chunk-chs4bkgh.js} +1 -1
- package/bundle/{chunk-8b9z8j3z.js → chunk-cm426ssg.js} +1 -1
- package/bundle/{chunk-crqycrs4.js → chunk-d4y5hyjg.js} +2 -2
- package/bundle/chunk-de0edzjs.js +2 -0
- package/bundle/{chunk-4hvenszg.js → chunk-der5kj1b.js} +1 -1
- package/bundle/{chunk-6d4xc6br.js → chunk-dhykktcp.js} +1 -1
- package/bundle/{chunk-8jkqyf9n.js → chunk-dm7hfb7f.js} +2 -2
- package/bundle/chunk-dntnvfdz.js +2 -0
- package/bundle/{chunk-q1dmxn63.js → chunk-dptvy1zn.js} +2 -2
- package/bundle/{chunk-2k2szpze.js → chunk-dqt8rrey.js} +1 -1
- package/bundle/{chunk-ky3fhz9z.js → chunk-dr003xka.js} +1 -1
- package/bundle/chunk-dtyzk0j7.js +2 -0
- package/bundle/{chunk-qrztx1b4.js → chunk-dwza14dk.js} +2 -2
- package/bundle/chunk-e3tmbywr.js +2 -0
- package/bundle/{chunk-ej0yzstw.js → chunk-e4nap6v9.js} +2 -2
- package/bundle/{chunk-5h1s0akp.js → chunk-e7x8v549.js} +1 -1
- package/bundle/{chunk-1e75j4m1.js → chunk-e826jvr2.js} +2 -2
- package/bundle/{chunk-9z7y4x7q.js → chunk-edm4c812.js} +1 -1
- package/bundle/{chunk-ws720v4j.js → chunk-eearwfay.js} +1 -1
- package/bundle/{chunk-gkf7x1yj.js → chunk-ekavngf7.js} +1 -1
- package/bundle/chunk-em637k9q.js +2 -0
- package/bundle/{chunk-8gkz5550.js → chunk-epncmz5t.js} +1 -1
- package/bundle/chunk-eytpz91c.js +8 -0
- package/bundle/chunk-f4qcwbx0.js +2 -0
- package/bundle/{chunk-a8askx4y.js → chunk-f6gd8809.js} +1 -1
- package/bundle/{chunk-e8s4mp5n.js → chunk-fcbmedh3.js} +2 -2
- package/bundle/{chunk-4ycg2c6f.js → chunk-fg5f3a8a.js} +2 -2
- package/bundle/chunk-fj7jcv7m.js +2 -0
- package/bundle/{chunk-47jkx37s.js → chunk-ft4msj4z.js} +3 -3
- package/bundle/chunk-fyntc5hj.js +2 -0
- package/bundle/chunk-fyt4yaq7.js +2 -0
- package/bundle/chunk-g4hcxhfs.js +2 -0
- package/bundle/{chunk-c5cyt23k.js → chunk-g7twcprm.js} +2 -2
- package/bundle/{chunk-9amnqaeq.js → chunk-g8844pb4.js} +1 -1
- package/bundle/{chunk-w136zswr.js → chunk-ganwjd6s.js} +3 -3
- package/bundle/chunk-gdew108b.js +2 -0
- package/bundle/chunk-gdy74wte.js +2 -0
- package/bundle/{chunk-7a4sb6q7.js → chunk-gse0cgqc.js} +1 -1
- package/bundle/{chunk-z0dj15g9.js → chunk-gsjgbm0d.js} +1 -1
- package/bundle/{chunk-a1mbach4.js → chunk-gt10s0ks.js} +1 -1
- package/bundle/{chunk-qpk7jp6t.js → chunk-gxpx2nd8.js} +1 -1
- package/bundle/{chunk-4p9fny77.js → chunk-gxq2fwnc.js} +1 -1
- package/bundle/chunk-gz90qgcn.js +2 -0
- package/bundle/chunk-gzz78dnm.js +2 -0
- package/bundle/{chunk-840mmmzz.js → chunk-h3yazfmh.js} +4 -4
- package/bundle/{chunk-d4faz5xa.js → chunk-h429rzqp.js} +1 -1
- package/bundle/{chunk-f0dp1tf9.js → chunk-h5y0pwwc.js} +1 -1
- package/bundle/{chunk-62gefpwn.js → chunk-h6b6acrv.js} +2 -2
- package/bundle/{chunk-19rs84t8.js → chunk-h8bq75er.js} +1 -1
- package/bundle/{chunk-99df6wvm.js → chunk-ha147mdc.js} +1 -1
- package/bundle/{chunk-xdcwx384.js → chunk-ha1w0xzh.js} +1 -1
- package/bundle/{chunk-5341jv20.js → chunk-ha294vpj.js} +1 -1
- package/bundle/chunk-hfrjkgyk.js +2 -0
- package/bundle/chunk-hjpt1n6g.js +2 -0
- package/bundle/{chunk-bzh71a92.js → chunk-hvdre0mb.js} +1 -1
- package/bundle/{chunk-86sfzgnf.js → chunk-hxf2a10r.js} +1 -1
- package/bundle/{chunk-4ppw719f.js → chunk-j09qf4zh.js} +1 -1
- package/bundle/chunk-j0jayfyn.js +35 -0
- package/bundle/{chunk-ffz334ab.js → chunk-j5b0yc0f.js} +1 -1
- package/bundle/{chunk-n6pn4f3r.js → chunk-j767byd1.js} +1 -1
- package/bundle/chunk-j794z99k.js +2 -0
- package/bundle/{chunk-y1v7mf1a.js → chunk-j95mkzwg.js} +123 -123
- package/bundle/{chunk-rn3je2hv.js → chunk-jcznttek.js} +1 -1
- package/bundle/{chunk-4v29ayke.js → chunk-jgw20mxx.js} +1 -1
- package/bundle/{chunk-175720ws.js → chunk-jhdpwndc.js} +2 -2
- package/bundle/{chunk-9gxyt2ay.js → chunk-jkqa49xc.js} +2 -2
- package/bundle/{chunk-sb3cgb4v.js → chunk-jmg64erz.js} +1 -1
- package/bundle/chunk-jpw7z507.js +2 -0
- package/bundle/{chunk-3cs1qf8x.js → chunk-jr622341.js} +1 -1
- package/bundle/{chunk-qpggztkq.js → chunk-jv69hdp0.js} +2 -2
- package/bundle/chunk-jx9c90ft.js +2 -0
- package/bundle/{chunk-fpzkyzny.js → chunk-kevhkmn2.js} +2 -2
- package/bundle/{chunk-bxnsrggq.js → chunk-khpjjjsb.js} +1 -1
- package/bundle/chunk-kkfrys0w.js +2 -0
- package/bundle/chunk-kkq2vwm6.js +2 -0
- package/bundle/{chunk-qqsj69m2.js → chunk-km1tyeyy.js} +1 -1
- package/bundle/chunk-kp0w1p79.js +2 -0
- package/bundle/chunk-kr7t73tg.js +3 -0
- package/bundle/chunk-kt7q9620.js +2 -0
- package/bundle/{chunk-8a9sj8gp.js → chunk-kzcb1pt4.js} +1 -1
- package/bundle/{chunk-jwv6fda1.js → chunk-m0f6cf9n.js} +2 -2
- package/bundle/chunk-m30bgt2t.js +2 -0
- package/bundle/chunk-m318f9es.js +2 -0
- package/bundle/{chunk-1mfdmm2t.js → chunk-m5r6zq6v.js} +1 -1
- package/bundle/chunk-m6g6za7b.js +2 -0
- package/bundle/chunk-m8djypsy.js +11 -0
- package/bundle/chunk-ma0vvbvy.js +2 -0
- package/bundle/chunk-mha4n5md.js +2 -0
- package/bundle/{chunk-s9epttpy.js → chunk-mhq2a5ms.js} +1 -1
- package/bundle/chunk-mp9qhnxg.js +2 -0
- package/bundle/{chunk-gd0j16gn.js → chunk-mqdvthkm.js} +1 -1
- package/bundle/{chunk-69k7cdtv.js → chunk-mqe1qa6t.js} +2 -2
- package/bundle/{chunk-j45p2v4a.js → chunk-mz6swd88.js} +3 -3
- package/bundle/{chunk-0m4gvjcv.js → chunk-n25t4j9w.js} +2 -2
- package/bundle/{chunk-hx13a8es.js → chunk-n7ewvphw.js} +3 -3
- package/bundle/chunk-n9wre9wx.js +2 -0
- package/bundle/chunk-ncbj74tk.js +3 -0
- package/bundle/{chunk-06tgmvh6.js → chunk-ne3z7yye.js} +2 -2
- package/bundle/chunk-nnyvn2pm.js +2 -0
- package/bundle/chunk-nyhx3822.js +2 -0
- package/bundle/{chunk-zjyaze0d.js → chunk-p54bzjtv.js} +1 -1
- package/bundle/{chunk-dvp0r93q.js → chunk-p5d5qyzq.js} +1 -1
- package/bundle/{chunk-m8kjtp60.js → chunk-p6mxxem5.js} +1 -1
- package/bundle/{chunk-fd04358e.js → chunk-p76c9s6g.js} +310 -309
- package/bundle/chunk-p8etcskm.js +2 -0
- package/bundle/{chunk-b350g18y.js → chunk-pf4gwr34.js} +2 -2
- package/bundle/{chunk-wf0n1cs9.js → chunk-pf61zhms.js} +1 -1
- package/bundle/{chunk-sh03ka27.js → chunk-pfx8ts02.js} +1 -1
- package/bundle/{chunk-e611m0p4.js → chunk-phvp9h7w.js} +1 -1
- package/bundle/chunk-pv71d7f3.js +2 -0
- package/bundle/{chunk-6wmtbebc.js → chunk-pwcmc8j7.js} +1 -1
- package/bundle/{chunk-g77kddrs.js → chunk-pyt4xpze.js} +2 -2
- package/bundle/{chunk-1bq15kf0.js → chunk-q0pd8bac.js} +2 -2
- package/bundle/{chunk-yg9n2a2d.js → chunk-q12dtxep.js} +1 -1
- package/bundle/{chunk-v1axkp21.js → chunk-q2j2dm96.js} +2 -2
- package/bundle/{chunk-rx9eh3db.js → chunk-qf1hh45g.js} +3 -3
- package/bundle/{chunk-p4xqfkbh.js → chunk-qqjspfqw.js} +1 -1
- package/bundle/{chunk-9kc2th5c.js → chunk-qvnsgyfk.js} +2 -2
- package/bundle/{chunk-rqap90xh.js → chunk-qz35c4xy.js} +2 -2
- package/bundle/{chunk-bemyyen3.js → chunk-r3z77rjn.js} +1 -1
- package/bundle/{chunk-chnr7pe5.js → chunk-r7mcn9ey.js} +1 -1
- package/bundle/{chunk-nzz7gzg2.js → chunk-rmpgmjtd.js} +1 -1
- package/bundle/{chunk-k0chq88p.js → chunk-rpt3rm31.js} +1 -1
- package/bundle/chunk-rteaec1s.js +2 -0
- package/bundle/chunk-rxwcah73.js +2 -0
- package/bundle/{chunk-s0gmxpxm.js → chunk-s1gy4hnw.js} +2 -2
- package/bundle/{chunk-4s1n38ds.js → chunk-s2ma1nz3.js} +2 -2
- package/bundle/chunk-s3gjc4m0.js +2 -0
- package/bundle/{chunk-6yshpz0z.js → chunk-s5taq9jy.js} +2 -2
- package/bundle/{chunk-5mf4qrye.js → chunk-s7017cak.js} +2 -2
- package/bundle/{chunk-6pt6nqwk.js → chunk-s9bn800b.js} +1 -1
- package/bundle/{chunk-73a7ts8r.js → chunk-sa3rjs2s.js} +1 -1
- package/bundle/{chunk-wfpnv00c.js → chunk-sprbs7aj.js} +2 -2
- package/bundle/{chunk-10q04xh5.js → chunk-sq2z7keb.js} +1 -1
- package/bundle/{chunk-w8nj5ph5.js → chunk-sqrx9csx.js} +1 -1
- package/bundle/{chunk-art8gejd.js → chunk-srf4jqcj.js} +1 -1
- package/bundle/{chunk-ffyj5nsg.js → chunk-ssp3nw24.js} +2 -2
- package/bundle/{chunk-6kch0q2d.js → chunk-svnhycdw.js} +2 -2
- package/bundle/chunk-swm990q6.js +2 -0
- package/bundle/chunk-sy42ayp2.js +2 -0
- package/bundle/{chunk-5rvvfgfy.js → chunk-t3kxce69.js} +2 -2
- package/bundle/chunk-t7mvej98.js +2 -0
- package/bundle/{chunk-6j53vtzd.js → chunk-t8pmy758.js} +1 -1
- package/bundle/{chunk-v7v0krrj.js → chunk-t9srpmte.js} +1 -1
- package/bundle/{chunk-358wdvj7.js → chunk-tatecas7.js} +2 -2
- package/bundle/chunk-teagh4hx.js +2 -0
- package/bundle/{chunk-avksqxan.js → chunk-tf40p520.js} +1 -1
- package/bundle/{chunk-y5ydtbpd.js → chunk-tpgksx59.js} +1 -1
- package/bundle/{chunk-02tmc2st.js → chunk-tr4cze2c.js} +1 -1
- package/bundle/chunk-tv4cp6f9.js +2 -0
- package/bundle/chunk-tw618904.js +2 -0
- package/bundle/{chunk-zpjtse0z.js → chunk-v1bqh3m6.js} +176 -176
- package/bundle/{chunk-j46bxb1b.js → chunk-v3bfzxxg.js} +1 -1
- package/bundle/{chunk-vr13f6b5.js → chunk-v5gf0wx6.js} +2 -2
- package/bundle/{chunk-d385e2qt.js → chunk-v6mnbwtz.js} +1 -1
- package/bundle/{chunk-bq6cvf16.js → chunk-v93gr6n9.js} +2 -2
- package/bundle/chunk-vdpffam0.js +2 -0
- package/bundle/chunk-ve5w7nkb.js +2 -0
- package/bundle/chunk-vey57h4x.js +30 -0
- package/bundle/{chunk-pwq2f75j.js → chunk-vf492zs6.js} +1 -1
- package/bundle/{chunk-fkq0v5qv.js → chunk-vg9ec44m.js} +2 -2
- package/bundle/{chunk-61b81z2h.js → chunk-vh3n53qq.js} +1 -1
- package/bundle/{chunk-bmdqb48f.js → chunk-vk8gxf4y.js} +1 -1
- package/bundle/{chunk-rd08wx37.js → chunk-vr222v2n.js} +2 -2
- package/bundle/chunk-vrpca62q.js +2 -0
- package/bundle/{chunk-x3dzzq0t.js → chunk-w5fx69cw.js} +1 -1
- package/bundle/{chunk-05bkxat0.js → chunk-w9w59zjv.js} +2 -2
- package/bundle/{chunk-xmf59618.js → chunk-wbz79hns.js} +1 -1
- package/bundle/{chunk-gfvq78gy.js → chunk-wdrfzx4m.js} +1 -1
- package/bundle/{chunk-j3agzs13.js → chunk-wf18y499.js} +2 -2
- package/bundle/chunk-wvvygzz2.js +2 -0
- package/bundle/{chunk-w4fr00s7.js → chunk-wyxc99aa.js} +2 -2
- package/bundle/{chunk-5q98z8ck.js → chunk-x2mbre12.js} +2 -2
- package/bundle/{chunk-2d61z24r.js → chunk-x8rr2f15.js} +1 -1
- package/bundle/{chunk-7s9msscb.js → chunk-xpmgqa5n.js} +1 -1
- package/bundle/{chunk-rws2tsdv.js → chunk-xrwsttb7.js} +1 -1
- package/bundle/{chunk-wmj3xndt.js → chunk-xz6psr05.js} +1 -1
- package/bundle/{chunk-4xqwt6dr.js → chunk-xzshjp04.js} +2 -2
- package/bundle/chunk-y27gwnx9.js +2 -0
- package/bundle/chunk-y2ms7q84.js +2 -0
- package/bundle/{chunk-1pft3sar.js → chunk-y8bjb32m.js} +1 -1
- package/bundle/{chunk-h036zy9e.js → chunk-ya7wrt5f.js} +2 -2
- package/bundle/{chunk-ahgb3r1c.js → chunk-ycjz7y1x.js} +2 -2
- package/bundle/{chunk-10kj86va.js → chunk-ykqx1z0b.js} +1 -1
- package/bundle/chunk-yq4vck53.js +2 -0
- package/bundle/{chunk-j2snkw45.js → chunk-yxsc90ba.js} +2 -2
- package/bundle/{chunk-5cwy8y78.js → chunk-yy5qqab3.js} +2 -2
- package/bundle/{chunk-86reb44c.js → chunk-z38am71w.js} +1 -1
- package/bundle/{chunk-pwrwb7mn.js → chunk-z6mqdbj1.js} +1 -1
- package/bundle/{chunk-nyxn7npc.js → chunk-z87ew6d3.js} +1 -1
- package/bundle/{chunk-m6967jtv.js → chunk-z9k4506p.js} +2 -2
- package/bundle/{chunk-hf39qx6t.js → chunk-zezz8xfw.js} +2 -2
- package/bundle/{chunk-ffx0cr44.js → chunk-zg72kz2k.js} +2 -2
- package/bundle/chunk-zkxc41ek.js +2 -0
- package/bundle/{chunk-tz1bzrnh.js → chunk-zssy3srh.js} +1 -1
- package/bundle/{chunk-ae1g5y4r.js → chunk-zyz4na64.js} +1 -1
- package/bundle/{chunk-e18hshcg.js → chunk-zzsetq5f.js} +1 -1
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-00r3he5x.js +0 -2
- package/bundle/chunk-0ks20gz1.js +0 -2
- package/bundle/chunk-1a08ffyd.js +0 -2
- package/bundle/chunk-1r7anzk5.js +0 -2
- package/bundle/chunk-26e51217.js +0 -2
- package/bundle/chunk-2g4kxtz0.js +0 -2
- package/bundle/chunk-2jzay8a9.js +0 -2
- package/bundle/chunk-2q78bdtj.js +0 -2
- package/bundle/chunk-30rghawe.js +0 -2
- package/bundle/chunk-31a47ptm.js +0 -10
- package/bundle/chunk-33mzqyyb.js +0 -3
- package/bundle/chunk-34yk99ep.js +0 -2
- package/bundle/chunk-3dajnr1w.js +0 -2
- package/bundle/chunk-3ege6krg.js +0 -2
- package/bundle/chunk-43vpxggb.js +0 -2
- package/bundle/chunk-49y7zg15.js +0 -2
- package/bundle/chunk-5qhsfjzq.js +0 -3
- package/bundle/chunk-5xxn06g0.js +0 -2
- package/bundle/chunk-7cp30q0t.js +0 -2
- package/bundle/chunk-7xc73qb1.js +0 -2
- package/bundle/chunk-8gz8fk6r.js +0 -2
- package/bundle/chunk-8ht7cq3h.js +0 -2
- package/bundle/chunk-8qv0119d.js +0 -2
- package/bundle/chunk-9m0eawt5.js +0 -2
- package/bundle/chunk-9thgxbze.js +0 -2
- package/bundle/chunk-a32y70fe.js +0 -2
- package/bundle/chunk-avzaqy6a.js +0 -2
- package/bundle/chunk-az12tp53.js +0 -2
- package/bundle/chunk-b5dpzcc7.js +0 -2
- package/bundle/chunk-bcgtqx3g.js +0 -2
- package/bundle/chunk-bde5d507.js +0 -2
- package/bundle/chunk-bzzggc3s.js +0 -2
- package/bundle/chunk-c8qx439t.js +0 -2
- package/bundle/chunk-ckw51fn6.js +0 -2
- package/bundle/chunk-denp0wrq.js +0 -2
- package/bundle/chunk-depxzjer.js +0 -2
- package/bundle/chunk-dhvqpcf3.js +0 -2
- package/bundle/chunk-dkqqswbv.js +0 -2
- package/bundle/chunk-dn0437c1.js +0 -5
- package/bundle/chunk-e5t7jsxa.js +0 -2
- package/bundle/chunk-eb811dt2.js +0 -2
- package/bundle/chunk-fbz2xv2w.js +0 -2
- package/bundle/chunk-gbvcb4k1.js +0 -2
- package/bundle/chunk-gdtnqzbp.js +0 -2
- package/bundle/chunk-gkfvhh28.js +0 -2
- package/bundle/chunk-gnh8c49b.js +0 -2
- package/bundle/chunk-gvf6ek9f.js +0 -2
- package/bundle/chunk-gvx5hmhk.js +0 -2
- package/bundle/chunk-hham7r33.js +0 -2
- package/bundle/chunk-hsjbe5zy.js +0 -2
- package/bundle/chunk-j1bv93m4.js +0 -31
- package/bundle/chunk-jvvctqjd.js +0 -8
- package/bundle/chunk-jvx7jtm4.js +0 -3
- package/bundle/chunk-k6gdmqff.js +0 -2
- package/bundle/chunk-kzkb4648.js +0 -2
- package/bundle/chunk-m2540waa.js +0 -2
- package/bundle/chunk-mscvm1rm.js +0 -2
- package/bundle/chunk-mw3hh526.js +0 -2
- package/bundle/chunk-n3nsrk5n.js +0 -2
- package/bundle/chunk-n9nmc4q4.js +0 -2
- package/bundle/chunk-nj4as8vy.js +0 -2
- package/bundle/chunk-nrzca9yd.js +0 -2
- package/bundle/chunk-nxm6gpyv.js +0 -2
- package/bundle/chunk-pp10epga.js +0 -8
- package/bundle/chunk-qbjqkezn.js +0 -2
- package/bundle/chunk-qhtp1xvx.js +0 -2
- package/bundle/chunk-qkztgpay.js +0 -2
- package/bundle/chunk-rnf3dy0y.js +0 -2
- package/bundle/chunk-rry4kq85.js +0 -2
- package/bundle/chunk-ryfj80q6.js +0 -2
- package/bundle/chunk-snx49w8h.js +0 -2
- package/bundle/chunk-t21mdqbb.js +0 -2
- package/bundle/chunk-tn2yyqeb.js +0 -2
- package/bundle/chunk-ttebf3nt.js +0 -2
- package/bundle/chunk-twpfh0mx.js +0 -2
- package/bundle/chunk-tzf6d5qy.js +0 -2
- package/bundle/chunk-v2mq09wx.js +0 -2
- package/bundle/chunk-v59a02aj.js +0 -2
- package/bundle/chunk-vnstr4g1.js +0 -2
- package/bundle/chunk-vxr4rzt0.js +0 -2
- package/bundle/chunk-w0h9rczg.js +0 -2
- package/bundle/chunk-w214dwws.js +0 -2
- package/bundle/chunk-w8344et5.js +0 -2
- package/bundle/chunk-weyg78et.js +0 -2
- package/bundle/chunk-xchj8gna.js +0 -2
- package/bundle/chunk-y18ptwk2.js +0 -2
- package/bundle/chunk-y3dpyz2d.js +0 -2
- package/bundle/chunk-ykvgmje9.js +0 -35
- package/bundle/chunk-yvjecrjy.js +0 -2
- package/bundle/chunk-yw2x6by6.js +0 -2
- package/bundle/chunk-z0r4syk8.js +0 -2
- package/bundle/chunk-z7c00g63.js +0 -2
- package/bundle/chunk-znr0saas.js +0 -2
- package/bundle/chunk-zqqt7v17.js +0 -2
- package/bundle/chunk-zwrgh1hc.js +0 -2
package/bun
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-pfx8ts02.js";var D=Object.defineProperty,x=(J,Q,W)=>(Q in J)?D(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:W}):J[Q]=W,B=(J,Q,W)=>x(J,typeof Q!=="symbol"?Q+"":Q,W),I="CF_TEMP_TOKEN",L=[{name:"openai",regex:/^https:\/\/api\.openai\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.openai\.com\//,"")},{name:"deepseek",regex:/^https:\/\/api\.deepseek\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.deepseek\.com\//,"")},{name:"anthropic",regex:/^https:\/\/api\.anthropic\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.anthropic\.com\//,""),headerKey:"x-api-key"},{name:"google-ai-studio",regex:/^https:\/\/generativelanguage\.googleapis\.com\//,headerKey:"x-goog-api-key",transformEndpoint:(J)=>J.replace(/^https:\/\/generativelanguage\.googleapis\.com\//,"")},{name:"google-vertex-ai",regex:/aiplatform\.googleapis\.com/,transformEndpoint:(J)=>J.replace(/https:\/\/(.*)[-]?aiplatform\.googleapis\.com\//,"")},{name:"grok",regex:/^https:\/\/api\.x\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.x\.ai\//,"")},{name:"mistral",regex:/^https:\/\/api\.mistral\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.mistral\.ai\//,"")},{name:"perplexity-ai",regex:/^https:\/\/api\.perplexity\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.perplexity\.ai\//,"")},{name:"replicate",regex:/^https:\/\/api\.replicate\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.replicate\.com\//,"")},{name:"groq",regex:/^https:\/\/api\.groq\.com\/openai\/v1\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.groq\.com\/openai\/v1\//,"")},{name:"google-vertex-ai",regex:/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,""),headerKey:"authorization"},{name:"azure-openai",regex:/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/,transformEndpoint:(J)=>{let Q=J.match(/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/);if(!Q||!Q.groups)return J;let{resource:W,deployment:X,rest:Z}=Q.groups;if(!W||!X||!Z)throw Error("Failed to parse Azure OpenAI endpoint URL.");return`${W}/${X}/${Z}`},headerKey:"api-key"},{name:"openrouter",regex:/^https:\/\/openrouter\.ai\/api\//,transformEndpoint:(J)=>J.replace(/^https:\/\/openrouter\.ai\/api\//,"")},{name:"compat",regex:/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,transformEndpoint:(J)=>J.replace(/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,"")}],z=class extends Error{},P=class extends Error{},T=class extends Error{};async function U(J){return await new Response(J).json()}var H=class{constructor(J,Q){B(this,"specificationVersion","v3"),B(this,"defaultObjectGenerationMode","json"),B(this,"supportedUrls",{}),B(this,"models"),B(this,"config"),this.models=J,this.config=Q}get modelId(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].modelId}get provider(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].provider}async processModelRequest(J,Q){let W=[];for(let S of this.models){if(!S.config||!Object.keys(S.config).includes("fetch"))throw Error(`Sorry, but provider "${S.provider}" is currently not supported, please open a issue in the github repo!`);S.config.fetch=(V,$)=>{throw W.push({modelProvider:S.provider,request:$,url:V}),new z("Stopping provider execution...")};try{await S[Q](J)}catch(V){if(!(V instanceof z))throw V}}let X=await Promise.all(W.map(async(S)=>{let V=null;for(let R of L)if(R.regex.test(S.url))V=R;if(!V)throw Error(`Sorry, but provider "${S.modelProvider}" is currently not supported, please open a issue in the github repo!`);if(!S.request.body)throw Error("Ai Gateway provider received an unexpected empty body");let $=V.headerKey??"authorization";if(("get"in S.request.headers?S.request.headers.get($):S.request.headers[$])?.indexOf(I)!==-1)if("delete"in S.request.headers)S.request.headers.delete($);else delete S.request.headers[$];return{endpoint:V.transformEndpoint(S.url),headers:S.request.headers,provider:V.name,query:await U(S.request.body)}})),Z=N(this.config.options??{}),Y;if("binding"in this.config){let S=X.map((V)=>({...V,headers:{...V.headers??{},...Object.fromEntries(Z.entries())}}));Y=await this.config.binding.run(S,{signal:J.abortSignal})}else Z.set("Content-Type","application/json"),Z.set("cf-aig-authorization",`Bearer ${this.config.apiKey}`),Y=await fetch(`https://gateway.ai.cloudflare.com/v1/${this.config.accountId}/${this.config.gateway}`,{body:JSON.stringify(X),headers:Z,method:"POST",signal:J.abortSignal});if(Y.status===400){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2001)throw new P("This AI gateway does not exist")}else if(Y.status===401){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2009)throw new T("Your AI Gateway has authentication active, but you didn't provide a valid apiKey")}let K=Number.parseInt(Y.headers.get("cf-aig-step")??"0",10);if(!this.models[K])throw Error("Unexpected AI Gateway Error");return this.models[K].config={...this.models[K].config,fetch:(S,V)=>Y},this.models[K][Q](J)}async doStream(J){return this.processModelRequest(J,"doStream")}async doGenerate(J){return this.processModelRequest(J,"doGenerate")}};function f(J){let Q=(X)=>{return new H(Array.isArray(X)?X:[X],J)},W=(X)=>Q(X);return W.chat=Q,W}function N(J){let Q=new Headers;if(J.skipCache===!0)Q.set("cf-skip-cache","true");if(J.cacheTtl)Q.set("cf-cache-ttl",J.cacheTtl.toString());if(J.metadata)Q.set("cf-aig-metadata",JSON.stringify(J.metadata));if(J.cacheKey)Q.set("cf-aig-cache-key",J.cacheKey);if(J.collectLog!==void 0)Q.set("cf-aig-collect-log",J.collectLog===!0?"true":"false");if(J.eventId!==void 0)Q.set("cf-aig-event-id",J.eventId);if(J.requestTimeoutMs!==void 0)Q.set("cf-aig-request-timeout",J.requestTimeoutMs.toString());if(J.retries!==void 0){if(J.retries.maxAttempts!==void 0)Q.set("cf-aig-max-attempts",J.retries.maxAttempts.toString());if(J.retries.retryDelayMs!==void 0)Q.set("cf-aig-retry-delay",J.retries.retryDelayMs.toString());if(J.retries.backoff!==void 0)Q.set("cf-aig-backoff",J.retries.backoff)}return Q}export{N as parseAiGatewayOptions,f as createAiGateway,T as AiGatewayUnauthorizedError,z as AiGatewayInternalFetchError,P as AiGatewayDoesNotExist,H as AiGatewayChatLanguageModel};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-sh03ka27.js";var Ys=Object.defineProperty,is=(e)=>{throw TypeError(e)},rs=(e,t)=>{for(var s in t)Ys(e,s,{get:t[s],enumerable:!0})},Je=(e,t,s)=>t.has(e)||is("Cannot "+s),M=(e,t,s)=>(Je(e,t,"read from private field"),s?s.call(e):t.get(e)),J=(e,t,s)=>t.has(e)?is("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Ne=(e,t,s,i)=>(Je(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),l=(e,t,s)=>(Je(e,t,"access private method"),s),ns={};rs(ns,{parsers:()=>as});var as={};rs(as,{__ng_action:()=>Vr,__ng_binding:()=>Wr,__ng_directive:()=>Kr,__ng_interpolation:()=>_r});var qr=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),nt;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(nt||(nt={}));var at;(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"})(at||(at={}));var ot;(function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(ot||(ot={}));var R;(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"})(R||(R={}));var lt;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(lt||(lt={}));var ut;(function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"})(ut||(ut={}));var ct;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(ct||(ct={}));var ht;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(ht||(ht={}));var pt;(function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"})(pt||(pt={}));var dt;(function(e){e[e.None=0]="None",e[e.Const=1]="Const"})(dt||(dt={}));var mt;(function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"})(mt||(mt={}));var Xs=void 0,ft;(function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"})(ft||(ft={}));var S;(function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseOr=11]="BitwiseOr",e[e.BitwiseAnd=12]="BitwiseAnd",e[e.Lower=13]="Lower",e[e.LowerEquals=14]="LowerEquals",e[e.Bigger=15]="Bigger",e[e.BiggerEquals=16]="BiggerEquals",e[e.NullishCoalesce=17]="NullishCoalesce",e[e.Exponentiation=18]="Exponentiation",e[e.In=19]="In"})(S||(S={}));function Js(e,t){return e==null||t==null?e==t:e.isEquivalent(t)}function Zs(e,t,s){let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(!s(e[r],t[r]))return!1;return!0}function Le(e,t){return Zs(e,t,(s,i)=>s.isEquivalent(i))}var I=class{type;sourceSpan;constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new li(this,e,null,t)}key(e,t,s){return new ui(this,e,t,s)}callFn(e,t,s){return new ri(this,e,null,t,s)}instantiate(e,t,s){return new ni(this,e,t,s)}conditional(e,t=null,s){return new oi(this,e,t,null,s)}equals(e,t){return new C(S.Equals,this,e,null,t)}notEquals(e,t){return new C(S.NotEquals,this,e,null,t)}identical(e,t){return new C(S.Identical,this,e,null,t)}notIdentical(e,t){return new C(S.NotIdentical,this,e,null,t)}minus(e,t){return new C(S.Minus,this,e,null,t)}plus(e,t){return new C(S.Plus,this,e,null,t)}divide(e,t){return new C(S.Divide,this,e,null,t)}multiply(e,t){return new C(S.Multiply,this,e,null,t)}modulo(e,t){return new C(S.Modulo,this,e,null,t)}power(e,t){return new C(S.Exponentiation,this,e,null,t)}and(e,t){return new C(S.And,this,e,null,t)}bitwiseOr(e,t){return new C(S.BitwiseOr,this,e,null,t)}bitwiseAnd(e,t){return new C(S.BitwiseAnd,this,e,null,t)}or(e,t){return new C(S.Or,this,e,null,t)}lower(e,t){return new C(S.Lower,this,e,null,t)}lowerEquals(e,t){return new C(S.LowerEquals,this,e,null,t)}bigger(e,t){return new C(S.Bigger,this,e,null,t)}biggerEquals(e,t){return new C(S.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,t){return new C(S.NullishCoalesce,this,e,null,t)}toStmt(){return new di(this,null)}},os=class e extends I{name;constructor(t,s,i){super(s,i),this.name=t}isEquivalent(t){return t instanceof e&&this.name===t.name}isConstant(){return!1}visitExpression(t,s){return t.visitReadVarExpr(this,s)}clone(){return new e(this.name,this.type,this.sourceSpan)}set(t){return new ti(this.name,t,null,this.sourceSpan)}},ei=class e extends I{expr;constructor(t,s,i){super(s,i),this.expr=t}visitExpression(t,s){return t.visitTypeofExpr(this,s)}isEquivalent(t){return t instanceof e&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new e(this.expr.clone())}},ti=class e extends I{name;value;constructor(t,s,i,r){super(i||s.type,r),this.name=t,this.value=s}isEquivalent(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,s){return t.visitWriteVarExpr(this,s)}clone(){return new e(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(t,s){return new pi(this.name,this.value,t,s,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Xs,ce.Final)}},si=class e extends I{receiver;index;value;constructor(t,s,i,r,a){super(r||i.type,a),this.receiver=t,this.index=s,this.value=i}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,s){return t.visitWriteKeyExpr(this,s)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},ii=class e extends I{receiver;name;value;constructor(t,s,i,r,a){super(r||i.type,a),this.receiver=t,this.name=s,this.value=i}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,s){return t.visitWritePropExpr(this,s)}clone(){return new e(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},ri=class e extends I{fn;args;pure;constructor(t,s,i,r,a=!1){super(i,r),this.fn=t,this.args=s,this.pure=a}get receiver(){return this.fn}isEquivalent(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&Le(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(t,s){return t.visitInvokeFunctionExpr(this,s)}clone(){return new e(this.fn.clone(),this.args.map((t)=>t.clone()),this.type,this.sourceSpan,this.pure)}},ni=class e extends I{classExpr;args;constructor(t,s,i,r){super(i,r),this.classExpr=t,this.args=s}isEquivalent(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&Le(this.args,t.args)}isConstant(){return!1}visitExpression(t,s){return t.visitInstantiateExpr(this,s)}clone(){return new e(this.classExpr.clone(),this.args.map((t)=>t.clone()),this.type,this.sourceSpan)}},vt=class e extends I{value;constructor(t,s,i){super(s,i),this.value=t}isEquivalent(t){return t instanceof e&&this.value===t.value}isConstant(){return!0}visitExpression(t,s){return t.visitLiteralExpr(this,s)}clone(){return new e(this.value,this.type,this.sourceSpan)}},ai=class e extends I{value;typeParams;constructor(t,s,i=null,r){super(s,r),this.value=t,this.typeParams=i}isEquivalent(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName}isConstant(){return!1}visitExpression(t,s){return t.visitExternalExpr(this,s)}clone(){return new e(this.value,this.type,this.typeParams,this.sourceSpan)}},oi=class e extends I{condition;falseCase;trueCase;constructor(t,s,i=null,r,a){super(r||s.type,a),this.condition=t,this.falseCase=i,this.trueCase=s}isEquivalent(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&Js(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(t,s){return t.visitConditionalExpr(this,s)}clone(){var t;return new e(this.condition.clone(),this.trueCase.clone(),(t=this.falseCase)==null?void 0:t.clone(),this.type,this.sourceSpan)}},C=class e extends I{operator;rhs;lhs;constructor(t,s,i,r,a){super(r||s.type,a),this.operator=t,this.rhs=i,this.lhs=s}isEquivalent(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(t,s){return t.visitBinaryOperatorExpr(this,s)}clone(){return new e(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}},li=class e extends I{receiver;name;constructor(t,s,i,r){super(i,r),this.receiver=t,this.name=s}get index(){return this.name}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name}isConstant(){return!1}visitExpression(t,s){return t.visitReadPropExpr(this,s)}set(t){return new ii(this.receiver,this.name,t,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},ui=class e extends I{receiver;index;constructor(t,s,i,r){super(i,r),this.receiver=t,this.index=s}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)}isConstant(){return!1}visitExpression(t,s){return t.visitReadKeyExpr(this,s)}set(t){return new si(this.receiver,this.index,t,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},ci=class e extends I{entries;constructor(t,s,i){super(s,i),this.entries=t}isConstant(){return this.entries.every((t)=>t.isConstant())}isEquivalent(t){return t instanceof e&&Le(this.entries,t.entries)}visitExpression(t,s){return t.visitLiteralArrayExpr(this,s)}clone(){return new e(this.entries.map((t)=>t.clone()),this.type,this.sourceSpan)}},hi=class e extends I{entries;valueType=null;constructor(t,s,i){super(s,i),this.entries=t,s&&(this.valueType=s.valueType)}isEquivalent(t){return t instanceof e&&Le(this.entries,t.entries)}isConstant(){return this.entries.every((t)=>t.value.isConstant())}visitExpression(t,s){return t.visitLiteralMapExpr(this,s)}clone(){let t=this.entries.map((s)=>s.clone());return new e(t,this.type,this.sourceSpan)}},ce;(function(e){e[e.None=0]="None",e[e.Final=1]="Final",e[e.Private=2]="Private",e[e.Exported=4]="Exported",e[e.Static=8]="Static"})(ce||(ce={}));var ls=class{modifiers;sourceSpan;leadingComments;constructor(e=ce.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},pi=class e extends ls{name;value;type;constructor(t,s,i,r,a,o){super(r,a,o),this.name=t,this.value=s,this.type=i||s&&s.type||null}isEquivalent(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(t,s){return t.visitDeclareVarStmt(this,s)}},di=class e extends ls{expr;constructor(t,s,i){super(ce.None,s,i),this.expr=t}isEquivalent(t){return t instanceof e&&this.expr.isEquivalent(t.expr)}visitStatement(t,s){return t.visitExpressionStmt(this,s)}};function mi(e,t,s){return new os(e,t,s)}var $r=mi("<unknown>"),Hr=class e{static INSTANCE=new e;keyOf(t){if(t instanceof vt&&typeof t.value=="string")return`"${t.value}"`;if(t instanceof vt)return String(t.value);if(t instanceof ci){let s=[];for(let i of t.entries)s.push(this.keyOf(i));return`[${s.join(",")}]`}else if(t instanceof hi){let s=[];for(let i of t.entries){let r=i.key;i.quoted&&(r=`"${r}"`),s.push(r+":"+this.keyOf(i.value))}return`{${s.join(",")}}`}else{if(t instanceof ai)return`import("${t.value.moduleName}", ${t.value.name})`;if(t instanceof os)return`read(${t.name})`;if(t instanceof ei)return`typeof(${this.keyOf(t.expr)})`;throw Error(`${this.constructor.name} does not handle expressions of type ${t.constructor.name}`)}}},n="@angular/core",c=class{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:n};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:n};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:n};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:n};static element={name:"\u0275\u0275element",moduleName:n};static elementStart={name:"\u0275\u0275elementStart",moduleName:n};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:n};static advance={name:"\u0275\u0275advance",moduleName:n};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:n};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:n};static attribute={name:"\u0275\u0275attribute",moduleName:n};static classProp={name:"\u0275\u0275classProp",moduleName:n};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:n};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:n};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:n};static styleMap={name:"\u0275\u0275styleMap",moduleName:n};static classMap={name:"\u0275\u0275classMap",moduleName:n};static styleProp={name:"\u0275\u0275styleProp",moduleName:n};static interpolate={name:"\u0275\u0275interpolate",moduleName:n};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:n};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:n};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:n};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:n};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:n};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:n};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:n};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:n};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:n};static nextContext={name:"\u0275\u0275nextContext",moduleName:n};static resetView={name:"\u0275\u0275resetView",moduleName:n};static templateCreate={name:"\u0275\u0275template",moduleName:n};static defer={name:"\u0275\u0275defer",moduleName:n};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:n};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:n};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:n};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:n};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:n};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:n};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:n};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:n};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:n};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:n};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:n};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:n};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:n};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:n};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:n};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:n};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:n};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:n};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:n};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:n};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:n};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:n};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:n};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:n};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:n};static conditional={name:"\u0275\u0275conditional",moduleName:n};static repeater={name:"\u0275\u0275repeater",moduleName:n};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:n};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:n};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:n};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:n};static text={name:"\u0275\u0275text",moduleName:n};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:n};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:n};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:n};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:n};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:n};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:n};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:n};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:n};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:n};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:n};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:n};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:n};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:n};static restoreView={name:"\u0275\u0275restoreView",moduleName:n};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:n};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:n};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:n};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:n};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:n};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:n};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:n};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:n};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:n};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:n};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:n};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:n};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:n};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:n};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:n};static domProperty={name:"\u0275\u0275domProperty",moduleName:n};static property={name:"\u0275\u0275property",moduleName:n};static i18n={name:"\u0275\u0275i18n",moduleName:n};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:n};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:n};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:n};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:n};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:n};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:n};static pipe={name:"\u0275\u0275pipe",moduleName:n};static projection={name:"\u0275\u0275projection",moduleName:n};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:n};static reference={name:"\u0275\u0275reference",moduleName:n};static inject={name:"\u0275\u0275inject",moduleName:n};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:n};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:n};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:n};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:n};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:n};static forwardRef={name:"forwardRef",moduleName:n};static resolveForwardRef={name:"resolveForwardRef",moduleName:n};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:n};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:n};static \u{275}\u{275}defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:n};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:n};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:n};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:n};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:n};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:n};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:n};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:n};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:n};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:n};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:n};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:n};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:n};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:n};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:n};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:n};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:n};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:n};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:n};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:n};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:n};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:n};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:n};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:n};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:n};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:n};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:n};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:n};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:n};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:n};static definePipe={name:"\u0275\u0275definePipe",moduleName:n};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:n};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:n};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:n};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:n};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:n};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:n};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:n};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:n};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:n};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:n};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:n};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:n};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:n};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:n};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:n};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:n};static declareLet={name:"\u0275\u0275declareLet",moduleName:n};static storeLet={name:"\u0275\u0275storeLet",moduleName:n};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:n};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:n};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:n};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:n};static CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:n};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:n};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:n};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:n};static listener={name:"\u0275\u0275listener",moduleName:n};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:n};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:n};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:n};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:n};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:n};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:n};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:n};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:n};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:n};static validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:n};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:n};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:n};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:n}},fi=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},xt;(function(e){e[e.Class=0]="Class",e[e.Function=1]="Function"})(xt||(xt={}));var We=class{input;errLocation;ctxLocation;message;constructor(e,t,s,i){this.input=t,this.errLocation=s,this.ctxLocation=i,this.message=`Parser Error: ${e} ${s} [${t}] in ${i}`}},he=class{start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new q(e+this.start,e+this.end)}},g=class{span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},Ae=class extends g{nameSpan;constructor(e,t,s){super(e,t),this.nameSpan=s}},k=class extends g{visit(e,t=null){}},Ie=class extends g{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},vi=class extends Ie{visit(e,t=null){var s;return(s=e.visitThisReceiver)==null?void 0:s.call(e,this,t)}},us=class extends g{expressions;constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}},cs=class extends g{condition;trueExp;falseExp;constructor(e,t,s,i,r){super(e,t),this.condition=s,this.trueExp=i,this.falseExp=r}visit(e,t=null){return e.visitConditional(this,t)}},_e=class extends Ae{receiver;name;constructor(e,t,s,i,r){super(e,t,s),this.receiver=i,this.name=r}visit(e,t=null){return e.visitPropertyRead(this,t)}},hs=class extends Ae{receiver;name;value;constructor(e,t,s,i,r,a){super(e,t,s),this.receiver=i,this.name=r,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},Ke=class extends Ae{receiver;name;constructor(e,t,s,i,r){super(e,t,s),this.receiver=i,this.name=r}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},ps=class extends g{receiver;key;constructor(e,t,s,i){super(e,t),this.receiver=s,this.key=i}visit(e,t=null){return e.visitKeyedRead(this,t)}},qe=class extends g{receiver;key;constructor(e,t,s,i){super(e,t),this.receiver=s,this.key=i}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},ds=class extends g{receiver;key;value;constructor(e,t,s,i,r){super(e,t),this.receiver=s,this.key=i,this.value=r}visit(e,t=null){return e.visitKeyedWrite(this,t)}},ms=class extends Ae{exp;name;args;constructor(e,t,s,i,r,a){super(e,t,a),this.exp=s,this.name=i,this.args=r}visit(e,t=null){return e.visitPipe(this,t)}},L=class extends g{value;constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},fs=class extends g{expressions;constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}},vs=class extends g{keys;values;constructor(e,t,s,i){super(e,t),this.keys=s,this.values=i}visit(e,t=null){return e.visitLiteralMap(this,t)}},xs=class extends g{strings;expressions;constructor(e,t,s,i){super(e,t),this.strings=s,this.expressions=i}visit(e,t=null){return e.visitInterpolation(this,t)}},A=class extends g{operation;left;right;constructor(e,t,s,i,r){super(e,t),this.operation=s,this.left=i,this.right=r}visit(e,t=null){return e.visitBinary(this,t)}},ge=class e extends A{operator;expr;left=null;right=null;operation=null;static createMinus(t,s,i){return new e(t,s,"-",i,"-",new L(t,s,0),i)}static createPlus(t,s,i){return new e(t,s,"+",i,"-",i,new L(t,s,0))}constructor(t,s,i,r,a,o,h){super(t,s,a,o,h),this.operator=i,this.expr=r}visit(t,s=null){return t.visitUnary!==void 0?t.visitUnary(this,s):t.visitBinary(this,s)}},Pe=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}},Te=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitTypeofExpression(this,t)}},Oe=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitVoidExpression(this,t)}},ys=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}},gs=class extends g{receiver;args;argumentSpan;constructor(e,t,s,i,r){super(e,t),this.receiver=s,this.args=i,this.argumentSpan=r}visit(e,t=null){return e.visitCall(this,t)}},$e=class extends g{receiver;args;argumentSpan;constructor(e,t,s,i,r){super(e,t),this.receiver=s,this.args=i,this.argumentSpan=r}visit(e,t=null){return e.visitSafeCall(this,t)}},He=class extends g{tag;template;constructor(e,t,s,i){super(e,t),this.tag=s,this.template=i}visit(e,t){return e.visitTaggedTemplateLiteral(this,t)}},Ue=class extends g{elements;expressions;constructor(e,t,s,i){super(e,t),this.elements=s,this.expressions=i}visit(e,t){return e.visitTemplateLiteral(this,t)}},je=class extends g{text;constructor(e,t,s){super(e,t),this.text=s}visit(e,t){return e.visitTemplateLiteralElement(this,t)}},Es=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t){return e.visitParenthesizedExpression(this,t)}},q=class{start;end;constructor(e,t){this.start=e,this.end=t}},U=class extends g{ast;source;location;errors;constructor(e,t,s,i,r){super(new he(0,t===null?0:t.length),new q(i,t===null?i:i+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=r}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},Ge=class{sourceSpan;key;value;constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},ws=class{sourceSpan;key;value;constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},xi=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitTypeofExpression(e,t){this.visit(e.expression,t)}visitVoidExpression(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitTemplateLiteral(e,t){for(let s=0;s<e.elements.length;s++){this.visit(e.elements[s],t);let i=s<e.expressions.length?e.expressions[s]:null;i!==null&&this.visit(i,t)}}visitTemplateLiteralElement(e,t){}visitTaggedTemplateLiteral(e,t){this.visit(e.tag,t),this.visit(e.template,t)}visitParenthesizedExpression(e,t){this.visit(e.expression,t)}visitAll(e,t){for(let s of e)this.visit(s,t)}},yt;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION",e[e.TWO_WAY=3]="TWO_WAY"})(yt||(yt={}));var gt;(function(e){e[e.Regular=0]="Regular",e[e.Animation=1]="Animation",e[e.TwoWay=2]="TwoWay"})(gt||(gt={}));var F;(function(e){e[e.Property=0]="Property",e[e.Attribute=1]="Attribute",e[e.Class=2]="Class",e[e.Style=3]="Style",e[e.Animation=4]="Animation",e[e.TwoWay=5]="TwoWay"})(F||(F={}));var Et;(function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"})(Et||(Et={}));var yi=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function gi(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let s=t[0],i=t[1];yi.forEach((r)=>{if(r.test(s)||r.test(i))throw Error(`['${s}', '${i}'] contains unusable interpolation symbol.`)})}}var Ei=class e{start;end;static fromArray(t){return t?(gi("interpolation",t),new e(t[0],t[1])):j}constructor(t,s){this.start=t,this.end=s}},j=new Ei("{{","}}"),fe=0,Ss=9,wi=10,Si=11,Ci=12,Ni=13,Cs=32,Ii=33,Ns=34,Pi=35,Ze=36,Ti=37,wt=38,Is=39,Ee=40,G=41,St=42,Ps=43,ie=44,Ts=45,z=46,ze=47,Q=58,re=59,Oi=60,ve=61,bi=62,Ct=63,ki=48,Li=57,Os=65,Ai=69,bs=90,we=91,Nt=92,ne=93,Mi=94,et=95,ks=97,Ri=101,Bi=102,Di=110,Fi=114,Vi=116,Wi=117,_i=118,Ls=122,be=123,It=124,ae=125,As=160,Qe=96;function Ki(e){return e>=Ss&&e<=Cs||e==As}function K(e){return ki<=e&&e<=Li}function qi(e){return e>=ks&&e<=Ls||e>=Os&&e<=bs}function Pt(e){return e===Is||e===Ns||e===Qe}var Tt;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(Tt||(Tt={}));var Ot;(function(e){e[e.Inline=0]="Inline",e[e.SideEffect=1]="SideEffect",e[e.Omit=2]="Omit"})(Ot||(Ot={}));var bt;(function(e){e[e.Global=0]="Global",e[e.Local=1]="Local"})(bt||(bt={}));var kt;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(kt||(kt={}));var $i="(:(where|is)\\()?",Ms="-shadowcsshost",Hi="-shadowcsscontext",Rs="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))",Ur=new RegExp(Ms+Rs+"?([^,{]*)","gim"),Bs=Hi+Rs+"?([^{]*)",jr=new RegExp(`${$i}(${Bs})`,"gim"),Gr=new RegExp(Bs,"im"),Ui=Ms+"-no-combinator",zr=new RegExp(`${Ui}(?![^(]*\\))`,"g"),Ds="%COMMENT%",Qr=new RegExp(Ds,"g"),Yr=new RegExp(`(\\s*(?:${Ds}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),ji="%COMMA_IN_PLACEHOLDER%",Gi="%SEMI_IN_PLACEHOLDER%",zi="%COLON_IN_PLACEHOLDER%",Xr=new RegExp(ji,"g"),Jr=new RegExp(Gi,"g"),Zr=new RegExp(zi,"g"),d;(function(e){e[e.ListEnd=0]="ListEnd",e[e.Statement=1]="Statement",e[e.Variable=2]="Variable",e[e.ElementStart=3]="ElementStart",e[e.Element=4]="Element",e[e.Template=5]="Template",e[e.ElementEnd=6]="ElementEnd",e[e.ContainerStart=7]="ContainerStart",e[e.Container=8]="Container",e[e.ContainerEnd=9]="ContainerEnd",e[e.DisableBindings=10]="DisableBindings",e[e.ConditionalCreate=11]="ConditionalCreate",e[e.ConditionalBranchCreate=12]="ConditionalBranchCreate",e[e.Conditional=13]="Conditional",e[e.EnableBindings=14]="EnableBindings",e[e.Text=15]="Text",e[e.Listener=16]="Listener",e[e.InterpolateText=17]="InterpolateText",e[e.Binding=18]="Binding",e[e.Property=19]="Property",e[e.StyleProp=20]="StyleProp",e[e.ClassProp=21]="ClassProp",e[e.StyleMap=22]="StyleMap",e[e.ClassMap=23]="ClassMap",e[e.Advance=24]="Advance",e[e.Pipe=25]="Pipe",e[e.Attribute=26]="Attribute",e[e.ExtractedAttribute=27]="ExtractedAttribute",e[e.Defer=28]="Defer",e[e.DeferOn=29]="DeferOn",e[e.DeferWhen=30]="DeferWhen",e[e.I18nMessage=31]="I18nMessage",e[e.DomProperty=32]="DomProperty",e[e.Namespace=33]="Namespace",e[e.ProjectionDef=34]="ProjectionDef",e[e.Projection=35]="Projection",e[e.RepeaterCreate=36]="RepeaterCreate",e[e.Repeater=37]="Repeater",e[e.TwoWayProperty=38]="TwoWayProperty",e[e.TwoWayListener=39]="TwoWayListener",e[e.DeclareLet=40]="DeclareLet",e[e.StoreLet=41]="StoreLet",e[e.I18nStart=42]="I18nStart",e[e.I18n=43]="I18n",e[e.I18nEnd=44]="I18nEnd",e[e.I18nExpression=45]="I18nExpression",e[e.I18nApply=46]="I18nApply",e[e.IcuStart=47]="IcuStart",e[e.IcuEnd=48]="IcuEnd",e[e.IcuPlaceholder=49]="IcuPlaceholder",e[e.I18nContext=50]="I18nContext",e[e.I18nAttributes=51]="I18nAttributes",e[e.SourceLocation=52]="SourceLocation"})(d||(d={}));var Z;(function(e){e[e.LexicalRead=0]="LexicalRead",e[e.Context=1]="Context",e[e.TrackContext=2]="TrackContext",e[e.ReadVariable=3]="ReadVariable",e[e.NextContext=4]="NextContext",e[e.Reference=5]="Reference",e[e.StoreLet=6]="StoreLet",e[e.ContextLetReference=7]="ContextLetReference",e[e.GetCurrentView=8]="GetCurrentView",e[e.RestoreView=9]="RestoreView",e[e.ResetView=10]="ResetView",e[e.PureFunctionExpr=11]="PureFunctionExpr",e[e.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",e[e.PipeBinding=13]="PipeBinding",e[e.PipeBindingVariadic=14]="PipeBindingVariadic",e[e.SafePropertyRead=15]="SafePropertyRead",e[e.SafeKeyedRead=16]="SafeKeyedRead",e[e.SafeInvokeFunction=17]="SafeInvokeFunction",e[e.SafeTernaryExpr=18]="SafeTernaryExpr",e[e.EmptyExpr=19]="EmptyExpr",e[e.AssignTemporaryExpr=20]="AssignTemporaryExpr",e[e.ReadTemporaryExpr=21]="ReadTemporaryExpr",e[e.SlotLiteralExpr=22]="SlotLiteralExpr",e[e.ConditionalCase=23]="ConditionalCase",e[e.ConstCollected=24]="ConstCollected",e[e.TwoWayBindingSet=25]="TwoWayBindingSet"})(Z||(Z={}));var Lt;(function(e){e[e.None=0]="None",e[e.AlwaysInline=1]="AlwaysInline"})(Lt||(Lt={}));var At;(function(e){e[e.Context=0]="Context",e[e.Identifier=1]="Identifier",e[e.SavedView=2]="SavedView",e[e.Alias=3]="Alias"})(At||(At={}));var Mt;(function(e){e[e.Normal=0]="Normal",e[e.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(Mt||(Mt={}));var V;(function(e){e[e.Attribute=0]="Attribute",e[e.ClassName=1]="ClassName",e[e.StyleProperty=2]="StyleProperty",e[e.Property=3]="Property",e[e.Template=4]="Template",e[e.I18n=5]="I18n",e[e.Animation=6]="Animation",e[e.TwoWayProperty=7]="TwoWayProperty"})(V||(V={}));var Rt;(function(e){e[e.Creation=0]="Creation",e[e.Postproccessing=1]="Postproccessing"})(Rt||(Rt={}));var Bt;(function(e){e[e.I18nText=0]="I18nText",e[e.I18nAttribute=1]="I18nAttribute"})(Bt||(Bt={}));var Dt;(function(e){e[e.None=0]="None",e[e.ElementTag=1]="ElementTag",e[e.TemplateTag=2]="TemplateTag",e[e.OpenTag=4]="OpenTag",e[e.CloseTag=8]="CloseTag",e[e.ExpressionIndex=16]="ExpressionIndex"})(Dt||(Dt={}));var Ft;(function(e){e[e.HTML=0]="HTML",e[e.SVG=1]="SVG",e[e.Math=2]="Math"})(Ft||(Ft={}));var Vt;(function(e){e[e.Idle=0]="Idle",e[e.Immediate=1]="Immediate",e[e.Timer=2]="Timer",e[e.Hover=3]="Hover",e[e.Interaction=4]="Interaction",e[e.Viewport=5]="Viewport",e[e.Never=6]="Never"})(Vt||(Vt={}));var Wt;(function(e){e[e.RootI18n=0]="RootI18n",e[e.Icu=1]="Icu",e[e.Attr=2]="Attr"})(Wt||(Wt={}));var _t;(function(e){e[e.NgTemplate=0]="NgTemplate",e[e.Structural=1]="Structural",e[e.Block=2]="Block"})(_t||(_t={}));var Qi=Symbol("ConsumesSlot"),Fs=Symbol("DependsOnSlotContext"),pe=Symbol("ConsumesVars"),tt=Symbol("UsesVarOffset"),en={[Qi]:!0,numSlotsUsed:1},tn={[Fs]:!0},sn={[pe]:!0},Vs=class{strings;expressions;i18nPlaceholders;constructor(e,t,s){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=s,s.length!==0&&s.length!==t.length)throw Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${s.length}`)}},Me=class extends I{constructor(e=null){super(null,e)}},rn=class e extends Me{target;value;sourceSpan;kind=Z.StoreLet;[pe]=!0;[Fs]=!0;constructor(t,s,i){super(),this.target=t,this.value=s,this.sourceSpan=i}visitExpression(){}isEquivalent(t){return t instanceof e&&t.target===this.target&&t.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(t,s){this.value=(this.value,void 0)}clone(){return new e(this.target,this.value,this.sourceSpan)}},nn=class e extends Me{kind=Z.PureFunctionExpr;[pe]=!0;[tt]=!0;varOffset=null;body;args;fn=null;constructor(t,s){super(),this.body=t,this.args=s}visitExpression(t,s){var i;(i=this.body)==null||i.visitExpression(t,s);for(let r of this.args)r.visitExpression(t,s)}isEquivalent(t){return!(t instanceof e)||t.args.length!==this.args.length?!1:t.body!==null&&this.body!==null&&t.body.isEquivalent(this.body)&&t.args.every((s,i)=>s.isEquivalent(this.args[i]))}isConstant(){return!1}transformInternalExpressions(t,s){this.body!==null?this.body=(this.body,s|Ye.InChildOperation,void 0):this.fn!==null&&(this.fn=(this.fn,void 0));for(let i=0;i<this.args.length;i++)this.args[i]=(this.args[i],void 0)}clone(){var t,s;let i=new e(((t=this.body)==null?void 0:t.clone())??null,this.args.map((r)=>r.clone()));return i.fn=((s=this.fn)==null?void 0:s.clone())??null,i.varOffset=this.varOffset,i}},an=class e extends Me{target;targetSlot;name;args;kind=Z.PipeBinding;[pe]=!0;[tt]=!0;varOffset=null;constructor(t,s,i,r){super(),this.target=t,this.targetSlot=s,this.name=i,this.args=r}visitExpression(t,s){for(let i of this.args)i.visitExpression(t,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,s){for(let i=0;i<this.args.length;i++)this.args[i]=(this.args[i],void 0)}clone(){let t=new e(this.target,this.targetSlot,this.name,this.args.map((s)=>s.clone()));return t.varOffset=this.varOffset,t}},on=class e extends Me{target;targetSlot;name;args;numArgs;kind=Z.PipeBindingVariadic;[pe]=!0;[tt]=!0;varOffset=null;constructor(t,s,i,r,a){super(),this.target=t,this.targetSlot=s,this.name=i,this.args=r,this.numArgs=a}visitExpression(t,s){this.args.visitExpression(t,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,s){this.args=(this.args,void 0)}clone(){let t=new e(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return t.varOffset=this.varOffset,t}},Ye;(function(e){e[e.None=0]="None",e[e.InChildOperation=1]="InChildOperation"})(Ye||(Ye={}));var ln=new Set([d.Element,d.ElementStart,d.Container,d.ContainerStart,d.Template,d.RepeaterCreate,d.ConditionalCreate,d.ConditionalBranchCreate]),Kt;(function(e){e[e.Tmpl=0]="Tmpl",e[e.Host=1]="Host",e[e.Both=2]="Both"})(Kt||(Kt={}));var un=new Map([[c.attribute,c.attribute],[c.classProp,c.classProp],[c.element,c.element],[c.elementContainer,c.elementContainer],[c.elementContainerEnd,c.elementContainerEnd],[c.elementContainerStart,c.elementContainerStart],[c.elementEnd,c.elementEnd],[c.elementStart,c.elementStart],[c.domProperty,c.domProperty],[c.i18nExp,c.i18nExp],[c.listener,c.listener],[c.listener,c.listener],[c.property,c.property],[c.styleProp,c.styleProp],[c.syntheticHostListener,c.syntheticHostListener],[c.syntheticHostProperty,c.syntheticHostProperty],[c.templateCreate,c.templateCreate],[c.twoWayProperty,c.twoWayProperty],[c.twoWayListener,c.twoWayListener],[c.declareLet,c.declareLet],[c.conditionalCreate,c.conditionalBranchCreate],[c.conditionalBranchCreate,c.conditionalBranchCreate]]),cn=Object.freeze([]),hn=new Map([[d.ElementEnd,[d.ElementStart,d.Element]],[d.ContainerEnd,[d.ContainerStart,d.Container]],[d.I18nEnd,[d.I18nStart,d.I18n]]]),pn=new Set([d.Pipe]),Yi={},Xi="\uE500";Yi.ngsp=Xi;var qt;(function(e){e.HEX="hexadecimal",e.DEC="decimal"})(qt||(qt={}));var Ws=` \f
|
|
2
|
+
import"./chunk-pfx8ts02.js";var Ys=Object.defineProperty,is=(e)=>{throw TypeError(e)},rs=(e,t)=>{for(var s in t)Ys(e,s,{get:t[s],enumerable:!0})},Je=(e,t,s)=>t.has(e)||is("Cannot "+s),M=(e,t,s)=>(Je(e,t,"read from private field"),s?s.call(e):t.get(e)),J=(e,t,s)=>t.has(e)?is("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Ne=(e,t,s,i)=>(Je(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),l=(e,t,s)=>(Je(e,t,"access private method"),s),ns={};rs(ns,{parsers:()=>as});var as={};rs(as,{__ng_action:()=>Vr,__ng_binding:()=>Wr,__ng_directive:()=>Kr,__ng_interpolation:()=>_r});var qr=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),nt;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(nt||(nt={}));var at;(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"})(at||(at={}));var ot;(function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(ot||(ot={}));var R;(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"})(R||(R={}));var lt;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(lt||(lt={}));var ut;(function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"})(ut||(ut={}));var ct;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(ct||(ct={}));var ht;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"})(ht||(ht={}));var pt;(function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"})(pt||(pt={}));var dt;(function(e){e[e.None=0]="None",e[e.Const=1]="Const"})(dt||(dt={}));var mt;(function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"})(mt||(mt={}));var Xs=void 0,ft;(function(e){e[e.Minus=0]="Minus",e[e.Plus=1]="Plus"})(ft||(ft={}));var S;(function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseOr=11]="BitwiseOr",e[e.BitwiseAnd=12]="BitwiseAnd",e[e.Lower=13]="Lower",e[e.LowerEquals=14]="LowerEquals",e[e.Bigger=15]="Bigger",e[e.BiggerEquals=16]="BiggerEquals",e[e.NullishCoalesce=17]="NullishCoalesce",e[e.Exponentiation=18]="Exponentiation",e[e.In=19]="In"})(S||(S={}));function Js(e,t){return e==null||t==null?e==t:e.isEquivalent(t)}function Zs(e,t,s){let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(!s(e[r],t[r]))return!1;return!0}function Le(e,t){return Zs(e,t,(s,i)=>s.isEquivalent(i))}var I=class{type;sourceSpan;constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new li(this,e,null,t)}key(e,t,s){return new ui(this,e,t,s)}callFn(e,t,s){return new ri(this,e,null,t,s)}instantiate(e,t,s){return new ni(this,e,t,s)}conditional(e,t=null,s){return new oi(this,e,t,null,s)}equals(e,t){return new C(S.Equals,this,e,null,t)}notEquals(e,t){return new C(S.NotEquals,this,e,null,t)}identical(e,t){return new C(S.Identical,this,e,null,t)}notIdentical(e,t){return new C(S.NotIdentical,this,e,null,t)}minus(e,t){return new C(S.Minus,this,e,null,t)}plus(e,t){return new C(S.Plus,this,e,null,t)}divide(e,t){return new C(S.Divide,this,e,null,t)}multiply(e,t){return new C(S.Multiply,this,e,null,t)}modulo(e,t){return new C(S.Modulo,this,e,null,t)}power(e,t){return new C(S.Exponentiation,this,e,null,t)}and(e,t){return new C(S.And,this,e,null,t)}bitwiseOr(e,t){return new C(S.BitwiseOr,this,e,null,t)}bitwiseAnd(e,t){return new C(S.BitwiseAnd,this,e,null,t)}or(e,t){return new C(S.Or,this,e,null,t)}lower(e,t){return new C(S.Lower,this,e,null,t)}lowerEquals(e,t){return new C(S.LowerEquals,this,e,null,t)}bigger(e,t){return new C(S.Bigger,this,e,null,t)}biggerEquals(e,t){return new C(S.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,t){return new C(S.NullishCoalesce,this,e,null,t)}toStmt(){return new di(this,null)}},os=class e extends I{name;constructor(t,s,i){super(s,i),this.name=t}isEquivalent(t){return t instanceof e&&this.name===t.name}isConstant(){return!1}visitExpression(t,s){return t.visitReadVarExpr(this,s)}clone(){return new e(this.name,this.type,this.sourceSpan)}set(t){return new ti(this.name,t,null,this.sourceSpan)}},ei=class e extends I{expr;constructor(t,s,i){super(s,i),this.expr=t}visitExpression(t,s){return t.visitTypeofExpr(this,s)}isEquivalent(t){return t instanceof e&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new e(this.expr.clone())}},ti=class e extends I{name;value;constructor(t,s,i,r){super(i||s.type,r),this.name=t,this.value=s}isEquivalent(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,s){return t.visitWriteVarExpr(this,s)}clone(){return new e(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(t,s){return new pi(this.name,this.value,t,s,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Xs,ce.Final)}},si=class e extends I{receiver;index;value;constructor(t,s,i,r,a){super(r||i.type,a),this.receiver=t,this.index=s,this.value=i}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,s){return t.visitWriteKeyExpr(this,s)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},ii=class e extends I{receiver;name;value;constructor(t,s,i,r,a){super(r||i.type,a),this.receiver=t,this.name=s,this.value=i}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,s){return t.visitWritePropExpr(this,s)}clone(){return new e(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},ri=class e extends I{fn;args;pure;constructor(t,s,i,r,a=!1){super(i,r),this.fn=t,this.args=s,this.pure=a}get receiver(){return this.fn}isEquivalent(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&Le(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(t,s){return t.visitInvokeFunctionExpr(this,s)}clone(){return new e(this.fn.clone(),this.args.map((t)=>t.clone()),this.type,this.sourceSpan,this.pure)}},ni=class e extends I{classExpr;args;constructor(t,s,i,r){super(i,r),this.classExpr=t,this.args=s}isEquivalent(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&Le(this.args,t.args)}isConstant(){return!1}visitExpression(t,s){return t.visitInstantiateExpr(this,s)}clone(){return new e(this.classExpr.clone(),this.args.map((t)=>t.clone()),this.type,this.sourceSpan)}},vt=class e extends I{value;constructor(t,s,i){super(s,i),this.value=t}isEquivalent(t){return t instanceof e&&this.value===t.value}isConstant(){return!0}visitExpression(t,s){return t.visitLiteralExpr(this,s)}clone(){return new e(this.value,this.type,this.sourceSpan)}},ai=class e extends I{value;typeParams;constructor(t,s,i=null,r){super(s,r),this.value=t,this.typeParams=i}isEquivalent(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName}isConstant(){return!1}visitExpression(t,s){return t.visitExternalExpr(this,s)}clone(){return new e(this.value,this.type,this.typeParams,this.sourceSpan)}},oi=class e extends I{condition;falseCase;trueCase;constructor(t,s,i=null,r,a){super(r||s.type,a),this.condition=t,this.falseCase=i,this.trueCase=s}isEquivalent(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&Js(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(t,s){return t.visitConditionalExpr(this,s)}clone(){var t;return new e(this.condition.clone(),this.trueCase.clone(),(t=this.falseCase)==null?void 0:t.clone(),this.type,this.sourceSpan)}},C=class e extends I{operator;rhs;lhs;constructor(t,s,i,r,a){super(r||s.type,a),this.operator=t,this.rhs=i,this.lhs=s}isEquivalent(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(t,s){return t.visitBinaryOperatorExpr(this,s)}clone(){return new e(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}},li=class e extends I{receiver;name;constructor(t,s,i,r){super(i,r),this.receiver=t,this.name=s}get index(){return this.name}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name}isConstant(){return!1}visitExpression(t,s){return t.visitReadPropExpr(this,s)}set(t){return new ii(this.receiver,this.name,t,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},ui=class e extends I{receiver;index;constructor(t,s,i,r){super(i,r),this.receiver=t,this.index=s}isEquivalent(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)}isConstant(){return!1}visitExpression(t,s){return t.visitReadKeyExpr(this,s)}set(t){return new si(this.receiver,this.index,t,null,this.sourceSpan)}clone(){return new e(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},ci=class e extends I{entries;constructor(t,s,i){super(s,i),this.entries=t}isConstant(){return this.entries.every((t)=>t.isConstant())}isEquivalent(t){return t instanceof e&&Le(this.entries,t.entries)}visitExpression(t,s){return t.visitLiteralArrayExpr(this,s)}clone(){return new e(this.entries.map((t)=>t.clone()),this.type,this.sourceSpan)}},hi=class e extends I{entries;valueType=null;constructor(t,s,i){super(s,i),this.entries=t,s&&(this.valueType=s.valueType)}isEquivalent(t){return t instanceof e&&Le(this.entries,t.entries)}isConstant(){return this.entries.every((t)=>t.value.isConstant())}visitExpression(t,s){return t.visitLiteralMapExpr(this,s)}clone(){let t=this.entries.map((s)=>s.clone());return new e(t,this.type,this.sourceSpan)}},ce;(function(e){e[e.None=0]="None",e[e.Final=1]="Final",e[e.Private=2]="Private",e[e.Exported=4]="Exported",e[e.Static=8]="Static"})(ce||(ce={}));var ls=class{modifiers;sourceSpan;leadingComments;constructor(e=ce.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},pi=class e extends ls{name;value;type;constructor(t,s,i,r,a,o){super(r,a,o),this.name=t,this.value=s,this.type=i||s&&s.type||null}isEquivalent(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(t,s){return t.visitDeclareVarStmt(this,s)}},di=class e extends ls{expr;constructor(t,s,i){super(ce.None,s,i),this.expr=t}isEquivalent(t){return t instanceof e&&this.expr.isEquivalent(t.expr)}visitStatement(t,s){return t.visitExpressionStmt(this,s)}};function mi(e,t,s){return new os(e,t,s)}var $r=mi("<unknown>"),Hr=class e{static INSTANCE=new e;keyOf(t){if(t instanceof vt&&typeof t.value=="string")return`"${t.value}"`;if(t instanceof vt)return String(t.value);if(t instanceof ci){let s=[];for(let i of t.entries)s.push(this.keyOf(i));return`[${s.join(",")}]`}else if(t instanceof hi){let s=[];for(let i of t.entries){let r=i.key;i.quoted&&(r=`"${r}"`),s.push(r+":"+this.keyOf(i.value))}return`{${s.join(",")}}`}else{if(t instanceof ai)return`import("${t.value.moduleName}", ${t.value.name})`;if(t instanceof os)return`read(${t.name})`;if(t instanceof ei)return`typeof(${this.keyOf(t.expr)})`;throw Error(`${this.constructor.name} does not handle expressions of type ${t.constructor.name}`)}}},n="@angular/core",c=class{static NEW_METHOD="factory";static TRANSFORM_METHOD="transform";static PATCH_DEPS="patchedDeps";static core={name:null,moduleName:n};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:n};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:n};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:n};static element={name:"\u0275\u0275element",moduleName:n};static elementStart={name:"\u0275\u0275elementStart",moduleName:n};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:n};static advance={name:"\u0275\u0275advance",moduleName:n};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:n};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:n};static attribute={name:"\u0275\u0275attribute",moduleName:n};static classProp={name:"\u0275\u0275classProp",moduleName:n};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:n};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:n};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:n};static styleMap={name:"\u0275\u0275styleMap",moduleName:n};static classMap={name:"\u0275\u0275classMap",moduleName:n};static styleProp={name:"\u0275\u0275styleProp",moduleName:n};static interpolate={name:"\u0275\u0275interpolate",moduleName:n};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:n};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:n};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:n};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:n};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:n};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:n};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:n};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:n};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:n};static nextContext={name:"\u0275\u0275nextContext",moduleName:n};static resetView={name:"\u0275\u0275resetView",moduleName:n};static templateCreate={name:"\u0275\u0275template",moduleName:n};static defer={name:"\u0275\u0275defer",moduleName:n};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:n};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:n};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:n};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:n};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:n};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:n};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:n};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:n};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:n};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:n};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:n};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:n};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:n};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:n};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:n};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:n};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:n};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:n};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:n};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:n};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:n};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:n};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:n};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:n};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:n};static conditional={name:"\u0275\u0275conditional",moduleName:n};static repeater={name:"\u0275\u0275repeater",moduleName:n};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:n};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:n};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:n};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:n};static text={name:"\u0275\u0275text",moduleName:n};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:n};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:n};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:n};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:n};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:n};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:n};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:n};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:n};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:n};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:n};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:n};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:n};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:n};static restoreView={name:"\u0275\u0275restoreView",moduleName:n};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:n};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:n};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:n};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:n};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:n};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:n};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:n};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:n};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:n};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:n};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:n};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:n};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:n};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:n};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:n};static domProperty={name:"\u0275\u0275domProperty",moduleName:n};static property={name:"\u0275\u0275property",moduleName:n};static i18n={name:"\u0275\u0275i18n",moduleName:n};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:n};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:n};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:n};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:n};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:n};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:n};static pipe={name:"\u0275\u0275pipe",moduleName:n};static projection={name:"\u0275\u0275projection",moduleName:n};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:n};static reference={name:"\u0275\u0275reference",moduleName:n};static inject={name:"\u0275\u0275inject",moduleName:n};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:n};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:n};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:n};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:n};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:n};static forwardRef={name:"forwardRef",moduleName:n};static resolveForwardRef={name:"resolveForwardRef",moduleName:n};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:n};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:n};static \u{275}\u{275}defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:n};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:n};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:n};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:n};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:n};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:n};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:n};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:n};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:n};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:n};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:n};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:n};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:n};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:n};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:n};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:n};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:n};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:n};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:n};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:n};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:n};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:n};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:n};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:n};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:n};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:n};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:n};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:n};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:n};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:n};static definePipe={name:"\u0275\u0275definePipe",moduleName:n};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:n};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:n};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:n};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:n};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:n};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:n};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:n};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:n};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:n};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:n};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:n};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:n};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:n};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:n};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:n};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:n};static declareLet={name:"\u0275\u0275declareLet",moduleName:n};static storeLet={name:"\u0275\u0275storeLet",moduleName:n};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:n};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:n};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:n};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:n};static CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:n};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:n};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:n};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:n};static listener={name:"\u0275\u0275listener",moduleName:n};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:n};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:n};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:n};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:n};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:n};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:n};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:n};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:n};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:n};static validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:n};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:n};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:n};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:n}},fi=class{full;major;minor;patch;constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},xt;(function(e){e[e.Class=0]="Class",e[e.Function=1]="Function"})(xt||(xt={}));var We=class{input;errLocation;ctxLocation;message;constructor(e,t,s,i){this.input=t,this.errLocation=s,this.ctxLocation=i,this.message=`Parser Error: ${e} ${s} [${t}] in ${i}`}},he=class{start;end;constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new q(e+this.start,e+this.end)}},g=class{span;sourceSpan;constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},Ae=class extends g{nameSpan;constructor(e,t,s){super(e,t),this.nameSpan=s}},k=class extends g{visit(e,t=null){}},Ie=class extends g{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},vi=class extends Ie{visit(e,t=null){var s;return(s=e.visitThisReceiver)==null?void 0:s.call(e,this,t)}},us=class extends g{expressions;constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}},cs=class extends g{condition;trueExp;falseExp;constructor(e,t,s,i,r){super(e,t),this.condition=s,this.trueExp=i,this.falseExp=r}visit(e,t=null){return e.visitConditional(this,t)}},_e=class extends Ae{receiver;name;constructor(e,t,s,i,r){super(e,t,s),this.receiver=i,this.name=r}visit(e,t=null){return e.visitPropertyRead(this,t)}},hs=class extends Ae{receiver;name;value;constructor(e,t,s,i,r,a){super(e,t,s),this.receiver=i,this.name=r,this.value=a}visit(e,t=null){return e.visitPropertyWrite(this,t)}},Ke=class extends Ae{receiver;name;constructor(e,t,s,i,r){super(e,t,s),this.receiver=i,this.name=r}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},ps=class extends g{receiver;key;constructor(e,t,s,i){super(e,t),this.receiver=s,this.key=i}visit(e,t=null){return e.visitKeyedRead(this,t)}},qe=class extends g{receiver;key;constructor(e,t,s,i){super(e,t),this.receiver=s,this.key=i}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},ds=class extends g{receiver;key;value;constructor(e,t,s,i,r){super(e,t),this.receiver=s,this.key=i,this.value=r}visit(e,t=null){return e.visitKeyedWrite(this,t)}},ms=class extends Ae{exp;name;args;constructor(e,t,s,i,r,a){super(e,t,a),this.exp=s,this.name=i,this.args=r}visit(e,t=null){return e.visitPipe(this,t)}},L=class extends g{value;constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},fs=class extends g{expressions;constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}},vs=class extends g{keys;values;constructor(e,t,s,i){super(e,t),this.keys=s,this.values=i}visit(e,t=null){return e.visitLiteralMap(this,t)}},xs=class extends g{strings;expressions;constructor(e,t,s,i){super(e,t),this.strings=s,this.expressions=i}visit(e,t=null){return e.visitInterpolation(this,t)}},A=class extends g{operation;left;right;constructor(e,t,s,i,r){super(e,t),this.operation=s,this.left=i,this.right=r}visit(e,t=null){return e.visitBinary(this,t)}},ge=class e extends A{operator;expr;left=null;right=null;operation=null;static createMinus(t,s,i){return new e(t,s,"-",i,"-",new L(t,s,0),i)}static createPlus(t,s,i){return new e(t,s,"+",i,"-",i,new L(t,s,0))}constructor(t,s,i,r,a,o,h){super(t,s,a,o,h),this.operator=i,this.expr=r}visit(t,s=null){return t.visitUnary!==void 0?t.visitUnary(this,s):t.visitBinary(this,s)}},Pe=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}},Te=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitTypeofExpression(this,t)}},Oe=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitVoidExpression(this,t)}},ys=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}},gs=class extends g{receiver;args;argumentSpan;constructor(e,t,s,i,r){super(e,t),this.receiver=s,this.args=i,this.argumentSpan=r}visit(e,t=null){return e.visitCall(this,t)}},$e=class extends g{receiver;args;argumentSpan;constructor(e,t,s,i,r){super(e,t),this.receiver=s,this.args=i,this.argumentSpan=r}visit(e,t=null){return e.visitSafeCall(this,t)}},He=class extends g{tag;template;constructor(e,t,s,i){super(e,t),this.tag=s,this.template=i}visit(e,t){return e.visitTaggedTemplateLiteral(this,t)}},Ue=class extends g{elements;expressions;constructor(e,t,s,i){super(e,t),this.elements=s,this.expressions=i}visit(e,t){return e.visitTemplateLiteral(this,t)}},je=class extends g{text;constructor(e,t,s){super(e,t),this.text=s}visit(e,t){return e.visitTemplateLiteralElement(this,t)}},Es=class extends g{expression;constructor(e,t,s){super(e,t),this.expression=s}visit(e,t){return e.visitParenthesizedExpression(this,t)}},q=class{start;end;constructor(e,t){this.start=e,this.end=t}},U=class extends g{ast;source;location;errors;constructor(e,t,s,i,r){super(new he(0,t===null?0:t.length),new q(i,t===null?i:i+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=r}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},Ge=class{sourceSpan;key;value;constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},ws=class{sourceSpan;key;value;constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},xi=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitTypeofExpression(e,t){this.visit(e.expression,t)}visitVoidExpression(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitTemplateLiteral(e,t){for(let s=0;s<e.elements.length;s++){this.visit(e.elements[s],t);let i=s<e.expressions.length?e.expressions[s]:null;i!==null&&this.visit(i,t)}}visitTemplateLiteralElement(e,t){}visitTaggedTemplateLiteral(e,t){this.visit(e.tag,t),this.visit(e.template,t)}visitParenthesizedExpression(e,t){this.visit(e.expression,t)}visitAll(e,t){for(let s of e)this.visit(s,t)}},yt;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION",e[e.TWO_WAY=3]="TWO_WAY"})(yt||(yt={}));var gt;(function(e){e[e.Regular=0]="Regular",e[e.Animation=1]="Animation",e[e.TwoWay=2]="TwoWay"})(gt||(gt={}));var F;(function(e){e[e.Property=0]="Property",e[e.Attribute=1]="Attribute",e[e.Class=2]="Class",e[e.Style=3]="Style",e[e.Animation=4]="Animation",e[e.TwoWay=5]="TwoWay"})(F||(F={}));var Et;(function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"})(Et||(Et={}));var yi=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function gi(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let s=t[0],i=t[1];yi.forEach((r)=>{if(r.test(s)||r.test(i))throw Error(`['${s}', '${i}'] contains unusable interpolation symbol.`)})}}var Ei=class e{start;end;static fromArray(t){return t?(gi("interpolation",t),new e(t[0],t[1])):j}constructor(t,s){this.start=t,this.end=s}},j=new Ei("{{","}}"),fe=0,Ss=9,wi=10,Si=11,Ci=12,Ni=13,Cs=32,Ii=33,Ns=34,Pi=35,Ze=36,Ti=37,wt=38,Is=39,Ee=40,G=41,St=42,Ps=43,ie=44,Ts=45,z=46,ze=47,Q=58,re=59,Oi=60,ve=61,bi=62,Ct=63,ki=48,Li=57,Os=65,Ai=69,bs=90,we=91,Nt=92,ne=93,Mi=94,et=95,ks=97,Ri=101,Bi=102,Di=110,Fi=114,Vi=116,Wi=117,_i=118,Ls=122,be=123,It=124,ae=125,As=160,Qe=96;function Ki(e){return e>=Ss&&e<=Cs||e==As}function K(e){return ki<=e&&e<=Li}function qi(e){return e>=ks&&e<=Ls||e>=Os&&e<=bs}function Pt(e){return e===Is||e===Ns||e===Qe}var Tt;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"})(Tt||(Tt={}));var Ot;(function(e){e[e.Inline=0]="Inline",e[e.SideEffect=1]="SideEffect",e[e.Omit=2]="Omit"})(Ot||(Ot={}));var bt;(function(e){e[e.Global=0]="Global",e[e.Local=1]="Local"})(bt||(bt={}));var kt;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(kt||(kt={}));var $i="(:(where|is)\\()?",Ms="-shadowcsshost",Hi="-shadowcsscontext",Rs="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))",Ur=new RegExp(Ms+Rs+"?([^,{]*)","gim"),Bs=Hi+Rs+"?([^{]*)",jr=new RegExp(`${$i}(${Bs})`,"gim"),Gr=new RegExp(Bs,"im"),Ui=Ms+"-no-combinator",zr=new RegExp(`${Ui}(?![^(]*\\))`,"g"),Ds="%COMMENT%",Qr=new RegExp(Ds,"g"),Yr=new RegExp(`(\\s*(?:${Ds}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),ji="%COMMA_IN_PLACEHOLDER%",Gi="%SEMI_IN_PLACEHOLDER%",zi="%COLON_IN_PLACEHOLDER%",Xr=new RegExp(ji,"g"),Jr=new RegExp(Gi,"g"),Zr=new RegExp(zi,"g"),d;(function(e){e[e.ListEnd=0]="ListEnd",e[e.Statement=1]="Statement",e[e.Variable=2]="Variable",e[e.ElementStart=3]="ElementStart",e[e.Element=4]="Element",e[e.Template=5]="Template",e[e.ElementEnd=6]="ElementEnd",e[e.ContainerStart=7]="ContainerStart",e[e.Container=8]="Container",e[e.ContainerEnd=9]="ContainerEnd",e[e.DisableBindings=10]="DisableBindings",e[e.ConditionalCreate=11]="ConditionalCreate",e[e.ConditionalBranchCreate=12]="ConditionalBranchCreate",e[e.Conditional=13]="Conditional",e[e.EnableBindings=14]="EnableBindings",e[e.Text=15]="Text",e[e.Listener=16]="Listener",e[e.InterpolateText=17]="InterpolateText",e[e.Binding=18]="Binding",e[e.Property=19]="Property",e[e.StyleProp=20]="StyleProp",e[e.ClassProp=21]="ClassProp",e[e.StyleMap=22]="StyleMap",e[e.ClassMap=23]="ClassMap",e[e.Advance=24]="Advance",e[e.Pipe=25]="Pipe",e[e.Attribute=26]="Attribute",e[e.ExtractedAttribute=27]="ExtractedAttribute",e[e.Defer=28]="Defer",e[e.DeferOn=29]="DeferOn",e[e.DeferWhen=30]="DeferWhen",e[e.I18nMessage=31]="I18nMessage",e[e.DomProperty=32]="DomProperty",e[e.Namespace=33]="Namespace",e[e.ProjectionDef=34]="ProjectionDef",e[e.Projection=35]="Projection",e[e.RepeaterCreate=36]="RepeaterCreate",e[e.Repeater=37]="Repeater",e[e.TwoWayProperty=38]="TwoWayProperty",e[e.TwoWayListener=39]="TwoWayListener",e[e.DeclareLet=40]="DeclareLet",e[e.StoreLet=41]="StoreLet",e[e.I18nStart=42]="I18nStart",e[e.I18n=43]="I18n",e[e.I18nEnd=44]="I18nEnd",e[e.I18nExpression=45]="I18nExpression",e[e.I18nApply=46]="I18nApply",e[e.IcuStart=47]="IcuStart",e[e.IcuEnd=48]="IcuEnd",e[e.IcuPlaceholder=49]="IcuPlaceholder",e[e.I18nContext=50]="I18nContext",e[e.I18nAttributes=51]="I18nAttributes",e[e.SourceLocation=52]="SourceLocation"})(d||(d={}));var Z;(function(e){e[e.LexicalRead=0]="LexicalRead",e[e.Context=1]="Context",e[e.TrackContext=2]="TrackContext",e[e.ReadVariable=3]="ReadVariable",e[e.NextContext=4]="NextContext",e[e.Reference=5]="Reference",e[e.StoreLet=6]="StoreLet",e[e.ContextLetReference=7]="ContextLetReference",e[e.GetCurrentView=8]="GetCurrentView",e[e.RestoreView=9]="RestoreView",e[e.ResetView=10]="ResetView",e[e.PureFunctionExpr=11]="PureFunctionExpr",e[e.PureFunctionParameterExpr=12]="PureFunctionParameterExpr",e[e.PipeBinding=13]="PipeBinding",e[e.PipeBindingVariadic=14]="PipeBindingVariadic",e[e.SafePropertyRead=15]="SafePropertyRead",e[e.SafeKeyedRead=16]="SafeKeyedRead",e[e.SafeInvokeFunction=17]="SafeInvokeFunction",e[e.SafeTernaryExpr=18]="SafeTernaryExpr",e[e.EmptyExpr=19]="EmptyExpr",e[e.AssignTemporaryExpr=20]="AssignTemporaryExpr",e[e.ReadTemporaryExpr=21]="ReadTemporaryExpr",e[e.SlotLiteralExpr=22]="SlotLiteralExpr",e[e.ConditionalCase=23]="ConditionalCase",e[e.ConstCollected=24]="ConstCollected",e[e.TwoWayBindingSet=25]="TwoWayBindingSet"})(Z||(Z={}));var Lt;(function(e){e[e.None=0]="None",e[e.AlwaysInline=1]="AlwaysInline"})(Lt||(Lt={}));var At;(function(e){e[e.Context=0]="Context",e[e.Identifier=1]="Identifier",e[e.SavedView=2]="SavedView",e[e.Alias=3]="Alias"})(At||(At={}));var Mt;(function(e){e[e.Normal=0]="Normal",e[e.TemplateDefinitionBuilder=1]="TemplateDefinitionBuilder"})(Mt||(Mt={}));var V;(function(e){e[e.Attribute=0]="Attribute",e[e.ClassName=1]="ClassName",e[e.StyleProperty=2]="StyleProperty",e[e.Property=3]="Property",e[e.Template=4]="Template",e[e.I18n=5]="I18n",e[e.Animation=6]="Animation",e[e.TwoWayProperty=7]="TwoWayProperty"})(V||(V={}));var Rt;(function(e){e[e.Creation=0]="Creation",e[e.Postproccessing=1]="Postproccessing"})(Rt||(Rt={}));var Bt;(function(e){e[e.I18nText=0]="I18nText",e[e.I18nAttribute=1]="I18nAttribute"})(Bt||(Bt={}));var Dt;(function(e){e[e.None=0]="None",e[e.ElementTag=1]="ElementTag",e[e.TemplateTag=2]="TemplateTag",e[e.OpenTag=4]="OpenTag",e[e.CloseTag=8]="CloseTag",e[e.ExpressionIndex=16]="ExpressionIndex"})(Dt||(Dt={}));var Ft;(function(e){e[e.HTML=0]="HTML",e[e.SVG=1]="SVG",e[e.Math=2]="Math"})(Ft||(Ft={}));var Vt;(function(e){e[e.Idle=0]="Idle",e[e.Immediate=1]="Immediate",e[e.Timer=2]="Timer",e[e.Hover=3]="Hover",e[e.Interaction=4]="Interaction",e[e.Viewport=5]="Viewport",e[e.Never=6]="Never"})(Vt||(Vt={}));var Wt;(function(e){e[e.RootI18n=0]="RootI18n",e[e.Icu=1]="Icu",e[e.Attr=2]="Attr"})(Wt||(Wt={}));var _t;(function(e){e[e.NgTemplate=0]="NgTemplate",e[e.Structural=1]="Structural",e[e.Block=2]="Block"})(_t||(_t={}));var Qi=Symbol("ConsumesSlot"),Fs=Symbol("DependsOnSlotContext"),pe=Symbol("ConsumesVars"),tt=Symbol("UsesVarOffset"),en={[Qi]:!0,numSlotsUsed:1},tn={[Fs]:!0},sn={[pe]:!0},Vs=class{strings;expressions;i18nPlaceholders;constructor(e,t,s){if(this.strings=e,this.expressions=t,this.i18nPlaceholders=s,s.length!==0&&s.length!==t.length)throw Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${s.length}`)}},Me=class extends I{constructor(e=null){super(null,e)}},rn=class e extends Me{target;value;sourceSpan;kind=Z.StoreLet;[pe]=!0;[Fs]=!0;constructor(t,s,i){super(),this.target=t,this.value=s,this.sourceSpan=i}visitExpression(){}isEquivalent(t){return t instanceof e&&t.target===this.target&&t.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(t,s){this.value=(this.value,void 0)}clone(){return new e(this.target,this.value,this.sourceSpan)}},nn=class e extends Me{kind=Z.PureFunctionExpr;[pe]=!0;[tt]=!0;varOffset=null;body;args;fn=null;constructor(t,s){super(),this.body=t,this.args=s}visitExpression(t,s){var i;(i=this.body)==null||i.visitExpression(t,s);for(let r of this.args)r.visitExpression(t,s)}isEquivalent(t){return!(t instanceof e)||t.args.length!==this.args.length?!1:t.body!==null&&this.body!==null&&t.body.isEquivalent(this.body)&&t.args.every((s,i)=>s.isEquivalent(this.args[i]))}isConstant(){return!1}transformInternalExpressions(t,s){this.body!==null?this.body=(this.body,s|Ye.InChildOperation,void 0):this.fn!==null&&(this.fn=(this.fn,void 0));for(let i=0;i<this.args.length;i++)this.args[i]=(this.args[i],void 0)}clone(){var t,s;let i=new e(((t=this.body)==null?void 0:t.clone())??null,this.args.map((r)=>r.clone()));return i.fn=((s=this.fn)==null?void 0:s.clone())??null,i.varOffset=this.varOffset,i}},an=class e extends Me{target;targetSlot;name;args;kind=Z.PipeBinding;[pe]=!0;[tt]=!0;varOffset=null;constructor(t,s,i,r){super(),this.target=t,this.targetSlot=s,this.name=i,this.args=r}visitExpression(t,s){for(let i of this.args)i.visitExpression(t,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,s){for(let i=0;i<this.args.length;i++)this.args[i]=(this.args[i],void 0)}clone(){let t=new e(this.target,this.targetSlot,this.name,this.args.map((s)=>s.clone()));return t.varOffset=this.varOffset,t}},on=class e extends Me{target;targetSlot;name;args;numArgs;kind=Z.PipeBindingVariadic;[pe]=!0;[tt]=!0;varOffset=null;constructor(t,s,i,r,a){super(),this.target=t,this.targetSlot=s,this.name=i,this.args=r,this.numArgs=a}visitExpression(t,s){this.args.visitExpression(t,s)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(t,s){this.args=(this.args,void 0)}clone(){let t=new e(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return t.varOffset=this.varOffset,t}},Ye;(function(e){e[e.None=0]="None",e[e.InChildOperation=1]="InChildOperation"})(Ye||(Ye={}));var ln=new Set([d.Element,d.ElementStart,d.Container,d.ContainerStart,d.Template,d.RepeaterCreate,d.ConditionalCreate,d.ConditionalBranchCreate]),Kt;(function(e){e[e.Tmpl=0]="Tmpl",e[e.Host=1]="Host",e[e.Both=2]="Both"})(Kt||(Kt={}));var un=new Map([[c.attribute,c.attribute],[c.classProp,c.classProp],[c.element,c.element],[c.elementContainer,c.elementContainer],[c.elementContainerEnd,c.elementContainerEnd],[c.elementContainerStart,c.elementContainerStart],[c.elementEnd,c.elementEnd],[c.elementStart,c.elementStart],[c.domProperty,c.domProperty],[c.i18nExp,c.i18nExp],[c.listener,c.listener],[c.listener,c.listener],[c.property,c.property],[c.styleProp,c.styleProp],[c.syntheticHostListener,c.syntheticHostListener],[c.syntheticHostProperty,c.syntheticHostProperty],[c.templateCreate,c.templateCreate],[c.twoWayProperty,c.twoWayProperty],[c.twoWayListener,c.twoWayListener],[c.declareLet,c.declareLet],[c.conditionalCreate,c.conditionalBranchCreate],[c.conditionalBranchCreate,c.conditionalBranchCreate]]),cn=Object.freeze([]),hn=new Map([[d.ElementEnd,[d.ElementStart,d.Element]],[d.ContainerEnd,[d.ContainerStart,d.Container]],[d.I18nEnd,[d.I18nStart,d.I18n]]]),pn=new Set([d.Pipe]),Yi={},Xi="\uE500";Yi.ngsp=Xi;var qt;(function(e){e.HEX="hexadecimal",e.DEC="decimal"})(qt||(qt={}));var Ws=` \f
|
|
3
3
|
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,dn=new RegExp(`[^${Ws}]`),mn=new RegExp(`[${Ws}]{2,}`,"g"),m;(function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.PrivateIdentifier=2]="PrivateIdentifier",e[e.Keyword=3]="Keyword",e[e.String=4]="String",e[e.Operator=5]="Operator",e[e.Number=6]="Number",e[e.Error=7]="Error"})(m||(m={}));var W;(function(e){e[e.Plain=0]="Plain",e[e.TemplateLiteralPart=1]="TemplateLiteralPart",e[e.TemplateLiteralEnd=2]="TemplateLiteralEnd"})(W||(W={}));var Ji=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in"],_s=class{tokenize(e){return new rr(e).scan()}},D=class{index;end;type;numValue;strValue;constructor(e,t,s,i,r){this.index=e,this.end=t,this.type=s,this.numValue=i,this.strValue=r}isCharacter(e){return this.type===m.Character&&this.numValue===e}isNumber(){return this.type===m.Number}isString(){return this.type===m.String}isOperator(e){return this.type===m.Operator&&this.strValue===e}isIdentifier(){return this.type===m.Identifier}isPrivateIdentifier(){return this.type===m.PrivateIdentifier}isKeyword(){return this.type===m.Keyword}isKeywordLet(){return this.type===m.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===m.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===m.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===m.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===m.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===m.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===m.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===m.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===m.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===m.Keyword&&this.strValue==="in"}isError(){return this.type===m.Error}toNumber(){return this.type===m.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===W.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===W.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}isTemplateLiteralInterpolationEnd(){return this.isOperator("}")}toString(){switch(this.type){case m.Character:case m.Identifier:case m.Keyword:case m.Operator:case m.PrivateIdentifier:case m.String:case m.Error:return this.strValue;case m.Number:return this.numValue.toString();default:return null}}},Be=class extends D{kind;constructor(e,t,s,i){super(e,t,m.String,0,s),this.kind=i}};function xe(e,t,s){return new D(e,t,m.Character,s,String.fromCharCode(s))}function Zi(e,t,s){return new D(e,t,m.Identifier,0,s)}function er(e,t,s){return new D(e,t,m.PrivateIdentifier,0,s)}function tr(e,t,s){return new D(e,t,m.Keyword,0,s)}function ee(e,t,s){return new D(e,t,m.Operator,0,s)}function sr(e,t,s){return new D(e,t,m.Number,s,"")}function ir(e,t,s){return new D(e,t,m.Error,0,s)}var ye=new D(-1,-1,m.Character,0,""),rr=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(e){this.input=e,this.length=e.length,this.advance()}scan(){let e=this.scanToken();for(;e!==null;)this.tokens.push(e),e=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?fe:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,s=this.peek,i=this.index;for(;s<=Cs;)if(++i>=t){s=fe;break}else s=e.charCodeAt(i);if(this.peek=s,this.index=i,i>=t)return null;if($t(s))return this.scanIdentifier();if(K(s))return this.scanNumber(i);let r=i;switch(s){case z:return this.advance(),K(this.peek)?this.scanNumber(r):xe(r,this.index,z);case Ee:case G:case we:case ne:case ie:case Q:case re:return this.scanCharacter(r,s);case be:return this.scanOpenBrace(r,s);case ae:return this.scanCloseBrace(r,s);case Is:case Ns:return this.scanString();case Qe:return this.advance(),this.scanTemplateLiteralPart(r);case Pi:return this.scanPrivateIdentifier();case Ps:case Ts:case ze:case Ti:case Mi:return this.scanOperator(r,String.fromCharCode(s));case St:return this.scanComplexOperator(r,"*",St,"*");case Ct:return this.scanQuestion(r);case Oi:case bi:return this.scanComplexOperator(r,String.fromCharCode(s),ve,"=");case Ii:case ve:return this.scanComplexOperator(r,String.fromCharCode(s),ve,"=",ve,"=");case wt:return this.scanComplexOperator(r,"&",wt,"&");case It:return this.scanComplexOperator(r,"|",It,"|");case As:for(;Ki(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),xe(e,this.index,t)}scanOperator(e,t){return this.advance(),ee(e,this.index,t)}scanOpenBrace(e,t){return this.braceStack.push("expression"),this.advance(),xe(e,this.index,t)}scanCloseBrace(e,t){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(ee(e,this.index,"}")),this.scanTemplateLiteralPart(this.index)):xe(e,this.index,t)}scanComplexOperator(e,t,s,i,r,a){this.advance();let o=t;return this.peek==s&&(this.advance(),o+=i),r!=null&&this.peek==r&&(this.advance(),o+=a),ee(e,this.index,o)}scanIdentifier(){let e=this.index;for(this.advance();Ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return Ji.indexOf(t)>-1?tr(e,this.index,t):Zi(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!$t(this.peek))return this.error("Invalid character [#]",-1);for(;Ht(this.peek);)this.advance();let t=this.input.substring(e,this.index);return er(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!K(this.peek))if(this.peek===et){if(!K(this.input.charCodeAt(this.index-1))||!K(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===z)t=!1;else if(nr(this.peek)){if(this.advance(),ar(this.peek)&&this.advance(),!K(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let i=this.input.substring(e,this.index);s&&(i=i.replace(/_/g,""));let r=t?lr(i):parseFloat(i);return sr(e,this.index,r)}scanString(){let e=this.index,t=this.peek;this.advance();let s="",i=this.index,r=this.input;for(;this.peek!=t;)if(this.peek==Nt){let o=this.scanStringBackslash(s,i);if(typeof o!="string")return o;s=o,i=this.index}else{if(this.peek==fe)return this.error("Unterminated quote",0);this.advance()}let a=r.substring(i,this.index);return this.advance(),new Be(e,this.index,s+a,W.Plain)}scanQuestion(e){this.advance();let t="?";return(this.peek===Ct||this.peek===z)&&(t+=this.peek===z?".":"?",this.advance()),ee(e,this.index,t)}scanTemplateLiteralPart(e){let t="",s=this.index;for(;this.peek!==Qe;)if(this.peek===Nt){let r=this.scanStringBackslash(t,s);if(typeof r!="string")return r;t=r,s=this.index}else if(this.peek===Ze){let r=this.index;if(this.advance(),this.peek===be)return this.braceStack.push("interpolation"),this.tokens.push(new Be(e,r,t+this.input.substring(s,r),W.TemplateLiteralPart)),this.advance(),ee(r,this.index,this.input.substring(r,this.index))}else{if(this.peek===fe)return this.error("Unterminated template literal",0);this.advance()}let i=this.input.substring(s,this.index);return this.advance(),new Be(e,this.index,t+i,W.TemplateLiteralEnd)}error(e,t){let s=this.index+t;return ir(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}scanStringBackslash(e,t){e+=this.input.substring(t,this.index);let s;if(this.advance(),this.peek===Wi){let i=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(i))s=parseInt(i,16);else return this.error(`Invalid unicode escape [\\u${i}]`,0);for(let r=0;r<5;r++)this.advance()}else s=or(this.peek),this.advance();return e+=String.fromCharCode(s),e}};function $t(e){return ks<=e&&e<=Ls||Os<=e&&e<=bs||e==et||e==Ze}function Ht(e){return qi(e)||K(e)||e==et||e==Ze}function nr(e){return e==Ri||e==Ai}function ar(e){return e==Ts||e==Ps}function or(e){switch(e){case Di:return wi;case Bi:return Ci;case Fi:return Ni;case Vi:return Ss;case _i:return Si;default:return e}}function lr(e){let t=parseInt(e);if(isNaN(t))throw Error("Invalid integer literal when parsing "+e);return t}var ur=class{strings;expressions;offsets;constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}},cr=class{templateBindings;warnings;errors;constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}},st=class{_lexer;errors=[];constructor(e){this._lexer=e}parseAction(e,t,s,i=j){this._checkNoInterpolation(e,t,i);let r=this._stripComments(e),a=this._lexer.tokenize(r),o=new te(e,t,s,a,1,this.errors,0).parseChain();return new U(o,e,t,s,this.errors)}parseBinding(e,t,s,i=j){let r=this._parseBindingAst(e,t,s,i);return new U(r,e,t,s,this.errors)}checkSimpleExpression(e){let t=new hr;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,i=j){let r=this._parseBindingAst(e,t,s,i),a=this.checkSimpleExpression(r);return a.length>0&&this._reportError(`Host binding expression cannot contain ${a.join(" ")}`,e,t),new U(r,e,t,s,this.errors)}_reportError(e,t,s,i){this.errors.push(new We(e,t,s,i))}_parseBindingAst(e,t,s,i){this._checkNoInterpolation(e,t,i);let r=this._stripComments(e),a=this._lexer.tokenize(r);return new te(e,t,s,a,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,i,r){let a=this._lexer.tokenize(t);return new te(t,s,r,a,0,this.errors,0).parseTemplateBindings({source:e,span:new q(i,i+e.length)})}parseInterpolation(e,t,s,i,r=j){let{strings:a,expressions:o,offsets:h}=this.splitInterpolation(e,t,i,r);if(o.length===0)return null;let p=[];for(let f=0;f<o.length;++f){let E=o[f].text,w=this._stripComments(E),T=this._lexer.tokenize(w),N=new te(e,t,s,T,0,this.errors,h[f]).parseChain();p.push(N)}return this.createInterpolationAst(a.map((f)=>f.text),p,e,t,s)}parseInterpolationExpression(e,t,s){let i=this._stripComments(e),r=this._lexer.tokenize(i),a=new te(e,t,s,r,0,this.errors,0).parseChain(),o=["",""];return this.createInterpolationAst(o,[a],e,t,s)}createInterpolationAst(e,t,s,i,r){let a=new he(0,s.length),o=new xs(a,a.toAbsolute(r),e,t);return new U(o,s,i,r,this.errors)}splitInterpolation(e,t,s,i=j){let r=[],a=[],o=[],h=s?pr(s):null,p=0,f=!1,E=!1,{start:w,end:T}=i;for(;p<e.length;)if(f){let N=p,$=N+w.length,H=this._getInterpolationEndIndex(e,T,$);if(H===-1){f=!1,E=!0;break}let _=H+T.length,me=e.substring($,H);me.trim().length===0&&this._reportError("Blank expressions are not allowed in interpolated strings",e,`at column ${p} in`,t),a.push({text:me,start:N,end:_});let Qs=((h==null?void 0:h.get(N))??N)+w.length;o.push(Qs),p=_,f=!1}else{let N=p;p=e.indexOf(w,p),p===-1&&(p=e.length);let $=e.substring(N,p);r.push({text:$,start:N,end:p}),f=!0}if(!f)if(E){let N=r[r.length-1];N.text+=e.substring(p),N.end=e.length}else r.push({text:e.substring(p),start:p,end:e.length});return new ur(r,a,o)}wrapLiteralPrimitive(e,t,s){let i=new he(0,e==null?0:e.length);return new U(new L(i,i.toAbsolute(s),e),e,t,s,this.errors)}_stripComments(e){let t=this._commentStart(e);return t!=null?e.substring(0,t):e}_commentStart(e){let t=null;for(let s=0;s<e.length-1;s++){let i=e.charCodeAt(s),r=e.charCodeAt(s+1);if(i===ze&&r==ze&&t==null)return s;t===i?t=null:t==null&&Pt(i)&&(t=i)}return null}_checkNoInterpolation(e,t,{start:s,end:i}){let r=-1,a=-1;for(let o of this._forEachUnquotedChar(e,0))if(r===-1)e.startsWith(s)&&(r=o);else if(a=this._getInterpolationEndIndex(e,i,o),a>-1)break;r>-1&&a>-1&&this._reportError(`Got interpolation (${s}${i}) where expression was expected`,e,`at column ${r} in`,t)}_getInterpolationEndIndex(e,t,s){for(let i of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,i))return i;if(e.startsWith("//",i))return e.indexOf(t,i)}return-1}*_forEachUnquotedChar(e,t){let s=null,i=0;for(let r=t;r<e.length;r++){let a=e[r];Pt(e.charCodeAt(r))&&(s===null||s===a)&&i%2===0?s=s===null?a:null:s===null&&(yield r),i=a==="\\"?i+1:0}}},Y;(function(e){e[e.None=0]="None",e[e.Writable=1]="Writable"})(Y||(Y={}));var te=class{input;location;absoluteOffset;tokens;parseFlags;errors;offset;rparensExpected=0;rbracketsExpected=0;rbracesExpected=0;context=Y.None;sourceSpanCache=new Map;index=0;constructor(e,t,s,i,r,a,o){this.input=e,this.location=t,this.absoluteOffset=s,this.tokens=i,this.parseFlags=r,this.errors=a,this.offset=o}peek(e){let t=this.index+e;return t<this.tokens.length?this.tokens[t]:ye}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(s=t),e>s){let i=s;s=e,e=i}return new he(e,s)}sourceSpan(e,t){let s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;let s=t();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===ye?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){let s=this.parsePipe();if(e.push(s),this.consumeOptionalCharacter(re))for(this.parseFlags&1||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(re););else if(this.index<this.tokens.length){let i=this.index;if(this.error(`Unexpected token '${this.next}'`),this.index===i)break}}if(e.length===0){let s=this.offset,i=this.offset+this.input.length;return new k(this.span(s,i),this.sourceSpan(s,i))}return e.length==1?e[0]:new us(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.inputIndex,t=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseFlags&1&&this.error("Cannot have a pipe in an action expression");do{let s=this.inputIndex,i=this.expectIdentifierOrKeyword(),r,a;i!==null?r=this.sourceSpan(s):(i="",a=this.next.index!==-1?this.next.index:this.input.length+this.offset,r=new he(a,a).toAbsolute(this.absoluteOffset));let o=[];for(;this.consumeOptionalCharacter(Q);)o.push(this.parseExpression());t=new ms(this.span(e),this.sourceSpan(e,a),t,i,o,r)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){let e=this.inputIndex,t=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let s=this.parsePipe(),i;if(this.consumeOptionalCharacter(Q))i=this.parsePipe();else{let r=this.inputIndex,a=this.input.substring(e,r);this.error(`Conditional expression ${a} requires all 3 expressions`),i=new k(this.span(e),this.sourceSpan(e))}return new cs(this.span(e),this.sourceSpan(e),t,s,i)}else return t}parseLogicalOr(){let e=this.inputIndex,t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let s=this.parseLogicalAnd();t=new A(this.span(e),this.sourceSpan(e),"||",t,s)}return t}parseLogicalAnd(){let e=this.inputIndex,t=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let s=this.parseNullishCoalescing();t=new A(this.span(e),this.sourceSpan(e),"&&",t,s)}return t}parseNullishCoalescing(){let e=this.inputIndex,t=this.parseEquality();for(;this.consumeOptionalOperator("??");){let s=this.parseEquality();t=new A(this.span(e),this.sourceSpan(e),"??",t,s)}return t}parseEquality(){let e=this.inputIndex,t=this.parseRelational();for(;this.next.type==m.Operator;){let s=this.next.strValue;switch(s){case"==":case"===":case"!=":case"!==":this.advance();let i=this.parseRelational();t=new A(this.span(e),this.sourceSpan(e),s,t,i);continue}break}return t}parseRelational(){let e=this.inputIndex,t=this.parseAdditive();for(;this.next.type==m.Operator||this.next.isKeywordIn;){let s=this.next.strValue;switch(s){case"<":case">":case"<=":case">=":case"in":this.advance();let i=this.parseAdditive();t=new A(this.span(e),this.sourceSpan(e),s,t,i);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==m.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let i=this.parseMultiplicative();t=new A(this.span(e),this.sourceSpan(e),s,t,i);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parseExponentiation();for(;this.next.type==m.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let i=this.parseExponentiation();t=new A(this.span(e),this.sourceSpan(e),s,t,i);continue}break}return t}parseExponentiation(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==m.Operator&&this.next.strValue==="**";){(t instanceof ge||t instanceof Pe||t instanceof Te||t instanceof Oe)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let s=this.parseExponentiation();t=new A(this.span(e),this.sourceSpan(e),"**",t,s)}return t}parsePrefix(){if(this.next.type==m.Operator){let e=this.inputIndex,t=this.next.strValue,s;switch(t){case"+":return this.advance(),s=this.parsePrefix(),ge.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),ge.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Pe(this.span(e),this.sourceSpan(e),s)}}else if(this.next.isKeywordTypeof()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Te(this.span(e),this.sourceSpan(e),t)}else if(this.next.isKeywordVoid()){this.advance();let e=this.inputIndex,t=this.parsePrefix();return new Oe(this.span(e),this.sourceSpan(e),t)}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(z))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Ee)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(we)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(we))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(Ee))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new ys(this.span(e),this.sourceSpan(e),t);else if(this.next.isTemplateLiteralEnd())t=this.parseNoInterpolationTaggedTemplateLiteral(t,e);else if(this.next.isTemplateLiteralPart())t=this.parseTaggedTemplateLiteral(t,e);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(Ee)){this.rparensExpected++;let t=this.parsePipe();return this.consumeOptionalCharacter(G)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(G)),this.rparensExpected--,new Es(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isKeywordNull())return this.advance(),new L(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new L(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new L(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new L(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordIn())return this.advance(),new L(this.span(e),this.sourceSpan(e),"in");if(this.next.isKeywordThis())return this.advance(),new vi(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(we)){this.rbracketsExpected++;let t=this.parseExpressionList(ne);return this.rbracketsExpected--,this.expectCharacter(ne),new fs(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(be))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Ie(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new L(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===W.Plain){let t=this.next.toString();return this.advance(),new L(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new k(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new k(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new k(this.span(e),this.sourceSpan(e)))}}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(ie));return t}parseLiteralMap(){let e=[],t=[],s=this.inputIndex;if(this.expectCharacter(be),!this.consumeOptionalCharacter(ae)){this.rbracesExpected++;do{let i=this.inputIndex,r=this.next.isString(),a=this.expectIdentifierOrKeywordOrString(),o={key:a,quoted:r};if(e.push(o),r)this.expectCharacter(Q),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(Q))t.push(this.parsePipe());else{o.isShorthandInitialized=!0;let h=this.span(i),p=this.sourceSpan(i);t.push(new _e(h,p,p,new Ie(h,p),a))}}while(this.consumeOptionalCharacter(ie)&&!this.next.isCharacter(ae));this.rbracesExpected--,this.expectCharacter(ae)}return new vs(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){let i=this.inputIndex,r=this.withContext(Y.Writable,()=>{let h=this.expectIdentifierOrKeyword()??"";return h.length===0&&this.error("Expected identifier for property access",e.span.end),h}),a=this.sourceSpan(i),o;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),o=new k(this.span(t),this.sourceSpan(t))):o=new Ke(this.span(t),this.sourceSpan(t),a,e,r);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new k(this.span(t),this.sourceSpan(t));let h=this.parseConditional();o=new hs(this.span(t),this.sourceSpan(t),a,e,r,h)}else o=new _e(this.span(t),this.sourceSpan(t),a,e,r);return o}parseCall(e,t,s){let i=this.inputIndex;this.rparensExpected++;let r=this.parseCallArguments(),a=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(G),this.rparensExpected--;let o=this.span(t),h=this.sourceSpan(t);return s?new $e(o,h,e,r,a):new gs(o,h,e,r,a)}parseCallArguments(){if(this.next.isCharacter(G))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(ie));return e}expectTemplateBindingKey(){let e="",t=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new q(s,s+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index<this.tokens.length;){let s=this.parseLetBinding();if(s)t.push(s);else{let i=this.expectTemplateBindingKey(),r=this.parseAsBinding(i);r?t.push(r):(i.source=e.source+i.source.charAt(0).toUpperCase()+i.source.substring(1),t.push(...this.parseDirectiveKeywordBindings(i)))}this.consumeStatementTerminator()}return new cr(t,[],this.errors)}parseKeyedReadOrWrite(e,t,s){return this.withContext(Y.Writable,()=>{this.rbracketsExpected++;let i=this.parsePipe();if(i instanceof k&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(ne),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let r=this.parseConditional();return new ds(this.span(t),this.sourceSpan(t),e,i,r)}else return s?new qe(this.span(t),this.sourceSpan(t),e,i):new ps(this.span(t),this.sourceSpan(t),e,i);return new k(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(Q);let s=this.getDirectiveBoundTarget(),i=this.currentAbsoluteOffset,r=this.parseAsBinding(e);r||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);let a=new q(e.span.start,i);return t.push(new ws(a,e,s)),r&&t.push(r),t}getDirectiveBoundTarget(){if(this.next===ye||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:s}=e.span,i=this.input.substring(t,s);return new U(e,i,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new q(e.span.start,this.currentAbsoluteOffset);return new Ge(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let i=new q(e,this.currentAbsoluteOffset);return new Ge(i,t,s)}parseNoInterpolationTaggedTemplateLiteral(e,t){let s=this.parseNoInterpolationTemplateLiteral();return new He(this.span(t),this.sourceSpan(t),e,s)}parseNoInterpolationTemplateLiteral(){let e=this.next.strValue,t=this.inputIndex;this.advance();let s=this.span(t),i=this.sourceSpan(t);return new Ue(s,i,[new je(s,i,e)],[])}parseTaggedTemplateLiteral(e,t){let s=this.parseTemplateLiteral();return new He(this.span(t),this.sourceSpan(t),e,s)}parseTemplateLiteral(){let e=[],t=[],s=this.inputIndex;for(;this.next!==ye;){let i=this.next;if(i.isTemplateLiteralPart()||i.isTemplateLiteralEnd()){let r=this.inputIndex;if(this.advance(),e.push(new je(this.span(r),this.sourceSpan(r),i.strValue)),i.isTemplateLiteralEnd())break}else if(i.isTemplateLiteralInterpolationStart()){this.advance();let r=this.parsePipe();r instanceof k?this.error("Template literal interpolation cannot be empty"):t.push(r)}else this.advance()}return new Ue(this.span(s),this.sourceSpan(s),e,t)}consumeStatementTerminator(){this.consumeOptionalCharacter(re)||this.consumeOptionalCharacter(ie)}error(e,t=null){this.errors.push(new We(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),e<this.tokens.length?`at column ${this.tokens[e].index+1} in`:"at the end of the expression"}_reportErrorForPrivateIdentifier(e,t){let s=`Private identifiers are not supported. Unexpected private identifier: ${e}`;t!==null&&(s+=`, ${t}`),this.error(s)}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(re)&&!e.isOperator("|")&&(this.rparensExpected<=0||!e.isCharacter(G))&&(this.rbracesExpected<=0||!e.isCharacter(ae))&&(this.rbracketsExpected<=0||!e.isCharacter(ne))&&(!(this.context&Y.Writable)||!e.isOperator("="));)this.next.isError()&&this.errors.push(new We(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}},hr=class extends xi{errors=[];visitPipe(){this.errors.push("pipes")}};function pr(e){let t=new Map,s=0,i=0,r=0;for(;r<e.length;){let a=e[r];if(a.type===9){let[o,h]=a.parts;s+=h.length,i+=o.length}else{let o=a.parts.reduce((h,p)=>h+p.length,0);i+=o,s+=o}t.set(i,s),r++}return t}var dr=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),fn=Array.from(dr).reduce((e,[t,s])=>(e.set(t,s),e),new Map),vn=new st(new _s);function B(e){return(t)=>t.kind===e}function oe(e,t){return(s)=>s.kind===e&&t===s.expression instanceof Vs}function mr(e){return(e.kind===d.Property||e.kind===d.TwoWayProperty)&&!(e.expression instanceof Vs)}var xn=[{test:B(d.StyleMap),transform:ke},{test:B(d.ClassMap),transform:ke},{test:B(d.StyleProp)},{test:B(d.ClassProp)},{test:oe(d.Attribute,!0)},{test:oe(d.Property,!0)},{test:mr},{test:oe(d.Attribute,!1)}],yn=[{test:oe(d.DomProperty,!0)},{test:oe(d.DomProperty,!1)},{test:B(d.Attribute)},{test:B(d.StyleMap),transform:ke},{test:B(d.ClassMap),transform:ke},{test:B(d.StyleProp)},{test:B(d.ClassProp)}],gn=new Set([d.Listener,d.TwoWayListener,d.StyleMap,d.ClassMap,d.StyleProp,d.ClassProp,d.Property,d.TwoWayProperty,d.DomProperty,d.Attribute]);function ke(e){return e.slice(e.length-1)}var En={constant:[c.interpolate,c.interpolate1,c.interpolate2,c.interpolate3,c.interpolate4,c.interpolate5,c.interpolate6,c.interpolate7,c.interpolate8],variable:c.interpolateV,mapping:(e)=>{if(e%2===0)throw Error("Expected odd number of arguments");return(e-1)/2}},wn=new Map([["window",c.resolveWindow],["document",c.resolveDocument],["body",c.resolveBody]]),Sn=new Map([[R.HTML,c.sanitizeHtml],[R.RESOURCE_URL,c.sanitizeResourceUrl],[R.SCRIPT,c.sanitizeScript],[R.STYLE,c.sanitizeStyle],[R.URL,c.sanitizeUrl]]),Cn=new Map([[R.HTML,c.trustConstantHtml],[R.RESOURCE_URL,c.trustConstantResourceUrl]]),Ut;(function(e){e[e.None=0]="None",e[e.ViewContextRead=1]="ViewContextRead",e[e.ViewContextWrite=2]="ViewContextWrite",e[e.SideEffectful=4]="SideEffectful"})(Ut||(Ut={}));var Nn=new Map([[F.Property,V.Property],[F.TwoWay,V.TwoWayProperty],[F.Attribute,V.Attribute],[F.Class,V.ClassName],[F.Style,V.StyleProperty],[F.Animation,V.Animation]]),In=Symbol("queryAdvancePlaceholder"),jt;(function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"})(jt||(jt={}));var Gt;(function(e){e.IDLE="idle",e.TIMER="timer",e.INTERACTION="interaction",e.IMMEDIATE="immediate",e.HOVER="hover",e.VIEWPORT="viewport",e.NEVER="never"})(Gt||(Gt={}));var Ks="%COMP%",Pn=`_nghost-${Ks}`,Tn=`_ngcontent-${Ks}`,zt;(function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"})(zt||(zt={}));var On=new fi("20.0.5");function Qt({start:e,end:t},s){let i=e,r=t;for(;r!==i&&/\s/.test(s[r-1]);)r--;for(;i!==r&&/\s/.test(s[i]);)i++;return{start:i,end:r}}function fr({start:e,end:t},s){let i=e,r=t;for(;r!==s.length&&/\s/.test(s[r]);)r++;for(;i!==0&&/\s/.test(s[i-1]);)i--;return{start:i,end:r}}function vr(e,t){return t[e.start-1]==="("&&t[e.end]===")"?{start:e.start-1,end:e.end+1}:e}function xr(e,t,s){let i=0,r={start:e.start,end:e.end};for(;;){let a=fr(r,t),o=vr(a,t);if(a.start===o.start&&a.end===o.end)break;r.start=o.start,r.end=o.end,i++}return{hasParens:(s?i-1:i)!==0,outerSpan:Qt(s?{start:r.start+1,end:r.end-1}:r,t),innerSpan:Qt(e,t)}}function qs(e){return typeof e=="string"?(t)=>t===e:(t)=>e.test(t)}function yr(e,t,s){let i=qs(t);for(let r=s;r>=0;r--){let a=e[r];if(i(a))return r}throw Error(`Cannot find front char ${t} from index ${s} in ${JSON.stringify(e)}`)}function gr(e,t,s){let i=qs(t);for(let r=s;r<e.length;r++){let a=e[r];if(i(a))return r}throw Error(`Cannot find character ${t} from index ${s} in ${JSON.stringify(e)}`)}function Er(e){return e.slice(0,1).toLowerCase()+e.slice(1)}function Xe(e){let{start:t,end:s}=e;return{start:t,end:s,range:[t,s]}}var wr=(e)=>st.prototype._commentStart(e);function Sr(e,t){let s=t?wr(e):null;if(s===null)return{text:e,comments:[]};let i={type:"CommentLine",value:e.slice(s+2),...Xe({start:s,end:e.length})};return{text:e.slice(0,s),comments:[i]}}function de(e,t=!0){return(s)=>{let i=new _s,r=new st(i),{text:a,comments:o}=Sr(s,t),h=e(a,r);if(h.errors.length!==0){let[{message:p}]=h.errors;throw SyntaxError(p.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}return{result:h,comments:o,text:a}}}var Cr=de((e,t)=>t.parseBinding(e,"",0)),bn=de((e,t)=>t.parseSimpleBinding(e,"",0)),Nr=de((e,t)=>t.parseAction(e,"",0)),Ir=de((e,t)=>t.parseInterpolationExpression(e,"",0)),Pr=de((e,t)=>t.parseTemplateBindings("",e,"",0,0),!1),Tr=(e,t,s)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[s<0?t.length+s:s]:t.at(s)},$s=Tr,Or=class{text;constructor(e){this.text=e}getCharacterIndex(e,t){return gr(this.text,e,t)}getCharacterLastIndex(e,t){return yr(this.text,e,t)}transformSpan(e,{stripSpaces:t=!1,hasParentParens:s=!1}={}){if(!t)return Xe(e);let{outerSpan:i,innerSpan:r,hasParens:a}=xr(e,this.text,s),o=Xe(r);return a&&(o.extra={parenthesized:!0,parenStart:i.start,parenEnd:i.end}),o}createNode(e,{stripSpaces:t=!0,hasParentParens:s=!1}={}){let{type:i,start:r,end:a}=e,o={...e,...this.transformSpan({start:r,end:a},{stripSpaces:t,hasParentParens:s})};switch(i){case"NumericLiteral":case"StringLiteral":{let h=this.text.slice(o.start,o.end),{value:p}=o;o.extra={...o.extra,raw:h,rawValue:p};break}case"ObjectProperty":{let{shorthand:h}=o;h&&(o.extra={...o.extra,shorthand:h});break}}return o}},br=Or;function it(e){var t;return!!((t=e.extra)!=null&&t.parenthesized)}function O(e){return it(e)?e.extra.parenStart:e.start}function b(e){return it(e)?e.extra.parenEnd:e.end}function Yt(e){return(e.type==="OptionalCallExpression"||e.type==="OptionalMemberExpression")&&!it(e)}function Xt(e,t){let{start:s,end:i}=e.sourceSpan;return s>=i||/^\s+$/.test(t.slice(s,i))}var Se,le,u,v,se,x,Ce,Hs=class extends br{constructor(e,t){super(t);J(this,u),J(this,Se),J(this,le),Ne(this,Se,e),Ne(this,le,t)}get node(){return l(this,u,x).call(this,M(this,Se))}transformNode(e){return l(this,u,Ce).call(this,e)}};Se=new WeakMap,le=new WeakMap,u=new WeakSet,v=function(e,{stripSpaces:t=!0,hasParentParens:s=!1}={}){return this.createNode(e,{stripSpaces:t,hasParentParens:s})},se=function(e,t,{computed:s,optional:i,end:r=b(t),hasParentParens:a=!1}){if(Xt(e,M(this,le))||e.sourceSpan.start===t.start)return t;let o=l(this,u,x).call(this,e),h=Yt(o);return l(this,u,v).call(this,{type:i||h?"OptionalMemberExpression":"MemberExpression",object:o,property:t,computed:s,...i?{optional:!0}:h?{optional:!1}:void 0,start:O(o),end:r},{hasParentParens:a})},x=function(e,t){return l(this,u,Ce).call(this,e,t)},Ce=function(e,t){let{isInParentParens:s}={isInParentParens:!1,...t};if(e instanceof xs){let{expressions:i}=e;if(i.length!==1)throw Error("Unexpected 'Interpolation'");return l(this,u,x).call(this,i[0])}if(e instanceof ge)return l(this,u,v).call(this,{type:"UnaryExpression",prefix:!0,argument:l(this,u,x).call(this,e.expr),operator:e.operator,...e.sourceSpan},{hasParentParens:s});if(e instanceof A){let{left:i,operation:r,right:a}=e,o=l(this,u,x).call(this,i),h=l(this,u,x).call(this,a),p=O(o),f=b(h),E={left:o,right:h,start:p,end:f};return r==="&&"||r==="||"||r==="??"?l(this,u,v).call(this,{...E,type:"LogicalExpression",operator:r},{hasParentParens:s}):l(this,u,v).call(this,{...E,type:"BinaryExpression",operator:r},{hasParentParens:s})}if(e instanceof ms){let{exp:i,name:r,args:a}=e,o=l(this,u,x).call(this,i),h=O(o),p=b(o),f=this.getCharacterIndex(/\S/,this.getCharacterIndex("|",p)+1),E=l(this,u,v).call(this,{type:"Identifier",name:r,start:f,end:f+r.length}),w=a.map((T)=>l(this,u,x).call(this,T));return l(this,u,v).call(this,{type:"NGPipeExpression",left:o,right:E,arguments:w,start:h,end:b(w.length===0?E:$s(!1,w,-1))},{hasParentParens:s})}if(e instanceof us)return l(this,u,v).call(this,{type:"NGChainedExpression",expressions:e.expressions.map((i)=>l(this,u,x).call(this,i)),...e.sourceSpan},{hasParentParens:s});if(e instanceof cs){let{condition:i,trueExp:r,falseExp:a}=e,o=l(this,u,x).call(this,i),h=l(this,u,x).call(this,r),p=l(this,u,x).call(this,a);return l(this,u,v).call(this,{type:"ConditionalExpression",test:o,consequent:h,alternate:p,start:O(o),end:b(p)},{hasParentParens:s})}if(e instanceof k)return l(this,u,v).call(this,{type:"NGEmptyExpression",...e.sourceSpan},{hasParentParens:s});if(e instanceof Ie)return l(this,u,v).call(this,{type:"ThisExpression",...e.sourceSpan},{hasParentParens:s});if(e instanceof ps||e instanceof qe)return l(this,u,se).call(this,e.receiver,l(this,u,x).call(this,e.key),{computed:!0,optional:e instanceof qe,end:e.sourceSpan.end,hasParentParens:s});if(e instanceof fs)return l(this,u,v).call(this,{type:"ArrayExpression",elements:e.expressions.map((i)=>l(this,u,x).call(this,i)),...e.sourceSpan},{hasParentParens:s});if(e instanceof vs){let{keys:i,values:r}=e,a=r.map((h)=>l(this,u,x).call(this,h)),o=i.map(({key:h,quoted:p},f)=>{let E=a[f],w=O(E),T=b(E),N=this.getCharacterIndex(/\S/,f===0?e.sourceSpan.start+1:this.getCharacterIndex(",",b(a[f-1]))+1),$=w===N?T:this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex(":",w-1)-1)+1,H={start:N,end:$},_=p?l(this,u,v).call(this,{type:"StringLiteral",value:h,...H}):l(this,u,v).call(this,{type:"Identifier",name:h,...H}),me=_.end<_.start||N===w;return l(this,u,v).call(this,{type:"ObjectProperty",key:_,value:E,shorthand:me,computed:!1,start:O(_),end:T})});return l(this,u,v).call(this,{type:"ObjectExpression",properties:o,...e.sourceSpan},{hasParentParens:s})}if(e instanceof L){let{value:i}=e;switch(typeof i){case"boolean":return l(this,u,v).call(this,{type:"BooleanLiteral",value:i,...e.sourceSpan},{hasParentParens:s});case"number":return l(this,u,v).call(this,{type:"NumericLiteral",value:i,...e.sourceSpan},{hasParentParens:s});case"object":return l(this,u,v).call(this,{type:"NullLiteral",...e.sourceSpan},{hasParentParens:s});case"string":return l(this,u,v).call(this,{type:"StringLiteral",value:i,...e.sourceSpan},{hasParentParens:s});case"undefined":return l(this,u,v).call(this,{type:"Identifier",name:"undefined",...e.sourceSpan},{hasParentParens:s});default:throw Error(`Unexpected LiteralPrimitive value type ${typeof i}`)}}if(e instanceof gs||e instanceof $e){let i=e instanceof $e,{receiver:r,args:a}=e,o=a.length===1?[l(this,u,x).call(this,a[0],{isInParentParens:!0})]:a.map((E)=>l(this,u,x).call(this,E)),h=l(this,u,x).call(this,r),p=Yt(h),f=i||p?"OptionalCallExpression":"CallExpression";return l(this,u,v).call(this,{type:f,callee:h,arguments:o,...f==="OptionalCallExpression"?{optional:i}:void 0,start:O(h),end:e.sourceSpan.end},{hasParentParens:s})}if(e instanceof ys){let i=l(this,u,x).call(this,e.expression);return l(this,u,v).call(this,{type:"TSNonNullExpression",expression:i,start:O(i),end:e.sourceSpan.end},{hasParentParens:s})}if(e instanceof Pe||e instanceof Te||e instanceof Oe){let i=e instanceof Pe?"!":e instanceof Te?"typeof":e instanceof Oe?"void":void 0;if(!i)throw Error("Unexpected expression.");let{start:r}=e.sourceSpan;if(i==="typeof"||i==="void"){let o=this.text.lastIndexOf(i,r);if(o===-1)throw Error(`Cannot find operator '${i}' from index ${r} in ${JSON.stringify(this.text)}`);r=o}let a=l(this,u,x).call(this,e.expression);return l(this,u,v).call(this,{type:"UnaryExpression",prefix:!0,operator:i,argument:a,start:r,end:b(a)},{hasParentParens:s})}if(e instanceof _e||e instanceof Ke){let{receiver:i,name:r}=e,a=this.getCharacterLastIndex(/\S/,e.sourceSpan.end-1)+1,o=l(this,u,v).call(this,{type:"Identifier",name:r,start:a-r.length,end:a},Xt(i,M(this,le))?{hasParentParens:s}:{});return l(this,u,se).call(this,i,o,{computed:!1,optional:e instanceof Ke,hasParentParens:s})}if(e instanceof ds){let i=l(this,u,x).call(this,e.key),r=l(this,u,x).call(this,e.value),a=l(this,u,se).call(this,e.receiver,i,{computed:!0,optional:!1,end:this.getCharacterIndex("]",b(i))+1});return l(this,u,v).call(this,{type:"AssignmentExpression",left:a,operator:"=",right:r,start:O(a),end:b(r)},{hasParentParens:s})}if(e instanceof hs){let{receiver:i,name:r,value:a}=e,o=l(this,u,x).call(this,a),h=this.getCharacterLastIndex(/\S/,this.getCharacterLastIndex("=",O(o)-1)-1)+1,p=l(this,u,v).call(this,{type:"Identifier",name:r,start:h-r.length,end:h}),f=l(this,u,se).call(this,i,p,{computed:!1,optional:!1});return l(this,u,v).call(this,{type:"AssignmentExpression",left:f,operator:"=",right:o,start:O(f),end:b(o)},{hasParentParens:s})}if(e instanceof He)return l(this,u,v).call(this,{type:"TaggedTemplateExpression",tag:l(this,u,x).call(this,e.tag),quasi:l(this,u,x).call(this,e.template),...e.sourceSpan});if(e instanceof Ue){let{elements:i,expressions:r}=e;return l(this,u,v).call(this,{type:"TemplateLiteral",quasis:i.map((a)=>l(this,u,x).call(this,a,{parent:e})),expressions:r.map((a)=>l(this,u,x).call(this,a)),...e.sourceSpan})}if(e instanceof je){let{elements:i}=t.parent,r=i.indexOf(e),a=r===0,o=r===i.length-1,h=e.sourceSpan.end-(o?1:0),p=e.sourceSpan.start+(a?1:0),f=this.text.slice(p,h);return l(this,u,v).call(this,{type:"TemplateElement",value:{cooked:e.text,raw:f},start:p,end:h,tail:o},{stripSpaces:!1})}if(e instanceof Es)return l(this,u,Ce).call(this,e.expression);throw Error(`Unexpected node type '${e.constructor.name}'`)};function kr(e,t){return new Hs(e,t).node}function Jt(e){return e instanceof ws}function Zt(e){return e instanceof Ge}var ue,X,y,es,P,De,Fe,Ve,Us,ts,js,ss,Lr=class extends Hs{constructor(e,t){super(void 0,t);J(this,y),J(this,ue),J(this,X),Ne(this,ue,e),Ne(this,X,t);for(let s of e)l(this,y,Us).call(this,s)}get expressions(){return l(this,y,js).call(this)}};ue=new WeakMap,X=new WeakMap,y=new WeakSet,es=function(){return M(this,ue)[0].key},P=function(e,{stripSpaces:t=!0}={}){return this.createNode(e,{stripSpaces:t})},De=function(e){return this.transformNode(e)},Fe=function(e){return Er(e.slice(M(this,y,es).source.length))},Ve=function(e){let t=M(this,X);if(t[e.start]!=='"'&&t[e.start]!=="'")return;let s=t[e.start],i=!1;for(let r=e.start+1;r<t.length;r++)switch(t[r]){case s:if(!i){e.end=r+1;return}default:i=!1;break;case"\\":i=!i;break}},Us=function(e){l(this,y,Ve).call(this,e.key.span),Zt(e)&&e.value&&l(this,y,Ve).call(this,e.value.span)},ts=function(e){if(!e.value||e.value.source)return e.value;let t=this.getCharacterIndex(/\S/,e.sourceSpan.start);return{source:"$implicit",span:{start:t,end:t}}},js=function(){let e=M(this,ue),[t]=e,s=M(this,X).slice(t.sourceSpan.start,t.sourceSpan.end).trim().length===0?e.slice(1):e,i=[],r=null;for(let[a,o]of s.entries()){if(r&&Jt(r)&&Zt(o)&&o.value&&o.value.source===r.key.source){let h=l(this,y,P).call(this,{type:"NGMicrosyntaxKey",name:o.key.source,...o.key.span}),p=(w,T)=>({...w,...this.transformSpan({start:w.start,end:T})}),f=(w)=>({...p(w,h.end),alias:h}),E=i.pop();if(E.type==="NGMicrosyntaxExpression")i.push(f(E));else if(E.type==="NGMicrosyntaxKeyedExpression"){let w=f(E.expression);i.push(p({...E,expression:w},w.end))}else throw Error(`Unexpected type ${E.type}`)}else i.push(l(this,y,ss).call(this,o,a));r=o}return l(this,y,P).call(this,{type:"NGMicrosyntax",body:i,...i.length===0?e[0].sourceSpan:{start:i[0].start,end:$s(!1,i,-1).end}})},ss=function(e,t){if(Jt(e)){let{key:s,value:i}=e;return i?t===0?l(this,y,P).call(this,{type:"NGMicrosyntaxExpression",expression:l(this,y,De).call(this,i.ast),alias:null,...i.sourceSpan}):l(this,y,P).call(this,{type:"NGMicrosyntaxKeyedExpression",key:l(this,y,P).call(this,{type:"NGMicrosyntaxKey",name:l(this,y,Fe).call(this,s.source),...s.span}),expression:l(this,y,P).call(this,{type:"NGMicrosyntaxExpression",expression:l(this,y,De).call(this,i.ast),alias:null,...i.sourceSpan}),start:s.span.start,end:i.sourceSpan.end}):l(this,y,P).call(this,{type:"NGMicrosyntaxKey",name:l(this,y,Fe).call(this,s.source),...s.span})}else{let{key:s,sourceSpan:i}=e;if(/^let\s$/.test(M(this,X).slice(i.start,i.start+4))){let{value:r}=e;return l(this,y,P).call(this,{type:"NGMicrosyntaxLet",key:l(this,y,P).call(this,{type:"NGMicrosyntaxKey",name:s.source,...s.span}),value:r?l(this,y,P).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}):null,start:i.start,end:r?r.span.end:s.span.end})}else{let r=l(this,y,ts).call(this,e);return l(this,y,P).call(this,{type:"NGMicrosyntaxAs",key:l(this,y,P).call(this,{type:"NGMicrosyntaxKey",name:r.source,...r.span}),alias:l(this,y,P).call(this,{type:"NGMicrosyntaxKey",name:s.source,...s.span}),start:r.span.start,end:s.span.end})}}};function Ar(e,t){return new Lr(e,t).expressions}function rt({result:{ast:e},text:t,comments:s}){return Object.assign(kr(e,t),{comments:s})}function Mr({result:{templateBindings:e},text:t}){return Ar(e,t)}var Rr=(e)=>rt(Cr(e)),Br=(e)=>rt(Ir(e)),Gs=(e)=>rt(Nr(e)),Dr=(e)=>Mr(Pr(e));function zs(e){var t,s,i;let r=((t=e.range)==null?void 0:t[0])??e.start,a=(i=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:i[0];return a?Math.min(zs(a),r):r}function Fr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Re(e){return{astFormat:"estree",parse(t){let s=e(t);return{type:"NGRoot",node:e===Gs&&s.type!=="NGChainedExpression"?{...s,type:"NGChainedExpression",expressions:[s]}:s}},locStart:zs,locEnd:Fr}}var Vr=Re(Gs),Wr=Re(Rr),_r=Re(Br),Kr=Re(Dr),kn=ns;export{as as parsers,kn as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ud as n}from"./chunk-fpzkyzny.js";import{fe as i}from"./chunk-w8nj5ph5.js";import{Ah as r,Ng as y,Og as w,Xg as R,oh as K,ph as X}from"./chunk-fd04358e.js";import"./chunk-qn1fhqyw.js";import"./chunk-674pexjx.js";import"./chunk-zjyaze0d.js";import"./chunk-xdcwx384.js";import"./chunk-rd08wx37.js";import"./chunk-fp2xgnjn.js";import{Mj as V,Nj as W,Qj as C,Sk as J,Yj as M,bl as Y,cl as F,wk as g}from"./chunk-y1v7mf1a.js";import"./chunk-358wdvj7.js";import{Kl as E,Ml as u}from"./chunk-dn0437c1.js";import"./chunk-47jkx37s.js";import"./chunk-31a47ptm.js";import"./chunk-jwv6fda1.js";import"./chunk-hx13a8es.js";import"./chunk-h036zy9e.js";import"./chunk-j3agzs13.js";import"./chunk-3152y1q9.js";import"./chunk-71jmhvef.js";import"./chunk-qrztx1b4.js";import"./chunk-j1bv93m4.js";import"./chunk-pp10epga.js";import"./chunk-crqycrs4.js";import"./chunk-1bq15kf0.js";import"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import"./chunk-m6967jtv.js";import"./chunk-j2snkw45.js";import"./chunk-bmdqb48f.js";import"./chunk-3cs1qf8x.js";import"./chunk-4xqwt6dr.js";import"./chunk-g77kddrs.js";import"./chunk-9znfb8f2.js";import"./chunk-6kch0q2d.js";import"./chunk-6cztstry.js";import{Is as U}from"./chunk-1mfdmm2t.js";import"./chunk-fkq0v5qv.js";import"./chunk-1e75j4m1.js";import"./chunk-2w3n0q9m.js";import"./chunk-6dd2dx69.js";import"./chunk-fdmz0502.js";import"./chunk-1a08ffyd.js";import{Bt as z,Ct as B,Dt as _,Ft as H}from"./chunk-8jkqyf9n.js";import"./chunk-6yshpz0z.js";import{Yt as S}from"./chunk-5dvy83ms.js";import{mu as oo}from"./chunk-ffx0cr44.js";import"./chunk-33mzqyyb.js";import"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-wfpnv00c.js";import{ZK as x,gI as d}from"./chunk-9kc2th5c.js";import"./chunk-hf39qx6t.js";import"./chunk-x0de4z05.js";import{AP as P,zP as v}from"./chunk-sh03ka27.js";import{EOL as to}from"os";var I=i({command:"config",describe:"show resolved configuration",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(F.Service.use((e)=>e.get()));process.stdout.write(JSON.stringify(o,null,2)+to)})}});import{EOL as b}from"os";var io=i({command:"search <query>",describe:"search files by query",builder:(o)=>o.positional("query",{type:"string",demandOption:!0,description:"Search query"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.search({query:o.query})));process.stdout.write(e.join(b)+b)})}}),ro=i({command:"read <path>",describe:"read file contents as JSON",builder:(o)=>o.positional("path",{type:"string",demandOption:!0,description:"File path to read"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.read(o.path)));process.stdout.write(JSON.stringify(e,null,2)+b)})}}),no=i({command:"status",describe:"show file status information",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(w.Service.use((e)=>e.status()));process.stdout.write(JSON.stringify(o,null,2)+b)})}}),so=i({command:"list <path>",describe:"list files in a directory",builder:(o)=>o.positional("path",{type:"string",demandOption:!0,description:"File path to list"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.list(o.path)));process.stdout.write(JSON.stringify(e,null,2)+b)})}}),mo=i({command:"tree [dir]",describe:"show directory tree",builder:(o)=>o.positional("dir",{type:"string",description:"Directory to tree",default:process.cwd()}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.tree({cwd:o.dir,limit:200})));console.log(JSON.stringify(e,null,2))})}}),L=i({command:"file",describe:"file system debugging utilities",builder:(o)=>o.command(ro).command(no).command(so).command(io).command(mo).demandCommand(),async handler(){}});import{EOL as A}from"os";var q=i({command:"lsp",describe:"LSP debugging utilities",builder:(o)=>o.command(ao).command(co).command(lo).demandCommand(),async handler(){}}),ao=i({command:"diagnostics <file>",describe:"get diagnostics for a file",builder:(o)=>o.positional("file",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(C.Service.use((t)=>d.gen(function*(){return yield*t.touchFile(o.file,!0),yield*d.sleep(1000),yield*t.diagnostics()})));process.stdout.write(JSON.stringify(e,null,2)+A)})}}),co=i({command:"symbols <query>",describe:"search workspace symbols",builder:(o)=>o.positional("query",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let s=[];try{const e=v(s,S.Default.time("symbols"),0);let t=await r.runPromise(C.Service.use((m)=>m.workspaceSymbol(o.query)));process.stdout.write(JSON.stringify(t,null,2)+A)}catch(a){var c=a,l=1}finally{P(s,c,l)}})}}),lo=i({command:"document-symbols <uri>",describe:"get symbols from a document",builder:(o)=>o.positional("uri",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let s=[];try{const e=v(s,S.Default.time("document-symbols"),0);let t=await r.runPromise(C.Service.use((m)=>m.documentSymbol(o.uri)));process.stdout.write(JSON.stringify(t,null,2)+A)}catch(a){var c=a,l=1}finally{P(s,c,l)}})}});import{EOL as O}from"os";var k=i({command:"rg",describe:"ripgrep debugging utilities",builder:(o)=>o.command(po).command(uo).command(fo).demandCommand(),async handler(){}}),po=i({command:"tree",describe:"show file tree using ripgrep",builder:(o)=>o.option("limit",{type:"number"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.tree({cwd:u.directory,limit:o.limit})));process.stdout.write(e+O)})}}),uo=i({command:"files",describe:"list files using ripgrep",builder:(o)=>o.option("query",{type:"string",description:"Filter files by query"}).option("glob",{type:"string",description:"Glob pattern to match files"}).option("limit",{type:"number",description:"Limit number of results"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(d.gen(function*(){return yield*(yield*y.Service).files({cwd:u.directory,glob:o.glob?[o.glob]:void 0}).pipe(x.take(o.limit??1/0),x.runCollect,d.map((s)=>[...s]))}));process.stdout.write(e.join(O)+O)})}}),fo=i({command:"search <pattern>",describe:"search file contents using ripgrep",builder:(o)=>o.positional("pattern",{type:"string",demandOption:!0,description:"Search pattern"}).option("glob",{type:"array",description:"File glob patterns"}).option("limit",{type:"number",description:"Limit number of results"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.search({cwd:u.directory,pattern:o.pattern,glob:o.glob,limit:o.limit})));process.stdout.write(JSON.stringify(e.items,null,2)+O)})}});import{EOL as yo}from"os";var T=i({command:"scrap",describe:"list all known projects",builder:(o)=>o,async handler(){let o=S.Default.time("scrap"),e=await E.list();process.stdout.write(JSON.stringify(e,null,2)+yo),o.stop()}});import{EOL as go}from"os";var $=i({command:"skill",describe:"list all available skills",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(d.gen(function*(){return yield*(yield*R.Service).all()}));process.stdout.write(JSON.stringify(o,null,2)+go)})}});var j=i({command:"snapshot",describe:"snapshot debugging utilities",builder:(o)=>o.command(bo).command(wo).command(So).demandCommand(),async handler(){}}),D=(o)=>n(process.cwd(),async()=>{console.log(await r.runPromise(M.Service.use(o)))}),G=(o)=>o.positional("hash",{type:"string",description:"hash",demandOption:!0}),bo=i({command:"track",describe:"track current snapshot state",async handler(){await D((o)=>o.track())}}),wo=i({command:"patch <hash>",describe:"show patch for a snapshot hash",builder:G,async handler(o){await D((e)=>e.patch(o.hash))}}),So=i({command:"diff <hash>",describe:"show diff for a snapshot hash",builder:G,async handler(o){await D((e)=>e.diff(o.hash))}});import{EOL as h}from"os";import{basename as ho}from"path";var Z=i({command:"agent <name>",describe:"show agent configuration details",builder:(o)=>o.positional("name",{type:"string",demandOption:!0,description:"Agent name"}).option("tool",{type:"string",description:"Tool id to execute"}).option("params",{type:"string",description:"Tool params as a JSON object"}),async handler(o){await n(process.cwd(),async()=>{let e=o.name,t=await r.runPromise(X.Service.use((m)=>m.get(e)));if(!t)process.stderr.write(`Agent ${e} not found, run '${ho(process.execPath)} agent list' to get an agent list`+h),process.exit(1);let s=await Co(t),a=await Oo(t,s),c=o.tool;if(c){let m=s.find((eo)=>eo.id===c);if(!m)process.stderr.write(`Tool ${c} not found for agent ${e}`+h),process.exit(1);if(a[c]===!1)process.stderr.write(`Tool ${c} is disabled for agent ${e}`+h),process.exit(1);let p=vo(o.params),f=await Po(t),N=await m.execute(p,f);process.stdout.write(JSON.stringify({tool:c,input:p,result:N},null,2)+h);return}let l={...t,tools:a};process.stdout.write(JSON.stringify(l,null,2)+h)})}});async function Co(o){return r.runPromise(d.gen(function*(){let e=yield*J.Service,t=yield*K.Service,s=o.model??(yield*e.defaultModel());return yield*t.tools({...s,agent:o})}))}async function Oo(o,e){let t=g.disabled(e.map((a)=>a.id),o.permission),s={};for(let a of e)s[a.id]=!t.has(a.id);return s}function vo(o){if(!o)return{};let e=o.trim();if(e.length===0)return{};let t=(()=>{try{return JSON.parse(e)}catch{throw Error("Failed to parse --params. Provide a valid JSON object.")}})();if(!t||typeof t!=="object"||Array.isArray(t))throw Error("Tool params must be an object.");return t}async function Po(o){let{session:e,messageID:t}=await r.runPromise(d.gen(function*(){let a=yield*Y.Service,c=yield*a.create({title:`Debug tool run (${o.name})`}),l=V.ascending(),m=o.model?o.model:yield*d.gen(function*(){return yield*(yield*J.Service).defaultModel()}),p=Date.now(),f={id:l,sessionID:c.id,role:"assistant",time:{created:p},parentID:l,modelID:m.modelID,providerID:m.providerID,mode:"debug",agent:o.name,path:{cwd:u.directory,root:u.worktree},cost:0,tokens:{input:0,output:0,reasoning:0,cache:{read:0,write:0}}};return yield*a.updateMessage(f),{session:c,messageID:l}})),s=g.merge(o.permission,e.permission??[]);return{sessionID:e.id,messageID:t,callID:W.ascending(),agent:o.name,abort:new AbortController().signal,messages:[],metadata:()=>d.void,ask(a){return d.sync(()=>{for(let c of a.patterns)if(g.evaluate(a.permission,c,s).action==="deny")throw new g.DeniedError({ruleset:s})})}}}var Q=i({command:"worker-smoke",describe:"start the TUI background worker and verify it initialises",builder:(o)=>o.option("timeout",{type:"number",describe:"milliseconds to wait for the worker to answer",default:30000}),handler:async(o)=>{let e=typeof globalThis.QITQODE_WORKER_PATH<"u"?globalThis.QITQODE_WORKER_PATH:new URL("../tui/worker.ts",import.meta.url),t=H({[B]:"worker",[z]:_()}),s=new Worker(e,{env:t}),a=new Promise((m,p)=>{s.onerror=(f)=>{p(Error(`worker crashed during startup: ${f.message||String(f.error??"unknown error")}`))},s.addEventListener("close",()=>{p(Error("worker exited before answering ping"))})}),c=new Promise((m,p)=>{setTimeout(()=>p(Error(`worker did not answer ping within ${o.timeout}ms`)),o.timeout)}),l=U(s);try{let m=await Promise.race([l.call("ping",void 0),a,c]);if(m!=="pong")throw Error(`worker answered ping with unexpected reply: ${JSON.stringify(m)}`);console.log("worker initialised: ping ok"),process.exit(0)}catch(m){console.error(m instanceof Error?m.message:String(m)),process.exit(1)}}});var Be=i({command:"debug",describe:"debugging and troubleshooting tools",builder:(o)=>o.command(I).command(q).command(k).command(L).command(T).command($).command(j).command(Z).command(Q).command(Ao).command({command:"wait",describe:"wait indefinitely (for debugging)",async handler(){await n(process.cwd(),async()=>{await new Promise((e)=>setTimeout(e,86400000))})}}).demandCommand(),async handler(){}}),Ao=i({command:"paths",describe:"show global paths (data, config, cache, state)",handler(){for(let[o,e]of Object.entries(oo.Path))console.log(o.padEnd(10),e)}});export{Be as DebugCommand};
|
|
2
|
+
import{Vd as n}from"./chunk-kevhkmn2.js";import{ge as i}from"./chunk-sqrx9csx.js";import{Bh as r,Og as y,Pg as w,Yg as R,ph as K,qh as X}from"./chunk-p76c9s6g.js";import"./chunk-az2pxgx6.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-vr222v2n.js";import"./chunk-6vpc1y3w.js";import{Nj as V,Oj as W,Rj as C,Tk as J,Zj as M,cl as Y,dl as F,xk as g}from"./chunk-j95mkzwg.js";import"./chunk-tatecas7.js";import{Ll as E,Nl as u}from"./chunk-52n4tdeh.js";import"./chunk-ft4msj4z.js";import"./chunk-m8djypsy.js";import"./chunk-m0f6cf9n.js";import"./chunk-n7ewvphw.js";import"./chunk-ya7wrt5f.js";import"./chunk-wf18y499.js";import"./chunk-4bp91rza.js";import"./chunk-6vxddv5w.js";import"./chunk-dwza14dk.js";import"./chunk-vey57h4x.js";import"./chunk-40pe0tde.js";import"./chunk-d4y5hyjg.js";import"./chunk-q0pd8bac.js";import"./chunk-4dy64hgp.js";import"./chunk-cqtkxwd8.js";import"./chunk-gt10s0ks.js";import"./chunk-z9k4506p.js";import"./chunk-yxsc90ba.js";import"./chunk-vk8gxf4y.js";import"./chunk-jr622341.js";import"./chunk-xzshjp04.js";import"./chunk-pyt4xpze.js";import"./chunk-52f62kr0.js";import"./chunk-svnhycdw.js";import"./chunk-9skj2w9e.js";import{mu as U}from"./chunk-m5r6zq6v.js";import"./chunk-vg9ec44m.js";import"./chunk-e826jvr2.js";import"./chunk-4gv7nsdd.js";import"./chunk-afagt413.js";import"./chunk-76jbys6j.js";import"./chunk-9exxjnxc.js";import{fv as z,gv as B,hv as _,jv as H}from"./chunk-dm7hfb7f.js";import"./chunk-s5taq9jy.js";import{Cv as S}from"./chunk-62mb6wxm.js";import{Sv as oo}from"./chunk-zg72kz2k.js";import"./chunk-kr7t73tg.js";import"./chunk-9tfm1dk2.js";import"./chunk-x2mbre12.js";import"./chunk-sprbs7aj.js";import{DM as x,MJ as d}from"./chunk-qvnsgyfk.js";import"./chunk-zezz8xfw.js";import"./chunk-bkqemdv8.js";import{dR as v,eR as P}from"./chunk-pfx8ts02.js";import{EOL as to}from"os";var I=i({command:"config",describe:"show resolved configuration",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(F.Service.use((e)=>e.get()));process.stdout.write(JSON.stringify(o,null,2)+to)})}});import{EOL as b}from"os";var io=i({command:"search <query>",describe:"search files by query",builder:(o)=>o.positional("query",{type:"string",demandOption:!0,description:"Search query"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.search({query:o.query})));process.stdout.write(e.join(b)+b)})}}),ro=i({command:"read <path>",describe:"read file contents as JSON",builder:(o)=>o.positional("path",{type:"string",demandOption:!0,description:"File path to read"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.read(o.path)));process.stdout.write(JSON.stringify(e,null,2)+b)})}}),no=i({command:"status",describe:"show file status information",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(w.Service.use((e)=>e.status()));process.stdout.write(JSON.stringify(o,null,2)+b)})}}),so=i({command:"list <path>",describe:"list files in a directory",builder:(o)=>o.positional("path",{type:"string",demandOption:!0,description:"File path to list"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.list(o.path)));process.stdout.write(JSON.stringify(e,null,2)+b)})}}),mo=i({command:"tree [dir]",describe:"show directory tree",builder:(o)=>o.positional("dir",{type:"string",description:"Directory to tree",default:process.cwd()}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.tree({cwd:o.dir,limit:200})));console.log(JSON.stringify(e,null,2))})}}),L=i({command:"file",describe:"file system debugging utilities",builder:(o)=>o.command(ro).command(no).command(so).command(io).command(mo).demandCommand(),async handler(){}});import{EOL as A}from"os";var q=i({command:"lsp",describe:"LSP debugging utilities",builder:(o)=>o.command(ao).command(co).command(lo).demandCommand(),async handler(){}}),ao=i({command:"diagnostics <file>",describe:"get diagnostics for a file",builder:(o)=>o.positional("file",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(C.Service.use((t)=>d.gen(function*(){return yield*t.touchFile(o.file,!0),yield*d.sleep(1000),yield*t.diagnostics()})));process.stdout.write(JSON.stringify(e,null,2)+A)})}}),co=i({command:"symbols <query>",describe:"search workspace symbols",builder:(o)=>o.positional("query",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let s=[];try{const e=v(s,S.Default.time("symbols"),0);let t=await r.runPromise(C.Service.use((m)=>m.workspaceSymbol(o.query)));process.stdout.write(JSON.stringify(t,null,2)+A)}catch(a){var c=a,l=1}finally{P(s,c,l)}})}}),lo=i({command:"document-symbols <uri>",describe:"get symbols from a document",builder:(o)=>o.positional("uri",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let s=[];try{const e=v(s,S.Default.time("document-symbols"),0);let t=await r.runPromise(C.Service.use((m)=>m.documentSymbol(o.uri)));process.stdout.write(JSON.stringify(t,null,2)+A)}catch(a){var c=a,l=1}finally{P(s,c,l)}})}});import{EOL as O}from"os";var k=i({command:"rg",describe:"ripgrep debugging utilities",builder:(o)=>o.command(po).command(uo).command(fo).demandCommand(),async handler(){}}),po=i({command:"tree",describe:"show file tree using ripgrep",builder:(o)=>o.option("limit",{type:"number"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.tree({cwd:u.directory,limit:o.limit})));process.stdout.write(e+O)})}}),uo=i({command:"files",describe:"list files using ripgrep",builder:(o)=>o.option("query",{type:"string",description:"Filter files by query"}).option("glob",{type:"string",description:"Glob pattern to match files"}).option("limit",{type:"number",description:"Limit number of results"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(d.gen(function*(){return yield*(yield*y.Service).files({cwd:u.directory,glob:o.glob?[o.glob]:void 0}).pipe(x.take(o.limit??1/0),x.runCollect,d.map((s)=>[...s]))}));process.stdout.write(e.join(O)+O)})}}),fo=i({command:"search <pattern>",describe:"search file contents using ripgrep",builder:(o)=>o.positional("pattern",{type:"string",demandOption:!0,description:"Search pattern"}).option("glob",{type:"array",description:"File glob patterns"}).option("limit",{type:"number",description:"Limit number of results"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.search({cwd:u.directory,pattern:o.pattern,glob:o.glob,limit:o.limit})));process.stdout.write(JSON.stringify(e.items,null,2)+O)})}});import{EOL as yo}from"os";var T=i({command:"scrap",describe:"list all known projects",builder:(o)=>o,async handler(){let o=S.Default.time("scrap"),e=await E.list();process.stdout.write(JSON.stringify(e,null,2)+yo),o.stop()}});import{EOL as go}from"os";var $=i({command:"skill",describe:"list all available skills",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(d.gen(function*(){return yield*(yield*R.Service).all()}));process.stdout.write(JSON.stringify(o,null,2)+go)})}});var j=i({command:"snapshot",describe:"snapshot debugging utilities",builder:(o)=>o.command(bo).command(wo).command(So).demandCommand(),async handler(){}}),D=(o)=>n(process.cwd(),async()=>{console.log(await r.runPromise(M.Service.use(o)))}),G=(o)=>o.positional("hash",{type:"string",description:"hash",demandOption:!0}),bo=i({command:"track",describe:"track current snapshot state",async handler(){await D((o)=>o.track())}}),wo=i({command:"patch <hash>",describe:"show patch for a snapshot hash",builder:G,async handler(o){await D((e)=>e.patch(o.hash))}}),So=i({command:"diff <hash>",describe:"show diff for a snapshot hash",builder:G,async handler(o){await D((e)=>e.diff(o.hash))}});import{EOL as h}from"os";import{basename as ho}from"path";var Z=i({command:"agent <name>",describe:"show agent configuration details",builder:(o)=>o.positional("name",{type:"string",demandOption:!0,description:"Agent name"}).option("tool",{type:"string",description:"Tool id to execute"}).option("params",{type:"string",description:"Tool params as a JSON object"}),async handler(o){await n(process.cwd(),async()=>{let e=o.name,t=await r.runPromise(X.Service.use((m)=>m.get(e)));if(!t)process.stderr.write(`Agent ${e} not found, run '${ho(process.execPath)} agent list' to get an agent list`+h),process.exit(1);let s=await Co(t),a=await Oo(t,s),c=o.tool;if(c){let m=s.find((eo)=>eo.id===c);if(!m)process.stderr.write(`Tool ${c} not found for agent ${e}`+h),process.exit(1);if(a[c]===!1)process.stderr.write(`Tool ${c} is disabled for agent ${e}`+h),process.exit(1);let p=vo(o.params),f=await Po(t),N=await m.execute(p,f);process.stdout.write(JSON.stringify({tool:c,input:p,result:N},null,2)+h);return}let l={...t,tools:a};process.stdout.write(JSON.stringify(l,null,2)+h)})}});async function Co(o){return r.runPromise(d.gen(function*(){let e=yield*J.Service,t=yield*K.Service,s=o.model??(yield*e.defaultModel());return yield*t.tools({...s,agent:o})}))}async function Oo(o,e){let t=g.disabled(e.map((a)=>a.id),o.permission),s={};for(let a of e)s[a.id]=!t.has(a.id);return s}function vo(o){if(!o)return{};let e=o.trim();if(e.length===0)return{};let t=(()=>{try{return JSON.parse(e)}catch{throw Error("Failed to parse --params. Provide a valid JSON object.")}})();if(!t||typeof t!=="object"||Array.isArray(t))throw Error("Tool params must be an object.");return t}async function Po(o){let{session:e,messageID:t}=await r.runPromise(d.gen(function*(){let a=yield*Y.Service,c=yield*a.create({title:`Debug tool run (${o.name})`}),l=V.ascending(),m=o.model?o.model:yield*d.gen(function*(){return yield*(yield*J.Service).defaultModel()}),p=Date.now(),f={id:l,sessionID:c.id,role:"assistant",time:{created:p},parentID:l,modelID:m.modelID,providerID:m.providerID,mode:"debug",agent:o.name,path:{cwd:u.directory,root:u.worktree},cost:0,tokens:{input:0,output:0,reasoning:0,cache:{read:0,write:0}}};return yield*a.updateMessage(f),{session:c,messageID:l}})),s=g.merge(o.permission,e.permission??[]);return{sessionID:e.id,messageID:t,callID:W.ascending(),agent:o.name,abort:new AbortController().signal,messages:[],metadata:()=>d.void,ask(a){return d.sync(()=>{for(let c of a.patterns)if(g.evaluate(a.permission,c,s).action==="deny")throw new g.DeniedError({ruleset:s})})}}}var Q=i({command:"worker-smoke",describe:"start the TUI background worker and verify it initialises",builder:(o)=>o.option("timeout",{type:"number",describe:"milliseconds to wait for the worker to answer",default:30000}),handler:async(o)=>{let e=typeof globalThis.QITQODE_WORKER_PATH<"u"?globalThis.QITQODE_WORKER_PATH:new URL("../tui/worker.ts",import.meta.url),t=H({[B]:"worker",[z]:_()}),s=new Worker(e,{env:t}),a=new Promise((m,p)=>{s.onerror=(f)=>{p(Error(`worker crashed during startup: ${f.message||String(f.error??"unknown error")}`))},s.addEventListener("close",()=>{p(Error("worker exited before answering ping"))})}),c=new Promise((m,p)=>{setTimeout(()=>p(Error(`worker did not answer ping within ${o.timeout}ms`)),o.timeout)}),l=U(s);try{let m=await Promise.race([l.call("ping",void 0),a,c]);if(m!=="pong")throw Error(`worker answered ping with unexpected reply: ${JSON.stringify(m)}`);console.log("worker initialised: ping ok"),process.exit(0)}catch(m){console.error(m instanceof Error?m.message:String(m)),process.exit(1)}}});var Be=i({command:"debug",describe:"debugging and troubleshooting tools",builder:(o)=>o.command(I).command(q).command(k).command(L).command(T).command($).command(j).command(Z).command(Q).command(Ao).command({command:"wait",describe:"wait indefinitely (for debugging)",async handler(){await n(process.cwd(),async()=>{await new Promise((e)=>setTimeout(e,86400000))})}}).demandCommand(),async handler(){}}),Ao=i({command:"paths",describe:"show global paths (data, config, cache, state)",handler(){for(let[o,e]of Object.entries(oo.Path))console.log(o.padEnd(10),e)}});export{Be as DebugCommand};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Bq as b,Cq as R,Dq as XG,Eq as I,Iq as d,Jp as V,Lp as l,Pp as e,Qp as t,Zp as a,cq as o,dq as GG,gq as JG,kq as NG,nq as QG,sq as g,uq as v,vq as k}from"./chunk-1bq15kf0.js";import{Kq as f,Qq as C,Uq as m,Xq as O}from"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import{Lu as G}from"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-sh03ka27.js";function c(J){var Q,$,K,j,z,q;if(J==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let A=(Q=J.prompt_tokens)!=null?Q:0,Z=($=J.completion_tokens)!=null?$:0,N=(j=(K=J.prompt_tokens_details)==null?void 0:K.cached_tokens)!=null?j:0,X=(q=(z=J.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?q:0;return{inputTokens:{total:A,noCache:A-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:Z,text:Z-X,reasoning:X},raw:J}}function _(J){switch(J){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}function u({id:J,model:Q,created:$}){return{id:J!=null?J:void 0,modelId:Q!=null?Q:void 0,timestamp:$!=null?new Date($*1000):void 0}}function i({tools:J,toolChoice:Q}){J=(J==null?void 0:J.length)?J:void 0;let $=[];if(J==null)return{tools:void 0,toolChoice:void 0,toolWarnings:$};let K=[];for(let z of J)if(z.type==="provider")$.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else K.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Q==null)return{tools:K,toolChoice:void 0,toolWarnings:$};let j=Q.type;switch(j){case"auto":case"none":case"required":return{tools:K,toolChoice:j,toolWarnings:$};case"tool":return{tools:K,toolChoice:{type:"function",function:{name:Q.toolName}},toolWarnings:$};default:throw new O({functionality:`tool choice type: ${j}`})}}var $G=G.object({enableThinking:G.boolean().optional(),thinkingBudget:G.number().positive().optional(),parallelToolCalls:G.boolean().optional()});function p(J){var Q,$,K,j;let z=c(J),q=($=(Q=J==null?void 0:J.prompt_tokens_details)==null?void 0:Q.cache_creation_input_tokens)!=null?$:0,A=((K=z.inputTokens.total)!=null?K:0)-((j=z.inputTokens.cacheRead)!=null?j:0)-q;return{...z,inputTokens:{...z.inputTokens,cacheWrite:q,noCache:A}}}function zG({data:J,mediaType:Q}){return J instanceof URL?J.toString():`data:${Q};base64,${t(J)}`}function BG({prompt:J,cacheControlValidator:Q}){var $,K;let j=[];for(let{role:z,content:q,...A}of J){let Z=Q==null?void 0:Q.getCacheControl(A.providerOptions);switch(z){case"system":{if(Z)j.push({role:"system",content:[{type:"text",text:q,cache_control:Z}]});else j.push({role:"system",content:q});break}case"user":{j.push({role:"user",content:q.map((N,X)=>{var E;let L=X===q.length-1,B=(E=Q==null?void 0:Q.getCacheControl(N.providerOptions))!=null?E:L?Z:void 0;switch(N.type){case"text":return{type:"text",text:N.text,...B?{cache_control:B}:{}};case"file":if(N.mediaType.startsWith("image/")){let U=N.mediaType==="image/*"?"image/jpeg":N.mediaType;return{type:"image_url",image_url:{url:zG({data:N.data,mediaType:U})},...B?{cache_control:B}:{}}}else throw new O({functionality:"Only image file parts are supported"})}})});break}case"assistant":{let N="",X=[];for(let E of q)switch(E.type){case"text":{N+=E.text;break}case"tool-call":{X.push({id:E.toolCallId,type:"function",function:{name:E.toolName,arguments:JSON.stringify(E.input)}});break}case"reasoning":{N+=E.text;break}}j.push({role:"assistant",content:Z?[{type:"text",text:N,cache_control:Z}]:N||null,tool_calls:X.length>0?X:void 0});break}case"tool":{let N=q.filter((X)=>X.type!=="tool-approval-response");for(let X=0;X<N.length;X++){let E=N[X],L=E.output,B=X===N.length-1,U=($=Q==null?void 0:Q.getCacheControl(E.providerOptions))!=null?$:B?Z:void 0,Y;switch(L.type){case"text":case"error-text":Y=L.value;break;case"execution-denied":Y=(K=L.reason)!=null?K:"Tool execution denied.";break;case"content":case"json":case"error-json":Y=JSON.stringify(L.value);break}j.push({role:"tool",tool_call_id:E.toolCallId,content:U?[{type:"text",text:Y,cache_control:U}]:Y})}break}default:throw Error(`Unsupported role: ${z}`)}}return j}var r=4;function EG(J){var Q;let $=J==null?void 0:J.alibaba;return(Q=$==null?void 0:$.cacheControl)!=null?Q:$==null?void 0:$.cache_control}var jG=class{constructor(){this.breakpointCount=0,this.warnings=[]}getCacheControl(J){let Q=EG(J);if(!Q)return;if(this.breakpointCount++,this.breakpointCount>r)this.warnings.push({type:"other",message:`Max breakpoint limit exceeded. Only the last ${r} cache markers will take effect.`});return Q}getWarnings(){return this.warnings}},KG=class{constructor(J,Q){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=J,this.config=Q}get provider(){return this.config.provider}async getArgs({prompt:J,maxOutputTokens:Q,temperature:$,topP:K,topK:j,frequencyPenalty:z,presencePenalty:q,stopSequences:A,responseFormat:Z,seed:N,providerOptions:X,tools:E,toolChoice:L}){var B;let U=[],Y=new jG,P=await v({provider:"alibaba",providerOptions:X,schema:$G});if(z!=null)U.push({type:"unsupported",feature:"frequencyPenalty"});let w={model:this.modelId,max_tokens:Q,temperature:$,top_p:K,top_k:j,presence_penalty:q,stop:A,seed:N,response_format:(Z==null?void 0:Z.type)==="json"?Z.schema!=null?{type:"json_schema",json_schema:{schema:Z.schema,name:(B=Z.name)!=null?B:"response",description:Z.description}}:{type:"json_object"}:void 0,...(P==null?void 0:P.enableThinking)!=null?{enable_thinking:P.enableThinking}:{},...(P==null?void 0:P.thinkingBudget)!=null?{thinking_budget:P.thinkingBudget}:{},messages:BG({prompt:J,cacheControlValidator:Y})},{tools:y,toolChoice:S,toolWarnings:F}=i({tools:E,toolChoice:L});return U.push(...Y.getWarnings()),{args:{...w,tools:y,tool_choice:S,...y!=null&&(P==null?void 0:P.parallelToolCalls)!==void 0?{parallel_tool_calls:P.parallelToolCalls}:{}},warnings:[...U,...F]}}async doGenerate(J){var Q;let{args:$,warnings:K}=await this.getArgs(J),{responseHeaders:j,value:z,rawValue:q}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:$,failedResponseHandler:s,successfulResponseHandler:I(qG),abortSignal:J.abortSignal,fetch:this.config.fetch}),A=z.choices[0],Z=[],N=A.message.content;if(N!=null&&N.length>0)Z.push({type:"text",text:N});let X=A.message.reasoning_content;if(X!=null&&X.length>0)Z.push({type:"reasoning",text:X});if(A.message.tool_calls!=null)for(let E of A.message.tool_calls)Z.push({type:"tool-call",toolCallId:E.id,toolName:E.function.name,input:E.function.arguments});return{content:Z,finishReason:{unified:_(A.finish_reason),raw:(Q=A.finish_reason)!=null?Q:void 0},usage:p(z.usage),request:{body:JSON.stringify($)},response:{...u(z),headers:j,body:q},warnings:K}}async doStream(J){let{args:Q,warnings:$}=await this.getArgs(J),K={...Q,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:j,value:z}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:K,failedResponseHandler:s,successfulResponseHandler:XG(AG),abortSignal:J.abortSignal,fetch:this.config.fetch}),q={unified:"other",raw:void 0},A=void 0,Z=!0,N=!1,X=null,E=[];return{stream:z.pipeThrough(new TransformStream({start(L){L.enqueue({type:"stream-start",warnings:$})},transform(L,B){var U,Y,P,w;if(J.includeRawChunks)B.enqueue({type:"raw",rawValue:L.rawValue});if(!L.success){B.enqueue({type:"error",error:L.error});return}let y=L.value;if(Z)Z=!1,B.enqueue({type:"response-metadata",...u(y)});if(y.usage!=null)A=y.usage;if(y.choices.length===0)return;let S=y.choices[0],F=S.delta;if(F.reasoning_content!=null&&F.reasoning_content.length>0){if(X==null){if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;X=a(),B.enqueue({type:"reasoning-start",id:X})}B.enqueue({type:"reasoning-delta",id:X,delta:F.reasoning_content})}if(F.content!=null&&F.content.length>0){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(!N)B.enqueue({type:"text-start",id:"0"}),N=!0;B.enqueue({type:"text-delta",id:"0",delta:F.content})}if(F.tool_calls!=null){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;for(let W of F.tool_calls){let M=(U=W.index)!=null?U:E.length;if(E[M]==null){if(W.id==null)throw new C({data:W,message:"Expected 'id' to be a string."});if(((Y=W.function)==null?void 0:Y.name)==null)throw new C({data:W,message:"Expected 'function.name' to be a string."});B.enqueue({type:"tool-input-start",id:W.id,toolName:W.function.name}),E[M]={id:W.id,type:"function",function:{name:W.function.name,arguments:(P=W.function.arguments)!=null?P:""},hasFinished:!1};let D=E[M];if(D.function.arguments.length>0)B.enqueue({type:"tool-input-delta",id:D.id,delta:D.function.arguments});if(g(D.function.arguments))B.enqueue({type:"tool-input-end",id:D.id}),B.enqueue({type:"tool-call",toolCallId:D.id,toolName:D.function.name,input:D.function.arguments}),D.hasFinished=!0;continue}let H=E[M];if(H.hasFinished)continue;if(((w=W.function)==null?void 0:w.arguments)!=null)H.function.arguments+=W.function.arguments,B.enqueue({type:"tool-input-delta",id:H.id,delta:W.function.arguments});if(g(H.function.arguments))B.enqueue({type:"tool-input-end",id:H.id}),B.enqueue({type:"tool-call",toolCallId:H.id,toolName:H.function.name,input:H.function.arguments}),H.hasFinished=!0}}if(S.finish_reason!=null)q={unified:_(S.finish_reason),raw:S.finish_reason}},flush(L){if(X!=null)L.enqueue({type:"reasoning-end",id:X});if(N)L.enqueue({type:"text-end",id:"0"});L.enqueue({type:"finish",finishReason:q,usage:p(A)})}})),request:{body:JSON.stringify(K)},response:{headers:j}}}},YG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish(),cache_creation_input_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish()}).nullish()}),qG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({id:G.string(),type:G.literal("function"),function:G.object({name:G.string(),arguments:G.string()})})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),AG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),type:G.literal("function").nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),HG=NG(()=>QG(G.object({negativePrompt:G.string().nullish(),audioUrl:G.string().nullish(),promptExtend:G.boolean().nullish(),shotType:G.enum(["single","multi"]).nullish(),watermark:G.boolean().nullish(),audio:G.boolean().nullish(),referenceUrls:G.array(G.string()).nullish(),pollIntervalMs:G.number().positive().nullish(),pollTimeoutMs:G.number().positive().nullish()}).passthrough())),LG=G.object({code:G.string().nullish(),message:G.string(),request_id:G.string().nullish()}),n=R({errorSchema:LG,errorToMessage:(J)=>J.message}),PG=G.object({output:G.object({task_status:G.string(),task_id:G.string()}).nullish(),request_id:G.string().nullish()}),WG=G.object({output:G.object({task_id:G.string(),task_status:G.string(),video_url:G.string().nullish(),submit_time:G.string().nullish(),scheduled_time:G.string().nullish(),end_time:G.string().nullish(),orig_prompt:G.string().nullish(),actual_prompt:G.string().nullish(),code:G.string().nullish(),message:G.string().nullish()}).nullish(),usage:G.object({duration:G.number().nullish(),output_video_duration:G.number().nullish(),SR:G.number().nullish(),size:G.string().nullish()}).nullish(),request_id:G.string().nullish()});function UG(J){if(J.includes("-i2v"))return"i2v";if(J.includes("-r2v"))return"r2v";return"t2v"}var wG=class{constructor(J,Q){this.modelId=J,this.config=Q,this.specificationVersion="v3",this.maxVideosPerCall=1}get provider(){return this.config.provider}async doGenerate(J){var Q,$,K,j,z,q,A,Z,N,X,E;let L=(K=($=(Q=this.config._internal)==null?void 0:Q.currentDate)==null?void 0:$.call(Q))!=null?K:new Date,B=[],U=UG(this.modelId),Y=await v({provider:"alibaba",providerOptions:J.providerOptions,schema:HG}),P={};if(J.prompt!=null)P.prompt=J.prompt;if((Y==null?void 0:Y.negativePrompt)!=null)P.negative_prompt=Y.negativePrompt;if((Y==null?void 0:Y.audioUrl)!=null)P.audio_url=Y.audioUrl;if(U==="i2v"&&J.image!=null)if(J.image.type==="url")P.img_url=J.image.url;else{let x=typeof J.image.data==="string"?J.image.data:e(J.image.data);P.img_url=x}if(U==="r2v"&&(Y==null?void 0:Y.referenceUrls)!=null)P.reference_urls=Y.referenceUrls;let w={};if(J.duration!=null)w.duration=J.duration;if(J.seed!=null)w.seed=J.seed;if(J.resolution!=null)if(U==="i2v"){let x={"1280x720":"720P","720x1280":"720P","960x960":"720P","1088x832":"720P","832x1088":"720P","1920x1080":"1080P","1080x1920":"1080P","1440x1440":"1080P","1632x1248":"1080P","1248x1632":"1080P","832x480":"480P","480x832":"480P","624x624":"480P"};w.resolution=x[J.resolution]||J.resolution}else w.size=J.resolution.replace("x","*");if((Y==null?void 0:Y.promptExtend)!=null)w.prompt_extend=Y.promptExtend;if((Y==null?void 0:Y.shotType)!=null)w.shot_type=Y.shotType;if((Y==null?void 0:Y.watermark)!=null)w.watermark=Y.watermark;if((Y==null?void 0:Y.audio)!=null)w.audio=Y.audio;if(J.aspectRatio)B.push({type:"unsupported",feature:"aspectRatio",details:"Alibaba video models use explicit size/resolution dimensions. Use the resolution option or providerOptions.alibaba for size control."});if(J.fps)B.push({type:"unsupported",feature:"fps",details:"Alibaba video models do not support custom FPS."});if(J.n!=null&&J.n>1)B.push({type:"unsupported",feature:"n",details:"Alibaba video models only support generating 1 video per call."});let{value:y}=await k({url:`${this.config.baseURL}/api/v1/services/aigc/video-generation/video-synthesis`,headers:V(await b(this.config.headers),J.headers,{"X-DashScope-Async":"enable"}),body:{model:this.modelId,input:P,parameters:w},successfulResponseHandler:I(PG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch}),S=(j=y.output)==null?void 0:j.task_id;if(!S)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No task_id returned from Alibaba API. Response: ${JSON.stringify(y)}`});let F=(z=Y==null?void 0:Y.pollIntervalMs)!=null?z:5000,W=(q=Y==null?void 0:Y.pollTimeoutMs)!=null?q:600000,M=Date.now(),H,D;while(!0){if(await l(F,{abortSignal:J.abortSignal}),Date.now()-M>W)throw new f({name:"ALIBABA_VIDEO_GENERATION_TIMEOUT",message:`Video generation timed out after ${W}ms`});let{value:x,responseHeaders:ZG}=await GG({url:`${this.config.baseURL}/api/v1/tasks/${S}`,headers:V(await b(this.config.headers),J.headers),successfulResponseHandler:I(WG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch});D=ZG;let T=(A=x.output)==null?void 0:A.task_status;if(T==="SUCCEEDED"){H=x;break}if(T==="FAILED"||T==="CANCELED")throw new f({name:"ALIBABA_VIDEO_GENERATION_FAILED",message:`Video generation ${T.toLowerCase()}. Task ID: ${S}. ${(N=(Z=x.output)==null?void 0:Z.message)!=null?N:""}`})}let h=(X=H==null?void 0:H.output)==null?void 0:X.video_url;if(!h)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No video URL in response. Task ID: ${S}`});return{videos:[{type:"url",url:h,mediaType:"video/mp4"}],warnings:B,response:{timestamp:L,modelId:this.modelId,headers:D},providerMetadata:{alibaba:{taskId:S,videoUrl:h,...((E=H==null?void 0:H.output)==null?void 0:E.actual_prompt)?{actualPrompt:H.output.actual_prompt}:{},...(H==null?void 0:H.usage)?{usage:{duration:H.usage.duration,outputVideoDuration:H.usage.output_video_duration,resolution:H.usage.SR,size:H.usage.size}}:{}}}}}},SG="1.0.17",FG=G.object({error:G.object({message:G.string(),code:G.string().nullish(),type:G.string().nullish()})}),s=R({errorSchema:FG,errorToMessage:(J)=>J.error.message});function DG(J={}){var Q,$;let K=(Q=d(J.baseURL))!=null?Q:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",j=($=d(J.videoBaseURL))!=null?$:"https://dashscope-intl.aliyuncs.com",z=()=>o({Authorization:`Bearer ${JG({apiKey:J.apiKey,environmentVariableName:"ALIBABA_API_KEY",description:"Alibaba Cloud (DashScope)"})}`,...J.headers},`ai-sdk/alibaba/${SG}`),q=(N)=>{var X;return new KG(N,{provider:"alibaba.chat",baseURL:K,headers:z,fetch:J.fetch,includeUsage:(X=J.includeUsage)!=null?X:!0})},A=(N)=>new wG(N,{provider:"alibaba.video",baseURL:j,headers:z,fetch:J.fetch}),Z=function(N){if(new.target)throw Error("The Alibaba model function cannot be called with the new keyword.");return q(N)};return Z.specificationVersion="v3",Z.languageModel=q,Z.chatModel=q,Z.video=A,Z.videoModel=A,Z.imageModel=(N)=>{throw new m({modelId:N,modelType:"imageModel"})},Z.embeddingModel=(N)=>{throw new m({modelId:N,modelType:"embeddingModel"})},Z}var gG=DG();export{DG as createAlibaba,gG as alibaba,SG as VERSION};
|
|
2
|
+
import{$r as k,Dr as a,Ir as o,Jr as GG,Mr as JG,Qr as NG,Tr as QG,Yr as g,_r as v,fs as b,gs as R,hs as XG,is as I,ms as d,nr as V,pr as l,tr as e,ur as t}from"./chunk-q0pd8bac.js";import{Bs as O,os as f,us as C,ys as m}from"./chunk-4dy64hgp.js";import"./chunk-cqtkxwd8.js";import"./chunk-gt10s0ks.js";import{pw as G}from"./chunk-9tfm1dk2.js";import"./chunk-x2mbre12.js";import"./chunk-pfx8ts02.js";function c(J){var Q,$,K,j,z,q;if(J==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let A=(Q=J.prompt_tokens)!=null?Q:0,Z=($=J.completion_tokens)!=null?$:0,N=(j=(K=J.prompt_tokens_details)==null?void 0:K.cached_tokens)!=null?j:0,X=(q=(z=J.completion_tokens_details)==null?void 0:z.reasoning_tokens)!=null?q:0;return{inputTokens:{total:A,noCache:A-N,cacheRead:N,cacheWrite:void 0},outputTokens:{total:Z,text:Z-X,reasoning:X},raw:J}}function _(J){switch(J){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}function u({id:J,model:Q,created:$}){return{id:J!=null?J:void 0,modelId:Q!=null?Q:void 0,timestamp:$!=null?new Date($*1000):void 0}}function i({tools:J,toolChoice:Q}){J=(J==null?void 0:J.length)?J:void 0;let $=[];if(J==null)return{tools:void 0,toolChoice:void 0,toolWarnings:$};let K=[];for(let z of J)if(z.type==="provider")$.push({type:"unsupported",feature:`provider-defined tool ${z.id}`});else K.push({type:"function",function:{name:z.name,description:z.description,parameters:z.inputSchema,...z.strict!=null?{strict:z.strict}:{}}});if(Q==null)return{tools:K,toolChoice:void 0,toolWarnings:$};let j=Q.type;switch(j){case"auto":case"none":case"required":return{tools:K,toolChoice:j,toolWarnings:$};case"tool":return{tools:K,toolChoice:{type:"function",function:{name:Q.toolName}},toolWarnings:$};default:throw new O({functionality:`tool choice type: ${j}`})}}var $G=G.object({enableThinking:G.boolean().optional(),thinkingBudget:G.number().positive().optional(),parallelToolCalls:G.boolean().optional()});function p(J){var Q,$,K,j;let z=c(J),q=($=(Q=J==null?void 0:J.prompt_tokens_details)==null?void 0:Q.cache_creation_input_tokens)!=null?$:0,A=((K=z.inputTokens.total)!=null?K:0)-((j=z.inputTokens.cacheRead)!=null?j:0)-q;return{...z,inputTokens:{...z.inputTokens,cacheWrite:q,noCache:A}}}function zG({data:J,mediaType:Q}){return J instanceof URL?J.toString():`data:${Q};base64,${t(J)}`}function BG({prompt:J,cacheControlValidator:Q}){var $,K;let j=[];for(let{role:z,content:q,...A}of J){let Z=Q==null?void 0:Q.getCacheControl(A.providerOptions);switch(z){case"system":{if(Z)j.push({role:"system",content:[{type:"text",text:q,cache_control:Z}]});else j.push({role:"system",content:q});break}case"user":{j.push({role:"user",content:q.map((N,X)=>{var E;let L=X===q.length-1,B=(E=Q==null?void 0:Q.getCacheControl(N.providerOptions))!=null?E:L?Z:void 0;switch(N.type){case"text":return{type:"text",text:N.text,...B?{cache_control:B}:{}};case"file":if(N.mediaType.startsWith("image/")){let U=N.mediaType==="image/*"?"image/jpeg":N.mediaType;return{type:"image_url",image_url:{url:zG({data:N.data,mediaType:U})},...B?{cache_control:B}:{}}}else throw new O({functionality:"Only image file parts are supported"})}})});break}case"assistant":{let N="",X=[];for(let E of q)switch(E.type){case"text":{N+=E.text;break}case"tool-call":{X.push({id:E.toolCallId,type:"function",function:{name:E.toolName,arguments:JSON.stringify(E.input)}});break}case"reasoning":{N+=E.text;break}}j.push({role:"assistant",content:Z?[{type:"text",text:N,cache_control:Z}]:N||null,tool_calls:X.length>0?X:void 0});break}case"tool":{let N=q.filter((X)=>X.type!=="tool-approval-response");for(let X=0;X<N.length;X++){let E=N[X],L=E.output,B=X===N.length-1,U=($=Q==null?void 0:Q.getCacheControl(E.providerOptions))!=null?$:B?Z:void 0,Y;switch(L.type){case"text":case"error-text":Y=L.value;break;case"execution-denied":Y=(K=L.reason)!=null?K:"Tool execution denied.";break;case"content":case"json":case"error-json":Y=JSON.stringify(L.value);break}j.push({role:"tool",tool_call_id:E.toolCallId,content:U?[{type:"text",text:Y,cache_control:U}]:Y})}break}default:throw Error(`Unsupported role: ${z}`)}}return j}var r=4;function EG(J){var Q;let $=J==null?void 0:J.alibaba;return(Q=$==null?void 0:$.cacheControl)!=null?Q:$==null?void 0:$.cache_control}var jG=class{constructor(){this.breakpointCount=0,this.warnings=[]}getCacheControl(J){let Q=EG(J);if(!Q)return;if(this.breakpointCount++,this.breakpointCount>r)this.warnings.push({type:"other",message:`Max breakpoint limit exceeded. Only the last ${r} cache markers will take effect.`});return Q}getWarnings(){return this.warnings}},KG=class{constructor(J,Q){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=J,this.config=Q}get provider(){return this.config.provider}async getArgs({prompt:J,maxOutputTokens:Q,temperature:$,topP:K,topK:j,frequencyPenalty:z,presencePenalty:q,stopSequences:A,responseFormat:Z,seed:N,providerOptions:X,tools:E,toolChoice:L}){var B;let U=[],Y=new jG,P=await v({provider:"alibaba",providerOptions:X,schema:$G});if(z!=null)U.push({type:"unsupported",feature:"frequencyPenalty"});let w={model:this.modelId,max_tokens:Q,temperature:$,top_p:K,top_k:j,presence_penalty:q,stop:A,seed:N,response_format:(Z==null?void 0:Z.type)==="json"?Z.schema!=null?{type:"json_schema",json_schema:{schema:Z.schema,name:(B=Z.name)!=null?B:"response",description:Z.description}}:{type:"json_object"}:void 0,...(P==null?void 0:P.enableThinking)!=null?{enable_thinking:P.enableThinking}:{},...(P==null?void 0:P.thinkingBudget)!=null?{thinking_budget:P.thinkingBudget}:{},messages:BG({prompt:J,cacheControlValidator:Y})},{tools:y,toolChoice:S,toolWarnings:F}=i({tools:E,toolChoice:L});return U.push(...Y.getWarnings()),{args:{...w,tools:y,tool_choice:S,...y!=null&&(P==null?void 0:P.parallelToolCalls)!==void 0?{parallel_tool_calls:P.parallelToolCalls}:{}},warnings:[...U,...F]}}async doGenerate(J){var Q;let{args:$,warnings:K}=await this.getArgs(J),{responseHeaders:j,value:z,rawValue:q}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:$,failedResponseHandler:s,successfulResponseHandler:I(qG),abortSignal:J.abortSignal,fetch:this.config.fetch}),A=z.choices[0],Z=[],N=A.message.content;if(N!=null&&N.length>0)Z.push({type:"text",text:N});let X=A.message.reasoning_content;if(X!=null&&X.length>0)Z.push({type:"reasoning",text:X});if(A.message.tool_calls!=null)for(let E of A.message.tool_calls)Z.push({type:"tool-call",toolCallId:E.id,toolName:E.function.name,input:E.function.arguments});return{content:Z,finishReason:{unified:_(A.finish_reason),raw:(Q=A.finish_reason)!=null?Q:void 0},usage:p(z.usage),request:{body:JSON.stringify($)},response:{...u(z),headers:j,body:q},warnings:K}}async doStream(J){let{args:Q,warnings:$}=await this.getArgs(J),K={...Q,stream:!0,stream_options:this.config.includeUsage?{include_usage:!0}:void 0},{responseHeaders:j,value:z}=await k({url:`${this.config.baseURL}/chat/completions`,headers:V(this.config.headers(),J.headers),body:K,failedResponseHandler:s,successfulResponseHandler:XG(AG),abortSignal:J.abortSignal,fetch:this.config.fetch}),q={unified:"other",raw:void 0},A=void 0,Z=!0,N=!1,X=null,E=[];return{stream:z.pipeThrough(new TransformStream({start(L){L.enqueue({type:"stream-start",warnings:$})},transform(L,B){var U,Y,P,w;if(J.includeRawChunks)B.enqueue({type:"raw",rawValue:L.rawValue});if(!L.success){B.enqueue({type:"error",error:L.error});return}let y=L.value;if(Z)Z=!1,B.enqueue({type:"response-metadata",...u(y)});if(y.usage!=null)A=y.usage;if(y.choices.length===0)return;let S=y.choices[0],F=S.delta;if(F.reasoning_content!=null&&F.reasoning_content.length>0){if(X==null){if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;X=a(),B.enqueue({type:"reasoning-start",id:X})}B.enqueue({type:"reasoning-delta",id:X,delta:F.reasoning_content})}if(F.content!=null&&F.content.length>0){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(!N)B.enqueue({type:"text-start",id:"0"}),N=!0;B.enqueue({type:"text-delta",id:"0",delta:F.content})}if(F.tool_calls!=null){if(X!=null)B.enqueue({type:"reasoning-end",id:X}),X=null;if(N)B.enqueue({type:"text-end",id:"0"}),N=!1;for(let W of F.tool_calls){let M=(U=W.index)!=null?U:E.length;if(E[M]==null){if(W.id==null)throw new C({data:W,message:"Expected 'id' to be a string."});if(((Y=W.function)==null?void 0:Y.name)==null)throw new C({data:W,message:"Expected 'function.name' to be a string."});B.enqueue({type:"tool-input-start",id:W.id,toolName:W.function.name}),E[M]={id:W.id,type:"function",function:{name:W.function.name,arguments:(P=W.function.arguments)!=null?P:""},hasFinished:!1};let D=E[M];if(D.function.arguments.length>0)B.enqueue({type:"tool-input-delta",id:D.id,delta:D.function.arguments});if(g(D.function.arguments))B.enqueue({type:"tool-input-end",id:D.id}),B.enqueue({type:"tool-call",toolCallId:D.id,toolName:D.function.name,input:D.function.arguments}),D.hasFinished=!0;continue}let H=E[M];if(H.hasFinished)continue;if(((w=W.function)==null?void 0:w.arguments)!=null)H.function.arguments+=W.function.arguments,B.enqueue({type:"tool-input-delta",id:H.id,delta:W.function.arguments});if(g(H.function.arguments))B.enqueue({type:"tool-input-end",id:H.id}),B.enqueue({type:"tool-call",toolCallId:H.id,toolName:H.function.name,input:H.function.arguments}),H.hasFinished=!0}}if(S.finish_reason!=null)q={unified:_(S.finish_reason),raw:S.finish_reason}},flush(L){if(X!=null)L.enqueue({type:"reasoning-end",id:X});if(N)L.enqueue({type:"text-end",id:"0"});L.enqueue({type:"finish",finishReason:q,usage:p(A)})}})),request:{body:JSON.stringify(K)},response:{headers:j}}}},YG=G.object({prompt_tokens:G.number(),completion_tokens:G.number(),total_tokens:G.number(),prompt_tokens_details:G.object({cached_tokens:G.number().nullish(),cache_creation_input_tokens:G.number().nullish()}).nullish(),completion_tokens_details:G.object({reasoning_tokens:G.number().nullish()}).nullish()}),qG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({message:G.object({role:G.literal("assistant").nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({id:G.string(),type:G.literal("function"),function:G.object({name:G.string(),arguments:G.string()})})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),AG=G.object({id:G.string().nullish(),created:G.number().nullish(),model:G.string().nullish(),choices:G.array(G.object({delta:G.object({role:G.enum(["assistant"]).nullish(),content:G.string().nullish(),reasoning_content:G.string().nullish(),tool_calls:G.array(G.object({index:G.number().nullish(),id:G.string().nullish(),type:G.literal("function").nullish(),function:G.object({name:G.string().nullish(),arguments:G.string().nullish()}).nullish()})).nullish()}),finish_reason:G.string().nullish(),index:G.number()})),usage:YG.nullish()}),HG=NG(()=>QG(G.object({negativePrompt:G.string().nullish(),audioUrl:G.string().nullish(),promptExtend:G.boolean().nullish(),shotType:G.enum(["single","multi"]).nullish(),watermark:G.boolean().nullish(),audio:G.boolean().nullish(),referenceUrls:G.array(G.string()).nullish(),pollIntervalMs:G.number().positive().nullish(),pollTimeoutMs:G.number().positive().nullish()}).passthrough())),LG=G.object({code:G.string().nullish(),message:G.string(),request_id:G.string().nullish()}),n=R({errorSchema:LG,errorToMessage:(J)=>J.message}),PG=G.object({output:G.object({task_status:G.string(),task_id:G.string()}).nullish(),request_id:G.string().nullish()}),WG=G.object({output:G.object({task_id:G.string(),task_status:G.string(),video_url:G.string().nullish(),submit_time:G.string().nullish(),scheduled_time:G.string().nullish(),end_time:G.string().nullish(),orig_prompt:G.string().nullish(),actual_prompt:G.string().nullish(),code:G.string().nullish(),message:G.string().nullish()}).nullish(),usage:G.object({duration:G.number().nullish(),output_video_duration:G.number().nullish(),SR:G.number().nullish(),size:G.string().nullish()}).nullish(),request_id:G.string().nullish()});function UG(J){if(J.includes("-i2v"))return"i2v";if(J.includes("-r2v"))return"r2v";return"t2v"}var wG=class{constructor(J,Q){this.modelId=J,this.config=Q,this.specificationVersion="v3",this.maxVideosPerCall=1}get provider(){return this.config.provider}async doGenerate(J){var Q,$,K,j,z,q,A,Z,N,X,E;let L=(K=($=(Q=this.config._internal)==null?void 0:Q.currentDate)==null?void 0:$.call(Q))!=null?K:new Date,B=[],U=UG(this.modelId),Y=await v({provider:"alibaba",providerOptions:J.providerOptions,schema:HG}),P={};if(J.prompt!=null)P.prompt=J.prompt;if((Y==null?void 0:Y.negativePrompt)!=null)P.negative_prompt=Y.negativePrompt;if((Y==null?void 0:Y.audioUrl)!=null)P.audio_url=Y.audioUrl;if(U==="i2v"&&J.image!=null)if(J.image.type==="url")P.img_url=J.image.url;else{let x=typeof J.image.data==="string"?J.image.data:e(J.image.data);P.img_url=x}if(U==="r2v"&&(Y==null?void 0:Y.referenceUrls)!=null)P.reference_urls=Y.referenceUrls;let w={};if(J.duration!=null)w.duration=J.duration;if(J.seed!=null)w.seed=J.seed;if(J.resolution!=null)if(U==="i2v"){let x={"1280x720":"720P","720x1280":"720P","960x960":"720P","1088x832":"720P","832x1088":"720P","1920x1080":"1080P","1080x1920":"1080P","1440x1440":"1080P","1632x1248":"1080P","1248x1632":"1080P","832x480":"480P","480x832":"480P","624x624":"480P"};w.resolution=x[J.resolution]||J.resolution}else w.size=J.resolution.replace("x","*");if((Y==null?void 0:Y.promptExtend)!=null)w.prompt_extend=Y.promptExtend;if((Y==null?void 0:Y.shotType)!=null)w.shot_type=Y.shotType;if((Y==null?void 0:Y.watermark)!=null)w.watermark=Y.watermark;if((Y==null?void 0:Y.audio)!=null)w.audio=Y.audio;if(J.aspectRatio)B.push({type:"unsupported",feature:"aspectRatio",details:"Alibaba video models use explicit size/resolution dimensions. Use the resolution option or providerOptions.alibaba for size control."});if(J.fps)B.push({type:"unsupported",feature:"fps",details:"Alibaba video models do not support custom FPS."});if(J.n!=null&&J.n>1)B.push({type:"unsupported",feature:"n",details:"Alibaba video models only support generating 1 video per call."});let{value:y}=await k({url:`${this.config.baseURL}/api/v1/services/aigc/video-generation/video-synthesis`,headers:V(await b(this.config.headers),J.headers,{"X-DashScope-Async":"enable"}),body:{model:this.modelId,input:P,parameters:w},successfulResponseHandler:I(PG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch}),S=(j=y.output)==null?void 0:j.task_id;if(!S)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No task_id returned from Alibaba API. Response: ${JSON.stringify(y)}`});let F=(z=Y==null?void 0:Y.pollIntervalMs)!=null?z:5000,W=(q=Y==null?void 0:Y.pollTimeoutMs)!=null?q:600000,M=Date.now(),H,D;while(!0){if(await l(F,{abortSignal:J.abortSignal}),Date.now()-M>W)throw new f({name:"ALIBABA_VIDEO_GENERATION_TIMEOUT",message:`Video generation timed out after ${W}ms`});let{value:x,responseHeaders:ZG}=await GG({url:`${this.config.baseURL}/api/v1/tasks/${S}`,headers:V(await b(this.config.headers),J.headers),successfulResponseHandler:I(WG),failedResponseHandler:n,abortSignal:J.abortSignal,fetch:this.config.fetch});D=ZG;let T=(A=x.output)==null?void 0:A.task_status;if(T==="SUCCEEDED"){H=x;break}if(T==="FAILED"||T==="CANCELED")throw new f({name:"ALIBABA_VIDEO_GENERATION_FAILED",message:`Video generation ${T.toLowerCase()}. Task ID: ${S}. ${(N=(Z=x.output)==null?void 0:Z.message)!=null?N:""}`})}let h=(X=H==null?void 0:H.output)==null?void 0:X.video_url;if(!h)throw new f({name:"ALIBABA_VIDEO_GENERATION_ERROR",message:`No video URL in response. Task ID: ${S}`});return{videos:[{type:"url",url:h,mediaType:"video/mp4"}],warnings:B,response:{timestamp:L,modelId:this.modelId,headers:D},providerMetadata:{alibaba:{taskId:S,videoUrl:h,...((E=H==null?void 0:H.output)==null?void 0:E.actual_prompt)?{actualPrompt:H.output.actual_prompt}:{},...(H==null?void 0:H.usage)?{usage:{duration:H.usage.duration,outputVideoDuration:H.usage.output_video_duration,resolution:H.usage.SR,size:H.usage.size}}:{}}}}}},SG="1.0.17",FG=G.object({error:G.object({message:G.string(),code:G.string().nullish(),type:G.string().nullish()})}),s=R({errorSchema:FG,errorToMessage:(J)=>J.error.message});function DG(J={}){var Q,$;let K=(Q=d(J.baseURL))!=null?Q:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",j=($=d(J.videoBaseURL))!=null?$:"https://dashscope-intl.aliyuncs.com",z=()=>o({Authorization:`Bearer ${JG({apiKey:J.apiKey,environmentVariableName:"ALIBABA_API_KEY",description:"Alibaba Cloud (DashScope)"})}`,...J.headers},`ai-sdk/alibaba/${SG}`),q=(N)=>{var X;return new KG(N,{provider:"alibaba.chat",baseURL:K,headers:z,fetch:J.fetch,includeUsage:(X=J.includeUsage)!=null?X:!0})},A=(N)=>new wG(N,{provider:"alibaba.video",baseURL:j,headers:z,fetch:J.fetch}),Z=function(N){if(new.target)throw Error("The Alibaba model function cannot be called with the new keyword.");return q(N)};return Z.specificationVersion="v3",Z.languageModel=q,Z.chatModel=q,Z.video=A,Z.videoModel=A,Z.imageModel=(N)=>{throw new m({modelId:N,modelType:"imageModel"})},Z.embeddingModel=(N)=>{throw new m({modelId:N,modelType:"embeddingModel"})},Z}var gG=DG();export{DG as createAlibaba,gG as alibaba,SG as VERSION};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$j as f,Hj as s,Mj as e,Nj as j,Oj as v,_j as u}from"./chunk-j95mkzwg.js";import{Dl as D,Hl as b,Il as a,Jl as t,ul as r,vl as C,wl as k,xl as m}from"./chunk-52n4tdeh.js";import{an as x,bn as q,dn as n,en as o,gn as K,in as c,pn as i}from"./chunk-m8djypsy.js";import{Cv as Q_}from"./chunk-62mb6wxm.js";import{Iv as d,Nv as g,Sv as O_}from"./chunk-zg72kz2k.js";import{aR as S_}from"./chunk-pfx8ts02.js";var l={};S_(l,{run:()=>h_,encodeDir:()=>k_,ClaudeImport:()=>l});import E_ from"path";import W_ from"path";import{access as X_,readFile as Y_}from"fs/promises";var G=n("external_import",{source:q().$type().notNull(),source_key:q().notNull(),session_id:q().$type().notNull(),source_path:q().notNull(),source_mtime:x().notNull(),time_imported:x().notNull(),message_ids:q({mode:"json"}).$type()},(N)=>[o({columns:[N.source,N.source_key]})]);function Z_(){return{scanned:0,imported:0,resynced:0,skipped:0,errors:[]}}async function L_(N){if(!N||!await g.exists(N))return{id:b.global,worktree:N||"/",vcs:null};if(!await a(N))return{id:b.global,worktree:N,vcs:null};return{id:await t(N),worktree:N,vcs:"git"}}function __(N){return N.split(`
|
|
3
3
|
`).map((_)=>_.trim()).filter(Boolean).flatMap((_)=>{try{return[JSON.parse(_)]}catch{return[]}})}function N_(N){let _=N.find((H)=>H.trim()&&!H.trim().startsWith("<"));if(!_)return;return _.trim().replace(/\s+/g," ").slice(0,100)}function R_(N,_){return D.use((H)=>H.select().from(G).where(c(K(G.source,N),K(G.source_key,_))).get())}function G_(N,_){if(!_)return{existing:void 0,existingUpdated:void 0};let H=_,O=D.use((Z)=>Z.select({updated:C.time_updated}).from(C).where(K(C.id,H.session_id)).get());if(!O)return D.use((Z)=>Z.delete(G).where(c(K(G.source,N),K(G.source_key,H.source_key))).run()),{existing:void 0,existingUpdated:void 0};return{existing:_,existingUpdated:O.updated}}function J_(N,_,H,O){N.insert(r).values({id:_.id,worktree:_.worktree,vcs:_.vcs,sandboxes:[],time_created:H,time_updated:O}).onConflictDoNothing().run()}function K_(N,_,H){if(_.message_ids?.length)for(let O=0;O<_.message_ids.length;O+=500)N.delete(k).where(i(k.id,_.message_ids.slice(O,O+500))).run();else N.delete(k).where(K(k.session_id,H)).run()}function A_(N,_,H){N.update(C).set({project_id:H.projectId,directory:H.directory,version:H.version,time_updated:Math.max(H.existingUpdated??0,H.timeUpdated)}).where(K(C.id,_)).run()}function $_(N){return async(_)=>F_({...N,force:_?.force})}async function F_(N){let _=Z_();if(!await X_(N.root).then(()=>!0).catch(()=>!1))return _;let H=await d.scan(N.pattern,{cwd:N.root,absolute:!0});for(let O of H){_.scanned++;try{let Z=W_.basename(O,".jsonl"),A=await g.statAsync(O);if(!A){_.skipped++;continue}let F=Math.floor(Number(A.mtimeMs)),Y=R_(N.source,Z);if(Y&&Y.source_mtime===F&&!N.force){_.skipped++;continue}let S=G_(N.source,Y);Y=S.existing;let T=S.existingUpdated,Q=Y?Y.session_id:e.descending(),V=N.parse(await Y_(O,"utf-8"),Q);if(!V||V.messages.length===0){_.skipped++;continue}let E=await L_(V.cwd),U=Date.now(),X=V.messages.map(($)=>$.info.id);if(D.transaction(($)=>{if(J_($,E,V.timeCreated,V.timeUpdated),Y)K_($,Y,Q),A_($,Q,{projectId:E.id,directory:V.cwd,version:V.version,existingUpdated:T,timeUpdated:V.timeUpdated});else $.insert(C).values({id:Q,project_id:E.id,slug:s.create(),directory:V.cwd,title:V.title,version:V.version,time_created:V.timeCreated,time_updated:V.timeUpdated}).run();for(let L of V.messages){let{id:B,sessionID:I,agentID:w,...z}=L.info;$.insert(k).values({id:B,session_id:Q,agent_id:"main",time_created:L.info.time.created,data:z}).onConflictDoUpdate({target:k.id,set:{data:z}}).run();for(let J of L.parts){let{id:y,sessionID:p,messageID:P,...h}=J.part;$.insert(m).values({id:y,message_id:L.info.id,session_id:Q,time_created:J.time,data:h}).onConflictDoUpdate({target:m.id,set:{data:h}}).run()}}$.insert(G).values({source:N.source,source_key:Z,session_id:Q,source_path:O,source_mtime:F,time_imported:U,message_ids:X}).onConflictDoUpdate({target:[G.source,G.source_key],set:{session_id:Q,source_path:O,source_mtime:F,time_imported:U,message_ids:X}}).run()}),Y)_.resynced++;else _.imported++}catch(Z){_.errors.push(`${O}: ${Z}`)}}if(_.imported+_.resynced>0||_.errors.length>0)N.log.info(N.logMessage,{..._,errors:_.errors.length});return _}var B_=Q_.create({service:"claude-import"});function k_(N){return N.replace(/[^a-zA-Z0-9]/g,"-")}function z_(N){if(!N)return{providerID:u.anthropic,modelID:f.make("unknown")};let _=N.indexOf("/");if(_===-1)return{providerID:u.anthropic,modelID:f.make(N)};return{providerID:u.make(N.slice(0,_)),modelID:f.make(N.slice(_+1))}}function H_(N){let _=N??{};return{input:_.input_tokens??0,output:_.output_tokens??0,reasoning:0,cache:{read:_.cache_read_input_tokens??0,write:_.cache_creation_input_tokens??0}}}function C_(N){if(typeof N==="string")return N;if(Array.isArray(N))return N.map((_)=>_&&typeof _==="object"&&("type"in _)&&_.type==="text"?_.text:JSON.stringify(_)).join(`
|
|
4
4
|
`);return N==null?"":JSON.stringify(N)}function U_(N,_){let H=__(N);if(H.length===0)return;let O,Z,A,F=0,Y,S=[],T=new Map,Q=null,V=null,E=z_(void 0),U=()=>{if(Q)S.push(Q);Q=null};for(let X of H){if(X.type!=="user"&&X.type!=="assistant")continue;let $=X.timestamp?Date.parse(X.timestamp):Date.now();if(!O&&X.cwd)O=X.cwd;if(!Z&&X.version)Z=X.version;if(A===void 0)A=$;F=Math.max(F,$);let L=X.message;if(!L)continue;if(X.type==="user"){let z=L.content,J=typeof z==="string"?[]:Array.isArray(z)?z:[];for(let W of J.filter((R)=>R?.type==="tool_result")){let R=T.get(W.tool_use_id);if(!R)continue;let M=C_(W.content);R.part.state=W.is_error?{status:"error",input:R.part.state.input??{},error:M,time:{start:R.start,end:$}}:{status:"completed",input:R.part.state.input??{},output:M,title:R.part.tool,metadata:{},time:{start:R.start,end:$}}}let y=typeof z==="string"?z.trim()?[z]:[]:J.filter((W)=>W?.type==="text"&&typeof W.text==="string"&&W.text.trim()).map((W)=>W.text),p=J.filter((W)=>W?.type==="image"&&W.source);if(y.length===0&&p.length===0)continue;U();let P=j.ascending(),h=[];for(let W of y)h.push({part:{id:v.ascending(),sessionID:_,messageID:P,type:"text",text:W},time:$});for(let W of p){let R=W.source.media_type??"image/png",M=W.source.type==="base64"?`data:${R};base64,${W.source.data}`:W.source.url??"";if(M)h.push({part:{id:v.ascending(),sessionID:_,messageID:P,type:"file",mime:R,url:M},time:$})}let V_={id:P,sessionID:_,role:"user",agent:"main",time:{created:$},model:{providerID:E.providerID,modelID:E.modelID}};if(S.push({info:V_,parts:h}),V=P,!Y)Y=N_(y);continue}let B=z_(L.model);if(E=B,!V){let z=j.ascending();S.push({info:{id:z,sessionID:_,role:"user",agent:"main",time:{created:$},model:{providerID:B.providerID,modelID:B.modelID}},parts:[]}),V=z}if(!Q||Q.info.role!=="assistant"||Q.info.parentID!==V)U(),Q={info:{id:j.ascending(),sessionID:_,role:"assistant",time:{created:$,completed:$},parentID:V,modelID:B.modelID,providerID:B.providerID,mode:"build",agent:"main",path:{cwd:O??X.cwd??"",root:O??X.cwd??""},cost:0,tokens:H_(L.usage)},parts:[]};let I=Q.info;I.time.completed=$,I.tokens=H_(L.usage);let w=Q.info.id;for(let z of Array.isArray(L.content)?L.content:[])if(z?.type==="thinking"||z?.type==="reasoning")Q.parts.push({part:{id:v.ascending(),sessionID:_,messageID:w,type:"reasoning",text:z.thinking??z.text??"",time:{start:$,end:$}},time:$});else if(z?.type==="text"&&typeof z.text==="string")Q.parts.push({part:{id:v.ascending(),sessionID:_,messageID:w,type:"text",text:z.text},time:$});else if(z?.type==="tool_use"){let J={id:v.ascending(),sessionID:_,messageID:w,type:"tool",callID:z.id,tool:z.name,state:{status:"pending",input:z.input??{},raw:JSON.stringify(z.input??{})}};Q.parts.push({part:J,time:$}),T.set(z.id,{part:J,start:$})}}return U(),{cwd:O??"",version:Z??"claude-code",title:Y??"Claude Code session",timeCreated:A??Date.now(),timeUpdated:F||A||Date.now(),messages:S}}var h_=$_({source:"cc",root:E_.join(O_.Path.home,".claude","projects"),pattern:"*/*.jsonl",log:B_,logMessage:"claude import",parse:U_});
|
|
5
|
-
export{G as
|
|
5
|
+
export{G as lg,Z_ as mg,L_ as ng,__ as og,N_ as pg,R_ as qg,G_ as rg,J_ as sg,K_ as tg,A_ as ug,$_ as vg,k_ as wg,h_ as xg,l as yg};
|