@claudiolabs/claudio 0.1.11 → 0.1.13

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 (652) hide show
  1. package/bin/claudio +7 -0
  2. package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +1 -0
  3. package/dist/chunks/App-0.1.13-45tpe56w.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +1 -0
  5. package/dist/chunks/{AssistantSessionChooser-0.1.11-kb5jvw8n.mjs → AssistantSessionChooser-0.1.13-tcg2ckh4.mjs} +1 -1
  6. package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.13-3a9b1b48.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +1 -0
  15. package/dist/chunks/{InProcessTransport-0.1.11-xecmx0sw.mjs → InProcessTransport-0.1.13-k5mkjvww.mjs} +1 -1
  16. package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.13-j8d7hwbe.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +1 -0
  23. package/dist/chunks/{SnapshotUpdateDialog-0.1.11-h881m192.mjs → SnapshotUpdateDialog-0.1.13-has41zv0.mjs} +1 -1
  24. package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +1 -0
  32. package/dist/chunks/agents-0.1.13-a0aj4df9.mjs +111 -0
  33. package/dist/chunks/agents-0.1.13-phdd6357.mjs +3 -0
  34. package/dist/chunks/api-0.1.13-vmdan95h.mjs +1 -0
  35. package/dist/chunks/{asciicast-0.1.11-7mkaazy8.mjs → asciicast-0.1.13-d6ce2h4r.mjs} +1 -1
  36. package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +1 -0
  37. package/dist/chunks/{auth-0.1.11-p47wajra.mjs → auth-0.1.13-fwdmg15h.mjs} +1 -1
  38. package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +1 -0
  39. package/dist/chunks/{autoMode-0.1.11-nv8vsag0.mjs → autoMode-0.1.13-4xh49kt4.mjs} +1 -1
  40. package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +1 -0
  41. package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +4 -0
  42. package/dist/chunks/{bridgePointer-0.1.11-wr8dfs91.mjs → bridgePointer-0.1.13-s1qw0857.mjs} +1 -1
  43. package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +1 -0
  44. package/dist/chunks/{buddy-0.1.11-gsj76spy.mjs → buddy-0.1.13-2wvpbqx1.mjs} +1 -1
  45. package/dist/chunks/{cacache-0.1.11-wtz0ca19.mjs → cacache-0.1.13-sy5bqn6j.mjs} +1 -1
  46. package/dist/chunks/{cache-probe-0.1.11-pgsemwpr.mjs → cache-probe-0.1.13-ze8mf958.mjs} +1 -1
  47. package/dist/chunks/{cacheStats-0.1.11-1zqq6pm7.mjs → cacheStats-0.1.13-jtrw4rdj.mjs} +1 -1
  48. package/dist/chunks/caches-0.1.13-0swwryxr.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +1 -0
  50. package/dist/chunks/{chromeNativeHost-0.1.11-m5kskzjw.mjs → chromeNativeHost-0.1.13-96ex7t46.mjs} +1 -1
  51. package/dist/chunks/{claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs → claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs} +1 -1
  52. package/dist/chunks/{claudeDesktop-0.1.11-zpdtj6k8.mjs → claudeDesktop-0.1.13-fs8rre9b.mjs} +1 -1
  53. package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +1 -0
  54. package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +1 -0
  56. package/dist/chunks/cli-0.1.13-00qdyz6f.mjs +3 -0
  57. package/dist/chunks/cli-0.1.13-0b728dvh.mjs +2 -0
  58. package/dist/chunks/{cli-0.1.11-4ggr81tw.mjs → cli-0.1.13-0gfnmq08.mjs} +2 -2
  59. package/dist/chunks/cli-0.1.13-0gyt273r.mjs +2 -0
  60. package/dist/chunks/cli-0.1.13-0hyneh5t.mjs +9 -0
  61. package/dist/chunks/{cli-0.1.11-rj68n2kw.mjs → cli-0.1.13-0p3b9j40.mjs} +2 -2
  62. package/dist/chunks/{cli-0.1.11-50naxqgt.mjs → cli-0.1.13-0xy8k6yv.mjs} +2 -2
  63. package/dist/chunks/{cli-0.1.11-yv5pfq6n.mjs → cli-0.1.13-0zpmhn2j.mjs} +2 -2
  64. package/dist/chunks/{cli-0.1.11-wc9bay3d.mjs → cli-0.1.13-13fh0g36.mjs} +2 -2
  65. package/dist/chunks/{cli-0.1.11-vq5fvf9m.mjs → cli-0.1.13-144gn3fd.mjs} +3 -3
  66. package/dist/chunks/{cli-0.1.11-d3exw047.mjs → cli-0.1.13-1g6bgaa6.mjs} +2 -2
  67. package/dist/chunks/{cli-0.1.11-nhwmv5g6.mjs → cli-0.1.13-1gbn4dgj.mjs} +1 -1
  68. package/dist/chunks/{cli-0.1.11-rj9ea3zn.mjs → cli-0.1.13-1hw65avy.mjs} +2 -2
  69. package/dist/chunks/cli-0.1.13-1pxg82cx.mjs +2 -0
  70. package/dist/chunks/cli-0.1.13-1y21vq1h.mjs +2 -0
  71. package/dist/chunks/{cli-0.1.11-852v06g0.mjs → cli-0.1.13-2c7g6rpx.mjs} +2 -2
  72. package/dist/chunks/{cli-0.1.11-h2hxx8ma.mjs → cli-0.1.13-2cdtdhek.mjs} +5 -5
  73. package/dist/chunks/{cli-0.1.11-t07hba0z.mjs → cli-0.1.13-2sx61wcx.mjs} +1 -1
  74. package/dist/chunks/{cli-0.1.11-16086k9e.mjs → cli-0.1.13-2vrh3n9y.mjs} +2 -2
  75. package/dist/chunks/{cli-0.1.11-70f778wy.mjs → cli-0.1.13-30j4h365.mjs} +2 -2
  76. package/dist/chunks/{cli-0.1.11-7tybqg56.mjs → cli-0.1.13-3k1n20ra.mjs} +1 -1
  77. package/dist/chunks/{cli-0.1.11-y909w8bb.mjs → cli-0.1.13-3pctg5zc.mjs} +1 -1
  78. package/dist/chunks/{cli-0.1.11-dpfxvfty.mjs → cli-0.1.13-3rr4fg79.mjs} +2 -2
  79. package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +2 -0
  80. package/dist/chunks/{cli-0.1.11-fstfs72j.mjs → cli-0.1.13-4prgqshq.mjs} +2 -2
  81. package/dist/chunks/{cli-0.1.11-5hs4xyjq.mjs → cli-0.1.13-5061js0h.mjs} +2 -2
  82. package/dist/chunks/{cli-0.1.11-rrnr3ab1.mjs → cli-0.1.13-52f40ba4.mjs} +2 -2
  83. package/dist/chunks/cli-0.1.13-579v6j6d.mjs +4 -0
  84. package/dist/chunks/cli-0.1.13-5b7hgn91.mjs +2 -0
  85. package/dist/chunks/{cli-0.1.11-v6kwgrqc.mjs → cli-0.1.13-5c4fyghf.mjs} +2 -2
  86. package/dist/chunks/{cli-0.1.11-hmfevmz1.mjs → cli-0.1.13-5d4ke9a2.mjs} +2 -2
  87. package/dist/chunks/cli-0.1.13-5j5bg3t2.mjs +2 -0
  88. package/dist/chunks/{cli-0.1.11-p22bdjhv.mjs → cli-0.1.13-5krmz4nd.mjs} +2 -2
  89. package/dist/chunks/cli-0.1.13-5rnhv49w.mjs +2 -0
  90. package/dist/chunks/{cli-0.1.11-r990p54m.mjs → cli-0.1.13-5s4m8qj9.mjs} +5 -5
  91. package/dist/chunks/{cli-0.1.11-b0jasw23.mjs → cli-0.1.13-5ydypzty.mjs} +3 -3
  92. package/dist/chunks/cli-0.1.13-6gmqjyv9.mjs +2 -0
  93. package/dist/chunks/cli-0.1.13-6p0jxfnp.mjs +2 -0
  94. package/dist/chunks/cli-0.1.13-6q3wa261.mjs +2 -0
  95. package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +3 -0
  96. package/dist/chunks/{cli-0.1.11-chnrb9xx.mjs → cli-0.1.13-73yztj5x.mjs} +1 -1
  97. package/dist/chunks/cli-0.1.13-79vtnprb.mjs +2 -0
  98. package/dist/chunks/cli-0.1.13-84tbx1nf.mjs +3 -0
  99. package/dist/chunks/{cli-0.1.11-21epc92q.mjs → cli-0.1.13-85w0nxy9.mjs} +2 -2
  100. package/dist/chunks/{cli-0.1.11-8qrhqvh5.mjs → cli-0.1.13-87xfe2f3.mjs} +2 -2
  101. package/dist/chunks/{cli-0.1.11-bwpemkht.mjs → cli-0.1.13-8gd1x101.mjs} +2 -2
  102. package/dist/chunks/{cli-0.1.11-e5ecf583.mjs → cli-0.1.13-8ppsn0an.mjs} +2 -2
  103. package/dist/chunks/{cli-0.1.11-ft47r1wq.mjs → cli-0.1.13-8pw4n94k.mjs} +2 -2
  104. package/dist/chunks/{cli-0.1.11-tvfkn5mh.mjs → cli-0.1.13-8snyqhjj.mjs} +2 -2
  105. package/dist/chunks/{cli-0.1.11-v8j5bkfs.mjs → cli-0.1.13-8sszxge2.mjs} +1 -1
  106. package/dist/chunks/cli-0.1.13-9043n2e8.mjs +2 -0
  107. package/dist/chunks/cli-0.1.13-91b1h8ww.mjs +2 -0
  108. package/dist/chunks/{cli-0.1.11-mj78w4sp.mjs → cli-0.1.13-9a1hzdsv.mjs} +2 -2
  109. package/dist/chunks/cli-0.1.13-9jajvw4r.mjs +2 -0
  110. package/dist/chunks/cli-0.1.13-a4xga299.mjs +50 -0
  111. package/dist/chunks/cli-0.1.13-ajsw8n7h.mjs +5 -0
  112. package/dist/chunks/cli-0.1.13-apjxy5tn.mjs +2 -0
  113. package/dist/chunks/{cli-0.1.11-0tge574q.mjs → cli-0.1.13-asrdd8dh.mjs} +2 -2
  114. package/dist/chunks/cli-0.1.13-b24n1wvw.mjs +2 -0
  115. package/dist/chunks/{cli-0.1.11-2w8d5vqb.mjs → cli-0.1.13-b3xc1r3k.mjs} +2 -2
  116. package/dist/chunks/cli-0.1.13-b40skdsz.mjs +2 -0
  117. package/dist/chunks/{cli-0.1.11-yrfxpjhr.mjs → cli-0.1.13-bj67mp7n.mjs} +1 -1
  118. package/dist/chunks/{cli-0.1.11-dcswnc8x.mjs → cli-0.1.13-bkg3sva7.mjs} +2 -2
  119. package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +16 -0
  120. package/dist/chunks/{cli-0.1.11-qrq0sw0h.mjs → cli-0.1.13-c5b4ygdq.mjs} +2 -2
  121. package/dist/chunks/{cli-0.1.11-jj3s3dxd.mjs → cli-0.1.13-cjmpc9q5.mjs} +2 -2
  122. package/dist/chunks/cli-0.1.13-ck28msre.mjs +2 -0
  123. package/dist/chunks/cli-0.1.13-crcgrfse.mjs +2 -0
  124. package/dist/chunks/{cli-0.1.11-t7dc7fbj.mjs → cli-0.1.13-ct9m5223.mjs} +2 -2
  125. package/dist/chunks/{cli-0.1.11-ctjvkg5k.mjs → cli-0.1.13-ctjpk124.mjs} +2 -2
  126. package/dist/chunks/{cli-0.1.11-1xr9et85.mjs → cli-0.1.13-cyj5snev.mjs} +2 -2
  127. package/dist/chunks/{cli-0.1.11-5hrysrcd.mjs → cli-0.1.13-d66pryf3.mjs} +1 -1
  128. package/dist/chunks/{cli-0.1.11-h762f6hr.mjs → cli-0.1.13-d6tr2j76.mjs} +2 -2
  129. package/dist/chunks/cli-0.1.13-d85aba8r.mjs +2 -0
  130. package/dist/chunks/cli-0.1.13-d8wkcw90.mjs +25 -0
  131. package/dist/chunks/{cli-0.1.11-v7bwjqf0.mjs → cli-0.1.13-dag38tkx.mjs} +55 -55
  132. package/dist/chunks/{cli-0.1.11-jye250b3.mjs → cli-0.1.13-dak36ez8.mjs} +1 -1
  133. package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +2 -0
  134. package/dist/chunks/cli-0.1.13-dmgp48vg.mjs +2 -0
  135. package/dist/chunks/cli-0.1.13-e58n0k16.mjs +2 -0
  136. package/dist/chunks/cli-0.1.13-eh7dqeqt.mjs +2 -0
  137. package/dist/chunks/{cli-0.1.11-d4ahh3jz.mjs → cli-0.1.13-f6gfa426.mjs} +2 -2
  138. package/dist/chunks/{cli-0.1.11-pr9jdfxt.mjs → cli-0.1.13-fabrrwqa.mjs} +1 -1
  139. package/dist/chunks/cli-0.1.13-fh5dndvp.mjs +5043 -0
  140. package/dist/chunks/{cli-0.1.11-cezypfbt.mjs → cli-0.1.13-ft5k86va.mjs} +2 -2
  141. package/dist/chunks/{cli-0.1.11-hgsa4nnp.mjs → cli-0.1.13-fwd5b6q8.mjs} +1 -1
  142. package/dist/chunks/{cli-0.1.11-jkrt4znb.mjs → cli-0.1.13-fz5dm31h.mjs} +2 -2
  143. package/dist/chunks/cli-0.1.13-fzb4yx18.mjs +24 -0
  144. package/dist/chunks/{cli-0.1.11-g2202evh.mjs → cli-0.1.13-g2v4avcv.mjs} +1 -1
  145. package/dist/chunks/cli-0.1.13-g654740k.mjs +2 -0
  146. package/dist/chunks/{cli-0.1.11-w3trj52p.mjs → cli-0.1.13-ga4mmwbc.mjs} +2 -2
  147. package/dist/chunks/{cli-0.1.11-nx8a99hz.mjs → cli-0.1.13-gd3nndc7.mjs} +2 -2
  148. package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +2 -0
  149. package/dist/chunks/{cli-0.1.11-z4hb2mcd.mjs → cli-0.1.13-gvz2qezh.mjs} +2 -2
  150. package/dist/chunks/cli-0.1.13-h3vb5402.mjs +2 -0
  151. package/dist/chunks/{cli-0.1.11-qpzn4q17.mjs → cli-0.1.13-h7a36dnk.mjs} +2 -2
  152. package/dist/chunks/cli-0.1.13-hgkwnhwv.mjs +2 -0
  153. package/dist/chunks/cli-0.1.13-hjqn3n5a.mjs +59 -0
  154. package/dist/chunks/cli-0.1.13-hyvpn2ht.mjs +45 -0
  155. package/dist/chunks/{cli-0.1.11-jjgjkqqv.mjs → cli-0.1.13-hzdj03rn.mjs} +2 -2
  156. package/dist/chunks/{cli-0.1.11-91mf8dfr.mjs → cli-0.1.13-j7796v8f.mjs} +2 -2
  157. package/dist/chunks/{cli-0.1.11-z62s8qx1.mjs → cli-0.1.13-jakv6e7b.mjs} +1 -1
  158. package/dist/chunks/{cli-0.1.11-6r97rwda.mjs → cli-0.1.13-jeyjdb2m.mjs} +2 -2
  159. package/dist/chunks/{cli-0.1.11-h7e4rkwk.mjs → cli-0.1.13-jz57znb6.mjs} +2 -2
  160. package/dist/chunks/{cli-0.1.11-sma2xhvv.mjs → cli-0.1.13-ks4x4cct.mjs} +2 -2
  161. package/dist/chunks/cli-0.1.13-ky4z1s1h.mjs +20 -0
  162. package/dist/chunks/{cli-0.1.11-ek6mck0j.mjs → cli-0.1.13-kzn9sspk.mjs} +1 -1
  163. package/dist/chunks/{cli-0.1.11-fs3d0ajf.mjs → cli-0.1.13-m5aaczvd.mjs} +1 -1
  164. package/dist/chunks/{cli-0.1.11-p4eeg584.mjs → cli-0.1.13-m61dhxfs.mjs} +2 -2
  165. package/dist/chunks/{cli-0.1.11-7vz357wm.mjs → cli-0.1.13-mahtf0ay.mjs} +2 -2
  166. package/dist/chunks/cli-0.1.13-mezw1vk8.mjs +18 -0
  167. package/dist/chunks/{cli-0.1.11-egck69w4.mjs → cli-0.1.13-mkw72mxc.mjs} +2 -2
  168. package/dist/chunks/{cli-0.1.11-q58q9jqr.mjs → cli-0.1.13-myd004mr.mjs} +2 -2
  169. package/dist/chunks/cli-0.1.13-mywk7e49.mjs +134 -0
  170. package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +2 -0
  171. package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +2 -0
  172. package/dist/chunks/cli-0.1.13-nc3ce357.mjs +2 -0
  173. package/dist/chunks/{cli-0.1.11-kghg51gb.mjs → cli-0.1.13-nc8ww3rn.mjs} +2 -2
  174. package/dist/chunks/{cli-0.1.11-rvk3t45h.mjs → cli-0.1.13-njvp7vtc.mjs} +2 -2
  175. package/dist/chunks/cli-0.1.13-nsbk0w3b.mjs +2 -0
  176. package/dist/chunks/{cli-0.1.11-jr50ahcv.mjs → cli-0.1.13-nwt2jc8b.mjs} +2 -2
  177. package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +2 -0
  178. package/dist/chunks/{cli-0.1.11-56bdg2vw.mjs → cli-0.1.13-p2wyk6z7.mjs} +1 -1
  179. package/dist/chunks/{cli-0.1.11-h7phna9g.mjs → cli-0.1.13-p4nz8zmd.mjs} +1 -1
  180. package/dist/chunks/cli-0.1.13-p625yxtg.mjs +2 -0
  181. package/dist/chunks/{cli-0.1.11-96y2d09c.mjs → cli-0.1.13-p84ry3q5.mjs} +1 -1
  182. package/dist/chunks/{cli-0.1.11-1bryv90w.mjs → cli-0.1.13-pqk4c7m7.mjs} +2 -2
  183. package/dist/chunks/{cli-0.1.11-7qpnfx56.mjs → cli-0.1.13-pw5dks39.mjs} +2 -2
  184. package/dist/chunks/cli-0.1.13-q93vqpjh.mjs +833 -0
  185. package/dist/chunks/{cli-0.1.11-y4c6y87y.mjs → cli-0.1.13-qdtwrf9z.mjs} +2 -2
  186. package/dist/chunks/cli-0.1.13-qxtrzerx.mjs +2 -0
  187. package/dist/chunks/{cli-0.1.11-fptq9w4t.mjs → cli-0.1.13-r09724ac.mjs} +1 -1
  188. package/dist/chunks/{cli-0.1.11-5vqj6k7m.mjs → cli-0.1.13-rftgy1b8.mjs} +2 -2
  189. package/dist/chunks/cli-0.1.13-rjjyq9ej.mjs +2 -0
  190. package/dist/chunks/{cli-0.1.11-gdcvfp9f.mjs → cli-0.1.13-rkaxch5j.mjs} +2 -2
  191. package/dist/chunks/cli-0.1.13-s6w3ej6f.mjs +3 -0
  192. package/dist/chunks/cli-0.1.13-s90a26ca.mjs +2 -0
  193. package/dist/chunks/cli-0.1.13-s928gjab.mjs +5 -0
  194. package/dist/chunks/{cli-0.1.11-7mmhsc3x.mjs → cli-0.1.13-s9fgd2dx.mjs} +2 -2
  195. package/dist/chunks/{cli-0.1.11-3p2f194m.mjs → cli-0.1.13-saz6qetz.mjs} +2 -2
  196. package/dist/chunks/{cli-0.1.11-weav8142.mjs → cli-0.1.13-sgxk7d0h.mjs} +2 -2
  197. package/dist/chunks/cli-0.1.13-sr9axhrw.mjs +2 -0
  198. package/dist/chunks/{cli-0.1.11-6vqzqsdj.mjs → cli-0.1.13-ss1k5gqk.mjs} +2 -2
  199. package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +4 -0
  200. package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +2 -0
  201. package/dist/chunks/cli-0.1.13-t34z5r3c.mjs +2 -0
  202. package/dist/chunks/{cli-0.1.11-w3fp9par.mjs → cli-0.1.13-t5w452fj.mjs} +1 -1
  203. package/dist/chunks/cli-0.1.13-tknwgkgp.mjs +17 -0
  204. package/dist/chunks/{cli-0.1.11-hhs8ke9g.mjs → cli-0.1.13-tq3dqmem.mjs} +2 -2
  205. package/dist/chunks/{cli-0.1.11-h3jatwe1.mjs → cli-0.1.13-v1b9yhsy.mjs} +1 -1
  206. package/dist/chunks/{cli-0.1.11-mstxxz33.mjs → cli-0.1.13-v32xwe08.mjs} +2 -2
  207. package/dist/chunks/{cli-0.1.11-sqqzwx4h.mjs → cli-0.1.13-v467fj8c.mjs} +2 -2
  208. package/dist/chunks/cli-0.1.13-v56n2wqm.mjs +2 -0
  209. package/dist/chunks/{cli-0.1.11-s6yfjcm5.mjs → cli-0.1.13-v6z41645.mjs} +2 -2
  210. package/dist/chunks/cli-0.1.13-vdz792pb.mjs +2 -0
  211. package/dist/chunks/{cli-0.1.11-anvzywg4.mjs → cli-0.1.13-vj532g9m.mjs} +1 -1
  212. package/dist/chunks/{cli-0.1.11-anegs86e.mjs → cli-0.1.13-vn7ckv16.mjs} +1 -1
  213. package/dist/chunks/cli-0.1.13-vwt4hc0t.mjs +2 -0
  214. package/dist/chunks/{cli-0.1.11-bbx2h4x9.mjs → cli-0.1.13-w08qr05m.mjs} +2 -2
  215. package/dist/chunks/cli-0.1.13-w8h6wdez.mjs +2 -0
  216. package/dist/chunks/{cli-0.1.11-d10nfa6g.mjs → cli-0.1.13-wh68ve92.mjs} +2 -2
  217. package/dist/chunks/{cli-0.1.11-bqpcwywz.mjs → cli-0.1.13-wpsqhe6v.mjs} +2 -2
  218. package/dist/chunks/{cli-0.1.11-424zgj5k.mjs → cli-0.1.13-wr0c9hyh.mjs} +2 -2
  219. package/dist/chunks/{cli-0.1.11-7xr2ermy.mjs → cli-0.1.13-wwnez3j0.mjs} +2 -2
  220. package/dist/chunks/{cli-0.1.11-6zkfmcxp.mjs → cli-0.1.13-wxdmc1dd.mjs} +2 -2
  221. package/dist/chunks/{cli-0.1.11-0n77qn68.mjs → cli-0.1.13-wz7v1tqx.mjs} +2 -2
  222. package/dist/chunks/{cli-0.1.11-n24p2y0p.mjs → cli-0.1.13-x3zt8q8r.mjs} +1 -1
  223. package/dist/chunks/{cli-0.1.11-05ngjm8p.mjs → cli-0.1.13-x461rxn2.mjs} +2 -2
  224. package/dist/chunks/cli-0.1.13-x4n4my99.mjs +2 -0
  225. package/dist/chunks/{cli-0.1.11-ktwtyqmp.mjs → cli-0.1.13-xde08pkt.mjs} +2 -2
  226. package/dist/chunks/{cli-0.1.11-5e45zda5.mjs → cli-0.1.13-xkdwvsg9.mjs} +2 -2
  227. package/dist/chunks/{cli-0.1.11-98zcwng9.mjs → cli-0.1.13-xv6wh44y.mjs} +2 -2
  228. package/dist/chunks/{cli-0.1.11-3tqzgd9f.mjs → cli-0.1.13-xvvtja1h.mjs} +2 -2
  229. package/dist/chunks/cli-0.1.13-xwkys72y.mjs +12 -0
  230. package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +4 -0
  231. package/dist/chunks/cli-0.1.13-y3e5jkh7.mjs +2 -0
  232. package/dist/chunks/{cli-0.1.11-be28ty4m.mjs → cli-0.1.13-y7aqqca1.mjs} +1 -1
  233. package/dist/chunks/{cli-0.1.11-zb2sa3e2.mjs → cli-0.1.13-yd536yw4.mjs} +7 -10
  234. package/dist/chunks/{cli-0.1.11-zfnmx1ny.mjs → cli-0.1.13-yeb03vme.mjs} +2 -2
  235. package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +2 -0
  236. package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +2 -0
  237. package/dist/chunks/cli-0.1.13-z0jm6xd0.mjs +2 -0
  238. package/dist/chunks/cli-0.1.13-z387wpj9.mjs +2 -0
  239. package/dist/chunks/cli-0.1.13-zgnanj3x.mjs +12 -0
  240. package/dist/chunks/cli-0.1.13-zm2zgw7m.mjs +3 -0
  241. package/dist/chunks/cli-0.1.13-zmft0mps.mjs +2 -0
  242. package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +1 -0
  243. package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +1 -0
  244. package/dist/chunks/compact-0.1.13-603r2t03.mjs +3 -0
  245. package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +1 -0
  246. package/dist/chunks/{config-0.1.11-cqy7fnab.mjs → config-0.1.13-q8fcew9w.mjs} +1 -1
  247. package/dist/chunks/context-0.1.13-5fz212w3.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +1 -0
  249. package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +1 -0
  250. package/dist/chunks/copy-0.1.13-03jy5tfn.mjs +9 -0
  251. package/dist/chunks/cost-0.1.13-zch21h6x.mjs +1 -0
  252. package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +1 -0
  253. package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +1 -0
  254. package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +1 -0
  255. package/dist/chunks/detection-0.1.13-k001d88v.mjs +1 -0
  256. package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +1 -0
  257. package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +1 -0
  258. package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +1 -0
  259. package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +8 -0
  260. package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +1 -0
  261. package/dist/chunks/environments-0.1.13-x1xw45es.mjs +1 -0
  262. package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +1 -0
  263. package/dist/chunks/export-0.1.13-sq3jk66f.mjs +2 -0
  264. package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +1 -0
  265. package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +1 -0
  266. package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +1 -0
  267. package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +14 -0
  268. package/dist/chunks/{firstPartyEventLogger-0.1.11-y7qkhdj6.mjs → firstPartyEventLogger-0.1.13-6m3fvkcj.mjs} +1 -1
  269. package/dist/chunks/git-0.1.13-2rp45xgd.mjs +1 -0
  270. package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +1 -0
  271. package/dist/chunks/{growthbook-0.1.11-2w2b1mzd.mjs → growthbook-0.1.13-sramqmzv.mjs} +1 -1
  272. package/dist/chunks/{heapdump-0.1.11-b216wzt7.mjs → heapdump-0.1.13-3n7hv372.mjs} +1 -1
  273. package/dist/chunks/help-0.1.13-knrgw1dq.mjs +1 -0
  274. package/dist/chunks/{hookChains-0.1.11-jp8f82q7.mjs → hookChains-0.1.13-te9q466p.mjs} +2 -2
  275. package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +1 -0
  276. package/dist/chunks/hooks-0.1.13-g6kx1mk3.mjs +79 -0
  277. package/dist/chunks/ide-0.1.13-ke3v5mb7.mjs +3 -0
  278. package/dist/chunks/{image-processor-napi-0.1.11-dpg3ygnw.mjs → image-processor-napi-0.1.13-h7fg935p.mjs} +1 -1
  279. package/dist/chunks/{index-0.1.11-b2q967nq.mjs → index-0.1.13-018yhz6j.mjs} +1 -1
  280. package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +1 -0
  281. package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +1 -0
  282. package/dist/chunks/{index-0.1.11-wbhj1ny7.mjs → index-0.1.13-3zjrdjrv.mjs} +1 -1
  283. package/dist/chunks/index-0.1.13-4cjfx282.mjs +1 -0
  284. package/dist/chunks/index-0.1.13-5g9shrc4.mjs +9 -0
  285. package/dist/chunks/index-0.1.13-7c5y7cbf.mjs +2 -0
  286. package/dist/chunks/index-0.1.13-7fm7tk25.mjs +1 -0
  287. package/dist/chunks/index-0.1.13-98j8cxkv.mjs +1 -0
  288. package/dist/chunks/index-0.1.13-9meb2pab.mjs +1 -0
  289. package/dist/chunks/index-0.1.13-a06q9ad9.mjs +2 -0
  290. package/dist/chunks/index-0.1.13-bc4sh2m1.mjs +1 -0
  291. package/dist/chunks/index-0.1.13-c29wq5dx.mjs +5 -0
  292. package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +1 -0
  293. package/dist/chunks/index-0.1.13-h4wytk4z.mjs +1 -0
  294. package/dist/chunks/index-0.1.13-j9c4bjzh.mjs +1 -0
  295. package/dist/chunks/index-0.1.13-m9m61529.mjs +1 -0
  296. package/dist/chunks/index-0.1.13-mc5ag4wj.mjs +1 -0
  297. package/dist/chunks/index-0.1.13-nm8pkj0f.mjs +9 -0
  298. package/dist/chunks/index-0.1.13-psynrf7p.mjs +10 -0
  299. package/dist/chunks/index-0.1.13-qjt3h799.mjs +1 -0
  300. package/dist/chunks/index-0.1.13-tvt8fxrq.mjs +1 -0
  301. package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +1 -0
  302. package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +1 -0
  303. package/dist/chunks/{insights-0.1.11-4yjg2bxs.mjs → insights-0.1.13-t81417ej.mjs} +3 -3
  304. package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +1 -0
  305. package/dist/chunks/install-github-app-0.1.13-yvnx16za.mjs +149 -0
  306. package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +1 -0
  307. package/dist/chunks/instrumentation-0.1.13-bvt39wrk.mjs +12 -0
  308. package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +1 -0
  309. package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +2 -0
  310. package/dist/chunks/{knowledge-0.1.11-wpjw8ybd.mjs → knowledge-0.1.13-9a2md3fm.mjs} +1 -1
  311. package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +1 -0
  312. package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +1 -0
  313. package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +1 -0
  314. package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +1 -0
  315. package/dist/chunks/main-0.1.13-e5tbkphz.mjs +1 -0
  316. package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +1 -0
  317. package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +4 -0
  318. package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +1 -0
  319. package/dist/chunks/mcp-0.1.13-x9twbpqk.mjs +17 -0
  320. package/dist/chunks/{mcpServer-0.1.11-czg51mvy.mjs → mcpServer-0.1.13-jf5dhyys.mjs} +1 -1
  321. package/dist/chunks/{mcpb-0.1.11-czkze48a.mjs → mcpb-0.1.13-e55321kr.mjs} +1 -1
  322. package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +3 -0
  323. package/dist/chunks/mobile-0.1.13-pzekbte3.mjs +2 -0
  324. package/dist/chunks/model-0.1.13-a42465ep.mjs +1 -0
  325. package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +2 -0
  326. package/dist/chunks/{oauth-0.1.11-jkkd9wzq.mjs → oauth-0.1.13-bk91rvfd.mjs} +1 -1
  327. package/dist/chunks/{openaiShim-0.1.11-b9yqnc9c.mjs → openaiShim-0.1.13-c9z5r4zj.mjs} +2 -2
  328. package/dist/chunks/{output-style-0.1.11-zwxn1knb.mjs → output-style-0.1.13-c4ah6hc0.mjs} +1 -1
  329. package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +1 -0
  330. package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +1 -0
  331. package/dist/chunks/passes-0.1.13-bcbvjdzs.mjs +1 -0
  332. package/dist/chunks/permissions-0.1.13-c03934ka.mjs +3 -0
  333. package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +1 -0
  334. package/dist/chunks/{plist-0.1.11-0sn6nqv3.mjs → plist-0.1.13-f3bfg2tf.mjs} +1 -1
  335. package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +29 -0
  336. package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +1 -0
  337. package/dist/chunks/{plugins-0.1.11-t3pgcpcj.mjs → plugins-0.1.13-1nvjxkbc.mjs} +2 -2
  338. package/dist/chunks/{print-0.1.11-y9vz77h9.mjs → print-0.1.13-g2dmfpmq.mjs} +10 -10
  339. package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +1 -0
  340. package/dist/chunks/{process-0.1.11-s6jnx5xw.mjs → process-0.1.13-ycxbd26n.mjs} +1 -1
  341. package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +1 -0
  342. package/dist/chunks/processSlashCommand-0.1.13-16gwwvqz.mjs +9 -0
  343. package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +1 -0
  344. package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +1 -0
  345. package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +1 -0
  346. package/dist/chunks/provider-0.1.13-e9ayet7n.mjs +2 -0
  347. package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +1 -0
  348. package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +1 -0
  349. package/dist/chunks/registry-0.1.13-e33aasxk.mjs +1 -0
  350. package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +5 -0
  351. package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +2 -0
  352. package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +1 -0
  353. package/dist/chunks/{remoteBridgeCore-0.1.11-hn821p07.mjs → remoteBridgeCore-0.1.13-sq5rr5x0.mjs} +1 -1
  354. package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +1 -0
  355. package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +1 -0
  356. package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +1 -0
  357. package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +2 -0
  358. package/dist/chunks/{rewind-0.1.11-t4mfk815.mjs → rewind-0.1.13-zxcfrje2.mjs} +1 -1
  359. package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +1 -0
  360. package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +1 -0
  361. package/dist/chunks/session-0.1.13-cjn060z1.mjs +2 -0
  362. package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +1 -0
  363. package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +1 -0
  364. package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +5 -0
  365. package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +1 -0
  366. package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +1 -0
  367. package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +1 -0
  368. package/dist/chunks/{state-0.1.11-3fjxywyv.mjs → state-0.1.13-cv8jd04r.mjs} +1 -1
  369. package/dist/chunks/{stats-0.1.11-hxzms6gg.mjs → stats-0.1.13-yrtt99gr.mjs} +6 -6
  370. package/dist/chunks/status-0.1.13-4x7h3dec.mjs +1 -0
  371. package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +1 -0
  372. package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +1 -0
  373. package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +1 -0
  374. package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +1 -0
  375. package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +1 -0
  376. package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +1 -0
  377. package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +1 -0
  378. package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +1 -0
  379. package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +1 -0
  380. package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +1 -0
  381. package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +1 -0
  382. package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +1 -0
  383. package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +1 -0
  384. package/dist/chunks/{turndown.cjs-0.1.11-brwqmyse.mjs → turndown.cjs-0.1.13-2wbn8j6y.mjs} +1 -1
  385. package/dist/chunks/ultrareviewCommand-0.1.13-sj6asgpk.mjs +4 -0
  386. package/dist/chunks/{update-0.1.11-p33kxpg4.mjs → update-0.1.13-sx7hc0kj.mjs} +11 -11
  387. package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +1 -0
  388. package/dist/chunks/{upstreamproxy-0.1.11-vk16qw88.mjs → upstreamproxy-0.1.13-pwxv6kww.mjs} +1 -1
  389. package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +1 -0
  390. package/dist/chunks/util-0.1.13-ef9r7w41.mjs +1 -0
  391. package/dist/chunks/utils-0.1.13-03dvz81t.mjs +1 -0
  392. package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +1 -0
  393. package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +1 -0
  394. package/dist/chunks/{wiki-0.1.11-v0twhcnn.mjs → wiki-0.1.13-regg8ff2.mjs} +1 -1
  395. package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +1 -0
  396. package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +1 -0
  397. package/dist/chunks/{wrapper-0.1.11-rt9xsnjh.mjs → wrapper-0.1.13-8nsef109.mjs} +1 -1
  398. package/dist/claudio-vscode.vsix +0 -0
  399. package/dist/cli.mjs +3 -3
  400. package/package.json +5 -19
  401. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +0 -1
  402. package/dist/chunks/App-0.1.11-z60c27dk.mjs +0 -1
  403. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +0 -1
  404. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +0 -1
  405. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +0 -1
  406. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +0 -1
  407. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +0 -1
  408. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +0 -1
  409. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +0 -3
  410. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +0 -1
  411. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +0 -1
  412. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +0 -1
  413. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +0 -1
  414. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +0 -1
  415. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +0 -1
  416. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +0 -1
  417. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +0 -1
  418. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +0 -1
  419. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +0 -1
  420. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +0 -1
  421. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +0 -1
  422. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +0 -1
  423. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +0 -9
  424. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +0 -1
  425. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +0 -1
  426. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +0 -1
  427. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +0 -1
  428. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +0 -3
  429. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +0 -111
  430. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +0 -1
  431. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +0 -1
  432. package/dist/chunks/auth-0.1.11-2363mst5.mjs +0 -1
  433. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +0 -1
  434. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +0 -4
  435. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +0 -1
  436. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +0 -1
  437. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +0 -1
  438. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +0 -1
  439. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +0 -1
  440. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +0 -1
  441. package/dist/chunks/cli-0.1.11-036me3yr.mjs +0 -2
  442. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +0 -2
  443. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +0 -2
  444. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +0 -2
  445. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +0 -8
  446. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +0 -2
  447. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +0 -2
  448. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +0 -833
  449. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +0 -3
  450. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +0 -2
  451. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +0 -45
  452. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +0 -2
  453. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +0 -2
  454. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +0 -3
  455. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +0 -2
  456. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +0 -2
  457. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +0 -2
  458. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +0 -50
  459. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +0 -2
  460. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +0 -3
  461. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +0 -2
  462. package/dist/chunks/cli-0.1.11-at3c85af.mjs +0 -2
  463. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +0 -2
  464. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +0 -2
  465. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +0 -252
  466. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +0 -2
  467. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +0 -2
  468. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +0 -134
  469. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +0 -4
  470. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +0 -12
  471. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +0 -2
  472. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +0 -4
  473. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +0 -16
  474. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +0 -18
  475. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +0 -3
  476. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +0 -2
  477. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +0 -22
  478. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +0 -5
  479. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +0 -2
  480. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +0 -2
  481. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +0 -2
  482. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +0 -2
  483. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +0 -2
  484. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +0 -2
  485. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +0 -2
  486. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +0 -7
  487. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +0 -2
  488. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +0 -24
  489. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +0 -4
  490. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +0 -2
  491. package/dist/chunks/cli-0.1.11-mr356stf.mjs +0 -2
  492. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +0 -2
  493. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +0 -2
  494. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +0 -2
  495. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +0 -2
  496. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +0 -2
  497. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +0 -2
  498. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +0 -16
  499. package/dist/chunks/cli-0.1.11-qheffjft.mjs +0 -2
  500. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +0 -2
  501. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +0 -5036
  502. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +0 -2
  503. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +0 -2
  504. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +0 -12
  505. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +0 -2
  506. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +0 -2
  507. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +0 -2
  508. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +0 -2
  509. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +0 -2
  510. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +0 -14
  511. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +0 -2
  512. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +0 -2
  513. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +0 -2
  514. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +0 -2
  515. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +0 -2
  516. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +0 -2
  517. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +0 -3
  518. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +0 -2
  519. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +0 -2
  520. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +0 -2
  521. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +0 -1
  522. package/dist/chunks/color-0.1.11-b7favzc8.mjs +0 -1
  523. package/dist/chunks/compact-0.1.11-damm234b.mjs +0 -3
  524. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +0 -1
  525. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +0 -1
  526. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +0 -1
  527. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +0 -1
  528. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +0 -9
  529. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +0 -1
  530. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +0 -1
  531. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +0 -1
  532. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +0 -1
  533. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +0 -1
  534. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +0 -1
  535. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +0 -1
  536. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +0 -1
  537. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +0 -1
  538. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +0 -8
  539. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +0 -1
  540. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +0 -1
  541. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +0 -1
  542. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +0 -2
  543. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +0 -1
  544. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +0 -1
  545. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +0 -1
  546. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +0 -14
  547. package/dist/chunks/git-0.1.11-g77ppr52.mjs +0 -1
  548. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +0 -1
  549. package/dist/chunks/help-0.1.11-byp88gen.mjs +0 -1
  550. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +0 -1
  551. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +0 -79
  552. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +0 -3
  553. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +0 -1
  554. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +0 -9
  555. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +0 -1
  556. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +0 -1
  557. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +0 -1
  558. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +0 -1
  559. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +0 -1
  560. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +0 -5
  561. package/dist/chunks/index-0.1.11-gb3saayk.mjs +0 -2
  562. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +0 -1
  563. package/dist/chunks/index-0.1.11-n564rmwy.mjs +0 -1
  564. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +0 -1
  565. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +0 -1
  566. package/dist/chunks/index-0.1.11-pmkgntay.mjs +0 -7
  567. package/dist/chunks/index-0.1.11-qspcw49p.mjs +0 -1
  568. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +0 -1
  569. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +0 -9
  570. package/dist/chunks/index-0.1.11-wze82293.mjs +0 -1
  571. package/dist/chunks/index-0.1.11-xs4mng75.mjs +0 -1
  572. package/dist/chunks/index-0.1.11-yej3awws.mjs +0 -2
  573. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +0 -1
  574. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +0 -1
  575. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +0 -1
  576. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +0 -149
  577. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +0 -1
  578. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +0 -12
  579. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +0 -1
  580. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +0 -2
  581. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +0 -1
  582. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +0 -1
  583. package/dist/chunks/logout-0.1.11-48ynp610.mjs +0 -1
  584. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +0 -1
  585. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +0 -1
  586. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +0 -1
  587. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +0 -17
  588. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +0 -4
  589. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +0 -1
  590. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +0 -3
  591. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +0 -2
  592. package/dist/chunks/model-0.1.11-4v166f98.mjs +0 -2
  593. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +0 -1
  594. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +0 -1
  595. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +0 -1
  596. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +0 -1
  597. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +0 -3
  598. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +0 -1
  599. package/dist/chunks/plugin-0.1.11-menj210d.mjs +0 -29
  600. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +0 -1
  601. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +0 -1
  602. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +0 -1
  603. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +0 -9
  604. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +0 -1
  605. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +0 -1
  606. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +0 -1
  607. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +0 -2
  608. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +0 -1
  609. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +0 -1
  610. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +0 -1
  611. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +0 -5
  612. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +0 -2
  613. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +0 -1
  614. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +0 -1
  615. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +0 -1
  616. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +0 -1
  617. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +0 -2
  618. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +0 -1
  619. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +0 -1
  620. package/dist/chunks/session-0.1.11-2z972raf.mjs +0 -2
  621. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +0 -1
  622. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +0 -1
  623. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +0 -5
  624. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +0 -1
  625. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +0 -1
  626. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +0 -1
  627. package/dist/chunks/status-0.1.11-drvp15n8.mjs +0 -1
  628. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +0 -1
  629. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +0 -1
  630. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +0 -1
  631. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +0 -1
  632. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +0 -1
  633. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +0 -1
  634. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +0 -1
  635. package/dist/chunks/theme-0.1.11-p447kczd.mjs +0 -1
  636. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +0 -1
  637. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +0 -1
  638. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +0 -1
  639. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +0 -1
  640. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +0 -1
  641. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +0 -4
  642. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +0 -1
  643. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +0 -1
  644. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +0 -1
  645. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +0 -1
  646. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +0 -1
  647. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +0 -1
  648. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +0 -1
  649. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +0 -1
  650. /package/dist/chunks/{cli-0.1.11-4px8nt5r.mjs → cli-0.1.13-fdmvysv0.mjs} +0 -0
  651. /package/dist/chunks/{cli-0.1.11-x3q39kf7.mjs → cli-0.1.13-gs7rcvne.mjs} +0 -0
  652. /package/dist/chunks/{cli-0.1.11-tyh8gms9.mjs → cli-0.1.13-m5c2efjx.mjs} +0 -0
