@claudiolabs/claudin 0.7.0 → 0.7.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 (893) hide show
  1. package/README.md +1 -0
  2. package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +1 -0
  3. package/dist/chunks/App-0.7.2-1yazneaj.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +7 -0
  11. package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +6 -0
  13. package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +1 -0
  20. package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +1 -0
  30. package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +1 -0
  31. package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +3 -0
  32. package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +110 -0
  33. package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +1 -0
  34. package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +1 -0
  35. package/dist/chunks/assistant-0.7.2-txvf934b.mjs +1 -0
  36. package/dist/chunks/auth-0.7.2-02q30rsb.mjs +1 -0
  37. package/dist/chunks/auth-0.7.2-x29x49yh.mjs +1 -0
  38. package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +48 -0
  39. package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +1 -0
  41. package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +4 -0
  42. package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +1 -0
  45. package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +88 -0
  46. package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +1 -0
  47. package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +1 -0
  48. package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +3 -0
  49. package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +1 -0
  50. package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +21 -0
  51. package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +4 -0
  52. package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +1 -0
  54. package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +1 -0
  55. package/dist/chunks/clear-0.7.2-v59pskrm.mjs +1 -0
  56. package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +1 -0
  57. package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +2 -0
  58. package/dist/chunks/cli-0.7.2-0mj25tns.mjs +2 -0
  59. package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +2 -0
  60. package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +2 -0
  61. package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +2 -0
  62. package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +2 -0
  63. package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +2 -0
  64. package/dist/chunks/cli-0.7.2-21mtjks8.mjs +15 -0
  65. package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +2 -0
  66. package/dist/chunks/cli-0.7.2-26rzbaez.mjs +2 -0
  67. package/dist/chunks/cli-0.7.2-29hh46ve.mjs +3 -0
  68. package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +2 -0
  69. package/dist/chunks/cli-0.7.2-2rj33835.mjs +6 -0
  70. package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +2 -0
  71. package/dist/chunks/cli-0.7.2-358vh55m.mjs +2 -0
  72. package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +2 -0
  73. package/dist/chunks/cli-0.7.2-3frg7csa.mjs +2 -0
  74. package/dist/chunks/cli-0.7.2-3s2zd715.mjs +3 -0
  75. package/dist/chunks/cli-0.7.2-3synxf81.mjs +2 -0
  76. package/dist/chunks/cli-0.7.2-40f37y02.mjs +2 -0
  77. package/dist/chunks/cli-0.7.2-40xymk1q.mjs +2 -0
  78. package/dist/chunks/cli-0.7.2-437jawbh.mjs +2 -0
  79. package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +2 -0
  80. package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +2 -0
  81. package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +2 -0
  82. package/dist/chunks/cli-0.7.2-4g4d682x.mjs +3 -0
  83. package/dist/chunks/cli-0.7.2-520tgkhw.mjs +5438 -0
  84. package/dist/chunks/cli-0.7.2-53qayxqk.mjs +2 -0
  85. package/dist/chunks/cli-0.7.2-5415yrkc.mjs +2 -0
  86. package/dist/chunks/cli-0.7.2-55ye29jy.mjs +2 -0
  87. package/dist/chunks/cli-0.7.2-5750g5et.mjs +2 -0
  88. package/dist/chunks/cli-0.7.2-59wm2srd.mjs +2 -0
  89. package/dist/chunks/cli-0.7.2-5aka4emf.mjs +133 -0
  90. package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +4 -0
  91. package/dist/chunks/cli-0.7.2-5e72m61f.mjs +25 -0
  92. package/dist/chunks/cli-0.7.2-5ff63f31.mjs +4 -0
  93. package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +2 -0
  94. package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +193 -0
  95. package/dist/chunks/cli-0.7.2-5tacs42k.mjs +2 -0
  96. package/dist/chunks/cli-0.7.2-5y498dyr.mjs +2 -0
  97. package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +15 -0
  98. package/dist/chunks/cli-0.7.2-5yrman6f.mjs +2 -0
  99. package/dist/chunks/cli-0.7.2-60exfzc0.mjs +2 -0
  100. package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +2 -0
  101. package/dist/chunks/cli-0.7.2-68dn8am7.mjs +2 -0
  102. package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +2 -0
  103. package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +12 -0
  104. package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +2 -0
  105. package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +2 -0
  106. package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +2 -0
  107. package/dist/chunks/cli-0.7.2-81s45w7r.mjs +2 -0
  108. package/dist/chunks/cli-0.7.2-828f420c.mjs +7 -0
  109. package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +2 -0
  110. package/dist/chunks/cli-0.7.2-88h70xrj.mjs +50 -0
  111. package/dist/chunks/cli-0.7.2-894093rv.mjs +2 -0
  112. package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +2 -0
  113. package/dist/chunks/cli-0.7.2-8pfcc363.mjs +12 -0
  114. package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +16 -0
  115. package/dist/chunks/cli-0.7.2-9156j3vm.mjs +6 -0
  116. package/dist/chunks/cli-0.7.2-9328ezjz.mjs +3 -0
  117. package/dist/chunks/cli-0.7.2-9953mwyy.mjs +2 -0
  118. package/dist/chunks/cli-0.7.2-99am4r15.mjs +4 -0
  119. package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +4 -0
  120. package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +2 -0
  121. package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +2 -0
  122. package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +2 -0
  123. package/dist/chunks/cli-0.7.2-a6q1amed.mjs +2 -0
  124. package/dist/chunks/cli-0.7.2-a9324x4q.mjs +8 -0
  125. package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +2 -0
  126. package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +2 -0
  127. package/dist/chunks/cli-0.7.2-atsd6734.mjs +2 -0
  128. package/dist/chunks/cli-0.7.2-avk3azcp.mjs +2 -0
  129. package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +2 -0
  130. package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +2 -0
  131. package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +2 -0
  132. package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +21 -0
  133. package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +2 -0
  134. package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +18 -0
  135. package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +4 -0
  136. package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +2 -0
  137. package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +2 -0
  138. package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +2 -0
  139. package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +2 -0
  140. package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +6 -0
  141. package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +2 -0
  142. package/dist/chunks/cli-0.7.2-dggndd24.mjs +2 -0
  143. package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +2 -0
  144. package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +2 -0
  145. package/dist/chunks/cli-0.7.2-dxm2c139.mjs +24 -0
  146. package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +2 -0
  147. package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +2 -0
  148. package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +2 -0
  149. package/dist/chunks/cli-0.7.2-edf740pd.mjs +5 -0
  150. package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +2 -0
  151. package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +2 -0
  152. package/dist/chunks/cli-0.7.2-f4nt233k.mjs +3 -0
  153. package/dist/chunks/cli-0.7.2-fcadqwem.mjs +1 -0
  154. package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +2 -0
  155. package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +12 -0
  156. package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +2 -0
  157. package/dist/chunks/cli-0.7.2-gar34ch2.mjs +4 -0
  158. package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +2 -0
  159. package/dist/chunks/cli-0.7.2-gssxkynf.mjs +2 -0
  160. package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +2 -0
  161. package/dist/chunks/cli-0.7.2-gysw8esj.mjs +2 -0
  162. package/dist/chunks/cli-0.7.2-h248q4gt.mjs +2 -0
  163. package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +2 -0
  164. package/dist/chunks/cli-0.7.2-h7m849rt.mjs +2 -0
  165. package/dist/chunks/cli-0.7.2-h903zfjz.mjs +2 -0
  166. package/dist/chunks/cli-0.7.2-hbmczrch.mjs +9 -0
  167. package/dist/chunks/cli-0.7.2-he1hdn59.mjs +18 -0
  168. package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +2 -0
  169. package/dist/chunks/cli-0.7.2-hv1z3had.mjs +3 -0
  170. package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +2 -0
  171. package/dist/chunks/cli-0.7.2-j029dkan.mjs +3 -0
  172. package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +2 -0
  173. package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +2 -0
  174. package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +2 -0
  175. package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +2 -0
  176. package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +2 -0
  177. package/dist/chunks/cli-0.7.2-jn2497vh.mjs +2 -0
  178. package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +2 -0
  179. package/dist/chunks/cli-0.7.2-k40k933y.mjs +24 -0
  180. package/dist/chunks/cli-0.7.2-k6jnr159.mjs +2 -0
  181. package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +2 -0
  182. package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +2 -0
  183. package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +2 -0
  184. package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +12 -0
  185. package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +2 -0
  186. package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +15 -0
  187. package/dist/chunks/cli-0.7.2-mqv265gk.mjs +42 -0
  188. package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +3 -0
  189. package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +2 -0
  190. package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +2 -0
  191. package/dist/chunks/cli-0.7.2-ndt224p1.mjs +2 -0
  192. package/dist/chunks/cli-0.7.2-nf346apq.mjs +18 -0
  193. package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +2 -0
  194. package/dist/chunks/cli-0.7.2-nkafymh4.mjs +3 -0
  195. package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +45 -0
  196. package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +3 -0
  197. package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +67 -0
  198. package/dist/chunks/cli-0.7.2-pjavf176.mjs +2 -0
  199. package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +4 -0
  200. package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +2 -0
  201. package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +2 -0
  202. package/dist/chunks/cli-0.7.2-q85af7gm.mjs +2 -0
  203. package/dist/chunks/cli-0.7.2-q88h44qv.mjs +17 -0
  204. package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +2 -0
  205. package/dist/chunks/cli-0.7.2-qf8435qy.mjs +2 -0
  206. package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +5 -0
  207. package/dist/chunks/cli-0.7.2-qr706n52.mjs +10 -0
  208. package/dist/chunks/cli-0.7.2-qsx52bst.mjs +2 -0
  209. package/dist/chunks/cli-0.7.2-r1502pen.mjs +2 -0
  210. package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +5 -0
  211. package/dist/chunks/cli-0.7.2-r7x165sf.mjs +17 -0
  212. package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +2 -0
  213. package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +2 -0
  214. package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +2 -0
  215. package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +133 -0
  216. package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +2 -0
  217. package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +2 -0
  218. package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +2 -0
  219. package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +2 -0
  220. package/dist/chunks/cli-0.7.2-tds456xt.mjs +34 -0
  221. package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +4 -0
  222. package/dist/chunks/cli-0.7.2-twx01hwg.mjs +2 -0
  223. package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +3 -0
  224. package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +2 -0
  225. package/dist/chunks/cli-0.7.2-tz5zv753.mjs +6 -0
  226. package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +3 -0
  227. package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +2 -0
  228. package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +4 -0
  229. package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +2 -0
  230. package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +2 -0
  231. package/dist/chunks/cli-0.7.2-vx10940a.mjs +2 -0
  232. package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +2 -0
  233. package/dist/chunks/cli-0.7.2-w07ksegr.mjs +2 -0
  234. package/dist/chunks/cli-0.7.2-waas8a1p.mjs +2 -0
  235. package/dist/chunks/cli-0.7.2-wahbzckp.mjs +58 -0
  236. package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +2 -0
  237. package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +2 -0
  238. package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +2 -0
  239. package/dist/chunks/cli-0.7.2-xced0m7v.mjs +2 -0
  240. package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +2 -0
  241. package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +39 -0
  242. package/dist/chunks/cli-0.7.2-xpw13d73.mjs +59 -0
  243. package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +2 -0
  244. package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +2 -0
  245. package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +2 -0
  246. package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +20 -0
  247. package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +4 -0
  248. package/dist/chunks/cli-0.7.2-ygx94a70.mjs +2 -0
  249. package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +2 -0
  250. package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +2 -0
  251. package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +2 -0
  252. package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +3 -0
  253. package/dist/chunks/cli-0.7.2-zva1j44t.mjs +2 -0
  254. package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +2 -0
  255. package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +1 -0
  256. package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +1 -0
  257. package/dist/chunks/compact-0.7.2-1htfptdq.mjs +3 -0
  258. package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +1 -0
  259. package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +1 -0
  260. package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +1 -0
  261. package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +1 -0
  262. package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +1 -0
  263. package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +1 -0
  264. package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +1 -0
  265. package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +9 -0
  266. package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +1 -0
  267. package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +1 -0
  268. package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +1 -0
  269. package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +1 -0
  270. package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +1446 -0
  271. package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +1 -0
  272. package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +1 -0
  273. package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +1 -0
  274. package/dist/chunks/diff-0.7.2-7np6da8n.mjs +1 -0
  275. package/dist/chunks/doctor-0.7.2-spqx634t.mjs +1 -0
  276. package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +1 -0
  277. package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +1 -0
  278. package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +10 -0
  279. package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +1 -0
  280. package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +1 -0
  281. package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +1 -0
  282. package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +1 -0
  283. package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +1 -0
  284. package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +1 -0
  285. package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +1 -0
  286. package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +1 -0
  287. package/dist/chunks/export-0.7.2-j6tnta5r.mjs +2 -0
  288. package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +1 -0
  289. package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +1 -0
  290. package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +1 -0
  291. package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +14 -0
  292. package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +1 -0
  293. package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +1 -0
  294. package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +1 -0
  295. package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +4 -0
  296. package/dist/chunks/grove-0.7.2-9sxczf29.mjs +1 -0
  297. package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +1 -0
  298. package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +2 -0
  299. package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +6 -0
  300. package/dist/chunks/help-0.7.2-mkkkzv97.mjs +1 -0
  301. package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +3 -0
  302. package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +1 -0
  303. package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +79 -0
  304. package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +3 -0
  305. package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +1 -0
  306. package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +1 -0
  307. package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +1 -0
  308. package/dist/chunks/index-0.7.2-5mfmhd35.mjs +1 -0
  309. package/dist/chunks/index-0.7.2-62g62r4p.mjs +1 -0
  310. package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +9 -0
  311. package/dist/chunks/index-0.7.2-87jrdmn3.mjs +2 -0
  312. package/dist/chunks/index-0.7.2-9h4tsef1.mjs +1 -0
  313. package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +1 -0
  314. package/dist/chunks/index-0.7.2-a3w6at2z.mjs +1 -0
  315. package/dist/chunks/index-0.7.2-b296et1z.mjs +1 -0
  316. package/dist/chunks/index-0.7.2-c22bn4q9.mjs +1 -0
  317. package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +9 -0
  318. package/dist/chunks/index-0.7.2-f8swc4mv.mjs +30 -0
  319. package/dist/chunks/index-0.7.2-fdsptfbt.mjs +17 -0
  320. package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +1 -0
  321. package/dist/chunks/index-0.7.2-hjcptpaz.mjs +1 -0
  322. package/dist/chunks/index-0.7.2-hts44hhf.mjs +2 -0
  323. package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +1 -0
  324. package/dist/chunks/index-0.7.2-nhtpksxs.mjs +5 -0
  325. package/dist/chunks/index-0.7.2-p5a52s17.mjs +1 -0
  326. package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +1 -0
  327. package/dist/chunks/index-0.7.2-vfyvycvc.mjs +1 -0
  328. package/dist/chunks/index-0.7.2-vw5e1spt.mjs +1 -0
  329. package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +1 -0
  330. package/dist/chunks/init-0.7.2-mdhax55g.mjs +1 -0
  331. package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +1 -0
  332. package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +1 -0
  333. package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +870 -0
  334. package/dist/chunks/install-0.7.2-f33pbxz0.mjs +1 -0
  335. package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +149 -0
  336. package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +1 -0
  337. package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +1 -0
  338. package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +1 -0
  339. package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +2 -0
  340. package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +2 -0
  341. package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +1 -0
  342. package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +1 -0
  343. package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +1 -0
  344. package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +1 -0
  345. package/dist/chunks/log-0.7.2-n28x7jf3.mjs +1 -0
  346. package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +1 -0
  347. package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +1 -0
  348. package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +1 -0
  349. package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +17 -0
  350. package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +4 -0
  351. package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +1 -0
  352. package/dist/chunks/memory-0.7.2-1hfh6410.mjs +3 -0
  353. package/dist/chunks/model-0.7.2-c8esc658.mjs +1 -0
  354. package/dist/chunks/model-0.7.2-sjw6chpt.mjs +2 -0
  355. package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +12 -0
  356. package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +1 -0
  357. package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +14 -0
  358. package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +1 -0
  359. package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +1 -0
  360. package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +1 -0
  361. package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +1 -0
  362. package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +1 -0
  363. package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +3 -0
  364. package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +1 -0
  365. package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +1 -0
  366. package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +1 -0
  367. package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +29 -0
  368. package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +1 -0
  369. package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +9 -0
  370. package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +2 -0
  371. package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +57 -0
  372. package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +1 -0
  373. package/dist/chunks/process-0.7.2-bydxzc10.mjs +1 -0
  374. package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +1 -0
  375. package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +9 -0
  376. package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +1 -0
  377. package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +1 -0
  378. package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +1 -0
  379. package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +13 -0
  380. package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +2 -0
  381. package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +1 -0
  382. package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +6 -0
  383. package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +1 -0
  384. package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +34 -0
  385. package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +1 -0
  386. package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +5 -0
  387. package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +2 -0
  388. package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +1 -0
  389. package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +1 -0
  390. package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +1 -0
  391. package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +1 -0
  392. package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +1 -0
  393. package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +1 -0
  394. package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +2 -0
  395. package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +1 -0
  396. package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +1 -0
  397. package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +1 -0
  398. package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +1 -0
  399. package/dist/chunks/session-0.7.2-c8me3g3x.mjs +2 -0
  400. package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +1 -0
  401. package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +1 -0
  402. package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +1 -0
  403. package/dist/chunks/settings-0.7.2-xc200363.mjs +1 -0
  404. package/dist/chunks/setup-0.7.2-c982wyvz.mjs +5 -0
  405. package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +1 -0
  406. package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +1 -0
  407. package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +1 -0
  408. package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +1 -0
  409. package/dist/chunks/state-0.7.2-p9tevca2.mjs +1 -0
  410. package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +6 -0
  411. package/dist/chunks/status-0.7.2-fh89jm1g.mjs +1 -0
  412. package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +1 -0
  413. package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +1 -0
  414. package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +1 -0
  415. package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +1 -0
  416. package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +1 -0
  417. package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +1 -0
  418. package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +1 -0
  419. package/dist/chunks/theme-0.7.2-1zmsca02.mjs +1 -0
  420. package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +1 -0
  421. package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +1 -0
  422. package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +1 -0
  423. package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +1 -0
  424. package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +1 -0
  425. package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +1 -0
  426. package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +69 -0
  427. package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +1 -0
  428. package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +4 -0
  429. package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +86 -0
  430. package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +1 -0
  431. package/dist/chunks/upload-0.7.2-p6je053d.mjs +7 -0
  432. package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +14 -0
  433. package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +1 -0
  434. package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +1 -0
  435. package/dist/chunks/util-0.7.2-n4vdasdr.mjs +1 -0
  436. package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +1 -0
  437. package/dist/chunks/vim-0.7.2-bd15xeza.mjs +1 -0
  438. package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +1 -0
  439. package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +132 -0
  440. package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +1 -0
  441. package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +1 -0
  442. package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +7 -0
  443. package/dist/claudin-vscode.vsix +0 -0
  444. package/dist/cli.mjs +2 -2
  445. package/package.json +3 -1
  446. package/dist/chunks/AgentTool-0.7.0-9peg6t20.mjs +0 -1
  447. package/dist/chunks/App-0.7.0-q5hygb50.mjs +0 -1
  448. package/dist/chunks/ApproveApiKey-0.7.0-pdj2vakp.mjs +0 -1
  449. package/dist/chunks/AssistantSessionChooser-0.7.0-190csm4h.mjs +0 -1
  450. package/dist/chunks/AutoModeOptInDialog-0.7.0-khhh5rz9.mjs +0 -1
  451. package/dist/chunks/BypassPermissionsModeDialog-0.7.0-4n7jcjsf.mjs +0 -1
  452. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.0-vf636a5p.mjs +0 -1
  453. package/dist/chunks/ConsoleOAuthFlow-0.7.0-z9h5bckg.mjs +0 -1
  454. package/dist/chunks/DiffDialog-0.7.0-3kqmdg48.mjs +0 -7
  455. package/dist/chunks/Doctor-0.7.0-gep401wn.mjs +0 -1
  456. package/dist/chunks/ExplorerDialog-0.7.0-2t408ngs.mjs +0 -6
  457. package/dist/chunks/Grove-0.7.0-3knq53k5.mjs +0 -1
  458. package/dist/chunks/ITermBackend-0.7.0-by807q13.mjs +0 -1
  459. package/dist/chunks/InvalidConfigDialog-0.7.0-maxj2b37.mjs +0 -1
  460. package/dist/chunks/InvalidSettingsDialog-0.7.0-2atqejbc.mjs +0 -1
  461. package/dist/chunks/MigrationDialog-0.7.0-wqtqgs70.mjs +0 -1
  462. package/dist/chunks/Onboarding-0.7.0-xe2s643k.mjs +0 -1
  463. package/dist/chunks/ProviderManager-0.7.0-4tbbvacv.mjs +0 -1
  464. package/dist/chunks/REPL-0.7.0-tvn2epfh.mjs +0 -1
  465. package/dist/chunks/ResumeConversation-0.7.0-6ycqmhh2.mjs +0 -1
  466. package/dist/chunks/SnapshotUpdateDialog-0.7.0-xwjwtj2z.mjs +0 -1
  467. package/dist/chunks/TeleportProgress-0.7.0-mwbsjw08.mjs +0 -1
  468. package/dist/chunks/TeleportRepoMismatchDialog-0.7.0-szdbz9rf.mjs +0 -1
  469. package/dist/chunks/TeleportResumeWrapper-0.7.0-sg1whfhh.mjs +0 -1
  470. package/dist/chunks/TmuxBackend-0.7.0-jdkh4z1a.mjs +0 -9
  471. package/dist/chunks/ToolSearchTool-0.7.0-f557bcbq.mjs +0 -1
  472. package/dist/chunks/TrustDialog-0.7.0-gfmvgcwc.mjs +0 -1
  473. package/dist/chunks/activeProvider-0.7.0-vvs597t9.mjs +0 -1
  474. package/dist/chunks/add-dir-0.7.0-tqy1qj7k.mjs +0 -1
  475. package/dist/chunks/agents-0.7.0-7mz67ymz.mjs +0 -110
  476. package/dist/chunks/agents-0.7.0-rzfq4nj1.mjs +0 -3
  477. package/dist/chunks/api-0.7.0-3ddtm43n.mjs +0 -1
  478. package/dist/chunks/asciicast-0.7.0-4hfhh3bz.mjs +0 -1
  479. package/dist/chunks/assistant-0.7.0-hq9qp39j.mjs +0 -1
  480. package/dist/chunks/auth-0.7.0-j0ecrgmw.mjs +0 -1
  481. package/dist/chunks/auth-0.7.0-q33dw9jq.mjs +0 -1
  482. package/dist/chunks/autoMode-0.7.0-jt8mnf1a.mjs +0 -48
  483. package/dist/chunks/autoUpdater-0.7.0-pk6cxrr5.mjs +0 -1
  484. package/dist/chunks/backgroundHousekeeping-0.7.0-n50bjkpa.mjs +0 -1
  485. package/dist/chunks/branch-0.7.0-2nvgp1ch.mjs +0 -4
  486. package/dist/chunks/bridge-0.7.0-n76zrpx7.mjs +0 -2
  487. package/dist/chunks/bridgeConfig-0.7.0-wavdtzat.mjs +0 -1
  488. package/dist/chunks/bridgeEnabled-0.7.0-eqjw3fax.mjs +0 -1
  489. package/dist/chunks/bridgeMain-0.7.0-7n73zfpq.mjs +0 -88
  490. package/dist/chunks/bridgePointer-0.7.0-49x6tn3y.mjs +0 -1
  491. package/dist/chunks/btw-0.7.0-d2cavbgh.mjs +0 -1
  492. package/dist/chunks/buddy-0.7.0-3r0qt58d.mjs +0 -3
  493. package/dist/chunks/cacache-0.7.0-tsq5tf6t.mjs +0 -1
  494. package/dist/chunks/cache-probe-0.7.0-521yf1je.mjs +0 -21
  495. package/dist/chunks/cacheStats-0.7.0-xrpkvgry.mjs +0 -4
  496. package/dist/chunks/caches-0.7.0-khrzrs38.mjs +0 -1
  497. package/dist/chunks/claudeDesktop-0.7.0-9vm9zdzp.mjs +0 -1
  498. package/dist/chunks/claudemd-0.7.0-06x6wykt.mjs +0 -1
  499. package/dist/chunks/clear-0.7.0-0hkt8avg.mjs +0 -1
  500. package/dist/chunks/clearTerminal-0.7.0-np2er6we.mjs +0 -1
  501. package/dist/chunks/cli-0.7.0-0bzz8t89.mjs +0 -2
  502. package/dist/chunks/cli-0.7.0-0cp32djm.mjs +0 -2
  503. package/dist/chunks/cli-0.7.0-0hzevdxp.mjs +0 -8
  504. package/dist/chunks/cli-0.7.0-0r9dgw51.mjs +0 -3
  505. package/dist/chunks/cli-0.7.0-0vdrrv1g.mjs +0 -2
  506. package/dist/chunks/cli-0.7.0-154gmfg4.mjs +0 -2
  507. package/dist/chunks/cli-0.7.0-15wmymmf.mjs +0 -2
  508. package/dist/chunks/cli-0.7.0-19swb9c9.mjs +0 -2
  509. package/dist/chunks/cli-0.7.0-1b6xe3b3.mjs +0 -3
  510. package/dist/chunks/cli-0.7.0-1evcxwvq.mjs +0 -9
  511. package/dist/chunks/cli-0.7.0-1tb38zvv.mjs +0 -2
  512. package/dist/chunks/cli-0.7.0-1vvj7vh2.mjs +0 -4
  513. package/dist/chunks/cli-0.7.0-21zw08ne.mjs +0 -4
  514. package/dist/chunks/cli-0.7.0-24z25c8v.mjs +0 -2
  515. package/dist/chunks/cli-0.7.0-252v8s5n.mjs +0 -20
  516. package/dist/chunks/cli-0.7.0-29zphpz9.mjs +0 -2
  517. package/dist/chunks/cli-0.7.0-2cdwx892.mjs +0 -3
  518. package/dist/chunks/cli-0.7.0-2etvr47t.mjs +0 -24
  519. package/dist/chunks/cli-0.7.0-2nytysyy.mjs +0 -2
  520. package/dist/chunks/cli-0.7.0-383nrwhr.mjs +0 -18
  521. package/dist/chunks/cli-0.7.0-3fnqxks0.mjs +0 -5
  522. package/dist/chunks/cli-0.7.0-3knzsvn6.mjs +0 -2
  523. package/dist/chunks/cli-0.7.0-3n9nagt9.mjs +0 -2
  524. package/dist/chunks/cli-0.7.0-3stm3k7p.mjs +0 -12
  525. package/dist/chunks/cli-0.7.0-3xtc467b.mjs +0 -2
  526. package/dist/chunks/cli-0.7.0-48ycf0c3.mjs +0 -2
  527. package/dist/chunks/cli-0.7.0-48yfvx4w.mjs +0 -2
  528. package/dist/chunks/cli-0.7.0-49k0drxj.mjs +0 -2
  529. package/dist/chunks/cli-0.7.0-4d58csqr.mjs +0 -2
  530. package/dist/chunks/cli-0.7.0-4s9f320h.mjs +0 -2
  531. package/dist/chunks/cli-0.7.0-4t41vxc0.mjs +0 -2
  532. package/dist/chunks/cli-0.7.0-4z8583dp.mjs +0 -2
  533. package/dist/chunks/cli-0.7.0-4z9nwzzv.mjs +0 -2
  534. package/dist/chunks/cli-0.7.0-4zvtjdd8.mjs +0 -2
  535. package/dist/chunks/cli-0.7.0-5df67dbk.mjs +0 -2
  536. package/dist/chunks/cli-0.7.0-5fx679he.mjs +0 -2
  537. package/dist/chunks/cli-0.7.0-5ktz31fq.mjs +0 -67
  538. package/dist/chunks/cli-0.7.0-5yvefnpr.mjs +0 -3
  539. package/dist/chunks/cli-0.7.0-68mgyfr7.mjs +0 -2
  540. package/dist/chunks/cli-0.7.0-6v89j1h0.mjs +0 -2
  541. package/dist/chunks/cli-0.7.0-747esby6.mjs +0 -2
  542. package/dist/chunks/cli-0.7.0-7c24mbsm.mjs +0 -2
  543. package/dist/chunks/cli-0.7.0-7g132rdj.mjs +0 -5420
  544. package/dist/chunks/cli-0.7.0-83nm3wtf.mjs +0 -2
  545. package/dist/chunks/cli-0.7.0-89798mg3.mjs +0 -2
  546. package/dist/chunks/cli-0.7.0-8begebnr.mjs +0 -3
  547. package/dist/chunks/cli-0.7.0-8p56ked8.mjs +0 -2
  548. package/dist/chunks/cli-0.7.0-8qwe028y.mjs +0 -2
  549. package/dist/chunks/cli-0.7.0-9jzkqcfv.mjs +0 -16
  550. package/dist/chunks/cli-0.7.0-9mk6sjcz.mjs +0 -4
  551. package/dist/chunks/cli-0.7.0-9p8vefz6.mjs +0 -18
  552. package/dist/chunks/cli-0.7.0-a088q8ep.mjs +0 -2
  553. package/dist/chunks/cli-0.7.0-a0dt04a7.mjs +0 -2
  554. package/dist/chunks/cli-0.7.0-a7rry8ha.mjs +0 -2
  555. package/dist/chunks/cli-0.7.0-ad4z1hfv.mjs +0 -50
  556. package/dist/chunks/cli-0.7.0-aewz8nz4.mjs +0 -2
  557. package/dist/chunks/cli-0.7.0-apkk9390.mjs +0 -3
  558. package/dist/chunks/cli-0.7.0-asw5nd1q.mjs +0 -2
  559. package/dist/chunks/cli-0.7.0-avczxk44.mjs +0 -2
  560. package/dist/chunks/cli-0.7.0-avw5kb07.mjs +0 -2
  561. package/dist/chunks/cli-0.7.0-ba1xb8x3.mjs +0 -4
  562. package/dist/chunks/cli-0.7.0-bacjkqga.mjs +0 -2
  563. package/dist/chunks/cli-0.7.0-bn0k1nzk.mjs +0 -2
  564. package/dist/chunks/cli-0.7.0-cb16hgkh.mjs +0 -2
  565. package/dist/chunks/cli-0.7.0-cjxpqpns.mjs +0 -3
  566. package/dist/chunks/cli-0.7.0-ct2kfpct.mjs +0 -2
  567. package/dist/chunks/cli-0.7.0-cwxeffcg.mjs +0 -2
  568. package/dist/chunks/cli-0.7.0-d56bajvn.mjs +0 -2
  569. package/dist/chunks/cli-0.7.0-d5bt2ahd.mjs +0 -2
  570. package/dist/chunks/cli-0.7.0-d6h4eqtj.mjs +0 -2
  571. package/dist/chunks/cli-0.7.0-d8vr3j93.mjs +0 -2
  572. package/dist/chunks/cli-0.7.0-dem9bmt6.mjs +0 -2
  573. package/dist/chunks/cli-0.7.0-dpaewdhn.mjs +0 -2
  574. package/dist/chunks/cli-0.7.0-dszmq0g3.mjs +0 -2
  575. package/dist/chunks/cli-0.7.0-dtxyc2mt.mjs +0 -2
  576. package/dist/chunks/cli-0.7.0-dxnyr5rv.mjs +0 -2
  577. package/dist/chunks/cli-0.7.0-dyhamqem.mjs +0 -2
  578. package/dist/chunks/cli-0.7.0-e1esnrzt.mjs +0 -42
  579. package/dist/chunks/cli-0.7.0-e1mycvjk.mjs +0 -2
  580. package/dist/chunks/cli-0.7.0-e39zcyhp.mjs +0 -4
  581. package/dist/chunks/cli-0.7.0-e6mves6r.mjs +0 -2
  582. package/dist/chunks/cli-0.7.0-eayr3nfv.mjs +0 -2
  583. package/dist/chunks/cli-0.7.0-ecwta6mh.mjs +0 -2
  584. package/dist/chunks/cli-0.7.0-eddwmcdn.mjs +0 -2
  585. package/dist/chunks/cli-0.7.0-es6y6s82.mjs +0 -12
  586. package/dist/chunks/cli-0.7.0-ewbn59cm.mjs +0 -2
  587. package/dist/chunks/cli-0.7.0-ewcemx0m.mjs +0 -2
  588. package/dist/chunks/cli-0.7.0-f62gcsfa.mjs +0 -2
  589. package/dist/chunks/cli-0.7.0-f7mqc27p.mjs +0 -6
  590. package/dist/chunks/cli-0.7.0-ffy8few4.mjs +0 -3
  591. package/dist/chunks/cli-0.7.0-ft5gef81.mjs +0 -2
  592. package/dist/chunks/cli-0.7.0-ftjagwyg.mjs +0 -2
  593. package/dist/chunks/cli-0.7.0-fxv77y2t.mjs +0 -12
  594. package/dist/chunks/cli-0.7.0-g2ekvm09.mjs +0 -6
  595. package/dist/chunks/cli-0.7.0-g46gs4dx.mjs +0 -2
  596. package/dist/chunks/cli-0.7.0-g5qxznar.mjs +0 -2
  597. package/dist/chunks/cli-0.7.0-gafgf0er.mjs +0 -2
  598. package/dist/chunks/cli-0.7.0-gkssrwr6.mjs +0 -34
  599. package/dist/chunks/cli-0.7.0-h6kfhzzd.mjs +0 -193
  600. package/dist/chunks/cli-0.7.0-hmjg8yfx.mjs +0 -2
  601. package/dist/chunks/cli-0.7.0-hrtdae85.mjs +0 -6
  602. package/dist/chunks/cli-0.7.0-hxf1ckjt.mjs +0 -12
  603. package/dist/chunks/cli-0.7.0-hxph4t80.mjs +0 -2
  604. package/dist/chunks/cli-0.7.0-j4jzhywr.mjs +0 -3
  605. package/dist/chunks/cli-0.7.0-je29e78f.mjs +0 -2
  606. package/dist/chunks/cli-0.7.0-jmsrj8j2.mjs +0 -4
  607. package/dist/chunks/cli-0.7.0-jvkyhn8x.mjs +0 -2
  608. package/dist/chunks/cli-0.7.0-k3qqc7gx.mjs +0 -2
  609. package/dist/chunks/cli-0.7.0-k7w5n7pe.mjs +0 -2
  610. package/dist/chunks/cli-0.7.0-kkpf8bhn.mjs +0 -2
  611. package/dist/chunks/cli-0.7.0-kngw06pw.mjs +0 -4
  612. package/dist/chunks/cli-0.7.0-kp7f47zq.mjs +0 -2
  613. package/dist/chunks/cli-0.7.0-kpfe5dkw.mjs +0 -2
  614. package/dist/chunks/cli-0.7.0-kr6jdp53.mjs +0 -133
  615. package/dist/chunks/cli-0.7.0-kw0wp8vs.mjs +0 -2
  616. package/dist/chunks/cli-0.7.0-kw554ntj.mjs +0 -3
  617. package/dist/chunks/cli-0.7.0-m07xma4d.mjs +0 -2
  618. package/dist/chunks/cli-0.7.0-m6ysmj08.mjs +0 -39
  619. package/dist/chunks/cli-0.7.0-mea2neea.mjs +0 -133
  620. package/dist/chunks/cli-0.7.0-mn3gdwp2.mjs +0 -17
  621. package/dist/chunks/cli-0.7.0-mnbdk339.mjs +0 -3
  622. package/dist/chunks/cli-0.7.0-n0s94kev.mjs +0 -2
  623. package/dist/chunks/cli-0.7.0-n0twknfk.mjs +0 -2
  624. package/dist/chunks/cli-0.7.0-na9s209m.mjs +0 -2
  625. package/dist/chunks/cli-0.7.0-p96azep2.mjs +0 -7
  626. package/dist/chunks/cli-0.7.0-p9c7eask.mjs +0 -2
  627. package/dist/chunks/cli-0.7.0-p9q4x3f1.mjs +0 -59
  628. package/dist/chunks/cli-0.7.0-pbs0cx53.mjs +0 -2
  629. package/dist/chunks/cli-0.7.0-petmjdha.mjs +0 -2
  630. package/dist/chunks/cli-0.7.0-pf2fr5cc.mjs +0 -4
  631. package/dist/chunks/cli-0.7.0-pfcabga3.mjs +0 -2
  632. package/dist/chunks/cli-0.7.0-ppqzq0zp.mjs +0 -2
  633. package/dist/chunks/cli-0.7.0-q5sbn5b2.mjs +0 -4
  634. package/dist/chunks/cli-0.7.0-q70ex7jy.mjs +0 -2
  635. package/dist/chunks/cli-0.7.0-qeg8v19s.mjs +0 -2
  636. package/dist/chunks/cli-0.7.0-qftredzy.mjs +0 -2
  637. package/dist/chunks/cli-0.7.0-qmckaxpm.mjs +0 -2
  638. package/dist/chunks/cli-0.7.0-r8g195r8.mjs +0 -15
  639. package/dist/chunks/cli-0.7.0-rmprwgax.mjs +0 -2
  640. package/dist/chunks/cli-0.7.0-rnahtcw9.mjs +0 -5
  641. package/dist/chunks/cli-0.7.0-rxhbb3ca.mjs +0 -2
  642. package/dist/chunks/cli-0.7.0-s0b5jjrj.mjs +0 -2
  643. package/dist/chunks/cli-0.7.0-s14kw5d6.mjs +0 -2
  644. package/dist/chunks/cli-0.7.0-s4at7t0q.mjs +0 -2
  645. package/dist/chunks/cli-0.7.0-s8rt9fpg.mjs +0 -2
  646. package/dist/chunks/cli-0.7.0-s9hgep30.mjs +0 -3
  647. package/dist/chunks/cli-0.7.0-sbwhas5a.mjs +0 -18
  648. package/dist/chunks/cli-0.7.0-tcxmyk2w.mjs +0 -2
  649. package/dist/chunks/cli-0.7.0-tjpp46xm.mjs +0 -2
  650. package/dist/chunks/cli-0.7.0-tvwks6zm.mjs +0 -2
  651. package/dist/chunks/cli-0.7.0-twxrndmz.mjs +0 -4
  652. package/dist/chunks/cli-0.7.0-v6ceqq5f.mjs +0 -2
  653. package/dist/chunks/cli-0.7.0-v7hc34ad.mjs +0 -2
  654. package/dist/chunks/cli-0.7.0-v92q5ffm.mjs +0 -2
  655. package/dist/chunks/cli-0.7.0-vf7bbn80.mjs +0 -5
  656. package/dist/chunks/cli-0.7.0-vfzbn5qv.mjs +0 -2
  657. package/dist/chunks/cli-0.7.0-vp89ypch.mjs +0 -24
  658. package/dist/chunks/cli-0.7.0-vvb9pc7x.mjs +0 -3
  659. package/dist/chunks/cli-0.7.0-vzpjsnyh.mjs +0 -2
  660. package/dist/chunks/cli-0.7.0-vzvrhx5c.mjs +0 -2
  661. package/dist/chunks/cli-0.7.0-w0nw2kkk.mjs +0 -17
  662. package/dist/chunks/cli-0.7.0-wb82h4c2.mjs +0 -2
  663. package/dist/chunks/cli-0.7.0-wf8v2b4s.mjs +0 -15
  664. package/dist/chunks/cli-0.7.0-wgy69726.mjs +0 -2
  665. package/dist/chunks/cli-0.7.0-wm0enq59.mjs +0 -2
  666. package/dist/chunks/cli-0.7.0-wntkecma.mjs +0 -2
  667. package/dist/chunks/cli-0.7.0-wspeyepj.mjs +0 -2
  668. package/dist/chunks/cli-0.7.0-wvpty7mm.mjs +0 -2
  669. package/dist/chunks/cli-0.7.0-wxynfqax.mjs +0 -2
  670. package/dist/chunks/cli-0.7.0-wzjrm1a0.mjs +0 -2
  671. package/dist/chunks/cli-0.7.0-x1xdxk52.mjs +0 -2
  672. package/dist/chunks/cli-0.7.0-x2vc8nds.mjs +0 -2
  673. package/dist/chunks/cli-0.7.0-xb864qfd.mjs +0 -2
  674. package/dist/chunks/cli-0.7.0-xfxprc47.mjs +0 -2
  675. package/dist/chunks/cli-0.7.0-xpzg1xfc.mjs +0 -2
  676. package/dist/chunks/cli-0.7.0-xvjaw51n.mjs +0 -15
  677. package/dist/chunks/cli-0.7.0-y003ay15.mjs +0 -2
  678. package/dist/chunks/cli-0.7.0-y6nkrrpn.mjs +0 -2
  679. package/dist/chunks/cli-0.7.0-ybdk9aq6.mjs +0 -21
  680. package/dist/chunks/cli-0.7.0-ybwa4x6g.mjs +0 -2
  681. package/dist/chunks/cli-0.7.0-ycew6bek.mjs +0 -2
  682. package/dist/chunks/cli-0.7.0-ye6sm33j.mjs +0 -2
  683. package/dist/chunks/cli-0.7.0-ytqbgtvc.mjs +0 -2
  684. package/dist/chunks/cli-0.7.0-yts7snkm.mjs +0 -45
  685. package/dist/chunks/cli-0.7.0-yw6r7fw4.mjs +0 -58
  686. package/dist/chunks/cli-0.7.0-z15a5zq0.mjs +0 -2
  687. package/dist/chunks/cli-0.7.0-z7sydqy8.mjs +0 -2
  688. package/dist/chunks/cli-0.7.0-z93va7tf.mjs +0 -2
  689. package/dist/chunks/cli-0.7.0-zd1q68sv.mjs +0 -2
  690. package/dist/chunks/cli-0.7.0-zdbaf370.mjs +0 -10
  691. package/dist/chunks/cli-0.7.0-zf3jaceq.mjs +0 -2
  692. package/dist/chunks/cli-0.7.0-zh93d2ez.mjs +0 -2
  693. package/dist/chunks/cli-0.7.0-zjfpqpke.mjs +0 -1
  694. package/dist/chunks/cli-0.7.0-zmfejrs2.mjs +0 -25
  695. package/dist/chunks/cli-0.7.0-zn444tdk.mjs +0 -2
  696. package/dist/chunks/cli-0.7.0-zqv149an.mjs +0 -6
  697. package/dist/chunks/cli-0.7.0-zscdr61q.mjs +0 -2
  698. package/dist/chunks/cli-0.7.0-ztc21898.mjs +0 -2
  699. package/dist/chunks/client-0.7.0-mxq1x2gd.mjs +0 -1
  700. package/dist/chunks/color-0.7.0-q8kx1h5f.mjs +0 -1
  701. package/dist/chunks/compact-0.7.0-wej8t29a.mjs +0 -3
  702. package/dist/chunks/config-0.7.0-1vqyzdss.mjs +0 -1
  703. package/dist/chunks/config-0.7.0-29b2exhr.mjs +0 -1
  704. package/dist/chunks/constants-0.7.0-cwe25jjg.mjs +0 -1
  705. package/dist/chunks/context-0.7.0-wzkh0ek3.mjs +0 -1
  706. package/dist/chunks/context-noninteractive-0.7.0-3knrv7yy.mjs +0 -1
  707. package/dist/chunks/conversation-0.7.0-5gwkat1n.mjs +0 -1
  708. package/dist/chunks/copilotHeaders-0.7.0-k7qbvwa0.mjs +0 -1
  709. package/dist/chunks/copy-0.7.0-g9547w2e.mjs +0 -9
  710. package/dist/chunks/cost-0.7.0-g07zzraf.mjs +0 -1
  711. package/dist/chunks/createSSHSession-0.7.0-x69ccesr.mjs +0 -1
  712. package/dist/chunks/createSession-0.7.0-eythrhrd.mjs +0 -1
  713. package/dist/chunks/debug-0.7.0-grf8etmz.mjs +0 -1
  714. package/dist/chunks/defaultActionDeps-0.7.0-3msvjhye.mjs +0 -1367
  715. package/dist/chunks/desktop-0.7.0-qv2bt4fq.mjs +0 -1
  716. package/dist/chunks/detectRepository-0.7.0-8kzz057x.mjs +0 -1
  717. package/dist/chunks/detection-0.7.0-d8z59p8p.mjs +0 -1
  718. package/dist/chunks/diff-0.7.0-wx4fgtnt.mjs +0 -1
  719. package/dist/chunks/doctor-0.7.0-dzm456q1.mjs +0 -1
  720. package/dist/chunks/doctorDiagnostic-0.7.0-jysj36mx.mjs +0 -1
  721. package/dist/chunks/earlyInput-0.7.0-31tzwhjp.mjs +0 -1
  722. package/dist/chunks/effort-0.7.0-w94qsmp1.mjs +0 -10
  723. package/dist/chunks/envLessBridgeConfig-0.7.0-2vzfvw7j.mjs +0 -1
  724. package/dist/chunks/envUtils-0.7.0-wak5qkkv.mjs +0 -1
  725. package/dist/chunks/environmentSelection-0.7.0-xe6h6x4v.mjs +0 -1
  726. package/dist/chunks/environments-0.7.0-cdxqsbrp.mjs +0 -1
  727. package/dist/chunks/errors-0.7.0-hrt3tamp.mjs +0 -1
  728. package/dist/chunks/exampleCommands-0.7.0-v49vtt40.mjs +0 -1
  729. package/dist/chunks/exit-0.7.0-xpc13d1z.mjs +0 -1
  730. package/dist/chunks/explorer-0.7.0-yy3jawy1.mjs +0 -1
  731. package/dist/chunks/export-0.7.0-689scwyv.mjs +0 -2
  732. package/dist/chunks/extra-usage-0.7.0-675a7x8f.mjs +0 -1
  733. package/dist/chunks/extra-usage-noninteractive-0.7.0-2h542mq6.mjs +0 -1
  734. package/dist/chunks/fast-0.7.0-dwxy8xan.mjs +0 -1
  735. package/dist/chunks/feedback-0.7.0-kms98grz.mjs +0 -14
  736. package/dist/chunks/firstPartyEventLogger-0.7.0-5gy0hbjg.mjs +0 -1
  737. package/dist/chunks/git-0.7.0-bsn50mym.mjs +0 -1
  738. package/dist/chunks/githubModelsCredentials-0.7.0-f9n1jk8g.mjs +0 -1
  739. package/dist/chunks/goal-0.7.0-ben8pbys.mjs +0 -4
  740. package/dist/chunks/grove-0.7.0-5vca5g43.mjs +0 -1
  741. package/dist/chunks/growthbook-0.7.0-ged09pjv.mjs +0 -1
  742. package/dist/chunks/headless-0.7.0-6gxn4ya0.mjs +0 -2
  743. package/dist/chunks/heapdump-0.7.0-jbnb1enq.mjs +0 -6
  744. package/dist/chunks/help-0.7.0-s11djcbq.mjs +0 -1
  745. package/dist/chunks/hookChains-0.7.0-q104805z.mjs +0 -3
  746. package/dist/chunks/hooks-0.7.0-3tzcnyt1.mjs +0 -1
  747. package/dist/chunks/hooks-0.7.0-m0qzy27a.mjs +0 -79
  748. package/dist/chunks/ide-0.7.0-rqh7pczf.mjs +0 -3
  749. package/dist/chunks/image-processor-napi-0.7.0-t874vmrb.mjs +0 -1
  750. package/dist/chunks/inboundAttachments-0.7.0-9h4k1v8p.mjs +0 -1
  751. package/dist/chunks/index-0.7.0-0pb4fykd.mjs +0 -1
  752. package/dist/chunks/index-0.7.0-339ebzg3.mjs +0 -1
  753. package/dist/chunks/index-0.7.0-3qc9y7vs.mjs +0 -1
  754. package/dist/chunks/index-0.7.0-8xaka5b5.mjs +0 -1
  755. package/dist/chunks/index-0.7.0-aghbrz36.mjs +0 -1
  756. package/dist/chunks/index-0.7.0-asx0vcnp.mjs +0 -1
  757. package/dist/chunks/index-0.7.0-at8f760s.mjs +0 -2
  758. package/dist/chunks/index-0.7.0-aw15r8m5.mjs +0 -1
  759. package/dist/chunks/index-0.7.0-b95077ct.mjs +0 -1
  760. package/dist/chunks/index-0.7.0-etmdkstm.mjs +0 -1
  761. package/dist/chunks/index-0.7.0-fhnz63fp.mjs +0 -1
  762. package/dist/chunks/index-0.7.0-fx8935ev.mjs +0 -5
  763. package/dist/chunks/index-0.7.0-hwyk7tea.mjs +0 -30
  764. package/dist/chunks/index-0.7.0-nb6m1jch.mjs +0 -1
  765. package/dist/chunks/index-0.7.0-p4n8wp5y.mjs +0 -9
  766. package/dist/chunks/index-0.7.0-rbb0bwpy.mjs +0 -1
  767. package/dist/chunks/index-0.7.0-rq05kg71.mjs +0 -17
  768. package/dist/chunks/index-0.7.0-vk7vxjae.mjs +0 -1
  769. package/dist/chunks/index-0.7.0-wjsr1d6k.mjs +0 -2
  770. package/dist/chunks/index-0.7.0-x03pfhyx.mjs +0 -9
  771. package/dist/chunks/index-0.7.0-y22a1z29.mjs +0 -1
  772. package/dist/chunks/index-0.7.0-yx3335f1.mjs +0 -1
  773. package/dist/chunks/index-0.7.0-zsw19y1x.mjs +0 -1
  774. package/dist/chunks/init-0.7.0-f0taef1q.mjs +0 -1
  775. package/dist/chunks/initReplBridge-0.7.0-wcvxy8w8.mjs +0 -1
  776. package/dist/chunks/ink-0.7.0-xpha78d8.mjs +0 -1
  777. package/dist/chunks/insights-0.7.0-x0rwvydg.mjs +0 -870
  778. package/dist/chunks/install-0.7.0-ncp2pec7.mjs +0 -1
  779. package/dist/chunks/install-github-app-0.7.0-trt9558z.mjs +0 -149
  780. package/dist/chunks/install-slack-app-0.7.0-kjz97cdh.mjs +0 -1
  781. package/dist/chunks/instrumentation-0.7.0-bey09njh.mjs +0 -1
  782. package/dist/chunks/interactiveHelpers-0.7.0-1qs1kree.mjs +0 -1
  783. package/dist/chunks/keybindings-0.7.0-ekf19qhh.mjs +0 -2
  784. package/dist/chunks/knowledge-0.7.0-adck5x26.mjs +0 -2
  785. package/dist/chunks/latestVersionCache-0.7.0-ark5pmnp.mjs +0 -1
  786. package/dist/chunks/loadAgentsDir-0.7.0-5ae7wa3t.mjs +0 -1
  787. package/dist/chunks/loadPluginHooks-0.7.0-vhwhvb6f.mjs +0 -1
  788. package/dist/chunks/loadPluginHooks-0.7.0-xb4qdrg0.mjs +0 -1
  789. package/dist/chunks/log-0.7.0-6mtk9ch7.mjs +0 -1
  790. package/dist/chunks/main-0.7.0-v0y4hrdm.mjs +0 -1
  791. package/dist/chunks/managedEnv-0.7.0-n64hpsst.mjs +0 -1
  792. package/dist/chunks/mcp-0.7.0-2j3bkwz5.mjs +0 -1
  793. package/dist/chunks/mcp-0.7.0-rqwvyycg.mjs +0 -4
  794. package/dist/chunks/mcp-0.7.0-t0pqt6hy.mjs +0 -17
  795. package/dist/chunks/mcpb-0.7.0-wmg0861b.mjs +0 -1
  796. package/dist/chunks/memory-0.7.0-gfe3p8h2.mjs +0 -3
  797. package/dist/chunks/model-0.7.0-anb8mgtp.mjs +0 -2
  798. package/dist/chunks/model-0.7.0-jxz0n7g1.mjs +0 -1
  799. package/dist/chunks/node-0.7.0-4sagcnk2.mjs +0 -12
  800. package/dist/chunks/oauth-0.7.0-n3tj8amn.mjs +0 -1
  801. package/dist/chunks/openaiShim-0.7.0-9bq5572t.mjs +0 -14
  802. package/dist/chunks/output-style-0.7.0-wmxwqrx6.mjs +0 -1
  803. package/dist/chunks/package-GCDC7LJR-0.7.0-fke68t3z.mjs +0 -1
  804. package/dist/chunks/parseConnectUrl-0.7.0-p5aq0xy4.mjs +0 -1
  805. package/dist/chunks/parser-0.7.0-a4qhvrn9.mjs +0 -1
  806. package/dist/chunks/passes-0.7.0-4wxjh63r.mjs +0 -1
  807. package/dist/chunks/permissions-0.7.0-cth9pb19.mjs +0 -3
  808. package/dist/chunks/permissions-0.7.0-nxre3gew.mjs +0 -1
  809. package/dist/chunks/plan-0.7.0-0t3hxxwf.mjs +0 -1
  810. package/dist/chunks/plist-0.7.0-ptbkp7b8.mjs +0 -1
  811. package/dist/chunks/plugin-0.7.0-4zewdh7s.mjs +0 -29
  812. package/dist/chunks/pluginStartupCheck-0.7.0-3zvpdbjz.mjs +0 -1
  813. package/dist/chunks/plugins-0.7.0-dyrrfzzb.mjs +0 -9
  814. package/dist/chunks/preActionHook-0.7.0-agzbsqyv.mjs +0 -2
  815. package/dist/chunks/print-0.7.0-m81z10rw.mjs +0 -57
  816. package/dist/chunks/privacy-settings-0.7.0-qvrhcvbv.mjs +0 -1
  817. package/dist/chunks/process-0.7.0-4rnq2g80.mjs +0 -1
  818. package/dist/chunks/processBashCommand-0.7.0-htmch7xm.mjs +0 -1
  819. package/dist/chunks/processSlashCommand-0.7.0-gj7mbd0a.mjs +0 -9
  820. package/dist/chunks/prompt-0.7.0-2d4qsrq9.mjs +0 -1
  821. package/dist/chunks/prompt-0.7.0-rkefqrwh.mjs +0 -1
  822. package/dist/chunks/prompts-0.7.0-ty3k4n75.mjs +0 -1
  823. package/dist/chunks/protocolHandler-0.7.0-aqsa4ph2.mjs +0 -13
  824. package/dist/chunks/provider-0.7.0-yw5h323y.mjs +0 -2
  825. package/dist/chunks/providerProfiles-0.7.0-vdm0m870.mjs +0 -1
  826. package/dist/chunks/providerValidation-0.7.0-rtzpgzra.mjs +0 -6
  827. package/dist/chunks/rate-limit-options-0.7.0-dqtjdpft.mjs +0 -1
  828. package/dist/chunks/registerSubcommands-0.7.0-r5wmbkz9.mjs +0 -34
  829. package/dist/chunks/registry-0.7.0-jjaxz6ve.mjs +0 -1
  830. package/dist/chunks/release-notes-0.7.0-h6me5mww.mjs +0 -5
  831. package/dist/chunks/reload-plugins-0.7.0-vtr0cnwe.mjs +0 -2
  832. package/dist/chunks/remote-env-0.7.0-h013vass.mjs +0 -1
  833. package/dist/chunks/remoteBridgeCore-0.7.0-fmh34c6f.mjs +0 -1
  834. package/dist/chunks/remoteSession-0.7.0-40yqbh78.mjs +0 -1
  835. package/dist/chunks/rename-0.7.0-wqs6kjb7.mjs +0 -1
  836. package/dist/chunks/replBridgeHandle-0.7.0-d192ahyh.mjs +0 -1
  837. package/dist/chunks/replLauncher-0.7.0-gtmcyxgm.mjs +0 -1
  838. package/dist/chunks/resume-0.7.0-6cy3j2e8.mjs +0 -2
  839. package/dist/chunks/rewind-0.7.0-kepxqnvs.mjs +0 -1
  840. package/dist/chunks/rootOptions-0.7.0-00ekm71j.mjs +0 -1
  841. package/dist/chunks/sandbox-adapter-0.7.0-env8r2gg.mjs +0 -1
  842. package/dist/chunks/sandbox-toggle-0.7.0-wk296sbw.mjs +0 -1
  843. package/dist/chunks/session-0.7.0-qbmq7k37.mjs +0 -2
  844. package/dist/chunks/sessionDiscovery-0.7.0-xf03hmpk.mjs +0 -1
  845. package/dist/chunks/sessionFileAccessHooks-0.7.0-gw8qw3zp.mjs +0 -1
  846. package/dist/chunks/sessionStorage-0.7.0-vcyz3dw7.mjs +0 -1
  847. package/dist/chunks/settings-0.7.0-3k9dr8ys.mjs +0 -1
  848. package/dist/chunks/setup-0.7.0-9ync2tk7.mjs +0 -5
  849. package/dist/chunks/sinks-0.7.0-g1bwkwh0.mjs +0 -1
  850. package/dist/chunks/skills-0.7.0-hjdx42cr.mjs +0 -1
  851. package/dist/chunks/startupProfiler-0.7.0-b32wtvbf.mjs +0 -1
  852. package/dist/chunks/startupUpdateCheck-0.7.0-m55han8a.mjs +0 -1
  853. package/dist/chunks/state-0.7.0-g9nbt1zn.mjs +0 -1
  854. package/dist/chunks/stats-0.7.0-429ntw0k.mjs +0 -6
  855. package/dist/chunks/status-0.7.0-h19n5a31.mjs +0 -1
  856. package/dist/chunks/stickers-0.7.0-q34hs61c.mjs +0 -1
  857. package/dist/chunks/subprocessEnv-0.7.0-gz4xjdce.mjs +0 -1
  858. package/dist/chunks/tasks-0.7.0-e2rrgr6x.mjs +0 -1
  859. package/dist/chunks/teamHelpers-0.7.0-jss9q0ak.mjs +0 -1
  860. package/dist/chunks/teammateModeSnapshot-0.7.0-c7ekrdae.mjs +0 -1
  861. package/dist/chunks/teleport-0.7.0-n0h6pqs8.mjs +0 -1
  862. package/dist/chunks/terminalSetup-0.7.0-ycw8nd2k.mjs +0 -1
  863. package/dist/chunks/theme-0.7.0-2dzcdk7a.mjs +0 -1
  864. package/dist/chunks/thinkback-0.7.0-9xhfd6ab.mjs +0 -1
  865. package/dist/chunks/thinkback-play-0.7.0-yqj7b8tt.mjs +0 -1
  866. package/dist/chunks/toolPool-0.7.0-xes3fby4.mjs +0 -1
  867. package/dist/chunks/toolSearch-0.7.0-wkaae53k.mjs +0 -1
  868. package/dist/chunks/tools-0.7.0-7qjq03x9.mjs +0 -1
  869. package/dist/chunks/trustedDevice-0.7.0-0jcs8sag.mjs +0 -1
  870. package/dist/chunks/turndown.cjs-0.7.0-evvr9k3e.mjs +0 -69
  871. package/dist/chunks/types-0.7.0-7t30qdm7.mjs +0 -1
  872. package/dist/chunks/ultrareviewCommand-0.7.0-mt2gyqrs.mjs +0 -4
  873. package/dist/chunks/update-0.7.0-d79xsjyx.mjs +0 -86
  874. package/dist/chunks/upgrade-0.7.0-29j99fm4.mjs +0 -1
  875. package/dist/chunks/upload-0.7.0-c88xwfr6.mjs +0 -7
  876. package/dist/chunks/upstreamproxy-0.7.0-qha2t9zm.mjs +0 -14
  877. package/dist/chunks/url-handler-napi-0.7.0-d2khwe8w.mjs +0 -1
  878. package/dist/chunks/usage-0.7.0-fz211dwp.mjs +0 -1
  879. package/dist/chunks/util-0.7.0-kre9h9qa.mjs +0 -1
  880. package/dist/chunks/utils-0.7.0-vw4eq452.mjs +0 -1
  881. package/dist/chunks/vim-0.7.0-2tzpxf7d.mjs +0 -1
  882. package/dist/chunks/watcher-0.7.0-dbb0csvt.mjs +0 -1
  883. package/dist/chunks/wiki-0.7.0-etkhyz2p.mjs +0 -132
  884. package/dist/chunks/worktree-0.7.0-ntn0xdnq.mjs +0 -1
  885. package/dist/chunks/worktreeModeEnabled-0.7.0-h5ak3bk5.mjs +0 -1
  886. package/dist/chunks/wrapper-0.7.0-zvn0r75t.mjs +0 -7
  887. /package/dist/chunks/{cli-0.7.0-z555y4ap.mjs → cli-0.7.2-1xbehmgb.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.7.0-jt2afswt.mjs → cli-0.7.2-5c89p68w.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.7.0-brqbb2d5.mjs → cli-0.7.2-796x24s1.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.7.0-m9eza7ry.mjs → cli-0.7.2-b9pdb0nv.mjs} +0 -0
  891. /package/dist/chunks/{cli-0.7.0-5vszg5ys.mjs → cli-0.7.2-d5fbych4.mjs} +0 -0
  892. /package/dist/chunks/{cli-0.7.0-59h7jbfm.mjs → cli-0.7.2-q9twb2tn.mjs} +0 -0
  893. /package/dist/chunks/{cli-0.7.0-76wj8x34.mjs → cli-0.7.2-yppcb6em.mjs} +0 -0
