@qitqode/qitqode-android-arm64 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/bun +0 -0
  2. package/bundle/{chunk-cx7p4ezk.js → chunk-03mbn7nj.js} +2 -2
  3. package/bundle/{chunk-rrd0jf5m.js → chunk-07s30fpb.js} +1 -1
  4. package/bundle/{chunk-yacccwf6.js → chunk-087tnr8a.js} +1 -1
  5. package/bundle/chunk-0cdtq1r3.js +2 -0
  6. package/bundle/{chunk-kx2dp8ch.js → chunk-0f3ft9dh.js} +1 -1
  7. package/bundle/{chunk-rgxy4ngt.js → chunk-0gab4v98.js} +1 -1
  8. package/bundle/chunk-0ych0f5w.js +2 -0
  9. package/bundle/{chunk-w8d9srv7.js → chunk-0yjdatm6.js} +2 -2
  10. package/bundle/chunk-0ykeedfm.js +2 -0
  11. package/bundle/{chunk-rph9zj24.js → chunk-0zxwjsvz.js} +1 -1
  12. package/bundle/{chunk-pqnbdygz.js → chunk-1p6jjrea.js} +2 -2
  13. package/bundle/{chunk-9cw4cnz0.js → chunk-1q1cddy4.js} +1 -1
  14. package/bundle/{chunk-w9pdvcf9.js → chunk-1sfcxdbw.js} +2 -2
  15. package/bundle/chunk-22hr3ndh.js +2 -0
  16. package/bundle/chunk-23tyxyyj.js +2 -0
  17. package/bundle/chunk-2517cev8.js +2 -0
  18. package/bundle/chunk-28g1ndpx.js +2 -0
  19. package/bundle/{chunk-txqc7543.js → chunk-29zm623f.js} +2 -2
  20. package/bundle/{chunk-wm77svwm.js → chunk-2a9rzgk6.js} +1 -1
  21. package/bundle/chunk-2avxtbv3.js +2 -0
  22. package/bundle/{chunk-eaqfnwdj.js → chunk-2bgqy6z7.js} +1 -1
  23. package/bundle/{chunk-fyz7fngd.js → chunk-2faah8w1.js} +1 -1
  24. package/bundle/{chunk-9zre5e54.js → chunk-2hv2c8d5.js} +1 -1
  25. package/bundle/{chunk-swcgsrbj.js → chunk-2jpmxt4v.js} +1 -1
  26. package/bundle/chunk-2qk0k2eb.js +2 -0
  27. package/bundle/{chunk-nsjp44fp.js → chunk-2qwmrp16.js} +1 -1
  28. package/bundle/{chunk-dykqn0nj.js → chunk-2xqqkf86.js} +2 -2
  29. package/bundle/{chunk-d9x9kqvy.js → chunk-3888asr7.js} +1 -1
  30. package/bundle/chunk-3c3xzz0g.js +3 -0
  31. package/bundle/{chunk-zfcfyagt.js → chunk-3h49k2ck.js} +1 -1
  32. package/bundle/{chunk-r0g5yyhf.js → chunk-3jms025t.js} +1 -1
  33. package/bundle/{chunk-52b1v7mn.js → chunk-3qfpw8f6.js} +1 -1
  34. package/bundle/{chunk-v3x5nrc4.js → chunk-3tmq81kq.js} +2 -2
  35. package/bundle/{chunk-neqy8j4n.js → chunk-42r7z6sq.js} +1 -1
  36. package/bundle/chunk-42wdfks8.js +2 -0
  37. package/bundle/{chunk-kp8nkm3m.js → chunk-44y6dffe.js} +1 -1
  38. package/bundle/{chunk-j5kyf7vt.js → chunk-45fyv9f1.js} +2 -2
  39. package/bundle/chunk-4f19vqxf.js +2 -0
  40. package/bundle/{chunk-d93z6hrn.js → chunk-4fk46ngj.js} +1 -1
  41. package/bundle/{chunk-njkserae.js → chunk-4hd3v58j.js} +1 -1
  42. package/bundle/chunk-4m3k1atq.js +2 -0
  43. package/bundle/{chunk-1wpjmwnh.js → chunk-4mvg7jt1.js} +1 -1
  44. package/bundle/chunk-4n2ytddp.js +2 -0
  45. package/bundle/{chunk-zesbm9k1.js → chunk-4sxg9cgr.js} +1 -1
  46. package/bundle/{chunk-8fgamz4y.js → chunk-4v61ysex.js} +1 -1
  47. package/bundle/chunk-4yg42p6y.js +2 -0
  48. package/bundle/chunk-4zx3ze68.js +2 -0
  49. package/bundle/{chunk-qq2rcxv2.js → chunk-543pt030.js} +2 -2
  50. package/bundle/{chunk-rexdr63q.js → chunk-5az84brc.js} +2 -2
  51. package/bundle/{chunk-pnpre7ys.js → chunk-5js6a6gf.js} +1 -1
  52. package/bundle/{chunk-y0ydzdfc.js → chunk-5t0w9ecw.js} +1 -1
  53. package/bundle/{chunk-nq495be3.js → chunk-5wwd40t3.js} +1 -1
  54. package/bundle/chunk-637sjdzq.js +2 -0
  55. package/bundle/{chunk-snt1kefv.js → chunk-64c8q9zg.js} +3 -3
  56. package/bundle/{chunk-g794ey6w.js → chunk-6avjq7my.js} +1 -1
  57. package/bundle/{chunk-n0trgp1c.js → chunk-6dfjtzqb.js} +2 -2
  58. package/bundle/{chunk-dz3s882k.js → chunk-6f8qqbac.js} +189 -189
  59. package/bundle/chunk-6h8f89tt.js +2 -0
  60. package/bundle/{chunk-b0jh0rby.js → chunk-6j339s7a.js} +2 -2
  61. package/bundle/{chunk-8q6z6emx.js → chunk-6kf4vw2g.js} +1 -1
  62. package/bundle/{chunk-hgsykghj.js → chunk-6pcmv8vs.js} +2 -2
  63. package/bundle/chunk-6sjj203r.js +2 -0
  64. package/bundle/{chunk-kt0ej3nq.js → chunk-6ypafpg8.js} +1 -1
  65. package/bundle/{chunk-p8kpqyxb.js → chunk-732yr6qq.js} +2 -2
  66. package/bundle/{chunk-3sz6gw10.js → chunk-73fz0cf4.js} +2 -2
  67. package/bundle/chunk-79aka9xe.js +2 -0
  68. package/bundle/{chunk-s2xdf6qh.js → chunk-7ab3yw9j.js} +2 -2
  69. package/bundle/{chunk-8tp4whyw.js → chunk-7my2231h.js} +1 -1
  70. package/bundle/{chunk-vvzbfv2f.js → chunk-7njz51r4.js} +1 -1
  71. package/bundle/chunk-7nqdhe7x.js +2 -0
  72. package/bundle/{chunk-zaan8jk6.js → chunk-7ntw4rrn.js} +1 -1
  73. package/bundle/chunk-7q003wdd.js +4 -0
  74. package/bundle/chunk-7x88b2n2.js +2 -0
  75. package/bundle/{chunk-6r8pg6ma.js → chunk-7z884mz2.js} +1 -1
  76. package/bundle/{chunk-17pxm5d3.js → chunk-7zc04q43.js} +2 -2
  77. package/bundle/{chunk-v7q3d3n6.js → chunk-85xh72hk.js} +2 -2
  78. package/bundle/{chunk-jgz1a29w.js → chunk-86jsqc7d.js} +3 -3
  79. package/bundle/{chunk-zbqzm65q.js → chunk-86yk21g4.js} +1 -1
  80. package/bundle/{chunk-aj3y2e86.js → chunk-8apeexas.js} +1 -1
  81. package/bundle/{chunk-xjhezxft.js → chunk-8d6e4jg7.js} +3 -3
  82. package/bundle/{chunk-w3bmf3zz.js → chunk-8e6gx3gg.js} +1 -1
  83. package/bundle/chunk-8mthftwc.js +2 -0
  84. package/bundle/{chunk-73ckx171.js → chunk-8q5ns61h.js} +1 -1
  85. package/bundle/{chunk-549ptbaj.js → chunk-8rh0femq.js} +1 -1
  86. package/bundle/{chunk-qyjt0qnq.js → chunk-8v6x712g.js} +2 -2
  87. package/bundle/chunk-8wdara3b.js +2 -0
  88. package/bundle/chunk-8xhzpnph.js +2 -0
  89. package/bundle/{chunk-z0tfsdb9.js → chunk-91z7azf7.js} +1 -1
  90. package/bundle/{chunk-kqhh2pm9.js → chunk-94qhpkfx.js} +1 -1
  91. package/bundle/{chunk-g8cfzzrs.js → chunk-96sqbyvf.js} +1 -1
  92. package/bundle/{chunk-gxmxx8jb.js → chunk-99148b1k.js} +1 -1
  93. package/bundle/chunk-9akz8w0d.js +2 -0
  94. package/bundle/{chunk-7gbytqkn.js → chunk-9b4aqcde.js} +2 -2
  95. package/bundle/{chunk-nhwhkx62.js → chunk-9bm9z52r.js} +1 -1
  96. package/bundle/{chunk-tdmn21z0.js → chunk-9ea1n338.js} +2 -2
  97. package/bundle/chunk-9etpppyv.js +3 -0
  98. package/bundle/{chunk-vgaxv70x.js → chunk-9jrxrjzt.js} +2 -2
  99. package/bundle/{chunk-3bkdbqjj.js → chunk-9jsgs71h.js} +1 -1
  100. package/bundle/chunk-9pnpmtb2.js +2 -0
  101. package/bundle/{chunk-pxx2hz0g.js → chunk-9rxyq6f9.js} +2 -2
  102. package/bundle/chunk-9s785py4.js +28 -0
  103. package/bundle/{chunk-9fkmhmh6.js → chunk-9y15zjxa.js} +1 -1
  104. package/bundle/{chunk-mdzzcrf9.js → chunk-a2dz9nqh.js} +2 -2
  105. package/bundle/{chunk-rtdym35y.js → chunk-a550vst5.js} +149 -141
  106. package/bundle/{chunk-46ztrjw0.js → chunk-a5pbvp1f.js} +1 -1
  107. package/bundle/chunk-a7p0x4sw.js +2 -0
  108. package/bundle/{chunk-ev3a2sxv.js → chunk-a92hh67a.js} +2 -2
  109. package/bundle/chunk-ae0a496j.js +2 -0
  110. package/bundle/chunk-aq1j9y18.js +2 -0
  111. package/bundle/chunk-aq8nz9hp.js +2 -0
  112. package/bundle/{chunk-zxddasg8.js → chunk-as845ya4.js} +1 -1
  113. package/bundle/chunk-b4zy78be.js +2 -0
  114. package/bundle/{chunk-45mjcxqk.js → chunk-b50t4jc5.js} +1 -1
  115. package/bundle/chunk-basjzwqp.js +2 -0
  116. package/bundle/{chunk-d1rn44wz.js → chunk-bbbh69ys.js} +1 -1
  117. package/bundle/{chunk-mw2hr4pd.js → chunk-bcx2vkv4.js} +1 -1
  118. package/bundle/{chunk-72zxassf.js → chunk-bggybm9k.js} +1 -1
  119. package/bundle/{chunk-4gs87ghj.js → chunk-bgng3rdj.js} +2 -2
  120. package/bundle/chunk-bhetpmgq.js +3 -0
  121. package/bundle/{chunk-bnz0mxak.js → chunk-bk3z400e.js} +1 -1
  122. package/bundle/chunk-bm7xpjh6.js +2 -0
  123. package/bundle/chunk-c1bw1q75.js +2 -0
  124. package/bundle/{chunk-7fawtcnn.js → chunk-c1g8n10t.js} +1 -1
  125. package/bundle/chunk-c2k556rk.js +2 -0
  126. package/bundle/chunk-c47vp7ne.js +2 -0
  127. package/bundle/{chunk-w03fdrxe.js → chunk-cbf1y12x.js} +1 -1
  128. package/bundle/chunk-cbhgf058.js +2 -0
  129. package/bundle/{chunk-vc4e6xc4.js → chunk-cbmwhvxw.js} +2 -2
  130. package/bundle/{chunk-5bate758.js → chunk-cp39f96a.js} +1 -1
  131. package/bundle/{chunk-9nk0ts0s.js → chunk-d307vb2d.js} +1 -1
  132. package/bundle/chunk-d41mg7at.js +2 -0
  133. package/bundle/chunk-d50kpss6.js +2 -0
  134. package/bundle/chunk-day0rb5p.js +2 -0
  135. package/bundle/{chunk-ws3p9cya.js → chunk-dbztxdea.js} +2 -2
  136. package/bundle/chunk-dp7cww4v.js +2 -0
  137. package/bundle/{chunk-yeq7b87a.js → chunk-drwqag0f.js} +1 -1
  138. package/bundle/chunk-dy31mchw.js +3 -0
  139. package/bundle/{chunk-5myxjxae.js → chunk-e374shb8.js} +2 -2
  140. package/bundle/{chunk-qdcf1ay5.js → chunk-e586sjb0.js} +2 -2
  141. package/bundle/{chunk-pr1ysgr3.js → chunk-e5rda9mx.js} +1 -1
  142. package/bundle/{chunk-qs4wef8c.js → chunk-e6wp96vm.js} +1 -1
  143. package/bundle/chunk-e999xtfj.js +2 -0
  144. package/bundle/{chunk-n7d9eemn.js → chunk-ehfxypks.js} +216 -218
  145. package/bundle/{chunk-gnt982jr.js → chunk-epa576pa.js} +3 -3
  146. package/bundle/{chunk-m0xsvzyd.js → chunk-et5dnymk.js} +2 -2
  147. package/bundle/chunk-eyr0vf92.js +2 -0
  148. package/bundle/{chunk-02xcb52z.js → chunk-ezfzb8qc.js} +2 -2
  149. package/bundle/{chunk-4sazy0nq.js → chunk-f83wv08n.js} +1 -1
  150. package/bundle/{chunk-3dr4469n.js → chunk-fbm6qczy.js} +1 -1
  151. package/bundle/{chunk-0g25z230.js → chunk-fd7fmvyw.js} +1 -1
  152. package/bundle/{chunk-0z33en1a.js → chunk-fgn83bs7.js} +1 -1
  153. package/bundle/{chunk-dshnn54c.js → chunk-fpm2vgz6.js} +1 -1
  154. package/bundle/{chunk-px8vtbmr.js → chunk-frsd6e1h.js} +2 -2
  155. package/bundle/{chunk-w5940jxm.js → chunk-fvy24yhq.js} +1 -1
  156. package/bundle/{chunk-dt899wbf.js → chunk-g3kd4957.js} +2 -2
  157. package/bundle/chunk-g7k6ecb2.js +11 -0
  158. package/bundle/chunk-gbmmbhy4.js +2 -0
  159. package/bundle/chunk-gp877cq5.js +2 -0
  160. package/bundle/{chunk-tgd5ctnt.js → chunk-gr4bctqj.js} +2 -2
  161. package/bundle/{chunk-dvxk6mr6.js → chunk-grw4gg9j.js} +2 -2
  162. package/bundle/{chunk-mvnxwwe7.js → chunk-gtjn3yc4.js} +2 -2
  163. package/bundle/{chunk-m6zxr0j8.js → chunk-h10wjk96.js} +2 -2
  164. package/bundle/{chunk-cxtxvt43.js → chunk-h2bmss2m.js} +1 -1
  165. package/bundle/chunk-h4f582d6.js +2 -0
  166. package/bundle/chunk-h57c6ne3.js +2 -0
  167. package/bundle/chunk-hk8vvc10.js +2 -0
  168. package/bundle/{chunk-x42w8ewc.js → chunk-hnrqhcgq.js} +1 -1
  169. package/bundle/{chunk-hcy77w6t.js → chunk-hq9bgnqb.js} +1 -1
  170. package/bundle/{chunk-gkj4a27z.js → chunk-hrw5rmj1.js} +1 -1
  171. package/bundle/{chunk-n2ygpy76.js → chunk-hs3vfhar.js} +1 -1
  172. package/bundle/chunk-hwavzxdm.js +2 -0
  173. package/bundle/chunk-hwnc2sa5.js +2 -0
  174. package/bundle/chunk-hy86wfad.js +2 -0
  175. package/bundle/{chunk-aw8af3ky.js → chunk-j17421hz.js} +1 -1
  176. package/bundle/chunk-j2gvpa15.js +2 -0
  177. package/bundle/{chunk-te5tfq79.js → chunk-j3jqk62r.js} +1 -1
  178. package/bundle/{chunk-jqn27885.js → chunk-j5ymkhry.js} +1 -1
  179. package/bundle/chunk-j7n8khk7.js +2 -0
  180. package/bundle/chunk-jkh98wby.js +2 -0
  181. package/bundle/{chunk-h7w35n7w.js → chunk-jv4th87b.js} +1 -1
  182. package/bundle/{chunk-j63fkt6n.js → chunk-jvjq554f.js} +1 -1
  183. package/bundle/{chunk-00sr2gwz.js → chunk-jw114bbt.js} +2 -2
  184. package/bundle/{chunk-ax1y4699.js → chunk-jwph7tpc.js} +1 -1
  185. package/bundle/{chunk-xdacgfba.js → chunk-k1gddnkm.js} +1 -1
  186. package/bundle/chunk-k5a652s4.js +2 -0
  187. package/bundle/{chunk-1mcsf4yb.js → chunk-k6cbfrzc.js} +2 -2
  188. package/bundle/chunk-k6w32q2p.js +2 -0
  189. package/bundle/{chunk-5kmfnkzv.js → chunk-kdcnder5.js} +1 -1
  190. package/bundle/chunk-kghwk0yh.js +2 -0
  191. package/bundle/chunk-kh8de8re.js +2 -0
  192. package/bundle/{chunk-r6ndvzd0.js → chunk-km1n4ttr.js} +1 -1
  193. package/bundle/{chunk-tzrbb0e8.js → chunk-kmwy6c9g.js} +2 -2
  194. package/bundle/{chunk-ydc6ypjt.js → chunk-ks1cs80p.js} +2 -2
  195. package/bundle/{chunk-08q55ya0.js → chunk-kxjrrdj0.js} +1 -1
  196. package/bundle/{chunk-jts0dma5.js → chunk-kzvvvj79.js} +2 -2
  197. package/bundle/chunk-mce8aa9y.js +2 -0
  198. package/bundle/chunk-me1ja46g.js +2 -0
  199. package/bundle/chunk-mgadsp7r.js +2 -0
  200. package/bundle/{chunk-hb9mc5f9.js → chunk-mpe8zxc0.js} +1 -1
  201. package/bundle/{chunk-eb8nsk7e.js → chunk-mrn44msr.js} +2 -2
  202. package/bundle/{chunk-yykjvt7f.js → chunk-mswx4k75.js} +2 -2
  203. package/bundle/{chunk-std2bgv7.js → chunk-mxhb5adq.js} +2 -2
  204. package/bundle/{chunk-gwfx7tx7.js → chunk-my3cswnp.js} +2 -2
  205. package/bundle/chunk-n0k0pp4k.js +2 -0
  206. package/bundle/chunk-n393nnh5.js +2 -0
  207. package/bundle/chunk-n5vyed7w.js +2 -0
  208. package/bundle/{chunk-jf6ry79j.js → chunk-n7kqdqkh.js} +4 -4
  209. package/bundle/{chunk-tdxbm1nd.js → chunk-n90eh3e7.js} +1 -1
  210. package/bundle/{chunk-s8mghr5a.js → chunk-ngvp6zc2.js} +2 -2
  211. package/bundle/{chunk-mcc5ynma.js → chunk-p4ewy9xh.js} +3 -3
  212. package/bundle/{chunk-vgnddhdj.js → chunk-p635phfw.js} +1 -1
  213. package/bundle/{chunk-dgx4rq86.js → chunk-p887g1xj.js} +1 -1
  214. package/bundle/{chunk-7jhrxzjx.js → chunk-p9mj4zyk.js} +2 -2
  215. package/bundle/chunk-pasm65wq.js +2 -0
  216. package/bundle/{chunk-xdjwapwy.js → chunk-pfkm3j8g.js} +2 -2
  217. package/bundle/chunk-phpmxjf8.js +2 -0
  218. package/bundle/{chunk-9dh9bc9d.js → chunk-pp9neaaz.js} +1 -1
  219. package/bundle/{chunk-c72jajx9.js → chunk-pzefsndd.js} +1 -1
  220. package/bundle/{chunk-dh1h513y.js → chunk-q128vfc6.js} +1 -1
  221. package/bundle/chunk-q2q3dmg3.js +2 -0
  222. package/bundle/chunk-q46pzk9z.js +8 -0
  223. package/bundle/{chunk-4fa390yr.js → chunk-q4fn41ex.js} +2 -2
  224. package/bundle/{chunk-zrmx397j.js → chunk-q5abwn50.js} +1 -1
  225. package/bundle/{chunk-7vftsy04.js → chunk-qaz100ht.js} +1 -1
  226. package/bundle/{chunk-pnq1h5az.js → chunk-qhnpq5gb.js} +2 -2
  227. package/bundle/chunk-qvzvxsjw.js +2 -0
  228. package/bundle/{chunk-yzwgvjzd.js → chunk-r0s28gnb.js} +1 -1
  229. package/bundle/chunk-racrb1b3.js +2 -0
  230. package/bundle/{chunk-yj6rbe9p.js → chunk-rcyzqa3g.js} +2 -2
  231. package/bundle/{chunk-70pb4kcm.js → chunk-rdwma0de.js} +2 -2
  232. package/bundle/{chunk-25bp7pcm.js → chunk-rk2bk4s7.js} +2 -2
  233. package/bundle/{chunk-x6rr6ss1.js → chunk-rm5ntsvn.js} +1 -1
  234. package/bundle/{chunk-xhbb8b5g.js → chunk-rp8asmq7.js} +1 -1
  235. package/bundle/{chunk-z1rshv6g.js → chunk-rpfhgncs.js} +1 -1
  236. package/bundle/{chunk-gt6tgm42.js → chunk-s0c0t6qr.js} +1 -1
  237. package/bundle/{chunk-cagk1sjd.js → chunk-s0ptrw0z.js} +1 -1
  238. package/bundle/{chunk-yw9pfqxt.js → chunk-s0ty36qg.js} +1 -1
  239. package/bundle/{chunk-kb6v5hhm.js → chunk-s77qktcn.js} +2 -2
  240. package/bundle/{chunk-sxy4hyyy.js → chunk-sghy9s7m.js} +1 -1
  241. package/bundle/{chunk-k7n1csxv.js → chunk-sjreby6e.js} +1 -1
  242. package/bundle/chunk-skpkjnyy.js +2 -0
  243. package/bundle/{chunk-8r3410c2.js → chunk-skv9ww0s.js} +1 -1
  244. package/bundle/chunk-skxhg212.js +2 -0
  245. package/bundle/chunk-snt4kwab.js +2 -0
  246. package/bundle/chunk-sq47t8f1.js +2 -0
  247. package/bundle/chunk-sqhgnvvs.js +2 -0
  248. package/bundle/{chunk-ztnepaqc.js → chunk-ssdw9zre.js} +1 -1
  249. package/bundle/chunk-t114r59h.js +2 -0
  250. package/bundle/{chunk-909fp6pm.js → chunk-t1475j9f.js} +1 -1
  251. package/bundle/chunk-t1f56k0j.js +2 -0
  252. package/bundle/{chunk-9s4whpg1.js → chunk-t1jgx17a.js} +2 -2
  253. package/bundle/chunk-t69jx6fz.js +2 -0
  254. package/bundle/{chunk-srxx88nb.js → chunk-t9zbp2qw.js} +1 -1
  255. package/bundle/{chunk-jcjaw7tk.js → chunk-ta7mfkms.js} +2 -2
  256. package/bundle/{chunk-fn8191ps.js → chunk-tczbhj0e.js} +1 -1
  257. package/bundle/{chunk-h1kg35mn.js → chunk-tge53d52.js} +1 -1
  258. package/bundle/{chunk-2pzvcpv4.js → chunk-tj3rem3q.js} +2 -2
  259. package/bundle/chunk-tsb3jsx4.js +2 -0
  260. package/bundle/chunk-ttpbpzbh.js +2 -0
  261. package/bundle/{chunk-2dkrfc1s.js → chunk-v5z6sx6j.js} +1 -1
  262. package/bundle/chunk-v667egp5.js +2 -0
  263. package/bundle/{chunk-60qyqqxx.js → chunk-v9rg0a8g.js} +1 -1
  264. package/bundle/{chunk-jngchw38.js → chunk-ve3np791.js} +1 -1
  265. package/bundle/{chunk-wev34grp.js → chunk-vhe92p7a.js} +2 -2
  266. package/bundle/{chunk-ceefd2nj.js → chunk-vk88jj60.js} +1 -1
  267. package/bundle/{chunk-atpzz901.js → chunk-vm1ek7yf.js} +1 -1
  268. package/bundle/{chunk-3mepk08v.js → chunk-vqpfpmha.js} +2 -2
  269. package/bundle/{chunk-cdh26622.js → chunk-vqss3e48.js} +2 -2
  270. package/bundle/chunk-vrv67tt0.js +2 -0
  271. package/bundle/chunk-vtw0wwch.js +17 -0
  272. package/bundle/{chunk-z7vv0ngm.js → chunk-vyh300ac.js} +2 -2
  273. package/bundle/{chunk-qpzspr9z.js → chunk-w30b563s.js} +2 -2
  274. package/bundle/{chunk-ewpzqnj4.js → chunk-w79jzf8w.js} +1 -1
  275. package/bundle/{chunk-yha554nm.js → chunk-w7em72p8.js} +2 -2
  276. package/bundle/chunk-wcqfr8vr.js +3 -0
  277. package/bundle/chunk-wcx7hc2p.js +635 -0
  278. package/bundle/{chunk-r58gzg6m.js → chunk-wdaf713t.js} +1 -1
  279. package/bundle/{chunk-ymtcm4xd.js → chunk-wf4x5cjc.js} +1 -1
  280. package/bundle/{chunk-vsys768k.js → chunk-wfggztm4.js} +1 -1
  281. package/bundle/chunk-wv8qx8sa.js +2 -0
  282. package/bundle/{chunk-acyj91wq.js → chunk-x2cavpa9.js} +1 -1
  283. package/bundle/{chunk-qb35hqm4.js → chunk-x4pdpka8.js} +1 -1
  284. package/bundle/{chunk-vm58fkrv.js → chunk-xd3xc1vv.js} +1 -1
  285. package/bundle/{chunk-v0yxkq99.js → chunk-xmjntwjc.js} +2 -2
  286. package/bundle/{chunk-64s7vfj7.js → chunk-xny5ecn0.js} +2 -2
  287. package/bundle/chunk-xxrtr6sd.js +2 -0
  288. package/bundle/chunk-y287zwkr.js +10 -0
  289. package/bundle/{chunk-ypk3t1eh.js → chunk-y2ptjam9.js} +1 -1
  290. package/bundle/{chunk-ezrskm25.js → chunk-y3dfk6n5.js} +1 -1
  291. package/bundle/{chunk-t01bhw5h.js → chunk-y4e7e42x.js} +3 -3
  292. package/bundle/{chunk-98effz12.js → chunk-y6h35v4a.js} +1 -1
  293. package/bundle/chunk-y72p79v2.js +2 -0
  294. package/bundle/chunk-y8eggnrr.js +2 -0
  295. package/bundle/chunk-y9q0f9qz.js +2 -0
  296. package/bundle/{chunk-9xvctnjr.js → chunk-yajd975f.js} +1 -1
  297. package/bundle/chunk-yck5h49c.js +2 -0
  298. package/bundle/{chunk-8yr682pv.js → chunk-yd2emszh.js} +2 -2
  299. package/bundle/{chunk-p9zrk16q.js → chunk-yd8bzhv6.js} +1 -1
  300. package/bundle/chunk-yhsnmpzv.js +2 -0
  301. package/bundle/{chunk-y1b2h15z.js → chunk-ypcc3cnb.js} +1 -1
  302. package/bundle/{chunk-qy1a2tpc.js → chunk-yr35q7q1.js} +1 -1
  303. package/bundle/{chunk-rcyhqkv5.js → chunk-yrfq22a5.js} +1 -1
  304. package/bundle/{chunk-gg7bg3ek.js → chunk-yvjke593.js} +1 -1
  305. package/bundle/{chunk-871f8x99.js → chunk-ywdtp534.js} +2 -2
  306. package/bundle/{chunk-zfnbk5gy.js → chunk-ywkvq7zb.js} +1 -1
  307. package/bundle/{chunk-p3rp99na.js → chunk-yx1h0b5v.js} +1 -1
  308. package/bundle/{chunk-mzbr0m2v.js → chunk-yz0pwv2m.js} +1 -1
  309. package/bundle/{chunk-q81m4m9z.js → chunk-z2h1gxyx.js} +1 -1
  310. package/bundle/chunk-zcp0wx4j.js +5 -0
  311. package/bundle/{chunk-qqne79vp.js → chunk-zdzxsyxs.js} +2 -2
  312. package/bundle/{chunk-yzh4rmrt.js → chunk-zek5c15t.js} +1 -1
  313. package/bundle/{chunk-8dxdeksr.js → chunk-zfd70p01.js} +1 -1
  314. package/bundle/index.js +3 -3
  315. package/bundle/parser.worker.js +2 -2
  316. package/bundle/worker.js +1 -1
  317. package/package.json +1 -1
  318. package/bundle/chunk-092bx2yw.js +0 -2
  319. package/bundle/chunk-0jrgk6vk.js +0 -2
  320. package/bundle/chunk-0ne5m1n3.js +0 -2
  321. package/bundle/chunk-0qn52zsd.js +0 -2
  322. package/bundle/chunk-10accb7b.js +0 -2
  323. package/bundle/chunk-13kpdfr7.js +0 -2
  324. package/bundle/chunk-15s8zwgf.js +0 -2
  325. package/bundle/chunk-1bx2sjn6.js +0 -11
  326. package/bundle/chunk-1kgyfja6.js +0 -2
  327. package/bundle/chunk-4dtkj9zg.js +0 -2
  328. package/bundle/chunk-4e9p3e0a.js +0 -2
  329. package/bundle/chunk-4tbqsrsn.js +0 -2
  330. package/bundle/chunk-53kns5wy.js +0 -2
  331. package/bundle/chunk-559ek1ym.js +0 -2
  332. package/bundle/chunk-55wxgsga.js +0 -2
  333. package/bundle/chunk-5ke0yqqz.js +0 -8
  334. package/bundle/chunk-5q1fz2az.js +0 -2
  335. package/bundle/chunk-5sgpjgss.js +0 -10
  336. package/bundle/chunk-88emsbaz.js +0 -2
  337. package/bundle/chunk-8yn64y27.js +0 -2
  338. package/bundle/chunk-8ywa7az5.js +0 -2
  339. package/bundle/chunk-8ywdddts.js +0 -2
  340. package/bundle/chunk-92zjark4.js +0 -2
  341. package/bundle/chunk-a6z0fhta.js +0 -2
  342. package/bundle/chunk-akpssv2d.js +0 -2
  343. package/bundle/chunk-aq28ejhv.js +0 -2
  344. package/bundle/chunk-b10px5g4.js +0 -2
  345. package/bundle/chunk-bha3sbsj.js +0 -2
  346. package/bundle/chunk-bs020a3x.js +0 -2
  347. package/bundle/chunk-bs61sezq.js +0 -2
  348. package/bundle/chunk-cmdjkx32.js +0 -2
  349. package/bundle/chunk-de2rfsaf.js +0 -2
  350. package/bundle/chunk-dncnyzaa.js +0 -2
  351. package/bundle/chunk-dp6zktka.js +0 -2
  352. package/bundle/chunk-dvqdtdza.js +0 -2
  353. package/bundle/chunk-ebabnv33.js +0 -3
  354. package/bundle/chunk-ebdpg3cn.js +0 -2
  355. package/bundle/chunk-eyc6tb5h.js +0 -2
  356. package/bundle/chunk-eze57bty.js +0 -2
  357. package/bundle/chunk-fa47vzfc.js +0 -2
  358. package/bundle/chunk-fe397ph0.js +0 -2
  359. package/bundle/chunk-fr75ytdr.js +0 -2
  360. package/bundle/chunk-fw2tnbt6.js +0 -2
  361. package/bundle/chunk-fwr2qgqb.js +0 -2
  362. package/bundle/chunk-g204pt98.js +0 -2
  363. package/bundle/chunk-gcgmwqhh.js +0 -2
  364. package/bundle/chunk-grdfpd57.js +0 -2
  365. package/bundle/chunk-gw36mrg4.js +0 -2
  366. package/bundle/chunk-h36qec67.js +0 -2
  367. package/bundle/chunk-h9gtymfm.js +0 -2
  368. package/bundle/chunk-h9qn35pn.js +0 -2
  369. package/bundle/chunk-hd8q4msp.js +0 -2
  370. package/bundle/chunk-hhjkezfz.js +0 -2
  371. package/bundle/chunk-hnz570f9.js +0 -3
  372. package/bundle/chunk-jfz8wwk9.js +0 -2
  373. package/bundle/chunk-js6hqmq7.js +0 -2
  374. package/bundle/chunk-k70x182t.js +0 -2
  375. package/bundle/chunk-kmtfdky8.js +0 -4
  376. package/bundle/chunk-kwzawx7r.js +0 -2
  377. package/bundle/chunk-m0mek3es.js +0 -2
  378. package/bundle/chunk-m31d2n6h.js +0 -2
  379. package/bundle/chunk-n14qktbg.js +0 -2
  380. package/bundle/chunk-n38h109k.js +0 -17
  381. package/bundle/chunk-nzzsj54n.js +0 -2
  382. package/bundle/chunk-p19qfw59.js +0 -2
  383. package/bundle/chunk-p2yxj9s4.js +0 -2
  384. package/bundle/chunk-ps9p14y6.js +0 -2
  385. package/bundle/chunk-qagc6v17.js +0 -2
  386. package/bundle/chunk-qc0zhbhm.js +0 -2
  387. package/bundle/chunk-r78kfhvz.js +0 -2
  388. package/bundle/chunk-rnd5mnsm.js +0 -2
  389. package/bundle/chunk-schtpyjs.js +0 -2
  390. package/bundle/chunk-sp8ek94w.js +0 -5
  391. package/bundle/chunk-sv1s1qxd.js +0 -619
  392. package/bundle/chunk-sxwqrvmy.js +0 -28
  393. package/bundle/chunk-syc4b8rt.js +0 -2
  394. package/bundle/chunk-tcs6wgna.js +0 -3
  395. package/bundle/chunk-tf4xwqz7.js +0 -2
  396. package/bundle/chunk-twhavv1m.js +0 -2
  397. package/bundle/chunk-tzg4z74d.js +0 -2
  398. package/bundle/chunk-v8vcwx23.js +0 -2
  399. package/bundle/chunk-vftqwdpg.js +0 -3
  400. package/bundle/chunk-w6rf2knb.js +0 -2
  401. package/bundle/chunk-wh7r96t3.js +0 -2
  402. package/bundle/chunk-wnjqaxze.js +0 -2
  403. package/bundle/chunk-xc9se3c8.js +0 -2
  404. package/bundle/chunk-xfz698bh.js +0 -2
  405. package/bundle/chunk-xxj3sgd5.js +0 -2
  406. package/bundle/chunk-xxvqq7kc.js +0 -2
  407. package/bundle/chunk-ye0mkqb4.js +0 -2
  408. package/bundle/chunk-yfp9y71y.js +0 -2
  409. package/bundle/chunk-yjjh339w.js +0 -2
  410. package/bundle/chunk-yt6vd7a5.js +0 -2
  411. package/bundle/chunk-yzn08nx1.js +0 -2
  412. package/bundle/chunk-yzq3c3dq.js +0 -2
  413. package/bundle/chunk-z1j25911.js +0 -2
  414. package/bundle/chunk-z210dtw1.js +0 -3
  415. package/bundle/chunk-z29ahthm.js +0 -2
  416. package/bundle/chunk-zgre4gc2.js +0 -2
  417. package/bundle/chunk-zthkjx33.js +0 -2
  418. package/bundle/chunk-zwvwbrsc.js +0 -2
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{re as Qb}from"./chunk-hgsykghj.js";import{ve as Sb}from"./chunk-jts0dma5.js";import{we as Rb}from"./chunk-vgaxv70x.js";import{xe as Nb,ye as Ob,ze as Pb}from"./chunk-t01bhw5h.js";import{Ae as Mb}from"./chunk-8yr682pv.js";import{sf as Eb,tf as Hb,uf as Jb,vf as Kb,wf as Lb}from"./chunk-v3x5nrc4.js";import"./chunk-4sazy0nq.js";var x=Pb(),U=Ob(),u=Hb(),v=Jb(),L=Kb(),V=Mb(),P=Nb(),Z=Eb(),_=Qb(),M=Lb(),i=Rb(),Tb=Sb(),Ub=async(b,h,j)=>{return{operation:u.getSmithyContext(h).operation,region:await u.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Vb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:b.region},propertiesExtractor:(h,j)=>({signingProperties:{config:h,context:j}})}}function e(b){return{schemeId:"smithy.api#noAuth"}}var Wb=(b)=>{let h=[];switch(b.operation){case"GetCredentialsForIdentity":{h.push(e());break}case"GetId":{h.push(e());break}default:h.push(Vb(b))}return h},Xb=(b)=>{let h=_.resolveAwsSdkSigV4Config(b);return Object.assign(h,{authSchemePreference:u.normalizeProvider(b.authSchemePreference??[])})},Yb=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"})},n={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Zb="3.997.14",_b={version:Zb},Q="ref",K=-1,S=!0,m="isSet",bb="PartitionResult",T="booleanEquals",X="getAttr",N="stringEquals",d={[Q]:"Endpoint"},Y={[Q]:bb},O={[Q]:"Region"},A={},o=[O],t={conditions:[[m,[d]],[m,o],["aws.partition",o,bb],[T,[{[Q]:"UseFIPS"},S]],[T,[{fn:X,argv:[Y,"supportsFIPS"]},S]],[T,[{[Q]:"UseDualStack"},S]],[T,[{fn:X,argv:[Y,"supportsDualStack"]},S]],[N,[{fn:X,argv:[Y,"name"]},"aws"]],[N,[O,"us-east-1"]],[N,[O,"us-east-2"]],[N,[O,"us-west-1"]],[N,[O,"us-west-2"]]],results:[[K],[K,"Invalid Configuration: FIPS and custom endpoint are not supported"],[K,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[d,A],["https://cognito-identity-fips.us-east-1.amazonaws.com",A],["https://cognito-identity-fips.us-east-2.amazonaws.com",A],["https://cognito-identity-fips.us-west-1.amazonaws.com",A],["https://cognito-identity-fips.us-west-2.amazonaws.com",A],["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",A],[K,"FIPS is enabled but this partition does not support FIPS"],["https://cognito-identity.{Region}.amazonaws.com",A],["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"DualStack is enabled but this partition does not support DualStack"],["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",A],[K,"Invalid Configuration: Missing Region"]]},$b=2,p=1e8,sb=new Int32Array([-1,1,-1,0,17,3,1,4,p+16,2,5,p+16,3,9,6,5,7,p+15,6,8,p+14,7,p+12,p+13,4,11,10,5,p+9,p+11,5,12,p+10,6,13,p+9,8,p+4,14,9,p+5,15,10,p+6,16,11,p+7,p+8,3,p+1,18,5,p+2,p+3]),Fb=L.BinaryDecisionDiagram.from(sb,$b,t.conditions,t.results),cb=new L.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),fb=(b,h={})=>{return cb.get(b,()=>L.decideEndpoint(Fb,{endpointParams:b,logger:h.logger}))};L.customEndpointFunctions.aws=x.awsEndpointFunctions;class z extends u.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,z.prototype)}}class $ extends z{name="ExternalServiceException";$fault="client";constructor(b){super({name:"ExternalServiceException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}class s extends z{name="InternalErrorException";$fault="server";constructor(b){super({name:"InternalErrorException",$fault:"server",...b});Object.setPrototypeOf(this,s.prototype)}}class F extends z{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(b){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...b});Object.setPrototypeOf(this,F.prototype)}}class c extends z{name="InvalidParameterException";$fault="client";constructor(b){super({name:"InvalidParameterException",$fault:"client",...b});Object.setPrototypeOf(this,c.prototype)}}class f extends z{name="NotAuthorizedException";$fault="client";constructor(b){super({name:"NotAuthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,f.prototype)}}class l extends z{name="ResourceConflictException";$fault="client";constructor(b){super({name:"ResourceConflictException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class G extends z{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,G.prototype)}}class r extends z{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,r.prototype)}}class y extends z{name="LimitExceededException";$fault="client";constructor(b){super({name:"LimitExceededException",$fault:"client",...b});Object.setPrototypeOf(this,y.prototype)}}var lb="AccountId",Gb="AccessKeyId",hb="Credentials",rb="CustomRoleArn",yb="Expiration",gb="ExternalServiceException",Ib="GetCredentialsForIdentity",ab="GetCredentialsForIdentityInput",Cb="GetCredentialsForIdentityResponse",ib="GetId",eb="GetIdInput",mb="GetIdResponse",db="InternalErrorException",g="IdentityId",ob="InvalidIdentityPoolConfigurationException",tb="InvalidParameterException",nb="IdentityPoolId",bh="IdentityProviderToken",jb="Logins",hh="LimitExceededException",jh="LoginsMap",kh="NotAuthorizedException",ph="ResourceConflictException",qh="ResourceNotFoundException",uh="SecretKey",vh="SecretKeyString",wh="SessionToken",xh="TooManyRequestsException",H="client",D="error",J="httpError",E="message",kb="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",zh="server",k="com.amazonaws.cognitoidentity",pb=Z.TypeRegistry.for(kb),Ah=[-3,kb,"CognitoIdentityServiceException",0,[],[]];pb.registerError(Ah,z);var B=Z.TypeRegistry.for(k),Bh=[-3,k,gb,{[D]:H,[J]:400},[E],[0]];B.registerError(Bh,$);var Dh=[-3,k,db,{[D]:zh},[E],[0]];B.registerError(Dh,s);var Eh=[-3,k,ob,{[D]:H,[J]:400},[E],[0]];B.registerError(Eh,F);var Hh=[-3,k,tb,{[D]:H,[J]:400},[E],[0]];B.registerError(Hh,c);var Jh=[-3,k,hh,{[D]:H,[J]:400},[E],[0]];B.registerError(Jh,y);var Kh=[-3,k,kh,{[D]:H,[J]:403},[E],[0]];B.registerError(Kh,f);var Lh=[-3,k,ph,{[D]:H,[J]:409},[E],[0]];B.registerError(Lh,l);var Mh=[-3,k,qh,{[D]:H,[J]:404},[E],[0]];B.registerError(Mh,G);var Nh=[-3,k,xh,{[D]:H,[J]:429},[E],[0]];B.registerError(Nh,r);var Oh=[pb,B],Ph=[0,k,bh,8,0],Qh=[0,k,vh,8,0],Rh=[3,k,hb,0,[Gb,uh,wh,yb],[0,[()=>Qh,0],0,4]],Sh=[3,k,ab,0,[g,jb,rb],[0,[()=>qb,0],0],1],Th=[3,k,Cb,0,[g,hb],[0,[()=>Rh,0]]],Uh=[3,k,eb,0,[nb,lb,jb],[0,0,[()=>qb,0]],1],Vh=[3,k,mb,0,[g],[0]],qb=[2,k,jh,0,[0,0],[()=>Ph,0]],Wh=[9,k,Ib,0,()=>Sh,()=>Th],Xh=[9,k,ib,0,()=>Uh,()=>Vh],Yh=(b)=>{return{apiVersion:"2014-06-30",base64Decoder:b?.base64Decoder??M.fromBase64,base64Encoder:b?.base64Encoder??M.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??fb,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??Wb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new _.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new U.NoAuthSigner}],logger:b?.logger??new u.NoOpLogger,protocol:b?.protocol??Tb.AwsJson1_1Protocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:Oh,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:b?.serviceId??"Cognito Identity",urlParser:b?.urlParser??V.parseUrl,utf8Decoder:b?.utf8Decoder??M.fromUtf8,utf8Encoder:b?.utf8Encoder??M.toUtf8}},Zh=(b)=>{u.emitWarningIfUnsupportedVersion(process.version);let h=v.resolveDefaultsModeConfig(b),j=()=>h().then(u.loadConfigsForDefaultMode),w=Yh(b);x.emitWarningIfUnsupportedVersion(process.version);let q={profile:b?.profile,logger:w.logger};return{...w,...b,runtime:"node",defaultsMode:h,authSchemePreference:b?.authSchemePreference??v.loadConfig(_.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,q),bodyLengthChecker:b?.bodyLengthChecker??M.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??x.createDefaultUserAgentProvider({serviceId:w.serviceId,clientVersion:_b.version}),maxAttempts:b?.maxAttempts??v.loadConfig(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??v.loadConfig(v.NODE_REGION_CONFIG_OPTIONS,{...v.NODE_REGION_CONFIG_FILE_OPTIONS,...q}),requestHandler:i.NodeHttpHandler.create(b?.requestHandler??j),retryMode:b?.retryMode??v.loadConfig({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await j()).retryMode||P.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??M.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??i.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??v.loadConfig(v.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,q),useFipsEndpoint:b?.useFipsEndpoint??v.loadConfig(v.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,q),userAgentAppId:b?.userAgentAppId??v.loadConfig(x.NODE_APP_ID_CONFIG_OPTIONS,q)}},_h=(b)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:j,credentials:w}=b;return{setHttpAuthScheme(q){let R=h.findIndex((W)=>W.schemeId===q.schemeId);if(R===-1)h.push(q);else h.splice(R,1,q)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider(q){j=q},httpAuthSchemeProvider(){return j},setCredentials(q){w=q},credentials(){return w}}},$h=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},sh=(b,h)=>{let j=Object.assign(x.getAwsRegionExtensionConfiguration(b),u.getDefaultExtensionConfiguration(b),V.getHttpHandlerExtensionConfiguration(b),_h(b));return h.forEach((w)=>w.configure(j)),Object.assign(b,x.resolveAwsRegionExtensionConfiguration(j),u.resolveDefaultRuntimeConfig(j),V.resolveHttpHandlerRuntimeConfig(j),$h(j))};class I extends u.Client{config;constructor(...[b]){let h=Zh(b||{});super(h);this.initConfig=h;let j=Yb(h),w=x.resolveUserAgentConfig(j),q=P.resolveRetryConfig(w),R=v.resolveRegionConfig(q),W=x.resolveHostHeaderConfig(R),zb=L.resolveEndpointConfig(W),Ab=Xb(zb),Bb=sh(Ab,b?.extensions||[]);this.config=Bb,this.middlewareStack.use(Z.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(x.getUserAgentPlugin(this.config)),this.middlewareStack.use(P.getRetryPlugin(this.config)),this.middlewareStack.use(V.getContentLengthPlugin(this.config)),this.middlewareStack.use(x.getHostHeaderPlugin(this.config)),this.middlewareStack.use(x.getLoggerPlugin(this.config)),this.middlewareStack.use(x.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(U.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ub,identityProviderConfigProvider:async(Db)=>new U.DefaultIdentityProviderConfig({"aws.auth#sigv4":Db.credentials})})),this.middlewareStack.use(U.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class a extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Wh).build(){}class C extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Xh).build(){}var Fh={GetCredentialsForIdentityCommand:a,GetIdCommand:C};class ub extends I{}u.createAggregatedClient(Fh,ub);var{Command:ch,Client:fh}=u;var vb=I;var wb=a;var xb=C;export{xb as GetIdCommand,wb as GetCredentialsForIdentityCommand,vb as CognitoIdentityClient};
2
+ import{te as Qb}from"./chunk-6pcmv8vs.js";import{xe as Sb}from"./chunk-kzvvvj79.js";import{ye as Rb}from"./chunk-9jrxrjzt.js";import{Ae as Ob,Be as Pb,ze as Nb}from"./chunk-y4e7e42x.js";import{Ce as Mb}from"./chunk-yd2emszh.js";import{uf as Eb,vf as Hb,wf as Jb,xf as Kb,yf as Lb}from"./chunk-3tmq81kq.js";import"./chunk-f83wv08n.js";var x=Pb(),U=Ob(),u=Hb(),v=Jb(),L=Kb(),V=Mb(),P=Nb(),Z=Eb(),_=Qb(),M=Lb(),i=Rb(),Tb=Sb(),Ub=async(b,h,j)=>{return{operation:u.getSmithyContext(h).operation,region:await u.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Vb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:b.region},propertiesExtractor:(h,j)=>({signingProperties:{config:h,context:j}})}}function e(b){return{schemeId:"smithy.api#noAuth"}}var Wb=(b)=>{let h=[];switch(b.operation){case"GetCredentialsForIdentity":{h.push(e());break}case"GetId":{h.push(e());break}default:h.push(Vb(b))}return h},Xb=(b)=>{let h=_.resolveAwsSdkSigV4Config(b);return Object.assign(h,{authSchemePreference:u.normalizeProvider(b.authSchemePreference??[])})},Yb=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"})},n={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Zb="3.997.14",_b={version:Zb},Q="ref",K=-1,S=!0,m="isSet",bb="PartitionResult",T="booleanEquals",X="getAttr",N="stringEquals",d={[Q]:"Endpoint"},Y={[Q]:bb},O={[Q]:"Region"},A={},o=[O],t={conditions:[[m,[d]],[m,o],["aws.partition",o,bb],[T,[{[Q]:"UseFIPS"},S]],[T,[{fn:X,argv:[Y,"supportsFIPS"]},S]],[T,[{[Q]:"UseDualStack"},S]],[T,[{fn:X,argv:[Y,"supportsDualStack"]},S]],[N,[{fn:X,argv:[Y,"name"]},"aws"]],[N,[O,"us-east-1"]],[N,[O,"us-east-2"]],[N,[O,"us-west-1"]],[N,[O,"us-west-2"]]],results:[[K],[K,"Invalid Configuration: FIPS and custom endpoint are not supported"],[K,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[d,A],["https://cognito-identity-fips.us-east-1.amazonaws.com",A],["https://cognito-identity-fips.us-east-2.amazonaws.com",A],["https://cognito-identity-fips.us-west-1.amazonaws.com",A],["https://cognito-identity-fips.us-west-2.amazonaws.com",A],["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",A],[K,"FIPS is enabled but this partition does not support FIPS"],["https://cognito-identity.{Region}.amazonaws.com",A],["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"DualStack is enabled but this partition does not support DualStack"],["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",A],[K,"Invalid Configuration: Missing Region"]]},$b=2,p=1e8,sb=new Int32Array([-1,1,-1,0,17,3,1,4,p+16,2,5,p+16,3,9,6,5,7,p+15,6,8,p+14,7,p+12,p+13,4,11,10,5,p+9,p+11,5,12,p+10,6,13,p+9,8,p+4,14,9,p+5,15,10,p+6,16,11,p+7,p+8,3,p+1,18,5,p+2,p+3]),Fb=L.BinaryDecisionDiagram.from(sb,$b,t.conditions,t.results),cb=new L.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),fb=(b,h={})=>{return cb.get(b,()=>L.decideEndpoint(Fb,{endpointParams:b,logger:h.logger}))};L.customEndpointFunctions.aws=x.awsEndpointFunctions;class z extends u.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,z.prototype)}}class $ extends z{name="ExternalServiceException";$fault="client";constructor(b){super({name:"ExternalServiceException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}class s extends z{name="InternalErrorException";$fault="server";constructor(b){super({name:"InternalErrorException",$fault:"server",...b});Object.setPrototypeOf(this,s.prototype)}}class F extends z{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(b){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...b});Object.setPrototypeOf(this,F.prototype)}}class c extends z{name="InvalidParameterException";$fault="client";constructor(b){super({name:"InvalidParameterException",$fault:"client",...b});Object.setPrototypeOf(this,c.prototype)}}class f extends z{name="NotAuthorizedException";$fault="client";constructor(b){super({name:"NotAuthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,f.prototype)}}class l extends z{name="ResourceConflictException";$fault="client";constructor(b){super({name:"ResourceConflictException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class G extends z{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,G.prototype)}}class r extends z{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,r.prototype)}}class y extends z{name="LimitExceededException";$fault="client";constructor(b){super({name:"LimitExceededException",$fault:"client",...b});Object.setPrototypeOf(this,y.prototype)}}var lb="AccountId",Gb="AccessKeyId",hb="Credentials",rb="CustomRoleArn",yb="Expiration",gb="ExternalServiceException",Ib="GetCredentialsForIdentity",ab="GetCredentialsForIdentityInput",Cb="GetCredentialsForIdentityResponse",ib="GetId",eb="GetIdInput",mb="GetIdResponse",db="InternalErrorException",g="IdentityId",ob="InvalidIdentityPoolConfigurationException",tb="InvalidParameterException",nb="IdentityPoolId",bh="IdentityProviderToken",jb="Logins",hh="LimitExceededException",jh="LoginsMap",kh="NotAuthorizedException",ph="ResourceConflictException",qh="ResourceNotFoundException",uh="SecretKey",vh="SecretKeyString",wh="SessionToken",xh="TooManyRequestsException",H="client",D="error",J="httpError",E="message",kb="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",zh="server",k="com.amazonaws.cognitoidentity",pb=Z.TypeRegistry.for(kb),Ah=[-3,kb,"CognitoIdentityServiceException",0,[],[]];pb.registerError(Ah,z);var B=Z.TypeRegistry.for(k),Bh=[-3,k,gb,{[D]:H,[J]:400},[E],[0]];B.registerError(Bh,$);var Dh=[-3,k,db,{[D]:zh},[E],[0]];B.registerError(Dh,s);var Eh=[-3,k,ob,{[D]:H,[J]:400},[E],[0]];B.registerError(Eh,F);var Hh=[-3,k,tb,{[D]:H,[J]:400},[E],[0]];B.registerError(Hh,c);var Jh=[-3,k,hh,{[D]:H,[J]:400},[E],[0]];B.registerError(Jh,y);var Kh=[-3,k,kh,{[D]:H,[J]:403},[E],[0]];B.registerError(Kh,f);var Lh=[-3,k,ph,{[D]:H,[J]:409},[E],[0]];B.registerError(Lh,l);var Mh=[-3,k,qh,{[D]:H,[J]:404},[E],[0]];B.registerError(Mh,G);var Nh=[-3,k,xh,{[D]:H,[J]:429},[E],[0]];B.registerError(Nh,r);var Oh=[pb,B],Ph=[0,k,bh,8,0],Qh=[0,k,vh,8,0],Rh=[3,k,hb,0,[Gb,uh,wh,yb],[0,[()=>Qh,0],0,4]],Sh=[3,k,ab,0,[g,jb,rb],[0,[()=>qb,0],0],1],Th=[3,k,Cb,0,[g,hb],[0,[()=>Rh,0]]],Uh=[3,k,eb,0,[nb,lb,jb],[0,0,[()=>qb,0]],1],Vh=[3,k,mb,0,[g],[0]],qb=[2,k,jh,0,[0,0],[()=>Ph,0]],Wh=[9,k,Ib,0,()=>Sh,()=>Th],Xh=[9,k,ib,0,()=>Uh,()=>Vh],Yh=(b)=>{return{apiVersion:"2014-06-30",base64Decoder:b?.base64Decoder??M.fromBase64,base64Encoder:b?.base64Encoder??M.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??fb,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??Wb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new _.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new U.NoAuthSigner}],logger:b?.logger??new u.NoOpLogger,protocol:b?.protocol??Tb.AwsJson1_1Protocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:Oh,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:b?.serviceId??"Cognito Identity",urlParser:b?.urlParser??V.parseUrl,utf8Decoder:b?.utf8Decoder??M.fromUtf8,utf8Encoder:b?.utf8Encoder??M.toUtf8}},Zh=(b)=>{u.emitWarningIfUnsupportedVersion(process.version);let h=v.resolveDefaultsModeConfig(b),j=()=>h().then(u.loadConfigsForDefaultMode),w=Yh(b);x.emitWarningIfUnsupportedVersion(process.version);let q={profile:b?.profile,logger:w.logger};return{...w,...b,runtime:"node",defaultsMode:h,authSchemePreference:b?.authSchemePreference??v.loadConfig(_.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,q),bodyLengthChecker:b?.bodyLengthChecker??M.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??x.createDefaultUserAgentProvider({serviceId:w.serviceId,clientVersion:_b.version}),maxAttempts:b?.maxAttempts??v.loadConfig(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??v.loadConfig(v.NODE_REGION_CONFIG_OPTIONS,{...v.NODE_REGION_CONFIG_FILE_OPTIONS,...q}),requestHandler:i.NodeHttpHandler.create(b?.requestHandler??j),retryMode:b?.retryMode??v.loadConfig({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await j()).retryMode||P.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??M.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??i.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??v.loadConfig(v.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,q),useFipsEndpoint:b?.useFipsEndpoint??v.loadConfig(v.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,q),userAgentAppId:b?.userAgentAppId??v.loadConfig(x.NODE_APP_ID_CONFIG_OPTIONS,q)}},_h=(b)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:j,credentials:w}=b;return{setHttpAuthScheme(q){let R=h.findIndex((W)=>W.schemeId===q.schemeId);if(R===-1)h.push(q);else h.splice(R,1,q)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider(q){j=q},httpAuthSchemeProvider(){return j},setCredentials(q){w=q},credentials(){return w}}},$h=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},sh=(b,h)=>{let j=Object.assign(x.getAwsRegionExtensionConfiguration(b),u.getDefaultExtensionConfiguration(b),V.getHttpHandlerExtensionConfiguration(b),_h(b));return h.forEach((w)=>w.configure(j)),Object.assign(b,x.resolveAwsRegionExtensionConfiguration(j),u.resolveDefaultRuntimeConfig(j),V.resolveHttpHandlerRuntimeConfig(j),$h(j))};class I extends u.Client{config;constructor(...[b]){let h=Zh(b||{});super(h);this.initConfig=h;let j=Yb(h),w=x.resolveUserAgentConfig(j),q=P.resolveRetryConfig(w),R=v.resolveRegionConfig(q),W=x.resolveHostHeaderConfig(R),zb=L.resolveEndpointConfig(W),Ab=Xb(zb),Bb=sh(Ab,b?.extensions||[]);this.config=Bb,this.middlewareStack.use(Z.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(x.getUserAgentPlugin(this.config)),this.middlewareStack.use(P.getRetryPlugin(this.config)),this.middlewareStack.use(V.getContentLengthPlugin(this.config)),this.middlewareStack.use(x.getHostHeaderPlugin(this.config)),this.middlewareStack.use(x.getLoggerPlugin(this.config)),this.middlewareStack.use(x.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(U.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ub,identityProviderConfigProvider:async(Db)=>new U.DefaultIdentityProviderConfig({"aws.auth#sigv4":Db.credentials})})),this.middlewareStack.use(U.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class a extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Wh).build(){}class C extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Xh).build(){}var Fh={GetCredentialsForIdentityCommand:a,GetIdCommand:C};class ub extends I{}u.createAggregatedClient(Fh,ub);var{Command:ch,Client:fh}=u;var vb=I;var wb=a;var xb=C;export{xb as GetIdCommand,wb as GetCredentialsForIdentityCommand,vb as CognitoIdentityClient};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{L as R9}from"./chunk-6r8pg6ma.js";import{Cd as E9}from"./chunk-w8d9srv7.js";import{Dd as P6,Gd as p$,Hd as S9,Id as U9,Ld as H9,Md as q6}from"./chunk-7jhrxzjx.js";import"./chunk-jcjaw7tk.js";import{Pd as T0}from"./chunk-9xvctnjr.js";import{Sf as O}from"./chunk-9s4whpg1.js";import{Kg as j9,Tg as I9,Xg as E$}from"./chunk-sv1s1qxd.js";import"./chunk-n7d9eemn.js";import"./chunk-pxx2hz0g.js";import"./chunk-rexdr63q.js";import"./chunk-kqhh2pm9.js";import"./chunk-7fawtcnn.js";import"./chunk-mdzzcrf9.js";import"./chunk-wev34grp.js";import{Lj as T9,ak as O6,bk as M0,gl as w9,il as D9,rl as b9}from"./chunk-rtdym35y.js";import{El as N9}from"./chunk-5myxjxae.js";import{Tl as A0,am as T$}from"./chunk-sp8ek94w.js";import"./chunk-gnt982jr.js";import"./chunk-1bx2sjn6.js";import"./chunk-17pxm5d3.js";import"./chunk-n38h109k.js";import"./chunk-25bp7pcm.js";import"./chunk-qdcf1ay5.js";import"./chunk-45mjcxqk.js";import"./chunk-qqne79vp.js";import"./chunk-64s7vfj7.js";import"./chunk-xjhezxft.js";import"./chunk-gwfx7tx7.js";import"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-yykjvt7f.js";import"./chunk-3mepk08v.js";import"./chunk-atpzz901.js";import"./chunk-0g25z230.js";import"./chunk-w9pdvcf9.js";import"./chunk-4gs87ghj.js";import"./chunk-kb6v5hhm.js";import"./chunk-qyjt0qnq.js";import"./chunk-xdjwapwy.js";import"./chunk-cxtxvt43.js";import{zt as C6}from"./chunk-871f8x99.js";import"./chunk-cx7p4ezk.js";import"./chunk-tgd5ctnt.js";import"./chunk-p8kpqyxb.js";import"./chunk-3sz6gw10.js";import"./chunk-twhavv1m.js";import{Vt as F9,Yt as R6,Zt as M9,cu as A9}from"./chunk-v0yxkq99.js";import"./chunk-2pzvcpv4.js";import"./chunk-kmtfdky8.js";import{Vu as L9}from"./chunk-vc4e6xc4.js";import"./chunk-hnz570f9.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-pqnbdygz.js";import{UI as V9}from"./chunk-ydc6ypjt.js";import"./chunk-ev3a2sxv.js";import"./chunk-pnq1h5az.js";import{gQ as q0,hQ as D,kQ as E}from"./chunk-4sazy0nq.js";var JZ=D((zZ)=>{/*!
2
+ import{L as R9}from"./chunk-7z884mz2.js";import{Ed as E9}from"./chunk-0yjdatm6.js";import{Fd as P6,Id as p$,Jd as S9,Kd as U9,Nd as H9,Od as q6}from"./chunk-p9mj4zyk.js";import"./chunk-ta7mfkms.js";import{Rd as T0}from"./chunk-yajd975f.js";import{Uf as O}from"./chunk-t1jgx17a.js";import{Mg as j9,Vg as I9,Zg as E$}from"./chunk-wcx7hc2p.js";import"./chunk-ehfxypks.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{Nj as T9,ck as O6,dk as M0,il as w9,kl as D9,tl as b9}from"./chunk-a550vst5.js";import{Gl as N9}from"./chunk-e374shb8.js";import{Vl as A0,cm as T$}from"./chunk-zcp0wx4j.js";import"./chunk-epa576pa.js";import"./chunk-y287zwkr.js";import"./chunk-7zc04q43.js";import"./chunk-vtw0wwch.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-8d6e4jg7.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-s77qktcn.js";import"./chunk-8v6x712g.js";import"./chunk-pfkm3j8g.js";import"./chunk-h2bmss2m.js";import{cs as C6}from"./chunk-ywdtp534.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-0cdtq1r3.js";import{Bs as R6,Cs as M9,Hs as A9,ys as F9}from"./chunk-xmjntwjc.js";import"./chunk-tj3rem3q.js";import"./chunk-7q003wdd.js";import{yt as L9}from"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import{xH as V9}from"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import{LO as q0,MO as D,PO as E}from"./chunk-f83wv08n.js";var JZ=D((zZ)=>{/*!
3
3
  * content-type
