@qitqode/qitqode-android-arm64 0.2.13 → 0.2.15

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 (411) hide show
  1. package/bun +2 -2
  2. package/bundle/{chunk-9c0f79mt.js → chunk-00ft63qn.js} +1 -1
  3. package/bundle/{chunk-vr7525pa.js → chunk-02tmc2st.js} +1 -1
  4. package/bundle/{chunk-ewde5bss.js → chunk-06tgmvh6.js} +2 -2
  5. package/bundle/{chunk-wqm1vawg.js → chunk-0ejx0yqx.js} +1 -1
  6. package/bundle/{chunk-2md5fz4f.js → chunk-0m4gvjcv.js} +2 -2
  7. package/bundle/{chunk-jf4zyy7r.js → chunk-0mztgsxp.js} +1 -1
  8. package/bundle/{chunk-7bvh48s2.js → chunk-10kj86va.js} +1 -1
  9. package/bundle/{chunk-b46t2315.js → chunk-10q04xh5.js} +1 -1
  10. package/bundle/{chunk-dwjv3m5s.js → chunk-175720ws.js} +2 -2
  11. package/bundle/{chunk-xgphhnpk.js → chunk-19rs84t8.js} +1 -1
  12. package/bundle/{chunk-hsmtjb4d.js → chunk-1bq15kf0.js} +2 -2
  13. package/bundle/{chunk-1sejtx9a.js → chunk-1e75j4m1.js} +2 -2
  14. package/bundle/{chunk-dmgdwvn1.js → chunk-1pft3sar.js} +1 -1
  15. package/bundle/chunk-1r7anzk5.js +2 -0
  16. package/bundle/{chunk-rr94dpe9.js → chunk-1ypzf18e.js} +1 -1
  17. package/bundle/{chunk-q7wc3frq.js → chunk-2d61z24r.js} +1 -1
  18. package/bundle/{chunk-r9hsd9pw.js → chunk-2fged9vy.js} +1 -1
  19. package/bundle/chunk-2jzay8a9.js +2 -0
  20. package/bundle/{chunk-5828bcp8.js → chunk-2k2szpze.js} +1 -1
  21. package/bundle/{chunk-2p1qaqv3.js → chunk-2pw56zpj.js} +2 -2
  22. package/bundle/{chunk-yzxcjr6y.js → chunk-2tkgtasa.js} +2 -2
  23. package/bundle/{chunk-jrh028na.js → chunk-2w3n0q9m.js} +2 -2
  24. package/bundle/chunk-30rghawe.js +2 -0
  25. package/bundle/{chunk-jt94rhev.js → chunk-3152y1q9.js} +1 -1
  26. package/bundle/{chunk-1851skhm.js → chunk-31a47ptm.js} +1 -1
  27. package/bundle/chunk-33mzqyyb.js +3 -0
  28. package/bundle/{chunk-fqzfytjk.js → chunk-3c73rngn.js} +1 -1
  29. package/bundle/{chunk-wspm2k19.js → chunk-3cs1qf8x.js} +1 -1
  30. package/bundle/chunk-3dajnr1w.js +2 -0
  31. package/bundle/chunk-3ege6krg.js +2 -0
  32. package/bundle/chunk-43vpxggb.js +2 -0
  33. package/bundle/{chunk-hcd0k14e.js → chunk-48rg4yhk.js} +2 -2
  34. package/bundle/chunk-49y7zg15.js +2 -0
  35. package/bundle/{chunk-etvwxwn3.js → chunk-4b56k59w.js} +1 -1
  36. package/bundle/{chunk-aq75kv5f.js → chunk-4gzggzc0.js} +3 -3
  37. package/bundle/{chunk-rqdfmbns.js → chunk-4jfnhghx.js} +2 -2
  38. package/bundle/{chunk-g6ffx794.js → chunk-4ppw719f.js} +1 -1
  39. package/bundle/{chunk-g0x6q2ks.js → chunk-4r7fbkcm.js} +1 -1
  40. package/bundle/{chunk-5fbzvy6q.js → chunk-4s1n38ds.js} +2 -2
  41. package/bundle/{chunk-z6qb4gt5.js → chunk-4v29ayke.js} +1 -1
  42. package/bundle/{chunk-qa38xchd.js → chunk-4xcwnwd6.js} +1 -1
  43. package/bundle/{chunk-gvc1mqrs.js → chunk-4xqwt6dr.js} +2 -2
  44. package/bundle/{chunk-1bhcg889.js → chunk-4ycg2c6f.js} +2 -2
  45. package/bundle/{chunk-3be70hxy.js → chunk-4yd2vvh6.js} +1 -1
  46. package/bundle/{chunk-pzn7cade.js → chunk-5341jv20.js} +1 -1
  47. package/bundle/{chunk-z4gczap3.js → chunk-5asf8f41.js} +72 -72
  48. package/bundle/{chunk-z6f54x4k.js → chunk-5cwy8y78.js} +2 -2
  49. package/bundle/{chunk-6g3bzap8.js → chunk-5dvy83ms.js} +2 -2
  50. package/bundle/{chunk-ff031crt.js → chunk-5h1s0akp.js} +1 -1
  51. package/bundle/{chunk-tn0sfsks.js → chunk-5mf4qrye.js} +2 -2
  52. package/bundle/{chunk-0mdmqtfr.js → chunk-5q98z8ck.js} +2 -2
  53. package/bundle/chunk-5qhsfjzq.js +3 -0
  54. package/bundle/chunk-5re7995e.js +2 -0
  55. package/bundle/{chunk-y9kjt2jj.js → chunk-5rvvfgfy.js} +2 -2
  56. package/bundle/chunk-5xxn06g0.js +2 -0
  57. package/bundle/{chunk-2d0vympj.js → chunk-61b81z2h.js} +1 -1
  58. package/bundle/{chunk-4enhsmq1.js → chunk-62gefpwn.js} +2 -2
  59. package/bundle/{chunk-2h8b0csf.js → chunk-674pexjx.js} +2 -2
  60. package/bundle/{chunk-4ar8hey8.js → chunk-69htq8kq.js} +1 -1
  61. package/bundle/{chunk-h1p3xcfp.js → chunk-69k7cdtv.js} +2 -2
  62. package/bundle/{chunk-53n3tfwn.js → chunk-6cztstry.js} +2 -2
  63. package/bundle/{chunk-vqxyk6as.js → chunk-6dd2dx69.js} +2 -2
  64. package/bundle/{chunk-eftk07r3.js → chunk-6j53vtzd.js} +1 -1
  65. package/bundle/chunk-6k0y2332.js +2 -0
  66. package/bundle/{chunk-sn15skh8.js → chunk-6pt6nqwk.js} +1 -1
  67. package/bundle/{chunk-6wt8g6mc.js → chunk-6qwnty59.js} +2 -2
  68. package/bundle/{chunk-vvmvryh1.js → chunk-6yshpz0z.js} +2 -2
  69. package/bundle/{chunk-cv3xdp8q.js → chunk-6zdzbmzs.js} +394 -323
  70. package/bundle/{chunk-2ts2s8b4.js → chunk-71jmhvef.js} +2 -2
  71. package/bundle/{chunk-9xbc558j.js → chunk-73a7ts8r.js} +1 -1
  72. package/bundle/{chunk-sv27ep93.js → chunk-76wm7tw8.js} +2 -2
  73. package/bundle/chunk-7cp30q0t.js +2 -0
  74. package/bundle/chunk-7t63wz2f.js +2 -0
  75. package/bundle/{chunk-v30fmrz0.js → chunk-7w571q26.js} +1 -1
  76. package/bundle/{chunk-fbd971t7.js → chunk-83n11xym.js} +3 -3
  77. package/bundle/{chunk-m18pxkdg.js → chunk-840mmmzz.js} +4 -4
  78. package/bundle/{chunk-jcn8bg31.js → chunk-86reb44c.js} +1 -1
  79. package/bundle/{chunk-hnbtfpb7.js → chunk-86sfzgnf.js} +1 -1
  80. package/bundle/{chunk-4krmja97.js → chunk-878sb0es.js} +2 -2
  81. package/bundle/{chunk-v9yxkbz7.js → chunk-8a9sj8gp.js} +1 -1
  82. package/bundle/{chunk-0cjp9088.js → chunk-8gkz5550.js} +1 -1
  83. package/bundle/chunk-8gz8fk6r.js +2 -0
  84. package/bundle/chunk-8ht7cq3h.js +2 -0
  85. package/bundle/{chunk-msbe5rb7.js → chunk-8mqcar7f.js} +1 -1
  86. package/bundle/{chunk-3rcfy8te.js → chunk-8qpfphdz.js} +1 -1
  87. package/bundle/chunk-8qv0119d.js +2 -0
  88. package/bundle/{chunk-t1hw67x4.js → chunk-8zpsgfb6.js} +1 -1
  89. package/bundle/{chunk-c99npyz9.js → chunk-96sra8g8.js} +1 -1
  90. package/bundle/{chunk-nn2hbew8.js → chunk-99df6wvm.js} +1 -1
  91. package/bundle/{chunk-5wjwzbk8.js → chunk-9amnqaeq.js} +1 -1
  92. package/bundle/{chunk-hk8m8vax.js → chunk-9kc2th5c.js} +2 -2
  93. package/bundle/chunk-9m0eawt5.js +2 -0
  94. package/bundle/{chunk-fj87htwn.js → chunk-9mabvb06.js} +1 -1
  95. package/bundle/{chunk-xn6mwsc9.js → chunk-9ttebtcf.js} +1 -1
  96. package/bundle/{chunk-mfg4stzn.js → chunk-a1mbach4.js} +1 -1
  97. package/bundle/chunk-a32y70fe.js +2 -0
  98. package/bundle/{chunk-hgcnzsd5.js → chunk-a3g8de96.js} +1 -1
  99. package/bundle/{chunk-bydaqb08.js → chunk-a8askx4y.js} +1 -1
  100. package/bundle/{chunk-gcpwm7b5.js → chunk-adws0hhk.js} +2 -2
  101. package/bundle/{chunk-08mgb5tt.js → chunk-ae1b15bd.js} +12 -10
  102. package/bundle/{chunk-y5m9c5ek.js → chunk-ahgb3r1c.js} +2 -2
  103. package/bundle/chunk-apneazwv.js +2 -0
  104. package/bundle/{chunk-6p848y99.js → chunk-art8gejd.js} +1 -1
  105. package/bundle/{chunk-eh73j82b.js → chunk-avksqxan.js} +1 -1
  106. package/bundle/chunk-aw5yv01t.js +2 -0
  107. package/bundle/chunk-az12tp53.js +2 -0
  108. package/bundle/{chunk-gjmxrz0v.js → chunk-b350g18y.js} +2 -2
  109. package/bundle/chunk-b5dpzcc7.js +2 -0
  110. package/bundle/{chunk-c1srcpfk.js → chunk-b6m5tr80.js} +1 -1
  111. package/bundle/chunk-baq0wk3q.js +2 -0
  112. package/bundle/chunk-bcgtqx3g.js +2 -0
  113. package/bundle/{chunk-0w77vhg4.js → chunk-bdcd2mcb.js} +2 -2
  114. package/bundle/chunk-bde5d507.js +2 -0
  115. package/bundle/{chunk-139qfnsq.js → chunk-bemyyen3.js} +1 -1
  116. package/bundle/{chunk-1bbx1da7.js → chunk-bmdqb48f.js} +1 -1
  117. package/bundle/{chunk-bpv378bm.js → chunk-bq6cvf16.js} +2 -2
  118. package/bundle/{chunk-t66gerft.js → chunk-bxnsrggq.js} +1 -1
  119. package/bundle/{chunk-2b80n6nx.js → chunk-bzh71a92.js} +1 -1
  120. package/bundle/chunk-bzzggc3s.js +2 -0
  121. package/bundle/{chunk-2bfq0mtx.js → chunk-c1wc4b5q.js} +1 -1
  122. package/bundle/{chunk-78rfz0ex.js → chunk-c5cyt23k.js} +2 -2
  123. package/bundle/chunk-c8qx439t.js +2 -0
  124. package/bundle/{chunk-t1e52h0k.js → chunk-ch7s512a.js} +1 -1
  125. package/bundle/chunk-ckw51fn6.js +2 -0
  126. package/bundle/{chunk-1rafe6f5.js → chunk-crqycrs4.js} +2 -2
  127. package/bundle/{chunk-bd4krah7.js → chunk-csy1v12x.js} +1 -1
  128. package/bundle/{chunk-z2cnd2cp.js → chunk-d10qre1b.js} +1 -1
  129. package/bundle/{chunk-v6djkm35.js → chunk-d385e2qt.js} +1 -1
  130. package/bundle/{chunk-paqy0c2v.js → chunk-d4faz5xa.js} +1 -1
  131. package/bundle/{chunk-8xbd0ra5.js → chunk-d7h1dp0h.js} +1 -1
  132. package/bundle/chunk-denp0wrq.js +2 -0
  133. package/bundle/chunk-depxzjer.js +2 -0
  134. package/bundle/chunk-dhvqpcf3.js +2 -0
  135. package/bundle/{chunk-gdawpkxs.js → chunk-djdfpezf.js} +1 -1
  136. package/bundle/chunk-dkqqswbv.js +2 -0
  137. package/bundle/{chunk-e4658j15.js → chunk-dmb0ez0m.js} +3 -3
  138. package/bundle/chunk-dpbm03yh.js +2 -0
  139. package/bundle/{chunk-es6vbsjg.js → chunk-dvp0r93q.js} +1 -1
  140. package/bundle/{chunk-374js0y6.js → chunk-e18hshcg.js} +1 -1
  141. package/bundle/{chunk-5rtsnnjk.js → chunk-e37gd3p2.js} +1 -1
  142. package/bundle/chunk-e5t7jsxa.js +2 -0
  143. package/bundle/{chunk-wac35a6p.js → chunk-e611m0p4.js} +1 -1
  144. package/bundle/chunk-eb811dt2.js +2 -0
  145. package/bundle/{chunk-95ga21eq.js → chunk-edvfqxfr.js} +1 -1
  146. package/bundle/{chunk-yhe5qz48.js → chunk-ej0yzstw.js} +2 -2
  147. package/bundle/{chunk-7p8f8xav.js → chunk-ep4drmt9.js} +1 -1
  148. package/bundle/{chunk-xaewye8w.js → chunk-eqsank84.js} +1 -1
  149. package/bundle/{chunk-84712kbe.js → chunk-estc7tzt.js} +2 -2
  150. package/bundle/{chunk-s7ypkpg2.js → chunk-et3tgx7t.js} +1 -1
  151. package/bundle/{chunk-trg0zg0q.js → chunk-f0dp1tf9.js} +1 -1
  152. package/bundle/{chunk-z1psybn1.js → chunk-f0x3q5dj.js} +2 -2
  153. package/bundle/chunk-fbz2xv2w.js +2 -0
  154. package/bundle/{chunk-mbma071k.js → chunk-fdmz0502.js} +2 -2
  155. package/bundle/{chunk-mrh5q4s6.js → chunk-ffx0cr44.js} +2 -2
  156. package/bundle/{chunk-e6s8ep9m.js → chunk-ffyj5nsg.js} +2 -2
  157. package/bundle/chunk-ffynh19k.js +2 -0
  158. package/bundle/chunk-fgr9xshx.js +2 -0
  159. package/bundle/{chunk-9a9qcvtz.js → chunk-fkq0v5qv.js} +2 -2
  160. package/bundle/{chunk-mp5m0acf.js → chunk-fmcg649e.js} +1 -1
  161. package/bundle/{chunk-g3y5kvg6.js → chunk-fp2xgnjn.js} +2 -2
  162. package/bundle/{chunk-rwt0rwvn.js → chunk-fswt9qc0.js} +2 -2
  163. package/bundle/{chunk-1exjy880.js → chunk-g77kddrs.js} +2 -2
  164. package/bundle/chunk-gbvcb4k1.js +2 -0
  165. package/bundle/{chunk-mgff8bcx.js → chunk-gd0j16gn.js} +1 -1
  166. package/bundle/chunk-gdtnqzbp.js +2 -0
  167. package/bundle/{chunk-hrfdrz36.js → chunk-gfvq78gy.js} +1 -1
  168. package/bundle/chunk-gkfvhh28.js +2 -0
  169. package/bundle/chunk-gvx5hmhk.js +2 -0
  170. package/bundle/chunk-gww6abk3.js +2 -0
  171. package/bundle/{chunk-1f9qcrn6.js → chunk-h036zy9e.js} +2 -2
  172. package/bundle/{chunk-71naz1qp.js → chunk-h6b5966p.js} +1 -1
  173. package/bundle/{chunk-zhddj91f.js → chunk-hf39qx6t.js} +2 -2
  174. package/bundle/chunk-hham7r33.js +2 -0
  175. package/bundle/chunk-hmm0gj34.js +3 -0
  176. package/bundle/{chunk-404ew3d3.js → chunk-hmmn62jg.js} +1 -1
  177. package/bundle/{chunk-map852em.js → chunk-hrcqbadm.js} +1 -1
  178. package/bundle/chunk-hsjbe5zy.js +2 -0
  179. package/bundle/{chunk-04x4b2yy.js → chunk-j15wejz0.js} +1 -1
  180. package/bundle/{chunk-5es19n1m.js → chunk-j2snkw45.js} +2 -2
  181. package/bundle/{chunk-z66xdxkg.js → chunk-j3agzs13.js} +2 -2
  182. package/bundle/{chunk-4wzv2v36.js → chunk-j45p2v4a.js} +3 -3
  183. package/bundle/{chunk-094m66q5.js → chunk-j46bxb1b.js} +1 -1
  184. package/bundle/chunk-j89sv999.js +2 -0
  185. package/bundle/{chunk-1gt6ppza.js → chunk-k0chq88p.js} +1 -1
  186. package/bundle/{chunk-81mwbcy3.js → chunk-k4wfq9cn.js} +2 -2
  187. package/bundle/{chunk-8t17w67q.js → chunk-k769v1ds.js} +1 -1
  188. package/bundle/{chunk-rf9pjbg3.js → chunk-k8dbc1p5.js} +1 -1
  189. package/bundle/chunk-k9b4005p.js +2 -0
  190. package/bundle/{chunk-xgdst5n5.js → chunk-kegvr7wt.js} +2 -2
  191. package/bundle/chunk-kht2kwam.js +2 -0
  192. package/bundle/{chunk-h2vtypa5.js → chunk-knqpyc7s.js} +1 -1
  193. package/bundle/{chunk-8hrt4d0v.js → chunk-ky3fhz9z.js} +1 -1
  194. package/bundle/chunk-kzkb4648.js +2 -0
  195. package/bundle/chunk-m2540waa.js +2 -0
  196. package/bundle/{chunk-hp9q7vvq.js → chunk-m6967jtv.js} +2 -2
  197. package/bundle/{chunk-7h0regqs.js → chunk-m8kjtp60.js} +1 -1
  198. package/bundle/{chunk-q65qzc9w.js → chunk-mbmaeq0a.js} +1 -1
  199. package/bundle/chunk-mdxtt9wv.js +8 -0
  200. package/bundle/{chunk-anm5g0m4.js → chunk-meehnnv9.js} +2 -2
  201. package/bundle/{chunk-k3x6z5q1.js → chunk-mjkwd1sz.js} +1 -1
  202. package/bundle/{chunk-dpm5x19e.js → chunk-mnjz8nqs.js} +2 -2
  203. package/bundle/{chunk-e0w082wt.js → chunk-mq3w4z8k.js} +184 -184
  204. package/bundle/chunk-mreacz8r.js +2 -0
  205. package/bundle/chunk-mscvm1rm.js +2 -0
  206. package/bundle/chunk-mw3hh526.js +2 -0
  207. package/bundle/chunk-n3nsrk5n.js +2 -0
  208. package/bundle/chunk-n4qbnecw.js +35 -0
  209. package/bundle/{chunk-wrkt670m.js → chunk-n7zd97hy.js} +2 -2
  210. package/bundle/chunk-n9nmc4q4.js +2 -0
  211. package/bundle/{chunk-p3tcw42f.js → chunk-nb4xtk1n.js} +1 -1
  212. package/bundle/chunk-nj4as8vy.js +2 -0
  213. package/bundle/chunk-nxm6gpyv.js +2 -0
  214. package/bundle/{chunk-5gv6r7v8.js → chunk-nyxn7npc.js} +1 -1
  215. package/bundle/{chunk-mhn0a828.js → chunk-nzz7gzg2.js} +1 -1
  216. package/bundle/{chunk-y9mxwwz7.js → chunk-p0852vfn.js} +2 -2
  217. package/bundle/{chunk-xrb46v1e.js → chunk-p4xqfkbh.js} +1 -1
  218. package/bundle/{chunk-7nh8vjx4.js → chunk-pdcxmr6x.js} +1 -1
  219. package/bundle/chunk-pqzx9ha6.js +2 -0
  220. package/bundle/{chunk-w264gs2c.js → chunk-prz2fkn9.js} +1 -1
  221. package/bundle/{chunk-d2049chz.js → chunk-psmwrvqs.js} +2 -2
  222. package/bundle/{chunk-4d9s7cgr.js → chunk-pwq2f75j.js} +1 -1
  223. package/bundle/{chunk-5psekq9f.js → chunk-pwrwb7mn.js} +1 -1
  224. package/bundle/{chunk-1wy8wmah.js → chunk-px69995t.js} +1 -1
  225. package/bundle/{chunk-pfen4ekj.js → chunk-q1dmxn63.js} +2 -2
  226. package/bundle/{chunk-ycth54ja.js → chunk-q896qkhe.js} +1 -1
  227. package/bundle/chunk-qbjqkezn.js +2 -0
  228. package/bundle/chunk-qhtp1xvx.js +2 -0
  229. package/bundle/{chunk-hd6sd912.js → chunk-qk6jh32z.js} +1 -1
  230. package/bundle/chunk-qkztgpay.js +2 -0
  231. package/bundle/{chunk-x0wy15q9.js → chunk-qn1fhqyw.js} +2 -2
  232. package/bundle/{chunk-n73ckwr7.js → chunk-qpk7jp6t.js} +1 -1
  233. package/bundle/{chunk-7k1q26yn.js → chunk-qrztx1b4.js} +2 -2
  234. package/bundle/{chunk-dzy3ezht.js → chunk-rd08wx37.js} +2 -2
  235. package/bundle/{chunk-ba2hn77m.js → chunk-rk4c0zat.js} +1 -1
  236. package/bundle/{chunk-mqtj38j9.js → chunk-rn3je2hv.js} +1 -1
  237. package/bundle/chunk-rnf3dy0y.js +2 -0
  238. package/bundle/{chunk-72qx43fq.js → chunk-rqap90xh.js} +2 -2
  239. package/bundle/chunk-rry4kq85.js +2 -0
  240. package/bundle/{chunk-47pxz6cb.js → chunk-rt49c6js.js} +2 -2
  241. package/bundle/{chunk-5a4zt1b7.js → chunk-rws2tsdv.js} +1 -1
  242. package/bundle/{chunk-r65zw08x.js → chunk-rx9eh3db.js} +3 -3
  243. package/bundle/{chunk-tzw56029.js → chunk-rxt6gktt.js} +1 -1
  244. package/bundle/chunk-ryfj80q6.js +2 -0
  245. package/bundle/{chunk-ec1bwa7f.js → chunk-s0gmxpxm.js} +2 -2
  246. package/bundle/{chunk-8psfgg8y.js → chunk-s9epttpy.js} +1 -1
  247. package/bundle/{chunk-gtmtvjwc.js → chunk-sb3cgb4v.js} +1 -1
  248. package/bundle/{chunk-p863r97y.js → chunk-set1f1wr.js} +1 -1
  249. package/bundle/{chunk-zgj7jx8k.js → chunk-sg9enzsp.js} +2 -2
  250. package/bundle/{chunk-0xf12tf3.js → chunk-sh03ka27.js} +1 -1
  251. package/bundle/chunk-snx49w8h.js +2 -0
  252. package/bundle/{chunk-610mqqqa.js → chunk-spcdwmy4.js} +1 -1
  253. package/bundle/{chunk-ydz7387e.js → chunk-sy76e7nr.js} +1 -1
  254. package/bundle/{chunk-csbndz33.js → chunk-szfqmkj6.js} +1 -1
  255. package/bundle/chunk-t21mdqbb.js +2 -0
  256. package/bundle/{chunk-t7gp6mjm.js → chunk-tcyzj3rz.js} +1 -1
  257. package/bundle/chunk-tkbjcznz.js +2 -0
  258. package/bundle/chunk-tn2yyqeb.js +2 -0
  259. package/bundle/chunk-ttebf3nt.js +2 -0
  260. package/bundle/chunk-twpfh0mx.js +2 -0
  261. package/bundle/{chunk-a4242cn4.js → chunk-tz1bzrnh.js} +1 -1
  262. package/bundle/chunk-tzf6d5qy.js +2 -0
  263. package/bundle/{chunk-hzzvmr41.js → chunk-v1axkp21.js} +2 -2
  264. package/bundle/chunk-v2mq09wx.js +2 -0
  265. package/bundle/chunk-v59a02aj.js +2 -0
  266. package/bundle/{chunk-8rbbt1s8.js → chunk-v5me0cj9.js} +1 -1
  267. package/bundle/{chunk-gw2fz5ry.js → chunk-v7v0krrj.js} +1 -1
  268. package/bundle/{chunk-9r6wk75s.js → chunk-veptx3fk.js} +1 -1
  269. package/bundle/{chunk-d4ys15w3.js → chunk-vgmgg994.js} +1 -1
  270. package/bundle/{chunk-vvcyvdnk.js → chunk-vr13f6b5.js} +2 -2
  271. package/bundle/{chunk-jmrqp50k.js → chunk-vsv4p060.js} +1 -1
  272. package/bundle/chunk-vxr4rzt0.js +2 -0
  273. package/bundle/chunk-w0h9rczg.js +2 -0
  274. package/bundle/{chunk-fmvmp278.js → chunk-w0t1ajhg.js} +1 -1
  275. package/bundle/{chunk-6jb4mnvq.js → chunk-w136zswr.js} +3 -3
  276. package/bundle/chunk-w8344et5.js +2 -0
  277. package/bundle/{chunk-b274mb6v.js → chunk-w8nj5ph5.js} +1 -1
  278. package/bundle/chunk-weyg78et.js +2 -0
  279. package/bundle/{chunk-6kpk6pr3.js → chunk-wf0n1cs9.js} +1 -1
  280. package/bundle/{chunk-00krzh3y.js → chunk-wfpnv00c.js} +2 -2
  281. package/bundle/{chunk-mchf2bcc.js → chunk-wne3v1fk.js} +2 -2
  282. package/bundle/{chunk-wwtyrgga.js → chunk-wrzn87w0.js} +1 -1
  283. package/bundle/{chunk-npryn3en.js → chunk-ws720v4j.js} +1 -1
  284. package/bundle/chunk-wyavgt96.js +2 -0
  285. package/bundle/{chunk-t4kma6mq.js → chunk-x0de4z05.js} +2 -2
  286. package/bundle/{chunk-qqftaqza.js → chunk-x3dzzq0t.js} +1 -1
  287. package/bundle/{chunk-45dtsre6.js → chunk-x4jnyj09.js} +1 -1
  288. package/bundle/chunk-xchj8gna.js +2 -0
  289. package/bundle/{chunk-s81ck6bw.js → chunk-xdcwx384.js} +1 -1
  290. package/bundle/{chunk-yqvqzg7b.js → chunk-xmf59618.js} +1 -1
  291. package/bundle/{chunk-1rw4srd1.js → chunk-xxck1man.js} +1 -1
  292. package/bundle/{chunk-yg5azmxb.js → chunk-y4cz5s3h.js} +2 -2
  293. package/bundle/{chunk-vzj91hg8.js → chunk-yg9n2a2d.js} +1 -1
  294. package/bundle/{chunk-eefzbdbk.js → chunk-yhpwceqg.js} +2 -2
  295. package/bundle/{chunk-h9tcpbr7.js → chunk-yms3bsm7.js} +1 -1
  296. package/bundle/{chunk-9h2fms7x.js → chunk-ytfq6rn9.js} +1 -1
  297. package/bundle/chunk-yvjecrjy.js +2 -0
  298. package/bundle/{chunk-xpz5mnwz.js → chunk-yvtkx4x4.js} +1 -1
  299. package/bundle/chunk-yw2x6by6.js +2 -0
  300. package/bundle/{chunk-0ware2sh.js → chunk-ywj77e0m.js} +2 -2
  301. package/bundle/{chunk-962hspr0.js → chunk-z0dj15g9.js} +1 -1
  302. package/bundle/chunk-z0r4syk8.js +2 -0
  303. package/bundle/{chunk-1q5h95hc.js → chunk-z6qyx227.js} +1 -1
  304. package/bundle/chunk-z7c00g63.js +2 -0
  305. package/bundle/chunk-z93n3cbm.js +2 -0
  306. package/bundle/{chunk-3fx3eghq.js → chunk-zbt53cb5.js} +1 -1
  307. package/bundle/{chunk-tks3qzsw.js → chunk-zgwasq3p.js} +1 -1
  308. package/bundle/{chunk-6dmk2eyt.js → chunk-zh7e6kqs.js} +1 -1
  309. package/bundle/{chunk-4s9d2zte.js → chunk-zhhcfqhh.js} +1 -1
  310. package/bundle/{chunk-4q14whpc.js → chunk-zjyaze0d.js} +1 -1
  311. package/bundle/chunk-znr0saas.js +2 -0
  312. package/bundle/chunk-zqqt7v17.js +2 -0
  313. package/bundle/chunk-zwrgh1hc.js +2 -0
  314. package/bundle/chunk-zwxp07yc.js +2 -0
  315. package/bundle/{chunk-821zkh5v.js → chunk-zx63mepv.js} +1 -1
  316. package/bundle/index.js +3 -3
  317. package/bundle/parser.worker.js +2 -2
  318. package/bundle/worker.js +1 -1
  319. package/package.json +1 -1
  320. package/bundle/chunk-0nves64y.js +0 -2
  321. package/bundle/chunk-0v7knkt5.js +0 -2
  322. package/bundle/chunk-1h5jdsgx.js +0 -2
  323. package/bundle/chunk-1r5e1jsb.js +0 -2
  324. package/bundle/chunk-1wyy3c48.js +0 -2
  325. package/bundle/chunk-1z299xq6.js +0 -2
  326. package/bundle/chunk-21aqt31s.js +0 -2
  327. package/bundle/chunk-22aq9ymg.js +0 -2
  328. package/bundle/chunk-26a17c9z.js +0 -2
  329. package/bundle/chunk-2a154mr0.js +0 -2
  330. package/bundle/chunk-2nbce486.js +0 -2
  331. package/bundle/chunk-2npxatq9.js +0 -2
  332. package/bundle/chunk-3gryj9r9.js +0 -2
  333. package/bundle/chunk-3jnanbjr.js +0 -2
  334. package/bundle/chunk-3meh1cbc.js +0 -2
  335. package/bundle/chunk-3t71xfr6.js +0 -2
  336. package/bundle/chunk-4045jzv5.js +0 -2
  337. package/bundle/chunk-4b2vv484.js +0 -2
  338. package/bundle/chunk-4ene1ymj.js +0 -2
  339. package/bundle/chunk-58r5etg8.js +0 -2
  340. package/bundle/chunk-5c2zw4h0.js +0 -2
  341. package/bundle/chunk-5e0vejcb.js +0 -8
  342. package/bundle/chunk-608f83n0.js +0 -2
  343. package/bundle/chunk-671r50ry.js +0 -2
  344. package/bundle/chunk-6bfnhr3d.js +0 -2
  345. package/bundle/chunk-6cv6d8rw.js +0 -2
  346. package/bundle/chunk-6qm6f88j.js +0 -2
  347. package/bundle/chunk-78bfwwmc.js +0 -2
  348. package/bundle/chunk-7wwtgxxf.js +0 -2
  349. package/bundle/chunk-98sb49dz.js +0 -2
  350. package/bundle/chunk-9kbtpq9m.js +0 -2
  351. package/bundle/chunk-9szp9b4m.js +0 -2
  352. package/bundle/chunk-9xqszq0c.js +0 -2
  353. package/bundle/chunk-a32kjs9e.js +0 -2
  354. package/bundle/chunk-ajykvcas.js +0 -2
  355. package/bundle/chunk-apym02ct.js +0 -2
  356. package/bundle/chunk-armv2rv5.js +0 -2
  357. package/bundle/chunk-as215v64.js +0 -2
  358. package/bundle/chunk-bnmpgpyf.js +0 -2
  359. package/bundle/chunk-bq3zt1x1.js +0 -2
  360. package/bundle/chunk-bx8fgjam.js +0 -2
  361. package/bundle/chunk-ckcnb59t.js +0 -2
  362. package/bundle/chunk-d79xaj6s.js +0 -3
  363. package/bundle/chunk-dah2d37s.js +0 -2
  364. package/bundle/chunk-dhgjv1n2.js +0 -2
  365. package/bundle/chunk-dk9k8ff5.js +0 -2
  366. package/bundle/chunk-dymysn4h.js +0 -2
  367. package/bundle/chunk-ev4gw5k6.js +0 -2
  368. package/bundle/chunk-ew2dxm43.js +0 -2
  369. package/bundle/chunk-ffp4wg27.js +0 -2
  370. package/bundle/chunk-hjy90gt2.js +0 -2
  371. package/bundle/chunk-hmden934.js +0 -2
  372. package/bundle/chunk-hsm8fbb1.js +0 -2
  373. package/bundle/chunk-hz1xfedb.js +0 -2
  374. package/bundle/chunk-ja9y478k.js +0 -2
  375. package/bundle/chunk-jam7xyjf.js +0 -2
  376. package/bundle/chunk-k51qphrk.js +0 -2
  377. package/bundle/chunk-kee7xpe3.js +0 -2
  378. package/bundle/chunk-p13eeqe4.js +0 -2
  379. package/bundle/chunk-p45f2nyb.js +0 -2
  380. package/bundle/chunk-qvwx32p9.js +0 -35
  381. package/bundle/chunk-qw9whsy2.js +0 -2
  382. package/bundle/chunk-r77kpzdv.js +0 -2
  383. package/bundle/chunk-rc95tp19.js +0 -2
  384. package/bundle/chunk-rmh2fhqy.js +0 -2
  385. package/bundle/chunk-rrn86a8w.js +0 -2
  386. package/bundle/chunk-s8v0h63x.js +0 -2
  387. package/bundle/chunk-sh4mngre.js +0 -2
  388. package/bundle/chunk-shqqngm8.js +0 -2
  389. package/bundle/chunk-sjfcwykr.js +0 -2
  390. package/bundle/chunk-sv01v0n0.js +0 -2
  391. package/bundle/chunk-tn8hsd2c.js +0 -2
  392. package/bundle/chunk-tqsx7w8z.js +0 -2
  393. package/bundle/chunk-tyt1negg.js +0 -2
  394. package/bundle/chunk-v580zwpf.js +0 -3
  395. package/bundle/chunk-vdv6cyh0.js +0 -2
  396. package/bundle/chunk-vsk8yfxp.js +0 -2
  397. package/bundle/chunk-vvgmkjym.js +0 -2
  398. package/bundle/chunk-vzf04vad.js +0 -2
  399. package/bundle/chunk-w0zyex7f.js +0 -2
  400. package/bundle/chunk-w623r5kb.js +0 -3
  401. package/bundle/chunk-wkxt9v7s.js +0 -2
  402. package/bundle/chunk-wwf6zacw.js +0 -2
  403. package/bundle/chunk-x9c8eddk.js +0 -2
  404. package/bundle/chunk-xjed8t2h.js +0 -2
  405. package/bundle/chunk-xxhta1tm.js +0 -2
  406. package/bundle/chunk-yhj6858v.js +0 -2
  407. package/bundle/chunk-yq3byrpv.js +0 -2
  408. package/bundle/chunk-ys8ajwys.js +0 -2
  409. package/bundle/chunk-yzt7p956.js +0 -2
  410. package/bundle/chunk-z56cb3fs.js +0 -2
  411. package/bundle/chunk-zhypknyg.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-0xf12tf3.js";var{create:mr,defineProperty:it,getOwnPropertyDescriptor:fr,getOwnPropertyNames:yr,getPrototypeOf:xr}=Object,Pr=Object.prototype.hasOwnProperty,Ar=(l,u)=>()=>(u||l((u={exports:{}}).exports,u),u.exports),rt=(l,u)=>{for(var m in u)it(l,m,{get:u[m],enumerable:!0})},gr=(l,u,m,f)=>{if(u&&typeof u=="object"||typeof u=="function")for(let x of yr(u))!Pr.call(l,x)&&x!==m&&it(l,x,{get:()=>u[x],enumerable:!(f=fr(u,x))||f.enumerable});return l},Gt=(l,u,m)=>(m=l!=null?mr(xr(l)):{},gr(u||!l||!l.__esModule?it(m,"default",{value:l,enumerable:!0}):m,l)),Yt=Ar((l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(t,e){if(t==null)return{};var s={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;s[i]=t[i]}return s}var m=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},f=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function x(t,e){let{line:s,column:i,index:r}=t;return new m(s,i+e,r+e)}var C="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",D={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:C},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:C}},U={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},S=(t)=>t.type==="UpdateExpression"?U.UpdateExpression[`${t.prefix}`]:U[t.type],M={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
