@claudiolabs/claudin 1.1.39 → 1.1.40

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 (804) hide show
  1. package/dist/chunks/App-1.1.40-eb4xn79h.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.40-s12f36rk.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.40-08yczhe8.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.40-xw7040fw.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.40-ejq4fmn7.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.40-n8xq1ghm.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.40-2ykfyp2y.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.40-5q8gn92n.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.40-qbvaevt6.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.40-tbt91h1c.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.40-bx3xnmmr.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.40-kg7st12w.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.40-d7hcx55h.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.40-mwq5eg90.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.40-z85fnyyw.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.40-h9ccg2t4.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.40-0ghfz7ak.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.40-39n922s2.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.40-shkd3dr0.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.40-5e4necay.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.40-kfzg6nqe.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.40-x1k41dnq.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.40-3r59c8nw.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.40-8ywrwcaw.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.40-4etvgznk.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.40-0jgkahp3.mjs +1 -0
  27. package/dist/chunks/agents-1.1.40-aa2gqrkq.mjs +110 -0
  28. package/dist/chunks/agents-1.1.40-v0vqxazw.mjs +3 -0
  29. package/dist/chunks/api-1.1.40-dwsbnjc3.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.40-y0e6w0q6.mjs +1 -0
  31. package/dist/chunks/auth-1.1.40-43w4cqf5.mjs +1 -0
  32. package/dist/chunks/auth-1.1.40-jhdwprg7.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.40-gy1w9r7y.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.40-8jjzstby.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.40-q7a2hm0c.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.40-pnakm6fp.mjs +1 -0
  37. package/dist/chunks/branch-1.1.40-1aq0shtd.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.40-jngt6dkf.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.40-6zjr3dgb.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.40-5ra4n5cw.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.40-q22hv9eb.mjs +64 -0
  42. package/dist/chunks/bridgePointer-1.1.40-8nvycyyd.mjs +1 -0
  43. package/dist/chunks/btw-1.1.40-vqdnk39f.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.40-wkym7yqv.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.40-5ac1ane9.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.40-dc4nspga.mjs +4 -0
  47. package/dist/chunks/caches-1.1.40-9ej2vasg.mjs +1 -0
  48. package/dist/chunks/cd-1.1.40-d5jhbgzp.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.40-2wmbzv9t.mjs +1 -0
  50. package/dist/chunks/claudemd-1.1.40-5bw0jeka.mjs +1 -0
  51. package/dist/chunks/clear-1.1.40-3gpjnsv0.mjs +1 -0
  52. package/dist/chunks/clearTerminal-1.1.40-ny8kqt7d.mjs +1 -0
  53. package/dist/chunks/cli-1.1.40-0507kdps.mjs +2 -0
  54. package/dist/chunks/cli-1.1.40-05q41dcq.mjs +63 -0
  55. package/dist/chunks/cli-1.1.40-0a9nnbar.mjs +2 -0
  56. package/dist/chunks/cli-1.1.40-0hb84ejd.mjs +2 -0
  57. package/dist/chunks/cli-1.1.40-0p3na6a1.mjs +2 -0
  58. package/dist/chunks/cli-1.1.40-0vdhw7mm.mjs +3 -0
  59. package/dist/chunks/cli-1.1.40-0z5szwzt.mjs +2 -0
  60. package/dist/chunks/cli-1.1.40-13ccwz6g.mjs +2 -0
  61. package/dist/chunks/cli-1.1.40-13e9gynq.mjs +16 -0
  62. package/dist/chunks/cli-1.1.40-14x4xtjy.mjs +2 -0
  63. package/dist/chunks/cli-1.1.40-1a4pn4ww.mjs +2 -0
  64. package/dist/chunks/cli-1.1.40-1pe6rcmh.mjs +2 -0
  65. package/dist/chunks/cli-1.1.40-1r9pwsgr.mjs +2 -0
  66. package/dist/chunks/cli-1.1.40-1z293953.mjs +2 -0
  67. package/dist/chunks/cli-1.1.40-202jxgqx.mjs +2 -0
  68. package/dist/chunks/cli-1.1.40-25wt0y2a.mjs +2 -0
  69. package/dist/chunks/cli-1.1.40-2e8t1hzy.mjs +2 -0
  70. package/dist/chunks/cli-1.1.40-2j20ecjm.mjs +11 -0
  71. package/dist/chunks/cli-1.1.40-2ndseghs.mjs +2 -0
  72. package/dist/chunks/cli-1.1.40-2ted9r2b.mjs +2 -0
  73. package/dist/chunks/cli-1.1.40-2z1ppytd.mjs +2 -0
  74. package/dist/chunks/cli-1.1.40-390v6b8q.mjs +2 -0
  75. package/dist/chunks/cli-1.1.40-3e58725b.mjs +3 -0
  76. package/dist/chunks/cli-1.1.40-3hqepe0h.mjs +34 -0
  77. package/dist/chunks/cli-1.1.40-3m4n20em.mjs +2 -0
  78. package/dist/chunks/cli-1.1.40-4a1p6q3b.mjs +2 -0
  79. package/dist/chunks/cli-1.1.40-4d4b7cw2.mjs +2 -0
  80. package/dist/chunks/cli-1.1.40-4d6gye21.mjs +2 -0
  81. package/dist/chunks/cli-1.1.40-586jg9as.mjs +4 -0
  82. package/dist/chunks/cli-1.1.40-5m7tntdx.mjs +2 -0
  83. package/dist/chunks/cli-1.1.40-5szxfmd7.mjs +2 -0
  84. package/dist/chunks/cli-1.1.40-5x38x6mx.mjs +2 -0
  85. package/dist/chunks/cli-1.1.40-66c2dzxw.mjs +8 -0
  86. package/dist/chunks/cli-1.1.40-6bv738vq.mjs +2 -0
  87. package/dist/chunks/cli-1.1.40-6evbnv5e.mjs +4 -0
  88. package/dist/chunks/cli-1.1.40-6gc7p5by.mjs +2 -0
  89. package/dist/chunks/cli-1.1.40-6v8d2hq7.mjs +18 -0
  90. package/dist/chunks/cli-1.1.40-718chdj8.mjs +2 -0
  91. package/dist/chunks/cli-1.1.40-75jka1rb.mjs +2 -0
  92. package/dist/chunks/cli-1.1.40-77d85srw.mjs +2 -0
  93. package/dist/chunks/cli-1.1.40-7mtszf6q.mjs +2 -0
  94. package/dist/chunks/cli-1.1.40-7p7pbsj7.mjs +3 -0
  95. package/dist/chunks/cli-1.1.40-7sp5dtqz.mjs +2 -0
  96. package/dist/chunks/cli-1.1.40-7xegymwp.mjs +3 -0
  97. package/dist/chunks/cli-1.1.40-88vceqkj.mjs +6 -0
  98. package/dist/chunks/cli-1.1.40-8dzrhmwv.mjs +2 -0
  99. package/dist/chunks/cli-1.1.40-8j3wdrn6.mjs +2 -0
  100. package/dist/chunks/cli-1.1.40-8jkb2pk8.mjs +3 -0
  101. package/dist/chunks/cli-1.1.40-8tkx8d1m.mjs +50 -0
  102. package/dist/chunks/cli-1.1.40-8x5yey3y.mjs +20 -0
  103. package/dist/chunks/cli-1.1.40-8xvdt1py.mjs +2 -0
  104. package/dist/chunks/cli-1.1.40-8zhx2a4q.mjs +2 -0
  105. package/dist/chunks/cli-1.1.40-904bkcqe.mjs +2 -0
  106. package/dist/chunks/cli-1.1.40-9bqkn2xd.mjs +2 -0
  107. package/dist/chunks/cli-1.1.40-9ktcep8b.mjs +2 -0
  108. package/dist/chunks/cli-1.1.40-a8ztxtkt.mjs +2 -0
  109. package/dist/chunks/cli-1.1.40-a94m02ck.mjs +2 -0
  110. package/dist/chunks/cli-1.1.40-a9t3gajj.mjs +2 -0
  111. package/dist/chunks/cli-1.1.40-aaec6y8n.mjs +2 -0
  112. package/dist/chunks/cli-1.1.40-aknkj6rt.mjs +2 -0
  113. package/dist/chunks/cli-1.1.40-asmc6tcr.mjs +2 -0
  114. package/dist/chunks/cli-1.1.40-b37e0jb8.mjs +6 -0
  115. package/dist/chunks/cli-1.1.40-bdt7jzc8.mjs +12 -0
  116. package/dist/chunks/cli-1.1.40-beywxqng.mjs +2 -0
  117. package/dist/chunks/cli-1.1.40-bh7z7ek2.mjs +2 -0
  118. package/dist/chunks/cli-1.1.40-bkxrf16s.mjs +2 -0
  119. package/dist/chunks/cli-1.1.40-cacr2bwg.mjs +135 -0
  120. package/dist/chunks/cli-1.1.40-cjmpr9fj.mjs +6 -0
  121. package/dist/chunks/cli-1.1.40-cjtb9y6z.mjs +2 -0
  122. package/dist/chunks/cli-1.1.40-ckjrbh6b.mjs +60 -0
  123. package/dist/chunks/cli-1.1.40-cr76k9c5.mjs +2 -0
  124. package/dist/chunks/cli-1.1.40-cy642er2.mjs +5 -0
  125. package/dist/chunks/cli-1.1.40-czkgycwy.mjs +2 -0
  126. package/dist/chunks/cli-1.1.40-d94fysd2.mjs +2 -0
  127. package/dist/chunks/cli-1.1.40-dbt9wvcg.mjs +133 -0
  128. package/dist/chunks/cli-1.1.40-dcgb31te.mjs +2 -0
  129. package/dist/chunks/cli-1.1.40-dsncefwy.mjs +2 -0
  130. package/dist/chunks/cli-1.1.40-e6xs2c7n.mjs +2 -0
  131. package/dist/chunks/cli-1.1.40-evm7c2fk.mjs +2 -0
  132. package/dist/chunks/cli-1.1.40-f4906zck.mjs +3 -0
  133. package/dist/chunks/cli-1.1.40-fewramj2.mjs +2 -0
  134. package/dist/chunks/cli-1.1.40-fjbq162e.mjs +24 -0
  135. package/dist/chunks/cli-1.1.40-fn6qzvk2.mjs +17 -0
  136. package/dist/chunks/cli-1.1.40-fqcnge4w.mjs +4 -0
  137. package/dist/chunks/cli-1.1.40-fwxd22jm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.40-g1vnzwpn.mjs +2 -0
  139. package/dist/chunks/cli-1.1.40-gk34ey8n.mjs +24 -0
  140. package/dist/chunks/cli-1.1.40-gv0xj4g0.mjs +2 -0
  141. package/dist/chunks/cli-1.1.40-gym1gqwr.mjs +2 -0
  142. package/dist/chunks/cli-1.1.40-h2t9z1xa.mjs +2 -0
  143. package/dist/chunks/cli-1.1.40-h5r5wmqv.mjs +3 -0
  144. package/dist/chunks/cli-1.1.40-h6v9p00b.mjs +2 -0
  145. package/dist/chunks/cli-1.1.40-h87wvfsr.mjs +24 -0
  146. package/dist/chunks/cli-1.1.40-h9vf8tb3.mjs +2 -0
  147. package/dist/chunks/cli-1.1.40-hdf9qdf0.mjs +2 -0
  148. package/dist/chunks/cli-1.1.40-hf5jtfgb.mjs +2 -0
  149. package/dist/chunks/cli-1.1.40-hfe06y9j.mjs +250 -0
  150. package/dist/chunks/cli-1.1.40-hn5j9ca8.mjs +3 -0
  151. package/dist/chunks/cli-1.1.40-j3mmbyn6.mjs +2 -0
  152. package/dist/chunks/cli-1.1.40-j822dmk0.mjs +2 -0
  153. package/dist/chunks/cli-1.1.40-jc0pv06v.mjs +2 -0
  154. package/dist/chunks/cli-1.1.40-jdhz6qrn.mjs +4 -0
  155. package/dist/chunks/cli-1.1.40-jdyqkhjm.mjs +15 -0
  156. package/dist/chunks/cli-1.1.40-jxt31ej7.mjs +2 -0
  157. package/dist/chunks/cli-1.1.40-k3z93zzh.mjs +2 -0
  158. package/dist/chunks/cli-1.1.40-k9ms1jzt.mjs +2 -0
  159. package/dist/chunks/cli-1.1.40-kafpmwa6.mjs +2 -0
  160. package/dist/chunks/cli-1.1.40-kcs8jb1x.mjs +2 -0
  161. package/dist/chunks/cli-1.1.40-kn1916j7.mjs +2 -0
  162. package/dist/chunks/cli-1.1.40-knp59dzj.mjs +25 -0
  163. package/dist/chunks/cli-1.1.40-ksaxg9vb.mjs +2 -0
  164. package/dist/chunks/cli-1.1.40-kvhhhzww.mjs +2 -0
  165. package/dist/chunks/cli-1.1.40-m0j9t9he.mjs +2 -0
  166. package/dist/chunks/cli-1.1.40-m0km8bx0.mjs +2 -0
  167. package/dist/chunks/cli-1.1.40-m3m3zyes.mjs +2 -0
  168. package/dist/chunks/cli-1.1.40-m4hyy4k1.mjs +2 -0
  169. package/dist/chunks/cli-1.1.40-mtj9edbn.mjs +2 -0
  170. package/dist/chunks/cli-1.1.40-mtqb5txt.mjs +2 -0
  171. package/dist/chunks/cli-1.1.40-n9wve56a.mjs +2 -0
  172. package/dist/chunks/cli-1.1.40-ncvv73yk.mjs +2 -0
  173. package/dist/chunks/cli-1.1.40-nj4dbcsq.mjs +5 -0
  174. package/dist/chunks/cli-1.1.40-nvwa39p8.mjs +2 -0
  175. package/dist/chunks/cli-1.1.40-p0d9ms1q.mjs +2 -0
  176. package/dist/chunks/cli-1.1.40-p1ezfj24.mjs +2 -0
  177. package/dist/chunks/cli-1.1.40-p3jhg1v9.mjs +2 -0
  178. package/dist/chunks/cli-1.1.40-p6sasq8k.mjs +2 -0
  179. package/dist/chunks/cli-1.1.40-pmw99nnn.mjs +2 -0
  180. package/dist/chunks/cli-1.1.40-ptbes5dy.mjs +2 -0
  181. package/dist/chunks/cli-1.1.40-qbqaea7j.mjs +2 -0
  182. package/dist/chunks/cli-1.1.40-qj79t43w.mjs +2 -0
  183. package/dist/chunks/cli-1.1.40-qrryep7k.mjs +2 -0
  184. package/dist/chunks/cli-1.1.40-r0e1tymb.mjs +4 -0
  185. package/dist/chunks/cli-1.1.40-rcfj1etg.mjs +2 -0
  186. package/dist/chunks/cli-1.1.40-rq9y2zd8.mjs +4 -0
  187. package/dist/chunks/cli-1.1.40-rwbr7d1h.mjs +2 -0
  188. package/dist/chunks/cli-1.1.40-s5zzvtq2.mjs +2 -0
  189. package/dist/chunks/cli-1.1.40-sa2ca2mh.mjs +2 -0
  190. package/dist/chunks/cli-1.1.40-sh39fzfc.mjs +2 -0
  191. package/dist/chunks/cli-1.1.40-sjmpb8kv.mjs +2 -0
  192. package/dist/chunks/cli-1.1.40-sw6avn9f.mjs +15 -0
  193. package/dist/chunks/cli-1.1.40-swnje8x1.mjs +2 -0
  194. package/dist/chunks/cli-1.1.40-t3fwj4bx.mjs +2 -0
  195. package/dist/chunks/cli-1.1.40-t6s30nmj.mjs +10 -0
  196. package/dist/chunks/cli-1.1.40-tb7zgp10.mjs +2 -0
  197. package/dist/chunks/cli-1.1.40-tbjmztnt.mjs +7 -0
  198. package/dist/chunks/cli-1.1.40-test5hfq.mjs +9 -0
  199. package/dist/chunks/cli-1.1.40-tjxcmknk.mjs +10 -0
  200. package/dist/chunks/cli-1.1.40-tpcjtjay.mjs +2 -0
  201. package/dist/chunks/cli-1.1.40-vemj3v7n.mjs +2 -0
  202. package/dist/chunks/cli-1.1.40-vjrn2xbp.mjs +39 -0
  203. package/dist/chunks/cli-1.1.40-vnckyxj2.mjs +6 -0
  204. package/dist/chunks/cli-1.1.40-vzsswgmp.mjs +2 -0
  205. package/dist/chunks/cli-1.1.40-wgmkydqq.mjs +2 -0
  206. package/dist/chunks/cli-1.1.40-wh51ya47.mjs +5524 -0
  207. package/dist/chunks/cli-1.1.40-wwtg9jyr.mjs +2 -0
  208. package/dist/chunks/cli-1.1.40-x07axsvg.mjs +3 -0
  209. package/dist/chunks/cli-1.1.40-x0em3hsa.mjs +42 -0
  210. package/dist/chunks/cli-1.1.40-x155sz4a.mjs +2 -0
  211. package/dist/chunks/cli-1.1.40-x8fyash9.mjs +2 -0
  212. package/dist/chunks/cli-1.1.40-xjt6qe30.mjs +2 -0
  213. package/dist/chunks/cli-1.1.40-xrdf30ff.mjs +4 -0
  214. package/dist/chunks/cli-1.1.40-xsx6q1wa.mjs +2 -0
  215. package/dist/chunks/cli-1.1.40-xty2k2d8.mjs +2 -0
  216. package/dist/chunks/cli-1.1.40-xvw930pn.mjs +4 -0
  217. package/dist/chunks/cli-1.1.40-xxr2978q.mjs +2 -0
  218. package/dist/chunks/cli-1.1.40-xz65jcaq.mjs +2 -0
  219. package/dist/chunks/cli-1.1.40-yb9c5882.mjs +6 -0
  220. package/dist/chunks/cli-1.1.40-ycdfy6nf.mjs +15 -0
  221. package/dist/chunks/cli-1.1.40-yggza6ab.mjs +2 -0
  222. package/dist/chunks/cli-1.1.40-ypd0pmm1.mjs +9 -0
  223. package/dist/chunks/cli-1.1.40-yxch4yjw.mjs +2 -0
  224. package/dist/chunks/cli-1.1.40-yyx9dq0t.mjs +2 -0
  225. package/dist/chunks/cli-1.1.40-z2y2xwz9.mjs +21 -0
  226. package/dist/chunks/cli-1.1.40-z3hcyy04.mjs +25 -0
  227. package/dist/chunks/cli-1.1.40-z4zyefya.mjs +10 -0
  228. package/dist/chunks/cli-1.1.40-zc4hs061.mjs +2 -0
  229. package/dist/chunks/cli-1.1.40-zjd4syvr.mjs +2 -0
  230. package/dist/chunks/cli-1.1.40-zn2yvg4w.mjs +7 -0
  231. package/dist/chunks/cli-1.1.40-zwpz8d3c.mjs +2 -0
  232. package/dist/chunks/cli-1.1.40-zx6c6dj7.mjs +2 -0
  233. package/dist/chunks/cli-1.1.40-zxgbpq09.mjs +2 -0
  234. package/dist/chunks/cli-1.1.40-zz1e7ypt.mjs +2 -0
  235. package/dist/chunks/client-1.1.40-7wf4ewe0.mjs +1 -0
  236. package/dist/chunks/color-1.1.40-v7cj369z.mjs +1 -0
  237. package/dist/chunks/compact-1.1.40-9frgndw1.mjs +2 -0
  238. package/dist/chunks/config-1.1.40-hpmvve33.mjs +1 -0
  239. package/dist/chunks/config-1.1.40-vyqe5y0b.mjs +1 -0
  240. package/dist/chunks/constants-1.1.40-ddn3fezq.mjs +1 -0
  241. package/dist/chunks/context-1.1.40-v3bm6v6h.mjs +1 -0
  242. package/dist/chunks/context-noninteractive-1.1.40-grk3112n.mjs +1 -0
  243. package/dist/chunks/conversation-1.1.40-18fff5dm.mjs +1 -0
  244. package/dist/chunks/copilotHeaders-1.1.40-8mws1sed.mjs +1 -0
  245. package/dist/chunks/copy-1.1.40-0j7zfq2m.mjs +9 -0
  246. package/dist/chunks/cost-1.1.40-haa10e3n.mjs +1 -0
  247. package/dist/chunks/createSession-1.1.40-m1yre1z2.mjs +1 -0
  248. package/dist/chunks/debug-1.1.40-jb16xf0z.mjs +1 -0
  249. package/dist/chunks/defaultActionDeps-1.1.40-6jxq6wj1.mjs +1458 -0
  250. package/dist/chunks/desktop-1.1.40-78kvtn3w.mjs +2 -0
  251. package/dist/chunks/detectRepository-1.1.40-bfsfnrg0.mjs +1 -0
  252. package/dist/chunks/detection-1.1.40-ynqhwygh.mjs +1 -0
  253. package/dist/chunks/diff-1.1.40-ry5r3hxm.mjs +1 -0
  254. package/dist/chunks/doctor-1.1.40-3jq6vt4j.mjs +1 -0
  255. package/dist/chunks/doctorDiagnostic-1.1.40-xkn6p433.mjs +1 -0
  256. package/dist/chunks/earlyInput-1.1.40-cgnyfxrr.mjs +1 -0
  257. package/dist/chunks/effort-1.1.40-x92e5y73.mjs +13 -0
  258. package/dist/chunks/engine-1.1.40-xfhy56h0.mjs +1 -0
  259. package/dist/chunks/envUtils-1.1.40-x04vk5d2.mjs +1 -0
  260. package/dist/chunks/errors-1.1.40-5rmm9jgq.mjs +1 -0
  261. package/dist/chunks/exampleCommands-1.1.40-0bqsxh7q.mjs +1 -0
  262. package/dist/chunks/execFileNoThrow-1.1.40-ckxrp2ds.mjs +1 -0
  263. package/dist/chunks/exit-1.1.40-3z02mbj5.mjs +1 -0
  264. package/dist/chunks/explorer-1.1.40-wd802dbj.mjs +1 -0
  265. package/dist/chunks/export-1.1.40-jfwshttx.mjs +2 -0
  266. package/dist/chunks/fast-1.1.40-60ervp24.mjs +1 -0
  267. package/dist/chunks/feedback-1.1.40-prjs4btg.mjs +16 -0
  268. package/dist/chunks/git-1.1.40-j53g8ee0.mjs +1 -0
  269. package/dist/chunks/githubModelsCredentials-1.1.40-mcem604d.mjs +1 -0
  270. package/dist/chunks/goal-1.1.40-g8esr771.mjs +4 -0
  271. package/dist/chunks/headless-1.1.40-vr772edq.mjs +2 -0
  272. package/dist/chunks/heapdump-1.1.40-8rmhv3eq.mjs +6 -0
  273. package/dist/chunks/help-1.1.40-x9vde04q.mjs +1 -0
  274. package/dist/chunks/hooks-1.1.40-gm4rps4s.mjs +79 -0
  275. package/dist/chunks/hooks-1.1.40-wb0fy1tx.mjs +1 -0
  276. package/dist/chunks/ide-1.1.40-ymf3dffe.mjs +3 -0
  277. package/dist/chunks/image-processor-napi-1.1.40-kk0nhrm1.mjs +1 -0
  278. package/dist/chunks/import-1.1.40-8q1yygwm.mjs +260 -0
  279. package/dist/chunks/inboundAttachments-1.1.40-gdzw0a60.mjs +1 -0
  280. package/dist/chunks/index-1.1.40-1036v870.mjs +1 -0
  281. package/dist/chunks/index-1.1.40-2pnxjnrq.mjs +9 -0
  282. package/dist/chunks/index-1.1.40-3dg7neyn.mjs +1 -0
  283. package/dist/chunks/index-1.1.40-3wmvffnj.mjs +1 -0
  284. package/dist/chunks/index-1.1.40-6h7p7965.mjs +5 -0
  285. package/dist/chunks/index-1.1.40-7m7py5an.mjs +1 -0
  286. package/dist/chunks/index-1.1.40-7thhkf50.mjs +1 -0
  287. package/dist/chunks/index-1.1.40-7zb9nwfm.mjs +1 -0
  288. package/dist/chunks/index-1.1.40-a4nq3a6p.mjs +23 -0
  289. package/dist/chunks/index-1.1.40-agp7ccgc.mjs +2 -0
  290. package/dist/chunks/index-1.1.40-ce1vrpmy.mjs +1 -0
  291. package/dist/chunks/index-1.1.40-d7gm1zpq.mjs +1 -0
  292. package/dist/chunks/index-1.1.40-e5mrxhrw.mjs +9 -0
  293. package/dist/chunks/index-1.1.40-hqxrsc3k.mjs +30 -0
  294. package/dist/chunks/index-1.1.40-hyjbaxfp.mjs +1 -0
  295. package/dist/chunks/index-1.1.40-kxj8bd6n.mjs +1 -0
  296. package/dist/chunks/index-1.1.40-m8hvmnp3.mjs +2 -0
  297. package/dist/chunks/index-1.1.40-re5y6sqg.mjs +1 -0
  298. package/dist/chunks/index-1.1.40-rxqg2zmw.mjs +1 -0
  299. package/dist/chunks/index-1.1.40-scsfdxb9.mjs +1 -0
  300. package/dist/chunks/index-1.1.40-sebq5zf0.mjs +1 -0
  301. package/dist/chunks/index-1.1.40-sw11xm4f.mjs +1 -0
  302. package/dist/chunks/index-1.1.40-wm4s6wvy.mjs +1 -0
  303. package/dist/chunks/init-1.1.40-t57rwm04.mjs +2 -0
  304. package/dist/chunks/initReplBridge-1.1.40-mjwfh9qk.mjs +1 -0
  305. package/dist/chunks/ink-1.1.40-9d6z3zms.mjs +1 -0
  306. package/dist/chunks/insights-1.1.40-a9638asy.mjs +870 -0
  307. package/dist/chunks/install-1.1.40-zxccztd6.mjs +1 -0
  308. package/dist/chunks/install-github-app-1.1.40-zf5bv85a.mjs +149 -0
  309. package/dist/chunks/install-slack-app-1.1.40-5zhc4ky1.mjs +1 -0
  310. package/dist/chunks/interactiveHelpers-1.1.40-8b699chw.mjs +1 -0
  311. package/dist/chunks/latestVersionCache-1.1.40-pf10bcf1.mjs +1 -0
  312. package/dist/chunks/loadAgentsDir-1.1.40-2phb1zja.mjs +1 -0
  313. package/dist/chunks/loadPluginHooks-1.1.40-nyy8edra.mjs +1 -0
  314. package/dist/chunks/log-1.1.40-bd06efpx.mjs +1 -0
  315. package/dist/chunks/main-1.1.40-jsd88fnb.mjs +1 -0
  316. package/dist/chunks/managedEnv-1.1.40-5bct44v9.mjs +1 -0
  317. package/dist/chunks/mcp-1.1.40-gwsy9z99.mjs +17 -0
  318. package/dist/chunks/mcp-1.1.40-ne4zhaas.mjs +4 -0
  319. package/dist/chunks/mcp-1.1.40-w28yghrq.mjs +1 -0
  320. package/dist/chunks/mcpb-1.1.40-rmczagzm.mjs +1 -0
  321. package/dist/chunks/memory-1.1.40-bw1f5kas.mjs +128 -0
  322. package/dist/chunks/model-1.1.40-abq8e5vn.mjs +1 -0
  323. package/dist/chunks/model-1.1.40-mchqmvyj.mjs +2 -0
  324. package/dist/chunks/new-1.1.40-52px2j2q.mjs +1 -0
  325. package/dist/chunks/node-1.1.40-9cewz2cq.mjs +1 -0
  326. package/dist/chunks/node-1.1.40-feq5eqhb.mjs +15 -0
  327. package/dist/chunks/oauth-1.1.40-g2ddff91.mjs +1 -0
  328. package/dist/chunks/openaiShim-1.1.40-1f1x96vz.mjs +14 -0
  329. package/dist/chunks/output-style-1.1.40-57gexey1.mjs +1 -0
  330. package/dist/chunks/package-V72LKFNW-1.1.40-fsxygmx4.mjs +1 -0
  331. package/dist/chunks/permissions-1.1.40-a3gt3a6r.mjs +1 -0
  332. package/dist/chunks/permissions-1.1.40-tk64h5pw.mjs +3 -0
  333. package/dist/chunks/plan-1.1.40-qktxc0xv.mjs +1 -0
  334. package/dist/chunks/plist-1.1.40-syaedef6.mjs +1 -0
  335. package/dist/chunks/plugin-1.1.40-40707xv2.mjs +29 -0
  336. package/dist/chunks/pluginStartupCheck-1.1.40-0s8z5pda.mjs +1 -0
  337. package/dist/chunks/plugins-1.1.40-36g7cedj.mjs +9 -0
  338. package/dist/chunks/preActionHook-1.1.40-xs0mts7r.mjs +2 -0
  339. package/dist/chunks/print-1.1.40-n8tbgpmb.mjs +57 -0
  340. package/dist/chunks/process-1.1.40-2d6jw6ja.mjs +1 -0
  341. package/dist/chunks/processBashCommand-1.1.40-9wg7776s.mjs +1 -0
  342. package/dist/chunks/processSlashCommand-1.1.40-xt635hzb.mjs +9 -0
  343. package/dist/chunks/prompt-1.1.40-384zryvv.mjs +1 -0
  344. package/dist/chunks/prompt-1.1.40-fafe7d93.mjs +1 -0
  345. package/dist/chunks/prompts-1.1.40-dkjt46vt.mjs +1 -0
  346. package/dist/chunks/provider-1.1.40-jdhrf16x.mjs +2 -0
  347. package/dist/chunks/providerProfiles-1.1.40-bw1gvrwa.mjs +1 -0
  348. package/dist/chunks/providerValidation-1.1.40-grkw6t7j.mjs +6 -0
  349. package/dist/chunks/registerSubcommands-1.1.40-829pxw1w.mjs +26 -0
  350. package/dist/chunks/registry-1.1.40-gcsbpq05.mjs +1 -0
  351. package/dist/chunks/release-notes-1.1.40-7k7w7byk.mjs +5 -0
  352. package/dist/chunks/reload-plugins-1.1.40-0hnncx1c.mjs +2 -0
  353. package/dist/chunks/remote-env-1.1.40-8yjn1yy1.mjs +1 -0
  354. package/dist/chunks/rename-1.1.40-k97agc44.mjs +1 -0
  355. package/dist/chunks/replLauncher-1.1.40-t07rfxt3.mjs +1 -0
  356. package/dist/chunks/resume-1.1.40-aztvxhw1.mjs +2 -0
  357. package/dist/chunks/rewind-1.1.40-qqcys5j3.mjs +1 -0
  358. package/dist/chunks/rootOptions-1.1.40-1phbx46q.mjs +1 -0
  359. package/dist/chunks/runWorkflowHeadless-1.1.40-4zdbvgxr.mjs +10 -0
  360. package/dist/chunks/sandbox-adapter-1.1.40-w8261442.mjs +1 -0
  361. package/dist/chunks/sandbox-toggle-1.1.40-3jcyaq2m.mjs +1 -0
  362. package/dist/chunks/session-1.1.40-t3q2q12k.mjs +2 -0
  363. package/dist/chunks/sessionStorage-1.1.40-k9kv0fc5.mjs +1 -0
  364. package/dist/chunks/settings-1.1.40-xk0psj3p.mjs +1 -0
  365. package/dist/chunks/setup-1.1.40-k28y0vhd.mjs +12 -0
  366. package/dist/chunks/sinks-1.1.40-jmrhph0p.mjs +1 -0
  367. package/dist/chunks/skills-1.1.40-p548yntr.mjs +1 -0
  368. package/dist/chunks/startupProfiler-1.1.40-r0r0td60.mjs +1 -0
  369. package/dist/chunks/startupUpdateCheck-1.1.40-9k4m0y14.mjs +1 -0
  370. package/dist/chunks/state-1.1.40-48n6bztp.mjs +1 -0
  371. package/dist/chunks/stats-1.1.40-7b8de2xc.mjs +1 -0
  372. package/dist/chunks/status-1.1.40-y6f9m60d.mjs +1 -0
  373. package/dist/chunks/stickers-1.1.40-6861rtwc.mjs +1 -0
  374. package/dist/chunks/subprocessEnv-1.1.40-j8teh9py.mjs +1 -0
  375. package/dist/chunks/tasks-1.1.40-z0pdc2v6.mjs +1 -0
  376. package/dist/chunks/teamHelpers-1.1.40-dg7kse00.mjs +1 -0
  377. package/dist/chunks/teammateModeSnapshot-1.1.40-h0ps5f8m.mjs +1 -0
  378. package/dist/chunks/teleport-1.1.40-968xt0kq.mjs +1 -0
  379. package/dist/chunks/terminalSetup-1.1.40-tyj663fm.mjs +1 -0
  380. package/dist/chunks/theme-1.1.40-pt3gmfb7.mjs +1 -0
  381. package/dist/chunks/toolPool-1.1.40-7evty87j.mjs +1 -0
  382. package/dist/chunks/toolSearch-1.1.40-js92r1j0.mjs +1 -0
  383. package/dist/chunks/tools-1.1.40-3xs7vby7.mjs +1 -0
  384. package/dist/chunks/turndown.cjs-1.1.40-r64pb7jc.mjs +69 -0
  385. package/dist/chunks/types-1.1.40-106z8mxc.mjs +1 -0
  386. package/dist/chunks/update-1.1.40-t843j2px.mjs +72 -0
  387. package/dist/chunks/upload-1.1.40-mq50976a.mjs +7 -0
  388. package/dist/chunks/upstreamproxy-1.1.40-8sq5v7b7.mjs +14 -0
  389. package/dist/chunks/usage-1.1.40-m5z82r48.mjs +1 -0
  390. package/dist/chunks/util-1.1.40-wt30k81w.mjs +1 -0
  391. package/dist/chunks/utils-1.1.40-59bpagj3.mjs +1 -0
  392. package/dist/chunks/vim-1.1.40-4kra5190.mjs +1 -0
  393. package/dist/chunks/watchLoop-1.1.40-2vzyqrvn.mjs +13 -0
  394. package/dist/chunks/wiki-1.1.40-c29899s1.mjs +132 -0
  395. package/dist/chunks/workflows-1.1.40-heqcwgty.mjs +1 -0
  396. package/dist/chunks/worktree-1.1.40-mw6zf174.mjs +1 -0
  397. package/dist/chunks/worktreeModeEnabled-1.1.40-2wrpxrjt.mjs +1 -0
  398. package/dist/chunks/wrapper-1.1.40-07rbayqn.mjs +7 -0
  399. package/dist/cli.mjs +2 -2
  400. package/package.json +9 -9
  401. package/dist/chunks/App-1.1.39-k3pzg19w.mjs +0 -1
  402. package/dist/chunks/ApproveApiKey-1.1.39-bycvt1g5.mjs +0 -1
  403. package/dist/chunks/AutoModeOptInDialog-1.1.39-4j00w97q.mjs +0 -1
  404. package/dist/chunks/BypassPermissionsModeDialog-1.1.39-38wypq07.mjs +0 -1
  405. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.39-edm7rsre.mjs +0 -1
  406. package/dist/chunks/ConsoleOAuthFlow-1.1.39-my209qf5.mjs +0 -1
  407. package/dist/chunks/DiffDialog-1.1.39-dt5qmt50.mjs +0 -6
  408. package/dist/chunks/Doctor-1.1.39-kv2tpcs1.mjs +0 -1
  409. package/dist/chunks/ExplorerDialog-1.1.39-d5t22ss6.mjs +0 -6
  410. package/dist/chunks/ITermBackend-1.1.39-z3zx6y4m.mjs +0 -1
  411. package/dist/chunks/InvalidConfigDialog-1.1.39-nwstppyf.mjs +0 -1
  412. package/dist/chunks/InvalidSettingsDialog-1.1.39-pfjzxc4p.mjs +0 -1
  413. package/dist/chunks/MigrationDialog-1.1.39-3mpd0tbf.mjs +0 -1
  414. package/dist/chunks/Onboarding-1.1.39-r5976zwt.mjs +0 -1
  415. package/dist/chunks/ProviderManager-1.1.39-dzacd3pt.mjs +0 -1
  416. package/dist/chunks/REPL-1.1.39-ww7zvk7k.mjs +0 -1
  417. package/dist/chunks/ResumeConversation-1.1.39-mdn16ej3.mjs +0 -1
  418. package/dist/chunks/TeleportProgress-1.1.39-tnhzkmtn.mjs +0 -1
  419. package/dist/chunks/TeleportRepoMismatchDialog-1.1.39-vz4td3jg.mjs +0 -1
  420. package/dist/chunks/TeleportResumeWrapper-1.1.39-rfjygmym.mjs +0 -1
  421. package/dist/chunks/TmuxBackend-1.1.39-vbqywsj7.mjs +0 -9
  422. package/dist/chunks/ToolSearchTool-1.1.39-bb46mna1.mjs +0 -1
  423. package/dist/chunks/TrustDialog-1.1.39-b57dgsm7.mjs +0 -1
  424. package/dist/chunks/activeProvider-1.1.39-jgfyp0cs.mjs +0 -1
  425. package/dist/chunks/add-dir-1.1.39-1wp8d118.mjs +0 -1
  426. package/dist/chunks/agentTypes-1.1.39-0x20gy8e.mjs +0 -1
  427. package/dist/chunks/agents-1.1.39-b3k5kxn7.mjs +0 -110
  428. package/dist/chunks/agents-1.1.39-nt8wcmtp.mjs +0 -3
  429. package/dist/chunks/api-1.1.39-tn9g67g0.mjs +0 -1
  430. package/dist/chunks/asciicast-1.1.39-22byg1gm.mjs +0 -1
  431. package/dist/chunks/auth-1.1.39-1x1eer36.mjs +0 -1
  432. package/dist/chunks/auth-1.1.39-vz0zkq99.mjs +0 -1
  433. package/dist/chunks/autoMode-1.1.39-sjezrxh7.mjs +0 -52
  434. package/dist/chunks/autoModeSetup-1.1.39-e6gvda2k.mjs +0 -44
  435. package/dist/chunks/autoUpdater-1.1.39-cz95xv2n.mjs +0 -1
  436. package/dist/chunks/backgroundHousekeeping-1.1.39-vsn9w5k2.mjs +0 -1
  437. package/dist/chunks/branch-1.1.39-e0ww5bkp.mjs +0 -4
  438. package/dist/chunks/bridge-1.1.39-k5vb0mmb.mjs +0 -2
  439. package/dist/chunks/bridgeConfig-1.1.39-6czf6nvj.mjs +0 -1
  440. package/dist/chunks/bridgeEnabled-1.1.39-crv4d7xn.mjs +0 -1
  441. package/dist/chunks/bridgeMain-1.1.39-488k7mc8.mjs +0 -64
  442. package/dist/chunks/bridgePointer-1.1.39-xb9s18xx.mjs +0 -1
  443. package/dist/chunks/btw-1.1.39-n1psbg89.mjs +0 -1
  444. package/dist/chunks/buddy-1.1.39-ms13d421.mjs +0 -3
  445. package/dist/chunks/cache-probe-1.1.39-j0aybz93.mjs +0 -21
  446. package/dist/chunks/cacheStats-1.1.39-dg202ye5.mjs +0 -4
  447. package/dist/chunks/caches-1.1.39-v3nps0e9.mjs +0 -1
  448. package/dist/chunks/cd-1.1.39-awhhtq1z.mjs +0 -3
  449. package/dist/chunks/claudeDesktop-1.1.39-azj9es6w.mjs +0 -1
  450. package/dist/chunks/claudemd-1.1.39-7a02xhkm.mjs +0 -1
  451. package/dist/chunks/clear-1.1.39-k197h5f0.mjs +0 -1
  452. package/dist/chunks/clearTerminal-1.1.39-twgf5kky.mjs +0 -1
  453. package/dist/chunks/cli-1.1.39-01qgb22d.mjs +0 -4
  454. package/dist/chunks/cli-1.1.39-07d1v3y9.mjs +0 -2
  455. package/dist/chunks/cli-1.1.39-0k9p4g5p.mjs +0 -2
  456. package/dist/chunks/cli-1.1.39-0mtb82ww.mjs +0 -2
  457. package/dist/chunks/cli-1.1.39-0rsjfyh1.mjs +0 -9
  458. package/dist/chunks/cli-1.1.39-0s0eqwsn.mjs +0 -2
  459. package/dist/chunks/cli-1.1.39-10wrcybe.mjs +0 -2
  460. package/dist/chunks/cli-1.1.39-111vm2e1.mjs +0 -24
  461. package/dist/chunks/cli-1.1.39-14jxs3k5.mjs +0 -3
  462. package/dist/chunks/cli-1.1.39-15jr1t97.mjs +0 -2
  463. package/dist/chunks/cli-1.1.39-17mj2gq0.mjs +0 -2
  464. package/dist/chunks/cli-1.1.39-1es853x9.mjs +0 -2
  465. package/dist/chunks/cli-1.1.39-1m7bzjpd.mjs +0 -2
  466. package/dist/chunks/cli-1.1.39-1mpe0mv2.mjs +0 -17
  467. package/dist/chunks/cli-1.1.39-1q43eavk.mjs +0 -4
  468. package/dist/chunks/cli-1.1.39-1r1cbvk8.mjs +0 -2
  469. package/dist/chunks/cli-1.1.39-1tcqp8ky.mjs +0 -2
  470. package/dist/chunks/cli-1.1.39-1wg6zvk6.mjs +0 -2
  471. package/dist/chunks/cli-1.1.39-1yysfg6y.mjs +0 -2
  472. package/dist/chunks/cli-1.1.39-212q1ba2.mjs +0 -2
  473. package/dist/chunks/cli-1.1.39-24z9gjkg.mjs +0 -6
  474. package/dist/chunks/cli-1.1.39-2gzgjcxr.mjs +0 -6
  475. package/dist/chunks/cli-1.1.39-2hgsp1ry.mjs +0 -2
  476. package/dist/chunks/cli-1.1.39-2k0w4c3v.mjs +0 -6
  477. package/dist/chunks/cli-1.1.39-2vf0yc3g.mjs +0 -2
  478. package/dist/chunks/cli-1.1.39-2x3kj4gh.mjs +0 -2
  479. package/dist/chunks/cli-1.1.39-2xmkpvn8.mjs +0 -2
  480. package/dist/chunks/cli-1.1.39-31e9rw45.mjs +0 -2
  481. package/dist/chunks/cli-1.1.39-3g0p54p8.mjs +0 -2
  482. package/dist/chunks/cli-1.1.39-3mghgnn1.mjs +0 -24
  483. package/dist/chunks/cli-1.1.39-3yy2wxqa.mjs +0 -24
  484. package/dist/chunks/cli-1.1.39-4bdssx8e.mjs +0 -2
  485. package/dist/chunks/cli-1.1.39-4he45b53.mjs +0 -2
  486. package/dist/chunks/cli-1.1.39-4p4c56cn.mjs +0 -2
  487. package/dist/chunks/cli-1.1.39-4w5sz267.mjs +0 -2
  488. package/dist/chunks/cli-1.1.39-52k1fj82.mjs +0 -2
  489. package/dist/chunks/cli-1.1.39-5gdtmek1.mjs +0 -2
  490. package/dist/chunks/cli-1.1.39-5ge6mqxz.mjs +0 -63
  491. package/dist/chunks/cli-1.1.39-5h7tfgqc.mjs +0 -2
  492. package/dist/chunks/cli-1.1.39-5r6zjkfz.mjs +0 -2
  493. package/dist/chunks/cli-1.1.39-5t4113gt.mjs +0 -2
  494. package/dist/chunks/cli-1.1.39-5xkhxv1a.mjs +0 -2
  495. package/dist/chunks/cli-1.1.39-5yxt37n7.mjs +0 -2
  496. package/dist/chunks/cli-1.1.39-5zc15zgx.mjs +0 -2
  497. package/dist/chunks/cli-1.1.39-6pkc868v.mjs +0 -2
  498. package/dist/chunks/cli-1.1.39-6y7dsvjs.mjs +0 -2
  499. package/dist/chunks/cli-1.1.39-70t1q2pm.mjs +0 -2
  500. package/dist/chunks/cli-1.1.39-75gxbxsn.mjs +0 -7
  501. package/dist/chunks/cli-1.1.39-7ck7pqh0.mjs +0 -2
  502. package/dist/chunks/cli-1.1.39-7d9k8cma.mjs +0 -2
  503. package/dist/chunks/cli-1.1.39-7hm6zgk1.mjs +0 -15
  504. package/dist/chunks/cli-1.1.39-7jhstkb2.mjs +0 -2
  505. package/dist/chunks/cli-1.1.39-7kjnzaa8.mjs +0 -2
  506. package/dist/chunks/cli-1.1.39-7tchegvs.mjs +0 -5
  507. package/dist/chunks/cli-1.1.39-7tgaawmj.mjs +0 -2
  508. package/dist/chunks/cli-1.1.39-7xc1qp70.mjs +0 -2
  509. package/dist/chunks/cli-1.1.39-89e5xfsc.mjs +0 -2
  510. package/dist/chunks/cli-1.1.39-8e62hz1p.mjs +0 -3
  511. package/dist/chunks/cli-1.1.39-8gscnd8w.mjs +0 -2
  512. package/dist/chunks/cli-1.1.39-8jw8s604.mjs +0 -2
  513. package/dist/chunks/cli-1.1.39-8k3rh435.mjs +0 -2
  514. package/dist/chunks/cli-1.1.39-8xf0xfkw.mjs +0 -2
  515. package/dist/chunks/cli-1.1.39-905jk7a7.mjs +0 -133
  516. package/dist/chunks/cli-1.1.39-9afxesb0.mjs +0 -3
  517. package/dist/chunks/cli-1.1.39-9bh2t20k.mjs +0 -3
  518. package/dist/chunks/cli-1.1.39-9dfw3wt9.mjs +0 -2
  519. package/dist/chunks/cli-1.1.39-9j9vfcg0.mjs +0 -10
  520. package/dist/chunks/cli-1.1.39-9qsdqnm7.mjs +0 -6
  521. package/dist/chunks/cli-1.1.39-9yg363zk.mjs +0 -2
  522. package/dist/chunks/cli-1.1.39-a1rc9y55.mjs +0 -3
  523. package/dist/chunks/cli-1.1.39-a40ak4sd.mjs +0 -2
  524. package/dist/chunks/cli-1.1.39-ay2p31kb.mjs +0 -39
  525. package/dist/chunks/cli-1.1.39-b1gewbgs.mjs +0 -2
  526. package/dist/chunks/cli-1.1.39-b314axe0.mjs +0 -2
  527. package/dist/chunks/cli-1.1.39-b3geta93.mjs +0 -21
  528. package/dist/chunks/cli-1.1.39-bd66bjj3.mjs +0 -2
  529. package/dist/chunks/cli-1.1.39-brzpjtja.mjs +0 -2
  530. package/dist/chunks/cli-1.1.39-c4c832m5.mjs +0 -2
  531. package/dist/chunks/cli-1.1.39-c6mm3w1n.mjs +0 -135
  532. package/dist/chunks/cli-1.1.39-c86mbrv2.mjs +0 -2
  533. package/dist/chunks/cli-1.1.39-chveh83h.mjs +0 -2
  534. package/dist/chunks/cli-1.1.39-cjc01sak.mjs +0 -2
  535. package/dist/chunks/cli-1.1.39-ck0k3rxx.mjs +0 -2
  536. package/dist/chunks/cli-1.1.39-ckty7bt1.mjs +0 -2
  537. package/dist/chunks/cli-1.1.39-cq5nwqfw.mjs +0 -2
  538. package/dist/chunks/cli-1.1.39-cvbzp08c.mjs +0 -2
  539. package/dist/chunks/cli-1.1.39-cyx7zw76.mjs +0 -50
  540. package/dist/chunks/cli-1.1.39-czh4aj72.mjs +0 -4
  541. package/dist/chunks/cli-1.1.39-d25xsy5x.mjs +0 -2
  542. package/dist/chunks/cli-1.1.39-dfrms96j.mjs +0 -2
  543. package/dist/chunks/cli-1.1.39-djtdv45d.mjs +0 -4
  544. package/dist/chunks/cli-1.1.39-dm5rqr07.mjs +0 -8
  545. package/dist/chunks/cli-1.1.39-dvfdgp8r.mjs +0 -2
  546. package/dist/chunks/cli-1.1.39-dwfknzds.mjs +0 -2
  547. package/dist/chunks/cli-1.1.39-dwgjp6zp.mjs +0 -2
  548. package/dist/chunks/cli-1.1.39-e4p7vgrg.mjs +0 -2
  549. package/dist/chunks/cli-1.1.39-e98w7pr4.mjs +0 -2
  550. package/dist/chunks/cli-1.1.39-en8a3nq6.mjs +0 -11
  551. package/dist/chunks/cli-1.1.39-epktaska.mjs +0 -3
  552. package/dist/chunks/cli-1.1.39-esp4w3m4.mjs +0 -2
  553. package/dist/chunks/cli-1.1.39-evs7a20p.mjs +0 -9
  554. package/dist/chunks/cli-1.1.39-eyp8d7vv.mjs +0 -2
  555. package/dist/chunks/cli-1.1.39-f0wf0m0n.mjs +0 -2
  556. package/dist/chunks/cli-1.1.39-f1schffw.mjs +0 -25
  557. package/dist/chunks/cli-1.1.39-f2qc1x1n.mjs +0 -2
  558. package/dist/chunks/cli-1.1.39-f5azyvet.mjs +0 -2
  559. package/dist/chunks/cli-1.1.39-fka8qdkr.mjs +0 -2
  560. package/dist/chunks/cli-1.1.39-fm08hbtj.mjs +0 -2
  561. package/dist/chunks/cli-1.1.39-fqsaf1st.mjs +0 -2
  562. package/dist/chunks/cli-1.1.39-g751n1kp.mjs +0 -2
  563. package/dist/chunks/cli-1.1.39-g7mbr2ky.mjs +0 -2
  564. package/dist/chunks/cli-1.1.39-g9rcf6cw.mjs +0 -2
  565. package/dist/chunks/cli-1.1.39-ghja51c5.mjs +0 -2
  566. package/dist/chunks/cli-1.1.39-gnkk8fs7.mjs +0 -2
  567. package/dist/chunks/cli-1.1.39-gtm67f9z.mjs +0 -2
  568. package/dist/chunks/cli-1.1.39-h06axtf8.mjs +0 -4
  569. package/dist/chunks/cli-1.1.39-h8ahn5vw.mjs +0 -2
  570. package/dist/chunks/cli-1.1.39-h90nz8dv.mjs +0 -2
  571. package/dist/chunks/cli-1.1.39-ha8fn1m0.mjs +0 -2
  572. package/dist/chunks/cli-1.1.39-hgm87yas.mjs +0 -10
  573. package/dist/chunks/cli-1.1.39-j6nvja1z.mjs +0 -2
  574. package/dist/chunks/cli-1.1.39-jmh4b6db.mjs +0 -2
  575. package/dist/chunks/cli-1.1.39-jncrq8d3.mjs +0 -2
  576. package/dist/chunks/cli-1.1.39-jq1a84j4.mjs +0 -2
  577. package/dist/chunks/cli-1.1.39-k8n2ksgh.mjs +0 -2
  578. package/dist/chunks/cli-1.1.39-kcq7gw24.mjs +0 -60
  579. package/dist/chunks/cli-1.1.39-kfztpa2h.mjs +0 -2
  580. package/dist/chunks/cli-1.1.39-kkgyntg1.mjs +0 -7
  581. package/dist/chunks/cli-1.1.39-kw258d7x.mjs +0 -4
  582. package/dist/chunks/cli-1.1.39-mhv15208.mjs +0 -2
  583. package/dist/chunks/cli-1.1.39-ms0zz1pq.mjs +0 -2
  584. package/dist/chunks/cli-1.1.39-mtdpf384.mjs +0 -2
  585. package/dist/chunks/cli-1.1.39-n8j5q839.mjs +0 -2
  586. package/dist/chunks/cli-1.1.39-nc39g50q.mjs +0 -2
  587. package/dist/chunks/cli-1.1.39-nde8mxzw.mjs +0 -2
  588. package/dist/chunks/cli-1.1.39-ne2jz4j1.mjs +0 -12
  589. package/dist/chunks/cli-1.1.39-nhgqks5q.mjs +0 -2
  590. package/dist/chunks/cli-1.1.39-nk9xnj41.mjs +0 -2
  591. package/dist/chunks/cli-1.1.39-nkv70wmc.mjs +0 -10
  592. package/dist/chunks/cli-1.1.39-nmm4w3bh.mjs +0 -16
  593. package/dist/chunks/cli-1.1.39-nnc7eg6p.mjs +0 -2
  594. package/dist/chunks/cli-1.1.39-nsgjkze0.mjs +0 -2
  595. package/dist/chunks/cli-1.1.39-nxv718fh.mjs +0 -3
  596. package/dist/chunks/cli-1.1.39-p2sg5g92.mjs +0 -250
  597. package/dist/chunks/cli-1.1.39-pc9dgxhx.mjs +0 -5
  598. package/dist/chunks/cli-1.1.39-q8q90rxq.mjs +0 -2
  599. package/dist/chunks/cli-1.1.39-rfkva6dd.mjs +0 -42
  600. package/dist/chunks/cli-1.1.39-rhqy2d5w.mjs +0 -2
  601. package/dist/chunks/cli-1.1.39-rjxm15hw.mjs +0 -2
  602. package/dist/chunks/cli-1.1.39-rp6sehng.mjs +0 -3
  603. package/dist/chunks/cli-1.1.39-rprv5zq8.mjs +0 -25
  604. package/dist/chunks/cli-1.1.39-rqs6bqnm.mjs +0 -2
  605. package/dist/chunks/cli-1.1.39-rxpy9zgc.mjs +0 -2
  606. package/dist/chunks/cli-1.1.39-s4g9xyv5.mjs +0 -2
  607. package/dist/chunks/cli-1.1.39-srjkdp3j.mjs +0 -2
  608. package/dist/chunks/cli-1.1.39-swktejeb.mjs +0 -2
  609. package/dist/chunks/cli-1.1.39-t2jqv0s9.mjs +0 -2
  610. package/dist/chunks/cli-1.1.39-t4a22cet.mjs +0 -6
  611. package/dist/chunks/cli-1.1.39-tc87f2ta.mjs +0 -2
  612. package/dist/chunks/cli-1.1.39-tjpdjpp5.mjs +0 -15
  613. package/dist/chunks/cli-1.1.39-tveshzdb.mjs +0 -2
  614. package/dist/chunks/cli-1.1.39-v92y62n9.mjs +0 -2
  615. package/dist/chunks/cli-1.1.39-vh86jjp2.mjs +0 -4
  616. package/dist/chunks/cli-1.1.39-vhqah8m7.mjs +0 -2
  617. package/dist/chunks/cli-1.1.39-vtt2tmb9.mjs +0 -18
  618. package/dist/chunks/cli-1.1.39-wdctfdbb.mjs +0 -4
  619. package/dist/chunks/cli-1.1.39-whzghgxz.mjs +0 -2
  620. package/dist/chunks/cli-1.1.39-x6jkg8mf.mjs +0 -20
  621. package/dist/chunks/cli-1.1.39-xg4cr6x8.mjs +0 -2
  622. package/dist/chunks/cli-1.1.39-xm6k98xf.mjs +0 -2
  623. package/dist/chunks/cli-1.1.39-xyddt40c.mjs +0 -2
  624. package/dist/chunks/cli-1.1.39-y341qw3m.mjs +0 -2
  625. package/dist/chunks/cli-1.1.39-yjwk9mw8.mjs +0 -2
  626. package/dist/chunks/cli-1.1.39-ypma7nx9.mjs +0 -2
  627. package/dist/chunks/cli-1.1.39-ytvr80fj.mjs +0 -15
  628. package/dist/chunks/cli-1.1.39-yyqx9zb5.mjs +0 -5522
  629. package/dist/chunks/cli-1.1.39-z1akavz2.mjs +0 -2
  630. package/dist/chunks/cli-1.1.39-z21b507j.mjs +0 -2
  631. package/dist/chunks/cli-1.1.39-z6fepfnh.mjs +0 -2
  632. package/dist/chunks/cli-1.1.39-zc1b8zf6.mjs +0 -2
  633. package/dist/chunks/cli-1.1.39-zdsdsv4h.mjs +0 -3
  634. package/dist/chunks/cli-1.1.39-zfb5hcs0.mjs +0 -34
  635. package/dist/chunks/client-1.1.39-zrdzybfj.mjs +0 -1
  636. package/dist/chunks/color-1.1.39-qsgg6xt0.mjs +0 -1
  637. package/dist/chunks/compact-1.1.39-ye5nj18m.mjs +0 -2
  638. package/dist/chunks/config-1.1.39-cfgcj726.mjs +0 -1
  639. package/dist/chunks/config-1.1.39-nsgxmahr.mjs +0 -1
  640. package/dist/chunks/constants-1.1.39-s4anaxa3.mjs +0 -1
  641. package/dist/chunks/context-1.1.39-a93qe83k.mjs +0 -1
  642. package/dist/chunks/context-noninteractive-1.1.39-2428zhce.mjs +0 -1
  643. package/dist/chunks/conversation-1.1.39-x581tx1z.mjs +0 -1
  644. package/dist/chunks/copilotHeaders-1.1.39-bnzefwe6.mjs +0 -1
  645. package/dist/chunks/copy-1.1.39-tqab4hm1.mjs +0 -9
  646. package/dist/chunks/cost-1.1.39-ak71khd3.mjs +0 -1
  647. package/dist/chunks/createSession-1.1.39-yv7a37ye.mjs +0 -1
  648. package/dist/chunks/debug-1.1.39-50dvjcn3.mjs +0 -1
  649. package/dist/chunks/defaultActionDeps-1.1.39-483fm6xk.mjs +0 -1458
  650. package/dist/chunks/desktop-1.1.39-hbx627a1.mjs +0 -2
  651. package/dist/chunks/detectRepository-1.1.39-nq1yyp24.mjs +0 -1
  652. package/dist/chunks/detection-1.1.39-myz8dcyc.mjs +0 -1
  653. package/dist/chunks/diff-1.1.39-zwwd0sxq.mjs +0 -1
  654. package/dist/chunks/doctor-1.1.39-bw8w0sdj.mjs +0 -1
  655. package/dist/chunks/doctorDiagnostic-1.1.39-x9azkqjy.mjs +0 -1
  656. package/dist/chunks/earlyInput-1.1.39-3wtxyym8.mjs +0 -1
  657. package/dist/chunks/effort-1.1.39-4r28x4kv.mjs +0 -13
  658. package/dist/chunks/engine-1.1.39-jjwgtndr.mjs +0 -1
  659. package/dist/chunks/envUtils-1.1.39-azqd5ff8.mjs +0 -1
  660. package/dist/chunks/errors-1.1.39-z6wpc1z1.mjs +0 -1
  661. package/dist/chunks/exampleCommands-1.1.39-fhwx5xxp.mjs +0 -1
  662. package/dist/chunks/execFileNoThrow-1.1.39-raa250pr.mjs +0 -1
  663. package/dist/chunks/exit-1.1.39-vwjekv6v.mjs +0 -1
  664. package/dist/chunks/explorer-1.1.39-rs5cjdex.mjs +0 -1
  665. package/dist/chunks/export-1.1.39-eg5q8fpq.mjs +0 -2
  666. package/dist/chunks/fast-1.1.39-j8zrdcv9.mjs +0 -1
  667. package/dist/chunks/feedback-1.1.39-tt17q1d1.mjs +0 -16
  668. package/dist/chunks/git-1.1.39-hf1cm8nf.mjs +0 -1
  669. package/dist/chunks/githubModelsCredentials-1.1.39-yb2392an.mjs +0 -1
  670. package/dist/chunks/goal-1.1.39-6q6twvx9.mjs +0 -4
  671. package/dist/chunks/headless-1.1.39-e745sf98.mjs +0 -2
  672. package/dist/chunks/heapdump-1.1.39-1mf2vt2g.mjs +0 -6
  673. package/dist/chunks/help-1.1.39-szdr1nvx.mjs +0 -1
  674. package/dist/chunks/hooks-1.1.39-5pws6gsg.mjs +0 -79
  675. package/dist/chunks/hooks-1.1.39-6tz18s8r.mjs +0 -1
  676. package/dist/chunks/ide-1.1.39-nk0vmfg1.mjs +0 -3
  677. package/dist/chunks/image-processor-napi-1.1.39-rx4ypf8k.mjs +0 -1
  678. package/dist/chunks/import-1.1.39-eyddkf9v.mjs +0 -260
  679. package/dist/chunks/inboundAttachments-1.1.39-g0fjztwj.mjs +0 -1
  680. package/dist/chunks/index-1.1.39-1wfhz9pz.mjs +0 -1
  681. package/dist/chunks/index-1.1.39-27vjd0t1.mjs +0 -1
  682. package/dist/chunks/index-1.1.39-3mp0kdhv.mjs +0 -1
  683. package/dist/chunks/index-1.1.39-aj2fb3nf.mjs +0 -30
  684. package/dist/chunks/index-1.1.39-ajb8kk03.mjs +0 -1
  685. package/dist/chunks/index-1.1.39-bznxqgpz.mjs +0 -1
  686. package/dist/chunks/index-1.1.39-cf96agzw.mjs +0 -2
  687. package/dist/chunks/index-1.1.39-d4j661cs.mjs +0 -1
  688. package/dist/chunks/index-1.1.39-dapcfrje.mjs +0 -1
  689. package/dist/chunks/index-1.1.39-e9fjpss8.mjs +0 -1
  690. package/dist/chunks/index-1.1.39-eg0vw6jg.mjs +0 -1
  691. package/dist/chunks/index-1.1.39-eqm0e7bk.mjs +0 -1
  692. package/dist/chunks/index-1.1.39-frzv879p.mjs +0 -23
  693. package/dist/chunks/index-1.1.39-fthy3yb2.mjs +0 -1
  694. package/dist/chunks/index-1.1.39-h7tvkmm7.mjs +0 -9
  695. package/dist/chunks/index-1.1.39-hn7czx81.mjs +0 -5
  696. package/dist/chunks/index-1.1.39-jeg0xvtv.mjs +0 -1
  697. package/dist/chunks/index-1.1.39-qh6j97r3.mjs +0 -2
  698. package/dist/chunks/index-1.1.39-szfdrv3c.mjs +0 -9
  699. package/dist/chunks/index-1.1.39-t358fdhx.mjs +0 -1
  700. package/dist/chunks/index-1.1.39-w73ez3fh.mjs +0 -1
  701. package/dist/chunks/index-1.1.39-xcj56xfg.mjs +0 -1
  702. package/dist/chunks/index-1.1.39-zy7eyf9r.mjs +0 -1
  703. package/dist/chunks/init-1.1.39-fm3907f2.mjs +0 -2
  704. package/dist/chunks/initReplBridge-1.1.39-76qw9tbk.mjs +0 -1
  705. package/dist/chunks/ink-1.1.39-f9cyw022.mjs +0 -1
  706. package/dist/chunks/insights-1.1.39-ee2ra979.mjs +0 -870
  707. package/dist/chunks/install-1.1.39-1hv4f4fk.mjs +0 -1
  708. package/dist/chunks/install-github-app-1.1.39-tg2jfpvx.mjs +0 -149
  709. package/dist/chunks/install-slack-app-1.1.39-69fgekh2.mjs +0 -1
  710. package/dist/chunks/interactiveHelpers-1.1.39-5caf0pb7.mjs +0 -1
  711. package/dist/chunks/latestVersionCache-1.1.39-31bygz1b.mjs +0 -1
  712. package/dist/chunks/loadAgentsDir-1.1.39-1jtdv1bq.mjs +0 -1
  713. package/dist/chunks/loadPluginHooks-1.1.39-4xw48447.mjs +0 -1
  714. package/dist/chunks/log-1.1.39-50bfm8j0.mjs +0 -1
  715. package/dist/chunks/main-1.1.39-f3n951kv.mjs +0 -1
  716. package/dist/chunks/managedEnv-1.1.39-bwtexcjv.mjs +0 -1
  717. package/dist/chunks/mcp-1.1.39-15sz3hsq.mjs +0 -1
  718. package/dist/chunks/mcp-1.1.39-h4h304ze.mjs +0 -4
  719. package/dist/chunks/mcp-1.1.39-rdsgsc15.mjs +0 -17
  720. package/dist/chunks/mcpb-1.1.39-5qywjc26.mjs +0 -1
  721. package/dist/chunks/memory-1.1.39-8edv180p.mjs +0 -128
  722. package/dist/chunks/model-1.1.39-95b780x9.mjs +0 -2
  723. package/dist/chunks/model-1.1.39-a5xmtpbv.mjs +0 -1
  724. package/dist/chunks/new-1.1.39-9476r8p1.mjs +0 -1
  725. package/dist/chunks/node-1.1.39-pqhskkn0.mjs +0 -15
  726. package/dist/chunks/node-1.1.39-xgvdgvgj.mjs +0 -1
  727. package/dist/chunks/oauth-1.1.39-5h69g0mf.mjs +0 -1
  728. package/dist/chunks/openaiShim-1.1.39-jnp9fkcv.mjs +0 -14
  729. package/dist/chunks/output-style-1.1.39-e5qsw51y.mjs +0 -1
  730. package/dist/chunks/package-V72LKFNW-1.1.39-0gcw2fkh.mjs +0 -1
  731. package/dist/chunks/permissions-1.1.39-0m2h5ctr.mjs +0 -3
  732. package/dist/chunks/permissions-1.1.39-djt32qkn.mjs +0 -1
  733. package/dist/chunks/plan-1.1.39-qcq9a7rg.mjs +0 -1
  734. package/dist/chunks/plist-1.1.39-esb4db3e.mjs +0 -1
  735. package/dist/chunks/plugin-1.1.39-xztkvc83.mjs +0 -29
  736. package/dist/chunks/pluginStartupCheck-1.1.39-pzynd625.mjs +0 -1
  737. package/dist/chunks/plugins-1.1.39-2vnnwfwq.mjs +0 -9
  738. package/dist/chunks/preActionHook-1.1.39-w6ay049g.mjs +0 -2
  739. package/dist/chunks/print-1.1.39-m20hre3d.mjs +0 -57
  740. package/dist/chunks/process-1.1.39-7pp4m6p6.mjs +0 -1
  741. package/dist/chunks/processBashCommand-1.1.39-z8xyxzeb.mjs +0 -1
  742. package/dist/chunks/processSlashCommand-1.1.39-025rdqc4.mjs +0 -9
  743. package/dist/chunks/prompt-1.1.39-8cves1th.mjs +0 -1
  744. package/dist/chunks/prompt-1.1.39-vys3tszv.mjs +0 -1
  745. package/dist/chunks/prompts-1.1.39-agk5ys12.mjs +0 -1
  746. package/dist/chunks/provider-1.1.39-ezn3013z.mjs +0 -2
  747. package/dist/chunks/providerProfiles-1.1.39-c20aqfkp.mjs +0 -1
  748. package/dist/chunks/providerValidation-1.1.39-5bwc03ac.mjs +0 -6
  749. package/dist/chunks/registerSubcommands-1.1.39-tg42q4mt.mjs +0 -26
  750. package/dist/chunks/registry-1.1.39-69kg9048.mjs +0 -1
  751. package/dist/chunks/release-notes-1.1.39-vm602996.mjs +0 -5
  752. package/dist/chunks/reload-plugins-1.1.39-hq5jb4fe.mjs +0 -2
  753. package/dist/chunks/remote-env-1.1.39-b742xwt8.mjs +0 -1
  754. package/dist/chunks/rename-1.1.39-37583s4r.mjs +0 -1
  755. package/dist/chunks/replLauncher-1.1.39-x7vm725e.mjs +0 -1
  756. package/dist/chunks/resume-1.1.39-7x78pwef.mjs +0 -2
  757. package/dist/chunks/rewind-1.1.39-36y4s8ng.mjs +0 -1
  758. package/dist/chunks/rootOptions-1.1.39-ns1nx8k9.mjs +0 -1
  759. package/dist/chunks/runWorkflowHeadless-1.1.39-8p1cbkrx.mjs +0 -10
  760. package/dist/chunks/sandbox-adapter-1.1.39-bt6cm9af.mjs +0 -1
  761. package/dist/chunks/sandbox-toggle-1.1.39-a3p74qsk.mjs +0 -1
  762. package/dist/chunks/session-1.1.39-qgpx4589.mjs +0 -2
  763. package/dist/chunks/sessionStorage-1.1.39-fp105vvb.mjs +0 -1
  764. package/dist/chunks/settings-1.1.39-qe258cgb.mjs +0 -1
  765. package/dist/chunks/setup-1.1.39-4zjv96k3.mjs +0 -12
  766. package/dist/chunks/sinks-1.1.39-6xx75cg6.mjs +0 -1
  767. package/dist/chunks/skills-1.1.39-2d5tfynf.mjs +0 -1
  768. package/dist/chunks/startupProfiler-1.1.39-jcvdrk17.mjs +0 -1
  769. package/dist/chunks/startupUpdateCheck-1.1.39-43maz2ha.mjs +0 -1
  770. package/dist/chunks/state-1.1.39-4sbpam9q.mjs +0 -1
  771. package/dist/chunks/stats-1.1.39-8p35mm3v.mjs +0 -1
  772. package/dist/chunks/status-1.1.39-1qcsfp99.mjs +0 -1
  773. package/dist/chunks/stickers-1.1.39-hppwbrtb.mjs +0 -1
  774. package/dist/chunks/subprocessEnv-1.1.39-hp2bbefp.mjs +0 -1
  775. package/dist/chunks/tasks-1.1.39-qs8xddg1.mjs +0 -1
  776. package/dist/chunks/teamHelpers-1.1.39-qnvqd2j1.mjs +0 -1
  777. package/dist/chunks/teammateModeSnapshot-1.1.39-pr2vnqzw.mjs +0 -1
  778. package/dist/chunks/teleport-1.1.39-zt8tze77.mjs +0 -1
  779. package/dist/chunks/terminalSetup-1.1.39-715qq4cf.mjs +0 -1
  780. package/dist/chunks/theme-1.1.39-gnxdfpcb.mjs +0 -1
  781. package/dist/chunks/toolPool-1.1.39-77884kvy.mjs +0 -1
  782. package/dist/chunks/toolSearch-1.1.39-b2k8yjaz.mjs +0 -1
  783. package/dist/chunks/tools-1.1.39-7nbe7hrf.mjs +0 -1
  784. package/dist/chunks/turndown.cjs-1.1.39-h0gz7em7.mjs +0 -69
  785. package/dist/chunks/types-1.1.39-jcqnbyss.mjs +0 -1
  786. package/dist/chunks/update-1.1.39-1w75psfh.mjs +0 -72
  787. package/dist/chunks/upload-1.1.39-z8ymn737.mjs +0 -7
  788. package/dist/chunks/upstreamproxy-1.1.39-j1d74feb.mjs +0 -14
  789. package/dist/chunks/usage-1.1.39-s31k5fep.mjs +0 -1
  790. package/dist/chunks/util-1.1.39-ad8sk0dp.mjs +0 -1
  791. package/dist/chunks/utils-1.1.39-ya8kcrhm.mjs +0 -1
  792. package/dist/chunks/vim-1.1.39-b6pfmpbz.mjs +0 -1
  793. package/dist/chunks/watchLoop-1.1.39-h3bxe3p9.mjs +0 -13
  794. package/dist/chunks/wiki-1.1.39-5aj4xh5m.mjs +0 -132
  795. package/dist/chunks/workflows-1.1.39-f31ham8r.mjs +0 -1
  796. package/dist/chunks/worktree-1.1.39-sf55cdqj.mjs +0 -1
  797. package/dist/chunks/worktreeModeEnabled-1.1.39-4ja3es46.mjs +0 -1
  798. package/dist/chunks/wrapper-1.1.39-r1fj52tb.mjs +0 -7
  799. /package/dist/chunks/{cli-1.1.39-avfsydnr.mjs → cli-1.1.40-1y2tz88m.mjs} +0 -0
  800. /package/dist/chunks/{cli-1.1.39-hn5s43sr.mjs → cli-1.1.40-3xg2bc7f.mjs} +0 -0
  801. /package/dist/chunks/{cli-1.1.39-jsnryd3j.mjs → cli-1.1.40-8vgr1z6h.mjs} +0 -0
  802. /package/dist/chunks/{cli-1.1.39-z8ts6axr.mjs → cli-1.1.40-jxfk62k7.mjs} +0 -0
  803. /package/dist/chunks/{cli-1.1.39-erbg35qn.mjs → cli-1.1.40-x18jz9h5.mjs} +0 -0
  804. /package/dist/chunks/{cli-1.1.39-qnem4654.mjs → cli-1.1.40-ys83fnw1.mjs} +0 -0
