@qitqode/qitqode-android-arm64 0.2.10 → 0.2.13

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.
Files changed (410) hide show
  1. package/bundle/{chunk-x308f9j4.js → chunk-00krzh3y.js} +2 -2
  2. package/bundle/{chunk-q0xgxygw.js → chunk-04x4b2yy.js} +1 -1
  3. package/bundle/{chunk-1q10jyka.js → chunk-08mgb5tt.js} +2 -2
  4. package/bundle/{chunk-yexzxx6f.js → chunk-094m66q5.js} +1 -1
  5. package/bundle/{chunk-c3ey896z.js → chunk-0cjp9088.js} +1 -1
  6. package/bundle/{chunk-7a3txs9f.js → chunk-0mdmqtfr.js} +2 -2
  7. package/bundle/chunk-0nves64y.js +2 -0
  8. package/bundle/chunk-0v7knkt5.js +2 -0
  9. package/bundle/{chunk-wbt31xap.js → chunk-0w77vhg4.js} +2 -2
  10. package/bundle/{chunk-dnjyepb2.js → chunk-0ware2sh.js} +2 -2
  11. package/bundle/{chunk-djfrkbd5.js → chunk-0xf12tf3.js} +1 -1
  12. package/bundle/{chunk-qbewhcsz.js → chunk-139qfnsq.js} +1 -1
  13. package/bundle/{chunk-xgf4k9q7.js → chunk-1851skhm.js} +1 -1
  14. package/bundle/{chunk-f17se3hh.js → chunk-1bbx1da7.js} +1 -1
  15. package/bundle/{chunk-vk35g121.js → chunk-1bhcg889.js} +2 -2
  16. package/bundle/{chunk-xnxw5zz9.js → chunk-1exjy880.js} +2 -2
  17. package/bundle/{chunk-atacnspd.js → chunk-1f9qcrn6.js} +2 -2
  18. package/bundle/{chunk-5fcyb122.js → chunk-1gt6ppza.js} +1 -1
  19. package/bundle/chunk-1h5jdsgx.js +2 -0
  20. package/bundle/{chunk-brk1jca3.js → chunk-1q5h95hc.js} +1 -1
  21. package/bundle/chunk-1r5e1jsb.js +2 -0
  22. package/bundle/{chunk-vy93mn7d.js → chunk-1rafe6f5.js} +2 -2
  23. package/bundle/{chunk-62y6zk9x.js → chunk-1rw4srd1.js} +1 -1
  24. package/bundle/{chunk-h2p984qb.js → chunk-1sejtx9a.js} +2 -2
  25. package/bundle/{chunk-3zzrdpsx.js → chunk-1wy8wmah.js} +1 -1
  26. package/bundle/chunk-1wyy3c48.js +2 -0
  27. package/bundle/chunk-1z299xq6.js +2 -0
  28. package/bundle/chunk-21aqt31s.js +2 -0
  29. package/bundle/chunk-22aq9ymg.js +2 -0
  30. package/bundle/chunk-26a17c9z.js +2 -0
  31. package/bundle/chunk-2a154mr0.js +2 -0
  32. package/bundle/{chunk-acsqvgdw.js → chunk-2b80n6nx.js} +1 -1
  33. package/bundle/{chunk-nnkfdhh9.js → chunk-2bfq0mtx.js} +1 -1
  34. package/bundle/{chunk-wecs14rz.js → chunk-2d0vympj.js} +1 -1
  35. package/bundle/{chunk-dz3kcsb6.js → chunk-2h8b0csf.js} +2 -2
  36. package/bundle/{chunk-xqwk2zsx.js → chunk-2md5fz4f.js} +2 -2
  37. package/bundle/chunk-2nbce486.js +2 -0
  38. package/bundle/chunk-2npxatq9.js +2 -0
  39. package/bundle/{chunk-gx4v8z64.js → chunk-2p1qaqv3.js} +2 -2
  40. package/bundle/{chunk-ge7csm6m.js → chunk-2ts2s8b4.js} +2 -2
  41. package/bundle/{chunk-d1xfv4d3.js → chunk-374js0y6.js} +1 -1
  42. package/bundle/{chunk-g52wmt1v.js → chunk-3be70hxy.js} +1 -1
  43. package/bundle/{chunk-c8yc8qcd.js → chunk-3fx3eghq.js} +1 -1
  44. package/bundle/chunk-3gryj9r9.js +2 -0
  45. package/bundle/chunk-3jnanbjr.js +2 -0
  46. package/bundle/chunk-3meh1cbc.js +2 -0
  47. package/bundle/{chunk-t2r51r6v.js → chunk-3rcfy8te.js} +1 -1
  48. package/bundle/chunk-3t71xfr6.js +2 -0
  49. package/bundle/chunk-4045jzv5.js +2 -0
  50. package/bundle/{chunk-qdh2dm62.js → chunk-404ew3d3.js} +1 -1
  51. package/bundle/{chunk-ecz4h0a2.js → chunk-45dtsre6.js} +1 -1
  52. package/bundle/{chunk-v03xq38e.js → chunk-47pxz6cb.js} +2 -2
  53. package/bundle/{chunk-v8bxj01h.js → chunk-4ar8hey8.js} +1 -1
  54. package/bundle/chunk-4b2vv484.js +2 -0
  55. package/bundle/{chunk-9tz18e54.js → chunk-4d9s7cgr.js} +1 -1
  56. package/bundle/chunk-4ene1ymj.js +2 -0
  57. package/bundle/{chunk-yydqavgh.js → chunk-4enhsmq1.js} +2 -2
  58. package/bundle/{chunk-dm447tgc.js → chunk-4krmja97.js} +2 -2
  59. package/bundle/{chunk-pwsajn96.js → chunk-4q14whpc.js} +1 -1
  60. package/bundle/{chunk-z023h7t8.js → chunk-4s9d2zte.js} +1 -1
  61. package/bundle/{chunk-9zy5tsry.js → chunk-4wzv2v36.js} +3 -3
  62. package/bundle/{chunk-4sa9t0vx.js → chunk-53n3tfwn.js} +2 -2
  63. package/bundle/{chunk-3sj0jv91.js → chunk-5828bcp8.js} +1 -1
  64. package/bundle/chunk-58r5etg8.js +2 -0
  65. package/bundle/{chunk-waa781eh.js → chunk-5a4zt1b7.js} +1 -1
  66. package/bundle/chunk-5c2zw4h0.js +2 -0
  67. package/bundle/chunk-5e0vejcb.js +8 -0
  68. package/bundle/{chunk-nq4x6792.js → chunk-5es19n1m.js} +2 -2
  69. package/bundle/{chunk-32xd626h.js → chunk-5fbzvy6q.js} +2 -2
  70. package/bundle/{chunk-e1x1mp9m.js → chunk-5gv6r7v8.js} +1 -1
  71. package/bundle/{chunk-v8rqgt7h.js → chunk-5psekq9f.js} +1 -1
  72. package/bundle/{chunk-te91d271.js → chunk-5rtsnnjk.js} +1 -1
  73. package/bundle/{chunk-p6jf1fyt.js → chunk-5wjwzbk8.js} +1 -1
  74. package/bundle/chunk-608f83n0.js +2 -0
  75. package/bundle/{chunk-asxmkyz2.js → chunk-610mqqqa.js} +1 -1
  76. package/bundle/chunk-671r50ry.js +2 -0
  77. package/bundle/chunk-6bfnhr3d.js +2 -0
  78. package/bundle/chunk-6cv6d8rw.js +2 -0
  79. package/bundle/{chunk-psqtptrs.js → chunk-6dmk2eyt.js} +1 -1
  80. package/bundle/{chunk-7s0nq2aa.js → chunk-6g3bzap8.js} +2 -2
  81. package/bundle/{chunk-ccdjzn2m.js → chunk-6jb4mnvq.js} +3 -3
  82. package/bundle/{chunk-m01h6kk1.js → chunk-6kpk6pr3.js} +1 -1
  83. package/bundle/{chunk-gbkz04ke.js → chunk-6p848y99.js} +1 -1
  84. package/bundle/chunk-6qm6f88j.js +2 -0
  85. package/bundle/{chunk-wh2qqhep.js → chunk-6wt8g6mc.js} +2 -2
  86. package/bundle/{chunk-mn0pshpv.js → chunk-71naz1qp.js} +1 -1
  87. package/bundle/{chunk-by1kwg4r.js → chunk-72qx43fq.js} +2 -2
  88. package/bundle/chunk-78bfwwmc.js +2 -0
  89. package/bundle/{chunk-0sfc21qe.js → chunk-78rfz0ex.js} +2 -2
  90. package/bundle/{chunk-1r81q7m3.js → chunk-7bvh48s2.js} +1 -1
  91. package/bundle/{chunk-mmqyter3.js → chunk-7h0regqs.js} +1 -1
  92. package/bundle/{chunk-d0dsgxk4.js → chunk-7k1q26yn.js} +2 -2
  93. package/bundle/{chunk-kec1xw1n.js → chunk-7nh8vjx4.js} +1 -1
  94. package/bundle/{chunk-5w7ebtcd.js → chunk-7p8f8xav.js} +1 -1
  95. package/bundle/chunk-7wwtgxxf.js +2 -0
  96. package/bundle/{chunk-gksbv613.js → chunk-81mwbcy3.js} +2 -2
  97. package/bundle/{chunk-fvv1cret.js → chunk-821zkh5v.js} +1 -1
  98. package/bundle/{chunk-pf2vq6t1.js → chunk-84712kbe.js} +2 -2
  99. package/bundle/{chunk-eabbrt1p.js → chunk-8hrt4d0v.js} +1 -1
  100. package/bundle/{chunk-gmq1kwn0.js → chunk-8psfgg8y.js} +1 -1
  101. package/bundle/{chunk-at4dge22.js → chunk-8rbbt1s8.js} +1 -1
  102. package/bundle/{chunk-cdenq7jb.js → chunk-8t17w67q.js} +1 -1
  103. package/bundle/{chunk-9fjcgdea.js → chunk-8xbd0ra5.js} +1 -1
  104. package/bundle/{chunk-nh4zk07t.js → chunk-95ga21eq.js} +1 -1
  105. package/bundle/{chunk-e10c0crf.js → chunk-962hspr0.js} +1 -1
  106. package/bundle/chunk-98sb49dz.js +2 -0
  107. package/bundle/{chunk-9d0exvey.js → chunk-9a9qcvtz.js} +2 -2
  108. package/bundle/{chunk-x0hhw46n.js → chunk-9c0f79mt.js} +1 -1
  109. package/bundle/{chunk-kcqeh1e5.js → chunk-9h2fms7x.js} +1 -1
  110. package/bundle/chunk-9kbtpq9m.js +2 -0
  111. package/bundle/{chunk-eqpep2m2.js → chunk-9r6wk75s.js} +1 -1
  112. package/bundle/chunk-9szp9b4m.js +2 -0
  113. package/bundle/{chunk-tg1f56s3.js → chunk-9xbc558j.js} +1 -1
  114. package/bundle/chunk-9xqszq0c.js +2 -0
  115. package/bundle/chunk-a32kjs9e.js +2 -0
  116. package/bundle/{chunk-c8080519.js → chunk-a4242cn4.js} +1 -1
  117. package/bundle/{chunk-c8k32724.js → chunk-ajyfms68.js} +1 -1
  118. package/bundle/{chunk-8peby2d1.js → chunk-ajykvcas.js} +1 -1
  119. package/bundle/{chunk-tm79yrf3.js → chunk-anm5g0m4.js} +2 -2
  120. package/bundle/chunk-apym02ct.js +2 -0
  121. package/bundle/{chunk-dx7rexx3.js → chunk-aq75kv5f.js} +3 -3
  122. package/bundle/chunk-armv2rv5.js +2 -0
  123. package/bundle/chunk-as215v64.js +2 -0
  124. package/bundle/{chunk-rk21wv4k.js → chunk-b274mb6v.js} +1 -1
  125. package/bundle/{chunk-zfqgh9h7.js → chunk-b46t2315.js} +1 -1
  126. package/bundle/{chunk-yzd6cyep.js → chunk-ba2hn77m.js} +1 -1
  127. package/bundle/{chunk-pyf649pz.js → chunk-bd4krah7.js} +1 -1
  128. package/bundle/chunk-bnmpgpyf.js +2 -0
  129. package/bundle/{chunk-5nm5egq0.js → chunk-bpv378bm.js} +2 -2
  130. package/bundle/chunk-bq3zt1x1.js +2 -0
  131. package/bundle/chunk-bx8fgjam.js +2 -0
  132. package/bundle/{chunk-fsndgr9a.js → chunk-bydaqb08.js} +1 -1
  133. package/bundle/{chunk-819qr675.js → chunk-c1srcpfk.js} +1 -1
  134. package/bundle/{chunk-9bbwxp5d.js → chunk-c99npyz9.js} +1 -1
  135. package/bundle/chunk-ckcnb59t.js +2 -0
  136. package/bundle/{chunk-qdbx1qkr.js → chunk-csbndz33.js} +1 -1
  137. package/bundle/{chunk-c1c8ch3g.js → chunk-cv3xdp8q.js} +8 -8
  138. package/bundle/{chunk-xvvt886p.js → chunk-d2049chz.js} +2 -2
  139. package/bundle/{chunk-je8fcsa9.js → chunk-d4ys15w3.js} +1 -1
  140. package/bundle/chunk-d79xaj6s.js +3 -0
  141. package/bundle/chunk-dah2d37s.js +2 -0
  142. package/bundle/chunk-dhgjv1n2.js +2 -0
  143. package/bundle/chunk-dk9k8ff5.js +2 -0
  144. package/bundle/{chunk-b9f78x5g.js → chunk-dmgdwvn1.js} +1 -1
  145. package/bundle/{chunk-azss4acq.js → chunk-dpm5x19e.js} +2 -2
  146. package/bundle/{chunk-rpdgn9z3.js → chunk-dwjv3m5s.js} +2 -2
  147. package/bundle/chunk-dymysn4h.js +2 -0
  148. package/bundle/{chunk-7rbg6mg9.js → chunk-dzy3ezht.js} +2 -2
  149. package/bundle/{chunk-8rkszwxq.js → chunk-e0w082wt.js} +4 -4
  150. package/bundle/{chunk-0mwzxqt5.js → chunk-e4658j15.js} +3 -3
  151. package/bundle/{chunk-pbanj1gk.js → chunk-e6s8ep9m.js} +2 -2
  152. package/bundle/{chunk-dp6ms01y.js → chunk-ec1bwa7f.js} +2 -2
  153. package/bundle/{chunk-ff8q10gk.js → chunk-eefzbdbk.js} +2 -2
  154. package/bundle/{chunk-j5z95b6f.js → chunk-eftk07r3.js} +1 -1
  155. package/bundle/{chunk-qjw2zcq5.js → chunk-eh73j82b.js} +1 -1
  156. package/bundle/{chunk-h91zmzs5.js → chunk-es6vbsjg.js} +1 -1
  157. package/bundle/{chunk-k10rtgsk.js → chunk-etvwxwn3.js} +1 -1
  158. package/bundle/chunk-ev4gw5k6.js +2 -0
  159. package/bundle/chunk-ew2dxm43.js +2 -0
  160. package/bundle/{chunk-nk5vrenn.js → chunk-ewde5bss.js} +2 -2
  161. package/bundle/{chunk-8gpjmj42.js → chunk-fbd971t7.js} +3 -3
  162. package/bundle/{chunk-gbnf7zf9.js → chunk-ff031crt.js} +1 -1
  163. package/bundle/chunk-ffp4wg27.js +2 -0
  164. package/bundle/{chunk-6y58jzak.js → chunk-fj87htwn.js} +1 -1
  165. package/bundle/{chunk-rxnd79h7.js → chunk-fmvmp278.js} +1 -1
  166. package/bundle/{chunk-6mnk5sg3.js → chunk-fqzfytjk.js} +1 -1
  167. package/bundle/{chunk-c2ns2csn.js → chunk-g0x6q2ks.js} +1 -1
  168. package/bundle/{chunk-mp1x10t5.js → chunk-g3y5kvg6.js} +2 -2
  169. package/bundle/{chunk-3vae1s42.js → chunk-g6ffx794.js} +1 -1
  170. package/bundle/{chunk-d1fv2c7s.js → chunk-gcpwm7b5.js} +2 -2
  171. package/bundle/{chunk-pxm0x3e0.js → chunk-gdawpkxs.js} +2 -2
  172. package/bundle/{chunk-jbcqhw3x.js → chunk-gjmxrz0v.js} +2 -2
  173. package/bundle/{chunk-vbb1jg02.js → chunk-gtmtvjwc.js} +1 -1
  174. package/bundle/{chunk-7hdb1fhq.js → chunk-gvc1mqrs.js} +2 -2
  175. package/bundle/{chunk-56yp5v0w.js → chunk-gw2fz5ry.js} +1 -1
  176. package/bundle/{chunk-g08qj9z3.js → chunk-h1p3xcfp.js} +2 -2
  177. package/bundle/{chunk-c9cngded.js → chunk-h2vtypa5.js} +1 -1
  178. package/bundle/{chunk-m4j6t713.js → chunk-h9tcpbr7.js} +1 -1
  179. package/bundle/{chunk-2fbkw84y.js → chunk-hcd0k14e.js} +2 -2
  180. package/bundle/{chunk-s05hqtx1.js → chunk-hd6sd912.js} +1 -1
  181. package/bundle/{chunk-6wjdhvdf.js → chunk-hgcnzsd5.js} +1 -1
  182. package/bundle/chunk-hjy90gt2.js +2 -0
  183. package/bundle/{chunk-2zjet9tx.js → chunk-hk8m8vax.js} +2 -2
  184. package/bundle/chunk-hmden934.js +2 -0
  185. package/bundle/{chunk-0tkznq75.js → chunk-hnbtfpb7.js} +1 -1
  186. package/bundle/{chunk-ngyv4fhn.js → chunk-hp9q7vvq.js} +2 -2
  187. package/bundle/{chunk-kc8n5cgb.js → chunk-hrfdrz36.js} +1 -1
  188. package/bundle/chunk-hsm8fbb1.js +2 -0
  189. package/bundle/{chunk-yce8ph5b.js → chunk-hsmtjb4d.js} +2 -2
  190. package/bundle/chunk-hz1xfedb.js +2 -0
  191. package/bundle/{chunk-qq9yc2tp.js → chunk-hzzvmr41.js} +2 -2
  192. package/bundle/chunk-ja9y478k.js +2 -0
  193. package/bundle/chunk-jam7xyjf.js +2 -0
  194. package/bundle/{chunk-4a9jqe5s.js → chunk-jcn8bg31.js} +1 -1
  195. package/bundle/{chunk-2dmcpqak.js → chunk-jf4zyy7r.js} +1 -1
  196. package/bundle/{chunk-yspstxkq.js → chunk-jmrqp50k.js} +1 -1
  197. package/bundle/{chunk-qm9fm5ja.js → chunk-jrh028na.js} +2 -2
  198. package/bundle/{chunk-r81w6skn.js → chunk-jt94rhev.js} +1 -1
  199. package/bundle/{chunk-cs825mxr.js → chunk-k3x6z5q1.js} +1 -1
  200. package/bundle/chunk-k51qphrk.js +2 -0
  201. package/bundle/chunk-kee7xpe3.js +2 -0
  202. package/bundle/{chunk-61t4g8bh.js → chunk-m18pxkdg.js} +4 -4
  203. package/bundle/{chunk-npdgfqaw.js → chunk-map852em.js} +1 -1
  204. package/bundle/{chunk-wd2xmkdp.js → chunk-mbma071k.js} +2 -2
  205. package/bundle/{chunk-qyan69nb.js → chunk-mchf2bcc.js} +2 -2
  206. package/bundle/{chunk-x50adh71.js → chunk-mfg4stzn.js} +1 -1
  207. package/bundle/{chunk-snf6ahg7.js → chunk-mgff8bcx.js} +1 -1
  208. package/bundle/{chunk-81dvy370.js → chunk-mhn0a828.js} +1 -1
  209. package/bundle/{chunk-yh1t6jrj.js → chunk-mp5m0acf.js} +1 -1
  210. package/bundle/{chunk-1m78yy4k.js → chunk-mqtj38j9.js} +1 -1
  211. package/bundle/{chunk-cxtwavyf.js → chunk-mrh5q4s6.js} +2 -2
  212. package/bundle/{chunk-xcmbxny8.js → chunk-msbe5rb7.js} +1 -1
  213. package/bundle/{chunk-b8rzn48q.js → chunk-n73ckwr7.js} +1 -1
  214. package/bundle/{chunk-gqgjybjc.js → chunk-nn2hbew8.js} +1 -1
  215. package/bundle/{chunk-9nf5650d.js → chunk-npryn3en.js} +1 -1
  216. package/bundle/chunk-p13eeqe4.js +2 -0
  217. package/bundle/{chunk-a70m6kyn.js → chunk-p3tcw42f.js} +1 -1
  218. package/bundle/chunk-p45f2nyb.js +2 -0
  219. package/bundle/{chunk-q26s0wb5.js → chunk-p863r97y.js} +1 -1
  220. package/bundle/{chunk-tjfer79w.js → chunk-paqy0c2v.js} +1 -1
  221. package/bundle/{chunk-vsfj16v9.js → chunk-pfen4ekj.js} +2 -2
  222. package/bundle/{chunk-5p2r8bxx.js → chunk-pzn7cade.js} +1 -1
  223. package/bundle/{chunk-jt6bvxtr.js → chunk-q65qzc9w.js} +1 -1
  224. package/bundle/{chunk-h0pvxre5.js → chunk-q7wc3frq.js} +1 -1
  225. package/bundle/{chunk-141p12c4.js → chunk-qa38xchd.js} +1 -1
  226. package/bundle/{chunk-f0ab2f28.js → chunk-qqftaqza.js} +1 -1
  227. package/bundle/{chunk-d9w2bn2e.js → chunk-qvwx32p9.js} +2 -2
  228. package/bundle/chunk-qw9whsy2.js +2 -0
  229. package/bundle/{chunk-8nnajdwf.js → chunk-r65zw08x.js} +3 -3
  230. package/bundle/chunk-r77kpzdv.js +2 -0
  231. package/bundle/{chunk-e3mrw0k7.js → chunk-r9hsd9pw.js} +1 -1
  232. package/bundle/chunk-rc95tp19.js +2 -0
  233. package/bundle/{chunk-xv03hbgj.js → chunk-rf9pjbg3.js} +1 -1
  234. package/bundle/chunk-rmh2fhqy.js +2 -0
  235. package/bundle/{chunk-t9pq363q.js → chunk-rqdfmbns.js} +2 -2
  236. package/bundle/{chunk-ev6jwt7q.js → chunk-rr94dpe9.js} +1 -1
  237. package/bundle/chunk-rrn86a8w.js +2 -0
  238. package/bundle/{chunk-kk850sdw.js → chunk-rwt0rwvn.js} +2 -2
  239. package/bundle/{chunk-f6btedtt.js → chunk-s7ypkpg2.js} +1 -1
  240. package/bundle/{chunk-hgm8yfcb.js → chunk-s81ck6bw.js} +1 -1
  241. package/bundle/chunk-s8v0h63x.js +2 -0
  242. package/bundle/chunk-sh4mngre.js +2 -0
  243. package/bundle/chunk-shqqngm8.js +2 -0
  244. package/bundle/chunk-sjfcwykr.js +2 -0
  245. package/bundle/{chunk-q7s6z0nz.js → chunk-sn15skh8.js} +1 -1
  246. package/bundle/chunk-sv01v0n0.js +2 -0
  247. package/bundle/{chunk-dzma8zvf.js → chunk-sv27ep93.js} +2 -2
  248. package/bundle/{chunk-q8fjktv4.js → chunk-t1e52h0k.js} +1 -1
  249. package/bundle/{chunk-zskdxbbh.js → chunk-t1hw67x4.js} +1 -1
  250. package/bundle/{chunk-9pj10pgd.js → chunk-t4kma6mq.js} +2 -2
  251. package/bundle/{chunk-8v60bqm0.js → chunk-t66gerft.js} +1 -1
  252. package/bundle/{chunk-z69tt390.js → chunk-t7gp6mjm.js} +1 -1
  253. package/bundle/{chunk-dd461rg3.js → chunk-tks3qzsw.js} +1 -1
  254. package/bundle/{chunk-1h96bk6p.js → chunk-tn0sfsks.js} +2 -2
  255. package/bundle/chunk-tn8hsd2c.js +2 -0
  256. package/bundle/chunk-tqsx7w8z.js +2 -0
  257. package/bundle/{chunk-tdevq564.js → chunk-trg0zg0q.js} +1 -1
  258. package/bundle/chunk-tyt1negg.js +2 -0
  259. package/bundle/chunk-tz1sv9kt.js +3 -0
  260. package/bundle/{chunk-p506eydh.js → chunk-tzw56029.js} +1 -1
  261. package/bundle/{chunk-t5wdstzv.js → chunk-v30fmrz0.js} +1 -1
  262. package/bundle/chunk-v580zwpf.js +3 -0
  263. package/bundle/{chunk-6gbdvz6p.js → chunk-v6djkm35.js} +1 -1
  264. package/bundle/{chunk-h6z86aay.js → chunk-v9yxkbz7.js} +1 -1
  265. package/bundle/chunk-vdv6cyh0.js +2 -0
  266. package/bundle/{chunk-z0m1qm7j.js → chunk-vqxyk6as.js} +2 -2
  267. package/bundle/{chunk-se8d5xg9.js → chunk-vr7525pa.js} +1 -1
  268. package/bundle/chunk-vsk8yfxp.js +2 -0
  269. package/bundle/{chunk-vjt6mh10.js → chunk-vvcyvdnk.js} +2 -2
  270. package/bundle/chunk-vvgmkjym.js +2 -0
  271. package/bundle/{chunk-0bhzhh7s.js → chunk-vvmvryh1.js} +2 -2
  272. package/bundle/{chunk-eme9xmh3.js → chunk-vzf04vad.js} +1 -1
  273. package/bundle/{chunk-xstxdw7v.js → chunk-vzj91hg8.js} +1 -1
  274. package/bundle/chunk-w0zyex7f.js +2 -0
  275. package/bundle/{chunk-e72jwbfc.js → chunk-w264gs2c.js} +1 -1
  276. package/bundle/chunk-w623r5kb.js +3 -0
  277. package/bundle/{chunk-5rqjze1g.js → chunk-wac35a6p.js} +1 -1
  278. package/bundle/chunk-wkxt9v7s.js +2 -0
  279. package/bundle/{chunk-gb51fn3r.js → chunk-wqm1vawg.js} +1 -1
  280. package/bundle/{chunk-pchv413c.js → chunk-wrkt670m.js} +2 -2
  281. package/bundle/{chunk-2y5bthrp.js → chunk-wspm2k19.js} +1 -1
  282. package/bundle/chunk-wwf6zacw.js +2 -0
  283. package/bundle/{chunk-nqk8d62j.js → chunk-wwtyrgga.js} +1 -1
  284. package/bundle/{chunk-ajnzv5jt.js → chunk-x0wy15q9.js} +2 -2
  285. package/bundle/chunk-x9c8eddk.js +2 -0
  286. package/bundle/{chunk-ztvkzex1.js → chunk-xaewye8w.js} +1 -1
  287. package/bundle/{chunk-gq3zb4wv.js → chunk-xgdst5n5.js} +2 -2
  288. package/bundle/{chunk-3yfjgks3.js → chunk-xgphhnpk.js} +1 -1
  289. package/bundle/chunk-xjed8t2h.js +2 -0
  290. package/bundle/{chunk-qtyapmy7.js → chunk-xn6mwsc9.js} +1 -1
  291. package/bundle/{chunk-v0hnn7nb.js → chunk-xpz5mnwz.js} +1 -1
  292. package/bundle/{chunk-6axm2qtj.js → chunk-xrb46v1e.js} +1 -1
  293. package/bundle/chunk-xxhta1tm.js +2 -0
  294. package/bundle/{chunk-532fnfmw.js → chunk-y5m9c5ek.js} +2 -2
  295. package/bundle/{chunk-9s5h0f1y.js → chunk-y9kjt2jj.js} +2 -2
  296. package/bundle/{chunk-vbfc0wgv.js → chunk-y9mxwwz7.js} +2 -2
  297. package/bundle/{chunk-td9hm9be.js → chunk-ycth54ja.js} +1 -1
  298. package/bundle/{chunk-pky8h8rh.js → chunk-ydz7387e.js} +1 -1
  299. package/bundle/{chunk-f3y5kr76.js → chunk-yg5azmxb.js} +2 -2
  300. package/bundle/{chunk-j7637cwg.js → chunk-yhe5qz48.js} +2 -2
  301. package/bundle/chunk-yhj6858v.js +2 -0
  302. package/bundle/chunk-yq3byrpv.js +2 -0
  303. package/bundle/{chunk-3mtjxmw1.js → chunk-yqvqzg7b.js} +1 -1
  304. package/bundle/chunk-ys8ajwys.js +2 -0
  305. package/bundle/chunk-yzt7p956.js +2 -0
  306. package/bundle/{chunk-2cvwrabw.js → chunk-yzxcjr6y.js} +2 -2
  307. package/bundle/{chunk-f6vy70p6.js → chunk-z1psybn1.js} +2 -2
  308. package/bundle/{chunk-xj0zc9za.js → chunk-z2cnd2cp.js} +1 -1
  309. package/bundle/{chunk-s27cz24e.js → chunk-z4gczap3.js} +52 -52
  310. package/bundle/chunk-z56cb3fs.js +2 -0
  311. package/bundle/{chunk-qdafm7qg.js → chunk-z66xdxkg.js} +2 -2
  312. package/bundle/{chunk-v16n1fep.js → chunk-z6f54x4k.js} +2 -2
  313. package/bundle/{chunk-kds2g7r2.js → chunk-z6qb4gt5.js} +1 -1
  314. package/bundle/{chunk-q4mtwv1w.js → chunk-zgj7jx8k.js} +2 -2
  315. package/bundle/{chunk-mn5cacf6.js → chunk-zhddj91f.js} +2 -2
  316. package/bundle/chunk-zhypknyg.js +2 -0
  317. package/bundle/index.js +3 -3
  318. package/bundle/parser.worker.js +2 -2
  319. package/bundle/worker.js +1 -1
  320. package/package.json +3 -3
  321. package/bundle/chunk-062chtrq.js +0 -2
  322. package/bundle/chunk-062vs7bp.js +0 -2
  323. package/bundle/chunk-08g14hmz.js +0 -2
  324. package/bundle/chunk-0w2v8dfy.js +0 -2
  325. package/bundle/chunk-10fr7a2y.js +0 -2
  326. package/bundle/chunk-15bjhfav.js +0 -3
  327. package/bundle/chunk-1hv61m11.js +0 -2
  328. package/bundle/chunk-2mkvx8b2.js +0 -2
  329. package/bundle/chunk-2rykfc3a.js +0 -2
  330. package/bundle/chunk-2w5hx4fs.js +0 -2
  331. package/bundle/chunk-2yy63sxz.js +0 -2
  332. package/bundle/chunk-2z3fe4qw.js +0 -2
  333. package/bundle/chunk-361cmmrp.js +0 -2
  334. package/bundle/chunk-3r6dq1h3.js +0 -2
  335. package/bundle/chunk-4a12wv2m.js +0 -2
  336. package/bundle/chunk-547a55ba.js +0 -2
  337. package/bundle/chunk-5ztmc770.js +0 -2
  338. package/bundle/chunk-62x3r2q8.js +0 -2
  339. package/bundle/chunk-6th7vpwm.js +0 -2
  340. package/bundle/chunk-6ybh5smv.js +0 -2
  341. package/bundle/chunk-73kprndw.js +0 -2
  342. package/bundle/chunk-79fr19xf.js +0 -2
  343. package/bundle/chunk-7ezr478e.js +0 -2
  344. package/bundle/chunk-7gj1vqyj.js +0 -2
  345. package/bundle/chunk-7ywfkwb4.js +0 -2
  346. package/bundle/chunk-85fnnwm2.js +0 -2
  347. package/bundle/chunk-89fwh84w.js +0 -2
  348. package/bundle/chunk-8e724g3k.js +0 -2
  349. package/bundle/chunk-9894a2yn.js +0 -2
  350. package/bundle/chunk-98ye2nwt.js +0 -2
  351. package/bundle/chunk-9s4excg8.js +0 -2
  352. package/bundle/chunk-aetgcegz.js +0 -2
  353. package/bundle/chunk-agas0nay.js +0 -2
  354. package/bundle/chunk-ayknzc4m.js +0 -2
  355. package/bundle/chunk-b2ybst88.js +0 -2
  356. package/bundle/chunk-bd5vtjd7.js +0 -2
  357. package/bundle/chunk-bjqqk6jt.js +0 -2
  358. package/bundle/chunk-cpkcdykz.js +0 -2
  359. package/bundle/chunk-cyafm8d6.js +0 -2
  360. package/bundle/chunk-d4316r53.js +0 -2
  361. package/bundle/chunk-d8ym7mcg.js +0 -2
  362. package/bundle/chunk-dnpjxjkp.js +0 -2
  363. package/bundle/chunk-e5gjqtby.js +0 -2
  364. package/bundle/chunk-ee3mqzms.js +0 -2
  365. package/bundle/chunk-er5f61s5.js +0 -2
  366. package/bundle/chunk-er716522.js +0 -2
  367. package/bundle/chunk-ez3gacqe.js +0 -2
  368. package/bundle/chunk-fkc7wf1p.js +0 -2
  369. package/bundle/chunk-fm6z8nqb.js +0 -2
  370. package/bundle/chunk-g0qwm23d.js +0 -2
  371. package/bundle/chunk-g4yn8cj8.js +0 -2
  372. package/bundle/chunk-gsez13bg.js +0 -3
  373. package/bundle/chunk-h1spsy3y.js +0 -2
  374. package/bundle/chunk-h8gkv40j.js +0 -2
  375. package/bundle/chunk-j59kmb49.js +0 -2
  376. package/bundle/chunk-jv37ghev.js +0 -2
  377. package/bundle/chunk-k3hcb6qf.js +0 -2
  378. package/bundle/chunk-k5d822n2.js +0 -3
  379. package/bundle/chunk-m8ytbq04.js +0 -2
  380. package/bundle/chunk-mf9nc4xz.js +0 -2
  381. package/bundle/chunk-mxby91bj.js +0 -2
  382. package/bundle/chunk-mzv1gh6f.js +0 -2
  383. package/bundle/chunk-n0hsvvw8.js +0 -2
  384. package/bundle/chunk-nm1v9z14.js +0 -2
  385. package/bundle/chunk-p7nstcxa.js +0 -2
  386. package/bundle/chunk-pfwkvv7g.js +0 -2
  387. package/bundle/chunk-pn1jz8qj.js +0 -2
  388. package/bundle/chunk-pqvmtfk7.js +0 -2
  389. package/bundle/chunk-prgw26g3.js +0 -2
  390. package/bundle/chunk-pv9ty6v7.js +0 -2
  391. package/bundle/chunk-q4rstre7.js +0 -2
  392. package/bundle/chunk-q6jk2v6g.js +0 -2
  393. package/bundle/chunk-qd43npx3.js +0 -2
  394. package/bundle/chunk-qdb21y83.js +0 -2
  395. package/bundle/chunk-qeksaefy.js +0 -2
  396. package/bundle/chunk-r7t9yb9d.js +0 -2
  397. package/bundle/chunk-sdv3a4w3.js +0 -2
  398. package/bundle/chunk-sk89becn.js +0 -2
  399. package/bundle/chunk-tc0996xz.js +0 -2
  400. package/bundle/chunk-tfs50mgj.js +0 -2
  401. package/bundle/chunk-thecq33z.js +0 -3
  402. package/bundle/chunk-tjvtp9d9.js +0 -2
  403. package/bundle/chunk-tkm9m3n0.js +0 -2
  404. package/bundle/chunk-v1s1rcqx.js +0 -2
  405. package/bundle/chunk-v4dt4062.js +0 -2
  406. package/bundle/chunk-wgrq86kd.js +0 -2
  407. package/bundle/chunk-x8ks2bn7.js +0 -2
  408. package/bundle/chunk-xy2ty5h5.js +0 -8
  409. package/bundle/chunk-z0383stv.js +0 -2
  410. package/bundle/chunk-zewrmk8x.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import"./chunk-djfrkbd5.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-0xf12tf3.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,5 +1,5 @@