@@ -0,0 +1,17 @@
1
+ import{ai as O$,bi as E7}from"./cli-0.7.2-q85af7gm.mjs";import{x1 as F$,y1 as w7}from"./cli-0.7.2-9156j3vm.mjs";import{Kpa as q8,Lpa as j6,Mpa as gY,Npa as R1,Opa as uY}from"./cli-0.7.2-g3k7m45h.mjs";import"./cli-0.7.2-atsd6734.mjs";import{cqa as Z1,eqa as _4,fqa as m8,gqa as C,hqa as r0}from"./cli-0.7.2-5tacs42k.mjs";function Z4($,Y){return function(){return $.apply(Y,arguments)}}var Y1=()=>{};function i0($){return $!==null&&!p0($)&&$.constructor!==null&&!p0($.constructor)&&$0($.constructor.isBuffer)&&$.constructor.isBuffer($)}function q$($){let Y;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)Y=ArrayBuffer.isView($);else Y=$&&$.buffer&&N5($.buffer);return Y}function u$(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function K4($,Y,{allOwnKeys:Q=!1}={}){if($===null||typeof $>"u")return;let G,X;if(typeof $!=="object")$=[$];if(f0($))for(G=0,X=$.length;G<X;G++)Y.call(null,$[G],G,$);else{if(i0($))return;let W=Q?Object.getOwnPropertyNames($):Object.keys($),Z=W.length,J;for(G=0;G<Z;G++)J=W[G],Y.call(null,$[J],J,$)}}function M5($,Y){if(i0($))return null;Y=Y.toLowerCase();let Q=Object.keys($),G=Q.length,X;while(G-- >0)if(X=Q[G],Y===X.toLowerCase())return X;return null}function Q1(...$){let{caseless:Y,skipUndefined:Q}=V5(this)&&this||{},G={},X=(W,Z)=>{if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return;let J=Y&&typeof Z==="string"&&M5(G,Z)||Z,K=k4(G,J)?G[J]:void 0;if(q4(K)&&q4(W))G[J]=Q1(K,W);else if(q4(W))G[J]=Q1({},W);else if(f0(W))G[J]=W.slice();else if(!Q||!p0(W))G[J]=W};for(let W=0,Z=$.length;W<Z;W++){let J=$[W];if(!J||i0(J))continue;if(K4(J,X),typeof J!=="object"||f0(J))continue;let K=Object.getOwnPropertySymbols(J);for(let M=0;M<K.length;M++){let V=K[M];if(Z8.call(J,V))X(J[V],V)}}return G}function z8($){return!!($&&$0($.append)&&$[J5]==="FormData"&&$[N4])}var E$,d0,N4,J5,k4,J4=($,Y)=>{let Q=$,G=[];while(Q!=null&&Q!==Object.prototype){if(G.indexOf(Q)!==-1)return!1;if(G.push(Q),k4(Q,Y))return!0;Q=d0(Q)}return!1},A$=($,Y)=>$!=null&&J4($,Y)?$[Y]:void 0,G1,z0=($)=>{return $=$.toLowerCase(),(Y)=>G1(Y)===$},j4=($)=>(Y)=>typeof Y===$,f0,p0,N5,k$,$0,K5,n0=($)=>$!==null&&typeof $==="object",j$=($)=>$===!0||$===!1,q4=($)=>{if(!n0($))return!1;let Y=d0($);return(Y===null||Y===Object.prototype||d0(Y)===null)&&!J4($,J5)&&!J4($,N4)},x$=($)=>{if(!n0($)||i0($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(Y){return!1}},v$,b$,f$=($)=>{return!!($&&typeof $.uri<"u")},y$=($)=>$&&typeof $.getParts<"u",m$,h$,g$=($)=>n0($)&&$0($.pipe),W5,Z5,c$=($)=>{if(!$)return!1;if(Z5&&$ instanceof Z5)return!0;let Y=d0($);if(!Y||Y===Object.prototype)return!1;if(!$0($.append))return!1;let Q=G1($);return Q==="formdata"||Q==="object"&&$0($.toString)&&$.toString()==="[object FormData]"},l$,d$,p$,i$,n$,a$=($)=>{return $.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},b0,V5=($)=>!p0($)&&$!==b0,t$=($,Y,Q,{allOwnKeys:G}={})=>{return K4(Y,(X,W)=>{if(Q&&$0(X))Object.defineProperty($,W,{__proto__:null,value:Z4(X,Q),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty($,W,{__proto__:null,value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:G}),$},s$=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},o$=($,Y,Q,G)=>{$.prototype=Object.create(Y.prototype,G),Object.defineProperty($.prototype,"constructor",{__proto__:null,value:$,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty($,"super",{__proto__:null,value:Y.prototype}),Q&&Object.assign($.prototype,Q)},r$=($,Y,Q,G)=>{let X,W,Z,J={};if(Y=Y||{},$==null)return Y;do{X=Object.getOwnPropertyNames($),W=X.length;while(W-- >0)if(Z=X[W],(!G||G(Z,$,Y))&&!J[Z])Y[Z]=$[Z],J[Z]=!0;$=Q!==!1&&d0($)}while($&&(!Q||Q($,Y))&&$!==Object.prototype);return Y},e$=($,Y,Q)=>{if($=String($),Q===void 0||Q>$.length)Q=$.length;Q-=Y.length;let G=$.indexOf(Y,Q);return G!==-1&&G===Q},$8=($)=>{if(!$)return null;if(f0($))return $;let Y=$.length;if(!K5(Y))return null;let Q=Array(Y);while(Y-- >0)Q[Y]=$[Y];return Q},Y8,Q8=($,Y)=>{let G=($&&$[N4]).call($),X;while((X=G.next())&&!X.done){let W=X.value;Y.call($,W[0],W[1])}},G8=($,Y)=>{let Q,G=[];while((Q=$.exec(Y))!==null)G.push(Q);return G},X8,W8=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Q,G,X){return G.toUpperCase()+X})},Z8,J8,z5=($,Y)=>{let Q=Object.getOwnPropertyDescriptors($),G={};K4(Q,(X,W)=>{let Z;if((Z=Y(X,W,$))!==!1)G[W]=Z||X}),Object.defineProperties($,G)},N8=($)=>{z5($,(Y,Q)=>{if($0($)&&["arguments","caller","callee"].includes(Q))return!1;let G=$[Q];if(!$0(G))return;if(Y.enumerable=!1,"writable"in Y){Y.writable=!1;return}if(!Y.set)Y.set=()=>{throw Error("Can not rewrite read-only method '"+Q+"'")}})},K8=($,Y)=>{let Q={},G=(X)=>{X.forEach((W)=>{Q[W]=!0})};return f0($)?G($):G(String($).split(Y)),Q},M8=()=>{},V8=($,Y)=>{return $!=null&&Number.isFinite($=+$)?$:Y},B8=($)=>{let Y=new WeakSet,Q=(G)=>{if(n0(G)){if(Y.has(G))return;if(i0(G))return G;if(!("toJSON"in G)){Y.add(G);let X=f0(G)?[]:{};return K4(G,(W,Z)=>{let J=Q(W);!p0(J)&&(X[Z]=J)}),Y.delete(G),X}}return G};return Q($)},U8,L8=($)=>$&&(n0($)||$0($))&&$0($.then)&&$0($.catch),B5,_8,U5=($)=>$!=null&&$0($[N4]),F8=($)=>$!=null&&J4($,N4)&&U5($),N;var b=C(()=>{Y1();({toString:E$}=Object.prototype),{getPrototypeOf:d0}=Object,{iterator:N4,toStringTag:J5}=Symbol,k4=(({hasOwnProperty:$})=>(Y,Q)=>$.call(Y,Q))(Object.prototype),G1=(($)=>(Y)=>{let Q=E$.call(Y);return $[Q]||($[Q]=Q.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:f0}=Array,p0=j4("undefined");N5=z0("ArrayBuffer");k$=j4("string"),$0=j4("function"),K5=j4("number"),v$=z0("Date"),b$=z0("File"),m$=z0("Blob"),h$=z0("FileList");W5=u$(),Z5=typeof W5.FormData<"u"?W5.FormData:void 0,l$=z0("URLSearchParams"),[d$,p$,i$,n$]=["ReadableStream","Request","Response","Headers"].map(z0);b0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();Y8=(($)=>{return(Y)=>{return $&&Y instanceof $}})(typeof Uint8Array<"u"&&d0(Uint8Array)),X8=z0("HTMLFormElement"),{propertyIsEnumerable:Z8}=Object.prototype,J8=z0("RegExp");U8=z0("AsyncFunction"),B5=(($,Y)=>{if($)return setImmediate;return Y?((Q,G)=>{return b0.addEventListener("message",({source:X,data:W})=>{if(X===b0&&W===Q)G.length&&G.shift()()},!1),(X)=>{G.push(X),b0.postMessage(Q,"*")}})(`axios@${Math.random()}`,[]):(Q)=>setTimeout(Q)})(typeof setImmediate==="function",$0(b0.postMessage)),_8=typeof queueMicrotask<"u"?queueMicrotask.bind(b0):typeof process<"u"&&process.nextTick||B5,N={isArray:f0,isArrayBuffer:N5,isBuffer:i0,isFormData:c$,isArrayBufferView:q$,isString:k$,isNumber:K5,isBoolean:j$,isObject:n0,isPlainObject:q4,isEmptyObject:x$,isReadableStream:d$,isRequest:p$,isResponse:i$,isHeaders:n$,isUndefined:p0,isDate:v$,isFile:b$,isReactNativeBlob:f$,isReactNative:y$,isBlob:m$,isRegExp:J8,isFunction:$0,isStream:g$,isURLSearchParams:l$,isTypedArray:Y8,isFileList:h$,forEach:K4,merge:Q1,extend:t$,trim:a$,stripBOM:s$,inherits:o$,toFlatObject:r$,kindOf:G1,kindOfTest:z0,endsWith:e$,toArray:$8,forEachEntry:Q8,matchAll:G8,isHTMLForm:X8,hasOwnProperty:k4,hasOwnProp:k4,hasOwnInPrototypeChain:J4,getSafeProp:A$,reduceDescriptors:z5,freezeMethods:N8,toObjectSet:K8,toCamelCase:W8,noop:M8,toFiniteNumber:V8,findKey:M5,global:b0,isContextDefined:V5,isSpecCompliantForm:z8,toJSONObject:B8,isAsyncFn:U8,isThenable:L8,setImmediate:B5,asap:_8,isIterable:U5,isSafeIterable:F8}});var O8,L5=($)=>{let Y={},Q,G,X;return $&&$.split(`
2
+ `).forEach(function(Z){if(X=Z.indexOf(":"),Q=Z.substring(0,X).trim().toLowerCase(),G=Z.substring(X+1).trim(),!Q||Y[Q]&&O8[Q])return;if(Q==="set-cookie")if(Y[Q])Y[Q].push(G);else Y[Q]=[G];else Y[Q]=Y[Q]?Y[Q]+", "+G:G}),Y};var _5=C(()=>{b();O8=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"])});function P8($){let Y=0,Q=$.length;while(Y<Q){let G=$.charCodeAt(Y);if(G!==9&&G!==32)break;Y+=1}while(Q>Y){let G=$.charCodeAt(Q-1);if(G!==9&&G!==32)break;Q-=1}return Y===0&&Q===$.length?$:$.slice(Y,Q)}function X1($,Y){if(N.isArray($))return $.map((Q)=>X1(Q,Y));return P8(String($).replace(Y,""))}function a0($){let Y=Object.create(null);return N.forEach($.toJSON(),(Q,G)=>{Y[G]=C8(Q)}),Y}var H8,T8,F5=($)=>X1($,H8),C8=($)=>X1($,T8);var M4=C(()=>{b();H8=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),T8=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g")});function V4($){return $&&String($).trim().toLowerCase()}function x4($){if($===!1||$==null)return $;return N.isArray($)?$.map(x4):F5(String($))}function I8($){let Y=Object.create(null),Q=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,G;while(G=Q.exec($))Y[G[1]]=G[2];return Y}function W1($,Y,Q,G,X){if(N.isFunction(G))return G.call(this,Y,Q);if(X)Y=Q;if(!N.isString(Y))return;if(N.isString(G))return Y.indexOf(G)!==-1;if(N.isRegExp(G))return G.test(Y)}function D8($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Y,Q,G)=>{return Q.toUpperCase()+G})}function S8($,Y){let Q=N.toCamelCase(" "+Y);["get","set","has"].forEach((G)=>{Object.defineProperty($,G+Q,{__proto__:null,value:function(X,W,Z){return this[G].call(this,Y,X,W,Z)},configurable:!0})})}var O5,R8=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim()),z4,f;var B0=C(()=>{b();_5();M4();O5=Symbol("internals");z4=class z4{constructor($){$&&this.set($)}set($,Y,Q){let G=this;function X(Z,J,K){let M=V4(J);if(!M)return;let V=N.findKey(G,M);if(!V||G[V]===void 0||K===!0||K===void 0&&G[V]!==!1)G[V||J]=x4(Z)}let W=(Z,J)=>N.forEach(Z,(K,M)=>X(K,M,J));if(N.isPlainObject($)||$ instanceof this.constructor)W($,Y);else if(N.isString($)&&($=$.trim())&&!R8($))W(L5($),Y);else if(N.isObject($)&&N.isSafeIterable($)){let Z=Object.create(null),J,K;for(let M of $){if(!N.isArray(M))throw TypeError("Object iterator must return a key-value pair");if(K=M[0],N.hasOwnProp(Z,K))J=Z[K],Z[K]=N.isArray(J)?[...J,M[1]]:[J,M[1]];else Z[K]=M[1]}W(Z,Y)}else $!=null&&X(Y,$,Q);return this}get($,Y){if($=V4($),$){let Q=N.findKey(this,$);if(Q){let G=this[Q];if(!Y)return G;if(Y===!0)return I8(G);if(N.isFunction(Y))return Y.call(this,G,Q);if(N.isRegExp(Y))return Y.exec(G);throw TypeError("parser must be boolean|regexp|function")}}}has($,Y){if($=V4($),$){let Q=N.findKey(this,$);return!!(Q&&this[Q]!==void 0&&(!Y||W1(this,this[Q],Q,Y)))}return!1}delete($,Y){let Q=this,G=!1;function X(W){if(W=V4(W),W){let Z=N.findKey(Q,W);if(Z&&(!Y||W1(Q,Q[Z],Z,Y)))delete Q[Z],G=!0}}if(N.isArray($))$.forEach(X);else X($);return G}clear($){let Y=Object.keys(this),Q=Y.length,G=!1;while(Q--){let X=Y[Q];if(!$||W1(this,this[X],X,$,!0))delete this[X],G=!0}return G}normalize($){let Y=this,Q={};return N.forEach(this,(G,X)=>{let W=N.findKey(Q,X);if(W){Y[W]=x4(G),delete Y[X];return}let Z=$?D8(X):String(X).trim();if(Z!==X)delete Y[X];Y[Z]=x4(G),Q[Z]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){let Y=Object.create(null);return N.forEach(this,(Q,G)=>{Q!=null&&Q!==!1&&(Y[G]=$&&N.isArray(Q)?Q.join(", "):Q)}),Y}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,Y])=>$+": "+Y).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...Y){let Q=new this($);return Y.forEach((G)=>Q.set(G)),Q}static accessor($){let Q=(this[O5]=this[O5]={accessors:{}}).accessors,G=this.prototype;function X(W){let Z=V4(W);if(!Q[Z])S8(G,W),Q[Z]=!0}return N.isArray($)?$.forEach(X):X($),this}};z4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(z4.prototype,({value:$},Y)=>{let Q=Y[0].toUpperCase()+Y.slice(1);return{get:()=>$,set(G){this[Q]=G}}});N.freezeMethods(z4);f=z4});function E8($){if(N.hasOwnProp($,"toJSON"))return!0;let Y=Object.getPrototypeOf($);while(Y&&Y!==Object.prototype){if(N.hasOwnProp(Y,"toJSON"))return!0;Y=Object.getPrototypeOf(Y)}return!1}function A8($,Y){let Q=new Set(Y.map((W)=>String(W).toLowerCase())),G=[],X=(W)=>{if(W===null||typeof W!=="object")return W;if(N.isBuffer(W))return W;if(G.indexOf(W)!==-1)return;if(W instanceof f)W=W.toJSON();G.push(W);let Z;if(N.isArray(W))Z=[],W.forEach((J,K)=>{let M=X(J);if(!N.isUndefined(M))Z[K]=M});else{if(!N.isPlainObject(W)&&E8(W))return G.pop(),W;Z=Object.create(null);for(let[J,K]of Object.entries(W)){let M=Q.has(J.toLowerCase())?w8:X(K);if(!N.isUndefined(M))Z[J]=M}}return G.pop(),Z};return X($)}var w8="[REDACTED ****]",n,U;var s=C(()=>{b();B0();n=class n extends Error{static from($,Y,Q,G,X,W){let Z=new n($.message,Y||$.code,Q,G,X);if(Z.cause=$,Z.name=$.name,$.status!=null&&Z.status==null)Z.status=$.status;return W&&Object.assign(Z,W),Z}constructor($,Y,Q,G,X){super($);if(Object.defineProperty(this,"message",{__proto__:null,value:$,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,Y&&(this.code=Y),Q&&(this.config=Q),G&&(this.request=G),X)this.response=X,this.status=X.status}toJSON(){let $=this.config,Y=$&&N.hasOwnProp($,"redact")?$.redact:void 0,Q=N.isArray(Y)&&Y.length>0?A8($,Y):N.toJSONObject($);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q,code:this.code,status:this.status}}};n.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";n.ERR_BAD_OPTION="ERR_BAD_OPTION";n.ECONNABORTED="ECONNABORTED";n.ETIMEDOUT="ETIMEDOUT";n.ECONNREFUSED="ECONNREFUSED";n.ERR_NETWORK="ERR_NETWORK";n.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";n.ERR_DEPRECATED="ERR_DEPRECATED";n.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";n.ERR_BAD_REQUEST="ERR_BAD_REQUEST";n.ERR_CANCELED="ERR_CANCELED";n.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";n.ERR_INVALID_URL="ERR_INVALID_URL";n.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";U=n});var P5,v4;var J1=C(()=>{P5=Z1(q8(),1),v4=P5.default});function K1($){return N.isPlainObject($)||N.isArray($)}function H5($){return N.endsWith($,"[]")?$.slice(0,-2):$}function N1($,Y,Q){if(!$)return Y;return $.concat(Y).map(function(X,W){return X=H5(X),!Q&&W?"["+X+"]":X}).join(Q?".":"")}function k8($){return N.isArray($)&&!$.some(K1)}function x8($,Y,Q){if(!N.isObject($))throw TypeError("target must be an object");Y=Y||new(v4||FormData),Q=N.toFlatObject(Q,{metaTokens:!0,dots:!1,indexes:!1},!1,function(I,R){return!N.isUndefined(R[I])});let G=Q.metaTokens,X=Q.visitor||H,W=Q.dots,Z=Q.indexes,J=Q.Blob||typeof Blob<"u"&&Blob,K=Q.maxDepth===void 0?M1:Q.maxDepth,M=J&&N.isSpecCompliantForm(Y),V=[];if(!N.isFunction(X))throw TypeError("visitor must be a function");function z(_){if(_===null)return"";if(N.isDate(_))return _.toISOString();if(N.isBoolean(_))return _.toString();if(!M&&N.isBlob(_))throw new U("Blob is not supported. Use a Buffer instead.");if(N.isArrayBuffer(_)||N.isTypedArray(_))return M&&typeof Blob==="function"?new Blob([_]):Buffer.from(_);return _}function B(_){if(_>K)throw new U("Object is too deeply nested ("+_+" levels). Max depth: "+K,U.ERR_FORM_DATA_DEPTH_EXCEEDED)}function L(_,I){if(K===1/0)return JSON.stringify(_);let R=[];return JSON.stringify(_,function(p,y){if(!N.isObject(y))return y;while(R.length&&R[R.length-1]!==this)R.pop();return R.push(y),B(I+R.length-1),y})}function H(_,I,R){let E=_;if(N.isReactNative(Y)&&N.isReactNativeBlob(_))return Y.append(N1(R,I,W),z(_)),!1;if(_&&!R&&typeof _==="object"){if(N.endsWith(I,"{}"))I=G?I:I.slice(0,-2),_=L(_,1);else if(N.isArray(_)&&k8(_)||(N.isFileList(_)||N.endsWith(I,"[]"))&&(E=N.toArray(_)))return I=H5(I),E.forEach(function(y,Y0){!(N.isUndefined(y)||y===null)&&Y.append(Z===!0?N1([I],Y0,W):Z===null?I:I+"[]",z(y))}),!1}if(K1(_))return!0;return Y.append(N1(R,I,W),z(_)),!1}let D=Object.assign(j8,{defaultVisitor:H,convertValue:z,isVisitable:K1});function T(_,I,R=0){if(N.isUndefined(_))return;if(B(R),V.indexOf(_)!==-1)throw Error("Circular reference detected in "+I.join("."));V.push(_),N.forEach(_,function(p,y){if((!(N.isUndefined(p)||p===null)&&X.call(Y,p,N.isString(y)?y.trim():y,I,D))===!0)T(p,I?I.concat(y):[y],R+1)}),V.pop()}if(!N.isObject($))throw TypeError("data must be an object");return T($),Y}var M1=100,j8,E0;var t0=C(()=>{b();s();J1();j8=N.toFlatObject(N,{},null,function(Y){return/^is[A-Z]/.test(Y)});E0=x8});function T5($){let Y={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent($).replace(/[!'()~]|%20/g,function(G){return Y[G]})}function C5($,Y){this._pairs=[],$&&E0($,this,Y)}var I5,R5;var D5=C(()=>{t0();I5=C5.prototype;I5.append=function(Y,Q){this._pairs.push([Y,Q])};I5.toString=function(Y){let Q=Y?function(G){return Y.call(this,G,T5)}:T5;return this._pairs.map(function(X){return Q(X[0])+"="+Q(X[1])},"").join("&")};R5=C5});function v8($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function y0($,Y,Q){if(!Y)return $;let G=N.isFunction(Q)?{serialize:Q}:Q,X=N.getSafeProp(G,"encode")||v8,W=N.getSafeProp(G,"serialize"),Z;if(W)Z=W(Y,G);else Z=N.isURLSearchParams(Y)?Y.toString():new R5(Y,G).toString(X);if(Z){let J=$.indexOf("#");if(J!==-1)$=$.slice(0,J);$+=($.indexOf("?")===-1?"?":"&")+Z}return $}var b4=C(()=>{b();D5()});class S5{constructor(){this.handlers=[]}use($,Y,Q){return this.handlers.push({fulfilled:$,rejected:Y,synchronous:Q?Q.synchronous:!1,runWhen:Q?Q.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){N.forEach(this.handlers,function(Q){if(Q!==null)$(Q)})}}var V1;var w5=C(()=>{b();V1=S5});var A0;var B4=C(()=>{A0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0}});import b8 from"url";var E5;var A5=C(()=>{E5=b8.URLSearchParams});import f8 from"crypto";var z1="abcdefghijklmnopqrstuvwxyz",q5="0123456789",k5,y8=($=16,Y=k5.ALPHA_DIGIT)=>{let Q="",{length:G}=Y,X=new Uint32Array($);f8.randomFillSync(X);for(let W=0;W<$;W++)Q+=Y[X[W]%G];return Q},j5;var x5=C(()=>{A5();J1();k5={DIGIT:q5,ALPHA:z1,ALPHA_DIGIT:z1+z1.toUpperCase()+q5},j5={isNode:!0,classes:{URLSearchParams:E5,FormData:v4,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:k5,generateString:y8,protocols:["http","https","file","data"]}});var L1={};m8(L1,{origin:()=>u8,navigator:()=>B1,hasStandardBrowserWebWorkerEnv:()=>g8,hasStandardBrowserEnv:()=>h8,hasBrowserEnv:()=>U1});var U1,B1,h8,g8,u8;var v5=C(()=>{U1=typeof window<"u"&&typeof document<"u",B1=typeof navigator==="object"&&navigator||void 0,h8=U1&&(!B1||["ReactNative","NativeScript","NS"].indexOf(B1.product)<0),g8=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),u8=U1&&window.location.href||"http://localhost"});var j;var U0=C(()=>{x5();v5();j={...L1,...j5}});function _1($,Y){return E0($,new j.classes.URLSearchParams,{visitor:function(Q,G,X,W){if(j.isNode&&N.isBuffer(Q))return this.append(G,Q.toString("base64")),!1;return W.defaultVisitor.apply(this,arguments)},...Y})}var b5=C(()=>{b();t0();U0()});function y5($){if($>f5)throw new U("FormData field is too deeply nested ("+$+" levels). Max depth: "+f5,U.ERR_FORM_DATA_DEPTH_EXCEEDED)}function c8($){let Y=[],Q=/\w+|\[(\w*)]/g,G;while((G=Q.exec($))!==null)y5(Y.length),Y.push(G[0]==="[]"?"":G[1]||G[0]);return Y}function l8($){let Y={},Q=Object.keys($),G,X=Q.length,W;for(G=0;G<X;G++)W=Q[G],Y[W]=$[W];return Y}function d8($){function Y(Q,G,X,W){y5(W);let Z=Q[W++];if(Z==="__proto__")return!0;let J=Number.isFinite(+Z),K=W>=Q.length;if(Z=!Z&&N.isArray(X)?X.length:Z,K){if(N.hasOwnProp(X,Z))X[Z]=N.isArray(X[Z])?X[Z].concat(G):[X[Z],G];else X[Z]=G;return!J}if(!N.hasOwnProp(X,Z)||!N.isObject(X[Z]))X[Z]=[];if(Y(Q,G,X[Z],W)&&N.isArray(X[Z]))X[Z]=l8(X[Z]);return!J}if(N.isFormData($)&&N.isFunction($.entries)){let Q={};return N.forEachEntry($,(G,X)=>{Y(c8(G),X,Q,0)}),Q}return null}var f5,f4;var F1=C(()=>{b();s();t0();f5=M1;f4=d8});function p8($,Y,Q){if(N.isString($))try{return(Y||JSON.parse)($),N.trim($)}catch(G){if(G.name!=="SyntaxError")throw G}return(Q||JSON.stringify)($)}var s0=($,Y)=>$!=null&&N.hasOwnProp($,Y)?$[Y]:void 0,O1,o0;var y4=C(()=>{b();s();B4();t0();b5();U0();F1();O1={transitional:A0,adapter:["xhr","http","fetch"],transformRequest:[function(Y,Q){let G=Q.getContentType()||"",X=G.indexOf("application/json")>-1,W=N.isObject(Y);if(W&&N.isHTMLForm(Y))Y=new FormData(Y);if(N.isFormData(Y))return X?JSON.stringify(f4(Y)):Y;if(N.isArrayBuffer(Y)||N.isBuffer(Y)||N.isStream(Y)||N.isFile(Y)||N.isBlob(Y)||N.isReadableStream(Y))return Y;if(N.isArrayBufferView(Y))return Y.buffer;if(N.isURLSearchParams(Y))return Q.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Y.toString();let J;if(W){let K=s0(this,"formSerializer");if(G.indexOf("application/x-www-form-urlencoded")>-1)return _1(Y,K).toString();if((J=N.isFileList(Y))||G.indexOf("multipart/form-data")>-1){let M=s0(this,"env"),V=M&&M.FormData;return E0(J?{"files[]":Y}:Y,V&&new V,K)}}if(W||X)return Q.setContentType("application/json",!1),p8(Y);return Y}],transformResponse:[function(Y){let Q=s0(this,"transitional")||O1.transitional,G=Q&&Q.forcedJSONParsing,X=s0(this,"responseType"),W=X==="json";if(N.isResponse(Y)||N.isReadableStream(Y))return Y;if(Y&&N.isString(Y)&&(G&&!X||W)){let J=!(Q&&Q.silentJSONParsing)&&W;try{return JSON.parse(Y,s0(this,"parseReviver"))}catch(K){if(J){if(K.name==="SyntaxError")throw U.from(K,U.ERR_BAD_RESPONSE,this,null,s0(this,"response"));throw K}}}return Y}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(Y){return Y>=200&&Y<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch","query"],($)=>{O1.headers[$]={}});o0=O1});function U4($,Y){let Q=this||o0,G=Y||Q,X=f.from(G.headers),W=G.data;return N.forEach($,function(J){W=J.call(Q,W,X.normalize(),Y?Y.status:void 0)}),X.normalize(),W}var m5=C(()=>{b();y4();B0()});function L4($){return!!($&&$.__CANCEL__)}var P1=()=>{};var h5,X0;var m0=C(()=>{s();h5=class h5 extends U{constructor($,Y,Q){super($==null?"canceled":$,U.ERR_CANCELED,Y,Q);this.name="CanceledError",this.__CANCEL__=!0}};X0=h5});function P0($,Y,Q){let G=Q.config.validateStatus;if(!Q.status||!G||G(Q.status))$(Q);else Y(new U("Request failed with status code "+Q.status,Q.status>=400&&Q.status<500?U.ERR_BAD_REQUEST:U.ERR_BAD_RESPONSE,Q.config,Q.request,Q))}var m4=C(()=>{s()});function H1($){if(typeof $!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}var g5=()=>{};function T1($,Y){return Y?$.replace(/\/?\/$/,"")+"/"+Y.replace(/^\/+/,""):$}var u5=()=>{};function a8($){let Y=0;while(Y<$.length&&$.charCodeAt(Y)<=32)Y++;return $.slice(Y)}function t8($){return a8($).replace(n8,"")}function c5($,Y){if(typeof $==="string"&&i8.test(t8($)))throw new U('Invalid URL: missing "//" after protocol',U.ERR_INVALID_URL,Y)}function h0($,Y,Q,G){c5(Y,G);let X=!H1(Y);if($&&(X||Q===!1))return c5($,G),T1($,Y);return Y}var i8,n8;var h4=C(()=>{s();g5();u5();i8=/^https?:(?!\/\/)/i,n8=/[\t\n\r]/g});var d5=_4((l5)=>{Object.defineProperty(l5,"__esModule",{value:!0});function s8($){return function(Y,Q){return new Promise((G,X)=>{$.call(this,Y,Q,(W,Z)=>{if(W)X(W);else G(Z)})})}}l5.default=s8});var n5=_4((I1,i5)=>{var p5=I1&&I1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},r8=r0("events"),e8=p5(R1()),$Y=p5(d5()),F4=e8.default("agent-base");function YY($){return Boolean($)&&typeof $.addRequest==="function"}function C1(){let{stack:$}=Error();if(typeof $!=="string")return!1;return $.split(`
4
+ `).some((Y)=>Y.indexOf("(https.js:")!==-1||Y.indexOf("node:https:")!==-1)}function g4($,Y){return new g4.Agent($,Y)}(function($){class Y extends r8.EventEmitter{constructor(Q,G){super();let X=G;if(typeof Q==="function")this.callback=Q;else if(Q)X=Q;if(this.timeout=null,X&&typeof X.timeout==="number")this.timeout=X.timeout;this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number")return this.explicitDefaultPort;return C1()?443:80}set defaultPort(Q){this.explicitDefaultPort=Q}get protocol(){if(typeof this.explicitProtocol==="string")return this.explicitProtocol;return C1()?"https:":"http:"}set protocol(Q){this.explicitProtocol=Q}callback(Q,G,X){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(Q,G){let X=Object.assign({},G);if(typeof X.secureEndpoint!=="boolean")X.secureEndpoint=C1();if(X.host==null)X.host="localhost";if(X.port==null)X.port=X.secureEndpoint?443:80;if(X.protocol==null)X.protocol=X.secureEndpoint?"https:":"http:";if(X.host&&X.path)delete X.path;delete X.agent,delete X.hostname,delete X._defaultAgent,delete X.defaultPort,delete X.createConnection,Q._last=!0,Q.shouldKeepAlive=!1;let W=!1,Z=null,J=X.timeout||this.timeout,K=(B)=>{if(Q._hadError)return;Q.emit("error",B),Q._hadError=!0},M=()=>{Z=null,W=!0;let B=Error(`A "socket" was not created for HTTP request before ${J}ms`);B.code="ETIMEOUT",K(B)},V=(B)=>{if(W)return;if(Z!==null)clearTimeout(Z),Z=null;K(B)},z=(B)=>{if(W)return;if(Z!=null)clearTimeout(Z),Z=null;if(YY(B)){F4("Callback returned another Agent instance %o",B.constructor.name),B.addRequest(Q,X);return}if(B){B.once("free",()=>{this.freeSocket(B,X)}),Q.onSocket(B);return}let L=Error(`no Duplex stream was returned to agent-base for \`${Q.method} ${Q.path}\``);K(L)};if(typeof this.callback!=="function"){K(Error("`callback` is not defined"));return}if(!this.promisifiedCallback)if(this.callback.length>=3)F4("Converting legacy callback function to promise"),this.promisifiedCallback=$Y.default(this.callback);else this.promisifiedCallback=this.callback;if(typeof J==="number"&&J>0)Z=setTimeout(M,J);if("port"in X&&typeof X.port!=="number")X.port=Number(X.port);try{F4("Resolving socket for %o request: %o",X.protocol,`${Q.method} ${Q.path}`),Promise.resolve(this.promisifiedCallback(Q,X)).then(z,V)}catch(B){Promise.reject(B).catch(V)}}freeSocket(Q,G){F4("Freeing socket %o %o",Q.constructor.name,G),Q.destroy()}destroy(){F4("Destroying agent %o",this.constructor.name)}}$.Agent=Y,$.prototype=$.Agent.prototype})(g4||(g4={}));i5.exports=g4});var a5=_4((P4)=>{var QY=P4&&P4.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(P4,"__esModule",{value:!0});var GY=QY(R1()),O4=GY.default("https-proxy-agent:parse-proxy-response");function XY($){return new Promise((Y,Q)=>{let G=0,X=[];function W(){let z=$.read();if(z)V(z);else $.once("readable",W)}function Z(){$.removeListener("end",K),$.removeListener("error",M),$.removeListener("close",J),$.removeListener("readable",W)}function J(z){O4("onclose had error %o",z)}function K(){O4("onend")}function M(z){Z(),O4("onerror %o",z),Q(z)}function V(z){X.push(z),G+=z.length;let B=Buffer.concat(X,G);if(B.indexOf(`\r
5
+ \r
6
+ `)===-1){O4("have not received end of HTTP headers yet..."),W();return}let H=B.toString("ascii",0,B.indexOf(`\r
7
+ `)),D=+H.split(" ")[1];O4("got proxy server response: %o",H),Y({statusCode:D,buffered:B})}$.on("error",M),$.on("close",J),$.on("end",K),W()})}P4.default=XY});var r5=_4((g0)=>{var WY=g0&&g0.__awaiter||function($,Y,Q,G){function X(W){return W instanceof Q?W:new Q(function(Z){Z(W)})}return new(Q||(Q=Promise))(function(W,Z){function J(V){try{M(G.next(V))}catch(z){Z(z)}}function K(V){try{M(G.throw(V))}catch(z){Z(z)}}function M(V){V.done?W(V.value):X(V.value).then(J,K)}M((G=G.apply($,Y||[])).next())})},e0=g0&&g0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(g0,"__esModule",{value:!0});var t5=e0(r0("net")),s5=e0(r0("tls")),ZY=e0(r0("url")),JY=e0(r0("assert")),NY=e0(R1()),KY=n5(),MY=e0(a5()),H4=NY.default("https-proxy-agent:agent");class o5 extends KY.Agent{constructor($){let Y;if(typeof $==="string")Y=ZY.default.parse($);else Y=$;if(!Y)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");H4("creating new HttpsProxyAgent instance: %o",Y);super(Y);let Q=Object.assign({},Y);if(this.secureProxy=Y.secureProxy||BY(Q.protocol),Q.host=Q.hostname||Q.host,typeof Q.port==="string")Q.port=parseInt(Q.port,10);if(!Q.port&&Q.host)Q.port=this.secureProxy?443:80;if(this.secureProxy&&!("ALPNProtocols"in Q))Q.ALPNProtocols=["http 1.1"];if(Q.host&&Q.path)delete Q.path,delete Q.pathname;this.proxy=Q}callback($,Y){return WY(this,void 0,void 0,function*(){let{proxy:Q,secureProxy:G}=this,X;if(G)H4("Creating `tls.Socket`: %o",Q),X=s5.default.connect(Q);else H4("Creating `net.Socket`: %o",Q),X=t5.default.connect(Q);let W=Object.assign({},Q.headers),J=`CONNECT ${`${Y.host}:${Y.port}`} HTTP/1.1\r
8
+ `;if(Q.auth)W["Proxy-Authorization"]=`Basic ${Buffer.from(Q.auth).toString("base64")}`;let{host:K,port:M,secureEndpoint:V}=Y;if(!zY(M,V))K+=`:${M}`;W.Host=K,W.Connection="close";for(let D of Object.keys(W))J+=`${D}: ${W[D]}\r
9
+ `;let z=MY.default(X);X.write(`${J}\r
10
+ `);let{statusCode:B,buffered:L}=yield z;if(B===200){if($.once("socket",VY),Y.secureEndpoint){H4("Upgrading socket connection to TLS");let D=Y.servername||Y.host;return s5.default.connect(Object.assign(Object.assign({},UY(Y,"host","hostname","path","port")),{socket:X,servername:D}))}return X}X.destroy();let H=new t5.default.Socket({writable:!1});return H.readable=!0,$.once("socket",(D)=>{H4("replaying proxy buffer for failed request"),JY.default(D.listenerCount("data")>0),D.push(L),D.push(null)}),H})}}g0.default=o5;function VY($){$.resume()}function zY($,Y){return Boolean(!Y&&$===80||Y&&$===443)}function BY($){return typeof $==="string"?/^https:?$/i.test($):!1}function UY($,...Y){let Q={},G;for(G in $)if(!Y.includes(G))Q[G]=$[G];return Q}});var $6=_4((w1,e5)=>{var LY=w1&&w1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},D1=LY(r5());function S1($){return new D1.default($)}(function($){$.HttpsProxyAgent=D1.default,$.prototype=D1.default.prototype})(S1||(S1={}));e5.exports=S1});var T0="1.18.0";var T4=()=>{};function C4($){let Y=/^([-+\w]{1,25}):(?:\/\/)?/.exec($);return Y&&Y[1]||""}var E1=()=>{};function A1($,Y,Q){let G=Q&&Q.Blob||j.classes.Blob,X=C4($);if(Y===void 0&&G)Y=!0;if(X==="data"){$=X.length?$.slice(X.length+1):$;let W=_Y.exec($);if(!W)throw new U("Invalid URL",U.ERR_INVALID_URL);let Z=W[1],J=W[2],K=W[3]?"base64":"utf8",M=W[4],V;if(Z)V=J?Z+J:Z;else if(J)V="text/plain"+J;let z=Buffer.from(decodeURIComponent(M),K);if(Y){if(!G)throw new U("Blob is not supported",U.ERR_NOT_SUPPORT);return new G([z],{type:V})}return z}throw new U("Unsupported protocol "+X,U.ERR_NOT_SUPPORT)}var _Y;var Y6=C(()=>{s();E1();U0();_Y=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/});import FY from"stream";var q1,Q6,k1;var G6=C(()=>{b();q1=Symbol("internals");Q6=class Q6 extends FY.Transform{constructor($){$=N.toFlatObject($,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(Q,G)=>{return!N.isUndefined(G[Q])});super({readableHighWaterMark:$.chunkSize});let Y=this[q1]={timeWindow:$.timeWindow,chunkSize:$.chunkSize,maxRate:$.maxRate,minChunkSize:$.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(Q)=>{if(Q==="progress"){if(!Y.isCaptured)Y.isCaptured=!0}})}_read($){let Y=this[q1];if(Y.onReadCallback)Y.onReadCallback();return super._read($)}_transform($,Y,Q){let G=this[q1],X=G.maxRate,W=this.readableHighWaterMark,Z=G.timeWindow,J=1000/Z,K=X/J,M=G.minChunkSize!==!1?Math.max(G.minChunkSize,K*0.01):0,V=(B,L)=>{let H=Buffer.byteLength(B);if(G.bytesSeen+=H,G.bytes+=H,G.isCaptured&&this.emit("progress",G.bytesSeen),this.push(B))process.nextTick(L);else G.onReadCallback=()=>{G.onReadCallback=null,process.nextTick(L)}},z=(B,L)=>{let H=Buffer.byteLength(B),D=null,T=W,_,I=0;if(X){let R=Date.now();if(!G.ts||(I=R-G.ts)>=Z)G.ts=R,_=K-G.bytes,G.bytes=_<0?-_:0,I=0;_=K-G.bytes}if(X){if(_<=0)return setTimeout(()=>{L(null,B)},Z-I);if(_<T)T=_}if(T&&H>T&&H-T>M)D=B.subarray(T),B=B.subarray(0,T);V(B,D?()=>{process.nextTick(L,null,D)}:L)};z($,function B(L,H){if(L)return Q(L);if(H)z(H,B);else Q(null)})}};k1=Q6});var X6,OY=async function*($){if($.stream)yield*$.stream();else if($.arrayBuffer)yield await $.arrayBuffer();else if($[X6])yield*$[X6]();else yield $},u4;var j1=C(()=>{({asyncIterator:X6}=Symbol),u4=OY});import PY from"util";import{Readable as HY}from"stream";class W6{constructor($,Y){let{escapeName:Q}=this.constructor,G=N.isString(Y),X=`Content-Disposition: form-data; name="${Q($)}"${!G&&Y.name?`; filename="${Q(Y.name)}"`:""}${u0}`;if(G)Y=I4.encode(String(Y).replace(/\r?\n|\r\n?/g,u0));else{let W=String(Y.type||"application/octet-stream").replace(/[\r\n]/g,"");X+=`Content-Type: ${W}${u0}`}this.headers=I4.encode(X+u0),this.contentLength=G?Y.byteLength:Y.size,this.size=this.headers.byteLength+this.contentLength+IY,this.name=$,this.value=Y}async*encode(){yield this.headers;let{value:$}=this;if(N.isTypedArray($))yield $;else yield*u4($);yield CY}static escapeName($){return String($).replace(/[\r\n"]/g,(Y)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Y])}}var TY,I4,u0=`\r
11
+ `,CY,IY=2,RY=($,Y,Q)=>{let{tag:G="form-data-boundary",size:X=25,boundary:W=G+"-"+j.generateString(X,TY)}=Q||{};if(!N.isFormData($))throw TypeError("FormData instance required");if(W.length<1||W.length>70)throw Error("boundary must be 1-70 characters long");let Z=I4.encode("--"+W+u0),J=I4.encode("--"+W+"--"+u0),K=J.byteLength,M=Array.from($.entries()).map(([z,B])=>{let L=new W6(z,B);return K+=L.size,L});K+=Z.byteLength*M.length,K=N.toFiniteNumber(K);let V={"Content-Type":`multipart/form-data; boundary=${W}`};if(Number.isFinite(K))V["Content-Length"]=K;return Y&&Y(V),HY.from(async function*(){for(let z of M)yield Z,yield*z.encode();yield J}())},Z6;var J6=C(()=>{b();j1();U0();TY=j.ALPHABET.ALPHA_DIGIT+"-_",I4=typeof TextEncoder==="function"?new TextEncoder:new PY.TextEncoder,CY=I4.encode(u0);Z6=RY});import DY from"stream";var N6,K6;var M6=C(()=>{N6=class N6 extends DY.Transform{__transform($,Y,Q){this.push($),Q()}_transform($,Y,Q){if($.length!==0){if(this._transform=this.__transform,$[0]!==120){let G=Buffer.alloc(2);G[0]=120,G[1]=156,this.push(G,Y)}}this.__transform($,Y,Q)}};K6=N6});import SY from"http2";import wY from"util";class V6{constructor(){this.sessions=Object.create(null)}getSession($,Y){Y=Object.assign({sessionTimeout:1000},Y);let Q=this.sessions[$];if(Q){let V=Q.length;for(let z=0;z<V;z++){let[B,L]=Q[z];if(!B.destroyed&&!B.closed&&wY.isDeepStrictEqual(L,Y))return B}}let G=SY.connect($,Y),X,W,Z=()=>{if(X)return;if(X=!0,W)clearTimeout(W),W=null;let V=Q,z=V.length,B=z;while(B--)if(V[B][0]===G){if(z===1)delete this.sessions[$];else V.splice(B,1);if(!G.closed)G.close();return}},J=G.request,{sessionTimeout:K}=Y;if(K!=null){let V=0;G.request=function(){let z=J.apply(this,arguments);if(V++,W)clearTimeout(W),W=null;return z.once("close",()=>{if(!--V)W=setTimeout(()=>{W=null,Z()},K)}),z}}G.once("close",Z);let M=[G,Y];return Q?Q.push(M):Q=this.sessions[$]=[M],G}}var z6;var B6=C(()=>{z6=V6});var EY=($,Y)=>{return N.isAsyncFn($)?function(...Q){let G=Q.pop();$.apply(this,Q).then((X)=>{try{Y?G(null,...Y(X)):G(null,X)}catch(W){G(W)}},G)}:$},U6;var L6=C(()=>{b();U6=EY});function v1($){let Y;try{Y=new URL($)}catch(W){return!1}let Q=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!Q)return!1;if(Q==="*")return!0;let G=Number.parseInt(Y.port,10)||jY[Y.protocol.split(":",1)[0]]||0,X=F6(Y.hostname.toLowerCase());return Q.split(/[\s,]+/).some((W)=>{if(!W)return!1;let[Z,J]=xY(W);if(Z=F6(Z),!Z)return!1;if(J&&J!==G)return!1;if(Z.charAt(0)==="*")Z=Z.slice(1);if(Z.charAt(0)===".")return X.endsWith(Z);return X===Z||_6(X)&&_6(Z)})}var AY,O6=($)=>{let Y=$.split(".");if(Y.length!==4)return!1;if(Y[0]!=="127")return!1;return Y.every((Q)=>/^\d+$/.test(Q)&&Number(Q)>=0&&Number(Q)<=255)},x1=($)=>/^0{1,4}$/.test($),qY=($)=>{if($==="::")return!0;let Y=$.indexOf("::");if(Y!==-1){if(Y!==$.lastIndexOf("::"))return!1;let G=$.slice(0,Y),X=$.slice(Y+2),W=G?G.split(":"):[],Z=X?X.split(":"):[];return W.length+Z.length<8&&W.every(x1)&&Z.every(x1)}let Q=$.split(":");return Q.length===8&&Q.every(x1)},kY=($)=>{if($==="::1")return!0;let Y=$.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(Y)return O6(Y[1]);let Q=$.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(Q){let X=parseInt(Q[1],16);return X>=32512&&X<=32767}let G=$.split(":");if(G.length===8){for(let X=0;X<7;X++)if(!/^0+$/.test(G[X]))return!1;return/^0*1$/.test(G[7])}return!1},_6=($)=>{if(!$)return!1;if(AY.has($))return!0;if(O6($))return!0;if(qY($))return!0;return kY($)},jY,xY=($)=>{let Y=$,Q=0;if(Y.charAt(0)==="["){let W=Y.indexOf("]");if(W!==-1){let Z=Y.slice(1,W),J=Y.slice(W+1);if(J.charAt(0)===":"&&/^\d+$/.test(J.slice(1)))Q=Number.parseInt(J.slice(1),10);return[Z,Q]}}let G=Y.indexOf(":"),X=Y.lastIndexOf(":");if(G!==-1&&G===X&&/^\d+$/.test(Y.slice(X+1)))Q=Number.parseInt(Y.slice(X+1),10),Y=Y.slice(0,X);return[Y,Q]},vY,bY,fY=($)=>{if(typeof $!=="string"||$.indexOf(":")===-1)return $;let Y=$.match(vY);if(Y)return Y[1];let Q=$.match(bY);if(Q){let G=parseInt(Q[1],16),X=parseInt(Q[2],16);return`${G>>8}.${G&255}.${X>>8}.${X&255}`}return $},F6=($)=>{if(!$)return $;if($.charAt(0)==="["&&$.charAt($.length-1)==="]")$=$.slice(1,-1);return fY($.replace(/\.+$/,""))};var P6=C(()=>{AY=new Set(["localhost","0.0.0.0"]),jY={http:80,https:443,ws:80,wss:443,ftp:21},vY=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,bY=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i});function yY($,Y){$=$||10;let Q=Array($),G=Array($),X=0,W=0,Z;return Y=Y!==void 0?Y:1000,function(K){let M=Date.now(),V=G[W];if(!Z)Z=M;Q[X]=K,G[X]=M;let z=W,B=0;while(z!==X)B+=Q[z++],z=z%$;if(X=(X+1)%$,X===W)W=(W+1)%$;if(M-Z<Y)return;let L=V&&M-V;return L?Math.round(B*1000/L):void 0}}var H6;var T6=C(()=>{H6=yY});function mY($,Y){let Q=0,G=1000/Y,X,W,Z=(M,V=Date.now())=>{if(Q=V,X=null,W)clearTimeout(W),W=null;$(...M)};return[(...M)=>{let V=Date.now(),z=V-Q;if(z>=G)Z(M,V);else if(X=M,!W)W=setTimeout(()=>{W=null,Z(X)},G-z)},()=>X&&Z(X)]}var C6;var I6=C(()=>{C6=mY});var C0=($,Y,Q=3)=>{let G=0,X=H6(50,250);return C6((W)=>{if(!W||typeof W.loaded!=="number")return;let Z=W.loaded,J=W.lengthComputable?W.total:void 0,K=J!=null?Math.min(Z,J):Z,M=Math.max(0,K-G),V=X(M);G=Math.max(G,K);let z={loaded:K,total:J,progress:J?K/J:void 0,bytes:M,rate:V?V:void 0,estimated:V&&J?(J-K)/V:void 0,event:W,lengthComputable:J!=null,[Y?"download":"upload"]:!0};$(z)},Q)},$4=($,Y)=>{let Q=$!=null;return[(G)=>Y[0]({lengthComputable:Q,total:$,loaded:G}),Y[1]]},Y4=($)=>(...Y)=>N.asap(()=>$(...Y));var c4=C(()=>{T6();I6();b()});function R4($){if(!$||typeof $!=="string")return 0;if(!$.startsWith("data:"))return 0;let Y=$.indexOf(",");if(Y<0)return 0;let Q=$.slice(5,Y),G=$.slice(Y+1);if(/;base64/i.test(Q)){let{length:Z,length:J}=G;for(let L=0;L<J;L++)if(G.charCodeAt(L)===37&&L+2<J){let H=G.charCodeAt(L+1),D=G.charCodeAt(L+2);if(l4(H)&&l4(D))Z-=2,L+=2}let K=0,M=J-1,V=(L)=>L>=2&&G.charCodeAt(L-2)===37&&G.charCodeAt(L-1)===51&&(G.charCodeAt(L)===68||G.charCodeAt(L)===100);if(M>=0){if(G.charCodeAt(M)===61)K++,M--;else if(V(M))K++,M-=3}if(K===1&&M>=0){if(G.charCodeAt(M)===61)K++;else if(V(M))K++}let B=Math.floor(Z/4)*3-(K||0);return B>0?B:0}let W=0;for(let Z=0,J=G.length;Z<J;Z++){let K=G.charCodeAt(Z);if(K===37&&hY(G,Z,J))W+=1,Z+=2;else if(K<128)W+=1;else if(K<2048)W+=2;else if(K>=55296&&K<=56319&&Z+1<J){let M=G.charCodeAt(Z+1);if(M>=56320&&M<=57343)W+=4,Z++;else W+=3}else W+=3}return W}var l4=($)=>$>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102,hY=($,Y,Q)=>Y+2<Q&&l4($.charCodeAt(Y+1))&&l4($.charCodeAt(Y+2));var b1=()=>{};import cY from"http";import lY from"https";import dY from"http2";import pY from"util";import{resolve as R6}from"path";import M0 from"zlib";import L0 from"stream";import{EventEmitter as iY}from"events";function eY($,Y,Q){if(Q!=="content-only"){$.set(Y);return}Object.entries(Y).forEach(([G,X])=>{if(rY.includes(G.toLowerCase()))$.set(G,X)})}function Y7($,Y){let Q=$.protocol+"//"+$.hostname+":"+($.port||"")+"#"+($.auth||""),G=Y?w6.get(Y)||w6.set(Y,new Map).get(Y):$7,X=G.get(Q);if(X)return X;let W=Y&&Y.options?{...Y.options,...$}:$;if(X=new f1.default(W),Y&&Y.options){let Z={...Y.options},J=X.callback;X.callback=function(M,V){return J.call(this,M,{...Z,...V})}}return X[m6]=!0,G.set(Q,X),X}function G7($,Y,Q){if($.beforeRedirects.proxy)$.beforeRedirects.proxy($);if($.beforeRedirects.auth)$.beforeRedirects.auth($);if($.beforeRedirects.sensitiveHeaders)$.beforeRedirects.sensitiveHeaders($,Q);if($.beforeRedirects.config)$.beforeRedirects.config($,Y,Q)}function X7($,Y){if(!$)return;Object.keys($).forEach((Q)=>{if(Y.has(Q.toLowerCase()))delete $[Q]})}function W7($,Y){if(!Y)return!1;try{return new URL(Y.url).origin===new URL($.href).origin}catch(Q){return!1}}function h6($,Y,Q,G,X){let W=Y;if(!W&&W!==!1){let Z=j6(Q);if(Z){if(!v1(Q))W=new URL(Z)}}if(G&&$.headers){for(let Z of Object.keys($.headers))if(Z.toLowerCase()==="proxy-authorization")delete $.headers[Z]}if(G&&$.agent&&$.agent[m6])$.agent=void 0;if(W){let Z=W instanceof URL,J=(B)=>Z||N.hasOwnProp(W,B)?W[B]:void 0,K=J("username"),M=J("password"),V=N.hasOwnProp(W,"auth")?W.auth:void 0;if(K)V=(K||"")+":"+(M||"");if(V){let B=typeof V==="object",L=B&&N.hasOwnProp(V,"username")?V.username:void 0,H=B&&N.hasOwnProp(V,"password")?V.password:void 0;if(Boolean(L||H))V=(L||"")+":"+(H||"");else if(B)throw new U("Invalid proxy authorization",U.ERR_BAD_OPTION,{proxy:W})}if(y6.test($.protocol)){if(!(X instanceof f1.default)){let B=J("hostname")||J("host"),L=J("port"),H=J("protocol"),D=H?H.includes(":")?H:`${H}:`:"http:",T=B&&B.includes(":")&&!B.startsWith("[")?`[${B}]`:B,_=new URL(`${D}//${T}${L?":"+L:""}`),I={protocol:_.protocol,hostname:_.hostname.replace(/^\[|\]$/g,""),port:_.port,auth:V&&typeof V==="string"?V:void 0};if(_.protocol==="https:")I.ALPNProtocols=["http/1.1"];let R=Y7(I,X);if($.agent=R,$.agents)$.agents.https=R}}else{if(V){let D=Buffer.from(V,"utf8").toString("base64");$.headers["Proxy-Authorization"]="Basic "+D}let B=!1;for(let D of Object.keys($.headers))if(D.toLowerCase()==="host"){B=!0;break}if(!B)$.headers.host=$.hostname+($.port?":"+$.port:"");let L=J("hostname")||J("host");$.hostname=L,$.host=L,$.port=J("port"),$.path=Q;let H=J("protocol");if(H)$.protocol=H.includes(":")?H:`${H}:`}}$.beforeRedirects.proxy=function(J){h6(J,Y,J.href,!0,X)}}var f1,x6,D6,nY,aY,v6,b6,f6,tY,sY,oY,y6,rY,S6,d4,m6,$7,w6,E6,A6=($)=>{if(!N.isString($))return $;try{return decodeURIComponent($)}catch(Y){return $}},q6=($,[Y,Q])=>{return $.on("end",Q).on("error",Q),Y},Q7,Z7,J7=($)=>{return new Promise((Y,Q)=>{let G,X,W=(K,M)=>{if(X)return;X=!0,G&&G(K,M)},Z=(K)=>{W(K),Y(K)},J=(K)=>{W(K,!0),Q(K)};$(Z,J,(K)=>G=K).catch(J)})},N7=({address:$,family:Y})=>{if(!N.isString($))throw TypeError("address must be a string");return{address:$,family:Y||($.indexOf(".")<0?6:4)}},k6=($,Y)=>N7(N.isObject($)?$:{address:$,family:Y}),K7,g6;var u6=C(()=>{b();m4();h4();b4();gY();T4();B4();s();m0();U0();Y6();B0();G6();J6();j1();M6();B6();L6();P6();M4();c4();b1();f1=Z1($6(),1),x6=Z1(uY(),1),D6={flush:M0.constants.Z_SYNC_FLUSH,finishFlush:M0.constants.Z_SYNC_FLUSH},nY={flush:M0.constants.BROTLI_OPERATION_FLUSH,finishFlush:M0.constants.BROTLI_OPERATION_FLUSH},aY={flush:M0.constants.ZSTD_e_flush,finishFlush:M0.constants.ZSTD_e_flush},v6=N.isFunction(M0.createBrotliDecompress),b6=N.isFunction(M0.createZstdDecompress),f6="gzip, compress, deflate"+(v6?", br":""),tY=f6+(b6?", zstd":""),{http:sY,https:oY}=x6.default,y6=/https:?/,rY=["content-type","content-length"];S6=Symbol("axios.http.socketListener"),d4=Symbol("axios.http.currentReq"),m6=Symbol("axios.http.installedTunnel"),$7=new Map,w6=new WeakMap;E6=j.protocols.map(($)=>{return $+":"}),Q7=new z6;Z7=typeof process<"u"&&N.kindOf(process)==="process",K7={request($,Y){let Q=$.protocol+"//"+$.hostname+":"+($.port||($.protocol==="https:"?443:80)),{http2Options:G,headers:X}=$,W=Q7.getSession(Q,G),{HTTP2_HEADER_SCHEME:Z,HTTP2_HEADER_METHOD:J,HTTP2_HEADER_PATH:K,HTTP2_HEADER_STATUS:M}=dY.constants,V={[Z]:$.protocol.replace(":",""),[J]:$.method,[K]:$.path};N.forEach(X,(B,L)=>{L.charAt(0)!==":"&&(V[L]=B)});let z=W.request(V);return z.once("response",(B)=>{let L=z;B=Object.assign({},B);let H=B[M];delete B[M],L.headers=B,L.statusCode=+H,Y(L)}),z}},g6=Z7&&function(Y){return J7(async function(G,X,W){let Z=(F)=>N.getSafeProp(Y,F),J=Z("transitional")||A0,K=Z("data"),M=Z("lookup"),V=Z("family"),z=Z("httpVersion");if(z===void 0)z=1;let B=Z("http2Options"),L=Z("responseType"),H=Z("responseEncoding"),D=Z("httpAgent"),T=Z("httpsAgent"),_=Z("method").toUpperCase(),I=Z("maxRedirects"),R=Z("maxBodyLength"),E=Z("maxContentLength"),p=Z("decompress"),y,Y0=!1,x,R0;if(z=+z,Number.isNaN(z))throw TypeError(`Invalid protocol version: '${Y.httpVersion}' is not a number`);if(z!==1&&z!==2)throw TypeError(`Unsupported protocol version '${z}'`);let F0=z===2;if(M){let F=U6(M,(O)=>N.isArray(O)?O:[O]);M=(O,S,v)=>{F(O,S,(q,c,h)=>{if(q)return v(q);let u=N.isArray(c)?c.map((l0)=>k6(l0)):[k6(c,h)];S.all?v(q,u):v(q,u[0].address,u[0].family)})}}let r=new iY;function e(F){try{r.emit("abort",!F||F.type?new X0(null,Y,x):F)}catch(O){}}function q0(){if(R0)clearTimeout(R0),R0=null}function Z0(){let F=Z("timeout"),O=F?"timeout of "+F+"ms exceeded":"timeout exceeded",S=Z("timeoutErrorMessage");if(S)O=S;return new U(O,J.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,Y,x)}r.once("abort",X);let D0=()=>{if(q0(),Y.cancelToken)Y.cancelToken.unsubscribe(e);if(Y.signal)Y.signal.removeEventListener("abort",e);r.removeAllListeners()};if(Y.cancelToken||Y.signal){if(Y.cancelToken&&Y.cancelToken.subscribe(e),Y.signal)Y.signal.aborted?e():Y.signal.addEventListener("abort",e)}W((F,O)=>{if(y=!0,q0(),O){Y0=!0,D0();return}let{data:S}=F;if(S instanceof L0.Readable||S instanceof L0.Duplex){let v=L0.finished(S,()=>{v(),D0()})}else D0()});let S0=h0(Z("baseURL"),Z("url"),Z("allowAbsoluteUrls"),Y),d=new URL(S0,j.hasBrowserEnv?j.origin:void 0),k0=d.protocol||E6[0];if(k0==="data:"){if(E>-1){let O=String(Z("url")||S0||"");if(R4(O)>E)return X(new U("maxContentLength size of "+E+" exceeded",U.ERR_BAD_RESPONSE,Y))}let F;if(_!=="GET")return P0(G,X,{status:405,statusText:"method not allowed",headers:{},config:Y});try{F=A1(Z("url"),L==="blob",{Blob:Y.env&&Y.env.Blob})}catch(O){throw U.from(O,U.ERR_BAD_REQUEST,Y)}if(L==="text"){if(F=F.toString(H),!H||H==="utf8")F=N.stripBOM(F)}else if(L==="stream")F=L0.Readable.from(F);return P0(G,X,{data:F,status:200,statusText:"OK",headers:new f,config:Y})}if(E6.indexOf(k0)===-1)return X(new U("Unsupported protocol "+k0,U.ERR_BAD_REQUEST,Y));let a=f.from(Y.headers).normalize();a.set("User-Agent","axios/"+T0,!1);let{onUploadProgress:J0,onDownloadProgress:g}=Y,N0=Y.maxRate,V0=void 0,O0=void 0;if(N.isSpecCompliantForm(K)){let F=a.getContentType(/boundary=([-_\w\d]{10,70})/i);K=Z6(K,(O)=>{a.set(O)},{tag:`axios-${T0}-boundary`,boundary:F&&F[1]||void 0})}else if(N.isFormData(K)&&N.isFunction(K.getHeaders)&&K.getHeaders!==Object.prototype.getHeaders){if(eY(a,K.getHeaders(),Z("formDataHeaderPolicy")),!a.hasContentLength())try{let F=await pY.promisify(K.getLength).call(K);Number.isFinite(F)&&F>=0&&a.setContentLength(F)}catch(F){}}else if(N.isBlob(K)||N.isFile(K))K.size&&a.setContentType(K.type||"application/octet-stream"),a.setContentLength(K.size||0),K=L0.Readable.from(u4(K));else if(K&&!N.isStream(K)){if(Buffer.isBuffer(K));else if(N.isArrayBuffer(K))K=Buffer.from(new Uint8Array(K));else if(N.isString(K))K=Buffer.from(K,"utf-8");else return X(new U("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",U.ERR_BAD_REQUEST,Y));if(a.setContentLength(K.length,!1),R>-1&&K.length>R)return X(new U("Request body larger than maxBodyLength limit",U.ERR_BAD_REQUEST,Y))}let A4=N.toFiniteNumber(a.getContentLength());if(N.isArray(N0))V0=N0[0],O0=N0[1];else V0=O0=N0;if(K&&(J0||V0)){if(!N.isStream(K))K=L0.Readable.from(K,{objectMode:!1});K=L0.pipeline([K,new k1({maxRate:N.toFiniteNumber(V0)})],N.noop),J0&&K.on("progress",q6(K,$4(A4,C0(Y4(J0),!1,3))))}let k=void 0,Q0=Z("auth");if(Q0){let F=N.getSafeProp(Q0,"username")||"",O=N.getSafeProp(Q0,"password")||"";k=F+":"+O}if(!k&&(d.username||d.password)){let F=A6(d.username),O=A6(d.password);k=F+":"+O}k&&a.delete("authorization");let j0;try{j0=y0(d.pathname+d.search,Z("params"),Z("paramsSerializer")).replace(/^\?/,"")}catch(F){let O=Error(F.message);return O.config=Y,O.url=Z("url"),O.exists=!0,X(O)}a.set("Accept-Encoding",N.hasOwnProp(J,"advertiseZstdAcceptEncoding")&&J.advertiseZstdAcceptEncoding===!0?tY:f6,!1);let m=Object.assign(Object.create(null),{path:j0,method:_,headers:a0(a),agents:{http:D,https:T},auth:k,protocol:k0,family:V,beforeRedirect:G7,beforeRedirects:Object.create(null),http2Options:B});!N.isUndefined(M)&&(m.lookup=M);let x0=Z("socketPath");if(x0){if(typeof x0!=="string")return X(new U("socketPath must be a string",U.ERR_BAD_OPTION_VALUE,Y));let F=Z("allowedSocketPaths");if(F!=null){let O=Array.isArray(F)?F:[F],S=R6(x0);if(!O.some((q)=>typeof q==="string"&&R6(q)===S))return X(new U(`socketPath "${x0}" is not permitted by allowedSocketPaths`,U.ERR_BAD_OPTION_VALUE,Y))}m.socketPath=x0}else m.hostname=d.hostname.startsWith("[")?d.hostname.slice(1,-1):d.hostname,m.port=d.port,h6(m,Z("proxy"),k0+"//"+d.hostname+(d.port?":"+d.port:"")+m.path,!1,T);let w0,K0=!1,X4=!1,v0=y6.test(m.protocol);if(m.agent==null)m.agent=v0?T:D;if(F0)w0=K7;else{let F=Z("transport");if(F)w0=F;else if(I===0)w0=v0?lY:cY,K0=!0;else{if(X4=!0,m.sensitiveHeaders=[],I)m.maxRedirects=I;let O=Z("beforeRedirect");if(O)m.beforeRedirects.config=O;if(k){let v=d.origin,q=k;m.beforeRedirects.auth=function(h){try{if(new URL(h.href).origin===v)h.auth=q}catch(u){}}}let S=Z("sensitiveHeaders");if(S!=null){if(!N.isArray(S))return X(new U("sensitiveHeaders must be an array of strings",U.ERR_BAD_OPTION_VALUE,Y));let v=new Set;for(let q of S){if(!N.isString(q))return X(new U("sensitiveHeaders must be an array of strings",U.ERR_BAD_OPTION_VALUE,Y));v.add(q.toLowerCase())}if(v.size)m.sensitiveHeaders=Array.from(v),m.beforeRedirects.sensitiveHeaders=function(c,h){if(!W7(c,h))X7(c.headers,v)}}w0=v0?oY:sY}}if(R>-1)m.maxBodyLength=R;else m.maxBodyLength=1/0;m.insecureHTTPParser=Boolean(Z("insecureHTTPParser")),x=w0.request(m,function(O){if(q0(),x.destroyed)return;let S=[O],v=N.toFiniteNumber(O.headers["content-length"]);if(g||O0){let u=new k1({maxRate:N.toFiniteNumber(O0)});g&&u.on("progress",q6(u,$4(v,C0(Y4(g),!0,3)))),S.push(u)}let q=O,c=O.req||x;if(p!==!1&&O.headers["content-encoding"]){if(_==="HEAD"||O.statusCode===204)delete O.headers["content-encoding"];switch((O.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":S.push(M0.createUnzip(D6)),delete O.headers["content-encoding"];break;case"deflate":S.push(new K6),S.push(M0.createUnzip(D6)),delete O.headers["content-encoding"];break;case"br":if(v6)S.push(M0.createBrotliDecompress(nY)),delete O.headers["content-encoding"];break;case"zstd":if(b6)S.push(M0.createZstdDecompress(aY)),delete O.headers["content-encoding"];break}}q=S.length>1?L0.pipeline(S,N.noop):S[0];let h={status:O.statusCode,statusText:O.statusMessage,headers:new f(O.headers),config:Y,request:c};if(L==="stream"){if(E>-1){let u=E,l0=q;async function*W4(){let i=0;for await(let X5 of l0){if(i+=X5.length,i>u)throw new U("maxContentLength size of "+u+" exceeded",U.ERR_BAD_RESPONSE,Y,c);yield X5}}q=L0.Readable.from(W4(),{objectMode:!1})}h.data=q,P0(G,X,h)}else{let u=[],l0=0;q.on("data",function(i){if(u.push(i),l0+=i.length,E>-1&&l0>E)Y0=!0,q.destroy(),e(new U("maxContentLength size of "+E+" exceeded",U.ERR_BAD_RESPONSE,Y,c))}),q.on("aborted",function(){if(Y0)return;let i=new U("stream has been aborted",U.ERR_BAD_RESPONSE,Y,c,h);q.destroy(i),X(i)}),q.on("error",function(i){if(Y0)return;X(U.from(i,null,Y,c,h))}),q.on("end",function(){try{let i=u.length===1?u[0]:Buffer.concat(u);if(L!=="arraybuffer"){if(i=i.toString(H),!H||H==="utf8")i=N.stripBOM(i)}h.data=i}catch(i){return X(U.from(i,null,Y,h.request,h))}P0(G,X,h)})}r.once("abort",(u)=>{if(!q.destroyed)q.emit("error",u),q.destroy()})}),r.once("abort",(F)=>{if(x.close)x.close();else x.destroy(F)}),x.on("error",function(O){X(U.from(O,null,Y,x))});let G0=new Set;if(x.on("socket",function(O){if(O.setKeepAlive(!0,60000),!O[S6])O.on("error",function(v){let q=O[d4];if(q&&!q.destroyed)q.destroy(v)}),O[S6]=!0;O[d4]=x,G0.add(O)}),x.once("close",function(){q0();for(let O of G0)if(O[d4]===x)O[d4]=null;G0.clear()}),Z("timeout")){let F=parseInt(Z("timeout"),10);if(Number.isNaN(F)){e(new U("error trying to parse `config.timeout` to int",U.ERR_BAD_OPTION_VALUE,Y,x));return}let O=function(){if(y)return;e(Z0())};if(K0&&F>0)R0=setTimeout(O,F);x.setTimeout(F,O)}else x.setTimeout(0);if(N.isStream(K)){let F=!1,O=!1;K.on("end",()=>{F=!0}),K.once("error",(v)=>{O=!0,x.destroy(v)}),K.on("close",()=>{if(!F&&!O)e(new X0("Request stream has been aborted",Y,x))});let S=K;if(R>-1&&!X4){let v=R,q=0;S=L0.pipeline([K,new L0.Transform({transform(c,h,u){if(q+=c.length,q>v)return u(new U("Request body larger than maxBodyLength limit",U.ERR_BAD_REQUEST,Y,x));u(null,c)}})],N.noop),S.on("error",(c)=>{if(!x.destroyed)x.destroy(c)})}S.pipe(x)}else K&&x.write(K),x.end()})}});var c6;var l6=C(()=>{U0();c6=j.hasStandardBrowserEnv?(($,Y)=>(Q)=>{return Q=new URL(Q,j.origin),$.protocol===Q.protocol&&$.host===Q.host&&(Y||$.port===Q.port)})(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0});var d6;var p6=C(()=>{b();U0();d6=j.hasStandardBrowserEnv?{write($,Y,Q,G,X,W,Z){if(typeof document>"u")return;let J=[`${$}=${encodeURIComponent(Y)}`];if(N.isNumber(Q))J.push(`expires=${new Date(Q).toUTCString()}`);if(N.isString(G))J.push(`path=${G}`);if(N.isString(X))J.push(`domain=${X}`);if(W===!0)J.push("secure");if(N.isString(Z))J.push(`SameSite=${Z}`);document.cookie=J.join("; ")},read($){if(typeof document>"u")return null;let Y=document.cookie.split(";");for(let Q=0;Q<Y.length;Q++){let G=Y[Q].replace(/^\s+/,""),X=G.indexOf("=");if(X!==-1&&G.slice(0,X)===$)return decodeURIComponent(G.slice(X+1))}return null},remove($){this.write($,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}}});function _0($,Y){Y=Y||{};let Q=Object.create(null);Object.defineProperty(Q,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function G(V,z,B,L){if(N.isPlainObject(V)&&N.isPlainObject(z))return N.merge.call({caseless:L},V,z);else if(N.isPlainObject(z))return N.merge({},z);else if(N.isArray(z))return z.slice();return z}function X(V,z,B,L){if(!N.isUndefined(z))return G(V,z,B,L);else if(!N.isUndefined(V))return G(void 0,V,B,L)}function W(V,z){if(!N.isUndefined(z))return G(void 0,z)}function Z(V,z){if(!N.isUndefined(z))return G(void 0,z);else if(!N.isUndefined(V))return G(void 0,V)}function J(V){let z=N.hasOwnProp(Y,"transitional")?Y.transitional:void 0;if(!N.isUndefined(z))if(N.isPlainObject(z)){if(N.hasOwnProp(z,V))return z[V]}else return;let B=N.hasOwnProp($,"transitional")?$.transitional:void 0;if(N.isPlainObject(B)&&N.hasOwnProp(B,V))return B[V];return}function K(V,z,B){if(N.hasOwnProp(Y,B))return G(V,z);else if(N.hasOwnProp($,B))return G(void 0,V)}let M={url:W,method:W,data:W,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,withXSRFToken:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,allowedSocketPaths:Z,responseEncoding:Z,validateStatus:K,headers:(V,z,B)=>X(i6(V),i6(z),B,!0)};if(N.forEach(Object.keys({...$,...Y}),function(z){if(z==="__proto__"||z==="constructor"||z==="prototype")return;let B=N.hasOwnProp(M,z)?M[z]:X,L=N.hasOwnProp($,z)?$[z]:void 0,H=N.hasOwnProp(Y,z)?Y[z]:void 0,D=B(L,H,z);N.isUndefined(D)&&B!==K||(Q[z]=D)}),N.hasOwnProp(Y,"validateStatus")&&N.isUndefined(Y.validateStatus)&&J("validateStatusUndefinedResolves")===!1)if(N.hasOwnProp($,"validateStatus"))Q.validateStatus=G(void 0,$.validateStatus);else delete Q.validateStatus;return Q}var i6=($)=>$ instanceof f?{...$}:$;var p4=C(()=>{b();B0()});function V7($,Y,Q){if(Q!=="content-only"){$.set(Y);return}Object.entries(Y).forEach(([G,X])=>{if(M7.includes(G.toLowerCase()))$.set(G,X)})}function B7($){let Y=_0({},$),Q=(B)=>N.hasOwnProp(Y,B)?Y[B]:void 0,G=Q("data"),X=Q("withXSRFToken"),W=Q("xsrfHeaderName"),Z=Q("xsrfCookieName"),J=Q("headers"),K=Q("auth"),M=Q("baseURL"),V=Q("allowAbsoluteUrls"),z=Q("url");if(Y.headers=J=f.from(J),Y.url=y0(h0(M,z,V,Y),Q("params"),Q("paramsSerializer")),K){let B=N.getSafeProp(K,"username")||"",L=N.getSafeProp(K,"password")||"";J.set("Authorization","Basic "+btoa(B+":"+(L?z7(L):"")))}if(N.isFormData(G)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv||N.isReactNative(G))J.setContentType(void 0);else if(N.isFunction(G.getHeaders))V7(J,G.getHeaders(),Q("formDataHeaderPolicy"))}if(j.hasStandardBrowserEnv){if(N.isFunction(X))X=X(Y);if(X===!0||X==null&&c6(Y.url)){let L=W&&Z&&d6.read(Z);if(L)J.set(W,L)}}return Y}var M7,z7=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Y,Q)=>String.fromCharCode(parseInt(Q,16))),i4;var y1=C(()=>{U0();b();l6();p6();h4();p4();B0();b4();M7=["content-type","content-length"];i4=B7});var U7,n6;var a6=C(()=>{b();m4();B4();s();m0();E1();U0();B0();c4();y1();M4();U7=typeof XMLHttpRequest<"u",n6=U7&&function($){return new Promise(function(Q,G){let X=i4($),W=X.data,Z=f.from(X.headers).normalize(),{responseType:J,onUploadProgress:K,onDownloadProgress:M}=X,V,z,B,L,H;function D(){L&&L(),H&&H(),X.cancelToken&&X.cancelToken.unsubscribe(V),X.signal&&X.signal.removeEventListener("abort",V)}let T=new XMLHttpRequest;T.open(X.method.toUpperCase(),X.url,!0),T.timeout=X.timeout;function _(){if(!T)return;let R=f.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),p={data:!J||J==="text"||J==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:R,config:$,request:T};P0(function(Y0){Q(Y0),D()},function(Y0){G(Y0),D()},p),T=null}if("onloadend"in T)T.onloadend=_;else T.onreadystatechange=function(){if(!T||T.readyState!==4)return;if(T.status===0&&!(T.responseURL&&T.responseURL.startsWith("file:")))return;setTimeout(_)};if(T.onabort=function(){if(!T)return;G(new U("Request aborted",U.ECONNABORTED,$,T)),D(),T=null},T.onerror=function(E){let p=E&&E.message?E.message:"Network Error",y=new U(p,U.ERR_NETWORK,$,T);y.event=E||null,G(y),D(),T=null},T.ontimeout=function(){let E=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",p=X.transitional||A0;if(X.timeoutErrorMessage)E=X.timeoutErrorMessage;G(new U(E,p.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,$,T)),D(),T=null},W===void 0&&Z.setContentType(null),"setRequestHeader"in T)N.forEach(a0(Z),function(E,p){T.setRequestHeader(p,E)});if(!N.isUndefined(X.withCredentials))T.withCredentials=!!X.withCredentials;if(J&&J!=="json")T.responseType=X.responseType;if(M)[B,H]=C0(M,!0),T.addEventListener("progress",B);if(K&&T.upload)[z,L]=C0(K),T.upload.addEventListener("progress",z),T.upload.addEventListener("loadend",L);if(X.cancelToken||X.signal){if(V=(R)=>{if(!T)return;G(!R||R.type?new X0(null,$,T):R),T.abort(),D(),T=null},X.cancelToken&&X.cancelToken.subscribe(V),X.signal)X.signal.aborted?V():X.signal.addEventListener("abort",V)}let I=C4(X.url);if(I&&!j.protocols.includes(I)){G(new U("Unsupported protocol "+I+":",U.ERR_BAD_REQUEST,$));return}T.send(W||null)})}});var L7=($,Y)=>{if($=$?$.filter(Boolean):[],!Y&&!$.length)return;let Q=new AbortController,G=!1,X=function(K){if(!G){G=!0,Z();let M=K instanceof Error?K:this.reason;Q.abort(M instanceof U?M:new X0(M instanceof Error?M.message:M))}},W=Y&&setTimeout(()=>{W=null,X(new U(`timeout of ${Y}ms exceeded`,U.ETIMEDOUT))},Y),Z=()=>{if(!$)return;W&&clearTimeout(W),W=null,$.forEach((K)=>{K.unsubscribe?K.unsubscribe(X):K.removeEventListener("abort",X)}),$=null};$.forEach((K)=>K.addEventListener("abort",X));let{signal:J}=Q;return J.unsubscribe=()=>N.asap(Z),J},t6;var s6=C(()=>{m0();s();b();t6=L7});var _7=function*($,Y){let Q=$.byteLength;if(!Y||Q<Y){yield $;return}let G=0,X;while(G<Q)X=G+Y,yield $.slice(G,X),G=X},F7=async function*($,Y){for await(let Q of O7($))yield*_7(Q,Y)},O7=async function*($){if($[Symbol.asyncIterator]){yield*$;return}let Y=$.getReader();try{for(;;){let{done:Q,value:G}=await Y.read();if(Q)break;yield G}}finally{await Y.cancel()}},m1=($,Y,Q,G)=>{let X=F7($,Y),W=0,Z,J=(K)=>{if(!Z)Z=!0,G&&G(K)};return new ReadableStream({async pull(K){try{let{done:M,value:V}=await X.next();if(M){J(),K.close();return}let z=V.byteLength;if(Q){let B=W+=z;Q(B)}K.enqueue(new Uint8Array(V))}catch(M){throw J(M),M}},cancel(K){return J(K),X.return()}},{highWaterMark:2})};var o6=()=>{};var r6=65536,n4,P7=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Y,Q)=>String.fromCharCode(parseInt(Q,16))),e6=($)=>{if(!N.isString($))return $;try{return decodeURIComponent($)}catch(Y){return $}},$$=($,...Y)=>{try{return!!$(...Y)}catch(Q){return!1}},H7=($)=>{let Y=$.indexOf("://"),Q=$;if(Y!==-1)Q=Q.slice(Y+3);return Q.includes("@")||Q.includes(":")},T7=($)=>{let Y=N.global!==void 0&&N.global!==null?N.global:globalThis,{ReadableStream:Q,TextEncoder:G}=Y;$=N.merge.call({skipUndefined:!0},{Request:Y.Request,Response:Y.Response},$);let{fetch:X,Request:W,Response:Z}=$,J=X?n4(X):typeof fetch==="function",K=n4(W),M=n4(Z);if(!J)return!1;let V=J&&n4(Q),z=J&&(typeof G==="function"?((_)=>(I)=>_.encode(I))(new G):async(_)=>new Uint8Array(await new W(_).arrayBuffer())),B=K&&V&&$$(()=>{let _=!1,I=new W(j.origin,{body:new Q,method:"POST",get duplex(){return _=!0,"half"}}),R=I.headers.has("Content-Type");if(I.body!=null)I.body.cancel();return _&&!R}),L=M&&V&&$$(()=>N.isReadableStream(new Z("").body)),H={stream:L&&((_)=>_.body)};J&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((_)=>{!H[_]&&(H[_]=(I,R)=>{let E=I&&I[_];if(E)return E.call(I);throw new U(`Response type '${_}' is not supported`,U.ERR_NOT_SUPPORT,R)})})})();let D=async(_)=>{if(_==null)return 0;if(N.isBlob(_))return _.size;if(N.isSpecCompliantForm(_))return(await new W(j.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(N.isArrayBufferView(_)||N.isArrayBuffer(_))return _.byteLength;if(N.isURLSearchParams(_))_=_+"";if(N.isString(_))return(await z(_)).byteLength},T=async(_,I)=>{let R=N.toFiniteNumber(_.getContentLength());return R==null?D(I):R};return async(_)=>{let{url:I,method:R,data:E,signal:p,cancelToken:y,timeout:Y0,onDownloadProgress:x,onUploadProgress:R0,responseType:F0,headers:r,withCredentials:e="same-origin",fetchOptions:q0,maxContentLength:Z0,maxBodyLength:D0}=i4(_),S0=N.isNumber(Z0)&&Z0>-1,d=N.isNumber(D0)&&D0>-1,k0=(k)=>N.hasOwnProp(_,k)?_[k]:void 0,a=X||fetch;F0=F0?(F0+"").toLowerCase():"text";let J0=t6([p,y&&y.toAbortSignal()],Y0),g=null,N0=J0&&J0.unsubscribe&&(()=>{J0.unsubscribe()}),V0,O0=null,A4=()=>new U("Request body larger than maxBodyLength limit",U.ERR_BAD_REQUEST,_,g);try{let k=void 0,Q0=k0("auth");if(Q0){let F=N.getSafeProp(Q0,"username")||"",O=N.getSafeProp(Q0,"password")||"";k={username:F,password:O}}if(H7(I)){let F=new URL(I,j.origin);if(!k&&(F.username||F.password)){let O=e6(F.username),S=e6(F.password);k={username:O,password:S}}if(F.username||F.password)F.username="",F.password="",I=F.href}if(k)r.delete("authorization"),r.set("Authorization","Basic "+btoa(P7((k.username||"")+":"+(k.password||""))));if(S0&&typeof I==="string"&&I.startsWith("data:")){if(R4(I)>Z0)throw new U("maxContentLength size of "+Z0+" exceeded",U.ERR_BAD_RESPONSE,_,g)}if(d&&R!=="get"&&R!=="head"){let F=await D(E);if(typeof F==="number"&&isFinite(F)){if(V0=F,F>D0)throw A4()}}let j0=d&&(N.isReadableStream(E)||N.isStream(E)),m=(F,O,S)=>m1(F,r6,(v)=>{if(d&&v>D0)throw O0=A4();O&&O(v)},S);if(B&&R!=="get"&&R!=="head"&&(R0||j0)){if(V0=V0==null?await T(r,E):V0,V0!==0||j0){let F=new W(I,{method:"POST",body:E,duplex:"half"}),O;if(N.isFormData(E)&&(O=F.headers.get("content-type")))r.setContentType(O);if(F.body){let[S,v]=R0&&$4(V0,C0(Y4(R0)))||[];E=m(F.body,S,v)}}}else if(j0&&!K&&V&&R!=="get"&&R!=="head")E=m(E);else if(j0&&K&&!B&&R!=="get"&&R!=="head")throw new U("Stream request bodies are not supported by the current fetch implementation",U.ERR_NOT_SUPPORT,_,g);if(!N.isString(e))e=e?"include":"omit";let x0=K&&"credentials"in W.prototype;if(N.isFormData(E)){let F=r.getContentType();if(F&&/^multipart\/form-data/i.test(F)&&!/boundary=/i.test(F))r.delete("content-type")}r.set("User-Agent","axios/"+T0,!1);let w0={...q0,signal:J0,method:R.toUpperCase(),headers:a0(r.normalize()),body:E,duplex:"half",credentials:x0?e:void 0};g=K&&new W(I,w0);let K0=await(K?a(g,q0):a(I,w0)),X4=f.from(K0.headers);if(S0){let F=N.toFiniteNumber(X4.getContentLength());if(F!=null&&F>Z0)throw new U("maxContentLength size of "+Z0+" exceeded",U.ERR_BAD_RESPONSE,_,g)}let v0=L&&(F0==="stream"||F0==="response");if(L&&K0.body&&(x||S0||v0&&N0)){let F={};["status","statusText","headers"].forEach((h)=>{F[h]=K0[h]});let O=N.toFiniteNumber(X4.getContentLength()),[S,v]=x&&$4(O,C0(Y4(x),!0))||[],q=0,c=(h)=>{if(S0){if(q=h,q>Z0)throw new U("maxContentLength size of "+Z0+" exceeded",U.ERR_BAD_RESPONSE,_,g)}S&&S(h)};K0=new Z(m1(K0.body,r6,c,()=>{v&&v(),N0&&N0()}),F)}F0=F0||"text";let G0=await H[N.findKey(H,F0)||"text"](K0,_);if(S0&&!L&&!v0){let F;if(G0!=null){if(typeof G0.byteLength==="number")F=G0.byteLength;else if(typeof G0.size==="number")F=G0.size;else if(typeof G0==="string")F=typeof G==="function"?new G().encode(G0).byteLength:G0.length}if(typeof F==="number"&&F>Z0)throw new U("maxContentLength size of "+Z0+" exceeded",U.ERR_BAD_RESPONSE,_,g)}return!v0&&N0&&N0(),await new Promise((F,O)=>{P0(F,O,{data:G0,headers:f.from(K0.headers),status:K0.status,statusText:K0.statusText,config:_,request:g})})}catch(k){if(N0&&N0(),J0&&J0.aborted&&J0.reason instanceof U){let Q0=J0.reason;throw Q0.config=_,g&&(Q0.request=g),k!==Q0&&(Q0.cause=k),Q0}if(O0)throw g&&!O0.request&&(O0.request=g),O0;if(k instanceof U)throw g&&!k.request&&(k.request=g),k;if(k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message))throw Object.assign(new U("Network Error",U.ERR_NETWORK,_,g,k&&k.response),{cause:k.cause||k});throw U.from(k,k&&k.code,_,g,k&&k.response)}}},C7,h1=($)=>{let Y=$&&$.env||{},{fetch:Q,Request:G,Response:X}=Y,W=[G,X,Q],Z=W.length,J=Z,K,M,V=C7;while(J--)K=W[J],M=V.get(K),M===void 0&&V.set(K,M=J?new Map:T7(Y)),V=M;return M},$X;var Y$=C(()=>{U0();b();s();s6();o6();B0();c4();y1();m4();b1();T4();M4();({isFunction:n4}=N),C7=new Map,$X=h1()});function D7($,Y){$=N.isArray($)?$:[$];let{length:Q}=$,G,X,W={};for(let Z=0;Z<Q;Z++){G=$[Z];let J;if(X=G,!R7(G)){if(X=g1[(J=String(G)).toLowerCase()],X===void 0)throw new U(`Unknown adapter '${J}'`)}if(X&&(N.isFunction(X)||(X=X.get(Y))))break;W[J||"#"+Z]=X}if(!X){let Z=Object.entries(W).map(([K,M])=>`adapter ${K} `+(M===!1?"is not supported by the environment":"is not available in the build")),J=Q?Z.length>1?`since :
12
+ `+Z.map(Q$).join(`
13
+ `):" "+Q$(Z[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+J,"ERR_NOT_SUPPORT")}return X}var g1,Q$=($)=>`- ${$}`,R7=($)=>N.isFunction($)||$===null||$===!1,a4;var u1=C(()=>{b();u6();a6();Y$();s();g1={http:g6,xhr:n6,fetch:{get:h1}};N.forEach(g1,($,Y)=>{if($){try{Object.defineProperty($,"name",{__proto__:null,value:Y})}catch(Q){}Object.defineProperty($,"adapterName",{__proto__:null,value:Y})}});a4={getAdapter:D7,adapters:g1}});function c1($){if($.cancelToken)$.cancelToken.throwIfRequested();if($.signal&&$.signal.aborted)throw new X0(null,$)}function t4($){if(c1($),$.headers=f.from($.headers),$.data=U4.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1)$.headers.setContentType("application/x-www-form-urlencoded",!1);return a4.getAdapter($.adapter||o0.adapter,$)($).then(function(G){c1($),$.response=G;try{G.data=U4.call($,$.transformResponse,G)}finally{delete $.response}return G.headers=f.from(G.headers),G},function(G){if(!L4(G)){if(c1($),G&&G.response){$.response=G.response;try{G.response.data=U4.call($,$.transformResponse,G.response)}finally{delete $.response}G.response.headers=f.from(G.response.headers)}}return Promise.reject(G)})}var G$=C(()=>{m5();P1();y4();m0();B0();u1()});function S7($,Y,Q){if(typeof $!=="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);let G=Object.keys($),X=G.length;while(X-- >0){let W=G[X],Z=Object.prototype.hasOwnProperty.call(Y,W)?Y[W]:void 0;if(Z){let J=$[W],K=J===void 0||Z(J,W,$);if(K!==!0)throw new U("option "+W+" must be "+K,U.ERR_BAD_OPTION_VALUE);continue}if(Q!==!0)throw new U("Unknown option "+W,U.ERR_BAD_OPTION)}}var s4,X$,D4;var W$=C(()=>{T4();s();s4={};["object","boolean","number","function","string","symbol"].forEach(($,Y)=>{s4[$]=function(G){return typeof G===$||"a"+(Y<1?"n ":" ")+$}});X$={};s4.transitional=function(Y,Q,G){function X(W,Z){return"[Axios v"+T0+"] Transitional option '"+W+"'"+Z+(G?". "+G:"")}return(W,Z,J)=>{if(Y===!1)throw new U(X(Z," has been removed"+(Q?" in "+Q:"")),U.ERR_DEPRECATED);if(Q&&!X$[Z])X$[Z]=!0,console.warn(X(Z," has been deprecated since v"+Q+" and will be removed in the near future"));return Y?Y(W,Z,J):!0}};s4.spelling=function(Y){return(Q,G)=>{return console.warn(`${G} is likely a misspelling of ${Y}`),!0}};D4={assertOptions:S7,validators:s4}});class S4{constructor($){this.defaults=$||{},this.interceptors={request:new V1,response:new V1}}async request($,Y){try{return await this._request($,Y)}catch(Q){if(Q instanceof Error){let G={};Error.captureStackTrace?Error.captureStackTrace(G):G=Error();let X=(()=>{if(!G.stack)return"";let W=G.stack.indexOf(`
14
+ `);return W===-1?"":G.stack.slice(W+1)})();try{if(!Q.stack)Q.stack=X;else if(X){let W=X.indexOf(`
15
+ `),Z=W===-1?-1:X.indexOf(`
16
+ `,W+1),J=Z===-1?"":X.slice(Z+1);if(!String(Q.stack).endsWith(J))Q.stack+=`
17
+ `+X}}catch(W){}}throw Q}}_request($,Y){if(typeof $==="string")Y=Y||{},Y.url=$;else Y=$||{};Y=_0(this.defaults,Y);let{transitional:Q,paramsSerializer:G,headers:X}=Y;if(Q!==void 0)D4.assertOptions(Q,{silentJSONParsing:t.transitional(t.boolean),forcedJSONParsing:t.transitional(t.boolean),clarifyTimeoutError:t.transitional(t.boolean),legacyInterceptorReqResOrdering:t.transitional(t.boolean),advertiseZstdAcceptEncoding:t.transitional(t.boolean),validateStatusUndefinedResolves:t.transitional(t.boolean)},!1);if(G!=null)if(N.isFunction(G))Y.paramsSerializer={serialize:G};else D4.assertOptions(G,{encode:t.function,serialize:t.function},!0);if(Y.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Y.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Y.allowAbsoluteUrls=!0;D4.assertOptions(Y,{baseUrl:t.spelling("baseURL"),withXsrfToken:t.spelling("withXSRFToken")},!0),Y.method=(Y.method||this.defaults.method||"get").toLowerCase();let W=X&&N.merge(X.common,X[Y.method]);X&&N.forEach(["delete","get","head","post","put","patch","query","common"],(L)=>{delete X[L]}),Y.headers=f.concat(W,X);let Z=[],J=!0;this.interceptors.request.forEach(function(H){if(typeof H.runWhen==="function"&&H.runWhen(Y)===!1)return;J=J&&H.synchronous;let D=Y.transitional||A0;if(D&&D.legacyInterceptorReqResOrdering)Z.unshift(H.fulfilled,H.rejected);else Z.push(H.fulfilled,H.rejected)});let K=[];this.interceptors.response.forEach(function(H){K.push(H.fulfilled,H.rejected)});let M,V=0,z;if(!J){let L=[t4.bind(this),void 0];L.unshift(...Z),L.push(...K),z=L.length,M=Promise.resolve(Y);while(V<z)M=M.then(L[V++],L[V++]);return M}z=Z.length;let B=Y;while(V<z){let L=Z[V++],H=Z[V++];try{B=L(B)}catch(D){H.call(this,D);break}}try{M=t4.call(this,B)}catch(L){return Promise.reject(L)}V=0,z=K.length;while(V<z)M=M.then(K[V++],K[V++]);return M}getUri($){$=_0(this.defaults,$);let Y=h0($.baseURL,$.url,$.allowAbsoluteUrls,$);return y0(Y,$.params,$.paramsSerializer)}}var t,w4;var Z$=C(()=>{b();b4();w5();G$();p4();h4();W$();B0();B4();t=D4.validators;N.forEach(["delete","get","head","options"],function(Y){S4.prototype[Y]=function(Q,G){return this.request(_0(G||{},{method:Y,url:Q,data:G&&N.hasOwnProp(G,"data")?G.data:void 0}))}});N.forEach(["post","put","patch","query"],function(Y){function Q(G){return function(W,Z,J){return this.request(_0(J||{},{method:Y,headers:G?{"Content-Type":"multipart/form-data"}:{},url:W,data:Z}))}}if(S4.prototype[Y]=Q(),Y!=="query")S4.prototype[Y+"Form"]=Q(!0)});w4=S4});class l1{constructor($){if(typeof $!=="function")throw TypeError("executor must be a function.");let Y;this.promise=new Promise(function(X){Y=X});let Q=this;this.promise.then((G)=>{if(!Q._listeners)return;let X=Q._listeners.length;while(X-- >0)Q._listeners[X](G);Q._listeners=null}),this.promise.then=(G)=>{let X,W=new Promise((Z)=>{Q.subscribe(Z),X=Z}).then(G);return W.cancel=function(){Q.unsubscribe(X)},W},$(function(X,W,Z){if(Q.reason)return;Q.reason=new X0(X,W,Z),Y(Q.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}if(this._listeners)this._listeners.push($);else this._listeners=[$]}unsubscribe($){if(!this._listeners)return;let Y=this._listeners.indexOf($);if(Y!==-1)this._listeners.splice(Y,1)}toAbortSignal(){let $=new AbortController,Y=(Q)=>{$.abort(Q)};return this.subscribe(Y),$.signal.unsubscribe=()=>this.unsubscribe(Y),$.signal}static source(){let $;return{token:new l1(function(G){$=G}),cancel:$}}}var J$;var N$=C(()=>{m0();J$=l1});function d1($){return function(Q){return $.apply(null,Q)}}var K$=()=>{};function p1($){return N.isObject($)&&$.isAxiosError===!0}var M$=C(()=>{b()});var i1,V$;var z$=C(()=>{i1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(i1).forEach(([$,Y])=>{i1[Y]=$});V$=i1});function B$($){let Y=new w4($),Q=Z4(w4.prototype.request,Y);return N.extend(Q,w4.prototype,Y,{allOwnKeys:!0}),N.extend(Q,Y,null,{allOwnKeys:!0}),Q.create=function(X){return B$(_0($,X))},Q}var l,I0;var U$=C(()=>{b();Y1();Z$();p4();y4();F1();m0();N$();P1();T4();t0();s();K$();M$();B0();u1();z$();l=B$(o0);l.Axios=w4;l.CanceledError=X0;l.CancelToken=J$;l.isCancel=L4;l.VERSION=T0;l.toFormData=E0;l.AxiosError=U;l.Cancel=l.CanceledError;l.all=function(Y){return Promise.all(Y)};l.spread=d1;l.isAxiosError=p1;l.mergeConfig=_0;l.AxiosHeaders=f;l.formToJSON=($)=>f4(N.isHTMLForm($)?new FormData($):$);l.getAdapter=a4.getAdapter;l.HttpStatusCode=V$;l.default=l;I0=l});var oX,o4,rX,eX,$W,YW,QW,GW,XW,WW,ZW,JW,NW,KW,MW,VW,zW;var n1=C(()=>{U$();({Axios:oX,AxiosError:o4,CanceledError:rX,isCancel:eX,CancelToken:$W,VERSION:YW,all:QW,Cancel:GW,isAxiosError:XW,spread:WW,toFormData:ZW,AxiosHeaders:JW,HttpStatusCode:NW,formToJSON:KW,getAdapter:MW,mergeConfig:VW,create:zW}=I0)});import{EventEmitter as E2}from"events";function P$(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return O$()?.version||"3.x.x"}catch{return"3.x.x"}}function G4($){if(!$||typeof $!=="object")return!1;let Y=$,Q="_def"in Y&&(typeof Y.safeParse==="function"||typeof Y.parse==="function"),G="_zod"in Y&&typeof Y._zod==="object";return Q||G}function q7($){if(!$||typeof $!=="object")return!1;return"_zod"in $&&typeof $._zod==="object"}function k7($){if(!q7($))return null;try{let Y=$.constructor?.prototype?.constructor;if(Y&&typeof Y.toJSONSchema==="function")return Y.toJSONSchema($)}catch{}return null}function W0($){if(!G4($))return $;let Y=k7($);if(Y)return Y;try{return F$($)}catch{return $}}function s1($){if(!$||typeof $!=="object"||Array.isArray($))return!1;let Y=Object.values($);if(Y.length===0)return!1;return Y.some((Q)=>Q&&typeof Q==="object"&&Q._def&&typeof Q.safeParse==="function")}function j7($){if(!$)return;for(let Y of $){if(typeof Y==="string"){if(Y==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");continue}if(Y.type==="json"){let Q=Y;if(!Q.prompt&&!Q.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let G=Q.schema;if(G4(G))Q.schema=W0(G);else if(s1(G))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(Y.type==="changeTracking"){let Q=Y,G=Q.schema;if(G4(G))Q.schema=W0(G);else if(s1(G))throw Error("changeTracking format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(Y.type==="question"){let Q=Y;if(typeof Q.question!=="string"||Q.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(Y.type==="highlights"){let Q=Y;if(typeof Q.query!=="string"||Q.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(Y.type==="query"){let Q=Y;if(typeof Q.prompt!=="string"||Q.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if(Q.mode!=null&&Q.mode!=="freeform"&&Q.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'");continue}if(Y.type==="screenshot"){let Q=Y;if(Q.quality!=null&&(typeof Q.quality!=="number"||Q.quality<0))throw Error("screenshot.quality must be a non-negative number")}}}function E4($){if(!$)return;if($.timeout!=null&&$.timeout<=0)throw Error("timeout must be positive");if($.waitFor!=null&&$.waitFor<0)throw Error("waitFor must be non-negative");j7($.formats)}function x7($){if(!$)return;for(let Y of $){if(typeof Y==="string"){if(Y==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");if(Y==="screenshot")throw Error("parse does not support screenshot format");if(Y==="changeTracking")throw Error("parse does not support changeTracking format");if(Y==="branding")throw Error("parse does not support branding format");if(Y==="audio"||Y==="video")throw Error(`parse does not support ${Y} format`);continue}let Q=Y.type;if(Q==="changeTracking")throw Error("parse does not support changeTracking format");if(Q==="screenshot")throw Error("parse does not support screenshot format");if(Q==="branding")throw Error("parse does not support branding format");if(Q==="audio"||Q==="video")throw Error(`parse does not support ${Q} format`);if(Y.type==="json"){let G=Y;if(!G.prompt&&!G.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let X=G.schema;if(G4(X))G.schema=W0(X);else if(s1(X))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(Y.type==="question"){let G=Y;if(typeof G.question!=="string"||G.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(Y.type==="highlights"){let G=Y;if(typeof G.query!=="string"||G.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(Y.type==="query"){let G=Y;if(typeof G.prompt!=="string"||G.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if(G.mode!=null&&G.mode!=="freeform"&&G.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'")}}}function v7($){if(!$)return;if($.timeout!=null&&$.timeout<=0)throw Error("timeout must be positive");let Y=$;if(Y.waitFor!==void 0)throw Error("parse does not support waitFor");if(Y.actions!==void 0)throw Error("parse does not support actions");if(Y.location!==void 0)throw Error("parse does not support location overrides");if(Y.mobile!==void 0)throw Error("parse does not support mobile rendering");if(Y.maxAge!==void 0||Y.minAge!==void 0||Y.storeInCache!==void 0||Y.lockdown!==void 0)throw Error("parse does not support cache/index options");if(Y.proxy!==void 0&&Y.proxy!=="basic"&&Y.proxy!=="auto")throw Error("parse only supports proxy values of 'basic' or 'auto'");x7($.formats)}function A($,Y){let Q=$.status,G=$.data||{},X=G?.error||G?.message||`Request failed (${Q}) while trying to ${Y}`;throw new H0(X,Q,void 0,G?.details)}function w($,Y){let Q=$.response?.status,G=$.response?.data,X=G?.error||$.message||`Request failed${Q?` (${Q})`:""} while trying to ${Y}`,W=G?.code||$.code;throw new H0(X,Q,W,G?.details??G)}function H$($){if($ instanceof e1)return!1;if($ instanceof H0||$&&typeof $==="object"&&"status"in $){let Y=$.status;if(Y&&Y>=400&&Y<500)return!1;if(Y&&Y>=500)return!0}if($?.isAxiosError&&!$.response)return!0;if($?.code==="ECONNABORTED"||$?.message?.includes("timeout"))return!0;return!0}async function b7($,Y,Q){if(!Y||!Y.trim())throw Error("URL cannot be empty");if(Q)E4(Q);let G={url:Y.trim()};if(Q)Object.assign(G,Q);try{let X=await $.post("/v2/scrape",G,typeof Q?.timeout==="number"?{timeoutMs:Q.timeout+5000}:{});if(X.status!==200||!X.data?.success)A(X,"scrape");return X.data.data||{}}catch(X){if(X?.isAxiosError)return w(X,"scrape");throw X}}async function f7($,Y,Q){if(!Y||!Y.trim())throw Error("Job ID cannot be empty");let G=Q?.code&&Q.code.trim(),X=Q?.prompt&&Q.prompt.trim();if(!G&&!X)throw Error("Either 'code' or 'prompt' must be provided");let W={};if(G)W.code=Q.code;if(X)W.prompt=Q.prompt;if(W.language=Q.language??"node",Q.timeout!=null)W.timeout=Q.timeout;if(Q.origin)W.origin=Q.origin;try{let Z=await $.post(`/v2/scrape/${Y}/interact`,W,Q.timeout!=null?{timeoutMs:Q.timeout*1000+5000}:{});if(Z.status!==200)A(Z,"interact with scrape browser");return Z.data}catch(Z){if(Z?.isAxiosError)return w(Z,"interact with scrape browser");throw Z}}async function y7($,Y){if(!Y||!Y.trim())throw Error("Job ID cannot be empty");try{let Q=await $.delete(`/v2/scrape/${Y}/interact`);if(Q.status!==200)A(Q,"stop interaction");return Q.data}catch(Q){if(Q?.isAxiosError)return w(Q,"stop interaction");throw Q}}function L$($,Y){if(typeof Blob<"u"&&$ instanceof Blob){if(Y&&$.type!==Y)return new Blob([$],{type:Y});return $}if(typeof Buffer<"u"&&Buffer.isBuffer($))return new Blob([$],{type:Y});if($ instanceof ArrayBuffer)return new Blob([$],{type:Y});if(ArrayBuffer.isView($))return new Blob([$],{type:Y});if(typeof $==="string")return new Blob([$],{type:Y??"text/plain; charset=utf-8"});throw Error("Unsupported parse file data type")}async function m7($,Y,Q){if(!Y||!Y.filename||!Y.filename.trim())throw Error("filename cannot be empty");if(Y.data==null)throw Error("file data cannot be empty");if(L$(Y.data,Y.contentType).size===0)throw Error("file data cannot be empty");if(Q)v7(Q);let X=P$(),W={...Q??{},origin:typeof Q?.origin==="string"&&Q.origin.includes("mcp")?Q.origin:Q?.origin??`js-sdk@${X}`},Z=new FormData;Z.append("options",JSON.stringify(W)),Z.append("file",L$(Y.data,Y.contentType),Y.filename.trim());try{let J=await $.postMultipart("/v2/parse",Z,typeof W.timeout==="number"?{timeoutMs:W.timeout+5000}:{});if(J.status!==200||!J.data?.success)A(J,"parse");return J.data.data||{}}catch(J){if(J?.isAxiosError)return w(J,"parse");throw J}}function h7($){if(!$.query||!$.query.trim())throw Error("Query cannot be empty");if($.limit!=null&&$.limit<=0)throw Error("limit must be positive");if($.timeout!=null&&$.timeout<=0)throw Error("timeout must be positive");if($.includeDomains?.length&&$.excludeDomains?.length)throw Error("includeDomains and excludeDomains cannot both be specified");let Y={query:$.query};if($.sources)Y.sources=$.sources;if($.categories)Y.categories=$.categories;if($.includeDomains)Y.includeDomains=$.includeDomains;if($.excludeDomains)Y.excludeDomains=$.excludeDomains;if($.limit!=null)Y.limit=$.limit;if($.tbs!=null)Y.tbs=$.tbs;if($.location!=null)Y.location=$.location;if($.ignoreInvalidURLs!=null)Y.ignoreInvalidURLs=$.ignoreInvalidURLs;if($.timeout!=null)Y.timeout=$.timeout;if($.integration&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.enterprise)Y.enterprise=$.enterprise;if($.scrapeOptions)E4($.scrapeOptions),Y.scrapeOptions=$.scrapeOptions;return Y}function a1($){let Y=[];for(let Q of $)if(Q&&typeof Q==="object")if("markdown"in Q||"html"in Q||"rawHtml"in Q||"links"in Q||"screenshot"in Q||"changeTracking"in Q||"summary"in Q||"json"in Q)Y.push(Q);else Y.push(Q);else Y.push({url:Q});return Y}async function g7($,Y){let Q=h7(Y);try{let G=await $.post("/v2/search",Q,typeof Y.timeout==="number"?{timeoutMs:Y.timeout+5000}:{});if(G.status!==200||!G.data?.success)A(G,"search");let X=G.data.data||{},W={};if(X.web)W.web=a1(X.web);if(X.news)W.news=a1(X.news);if(X.images)W.images=a1(X.images);return Object.defineProperty(W,"data",{get(){let Z=[];if(W.web?.length)Z.push(`.web (${W.web.length} results)`);if(W.news?.length)Z.push(`.news (${W.news.length} results)`);if(W.images?.length)Z.push(`.images (${W.images.length} results)`);let J=Z.length?Z.join(", "):".web, .news, or .images";throw Error(`SearchData has no '.data'. Results are grouped by source: ${J}`)},enumerable:!1,configurable:!0}),W}catch(G){if(G?.isAxiosError)return w(G,"search");throw G}}function u7($,Y){if(!$||!$.trim())throw Error("URL cannot be empty");let Q={url:$.trim()};if(Y){if(Y.sitemap!=null)Q.sitemap=Y.sitemap;if(Y.search!=null)Q.search=Y.search;if(Y.includeSubdomains!=null)Q.includeSubdomains=Y.includeSubdomains;if(Y.ignoreQueryParameters!=null)Q.ignoreQueryParameters=Y.ignoreQueryParameters;if(Y.limit!=null)Q.limit=Y.limit;if(Y.timeout!=null)Q.timeout=Y.timeout;if(Y.integration!=null&&Y.integration.trim())Q.integration=Y.integration.trim();if(Y.origin)Q.origin=Y.origin;if(Y.location!=null)Q.location=Y.location}return Q}async function c7($,Y,Q){let G=u7(Y,Q);try{let X=await $.post("/v2/map",G,typeof Q?.timeout==="number"?{timeoutMs:Q.timeout+5000}:{});if(X.status!==200||!X.data?.success)A(X,"map");let W=X.data.links||[],Z=[];for(let J of W)if(typeof J==="string")Z.push({url:J});else if(J&&typeof J==="object")Z.push({url:J.url,title:J.title,description:J.description});return{id:X.data.id,links:Z}}catch(X){if(X?.isAxiosError)return w(X,"map");throw X}}function T$($){if(!["good","partial","bad"].includes($))throw Error("rating must be one of: good, partial, bad")}async function l7($,Y){if(!Y.endpoint)throw Error("endpoint is required");if(!Y.jobId)throw Error("jobId is required");T$(Y.rating);try{let Q=await $.post("/v2/feedback",Y);if(Q.status!==200||!Q.data?.success)A(Q,"feedback");return Q.data}catch(Q){if(Q?.isAxiosError)return w(Q,"feedback");throw Q}}async function d7($,Y,Q){if(!Y)throw Error("jobId is required");T$(Q.rating);try{let G=await $.post(`/v2/search/${encodeURIComponent(Y)}/feedback`,Q);if(G.status!==200||!G.data?.success)A(G,"searchFeedback");return G.data}catch(G){if(G?.isAxiosError)return w(G,"searchFeedback");throw G}}async function $5($,Y,Q,G){let X=Q.slice(),W=Y,Z=0,J=G?.maxPages??void 0,K=G?.maxResults??void 0,M=G?.maxWaitTime??void 0,V=Date.now();while(W){if(J!=null&&Z>=J)break;if(M!=null&&(Date.now()-V)/1000>M)break;let z=null;try{z=(await $.get(W)).data}catch{break}if(!z?.success)break;let B=Array.isArray(z.data)?z.data:z.data?.pages||[];for(let L of B){if(K!=null&&X.length>=K)break;X.push(L)}if(K!=null&&X.length>=K)break;W=z.next??(Array.isArray(z.data)?null:z.data?.next)??null,Z+=1}return X}function p7($){if(!$.url||!$.url.trim())throw Error("URL cannot be empty");let Y={url:$.url.trim()};if($.prompt)Y.prompt=$.prompt;if($.excludePaths)Y.excludePaths=$.excludePaths;if($.includePaths)Y.includePaths=$.includePaths;if($.maxDiscoveryDepth!=null)Y.maxDiscoveryDepth=$.maxDiscoveryDepth;if($.sitemap!=null)Y.sitemap=$.sitemap;if($.robotsUserAgent!=null)Y.robotsUserAgent=$.robotsUserAgent;if($.ignoreQueryParameters!=null)Y.ignoreQueryParameters=$.ignoreQueryParameters;if($.deduplicateSimilarURLs!=null)Y.deduplicateSimilarURLs=$.deduplicateSimilarURLs;if($.limit!=null)Y.limit=$.limit;if($.crawlEntireDomain!=null)Y.crawlEntireDomain=$.crawlEntireDomain;if($.allowExternalLinks!=null)Y.allowExternalLinks=$.allowExternalLinks;if($.allowSubdomains!=null)Y.allowSubdomains=$.allowSubdomains;if($.delay!=null)Y.delay=$.delay;if($.maxConcurrency!=null)Y.maxConcurrency=$.maxConcurrency;if($.regexOnFullURL!=null)Y.regexOnFullURL=$.regexOnFullURL;if($.webhook!=null)Y.webhook=$.webhook;if($.integration!=null&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.scrapeOptions)E4($.scrapeOptions),Y.scrapeOptions=$.scrapeOptions;if($.zeroDataRetention!=null)Y.zeroDataRetention=$.zeroDataRetention;return Y}async function C$($,Y){let Q=p7(Y);try{let G=await $.post("/v2/crawl",Q);if(G.status!==200||!G.data?.success)A(G,"start crawl");return{id:G.data.id,url:G.data.url}}catch(G){if(G?.isAxiosError)return w(G,"start crawl");throw G}}async function Y5($,Y,Q){try{let G=await $.get(`/v2/crawl/${Y}`);if(G.status!==200||!G.data?.success)A(G,"get crawl status");let X=G.data,W=X.data||[];if(!(Q?.autoPaginate??!0)||!X.next)return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:X.next??null,data:W};let J=await $5($,X.next,W,Q);return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:null,data:J}}catch(G){if(G?.isAxiosError)return w(G,"get crawl status");throw G}}async function i7($,Y){try{let Q=await $.delete(`/v2/crawl/${Y}`);if(Q.status!==200)A(Q,"cancel crawl");return Q.data?.status==="cancelled"}catch(Q){if(Q?.isAxiosError)return w(Q,"cancel crawl");throw Q}}async function n7($,Y,Q=2,G){let X=Date.now();while(!0){try{let W=await Y5($,Y);if(["completed","failed","cancelled"].includes(W.status))return W}catch(W){if(!H$(W)){if(W instanceof H0)throw new H0(W.message,W.status,W.code,W.details,Y);throw W}}if(G!=null&&Date.now()-X>G*1000)throw new e1(Y,G,"crawl");await new Promise((W)=>setTimeout(W,Math.max(1000,Q*1000)))}}async function a7($,Y,Q=2,G){let X=await C$($,Y);return n7($,X.id,Q,G)}async function t7($,Y){try{let Q=await $.get(`/v2/crawl/${Y}/errors`);if(Q.status!==200)A(Q,"get crawl errors");let G=Q.data?.data??Q.data;return{errors:G.errors||[],robotsBlocked:G.robotsBlocked||[]}}catch(Q){if(Q?.isAxiosError)return w(Q,"get crawl errors");throw Q}}async function s7($){try{let Y=await $.get("/v2/crawl/active");if(Y.status!==200||!Y.data?.success)A(Y,"get active crawls");return{success:!0,crawls:(Y.data?.crawls||[]).map((X)=>({id:X.id,teamId:X.teamId??X.team_id,url:X.url,options:X.options??null}))}}catch(Y){if(Y?.isAxiosError)return w(Y,"get active crawls");throw Y}}async function o7($,Y,Q){if(!Y||!Y.trim())throw Error("URL cannot be empty");if(!Q||!Q.trim())throw Error("Prompt cannot be empty");try{let G=await $.post("/v2/crawl/params-preview",{url:Y.trim(),prompt:Q});if(G.status!==200||!G.data?.success)A(G,"crawl params preview");let X=G.data.data||{};if(G.data.warning)X.warning=G.data.warning;return X}catch(G){if(G?.isAxiosError)return w(G,"crawl params preview");throw G}}async function I$($,Y,{options:Q,webhook:G,appendToId:X,ignoreInvalidURLs:W,maxConcurrency:Z,zeroDataRetention:J,idempotencyKey:K,integration:M,origin:V}={}){if(!Array.isArray(Y)||Y.length===0)throw Error("URLs list cannot be empty");let z={urls:Y};if(Q)E4(Q),Object.assign(z,Q);if(G!=null)z.webhook=G;if(X!=null)z.appendToId=X;if(W!=null)z.ignoreInvalidURLs=W;if(Z!=null)z.maxConcurrency=Z;if(J!=null)z.zeroDataRetention=J;if(M!=null&&M.trim())z.integration=M.trim();if(V)z.origin=V;try{let B=$.prepareHeaders(K),L=await $.post("/v2/batch/scrape",z,{headers:B});if(L.status!==200||!L.data?.success)A(L,"start batch scrape");return{id:L.data.id,url:L.data.url,invalidURLs:L.data.invalidURLs||void 0}}catch(B){if(B?.isAxiosError)return w(B,"start batch scrape");throw B}}async function Q5($,Y,Q){try{let G=await $.get(`/v2/batch/scrape/${Y}`);if(G.status!==200||!G.data?.success)A(G,"get batch scrape status");let X=G.data,W=X.data||[];if(!(Q?.autoPaginate??!0)||!X.next)return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:X.next??null,data:W};let J=await $5($,X.next,W,Q);return{id:Y,status:X.status,completed:X.completed??0,total:X.total??0,creditsUsed:X.creditsUsed,expiresAt:X.expiresAt,next:null,data:J}}catch(G){if(G?.isAxiosError)return w(G,"get batch scrape status");throw G}}async function r7($,Y){try{let Q=await $.delete(`/v2/batch/scrape/${Y}`);if(Q.status!==200)A(Q,"cancel batch scrape");return Q.data?.status==="cancelled"}catch(Q){if(Q?.isAxiosError)return w(Q,"cancel batch scrape");throw Q}}async function e7($,Y){try{let Q=await $.get(`/v2/batch/scrape/${Y}/errors`);if(Q.status!==200)A(Q,"get batch scrape errors");let G=Q.data?.data??Q.data;return{errors:G.errors||[],robotsBlocked:G.robotsBlocked||[]}}catch(Q){if(Q?.isAxiosError)return w(Q,"get batch scrape errors");throw Q}}async function $2($,Y,Q=2,G){let X=Date.now();while(!0){try{let W=await Q5($,Y);if(["completed","failed","cancelled"].includes(W.status))return W}catch(W){if(!H$(W)){if(W instanceof H0)throw new H0(W.message,W.status,W.code,W.details,Y);throw W}}if(G!=null&&Date.now()-X>G*1000)throw new e1(Y,G,"batch");await new Promise((W)=>setTimeout(W,Math.max(1000,Q*1000)))}}async function Y2($,Y,Q={}){let G=await I$($,Y,Q);return $2($,G.id,Q.pollInterval??2,Q.timeout)}function Q2($){let Y={};if($.urls)Y.urls=$.urls;if($.prompt!=null)Y.prompt=$.prompt;if($.schema!=null)Y.schema=G4($.schema)?W0($.schema):$.schema;if($.systemPrompt!=null)Y.systemPrompt=$.systemPrompt;if($.allowExternalLinks!=null)Y.allowExternalLinks=$.allowExternalLinks;if($.enableWebSearch!=null)Y.enableWebSearch=$.enableWebSearch;if($.showSources!=null)Y.showSources=$.showSources;if($.ignoreInvalidURLs!=null)Y.ignoreInvalidURLs=$.ignoreInvalidURLs;if($.integration&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.agent)Y.agent=$.agent;if($.webhook!=null)Y.webhook=$.webhook;if($.scrapeOptions)E4($.scrapeOptions),Y.scrapeOptions=$.scrapeOptions;return Y}async function R$($,Y){let Q=Q2(Y);try{let G=await $.post("/v2/extract",Q);if(G.status!==200)A(G,"extract");return G.data}catch(G){if(G?.isAxiosError)return w(G,"extract");throw G}}async function D$($,Y){try{let Q=await $.get(`/v2/extract/${Y}`);if(Q.status!==200)A(Q,"extract status");return Q.data}catch(Q){if(Q?.isAxiosError)return w(Q,"extract status");throw Q}}async function G2($,Y,Q=2,G){let X=Date.now();while(!0){let W=await D$($,Y);if(["completed","failed","cancelled"].includes(W.status||""))return W;if(G!=null&&Date.now()-X>G*1000)return W;await new Promise((Z)=>setTimeout(Z,Math.max(1000,Q*1000)))}}async function X2($,Y){let Q=await R$($,Y),G=Q.id;if(!G)return Q;return G2($,G,Y.pollInterval??2,Y.timeout)}function W2($){let Y={};if($.urls)Y.urls=$.urls;if(Y.prompt=$.prompt,$.schema!=null)Y.schema=G4($.schema)?W0($.schema):$.schema;if($.integration&&$.integration.trim())Y.integration=$.integration.trim();if($.origin)Y.origin=$.origin;if($.maxCredits!==null&&$.maxCredits!==void 0)Y.maxCredits=$.maxCredits;if($.strictConstrainToURLs!==null&&$.strictConstrainToURLs!==void 0)Y.strictConstrainToURLs=$.strictConstrainToURLs;if($.model!==null&&$.model!==void 0)Y.model=$.model;if($.webhook!=null)Y.webhook=$.webhook;return Y}async function S$($,Y){let Q=W2(Y);try{let G=await $.post("/v2/agent",Q);if(G.status!==200)A(G,"agent");return G.data}catch(G){if(G?.isAxiosError)return w(G,"agent");throw G}}async function w$($,Y){try{let Q=await $.get(`/v2/agent/${Y}`);if(Q.status!==200)A(Q,"agent status");return Q.data}catch(Q){if(Q?.isAxiosError)return w(Q,"agent status");throw Q}}async function Z2($,Y,Q=2,G){let X=Date.now();while(!0){let W=await w$($,Y);if(["completed","failed","cancelled"].includes(W.status||""))return W;if(G!=null&&Date.now()-X>G*1000)return W;await new Promise((Z)=>setTimeout(Z,Math.max(1000,Q*1000)))}}async function J2($,Y){let Q=await S$($,Y),G=Q.id;if(!G)return Q;return Z2($,G,Y.pollInterval??2,Y.timeout)}async function N2($,Y){try{let Q=await $.delete(`/v2/agent/${Y}`);if(Q.status!==200)A(Q,"cancel agent");return Q.data?.success===!0}catch(Q){if(Q?.isAxiosError)return w(Q,"cancel agent");throw Q}}async function K2($,Y={}){let Q={};if(Y.ttl!=null)Q.ttl=Y.ttl;if(Y.activityTtl!=null)Q.activityTtl=Y.activityTtl;if(Y.streamWebView!=null)Q.streamWebView=Y.streamWebView;if(Y.profile!=null)Q.profile=Y.profile;if(Y.integration!=null)Q.integration=Y.integration;if(Y.origin)Q.origin=Y.origin;try{let G=await $.post("/v2/browser",Q);if(G.status!==200)A(G,"create browser session");return G.data}catch(G){if(G?.isAxiosError)return w(G,"create browser session");throw G}}async function M2($,Y,Q){let G={code:Q.code,language:Q.language??"bash"};if(Q.timeout!=null)G.timeout=Q.timeout;try{let X=await $.post(`/v2/browser/${Y}/execute`,G,Q.timeout!=null?{timeoutMs:Q.timeout*1000+5000}:{});if(X.status!==200)A(X,"execute browser code");return X.data}catch(X){if(X?.isAxiosError)return w(X,"execute browser code");throw X}}async function V2($,Y){try{let Q=await $.delete(`/v2/browser/${Y}`);if(Q.status!==200)A(Q,"delete browser session");return Q.data}catch(Q){if(Q?.isAxiosError)return w(Q,"delete browser session");throw Q}}async function z2($,Y={}){let Q="/v2/browser";if(Y.status)Q+=`?status=${Y.status}`;try{let G=await $.get(Q);if(G.status!==200)A(G,"list browser sessions");return G.data}catch(G){if(G?.isAxiosError)return w(G,"list browser sessions");throw G}}async function B2($){try{let Y=await $.get("/v2/concurrency-check");if(Y.status!==200||!Y.data?.success)A(Y,"get concurrency");let Q=Y.data.data||Y.data;return{concurrency:Q.concurrency,maxConcurrency:Q.maxConcurrency??Q.max_concurrency}}catch(Y){if(Y?.isAxiosError)return w(Y,"get concurrency");throw Y}}async function U2($){try{let Y=await $.get("/v2/team/credit-usage");if(Y.status!==200||!Y.data?.success)A(Y,"get credit usage");let Q=Y.data.data||Y.data;return{remainingCredits:Q.remainingCredits??Q.remaining_credits??0,planCredits:Q.planCredits??Q.plan_credits,billingPeriodStart:Q.billingPeriodStart??Q.billing_period_start??null,billingPeriodEnd:Q.billingPeriodEnd??Q.billing_period_end??null}}catch(Y){if(Y?.isAxiosError)return w(Y,"get credit usage");throw Y}}async function L2($){try{let Y=await $.get("/v2/team/token-usage");if(Y.status!==200||!Y.data?.success)A(Y,"get token usage");let Q=Y.data.data||Y.data;return{remainingTokens:Q.remainingTokens??Q.remaining_tokens??0,planTokens:Q.planTokens??Q.plan_tokens,billingPeriodStart:Q.billingPeriodStart??Q.billing_period_start??null,billingPeriodEnd:Q.billingPeriodEnd??Q.billing_period_end??null}}catch(Y){if(Y?.isAxiosError)return w(Y,"get token usage");throw Y}}async function _2($){try{let Y=await $.get("/v2/team/queue-status");if(Y.status!==200||!Y.data?.success)A(Y,"get queue status");return Y.data}catch(Y){if(Y?.isAxiosError)return w(Y,"get queue status");throw Y}}async function F2($,Y){try{let Q=Y?"?byApiKey=true":"",G=await $.get(`/v2/team/credit-usage/historical${Q}`);if(G.status!==200||!G.data?.success)A(G,"get credit usage historical");return G.data}catch(Q){if(Q?.isAxiosError)return w(Q,"get credit usage historical");throw Q}}async function O2($,Y){try{let Q=Y?"?byApiKey=true":"",G=await $.get(`/v2/team/token-usage/historical${Q}`);if(G.status!==200||!G.data?.success)A(G,"get token usage historical");return G.data}catch(Q){if(Q?.isAxiosError)return w(Q,"get token usage historical");throw Q}}function o($,Y,Q){if(Q==null)return;if(Array.isArray(Q)){for(let G of Q)if(G!=null&&String(G).length>0)$.append(Y,String(G))}else $.append(Y,String(Q))}function e4($,Y){let Q=Y.toString();return Q?`${$}?${Q}`:$}function $1($,Y){if($?.isAxiosError){let Q=$.response?.status,G=$.response?.data;if(G&&(G.detail||G.title)){let X=G.detail||G.title;throw new H0(X,Q,G.type,G)}throw new H0($.message||`Request failed while trying to ${Y}`,Q,$.code,G)}throw $}function G5($){if(!$)return"";let Y=new URLSearchParams;for(let[G,X]of Object.entries($))if(X!==void 0&&X!==null)Y.set(G,String(X));let Q=Y.toString();return Q?`?${Q}`:""}function c0($,Y){if($.status!==200||!$.data?.success||$.data.data==null)A($,Y);return $.data.data}async function H2($,Y){try{let Q=await $.post("/v2/monitor",Y);return c0(Q,"create monitor")}catch(Q){if(Q?.isAxiosError)return w(Q,"create monitor");throw Q}}async function T2($,Y){try{let Q=await $.get(`/v2/monitor${G5(Y)}`);return c0(Q,"list monitors")}catch(Q){if(Q?.isAxiosError)return w(Q,"list monitors");throw Q}}async function C2($,Y){try{let Q=await $.get(`/v2/monitor/${Y}`);return c0(Q,"get monitor")}catch(Q){if(Q?.isAxiosError)return w(Q,"get monitor");throw Q}}async function I2($,Y,Q){try{let G=await $.patch(`/v2/monitor/${Y}`,Q);return c0(G,"update monitor")}catch(G){if(G?.isAxiosError)return w(G,"update monitor");throw G}}async function R2($,Y){try{let Q=await $.delete(`/v2/monitor/${Y}`);if(Q.status!==200||!Q.data?.success)A(Q,"delete monitor");return!0}catch(Q){if(Q?.isAxiosError)return w(Q,"delete monitor");throw Q}}async function D2($,Y){try{let Q=await $.post(`/v2/monitor/${Y}/run`,{});return c0(Q,"run monitor")}catch(Q){if(Q?.isAxiosError)return w(Q,"run monitor");throw Q}}async function S2($,Y,Q){try{let G=await $.get(`/v2/monitor/${Y}/checks${G5(Q)}`);return c0(G,"list monitor checks")}catch(G){if(G?.isAxiosError)return w(G,"list monitor checks");throw G}}async function w2($,Y,Q,G){try{let{autoPaginate:X,maxPages:W,maxResults:Z,maxWaitTime:J,...K}=G??{},M=await $.get(`/v2/monitor/${Y}/checks/${Q}${G5(K)}`),V=c0(M,"get monitor check"),z=M.data?.next??V.next??null;if(!(G?.autoPaginate??!0)||!z)return{...V,next:z};return{...V,pages:await $5($,z,V.pages||[],G),next:null}}catch(X){if(X?.isAxiosError)return w(X,"get monitor check");throw X}}var A7=class{instance;apiKey;apiUrl;maxRetries;backoffFactor;constructor($){this.apiKey=$.apiKey,this.apiUrl=$.apiUrl.replace(/\/$/,""),this.maxRetries=$.maxRetries??3,this.backoffFactor=$.backoffFactor??0.5,this.instance=I0.create({baseURL:this.apiUrl,timeout:$.timeoutMs??300000,headers:{...this.apiKey?{Authorization:`Bearer ${this.apiKey}`}:{}},transitional:{clarifyTimeoutError:!0}})}getApiUrl(){return this.apiUrl}getApiKey(){return this.apiKey}async request($){let Y=P$();$.headers={...$.headers||{}};let Q;for(let G=0;G<this.maxRetries;G++)try{let X={...$},W=typeof FormData<"u"&&X.data instanceof FormData;if(!W&&X.data!=null&&typeof X.data==="object"&&!Array.isArray(X.data)&&X.method&&["post","put","patch"].includes(X.method.toLowerCase())){let K=X.data??{};X.data={...K,origin:typeof K.origin==="string"&&K.origin.includes("mcp")?K.origin:`js-sdk@${Y}`}}if(W)X.headers={...X.headers||{}},delete X.headers["Content-Type"],delete X.headers["content-type"];let J=await this.instance.request(X);if(J.status===502&&G<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,G));continue}return J}catch(X){if(Q=X,X?.response?.status===502&&G<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,G));continue}throw X}throw Q??Error("Unexpected HTTP client error")}sleep($){return new Promise((Y)=>setTimeout(Y,$*1000))}post($,Y,Q){return this.request({method:"post",url:$,data:Y,headers:Q?.headers,timeout:Q?.timeoutMs})}postMultipart($,Y,Q){return this.request({method:"post",url:$,data:Y,headers:Q?.headers,timeout:Q?.timeoutMs})}get($,Y){return this.request({method:"get",url:$,headers:Y})}delete($,Y){return this.request({method:"delete",url:$,headers:Y})}patch($,Y,Q){return this.request({method:"patch",url:$,data:Y,headers:Q?.headers,timeout:Q?.timeoutMs})}prepareHeaders($){let Y={};if($)Y["x-idempotency-key"]=$;return Y}},H0,e1,r4="/v2/search/research",P2=class{constructor($){this.http=$}http;async searchPapers($,Y={}){if(!$||!$.trim())throw Error("query cannot be empty");if(Y.k!=null&&Y.k<=0)throw Error("k must be positive");let Q=new URLSearchParams;o(Q,"query",$),o(Q,"k",Y.k),o(Q,"authors",Y.authors),o(Q,"categories",Y.categories),o(Q,"from",Y.from),o(Q,"to",Y.to);try{let G=await this.http.get(e4(`${r4}/papers`,Q));if(G.status!==200)A(G,"search papers");return G.data}catch(G){return $1(G,"search papers")}}async getPaper($,Y={}){if(!$||!$.trim())throw Error("id cannot be empty");if(Y.k!=null&&Y.query==null)throw Error("k is only valid together with query");if(Y.k!=null&&Y.k<=0)throw Error("k must be positive");let Q=new URLSearchParams;o(Q,"query",Y.query),o(Q,"k",Y.k);try{let G=await this.http.get(e4(`${r4}/papers/${encodeURIComponent($)}`,Q));if(G.status!==200)A(G,"get paper");return G.data}catch(G){return $1(G,"get paper")}}async similarPapers($,Y){if(!$||!$.trim())throw Error("id cannot be empty");if(!Y?.intent||!Y.intent.trim())throw Error("intent cannot be empty");if(Y.k!=null&&Y.k<=0)throw Error("k must be positive");let Q=new URLSearchParams;if(o(Q,"intent",Y.intent),o(Q,"mode",Y.mode),o(Q,"k",Y.k),Y.rerank!=null)o(Q,"rerank",Y.rerank);o(Q,"anchor",Y.anchor);try{let G=await this.http.get(e4(`${r4}/papers/${encodeURIComponent($)}/similar`,Q));if(G.status!==200)A(G,"find similar papers");return G.data}catch(G){return $1(G,"find similar papers")}}async searchGithub($,Y={}){if(!$||!$.trim())throw Error("query cannot be empty");if(Y.k!=null&&Y.k<=0)throw Error("k must be positive");let Q=new URLSearchParams;o(Q,"query",$),o(Q,"k",Y.k);try{let G=await this.http.get(e4(`${r4}/github`,Q));if(G.status!==200)A(G,"search github");return G.data}catch(G){return $1(G,"search github")}}},A2=()=>{if(typeof globalThis>"u")return;let $=globalThis.WebSocket;return typeof $==="function"?$:void 0},q2=()=>typeof process<"u"&&!!process.versions?.node,Q4,t1,k2=async()=>{if(!q2())return;try{let $=await import("./index-0.7.2-a3w6at2z.mjs"),Y=$.WebSocket??$.default?.WebSocket;return typeof Y==="function"?Y:void 0}catch{return}},j2=async()=>{if(Q4)return Q4;let $=A2();if($)return Q4=$,Q4;if(!t1)t1=k2();return Q4=await t1,Q4},x2,v2=($)=>{if(typeof $==="string")return $;if(typeof Buffer<"u"&&Buffer.isBuffer($))return $.toString("utf8");let Y=(Q)=>{if(typeof Buffer<"u")return Buffer.from(Q.buffer,Q.byteOffset,Q.byteLength).toString("utf8");return x2?.decode(Q)};if(ArrayBuffer.isView($))return Y($);if($ instanceof ArrayBuffer)return Y(new Uint8Array($));return},b2,o1=class{http;_research;isCloudService($){return $.includes("api.firecrawl.dev")}constructor($={}){let Y=typeof $==="string"?{apiKey:$}:$,Q=(Y.apiKey??process.env.FIRECRAWL_API_KEY??"").trim(),G=(Y.apiUrl??process.env.FIRECRAWL_API_URL??"https://api.firecrawl.dev").replace(/\/$/,"");this.http=new A7({apiKey:Q,apiUrl:G,timeoutMs:Y.timeoutMs,maxRetries:Y.maxRetries,backoffFactor:Y.backoffFactor})}async scrape($,Y){return b7(this.http,$,Y)}async interact($,Y){return f7(this.http,$,Y)}async stopInteraction($){return y7(this.http,$)}async scrapeExecute($,Y){return this.interact($,Y)}async stopInteractiveBrowser($){return this.stopInteraction($)}async deleteScrapeBrowser($){return this.stopInteraction($)}async parse($,Y){return m7(this.http,$,Y)}async search($,Y={}){return g7(this.http,{query:$,...Y})}async feedback($){return l7(this.http,$)}async searchFeedback($,Y){return d7(this.http,$,Y)}get research(){if(!this._research)this._research=new P2(this.http);return this._research}async map($,Y){return c7(this.http,$,Y)}async startCrawl($,Y={}){return C$(this.http,{url:$,...Y})}async getCrawlStatus($,Y){return Y5(this.http,$,Y)}async cancelCrawl($){return i7(this.http,$)}async crawl($,Y={}){return a7(this.http,{url:$,...Y},Y.pollInterval,Y.timeout)}async getCrawlErrors($){return t7(this.http,$)}async getActiveCrawls(){return s7(this.http)}async crawlParamsPreview($,Y){return o7(this.http,$,Y)}async createMonitor($){return H2(this.http,$)}async listMonitors($){return T2(this.http,$)}async getMonitor($){return C2(this.http,$)}async updateMonitor($,Y){return I2(this.http,$,Y)}async deleteMonitor($){return R2(this.http,$)}async runMonitor($){return D2(this.http,$)}async listMonitorChecks($,Y){return S2(this.http,$,Y)}async getMonitorCheck($,Y,Q){return w2(this.http,$,Y,Q)}async startBatchScrape($,Y){return I$(this.http,$,Y)}async getBatchScrapeStatus($,Y){return Q5(this.http,$,Y)}async getBatchScrapeErrors($){return e7(this.http,$)}async cancelBatchScrape($){return r7(this.http,$)}async batchScrape($,Y){return Y2(this.http,$,Y)}async startExtract($){return R$(this.http,$)}async getExtractStatus($){return D$(this.http,$)}async extract($){return X2(this.http,$)}async startAgent($){return S$(this.http,$)}async getAgentStatus($){return w$(this.http,$)}async agent($){return J2(this.http,$)}async cancelAgent($){return N2(this.http,$)}async browser($={}){return K2(this.http,$)}async browserExecute($,Y){return M2(this.http,$,Y)}async deleteBrowser($){return V2(this.http,$)}async listBrowsers($={}){return z2(this.http,$)}async getConcurrency(){return B2(this.http)}async getCreditUsage(){return U2(this.http)}async getTokenUsage(){return L2(this.http)}async getCreditUsageHistorical($){return F2(this.http,$)}async getTokenUsageHistorical($){return O2(this.http,$)}async getQueueStatus(){return _2(this.http)}watcher($,Y={}){return new b2(this.http,$,Y)}async scrapeUrl($,Y){return this.scrape($,Y)}async crawlUrl($,Y={}){return this.crawl($,Y)}async asyncCrawlUrl($,Y={}){return this.startCrawl($,Y)}async checkCrawlStatus($,Y){return this.getCrawlStatus($,Y)}async checkCrawlErrors($){return this.getCrawlErrors($)}async mapUrl($,Y){return this.map($,Y)}async batchScrapeUrls($,Y){return this.batchScrape($,Y)}async asyncBatchScrapeUrls($,Y){return this.startBatchScrape($,Y)}async checkBatchScrapeStatus($,Y){return this.getBatchScrapeStatus($,Y)}async checkBatchScrapeErrors($){return this.getBatchScrapeErrors($)}},f2,P,y2=class{apiKey;apiUrl;version="1.25.1";isCloudService($){return $.includes("api.firecrawl.dev")}async getVersion(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return(await import("./package-GCDC7LJR-0.7.2-d271461v.mjs")).default.version}catch($){if(!(typeof process<"u"&&(process.env.JEST_WORKER_ID!=null||!1)))console.error("Error getting version:",$);return"1.25.1"}}async init(){this.version=await this.getVersion()}constructor({apiKey:$=null,apiUrl:Y=null}){let Q=Y||"https://api.firecrawl.dev";if(this.isCloudService(Q)&&typeof $!=="string")throw new P("No API key provided",401);this.apiKey=$||"",this.apiUrl=Q,this.init()}async scrapeUrl($,Y){let Q={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},G={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};if(G?.extract?.schema)G={...G,extract:{...G.extract,schema:W0(G.extract.schema)}};if(G?.jsonOptions?.schema)G={...G,jsonOptions:{...G.jsonOptions,schema:W0(G.jsonOptions.schema)}};try{let X=await I0.post(this.apiUrl+"/v1/scrape",G,{headers:Q,timeout:Y?.timeout!==void 0?Y.timeout+5000:void 0});if(X.status===200){let W=X.data;if(W.success)return{success:!0,warning:W.warning,error:W.error,...W.data};else throw new P(`Failed to scrape URL. Error: ${W.error}`,X.status)}else this.handleError(X,"scrape URL")}catch(X){this.handleError(X.response,"scrape URL")}return{success:!1,error:"Internal server error."}}async search($,Y){let Q={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},G={query:$,limit:Y?.limit??5,tbs:Y?.tbs,filter:Y?.filter,lang:Y?.lang??"en",country:Y?.country??"us",location:Y?.location,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`,timeout:Y?.timeout??60000,scrapeOptions:Y?.scrapeOptions??{formats:[]}};if(G?.scrapeOptions?.extract?.schema)G={...G,scrapeOptions:{...G.scrapeOptions,extract:{...G.scrapeOptions.extract,schema:W0(G.scrapeOptions.extract.schema)}}};try{let X=await this.postRequest(this.apiUrl+"/v1/search",G,Q);if(X.status===200){let W=X.data;if(W.success)return{success:!0,data:W.data,warning:W.warning};else throw new P(`Failed to search. Error: ${W.error}`,X.status)}else this.handleError(X,"search")}catch(X){if(X.response?.data?.error)throw new P(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new P(X.message,500)}return{success:!1,error:"Internal server error.",data:[]}}async crawlUrl($,Y,Q=2,G){let X=this.prepareHeaders(G),W={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let Z=await this.postRequest(this.apiUrl+"/v1/crawl",W,X);if(Z.status===200){let J=Z.data.id;return this.monitorJobStatus(J,X,Q)}else this.handleError(Z,"start crawl job")}catch(Z){if(Z.response?.data?.error)throw new P(`Request failed with status code ${Z.response.status}. Error: ${Z.response.data.error} ${Z.response.data.details?` - ${JSON.stringify(Z.response.data.details)}`:""}`,Z.response.status);else throw new P(Z.message,500)}return{success:!1,error:"Internal server error."}}async asyncCrawlUrl($,Y,Q){let G=this.prepareHeaders(Q),X={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let W=await this.postRequest(this.apiUrl+"/v1/crawl",X,G);if(W.status===200)return W.data;else this.handleError(W,"start crawl job")}catch(W){if(W.response?.data?.error)throw new P(`Request failed with status code ${W.response.status}. Error: ${W.response.data.error} ${W.response.data.details?` - ${JSON.stringify(W.response.data.details)}`:""}`,W.response.status);else throw new P(W.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlStatus($,Y=!1,Q,G,X){if(!$)throw new P("No crawl ID provided",400);let W=this.prepareHeaders(),Z=new URL(Q??`${this.apiUrl}/v1/crawl/${$}`);if(G!==void 0)Z.searchParams.set("skip",G.toString());if(X!==void 0)Z.searchParams.set("limit",X.toString());try{let J=await this.getRequest(Z.href,W);if(J.status===200){let K=J.data.data;if(Y&&J.data.status==="completed"){let V=J.data;if("data"in V){let z=V.data;while(typeof V==="object"&&"next"in V){if(z.length===0)break;V=(await this.getRequest(V.next,W)).data,z=z.concat(V.data)}K=z}}let M={success:J.data.success,status:J.data.status,total:J.data.total,completed:J.data.completed,creditsUsed:J.data.creditsUsed,next:Y?void 0:J.data.next,expiresAt:new Date(J.data.expiresAt),data:K};if(!J.data.success&&J.data.error)M={...M,success:!1,error:J.data.error};if(J.data.next)M.next=J.data.next;return M}else this.handleError(J,"check crawl status")}catch(J){throw new P(J.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlErrors($){let Y=this.prepareHeaders();try{let Q=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${$}/errors`,Y);if(Q.status===200)return Q.data;else this.handleError(Q,"check crawl errors")}catch(Q){throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}async cancelCrawl($){let Y=this.prepareHeaders();try{let Q=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${$}`,Y);if(Q.status===200)return Q.data;else this.handleError(Q,"cancel crawl job")}catch(Q){throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}async crawlUrlAndWatch($,Y,Q){let G=await this.asyncCrawlUrl($,Y,Q);if(G.success&&G.id){let X=G.id;return new _$(X,this)}throw new P("Crawl job failed to start",400)}async mapUrl($,Y){let Q=this.prepareHeaders(),G={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let X=await this.postRequest(this.apiUrl+"/v1/map",G,Q);if(X.status===200)return X.data;else this.handleError(X,"map")}catch(X){throw new P(X.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrls($,Y,Q=2,G,X,W,Z){let J=this.prepareHeaders(G),K={urls:$,webhook:X,ignoreInvalidURLs:W,maxConcurrency:Z,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};if(K?.extract?.schema)K={...K,extract:{...K.extract,schema:W0(K.extract.schema)}};if(K?.jsonOptions?.schema)K={...K,jsonOptions:{...K.jsonOptions,schema:W0(K.jsonOptions.schema)}};try{let M=await this.postRequest(this.apiUrl+"/v1/batch/scrape",K,J);if(M.status===200){let V=M.data.id;return this.monitorJobStatus(V,J,Q)}else this.handleError(M,"start batch scrape job")}catch(M){if(M.response?.data?.error)throw new P(`Request failed with status code ${M.response.status}. Error: ${M.response.data.error} ${M.response.data.details?` - ${JSON.stringify(M.response.data.details)}`:""}`,M.response.status);else throw new P(M.message,500)}return{success:!1,error:"Internal server error."}}async asyncBatchScrapeUrls($,Y,Q,G,X){let W=this.prepareHeaders(Q),Z={urls:$,webhook:G,ignoreInvalidURLs:X,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let J=await this.postRequest(this.apiUrl+"/v1/batch/scrape",Z,W);if(J.status===200)return J.data;else this.handleError(J,"start batch scrape job")}catch(J){if(J.response?.data?.error)throw new P(`Request failed with status code ${J.response.status}. Error: ${J.response.data.error} ${J.response.data.details?` - ${JSON.stringify(J.response.data.details)}`:""}`,J.response.status);else throw new P(J.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrlsAndWatch($,Y,Q,G,X){let W=await this.asyncBatchScrapeUrls($,Y,Q,G,X);if(W.success&&W.id){let Z=W.id;return new _$(Z,this)}throw new P("Batch scrape job failed to start",400)}async checkBatchScrapeStatus($,Y=!1,Q,G,X){if(!$)throw new P("No batch scrape ID provided",400);let W=this.prepareHeaders(),Z=new URL(Q??`${this.apiUrl}/v1/batch/scrape/${$}`);if(G!==void 0)Z.searchParams.set("skip",G.toString());if(X!==void 0)Z.searchParams.set("limit",X.toString());try{let J=await this.getRequest(Z.href,W);if(J.status===200){let K=J.data.data;if(Y&&J.data.status==="completed"){let V=J.data;if("data"in V){let z=V.data;while(typeof V==="object"&&"next"in V){if(z.length===0)break;V=(await this.getRequest(V.next,W)).data,z=z.concat(V.data)}K=z}}let M={success:J.data.success,status:J.data.status,total:J.data.total,completed:J.data.completed,creditsUsed:J.data.creditsUsed,next:Y?void 0:J.data.next,expiresAt:new Date(J.data.expiresAt),data:K};if(!J.data.success&&J.data.error)M={...M,success:!1,error:J.data.error};if(J.data.next)M.next=J.data.next;return M}else this.handleError(J,"check batch scrape status")}catch(J){throw new P(J.message,500)}return{success:!1,error:"Internal server error."}}async checkBatchScrapeErrors($){let Y=this.prepareHeaders();try{let Q=await this.deleteRequest(`${this.apiUrl}/v1/batch/scrape/${$}/errors`,Y);if(Q.status===200)return Q.data;else this.handleError(Q,"check batch scrape errors")}catch(Q){throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}async extract($,Y){let Q=this.prepareHeaders(),G={urls:$,...Y},X=Y?.schema?W0(Y.schema):void 0;try{let W=await this.postRequest(this.apiUrl+"/v1/extract",{...G,schema:X,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`},Q);if(W.status===200){let Z=W.data.id,J;do{let K=await this.getRequest(`${this.apiUrl}/v1/extract/${Z}`,Q);if(J=K.data,J.status==="completed")if(J.success)return{success:!0,data:J.data,warning:J.warning,error:J.error,sources:J?.sources||void 0};else throw new P(`Failed to extract data. Error: ${J.error}`,K.status);else if(J.status==="failed"||J.status==="cancelled")throw new P(`Extract job ${J.status}. Error: ${J.error}`,K.status);await new Promise((M)=>setTimeout(M,1000))}while(J.status!=="completed")}else this.handleError(W,"extract")}catch(W){throw new P(W.message,500,W.response?.data?.details)}return{success:!1,error:"Internal server error."}}async asyncExtract($,Y,Q){let G=this.prepareHeaders(Q),X={urls:$,...Y},W=Y?.schema?W0(Y.schema):void 0;try{let Z=await this.postRequest(this.apiUrl+"/v1/extract",{...X,schema:W,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`},G);if(Z.status===200)return Z.data;else this.handleError(Z,"start extract job")}catch(Z){throw new P(Z.message,500,Z.response?.data?.details)}return{success:!1,error:"Internal server error."}}async getExtractStatus($){try{let Y=await this.getRequest(`${this.apiUrl}/v1/extract/${$}`,this.prepareHeaders());if(Y.status===200)return Y.data;else this.handleError(Y,"get extract status")}catch(Y){throw new P(Y.message,500)}}prepareHeaders($){return{"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`,...$?{"x-idempotency-key":$}:{}}}postRequest($,Y,Q){return I0.post($,Y,{headers:Q,timeout:Y?.timeout?Y.timeout+5000:void 0})}async getRequest($,Y){try{return await I0.get($,{headers:Y})}catch(Q){if(Q instanceof o4&&Q.response)return Q.response;else throw Q}}async deleteRequest($,Y){try{return await I0.delete($,{headers:Y})}catch(Q){if(Q instanceof o4&&Q.response)return Q.response;else throw Q}}async monitorJobStatus($,Y,Q){let G=0,X=0,W=3;while(!0)try{let Z=await this.getRequest(`${this.apiUrl}/v1/crawl/${$}`,Y);if(Z.status===200){G=0,X=0;let J=Z.data;if(J.status==="completed")if("data"in J){let K=J.data;while(typeof J==="object"&&"next"in J){if(K.length===0)break;Z=await this.getRequest(J.next,Y),J=Z.data,K=K.concat(J.data)}return J.data=K,J}else throw new P("Crawl job completed but no data was returned",500);else if(["active","paused","pending","queued","waiting","scraping"].includes(J.status))Q=Math.max(Q,2),await new Promise((K)=>setTimeout(K,Q*1000));else throw new P(`Crawl job failed or was stopped. Status: ${J.status}`,500)}else if(G++,G>=3)this.handleError(Z,"check crawl status")}catch(Z){if(this.isRetryableError(Z)&&X<W){X++;let J=Math.min(1000*Math.pow(2,X-1),1e4);await new Promise((K)=>setTimeout(K,J));continue}throw new P(Z,500)}}isRetryableError($){if($ instanceof o4){if(!$.response){let Y=$.code,Q=$.message?.toLowerCase()||"";return Y==="ECONNRESET"||Y==="ETIMEDOUT"||Y==="ENOTFOUND"||Y==="ECONNREFUSED"||Q.includes("socket hang up")||Q.includes("network error")||Q.includes("timeout")}if($.response?.status===408||$.response?.status===504)return!0}if($&&typeof $==="object"){let Y=$.code,Q=$.message?.toLowerCase()||"";if(Y==="ECONNRESET"||Y==="ETIMEDOUT"||Y==="ENOTFOUND"||Y==="ECONNREFUSED"||Q.includes("socket hang up")||Q.includes("network error")||Q.includes("timeout"))return!0;if($.response?.status===408||$.response?.status===504)return!0}return!1}handleError($,Y){if(!$)throw new P(`No response received while trying to ${Y}. This may be a network error or the server is unreachable.`,0);if([400,402,403,408,409,500].includes($.status)){let Q=$.data.error||"Unknown error occurred",G=$.data.details?` - ${JSON.stringify($.data.details)}`:"";throw new P(`Failed to ${Y}. Status code: ${$.status}. Error: ${Q}${G}`,$.status,$?.data?.details)}else throw new P(`Unexpected error occurred while trying to ${Y}. Status code: ${$.status}`,$.status)}async deepResearch($,Y,Q,G){try{let X=await this.asyncDeepResearch($,Y);if(!X.success||"error"in X)return{success:!1,error:"error"in X?X.error:"Unknown error"};if(!X.id)throw new P("Failed to start research. No job ID returned.",500);let W=X.id,Z,J=0,K=0;while(!0){if(Z=await this.checkDeepResearchStatus(W),"error"in Z&&!Z.success)return Z;if(Q&&Z.activities){let M=Z.activities.slice(J);for(let V of M)Q(V);J=Z.activities.length}if(G&&Z.sources){let M=Z.sources.slice(K);for(let V of M)G(V);K=Z.sources.length}if(Z.status==="completed")return Z;if(Z.status==="failed")throw new P(`Research job ${Z.status}. Error: ${Z.error}`,500);if(Z.status!=="processing")break;await new Promise((M)=>setTimeout(M,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(X){throw new P(X.message,500,X.response?.data?.details)}}async asyncDeepResearch($,Y){let Q=this.prepareHeaders(),G={query:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};if(G?.jsonOptions?.schema)G={...G,jsonOptions:{...G.jsonOptions,schema:W0(G.jsonOptions.schema)}};try{let X=await this.postRequest(`${this.apiUrl}/v1/deep-research`,G,Q);if(X.status===200)return X.data;else this.handleError(X,"start deep research")}catch(X){if(X.response?.data?.error)throw new P(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new P(X.message,500)}return{success:!1,error:"Internal server error."}}async checkDeepResearchStatus($){let Y=this.prepareHeaders();try{let Q=await this.getRequest(`${this.apiUrl}/v1/deep-research/${$}`,Y);if(Q.status===200)return Q.data;else if(Q.status===404)throw new P("Deep research job not found",404);else this.handleError(Q,"check deep research status")}catch(Q){if(Q.response?.data?.error)throw new P(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}async __deepResearch($,Y,Q){try{let G=await this.__asyncDeepResearch($,Y);if(!G.success||"error"in G)return{success:!1,error:"error"in G?G.error:"Unknown error"};if(!G.id)throw new P("Failed to start research. No job ID returned.",500);let X=G.id,W,Z=0;while(!0){if(W=await this.__checkDeepResearchStatus(X),"error"in W&&!W.success)return W;if(Q&&W.activities){let J=W.activities.slice(Z);for(let K of J)Q(K);Z=W.activities.length}if(W.status==="completed")return W;if(W.status==="failed")throw new P(`Research job ${W.status}. Error: ${W.error}`,500);if(W.status!=="processing")break;await new Promise((J)=>setTimeout(J,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(G){throw new P(G.message,500,G.response?.data?.details)}}async __asyncDeepResearch($,Y){let Q=this.prepareHeaders();try{let G={topic:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`},X=await this.postRequest(`${this.apiUrl}/v1/deep-research`,G,Q);if(X.status===200)return X.data;else this.handleError(X,"start deep research")}catch(G){if(G.response?.data?.error)throw new P(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new P(G.message,500)}return{success:!1,error:"Internal server error."}}async __checkDeepResearchStatus($){let Y=this.prepareHeaders();try{let Q=await this.getRequest(`${this.apiUrl}/v1/deep-research/${$}`,Y);if(Q.status===200)return Q.data;else if(Q.status===404)throw new P("Deep research job not found",404);else this.handleError(Q,"check deep research status")}catch(Q){if(Q.response?.data?.error)throw new P(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}async generateLLMsText($,Y){try{let Q=await this.asyncGenerateLLMsText($,Y);if(!Q.success||"error"in Q)return{success:!1,error:"error"in Q?Q.error:"Unknown error"};if(!Q.id)throw new P("Failed to start LLMs.txt generation. No job ID returned.",500);let G=Q.id,X;while(!0){if(X=await this.checkGenerateLLMsTextStatus(G),"error"in X&&!X.success)return X;if(X.status==="completed")return X;if(X.status==="failed")throw new P(`LLMs.txt generation job ${X.status}. Error: ${X.error}`,500);if(X.status!=="processing")break;await new Promise((W)=>setTimeout(W,2000))}return{success:!1,error:"LLMs.txt generation job terminated unexpectedly"}}catch(Q){throw new P(Q.message,500,Q.response?.data?.details)}}async asyncGenerateLLMsText($,Y){let Q=this.prepareHeaders(),G={url:$,...Y,origin:typeof Y.origin==="string"&&Y.origin.includes("mcp")?Y.origin:`js-sdk@${this.version}`};try{let X=await this.postRequest(`${this.apiUrl}/v1/llmstxt`,G,Q);if(X.status===200)return X.data;else this.handleError(X,"start LLMs.txt generation")}catch(X){if(X.response?.data?.error)throw new P(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new P(X.message,500)}return{success:!1,error:"Internal server error."}}async checkGenerateLLMsTextStatus($){let Y=this.prepareHeaders();try{let Q=await this.getRequest(`${this.apiUrl}/v1/llmstxt/${$}`,Y);if(Q.status===200)return Q.data;else if(Q.status===404)throw new P("LLMs.txt generation job not found",404);else this.handleError(Q,"check LLMs.txt generation status")}catch(Q){if(Q.response?.data?.error)throw new P(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}async getQueueStatus(){let $=this.prepareHeaders();try{let Y=await this.getRequest(`${this.apiUrl}/v1/team/queue-status`,$);if(Y.status===200)return Y.data;else this.handleError(Y,"get queue status")}catch(Y){if(Y.response?.data?.error)throw new P(`Request failed with status code ${Y.response.status}. Error: ${Y.response.data.error} ${Y.response.data.details?` - ${JSON.stringify(Y.response.data.details)}`:""}`,Y.response.status);else throw new P(Y.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsage(){let $=this.prepareHeaders();try{let Y=await this.getRequest(`${this.apiUrl}/v1/team/credit-usage`,$);if(Y.status===200)return Y.data;else this.handleError(Y,"get credit usage")}catch(Y){if(Y.response?.data?.error)throw new P(`Request failed with status code ${Y.response.status}. Error: ${Y.response.data.error} ${Y.response.data.details?` - ${JSON.stringify(Y.response.data.details)}`:""}`,Y.response.status);else throw new P(Y.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsage(){let $=this.prepareHeaders();try{let Y=await this.getRequest(`${this.apiUrl}/v1/team/token-usage`,$);if(Y.status===200)return Y.data;else this.handleError(Y,"get token usage")}catch(Y){if(Y.response?.data?.error)throw new P(`Request failed with status code ${Y.response.status}. Error: ${Y.response.data.error} ${Y.response.data.details?` - ${JSON.stringify(Y.response.data.details)}`:""}`,Y.response.status);else throw new P(Y.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsageHistorical($){let Y=this.prepareHeaders();try{let Q=`${this.apiUrl}/v1/team/credit-usage/historical${$?"?byApiKey=true":""}`,G=await this.getRequest(Q,Y);if(G.status===200)return G.data;else this.handleError(G,"get credit usage historical")}catch(Q){if(Q.response?.data?.error)throw new P(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsageHistorical($){let Y=this.prepareHeaders();try{let Q=`${this.apiUrl}/v1/team/token-usage/historical${$?"?byApiKey=true":""}`,G=await this.getRequest(Q,Y);if(G.status===200)return G.data;else this.handleError(G,"get token usage historical")}catch(Q){if(Q.response?.data?.error)throw new P(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new P(Q.message,500)}return{success:!1,error:"Internal server error."}}},_$,r1,PW;var m2=C(()=>{E7();n1();w7();n1();H0=class extends Error{status;code;details;jobId;constructor($,Y,Q,G,X){super($);this.name="FirecrawlSdkError",this.status=Y,this.code=Q,this.details=G,this.jobId=X}},e1=class extends H0{timeoutSeconds;constructor($,Y,Q="batch"){let G=Q==="batch"?"batch scrape":"crawl";super(`${G.charAt(0).toUpperCase()+G.slice(1)} job ${$} did not complete within ${Y} seconds`,void 0,"JOB_TIMEOUT",void 0,$);this.name="JobTimeoutError",this.timeoutSeconds=Y}};x2=typeof TextDecoder<"u"?new TextDecoder:void 0,b2=class extends E2{http;jobId;kind;pollInterval;timeout;ws;closed=!1;emittedDocumentKeys=new Set;constructor($,Y,Q={}){super();this.http=$,this.jobId=Y,this.kind=Q.kind??"crawl",this.pollInterval=Q.pollInterval??2,this.timeout=Q.timeout}buildWsUrl(){let Y=this.http.getApiUrl().replace(/^http/,"ws"),Q=this.kind==="crawl"?`/v2/crawl/${this.jobId}`:`/v2/batch/scrape/${this.jobId}`;return`${Y}${Q}`}async start(){return new Promise(($,Y)=>{let Q=()=>{X(),$()},G=(W)=>{X(),$()},X=()=>{this.removeListener("done",Q),this.removeListener("error",G)};this.on("done",Q),this.on("error",G),(async()=>{try{let W=this.buildWsUrl(),Z=await j2();if(!Z){this.pollLoop();return}if(this.ws=new Z(W,this.http.getApiKey()),this.ws&&"binaryType"in this.ws)this.ws.binaryType="arraybuffer";if(this.ws)this.attachWsHandlers(this.ws)}catch(W){this.pollLoop()}})()})}attachWsHandlers($){let Y=Date.now(),Q=this.timeout?this.timeout*1000:void 0;$.onmessage=(G)=>{try{let X=v2(G.data);if(!X)return;let W=JSON.parse(X),Z=W.type;if(Z==="error"){this.emit("error",{status:"failed",data:[],error:W.error,id:this.jobId});return}if(Z==="catchup"){let K=W.data||{};this.emitDocuments(K.data||[]),this.emitSnapshot(K);return}if(Z==="document"){let K=W.data;if(K)this.emitDocuments([K]);return}if(Z==="done"){let K=W.data||W,M=K.data||[];if(M.length)this.emitDocuments(M);this.emit("done",{status:"completed",data:M,id:this.jobId,total:K.total,completed:K.completed,creditsUsed:K.creditsUsed}),this.close();return}let J=W.data||W;if(J&&J.status)this.emitSnapshot(J)}catch{}if(Q&&Date.now()-Y>Q)this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close()},$.onerror=()=>{this.emit("error",{status:"failed",data:[],error:"WebSocket error",id:this.jobId}),this.close()},$.onclose=()=>{if(!this.closed)this.pollLoop()}}documentKey($){if($&&typeof $==="object"){let Y=$.id??$.docId??$.url;if(typeof Y==="string"&&Y.length)return Y}try{return JSON.stringify($)}catch{return`${Date.now()}-${Math.random()}`}}emitDocuments($){for(let Y of $){if(!Y)continue;let Q=this.documentKey(Y);if(this.emittedDocumentKeys.has(Q))continue;this.emittedDocumentKeys.add(Q),this.emit("document",{...Y,id:this.jobId})}}emitSnapshot($){let Y=$.status,Q=$.data||[],G=this.kind==="crawl"?{id:this.jobId,status:Y,completed:$.completed??0,total:$.total??0,creditsUsed:$.creditsUsed,expiresAt:$.expiresAt,next:$.next??null,data:Q}:{id:this.jobId,status:Y,completed:$.completed??0,total:$.total??0,creditsUsed:$.creditsUsed,expiresAt:$.expiresAt,next:$.next??null,data:Q};if(this.emit("snapshot",G),["completed","failed","cancelled"].includes(Y))this.emit("done",{status:Y,data:Q,id:this.jobId,total:$.total??0,completed:$.completed??0,creditsUsed:$.creditsUsed}),this.close()}async pollLoop(){let $=Date.now(),Y=this.timeout?this.timeout*1000:void 0;while(!this.closed){try{let Q=this.kind==="crawl"?await Y5(this.http,this.jobId):await Q5(this.http,this.jobId);if(this.emitDocuments(Q.data||[]),this.emit("snapshot",Q),["completed","failed","cancelled"].includes(Q.status)){this.emit("done",{status:Q.status,data:Q.data,id:this.jobId,total:Q.total??0,completed:Q.completed??0,creditsUsed:Q.creditsUsed}),this.close();break}}catch{}if(Y&&Date.now()-$>Y){this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close();break}await new Promise((Q)=>setTimeout(Q,Math.max(1000,this.pollInterval*1000)))}}close(){if(this.closed=!0,this.ws&&this.ws.close)this.ws.close()}},f2=class extends EventTarget{dispatchTypedEvent($,Y){return super.dispatchEvent(Y)}},P=class extends Error{statusCode;details;constructor($,Y,Q){super($);this.statusCode=Y,this.details=Q}},_$=class extends f2{ws;data;status;id;constructor($,Y){super();this.id=$;let Q=Y.apiUrl.replace(/^http/,"ws");this.ws=new WebSocket(`${Q}/v1/crawl/${$}`,Y.apiKey),this.status="scraping",this.data=[];let G=(X)=>{if(X.type==="done")this.status="completed",this.dispatchTypedEvent("done",new CustomEvent("done",{detail:{status:this.status,data:this.data,id:this.id}}));else if(X.type==="error")this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:X.error,id:this.id}}));else if(X.type==="catchup"){this.status=X.data.status,this.data.push(...X.data.data??[]);for(let W of this.data)this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{...W,id:this.id}}))}else if(X.type==="document")this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{...X.data,id:this.id}}))};this.ws.onmessage=((X)=>{if(typeof X.data!=="string"){this.ws.close();return}try{let W=JSON.parse(X.data);G(W)}catch(W){console.error("Error on message",W)}}).bind(this),this.ws.onclose=((X)=>{try{let W=JSON.parse(X.reason);G(W)}catch(W){console.error("Error on close",W)}}).bind(this),this.ws.onerror=((X)=>{this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:"WebSocket error",id:this.id}}))}).bind(this)}close(){this.ws.close()}},r1=class extends o1{_v1;_v1Opts;constructor($={}){let Y=typeof $==="string"?{apiKey:$}:$;super(Y);this._v1Opts={apiKey:Y.apiKey,apiUrl:Y.apiUrl}}get v1(){if(!this._v1)this._v1=new y2(this._v1Opts);return this._v1}};(function(){for(let Y of Object.getOwnPropertyNames(o1.prototype)){if(Y==="constructor")continue;if(Object.prototype.hasOwnProperty.call(r1.prototype,Y))continue;let Q=Object.getOwnPropertyDescriptor(o1.prototype,Y);if(Q)Object.defineProperty(r1.prototype,Y,Q)}})();PW=r1});m2();export{PW as default,b2 as Watcher,H0 as SdkError,P2 as ResearchClient,e1 as JobTimeoutError,o1 as FirecrawlClient,y2 as FirecrawlAppV1,r1 as Firecrawl};
@@ -0,0 +1 @@
1
+ import{A7 as et,B7 as zr,C7 as hr,D7 as tt,E7 as D,F7 as St,G7 as Sr,H7 as Or,J7 as Ir,K7 as br,L7 as qr,M7 as Dr,N7 as Rr,O7 as tr,P7 as rr,Q7 as sr,R7 as Ar,S7 as Br,s7 as G,t7 as fr,u7 as Hr,v7 as Lr,w7 as oe,x7 as er,y7 as Ut,z7 as Vr}from"./cli-0.7.2-ydcqkbay.mjs";import{T7 as Qe}from"./cli-0.7.2-p42bcqhs.mjs";import{Tpa as Er,Upa as Pr}from"./cli-0.7.2-hbmczrch.mjs";import{Wpa as vr}from"./cli-0.7.2-vgq7ce31.mjs";import{Ypa as we}from"./cli-0.7.2-q88h44qv.mjs";import{eqa as a}from"./cli-0.7.2-5tacs42k.mjs";var $=a((_)=>{Object.defineProperty(_,"__esModule",{value:!0});_.resolveHttpAuthSchemeConfig=_.defaultSigninHttpAuthSchemeProvider=_.defaultSigninHttpAuthSchemeParametersProvider=void 0;var Ot=G(),g=St(),It=async(e,t,r)=>{return{operation:(0,g.getSmithyContext)(t).operation,region:await(0,g.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};_.defaultSigninHttpAuthSchemeParametersProvider=It;function bt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var Dt=(e)=>{let t=[];switch(e.operation){case"CreateOAuth2Token":{t.push(qt(e));break}default:t.push(bt(e))}return t};_.defaultSigninHttpAuthSchemeProvider=Dt;var Rt=(e)=>{let t=(0,Ot.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,g.normalizeProvider)(e.authSchemePreference??[])})};_.resolveHttpAuthSchemeConfig=Rt});var ae=a((ie)=>{Object.defineProperty(ie,"__esModule",{value:!0});ie.bdd=void 0;var Nt=oe(),P="ref",c=-1,b=!0,ee="isSet",ne="PartitionResult",q="booleanEquals",L="getAttr",f="stringEquals",te={[P]:"Endpoint"},V={[P]:ne},H={fn:L,argv:[V,"name"]},l={},re=[{[P]:"Region"}],se={conditions:[[ee,[te]],[ee,re],["aws.partition",re,ne],[q,[{[P]:"UseFIPS"},b]],[q,[{[P]:"UseDualStack"},b]],[q,[{fn:L,argv:[V,"supportsDualStack"]},b]],[q,[{fn:L,argv:[V,"supportsFIPS"]},b]],[f,[H,"aws"]],[f,[H,"aws-cn"]],[f,[H,"aws-us-gov"]]],results:[[c],[c,"Invalid Configuration: FIPS and custom endpoint are not supported"],[c,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[te,l],["https://{Region}.signin.aws.amazon.com",l],["https://{Region}.signin.amazonaws.cn",l],["https://{Region}.signin.amazonaws-us-gov.com",l],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",l],[c,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",l],[c,"FIPS is enabled but this partition does not support FIPS"],["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",l],[c,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",l],[c,"Invalid Configuration: Missing Region"]]},Mt=2,s=1e8,wt=new Int32Array([-1,1,-1,0,15,3,1,4,s+14,2,5,s+14,3,11,6,4,10,7,7,s+4,8,8,s+5,9,9,s+6,s+13,5,s+11,s+12,4,13,12,6,s+9,s+10,5,14,s+8,6,s+7,s+8,3,s+1,16,4,s+2,s+3]);ie.bdd=Nt.BinaryDecisionDiagram.from(wt,Mt,se.conditions,se.results)});var pe=a((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.defaultEndpointResolver=void 0;var xt=Ut(),z=oe(),gt=ae(),Gt=new z.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),$t=(e,t={})=>{return Gt.get(e,()=>(0,z.decideEndpoint)(gt.bdd,{endpointParams:e,logger:t.logger}))};ue.defaultEndpointResolver=$t;z.customEndpointFunctions.aws=xt.awsEndpointFunctions});var R=a((A)=>{Object.defineProperty(A,"__esModule",{value:!0});A.SigninServiceException=A.__ServiceException=void 0;var ce=D();Object.defineProperty(A,"__ServiceException",{enumerable:!0,get:function(){return ce.ServiceException}});class h extends ce.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,h.prototype)}}A.SigninServiceException=h});var J=a((Ee)=>{Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ValidationException=Ee.TooManyRequestsError=Ee.InternalServerException=Ee.AccessDeniedException=void 0;var y=R();class B extends y.SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,B.prototype),this.error=e.error}}Ee.AccessDeniedException=B;class W extends y.SigninServiceException{name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,W.prototype),this.error=e.error}}Ee.InternalServerException=W;class Y extends y.SigninServiceException{name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.error=e.error}}Ee.TooManyRequestsError=Y;class j extends y.SigninServiceException{name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,j.prototype),this.error=e.error}}Ee.ValidationException=j});var Z=a(($e)=>{Object.defineProperty($e,"__esModule",{value:!0});$e.CreateOAuth2Token$=$e.CreateOAuth2TokenResponseBody$=$e.CreateOAuth2TokenResponse$=$e.CreateOAuth2TokenRequestBody$=$e.CreateOAuth2TokenRequest$=$e.AccessToken$=$e.errorTypeRegistries=$e.ValidationException$=$e.TooManyRequestsError$=$e.InternalServerException$=$e.AccessDeniedException$=$e.SigninServiceException$=void 0;var Vt="AccessDeniedException",zt="AccessToken",ht="CreateOAuth2Token",At="CreateOAuth2TokenRequest",Bt="CreateOAuth2TokenRequestBody",Wt="CreateOAuth2TokenResponseBody",Yt="CreateOAuth2TokenResponse",jt="InternalServerException",Jt="RefreshToken",Xt="TooManyRequestsError",Qt="ValidationException",Se="accessKeyId",Oe="accessToken",X="client",Ie="clientId",be="codeVerifier",Zt="code",p="error",qe="expiresIn",De="grantType",Kt="http",Q="httpError",Re="idToken",n="jsonName",N="message",F="refreshToken",ye="redirectUri",Ue="smithy.ts.sdk.synthetic.com.amazonaws.signin",Fe="secretAccessKey",Ne="sessionToken",Tt="server",mt="tokenInput",kt="tokenOutput",Me="tokenType",i="com.amazonaws.signin",xe=we(),M=J(),_t=R(),ge=xe.TypeRegistry.for(Ue);$e.SigninServiceException$=[-3,Ue,"SigninServiceException",0,[],[]];ge.registerError($e.SigninServiceException$,_t.SigninServiceException);var S=xe.TypeRegistry.for(i);$e.AccessDeniedException$=[-3,i,Vt,{[p]:X},[p,N],[0,0],2];S.registerError($e.AccessDeniedException$,M.AccessDeniedException);$e.InternalServerException$=[-3,i,jt,{[p]:Tt,[Q]:500},[p,N],[0,0],2];S.registerError($e.InternalServerException$,M.InternalServerException);$e.TooManyRequestsError$=[-3,i,Xt,{[p]:X,[Q]:429},[p,N],[0,0],2];S.registerError($e.TooManyRequestsError$,M.TooManyRequestsError);$e.ValidationException$=[-3,i,Qt,{[p]:X,[Q]:400},[p,N],[0,0],2];S.registerError($e.ValidationException$,M.ValidationException);$e.errorTypeRegistries=[ge,S];var Ge=[0,i,Jt,8,0];$e.AccessToken$=[3,i,zt,8,[Se,Fe,Ne],[[0,{[n]:Se}],[0,{[n]:Fe}],[0,{[n]:Ne}]],3];$e.CreateOAuth2TokenRequest$=[3,i,At,0,[mt],[[()=>$e.CreateOAuth2TokenRequestBody$,16]],1];$e.CreateOAuth2TokenRequestBody$=[3,i,Bt,0,[Ie,De,Zt,ye,be,F],[[0,{[n]:Ie}],[0,{[n]:De}],0,[0,{[n]:ye}],[0,{[n]:be}],[()=>Ge,{[n]:F}]],2];$e.CreateOAuth2TokenResponse$=[3,i,Yt,0,[kt],[[()=>$e.CreateOAuth2TokenResponseBody$,16]],1];$e.CreateOAuth2TokenResponseBody$=[3,i,Wt,0,[Oe,Me,qe,F,Re],[[()=>$e.AccessToken$,{[n]:Oe}],[0,{[n]:Me}],[1,{[n]:qe}],[()=>Ge,{[n]:F}],[0,{[n]:Re}]],4];$e.CreateOAuth2Token$=[9,i,ht,{[Kt]:["POST","/v1/token",200]},()=>$e.CreateOAuth2TokenRequest$,()=>$e.CreateOAuth2TokenResponse$]});var Te=a((Ze)=>{Object.defineProperty(Ze,"__esModule",{value:!0});Ze.getRuntimeConfig=void 0;var or=G(),nr=rr(),ir=Qe(),dr=D(),ar=er(),Je=sr(),Xe=tr(),ur=$(),lr=pe(),pr=Z(),cr=(e)=>{return{apiVersion:"2023-01-01",base64Decoder:e?.base64Decoder??Je.fromBase64,base64Encoder:e?.base64Encoder??Je.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??lr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ur.defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new or.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ir.NoAuthSigner}],logger:e?.logger??new dr.NoOpLogger,protocol:e?.protocol??nr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:pr.errorTypeRegistries,version:"2023-01-01",serviceTarget:"Signin"},serviceId:e?.serviceId??"Signin",urlParser:e?.urlParser??ar.parseUrl,utf8Decoder:e?.utf8Decoder??Xe.fromUtf8,utf8Encoder:e?.utf8Encoder??Xe.toUtf8}};Ze.getRuntimeConfig=cr});var ot=a((rt)=>{Object.defineProperty(rt,"__esModule",{value:!0});rt.getRuntimeConfig=void 0;var yr=Sr(),Fr=yr.__importDefault(Or()),Nr=Pr(),Mr=G(),me=Ir(),w=et(),wr=br(),ke=tt(),v=qr(),_e=vr(),Ce=D(),Ur=Dr(),xr=Rr(),gr=Er(),Gr=Te(),$r=(e)=>{(0,Ce.emitWarningIfUnsupportedVersion)(process.version);let t=(0,xr.resolveDefaultsModeConfig)(e),r=()=>t().then(Ce.loadConfigsForDefaultMode),d=(0,Gr.getRuntimeConfig)(e);(0,Nr.emitWarningIfUnsupportedVersion)(process.version);let o={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,v.loadConfig)(Mr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??Ur.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,me.createDefaultUserAgentProvider)({serviceId:d.serviceId,clientVersion:Fr.default.version}),maxAttempts:e?.maxAttempts??(0,v.loadConfig)(ke.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,v.loadConfig)(w.NODE_REGION_CONFIG_OPTIONS,{...w.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:_e.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,v.loadConfig)({...ke.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||gr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??_e.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,v.loadConfig)(w.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,v.loadConfig)(w.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,v.loadConfig)(me.NODE_APP_ID_CONFIG_OPTIONS,o)}};rt.getRuntimeConfig=$r});var as=a((u)=>{var nt=fr(),Wr=Hr(),Yr=Lr(),it=Vr(),jr=et(),K=Qe(),Jr=we(),Xr=zr(),pt=hr(),dt=tt(),E=D(),at=$(),Qr=ot(),ut=Ar(),lt=Br(),O=Z(),U=J(),Zr=R(),Kr=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"signin"})},Tr={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},mr=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:d}=e;return{setHttpAuthScheme(o){let I=t.findIndex((x)=>x.schemeId===o.schemeId);if(I===-1)t.push(o);else t.splice(I,1,o)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(o){r=o},httpAuthSchemeProvider(){return r},setCredentials(o){d=o},credentials(){return d}}},kr=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},_r=(e,t)=>{let r=Object.assign(ut.getAwsRegionExtensionConfiguration(e),E.getDefaultExtensionConfiguration(e),lt.getHttpHandlerExtensionConfiguration(e),mr(e));return t.forEach((d)=>d.configure(r)),Object.assign(e,ut.resolveAwsRegionExtensionConfiguration(r),E.resolveDefaultRuntimeConfig(r),lt.resolveHttpHandlerRuntimeConfig(r),kr(r))};class T extends E.Client{config;constructor(...[e]){let t=Qr.getRuntimeConfig(e||{});super(t);this.initConfig=t;let r=Kr(t),d=it.resolveUserAgentConfig(r),o=dt.resolveRetryConfig(d),I=jr.resolveRegionConfig(o),x=nt.resolveHostHeaderConfig(I),ct=pt.resolveEndpointConfig(x),vt=at.resolveHttpAuthSchemeConfig(ct),Et=_r(vt,e?.extensions||[]);this.config=Et,this.middlewareStack.use(Jr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(it.getUserAgentPlugin(this.config)),this.middlewareStack.use(dt.getRetryPlugin(this.config)),this.middlewareStack.use(Xr.getContentLengthPlugin(this.config)),this.middlewareStack.use(nt.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Wr.getLoggerPlugin(this.config)),this.middlewareStack.use(Yr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(K.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:at.defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Pt)=>new K.DefaultIdentityProviderConfig({"aws.auth#sigv4":Pt.credentials})})),this.middlewareStack.use(K.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class m extends E.Command.classBuilder().ep(Tr).m(function(e,t,r,d){return[pt.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(O.CreateOAuth2Token$).build(){}var Cr={CreateOAuth2TokenCommand:m};class k extends T{}E.createAggregatedClient(Cr,k);var es={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};u.$Command=E.Command;u.__Client=E.Client;u.SigninServiceException=Zr.SigninServiceException;u.CreateOAuth2TokenCommand=m;u.OAuth2ErrorCode=es;u.Signin=k;u.SigninClient=T;Object.prototype.hasOwnProperty.call(O,"__proto__")&&!Object.prototype.hasOwnProperty.call(u,"__proto__")&&Object.defineProperty(u,"__proto__",{enumerable:!0,value:O.__proto__});Object.keys(O).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(u,e))u[e]=O[e]});Object.prototype.hasOwnProperty.call(U,"__proto__")&&!Object.prototype.hasOwnProperty.call(u,"__proto__")&&Object.defineProperty(u,"__proto__",{enumerable:!0,value:U.__proto__});Object.keys(U).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(u,e))u[e]=U[e]})});export default as();
@@ -0,0 +1 @@
1
+ import{Wpa as a}from"./cli-0.7.2-vgq7ce31.mjs";import"./cli-0.7.2-q88h44qv.mjs";import"./cli-0.7.2-5tacs42k.mjs";export default a();
@@ -0,0 +1,2 @@
1
+ import{_pa as u,bqa as k}from"./cli-0.7.2-q88h44qv.mjs";import{gqa as f,hqa as y}from"./cli-0.7.2-5tacs42k.mjs";function j(z){return new Promise((G,U)=>{let K=g.request({method:"GET",...z,hostname:z.hostname?.replace(/^\[(.+)\]$/,"$1")});K.on("error",(Q)=>{U(Object.assign(new X.ProviderError("Unable to connect to instance metadata service"),Q)),K.destroy()}),K.on("timeout",()=>{U(new X.ProviderError("TimeoutError from instance metadata service")),K.destroy()}),K.on("response",(Q)=>{let{statusCode:Z=400}=Q;if(Z<200||300<=Z)U(Object.assign(new X.ProviderError("Error response received from instance metadata service"),{statusCode:Z})),K.destroy();let w=[];Q.on("data",($)=>{w.push($)}),Q.on("end",()=>{G(Buffer.concat(w)),K.destroy()})}),K.end()})}var m,X,g,c,C=(z)=>Boolean(z)&&typeof z==="object"&&typeof z.AccessKeyId==="string"&&typeof z.SecretAccessKey==="string"&&typeof z.Token==="string"&&typeof z.Expiration==="string",T=(z)=>({accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.Token,expiration:new Date(z.Expiration),...z.AccountId&&{accountId:z.AccountId}}),b=1000,F=0,M=({maxRetries:z=F,timeout:G=b})=>({maxRetries:z,timeout:G}),N=(z,G)=>{let U=z();for(let K=0;K<G;K++)U=U.catch(z);return U},L="AWS_CONTAINER_CREDENTIALS_FULL_URI",_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",P="AWS_CONTAINER_AUTHORIZATION_TOKEN",p=(z={})=>{let{timeout:G,maxRetries:U}=M(z);return()=>N(async()=>{let K=await n({logger:z.logger}),Q=JSON.parse(await d(G,K));if(!C(Q))throw new X.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:z.logger});return T(Q)},U)},d=async(z,G)=>{if(process.env[P])G.headers={...G.headers,Authorization:process.env[P]};return(await j({...G,timeout:z})).toString()},l="169.254.170.2",a,s,n=async({logger:z})=>{if(process.env[_])return{hostname:l,path:process.env[_]};if(process.env[L]){let G=m.parse(process.env[L]);if(!G.hostname||!(G.hostname in a))throw new X.CredentialsProviderError(`${G.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:z});if(!G.protocol||!(G.protocol in s))throw new X.CredentialsProviderError(`${G.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:z});return{...G,port:G.port?parseInt(G.port,10):void 0}}throw new X.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_} or ${L} environment variable is set`,{tryNextLink:!1,logger:z})},V,S=void 0,o="AWS_EC2_METADATA_SERVICE_ENDPOINT",t="ec2_metadata_service_endpoint",i,A,r="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",e="ec2_metadata_service_endpoint_mode",zz,v=async()=>c.parseUrl(await Gz()||await Kz()),Gz=async()=>X.loadConfig(i)(),Kz=async()=>{let z=await X.loadConfig(zz)();switch(z){case A.IPv4:return S.IPv4;case A.IPv6:return S.IPv6;default:throw Error(`Unsupported endpoint mode: ${z}. Select from ${Object.values(A)}`)}},Qz=300,Uz=300,Xz="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",h=(z,G)=>{let U=Qz+Math.floor(Math.random()*Uz),K=new Date(Date.now()+U*1000);G.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(K)}.
2
+ For more information, please visit: `+Xz);let Q=z.originalExpiration??z.expiration;return{...z,...Q?{originalExpiration:Q}:{},expiration:K}},Zz=(z,G={})=>{let U=G?.logger||console,K;return async()=>{let Q;try{if(Q=await z(),Q.expiration&&Q.expiration.getTime()<Date.now())Q=h(Q,U)}catch(Z){if(K)U.warn("Credential renew failed: ",Z),Q=h(K,U);else throw Z}return K=Q,Q}},x="/latest/meta-data/iam/security-credentials/",$z="/latest/api/token",B="AWS_EC2_METADATA_V1_DISABLED",q="ec2_metadata_v1_disabled",I="x-aws-ec2-metadata-token",Hz=(z={})=>Zz(Jz(z),{logger:z.logger}),Jz=(z={})=>{let G=!1,{logger:U,profile:K}=z,{timeout:Q,maxRetries:Z}=M(z),w=async($,D)=>{if(G||D.headers?.[I]==null){let H=!1,J=!1,R=await X.loadConfig({environmentVariableSelector:(Y)=>{let W=Y[B];if(J=!!W&&W!=="false",W===void 0)throw new X.CredentialsProviderError(`${B} not set in env, checking config file next.`,{logger:z.logger});return J},configFileSelector:(Y)=>{let W=Y[q];return H=!!W&&W!=="false",H},default:!1},{profile:K})();if(z.ec2MetadataV1Disabled||R){let Y=[];if(z.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(H)Y.push(`config file profile (${q})`);if(J)Y.push(`process environment variable (${B})`);throw new V(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}let E=(await N(async()=>{let H;try{H=await wz(D)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)).trim();return N(async()=>{let H;try{H=await Dz(E,D,z)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)};return async()=>{let $=await v();if(G)return U?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),w(Z,{...$,timeout:Q});else{let D;try{D=(await Yz({...$,timeout:Q})).toString()}catch(O){if(O?.statusCode===400)throw Object.assign(O,{message:"EC2 Metadata token request returned error"});else if(O.message==="TimeoutError"||[403,404,405].includes(O.statusCode))G=!0;return U?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),w(Z,{...$,timeout:Q})}return w(Z,{...$,headers:{[I]:D},timeout:Q})}}},Yz=async(z)=>j({...z,path:$z,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),wz=async(z)=>(await j({...z,path:x})).toString(),Dz=async(z,G,U)=>{let K=JSON.parse((await j({...G,path:x+z})).toString());if(!C(K))throw new X.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:U.logger});return T(K)},Wz,Az,Oz,Sz,jz,Lz,_z,Bz,Nz,Pz;var Mz=f(()=>{m=y("node:url"),X=u(),g=y("node:http"),c=k();a={localhost:!0,"127.0.0.1":!0},s={"http:":!0,"https:":!0};V=class V extends X.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(z,G=!0){super(z,G);this.tryNextLink=G,Object.setPrototypeOf(this,V.prototype)}};(function(z){z.IPv4="http://169.254.169.254",z.IPv6="http://[fd00:ec2::254]"})(S||(S={}));i={environmentVariableSelector:(z)=>z[o],configFileSelector:(z)=>z[t],default:void 0};(function(z){z.IPv4="IPv4",z.IPv6="IPv6"})(A||(A={}));zz={environmentVariableSelector:(z)=>z[r],configFileSelector:(z)=>z[e],default:A.IPv4};Wz=F,Az=b,Oz=P,Sz=L,jz=_,Lz=p,_z=Hz,Bz=v,Nz=j,Pz=M});Mz();export{Pz as providerConfigFromInit,Nz as httpRequest,Bz as getInstanceMetadataEndpoint,_z as fromInstanceMetadata,Lz as fromContainerMetadata,S as Endpoint,jz as ENV_CMDS_RELATIVE_URI,Sz as ENV_CMDS_FULL_URI,Oz as ENV_CMDS_AUTH_TOKEN,Az as DEFAULT_TIMEOUT,Wz as DEFAULT_MAX_RETRIES};export default {get providerConfigFromInit(){return Pz},get httpRequest(){return Nz},get getInstanceMetadataEndpoint(){return Bz},get fromInstanceMetadata(){return _z},get fromContainerMetadata(){return Lz},get Endpoint(){return S},get ENV_CMDS_RELATIVE_URI(){return jz},get ENV_CMDS_FULL_URI(){return Sz},get ENV_CMDS_AUTH_TOKEN(){return Oz},get DEFAULT_TIMEOUT(){return Az},get DEFAULT_MAX_RETRIES(){return Wz}};
@@ -0,0 +1 @@
1
+ import{r7 as S}from"./cli-0.7.2-5e72m61f.mjs";import"./cli-0.7.2-ydcqkbay.mjs";import"./cli-0.7.2-p42bcqhs.mjs";import{U7 as A}from"./cli-0.7.2-waas8a1p.mjs";import{Upa as I,Vpa as h}from"./cli-0.7.2-hbmczrch.mjs";import"./cli-0.7.2-vgq7ce31.mjs";import"./cli-0.7.2-q88h44qv.mjs";import{eqa as p,hqa as F}from"./cli-0.7.2-5tacs42k.mjs";var d=p((n)=>{var w=n&&n.__createBinding||(Object.create?function(e,r,o,t){if(t===void 0)t=o;var _=Object.getOwnPropertyDescriptor(r,o);if(!_||("get"in _?!r.__esModule:_.writable||_.configurable))_={enumerable:!0,get:function(){return r[o]}};Object.defineProperty(e,t,_)}:function(e,r,o,t){if(t===void 0)t=o;e[t]=r[o]}),v=n&&n.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),j=n&&n.__importStar||function(){var e=function(r){return e=Object.getOwnPropertyNames||function(o){var t=[];for(var _ in o)if(Object.prototype.hasOwnProperty.call(o,_))t[t.length]=_;return t},e(r)};return function(r){if(r&&r.__esModule)return r;var o={};if(r!=null){for(var t=e(r),_=0;_<t.length;_++)if(t[_]!=="default")w(o,r,t[_])}return v(o,r),o}}();Object.defineProperty(n,"__esModule",{value:!0});n.fromWebToken=void 0;var m=(e)=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:t,webIdentityToken:_,providerId:s,policyArns:y,policy:b,durationSeconds:T}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:N}=await Promise.resolve().then(()=>j(S()));l=N({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...r?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:_,ProviderId:s,PolicyArns:y,Policy:b,DurationSeconds:T})};n.fromWebToken=m});var u=p((E)=>{Object.defineProperty(E,"__esModule",{value:!0});E.fromTokenFile=void 0;var P=I(),g=h(),k=A(),R=F("node:fs"),q=d(),O="AWS_WEB_IDENTITY_TOKEN_FILE",L="AWS_ROLE_ARN",W="AWS_ROLE_SESSION_NAME",V=(e={})=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[O],t=e?.roleArn??process.env[L],_=e?.roleSessionName??process.env[W];if(!o||!t)throw new g.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let s=await(0,q.fromWebToken)({...e,webIdentityToken:k.externalDataInterceptor?.getTokenRecord?.()[o]??(0,R.readFileSync)(o,{encoding:"ascii"}),roleArn:t,roleSessionName:_})(r);if(o===process.env[O])(0,P.setCredentialFeature)(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return s};E.fromTokenFile=V});var x=p((c)=>{var i=u(),a=d();Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:i.__proto__});Object.keys(i).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=i[e]});Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:a.__proto__});Object.keys(a).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=a[e]})});export default x();
@@ -0,0 +1,5 @@
1
+ import{Upa as ve,Vpa as L}from"./cli-0.7.2-hbmczrch.mjs";import{Wpa as _e}from"./cli-0.7.2-vgq7ce31.mjs";import{Zpa as Ke,aqa as he,bqa as Se}from"./cli-0.7.2-q88h44qv.mjs";import{eqa as H,hqa as xe}from"./cli-0.7.2-5tacs42k.mjs";var le=H((yt,V)=>{var J,$,G,Q,X,Y,Z,z,s,p,k,x,_,U,q,v,ee,te,I,ne,re,ue,ce,fe,be,ie,ae,me,W,Pe,ge,Oe;(function(f){var j=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(g){f(d(j,d(g)))});else if(typeof V==="object"&&typeof yt==="object")f(d(j,d(yt)));else f(d(j));function d(g,O){if(g!==j)if(typeof Object.create==="function")Object.defineProperty(g,"__esModule",{value:!0});else g.__esModule=!0;return function(e,t){return g[e]=O?O(e,t):t}}})(function(f){var j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};J=function(e,t){if(typeof t!=="function"&&t!==null)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");j(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)},$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u))e[u]=t[u]}return e},G=function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)if(t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u]))n[r[u]]=e[r[u]]}return n},Q=function(e,t,n,r){var u=arguments.length,c=u<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")c=Reflect.decorate(e,t,n,r);else for(var P=e.length-1;P>=0;P--)if(i=e[P])c=(u<3?i(c):u>3?i(t,n,c):i(t,n))||c;return u>3&&c&&Object.defineProperty(t,n,c),c},X=function(e,t){return function(n,r){t(n,r,e)}},Y=function(e,t,n,r,u,c){function i(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var P=r.kind,h=P==="getter"?"get":P==="setter"?"set":"value",a=!t&&e?r.static?e:e.prototype:null,S=t||(a?Object.getOwnPropertyDescriptor(a,r.name):{}),C,M=!1;for(var l=n.length-1;l>=0;l--){var T={};for(var E in r)T[E]=E==="access"?{}:r[E];for(var E in r.access)T.access[E]=r.access[E];T.addInitializer=function(N){if(M)throw TypeError("Cannot add initializers after decoration has completed");c.push(i(N||null))};var D=(0,n[l])(P==="accessor"?{get:S.get,set:S.set}:S[h],T);if(P==="accessor"){if(D===void 0)continue;if(D===null||typeof D!=="object")throw TypeError("Object expected");if(C=i(D.get))S.get=C;if(C=i(D.set))S.set=C;if(C=i(D.init))u.unshift(C)}else if(C=i(D))if(P==="field")u.unshift(C);else S[h]=C}if(a)Object.defineProperty(a,r.name,S);M=!0},Z=function(e,t,n){var r=arguments.length>2;for(var u=0;u<t.length;u++)n=r?t[u].call(e,n):t[u].call(e);return r?n:void 0},z=function(e){return typeof e==="symbol"?e:"".concat(e)},s=function(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},p=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},k=function(e,t,n,r){function u(c){return c instanceof n?c:new n(function(i){i(c)})}return new(n||(n=Promise))(function(c,i){function P(S){try{a(r.next(S))}catch(C){i(C)}}function h(S){try{a(r.throw(S))}catch(C){i(C)}}function a(S){S.done?c(S.value):u(S.value).then(P,h)}a((r=r.apply(e,t||[])).next())})},x=function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,u,c,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=P(0),i.throw=P(1),i.return=P(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function P(a){return function(S){return h([a,S])}}function h(a){if(r)throw TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(n=0)),n)try{if(r=1,u&&(c=a[0]&2?u.return:a[0]?u.throw||((c=u.return)&&c.call(u),0):u.next)&&!(c=c.call(u,a[1])).done)return c;if(u=0,c)a=[a[0]&2,c.value];switch(a[0]){case 0:case 1:c=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,u=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if((c=n.trys,!(c=c.length>0&&c[c.length-1]))&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!c||a[1]>c[0]&&a[1]<c[3])){n.label=a[1];break}if(a[0]===6&&n.label<c[1]){n.label=c[1],c=a;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(a);break}if(c[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(S){a=[6,S],u=0}finally{r=c=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},_=function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))W(t,e,n)},W=Object.create?function(e,t,n,r){if(r===void 0)r=n;var u=Object.getOwnPropertyDescriptor(t,n);if(!u||("get"in u?!t.__esModule:u.writable||u.configurable))u={enumerable:!0,get:function(){return t[n]}};Object.defineProperty(e,r,u)}:function(e,t,n,r){if(r===void 0)r=n;e[r]=t[n]},U=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},q=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),u,c=[],i;try{while((t===void 0||t-- >0)&&!(u=r.next()).done)c.push(u.value)}catch(P){i={error:P}}finally{try{if(u&&!u.done&&(n=r.return))n.call(r)}finally{if(i)throw i.error}}return c},v=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(q(arguments[t]));return e},ee=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),u=0,t=0;t<n;t++)for(var c=arguments[t],i=0,P=c.length;i<P;i++,u++)r[u]=c[i];return r},te=function(e,t,n){if(n||arguments.length===2){for(var r=0,u=t.length,c;r<u;r++)if(c||!(r in t)){if(!c)c=Array.prototype.slice.call(t,0,r);c[r]=t[r]}}return e.concat(c||Array.prototype.slice.call(t))},I=function(e){return this instanceof I?(this.v=e,this):new I(e)},ne=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),u,c=[];return u=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),P("next"),P("throw"),P("return",i),u[Symbol.asyncIterator]=function(){return this},u;function i(l){return function(T){return Promise.resolve(T).then(l,C)}}function P(l,T){if(r[l]){if(u[l]=function(E){return new Promise(function(D,N){c.push([l,E,D,N])>1||h(l,E)})},T)u[l]=T(u[l])}}function h(l,T){try{a(r[l](T))}catch(E){M(c[0][3],E)}}function a(l){l.value instanceof I?Promise.resolve(l.value.v).then(S,C):M(c[0][2],l)}function S(l){h("next",l)}function C(l){h("throw",l)}function M(l,T){if(l(T),c.shift(),c.length)h(c[0][0],c[0][1])}},re=function(e){var t,n;return t={},r("next"),r("throw",function(u){throw u}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(u,c){t[u]=e[u]?function(i){return(n=!n)?{value:I(e[u](i)),done:!1}:c?c(i):i}:c}},ue=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof U==="function"?U(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(c){n[c]=e[c]&&function(i){return new Promise(function(P,h){i=e[c](i),u(P,h,i.done,i.value)})}}function u(c,i,P,h){Promise.resolve(h).then(function(a){c({value:a,done:P})},i)}},ce=function(e,t){if(Object.defineProperty)Object.defineProperty(e,"raw",{value:t});else e.raw=t;return e};var d=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},g=function(e){return g=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))n[n.length]=r;return n},g(e)};fe=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n=g(e),r=0;r<n.length;r++)if(n[r]!=="default")W(t,e,n[r])}return d(t,e),t},be=function(e){return e&&e.__esModule?e:{default:e}},ie=function(e,t,n,r){if(n==="a"&&!r)throw TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ae=function(e,t,n,r,u){if(r==="m")throw TypeError("Private method is not writable");if(r==="a"&&!u)throw TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!u:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?u.call(e,n):u?u.value=n:t.set(e,n),n},me=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)},Pe=function(e,t,n){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw TypeError("Object expected.");var r,u;if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(r=t[Symbol.dispose],n)u=r}if(typeof r!=="function")throw TypeError("Object not disposable.");if(u)r=function(){try{u.call(this)}catch(c){return Promise.reject(c)}};e.stack.push({value:t,dispose:r,async:n})}else if(n)e.stack.push({async:!0});return t};var O=typeof SuppressedError==="function"?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};ge=function(e){function t(c){e.error=e.hasError?new O(c,e.error,"An error was suppressed during disposal."):c,e.hasError=!0}var n,r=0;function u(){while(n=e.stack.pop())try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(u);if(n.dispose){var c=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(c).then(u,function(i){return t(i),u()})}else r|=1}catch(i){t(i)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return u()},Oe=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,u,c,i){return r?t?".jsx":".js":u&&(!c||!i)?n:u+c+"."+i.toLowerCase()+"js"});return e},f("__extends",J),f("__assign",$),f("__rest",G),f("__decorate",Q),f("__param",X),f("__esDecorate",Y),f("__runInitializers",Z),f("__propKey",z),f("__setFunctionName",s),f("__metadata",p),f("__awaiter",k),f("__generator",x),f("__exportStar",_),f("__createBinding",W),f("__values",U),f("__read",q),f("__spread",v),f("__spreadArrays",ee),f("__spreadArray",te),f("__await",I),f("__asyncGenerator",ne),f("__asyncDelegator",re),f("__asyncValues",ue),f("__makeTemplateObject",ce),f("__importStar",fe),f("__importDefault",be),f("__classPrivateFieldGet",ie),f("__classPrivateFieldSet",ae),f("__classPrivateFieldIn",me),f("__addDisposableResource",Pe),f("__disposeResources",ge),f("__rewriteRelativeImportExtension",Oe)})});var je=H((ye)=>{Object.defineProperty(ye,"__esModule",{value:!0});ye.checkUrl=void 0;var We=L(),Ve="169.254.170.2",qe="169.254.170.23",Le="[fd00:ec2::23]",Ae=(f,j)=>{if(f.protocol==="https:")return;if(f.hostname===Ve||f.hostname===qe||f.hostname===Le)return;if(f.hostname.includes("[")){if(f.hostname==="[::1]"||f.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(f.hostname==="localhost")return;let d=f.hostname.split("."),g=(O)=>{let e=parseInt(O,10);return 0<=e&&e<=255};if(d[0]==="127"&&g(d[1])&&g(d[2])&&g(d[3])&&d.length===4)return}throw new We.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
2
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
3
+ - ECS container host 169.254.170.2
4
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:j})};ye.checkUrl=Ae});var Ce=H((B)=>{Object.defineProperty(B,"__esModule",{value:!0});B.resolveHttpHandlerRuntimeConfig=B.getHttpHandlerExtensionConfiguration=B.isValidHostname=B.HttpResponse=B.HttpRequest=B.Fields=B.Field=void 0;var F=Se();Object.defineProperty(B,"Field",{enumerable:!0,get:function(){return F.Field}});Object.defineProperty(B,"Fields",{enumerable:!0,get:function(){return F.Fields}});Object.defineProperty(B,"HttpRequest",{enumerable:!0,get:function(){return F.HttpRequest}});Object.defineProperty(B,"HttpResponse",{enumerable:!0,get:function(){return F.HttpResponse}});Object.defineProperty(B,"isValidHostname",{enumerable:!0,get:function(){return F.isValidHostname}});Object.defineProperty(B,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return F.getHttpHandlerExtensionConfiguration}});Object.defineProperty(B,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return F.resolveHttpHandlerRuntimeConfig}})});var Te=H((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.createAggregatedClient=b.convertMap=b._json=b.ServiceException=b.SENSITIVE_STRING=b.NoOpLogger=b.Command=b.Client=b.strictParseShort=b.strictParseLong=b.strictParseInt32=b.strictParseInt=b.strictParseFloat32=b.strictParseFloat=b.strictParseDouble=b.strictParseByte=b.splitHeader=b.splitEvery=b.quoteHeader=b.parseRfc7231DateTime=b.parseRfc3339DateTimeWithOffset=b.parseRfc3339DateTime=b.parseEpochTimestamp=b.parseBoolean=b.nv=b.logger=b.limitedParseFloat32=b.limitedParseFloat=b.limitedParseDouble=b.handleFloat=b.generateIdempotencyToken=b.expectUnion=b.expectString=b.expectShort=b.expectObject=b.expectNumber=b.expectNonNull=b.expectLong=b.expectInt32=b.expectInt=b.expectFloat32=b.expectByte=b.expectBoolean=b.dateToUtcString=b.copyDocumentWithTransform=b._parseRfc7231DateTime=b._parseRfc3339DateTimeWithOffset=b._parseEpochTimestamp=b.NumericValue=b.LazyJsonString=void 0;b.resolvedPath=b.extendedEncodeURIComponent=b.collectBody=b.withBaseException=b.throwDefaultError=b.take=b.serializeFloat=b.serializeDateTime=b.resolveDefaultRuntimeConfig=b.map=b.loadConfigsForDefaultMode=b.isSerializableHeaderValue=b.getValueFromTextNode=b.getDefaultExtensionConfiguration=b.getDefaultClientConfiguration=b.getArrayIfSingleItem=b.emitWarningIfUnsupportedVersion=b.decorateServiceException=void 0;var m=he();Object.defineProperty(b,"LazyJsonString",{enumerable:!0,get:function(){return m.LazyJsonString}});Object.defineProperty(b,"NumericValue",{enumerable:!0,get:function(){return m.NumericValue}});Object.defineProperty(b,"_parseEpochTimestamp",{enumerable:!0,get:function(){return m._parseEpochTimestamp}});Object.defineProperty(b,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return m._parseRfc3339DateTimeWithOffset}});Object.defineProperty(b,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return m._parseRfc7231DateTime}});Object.defineProperty(b,"copyDocumentWithTransform",{enumerable:!0,get:function(){return m.copyDocumentWithTransform}});Object.defineProperty(b,"dateToUtcString",{enumerable:!0,get:function(){return m.dateToUtcString}});Object.defineProperty(b,"expectBoolean",{enumerable:!0,get:function(){return m.expectBoolean}});Object.defineProperty(b,"expectByte",{enumerable:!0,get:function(){return m.expectByte}});Object.defineProperty(b,"expectFloat32",{enumerable:!0,get:function(){return m.expectFloat32}});Object.defineProperty(b,"expectInt",{enumerable:!0,get:function(){return m.expectInt}});Object.defineProperty(b,"expectInt32",{enumerable:!0,get:function(){return m.expectInt32}});Object.defineProperty(b,"expectLong",{enumerable:!0,get:function(){return m.expectLong}});Object.defineProperty(b,"expectNonNull",{enumerable:!0,get:function(){return m.expectNonNull}});Object.defineProperty(b,"expectNumber",{enumerable:!0,get:function(){return m.expectNumber}});Object.defineProperty(b,"expectObject",{enumerable:!0,get:function(){return m.expectObject}});Object.defineProperty(b,"expectShort",{enumerable:!0,get:function(){return m.expectShort}});Object.defineProperty(b,"expectString",{enumerable:!0,get:function(){return m.expectString}});Object.defineProperty(b,"expectUnion",{enumerable:!0,get:function(){return m.expectUnion}});Object.defineProperty(b,"generateIdempotencyToken",{enumerable:!0,get:function(){return m.generateIdempotencyToken}});Object.defineProperty(b,"handleFloat",{enumerable:!0,get:function(){return m.handleFloat}});Object.defineProperty(b,"limitedParseDouble",{enumerable:!0,get:function(){return m.limitedParseDouble}});Object.defineProperty(b,"limitedParseFloat",{enumerable:!0,get:function(){return m.limitedParseFloat}});Object.defineProperty(b,"limitedParseFloat32",{enumerable:!0,get:function(){return m.limitedParseFloat32}});Object.defineProperty(b,"logger",{enumerable:!0,get:function(){return m.logger}});Object.defineProperty(b,"nv",{enumerable:!0,get:function(){return m.nv}});Object.defineProperty(b,"parseBoolean",{enumerable:!0,get:function(){return m.parseBoolean}});Object.defineProperty(b,"parseEpochTimestamp",{enumerable:!0,get:function(){return m.parseEpochTimestamp}});Object.defineProperty(b,"parseRfc3339DateTime",{enumerable:!0,get:function(){return m.parseRfc3339DateTime}});Object.defineProperty(b,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return m.parseRfc3339DateTimeWithOffset}});Object.defineProperty(b,"parseRfc7231DateTime",{enumerable:!0,get:function(){return m.parseRfc7231DateTime}});Object.defineProperty(b,"quoteHeader",{enumerable:!0,get:function(){return m.quoteHeader}});Object.defineProperty(b,"splitEvery",{enumerable:!0,get:function(){return m.splitEvery}});Object.defineProperty(b,"splitHeader",{enumerable:!0,get:function(){return m.splitHeader}});Object.defineProperty(b,"strictParseByte",{enumerable:!0,get:function(){return m.strictParseByte}});Object.defineProperty(b,"strictParseDouble",{enumerable:!0,get:function(){return m.strictParseDouble}});Object.defineProperty(b,"strictParseFloat",{enumerable:!0,get:function(){return m.strictParseFloat}});Object.defineProperty(b,"strictParseFloat32",{enumerable:!0,get:function(){return m.strictParseFloat32}});Object.defineProperty(b,"strictParseInt",{enumerable:!0,get:function(){return m.strictParseInt}});Object.defineProperty(b,"strictParseInt32",{enumerable:!0,get:function(){return m.strictParseInt32}});Object.defineProperty(b,"strictParseLong",{enumerable:!0,get:function(){return m.strictParseLong}});Object.defineProperty(b,"strictParseShort",{enumerable:!0,get:function(){return m.strictParseShort}});var y=Ke();Object.defineProperty(b,"Client",{enumerable:!0,get:function(){return y.Client}});Object.defineProperty(b,"Command",{enumerable:!0,get:function(){return y.Command}});Object.defineProperty(b,"NoOpLogger",{enumerable:!0,get:function(){return y.NoOpLogger}});Object.defineProperty(b,"SENSITIVE_STRING",{enumerable:!0,get:function(){return y.SENSITIVE_STRING}});Object.defineProperty(b,"ServiceException",{enumerable:!0,get:function(){return y.ServiceException}});Object.defineProperty(b,"_json",{enumerable:!0,get:function(){return y._json}});Object.defineProperty(b,"convertMap",{enumerable:!0,get:function(){return y.convertMap}});Object.defineProperty(b,"createAggregatedClient",{enumerable:!0,get:function(){return y.createAggregatedClient}});Object.defineProperty(b,"decorateServiceException",{enumerable:!0,get:function(){return y.decorateServiceException}});Object.defineProperty(b,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return y.emitWarningIfUnsupportedVersion}});Object.defineProperty(b,"getArrayIfSingleItem",{enumerable:!0,get:function(){return y.getArrayIfSingleItem}});Object.defineProperty(b,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return y.getDefaultClientConfiguration}});Object.defineProperty(b,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return y.getDefaultExtensionConfiguration}});Object.defineProperty(b,"getValueFromTextNode",{enumerable:!0,get:function(){return y.getValueFromTextNode}});Object.defineProperty(b,"isSerializableHeaderValue",{enumerable:!0,get:function(){return y.isSerializableHeaderValue}});Object.defineProperty(b,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return y.loadConfigsForDefaultMode}});Object.defineProperty(b,"map",{enumerable:!0,get:function(){return y.map}});Object.defineProperty(b,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return y.resolveDefaultRuntimeConfig}});Object.defineProperty(b,"serializeDateTime",{enumerable:!0,get:function(){return y.serializeDateTime}});Object.defineProperty(b,"serializeFloat",{enumerable:!0,get:function(){return y.serializeFloat}});Object.defineProperty(b,"take",{enumerable:!0,get:function(){return y.take}});Object.defineProperty(b,"throwDefaultError",{enumerable:!0,get:function(){return y.throwDefaultError}});Object.defineProperty(b,"withBaseException",{enumerable:!0,get:function(){return y.withBaseException}});var A=Se();Object.defineProperty(b,"collectBody",{enumerable:!0,get:function(){return A.collectBody}});Object.defineProperty(b,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return A.extendedEncodeURIComponent}});Object.defineProperty(b,"resolvedPath",{enumerable:!0,get:function(){return A.resolvedPath}})});var oe=H((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.isBlob=o.isReadableStream=o.splitStream=o.sdkStreamMixin=o.headStream=o.getAwsChunkedEncodingStream=o.createBufferedReadable=o.createChecksumStream=o.ChecksumStream=o.Uint8ArrayBlobAdapter=void 0;var R=he();Object.defineProperty(o,"Uint8ArrayBlobAdapter",{enumerable:!0,get:function(){return R.Uint8ArrayBlobAdapter}});Object.defineProperty(o,"ChecksumStream",{enumerable:!0,get:function(){return R.ChecksumStream}});Object.defineProperty(o,"createChecksumStream",{enumerable:!0,get:function(){return R.createChecksumStream}});Object.defineProperty(o,"createBufferedReadable",{enumerable:!0,get:function(){return R.createBufferedReadable}});Object.defineProperty(o,"getAwsChunkedEncodingStream",{enumerable:!0,get:function(){return R.getAwsChunkedEncodingStream}});Object.defineProperty(o,"headStream",{enumerable:!0,get:function(){return R.headStream}});Object.defineProperty(o,"sdkStreamMixin",{enumerable:!0,get:function(){return R.sdkStreamMixin}});Object.defineProperty(o,"splitStream",{enumerable:!0,get:function(){return R.splitStream}});Object.defineProperty(o,"isReadableStream",{enumerable:!0,get:function(){return R.isReadableStream}});Object.defineProperty(o,"isBlob",{enumerable:!0,get:function(){return R.isBlob}})});var Re=H((Ee)=>{Object.defineProperty(Ee,"__esModule",{value:!0});Ee.createGetRequest=Ze;Ee.getCredentials=ze;var w=L(),Qe=Ce(),Xe=Te(),Ye=oe();function Ze(f){return new Qe.HttpRequest({protocol:f.protocol,hostname:f.hostname,port:Number(f.port),path:f.pathname,query:Array.from(f.searchParams.entries()).reduce((j,[d,g])=>{return j[d]=g,j},{}),fragment:f.hash})}async function ze(f,j){let g=await(0,Ye.sdkStreamMixin)(f.body).transformToString();if(f.statusCode===200){let O=JSON.parse(g);if(typeof O.AccessKeyId!=="string"||typeof O.SecretAccessKey!=="string"||typeof O.Token!=="string"||typeof O.Expiration!=="string")throw new w.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:j});return{accessKeyId:O.AccessKeyId,secretAccessKey:O.SecretAccessKey,sessionToken:O.Token,expiration:(0,Xe.parseRfc3339DateTime)(O.Expiration)}}if(f.statusCode>=400&&f.statusCode<500){let O={};try{O=JSON.parse(g)}catch(e){}throw Object.assign(new w.CredentialsProviderError(`Server responded with status: ${f.statusCode}`,{logger:j}),{Code:O.Code,Message:O.Message})}throw new w.CredentialsProviderError(`Server responded with status: ${f.statusCode}`,{logger:j})}});var Be=H((De)=>{Object.defineProperty(De,"__esModule",{value:!0});De.retryWrapper=void 0;var ke=(f,j,d)=>{return async()=>{for(let g=0;g<j;++g)try{return await f()}catch(O){await new Promise((e)=>setTimeout(e,d))}return await f()}};De.retryWrapper=ke});var Ue=H((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.fromHttp=void 0;var et=le(),tt=ve(),nt=_e(),Ne=L(),rt=et.__importDefault(xe("node:fs/promises")),ut=je(),Fe=Re(),ct=Be(),ft="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",bt="http://169.254.170.2",it="AWS_CONTAINER_CREDENTIALS_FULL_URI",at="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",mt="AWS_CONTAINER_AUTHORIZATION_TOKEN",Pt=(f={})=>{f.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let j,d=f.awsContainerCredentialsRelativeUri??process.env[ft],g=f.awsContainerCredentialsFullUri??process.env[it],O=f.awsContainerAuthorizationToken??process.env[mt],e=f.awsContainerAuthorizationTokenFile??process.env[at],t=f.logger?.constructor?.name==="NoOpLogger"||!f.logger?.warn?console.warn:f.logger.warn.bind(f.logger);if(d&&g)t("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),t("awsContainerCredentialsFullUri will take precedence.");if(O&&e)t("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),t("awsContainerAuthorizationToken will take precedence.");if(g)j=g;else if(d)j=`${bt}${d}`;else throw new Ne.CredentialsProviderError(`No HTTP credential provider host provided.
5
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:f.logger});let n=new URL(j);(0,ut.checkUrl)(n,f.logger);let r=nt.NodeHttpHandler.create({requestTimeout:f.timeout??1000,connectionTimeout:f.timeout??1000});return(0,ct.retryWrapper)(async()=>{let u=(0,Fe.createGetRequest)(n);if(O)u.headers.Authorization=O;else if(e)u.headers.Authorization=(await rt.default.readFile(e)).toString();try{let c=await r.handle(u);return(0,Fe.getCredentials)(c.response).then((i)=>(0,tt.setCredentialFeature)(i,"CREDENTIALS_HTTP","z"))}catch(c){throw new Ne.CredentialsProviderError(String(c),{logger:f.logger})}},f.maxRetries??3,f.timeout??1000)};Ie.fromHttp=Pt});var lt=H((K)=>{Object.defineProperty(K,"__esModule",{value:!0});K.fromHttp=void 0;var gt=Ue();Object.defineProperty(K,"fromHttp",{enumerable:!0,get:function(){return gt.fromHttp}})});export default lt();
@@ -0,0 +1 @@
1
+ import{U7 as P}from"./cli-0.7.2-waas8a1p.mjs";import{Upa as p,Vpa as w}from"./cli-0.7.2-hbmczrch.mjs";import"./cli-0.7.2-q88h44qv.mjs";import{gqa as u,hqa as a}from"./cli-0.7.2-5tacs42k.mjs";var d,t,f,E,_,v=(r,e,s)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let i=new Date;if(new Date(e.Expiration)<i)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let o=e.AccountId;if(!o&&s?.[r]?.aws_account_id)o=s[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...o&&{accountId:o}};return _.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n},x=async(r,e,s)=>{let o=e[r];if(e[r]){let n=o.credential_process;if(n!==void 0){let i=E.promisify(d.externalDataInterceptor?.getTokenRecord?.().exec??f.exec);try{let{stdout:c}=await i(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return v(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:s})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:s})},h=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let s=await d.parseKnownFiles(r);return x(d.getProfileName({profile:r.profile??e?.profile}),s,r.logger)},y;var S=u(()=>{d=P(),t=w(),f=a("node:child_process"),E=a("node:util"),_=p();y=h});S();export{y as fromProcess};export default {get fromProcess(){return y}};
@@ -0,0 +1 @@
1
+ import{Apa as j,Bpa as k,Cpa as l,Dpa as m,Epa as n,Fpa as o,Gpa as p,Hpa as q,Ipa as r,Jpa as s,rpa as a,spa as b,tpa as c,upa as d,vpa as e,wpa as f,xpa as g,ypa as h,zpa as i}from"./cli-0.7.2-bmz47g1t.mjs";import"./cli-0.7.2-g3k7m45h.mjs";import"./cli-0.7.2-atsd6734.mjs";import"./cli-0.7.2-5tacs42k.mjs";s();export{l as toFormData,k as spread,q as mergeConfig,e as isCancel,j as isAxiosError,p as getAdapter,o as formToJSON,a as default,r as create,h as all,g as VERSION,n as HttpStatusCode,d as CanceledError,f as CancelToken,i as Cancel,m as AxiosHeaders,c as AxiosError,b as Axios};
@@ -0,0 +1 @@
1
+ import{A7 as _e,B7 as po,C7 as lo,D7 as ge,E7 as h,F7 as vr,G7 as Vt,H7 as Wt,J7 as Yt,K7 as Jt,L7 as Kt,M7 as Xt,N7 as Ct,O7 as ft,P7 as Ft,Q7 as $t,R7 as uo,S7 as Oo,s7 as w,t7 as so,u7 as no,v7 as co,w7 as ce,x7 as Rt,y7 as Rr,z7 as ao}from"./cli-0.7.2-ydcqkbay.mjs";import{T7 as Ye}from"./cli-0.7.2-p42bcqhs.mjs";import{Tpa as Tt,Upa as Bt}from"./cli-0.7.2-hbmczrch.mjs";import{Wpa as Lt}from"./cli-0.7.2-vgq7ce31.mjs";import{Ypa as xe}from"./cli-0.7.2-q88h44qv.mjs";import{eqa as v}from"./cli-0.7.2-5tacs42k.mjs";var U=v((re)=>{Object.defineProperty(re,"__esModule",{value:!0});re.resolveHttpAuthSchemeConfig=re.defaultSSOOIDCHttpAuthSchemeProvider=re.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var Er=w(),j=vr(),Sr=async(e,r,i)=>{return{operation:(0,j.getSmithyContext)(r).operation,region:await(0,j.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};re.defaultSSOOIDCHttpAuthSchemeParametersProvider=Sr;function Ir(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,i)=>({signingProperties:{config:r,context:i}})}}function Pr(e){return{schemeId:"smithy.api#noAuth"}}var xr=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(Pr(e));break}default:r.push(Ir(e))}return r};re.defaultSSOOIDCHttpAuthSchemeProvider=xr;var Dr=(e)=>{let r=(0,Er.resolveAwsSdkSigV4Config)(e);return Object.assign(r,{authSchemePreference:(0,j.normalizeProvider)(e.authSchemePreference??[])})};re.resolveHttpAuthSchemeConfig=Dr});var le=v((ae)=>{Object.defineProperty(ae,"__esModule",{value:!0});ae.bdd=void 0;var yr=ce(),D="ref",S=-1,y=!0,oe="isSet",de="PartitionResult",N="booleanEquals",M="getAttr",ie={[D]:"Endpoint"},A={[D]:de},x={},se=[{[D]:"Region"}],ne={conditions:[[oe,[ie]],[oe,se],["aws.partition",se,de],[N,[{[D]:"UseFIPS"},y]],[N,[{[D]:"UseDualStack"},y]],[N,[{fn:M,argv:[A,"supportsDualStack"]},y]],[N,[{fn:M,argv:[A,"supportsFIPS"]},y]],["stringEquals",[{fn:M,argv:[A,"name"]},"aws-us-gov"]]],results:[[S],[S,"Invalid Configuration: FIPS and custom endpoint are not supported"],[S,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ie,x],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",x],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",x],[S,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",x],[S,"Invalid Configuration: Missing Region"]]},Nr=2,n=1e8,hr=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]);ae.bdd=yr.BinaryDecisionDiagram.from(hr,Nr,ne.conditions,ne.results)});var ve=v((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.defaultEndpointResolver=void 0;var fr=Rr(),G=ce(),Fr=le(),$r=new G.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),jr=(e,r={})=>{return $r.get(e,()=>(0,G.decideEndpoint)(Fr.bdd,{endpointParams:e,logger:r.logger}))};ue.defaultEndpointResolver=jr;G.customEndpointFunctions.aws=fr.awsEndpointFunctions});var R=v((z)=>{Object.defineProperty(z,"__esModule",{value:!0});z.SSOOIDCServiceException=z.__ServiceException=void 0;var Ee=h();Object.defineProperty(z,"__ServiceException",{enumerable:!0,get:function(){return Ee.ServiceException}});class m extends Ee.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,m.prototype)}}z.SSOOIDCServiceException=m});var Q=v((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.UnsupportedGrantTypeException=Ie.UnauthorizedClientException=Ie.SlowDownException=Ie.InvalidScopeException=Ie.InvalidRequestException=Ie.InvalidGrantException=Ie.InvalidClientException=Ie.InternalServerException=Ie.ExpiredTokenException=Ie.AuthorizationPendingException=Ie.AccessDeniedException=void 0;var a=R();class H extends a.SSOOIDCServiceException{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.AccessDeniedException=H;class L extends a.SSOOIDCServiceException{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.AuthorizationPendingException=L;class T extends a.SSOOIDCServiceException{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.ExpiredTokenException=T;class B extends a.SSOOIDCServiceException{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InternalServerException=B;class V extends a.SSOOIDCServiceException{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidClientException=V;class W extends a.SSOOIDCServiceException{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidGrantException=W;class Y extends a.SSOOIDCServiceException{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.InvalidRequestException=Y;class J extends a.SSOOIDCServiceException{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidScopeException=J;class K extends a.SSOOIDCServiceException{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.SlowDownException=K;class X extends a.SSOOIDCServiceException{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnauthorizedClientException=X;class C extends a.SSOOIDCServiceException{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnsupportedGrantTypeException=C});var Z=v((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.CreateToken$=Re.CreateTokenResponse$=Re.CreateTokenRequest$=Re.errorTypeRegistries=Re.UnsupportedGrantTypeException$=Re.UnauthorizedClientException$=Re.SlowDownException$=Re.InvalidScopeException$=Re.InvalidRequestException$=Re.InvalidGrantException$=Re.InvalidClientException$=Re.InternalServerException$=Re.ExpiredTokenException$=Re.AuthorizationPendingException$=Re.AccessDeniedException$=Re.SSOOIDCServiceException$=void 0;var Br="AccessDeniedException",Vr="AuthorizationPendingException",Wr="AccessToken",Yr="ClientSecret",Jr="CreateToken",Kr="CreateTokenRequest",Xr="CreateTokenResponse",Cr="CodeVerifier",Qr="ExpiredTokenException",Zr="InvalidClientException",kr="InvalidGrantException",_r="InvalidRequestException",gr="InternalServerException",et="InvalidScopeException",rt="IdToken",tt="RefreshToken",ot="SlowDownException",it="UnauthorizedClientException",st="UnsupportedGrantTypeException",nt="accessToken",O="client",ct="clientId",dt="clientSecret",at="codeVerifier",pt="code",lt="deviceCode",t="error",ut="expiresIn",p="error_description",Ot="grantType",vt="http",l="httpError",Et="idToken",De="reason",be="refreshToken",St="redirectUri",qe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",It="scope",Pt="server",xt="tokenType",o="com.amazonaws.ssooidc",ye=xe(),u=Q(),Dt=R(),Ne=ye.TypeRegistry.for(qe);Re.SSOOIDCServiceException$=[-3,qe,"SSOOIDCServiceException",0,[],[]];Ne.registerError(Re.SSOOIDCServiceException$,Dt.SSOOIDCServiceException);var c=ye.TypeRegistry.for(o);Re.AccessDeniedException$=[-3,o,Br,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.AccessDeniedException$,u.AccessDeniedException);Re.AuthorizationPendingException$=[-3,o,Vr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.AuthorizationPendingException$,u.AuthorizationPendingException);Re.ExpiredTokenException$=[-3,o,Qr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.ExpiredTokenException$,u.ExpiredTokenException);Re.InternalServerException$=[-3,o,gr,{[t]:Pt,[l]:500},[t,p],[0,0]];c.registerError(Re.InternalServerException$,u.InternalServerException);Re.InvalidClientException$=[-3,o,Zr,{[t]:O,[l]:401},[t,p],[0,0]];c.registerError(Re.InvalidClientException$,u.InvalidClientException);Re.InvalidGrantException$=[-3,o,kr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidGrantException$,u.InvalidGrantException);Re.InvalidRequestException$=[-3,o,_r,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.InvalidRequestException$,u.InvalidRequestException);Re.InvalidScopeException$=[-3,o,et,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidScopeException$,u.InvalidScopeException);Re.SlowDownException$=[-3,o,ot,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.SlowDownException$,u.SlowDownException);Re.UnauthorizedClientException$=[-3,o,it,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnauthorizedClientException$,u.UnauthorizedClientException);Re.UnsupportedGrantTypeException$=[-3,o,st,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnsupportedGrantTypeException$,u.UnsupportedGrantTypeException);Re.errorTypeRegistries=[Ne,c];var bt=[0,o,Wr,8,0],qt=[0,o,Yr,8,0],yt=[0,o,Cr,8,0],Nt=[0,o,rt,8,0],he=[0,o,tt,8,0];Re.CreateTokenRequest$=[3,o,Kr,0,[ct,dt,Ot,lt,pt,be,It,St,at],[0,[()=>qt,0],0,0,0,[()=>he,0],64,0,[()=>yt,0]],3];Re.CreateTokenResponse$=[3,o,Xr,0,[nt,xt,ut,be,Et],[[()=>bt,0],0,1,[()=>he,0],[()=>Nt,0]]];Re.CreateToken$=[9,o,Jr,{[vt]:["POST","/token",200]},()=>Re.CreateTokenRequest$,()=>Re.CreateTokenResponse$]});var Xe=v((Je)=>{Object.defineProperty(Je,"__esModule",{value:!0});Je.getRuntimeConfig=void 0;var jt=w(),wt=Ft(),Ut=Ye(),Mt=h(),At=Rt(),Ve=$t(),We=ft(),Gt=U(),mt=ve(),zt=Z(),Ht=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ve.fromBase64,base64Encoder:e?.base64Encoder??Ve.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??mt.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Gt.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new jt.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ut.NoAuthSigner}],logger:e?.logger??new Mt.NoOpLogger,protocol:e?.protocol??wt.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:zt.errorTypeRegistries,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??At.parseUrl,utf8Decoder:e?.utf8Decoder??We.fromUtf8,utf8Encoder:e?.utf8Encoder??We.toUtf8}};Je.getRuntimeConfig=Ht});var tr=v((er)=>{Object.defineProperty(er,"__esModule",{value:!0});er.getRuntimeConfig=void 0;var Qt=Vt(),Zt=Qt.__importDefault(Wt()),kt=Bt(),_t=w(),Ce=Yt(),f=_e(),gt=Jt(),Qe=ge(),I=Kt(),Ze=Lt(),ke=h(),eo=Xt(),ro=Ct(),to=Tt(),oo=Xe(),io=(e)=>{(0,ke.emitWarningIfUnsupportedVersion)(process.version);let r=(0,ro.resolveDefaultsModeConfig)(e),i=()=>r().then(ke.loadConfigsForDefaultMode),d=(0,oo.getRuntimeConfig)(e);(0,kt.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:r,authSchemePreference:e?.authSchemePreference??(0,I.loadConfig)(_t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??eo.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Ce.createDefaultUserAgentProvider)({serviceId:d.serviceId,clientVersion:Zt.default.version}),maxAttempts:e?.maxAttempts??(0,I.loadConfig)(Qe.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,I.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:Ze.NodeHttpHandler.create(e?.requestHandler??i),retryMode:e?.retryMode??(0,I.loadConfig)({...Qe.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||to.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??gt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ze.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,I.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,I.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,I.loadConfig)(Ce.NODE_APP_ID_CONFIG_OPTIONS,s)}};er.getRuntimeConfig=io});var zo=v((E)=>{var or=so(),vo=no(),Eo=co(),ir=ao(),So=_e(),k=Ye(),Io=xe(),Po=po(),ar=lo(),sr=ge(),P=h(),nr=U(),xo=tr(),cr=uo(),dr=Oo(),b=Z(),F=Q(),Do=R(),bo=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},qo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},yo=(e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:i,credentials:d}=e;return{setHttpAuthScheme(s){let q=r.findIndex(($)=>$.schemeId===s.schemeId);if(q===-1)r.push(s);else r.splice(q,1,s)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(s){i=s},httpAuthSchemeProvider(){return i},setCredentials(s){d=s},credentials(){return d}}},No=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ho=(e,r)=>{let i=Object.assign(cr.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),dr.getHttpHandlerExtensionConfiguration(e),yo(e));return r.forEach((d)=>d.configure(i)),Object.assign(e,cr.resolveAwsRegionExtensionConfiguration(i),P.resolveDefaultRuntimeConfig(i),dr.resolveHttpHandlerRuntimeConfig(i),No(i))};class _ extends P.Client{config;constructor(...[e]){let r=xo.getRuntimeConfig(e||{});super(r);this.initConfig=r;let i=bo(r),d=ir.resolveUserAgentConfig(i),s=sr.resolveRetryConfig(d),q=So.resolveRegionConfig(s),$=or.resolveHostHeaderConfig(q),pr=ar.resolveEndpointConfig($),lr=nr.resolveHttpAuthSchemeConfig(pr),ur=ho(lr,e?.extensions||[]);this.config=ur,this.middlewareStack.use(Io.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(ir.getUserAgentPlugin(this.config)),this.middlewareStack.use(sr.getRetryPlugin(this.config)),this.middlewareStack.use(Po.getContentLengthPlugin(this.config)),this.middlewareStack.use(or.getHostHeaderPlugin(this.config)),this.middlewareStack.use(vo.getLoggerPlugin(this.config)),this.middlewareStack.use(Eo.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(k.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:nr.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Or)=>new k.DefaultIdentityProviderConfig({"aws.auth#sigv4":Or.credentials})})),this.middlewareStack.use(k.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends P.Command.classBuilder().ep(qo).m(function(e,r,i,d){return[ar.getEndpointPlugin(i,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(b.CreateToken$).build(){}var Ro={CreateTokenCommand:g};class ee extends _{}P.createAggregatedClient(Ro,ee);var fo={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Fo={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};E.$Command=P.Command;E.__Client=P.Client;E.SSOOIDCServiceException=Do.SSOOIDCServiceException;E.AccessDeniedExceptionReason=fo;E.CreateTokenCommand=g;E.InvalidRequestExceptionReason=Fo;E.SSOOIDC=ee;E.SSOOIDCClient=_;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=b[e]});Object.prototype.hasOwnProperty.call(F,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:F.__proto__});Object.keys(F).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=F[e]})});export default zo();