@qitqode/qitqode-android-arm64 0.1.26 → 0.1.28

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 (418) hide show
  1. package/bundle/{chunk-3bb7y9pq.js → chunk-04h4afhf.js} +2 -2
  2. package/bundle/{chunk-x3z8q0ep.js → chunk-04tw0r4s.js} +1 -1
  3. package/bundle/chunk-066eeq5q.js +2 -0
  4. package/bundle/chunk-07ws99b1.js +2 -0
  5. package/bundle/chunk-09c4ngag.js +2 -0
  6. package/bundle/{chunk-se195e52.js → chunk-09kba1hg.js} +2 -2
  7. package/bundle/{chunk-pfn1db1m.js → chunk-0a0vat1h.js} +2 -2
  8. package/bundle/chunk-0jgst767.js +2 -0
  9. package/bundle/chunk-0nj8axbw.js +7610 -0
  10. package/bundle/chunk-0psrr9vp.js +2 -0
  11. package/bundle/{chunk-z2q3mg73.js → chunk-12bssxd4.js} +2 -2
  12. package/bundle/{chunk-6vb26adv.js → chunk-13hz1kvh.js} +1 -1
  13. package/bundle/{chunk-hz1hd1bd.js → chunk-1bhvt33f.js} +1 -1
  14. package/bundle/{chunk-49tqzsy0.js → chunk-1dwcga8g.js} +2 -2
  15. package/bundle/chunk-1etdhr36.js +11 -0
  16. package/bundle/{chunk-9qtf8khv.js → chunk-1fbeendk.js} +1 -1
  17. package/bundle/chunk-1j73cnvz.js +2 -0
  18. package/bundle/{chunk-tyy4gx61.js → chunk-1m2e2w1q.js} +1 -1
  19. package/bundle/{chunk-eqaym8gm.js → chunk-1qshjfzm.js} +1 -1
  20. package/bundle/{chunk-d31yrcrn.js → chunk-1rp1cvmc.js} +2 -2
  21. package/bundle/{chunk-vx837ete.js → chunk-1sgby720.js} +1 -1
  22. package/bundle/{chunk-atbm0pnt.js → chunk-1t6bvbgy.js} +2 -2
  23. package/bundle/{chunk-wefjbwv6.js → chunk-1t9jne14.js} +1 -1
  24. package/bundle/chunk-1yddn03z.js +2 -0
  25. package/bundle/{chunk-n07rsssz.js → chunk-24xc0dvv.js} +1 -1
  26. package/bundle/{chunk-qngs31yf.js → chunk-26nfphsg.js} +1 -1
  27. package/bundle/{chunk-kkdgzeva.js → chunk-27yxgy03.js} +2 -2
  28. package/bundle/{chunk-f416n3mp.js → chunk-288hw03f.js} +2 -2
  29. package/bundle/{chunk-qan3kwbv.js → chunk-2abdrqrx.js} +1 -1
  30. package/bundle/{chunk-b79k456s.js → chunk-2ahqhh4z.js} +1 -1
  31. package/bundle/{chunk-fx7w497c.js → chunk-2bn4b42t.js} +1 -1
  32. package/bundle/{chunk-4k70wrhf.js → chunk-2dzk5txw.js} +1 -1
  33. package/bundle/{chunk-56qm8xpt.js → chunk-2jmxt3fb.js} +1 -1
  34. package/bundle/{chunk-r1yqmd4y.js → chunk-2km50rd3.js} +1 -1
  35. package/bundle/{chunk-j87bvp1b.js → chunk-2q96x1t5.js} +1 -1
  36. package/bundle/{chunk-77e1wh0j.js → chunk-2rs39vj2.js} +2 -2
  37. package/bundle/{chunk-qb5qemtp.js → chunk-2tnarng3.js} +1 -1
  38. package/bundle/{chunk-cr06m77n.js → chunk-2vepzgek.js} +2 -2
  39. package/bundle/{chunk-k7h6tfzj.js → chunk-371r2111.js} +1 -1
  40. package/bundle/{chunk-5jtd006j.js → chunk-37n34pzd.js} +2 -2
  41. package/bundle/chunk-37s5hwtc.js +2 -0
  42. package/bundle/chunk-38g8yzw0.js +2 -0
  43. package/bundle/chunk-3bkd0ar3.js +2 -0
  44. package/bundle/{chunk-6nkcfncg.js → chunk-3bmzjznz.js} +1 -1
  45. package/bundle/{chunk-2jn2hd12.js → chunk-3dvd1bb6.js} +2 -2
  46. package/bundle/chunk-3fx5jda0.js +2 -0
  47. package/bundle/{chunk-cn10hn58.js → chunk-3j9hedmx.js} +1 -1
  48. package/bundle/{chunk-7n2kpqh5.js → chunk-3nwve06r.js} +1 -1
  49. package/bundle/{chunk-ptf09vmp.js → chunk-3nyqh1d6.js} +1 -1
  50. package/bundle/chunk-457y2816.js +2 -0
  51. package/bundle/{chunk-6s2f5sv4.js → chunk-48fvrggx.js} +1 -1
  52. package/bundle/chunk-4amgp4yd.js +3 -0
  53. package/bundle/{chunk-f3c9667r.js → chunk-4qqkqrn9.js} +2 -2
  54. package/bundle/chunk-4sk0rmw3.js +28 -0
  55. package/bundle/chunk-4sz3jbc5.js +2 -0
  56. package/bundle/{chunk-1n4w8dya.js → chunk-4tbwha3m.js} +2 -2
  57. package/bundle/{chunk-hb4d06q0.js → chunk-4yawrap2.js} +2 -2
  58. package/bundle/{chunk-dv5zf5gz.js → chunk-5a5t01ka.js} +1 -1
  59. package/bundle/{chunk-880msfsd.js → chunk-5fgx6fa4.js} +1 -1
  60. package/bundle/{chunk-t1vtdgd6.js → chunk-5fz8tph5.js} +1 -1
  61. package/bundle/{chunk-ppvmy940.js → chunk-5g8108nf.js} +2 -2
  62. package/bundle/{chunk-e57d1he9.js → chunk-5qam3c8r.js} +1 -1
  63. package/bundle/{chunk-1qbm1k9y.js → chunk-5syxjhg3.js} +3 -3
  64. package/bundle/chunk-612f97vv.js +616 -0
  65. package/bundle/{chunk-fffj9447.js → chunk-61c62e5s.js} +2 -2
  66. package/bundle/{chunk-kp84yba1.js → chunk-61zpnwv6.js} +1 -1
  67. package/bundle/chunk-6d9wsjxm.js +2 -0
  68. package/bundle/{chunk-f6y7a5w3.js → chunk-6fp8a9ek.js} +2 -2
  69. package/bundle/{chunk-st74db4c.js → chunk-6hv59ere.js} +1 -1
  70. package/bundle/{chunk-56pwz1kk.js → chunk-6nbzdb0r.js} +1 -1
  71. package/bundle/{chunk-8ahpk8td.js → chunk-6p7yg5sr.js} +1 -1
  72. package/bundle/chunk-6q87abbr.js +2 -0
  73. package/bundle/{chunk-kfk1zqc1.js → chunk-6qy1ghrx.js} +1 -1
  74. package/bundle/chunk-730a2d1k.js +2 -0
  75. package/bundle/chunk-7bd0x9vf.js +2 -0
  76. package/bundle/chunk-7czkntef.js +2 -0
  77. package/bundle/chunk-7ex57nyh.js +2 -0
  78. package/bundle/chunk-7gpczxbh.js +2 -0
  79. package/bundle/chunk-7j0bgeh2.js +2 -0
  80. package/bundle/{chunk-w3pzv615.js → chunk-7jbz3dgt.js} +1 -1
  81. package/bundle/{chunk-0ndvy0nh.js → chunk-7ppd2phw.js} +2 -2
  82. package/bundle/chunk-7py443fe.js +2 -0
  83. package/bundle/{chunk-ykxde207.js → chunk-7yrhe3xq.js} +2 -2
  84. package/bundle/chunk-8815p61h.js +2 -0
  85. package/bundle/{chunk-3s0d17xe.js → chunk-89q1y7tc.js} +1 -1
  86. package/bundle/{chunk-9wm41z2f.js → chunk-89v6dgpp.js} +2 -2
  87. package/bundle/{chunk-njzpswgt.js → chunk-8tc8x27z.js} +7 -7
  88. package/bundle/chunk-90q5sae0.js +2 -0
  89. package/bundle/chunk-92d9469t.js +2 -0
  90. package/bundle/chunk-9grvepmd.js +2 -0
  91. package/bundle/chunk-9hrh15p2.js +2 -0
  92. package/bundle/{chunk-t7tstr83.js → chunk-9j1qqdr2.js} +1 -1
  93. package/bundle/{chunk-58gp7wbg.js → chunk-a1p2f16h.js} +2 -2
  94. package/bundle/{chunk-fk8cctjy.js → chunk-a1pw9r6f.js} +2 -2
  95. package/bundle/chunk-a2qz9m10.js +2 -0
  96. package/bundle/chunk-a7cxf56j.js +2 -0
  97. package/bundle/{chunk-0w5npkgr.js → chunk-ab6cabxh.js} +1 -1
  98. package/bundle/{chunk-sdsggxm4.js → chunk-anjg3mwn.js} +2 -2
  99. package/bundle/chunk-av6ezvxm.js +2 -0
  100. package/bundle/{chunk-s2za1y84.js → chunk-aztre27e.js} +1 -1
  101. package/bundle/{chunk-xdv9xt0y.js → chunk-b0syck9r.js} +2 -2
  102. package/bundle/{chunk-s1h0k1yj.js → chunk-b3dqcbsc.js} +1 -1
  103. package/bundle/{chunk-ewvgbg68.js → chunk-b8tw709r.js} +1 -1
  104. package/bundle/{chunk-7fmy4cvn.js → chunk-b9za12y1.js} +1 -1
  105. package/bundle/{chunk-hybq019j.js → chunk-be216spx.js} +2 -2
  106. package/bundle/chunk-beksar7w.js +2 -0
  107. package/bundle/chunk-bg66rqrx.js +2 -0
  108. package/bundle/chunk-bkbngcvc.js +2 -0
  109. package/bundle/{chunk-32zrch7h.js → chunk-bss414qz.js} +1 -1
  110. package/bundle/{chunk-vthm5q05.js → chunk-btneef3z.js} +1 -1
  111. package/bundle/{chunk-5mec6cde.js → chunk-btz9jvec.js} +1 -1
  112. package/bundle/{chunk-6nk3wx6f.js → chunk-bvkq0a5q.js} +1 -1
  113. package/bundle/{chunk-kn318ev4.js → chunk-c01z3cvg.js} +2 -2
  114. package/bundle/{chunk-z559gc3n.js → chunk-c5e6sk9c.js} +1 -1
  115. package/bundle/{chunk-453wpzg6.js → chunk-c8k32724.js} +1 -1
  116. package/bundle/{chunk-2q76qax6.js → chunk-cafzcmrg.js} +2 -2
  117. package/bundle/{chunk-g6dgc5af.js → chunk-cdhmc0t0.js} +1 -1
  118. package/bundle/{chunk-xc3fadkh.js → chunk-chmrvbbj.js} +1 -1
  119. package/bundle/{chunk-s86fj82v.js → chunk-cmbxrgyx.js} +2 -2
  120. package/bundle/{chunk-14ag9ea0.js → chunk-ct48575c.js} +1 -1
  121. package/bundle/{chunk-5ymj2q6j.js → chunk-cvdxgsq1.js} +2 -2
  122. package/bundle/{chunk-g8wvr7a1.js → chunk-cwqd48xt.js} +2 -2
  123. package/bundle/chunk-cy9s1ma5.js +2 -0
  124. package/bundle/chunk-cydewa1c.js +2 -0
  125. package/bundle/{chunk-fxb6vjcb.js → chunk-d5bxan80.js} +2 -2
  126. package/bundle/{chunk-p0k4sv89.js → chunk-d6r4xwtg.js} +4 -4
  127. package/bundle/chunk-d7qscj5p.js +2 -0
  128. package/bundle/{chunk-cyjzqa5p.js → chunk-dafbntks.js} +204 -202
  129. package/bundle/{chunk-dazye86e.js → chunk-df6a167w.js} +2 -2
  130. package/bundle/{chunk-rf625fxx.js → chunk-dfnv7vkn.js} +1 -1
  131. package/bundle/{chunk-06x1p3t4.js → chunk-dhjp0zx2.js} +1 -1
  132. package/bundle/chunk-dpkynwgm.js +3 -0
  133. package/bundle/{chunk-xak2r993.js → chunk-dq9kpj4a.js} +2 -2
  134. package/bundle/{chunk-7tbvr236.js → chunk-drs1gv2b.js} +1 -1
  135. package/bundle/{chunk-xqxpjbqk.js → chunk-ds69qc8b.js} +1 -1
  136. package/bundle/chunk-dvk2wwjj.js +2 -0
  137. package/bundle/{chunk-vpqd0t8a.js → chunk-e0152ayv.js} +2 -2
  138. package/bundle/chunk-e0jy9qxd.js +2 -0
  139. package/bundle/{chunk-t6xm49ea.js → chunk-eb9mytjq.js} +1 -1
  140. package/bundle/{chunk-fk3praj7.js → chunk-ebcv65e3.js} +1 -1
  141. package/bundle/{chunk-08y06vgt.js → chunk-ebrt1me3.js} +2 -2
  142. package/bundle/{chunk-hjratj6g.js → chunk-ecn8gbtz.js} +1 -1
  143. package/bundle/chunk-emtebxvs.js +3 -0
  144. package/bundle/chunk-erg0ske8.js +2 -0
  145. package/bundle/{chunk-txty44v2.js → chunk-f2tdfry8.js} +2 -2
  146. package/bundle/{chunk-afhg3w2j.js → chunk-f45tp3e3.js} +1 -1
  147. package/bundle/chunk-f72pppr7.js +2 -0
  148. package/bundle/{chunk-pnj8s20t.js → chunk-fff3151r.js} +1 -1
  149. package/bundle/{chunk-0mekr486.js → chunk-fkgv2hqd.js} +1 -1
  150. package/bundle/{chunk-zvsafnkp.js → chunk-fnbpap62.js} +2 -2
  151. package/bundle/{chunk-4nck07pc.js → chunk-fzna6jdj.js} +2 -2
  152. package/bundle/{chunk-wg5dv21f.js → chunk-g16zb3y1.js} +2 -2
  153. package/bundle/{chunk-5yaahmjb.js → chunk-g1dwbvkg.js} +1 -1
  154. package/bundle/{chunk-1xkwm21b.js → chunk-g3dhsmbt.js} +3 -3
  155. package/bundle/{chunk-c0k8j498.js → chunk-g7rjtehn.js} +1 -1
  156. package/bundle/{chunk-e58pdw5k.js → chunk-gf0pdgjs.js} +2 -2
  157. package/bundle/{chunk-0m2tj2h9.js → chunk-ggqst87g.js} +1 -1
  158. package/bundle/{chunk-9zrwbxx0.js → chunk-gj7y56y6.js} +2 -2
  159. package/bundle/chunk-gk34kh8p.js +2 -0
  160. package/bundle/{chunk-1yx4jesj.js → chunk-gm85xefs.js} +1 -1
  161. package/bundle/chunk-gn50xqbd.js +2 -0
  162. package/bundle/{chunk-wmrq9qqf.js → chunk-gsez13bg.js} +1 -1
  163. package/bundle/{chunk-s54c8fpf.js → chunk-h0rpmne5.js} +1 -1
  164. package/bundle/chunk-h602h2gx.js +2 -0
  165. package/bundle/chunk-h7s2w1e2.js +2 -0
  166. package/bundle/{chunk-91khd3fq.js → chunk-h9pvnp5c.js} +1 -1
  167. package/bundle/{chunk-07net7s8.js → chunk-hj5y7fvk.js} +1 -1
  168. package/bundle/{chunk-qmhcbdkg.js → chunk-hk698g9e.js} +2 -2
  169. package/bundle/chunk-hmv2cdnz.js +2 -0
  170. package/bundle/chunk-hnb8v476.js +2 -0
  171. package/bundle/chunk-ht81ensf.js +2 -0
  172. package/bundle/chunk-hxgs0d4t.js +2 -0
  173. package/bundle/chunk-j59ktwny.js +2 -0
  174. package/bundle/{chunk-3zn71txs.js → chunk-j5kb0y1m.js} +1 -1
  175. package/bundle/{chunk-qpv4438m.js → chunk-j6emx6jn.js} +2 -2
  176. package/bundle/{chunk-x36jhtex.js → chunk-j8efst22.js} +1 -1
  177. package/bundle/{chunk-z4ae6jmb.js → chunk-j9pcnkkq.js} +3 -3
  178. package/bundle/{chunk-y2ch07yv.js → chunk-jje0srjq.js} +2 -2
  179. package/bundle/{chunk-nxjbbq5h.js → chunk-jm1ptn8n.js} +1 -1
  180. package/bundle/chunk-jmz2mq3t.js +2 -0
  181. package/bundle/chunk-jr907144.js +2 -0
  182. package/bundle/{chunk-eq33vmze.js → chunk-jx27xrk1.js} +2 -2
  183. package/bundle/{chunk-m7txgh5w.js → chunk-k2tamnfv.js} +1 -1
  184. package/bundle/chunk-k309zez0.js +3 -0
  185. package/bundle/chunk-k3epfxmq.js +2 -0
  186. package/bundle/chunk-k3fn3yed.js +2 -0
  187. package/bundle/chunk-k5q52wdq.js +2 -0
  188. package/bundle/chunk-k7g3h9tn.js +3 -0
  189. package/bundle/{chunk-wg42cxrw.js → chunk-k7gq9bra.js} +1 -1
  190. package/bundle/{chunk-vyjsng14.js → chunk-kb6w3wbd.js} +1 -1
  191. package/bundle/{chunk-qm9ezq93.js → chunk-kdcnder5.js} +1 -1
  192. package/bundle/{chunk-28vnspd4.js → chunk-kfsb2stm.js} +1 -1
  193. package/bundle/chunk-kfsn9c7m.js +2 -0
  194. package/bundle/{chunk-kvz0vzsn.js → chunk-knpt9n8f.js} +1 -1
  195. package/bundle/chunk-kpw6nghv.js +2 -0
  196. package/bundle/{chunk-cbmw8fy2.js → chunk-kqn9h2gk.js} +1 -1
  197. package/bundle/chunk-krhkrca9.js +2 -0
  198. package/bundle/{chunk-kbyk7hyn.js → chunk-m02zt1a3.js} +2 -2
  199. package/bundle/{chunk-yqtfvgrp.js → chunk-m1h5a4vg.js} +1 -1
  200. package/bundle/chunk-m5ghbt5y.js +2 -0
  201. package/bundle/{chunk-7ryv0f5h.js → chunk-m612agnk.js} +1 -1
  202. package/bundle/{chunk-05amr7y9.js → chunk-m67tcnk4.js} +1 -1
  203. package/bundle/{chunk-2sy1wx99.js → chunk-m8yv4sd2.js} +1 -1
  204. package/bundle/{chunk-613kegcn.js → chunk-mgk9sh16.js} +1 -1
  205. package/bundle/{chunk-7e1aw8rw.js → chunk-mk6cddvd.js} +1 -1
  206. package/bundle/chunk-mn41f9qv.js +2 -0
  207. package/bundle/chunk-mqjf9sbm.js +2 -0
  208. package/bundle/{chunk-n10atvac.js → chunk-msegx0t7.js} +1 -1
  209. package/bundle/{chunk-8bzwgcjb.js → chunk-mskwkcgj.js} +1 -1
  210. package/bundle/chunk-my7mn79h.js +9 -0
  211. package/bundle/{chunk-7rxsj310.js → chunk-n0mygdfp.js} +2 -2
  212. package/bundle/chunk-n5gwrrbb.js +2 -0
  213. package/bundle/{chunk-1xpx1t40.js → chunk-n8h6x2en.js} +2 -2
  214. package/bundle/chunk-nfjhem1c.js +2 -0
  215. package/bundle/{chunk-j0ftbmex.js → chunk-ngchsw2g.js} +2 -2
  216. package/bundle/{chunk-3rgct4bd.js → chunk-nj4d554m.js} +1 -1
  217. package/bundle/{chunk-w4hbw37v.js → chunk-nt4e3em9.js} +1 -1
  218. package/bundle/chunk-nxyyn2ra.js +2 -0
  219. package/bundle/{chunk-md7vpe1e.js → chunk-nzehfpxp.js} +1 -1
  220. package/bundle/chunk-p5tceb4k.js +2 -0
  221. package/bundle/{chunk-3w64fpwn.js → chunk-p68rwmhc.js} +2 -2
  222. package/bundle/chunk-pdzpfkt0.js +3 -0
  223. package/bundle/{chunk-nszqy06d.js → chunk-pekm54ce.js} +1 -1
  224. package/bundle/{chunk-tedrfa7d.js → chunk-phxrg7aw.js} +2 -2
  225. package/bundle/{chunk-81engf0t.js → chunk-ppfjf7qx.js} +1 -1
  226. package/bundle/{chunk-41ftye7w.js → chunk-pxtqqmkc.js} +1 -1
  227. package/bundle/{chunk-s5krbdvd.js → chunk-q1v2pytx.js} +1 -1
  228. package/bundle/{chunk-w01gjnty.js → chunk-q6ztpfcs.js} +2 -2
  229. package/bundle/{chunk-z2m09m4w.js → chunk-qc1w4b12.js} +1 -1
  230. package/bundle/{chunk-yvj021eg.js → chunk-qhc90p4a.js} +2 -2
  231. package/bundle/chunk-qjgm3e2p.js +2 -0
  232. package/bundle/{chunk-qkwhgfjt.js → chunk-qjjch1zt.js} +2 -2
  233. package/bundle/{chunk-f3rrd2p6.js → chunk-qjn86fc0.js} +1 -1
  234. package/bundle/{chunk-qq71akpw.js → chunk-qrey2gwb.js} +2 -2
  235. package/bundle/{chunk-pjbbdm96.js → chunk-qv2s39dv.js} +2 -2
  236. package/bundle/{chunk-2yb59jwr.js → chunk-qvxvc2c2.js} +1 -1
  237. package/bundle/{chunk-ygwe0vf1.js → chunk-rmr38x2f.js} +2 -2
  238. package/bundle/chunk-s07j8hfy.js +2 -0
  239. package/bundle/chunk-s1cnzvb2.js +2 -0
  240. package/bundle/{chunk-01gwb793.js → chunk-s3yna2wm.js} +1 -1
  241. package/bundle/{chunk-0vqrakhw.js → chunk-s6bar2f9.js} +1 -1
  242. package/bundle/chunk-sbyey0qb.js +2 -0
  243. package/bundle/{chunk-ze00x1xb.js → chunk-scnz207s.js} +2 -2
  244. package/bundle/{chunk-xdwej3ae.js → chunk-scsf8r98.js} +1 -1
  245. package/bundle/{chunk-xcs2jbz9.js → chunk-sermjas1.js} +1 -1
  246. package/bundle/chunk-sj5v361q.js +2 -0
  247. package/bundle/{chunk-6wdwwpsc.js → chunk-smt14yjb.js} +2 -2
  248. package/bundle/{chunk-ynfbz3sz.js → chunk-snm5q21k.js} +2 -2
  249. package/bundle/{chunk-4920vf6a.js → chunk-srh4xvsj.js} +1 -1
  250. package/bundle/{chunk-g7vahvkz.js → chunk-szr0f7k2.js} +1 -1
  251. package/bundle/{chunk-vw673y0t.js → chunk-t12xrrfr.js} +2 -2
  252. package/bundle/{chunk-fvy5w4dh.js → chunk-t22jbw8x.js} +1 -1
  253. package/bundle/{chunk-hkmb3zer.js → chunk-t2tgz0rc.js} +2 -2
  254. package/bundle/{chunk-6fpfr8tk.js → chunk-tj78jsp9.js} +1 -1
  255. package/bundle/chunk-tpndnprb.js +2 -0
  256. package/bundle/{chunk-jdkxeqw5.js → chunk-tr8sf0dk.js} +1 -1
  257. package/bundle/{chunk-hyckncza.js → chunk-v2zp22r3.js} +2 -2
  258. package/bundle/{chunk-0cehm5fn.js → chunk-v4xcysh0.js} +1 -1
  259. package/bundle/{chunk-7qxn24qa.js → chunk-v965rsr8.js} +2 -2
  260. package/bundle/{chunk-0304b7xg.js → chunk-va316nee.js} +1 -1
  261. package/bundle/{chunk-6h2faxs9.js → chunk-vg2fmyje.js} +2 -2
  262. package/bundle/{chunk-yt1yk4j1.js → chunk-vj62pc0h.js} +1 -1
  263. package/bundle/{chunk-hk8j5ht8.js → chunk-vn7nkrqb.js} +2 -2
  264. package/bundle/chunk-vwxfgea7.js +2 -0
  265. package/bundle/chunk-w0kgcz1t.js +2 -0
  266. package/bundle/{chunk-zjvzc0my.js → chunk-w87a3mzm.js} +1 -1
  267. package/bundle/chunk-w9vh7rhg.js +2 -0
  268. package/bundle/{chunk-9p83me3p.js → chunk-whxjkz9a.js} +2 -2
  269. package/bundle/chunk-wksczmes.js +2 -0
  270. package/bundle/{chunk-2kdn66xt.js → chunk-wnqwb6fd.js} +1 -1
  271. package/bundle/chunk-wrfvqp2w.js +2 -0
  272. package/bundle/chunk-wsxta33r.js +2 -0
  273. package/bundle/{chunk-rvrjw0fy.js → chunk-wsy0m70r.js} +1 -1
  274. package/bundle/{chunk-w2gpgapp.js → chunk-wy46mbwt.js} +1 -1
  275. package/bundle/{chunk-cqhpbfcn.js → chunk-wz0zcddf.js} +3 -3
  276. package/bundle/{chunk-q2exgz82.js → chunk-x067eetw.js} +1 -1
  277. package/bundle/{chunk-d2n09yvh.js → chunk-x1rx6fm7.js} +2 -2
  278. package/bundle/{chunk-j7zs1yg2.js → chunk-x7ers083.js} +1 -1
  279. package/bundle/{chunk-admgf65a.js → chunk-x9s04nze.js} +1 -1
  280. package/bundle/{chunk-fkat2pw6.js → chunk-xc5044tm.js} +1 -1
  281. package/bundle/chunk-xck0sq3k.js +2 -0
  282. package/bundle/chunk-xjyhtm8r.js +2 -0
  283. package/bundle/{chunk-rs0nx844.js → chunk-xpc2zgj7.js} +2 -2
  284. package/bundle/{chunk-54pk7nna.js → chunk-xrxyrr00.js} +1 -1
  285. package/bundle/{chunk-zna6neq5.js → chunk-xs3xtz6x.js} +1 -1
  286. package/bundle/{chunk-kpnfndkg.js → chunk-xvfpzmrf.js} +1 -1
  287. package/bundle/{chunk-crap29f6.js → chunk-xxbqhg9n.js} +1 -1
  288. package/bundle/{chunk-gaxbbxk6.js → chunk-y062spw2.js} +1 -1
  289. package/bundle/{chunk-bse8p94q.js → chunk-y2v09y71.js} +1 -1
  290. package/bundle/{chunk-jzcz92pq.js → chunk-y88xh6w3.js} +2 -2
  291. package/bundle/{chunk-g4qwkcdv.js → chunk-yajd975f.js} +1 -1
  292. package/bundle/chunk-yc1jk3rm.js +2 -0
  293. package/bundle/{chunk-5dm3p5r6.js → chunk-ydp0q1hk.js} +1 -1
  294. package/bundle/{chunk-gxa2r4zc.js → chunk-yfkvjphe.js} +1 -1
  295. package/bundle/chunk-ygc5qegv.js +2 -0
  296. package/bundle/{chunk-kbg3k1az.js → chunk-yhk7d1j0.js} +1 -1
  297. package/bundle/chunk-yjqmzm51.js +2 -0
  298. package/bundle/{chunk-49ypxzfx.js → chunk-yjtdgcq5.js} +1 -1
  299. package/bundle/{chunk-mg239rc3.js → chunk-yp0a8q29.js} +3 -3
  300. package/bundle/{chunk-p31yg62z.js → chunk-yq3m8190.js} +2 -2
  301. package/bundle/{chunk-rze20q68.js → chunk-yt3f3j35.js} +1 -1
  302. package/bundle/{chunk-tfggzzqw.js → chunk-ywkvq7zb.js} +1 -1
  303. package/bundle/{chunk-z3hj5bfd.js → chunk-z37aqajx.js} +2 -2
  304. package/bundle/chunk-z4z8hk7e.js +2 -0
  305. package/bundle/{chunk-vy9xre57.js → chunk-z6dnv8g5.js} +1 -1
  306. package/bundle/chunk-z7y9pdj7.js +2 -0
  307. package/bundle/chunk-z8g819cz.js +2 -0
  308. package/bundle/{chunk-h56jxxvj.js → chunk-z8v2tsz2.js} +1 -1
  309. package/bundle/{chunk-vztxv9dj.js → chunk-zb0me4kk.js} +1 -1
  310. package/bundle/{chunk-7ez3ye6e.js → chunk-zcm2jdr5.js} +1 -1
  311. package/bundle/chunk-zqv7fx25.js +2 -0
  312. package/bundle/chunk-zt1nbwmm.js +2 -0
  313. package/bundle/{chunk-fd9zrmhr.js → chunk-ztc3gm8y.js} +2 -2
  314. package/bundle/chunk-zw0yh3dv.js +2 -0
  315. package/bundle/{chunk-x3931we7.js → chunk-zyhdxggp.js} +2 -2
  316. package/bundle/index.js +3 -3
  317. package/bundle/parser.worker.js +2 -2
  318. package/bundle/qffi.node +0 -0
  319. package/bundle/worker.js +1 -1
  320. package/package.json +1 -1
  321. package/bundle/chunk-09ecxdmd.js +0 -2
  322. package/bundle/chunk-0jaj2g7x.js +0 -2
  323. package/bundle/chunk-0nr2925m.js +0 -2
  324. package/bundle/chunk-0wbq1y92.js +0 -2
  325. package/bundle/chunk-12pxszgn.js +0 -2
  326. package/bundle/chunk-1337582e.js +0 -2
  327. package/bundle/chunk-182jf8fz.js +0 -2
  328. package/bundle/chunk-1ht3zcsh.js +0 -2
  329. package/bundle/chunk-25zkavr0.js +0 -2
  330. package/bundle/chunk-2cm91ktc.js +0 -3
  331. package/bundle/chunk-2jfd82jk.js +0 -2
  332. package/bundle/chunk-2k7bbzj2.js +0 -2
  333. package/bundle/chunk-30081kwd.js +0 -2
  334. package/bundle/chunk-3kdhvq0p.js +0 -3
  335. package/bundle/chunk-3vag59se.js +0 -2
  336. package/bundle/chunk-3x5v6sjw.js +0 -2
  337. package/bundle/chunk-43ep9d7a.js +0 -2
  338. package/bundle/chunk-48j09m6e.js +0 -3
  339. package/bundle/chunk-4qqja22v.js +0 -2
  340. package/bundle/chunk-5gazgxt5.js +0 -2
  341. package/bundle/chunk-63znhwx0.js +0 -2
  342. package/bundle/chunk-6hmyy7n6.js +0 -2
  343. package/bundle/chunk-7dyddrpk.js +0 -2
  344. package/bundle/chunk-7penjsgq.js +0 -2
  345. package/bundle/chunk-7t5gzkj6.js +0 -2
  346. package/bundle/chunk-89vgt8vq.js +0 -2
  347. package/bundle/chunk-8e8n82f9.js +0 -2
  348. package/bundle/chunk-97exhw9j.js +0 -2
  349. package/bundle/chunk-9cvkaht5.js +0 -2
  350. package/bundle/chunk-akdvstd9.js +0 -2
  351. package/bundle/chunk-ave2e4sa.js +0 -2
  352. package/bundle/chunk-axnwehc7.js +0 -2
  353. package/bundle/chunk-bmzyxspj.js +0 -2
  354. package/bundle/chunk-bvaqpfv8.js +0 -2
  355. package/bundle/chunk-cxb05cdg.js +0 -2
  356. package/bundle/chunk-cxe92z5c.js +0 -2
  357. package/bundle/chunk-d5wp85kw.js +0 -2
  358. package/bundle/chunk-dm5xnb4t.js +0 -2
  359. package/bundle/chunk-dpeqsvan.js +0 -2
  360. package/bundle/chunk-drxtmg5c.js +0 -2
  361. package/bundle/chunk-e9pfdjcy.js +0 -2
  362. package/bundle/chunk-ejn5hfzd.js +0 -2
  363. package/bundle/chunk-ek1fawsj.js +0 -3
  364. package/bundle/chunk-ernd18jb.js +0 -2
  365. package/bundle/chunk-ff9b4cg8.js +0 -2
  366. package/bundle/chunk-fpff6a4q.js +0 -2
  367. package/bundle/chunk-gq361kdt.js +0 -2
  368. package/bundle/chunk-hbagpppv.js +0 -2
  369. package/bundle/chunk-hf473xav.js +0 -2
  370. package/bundle/chunk-hr88054m.js +0 -2
  371. package/bundle/chunk-j3czd7v2.js +0 -28
  372. package/bundle/chunk-j9m2d6t5.js +0 -2
  373. package/bundle/chunk-jd9edy2s.js +0 -2
  374. package/bundle/chunk-jwtdbx31.js +0 -2
  375. package/bundle/chunk-kbjwdv1x.js +0 -8223
  376. package/bundle/chunk-krkxrej2.js +0 -2
  377. package/bundle/chunk-m26mcy8p.js +0 -2
  378. package/bundle/chunk-m62wgqp1.js +0 -2
  379. package/bundle/chunk-m84cn9c6.js +0 -2
  380. package/bundle/chunk-mvc7pvtq.js +0 -2
  381. package/bundle/chunk-nfp9xtca.js +0 -3
  382. package/bundle/chunk-ngz5xw45.js +0 -3
  383. package/bundle/chunk-p5t9mq8r.js +0 -2
  384. package/bundle/chunk-pfbykat1.js +0 -2
  385. package/bundle/chunk-qd0nvn4z.js +0 -2
  386. package/bundle/chunk-qh99kv2j.js +0 -2
  387. package/bundle/chunk-qyrafh4m.js +0 -2
  388. package/bundle/chunk-rc37cw86.js +0 -2
  389. package/bundle/chunk-rmpty636.js +0 -2
  390. package/bundle/chunk-rz54qjew.js +0 -2
  391. package/bundle/chunk-s3wjwxme.js +0 -2
  392. package/bundle/chunk-s4ncnbgd.js +0 -2
  393. package/bundle/chunk-snz3w30x.js +0 -2
  394. package/bundle/chunk-srw748gr.js +0 -2
  395. package/bundle/chunk-tn167yyz.js +0 -2
  396. package/bundle/chunk-v1xwe58d.js +0 -2
  397. package/bundle/chunk-vh05n2x3.js +0 -2
  398. package/bundle/chunk-vrfegg5f.js +0 -2
  399. package/bundle/chunk-w12tky28.js +0 -2
  400. package/bundle/chunk-w9ct698t.js +0 -2
  401. package/bundle/chunk-wms4skr9.js +0 -11
  402. package/bundle/chunk-wr5hdsst.js +0 -9
  403. package/bundle/chunk-wxnqgh8t.js +0 -2
  404. package/bundle/chunk-wzmte7sy.js +0 -3
  405. package/bundle/chunk-x0h1jdxt.js +0 -2
  406. package/bundle/chunk-x6hsmnhz.js +0 -2
  407. package/bundle/chunk-xg9e0enb.js +0 -2
  408. package/bundle/chunk-xtxxb25n.js +0 -2
  409. package/bundle/chunk-y3s7sh1e.js +0 -2
  410. package/bundle/chunk-ydvheqw9.js +0 -2
  411. package/bundle/chunk-yxnq0d7k.js +0 -2
  412. package/bundle/chunk-z2raegj9.js +0 -2
  413. package/bundle/chunk-z3pyhmg6.js +0 -2
  414. package/bundle/chunk-z7pg6sw1.js +0 -2
  415. package/bundle/chunk-z84376c6.js +0 -2
  416. package/bundle/chunk-zn8th65r.js +0 -2
  417. package/bundle/chunk-ztv1brgn.js +0 -2
  418. package/bundle/chunk-zyxvd9fj.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var R;(function($){$.assertEqual=(W)=>{};function q(W){}$.assertIs=q;function _(W){throw Error()}$.assertNever=_,$.arrayToEnum=(W)=>{let H={};for(let J of W)H[J]=J;return H},$.getValidEnumValues=(W)=>{let H=$.objectKeys(W).filter((Y)=>typeof W[W[Y]]!=="number"),J={};for(let Y of H)J[Y]=W[Y];return $.objectValues(J)},$.objectValues=(W)=>{return $.objectKeys(W).map(function(H){return W[H]})},$.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let H=[];for(let J in W)if(Object.prototype.hasOwnProperty.call(W,J))H.push(J);return H},$.find=(W,H)=>{for(let J of W)if(H(J))return J;return},$.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function G(W,H=" | "){return W.map((J)=>typeof J==="string"?`'${J}'`:J).join(H)}$.joinValues=G,$.jsonStringifyReplacer=(W,H)=>{if(typeof H==="bigint")return H.toString();return H}})(R||(R={}));var U$;(function($){$.mergeShapes=(q,_)=>{return{...q,..._}}})(U$||(U$={}));var Q=R.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),F=($)=>{switch(typeof $){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return Number.isNaN($)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":if(Array.isArray($))return Q.array;if($===null)return Q.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return Q.promise;if(typeof Map<"u"&&$ instanceof Map)return Q.map;if(typeof Set<"u"&&$ instanceof Set)return Q.set;if(typeof Date<"u"&&$ instanceof Date)return Q.date;return Q.object;default:return Q.unknown}};var X=R.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class A extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(_)=>{this.issues=[...this.issues,_]},this.addIssues=(_=[])=>{this.issues=[...this.issues,..._]};let q=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,q);else this.__proto__=q;this.name="ZodError",this.issues=$}format($){let q=$||function(W){return W.message},_={_errors:[]},G=(W)=>{for(let H of W.issues)if(H.code==="invalid_union")H.unionErrors.map(G);else if(H.code==="invalid_return_type")G(H.returnTypeError);else if(H.code==="invalid_arguments")G(H.argumentsError);else if(H.path.length===0)_._errors.push(q(H));else{let J=_,Y=0;while(Y<H.path.length){let M=H.path[Y];if(Y!==H.path.length-1)J[M]=J[M]||{_errors:[]};else J[M]=J[M]||{_errors:[]},J[M]._errors.push(q(H));J=J[M],Y++}}};return G(this),_}static assert($){if(!($ instanceof A))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,R.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(q)=>q.message){let q={},_=[];for(let G of this.issues)if(G.path.length>0){let W=G.path[0];q[W]=q[W]||[],q[W].push($(G))}else _.push($(G));return{formErrors:_,fieldErrors:q}}get formErrors(){return this.flatten()}}A.create=($)=>{return new A($)};var D$=($,q)=>{let _;switch($.code){case X.invalid_type:if($.received===Q.undefined)_="Required";else _=`Expected ${$.expected}, received ${$.received}`;break;case X.invalid_literal:_=`Invalid literal value, expected ${JSON.stringify($.expected,R.jsonStringifyReplacer)}`;break;case X.unrecognized_keys:_=`Unrecognized key(s) in object: ${R.joinValues($.keys,", ")}`;break;case X.invalid_union:_="Invalid input";break;case X.invalid_union_discriminator:_=`Invalid discriminator value. Expected ${R.joinValues($.options)}`;break;case X.invalid_enum_value:_=`Invalid enum value. Expected ${R.joinValues($.options)}, received '${$.received}'`;break;case X.invalid_arguments:_="Invalid function arguments";break;case X.invalid_return_type:_="Invalid function return type";break;case X.invalid_date:_="Invalid date";break;case X.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(_=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")_=`${_} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)_=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)_=`Invalid input: must end with "${$.validation.endsWith}"`;else R.assertNever($.validation);else if($.validation!=="regex")_=`Invalid ${$.validation}`;else _="Invalid";break;case X.too_small:if($.type==="array")_=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")_=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")_=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")_=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")_=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else _="Invalid input";break;case X.too_big:if($.type==="array")_=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")_=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")_=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")_=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")_=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else _="Invalid input";break;case X.custom:_="Invalid input";break;case X.invalid_intersection_types:_="Intersection results could not be merged";break;case X.not_multiple_of:_=`Number must be a multiple of ${$.multipleOf}`;break;case X.not_finite:_="Number must be finite";break;default:_=q.defaultError,R.assertNever($)}return{message:_}},I=D$;var f$=I;function u(){return f$}var w;(function($){$.errToObj=(q)=>typeof q==="string"?{message:q}:q||{},$.toString=(q)=>typeof q==="string"?q:q?.message})(w||(w={}));var G$=($)=>{let{data:q,path:_,errorMaps:G,issueData:W}=$,H=[..._,...W.path||[]],J={...W,path:H};if(W.message!==void 0)return{...W,path:H,message:W.message};let Y="",M=G.filter((S)=>!!S).slice().reverse();for(let S of M)Y=S(J,{data:q,defaultError:Y}).message;return{...W,path:H,message:Y}};function B($,q){let _=u(),G=G$({issueData:q,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,_,_===I?void 0:I].filter((W)=>!!W)});$.common.issues.push(G)}class V{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,q){let _=[];for(let G of q){if(G.status==="aborted")return z;if(G.status==="dirty")$.dirty();_.push(G.value)}return{status:$.value,value:_}}static async mergeObjectAsync($,q){let _=[];for(let G of q){let W=await G.key,H=await G.value;_.push({key:W,value:H})}return V.mergeObjectSync($,_)}static mergeObjectSync($,q){let _={};for(let G of q){let{key:W,value:H}=G;if(W.status==="aborted")return z;if(H.status==="aborted")return z;if(W.status==="dirty")$.dirty();if(H.status==="dirty")$.dirty();if(W.value!=="__proto__"&&(typeof H.value<"u"||G.alwaysSet))_[W.value]=H.value}return{status:$.value,value:_}}}var z=Object.freeze({status:"aborted"}),x=($)=>({status:"dirty",value:$}),U=($)=>({status:"valid",value:$}),j$=($)=>$.status==="aborted",b$=($)=>$.status==="dirty",h=($)=>$.status==="valid",p=($)=>typeof Promise<"u"&&$ instanceof Promise;class L{constructor($,q,_,G){this._cachedPath=[],this.parent=$,this.data=q,this._path=_,this._key=G}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var A$=($,q)=>{if(h(q))return{success:!0,data:q.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let _=new A($.common.issues);return this._error=_,this._error}}}};function b($){if(!$)return{};let{errorMap:q,invalid_type_error:_,required_error:G,description:W}=$;if(q&&(_||G))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(q)return{errorMap:q,description:W};return{errorMap:(J,Y)=>{let{message:M}=$;if(J.code==="invalid_enum_value")return{message:M??Y.defaultError};if(typeof Y.data>"u")return{message:M??G??Y.defaultError};if(J.code!=="invalid_type")return{message:Y.defaultError};return{message:M??_??Y.defaultError}},description:W}}class O{get description(){return this._def.description}_getType($){return F($.data)}_getOrReturnCtx($,q){return q||{common:$.parent.common,data:$.data,parsedType:F($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new V,ctx:{common:$.parent.common,data:$.data,parsedType:F($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let q=this._parse($);if(p(q))throw Error("Synchronous parse encountered promise.");return q}_parseAsync($){let q=this._parse($);return Promise.resolve(q)}parse($,q){let _=this.safeParse($,q);if(_.success)return _.data;throw _.error}safeParse($,q){let _={common:{issues:[],async:q?.async??!1,contextualErrorMap:q?.errorMap},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:F($)},G=this._parseSync({data:$,path:_.path,parent:_});return A$(_,G)}"~validate"($){let q={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:F($)};if(!this["~standard"].async)try{let _=this._parseSync({data:$,path:[],parent:q});return h(_)?{value:_.value}:{issues:q.common.issues}}catch(_){if(_?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;q.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:q}).then((_)=>h(_)?{value:_.value}:{issues:q.common.issues})}async parseAsync($,q){let _=await this.safeParseAsync($,q);if(_.success)return _.data;throw _.error}async safeParseAsync($,q){let _={common:{issues:[],contextualErrorMap:q?.errorMap,async:!0},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:F($)},G=this._parse({data:$,path:_.path,parent:_}),W=await(p(G)?G:Promise.resolve(G));return A$(_,W)}refine($,q){let _=(G)=>{if(typeof q==="string"||typeof q>"u")return{message:q};else if(typeof q==="function")return q(G);else return q};return this._refinement((G,W)=>{let H=$(G),J=()=>W.addIssue({code:X.custom,..._(G)});if(typeof Promise<"u"&&H instanceof Promise)return H.then((Y)=>{if(!Y)return J(),!1;else return!0});if(!H)return J(),!1;else return!0})}refinement($,q){return this._refinement((_,G)=>{if(!$(_))return G.addIssue(typeof q==="function"?q(_,G):q),!1;else return!0})}_refinement($){return new f({schema:this,typeName:j.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(q)=>this["~validate"](q)}}optional(){return D.create(this,this._def)}nullable(){return P.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return N.create(this)}promise(){return c.create(this,this._def)}or($){return a.create([this,$],this._def)}and($){return s.create(this,$,this._def)}transform($){return new f({...b(this._def),schema:this,typeName:j.ZodEffects,effect:{type:"transform",transform:$}})}default($){let q=typeof $==="function"?$:()=>$;return new q$({...b(this._def),innerType:this,defaultValue:q,typeName:j.ZodDefault})}brand(){return new E$({typeName:j.ZodBranded,type:this,...b(this._def)})}catch($){let q=typeof $==="function"?$:()=>$;return new _$({...b(this._def),innerType:this,catchValue:q,typeName:j.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return w$.create(this,$)}readonly(){return W$.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var F$=/^c[^\s-]{8,}$/i,K$=/^[0-9a-z]+$/,k$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,g$=/^[a-z0-9_-]{21}$/i,I$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,P$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,h$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,T$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",S$,l$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,x$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,m$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,y$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Z$=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,n$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,v$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",c$=new RegExp(`^${v$}$`);function L$($){let q="[0-5]\\d";if($.precision)q=`${q}\\.\\d{${$.precision}}`;else if($.precision==null)q=`${q}(\\.\\d+)?`;let _=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${q})${_}`}function u$($){return new RegExp(`^${L$($)}$`)}function p$($){let q=`${v$}T${L$($)}`,_=[];if(_.push($.local?"Z?":"Z"),$.offset)_.push("([+-]\\d{2}:?\\d{2})");return q=`${q}(${_.join("|")})`,new RegExp(`^${q}$`)}function i$($,q){if((q==="v4"||!q)&&l$.test($))return!0;if((q==="v6"||!q)&&m$.test($))return!0;return!1}function r$($,q){if(!I$.test($))return!1;try{let[_]=$.split(".");if(!_)return!1;let G=_.replace(/-/g,"+").replace(/_/g,"/").padEnd(_.length+(4-_.length%4)%4,"="),W=JSON.parse(atob(G));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if(q&&W.alg!==q)return!1;return!0}catch{return!1}}function o$($,q){if((q==="v4"||!q)&&x$.test($))return!0;if((q==="v6"||!q)&&y$.test($))return!0;return!1}class k extends O{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==Q.string){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_type,expected:Q.string,received:W.parsedType}),z}let _=new V,G=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.length<W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),_.dirty()}else if(W.kind==="max"){if($.data.length>W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),_.dirty()}else if(W.kind==="length"){let H=$.data.length>W.value,J=$.data.length<W.value;if(H||J){if(G=this._getOrReturnCtx($,G),H)B(G,{code:X.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(J)B(G,{code:X.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});_.dirty()}}else if(W.kind==="email"){if(!h$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"email",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="emoji"){if(!S$)S$=new RegExp(T$,"u");if(!S$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"emoji",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="uuid"){if(!C$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"uuid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="nanoid"){if(!g$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"nanoid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="cuid"){if(!F$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"cuid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="cuid2"){if(!K$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"cuid2",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="ulid"){if(!k$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"ulid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="url")try{new URL($.data)}catch{G=this._getOrReturnCtx($,G),B(G,{validation:"url",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"regex",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="trim")$.data=$.data.trim();else if(W.kind==="includes"){if(!$.data.includes(W.value,W.position))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),_.dirty()}else if(W.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(W.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(W.kind==="startsWith"){if(!$.data.startsWith(W.value))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:{startsWith:W.value},message:W.message}),_.dirty()}else if(W.kind==="endsWith"){if(!$.data.endsWith(W.value))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:{endsWith:W.value},message:W.message}),_.dirty()}else if(W.kind==="datetime"){if(!p$(W).test($.data))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:"datetime",message:W.message}),_.dirty()}else if(W.kind==="date"){if(!c$.test($.data))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:"date",message:W.message}),_.dirty()}else if(W.kind==="time"){if(!u$(W).test($.data))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:"time",message:W.message}),_.dirty()}else if(W.kind==="duration"){if(!P$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"duration",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="ip"){if(!i$($.data,W.version))G=this._getOrReturnCtx($,G),B(G,{validation:"ip",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="jwt"){if(!r$($.data,W.alg))G=this._getOrReturnCtx($,G),B(G,{validation:"jwt",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="cidr"){if(!o$($.data,W.version))G=this._getOrReturnCtx($,G),B(G,{validation:"cidr",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="base64"){if(!Z$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"base64",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="base64url"){if(!n$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"base64url",code:X.invalid_string,message:W.message}),_.dirty()}else R.assertNever(W);return{status:_.value,value:$.data}}_regex($,q,_){return this.refinement((G)=>$.test(G),{validation:q,code:X.invalid_string,...w.errToObj(_)})}_addCheck($){return new k({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...w.errToObj($)})}url($){return this._addCheck({kind:"url",...w.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...w.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...w.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...w.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...w.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...w.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...w.errToObj($)})}base64($){return this._addCheck({kind:"base64",...w.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...w.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...w.errToObj($)})}ip($){return this._addCheck({kind:"ip",...w.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...w.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...w.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...w.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...w.errToObj($)})}regex($,q){return this._addCheck({kind:"regex",regex:$,...w.errToObj(q)})}includes($,q){return this._addCheck({kind:"includes",value:$,position:q?.position,...w.errToObj(q?.message)})}startsWith($,q){return this._addCheck({kind:"startsWith",value:$,...w.errToObj(q)})}endsWith($,q){return this._addCheck({kind:"endsWith",value:$,...w.errToObj(q)})}min($,q){return this._addCheck({kind:"min",value:$,...w.errToObj(q)})}max($,q){return this._addCheck({kind:"max",value:$,...w.errToObj(q)})}length($,q){return this._addCheck({kind:"length",value:$,...w.errToObj(q)})}nonempty($){return this.min(1,w.errToObj($))}trim(){return new k({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new k({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new k({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxLength(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}}k.create=($)=>{return new k({checks:[],typeName:j.ZodString,coerce:$?.coerce??!1,...b($)})};function d$($,q){let _=($.toString().split(".")[1]||"").length,G=(q.toString().split(".")[1]||"").length,W=_>G?_:G,H=Number.parseInt($.toFixed(W).replace(".","")),J=Number.parseInt(q.toFixed(W).replace(".",""));return H%J/10**W}class y extends O{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==Q.number){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_type,expected:Q.number,received:W.parsedType}),z}let _=void 0,G=new V;for(let W of this._def.checks)if(W.kind==="int"){if(!R.isInteger($.data))_=this._getOrReturnCtx($,_),B(_,{code:X.invalid_type,expected:"integer",received:"float",message:W.message}),G.dirty()}else if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),G.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),G.dirty()}else if(W.kind==="multipleOf"){if(d$($.data,W.value)!==0)_=this._getOrReturnCtx($,_),B(_,{code:X.not_multiple_of,multipleOf:W.value,message:W.message}),G.dirty()}else if(W.kind==="finite"){if(!Number.isFinite($.data))_=this._getOrReturnCtx($,_),B(_,{code:X.not_finite,message:W.message}),G.dirty()}else R.assertNever(W);return{status:G.value,value:$.data}}gte($,q){return this.setLimit("min",$,!0,w.toString(q))}gt($,q){return this.setLimit("min",$,!1,w.toString(q))}lte($,q){return this.setLimit("max",$,!0,w.toString(q))}lt($,q){return this.setLimit("max",$,!1,w.toString(q))}setLimit($,q,_,G){return new y({...this._def,checks:[...this._def.checks,{kind:$,value:q,inclusive:_,message:w.toString(G)}]})}_addCheck($){return new y({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:w.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString($)})}multipleOf($,q){return this._addCheck({kind:"multipleOf",value:$,message:w.toString(q)})}finite($){return this._addCheck({kind:"finite",message:w.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString($)})}get minValue(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxValue(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&R.isInteger($.value))}get isFinite(){let $=null,q=null;for(let _ of this._def.checks)if(_.kind==="finite"||_.kind==="int"||_.kind==="multipleOf")return!0;else if(_.kind==="min"){if(q===null||_.value>q)q=_.value}else if(_.kind==="max"){if($===null||_.value<$)$=_.value}return Number.isFinite(q)&&Number.isFinite($)}}y.create=($)=>{return new y({checks:[],typeName:j.ZodNumber,coerce:$?.coerce||!1,...b($)})};class Z extends O{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==Q.bigint)return this._getInvalidInput($);let _=void 0,G=new V;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),G.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),G.dirty()}else if(W.kind==="multipleOf"){if($.data%W.value!==BigInt(0))_=this._getOrReturnCtx($,_),B(_,{code:X.not_multiple_of,multipleOf:W.value,message:W.message}),G.dirty()}else R.assertNever(W);return{status:G.value,value:$.data}}_getInvalidInput($){let q=this._getOrReturnCtx($);return B(q,{code:X.invalid_type,expected:Q.bigint,received:q.parsedType}),z}gte($,q){return this.setLimit("min",$,!0,w.toString(q))}gt($,q){return this.setLimit("min",$,!1,w.toString(q))}lte($,q){return this.setLimit("max",$,!0,w.toString(q))}lt($,q){return this.setLimit("max",$,!1,w.toString(q))}setLimit($,q,_,G){return new Z({...this._def,checks:[...this._def.checks,{kind:$,value:q,inclusive:_,message:w.toString(G)}]})}_addCheck($){return new Z({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString($)})}multipleOf($,q){return this._addCheck({kind:"multipleOf",value:$,message:w.toString(q)})}get minValue(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxValue(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}}Z.create=($)=>{return new Z({checks:[],typeName:j.ZodBigInt,coerce:$?.coerce??!1,...b($)})};class H$ extends O{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==Q.boolean){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.boolean,received:_.parsedType}),z}return U($.data)}}H$.create=($)=>{return new H$({typeName:j.ZodBoolean,coerce:$?.coerce||!1,...b($)})};class r extends O{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==Q.date){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_type,expected:Q.date,received:W.parsedType}),z}if(Number.isNaN($.data.getTime())){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_date}),z}let _=new V,G=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.getTime()<W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),_.dirty()}else if(W.kind==="max"){if($.data.getTime()>W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),_.dirty()}else R.assertNever(W);return{status:_.value,value:new Date($.data.getTime())}}_addCheck($){return new r({...this._def,checks:[...this._def.checks,$]})}min($,q){return this._addCheck({kind:"min",value:$.getTime(),message:w.toString(q)})}max($,q){return this._addCheck({kind:"max",value:$.getTime(),message:w.toString(q)})}get minDate(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $!=null?new Date($):null}}r.create=($)=>{return new r({checks:[],coerce:$?.coerce||!1,typeName:j.ZodDate,...b($)})};class J$ extends O{_parse($){if(this._getType($)!==Q.symbol){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.symbol,received:_.parsedType}),z}return U($.data)}}J$.create=($)=>{return new J$({typeName:j.ZodSymbol,...b($)})};class o extends O{_parse($){if(this._getType($)!==Q.undefined){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.undefined,received:_.parsedType}),z}return U($.data)}}o.create=($)=>{return new o({typeName:j.ZodUndefined,...b($)})};class d extends O{_parse($){if(this._getType($)!==Q.null){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.null,received:_.parsedType}),z}return U($.data)}}d.create=($)=>{return new d({typeName:j.ZodNull,...b($)})};class X$ extends O{constructor(){super(...arguments);this._any=!0}_parse($){return U($.data)}}X$.create=($)=>{return new X$({typeName:j.ZodAny,...b($)})};class T extends O{constructor(){super(...arguments);this._unknown=!0}_parse($){return U($.data)}}T.create=($)=>{return new T({typeName:j.ZodUnknown,...b($)})};class C extends O{_parse($){let q=this._getOrReturnCtx($);return B(q,{code:X.invalid_type,expected:Q.never,received:q.parsedType}),z}}C.create=($)=>{return new C({typeName:j.ZodNever,...b($)})};class Q$ extends O{_parse($){if(this._getType($)!==Q.undefined){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.void,received:_.parsedType}),z}return U($.data)}}Q$.create=($)=>{return new Q$({typeName:j.ZodVoid,...b($)})};class N extends O{_parse($){let{ctx:q,status:_}=this._processInputParams($),G=this._def;if(q.parsedType!==Q.array)return B(q,{code:X.invalid_type,expected:Q.array,received:q.parsedType}),z;if(G.exactLength!==null){let H=q.data.length>G.exactLength.value,J=q.data.length<G.exactLength.value;if(H||J)B(q,{code:H?X.too_big:X.too_small,minimum:J?G.exactLength.value:void 0,maximum:H?G.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:G.exactLength.message}),_.dirty()}if(G.minLength!==null){if(q.data.length<G.minLength.value)B(q,{code:X.too_small,minimum:G.minLength.value,type:"array",inclusive:!0,exact:!1,message:G.minLength.message}),_.dirty()}if(G.maxLength!==null){if(q.data.length>G.maxLength.value)B(q,{code:X.too_big,maximum:G.maxLength.value,type:"array",inclusive:!0,exact:!1,message:G.maxLength.message}),_.dirty()}if(q.common.async)return Promise.all([...q.data].map((H,J)=>{return G.type._parseAsync(new L(q,H,q.path,J))})).then((H)=>{return V.mergeArray(_,H)});let W=[...q.data].map((H,J)=>{return G.type._parseSync(new L(q,H,q.path,J))});return V.mergeArray(_,W)}get element(){return this._def.type}min($,q){return new N({...this._def,minLength:{value:$,message:w.toString(q)}})}max($,q){return new N({...this._def,maxLength:{value:$,message:w.toString(q)}})}length($,q){return new N({...this._def,exactLength:{value:$,message:w.toString(q)}})}nonempty($){return this.min(1,$)}}N.create=($,q)=>{return new N({type:$,minLength:null,maxLength:null,exactLength:null,typeName:j.ZodArray,...b(q)})};function m($){if($ instanceof E){let q={};for(let _ in $.shape){let G=$.shape[_];q[_]=D.create(m(G))}return new E({...$._def,shape:()=>q})}else if($ instanceof N)return new N({...$._def,type:m($.element)});else if($ instanceof D)return D.create(m($.unwrap()));else if($ instanceof P)return P.create(m($.unwrap()));else if($ instanceof g)return g.create($.items.map((q)=>m(q)));else return $}class E extends O{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),q=R.objectKeys($);return this._cached={shape:$,keys:q},this._cached}_parse($){if(this._getType($)!==Q.object){let M=this._getOrReturnCtx($);return B(M,{code:X.invalid_type,expected:Q.object,received:M.parsedType}),z}let{status:_,ctx:G}=this._processInputParams($),{shape:W,keys:H}=this._getCached(),J=[];if(!(this._def.catchall instanceof C&&this._def.unknownKeys==="strip")){for(let M in G.data)if(!H.includes(M))J.push(M)}let Y=[];for(let M of H){let S=W[M],v=G.data[M];Y.push({key:{status:"valid",value:M},value:S._parse(new L(G,v,G.path,M)),alwaysSet:M in G.data})}if(this._def.catchall instanceof C){let M=this._def.unknownKeys;if(M==="passthrough")for(let S of J)Y.push({key:{status:"valid",value:S},value:{status:"valid",value:G.data[S]}});else if(M==="strict"){if(J.length>0)B(G,{code:X.unrecognized_keys,keys:J}),_.dirty()}else if(M==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let M=this._def.catchall;for(let S of J){let v=G.data[S];Y.push({key:{status:"valid",value:S},value:M._parse(new L(G,v,G.path,S)),alwaysSet:S in G.data})}}if(G.common.async)return Promise.resolve().then(async()=>{let M=[];for(let S of Y){let v=await S.key,V$=await S.value;M.push({key:v,value:V$,alwaysSet:S.alwaysSet})}return M}).then((M)=>{return V.mergeObjectSync(_,M)});else return V.mergeObjectSync(_,Y)}get shape(){return this._def.shape()}strict($){return w.errToObj,new E({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(q,_)=>{let G=this._def.errorMap?.(q,_).message??_.defaultError;if(q.code==="unrecognized_keys")return{message:w.errToObj($).message??G};return{message:G}}}:{}})}strip(){return new E({...this._def,unknownKeys:"strip"})}passthrough(){return new E({...this._def,unknownKeys:"passthrough"})}extend($){return new E({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new E({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:j.ZodObject})}setKey($,q){return this.augment({[$]:q})}catchall($){return new E({...this._def,catchall:$})}pick($){let q={};for(let _ of R.objectKeys($))if($[_]&&this.shape[_])q[_]=this.shape[_];return new E({...this._def,shape:()=>q})}omit($){let q={};for(let _ of R.objectKeys(this.shape))if(!$[_])q[_]=this.shape[_];return new E({...this._def,shape:()=>q})}deepPartial(){return m(this)}partial($){let q={};for(let _ of R.objectKeys(this.shape)){let G=this.shape[_];if($&&!$[_])q[_]=G;else q[_]=G.optional()}return new E({...this._def,shape:()=>q})}required($){let q={};for(let _ of R.objectKeys(this.shape))if($&&!$[_])q[_]=this.shape[_];else{let W=this.shape[_];while(W instanceof D)W=W._def.innerType;q[_]=W}return new E({...this._def,shape:()=>q})}keyof(){return N$(R.objectKeys(this.shape))}}E.create=($,q)=>{return new E({shape:()=>$,unknownKeys:"strip",catchall:C.create(),typeName:j.ZodObject,...b(q)})};E.strictCreate=($,q)=>{return new E({shape:()=>$,unknownKeys:"strict",catchall:C.create(),typeName:j.ZodObject,...b(q)})};E.lazycreate=($,q)=>{return new E({shape:$,unknownKeys:"strip",catchall:C.create(),typeName:j.ZodObject,...b(q)})};class a extends O{_parse($){let{ctx:q}=this._processInputParams($),_=this._def.options;function G(W){for(let J of W)if(J.result.status==="valid")return J.result;for(let J of W)if(J.result.status==="dirty")return q.common.issues.push(...J.ctx.common.issues),J.result;let H=W.map((J)=>new A(J.ctx.common.issues));return B(q,{code:X.invalid_union,unionErrors:H}),z}if(q.common.async)return Promise.all(_.map(async(W)=>{let H={...q,common:{...q.common,issues:[]},parent:null};return{result:await W._parseAsync({data:q.data,path:q.path,parent:H}),ctx:H}})).then(G);else{let W=void 0,H=[];for(let Y of _){let M={...q,common:{...q.common,issues:[]},parent:null},S=Y._parseSync({data:q.data,path:q.path,parent:M});if(S.status==="valid")return S;else if(S.status==="dirty"&&!W)W={result:S,ctx:M};if(M.common.issues.length)H.push(M.common.issues)}if(W)return q.common.issues.push(...W.ctx.common.issues),W.result;let J=H.map((Y)=>new A(Y));return B(q,{code:X.invalid_union,unionErrors:J}),z}}get options(){return this._def.options}}a.create=($,q)=>{return new a({options:$,typeName:j.ZodUnion,...b(q)})};var K=($)=>{if($ instanceof t)return K($.schema);else if($ instanceof f)return K($.innerType());else if($ instanceof e)return[$.value];else if($ instanceof l)return $.options;else if($ instanceof $$)return R.objectValues($.enum);else if($ instanceof q$)return K($._def.innerType);else if($ instanceof o)return[void 0];else if($ instanceof d)return[null];else if($ instanceof D)return[void 0,...K($.unwrap())];else if($ instanceof P)return[null,...K($.unwrap())];else if($ instanceof E$)return K($.unwrap());else if($ instanceof W$)return K($.unwrap());else if($ instanceof _$)return K($._def.innerType);else return[]};class R$ extends O{_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==Q.object)return B(q,{code:X.invalid_type,expected:Q.object,received:q.parsedType}),z;let _=this.discriminator,G=q.data[_],W=this.optionsMap.get(G);if(!W)return B(q,{code:X.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[_]}),z;if(q.common.async)return W._parseAsync({data:q.data,path:q.path,parent:q});else return W._parseSync({data:q.data,path:q.path,parent:q})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,q,_){let G=new Map;for(let W of q){let H=K(W.shape[$]);if(!H.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let J of H){if(G.has(J))throw Error(`Discriminator property ${String($)} has duplicate value ${String(J)}`);G.set(J,W)}}return new R$({typeName:j.ZodDiscriminatedUnion,discriminator:$,options:q,optionsMap:G,...b(_)})}}function O$($,q){let _=F($),G=F(q);if($===q)return{valid:!0,data:$};else if(_===Q.object&&G===Q.object){let W=R.objectKeys(q),H=R.objectKeys($).filter((Y)=>W.indexOf(Y)!==-1),J={...$,...q};for(let Y of H){let M=O$($[Y],q[Y]);if(!M.valid)return{valid:!1};J[Y]=M.data}return{valid:!0,data:J}}else if(_===Q.array&&G===Q.array){if($.length!==q.length)return{valid:!1};let W=[];for(let H=0;H<$.length;H++){let J=$[H],Y=q[H],M=O$(J,Y);if(!M.valid)return{valid:!1};W.push(M.data)}return{valid:!0,data:W}}else if(_===Q.date&&G===Q.date&&+$===+q)return{valid:!0,data:$};else return{valid:!1}}class s extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($),G=(W,H)=>{if(j$(W)||j$(H))return z;let J=O$(W.value,H.value);if(!J.valid)return B(_,{code:X.invalid_intersection_types}),z;if(b$(W)||b$(H))q.dirty();return{status:q.value,value:J.data}};if(_.common.async)return Promise.all([this._def.left._parseAsync({data:_.data,path:_.path,parent:_}),this._def.right._parseAsync({data:_.data,path:_.path,parent:_})]).then(([W,H])=>G(W,H));else return G(this._def.left._parseSync({data:_.data,path:_.path,parent:_}),this._def.right._parseSync({data:_.data,path:_.path,parent:_}))}}s.create=($,q,_)=>{return new s({left:$,right:q,typeName:j.ZodIntersection,...b(_)})};class g extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.array)return B(_,{code:X.invalid_type,expected:Q.array,received:_.parsedType}),z;if(_.data.length<this._def.items.length)return B(_,{code:X.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z;if(!this._def.rest&&_.data.length>this._def.items.length)B(_,{code:X.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),q.dirty();let W=[..._.data].map((H,J)=>{let Y=this._def.items[J]||this._def.rest;if(!Y)return null;return Y._parse(new L(_,H,_.path,J))}).filter((H)=>!!H);if(_.common.async)return Promise.all(W).then((H)=>{return V.mergeArray(q,H)});else return V.mergeArray(q,W)}get items(){return this._def.items}rest($){return new g({...this._def,rest:$})}}g.create=($,q)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new g({items:$,typeName:j.ZodTuple,rest:null,...b(q)})};class Y$ extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.object)return B(_,{code:X.invalid_type,expected:Q.object,received:_.parsedType}),z;let G=[],W=this._def.keyType,H=this._def.valueType;for(let J in _.data)G.push({key:W._parse(new L(_,J,_.path,J)),value:H._parse(new L(_,_.data[J],_.path,J)),alwaysSet:J in _.data});if(_.common.async)return V.mergeObjectAsync(q,G);else return V.mergeObjectSync(q,G)}get element(){return this._def.valueType}static create($,q,_){if(q instanceof O)return new Y$({keyType:$,valueType:q,typeName:j.ZodRecord,...b(_)});return new Y$({keyType:k.create(),valueType:$,typeName:j.ZodRecord,...b(q)})}}class M$ extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.map)return B(_,{code:X.invalid_type,expected:Q.map,received:_.parsedType}),z;let G=this._def.keyType,W=this._def.valueType,H=[..._.data.entries()].map(([J,Y],M)=>{return{key:G._parse(new L(_,J,_.path,[M,"key"])),value:W._parse(new L(_,Y,_.path,[M,"value"]))}});if(_.common.async){let J=new Map;return Promise.resolve().then(async()=>{for(let Y of H){let M=await Y.key,S=await Y.value;if(M.status==="aborted"||S.status==="aborted")return z;if(M.status==="dirty"||S.status==="dirty")q.dirty();J.set(M.value,S.value)}return{status:q.value,value:J}})}else{let J=new Map;for(let Y of H){let{key:M,value:S}=Y;if(M.status==="aborted"||S.status==="aborted")return z;if(M.status==="dirty"||S.status==="dirty")q.dirty();J.set(M.value,S.value)}return{status:q.value,value:J}}}}M$.create=($,q,_)=>{return new M$({valueType:q,keyType:$,typeName:j.ZodMap,...b(_)})};class n extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.set)return B(_,{code:X.invalid_type,expected:Q.set,received:_.parsedType}),z;let G=this._def;if(G.minSize!==null){if(_.data.size<G.minSize.value)B(_,{code:X.too_small,minimum:G.minSize.value,type:"set",inclusive:!0,exact:!1,message:G.minSize.message}),q.dirty()}if(G.maxSize!==null){if(_.data.size>G.maxSize.value)B(_,{code:X.too_big,maximum:G.maxSize.value,type:"set",inclusive:!0,exact:!1,message:G.maxSize.message}),q.dirty()}let W=this._def.valueType;function H(Y){let M=new Set;for(let S of Y){if(S.status==="aborted")return z;if(S.status==="dirty")q.dirty();M.add(S.value)}return{status:q.value,value:M}}let J=[..._.data.values()].map((Y,M)=>W._parse(new L(_,Y,_.path,M)));if(_.common.async)return Promise.all(J).then((Y)=>H(Y));else return H(J)}min($,q){return new n({...this._def,minSize:{value:$,message:w.toString(q)}})}max($,q){return new n({...this._def,maxSize:{value:$,message:w.toString(q)}})}size($,q){return this.min($,q).max($,q)}nonempty($){return this.min(1,$)}}n.create=($,q)=>{return new n({valueType:$,minSize:null,maxSize:null,typeName:j.ZodSet,...b(q)})};class i extends O{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==Q.function)return B(q,{code:X.invalid_type,expected:Q.function,received:q.parsedType}),z;function _(J,Y){return G$({data:J,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,u(),I].filter((M)=>!!M),issueData:{code:X.invalid_arguments,argumentsError:Y}})}function G(J,Y){return G$({data:J,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,u(),I].filter((M)=>!!M),issueData:{code:X.invalid_return_type,returnTypeError:Y}})}let W={errorMap:q.common.contextualErrorMap},H=q.data;if(this._def.returns instanceof c){let J=this;return U(async function(...Y){let M=new A([]),S=await J._def.args.parseAsync(Y,W).catch((z$)=>{throw M.addIssue(_(Y,z$)),M}),v=await Reflect.apply(H,this,S);return await J._def.returns._def.type.parseAsync(v,W).catch((z$)=>{throw M.addIssue(G(v,z$)),M})})}else{let J=this;return U(function(...Y){let M=J._def.args.safeParse(Y,W);if(!M.success)throw new A([_(Y,M.error)]);let S=Reflect.apply(H,this,M.data),v=J._def.returns.safeParse(S,W);if(!v.success)throw new A([G(S,v.error)]);return v.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new i({...this._def,args:g.create($).rest(T.create())})}returns($){return new i({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,q,_){return new i({args:$?$:g.create([]).rest(T.create()),returns:q||T.create(),typeName:j.ZodFunction,...b(_)})}}class t extends O{get schema(){return this._def.getter()}_parse($){let{ctx:q}=this._processInputParams($);return this._def.getter()._parse({data:q.data,path:q.path,parent:q})}}t.create=($,q)=>{return new t({getter:$,typeName:j.ZodLazy,...b(q)})};class e extends O{_parse($){if($.data!==this._def.value){let q=this._getOrReturnCtx($);return B(q,{received:q.data,code:X.invalid_literal,expected:this._def.value}),z}return{status:"valid",value:$.data}}get value(){return this._def.value}}e.create=($,q)=>{return new e({value:$,typeName:j.ZodLiteral,...b(q)})};function N$($,q){return new l({values:$,typeName:j.ZodEnum,...b(q)})}class l extends O{_parse($){if(typeof $.data!=="string"){let q=this._getOrReturnCtx($),_=this._def.values;return B(q,{expected:R.joinValues(_),received:q.parsedType,code:X.invalid_type}),z}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let q=this._getOrReturnCtx($),_=this._def.values;return B(q,{received:q.data,code:X.invalid_enum_value,options:_}),z}return U($.data)}get options(){return this._def.values}get enum(){let $={};for(let q of this._def.values)$[q]=q;return $}get Values(){let $={};for(let q of this._def.values)$[q]=q;return $}get Enum(){let $={};for(let q of this._def.values)$[q]=q;return $}extract($,q=this._def){return l.create($,{...this._def,...q})}exclude($,q=this._def){return l.create(this.options.filter((_)=>!$.includes(_)),{...this._def,...q})}}l.create=N$;class $$ extends O{_parse($){let q=R.getValidEnumValues(this._def.values),_=this._getOrReturnCtx($);if(_.parsedType!==Q.string&&_.parsedType!==Q.number){let G=R.objectValues(q);return B(_,{expected:R.joinValues(G),received:_.parsedType,code:X.invalid_type}),z}if(!this._cache)this._cache=new Set(R.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let G=R.objectValues(q);return B(_,{received:_.data,code:X.invalid_enum_value,options:G}),z}return U($.data)}get enum(){return this._def.values}}$$.create=($,q)=>{return new $$({values:$,typeName:j.ZodNativeEnum,...b(q)})};class c extends O{unwrap(){return this._def.type}_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==Q.promise&&q.common.async===!1)return B(q,{code:X.invalid_type,expected:Q.promise,received:q.parsedType}),z;let _=q.parsedType===Q.promise?q.data:Promise.resolve(q.data);return U(_.then((G)=>{return this._def.type.parseAsync(G,{path:q.path,errorMap:q.common.contextualErrorMap})}))}}c.create=($,q)=>{return new c({type:$,typeName:j.ZodPromise,...b(q)})};class f extends O{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===j.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:q,ctx:_}=this._processInputParams($),G=this._def.effect||null,W={addIssue:(H)=>{if(B(_,H),H.fatal)q.abort();else q.dirty()},get path(){return _.path}};if(W.addIssue=W.addIssue.bind(W),G.type==="preprocess"){let H=G.transform(_.data,W);if(_.common.async)return Promise.resolve(H).then(async(J)=>{if(q.value==="aborted")return z;let Y=await this._def.schema._parseAsync({data:J,path:_.path,parent:_});if(Y.status==="aborted")return z;if(Y.status==="dirty")return x(Y.value);if(q.value==="dirty")return x(Y.value);return Y});else{if(q.value==="aborted")return z;let J=this._def.schema._parseSync({data:H,path:_.path,parent:_});if(J.status==="aborted")return z;if(J.status==="dirty")return x(J.value);if(q.value==="dirty")return x(J.value);return J}}if(G.type==="refinement"){let H=(J)=>{let Y=G.refinement(J,W);if(_.common.async)return Promise.resolve(Y);if(Y instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return J};if(_.common.async===!1){let J=this._def.schema._parseSync({data:_.data,path:_.path,parent:_});if(J.status==="aborted")return z;if(J.status==="dirty")q.dirty();return H(J.value),{status:q.value,value:J.value}}else return this._def.schema._parseAsync({data:_.data,path:_.path,parent:_}).then((J)=>{if(J.status==="aborted")return z;if(J.status==="dirty")q.dirty();return H(J.value).then(()=>{return{status:q.value,value:J.value}})})}if(G.type==="transform")if(_.common.async===!1){let H=this._def.schema._parseSync({data:_.data,path:_.path,parent:_});if(!h(H))return z;let J=G.transform(H.value,W);if(J instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:q.value,value:J}}else return this._def.schema._parseAsync({data:_.data,path:_.path,parent:_}).then((H)=>{if(!h(H))return z;return Promise.resolve(G.transform(H.value,W)).then((J)=>({status:q.value,value:J}))});R.assertNever(G)}}f.create=($,q,_)=>{return new f({schema:$,typeName:j.ZodEffects,effect:q,...b(_)})};f.createWithPreprocess=($,q,_)=>{return new f({schema:q,effect:{type:"preprocess",transform:$},typeName:j.ZodEffects,...b(_)})};class D extends O{_parse($){if(this._getType($)===Q.undefined)return U(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}D.create=($,q)=>{return new D({innerType:$,typeName:j.ZodOptional,...b(q)})};class P extends O{_parse($){if(this._getType($)===Q.null)return U(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}P.create=($,q)=>{return new P({innerType:$,typeName:j.ZodNullable,...b(q)})};class q$ extends O{_parse($){let{ctx:q}=this._processInputParams($),_=q.data;if(q.parsedType===Q.undefined)_=this._def.defaultValue();return this._def.innerType._parse({data:_,path:q.path,parent:q})}removeDefault(){return this._def.innerType}}q$.create=($,q)=>{return new q$({innerType:$,typeName:j.ZodDefault,defaultValue:typeof q.default==="function"?q.default:()=>q.default,...b(q)})};class _$ extends O{_parse($){let{ctx:q}=this._processInputParams($),_={...q,common:{...q.common,issues:[]}},G=this._def.innerType._parse({data:_.data,path:_.path,parent:{..._}});if(p(G))return G.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new A(_.common.issues)},input:_.data})}});else return{status:"valid",value:G.status==="valid"?G.value:this._def.catchValue({get error(){return new A(_.common.issues)},input:_.data})}}removeCatch(){return this._def.innerType}}_$.create=($,q)=>{return new _$({innerType:$,typeName:j.ZodCatch,catchValue:typeof q.catch==="function"?q.catch:()=>q.catch,...b(q)})};class B$ extends O{_parse($){if(this._getType($)!==Q.nan){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.nan,received:_.parsedType}),z}return{status:"valid",value:$.data}}}B$.create=($)=>{return new B$({typeName:j.ZodNaN,...b($)})};var zq=Symbol("zod_brand");class E$ extends O{_parse($){let{ctx:q}=this._processInputParams($),_=q.data;return this._def.type._parse({data:_,path:q.path,parent:q})}unwrap(){return this._def.type}}class w$ extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:_.data,path:_.path,parent:_});if(W.status==="aborted")return z;if(W.status==="dirty")return q.dirty(),x(W.value);else return this._def.out._parseAsync({data:W.value,path:_.path,parent:_})})();else{let G=this._def.in._parseSync({data:_.data,path:_.path,parent:_});if(G.status==="aborted")return z;if(G.status==="dirty")return q.dirty(),{status:"dirty",value:G.value};else return this._def.out._parseSync({data:G.value,path:_.path,parent:_})}}static create($,q){return new w$({in:$,out:q,typeName:j.ZodPipeline})}}class W$ extends O{_parse($){let q=this._def.innerType._parse($),_=(G)=>{if(h(G))G.value=Object.freeze(G.value);return G};return p(q)?q.then((G)=>_(G)):_(q)}unwrap(){return this._def.innerType}}W$.create=($,q)=>{return new W$({innerType:$,typeName:j.ZodReadonly,...b(q)})};var jq={object:E.lazycreate},j;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(j||(j={}));var bq=k.create,Sq=y.create,Oq=B$.create,Rq=Z.create,Eq=H$.create,Vq=r.create,Uq=J$.create,Aq=o.create,vq=d.create,Lq=X$.create,Nq=T.create,Dq=C.create,fq=Q$.create,Fq=N.create,Kq=E.create,kq=E.strictCreate,Cq=a.create,gq=R$.create,Iq=s.create,Pq=g.create,hq=Y$.create,Tq=M$.create,lq=n.create,xq=i.create,mq=t.create,yq=e.create,Zq=l.create,nq=$$.create,cq=c.create,uq=f.create,pq=D.create,iq=P.create,rq=f.createWithPreprocess,oq=w$.create;