1
1
  // @bun
2
- import{Vo as MJ,Zo as $J,pp as kJ}from"./chunk-wh2qqhep.js";import{Ep as qJ}from"./chunk-vy93mn7d.js";import{at as F}from"./chunk-8peby2d1.js";import{Et as LJ}from"./chunk-0bhzhh7s.js";import{Lt as e,Tt as SJ}from"./chunk-7s0nq2aa.js";import{fu as OJ,iu as QJ}from"./chunk-cxtwavyf.js";var cJ=0.9,mJ=256,VJ="[Earlier tool result removed to fit the request size limit]",c;function h(J){return Buffer.byteLength(JSON.stringify(J),"utf8")}function NJ(){return e.QITQODE_QLEX_MAX_REQUEST_BYTES??c}function JJ(J){let K=e.QITQODE_QLEX_MAX_REQUEST_BYTES;if(K!==void 0)return K;let Z=Math.max(1,Math.min(Math.floor(J*cJ),Math.floor(J)-1));return c=c===void 0?Z:Math.min(c,Z),c}function m(J,K){return!!J&&typeof J==="object"&&J.role===K}function DJ(J){let K=[],Z=0;while(Z<J.length){let $=Z,z=J[Z];if(Z++,m(z,"assistant")&&Array.isArray(z?.tool_calls)&&z.tool_calls.length>0)while(Z<J.length&&m(J[Z],"tool"))Z++;K.push({start:$,end:Z})}return K}function WJ(J,K){if(K.length===0)return[];let Z=-1;for(let $=K.length-1;$>=0;$--){let z=K[$],X=!1;for(let Y=z.start;Y<z.end;Y++)if(m(J[Y],"user"))X=!0;if(X){Z=$;break}}return K.filter(($,z)=>{if(z===K.length-1)return!1;if(z===Z)return!1;if($.start===0&&m(J[0],"system"))return!1;return!0})}function KJ(J,K){let Z=h(J),$={toolResultsElided:0,unitsDropped:0},z=()=>({body:J,bytes:Z,originalBytes:Z,reduced:!1,actions:$});if(!J||typeof J!=="object")return z();let X=J.messages;if(!Array.isArray(X))return z();let Y=X.map((j)=>j&&typeof j==="object"?{...j}:j),H=()=>({...J,messages:Y}),V=()=>h(H())<=K;{let j=Y;for(let N of WJ(j,DJ(j))){let L=!1;for(let O=N.start;O<N.end;O++){let k=j[O];if(!m(k,"tool"))continue;let w=k?.content;if(typeof w!=="string"||w.length<mJ)continue;if(w===VJ)continue;j[O]={...k,content:VJ},$.toolResultsElided++,L=!0}if(L&&V())break}}if(!V())for(;;){let j=Y,L=WJ(j,DJ(j))[0];if(!L)break;if(Y=[...j.slice(0,L.start),...j.slice(L.end)],$.unitsDropped++,V())break}let U=H(),P=h(U);return{body:U,bytes:P,originalBytes:Z,reduced:P<Z&&P<=K,actions:$}}import y from"fs/promises";import EJ from"path";import{randomUUID as lJ}from"crypto";var E=SJ({service:"provider.qlex"}),dJ=F.streamUrl(),iJ=F.omniqueryBaseUrl()+"/runOrchestrated",rJ=new Set(["rate_limited","transient","stream_truncated","stream_failed"]);function l(J,K){return K!==!1&&rJ.has(J)}function a(J){return typeof J==="string"&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/.test(J)?J:void 0}function x(J,K){let Z=J;if(K.status!==void 0)Z.status=K.status;if(K.upstreamCode!==void 0)Z.upstreamCode=K.upstreamCode;let $=a(K.requestId);if($!==void 0)Z.requestId=$;if(Z.category=K.category,Z.retryable=l(K.category,K.retryable),K.outputBudgetRecoveryAvailable!==void 0)Z.outputBudgetRecoveryAvailable=K.outputBudgetRecoveryAvailable;if(K.outputBudgetRecoveryTokens!==void 0)Z.outputBudgetRecoveryTokens=K.outputBudgetRecoveryTokens}function b(J,K){return{...J,...K}}class wJ extends Error{name="QlexNotLoggedInError";constructor(J){super(F.copy().notLoggedIn);x(this,b({category:"invalid_credentials",retryable:!1},J))}}class RJ extends Error{name="QlexInsufficientBalanceError";constructor(J,K){super(F.copy().insufficientBalance(J));x(this,b({status:402,category:"billing",retryable:!1},K))}}class CJ extends Error{name="QlexRateLimitError";constructor(J){super(F.copy().rateLimit);x(this,b({status:429,category:"rate_limited",retryable:!0},J))}}class AJ extends Error{name="QlexInvalidCredentialsError";constructor(J,K){super(F.copy().invalidCredentials(J));x(this,b({status:401,category:"invalid_credentials",retryable:!1},K))}}class TJ extends Error{name="QlexRequestRejectedError";constructor(J,K,Z){super(F.copy().requestRejected(J,K));x(this,b({status:400,category:"request_rejected",retryable:!1},Z))}}class t extends Error{name="QlexRequestTooLargeError";stage;constructor(J="irreducible",K,Z){super(J==="after-reduction"?F.copy().requestTooLargeAfterReduction(K):F.copy().requestTooLargeIrreducible(K));this.stage=J,x(this,b({status:413,category:"request_too_large",retryable:!1},Z))}}class BJ extends Error{name="QlexRequestNotSentError";constructor(J,K){super(F.copy().requestNotSent(J));x(this,b({category:"request_rejected",retryable:!1},K))}}class u extends Error{name="QlexGatewayError";constructor(J,K){super(F.copy().gatewayUnavailable(J));x(this,b({category:"gateway_routing",retryable:!1},K))}}var oJ=60000,sJ=320000;function sK(J){return F.sanitizeUpstreamError(J)}class v extends Error{name="QlexStreamError";constructor(J,K,Z){let $=b({category:"unknown",retryable:!1},K);super($.category==="output_budget_exhausted"?F.copy().outputBudgetExhausted():$.category==="empty_output"?F.copy().emptyOutput():$.category==="stream_truncated"?F.copy().streamCutOff(Z):$.category==="stream_failed"?F.copy().streamFailedAfterRetries(Z):F.copy().streamFailed(J));x(this,$),LJ(this)}}var aJ=[{match:/\b(unauthori[sz]ed|forbidden|invalid[ _-]?(api[ _-]?key|token|credential)|expired[ _-]?token|authentication[ _-]?(failed|error)|401|403)\b/i,category:"invalid_credentials",retryable:!1},{match:/(output (?:token )?budget|maximum output tokens|max_tokens|finish[_ -]?reason.{0,20}(length|budget)|reasoning.{0,20}(budget|tokens))/i,category:"output_budget_exhausted",retryable:!1},{match:/\b(no visible output|empty output|produced no (?:visible )?(?:text|output)|nothing to display)\b/i,category:"empty_output",retryable:!1},{match:/\b(insufficient[ _-]?(credits?|qredits?|balance|funds)|payment[ _-]?required|quota[ _-]?exceeded|out[ _-]?of[ _-]?(credits?|qredits?)|402)\b/i,category:"billing",retryable:!1},{match:/\b(rate[ _-]?limit(ed|s)?|too[ _-]?many[ _-]?requests|429)\b/i,category:"rate_limited",retryable:!0},{match:/(unexpected end of (json|input|stream|data)|premature (close|end)|socket hang ?up|socket connection was closed unexpectedly|incomplete (response|output|json|message)|truncated|stream (ended|closed|terminated) (early|unexpectedly|prematurely)|\bECONNRESET\b|\bEPIPE\b)/i,category:"stream_truncated",retryable:!0},{match:/\b(overloaded|at capacity|service[ _-]?unavailable|temporarily[ _-]?unavailable|bad[ _-]?gateway|gateway[ _-]?time(d[ _-]?out|out)|timed[ _-]?out|502|503|504)\b/i,category:"transient",retryable:!0}],tJ={ERR_EMPTY_RESULT:{category:"empty_output",retryable:!1},ERR_TRUNCATED_OUTPUT:{category:"stream_truncated",retryable:!0},ERR_STREAM:{category:"stream_failed",retryable:!0}},eJ=/^\s*(ERR_[A-Z0-9_]+)\b(?:\s*(?:[\u2014\u2013:-]\s*)?)?/i,JK=/\b(req_[A-Za-z0-9][A-Za-z0-9_-]*)\b/;function GJ(J){let K=J??"",Z=eJ.exec(K),$=Z?K.slice(Z[0].length):K,z=IJ($),X=Z?.[1]?.toUpperCase()??z.upstreamCode,Y=z.requestId??a(JK.exec(K)?.[1]),H=z.retryable;if(X!==void 0){let V=tJ[X];if(V!==void 0)return{...V,upstreamCode:X,retryable:l(V.category,H??V.retryable),...Y?{requestId:Y}:{}}}for(let V of aJ)if(V.match.test($))return{category:V.category,retryable:l(V.category,H??V.retryable),...X?{upstreamCode:X}:{},...Y?{requestId:Y}:{}};return{category:"unknown",retryable:l("unknown",H),...X?{upstreamCode:X}:{},...Y?{requestId:Y}:{}}}function KK(J){return MJ(J)}function IJ(J){try{let K=JSON.parse(J);if(!K||typeof K!=="object"||Array.isArray(K))return{};let Z=K,$=Z.error&&typeof Z.error==="object"&&!Array.isArray(Z.error)?Z.error:void 0,z=Z.details&&typeof Z.details==="object"&&!Array.isArray(Z.details)?Z.details:void 0,X=[Z.requestId,$?.requestId,z?.requestId].map(a).find((V)=>V!==void 0),Y=Z.retryable===!1||$?.retryable===!1?!1:Z.retryable===!0||$?.retryable===!0?!0:void 0,H=$?.code??Z.code;return{...X!==void 0?{requestId:X}:{},...Y!==void 0?{retryable:Y}:{},...typeof H==="string"&&/^[A-Z][A-Z0-9_]{0,63}$/i.test(H)?{upstreamCode:H.toUpperCase()}:{}}}catch{return{}}}function xJ(J,K){let Z,$,z,X=!1;try{let N=JSON.parse(K);if(N&&typeof N==="object"){let L=N.error&&typeof N.error==="object"?N.error:void 0;if(typeof L?.code==="string")Z=L.code;else if(typeof N.code==="string")Z=N.code;if(typeof L?.message==="string")$=L.message;else if(typeof N.message==="string")$=N.message;if(typeof N.details?.field==="string")z=N.details.field}}catch(N){X=/^\s*[\[{]/.test(K)&&(ZK(K)||/unexpected end|end of json|unterminated string/i.test(String(N)))}let Y=Z?.toUpperCase()??"",{requestId:H,retryable:V}=IJ(K),U=(()=>{if(X)return"stream_truncated";if(J===402)return"billing";if(J===413)return"request_too_large";if(J===429)return"rate_limited";if(J===401||J===403)return Y==="ERR_GATEWAY_REQUIRED"||KK(K)?"gateway_routing":"invalid_credentials";if(Y.includes("CONFIG"))return"configuration";if(J>=500)return"transient";if(J>=400)return"request_rejected";return"unknown"})(),P=l(U,V),j={status:J,category:U,retryable:P};if(Z!==void 0)j.upstreamCode=Z;if($!==void 0)j.upstreamMessage=$;if(z!==void 0)j.field=z;if(H!==void 0)j.requestId=H;return j}function ZK(J){let K=0,Z=!1,$=!1;for(let z of J){if(Z){if($)$=!1;else if(z==="\\")$=!0;else if(z==='"')Z=!1;continue}if(z==='"')Z=!0;else if(z==="{"||z==="[")K++;else if(z==="}"||z==="]")K--;if(K<0)return!1}return Z||K>0}function $K(J){let K=F.tierBudgetFacts(J.tier),Z=J.advisory,$=Z?.tierOutputLimit??K?.output;if(J.requestedTotal!==void 0)return{total:$===void 0?J.requestedTotal:Math.min(J.requestedTotal,$)};if(!Z&&!K)return{};let z=Z?.reasoningReserveTokens??K?.reasoningReserve??0,X=Z?.visibleOutputFloorTokens??K?.visibleOutputFloor??0,Y=Z?.recommendedTotalTokens??Z?.tierRecommendedStepTokens??K?.recommendedTotal??K?.recommendedStep??$,H=Z?.viableTotalFloorTokens??K?.viableTotalFloor??z+X,V=Y===void 0?H:Math.max(Y,H),U=Z?.reasoningReported??K?.reasoning;return{total:$===void 0?V:Math.min(V,$),reasoningBudget:U&&z>0?Math.min(z,V):void 0}}var zK=new Set(["coding","agent","research","review","chat"]);function XK(J){if(J===void 0)return;if(typeof J==="string"&&zK.has(J))return J;throw Error(`invalid Qortex posture: ${String(J)}`)}function YK(J){if(J===void 0)return;let K=Array.isArray(J)?J:[J];if(K.every((Z)=>typeof Z==="string"&&/^[^/\s]+\/[^/\s]+$/.test(Z)))return Array.isArray(J)?K:J;throw Error(`invalid Qortex directive registry key: ${String(J)}`)}function s(J){if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if(K&&typeof K==="object"){let Z=K;if(typeof Z.text==="string")return Z.text;if(typeof Z.content==="string")return Z.content}return""}).join("");if(J===void 0||J===null)return"";return String(J)}var HK="[Tool call]",VK="[Tool returned no output]";function bJ(J){if(!Array.isArray(J))return{messages:J,dropped:[]};let K=[];return{messages:J.flatMap(($,z)=>{if(!$||typeof $!=="object")return K.push({index:z,role:typeof $,reason:"not-an-object"}),[];let X=$,Y=s(X.content);if(Y.trim().length>0)return[{...X,content:Y}];if(X.role==="assistant"&&Array.isArray(X.tool_calls)&&X.tool_calls.length>0)return[{...X,content:HK}];if(X.role==="tool"&&typeof X.tool_call_id==="string"&&X.tool_call_id.trim().length>0)return[{...X,content:VK}];return K.push({index:z,role:typeof X.role==="string"?X.role:"unknown",reason:"empty-content"}),[]}),dropped:K}}function DK(J){return bJ(J).messages}function WK(J){if(!Array.isArray(J))return!1;return J.some((K)=>!!K&&typeof K==="object"&&K.role==="user")}function NK(J){if(!Array.isArray(J))return!1;return J.some((K)=>{if(!K||typeof K!=="object")return!1;let Z=K;if(Z.role!=="user")return!1;return s(Z.content).trim().length>0})}function GK(J){if(!Array.isArray(J))return J;let K=(X)=>!!X&&typeof X==="object"&&X.role==="system",Z=0;while(Z<J.length&&K(J[Z]))Z++;if(Z<=1)return J;let $=J.slice(0,Z),z=$.map((X)=>typeof X.content==="string"?X.content:String(X.content??"")).filter((X)=>X.length>0).join(`
2
+ import{Wo as MJ,_o as $J,qp as kJ}from"./chunk-6wt8g6mc.js";import{Fp as qJ}from"./chunk-1rafe6f5.js";import{bt as F}from"./chunk-ajykvcas.js";import{Ft as LJ}from"./chunk-vvmvryh1.js";import{Mt as e,Ut as SJ}from"./chunk-6g3bzap8.js";import{gu as OJ,ju as QJ}from"./chunk-mrh5q4s6.js";var cJ=0.9,mJ=256,VJ="[Earlier tool result removed to fit the request size limit]",c;function h(J){return Buffer.byteLength(JSON.stringify(J),"utf8")}function NJ(){return e.QITQODE_QLEX_MAX_REQUEST_BYTES??c}function JJ(J){let K=e.QITQODE_QLEX_MAX_REQUEST_BYTES;if(K!==void 0)return K;let Z=Math.max(1,Math.min(Math.floor(J*cJ),Math.floor(J)-1));return c=c===void 0?Z:Math.min(c,Z),c}function m(J,K){return!!J&&typeof J==="object"&&J.role===K}function DJ(J){let K=[],Z=0;while(Z<J.length){let $=Z,z=J[Z];if(Z++,m(z,"assistant")&&Array.isArray(z?.tool_calls)&&z.tool_calls.length>0)while(Z<J.length&&m(J[Z],"tool"))Z++;K.push({start:$,end:Z})}return K}function WJ(J,K){if(K.length===0)return[];let Z=-1;for(let $=K.length-1;$>=0;$--){let z=K[$],X=!1;for(let Y=z.start;Y<z.end;Y++)if(m(J[Y],"user"))X=!0;if(X){Z=$;break}}return K.filter(($,z)=>{if(z===K.length-1)return!1;if(z===Z)return!1;if($.start===0&&m(J[0],"system"))return!1;return!0})}function KJ(J,K){let Z=h(J),$={toolResultsElided:0,unitsDropped:0},z=()=>({body:J,bytes:Z,originalBytes:Z,reduced:!1,actions:$});if(!J||typeof J!=="object")return z();let X=J.messages;if(!Array.isArray(X))return z();let Y=X.map((j)=>j&&typeof j==="object"?{...j}:j),H=()=>({...J,messages:Y}),V=()=>h(H())<=K;{let j=Y;for(let N of WJ(j,DJ(j))){let L=!1;for(let O=N.start;O<N.end;O++){let k=j[O];if(!m(k,"tool"))continue;let w=k?.content;if(typeof w!=="string"||w.length<mJ)continue;if(w===VJ)continue;j[O]={...k,content:VJ},$.toolResultsElided++,L=!0}if(L&&V())break}}if(!V())for(;;){let j=Y,L=WJ(j,DJ(j))[0];if(!L)break;if(Y=[...j.slice(0,L.start),...j.slice(L.end)],$.unitsDropped++,V())break}let U=H(),P=h(U);return{body:U,bytes:P,originalBytes:Z,reduced:P<Z&&P<=K,actions:$}}import y from"fs/promises";import EJ from"path";import{randomUUID as lJ}from"crypto";var E=SJ({service:"provider.qlex"}),dJ=F.streamUrl(),iJ=F.omniqueryBaseUrl()+"/runOrchestrated",rJ=new Set(["rate_limited","transient","stream_truncated","stream_failed"]);function l(J,K){return K!==!1&&rJ.has(J)}function a(J){return typeof J==="string"&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/.test(J)?J:void 0}function x(J,K){let Z=J;if(K.status!==void 0)Z.status=K.status;if(K.upstreamCode!==void 0)Z.upstreamCode=K.upstreamCode;let $=a(K.requestId);if($!==void 0)Z.requestId=$;if(Z.category=K.category,Z.retryable=l(K.category,K.retryable),K.outputBudgetRecoveryAvailable!==void 0)Z.outputBudgetRecoveryAvailable=K.outputBudgetRecoveryAvailable;if(K.outputBudgetRecoveryTokens!==void 0)Z.outputBudgetRecoveryTokens=K.outputBudgetRecoveryTokens}function b(J,K){return{...J,...K}}class wJ extends Error{name="QlexNotLoggedInError";constructor(J){super(F.copy().notLoggedIn);x(this,b({category:"invalid_credentials",retryable:!1},J))}}class RJ extends Error{name="QlexInsufficientBalanceError";constructor(J,K){super(F.copy().insufficientBalance(J));x(this,b({status:402,category:"billing",retryable:!1},K))}}class CJ extends Error{name="QlexRateLimitError";constructor(J){super(F.copy().rateLimit);x(this,b({status:429,category:"rate_limited",retryable:!0},J))}}class AJ extends Error{name="QlexInvalidCredentialsError";constructor(J,K){super(F.copy().invalidCredentials(J));x(this,b({status:401,category:"invalid_credentials",retryable:!1},K))}}class TJ extends Error{name="QlexRequestRejectedError";constructor(J,K,Z){super(F.copy().requestRejected(J,K));x(this,b({status:400,category:"request_rejected",retryable:!1},Z))}}class t extends Error{name="QlexRequestTooLargeError";stage;constructor(J="irreducible",K,Z){super(J==="after-reduction"?F.copy().requestTooLargeAfterReduction(K):F.copy().requestTooLargeIrreducible(K));this.stage=J,x(this,b({status:413,category:"request_too_large",retryable:!1},Z))}}class BJ extends Error{name="QlexRequestNotSentError";constructor(J,K){super(F.copy().requestNotSent(J));x(this,b({category:"request_rejected",retryable:!1},K))}}class u extends Error{name="QlexGatewayError";constructor(J,K){super(F.copy().gatewayUnavailable(J));x(this,b({category:"gateway_routing",retryable:!1},K))}}var oJ=60000,sJ=320000;function sK(J){return F.sanitizeUpstreamError(J)}class v extends Error{name="QlexStreamError";constructor(J,K,Z){let $=b({category:"unknown",retryable:!1},K);super($.category==="output_budget_exhausted"?F.copy().outputBudgetExhausted():$.category==="empty_output"?F.copy().emptyOutput():$.category==="stream_truncated"?F.copy().streamCutOff(Z):$.category==="stream_failed"?F.copy().streamFailedAfterRetries(Z):F.copy().streamFailed(J));x(this,$),LJ(this)}}var aJ=[{match:/\b(unauthori[sz]ed|forbidden|invalid[ _-]?(api[ _-]?key|token|credential)|expired[ _-]?token|authentication[ _-]?(failed|error)|401|403)\b/i,category:"invalid_credentials",retryable:!1},{match:/(output (?:token )?budget|maximum output tokens|max_tokens|finish[_ -]?reason.{0,20}(length|budget)|reasoning.{0,20}(budget|tokens))/i,category:"output_budget_exhausted",retryable:!1},{match:/\b(no visible output|empty output|produced no (?:visible )?(?:text|output)|nothing to display)\b/i,category:"empty_output",retryable:!1},{match:/\b(insufficient[ _-]?(credits?|qredits?|balance|funds)|payment[ _-]?required|quota[ _-]?exceeded|out[ _-]?of[ _-]?(credits?|qredits?)|402)\b/i,category:"billing",retryable:!1},{match:/\b(rate[ _-]?limit(ed|s)?|too[ _-]?many[ _-]?requests|429)\b/i,category:"rate_limited",retryable:!0},{match:/(unexpected end of (json|input|stream|data)|premature (close|end)|socket hang ?up|socket connection was closed unexpectedly|incomplete (response|output|json|message)|truncated|stream (ended|closed|terminated) (early|unexpectedly|prematurely)|\bECONNRESET\b|\bEPIPE\b)/i,category:"stream_truncated",retryable:!0},{match:/\b(overloaded|at capacity|service[ _-]?unavailable|temporarily[ _-]?unavailable|bad[ _-]?gateway|gateway[ _-]?time(d[ _-]?out|out)|timed[ _-]?out|502|503|504)\b/i,category:"transient",retryable:!0}],tJ={ERR_EMPTY_RESULT:{category:"empty_output",retryable:!1},ERR_TRUNCATED_OUTPUT:{category:"stream_truncated",retryable:!0},ERR_STREAM:{category:"stream_failed",retryable:!0}},eJ=/^\s*(ERR_[A-Z0-9_]+)\b(?:\s*(?:[\u2014\u2013:-]\s*)?)?/i,JK=/\b(req_[A-Za-z0-9][A-Za-z0-9_-]*)\b/;function GJ(J){let K=J??"",Z=eJ.exec(K),$=Z?K.slice(Z[0].length):K,z=IJ($),X=Z?.[1]?.toUpperCase()??z.upstreamCode,Y=z.requestId??a(JK.exec(K)?.[1]),H=z.retryable;if(X!==void 0){let V=tJ[X];if(V!==void 0)return{...V,upstreamCode:X,retryable:l(V.category,H??V.retryable),...Y?{requestId:Y}:{}}}for(let V of aJ)if(V.match.test($))return{category:V.category,retryable:l(V.category,H??V.retryable),...X?{upstreamCode:X}:{},...Y?{requestId:Y}:{}};return{category:"unknown",retryable:l("unknown",H),...X?{upstreamCode:X}:{},...Y?{requestId:Y}:{}}}function KK(J){return MJ(J)}function IJ(J){try{let K=JSON.parse(J);if(!K||typeof K!=="object"||Array.isArray(K))return{};let Z=K,$=Z.error&&typeof Z.error==="object"&&!Array.isArray(Z.error)?Z.error:void 0,z=Z.details&&typeof Z.details==="object"&&!Array.isArray(Z.details)?Z.details:void 0,X=[Z.requestId,$?.requestId,z?.requestId].map(a).find((V)=>V!==void 0),Y=Z.retryable===!1||$?.retryable===!1?!1:Z.retryable===!0||$?.retryable===!0?!0:void 0,H=$?.code??Z.code;return{...X!==void 0?{requestId:X}:{},...Y!==void 0?{retryable:Y}:{},...typeof H==="string"&&/^[A-Z][A-Z0-9_]{0,63}$/i.test(H)?{upstreamCode:H.toUpperCase()}:{}}}catch{return{}}}function xJ(J,K){let Z,$,z,X=!1;try{let N=JSON.parse(K);if(N&&typeof N==="object"){let L=N.error&&typeof N.error==="object"?N.error:void 0;if(typeof L?.code==="string")Z=L.code;else if(typeof N.code==="string")Z=N.code;if(typeof L?.message==="string")$=L.message;else if(typeof N.message==="string")$=N.message;if(typeof N.details?.field==="string")z=N.details.field}}catch(N){X=/^\s*[\[{]/.test(K)&&(ZK(K)||/unexpected end|end of json|unterminated string/i.test(String(N)))}let Y=Z?.toUpperCase()??"",{requestId:H,retryable:V}=IJ(K),U=(()=>{if(X)return"stream_truncated";if(J===402)return"billing";if(J===413)return"request_too_large";if(J===429)return"rate_limited";if(J===401||J===403)return Y==="ERR_GATEWAY_REQUIRED"||KK(K)?"gateway_routing":"invalid_credentials";if(Y.includes("CONFIG"))return"configuration";if(J>=500)return"transient";if(J>=400)return"request_rejected";return"unknown"})(),P=l(U,V),j={status:J,category:U,retryable:P};if(Z!==void 0)j.upstreamCode=Z;if($!==void 0)j.upstreamMessage=$;if(z!==void 0)j.field=z;if(H!==void 0)j.requestId=H;return j}function ZK(J){let K=0,Z=!1,$=!1;for(let z of J){if(Z){if($)$=!1;else if(z==="\\")$=!0;else if(z==='"')Z=!1;continue}if(z==='"')Z=!0;else if(z==="{"||z==="[")K++;else if(z==="}"||z==="]")K--;if(K<0)return!1}return Z||K>0}function $K(J){let K=F.tierBudgetFacts(J.tier),Z=J.advisory,$=Z?.tierOutputLimit??K?.output;if(J.requestedTotal!==void 0)return{total:$===void 0?J.requestedTotal:Math.min(J.requestedTotal,$)};if(!Z&&!K)return{};let z=Z?.reasoningReserveTokens??K?.reasoningReserve??0,X=Z?.visibleOutputFloorTokens??K?.visibleOutputFloor??0,Y=Z?.recommendedTotalTokens??Z?.tierRecommendedStepTokens??K?.recommendedTotal??K?.recommendedStep??$,H=Z?.viableTotalFloorTokens??K?.viableTotalFloor??z+X,V=Y===void 0?H:Math.max(Y,H),U=Z?.reasoningReported??K?.reasoning;return{total:$===void 0?V:Math.min(V,$),reasoningBudget:U&&z>0?Math.min(z,V):void 0}}var zK=new Set(["coding","agent","research","review","chat"]);function XK(J){if(J===void 0)return;if(typeof J==="string"&&zK.has(J))return J;throw Error(`invalid Qortex posture: ${String(J)}`)}function YK(J){if(J===void 0)return;let K=Array.isArray(J)?J:[J];if(K.every((Z)=>typeof Z==="string"&&/^[^/\s]+\/[^/\s]+$/.test(Z)))return Array.isArray(J)?K:J;throw Error(`invalid Qortex directive registry key: ${String(J)}`)}function s(J){if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if(K&&typeof K==="object"){let Z=K;if(typeof Z.text==="string")return Z.text;if(typeof Z.content==="string")return Z.content}return""}).join("");if(J===void 0||J===null)return"";return String(J)}var HK="[Tool call]",VK="[Tool returned no output]";function bJ(J){if(!Array.isArray(J))return{messages:J,dropped:[]};let K=[];return{messages:J.flatMap(($,z)=>{if(!$||typeof $!=="object")return K.push({index:z,role:typeof $,reason:"not-an-object"}),[];let X=$,Y=s(X.content);if(Y.trim().length>0)return[{...X,content:Y}];if(X.role==="assistant"&&Array.isArray(X.tool_calls)&&X.tool_calls.length>0)return[{...X,content:HK}];if(X.role==="tool"&&typeof X.tool_call_id==="string"&&X.tool_call_id.trim().length>0)return[{...X,content:VK}];return K.push({index:z,role:typeof X.role==="string"?X.role:"unknown",reason:"empty-content"}),[]}),dropped:K}}function DK(J){return bJ(J).messages}function WK(J){if(!Array.isArray(J))return!1;return J.some((K)=>!!K&&typeof K==="object"&&K.role==="user")}function NK(J){if(!Array.isArray(J))return!1;return J.some((K)=>{if(!K||typeof K!=="object")return!1;let Z=K;if(Z.role!=="user")return!1;return s(Z.content).trim().length>0})}function GK(J){if(!Array.isArray(J))return J;let K=(X)=>!!X&&typeof X==="object"&&X.role==="system",Z=0;while(Z<J.length&&K(J[Z]))Z++;if(Z<=1)return J;let $=J.slice(0,Z),z=$.map((X)=>typeof X.content==="string"?X.content:String(X.content??"")).filter((X)=>X.length>0).join(`
3
3
 
4
4
  `);return[{...$[0],role:"system",content:z},...J.slice(Z)]}var n="<tool_call>",r="</tool_call>";function jK(J){if(!Array.isArray(J)||J.length===0)return;let K=J.map((Z)=>{try{return JSON.stringify(Z)}catch{return}}).filter((Z)=>Z!==void 0);if(K.length===0)return;return["# Tools","","You may call one or more functions to assist with the user query.","","You are provided with function signatures within <tools></tools> XML tags:","<tools>",...K,"</tools>","","For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:","<tool_call>",'{"name": <function-name>, "arguments": <args-json-object>}',"</tool_call>","","Function results will be provided within <tool_response></tool_response> XML tags. Do not write <tool_response> blocks yourself.","Only use the functions declared above. Never invent function names, and never write out a function-call-like block in any other format."].join(`
5
5
  `)}var UK=3;function XJ(J){let K=J;for(let Z=0;Z<UK;Z++){if(K!==null&&typeof K==="object")return K;if(typeof K!=="string")return;try{K=JSON.parse(K)}catch{return}}return}function PK(J){let K=J?.tool_calls;if(!Array.isArray(K))return;for(let Z of K){let $=Z?.function;if(!$)continue;E.debug("tool call ingress",{tool:typeof $.name==="string"?$.name:"?",source:"native",args:YJ($.arguments)})}}function YJ(J,K=300){let Z;try{Z=typeof J==="string"?J:JSON.stringify(J)??String(J)}catch{Z="<unrenderable>"}return Z.length<=K?Z:`${Z.slice(0,K)}\u2026 (${Z.length} chars total)`}function _K(J){let K=J.function??{},Z=typeof K.name==="string"?K.name:"",$=K.arguments===void 0?{}:XJ(K.arguments);if($===void 0)E.warn("dropping unrecoverable tool-call arguments while re-encoding history",{tool:Z,raw:YJ(K.arguments)});return`${n}
@@ -26,4 +26,4 @@ ${s(X.content)}
26
26
  `},P={prompt_tokens:X,completion_tokens:Y,total_tokens:z.total_tokens??X+Y};if(typeof z.cost_usd==="number")P.cost_usd=z.cost_usd;if(typeof z.cost_credits==="number")P.cost_credits=z.cost_credits;if(typeof z.context_window==="number")P.context_window=z.context_window;let j=[U({role:"assistant",content:""},null),U({content:Z},null),U({},$,P),`data: [DONE]
27
27
 
28
28
  `],N=new TextEncoder,L=new ReadableStream({start(O){for(let k of j)O.enqueue(N.encode(k));O.close()}});return new Response(L,{status:200,headers:{"content-type":"text/event-stream"}})}function eK(J){let K=J??{},{content:Z,finishReason:$}=yJ(K),z=K.usage??{},X=z.prompt_tokens??0,Y=z.completion_tokens??0,H={id:"orch-"+Date.now(),object:"chat.completion",created:Math.floor(Date.now()/1000),model:"orchestrated",choices:[{index:0,message:{role:"assistant",content:Z},finish_reason:$}],usage:{prompt_tokens:X,completion_tokens:Y,total_tokens:z.total_tokens??X+Y,...typeof z.cost_usd==="number"?{cost_usd:z.cost_usd}:{},...typeof z.context_window==="number"?{context_window:z.context_window}:{}}};return new Response(JSON.stringify(H),{status:200,headers:{"content-type":"application/json"}})}async function bK(J,K,Z){let $=xJ(J,K);if(!$.requestId)$.requestId=a(Z.requestId);let z=K?`HTTP ${J}: ${K}`:`HTTP ${J}`;switch(E.error("gateway rejected request",{tier:Z.tier,status:J,category:$.category,upstreamCode:$.upstreamCode,field:$.field,retryable:$.retryable}),$.category){case"billing":return new RJ(K||void 0,$);case"rate_limited":return new CJ($);case"gateway_routing":return new u(`HTTP ${J}`,$);case"invalid_credentials":return await Z.onInvalidCredentials?.().catch(()=>{}),new AJ(z,$);case"request_too_large":return new t("irreducible",$.upstreamMessage??K??void 0,$);case"request_rejected":case"tool_protocol":return new TJ($.upstreamMessage??K??void 0,$.field,$);case"configuration":case"transient":case"unknown":default:return new u(z,$)}}function PJ(J){let K=NJ();if(K===void 0)return J;let Z=h(J);if(Z<=K)return J;let $=KJ(J,K);return E.warn("request over known size ceiling, reducing before send",{tier:J.tier,bytes:Z,ceiling:K,reducedBytes:$.bytes,fits:$.reduced,...$.actions}),$.bytes<Z?$.body:J}function _J(J){let K=h(J),Z=JJ(K),$=KJ(J,Z);if(!$.reduced)throw E.error("request too large and cannot be reduced further",{tier:J.tier,rejectedBytes:K,ceiling:Z,reducedBytes:$.bytes,...$.actions}),new t("irreducible");return E.warn("request too large, retrying once with reduced history",{tier:J.tier,rejectedBytes:K,ceiling:Z,reducedBytes:$.bytes,...$.actions,notice:F.copy().requestTooLargeRecovering()}),$.body}function FJ(J){let K=h(J);throw JJ(K),E.error("reduced request still too large",{tier:J.tier,rejectedBytes:K}),new t("after-reduction")}function hK(J,K=globalThis.fetch,Z,$){let z=$?.responseTimeoutMs??oJ;return async(X,Y)=>{if(Y?.method==="POST"&&typeof Y?.body==="string"){let H;try{H=JSON.parse(Y.body)}catch{return K(X,Y)}let U=(typeof H.model==="string"?H.model:void 0)?.split("/").at(-1);if(U&&F.isDecisionTier(U))F.assertChatTierSupported(U);let P=FK();await kK();let j=RK(H.model??"adaptive"),N=jJ(H,{toolMode:P,outputAdvisory:j});if(WK(H.messages)&&!NK(N.messages)){let{dropped:Q}=bJ(P==="text"?hJ(H.messages,H.tools):H.messages);throw E.error("refusing to send: user message lost in normalization",{tier:N.tier,toolMode:P,inputRoles:Array.isArray(H.messages)?H.messages.map((M)=>M&&typeof M==="object"?String(M.role):"?"):"not-an-array",droppedCount:Q.length,dropped:Q}),new BJ("your message could not be turned into sendable content")}let L=await J(),O=typeof L==="string"?{key:L,method:"sso"}:L;if(!O?.key)throw new wJ;let k=new Headers(Y.headers),w=()=>{if(O.method==="api-key")k.delete("Authorization"),k.set("x-api-key",O.key);else k.delete("x-api-key"),k.set("Authorization",`Bearer ${O.key}`)};w(),k.set("Content-Type","application/json");let I=!1,g=async(Q,M,R)=>{let G=xJ(Q,M),D=async()=>({retry:!1,error:await bK(Q,M,{onInvalidCredentials:Z,tier:N.tier,requestId:R?.get("x-request-id")??R?.get("request-id")??R?.get("x-qlex-request-id")??void 0})});if(G.category!=="invalid_credentials"||I)return D();I=!0;let W=$J(O),_=await kJ(O);if(_.kind==="recovered"&&$J(_.credential)!==W)return O=_.credential,w(),{retry:!0};if(_.kind==="inconclusive")return{retry:!1,error:new u(`HTTP ${Q}: ${_.reason}`,G)};return D()};if(N.tier==="orchestrated"){let Q=Y.signal,M=async(D)=>{let W=new AbortController,_=()=>W.abort(Q?.reason);if(Q)if(Q.aborted)W.abort(Q.reason);else Q.addEventListener("abort",_,{once:!0});let C=!1,pJ=setTimeout(()=>{C=!0,W.abort()},z);try{return await K(iJ,{method:"POST",headers:k,body:JSON.stringify(D),signal:W.signal})}catch(uJ){if(C)throw new u(`no response within ${Math.round(z/1000)}s`);throw uJ}finally{clearTimeout(pJ),Q?.removeEventListener("abort",_)}},R=PJ(N),G=await M(R);if(G.status===413){if(await G.body?.cancel().catch(()=>{}),R=_J(R),G=await M(R),G.status===413)await G.body?.cancel().catch(()=>{}),FJ(R)}while(!G.ok){let D=await G.text().catch(()=>""),W=await g(G.status,D,G.headers);if(!W.retry)throw W.error;G=await M(R)}return xK(await G.json())}let T=Y.signal,q=async(Q)=>{let M=new AbortController,R=()=>M.abort(T?.reason);if(T)if(T.aborted)M.abort(T.reason);else T.addEventListener("abort",R,{once:!0});let G=()=>T?.removeEventListener("abort",R),D=!1,W=setTimeout(()=>{D=!0,M.abort()},z);try{return{res:await K(dJ,{method:"POST",headers:k,body:JSON.stringify(Q),signal:M.signal}),detach:G}}catch(_){if(G(),D)throw new u(`no response within ${Math.round(z/1000)}s`);throw _}finally{clearTimeout(W)}},B=PJ(N),{res:S,detach:A}=await q(B);if(S.status===400&&P==="native"&&OK(H))A(),await S.body?.cancel().catch(()=>{}),B=jJ(H,{toolMode:"text",outputAdvisory:j}),{res:S,detach:A}=await q(B);if(S.status===413){if(A(),await S.body?.cancel().catch(()=>{}),B=_J(B),{res:S,detach:A}=await q(B),S.status===413)A(),await S.body?.cancel().catch(()=>{}),FJ(B)}try{while(!S.ok){let Q=await S.text().catch(()=>""),M=await g(S.status,Q,S.headers);if(A(),!M.retry)throw M.error;({res:S,detach:A}=await q(B))}}catch(Q){throw A(),Q}if(H.stream!==!1&&S.body){let Q=Array.isArray(H.tools)&&H.tools.length>0;return new Response(IK(S.body,{toolProtocolEnabled:Q,tier:N.tier,requestedOutputBudget:N.opts.max_tokens}),{status:S.status,statusText:S.statusText,headers:{"content-type":"text/event-stream"}})}return S}return K(X,Y)}}function JZ(J){let K=J.getToken??(async()=>J.bearerToken),Z=hK(K,globalThis.fetch,J.onInvalidCredentials);return qJ({name:J.name??"qlex",baseURL:F.streamBaseUrl(),fetch:Z})}function KZ(J,K){return o(J,K)!==void 0}var fK=2;function o(J,K){let Z=d.get(J)?.advisory,$=F.tierBudgetFacts(J),z=Z?.tierOutputLimit??$?.output;if(!z)return;let X=K??Z?.recommendedTotalTokens??Z?.tierRecommendedStepTokens??$?.recommendedTotal??$?.recommendedStep;if(!X||X>=z)return;let Y=Z?.recommendedTotalTokens??Z?.tierRecommendedStepTokens??$?.recommendedTotal??$?.recommendedStep??X,H=Math.min(z,Math.max(X+1,X*fK,Y));return H>X?H:void 0}var i=!1,zJ=Promise.resolve();
29
- export{dJ as Wn,iJ as Xn,l as Yn,a as Zn,wJ as _n,RJ as $n,CJ as ao,AJ as bo,TJ as co,t as do,BJ as eo,u as fo,oJ as go,sJ as ho,sK as io,v as jo,GJ as ko,KK as lo,IJ as mo,xJ as no,$K as oo,s as po,bJ as qo,DK as ro,WK as so,NK as to,GK as uo,n as vo,r as wo,jK as xo,XJ as yo,hJ as zo,FK as Ao,OK as Bo,jJ as Co,wK as Do,RK as Eo,aK as Fo,tK as Go,AK as Ho,TK as Io,BK as Jo,gJ as Ko,IK as Lo,xK as Mo,eK as No,hK as Oo,JZ as Po,KZ as Qo,o as Ro};
29
+ export{dJ as Xn,iJ as Yn,l as Zn,a as _n,wJ as $n,RJ as ao,CJ as bo,AJ as co,TJ as do,t as eo,BJ as fo,u as go,oJ as ho,sJ as io,sK as jo,v as ko,GJ as lo,KK as mo,IJ as no,xJ as oo,$K as po,s as qo,bJ as ro,DK as so,WK as to,NK as uo,GK as vo,n as wo,r as xo,jK as yo,XJ as zo,hJ as Ao,FK as Bo,OK as Co,jJ as Do,wK as Eo,RK as Fo,aK as Go,tK as Ho,AK as Io,TK as Jo,BK as Ko,gJ as Lo,IK as Mo,xK as No,eK as Oo,hK as Po,JZ as Qo,KZ as Ro,o as So};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$e as QQ,Te as l,Ue as jW,Ve as LQ,Xe as KQ,Ze as GW,_e as AQ,af as hW,cf as OQ,df as CW,ef as IW,ff as KW,gf as P,hf as O,if as u,jf as VW,kf as bQ,lf as WQ,mf as XQ,nf as qQ,of as DW,pf as a,qf as FW,rf as wQ,sf as BQ,tf as wW}from"./chunk-vk35g121.js";import{Hq as $W,Lq as BW,Mq as UQ,Rq as JW,Tq as ZQ}from"./chunk-kec1xw1n.js";import"./chunk-cqtkxwd8.js";import"./chunk-x50adh71.js";import{Hu as Q}from"./chunk-q4mtwv1w.js";import"./chunk-7a3txs9f.js";import"./chunk-djfrkbd5.js";var NQ=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),jQ=FW({errorSchema:NQ,errorToMessage:(X)=>X.error.message});function zW(X){let Z=X.startsWith("o3")||X.startsWith("o4-mini")||X.startsWith("gpt-5")&&!X.startsWith("gpt-5-chat"),j=X.startsWith("gpt-4")||X.startsWith("gpt-5")&&!X.startsWith("gpt-5-nano")&&!X.startsWith("gpt-5-chat")&&!X.startsWith("gpt-5.4-nano")||X.startsWith("o3")||X.startsWith("o4-mini"),F=X.startsWith("o1")||X.startsWith("o3")||X.startsWith("o4-mini")||X.startsWith("gpt-5")&&!X.startsWith("gpt-5-chat"),J=X.startsWith("gpt-5.1")||X.startsWith("gpt-5.2")||X.startsWith("gpt-5.3")||X.startsWith("gpt-5.4");return{supportsFlexProcessing:Z,supportsPriorityProcessing:j,isReasoningModel:F,systemMessageMode:F?"developer":"system",supportsNonReasoningParameters:J}}function cQ(X){var Z,j,F,J,w,D;if(X==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 $=(Z=X.prompt_tokens)!=null?Z:0,q=(j=X.completion_tokens)!=null?j:0,b=(J=(F=X.prompt_tokens_details)==null?void 0:F.cached_tokens)!=null?J:0,K=(D=(w=X.completion_tokens_details)==null?void 0:w.reasoning_tokens)!=null?D:0;return{inputTokens:{total:$,noCache:$-b,cacheRead:b,cacheWrite:void 0},outputTokens:{total:q,text:q-K,reasoning:K},raw:X}}function _W({prompt:X,systemMessageMode:Z="system"}){var j;let F=[],J=[];for(let{role:w,content:D}of X)switch(w){case"system":{switch(Z){case"system":{F.push({role:"system",content:D});break}case"developer":{F.push({role:"developer",content:D});break}case"remove":{J.push({type:"other",message:"system messages are removed for this model"});break}default:throw Error(`Unsupported system message mode: ${Z}`)}break}case"user":{if(D.length===1&&D[0].type==="text"){F.push({role:"user",content:D[0].text});break}F.push({role:"user",content:D.map(($,q)=>{var b,K,B;switch($.type){case"text":return{type:"text",text:$.text};case"file":if($.mediaType.startsWith("image/")){let f=$.mediaType==="image/*"?"image/jpeg":$.mediaType;return{type:"image_url",image_url:{url:$.data instanceof URL?$.data.toString():`data:${f};base64,${KQ($.data)}`,detail:(K=(b=$.providerOptions)==null?void 0:b.openai)==null?void 0:K.imageDetail}}}else if($.mediaType.startsWith("audio/")){if($.data instanceof URL)throw new ZQ({functionality:"audio file parts with URLs"});switch($.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:KQ($.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:KQ($.data),format:"mp3"}};default:throw new ZQ({functionality:`audio content parts with media type ${$.mediaType}`})}}else if($.mediaType==="application/pdf"){if($.data instanceof URL)throw new ZQ({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof $.data==="string"&&$.data.startsWith("file-")?{file_id:$.data}:{filename:(B=$.filename)!=null?B:`part-${q}.pdf`,file_data:`data:application/pdf;base64,${KQ($.data)}`}}}else throw new ZQ({functionality:`file part media type ${$.mediaType}`})}})});break}case"assistant":{let $="",q=[];for(let b of D)switch(b.type){case"text":{$+=b.text;break}case"tool-call":{q.push({id:b.toolCallId,type:"function",function:{name:b.toolName,arguments:JSON.stringify(b.input)}});break}}F.push({role:"assistant",content:$,tool_calls:q.length>0?q:void 0});break}case"tool":{for(let $ of D){if($.type==="tool-approval-response")continue;let q=$.output,b;switch(q.type){case"text":case"error-text":b=q.value;break;case"execution-denied":b=(j=q.reason)!=null?j:"Tool execution denied.";break;case"content":case"json":case"error-json":b=JSON.stringify(q.value);break}F.push({role:"tool",tool_call_id:$.toolCallId,content:b})}break}default:throw Error(`Unsupported role: ${w}`)}return{messages:F,warnings:J}}function EQ({id:X,model:Z,created:j}){return{id:X!=null?X:void 0,modelId:Z!=null?Z:void 0,timestamp:j?new Date(j*1000):void 0}}function vQ(X){switch(X){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"}}var mW=P(()=>O(Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),type:Q.literal("function"),function:Q.object({name:Q.string(),arguments:Q.string()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}),index:Q.number(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}))),pW=P(()=>O(Q.union([Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number(),id:Q.string().nullish(),type:Q.literal("function").nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}).nullish(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish(),index:Q.number()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}),NQ]))),sW=P(()=>O(Q.object({logitBias:Q.record(Q.coerce.number(),Q.number()).optional(),logprobs:Q.union([Q.boolean(),Q.number()]).optional(),parallelToolCalls:Q.boolean().optional(),user:Q.string().optional(),reasoningEffort:Q.enum(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Q.number().optional(),store:Q.boolean().optional(),metadata:Q.record(Q.string().max(64),Q.string().max(512)).optional(),prediction:Q.record(Q.string(),Q.any()).optional(),serviceTier:Q.enum(["auto","flex","priority","default"]).optional(),strictJsonSchema:Q.boolean().optional(),textVerbosity:Q.enum(["low","medium","high"]).optional(),promptCacheKey:Q.string().optional(),promptCacheRetention:Q.enum(["in_memory","24h"]).optional(),safetyIdentifier:Q.string().optional(),systemMessageMode:Q.enum(["system","developer","remove"]).optional(),forceReasoning:Q.boolean().optional()})));function iW({tools:X,toolChoice:Z}){X=(X==null?void 0:X.length)?X:void 0;let j=[];if(X==null)return{tools:void 0,toolChoice:void 0,toolWarnings:j};let F=[];for(let w of X)switch(w.type){case"function":F.push({type:"function",function:{name:w.name,description:w.description,parameters:w.inputSchema,...w.strict!=null?{strict:w.strict}:{}}});break;default:j.push({type:"unsupported",feature:`tool type: ${w.type}`});break}if(Z==null)return{tools:F,toolChoice:void 0,toolWarnings:j};let J=Z.type;switch(J){case"auto":case"none":case"required":return{tools:F,toolChoice:J,toolWarnings:j};case"tool":return{tools:F,toolChoice:{type:"function",function:{name:Z.toolName}},toolWarnings:j};default:throw new ZQ({functionality:`tool choice type: ${J}`})}}var LW=class{constructor(X,Z){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=X,this.config=Z}get provider(){return this.config.provider}async getArgs({prompt:X,maxOutputTokens:Z,temperature:j,topP:F,topK:J,frequencyPenalty:w,presencePenalty:D,stopSequences:$,responseFormat:q,seed:b,tools:K,toolChoice:B,providerOptions:f}){var L,S,_,g,A;let R=[],H=(L=await WQ({provider:"openai",providerOptions:f,schema:sW}))!=null?L:{},n=zW(this.modelId),s=(S=H.forceReasoning)!=null?S:n.isReasoningModel;if(J!=null)R.push({type:"unsupported",feature:"topK"});let{messages:p,warnings:m}=_W({prompt:X,systemMessageMode:(_=H.systemMessageMode)!=null?_:s?"developer":n.systemMessageMode});R.push(...m);let i=(g=H.strictJsonSchema)!=null?g:!0,Y={model:this.modelId,logit_bias:H.logitBias,logprobs:H.logprobs===!0||typeof H.logprobs==="number"?!0:void 0,top_logprobs:typeof H.logprobs==="number"?H.logprobs:typeof H.logprobs==="boolean"?H.logprobs?0:void 0:void 0,user:H.user,parallel_tool_calls:H.parallelToolCalls,max_tokens:Z,temperature:j,top_p:F,frequency_penalty:w,presence_penalty:D,response_format:(q==null?void 0:q.type)==="json"?q.schema!=null?{type:"json_schema",json_schema:{schema:q.schema,strict:i,name:(A=q.name)!=null?A:"response",description:q.description}}:{type:"json_object"}:void 0,stop:$,seed:b,verbosity:H.textVerbosity,max_completion_tokens:H.maxCompletionTokens,store:H.store,metadata:H.metadata,prediction:H.prediction,reasoning_effort:H.reasoningEffort,service_tier:H.serviceTier,prompt_cache_key:H.promptCacheKey,prompt_cache_retention:H.promptCacheRetention,safety_identifier:H.safetyIdentifier,messages:p};if(s){if(H.reasoningEffort!=="none"||!n.supportsNonReasoningParameters){if(Y.temperature!=null)Y.temperature=void 0,R.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"});if(Y.top_p!=null)Y.top_p=void 0,R.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"});if(Y.logprobs!=null)Y.logprobs=void 0,R.push({type:"other",message:"logprobs is not supported for reasoning models"})}if(Y.frequency_penalty!=null)Y.frequency_penalty=void 0,R.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"});if(Y.presence_penalty!=null)Y.presence_penalty=void 0,R.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"});if(Y.logit_bias!=null)Y.logit_bias=void 0,R.push({type:"other",message:"logitBias is not supported for reasoning models"});if(Y.top_logprobs!=null)Y.top_logprobs=void 0,R.push({type:"other",message:"topLogprobs is not supported for reasoning models"});if(Y.max_tokens!=null){if(Y.max_completion_tokens==null)Y.max_completion_tokens=Y.max_tokens;Y.max_tokens=void 0}}else if(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview")){if(Y.temperature!=null)Y.temperature=void 0,R.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})}if(H.serviceTier==="flex"&&!n.supportsFlexProcessing)R.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),Y.service_tier=void 0;if(H.serviceTier==="priority"&&!n.supportsPriorityProcessing)R.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),Y.service_tier=void 0;let{tools:t,toolChoice:C,toolWarnings:N}=iW({tools:K,toolChoice:B});return{args:{...Y,tools:t,tool_choice:C},warnings:[...R,...N]}}async doGenerate(X){var Z,j,F,J,w,D,$;let{args:q,warnings:b}=await this.getArgs(X),{responseHeaders:K,value:B,rawValue:f}=await XQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),X.headers),body:q,failedResponseHandler:jQ,successfulResponseHandler:BQ(mW),abortSignal:X.abortSignal,fetch:this.config.fetch}),L=B.choices[0],S=[],_=L.message.content;if(_!=null&&_.length>0)S.push({type:"text",text:_});for(let H of(Z=L.message.tool_calls)!=null?Z:[])S.push({type:"tool-call",toolCallId:(j=H.id)!=null?j:QQ(),toolName:H.function.name,input:H.function.arguments});for(let H of(F=L.message.annotations)!=null?F:[])S.push({type:"source",sourceType:"url",id:QQ(),url:H.url_citation.url,title:H.url_citation.title});let g=(J=B.usage)==null?void 0:J.completion_tokens_details,A=(w=B.usage)==null?void 0:w.prompt_tokens_details,R={openai:{}};if((g==null?void 0:g.accepted_prediction_tokens)!=null)R.openai.acceptedPredictionTokens=g==null?void 0:g.accepted_prediction_tokens;if((g==null?void 0:g.rejected_prediction_tokens)!=null)R.openai.rejectedPredictionTokens=g==null?void 0:g.rejected_prediction_tokens;if(((D=L.logprobs)==null?void 0:D.content)!=null)R.openai.logprobs=L.logprobs.content;return{content:S,finishReason:{unified:vQ(L.finish_reason),raw:($=L.finish_reason)!=null?$:void 0},usage:cQ(B.usage),request:{body:q},response:{...EQ(B),headers:K,body:f},warnings:b,providerMetadata:R}}async doStream(X){let{args:Z,warnings:j}=await this.getArgs(X),F={...Z,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:J,value:w}=await XQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),X.headers),body:F,failedResponseHandler:jQ,successfulResponseHandler:wQ(pW),abortSignal:X.abortSignal,fetch:this.config.fetch}),D=[],$={unified:"other",raw:void 0},q=void 0,b=!1,K=!1,B={openai:{}};return{stream:w.pipeThrough(new TransformStream({start(f){f.enqueue({type:"stream-start",warnings:j})},transform(f,L){var S,_,g,A,R,H,n,s,p,m,i,Y,t,C,N,d,e;if(X.includeRawChunks)L.enqueue({type:"raw",rawValue:f.rawValue});if(!f.success){$={unified:"error",raw:void 0},L.enqueue({type:"error",error:f.error});return}let k=f.value;if("error"in k){$={unified:"error",raw:void 0},L.enqueue({type:"error",error:k.error});return}if(!b){let G=EQ(k);if(Object.values(G).some(Boolean))b=!0,L.enqueue({type:"response-metadata",...EQ(k)})}if(k.usage!=null){if(q=k.usage,((S=k.usage.completion_tokens_details)==null?void 0:S.accepted_prediction_tokens)!=null)B.openai.acceptedPredictionTokens=(_=k.usage.completion_tokens_details)==null?void 0:_.accepted_prediction_tokens;if(((g=k.usage.completion_tokens_details)==null?void 0:g.rejected_prediction_tokens)!=null)B.openai.rejectedPredictionTokens=(A=k.usage.completion_tokens_details)==null?void 0:A.rejected_prediction_tokens}let M=k.choices[0];if((M==null?void 0:M.finish_reason)!=null)$={unified:vQ(M.finish_reason),raw:M.finish_reason};if(((R=M==null?void 0:M.logprobs)==null?void 0:R.content)!=null)B.openai.logprobs=M.logprobs.content;if((M==null?void 0:M.delta)==null)return;let E=M.delta;if(E.content!=null){if(!K)L.enqueue({type:"text-start",id:"0"}),K=!0;L.enqueue({type:"text-delta",id:"0",delta:E.content})}if(E.tool_calls!=null)for(let G of E.tool_calls){let T=G.index;if(D[T]==null){if(G.type!=null&&G.type!=="function")throw new UQ({data:G,message:"Expected 'function' type."});if(G.id==null)throw new UQ({data:G,message:"Expected 'id' to be a string."});if(((H=G.function)==null?void 0:H.name)==null)throw new UQ({data:G,message:"Expected 'function.name' to be a string."});L.enqueue({type:"tool-input-start",id:G.id,toolName:G.function.name}),D[T]={id:G.id,type:"function",function:{name:G.function.name,arguments:(n=G.function.arguments)!=null?n:""},hasFinished:!1};let z=D[T];if(((s=z.function)==null?void 0:s.name)!=null&&((p=z.function)==null?void 0:p.arguments)!=null){if(z.function.arguments.length>0)L.enqueue({type:"tool-input-delta",id:z.id,delta:z.function.arguments});if(bQ(z.function.arguments))L.enqueue({type:"tool-input-end",id:z.id}),L.enqueue({type:"tool-call",toolCallId:(m=z.id)!=null?m:QQ(),toolName:z.function.name,input:z.function.arguments}),z.hasFinished=!0}continue}let x=D[T];if(x.hasFinished)continue;if(((i=G.function)==null?void 0:i.arguments)!=null)x.function.arguments+=(t=(Y=G.function)==null?void 0:Y.arguments)!=null?t:"";if(L.enqueue({type:"tool-input-delta",id:x.id,delta:(C=G.function.arguments)!=null?C:""}),((N=x.function)==null?void 0:N.name)!=null&&((d=x.function)==null?void 0:d.arguments)!=null&&bQ(x.function.arguments))L.enqueue({type:"tool-input-end",id:x.id}),L.enqueue({type:"tool-call",toolCallId:(e=x.id)!=null?e:QQ(),toolName:x.function.name,input:x.function.arguments}),x.hasFinished=!0}if(E.annotations!=null)for(let G of E.annotations)L.enqueue({type:"source",sourceType:"url",id:QQ(),url:G.url_citation.url,title:G.url_citation.title})},flush(f){if(K)f.enqueue({type:"text-end",id:"0"});f.enqueue({type:"finish",finishReason:$,usage:cQ(q),...B!=null?{providerMetadata:B}:{}})}})),request:{body:F},response:{headers:J}}}};function nQ(X){var Z,j,F,J;if(X==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 w=(Z=X.prompt_tokens)!=null?Z:0,D=(j=X.completion_tokens)!=null?j:0;return{inputTokens:{total:(F=X.prompt_tokens)!=null?F:void 0,noCache:w,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:(J=X.completion_tokens)!=null?J:void 0,text:D,reasoning:void 0},raw:X}}function dW({prompt:X,user:Z="user",assistant:j="assistant"}){let F="";if(X[0].role==="system")F+=`${X[0].content}
2
+ import{$e as AQ,Ue as l,Ve as jW,We as LQ,Ye as KQ,_e as GW,af as QQ,bf as hW,df as OQ,ef as CW,ff as IW,gf as KW,hf as P,if as O,jf as u,kf as VW,lf as bQ,mf as WQ,nf as XQ,of as qQ,pf as DW,qf as a,rf as FW,sf as wQ,tf as BQ,uf as wW}from"./chunk-1bhcg889.js";import{Iq as $W,Mq as BW,Nq as UQ,Sq as JW,Uq as ZQ}from"./chunk-7nh8vjx4.js";import"./chunk-cqtkxwd8.js";import"./chunk-mfg4stzn.js";import{Iu as Q}from"./chunk-zgj7jx8k.js";import"./chunk-0mdmqtfr.js";import"./chunk-0xf12tf3.js";var NQ=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),jQ=FW({errorSchema:NQ,errorToMessage:(X)=>X.error.message});function zW(X){let Z=X.startsWith("o3")||X.startsWith("o4-mini")||X.startsWith("gpt-5")&&!X.startsWith("gpt-5-chat"),j=X.startsWith("gpt-4")||X.startsWith("gpt-5")&&!X.startsWith("gpt-5-nano")&&!X.startsWith("gpt-5-chat")&&!X.startsWith("gpt-5.4-nano")||X.startsWith("o3")||X.startsWith("o4-mini"),F=X.startsWith("o1")||X.startsWith("o3")||X.startsWith("o4-mini")||X.startsWith("gpt-5")&&!X.startsWith("gpt-5-chat"),J=X.startsWith("gpt-5.1")||X.startsWith("gpt-5.2")||X.startsWith("gpt-5.3")||X.startsWith("gpt-5.4");return{supportsFlexProcessing:Z,supportsPriorityProcessing:j,isReasoningModel:F,systemMessageMode:F?"developer":"system",supportsNonReasoningParameters:J}}function cQ(X){var Z,j,F,J,w,D;if(X==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 $=(Z=X.prompt_tokens)!=null?Z:0,q=(j=X.completion_tokens)!=null?j:0,b=(J=(F=X.prompt_tokens_details)==null?void 0:F.cached_tokens)!=null?J:0,K=(D=(w=X.completion_tokens_details)==null?void 0:w.reasoning_tokens)!=null?D:0;return{inputTokens:{total:$,noCache:$-b,cacheRead:b,cacheWrite:void 0},outputTokens:{total:q,text:q-K,reasoning:K},raw:X}}function _W({prompt:X,systemMessageMode:Z="system"}){var j;let F=[],J=[];for(let{role:w,content:D}of X)switch(w){case"system":{switch(Z){case"system":{F.push({role:"system",content:D});break}case"developer":{F.push({role:"developer",content:D});break}case"remove":{J.push({type:"other",message:"system messages are removed for this model"});break}default:throw Error(`Unsupported system message mode: ${Z}`)}break}case"user":{if(D.length===1&&D[0].type==="text"){F.push({role:"user",content:D[0].text});break}F.push({role:"user",content:D.map(($,q)=>{var b,K,B;switch($.type){case"text":return{type:"text",text:$.text};case"file":if($.mediaType.startsWith("image/")){let f=$.mediaType==="image/*"?"image/jpeg":$.mediaType;return{type:"image_url",image_url:{url:$.data instanceof URL?$.data.toString():`data:${f};base64,${KQ($.data)}`,detail:(K=(b=$.providerOptions)==null?void 0:b.openai)==null?void 0:K.imageDetail}}}else if($.mediaType.startsWith("audio/")){if($.data instanceof URL)throw new ZQ({functionality:"audio file parts with URLs"});switch($.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:KQ($.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:KQ($.data),format:"mp3"}};default:throw new ZQ({functionality:`audio content parts with media type ${$.mediaType}`})}}else if($.mediaType==="application/pdf"){if($.data instanceof URL)throw new ZQ({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof $.data==="string"&&$.data.startsWith("file-")?{file_id:$.data}:{filename:(B=$.filename)!=null?B:`part-${q}.pdf`,file_data:`data:application/pdf;base64,${KQ($.data)}`}}}else throw new ZQ({functionality:`file part media type ${$.mediaType}`})}})});break}case"assistant":{let $="",q=[];for(let b of D)switch(b.type){case"text":{$+=b.text;break}case"tool-call":{q.push({id:b.toolCallId,type:"function",function:{name:b.toolName,arguments:JSON.stringify(b.input)}});break}}F.push({role:"assistant",content:$,tool_calls:q.length>0?q:void 0});break}case"tool":{for(let $ of D){if($.type==="tool-approval-response")continue;let q=$.output,b;switch(q.type){case"text":case"error-text":b=q.value;break;case"execution-denied":b=(j=q.reason)!=null?j:"Tool execution denied.";break;case"content":case"json":case"error-json":b=JSON.stringify(q.value);break}F.push({role:"tool",tool_call_id:$.toolCallId,content:b})}break}default:throw Error(`Unsupported role: ${w}`)}return{messages:F,warnings:J}}function EQ({id:X,model:Z,created:j}){return{id:X!=null?X:void 0,modelId:Z!=null?Z:void 0,timestamp:j?new Date(j*1000):void 0}}function vQ(X){switch(X){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"}}var mW=P(()=>O(Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),type:Q.literal("function"),function:Q.object({name:Q.string(),arguments:Q.string()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}),index:Q.number(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}))),pW=P(()=>O(Q.union([Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number(),id:Q.string().nullish(),type:Q.literal("function").nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}).nullish(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish(),index:Q.number()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}),NQ]))),sW=P(()=>O(Q.object({logitBias:Q.record(Q.coerce.number(),Q.number()).optional(),logprobs:Q.union([Q.boolean(),Q.number()]).optional(),parallelToolCalls:Q.boolean().optional(),user:Q.string().optional(),reasoningEffort:Q.enum(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Q.number().optional(),store:Q.boolean().optional(),metadata:Q.record(Q.string().max(64),Q.string().max(512)).optional(),prediction:Q.record(Q.string(),Q.any()).optional(),serviceTier:Q.enum(["auto","flex","priority","default"]).optional(),strictJsonSchema:Q.boolean().optional(),textVerbosity:Q.enum(["low","medium","high"]).optional(),promptCacheKey:Q.string().optional(),promptCacheRetention:Q.enum(["in_memory","24h"]).optional(),safetyIdentifier:Q.string().optional(),systemMessageMode:Q.enum(["system","developer","remove"]).optional(),forceReasoning:Q.boolean().optional()})));function iW({tools:X,toolChoice:Z}){X=(X==null?void 0:X.length)?X:void 0;let j=[];if(X==null)return{tools:void 0,toolChoice:void 0,toolWarnings:j};let F=[];for(let w of X)switch(w.type){case"function":F.push({type:"function",function:{name:w.name,description:w.description,parameters:w.inputSchema,...w.strict!=null?{strict:w.strict}:{}}});break;default:j.push({type:"unsupported",feature:`tool type: ${w.type}`});break}if(Z==null)return{tools:F,toolChoice:void 0,toolWarnings:j};let J=Z.type;switch(J){case"auto":case"none":case"required":return{tools:F,toolChoice:J,toolWarnings:j};case"tool":return{tools:F,toolChoice:{type:"function",function:{name:Z.toolName}},toolWarnings:j};default:throw new ZQ({functionality:`tool choice type: ${J}`})}}var LW=class{constructor(X,Z){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=X,this.config=Z}get provider(){return this.config.provider}async getArgs({prompt:X,maxOutputTokens:Z,temperature:j,topP:F,topK:J,frequencyPenalty:w,presencePenalty:D,stopSequences:$,responseFormat:q,seed:b,tools:K,toolChoice:B,providerOptions:f}){var L,S,_,g,A;let R=[],H=(L=await WQ({provider:"openai",providerOptions:f,schema:sW}))!=null?L:{},n=zW(this.modelId),s=(S=H.forceReasoning)!=null?S:n.isReasoningModel;if(J!=null)R.push({type:"unsupported",feature:"topK"});let{messages:p,warnings:m}=_W({prompt:X,systemMessageMode:(_=H.systemMessageMode)!=null?_:s?"developer":n.systemMessageMode});R.push(...m);let i=(g=H.strictJsonSchema)!=null?g:!0,Y={model:this.modelId,logit_bias:H.logitBias,logprobs:H.logprobs===!0||typeof H.logprobs==="number"?!0:void 0,top_logprobs:typeof H.logprobs==="number"?H.logprobs:typeof H.logprobs==="boolean"?H.logprobs?0:void 0:void 0,user:H.user,parallel_tool_calls:H.parallelToolCalls,max_tokens:Z,temperature:j,top_p:F,frequency_penalty:w,presence_penalty:D,response_format:(q==null?void 0:q.type)==="json"?q.schema!=null?{type:"json_schema",json_schema:{schema:q.schema,strict:i,name:(A=q.name)!=null?A:"response",description:q.description}}:{type:"json_object"}:void 0,stop:$,seed:b,verbosity:H.textVerbosity,max_completion_tokens:H.maxCompletionTokens,store:H.store,metadata:H.metadata,prediction:H.prediction,reasoning_effort:H.reasoningEffort,service_tier:H.serviceTier,prompt_cache_key:H.promptCacheKey,prompt_cache_retention:H.promptCacheRetention,safety_identifier:H.safetyIdentifier,messages:p};if(s){if(H.reasoningEffort!=="none"||!n.supportsNonReasoningParameters){if(Y.temperature!=null)Y.temperature=void 0,R.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"});if(Y.top_p!=null)Y.top_p=void 0,R.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"});if(Y.logprobs!=null)Y.logprobs=void 0,R.push({type:"other",message:"logprobs is not supported for reasoning models"})}if(Y.frequency_penalty!=null)Y.frequency_penalty=void 0,R.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"});if(Y.presence_penalty!=null)Y.presence_penalty=void 0,R.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"});if(Y.logit_bias!=null)Y.logit_bias=void 0,R.push({type:"other",message:"logitBias is not supported for reasoning models"});if(Y.top_logprobs!=null)Y.top_logprobs=void 0,R.push({type:"other",message:"topLogprobs is not supported for reasoning models"});if(Y.max_tokens!=null){if(Y.max_completion_tokens==null)Y.max_completion_tokens=Y.max_tokens;Y.max_tokens=void 0}}else if(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview")){if(Y.temperature!=null)Y.temperature=void 0,R.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})}if(H.serviceTier==="flex"&&!n.supportsFlexProcessing)R.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),Y.service_tier=void 0;if(H.serviceTier==="priority"&&!n.supportsPriorityProcessing)R.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),Y.service_tier=void 0;let{tools:t,toolChoice:C,toolWarnings:N}=iW({tools:K,toolChoice:B});return{args:{...Y,tools:t,tool_choice:C},warnings:[...R,...N]}}async doGenerate(X){var Z,j,F,J,w,D,$;let{args:q,warnings:b}=await this.getArgs(X),{responseHeaders:K,value:B,rawValue:f}=await XQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),X.headers),body:q,failedResponseHandler:jQ,successfulResponseHandler:BQ(mW),abortSignal:X.abortSignal,fetch:this.config.fetch}),L=B.choices[0],S=[],_=L.message.content;if(_!=null&&_.length>0)S.push({type:"text",text:_});for(let H of(Z=L.message.tool_calls)!=null?Z:[])S.push({type:"tool-call",toolCallId:(j=H.id)!=null?j:QQ(),toolName:H.function.name,input:H.function.arguments});for(let H of(F=L.message.annotations)!=null?F:[])S.push({type:"source",sourceType:"url",id:QQ(),url:H.url_citation.url,title:H.url_citation.title});let g=(J=B.usage)==null?void 0:J.completion_tokens_details,A=(w=B.usage)==null?void 0:w.prompt_tokens_details,R={openai:{}};if((g==null?void 0:g.accepted_prediction_tokens)!=null)R.openai.acceptedPredictionTokens=g==null?void 0:g.accepted_prediction_tokens;if((g==null?void 0:g.rejected_prediction_tokens)!=null)R.openai.rejectedPredictionTokens=g==null?void 0:g.rejected_prediction_tokens;if(((D=L.logprobs)==null?void 0:D.content)!=null)R.openai.logprobs=L.logprobs.content;return{content:S,finishReason:{unified:vQ(L.finish_reason),raw:($=L.finish_reason)!=null?$:void 0},usage:cQ(B.usage),request:{body:q},response:{...EQ(B),headers:K,body:f},warnings:b,providerMetadata:R}}async doStream(X){let{args:Z,warnings:j}=await this.getArgs(X),F={...Z,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:J,value:w}=await XQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),X.headers),body:F,failedResponseHandler:jQ,successfulResponseHandler:wQ(pW),abortSignal:X.abortSignal,fetch:this.config.fetch}),D=[],$={unified:"other",raw:void 0},q=void 0,b=!1,K=!1,B={openai:{}};return{stream:w.pipeThrough(new TransformStream({start(f){f.enqueue({type:"stream-start",warnings:j})},transform(f,L){var S,_,g,A,R,H,n,s,p,m,i,Y,t,C,N,d,e;if(X.includeRawChunks)L.enqueue({type:"raw",rawValue:f.rawValue});if(!f.success){$={unified:"error",raw:void 0},L.enqueue({type:"error",error:f.error});return}let k=f.value;if("error"in k){$={unified:"error",raw:void 0},L.enqueue({type:"error",error:k.error});return}if(!b){let G=EQ(k);if(Object.values(G).some(Boolean))b=!0,L.enqueue({type:"response-metadata",...EQ(k)})}if(k.usage!=null){if(q=k.usage,((S=k.usage.completion_tokens_details)==null?void 0:S.accepted_prediction_tokens)!=null)B.openai.acceptedPredictionTokens=(_=k.usage.completion_tokens_details)==null?void 0:_.accepted_prediction_tokens;if(((g=k.usage.completion_tokens_details)==null?void 0:g.rejected_prediction_tokens)!=null)B.openai.rejectedPredictionTokens=(A=k.usage.completion_tokens_details)==null?void 0:A.rejected_prediction_tokens}let M=k.choices[0];if((M==null?void 0:M.finish_reason)!=null)$={unified:vQ(M.finish_reason),raw:M.finish_reason};if(((R=M==null?void 0:M.logprobs)==null?void 0:R.content)!=null)B.openai.logprobs=M.logprobs.content;if((M==null?void 0:M.delta)==null)return;let E=M.delta;if(E.content!=null){if(!K)L.enqueue({type:"text-start",id:"0"}),K=!0;L.enqueue({type:"text-delta",id:"0",delta:E.content})}if(E.tool_calls!=null)for(let G of E.tool_calls){let T=G.index;if(D[T]==null){if(G.type!=null&&G.type!=="function")throw new UQ({data:G,message:"Expected 'function' type."});if(G.id==null)throw new UQ({data:G,message:"Expected 'id' to be a string."});if(((H=G.function)==null?void 0:H.name)==null)throw new UQ({data:G,message:"Expected 'function.name' to be a string."});L.enqueue({type:"tool-input-start",id:G.id,toolName:G.function.name}),D[T]={id:G.id,type:"function",function:{name:G.function.name,arguments:(n=G.function.arguments)!=null?n:""},hasFinished:!1};let z=D[T];if(((s=z.function)==null?void 0:s.name)!=null&&((p=z.function)==null?void 0:p.arguments)!=null){if(z.function.arguments.length>0)L.enqueue({type:"tool-input-delta",id:z.id,delta:z.function.arguments});if(bQ(z.function.arguments))L.enqueue({type:"tool-input-end",id:z.id}),L.enqueue({type:"tool-call",toolCallId:(m=z.id)!=null?m:QQ(),toolName:z.function.name,input:z.function.arguments}),z.hasFinished=!0}continue}let x=D[T];if(x.hasFinished)continue;if(((i=G.function)==null?void 0:i.arguments)!=null)x.function.arguments+=(t=(Y=G.function)==null?void 0:Y.arguments)!=null?t:"";if(L.enqueue({type:"tool-input-delta",id:x.id,delta:(C=G.function.arguments)!=null?C:""}),((N=x.function)==null?void 0:N.name)!=null&&((d=x.function)==null?void 0:d.arguments)!=null&&bQ(x.function.arguments))L.enqueue({type:"tool-input-end",id:x.id}),L.enqueue({type:"tool-call",toolCallId:(e=x.id)!=null?e:QQ(),toolName:x.function.name,input:x.function.arguments}),x.hasFinished=!0}if(E.annotations!=null)for(let G of E.annotations)L.enqueue({type:"source",sourceType:"url",id:QQ(),url:G.url_citation.url,title:G.url_citation.title})},flush(f){if(K)f.enqueue({type:"text-end",id:"0"});f.enqueue({type:"finish",finishReason:$,usage:cQ(q),...B!=null?{providerMetadata:B}:{}})}})),request:{body:F},response:{headers:J}}}};function nQ(X){var Z,j,F,J;if(X==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 w=(Z=X.prompt_tokens)!=null?Z:0,D=(j=X.completion_tokens)!=null?j:0;return{inputTokens:{total:(F=X.prompt_tokens)!=null?F:void 0,noCache:w,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:(J=X.completion_tokens)!=null?J:void 0,text:D,reasoning:void 0},raw:X}}function dW({prompt:X,user:Z="user",assistant:j="assistant"}){let F="";if(X[0].role==="system")F+=`${X[0].content}
3
3
 
4
4
  `,X=X.slice(1);for(let{role:J,content:w}of X)switch(J){case"system":throw new BW({message:"Unexpected system message in prompt: ${content}",prompt:X});case"user":{let D=w.map(($)=>{switch($.type){case"text":return $.text}}).filter(Boolean).join("");F+=`${Z}:
5
5
  ${D}