@@ -1,4 +0,0 @@
1
- import{Sc as c,Yc as Eq}from"./cli-0.1.11-21epc92q.mjs";import{AG as O,BG as qq,DG as I,EG as Gq,KG as Cq,Kk as t,Lk as Aq,NG as b,OG as Lq,RG as Hq,SG as Jq,UF as v,UG as vq,VF as m,VG as y,WG as Qq,XF as Oq,XG as Xq,YG as Yq,ZG as $q,_G as d,bH as Dq,cA as l,ck as s,dA as wq,ek as Tq,ik as A,kk as D,lk as Mq,mk as h,nk as S,oG as n,ok as Rq,uG as e,ul as i,vG as P,wl as Fq,zG as jq}from"./cli-0.1.11-s8ygndzf.mjs";import{Caa as F,Eaa as L,F7 as a,K7 as Kq,Qaa as Bq,Y$ as V,eaa as _q}from"./cli-0.1.11-v7bwjqf0.mjs";import{Cga as o,Fga as N,Jga as Uq,Tga as p,Xga as Wq}from"./cli-0.1.11-vq5fvf9m.mjs";import{Vma as xq,gja as f}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as Zq}from"./cli-0.1.11-yrfxpjhr.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claude/settings.json, shared with your team). To disable just for you: claude plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(i(Q),G)await t(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(s(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
- ${G.join(`
3
- `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Tq();Uq();Wq();Kq();Oq();Rq();Cq();jq();Aq();Mq();vq();Dq();Fq();wq();Eq();Lq();Bq();_q();k=["user","project","local"],HG=["user","project","local","managed"]});
4
- export{k as Fc,HG as Gc,JG as Hc,QG as Ic,kq as Jc,XG as Kc,YG as Lc,$G as Mc,zG as Nc,ZG as Oc,xG as Pc,hq as Qc};
@@ -1,12 +0,0 @@
1
- import{Te as RZ,Ue as xZ,Ve as Tz}from"./cli-0.1.11-be28ty4m.mjs";import{gg as qJ,hg as Qz}from"./cli-0.1.11-5zqfr92n.mjs";import{lg as YJ,mg as zz}from"./cli-0.1.11-hzezqkew.mjs";import{$C as EZ,AH as xQ,BH as $Q,CH as gZ,Dt as QQ,EH as fQ,FH as uQ,Ft as hZ,Gi as eJ,HH as dJ,IH as cJ,JH as gJ,KH as pQ,Ki as YQ,LH as dQ,Ni as TZ,Pt as zQ,QH as g0,Tt as Iz,Yr as kQ,Zi as ZQ,Zr as GX,_r as IQ,aD as kZ,bD as SZ,bK as iQ,cD as uJ,dD as hQ,dI as cQ,eD as pJ,eI as gQ,eK as NX,es as LX,gI as OZ,hH as vJ,hI as AQ,hu as e0,iH as _J,iI as VQ,iu as xJ,jI as mQ,ju as $J,kI as nQ,ku as fJ,lu as Mz,nD as FJ,oI as PQ,os as TQ,pI as UQ,ps as FX,qi as cZ,rD as wz,ri as BX,sH as RQ,vt as JQ,wt as kz,zH as CZ}from"./cli-0.1.11-s8ygndzf.mjs";import{BP as SQ,CP as HX}from"./cli-0.1.11-r990p54m.mjs";import{$S as Jz,GS as FZ,HS as QJ,XS as WJ,aT as UZ,bT as KX}from"./cli-0.1.11-h02tyg8p.mjs";import{GU as JJ,HU as eQ,JU as EQ,KU as YX,QU as y,RU as OQ,SU as g,TU as az,eT as f0,vT as c0,vV as u0,zT as MZ}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as N0}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as $0}from"./cli-0.1.11-x37jysc0.mjs";import{NX as zJ,OX as XJ,PX as Zz}from"./cli-0.1.11-16086k9e.mjs";import{F4 as tJ,P4 as sJ,c4 as wQ,d4 as rz,i4 as JZ,i5 as Sz,l4 as QZ}from"./cli-0.1.11-qbcfg80y.mjs";import{E5 as dZ,F5 as qX}from"./cli-0.1.11-s6yfjcm5.mjs";import{B_ as _Q,Cba as PZ,L7 as _0,M7 as eZ,S_ as WX,Vba as qQ,Y$ as LZ,eaa as ZJ}from"./cli-0.1.11-v7bwjqf0.mjs";import{Fea as Nz,aea as IZ,bea as _z,nea as KZ,sea as NZ,tea as wZ}from"./cli-0.1.11-7xr2ermy.mjs";import{Gfa as ZZ,Nfa as Ez,vfa as VZ,wfa as EJ}from"./cli-0.1.11-nx8a99hz.mjs";import{bha as m0,eha as lz}from"./cli-0.1.11-vq5fvf9m.mjs";import{iha as vQ,sha as XX}from"./cli-0.1.11-d3exw047.mjs";import{Vma as zX,vma as DQ}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as x,Rna as A0}from"./cli-0.1.11-yrfxpjhr.mjs";function rZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=w0.useState(null),[W,q]=w0.useState(null),B;if(Z[0]!==Q||Z[1]!==W)B=s0.jsxDEV(iZ.Provider,{value:W,children:Q},void 0,!1,void 0,this),Z[0]=Q,Z[1]=W,Z[2]=B;else B=Z[2];let Y;if(Z[3]!==z||Z[4]!==B)Y=s0.jsxDEV(nZ.Provider,{value:X,children:s0.jsxDEV(lZ.Provider,{value:q,children:s0.jsxDEV(mZ.Provider,{value:z,children:B},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[3]=z,Z[4]=B,Z[5]=Y;else Y=Z[5];return Y}function aZ(){return w0.useContext(mZ)}function oZ(){return w0.useContext(iZ)}function DX(J){let Z=HZ.c(8),Q=w0.useContext(nZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];w0.useEffect(z,X),w0.useEffect(W,q)}function vX(J){let Z=HZ.c(8),Q=w0.useContext(lZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];w0.useEffect(z,X),w0.useEffect(W,q)}var HZ,w0,s0,mZ,nZ,iZ,lZ;var tZ=A0(()=>{HZ=x(f0(),1),w0=x($0(),1),s0=x(N0(),1),mZ=w0.createContext(null),nZ=w0.createContext(null),iZ=w0.createContext(null),lZ=w0.createContext(null)});function GZ(J){return J.type==="attachment"&&sQ.has(J.attachment.type)}var tQ,sQ;var jZ=A0(()=>{tQ=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],sQ=new Set(tQ)});import{fileURLToPath as Xz}from"url";function nX(J){let[Z,Q]=B0.useState(null),z=B0.useRef(J);z.current=J;let X=B0.useRef(null),W=B0.useCallback(()=>{Q(null)},[]),q=B0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),B=B0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);B0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=B0.useCallback((K,F)=>{if(Q((V)=>V===null?null:V+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:B,shiftDivider:Y}}function Wz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!qz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function qz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function iX(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Wz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function lX(J){let Z=r0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:B,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:V,newMessageCount:D,onPillClick:M}=J,k=F===void 0?!1:F,Q0=V===void 0?!1:V,d=D===void 0?0:D,{rows:O,columns:C}=FZ(),[_,N]=B0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let u=P,z0;if(Z[1]!==Y)z0=(T)=>Y?.current?.subscribe(T)??Hz,Z[1]=Y,Z[2]=z0;else z0=Z[2];let b=z0,E;if(Z[3]!==K||Z[4]!==Y)E=()=>{let T=Y?.current,W0=K?.current;if(!T||W0==null)return!1;return T.getScrollTop()+T.getPendingDelta()+T.getViewportHeight()<W0},Z[3]=K,Z[4]=Y,Z[5]=E;else E=Z[5];let F0=B0.useSyncExternalStore(b,E),H0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))H0=[],Z[6]=H0;else H0=Z[6];if(B0.useLayoutEffect(Yz,H0),c0()){let T=Q0?null:_,W0=T!=null&&T!=="clicked"&&X==null?T:null,X0=T!=null&&X==null,q0;if(Z[7]!==W0)q0=W0&&l.jsxDEV(Lz,{text:W0.text,onClick:W0.scrollTo},void 0,!1,void 0,this),Z[7]=W0,Z[8]=q0;else q0=Z[8];let V0=X0?0:1,I;if(Z[9]!==Q)I=l.jsxDEV(bZ,{value:u,children:Q},void 0,!1,void 0,this),Z[9]=Q,Z[10]=I;else I=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==I||Z[14]!==V0)i=l.jsxDEV(YJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:V0,stickyScroll:!0,children:[I,X]},void 0,!0,void 0,this),Z[11]=X,Z[12]=Y,Z[13]=I,Z[14]=V0,Z[15]=i;else i=Z[15];let s;if(Z[16]!==k||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==F0)s=!k&&F0&&X==null&&l.jsxDEV(Gz,{count:d,onClick:M},void 0,!1,void 0,this),Z[16]=k,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=F0,Z[21]=s;else s=Z[21];let e;if(Z[22]!==W)e=W!=null&&l.jsxDEV(y,{position:"absolute",bottom:0,right:0,opaque:!0,children:W},void 0,!1,void 0,this),Z[22]=W,Z[23]=e;else e=Z[23];let S;if(Z[24]!==i||Z[25]!==s||Z[26]!==e||Z[27]!==q0)S=l.jsxDEV(y,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[q0,i,s,e]},void 0,!0,void 0,this),Z[24]=i,Z[25]=s,Z[26]=e,Z[27]=q0,Z[28]=S;else S=Z[28];let Y0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))Y0=l.jsxDEV(Fz,{},void 0,!1,void 0,this),w=l.jsxDEV(Kz,{},void 0,!1,void 0,this),Z[29]=Y0,Z[30]=w;else Y0=Z[29],w=Z[30];let U;if(Z[31]!==z)U=l.jsxDEV(y,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[Y0,w,l.jsxDEV(y,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z[31]=z,Z[32]=U;else U=Z[32];let h;if(Z[33]!==C||Z[34]!==q||Z[35]!==B||Z[36]!==O)h=q!=null&&l.jsxDEV(WJ,{value:{rows:O-sZ-1,columns:C-4,scrollRef:B??null},children:l.jsxDEV(y,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-sZ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[l.jsxDEV(y,{flexShrink:0,children:l.jsxDEV(g,{color:"permission",children:"▔".repeat(C)},void 0,!1,void 0,this)},void 0,!1,void 0,this),l.jsxDEV(y,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z[33]=C,Z[34]=q,Z[35]=B,Z[36]=O,Z[37]=h;else h=Z[37];let Z0;if(Z[38]!==S||Z[39]!==U||Z[40]!==h)Z0=l.jsxDEV(rZ,{children:[S,U,h]},void 0,!0,void 0,this),Z[38]=S,Z[39]=U,Z[40]=h,Z[41]=Z0;else Z0=Z[41];return Z0}let r;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)r=l.jsxDEV(l.Fragment,{children:[Q,z,X,q]},void 0,!0,void 0,this),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=r;else r=Z[46];return r}function Yz(){if(!c0())return;let J=JJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Bz,()=>{J.onHyperlinkClick=void 0}}function Bz(J){if(J.startsWith("file:"))try{zJ(Xz(J))}catch{}else XJ(J)}function Hz(){}function Gz(J){let Z=r0.c(10),{count:Q,onClick:z}=J,[X,W]=B0.useState(!1),q,B;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),B=()=>W(!1),Z[0]=q,Z[1]=B;else q=Z[0],B=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=l.jsxDEV(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",_0.arrowDown," "]},void 0,!0,void 0,this),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let V;if(Z[7]!==z||Z[8]!==F)V=l.jsxDEV(y,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:l.jsxDEV(y,{onClick:z,onMouseEnter:q,onMouseLeave:B,children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[7]=z,Z[8]=F,Z[9]=V;else V=Z[9];return V}function Lz(J){let Z=r0.c(8),{text:Q,onClick:z}=J,[X,W]=B0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",B,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))B=()=>W(!0),Y=()=>W(!1),Z[0]=B,Z[1]=Y;else B=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=l.jsxDEV(g,{color:"subtle",wrap:"truncate-end",children:[_0.pointer," ",Q]},void 0,!0,void 0,this),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=l.jsxDEV(y,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:B,onMouseLeave:Y,children:K},void 0,!1,void 0,this),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Fz(){let J=r0.c(4),Z=aZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=l.jsxDEV(y,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:l.jsxDEV(qJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Kz(){let J=r0.c(2),Z=oZ();if(!Z)return null;let Q;if(J[0]!==Z)Q=l.jsxDEV(y,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z},void 0,!1,void 0,this),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var r0,B0,l,sZ=2,bZ;var BJ=A0(()=>{eZ();Jz();tZ();QJ();zz();eQ();u0();Zz();MZ();ZJ();jZ();Qz();r0=x(f0(),1),B0=x($0(),1),l=x(N0(),1),bZ=B0.createContext({setStickyPrompt:()=>{}})});function HJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var GJ=()=>{};function LJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(CZ(Z.text,NZ)!=="completed")return!1;return CZ(Z.text,wZ)?.startsWith(FJ)??!1}function KJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(LJ(X)){let W=0;while(z<J.length&&LJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${NZ}>completed</${NZ}><${wZ}>${W} background commands completed</${wZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var NJ=A0(()=>{Nz();wz();MZ();OZ()});function wJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function OJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(wJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!wJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,B)=>q+B.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var AJ=()=>{};function VJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function PJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(VJ(z)){let X=0;while(Q<J.length&&VJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var UJ=()=>{};function Oz(J){let Z=jJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),jJ.set(J,Z);return Z}function yZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function MJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Oz(Z),X=new Map;for(let F of J){let V=yZ(F);if(V&&z.has(V.toolName)){let D=`${V.messageId}:${V.toolName}`,M=X.get(D)??[];M.push(F),X.set(D,M)}}let W=new Map,q=new Set;for(let[F,V]of X)if(V.length>=2){W.set(F,V);for(let D of V){let M=yZ(D);if(M)q.add(M.toolUseId)}}let B=new Map;for(let F of J)if(F.type==="user"){for(let V of F.message.content)if(V.type==="tool_result"&&q.has(V.tool_use_id))B.set(V.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let V=yZ(F);if(V){let D=`${V.messageId}:${V.toolName}`,M=W.get(D);if(M){if(!K.has(D)){K.add(D);let k=M[0],Q0=[];for(let O of M){let C=O.message.content[0].id,_=B.get(C);if(_)Q0.push(_)}let d={type:"grouped_tool_use",toolName:V.toolName,messages:M,results:Q0,displayMessage:k,uuid:`grouped-${k.uuid}`,timestamp:k.timestamp,messageId:V.messageId};Y.push(d)}continue}}if(F.type==="user"){let D=F.message.content.filter((M)=>M.type==="tool_result");if(D.length>0){if(D.every((k)=>q.has(k.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var jJ;var bJ=A0(()=>{jJ=new WeakMap});function AZ(J){let Z=DJ.get(J);if(Z!==void 0)return Z;let Q=Az(J).toLowerCase();return DJ.set(J,Q),Q}function Az(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=yJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!yJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Pz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Vz(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(CJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+CJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Vz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function Pz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var CJ="</system-reminder>",yJ,DJ;var DZ=A0(()=>{OZ();yJ=new Set([vJ,_J]),DJ=new WeakMap});function kJ(J){let Z=SJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Uz)))return null;let W=VZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=vZ.jsxDEV(g,{dimColor:!0,children:Q.message.model},void 0,!1,void 0,this),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let B;if(Z[2]!==W||Z[3]!==q)B=vZ.jsxDEV(y,{minWidth:W,children:q},void 0,!1,void 0,this),Z[2]=W,Z[3]=q,Z[4]=B;else B=Z[4];return B}function Uz(J){return J.type==="text"}var SJ,vZ;var IJ=A0(()=>{EJ();u0();SJ=x(f0(),1),vZ=x(N0(),1)});function hJ(J){let Z=TJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(jz)))return null;let W,q,B;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=y,B=VZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=B;else W=Z[1],q=Z[2],B=Z[3];let Y;if(Z[4]!==q)Y=_Z.jsxDEV(g,{dimColor:!0,children:q},void 0,!1,void 0,this),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==B||Z[8]!==Y)K=_Z.jsxDEV(W,{minWidth:B,children:Y},void 0,!1,void 0,this),Z[6]=W,Z[7]=B,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function jz(J){return J.type==="text"}var TJ,_Z;var RJ=A0(()=>{EJ();u0();TJ=x(f0(),1),_Z=x(N0(),1)});function iJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(EZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(EZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function bz(J){let Z=mJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:B,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:V,onOpenRateLimitOptions:D,lastThinkingBlockId:M,latestBashOutputUUID:k,columns:Q0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(SZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let u=P,z0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)z0=_?Q.displayMessage:N?uJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=z0;else z0=Z[9];let b=z0,E;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)E=_||N?[]:gJ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=E;else E=Z[14];let F0=E,H0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?dJ:cJ(Q,O);H0=aJ(Q,K,Y,S,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=H0}else H0=Z[22];let r=H0,T=!1;if(V)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let Y0;if(Z[26]!==Y)Y0=(w)=>{let U=w.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=Y0;else Y0=Z[27];S=Q.messages.some(Y0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];T=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=SZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];T=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let Y0=g0(Q);S=!Y0||Y.has(Y0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];T=S}let W0;if(Z[34]!==b||Z[35]!==C)W0=C&&b.type==="assistant"&&b.message.content.some(Cz)&&(b.timestamp||b.message.model),Z[34]=b,Z[35]=C,Z[36]=W0;else W0=Z[36];let X0=W0,q0=!X0,V0=X0?void 0:Q0,I;if(Z[37]!==q||Z[38]!==Y||Z[39]!==u||Z[40]!==r||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==k||Z[45]!==O||Z[46]!==Q||Z[47]!==D||Z[48]!==F0||Z[49]!==T||Z[50]!==q0||Z[51]!==V0||Z[52]!==W||Z[53]!==B)I=p0.jsxDEV(fJ,{message:Q,lookups:O,addMargin:q0,containerWidth:V0,tools:W,commands:q,verbose:B,inProgressToolUseIDs:Y,progressMessagesForMessage:F0,shouldAnimate:T,shouldShowDot:!0,isTranscriptMode:C,isStatic:r,onOpenRateLimitOptions:D,isActiveCollapsedGroup:u,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:k},void 0,!1,void 0,this),Z[37]=q,Z[38]=Y,Z[39]=u,Z[40]=r,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=k,Z[45]=O,Z[46]=Q,Z[47]=D,Z[48]=F0,Z[49]=T,Z[50]=q0,Z[51]=V0,Z[52]=W,Z[53]=B,Z[54]=I;else I=Z[54];let i=I;if(!X0){let S;if(Z[55]!==i)S=p0.jsxDEV(e0,{children:i},void 0,!1,void 0,this),Z[55]=i,Z[56]=S;else S=Z[56];return S}let s;if(Z[57]!==b||Z[58]!==C)s=p0.jsxDEV(y,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[p0.jsxDEV(hJ,{message:b,isTranscriptMode:C},void 0,!1,void 0,this),p0.jsxDEV(kJ,{message:b,isTranscriptMode:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z[57]=b,Z[58]=C,Z[59]=s;else s=Z[59];let e;if(Z[60]!==Q0||Z[61]!==i||Z[62]!==s)e=p0.jsxDEV(e0,{children:p0.jsxDEV(y,{width:Q0,flexDirection:"column",children:[s,i]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z[60]=Q0,Z[61]=i,Z[62]=s,Z[63]=e;else e=Z[63];return e}function Cz(J){return J.type==="text"}function yz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return kZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Dz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return kZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function vz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&$J(Z.message))return!1;let X=yz(J.message,J.streamingToolUseIDs),W=Dz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var mJ,nJ,p0,lJ;var rJ=A0(()=>{u0();pJ();OZ();Mz();IJ();oJ();RJ();xJ();mJ=x(f0(),1),nJ=x($0(),1),p0=x(N0(),1);lJ=nJ.memo(bz,vz)});import{relative as hz}from"path";function XQ(J){return dz.filter((Z)=>Z.isActive(J))}var p,Rz,xz,$z,fz,uz,pz,dz;var WQ=A0(()=>{u0();ZQ();eZ();_z();Ez();Sz();Tz();Iz();kz();p=x(N0(),1),Rz={id:"large-memory-files",type:"warning",isActive:(J)=>TZ(J.memoryFiles).length>0,render:(J)=>{let Z=TZ(J.memoryFiles);return p.jsxDEV(p.Fragment,{children:Z.map((Q)=>{let z=Q.path.startsWith(IZ())?hz(IZ(),Q.path):Q.path;return p.jsxDEV(y,{flexDirection:"row",children:[p.jsxDEV(g,{color:"warning",children:_0.warning},void 0,!1,void 0,this),p.jsxDEV(g,{color:"warning",children:["Large ",p.jsxDEV(g,{bold:!0,children:z},void 0,!1,void 0,this)," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(eJ),")",p.jsxDEV(g,{dimColor:!0,children:" · /memory to edit"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},Q.path,!0,void 0,this)})},void 0,!1,void 0,this)}},xz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return sJ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return p.jsxDEV(y,{flexDirection:"row",marginTop:1,children:[p.jsxDEV(g,{color:"warning",children:_0.warning},void 0,!1,void 0,this),p.jsxDEV(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},$z={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!tJ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return p.jsxDEV(y,{flexDirection:"row",marginTop:1,children:[p.jsxDEV(g,{color:"warning",children:_0.warning},void 0,!1,void 0,this),p.jsxDEV(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},fz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return p.jsxDEV(y,{flexDirection:"column",marginTop:1,children:[p.jsxDEV(y,{flexDirection:"row",children:[p.jsxDEV(g,{color:"warning",children:_0.warning},void 0,!1,void 0,this),p.jsxDEV(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.jsxDEV(y,{flexDirection:"column",marginLeft:3,children:[p.jsxDEV(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]},void 0,!0,void 0,this),p.jsxDEV(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},uz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return xZ(J.agentDefinitions)>RZ},render:(J)=>{let Z=xZ(J.agentDefinitions);return p.jsxDEV(y,{flexDirection:"row",children:[p.jsxDEV(g,{color:"warning",children:_0.warning},void 0,!1,void 0,this),p.jsxDEV(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ(RZ),")",p.jsxDEV(g,{dimColor:!0,children:" · /agents to manage"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},pz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!QQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=hZ();return Q!==null&&!JQ(Q)},render:()=>{let J=hZ(),Z=zQ(J);return p.jsxDEV(y,{flexDirection:"row",gap:1,marginLeft:1,children:[p.jsxDEV(g,{color:"ide",children:_0.arrowUp},void 0,!1,void 0,this),p.jsxDEV(g,{children:["Install the ",p.jsxDEV(g,{color:"ide",children:Z},void 0,!1,void 0,this)," plugin from the JetBrains Marketplace:"," ",p.jsxDEV(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},dz=[Rz,uz,xz,$z,fz,pz]});async function cz(){if(zZ)return zZ;return zZ=YQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function HQ(J){let Z=BQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=a0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}cz().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];a0.useEffect(W,[W]);let B={config:PZ(),agentDefinitions:Q,memoryFiles:z},Y=XQ(B);if(Y.length===0)return null;let K=y,F="column",V=1,D=Y.map((k)=>$Z.jsxDEV(a0.Fragment,{children:k.render(B)},k.id,!1,void 0,this)),M;if(Z[1]!==K||Z[2]!==D)M=$Z.jsxDEV(K,{flexDirection:F,paddingLeft:V,children:D},void 0,!1,void 0,this),Z[1]=K,Z[2]=D,Z[3]=M;else M=Z[3];return M}var BQ,a0,$Z,XZ,zZ=null;var GQ=A0(()=>{u0();ZQ();qQ();WQ();BQ=x(f0(),1),a0=x($0(),1),$Z=x(N0(),1),XZ=[]});function LQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),B=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),V=m.useRef(null),D=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[U,h]of z.current)z.current.set(U,Math.max(1,Math.round(h*w)));X.current++,F.current=!0,D.current=2}let M=D.current>0?V.current:null,k=m.useRef(0),Q0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??iz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let U=w.getScrollTop()+w.getPendingDelta(),h=Math.floor(U/nz);return w.isSticky()?~h:h});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),U=!1;for(let h of z.current.keys())if(!w.has(h))z.current.delete(h),U=!0;for(let h of Y.current.keys())if(!w.has(h))Y.current.delete(h);if(U)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let U=0;U<P;U++)w[U+1]=w[U]+(z.current.get(Z[U])??gz);q.current={arr:w,version:X.current,n:P}}let u=q.current.arr,z0=u[P],b,E;if(M)[b,E]=M,b=Math.min(b,P),E=Math.min(E,P);else if(_===0||O<0)b=Math.max(0,P-mz),E=P;else{if(N){let G0=_+o0;b=P;while(b>0&&z0-u[b-1]<G0)b--;E=P}else{let G0=k.current,K0=_*3,C0=Math.min(O,O+C),n0=Math.max(O,O+C),S0=n0-C0,j0=S0>K0?C<0?n0-K0:C0:C0,h0=j0+Math.min(S0,K0),i0=Math.max(0,j0-G0),R0=h0-G0,D0=i0-o0;{let H=0,L=P;while(H<L){let A=H+L>>1;if(u[A+1]<=D0)H=A+1;else L=A}b=H}{let H=V.current;if(H&&H[0]<b)for(let L=H[0];L<Math.min(b,H[1]);L++){let A=Z[L];if(B.current.has(A)&&!z.current.has(A)){b=L;break}}}let l0=_+2*o0,t0=Math.min(P,b+WZ),k0=0;E=b;while(E<t0&&(k0<l0||u[E]<R0+_+o0))k0+=z.current.get(Z[E])??fZ,E++}let w=_+2*o0,U=Math.max(0,E-WZ),h=0;for(let G0=b;G0<E;G0++)h+=z.current.get(Z[G0])??fZ;while(b>U&&h<w)b--,h+=z.current.get(Z[b])??fZ;let Z0=V.current,P0=Math.abs(O-W.current)+Math.abs(C);if(Z0&&P0>_*2){let[G0,K0]=Z0;if(b<G0-qZ)b=G0-qZ;if(E>K0+qZ)E=K0+qZ;if(b>E)E=Math.min(b+qZ,P)}W.current=O}if(D.current>0)D.current--;else V.current=[b,E];let F0=m.useDeferredValue(b),H0=m.useDeferredValue(E),r=b<F0?F0:b,T=E>H0?H0:E;if(r>T||N)r=b,T=E;if(C>0)T=E;if(T-r>WZ){let w=(u[r]+u[T])/2;if(O-k.current<w)T=r+WZ;else r=T-WZ}let W0=k.current,X0=u[r],q0=r===0?0:X0+W0,V0=T===P?1/0:Math.max(X0,u[T]-_)+W0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(q0,V0)}),m.useLayoutEffect(()=>{let w=Q0.current?.yogaNode;if(w&&w.getComputedWidth()>0)k.current=w.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[h,Z0]of B.current){let P0=Z0.yogaNode;if(!P0)continue;let G0=P0.getComputedHeight(),K0=z.current.get(h);if(G0>0){if(K0!==G0)z.current.set(h,G0),U=!0}else if(P0.getComputedWidth()>0&&K0!==0)z.current.set(h,0),U=!0}if(U)X.current++});let I=m.useCallback((w)=>{let U=Y.current.get(w);if(!U)U=(h)=>{if(h)B.current.set(w,h);else{let Z0=B.current.get(w)?.yogaNode;if(Z0&&!F.current){let P0=Z0.getComputedHeight();if((P0>0||Z0.getComputedWidth()>0)&&z.current.get(w)!==P0)z.current.set(w,P0),X.current++}B.current.delete(w)}},Y.current.set(w,U);return U},[]),i=m.useCallback((w)=>{let U=B.current.get(Z[w])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),s=m.useCallback((w)=>B.current.get(Z[w])??null,[Z]),e=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let U=q.current;if(w<0||w>=U.n)return;J.current?.scrollTo(U.arr[w]+k.current)},[J]),Y0=z0-u[T];return{range:[r,T],topSpacer:X0,bottomSpacer:Y0,measureRef:I,spacerRef:Q0,offsets:u,getItemTop:i,getItemElement:s,getItemHeight:e,scrollToIndex:S}}var m,gz=3,o0=80,mz=30,nz,fZ=1,WZ=300,qZ=25,iz=()=>{};var FQ=A0(()=>{m=x($0(),1),nz=o0>>1});function oz(J){let Z=KQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return KQ.set(J,Q),Q}function sz(J){let Z=NQ.get(J);if(Z!==void 0)return Z;let Q=ez(J);return NQ.set(J,Q),Q}function ez(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=PQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function ZX(J){let Z=jQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:B,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:V,renderItem:D}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let k=q?"userMessageBackgroundHover":void 0,Q0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(z0)=>K(z,z0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==V)C=Y?()=>V(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=V,Z[14]=C;else C=Z[14];let _=B&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==D)N=D(z,X),Z[15]=X,Z[16]=z,Z[17]=D,Z[18]=N;else N=Z[18];let P;if(Z[19]!==_||Z[20]!==N)P=E0.jsxDEV(OQ.Provider,{value:_,children:N},void 0,!1,void 0,this),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let u;if(Z[22]!==M||Z[23]!==k||Z[24]!==Q0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)u=E0.jsxDEV(y,{ref:M,flexDirection:"column",backgroundColor:k,paddingBottom:Q0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P},void 0,!1,void 0,this),Z[22]=M,Z[23]=k,Z[24]=Q0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=u;else u=Z[29];return u}function MQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:B,extractSearchText:Y=oz,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:V,setCursor:D,jumpRef:M,onSearchMatchesChange:k,scanElement:Q0,setPositions:d}){let O=v.useRef([]),C=v.useRef(J),_=v.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:u,bottomSpacer:z0,measureRef:b,spacerRef:E,offsets:F0,getItemTop:H0,getItemElement:r,getItemHeight:T,scrollToIndex:W0}=LQ(Z,N,Q),[X0,q0]=P,V0=v.useCallback((H)=>{if(T(H)===0)return!1;return AQ(J[H])},[T,J]);v.useImperativeHandle(V,()=>{let H=($)=>D?.({uuid:$.uuid,msgType:$.type,expanded:!1,toolName:VQ($)?.name}),L=F??-1,A=($,n,o=V0)=>{for(let c=$;c>=0&&c<J.length;c+=n)if(o(c))return H(J[c]),!0;return!1},R=($)=>V0($)&&J[$].type==="user";return{enterCursor:()=>A(J.length-1,-1,R),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),D?.(null)},navigatePrevUser:()=>A(L-1,-1,R),navigateNextUser:()=>A(L+1,1,R),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,D,V0]);let I=v.useRef({offsets:F0,start:X0,getItemElement:r,getItemTop:H0,messages:J,scrollToIndex:W0});I.current={offsets:F0,start:X0,getItemElement:r,getItemTop:H0,messages:J,scrollToIndex:W0},v.useEffect(()=>{if(F===void 0)return;let H=I.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=v.useRef(null),s=v.useRef({msgIdx:-1,positions:[]}),e=v.useRef(-1),S=v.useRef(0),Y0=v.useRef(0),w=v.useRef(()=>{}),U=v.useRef(()=>{}),h=v.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),Z0=v.useRef(-1),P0=v.useRef(!1);function G0(H){let L=I.current.getItemTop(H);return Math.max(0,L-uZ)}function K0(H){let L=Z.current,{msgIdx:A,positions:R}=s.current;if(!L||R.length===0||A<0){d?.(null);return}let $=Math.max(0,Math.min(H,R.length-1)),n=R[$],o=I.current.getItemTop(A),c=L.getViewportTop(),J0=o-L.getScrollTop(),x0=L.getViewportHeight(),U0=c+J0+n.row;if(U0<c||U0>=c+x0)L.scrollTo(Math.max(0,o+n.row-uZ)),J0=o-L.getScrollTop(),U0=c+J0+n.row;d?.({positions:R,rowOffset:c+J0,currentIdx:$});let y0=h.current,M0=y0.prefixSum.at(-1)??0,b0=(y0.prefixSum[y0.ptr]??0)+$+1;k?.(M0,b0),m0(`highlight(i=${A}, ord=${$}/${R.length}): pos={row:${n.row},col:${n.col}} lo=${J0} screenRow=${U0} badge=${b0}/${M0}`)}U.current=K0;let[C0,n0]=v.useState(0),S0=v.useCallback(()=>n0((H)=>H+1),[]);v.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:R}=H,$=Z.current;if(!$)return;let{getItemElement:n,getItemTop:o,scrollToIndex:c}=I.current,J0=n(L),x0=J0?.yogaNode?.getComputedHeight()??0;if(!J0||x0===0){if(R>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:R+1},c(L),S0();return}i.current=null,$.scrollTo(Math.max(0,o(L)-uZ));let U0=Q0?.(J0)??[];if(s.current={msgIdx:L,positions:U0},m0(`seek(i=${L} t=${R}): ${U0.length} positions`),U0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let y0=A?U0.length-1:0;h.current.screenOrd=y0,e.current=-1,U.current(y0);let M0=Y0.current;if(M0)Y0.current=0,w.current(M0)},[C0]);function j0(H,L){let A=Z.current;if(!A)return;let R=I.current,{getItemElement:$,scrollToIndex:n}=R;if(H<0||H>=R.messages.length)return;d?.(null),s.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let o=$(H),c=o?.yogaNode?.getComputedHeight()??0;if(o&&c>0)A.scrollTo(G0(H));else n(H);S0()}function h0(H){let L=h.current,{matches:A,prefixSum:R}=L,$=R.at(-1)??0;if(A.length===0)return;if(i.current){Y0.current=H;return}if(e.current<0)e.current=L.ptr;let{positions:n}=s.current,o=L.screenOrd+H;if(o>=0&&o<n.length){L.screenOrd=o,K0(o),e.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===e.current){d?.(null),e.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,j0(A[c],H<0);let J0=H<0?R[c+1]??$:R[c]+1;k?.($,J0)}w.current=h0,v.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(G0(H))},setSearchQuery:(H)=>{i.current=null,s.current={msgIdx:-1,positions:[]},e.current=-1,d?.(null);let L=H.toLowerCase(),A=[],R=[0];if(L){let M0=I.current.messages;for(let b0=0;b0<M0.length;b0++){let I0=Y(M0[b0]),G=I0.indexOf(L),j=0;while(G>=0)j++,G=I0.indexOf(L,G+L.length);if(j>0)A.push(b0),R.push(R.at(-1)+j)}}let $=R.at(-1),n=0,o=Z.current,{offsets:c,start:J0,getItemTop:x0}=I.current,U0=x0(J0),y0=U0>=0?U0-c[J0]:0;if(A.length>0&&o){let M0=Z0.current>=0?Z0.current:o.getScrollTop(),b0=1/0;for(let I0=0;I0<A.length;I0++){let G=Math.abs(y0+c[A[I0]]-M0);if(G<=b0)b0=G,n=I0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${M0} origin=${y0}`)}if(h.current={matches:A,ptr:n,screenOrd:0,prefixSum:R},A.length>0)j0(A[n],!0);else if(Z0.current>=0&&o)o.scrollTo(Z0.current);k?.($,A.length>0?R[n+1]??$:0)},nextMatch:()=>h0(1),prevMatch:()=>h0(-1),setAnchor:()=>{let H=Z.current;if(H)Z0.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,s.current={msgIdx:-1,positions:[]},e.current=-1},warmSearchIndex:async()=>{if(P0.current)return 0;let H=I.current.messages,L=500,A=0,R=performance.now();for(let n=0;n<H.length;n+=L){await wQ(0);let o=performance.now(),c=Math.min(n+L,H.length);for(let J0=n;J0<c;J0++)Y(H[J0]);A+=performance.now()-o}let $=Math.round(performance.now()-R);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${$}ms chunks=${Math.ceil(H.length/L)}`),P0.current=!0,Math.round(A)}}),[Z]);let[i0,R0]=v.useState(null),D0=v.useRef({onItemClick:W,setHoveredKey:R0});D0.current={onItemClick:W,setHoveredKey:R0};let l0=v.useCallback((H,L)=>{let A=D0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=v.useCallback((H)=>{D0.current.setHoveredKey(H)},[]),k0=v.useCallback((H)=>{D0.current.setHoveredKey((L)=>L===H?null:L)},[]);return E0.jsxDEV(E0.Fragment,{children:[E0.jsxDEV(y,{ref:E,height:u,flexShrink:0},void 0,!1,void 0,this),J.slice(X0,q0).map((H,L)=>{let A=X0+L,R=N[A],$=!!W&&(q?.(H)??!0),n=$&&i0===R,o=B?.(H);return E0.jsxDEV(ZX,{itemKey:R,msg:H,idx:A,measureRef:b,expanded:o,hovered:n,clickable:$,onClickK:l0,onEnterK:t0,onLeaveK:k0,renderItem:X},R,!1,void 0,this)}),z0>0&&E0.jsxDEV(y,{height:z0,flexShrink:0},void 0,!1,void 0,this),K&&E0.jsxDEV(QX,{messages:J,start:X0,end:q0,offsets:F0,getItemTop:H0,getItemElement:r,scrollRef:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:B}=v.useContext(bZ),Y=v.useCallback((N)=>q.current?.subscribe(N)??JX,[q]);v.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),V=Z,D=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;D=P}V=N}let M=-1,k=null;if(V>0&&!K)for(let N=V-1;N>=0;N--){let P=sz(J[N]);if(P===null)continue;let u=X(N);if(u>=0&&u+1>=F)continue;M=N,k=P;break}let Q0=D>=0?D-z[V]:0,d=M>=0?Math.max(0,Q0+z[M]):-1,O=v.useRef({idx:-1,tries:0}),C=v.useRef("none"),_=v.useRef(-1);return v.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===M)return;if(_.current=M,k===null){B(null);return}let P=k.trimStart(),u=P.search(/\n\s*\n/),z0=(u>=0?P.slice(0,u):P).slice(0,tz).replace(/\s+/g," ").trim();if(z0===""){B(null);return}let b=M,E=d;B({text:z0,scrollTo:()=>{B("clicked"),C.current="armed";let F0=W(b);if(F0)q.current?.scrollToElement(F0,1);else q.current?.scrollTo(E),O.current={idx:b,tries:0}}})}),v.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var jQ,v,E0,uZ=3,KQ,tz=500,NQ,JX=()=>{};var bQ=A0(()=>{FQ();u0();az();BJ();lz();rz();DZ();UQ();jQ=x(f0(),1),v=x($0(),1),E0=x(N0(),1),KQ=new WeakMap;NQ=new WeakMap});function VX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function PX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let B=J[q],Y=B.message?.content[0];if(B.type==="user"&&Y?.type!=="tool_result"&&!B.isMeta){W++;continue}if(B.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,B)=>{let Y=X[B];return Y===void 0||!z.has(Y)})}function MX(J,Z,Q=UX,z=jX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let B=J[q];if(B&&(X?.uuid!==B.uuid||X.idx!==q))Z.current={uuid:B.uuid,idx:q};else if(!B&&X)Z.current=null;return q}function yQ(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function CX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function aJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let B=J.message.content[0];if(B?.type==="server_tool_use")return W.resolvedToolUseIDs.has(B.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(pQ(q,"PostToolUse",W))return!1;return HJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((B)=>{let Y=B.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var lQ,YZ,f,t,wX,OX=null,CQ=null,AX=null,pZ=30,UX=200,jX=50,bX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:B,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:V=!1,agentDefinitions:D,onOpenRateLimitOptions:M,hideLogo:k=!1,isLoading:Q0,hidePastThinking:d=!1,streamingThinking:O,streamingText:C,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:u,jumpRef:z0,onSearchMatchesChange:b,scanElement:E,setPositions:F0,disableRenderCap:H0=!1,cursor:r=null,setCursor:T,cursorNavRef:W0,renderRange:X0})=>{let{columns:q0}=FZ(),V0=SQ("transcript:toggleShowAll","Transcript","Ctrl+E"),I=f.useMemo(()=>gZ(J).filter(xQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),s=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=I.length-1;G>=0;G--){let j=I[G];if(j?.type==="assistant"){let L0=j.message.content;for(let a=L0.length-1;a>=0;a--)if(L0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[I,d,i]),e=f.useMemo(()=>{for(let G=I.length-1;G>=0;G--){let j=I[G];if(j?.type==="user"){let L0=j.message.content;for(let a of L0)if(a.type==="text"){let O0=a.text;if(O0.startsWith("<bash-stdout")||O0.startsWith("<bash-stderr"))return j.uuid}}}return null},[I]),S=f.useMemo(()=>dQ(I),[I]),Y0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!S.has(G.contentBlock.id)),[F,q,S]),w=f.useMemo(()=>Y0.flatMap((G)=>{let j=RQ({content:[G.contentBlock]});return j.uuid=$Q(G.contentBlock.id,0),gZ([j])}),[Y0]),U=K==="transcript",h=f.useMemo(()=>vQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),Z0=P!=null&&!h,P0=U&&!V&&!Z0,G0=f.useRef(null),{collapsed:K0,lookups:C0,hasTruncatedMessages:n0,hiddenMessageCount:S0}=f.useMemo(()=>{let G=z||c0()?I:cQ(I,{includeSnipped:!0}),j=fQ(G.filter((T0)=>T0.type!=="progress").filter((T0)=>!GZ(T0)).filter((T0)=>gQ(T0,U)),w),L0=[CQ,AX].filter((T0)=>T0!==null),a=[CQ].filter((T0)=>T0!==null),O0=L0.length>0&&!U?_?VX(j,L0):a.length>0?PX(j,a):j:j,v0=P0?O0.slice(-pZ):O0,BZ=P0&&O0.length>pZ,{messages:d0}=MJ(v0,Z,z),rQ=KJ(OJ(PJ(hQ(d0,Z))),z),aQ=uQ(I,v0),oQ=j.length-pZ;return{collapsed:rQ,lookups:aQ,hasTruncatedMessages:BZ,hiddenMessageCount:oQ}},[z,I,U,w,P0,Z,_]),j0=f.useMemo(()=>{let j=!Z0&&!H0?MX(K0,G0):0;return X0?K0.slice(X0[0],X0[1]):j>0?K0.slice(j):K0},[K0,X0,Z0,H0]),h0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=iQ((G)=>G.tasks),R0=C0.asyncLaunchedToolUseIDs,D0=f.useMemo(()=>{if(R0.size===0)return null;let G=new Set;for(let[j,L0]of R0){let a=i0?.[L0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(j)}return G.size>0?G:null},[i0,R0]),l0=f.useMemo(()=>{if(!D0)return q;let G=new Set(q);for(let j of D0)G.add(j);return G},[q,D0]),t0=f.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return j0.findIndex((j)=>j.uuid.slice(0,24)===G)},[N,j0]),k0=f.useMemo(()=>{if(!r)return-1;return j0.findIndex((G)=>G.uuid===r.uuid)},[r,j0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=yQ(G);L((L0)=>{let a=new Set(L0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),R=f.useCallback((G)=>H.size>0&&H.has(yQ(G)),[H]),$=f.useRef(C0);$.current=C0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let O0=G.message.content[0];return O0!=null&&IQ(O0)&&O0.type==="advisor_tool_result"&&O0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let L0=$.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(L0?cZ(Z,L0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),o=(!X||!!X.shouldContinueAnimation)&&!W.length&&!B,c=l0.size>0,{progress:J0}=EQ(),x0=f.useRef(null),U0=PZ().terminalProgressBarEnabled&&!DQ()&&!(OX?.isProactiveActive()??!1);f.useEffect(()=>{let G=U0?c?"indeterminate":"completed":null;if(x0.current===G)return;x0.current=G,J0(G)},[J0,U0,c]),f.useEffect(()=>{return()=>J0(null)},[J0]);let y0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),M0=(G,j)=>{let L0=j>0?j0[j-1]?.type:void 0,a=G.type==="user"&&L0==="user",O0=G.type==="collapsed_read_search"&&(!!C||iJ(j0,j,Z,h0)),v0=y0(G),BZ=t.jsxDEV(lJ,{message:G,isUserContinuation:a,hasContentAfter:O0,tools:Z,commands:Q,verbose:z||R(G)||r?.expanded===!0&&j===k0,inProgressToolUseIDs:l0,streamingToolUseIDs:h0,screen:K,canAnimate:o,onOpenRateLimitOptions:M,lastThinkingBlockId:s,latestBashOutputUUID:e,columns:q0,isLoading:Q0,lookups:C0},v0,!1,void 0,this),d0=t.jsxDEV(mQ.Provider,{value:j===k0,children:BZ},v0,!1,void 0,this);if(N&&j===t0)return[t.jsxDEV(y,{marginTop:1,children:t.jsxDEV(UZ,{title:`${N.count} new ${LZ(N.count,"message")}`,width:q0,color:"inactive"},void 0,!1,void 0,this)},"unseen-divider",!1,void 0,this),d0];return d0},b0=f.useRef(new WeakMap),I0=f.useCallback((G)=>{let j=b0.current.get(G);if(j!==void 0)return j;let L0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let O0=G.message.content.find((v0)=>v0.type==="tool_result");if(O0&&"tool_use_id"in O0){let v0=C0.toolUseByToolUseID.get(O0.tool_use_id),d0=(v0&&cZ(Z,v0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)L0=d0}}let a=L0.toLowerCase();return b0.current.set(G,a),a},[Z,C0]);return t.jsxDEV(t.Fragment,{children:[!k&&!(X0&&X0[0]>0)&&t.jsxDEV(wX,{agentDefinitions:D},void 0,!1,void 0,this),n0&&t.jsxDEV(UZ,{title:`${V0} to show ${dZ.bold(S0)} previous messages`,width:q0},void 0,!1,void 0,this),U&&V&&S0>0&&!H0&&t.jsxDEV(UZ,{title:`${V0} to hide ${dZ.bold(S0)} previous messages`,width:q0},void 0,!1,void 0,this),Z0?t.jsxDEV(nQ.Provider,{value:!0,children:t.jsxDEV(MQ,{messages:j0,scrollRef:P,columns:q0,itemKey:y0,renderItem:M0,onItemClick:A,isItemClickable:n,isItemExpanded:R,trackStickyPrompt:u,selectedIndex:k0>=0?k0:void 0,cursorNavRef:W0,setCursor:T,jumpRef:z0,onSearchMatchesChange:b,scanElement:E,setPositions:F0,extractSearchText:I0},void 0,!1,void 0,this)},void 0,!1,void 0,this):j0.flatMap(M0),C&&!_&&t.jsxDEV(y,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:t.jsxDEV(y,{flexDirection:"row",children:[t.jsxDEV(y,{minWidth:2,children:t.jsxDEV(g,{color:"text",children:_Q},void 0,!1,void 0,this)},void 0,!1,void 0,this),t.jsxDEV(y,{flexDirection:"column",children:t.jsxDEV(kQ,{children:C},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),i&&O&&!_&&t.jsxDEV(y,{marginTop:1,children:t.jsxDEV(TQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},C8;var oJ=A0(()=>{qX();GJ();zX();WX();QJ();YX();u0();HX();NX();BX();LX();NJ();AJ();pJ();UJ();qQ();XX();MZ();bJ();OZ();ZJ();DZ();KX();GX();rJ();UQ();FX();jZ();xJ();GQ();bQ();lQ=x(f0(),1),YZ=x($0(),1),f=x($0(),1),t=x(N0(),1),wX=YZ.memo(function(Z){let Q=lQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=t.jsxDEV(e0,{children:t.jsxDEV(y,{flexDirection:"column",gap:1,children:[X,t.jsxDEV(YZ.Suspense,{fallback:null,children:t.jsxDEV(HQ,{agentDefinitions:z},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Q[1]=z,Q[2]=W;else W=Q[2];return W});C8=YZ.memo(bX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,B)=>q.contentBlock===W[B]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(CX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,B)=>q.name===W[B]?.name))continue}return!1}}return!0})});
12
- export{DX as ld,vX as md,tZ as nd,nX as od,iX as pd,lX as qd,BJ as rd,C8 as sd,oJ as td};
@@ -1,2 +0,0 @@
1
- import{sg as f,xg as c}from"./cli-0.1.11-bqpcwywz.mjs";import{Ag as s,yg as F}from"./cli-0.1.11-7vz357wm.mjs";import{$i as $,$t as m,Cx as S,EF as G,HF as o,Hy as M,Hz as W,IE as x,Iy as d,Iz as C,JE as i,Kr as V,Lr as g,Mi as Z,NA as j,OA as n,Zi as P,Zt as E,_i as _,aj as B,bj as N,cj as D,lL as u,pA as b,pm as U,qA as h,qm as p,si as Y,tJ as R,ti as A,vJ as l,vL as t,xx as L}from"./cli-0.1.11-s8ygndzf.mjs";import{i6 as Q,o6 as k}from"./cli-0.1.11-2w8d5vqb.mjs";import{X7 as O,c8 as I,w9 as X,x9 as v}from"./cli-0.1.11-v7bwjqf0.mjs";import{Bma as K,Vma as T,pma as J}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as y,Sna as w}from"./cli-0.1.11-yrfxpjhr.mjs";function Mq(H=new Set){let z=H.size>0;if(N.cache.clear?.(),B.cache.clear?.(),$.cache.clear?.(),Y.cache.clear?.(),f(),u(),!z)U();if(_(null),K(null),x(),G(),Z("session_start"),E(),X.clear(),M(),!z)L();if(Q(),R(),!z)V();J(H),O(),j(),W(),F(),b(),import("./utils-0.1.11-2bk8zn4g.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-0.1.11-w3cgae0s.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-0.1.11-bwymseqa.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-0.1.11-4f7rsvd2.mjs").then(({clearPromptCache:q})=>q())}var r=y(()=>{T();t();A();D();c();S();g();p();d();i();C();s();n();o();l();P();k();I();v();m();h()});
2
- export{Mq as pg,r as qg};
@@ -1,4 +0,0 @@
1
- import{Le as PJ,Me as hQ}from"./cli-0.1.11-4cdyzvxv.mjs";import{Ne as OJ,Oe as LQ}from"./cli-0.1.11-h7phna9g.mjs";import{Pe as LJ,Qe as WQ}from"./cli-0.1.11-ta77hm2b.mjs";import{Re as nq,Se as xJ}from"./cli-0.1.11-ek6mck0j.mjs";import{Te as Hq,Ue as sq,Ve as rJ}from"./cli-0.1.11-be28ty4m.mjs";import{We as hJ,Xe as RQ}from"./cli-0.1.11-xhrk5hr0.mjs";import{Ek as A,Fj as Vq,Fk as Dq,Gi as wq,Gj as jq,Ij as _q,Jj as mJ,Ki as aq,Ni as iq,Zi as lJ,_E as oq,_v as KJ,aF as $J,ak as YJ,aw as XJ,bK as x,bk as YQ,cw as XQ,eK as HQ,fC as RJ,gC as WJ,hC as wQ,kA as FJ,kw as Cq,lA as UQ,lw as yQ,mA as wJ,mw as yJ,nA as HJ,nw as NQ,oA as FQ,oF as bq,ow as NJ,pw as BJ,qw as UJ,rF as gJ,rw as BQ}from"./cli-0.1.11-s8ygndzf.mjs";import{aS as GJ,bS as GQ}from"./cli-0.1.11-d4ahh3jz.mjs";import{VS as zJ,WS as zQ,cT as vq,dT as KQ}from"./cli-0.1.11-h02tyg8p.mjs";import{QU as y,SU as Z,eT as Oq,vV as Aq}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as l}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as ZQ}from"./cli-0.1.11-x37jysc0.mjs";import{$2 as rq,L3 as ZJ,N3 as QQ,x3 as EJ}from"./cli-0.1.11-qbcfg80y.mjs";import{Gaa as QJ,L7 as g,M7 as tJ,Qaa as JQ,U$ as gq,U9 as qQ,V$ as cJ,Y$ as xq,eaa as DJ,y9 as Mq}from"./cli-0.1.11-v7bwjqf0.mjs";import{fha as JJ,sha as eJ}from"./cli-0.1.11-d3exw047.mjs";import{Vma as sJ,gja as qJ}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as W,Rna as Fq}from"./cli-0.1.11-yrfxpjhr.mjs";function Tq(){let J=dq.c(2);if(!Vq())return null;let q,K;if(J[0]===Symbol.for("react.memo_cache_sentinel")){K=Symbol.for("react.early_return_sentinel");q:{let Y=_q();if(Y.length===0){K=null;break q}let G=Y.filter(_J),X=Y.filter(jJ);q=B.jsxDEV(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[B.jsxDEV(Z,{bold:!0,color:G.length>0?"error":"warning",children:"Keybinding Configuration Issues"},void 0,!1,void 0,this),B.jsxDEV(y,{children:[B.jsxDEV(Z,{dimColor:!0,children:"Location: "},void 0,!1,void 0,this),B.jsxDEV(Z,{dimColor:!0,children:jq()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B.jsxDEV(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[G.map(VJ),X.map(pJ)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}J[0]=q,J[1]=K}else q=J[0],K=J[1];if(K!==Symbol.for("react.early_return_sentinel"))return K;return q}function pJ(J,q){return B.jsxDEV(y,{flexDirection:"column",children:[B.jsxDEV(y,{children:[B.jsxDEV(Z,{dimColor:!0,children:"└ "},void 0,!1,void 0,this),B.jsxDEV(Z,{color:"warning",children:"[Warning]"},void 0,!1,void 0,this),B.jsxDEV(Z,{dimColor:!0,children:[" ",J.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.suggestion&&B.jsxDEV(y,{marginLeft:3,children:B.jsxDEV(Z,{dimColor:!0,children:["→ ",J.suggestion]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},`warning-${q}`,!0,void 0,this)}function VJ(J,q){return B.jsxDEV(y,{flexDirection:"column",children:[B.jsxDEV(y,{children:[B.jsxDEV(Z,{dimColor:!0,children:"└ "},void 0,!1,void 0,this),B.jsxDEV(Z,{color:"error",children:"[Error]"},void 0,!1,void 0,this),B.jsxDEV(Z,{dimColor:!0,children:[" ",J.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.suggestion&&B.jsxDEV(y,{marginLeft:3,children:B.jsxDEV(Z,{dimColor:!0,children:["→ ",J.suggestion]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},`error-${q}`,!0,void 0,this)}function jJ(J){return J.severity==="warning"}function _J(J){return J.severity==="error"}var dq,B;var cq=Fq(()=>{Aq();mJ();dq=W(Oq(),1),B=W(l(),1)});function lq(){let J=Eq.c(2);if(!A.isSupportedPlatform())return null;if(!A.isSandboxEnabledInSettings())return null;let q,K;if(J[0]===Symbol.for("react.memo_cache_sentinel")){K=Symbol.for("react.early_return_sentinel");q:{let Y=A.checkDependencies(),G=Y.errors.length>0,X=Y.warnings.length>0;if(!G&&!X){K=null;break q}q=P.jsxDEV(y,{flexDirection:"column",children:[P.jsxDEV(Z,{bold:!0,children:"Sandbox"},void 0,!1,void 0,this),P.jsxDEV(Z,{children:["└ Status: ",P.jsxDEV(Z,{color:G?"error":"warning",children:G?"Missing dependencies":"Available (with warnings)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.errors.map(TJ),Y.warnings.map(dJ),G&&P.jsxDEV(Z,{dimColor:!0,children:"└ Run /sandbox for install instructions"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}J[0]=q,J[1]=K}else q=J[0],K=J[1];if(K!==Symbol.for("react.early_return_sentinel"))return K;return q}function dJ(J,q){return P.jsxDEV(Z,{color:"warning",children:["└ ",J]},q,!0,void 0,this)}function TJ(J,q){return P.jsxDEV(Z,{color:"error",children:["└ ",J]},q,!0,void 0,this)}var Eq,P;var $q=Fq(()=>{Aq();Dq();Eq=W(Oq(),1),P=W(l(),1)});async function aJ(){let J=iq(await aq());if(J.length===0)return null;let q=J.sort((Y,G)=>G.content.length-Y.content.length).map((Y)=>`${Y.path}: ${Y.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function iJ(J){if(!J)return null;let q=sq(J);if(q<=Hq)return null;let K=J.activeAgents.filter((G)=>G.source!=="built-in").map((G)=>{let X=`${G.agentType}: ${G.whenToUse}`;return{name:G.agentType,tokens:bq(X)}}).sort((G,X)=>X.tokens-G.tokens),Y=K.slice(0,5).map((G)=>`${G.name}: ~${G.tokens.toLocaleString()} tokens`);if(K.length>5)Y.push(`(${K.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${Hq.toLocaleString()})`,details:Y,currentValue:q,threshold:Hq}}async function oJ(J,q,K){let Y=J.filter((G)=>G.isMcp);if(Y.length===0)return null;try{let G=rq(),{mcpToolTokens:X,mcpToolDetails:U}=await oq(J,q,K,G);if(X<=$)return null;let F=new Map;for(let h of U){let r=h.name.split("__")[1]||"unknown",N=F.get(r)||{count:0,tokens:0};F.set(r,{count:N.count+1,tokens:N.tokens+h.tokens})}let R=Array.from(F.entries()).sort((h,w)=>w[1].tokens-h[1].tokens),z=R.slice(0,5).map(([h,w])=>`${h}: ${w.count} tools (~${w.tokens.toLocaleString()} tokens)`);if(R.length>5)z.push(`(${R.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${$.toLocaleString()})`,details:z,currentValue:X,threshold:$}}catch(G){let X=Y.reduce((U,F)=>{let R=(F.name?.length||0)+F.description.length;return U+bq(R.toString())},0);if(X<=$)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${$.toLocaleString()})`,details:[`${Y.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:$}}}async function nJ(J){let q=await J(),K=A.isSandboxingEnabled()&&A.isAutoAllowBashIfSandboxedEnabled(),Y=nq(q,{sandboxAutoAllowEnabled:K});if(Y.length===0)return null;let G=Y.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${Y.length} ${xq(Y.length,"unreachable permission rule")} detected`,details:G,currentValue:Y.length,threshold:0}}async function eq(J,q,K){let[Y,G,X,U]=await Promise.all([aJ(),iJ(q),oJ(J,K,q),nJ(K)]);return{claudeMdWarning:Y,agentWarning:G,mcpWarning:X,unreachableRulesWarning:U}}var $=25000;var tq=Fq(()=>{gJ();$J();lJ();EJ();cJ();xJ();Dq();rJ();DJ()});import{join as Iq}from"path";function PQ(J){let q=kq.c(8),{promise:K}=J,Y=H.use(K);if(!Y.latest){let F;if(q[0]===Symbol.for("react.memo_cache_sentinel"))F=Q.jsxDEV(Z,{dimColor:!0,children:"└ Failed to fetch versions"},void 0,!1,void 0,this),q[0]=F;else F=q[0];return F}let G;if(q[1]!==Y.stable)G=Y.stable&&Q.jsxDEV(Z,{children:["└ Stable version: ",Y.stable]},void 0,!0,void 0,this),q[1]=Y.stable,q[2]=G;else G=q[2];let X;if(q[3]!==Y.latest)X=Q.jsxDEV(Z,{children:["└ Latest version: ",Y.latest]},void 0,!0,void 0,this),q[3]=Y.latest,q[4]=X;else X=q[4];let U;if(q[5]!==G||q[6]!==X)U=Q.jsxDEV(Q.Fragment,{children:[G,X]},void 0,!0,void 0,this),q[5]=G,q[6]=X,q[7]=U;else U=q[7];return U}function VZ(J){let q=kq.c(84),{onDone:K}=J,Y=x(DQ),G=x(cQ),X=x(TQ),U=x(dQ);GJ();let F;if(q[0]!==G)F=G||[],q[0]=G,q[1]=F;else F=q[1];let R=F,[z,h]=H.useState(null),[w,r]=H.useState(null),[N,AJ]=H.useState(null),[O,Sq]=H.useState(null),Rq=OJ(),a;if(q[2]===Symbol.for("react.memo_cache_sentinel"))a=Cq().then(jQ),q[2]=a;else a=q[2];let bJ=a,IJ=QJ()?.autoUpdatesChannel??"latest",i;if(q[3]!==Rq)i=Rq.filter(VQ),q[3]=Rq,q[4]=i;else i=q[4];let o=i,n;if(q[5]===Symbol.for("react.memo_cache_sentinel"))n=[{name:"BASH_MAX_OUTPUT_LENGTH",default:HJ,upperLimit:wJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:WJ,upperLimit:RJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-7")}].map(pQ).filter(mQ),q[5]=n;else n=q[5];let fq=n,s,e;if(q[6]!==Y||q[7]!==X||q[8]!==R)s=()=>{Cq().then(h),(async()=>{let L=Iq(JJ(),"agents"),uq=Iq(qJ(),".claude","agents"),{activeAgents:mq,allAgents:MJ,failedFiles:pq}=Y,[vJ,CJ]=await Promise.all([Mq(L),Mq(uq)]),kJ={activeAgents:mq.map(uQ),userAgentsDir:L,projectAgentsDir:uq,userDirExists:vJ,projectDirExists:CJ,failedFiles:pq};r(kJ);let SJ=await eq(R,{activeAgents:mq,allAgents:MJ,failedFiles:pq},async()=>X);if(AJ(SJ),NJ()){let Pq=Iq(yJ(),"claude","locks"),fJ=UJ(Pq),uJ=BJ(Pq);Sq({enabled:!0,locks:uJ,locksDir:Pq,staleLocksCleaned:fJ})}else Sq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,R,Y],q[6]=Y,q[7]=X,q[8]=R,q[9]=s,q[10]=e;else s=q[9],e=q[10];H.useEffect(s,e);let t;if(q[11]!==K)t=()=>{K("Claude Code diagnostics dismissed",{display:"system"})},q[11]=K,q[12]=t;else t=q[12];let qq=t,Jq;if(q[13]!==qq)Jq={"confirm:yes":qq,"confirm:no":qq},q[13]=qq,q[14]=Jq;else Jq=q[14];let Qq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Qq={context:"Confirmation"},q[15]=Qq;else Qq=q[15];if(zJ(Jq,Qq),!z){let L;if(q[16]===Symbol.for("react.memo_cache_sentinel"))L=Q.jsxDEV(vq,{children:Q.jsxDEV(Z,{dimColor:!0,children:"Checking installation status…"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[16]=L;else L=q[16];return L}let Zq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Zq=Q.jsxDEV(Z,{bold:!0,children:"Diagnostics"},void 0,!1,void 0,this),q[17]=Zq;else Zq=q[17];let b;if(q[18]!==z.installationType||q[19]!==z.version)b=Q.jsxDEV(Z,{children:["└ Currently running: ",z.installationType," (",z.version,")"]},void 0,!0,void 0,this),q[18]=z.installationType,q[19]=z.version,q[20]=b;else b=q[20];let I;if(q[21]!==z.packageManager)I=z.packageManager&&Q.jsxDEV(Z,{children:["└ Package manager: ",z.packageManager]},void 0,!0,void 0,this),q[21]=z.packageManager,q[22]=I;else I=q[22];let M;if(q[23]!==z.installationPath)M=Q.jsxDEV(Z,{children:["└ Path: ",z.installationPath]},void 0,!0,void 0,this),q[23]=z.installationPath,q[24]=M;else M=q[24];let v;if(q[25]!==z.invokedBinary)v=Q.jsxDEV(Z,{children:["└ Invoked: ",z.invokedBinary]},void 0,!0,void 0,this),q[25]=z.invokedBinary,q[26]=v;else v=q[26];let C;if(q[27]!==z.configInstallMethod)C=Q.jsxDEV(Z,{children:["└ Config install method: ",z.configInstallMethod]},void 0,!0,void 0,this),q[27]=z.configInstallMethod,q[28]=C;else C=q[28];let Wq=z.ripgrepStatus.working?"OK":"Not working",hq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",k;if(q[29]!==Wq||q[30]!==hq)k=Q.jsxDEV(Z,{children:["└ Search: ",Wq," (",hq,")"]},void 0,!0,void 0,this),q[29]=Wq,q[30]=hq,q[31]=k;else k=q[31];let S;if(q[32]!==z.recommendation)S=z.recommendation&&Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(Z,{},void 0,!1,void 0,this),Q.jsxDEV(Z,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
- `)[0]]},void 0,!0,void 0,this),Q.jsxDEV(Z,{dimColor:!0,children:z.recommendation.split(`
3
- `)[1]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[32]=z.recommendation,q[33]=S;else S=q[33];let f;if(q[34]!==z.multipleInstallations)f=z.multipleInstallations.length>1&&Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(Z,{},void 0,!1,void 0,this),Q.jsxDEV(Z,{color:"warning",children:"Warning: Multiple installations found"},void 0,!1,void 0,this),z.multipleInstallations.map(fQ)]},void 0,!0,void 0,this),q[34]=z.multipleInstallations,q[35]=f;else f=q[35];let u;if(q[36]!==z.warnings)u=z.warnings.length>0&&Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(Z,{},void 0,!1,void 0,this),z.warnings.map(SQ)]},void 0,!0,void 0,this),q[36]=z.warnings,q[37]=u;else u=q[37];let m;if(q[38]!==o)m=o.length>0&&Q.jsxDEV(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Q.jsxDEV(Z,{bold:!0,children:"Invalid Settings"},void 0,!1,void 0,this),Q.jsxDEV(PJ,{errors:o},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[38]=o,q[39]=m;else m=q[39];let p;if(q[40]!==b||q[41]!==I||q[42]!==M||q[43]!==v||q[44]!==C||q[45]!==k||q[46]!==S||q[47]!==f||q[48]!==u||q[49]!==m)p=Q.jsxDEV(y,{flexDirection:"column",children:[Zq,b,I,M,v,C,k,S,f,u,m]},void 0,!0,void 0,this),q[40]=b,q[41]=I,q[42]=M,q[43]=v,q[44]=C,q[45]=k,q[46]=S,q[47]=f,q[48]=u,q[49]=m,q[50]=p;else p=q[50];let zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))zq=Q.jsxDEV(Z,{bold:!0,children:"Updates"},void 0,!1,void 0,this),q[51]=zq;else zq=q[51];let Lq=z.packageManager?"Managed by package manager":z.autoUpdates,V;if(q[52]!==Lq)V=Q.jsxDEV(Z,{children:["└ Auto-updates:"," ",Lq]},void 0,!0,void 0,this),q[52]=Lq,q[53]=V;else V=q[53];let j;if(q[54]!==z.hasUpdatePermissions)j=z.hasUpdatePermissions!==null&&Q.jsxDEV(Z,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]},void 0,!0,void 0,this),q[54]=z.hasUpdatePermissions,q[55]=j;else j=q[55];let Yq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))Yq=Q.jsxDEV(Z,{children:["└ Auto-update channel: ",IJ]},void 0,!0,void 0,this),q[56]=Yq;else Yq=q[56];let Gq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Gq=Q.jsxDEV(H.Suspense,{fallback:null,children:Q.jsxDEV(PQ,{promise:bJ},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[57]=Gq;else Gq=q[57];let _;if(q[58]!==V||q[59]!==j)_=Q.jsxDEV(y,{flexDirection:"column",children:[zq,V,j,Yq,Gq]},void 0,!0,void 0,this),q[58]=V,q[59]=j,q[60]=_;else _=q[60];let Kq,Xq,yq,Nq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Kq=Q.jsxDEV(lq,{},void 0,!1,void 0,this),Xq=Q.jsxDEV(hJ,{},void 0,!1,void 0,this),yq=Q.jsxDEV(Tq,{},void 0,!1,void 0,this),Nq=fq.length>0&&Q.jsxDEV(y,{flexDirection:"column",children:[Q.jsxDEV(Z,{bold:!0,children:"Environment Variables"},void 0,!1,void 0,this),fq.map(kQ)]},void 0,!0,void 0,this),q[61]=Kq,q[62]=Xq,q[63]=yq,q[64]=Nq;else Kq=q[61],Xq=q[62],yq=q[63],Nq=q[64];let d;if(q[65]!==O)d=O?.enabled&&Q.jsxDEV(y,{flexDirection:"column",children:[Q.jsxDEV(Z,{bold:!0,children:"Version Locks"},void 0,!1,void 0,this),O.staleLocksCleaned>0&&Q.jsxDEV(Z,{dimColor:!0,children:["└ Cleaned ",O.staleLocksCleaned," stale lock(s)"]},void 0,!0,void 0,this),O.locks.length===0?Q.jsxDEV(Z,{dimColor:!0,children:"└ No active version locks"},void 0,!1,void 0,this):O.locks.map(CQ)]},void 0,!0,void 0,this),q[65]=O,q[66]=d;else d=q[66];let T;if(q[67]!==w)T=w?.failedFiles&&w.failedFiles.length>0&&Q.jsxDEV(y,{flexDirection:"column",children:[Q.jsxDEV(Z,{bold:!0,color:"error",children:"Agent Parse Errors"},void 0,!1,void 0,this),Q.jsxDEV(Z,{color:"error",children:["└ Failed to parse ",w.failedFiles.length," agent file(s):"]},void 0,!0,void 0,this),w.failedFiles.map(vQ)]},void 0,!0,void 0,this),q[67]=w,q[68]=T;else T=q[68];let c;if(q[69]!==U)c=U.length>0&&Q.jsxDEV(y,{flexDirection:"column",children:[Q.jsxDEV(Z,{bold:!0,color:"error",children:"Plugin Errors"},void 0,!1,void 0,this),Q.jsxDEV(Z,{color:"error",children:["└ ",U.length," plugin error(s) detected:"]},void 0,!0,void 0,this),U.map(MQ)]},void 0,!0,void 0,this),q[69]=U,q[70]=c;else c=q[70];let D;if(q[71]!==N)D=N?.unreachableRulesWarning&&Q.jsxDEV(y,{flexDirection:"column",children:[Q.jsxDEV(Z,{bold:!0,color:"warning",children:"Unreachable Permission Rules"},void 0,!1,void 0,this),Q.jsxDEV(Z,{children:["└"," ",Q.jsxDEV(Z,{color:"warning",children:[g.warning," ",N.unreachableRulesWarning.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.unreachableRulesWarning.details.map(IQ)]},void 0,!0,void 0,this),q[71]=N,q[72]=D;else D=q[72];let E;if(q[73]!==N)E=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Q.jsxDEV(y,{flexDirection:"column",children:[Q.jsxDEV(Z,{bold:!0,children:"Context Usage Warnings"},void 0,!1,void 0,this),N.claudeMdWarning&&Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(Z,{children:["└"," ",Q.jsxDEV(Z,{color:"warning",children:[g.warning," ",N.claudeMdWarning.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(Z,{children:[" ","└ Files:"]},void 0,!0,void 0,this),N.claudeMdWarning.details.map(bQ)]},void 0,!0,void 0,this),N.agentWarning&&Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(Z,{children:["└"," ",Q.jsxDEV(Z,{color:"warning",children:[g.warning," ",N.agentWarning.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(Z,{children:[" ","└ Top contributors:"]},void 0,!0,void 0,this),N.agentWarning.details.map(AQ)]},void 0,!0,void 0,this),N.mcpWarning&&Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(Z,{children:["└"," ",Q.jsxDEV(Z,{color:"warning",children:[g.warning," ",N.mcpWarning.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(Z,{children:[" ","└ MCP servers:"]},void 0,!0,void 0,this),N.mcpWarning.details.map(OQ)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q[73]=N,q[74]=E;else E=q[74];let Bq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))Bq=Q.jsxDEV(y,{children:Q.jsxDEV(LJ,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[75]=Bq;else Bq=q[75];let Uq;if(q[76]!==p||q[77]!==_||q[78]!==d||q[79]!==T||q[80]!==c||q[81]!==D||q[82]!==E)Uq=Q.jsxDEV(vq,{children:[p,_,Kq,Xq,yq,Nq,d,T,c,D,E,Bq]},void 0,!0,void 0,this),q[76]=p,q[77]=_,q[78]=d,q[79]=T,q[80]=c,q[81]=D,q[82]=E,q[83]=Uq;else Uq=q[83];return Uq}function OQ(J,q){return Q.jsxDEV(Z,{dimColor:!0,children:[" ","└ ",J]},q,!0,void 0,this)}function AQ(J,q){return Q.jsxDEV(Z,{dimColor:!0,children:[" ","└ ",J]},q,!0,void 0,this)}function bQ(J,q){return Q.jsxDEV(Z,{dimColor:!0,children:[" ","└ ",J]},q,!0,void 0,this)}function IQ(J,q){return Q.jsxDEV(Z,{dimColor:!0,children:[" ","└ ",J]},q,!0,void 0,this)}function MQ(J,q){return Q.jsxDEV(Z,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",YJ(J)]},q,!0,void 0,this)}function vQ(J,q){return Q.jsxDEV(Z,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q,!0,void 0,this)}function CQ(J,q){return Q.jsxDEV(Z,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Q.jsxDEV(Z,{children:"(running)"},void 0,!1,void 0,this):Q.jsxDEV(Z,{color:"warning",children:"(stale)"},void 0,!1,void 0,this)]},q,!0,void 0,this)}function kQ(J,q){return Q.jsxDEV(Z,{children:["└ ",J.name,":"," ",Q.jsxDEV(Z,{color:J.status==="capped"?"warning":"error",children:J.message},void 0,!1,void 0,this)]},q,!0,void 0,this)}function SQ(J,q){return Q.jsxDEV(y,{flexDirection:"column",children:[Q.jsxDEV(Z,{color:"warning",children:["Warning: ",J.issue]},void 0,!0,void 0,this),Q.jsxDEV(Z,{children:["Fix: ",J.fix]},void 0,!0,void 0,this)]},q,!0,void 0,this)}function fQ(J,q){return Q.jsxDEV(Z,{children:["└ ",J.type," at ",J.path]},q,!0,void 0,this)}function uQ(J){return{agentType:J.agentType,source:J.source}}function mQ(J){return J.status!=="valid"}function pQ(J){let q=process.env[J.name],K=FJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...K}}function VQ(J){return J.mcpErrorMetadata===void 0}function jQ(J){return(J.installationType==="native"?XJ:KJ)().catch(_Q)}function _Q(){return{latest:null,stable:null}}function dQ(J){return J.plugins.errors}function TQ(J){return J.toolPermissionContext}function cQ(J){return J.mcp.tools}function DQ(J){return J.agentDefinitions}var kq,H,Q;var EQ=Fq(()=>{tJ();cq();RQ();QQ();eJ();sJ();KQ();WQ();$q();hQ();LQ();GQ();Aq();zQ();HQ();YQ();XQ();tq();yQ();UQ();qQ();BQ();JQ();FQ();wQ();NQ();kq=W(Oq(),1),H=W(ZQ(),1),Q=W(l(),1)});
4
- export{VZ as Je,EQ as Ke};
@@ -1,16 +0,0 @@
1
- import{Ina as Yc,Jna as hf}from"./cli-0.1.11-m0aaey0g.mjs";import{Kna as lo}from"./cli-0.1.11-4xsg15d1.mjs";import{Mna as q}from"./cli-0.1.11-4bn5ap1n.mjs";import{Pna as d,Sna as $}from"./cli-0.1.11-yrfxpjhr.mjs";var Fe=d((Nn)=>{Nn.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Nn.HttpAuthLocation||(Nn.HttpAuthLocation={}));Nn.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Nn.HttpApiKeyAuthLocation||(Nn.HttpApiKeyAuthLocation={}));Nn.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(Nn.EndpointURLScheme||(Nn.EndpointURLScheme={}));Nn.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Nn.AlgorithmId||(Nn.AlgorithmId={}));var In=(t)=>{let e=[];if(t.sha256!==void 0)e.push({algorithmId:()=>Nn.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)e.push({algorithmId:()=>Nn.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},jn=(t)=>{let e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e},Dn=(t)=>{return In(t)},Ln=(t)=>{return jn(t)};Nn.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Nn.FieldPosition||(Nn.FieldPosition={}));var Un="__smithy_context";Nn.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Nn.IniSectionType||(Nn.IniSectionType={}));Nn.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(Nn.RequestHandlerProtocol||(Nn.RequestHandlerProtocol={}));Nn.SMITHY_CONTEXT_KEY=Un;Nn.getDefaultClientConfiguration=Dn;Nn.resolveDefaultRuntimeConfig=Ln});var Vt=d((Kn)=>{var Yn=Fe(),Jn=(t)=>{return{setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},Wn=(t)=>{return{httpHandler:t.httpHandler()}};class qe{name;kind;values;constructor({name:t,kind:e=Yn.FieldPosition.HEADER,values:r=[]}){this.name=t,this.kind=e,this.values=r}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((e)=>e!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Ye{entries={};encoding;constructor({fields:t=[],encoding:e="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=e}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((e)=>e.kind===t)}}class at{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let e=new at({...t,headers:{...t.headers}});if(e.query)e.query=Xn(e.query);return e}static isInstance(t){if(!t)return!1;let e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return at.clone(this)}}function Xn(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Je{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}function zn(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}Kn.Field=qe;Kn.Fields=Ye;Kn.HttpRequest=at;Kn.HttpResponse=Je;Kn.getHttpHandlerExtensionConfiguration=Jn;Kn.isValidHostname=zn;Kn.resolveHttpHandlerRuntimeConfig=Wn});var We=d((io)=>{io.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(io.HttpAuthLocation||(io.HttpAuthLocation={}));io.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(io.HttpApiKeyAuthLocation||(io.HttpApiKeyAuthLocation={}));io.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(io.EndpointURLScheme||(io.EndpointURLScheme={}));io.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(io.AlgorithmId||(io.AlgorithmId={}));var eo=(t)=>{let e=[];if(t.sha256!==void 0)e.push({algorithmId:()=>io.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)e.push({algorithmId:()=>io.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},ro=(t)=>{let e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e},so=(t)=>{return eo(t)},no=(t)=>{return ro(t)};io.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(io.FieldPosition||(io.FieldPosition={}));var oo="__smithy_context";io.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(io.IniSectionType||(io.IniSectionType={}));io.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(io.RequestHandlerProtocol||(io.RequestHandlerProtocol={}));io.SMITHY_CONTEXT_KEY=oo;io.getDefaultClientConfiguration=so;io.resolveDefaultRuntimeConfig=no});var ze=d((yo)=>{var Xe=We(),ao=(t)=>t[Xe.SMITHY_CONTEXT_KEY]||(t[Xe.SMITHY_CONTEXT_KEY]={}),ho=(t)=>{if(typeof t==="function")return t;let e=Promise.resolve(t);return()=>e};yo.getSmithyContext=ao;yo.normalizeProvider=ho});var Ze=d((go)=>{var Ke=lo(),bo=(t)=>{if(typeof t==="object"){if("url"in t){let e=Ke.parseUrl(t.url);if(t.headers){e.headers={};for(let[r,n]of Object.entries(t.headers))e.headers[r.toLowerCase()]=n.join(", ")}return e}return t}return Ke.parseUrl(t)};go.toEndpointV1=bo});var ve=d((Io)=>{var So=Vt(),Qe=ze(),To=Ze(),ht=(t)=>{if(typeof t==="function")return t();return t},ie=(t,e,r,n,f)=>({name:e,namespace:t,traits:r,input:n,output:f}),_o=(t)=>(e,r)=>async(n)=>{let{response:f}=await e(n),{operationSchema:s}=Qe.getSmithyContext(r),[,o,i,c,u,a]=s??[];try{let h=await t.protocol.deserializeResponse(ie(o,i,c,u,a),{...t,...r},f);return{response:f,output:h}}catch(h){if(Object.defineProperty(h,"$response",{value:f,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in h)){try{h.message+=`
2
- Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(p){if(!r.logger||r.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else r.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof h.$responseBodyText<"u"){if(h.$response)h.$response.body=h.$responseBodyText}try{if(So.HttpResponse.isInstance(f)){let{headers:p={}}=f,y=Object.entries(p);h.$metadata={httpStatusCode:f.statusCode,requestId:ne(/^x-[\w-]+-request-?id$/,y),extendedRequestId:ne(/^x-[\w-]+-id-2$/,y),cfId:ne(/^x-[\w-]+-cf-id$/,y)}}}catch(p){}}throw h}},ne=(t,e)=>{return(e.find(([r])=>{return r.match(t)})||[void 0,void 0])[1]},Eo=(t)=>(e,r)=>async(n)=>{let{operationSchema:f}=Qe.getSmithyContext(r),[,s,o,i,c,u]=f??[],a=r.endpointV2?async()=>To.toEndpointV1(r.endpointV2):t.endpoint,h=await t.protocol.serializeRequest(ie(s,o,i,c,u),n.input,{...t,...r,endpoint:a});return e({...n,request:h})},Ge={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Ve={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Oo(t){return{applyToStack:(e)=>{e.add(Eo(t),Ve),e.add(_o(t),Ge),t.protocol.setSerdeContext(t)}}}class x{name;namespace;traits;static assign(t,e){return Object.assign(t,e)}static[Symbol.hasInstance](t){let e=this.prototype.isPrototypeOf(t);if(!e&&typeof t==="object"&&t!==null)return t.symbol===this.symbol;return e}getName(){return this.namespace+"#"+this.name}}class lt extends x{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=lt.symbol}var xo=(t,e,r,n)=>x.assign(new lt,{name:e,namespace:t,traits:r,valueSchema:n});class dt extends x{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=dt.symbol}var Ao=(t,e,r,n,f)=>x.assign(new dt,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:f});class bt extends x{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=bt.symbol}var Co=(t,e,r,n,f)=>x.assign(new bt,{name:e,namespace:t,traits:r,input:n,output:f});class v extends x{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=v.symbol}var $o=(t,e,r,n,f)=>x.assign(new v,{name:e,namespace:t,traits:r,memberNames:n,memberList:f});class gt extends v{static symbol=Symbol.for("@smithy/err");ctor;symbol=gt.symbol}var Po=(t,e,r,n,f,s)=>x.assign(new gt,{name:e,namespace:t,traits:r,memberNames:n,memberList:f,ctor:null}),yt=[];function k(t){if(typeof t==="object")return t;if(t=t|0,yt[t])return yt[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if((t>>r++&1)===1)e[n]=1;return yt[t]=e}var G={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},mt=[],pt={};class M{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=M.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,e){this.ref=t,this.memberName=e;let r=[],n=t,f=t;this._isMemberSchema=!1;while(oe(n))r.push(n[1]),n=n[0],f=ht(n),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let s=r.length-1;s>=0;--s){let o=r[s];Object.assign(this.memberTraits,k(o))}}else this.memberTraits=0;if(f instanceof M){let s=this.memberTraits;Object.assign(this,f),this.memberTraits=Object.assign({},s,f.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=e??f.memberName;return}if(this.schema=ht(f),ke(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(f),this.traits=0;if(this._isMemberSchema&&!e)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let e=this.prototype.isPrototypeOf(t);if(!e&&typeof t==="object"&&t!==null)return t.symbol===this.symbol;return e}static of(t){let e=typeof t==="function"||typeof t==="object"&&t!==null;if(typeof t==="number"){if(mt[t])return mt[t]}else if(typeof t==="string"){if(pt[t])return pt[t]}else if(e){if(t[G.ns])return t[G.ns]}let r=ht(t);if(r instanceof M)return r;if(oe(r)){let[f,s]=r;if(f instanceof M)return Object.assign(f.getMergedTraits(),k(s)),f;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let n=new M(r);if(e)return t[G.ns]=n;if(typeof r==="string")return pt[r]=n;if(typeof r==="number")return mt[r]=n;return n}getSchema(){let t=this.schema;if(Array.isArray(t)&&t[0]===0)return t[4];return t}getName(t=!1){let{name:e}=this;return!t&&e&&e.includes("#")?e.split("#")[1]:e||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t==="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t==="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!=="object")return!1;let e=t[0];return e===3||e===-3||e===4}isUnionSchema(){let t=this.getSchema();if(typeof t!=="object")return!1;return t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t==="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return k(this.memberTraits)}getOwnTraits(){return k(this.traits)}getKeySchema(){let[t,e]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!e)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema(),n=t?15:r[4]??0;return V([n,0],"key")}getValueSchema(){let t=this.getSchema(),[e,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],f=typeof t==="number"?63&t:t&&typeof t==="object"&&(r||n)?t[3+t[0]]:e?15:void 0;if(f!=null)return V([f,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let e=this.getSchema();if(this.isStructSchema()&&e[4].includes(t)){let r=e[4].indexOf(t),n=e[5][r];return V(oe(n)?n:[n,0],t)}if(this.isDocumentSchema())return V([15,0],t);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[e,r]of this.structIterator())t[e]=r}catch(e){}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,e]of this.structIterator())if(e.isStreaming()&&e.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),e=t[4].length,r=t[G.it];if(r&&e===r.length){yield*r;return}r=Array(e);for(let n=0;n<e;++n){let f=t[4][n],s=V([t[5][n],0],f);yield r[n]=[f,s]}t[G.it]=r}}function V(t,e){if(t instanceof M)return Object.assign(t,{memberName:e,_isMemberSchema:!0});return new M(t,e)}var oe=(t)=>Array.isArray(t)&&t.length===2,ke=(t)=>Array.isArray(t)&&t.length>=5;class tt extends x{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=tt.symbol}var Bo=(t,e,r,n)=>x.assign(new tt,{name:e,namespace:t,traits:n,schemaRef:r}),Mo=(t,e,r,n)=>x.assign(new tt,{name:e,namespace:t,traits:r,schemaRef:n}),Ro={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class B{namespace;schemas;exceptions;static registries=new Map;constructor(t,e=new Map,r=new Map){this.namespace=t,this.schemas=e,this.exceptions=r}static for(t){if(!B.registries.has(t))B.registries.set(t,new B(t));return B.registries.get(t)}copyFrom(t){let{schemas:e,exceptions:r}=this;for(let[n,f]of t.schemas)if(!e.has(n))e.set(n,f);for(let[n,f]of t.exceptions)if(!r.has(n))r.set(n,f)}register(t,e){let r=this.normalizeShapeId(t);for(let n of[this,B.for(r.split("#")[0])])n.schemas.set(r,e)}getSchema(t){let e=this.normalizeShapeId(t);if(!this.schemas.has(e))throw Error(`@smithy/core/schema - schema not found for ${e}`);return this.schemas.get(e)}registerError(t,e){let r=t,n=r[1];for(let f of[this,B.for(n)])f.schemas.set(n+"#"+r[2],r),f.exceptions.set(r,e)}getErrorCtor(t){let e=t;if(this.exceptions.has(e))return this.exceptions.get(e);return B.for(e[1]).exceptions.get(e)}getBaseException(){for(let t of this.exceptions.keys())if(Array.isArray(t)){let[,e,r]=t,n=e+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return t}return}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){if(t.includes("#"))return t;return this.namespace+"#"+t}}Io.ErrorSchema=gt;Io.ListSchema=lt;Io.MapSchema=dt;Io.NormalizedSchema=M;Io.OperationSchema=bt;Io.SCHEMA=Ro;Io.Schema=x;Io.SimpleSchema=tt;Io.StructureSchema=v;Io.TypeRegistry=B;Io.deref=ht;Io.deserializerMiddlewareOption=Ge;Io.error=Po;Io.getSchemaSerdePlugin=Oo;Io.isStaticSchema=ke;Io.list=xo;Io.map=Ao;Io.op=Co;Io.operation=ie;Io.serializerMiddlewareOption=Ve;Io.sim=Bo;Io.simAdapter=Mo;Io.simpleSchemaCacheN=mt;Io.simpleSchemaCacheS=pt;Io.struct=$o;Io.traitsCache=yt;Io.translateTraits=k});var tr=d((fi)=>{var ci=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";fi.isArrayBuffer=ci});var wt=d((mi)=>{var ai=tr(),ce=$("buffer"),hi=(t,e=0,r=t.byteLength-e)=>{if(!ai.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return ce.Buffer.from(t,e,r)},yi=(t,e)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?ce.Buffer.from(t,e):ce.Buffer.from(t)};mi.fromArrayBuffer=hi;mi.fromString=yi});var sr=d((er)=>{Object.defineProperty(er,"__esModule",{value:!0});er.fromBase64=void 0;var di=wt(),bi=/^[A-Za-z0-9+/]*={0,2}$/,gi=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!bi.exec(t))throw TypeError("Invalid base64 string.");let e=(0,di.fromString)(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};er.fromBase64=gi});var ir=d((nr)=>{Object.defineProperty(nr,"__esModule",{value:!0});nr.toBase64=void 0;var wi=wt(),Si=q(),Ti=(t)=>{let e;if(typeof t==="string")e=(0,Si.fromUtf8)(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,wi.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")};nr.toBase64=Ti});var et=d((R)=>{var St=sr(),Tt=ir();Object.prototype.hasOwnProperty.call(St,"__proto__")&&!Object.prototype.hasOwnProperty.call(R,"__proto__")&&Object.defineProperty(R,"__proto__",{enumerable:!0,value:St.__proto__});Object.keys(St).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(R,t))R[t]=St[t]});Object.prototype.hasOwnProperty.call(Tt,"__proto__")&&!Object.prototype.hasOwnProperty.call(R,"__proto__")&&Object.defineProperty(R,"__proto__",{enumerable:!0,value:Tt.__proto__});Object.keys(Tt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(R,t))R[t]=Tt[t]})});var fe=d((fr)=>{Object.defineProperty(fr,"__esModule",{value:!0});fr.ChecksumStream=void 0;var _i=et(),Ei=$("stream");class cr extends Ei.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:f}){super();if(typeof r.pipe==="function")this.source=r;else throw Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);this.base64Encoder=f??_i.toBase64,this.expectedChecksum=t,this.checksum=e,this.checksumSourceLocation=n,this.source.pipe(this)}_read(t){if(this.pendingCallback){let e=this.pendingCallback;this.pendingCallback=null,e()}}_write(t,e,r){try{if(this.checksum.update(t),!this.push(t)){this.pendingCallback=r;return}}catch(n){return r(n)}return r()}async _final(t){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r)return t(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`))}catch(e){return t(e)}return this.push(null),t()}}fr.ChecksumStream=cr});var I=d((ar)=>{Object.defineProperty(ar,"__esModule",{value:!0});ar.isBlob=ar.isReadableStream=void 0;var Oi=(t)=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);ar.isReadableStream=Oi;var xi=(t)=>{return typeof Blob==="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)};ar.isBlob=xi});var lr=d((mr)=>{Object.defineProperty(mr,"__esModule",{value:!0});mr.ChecksumStream=void 0;var Ci=typeof ReadableStream==="function"?ReadableStream:function(){};class yr extends Ci{}mr.ChecksumStream=yr});var gr=d((dr)=>{Object.defineProperty(dr,"__esModule",{value:!0});dr.createChecksumStream=void 0;var $i=et(),Pi=I(),Bi=lr(),Mi=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:f})=>{if(!(0,Pi.isReadableStream)(r))throw Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=f??$i.toBase64;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let o=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),a=s(u);if(t!==a){let h=Error(`Checksum mismatch: expected "${t}" but received "${a}" in response header "${n}".`);c.error(h)}else c.terminate()}});r.pipeThrough(o);let i=o.readable;return Object.setPrototypeOf(i,Bi.ChecksumStream.prototype),i};dr.createChecksumStream=Mi});var Sr=d((wr)=>{Object.defineProperty(wr,"__esModule",{value:!0});wr.createChecksumStream=Di;var Ri=I(),Ii=fe(),ji=gr();function Di(t){if(typeof ReadableStream==="function"&&(0,Ri.isReadableStream)(t.source))return(0,ji.createChecksumStream)(t);return new Ii.ChecksumStream(t)}});var ue=d((_r)=>{Object.defineProperty(_r,"__esModule",{value:!0});_r.ByteArrayCollector=void 0;class Tr{allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let r=this.byteArrays[0];return this.reset(),r}let t=this.allocByteArray(this.byteLength),e=0;for(let r=0;r<this.byteArrays.length;++r){let n=this.byteArrays[r];t.set(n,e),e+=n.byteLength}return this.reset(),t}reset(){this.byteArrays=[],this.byteLength=0}}_r.ByteArrayCollector=Tr});var Pr=d((Cr)=>{Object.defineProperty(Cr,"__esModule",{value:!0});Cr.createBufferedReadable=void 0;Cr.createBufferedReadableStream=Or;Cr.merge=xr;Cr.flush=_t;Cr.sizeOf=Y;Cr.modeOf=Ar;var Ui=ue();function Or(t,e,r){let n=t.getReader(),f=!1,s=0,o=["",new Ui.ByteArrayCollector((u)=>new Uint8Array(u))],i=-1,c=async(u)=>{let{value:a,done:h}=await n.read(),m=a;if(h){if(i!==-1){let p=_t(o,i);if(Y(p)>0)u.enqueue(p)}u.close()}else{let p=Ar(m,!1);if(i!==p){if(i>=0)u.enqueue(_t(o,i));i=p}if(i===-1){u.enqueue(m);return}let y=Y(m);s+=y;let l=Y(o[i]);if(y>=e&&l===0)u.enqueue(m);else{let b=xr(o,i,m);if(!f&&s>e*2)f=!0,r?.warn(`@smithy/util-stream - stream chunk size ${y} is below threshold of ${e}, automatically buffering.`);if(b>=e)u.enqueue(_t(o,i));else await c(u)}}};return new ReadableStream({pull:c})}Cr.createBufferedReadable=Or;function xr(t,e,r){switch(e){case 0:return t[0]+=r,Y(t[0]);case 1:case 2:return t[e].push(r),Y(t[e])}}function _t(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Y(t){return t?.byteLength??t?.length??0}function Ar(t,e=!0){if(e&&typeof Buffer<"u"&&t instanceof Buffer)return 2;if(t instanceof Uint8Array)return 1;if(typeof t==="string")return 0;return-1}});var Rr=d((Mr)=>{Object.defineProperty(Mr,"__esModule",{value:!0});Mr.createBufferedReadable=Xi;var Ji=$("node:stream"),Br=ue(),j=Pr(),Wi=I();function Xi(t,e,r){if((0,Wi.isReadableStream)(t))return(0,j.createBufferedReadableStream)(t,e,r);let n=new Ji.Readable({read(){}}),f=!1,s=0,o=["",new Br.ByteArrayCollector((c)=>new Uint8Array(c)),new Br.ByteArrayCollector((c)=>Buffer.from(new Uint8Array(c)))],i=-1;return t.on("data",(c)=>{let u=(0,j.modeOf)(c,!0);if(i!==u){if(i>=0)n.push((0,j.flush)(o,i));i=u}if(i===-1){n.push(c);return}let a=(0,j.sizeOf)(c);s+=a;let h=(0,j.sizeOf)(o[i]);if(a>=e&&h===0)n.push(c);else{let m=(0,j.merge)(o,i,c);if(!f&&s>e*2)f=!0,r?.warn(`@smithy/util-stream - stream chunk size ${a} is below threshold of ${e}, automatically buffering.`);if(m>=e)n.push((0,j.flush)(o,i))}}),t.on("end",()=>{if(i!==-1){let c=(0,j.flush)(o,i);if((0,j.sizeOf)(c)>0)n.push(c)}n.push(null)}),n}});var Dr=d((Ir)=>{Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getAwsChunkedEncodingStream=void 0;var Ki=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:f,checksumLocationName:s,streamHasher:o}=e,i=r!==void 0&&n!==void 0&&f!==void 0&&s!==void 0&&o!==void 0,c=i?o(f,t):void 0,u=t.getReader();return new ReadableStream({async pull(a){let{value:h,done:m}=await u.read();if(m){if(a.enqueue(`0\r
3
- `),i){let p=r(await c);a.enqueue(`${s}:${p}\r
4
- `),a.enqueue(`\r
5
- `)}a.close()}else a.enqueue(`${(n(h)||0).toString(16)}\r
6
- ${h}\r
7
- `)}})};Ir.getAwsChunkedEncodingStream=Ki});var Ur=d((Lr)=>{Object.defineProperty(Lr,"__esModule",{value:!0});Lr.getAwsChunkedEncodingStream=Vi;var Zi=$("node:stream"),Qi=Dr(),Gi=I();function Vi(t,e){let r=t,n=t;if((0,Gi.isReadableStream)(n))return(0,Qi.getAwsChunkedEncodingStream)(n,e);let{base64Encoder:f,bodyLengthChecker:s,checksumAlgorithmFn:o,checksumLocationName:i,streamHasher:c}=e,u=f!==void 0&&o!==void 0&&i!==void 0&&c!==void 0,a=u?c(o,r):void 0,h=new Zi.Readable({read:()=>{}});return r.on("data",(m)=>{let p=s(m)||0;if(p===0)return;h.push(`${p.toString(16)}\r
8
- `),h.push(m),h.push(`\r
9
- `)}),r.on("end",async()=>{if(h.push(`0\r
10
- `),u){let m=f(await a);h.push(`${i}:${m}\r
11
- `),h.push(`\r
12
- `)}h.push(null)}),h}});var Hr=d((Nr)=>{Object.defineProperty(Nr,"__esModule",{value:!0});Nr.headStream=vi;async function vi(t,e){let r=0,n=[],f=t.getReader(),s=!1;while(!s){let{done:c,value:u}=await f.read();if(u)n.push(u),r+=u?.byteLength??0;if(r>=e)break;s=c}f.releaseLock();let o=new Uint8Array(Math.min(e,r)),i=0;for(let c of n){if(c.byteLength>o.byteLength-i){o.set(c.subarray(0,o.byteLength-i),i);break}else o.set(c,i);i+=c.length}return o}});var Jr=d((qr)=>{Object.defineProperty(qr,"__esModule",{value:!0});qr.headStream=void 0;var ec=$("stream"),rc=Hr(),sc=I(),nc=(t,e)=>{if((0,sc.isReadableStream)(t))return(0,rc.headStream)(t,e);return new Promise((r,n)=>{let f=new Fr;f.limit=e,t.pipe(f),t.on("error",(s)=>{f.end(),n(s)}),f.on("error",n),f.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.buffers));r(s)})})};qr.headStream=nc;class Fr extends ec.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(t,e,r){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){let n=this.bytesBuffered-this.limit,f=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=f.subarray(0,f.byteLength-n),this.emit("finish")}r()}}});var Wr=d((ac)=>{ac.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(ac.HttpAuthLocation||(ac.HttpAuthLocation={}));ac.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(ac.HttpApiKeyAuthLocation||(ac.HttpApiKeyAuthLocation={}));ac.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(ac.EndpointURLScheme||(ac.EndpointURLScheme={}));ac.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(ac.AlgorithmId||(ac.AlgorithmId={}));var oc=(t)=>{let e=[];if(t.sha256!==void 0)e.push({algorithmId:()=>ac.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)e.push({algorithmId:()=>ac.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},ic=(t)=>{let e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e},cc=(t)=>{return oc(t)},fc=(t)=>{return ic(t)};ac.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(ac.FieldPosition||(ac.FieldPosition={}));var uc="__smithy_context";ac.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(ac.IniSectionType||(ac.IniSectionType={}));ac.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(ac.RequestHandlerProtocol||(ac.RequestHandlerProtocol={}));ac.SMITHY_CONTEXT_KEY=uc;ac.getDefaultClientConfiguration=cc;ac.resolveDefaultRuntimeConfig=fc});var Zr=d((wc)=>{var pc=Wr(),lc=(t)=>{return{setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},dc=(t)=>{return{httpHandler:t.httpHandler()}};class Xr{name;kind;values;constructor({name:t,kind:e=pc.FieldPosition.HEADER,values:r=[]}){this.name=t,this.kind=e,this.values=r}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((e)=>e!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class zr{entries={};encoding;constructor({fields:t=[],encoding:e="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=e}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((e)=>e.kind===t)}}class Et{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let e=new Et({...t,headers:{...t.headers}});if(e.query)e.query=bc(e.query);return e}static isInstance(t){if(!t)return!1;let e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return Et.clone(this)}}function bc(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Kr{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}function gc(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}wc.Field=Xr;wc.Fields=zr;wc.HttpRequest=Et;wc.HttpResponse=Kr;wc.getHttpHandlerExtensionConfiguration=lc;wc.isValidHostname=gc;wc.resolveHttpHandlerRuntimeConfig=dc});var Qr=d(($c)=>{var Cc=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";$c.isArrayBuffer=Cc});var be=d((Ic)=>{var Bc=Qr(),de=$("buffer"),Mc=(t,e=0,r=t.byteLength-e)=>{if(!Bc.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return de.Buffer.from(t,e,r)},Rc=(t,e)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?de.Buffer.from(t,e):de.Buffer.from(t)};Ic.fromArrayBuffer=Mc;Ic.fromString=Rc});var kr=d((Gr)=>{Object.defineProperty(Gr,"__esModule",{value:!0});Gr.fromBase64=void 0;var Lc=be(),Uc=/^[A-Za-z0-9+/]*={0,2}$/,Nc=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Uc.exec(t))throw TypeError("Invalid base64 string.");let e=(0,Lc.fromString)(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};Gr.fromBase64=Nc});var es=d((vr)=>{Object.defineProperty(vr,"__esModule",{value:!0});vr.toBase64=void 0;var Hc=be(),Fc=q(),qc=(t)=>{let e;if(typeof t==="string")e=(0,Fc.fromUtf8)(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Hc.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")};vr.toBase64=qc});var rs=d((D)=>{var Ot=kr(),xt=es();Object.prototype.hasOwnProperty.call(Ot,"__proto__")&&!Object.prototype.hasOwnProperty.call(D,"__proto__")&&Object.defineProperty(D,"__proto__",{enumerable:!0,value:Ot.__proto__});Object.keys(Ot).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(D,t))D[t]=Ot[t]});Object.prototype.hasOwnProperty.call(xt,"__proto__")&&!Object.prototype.hasOwnProperty.call(D,"__proto__")&&Object.defineProperty(D,"__proto__",{enumerable:!0,value:xt.__proto__});Object.keys(xt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(D,t))D[t]=xt[t]})});var is=d((Gc)=>{var ss=Zr(),Jc=Yc(),Wc=rs();function ns(t,e){return new Request(t,e)}function Xc(t=0){return new Promise((e,r)=>{if(t)setTimeout(()=>{let n=Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}var At={supported:void 0};class ge{config;configProvider;static create(t){if(typeof t?.handle==="function")return t;return new ge(t)}constructor(t){if(typeof t==="function")this.configProvider=t().then((e)=>e||{});else this.config=t??{},this.configProvider=Promise.resolve(this.config);if(At.supported===void 0)At.supported=Boolean(typeof Request<"u"&&"keepalive"in ns("https://[::1]"))}destroy(){}async handle(t,{abortSignal:e,requestTimeout:r}={}){if(!this.config)this.config=await this.configProvider;let n=r??this.config.requestTimeout,f=this.config.keepAlive===!0,s=this.config.credentials;if(e?.aborted){let w=os(e);return Promise.reject(w)}let o=t.path,i=Jc.buildQueryString(t.query||{});if(i)o+=`?${i}`;if(t.fragment)o+=`#${t.fragment}`;let c="";if(t.username!=null||t.password!=null){let w=t.username??"",g=t.password??"";c=`${w}:${g}@`}let{port:u,method:a}=t,h=`${t.protocol}//${c}${t.hostname}${u?`:${u}`:""}${o}`,m=a==="GET"||a==="HEAD"?void 0:t.body,p={body:m,headers:new Headers(t.headers),method:a,credentials:s};if(this.config?.cache)p.cache=this.config.cache;if(m)p.duplex="half";if(typeof AbortController<"u")p.signal=e;if(At.supported)p.keepalive=f;if(typeof this.config.requestInit==="function")Object.assign(p,this.config.requestInit(t));let y=()=>{},l=ns(h,p),b=[fetch(l).then((w)=>{let g=w.headers,T={};for(let O of g.entries())T[O[0]]=O[1];if(w.body==null)return w.blob().then((O)=>({response:new ss.HttpResponse({headers:T,reason:w.statusText,statusCode:w.status,body:O})}));return{response:new ss.HttpResponse({headers:T,reason:w.statusText,statusCode:w.status,body:w.body})}}),Xc(n)];if(e)b.push(new Promise((w,g)=>{let T=()=>{let _=os(e);g(_)};if(typeof e.addEventListener==="function"){let _=e;_.addEventListener("abort",T,{once:!0}),y=()=>_.removeEventListener("abort",T)}else e.onabort=T}));return Promise.race(b).finally(y)}updateHttpClientConfig(t,e){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return r[t]=e,r})}httpHandlerConfigs(){return this.config??{}}}function os(t){let e=t&&typeof t==="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let f=Error("Request aborted");return f.name="AbortError",f.cause=e,f}let n=Error(String(e));return n.name="AbortError",n}let r=Error("Request aborted");return r.name="AbortError",r}var zc=async(t)=>{if(typeof Blob==="function"&&t instanceof Blob||t.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await t.arrayBuffer());return Kc(t)}return Zc(t)};async function Kc(t){let e=await Qc(t),r=Wc.fromBase64(e);return new Uint8Array(r)}async function Zc(t){let e=[],r=t.getReader(),n=!1,f=0;while(!n){let{done:i,value:c}=await r.read();if(c)e.push(c),f+=c.length;n=i}let s=new Uint8Array(f),o=0;for(let i of e)s.set(i,o),o+=i.length;return s}function Qc(t){return new Promise((e,r)=>{let n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(Error("Reader aborted too early"));let f=n.result??"",s=f.indexOf(","),o=s>-1?s+1:f.length;e(f.substring(o))},n.onabort=()=>r(Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}Gc.FetchHttpHandler=ge;Gc.keepAliveSupport=At;Gc.streamCollector=zc});var fs=d((rf)=>{var cs={},we={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();if(e.length===1)e=`0${e}`;cs[t]=e,we[e]=t}function tf(t){if(t.length%2!==0)throw Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in we)e[r/2]=we[n];else throw Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function ef(t){let e="";for(let r=0;r<t.byteLength;r++)e+=cs[t[r]];return e}rf.fromHex=tf;rf.toHex=ef});var ps=d((ys)=>{Object.defineProperty(ys,"__esModule",{value:!0});ys.sdkStreamMixin=void 0;var of=is(),cf=et(),ff=fs(),uf=q(),us=I(),as="The stream has already been transformed.",af=(t)=>{if(!hs(t)&&!(0,us.isReadableStream)(t)){let f=t?.__proto__?.constructor?.name||t;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${f}`)}let e=!1,r=async()=>{if(e)throw Error(as);return e=!0,await(0,of.streamCollector)(t)},n=(f)=>{if(typeof f.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
13
- If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return f.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async(f)=>{let s=await r();if(f==="base64")return(0,cf.toBase64)(s);else if(f==="hex")return(0,ff.toHex)(s);else if(f===void 0||f==="utf8"||f==="utf-8")return(0,uf.toUtf8)(s);else if(typeof TextDecoder==="function")return new TextDecoder(f).decode(s);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw Error(as);if(e=!0,hs(t))return n(t);else if((0,us.isReadableStream)(t))return t;else throw Error(`Cannot transform payload to web stream, got ${t}`)}})};ys.sdkStreamMixin=af;var hs=(t)=>typeof Blob==="function"&&t instanceof Blob});var gs=d((ds)=>{Object.defineProperty(ds,"__esModule",{value:!0});ds.sdkStreamMixin=void 0;var yf=hf(),mf=wt(),Se=$("stream"),pf=ps(),ls="The stream has already been transformed.",lf=(t)=>{if(!(t instanceof Se.Readable))try{return(0,pf.sdkStreamMixin)(t)}catch(n){let f=t?.__proto__?.constructor?.name||t;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${f}`)}let e=!1,r=async()=>{if(e)throw Error(ls);return e=!0,await(0,yf.streamCollector)(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async(n)=>{let f=await r();if(n===void 0||Buffer.isEncoding(n))return(0,mf.fromArrayBuffer)(f.buffer,f.byteOffset,f.byteLength).toString(n);else return new TextDecoder(n).decode(f)},transformToWebStream:()=>{if(e)throw Error(ls);if(t.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof Se.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,Se.Readable.toWeb(t)}})};ds.sdkStreamMixin=lf});var Ss=d((ws)=>{Object.defineProperty(ws,"__esModule",{value:!0});ws.splitStream=df;async function df(t){if(typeof t.stream==="function")t=t.stream();return t.tee()}});var Os=d((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.splitStream=wf;var Ts=$("stream"),gf=Ss(),_s=I();async function wf(t){if((0,_s.isReadableStream)(t)||(0,_s.isBlob)(t))return(0,gf.splitStream)(t);let e=new Ts.PassThrough,r=new Ts.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}});var $s=d((S)=>{var xs=et(),As=q(),Ct=fe(),$t=Sr(),Pt=Rr(),Bt=Ur(),Mt=Jr(),Rt=gs(),It=Os(),Cs=I();class st extends Uint8Array{static fromString(t,e="utf-8"){if(typeof t==="string"){if(e==="base64")return st.mutate(xs.fromBase64(t));return st.mutate(As.fromUtf8(t))}throw Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,st.prototype),t}transformToString(t="utf-8"){if(t==="base64")return xs.toBase64(this);return As.toUtf8(this)}}S.isBlob=Cs.isBlob;S.isReadableStream=Cs.isReadableStream;S.Uint8ArrayBlobAdapter=st;Object.prototype.hasOwnProperty.call(Ct,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Ct.__proto__});Object.keys(Ct).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Ct[t]});Object.prototype.hasOwnProperty.call($t,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:$t.__proto__});Object.keys($t).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=$t[t]});Object.prototype.hasOwnProperty.call(Pt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Pt.__proto__});Object.keys(Pt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Pt[t]});Object.prototype.hasOwnProperty.call(Bt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Bt.__proto__});Object.keys(Bt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Bt[t]});Object.prototype.hasOwnProperty.call(Mt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Mt.__proto__});Object.keys(Mt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Mt[t]});Object.prototype.hasOwnProperty.call(Rt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Rt.__proto__});Object.keys(Rt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Rt[t]});Object.prototype.hasOwnProperty.call(It,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:It.__proto__});Object.keys(It).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=It[t]})});var sn=d((Ah,Lt)=>{var Ps,Bs,Ms,Rs,Is,js,Ds,Ls,Us,Ns,Hs,Fs,qs,jt,Te,Ys,Js,Ws,J,Xs,zs,Ks,Zs,Qs,Gs,Vs,ks,vs,Dt,tn,en,rn;(function(t){var e=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(n){t(r(e,r(n)))});else if(typeof Lt==="object"&&typeof Ah==="object")t(r(e,r(Ah)));else t(r(e));function r(n,f){if(n!==e)if(typeof Object.create==="function")Object.defineProperty(n,"__esModule",{value:!0});else n.__esModule=!0;return function(s,o){return n[s]=f?f(s,o):o}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i))s[i]=o[i]};Ps=function(s,o){if(typeof o!=="function"&&o!==null)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");e(s,o);function i(){this.constructor=s}s.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},Bs=Object.assign||function(s){for(var o,i=1,c=arguments.length;i<c;i++){o=arguments[i];for(var u in o)if(Object.prototype.hasOwnProperty.call(o,u))s[u]=o[u]}return s},Ms=function(s,o){var i={};for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&o.indexOf(c)<0)i[c]=s[c];if(s!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var u=0,c=Object.getOwnPropertySymbols(s);u<c.length;u++)if(o.indexOf(c[u])<0&&Object.prototype.propertyIsEnumerable.call(s,c[u]))i[c[u]]=s[c[u]]}return i},Rs=function(s,o,i,c){var u=arguments.length,a=u<3?o:c===null?c=Object.getOwnPropertyDescriptor(o,i):c,h;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(s,o,i,c);else for(var m=s.length-1;m>=0;m--)if(h=s[m])a=(u<3?h(a):u>3?h(o,i,a):h(o,i))||a;return u>3&&a&&Object.defineProperty(o,i,a),a},Is=function(s,o){return function(i,c){o(i,c,s)}},js=function(s,o,i,c,u,a){function h(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var m=c.kind,p=m==="getter"?"get":m==="setter"?"set":"value",y=!o&&s?c.static?s:s.prototype:null,l=o||(y?Object.getOwnPropertyDescriptor(y,c.name):{}),b,w=!1;for(var g=i.length-1;g>=0;g--){var T={};for(var _ in c)T[_]=_==="access"?{}:c[_];for(var _ in c.access)T.access[_]=c.access[_];T.addInitializer=function(N){if(w)throw TypeError("Cannot add initializers after decoration has completed");a.push(h(N||null))};var O=(0,i[g])(m==="accessor"?{get:l.get,set:l.set}:l[p],T);if(m==="accessor"){if(O===void 0)continue;if(O===null||typeof O!=="object")throw TypeError("Object expected");if(b=h(O.get))l.get=b;if(b=h(O.set))l.set=b;if(b=h(O.init))u.unshift(b)}else if(b=h(O))if(m==="field")u.unshift(b);else l[p]=b}if(y)Object.defineProperty(y,c.name,l);w=!0},Ds=function(s,o,i){var c=arguments.length>2;for(var u=0;u<o.length;u++)i=c?o[u].call(s,i):o[u].call(s);return c?i:void 0},Ls=function(s){return typeof s==="symbol"?s:"".concat(s)},Us=function(s,o,i){if(typeof o==="symbol")o=o.description?"[".concat(o.description,"]"):"";return Object.defineProperty(s,"name",{configurable:!0,value:i?"".concat(i," ",o):o})},Ns=function(s,o){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(s,o)},Hs=function(s,o,i,c){function u(a){return a instanceof i?a:new i(function(h){h(a)})}return new(i||(i=Promise))(function(a,h){function m(l){try{y(c.next(l))}catch(b){h(b)}}function p(l){try{y(c.throw(l))}catch(b){h(b)}}function y(l){l.done?a(l.value):u(l.value).then(m,p)}y((c=c.apply(s,o||[])).next())})},Fs=function(s,o){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},c,u,a,h=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return h.next=m(0),h.throw=m(1),h.return=m(2),typeof Symbol==="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(y){return function(l){return p([y,l])}}function p(y){if(c)throw TypeError("Generator is already executing.");while(h&&(h=0,y[0]&&(i=0)),i)try{if(c=1,u&&(a=y[0]&2?u.return:y[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,y[1])).done)return a;if(u=0,a)y=[y[0]&2,a.value];switch(y[0]){case 0:case 1:a=y;break;case 4:return i.label++,{value:y[1],done:!1};case 5:i.label++,u=y[1],y=[0];continue;case 7:y=i.ops.pop(),i.trys.pop();continue;default:if((a=i.trys,!(a=a.length>0&&a[a.length-1]))&&(y[0]===6||y[0]===2)){i=0;continue}if(y[0]===3&&(!a||y[1]>a[0]&&y[1]<a[3])){i.label=y[1];break}if(y[0]===6&&i.label<a[1]){i.label=a[1],a=y;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(y);break}if(a[2])i.ops.pop();i.trys.pop();continue}y=o.call(s,i)}catch(l){y=[6,l],u=0}finally{c=a=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},qs=function(s,o){for(var i in s)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i))Dt(o,s,i)},Dt=Object.create?function(s,o,i,c){if(c===void 0)c=i;var u=Object.getOwnPropertyDescriptor(o,i);if(!u||("get"in u?!o.__esModule:u.writable||u.configurable))u={enumerable:!0,get:function(){return o[i]}};Object.defineProperty(s,c,u)}:function(s,o,i,c){if(c===void 0)c=i;s[c]=o[i]},jt=function(s){var o=typeof Symbol==="function"&&Symbol.iterator,i=o&&s[o],c=0;if(i)return i.call(s);if(s&&typeof s.length==="number")return{next:function(){if(s&&c>=s.length)s=void 0;return{value:s&&s[c++],done:!s}}};throw TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Te=function(s,o){var i=typeof Symbol==="function"&&s[Symbol.iterator];if(!i)return s;var c=i.call(s),u,a=[],h;try{while((o===void 0||o-- >0)&&!(u=c.next()).done)a.push(u.value)}catch(m){h={error:m}}finally{try{if(u&&!u.done&&(i=c.return))i.call(c)}finally{if(h)throw h.error}}return a},Ys=function(){for(var s=[],o=0;o<arguments.length;o++)s=s.concat(Te(arguments[o]));return s},Js=function(){for(var s=0,o=0,i=arguments.length;o<i;o++)s+=arguments[o].length;for(var c=Array(s),u=0,o=0;o<i;o++)for(var a=arguments[o],h=0,m=a.length;h<m;h++,u++)c[u]=a[h];return c},Ws=function(s,o,i){if(i||arguments.length===2){for(var c=0,u=o.length,a;c<u;c++)if(a||!(c in o)){if(!a)a=Array.prototype.slice.call(o,0,c);a[c]=o[c]}}return s.concat(a||Array.prototype.slice.call(o))},J=function(s){return this instanceof J?(this.v=s,this):new J(s)},Xs=function(s,o,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var c=i.apply(s,o||[]),u,a=[];return u=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),m("next"),m("throw"),m("return",h),u[Symbol.asyncIterator]=function(){return this},u;function h(g){return function(T){return Promise.resolve(T).then(g,b)}}function m(g,T){if(c[g]){if(u[g]=function(_){return new Promise(function(O,N){a.push([g,_,O,N])>1||p(g,_)})},T)u[g]=T(u[g])}}function p(g,T){try{y(c[g](T))}catch(_){w(a[0][3],_)}}function y(g){g.value instanceof J?Promise.resolve(g.value.v).then(l,b):w(a[0][2],g)}function l(g){p("next",g)}function b(g){p("throw",g)}function w(g,T){if(g(T),a.shift(),a.length)p(a[0][0],a[0][1])}},zs=function(s){var o,i;return o={},c("next"),c("throw",function(u){throw u}),c("return"),o[Symbol.iterator]=function(){return this},o;function c(u,a){o[u]=s[u]?function(h){return(i=!i)?{value:J(s[u](h)),done:!1}:a?a(h):h}:a}},Ks=function(s){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o=s[Symbol.asyncIterator],i;return o?o.call(s):(s=typeof jt==="function"?jt(s):s[Symbol.iterator](),i={},c("next"),c("throw"),c("return"),i[Symbol.asyncIterator]=function(){return this},i);function c(a){i[a]=s[a]&&function(h){return new Promise(function(m,p){h=s[a](h),u(m,p,h.done,h.value)})}}function u(a,h,m,p){Promise.resolve(p).then(function(y){a({value:y,done:m})},h)}},Zs=function(s,o){if(Object.defineProperty)Object.defineProperty(s,"raw",{value:o});else s.raw=o;return s};var r=Object.create?function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}:function(s,o){s.default=o},n=function(s){return n=Object.getOwnPropertyNames||function(o){var i=[];for(var c in o)if(Object.prototype.hasOwnProperty.call(o,c))i[i.length]=c;return i},n(s)};Qs=function(s){if(s&&s.__esModule)return s;var o={};if(s!=null){for(var i=n(s),c=0;c<i.length;c++)if(i[c]!=="default")Dt(o,s,i[c])}return r(o,s),o},Gs=function(s){return s&&s.__esModule?s:{default:s}},Vs=function(s,o,i,c){if(i==="a"&&!c)throw TypeError("Private accessor was defined without a getter");if(typeof o==="function"?s!==o||!c:!o.has(s))throw TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?c:i==="a"?c.call(s):c?c.value:o.get(s)},ks=function(s,o,i,c,u){if(c==="m")throw TypeError("Private method is not writable");if(c==="a"&&!u)throw TypeError("Private accessor was defined without a setter");if(typeof o==="function"?s!==o||!u:!o.has(s))throw TypeError("Cannot write private member to an object whose class did not declare it");return c==="a"?u.call(s,i):u?u.value=i:o.set(s,i),i},vs=function(s,o){if(o===null||typeof o!=="object"&&typeof o!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof s==="function"?o===s:s.has(o)},tn=function(s,o,i){if(o!==null&&o!==void 0){if(typeof o!=="object"&&typeof o!=="function")throw TypeError("Object expected.");var c,u;if(i){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");c=o[Symbol.asyncDispose]}if(c===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(c=o[Symbol.dispose],i)u=c}if(typeof c!=="function")throw TypeError("Object not disposable.");if(u)c=function(){try{u.call(this)}catch(a){return Promise.reject(a)}};s.stack.push({value:o,dispose:c,async:i})}else if(i)s.stack.push({async:!0});return o};var f=typeof SuppressedError==="function"?SuppressedError:function(s,o,i){var c=Error(i);return c.name="SuppressedError",c.error=s,c.suppressed=o,c};en=function(s){function o(a){s.error=s.hasError?new f(a,s.error,"An error was suppressed during disposal."):a,s.hasError=!0}var i,c=0;function u(){while(i=s.stack.pop())try{if(!i.async&&c===1)return c=0,s.stack.push(i),Promise.resolve().then(u);if(i.dispose){var a=i.dispose.call(i.value);if(i.async)return c|=2,Promise.resolve(a).then(u,function(h){return o(h),u()})}else c|=1}catch(h){o(h)}if(c===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return u()},rn=function(s,o){if(typeof s==="string"&&/^\.\.?\//.test(s))return s.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,c,u,a,h){return c?o?".jsx":".js":u&&(!a||!h)?i:u+a+"."+h.toLowerCase()+"js"});return s},t("__extends",Ps),t("__assign",Bs),t("__rest",Ms),t("__decorate",Rs),t("__param",Is),t("__esDecorate",js),t("__runInitializers",Ds),t("__propKey",Ls),t("__setFunctionName",Us),t("__metadata",Ns),t("__awaiter",Hs),t("__generator",Fs),t("__exportStar",qs),t("__createBinding",Dt),t("__values",jt),t("__read",Te),t("__spread",Ys),t("__spreadArrays",Js),t("__spreadArray",Ws),t("__await",J),t("__asyncGenerator",Xs),t("__asyncDelegator",zs),t("__asyncValues",Ks),t("__makeTemplateObject",Zs),t("__importStar",Qs),t("__importDefault",Gs),t("__classPrivateFieldGet",Vs),t("__classPrivateFieldSet",ks),t("__classPrivateFieldIn",vs),t("__addDisposableResource",tn),t("__disposeResources",en),t("__rewriteRelativeImportExtension",rn)})});var fn=d((on)=>{Object.defineProperty(on,"__esModule",{value:!0});on.randomUUID=void 0;var Of=sn(),nn=Of.__importDefault($("crypto"));on.randomUUID=nn.default.randomUUID.bind(nn.default)});var an=d((Af)=>{var un=fn(),E=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),xf=()=>{if(un.randomUUID)return un.randomUUID();let t=new Uint8Array(16);return crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,E[t[0]]+E[t[1]]+E[t[2]]+E[t[3]]+"-"+E[t[4]]+E[t[5]]+"-"+E[t[6]]+E[t[7]]+"-"+E[t[8]]+E[t[9]]+"-"+E[t[10]]+E[t[11]]+E[t[12]]+E[t[13]]+E[t[14]]+E[t[15]]};Af.v4=xf});var wn=d((_u)=>{var $f=an(),Pf=(t,e,r=(n)=>n)=>t,Bf=(t)=>{switch(t){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${t}"`)}},Mf=(t)=>{if(t===null||t===void 0)return;if(typeof t==="number"){if(t===0||t===1)ct.warn(Nt(`Expected boolean, got ${typeof t}: ${t}`));if(t===0)return!1;if(t===1)return!0}if(typeof t==="string"){let e=t.toLowerCase();if(e==="false"||e==="true")ct.warn(Nt(`Expected boolean, got ${typeof t}: ${t}`));if(e==="false")return!1;if(e==="true")return!0}if(typeof t==="boolean")return t;throw TypeError(`Expected boolean, got ${typeof t}: ${t}`)},ot=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string"){let e=parseFloat(t);if(!Number.isNaN(e)){if(String(e)!==String(t))ct.warn(Nt(`Expected number but observed string: ${t}`));return e}}if(typeof t==="number")return t;throw TypeError(`Expected number, got ${typeof t}: ${t}`)},Rf=Math.ceil(340282346638528860000000000000000000000),Ut=(t)=>{let e=ot(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0){if(Math.abs(e)>Rf)throw TypeError(`Expected 32-bit float, got ${t}`)}return e},it=(t)=>{if(t===null||t===void 0)return;if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw TypeError(`Expected integer, got ${typeof t}: ${t}`)},If=it,Ee=(t)=>Ae(t,32),Oe=(t)=>Ae(t,16),xe=(t)=>Ae(t,8),Ae=(t,e)=>{let r=it(t);if(r!==void 0&&jf(r,e)!==r)throw TypeError(`Expected ${e}-bit integer, got ${t}`);return r},jf=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},Df=(t,e)=>{if(t===null||t===void 0){if(e)throw TypeError(`Expected a non-null value for ${e}`);throw TypeError("Expected a non-null value")}return t},yn=(t)=>{if(t===null||t===void 0)return;if(typeof t==="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw TypeError(`Expected object, got ${e}: ${t}`)},Lf=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string")return t;if(["boolean","number","bigint"].includes(typeof t))return ct.warn(Nt(`Expected string, got ${typeof t}: ${t}`)),String(t);throw TypeError(`Expected string, got ${typeof t}: ${t}`)},Uf=(t)=>{if(t===null||t===void 0)return;let e=yn(t),r=Object.entries(e).filter(([,n])=>n!=null).map(([n])=>n);if(r.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},Ce=(t)=>{if(typeof t=="string")return ot(z(t));return ot(t)},Nf=Ce,mn=(t)=>{if(typeof t=="string")return Ut(z(t));return Ut(t)},Hf=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,z=(t)=>{let e=t.match(Hf);if(e===null||e[0].length!==t.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(t)},$e=(t)=>{if(typeof t=="string")return pn(t);return ot(t)},Ff=$e,qf=$e,Yf=(t)=>{if(typeof t=="string")return pn(t);return Ut(t)},pn=(t)=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${t}`)}},ln=(t)=>{if(typeof t==="string")return it(z(t));return it(t)},Jf=ln,Wf=(t)=>{if(typeof t==="string")return Ee(z(t));return Ee(t)},W=(t)=>{if(typeof t==="string")return Oe(z(t));return Oe(t)},dn=(t)=>{if(typeof t==="string")return xe(z(t));return xe(t)},Nt=(t)=>{return String(TypeError(t).stack||t).split(`
14
- `).slice(0,5).filter((e)=>!e.includes("stackTraceWarning")).join(`
15
- `)},ct={warn:console.warn},Xf=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zf(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),f=t.getUTCDate(),s=t.getUTCHours(),o=t.getUTCMinutes(),i=t.getUTCSeconds(),c=f<10?`0${f}`:`${f}`,u=s<10?`0${s}`:`${s}`,a=o<10?`0${o}`:`${o}`,h=i<10?`0${i}`:`${i}`;return`${Xf[n]}, ${c} ${Pe[r]} ${e} ${u}:${a}:${h} GMT`}var Kf=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Zf=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let e=Kf.exec(t);if(!e)throw TypeError("Invalid RFC-3339 date-time value");let[r,n,f,s,o,i,c,u]=e,a=W(X(n)),h=P(f,"month",1,12),m=P(s,"day",1,31);return nt(a,h,m,{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u})},Qf=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Gf=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let e=Qf.exec(t);if(!e)throw TypeError("Invalid RFC-3339 date-time value");let[r,n,f,s,o,i,c,u,a]=e,h=W(X(n)),m=P(f,"month",1,12),p=P(s,"day",1,31),y=nt(h,m,p,{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u});if(a.toUpperCase()!="Z")y.setTime(y.getTime()-uu(a));return y},Vf=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),kf=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),vf=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),tu=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let e=Vf.exec(t);if(e){let[r,n,f,s,o,i,c,u]=e;return nt(W(X(s)),_e(f),P(n,"day",1,31),{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u})}if(e=kf.exec(t),e){let[r,n,f,s,o,i,c,u]=e;return nu(nt(ru(s),_e(f),P(n,"day",1,31),{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u}))}if(e=vf.exec(t),e){let[r,n,f,s,o,i,c,u]=e;return nt(W(X(u)),_e(n),P(f.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:i,fractionalMilliseconds:c})}throw TypeError("Invalid RFC-7231 date-time value")},eu=(t)=>{if(t===null||t===void 0)return;let e;if(typeof t==="number")e=t;else if(typeof t==="string")e=Ce(t);else if(typeof t==="object"&&t.tag===1)e=t.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1000))},nt=(t,e,r,n)=>{let f=e-1;return iu(t,f,r),new Date(Date.UTC(t,f,r,P(n.hours,"hour",0,23),P(n.minutes,"minute",0,59),P(n.seconds,"seconds",0,60),fu(n.fractionalMilliseconds)))},ru=(t)=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+W(X(t));if(r<e)return r+100;return r},su=1576800000000,nu=(t)=>{if(t.getTime()-new Date().getTime()>su)return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()));return t},_e=(t)=>{let e=Pe.indexOf(t);if(e<0)throw TypeError(`Invalid month: ${t}`);return e+1},ou=[31,28,31,30,31,30,31,31,30,31,30,31],iu=(t,e,r)=>{let n=ou[e];if(e===1&&cu(t))n=29;if(r>n)throw TypeError(`Invalid day for ${Pe[e]} in ${t}: ${r}`)},cu=(t)=>{return t%4===0&&(t%100!==0||t%400===0)},P=(t,e,r,n)=>{let f=dn(X(t));if(f<r||f>n)throw TypeError(`${e} must be between ${r} and ${n}, inclusive`);return f},fu=(t)=>{if(t===null||t===void 0)return 0;return mn("0."+t)*1000},uu=(t)=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),f=Number(t.substring(4,6));return r*(n*60+f)*60*1000},X=(t)=>{let e=0;while(e<t.length-1&&t.charAt(e)==="0")e++;if(e===0)return t;return t.slice(e)},H=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};H.from=(t)=>{if(t&&typeof t==="object"&&(t instanceof H||("deserializeJSON"in t)))return t;else if(typeof t==="string"||Object.getPrototypeOf(t)===String.prototype)return H(String(t));return H(JSON.stringify(t))};H.fromObject=H.from;function au(t){if(t.includes(",")||t.includes('"'))t=`"${t.replace(/"/g,"\\\"")}"`;return t}var Be="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Me="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",Re="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",bn="(\\d?\\d)",gn="(\\d{4})",hu=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),yu=new RegExp(`^${Be}, ${bn} ${Me} ${gn} ${Re} GMT$`),mu=new RegExp(`^${Be}, ${bn}-${Me}-(\\d\\d) ${Re} GMT$`),pu=new RegExp(`^${Be} ${Me} ( [1-9]|\\d\\d) ${Re} ${gn}$`),lu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],du=(t)=>{if(t==null)return;let e=NaN;if(typeof t==="number")e=t;else if(typeof t==="string"){if(!/^-?\d*\.?\d+$/.test(t))throw TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else if(typeof t==="object"&&t.tag===1)e=t.value;if(isNaN(e)||Math.abs(e)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1000))},bu=(t)=>{if(t==null)return;if(typeof t!=="string")throw TypeError("RFC3339 timestamps must be strings");let e=hu.exec(t);if(!e)throw TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,f,s,o,i,,c,u]=e;L(n,1,12),L(f,1,31),L(s,0,23),L(o,0,59),L(i,0,60);let a=new Date(Date.UTC(Number(r),Number(n)-1,Number(f),Number(s),Number(o),Number(i),Number(c)?Math.round(parseFloat(`0.${c}`)*1000):0));if(a.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,h,m,p]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],y=h==="-"?1:-1;a.setTime(a.getTime()+y*(Number(m)*60*60*1000+Number(p)*60*1000))}return a},gu=(t)=>{if(t==null)return;if(typeof t!=="string")throw TypeError("RFC7231 timestamps must be strings.");let e,r,n,f,s,o,i,c;if(c=yu.exec(t))[,e,r,n,f,s,o,i]=c;else if(c=mu.exec(t))[,e,r,n,f,s,o,i]=c,n=(Number(n)+1900).toString();else if(c=pu.exec(t))[,r,e,f,s,o,i,n]=c;if(n&&o){let u=Date.UTC(Number(n),lu.indexOf(r),Number(e),Number(f),Number(s),Number(o),i?Math.round(parseFloat(`0.${i}`)*1000):0);L(e,1,31),L(f,0,23),L(s,0,59),L(o,0,60);let a=new Date(u);return a.setUTCFullYear(Number(n)),a}throw TypeError(`Invalid RFC7231 date-time value ${t}.`)};function L(t,e,r){let n=Number(t);if(n<e||n>r)throw Error(`Value ${n} out of range [${e}, ${r}]`)}function wu(t,e,r){if(r<=0||!Number.isInteger(r))throw Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let f=[],s="";for(let o=0;o<n.length;o++){if(s==="")s=n[o];else s+=e+n[o];if((o+1)%r===0)f.push(s),s=""}if(s!=="")f.push(s);return f}var Su=(t)=>{let e=t.length,r=[],n=!1,f=void 0,s=0;for(let o=0;o<e;++o){let i=t[o];switch(i){case'"':if(f!=="\\")n=!n;break;case",":if(!n)r.push(t.slice(s,o)),s=o+1;break}f=i}return r.push(t.slice(s)),r.map((o)=>{o=o.trim();let i=o.length;if(i<2)return o;if(o[0]==='"'&&o[i-1]==='"')o=o.slice(1,i-1);return o.replace(/\\"/g,'"')})},hn=/^-?\d*(\.\d+)?$/;class Ht{string;type;constructor(t,e){if(this.string=t,this.type=e,!hn.test(t))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=="object")return!1;let e=t;return Ht.prototype.isPrototypeOf(t)||e.type==="bigDecimal"&&hn.test(e.string)}}function Tu(t){return new Ht(String(t),"bigDecimal")}_u.generateIdempotencyToken=$f.v4;_u.LazyJsonString=H;_u.NumericValue=Ht;_u._parseEpochTimestamp=du;_u._parseRfc3339DateTimeWithOffset=bu;_u._parseRfc7231DateTime=gu;_u.copyDocumentWithTransform=Pf;_u.dateToUtcString=zf;_u.expectBoolean=Mf;_u.expectByte=xe;_u.expectFloat32=Ut;_u.expectInt=If;_u.expectInt32=Ee;_u.expectLong=it;_u.expectNonNull=Df;_u.expectNumber=ot;_u.expectObject=yn;_u.expectShort=Oe;_u.expectString=Lf;_u.expectUnion=Uf;_u.handleFloat=Ff;_u.limitedParseDouble=$e;_u.limitedParseFloat=qf;_u.limitedParseFloat32=Yf;_u.logger=ct;_u.nv=Tu;_u.parseBoolean=Bf;_u.parseEpochTimestamp=eu;_u.parseRfc3339DateTime=Zf;_u.parseRfc3339DateTimeWithOffset=Gf;_u.parseRfc7231DateTime=tu;_u.quoteHeader=au;_u.splitEvery=wu;_u.splitHeader=Su;_u.strictParseByte=dn;_u.strictParseDouble=Ce;_u.strictParseFloat=Nf;_u.strictParseFloat32=mn;_u.strictParseInt=Jf;_u.strictParseInt32=Wf;_u.strictParseLong=ln;_u.strictParseShort=W});var Sn=d((ya)=>{var ha=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";ya.isArrayBuffer=ha});var je=d((ba)=>{var pa=Sn(),Ie=$("buffer"),la=(t,e=0,r=t.byteLength-e)=>{if(!pa.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Ie.Buffer.from(t,e,r)},da=(t,e)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Ie.Buffer.from(t,e):Ie.Buffer.from(t)};ba.fromArrayBuffer=la;ba.fromString=da});var En=d((Tn)=>{Object.defineProperty(Tn,"__esModule",{value:!0});Tn.fromBase64=void 0;var Sa=je(),Ta=/^[A-Za-z0-9+/]*={0,2}$/,_a=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Ta.exec(t))throw TypeError("Invalid base64 string.");let e=(0,Sa.fromString)(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};Tn.fromBase64=_a});var An=d((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.toBase64=void 0;var Ea=je(),Oa=q(),xa=(t)=>{let e;if(typeof t==="string")e=(0,Oa.fromUtf8)(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Ea.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")};On.toBase64=xa});var Cn=d((U)=>{var Ft=En(),qt=An();Object.prototype.hasOwnProperty.call(Ft,"__proto__")&&!Object.prototype.hasOwnProperty.call(U,"__proto__")&&Object.defineProperty(U,"__proto__",{enumerable:!0,value:Ft.__proto__});Object.keys(Ft).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(U,t))U[t]=Ft[t]});Object.prototype.hasOwnProperty.call(qt,"__proto__")&&!Object.prototype.hasOwnProperty.call(U,"__proto__")&&Object.defineProperty(U,"__proto__",{enumerable:!0,value:qt.__proto__});Object.keys(qt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(U,t))U[t]=qt[t]})});var Ya=d((Ca)=>{var Yt=$s(),A=ve(),C=wn(),ft=Vt(),Jt=Cn(),De=q(),F=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return Yt.Uint8ArrayBlobAdapter.mutate(t);if(!t)return Yt.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let r=e.streamCollector(t);return Yt.Uint8ArrayBlobAdapter.mutate(await r)};function ut(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}class K{serdeContext;setSerdeContext(t){this.serdeContext=t}}class Wt extends K{options;compositeErrorRegistry;constructor(t){super();this.options=t,this.compositeErrorRegistry=A.TypeRegistry.for(t.defaultNamespace);for(let e of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(e)}getRequestType(){return ft.HttpRequest}getResponseType(){return ft.HttpResponse}setSerdeContext(t){if(this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,e){if("url"in e){if(t.protocol=e.url.protocol,t.hostname=e.url.hostname,t.port=e.url.port?Number(e.url.port):void 0,t.path=e.url.pathname,t.fragment=e.url.hash||void 0,t.username=e.url.username||void 0,t.password=e.url.password||void 0,!t.query)t.query={};for(let[r,n]of e.url.searchParams.entries())t.query[r]=n;if(e.headers)for(let[r,n]of Object.entries(e.headers))t.headers[r]=n.join(", ");return t}else{if(t.protocol=e.protocol,t.hostname=e.hostname,t.port=e.port?Number(e.port):void 0,t.path=e.path,t.query={...e.query},e.headers)for(let[r,n]of Object.entries(e.headers))t.headers[r]=n;return t}}setHostPrefix(t,e,r){if(this.serdeContext?.disableHostPrefix)return;let n=A.NormalizedSchema.of(e.input),f=A.translateTraits(e.traits??{});if(f.endpoint){let s=f.endpoint?.[0];if(typeof s==="string"){let o=[...n.structIterator()].filter(([,i])=>i.getMergedTraits().hostLabel);for(let[i]of o){let c=r[i];if(typeof c!=="string")throw Error(`@smithy/core/schema - ${i} in input must be a string as hostLabel.`);s=s.replace(`{${i}}`,c)}t.hostname=s+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:e,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:e,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:e,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:e,initialResponseContainer:r})}async loadEventStreamCapability(){let{EventStreamSerde:t}=await import("./index-0.1.11-3dfjfmc6.mjs");return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,e,r,n,f){return[]}getEventStreamMarshaller(){let t=this.serdeContext;if(!t.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class $n extends Wt{async serializeRequest(t,e,r){let n=e&&typeof e==="object"?e:{},f=this.serializer,s={},o={},i=await r.endpoint(),c=A.NormalizedSchema.of(t?.input),u=[],a=[],h=!1,m,p=new ft.HttpRequest({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:s,headers:o,body:void 0});if(i){this.updateServiceEndpoint(p,i),this.setHostPrefix(p,t,n);let y=A.translateTraits(t.traits);if(y.http){p.method=y.http[0];let[l,b]=y.http[1].split("?");if(p.path=="/")p.path=l;else p.path+=l;let w=new URLSearchParams(b??"");Object.assign(s,Object.fromEntries(w))}}for(let[y,l]of c.structIterator()){let b=l.getMergedTraits()??{},w=n[y];if(w==null&&!l.isIdempotencyToken()){if(b.httpLabel){if(p.path.includes(`{${y}+}`)||p.path.includes(`{${y}}`))throw Error(`No value provided for input HTTP label: ${y}.`)}continue}if(b.httpPayload)if(l.isStreaming())if(l.isStructSchema()){if(n[y])m=await this.serializeEventStream({eventStream:n[y],requestSchema:c})}else m=w;else f.write(l,w),m=f.flush();else if(b.httpLabel){f.write(l,w);let g=f.flush();if(p.path.includes(`{${y}+}`))p.path=p.path.replace(`{${y}+}`,g.split("/").map(ut).join("/"));else if(p.path.includes(`{${y}}`))p.path=p.path.replace(`{${y}}`,ut(g))}else if(b.httpHeader)f.write(l,w),o[b.httpHeader.toLowerCase()]=String(f.flush());else if(typeof b.httpPrefixHeaders==="string")for(let[g,T]of Object.entries(w)){let _=b.httpPrefixHeaders+g;f.write([l.getValueSchema(),{httpHeader:_}],T),o[_.toLowerCase()]=f.flush()}else if(b.httpQuery||b.httpQueryParams)this.serializeQuery(l,w,s);else h=!0,u.push(y),a.push(l)}if(h&&n){let[y,l]=(c.getName(!0)??"#Unknown").split("#"),b=c.getSchema()[6],w=[3,y,l,c.getMergedTraits(),u,a,void 0];if(b)w[6]=b;else w.pop();f.write(w,n),m=f.flush()}return p.headers=o,p.query=s,p.body=m,p}serializeQuery(t,e,r){let n=this.serializer,f=t.getMergedTraits();if(f.httpQueryParams){for(let[s,o]of Object.entries(e))if(!(s in r)){let i=t.getValueSchema();Object.assign(i.getMergedTraits(),{...f,httpQuery:s,httpQueryParams:void 0}),this.serializeQuery(i,o,r)}return}if(t.isListSchema()){let s=!!t.getMergedTraits().sparse,o=[];for(let i of e){n.write([t.getValueSchema(),f],i);let c=n.flush();if(s||c!==void 0)o.push(c)}r[f.httpQuery]=o}else n.write([t,f],e),r[f.httpQuery]=n.flush()}async deserializeResponse(t,e,r){let n=this.deserializer,f=A.NormalizedSchema.of(t.output),s={};if(r.statusCode>=300){let i=await F(r.body,e);if(i.byteLength>0)Object.assign(s,await n.read(15,i));throw await this.handleError(t,e,r,s,this.deserializeMetadata(r)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let i in r.headers){let c=r.headers[i];delete r.headers[i],r.headers[i.toLowerCase()]=c}let o=await this.deserializeHttpMessage(f,e,r,s);if(o.length){let i=await F(r.body,e);if(i.byteLength>0){let c=await n.read(f,i);for(let u of o)if(c[u]!=null)s[u]=c[u]}}else if(o.discardResponseBody)await F(r.body,e);return s.$metadata=this.deserializeMetadata(r),s}async deserializeHttpMessage(t,e,r,n,f){let s;if(n instanceof Set)s=f;else s=n;let o=!0,i=this.deserializer,c=A.NormalizedSchema.of(t),u=[];for(let[a,h]of c.structIterator()){let m=h.getMemberTraits();if(m.httpPayload){if(o=!1,h.isStreaming())if(h.isStructSchema())s[a]=await this.deserializeEventStream({response:r,responseSchema:c});else s[a]=Yt.sdkStreamMixin(r.body);else if(r.body){let y=await F(r.body,e);if(y.byteLength>0)s[a]=await i.read(h,y)}}else if(m.httpHeader){let p=String(m.httpHeader).toLowerCase(),y=r.headers[p];if(y!=null)if(h.isListSchema()){let l=h.getValueSchema();l.getMergedTraits().httpHeader=p;let b;if(l.isTimestampSchema()&&l.getSchema()===4)b=C.splitEvery(y,",",2);else b=C.splitHeader(y);let w=[];for(let g of b)w.push(await i.read(l,g.trim()));s[a]=w}else s[a]=await i.read(h,y)}else if(m.httpPrefixHeaders!==void 0){s[a]={};for(let[p,y]of Object.entries(r.headers))if(p.startsWith(m.httpPrefixHeaders)){let l=h.getValueSchema();l.getMergedTraits().httpHeader=p,s[a][p.slice(m.httpPrefixHeaders.length)]=await i.read(l,y)}}else if(m.httpResponseCode)s[a]=r.statusCode;else u.push(a)}return u.discardResponseBody=o,u}}class Pn extends Wt{async serializeRequest(t,e,r){let n=this.serializer,f={},s={},o=await r.endpoint(),i=A.NormalizedSchema.of(t?.input),c=i.getSchema(),u,a=e&&typeof e==="object"?e:{},h=new ft.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:f,headers:s,body:void 0});if(o)this.updateServiceEndpoint(h,o),this.setHostPrefix(h,t,a);if(a){let m=i.getEventStreamMember();if(m){if(a[m]){let p={};for(let[y,l]of i.structIterator())if(y!==m&&a[y])n.write(l,a[y]),p[y]=n.flush();u=await this.serializeEventStream({eventStream:a[m],requestSchema:i,initialRequest:p})}}else n.write(c,a),u=n.flush()}return h.headers=Object.assign(h.headers,s),h.query=f,h.body=u,h.method="POST",h}async deserializeResponse(t,e,r){let n=this.deserializer,f=A.NormalizedSchema.of(t.output),s={};if(r.statusCode>=300){let i=await F(r.body,e);if(i.byteLength>0)Object.assign(s,await n.read(15,i));throw await this.handleError(t,e,r,s,this.deserializeMetadata(r)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let i in r.headers){let c=r.headers[i];delete r.headers[i],r.headers[i.toLowerCase()]=c}let o=f.getEventStreamMember();if(o)s[o]=await this.deserializeEventStream({response:r,responseSchema:f,initialResponseContainer:s});else{let i=await F(r.body,e);if(i.byteLength>0)Object.assign(s,await n.read(f,i))}return s.$metadata=this.deserializeMetadata(r),s}}var Bn=(t,e,r,n,f,s)=>{if(e!=null&&e[r]!==void 0){let o=n();if(o==null||o.length<=0)throw Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(f,s?o.split("/").map((i)=>ut(i)).join("/"):ut(o))}else throw Error("No value provided for input HTTP label: "+r+".");return t};function Aa(t,e){return new Le(t,e)}class Le{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(t,e){this.input=t,this.context=e}async build(){let{hostname:t,protocol:e="https",port:r,path:n}=await this.context.endpoint();this.path=n;for(let f of this.resolvePathStack)f(this.path);return new ft.HttpRequest({protocol:e,hostname:this.hostname||t,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){return this.hostname=t,this}bp(t){return this.resolvePathStack.push((e)=>{this.path=`${e?.endsWith("/")?e.slice(0,-1):e||""}`+t}),this}p(t,e,r,n){return this.resolvePathStack.push((f)=>{this.path=Bn(f,this.input,t,e,r,n)}),this}h(t){return this.headers=t,this}q(t){return this.query=t,this}b(t){return this.body=t,this}m(t){return this.method=t,this}}function Ue(t,e){if(e.timestampFormat.useTrait){if(t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema()}let{httpLabel:r,httpPrefixHeaders:n,httpHeader:f,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n==="string"||Boolean(f)?6:Boolean(s)||Boolean(r)?5:void 0:void 0)??e.timestampFormat.default}class Ne extends K{settings;constructor(t){super();this.settings=t}read(t,e){let r=A.NormalizedSchema.of(t);if(r.isListSchema())return C.splitHeader(e).map((n)=>this.read(r.getValueSchema(),n));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??Jt.fromBase64)(e);if(r.isTimestampSchema())switch(Ue(r,this.settings)){case 5:return C._parseRfc3339DateTimeWithOffset(e);case 6:return C._parseRfc7231DateTime(e);case 7:return C._parseEpochTimestamp(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(r.isStringSchema()){let n=r.getMergedTraits().mediaType,f=e;if(n){if(r.getMergedTraits().httpHeader)f=this.base64ToUtf8(f);if(n==="application/json"||n.endsWith("+json"))f=C.LazyJsonString.from(f);return f}}if(r.isNumericSchema())return Number(e);if(r.isBigIntegerSchema())return BigInt(e);if(r.isBigDecimalSchema())return new C.NumericValue(e,"bigDecimal");if(r.isBooleanSchema())return String(e).toLowerCase()==="true";return e}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??De.toUtf8)((this.serdeContext?.base64Decoder??Jt.fromBase64)(t))}}class Mn extends K{codecDeserializer;stringDeserializer;constructor(t,e){super();this.codecDeserializer=t,this.stringDeserializer=new Ne(e)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,e){let r=A.NormalizedSchema.of(t),n=r.getMergedTraits(),f=this.serdeContext?.utf8Encoder??De.toUtf8;if(n.httpHeader||n.httpResponseCode)return this.stringDeserializer.read(r,f(e));if(n.httpPayload){if(r.isBlobSchema()){let s=this.serdeContext?.utf8Decoder??De.fromUtf8;if(typeof e==="string")return s(e);return e}else if(r.isStringSchema()){if("byteLength"in e)return f(e);return e}}return this.codecDeserializer.read(r,e)}}class He extends K{settings;stringBuffer="";constructor(t){super();this.settings=t}write(t,e){let r=A.NormalizedSchema.of(t);switch(typeof e){case"object":if(e===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(e instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${e} when schema expected Date in ${r.getName(!0)}`);switch(Ue(r,this.settings)){case 5:this.stringBuffer=e.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=C.dateToUtcString(e);break;case 7:this.stringBuffer=String(e.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",e),this.stringBuffer=String(e.getTime()/1000)}return}if(r.isBlobSchema()&&"byteLength"in e){this.stringBuffer=(this.serdeContext?.base64Encoder??Jt.toBase64)(e);return}if(r.isListSchema()&&Array.isArray(e)){let s="";for(let o of e){this.write([r.getValueSchema(),r.getMergedTraits()],o);let i=this.flush(),c=r.getValueSchema().isTimestampSchema()?i:C.quoteHeader(i);if(s!=="")s+=", ";s+=c}this.stringBuffer=s;return}this.stringBuffer=JSON.stringify(e,null,2);break;case"string":let n=r.getMergedTraits().mediaType,f=e;if(n){if(n==="application/json"||n.endsWith("+json"))f=C.LazyJsonString.from(f);if(r.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??Jt.toBase64)(f.toString());return}}this.stringBuffer=e;break;default:if(r.isIdempotencyToken())this.stringBuffer=C.generateIdempotencyToken();else this.stringBuffer=String(e)}}flush(){let t=this.stringBuffer;return this.stringBuffer="",t}}class Rn{codecSerializer;stringSerializer;buffer;constructor(t,e,r=new He(e)){this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,e){let r=A.NormalizedSchema.of(t),n=r.getMergedTraits();if(n.httpHeader||n.httpLabel||n.httpQuery){this.stringSerializer.write(r,e),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,e)}flush(){if(this.buffer!==void 0){let t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}Ca.FromStringShapeDeserializer=Ne;Ca.HttpBindingProtocol=$n;Ca.HttpInterceptingShapeDeserializer=Mn;Ca.HttpInterceptingShapeSerializer=Rn;Ca.HttpProtocol=Wt;Ca.RequestBuilder=Le;Ca.RpcProtocol=Pn;Ca.SerdeContext=K;Ca.ToStringShapeSerializer=He;Ca.collectBody=F;Ca.determineTimestampFormat=Ue;Ca.extendedEncodeURIComponent=ut;Ca.requestBuilder=Aa;Ca.resolvedPath=Bn});
16
- export{$s as xna,Fe as yna,Vt as zna,ze as Ana,Ze as Bna,ve as Cna,an as Dna,wn as Ena,Cn as Fna,Ya as Gna};