2
+ import"./chunk-sh03ka27.js";var{create:mr,defineProperty:it,getOwnPropertyDescriptor:fr,getOwnPropertyNames:yr,getPrototypeOf:xr}=Object,Pr=Object.prototype.hasOwnProperty,Ar=(l,u)=>()=>(u||l((u={exports:{}}).exports,u),u.exports),rt=(l,u)=>{for(var m in u)it(l,m,{get:u[m],enumerable:!0})},gr=(l,u,m,f)=>{if(u&&typeof u=="object"||typeof u=="function")for(let x of yr(u))!Pr.call(l,x)&&x!==m&&it(l,x,{get:()=>u[x],enumerable:!(f=fr(u,x))||f.enumerable});return l},Gt=(l,u,m)=>(m=l!=null?mr(xr(l)):{},gr(u||!l||!l.__esModule?it(m,"default",{value:l,enumerable:!0}):m,l)),Yt=Ar((l)=>{Object.defineProperty(l,"__esModule",{value:!0});function u(t,e){if(t==null)return{};var s={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;s[i]=t[i]}return s}var m=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},f=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function x(t,e){let{line:s,column:i,index:r}=t;return new m(s,i+e,r+e)}var C="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",D={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:C},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:C}},U={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},S=(t)=>t.type==="UpdateExpression"?U.UpdateExpression[`${t.prefix}`]:U[t.type],M={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
3
3
  - Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
4
4
  - Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${S(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${S(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${S(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map((e)=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e)=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},B={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},X={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},ie=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),re=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${S({type:t})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),ms=["message"];function ot(t,e,s){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:s})}function fs({toMessage:t,code:e,reasonCode:s,syntaxPlugin:i}){let r=s==="MissingPlugin"||s==="MissingOneOfPlugins";{let a={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};a[s]&&(s=a[s])}return function a(n,o){let p=SyntaxError();return p.code=e,p.reasonCode=s,p.loc=n,p.pos=n.index,p.syntaxPlugin=i,r&&(p.missingPlugin=o.missingPlugin),ot(p,"clone",function(h={}){var d;let{line:y,column:A,index:T}=(d=h.loc)!=null?d:n;return a(new m(y,A,T),Object.assign({},o,h.details))}),ot(p,"details",o),Object.defineProperty(p,"message",{configurable:!0,get(){let h=`${t(o)} (${n.line}:${n.column})`;return this.message=h,h},set(h){Object.defineProperty(this,"message",{value:h,writable:!0})}}),p}}function $(t,e){if(Array.isArray(t))return(i)=>$(i,t[0]);let s={};for(let i of Object.keys(t)){let r=t[i],a=typeof r=="string"?{message:()=>r}:typeof r=="function"?{message:r}:r,{message:n}=a,o=u(a,ms),p=typeof n=="string"?()=>n:n;s[i]=fs(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:p},e?{syntaxPlugin:e}:{},o))}return s}var c=Object.assign({},$(D),$(M),$(B),$(X),$`pipelineOperator`(re));function ys(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function xs(t){let e=ys();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let s of Object.keys(e))t[s]!=null&&(e[s]=t[s]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((t.startColumn==null||t.startIndex==null)&&t.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return e}var{defineProperty:Ps}=Object,ht=(t,e)=>{t&&Ps(t,e,{enumerable:!1,value:t[e]})};function pe(t){return ht(t.loc.start,"index"),ht(t.loc.end,"index"),t}var As=(t)=>class extends t{parse(){let e=pe(super.parse());return this.optionFlags&256&&(e.tokens=e.tokens.map(pe)),e}parseRegExpLiteral({pattern:e,flags:s}){let i=null;try{i=new RegExp(e,s)}catch{}let r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:s},r}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||e),s}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,s){let i=this.startNodeAtNode(e);return i.expression=e,this.finishNodeAt(i,"ChainExpression",s)}directiveToStmt(e){let s=e.value;delete e.value,this.castNodeTo(s,"Literal"),s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=this.castNodeTo(e,"ExpressionStatement");return i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){let{start:s,end:i,loc:r,range:a,raw:n,value:o}=e,p=Object.create(e.constructor.prototype);return p.type="Literal",p.start=s,p.end=i,p.loc=r,p.range=a,p.raw=n,p.value=o,p}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,r,a){super.parseBlockBody(e,s,i,r,a);let n=e.directives.map((o)=>this.directiveToStmt(o));e.body=n.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let s=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=s,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?e.type==="PrivateIdentifier":super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,s){let i=super.parseLiteral(e,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,s,i=!1){super.parseFunctionBody(e,s,i),e.expression=e.body.type!=="BlockStatement"}parseMethod(e,s,i,r,a,n,o=!1){let p=this.startNode();p.kind=e.kind,p=super.parseMethod(p,s,i,r,a,n,o),delete p.kind;let{typeParameters:h}=e;h&&(delete e.typeParameters,p.typeParameters=h,this.resetStartLocationFromNode(p,h));let d=this.castNodeTo(p,"FunctionExpression");return e.value=d,n==="ClassPrivateMethod"&&(e.computed=!1),n==="ObjectMethod"?(e.kind==="method"&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return e.type==="Literal"?e.value==="constructor":super.nameIsConstructor(e)}parseClassProperty(...e){let s=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(s,"PropertyDefinition"),s}parseClassPrivateProperty(...e){let s=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(s,"PropertyDefinition"),s.computed=!1),s}parseClassAccessorProperty(e){let s=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")&&(s.abstract&&this.hasPlugin("typescript")?(delete s.abstract,this.castNodeTo(s,"TSAbstractAccessorProperty")):this.castNodeTo(s,"AccessorProperty")),s}parseObjectProperty(e,s,i,r){let a=super.parseObjectProperty(e,s,i,r);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,s,i){return e==="Property"?"value":super.isValidLVal(e,s,i)}isAssignable(e,s){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,s):super.isAssignable(e,s)}toAssignable(e,s=!1){if(e!=null&&this.isObjectProperty(e)){let{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,s)}else super.toAssignable(e,s)}toAssignableObjectExpressionProp(e,s,i){e.type==="Property"&&(e.kind==="get"||e.kind==="set")?this.raise(c.PatternHasAccessor,e.key):e.type==="Property"&&e.method?this.raise(c.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,s,i)}finishCallExpression(e,s){let i=super.finishCallExpression(e,s);if(i.callee.type==="Import"){var r,a;this.castNodeTo(i,"ImportExpression"),i.source=i.arguments[0],i.options=(r=i.arguments[1])!=null?r:null,i.attributes=(a=i.arguments[1])!=null?a:null,delete i.arguments,delete i.callee}else i.type==="OptionalCallExpression"?this.castNodeTo(i,"CallExpression"):i.optional=!1;return i}toReferencedArguments(e){e.type!=="ImportExpression"&&super.toReferencedArguments(e)}parseExport(e,s){let i=this.state.lastTokStartLoc,r=super.parseExport(e,s);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":r.specifiers.length===1&&r.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(r,"ExportAllDeclaration"),r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:n}=r;(n==null?void 0:n.type)==="ClassDeclaration"&&((a=n.decorators)==null?void 0:a.length)>0&&n.start===r.start&&this.resetStartLocation(r,i)}break}return r}stopParseSubscript(e,s){let i=super.stopParseSubscript(e,s);return s.optionalChainMember?this.estreeParseChainExpression(i,e.loc.end):i}parseMember(e,s,i,r,a){let n=super.parseMember(e,s,i,r,a);return n.type==="OptionalMemberExpression"?this.castNodeTo(n,"MemberExpression"):n.optional=!1,n}isOptionalMemberExpression(e){return e.type==="ChainExpression"?e.expression.type==="MemberExpression":super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type==="ChainExpression"&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,s){let i=super.castNodeTo(e,s);return this.fillOptionalPropertiesForTSESLint(i),i}cloneIdentifier(e){let s=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(s),s}cloneStringLiteral(e){return e.type==="Literal"?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,s,i){return pe(super.finishNodeAt(e,s,i))}finishNode(e,s){let i=super.finishNode(e,s);return this.fillOptionalPropertiesForTSESLint(i),i}resetStartLocation(e,s){super.resetStartLocation(e,s),pe(e)}resetEndLocation(e,s=this.state.lastTokEndLoc){super.resetEndLocation(e,s),pe(e)}},ce=class{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}},F={brace:new ce("{"),j_oTag:new ce("<tag"),j_cTag:new ce("</tag"),j_expr:new ce("<tag>...</tag>",!0)};F.template=new ce("`",!0);var I=!0,P=!0,Me=!0,ue=!0,G=!0,gs=!0,lt=class{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop!=null?e.binop:null,this.updateContext=null}},Be=new Map;function v(t,e={}){e.keyword=t;let s=b(t,e);return Be.set(t,s),s}function j(t,e){return b(t,{beforeExpr:I,binop:e})}var de=-1,q=[],Oe=[],Re=[],Ue=[],je=[],_e=[];function b(t,e={}){var s,i,r,a;return++de,Oe.push(t),Re.push((s=e.binop)!=null?s:-1),Ue.push((i=e.beforeExpr)!=null?i:!1),je.push((r=e.startsExpr)!=null?r:!1),_e.push((a=e.prefix)!=null?a:!1),q.push(new lt(t,e)),de}function N(t,e={}){var s,i,r,a;return++de,Be.set(t,de),Oe.push(t),Re.push((s=e.binop)!=null?s:-1),Ue.push((i=e.beforeExpr)!=null?i:!1),je.push((r=e.startsExpr)!=null?r:!1),_e.push((a=e.prefix)!=null?a:!1),q.push(new lt("name",e)),de}var Ts={bracketL:b("[",{beforeExpr:I,startsExpr:P}),bracketHashL:b("#[",{beforeExpr:I,startsExpr:P}),bracketBarL:b("[|",{beforeExpr:I,startsExpr:P}),bracketR:b("]"),bracketBarR:b("|]"),braceL:b("{",{beforeExpr:I,startsExpr:P}),braceBarL:b("{|",{beforeExpr:I,startsExpr:P}),braceHashL:b("#{",{beforeExpr:I,startsExpr:P}),braceR:b("}"),braceBarR:b("|}"),parenL:b("(",{beforeExpr:I,startsExpr:P}),parenR:b(")"),comma:b(",",{beforeExpr:I}),semi:b(";",{beforeExpr:I}),colon:b(":",{beforeExpr:I}),doubleColon:b("::",{beforeExpr:I}),dot:b("."),question:b("?",{beforeExpr:I}),questionDot:b("?."),arrow:b("=>",{beforeExpr:I}),template:b("template"),ellipsis:b("...",{beforeExpr:I}),backQuote:b("`",{startsExpr:P}),dollarBraceL:b("${",{beforeExpr:I,startsExpr:P}),templateTail:b("...`",{startsExpr:P}),templateNonTail:b("...${",{beforeExpr:I,startsExpr:P}),at:b("@"),hash:b("#",{startsExpr:P}),interpreterDirective:b("#!..."),eq:b("=",{beforeExpr:I,isAssign:ue}),assign:b("_=",{beforeExpr:I,isAssign:ue}),slashAssign:b("_=",{beforeExpr:I,isAssign:ue}),xorAssign:b("_=",{beforeExpr:I,isAssign:ue}),moduloAssign:b("_=",{beforeExpr:I,isAssign:ue}),incDec:b("++/--",{prefix:G,postfix:gs,startsExpr:P}),bang:b("!",{beforeExpr:I,prefix:G,startsExpr:P}),tilde:b("~",{beforeExpr:I,prefix:G,startsExpr:P}),doubleCaret:b("^^",{startsExpr:P}),doubleAt:b("@@",{startsExpr:P}),pipeline:j("|>",0),nullishCoalescing:j("??",1),logicalOR:j("||",1),logicalAND:j("&&",2),bitwiseOR:j("|",3),bitwiseXOR:j("^",4),bitwiseAND:j("&",5),equality:j("==/!=/===/!==",6),lt:j("</>/<=/>=",7),gt:j("</>/<=/>=",7),relational:j("</>/<=/>=",7),bitShift:j("<</>>/>>>",8),bitShiftL:j("<</>>/>>>",8),bitShiftR:j("<</>>/>>>",8),plusMin:b("+/-",{beforeExpr:I,binop:9,prefix:G,startsExpr:P}),modulo:b("%",{binop:10,startsExpr:P}),star:b("*",{binop:10}),slash:j("/",10),exponent:b("**",{beforeExpr:I,binop:11,rightAssociative:!0}),_in:v("in",{beforeExpr:I,binop:7}),_instanceof:v("instanceof",{beforeExpr:I,binop:7}),_break:v("break"),_case:v("case",{beforeExpr:I}),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",{beforeExpr:I}),_else:v("else",{beforeExpr:I}),_finally:v("finally"),_function:v("function",{startsExpr:P}),_if:v("if"),_return:v("return",{beforeExpr:I}),_switch:v("switch"),_throw:v("throw",{beforeExpr:I,prefix:G,startsExpr:P}),_try:v("try"),_var:v("var"),_const:v("const"),_with:v("with"),_new:v("new",{beforeExpr:I,startsExpr:P}),_this:v("this",{startsExpr:P}),_super:v("super",{startsExpr:P}),_class:v("class",{startsExpr:P}),_extends:v("extends",{beforeExpr:I}),_export:v("export"),_import:v("import",{startsExpr:P}),_null:v("null",{startsExpr:P}),_true:v("true",{startsExpr:P}),_false:v("false",{startsExpr:P}),_typeof:v("typeof",{beforeExpr:I,prefix:G,startsExpr:P}),_void:v("void",{beforeExpr:I,prefix:G,startsExpr:P}),_delete:v("delete",{beforeExpr:I,prefix:G,startsExpr:P}),_do:v("do",{isLoop:Me,beforeExpr:I}),_for:v("for",{isLoop:Me}),_while:v("while",{isLoop:Me}),_as:N("as",{startsExpr:P}),_assert:N("assert",{startsExpr:P}),_async:N("async",{startsExpr:P}),_await:N("await",{startsExpr:P}),_defer:N("defer",{startsExpr:P}),_from:N("from",{startsExpr:P}),_get:N("get",{startsExpr:P}),_let:N("let",{startsExpr:P}),_meta:N("meta",{startsExpr:P}),_of:N("of",{startsExpr:P}),_sent:N("sent",{startsExpr:P}),_set:N("set",{startsExpr:P}),_source:N("source",{startsExpr:P}),_static:N("static",{startsExpr:P}),_using:N("using",{startsExpr:P}),_yield:N("yield",{startsExpr:P}),_asserts:N("asserts",{startsExpr:P}),_checks:N("checks",{startsExpr:P}),_exports:N("exports",{startsExpr:P}),_global:N("global",{startsExpr:P}),_implements:N("implements",{startsExpr:P}),_intrinsic:N("intrinsic",{startsExpr:P}),_infer:N("infer",{startsExpr:P}),_is:N("is",{startsExpr:P}),_mixins:N("mixins",{startsExpr:P}),_proto:N("proto",{startsExpr:P}),_require:N("require",{startsExpr:P}),_satisfies:N("satisfies",{startsExpr:P}),_keyof:N("keyof",{startsExpr:P}),_readonly:N("readonly",{startsExpr:P}),_unique:N("unique",{startsExpr:P}),_abstract:N("abstract",{startsExpr:P}),_declare:N("declare",{startsExpr:P}),_enum:N("enum",{startsExpr:P}),_module:N("module",{startsExpr:P}),_namespace:N("namespace",{startsExpr:P}),_interface:N("interface",{startsExpr:P}),_type:N("type",{startsExpr:P}),_opaque:N("opaque",{startsExpr:P}),name:b("name",{startsExpr:P}),placeholder:b("%%",{startsExpr:P}),string:b("string",{startsExpr:P}),num:b("num",{startsExpr:P}),bigint:b("bigint",{startsExpr:P}),decimal:b("decimal",{startsExpr:P}),regexp:b("regexp",{startsExpr:P}),privateName:b("#name",{startsExpr:P}),eof:b("eof"),jsxName:b("jsxName"),jsxText:b("jsxText",{beforeExpr:I}),jsxTagStart:b("jsxTagStart",{startsExpr:P}),jsxTagEnd:b("jsxTagEnd")};function L(t){return t>=93&&t<=133}function bs(t){return t<=92}function V(t){return t>=58&&t<=133}function pt(t){return t>=58&&t<=137}function Es(t){return Ue[t]}function me(t){return je[t]}function Cs(t){return t>=29&&t<=33}function ct(t){return t>=129&&t<=131}function Ss(t){return t>=90&&t<=92}function He(t){return t>=58&&t<=92}function ws(t){return t>=39&&t<=59}function Is(t){return t===34}function Ns(t){return _e[t]}function vs(t){return t>=121&&t<=123}function ks(t){return t>=124&&t<=130}function Y(t){return Oe[t]}function Ee(t){return Re[t]}function Ds(t){return t===57}function Ce(t){return t>=24&&t<=25}function K(t){return q[t]}q[8].updateContext=(t)=>{t.pop()},q[5].updateContext=q[7].updateContext=q[23].updateContext=(t)=>{t.push(F.brace)},q[22].updateContext=(t)=>{t[t.length-1]===F.template?t.pop():t.push(F.template)},q[143].updateContext=(t)=>{t.push(F.j_expr,F.j_oTag)};var ze="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",ut="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Fs=new RegExp("["+ze+"]"),Ls=new RegExp("["+ze+ut+"]");ze=ut=null;var dt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ms=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function Ve(t,e){let s=65536;for(let i=0,r=e.length;i<r;i+=2){if(s+=e[i],s>t)return!1;if(s+=e[i+1],s>=t)return!0}return!1}function J(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&Fs.test(String.fromCharCode(t)):Ve(t,dt)}function ae(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&Ls.test(String.fromCharCode(t)):Ve(t,dt)||Ve(t,Ms)}var $e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},Bs=new Set($e.keyword),Os=new Set($e.strict),Rs=new Set($e.strictBind);function mt(t,e){return e&&t==="await"||t==="enum"}function ft(t,e){return mt(t,e)||Os.has(t)}function yt(t){return Rs.has(t)}function xt(t,e){return ft(t,e)||yt(t)}function Us(t){return Bs.has(t)}function js(t,e,s){return t===64&&e===64&&J(s)}var _s=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Hs(t){return _s.has(t)}var qe=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},Ke=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&128)return!0;if(e&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new qe(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,e,s){let i=this.currentScope();if(e&8||e&16){this.checkRedeclarationInScope(i,t,e,s);let r=i.names.get(t)||0;e&16?r=r|4:(i.firstLexicalName||(i.firstLexicalName=t),r=r|2),i.names.set(t,r),e&8&&this.maybeExportDefined(i,t)}else if(e&4)for(let r=this.scopeStack.length-1;r>=0&&(i=this.scopeStack[r],this.checkRedeclarationInScope(i,t,e,s),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&1667));--r);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,i){this.isRedeclaredInScope(t,e,s)&&this.parser.raise(c.VarRedeclaration,i,{identifierName:e})}isRedeclaredInScope(t,e,s){if(!(s&1))return!1;if(s&8)return t.names.has(e);let i=t.names.get(e);return s&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&1667)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&1731&&!(e&4))return e}}},zs=class extends qe{constructor(...t){super(...t),this.declareFunctions=new Set}},Vs=class extends Ke{createScope(t){return new zs(t)}declareName(t,e,s){let i=this.currentScope();if(e&2048){this.checkRedeclarationInScope(i,t,e,s),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,e,s)}isRedeclaredInScope(t,e,s){if(super.isRedeclaredInScope(t,e,s))return!0;if(s&2048&&!t.declareFunctions.has(e)){let i=t.names.get(e);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},$s=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),E=$`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:s})=>`Enum \`${t}\` has type \`${s}\`, so the initializer of \`${e}\` needs to be a ${s} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:s})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${s}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function qs(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Pt(t){return t.importKind==="type"||t.importKind==="typeof"}var Ks={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Js(t,e){let s=[],i=[];for(let r=0;r<t.length;r++)(e(t[r],r,t)?s:i).push(t[r]);return[s,i]}var Ws=/\*?\s*@((?:no)?flow)\b/,Xs=(t)=>class extends t{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return Vs}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,s){e!==134&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,s)}addComment(e){if(this.flowPragma===void 0){let s=Ws.exec(e.value);if(s)if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(e)}flowParseTypeInitialiser(e){let s=this.state.inType;this.state.inType=!0,this.expect(e||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let e=this.startNode(),s=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1&&this.raise(E.UnexpectedSpaceBetweenModuloChecks,s),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(s=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[s,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();let s=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,s){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(s&&this.raise(E.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,s);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let s=e.body=this.startNode(),i=s.body=[];for(this.expect(5);!this.match(8);){let n=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(E.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(n)):(this.expectContextual(125,E.UnsupportedStatementInDeclareModule),n=this.flowParseDeclare(n,!0)),i.push(n)}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let r=null,a=!1;return i.forEach((n)=>{qs(n)?(r==="CommonJS"&&this.raise(E.AmbiguousDeclareModuleKind,n),r="ES"):n.type==="DeclareModuleExports"&&(a&&this.raise(E.DuplicateDeclareModuleExports,n),r==="ES"&&this.raise(E.AmbiguousDeclareModuleKind,n),r="CommonJS",a=!0)}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,s){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(E.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:Ks[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type==="ExportNamedDeclaration"?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();let s=this.flowParseTypeAlias(e);return this.castNodeTo(s,"DeclareTypeAlias"),s}flowParseDeclareOpaqueType(e){this.next();let s=this.flowParseOpaqueType(e,!0);return this.castNodeTo(s,"DeclareOpaqueType"),s}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,s){if(e.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(e.id.name,s?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){e==="_"&&this.raise(E.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,s,i){$s.has(e)&&this.raise(i?E.AssignReservedType:E.UnexpectedReservedType,s,{reservedType:e})}flowParseRestrictedIdentifier(e,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,s){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,s||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){let s=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=r,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(E.MissingTypeParamDefault,s),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let e=this.state.inType,s=this.startNode();s.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{let r=this.flowParseTypeParameter(i);s.params.push(r),r.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(s,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==F.brace){let s=this.state.context;this.state.context=[s[0]];try{return e()}finally{this.state.context=s}}else return e()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let e=this.startNode(),s=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=i}),this.state.inType=s,!this.state.inType&&this.curContext()===F.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let e=this.startNode(),s=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,s,i){return e.static=s,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=i,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,s){return e.static=s,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,s){let i=this.startNode();return e.static=s,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:s,allowSpread:i,allowProto:r,allowInexact:a}){let n=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let p,h,d=!1;for(s&&this.match(6)?(this.expect(6),p=9,h=!0):(this.expect(5),p=8,h=!1),o.exact=h;!this.match(p);){let A=!1,T=null,w=null,O=this.startNode();if(r&&this.isContextual(118)){let R=this.lookahead();R.type!==14&&R.type!==17&&(this.next(),T=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let R=this.lookahead();R.type!==14&&R.type!==17&&(this.next(),A=!0)}let k=this.flowParseVariance();if(this.eat(0))T!=null&&this.unexpected(T),this.eat(0)?(k&&this.unexpected(k.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(O,A))):o.indexers.push(this.flowParseObjectTypeIndexer(O,A,k));else if(this.match(10)||this.match(47))T!=null&&this.unexpected(T),k&&this.unexpected(k.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(O,A));else{let R="init";if(this.isContextual(99)||this.isContextual(104)){let Pe=this.lookahead();pt(Pe.type)&&(R=this.state.value,this.next())}let _=this.flowParseObjectTypeProperty(O,A,T,k,R,i,a??!h);_===null?(d=!0,w=this.state.lastTokStartLoc):o.properties.push(_)}this.flowObjectTypeSemicolon(),w&&!this.match(8)&&!this.match(9)&&this.raise(E.UnexpectedExplicitInexactInObject,w)}this.expect(p),i&&(o.inexact=d);let y=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=n,y}flowParseObjectTypeProperty(e,s,i,r,a,n,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(n?o||this.raise(E.InexactInsideExact,this.state.lastTokStartLoc):this.raise(E.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(E.InexactVariance,r),null):(n||this.raise(E.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),r&&this.raise(E.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=s,e.proto=i!=null,e.kind=a;let p=!1;return this.match(47)||this.match(10)?(e.method=!0,i!=null&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(e),!n&&e.key.name==="constructor"&&e.value.this&&this.raise(E.ThisParamBannedInConstructor,e.value.this)):(a!=="init"&&this.unexpected(),e.method=!1,this.eat(17)&&(p=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=p,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){let s=e.kind==="get"?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind==="get"?E.GetterMayNotHaveThisParam:E.SetterMayNotHaveThisParam,e.value.this),i!==s&&this.raise(e.kind==="get"?c.BadGetterArity:c.BadSetterArity,e),e.kind==="set"&&e.value.rest&&this.raise(c.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,s){e??(e=this.state.startLoc);let i=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let r=this.startNodeAt(e);r.qualification=i,r.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(r,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,s){let i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let s=null,i=!1,r=null,a=this.startNode(),n=this.lookahead(),o=this.state.type===78;return n.type===14||n.type===17?(o&&!e&&this.raise(E.ThisParamMustBeFirst,a),s=this.parseIdentifier(o),this.eat(17)&&(i=!0,o&&this.raise(E.ThisParamMayNotBeOptional,a)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),a.name=s,a.optional=i,a.typeAnnotation=r,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){let s=this.startNodeAt(e.loc.start);return s.name=null,s.optional=!1,s.typeAnnotation=e,this.finishNode(s,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let s=null,i=null;for(this.match(78)&&(i=this.flowParseFunctionTypeParam(!0),i.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(s=this.flowParseFunctionTypeParam(!1)),{params:e,rest:s,_this:i}}flowIdentToTypeAnnotation(e,s,i){switch(i.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(e,i)}}flowParsePrimaryType(){let e=this.state.startLoc,s=this.startNode(),i,r,a=!1,n=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=n,r;case 47:{let o=this.startNode();return o.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),o.params=i.params,o.rest=i.rest,o.this=i._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),this.finishNode(o,"FunctionTypeAnnotation")}case 10:{let o=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(L(this.state.type)||this.match(78)){let p=this.lookahead().type;a=p!==17&&p!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=n,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return r?i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):i=this.flowParseFunctionTypeParams(),o.params=i.params,o.rest=i.rest,o.this=i._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return s.value=this.match(85),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(E.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(He(this.state.type)){let o=Y(this.state.type);return this.next(),super.createIdentifier(s,o)}else if(L(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,s,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,s=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),a=this.eat(18);i=i||a,this.expect(0),!a&&this.match(3)?(r.elementType=s,this.next(),s=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=s,r.indexType=this.flowParseType(),this.expect(3),i?(r.optional=a,s=this.finishNode(r,"OptionalIndexedAccessType")):s=this.finishNode(r,"IndexedAccessType"))}return s}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let s=this.startNodeAt(e.loc.start);return s.params=[this.reinterpretTypeAsFunctionTypeParam(e)],s.rest=null,s.this=null,s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let s=this.flowParseAnonFunctionWithoutParens();for(e.types=[s];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?s:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){let e=this.startNode();this.eat(43);let s=this.flowParseIntersectionType();for(e.types=[s];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?s:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){let e=this.state.inType;this.state.inType=!0;let s=this.flowParseUnionType();return this.state.inType=e,s}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let e=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(e,s)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){let s=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(s)),s}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value==="+"?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,s,i=!1){if(s){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,i));return}super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,s,i=!1){if(this.match(14)){let r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=r.typeAnnotation?this.finishNode(r,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,s,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(V(i.type)){let r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(s)&&(this.flowPragma=null),s}parseExpressionStatement(e,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||L(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(L(this.state.type)){if(s.name==="interface")return this.flowParseInterface(e);if(s.name==="type")return this.flowParseTypeAlias(e);if(s.name==="opaque")return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,s,i)}shouldParseExportDeclaration(){let{type:e}=this.state;return e===126||ct(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return e===126||ct(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,s,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let y=this.lookaheadCharCode();if(y===44||y===61||y===58||y===41)return this.setOptionalParametersError(i),e}this.expect(17);let r=this.state.clone(),a=this.state.noArrowAt,n=this.startNodeAt(s),{consequent:o,failed:p}=this.tryParseConditionalConsequent(),[h,d]=this.getArrowLikeExpressions(o);if(p||d.length>0){let y=[...a];if(d.length>0){this.state=r,this.state.noArrowAt=y;for(let A=0;A<d.length;A++)y.push(d[A].start);({consequent:o,failed:p}=this.tryParseConditionalConsequent()),[h,d]=this.getArrowLikeExpressions(o)}p&&h.length>1&&this.raise(E.AmbiguousConditionalArrow,r.startLoc),p&&h.length===1&&(this.state=r,y.push(h[0].start),this.state.noArrowAt=y,{consequent:o,failed:p}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=a,this.expect(14),n.test=e,n.consequent=o,n.alternate=this.forwardNoArrowParamsConversionAt(n,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(n,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:s}}getArrowLikeExpressions(e,s){let i=[e],r=[];for(;i.length!==0;){let a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):r.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate))}return s?(r.forEach((a)=>this.finishArrowValidation(a)),[r,[]]):Js(r,(a)=>a.params.every((n)=>this.isAssignable(n,!0)))}finishArrowValidation(e){var s;this.toAssignableList(e.params,(s=e.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,s){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop()):i=s(),i}parseParenItem(e,s){let i=super.parseParenItem(e,s);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){let r=this.startNodeAt(s);return r.expression=i,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return i}assertModuleNodeAllowed(e){e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";let s=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(s)}else if(this.isContextual(131)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){e.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.isContextual(126)){e.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&e.exportKind==="type"&&this.unexpected(s),i}parseClassId(e,s,i){super.parseClassId(e,s,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,s,i){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,s))return;s.declare=!0}super.parseClassMember(e,s,i),s.declare&&(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"?this.raise(E.DeclareClassElement,r):s.value&&this.raise(E.DeclareClassFieldInitializer,s.value))}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){let e=super.readWord1(),s="@@"+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(c.InvalidIdentifier,this.state.curPosition(),{identifierName:s}),this.finishToken(132,s)}getTokenFromCode(e){let s=this.input.charCodeAt(this.state.pos+1);e===123&&s===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?s===46?this.finishOp(18,2):this.finishOp(17,1):js(e,s,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,s){return e.type==="TypeCastExpression"?this.isAssignable(e.expression,s):super.isAssignable(e,s)}toAssignable(e,s=!1){!s&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,s)}toAssignableList(e,s,i){for(let r=0;r<e.length;r++){let a=e[r];(a==null?void 0:a.type)==="TypeCastExpression"&&(e[r]=this.typeCastToParameter(a))}super.toAssignableList(e,s,i)}toReferencedList(e,s){for(let r=0;r<e.length;r++){var i;let a=e[r];a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(e.length>1||!s)&&this.raise(E.TypeCastInPattern,a.typeAnnotation)}return e}parseArrayLike(e,s,i,r){let a=super.parseArrayLike(e,s,i,r);return s&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(e,s,i){return e==="TypeCastExpression"||super.isValidLVal(e,s,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,s,i,r,a,n){if(s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,s,i,r,a,n),s.params&&a){let o=s.params;o.length>0&&this.isThisParam(o[0])&&this.raise(E.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&a&&s.value.params){let o=s.value.params;o.length>0&&this.isThisParam(o[0])&&this.raise(E.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(e,s,i,r){s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,s,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let s=e.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let s=this.getObjectOrClassMethodParams(e);if(s.length>0){let i=s[0];this.isThisParam(i)&&e.kind==="get"?this.raise(E.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(E.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,s,i,r,a,n,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let p;this.match(47)&&!n&&(p=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let h=super.parseObjPropValue(e,s,i,r,a,n,o);return p&&((h.value||h).typeParameters=p),h}parseFunctionParamType(e){return this.eat(17)&&(e.type!=="Identifier"&&this.raise(E.PatternIsOptional,e),this.isThisParam(e)&&this.raise(E.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(E.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(E.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,s){let i=super.parseMaybeDefault(e,s);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(E.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!=="value"&&this.raise(E.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,s,i){s.local=Pt(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(s,i))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let s=this.lookaheadCharCode();return s===123||s===42}return!e&&this.isContextual(87)}applyImportPhase(e,s,i,r){if(super.applyImportPhase(e,s,i,r),s){if(!i&&this.match(65))return;e.exportKind=i==="type"?i:"value"}else i==="type"&&this.match(55)&&this.unexpected(),e.importKind=i==="type"||i==="typeof"?i:"value"}parseImportSpecifier(e,s,i,r,a){let n=e.imported,o=null;n.type==="Identifier"&&(n.name==="type"?o="type":n.name==="typeof"&&(o="typeof"));let p=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let d=this.parseIdentifier(!0);o!==null&&!V(this.state.type)?(e.imported=d,e.importKind=o,e.local=this.cloneIdentifier(d)):(e.imported=n,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&V(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(s)throw this.raise(c.ImportBindingIsString,e,{importName:n.value});e.imported=n,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(p=!0,e.local=this.cloneIdentifier(e.imported))}let h=Pt(e);return i&&h&&this.raise(E.ImportTypeShorthandOnlyInPureImport,e),(i||h)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),p&&!i&&!h&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,s){let i=e.kind;i!=="get"&&i!=="set"&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,s)}parseVarId(e,s){super.parseVarId(e,s),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,s){if(this.match(14)){let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i}return super.parseAsyncArrowFromCallExpression(e,s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,s){var i;let r=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(r=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(e,s),r),!a.error)return a.node;let{context:p}=this.state,h=p[p.length-1];(h===F.j_oTag||h===F.j_expr)&&p.pop()}if((i=a)!=null&&i.error||this.match(47)){var n,o;r=r||this.state.clone();let p,h=this.tryParse((y)=>{var A;p=this.flowParseTypeParameterDeclaration();let T=this.forwardNoArrowParamsConversionAt(p,()=>{let O=super.parseMaybeAssign(e,s);return this.resetStartLocationFromNode(O,p),O});(A=T.extra)!=null&&A.parenthesized&&y();let w=this.maybeUnwrapTypeCastExpression(T);return w.type!=="ArrowFunctionExpression"&&y(),w.typeParameters=p,this.resetStartLocationFromNode(w,p),T},r),d=null;if(h.node&&this.maybeUnwrapTypeCastExpression(h.node).type==="ArrowFunctionExpression"){if(!h.error&&!h.aborted)return h.node.async&&this.raise(E.UnexpectedTypeParameterBeforeAsyncArrowFunction,p),h.node;d=h.node}if((n=a)!=null&&n.node)return this.state=a.failState,a.node;if(d)return this.state=h.failState,d;throw(o=a)!=null&&o.thrown?a.error:h.thrown?h.error:this.raise(E.UnexpectedTokenAfterTypeParameter,p)}return super.parseMaybeAssign(e,s)}parseArrow(e){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(s.thrown)return null;s.error&&(this.state=s.failState),e.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,s){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=s:super.setArrowFunctionParameters(e,s)}checkParams(e,s,i,r=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(let a=0;a<e.params.length;a++)this.isThisParam(e.params[a])&&a>0&&this.raise(E.ThisParamMustBeFirst,e.params[a]);super.checkParams(e,s,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,s,i){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let r=this.startNodeAt(s);r.callee=e,r.arguments=super.parseCallExpressionArguments(11),e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){let r=this.state.clone(),a=this.tryParse((o)=>this.parseAsyncArrowWithTypeParameters(s)||o(),r);if(!a.error&&!a.aborted)return a.node;let n=this.tryParse(()=>super.parseSubscripts(e,s,i),r);if(n.node&&!n.error)return n.node;if(a.node)return this.state=a.failState,a.node;if(n.node)return this.state=n.failState,n.node;throw a.error||n.error}return super.parseSubscripts(e,s,i)}parseSubscript(e,s,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();let a=this.startNodeAt(s);return a.callee=e,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(s);a.callee=e;let n=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11),r.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,r.optionalChainMember)));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(e,s,i,r)}parseNewCallee(e){super.parseNewCallee(e);let s=null;this.shouldParseTypes()&&this.match(47)&&(s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=s}parseAsyncArrowWithTypeParameters(e){let s=this.startNodeAt(e);if(this.parseFunctionParams(s,!1),!!this.parseArrow(s))return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let s=this.input.charCodeAt(this.state.pos+1);if(e===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,s){let i=super.parseTopLevel(e,s);return this.state.hasFlowComment&&this.raise(E.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(E.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:e}=this.state,s=2;for(;[32,9].includes(this.input.charCodeAt(e+s));)s++;let i=this.input.charCodeAt(s+e),r=this.input.charCodeAt(s+e+1);return i===58&&r===58?s+2:this.input.slice(s+e,s+e+12)==="flow-include"?s+12:i===58&&r!==58?s:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(c.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:s,memberName:i}){this.raise(E.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(e,s){return this.raise(s.explicitType?s.explicitType==="symbol"?E.EnumInvalidMemberInitializerSymbolType:E.EnumInvalidMemberInitializerPrimaryType:E.EnumInvalidMemberInitializerUnknownType,e,s)}flowEnumErrorNumberMemberNotInitialized(e,s){this.raise(E.EnumNumberMemberNotInitialized,e,s)}flowEnumErrorStringMemberInconsistentlyInitialized(e,s){this.raise(E.EnumStringMemberInconsistentlyInitialized,e,s)}flowEnumMemberInit(){let e=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);return s()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 134:{let i=this.parseStringLiteral(this.state.value);return s()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return s()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(e,s,i){let{explicitType:r}=s;r!==null&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,s)}flowEnumMembers({enumName:e,explicitType:s}){let i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let n=this.startNode(),{id:o,init:p}=this.flowEnumMemberRaw(),h=o.name;if(h==="")continue;/^[a-z]/.test(h)&&this.raise(E.EnumInvalidMemberName,o,{memberName:h,suggestion:h[0].toUpperCase()+h.slice(1),enumName:e}),i.has(h)&&this.raise(E.EnumDuplicateMemberName,o,{memberName:h,enumName:e}),i.add(h);let d={enumName:e,explicitType:s,memberName:h};switch(n.id=o,p.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(p.loc,d,"boolean"),n.init=p.value,r.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(p.loc,d,"number"),n.init=p.value,r.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(p.loc,d,"string"),n.init=p.value,r.stringMembers.push(this.finishNode(n,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(p.loc,d);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(p.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(p.loc,d);break;default:r.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:a}}flowEnumStringMembers(e,s,{enumName:i}){if(e.length===0)return s;if(s.length===0)return e;if(s.length>e.length){for(let r of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return s}else{for(let r of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:i});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!L(this.state.type))throw this.raise(E.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:s}=this.state;return this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"&&this.raise(E.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:s}),s}flowEnumBody(e,s){let i=s.name,r=s.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:n,hasUnknownMembers:o}=this.flowEnumMembers({enumName:i,explicitType:a});switch(e.hasUnknownMembers=o,a){case"boolean":return e.explicitType=!0,e.members=n.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=n.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=n.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{let p=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;let h=n.booleanMembers.length,d=n.numberMembers.length,y=n.stringMembers.length,A=n.defaultedMembers.length;if(!h&&!d&&!y&&!A)return p();if(!h&&!d)return e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");if(!d&&!y&&h>=A){for(let T of n.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(T.loc.start,{enumName:i,memberName:T.id.name});return e.members=n.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}else if(!h&&!y&&d>=A){for(let T of n.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(T.loc.start,{enumName:i,memberName:T.id.name});return e.members=n.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}else return this.raise(E.EnumInconsistentMemberValues,r,{enumName:i}),p()}}}flowParseEnumDeclaration(e){let s=this.parseIdentifier();return e.id=s,e.body=this.flowEnumBody(this.startNode(),s),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let s=this.input.charCodeAt(e+1);return s!==60&&s!==61}return!1}reScan_lt_gt(){let{type:e}=this.state;e===47?(this.state.pos-=1,this.readToken_lt()):e===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}},Gs=/\r\n|[\r\n\u2028\u2029]/,Se=new RegExp(Gs.source,"g");function ne(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function At(t,e,s){for(let i=e;i<s;i++)if(ne(t.charCodeAt(i)))return!0;return!1}var Je=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,We=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Ys(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var se=$`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Q(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function oe(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return oe(t.object)+"."+oe(t.property);throw Error("Node had unexpected type: "+t.type)}var Qs=(t)=>class extends t{jsxReadToken(){let e="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(se.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(i);return}e+=this.input.slice(s,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:ne(i)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!0),s=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let s=this.input.charCodeAt(this.state.pos),i;return++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=e?`
5
5
  `:`\r
@@ -1,8 +1,8 @@
1
1
  // @bun
2
- import{Ns as sZ}from"./chunk-1sejtx9a.js";import{bt as J$}from"./chunk-ajykvcas.js";import{Mt as R,Vt as C}from"./chunk-6g3bzap8.js";import{gu as v,ju as YZ}from"./chunk-mrh5q4s6.js";import{dI as X$}from"./chunk-hk8m8vax.js";import{rP as rZ,tP as XZ,vP as GZ}from"./chunk-0xf12tf3.js";function X1({onRequest:Z,onSseError:$,onSseEvent:X,responseTransformer:J,responseValidator:G,sseDefaultRetryDelay:V,sseMaxRetryAttempts:W,sseMaxRetryDelay:z,sseSleepFn:O,url:Q,...L}){let M,D=O??((U)=>new Promise((B)=>setTimeout(B,U)));return{stream:async function*(){let U=V??3000,B=0,I=L.signal??new AbortController().signal;while(!0){if(I.aborted)break;B++;let F=L.headers instanceof Headers?L.headers:new Headers(L.headers);if(M!==void 0)F.set("Last-Event-ID",M);try{let P={redirect:"follow",...L,body:L.serializedBody,headers:F,signal:I},b=new Request(Q,P);if(Z)b=await Z(Q,P);let S=await(L.fetch??globalThis.fetch)(b);if(!S.ok)throw Error(`SSE failed: ${S.status} ${S.statusText}`);if(!S.body)throw Error("No body in SSE response");let T=S.body.pipeThrough(new TextDecoderStream).getReader(),x="",a$=()=>{try{T.cancel()}catch{}};I.addEventListener("abort",a$);try{while(!0){let{done:TZ,value:wZ}=await T.read();if(TZ)break;x+=wZ,x=x.replace(/\r\n?/g,`
2
+ import{Qs as sZ}from"./chunk-1e75j4m1.js";import{et as J$}from"./chunk-5re7995e.js";import{Pt as R,Yt as C}from"./chunk-5dvy83ms.js";import{ju as v,mu as YZ}from"./chunk-ffx0cr44.js";import{gI as X$}from"./chunk-9kc2th5c.js";import{uP as rZ,wP as XZ,yP as GZ}from"./chunk-sh03ka27.js";function X1({onRequest:Z,onSseError:$,onSseEvent:X,responseTransformer:J,responseValidator:G,sseDefaultRetryDelay:V,sseMaxRetryAttempts:W,sseMaxRetryDelay:z,sseSleepFn:O,url:Q,...L}){let M,D=O??((U)=>new Promise((B)=>setTimeout(B,U)));return{stream:async function*(){let U=V??3000,B=0,I=L.signal??new AbortController().signal;while(!0){if(I.aborted)break;B++;let F=L.headers instanceof Headers?L.headers:new Headers(L.headers);if(M!==void 0)F.set("Last-Event-ID",M);try{let P={redirect:"follow",...L,body:L.serializedBody,headers:F,signal:I},b=new Request(Q,P);if(Z)b=await Z(Q,P);let S=await(L.fetch??globalThis.fetch)(b);if(!S.ok)throw Error(`SSE failed: ${S.status} ${S.statusText}`);if(!S.body)throw Error("No body in SSE response");let T=S.body.pipeThrough(new TextDecoderStream).getReader(),x="",a$=()=>{try{T.cancel()}catch{}};I.addEventListener("abort",a$);try{while(!0){let{done:TZ,value:wZ}=await T.read();if(TZ)break;x+=wZ,x=x.replace(/\r\n?/g,`
3
3
  `);let t$=x.split(`
4
4
 
5
5
  `);x=t$.pop()??"";for(let FZ of t$){let HZ=FZ.split(`
6
6
  `),W$=[],e$;for(let w of HZ)if(w.startsWith("data:"))W$.push(w.replace(/^data:\s*/,""));else if(w.startsWith("event:"))e$=w.replace(/^event:\s*/,"");else if(w.startsWith("id:"))M=w.replace(/^id:\s*/,"");else if(w.startsWith("retry:")){let Z1=Number.parseInt(w.replace(/^retry:\s*/,""),10);if(!Number.isNaN(Z1))U=Z1}let f,$1=!1;if(W$.length){let w=W$.join(`
7
7
  `);try{f=JSON.parse(w),$1=!0}catch{f=w}}if($1){if(G)await G(f);if(J)f=await J(f)}if(X?.({data:f,event:e$,id:M,retry:U}),W$.length)yield f}}}finally{I.removeEventListener("abort",a$),T.releaseLock()}break}catch(P){if($?.(P),W!==void 0&&B>=W)break;let b=Math.min(U*2**(B-1),z??30000);await D(b)}}}()}}var EZ=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},AZ=(Z)=>{switch(Z){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},PZ=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},V$=({allowReserved:Z,explode:$,name:X,style:J,value:G})=>{if(!$){let z=(Z?G:G.map((O)=>encodeURIComponent(O))).join(AZ(J));switch(J){case"label":return`.${z}`;case"matrix":return`;${X}=${z}`;case"simple":return z;default:return`${X}=${z}`}}let V=EZ(J),W=G.map((z)=>{if(J==="label"||J==="simple")return Z?z:encodeURIComponent(z);return u({allowReserved:Z,name:X,value:z})}).join(V);return J==="label"||J==="matrix"?V+W:W},u=({allowReserved:Z,name:$,value:X})=>{if(X===void 0||X===null)return"";if(typeof X==="object")throw Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${$}=${Z?X:encodeURIComponent(X)}`},z$=({allowReserved:Z,explode:$,name:X,style:J,value:G,valueOnly:V})=>{if(G instanceof Date)return V?G.toISOString():`${X}=${G.toISOString()}`;if(J!=="deepObject"&&!$){let O=[];Object.entries(G).forEach(([L,M])=>{O=[...O,L,Z?M:encodeURIComponent(M)]});let Q=O.join(",");switch(J){case"form":return`${X}=${Q}`;case"label":return`.${Q}`;case"matrix":return`;${X}=${Q}`;default:return Q}}let W=PZ(J),z=Object.entries(G).map(([O,Q])=>u({allowReserved:Z,name:J==="deepObject"?`${X}[${O}]`:O,value:Q})).join(W);return J==="label"||J==="matrix"?W+z:z};var kZ=/\{[^{}]+\}/g,gZ=({path:Z,url:$})=>{let X=$,J=$.match(kZ);if(J)for(let G of J){let V=!1,W=G.substring(1,G.length-1),z="simple";if(W.endsWith("*"))V=!0,W=W.substring(0,W.length-1);if(W.startsWith("."))W=W.substring(1),z="label";else if(W.startsWith(";"))W=W.substring(1),z="matrix";let O=Z[W];if(O===void 0||O===null)continue;if(Array.isArray(O)){X=X.replace(G,V$({explode:V,name:W,style:z,value:O}));continue}if(typeof O==="object"){X=X.replace(G,z$({explode:V,name:W,style:z,value:O,valueOnly:!0}));continue}if(z==="matrix"){X=X.replace(G,`;${u({name:W,value:O})}`);continue}let Q=encodeURIComponent(z==="label"?`.${O}`:O);X=X.replace(G,Q)}return X},J1=({baseUrl:Z,path:$,query:X,querySerializer:J,url:G})=>{let V=G.startsWith("/")?G:`/${G}`,W=(Z??"")+V;if($)W=gZ({path:$,url:W});let z=X?J(X):"";if(z.startsWith("?"))z=z.substring(1);if(z)W+=`?${z}`;return W};function _$(Z){let $=Z.body!==void 0;if($&&Z.bodySerializer){if("serializedBody"in Z)return Z.serializedBody!==void 0&&Z.serializedBody!==""?Z.serializedBody:null;return Z.body!==""?Z.body:null}if($)return Z.body;return}var G1=async(Z,$)=>{let X=typeof $==="function"?await $(Z):$;if(!X)return;if(Z.scheme==="bearer")return`Bearer ${X}`;if(Z.scheme==="basic")return`Basic ${btoa(X)}`;return X};var q$={bodySerializer:(Z)=>JSON.stringify(Z,($,X)=>typeof X==="bigint"?X.toString():X)};var Y1=({parameters:Z={},...$}={})=>{return(J)=>{let G=[];if(J&&typeof J==="object")for(let V in J){let W=J[V];if(W===void 0||W===null)continue;let z=Z[V]||$;if(Array.isArray(W)){let O=V$({allowReserved:z.allowReserved,explode:!0,name:V,style:"form",value:W,...z.array});if(O)G.push(O)}else if(typeof W==="object"){let O=z$({allowReserved:z.allowReserved,explode:!0,name:V,style:"deepObject",value:W,...z.object});if(O)G.push(O)}else{let O=u({allowReserved:z.allowReserved,name:V,value:W});if(O)G.push(O)}}return G.join("&")}},W1=(Z)=>{if(!Z)return"stream";let $=Z.split(";")[0]?.trim();if(!$)return;if($.startsWith("application/json")||$.endsWith("+json"))return"json";if($==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((X)=>$.startsWith(X)))return"blob";if($.startsWith("text/"))return"text";return},CZ=(Z,$)=>{if(!$)return!1;if(Z.headers.has($)||Z.query?.[$]||Z.headers.get("Cookie")?.includes(`${$}=`))return!0;return!1};async function V1(Z){for(let $ of Z.security??[]){if(CZ(Z,$.name))continue;let X=await G1($,Z.auth);if(!X)continue;let J=$.name??"Authorization";switch($.in){case"query":if(!Z.query)Z.query={};Z.query[J]=X;break;case"cookie":Z.headers.append("Cookie",`${J}=${X}`);break;case"header":default:Z.headers.set(J,X);break}}}var T$=(Z)=>J1({baseUrl:Z.baseUrl,path:Z.path,query:Z.query,querySerializer:typeof Z.querySerializer==="function"?Z.querySerializer:Y1(Z.querySerializer),url:Z.url}),w$=(Z,$)=>{let X={...Z,...$};if(X.baseUrl?.endsWith("/"))X.baseUrl=X.baseUrl.substring(0,X.baseUrl.length-1);return X.headers=D$(Z.headers,$.headers),X},hZ=(Z)=>{let $=[];return Z.forEach((X,J)=>{$.push([J,X])}),$},D$=(...Z)=>{let $=new Headers;for(let X of Z){if(!X)continue;let J=X instanceof Headers?hZ(X):Object.entries(X);for(let[G,V]of J)if(V===null)$.delete(G);else if(Array.isArray(V))for(let W of V)$.append(G,W);else if(V!==void 0)$.set(G,typeof V==="object"?JSON.stringify(V):V)}return $};class O${fns=[];clear(){this.fns=[]}eject(Z){let $=this.getInterceptorIndex(Z);if(this.fns[$])this.fns[$]=null}exists(Z){let $=this.getInterceptorIndex(Z);return Boolean(this.fns[$])}getInterceptorIndex(Z){if(typeof Z==="number")return this.fns[Z]?Z:-1;return this.fns.indexOf(Z)}update(Z,$){let X=this.getInterceptorIndex(Z);if(this.fns[X])return this.fns[X]=$,Z;return!1}use(Z){return this.fns.push(Z),this.fns.length-1}}var z1=()=>({error:new O$,request:new O$,response:new O$}),bZ=Y1({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),fZ={"Content-Type":"application/json"},o=(Z={})=>({...q$,headers:fZ,parseAs:"auto",querySerializer:bZ,...Z});var a=(Z={})=>{let $=w$(o(),Z),X=()=>({...$}),J=(L)=>{return $=w$($,L),X()},G=z1(),V=async(L)=>{let M={...$,...L,fetch:L.fetch??$.fetch??globalThis.fetch,headers:D$($.headers,L.headers),serializedBody:void 0};if(M.security)await V1(M);if(M.requestValidator)await M.requestValidator(M);if(M.body!==void 0&&M.bodySerializer)M.serializedBody=M.bodySerializer(M.body);if(M.body===void 0||M.serializedBody==="")M.headers.delete("Content-Type");let D=M,K=T$(D);return{opts:D,url:K}},W=async(L)=>{let M=L.throwOnError??$.throwOnError,D=L.responseStyle??$.responseStyle,K,j;try{let{opts:U,url:B}=await V(L),I={redirect:"follow",...U,body:_$(U)};K=new Request(B,I);for(let S of G.request.fns)if(S)K=await S(K,U);let F=U.fetch;j=await F(K);for(let S of G.response.fns)if(S)j=await S(j,K,U);let P={request:K,response:j};if(j.ok){let S=(U.parseAs==="auto"?W1(j.headers.get("Content-Type")):U.parseAs)??"json";if(j.status===204||j.headers.get("Content-Length")==="0"){let x;switch(S){case"arrayBuffer":case"blob":case"text":x=await j[S]();break;case"formData":x=new FormData;break;case"stream":x=j.body;break;case"json":default:x={};break}return U.responseStyle==="data"?x:{data:x,...P}}let T;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":T=await j[S]();break;case"json":{let x=await j.text();T=x?JSON.parse(x):{};break}case"stream":return U.responseStyle==="data"?j.body:{data:j.body,...P}}if(S==="json"){if(U.responseValidator)await U.responseValidator(T);if(U.responseTransformer)T=await U.responseTransformer(T)}return U.responseStyle==="data"?T:{data:T,...P}}let b=await j.text(),R$;try{R$=JSON.parse(b)}catch{}throw R$??b}catch(U){let B=U;for(let I of G.error.fns)if(I)B=await I(B,j,K,L);if(B=B||{},M)throw B;return D==="data"?void 0:{error:B,request:K,response:j}}},z=(L)=>(M)=>W({...M,method:L}),O=(L)=>async(M)=>{let{opts:D,url:K}=await V(M);return X1({...D,body:D.body,method:L,onRequest:async(j,U)=>{let B=new Request(j,U);for(let I of G.request.fns)if(I)B=await I(B,D);return B},serializedBody:_$(D),url:K})};return{buildUrl:(L)=>T$({...$,...L}),connect:z("CONNECT"),delete:z("DELETE"),get:z("GET"),getConfig:X,head:z("HEAD"),interceptors:G,options:z("OPTIONS"),patch:z("PATCH"),post:z("POST"),put:z("PUT"),request:W,setConfig:J,sse:{connect:O("CONNECT"),delete:O("DELETE"),get:O("GET"),head:O("HEAD"),options:O("OPTIONS"),patch:O("PATCH"),post:O("POST"),put:O("PUT"),trace:O("TRACE")},trace:z("TRACE")}};var vZ={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},yZ=Object.entries(vZ),O1=(Z,$)=>{if(!$)$=new Map;for(let X of Z)if("in"in X){if(X.key)$.set(X.key,{in:X.in,map:X.map})}else if("key"in X)$.set(X.key,{map:X.map});else if(X.args)O1(X.args,$);return $},cZ=(Z)=>{for(let[$,X]of Object.entries(Z))if(X&&typeof X==="object"&&!Array.isArray(X)&&!Object.keys(X).length)delete Z[$]},Y=(Z,$)=>{let X={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},J=O1($),G;for(let[V,W]of Z.entries()){if($[V])G=$[V];if(!G)continue;if("in"in G)if(G.key){let z=J.get(G.key),O=z.map||G.key;if(z.in)X[z.in][O]=W}else X.body=W;else for(let[z,O]of Object.entries(W??{})){let Q=J.get(z);if(Q)if(Q.in){let L=Q.map||z;X[Q.in][L]=O}else X[Q.map]=O;else{let L=yZ.find(([M])=>z.startsWith(M));if(L){let[M,D]=L;X[D][z.slice(M.length)]=O}else if("allowExtra"in G&&G.allowExtra){for(let[M,D]of Object.entries(G.allowExtra))if(D){X[M][z]=O;break}}}}}return cZ(X),X};var D1=a(o({baseUrl:"http://localhost:4096"}));class N{client;constructor(Z){this.client=Z?.client??D1}}class L1{defaultKey="default";instances=new Map;get(Z){let $=this.instances.get(Z??this.defaultKey);if(!$)throw Error('No SDK client found. Create one with "new QitQodeClient()" to fix this error.');return $}set(Z,$){this.instances.set($??this.defaultKey,Z)}}class Q1 extends N{get(Z){return(Z?.client??this.client).get({url:"/global/config",...Z})}update(Z,$){let X=Y([Z],[{args:[{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/global/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class M1 extends N{scan(Z){return(Z?.client??this.client).get({url:"/global/import/scan",...Z})}run(Z,$){let X=Y([Z],[{args:[{in:"body",key:"sources"},{in:"body",key:"force"}]}]);return($?.client??this.client).post({url:"/global/import/run",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class K1 extends N{health(Z){return(Z?.client??this.client).get({url:"/global/health",...Z})}event(Z){return(Z?.client??this.client).sse.get({url:"/global/event",...Z})}dispose(Z){return(Z?.client??this.client).post({url:"/global/dispose",...Z})}upgrade(Z,$){let X=Y([Z],[{args:[{in:"body",key:"target"}]}]);return($?.client??this.client).post({url:"/global/upgrade",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_config;get config(){return this._config??=new Q1({client:this.client})}_import;get import(){return this._import??=new M1({client:this.client})}}class N1 extends N{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"}]}]);return($?.client??this.client).delete({url:"/auth/{providerID}",...$,...X})}set(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return($?.client??this.client).put({url:"/auth/{providerID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class j1 extends N{log(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/log",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}agents(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/agent",...$,...X})}skills(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/skill",...$,...X})}}class U1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/adaptor",...$,...X})}}class B1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/experimental/workspace",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/status",...$,...X})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/experimental/workspace/{id}",...$,...X})}sessionRestore(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/experimental/workspace/{id}/session-restore",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_adaptor;get adaptor(){return this._adaptor??=new U1({client:this.client})}}class I1 extends N{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console",...$,...X})}listOrgs(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console/orgs",...$,...X})}switchOrg(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return($?.client??this.client).post({url:"/experimental/console/switch",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class S1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return($?.client??this.client).get({url:"/experimental/session",...$,...X})}}class x1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/resource",...$,...X})}}class R1 extends N{_workspace;get workspace(){return this._workspace??=new B1({client:this.client})}_console;get console(){return this._console??=new I1({client:this.client})}_session;get session(){return this._session??=new S1({client:this.client})}_resource;get resource(){return this._resource??=new x1({client:this.client})}}class _1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project",...$,...X})}current(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project/current",...$,...X})}initGit(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/project/git/init",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return($?.client??this.client).patch({url:"/project/{projectID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class q1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"}]}]);return($?.client??this.client).post({url:"/pty",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/pty/{ptyID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return($?.client??this.client).put({url:"/pty/{ptyID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connectToken(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...$,...X})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}/connect",...$,...X})}}class T1 extends N{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}providers(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config/providers",...$,...X})}}class w1 extends N{ids(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/tool/ids",...$,...X})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return($?.client??this.client).get({url:"/experimental/tool",...$,...X})}}class F1 extends N{remove(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return($?.client??this.client).delete({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/worktree",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reset(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree/reset",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class H1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/session",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"contextFrom"},{in:"body",key:"contextWatermark"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"workspaceID"}]}]);return($?.client??this.client).post({url:"/session",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/status",...$,...X})}delete(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}children(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/children",...$,...X})}init(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/init",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}fork(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/fork",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}abort(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/abort",...$,...X})}actors(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/actors",...$,...X})}todo(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/todo",...$,...X})}task(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/task",...$,...X})}unshare(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/share",...$,...X})}share(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/share",...$,...X})}diff(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/diff",...$,...X})}summarize(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/summarize",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}revert(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/revert",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}unrevert(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/unrevert",...$,...X})}messages(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"},{in:"query",key:"agent_id"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message",...$,...X})}prompt(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/message",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}deleteMessage(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...$,...X})}message(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...$,...X})}promptAsync(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}command(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/command",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}predict(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/predict",...$,...X})}shell(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/shell",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class E1 extends N{delete(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class A1 extends N{respond(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return($?.client??this.client).post({url:"/permission/{requestID}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/permission",...$,...X})}}class P1 extends N{balance(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/qredits/balance",...$,...X})}}class k1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return($?.client??this.client).get({url:"/workflows",...$,...X})}resume(Z,$){let X=Y([Z],[{args:[{in:"path",key:"runID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/workflows/{runID}/resume",...$,...X})}}class g1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question",...$,...X})}neverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question/never-ask",...$,...X})}setNeverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return($?.client??this.client).post({url:"/question/never-ask",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reject(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reject",...$,...X})}}class C1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/bash-interactive",...$,...X})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"output"},{in:"body",key:"exitCode"}]}]);return($?.client??this.client).post({url:"/bash-interactive/{id}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class h1 extends N{_interactive;get interactive(){return this._interactive??=new C1({client:this.client})}}class b1 extends N{authorize(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}callback(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class f1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider",...$,...X})}auth(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider/auth",...$,...X})}_oauth;get oauth(){return this._oauth??=new b1({client:this.client})}}class v1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/sync/history",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class y1 extends N{start(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/sync/start",...$,...X})}replay(Z,$){let X=Y([Z],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return($?.client??this.client).post({url:"/sync/replay",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_history;get history(){return this._history??=new v1({client:this.client})}}class c1 extends N{text(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return($?.client??this.client).get({url:"/find",...$,...X})}files(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/find/file",...$,...X})}symbols(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return($?.client??this.client).get({url:"/find/symbol",...$,...X})}}class u1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file",...$,...X})}read(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file/content",...$,...X})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/file/status",...$,...X})}}class d1 extends N{subscribe(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).sse.get({url:"/event",...$,...X})}}class m1 extends N{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/mcp/{name}/auth",...$,...X})}start(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth",...$,...X})}callback(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/callback",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}authenticate(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...$,...X})}}class l1 extends N{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/mcp",...$,...X})}add(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return($?.client??this.client).post({url:"/mcp",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/connect",...$,...X})}disconnect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/disconnect",...$,...X})}_auth;get auth(){return this._auth??=new m1({client:this.client})}}class p1 extends N{next(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/tui/control/next",...$,...X})}response(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/control/response",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class i1 extends N{appendPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return($?.client??this.client).post({url:"/tui/append-prompt",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}openHelp(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-help",...$,...X})}openSessions(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-sessions",...$,...X})}openThemes(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-themes",...$,...X})}openModels(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-models",...$,...X})}submitPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/submit-prompt",...$,...X})}clearPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/clear-prompt",...$,...X})}executeCommand(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/tui/execute-command",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}showToast(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return($?.client??this.client).post({url:"/tui/show-toast",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}publish(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/publish",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}selectSession(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/tui/select-session",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_control;get control(){return this._control??=new p1({client:this.client})}}class n1 extends N{dispose(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/instance/dispose",...$,...X})}}class r1 extends N{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/path",...$,...X})}}class s1 extends N{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/vcs",...$,...X})}diff(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"}]}]);return($?.client??this.client).get({url:"/vcs/diff",...$,...X})}}class o1 extends N{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/command",...$,...X})}}class a1 extends N{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/lsp",...$,...X})}}class t1 extends N{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/formatter",...$,...X})}}class L$ extends N{static __registry=new L1;constructor(Z){super(Z);L$.__registry.set(this,Z?.key)}_global;get global(){return this._global??=new K1({client:this.client})}_auth;get auth(){return this._auth??=new N1({client:this.client})}_app;get app(){return this._app??=new j1({client:this.client})}_experimental;get experimental(){return this._experimental??=new R1({client:this.client})}_project;get project(){return this._project??=new _1({client:this.client})}_pty;get pty(){return this._pty??=new q1({client:this.client})}_config;get config(){return this._config??=new T1({client:this.client})}_tool;get tool(){return this._tool??=new w1({client:this.client})}_worktree;get worktree(){return this._worktree??=new F1({client:this.client})}_session;get session(){return this._session??=new H1({client:this.client})}_part;get part(){return this._part??=new E1({client:this.client})}_permission;get permission(){return this._permission??=new A1({client:this.client})}_qredits;get qredits(){return this._qredits??=new P1({client:this.client})}_workflow;get workflow(){return this._workflow??=new k1({client:this.client})}_question;get question(){return this._question??=new g1({client:this.client})}_bash;get bash(){return this._bash??=new h1({client:this.client})}_provider;get provider(){return this._provider??=new f1({client:this.client})}_sync;get sync(){return this._sync??=new y1({client:this.client})}_find;get find(){return this._find??=new c1({client:this.client})}_file;get file(){return this._file??=new u1({client:this.client})}_event;get event(){return this._event??=new d1({client:this.client})}_mcp;get mcp(){return this._mcp??=new l1({client:this.client})}_tui;get tui(){return this._tui??=new i1({client:this.client})}_instance;get instance(){return this._instance??=new n1({client:this.client})}_path;get path(){return this._path??=new r1({client:this.client})}_vcs;get vcs(){return this._vcs??=new s1({client:this.client})}_command;get command(){return this._command??=new o1({client:this.client})}_lsp;get lsp(){return this._lsp??=new a1({client:this.client})}_formatter;get formatter(){return this._formatter??=new t1({client:this.client})}}function e1(Z){if(!Z?.fetch)Z={...Z,fetch:(X)=>{return X.timeout=!1,fetch(X)}};if(Z?.directory)Z.headers={...Z.headers,"x-qitqode-directory":encodeURIComponent(Z.directory)};return Z}function uZ(Z,$,X){if(!Z)return;if(!$)return Z;if(Z===$)return $;if(X&&Z===X($))return $;return Z}function dZ(Z,$){if(Z.method!=="GET"&&Z.method!=="HEAD")return Z;let X=new URL(Z.url),J=!1;for(let[V,W]of[["x-qitqode-directory","directory"],["x-qitqode-workspace","workspace"]]){let z=uZ(Z.headers.get(V),W==="directory"?$.directory:$.workspace,W==="directory"?encodeURIComponent:void 0);if(!z)continue;if(!X.searchParams.has(W))X.searchParams.set(W,z);J=!0}if(!J)return Z;let G=new Request(X,Z);return G.headers.delete("x-qitqode-directory"),G.headers.delete("x-qitqode-workspace"),G}function mZ(Z){if(Z=e1(Z),Z?.experimental_workspaceID)Z.headers={...Z.headers,"x-qitqode-workspace":Z.experimental_workspaceID};let $=a(Z);return $.interceptors.request.use((X)=>dZ(X,{directory:Z?.directory,workspace:Z?.experimental_workspaceID})),$.interceptors.response.use((X)=>{if(X.headers.get("content-type")==="text/html")throw Error("Request is not supported by this version of QitQode Server (Server responded with text/html)");return X}),new L$({client:$})}class k extends Error{name="BackendCallError";status;fn;metadata;constructor(Z,$,X,J){let G=J?[J.requestId&&`requestId=${J.requestId}`,J.contentType&&`contentType=${J.contentType}`,J.contentEncoding&&`contentEncoding=${J.contentEncoding}`,J.contentLength!==void 0&&`contentLength=${J.contentLength}`,`bodyUsed=${J.bodyUsed}`,J.bodyBytes!==void 0&&`bodyBytes=${J.bodyBytes}`].filter(Boolean).join(" "):"";super(`backend function call failed (${Z}): ${$}${X?` ${X}`:""}${G?` [${G}]`:""}`);this.status=Z,this.fn=$,this.metadata=J}}class Q$ extends Error{name="BackendAuthError";status;constructor(Z,$){super(`backend authentication rejected (${Z})${$?`: ${$}`:""}`);this.status=Z}}function lZ(Z){if(!Z)return!1;try{let $=JSON.parse(Z);if($&&$.code==="ERR_GATEWAY_REQUIRED")return!0}catch{}return Z.includes("ERR_GATEWAY_REQUIRED")}function pZ(Z){let $=Z.headers.get("x-request-id"),X=Z.headers.get("content-type"),J=Z.headers.get("content-encoding"),G=Z.headers.get("content-length"),V=X&&X.length<=80?X.toLowerCase():void 0,W=J&&J.length<=16?J.toLowerCase():void 0;return{...$&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/.test($)?{requestId:$}:{},...V&&/^(application\/json|application\/problem\+json|text\/plain|text\/html|application\/octet-stream)(?:; ?charset=utf-8)?$/.test(V)?{contentType:V.split(";")[0]}:{},...W&&/^(identity|gzip|deflate|br|zstd)$/.test(W)?{contentEncoding:W}:{},...G&&G.length<=16&&/^(0|[1-9][0-9]*)$/.test(G)&&Number.isSafeInteger(Number(G))?{contentLength:Number(G)}:{},bodyUsed:Z.bodyUsed}}function $Z(Z){let $=Z.fetch??fetch,X=Z.baseUrl.replace(/\/+$/,"");async function J(G,V={}){let W=new Headers(Z.headers);if(W.set("content-type","application/json"),!W.has("accept-encoding"))W.set("accept-encoding","identity");let z=JSON.stringify(V),O=0;for(;;){let Q=await $(`${X}/${G}`,{method:"POST",headers:W,body:z});if(!Q.ok){let j=await Q.text().catch(()=>"");if((Q.status===401||Q.status===403)&&!lZ(j))throw new Q$(Q.status,j||void 0);throw new k(Q.status,G,j||void 0)}let L=pZ(Q),M;try{let j=await Q.arrayBuffer();L.bodyBytes=j.byteLength,M=new TextDecoder().decode(j)}catch{throw new k(Q.status,G,"could not read response body",L)}if(!M.trim()){if(O++<2)continue;throw new k(Q.status,G,"received an empty response body",L)}let D;try{D=JSON.parse(M)}catch{throw new k(Q.status,G,"received an invalid JSON response body",L)}if(!D||typeof D!=="object"||typeof D.success!=="boolean")throw new k(Q.status,G,"received an invalid response envelope",L);let K=D;if(!K.success)throw Error(`backend function call returned failure: ${G} \u2014 ${K.error??"unknown error"}`);return K.data}}return{promptNames:()=>J("promptNames"),prompt:(G)=>J("prompt",{name:G}),tiers:()=>J("tiers"),workflowSummaries:()=>J("workflowSummaries"),workflowSpec:(G)=>J("workflowSpec",{name:G}),workflowSpecs:()=>J("workflowSpecs"),bashArity:()=>J("bashArity"),toolManifest:()=>J("toolManifest"),toolDescription:(G)=>J("toolDescription",{id:G})}}var oZ=rZ(sZ(),1);import V0 from"path";import z0 from"crypto";var g={};XZ(g,{setKeySequenceForTest:()=>G0,setKeyForTest:()=>J0,resetForTest:()=>X0,isEnvelope:()=>eZ,encryptionKey:()=>Z0,encrypt:()=>Y0,decrypt:()=>W0,AuthKeyring:()=>g});import M$ from"crypto";import{execFile as tZ}from"child_process";var d="qitqode",t="auth-encryption-key",JZ="__qitqode_encrypted__";function eZ(Z){return typeof Z==="object"&&Z!==null&&Z[JZ]===1&&Z.alg==="aes-256-gcm"}function m(Z,$,X){return new Promise((J)=>{let G=tZ(Z,$,{timeout:5000},(V,W)=>{let z=V?V.code??1:0;J({code:typeof z==="number"?z:1,stdout:W??""})});if(X!==void 0)G.stdin?.write(X),G.stdin?.end()})}async function ZZ(Z,$){return(await m(Z,$)).code===0}async function $0(){if(process.env.QITQODE_DISABLE_KEYRING)return;if(process.platform==="darwin"){if(!await ZZ("security",["help"]))return;return{async get(){let Z=await m("security",["find-generic-password","-s",d,"-a",t,"-w"]);return Z.code===0?Z.stdout.trim():void 0},async set(Z){return(await m("security",["add-generic-password","-U","-s",d,"-a",t,"-w",Z])).code===0}}}if(process.platform==="linux"){if(!await ZZ("secret-tool",["search","service",d])){let Z=await m("secret-tool",["lookup","service",d,"account",t]);if(Z.code!==0&&Z.code!==1)return}return{async get(){let Z=await m("secret-tool",["lookup","service",d,"account",t]);return Z.code===0&&Z.stdout.trim()?Z.stdout.trim():void 0},async set(Z){return(await m("secret-tool",["store","--label","QitQode auth encryption key","service",d,"account",t],Z)).code===0}}}return}var K$,l;function Z0(){if(l!==void 0&&l.length>0)return Promise.resolve(l.shift());return K$??=(async()=>{let Z=await $0();if(!Z)return;let $=await Z.get();if($){let X=Buffer.from($,"base64");if(X.length===32)return X;return}return v.withLock("auth-keyring-init",async()=>{let X=await Z.get();if(X){let W=Buffer.from(X,"base64");return W.length===32?W:void 0}let J=M$.randomBytes(32);if(!await Z.set(J.toString("base64")))return;let G=await Z.get();if(!G)return;let V=Buffer.from(G,"base64");return V.length===32?V:void 0})})(),K$}function X0(){K$=void 0,l=void 0}function J0(Z){K$=Promise.resolve(Z),l=void 0}function G0(Z){l=[...Z]}function Y0(Z,$){let X=M$.randomBytes(12),J=M$.createCipheriv("aes-256-gcm",$,X),G=Buffer.concat([J.update(Z,"utf8"),J.final()]);return{[JZ]:1,alg:"aes-256-gcm",iv:X.toString("base64"),tag:J.getAuthTag().toString("base64"),data:G.toString("base64")}}function W0(Z,$){let X=M$.createDecipheriv("aes-256-gcm",$,Buffer.from(Z.iv,"base64"));return X.setAuthTag(Buffer.from(Z.tag,"base64")),Buffer.concat([X.update(Buffer.from(Z.data,"base64")),X.final()]).toString("utf8")}var O0="The server rejected QITQODE_KEY and there is no signed-in Forgewise session on this machine to repair it with. Replace QITQODE_KEY, or run `qitqode auth login`.",F$=`[qitqode] ${O0}`,p="forgewise";function N$(Z){if(Z?.type!=="api"||typeof Z.key!=="string")return;let X=Z.metadata?.method==="api-key"?"api-key":"sso";return{key:Z.key,method:X}}function A(Z){if(!Z)return"none";return z0.createHash("sha256").update(`${Z.method}:${Z.key}`).digest("hex").slice(0,16)}var j$;function WZ(Z){j$=Z}async function U$(){let{readFile:Z}=await import("fs/promises"),$=JSON.parse(await Z(VZ(),"utf8"));if(!g.isEnvelope($))return{data:$,key:void 0};let X=await g.encryptionKey();if(!X)throw Error("auth.json is encrypted but the OS keyring is unavailable");return{data:JSON.parse(g.decrypt($,X)),key:X}}async function H$(Z){let{writeFile:$,chmod:X,rename:J}=await import("fs/promises"),G=Z.key?g.encrypt(JSON.stringify(Z.data),Z.key):Z.data,V=VZ(),W=V+".tmp";await $(W,JSON.stringify(G,null,2),"utf8"),await X(W,384),await J(W,V)}function VZ(){return V0.join(YZ.Path.data,"auth.json")}async function i(){if(j$)return j$;if(process.env.QITQODE_KEY)return{key:process.env.QITQODE_KEY,method:"api-key"};try{let Z=await v.withLock("auth-file",async()=>{let{data:$}=await U$();return N$($?.[p])});if(Z)return Z}catch{}if(process.env.QITQODE_AUTH_CONTENT)try{let Z=JSON.parse(process.env.QITQODE_AUTH_CONTENT);return N$(Z?.forgewise)}catch{}return}async function B$(){if(j$=void 0,process.env.QITQODE_KEY)return;await v.withLock("auth-file",async()=>{let Z=await U$();if(!(p in Z.data))return;delete Z.data[p],await H$(Z)})}function e(Z){return Z.method==="api-key"?{"x-api-key":Z.key}:{authorization:`Bearer ${Z.key}`}}var I$=C.create({service:"auth.forgewise.checkout"}),D0="qitqode",L0=5000;async function E$(Z){let X=`${new URL(R.QITQODE_BACKEND_URL).origin}/auth/keys/checkout`;try{let J=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${Z}`},body:JSON.stringify({app:D0}),signal:AbortSignal.timeout(L0)});if(!J.ok)return I$.warn("API key checkout returned non-200; falling back to Bearer credential",{status:J.status,url:X}),null;let G=await J.json();if(typeof G?.key!=="string"||!G.key)return I$.warn("API key checkout response missing key field; falling back to Bearer credential",{url:X}),null;return I$.info("API key checkout succeeded; credential upgraded to api-key method",{url:X}),G.key}catch(J){return I$.warn("API key checkout failed; falling back to Bearer credential",{url:X,error:J instanceof Error?J.message:String(J)}),null}}var o$={};XZ(o$,{toolDescriptionEffect:()=>T0,resolveWorkflowSummaries:()=>R0,resolveWorkflowSpec:()=>_0,resolveToolManifest:()=>SZ,resolveToolDescription:()=>xZ,resolveTierRatings:()=>k0,resolveSubmitBatch:()=>d0,resolveRetrieveBatch:()=>m0,resolvePrompt:()=>UZ,resolveListTiers:()=>P0,resolveGetHistory:()=>h0,resolveGenerateInlineComments:()=>y0,resolveGenerateDocumentation:()=>v0,resolveForgewiseConfig:()=>s$,resolveFetchQreditsBalance:()=>b0,resolveCompressTrajectorySafe:()=>g0,resolveChatCompletion:()=>u0,resolveChatBoolean:()=>c0,resolveBraveSearch:()=>C0,resolveBashArity:()=>q0,resolveAnalyzeCodeForIssues:()=>f0,resolveAgentPrompt:()=>S0,remoteStats:()=>H,parseSseChatCompletion:()=>RZ,normalizeChatCompletionPayload:()=>_Z,isBackendBillingError:()=>j0,clearRemoteCache:()=>I0,beginIdempotentAttempt:()=>jZ,BackendRemote:()=>o$,BackendRateLimitError:()=>Y$,BackendInsufficientBalanceError:()=>G$,BackendAuthRejectedError:()=>s,BackendAccountNotLinkedError:()=>l$});import{createHash as NZ,randomUUID as KZ}from"crypto";import A$ from"crypto";class q extends Error{cause;constructor(Z,$){super(Z);this.name="ForgewiseError",this.cause=$}}class n extends q{constructor(Z="Device flow is not supported by this issuer."){super(Z);this.name="DeviceFlowUnsupportedError"}}function zZ(Z,$,X){if(Z>=200&&Z<300)return{kind:"success"};let J=$?.error??"";if(J==="authorization_pending")return{kind:"wait",intervalMs:X};if(J==="slow_down")return{kind:"wait",intervalMs:X+5000};if(J==="access_denied")return{kind:"fatal",message:"Sign-in was denied in the browser."};if(J==="expired_token")return{kind:"fatal",message:"The sign-in code expired before it was approved. Try again."};return{kind:"fatal",message:`Device sign-in failed: ${$?.error_description||J||`HTTP ${Z}`}`}}var DZ="openid profile email",P$=(Z)=>Z.toString("base64url");function U9(){let Z=P$(A$.randomBytes(32)),$=P$(A$.createHash("sha256").update(Z).digest()),X=P$(A$.randomBytes(16));return{verifier:Z,challenge:$,state:X}}function B9(Z){let $=new URL(`${Z.issuer}/api/oauth/authorize`);return $.searchParams.set("response_type","code"),$.searchParams.set("client_id",Z.clientId),$.searchParams.set("redirect_uri",Z.redirectUri),$.searchParams.set("scope",DZ),$.searchParams.set("state",Z.state),$.searchParams.set("code_challenge",Z.challenge),$.searchParams.set("code_challenge_method","S256"),$.toString()}async function k$(Z,$){let X=await fetch(`${Z}/api/oauth/userinfo`,{headers:{Authorization:`Bearer ${$.access_token}`}});if(!X.ok)throw new q(`Failed to fetch user profile (${X.status})`);let J=await X.json();if(!J.sub)throw new q("Userinfo response is missing required 'sub' field \u2014 the server returned an invalid user profile.");return{sub:J.sub,name:J.name??"",email:J.email??"",access_token:$.access_token,expires_at:Date.now()+($.expires_in??3600)*1000,...$.refresh_token?{refresh_token:$.refresh_token}:{}}}async function I9(Z){let $=await fetch(`${Z.issuer}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:Z.code,redirect_uri:Z.redirectUri,client_id:Z.clientId,code_verifier:Z.verifier}).toString(),signal:Z.signal??null});if(!$.ok){let J=await $.text().catch(()=>"");throw new q(`Token exchange failed (${$.status}): ${J}`)}let X=await $.json();return k$(Z.issuer,X)}async function S9(Z,$,X=5000){let J=new AbortController,G=setTimeout(()=>J.abort(),X);try{let V=await fetch(`${Z}/api/oauth/userinfo`,{headers:{Authorization:`Bearer ${$}`},signal:J.signal});if(V.status===401||V.status===403)return!1;if(!V.ok)return null;return!0}catch{return null}finally{clearTimeout(G)}}async function g$(Z){let{issuer:$,clientId:X}=await OZ(),J;try{J=await fetch(`${$}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",client_id:X,refresh_token:Z}).toString()})}catch(V){throw new q(`Could not reach the sign-in server to refresh the session: ${V instanceof Error?V.message:String(V)}`,V)}if(!J.ok){let V=await J.json().catch(()=>{return});if(V?.error==="invalid_grant")return"invalid_grant";throw new q(`Token refresh failed (${J.status}): ${V?.error??""}`)}let G=await J.json();return{issuer:$,...G}}async function x9(Z){let $=await g$(Z);if($==="invalid_grant")return"invalid_grant";return k$($.issuer,$)}async function R9(Z){let $;try{$=await fetch(`${Z.issuer}/api/oauth/device_authorization`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:Z.clientId,scope:DZ}).toString(),signal:Z.signal??null})}catch{if(Z.signal?.aborted)throw new q("Login cancelled");throw new n}if($.status===404||$.status===405||$.status===501)throw new n;if(!$.ok){let J=await $.text().catch(()=>"");throw new q(`Device authorization failed (${$.status}): ${J}`)}let X;try{X=await $.json()}catch{throw new n}if(!X.device_code||!X.user_code||!X.verification_uri)throw new n;return{deviceCode:X.device_code,info:{userCode:X.user_code,verificationUri:X.verification_uri,verificationUriComplete:X.verification_uri_complete,expiresAt:Date.now()+(X.expires_in??900)*1000},intervalMs:Math.max(1,X.interval??5)*1000}}async function _9(Z){let $;try{$=await fetch(`${Z.issuer}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:Z.deviceCode,client_id:Z.clientId}).toString(),signal:Z.signal??null})}catch{if(Z.signal?.aborted)throw new q("Login cancelled");return{kind:"wait",intervalMs:Z.currentIntervalMs}}let X;try{X=await $.json()}catch{X=void 0}let J=zZ($.status,X,Z.currentIntervalMs);if(J.kind==="success"){if(!X?.access_token)throw new q("Token endpoint returned success without an access_token.");return{kind:"success",profile:await k$(Z.issuer,{access_token:X.access_token,expires_in:X.expires_in})}}if(J.kind==="fatal")throw new q(J.message);return{kind:"wait",intervalMs:J.intervalMs}}function LZ(Z,$){let X={sub:Z.sub,name:Z.name,email:Z.email,expires_at:String(Z.expires_at),...$.rotateRefreshToken&&Z.refresh_token?{refresh_token:Z.refresh_token}:{}};return{type:"api",key:Z.access_token,metadata:X}}function C$(Z,$){return{type:"api",key:$,metadata:{method:"api-key",sub:Z.sub,name:Z.name,email:Z.email,access_token:Z.access_token,access_token_expires_at:String(Z.expires_at),...Z.refresh_token?{refresh_token:Z.refresh_token}:{}}}}var r=C.create({service:"auth.recovery"}),Q0=30000,M0=5,$$,Z$=0,b$=new Set;async function MZ(Z){if(b$.has(A(Z)))return{kind:"definitive",reason:"the stored sign-in has already been established as no longer valid"};if($$)return $$;if(Z$>=M0)return r.warn("recovery budget exhausted for this process; reporting inconclusive",{attempts:Z$}),{kind:"inconclusive",reason:`automatic sign-in repair was attempted ${Z$} times in this session without success`};return $$=K0(Z).finally(()=>{$$=void 0}),$$}function QZ(){Z$++}async function K0(Z){let $=A(Z),X=process.env.QITQODE_KEY,J=!!X&&Z?.key===X;r.info("attempting automatic credential recovery",{rejected:$,source:J?"env":"file",attempt:Z$});let G;try{G=await v.withLock("auth-file",()=>N0(Z,$,J))}catch(V){let W=V instanceof Error?V.message:String(V);return r.warn("credential recovery could not run",{error:W}),{kind:"inconclusive",reason:`automatic sign-in repair could not run (${W})`}}if(G.kind==="recovered"){if(J)WZ(G.credential);r.info("credential recovered",{from:$,to:A(G.credential),via:G.reason})}else if(G.kind==="definitive")await B$().catch(()=>{}),b$.add($),b$.add(A(void 0)),r.info("credential rejection is definitive; stored credential cleared",{reason:G.reason});return G}async function N0(Z,$,X){let J;try{J=await U$()}catch(D){if(D?.code==="ENOENT")return{kind:"definitive",reason:"no stored sign-in to repair"};let K=D instanceof Error?D.message:String(D);return r.warn("stored sign-in could not be read; treating the rejection as inconclusive",{error:K}),{kind:"inconclusive",reason:`the stored sign-in could not be read (${K})`}}let G=J.data[p],V=N$(G);if(!X&&V&&A(V)!==$)return{kind:"recovered",credential:V,reason:"adopted a credential rotated by another process"};let W=G?.metadata??{},z=(D)=>typeof D==="string"&&D?D:void 0,O=z(W.refresh_token),Q=z(W.access_token)??(V?.method==="sso"?V.key:void 0),L=Number(W.access_token_expires_at??W.expires_at??0),M={sub:z(W.sub)??"",name:z(W.name)??"",email:z(W.email)??""};if(Q&&Q!==Z?.key&&L>Date.now()+Q0){QZ();let D=await E$(Q);if(D){let K={...M,access_token:Q,expires_at:L,...O?{refresh_token:O}:{}};return await h$(J,C$(K,D)),{kind:"recovered",credential:{key:D,method:"api-key"},reason:"minted a key from the SSO session"}}}if(O){let D;try{QZ(),D=await g$(O)}catch(B){return{kind:"inconclusive",reason:`could not reach the sign-in server (${B instanceof Error?B.message:String(B)})`}}if(D==="invalid_grant")return{kind:"definitive",reason:"the stored sign-in was revoked or has expired"};let K={...M,access_token:D.access_token,expires_at:Date.now()+(D.expires_in??3600)*1000,...D.refresh_token?{refresh_token:D.refresh_token}:{}},j=LZ(K,{rotateRefreshToken:!0});await h$(J,j);let U=await E$(K.access_token);if(U)return await h$(J,C$(K,U)),{kind:"recovered",credential:{key:U,method:"api-key"},reason:"refreshed the sign-in and minted a new key"};return{kind:"recovered",credential:{key:K.access_token,method:"sso"},reason:"refreshed the sign-in"}}return{kind:"definitive",reason:"the stored sign-in has no session left to renew"}}async function h$(Z,$){Z.data[p]=$,await H$(Z)}var _=C.create({service:"backend.remote"}),S$=30000,m$=5000,h=new Map,H={failures:0,authRejections:0,missingPrompts:0,missingToolDescriptions:0},f$=new Set,v$=new Set;class s extends Error{name="BackendAuthRejectedError";constructor(Z){super(J$.copy().invalidCredentials(Z))}}class G$ extends Error{name="BackendInsufficientBalanceError";status=402;code;constructor(Z,$){super(J$.copy().insufficientBalance(Z));this.code=$}}class Y$ extends Error{name="BackendRateLimitError";status=429;retryAfterMs;constructor(Z,$){let X=Z!==void 0?` Retry in about ${Math.max(1,Math.round(Z/1000))}s.`:"";super(J$.copy().rateLimit+X+($?` (${$})`:""));this.retryAfterMs=Z}}class l$ extends Error{name="BackendAccountNotLinkedError";status=409;constructor(Z){super(J$.copy().accountNotLinked(Z))}}function j0(Z){return Z instanceof G$||Z instanceof Y$}var U0=600000,y=new Map;function B0(Z,$){try{return NZ("sha256").update(`${Z}\x00${JSON.stringify($)}`).digest("hex").slice(0,16)}catch{return"unscoped"}}function jZ(Z,$,X){let J=Date.now(),G;try{G=NZ("sha256").update(`${Z}\x00${$}\x00${JSON.stringify(X)??""}`).digest("hex")}catch{return{key:`${$}-${KZ()}`,settle:()=>{}}}let V=()=>y.delete(G),W=y.get(G);if(W&&W.expires>J)return{key:W.key,settle:V};if(y.size>256){for(let[O,Q]of y)if(Q.expires<=J)y.delete(O)}let z=`${$}-${G.slice(0,16)}-${KZ()}`;return y.set(G,{key:z,expires:J+U0}),{key:z,settle:V}}function I0(){h.clear(),u$.clear(),y$.clear(),f$.clear(),v$.clear(),y.clear()}async function p$(Z){H.authRejections++;let{credential:$,status:X,label:J,baseUrl:G}=Z;if(!Z.repairSpent){let V=A($),W=await MZ($);if(W.kind==="recovered"&&A(W.credential)!==V)return _.info("backend rejected the credential; repaired it automatically and retrying",{label:J,baseUrl:G,status:X,via:W.reason}),{retry:!0};if(W.kind==="inconclusive")return _.warn("backend rejected the credential but repair was inconclusive; leaving it in place",{label:J,baseUrl:G,status:X,reason:W.reason}),{retry:!1,error:Error(`Backend auth check could not complete: ${W.reason}`)}}if(await B$().catch(()=>{}),_.warn("backend rejected the credential and it could not be repaired; prompting re-auth",{label:J,baseUrl:G,status:X}),process.env.QITQODE_KEY)_.error(F$),console.error(F$);return{retry:!1,error:new s(`HTTP ${X}`)}}async function c(Z,$){let X=R.QITQODE_BACKEND_URL,J=Date.now(),G=`${X}::${Z}`,V=h.get(G);if(V&&V.expires>J)return V.value;let W=!1;for(;;)try{let z=await i(),O=z?e(z):void 0,L=await $($Z({baseUrl:X,headers:O,fetch:(M,D)=>fetch(M,{...D,signal:D?.signal??AbortSignal.timeout(m$)})}));return h.set(G,{value:L,expires:Date.now()+S$}),L}catch(z){if(z instanceof Q$){let O=await p$({credential:await i(),status:z.status,label:Z,baseUrl:X,repairSpent:W});if(W=!0,O.retry)continue;throw O.error}throw H.failures++,_.warn("backend request failed; surfacing error",{cacheKey:Z,baseUrl:X,error:z instanceof Error?z.message:String(z)}),z}}async function UZ(Z){if(Z.indexOf("/")<=0)return;return c(`prompt:${Z}`,($)=>$.prompt(Z).then((X)=>X??void 0))}async function S0(Z){let $=`agent/${Z}`,X=await UZ($);if(X===void 0||X===""){if(!f$.has(Z))f$.add(Z),H.missingPrompts++,_.warn("backend served no content for agent prompt; running with an empty prompt",{prompt:$,baseUrl:R.QITQODE_BACKEND_URL,missingPrompts:H.missingPrompts})}return X}var y$=new Map;function c$(Z){let $=y$.get(Z);if(!$)$={unsupported:!1},y$.set(Z,$);return $}async function x0(){let Z=c$(R.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=c("workflow.catalog",(X)=>X.workflowSpecs().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let G of X??[])if(G&&typeof G.name==="string"&&typeof G.script==="string")J.set(G.name,G);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function BZ(Z,$){let X=R.QITQODE_BACKEND_URL;if(!c$(X).unsupported)try{return Z(await x0())}catch(J){if(!IZ(J))throw J;c$(X).unsupported=!0,_.warn("backend has no workflowSpecs route; falling back to per-name workflow lookups",{baseUrl:X})}return $()}async function R0(){return BZ((Z)=>[...Z.values()].map(({script:$,...X})=>X),()=>c("workflow.list",(Z)=>Z.workflowSummaries()))}async function _0(Z){return BZ(($)=>$.get(Z),()=>c(`workflow.get:${Z}`,($)=>$.workflowSpec(Z).then((X)=>X??void 0)))}async function q0(){return c("permission.arity",(Z)=>Z.bashArity())}var u$=new Map;function d$(Z){let $=u$.get(Z);if(!$)$={unsupported:!1},u$.set(Z,$);return $}function IZ(Z){return Z instanceof k&&(Z.status===404||Z.status===501)}async function SZ(){let Z=d$(R.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=c("tool.manifest",(X)=>X.toolManifest().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let G of X??[])if(G&&typeof G.id==="string"&&typeof G.description==="string")J.set(G.id,G.description);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function xZ(Z){let $=R.QITQODE_BACKEND_URL,X;if(!d$($).unsupported)try{X=(await SZ()).get(Z)}catch(J){if(!IZ(J))throw J;d$($).unsupported=!0,_.warn("backend has no toolManifest route; falling back to one request per tool description",{baseUrl:$})}if(X===void 0||X==="")X=await c(`tool.description:${Z}`,(J)=>J.toolDescription(Z).then((G)=>G??void 0));if(X===void 0||X===""){if(!v$.has(Z))v$.add(Z),H.missingToolDescriptions++,_.warn("backend served no content for tool description; running with an empty description",{tool:Z,baseUrl:R.QITQODE_BACKEND_URL,missingToolDescriptions:H.missingToolDescriptions})}return X}function T0(Z){return X$.promise(()=>xZ(Z)).pipe(X$.catchDefect(($)=>$ instanceof s?X$.succeed(void 0):X$.die($)))}function w0(Z){if(!Z)return{};try{let $=JSON.parse(Z);if($&&typeof $==="object")return{code:typeof $.error==="string"?$.error:void 0,detail:typeof $.message==="string"?$.message:void 0}}catch{}return{detail:Z.slice(0,300)}}function F0(Z){let $=Z.headers?.get?.("retry-after-ms");if($){let J=Number.parseFloat($);if(!Number.isNaN(J))return J}let X=Z.headers?.get?.("retry-after");if(X){let J=Number.parseFloat(X);if(!Number.isNaN(J))return Math.ceil(J*1000);let G=Date.parse(X)-Date.now();if(!Number.isNaN(G)&&G>0)return Math.ceil(G)}return}async function i$(Z,$){let X=await Z.text().catch(()=>""),{code:J,detail:G}=w0(X);if(Z.status===402)return new G$(G,J);if(Z.status===409)return new l$(G);if(Z.status===429)return new Y$(F0(Z),G);let V=G?`: ${G}`:J?`: ${J}`:"";return Error(`${$} failed: ${Z.status}${V}`)}function H0(Z){if(Z===null||typeof Z!=="object")return Z;if(Z.data!==void 0)return Z.data;let $={};for(let[X,J]of Object.entries(Z)){if(X==="success"||X==="data"||X==="error"||X==="message")continue;$[X]=J}return Object.keys($).length>0?$:void 0}function n$(Z,$){let{error:X,message:J}=Z;if(X==="insufficient_balance")return new G$(J,X);if(X==="rate_limited"||X==="too_many_requests")return new Y$(void 0,J);return Error(`${$} returned failure: ${X??"unknown error"}${J?` \u2014 ${J}`:""}`)}function RZ(Z){let $="",X,J=!1;for(let G of Z.split(/\r?\n/)){if(!G.startsWith("data:"))continue;let V=G.slice(5).trim();if(!V)continue;if(V==="[DONE]"){J=!0;break}if(V.startsWith("[ERROR]"))throw Error(`chat completion stream error: ${V.slice(7).trim()||"unknown"}`);let W;try{W=JSON.parse(V)}catch{continue}if(W===null||typeof W!=="object")continue;let z=W,O=z.choices?.[0],Q=O?.delta?.content??O?.message?.content;if(typeof Q==="string")$+=Q;if(z.usage&&typeof z.usage==="object")X={promptTokens:z.usage.prompt_tokens,completionTokens:z.usage.completion_tokens,totalTokens:z.usage.total_tokens}}if(!J)throw Error("chat completion stream truncated: no [DONE] terminator");if(!$)throw Error("chat completion stream produced no content");return X?{content:$,usage:X}:{content:$}}function E0(Z,$){if(Z.headers?.get?.("content-type")?.includes("text/event-stream"))return!0;return $.trimStart().startsWith("data:")}async function E(Z,$,X,J={}){let G=R.QITQODE_BACKEND_URL,V=`${G}::post:${Z}`;if(!J.noCache){let O=Date.now(),Q=h.get(V);if(Q&&Q.expires>O)return Q.value}let W=!1,z=!1;do{z=!1;try{let O=await i(),Q=O?e(O):{},L=J.billable?jZ(B0(G,Q),$,X):void 0,M=L?{"x-idempotency-key":L.key}:{},D=await fetch(`${G}/${$}`,{method:"POST",headers:{"Content-Type":"application/json",...Q,...M},body:JSON.stringify(X),signal:J.signal});if(D.status===401||D.status===403){L?.settle();let I=await D.text().catch(()=>"");if(I.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${I}`);let F=await p$({credential:O,status:D.status,label:$,baseUrl:G,repairSpent:W});if(W=!0,F.retry){z=!0;continue}throw F.error}if(!D.ok){let I=await i$(D,`Backend POST /${$}`);if(D.status<500)L?.settle();throw I}let K;if(J.sse){let I=await D.text();if(E0(D,I)){L?.settle();let F=RZ(I);if(!J.noCache)h.set(V,{value:F,expires:Date.now()+S$});return F}K=JSON.parse(I)}else K=await D.json();let j=K!==null&&typeof K==="object"&&typeof K.error==="string";if((!J.acceptTopLevel||typeof K?.success==="boolean"||j)&&!K.success)throw L?.settle(),n$(K,`Backend POST /${$}`);L?.settle();let B=J.acceptTopLevel?H0(K):K.data;if(!J.noCache)h.set(V,{value:B,expires:Date.now()+S$});return B}catch(O){if(O instanceof s)throw O;throw H.failures++,_.warn("backend POST request failed; surfacing error",{fnName:$,baseUrl:G,error:O instanceof Error?O.message:String(O)}),O}}while(z);throw Error(`Backend POST /${$} exhausted its auth retry without a verdict`)}async function r$(Z,$,X={}){let J=R.QITQODE_BACKEND_URL,G=!1,V=!1;do{V=!1;try{let W=await i(),z=W?e(W):{},O=new URLSearchParams(Object.entries($).map(([D,K])=>[D,String(K)])).toString(),Q=O?`${J}/${Z}?${O}`:`${J}/${Z}`,L=await fetch(Q,{method:"GET",headers:{...z},signal:X.signal});if(L.status===401||L.status===403){let D=await L.text().catch(()=>"");if(D.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${D}`);let K=await p$({credential:W,status:L.status,label:Z,baseUrl:J,repairSpent:G});if(G=!0,K.retry){V=!0;continue}throw K.error}if(!L.ok)throw await i$(L,`Backend GET /${Z}`);let M=await L.json();if(!M.success)throw n$(M,`Backend GET /${Z}`);return M.data}catch(W){if(W instanceof s)throw W;throw H.failures++,_.warn("backend GET request failed; surfacing error",{fnName:Z,baseUrl:J,error:W instanceof Error?W.message:String(W)}),W}}while(V);throw Error(`Backend GET /${Z} exhausted its auth retry without a verdict`)}async function A0(Z,$,X){let J=R.QITQODE_BACKEND_URL,G=`${J}::public:${Z}`,V=Date.now(),W=h.get(G);if(W&&W.expires>V)return W.value;try{let z=await fetch(`${J}/${$}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(X),signal:AbortSignal.timeout(m$)});if(!z.ok)throw await i$(z,`Backend public POST /${$}`);let O=await z.json();if(!O.success)throw n$(O,`Backend public POST /${$}`);let Q=O.data;return h.set(G,{value:Q,expires:V+S$}),Q}catch(z){throw H.failures++,_.warn("backend public request failed; surfacing error",{fnName:$,baseUrl:J,error:z instanceof Error?z.message:String(z)}),z}}async function s$(){try{return await A0("forgewise.config","forgewiseConfig",{})}catch(Z){let $=await i().catch(()=>null);if(!$)throw Z;let X=R.QITQODE_BACKEND_URL,J=await fetch(`${X}/forgewiseConfig`,{method:"POST",headers:{"Content-Type":"application/json",...e($)},body:JSON.stringify({}),signal:AbortSignal.timeout(m$)}).catch(()=>null);if(!J?.ok)throw Z;let G=await J.json().catch(()=>null);if(!G?.success)throw Z;return G.data}}async function P0(){return r$("listTiers",{}).then((Z)=>{if(!Array.isArray(Z))return[];return Z.flatMap(($)=>{if(typeof $==="string")return[{id:$}];if(!$||typeof $!=="object"||Array.isArray($))return[];let X=$;return typeof X.id==="string"?[{id:X.id,...typeof X.label==="string"?{label:X.label}:{},...typeof X.providerID==="string"?{providerID:X.providerID}:{},...typeof X.modelID==="string"?{modelID:X.modelID}:{}}]:[]})}).catch((Z)=>{return _.warn("listTiers fetch failed; using hardcoded tier fallback",{error:Z instanceof Error?Z.message:String(Z)}),[]})}async function k0(){return r$("TIER_RATINGS",{}).catch((Z)=>{_.warn("TIER_RATINGS fetch failed; no tier ratings will be shown",{error:Z instanceof Error?Z.message:String(Z)});return})}async function g0(Z){return E("compaction.trajectory","compressTrajectorySafe",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(120000)})}async function C0(Z,$){let X=$?.timeoutMs??30000,J={query:Z};if($?.numResults)J.options={count:$.numResults};return E("brave.search","braveSearch",J,{noCache:!0,signal:AbortSignal.timeout(X)})}async function h0(Z){return E("qredits.history","getHistory",Z,{noCache:!0})}async function b0(Z){return E("forgewise.qredits.balance","fetchQreditsBalance",Z,{noCache:!0,acceptTopLevel:!0})}async function f0(Z){return E(`code.analyze:${Z.filePath}`,"analyzeCodeForIssues",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function v0(Z){return E(`code.docs:${Z.filePath}:${Z.functionName??""}`,"generateDocumentation",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function y0(Z){return E(`code.comments:${Z.filePath}`,"generateInlineComments",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function c0(Z,$,X){return E("chat.boolean","chatBoolean",{sample:Z,test:$},{noCache:!0,billable:!0,signal:AbortSignal.timeout(X?.timeoutMs??30000)})}async function u0(Z,$){let X={message:Z},J={};if($?.provider!==void 0)J.provider=$.provider;if($?.temperature!==void 0)J.temperature=$.temperature;if($?.maxTokens!==void 0)J.maxTokens=$.maxTokens;if(Object.keys(J).length>0)X.options=J;let G=await E("chat.completion","chatCompletion",X,{noCache:!0,billable:!0,sse:!0,signal:AbortSignal.timeout($?.timeoutMs??30000)});return _Z(G)}function _Z(Z){if(typeof Z==="string")return{content:Z};if(Z!==null&&typeof Z==="object"){let $=Z,X=$.choices?.[0],J=typeof $.content==="string"?$.content:X?.message?.content??X?.delta?.content;if(typeof J==="string"){let G=$.usage,V=G?{promptTokens:G.promptTokens??G.prompt_tokens,completionTokens:G.completionTokens??G.completion_tokens,totalTokens:G.totalTokens??G.total_tokens}:void 0;return V?{content:J,usage:V}:{content:J}}}throw Error(`chatCompletion returned an unrecognized payload shape: ${JSON.stringify(Z)?.slice(0,300)}`)}async function d0(Z){return E("batch.submit","submitBatch",{tier:Z.tier,requests:Z.requests},{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function m0(Z){return r$("retrieveBatch",{batchId:Z.batchId,tier:Z.tier},{signal:AbortSignal.timeout(30000)})}var l0=C.create({service:"forgewise.config"}),p0="https://accounts.forgewise.tech",i0="forgewise-cli",qZ=!1,n0={defaultFallbacks:0};function x$(...Z){return Z.find(($)=>$!==void 0&&$.trim().length>0)}function m9(){return!!process.env.REPLIT_DEV_DOMAIN}async function OZ(){let Z=process.env.ACCOUNTS_ISSUER,$=process.env.FORGEWISE_CLIENT_ID;if(Z&&$)return{issuer:Z.replace(/\/+$/,""),clientId:$};let X,J;try{X=await s$()}catch(O){X=void 0,J=O}let G=x$(Z,X?.issuer,p0).replace(/\/+$/,""),V=x$($,X?.clientId,i0),W=x$(Z,X?.issuer)===void 0,z=x$($,X?.clientId)===void 0;if((W||z)&&!qZ)qZ=!0,n0.defaultFallbacks++,l0.warn("remote Forgewise coordinate lookup unavailable; falling back to baked-in defaults",{issuer:G,clientId:V,usedDefaultIssuer:W,usedDefaultClientId:z,remoteError:J instanceof Error?J.message:J?String(J):void 0});return{issuer:G,clientId:V}}
8
- export{g as To,e1 as Uo,mZ as Vo,lZ as Wo,$Z as Xo,O0 as Yo,F$ as Zo,A as _o,i as $o,B$ as ap,E$ as bp,m9 as cp,OZ as dp,q as ep,n as fp,zZ as gp,U9 as hp,B9 as ip,I9 as jp,S9 as kp,x9 as lp,R9 as mp,_9 as np,LZ as op,C$ as pp,MZ as qp,s as rp,G$ as sp,Y$ as tp,l$ as up,P0 as vp,k0 as wp,h0 as xp,b0 as yp,o$ as zp};
8
+ export{g as Wo,e1 as Xo,mZ as Yo,lZ as Zo,$Z as _o,O0 as $o,F$ as ap,A as bp,i as cp,B$ as dp,E$ as ep,m9 as fp,OZ as gp,q as hp,n as ip,zZ as jp,U9 as kp,B9 as lp,I9 as mp,S9 as np,x9 as op,R9 as pp,_9 as qp,LZ as rp,C$ as sp,MZ as tp,s as up,G$ as vp,Y$ as wp,l$ as xp,P0 as yp,k0 as zp,h0 as Ap,b0 as Bp,o$ as Cp};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Qt as E}from"./chunk-6g3bzap8.js";function q(w){return!!w&&typeof w==="object"&&!Array.isArray(w)}function C(w){if(!q(w))return;let A=w.diagnostic,j=q(w.data)?w.data.diagnostic:void 0,p=q(A)?A:q(j)?j:void 0;if(!p){let h=w.cause;return h!==w?C(h):void 0}if(typeof p.errorID!=="string"||typeof p.errorName!=="string"||typeof p.logFile!=="string")return;return{errorID:p.errorID,errorName:p.errorName,logFile:p.logFile}}function J(w){return C(w)}function K(w,A){let j=C(w);if(j)return j;let p=A??(q(w)&&typeof w.name==="string"?w.name:w instanceof Error?w.name:"UnknownError"),h={errorID:crypto.randomUUID(),errorName:p,logFile:E()};if(q(w))try{Object.defineProperty(w,"diagnostic",{value:h,enumerable:!0,configurable:!0})}catch{}return h}function D(w){if(w instanceof Error)return w.stack??`${w.name}: ${w.message}`;if(typeof w==="object"&&w!==null){let A=z(w);if(A!=="unknown error")return A;try{return JSON.stringify(w,null,2)}catch{return"Unexpected error (unserializable)"}}return String(w)}function z(w){if(w instanceof Error){if(w.message)return w.message;if(w.name)return w.name}if(q(w)&&typeof w.message==="string"&&w.message)return w.message;if(q(w)&&q(w.data)&&typeof w.data.message==="string"&&w.data.message)return w.data.message;let A=String(w);if(A&&A!=="[object Object]")return A;let j=D(w);if(j&&j!=="{}")return j;return"unknown error"}function L(w){if(w instanceof Error)return{type:w.name,message:z(w),stack:w.stack,cause:w.cause===void 0?void 0:D(w.cause),formatted:B(w)};if(!q(w))return{type:typeof w,message:z(w),formatted:B(w)};let A=Object.getOwnPropertyNames(w).reduce((j,p)=>{let h=w[p];if(h===void 0)return j;if(typeof h==="string"||typeof h==="number"||typeof h==="boolean")return j[p]=h,j;return j[p]=h instanceof Error?h.message:String(h),j},{});if(typeof A.message!=="string")A.message=z(w);if(typeof A.type!=="string")A.type=w.constructor?.name;return A.formatted=B(w),A}function B(w){let A=D(w);if(A!=="{}")return A;return String(w)}
3
- export{q as Dt,J as Et,K as Ft,z as Gt,L as Ht};
2
+ import{Tt as E}from"./chunk-5dvy83ms.js";function q(w){return!!w&&typeof w==="object"&&!Array.isArray(w)}function C(w){if(!q(w))return;let A=w.diagnostic,j=q(w.data)?w.data.diagnostic:void 0,p=q(A)?A:q(j)?j:void 0;if(!p){let h=w.cause;return h!==w?C(h):void 0}if(typeof p.errorID!=="string"||typeof p.errorName!=="string"||typeof p.logFile!=="string")return;return{errorID:p.errorID,errorName:p.errorName,logFile:p.logFile}}function J(w){return C(w)}function K(w,A){let j=C(w);if(j)return j;let p=A??(q(w)&&typeof w.name==="string"?w.name:w instanceof Error?w.name:"UnknownError"),h={errorID:crypto.randomUUID(),errorName:p,logFile:E()};if(q(w))try{Object.defineProperty(w,"diagnostic",{value:h,enumerable:!0,configurable:!0})}catch{}return h}function D(w){if(w instanceof Error)return w.stack??`${w.name}: ${w.message}`;if(typeof w==="object"&&w!==null){let A=z(w);if(A!=="unknown error")return A;try{return JSON.stringify(w,null,2)}catch{return"Unexpected error (unserializable)"}}return String(w)}function z(w){if(w instanceof Error){if(w.message)return w.message;if(w.name)return w.name}if(q(w)&&typeof w.message==="string"&&w.message)return w.message;if(q(w)&&q(w.data)&&typeof w.data.message==="string"&&w.data.message)return w.data.message;let A=String(w);if(A&&A!=="[object Object]")return A;let j=D(w);if(j&&j!=="{}")return j;return"unknown error"}function L(w){if(w instanceof Error)return{type:w.name,message:z(w),stack:w.stack,cause:w.cause===void 0?void 0:D(w.cause),formatted:B(w)};if(!q(w))return{type:typeof w,message:z(w),formatted:B(w)};let A=Object.getOwnPropertyNames(w).reduce((j,p)=>{let h=w[p];if(h===void 0)return j;if(typeof h==="string"||typeof h==="number"||typeof h==="boolean")return j[p]=h,j;return j[p]=h instanceof Error?h.message:String(h),j},{});if(typeof A.message!=="string")A.message=z(w);if(typeof A.type!=="string")A.type=w.constructor?.name;return A.formatted=B(w),A}function B(w){let A=D(w);if(A!=="{}")return A;return String(w)}
3
+ export{q as Gt,J as Ht,K as It,z as Jt,L as Kt};