@@ -0,0 +1,3 @@
1
+ import{IL as _,UL as R}from"./cli-1.1.40-wh51ya47.mjs";import{Ofa as U,Wfa as E}from"./cli-1.1.40-hfe06y9j.mjs";import{jga as P,lga as y,rga as A}from"./cli-1.1.40-6evbnv5e.mjs";import{Nqa as v}from"./cli-1.1.40-jxfk62k7.mjs";import{basename as D}from"path";function j(z){return`$${(z??0).toFixed(2)}`}function x(z,B){return z.worktreeSession?.worktreeName??D(z.projectPath??B)}function k(z){let{currentSessionId:B,current:J,cwd:Q,now:K}=z,X=new Map(z.instanceSessionIds.map((G,V)=>[G,V])),$=new Map(z.liveElsewhere.map((G)=>[G.sessionId,G])),F=[],H=new Set;for(let G of z.logs){let V=_(G);if(!V||H.has(V))continue;H.add(V);let Y=V===B,Z=Y?void 0:$.get(V),C=Y?"current":Z?"elsewhere":X.has(V)?"open":"inactive",N=Y?J.contextTokens??G.contextTokens:G.contextTokens,M=Y?J:Z,O=M?.runningAgents??0;F.push({sessionId:V,log:G,status:C,running:Boolean(M?.turnActive)||O>0,title:((Y?J.title:void 0)??U(G)).replace(b," "),agents:String(O),where:x(G,Q),branch:G.gitBranch??"",tokens:N?P(N):"",cost:j(M?.costUSD??z.releasedCostUSD?.get(V)??G.costUSD??G.costState?.totalCostUSD),when:y(G.modified,{now:K}),holder:Z?{pid:Z.pid,cwd:Z.cwd}:void 0})}if(B!==void 0&&!H.has(B))F.push({sessionId:B,status:"current",running:J.turnActive||J.runningAgents>0,title:J.title??"(new session)",agents:String(J.runningAgents),where:D(Q),branch:J.branch??"",tokens:J.contextTokens?P(J.contextTokens):"",cost:j(J.costUSD),when:"now"});let q=(G)=>G.log?.modified.getTime()??K.getTime();return F.sort((G,V)=>W[G.status]-W[V.status]||(G.status==="open"?X.get(G.sessionId)-X.get(V.sessionId):q(V)-q(G)))}function p(z,B){let J=B.toLowerCase().split(T).filter(Boolean);if(J.length===0)return[...z];return z.filter((Q)=>{let K=Q.log,X=[Q.title,Q.where,Q.branch,K?.firstPrompt,K?.tag,K?.prRepository&&K.prNumber?`${K.prRepository}#${K.prNumber}`:void 0,Q.sessionId].filter(Boolean).join(`
2
+ `).toLowerCase();return J.every(($)=>X.includes($))})}function h(z){let B=[];return z.forEach((J,Q)=>{if(J.status==="inactive"&&Q>0&&z[Q-1].status!=="inactive")B.push({kind:"divider"});B.push({kind:"row",index:Q})}),B}function g(z,B,J,Q){let K=z;if(B<K)K=B;else if(B>=K+J)K=B-J+1;return Math.max(0,Math.min(K,Q-J))}function w(z){let B=[];if(z.busy)B.push("the running turn");if(z.runningAgents>0)B.push(`${z.runningAgents} background agent${z.runningAgents===1?"":"s"}`);return B.length>0?B.join(" and "):void 0}var W,b,T;var f=v(()=>{R();E();A();W={current:0,open:1,elsewhere:2,inactive:3},b=/\s*\n\s*/g,T=/\s+/});
3
+ export{k as Eh,p as Fh,h as Gh,g as Hh,w as Ih,f as Jh};
@@ -0,0 +1,2 @@
1
+ import{t_ as L,v_ as E}from"./cli-1.1.40-hfe06y9j.mjs";import{$ia as T,dja as y,vja as V,yja as M}from"./cli-1.1.40-cy642er2.mjs";import{Vja as B,aka as x}from"./cli-1.1.40-rq9y2zd8.mjs";var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};function m(){return j}M();E();x();y();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function c(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function p(W){let Z=c(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,H=1800000,C=3,h=60000;function l({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let J=new Map,K=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=p(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=J.get(q);if(X)clearTimeout(X);let v=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),O(q,v);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(O,G,q,v);J.set(q,k)}function S(q,Q){let $=J.get(q);if($)clearTimeout($);let X=U(q),v=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(v)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(O,v,q,X);J.set(q,Y)}async function O(q,Q){let $;try{$=await W()}catch(v){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${B(v)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let v=(K.get(q)??0)+1;if(K.set(q,v),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${v}/${C})`,{level:"error"}),L("error","bridge_token_refresh_no_oauth"),v<C){let Y=setTimeout(O,h,q,Q);J.set(q,Y)}return}K.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),Z(q,$);let X=setTimeout(O,H,q,Q);J.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(H)}`)}function D(q){U(q);let Q=J.get(q);if(Q)clearTimeout(Q),J.delete(q);K.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of J.values())clearTimeout(q);J.clear(),K.clear()}return{schedule:A,scheduleFromExpiresIn:S,cancel:D,cancelAll:_}}
2
+ export{j as kb,m as lb,p as mb,l as nb};
@@ -0,0 +1,2 @@
1
+ import{CO as k,FO as C}from"./cli-1.1.40-wh51ya47.mjs";import{M3 as q,Y3 as w,d4 as B}from"./cli-1.1.40-13e9gynq.mjs";import{Nqa as z}from"./cli-1.1.40-jxfk62k7.mjs";function J(){let x=k((b)=>b.mainLoopModel),y=k((b)=>b.mainLoopModelForSession);return w(y??x??q())}var E=z(()=>{C();B()});
2
+ export{J as bc,E as cc};
@@ -0,0 +1,2 @@
1
+ import{Nqa as j}from"./cli-1.1.40-jxfk62k7.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
+ export{q as Q6,A as R6,B as S6,D as T6,F as U6,G as V6,H as W6,k as X6};
@@ -0,0 +1,4 @@
1
+ import{Dc as Q,Ec as R,Fc as W,Gc as X,Hc as Y,Ic as Z,Jc as k}from"./cli-1.1.40-r0e1tymb.mjs";import{Kj as K,Mj as U}from"./cli-1.1.40-wh51ya47.mjs";import{Rfa as J,Wfa as N,r9 as y,s9 as M}from"./cli-1.1.40-hfe06y9j.mjs";import{Aja as G,Eja as B}from"./cli-1.1.40-fwxd22jm.mjs";import{Vja as H,aka as $}from"./cli-1.1.40-rq9y2zd8.mjs";M();$();U();N();B();k();function F(v,x,q){J(v);let z=q?`${x} plugin "${q}"`:x==="disable-all"?"disable all plugins":`${x} plugins`;console.error(`${y.cross} Failed to ${z}: ${H(v)}`),process.exit(1)}async function L(v,x="user"){try{console.log(`Installing plugin "${v}"...`);let q=await Q(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"install",v)}}async function A(v,x="user",q=!1){try{let z=await R(v,x,!q);if(!z.success)throw Error(z.message);console.log(`${y.tick} ${z.message}`),process.exit(0)}catch(z){F(z,"uninstall",v)}}async function C(v,x){try{let q=await W(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"enable",v)}}async function f(v,x){try{let q=await X(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"disable",v)}}async function O(){try{let v=await Y();if(!v.success)throw Error(v.message);console.log(`${y.tick} ${v.message}`),process.exit(0)}catch(v){F(v,"disable-all")}}async function S(v,x){try{G(`Checking for updates for plugin "${v}" at ${x} scope…
2
+ `);let q=await Z(v,x);if(!q.success)throw Error(q.message);G(`${y.tick} ${q.message}
3
+ `),await K(0)}catch(q){F(q,"update",v)}}
4
+ export{L as h,A as i,C as j,f as k,O as l,S as m};
@@ -0,0 +1,15 @@
1
+ import{Lqa as T,Nqa as J5,Oqa as M}from"./cli-1.1.40-jxfk62k7.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
2
+ ]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
3
+ Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
4
+ Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
5
+ The chosen QR Code version cannot contain this amount of data.
6
+ Minimum version required to store current data is: `+F+`.
7
+ `);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
8
+ `);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
9
+ `}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
10
+ `;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
11
+ `}if(U+=R+`
12
+ `,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
13
+ `+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
14
+ `;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
15
+ export{T5 as $d,X5 as ae};
@@ -0,0 +1,2 @@
1
+ import{$X as e2,hW as u2,lW as Z,tX as Y,vX as u}from"./cli-1.1.40-ckjrbh6b.mjs";import{C1 as t,D1 as o,E1 as U}from"./cli-1.1.40-rwbr7d1h.mjs";import{f_ as X,h_ as j}from"./cli-1.1.40-hfe06y9j.mjs";import{Jqa as s}from"./cli-1.1.40-jxfk62k7.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,O,R,k,A,a,I,i,V;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.40"," "]})]}),O=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),R=t(u,{children:" "}),k=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),l[2]=c,l[3]=O,l[4]=R,l[5]=k,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=V;else c=l[2],O=l[3],R=l[4],k=l[5],A=l[6],a=l[7],I=l[8],i=l[9],V=l[10];let M;if(l[11]===Symbol.for("react.memo_cache_sentinel"))M=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=M;else M=l[11];let E,W;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),W=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=W;else E=l[12],W=l[13];let N;if(l[14]===Symbol.for("react.memo_cache_sentinel"))N=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=N;else N=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let P;if(l[16]===Symbol.for("react.memo_cache_sentinel"))P=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=P;else P=l[16];let v;if(l[17]===Symbol.for("react.memo_cache_sentinel"))v=t(Y,{width:K,children:o(u,{children:[c,O,R,k,A,a,I,i,V,M,E,W,N,L,P,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=v;else v=l[17];return v}let B,r,D,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))B=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.40"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),D=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=B,l[19]=r,l[20]=D,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else B=l[18],r=l[19],D=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let p;if(l[34]===Symbol.for("react.memo_cache_sentinel"))p=t(Y,{width:K,children:o(u,{children:[B,r,D,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=p;else p=l[34];return p}function t2(l){let e=Q.c(44),{theme:B,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(B)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.1.40"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let V,M,E,W,N,L,P,v;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),W=t(u,{children:" "}),N=t(u,{children:" "}),L=t(u,{children:" "}),P=t(u,{children:" ░░░░░░ "}),v=t(u,{children:" ░░░ ░░░░░░░░░░ "}),V=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),e[5]=V,e[6]=M,e[7]=E,e[8]=W,e[9]=N,e[10]=L,e[11]=P,e[12]=v;else V=e[5],M=e[6],E=e[7],W=e[8],N=e[9],L=e[10],P=e[11],v=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,W,N,L,P,v,V,M,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.1.40"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,p;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),p=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=p;else C=e[33],S=e[34],w=e[35],g=e[36],p=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let O;if(e[39]===Symbol.for("react.memo_cache_sentinel"))O=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=O;else O=e[39];let R;if(e[40]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=R;else R=e[40];let k;if(e[41]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=k;else k=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,p,c,O,R,k]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
+ export{c2 as P};
@@ -0,0 +1,2 @@
1
+ import{r8 as p,s8 as a}from"./cli-1.1.40-ypd0pmm1.mjs";import{Lqa as i}from"./cli-1.1.40-jxfk62k7.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
+ export{u as M7};
@@ -0,0 +1,2 @@
1
+ import{J as K}from"./cli-1.1.40-66c2dzxw.mjs";import{Ka as L}from"./cli-1.1.40-xvw930pn.mjs";import{La as N}from"./cli-1.1.40-0507kdps.mjs";import{An as E,Ap as F,Bn as W,Bp as X,dT as J,eT as Z}from"./cli-1.1.40-wh51ya47.mjs";import{RT as H,UT as Y}from"./cli-1.1.40-718chdj8.mjs";import{J5 as V,j5 as y,k5 as z}from"./cli-1.1.40-13e9gynq.mjs";import{Gfa as v,Jfa as Q}from"./cli-1.1.40-hfe06y9j.mjs";import{Gha as q,Iha as P}from"./cli-1.1.40-904bkcqe.mjs";import{gka as b,ika as j,oka as O}from"./cli-1.1.40-tb7zgp10.mjs";O();Y();Z();Q();V();X();P();W();function A(){if(b(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||j())return;H(),J(),K(),L();let m=v()?.transport;if(m==="bedrock"&&!b(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))z();if(m==="vertex"&&!b(process.env.CLAUDIN_SKIP_VERTEX_AUTH))y();if(F(q(),AbortSignal.timeout(3000),[]),E.initialize(),!j())N.initialize()}
2
+ export{A as x};
@@ -0,0 +1,2 @@
1
+ import{Ch as Vq,Dh as fq}from"./cli-1.1.40-2e8t1hzy.mjs";import{Dx as Qq,Fx as Uq,Gx as Hq,mm as Pq,mx as o,nm as mq,nx as pq}from"./cli-1.1.40-wh51ya47.mjs";import{$X as Wq,hW as Sq,tX as M,vX as g}from"./cli-1.1.40-ckjrbh6b.mjs";import{C1 as Z,D1 as F,E1 as Jq}from"./cli-1.1.40-rwbr7d1h.mjs";import{F1 as _q}from"./cli-1.1.40-202jxgqx.mjs";import{Zfa as s,_fa as jq}from"./cli-1.1.40-6evbnv5e.mjs";import{Jqa as Lq,Nqa as wq}from"./cli-1.1.40-jxfk62k7.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
+ export{lq as ph,oq as qh,sq as rh,aq as sh,Tq as th};
@@ -0,0 +1,2 @@
1
+ import{Ma as T}from"./cli-1.1.40-aknkj6rt.mjs";import{qc as o,rc as vq}from"./cli-1.1.40-evm7c2fk.mjs";import{Bm as e,KO as D,Km as I,LO as Xq,MF as f,Nm as qq,OD as m,PD as Jq,QF as Aq,RF as p,SF as Qq,VL as a,WL as bq,dm as P,ij as C,jL as Bq,kL as Tq,kS as Zq,lm as t,wm as y}from"./cli-1.1.40-wh51ya47.mjs";import{JU as c,KU as g,VU as Gq}from"./cli-1.1.40-zc4hs061.mjs";import{Kda as j,Lda as i,Rfa as V,Wfa as r,yda as h}from"./cli-1.1.40-hfe06y9j.mjs";import{hja as x,lja as l,vja as S,yja as s}from"./cli-1.1.40-cy642er2.mjs";import{dka as U,oka as n}from"./cli-1.1.40-tb7zgp10.mjs";import{Vna as L,sna as v,zpa as wq}from"./cli-1.1.40-5m7tntdx.mjs";import{Kqa as _q}from"./cli-1.1.40-jxfk62k7.mjs";bq();async function R(){}wq();import{join as K}from"path";s();n();l();Jq();r();Xq();e();Zq();Qq();Gq();i();qq();t();var $q=30;function N(){let Q=((h()||{}).cleanupPeriodDays??$q)*24*60*60*1000;return new Date(Date.now()-Q)}function d(G,q){return{messages:G.messages+q.messages,errors:G.errors+q.errors}}function zq(G){let q=G.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(q)}async function O(G,q,Q){let J={messages:0,errors:0};try{let X=await x().readdir(G);for(let Z of X)try{if(zq(Z.name)<q)if(await x().unlink(K(G,Z.name)),Q)J.messages++;else J.errors++}catch(z){V(z)}}catch(X){if(X instanceof Error&&"code"in X&&X.code!=="ENOENT")V(X)}return J}async function Kq(){let G=x(),q=N(),Q=T.errors(),J=T.baseLogs(),X=await O(Q,q,!1);try{let Z;try{Z=await G.readdir(J)}catch{return X}let z=Z.filter(($)=>$.isDirectory()&&$.name.startsWith("mcp-logs-")).map(($)=>K(J,$.name));for(let $ of z)X=d(X,await O($,q,!0)),await Y($,G)}catch(Z){if(Z instanceof Error&&"code"in Z&&Z.code!=="ENOENT")V(Z)}return X}async function M(G,q,Q){if((await Q.stat(G)).mtime<q)return await Q.unlink(G),!0;return!1}async function Y(G,q){try{await q.rmdir(G)}catch{}}async function Yq(){let G=N(),q={messages:0,errors:0},Q=C(),J=x(),X;try{X=await J.readdir(Q)}catch{return q}for(let Z of X){if(!Z.isDirectory())continue;let z=K(Q,Z.name),$;try{$=await J.readdir(z)}catch{q.errors++;continue}for(let W of $)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await M(K(z,W.name),G,J))q.messages++}catch{q.errors++}}else if(W.isDirectory()){let A=K(z,W.name),_=K(A,I),k;try{k=await J.readdir(_)}catch{await Y(A,J);continue}for(let w of k)if(w.isFile())try{if(await M(K(_,w.name),G,J))q.messages++}catch{q.errors++}else if(w.isDirectory()){let B=K(_,w.name),H;try{H=await J.readdir(B)}catch{continue}for(let F of H){if(!F.isFile())continue;try{if(await M(K(B,F.name),G,J))q.messages++}catch{q.errors++}}await Y(B,J)}await Y(_,J),await Y(A,J)}await Y(z,J)}return q}async function E(G,q,Q=!0){let J=N(),X={messages:0,errors:0},Z=x(),z;try{z=await Z.readdir(G)}catch{return X}for(let $ of z){if(!$.isFile()||!$.name.endsWith(q))continue;try{if(await M(K(G,$.name),J,Z))X.messages++}catch{X.errors++}}if(Q)await Y(G,Z);return X}async function xq(){let G=y(),q=await E(G,".md"),Q=K(U(),"plans");if(Q!==G){let J=await E(Q,".md");return d(q,J)}return q}async function Wq(){let G=N(),q={messages:0,errors:0},Q=x();try{let J=U(),X=K(J,"file-history"),Z;try{Z=await Q.readdir(X)}catch{return q}let z=Z.filter(($)=>$.isDirectory()).map(($)=>K(X,$.name));await Promise.all(z.map(async($)=>{try{if((await Q.stat($)).mtime<G)await Q.rm($,{recursive:!0,force:!0}),q.messages++}catch{q.errors++}})),await Y(X,Q)}catch(J){V(J)}return q}async function Nq(){let G=N(),q={messages:0,errors:0},Q=x();try{let J=U(),X=K(J,"session-env"),Z;try{Z=await Q.readdir(X)}catch{return q}let z=Z.filter(($)=>$.isDirectory()).map(($)=>K(X,$.name));for(let $ of z)try{if((await Q.stat($)).mtime<G)await Q.rm($,{recursive:!0,force:!0}),q.messages++}catch{q.errors++}await Y(X,Q)}catch(J){V(J)}return q}async function Vq(){let G=N(),q={messages:0,errors:0},Q=x();try{let J=K(U(),"tasks"),X=g(c()),Z;try{Z=await Q.readdir(J)}catch{return q}for(let z of Z){if(!z.isDirectory()||z.name===X)continue;let $=K(J,z.name);try{if(await Uq($,Q)<G)await Q.rm($,{recursive:!0,force:!0}),q.messages++}catch{q.errors++}}await Y(J,Q)}catch(J){V(J)}return q}async function Uq(G,q){let Q=(await q.stat(G)).mtime,J=await q.readdir(G).catch(()=>[]);for(let X of J){if(!X.isFile())continue;try{let{mtime:Z}=await q.stat(K(G,X.name));if(Z>Q)Q=Z}catch{}}return Q}async function Mq(){let G=N(),q={messages:0,errors:0},Q=x(),J=K(U(),"debug"),X;try{X=await Q.readdir(J)}catch{return q}for(let Z of X){if(!Z.isFile()||!Z.name.endsWith(".txt")||Z.name==="latest")continue;try{if(await M(K(J,Z.name),G,Q))q.messages++}catch{q.errors++}}return q}async function u(){let{errors:G}=p();if(G.length>0&&j("cleanupPeriodDays")){S("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await Kq(),await Yq(),await xq(),await Wq(),await Nq(),await Vq(),await Mq(),await m(),await D(N());let q=await P(N())}Aq();vq();var Lq=(Tq(),_q(Bq)),b=600000;function nq(){R(),Lq.initExtractMemories(),a(),o();let G=!0;async function q(){if(L()&&v()>Date.now()-60000){setTimeout(q,b).unref();return}if(G)G=!1,await u();if(L()&&v()>Date.now()-60000){setTimeout(q,b).unref();return}await f()}setTimeout(q,b).unref()}
2
+ export{nq as Y};
@@ -0,0 +1,2 @@
1
+ import{Wc as Z,Yc as P}from"./cli-1.1.40-qj79t43w.mjs";import{Zd as Y,_d as y}from"./cli-1.1.40-z4zyefya.mjs";import{BO as X,FO as A,hx as V,iy as W,jy as K,kx as C}from"./cli-1.1.40-wh51ya47.mjs";import{C1 as H,E1 as Q}from"./cli-1.1.40-rwbr7d1h.mjs";import{F1 as M}from"./cli-1.1.40-202jxgqx.mjs";import{Xfa as L,Yfa as U}from"./cli-1.1.40-6evbnv5e.mjs";import{Jqa as B,Nqa as T}from"./cli-1.1.40-jxfk62k7.mjs";function b({children:q}){let D=W(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function j(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function v(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:_}={}){let $=(w)=>Z(H(X,{children:H(b,{children:H(Y,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=j(w);for(let w=0;w<N;w+=I){let O=await $([w,w+I]);if(L(O).trim()==="")break;await F(O),_?.(w+I)}}async function l(q,D=[],F){let E=[];return await v(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var x=T(()=>{U();y();C();K();A();P();Q();J=B(M(),1)});
2
+ export{l as Lb,x as Mb};
@@ -0,0 +1,25 @@
1
+ import{$7 as ur,O7 as nt,P7 as hl,Q7 as bl,R7 as ml,S7 as fn,T7 as $c,U7 as fu,V7 as Al,W7 as ys,X7 as El,Y7 as st,Z7 as hs,_7 as k,a8 as Qc,b8 as Bc,c8 as ra,d8 as Xc,e8 as Yc,f8 as Zc,g8 as Jc,h8 as el,i8 as Hc,j8 as cr,k8 as Cc,l8 as Ts,m8 as gl}from"./cli-1.1.40-8x5yey3y.mjs";import{n8 as ie}from"./cli-1.1.40-x07axsvg.mjs";import{q8 as kc,r8 as Le}from"./cli-1.1.40-ypd0pmm1.mjs";import{Bqa as Vc}from"./cli-1.1.40-xrdf30ff.mjs";import{Dqa as Fe,Eqa as ve,Hqa as De,Iqa as ee}from"./cli-1.1.40-fn6qzvk2.mjs";import{Lqa as E,Oqa as Bs}from"./cli-1.1.40-jxfk62k7.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
2
+ ${this.getCanonicalPath(e)}
3
+ ${er(e)}
4
+ ${n.map((s)=>`${s}:${t[s]}`).join(`
5
+ `)}
6
+
7
+ ${n.join(";")}
8
+ ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
9
+ ${e}
10
+ ${t}
11
+ ${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
12
+ `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
13
+ `+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
14
+ ${this.getCanonicalPath(e)}
15
+ ${Xr(e)}
16
+ ${n.map((s)=>`${s}:${t[s]}`).join(`
17
+ `)}
18
+
19
+ ${n.join(";")}
20
+ ${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
21
+ ${e}
22
+ ${t}
23
+ ${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
24
+ `);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
25
+ export{zl as N7};
@@ -0,0 +1,2 @@
1
+ import{$E as p,Lx as X,Mx as h,PE as Y}from"./cli-1.1.40-wh51ya47.mjs";import{$X as D,hW as v,vX as B}from"./cli-1.1.40-ckjrbh6b.mjs";import{C1 as I,D1 as J,E1 as W}from"./cli-1.1.40-rwbr7d1h.mjs";import{k_ as U,vea as b}from"./cli-1.1.40-hfe06y9j.mjs";import{Jqa as G}from"./cli-1.1.40-jxfk62k7.mjs";D();b();p();h();W();var Z=G(v(),1);function C(S){let k=Z.c(17),{customApiKeyTruncated:q,onDone:L}=S,M;if(k[0]!==q||k[1]!==L)M=function(f){k:switch(f){case"yes":{U((z)=>({...z,customApiKeyResponses:{...z.customApiKeyResponses,approved:[...z.customApiKeyResponses?.approved??[],q]}})),L(!0);break k}case"no":U((z)=>({...z,customApiKeyResponses:{...z.customApiKeyResponses,rejected:[...z.customApiKeyResponses?.rejected??[],q]}})),L(!1)}},k[0]=q,k[1]=L,k[2]=M;else M=k[2];let w=M,E;if(k[3]!==w)E=()=>w("no"),k[3]=w,k[4]=E;else E=k[4];let N;if(k[5]===Symbol.for("react.memo_cache_sentinel"))N=I(B,{bold:!0,children:"ANTHROPIC_API_KEY"}),k[5]=N;else N=k[5];let F;if(k[6]!==q)F=J(B,{children:[N,J(B,{children:[": sk-ant-...",q]})]}),k[6]=q,k[7]=F;else F=k[7];let O;if(k[8]===Symbol.for("react.memo_cache_sentinel"))O=I(B,{children:"Do you want to use this API key?"}),k[8]=O;else O=k[8];let P;if(k[9]===Symbol.for("react.memo_cache_sentinel"))P={label:"Yes",value:"yes"},k[9]=P;else P=k[9];let Q;if(k[10]===Symbol.for("react.memo_cache_sentinel"))Q=[P,{label:J(B,{children:["No (",I(B,{bold:!0,children:"recommended"}),")"]}),value:"no"}],k[10]=Q;else Q=k[10];let H;if(k[11]!==w)H=I(Y,{defaultValue:"no",defaultFocusValue:"no",options:Q,onChange:(V)=>w(V),onCancel:()=>w("no")}),k[11]=w,k[12]=H;else H=k[12];let R;if(k[13]!==E||k[14]!==F||k[15]!==H)R=J(X,{title:"Detected a custom API key in your environment",color:"warning",onCancel:E,children:[F,O,H]}),k[13]=E,k[14]=F,k[15]=H,k[16]=R;else R=k[16];return R}
2
+ export{C as Q};
@@ -0,0 +1,2 @@
1
+ import{Db as H,Gb as O}from"./cli-1.1.40-nvwa39p8.mjs";import{Se as N,Ve as P,We as R}from"./cli-1.1.40-gv0xj4g0.mjs";import{B8 as C,T8 as _}from"./cli-1.1.40-gk34ey8n.mjs";import{$ia as A,_ia as U,dja as h}from"./cli-1.1.40-cy642er2.mjs";_();R();O();var S="environments-2025-11-01",x=/^[a-zA-Z0-9_-]+$/;function M(q,J){if(!q||!x.test(q))throw Error(`Invalid ${J}: contains unsafe characters`);return q}class j extends Error{status;errorType;constructor(q,J,Q){super(q);this.name="BridgeFatalError",this.status=J,this.errorType=Q}}function f(q){function J(z){q.onDebug?.(z)}let Q=0,Z=100;function X(z){return{Authorization:`Bearer ${z}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":S,"x-environment-runner-version":q.runnerVersion}}function G(){let z=q.getAccessToken();if(!z)throw Error(H);return z}async function D(z,K){let $=G(),W=await z($);if(W.status!==401)return W;if(!q.onAuth401)return J(`[bridge:api] ${K}: 401 received, no refresh handler`),W;if(J(`[bridge:api] ${K}: 401 received, attempting token refresh`),await q.onAuth401($)){J(`[bridge:api] ${K}: Token refreshed, retrying request`);let V=G(),F=await z(V);if(F.status!==401)return F;J(`[bridge:api] ${K}: Retry after refresh also got 401`)}else J(`[bridge:api] ${K}: Token refresh failed`);return W}return{async registerBridgeEnvironment(z){J(`[bridge:api] POST /v1/environments/bridge bridgeId=${z.bridgeId}`);let K=await D(($)=>C.post(`${q.baseUrl}/v1/environments/bridge`,{machine_name:z.machineName,directory:z.dir,branch:z.branch,git_repo_url:z.gitRepoUrl,max_sessions:z.maxSessions,metadata:{worker_type:z.workerType},...z.reuseEnvironmentId&&{environment_id:z.reuseEnvironmentId}},{headers:X($),timeout:15000,validateStatus:(W)=>W<500}),"Registration");return L(K.status,K.data,"Registration"),J(`[bridge:api] POST /v1/environments/bridge -> ${K.status} environment_id=${K.data.environment_id}`),J(`[bridge:api] >>> ${N({machine_name:z.machineName,directory:z.dir,branch:z.branch,git_repo_url:z.gitRepoUrl,max_sessions:z.maxSessions,metadata:{worker_type:z.workerType}})}`),J(`[bridge:api] <<< ${N(K.data)}`),K.data},async pollForWork(z,K,$,W){M(z,"environmentId");let Y=Q;Q=0;let V=await C.get(`${q.baseUrl}/v1/environments/${z}/work/poll`,{headers:X(K),params:W!==void 0?{reclaim_older_than_ms:W}:void 0,timeout:1e4,signal:$,validateStatus:(F)=>F<500});if(L(V.status,V.data,"Poll"),!V.data){if(Q=Y+1,Q===1||Q%Z===0)J(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${Q} consecutive empty polls)`);return null}return J(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),J(`[bridge:api] <<< ${N(V.data)}`),V.data},async acknowledgeWork(z,K,$){M(z,"environmentId"),M(K,"workId"),J(`[bridge:api] POST .../work/${K}/ack`);let W=await C.post(`${q.baseUrl}/v1/environments/${z}/work/${K}/ack`,{},{headers:X($),timeout:1e4,validateStatus:(Y)=>Y<500});L(W.status,W.data,"Acknowledge"),J(`[bridge:api] POST .../work/${K}/ack -> ${W.status}`)},async stopWork(z,K,$){M(z,"environmentId"),M(K,"workId"),J(`[bridge:api] POST .../work/${K}/stop force=${$}`);let W=await D((Y)=>C.post(`${q.baseUrl}/v1/environments/${z}/work/${K}/stop`,{force:$},{headers:X(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");L(W.status,W.data,"StopWork"),J(`[bridge:api] POST .../work/${K}/stop -> ${W.status}`)},async deregisterEnvironment(z){M(z,"environmentId"),J(`[bridge:api] DELETE /v1/environments/bridge/${z}`);let K=await D(($)=>C.delete(`${q.baseUrl}/v1/environments/bridge/${z}`,{headers:X($),timeout:1e4,validateStatus:(W)=>W<500}),"Deregister");L(K.status,K.data,"Deregister"),J(`[bridge:api] DELETE /v1/environments/bridge/${z} -> ${K.status}`)},async archiveSession(z){M(z,"sessionId"),J(`[bridge:api] POST /v1/sessions/${z}/archive`);let K=await D(($)=>C.post(`${q.baseUrl}/v1/sessions/${z}/archive`,{},{headers:X($),timeout:1e4,validateStatus:(W)=>W<500}),"ArchiveSession");if(K.status===409){J(`[bridge:api] POST /v1/sessions/${z}/archive -> 409 (already archived)`);return}L(K.status,K.data,"ArchiveSession"),J(`[bridge:api] POST /v1/sessions/${z}/archive -> ${K.status}`)},async reconnectSession(z,K){M(z,"environmentId"),M(K,"sessionId"),J(`[bridge:api] POST /v1/environments/${z}/bridge/reconnect session_id=${K}`);let $=await D((W)=>C.post(`${q.baseUrl}/v1/environments/${z}/bridge/reconnect`,{session_id:K},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");L($.status,$.data,"ReconnectSession"),J(`[bridge:api] POST .../bridge/reconnect -> ${$.status}`)},async heartbeatWork(z,K,$){M(z,"environmentId"),M(K,"workId"),J(`[bridge:api] POST .../work/${K}/heartbeat`);let W=await C.post(`${q.baseUrl}/v1/environments/${z}/work/${K}/heartbeat`,{},{headers:X($),timeout:1e4,validateStatus:(Y)=>Y<500});return L(W.status,W.data,"Heartbeat"),J(`[bridge:api] POST .../work/${K}/heartbeat -> ${W.status} lease_extended=${W.data.lease_extended} state=${W.data.state}`),W.data},async sendPermissionResponseEvent(z,K,$){M(z,"sessionId"),J(`[bridge:api] POST /v1/sessions/${z}/events type=${K.type}`);let W=await C.post(`${q.baseUrl}/v1/sessions/${z}/events`,{events:[K]},{headers:X($),timeout:1e4,validateStatus:(Y)=>Y<500});L(W.status,W.data,"SendPermissionResponseEvent"),J(`[bridge:api] POST /v1/sessions/${z}/events -> ${W.status}`),J(`[bridge:api] >>> ${N({events:[K]})}`),J(`[bridge:api] <<< ${N(W.data)}`)}}}function L(q,J,Q){if(q===200||q===204)return;let Z=P(J),X=E(J);switch(q){case 401:throw new j(`${Q}: Authentication failed (401)${Z?`: ${Z}`:""}. ${H}`,401,X);case 403:throw new j(B(X)?"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.":`${Q}: Access denied (403)${Z?`: ${Z}`:""}. Check your organization permissions.`,403,X);case 404:throw new j(Z??`${Q}: Not found (404). Remote Control may not be available for this organization.`,404,X);case 410:throw new j(Z??"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.",410,X??"environment_expired");case 429:throw Error(`${Q}: Rate limited (429). Polling too frequently.`);default:throw Error(`${Q}: Failed with status ${q}${Z?`: ${Z}`:""}`)}}function B(q){if(!q)return!1;return q.includes("expired")||q.includes("lifetime")}function b(q){if(q.status!==403)return!1;return q.message.includes("external_poll_sessions")||q.message.includes("environments:manage")}function E(q){if(q&&typeof q==="object"){if("error"in q&&q.error&&typeof q.error==="object"&&"type"in q.error&&typeof q.error.type==="string")return q.error.type}return}_();h();function u(q){let J=Buffer.from(q,"base64url").toString("utf-8"),Q=A(J);if(!Q||typeof Q!=="object"||!("version"in Q)||Q.version!==1)throw Error(`Unsupported work secret version: ${Q&&typeof Q==="object"&&"version"in Q?Q.version:"unknown"}`);let Z=Q;if(typeof Z.session_ingress_token!=="string"||Z.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof Z.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return Q}function I(q,J){let Q=new URL(q).hostname,Z=Q==="localhost"||Q==="127.0.0.1",X=Z?"ws":"wss",G=Z?"v2":"v1",D=q.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${X}://${D}/${G}/session_ingress/ws/${J}`}function l(q,J){if(q===J)return!0;let Q=q.slice(q.lastIndexOf("_")+1),Z=J.slice(J.lastIndexOf("_")+1);return Q.length>=4&&Q===Z}function c(q,J){return`${q.replace(/\/+$/,"")}/v1/code/sessions/${J}`}async function g(q,J){let Q=await C.post(`${q}/worker/register`,{},{headers:{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),Z=Q.data?.worker_epoch,X=typeof Z==="string"?Number(Z):Z;if(typeof X!=="number"||!Number.isFinite(X)||!Number.isSafeInteger(X))throw Error(`registerWorker: invalid worker_epoch in response: ${U(Q.data)}`);return X}function i(q){let J=new AbortController;function Q(){J.abort(),J=new AbortController}function Z(){let X=new AbortController,G=()=>X.abort();if(q.aborted||J.signal.aborted)return X.abort(),{signal:X.signal,cleanup:()=>{}};q.addEventListener("abort",G,{once:!0});let D=J.signal;return D.addEventListener("abort",G,{once:!0}),{signal:X.signal,cleanup:()=>{q.removeEventListener("abort",G),D.removeEventListener("abort",G)}}}return{signal:Z,wake:Q}}
2
+ export{M as $a,j as ab,f as bb,B as cb,b as db,u as eb,I as fb,l as gb,c as hb,g as ib,i as jb};
@@ -0,0 +1,2 @@
1
+ import{Nqa as V}from"./cli-1.1.40-jxfk62k7.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
+ export{U0 as Apa,E0 as Bpa,I0 as Cpa,D0 as Dpa,b as Epa,T as Fpa,K as Gpa,z as Hpa,B as Ipa,x as Jpa,k as Kpa,m as Lpa,G as Mpa,O as Npa,y as Opa,l as Ppa,o as Qpa,i as Rpa,D as Spa,R as Tpa,x0 as Upa,O0 as Vpa,M as Wpa,p0 as Xpa,j6 as Ypa,nq as Zpa};
@@ -0,0 +1,2 @@
1
+ import{J5 as D,p5 as q}from"./cli-1.1.40-13e9gynq.mjs";import{uia as m,via as z}from"./cli-1.1.40-2ted9r2b.mjs";import{Nqa as x}from"./cli-1.1.40-jxfk62k7.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
2
+ export{E as li,F as mi,K as ni,M as oi,G as pi};
@@ -0,0 +1,2 @@
1
+ import{Kr as X,cn as O,dn as P,en as Q,fk as M,fn as U,gk as W}from"./cli-1.1.40-wh51ya47.mjs";import{Nqa as V}from"./cli-1.1.40-jxfk62k7.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
+ export{F as qg,$ as rg};
@@ -0,0 +1,2 @@
1
+ import{Mqa as Q,Nqa as U}from"./cli-1.1.40-jxfk62k7.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
2
+ export{K as a9,w as b9,L as c9};
@@ -0,0 +1,2 @@
1
+ import{Is as R,Js as T,Ks as $,gC as U,hC as V,kC as f}from"./cli-1.1.40-wh51ya47.mjs";import{A3 as Q,B3 as _}from"./cli-1.1.40-13e9gynq.mjs";import{Kaa as L,Raa as Y,Rfa as G,Wfa as Z}from"./cli-1.1.40-hfe06y9j.mjs";import{Nqa as X}from"./cli-1.1.40-jxfk62k7.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
2
+ export{O as Pb,S as Qb,I as Rb,N as Sb,P as Tb,h as Ub};