3
- export{j as jr};
3
+ export{j as Ir};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{te as u}from"./chunk-5jtd006j.js";import{Ae as S,ze as m}from"./chunk-z4ae6jmb.js";import{Be as C}from"./chunk-xak2r993.js";import{vf as h}from"./chunk-5ymj2q6j.js";import{DP as R}from"./chunk-s2za1y84.js";var WB=R((s)=>{var H=C(),K=m(),V=h(),v=S(),q=u(),b=(B)=>H.HttpResponse.isInstance(B)?B.headers?.date??B.headers?.Date:void 0,I=(B)=>new Date(Date.now()+B),P=(B,J)=>Math.abs(I(J).getTime()-B)>=300000,A=(B,J)=>{let Q=Date.parse(B);if(P(Q,J))return Q-Date.now();return J},M=(B,J)=>{if(!J)throw Error(`Property \`${B}\` is not resolved for AWS SDK SigV4Auth`);return J},w=async(B)=>{let J=M("context",B.context),Q=M("config",B.config),L=J.endpointV2?.properties?.authSchemes?.[0],z=await M("signer",Q.signer)(L),j=B?.signingRegion,Z=B?.signingRegionSet,Y=B?.signingName;return{config:Q,signer:z,signingRegion:j,signingRegionSet:Z,signingName:Y}};class D{async sign(B,J,Q){if(!H.HttpRequest.isInstance(B))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let L=await w(Q),{config:$,signer:z}=L,{signingRegion:j,signingName:Z}=L,Y=Q.context;if(Y?.authSchemes?.length??!1){let[G,X]=Y.authSchemes;if(G?.name==="sigv4a"&&X?.name==="sigv4")j=X?.signingRegion??j,Z=X?.signingName??Z}return await z.sign(B,{signingDate:I($.systemClockOffset),signingRegion:j,signingService:Z})}errorHandler(B){return(J)=>{let Q=J.ServerTime??b(J.$response);if(Q){let L=M("config",B.config),$=L.systemClockOffset;if(L.systemClockOffset=A(Q,L.systemClockOffset),L.systemClockOffset!==$&&J.$metadata)J.$metadata.clockSkewCorrected=!0}throw J}}successHandler(B,J){let Q=b(B);if(Q){let L=M("config",J.config);L.systemClockOffset=A(Q,L.systemClockOffset)}}}var p=D;class _ extends D{async sign(B,J,Q){if(!H.HttpRequest.isInstance(B))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:L,signer:$,signingRegion:z,signingRegionSet:j,signingName:Z}=await w(Q),W=(await L.sigv4aSigningRegionSet?.()??j??[z]).join(",");return await $.sign(B,{signingDate:I(L.systemClockOffset),signingRegion:W,signingService:Z})}}var T=(B)=>typeof B==="string"&&B.length>0?B.split(",").map((J)=>J.trim()):[],O=(B)=>`AWS_BEARER_TOKEN_${B.replace(/[\s-]/g,"_").toUpperCase()}`,N="AWS_AUTH_SCHEME_PREFERENCE",y="auth_scheme_preference",l={environmentVariableSelector:(B,J)=>{if(J?.signingName){if(O(J.signingName)in B)return["httpBearerAuth"]}if(!(N in B))return;return T(B[N])},configFileSelector:(B)=>{if(!(y in B))return;return T(B[y])},default:[]},a=(B)=>{return B.sigv4aSigningRegionSet=K.normalizeProvider(B.sigv4aSigningRegionSet),B},d={environmentVariableSelector(B){if(B.AWS_SIGV4A_SIGNING_REGION_SET)return B.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((J)=>J.trim());throw new V.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(B){if(B.sigv4a_signing_region_set)return(B.sigv4a_signing_region_set??"").split(",").map((J)=>J.trim());throw new V.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},E=(B)=>{let J=B.credentials,Q=!!B.credentials,L=void 0;Object.defineProperty(B,"credentials",{set(W){if(W&&W!==J&&W!==L)Q=!0;J=W;let G=c(B,{credentials:J,credentialDefaultProvider:B.credentialDefaultProvider}),X=t(B,G);if(Q&&!X.attributed){let F=typeof J==="object"&&J!==null;L=async(U)=>{let x=await X(U);if(F&&(!x.$source||Object.keys(x.$source).length===0))return v.setCredentialFeature(x,"CREDENTIALS_CODE","e");return x},L.memoized=X.memoized,L.configBound=X.configBound,L.attributed=!0}else L=X},get(){return L},enumerable:!0,configurable:!0}),B.credentials=J;let{signingEscapePath:$=!0,systemClockOffset:z=B.systemClockOffset||0,sha256:j}=B,Z;if(B.signer)Z=K.normalizeProvider(B.signer);else if(B.regionInfoProvider)Z=()=>K.normalizeProvider(B.region)().then(async(W)=>[await B.regionInfoProvider(W,{useFipsEndpoint:await B.useFipsEndpoint(),useDualstackEndpoint:await B.useDualstackEndpoint()})||{},W]).then(([W,G])=>{let{signingRegion:X,signingService:F}=W;B.signingRegion=B.signingRegion||X||G,B.signingName=B.signingName||F||B.serviceId;let U={...B,credentials:B.credentials,region:B.signingRegion,service:B.signingName,sha256:j,uriEscapePath:$};return new(B.signerConstructor||q.SignatureV4)(U)});else Z=async(W)=>{W=Object.assign({},{name:"sigv4",signingName:B.signingName||B.defaultSigningName,signingRegion:await K.normalizeProvider(B.region)(),properties:{}},W);let{signingRegion:G,signingName:X}=W;B.signingRegion=B.signingRegion||G,B.signingName=B.signingName||X||B.serviceId;let F={...B,credentials:B.credentials,region:B.signingRegion,service:B.signingName,sha256:j,uriEscapePath:$};return new(B.signerConstructor||q.SignatureV4)(F)};return Object.assign(B,{systemClockOffset:z,signingEscapePath:$,signer:Z})},f=E;function c(B,{credentials:J,credentialDefaultProvider:Q}){let L;if(J)if(!J?.memoized)L=K.memoizeIdentityProvider(J,K.isIdentityExpired,K.doesIdentityRequireRefresh);else L=J;else if(Q)L=K.normalizeProvider(Q(Object.assign({},B,{parentClientConfig:B})));else L=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return L.memoized=!0,L}function t(B,J){if(J.configBound)return J;let Q=async(L)=>J({...L,callerClientConfig:B});return Q.memoized=J.memoized,Q.configBound=!0,Q}s.AWSSDKSigV4Signer=p;s.AwsSdkSigV4ASigner=_;s.AwsSdkSigV4Signer=D;s.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=l;s.NODE_SIGV4A_CONFIG_OPTIONS=d;s.getBearerTokenEnvKey=O;s.resolveAWSSDKSigV4Config=f;s.resolveAwsSdkSigV4AConfig=a;s.resolveAwsSdkSigV4Config=E;s.validateSigningProperties=w});
3
- export{WB as se};
2
+ import{ue as u}from"./chunk-37n34pzd.js";import{Ae as m,Be as S}from"./chunk-j9pcnkkq.js";import{Ce as C}from"./chunk-dq9kpj4a.js";import{wf as h}from"./chunk-cvdxgsq1.js";import{aQ as R}from"./chunk-aztre27e.js";var WB=R((s)=>{var H=C(),K=m(),V=h(),v=S(),q=u(),b=(B)=>H.HttpResponse.isInstance(B)?B.headers?.date??B.headers?.Date:void 0,I=(B)=>new Date(Date.now()+B),P=(B,J)=>Math.abs(I(J).getTime()-B)>=300000,A=(B,J)=>{let Q=Date.parse(B);if(P(Q,J))return Q-Date.now();return J},M=(B,J)=>{if(!J)throw Error(`Property \`${B}\` is not resolved for AWS SDK SigV4Auth`);return J},w=async(B)=>{let J=M("context",B.context),Q=M("config",B.config),L=J.endpointV2?.properties?.authSchemes?.[0],z=await M("signer",Q.signer)(L),j=B?.signingRegion,Z=B?.signingRegionSet,Y=B?.signingName;return{config:Q,signer:z,signingRegion:j,signingRegionSet:Z,signingName:Y}};class D{async sign(B,J,Q){if(!H.HttpRequest.isInstance(B))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let L=await w(Q),{config:$,signer:z}=L,{signingRegion:j,signingName:Z}=L,Y=Q.context;if(Y?.authSchemes?.length??!1){let[G,X]=Y.authSchemes;if(G?.name==="sigv4a"&&X?.name==="sigv4")j=X?.signingRegion??j,Z=X?.signingName??Z}return await z.sign(B,{signingDate:I($.systemClockOffset),signingRegion:j,signingService:Z})}errorHandler(B){return(J)=>{let Q=J.ServerTime??b(J.$response);if(Q){let L=M("config",B.config),$=L.systemClockOffset;if(L.systemClockOffset=A(Q,L.systemClockOffset),L.systemClockOffset!==$&&J.$metadata)J.$metadata.clockSkewCorrected=!0}throw J}}successHandler(B,J){let Q=b(B);if(Q){let L=M("config",J.config);L.systemClockOffset=A(Q,L.systemClockOffset)}}}var p=D;class _ extends D{async sign(B,J,Q){if(!H.HttpRequest.isInstance(B))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:L,signer:$,signingRegion:z,signingRegionSet:j,signingName:Z}=await w(Q),W=(await L.sigv4aSigningRegionSet?.()??j??[z]).join(",");return await $.sign(B,{signingDate:I(L.systemClockOffset),signingRegion:W,signingService:Z})}}var T=(B)=>typeof B==="string"&&B.length>0?B.split(",").map((J)=>J.trim()):[],O=(B)=>`AWS_BEARER_TOKEN_${B.replace(/[\s-]/g,"_").toUpperCase()}`,N="AWS_AUTH_SCHEME_PREFERENCE",y="auth_scheme_preference",l={environmentVariableSelector:(B,J)=>{if(J?.signingName){if(O(J.signingName)in B)return["httpBearerAuth"]}if(!(N in B))return;return T(B[N])},configFileSelector:(B)=>{if(!(y in B))return;return T(B[y])},default:[]},a=(B)=>{return B.sigv4aSigningRegionSet=K.normalizeProvider(B.sigv4aSigningRegionSet),B},d={environmentVariableSelector(B){if(B.AWS_SIGV4A_SIGNING_REGION_SET)return B.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((J)=>J.trim());throw new V.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(B){if(B.sigv4a_signing_region_set)return(B.sigv4a_signing_region_set??"").split(",").map((J)=>J.trim());throw new V.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},E=(B)=>{let J=B.credentials,Q=!!B.credentials,L=void 0;Object.defineProperty(B,"credentials",{set(W){if(W&&W!==J&&W!==L)Q=!0;J=W;let G=c(B,{credentials:J,credentialDefaultProvider:B.credentialDefaultProvider}),X=t(B,G);if(Q&&!X.attributed){let F=typeof J==="object"&&J!==null;L=async(U)=>{let x=await X(U);if(F&&(!x.$source||Object.keys(x.$source).length===0))return v.setCredentialFeature(x,"CREDENTIALS_CODE","e");return x},L.memoized=X.memoized,L.configBound=X.configBound,L.attributed=!0}else L=X},get(){return L},enumerable:!0,configurable:!0}),B.credentials=J;let{signingEscapePath:$=!0,systemClockOffset:z=B.systemClockOffset||0,sha256:j}=B,Z;if(B.signer)Z=K.normalizeProvider(B.signer);else if(B.regionInfoProvider)Z=()=>K.normalizeProvider(B.region)().then(async(W)=>[await B.regionInfoProvider(W,{useFipsEndpoint:await B.useFipsEndpoint(),useDualstackEndpoint:await B.useDualstackEndpoint()})||{},W]).then(([W,G])=>{let{signingRegion:X,signingService:F}=W;B.signingRegion=B.signingRegion||X||G,B.signingName=B.signingName||F||B.serviceId;let U={...B,credentials:B.credentials,region:B.signingRegion,service:B.signingName,sha256:j,uriEscapePath:$};return new(B.signerConstructor||q.SignatureV4)(U)});else Z=async(W)=>{W=Object.assign({},{name:"sigv4",signingName:B.signingName||B.defaultSigningName,signingRegion:await K.normalizeProvider(B.region)(),properties:{}},W);let{signingRegion:G,signingName:X}=W;B.signingRegion=B.signingRegion||G,B.signingName=B.signingName||X||B.serviceId;let F={...B,credentials:B.credentials,region:B.signingRegion,service:B.signingName,sha256:j,uriEscapePath:$};return new(B.signerConstructor||q.SignatureV4)(F)};return Object.assign(B,{systemClockOffset:z,signingEscapePath:$,signer:Z})},f=E;function c(B,{credentials:J,credentialDefaultProvider:Q}){let L;if(J)if(!J?.memoized)L=K.memoizeIdentityProvider(J,K.isIdentityExpired,K.doesIdentityRequireRefresh);else L=J;else if(Q)L=K.normalizeProvider(Q(Object.assign({},B,{parentClientConfig:B})));else L=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return L.memoized=!0,L}function t(B,J){if(J.configBound)return J;let Q=async(L)=>J({...L,callerClientConfig:B});return Q.memoized=J.memoized,Q.configBound=!0,Q}s.AWSSDKSigV4Signer=p;s.AwsSdkSigV4ASigner=_;s.AwsSdkSigV4Signer=D;s.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=l;s.NODE_SIGV4A_CONFIG_OPTIONS=d;s.getBearerTokenEnvKey=O;s.resolveAWSSDKSigV4Config=f;s.resolveAwsSdkSigV4AConfig=a;s.resolveAwsSdkSigV4Config=E;s.validateSigningProperties=w});
3
+ export{WB as te};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Pr as z,Sr as B}from"./chunk-d2n09yvh.js";import{Ht as D}from"./chunk-08y06vgt.js";import{Zz as r}from"./chunk-tedrfa7d.js";import{AD as x,PF as R,qI as W}from"./chunk-ynfbz3sz.js";var w=x.Reference("~qitqode/InstanceRef",{defaultValue:()=>{return}}),C=x.Reference("~qitqode/WorkspaceRef",{defaultValue:()=>{return}});var V=D.create("instance"),y={async provide(p){return V.provide({workspaceID:p.workspaceID},()=>p.fn())},restore(p,o){return V.provide({workspaceID:p},o)},get workspaceID(){try{return V.use().workspaceID}catch{return}}};var j;function U(p){j=p}function P(){if(!j)throw new D.NotFound("instance");return j()}function H(p,o){if(!o.instance&&!o.workspace)return p;if(!o.instance)return p.pipe(W.provideService(C,o.workspace));if(!o.workspace)return p.pipe(W.provideService(w,o.instance));return p.pipe(W.provideService(w,o.instance),W.provideService(C,o.workspace))}function d(p){try{return H(p,{instance:P(),workspace:y.workspaceID})}catch(o){if(!(o instanceof D.NotFound))throw o}return p}function F(p,o){let G,I=()=>G??=r.make(R.provideMerge(o,z),{memoMap:B});return{runSync:(k)=>I().runSync(d(p.use(k))),runPromiseExit:(k,q)=>I().runPromiseExit(d(p.use(k)),q),runPromise:(k,q)=>I().runPromise(d(p.use(k)),q),runFork:(k)=>I().runFork(d(p.use(k))),runCallback:(k)=>I().runCallback(d(p.use(k)))}}
3
- export{w as Gr,C as Hr,y as Ir,U as Jr,H as Kr,d as Lr,F as Mr};
2
+ import{ms as z,ps as B}from"./chunk-x1rx6fm7.js";import{eu as D}from"./chunk-ebrt1me3.js";import{wA as r}from"./chunk-phxrg7aw.js";import{PI as W,ZD as x,mG as R}from"./chunk-snm5q21k.js";var w=x.Reference("~qitqode/InstanceRef",{defaultValue:()=>{return}}),C=x.Reference("~qitqode/WorkspaceRef",{defaultValue:()=>{return}});var V=D.create("instance"),y={async provide(p){return V.provide({workspaceID:p.workspaceID},()=>p.fn())},restore(p,o){return V.provide({workspaceID:p},o)},get workspaceID(){try{return V.use().workspaceID}catch{return}}};var j;function U(p){j=p}function P(){if(!j)throw new D.NotFound("instance");return j()}function H(p,o){if(!o.instance&&!o.workspace)return p;if(!o.instance)return p.pipe(W.provideService(C,o.workspace));if(!o.workspace)return p.pipe(W.provideService(w,o.instance));return p.pipe(W.provideService(w,o.instance),W.provideService(C,o.workspace))}function d(p){try{return H(p,{instance:P(),workspace:y.workspaceID})}catch(o){if(!(o instanceof D.NotFound))throw o}return p}function F(p,o){let G,I=()=>G??=r.make(R.provideMerge(o,z),{memoMap:B});return{runSync:(k)=>I().runSync(d(p.use(k))),runPromiseExit:(k,q)=>I().runPromiseExit(d(p.use(k)),q),runPromise:(k,q)=>I().runPromise(d(p.use(k)),q),runFork:(k)=>I().runFork(d(p.use(k))),runCallback:(k)=>I().runCallback(d(p.use(k)))}}
3
+ export{w as ds,C as es,y as fs,U as gs,H as hs,d as is,F as js};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Ws as X}from"./chunk-08y06vgt.js";function D(j){return j.parserConfiguration({"populate--":!0}).scriptName("qitqode").wrap(100).help("help","show help").alias("help","h").version("version","show version number",X).alias("version","v").option("print-logs",{describe:"print logs to stderr",type:"boolean"}).option("log-level",{describe:"log level",type:"string",choices:["DEBUG","INFO","WARN","ERROR"]}).option("pure",{describe:"run without external plugins",type:"boolean"})}var H={port:{type:"number",describe:"port to listen on",default:0},hostname:{type:"string",describe:"hostname to listen on",default:"127.0.0.1"},mdns:{type:"boolean",describe:"enable mDNS service discovery (defaults hostname to 0.0.0.0)",default:!1},"mdns-domain":{type:"string",describe:"custom domain name for mDNS service (default: qitqode.local)",default:"qitqode.local"},cors:{type:"string",array:!0,describe:"additional domains to allow for CORS",default:[]},"no-auth":{type:"boolean",describe:"allow starting without authentication on non-loopback addresses (DANGEROUS)",default:!1}};function u(j){return j.options(H)}function F(j,z=process.argv){return z.some((B)=>B===j||B.startsWith(`${j}=`))}function P(j,z=process.argv){return F("--port",z)||F("--hostname",z)||F("--mdns",z)||!!j.mdns||j.port!==0||j.hostname!=="127.0.0.1"}function _(j,z,B=process.argv){let J=F("--port",B),Z=F("--hostname",B),$=F("--mdns",B),q=F("--mdns-domain",B),K=$?j.mdns:z?.server?.mdns??j.mdns,M=q?j["mdns-domain"]:z?.server?.mdnsDomain??j["mdns-domain"],N=J?j.port:z?.server?.port??j.port,U=Z?j.hostname:K&&!z?.server?.hostname?"0.0.0.0":z?.server?.hostname??j.hostname,V=z?.server?.cors??[],Y=Array.isArray(j.cors)?j.cors:j.cors?[j.cors]:[],b=[...V,...Y],A=j["no-auth"];return{hostname:U,port:N,mdns:K,mdnsDomain:M,cors:b,noAuth:A}}var k={model:{type:"string",alias:["m"],describe:"model to use in the format of provider/model"},continue:{alias:["c"],describe:"continue the last session",type:"boolean"},session:{alias:["s"],type:"string",describe:"session id to continue"},fork:{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"},prompt:{type:"string",describe:"prompt to use"},agent:{type:"string",describe:"agent to use"},dark:{type:"boolean",describe:"start in dark theme (overrides saved theme preference for this launch)"},light:{type:"boolean",describe:"start in light theme (overrides saved theme preference for this launch)"},monochrome:{type:"boolean",describe:"start in monochrome accessible rendering \u2014 no color, plain terminal, screen-reader friendly"},headless:{type:"boolean",describe:"headless permissionless mode for AI subagent use \u2014 auto-approves all tool permissions, implies --never-ask"},"api-key":{type:"string",describe:"Qortex API key for non-interactive authentication in headless mode (can also be set via $QLEX_API_KEY)"},sso:{type:"boolean",describe:"sign in via SSO device-code flow before starting a headless session \u2014 prints a URL and code, waits for browser approval (requires --headless)"},free:{type:"boolean",describe:"start in Free tier (no cost) \u2014 shorthand for the Free model tier"},default:{type:"boolean",describe:"start in Default tier \u2014 shorthand for the Default model tier"},fast:{type:"boolean",describe:"start in Fast tier \u2014 shorthand for the Fast model tier"},economy:{type:"boolean",describe:"start in Economy tier \u2014 shorthand for the Economy model tier"},power:{type:"boolean",describe:"start in Power tier \u2014 shorthand for the Power model tier"},orchestrated:{type:"boolean",describe:"start in Orchestrated tier \u2014 shorthand for the Orchestrated model tier"}},L=36,W="\x1B[38;5;214m",I="\x1B[0;2m",Q="\x1B[0m";function G(j,z){let B=Math.round(j/100*L),J=`${"\u25A0".repeat(B)}${"\uFF65".repeat(L-B)}`;return`\r${W}${J} ${j.toString().padStart(3)}%${Q} ${I}${z}${Q}`}
3
- export{D as Lf,H as Mf,u as Nf,P as Of,_ as Pf,k as Qf,G as Rf};
2
+ import{tt as X}from"./chunk-ebrt1me3.js";function D(j){return j.parserConfiguration({"populate--":!0}).scriptName("qitqode").wrap(100).help("help","show help").alias("help","h").version("version","show version number",X).alias("version","v").option("print-logs",{describe:"print logs to stderr",type:"boolean"}).option("log-level",{describe:"log level",type:"string",choices:["DEBUG","INFO","WARN","ERROR"]}).option("pure",{describe:"run without external plugins",type:"boolean"})}var H={port:{type:"number",describe:"port to listen on",default:0},hostname:{type:"string",describe:"hostname to listen on",default:"127.0.0.1"},mdns:{type:"boolean",describe:"enable mDNS service discovery (defaults hostname to 0.0.0.0)",default:!1},"mdns-domain":{type:"string",describe:"custom domain name for mDNS service (default: qitqode.local)",default:"qitqode.local"},cors:{type:"string",array:!0,describe:"additional domains to allow for CORS",default:[]},"no-auth":{type:"boolean",describe:"allow starting without authentication on non-loopback addresses (DANGEROUS)",default:!1}};function u(j){return j.options(H)}function F(j,z=process.argv){return z.some((B)=>B===j||B.startsWith(`${j}=`))}function P(j,z=process.argv){return F("--port",z)||F("--hostname",z)||F("--mdns",z)||!!j.mdns||j.port!==0||j.hostname!=="127.0.0.1"}function _(j,z,B=process.argv){let J=F("--port",B),Z=F("--hostname",B),$=F("--mdns",B),q=F("--mdns-domain",B),K=$?j.mdns:z?.server?.mdns??j.mdns,M=q?j["mdns-domain"]:z?.server?.mdnsDomain??j["mdns-domain"],N=J?j.port:z?.server?.port??j.port,U=Z?j.hostname:K&&!z?.server?.hostname?"0.0.0.0":z?.server?.hostname??j.hostname,V=z?.server?.cors??[],Y=Array.isArray(j.cors)?j.cors:j.cors?[j.cors]:[],b=[...V,...Y],A=j["no-auth"];return{hostname:U,port:N,mdns:K,mdnsDomain:M,cors:b,noAuth:A}}var k={model:{type:"string",alias:["m"],describe:"model to use in the format of provider/model"},continue:{alias:["c"],describe:"continue the last session",type:"boolean"},session:{alias:["s"],type:"string",describe:"session id to continue"},fork:{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"},prompt:{type:"string",describe:"prompt to use"},agent:{type:"string",describe:"agent to use"},dark:{type:"boolean",describe:"start in dark theme (overrides saved theme preference for this launch)"},light:{type:"boolean",describe:"start in light theme (overrides saved theme preference for this launch)"},monochrome:{type:"boolean",describe:"start in monochrome accessible rendering \u2014 no color, plain terminal, screen-reader friendly"},headless:{type:"boolean",describe:"headless permissionless mode for AI subagent use \u2014 auto-approves all tool permissions, implies --never-ask"},"api-key":{type:"string",describe:"Qortex API key for non-interactive authentication in headless mode (can also be set via $QLEX_API_KEY)"},sso:{type:"boolean",describe:"sign in via SSO device-code flow before starting a headless session \u2014 prints a URL and code, waits for browser approval (requires --headless)"},free:{type:"boolean",describe:"start in Free tier (no cost) \u2014 shorthand for the Free model tier"},default:{type:"boolean",describe:"start in Default tier \u2014 shorthand for the Default model tier"},fast:{type:"boolean",describe:"start in Fast tier \u2014 shorthand for the Fast model tier"},economy:{type:"boolean",describe:"start in Economy tier \u2014 shorthand for the Economy model tier"},power:{type:"boolean",describe:"start in Power tier \u2014 shorthand for the Power model tier"},orchestrated:{type:"boolean",describe:"start in Orchestrated tier \u2014 shorthand for the Orchestrated model tier"}},L=36,W="\x1B[38;5;214m",I="\x1B[0;2m",Q="\x1B[0m";function G(j,z){let B=Math.round(j/100*L),J=`${"\u25A0".repeat(B)}${"\uFF65".repeat(L-B)}`;return`\r${W}${J} ${j.toString().padStart(3)}%${Q} ${I}${z}${Q}`}
3
+ export{D as Mf,H as Nf,u as Of,P as Pf,_ as Qf,k as Rf,G as Sf};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{GP as U}from"./chunk-s2za1y84.js";import{dlopen as S,FFIType as x,ptr as M}from"bun:ffi";import{Buffer as G}from"buffer";class O{listeners=[];event=(z)=>{return this.listeners.push(z),{dispose:()=>{let H=this.listeners.indexOf(z);if(H!==-1)this.listeners.splice(H,1)}}};fire(z){for(let H of this.listeners)H(z)}}import{join as Y,dirname as R,basename as L}from"path";import{existsSync as j}from"fs";var k=80,N=24,_="sh",B="xterm";function P(z){if(z.length===0)return"''";return`'${z.replace(/'/g,"'\\''")}'`}function v(){let z=process.env.BUN_PTY_LIB;if(z&&j(z))return z;try{let q=U(`../rust-pty/target/release/${process.platform==="win32"?"rust_pty.dll":process.platform==="darwin"?process.arch==="arm64"?"librust_pty_arm64.dylib":"librust_pty.dylib":process.arch==="arm64"?"librust_pty_arm64.so":"librust_pty.so"}`);if(q)return q}catch{}let{platform:H,arch:J}=process,X=H==="darwin"?J==="arm64"?["librust_pty_arm64.dylib","librust_pty.dylib"]:["librust_pty.dylib"]:H==="win32"?["rust_pty.dll"]:J==="arm64"?["librust_pty_arm64.so","librust_pty.so"]:["librust_pty.so"],V=Bun.fileURLToPath(import.meta.url),$=R(V),W=L($),K=W==="src"||W==="dist"?R($):$,w=[Y(K,"rust-pty","target","release"),Y(K,"..","bun-pty","rust-pty","target","release"),Y(process.cwd(),"node_modules","bun-pty","rust-pty","target","release")],C=[];for(let q of w)for(let A of X)C.push(Y(q,A));for(let q of C)if(j(q))return q;throw Error(`librust_pty shared library not found.
2
+ import{dQ as U}from"./chunk-aztre27e.js";import{dlopen as S,FFIType as x,ptr as M}from"bun:ffi";import{Buffer as G}from"buffer";class O{listeners=[];event=(z)=>{return this.listeners.push(z),{dispose:()=>{let H=this.listeners.indexOf(z);if(H!==-1)this.listeners.splice(H,1)}}};fire(z){for(let H of this.listeners)H(z)}}import{join as Y,dirname as R,basename as L}from"path";import{existsSync as j}from"fs";var k=80,N=24,_="sh",B="xterm";function P(z){if(z.length===0)return"''";return`'${z.replace(/'/g,"'\\''")}'`}function v(){let z=process.env.BUN_PTY_LIB;if(z&&j(z))return z;try{let q=U(`../rust-pty/target/release/${process.platform==="win32"?"rust_pty.dll":process.platform==="darwin"?process.arch==="arm64"?"librust_pty_arm64.dylib":"librust_pty.dylib":process.arch==="arm64"?"librust_pty_arm64.so":"librust_pty.so"}`);if(q)return q}catch{}let{platform:H,arch:J}=process,X=H==="darwin"?J==="arm64"?["librust_pty_arm64.dylib","librust_pty.dylib"]:["librust_pty.dylib"]:H==="win32"?["rust_pty.dll"]:J==="arm64"?["librust_pty_arm64.so","librust_pty.so"]:["librust_pty.so"],V=Bun.fileURLToPath(import.meta.url),$=R(V),W=L($),K=W==="src"||W==="dist"?R($):$,w=[Y(K,"rust-pty","target","release"),Y(K,"..","bun-pty","rust-pty","target","release"),Y(process.cwd(),"node_modules","bun-pty","rust-pty","target","release")],C=[];for(let q of w)for(let A of X)C.push(Y(q,A));for(let q of C)if(j(q))return q;throw Error(`librust_pty shared library not found.
3
3
  Checked:
4
4
  - BUN_PTY_LIB=${z??"<unset>"}
5
5
  - ${C.join(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{EP as B7,GP as RZ}from"./chunk-s2za1y84.js";import{createRequire as M8}from"module";import{fileURLToPath as k8}from"url";import{dirname as b8}from"path";import B0 from"path";import*as y6 from"path";import*as q4 from"url";import K6 from"path";import*as U6 from"path";import*as $2 from"fs/promises";import*as w6 from"path";import OJ from"process";import*as z1 from"path";import _J from"process";import Q4 from"path";import{pathToFileURL as Jz}from"url";import uz from"fs/promises";import cz from"path";import{pathToFileURL as nz}from"url";import A6 from"assert";import{statSync as f6,realpathSync as dz}from"fs";import p0 from"process";import{URL as KZ,fileURLToPath as HZ,pathToFileURL as j4}from"url";import g6 from"path";import{builtinModules as y4}from"module";import{fileURLToPath as ez}from"url";import oz from"fs";import tz from"path";import{fileURLToPath as p2}from"url";import ZV from"v8";import E0 from"assert";import{format as $V,inspect as E2}from"util";import{createRequire as nV}from"module";import f5 from"assert";import{fileURLToPath as kQ}from"url";import _Q from"assert";import D5 from"path";import{pathToFileURL as l5}from"url";import TW from"path";import s1 from"path";import sW from"url";var U2={};B7(U2,{utils:()=>s4,printer:()=>i4,default:()=>w8,builders:()=>_4});var S7=Object.defineProperty,F7=(Z,$)=>{for(var J in $)S7(Z,J,{get:$[J],enumerable:!0})},P4={};F7(P4,{builders:()=>_4,printer:()=>i4,utils:()=>s4});var R0="string",xZ="array",Y0="cursor",H0="indent",X0="align",v0="trim",CZ="group",j0="fill",DZ="if-break",y0="indent-if-break",G0="line-suffix",K0="line-suffix-boundary",AZ="line",U0="label",aZ="break-parent",C4=new Set([Y0,H0,X0,v0,CZ,j0,DZ,y0,G0,K0,AZ,U0,aZ]),N7=(Z,$,J)=>{if(Z&&($===void 0||$===null))return;if(Array.isArray($)||typeof $==="string")return $[J<0?$.length+J:J];return $.at(J)},W0=N7;function h7(Z){let $=Z.length;while($>0&&(Z[$-1]==="\r"||Z[$-1]===`
2
+ import{bQ as B7,dQ as RZ}from"./chunk-aztre27e.js";import{createRequire as M8}from"module";import{fileURLToPath as k8}from"url";import{dirname as b8}from"path";import B0 from"path";import*as y6 from"path";import*as q4 from"url";import K6 from"path";import*as U6 from"path";import*as $2 from"fs/promises";import*as w6 from"path";import OJ from"process";import*as z1 from"path";import _J from"process";import Q4 from"path";import{pathToFileURL as Jz}from"url";import uz from"fs/promises";import cz from"path";import{pathToFileURL as nz}from"url";import A6 from"assert";import{statSync as f6,realpathSync as dz}from"fs";import p0 from"process";import{URL as KZ,fileURLToPath as HZ,pathToFileURL as j4}from"url";import g6 from"path";import{builtinModules as y4}from"module";import{fileURLToPath as ez}from"url";import oz from"fs";import tz from"path";import{fileURLToPath as p2}from"url";import ZV from"v8";import E0 from"assert";import{format as $V,inspect as E2}from"util";import{createRequire as nV}from"module";import f5 from"assert";import{fileURLToPath as kQ}from"url";import _Q from"assert";import D5 from"path";import{pathToFileURL as l5}from"url";import TW from"path";import s1 from"path";import sW from"url";var U2={};B7(U2,{utils:()=>s4,printer:()=>i4,default:()=>w8,builders:()=>_4});var S7=Object.defineProperty,F7=(Z,$)=>{for(var J in $)S7(Z,J,{get:$[J],enumerable:!0})},P4={};F7(P4,{builders:()=>_4,printer:()=>i4,utils:()=>s4});var R0="string",xZ="array",Y0="cursor",H0="indent",X0="align",v0="trim",CZ="group",j0="fill",DZ="if-break",y0="indent-if-break",G0="line-suffix",K0="line-suffix-boundary",AZ="line",U0="label",aZ="break-parent",C4=new Set([Y0,H0,X0,v0,CZ,j0,DZ,y0,G0,K0,AZ,U0,aZ]),N7=(Z,$,J)=>{if(Z&&($===void 0||$===null))return;if(Array.isArray($)||typeof $==="string")return $[J<0?$.length+J:J];return $.at(J)},W0=N7;function h7(Z){let $=Z.length;while($>0&&(Z[$-1]==="\r"||Z[$-1]===`
3
3
  `))$--;return $<Z.length?Z.slice(0,$):Z}function L7(Z){if(typeof Z==="string")return R0;if(Array.isArray(Z))return xZ;if(!Z)return;let{type:$}=Z;if(C4.has($))return $}var I0=L7,A7=(Z)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Z);function f7(Z){let $=Z===null?"null":typeof Z;if($!=="string"&&$!=="object")return`Unexpected doc '${$}',
4
4
  Expected it to be 'string' or 'object'.`;if(I0(Z))throw Error("doc is valid.");let J=Object.prototype.toString.call(Z);if(J!=="[object Object]")return`Unexpected doc '${J}'.`;let z=A7([...C4].map((V)=>`'${V}'`));return`Unexpected doc.type '${Z.type}'.
5
5
  Expected it to be ${z}.`}var g7=class extends Error{name="InvalidDocError";constructor(Z){super(f7(Z));this.doc=Z}},r0=g7,R4={};function m7(Z,$,J,z){let V=[Z];while(V.length>0){let q=V.pop();if(q===R4){J(V.pop());continue}if(J)V.push(q,R4);let Q=I0(q);if(!Q)throw new r0(q);if(($==null?void 0:$(q))===!1)continue;switch(Q){case xZ:case j0:{let W=Q===xZ?q:q.parts;for(let H=W.length,v=H-1;v>=0;--v)V.push(W[v]);break}case DZ:V.push(q.flatContents,q.breakContents);break;case CZ:if(z&&q.expandedStates)for(let W=q.expandedStates.length,H=W-1;H>=0;--H)V.push(q.expandedStates[H]);else V.push(q.contents);break;case X0:case H0:case y0:case U0:case G0:V.push(q.contents);break;case R0:case Y0:case v0:case K0:case AZ:case aZ:break;default:throw new r0(q)}}}var v2=m7;function f1(Z,$){if(typeof Z==="string")return $(Z);let J=new Map;return z(Z);function z(q){if(J.has(q))return J.get(q);let Q=V(q);return J.set(q,Q),Q}function V(q){switch(I0(q)){case xZ:return $(q.map(z));case j0:return $({...q,parts:q.parts.map(z)});case DZ:return $({...q,breakContents:z(q.breakContents),flatContents:z(q.flatContents)});case CZ:{let{expandedStates:Q,contents:W}=q;if(Q)Q=Q.map(z),W=Q[0];else W=z(W);return $({...q,contents:W,expandedStates:Q})}case X0:case H0:case y0:case U0:case G0:return $({...q,contents:z(q.contents)});case R0:case Y0:case v0:case K0:case AZ:case aZ:return $(q);default:throw new r0(q)}}}function j2(Z,$,J){let z=J,V=!1;function q(Q){if(V)return!1;let W=$(Q);if(W!==void 0)V=!0,z=W}return v2(Z,q),z}function R7(Z){if(Z.type===CZ&&Z.break)return!0;if(Z.type===AZ&&Z.hard)return!0;if(Z.type===aZ)return!0}function Y7(Z){return j2(Z,R7,!1)}function Y4(Z){if(Z.length>0){let $=W0(!1,Z,-1);if(!$.expandedStates&&!$.break)$.break="propagated"}return null}function I7(Z){let $=new Set,J=[];function z(q){if(q.type===aZ)Y4(J);if(q.type===CZ){if(J.push(q),$.has(q))return!1;$.add(q)}}function V(q){if(q.type===CZ){if(J.pop().break)Y4(J)}}v2(Z,z,V,!0)}function P7(Z){if(Z.type===AZ&&!Z.hard)return Z.soft?"":" ";if(Z.type===DZ)return Z.flatContents;return Z}function C7(Z){return f1(Z,P7)}function I4(Z){Z=[...Z];while(Z.length>=2&&W0(!1,Z,-2).type===AZ&&W0(!1,Z,-1).type===aZ)Z.length-=2;if(Z.length>0){let $=q1(W0(!1,Z,-1));Z[Z.length-1]=$}return Z}function q1(Z){switch(I0(Z)){case H0:case y0:case CZ:case G0:case U0:{let $=q1(Z.contents);return{...Z,contents:$}}case DZ:return{...Z,breakContents:q1(Z.breakContents),flatContents:q1(Z.flatContents)};case j0:return{...Z,parts:I4(Z.parts)};case xZ:return I4(Z);case R0:return h7(Z);case X0:case Y0:case v0:case K0:case AZ:case aZ:break;default:throw new r0(Z)}return Z}function T7(Z){return q1(u7(Z))}function O7(Z){switch(I0(Z)){case j0:if(Z.parts.every(($)=>$===""))return"";break;case CZ:if(!Z.contents&&!Z.id&&!Z.break&&!Z.expandedStates)return"";if(Z.contents.type===CZ&&Z.contents.id===Z.id&&Z.contents.break===Z.break&&Z.contents.expandedStates===Z.expandedStates)return Z.contents;break;case X0:case H0:case y0:case G0:if(!Z.contents)return"";break;case DZ:if(!Z.flatContents&&!Z.breakContents)return"";break;case xZ:{let $=[];for(let J of Z){if(!J)continue;let[z,...V]=Array.isArray(J)?J:[J];if(typeof z==="string"&&typeof W0(!1,$,-1)==="string")$[$.length-1]+=z;else $.push(z);$.push(...V)}if($.length===0)return"";if($.length===1)return $[0];return $}case R0:case Y0:case v0:case K0:case AZ:case U0:case aZ:break;default:throw new r0(Z)}return Z}function u7(Z){return f1(Z,($)=>O7($))}function D7(Z,$=D4){return f1(Z,(J)=>typeof J==="string"?l4($,J.split(`
@@ -75,7 +75,7 @@ ${V}`,$);this.line=J,this.column=z,this.codeblock=V}};function n1(Z,$=0,J=Z.leng
75
75
  `)throw new $Z("newlines are not allowed in inline tables",{toml:Z,ptr:$-1});else if(q==="#")throw new $Z("inline tables cannot contain comments",{toml:Z,ptr:$-1});else if(q===",")throw new $Z("expected key-value, found comma",{toml:Z,ptr:$-1});else if(q!==" "&&q!=="\t"){let W,H=z,v=!1,[X,j]=l2(Z,$-1);for(let G=0;G<X.length;G++){if(G)H=v?H[W]:H[W]={};if(W=X[G],(v=Object.hasOwn(H,W))&&(typeof H[W]!=="object"||V.has(H[W])))throw new $Z("trying to redefine an already defined value",{toml:Z,ptr:$});if(!v&&W==="__proto__")Object.defineProperty(H,W,{enumerable:!0,configurable:!0,writable:!0})}if(v)throw new $Z("trying to redefine an already defined value",{toml:Z,ptr:$});let[y,K]=X4(Z,j,"}",J-1);V.add(y),H[W]=y,$=K,Q=Z[$-1]===","?$-1:0}if(Q)throw new $Z("trailing commas are not allowed in inline tables",{toml:Z,ptr:Q});if(!q)throw new $Z("unfinished table encountered",{toml:Z,ptr:$});return[z,$]}function Tz(Z,$,J=-1){let z=[],V;$++;while((V=Z[$++])!=="]"&&V)if(V===",")throw new $Z("expected value, found comma",{toml:Z,ptr:$-1});else if(V==="#")$=H4(Z,$);else if(V!==" "&&V!=="\t"&&V!==`
76
76
  `&&V!=="\r"){let q=X4(Z,$-1,"]",J-1);z.push(q[0]),$=q[1]}if(!V)throw new $Z("unfinished array encountered",{toml:Z,ptr:$});return[z,$]}function X5(Z,$,J,z){var V,q;let Q=$,W=J,H,v=!1,X;for(let j=0;j<Z.length;j++){if(j){if(Q=v?Q[H]:Q[H]={},W=(X=W[H]).c,z===0&&(X.t===1||X.t===2))return null;if(X.t===2){let y=Q.length-1;Q=Q[y],W=W[y].c}}if(H=Z[j],(v=Object.hasOwn(Q,H))&&((V=W[H])==null?void 0:V.t)===0&&((q=W[H])==null?void 0:q.d))return null;if(!v){if(H==="__proto__")Object.defineProperty(Q,H,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(W,H,{enumerable:!0,configurable:!0,writable:!0});W[H]={t:j<Z.length-1&&z===2?3:z,d:!1,i:0,c:{}}}}if(X=W[H],X.t!==z&&!(z===1&&X.t===3))return null;if(z===2){if(!X.d)X.d=!0,Q[H]=[];Q[H].push(Q={}),X.c[X.i++]=X={t:1,d:!1,i:0,c:{}}}if(X.d)return null;if(X.d=!0,z===1)Q=v?Q[H]:Q[H]={};else if(z===0&&v)return null;return[H,Q,X.c]}function Oz(Z,$){let J=($==null?void 0:$.maxDepth)??1000,z={},V={},q=z,Q=V;for(let W=Z0(Z,0);W<Z.length;){if(Z[W]==="["){let H=Z[++W]==="[",v=l2(Z,W+=+H,"]");if(H){if(Z[v[1]-1]!=="]")throw new $Z("expected end of table declaration",{toml:Z,ptr:v[1]-1});v[1]++}let X=X5(v[0],z,V,H?2:1);if(!X)throw new $Z("trying to redefine an already defined table or value",{toml:Z,ptr:W});Q=X[2],q=X[1],W=v[1]}else{let H=l2(Z,W),v=X5(H[0],q,Q,0);if(!v)throw new $Z("trying to redefine an already defined table or value",{toml:Z,ptr:W});let X=X4(Z,H[1],void 0,J);v[1][v[0]]=X[0],W=X[1]}if(W=Z0(Z,W,!0),Z[W]&&Z[W]!==`
77
77
  `&&Z[W]!=="\r")throw new $Z("each key-value declaration must be followed by an end-of-line",{toml:Z,ptr:W});W=Z0(Z,W)}return z}async function Dz(Z){if(G6(Z))Z=new URL(Z);try{return await uz.readFile(Z,"utf8")}catch($){if($.code==="ENOENT")return;throw Error(`Unable to read '${Z}': ${$.message}`)}}var b1=Dz;async function v4(Z){let $=await b1(Z);try{return Sz($)}catch(J){throw J.message=`JSON Error in ${Z}:
78
- ${J.message}`,J}}async function O0(Z){return(await import(Jz(Z).href)).default}async function lz(Z){try{return await v4(Z)}catch($){try{return await O0(Z)}catch{}throw $}}var h6=process.versions.bun?async function($){let{prettier:J}=await lz($);return J}:async function($){let{prettier:J}=await v4($);return J};async function L6(Z){let{prettier:$}=await D1(Z);return $}var b2;async function D1(Z){let $=await b1(Z);if(!b2)({__parsePrettierYamlConfig:b2}=await import("./chunk-e57d1he9.js"));try{return b2($)}catch(J){throw J.message=`YAML Error in ${Z}:
78
+ ${J.message}`,J}}async function O0(Z){return(await import(Jz(Z).href)).default}async function lz(Z){try{return await v4(Z)}catch($){try{return await O0(Z)}catch{}throw $}}var h6=process.versions.bun?async function($){let{prettier:J}=await lz($);return J}:async function($){let{prettier:J}=await v4($);return J};async function L6(Z){let{prettier:$}=await D1(Z);return $}var b2;async function D1(Z){let $=await b1(Z);if(!b2)({__parsePrettierYamlConfig:b2}=await import("./chunk-5qam3c8r.js"));try{return b2($)}catch(J){throw J.message=`YAML Error in ${Z}:
79
79
  ${J.message}`,J}}async function pz(Z){let $=await b1(Z);try{return Oz($)}catch(J){throw J.message=`TOML Error in ${Z}:
80
80
  ${J.message}`,J}}async function Ez(Z){let $=await b1(Z);try{return yz.parse($)}catch(J){throw J.message=`JSON5 Error in ${Z}:
81
81
  ${J.message}`,J}}var _z={".toml":pz,".json5":Ez,".json":v4,".js":O0,".mjs":O0,".cjs":O0,".ts":O0,".mts":O0,".cts":O0,".yaml":D1,".yml":D1,"":D1},iz=_z,sz=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.ts",".prettierrc.mjs",".prettierrc.mts",".prettierrc.cjs",".prettierrc.cts","prettier.config.js","prettier.config.ts","prettier.config.mjs","prettier.config.mts","prettier.config.cjs","prettier.config.cts",".prettierrc.toml"];async function az({name:Z,path:$}){if(Z==="package.json")try{return Boolean(await h6($))}catch{return!1}if(Z==="package.yaml")try{return Boolean(await L6($))}catch{return!1}return!0}function rz(Z){return new aJ(sz,{filter:az,stopDirectory:Z})}var xz=rz,JV={}.hasOwnProperty,zV=/^([A-Z][a-z\d]*)+$/,VV=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),NZ={};function B2(Z,$="and"){return Z.length<3?Z.join(` ${$} `):`${Z.slice(0,-1).join(", ")}, ${$} ${Z[Z.length-1]}`}var m6=new Map,qV="__node_internal_",v5;NZ.ERR_INVALID_ARG_TYPE=uZ("ERR_INVALID_ARG_TYPE",(Z,$,J)=>{if(E0(typeof Z==="string","'name' must be a string"),!Array.isArray($))$=[$];let z="The ";if(Z.endsWith(" argument"))z+=`${Z} `;else{let W=Z.includes(".")?"property":"argument";z+=`"${Z}" ${W} `}z+="must be ";let V=[],q=[],Q=[];for(let W of $)if(E0(typeof W==="string","All expected entries have to be of type string"),VV.has(W))V.push(W.toLowerCase());else if(zV.exec(W)===null)E0(W!=="object",'The value "object" should be written as "Object"'),Q.push(W);else q.push(W);if(q.length>0){let W=V.indexOf("object");if(W!==-1)V.slice(W,1),q.push("Object")}if(V.length>0){if(z+=`${V.length>1?"one of type":"of type"} ${B2(V,"or")}`,q.length>0||Q.length>0)z+=" or "}if(q.length>0){if(z+=`an instance of ${B2(q,"or")}`,Q.length>0)z+=" or "}if(Q.length>0)if(Q.length>1)z+=`one of ${B2(Q,"or")}`;else{if(Q[0].toLowerCase()!==Q[0])z+="an ";z+=`${Q[0]}`}return z+=`. Received ${vV(J)}`,z},TypeError);NZ.ERR_INVALID_MODULE_SPECIFIER=uZ("ERR_INVALID_MODULE_SPECIFIER",(Z,$,J=void 0)=>{return`Invalid module "${Z}" ${$}${J?` imported from ${J}`:""}`},TypeError);NZ.ERR_INVALID_PACKAGE_CONFIG=uZ("ERR_INVALID_PACKAGE_CONFIG",(Z,$,J)=>{return`Invalid package config ${Z}${$?` while importing ${$}`:""}${J?`. ${J}`:""}`},Error);NZ.ERR_INVALID_PACKAGE_TARGET=uZ("ERR_INVALID_PACKAGE_TARGET",(Z,$,J,z=!1,V=void 0)=>{let q=typeof J==="string"&&!z&&J.length>0&&!J.startsWith("./");if($===".")return E0(z===!1),`Invalid "exports" main target ${JSON.stringify(J)} defined in the package config ${Z}package.json${V?` imported from ${V}`:""}${q?'; targets must start with "./"':""}`;return`Invalid "${z?"imports":"exports"}" target ${JSON.stringify(J)} defined for '${$}' in the package config ${Z}package.json${V?` imported from ${V}`:""}${q?'; targets must start with "./"':""}`},Error);NZ.ERR_MODULE_NOT_FOUND=uZ("ERR_MODULE_NOT_FOUND",(Z,$,J=!1)=>{return`Cannot find ${J?"module":"package"} '${Z}' imported from ${$}`},Error);NZ.ERR_NETWORK_IMPORT_DISALLOWED=uZ("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);NZ.ERR_PACKAGE_IMPORT_NOT_DEFINED=uZ("ERR_PACKAGE_IMPORT_NOT_DEFINED",(Z,$,J)=>{return`Package import specifier "${Z}" is not defined${$?` in package ${$}package.json`:""} imported from ${J}`},TypeError);NZ.ERR_PACKAGE_PATH_NOT_EXPORTED=uZ("ERR_PACKAGE_PATH_NOT_EXPORTED",(Z,$,J=void 0)=>{if($===".")return`No "exports" main defined in ${Z}package.json${J?` imported from ${J}`:""}`;return`Package subpath '${$}' is not defined by "exports" in ${Z}package.json${J?` imported from ${J}`:""}`},Error);NZ.ERR_UNSUPPORTED_DIR_IMPORT=uZ("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);NZ.ERR_UNSUPPORTED_RESOLVE_REQUEST=uZ("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);NZ.ERR_UNKNOWN_FILE_EXTENSION=uZ("ERR_UNKNOWN_FILE_EXTENSION",(Z,$)=>{return`Unknown file extension "${Z}" for ${$}`},TypeError);NZ.ERR_INVALID_ARG_VALUE=uZ("ERR_INVALID_ARG_VALUE",(Z,$,J="is invalid")=>{let z=E2($);if(z.length>128)z=`${z.slice(0,128)}...`;return`The ${Z.includes(".")?"property":"argument"} '${Z}' ${J}. Received ${z}`},TypeError);function uZ(Z,$,J){return m6.set(Z,$),QV(J,Z)}function QV(Z,$){return J;function J(...z){let V=Error.stackTraceLimit;if(_2())Error.stackTraceLimit=0;let q=new Z;if(_2())Error.stackTraceLimit=V;let Q=XV($,z,q);return Object.defineProperties(q,{message:{value:Q,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${$}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),HV(q),q.code=$,q}}function _2(){try{if(ZV.startupSnapshot.isBuildingSnapshot())return!1}catch{}let Z=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(Z===void 0)return Object.isExtensible(Error);return JV.call(Z,"writable")&&Z.writable!==void 0?Z.writable:Z.set!==void 0}function WV(Z){let $=qV+Z.name;return Object.defineProperty(Z,"name",{value:$}),Z}var HV=WV(function(Z){let $=_2();if($)v5=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY;if(Error.captureStackTrace(Z),$)Error.stackTraceLimit=v5;return Z});function XV(Z,$,J){let z=m6.get(Z);if(E0(z!==void 0,"expected `message` to be found"),typeof z==="function")return E0(z.length<=$.length,`Code: ${Z}; The provided arguments length (${$.length}) does not match the required ones (${z.length}).`),Reflect.apply(z,J,$);let V=/%[dfijoOs]/g,q=0;while(V.exec(z)!==null)q++;if(E0(q===$.length,`Code: ${Z}; The provided arguments length (${$.length}) does not match the required ones (${q}).`),$.length===0)return z;return $.unshift(z),Reflect.apply($V,null,$)}function vV(Z){if(Z===null||Z===void 0)return String(Z);if(typeof Z==="function"&&Z.name)return`function ${Z.name}`;if(typeof Z==="object"){if(Z.constructor&&Z.constructor.name)return`an instance of ${Z.constructor.name}`;return`${E2(Z,{depth:-1})}`}let $=E2(Z,{colors:!1});if($.length>28)$=`${$.slice(0,25)}...`;return`type ${typeof Z} (${$})`}var Q1={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:jV}=NZ,j5=new Map;function R6(Z,{base:$,specifier:J}){let z=j5.get(Z);if(z)return z;let V;try{V=oz.readFileSync(tz.toNamespacedPath(Z),"utf8")}catch(Q){let W=Q;if(W.code!=="ENOENT")throw W}let q={exists:!1,pjsonPath:Z,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(V!==void 0){let Q;try{Q=JSON.parse(V)}catch(W){let H=W,v=new jV(Z,($?`"${J}" from `:"")+p2($||J),H.message);throw v.cause=H,v}if(q.exists=!0,Q1.call(Q,"name")&&typeof Q.name==="string")q.name=Q.name;if(Q1.call(Q,"main")&&typeof Q.main==="string")q.main=Q.main;if(Q1.call(Q,"exports"))q.exports=Q.exports;if(Q1.call(Q,"imports"))q.imports=Q.imports;if(Q1.call(Q,"type")&&(Q.type==="commonjs"||Q.type==="module"))q.type=Q.type}return j5.set(Z,q),q}function G4(Z){let $=new URL("package.json",Z);while(!0){if($.pathname.endsWith("node_modules/package.json"))break;let V=R6(p2($),{specifier:Z});if(V.exists)return V;let q=$;if($=new URL("../package.json",$),$.pathname===q.pathname)break}return{pjsonPath:p2($),exists:!1,type:"none"}}function y5(Z){return G4(Z).type}var{ERR_UNKNOWN_FILE_EXTENSION:yV}=NZ,GV={}.hasOwnProperty,KV={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function UV(Z){if(Z&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(Z))return"module";if(Z==="application/json")return"json";return null}var G5={__proto__:null,"data:":wV,"file:":kV,"http:":K5,"https:":K5,"node:"(){return"builtin"}};function wV(Z){let{1:$}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(Z.pathname)||[null,null,null];return UV($)}function MV(Z){let $=Z.pathname,J=$.length;while(J--){let z=$.codePointAt(J);if(z===47)return"";if(z===46)return $.codePointAt(J-1)===47?"":$.slice(J)}return""}function kV(Z,$,J){let z=MV(Z);if(z===".js"){let Q=y5(Z);if(Q!=="none")return Q;return"commonjs"}if(z===""){let Q=y5(Z);if(Q==="none"||Q==="commonjs")return"commonjs";return"module"}let V=KV[z];if(V)return V;if(J)return;let q=ez(Z);throw new yV(z,q)}function K5(){}function Y6(Z,$){let J=Z.protocol;if(!GV.call(G5,J))return null;return G5[J](Z,$,!0)||null}var{ERR_INVALID_ARG_VALUE:bV}=NZ,I6=Object.freeze(["node","import"]),BV=new Set(I6);function SV(){return I6}function FV(){return BV}function NV(Z){if(Z!==void 0&&Z!==SV()){if(!Array.isArray(Z))throw new bV("conditions",Z,"expected an array");return new Set(Z)}return FV()}var m1=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:S2,ERR_INVALID_MODULE_SPECIFIER:J2,ERR_INVALID_PACKAGE_CONFIG:P6,ERR_INVALID_PACKAGE_TARGET:hV,ERR_MODULE_NOT_FOUND:K4,ERR_PACKAGE_IMPORT_NOT_DEFINED:LV,ERR_PACKAGE_PATH_NOT_EXPORTED:AV,ERR_UNSUPPORTED_DIR_IMPORT:fV,ERR_UNSUPPORTED_RESOLVE_REQUEST:U5}=NZ,C6={}.hasOwnProperty,w5=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,M5=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,gV=/^\.|%|\\/,R1=/\*/g,mV=/%2f|%5c/i,k5=new Set,RV=/[/\\]{2}/;function b5(Z,$,J,z,V,q,Q){if(p0.noDeprecation)return;let W=HZ(z),H=RV.exec(Q?Z:$)!==null;p0.emitWarning(`Use of deprecated ${H?"double slash":"leading or trailing slash matching"} resolving "${Z}" for module request "${$}" ${$===J?"":`matched to "${J}" `}in the "${V?"imports":"exports"}" field module resolution of the package at ${W}${q?` imported from ${HZ(q)}`:""}.`,"DeprecationWarning","DEP0166")}function B5(Z,$,J,z){if(p0.noDeprecation)return;if(Y6(Z,{parentURL:J.href})!=="module")return;let q=HZ(Z.href),Q=HZ(new KZ(".",$)),W=HZ(J);if(!z)p0.emitWarning(`No "main" or "exports" field defined in the package.json for ${Q} resolving the main entry point "${q.slice(Q.length)}", imported from ${W}.
@@ -104,7 +104,7 @@ The range will extend backwards to the start of the first line containing the se
104
104
  `)y+=E6(K.slice(0,y),`
105
105
  `);K=B1(!1,K,`
106
106
  `,G)}return{formatted:K,cursorOffset:y,comments:X.comments}}function g2(Z,$,J){if(typeof $!=="number"||Number.isNaN($)||$<0||$>Z.length)return J;return $}function T5(Z,$){let{cursorOffset:J,rangeStart:z,rangeEnd:V}=$;return J=g2(Z,J,-1),z=g2(Z,z,0),V=g2(Z,V,Z.length),{...$,cursorOffset:J,rangeStart:z,rangeEnd:V}}function v7(Z,$){let{cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q}=T5(Z,$),Q=Z.charAt(0)===H7;if(Q)Z=Z.slice(1),J--,z--,V--;if(q==="auto")q=Gq(Z);if(Z.includes("\r")){let W=(H)=>E6(Z.slice(0,Math.max(H,0)),`\r
107
- `);J-=W(J),z-=W(z),V-=W(V),Z=Kq(Z)}return{hasBOM:Q,text:Z,options:T5(Z,{...$,cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q})}}async function O5(Z,$){let J=await L4($);return!J.hasPragma||J.hasPragma(Z)}async function dQ(Z,$){var J;let z=await L4($);return(J=z.hasIgnorePragma)==null?void 0:J.call(z,Z)}async function j7(Z,$){let{hasBOM:J,text:z,options:V}=v7(Z,await V1($));if(V.rangeStart>=V.rangeEnd&&z!==""||V.requirePragma&&!await O5(z,V)||V.checkIgnorePragma&&await dQ(z,V))return{formatted:Z,cursorOffset:$.cursorOffset,comments:[]};let q;if(V.rangeStart>0||V.rangeEnd<z.length)q=await nQ(z,V);else{if(!V.requirePragma&&V.insertPragma&&V.printer.insertPragma&&!await O5(z,V))z=V.printer.insertPragma(z);q=await X7(z,V)}if(J){if(q.formatted=H7+q.formatted,q.cursorOffset>=0)q.cursorOffset++}return q}async function eQ(Z,$,J){let{text:z,options:V}=v7(Z,await V1($)),q=await N1(z,V);if(J){if(J.preprocessForPrint)q.ast=await q7(q.ast,V);if(J.massage)q.ast=lQ(q.ast,V)}return q}async function oQ(Z,$){$=await V1($);let J=await q2(Z,$);return k4(J,$)}async function tQ(Z,$){let J=Yq(Z),{formatted:z}=await j7(J,{...$,parser:"__js_expression"});return z}async function ZW(Z,$){$=await V1($);let{ast:J}=await N1(Z,$);if($.cursorOffset>=0)$={...$,...Q7(J,$)};return q2(J,$)}async function $W(Z,$){return k4(Z,await V1($))}var y7={};M1(y7,{CATEGORY_CONFIG:()=>JW,CATEGORY_EDITOR:()=>zW,CATEGORY_FORMAT:()=>VW,CATEGORY_GLOBAL:()=>WW,CATEGORY_OTHER:()=>qW,CATEGORY_OUTPUT:()=>QW,CATEGORY_SPECIAL:()=>HW});var JW="Config",zW="Editor",VW="Format",qW="Other",QW="Output",WW="Global",HW="Special",G7={};M1(G7,{languages:()=>YW,options:()=>RW,parsers:()=>IW,printers:()=>PW});var XW=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],PZ={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},vW={singleQuote:PZ.singleQuote},jW=vW,yW=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],GW={bracketSpacing:PZ.bracketSpacing},KW=GW,UW=[{name:"Handlebars",type:"markup",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],wW=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],u5="HTML",MW={bracketSameLine:PZ.bracketSameLine,htmlWhitespaceSensitivity:{category:u5,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:PZ.singleAttributePerLine,vueIndentScriptAndStyle:{category:u5,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kW=MW,bW=[{name:"JavaScript",type:"programming",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],tmScope:"source.js",aceMode:"javascript",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],filenames:["Jakefile","start.frag","end.frag"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",extensions:[".js.flow"],tmScope:"source.js",aceMode:"javascript",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],filenames:[],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,filenames:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],w0="JavaScript",BW={arrowParens:{category:w0,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:PZ.bracketSameLine,objectWrap:PZ.objectWrap,bracketSpacing:PZ.bracketSpacing,jsxBracketSameLine:{category:w0,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:w0,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:w0,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:w0,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:PZ.singleQuote,jsxSingleQuote:{category:w0,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:w0,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:w0,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:PZ.singleAttributePerLine},SW=BW,FW=[{name:"JSON.stringify",type:"data",extensions:[".importmap"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],tmScope:"source.json.comments",aceMode:"javascript",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],NW=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],hW={proseWrap:PZ.proseWrap,singleQuote:PZ.singleQuote},LW=hW,AW=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],fW={bracketSpacing:PZ.bracketSpacing,singleQuote:PZ.singleQuote,proseWrap:PZ.proseWrap},gW=fW;function mW(Z){let $=Object.create(null),J=Object.create(null);for(let{importPlugin:z,parsers:V=[],printers:q=[]}of Z){let Q=async()=>{let W=await z();return Object.assign($,W.parsers),Object.assign(J,W.printers),W};for(let W of V)$[W]=async()=>(await Q()).parsers[W];for(let W of q)J[W]=async()=>(await Q()).printers[W]}return{parsers:$,printers:J}}var RW={...jW,...KW,...kW,...SW,...LW,...gW},YW=[...XW,...yW,...UW,...wW,...bW,...FW,...NW,...AW],{parsers:IW,printers:PW}=mW([{importPlugin:()=>import("./chunk-613kegcn.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./chunk-t7tstr83.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./chunk-afhg3w2j.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./chunk-k7h6tfzj.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./chunk-t1vtdgd6.js"),parsers:["flow"]},{importPlugin:()=>import("./chunk-91khd3fq.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./chunk-j87bvp1b.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./chunk-81engf0t.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./chunk-f3rrd2p6.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./chunk-zjvzc0my.js"),parsers:["meriyah"]},{importPlugin:()=>import("./chunk-ewvgbg68.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./chunk-7e1aw8rw.js"),parsers:["typescript"]},{importPlugin:()=>import("./chunk-e57d1he9.js"),parsers:["yaml"],printers:["yaml"]}]);function CW(){return[G7]}var K7=CW;function OW(Z,$){return D6(Z,TW.join($,"noop.js"))}var uW=OW;async function DW(Z,$){if(t1(Z))return import(Z);if(D5.isAbsolute(Z))return import(l5(Z).href);try{return await import(l5(D5.resolve(Z)).href)}catch{return uW(Z,$)}}async function lW(Z,$){let J=await DW(Z,$);return{name:Z,...J.default??J}}var i1=new Map;function pW(Z){if(typeof Z!=="string"&&!(Z instanceof URL))return Z;let $=process.cwd(),J=JSON.stringify({name:Z,cwd:$});if(!i1.has(J))i1.set(J,lW(Z,$));return i1.get(J)}function EW(){i1.clear()}function _W(Z=[]){return Promise.all(Z.map(($)=>pW($)))}var U7=_W,iW=_Z(x$(),1),aW=s1.sep==="\\"?(Z)=>B1(!1,Z,"\\","/"):(Z)=>Z;function rW(Z,$){let J=Z2($),z=t1(Z)?sW.fileURLToPath(Z):s1.resolve(Z);return s1.relative(J?s1.dirname(J):process.cwd(),z)}async function xW(Z,$){let J="";if(Z)J+=await b1(Z)??"";if(!$)J+=`
107
+ `);J-=W(J),z-=W(z),V-=W(V),Z=Kq(Z)}return{hasBOM:Q,text:Z,options:T5(Z,{...$,cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q})}}async function O5(Z,$){let J=await L4($);return!J.hasPragma||J.hasPragma(Z)}async function dQ(Z,$){var J;let z=await L4($);return(J=z.hasIgnorePragma)==null?void 0:J.call(z,Z)}async function j7(Z,$){let{hasBOM:J,text:z,options:V}=v7(Z,await V1($));if(V.rangeStart>=V.rangeEnd&&z!==""||V.requirePragma&&!await O5(z,V)||V.checkIgnorePragma&&await dQ(z,V))return{formatted:Z,cursorOffset:$.cursorOffset,comments:[]};let q;if(V.rangeStart>0||V.rangeEnd<z.length)q=await nQ(z,V);else{if(!V.requirePragma&&V.insertPragma&&V.printer.insertPragma&&!await O5(z,V))z=V.printer.insertPragma(z);q=await X7(z,V)}if(J){if(q.formatted=H7+q.formatted,q.cursorOffset>=0)q.cursorOffset++}return q}async function eQ(Z,$,J){let{text:z,options:V}=v7(Z,await V1($)),q=await N1(z,V);if(J){if(J.preprocessForPrint)q.ast=await q7(q.ast,V);if(J.massage)q.ast=lQ(q.ast,V)}return q}async function oQ(Z,$){$=await V1($);let J=await q2(Z,$);return k4(J,$)}async function tQ(Z,$){let J=Yq(Z),{formatted:z}=await j7(J,{...$,parser:"__js_expression"});return z}async function ZW(Z,$){$=await V1($);let{ast:J}=await N1(Z,$);if($.cursorOffset>=0)$={...$,...Q7(J,$)};return q2(J,$)}async function $W(Z,$){return k4(Z,await V1($))}var y7={};M1(y7,{CATEGORY_CONFIG:()=>JW,CATEGORY_EDITOR:()=>zW,CATEGORY_FORMAT:()=>VW,CATEGORY_GLOBAL:()=>WW,CATEGORY_OTHER:()=>qW,CATEGORY_OUTPUT:()=>QW,CATEGORY_SPECIAL:()=>HW});var JW="Config",zW="Editor",VW="Format",qW="Other",QW="Output",WW="Global",HW="Special",G7={};M1(G7,{languages:()=>YW,options:()=>RW,parsers:()=>IW,printers:()=>PW});var XW=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],PZ={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},vW={singleQuote:PZ.singleQuote},jW=vW,yW=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],GW={bracketSpacing:PZ.bracketSpacing},KW=GW,UW=[{name:"Handlebars",type:"markup",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],wW=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],u5="HTML",MW={bracketSameLine:PZ.bracketSameLine,htmlWhitespaceSensitivity:{category:u5,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:PZ.singleAttributePerLine,vueIndentScriptAndStyle:{category:u5,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kW=MW,bW=[{name:"JavaScript",type:"programming",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],tmScope:"source.js",aceMode:"javascript",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],filenames:["Jakefile","start.frag","end.frag"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",extensions:[".js.flow"],tmScope:"source.js",aceMode:"javascript",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],filenames:[],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,filenames:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],w0="JavaScript",BW={arrowParens:{category:w0,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:PZ.bracketSameLine,objectWrap:PZ.objectWrap,bracketSpacing:PZ.bracketSpacing,jsxBracketSameLine:{category:w0,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:w0,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:w0,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:w0,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:PZ.singleQuote,jsxSingleQuote:{category:w0,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:w0,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:w0,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:PZ.singleAttributePerLine},SW=BW,FW=[{name:"JSON.stringify",type:"data",extensions:[".importmap"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],tmScope:"source.json.comments",aceMode:"javascript",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],NW=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],hW={proseWrap:PZ.proseWrap,singleQuote:PZ.singleQuote},LW=hW,AW=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],fW={bracketSpacing:PZ.bracketSpacing,singleQuote:PZ.singleQuote,proseWrap:PZ.proseWrap},gW=fW;function mW(Z){let $=Object.create(null),J=Object.create(null);for(let{importPlugin:z,parsers:V=[],printers:q=[]}of Z){let Q=async()=>{let W=await z();return Object.assign($,W.parsers),Object.assign(J,W.printers),W};for(let W of V)$[W]=async()=>(await Q()).parsers[W];for(let W of q)J[W]=async()=>(await Q()).printers[W]}return{parsers:$,printers:J}}var RW={...jW,...KW,...kW,...SW,...LW,...gW},YW=[...XW,...yW,...UW,...wW,...bW,...FW,...NW,...AW],{parsers:IW,printers:PW}=mW([{importPlugin:()=>import("./chunk-mgk9sh16.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./chunk-9j1qqdr2.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./chunk-f45tp3e3.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./chunk-371r2111.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./chunk-5fz8tph5.js"),parsers:["flow"]},{importPlugin:()=>import("./chunk-h9pvnp5c.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./chunk-2q96x1t5.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./chunk-ppfjf7qx.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./chunk-qjn86fc0.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./chunk-w87a3mzm.js"),parsers:["meriyah"]},{importPlugin:()=>import("./chunk-b8tw709r.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./chunk-mk6cddvd.js"),parsers:["typescript"]},{importPlugin:()=>import("./chunk-5qam3c8r.js"),parsers:["yaml"],printers:["yaml"]}]);function CW(){return[G7]}var K7=CW;function OW(Z,$){return D6(Z,TW.join($,"noop.js"))}var uW=OW;async function DW(Z,$){if(t1(Z))return import(Z);if(D5.isAbsolute(Z))return import(l5(Z).href);try{return await import(l5(D5.resolve(Z)).href)}catch{return uW(Z,$)}}async function lW(Z,$){let J=await DW(Z,$);return{name:Z,...J.default??J}}var i1=new Map;function pW(Z){if(typeof Z!=="string"&&!(Z instanceof URL))return Z;let $=process.cwd(),J=JSON.stringify({name:Z,cwd:$});if(!i1.has(J))i1.set(J,lW(Z,$));return i1.get(J)}function EW(){i1.clear()}function _W(Z=[]){return Promise.all(Z.map(($)=>pW($)))}var U7=_W,iW=_Z(x$(),1),aW=s1.sep==="\\"?(Z)=>B1(!1,Z,"\\","/"):(Z)=>Z;function rW(Z,$){let J=Z2($),z=t1(Z)?sW.fileURLToPath(Z):s1.resolve(Z);return s1.relative(J?s1.dirname(J):process.cwd(),z)}async function xW(Z,$){let J="";if(Z)J+=await b1(Z)??"";if(!$)J+=`
108
108
  node_modules`;if(!J)return;let z=(0,iW.default)({allowRelativePaths:!0}).add(J);return(V)=>z.checkIgnore(aW(rW(V,Z))).ignored}async function w7(Z,$){if(Z.length===0&&!$)Z=[void 0];let J=(await Promise.all(Z.map((z)=>xW(z,$)))).filter(Boolean);return(z)=>J.some((V)=>V(z))}async function cW(Z,$){let{ignorePath:J,withNodeModules:z}=$;return(await w7(J,z))(Z)}function nW(Z,$){return $=new Set($),Object.fromEntries(Object.entries(Z).filter(([J])=>!$.has(J)))}var dW=nW;async function eW(Z,$={}){if(typeof Z!=="string"&&!(Z instanceof URL))throw TypeError(`expect \`file\` to be a string or URL, got \`${typeof Z}\``);let{ignorePath:J,withNodeModules:z}=$;if(!Array.isArray(J))J=[J];let V=await cW(Z,{ignorePath:J,withNodeModules:z}),q;if(!V)q=$.parser??await oW(Z,$);return{ignored:V,inferredParser:q??null}}async function oW(Z,$){let J;if($.resolveConfig!==!1)J=await p6(Z,{editorconfig:!1});if(J==null?void 0:J.parser)return J.parser;let z=$.plugins??(J==null?void 0:J.plugins)??[];return z=(await Promise.all([K7(),U7(z)])).flat(),h4({plugins:z},{physicalFile:Z})}var tW=eW,ZH="3.6.2",M7={};M1(M7,{addDanglingComment:()=>D0,addLeadingComment:()=>U1,addTrailingComment:()=>w1,getAlignmentSize:()=>b4,getIndentSize:()=>QH,getMaxContinuousCount:()=>XH,getNextNonSpaceNonCommentCharacter:()=>jH,getNextNonSpaceNonCommentCharacterIndex:()=>SH,getPreferredQuote:()=>GH,getStringWidth:()=>M4,hasNewline:()=>b0,hasNewlineInRange:()=>UH,hasSpaces:()=>MH,isNextLineEmpty:()=>LH,isNextLineEmptyAfterIndex:()=>m4,isPreviousLineEmpty:()=>NH,makeString:()=>bH,skip:()=>S1,skipEverythingButNewLine:()=>x6,skipInlineComment:()=>A4,skipNewline:()=>_0,skipSpaces:()=>F0,skipToLineEnd:()=>r6,skipTrailingComment:()=>f4,skipWhitespace:()=>xq});function $H(Z,$){if($===!1)return!1;if(Z.charAt($)==="/"&&Z.charAt($+1)==="*"){for(let J=$+2;J<Z.length;++J)if(Z.charAt(J)==="*"&&Z.charAt(J+1)==="/")return J+2}return $}var A4=$H;function JH(Z,$){if($===!1)return!1;if(Z.charAt($)==="/"&&Z.charAt($+1)==="/")return x6(Z,$);return $}var f4=JH;function zH(Z,$){let J=null,z=$;while(z!==J)J=z,z=F0(Z,z),z=A4(Z,z),z=f4(Z,z),z=_0(Z,z);return z}var g4=zH;function VH(Z,$){let J=null,z=$;while(z!==J)J=z,z=r6(Z,z),z=A4(Z,z),z=F0(Z,z);return z=f4(Z,z),z=_0(Z,z),z!==!1&&b0(Z,z)}var m4=VH;function qH(Z,$){let J=Z.lastIndexOf(`
109
109
  `);if(J===-1)return 0;return b4(Z.slice(J+1).match(/^[\t ]*/u)[0],$)}var QH=qH;function WH(Z){if(typeof Z!=="string")throw TypeError("Expected a string");return Z.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function HH(Z,$){let J=Z.match(new RegExp(`(${WH($)})+`,"gu"));if(J===null)return 0;return J.reduce((z,V)=>Math.max(z,V.length/$.length),0)}var XH=HH;function vH(Z,$){let J=g4(Z,$);return J===!1?"":Z.charAt(J)}var jH=vH,I1="'",p5='"';function yH(Z,$){let J=$===!0||$===I1?I1:p5,z=J===I1?p5:I1,V=0,q=0;for(let Q of Z)if(Q===J)V++;else if(Q===z)q++;return V>q?z:J}var GH=yH;function KH(Z,$,J){for(let z=$;z<J;++z)if(Z.charAt(z)===`
110
110
  `)return!0;return!1}var UH=KH;function wH(Z,$,J={}){return F0(Z,J.backwards?$-1:$,J)!==$}var MH=wH;function kH(Z,$,J){let z=$==='"'?"'":'"',q=B1(!1,Z,/\\(.)|(["'])/gsu,(Q,W,H)=>{if(W===z)return W;if(H===$)return"\\"+H;if(H)return H;return J&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(W)?W:"\\"+W});return $+q+$}var bH=kH;function BH(Z,$,J){return g4(Z,J($))}function SH(Z,$){return arguments.length===2||typeof $==="number"?g4(Z,$):BH(...arguments)}function FH(Z,$,J){return F4(Z,J($))}function NH(Z,$){return arguments.length===2||typeof $==="number"?F4(Z,$):FH(...arguments)}function hH(Z,$,J){return m4(Z,J($))}function LH(Z,$){return arguments.length===2||typeof $==="number"?m4(Z,$):hH(...arguments)}function k0(Z,$=1){return async(...J)=>{let z=J[$]??{},{plugins:V=[]}=z;return J[$]={...z,plugins:(await Promise.all([K7(),U7(V)])).flat()},Z(...J)}}var k7=k0(j7);async function b7(Z,$){let{formatted:J}=await k7(Z,{...$,cursorOffset:-1});return J}async function AH(Z,$){return await b7(Z,$)===Z}async function fH(){Qq(),EW()}var gH=k0(N4,0),mH=k0((Z,$)=>h4($,{physicalFile:Z})),RH={errors:X6,optionCategories:y7,createIsIgnoredFunction:w7,formatOptionsHiddenDefaults:c2,normalizeOptions:$7,getSupportInfoWithoutPlugins:N4,normalizeOptionSettings:t6,inferParser:(Z,$)=>Promise.resolve(($==null?void 0:$.parser)??mH(Z,$)),vnopts:{ChoiceSchema:H6,apiDescriptor:l0},fastGlob:JJ.default,createTwoFilesPatch:ZJ,picocolors:zJ.default,leven:J6,utils:{omit:dW,createMockable:v6}},YH={parse:k0(eQ),formatAST:k0(oQ),formatDoc:k0(tQ),printToDoc:k0(ZW),printDocToString:k0($W),mockable:j6},KX=Z6;export{ZH as version,M7 as util,Xq as resolveConfigFile,p6 as resolveConfig,gH as getSupportInfo,tW as getFileInfo,k7 as formatWithCursor,b7 as format,U2 as doc,KX as default,fH as clearConfigCache,AH as check,RH as __internal,YH as __debug};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Df as V}from"./chunk-f6y7a5w3.js";import{Fr as e}from"./chunk-6h2faxs9.js";import{BP as N}from"./chunk-qkwhgfjt.js";import{CP as z}from"./chunk-s2za1y84.js";var gJ=z(V(),1);var t=z(N(),1),D=z(V(),1);var RJ=z(N(),1);var A=z(N(),1),p=z(V(),1),M=z(e(),1);var c;function VJ(){if(c===void 0)try{let J=globalThis.process.argv0;c=J?`unknown_service:${J}`:"unknown_service"}catch{c="unknown_service"}return c}var x=(J)=>{return J!==null&&typeof J==="object"&&typeof J.then==="function"};class i{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(J,$){let W=new i({},$);return W._rawAttributes=jJ(J),W._asyncAttributesPending=J.filter(([Z,Q])=>x(Q)).length>0,W}constructor(J,$){let W=J.attributes??{};this._rawAttributes=Object.entries(W).map(([Z,Q])=>{if(x(Q))this._asyncAttributesPending=!0;return[Z,Q]}),this._rawAttributes=jJ(this._rawAttributes),this._schemaUrl=iJ($?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let J=0;J<this._rawAttributes.length;J++){let[$,W]=this._rawAttributes[J];this._rawAttributes[J]=[$,x(W)?await W:W]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)A.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let J={};for(let[$,W]of this._rawAttributes){if(x(W)){A.diag.debug(`Unsettled resource attribute ${$} skipped`);continue}if(W!=null)J[$]??=W}if(!this._asyncAttributesPending)this._memoizedAttributes=J;return J}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(J){if(J==null)return this;let $=oJ(this,J),W=$?{schemaUrl:$}:void 0;return i.FromAttributeList([...J.getRawAttributes(),...this.getRawAttributes()],W)}}function DJ(J,$){return i.FromAttributeList(Object.entries(J),$)}function JJ(){return DJ({[M.ATTR_SERVICE_NAME]:VJ(),[M.ATTR_TELEMETRY_SDK_LANGUAGE]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_LANGUAGE],[M.ATTR_TELEMETRY_SDK_NAME]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_NAME],[M.ATTR_TELEMETRY_SDK_VERSION]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_VERSION]})}function jJ(J){return J.map(([$,W])=>{if(x(W))return[$,W.catch((Z)=>{A.diag.debug("promise rejection for resource attribute: %s - %s",$,Z);return})];return[$,W]})}function iJ(J){if(typeof J==="string"||J===void 0)return J;A.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",J);return}function oJ(J,$){let W=J?.schemaUrl,Z=$?.schemaUrl,Q=W===void 0||W==="",q=Z===void 0||Z==="";if(Q)return Z;if(q)return W;if(W===Z)return W;A.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',W,Z);return}var H=z(N(),1),E=z(V(),1);var G=z(N(),1),Y=z(V(),1),h=z(e(),1);var MJ="exception";var C=Symbol.for("nodejs.util.inspect.custom");function R(J){let $={};for(let[W,Z]of J.getRawAttributes()){if(typeof Z?.then==="function")continue;if(Z!=null)$[W]??=Z}return $}function b(J,$,W,Z,Q){if(typeof W==="number"&&W<0){let X=`[${J}]`;return Z?.stylize?Z.stylize(X,"special"):X}if(typeof Q!=="function"||!Z)return $;let q={...Z,depth:Z.depth==null?Z.depth:Z.depth-1};return`${J} ${Q($,q)}`}class $J{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:G.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(J){let $=Date.now();if(this._spanContext=J.spanContext,this._performanceStartTime=Y.otperformance.now(),this._performanceOffset=$-(this._performanceStartTime+Y.otperformance.timeOrigin),this._startTimeProvided=J.startTime!=null,this._spanLimits=J.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=J.spanProcessor,this.name=J.name,this.parentSpanContext=J.parentSpanContext,this.kind=J.kind,J.links)for(let W of J.links)this.addLink(W);if(this.startTime=this._getTime(J.startTime??$),this.resource=J.resource,this.instrumentationScope=J.scope,this._recordEndMetrics=J.recordEndMetrics,J.attributes!=null)this.setAttributes(J.attributes);this._spanProcessor.onStart(this,J.context)}spanContext(){return this._spanContext}setAttribute(J,$){if($==null||this._isSpanEnded())return this;if(J.length===0)return G.diag.warn(`Invalid attribute key: ${J}`),this;if(!Y.isAttributeValue($))return G.diag.warn(`Invalid attribute value set for key: ${J}`),this;let{attributeCountLimit:W}=this._spanLimits,Z=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(W!==void 0&&this._attributesCount>=W&&Z)return this._droppedAttributesCount++,this;if(this.attributes[J]=this._truncateToSize($),Z)this._attributesCount++;return this}setAttributes(J){for(let $ in J)if(Object.prototype.hasOwnProperty.call(J,$))this.setAttribute($,J[$]);return this}addEvent(J,$,W){if(this._isSpanEnded())return this;let{eventCountLimit:Z}=this._spanLimits;if(Z===0)return G.diag.warn("No events allowed."),this._droppedEventsCount++,this;if(Z!==void 0&&this.events.length>=Z){if(this._droppedEventsCount===0)G.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if(Y.isTimeInput($)){if(!Y.isTimeInput(W))W=$;$=void 0}let Q=Y.sanitizeAttributes($),{attributePerEventCountLimit:q}=this._spanLimits,X={},w=0,K=0;for(let U in Q){if(!Object.prototype.hasOwnProperty.call(Q,U))continue;let m=Q[U];if(q!==void 0&&K>=q){w++;continue}X[U]=this._truncateToSize(m),K++}return this.events.push({name:J,attributes:X,time:this._getTime(W),droppedAttributesCount:w}),this}addLink(J){if(this._isSpanEnded())return this;let{linkCountLimit:$}=this._spanLimits;if($===0)return this._droppedLinksCount++,this;if($!==void 0&&this.links.length>=$){if(this._droppedLinksCount===0)G.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:W}=this._spanLimits,Z=Y.sanitizeAttributes(J.attributes),Q={},q=0,X=0;for(let K in Z){if(!Object.prototype.hasOwnProperty.call(Z,K))continue;let U=Z[K];if(W!==void 0&&X>=W){q++;continue}Q[K]=this._truncateToSize(U),X++}let w={context:J.context};if(X>0)w.attributes=Q;if(q>0)w.droppedAttributesCount=q;return this.links.push(w),this}addLinks(J){for(let $ of J)this.addLink($);return this}setStatus(J){if(this._isSpanEnded())return this;if(J.code===G.SpanStatusCode.UNSET)return this;if(this.status.code===G.SpanStatusCode.OK)return this;let $={code:J.code};if(J.code===G.SpanStatusCode.ERROR){if(typeof J.message==="string")$.message=J.message;else if(J.message!=null)G.diag.warn(`Dropping invalid status.message of type '${typeof J.message}', expected 'string'`)}return this.status=$,this}updateName(J){if(this._isSpanEnded())return this;return this.name=J,this}end(J){if(this._isSpanEnded()){G.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}if(this.endTime=this._getTime(J),this._duration=Y.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0)G.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0];if(this._droppedEventsCount>0)G.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)G.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`);if(this._spanProcessor.onEnding)this._spanProcessor.onEnding(this);this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(J){if(typeof J==="number"&&J<=Y.otperformance.now())return Y.hrTime(J+this._performanceOffset);if(typeof J==="number")return Y.millisToHrTime(J);if(J instanceof Date)return Y.millisToHrTime(J.getTime());if(Y.isTimeInputHrTime(J))return J;if(this._startTimeProvided)return Y.millisToHrTime(Date.now());let $=Y.otperformance.now()-this._performanceStartTime;return Y.addHrTimes(this.startTime,Y.millisToHrTime($))}isRecording(){return this._ended===!1}recordException(J,$){let W={};if(typeof J==="string")W[h.ATTR_EXCEPTION_MESSAGE]=J;else if(J){if(J.code)W[h.ATTR_EXCEPTION_TYPE]=J.code.toString();else if(J.name)W[h.ATTR_EXCEPTION_TYPE]=J.name;if(J.message)W[h.ATTR_EXCEPTION_MESSAGE]=J.message;if(J.stack)W[h.ATTR_EXCEPTION_STACKTRACE]=J.stack}if(W[h.ATTR_EXCEPTION_TYPE]||W[h.ATTR_EXCEPTION_MESSAGE])this.addEvent(MJ,W,$);else G.diag.warn(`Failed to record an exception ${J}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let J=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);G.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,J)}return this._ended}_truncateToLimitUtil(J,$){if(J.length<=$)return J;return J.substring(0,$)}_truncateToSize(J){let $=this._attributeValueLengthLimit;if($<=0)return G.diag.warn(`Attribute value limit must be positive, got ${$}`),J;if(typeof J==="string")return this._truncateToLimitUtil(J,$);if(Array.isArray(J))return J.map((W)=>typeof W==="string"?this._truncateToLimitUtil(W,$):W);return J}[C](J,$,W){let Z={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:R(this.resource)}};return b("SpanImpl",Z,J,$,W)}}var B;(function(J){J[J.NOT_RECORD=0]="NOT_RECORD",J[J.RECORD=1]="RECORD",J[J.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(B||(B={}));var OJ="otel.component.name",UJ="otel.component.type",hJ="otel.span.parent.origin",WJ="otel.span.sampling_result",PJ="otel.sdk.processor.span.processed",fJ="otel.sdk.processor.span.queue.capacity",NJ="otel.sdk.processor.span.queue.size",kJ="otel.sdk.span.live",IJ="otel.sdk.span.started",LJ="batching_span_processor",_J="simple_span_processor";class ZJ{startedSpans;liveSpans;constructor(J){this.startedSpans=J.createCounter(IJ,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=J.createUpDownCounter(kJ,{unit:"{span}",description:"The number of currently live spans."})}startSpan(J,$){let W=rJ($);if(this.startedSpans.add(1,{[hJ]:nJ(J),[WJ]:W}),$===B.NOT_RECORD)return()=>{};let Z={[WJ]:W};return this.liveSpans.add(1,Z),()=>{this.liveSpans.add(-1,Z)}}}function nJ(J){if(!J)return"none";if(J.isRemote)return"remote";return"local"}function rJ(J){switch(J){case B.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case B.RECORD:return"RECORD_ONLY";case B.NOT_RECORD:return"DROP"}}var FJ="2.9.0";class QJ{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(J,$){this.instrumentationScope=J,this._sampler=$.sampler,this._spanLimits=$.spanLimits,this._resource=$.resource,this._idGenerator=$.idGenerator,this._spanProcessor=$.spanProcessor;let W=$.meterProvider.getMeter("@opentelemetry/sdk-trace",FJ);this._tracerMetrics=new ZJ(W)}startSpan(J,$={},W=H.context.active()){if($.root)W=H.trace.deleteSpan(W);let Z=H.trace.getSpan(W);if(E.isTracingSuppressed(W))return H.diag.debug("Instrumentation suppressed, returning Noop Span"),H.trace.wrapSpanContext(H.INVALID_SPAN_CONTEXT);let Q=Z?.spanContext(),q=this._idGenerator.generateSpanId(),X,w,K;if(!Q||!H.trace.isSpanContextValid(Q))w=this._idGenerator.generateTraceId();else w=Q.traceId,K=Q.traceState,X=Q;let U=$.kind??H.SpanKind.INTERNAL,m=($.links??[]).map((l)=>{return{context:l.context,attributes:E.sanitizeAttributes(l.attributes)}}),KJ=E.sanitizeAttributes($.attributes),g=this._sampler.shouldSample(W,w,J,U,KJ,m),lJ=this._tracerMetrics.startSpan(Q,g.decision);K=g.traceState??K;let cJ=g.decision===H.SamplingDecision.RECORD_AND_SAMPLED?H.TraceFlags.SAMPLED:H.TraceFlags.NONE,BJ={traceId:w,spanId:q,traceFlags:cJ,traceState:K};if(g.decision===H.SamplingDecision.NOT_RECORD)return H.diag.debug("Recording is off, propagating context in a non-recording span"),H.trace.wrapSpanContext(BJ);let pJ=E.sanitizeAttributes(Object.assign(KJ,g.attributes));return new $J({resource:this._resource,scope:this.instrumentationScope,context:W,spanContext:BJ,name:J,kind:U,links:m,parentSpanContext:X,attributes:pJ,startTime:$.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:lJ})}startActiveSpan(J,$,W,Z){let Q,q,X;if(arguments.length<2)return;else if(arguments.length===2)X=$;else if(arguments.length===3)Q=$,X=W;else Q=$,q=W,X=Z;let w=q??H.context.active(),K=this.startSpan(J,Q,w),U=H.trace.setSpan(w,K);return H.context.with(U,X,void 0,K)}[C](J,$,W){let Z={instrumentationScope:this.instrumentationScope,resource:{attributes:R(this._resource)},spanLimits:this._spanLimits};return b("Tracer",Z,J,$,W)}}var yJ=z(V(),1);class qJ{_spanProcessors;constructor(J){this._spanProcessors=J}forceFlush(){let J=[];for(let $ of this._spanProcessors)J.push($.forceFlush());return new Promise(($)=>{Promise.all(J).then(()=>{$()}).catch((W)=>{yJ.globalErrorHandler(W||Error("MultiSpanProcessor: forceFlush failed")),$()})})}onStart(J,$){for(let W of this._spanProcessors)W.onStart(J,$)}onEnding(J){for(let $ of this._spanProcessors)if($.onEnding)$.onEnding(J)}onEnd(J){for(let $ of this._spanProcessors)$.onEnd(J)}shutdown(){let J=[];for(let $ of this._spanProcessors)J.push($.shutdown());return new Promise(($,W)=>{Promise.all(J).then(()=>{$()},W)})}}var _=z(N(),1),xJ=z(V(),1);class k{shouldSample(){return{decision:B.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class j{shouldSample(){return{decision:B.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class P{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(J){if(this._root=J.root,!this._root)xJ.globalErrorHandler(Error("ParentBasedSampler must have a root sampler configured")),this._root=new j;this._remoteParentSampled=J.remoteParentSampled??new j,this._remoteParentNotSampled=J.remoteParentNotSampled??new k,this._localParentSampled=J.localParentSampled??new j,this._localParentNotSampled=J.localParentNotSampled??new k}shouldSample(J,$,W,Z,Q,q){let X=_.trace.getSpanContext(J);if(!X||!_.isSpanContextValid(X))return this._root.shouldSample(J,$,W,Z,Q,q);if(X.isRemote){if(X.traceFlags&_.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(J,$,W,Z,Q,q);return this._remoteParentNotSampled.shouldSample(J,$,W,Z,Q,q)}if(X.traceFlags&_.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(J,$,W,Z,Q,q);return this._localParentNotSampled.shouldSample(J,$,W,Z,Q,q)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}var O=z(N(),1),I=z(V(),1);var XJ=z(e(),1);var AJ=new Map;class d{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(J,$,W){let Z=AJ.get(J)??0;if(AJ.set(J,Z+1),this.standardAttrs={[UJ]:J,[OJ]:`${J}/${Z}`},this.droppedAttrs={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:"queue_full"},this.processedSpans=$.createCounter(PJ,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),W){let{capacity:Q,getQueueSize:q}=W;$.createUpDownCounter(fJ,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(Q,this.standardAttrs),this.queueSize=$.createObservableUpDownCounter(NJ,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=(w)=>w.observe(q(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(J){this.processedSpans.add(J,this.droppedAttrs)}finishSpans(J,$){if(!$){this.processedSpans.add(J,this.standardAttrs);return}let W={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:$.name};this.processedSpans.add(J,W)}shutdown(){if(this.queueSize&&this.queueSizeCallback)this.queueSize.removeCallback(this.queueSizeCallback)}}class YJ{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(J){if(this._exporter=J.exporter,this._maxExportBatchSize=J.maxExportBatchSize??512,this._maxQueueSize=J.maxQueueSize??2048,this._scheduledDelayMillis=J.scheduledDelayMillis??5000,this._exportTimeoutMillis=J.exportTimeoutMillis??30000,this._shutdownOnce=new I.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)O.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):O.createNoopMeter();this._metrics=new d(LJ,$,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&O.TraceFlags.SAMPLED)===0)return;this._addToBuffer(J)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>{return this.onShutdown()}).then(()=>{return this._flushAll()}).then(()=>{return this._metrics.shutdown(),this._exporter.shutdown()})}_addToBuffer(J){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)O.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++,this._metrics.dropSpans(1);return}if(this._droppedSpansCount>0)O.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(J),this._maybeStartTimer()}_flushAll(){return new Promise((J,$)=>{let W=[],Z=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let Q=0,q=Z;Q<q;Q++)W.push(this._flushOneBatch());Promise.all(W).then(()=>{J()}).catch($)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((J,$)=>{let W=setTimeout(()=>{$(Error("Timeout"))},this._exportTimeoutMillis);O.context.with(I.suppressTracing(O.context.active()),()=>{let Z;if(this._finishedSpans.length<=this._maxExportBatchSize)Z=this._finishedSpans,this._finishedSpans=[];else Z=this._finishedSpans.splice(0,this._maxExportBatchSize);let Q=()=>this._exporter.export(Z,(X)=>{if(clearTimeout(W),this._metrics.finishSpans(Z.length,X.error),X.code===I.ExportResultCode.SUCCESS)J();else $(X.error??Error("BatchSpanProcessor: span export failed"))}),q=null;for(let X=0,w=Z.length;X<w;X++){let K=Z[X];if(K.resource.asyncAttributesPending&&K.resource.waitForAsyncAttributes)q??=[],q.push(K.resource.waitForAsyncAttributes())}if(q===null)Q();else Promise.all(q).then(Q,(X)=>{I.globalErrorHandler(X),$(X)})})})}_maybeStartTimer(){if(this._isExporting)return;let J=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{if(this._isExporting=!1,this._finishedSpans.length>0)this._clearTimer(),this._maybeStartTimer()}).catch(($)=>{this._isExporting=!1,I.globalErrorHandler($)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return J();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>J(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}}class v extends YJ{onShutdown(){}}class F{generateTraceId=CJ(16);generateSpanId=CJ(8)}var o=Buffer.allocUnsafe(16);function CJ(J){return function(){for(let W=0;W<J/4;W++)o.writeUInt32BE(Math.random()*4294967296>>>0,W*4);for(let W=0;W<J;W++)if(o[W]>0)break;else if(W===J-1)o[J-1]=1;return o.toString("hex",0,J)}}var y;(function(J){J[J.resolved=0]="resolved",J[J.timeout=1]="timeout",J[J.error=2]="error",J[J.unresolved=3]="unresolved"})(y||(y={}));class n{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(J={}){this._forceFlushTimeoutMillis=J.forceFlushTimeoutMillis??30000,this._resource=J.resource??JJ();let $=J.spanProcessors??[];this._activeSpanProcessor=new qJ($),this._tracerOptions={resource:this._resource,sampler:J.sampler??new P({root:new j}),spanLimits:{attributeCountLimit:J.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:J.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:J.spanLimits?.eventCountLimit??128,linkCountLimit:J.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:J.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:J.spanLimits?.attributePerLinkCountLimit??128},idGenerator:J.idGenerator||new F,spanProcessor:this._activeSpanProcessor,meterProvider:J.meterProvider??{getMeter(){return RJ.createNoopMeter()}}}}getTracer(J,$,W){let Z=`${J}@${$||""}:${W?.schemaUrl||""}`;if(!this._tracers.has(Z))this._tracers.set(Z,new QJ({name:J,version:$,schemaUrl:W?.schemaUrl},this._tracerOptions));return this._tracers.get(Z)}forceFlush(){let J=this._forceFlushTimeoutMillis,$=this._activeSpanProcessor._spanProcessors.map((W)=>{return new Promise((Z)=>{let Q,q=setTimeout(()=>{Z(Error(`Span processor did not completed within timeout period of ${J} ms`)),Q=y.timeout},J);W.forceFlush().then(()=>{if(clearTimeout(q),Q!==y.timeout)Q=y.resolved,Z(Q)}).catch((X)=>{clearTimeout(q),Q=y.error,Z(X)})})});return new Promise((W,Z)=>{Promise.all($).then((Q)=>{let q=Q.filter((X)=>X!==y.resolved);if(q.length>0)Z(q);else W()}).catch((Q)=>Z([Q]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[C](J,$,W){let Z=this._activeSpanProcessor._spanProcessors,Q={resource:{attributes:R(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:Z.map((q)=>q.constructor?.name??"SpanProcessor")};return b("TracerProvider",Q,J,$,W)}}var S=z(V(),1);class zJ{export(J,$){return this._sendSpans(J,$)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(J){return{resource:{attributes:J.resource.attributes},instrumentationScope:J.instrumentationScope,traceId:J.spanContext().traceId,parentSpanContext:J.parentSpanContext,traceState:J.spanContext().traceState?.serialize(),name:J.name,id:J.spanContext().spanId,kind:J.kind,timestamp:S.hrTimeToMicroseconds(J.startTime),duration:S.hrTimeToMicroseconds(J.duration),attributes:J.attributes,status:J.status,events:J.events,links:J.links}}_sendSpans(J,$){for(let W of J)console.dir(this._exportInfo(W),{depth:3});if($)return $({code:S.ExportResultCode.SUCCESS})}}var HJ=z(V(),1);class GJ{_finishedSpans=[];_stopped=!1;export(J,$){if(this._stopped)return $({code:HJ.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...J),setTimeout(()=>$({code:HJ.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}var r=z(N(),1),L=z(V(),1);class a{_exporter;_metrics;_shutdownOnce;_pendingExports;constructor(J){this._exporter=J.exporter,this._shutdownOnce=new L.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):r.createNoopMeter();this._metrics=new d(_J,$)}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&r.TraceFlags.SAMPLED)===0)return;let $=this._doExport(J).catch((W)=>L.globalErrorHandler(W));this._pendingExports.add($),$.finally(()=>this._pendingExports.delete($))}async _doExport(J){if(J.resource.asyncAttributesPending)await J.resource.waitForAsyncAttributes?.();let $=await L.internal._export(this._exporter,[J]);if(this._metrics.finishSpans(1,$.error),$.code!==L.ExportResultCode.SUCCESS)throw $.error??Error(`SimpleSpanProcessor: span export failed (status ${$})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._metrics.shutdown(),this._exporter.shutdown()}}class wJ{onStart(J,$){}onEnd(J){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}var bJ=z(N(),1);class T{_ratio;_upperBound;constructor(J=0){this._ratio=this._normalize(J),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(J,$){return{decision:bJ.isValidTraceId($)&&this._accumulate($)<this._upperBound?B.RECORD_AND_SAMPLED:B.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(J){if(typeof J!=="number"||isNaN(J))return 0;return J>=1?1:J<=0?0:J}_accumulate(J){let $=0;for(let W=0;W<32;W+=8){let Z=0;for(let Q=0;Q<8;Q++){let q=J.charCodeAt(W+Q),X=q<58?q-48:q<71?q-55:q-87;Z=Z<<4|X}$=($^Z)>>>0}return $}}var f;(function(J){J.AlwaysOff="always_off",J.AlwaysOn="always_on",J.ParentBasedAlwaysOff="parentbased_always_off",J.ParentBasedAlwaysOn="parentbased_always_on",J.ParentBasedTraceIdRatio="parentbased_traceidratio",J.TraceIdRatio="traceidratio"})(f||(f={}));var s=1;function vJ(){return{sampler:aJ(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:D.getNumberFromEnv("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:D.getNumberFromEnv("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function aJ(){let J=D.getStringFromEnv("OTEL_TRACES_SAMPLER")??f.ParentBasedAlwaysOn;switch(J){case f.AlwaysOn:return new j;case f.AlwaysOff:return new k;case f.ParentBasedAlwaysOn:return new P({root:new j});case f.ParentBasedAlwaysOff:return new P({root:new k});case f.TraceIdRatio:return new T(EJ());case f.ParentBasedTraceIdRatio:return new P({root:new T(EJ())});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${J}" invalid, defaulting to "${f.ParentBasedAlwaysOn}".`),new P({root:new j})}}function EJ(){let J=D.getNumberFromEnv("OTEL_TRACES_SAMPLER_ARG");if(J==null)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${s}.`),s;if(J<0||J>1)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${J} was given, but it is out of range ([0..1]), defaulting to ${s}.`),s;return J}var u=z(V(),1),sJ=128,tJ=1/0;function TJ(J){let $=Object.assign({},J.spanLimits);return $.attributeCountLimit=J.spanLimits?.attributeCountLimit??J.generalLimits?.attributeCountLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??sJ,$.attributeValueLengthLimit=J.spanLimits?.attributeValueLengthLimit??J.generalLimits?.attributeValueLengthLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??tJ,Object.assign({},J,{spanLimits:$})}class dJ extends n{constructor(J={}){let $=gJ.merge({},vJ(),TJ(J));delete $.generalLimits;super($)}}var SJ=z(V(),1);class uJ extends v{constructor(J,$){if(!$)$={};let W=[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]];for(let[Z,Q]of W)if($[Z]===void 0){let q=SJ.getNumberFromEnv(Q);if(q!==void 0)$[Z]=q}super({exporter:J,...$})}}class mJ extends a{constructor(J){super({exporter:J})}}export{T as TraceIdRatioBasedSampler,mJ as SimpleSpanProcessor,B as SamplingDecision,F as RandomIdGenerator,P as ParentBasedSampler,wJ as NoopSpanProcessor,GJ as InMemorySpanExporter,zJ as ConsoleSpanExporter,uJ as BatchSpanProcessor,dJ as BasicTracerProvider,j as AlwaysOnSampler,k as AlwaysOffSampler};
2
+ import{Ef as V}from"./chunk-6fp8a9ek.js";import{cs as e}from"./chunk-vg2fmyje.js";import{_P as N}from"./chunk-qjjch1zt.js";import{$P as z}from"./chunk-aztre27e.js";var gJ=z(V(),1);var t=z(N(),1),D=z(V(),1);var RJ=z(N(),1);var A=z(N(),1),p=z(V(),1),M=z(e(),1);var c;function VJ(){if(c===void 0)try{let J=globalThis.process.argv0;c=J?`unknown_service:${J}`:"unknown_service"}catch{c="unknown_service"}return c}var x=(J)=>{return J!==null&&typeof J==="object"&&typeof J.then==="function"};class i{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(J,$){let W=new i({},$);return W._rawAttributes=jJ(J),W._asyncAttributesPending=J.filter(([Z,Q])=>x(Q)).length>0,W}constructor(J,$){let W=J.attributes??{};this._rawAttributes=Object.entries(W).map(([Z,Q])=>{if(x(Q))this._asyncAttributesPending=!0;return[Z,Q]}),this._rawAttributes=jJ(this._rawAttributes),this._schemaUrl=iJ($?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let J=0;J<this._rawAttributes.length;J++){let[$,W]=this._rawAttributes[J];this._rawAttributes[J]=[$,x(W)?await W:W]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)A.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let J={};for(let[$,W]of this._rawAttributes){if(x(W)){A.diag.debug(`Unsettled resource attribute ${$} skipped`);continue}if(W!=null)J[$]??=W}if(!this._asyncAttributesPending)this._memoizedAttributes=J;return J}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(J){if(J==null)return this;let $=oJ(this,J),W=$?{schemaUrl:$}:void 0;return i.FromAttributeList([...J.getRawAttributes(),...this.getRawAttributes()],W)}}function DJ(J,$){return i.FromAttributeList(Object.entries(J),$)}function JJ(){return DJ({[M.ATTR_SERVICE_NAME]:VJ(),[M.ATTR_TELEMETRY_SDK_LANGUAGE]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_LANGUAGE],[M.ATTR_TELEMETRY_SDK_NAME]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_NAME],[M.ATTR_TELEMETRY_SDK_VERSION]:p.SDK_INFO[M.ATTR_TELEMETRY_SDK_VERSION]})}function jJ(J){return J.map(([$,W])=>{if(x(W))return[$,W.catch((Z)=>{A.diag.debug("promise rejection for resource attribute: %s - %s",$,Z);return})];return[$,W]})}function iJ(J){if(typeof J==="string"||J===void 0)return J;A.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",J);return}function oJ(J,$){let W=J?.schemaUrl,Z=$?.schemaUrl,Q=W===void 0||W==="",q=Z===void 0||Z==="";if(Q)return Z;if(q)return W;if(W===Z)return W;A.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',W,Z);return}var H=z(N(),1),E=z(V(),1);var G=z(N(),1),Y=z(V(),1),h=z(e(),1);var MJ="exception";var C=Symbol.for("nodejs.util.inspect.custom");function R(J){let $={};for(let[W,Z]of J.getRawAttributes()){if(typeof Z?.then==="function")continue;if(Z!=null)$[W]??=Z}return $}function b(J,$,W,Z,Q){if(typeof W==="number"&&W<0){let X=`[${J}]`;return Z?.stylize?Z.stylize(X,"special"):X}if(typeof Q!=="function"||!Z)return $;let q={...Z,depth:Z.depth==null?Z.depth:Z.depth-1};return`${J} ${Q($,q)}`}class $J{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:G.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(J){let $=Date.now();if(this._spanContext=J.spanContext,this._performanceStartTime=Y.otperformance.now(),this._performanceOffset=$-(this._performanceStartTime+Y.otperformance.timeOrigin),this._startTimeProvided=J.startTime!=null,this._spanLimits=J.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=J.spanProcessor,this.name=J.name,this.parentSpanContext=J.parentSpanContext,this.kind=J.kind,J.links)for(let W of J.links)this.addLink(W);if(this.startTime=this._getTime(J.startTime??$),this.resource=J.resource,this.instrumentationScope=J.scope,this._recordEndMetrics=J.recordEndMetrics,J.attributes!=null)this.setAttributes(J.attributes);this._spanProcessor.onStart(this,J.context)}spanContext(){return this._spanContext}setAttribute(J,$){if($==null||this._isSpanEnded())return this;if(J.length===0)return G.diag.warn(`Invalid attribute key: ${J}`),this;if(!Y.isAttributeValue($))return G.diag.warn(`Invalid attribute value set for key: ${J}`),this;let{attributeCountLimit:W}=this._spanLimits,Z=!Object.prototype.hasOwnProperty.call(this.attributes,J);if(W!==void 0&&this._attributesCount>=W&&Z)return this._droppedAttributesCount++,this;if(this.attributes[J]=this._truncateToSize($),Z)this._attributesCount++;return this}setAttributes(J){for(let $ in J)if(Object.prototype.hasOwnProperty.call(J,$))this.setAttribute($,J[$]);return this}addEvent(J,$,W){if(this._isSpanEnded())return this;let{eventCountLimit:Z}=this._spanLimits;if(Z===0)return G.diag.warn("No events allowed."),this._droppedEventsCount++,this;if(Z!==void 0&&this.events.length>=Z){if(this._droppedEventsCount===0)G.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if(Y.isTimeInput($)){if(!Y.isTimeInput(W))W=$;$=void 0}let Q=Y.sanitizeAttributes($),{attributePerEventCountLimit:q}=this._spanLimits,X={},w=0,K=0;for(let U in Q){if(!Object.prototype.hasOwnProperty.call(Q,U))continue;let m=Q[U];if(q!==void 0&&K>=q){w++;continue}X[U]=this._truncateToSize(m),K++}return this.events.push({name:J,attributes:X,time:this._getTime(W),droppedAttributesCount:w}),this}addLink(J){if(this._isSpanEnded())return this;let{linkCountLimit:$}=this._spanLimits;if($===0)return this._droppedLinksCount++,this;if($!==void 0&&this.links.length>=$){if(this._droppedLinksCount===0)G.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:W}=this._spanLimits,Z=Y.sanitizeAttributes(J.attributes),Q={},q=0,X=0;for(let K in Z){if(!Object.prototype.hasOwnProperty.call(Z,K))continue;let U=Z[K];if(W!==void 0&&X>=W){q++;continue}Q[K]=this._truncateToSize(U),X++}let w={context:J.context};if(X>0)w.attributes=Q;if(q>0)w.droppedAttributesCount=q;return this.links.push(w),this}addLinks(J){for(let $ of J)this.addLink($);return this}setStatus(J){if(this._isSpanEnded())return this;if(J.code===G.SpanStatusCode.UNSET)return this;if(this.status.code===G.SpanStatusCode.OK)return this;let $={code:J.code};if(J.code===G.SpanStatusCode.ERROR){if(typeof J.message==="string")$.message=J.message;else if(J.message!=null)G.diag.warn(`Dropping invalid status.message of type '${typeof J.message}', expected 'string'`)}return this.status=$,this}updateName(J){if(this._isSpanEnded())return this;return this.name=J,this}end(J){if(this._isSpanEnded()){G.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}if(this.endTime=this._getTime(J),this._duration=Y.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0)G.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0];if(this._droppedEventsCount>0)G.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)G.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`);if(this._spanProcessor.onEnding)this._spanProcessor.onEnding(this);this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(J){if(typeof J==="number"&&J<=Y.otperformance.now())return Y.hrTime(J+this._performanceOffset);if(typeof J==="number")return Y.millisToHrTime(J);if(J instanceof Date)return Y.millisToHrTime(J.getTime());if(Y.isTimeInputHrTime(J))return J;if(this._startTimeProvided)return Y.millisToHrTime(Date.now());let $=Y.otperformance.now()-this._performanceStartTime;return Y.addHrTimes(this.startTime,Y.millisToHrTime($))}isRecording(){return this._ended===!1}recordException(J,$){let W={};if(typeof J==="string")W[h.ATTR_EXCEPTION_MESSAGE]=J;else if(J){if(J.code)W[h.ATTR_EXCEPTION_TYPE]=J.code.toString();else if(J.name)W[h.ATTR_EXCEPTION_TYPE]=J.name;if(J.message)W[h.ATTR_EXCEPTION_MESSAGE]=J.message;if(J.stack)W[h.ATTR_EXCEPTION_STACKTRACE]=J.stack}if(W[h.ATTR_EXCEPTION_TYPE]||W[h.ATTR_EXCEPTION_MESSAGE])this.addEvent(MJ,W,$);else G.diag.warn(`Failed to record an exception ${J}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let J=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);G.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,J)}return this._ended}_truncateToLimitUtil(J,$){if(J.length<=$)return J;return J.substring(0,$)}_truncateToSize(J){let $=this._attributeValueLengthLimit;if($<=0)return G.diag.warn(`Attribute value limit must be positive, got ${$}`),J;if(typeof J==="string")return this._truncateToLimitUtil(J,$);if(Array.isArray(J))return J.map((W)=>typeof W==="string"?this._truncateToLimitUtil(W,$):W);return J}[C](J,$,W){let Z={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:R(this.resource)}};return b("SpanImpl",Z,J,$,W)}}var B;(function(J){J[J.NOT_RECORD=0]="NOT_RECORD",J[J.RECORD=1]="RECORD",J[J.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(B||(B={}));var OJ="otel.component.name",UJ="otel.component.type",hJ="otel.span.parent.origin",WJ="otel.span.sampling_result",PJ="otel.sdk.processor.span.processed",fJ="otel.sdk.processor.span.queue.capacity",NJ="otel.sdk.processor.span.queue.size",kJ="otel.sdk.span.live",IJ="otel.sdk.span.started",LJ="batching_span_processor",_J="simple_span_processor";class ZJ{startedSpans;liveSpans;constructor(J){this.startedSpans=J.createCounter(IJ,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=J.createUpDownCounter(kJ,{unit:"{span}",description:"The number of currently live spans."})}startSpan(J,$){let W=rJ($);if(this.startedSpans.add(1,{[hJ]:nJ(J),[WJ]:W}),$===B.NOT_RECORD)return()=>{};let Z={[WJ]:W};return this.liveSpans.add(1,Z),()=>{this.liveSpans.add(-1,Z)}}}function nJ(J){if(!J)return"none";if(J.isRemote)return"remote";return"local"}function rJ(J){switch(J){case B.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case B.RECORD:return"RECORD_ONLY";case B.NOT_RECORD:return"DROP"}}var FJ="2.9.0";class QJ{_sampler;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(J,$){this.instrumentationScope=J,this._sampler=$.sampler,this._spanLimits=$.spanLimits,this._resource=$.resource,this._idGenerator=$.idGenerator,this._spanProcessor=$.spanProcessor;let W=$.meterProvider.getMeter("@opentelemetry/sdk-trace",FJ);this._tracerMetrics=new ZJ(W)}startSpan(J,$={},W=H.context.active()){if($.root)W=H.trace.deleteSpan(W);let Z=H.trace.getSpan(W);if(E.isTracingSuppressed(W))return H.diag.debug("Instrumentation suppressed, returning Noop Span"),H.trace.wrapSpanContext(H.INVALID_SPAN_CONTEXT);let Q=Z?.spanContext(),q=this._idGenerator.generateSpanId(),X,w,K;if(!Q||!H.trace.isSpanContextValid(Q))w=this._idGenerator.generateTraceId();else w=Q.traceId,K=Q.traceState,X=Q;let U=$.kind??H.SpanKind.INTERNAL,m=($.links??[]).map((l)=>{return{context:l.context,attributes:E.sanitizeAttributes(l.attributes)}}),KJ=E.sanitizeAttributes($.attributes),g=this._sampler.shouldSample(W,w,J,U,KJ,m),lJ=this._tracerMetrics.startSpan(Q,g.decision);K=g.traceState??K;let cJ=g.decision===H.SamplingDecision.RECORD_AND_SAMPLED?H.TraceFlags.SAMPLED:H.TraceFlags.NONE,BJ={traceId:w,spanId:q,traceFlags:cJ,traceState:K};if(g.decision===H.SamplingDecision.NOT_RECORD)return H.diag.debug("Recording is off, propagating context in a non-recording span"),H.trace.wrapSpanContext(BJ);let pJ=E.sanitizeAttributes(Object.assign(KJ,g.attributes));return new $J({resource:this._resource,scope:this.instrumentationScope,context:W,spanContext:BJ,name:J,kind:U,links:m,parentSpanContext:X,attributes:pJ,startTime:$.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:lJ})}startActiveSpan(J,$,W,Z){let Q,q,X;if(arguments.length<2)return;else if(arguments.length===2)X=$;else if(arguments.length===3)Q=$,X=W;else Q=$,q=W,X=Z;let w=q??H.context.active(),K=this.startSpan(J,Q,w),U=H.trace.setSpan(w,K);return H.context.with(U,X,void 0,K)}[C](J,$,W){let Z={instrumentationScope:this.instrumentationScope,resource:{attributes:R(this._resource)},spanLimits:this._spanLimits};return b("Tracer",Z,J,$,W)}}var yJ=z(V(),1);class qJ{_spanProcessors;constructor(J){this._spanProcessors=J}forceFlush(){let J=[];for(let $ of this._spanProcessors)J.push($.forceFlush());return new Promise(($)=>{Promise.all(J).then(()=>{$()}).catch((W)=>{yJ.globalErrorHandler(W||Error("MultiSpanProcessor: forceFlush failed")),$()})})}onStart(J,$){for(let W of this._spanProcessors)W.onStart(J,$)}onEnding(J){for(let $ of this._spanProcessors)if($.onEnding)$.onEnding(J)}onEnd(J){for(let $ of this._spanProcessors)$.onEnd(J)}shutdown(){let J=[];for(let $ of this._spanProcessors)J.push($.shutdown());return new Promise(($,W)=>{Promise.all(J).then(()=>{$()},W)})}}var _=z(N(),1),xJ=z(V(),1);class k{shouldSample(){return{decision:B.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class j{shouldSample(){return{decision:B.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class P{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(J){if(this._root=J.root,!this._root)xJ.globalErrorHandler(Error("ParentBasedSampler must have a root sampler configured")),this._root=new j;this._remoteParentSampled=J.remoteParentSampled??new j,this._remoteParentNotSampled=J.remoteParentNotSampled??new k,this._localParentSampled=J.localParentSampled??new j,this._localParentNotSampled=J.localParentNotSampled??new k}shouldSample(J,$,W,Z,Q,q){let X=_.trace.getSpanContext(J);if(!X||!_.isSpanContextValid(X))return this._root.shouldSample(J,$,W,Z,Q,q);if(X.isRemote){if(X.traceFlags&_.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(J,$,W,Z,Q,q);return this._remoteParentNotSampled.shouldSample(J,$,W,Z,Q,q)}if(X.traceFlags&_.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(J,$,W,Z,Q,q);return this._localParentNotSampled.shouldSample(J,$,W,Z,Q,q)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}var O=z(N(),1),I=z(V(),1);var XJ=z(e(),1);var AJ=new Map;class d{processedSpans;queueSize;queueSizeCallback;standardAttrs;droppedAttrs;constructor(J,$,W){let Z=AJ.get(J)??0;if(AJ.set(J,Z+1),this.standardAttrs={[UJ]:J,[OJ]:`${J}/${Z}`},this.droppedAttrs={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:"queue_full"},this.processedSpans=$.createCounter(PJ,{unit:"{span}",description:"The number of spans for which the processing has finished, either successful or failed."}),W){let{capacity:Q,getQueueSize:q}=W;$.createUpDownCounter(fJ,{unit:"{span}",description:"The maximum number of spans the queue of a given instance of an SDK span processor can hold."}).add(Q,this.standardAttrs),this.queueSize=$.createObservableUpDownCounter(NJ,{unit:"{span}",description:"The number of spans in the queue of a given instance of an SDK span processor."}),this.queueSizeCallback=(w)=>w.observe(q(),this.standardAttrs),this.queueSize.addCallback(this.queueSizeCallback)}}dropSpans(J){this.processedSpans.add(J,this.droppedAttrs)}finishSpans(J,$){if(!$){this.processedSpans.add(J,this.standardAttrs);return}let W={...this.standardAttrs,[XJ.ATTR_ERROR_TYPE]:$.name};this.processedSpans.add(J,W)}shutdown(){if(this.queueSize&&this.queueSizeCallback)this.queueSize.removeCallback(this.queueSizeCallback)}}class YJ{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_metrics;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(J){if(this._exporter=J.exporter,this._maxExportBatchSize=J.maxExportBatchSize??512,this._maxQueueSize=J.maxQueueSize??2048,this._scheduledDelayMillis=J.scheduledDelayMillis??5000,this._exportTimeoutMillis=J.exportTimeoutMillis??30000,this._shutdownOnce=new I.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)O.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):O.createNoopMeter();this._metrics=new d(LJ,$,{capacity:this._maxQueueSize,getQueueSize:()=>this._finishedSpans.length})}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&O.TraceFlags.SAMPLED)===0)return;this._addToBuffer(J)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>{return this.onShutdown()}).then(()=>{return this._flushAll()}).then(()=>{return this._metrics.shutdown(),this._exporter.shutdown()})}_addToBuffer(J){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)O.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++,this._metrics.dropSpans(1);return}if(this._droppedSpansCount>0)O.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(J),this._maybeStartTimer()}_flushAll(){return new Promise((J,$)=>{let W=[],Z=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let Q=0,q=Z;Q<q;Q++)W.push(this._flushOneBatch());Promise.all(W).then(()=>{J()}).catch($)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((J,$)=>{let W=setTimeout(()=>{$(Error("Timeout"))},this._exportTimeoutMillis);O.context.with(I.suppressTracing(O.context.active()),()=>{let Z;if(this._finishedSpans.length<=this._maxExportBatchSize)Z=this._finishedSpans,this._finishedSpans=[];else Z=this._finishedSpans.splice(0,this._maxExportBatchSize);let Q=()=>this._exporter.export(Z,(X)=>{if(clearTimeout(W),this._metrics.finishSpans(Z.length,X.error),X.code===I.ExportResultCode.SUCCESS)J();else $(X.error??Error("BatchSpanProcessor: span export failed"))}),q=null;for(let X=0,w=Z.length;X<w;X++){let K=Z[X];if(K.resource.asyncAttributesPending&&K.resource.waitForAsyncAttributes)q??=[],q.push(K.resource.waitForAsyncAttributes())}if(q===null)Q();else Promise.all(q).then(Q,(X)=>{I.globalErrorHandler(X),$(X)})})})}_maybeStartTimer(){if(this._isExporting)return;let J=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{if(this._isExporting=!1,this._finishedSpans.length>0)this._clearTimer(),this._maybeStartTimer()}).catch(($)=>{this._isExporting=!1,I.globalErrorHandler($)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return J();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>J(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}}class v extends YJ{onShutdown(){}}class F{generateTraceId=CJ(16);generateSpanId=CJ(8)}var o=Buffer.allocUnsafe(16);function CJ(J){return function(){for(let W=0;W<J/4;W++)o.writeUInt32BE(Math.random()*4294967296>>>0,W*4);for(let W=0;W<J;W++)if(o[W]>0)break;else if(W===J-1)o[J-1]=1;return o.toString("hex",0,J)}}var y;(function(J){J[J.resolved=0]="resolved",J[J.timeout=1]="timeout",J[J.error=2]="error",J[J.unresolved=3]="unresolved"})(y||(y={}));class n{_resource;_activeSpanProcessor;_forceFlushTimeoutMillis;_tracerOptions;_tracers=new Map;constructor(J={}){this._forceFlushTimeoutMillis=J.forceFlushTimeoutMillis??30000,this._resource=J.resource??JJ();let $=J.spanProcessors??[];this._activeSpanProcessor=new qJ($),this._tracerOptions={resource:this._resource,sampler:J.sampler??new P({root:new j}),spanLimits:{attributeCountLimit:J.spanLimits?.attributeCountLimit??128,attributeValueLengthLimit:J.spanLimits?.attributeValueLengthLimit??1/0,eventCountLimit:J.spanLimits?.eventCountLimit??128,linkCountLimit:J.spanLimits?.linkCountLimit??128,attributePerEventCountLimit:J.spanLimits?.attributePerEventCountLimit??128,attributePerLinkCountLimit:J.spanLimits?.attributePerLinkCountLimit??128},idGenerator:J.idGenerator||new F,spanProcessor:this._activeSpanProcessor,meterProvider:J.meterProvider??{getMeter(){return RJ.createNoopMeter()}}}}getTracer(J,$,W){let Z=`${J}@${$||""}:${W?.schemaUrl||""}`;if(!this._tracers.has(Z))this._tracers.set(Z,new QJ({name:J,version:$,schemaUrl:W?.schemaUrl},this._tracerOptions));return this._tracers.get(Z)}forceFlush(){let J=this._forceFlushTimeoutMillis,$=this._activeSpanProcessor._spanProcessors.map((W)=>{return new Promise((Z)=>{let Q,q=setTimeout(()=>{Z(Error(`Span processor did not completed within timeout period of ${J} ms`)),Q=y.timeout},J);W.forceFlush().then(()=>{if(clearTimeout(q),Q!==y.timeout)Q=y.resolved,Z(Q)}).catch((X)=>{clearTimeout(q),Q=y.error,Z(X)})})});return new Promise((W,Z)=>{Promise.all($).then((Q)=>{let q=Q.filter((X)=>X!==y.resolved);if(q.length>0)Z(q);else W()}).catch((Q)=>Z([Q]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[C](J,$,W){let Z=this._activeSpanProcessor._spanProcessors,Q={resource:{attributes:R(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:Z.map((q)=>q.constructor?.name??"SpanProcessor")};return b("TracerProvider",Q,J,$,W)}}var S=z(V(),1);class zJ{export(J,$){return this._sendSpans(J,$)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(J){return{resource:{attributes:J.resource.attributes},instrumentationScope:J.instrumentationScope,traceId:J.spanContext().traceId,parentSpanContext:J.parentSpanContext,traceState:J.spanContext().traceState?.serialize(),name:J.name,id:J.spanContext().spanId,kind:J.kind,timestamp:S.hrTimeToMicroseconds(J.startTime),duration:S.hrTimeToMicroseconds(J.duration),attributes:J.attributes,status:J.status,events:J.events,links:J.links}}_sendSpans(J,$){for(let W of J)console.dir(this._exportInfo(W),{depth:3});if($)return $({code:S.ExportResultCode.SUCCESS})}}var HJ=z(V(),1);class GJ{_finishedSpans=[];_stopped=!1;export(J,$){if(this._stopped)return $({code:HJ.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...J),setTimeout(()=>$({code:HJ.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}var r=z(N(),1),L=z(V(),1);class a{_exporter;_metrics;_shutdownOnce;_pendingExports;constructor(J){this._exporter=J.exporter,this._shutdownOnce=new L.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set;let $=J.selfObsMeterProvider?J.selfObsMeterProvider.getMeter("@opentelemetry/sdk-trace"):r.createNoopMeter();this._metrics=new d(_J,$)}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(J,$){}onEnd(J){if(this._shutdownOnce.isCalled)return;if((J.spanContext().traceFlags&r.TraceFlags.SAMPLED)===0)return;let $=this._doExport(J).catch((W)=>L.globalErrorHandler(W));this._pendingExports.add($),$.finally(()=>this._pendingExports.delete($))}async _doExport(J){if(J.resource.asyncAttributesPending)await J.resource.waitForAsyncAttributes?.();let $=await L.internal._export(this._exporter,[J]);if(this._metrics.finishSpans(1,$.error),$.code!==L.ExportResultCode.SUCCESS)throw $.error??Error(`SimpleSpanProcessor: span export failed (status ${$})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._metrics.shutdown(),this._exporter.shutdown()}}class wJ{onStart(J,$){}onEnd(J){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}var bJ=z(N(),1);class T{_ratio;_upperBound;constructor(J=0){this._ratio=this._normalize(J),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(J,$){return{decision:bJ.isValidTraceId($)&&this._accumulate($)<this._upperBound?B.RECORD_AND_SAMPLED:B.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(J){if(typeof J!=="number"||isNaN(J))return 0;return J>=1?1:J<=0?0:J}_accumulate(J){let $=0;for(let W=0;W<32;W+=8){let Z=0;for(let Q=0;Q<8;Q++){let q=J.charCodeAt(W+Q),X=q<58?q-48:q<71?q-55:q-87;Z=Z<<4|X}$=($^Z)>>>0}return $}}var f;(function(J){J.AlwaysOff="always_off",J.AlwaysOn="always_on",J.ParentBasedAlwaysOff="parentbased_always_off",J.ParentBasedAlwaysOn="parentbased_always_on",J.ParentBasedTraceIdRatio="parentbased_traceidratio",J.TraceIdRatio="traceidratio"})(f||(f={}));var s=1;function vJ(){return{sampler:aJ(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:D.getNumberFromEnv("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:D.getNumberFromEnv("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:D.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function aJ(){let J=D.getStringFromEnv("OTEL_TRACES_SAMPLER")??f.ParentBasedAlwaysOn;switch(J){case f.AlwaysOn:return new j;case f.AlwaysOff:return new k;case f.ParentBasedAlwaysOn:return new P({root:new j});case f.ParentBasedAlwaysOff:return new P({root:new k});case f.TraceIdRatio:return new T(EJ());case f.ParentBasedTraceIdRatio:return new P({root:new T(EJ())});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${J}" invalid, defaulting to "${f.ParentBasedAlwaysOn}".`),new P({root:new j})}}function EJ(){let J=D.getNumberFromEnv("OTEL_TRACES_SAMPLER_ARG");if(J==null)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${s}.`),s;if(J<0||J>1)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${J} was given, but it is out of range ([0..1]), defaulting to ${s}.`),s;return J}var u=z(V(),1),sJ=128,tJ=1/0;function TJ(J){let $=Object.assign({},J.spanLimits);return $.attributeCountLimit=J.spanLimits?.attributeCountLimit??J.generalLimits?.attributeCountLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_COUNT_LIMIT")??sJ,$.attributeValueLengthLimit=J.spanLimits?.attributeValueLengthLimit??J.generalLimits?.attributeValueLengthLimit??u.getNumberFromEnv("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??u.getNumberFromEnv("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??tJ,Object.assign({},J,{spanLimits:$})}class dJ extends n{constructor(J={}){let $=gJ.merge({},vJ(),TJ(J));delete $.generalLimits;super($)}}var SJ=z(V(),1);class uJ extends v{constructor(J,$){if(!$)$={};let W=[["maxExportBatchSize","OTEL_BSP_MAX_EXPORT_BATCH_SIZE"],["maxQueueSize","OTEL_BSP_MAX_QUEUE_SIZE"],["scheduledDelayMillis","OTEL_BSP_SCHEDULE_DELAY"],["exportTimeoutMillis","OTEL_BSP_EXPORT_TIMEOUT"]];for(let[Z,Q]of W)if($[Z]===void 0){let q=SJ.getNumberFromEnv(Q);if(q!==void 0)$[Z]=q}super({exporter:J,...$})}}class mJ extends a{constructor(J){super({exporter:J})}}export{T as TraceIdRatioBasedSampler,mJ as SimpleSpanProcessor,B as SamplingDecision,F as RandomIdGenerator,P as ParentBasedSampler,wJ as NoopSpanProcessor,GJ as InMemorySpanExporter,zJ as ConsoleSpanExporter,uJ as BatchSpanProcessor,dJ as BasicTracerProvider,j as AlwaysOnSampler,k as AlwaysOffSampler};