4
4
  * Copyright(c) 2015 Douglas Christopher Wilson
5
5
  * MIT Licensed
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-4sazy0nq.js";var D=Object.defineProperty,x=(J,Q,W)=>(Q in J)?D(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:W}):J[Q]=W,B=(J,Q,W)=>x(J,typeof Q!=="symbol"?Q+"":Q,W),I="CF_TEMP_TOKEN",L=[{name:"openai",regex:/^https:\/\/api\.openai\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.openai\.com\//,"")},{name:"deepseek",regex:/^https:\/\/api\.deepseek\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.deepseek\.com\//,"")},{name:"anthropic",regex:/^https:\/\/api\.anthropic\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.anthropic\.com\//,""),headerKey:"x-api-key"},{name:"google-ai-studio",regex:/^https:\/\/generativelanguage\.googleapis\.com\//,headerKey:"x-goog-api-key",transformEndpoint:(J)=>J.replace(/^https:\/\/generativelanguage\.googleapis\.com\//,"")},{name:"google-vertex-ai",regex:/aiplatform\.googleapis\.com/,transformEndpoint:(J)=>J.replace(/https:\/\/(.*)[-]?aiplatform\.googleapis\.com\//,"")},{name:"grok",regex:/^https:\/\/api\.x\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.x\.ai\//,"")},{name:"mistral",regex:/^https:\/\/api\.mistral\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.mistral\.ai\//,"")},{name:"perplexity-ai",regex:/^https:\/\/api\.perplexity\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.perplexity\.ai\//,"")},{name:"replicate",regex:/^https:\/\/api\.replicate\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.replicate\.com\//,"")},{name:"groq",regex:/^https:\/\/api\.groq\.com\/openai\/v1\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.groq\.com\/openai\/v1\//,"")},{name:"google-vertex-ai",regex:/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,""),headerKey:"authorization"},{name:"azure-openai",regex:/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/,transformEndpoint:(J)=>{let Q=J.match(/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/);if(!Q||!Q.groups)return J;let{resource:W,deployment:X,rest:Z}=Q.groups;if(!W||!X||!Z)throw Error("Failed to parse Azure OpenAI endpoint URL.");return`${W}/${X}/${Z}`},headerKey:"api-key"},{name:"openrouter",regex:/^https:\/\/openrouter\.ai\/api\//,transformEndpoint:(J)=>J.replace(/^https:\/\/openrouter\.ai\/api\//,"")},{name:"compat",regex:/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,transformEndpoint:(J)=>J.replace(/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,"")}],z=class extends Error{},P=class extends Error{},T=class extends Error{};async function U(J){return await new Response(J).json()}var H=class{constructor(J,Q){B(this,"specificationVersion","v3"),B(this,"defaultObjectGenerationMode","json"),B(this,"supportedUrls",{}),B(this,"models"),B(this,"config"),this.models=J,this.config=Q}get modelId(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].modelId}get provider(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].provider}async processModelRequest(J,Q){let W=[];for(let S of this.models){if(!S.config||!Object.keys(S.config).includes("fetch"))throw Error(`Sorry, but provider "${S.provider}" is currently not supported, please open a issue in the github repo!`);S.config.fetch=(V,$)=>{throw W.push({modelProvider:S.provider,request:$,url:V}),new z("Stopping provider execution...")};try{await S[Q](J)}catch(V){if(!(V instanceof z))throw V}}let X=await Promise.all(W.map(async(S)=>{let V=null;for(let R of L)if(R.regex.test(S.url))V=R;if(!V)throw Error(`Sorry, but provider "${S.modelProvider}" is currently not supported, please open a issue in the github repo!`);if(!S.request.body)throw Error("Ai Gateway provider received an unexpected empty body");let $=V.headerKey??"authorization";if(("get"in S.request.headers?S.request.headers.get($):S.request.headers[$])?.indexOf(I)!==-1)if("delete"in S.request.headers)S.request.headers.delete($);else delete S.request.headers[$];return{endpoint:V.transformEndpoint(S.url),headers:S.request.headers,provider:V.name,query:await U(S.request.body)}})),Z=N(this.config.options??{}),Y;if("binding"in this.config){let S=X.map((V)=>({...V,headers:{...V.headers??{},...Object.fromEntries(Z.entries())}}));Y=await this.config.binding.run(S,{signal:J.abortSignal})}else Z.set("Content-Type","application/json"),Z.set("cf-aig-authorization",`Bearer ${this.config.apiKey}`),Y=await fetch(`https://gateway.ai.cloudflare.com/v1/${this.config.accountId}/${this.config.gateway}`,{body:JSON.stringify(X),headers:Z,method:"POST",signal:J.abortSignal});if(Y.status===400){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2001)throw new P("This AI gateway does not exist")}else if(Y.status===401){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2009)throw new T("Your AI Gateway has authentication active, but you didn't provide a valid apiKey")}let K=Number.parseInt(Y.headers.get("cf-aig-step")??"0",10);if(!this.models[K])throw Error("Unexpected AI Gateway Error");return this.models[K].config={...this.models[K].config,fetch:(S,V)=>Y},this.models[K][Q](J)}async doStream(J){return this.processModelRequest(J,"doStream")}async doGenerate(J){return this.processModelRequest(J,"doGenerate")}};function f(J){let Q=(X)=>{return new H(Array.isArray(X)?X:[X],J)},W=(X)=>Q(X);return W.chat=Q,W}function N(J){let Q=new Headers;if(J.skipCache===!0)Q.set("cf-skip-cache","true");if(J.cacheTtl)Q.set("cf-cache-ttl",J.cacheTtl.toString());if(J.metadata)Q.set("cf-aig-metadata",JSON.stringify(J.metadata));if(J.cacheKey)Q.set("cf-aig-cache-key",J.cacheKey);if(J.collectLog!==void 0)Q.set("cf-aig-collect-log",J.collectLog===!0?"true":"false");if(J.eventId!==void 0)Q.set("cf-aig-event-id",J.eventId);if(J.requestTimeoutMs!==void 0)Q.set("cf-aig-request-timeout",J.requestTimeoutMs.toString());if(J.retries!==void 0){if(J.retries.maxAttempts!==void 0)Q.set("cf-aig-max-attempts",J.retries.maxAttempts.toString());if(J.retries.retryDelayMs!==void 0)Q.set("cf-aig-retry-delay",J.retries.retryDelayMs.toString());if(J.retries.backoff!==void 0)Q.set("cf-aig-backoff",J.retries.backoff)}return Q}export{N as parseAiGatewayOptions,f as createAiGateway,T as AiGatewayUnauthorizedError,z as AiGatewayInternalFetchError,P as AiGatewayDoesNotExist,H as AiGatewayChatLanguageModel};
2
+ import"./chunk-f83wv08n.js";var D=Object.defineProperty,x=(J,Q,W)=>(Q in J)?D(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:W}):J[Q]=W,B=(J,Q,W)=>x(J,typeof Q!=="symbol"?Q+"":Q,W),I="CF_TEMP_TOKEN",L=[{name:"openai",regex:/^https:\/\/api\.openai\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.openai\.com\//,"")},{name:"deepseek",regex:/^https:\/\/api\.deepseek\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.deepseek\.com\//,"")},{name:"anthropic",regex:/^https:\/\/api\.anthropic\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.anthropic\.com\//,""),headerKey:"x-api-key"},{name:"google-ai-studio",regex:/^https:\/\/generativelanguage\.googleapis\.com\//,headerKey:"x-goog-api-key",transformEndpoint:(J)=>J.replace(/^https:\/\/generativelanguage\.googleapis\.com\//,"")},{name:"google-vertex-ai",regex:/aiplatform\.googleapis\.com/,transformEndpoint:(J)=>J.replace(/https:\/\/(.*)[-]?aiplatform\.googleapis\.com\//,"")},{name:"grok",regex:/^https:\/\/api\.x\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.x\.ai\//,"")},{name:"mistral",regex:/^https:\/\/api\.mistral\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.mistral\.ai\//,"")},{name:"perplexity-ai",regex:/^https:\/\/api\.perplexity\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.perplexity\.ai\//,"")},{name:"replicate",regex:/^https:\/\/api\.replicate\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.replicate\.com\//,"")},{name:"groq",regex:/^https:\/\/api\.groq\.com\/openai\/v1\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.groq\.com\/openai\/v1\//,"")},{name:"google-vertex-ai",regex:/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,""),headerKey:"authorization"},{name:"azure-openai",regex:/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/,transformEndpoint:(J)=>{let Q=J.match(/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/);if(!Q||!Q.groups)return J;let{resource:W,deployment:X,rest:Z}=Q.groups;if(!W||!X||!Z)throw Error("Failed to parse Azure OpenAI endpoint URL.");return`${W}/${X}/${Z}`},headerKey:"api-key"},{name:"openrouter",regex:/^https:\/\/openrouter\.ai\/api\//,transformEndpoint:(J)=>J.replace(/^https:\/\/openrouter\.ai\/api\//,"")},{name:"compat",regex:/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,transformEndpoint:(J)=>J.replace(/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,"")}],z=class extends Error{},P=class extends Error{},T=class extends Error{};async function U(J){return await new Response(J).json()}var H=class{constructor(J,Q){B(this,"specificationVersion","v3"),B(this,"defaultObjectGenerationMode","json"),B(this,"supportedUrls",{}),B(this,"models"),B(this,"config"),this.models=J,this.config=Q}get modelId(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].modelId}get provider(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].provider}async processModelRequest(J,Q){let W=[];for(let S of this.models){if(!S.config||!Object.keys(S.config).includes("fetch"))throw Error(`Sorry, but provider "${S.provider}" is currently not supported, please open a issue in the github repo!`);S.config.fetch=(V,$)=>{throw W.push({modelProvider:S.provider,request:$,url:V}),new z("Stopping provider execution...")};try{await S[Q](J)}catch(V){if(!(V instanceof z))throw V}}let X=await Promise.all(W.map(async(S)=>{let V=null;for(let R of L)if(R.regex.test(S.url))V=R;if(!V)throw Error(`Sorry, but provider "${S.modelProvider}" is currently not supported, please open a issue in the github repo!`);if(!S.request.body)throw Error("Ai Gateway provider received an unexpected empty body");let $=V.headerKey??"authorization";if(("get"in S.request.headers?S.request.headers.get($):S.request.headers[$])?.indexOf(I)!==-1)if("delete"in S.request.headers)S.request.headers.delete($);else delete S.request.headers[$];return{endpoint:V.transformEndpoint(S.url),headers:S.request.headers,provider:V.name,query:await U(S.request.body)}})),Z=N(this.config.options??{}),Y;if("binding"in this.config){let S=X.map((V)=>({...V,headers:{...V.headers??{},...Object.fromEntries(Z.entries())}}));Y=await this.config.binding.run(S,{signal:J.abortSignal})}else Z.set("Content-Type","application/json"),Z.set("cf-aig-authorization",`Bearer ${this.config.apiKey}`),Y=await fetch(`https://gateway.ai.cloudflare.com/v1/${this.config.accountId}/${this.config.gateway}`,{body:JSON.stringify(X),headers:Z,method:"POST",signal:J.abortSignal});if(Y.status===400){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2001)throw new P("This AI gateway does not exist")}else if(Y.status===401){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2009)throw new T("Your AI Gateway has authentication active, but you didn't provide a valid apiKey")}let K=Number.parseInt(Y.headers.get("cf-aig-step")??"0",10);if(!this.models[K])throw Error("Unexpected AI Gateway Error");return this.models[K].config={...this.models[K].config,fetch:(S,V)=>Y},this.models[K][Q](J)}async doStream(J){return this.processModelRequest(J,"doStream")}async doGenerate(J){return this.processModelRequest(J,"doGenerate")}};function f(J){let Q=(X)=>{return new H(Array.isArray(X)?X:[X],J)},W=(X)=>Q(X);return W.chat=Q,W}function N(J){let Q=new Headers;if(J.skipCache===!0)Q.set("cf-skip-cache","true");if(J.cacheTtl)Q.set("cf-cache-ttl",J.cacheTtl.toString());if(J.metadata)Q.set("cf-aig-metadata",JSON.stringify(J.metadata));if(J.cacheKey)Q.set("cf-aig-cache-key",J.cacheKey);if(J.collectLog!==void 0)Q.set("cf-aig-collect-log",J.collectLog===!0?"true":"false");if(J.eventId!==void 0)Q.set("cf-aig-event-id",J.eventId);if(J.requestTimeoutMs!==void 0)Q.set("cf-aig-request-timeout",J.requestTimeoutMs.toString());if(J.retries!==void 0){if(J.retries.maxAttempts!==void 0)Q.set("cf-aig-max-attempts",J.retries.maxAttempts.toString());if(J.retries.retryDelayMs!==void 0)Q.set("cf-aig-retry-delay",J.retries.retryDelayMs.toString());if(J.retries.backoff!==void 0)Q.set("cf-aig-backoff",J.retries.backoff)}return Q}export{N as parseAiGatewayOptions,f as createAiGateway,T as AiGatewayUnauthorizedError,z as AiGatewayInternalFetchError,P as AiGatewayDoesNotExist,H as AiGatewayChatLanguageModel};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{hQ as y,kQ as C}from"./chunk-4sazy0nq.js";var h0=y((c$)=>{c$.HttpAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpAuthLocation||(c$.HttpAuthLocation={}));c$.HttpApiKeyAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpApiKeyAuthLocation||(c$.HttpApiKeyAuthLocation={}));c$.EndpointURLScheme=void 0;(function(h){h.HTTP="http",h.HTTPS="https"})(c$.EndpointURLScheme||(c$.EndpointURLScheme={}));c$.AlgorithmId=void 0;(function(h){h.MD5="md5",h.CRC32="crc32",h.CRC32C="crc32c",h.SHA1="sha1",h.SHA256="sha256"})(c$.AlgorithmId||(c$.AlgorithmId={}));var F$=(h)=>{let $=[];if(h.sha256!==void 0)$.push({algorithmId:()=>c$.AlgorithmId.SHA256,checksumConstructor:()=>h.sha256});if(h.md5!=null)$.push({algorithmId:()=>c$.AlgorithmId.MD5,checksumConstructor:()=>h.md5});return{addChecksumAlgorithm(T){$.push(T)},checksumAlgorithms(){return $}}},s$=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{$[T.algorithmId()]=T.checksumConstructor()}),$},S$=(h)=>{return F$(h)},j$=(h)=>{return s$(h)};c$.FieldPosition=void 0;(function(h){h[h.HEADER=0]="HEADER",h[h.TRAILER=1]="TRAILER"})(c$.FieldPosition||(c$.FieldPosition={}));var C$="__smithy_context";c$.IniSectionType=void 0;(function(h){h.PROFILE="profile",h.SSO_SESSION="sso-session",h.SERVICES="services"})(c$.IniSectionType||(c$.IniSectionType={}));c$.RequestHandlerProtocol=void 0;(function(h){h.HTTP_0_9="http/0.9",h.HTTP_1_0="http/1.0",h.TDS_8_0="tds/8.0"})(c$.RequestHandlerProtocol||(c$.RequestHandlerProtocol={}));c$.SMITHY_CONTEXT_KEY=C$;c$.getDefaultClientConfiguration=S$;c$.resolveDefaultRuntimeConfig=j$});var m=y((r$)=>{var c1=h0(),p$=(h)=>h[c1.SMITHY_CONTEXT_KEY]||(h[c1.SMITHY_CONTEXT_KEY]={});class Z0{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let $=new Z0({...h,headers:{...h.headers}});if($.query)$.query=g$($.query);return $}static isInstance(h){if(!h)return!1;let $=h;return"method"in $&&"protocol"in $&&"hostname"in $&&"path"in $&&typeof $.query==="object"&&typeof $.headers==="object"}clone(){return Z0.clone(this)}}function g$(h){return Object.keys(h).reduce(($,T)=>{let P=h[T];return{...$,[T]:Array.isArray(P)?[...P]:P}},{})}class b1{statusCode;reason;headers;body;constructor(h){this.statusCode=h.statusCode,this.reason=h.reason,this.headers=h.headers||{},this.body=h.body}static isInstance(h){if(!h)return!1;let $=h;return typeof $.statusCode==="number"&&typeof $.headers==="object"}}var m$=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),y1=(h,$=!1)=>{if(!$)return m$.test(h);let T=h.split(".");for(let P of T)if(!y1(P))return!1;return!0};function d$(h){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(h)}var v$=(h)=>{if(typeof h==="function")return h;let $=Promise.resolve(h);return()=>$};function k1(h){let $={};if(h=h.replace(/^\?/,""),h)for(let T of h.split("&")){let[P,w=null]=T.split("=");if(P=decodeURIComponent(P),w)w=decodeURIComponent(w);if(!(P in $))$[P]=w;else if(Array.isArray($[P]))$[P].push(w);else $[P]=[$[P],w]}return $}var R0=(h)=>{if(typeof h==="string")return R0(new URL(h));let{hostname:$,pathname:T,port:P,protocol:w,search:I}=h,A;if(I)A=k1(I);return{hostname:$,port:P?parseInt(P):void 0,protocol:w,path:T,query:A}},t$=(h)=>{if(typeof h==="object"){if("url"in h){let $=R0(h.url);if(h.headers){$.headers={};for(let T in h.headers)$.headers[T.toLowerCase()]=h.headers[T].join(", ")}return $}return h}return R0(h)};r$.HttpRequest=Z0;r$.HttpResponse=b1;r$.getSmithyContext=p$;r$.isValidHostLabel=y1;r$.isValidHostname=d$;r$.normalizeProvider=v$;r$.parseQueryString=k1;r$.parseUrl=R0;r$.toEndpointV1=t$});var d1=y((GT)=>{var H0=m(),q0=(h)=>{if(typeof h==="function")return h();return h},o0=(h,$,T,P,w)=>({name:$,namespace:h,traits:T,input:P,output:w}),TT=(h)=>($,T)=>async(P)=>{let{response:w}=await $(P),{operationSchema:I}=H0.getSmithyContext(T),[,A,U,_,f,Y]=I??[];try{let M=await h.protocol.deserializeResponse(o0(A,U,_,f,Y),{...h,...T},w);return{response:w,output:M}}catch(M){if(Object.defineProperty(M,"$response",{value:w,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in M)){try{M.message+=`
2
+ import{MO as y,PO as C}from"./chunk-f83wv08n.js";var h0=y((c$)=>{c$.HttpAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpAuthLocation||(c$.HttpAuthLocation={}));c$.HttpApiKeyAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpApiKeyAuthLocation||(c$.HttpApiKeyAuthLocation={}));c$.EndpointURLScheme=void 0;(function(h){h.HTTP="http",h.HTTPS="https"})(c$.EndpointURLScheme||(c$.EndpointURLScheme={}));c$.AlgorithmId=void 0;(function(h){h.MD5="md5",h.CRC32="crc32",h.CRC32C="crc32c",h.SHA1="sha1",h.SHA256="sha256"})(c$.AlgorithmId||(c$.AlgorithmId={}));var F$=(h)=>{let $=[];if(h.sha256!==void 0)$.push({algorithmId:()=>c$.AlgorithmId.SHA256,checksumConstructor:()=>h.sha256});if(h.md5!=null)$.push({algorithmId:()=>c$.AlgorithmId.MD5,checksumConstructor:()=>h.md5});return{addChecksumAlgorithm(T){$.push(T)},checksumAlgorithms(){return $}}},s$=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{$[T.algorithmId()]=T.checksumConstructor()}),$},S$=(h)=>{return F$(h)},j$=(h)=>{return s$(h)};c$.FieldPosition=void 0;(function(h){h[h.HEADER=0]="HEADER",h[h.TRAILER=1]="TRAILER"})(c$.FieldPosition||(c$.FieldPosition={}));var C$="__smithy_context";c$.IniSectionType=void 0;(function(h){h.PROFILE="profile",h.SSO_SESSION="sso-session",h.SERVICES="services"})(c$.IniSectionType||(c$.IniSectionType={}));c$.RequestHandlerProtocol=void 0;(function(h){h.HTTP_0_9="http/0.9",h.HTTP_1_0="http/1.0",h.TDS_8_0="tds/8.0"})(c$.RequestHandlerProtocol||(c$.RequestHandlerProtocol={}));c$.SMITHY_CONTEXT_KEY=C$;c$.getDefaultClientConfiguration=S$;c$.resolveDefaultRuntimeConfig=j$});var m=y((r$)=>{var c1=h0(),p$=(h)=>h[c1.SMITHY_CONTEXT_KEY]||(h[c1.SMITHY_CONTEXT_KEY]={});class Z0{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let $=new Z0({...h,headers:{...h.headers}});if($.query)$.query=g$($.query);return $}static isInstance(h){if(!h)return!1;let $=h;return"method"in $&&"protocol"in $&&"hostname"in $&&"path"in $&&typeof $.query==="object"&&typeof $.headers==="object"}clone(){return Z0.clone(this)}}function g$(h){return Object.keys(h).reduce(($,T)=>{let P=h[T];return{...$,[T]:Array.isArray(P)?[...P]:P}},{})}class b1{statusCode;reason;headers;body;constructor(h){this.statusCode=h.statusCode,this.reason=h.reason,this.headers=h.headers||{},this.body=h.body}static isInstance(h){if(!h)return!1;let $=h;return typeof $.statusCode==="number"&&typeof $.headers==="object"}}var m$=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),y1=(h,$=!1)=>{if(!$)return m$.test(h);let T=h.split(".");for(let P of T)if(!y1(P))return!1;return!0};function d$(h){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(h)}var v$=(h)=>{if(typeof h==="function")return h;let $=Promise.resolve(h);return()=>$};function k1(h){let $={};if(h=h.replace(/^\?/,""),h)for(let T of h.split("&")){let[P,w=null]=T.split("=");if(P=decodeURIComponent(P),w)w=decodeURIComponent(w);if(!(P in $))$[P]=w;else if(Array.isArray($[P]))$[P].push(w);else $[P]=[$[P],w]}return $}var R0=(h)=>{if(typeof h==="string")return R0(new URL(h));let{hostname:$,pathname:T,port:P,protocol:w,search:I}=h,A;if(I)A=k1(I);return{hostname:$,port:P?parseInt(P):void 0,protocol:w,path:T,query:A}},t$=(h)=>{if(typeof h==="object"){if("url"in h){let $=R0(h.url);if(h.headers){$.headers={};for(let T in h.headers)$.headers[T.toLowerCase()]=h.headers[T].join(", ")}return $}return h}return R0(h)};r$.HttpRequest=Z0;r$.HttpResponse=b1;r$.getSmithyContext=p$;r$.isValidHostLabel=y1;r$.isValidHostname=d$;r$.normalizeProvider=v$;r$.parseQueryString=k1;r$.parseUrl=R0;r$.toEndpointV1=t$});var d1=y((GT)=>{var H0=m(),q0=(h)=>{if(typeof h==="function")return h();return h},o0=(h,$,T,P,w)=>({name:$,namespace:h,traits:T,input:P,output:w}),TT=(h)=>($,T)=>async(P)=>{let{response:w}=await $(P),{operationSchema:I}=H0.getSmithyContext(T),[,A,U,_,f,Y]=I??[];try{let M=await h.protocol.deserializeResponse(o0(A,U,_,f,Y),{...h,...T},w);return{response:w,output:M}}catch(M){if(Object.defineProperty(M,"$response",{value:w,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in M)){try{M.message+=`
3
3
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(G){if(!T.logger||T.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else T.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof M.$responseBodyText<"u"){if(M.$response)M.$response.body=M.$responseBodyText}try{if(H0.HttpResponse.isInstance(w)){let{headers:G={},statusCode:V}=w,Z=Object.entries(G);M.$metadata={httpStatusCode:V,requestId:i0(/^x-[\w-]+-request-?id$/,Z),extendedRequestId:i0(/^x-[\w-]+-id-2$/,Z),cfId:i0(/^x-[\w-]+-cf-id$/,Z)}}}catch(G){}}throw M}},i0=(h,$)=>{return($.find(([T])=>{return T.match(h)})||[void 0,void 0])[1]},PT=(h)=>($,T)=>async(P)=>{let{operationSchema:w}=H0.getSmithyContext(T),[,I,A,U,_,f]=w??[],Y=T.endpointV2?async()=>H0.toEndpointV1(T.endpointV2):h.endpoint,M=await h.protocol.serializeRequest(o0(I,A,U,_,f),P.input,{...h,...T,endpoint:Y});return $({...P,request:M})},p1={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},g1={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wT(h){return{applyToStack:($)=>{$.add(PT(h),g1),$.add(TT(h),p1),h.protocol.setSerdeContext(h)}}}class E{name;namespace;traits;static assign(h,$){return Object.assign(h,$)}static[Symbol.hasInstance](h){let $=this.prototype.isPrototypeOf(h);if(!$&&typeof h==="object"&&h!==null)return h.symbol===this.symbol;return $}getName(){return this.namespace+"#"+this.name}}class x0 extends E{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=x0.symbol}var IT=(h,$,T,P)=>E.assign(new x0,{name:$,namespace:h,traits:T,valueSchema:P});class W0 extends E{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=W0.symbol}var AT=(h,$,T,P,w)=>E.assign(new W0,{name:$,namespace:h,traits:T,keySchema:P,valueSchema:w});class D0 extends E{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=D0.symbol}var UT=(h,$,T,P,w)=>E.assign(new D0,{name:$,namespace:h,traits:T,input:P,output:w});class w0 extends E{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=w0.symbol}var _T=(h,$,T,P,w)=>E.assign(new w0,{name:$,namespace:h,traits:T,memberNames:P,memberList:w});class L0 extends w0{static symbol=Symbol.for("@smithy/err");ctor;symbol=L0.symbol}var fT=(h,$,T,P,w,I)=>E.assign(new L0,{name:$,namespace:h,traits:T,memberNames:P,memberList:w,ctor:null}),O0=[];function P0(h){if(typeof h==="object")return h;if(h=h|0,O0[h])return O0[h];let $={},T=0;for(let P of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if((h>>T++&1)===1)$[P]=1;return O0[h]=$}var $0={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},E0=[],N0={};class B{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=B.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(h,$){this.ref=h,this.memberName=$;let T=[],P=h,w=h;this._isMemberSchema=!1;while(l0(P))T.push(P[1]),P=P[0],w=q0(P),this._isMemberSchema=!0;if(T.length>0){this.memberTraits={};for(let I=T.length-1;I>=0;--I){let A=T[I];Object.assign(this.memberTraits,P0(A))}}else this.memberTraits=0;if(w instanceof B){let I=this.memberTraits;Object.assign(this,w),this.memberTraits=Object.assign({},I,w.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=$??w.memberName;return}if(this.schema=q0(w),m1(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(w),this.traits=0;if(this._isMemberSchema&&!$)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](h){let $=this.prototype.isPrototypeOf(h);if(!$&&typeof h==="object"&&h!==null)return h.symbol===this.symbol;return $}static of(h){let $=typeof h==="function"||typeof h==="object"&&h!==null;if(typeof h==="number"){if(E0[h])return E0[h]}else if(typeof h==="string"){if(N0[h])return N0[h]}else if($){if(h[$0.ns])return h[$0.ns]}let T=q0(h);if(T instanceof B)return T;if(l0(T)){let[w,I]=T;if(w instanceof B)return Object.assign(w.getMergedTraits(),P0(I)),w;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(h,null,2)}.`)}let P=new B(T);if($)return h[$0.ns]=P;if(typeof T==="string")return N0[T]=P;if(typeof T==="number")return E0[T]=P;return P}getSchema(){let h=this.schema;if(Array.isArray(h)&&h[0]===0)return h[4];return h}getName(h=!1){let{name:$}=this;return!h&&$&&$.includes("#")?$.split("#")[1]:$||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let h=this.getSchema();return typeof h==="number"?h>=64&&h<128:h[0]===1}isMapSchema(){let h=this.getSchema();return typeof h==="number"?h>=128&&h<=255:h[0]===2}isStructSchema(){let h=this.getSchema();if(typeof h!=="object")return!1;let $=h[0];return $===3||$===-3||$===4}isUnionSchema(){let h=this.getSchema();if(typeof h!=="object")return!1;return h[0]===4}isBlobSchema(){let h=this.getSchema();return h===21||h===42}isTimestampSchema(){let h=this.getSchema();return typeof h==="number"&&h>=4&&h<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:h}=this.getMergedTraits();return!!h||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return P0(this.memberTraits)}getOwnTraits(){return P0(this.traits)}getKeySchema(){let[h,$]=[this.isDocumentSchema(),this.isMapSchema()];if(!h&&!$)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let T=this.getSchema(),P=h?15:T[4]??0;return T0([P,0],"key")}getValueSchema(){let h=this.getSchema(),[$,T,P]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],w=typeof h==="number"?63&h:h&&typeof h==="object"&&(T||P)?h[3+h[0]]:$?15:void 0;if(w!=null)return T0([w,0],T?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(h){let $=this.getSchema();if(this.isStructSchema()&&$[4].includes(h)){let T=$[4].indexOf(h),P=$[5][T];return T0(l0(P)?P:[P,0],h)}if(this.isDocumentSchema())return T0([15,0],h);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${h}.`)}getMemberSchemas(){let h={};try{for(let[$,T]of this.structIterator())h[$]=T}catch($){}return h}getEventStreamMember(){if(this.isStructSchema()){for(let[h,$]of this.structIterator())if($.isStreaming()&&$.isStructSchema())return h}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let h=this.getSchema(),$=h[4].length,T=h[$0.it];if(T&&$===T.length){yield*T;return}T=Array($);for(let P=0;P<$;++P){let w=h[4][P],I=T0([h[5][P],0],w);yield T[P]=[w,I]}h[$0.it]=T}}function T0(h,$){if(h instanceof B)return Object.assign(h,{memberName:$,_isMemberSchema:!0});return new B(h,$)}var l0=(h)=>Array.isArray(h)&&h.length===2,m1=(h)=>Array.isArray(h)&&h.length>=5;class I0 extends E{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=I0.symbol}var MT=(h,$,T,P)=>E.assign(new I0,{name:$,namespace:h,traits:P,schemaRef:T}),YT=(h,$,T,P)=>E.assign(new I0,{name:$,namespace:h,traits:T,schemaRef:P}),XT={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class K{namespace;schemas;exceptions;static registries=new Map;constructor(h,$=new Map,T=new Map){this.namespace=h,this.schemas=$,this.exceptions=T}static for(h){if(!K.registries.has(h))K.registries.set(h,new K(h));return K.registries.get(h)}copyFrom(h){let{schemas:$,exceptions:T}=this;for(let[P,w]of h.schemas)if(!$.has(P))$.set(P,w);for(let[P,w]of h.exceptions)if(!T.has(P))T.set(P,w)}register(h,$){let T=this.normalizeShapeId(h);for(let P of[this,K.for(T.split("#")[0])])P.schemas.set(T,$)}getSchema(h){let $=this.normalizeShapeId(h);if(!this.schemas.has($)){if(!h.includes("#")){let T="#"+h,P=[];for(let[w,I]of this.schemas.entries())if(w.endsWith(T))P.push(I);if(P.length===1)return P[0]}throw Error(`@smithy/core/schema - schema not found for ${$}`)}return this.schemas.get($)}registerError(h,$){let T=h,P=T[1];for(let w of[this,K.for(P)])w.schemas.set(P+"#"+T[2],T),w.exceptions.set(T,$)}getErrorCtor(h){let $=h;if(this.exceptions.has($))return this.exceptions.get($);return K.for($[1]).exceptions.get($)}getBaseException(){for(let h of this.exceptions.keys())if(Array.isArray(h)){let[,$,T]=h,P=$+"#"+T;if(P.startsWith("smithy.ts.sdk.synthetic.")&&P.endsWith("ServiceException"))return h}return}find(h){for(let $ of this.schemas.values())if(h($))return $;return}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(h){if(h.includes("#"))return h;return this.namespace+"#"+h}}GT.ErrorSchema=L0;GT.ListSchema=x0;GT.MapSchema=W0;GT.NormalizedSchema=B;GT.OperationSchema=D0;GT.SCHEMA=XT;GT.Schema=E;GT.SimpleSchema=I0;GT.StructureSchema=w0;GT.TypeRegistry=K;GT.deref=q0;GT.deserializerMiddlewareOption=p1;GT.error=fT;GT.getSchemaSerdePlugin=wT;GT.isStaticSchema=m1;GT.list=IT;GT.map=AT;GT.op=UT;GT.operation=o0;GT.serializerMiddlewareOption=g1;GT.sim=MT;GT.simAdapter=YT;GT.simpleSchemaCacheN=E0;GT.simpleSchemaCacheS=N0;GT.struct=_T;GT.traitsCache=O0;GT.translateTraits=P0});var $1=y((QP)=>{var u1=m(),A0=h0(),gT=d1(),k=(h,$)=>{let T=[];if(h)T.push(h);if($)for(let P of $)T.push(P);return T},j=(h,$)=>{return`${h||"anonymous"}${$&&$.length>0?` (a.k.a. ${$.join(",")})`:""}`},U0=()=>{let h=[],$=[],T=!1,P=new Set,w=(M)=>M.sort((X,G)=>v1[G.step]-v1[X.step]||t1[G.priority||"normal"]-t1[X.priority||"normal"]),I=(M)=>{let X=!1,G=(V)=>{let Z=k(V.name,V.aliases);if(Z.includes(M)){X=!0;for(let J of Z)P.delete(J);return!1}return!0};return h=h.filter(G),$=$.filter(G),X},A=(M)=>{let X=!1,G=(V)=>{if(V.middleware===M){X=!0;for(let Z of k(V.name,V.aliases))P.delete(Z);return!1}return!0};return h=h.filter(G),$=$.filter(G),X},U=(M)=>{return h.forEach((X)=>{M.add(X.middleware,{...X})}),$.forEach((X)=>{M.addRelativeTo(X.middleware,{...X})}),M.identifyOnResolve?.(Y.identifyOnResolve()),M},_=(M)=>{let X=[];return M.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)X.push(G);else X.push(..._(G))}),X.push(M),M.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)X.push(G);else X.push(..._(G))}),X},f=(M=!1)=>{let X=[],G=[],V={};return h.forEach((J)=>{let Q={...J,before:[],after:[]};for(let R of k(Q.name,Q.aliases))V[R]=Q;X.push(Q)}),$.forEach((J)=>{let Q={...J,before:[],after:[]};for(let R of k(Q.name,Q.aliases))V[R]=Q;G.push(Q)}),G.forEach((J)=>{if(J.toMiddleware){let Q=V[J.toMiddleware];if(Q===void 0){if(M)return;throw Error(`${J.toMiddleware} is not found when adding ${j(J.name,J.aliases)} middleware ${J.relation} ${J.toMiddleware}`)}if(J.relation==="after")Q.after.push(J);if(J.relation==="before")Q.before.push(J)}}),w(X).map(_).reduce((J,Q)=>{return J.push(...Q),J},[])},Y={add:(M,X={})=>{let{name:G,override:V,aliases:Z}=X,J={step:"initialize",priority:"normal",middleware:M,...X},Q=k(G,Z);if(Q.length>0){if(Q.some((R)=>P.has(R))){if(!V)throw Error(`Duplicate middleware name '${j(G,Z)}'`);for(let R of Q){let H=h.findIndex((a)=>a.name===R||a.aliases?.some((m0)=>m0===R));if(H===-1)continue;let N=h[H];if(N.step!==J.step||J.priority!==N.priority)throw Error(`"${j(N.name,N.aliases)}" middleware with ${N.priority} priority in ${N.step} step cannot be overridden by "${j(G,Z)}" middleware with ${J.priority} priority in ${J.step} step.`);h.splice(H,1)}}for(let R of Q)P.add(R)}h.push(J)},addRelativeTo:(M,X)=>{let{name:G,override:V,aliases:Z}=X,J={middleware:M,...X},Q=k(G,Z);if(Q.length>0){if(Q.some((R)=>P.has(R))){if(!V)throw Error(`Duplicate middleware name '${j(G,Z)}'`);for(let R of Q){let H=$.findIndex((a)=>a.name===R||a.aliases?.some((m0)=>m0===R));if(H===-1)continue;let N=$[H];if(N.toMiddleware!==J.toMiddleware||N.relation!==J.relation)throw Error(`"${j(N.name,N.aliases)}" middleware ${N.relation} "${N.toMiddleware}" middleware cannot be overridden by "${j(G,Z)}" middleware ${J.relation} "${J.toMiddleware}" middleware.`);$.splice(H,1)}}for(let R of Q)P.add(R)}$.push(J)},clone:()=>U(U0()),use:(M)=>{M.applyToStack(Y)},remove:(M)=>{if(typeof M==="string")return I(M);else return A(M)},removeByTag:(M)=>{let X=!1,G=(V)=>{let{tags:Z,name:J,aliases:Q}=V;if(Z&&Z.includes(M)){let R=k(J,Q);for(let H of R)P.delete(H);return X=!0,!1}return!0};return h=h.filter(G),$=$.filter(G),X},concat:(M)=>{let X=U(U0());return X.use(M),X.identifyOnResolve(T||X.identifyOnResolve()||(M.identifyOnResolve?.()??!1)),X},applyToStack:U,identify:()=>{return f(!0).map((M)=>{let X=M.step??M.relation+" "+M.toMiddleware;return j(M.name,M.aliases)+" - "+X})},identifyOnResolve(M){if(typeof M==="boolean")T=M;return T},resolve:(M,X)=>{for(let G of f().map((V)=>V.middleware).reverse())M=G(M,X);if(T)console.log(Y.identify());return M}};return Y},v1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},t1={high:3,normal:2,low:1},mT=(h)=>()=>{throw Error(h)},dT=(h)=>()=>Promise.reject(h),K0=()=>{let h=new WeakSet;return($,T)=>{if(typeof T==="object"&&T!==null){if(h.has(T))return"[Circular]";h.add(T)}return T}},vT=(h)=>{return new Promise(($)=>setTimeout($,h*1000))},i1={minDelay:2,maxDelay:120};QP.WaiterState=void 0;(function(h){h.ABORTED="ABORTED",h.FAILURE="FAILURE",h.SUCCESS="SUCCESS",h.RETRY="RETRY",h.TIMEOUT="TIMEOUT"})(QP.WaiterState||(QP.WaiterState={}));var tT=(h)=>{if(h.state===QP.WaiterState.ABORTED){let $=Error(`${JSON.stringify({...h,reason:"Request was aborted"},K0())}`);throw $.name="AbortError",$}else if(h.state===QP.WaiterState.TIMEOUT){let $=Error(`${JSON.stringify({...h,reason:"Waiter has timed out"},K0())}`);throw $.name="TimeoutError",$}else if(h.state!==QP.WaiterState.SUCCESS)throw Error(`${JSON.stringify(h,K0())}`);return h},rT=async({minDelay:h,maxDelay:$,maxWaitTime:T,abortController:P,client:w,abortSignal:I},A,U)=>{let _={},[f,Y]=[h*1000,$*1000],M=0,X=Date.now()+T*1000,G=Date.now()+60000,V=!1;while(!0){if(M>0){let Q=iT(f,Y,M,X);if(P?.signal?.aborted||I?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:QP.WaiterState.ABORTED,observedResponses:_};if(Date.now()+Q>X)return{state:QP.WaiterState.TIMEOUT,observedResponses:_};await vT(Q/1000)}let{state:Z,reason:J}=await U(w,A);if(J){let Q=uT(J);_[Q]|=0,_[Q]+=1}if(Z!==QP.WaiterState.RETRY)return{state:Z,reason:J,final:J,observedResponses:_};if(M+=1,!V&&Date.now()>=G)nT(_,w),V=!0}},nT=(h={},$)=>{let T=Object.keys(h),P=0;for(let A of T){let U=h[A]|0;if(A.startsWith("403:"))P+=U}let w=$?.config?.logger,I=typeof w?.warn==="function"&&!w.constructor?.name?.includes?.("NoOpLogger")?w:console;if(P>=3||T[T.length-1]?.startsWith("403:"))I.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},uT=(h)=>{let $=h?.$response?.statusCode??h?.$metadata?.httpStatusCode;if(h?.$responseBodyText)return`${$?$+": ":""}Deserialization error for body: ${h.$responseBodyText}`;if($){if(h?.$response||h?.message)return`${$??"Unknown"}: ${h?.message}`;return`${$}: OK`}return String(h?.message??JSON.stringify(h,K0())??"Unknown")},iT=(h,$,T,P)=>{let w=Math.log($/h)/Math.log(2)+1;if(T>w)return $;let I=h*2**(T-1),A=Math.min(I,$),U=lT(h,A);if(Date.now()+U>P){let _=P-Date.now();return Math.max(0,_-500)}return U},lT=(h,$)=>h+Math.random()*($-h),oT=(h)=>{if(h.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if(h.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if(h.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if(h.maxWaitTime<=h.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${h.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${h.minDelay}] for this waiter`);else if(h.maxDelay<h.minDelay)throw Error(`WaiterConfiguration.maxDelay [${h.maxDelay}] must be greater than WaiterConfiguration.minDelay [${h.minDelay}] for this waiter`)},r1=(h)=>{let $,T=new Promise((P)=>{if($=()=>P({state:QP.WaiterState.ABORTED}),typeof h.addEventListener==="function")h.addEventListener("abort",$);else h.onabort=$});return{clearListener(){if(typeof h.removeEventListener==="function")h.removeEventListener("abort",$)},aborted:T}},aT=async(h,$,T)=>{let P={...i1,...h};oT(P);let w=[rT(P,$,T)],I=[];if(h.abortSignal){let{aborted:A,clearListener:U}=r1(h.abortSignal);I.push(U),w.push(A)}if(h.abortController?.signal){let{aborted:A,clearListener:U}=r1(h.abortController.signal);I.push(U),w.push(A)}return Promise.race(w).then((A)=>{for(let U of I)U();return A})};class l1{config;middlewareStack=U0();initConfig;handlers;constructor(h){this.config=h;let{protocol:$,protocolSettings:T}=h;if(T){if(typeof $==="function")h.protocol=new $(T)}}send(h,$,T){let P=typeof $!=="function"?$:void 0,w=typeof $==="function"?$:T,I=P===void 0&&this.config.cacheMiddleware===!0,A;if(I){if(!this.handlers)this.handlers=new WeakMap;let U=this.handlers;if(U.has(h.constructor))A=U.get(h.constructor);else A=h.resolveMiddleware(this.middlewareStack,this.config,P),U.set(h.constructor,A)}else delete this.handlers,A=h.resolveMiddleware(this.middlewareStack,this.config,P);if(w)A(h).then((U)=>w(null,U.output),(U)=>w(U)).catch(()=>{});else return A(h).then((U)=>U.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var a0="***SensitiveInformation***";function B0(h,$){if($==null)return $;let T=gT.NormalizedSchema.of(h);if(T.getMergedTraits().sensitive)return a0;if(T.isListSchema()){if(!!T.getValueSchema().getMergedTraits().sensitive)return a0}else if(T.isMapSchema()){if(!!T.getKeySchema().getMergedTraits().sensitive||!!T.getValueSchema().getMergedTraits().sensitive)return a0}else if(T.isStructSchema()&&typeof $==="object"){let P=$,w={};for(let[I,A]of T.structIterator())if(P[I]!=null)w[I]=B0(A,P[I]);return w}return $}class h1{middlewareStack=U0();schema;static classBuilder(){return new o1}resolveMiddlewareWithContext(h,$,T,{middlewareFn:P,clientName:w,commandName:I,inputFilterSensitiveLog:A,outputFilterSensitiveLog:U,smithyContext:_,additionalContext:f,CommandCtor:Y}){for(let J of P.bind(this)(Y,h,$,T))this.middlewareStack.use(J);let M=h.concat(this.middlewareStack),{logger:X}=$,G={logger:X,clientName:w,commandName:I,inputFilterSensitiveLog:A,outputFilterSensitiveLog:U,[A0.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...f},{requestHandler:V}=$,Z=T??{};if(_.eventStream)Z={isEventStream:!0,...Z};return M.resolve((J)=>V.handle(J.request,Z),G)}}class o1{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(h){this._init=h}ep(h){return this._ep=h,this}m(h){return this._middlewareFn=h,this}s(h,$,T={}){return this._smithyContext={service:h,operation:$,...T},this}c(h={}){return this._additionalContext=h,this}n(h,$){return this._clientName=h,this._commandName=$,this}f(h=(T)=>T,$=(T)=>T){return this._inputFilterSensitiveLog=h,this._outputFilterSensitiveLog=$,this}ser(h){return this._serializer=h,this}de(h){return this._deserializer=h,this}sc(h){return this._operationSchema=h,this._smithyContext.operationSchema=h,this}build(){let h=this,$;return $=class extends h1{input;static getEndpointParameterInstructions(){return h._ep}constructor(...[T]){super();this.input=T??{},h._init(this),this.schema=h._operationSchema}resolveMiddleware(T,P,w){let I=h._operationSchema,A=I?.[4]??I?.input,U=I?.[5]??I?.output;return this.resolveMiddlewareWithContext(T,P,w,{CommandCtor:$,middlewareFn:h._middlewareFn,clientName:h._clientName,commandName:h._commandName,inputFilterSensitiveLog:h._inputFilterSensitiveLog??(I?B0.bind(null,A):(_)=>_),outputFilterSensitiveLog:h._outputFilterSensitiveLog??(I?B0.bind(null,U):(_)=>_),smithyContext:h._smithyContext,additionalContext:h._additionalContext})}serialize=h._serializer;deserialize=h._deserializer}}}var eT="***SensitiveInformation***",hP=(h,$,T)=>{for(let[I,A]of Object.entries(h)){let U=async function(f,Y,M){let X=new A(f);if(typeof Y==="function")this.send(X,Y);else if(typeof M==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(X,Y||{},M)}else return this.send(X,Y)},_=(I[0].toLowerCase()+I.slice(1)).replace(/Command$/,"");$.prototype[_]=U}let{paginators:P={},waiters:w={}}=T??{};for(let[I,A]of Object.entries(P))if($.prototype[I]===void 0)$.prototype[I]=function(U={},_,...f){return A({..._,client:this},U,...f)};for(let[I,A]of Object.entries(w))if($.prototype[I]===void 0)$.prototype[I]=async function(U={},_,...f){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return A({...Y,client:this},U,...f)}};class d extends Error{$fault;$response;$retryable;$metadata;constructor(h){super(h.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=h.name,this.$fault=h.$fault,this.$metadata=h.$metadata}static isInstance(h){if(!h)return!1;let $=h;return d.prototype.isPrototypeOf($)||Boolean($.$fault)&&Boolean($.$metadata)&&($.$fault==="client"||$.$fault==="server")}static[Symbol.hasInstance](h){if(!h)return!1;let $=h;if(this===d)return d.isInstance(h);if(d.isInstance(h)){if($.name&&this.name)return this.prototype.isPrototypeOf(h)||$.name===this.name;return this.prototype.isPrototypeOf(h)}return!1}}var a1=(h,$={})=>{Object.entries($).filter(([,P])=>P!==void 0).forEach(([P,w])=>{if(h[P]==null||h[P]==="")h[P]=w});let T=h.message||h.Message||"UnknownError";return h.message=T,delete h.Message,h},e1=({output:h,parsedBody:$,exceptionCtor:T,errorCode:P})=>{let w=TP(h),I=w.httpStatusCode?w.httpStatusCode+"":void 0,A=new T({name:$?.code||$?.Code||P||I||"UnknownError",$fault:"client",$metadata:w});throw a1(A,$)},$P=(h)=>{return({output:$,parsedBody:T,errorCode:P})=>{e1({output:$,parsedBody:T,exceptionCtor:h,errorCode:P})}},TP=(h)=>({httpStatusCode:h.statusCode,requestId:h.headers["x-amzn-requestid"]??h.headers["x-amzn-request-id"]??h.headers["x-amz-request-id"],extendedRequestId:h.headers["x-amz-id-2"],cfId:h.headers["x-amz-cf-id"]}),PP=(h)=>{switch(h){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},n1=!1,wP=(h)=>{if(h&&!n1&&parseInt(h.substring(1,h.indexOf(".")))<16)n1=!0},hh=Object.values(A0.AlgorithmId),$h=(h)=>{let $=[];for(let T in A0.AlgorithmId){let P=A0.AlgorithmId[T];if(h[P]===void 0)continue;$.push({algorithmId:()=>P,checksumConstructor:()=>h[P]})}for(let[T,P]of Object.entries(h.checksumAlgorithms??{}))$.push({algorithmId:()=>T,checksumConstructor:()=>P});return{addChecksumAlgorithm(T){h.checksumAlgorithms=h.checksumAlgorithms??{};let P=T.algorithmId(),w=T.checksumConstructor();if(hh.includes(P))h.checksumAlgorithms[P.toUpperCase()]=w;else h.checksumAlgorithms[P]=w;$.push(T)},checksumAlgorithms(){return $}}},Th=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{let P=T.algorithmId();if(hh.includes(P))$[P]=T.checksumConstructor()}),$},Ph=(h)=>{return{setRetryStrategy($){h.retryStrategy=$},retryStrategy(){return h.retryStrategy}}},wh=(h)=>{let $={};return $.retryStrategy=h.retryStrategy(),$},Ih=(h)=>{return Object.assign($h(h),Ph(h))},IP=Ih,AP=(h)=>{return Object.assign(Th(h),wh(h))},UP=(h)=>Array.isArray(h)?h:[h],Ah=(h)=>{for(let T in h)if(h.hasOwnProperty(T)&&h[T]["#text"]!==void 0)h[T]=h[T]["#text"];else if(typeof h[T]==="object"&&h[T]!==null)h[T]=Ah(h[T]);return h},_P=(h)=>{return h!=null};class Uh{trace(){}debug(){}info(){}warn(){}error(){}}function _h(h,$,T){let P,w,I;if(typeof $>"u"&&typeof T>"u")P={},I=h;else if(P=h,typeof $==="function")return w=$,I=T,YP(P,w,I);else I=$;for(let A of Object.keys(I)){if(!Array.isArray(I[A])){P[A]=I[A];continue}fh(P,null,I,A)}return P}var fP=(h)=>{let $={};for(let[T,P]of Object.entries(h||{}))$[T]=[,P];return $},MP=(h,$)=>{let T={};for(let P in $)fh(T,h,$,P);return T},YP=(h,$,T)=>{return _h(h,Object.entries(T).reduce((P,[w,I])=>{if(Array.isArray(I))P[w]=I;else if(typeof I==="function")P[w]=[$,I()];else P[w]=[$,I];return P},{}))},fh=(h,$,T,P)=>{if($!==null){let A=T[P];if(typeof A==="function")A=[,A];let[U=XP,_=GP,f=P]=A;if(typeof U==="function"&&U($[f])||typeof U!=="function"&&!!U)h[P]=_($[f]);return}let[w,I]=T[P];if(typeof I==="function"){let A,U=w===void 0&&(A=I())!=null,_=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(U)h[P]=A;else if(_)h[P]=I()}else{let A=w===void 0&&I!=null,U=typeof w==="function"&&!!w(I)||typeof w!=="function"&&!!w;if(A||U)h[P]=I}},XP=(h)=>h!=null,GP=(h)=>h,JP=(h)=>{if(h!==h)return"NaN";switch(h){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return h}},VP=(h)=>h.toISOString().replace(".000Z","Z"),e0=(h)=>{if(h==null)return{};if(Array.isArray(h))return h.filter(($)=>$!=null).map(e0);if(typeof h==="object"){let $={};for(let T of Object.keys(h)){if(h[T]==null)continue;$[T]=e0(h[T])}return $}return h};QP.getSmithyContext=u1.getSmithyContext;QP.normalizeProvider=u1.normalizeProvider;QP.AlgorithmId=A0.AlgorithmId;QP.Client=l1;QP.Command=h1;QP.NoOpLogger=Uh;QP.SENSITIVE_STRING=eT;QP.ServiceException=d;QP._json=e0;QP.checkExceptions=tT;QP.constructStack=U0;QP.convertMap=fP;QP.createAggregatedClient=hP;QP.createWaiter=aT;QP.decorateServiceException=a1;QP.emitWarningIfUnsupportedVersion=wP;QP.getArrayIfSingleItem=UP;QP.getChecksumConfiguration=$h;QP.getDefaultClientConfiguration=IP;QP.getDefaultExtensionConfiguration=Ih;QP.getRetryConfiguration=Ph;QP.getValueFromTextNode=Ah;QP.invalidFunction=mT;QP.invalidProvider=dT;QP.isSerializableHeaderValue=_P;QP.loadConfigsForDefaultMode=PP;QP.map=_h;QP.resolveChecksumRuntimeConfig=Th;QP.resolveDefaultRuntimeConfig=AP;QP.resolveRetryRuntimeConfig=wh;QP.schemaLogFilter=B0;QP.serializeDateTime=VP;QP.serializeFloat=JP;QP.take=MP;QP.throwDefaultError=e1;QP.waiterServiceDefaults=i1;QP.withBaseException=$P});var Bh=y((lw)=>{var hw=C("os"),v=C("path"),$w=C("crypto"),Vh=C("fs/promises"),z0=h0(),F0=$1(),Tw=m();class t extends Error{name="ProviderError";tryNextLink;constructor(h,$=!0){let T,P=!0;if(typeof $==="boolean")T=void 0,P=$;else if($!=null&&typeof $==="object")T=$.logger,P=$.tryNextLink??!0;super(h);this.tryNextLink=P,Object.setPrototypeOf(this,t.prototype),T?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${h}`)}static from(h,$=!0){return Object.assign(new this(h.message,$),h)}}class _0 extends t{name="CredentialsProviderError";constructor(h,$=!0){super(h,$);Object.setPrototypeOf(this,_0.prototype)}}class A1 extends t{name="TokenProviderError";constructor(h,$=!0){super(h,$);Object.setPrototypeOf(this,A1.prototype)}}var Qh=(...h)=>async()=>{if(h.length===0)throw new t("No providers in chain");let $;for(let T of h)try{return await T()}catch(P){if($=P,P?.tryNextLink)continue;throw P}throw $},Zh=(h)=>()=>Promise.resolve(h),U1=(h,$,T)=>{let P,w,I,A=!1,U=async()=>{if(!w)w=h();try{P=await w,I=!0,A=!1}finally{w=void 0}return P};if($===void 0)return async(_)=>{if(!I||_?.forceRefresh)P=await U();return P};return async(_)=>{if(!I||_?.forceRefresh)P=await U();if(A)return P;if(T&&!T(P))return A=!0,P;if($(P))return await U(),P;return P}},z=(h,$,T)=>{if(!($ in h))return;if(h[$]==="true")return!0;if(h[$]==="false")return!1;throw Error(`Cannot load ${T} "${$}". Expected "true" or "false", got ${h[$]}.`)},Pw=(h,$,T)=>{if(!($ in h))return;let P=parseInt(h[$],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${T} '${$}'. Expected number, got '${h[$]}'.`);return P};lw.SelectorType=void 0;(function(h){h.ENV="env",h.CONFIG="shared config entry"})(lw.SelectorType||(lw.SelectorType={}));var T1={},ww=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f0=()=>{let{HOME:h,USERPROFILE:$,HOMEPATH:T,HOMEDRIVE:P=`C:${v.sep}`}=process.env;if(h)return h;if($)return $;if(T)return`${P}${T}`;let w=ww();if(!T1[w])T1[w]=hw.homedir();return T1[w]},Rh="AWS_PROFILE",qh="default",Oh=(h)=>h.profile||process.env[Rh]||qh,Eh=(h)=>{let T=$w.createHash("sha1").update(h).digest("hex");return v.join(f0(),".aws","sso","cache",`${T}.json`)},s0={},Iw=async(h)=>{if(s0[h])return s0[h];let $=Eh(h),T=await Vh.readFile($,"utf8");return JSON.parse(T)},p=".",Aw=(h)=>Object.entries(h).filter(([$])=>{let T=$.indexOf(p);if(T===-1)return!1;return Object.values(z0.IniSectionType).includes($.substring(0,T))}).reduce(($,[T,P])=>{let w=T.indexOf(p),I=T.substring(0,w)===z0.IniSectionType.PROFILE?T.substring(w+1):T;return $[I]=P,$},{...h.default&&{default:h.default}}),Uw="AWS_CONFIG_FILE",Nh=()=>process.env[Uw]||v.join(f0(),".aws","config"),_w="AWS_SHARED_CREDENTIALS_FILE",fw=()=>process.env[_w]||v.join(f0(),".aws","credentials"),Mw=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Yw=["__proto__","profile __proto__"],w1=(h)=>{let $={},T,P;for(let w of h.split(/\r?\n/)){let I=w.split(/(^|\s)[;#]/)[0].trim();if(I[0]==="["&&I[I.length-1]==="]"){T=void 0,P=void 0;let U=I.substring(1,I.length-1),_=Mw.exec(U);if(_){let[,f,,Y]=_;if(Object.values(z0.IniSectionType).includes(f))T=[f,Y].join(p)}else T=U;if(Yw.includes(U))throw Error(`Found invalid profile name "${U}"`)}else if(T){let U=I.indexOf("=");if(![0,-1].includes(U)){let[_,f]=[I.substring(0,U).trim(),I.substring(U+1).trim()];if(f==="")P=_;else{if(P&&w.trimStart()===w)P=void 0;$[T]=$[T]||{};let Y=P?[P,_].join(p):_;$[T][Y]=f}}}}return $},P1={},S0={},j0=(h,$)=>{if(S0[h]!==void 0)return S0[h];if(!P1[h]||$?.ignoreCache)P1[h]=Vh.readFile(h,"utf8");return P1[h]},Mh=()=>({}),_1=async(h={})=>{let{filepath:$=fw(),configFilepath:T=Nh()}=h,P=f0(),w="~/",I=$;if($.startsWith("~/"))I=v.join(P,$.slice(2));let A=T;if(T.startsWith("~/"))A=v.join(P,T.slice(2));let U=await Promise.all([j0(A,{ignoreCache:h.ignoreCache}).then(w1).then(Aw).catch(Mh),j0(I,{ignoreCache:h.ignoreCache}).then(w1).catch(Mh)]);return{configFile:U[0],credentialsFile:U[1]}},Xw=(h)=>Object.entries(h).filter(([$])=>$.startsWith(z0.IniSectionType.SSO_SESSION+p)).reduce(($,[T,P])=>({...$,[T.substring(T.indexOf(p)+1)]:P}),{}),Gw=()=>({}),Jw=async(h={})=>j0(h.configFilepath??Nh()).then(w1).then(Xw).catch(Gw),Vw=(...h)=>{let $={};for(let T of h)for(let[P,w]of Object.entries(T))if($[P]!==void 0)Object.assign($[P],w);else $[P]=w;return $},Qw=async(h)=>{let $=await _1(h);return Vw($.configFile,$.credentialsFile)},Zw={getFileRecord(){return S0},interceptFile(h,$){S0[h]=Promise.resolve($)},getTokenRecord(){return s0},interceptToken(h,$){s0[h]=$}};function Hh(h){try{let $=new Set(Array.from(h.match(/([A-Z_]){3,}/g)??[]));return $.delete("CONFIG"),$.delete("CONFIG_PREFIX_SEPARATOR"),$.delete("ENV"),[...$].join(", ")}catch($){return h}}var Rw=(h,$)=>async()=>{try{let T=h(process.env,$);if(T===void 0)throw Error();return T}catch(T){throw new _0(T.message||`Not found in ENV: ${Hh(h.toString())}`,{logger:$?.logger})}},qw=(h,{preferredFile:$="config",...T}={})=>async()=>{let P=Oh(T),{configFile:w,credentialsFile:I}=await _1(T),A=I[P]||{},U=w[P]||{},_=$==="config"?{...A,...U}:{...U,...A};try{let Y=h(_,$==="config"?w:I);if(Y===void 0)throw Error();return Y}catch(f){throw new _0(f.message||`Not found in config files w/ profile [${P}]: ${Hh(h.toString())}`,{logger:T.logger})}},Ow=(h)=>typeof h==="function",xh=(h)=>Ow(h)?async()=>await h():Zh(h),I1=({environmentVariableSelector:h,configFileSelector:$,default:T},P={})=>{let{signingName:w,logger:I}=P;return U1(Qh(Rw(h,{signingName:w,logger:I}),qw($,P),xh(T)))},f1="AWS_USE_DUALSTACK_ENDPOINT",M1="use_dualstack_endpoint",Ew=!1,Nw={environmentVariableSelector:(h)=>z(h,f1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,M1,lw.SelectorType.CONFIG),default:!1},Hw={environmentVariableSelector:(h)=>z(h,f1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,M1,lw.SelectorType.CONFIG),default:void 0},Y1="AWS_USE_FIPS_ENDPOINT",X1="use_fips_endpoint",xw=!1,Ww={environmentVariableSelector:(h)=>z(h,Y1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,X1,lw.SelectorType.CONFIG),default:!1},Dw={environmentVariableSelector:(h)=>z(h,Y1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,X1,lw.SelectorType.CONFIG),default:void 0},Lw=(h)=>{let{tls:$,endpoint:T,urlParser:P,useDualstackEndpoint:w}=h;return Object.assign(h,{tls:$??!0,endpoint:F0.normalizeProvider(typeof T==="string"?P(T):T),isCustomEndpoint:!0,useDualstackEndpoint:F0.normalizeProvider(w??!1)})},Kw=async(h)=>{let{tls:$=!0}=h,T=await h.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(T))throw Error("Invalid region in client config");let w=await h.useDualstackEndpoint(),I=await h.useFipsEndpoint(),{hostname:A}=await h.regionInfoProvider(T,{useDualstackEndpoint:w,useFipsEndpoint:I})??{};if(!A)throw Error("Cannot resolve hostname from client config");return h.urlParser(`${$?"https:":"http:"}//${A}`)},Bw=(h)=>{let $=F0.normalizeProvider(h.useDualstackEndpoint??!1),{endpoint:T,useFipsEndpoint:P,urlParser:w,tls:I}=h;return Object.assign(h,{tls:I??!0,endpoint:T?F0.normalizeProvider(typeof T==="string"?w(T):T):()=>Kw({...h,useDualstackEndpoint:$,useFipsEndpoint:P}),isCustomEndpoint:!!T,useDualstackEndpoint:$})},Wh="AWS_REGION",Dh="region",Lh={environmentVariableSelector:(h)=>h[Wh],configFileSelector:(h)=>h[Dh],default:()=>{throw Error("Region is missing")}},zw={preferredFile:"credentials"},Yh=new Set,Fw=(h,$=Tw.isValidHostLabel)=>{if(!Yh.has(h)&&!$(h))if(h==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${h}" is not a valid hostname component.`);else Yh.add(h)},Kh=(h)=>typeof h==="string"&&(h.startsWith("fips-")||h.endsWith("-fips")),sw=(h)=>Kh(h)?["fips-aws-global","aws-fips"].includes(h)?"us-east-1":h.replace(/fips-(dkr-|prod-)?|-fips/,""):h,Sw=(h)=>{let{region:$,useFipsEndpoint:T}=h;if(!$)throw Error("Region is missing");return Object.assign(h,{region:async()=>{let P=typeof $==="function"?await $():$,w=sw(P);return Fw(w),w},useFipsEndpoint:async()=>{let P=typeof $==="string"?$:await $();if(Kh(P))return!0;return typeof T!=="function"?Promise.resolve(!!T):T()}})},Xh=(h=[],{useFipsEndpoint:$,useDualstackEndpoint:T})=>h.find(({tags:P})=>$===P.includes("fips")&&T===P.includes("dualstack"))?.hostname,jw=(h,{regionHostname:$,partitionHostname:T})=>$?$:T?T.replace("{region}",h):void 0,Cw=(h,{partitionHash:$})=>Object.keys($||{}).find((T)=>$[T].regions.includes(h))??"aws",cw=(h,{signingRegion:$,regionRegex:T,useFipsEndpoint:P})=>{if($)return $;else if(P){let w=T.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),I=h.match(w);if(I)return I[0].slice(1,-1)}},bw=(h,{useFipsEndpoint:$=!1,useDualstackEndpoint:T=!1,signingService:P,regionHash:w,partitionHash:I})=>{let A=Cw(h,{partitionHash:I}),U=h in w?h:I[A]?.endpoint??h,_={useFipsEndpoint:$,useDualstackEndpoint:T},f=Xh(w[U]?.variants,_),Y=Xh(I[A]?.variants,_),M=jw(U,{regionHostname:f,partitionHostname:Y});if(M===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:U,useFipsEndpoint:$,useDualstackEndpoint:T}}`);let X=cw(M,{signingRegion:w[U]?.signingRegion,regionRegex:I[A].regionRegex,useFipsEndpoint:$});return{partition:A,signingService:P,hostname:M,...X&&{signingRegion:X},...w[U]?.signingService&&{signingService:w[U].signingService}}},yw="AWS_EXECUTION_ENV",Gh="AWS_REGION",Jh="AWS_DEFAULT_REGION",kw="AWS_EC2_METADATA_DISABLED",pw=["in-region","cross-region","mobile","standard","legacy"],gw="/latest/meta-data/placement/region",mw="AWS_DEFAULTS_MODE",dw="defaults_mode",vw={environmentVariableSelector:(h)=>{return h[mw]},configFileSelector:(h)=>{return h[dw]},default:"legacy"},tw=({region:h=I1(Lh),defaultsMode:$=I1(vw)}={})=>U1(async()=>{let T=typeof $==="function"?await $():$;switch(T?.toLowerCase()){case"auto":return rw(h);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(T?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${pw.join(", ")}, got ${T}`)}}),rw=async(h)=>{if(h){let $=typeof h==="function"?await h():h,T=await nw();if(!T)return"standard";if($===T)return"in-region";else return"cross-region"}return"standard"},nw=async()=>{if(process.env[yw]&&(process.env[Gh]||process.env[Jh]))return process.env[Gh]??process.env[Jh];if(!process.env[kw])try{let h=await uw();return(await iw({hostname:h.hostname,path:gw})).toString()}catch(h){}},uw=async()=>{let h=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(h){let T=new URL(h);return{hostname:T.hostname,path:T.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},iw=async({hostname:h,path:$})=>{let{request:T}=await import("http");return new Promise((P,w)=>{let I=T({method:"GET",hostname:h.replace(/^\[(.+)]$/,"$1"),path:$,timeout:1000,signal:AbortSignal.timeout(1000)});I.on("error",(A)=>{w(A),I.destroy()}),I.on("timeout",()=>{w(Error("TimeoutError from instance metadata service")),I.destroy()}),I.on("response",(A)=>{let{statusCode:U=400}=A;if(U<200||300<=U){w(Object.assign(Error("Error response received from instance metadata service"),{statusCode:U})),I.destroy();return}let _=[];A.on("data",(f)=>_.push(f)),A.on("end",()=>{P(Buffer.concat(_)),I.destroy()})}),I.end()})};lw.CONFIG_PREFIX_SEPARATOR=p;lw.CONFIG_USE_DUALSTACK_ENDPOINT=M1;lw.CONFIG_USE_FIPS_ENDPOINT=X1;lw.CredentialsProviderError=_0;lw.DEFAULT_PROFILE=qh;lw.DEFAULT_USE_DUALSTACK_ENDPOINT=Ew;lw.DEFAULT_USE_FIPS_ENDPOINT=xw;lw.ENV_PROFILE=Rh;lw.ENV_USE_DUALSTACK_ENDPOINT=f1;lw.ENV_USE_FIPS_ENDPOINT=Y1;lw.NODE_REGION_CONFIG_FILE_OPTIONS=zw;lw.NODE_REGION_CONFIG_OPTIONS=Lh;lw.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Nw;lw.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Ww;lw.ProviderError=t;lw.REGION_ENV_NAME=Wh;lw.REGION_INI_NAME=Dh;lw.TokenProviderError=A1;lw.booleanSelector=z;lw.chain=Qh;lw.externalDataInterceptor=Zw;lw.fromStatic=xh;lw.fromValue=Zh;lw.getHomeDir=f0;lw.getProfileName=Oh;lw.getRegionInfo=bw;lw.getSSOTokenFilepath=Eh;lw.getSSOTokenFromFile=Iw;lw.loadConfig=I1;lw.loadSharedConfigFiles=_1;lw.loadSsoSessionData=Jw;lw.memoize=U1;lw.nodeDualstackConfigSelectors=Hw;lw.nodeFipsConfigSelectors=Dw;lw.numberSelector=Pw;lw.parseKnownFiles=Qw;lw.readFile=j0;lw.resolveCustomEndpointsConfig=Lw;lw.resolveDefaultsModeConfig=tw;lw.resolveEndpointsConfig=Bw;lw.resolveRegionConfig=Sw});var lh=y((EA)=>{var V1=Bh(),F=m(),yI=$1(),Q1=h0(),zh="AWS_ENDPOINT_URL",Fh="endpoint_url",kI=(h)=>({environmentVariableSelector:($)=>{let T=h.split(" ").map((I)=>I.toUpperCase()),P=$[[zh,...T].join("_")];if(P)return P;let w=$[zh];if(w)return w;return},configFileSelector:($,T)=>{if(T&&$.services){let w=T[["services",$.services].join(V1.CONFIG_PREFIX_SEPARATOR)];if(w){let I=h.split(" ").map((U)=>U.toLowerCase()),A=w[[I.join("_"),Fh].join(V1.CONFIG_PREFIX_SEPARATOR)];if(A)return A}}let P=$[Fh];if(P)return P;return},default:void 0}),C0=async(h)=>V1.loadConfig(kI(h??""))(),pI=async(h)=>{let $=h?.Bucket||"";if(typeof h.Bucket==="string")h.Bucket=$.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(tI($)){if(h.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!vI($)||$.indexOf(".")!==-1&&!String(h.Endpoint).startsWith("http:")||$.toLowerCase()!==$||$.length<3)h.ForcePathStyle=!0;if(h.DisableMultiRegionAccessPoints)h.disableMultiRegionAccessPoints=!0,h.DisableMRAP=!0;return h},gI=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,mI=/(\d+\.){3}\d+/,dI=/\.\./,vI=(h)=>gI.test(h)&&!mI.test(h)&&!dI.test(h),tI=(h)=>{let[$,T,P,,,w]=h.split(":"),I=$==="arn"&&h.split(":").length>=6,A=Boolean(I&&T&&P&&w);if(I&&!A)throw Error(`Invalid ARN: ${h} was an invalid ARN.`);return A},rI=(h,$,T,P=!1)=>{let w=async()=>{let I;if(P)I=T.clientContextParams?.[h]??T[h]??T[$];else I=T[h]??T[$];if(typeof I==="function")return I();return I};if(h==="credentialScope"||$==="CredentialScope")return async()=>{let I=typeof T.credentials==="function"?await T.credentials():T.credentials;return I?.credentialScope??I?.CredentialScope};if(h==="accountId"||$==="AccountId")return async()=>{let I=typeof T.credentials==="function"?await T.credentials():T.credentials;return I?.accountId??I?.AccountId};if(h==="endpoint"||$==="endpoint")return async()=>{if(T.isCustomEndpoint===!1)return;let I=await w();if(I&&typeof I==="object"){if("url"in I)return I.url.href;if("hostname"in I){let{protocol:A,hostname:U,port:_,path:f}=I;return`${A}//${U}${_?":"+_:""}${f}`}}return I};return w};function sh(h){return async($,T,P,w)=>{if(!P.isCustomEndpoint){let U;if(P.serviceConfiguredEndpoint)U=await P.serviceConfiguredEndpoint();else U=await h(P.serviceId);if(U)P.endpoint=()=>Promise.resolve(F.toEndpointV1(U)),P.isCustomEndpoint=!0}let I=await Sh($,T,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let A=P.endpointProvider(I,w);if(P.isCustomEndpoint&&P.endpoint){let U=await P.endpoint();if(U?.headers){A.headers??={};for(let[_,f]of Object.entries(U.headers))A.headers[_]=Array.isArray(f)?f:[f]}}return A}}var Sh=async(h,$,T)=>{let P={},w=$?.getEndpointParameterInstructions?.()||{};for(let[I,A]of Object.entries(w))switch(A.type){case"staticContextParams":P[I]=A.value;break;case"contextParams":P[I]=h[A.name];break;case"clientContextParams":case"builtInParams":P[I]=await rI(A.name,I,T,A.type!=="builtInParams")();break;case"operationContextParams":P[I]=A.get(h);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(A))}if(Object.keys(w).length===0)Object.assign(P,T);if(String(T.serviceId).toLowerCase()==="s3")await pI(P);return P};function nI(h,$,T){if(!h.__smithy_context)h.__smithy_context={features:{}};else if(!h.__smithy_context.features)h.__smithy_context.features={};h.__smithy_context.features[$]=T}function jh(h){let $=sh(h);return({config:T,instructions:P})=>{return(w,I)=>async(A)=>{if(T.isCustomEndpoint)nI(I,"ENDPOINT_OVERRIDE","N");let U=await $(A.input,{getEndpointParameterInstructions(){return P}},{...T},I);I.endpointV2=U,I.authSchemes=U.properties?.authSchemes;let _=I.authSchemes?.[0];if(_){I.signing_region=_.signingRegion,I.signing_service=_.signingName;let Y=yI.getSmithyContext(I)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return w({...A})}}}var uI={name:"serializerMiddleware"},Ch={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:uI.name};function iI(h){let $=jh(h);return(T,P)=>({applyToStack:(w)=>{w.addRelativeTo($({config:T,instructions:P}),Ch)}})}function lI(h){return($)=>{let T=$.tls??!0,{endpoint:P,useDualstackEndpoint:w,useFipsEndpoint:I}=$,A=P!=null?async()=>F.toEndpointV1(await F.normalizeProvider(P)()):void 0,_=Object.assign($,{endpoint:A,tls:T,isCustomEndpoint:!!P,useDualstackEndpoint:F.normalizeProvider(w??!1),useFipsEndpoint:F.normalizeProvider(I??!1)}),f=void 0;return _.serviceConfiguredEndpoint=async()=>{if($.serviceId&&!f)f=h($.serviceId);return f},_}}class Z1{nodes;root;conditions;results;constructor(h,$,T,P){this.nodes=h,this.root=$,this.conditions=T,this.results=P}static from(h,$,T,P){return new Z1(h,$,T,P)}}class ch{capacity;data=new Map;parameters=[];constructor({size:h,params:$}){if(this.capacity=h??50,$)this.parameters=$}get(h,$){let T=this.hash(h);if(T===!1)return $();if(!this.data.has(T)){if(this.data.size>this.capacity+10){let P=this.data.keys(),w=0;while(!0){let{value:I,done:A}=P.next();if(this.data.delete(I),A||++w>10)break}}this.data.set(T,$())}return this.data.get(T)}size(){return this.data.size}hash(h){let $="",{parameters:T}=this;if(T.length===0)return!1;for(let P of T){let w=String(h[P]??"");if(w.includes("|;"))return!1;$+=w+"|;"}return $}}class q extends Error{constructor(h){super(h);this.name="EndpointError"}}var M0="endpoints";function c(h){if(typeof h!=="object"||h==null)return h;if("ref"in h)return`$${c(h.ref)}`;if("fn"in h)return`${h.fn}(${(h.argv||[]).map(c).join(", ")})`;return JSON.stringify(h,null,2)}var bh={},oI=(h,$)=>h===$;function aI(...h){for(let $ of h)if($!=null)return $;return}var eI=(h)=>{let $=h.split("."),T=[];for(let P of $){let w=P.indexOf("[");if(w!==-1){if(P.indexOf("]")!==P.length-1)throw new q(`Path: '${h}' does not end with ']'`);let I=P.slice(w+1,-1);if(Number.isNaN(parseInt(I)))throw new q(`Invalid array index: '${I}' in path: '${h}'`);if(w!==0)T.push(P.slice(0,w));T.push(I)}else T.push(P)}return T},yh=(h,$)=>eI($).reduce((T,P)=>{if(typeof T!=="object")throw new q(`Index '${P}' in '${$}' not found in '${JSON.stringify(h)}'`);else if(Array.isArray(T)){let w=parseInt(P);return T[w<0?T.length+w:w]}return T[P]},h),hA=(h)=>h!=null;function $A(h,$,T){return h?$:T}var TA=(h)=>!h,PA=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),kh=(h)=>PA.test(h)||h.startsWith("[")&&h.endsWith("]"),G1={[Q1.EndpointURLScheme.HTTP]:80,[Q1.EndpointURLScheme.HTTPS]:443},wA=(h)=>{let $=(()=>{try{if(h instanceof URL)return h;if(typeof h==="object"&&"hostname"in h){let{hostname:X,port:G,protocol:V="",path:Z="",query:J={}}=h,Q=new URL(`${V}//${X}${G?`:${G}`:""}${Z}`);return Q.search=Object.entries(J).map(([R,H])=>`${R}=${H}`).join("&"),Q}return new URL(h)}catch(X){return null}})();if(!$)return console.error(`Unable to parse ${JSON.stringify(h)} as a whatwg URL.`),null;let T=$.href,{host:P,hostname:w,pathname:I,protocol:A,search:U}=$;if(U)return null;let _=A.slice(0,-1);if(!Object.values(Q1.EndpointURLScheme).includes(_))return null;let f=kh(w),Y=T.includes(`${P}:${G1[_]}`)||typeof h==="string"&&h.includes(`${P}:${G1[_]}`),M=`${P}${Y?`:${G1[_]}`:""}`;return{scheme:_,authority:M,path:I,normalizedPath:I.endsWith("/")?I:`${I}/`,isIp:f}};function IA(h,$,T){if(T===1)return[h];if(h==="")return[""];let P=h.split($);if(T===0)return P;return P.slice(0,T-1).concat(P.slice(1).join($))}var AA=(h,$)=>h===$,UA=(h,$,T,P)=>{if(h==null||$>=T||h.length<T||/[^\u0000-\u007f]/.test(h))return null;if(!P)return h.substring($,T);return h.substring(h.length-T,h.length-$)},_A=(h)=>encodeURIComponent(h).replace(/[!*'()]/g,($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`),fA={booleanEquals:oI,coalesce:aI,getAttr:yh,isSet:hA,isValidHostLabel:F.isValidHostLabel,ite:$A,not:TA,parseURL:wA,split:IA,stringEquals:AA,substring:UA,uriEncode:_A},ph=(h,$)=>{let T=[],{referenceRecord:P,endpointParams:w}=$,I=0;while(I<h.length){let A=h.indexOf("{",I);if(A===-1){T.push(h.slice(I));break}T.push(h.slice(I,A));let U=h.indexOf("}",A);if(U===-1){T.push(h.slice(A));break}if(h[A+1]==="{"&&h[U+1]==="}")T.push(h.slice(A+1,U)),I=U+2;let _=h.substring(A+1,U);if(_.includes("#")){let[f,Y]=_.split("#");T.push(yh(P[f]??w[f],Y))}else T.push(P[_]??w[_]);I=U+1}return T.join("")},MA=({ref:h},$)=>{return $.referenceRecord[h]??$.endpointParams[h]},Y0=(h,$,T)=>{if(typeof h==="string")return ph(h,T);else if(h.fn)return mh.callFunction(h,T);else if(h.ref)return MA(h,T);throw new q(`'${$}': ${String(h)} is not a string, function or reference.`)},gh=({fn:h,argv:$},T)=>{let P=Array($.length);for(let A=0;A<P.length;++A){let U=$[A];if(typeof U==="boolean"||typeof U==="number")P[A]=U;else P[A]=mh.evaluateExpression(U,"arg",T)}let w=h.indexOf(".");if(w!==-1){let U=bh[h.slice(0,w)]?.[h.slice(w+1)];if(typeof U==="function")return U(...P)}let I=fA[h];if(typeof I==="function")return I(...P);throw Error(`function ${h} not loaded in endpointFunctions.`)},mh={evaluateExpression:Y0,callFunction:gh},dh=(h,$)=>{let{assign:T}=h;if(T&&T in $.referenceRecord)throw new q(`'${T}' is already defined in Reference Record.`);let P=gh(h,$);$.logger?.debug?.(`${M0} evaluateCondition: ${c(h)} = ${c(P)}`);let w=P===""?!0:!!P;if(T!=null)return{result:w,toAssign:{name:T,value:P}};return{result:w}},vh=(h,$)=>Object.entries(h??{}).reduce((T,[P,w])=>{return T[P]=w.map((I)=>{let A=Y0(I,"Header value entry",$);if(typeof A!=="string")throw new q(`Header '${P}' value '${A}' is not a string`);return A}),T},{}),R1=(h,$)=>Object.entries(h).reduce((T,[P,w])=>{return T[P]=rh.getEndpointProperty(w,$),T},{}),th=(h,$)=>{if(Array.isArray(h))return h.map((T)=>th(T,$));switch(typeof h){case"string":return ph(h,$);case"object":if(h===null)throw new q(`Unexpected endpoint property: ${h}`);return rh.getEndpointProperties(h,$);case"boolean":return h;default:throw new q(`Unexpected endpoint property type: ${typeof h}`)}},rh={getEndpointProperty:th,getEndpointProperties:R1},nh=(h,$)=>{let T=Y0(h,"Endpoint URL",$);if(typeof T==="string")try{return new URL(T)}catch(P){throw console.error(`Failed to construct URL with ${T}`,P),P}throw new q(`Endpoint URL must be a string, got ${typeof T}`)},J1=1e8,YA=(h,$)=>{let{nodes:T,root:P,results:w,conditions:I}=h,A=P,U={},_={referenceRecord:U,endpointParams:$.endpointParams,logger:$.logger};while(A!==1&&A!==-1&&A<J1){let f=3*(Math.abs(A)-1),[Y,M,X]=[T[f],T[f+1],T[f+2]],[G,V,Z]=I[Y],J=dh({fn:G,assign:Z,argv:V},_);if(J.toAssign){let{name:Q,value:R}=J.toAssign;U[Q]=R}A=A>=0===J.result?M:X}if(A>=J1){let f=w[A-J1];if(f[0]===-1){let[,G]=f;throw new q(Y0(G,"Error",_))}let[Y,M,X]=f;return{url:nh(Y,_),properties:R1(M,_),headers:vh(X??{},_)}}throw new q("No matching endpoint.")},q1=(h=[],$)=>{let T={},P={...$,referenceRecord:{...$.referenceRecord}},w=!1;for(let I of h){let{result:A,toAssign:U}=dh(I,P);if(!A)return{result:A};if(U)w=!0,T[U.name]=U.value,P.referenceRecord[U.name]=U.value,$.logger?.debug?.(`${M0} assign: ${U.name} := ${c(U.value)}`)}if(w)return{result:!0,referenceRecord:T};return{result:!0}},XA=(h,$)=>{let{conditions:T,endpoint:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$,{url:U,properties:_,headers:f}=P;$.logger?.debug?.(`${M0} Resolving endpoint from template: ${c(P)}`);let Y={url:nh(U,A)};if(f!=null)Y.headers=vh(f,A);if(_!=null)Y.properties=R1(_,A);return Y},GA=(h,$)=>{let{conditions:T,error:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$;throw new q(Y0(P,"Error",A))},uh=(h,$)=>{for(let T of h)if(T.type==="endpoint"){let P=XA(T,$);if(P)return P}else if(T.type==="error")GA(T,$);else if(T.type==="tree"){let P=ih.evaluateTreeRule(T,$);if(P)return P}else throw new q(`Unknown endpoint rule: ${T}`);throw new q("Rules evaluation failed")},JA=(h,$)=>{let{conditions:T,rules:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$;return ih.evaluateRules(P,A)},ih={evaluateRules:uh,evaluateTreeRule:JA},VA=(h,$)=>{let{endpointParams:T,logger:P}=$,{parameters:w,rules:I}=h;$.logger?.debug?.(`${M0} Initial EndpointParams: ${c(T)}`);for(let U in w){let _=w[U],f=T[U];if(f==null&&_.default!=null){T[U]=_.default;continue}if(_.required&&f==null)throw new q(`Missing required parameter: '${U}'`)}let A=uh(I,{endpointParams:T,logger:P,referenceRecord:{}});return $.logger?.debug?.(`${M0} Resolved endpoint: ${c(A)}`),A},QA=(h)=>{let{endpoint:$}=h;if($===void 0)h.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return h},ZA=sh(C0),RA=lI(C0),qA=jh(C0),OA=iI(C0);EA.isValidHostLabel=F.isValidHostLabel;EA.middlewareEndpointToEndpointV1=F.toEndpointV1;EA.toEndpointV1=F.toEndpointV1;EA.BinaryDecisionDiagram=Z1;EA.EndpointCache=ch;EA.EndpointError=q;EA.customEndpointFunctions=bh;EA.decideEndpoint=YA;EA.endpointMiddleware=qA;EA.endpointMiddlewareOptions=Ch;EA.getEndpointFromInstructions=ZA;EA.getEndpointPlugin=OA;EA.isIpAddress=kh;EA.resolveEndpoint=VA;EA.resolveEndpointConfig=RA;EA.resolveEndpointRequiredConfig=QA;EA.resolveParams=Sh});var Ff=y((J_)=>{var H1=C("crypto"),O1=C("fs"),kA=m(),pA=lh(),D=C("stream"),P$=(h)=>typeof ArrayBuffer==="function"&&h instanceof ArrayBuffer||Object.prototype.toString.call(h)==="[object ArrayBuffer]",u=(h,$=0,T=h.byteLength-$)=>{if(!P$(h))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof h} (${h})`);return Buffer.from(h,$,T)},k0=(h,$)=>{if(typeof h!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof h} (${h})`);return $?Buffer.from(h,$):Buffer.from(h)},gA=/^[A-Za-z0-9+/]*={0,2}$/,w$=(h)=>{if(h.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!gA.exec(h))throw TypeError("Invalid base64 string.");let $=k0(h,"base64");return new Uint8Array($.buffer,$.byteOffset,$.byteLength)},p0=(h)=>{let $=k0(h,"utf8");return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT)},K1=(h)=>{let $;if(typeof h==="string")$=p0(h);else $=h;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return u($.buffer,$.byteOffset,$.byteLength).toString("base64")};function mA(h,$,T,P){return class w extends Uint8Array{static fromString(I,A="utf-8"){if(typeof I==="string"){if(A==="base64")return w.mutate(P(I));return w.mutate($(I))}throw Error(`Unsupported conversion from ${typeof I} to Uint8ArrayBlobAdapter.`)}static mutate(I){return Object.setPrototypeOf(I,w.prototype),I}transformToString(I="utf-8"){if(I==="base64")return T(this);return h(this)}}}var I$=(h)=>{if(typeof h==="string")return h;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return u(h.buffer,h.byteOffset,h.byteLength).toString("utf8")},O=Array.from({length:256},(h,$)=>$.toString(16).padStart(2,"0"));function dA(h){if(typeof crypto<"u"&&typeof crypto.randomUUID==="function")return()=>crypto.randomUUID();return()=>{let $=new Uint8Array(16);return h($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,O[$[0]]+O[$[1]]+O[$[2]]+O[$[3]]+"-"+O[$[4]]+O[$[5]]+"-"+O[$[6]]+O[$[7]]+"-"+O[$[8]]+O[$[9]]+"-"+O[$[10]]+O[$[11]]+O[$[12]]+O[$[13]]+O[$[14]]+O[$[15]]}}var vA=(h,$,T=(P)=>P)=>h,tA=(h)=>{switch(h){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${h}"`)}},rA=(h)=>{if(h===null||h===void 0)return;if(typeof h==="number"){if(h===0||h===1)Q0.warn(b0(`Expected boolean, got ${typeof h}: ${h}`));if(h===0)return!1;if(h===1)return!0}if(typeof h==="string"){let $=h.toLowerCase();if($==="false"||$==="true")Q0.warn(b0(`Expected boolean, got ${typeof h}: ${h}`));if($==="false")return!1;if($==="true")return!0}if(typeof h==="boolean")return h;throw TypeError(`Expected boolean, got ${typeof h}: ${h}`)},J0=(h)=>{if(h===null||h===void 0)return;if(typeof h==="string"){let $=parseFloat(h);if(!Number.isNaN($)){if(String($)!==String(h))Q0.warn(b0(`Expected number but observed string: ${h}`));return $}}if(typeof h==="number")return h;throw TypeError(`Expected number, got ${typeof h}: ${h}`)},nA=Math.ceil(340282346638528860000000000000000000000),c0=(h)=>{let $=J0(h);if($!==void 0&&!Number.isNaN($)&&$!==1/0&&$!==-1/0){if(Math.abs($)>nA)throw TypeError(`Expected 32-bit float, got ${h}`)}return $},V0=(h)=>{if(h===null||h===void 0)return;if(Number.isInteger(h)&&!Number.isNaN(h))return h;throw TypeError(`Expected integer, got ${typeof h}: ${h}`)},uA=V0,x1=(h)=>B1(h,32),W1=(h)=>B1(h,16),D1=(h)=>B1(h,8),B1=(h,$)=>{let T=V0(h);if(T!==void 0&&iA(T,$)!==T)throw TypeError(`Expected ${$}-bit integer, got ${h}`);return T},iA=(h,$)=>{switch($){case 32:return Int32Array.of(h)[0];case 16:return Int16Array.of(h)[0];case 8:return Int8Array.of(h)[0]}},lA=(h,$)=>{if(h===null||h===void 0){if($)throw TypeError(`Expected a non-null value for ${$}`);throw TypeError("Expected a non-null value")}return h},A$=(h)=>{if(h===null||h===void 0)return;if(typeof h==="object"&&!Array.isArray(h))return h;let $=Array.isArray(h)?"array":typeof h;throw TypeError(`Expected object, got ${$}: ${h}`)},oA=(h)=>{if(h===null||h===void 0)return;if(typeof h==="string")return h;if(["boolean","number","bigint"].includes(typeof h))return Q0.warn(b0(`Expected string, got ${typeof h}: ${h}`)),String(h);throw TypeError(`Expected string, got ${typeof h}: ${h}`)},aA=(h)=>{if(h===null||h===void 0)return;let $=A$(h),T=[];for(let P in $)if($[P]!=null)T.push(P);if(T.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(T.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${T} were not null.`);return $},z1=(h)=>{if(typeof h=="string")return J0(o(h));return J0(h)},eA=z1,U$=(h)=>{if(typeof h=="string")return c0(o(h));return c0(h)},hU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,o=(h)=>{let $=h.match(hU);if($===null||$[0].length!==h.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(h)},F1=(h)=>{if(typeof h=="string")return _$(h);return J0(h)},$U=F1,TU=F1,PU=(h)=>{if(typeof h=="string")return _$(h);return c0(h)},_$=(h)=>{switch(h){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${h}`)}},f$=(h)=>{if(typeof h==="string")return V0(o(h));return V0(h)},wU=f$,IU=(h)=>{if(typeof h==="string")return x1(o(h));return x1(h)},i=(h)=>{if(typeof h==="string")return W1(o(h));return W1(h)},M$=(h)=>{if(typeof h==="string")return D1(o(h));return D1(h)},b0=(h)=>{return String(TypeError(h).stack||h).split(`
4
4
  `).slice(0,5).filter(($)=>!$.includes("stackTraceWarning")).join(`
5
5
  `)},Q0={warn:console.warn},AU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function UU(h){let $=h.getUTCFullYear(),T=h.getUTCMonth(),P=h.getUTCDay(),w=h.getUTCDate(),I=h.getUTCHours(),A=h.getUTCMinutes(),U=h.getUTCSeconds(),_=w<10?`0${w}`:`${w}`,f=I<10?`0${I}`:`${I}`,Y=A<10?`0${A}`:`${A}`,M=U<10?`0${U}`:`${U}`;return`${AU[P]}, ${_} ${s1[T]} ${$} ${f}:${Y}:${M} GMT`}var _U=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),fU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let $=_U.exec(h);if(!$)throw TypeError("Invalid RFC-3339 date-time value");let[T,P,w,I,A,U,_,f]=$,Y=i(l(P)),M=L(w,"month",1,12),X=L(I,"day",1,31);return X0(Y,M,X,{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f})},MU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),YU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let $=MU.exec(h);if(!$)throw TypeError("Invalid RFC-3339 date-time value");let[T,P,w,I,A,U,_,f,Y]=$,M=i(l(P)),X=L(w,"month",1,12),G=L(I,"day",1,31),V=X0(M,X,G,{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f});if(Y.toUpperCase()!="Z")V.setTime(V.getTime()-xU(Y));return V},XU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),GU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),JU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),VU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let $=XU.exec(h);if($){let[T,P,w,I,A,U,_,f]=$;return X0(i(l(I)),E1(w),L(P,"day",1,31),{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f})}if($=GU.exec(h),$){let[T,P,w,I,A,U,_,f]=$;return qU(X0(ZU(I),E1(w),L(P,"day",1,31),{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f}))}if($=JU.exec(h),$){let[T,P,w,I,A,U,_,f]=$;return X0(i(l(f)),E1(P),L(w.trimLeft(),"day",1,31),{hours:I,minutes:A,seconds:U,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},QU=(h)=>{if(h===null||h===void 0)return;let $;if(typeof h==="number")$=h;else if(typeof h==="string")$=z1(h);else if(typeof h==="object"&&h.tag===1)$=h.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN($)||$===1/0||$===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round($*1000))},X0=(h,$,T,P)=>{let w=$-1;return EU(h,w,T),new Date(Date.UTC(h,w,T,L(P.hours,"hour",0,23),L(P.minutes,"minute",0,59),L(P.seconds,"seconds",0,60),HU(P.fractionalMilliseconds)))},ZU=(h)=>{let $=new Date().getUTCFullYear(),T=Math.floor($/100)*100+i(l(h));if(T<$)return T+100;return T},RU=1576800000000,qU=(h)=>{if(h.getTime()-new Date().getTime()>RU)return new Date(Date.UTC(h.getUTCFullYear()-100,h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()));return h},E1=(h)=>{let $=s1.indexOf(h);if($<0)throw TypeError(`Invalid month: ${h}`);return $+1},OU=[31,28,31,30,31,30,31,31,30,31,30,31],EU=(h,$,T)=>{let P=OU[$];if($===1&&NU(h))P=29;if(T>P)throw TypeError(`Invalid day for ${s1[$]} in ${h}: ${T}`)},NU=(h)=>{return h%4===0&&(h%100!==0||h%400===0)},L=(h,$,T,P)=>{let w=M$(l(h));if(w<T||w>P)throw TypeError(`${$} must be between ${T} and ${P}, inclusive`);return w},HU=(h)=>{if(h===null||h===void 0)return 0;return U$("0."+h)*1000},xU=(h)=>{let $=h[0],T=1;if($=="+")T=1;else if($=="-")T=-1;else throw TypeError(`Offset direction, ${$}, must be "+" or "-"`);let P=Number(h.substring(1,3)),w=Number(h.substring(4,6));return T*(P*60+w)*60*1000},l=(h)=>{let $=0;while($<h.length-1&&h.charAt($)==="0")$++;if($===0)return h;return h.slice($)},g=function($){return Object.assign(new String($),{deserializeJSON(){return JSON.parse(String($))},toString(){return String($)},toJSON(){return String($)}})};g.from=(h)=>{if(h&&typeof h==="object"&&(h instanceof g||("deserializeJSON"in h)))return h;else if(typeof h==="string"||Object.getPrototypeOf(h)===String.prototype)return g(String(h));return g(JSON.stringify(h))};g.fromObject=g.from;function WU(h){if(h.includes(",")||h.includes('"'))h=`"${h.replace(/"/g,"\\\"")}"`;return h}var S1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",j1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",C1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Y$="(\\d?\\d)",X$="(\\d{4})",DU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),LU=new RegExp(`^${S1}, ${Y$} ${j1} ${X$} ${C1} GMT$`),KU=new RegExp(`^${S1}, ${Y$}-${j1}-(\\d\\d) ${C1} GMT$`),BU=new RegExp(`^${S1} ${j1} ( [1-9]|\\d\\d) ${C1} ${X$}$`),zU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],FU=(h)=>{if(h==null)return;let $=NaN;if(typeof h==="number")$=h;else if(typeof h==="string"){if(!/^-?\d*\.?\d+$/.test(h))throw TypeError("parseEpochTimestamp - numeric string invalid.");$=Number.parseFloat(h)}else if(typeof h==="object"&&h.tag===1)$=h.value;if(isNaN($)||Math.abs($)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round($*1000))},sU=(h)=>{if(h==null)return;if(typeof h!=="string")throw TypeError("RFC3339 timestamps must be strings");let $=DU.exec(h);if(!$)throw TypeError(`Invalid RFC3339 timestamp format ${h}`);let[,T,P,w,I,A,U,,_,f]=$;s(P,1,12),s(w,1,31),s(I,0,23),s(A,0,59),s(U,0,60);let Y=new Date(Date.UTC(Number(T),Number(P)-1,Number(w),Number(I),Number(A),Number(U),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(T)),f.toUpperCase()!="Z"){let[,M,X,G]=/([+-])(\d\d):(\d\d)/.exec(f)||[void 0,"+",0,0],V=M==="-"?1:-1;Y.setTime(Y.getTime()+V*(Number(X)*60*60*1000+Number(G)*60*1000))}return Y},SU=(h)=>{if(h==null)return;if(typeof h!=="string")throw TypeError("RFC7231 timestamps must be strings.");let $,T,P,w,I,A,U,_;if(_=LU.exec(h))[,$,T,P,w,I,A,U]=_;else if(_=KU.exec(h))[,$,T,P,w,I,A,U]=_,P=(Number(P)+1900).toString();else if(_=BU.exec(h))[,T,$,w,I,A,U,P]=_;if(P&&A){let f=Date.UTC(Number(P),zU.indexOf(T),Number($),Number(w),Number(I),Number(A),U?Math.round(parseFloat(`0.${U}`)*1000):0);s($,1,31),s(w,0,23),s(I,0,59),s(A,0,60);let Y=new Date(f);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${h}.`)};function s(h,$,T){let P=Number(h);if(P<$||P>T)throw Error(`Value ${P} out of range [${$}, ${T}]`)}function jU(h,$,T){if(T<=0||!Number.isInteger(T))throw Error("Invalid number of delimiters ("+T+") for splitEvery.");let P=h.split($);if(T===1)return P;let w=[],I="";for(let A=0;A<P.length;A++){if(I==="")I=P[A];else I+=$+P[A];if((A+1)%T===0)w.push(I),I=""}if(I!=="")w.push(I);return w}var CU=(h)=>{let $=h.length,T=[],P=!1,w=void 0,I=0;for(let A=0;A<$;++A){let U=h[A];switch(U){case'"':if(w!=="\\")P=!P;break;case",":if(!P)T.push(h.slice(I,A)),I=A+1;break}w=U}return T.push(h.slice(I)),T.map((A)=>{A=A.trim();let U=A.length;if(U<2)return A;if(A[0]==='"'&&A[U-1]==='"')A=A.slice(1,U-1);return A.replace(/\\"/g,'"')})},oh=/^-?\d*(\.\d+)?$/;class g0{string;type;constructor(h,$){if(this.string=h,this.type=$,!oh.test(h))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](h){if(!h||typeof h!=="object")return!1;let $=h;return g0.prototype.isPrototypeOf(h)||$.type==="bigDecimal"&&oh.test($.string)}}function cU(h){return new g0(String(h),"bigDecimal")}var G$={},L1={};for(let h=0;h<256;h++){let $=h.toString(16).toLowerCase();if($.length===1)$=`0${$}`;G$[h]=$,L1[$]=h}function bU(h){if(h.length%2!==0)throw Error("Hex encoded strings must have an even number length");let $=new Uint8Array(h.length/2);for(let T=0;T<h.length;T+=2){let P=h.slice(T,T+2).toLowerCase();if(P in L1)$[T/2]=L1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return $}function J$(h){let $="";for(let T=0;T<h.byteLength;T++)$+=G$[h[T]];return $}var yU=(h)=>{if(!h)return 0;if(typeof h==="string")return Buffer.byteLength(h);else if(typeof h.byteLength==="number")return h.byteLength;else if(typeof h.size==="number")return h.size;else if(typeof h.start==="number"&&typeof h.end==="number")return h.end+1-h.start;else if(h instanceof O1.ReadStream){if(h.path!=null)return O1.lstatSync(h.path).size;else if(typeof h.fd==="number")return O1.fstatSync(h.fd).size}throw Error(`Body Length computation failed for ${h}`)},V$=(h)=>{if(typeof h==="string")return p0(h);if(ArrayBuffer.isView(h))return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(h)},Q$=(h,$)=>(T,P)=>async(w)=>{let{response:I}=await T(w);try{let A=await $(I,h);return{response:I,output:A}}catch(A){if(Object.defineProperty(A,"$response",{value:I,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in A)){try{A.message+=`
@@ -15,4 +15,4 @@ ${M}\r
15
15
  `),M.push(`\r
16
16
  `)}M.push(null)}),M}async function lU(h,$){let T=0,P=[],w=h.getReader(),I=!1;while(!I){let{done:_,value:f}=await w.read();if(f)P.push(f),T+=f?.byteLength??0;if(T>=$)break;I=_}w.releaseLock();let A=new Uint8Array(Math.min($,T)),U=0;for(let _ of P){if(_.byteLength>A.byteLength-U){A.set(_.subarray(0,A.byteLength-U),U);break}else A.set(_,U);U+=_.length}return A}var oU=(h,$)=>{if(S(h))return lU(h,$);return new Promise((T,P)=>{let w=new aU;w.limit=$,h.pipe(w),h.on("error",(I)=>{w.end(),P(I)}),w.on("error",P),w.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.buffers));T(I)})})},aU=class extends D.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write($,T,P){if(this.buffers.push($),this.bytesBuffered+=$.byteLength??0,this.bytesBuffered>=this.limit){let w=this.bytesBuffered-this.limit,I=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=I.subarray(0,I.byteLength-w),this.emit("finish")}P()}},eU=(h)=>{if(typeof h==="string")return h;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(h)},h_=(h)=>{let $=h.length/4*3;if(h.slice(-2)==="==")$-=2;else if(h.slice(-1)==="=")$--;let T=new ArrayBuffer($),P=new DataView(T);for(let w=0;w<h.length;w+=4){let I=0,A=0;for(let f=w,Y=w+3;f<=Y;f++)if(h[f]!=="="){if(!(h[f]in eh))throw TypeError(`Invalid character ${h[f]} in base64 string.`);I|=eh[h[f]]<<(Y-f)*r,A+=r}else I>>=r;let U=w/4*3;I>>=A%G0;let _=Math.floor(A/G0);for(let f=0;f<_;f++){let Y=(_-f-1)*G0;P.setUint8(U+f,(I&255<<Y)>>Y)}}return new Uint8Array(T)},$_=async(h)=>{if(typeof Blob==="function"&&h instanceof Blob||h.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await h.arrayBuffer());return T_(h)}return P_(h)};async function T_(h){let $=await w_(h),T=h_($);return new Uint8Array(T)}async function P_(h){let $=[],T=h.getReader(),P=!1,w=0;while(!P){let{done:U,value:_}=await T.read();if(_)$.push(_),w+=_.length;P=U}let I=new Uint8Array(w),A=0;for(let U of $)I.set(U,A),A+=U.length;return I}function w_(h){return new Promise(($,T)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return T(Error("Reader aborted too early"));let w=P.result??"",I=w.indexOf(","),A=I>-1?I+1:w.length;$(w.substring(A))},P.onabort=()=>T(Error("Read aborted")),P.onerror=()=>T(P.error),P.readAsDataURL(h)})}var h$="The stream has already been transformed.",I_=(h)=>{if(!$$(h)&&!S(h)){let w=h?.__proto__?.constructor?.name||h;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${w}`)}let $=!1,T=async()=>{if($)throw Error(h$);return $=!0,await $_(h)},P=(w)=>{if(typeof w.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
17
17
  If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return w.stream()};return Object.assign(h,{transformToByteArray:T,transformToString:async(w)=>{let I=await T();if(w==="base64")return x$(I);else if(w==="hex")return J$(I);else if(w===void 0||w==="utf8"||w==="utf-8")return eU(I);else if(typeof TextDecoder==="function")return new TextDecoder(w).decode(I);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if($)throw Error(h$);if($=!0,$$(h))return P(h);else if(S(h))return h;else throw Error(`Cannot transform payload to web stream, got ${h}`)}})},$$=(h)=>typeof Blob==="function"&&h instanceof Blob;class K$ extends D.Writable{bufferedBytes=[];_write(h,$,T){this.bufferedBytes.push(h),T()}}var A_=(h)=>typeof ReadableStream==="function"&&h instanceof ReadableStream;async function U_(h){let $=[],T=h.getReader(),P=!1,w=0;while(!P){let{done:U,value:_}=await T.read();if(_)$.push(_),w+=_.length;P=U}let I=new Uint8Array(w),A=0;for(let U of $)I.set(U,A),A+=U.length;return I}var __=(h)=>{if(A_(h))return U_(h);return new Promise(($,T)=>{let P=new K$;h.pipe(P),h.on("error",(w)=>{P.end(),T(w)}),P.on("error",T),P.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.bufferedBytes));$(w)})})},T$="The stream has already been transformed.",f_=(h)=>{if(!(h instanceof D.Readable))try{return I_(h)}catch(P){let w=h?.__proto__?.constructor?.name||h;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${w}`)}let $=!1,T=async()=>{if($)throw Error(T$);return $=!0,await __(h)};return Object.assign(h,{transformToByteArray:T,transformToString:async(P)=>{let w=await T();if(P===void 0||Buffer.isEncoding(P))return u(w.buffer,w.byteOffset,w.byteLength).toString(P);else return new TextDecoder(P).decode(w)},transformToWebStream:()=>{if($)throw Error(T$);if(h.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof D.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return $=!0,D.Readable.toWeb(h)}})};async function M_(h){if(typeof h.stream==="function")h=h.stream();return h.tee()}async function Y_(h){if(S(h)||N$(h))return M_(h);let $=new D.PassThrough,T=new D.PassThrough;return h.pipe($),h.pipe(T),[$,T]}class B$ extends mA(I$,p0,K1,w$){}var X_=H1.getRandomValues,z$=dA(X_),G_=z$;J_.ChecksumStream=E$;J_.Hash=O$;J_.LazyJsonString=g;J_.NumericValue=g0;J_.Uint8ArrayBlobAdapter=B$;J_._parseEpochTimestamp=FU;J_._parseRfc3339DateTimeWithOffset=sU;J_._parseRfc7231DateTime=SU;J_.calculateBodyLength=yU;J_.copyDocumentWithTransform=vA;J_.createBufferedReadable=nU;J_.createChecksumStream=tU;J_.dateToUtcString=UU;J_.deserializerMiddleware=Q$;J_.deserializerMiddlewareOption=R$;J_.expectBoolean=rA;J_.expectByte=D1;J_.expectFloat32=c0;J_.expectInt=uA;J_.expectInt32=x1;J_.expectLong=V0;J_.expectNonNull=lA;J_.expectNumber=J0;J_.expectObject=A$;J_.expectShort=W1;J_.expectString=oA;J_.expectUnion=aA;J_.fromArrayBuffer=u;J_.fromBase64=w$;J_.fromHex=bU;J_.fromString=k0;J_.fromUtf8=p0;J_.generateIdempotencyToken=G_;J_.getAwsChunkedEncodingStream=iU;J_.getSerdePlugin=kU;J_.handleFloat=$U;J_.headStream=oU;J_.isArrayBuffer=P$;J_.isBlob=N$;J_.isReadableStream=S;J_.limitedParseDouble=F1;J_.limitedParseFloat=TU;J_.limitedParseFloat32=PU;J_.logger=Q0;J_.nv=cU;J_.parseBoolean=tA;J_.parseEpochTimestamp=QU;J_.parseRfc3339DateTime=fU;J_.parseRfc3339DateTimeWithOffset=YU;J_.parseRfc7231DateTime=VU;J_.quoteHeader=WU;J_.sdkStreamMixin=f_;J_.serializerMiddleware=Z$;J_.serializerMiddlewareOption=q$;J_.splitEvery=jU;J_.splitHeader=CU;J_.splitStream=Y_;J_.strictParseByte=M$;J_.strictParseDouble=z1;J_.strictParseFloat=eA;J_.strictParseFloat32=U$;J_.strictParseInt=wU;J_.strictParseInt32=IU;J_.strictParseLong=f$;J_.strictParseShort=i;J_.toBase64=K1;J_.toHex=J$;J_.toUint8Array=V$;J_.toUtf8=I$;J_.v4=z$});
18
- export{h0 as qf,m as rf,d1 as sf,$1 as tf,Bh as uf,lh as vf,Ff as wf};
18
+ export{h0 as sf,m as tf,d1 as uf,$1 as vf,Bh as wf,lh as xf,Ff as yf};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{if as n6,jf as L0,kf as t6}from"./chunk-std2bgv7.js";import{Aq as PY,Jq as CQ,Oq as l6,Sq as p6,cr as A0,er as JY,fr as M0,mr as o6,nr as d6,or as r6,sr as u6,tq as F0}from"./chunk-gwfx7tx7.js";import{Ar as w0,Hr as qQ}from"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-4sazy0nq.js";var y9=Object.defineProperty,s=(Q,q)=>{for(var G in q)y9(Q,G,{get:q[G],enumerable:!0})},f9="2.0.1";function m9({tools:Q,toolChoice:q}){Q=Q?.length?Q:void 0;let G=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:G};let H=[];for(let X of Q)if(X.type==="provider")G.push({type:"unsupported",feature:`provider-defined tool ${X.id}`});else H.push({type:"function",function:{name:X.name,description:X.description,parameters:X.inputSchema,...X.strict!=null?{strict:X.strict}:{}}});if(q==null)return{tools:H,toolChoice:void 0,toolWarnings:G};let Y=q.type;switch(Y){case"auto":case"none":case"required":return{tools:H,toolChoice:Y,toolWarnings:G};case"tool":return{tools:H,toolChoice:{type:"function",function:{name:q.toolName}},toolWarnings:G};default:throw new qQ({functionality:`tool choice type: ${Y}`})}}function $6(Q){if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};return{inputTokens:{total:Q.total_tokens??void 0,noCache:Q.prompt_tokens??void 0,cacheRead:Q.prompt_tokens_details?.cached_tokens??void 0,cacheWrite:Q.prompt_tokens_details?.cache_creation_input_tokens??void 0},outputTokens:{total:Q.completion_tokens??void 0,text:void 0,reasoning:void 0},raw:Q}}var F={};s(F,{$brand:()=>e6,$input:()=>SG,$output:()=>TG,NEVER:()=>i6,TimePrecision:()=>xG,ZodAny:()=>_1,ZodArray:()=>y1,ZodBase64:()=>tY,ZodBase64URL:()=>aY,ZodBigInt:()=>iQ,ZodBigIntFormat:()=>sY,ZodBoolean:()=>aQ,ZodCIDRv4:()=>uY,ZodCIDRv6:()=>nY,ZodCUID:()=>mY,ZodCUID2:()=>cY,ZodCatch:()=>W6,ZodCodec:()=>K0,ZodCustom:()=>qY,ZodCustomStringFormat:()=>ZQ,ZodDate:()=>Y0,ZodDefault:()=>Q6,ZodDiscriminatedUnion:()=>m1,ZodE164:()=>iY,ZodEmail:()=>gY,ZodEmoji:()=>yY,ZodEnum:()=>VQ,ZodError:()=>HK,ZodExactOptional:()=>i1,ZodFile:()=>t1,ZodFirstPartyTypeKind:()=>V0,ZodFunction:()=>M6,ZodGUID:()=>SQ,ZodIPv4:()=>dY,ZodIPv6:()=>rY,ZodISODate:()=>Z1,ZodISODateTime:()=>R1,ZodISODuration:()=>b1,ZodISOTime:()=>D1,ZodIntersection:()=>c1,ZodIssueCode:()=>WK,ZodJWT:()=>eY,ZodKSUID:()=>oY,ZodLazy:()=>w6,ZodLiteral:()=>n1,ZodMAC:()=>C1,ZodMap:()=>r1,ZodNaN:()=>K6,ZodNanoID:()=>fY,ZodNever:()=>h1,ZodNonOptional:()=>W0,ZodNull:()=>j1,ZodNullable:()=>s1,ZodNumber:()=>tQ,ZodNumberFormat:()=>AQ,ZodObject:()=>sQ,ZodOptional:()=>H0,ZodPipe:()=>J0,ZodPrefault:()=>q6,ZodPromise:()=>A6,ZodReadonly:()=>B6,ZodRealError:()=>p,ZodRecord:()=>YY,ZodSet:()=>u1,ZodString:()=>uQ,ZodStringFormat:()=>S,ZodSuccess:()=>H6,ZodSymbol:()=>S1,ZodTemplateLiteral:()=>U6,ZodTransform:()=>a1,ZodTuple:()=>p1,ZodType:()=>D,ZodULID:()=>lY,ZodURL:()=>nQ,ZodUUID:()=>i,ZodUndefined:()=>z1,ZodUnion:()=>QY,ZodUnknown:()=>x1,ZodVoid:()=>g1,ZodXID:()=>pY,ZodXor:()=>f1,_ZodString:()=>hY,_default:()=>Y6,_function:()=>LY,any:()=>H9,array:()=>eQ,base64:()=>l2,base64url:()=>p2,bigint:()=>Q9,boolean:()=>T1,catch:()=>J6,check:()=>C9,cidrv4:()=>m2,cidrv6:()=>c2,clone:()=>u,codec:()=>Z9,coerce:()=>h9,config:()=>h,core:()=>a6,cuid:()=>j2,cuid2:()=>v2,custom:()=>k9,date:()=>J9,decode:()=>M2,decodeAsync:()=>P2,describe:()=>T9,discriminatedUnion:()=>F9,e164:()=>o2,email:()=>V2,emoji:()=>S2,encode:()=>A2,encodeAsync:()=>L2,endsWith:()=>TY,enum:()=>X0,exactOptional:()=>e1,file:()=>O9,flattenError:()=>b0,float32:()=>a2,float64:()=>i2,formatError:()=>C0,fromJSONSchema:()=>wK,function:()=>LY,getErrorMap:()=>KK,globalRegistry:()=>o,gt:()=>GQ,gte:()=>m,guid:()=>R2,hash:()=>t2,hex:()=>n2,hostname:()=>u2,httpUrl:()=>T2,includes:()=>CY,instanceof:()=>z9,int:()=>MY,int32:()=>e2,int64:()=>Y9,intersection:()=>l1,ipv4:()=>g2,ipv6:()=>f2,iso:()=>V1,json:()=>v9,jwt:()=>d2,keyof:()=>K9,ksuid:()=>h2,lazy:()=>F6,length:()=>dQ,literal:()=>E9,locales:()=>u0,looseObject:()=>U9,looseRecord:()=>M9,lowercase:()=>DY,lt:()=>XQ,lte:()=>d,mac:()=>y2,map:()=>L9,maxLength:()=>oQ,maxSize:()=>RQ,meta:()=>S9,mime:()=>SY,minLength:()=>NQ,minSize:()=>HQ,multipleOf:()=>$Q,nan:()=>R9,nanoid:()=>z2,nativeEnum:()=>$9,negative:()=>L1,never:()=>Q0,nonnegative:()=>$1,nonoptional:()=>G6,nonpositive:()=>P1,normalize:()=>zY,null:()=>v1,nullable:()=>jQ,nullish:()=>I9,number:()=>k1,object:()=>B9,optional:()=>zQ,overwrite:()=>YQ,parse:()=>N2,parseAsync:()=>U2,partialRecord:()=>A9,pipe:()=>vQ,positive:()=>M1,prefault:()=>X6,preprocess:()=>_9,prettifyError:()=>wq,promise:()=>b9,property:()=>E1,readonly:()=>N6,record:()=>d1,refine:()=>L6,regex:()=>ZY,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>E2,safeDecodeAsync:()=>I2,safeEncode:()=>$2,safeEncodeAsync:()=>O2,safeParse:()=>w2,safeParseAsync:()=>F2,set:()=>P9,setErrorMap:()=>JK,size:()=>pQ,slugify:()=>xY,startsWith:()=>kY,strictObject:()=>N9,string:()=>AY,stringFormat:()=>r2,stringbool:()=>j9,success:()=>V9,superRefine:()=>P6,symbol:()=>X9,templateLiteral:()=>D9,toJSONSchema:()=>q2,toLowerCase:()=>vY,toUpperCase:()=>_Y,transform:()=>G0,treeifyError:()=>Nq,trim:()=>jY,tuple:()=>o1,uint32:()=>s2,uint64:()=>q9,ulid:()=>_2,undefined:()=>G9,union:()=>q0,unknown:()=>UQ,uppercase:()=>bY,url:()=>k2,util:()=>C,uuid:()=>Z2,uuidv4:()=>D2,uuidv6:()=>b2,uuidv7:()=>C2,void:()=>W9,xid:()=>x2,xor:()=>w9});var a6={};s(a6,{$ZodAny:()=>dX,$ZodArray:()=>aX,$ZodAsyncError:()=>KQ,$ZodBase64:()=>vX,$ZodBase64URL:()=>xX,$ZodBigInt:()=>p0,$ZodBigIntFormat:()=>cX,$ZodBoolean:()=>l0,$ZodCIDRv4:()=>zX,$ZodCIDRv6:()=>jX,$ZodCUID:()=>EX,$ZodCUID2:()=>OX,$ZodCatch:()=>PG,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>tq,$ZodCheckEndsWith:()=>JX,$ZodCheckGreaterThan:()=>f0,$ZodCheckIncludes:()=>HX,$ZodCheckLengthEquals:()=>YX,$ZodCheckLessThan:()=>y0,$ZodCheckLowerCase:()=>XX,$ZodCheckMaxLength:()=>sq,$ZodCheckMaxSize:()=>aq,$ZodCheckMimeType:()=>BX,$ZodCheckMinLength:()=>QX,$ZodCheckMinSize:()=>iq,$ZodCheckMultipleOf:()=>uq,$ZodCheckNumberFormat:()=>nq,$ZodCheckOverwrite:()=>NX,$ZodCheckProperty:()=>KX,$ZodCheckRegex:()=>qX,$ZodCheckSizeEquals:()=>eq,$ZodCheckStartsWith:()=>WX,$ZodCheckStringFormat:()=>cQ,$ZodCheckUpperCase:()=>GX,$ZodCodec:()=>r0,$ZodCustom:()=>DG,$ZodCustomStringFormat:()=>fX,$ZodDate:()=>tX,$ZodDefault:()=>FG,$ZodDiscriminatedUnion:()=>qG,$ZodE164:()=>hX,$ZodEmail:()=>MX,$ZodEmoji:()=>PX,$ZodEncodeError:()=>$Y,$ZodEnum:()=>JG,$ZodError:()=>D0,$ZodExactOptional:()=>UG,$ZodFile:()=>BG,$ZodFunction:()=>VG,$ZodGUID:()=>FX,$ZodIPv4:()=>kX,$ZodIPv6:()=>TX,$ZodISODate:()=>DX,$ZodISODateTime:()=>ZX,$ZodISODuration:()=>CX,$ZodISOTime:()=>bX,$ZodIntersection:()=>XG,$ZodJWT:()=>yX,$ZodKSUID:()=>RX,$ZodLazy:()=>ZG,$ZodLiteral:()=>KG,$ZodMAC:()=>SX,$ZodMap:()=>HG,$ZodNaN:()=>$G,$ZodNanoID:()=>$X,$ZodNever:()=>uX,$ZodNonOptional:()=>MG,$ZodNull:()=>oX,$ZodNullable:()=>wG,$ZodNumber:()=>c0,$ZodNumberFormat:()=>mX,$ZodObject:()=>sX,$ZodObjectJIT:()=>QG,$ZodOptional:()=>d0,$ZodPipe:()=>EG,$ZodPrefault:()=>AG,$ZodPromise:()=>RG,$ZodReadonly:()=>OG,$ZodRealError:()=>l,$ZodRecord:()=>GG,$ZodRegistry:()=>zG,$ZodSet:()=>WG,$ZodString:()=>lQ,$ZodStringFormat:()=>T,$ZodSuccess:()=>LG,$ZodSymbol:()=>lX,$ZodTemplateLiteral:()=>IG,$ZodTransform:()=>NG,$ZodTuple:()=>o0,$ZodType:()=>Z,$ZodULID:()=>IX,$ZodURL:()=>LX,$ZodUUID:()=>AX,$ZodUndefined:()=>pX,$ZodUnion:()=>VY,$ZodUnknown:()=>rX,$ZodVoid:()=>nX,$ZodXID:()=>VX,$ZodXor:()=>YG,$brand:()=>e6,$constructor:()=>U,$input:()=>SG,$output:()=>TG,Doc:()=>UX,JSONSchema:()=>GK,JSONSchemaGenerator:()=>XK,NEVER:()=>i6,TimePrecision:()=>xG,_any:()=>q8,_array:()=>B8,_base64:()=>U1,_base64url:()=>w1,_bigint:()=>tG,_boolean:()=>uG,_catch:()=>aJ,_check:()=>A8,_cidrv4:()=>B1,_cidrv6:()=>N1,_coercedBigint:()=>aG,_coercedBoolean:()=>nG,_coercedDate:()=>J8,_coercedNumber:()=>cG,_coercedString:()=>vG,_cuid:()=>q1,_cuid2:()=>X1,_custom:()=>U8,_date:()=>W8,_decode:()=>T0,_decodeAsync:()=>z0,_default:()=>uJ,_discriminatedUnion:()=>xJ,_e164:()=>F1,_email:()=>t0,_emoji:()=>Q1,_encode:()=>k0,_encodeAsync:()=>S0,_endsWith:()=>TY,_enum:()=>cJ,_file:()=>N8,_float32:()=>pG,_float64:()=>oG,_gt:()=>GQ,_gte:()=>m,_guid:()=>FY,_includes:()=>CY,_int:()=>lG,_int32:()=>dG,_int64:()=>iG,_intersection:()=>hJ,_ipv4:()=>J1,_ipv6:()=>K1,_isoDate:()=>gG,_isoDateTime:()=>hG,_isoDuration:()=>fG,_isoTime:()=>yG,_jwt:()=>A1,_ksuid:()=>W1,_lazy:()=>QK,_length:()=>dQ,_literal:()=>pJ,_lowercase:()=>DY,_lt:()=>XQ,_lte:()=>d,_mac:()=>_G,_map:()=>fJ,_max:()=>d,_maxLength:()=>oQ,_maxSize:()=>RQ,_mime:()=>SY,_min:()=>m,_minLength:()=>NQ,_minSize:()=>HQ,_multipleOf:()=>$Q,_nan:()=>K8,_nanoid:()=>Y1,_nativeEnum:()=>lJ,_negative:()=>L1,_never:()=>G8,_nonnegative:()=>$1,_nonoptional:()=>nJ,_nonpositive:()=>P1,_normalize:()=>zY,_null:()=>Y8,_nullable:()=>rJ,_number:()=>mG,_optional:()=>dJ,_overwrite:()=>YQ,_parse:()=>xQ,_parseAsync:()=>hQ,_pipe:()=>iJ,_positive:()=>M1,_promise:()=>YK,_property:()=>E1,_readonly:()=>eJ,_record:()=>yJ,_refine:()=>w8,_regex:()=>ZY,_safeDecode:()=>v0,_safeDecodeAsync:()=>x0,_safeEncode:()=>j0,_safeEncodeAsync:()=>_0,_safeParse:()=>gQ,_safeParseAsync:()=>yQ,_set:()=>mJ,_size:()=>pQ,_slugify:()=>xY,_startsWith:()=>kY,_string:()=>jG,_stringFormat:()=>rQ,_stringbool:()=>P8,_success:()=>tJ,_superRefine:()=>F8,_symbol:()=>sG,_templateLiteral:()=>sJ,_toLowerCase:()=>vY,_toUpperCase:()=>_Y,_transform:()=>oJ,_trim:()=>jY,_tuple:()=>gJ,_uint32:()=>rG,_uint64:()=>eG,_ulid:()=>G1,_undefined:()=>Q8,_union:()=>vJ,_unknown:()=>X8,_uppercase:()=>bY,_url:()=>RY,_uuid:()=>a0,_uuidv4:()=>i0,_uuidv6:()=>e0,_uuidv7:()=>s0,_void:()=>H8,_xid:()=>H1,_xor:()=>_J,clone:()=>u,config:()=>h,createStandardJSONSchemaMethod:()=>TQ,createToJSONSchemaMethod:()=>$8,decode:()=>AH,decodeAsync:()=>LH,describe:()=>M8,encode:()=>FH,encodeAsync:()=>MH,extractDefs:()=>OQ,finalize:()=>IQ,flattenError:()=>b0,formatError:()=>C0,globalConfig:()=>KY,globalRegistry:()=>o,initializeContext:()=>EQ,isValidBase64:()=>m0,isValidBase64URL:()=>_X,isValidJWT:()=>gX,locales:()=>u0,meta:()=>L8,parse:()=>$0,parseAsync:()=>E0,prettifyError:()=>wq,process:()=>k,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>$H,safeDecodeAsync:()=>OH,safeEncode:()=>PH,safeEncodeAsync:()=>EH,safeParse:()=>Fq,safeParseAsync:()=>Aq,toDotPath:()=>Uq,toJSONSchema:()=>q2,treeifyError:()=>Nq,util:()=>C,version:()=>wX});var i6=Object.freeze({status:"aborted"});function U(Q,q,G){function H(J,K){if(!J._zod)Object.defineProperty(J,"_zod",{value:{def:K,constr:W,traits:new Set},enumerable:!1});if(J._zod.traits.has(Q))return;J._zod.traits.add(Q),q(J,K);let B=W.prototype,N=Object.keys(B);for(let w=0;w<N.length;w++){let L=N[w];if(!(L in J))J[L]=B[L].bind(J)}}let Y=G?.Parent??Object;class X extends Y{}Object.defineProperty(X,"name",{value:Q});function W(J){var K;let B=G?.Parent?new X:this;H(B,J),(K=B._zod).deferred??(K.deferred=[]);for(let N of B._zod.deferred)N();return B}return Object.defineProperty(W,"init",{value:H}),Object.defineProperty(W,Symbol.hasInstance,{value:(J)=>{if(G?.Parent&&J instanceof G.Parent)return!0;return J?._zod?.traits?.has(Q)}}),Object.defineProperty(W,"name",{value:Q}),W}var e6=Symbol("zod_brand"),KQ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$Y=class extends Error{constructor(Q){super(`Encountered unidirectional transform during encode: ${Q}`);this.name="ZodEncodeError"}},KY={};function h(Q){if(Q)Object.assign(KY,Q);return KY}var C={};s(C,{BIGINT_FORMAT_RANGES:()=>Wq,Class:()=>wH,NUMBER_FORMAT_RANGES:()=>Hq,aborted:()=>JQ,allowsEval:()=>Yq,assert:()=>d9,assertEqual:()=>c9,assertIs:()=>p9,assertNever:()=>o9,assertNotEqual:()=>l9,assignProp:()=>WQ,base64ToUint8Array:()=>Jq,base64urlToUint8Array:()=>KH,cached:()=>_Q,captureStackTrace:()=>Z0,cleanEnum:()=>JH,cleanRegex:()=>EY,clone:()=>u,cloneDef:()=>u9,createTransparentProxy:()=>s9,defineLazy:()=>b,esc:()=>P0,escapeRegex:()=>e,extend:()=>qH,finalizeIssue:()=>r,floatSafeRemainder:()=>s6,getElementAtPath:()=>n9,getEnumValues:()=>R0,getLengthableOrigin:()=>IY,getParsedType:()=>e9,getSizableOrigin:()=>OY,hexToUint8Array:()=>NH,isObject:()=>LQ,isPlainObject:()=>BQ,issue:()=>UY,joinValues:()=>M,jsonStringifyReplacer:()=>BY,merge:()=>GH,mergeDefs:()=>QQ,normalizeParams:()=>P,nullish:()=>wQ,numKeys:()=>i9,objectClone:()=>r9,omit:()=>YH,optionalKeys:()=>Gq,parsedType:()=>V,partial:()=>HH,pick:()=>QH,prefixIssues:()=>a,primitiveTypes:()=>Xq,promiseAllObject:()=>t9,propertyKeyTypes:()=>NY,randomString:()=>a9,required:()=>WH,safeExtend:()=>XH,shallowClone:()=>qq,slugify:()=>Qq,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>Kq,uint8ArrayToBase64url:()=>BH,uint8ArrayToHex:()=>UH,unwrapMessage:()=>kQ});function c9(Q){return Q}function l9(Q){return Q}function p9(Q){}function o9(Q){throw Error("Unexpected value in exhaustive check")}function d9(Q){}function R0(Q){let q=Object.values(Q).filter((H)=>typeof H==="number");return Object.entries(Q).filter(([H,Y])=>q.indexOf(+H)===-1).map(([H,Y])=>Y)}function M(Q,q="|"){return Q.map((G)=>I(G)).join(q)}function BY(Q,q){if(typeof q==="bigint")return q.toString();return q}function _Q(Q){return{get value(){{let G=Q();return Object.defineProperty(this,"value",{value:G}),G}throw Error("cached value already set")}}}function wQ(Q){return Q===null||Q===void 0}function EY(Q){let q=Q.startsWith("^")?1:0,G=Q.endsWith("$")?Q.length-1:Q.length;return Q.slice(q,G)}function s6(Q,q){let G=(Q.toString().split(".")[1]||"").length,H=q.toString(),Y=(H.split(".")[1]||"").length;if(Y===0&&/\d?e-\d?/.test(H)){let K=H.match(/\d?e-(\d?)/);if(K?.[1])Y=Number.parseInt(K[1])}let X=G>Y?G:Y,W=Number.parseInt(Q.toFixed(X).replace(".","")),J=Number.parseInt(q.toFixed(X).replace(".",""));return W%J/10**X}var E6=Symbol("evaluating");function b(Q,q,G){let H=void 0;Object.defineProperty(Q,q,{get(){if(H===E6)return;if(H===void 0)H=E6,H=G();return H},set(Y){Object.defineProperty(Q,q,{value:Y})},configurable:!0})}function r9(Q){return Object.create(Object.getPrototypeOf(Q),Object.getOwnPropertyDescriptors(Q))}function WQ(Q,q,G){Object.defineProperty(Q,q,{value:G,writable:!0,enumerable:!0,configurable:!0})}function QQ(...Q){let q={};for(let G of Q){let H=Object.getOwnPropertyDescriptors(G);Object.assign(q,H)}return Object.defineProperties({},q)}function u9(Q){return QQ(Q._zod.def)}function n9(Q,q){if(!q)return Q;return q.reduce((G,H)=>G?.[H],Q)}function t9(Q){let q=Object.keys(Q),G=q.map((H)=>Q[H]);return Promise.all(G).then((H)=>{let Y={};for(let X=0;X<q.length;X++)Y[q[X]]=H[X];return Y})}function a9(Q=10){let G="";for(let H=0;H<Q;H++)G+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return G}function P0(Q){return JSON.stringify(Q)}function Qq(Q){return Q.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Z0="captureStackTrace"in Error?Error.captureStackTrace:(...Q)=>{};function LQ(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var Yq=_Q(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(Q){return!1}});function BQ(Q){if(LQ(Q)===!1)return!1;let q=Q.constructor;if(q===void 0)return!0;if(typeof q!=="function")return!0;let G=q.prototype;if(LQ(G)===!1)return!1;if(Object.prototype.hasOwnProperty.call(G,"isPrototypeOf")===!1)return!1;return!0}function qq(Q){if(BQ(Q))return{...Q};if(Array.isArray(Q))return[...Q];return Q}function i9(Q){let q=0;for(let G in Q)if(Object.prototype.hasOwnProperty.call(Q,G))q++;return q}var e9=(Q)=>{let q=typeof Q;switch(q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(Q)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(Q))return"array";if(Q===null)return"null";if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return"promise";if(typeof Map<"u"&&Q instanceof Map)return"map";if(typeof Set<"u"&&Q instanceof Set)return"set";if(typeof Date<"u"&&Q instanceof Date)return"date";if(typeof File<"u"&&Q instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${q}`)}},NY=new Set(["string","number","symbol"]),Xq=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e(Q){return Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(Q,q,G){let H=new Q._zod.constr(q??Q._zod.def);if(!q||G?.parent)H._zod.parent=Q;return H}function P(Q){let q=Q;if(!q)return{};if(typeof q==="string")return{error:()=>q};if(q?.message!==void 0){if(q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");q.error=q.message}if(delete q.message,typeof q.error==="string")return{...q,error:()=>q.error};return q}function s9(Q){let q;return new Proxy({},{get(G,H,Y){return q??(q=Q()),Reflect.get(q,H,Y)},set(G,H,Y,X){return q??(q=Q()),Reflect.set(q,H,Y,X)},has(G,H){return q??(q=Q()),Reflect.has(q,H)},deleteProperty(G,H){return q??(q=Q()),Reflect.deleteProperty(q,H)},ownKeys(G){return q??(q=Q()),Reflect.ownKeys(q)},getOwnPropertyDescriptor(G,H){return q??(q=Q()),Reflect.getOwnPropertyDescriptor(q,H)},defineProperty(G,H,Y){return q??(q=Q()),Reflect.defineProperty(q,H,Y)}})}function I(Q){if(typeof Q==="bigint")return Q.toString()+"n";if(typeof Q==="string")return`"${Q}"`;return`${Q}`}function Gq(Q){return Object.keys(Q).filter((q)=>{return Q[q]._zod.optin==="optional"&&Q[q]._zod.optout==="optional"})}var Hq={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wq={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function QH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;W[J]=G.shape[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function YH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={...Q._zod.def.shape};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;delete W[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function qH(Q,q){if(!BQ(q))throw Error("Invalid input to extend: expected a plain object");let G=Q._zod.def.checks;if(G&&G.length>0){let X=Q._zod.def.shape;for(let W in q)if(Object.getOwnPropertyDescriptor(X,W)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let Y=QQ(Q._zod.def,{get shape(){let X={...Q._zod.def.shape,...q};return WQ(this,"shape",X),X}});return u(Q,Y)}function XH(Q,q){if(!BQ(q))throw Error("Invalid input to safeExtend: expected a plain object");let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q};return WQ(this,"shape",H),H}});return u(Q,G)}function GH(Q,q){let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q._zod.def.shape};return WQ(this,"shape",H),H},get catchall(){return q._zod.def.catchall},checks:[]});return u(Q,G)}function HH(Q,q,G){let Y=q._zod.def.checks;if(Y&&Y.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let W=QQ(q._zod.def,{get shape(){let J=q._zod.def.shape,K={...J};if(G)for(let B in G){if(!(B in J))throw Error(`Unrecognized key: "${B}"`);if(!G[B])continue;K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B]}else for(let B in J)K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B];return WQ(this,"shape",K),K},checks:[]});return u(q,W)}function WH(Q,q,G){let H=QQ(q._zod.def,{get shape(){let Y=q._zod.def.shape,X={...Y};if(G)for(let W in G){if(!(W in X))throw Error(`Unrecognized key: "${W}"`);if(!G[W])continue;X[W]=new Q({type:"nonoptional",innerType:Y[W]})}else for(let W in Y)X[W]=new Q({type:"nonoptional",innerType:Y[W]});return WQ(this,"shape",X),X}});return u(q,H)}function JQ(Q,q=0){if(Q.aborted===!0)return!0;for(let G=q;G<Q.issues.length;G++)if(Q.issues[G]?.continue!==!0)return!0;return!1}function a(Q,q){return q.map((G)=>{var H;return(H=G).path??(H.path=[]),G.path.unshift(Q),G})}function kQ(Q){return typeof Q==="string"?Q:Q?.message}function r(Q,q,G){let H={...Q,path:Q.path??[]};if(!Q.message){let Y=kQ(Q.inst?._zod.def?.error?.(Q))??kQ(q?.error?.(Q))??kQ(G.customError?.(Q))??kQ(G.localeError?.(Q))??"Invalid input";H.message=Y}if(delete H.inst,delete H.continue,!q?.reportInput)delete H.input;return H}function OY(Q){if(Q instanceof Set)return"set";if(Q instanceof Map)return"map";if(Q instanceof File)return"file";return"unknown"}function IY(Q){if(Array.isArray(Q))return"array";if(typeof Q==="string")return"string";return"unknown"}function V(Q){let q=typeof Q;switch(q){case"number":return Number.isNaN(Q)?"nan":"number";case"object":{if(Q===null)return"null";if(Array.isArray(Q))return"array";let G=Q;if(G&&Object.getPrototypeOf(G)!==Object.prototype&&"constructor"in G&&G.constructor)return G.constructor.name}}return q}function UY(...Q){let[q,G,H]=Q;if(typeof q==="string")return{message:q,code:"custom",input:G,inst:H};return{...q}}function JH(Q){return Object.entries(Q).filter(([q,G])=>{return Number.isNaN(Number.parseInt(q,10))}).map((q)=>q[1])}function Jq(Q){let q=atob(Q),G=new Uint8Array(q.length);for(let H=0;H<q.length;H++)G[H]=q.charCodeAt(H);return G}function Kq(Q){let q="";for(let G=0;G<Q.length;G++)q+=String.fromCharCode(Q[G]);return btoa(q)}function KH(Q){let q=Q.replace(/-/g,"+").replace(/_/g,"/"),G="=".repeat((4-q.length%4)%4);return Jq(q+G)}function BH(Q){return Kq(Q).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function NH(Q){let q=Q.replace(/^0x/,"");if(q.length%2!==0)throw Error("Invalid hex string length");let G=new Uint8Array(q.length/2);for(let H=0;H<q.length;H+=2)G[H/2]=Number.parseInt(q.slice(H,H+2),16);return G}function UH(Q){return Array.from(Q).map((q)=>q.toString(16).padStart(2,"0")).join("")}var wH=class{constructor(...Q){}},Bq=(Q,q)=>{Q.name="$ZodError",Object.defineProperty(Q,"_zod",{value:Q._zod,enumerable:!1}),Object.defineProperty(Q,"issues",{value:q,enumerable:!1}),Q.message=JSON.stringify(q,BY,2),Object.defineProperty(Q,"toString",{value:()=>Q.message,enumerable:!1})},D0=U("$ZodError",Bq),l=U("$ZodError",Bq,{Parent:Error});function b0(Q,q=(G)=>G.message){let G={},H=[];for(let Y of Q.issues)if(Y.path.length>0)G[Y.path[0]]=G[Y.path[0]]||[],G[Y.path[0]].push(q(Y));else H.push(q(Y));return{formErrors:H,fieldErrors:G}}function C0(Q,q=(G)=>G.message){let G={_errors:[]},H=(Y)=>{for(let X of Y.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map((W)=>H({issues:W}));else if(X.code==="invalid_key")H({issues:X.issues});else if(X.code==="invalid_element")H({issues:X.issues});else if(X.path.length===0)G._errors.push(q(X));else{let W=G,J=0;while(J<X.path.length){let K=X.path[J];if(J!==X.path.length-1)W[K]=W[K]||{_errors:[]};else W[K]=W[K]||{_errors:[]},W[K]._errors.push(q(X));W=W[K],J++}}};return H(Q),G}function Nq(Q,q=(G)=>G.message){let G={errors:[]},H=(Y,X=[])=>{var W,J;for(let K of Y.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((B)=>H({issues:B},K.path));else if(K.code==="invalid_key")H({issues:K.issues},K.path);else if(K.code==="invalid_element")H({issues:K.issues},K.path);else{let B=[...X,...K.path];if(B.length===0){G.errors.push(q(K));continue}let N=G,w=0;while(w<B.length){let L=B[w],A=w===B.length-1;if(typeof L==="string")N.properties??(N.properties={}),(W=N.properties)[L]??(W[L]={errors:[]}),N=N.properties[L];else N.items??(N.items=[]),(J=N.items)[L]??(J[L]={errors:[]}),N=N.items[L];if(A)N.errors.push(q(K));w++}}};return H(Q),G}function Uq(Q){let q=[],G=Q.map((H)=>typeof H==="object"?H.key:H);for(let H of G)if(typeof H==="number")q.push(`[${H}]`);else if(typeof H==="symbol")q.push(`[${JSON.stringify(String(H))}]`);else if(/[^\w$]/.test(H))q.push(`[${JSON.stringify(H)}]`);else{if(q.length)q.push(".");q.push(H)}return q.join("")}function wq(Q){let q=[],G=[...Q.issues].sort((H,Y)=>(H.path??[]).length-(Y.path??[]).length);for(let H of G)if(q.push(`\u2716 ${H.message}`),H.path?.length)q.push(` \u2192 at ${Uq(H.path)}`);return q.join(`
2
+ import{kf as n6,lf as L0,mf as t6}from"./chunk-mxhb5adq.js";import{Hp as A0,Jp as JY,Kp as M0,Rp as o6,Sp as d6,Tp as r6,Xp as u6,Yo as F0,dp as PY,mp as CQ,rp as l6,vp as p6}from"./chunk-my3cswnp.js";import{dq as w0,kq as qQ}from"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-f83wv08n.js";var y9=Object.defineProperty,s=(Q,q)=>{for(var G in q)y9(Q,G,{get:q[G],enumerable:!0})},f9="2.0.1";function m9({tools:Q,toolChoice:q}){Q=Q?.length?Q:void 0;let G=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:G};let H=[];for(let X of Q)if(X.type==="provider")G.push({type:"unsupported",feature:`provider-defined tool ${X.id}`});else H.push({type:"function",function:{name:X.name,description:X.description,parameters:X.inputSchema,...X.strict!=null?{strict:X.strict}:{}}});if(q==null)return{tools:H,toolChoice:void 0,toolWarnings:G};let Y=q.type;switch(Y){case"auto":case"none":case"required":return{tools:H,toolChoice:Y,toolWarnings:G};case"tool":return{tools:H,toolChoice:{type:"function",function:{name:q.toolName}},toolWarnings:G};default:throw new qQ({functionality:`tool choice type: ${Y}`})}}function $6(Q){if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};return{inputTokens:{total:Q.total_tokens??void 0,noCache:Q.prompt_tokens??void 0,cacheRead:Q.prompt_tokens_details?.cached_tokens??void 0,cacheWrite:Q.prompt_tokens_details?.cache_creation_input_tokens??void 0},outputTokens:{total:Q.completion_tokens??void 0,text:void 0,reasoning:void 0},raw:Q}}var F={};s(F,{$brand:()=>e6,$input:()=>SG,$output:()=>TG,NEVER:()=>i6,TimePrecision:()=>xG,ZodAny:()=>_1,ZodArray:()=>y1,ZodBase64:()=>tY,ZodBase64URL:()=>aY,ZodBigInt:()=>iQ,ZodBigIntFormat:()=>sY,ZodBoolean:()=>aQ,ZodCIDRv4:()=>uY,ZodCIDRv6:()=>nY,ZodCUID:()=>mY,ZodCUID2:()=>cY,ZodCatch:()=>W6,ZodCodec:()=>K0,ZodCustom:()=>qY,ZodCustomStringFormat:()=>ZQ,ZodDate:()=>Y0,ZodDefault:()=>Q6,ZodDiscriminatedUnion:()=>m1,ZodE164:()=>iY,ZodEmail:()=>gY,ZodEmoji:()=>yY,ZodEnum:()=>VQ,ZodError:()=>HK,ZodExactOptional:()=>i1,ZodFile:()=>t1,ZodFirstPartyTypeKind:()=>V0,ZodFunction:()=>M6,ZodGUID:()=>SQ,ZodIPv4:()=>dY,ZodIPv6:()=>rY,ZodISODate:()=>Z1,ZodISODateTime:()=>R1,ZodISODuration:()=>b1,ZodISOTime:()=>D1,ZodIntersection:()=>c1,ZodIssueCode:()=>WK,ZodJWT:()=>eY,ZodKSUID:()=>oY,ZodLazy:()=>w6,ZodLiteral:()=>n1,ZodMAC:()=>C1,ZodMap:()=>r1,ZodNaN:()=>K6,ZodNanoID:()=>fY,ZodNever:()=>h1,ZodNonOptional:()=>W0,ZodNull:()=>j1,ZodNullable:()=>s1,ZodNumber:()=>tQ,ZodNumberFormat:()=>AQ,ZodObject:()=>sQ,ZodOptional:()=>H0,ZodPipe:()=>J0,ZodPrefault:()=>q6,ZodPromise:()=>A6,ZodReadonly:()=>B6,ZodRealError:()=>p,ZodRecord:()=>YY,ZodSet:()=>u1,ZodString:()=>uQ,ZodStringFormat:()=>S,ZodSuccess:()=>H6,ZodSymbol:()=>S1,ZodTemplateLiteral:()=>U6,ZodTransform:()=>a1,ZodTuple:()=>p1,ZodType:()=>D,ZodULID:()=>lY,ZodURL:()=>nQ,ZodUUID:()=>i,ZodUndefined:()=>z1,ZodUnion:()=>QY,ZodUnknown:()=>x1,ZodVoid:()=>g1,ZodXID:()=>pY,ZodXor:()=>f1,_ZodString:()=>hY,_default:()=>Y6,_function:()=>LY,any:()=>H9,array:()=>eQ,base64:()=>l2,base64url:()=>p2,bigint:()=>Q9,boolean:()=>T1,catch:()=>J6,check:()=>C9,cidrv4:()=>m2,cidrv6:()=>c2,clone:()=>u,codec:()=>Z9,coerce:()=>h9,config:()=>h,core:()=>a6,cuid:()=>j2,cuid2:()=>v2,custom:()=>k9,date:()=>J9,decode:()=>M2,decodeAsync:()=>P2,describe:()=>T9,discriminatedUnion:()=>F9,e164:()=>o2,email:()=>V2,emoji:()=>S2,encode:()=>A2,encodeAsync:()=>L2,endsWith:()=>TY,enum:()=>X0,exactOptional:()=>e1,file:()=>O9,flattenError:()=>b0,float32:()=>a2,float64:()=>i2,formatError:()=>C0,fromJSONSchema:()=>wK,function:()=>LY,getErrorMap:()=>KK,globalRegistry:()=>o,gt:()=>GQ,gte:()=>m,guid:()=>R2,hash:()=>t2,hex:()=>n2,hostname:()=>u2,httpUrl:()=>T2,includes:()=>CY,instanceof:()=>z9,int:()=>MY,int32:()=>e2,int64:()=>Y9,intersection:()=>l1,ipv4:()=>g2,ipv6:()=>f2,iso:()=>V1,json:()=>v9,jwt:()=>d2,keyof:()=>K9,ksuid:()=>h2,lazy:()=>F6,length:()=>dQ,literal:()=>E9,locales:()=>u0,looseObject:()=>U9,looseRecord:()=>M9,lowercase:()=>DY,lt:()=>XQ,lte:()=>d,mac:()=>y2,map:()=>L9,maxLength:()=>oQ,maxSize:()=>RQ,meta:()=>S9,mime:()=>SY,minLength:()=>NQ,minSize:()=>HQ,multipleOf:()=>$Q,nan:()=>R9,nanoid:()=>z2,nativeEnum:()=>$9,negative:()=>L1,never:()=>Q0,nonnegative:()=>$1,nonoptional:()=>G6,nonpositive:()=>P1,normalize:()=>zY,null:()=>v1,nullable:()=>jQ,nullish:()=>I9,number:()=>k1,object:()=>B9,optional:()=>zQ,overwrite:()=>YQ,parse:()=>N2,parseAsync:()=>U2,partialRecord:()=>A9,pipe:()=>vQ,positive:()=>M1,prefault:()=>X6,preprocess:()=>_9,prettifyError:()=>wq,promise:()=>b9,property:()=>E1,readonly:()=>N6,record:()=>d1,refine:()=>L6,regex:()=>ZY,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>E2,safeDecodeAsync:()=>I2,safeEncode:()=>$2,safeEncodeAsync:()=>O2,safeParse:()=>w2,safeParseAsync:()=>F2,set:()=>P9,setErrorMap:()=>JK,size:()=>pQ,slugify:()=>xY,startsWith:()=>kY,strictObject:()=>N9,string:()=>AY,stringFormat:()=>r2,stringbool:()=>j9,success:()=>V9,superRefine:()=>P6,symbol:()=>X9,templateLiteral:()=>D9,toJSONSchema:()=>q2,toLowerCase:()=>vY,toUpperCase:()=>_Y,transform:()=>G0,treeifyError:()=>Nq,trim:()=>jY,tuple:()=>o1,uint32:()=>s2,uint64:()=>q9,ulid:()=>_2,undefined:()=>G9,union:()=>q0,unknown:()=>UQ,uppercase:()=>bY,url:()=>k2,util:()=>C,uuid:()=>Z2,uuidv4:()=>D2,uuidv6:()=>b2,uuidv7:()=>C2,void:()=>W9,xid:()=>x2,xor:()=>w9});var a6={};s(a6,{$ZodAny:()=>dX,$ZodArray:()=>aX,$ZodAsyncError:()=>KQ,$ZodBase64:()=>vX,$ZodBase64URL:()=>xX,$ZodBigInt:()=>p0,$ZodBigIntFormat:()=>cX,$ZodBoolean:()=>l0,$ZodCIDRv4:()=>zX,$ZodCIDRv6:()=>jX,$ZodCUID:()=>EX,$ZodCUID2:()=>OX,$ZodCatch:()=>PG,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>tq,$ZodCheckEndsWith:()=>JX,$ZodCheckGreaterThan:()=>f0,$ZodCheckIncludes:()=>HX,$ZodCheckLengthEquals:()=>YX,$ZodCheckLessThan:()=>y0,$ZodCheckLowerCase:()=>XX,$ZodCheckMaxLength:()=>sq,$ZodCheckMaxSize:()=>aq,$ZodCheckMimeType:()=>BX,$ZodCheckMinLength:()=>QX,$ZodCheckMinSize:()=>iq,$ZodCheckMultipleOf:()=>uq,$ZodCheckNumberFormat:()=>nq,$ZodCheckOverwrite:()=>NX,$ZodCheckProperty:()=>KX,$ZodCheckRegex:()=>qX,$ZodCheckSizeEquals:()=>eq,$ZodCheckStartsWith:()=>WX,$ZodCheckStringFormat:()=>cQ,$ZodCheckUpperCase:()=>GX,$ZodCodec:()=>r0,$ZodCustom:()=>DG,$ZodCustomStringFormat:()=>fX,$ZodDate:()=>tX,$ZodDefault:()=>FG,$ZodDiscriminatedUnion:()=>qG,$ZodE164:()=>hX,$ZodEmail:()=>MX,$ZodEmoji:()=>PX,$ZodEncodeError:()=>$Y,$ZodEnum:()=>JG,$ZodError:()=>D0,$ZodExactOptional:()=>UG,$ZodFile:()=>BG,$ZodFunction:()=>VG,$ZodGUID:()=>FX,$ZodIPv4:()=>kX,$ZodIPv6:()=>TX,$ZodISODate:()=>DX,$ZodISODateTime:()=>ZX,$ZodISODuration:()=>CX,$ZodISOTime:()=>bX,$ZodIntersection:()=>XG,$ZodJWT:()=>yX,$ZodKSUID:()=>RX,$ZodLazy:()=>ZG,$ZodLiteral:()=>KG,$ZodMAC:()=>SX,$ZodMap:()=>HG,$ZodNaN:()=>$G,$ZodNanoID:()=>$X,$ZodNever:()=>uX,$ZodNonOptional:()=>MG,$ZodNull:()=>oX,$ZodNullable:()=>wG,$ZodNumber:()=>c0,$ZodNumberFormat:()=>mX,$ZodObject:()=>sX,$ZodObjectJIT:()=>QG,$ZodOptional:()=>d0,$ZodPipe:()=>EG,$ZodPrefault:()=>AG,$ZodPromise:()=>RG,$ZodReadonly:()=>OG,$ZodRealError:()=>l,$ZodRecord:()=>GG,$ZodRegistry:()=>zG,$ZodSet:()=>WG,$ZodString:()=>lQ,$ZodStringFormat:()=>T,$ZodSuccess:()=>LG,$ZodSymbol:()=>lX,$ZodTemplateLiteral:()=>IG,$ZodTransform:()=>NG,$ZodTuple:()=>o0,$ZodType:()=>Z,$ZodULID:()=>IX,$ZodURL:()=>LX,$ZodUUID:()=>AX,$ZodUndefined:()=>pX,$ZodUnion:()=>VY,$ZodUnknown:()=>rX,$ZodVoid:()=>nX,$ZodXID:()=>VX,$ZodXor:()=>YG,$brand:()=>e6,$constructor:()=>U,$input:()=>SG,$output:()=>TG,Doc:()=>UX,JSONSchema:()=>GK,JSONSchemaGenerator:()=>XK,NEVER:()=>i6,TimePrecision:()=>xG,_any:()=>q8,_array:()=>B8,_base64:()=>U1,_base64url:()=>w1,_bigint:()=>tG,_boolean:()=>uG,_catch:()=>aJ,_check:()=>A8,_cidrv4:()=>B1,_cidrv6:()=>N1,_coercedBigint:()=>aG,_coercedBoolean:()=>nG,_coercedDate:()=>J8,_coercedNumber:()=>cG,_coercedString:()=>vG,_cuid:()=>q1,_cuid2:()=>X1,_custom:()=>U8,_date:()=>W8,_decode:()=>T0,_decodeAsync:()=>z0,_default:()=>uJ,_discriminatedUnion:()=>xJ,_e164:()=>F1,_email:()=>t0,_emoji:()=>Q1,_encode:()=>k0,_encodeAsync:()=>S0,_endsWith:()=>TY,_enum:()=>cJ,_file:()=>N8,_float32:()=>pG,_float64:()=>oG,_gt:()=>GQ,_gte:()=>m,_guid:()=>FY,_includes:()=>CY,_int:()=>lG,_int32:()=>dG,_int64:()=>iG,_intersection:()=>hJ,_ipv4:()=>J1,_ipv6:()=>K1,_isoDate:()=>gG,_isoDateTime:()=>hG,_isoDuration:()=>fG,_isoTime:()=>yG,_jwt:()=>A1,_ksuid:()=>W1,_lazy:()=>QK,_length:()=>dQ,_literal:()=>pJ,_lowercase:()=>DY,_lt:()=>XQ,_lte:()=>d,_mac:()=>_G,_map:()=>fJ,_max:()=>d,_maxLength:()=>oQ,_maxSize:()=>RQ,_mime:()=>SY,_min:()=>m,_minLength:()=>NQ,_minSize:()=>HQ,_multipleOf:()=>$Q,_nan:()=>K8,_nanoid:()=>Y1,_nativeEnum:()=>lJ,_negative:()=>L1,_never:()=>G8,_nonnegative:()=>$1,_nonoptional:()=>nJ,_nonpositive:()=>P1,_normalize:()=>zY,_null:()=>Y8,_nullable:()=>rJ,_number:()=>mG,_optional:()=>dJ,_overwrite:()=>YQ,_parse:()=>xQ,_parseAsync:()=>hQ,_pipe:()=>iJ,_positive:()=>M1,_promise:()=>YK,_property:()=>E1,_readonly:()=>eJ,_record:()=>yJ,_refine:()=>w8,_regex:()=>ZY,_safeDecode:()=>v0,_safeDecodeAsync:()=>x0,_safeEncode:()=>j0,_safeEncodeAsync:()=>_0,_safeParse:()=>gQ,_safeParseAsync:()=>yQ,_set:()=>mJ,_size:()=>pQ,_slugify:()=>xY,_startsWith:()=>kY,_string:()=>jG,_stringFormat:()=>rQ,_stringbool:()=>P8,_success:()=>tJ,_superRefine:()=>F8,_symbol:()=>sG,_templateLiteral:()=>sJ,_toLowerCase:()=>vY,_toUpperCase:()=>_Y,_transform:()=>oJ,_trim:()=>jY,_tuple:()=>gJ,_uint32:()=>rG,_uint64:()=>eG,_ulid:()=>G1,_undefined:()=>Q8,_union:()=>vJ,_unknown:()=>X8,_uppercase:()=>bY,_url:()=>RY,_uuid:()=>a0,_uuidv4:()=>i0,_uuidv6:()=>e0,_uuidv7:()=>s0,_void:()=>H8,_xid:()=>H1,_xor:()=>_J,clone:()=>u,config:()=>h,createStandardJSONSchemaMethod:()=>TQ,createToJSONSchemaMethod:()=>$8,decode:()=>AH,decodeAsync:()=>LH,describe:()=>M8,encode:()=>FH,encodeAsync:()=>MH,extractDefs:()=>OQ,finalize:()=>IQ,flattenError:()=>b0,formatError:()=>C0,globalConfig:()=>KY,globalRegistry:()=>o,initializeContext:()=>EQ,isValidBase64:()=>m0,isValidBase64URL:()=>_X,isValidJWT:()=>gX,locales:()=>u0,meta:()=>L8,parse:()=>$0,parseAsync:()=>E0,prettifyError:()=>wq,process:()=>k,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>$H,safeDecodeAsync:()=>OH,safeEncode:()=>PH,safeEncodeAsync:()=>EH,safeParse:()=>Fq,safeParseAsync:()=>Aq,toDotPath:()=>Uq,toJSONSchema:()=>q2,treeifyError:()=>Nq,util:()=>C,version:()=>wX});var i6=Object.freeze({status:"aborted"});function U(Q,q,G){function H(J,K){if(!J._zod)Object.defineProperty(J,"_zod",{value:{def:K,constr:W,traits:new Set},enumerable:!1});if(J._zod.traits.has(Q))return;J._zod.traits.add(Q),q(J,K);let B=W.prototype,N=Object.keys(B);for(let w=0;w<N.length;w++){let L=N[w];if(!(L in J))J[L]=B[L].bind(J)}}let Y=G?.Parent??Object;class X extends Y{}Object.defineProperty(X,"name",{value:Q});function W(J){var K;let B=G?.Parent?new X:this;H(B,J),(K=B._zod).deferred??(K.deferred=[]);for(let N of B._zod.deferred)N();return B}return Object.defineProperty(W,"init",{value:H}),Object.defineProperty(W,Symbol.hasInstance,{value:(J)=>{if(G?.Parent&&J instanceof G.Parent)return!0;return J?._zod?.traits?.has(Q)}}),Object.defineProperty(W,"name",{value:Q}),W}var e6=Symbol("zod_brand"),KQ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$Y=class extends Error{constructor(Q){super(`Encountered unidirectional transform during encode: ${Q}`);this.name="ZodEncodeError"}},KY={};function h(Q){if(Q)Object.assign(KY,Q);return KY}var C={};s(C,{BIGINT_FORMAT_RANGES:()=>Wq,Class:()=>wH,NUMBER_FORMAT_RANGES:()=>Hq,aborted:()=>JQ,allowsEval:()=>Yq,assert:()=>d9,assertEqual:()=>c9,assertIs:()=>p9,assertNever:()=>o9,assertNotEqual:()=>l9,assignProp:()=>WQ,base64ToUint8Array:()=>Jq,base64urlToUint8Array:()=>KH,cached:()=>_Q,captureStackTrace:()=>Z0,cleanEnum:()=>JH,cleanRegex:()=>EY,clone:()=>u,cloneDef:()=>u9,createTransparentProxy:()=>s9,defineLazy:()=>b,esc:()=>P0,escapeRegex:()=>e,extend:()=>qH,finalizeIssue:()=>r,floatSafeRemainder:()=>s6,getElementAtPath:()=>n9,getEnumValues:()=>R0,getLengthableOrigin:()=>IY,getParsedType:()=>e9,getSizableOrigin:()=>OY,hexToUint8Array:()=>NH,isObject:()=>LQ,isPlainObject:()=>BQ,issue:()=>UY,joinValues:()=>M,jsonStringifyReplacer:()=>BY,merge:()=>GH,mergeDefs:()=>QQ,normalizeParams:()=>P,nullish:()=>wQ,numKeys:()=>i9,objectClone:()=>r9,omit:()=>YH,optionalKeys:()=>Gq,parsedType:()=>V,partial:()=>HH,pick:()=>QH,prefixIssues:()=>a,primitiveTypes:()=>Xq,promiseAllObject:()=>t9,propertyKeyTypes:()=>NY,randomString:()=>a9,required:()=>WH,safeExtend:()=>XH,shallowClone:()=>qq,slugify:()=>Qq,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>Kq,uint8ArrayToBase64url:()=>BH,uint8ArrayToHex:()=>UH,unwrapMessage:()=>kQ});function c9(Q){return Q}function l9(Q){return Q}function p9(Q){}function o9(Q){throw Error("Unexpected value in exhaustive check")}function d9(Q){}function R0(Q){let q=Object.values(Q).filter((H)=>typeof H==="number");return Object.entries(Q).filter(([H,Y])=>q.indexOf(+H)===-1).map(([H,Y])=>Y)}function M(Q,q="|"){return Q.map((G)=>I(G)).join(q)}function BY(Q,q){if(typeof q==="bigint")return q.toString();return q}function _Q(Q){return{get value(){{let G=Q();return Object.defineProperty(this,"value",{value:G}),G}throw Error("cached value already set")}}}function wQ(Q){return Q===null||Q===void 0}function EY(Q){let q=Q.startsWith("^")?1:0,G=Q.endsWith("$")?Q.length-1:Q.length;return Q.slice(q,G)}function s6(Q,q){let G=(Q.toString().split(".")[1]||"").length,H=q.toString(),Y=(H.split(".")[1]||"").length;if(Y===0&&/\d?e-\d?/.test(H)){let K=H.match(/\d?e-(\d?)/);if(K?.[1])Y=Number.parseInt(K[1])}let X=G>Y?G:Y,W=Number.parseInt(Q.toFixed(X).replace(".","")),J=Number.parseInt(q.toFixed(X).replace(".",""));return W%J/10**X}var E6=Symbol("evaluating");function b(Q,q,G){let H=void 0;Object.defineProperty(Q,q,{get(){if(H===E6)return;if(H===void 0)H=E6,H=G();return H},set(Y){Object.defineProperty(Q,q,{value:Y})},configurable:!0})}function r9(Q){return Object.create(Object.getPrototypeOf(Q),Object.getOwnPropertyDescriptors(Q))}function WQ(Q,q,G){Object.defineProperty(Q,q,{value:G,writable:!0,enumerable:!0,configurable:!0})}function QQ(...Q){let q={};for(let G of Q){let H=Object.getOwnPropertyDescriptors(G);Object.assign(q,H)}return Object.defineProperties({},q)}function u9(Q){return QQ(Q._zod.def)}function n9(Q,q){if(!q)return Q;return q.reduce((G,H)=>G?.[H],Q)}function t9(Q){let q=Object.keys(Q),G=q.map((H)=>Q[H]);return Promise.all(G).then((H)=>{let Y={};for(let X=0;X<q.length;X++)Y[q[X]]=H[X];return Y})}function a9(Q=10){let G="";for(let H=0;H<Q;H++)G+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return G}function P0(Q){return JSON.stringify(Q)}function Qq(Q){return Q.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Z0="captureStackTrace"in Error?Error.captureStackTrace:(...Q)=>{};function LQ(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var Yq=_Q(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(Q){return!1}});function BQ(Q){if(LQ(Q)===!1)return!1;let q=Q.constructor;if(q===void 0)return!0;if(typeof q!=="function")return!0;let G=q.prototype;if(LQ(G)===!1)return!1;if(Object.prototype.hasOwnProperty.call(G,"isPrototypeOf")===!1)return!1;return!0}function qq(Q){if(BQ(Q))return{...Q};if(Array.isArray(Q))return[...Q];return Q}function i9(Q){let q=0;for(let G in Q)if(Object.prototype.hasOwnProperty.call(Q,G))q++;return q}var e9=(Q)=>{let q=typeof Q;switch(q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(Q)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(Q))return"array";if(Q===null)return"null";if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return"promise";if(typeof Map<"u"&&Q instanceof Map)return"map";if(typeof Set<"u"&&Q instanceof Set)return"set";if(typeof Date<"u"&&Q instanceof Date)return"date";if(typeof File<"u"&&Q instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${q}`)}},NY=new Set(["string","number","symbol"]),Xq=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e(Q){return Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(Q,q,G){let H=new Q._zod.constr(q??Q._zod.def);if(!q||G?.parent)H._zod.parent=Q;return H}function P(Q){let q=Q;if(!q)return{};if(typeof q==="string")return{error:()=>q};if(q?.message!==void 0){if(q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");q.error=q.message}if(delete q.message,typeof q.error==="string")return{...q,error:()=>q.error};return q}function s9(Q){let q;return new Proxy({},{get(G,H,Y){return q??(q=Q()),Reflect.get(q,H,Y)},set(G,H,Y,X){return q??(q=Q()),Reflect.set(q,H,Y,X)},has(G,H){return q??(q=Q()),Reflect.has(q,H)},deleteProperty(G,H){return q??(q=Q()),Reflect.deleteProperty(q,H)},ownKeys(G){return q??(q=Q()),Reflect.ownKeys(q)},getOwnPropertyDescriptor(G,H){return q??(q=Q()),Reflect.getOwnPropertyDescriptor(q,H)},defineProperty(G,H,Y){return q??(q=Q()),Reflect.defineProperty(q,H,Y)}})}function I(Q){if(typeof Q==="bigint")return Q.toString()+"n";if(typeof Q==="string")return`"${Q}"`;return`${Q}`}function Gq(Q){return Object.keys(Q).filter((q)=>{return Q[q]._zod.optin==="optional"&&Q[q]._zod.optout==="optional"})}var Hq={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wq={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function QH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;W[J]=G.shape[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function YH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={...Q._zod.def.shape};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;delete W[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function qH(Q,q){if(!BQ(q))throw Error("Invalid input to extend: expected a plain object");let G=Q._zod.def.checks;if(G&&G.length>0){let X=Q._zod.def.shape;for(let W in q)if(Object.getOwnPropertyDescriptor(X,W)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let Y=QQ(Q._zod.def,{get shape(){let X={...Q._zod.def.shape,...q};return WQ(this,"shape",X),X}});return u(Q,Y)}function XH(Q,q){if(!BQ(q))throw Error("Invalid input to safeExtend: expected a plain object");let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q};return WQ(this,"shape",H),H}});return u(Q,G)}function GH(Q,q){let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q._zod.def.shape};return WQ(this,"shape",H),H},get catchall(){return q._zod.def.catchall},checks:[]});return u(Q,G)}function HH(Q,q,G){let Y=q._zod.def.checks;if(Y&&Y.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let W=QQ(q._zod.def,{get shape(){let J=q._zod.def.shape,K={...J};if(G)for(let B in G){if(!(B in J))throw Error(`Unrecognized key: "${B}"`);if(!G[B])continue;K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B]}else for(let B in J)K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B];return WQ(this,"shape",K),K},checks:[]});return u(q,W)}function WH(Q,q,G){let H=QQ(q._zod.def,{get shape(){let Y=q._zod.def.shape,X={...Y};if(G)for(let W in G){if(!(W in X))throw Error(`Unrecognized key: "${W}"`);if(!G[W])continue;X[W]=new Q({type:"nonoptional",innerType:Y[W]})}else for(let W in Y)X[W]=new Q({type:"nonoptional",innerType:Y[W]});return WQ(this,"shape",X),X}});return u(q,H)}function JQ(Q,q=0){if(Q.aborted===!0)return!0;for(let G=q;G<Q.issues.length;G++)if(Q.issues[G]?.continue!==!0)return!0;return!1}function a(Q,q){return q.map((G)=>{var H;return(H=G).path??(H.path=[]),G.path.unshift(Q),G})}function kQ(Q){return typeof Q==="string"?Q:Q?.message}function r(Q,q,G){let H={...Q,path:Q.path??[]};if(!Q.message){let Y=kQ(Q.inst?._zod.def?.error?.(Q))??kQ(q?.error?.(Q))??kQ(G.customError?.(Q))??kQ(G.localeError?.(Q))??"Invalid input";H.message=Y}if(delete H.inst,delete H.continue,!q?.reportInput)delete H.input;return H}function OY(Q){if(Q instanceof Set)return"set";if(Q instanceof Map)return"map";if(Q instanceof File)return"file";return"unknown"}function IY(Q){if(Array.isArray(Q))return"array";if(typeof Q==="string")return"string";return"unknown"}function V(Q){let q=typeof Q;switch(q){case"number":return Number.isNaN(Q)?"nan":"number";case"object":{if(Q===null)return"null";if(Array.isArray(Q))return"array";let G=Q;if(G&&Object.getPrototypeOf(G)!==Object.prototype&&"constructor"in G&&G.constructor)return G.constructor.name}}return q}function UY(...Q){let[q,G,H]=Q;if(typeof q==="string")return{message:q,code:"custom",input:G,inst:H};return{...q}}function JH(Q){return Object.entries(Q).filter(([q,G])=>{return Number.isNaN(Number.parseInt(q,10))}).map((q)=>q[1])}function Jq(Q){let q=atob(Q),G=new Uint8Array(q.length);for(let H=0;H<q.length;H++)G[H]=q.charCodeAt(H);return G}function Kq(Q){let q="";for(let G=0;G<Q.length;G++)q+=String.fromCharCode(Q[G]);return btoa(q)}function KH(Q){let q=Q.replace(/-/g,"+").replace(/_/g,"/"),G="=".repeat((4-q.length%4)%4);return Jq(q+G)}function BH(Q){return Kq(Q).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function NH(Q){let q=Q.replace(/^0x/,"");if(q.length%2!==0)throw Error("Invalid hex string length");let G=new Uint8Array(q.length/2);for(let H=0;H<q.length;H+=2)G[H/2]=Number.parseInt(q.slice(H,H+2),16);return G}function UH(Q){return Array.from(Q).map((q)=>q.toString(16).padStart(2,"0")).join("")}var wH=class{constructor(...Q){}},Bq=(Q,q)=>{Q.name="$ZodError",Object.defineProperty(Q,"_zod",{value:Q._zod,enumerable:!1}),Object.defineProperty(Q,"issues",{value:q,enumerable:!1}),Q.message=JSON.stringify(q,BY,2),Object.defineProperty(Q,"toString",{value:()=>Q.message,enumerable:!1})},D0=U("$ZodError",Bq),l=U("$ZodError",Bq,{Parent:Error});function b0(Q,q=(G)=>G.message){let G={},H=[];for(let Y of Q.issues)if(Y.path.length>0)G[Y.path[0]]=G[Y.path[0]]||[],G[Y.path[0]].push(q(Y));else H.push(q(Y));return{formErrors:H,fieldErrors:G}}function C0(Q,q=(G)=>G.message){let G={_errors:[]},H=(Y)=>{for(let X of Y.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map((W)=>H({issues:W}));else if(X.code==="invalid_key")H({issues:X.issues});else if(X.code==="invalid_element")H({issues:X.issues});else if(X.path.length===0)G._errors.push(q(X));else{let W=G,J=0;while(J<X.path.length){let K=X.path[J];if(J!==X.path.length-1)W[K]=W[K]||{_errors:[]};else W[K]=W[K]||{_errors:[]},W[K]._errors.push(q(X));W=W[K],J++}}};return H(Q),G}function Nq(Q,q=(G)=>G.message){let G={errors:[]},H=(Y,X=[])=>{var W,J;for(let K of Y.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((B)=>H({issues:B},K.path));else if(K.code==="invalid_key")H({issues:K.issues},K.path);else if(K.code==="invalid_element")H({issues:K.issues},K.path);else{let B=[...X,...K.path];if(B.length===0){G.errors.push(q(K));continue}let N=G,w=0;while(w<B.length){let L=B[w],A=w===B.length-1;if(typeof L==="string")N.properties??(N.properties={}),(W=N.properties)[L]??(W[L]={errors:[]}),N=N.properties[L];else N.items??(N.items=[]),(J=N.items)[L]??(J[L]={errors:[]}),N=N.items[L];if(A)N.errors.push(q(K));w++}}};return H(Q),G}function Uq(Q){let q=[],G=Q.map((H)=>typeof H==="object"?H.key:H);for(let H of G)if(typeof H==="number")q.push(`[${H}]`);else if(typeof H==="symbol")q.push(`[${JSON.stringify(String(H))}]`);else if(/[^\w$]/.test(H))q.push(`[${JSON.stringify(H)}]`);else{if(q.length)q.push(".");q.push(H)}return q.join("")}function wq(Q){let q=[],G=[...Q.issues].sort((H,Y)=>(H.path??[]).length-(Y.path??[]).length);for(let H of G)if(q.push(`\u2716 ${H.message}`),H.path?.length)q.push(` \u2192 at ${Uq(H.path)}`);return q.join(`
3
3
  `)}var xQ=(Q)=>(q,G,H,Y)=>{let X=H?Object.assign(H,{async:!1}):{async:!1},W=q._zod.run({value:G,issues:[]},X);if(W instanceof Promise)throw new KQ;if(W.issues.length){let J=new(Y?.Err??Q)(W.issues.map((K)=>r(K,X,h())));throw Z0(J,Y?.callee),J}return W.value},$0=xQ(l),hQ=(Q)=>async(q,G,H,Y)=>{let X=H?Object.assign(H,{async:!0}):{async:!0},W=q._zod.run({value:G,issues:[]},X);if(W instanceof Promise)W=await W;if(W.issues.length){let J=new(Y?.Err??Q)(W.issues.map((K)=>r(K,X,h())));throw Z0(J,Y?.callee),J}return W.value},E0=hQ(l),gQ=(Q)=>(q,G,H)=>{let Y=H?{...H,async:!1}:{async:!1},X=q._zod.run({value:G,issues:[]},Y);if(X instanceof Promise)throw new KQ;return X.issues.length?{success:!1,error:new(Q??D0)(X.issues.map((W)=>r(W,Y,h())))}:{success:!0,data:X.value}},Fq=gQ(l),yQ=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{async:!0}):{async:!0},X=q._zod.run({value:G,issues:[]},Y);if(X instanceof Promise)X=await X;return X.issues.length?{success:!1,error:new Q(X.issues.map((W)=>r(W,Y,h())))}:{success:!0,data:X.value}},Aq=yQ(l),k0=(Q)=>(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return xQ(Q)(q,G,Y)},FH=k0(l),T0=(Q)=>(q,G,H)=>{return xQ(Q)(q,G,H)},AH=T0(l),S0=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return hQ(Q)(q,G,Y)},MH=S0(l),z0=(Q)=>async(q,G,H)=>{return hQ(Q)(q,G,H)},LH=z0(l),j0=(Q)=>(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return gQ(Q)(q,G,Y)},PH=j0(l),v0=(Q)=>(q,G,H)=>{return gQ(Q)(q,G,H)},$H=v0(l),_0=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return yQ(Q)(q,G,Y)},EH=_0(l),x0=(Q)=>async(q,G,H)=>{return yQ(Q)(q,G,H)},OH=x0(l),FQ={};s(FQ,{base64:()=>zq,base64url:()=>h0,bigint:()=>fq,boolean:()=>cq,browserEmail:()=>kH,cidrv4:()=>Tq,cidrv6:()=>Sq,cuid:()=>Mq,cuid2:()=>Lq,date:()=>_q,datetime:()=>gq,domain:()=>zH,duration:()=>Iq,e164:()=>jq,email:()=>Rq,emoji:()=>Dq,extendedDuration:()=>IH,guid:()=>Vq,hex:()=>jH,hostname:()=>SH,html5Email:()=>DH,idnEmail:()=>CH,integer:()=>mq,ipv4:()=>bq,ipv6:()=>Cq,ksuid:()=>Eq,lowercase:()=>oq,mac:()=>kq,md5_base64:()=>_H,md5_base64url:()=>xH,md5_hex:()=>vH,nanoid:()=>Oq,null:()=>lq,number:()=>g0,rfc5322Email:()=>bH,sha1_base64:()=>gH,sha1_base64url:()=>yH,sha1_hex:()=>hH,sha256_base64:()=>mH,sha256_base64url:()=>cH,sha256_hex:()=>fH,sha384_base64:()=>pH,sha384_base64url:()=>oH,sha384_hex:()=>lH,sha512_base64:()=>rH,sha512_base64url:()=>uH,sha512_hex:()=>dH,string:()=>yq,time:()=>hq,ulid:()=>Pq,undefined:()=>pq,unicodeEmail:()=>Zq,uppercase:()=>dq,uuid:()=>PQ,uuid4:()=>VH,uuid6:()=>RH,uuid7:()=>ZH,xid:()=>$q});var Mq=/^[cC][^\s-]{8,}$/,Lq=/^[0-9a-z]+$/,Pq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$q=/^[0-9a-vA-V]{20}$/,Eq=/^[A-Za-z0-9]{27}$/,Oq=/^[a-zA-Z0-9_-]{21}$/,Iq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,IH=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,PQ=(Q)=>{if(!Q)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${Q}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},VH=PQ(4),RH=PQ(6),ZH=PQ(7),Rq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DH=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bH=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Zq=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,CH=Zq,kH=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,TH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dq(){return new RegExp(TH,"u")}var bq=/^(?:(?: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])$/,Cq=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,kq=(Q)=>{let q=e(Q??":");return new RegExp(`^(?:[0-9A-F]{2}${q}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${q}){5}[0-9a-f]{2}$`)},Tq=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Sq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zq=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,h0=/^[A-Za-z0-9_-]*$/,SH=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zH=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,jq=/^\+[1-9]\d{6,14}$/,vq="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_q=new RegExp(`^${vq}$`);function xq(Q){return typeof Q.precision==="number"?Q.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":Q.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${Q.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function hq(Q){return new RegExp(`^${xq(Q)}$`)}function gq(Q){let q=xq({precision:Q.precision}),G=["Z"];if(Q.local)G.push("");if(Q.offset)G.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let H=`${q}(?:${G.join("|")})`;return new RegExp(`^${vq}T(?:${H})$`)}var yq=(Q)=>{let q=Q?`[\\s\\S]{${Q?.minimum??0},${Q?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${q}$`)},fq=/^-?\d+n?$/,mq=/^-?\d+$/,g0=/^-?\d+(?:\.\d+)?$/,cq=/^(?:true|false)$/i,lq=/^null$/i,pq=/^undefined$/i,oq=/^[^A-Z]*$/,dq=/^[^a-z]*$/,jH=/^[0-9a-fA-F]*$/;function fQ(Q,q){return new RegExp(`^[A-Za-z0-9+/]{${Q}}${q}$`)}function mQ(Q){return new RegExp(`^[A-Za-z0-9_-]{${Q}}$`)}var vH=/^[0-9a-fA-F]{32}$/,_H=fQ(22,"=="),xH=mQ(22),hH=/^[0-9a-fA-F]{40}$/,gH=fQ(27,"="),yH=mQ(27),fH=/^[0-9a-fA-F]{64}$/,mH=fQ(43,"="),cH=mQ(43),lH=/^[0-9a-fA-F]{96}$/,pH=fQ(64,""),oH=mQ(64),dH=/^[0-9a-fA-F]{128}$/,rH=fQ(86,"=="),uH=mQ(86),j=U("$ZodCheck",(Q,q)=>{var G;Q._zod??(Q._zod={}),Q._zod.def=q,(G=Q._zod).onattach??(G.onattach=[])}),rq={number:"number",bigint:"bigint",object:"date"},y0=U("$ZodCheckLessThan",(Q,q)=>{j.init(Q,q);let G=rq[typeof q.value];Q._zod.onattach.push((H)=>{let Y=H._zod.bag,X=(q.inclusive?Y.maximum:Y.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(q.value<X)if(q.inclusive)Y.maximum=q.value;else Y.exclusiveMaximum=q.value}),Q._zod.check=(H)=>{if(q.inclusive?H.value<=q.value:H.value<q.value)return;H.issues.push({origin:G,code:"too_big",maximum:typeof q.value==="object"?q.value.getTime():q.value,input:H.value,inclusive:q.inclusive,inst:Q,continue:!q.abort})}}),f0=U("$ZodCheckGreaterThan",(Q,q)=>{j.init(Q,q);let G=rq[typeof q.value];Q._zod.onattach.push((H)=>{let Y=H._zod.bag,X=(q.inclusive?Y.minimum:Y.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(q.value>X)if(q.inclusive)Y.minimum=q.value;else Y.exclusiveMinimum=q.value}),Q._zod.check=(H)=>{if(q.inclusive?H.value>=q.value:H.value>q.value)return;H.issues.push({origin:G,code:"too_small",minimum:typeof q.value==="object"?q.value.getTime():q.value,input:H.value,inclusive:q.inclusive,inst:Q,continue:!q.abort})}}),uq=U("$ZodCheckMultipleOf",(Q,q)=>{j.init(Q,q),Q._zod.onattach.push((G)=>{var H;(H=G._zod.bag).multipleOf??(H.multipleOf=q.value)}),Q._zod.check=(G)=>{if(typeof G.value!==typeof q.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof G.value==="bigint"?G.value%q.value===BigInt(0):s6(G.value,q.value)===0)return;G.issues.push({origin:typeof G.value,code:"not_multiple_of",divisor:q.value,input:G.value,inst:Q,continue:!q.abort})}}),nq=U("$ZodCheckNumberFormat",(Q,q)=>{j.init(Q,q),q.format=q.format||"float64";let G=q.format?.includes("int"),H=G?"int":"number",[Y,X]=Hq[q.format];Q._zod.onattach.push((W)=>{let J=W._zod.bag;if(J.format=q.format,J.minimum=Y,J.maximum=X,G)J.pattern=mq}),Q._zod.check=(W)=>{let J=W.value;if(G){if(!Number.isInteger(J)){W.issues.push({expected:H,format:q.format,code:"invalid_type",continue:!1,input:J,inst:Q});return}if(!Number.isSafeInteger(J)){if(J>0)W.issues.push({input:J,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:Q,origin:H,inclusive:!0,continue:!q.abort});else W.issues.push({input:J,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:Q,origin:H,inclusive:!0,continue:!q.abort});return}}if(J<Y)W.issues.push({origin:"number",input:J,code:"too_small",minimum:Y,inclusive:!0,inst:Q,continue:!q.abort});if(J>X)W.issues.push({origin:"number",input:J,code:"too_big",maximum:X,inclusive:!0,inst:Q,continue:!q.abort})}}),tq=U("$ZodCheckBigIntFormat",(Q,q)=>{j.init(Q,q);let[G,H]=Wq[q.format];Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.format=q.format,X.minimum=G,X.maximum=H}),Q._zod.check=(Y)=>{let X=Y.value;if(X<G)Y.issues.push({origin:"bigint",input:X,code:"too_small",minimum:G,inclusive:!0,inst:Q,continue:!q.abort});if(X>H)Y.issues.push({origin:"bigint",input:X,code:"too_big",maximum:H,inclusive:!0,inst:Q,continue:!q.abort})}}),aq=U("$ZodCheckMaxSize",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)H._zod.bag.maximum=q.maximum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.size<=q.maximum)return;H.issues.push({origin:OY(Y),code:"too_big",maximum:q.maximum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),iq=U("$ZodCheckMinSize",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)H._zod.bag.minimum=q.minimum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.size>=q.minimum)return;H.issues.push({origin:OY(Y),code:"too_small",minimum:q.minimum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),eq=U("$ZodCheckSizeEquals",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.minimum=q.size,Y.maximum=q.size,Y.size=q.size}),Q._zod.check=(H)=>{let Y=H.value,X=Y.size;if(X===q.size)return;let W=X>q.size;H.issues.push({origin:OY(Y),...W?{code:"too_big",maximum:q.size}:{code:"too_small",minimum:q.size},inclusive:!0,exact:!0,input:H.value,inst:Q,continue:!q.abort})}}),sq=U("$ZodCheckMaxLength",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)H._zod.bag.maximum=q.maximum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.length<=q.maximum)return;let W=IY(Y);H.issues.push({origin:W,code:"too_big",maximum:q.maximum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),QX=U("$ZodCheckMinLength",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)H._zod.bag.minimum=q.minimum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.length>=q.minimum)return;let W=IY(Y);H.issues.push({origin:W,code:"too_small",minimum:q.minimum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),YX=U("$ZodCheckLengthEquals",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.minimum=q.length,Y.maximum=q.length,Y.length=q.length}),Q._zod.check=(H)=>{let Y=H.value,X=Y.length;if(X===q.length)return;let W=IY(Y),J=X>q.length;H.issues.push({origin:W,...J?{code:"too_big",maximum:q.length}:{code:"too_small",minimum:q.length},inclusive:!0,exact:!0,input:H.value,inst:Q,continue:!q.abort})}}),cQ=U("$ZodCheckStringFormat",(Q,q)=>{var G,H;if(j.init(Q,q),Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;if(X.format=q.format,q.pattern)X.patterns??(X.patterns=new Set),X.patterns.add(q.pattern)}),q.pattern)(G=Q._zod).check??(G.check=(Y)=>{if(q.pattern.lastIndex=0,q.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:q.format,input:Y.value,...q.pattern?{pattern:q.pattern.toString()}:{},inst:Q,continue:!q.abort})});else(H=Q._zod).check??(H.check=()=>{})}),qX=U("$ZodCheckRegex",(Q,q)=>{cQ.init(Q,q),Q._zod.check=(G)=>{if(q.pattern.lastIndex=0,q.pattern.test(G.value))return;G.issues.push({origin:"string",code:"invalid_format",format:"regex",input:G.value,pattern:q.pattern.toString(),inst:Q,continue:!q.abort})}}),XX=U("$ZodCheckLowerCase",(Q,q)=>{q.pattern??(q.pattern=oq),cQ.init(Q,q)}),GX=U("$ZodCheckUpperCase",(Q,q)=>{q.pattern??(q.pattern=dq),cQ.init(Q,q)}),HX=U("$ZodCheckIncludes",(Q,q)=>{j.init(Q,q);let G=e(q.includes),H=new RegExp(typeof q.position==="number"?`^.{${q.position}}${G}`:G);q.pattern=H,Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(H)}),Q._zod.check=(Y)=>{if(Y.value.includes(q.includes,q.position))return;Y.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:q.includes,input:Y.value,inst:Q,continue:!q.abort})}}),WX=U("$ZodCheckStartsWith",(Q,q)=>{j.init(Q,q);let G=new RegExp(`^${e(q.prefix)}.*`);q.pattern??(q.pattern=G),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(G)}),Q._zod.check=(H)=>{if(H.value.startsWith(q.prefix))return;H.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:q.prefix,input:H.value,inst:Q,continue:!q.abort})}}),JX=U("$ZodCheckEndsWith",(Q,q)=>{j.init(Q,q);let G=new RegExp(`.*${e(q.suffix)}$`);q.pattern??(q.pattern=G),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(G)}),Q._zod.check=(H)=>{if(H.value.endsWith(q.suffix))return;H.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:q.suffix,input:H.value,inst:Q,continue:!q.abort})}});function O6(Q,q,G){if(Q.issues.length)q.issues.push(...a(G,Q.issues))}var KX=U("$ZodCheckProperty",(Q,q)=>{j.init(Q,q),Q._zod.check=(G)=>{let H=q.schema._zod.run({value:G.value[q.property],issues:[]},{});if(H instanceof Promise)return H.then((Y)=>O6(Y,G,q.property));O6(H,G,q.property);return}}),BX=U("$ZodCheckMimeType",(Q,q)=>{j.init(Q,q);let G=new Set(q.mime);Q._zod.onattach.push((H)=>{H._zod.bag.mime=q.mime}),Q._zod.check=(H)=>{if(G.has(H.value.type))return;H.issues.push({code:"invalid_value",values:q.mime,input:H.value.type,inst:Q,continue:!q.abort})}}),NX=U("$ZodCheckOverwrite",(Q,q)=>{j.init(Q,q),Q._zod.check=(G)=>{G.value=q.tx(G.value)}}),UX=class{constructor(Q=[]){if(this.content=[],this.indent=0,this)this.args=Q}indented(Q){this.indent+=1,Q(this),this.indent-=1}write(Q){if(typeof Q==="function"){Q(this,{execution:"sync"}),Q(this,{execution:"async"});return}let G=Q.split(`
4
4
  `).filter((X)=>X),H=Math.min(...G.map((X)=>X.length-X.trimStart().length)),Y=G.map((X)=>X.slice(H)).map((X)=>" ".repeat(this.indent*2)+X);for(let X of Y)this.content.push(X)}compile(){let Q=Function,q=this?.args,H=[...(this?.content??[""]).map((Y)=>` ${Y}`)];return new Q(...q,H.join(`
5
5
  `))}},wX={major:4,minor:3,patch:6},Z=U("$ZodType",(Q,q)=>{var G;Q??(Q={}),Q._zod.def=q,Q._zod.bag=Q._zod.bag||{},Q._zod.version=wX;let H=[...Q._zod.def.checks??[]];if(Q._zod.traits.has("$ZodCheck"))H.unshift(Q);for(let Y of H)for(let X of Y._zod.onattach)X(Q);if(H.length===0)(G=Q._zod).deferred??(G.deferred=[]),Q._zod.deferred?.push(()=>{Q._zod.run=Q._zod.parse});else{let Y=(W,J,K)=>{let B=JQ(W),N;for(let w of J){if(w._zod.def.when){if(!w._zod.def.when(W))continue}else if(B)continue;let L=W.issues.length,A=w._zod.check(W);if(A instanceof Promise&&K?.async===!1)throw new KQ;if(N||A instanceof Promise)N=(N??Promise.resolve()).then(async()=>{if(await A,W.issues.length===L)return;if(!B)B=JQ(W,L)});else{if(W.issues.length===L)continue;if(!B)B=JQ(W,L)}}if(N)return N.then(()=>{return W});return W},X=(W,J,K)=>{if(JQ(W))return W.aborted=!0,W;let B=Y(J,H,K);if(B instanceof Promise){if(K.async===!1)throw new KQ;return B.then((N)=>Q._zod.parse(N,K))}return Q._zod.parse(B,K)};Q._zod.run=(W,J)=>{if(J.skipChecks)return Q._zod.parse(W,J);if(J.direction==="backward"){let B=Q._zod.parse({value:W.value,issues:[]},{...J,skipChecks:!0});if(B instanceof Promise)return B.then((N)=>{return X(N,W,J)});return X(B,W,J)}let K=Q._zod.parse(W,J);if(K instanceof Promise){if(J.async===!1)throw new KQ;return K.then((B)=>Y(B,H,J))}return Y(K,H,J)}}b(Q,"~standard",()=>({validate:(Y)=>{try{let X=Fq(Q,Y);return X.success?{value:X.data}:{issues:X.error?.issues}}catch(X){return Aq(Q,Y).then((W)=>W.success?{value:W.data}:{issues:W.error?.issues})}},vendor:"zod",version:1}))}),lQ=U("$ZodString",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=[...Q?._zod.bag?.patterns??[]].pop()??yq(Q._zod.bag),Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=String(G.value)}catch(Y){}if(typeof G.value==="string")return G;return G.issues.push({expected:"string",code:"invalid_type",input:G.value,inst:Q}),G}}),T=U("$ZodStringFormat",(Q,q)=>{cQ.init(Q,q),lQ.init(Q,q)}),FX=U("$ZodGUID",(Q,q)=>{q.pattern??(q.pattern=Vq),T.init(Q,q)}),AX=U("$ZodUUID",(Q,q)=>{if(q.version){let H={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[q.version];if(H===void 0)throw Error(`Invalid UUID version: "${q.version}"`);q.pattern??(q.pattern=PQ(H))}else q.pattern??(q.pattern=PQ());T.init(Q,q)}),MX=U("$ZodEmail",(Q,q)=>{q.pattern??(q.pattern=Rq),T.init(Q,q)}),LX=U("$ZodURL",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{try{let H=G.value.trim(),Y=new URL(H);if(q.hostname){if(q.hostname.lastIndex=0,!q.hostname.test(Y.hostname))G.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:q.hostname.source,input:G.value,inst:Q,continue:!q.abort})}if(q.protocol){if(q.protocol.lastIndex=0,!q.protocol.test(Y.protocol.endsWith(":")?Y.protocol.slice(0,-1):Y.protocol))G.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:q.protocol.source,input:G.value,inst:Q,continue:!q.abort})}if(q.normalize)G.value=Y.href;else G.value=H;return}catch(H){G.issues.push({code:"invalid_format",format:"url",input:G.value,inst:Q,continue:!q.abort})}}}),PX=U("$ZodEmoji",(Q,q)=>{q.pattern??(q.pattern=Dq()),T.init(Q,q)}),$X=U("$ZodNanoID",(Q,q)=>{q.pattern??(q.pattern=Oq),T.init(Q,q)}),EX=U("$ZodCUID",(Q,q)=>{q.pattern??(q.pattern=Mq),T.init(Q,q)}),OX=U("$ZodCUID2",(Q,q)=>{q.pattern??(q.pattern=Lq),T.init(Q,q)}),IX=U("$ZodULID",(Q,q)=>{q.pattern??(q.pattern=Pq),T.init(Q,q)}),VX=U("$ZodXID",(Q,q)=>{q.pattern??(q.pattern=$q),T.init(Q,q)}),RX=U("$ZodKSUID",(Q,q)=>{q.pattern??(q.pattern=Eq),T.init(Q,q)}),ZX=U("$ZodISODateTime",(Q,q)=>{q.pattern??(q.pattern=gq(q)),T.init(Q,q)}),DX=U("$ZodISODate",(Q,q)=>{q.pattern??(q.pattern=_q),T.init(Q,q)}),bX=U("$ZodISOTime",(Q,q)=>{q.pattern??(q.pattern=hq(q)),T.init(Q,q)}),CX=U("$ZodISODuration",(Q,q)=>{q.pattern??(q.pattern=Iq),T.init(Q,q)}),kX=U("$ZodIPv4",(Q,q)=>{q.pattern??(q.pattern=bq),T.init(Q,q),Q._zod.bag.format="ipv4"}),TX=U("$ZodIPv6",(Q,q)=>{q.pattern??(q.pattern=Cq),T.init(Q,q),Q._zod.bag.format="ipv6",Q._zod.check=(G)=>{try{new URL(`http://[${G.value}]`)}catch{G.issues.push({code:"invalid_format",format:"ipv6",input:G.value,inst:Q,continue:!q.abort})}}}),SX=U("$ZodMAC",(Q,q)=>{q.pattern??(q.pattern=kq(q.delimiter)),T.init(Q,q),Q._zod.bag.format="mac"}),zX=U("$ZodCIDRv4",(Q,q)=>{q.pattern??(q.pattern=Tq),T.init(Q,q)}),jX=U("$ZodCIDRv6",(Q,q)=>{q.pattern??(q.pattern=Sq),T.init(Q,q),Q._zod.check=(G)=>{let H=G.value.split("/");try{if(H.length!==2)throw Error();let[Y,X]=H;if(!X)throw Error();let W=Number(X);if(`${W}`!==X)throw Error();if(W<0||W>128)throw Error();new URL(`http://[${Y}]`)}catch{G.issues.push({code:"invalid_format",format:"cidrv6",input:G.value,inst:Q,continue:!q.abort})}}});function m0(Q){if(Q==="")return!0;if(Q.length%4!==0)return!1;try{return atob(Q),!0}catch{return!1}}var vX=U("$ZodBase64",(Q,q)=>{q.pattern??(q.pattern=zq),T.init(Q,q),Q._zod.bag.contentEncoding="base64",Q._zod.check=(G)=>{if(m0(G.value))return;G.issues.push({code:"invalid_format",format:"base64",input:G.value,inst:Q,continue:!q.abort})}});function _X(Q){if(!h0.test(Q))return!1;let q=Q.replace(/[-_]/g,(H)=>H==="-"?"+":"/"),G=q.padEnd(Math.ceil(q.length/4)*4,"=");return m0(G)}var xX=U("$ZodBase64URL",(Q,q)=>{q.pattern??(q.pattern=h0),T.init(Q,q),Q._zod.bag.contentEncoding="base64url",Q._zod.check=(G)=>{if(_X(G.value))return;G.issues.push({code:"invalid_format",format:"base64url",input:G.value,inst:Q,continue:!q.abort})}}),hX=U("$ZodE164",(Q,q)=>{q.pattern??(q.pattern=jq),T.init(Q,q)});function gX(Q,q=null){try{let G=Q.split(".");if(G.length!==3)return!1;let[H]=G;if(!H)return!1;let Y=JSON.parse(atob(H));if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if(q&&(!("alg"in Y)||Y.alg!==q))return!1;return!0}catch{return!1}}var yX=U("$ZodJWT",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{if(gX(G.value,q.alg))return;G.issues.push({code:"invalid_format",format:"jwt",input:G.value,inst:Q,continue:!q.abort})}}),fX=U("$ZodCustomStringFormat",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{if(q.fn(G.value))return;G.issues.push({code:"invalid_format",format:q.format,input:G.value,inst:Q,continue:!q.abort})}}),c0=U("$ZodNumber",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=Q._zod.bag.pattern??g0,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=Number(G.value)}catch(W){}let Y=G.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return G;let X=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?"Infinity":void 0:void 0;return G.issues.push({expected:"number",code:"invalid_type",input:Y,inst:Q,...X?{received:X}:{}}),G}}),mX=U("$ZodNumberFormat",(Q,q)=>{nq.init(Q,q),c0.init(Q,q)}),l0=U("$ZodBoolean",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=cq,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=Boolean(G.value)}catch(X){}let Y=G.value;if(typeof Y==="boolean")return G;return G.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:Q}),G}}),p0=U("$ZodBigInt",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=fq,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=BigInt(G.value)}catch(Y){}if(typeof G.value==="bigint")return G;return G.issues.push({expected:"bigint",code:"invalid_type",input:G.value,inst:Q}),G}}),cX=U("$ZodBigIntFormat",(Q,q)=>{tq.init(Q,q),p0.init(Q,q)}),lX=U("$ZodSymbol",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y==="symbol")return G;return G.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:Q}),G}}),pX=U("$ZodUndefined",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=pq,Q._zod.values=new Set([void 0]),Q._zod.optin="optional",Q._zod.optout="optional",Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y>"u")return G;return G.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:Q}),G}}),oX=U("$ZodNull",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=lq,Q._zod.values=new Set([null]),Q._zod.parse=(G,H)=>{let Y=G.value;if(Y===null)return G;return G.issues.push({expected:"null",code:"invalid_type",input:Y,inst:Q}),G}}),dX=U("$ZodAny",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G)=>G}),rX=U("$ZodUnknown",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G)=>G}),uX=U("$ZodNever",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{return G.issues.push({expected:"never",code:"invalid_type",input:G.value,inst:Q}),G}}),nX=U("$ZodVoid",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y>"u")return G;return G.issues.push({expected:"void",code:"invalid_type",input:Y,inst:Q}),G}}),tX=U("$ZodDate",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=new Date(G.value)}catch(J){}let Y=G.value,X=Y instanceof Date;if(X&&!Number.isNaN(Y.getTime()))return G;return G.issues.push({expected:"date",code:"invalid_type",input:Y,...X?{received:"Invalid Date"}:{},inst:Q}),G}});function I6(Q,q,G){if(Q.issues.length)q.issues.push(...a(G,Q.issues));q.value[G]=Q.value}var aX=U("$ZodArray",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(!Array.isArray(Y))return G.issues.push({expected:"array",code:"invalid_type",input:Y,inst:Q}),G;G.value=Array(Y.length);let X=[];for(let W=0;W<Y.length;W++){let J=Y[W],K=q.element._zod.run({value:J,issues:[]},H);if(K instanceof Promise)X.push(K.then((B)=>I6(B,G,W)));else I6(K,G,W)}if(X.length)return Promise.all(X).then(()=>G);return G}});function wY(Q,q,G,H,Y){if(Q.issues.length){if(Y&&!(G in H))return;q.issues.push(...a(G,Q.issues))}if(Q.value===void 0){if(G in H)q.value[G]=void 0}else q.value[G]=Q.value}function iX(Q){let q=Object.keys(Q.shape);for(let H of q)if(!Q.shape?.[H]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${H}": expected a Zod schema`);let G=Gq(Q.shape);return{...Q,keys:q,keySet:new Set(q),numKeys:q.length,optionalKeys:new Set(G)}}function eX(Q,q,G,H,Y,X){let W=[],J=Y.keySet,K=Y.catchall._zod,B=K.def.type,N=K.optout==="optional";for(let w in q){if(J.has(w))continue;if(B==="never"){W.push(w);continue}let L=K.run({value:q[w],issues:[]},H);if(L instanceof Promise)Q.push(L.then((A)=>wY(A,G,w,q,N)));else wY(L,G,w,q,N)}if(W.length)G.issues.push({code:"unrecognized_keys",keys:W,input:q,inst:X});if(!Q.length)return G;return Promise.all(Q).then(()=>{return G})}var sX=U("$ZodObject",(Q,q)=>{if(Z.init(Q,q),!Object.getOwnPropertyDescriptor(q,"shape")?.get){let J=q.shape;Object.defineProperty(q,"shape",{get:()=>{let K={...J};return Object.defineProperty(q,"shape",{value:K}),K}})}let H=_Q(()=>iX(q));b(Q._zod,"propValues",()=>{let J=q.shape,K={};for(let B in J){let N=J[B]._zod;if(N.values){K[B]??(K[B]=new Set);for(let w of N.values)K[B].add(w)}}return K});let Y=LQ,X=q.catchall,W;Q._zod.parse=(J,K)=>{W??(W=H.value);let B=J.value;if(!Y(B))return J.issues.push({expected:"object",code:"invalid_type",input:B,inst:Q}),J;J.value={};let N=[],w=W.shape;for(let L of W.keys){let A=w[L],R=A._zod.optout==="optional",E=A._zod.run({value:B[L],issues:[]},K);if(E instanceof Promise)N.push(E.then((O)=>wY(O,J,L,B,R)));else wY(E,J,L,B,R)}if(!X)return N.length?Promise.all(N).then(()=>J):J;return eX(N,B,J,K,H.value,Q)}}),QG=U("$ZodObjectJIT",(Q,q)=>{sX.init(Q,q);let G=Q._zod.parse,H=_Q(()=>iX(q)),Y=(L)=>{let A=new UX(["shape","payload","ctx"]),R=H.value,E=(v)=>{let _=P0(v);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};A.write("const input = payload.value;");let O=Object.create(null),n=0;for(let v of R.keys)O[v]=`key_${n++}`;A.write("const newResult = {};");for(let v of R.keys){let _=O[v],z=P0(v),g=L[v]?._zod?.optout==="optional";if(A.write(`const ${_} = ${E(v)};`),g)A.write(`
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-f83wv08n.js";var _="./libopentui-0r5w9btr.so";export{_ as default};