@qitqode/qitqode-android-arm64 0.2.7 → 0.2.8

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 (386) hide show
  1. package/bundle/{chunk-ga6wc979.js → chunk-03zpnwk2.js} +1 -1
  2. package/bundle/{chunk-qdvnscxm.js → chunk-0a4pmkc9.js} +1 -1
  3. package/bundle/chunk-0aqdzyar.js +2 -0
  4. package/bundle/{chunk-drnj1a14.js → chunk-0egrckx0.js} +1 -1
  5. package/bundle/{chunk-368jx5dp.js → chunk-0tcggtwv.js} +1 -1
  6. package/bundle/{chunk-0qpqd7nz.js → chunk-0tm6589k.js} +2 -2
  7. package/bundle/{chunk-0gsw04hw.js → chunk-0w19vmd7.js} +2 -2
  8. package/bundle/{chunk-j6xmgn63.js → chunk-0z1keh2w.js} +1 -1
  9. package/bundle/{chunk-aa2n02qk.js → chunk-1bxfzd6r.js} +2 -2
  10. package/bundle/{chunk-hrtze4c5.js → chunk-1har4t9a.js} +1 -1
  11. package/bundle/{chunk-33jcxsbe.js → chunk-1p9s5jj1.js} +1 -1
  12. package/bundle/{chunk-p40z6510.js → chunk-1v0khv7p.js} +1 -1
  13. package/bundle/{chunk-2c26kxp4.js → chunk-26cr51wa.js} +1 -1
  14. package/bundle/{chunk-eeq0krp7.js → chunk-27saej0r.js} +2 -2
  15. package/bundle/{chunk-ppy0jy6j.js → chunk-29gwtcey.js} +1 -1
  16. package/bundle/chunk-2a5gjgvp.js +2 -0
  17. package/bundle/{chunk-bn71wqqf.js → chunk-2caaqmec.js} +1 -1
  18. package/bundle/{chunk-hhk2sp5n.js → chunk-2kh0tg92.js} +1 -1
  19. package/bundle/{chunk-bd505nsd.js → chunk-2nheahmq.js} +1 -1
  20. package/bundle/chunk-2pkfphgb.js +2 -0
  21. package/bundle/{chunk-jxkrhrp0.js → chunk-2qm46qvn.js} +1 -1
  22. package/bundle/{chunk-ajp53ksp.js → chunk-2t5yh25f.js} +1 -1
  23. package/bundle/{chunk-4fy08jcj.js → chunk-2vaphpz0.js} +1 -1
  24. package/bundle/{chunk-5nhwqg7c.js → chunk-33ebjca6.js} +1 -1
  25. package/bundle/{chunk-yxttz5z5.js → chunk-35fj1sfm.js} +1 -1
  26. package/bundle/{chunk-makecdh6.js → chunk-37cbrnke.js} +5 -5
  27. package/bundle/{chunk-1vpx7szf.js → chunk-3bb4aqh9.js} +1 -1
  28. package/bundle/chunk-3cx4p07h.js +2 -0
  29. package/bundle/chunk-3f2cjzb4.js +2 -0
  30. package/bundle/chunk-3qvap1kv.js +2 -0
  31. package/bundle/{chunk-c8prg3jx.js → chunk-3va85mbe.js} +2 -2
  32. package/bundle/{chunk-wvb17w0z.js → chunk-3z2zn8rj.js} +1 -1
  33. package/bundle/{chunk-ghap1n1m.js → chunk-3zwma68w.js} +4 -4
  34. package/bundle/{chunk-abv0fskc.js → chunk-4064rbtp.js} +1 -1
  35. package/bundle/{chunk-84pjdenq.js → chunk-42hvspe7.js} +1 -1
  36. package/bundle/chunk-452tk6v3.js +2 -0
  37. package/bundle/{chunk-w3zhy5vq.js → chunk-48gap82w.js} +1 -1
  38. package/bundle/{chunk-q87fw8dk.js → chunk-4aajzxm9.js} +1 -1
  39. package/bundle/{chunk-4ftjx7ss.js → chunk-4gqb1hps.js} +1 -1
  40. package/bundle/{chunk-gww0skmn.js → chunk-4pmvxnkj.js} +1 -1
  41. package/bundle/chunk-50qgz5ka.js +2 -0
  42. package/bundle/{chunk-4zhrg3rv.js → chunk-52xvhxek.js} +1 -1
  43. package/bundle/{chunk-8hmt3avx.js → chunk-56wq8cqj.js} +1 -1
  44. package/bundle/{chunk-5r05d901.js → chunk-58f4y4b7.js} +2 -2
  45. package/bundle/{chunk-mbbxedsq.js → chunk-59csnjc3.js} +2 -2
  46. package/bundle/chunk-5b0xyq5z.js +2 -0
  47. package/bundle/{chunk-0ggvqmnm.js → chunk-5bv63rqj.js} +1 -1
  48. package/bundle/{chunk-vfb72vdy.js → chunk-5cw8235e.js} +1 -1
  49. package/bundle/{chunk-yd94wz5v.js → chunk-5f0nhthe.js} +1 -1
  50. package/bundle/chunk-5j4nxpdy.js +2 -0
  51. package/bundle/{chunk-r4kg0z96.js → chunk-5nmm1kvx.js} +1 -1
  52. package/bundle/chunk-5nxgk6hw.js +2 -0
  53. package/bundle/chunk-5qkvhr6y.js +2 -0
  54. package/bundle/{chunk-5zh91zk2.js → chunk-5r7c6vvx.js} +1 -1
  55. package/bundle/{chunk-c6cajbyj.js → chunk-5wx962mw.js} +1 -1
  56. package/bundle/{chunk-7sq5dyv1.js → chunk-5xkp27b1.js} +1 -1
  57. package/bundle/chunk-66qmmmdp.js +2 -0
  58. package/bundle/{chunk-vhzx5bxd.js → chunk-66wv82vf.js} +1 -1
  59. package/bundle/chunk-6dpdkzrk.js +2 -0
  60. package/bundle/chunk-6p6m5956.js +3 -0
  61. package/bundle/{chunk-n4qxj391.js → chunk-6ps30qax.js} +1 -1
  62. package/bundle/{chunk-gbxf6e5d.js → chunk-6qwk6z87.js} +3 -3
  63. package/bundle/{chunk-kmzpeq8k.js → chunk-6tqbnxar.js} +1 -1
  64. package/bundle/{chunk-gdew7bwm.js → chunk-6yhn9syz.js} +1 -1
  65. package/bundle/{chunk-2pex3ak9.js → chunk-72crs18f.js} +1 -1
  66. package/bundle/{chunk-mghnkwp8.js → chunk-7adsab4h.js} +1 -1
  67. package/bundle/{chunk-aqcpk2vg.js → chunk-7b60whxm.js} +1 -1
  68. package/bundle/chunk-7g59hc61.js +2 -0
  69. package/bundle/{chunk-52rdms56.js → chunk-7jy53zqy.js} +1 -1
  70. package/bundle/chunk-7p88j56s.js +2 -0
  71. package/bundle/{chunk-t4b2fm7z.js → chunk-7thhd7ds.js} +1 -1
  72. package/bundle/chunk-7trngc9g.js +2 -0
  73. package/bundle/{chunk-yjqww6ag.js → chunk-82xrfk5x.js} +2 -2
  74. package/bundle/{chunk-4fvbexr8.js → chunk-85wh85pk.js} +1 -1
  75. package/bundle/chunk-8cebbmtf.js +2 -0
  76. package/bundle/chunk-8csas2jc.js +2 -0
  77. package/bundle/chunk-8g4jdqq1.js +2 -0
  78. package/bundle/chunk-8j1xcdmd.js +2 -0
  79. package/bundle/{chunk-ntpn0w9m.js → chunk-8jmb5bd4.js} +2 -2
  80. package/bundle/{chunk-pf3nqf00.js → chunk-8ysp6vf8.js} +1 -1
  81. package/bundle/{chunk-3k7016c2.js → chunk-8yzghzjq.js} +1 -1
  82. package/bundle/{chunk-73xryfgn.js → chunk-9009v4d0.js} +2 -2
  83. package/bundle/chunk-90r2z49k.js +2 -0
  84. package/bundle/{chunk-amp6mvbp.js → chunk-92r1gw2j.js} +1 -1
  85. package/bundle/{chunk-ktp2b4t4.js → chunk-94mjwy22.js} +1 -1
  86. package/bundle/{chunk-f84hw65n.js → chunk-9cf2ktyh.js} +1 -1
  87. package/bundle/{chunk-16srrzjr.js → chunk-9cn8cmt0.js} +1 -1
  88. package/bundle/{chunk-x55h5qdc.js → chunk-a1z8rnq7.js} +3 -3
  89. package/bundle/{chunk-c3szabpf.js → chunk-a48mx917.js} +2 -2
  90. package/bundle/{chunk-prbxhnza.js → chunk-a8bjcvda.js} +1 -1
  91. package/bundle/chunk-aenrd7dk.js +2 -0
  92. package/bundle/{chunk-dw70wds9.js → chunk-afr8m0q1.js} +1 -1
  93. package/bundle/{chunk-7p6mxch0.js → chunk-ag8wxwwz.js} +1 -1
  94. package/bundle/{chunk-22qetqnp.js → chunk-ahmy80vb.js} +1 -1
  95. package/bundle/chunk-avn12jkt.js +2 -0
  96. package/bundle/{chunk-tc9xbn1t.js → chunk-ax64ngf2.js} +1 -1
  97. package/bundle/{chunk-4ngmjk8j.js → chunk-ayb3bdb7.js} +1 -1
  98. package/bundle/{chunk-0crgymtr.js → chunk-az3nss5m.js} +2 -2
  99. package/bundle/chunk-b7ncyat6.js +2 -0
  100. package/bundle/{chunk-dt1wwt7m.js → chunk-b7sr9rn3.js} +1 -1
  101. package/bundle/{chunk-9qzwmt76.js → chunk-bc2krtaf.js} +1 -1
  102. package/bundle/{chunk-0bgssfvq.js → chunk-bjv1h2dq.js} +1 -1
  103. package/bundle/{chunk-8jvfqh3b.js → chunk-bnaj2hh3.js} +1 -1
  104. package/bundle/{chunk-twvmjsxf.js → chunk-bpfq8fz4.js} +1 -1
  105. package/bundle/chunk-brk6bge4.js +3 -0
  106. package/bundle/{chunk-s06t769q.js → chunk-bwadggys.js} +1 -1
  107. package/bundle/chunk-c2a74stf.js +2 -0
  108. package/bundle/{chunk-76h0f86f.js → chunk-c3yjbent.js} +1 -1
  109. package/bundle/{chunk-spzd8rev.js → chunk-c76cjhn0.js} +1 -1
  110. package/bundle/{chunk-705xnxbc.js → chunk-ccf4pgkr.js} +1 -1
  111. package/bundle/chunk-ce5e7j62.js +2 -0
  112. package/bundle/{chunk-2bjfz4fb.js → chunk-cf9m9m9q.js} +1 -1
  113. package/bundle/{chunk-z7kswv9r.js → chunk-cfwz1hgr.js} +3 -3
  114. package/bundle/{chunk-dgva3y5v.js → chunk-cghz0855.js} +1 -1
  115. package/bundle/{chunk-a76w2jwm.js → chunk-cr5tknvb.js} +1 -1
  116. package/bundle/chunk-cw1gwjx9.js +2 -0
  117. package/bundle/chunk-czw30fjs.js +2 -0
  118. package/bundle/{chunk-x80d0zh7.js → chunk-d30k7dpf.js} +1 -1
  119. package/bundle/{chunk-x9fyt3vx.js → chunk-d839fr0w.js} +1 -1
  120. package/bundle/{chunk-n0g4983e.js → chunk-ddx2pcr4.js} +1 -1
  121. package/bundle/{chunk-4byvnx78.js → chunk-dgcannw0.js} +1 -1
  122. package/bundle/{chunk-4rpgwgx9.js → chunk-dhvx9p54.js} +1 -1
  123. package/bundle/chunk-dmkgjf1v.js +3 -0
  124. package/bundle/{chunk-z744mz4w.js → chunk-dt3bsmfe.js} +2 -2
  125. package/bundle/chunk-dwhsvpag.js +2 -0
  126. package/bundle/{chunk-4j76bf4j.js → chunk-dwkrqtbc.js} +1 -1
  127. package/bundle/chunk-e01jgnnm.js +2 -0
  128. package/bundle/chunk-e0hfpdje.js +2 -0
  129. package/bundle/{chunk-f2pv705d.js → chunk-e0vrxetq.js} +1 -1
  130. package/bundle/{chunk-59kk0mce.js → chunk-e2wfj86b.js} +1 -1
  131. package/bundle/chunk-e5jk67xh.js +2 -0
  132. package/bundle/{chunk-ae7b11np.js → chunk-eacpc64g.js} +2 -2
  133. package/bundle/{chunk-hqjc4wgg.js → chunk-eewe7tx1.js} +2 -2
  134. package/bundle/{chunk-etv6c77a.js → chunk-eg1m81ax.js} +1 -1
  135. package/bundle/chunk-eg4pq4hv.js +2 -0
  136. package/bundle/{chunk-9xxnwb33.js → chunk-ejhhrece.js} +3 -3
  137. package/bundle/{chunk-nfzpegqx.js → chunk-epmc4aht.js} +1 -1
  138. package/bundle/chunk-ew3yz97p.js +2 -0
  139. package/bundle/chunk-ezgfhy4e.js +2 -0
  140. package/bundle/{chunk-19pspc1p.js → chunk-f2v4g7t1.js} +1 -1
  141. package/bundle/chunk-f2yfyhh8.js +2 -0
  142. package/bundle/chunk-f30em1wx.js +2 -0
  143. package/bundle/{chunk-k3g28tbw.js → chunk-f81kk8ra.js} +1 -1
  144. package/bundle/{chunk-p847g35y.js → chunk-f8cae1ap.js} +1 -1
  145. package/bundle/{chunk-vp3yf46q.js → chunk-fa8pwdwv.js} +1 -1
  146. package/bundle/{chunk-dz3bec8g.js → chunk-fej5x648.js} +1 -1
  147. package/bundle/{chunk-14d301ze.js → chunk-fge37dke.js} +1 -1
  148. package/bundle/{chunk-0tqmm8b8.js → chunk-fh3d0wce.js} +1 -1
  149. package/bundle/{chunk-twd6r7nf.js → chunk-fjftb2sz.js} +1 -1
  150. package/bundle/{chunk-xhh70g8j.js → chunk-fs1vb39f.js} +2 -2
  151. package/bundle/{chunk-9g9katgy.js → chunk-ftvvm4r5.js} +2 -2
  152. package/bundle/{chunk-ptwex14s.js → chunk-fw1f47de.js} +1 -1
  153. package/bundle/{chunk-y2t5pmqw.js → chunk-g26redah.js} +1 -1
  154. package/bundle/{chunk-acd72413.js → chunk-g3n465ee.js} +1 -1
  155. package/bundle/{chunk-hfefq104.js → chunk-g4tyaj0m.js} +1 -1
  156. package/bundle/{chunk-a610qd3x.js → chunk-g6y2c5az.js} +1 -1
  157. package/bundle/{chunk-tezrgfc6.js → chunk-g7v6sp3c.js} +2 -2
  158. package/bundle/{chunk-4bewbvvr.js → chunk-g878zd6e.js} +1 -1
  159. package/bundle/{chunk-na1wr2qf.js → chunk-g9nwqwqp.js} +1 -1
  160. package/bundle/chunk-gbvm6dpv.js +2 -0
  161. package/bundle/{chunk-ns8xnkjb.js → chunk-gc5rhnht.js} +1 -1
  162. package/bundle/{chunk-q6p92zyn.js → chunk-gefx3n08.js} +1 -1
  163. package/bundle/{chunk-xcxqt8ag.js → chunk-ggncq8w8.js} +1 -1
  164. package/bundle/{chunk-gwrnxcdn.js → chunk-gsg6zn7e.js} +1 -1
  165. package/bundle/{chunk-4jpab7ag.js → chunk-gznt3dv8.js} +1 -1
  166. package/bundle/{chunk-defj5zs6.js → chunk-h1bvqstw.js} +1 -1
  167. package/bundle/{chunk-dd4qnh8s.js → chunk-h4hs2rhf.js} +1 -1
  168. package/bundle/chunk-h5w91zr4.js +2 -0
  169. package/bundle/{chunk-qp3hxqg5.js → chunk-h8mfbbjh.js} +1 -1
  170. package/bundle/{chunk-w43kmnm9.js → chunk-he9kpk9r.js} +357 -357
  171. package/bundle/chunk-hmpb3c21.js +2 -0
  172. package/bundle/{chunk-6gqs1k7m.js → chunk-hz02vrqs.js} +1 -1
  173. package/bundle/{chunk-3xdmxm5t.js → chunk-j10a984e.js} +1 -1
  174. package/bundle/chunk-j32rr7rt.js +2 -0
  175. package/bundle/chunk-j871xzr7.js +2 -0
  176. package/bundle/{chunk-kfj37631.js → chunk-jmmtcr2r.js} +1 -1
  177. package/bundle/{chunk-h7658zxy.js → chunk-jpn9zfj5.js} +1 -1
  178. package/bundle/{chunk-wgt1tqw9.js → chunk-jqj1ay7x.js} +1 -1
  179. package/bundle/{chunk-e4g4mvak.js → chunk-jr80q31w.js} +1 -1
  180. package/bundle/chunk-k3hgwszx.js +2 -0
  181. package/bundle/{chunk-k6zwfstj.js → chunk-kckr30tf.js} +1 -1
  182. package/bundle/{chunk-8rfqv5he.js → chunk-kgv68cpb.js} +1 -1
  183. package/bundle/{chunk-tkzctbxq.js → chunk-khpfseej.js} +2 -2
  184. package/bundle/{chunk-55way0em.js → chunk-kveztc6k.js} +1 -1
  185. package/bundle/{chunk-znmbfx70.js → chunk-kwfe4em6.js} +1 -1
  186. package/bundle/chunk-kx88qekb.js +2 -0
  187. package/bundle/{chunk-nbckdba0.js → chunk-m4r8sepw.js} +1 -1
  188. package/bundle/{chunk-6ychs4wx.js → chunk-m7tmgvh6.js} +1 -1
  189. package/bundle/{chunk-egkhynj5.js → chunk-makegrxs.js} +1 -1
  190. package/bundle/{chunk-438faz6b.js → chunk-mr17tppa.js} +1 -1
  191. package/bundle/{chunk-yzpc5kj2.js → chunk-mv7q6ach.js} +1 -1
  192. package/bundle/chunk-n61e0znt.js +2 -0
  193. package/bundle/{chunk-kry4vcrf.js → chunk-n6tqtk6h.js} +2 -2
  194. package/bundle/chunk-n6v36np0.js +2 -0
  195. package/bundle/chunk-ndd4cn3z.js +2 -0
  196. package/bundle/{chunk-d1tb1jd0.js → chunk-nfafk3ts.js} +1 -1
  197. package/bundle/{chunk-b6eypnbj.js → chunk-nga216dm.js} +1 -1
  198. package/bundle/{chunk-qbrj9wzd.js → chunk-njsmma3a.js} +1 -1
  199. package/bundle/{chunk-bk7f59fn.js → chunk-ntr0ezf2.js} +1 -1
  200. package/bundle/chunk-nwj6mcxz.js +2 -0
  201. package/bundle/{chunk-cth373se.js → chunk-p2fte9vz.js} +2 -2
  202. package/bundle/chunk-p5b5ekhh.js +2 -0
  203. package/bundle/chunk-pf23nw4z.js +2 -0
  204. package/bundle/{chunk-whw18cn9.js → chunk-phf37x1c.js} +1 -1
  205. package/bundle/{chunk-r73e8gsp.js → chunk-phpxxd48.js} +1 -1
  206. package/bundle/{chunk-1ay97v74.js → chunk-pqg1wjb5.js} +1 -1
  207. package/bundle/chunk-pw3cv89g.js +2 -0
  208. package/bundle/{chunk-77h8tytk.js → chunk-q3c8mfbq.js} +1 -1
  209. package/bundle/{chunk-0am156m5.js → chunk-qbnt4ynd.js} +1 -1
  210. package/bundle/chunk-qc89yj61.js +2 -0
  211. package/bundle/{chunk-mjrqhbp2.js → chunk-qgek59e6.js} +1 -1
  212. package/bundle/{chunk-npzx3yd5.js → chunk-qgfbsmsx.js} +1 -1
  213. package/bundle/{chunk-v9w88wpy.js → chunk-qgkb6n8k.js} +1 -1
  214. package/bundle/{chunk-2c41dncf.js → chunk-qk1jkc0n.js} +1 -1
  215. package/bundle/{chunk-wb1d3mqw.js → chunk-qk5vy2pr.js} +1 -1
  216. package/bundle/chunk-qn8tz704.js +2 -0
  217. package/bundle/{chunk-9a6p1gdn.js → chunk-qq9m8fxv.js} +7 -7
  218. package/bundle/{chunk-5b3v1x2c.js → chunk-qxdpgdfk.js} +2 -2
  219. package/bundle/chunk-qxre2gqn.js +2 -0
  220. package/bundle/chunk-rdk62809.js +2 -0
  221. package/bundle/chunk-rew6r516.js +2 -0
  222. package/bundle/chunk-rjhvdfn5.js +2 -0
  223. package/bundle/chunk-rmsqb6r4.js +10 -0
  224. package/bundle/{chunk-qph2c2v7.js → chunk-rva2ekrt.js} +1 -1
  225. package/bundle/{chunk-7z96r2px.js → chunk-rwnwjm82.js} +1 -1
  226. package/bundle/{chunk-tz3s8dvy.js → chunk-rye1yjnr.js} +1 -1
  227. package/bundle/{chunk-t9qyzzsz.js → chunk-ryrxgn6d.js} +1 -1
  228. package/bundle/{chunk-wjz42325.js → chunk-s2tc3qs0.js} +2 -2
  229. package/bundle/{chunk-djqxbnwc.js → chunk-s8z7v1me.js} +1 -1
  230. package/bundle/{chunk-msh249db.js → chunk-sa0rrreh.js} +2 -2
  231. package/bundle/{chunk-dbpkq7ba.js → chunk-sbjymf20.js} +2 -2
  232. package/bundle/{chunk-n5p7cn4w.js → chunk-scnbt714.js} +1 -1
  233. package/bundle/chunk-skgr9ypq.js +2 -0
  234. package/bundle/{chunk-rhrcgvb8.js → chunk-sm1g81cv.js} +1 -1
  235. package/bundle/chunk-sv40pwe2.js +2 -0
  236. package/bundle/{chunk-qprbef09.js → chunk-sy9w1t2y.js} +1 -1
  237. package/bundle/{chunk-bd84t3fb.js → chunk-sz0favtz.js} +1 -1
  238. package/bundle/{chunk-xb3sxa6f.js → chunk-t18ka1e7.js} +1 -1
  239. package/bundle/{chunk-va2qfh0x.js → chunk-t3w43rft.js} +1 -1
  240. package/bundle/{chunk-n9twhc5d.js → chunk-t6zz47zk.js} +1 -1
  241. package/bundle/{chunk-wd8hbven.js → chunk-t8fjgkp8.js} +1 -1
  242. package/bundle/{chunk-6r48fje7.js → chunk-tbx741en.js} +1 -1
  243. package/bundle/chunk-tfhpjmny.js +2 -0
  244. package/bundle/chunk-tnete6ye.js +2 -0
  245. package/bundle/{chunk-2y87m7pe.js → chunk-tpyq7ycb.js} +1 -1
  246. package/bundle/{chunk-nftbj8g9.js → chunk-trstb8ee.js} +1 -1
  247. package/bundle/chunk-tsmj98yf.js +5 -0
  248. package/bundle/{chunk-skxg3s8z.js → chunk-txkdt4ep.js} +1 -1
  249. package/bundle/chunk-v5h5wxw5.js +2 -0
  250. package/bundle/chunk-v6141yq1.js +2 -0
  251. package/bundle/{chunk-vjn54xj5.js → chunk-vbfej8ds.js} +2 -2
  252. package/bundle/{chunk-9aafddkw.js → chunk-vfd3azkp.js} +1 -1
  253. package/bundle/chunk-vjs69r6x.js +2 -0
  254. package/bundle/{chunk-ts2k13g0.js → chunk-vkjqy92f.js} +1 -1
  255. package/bundle/chunk-vmhar83s.js +2 -0
  256. package/bundle/{chunk-zp5sr5nx.js → chunk-vph4w4yy.js} +1 -1
  257. package/bundle/chunk-vqvnw12p.js +2 -0
  258. package/bundle/{chunk-0g0jpw0z.js → chunk-vr8nwzp0.js} +1 -1
  259. package/bundle/{chunk-nrk29616.js → chunk-vs3s49jw.js} +1 -1
  260. package/bundle/{chunk-v0c3k797.js → chunk-vsqvnxbz.js} +1 -1
  261. package/bundle/{chunk-rqedtjz9.js → chunk-w0nc0gcx.js} +1 -1
  262. package/bundle/{chunk-y5q9v80n.js → chunk-w0sng8a9.js} +1 -1
  263. package/bundle/chunk-w0sztk4y.js +2 -0
  264. package/bundle/chunk-w6bb320d.js +2 -0
  265. package/bundle/{chunk-t8sy5sgx.js → chunk-w7a33cwa.js} +2 -2
  266. package/bundle/{chunk-2cjfezfr.js → chunk-w9qh2479.js} +1 -1
  267. package/bundle/{chunk-42q8vj0w.js → chunk-waa1ggtj.js} +1 -1
  268. package/bundle/{chunk-v3nmnm57.js → chunk-wb05bp10.js} +2 -2
  269. package/bundle/{chunk-agqss9ga.js → chunk-wb47k8ah.js} +2 -2
  270. package/bundle/{chunk-rfzra502.js → chunk-wd8f9r4k.js} +1 -1
  271. package/bundle/chunk-wf41m019.js +2 -0
  272. package/bundle/{chunk-hwsqqkrv.js → chunk-wgkcyqn1.js} +2 -2
  273. package/bundle/{chunk-dy2k5rdx.js → chunk-wm9nh9nb.js} +2 -2
  274. package/bundle/{chunk-6nxebcf8.js → chunk-wn63q3xp.js} +1 -1
  275. package/bundle/{chunk-z6kcnpsj.js → chunk-wqk1v8t0.js} +2 -2
  276. package/bundle/chunk-wqw6yjrg.js +2 -0
  277. package/bundle/{chunk-q3pt4p9f.js → chunk-wr6rnxr5.js} +1 -1
  278. package/bundle/chunk-ws08rxge.js +2 -0
  279. package/bundle/{chunk-dw7yrk1g.js → chunk-wtt5wms9.js} +1 -1
  280. package/bundle/{chunk-93pmbdz7.js → chunk-wtxh5m6j.js} +6 -6
  281. package/bundle/chunk-wz3dvc3g.js +2 -0
  282. package/bundle/{chunk-vzrc2fmt.js → chunk-x00hwy3x.js} +1 -1
  283. package/bundle/chunk-x2pmqvdc.js +2 -0
  284. package/bundle/chunk-x4wfq39v.js +2 -0
  285. package/bundle/{chunk-q6mcnq9p.js → chunk-xs6v0r9m.js} +1 -1
  286. package/bundle/{chunk-3623jvcm.js → chunk-xy8arehp.js} +1 -1
  287. package/bundle/{chunk-mhxyv9c8.js → chunk-y3gy62q5.js} +1 -1
  288. package/bundle/chunk-yb6m08zj.js +2 -0
  289. package/bundle/{chunk-b79z8f94.js → chunk-ybcqkgs7.js} +1 -1
  290. package/bundle/{chunk-95am490c.js → chunk-ydgst3h8.js} +2 -2
  291. package/bundle/{chunk-twfvrafb.js → chunk-ykpj10nz.js} +1 -1
  292. package/bundle/{chunk-e0zb6sw6.js → chunk-ynf17943.js} +1 -1
  293. package/bundle/{chunk-yy7r3t3w.js → chunk-ytyzrqev.js} +1 -1
  294. package/bundle/{chunk-01e3v1xz.js → chunk-z0kbyr00.js} +2 -2
  295. package/bundle/{chunk-4vzjdmts.js → chunk-zfrftgcy.js} +1 -1
  296. package/bundle/chunk-zj1jc1xt.js +2 -0
  297. package/bundle/{chunk-9sv53kb4.js → chunk-zm0m0504.js} +1 -1
  298. package/bundle/{chunk-gdj7mqrd.js → chunk-zqdjk4rf.js} +1 -1
  299. package/bundle/{chunk-7x2q1w0f.js → chunk-zsg29gba.js} +1 -1
  300. package/bundle/{chunk-1c0yp2gv.js → chunk-zwhmg9dj.js} +1 -1
  301. package/bundle/index.js +3 -3
  302. package/bundle/parser.worker.js +2 -2
  303. package/bundle/worker.js +1 -1
  304. package/package.json +1 -1
  305. package/bundle/chunk-0dzpjk7x.js +0 -2
  306. package/bundle/chunk-12fwmmcp.js +0 -2
  307. package/bundle/chunk-1a95ysv3.js +0 -2
  308. package/bundle/chunk-1akh8pk2.js +0 -2
  309. package/bundle/chunk-2d2a92kj.js +0 -2
  310. package/bundle/chunk-2qrvkef8.js +0 -2
  311. package/bundle/chunk-2tppw8j9.js +0 -2
  312. package/bundle/chunk-3ft1dn9j.js +0 -2
  313. package/bundle/chunk-3rgct4bd.js +0 -11
  314. package/bundle/chunk-4656qm05.js +0 -2
  315. package/bundle/chunk-46knch5z.js +0 -2
  316. package/bundle/chunk-4sgy87h5.js +0 -2
  317. package/bundle/chunk-54hktc8h.js +0 -2
  318. package/bundle/chunk-59m55866.js +0 -2
  319. package/bundle/chunk-5js5nw7r.js +0 -2
  320. package/bundle/chunk-61jn7908.js +0 -2
  321. package/bundle/chunk-61txdqz1.js +0 -2
  322. package/bundle/chunk-668g9wkg.js +0 -2
  323. package/bundle/chunk-6frhjpmt.js +0 -2
  324. package/bundle/chunk-6k14c8x1.js +0 -5
  325. package/bundle/chunk-6r1jpj0h.js +0 -2
  326. package/bundle/chunk-73fn4dqd.js +0 -2
  327. package/bundle/chunk-78j2c2je.js +0 -2
  328. package/bundle/chunk-78jt24ht.js +0 -2
  329. package/bundle/chunk-7j2vpavd.js +0 -2
  330. package/bundle/chunk-7nkxgm72.js +0 -2
  331. package/bundle/chunk-859pkecc.js +0 -2
  332. package/bundle/chunk-8p249svd.js +0 -2
  333. package/bundle/chunk-8rqbx4jw.js +0 -2
  334. package/bundle/chunk-8s3krfsm.js +0 -2
  335. package/bundle/chunk-9wbe0dkx.js +0 -2
  336. package/bundle/chunk-aj5z8qd5.js +0 -2
  337. package/bundle/chunk-b0c2mvc0.js +0 -2
  338. package/bundle/chunk-bbwcsdy9.js +0 -2
  339. package/bundle/chunk-bbzjdbb9.js +0 -2
  340. package/bundle/chunk-bh4s1yct.js +0 -2
  341. package/bundle/chunk-crqcppwq.js +0 -2
  342. package/bundle/chunk-d09zpgj1.js +0 -2
  343. package/bundle/chunk-dexcptaz.js +0 -3
  344. package/bundle/chunk-dgqkak21.js +0 -2
  345. package/bundle/chunk-dhgvh7c3.js +0 -2
  346. package/bundle/chunk-dmd101ja.js +0 -2
  347. package/bundle/chunk-dwb39jdf.js +0 -2
  348. package/bundle/chunk-dx4zxex7.js +0 -2
  349. package/bundle/chunk-e2pqvscp.js +0 -2
  350. package/bundle/chunk-efe6kj3d.js +0 -2
  351. package/bundle/chunk-emac0dss.js +0 -2
  352. package/bundle/chunk-encfnt6w.js +0 -2
  353. package/bundle/chunk-fg2nyz2x.js +0 -2
  354. package/bundle/chunk-ge19ff9d.js +0 -2
  355. package/bundle/chunk-gt0q07xq.js +0 -2
  356. package/bundle/chunk-h4dnjfr2.js +0 -2
  357. package/bundle/chunk-h8fx619t.js +0 -2
  358. package/bundle/chunk-jnvb3s7f.js +0 -2
  359. package/bundle/chunk-jrq2xw6e.js +0 -2
  360. package/bundle/chunk-jwckmhjm.js +0 -2
  361. package/bundle/chunk-jz27ypm5.js +0 -2
  362. package/bundle/chunk-jzrs878d.js +0 -2
  363. package/bundle/chunk-jzx700tb.js +0 -2
  364. package/bundle/chunk-k1x8469r.js +0 -3
  365. package/bundle/chunk-m483jvn8.js +0 -2
  366. package/bundle/chunk-menbcmkq.js +0 -2
  367. package/bundle/chunk-np8h66t0.js +0 -2
  368. package/bundle/chunk-nwwmns3w.js +0 -2
  369. package/bundle/chunk-pe5dpzec.js +0 -2
  370. package/bundle/chunk-q8f6a074.js +0 -2
  371. package/bundle/chunk-qqaevt32.js +0 -2
  372. package/bundle/chunk-qzpvz708.js +0 -2
  373. package/bundle/chunk-reyjr2e0.js +0 -2
  374. package/bundle/chunk-t178njgb.js +0 -2
  375. package/bundle/chunk-tjpev5t6.js +0 -2
  376. package/bundle/chunk-tzq7wjgv.js +0 -3
  377. package/bundle/chunk-v1s16wwd.js +0 -2
  378. package/bundle/chunk-v6b29nx4.js +0 -2
  379. package/bundle/chunk-v6rgd1j5.js +0 -2
  380. package/bundle/chunk-v9dnetq8.js +0 -2
  381. package/bundle/chunk-vd5mpvcc.js +0 -2
  382. package/bundle/chunk-wwct4z7j.js +0 -2
  383. package/bundle/chunk-xr9wz961.js +0 -2
  384. package/bundle/chunk-zfegnt1e.js +0 -2
  385. package/bundle/chunk-zg7kesbp.js +0 -2
  386. package/bundle/chunk-zy06fe4r.js +0 -2
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Id as a}from"./chunk-0ffmwhw7.js";import"./chunk-rk0fnvp5.js";import"./chunk-f2pv705d.js";export{a as dict};
2
+ import{Id as a}from"./chunk-0ffmwhw7.js";import"./chunk-rk0fnvp5.js";import"./chunk-e0vrxetq.js";export{a as dict};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Ef as q,Ff as i,Gf as y,Kf as n}from"./chunk-yxttz5z5.js";import{TP as o}from"./chunk-f2pv705d.js";var Ej=o((wj)=>{var M=n(),U=y(),V=i(),a=q(),X=async(j=new Uint8Array,m)=>{if(j instanceof Uint8Array)return M.Uint8ArrayBlobAdapter.mutate(j);if(!j)return M.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=m.streamCollector(j);return M.Uint8ArrayBlobAdapter.mutate(await w)};function _(j){return encodeURIComponent(j).replace(/[!'()*]/g,function(m){return"%"+m.charCodeAt(0).toString(16).toUpperCase()})}class Y{serdeContext;setSerdeContext(j){this.serdeContext=j}}class f extends Y{options;compositeErrorRegistry;constructor(j){super();this.options=j,this.compositeErrorRegistry=U.TypeRegistry.for(j.defaultNamespace);for(let m of j.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(m)}getRequestType(){return V.HttpRequest}getResponseType(){return V.HttpResponse}setSerdeContext(j){if(this.serdeContext=j,this.serializer.setSerdeContext(j),this.deserializer.setSerdeContext(j),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext(j)}updateServiceEndpoint(j,m){if("url"in m){if(j.protocol=m.url.protocol,j.hostname=m.url.hostname,j.port=m.url.port?Number(m.url.port):void 0,j.path=m.url.pathname,j.fragment=m.url.hash||void 0,j.username=m.url.username||void 0,j.password=m.url.password||void 0,!j.query)j.query={};for(let[w,z]of m.url.searchParams.entries())j.query[w]=z;if(m.headers)for(let w in m.headers)j.headers[w]=m.headers[w].join(", ");return j}else{if(j.protocol=m.protocol,j.hostname=m.hostname,j.port=m.port?Number(m.port):void 0,j.path=m.path,j.query={...m.query},m.headers)for(let w in m.headers)j.headers[w]=m.headers[w];return j}}setHostPrefix(j,m,w){if(this.serdeContext?.disableHostPrefix)return;let z=U.NormalizedSchema.of(m.input),A=U.translateTraits(m.traits??{});if(A.endpoint){let B=A.endpoint?.[0];if(typeof B==="string"){for(let[F,D]of z.structIterator()){if(!D.getMergedTraits().hostLabel)continue;let J=w[F];if(typeof J!=="string")throw Error(`@smithy/core/schema - ${F} in input must be a string as hostLabel.`);B=B.replace(`{${F}}`,J)}j.hostname=B+j.hostname}}}deserializeMetadata(j){return{httpStatusCode:j.statusCode,requestId:j.headers["x-amzn-requestid"]??j.headers["x-amzn-request-id"]??j.headers["x-amz-request-id"],extendedRequestId:j.headers["x-amz-id-2"],cfId:j.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:j,requestSchema:m,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:j,requestSchema:m,initialRequest:w})}async deserializeEventStream({response:j,responseSchema:m,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:j,responseSchema:m,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:j}=await import("./chunk-hrtze4c5.js");return new j({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(j,m,w,z,A){return[]}getEventStreamMarshaller(){let j=this.serdeContext;if(!j.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return j.eventStreamMarshaller}}class b extends f{async serializeRequest(j,m,w){let z=m&&typeof m==="object"?m:{},A=this.serializer,B={},F={},D=await w.endpoint(),J=U.NormalizedSchema.of(j?.input),T=[],N=[],O=!1,P,I=new V.HttpRequest({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:B,headers:F,body:void 0});if(D){this.updateServiceEndpoint(I,D),this.setHostPrefix(I,j,z);let G=U.translateTraits(j.traits);if(G.http){I.method=G.http[0];let[K,Q]=G.http[1].split("?");if(I.path=="/")I.path=K;else I.path+=K;let R=new URLSearchParams(Q??"");for(let[W,$]of R)B[W]=$}}for(let[G,K]of J.structIterator()){let Q=K.getMergedTraits()??{},R=z[G];if(R==null&&!K.isIdempotencyToken()){if(Q.httpLabel){if(I.path.includes(`{${G}+}`)||I.path.includes(`{${G}}`))throw Error(`No value provided for input HTTP label: ${G}.`)}continue}if(Q.httpPayload)if(K.isStreaming())if(K.isStructSchema()){if(z[G])P=await this.serializeEventStream({eventStream:z[G],requestSchema:J})}else P=R;else A.write(K,R),P=A.flush();else if(Q.httpLabel){A.write(K,R);let W=A.flush();if(I.path.includes(`{${G}+}`))I.path=I.path.replace(`{${G}+}`,W.split("/").map(_).join("/"));else if(I.path.includes(`{${G}}`))I.path=I.path.replace(`{${G}}`,_(W))}else if(Q.httpHeader)A.write(K,R),F[Q.httpHeader.toLowerCase()]=String(A.flush());else if(typeof Q.httpPrefixHeaders==="string")for(let W in R){let $=R[W],E=Q.httpPrefixHeaders+W;A.write([K.getValueSchema(),{httpHeader:E}],$),F[E.toLowerCase()]=A.flush()}else if(Q.httpQuery||Q.httpQueryParams)this.serializeQuery(K,R,B);else O=!0,T.push(G),N.push(K)}if(O&&z){let[G,K]=(J.getName(!0)??"#Unknown").split("#"),Q=J.getSchema()[6],R=[3,G,K,J.getMergedTraits(),T,N,void 0];if(Q)R[6]=Q;else R.pop();A.write(R,z),P=A.flush()}return I.headers=F,I.query=B,I.body=P,I}serializeQuery(j,m,w){let z=this.serializer,A=j.getMergedTraits();if(A.httpQueryParams){for(let B in m)if(!(B in w)){let F=m[B],D=j.getValueSchema();Object.assign(D.getMergedTraits(),{...A,httpQuery:B,httpQueryParams:void 0}),this.serializeQuery(D,F,w)}return}if(j.isListSchema()){let B=!!j.getMergedTraits().sparse,F=[];for(let D of m){z.write([j.getValueSchema(),A],D);let J=z.flush();if(B||J!==void 0)F.push(J)}w[A.httpQuery]=F}else z.write([j,A],m),w[A.httpQuery]=z.flush()}async deserializeResponse(j,m,w){let z=this.deserializer,A=U.NormalizedSchema.of(j.output),B={};if(w.statusCode>=300){let D=await X(w.body,m);if(D.byteLength>0)Object.assign(B,await z.read(15,D));throw await this.handleError(j,m,w,B,this.deserializeMetadata(w)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let D in w.headers){let J=w.headers[D];delete w.headers[D],w.headers[D.toLowerCase()]=J}let F=await this.deserializeHttpMessage(A,m,w,B);if(F.length){let D=await X(w.body,m);if(D.byteLength>0){let J=await z.read(A,D);for(let T of F)if(J[T]!=null)B[T]=J[T]}}else if(F.discardResponseBody)await X(w.body,m);return B.$metadata=this.deserializeMetadata(w),B}async deserializeHttpMessage(j,m,w,z,A){let B;if(z instanceof Set)B=A;else B=z;let F=!0,D=this.deserializer,J=U.NormalizedSchema.of(j),T=[];for(let[N,O]of J.structIterator()){let P=O.getMemberTraits();if(P.httpPayload){if(F=!1,O.isStreaming())if(O.isStructSchema())B[N]=await this.deserializeEventStream({response:w,responseSchema:J});else B[N]=M.sdkStreamMixin(w.body);else if(w.body){let G=await X(w.body,m);if(G.byteLength>0)B[N]=await D.read(O,G)}}else if(P.httpHeader){let I=String(P.httpHeader).toLowerCase(),G=w.headers[I];if(G!=null)if(O.isListSchema()){let K=O.getValueSchema();K.getMergedTraits().httpHeader=I;let Q;if(K.isTimestampSchema()&&K.getSchema()===4)Q=M.splitEvery(G,",",2);else Q=M.splitHeader(G);let R=[];for(let W of Q)R.push(await D.read(K,W.trim()));B[N]=R}else B[N]=await D.read(O,G)}else if(P.httpPrefixHeaders!==void 0){B[N]={};for(let I in w.headers)if(I.startsWith(P.httpPrefixHeaders)){let G=w.headers[I],K=O.getValueSchema();K.getMergedTraits().httpHeader=I,B[N][I.slice(P.httpPrefixHeaders.length)]=await D.read(K,G)}}else if(P.httpResponseCode)B[N]=w.statusCode;else T.push(N)}return T.discardResponseBody=F,T}}class d extends f{async serializeRequest(j,m,w){let z=this.serializer,A={},B={},F=await w.endpoint(),D=U.NormalizedSchema.of(j?.input),J=D.getSchema(),T,N=m&&typeof m==="object"?m:{},O=new V.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:A,headers:B,body:void 0});if(F)this.updateServiceEndpoint(O,F),this.setHostPrefix(O,j,N);if(N){let P=D.getEventStreamMember();if(P){if(N[P]){let I={};for(let[G,K]of D.structIterator())if(G!==P&&N[G])z.write(K,N[G]),I[G]=z.flush();T=await this.serializeEventStream({eventStream:N[P],requestSchema:D,initialRequest:I})}}else z.write(J,N),T=z.flush()}return O.headers=Object.assign(O.headers,B),O.query=A,O.body=T,O.method="POST",O}async deserializeResponse(j,m,w){let z=this.deserializer,A=U.NormalizedSchema.of(j.output),B={};if(w.statusCode>=300){let D=await X(w.body,m);if(D.byteLength>0)Object.assign(B,await z.read(15,D));throw await this.handleError(j,m,w,B,this.deserializeMetadata(w)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let D in w.headers){let J=w.headers[D];delete w.headers[D],w.headers[D.toLowerCase()]=J}let F=A.getEventStreamMember();if(F)B[F]=await this.deserializeEventStream({response:w,responseSchema:A,initialResponseContainer:B});else{let D=await X(w.body,m);if(D.byteLength>0)Object.assign(B,await z.read(A,D))}return B.$metadata=this.deserializeMetadata(w),B}}var p=(j,m,w,z,A,B)=>{if(m!=null&&m[w]!==void 0){let F=z();if(F==null||F.length<=0)throw Error("Empty value provided for input HTTP label: "+w+".");j=j.replace(A,B?F.split("/").map((D)=>_(D)).join("/"):_(F))}else throw Error("No value provided for input HTTP label: "+w+".");return j};function s(j,m){return new H(j,m)}class H{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(j,m){this.input=j,this.context=m}async build(){let{hostname:j,protocol:m="https",port:w,path:z}=await this.context.endpoint();this.path=z;for(let A of this.resolvePathStack)A(this.path);return new V.HttpRequest({protocol:m,hostname:this.hostname||j,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(j){return this.hostname=j,this}bp(j){return this.resolvePathStack.push((m)=>{this.path=`${m?.endsWith("/")?m.slice(0,-1):m||""}`+j}),this}p(j,m,w,z){return this.resolvePathStack.push((A)=>{this.path=p(A,this.input,j,m,w,z)}),this}h(j){return this.headers=j,this}q(j){return this.query=j,this}b(j){return this.body=j,this}m(j){return this.method=j,this}}function S(j,m){if(m.timestampFormat.useTrait){if(j.isTimestampSchema()&&(j.getSchema()===5||j.getSchema()===6||j.getSchema()===7))return j.getSchema()}let{httpLabel:w,httpPrefixHeaders:z,httpHeader:A,httpQuery:B}=j.getMergedTraits();return(m.httpBindings?typeof z==="string"||Boolean(A)?6:Boolean(B)||Boolean(w)?5:void 0:void 0)??m.timestampFormat.default}class x extends Y{settings;constructor(j){super();this.settings=j}read(j,m){let w=U.NormalizedSchema.of(j);if(w.isListSchema())return M.splitHeader(m).map((z)=>this.read(w.getValueSchema(),z));if(w.isBlobSchema())return(this.serdeContext?.base64Decoder??M.fromBase64)(m);if(w.isTimestampSchema())switch(S(w,this.settings)){case 5:return M._parseRfc3339DateTimeWithOffset(m);case 6:return M._parseRfc7231DateTime(m);case 7:return M._parseEpochTimestamp(m);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",m),new Date(m)}if(w.isStringSchema()){let z=w.getMergedTraits().mediaType,A=m;if(z){if(w.getMergedTraits().httpHeader)A=this.base64ToUtf8(A);if(z==="application/json"||z.endsWith("+json"))A=M.LazyJsonString.from(A);return A}}if(w.isNumericSchema())return Number(m);if(w.isBigIntegerSchema())return BigInt(m);if(w.isBigDecimalSchema())return new M.NumericValue(m,"bigDecimal");if(w.isBooleanSchema())return String(m).toLowerCase()==="true";return m}base64ToUtf8(j){return(this.serdeContext?.utf8Encoder??M.toUtf8)((this.serdeContext?.base64Decoder??M.fromBase64)(j))}}class v extends Y{codecDeserializer;stringDeserializer;constructor(j,m){super();this.codecDeserializer=j,this.stringDeserializer=new x(m)}setSerdeContext(j){this.stringDeserializer.setSerdeContext(j),this.codecDeserializer.setSerdeContext(j),this.serdeContext=j}read(j,m){let w=U.NormalizedSchema.of(j),z=w.getMergedTraits(),A=this.serdeContext?.utf8Encoder??M.toUtf8;if(z.httpHeader||z.httpResponseCode)return this.stringDeserializer.read(w,A(m));if(z.httpPayload){if(w.isBlobSchema()){let B=this.serdeContext?.utf8Decoder??M.fromUtf8;if(typeof m==="string")return B(m);return m}else if(w.isStringSchema()){if("byteLength"in m)return A(m);return m}}return this.codecDeserializer.read(w,m)}}class C extends Y{settings;stringBuffer="";constructor(j){super();this.settings=j}write(j,m){let w=U.NormalizedSchema.of(j);switch(typeof m){case"object":if(m===null){this.stringBuffer="null";return}if(w.isTimestampSchema()){if(!(m instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${m} when schema expected Date in ${w.getName(!0)}`);switch(S(w,this.settings)){case 5:this.stringBuffer=m.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=M.dateToUtcString(m);break;case 7:this.stringBuffer=String(m.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",m),this.stringBuffer=String(m.getTime()/1000)}return}if(w.isBlobSchema()&&"byteLength"in m){this.stringBuffer=(this.serdeContext?.base64Encoder??M.toBase64)(m);return}if(w.isListSchema()&&Array.isArray(m)){let B="";for(let F of m){this.write([w.getValueSchema(),w.getMergedTraits()],F);let D=this.flush(),J=w.getValueSchema().isTimestampSchema()?D:M.quoteHeader(D);if(B!=="")B+=", ";B+=J}this.stringBuffer=B;return}this.stringBuffer=JSON.stringify(m,null,2);break;case"string":let z=w.getMergedTraits().mediaType,A=m;if(z){if(z==="application/json"||z.endsWith("+json"))A=M.LazyJsonString.from(A);if(w.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??M.toBase64)(A.toString());return}}this.stringBuffer=m;break;default:if(w.isIdempotencyToken())this.stringBuffer=M.generateIdempotencyToken();else this.stringBuffer=String(m)}}flush(){let j=this.stringBuffer;return this.stringBuffer="",j}}class h{codecSerializer;stringSerializer;buffer;constructor(j,m,w=new C(m)){this.codecSerializer=j,this.stringSerializer=w}setSerdeContext(j){this.codecSerializer.setSerdeContext(j),this.stringSerializer.setSerdeContext(j)}write(j,m){let w=U.NormalizedSchema.of(j),z=w.getMergedTraits();if(z.httpHeader||z.httpLabel||z.httpQuery){this.stringSerializer.write(w,m),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(w,m)}flush(){if(this.buffer!==void 0){let j=this.buffer;return this.buffer=void 0,j}return this.codecSerializer.flush()}}class c{name;kind;values;constructor({name:j,kind:m=a.FieldPosition.HEADER,values:w=[]}){this.name=j,this.kind=m,this.values=w}add(j){this.values.push(j)}set(j){this.values=j}remove(j){this.values=this.values.filter((m)=>m!==j)}toString(){return this.values.map((j)=>j.includes(",")||j.includes(" ")?`"${j}"`:j).join(", ")}get(){return this.values}}class g{entries={};encoding;constructor({fields:j=[],encoding:m="utf-8"}){j.forEach(this.setField.bind(this)),this.encoding=m}setField(j){this.entries[j.name.toLowerCase()]=j}getField(j){return this.entries[j.toLowerCase()]}removeField(j){delete this.entries[j.toLowerCase()]}getByType(j){return Object.values(this.entries).filter((m)=>m.kind===j)}}var u=(j)=>{return{setHttpHandler(m){j.httpHandler=m},httpHandler(){return j.httpHandler},updateHttpClientConfig(m,w){j.httpHandler?.updateHttpClientConfig(m,w)},httpHandlerConfigs(){return j.httpHandler.httpHandlerConfigs()}}},t=(j)=>{return{httpHandler:j.httpHandler()}},L="content-length";function k(j){return(m)=>async(w)=>{let z=w.request;if(V.HttpRequest.isInstance(z)){let{body:A,headers:B}=z;if(A&&Object.keys(B).map((F)=>F.toLowerCase()).indexOf(L)===-1)try{let F=j(A);z.headers={...z.headers,[L]:String(F)}}catch(F){}}return m({...w,request:z})}}var l={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},r=(j)=>({applyToStack:(m)=>{m.add(k(j.bodyLengthChecker),l)}}),Z=(j)=>encodeURIComponent(j).replace(/[!'()*]/g,e),e=(j)=>`%${j.charCodeAt(0).toString(16).toUpperCase()}`,jj=(j)=>j.split("/").map(Z).join("/");function mj(j){let m=[];for(let w of Object.keys(j).sort()){let z=j[w];if(w=Z(w),Array.isArray(z))for(let A=0,B=z.length;A<B;A++)m.push(`${w}=${Z(z[A])}`);else{let A=w;if(z||typeof z==="string")A+=`=${Z(z)}`;m.push(A)}}return m.join("&")}wj.HttpRequest=V.HttpRequest;wj.HttpResponse=V.HttpResponse;wj.isValidHostname=V.isValidHostname;wj.parseQueryString=V.parseQueryString;wj.parseUrl=V.parseUrl;wj.Field=c;wj.Fields=g;wj.FromStringShapeDeserializer=x;wj.HttpBindingProtocol=b;wj.HttpInterceptingShapeDeserializer=v;wj.HttpInterceptingShapeSerializer=h;wj.HttpProtocol=f;wj.RequestBuilder=H;wj.RpcProtocol=d;wj.SerdeContext=Y;wj.ToStringShapeSerializer=C;wj.buildQueryString=mj;wj.collectBody=X;wj.contentLengthMiddleware=k;wj.contentLengthMiddlewareOptions=l;wj.determineTimestampFormat=S;wj.escapeUri=Z;wj.escapeUriPath=jj;wj.extendedEncodeURIComponent=_;wj.getContentLengthPlugin=r;wj.getHttpHandlerExtensionConfiguration=u;wj.requestBuilder=s;wj.resolveHttpHandlerRuntimeConfig=t;wj.resolvedPath=p});
2
+ import{Ef as q,Ff as i,Gf as y,Kf as n}from"./chunk-35fj1sfm.js";import{uO as o}from"./chunk-e0vrxetq.js";var Ej=o((wj)=>{var M=n(),U=y(),V=i(),a=q(),X=async(j=new Uint8Array,m)=>{if(j instanceof Uint8Array)return M.Uint8ArrayBlobAdapter.mutate(j);if(!j)return M.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=m.streamCollector(j);return M.Uint8ArrayBlobAdapter.mutate(await w)};function _(j){return encodeURIComponent(j).replace(/[!'()*]/g,function(m){return"%"+m.charCodeAt(0).toString(16).toUpperCase()})}class Y{serdeContext;setSerdeContext(j){this.serdeContext=j}}class f extends Y{options;compositeErrorRegistry;constructor(j){super();this.options=j,this.compositeErrorRegistry=U.TypeRegistry.for(j.defaultNamespace);for(let m of j.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(m)}getRequestType(){return V.HttpRequest}getResponseType(){return V.HttpResponse}setSerdeContext(j){if(this.serdeContext=j,this.serializer.setSerdeContext(j),this.deserializer.setSerdeContext(j),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext(j)}updateServiceEndpoint(j,m){if("url"in m){if(j.protocol=m.url.protocol,j.hostname=m.url.hostname,j.port=m.url.port?Number(m.url.port):void 0,j.path=m.url.pathname,j.fragment=m.url.hash||void 0,j.username=m.url.username||void 0,j.password=m.url.password||void 0,!j.query)j.query={};for(let[w,z]of m.url.searchParams.entries())j.query[w]=z;if(m.headers)for(let w in m.headers)j.headers[w]=m.headers[w].join(", ");return j}else{if(j.protocol=m.protocol,j.hostname=m.hostname,j.port=m.port?Number(m.port):void 0,j.path=m.path,j.query={...m.query},m.headers)for(let w in m.headers)j.headers[w]=m.headers[w];return j}}setHostPrefix(j,m,w){if(this.serdeContext?.disableHostPrefix)return;let z=U.NormalizedSchema.of(m.input),A=U.translateTraits(m.traits??{});if(A.endpoint){let B=A.endpoint?.[0];if(typeof B==="string"){for(let[F,D]of z.structIterator()){if(!D.getMergedTraits().hostLabel)continue;let J=w[F];if(typeof J!=="string")throw Error(`@smithy/core/schema - ${F} in input must be a string as hostLabel.`);B=B.replace(`{${F}}`,J)}j.hostname=B+j.hostname}}}deserializeMetadata(j){return{httpStatusCode:j.statusCode,requestId:j.headers["x-amzn-requestid"]??j.headers["x-amzn-request-id"]??j.headers["x-amz-request-id"],extendedRequestId:j.headers["x-amz-id-2"],cfId:j.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:j,requestSchema:m,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:j,requestSchema:m,initialRequest:w})}async deserializeEventStream({response:j,responseSchema:m,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:j,responseSchema:m,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:j}=await import("./chunk-1har4t9a.js");return new j({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(j,m,w,z,A){return[]}getEventStreamMarshaller(){let j=this.serdeContext;if(!j.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return j.eventStreamMarshaller}}class b extends f{async serializeRequest(j,m,w){let z=m&&typeof m==="object"?m:{},A=this.serializer,B={},F={},D=await w.endpoint(),J=U.NormalizedSchema.of(j?.input),T=[],N=[],O=!1,P,I=new V.HttpRequest({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:B,headers:F,body:void 0});if(D){this.updateServiceEndpoint(I,D),this.setHostPrefix(I,j,z);let G=U.translateTraits(j.traits);if(G.http){I.method=G.http[0];let[K,Q]=G.http[1].split("?");if(I.path=="/")I.path=K;else I.path+=K;let R=new URLSearchParams(Q??"");for(let[W,$]of R)B[W]=$}}for(let[G,K]of J.structIterator()){let Q=K.getMergedTraits()??{},R=z[G];if(R==null&&!K.isIdempotencyToken()){if(Q.httpLabel){if(I.path.includes(`{${G}+}`)||I.path.includes(`{${G}}`))throw Error(`No value provided for input HTTP label: ${G}.`)}continue}if(Q.httpPayload)if(K.isStreaming())if(K.isStructSchema()){if(z[G])P=await this.serializeEventStream({eventStream:z[G],requestSchema:J})}else P=R;else A.write(K,R),P=A.flush();else if(Q.httpLabel){A.write(K,R);let W=A.flush();if(I.path.includes(`{${G}+}`))I.path=I.path.replace(`{${G}+}`,W.split("/").map(_).join("/"));else if(I.path.includes(`{${G}}`))I.path=I.path.replace(`{${G}}`,_(W))}else if(Q.httpHeader)A.write(K,R),F[Q.httpHeader.toLowerCase()]=String(A.flush());else if(typeof Q.httpPrefixHeaders==="string")for(let W in R){let $=R[W],E=Q.httpPrefixHeaders+W;A.write([K.getValueSchema(),{httpHeader:E}],$),F[E.toLowerCase()]=A.flush()}else if(Q.httpQuery||Q.httpQueryParams)this.serializeQuery(K,R,B);else O=!0,T.push(G),N.push(K)}if(O&&z){let[G,K]=(J.getName(!0)??"#Unknown").split("#"),Q=J.getSchema()[6],R=[3,G,K,J.getMergedTraits(),T,N,void 0];if(Q)R[6]=Q;else R.pop();A.write(R,z),P=A.flush()}return I.headers=F,I.query=B,I.body=P,I}serializeQuery(j,m,w){let z=this.serializer,A=j.getMergedTraits();if(A.httpQueryParams){for(let B in m)if(!(B in w)){let F=m[B],D=j.getValueSchema();Object.assign(D.getMergedTraits(),{...A,httpQuery:B,httpQueryParams:void 0}),this.serializeQuery(D,F,w)}return}if(j.isListSchema()){let B=!!j.getMergedTraits().sparse,F=[];for(let D of m){z.write([j.getValueSchema(),A],D);let J=z.flush();if(B||J!==void 0)F.push(J)}w[A.httpQuery]=F}else z.write([j,A],m),w[A.httpQuery]=z.flush()}async deserializeResponse(j,m,w){let z=this.deserializer,A=U.NormalizedSchema.of(j.output),B={};if(w.statusCode>=300){let D=await X(w.body,m);if(D.byteLength>0)Object.assign(B,await z.read(15,D));throw await this.handleError(j,m,w,B,this.deserializeMetadata(w)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let D in w.headers){let J=w.headers[D];delete w.headers[D],w.headers[D.toLowerCase()]=J}let F=await this.deserializeHttpMessage(A,m,w,B);if(F.length){let D=await X(w.body,m);if(D.byteLength>0){let J=await z.read(A,D);for(let T of F)if(J[T]!=null)B[T]=J[T]}}else if(F.discardResponseBody)await X(w.body,m);return B.$metadata=this.deserializeMetadata(w),B}async deserializeHttpMessage(j,m,w,z,A){let B;if(z instanceof Set)B=A;else B=z;let F=!0,D=this.deserializer,J=U.NormalizedSchema.of(j),T=[];for(let[N,O]of J.structIterator()){let P=O.getMemberTraits();if(P.httpPayload){if(F=!1,O.isStreaming())if(O.isStructSchema())B[N]=await this.deserializeEventStream({response:w,responseSchema:J});else B[N]=M.sdkStreamMixin(w.body);else if(w.body){let G=await X(w.body,m);if(G.byteLength>0)B[N]=await D.read(O,G)}}else if(P.httpHeader){let I=String(P.httpHeader).toLowerCase(),G=w.headers[I];if(G!=null)if(O.isListSchema()){let K=O.getValueSchema();K.getMergedTraits().httpHeader=I;let Q;if(K.isTimestampSchema()&&K.getSchema()===4)Q=M.splitEvery(G,",",2);else Q=M.splitHeader(G);let R=[];for(let W of Q)R.push(await D.read(K,W.trim()));B[N]=R}else B[N]=await D.read(O,G)}else if(P.httpPrefixHeaders!==void 0){B[N]={};for(let I in w.headers)if(I.startsWith(P.httpPrefixHeaders)){let G=w.headers[I],K=O.getValueSchema();K.getMergedTraits().httpHeader=I,B[N][I.slice(P.httpPrefixHeaders.length)]=await D.read(K,G)}}else if(P.httpResponseCode)B[N]=w.statusCode;else T.push(N)}return T.discardResponseBody=F,T}}class d extends f{async serializeRequest(j,m,w){let z=this.serializer,A={},B={},F=await w.endpoint(),D=U.NormalizedSchema.of(j?.input),J=D.getSchema(),T,N=m&&typeof m==="object"?m:{},O=new V.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:A,headers:B,body:void 0});if(F)this.updateServiceEndpoint(O,F),this.setHostPrefix(O,j,N);if(N){let P=D.getEventStreamMember();if(P){if(N[P]){let I={};for(let[G,K]of D.structIterator())if(G!==P&&N[G])z.write(K,N[G]),I[G]=z.flush();T=await this.serializeEventStream({eventStream:N[P],requestSchema:D,initialRequest:I})}}else z.write(J,N),T=z.flush()}return O.headers=Object.assign(O.headers,B),O.query=A,O.body=T,O.method="POST",O}async deserializeResponse(j,m,w){let z=this.deserializer,A=U.NormalizedSchema.of(j.output),B={};if(w.statusCode>=300){let D=await X(w.body,m);if(D.byteLength>0)Object.assign(B,await z.read(15,D));throw await this.handleError(j,m,w,B,this.deserializeMetadata(w)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let D in w.headers){let J=w.headers[D];delete w.headers[D],w.headers[D.toLowerCase()]=J}let F=A.getEventStreamMember();if(F)B[F]=await this.deserializeEventStream({response:w,responseSchema:A,initialResponseContainer:B});else{let D=await X(w.body,m);if(D.byteLength>0)Object.assign(B,await z.read(A,D))}return B.$metadata=this.deserializeMetadata(w),B}}var p=(j,m,w,z,A,B)=>{if(m!=null&&m[w]!==void 0){let F=z();if(F==null||F.length<=0)throw Error("Empty value provided for input HTTP label: "+w+".");j=j.replace(A,B?F.split("/").map((D)=>_(D)).join("/"):_(F))}else throw Error("No value provided for input HTTP label: "+w+".");return j};function s(j,m){return new H(j,m)}class H{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(j,m){this.input=j,this.context=m}async build(){let{hostname:j,protocol:m="https",port:w,path:z}=await this.context.endpoint();this.path=z;for(let A of this.resolvePathStack)A(this.path);return new V.HttpRequest({protocol:m,hostname:this.hostname||j,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(j){return this.hostname=j,this}bp(j){return this.resolvePathStack.push((m)=>{this.path=`${m?.endsWith("/")?m.slice(0,-1):m||""}`+j}),this}p(j,m,w,z){return this.resolvePathStack.push((A)=>{this.path=p(A,this.input,j,m,w,z)}),this}h(j){return this.headers=j,this}q(j){return this.query=j,this}b(j){return this.body=j,this}m(j){return this.method=j,this}}function S(j,m){if(m.timestampFormat.useTrait){if(j.isTimestampSchema()&&(j.getSchema()===5||j.getSchema()===6||j.getSchema()===7))return j.getSchema()}let{httpLabel:w,httpPrefixHeaders:z,httpHeader:A,httpQuery:B}=j.getMergedTraits();return(m.httpBindings?typeof z==="string"||Boolean(A)?6:Boolean(B)||Boolean(w)?5:void 0:void 0)??m.timestampFormat.default}class x extends Y{settings;constructor(j){super();this.settings=j}read(j,m){let w=U.NormalizedSchema.of(j);if(w.isListSchema())return M.splitHeader(m).map((z)=>this.read(w.getValueSchema(),z));if(w.isBlobSchema())return(this.serdeContext?.base64Decoder??M.fromBase64)(m);if(w.isTimestampSchema())switch(S(w,this.settings)){case 5:return M._parseRfc3339DateTimeWithOffset(m);case 6:return M._parseRfc7231DateTime(m);case 7:return M._parseEpochTimestamp(m);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",m),new Date(m)}if(w.isStringSchema()){let z=w.getMergedTraits().mediaType,A=m;if(z){if(w.getMergedTraits().httpHeader)A=this.base64ToUtf8(A);if(z==="application/json"||z.endsWith("+json"))A=M.LazyJsonString.from(A);return A}}if(w.isNumericSchema())return Number(m);if(w.isBigIntegerSchema())return BigInt(m);if(w.isBigDecimalSchema())return new M.NumericValue(m,"bigDecimal");if(w.isBooleanSchema())return String(m).toLowerCase()==="true";return m}base64ToUtf8(j){return(this.serdeContext?.utf8Encoder??M.toUtf8)((this.serdeContext?.base64Decoder??M.fromBase64)(j))}}class v extends Y{codecDeserializer;stringDeserializer;constructor(j,m){super();this.codecDeserializer=j,this.stringDeserializer=new x(m)}setSerdeContext(j){this.stringDeserializer.setSerdeContext(j),this.codecDeserializer.setSerdeContext(j),this.serdeContext=j}read(j,m){let w=U.NormalizedSchema.of(j),z=w.getMergedTraits(),A=this.serdeContext?.utf8Encoder??M.toUtf8;if(z.httpHeader||z.httpResponseCode)return this.stringDeserializer.read(w,A(m));if(z.httpPayload){if(w.isBlobSchema()){let B=this.serdeContext?.utf8Decoder??M.fromUtf8;if(typeof m==="string")return B(m);return m}else if(w.isStringSchema()){if("byteLength"in m)return A(m);return m}}return this.codecDeserializer.read(w,m)}}class C extends Y{settings;stringBuffer="";constructor(j){super();this.settings=j}write(j,m){let w=U.NormalizedSchema.of(j);switch(typeof m){case"object":if(m===null){this.stringBuffer="null";return}if(w.isTimestampSchema()){if(!(m instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${m} when schema expected Date in ${w.getName(!0)}`);switch(S(w,this.settings)){case 5:this.stringBuffer=m.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=M.dateToUtcString(m);break;case 7:this.stringBuffer=String(m.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",m),this.stringBuffer=String(m.getTime()/1000)}return}if(w.isBlobSchema()&&"byteLength"in m){this.stringBuffer=(this.serdeContext?.base64Encoder??M.toBase64)(m);return}if(w.isListSchema()&&Array.isArray(m)){let B="";for(let F of m){this.write([w.getValueSchema(),w.getMergedTraits()],F);let D=this.flush(),J=w.getValueSchema().isTimestampSchema()?D:M.quoteHeader(D);if(B!=="")B+=", ";B+=J}this.stringBuffer=B;return}this.stringBuffer=JSON.stringify(m,null,2);break;case"string":let z=w.getMergedTraits().mediaType,A=m;if(z){if(z==="application/json"||z.endsWith("+json"))A=M.LazyJsonString.from(A);if(w.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??M.toBase64)(A.toString());return}}this.stringBuffer=m;break;default:if(w.isIdempotencyToken())this.stringBuffer=M.generateIdempotencyToken();else this.stringBuffer=String(m)}}flush(){let j=this.stringBuffer;return this.stringBuffer="",j}}class h{codecSerializer;stringSerializer;buffer;constructor(j,m,w=new C(m)){this.codecSerializer=j,this.stringSerializer=w}setSerdeContext(j){this.codecSerializer.setSerdeContext(j),this.stringSerializer.setSerdeContext(j)}write(j,m){let w=U.NormalizedSchema.of(j),z=w.getMergedTraits();if(z.httpHeader||z.httpLabel||z.httpQuery){this.stringSerializer.write(w,m),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(w,m)}flush(){if(this.buffer!==void 0){let j=this.buffer;return this.buffer=void 0,j}return this.codecSerializer.flush()}}class c{name;kind;values;constructor({name:j,kind:m=a.FieldPosition.HEADER,values:w=[]}){this.name=j,this.kind=m,this.values=w}add(j){this.values.push(j)}set(j){this.values=j}remove(j){this.values=this.values.filter((m)=>m!==j)}toString(){return this.values.map((j)=>j.includes(",")||j.includes(" ")?`"${j}"`:j).join(", ")}get(){return this.values}}class g{entries={};encoding;constructor({fields:j=[],encoding:m="utf-8"}){j.forEach(this.setField.bind(this)),this.encoding=m}setField(j){this.entries[j.name.toLowerCase()]=j}getField(j){return this.entries[j.toLowerCase()]}removeField(j){delete this.entries[j.toLowerCase()]}getByType(j){return Object.values(this.entries).filter((m)=>m.kind===j)}}var u=(j)=>{return{setHttpHandler(m){j.httpHandler=m},httpHandler(){return j.httpHandler},updateHttpClientConfig(m,w){j.httpHandler?.updateHttpClientConfig(m,w)},httpHandlerConfigs(){return j.httpHandler.httpHandlerConfigs()}}},t=(j)=>{return{httpHandler:j.httpHandler()}},L="content-length";function k(j){return(m)=>async(w)=>{let z=w.request;if(V.HttpRequest.isInstance(z)){let{body:A,headers:B}=z;if(A&&Object.keys(B).map((F)=>F.toLowerCase()).indexOf(L)===-1)try{let F=j(A);z.headers={...z.headers,[L]:String(F)}}catch(F){}}return m({...w,request:z})}}var l={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},r=(j)=>({applyToStack:(m)=>{m.add(k(j.bodyLengthChecker),l)}}),Z=(j)=>encodeURIComponent(j).replace(/[!'()*]/g,e),e=(j)=>`%${j.charCodeAt(0).toString(16).toUpperCase()}`,jj=(j)=>j.split("/").map(Z).join("/");function mj(j){let m=[];for(let w of Object.keys(j).sort()){let z=j[w];if(w=Z(w),Array.isArray(z))for(let A=0,B=z.length;A<B;A++)m.push(`${w}=${Z(z[A])}`);else{let A=w;if(z||typeof z==="string")A+=`=${Z(z)}`;m.push(A)}}return m.join("&")}wj.HttpRequest=V.HttpRequest;wj.HttpResponse=V.HttpResponse;wj.isValidHostname=V.isValidHostname;wj.parseQueryString=V.parseQueryString;wj.parseUrl=V.parseUrl;wj.Field=c;wj.Fields=g;wj.FromStringShapeDeserializer=x;wj.HttpBindingProtocol=b;wj.HttpInterceptingShapeDeserializer=v;wj.HttpInterceptingShapeSerializer=h;wj.HttpProtocol=f;wj.RequestBuilder=H;wj.RpcProtocol=d;wj.SerdeContext=Y;wj.ToStringShapeSerializer=C;wj.buildQueryString=mj;wj.collectBody=X;wj.contentLengthMiddleware=k;wj.contentLengthMiddlewareOptions=l;wj.determineTimestampFormat=S;wj.escapeUri=Z;wj.escapeUriPath=jj;wj.extendedEncodeURIComponent=_;wj.getContentLengthPlugin=r;wj.getHttpHandlerExtensionConfiguration=u;wj.requestBuilder=s;wj.resolveHttpHandlerRuntimeConfig=t;wj.resolvedPath=p});
3
3
  export{Ej as Oe};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Ae as d,Be as e,Ce as f,De as g,xe as a,ye as b,ze as c}from"./chunk-rye1yjnr.js";import"./chunk-ejhhrece.js";import"./chunk-0a4pmkc9.js";import"./chunk-35fj1sfm.js";import"./chunk-e0vrxetq.js";export{g as fromEnv,c as ENV_SESSION,b as ENV_SECRET,a as ENV_KEY,d as ENV_EXPIRATION,e as ENV_CREDENTIAL_SCOPE,f as ENV_ACCOUNT_ID};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{yr as m}from"./chunk-mhxyv9c8.js";var B=Symbol("Let zodToJsonSchema decide on which parser to use"),Zt=(t,n)=>{if(n.description)try{return{...t,...JSON.parse(n.description)}}catch{}return t},M={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},U=(t)=>typeof t==="string"?{...M,name:t}:{...M,...t};var w=(t)=>{let n=U(t),r=n.name!==void 0?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([o,p])=>[p._def,{def:p._def,path:[...n.basePath,n.definitionPath,o],jsonSchema:void 0}]))}};function S(t,n,r,o){if(!o?.errorMessages)return;if(r)t.errorMessage={...t.errorMessage,[n]:r}}function e(t,n,r,o,p){t[n]=r,S(t,n,o,p)}var b=(t,n)=>{let r=0;for(;r<t.length&&r<n.length;r++)if(t[r]!==n[r])break;return[(t.length-r).toString(),...n.slice(r)].join("/")};function D(t){if(t.target!=="openAi")return{};let n=[...t.basePath,t.definitionPath,t.openAiAnyTypeName];return t.flags.hasReferencedOpenAiAnyType=!0,{$ref:t.$refStrategy==="relative"?b(n,t.currentPath):n.join("/")}}function E(t,n){let r={type:"array"};if(t.type?._def&&t.type?._def?.typeName!==m.ZodAny)r.items=i(t.type._def,{...n,currentPath:[...n.currentPath,"items"]});if(t.minLength)e(r,"minItems",t.minLength.value,t.minLength.message,n);if(t.maxLength)e(r,"maxItems",t.maxLength.value,t.maxLength.message,n);if(t.exactLength)e(r,"minItems",t.exactLength.value,t.exactLength.message,n),e(r,"maxItems",t.exactLength.value,t.exactLength.message,n);return r}function K(t,n){let r={type:"integer",format:"int64"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"min":if(n.target==="jsonSchema7")if(o.inclusive)e(r,"minimum",o.value,o.message,n);else e(r,"exclusiveMinimum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMinimum=!0;e(r,"minimum",o.value,o.message,n)}break;case"max":if(n.target==="jsonSchema7")if(o.inclusive)e(r,"maximum",o.value,o.message,n);else e(r,"exclusiveMaximum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMaximum=!0;e(r,"maximum",o.value,o.message,n)}break;case"multipleOf":e(r,"multipleOf",o.value,o.message,n);break}return r}function $(){return{type:"boolean"}}function N(t,n){return i(t.type._def,n)}var J=(t,n)=>{return i(t.innerType._def,n)};function O(t,n,r){let o=r??n.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((p,u)=>O(t,n,p))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ut(t,n)}}var ut=(t,n)=>{let r={type:"integer",format:"unix-time"};if(n.target==="openApi3")return r;for(let o of t.checks)switch(o.kind){case"min":e(r,"minimum",o.value,o.message,n);break;case"max":e(r,"maximum",o.value,o.message,n);break}return r};function q(t,n){return{...i(t.innerType._def,n),default:t.defaultValue()}}function Q(t,n){return n.effectStrategy==="input"?i(t.schema._def,n):D(n)}function X(t){return{type:"string",enum:Array.from(t.values)}}var mt=(t)=>{if("type"in t&&t.type==="string")return!1;return"allOf"in t};function Y(t,n){let r=[i(t.left._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),i(t.right._def,{...n,currentPath:[...n.currentPath,"allOf","1"]})].filter((u)=>!!u),o=n.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,p=[];return r.forEach((u)=>{if(mt(u)){if(p.push(...u.allOf),u.unevaluatedProperties===void 0)o=void 0}else{let l=u;if("additionalProperties"in u&&u.additionalProperties===!1){let{additionalProperties:y,...a}=u;l=a}else o=void 0;p.push(l)}}),p.length?{allOf:p,...o}:void 0}function H(t,n){let r=typeof t.value;if(r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string")return{type:Array.isArray(t.value)?"array":"object"};if(n.target==="openApi3")return{type:r==="bigint"?"integer":r,enum:[t.value]};return{type:r==="bigint"?"integer":r,const:t.value}}var I=void 0,Z={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(I===void 0)I=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return I},uuid:/^[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}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([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])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function A(t,n){let r={type:"string"};if(t.checks)for(let o of t.checks)switch(o.kind){case"min":e(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n);break;case"max":e(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"email":switch(n.emailStrategy){case"format:email":v(r,"email",o.message,n);break;case"format:idn-email":v(r,"idn-email",o.message,n);break;case"pattern:zod":g(r,Z.email,o.message,n);break}break;case"url":v(r,"uri",o.message,n);break;case"uuid":v(r,"uuid",o.message,n);break;case"regex":g(r,o.regex,o.message,n);break;case"cuid":g(r,Z.cuid,o.message,n);break;case"cuid2":g(r,Z.cuid2,o.message,n);break;case"startsWith":g(r,RegExp(`^${L(o.value,n)}`),o.message,n);break;case"endsWith":g(r,RegExp(`${L(o.value,n)}$`),o.message,n);break;case"datetime":v(r,"date-time",o.message,n);break;case"date":v(r,"date",o.message,n);break;case"time":v(r,"time",o.message,n);break;case"duration":v(r,"duration",o.message,n);break;case"length":e(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n),e(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"includes":{g(r,RegExp(L(o.value,n)),o.message,n);break}case"ip":{if(o.version!=="v6")v(r,"ipv4",o.message,n);if(o.version!=="v4")v(r,"ipv6",o.message,n);break}case"base64url":g(r,Z.base64url,o.message,n);break;case"jwt":g(r,Z.jwt,o.message,n);break;case"cidr":{if(o.version!=="v6")g(r,Z.ipv4Cidr,o.message,n);if(o.version!=="v4")g(r,Z.ipv6Cidr,o.message,n);break}case"emoji":g(r,Z.emoji(),o.message,n);break;case"ulid":{g(r,Z.ulid,o.message,n);break}case"base64":{switch(n.base64Strategy){case"format:binary":{v(r,"binary",o.message,n);break}case"contentEncoding:base64":{e(r,"contentEncoding","base64",o.message,n);break}case"pattern:zod":{g(r,Z.base64,o.message,n);break}}break}case"nanoid":g(r,Z.nanoid,o.message,n);case"toLowerCase":case"toUpperCase":case"trim":break;default:((p)=>{})(o)}return r}function L(t,n){return n.patternStrategy==="escape"?et(t):t}var at=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function et(t){let n="";for(let r=0;r<t.length;r++){if(!at.has(t[r]))n+="\\";n+=t[r]}return n}function v(t,n,r,o){if(t.format||t.anyOf?.some((p)=>p.format)){if(!t.anyOf)t.anyOf=[];if(t.format){if(t.anyOf.push({format:t.format,...t.errorMessage&&o.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage){if(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.anyOf.push({format:n,...r&&o.errorMessages&&{errorMessage:{format:r}}})}else e(t,"format",n,r,o)}function g(t,n,r,o){if(t.pattern||t.allOf?.some((p)=>p.pattern)){if(!t.allOf)t.allOf=[];if(t.pattern){if(t.allOf.push({pattern:t.pattern,...t.errorMessage&&o.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage){if(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.allOf.push({pattern:V(n,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})}else e(t,"pattern",V(n,o),r,o)}function V(t,n){if(!n.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},o=r.i?t.source.toLowerCase():t.source,p="",u=!1,l=!1,y=!1;for(let a=0;a<o.length;a++){if(u){p+=o[a],u=!1;continue}if(r.i){if(l){if(o[a].match(/[a-z]/)){if(y)p+=o[a],p+=`${o[a-2]}-${o[a]}`.toUpperCase(),y=!1;else if(o[a+1]==="-"&&o[a+2]?.match(/[a-z]/))p+=o[a],y=!0;else p+=`${o[a]}${o[a].toUpperCase()}`;continue}}else if(o[a].match(/[a-z]/)){p+=`[${o[a]}${o[a].toUpperCase()}]`;continue}}if(r.m){if(o[a]==="^"){p+=`(^|(?<=[\r
2
+ import{$p as m}from"./chunk-y3gy62q5.js";var B=Symbol("Let zodToJsonSchema decide on which parser to use"),Zt=(t,n)=>{if(n.description)try{return{...t,...JSON.parse(n.description)}}catch{}return t},M={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},U=(t)=>typeof t==="string"?{...M,name:t}:{...M,...t};var w=(t)=>{let n=U(t),r=n.name!==void 0?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([o,p])=>[p._def,{def:p._def,path:[...n.basePath,n.definitionPath,o],jsonSchema:void 0}]))}};function S(t,n,r,o){if(!o?.errorMessages)return;if(r)t.errorMessage={...t.errorMessage,[n]:r}}function e(t,n,r,o,p){t[n]=r,S(t,n,o,p)}var b=(t,n)=>{let r=0;for(;r<t.length&&r<n.length;r++)if(t[r]!==n[r])break;return[(t.length-r).toString(),...n.slice(r)].join("/")};function D(t){if(t.target!=="openAi")return{};let n=[...t.basePath,t.definitionPath,t.openAiAnyTypeName];return t.flags.hasReferencedOpenAiAnyType=!0,{$ref:t.$refStrategy==="relative"?b(n,t.currentPath):n.join("/")}}function E(t,n){let r={type:"array"};if(t.type?._def&&t.type?._def?.typeName!==m.ZodAny)r.items=i(t.type._def,{...n,currentPath:[...n.currentPath,"items"]});if(t.minLength)e(r,"minItems",t.minLength.value,t.minLength.message,n);if(t.maxLength)e(r,"maxItems",t.maxLength.value,t.maxLength.message,n);if(t.exactLength)e(r,"minItems",t.exactLength.value,t.exactLength.message,n),e(r,"maxItems",t.exactLength.value,t.exactLength.message,n);return r}function K(t,n){let r={type:"integer",format:"int64"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"min":if(n.target==="jsonSchema7")if(o.inclusive)e(r,"minimum",o.value,o.message,n);else e(r,"exclusiveMinimum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMinimum=!0;e(r,"minimum",o.value,o.message,n)}break;case"max":if(n.target==="jsonSchema7")if(o.inclusive)e(r,"maximum",o.value,o.message,n);else e(r,"exclusiveMaximum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMaximum=!0;e(r,"maximum",o.value,o.message,n)}break;case"multipleOf":e(r,"multipleOf",o.value,o.message,n);break}return r}function $(){return{type:"boolean"}}function N(t,n){return i(t.type._def,n)}var J=(t,n)=>{return i(t.innerType._def,n)};function O(t,n,r){let o=r??n.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((p,u)=>O(t,n,p))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ut(t,n)}}var ut=(t,n)=>{let r={type:"integer",format:"unix-time"};if(n.target==="openApi3")return r;for(let o of t.checks)switch(o.kind){case"min":e(r,"minimum",o.value,o.message,n);break;case"max":e(r,"maximum",o.value,o.message,n);break}return r};function q(t,n){return{...i(t.innerType._def,n),default:t.defaultValue()}}function Q(t,n){return n.effectStrategy==="input"?i(t.schema._def,n):D(n)}function X(t){return{type:"string",enum:Array.from(t.values)}}var mt=(t)=>{if("type"in t&&t.type==="string")return!1;return"allOf"in t};function Y(t,n){let r=[i(t.left._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),i(t.right._def,{...n,currentPath:[...n.currentPath,"allOf","1"]})].filter((u)=>!!u),o=n.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,p=[];return r.forEach((u)=>{if(mt(u)){if(p.push(...u.allOf),u.unevaluatedProperties===void 0)o=void 0}else{let l=u;if("additionalProperties"in u&&u.additionalProperties===!1){let{additionalProperties:y,...a}=u;l=a}else o=void 0;p.push(l)}}),p.length?{allOf:p,...o}:void 0}function H(t,n){let r=typeof t.value;if(r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string")return{type:Array.isArray(t.value)?"array":"object"};if(n.target==="openApi3")return{type:r==="bigint"?"integer":r,enum:[t.value]};return{type:r==="bigint"?"integer":r,const:t.value}}var I=void 0,Z={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(I===void 0)I=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return I},uuid:/^[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}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([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])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function A(t,n){let r={type:"string"};if(t.checks)for(let o of t.checks)switch(o.kind){case"min":e(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n);break;case"max":e(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"email":switch(n.emailStrategy){case"format:email":v(r,"email",o.message,n);break;case"format:idn-email":v(r,"idn-email",o.message,n);break;case"pattern:zod":g(r,Z.email,o.message,n);break}break;case"url":v(r,"uri",o.message,n);break;case"uuid":v(r,"uuid",o.message,n);break;case"regex":g(r,o.regex,o.message,n);break;case"cuid":g(r,Z.cuid,o.message,n);break;case"cuid2":g(r,Z.cuid2,o.message,n);break;case"startsWith":g(r,RegExp(`^${L(o.value,n)}`),o.message,n);break;case"endsWith":g(r,RegExp(`${L(o.value,n)}$`),o.message,n);break;case"datetime":v(r,"date-time",o.message,n);break;case"date":v(r,"date",o.message,n);break;case"time":v(r,"time",o.message,n);break;case"duration":v(r,"duration",o.message,n);break;case"length":e(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n),e(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"includes":{g(r,RegExp(L(o.value,n)),o.message,n);break}case"ip":{if(o.version!=="v6")v(r,"ipv4",o.message,n);if(o.version!=="v4")v(r,"ipv6",o.message,n);break}case"base64url":g(r,Z.base64url,o.message,n);break;case"jwt":g(r,Z.jwt,o.message,n);break;case"cidr":{if(o.version!=="v6")g(r,Z.ipv4Cidr,o.message,n);if(o.version!=="v4")g(r,Z.ipv6Cidr,o.message,n);break}case"emoji":g(r,Z.emoji(),o.message,n);break;case"ulid":{g(r,Z.ulid,o.message,n);break}case"base64":{switch(n.base64Strategy){case"format:binary":{v(r,"binary",o.message,n);break}case"contentEncoding:base64":{e(r,"contentEncoding","base64",o.message,n);break}case"pattern:zod":{g(r,Z.base64,o.message,n);break}}break}case"nanoid":g(r,Z.nanoid,o.message,n);case"toLowerCase":case"toUpperCase":case"trim":break;default:((p)=>{})(o)}return r}function L(t,n){return n.patternStrategy==="escape"?et(t):t}var at=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function et(t){let n="";for(let r=0;r<t.length;r++){if(!at.has(t[r]))n+="\\";n+=t[r]}return n}function v(t,n,r,o){if(t.format||t.anyOf?.some((p)=>p.format)){if(!t.anyOf)t.anyOf=[];if(t.format){if(t.anyOf.push({format:t.format,...t.errorMessage&&o.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage){if(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.anyOf.push({format:n,...r&&o.errorMessages&&{errorMessage:{format:r}}})}else e(t,"format",n,r,o)}function g(t,n,r,o){if(t.pattern||t.allOf?.some((p)=>p.pattern)){if(!t.allOf)t.allOf=[];if(t.pattern){if(t.allOf.push({pattern:t.pattern,...t.errorMessage&&o.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage){if(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.allOf.push({pattern:V(n,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})}else e(t,"pattern",V(n,o),r,o)}function V(t,n){if(!n.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},o=r.i?t.source.toLowerCase():t.source,p="",u=!1,l=!1,y=!1;for(let a=0;a<o.length;a++){if(u){p+=o[a],u=!1;continue}if(r.i){if(l){if(o[a].match(/[a-z]/)){if(y)p+=o[a],p+=`${o[a-2]}-${o[a]}`.toUpperCase(),y=!1;else if(o[a+1]==="-"&&o[a+2]?.match(/[a-z]/))p+=o[a],y=!0;else p+=`${o[a]}${o[a].toUpperCase()}`;continue}}else if(o[a].match(/[a-z]/)){p+=`[${o[a]}${o[a].toUpperCase()}]`;continue}}if(r.m){if(o[a]==="^"){p+=`(^|(?<=[\r
3
3
  ]))`;continue}else if(o[a]==="$"){p+=`($|(?=[\r
4
4
  ]))`;continue}}if(r.s&&o[a]==="."){p+=l?`${o[a]}\r
5
5
  `:`[${o[a]}\r
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-f2pv705d.js";function K(Q,Z,H){return typeof Q.default==="function"?Q.default(Z,H):Q.default}function J(Q,Z){if(Q)return Q.push(Z),Q;return[Z]}var q=/[.*+?^${}()|[\]\\]/g;function X(Q){return Q.replace(q,"\\$&")}function T(Q,Z){switch(Z?.errorMode){case"ignore":break;case"warn":console.warn(Q);break;default:throw Error(Q)}}function V(Q){return typeof Q==="boolean"||typeof Q==="number"&&Number.isFinite(Q)||typeof Q==="string"}function w(Q){return Q.every(V)}function x(Q,Z,H){if(H?.ignoreActions?.includes(Z.type))return Q;let Y;switch(Z.type){case"base64":Q.contentEncoding="base64";break;case"bic":case"cuid2":case"decimal":case"digits":case"domain":case"emoji":case"hash":case"hexadecimal":case"hex_color":case"isrc":case"iso_time_second":case"iso_week":case"mac":case"mac48":case"mac64":case"nanoid":case"octal":case"slug":case"ulid":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=Z.requirement.source;break;case"description":Q.description=Z.description;break;case"email":case"rfc_email":Q.format="email";break;case"ends_with":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=`${X(Z.requirement)}$`;break;case"empty":if(Q.type==="array")Q.maxItems=0;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.maxLength=0}break;case"entries":Q.minProperties=Z.requirement,Q.maxProperties=Z.requirement;break;case"examples":if(Array.isArray(Q.examples))Q.examples=[...Q.examples,...Z.examples];else Q.examples=Z.examples;break;case"gt_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "gt_value" action is not supported on type "${Q.type}".`);if(H?.target==="openapi-3.0"){Y=J(Y,'The "gt_value" action is not supported for OpenAPI 3.0.');break}Q.exclusiveMinimum=Z.requirement;break;case"includes":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=X(Z.requirement);break;case"integer":Q.type="integer";break;case"ipv4":Q.format="ipv4";break;case"ipv6":Q.format="ipv6";break;case"iso_date":Q.format="date";break;case"iso_date_time":case"iso_timestamp":Q.format="date-time";break;case"iso_time":Q.format="time";break;case"jws_compact":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=Z.requirement.source;break;case"length":if(Q.type==="array")Q.minItems=Z.requirement,Q.maxItems=Z.requirement;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.minLength=Z.requirement,Q.maxLength=Z.requirement}break;case"lt_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "lt_value" action is not supported on type "${Q.type}".`);if(H?.target==="openapi-3.0"){Y=J(Y,'The "lt_value" action is not supported for OpenAPI 3.0.');break}Q.exclusiveMaximum=Z.requirement;break;case"max_entries":Q.maxProperties=Z.requirement;break;case"max_length":if(Q.type==="array")Q.maxItems=Z.requirement;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.maxLength=Z.requirement}break;case"max_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "max_value" action is not supported on type "${Q.type}".`);Q.maximum=Z.requirement;break;case"metadata":if(typeof Z.metadata.title==="string")Q.title=Z.metadata.title;if(typeof Z.metadata.description==="string")Q.description=Z.metadata.description;if(Array.isArray(Z.metadata.examples))if(Array.isArray(Q.examples))Q.examples=[...Q.examples,...Z.metadata.examples];else Q.examples=Z.metadata.examples;break;case"min_entries":Q.minProperties=Z.requirement;break;case"min_length":if(Q.type==="array")Q.minItems=Z.requirement;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.minLength=Z.requirement}break;case"min_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "min_value" action is not supported on type "${Q.type}".`);Q.minimum=Z.requirement;break;case"multiple_of":Q.multipleOf=Z.requirement;break;case"non_empty":if(Q.type==="array")Q.minItems=1;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.minLength=1}break;case"not_value":if(!V(Z.requirement)){Y=J(Y,'The requirement of the "not_value" action is not JSON compatible.');break}if(H?.target==="openapi-3.0")Q.not={enum:[Z.requirement]};else Q.not={const:Z.requirement};break;case"not_values":if(!w(Z.requirement)){Y=J(Y,'A requirement of the "not_values" action is not JSON compatible.');break}Q.not={enum:Z.requirement};break;case"regex":if(Z.requirement.flags)Y=J(Y,"RegExp flags are not supported by JSON Schema.");if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=Z.requirement.source;break;case"safe_integer":if(Q.type="integer",typeof Q.minimum!=="number"||Q.minimum<Number.MIN_SAFE_INTEGER)Q.minimum=Number.MIN_SAFE_INTEGER;if(typeof Q.maximum!=="number"||Q.maximum>Number.MAX_SAFE_INTEGER)Q.maximum=Number.MAX_SAFE_INTEGER;break;case"starts_with":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=`^${X(Z.requirement)}`;break;case"title":Q.title=Z.title;break;case"url":Q.format="uri";break;case"uuid":Q.format="uuid";break;case"value":if(!V(Z.requirement)){Y=J(Y,'The requirement of the "value" action is not JSON compatible.');break}if(H?.target==="openapi-3.0")Q.enum=[Z.requirement];else Q.const=Z.requirement;break;case"values":if(!w(Z.requirement)){Y=J(Y,'A requirement of the "values" action is not JSON compatible.');break}Q.enum=Z.requirement;break;default:Y=J(Y,`The "${Z.type}" action cannot be converted to JSON Schema.`)}if(H?.overrideAction){let F=H.overrideAction({valibotAction:Z,jsonSchema:Q,errors:Y});if(F)return{...F}}if(Y)for(let F of Y)T(F,H);return Q}function R(Q){return Q.flatMap((Z)=>("pipe"in Z)?R(Z.pipe):Z)}var A=0;function B(Q,Z,H,Y,F=!1){if(!F){let U=Y.referenceMap.get(Z);if(U){if(Q.$ref=`#/$defs/${U}`,H?.overrideRef){let z=H.overrideRef({...Y,referenceId:U,valibotSchema:Z,jsonSchema:Q});if(z)Q.$ref=z}return Q}}if("pipe"in Z){let U=R(Z.pipe),z=0,M=U.length-1;if(H?.typeMode==="input"){let L=U.slice(1).findIndex((W)=>W.kind==="schema"||W.kind==="transformation"&&(W.type==="find_item"||W.type==="parse_json"||W.type==="raw_transform"||W.type==="reduce_items"||W.type==="stringify_json"||W.type==="to_bigint"||W.type==="to_boolean"||W.type==="to_date"||W.type==="to_number"||W.type==="to_string"||W.type==="transform"));if(L!==-1)M=L}else if(H?.typeMode==="output"){let L=U.findLastIndex((W)=>W.kind==="schema");if(L!==-1)z=L}for(let L=z;L<=M;L++){let W=U[L];if(W.kind==="schema"){if(L>z)T('Set the "typeMode" config to "input" or "output" to convert pipelines with multiple schemas.',H);Q=B(Q,W,H,Y,!0)}else Q=x(Q,W,H)}return Q}let N;switch(Z.type){case"boolean":Q.type="boolean";break;case"null":if(H?.target==="openapi-3.0")Q.enum=[null];else Q.type="null";break;case"number":Q.type="number";break;case"string":Q.type="string";break;case"array":Q.type="array",Q.items=B({},Z.item,H,Y);break;case"tuple":case"tuple_with_rest":case"loose_tuple":case"strict_tuple":if(Q.type="array",H?.target==="openapi-3.0"){Q.items={anyOf:[]},Q.minItems=Z.items.length;for(let U of Z.items)Q.items.anyOf.push(B({},U,H,Y));if(Z.type==="tuple_with_rest")Q.items.anyOf.push(B({},Z.rest,H,Y));else if(Z.type==="strict_tuple"||Z.type==="tuple")Q.maxItems=Z.items.length}else if(H?.target==="draft-2020-12"){Q.prefixItems=[],Q.minItems=Z.items.length;for(let U of Z.items)Q.prefixItems.push(B({},U,H,Y));if(Z.type==="tuple_with_rest")Q.items=B({},Z.rest,H,Y);else if(Z.type==="strict_tuple")Q.items=!1}else{Q.items=[],Q.minItems=Z.items.length;for(let U of Z.items)Q.items.push(B({},U,H,Y));if(Z.type==="tuple_with_rest")Q.additionalItems=B({},Z.rest,H,Y);else if(Z.type==="strict_tuple")Q.additionalItems=!1}break;case"object":case"object_with_rest":case"loose_object":case"strict_object":Q.type="object",Q.properties={},Q.required=[];for(let U in Z.entries){let z=Z.entries[U];if(Q.properties[U]=B({},z,H,Y),z.type!=="exact_optional"&&z.type!=="nullish"&&z.type!=="optional")Q.required.push(U)}if(Z.type==="object_with_rest")Q.additionalProperties=B({},Z.rest,H,Y);else if(Z.type==="strict_object")Q.additionalProperties=!1;break;case"record":if(H?.target==="openapi-3.0"&&"pipe"in Z.key)N=J(N,'The "record" schema with a schema for the key that contains a "pipe" cannot be converted to JSON Schema.');if(Z.key.type!=="string")N=J(N,`The "record" schema with the "${Z.key.type}" schema for the key cannot be converted to JSON Schema.`);if(Q.type="object",H?.target!=="openapi-3.0")Q.propertyNames=B({},Z.key,H,Y);Q.additionalProperties=B({},Z.value,H,Y);break;case"any":case"unknown":break;case"never":Q.not={};break;case"nullable":case"nullish":if(H?.target==="openapi-3.0"){let U=B({},Z.wrapped,H,Y);Object.assign(Q,U),Q.nullable=!0}else Q.anyOf=[B({},Z.wrapped,H,Y),{type:"null"}];if(Z.default!==void 0)Q.default=K(Z);break;case"exact_optional":case"optional":case"undefinedable":if(Q=B(Q,Z.wrapped,H,Y),Z.default!==void 0)Q.default=K(Z);break;case"literal":if(typeof Z.literal!=="boolean"&&typeof Z.literal!=="number"&&typeof Z.literal!=="string")N=J(N,'The value of the "literal" schema is not JSON compatible.');if(H?.target==="openapi-3.0")Q.enum=[Z.literal];else Q.const=Z.literal;break;case"enum":if(Q.enum=Z.options,Z.options.every((U)=>typeof U==="string"))Q.type="string";else if(Z.options.every((U)=>typeof U==="number"))Q.type="number";else if(H?.target!=="openapi-3.0")Q.type=["string","number"];break;case"picklist":{let U=Z.options.some((z)=>typeof z!=="number"&&typeof z!=="string");if(U)N=J(N,'An option of the "picklist" schema is not JSON compatible.');if(Q.enum=Z.options,Z.options.every((z)=>typeof z==="string"))Q.type="string";else if(Z.options.every((z)=>typeof z==="number"))Q.type="number";else if(!U&&H?.target!=="openapi-3.0")Q.type=["string","number"];break}case"union":Q.anyOf=Z.options.map((U)=>B({},U,H,Y));break;case"variant":Q.oneOf=Z.options.map((U)=>B({},U,H,Y));break;case"intersect":Q.allOf=Z.options.map((U)=>B({},U,H,Y));break;case"lazy":{let U=Y.getterMap.get(Z.getter);if(!U)U=Z.getter(void 0),Y.getterMap.set(Z.getter,U);let z=Y.referenceMap.get(U);if(!z)z=`${A++}`,Y.referenceMap.set(U,z),Y.definitions[z]=B({},U,H,Y,!0);if(Q.$ref=`#/$defs/${z}`,H?.overrideRef){let M=H.overrideRef({...Y,referenceId:z,valibotSchema:U,jsonSchema:Q});if(M)Q.$ref=M}break}default:N=J(N,`The "${Z.type}" schema cannot be converted to JSON Schema.`)}if(H?.overrideSchema){let U=H.overrideSchema({...Y,referenceId:Y.referenceMap.get(Z),valibotSchema:Z,jsonSchema:Q,errors:N});if(U)return{...U}}if(N)for(let U of N)T(U,H);return Q}var O;function b(Q){O={...O??{},...Q}}function E(){return O}function G(Q,Z){let H={definitions:{},referenceMap:new Map,getterMap:new Map},Y=Z?.definitions??E();if(Y){for(let U in Y)H.referenceMap.set(Y[U],U);for(let U in Y)H.definitions[U]=B({},Y[U],Z,H,!0)}let F=B({},Q,Z,H),N=Z?.target??"draft-07";if(N==="draft-2020-12")F.$schema="https://json-schema.org/draft/2020-12/schema";else if(N==="draft-07")F.$schema="http://json-schema.org/draft-07/schema#";if(H.referenceMap.size)F.$defs=H.definitions;return F}function I(Q,Z){let H={definitions:{},referenceMap:new Map,getterMap:new Map};for(let Y in Q)H.referenceMap.set(Q[Y],Y);for(let Y in Q)H.definitions[Y]=B({},Q[Y],Z,H,!0);return H.definitions}var C=["draft-07","draft-2020-12","openapi-3.0"];function j(Q){return{"~standard":{...Q["~standard"],jsonSchema:{input(Z){if(C.includes(Z.target))return G(Q,{typeMode:"input",target:Z.target,...Z.libraryOptions});throw Error(`Unsupported target: ${Z.target}`)},output(Z){if(C.includes(Z.target))return G(Q,{typeMode:"output",target:Z.target,...Z.libraryOptions});throw Error(`Unsupported target: ${Z.target}`)}}}}}export{j as toStandardJsonSchema,I as toJsonSchemaDefs,G as toJsonSchema,E as getGlobalDefs,b as addGlobalDefs};
2
+ import"./chunk-e0vrxetq.js";function K(Q,Z,H){return typeof Q.default==="function"?Q.default(Z,H):Q.default}function J(Q,Z){if(Q)return Q.push(Z),Q;return[Z]}var q=/[.*+?^${}()|[\]\\]/g;function X(Q){return Q.replace(q,"\\$&")}function T(Q,Z){switch(Z?.errorMode){case"ignore":break;case"warn":console.warn(Q);break;default:throw Error(Q)}}function V(Q){return typeof Q==="boolean"||typeof Q==="number"&&Number.isFinite(Q)||typeof Q==="string"}function w(Q){return Q.every(V)}function x(Q,Z,H){if(H?.ignoreActions?.includes(Z.type))return Q;let Y;switch(Z.type){case"base64":Q.contentEncoding="base64";break;case"bic":case"cuid2":case"decimal":case"digits":case"domain":case"emoji":case"hash":case"hexadecimal":case"hex_color":case"isrc":case"iso_time_second":case"iso_week":case"mac":case"mac48":case"mac64":case"nanoid":case"octal":case"slug":case"ulid":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=Z.requirement.source;break;case"description":Q.description=Z.description;break;case"email":case"rfc_email":Q.format="email";break;case"ends_with":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=`${X(Z.requirement)}$`;break;case"empty":if(Q.type==="array")Q.maxItems=0;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.maxLength=0}break;case"entries":Q.minProperties=Z.requirement,Q.maxProperties=Z.requirement;break;case"examples":if(Array.isArray(Q.examples))Q.examples=[...Q.examples,...Z.examples];else Q.examples=Z.examples;break;case"gt_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "gt_value" action is not supported on type "${Q.type}".`);if(H?.target==="openapi-3.0"){Y=J(Y,'The "gt_value" action is not supported for OpenAPI 3.0.');break}Q.exclusiveMinimum=Z.requirement;break;case"includes":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=X(Z.requirement);break;case"integer":Q.type="integer";break;case"ipv4":Q.format="ipv4";break;case"ipv6":Q.format="ipv6";break;case"iso_date":Q.format="date";break;case"iso_date_time":case"iso_timestamp":Q.format="date-time";break;case"iso_time":Q.format="time";break;case"jws_compact":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=Z.requirement.source;break;case"length":if(Q.type==="array")Q.minItems=Z.requirement,Q.maxItems=Z.requirement;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.minLength=Z.requirement,Q.maxLength=Z.requirement}break;case"lt_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "lt_value" action is not supported on type "${Q.type}".`);if(H?.target==="openapi-3.0"){Y=J(Y,'The "lt_value" action is not supported for OpenAPI 3.0.');break}Q.exclusiveMaximum=Z.requirement;break;case"max_entries":Q.maxProperties=Z.requirement;break;case"max_length":if(Q.type==="array")Q.maxItems=Z.requirement;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.maxLength=Z.requirement}break;case"max_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "max_value" action is not supported on type "${Q.type}".`);Q.maximum=Z.requirement;break;case"metadata":if(typeof Z.metadata.title==="string")Q.title=Z.metadata.title;if(typeof Z.metadata.description==="string")Q.description=Z.metadata.description;if(Array.isArray(Z.metadata.examples))if(Array.isArray(Q.examples))Q.examples=[...Q.examples,...Z.metadata.examples];else Q.examples=Z.metadata.examples;break;case"min_entries":Q.minProperties=Z.requirement;break;case"min_length":if(Q.type==="array")Q.minItems=Z.requirement;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.minLength=Z.requirement}break;case"min_value":if(Q.type!=="number"&&Q.type!=="integer")Y=J(Y,`The "min_value" action is not supported on type "${Q.type}".`);Q.minimum=Z.requirement;break;case"multiple_of":Q.multipleOf=Z.requirement;break;case"non_empty":if(Q.type==="array")Q.minItems=1;else{if(Q.type!=="string")Y=J(Y,`The "${Z.type}" action is not supported on type "${Q.type}".`);Q.minLength=1}break;case"not_value":if(!V(Z.requirement)){Y=J(Y,'The requirement of the "not_value" action is not JSON compatible.');break}if(H?.target==="openapi-3.0")Q.not={enum:[Z.requirement]};else Q.not={const:Z.requirement};break;case"not_values":if(!w(Z.requirement)){Y=J(Y,'A requirement of the "not_values" action is not JSON compatible.');break}Q.not={enum:Z.requirement};break;case"regex":if(Z.requirement.flags)Y=J(Y,"RegExp flags are not supported by JSON Schema.");if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=Z.requirement.source;break;case"safe_integer":if(Q.type="integer",typeof Q.minimum!=="number"||Q.minimum<Number.MIN_SAFE_INTEGER)Q.minimum=Number.MIN_SAFE_INTEGER;if(typeof Q.maximum!=="number"||Q.maximum>Number.MAX_SAFE_INTEGER)Q.maximum=Number.MAX_SAFE_INTEGER;break;case"starts_with":if(Q.pattern)Y=J(Y,`The "${Z.type}" action is not supported in combination with another regex action.`);else Q.pattern=`^${X(Z.requirement)}`;break;case"title":Q.title=Z.title;break;case"url":Q.format="uri";break;case"uuid":Q.format="uuid";break;case"value":if(!V(Z.requirement)){Y=J(Y,'The requirement of the "value" action is not JSON compatible.');break}if(H?.target==="openapi-3.0")Q.enum=[Z.requirement];else Q.const=Z.requirement;break;case"values":if(!w(Z.requirement)){Y=J(Y,'A requirement of the "values" action is not JSON compatible.');break}Q.enum=Z.requirement;break;default:Y=J(Y,`The "${Z.type}" action cannot be converted to JSON Schema.`)}if(H?.overrideAction){let F=H.overrideAction({valibotAction:Z,jsonSchema:Q,errors:Y});if(F)return{...F}}if(Y)for(let F of Y)T(F,H);return Q}function R(Q){return Q.flatMap((Z)=>("pipe"in Z)?R(Z.pipe):Z)}var A=0;function B(Q,Z,H,Y,F=!1){if(!F){let U=Y.referenceMap.get(Z);if(U){if(Q.$ref=`#/$defs/${U}`,H?.overrideRef){let z=H.overrideRef({...Y,referenceId:U,valibotSchema:Z,jsonSchema:Q});if(z)Q.$ref=z}return Q}}if("pipe"in Z){let U=R(Z.pipe),z=0,M=U.length-1;if(H?.typeMode==="input"){let L=U.slice(1).findIndex((W)=>W.kind==="schema"||W.kind==="transformation"&&(W.type==="find_item"||W.type==="parse_json"||W.type==="raw_transform"||W.type==="reduce_items"||W.type==="stringify_json"||W.type==="to_bigint"||W.type==="to_boolean"||W.type==="to_date"||W.type==="to_number"||W.type==="to_string"||W.type==="transform"));if(L!==-1)M=L}else if(H?.typeMode==="output"){let L=U.findLastIndex((W)=>W.kind==="schema");if(L!==-1)z=L}for(let L=z;L<=M;L++){let W=U[L];if(W.kind==="schema"){if(L>z)T('Set the "typeMode" config to "input" or "output" to convert pipelines with multiple schemas.',H);Q=B(Q,W,H,Y,!0)}else Q=x(Q,W,H)}return Q}let N;switch(Z.type){case"boolean":Q.type="boolean";break;case"null":if(H?.target==="openapi-3.0")Q.enum=[null];else Q.type="null";break;case"number":Q.type="number";break;case"string":Q.type="string";break;case"array":Q.type="array",Q.items=B({},Z.item,H,Y);break;case"tuple":case"tuple_with_rest":case"loose_tuple":case"strict_tuple":if(Q.type="array",H?.target==="openapi-3.0"){Q.items={anyOf:[]},Q.minItems=Z.items.length;for(let U of Z.items)Q.items.anyOf.push(B({},U,H,Y));if(Z.type==="tuple_with_rest")Q.items.anyOf.push(B({},Z.rest,H,Y));else if(Z.type==="strict_tuple"||Z.type==="tuple")Q.maxItems=Z.items.length}else if(H?.target==="draft-2020-12"){Q.prefixItems=[],Q.minItems=Z.items.length;for(let U of Z.items)Q.prefixItems.push(B({},U,H,Y));if(Z.type==="tuple_with_rest")Q.items=B({},Z.rest,H,Y);else if(Z.type==="strict_tuple")Q.items=!1}else{Q.items=[],Q.minItems=Z.items.length;for(let U of Z.items)Q.items.push(B({},U,H,Y));if(Z.type==="tuple_with_rest")Q.additionalItems=B({},Z.rest,H,Y);else if(Z.type==="strict_tuple")Q.additionalItems=!1}break;case"object":case"object_with_rest":case"loose_object":case"strict_object":Q.type="object",Q.properties={},Q.required=[];for(let U in Z.entries){let z=Z.entries[U];if(Q.properties[U]=B({},z,H,Y),z.type!=="exact_optional"&&z.type!=="nullish"&&z.type!=="optional")Q.required.push(U)}if(Z.type==="object_with_rest")Q.additionalProperties=B({},Z.rest,H,Y);else if(Z.type==="strict_object")Q.additionalProperties=!1;break;case"record":if(H?.target==="openapi-3.0"&&"pipe"in Z.key)N=J(N,'The "record" schema with a schema for the key that contains a "pipe" cannot be converted to JSON Schema.');if(Z.key.type!=="string")N=J(N,`The "record" schema with the "${Z.key.type}" schema for the key cannot be converted to JSON Schema.`);if(Q.type="object",H?.target!=="openapi-3.0")Q.propertyNames=B({},Z.key,H,Y);Q.additionalProperties=B({},Z.value,H,Y);break;case"any":case"unknown":break;case"never":Q.not={};break;case"nullable":case"nullish":if(H?.target==="openapi-3.0"){let U=B({},Z.wrapped,H,Y);Object.assign(Q,U),Q.nullable=!0}else Q.anyOf=[B({},Z.wrapped,H,Y),{type:"null"}];if(Z.default!==void 0)Q.default=K(Z);break;case"exact_optional":case"optional":case"undefinedable":if(Q=B(Q,Z.wrapped,H,Y),Z.default!==void 0)Q.default=K(Z);break;case"literal":if(typeof Z.literal!=="boolean"&&typeof Z.literal!=="number"&&typeof Z.literal!=="string")N=J(N,'The value of the "literal" schema is not JSON compatible.');if(H?.target==="openapi-3.0")Q.enum=[Z.literal];else Q.const=Z.literal;break;case"enum":if(Q.enum=Z.options,Z.options.every((U)=>typeof U==="string"))Q.type="string";else if(Z.options.every((U)=>typeof U==="number"))Q.type="number";else if(H?.target!=="openapi-3.0")Q.type=["string","number"];break;case"picklist":{let U=Z.options.some((z)=>typeof z!=="number"&&typeof z!=="string");if(U)N=J(N,'An option of the "picklist" schema is not JSON compatible.');if(Q.enum=Z.options,Z.options.every((z)=>typeof z==="string"))Q.type="string";else if(Z.options.every((z)=>typeof z==="number"))Q.type="number";else if(!U&&H?.target!=="openapi-3.0")Q.type=["string","number"];break}case"union":Q.anyOf=Z.options.map((U)=>B({},U,H,Y));break;case"variant":Q.oneOf=Z.options.map((U)=>B({},U,H,Y));break;case"intersect":Q.allOf=Z.options.map((U)=>B({},U,H,Y));break;case"lazy":{let U=Y.getterMap.get(Z.getter);if(!U)U=Z.getter(void 0),Y.getterMap.set(Z.getter,U);let z=Y.referenceMap.get(U);if(!z)z=`${A++}`,Y.referenceMap.set(U,z),Y.definitions[z]=B({},U,H,Y,!0);if(Q.$ref=`#/$defs/${z}`,H?.overrideRef){let M=H.overrideRef({...Y,referenceId:z,valibotSchema:U,jsonSchema:Q});if(M)Q.$ref=M}break}default:N=J(N,`The "${Z.type}" schema cannot be converted to JSON Schema.`)}if(H?.overrideSchema){let U=H.overrideSchema({...Y,referenceId:Y.referenceMap.get(Z),valibotSchema:Z,jsonSchema:Q,errors:N});if(U)return{...U}}if(N)for(let U of N)T(U,H);return Q}var O;function b(Q){O={...O??{},...Q}}function E(){return O}function G(Q,Z){let H={definitions:{},referenceMap:new Map,getterMap:new Map},Y=Z?.definitions??E();if(Y){for(let U in Y)H.referenceMap.set(Y[U],U);for(let U in Y)H.definitions[U]=B({},Y[U],Z,H,!0)}let F=B({},Q,Z,H),N=Z?.target??"draft-07";if(N==="draft-2020-12")F.$schema="https://json-schema.org/draft/2020-12/schema";else if(N==="draft-07")F.$schema="http://json-schema.org/draft-07/schema#";if(H.referenceMap.size)F.$defs=H.definitions;return F}function I(Q,Z){let H={definitions:{},referenceMap:new Map,getterMap:new Map};for(let Y in Q)H.referenceMap.set(Q[Y],Y);for(let Y in Q)H.definitions[Y]=B({},Q[Y],Z,H,!0);return H.definitions}var C=["draft-07","draft-2020-12","openapi-3.0"];function j(Q){return{"~standard":{...Q["~standard"],jsonSchema:{input(Z){if(C.includes(Z.target))return G(Q,{typeMode:"input",target:Z.target,...Z.libraryOptions});throw Error(`Unsupported target: ${Z.target}`)},output(Z){if(C.includes(Z.target))return G(Q,{typeMode:"output",target:Z.target,...Z.libraryOptions});throw Error(`Unsupported target: ${Z.target}`)}}}}}export{j as toStandardJsonSchema,I as toJsonSchemaDefs,G as toJsonSchema,E as getGlobalDefs,b as addGlobalDefs};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Lu as e}from"./chunk-k1x8469r.js";class r extends Error{static hasName(t,n){return typeof t==="object"&&t!==null&&"name"in t&&t.name===n}static create(t,n){let s=e.object({name:e.literal(t),data:n}).meta({ref:t}),o=class extends r{data;static Schema=s;name=t;constructor(a,c){super(t,c);this.data=a;this.name=t}static isInstance(a){return typeof a==="object"&&"name"in a&&a.name===t}schema(){return s}toObject(){return{name:t,data:this.data}}};return Object.defineProperty(o,"name",{value:t}),o}static Unknown=r.create("UnknownError",e.object({message:e.string(),diagnostic:e.object({errorID:e.string(),errorName:e.string(),logFile:e.string()}).optional()}))}
3
- export{r as At};
2
+ import{mt as e}from"./chunk-6p6m5956.js";class r extends Error{static hasName(t,n){return typeof t==="object"&&t!==null&&"name"in t&&t.name===n}static create(t,n){let s=e.object({name:e.literal(t),data:n}).meta({ref:t}),o=class extends r{data;static Schema=s;name=t;constructor(a,c){super(t,c);this.data=a;this.name=t}static isInstance(a){return typeof a==="object"&&"name"in a&&a.name===t}schema(){return s}toObject(){return{name:t,data:this.data}}};return Object.defineProperty(o,"name",{value:t}),o}static Unknown=r.create("UnknownError",e.object({message:e.string(),diagnostic:e.object({errorID:e.string(),errorName:e.string(),logFile:e.string()}).optional()}))}
3
+ export{r as bs};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{wt as i}from"./chunk-vjn54xj5.js";import{Ku as o}from"./chunk-aa2n02qk.js";import{SP as c}from"./chunk-f2pv705d.js";var e=c(i(),1);import p from"path";function l(n,t){let r=t?.PATH??t?.Path??process.env.PATH??process.env.Path??"",h=r?r+p.delimiter+o.Path.bin:o.Path.bin,s=e.default.sync(n,{nothrow:!0,path:h,pathExt:t?.PATHEXT??t?.PathExt??process.env.PATHEXT??process.env.PathExt});return typeof s==="string"?s:null}
3
- export{l as op};
2
+ import{Zr as i}from"./chunk-vbfej8ds.js";import{lt as o}from"./chunk-1bxfzd6r.js";import{tO as c}from"./chunk-e0vrxetq.js";var e=c(i(),1);import p from"path";function l(n,t){let r=t?.PATH??t?.Path??process.env.PATH??process.env.Path??"",h=r?r+p.delimiter+o.Path.bin:o.Path.bin,s=e.default.sync(n,{nothrow:!0,path:h,pathExt:t?.PATHEXT??t?.PathExt??process.env.PATHEXT??process.env.PathExt});return typeof s==="string"?s:null}
3
+ export{l as Rn};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Rd as n,Ud as p,Vd as e,Wd as i,Zd as m,_d as c}from"./chunk-hhk2sp5n.js";import{EI as o,LC as s}from"./chunk-tezrgfc6.js";var u=(t)=>o.sync(()=>e(t)),g=(t)=>o.sync(()=>i(t)),y={info:(t)=>o.sync(()=>p.info(t))},x=(t)=>o.tryPromise(()=>c(t)).pipe(o.map((r)=>{if(n(r))return s.none();return s.some(r)})),V=()=>{let t=m();return{start:(r)=>o.sync(()=>t.start(r)),stop:(r,a)=>o.sync(()=>t.stop(r,a))}};
2
+ import{Rd as n,Ud as p,Vd as e,Wd as i,Zd as m,_d as c}from"./chunk-2kh0tg92.js";import{fH as o,mB as s}from"./chunk-g7v6sp3c.js";var u=(t)=>o.sync(()=>e(t)),g=(t)=>o.sync(()=>i(t)),y={info:(t)=>o.sync(()=>p.info(t))},x=(t)=>o.tryPromise(()=>c(t)).pipe(o.map((r)=>{if(n(r))return s.none();return s.some(r)})),V=()=>{let t=m();return{start:(r)=>o.sync(()=>t.start(r)),stop:(r,a)=>o.sync(()=>t.stop(r,a))}};
3
3
  export{u as i,g as j,y as k,x as l,V as m};