@claudiolabs/claudin 1.1.32 → 1.1.34

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 (836) hide show
  1. package/dist/chunks/App-1.1.34-5bkzspjw.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.34-v9m1h6yf.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.34-s8q45b8r.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.34-za20vma5.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.34-bfqcybrw.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.34-y3y8zaw0.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.34-2c48wrw2.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.34-5pfk2t4c.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.34-jhjx7d79.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.34-fdz2yay1.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.34-9kn20864.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.34-rs0n3tbm.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.34-mb74003t.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.34-bfdfnz31.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.34-mxhsj5pz.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.34-g9xtcxfm.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.34-wjd1x7s6.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.34-zpsemk3f.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.34-gse2x86w.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.34-cp51s05w.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.34-pcx5e2xc.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.34-s3tfzny5.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.34-g8hnps71.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.34-a1bg24mk.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.34-fs7fa841.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.34-ybf25dvm.mjs +1 -0
  27. package/dist/chunks/agents-1.1.34-6xhfrt25.mjs +3 -0
  28. package/dist/chunks/agents-1.1.34-wsjsbryq.mjs +110 -0
  29. package/dist/chunks/api-1.1.34-99hm00p0.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.34-qydk3ezz.mjs +1 -0
  31. package/dist/chunks/auth-1.1.34-32n80bwr.mjs +1 -0
  32. package/dist/chunks/auth-1.1.34-mhmakxvf.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.34-jyxbmbqd.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.34-2b10v0j4.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.34-bd3mdsv9.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.34-v4c2njkh.mjs +1 -0
  37. package/dist/chunks/branch-1.1.34-949t9ara.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.34-8jc0ek6w.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.34-kgr2qvyz.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.34-ygna8r55.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.34-saff9rp6.mjs +88 -0
  42. package/dist/chunks/bridgePointer-1.1.34-5apzxa58.mjs +1 -0
  43. package/dist/chunks/btw-1.1.34-4246e84n.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.34-kj9mygnh.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.34-gyemr2df.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.34-fqz6k1qv.mjs +4 -0
  47. package/dist/chunks/caches-1.1.34-ebn0bryh.mjs +1 -0
  48. package/dist/chunks/cd-1.1.34-6458ex95.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.34-4jr3kmkg.mjs +1 -0
  50. package/dist/chunks/clear-1.1.34-da0gwb7n.mjs +1 -0
  51. package/dist/chunks/clearTerminal-1.1.34-410eb173.mjs +1 -0
  52. package/dist/chunks/cli-1.1.34-00hxx56p.mjs +2 -0
  53. package/dist/chunks/cli-1.1.34-0cmmxs6g.mjs +9 -0
  54. package/dist/chunks/cli-1.1.34-0f5qa0q0.mjs +2 -0
  55. package/dist/chunks/cli-1.1.34-0h4whfas.mjs +6 -0
  56. package/dist/chunks/cli-1.1.34-0kkae10p.mjs +2 -0
  57. package/dist/chunks/cli-1.1.34-0mjf3pve.mjs +2 -0
  58. package/dist/chunks/cli-1.1.34-0t1h2v5v.mjs +2 -0
  59. package/dist/chunks/cli-1.1.34-0zqthr52.mjs +2 -0
  60. package/dist/chunks/cli-1.1.34-1229x70a.mjs +2 -0
  61. package/dist/chunks/cli-1.1.34-1426jsf4.mjs +3 -0
  62. package/dist/chunks/cli-1.1.34-166q8s04.mjs +24 -0
  63. package/dist/chunks/cli-1.1.34-1a3s3rqs.mjs +3 -0
  64. package/dist/chunks/cli-1.1.34-1ategs07.mjs +2 -0
  65. package/dist/chunks/cli-1.1.34-1m5v3ffj.mjs +2 -0
  66. package/dist/chunks/cli-1.1.34-1nxczs7m.mjs +3 -0
  67. package/dist/chunks/cli-1.1.34-1xg52b7q.mjs +12 -0
  68. package/dist/chunks/cli-1.1.34-20femz8z.mjs +2 -0
  69. package/dist/chunks/cli-1.1.34-20p72tmb.mjs +20 -0
  70. package/dist/chunks/cli-1.1.34-21nzcpj6.mjs +5 -0
  71. package/dist/chunks/cli-1.1.34-24h4yeqf.mjs +2 -0
  72. package/dist/chunks/cli-1.1.34-2tf44a9a.mjs +2 -0
  73. package/dist/chunks/cli-1.1.34-33s2xs9e.mjs +2 -0
  74. package/dist/chunks/cli-1.1.34-372a0qyj.mjs +2 -0
  75. package/dist/chunks/cli-1.1.34-37g65vk7.mjs +2 -0
  76. package/dist/chunks/cli-1.1.34-37mgsk8w.mjs +2 -0
  77. package/dist/chunks/cli-1.1.34-3pr2wgys.mjs +2 -0
  78. package/dist/chunks/cli-1.1.34-3qpxmhy6.mjs +2 -0
  79. package/dist/chunks/cli-1.1.34-3rcacat5.mjs +3 -0
  80. package/dist/chunks/cli-1.1.34-4v8eanby.mjs +2 -0
  81. package/dist/chunks/cli-1.1.34-4x915j9t.mjs +2 -0
  82. package/dist/chunks/cli-1.1.34-4y5bvnfe.mjs +2 -0
  83. package/dist/chunks/cli-1.1.34-4zj4kbw4.mjs +2 -0
  84. package/dist/chunks/cli-1.1.34-58ergrxf.mjs +7 -0
  85. package/dist/chunks/cli-1.1.34-59csbz1a.mjs +60 -0
  86. package/dist/chunks/cli-1.1.34-5ec767fj.mjs +2 -0
  87. package/dist/chunks/cli-1.1.34-5ffnhvmt.mjs +3 -0
  88. package/dist/chunks/cli-1.1.34-5jdjfha3.mjs +2 -0
  89. package/dist/chunks/cli-1.1.34-5jnn83ne.mjs +2 -0
  90. package/dist/chunks/cli-1.1.34-5mg7y1hs.mjs +2 -0
  91. package/dist/chunks/cli-1.1.34-5qzy93s7.mjs +2 -0
  92. package/dist/chunks/cli-1.1.34-5t01yf6x.mjs +2 -0
  93. package/dist/chunks/cli-1.1.34-5vktvncs.mjs +2 -0
  94. package/dist/chunks/cli-1.1.34-5z4epq5b.mjs +4 -0
  95. package/dist/chunks/cli-1.1.34-643n510j.mjs +2 -0
  96. package/dist/chunks/cli-1.1.34-6jkjn6pd.mjs +2 -0
  97. package/dist/chunks/cli-1.1.34-6ndxsqp1.mjs +2 -0
  98. package/dist/chunks/cli-1.1.34-70pxm3rb.mjs +133 -0
  99. package/dist/chunks/cli-1.1.34-79mxk0bc.mjs +2 -0
  100. package/dist/chunks/cli-1.1.34-7ad0dt89.mjs +2 -0
  101. package/dist/chunks/cli-1.1.34-7bcbswdn.mjs +2 -0
  102. package/dist/chunks/cli-1.1.34-7bxexffs.mjs +6 -0
  103. package/dist/chunks/cli-1.1.34-7n5bvchq.mjs +2 -0
  104. package/dist/chunks/cli-1.1.34-7npd3as5.mjs +18 -0
  105. package/dist/chunks/cli-1.1.34-7rd2xv38.mjs +3 -0
  106. package/dist/chunks/cli-1.1.34-80nhtgdq.mjs +2 -0
  107. package/dist/chunks/cli-1.1.34-83s0mm9a.mjs +2 -0
  108. package/dist/chunks/cli-1.1.34-84707tma.mjs +5491 -0
  109. package/dist/chunks/cli-1.1.34-859ap6f7.mjs +2 -0
  110. package/dist/chunks/cli-1.1.34-8r5c91mz.mjs +2 -0
  111. package/dist/chunks/cli-1.1.34-8s2k8jnr.mjs +39 -0
  112. package/dist/chunks/cli-1.1.34-8vfey6b5.mjs +2 -0
  113. package/dist/chunks/cli-1.1.34-92kps6jn.mjs +63 -0
  114. package/dist/chunks/cli-1.1.34-9jn997h8.mjs +2 -0
  115. package/dist/chunks/cli-1.1.34-9tctqya9.mjs +6 -0
  116. package/dist/chunks/cli-1.1.34-9tze8t1x.mjs +2 -0
  117. package/dist/chunks/cli-1.1.34-9z887t80.mjs +2 -0
  118. package/dist/chunks/cli-1.1.34-a6gj1b3g.mjs +2 -0
  119. package/dist/chunks/cli-1.1.34-a7et4z4n.mjs +2 -0
  120. package/dist/chunks/cli-1.1.34-ajqsr81p.mjs +2 -0
  121. package/dist/chunks/cli-1.1.34-ak4sm3t1.mjs +2 -0
  122. package/dist/chunks/cli-1.1.34-axnnzxpw.mjs +2 -0
  123. package/dist/chunks/cli-1.1.34-b9j8be5k.mjs +2 -0
  124. package/dist/chunks/cli-1.1.34-bt9brnrs.mjs +2 -0
  125. package/dist/chunks/cli-1.1.34-c3w48hst.mjs +2 -0
  126. package/dist/chunks/cli-1.1.34-cp457g25.mjs +11 -0
  127. package/dist/chunks/cli-1.1.34-cptp243m.mjs +2 -0
  128. package/dist/chunks/cli-1.1.34-cqxr7fsq.mjs +2 -0
  129. package/dist/chunks/cli-1.1.34-ctjatnq8.mjs +2 -0
  130. package/dist/chunks/cli-1.1.34-czhcyzgw.mjs +2 -0
  131. package/dist/chunks/cli-1.1.34-d0sgyvr1.mjs +4 -0
  132. package/dist/chunks/cli-1.1.34-d5enzbca.mjs +2 -0
  133. package/dist/chunks/cli-1.1.34-d8bccy48.mjs +7 -0
  134. package/dist/chunks/cli-1.1.34-dceap5rk.mjs +4 -0
  135. package/dist/chunks/cli-1.1.34-dj3hwt6m.mjs +3 -0
  136. package/dist/chunks/cli-1.1.34-dvx08sv2.mjs +2 -0
  137. package/dist/chunks/cli-1.1.34-e1vkhvbm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.34-e4f2qw6n.mjs +2 -0
  139. package/dist/chunks/cli-1.1.34-e7fd8zh6.mjs +2 -0
  140. package/dist/chunks/cli-1.1.34-e9rxgan0.mjs +2 -0
  141. package/dist/chunks/cli-1.1.34-ehad4d4f.mjs +2 -0
  142. package/dist/chunks/cli-1.1.34-ev8ffgr9.mjs +2 -0
  143. package/dist/chunks/cli-1.1.34-ew7p2ct8.mjs +2 -0
  144. package/dist/chunks/cli-1.1.34-exsrnr6k.mjs +2 -0
  145. package/dist/chunks/cli-1.1.34-f806gv2e.mjs +7 -0
  146. package/dist/chunks/cli-1.1.34-faavcjnj.mjs +2 -0
  147. package/dist/chunks/cli-1.1.34-fd3cb4wv.mjs +2 -0
  148. package/dist/chunks/cli-1.1.34-ff6hyf5n.mjs +2 -0
  149. package/dist/chunks/cli-1.1.34-ffs3510y.mjs +2 -0
  150. package/dist/chunks/cli-1.1.34-fgbv1rw4.mjs +17 -0
  151. package/dist/chunks/cli-1.1.34-fgx6ej2m.mjs +34 -0
  152. package/dist/chunks/cli-1.1.34-fm4a40ta.mjs +2 -0
  153. package/dist/chunks/cli-1.1.34-fnds3msv.mjs +6 -0
  154. package/dist/chunks/cli-1.1.34-ftd1h34q.mjs +2 -0
  155. package/dist/chunks/cli-1.1.34-g0sqgp9m.mjs +2 -0
  156. package/dist/chunks/cli-1.1.34-g6kkzzxg.mjs +2 -0
  157. package/dist/chunks/cli-1.1.34-g7q1qz3e.mjs +2 -0
  158. package/dist/chunks/cli-1.1.34-g888fgsj.mjs +4 -0
  159. package/dist/chunks/cli-1.1.34-ge8xp99z.mjs +2 -0
  160. package/dist/chunks/cli-1.1.34-gmaedxb1.mjs +26 -0
  161. package/dist/chunks/cli-1.1.34-gsrndv90.mjs +2 -0
  162. package/dist/chunks/cli-1.1.34-h3ysfavt.mjs +4 -0
  163. package/dist/chunks/cli-1.1.34-h7927ctg.mjs +2 -0
  164. package/dist/chunks/cli-1.1.34-h7bcvee5.mjs +2 -0
  165. package/dist/chunks/cli-1.1.34-h9h6119y.mjs +2 -0
  166. package/dist/chunks/cli-1.1.34-hdva7ptv.mjs +10 -0
  167. package/dist/chunks/cli-1.1.34-he92bjvt.mjs +2 -0
  168. package/dist/chunks/cli-1.1.34-hpn89fzn.mjs +2 -0
  169. package/dist/chunks/cli-1.1.34-hpt8kch4.mjs +2 -0
  170. package/dist/chunks/cli-1.1.34-hrw37per.mjs +8 -0
  171. package/dist/chunks/cli-1.1.34-hsngtgbm.mjs +24 -0
  172. package/dist/chunks/cli-1.1.34-hyya784q.mjs +2 -0
  173. package/dist/chunks/cli-1.1.34-j8ab267c.mjs +2 -0
  174. package/dist/chunks/cli-1.1.34-jkdgk3ns.mjs +2 -0
  175. package/dist/chunks/cli-1.1.34-jrxh48kf.mjs +4 -0
  176. package/dist/chunks/cli-1.1.34-jsp1hy0k.mjs +2 -0
  177. package/dist/chunks/cli-1.1.34-k4zd38bd.mjs +15 -0
  178. package/dist/chunks/cli-1.1.34-k761g5m2.mjs +2 -0
  179. package/dist/chunks/cli-1.1.34-k8gmdsqr.mjs +2 -0
  180. package/dist/chunks/cli-1.1.34-mbeaqq0q.mjs +6 -0
  181. package/dist/chunks/cli-1.1.34-mhjjf878.mjs +5 -0
  182. package/dist/chunks/cli-1.1.34-n5t6xk0e.mjs +2 -0
  183. package/dist/chunks/cli-1.1.34-n5zh4wyg.mjs +42 -0
  184. package/dist/chunks/cli-1.1.34-ncz9dava.mjs +2 -0
  185. package/dist/chunks/cli-1.1.34-nr50vg8g.mjs +25 -0
  186. package/dist/chunks/cli-1.1.34-nxeb9r8s.mjs +2 -0
  187. package/dist/chunks/cli-1.1.34-p5v4dwpg.mjs +4 -0
  188. package/dist/chunks/cli-1.1.34-p7yjh2wb.mjs +2 -0
  189. package/dist/chunks/cli-1.1.34-p9rd6dtm.mjs +2 -0
  190. package/dist/chunks/cli-1.1.34-q5stzg7k.mjs +2 -0
  191. package/dist/chunks/cli-1.1.34-q83yydqv.mjs +133 -0
  192. package/dist/chunks/cli-1.1.34-q8chhxkt.mjs +2 -0
  193. package/dist/chunks/cli-1.1.34-qc15bhsg.mjs +10 -0
  194. package/dist/chunks/cli-1.1.34-qef4zhc3.mjs +2 -0
  195. package/dist/chunks/cli-1.1.34-qs805z7n.mjs +9 -0
  196. package/dist/chunks/cli-1.1.34-qwd6k5t4.mjs +2 -0
  197. package/dist/chunks/cli-1.1.34-r222exkd.mjs +2 -0
  198. package/dist/chunks/cli-1.1.34-r3kdjy4e.mjs +2 -0
  199. package/dist/chunks/cli-1.1.34-r5dphbcm.mjs +2 -0
  200. package/dist/chunks/cli-1.1.34-rb7wdjza.mjs +45 -0
  201. package/dist/chunks/cli-1.1.34-rkx3x9f6.mjs +4 -0
  202. package/dist/chunks/cli-1.1.34-rqkzp4n2.mjs +2 -0
  203. package/dist/chunks/cli-1.1.34-rs4xg86x.mjs +2 -0
  204. package/dist/chunks/cli-1.1.34-s4gsmtx9.mjs +21 -0
  205. package/dist/chunks/cli-1.1.34-s8c2c7g3.mjs +3 -0
  206. package/dist/chunks/cli-1.1.34-s9g6mekb.mjs +2 -0
  207. package/dist/chunks/cli-1.1.34-sfxba1xz.mjs +3 -0
  208. package/dist/chunks/cli-1.1.34-shm51n5s.mjs +2 -0
  209. package/dist/chunks/cli-1.1.34-sj1pcnn3.mjs +2 -0
  210. package/dist/chunks/cli-1.1.34-sq51za8b.mjs +2 -0
  211. package/dist/chunks/cli-1.1.34-sxpgdyxm.mjs +2 -0
  212. package/dist/chunks/cli-1.1.34-syx85e6f.mjs +15 -0
  213. package/dist/chunks/cli-1.1.34-t4rp44p7.mjs +2 -0
  214. package/dist/chunks/cli-1.1.34-tj5mvsam.mjs +2 -0
  215. package/dist/chunks/cli-1.1.34-tmwcg7q1.mjs +2 -0
  216. package/dist/chunks/cli-1.1.34-ty06ehzt.mjs +3 -0
  217. package/dist/chunks/cli-1.1.34-v2gbtt59.mjs +50 -0
  218. package/dist/chunks/cli-1.1.34-vdk5kjz7.mjs +15 -0
  219. package/dist/chunks/cli-1.1.34-vdwfqapw.mjs +2 -0
  220. package/dist/chunks/cli-1.1.34-vmnqkma9.mjs +2 -0
  221. package/dist/chunks/cli-1.1.34-vpwwhg8z.mjs +2 -0
  222. package/dist/chunks/cli-1.1.34-vrsb0pea.mjs +2 -0
  223. package/dist/chunks/cli-1.1.34-vz14r55x.mjs +3 -0
  224. package/dist/chunks/cli-1.1.34-w7vjt3vm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.34-w9ek3z9c.mjs +2 -0
  226. package/dist/chunks/cli-1.1.34-webjc1s3.mjs +2 -0
  227. package/dist/chunks/cli-1.1.34-wfb66gsv.mjs +2 -0
  228. package/dist/chunks/cli-1.1.34-wh74w227.mjs +2 -0
  229. package/dist/chunks/cli-1.1.34-whbj9gb8.mjs +24 -0
  230. package/dist/chunks/cli-1.1.34-wqkce8kj.mjs +2 -0
  231. package/dist/chunks/cli-1.1.34-wwjkncsv.mjs +203 -0
  232. package/dist/chunks/cli-1.1.34-wwvcrp2d.mjs +2 -0
  233. package/dist/chunks/cli-1.1.34-xptd4xtb.mjs +2 -0
  234. package/dist/chunks/cli-1.1.34-xwg0x7p4.mjs +5 -0
  235. package/dist/chunks/cli-1.1.34-xx555z7d.mjs +25 -0
  236. package/dist/chunks/cli-1.1.34-yfasvar9.mjs +2 -0
  237. package/dist/chunks/cli-1.1.34-yk56k2na.mjs +2 -0
  238. package/dist/chunks/cli-1.1.34-yqryw36t.mjs +2 -0
  239. package/dist/chunks/cli-1.1.34-yqyrt954.mjs +2 -0
  240. package/dist/chunks/cli-1.1.34-yrk4mxjw.mjs +16 -0
  241. package/dist/chunks/cli-1.1.34-z14xw89f.mjs +2 -0
  242. package/dist/chunks/cli-1.1.34-z1htezxg.mjs +2 -0
  243. package/dist/chunks/cli-1.1.34-z1tmh10g.mjs +2 -0
  244. package/dist/chunks/cli-1.1.34-z84fkt5q.mjs +2 -0
  245. package/dist/chunks/cli-1.1.34-zpsaqq15.mjs +17 -0
  246. package/dist/chunks/client-1.1.34-4exntck8.mjs +1 -0
  247. package/dist/chunks/color-1.1.34-d4199wch.mjs +1 -0
  248. package/dist/chunks/compact-1.1.34-jwr60dt0.mjs +2 -0
  249. package/dist/chunks/config-1.1.34-acewhfv4.mjs +1 -0
  250. package/dist/chunks/config-1.1.34-tqzmnvs7.mjs +1 -0
  251. package/dist/chunks/constants-1.1.34-s2nkrx7g.mjs +1 -0
  252. package/dist/chunks/context-1.1.34-wc822wp5.mjs +1 -0
  253. package/dist/chunks/context-noninteractive-1.1.34-59xb33ys.mjs +1 -0
  254. package/dist/chunks/conversation-1.1.34-5k03q5nt.mjs +1 -0
  255. package/dist/chunks/copilotHeaders-1.1.34-dkmsvh40.mjs +1 -0
  256. package/dist/chunks/copy-1.1.34-efb24nm3.mjs +9 -0
  257. package/dist/chunks/cost-1.1.34-nqqv2xjh.mjs +1 -0
  258. package/dist/chunks/createSession-1.1.34-69d3ep6s.mjs +1 -0
  259. package/dist/chunks/debug-1.1.34-k568mcye.mjs +1 -0
  260. package/dist/chunks/defaultActionDeps-1.1.34-16tn959k.mjs +1480 -0
  261. package/dist/chunks/desktop-1.1.34-p9x626qf.mjs +2 -0
  262. package/dist/chunks/detectRepository-1.1.34-rqyapz8m.mjs +1 -0
  263. package/dist/chunks/detection-1.1.34-5xfznq79.mjs +1 -0
  264. package/dist/chunks/diff-1.1.34-5ggzgzf5.mjs +1 -0
  265. package/dist/chunks/doctor-1.1.34-j6mbdd5g.mjs +1 -0
  266. package/dist/chunks/doctorDiagnostic-1.1.34-spmjpktf.mjs +1 -0
  267. package/dist/chunks/earlyInput-1.1.34-a0ptf6h4.mjs +1 -0
  268. package/dist/chunks/effort-1.1.34-9k8mc8ca.mjs +13 -0
  269. package/dist/chunks/engine-1.1.34-y28mg4na.mjs +1 -0
  270. package/dist/chunks/envLessBridgeConfig-1.1.34-wm7tybv6.mjs +1 -0
  271. package/dist/chunks/envUtils-1.1.34-rmsh5nt5.mjs +1 -0
  272. package/dist/chunks/errors-1.1.34-61fzsrh4.mjs +1 -0
  273. package/dist/chunks/exampleCommands-1.1.34-8x8b7p9t.mjs +1 -0
  274. package/dist/chunks/execFileNoThrow-1.1.34-zemxr8xw.mjs +1 -0
  275. package/dist/chunks/exit-1.1.34-sw6zmmgn.mjs +1 -0
  276. package/dist/chunks/explorer-1.1.34-3apnqz0a.mjs +1 -0
  277. package/dist/chunks/export-1.1.34-1hyv5efm.mjs +2 -0
  278. package/dist/chunks/fast-1.1.34-3d72mbz1.mjs +1 -0
  279. package/dist/chunks/feedback-1.1.34-k74bh5v8.mjs +16 -0
  280. package/dist/chunks/git-1.1.34-p3qv0ed3.mjs +1 -0
  281. package/dist/chunks/githubModelsCredentials-1.1.34-hmjt89m3.mjs +1 -0
  282. package/dist/chunks/goal-1.1.34-m6dge19b.mjs +4 -0
  283. package/dist/chunks/headless-1.1.34-hpaadbg6.mjs +2 -0
  284. package/dist/chunks/heapdump-1.1.34-zc52x1pc.mjs +6 -0
  285. package/dist/chunks/help-1.1.34-0sgw7jbh.mjs +1 -0
  286. package/dist/chunks/hooks-1.1.34-8s6pawxx.mjs +1 -0
  287. package/dist/chunks/hooks-1.1.34-vnm6rywf.mjs +79 -0
  288. package/dist/chunks/ide-1.1.34-jbcf8ma9.mjs +3 -0
  289. package/dist/chunks/image-processor-napi-1.1.34-zrk7wvw2.mjs +1 -0
  290. package/dist/chunks/import-1.1.34-4j35p307.mjs +261 -0
  291. package/dist/chunks/inboundAttachments-1.1.34-pk5t3y0v.mjs +1 -0
  292. package/dist/chunks/index-1.1.34-086aty1n.mjs +1 -0
  293. package/dist/chunks/index-1.1.34-0q46c1bj.mjs +1 -0
  294. package/dist/chunks/index-1.1.34-2j48ar1m.mjs +1 -0
  295. package/dist/chunks/index-1.1.34-427npr7a.mjs +1 -0
  296. package/dist/chunks/index-1.1.34-50d0rg8h.mjs +5 -0
  297. package/dist/chunks/index-1.1.34-50j6q6gr.mjs +1 -0
  298. package/dist/chunks/index-1.1.34-ehvgt047.mjs +1 -0
  299. package/dist/chunks/index-1.1.34-faq1af2v.mjs +1 -0
  300. package/dist/chunks/index-1.1.34-fvrswew9.mjs +2 -0
  301. package/dist/chunks/index-1.1.34-mx39dxjj.mjs +30 -0
  302. package/dist/chunks/index-1.1.34-mxpb8hvr.mjs +9 -0
  303. package/dist/chunks/index-1.1.34-nye63dch.mjs +1 -0
  304. package/dist/chunks/index-1.1.34-qmmg0npy.mjs +2 -0
  305. package/dist/chunks/index-1.1.34-qxa3e3cv.mjs +1 -0
  306. package/dist/chunks/index-1.1.34-snehdv50.mjs +1 -0
  307. package/dist/chunks/index-1.1.34-t7jsxdbk.mjs +1 -0
  308. package/dist/chunks/index-1.1.34-wgm8z1dz.mjs +1 -0
  309. package/dist/chunks/index-1.1.34-wz64a3d4.mjs +9 -0
  310. package/dist/chunks/index-1.1.34-x83gwj6g.mjs +23 -0
  311. package/dist/chunks/index-1.1.34-xa114b8t.mjs +1 -0
  312. package/dist/chunks/index-1.1.34-y10pcdv1.mjs +1 -0
  313. package/dist/chunks/index-1.1.34-yqzmcm9y.mjs +1 -0
  314. package/dist/chunks/index-1.1.34-yxzywg42.mjs +1 -0
  315. package/dist/chunks/init-1.1.34-jdhgqsrc.mjs +2 -0
  316. package/dist/chunks/initReplBridge-1.1.34-b0awafmd.mjs +1 -0
  317. package/dist/chunks/ink-1.1.34-yb3z87en.mjs +1 -0
  318. package/dist/chunks/insights-1.1.34-a321wxgf.mjs +870 -0
  319. package/dist/chunks/install-1.1.34-064wyxwb.mjs +1 -0
  320. package/dist/chunks/install-github-app-1.1.34-smwffy57.mjs +149 -0
  321. package/dist/chunks/install-slack-app-1.1.34-a5bwj8gk.mjs +1 -0
  322. package/dist/chunks/interactiveHelpers-1.1.34-pq1b6btm.mjs +1 -0
  323. package/dist/chunks/keybindings-1.1.34-rq312f3j.mjs +2 -0
  324. package/dist/chunks/latestVersionCache-1.1.34-x006sta9.mjs +1 -0
  325. package/dist/chunks/loadAgentsDir-1.1.34-2w0hm9wz.mjs +1 -0
  326. package/dist/chunks/loadPluginHooks-1.1.34-t9s8mknk.mjs +1 -0
  327. package/dist/chunks/log-1.1.34-n41t6etn.mjs +1 -0
  328. package/dist/chunks/main-1.1.34-gh9n8dgw.mjs +1 -0
  329. package/dist/chunks/managedEnv-1.1.34-qntg5ykr.mjs +1 -0
  330. package/dist/chunks/mcp-1.1.34-5mtgev8d.mjs +17 -0
  331. package/dist/chunks/mcp-1.1.34-61dcjzjk.mjs +4 -0
  332. package/dist/chunks/mcp-1.1.34-9d1py1ez.mjs +1 -0
  333. package/dist/chunks/mcpb-1.1.34-x9mxeryp.mjs +1 -0
  334. package/dist/chunks/memory-1.1.34-sys90hns.mjs +128 -0
  335. package/dist/chunks/model-1.1.34-v1r14fy7.mjs +1 -0
  336. package/dist/chunks/model-1.1.34-vks7w05g.mjs +2 -0
  337. package/dist/chunks/node-1.1.34-5b5b2m9b.mjs +1 -0
  338. package/dist/chunks/node-1.1.34-sdqnj3qm.mjs +15 -0
  339. package/dist/chunks/oauth-1.1.34-bbmwrswg.mjs +1 -0
  340. package/dist/chunks/openaiShim-1.1.34-kj2a4r19.mjs +14 -0
  341. package/dist/chunks/output-style-1.1.34-a4dykckn.mjs +1 -0
  342. package/dist/chunks/package-F6O7J2XI-1.1.34-291qk0fk.mjs +1 -0
  343. package/dist/chunks/permissions-1.1.34-bqhsed60.mjs +1 -0
  344. package/dist/chunks/permissions-1.1.34-xkrhteme.mjs +3 -0
  345. package/dist/chunks/plan-1.1.34-j7qcpv9s.mjs +1 -0
  346. package/dist/chunks/plist-1.1.34-ykta36sg.mjs +1 -0
  347. package/dist/chunks/plugin-1.1.34-vszmzh0r.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-1.1.34-5xap799m.mjs +1 -0
  349. package/dist/chunks/plugins-1.1.34-6ea553qa.mjs +9 -0
  350. package/dist/chunks/preActionHook-1.1.34-xy1pecch.mjs +2 -0
  351. package/dist/chunks/print-1.1.34-2gdkw86g.mjs +57 -0
  352. package/dist/chunks/process-1.1.34-fms89mxv.mjs +1 -0
  353. package/dist/chunks/processBashCommand-1.1.34-gcydk2hd.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-1.1.34-a3q257ff.mjs +9 -0
  355. package/dist/chunks/prompt-1.1.34-ctfxsw9h.mjs +1 -0
  356. package/dist/chunks/prompt-1.1.34-wp8mvh7t.mjs +1 -0
  357. package/dist/chunks/prompts-1.1.34-bmq3swzy.mjs +1 -0
  358. package/dist/chunks/provider-1.1.34-00xnjkhs.mjs +2 -0
  359. package/dist/chunks/providerProfiles-1.1.34-psred1pr.mjs +1 -0
  360. package/dist/chunks/providerValidation-1.1.34-0vamj708.mjs +6 -0
  361. package/dist/chunks/registerSubcommands-1.1.34-pmqr2nmf.mjs +26 -0
  362. package/dist/chunks/registry-1.1.34-sapmjhjz.mjs +1 -0
  363. package/dist/chunks/release-notes-1.1.34-p6wg8evp.mjs +5 -0
  364. package/dist/chunks/reload-plugins-1.1.34-cd8e00jp.mjs +2 -0
  365. package/dist/chunks/remote-env-1.1.34-fpepp6cm.mjs +1 -0
  366. package/dist/chunks/remoteBridgeCore-1.1.34-mmxz0ypj.mjs +1 -0
  367. package/dist/chunks/rename-1.1.34-gwdavcb8.mjs +1 -0
  368. package/dist/chunks/replLauncher-1.1.34-5yvyazea.mjs +1 -0
  369. package/dist/chunks/resume-1.1.34-9abwrf3b.mjs +2 -0
  370. package/dist/chunks/rewind-1.1.34-qf51de9x.mjs +1 -0
  371. package/dist/chunks/rootOptions-1.1.34-dkd3s4x5.mjs +1 -0
  372. package/dist/chunks/runWorkflowHeadless-1.1.34-c0j2ym4w.mjs +10 -0
  373. package/dist/chunks/sandbox-adapter-1.1.34-ad556paa.mjs +1 -0
  374. package/dist/chunks/sandbox-toggle-1.1.34-1x2ddxv2.mjs +1 -0
  375. package/dist/chunks/session-1.1.34-h46ywygv.mjs +2 -0
  376. package/dist/chunks/sessionStorage-1.1.34-tc7rwcvm.mjs +1 -0
  377. package/dist/chunks/settings-1.1.34-bk3tb34s.mjs +1 -0
  378. package/dist/chunks/setup-1.1.34-3ddxnk01.mjs +12 -0
  379. package/dist/chunks/sinks-1.1.34-ww0tcz6j.mjs +1 -0
  380. package/dist/chunks/skills-1.1.34-3ybbxgjn.mjs +1 -0
  381. package/dist/chunks/startupProfiler-1.1.34-7z13z7v7.mjs +1 -0
  382. package/dist/chunks/startupUpdateCheck-1.1.34-45fyr9wz.mjs +1 -0
  383. package/dist/chunks/state-1.1.34-pymefs1m.mjs +1 -0
  384. package/dist/chunks/stats-1.1.34-4jw41qjm.mjs +1 -0
  385. package/dist/chunks/status-1.1.34-r120pa8k.mjs +1 -0
  386. package/dist/chunks/stickers-1.1.34-5zsfjhdn.mjs +1 -0
  387. package/dist/chunks/subprocessEnv-1.1.34-44r7jf62.mjs +1 -0
  388. package/dist/chunks/tasks-1.1.34-1mhjk4hs.mjs +1 -0
  389. package/dist/chunks/teamHelpers-1.1.34-jfmrh1r7.mjs +1 -0
  390. package/dist/chunks/teammateModeSnapshot-1.1.34-m47hpvj2.mjs +1 -0
  391. package/dist/chunks/teleport-1.1.34-g7gk9g3q.mjs +1 -0
  392. package/dist/chunks/terminalSetup-1.1.34-8e12gzad.mjs +1 -0
  393. package/dist/chunks/theme-1.1.34-bvmx3zyc.mjs +1 -0
  394. package/dist/chunks/thinkback-1.1.34-bz9h3qn7.mjs +1 -0
  395. package/dist/chunks/thinkback-play-1.1.34-azysb61e.mjs +1 -0
  396. package/dist/chunks/toolPool-1.1.34-tewk9s1e.mjs +1 -0
  397. package/dist/chunks/toolSearch-1.1.34-70r6c6d3.mjs +1 -0
  398. package/dist/chunks/tools-1.1.34-a7jpjvb5.mjs +1 -0
  399. package/dist/chunks/trustedDevice-1.1.34-jhn5330j.mjs +1 -0
  400. package/dist/chunks/turndown.cjs-1.1.34-8ve160tv.mjs +69 -0
  401. package/dist/chunks/types-1.1.34-0as4p0wf.mjs +1 -0
  402. package/dist/chunks/ultrareviewCommand-1.1.34-b7bpj27y.mjs +4 -0
  403. package/dist/chunks/update-1.1.34-wnetpcv6.mjs +72 -0
  404. package/dist/chunks/upload-1.1.34-3cdkjhmm.mjs +7 -0
  405. package/dist/chunks/upstreamproxy-1.1.34-x376823n.mjs +14 -0
  406. package/dist/chunks/usage-1.1.34-h5bv8trt.mjs +1 -0
  407. package/dist/chunks/util-1.1.34-7ctz504f.mjs +1 -0
  408. package/dist/chunks/utils-1.1.34-h9r9ybtj.mjs +1 -0
  409. package/dist/chunks/vim-1.1.34-4y4504z8.mjs +1 -0
  410. package/dist/chunks/watchLoop-1.1.34-tnjnpc05.mjs +13 -0
  411. package/dist/chunks/wiki-1.1.34-53n04tv3.mjs +132 -0
  412. package/dist/chunks/workflows-1.1.34-zefy425g.mjs +1 -0
  413. package/dist/chunks/worktree-1.1.34-gzm7041w.mjs +1 -0
  414. package/dist/chunks/worktreeModeEnabled-1.1.34-x9qxm01a.mjs +1 -0
  415. package/dist/chunks/wrapper-1.1.34-jmcmxyrm.mjs +7 -0
  416. package/dist/cli.mjs +2 -2
  417. package/package.json +9 -9
  418. package/dist/chunks/App-1.1.32-x0g3m6v6.mjs +0 -1
  419. package/dist/chunks/ApproveApiKey-1.1.32-8x1yxm2f.mjs +0 -1
  420. package/dist/chunks/AutoModeOptInDialog-1.1.32-scm9btv0.mjs +0 -1
  421. package/dist/chunks/BypassPermissionsModeDialog-1.1.32-wtcy84rn.mjs +0 -1
  422. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.32-y88y88zt.mjs +0 -1
  423. package/dist/chunks/ConsoleOAuthFlow-1.1.32-kzv0tbna.mjs +0 -1
  424. package/dist/chunks/DiffDialog-1.1.32-4cm0cwer.mjs +0 -6
  425. package/dist/chunks/Doctor-1.1.32-289yb4jj.mjs +0 -1
  426. package/dist/chunks/ExplorerDialog-1.1.32-5gjqvpvs.mjs +0 -6
  427. package/dist/chunks/ITermBackend-1.1.32-a8pwddd1.mjs +0 -1
  428. package/dist/chunks/InvalidConfigDialog-1.1.32-6qdrtdpr.mjs +0 -1
  429. package/dist/chunks/InvalidSettingsDialog-1.1.32-hwzxtdsd.mjs +0 -1
  430. package/dist/chunks/MigrationDialog-1.1.32-yytrpays.mjs +0 -1
  431. package/dist/chunks/Onboarding-1.1.32-c5yyxz32.mjs +0 -1
  432. package/dist/chunks/ProviderManager-1.1.32-7q71086g.mjs +0 -1
  433. package/dist/chunks/REPL-1.1.32-yzppvfrk.mjs +0 -1
  434. package/dist/chunks/ResumeConversation-1.1.32-rv15raev.mjs +0 -1
  435. package/dist/chunks/TeleportProgress-1.1.32-n3bsegx5.mjs +0 -1
  436. package/dist/chunks/TeleportRepoMismatchDialog-1.1.32-68xgndte.mjs +0 -1
  437. package/dist/chunks/TeleportResumeWrapper-1.1.32-zb4vkx03.mjs +0 -1
  438. package/dist/chunks/TmuxBackend-1.1.32-q3c5nqks.mjs +0 -9
  439. package/dist/chunks/ToolSearchTool-1.1.32-3whrqawk.mjs +0 -1
  440. package/dist/chunks/TrustDialog-1.1.32-33mkg42t.mjs +0 -1
  441. package/dist/chunks/activeProvider-1.1.32-9brew90d.mjs +0 -1
  442. package/dist/chunks/add-dir-1.1.32-8hkh1hcx.mjs +0 -1
  443. package/dist/chunks/agentTypes-1.1.32-ph49ernt.mjs +0 -1
  444. package/dist/chunks/agents-1.1.32-6ajrxrdr.mjs +0 -110
  445. package/dist/chunks/agents-1.1.32-6gc09pk2.mjs +0 -3
  446. package/dist/chunks/api-1.1.32-8qx9q5eh.mjs +0 -1
  447. package/dist/chunks/asciicast-1.1.32-4knajfec.mjs +0 -1
  448. package/dist/chunks/auth-1.1.32-9xrd6x89.mjs +0 -1
  449. package/dist/chunks/auth-1.1.32-s83fshpf.mjs +0 -1
  450. package/dist/chunks/autoMode-1.1.32-e680w683.mjs +0 -52
  451. package/dist/chunks/autoModeSetup-1.1.32-7m1d4dy7.mjs +0 -44
  452. package/dist/chunks/autoUpdater-1.1.32-hhg3dezv.mjs +0 -1
  453. package/dist/chunks/backgroundHousekeeping-1.1.32-8ddhae4q.mjs +0 -1
  454. package/dist/chunks/branch-1.1.32-xaq3pb3p.mjs +0 -4
  455. package/dist/chunks/bridge-1.1.32-ec6fc8kh.mjs +0 -2
  456. package/dist/chunks/bridgeConfig-1.1.32-bse7ynz2.mjs +0 -1
  457. package/dist/chunks/bridgeEnabled-1.1.32-84ntyqxd.mjs +0 -1
  458. package/dist/chunks/bridgeMain-1.1.32-d20ebbde.mjs +0 -88
  459. package/dist/chunks/bridgePointer-1.1.32-40jwkts4.mjs +0 -1
  460. package/dist/chunks/btw-1.1.32-kg0w3tw2.mjs +0 -1
  461. package/dist/chunks/buddy-1.1.32-c53wp8x4.mjs +0 -3
  462. package/dist/chunks/cache-probe-1.1.32-a9jc0rn9.mjs +0 -21
  463. package/dist/chunks/cacheStats-1.1.32-bh9jpngp.mjs +0 -4
  464. package/dist/chunks/caches-1.1.32-va3h1efn.mjs +0 -1
  465. package/dist/chunks/cd-1.1.32-yar6t6sg.mjs +0 -3
  466. package/dist/chunks/claudeDesktop-1.1.32-xjcschxc.mjs +0 -1
  467. package/dist/chunks/claudemd-1.1.32-kb9tec8y.mjs +0 -1
  468. package/dist/chunks/clear-1.1.32-ywfd1kha.mjs +0 -1
  469. package/dist/chunks/clearTerminal-1.1.32-x7tbxm3w.mjs +0 -1
  470. package/dist/chunks/cli-1.1.32-06xv4rmw.mjs +0 -2
  471. package/dist/chunks/cli-1.1.32-0pmhmsew.mjs +0 -42
  472. package/dist/chunks/cli-1.1.32-1913x5jp.mjs +0 -15
  473. package/dist/chunks/cli-1.1.32-1c9z2mtv.mjs +0 -2
  474. package/dist/chunks/cli-1.1.32-1cp8vbtp.mjs +0 -9
  475. package/dist/chunks/cli-1.1.32-1rackf2c.mjs +0 -4
  476. package/dist/chunks/cli-1.1.32-1rprka6j.mjs +0 -2
  477. package/dist/chunks/cli-1.1.32-1t75hwdn.mjs +0 -2
  478. package/dist/chunks/cli-1.1.32-1yrmnphh.mjs +0 -2
  479. package/dist/chunks/cli-1.1.32-260jjrwt.mjs +0 -6
  480. package/dist/chunks/cli-1.1.32-26474ywa.mjs +0 -2
  481. package/dist/chunks/cli-1.1.32-28vx0a5m.mjs +0 -2
  482. package/dist/chunks/cli-1.1.32-28x0bz68.mjs +0 -2
  483. package/dist/chunks/cli-1.1.32-2k074m5f.mjs +0 -2
  484. package/dist/chunks/cli-1.1.32-2kd689v0.mjs +0 -2
  485. package/dist/chunks/cli-1.1.32-2m68a9w2.mjs +0 -2
  486. package/dist/chunks/cli-1.1.32-2tyhwqjh.mjs +0 -10
  487. package/dist/chunks/cli-1.1.32-2wcdy0zp.mjs +0 -17
  488. package/dist/chunks/cli-1.1.32-2x7x44mg.mjs +0 -2
  489. package/dist/chunks/cli-1.1.32-336t9pmv.mjs +0 -2
  490. package/dist/chunks/cli-1.1.32-33jnyekk.mjs +0 -2
  491. package/dist/chunks/cli-1.1.32-36t0985q.mjs +0 -21
  492. package/dist/chunks/cli-1.1.32-3gbh5q5w.mjs +0 -2
  493. package/dist/chunks/cli-1.1.32-3z4a0eqz.mjs +0 -3
  494. package/dist/chunks/cli-1.1.32-41xx49ta.mjs +0 -2
  495. package/dist/chunks/cli-1.1.32-46wadmxk.mjs +0 -2
  496. package/dist/chunks/cli-1.1.32-49sdmvtj.mjs +0 -25
  497. package/dist/chunks/cli-1.1.32-4ekmdczr.mjs +0 -25
  498. package/dist/chunks/cli-1.1.32-4ft4m446.mjs +0 -2
  499. package/dist/chunks/cli-1.1.32-4rsr6phf.mjs +0 -2
  500. package/dist/chunks/cli-1.1.32-4vdyqkkd.mjs +0 -2
  501. package/dist/chunks/cli-1.1.32-4yat84kg.mjs +0 -2
  502. package/dist/chunks/cli-1.1.32-5a158c45.mjs +0 -2
  503. package/dist/chunks/cli-1.1.32-5c5dcwk6.mjs +0 -2
  504. package/dist/chunks/cli-1.1.32-5cngr1kn.mjs +0 -2
  505. package/dist/chunks/cli-1.1.32-5dq711bj.mjs +0 -2
  506. package/dist/chunks/cli-1.1.32-5j5n166h.mjs +0 -2
  507. package/dist/chunks/cli-1.1.32-5qjjtpkh.mjs +0 -133
  508. package/dist/chunks/cli-1.1.32-5qwps3ts.mjs +0 -2
  509. package/dist/chunks/cli-1.1.32-5v0afeqw.mjs +0 -2
  510. package/dist/chunks/cli-1.1.32-5xmh2b7j.mjs +0 -2
  511. package/dist/chunks/cli-1.1.32-60pc6r2s.mjs +0 -2
  512. package/dist/chunks/cli-1.1.32-6317frxz.mjs +0 -2
  513. package/dist/chunks/cli-1.1.32-65c5zdmx.mjs +0 -2
  514. package/dist/chunks/cli-1.1.32-6f9r9qcb.mjs +0 -2
  515. package/dist/chunks/cli-1.1.32-6jbgafh2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.32-6jhkp60n.mjs +0 -2
  517. package/dist/chunks/cli-1.1.32-6jxftegx.mjs +0 -6
  518. package/dist/chunks/cli-1.1.32-7566j53x.mjs +0 -2
  519. package/dist/chunks/cli-1.1.32-76wfpwbd.mjs +0 -2
  520. package/dist/chunks/cli-1.1.32-7zp3b6gq.mjs +0 -2
  521. package/dist/chunks/cli-1.1.32-8b5ej63w.mjs +0 -2
  522. package/dist/chunks/cli-1.1.32-8hsb6vgz.mjs +0 -2
  523. package/dist/chunks/cli-1.1.32-8jkgzjh4.mjs +0 -5
  524. package/dist/chunks/cli-1.1.32-8t8t42xx.mjs +0 -2
  525. package/dist/chunks/cli-1.1.32-8yc37yqa.mjs +0 -34
  526. package/dist/chunks/cli-1.1.32-97e0qadj.mjs +0 -2
  527. package/dist/chunks/cli-1.1.32-9c0an85r.mjs +0 -2
  528. package/dist/chunks/cli-1.1.32-9fe7efg9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.32-9jxkev29.mjs +0 -2
  530. package/dist/chunks/cli-1.1.32-9wsnkggz.mjs +0 -11
  531. package/dist/chunks/cli-1.1.32-9yka8m9x.mjs +0 -5490
  532. package/dist/chunks/cli-1.1.32-a3dfp7ps.mjs +0 -12
  533. package/dist/chunks/cli-1.1.32-acgh1gj8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.32-ajhvj43e.mjs +0 -2
  535. package/dist/chunks/cli-1.1.32-aqfcrtfz.mjs +0 -5
  536. package/dist/chunks/cli-1.1.32-aysp26sz.mjs +0 -45
  537. package/dist/chunks/cli-1.1.32-b1bbb8eb.mjs +0 -7
  538. package/dist/chunks/cli-1.1.32-b3hsysf6.mjs +0 -2
  539. package/dist/chunks/cli-1.1.32-b4dgaz0a.mjs +0 -2
  540. package/dist/chunks/cli-1.1.32-bce46tmm.mjs +0 -2
  541. package/dist/chunks/cli-1.1.32-bnam9df8.mjs +0 -2
  542. package/dist/chunks/cli-1.1.32-bt4yfsm7.mjs +0 -2
  543. package/dist/chunks/cli-1.1.32-c4v8081j.mjs +0 -2
  544. package/dist/chunks/cli-1.1.32-c6n1kre3.mjs +0 -2
  545. package/dist/chunks/cli-1.1.32-c7ypbb63.mjs +0 -2
  546. package/dist/chunks/cli-1.1.32-cpzgn83z.mjs +0 -2
  547. package/dist/chunks/cli-1.1.32-cx7ygksc.mjs +0 -2
  548. package/dist/chunks/cli-1.1.32-czrfbd3q.mjs +0 -2
  549. package/dist/chunks/cli-1.1.32-d47cvy98.mjs +0 -2
  550. package/dist/chunks/cli-1.1.32-dkyyv5mx.mjs +0 -2
  551. package/dist/chunks/cli-1.1.32-dp2kpscr.mjs +0 -2
  552. package/dist/chunks/cli-1.1.32-dtd3vpkv.mjs +0 -2
  553. package/dist/chunks/cli-1.1.32-e1btgk5y.mjs +0 -4
  554. package/dist/chunks/cli-1.1.32-e96q5k17.mjs +0 -2
  555. package/dist/chunks/cli-1.1.32-ebg7m8yz.mjs +0 -2
  556. package/dist/chunks/cli-1.1.32-ehg64cg0.mjs +0 -2
  557. package/dist/chunks/cli-1.1.32-erw03mnm.mjs +0 -2
  558. package/dist/chunks/cli-1.1.32-f3895pf8.mjs +0 -2
  559. package/dist/chunks/cli-1.1.32-fhzs65yw.mjs +0 -2
  560. package/dist/chunks/cli-1.1.32-fjz81t0j.mjs +0 -2
  561. package/dist/chunks/cli-1.1.32-fr30sgy9.mjs +0 -2
  562. package/dist/chunks/cli-1.1.32-fzepmkcj.mjs +0 -2
  563. package/dist/chunks/cli-1.1.32-g5dzf2w1.mjs +0 -24
  564. package/dist/chunks/cli-1.1.32-gg7yn5bt.mjs +0 -8
  565. package/dist/chunks/cli-1.1.32-gpq33yz0.mjs +0 -2
  566. package/dist/chunks/cli-1.1.32-gqbeasga.mjs +0 -2
  567. package/dist/chunks/cli-1.1.32-gvv8h6dg.mjs +0 -18
  568. package/dist/chunks/cli-1.1.32-gwf0a8ej.mjs +0 -2
  569. package/dist/chunks/cli-1.1.32-h23ch6fy.mjs +0 -2
  570. package/dist/chunks/cli-1.1.32-h4tpddgz.mjs +0 -4
  571. package/dist/chunks/cli-1.1.32-h7cb9f8y.mjs +0 -2
  572. package/dist/chunks/cli-1.1.32-hbwke9cs.mjs +0 -2
  573. package/dist/chunks/cli-1.1.32-hgjgfp8p.mjs +0 -60
  574. package/dist/chunks/cli-1.1.32-hhd65der.mjs +0 -2
  575. package/dist/chunks/cli-1.1.32-hzn2mba8.mjs +0 -3
  576. package/dist/chunks/cli-1.1.32-j31v1t7y.mjs +0 -15
  577. package/dist/chunks/cli-1.1.32-jatnsd1n.mjs +0 -2
  578. package/dist/chunks/cli-1.1.32-jjanec91.mjs +0 -2
  579. package/dist/chunks/cli-1.1.32-jnrsn4v0.mjs +0 -2
  580. package/dist/chunks/cli-1.1.32-jqhfcb0t.mjs +0 -2
  581. package/dist/chunks/cli-1.1.32-jt6w5mqv.mjs +0 -2
  582. package/dist/chunks/cli-1.1.32-k5d30qej.mjs +0 -3
  583. package/dist/chunks/cli-1.1.32-k9zkw4st.mjs +0 -2
  584. package/dist/chunks/cli-1.1.32-kn0zs89y.mjs +0 -63
  585. package/dist/chunks/cli-1.1.32-kqkbjp3x.mjs +0 -4
  586. package/dist/chunks/cli-1.1.32-m7dxkbpn.mjs +0 -2
  587. package/dist/chunks/cli-1.1.32-m9c0pceb.mjs +0 -3
  588. package/dist/chunks/cli-1.1.32-m9p4pd60.mjs +0 -2
  589. package/dist/chunks/cli-1.1.32-merqy9t2.mjs +0 -2
  590. package/dist/chunks/cli-1.1.32-mrftpsrs.mjs +0 -15
  591. package/dist/chunks/cli-1.1.32-n3smn7a4.mjs +0 -2
  592. package/dist/chunks/cli-1.1.32-n6rpvpf2.mjs +0 -2
  593. package/dist/chunks/cli-1.1.32-n7cyeje8.mjs +0 -2
  594. package/dist/chunks/cli-1.1.32-n9vdkdfk.mjs +0 -2
  595. package/dist/chunks/cli-1.1.32-nmcy47z7.mjs +0 -4
  596. package/dist/chunks/cli-1.1.32-nt9eqa35.mjs +0 -2
  597. package/dist/chunks/cli-1.1.32-p70gsyp3.mjs +0 -2
  598. package/dist/chunks/cli-1.1.32-pe6kmf9g.mjs +0 -3
  599. package/dist/chunks/cli-1.1.32-pfhbrjhs.mjs +0 -20
  600. package/dist/chunks/cli-1.1.32-pfwbgg79.mjs +0 -2
  601. package/dist/chunks/cli-1.1.32-pm7ctgdf.mjs +0 -7
  602. package/dist/chunks/cli-1.1.32-pve0ffcp.mjs +0 -203
  603. package/dist/chunks/cli-1.1.32-pwvfjtva.mjs +0 -2
  604. package/dist/chunks/cli-1.1.32-px6268dx.mjs +0 -2
  605. package/dist/chunks/cli-1.1.32-px93hhj4.mjs +0 -3
  606. package/dist/chunks/cli-1.1.32-qmgvm9rq.mjs +0 -2
  607. package/dist/chunks/cli-1.1.32-qvx7w9wm.mjs +0 -2
  608. package/dist/chunks/cli-1.1.32-qzjfn21e.mjs +0 -3
  609. package/dist/chunks/cli-1.1.32-r5ww85n4.mjs +0 -6
  610. package/dist/chunks/cli-1.1.32-r6g8b118.mjs +0 -5
  611. package/dist/chunks/cli-1.1.32-r7020tw8.mjs +0 -4
  612. package/dist/chunks/cli-1.1.32-rbvnjjkt.mjs +0 -2
  613. package/dist/chunks/cli-1.1.32-rmz4ezae.mjs +0 -3
  614. package/dist/chunks/cli-1.1.32-rswqkymv.mjs +0 -133
  615. package/dist/chunks/cli-1.1.32-s2kkv51h.mjs +0 -2
  616. package/dist/chunks/cli-1.1.32-s4betse1.mjs +0 -2
  617. package/dist/chunks/cli-1.1.32-sqsxnqqb.mjs +0 -2
  618. package/dist/chunks/cli-1.1.32-t1n0b84g.mjs +0 -2
  619. package/dist/chunks/cli-1.1.32-tgr1e1hd.mjs +0 -2
  620. package/dist/chunks/cli-1.1.32-th2r4378.mjs +0 -9
  621. package/dist/chunks/cli-1.1.32-thsw9p6n.mjs +0 -2
  622. package/dist/chunks/cli-1.1.32-tp4tyjy3.mjs +0 -2
  623. package/dist/chunks/cli-1.1.32-tq108hv4.mjs +0 -2
  624. package/dist/chunks/cli-1.1.32-tzn98f6r.mjs +0 -24
  625. package/dist/chunks/cli-1.1.32-v3cks7qj.mjs +0 -6
  626. package/dist/chunks/cli-1.1.32-v4chz2b0.mjs +0 -2
  627. package/dist/chunks/cli-1.1.32-vdezbpdh.mjs +0 -2
  628. package/dist/chunks/cli-1.1.32-vf3r8a91.mjs +0 -16
  629. package/dist/chunks/cli-1.1.32-vmr6f229.mjs +0 -2
  630. package/dist/chunks/cli-1.1.32-vnhzy4jx.mjs +0 -2
  631. package/dist/chunks/cli-1.1.32-vtzwmjs8.mjs +0 -3
  632. package/dist/chunks/cli-1.1.32-vy2ngm3p.mjs +0 -2
  633. package/dist/chunks/cli-1.1.32-w2b0neg3.mjs +0 -4
  634. package/dist/chunks/cli-1.1.32-wnhqapmf.mjs +0 -24
  635. package/dist/chunks/cli-1.1.32-wsqyehdw.mjs +0 -2
  636. package/dist/chunks/cli-1.1.32-wyv15h7a.mjs +0 -6
  637. package/dist/chunks/cli-1.1.32-x0crp5g9.mjs +0 -2
  638. package/dist/chunks/cli-1.1.32-x23z7923.mjs +0 -2
  639. package/dist/chunks/cli-1.1.32-x8j1spnv.mjs +0 -2
  640. package/dist/chunks/cli-1.1.32-xfhe1m2y.mjs +0 -2
  641. package/dist/chunks/cli-1.1.32-xj2e8mzf.mjs +0 -2
  642. package/dist/chunks/cli-1.1.32-xy1pvy12.mjs +0 -2
  643. package/dist/chunks/cli-1.1.32-y4agg2c2.mjs +0 -17
  644. package/dist/chunks/cli-1.1.32-ycyg88ky.mjs +0 -2
  645. package/dist/chunks/cli-1.1.32-ydbtpc9v.mjs +0 -12
  646. package/dist/chunks/cli-1.1.32-yfs9ppge.mjs +0 -2
  647. package/dist/chunks/cli-1.1.32-yhftam6y.mjs +0 -50
  648. package/dist/chunks/cli-1.1.32-yhzhm57s.mjs +0 -2
  649. package/dist/chunks/cli-1.1.32-yq68bsa5.mjs +0 -2
  650. package/dist/chunks/cli-1.1.32-yv0wyp2m.mjs +0 -2
  651. package/dist/chunks/cli-1.1.32-yv9hzzq7.mjs +0 -2
  652. package/dist/chunks/cli-1.1.32-yw64r19c.mjs +0 -2
  653. package/dist/chunks/cli-1.1.32-z7x4jfeb.mjs +0 -4
  654. package/dist/chunks/cli-1.1.32-zegecv6e.mjs +0 -2
  655. package/dist/chunks/cli-1.1.32-zeyasrw5.mjs +0 -2
  656. package/dist/chunks/cli-1.1.32-zfyd4kyq.mjs +0 -2
  657. package/dist/chunks/cli-1.1.32-zfzqc12y.mjs +0 -26
  658. package/dist/chunks/cli-1.1.32-zkq2v1fz.mjs +0 -2
  659. package/dist/chunks/cli-1.1.32-zqtqvc9y.mjs +0 -3
  660. package/dist/chunks/cli-1.1.32-zr4x17ne.mjs +0 -3
  661. package/dist/chunks/cli-1.1.32-zraeg1n2.mjs +0 -2
  662. package/dist/chunks/cli-1.1.32-zrxqe296.mjs +0 -7
  663. package/dist/chunks/cli-1.1.32-zv1p3q66.mjs +0 -2
  664. package/dist/chunks/cli-1.1.32-zwetcrr2.mjs +0 -39
  665. package/dist/chunks/client-1.1.32-y4ehgz03.mjs +0 -1
  666. package/dist/chunks/color-1.1.32-an3gq6pv.mjs +0 -1
  667. package/dist/chunks/compact-1.1.32-kp67c5pn.mjs +0 -2
  668. package/dist/chunks/config-1.1.32-9kqd30ca.mjs +0 -1
  669. package/dist/chunks/config-1.1.32-chryg3ab.mjs +0 -1
  670. package/dist/chunks/constants-1.1.32-azab2vra.mjs +0 -1
  671. package/dist/chunks/context-1.1.32-t6yf3tch.mjs +0 -1
  672. package/dist/chunks/context-noninteractive-1.1.32-tbes3yx4.mjs +0 -1
  673. package/dist/chunks/conversation-1.1.32-edtsb1fp.mjs +0 -1
  674. package/dist/chunks/copilotHeaders-1.1.32-cxjr3qqd.mjs +0 -1
  675. package/dist/chunks/copy-1.1.32-2yk1zben.mjs +0 -9
  676. package/dist/chunks/cost-1.1.32-ykkmca1s.mjs +0 -1
  677. package/dist/chunks/createSession-1.1.32-pky6wawr.mjs +0 -1
  678. package/dist/chunks/debug-1.1.32-f8fanjpw.mjs +0 -1
  679. package/dist/chunks/defaultActionDeps-1.1.32-nf0mf9nq.mjs +0 -1480
  680. package/dist/chunks/desktop-1.1.32-h4q834kk.mjs +0 -2
  681. package/dist/chunks/detectRepository-1.1.32-y3wjkn3b.mjs +0 -1
  682. package/dist/chunks/detection-1.1.32-13rzk2y0.mjs +0 -1
  683. package/dist/chunks/diff-1.1.32-tsgcxd5v.mjs +0 -1
  684. package/dist/chunks/doctor-1.1.32-dg4q70ty.mjs +0 -1
  685. package/dist/chunks/doctorDiagnostic-1.1.32-xpjhp8fe.mjs +0 -1
  686. package/dist/chunks/earlyInput-1.1.32-rzjwc8xb.mjs +0 -1
  687. package/dist/chunks/effort-1.1.32-76tc9ft4.mjs +0 -13
  688. package/dist/chunks/engine-1.1.32-qp8px0cr.mjs +0 -1
  689. package/dist/chunks/envLessBridgeConfig-1.1.32-mamfyksw.mjs +0 -1
  690. package/dist/chunks/envUtils-1.1.32-x5ddw5jb.mjs +0 -1
  691. package/dist/chunks/errors-1.1.32-pw0ngznd.mjs +0 -1
  692. package/dist/chunks/exampleCommands-1.1.32-j9bvstfq.mjs +0 -1
  693. package/dist/chunks/execFileNoThrow-1.1.32-ah9wga16.mjs +0 -1
  694. package/dist/chunks/exit-1.1.32-4j8q9ztw.mjs +0 -1
  695. package/dist/chunks/explorer-1.1.32-dabb8sse.mjs +0 -1
  696. package/dist/chunks/export-1.1.32-zt3yhqen.mjs +0 -2
  697. package/dist/chunks/fast-1.1.32-cms216af.mjs +0 -1
  698. package/dist/chunks/feedback-1.1.32-r94c0y57.mjs +0 -16
  699. package/dist/chunks/git-1.1.32-9xc0s3ry.mjs +0 -1
  700. package/dist/chunks/githubModelsCredentials-1.1.32-r5xq7s7y.mjs +0 -1
  701. package/dist/chunks/goal-1.1.32-bkjq4858.mjs +0 -4
  702. package/dist/chunks/headless-1.1.32-ae4d3qgy.mjs +0 -2
  703. package/dist/chunks/heapdump-1.1.32-jdrsrqfx.mjs +0 -6
  704. package/dist/chunks/help-1.1.32-5z54ce4t.mjs +0 -1
  705. package/dist/chunks/hooks-1.1.32-2mse496x.mjs +0 -1
  706. package/dist/chunks/hooks-1.1.32-jv66gnpt.mjs +0 -79
  707. package/dist/chunks/ide-1.1.32-tx45prsy.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-1.1.32-bwdr4dza.mjs +0 -1
  709. package/dist/chunks/import-1.1.32-7w75n01b.mjs +0 -261
  710. package/dist/chunks/inboundAttachments-1.1.32-1vfz9rkn.mjs +0 -1
  711. package/dist/chunks/index-1.1.32-3wzxvtbf.mjs +0 -1
  712. package/dist/chunks/index-1.1.32-49p9ghn6.mjs +0 -1
  713. package/dist/chunks/index-1.1.32-7ttnyjb3.mjs +0 -2
  714. package/dist/chunks/index-1.1.32-aqkr7bx2.mjs +0 -9
  715. package/dist/chunks/index-1.1.32-az0sxjjn.mjs +0 -5
  716. package/dist/chunks/index-1.1.32-b4rwnxe8.mjs +0 -1
  717. package/dist/chunks/index-1.1.32-bpzdp87c.mjs +0 -23
  718. package/dist/chunks/index-1.1.32-c3gnrfg0.mjs +0 -1
  719. package/dist/chunks/index-1.1.32-cjq261cn.mjs +0 -9
  720. package/dist/chunks/index-1.1.32-crx2adff.mjs +0 -1
  721. package/dist/chunks/index-1.1.32-dn9thxs1.mjs +0 -30
  722. package/dist/chunks/index-1.1.32-fwm6yqt6.mjs +0 -1
  723. package/dist/chunks/index-1.1.32-g58gm84f.mjs +0 -1
  724. package/dist/chunks/index-1.1.32-g9e9ne9q.mjs +0 -1
  725. package/dist/chunks/index-1.1.32-m694vs1n.mjs +0 -1
  726. package/dist/chunks/index-1.1.32-rbv0wt7t.mjs +0 -1
  727. package/dist/chunks/index-1.1.32-revsqy4q.mjs +0 -1
  728. package/dist/chunks/index-1.1.32-t011v5cn.mjs +0 -1
  729. package/dist/chunks/index-1.1.32-tv85kbw0.mjs +0 -1
  730. package/dist/chunks/index-1.1.32-v09n34s4.mjs +0 -1
  731. package/dist/chunks/index-1.1.32-vaknvmtk.mjs +0 -2
  732. package/dist/chunks/index-1.1.32-vxn4pvkx.mjs +0 -1
  733. package/dist/chunks/index-1.1.32-zep1vry1.mjs +0 -1
  734. package/dist/chunks/init-1.1.32-xac664gq.mjs +0 -2
  735. package/dist/chunks/initReplBridge-1.1.32-d1g5bqts.mjs +0 -1
  736. package/dist/chunks/ink-1.1.32-brepbf1s.mjs +0 -1
  737. package/dist/chunks/insights-1.1.32-ccteb3zt.mjs +0 -870
  738. package/dist/chunks/install-1.1.32-xhcj1s97.mjs +0 -1
  739. package/dist/chunks/install-github-app-1.1.32-2rb2b8y2.mjs +0 -149
  740. package/dist/chunks/install-slack-app-1.1.32-7e22rmh8.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-1.1.32-tw81dggb.mjs +0 -1
  742. package/dist/chunks/keybindings-1.1.32-bsjftmx2.mjs +0 -2
  743. package/dist/chunks/latestVersionCache-1.1.32-ecgj54va.mjs +0 -1
  744. package/dist/chunks/loadAgentsDir-1.1.32-9c4e13wb.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-1.1.32-qb96n0p6.mjs +0 -1
  746. package/dist/chunks/log-1.1.32-0wdbtf8k.mjs +0 -1
  747. package/dist/chunks/main-1.1.32-9s7gbk2b.mjs +0 -1
  748. package/dist/chunks/managedEnv-1.1.32-8aapabn1.mjs +0 -1
  749. package/dist/chunks/mcp-1.1.32-2ct5ytwv.mjs +0 -1
  750. package/dist/chunks/mcp-1.1.32-42npdfwc.mjs +0 -17
  751. package/dist/chunks/mcp-1.1.32-8c3f7gfy.mjs +0 -4
  752. package/dist/chunks/mcpb-1.1.32-482tejv1.mjs +0 -1
  753. package/dist/chunks/memory-1.1.32-jrnzabfj.mjs +0 -77
  754. package/dist/chunks/model-1.1.32-wjtssjq7.mjs +0 -1
  755. package/dist/chunks/model-1.1.32-z7v5ah7s.mjs +0 -2
  756. package/dist/chunks/node-1.1.32-bgrnv9d0.mjs +0 -15
  757. package/dist/chunks/node-1.1.32-pek9xbcv.mjs +0 -1
  758. package/dist/chunks/oauth-1.1.32-b01rfrnw.mjs +0 -1
  759. package/dist/chunks/openaiShim-1.1.32-68nafznt.mjs +0 -14
  760. package/dist/chunks/output-style-1.1.32-se3pq9dn.mjs +0 -1
  761. package/dist/chunks/package-D2QZMRW7-1.1.32-jykb9rfa.mjs +0 -1
  762. package/dist/chunks/permissions-1.1.32-r62vjas0.mjs +0 -3
  763. package/dist/chunks/permissions-1.1.32-v83ds1fq.mjs +0 -1
  764. package/dist/chunks/plan-1.1.32-remxpgv3.mjs +0 -1
  765. package/dist/chunks/plist-1.1.32-y2bh274p.mjs +0 -1
  766. package/dist/chunks/plugin-1.1.32-h9pgs6zn.mjs +0 -29
  767. package/dist/chunks/pluginStartupCheck-1.1.32-vyn1sara.mjs +0 -1
  768. package/dist/chunks/plugins-1.1.32-wxz7p0xc.mjs +0 -9
  769. package/dist/chunks/preActionHook-1.1.32-259wvsmh.mjs +0 -2
  770. package/dist/chunks/print-1.1.32-k37wv4h9.mjs +0 -57
  771. package/dist/chunks/process-1.1.32-tya6ctch.mjs +0 -1
  772. package/dist/chunks/processBashCommand-1.1.32-hfk6nzmr.mjs +0 -1
  773. package/dist/chunks/processSlashCommand-1.1.32-ga3g4qev.mjs +0 -9
  774. package/dist/chunks/prompt-1.1.32-crsv325t.mjs +0 -1
  775. package/dist/chunks/prompt-1.1.32-jyfkevpw.mjs +0 -1
  776. package/dist/chunks/prompts-1.1.32-mythhsq2.mjs +0 -1
  777. package/dist/chunks/provider-1.1.32-c16c25q6.mjs +0 -2
  778. package/dist/chunks/providerProfiles-1.1.32-gv05d26p.mjs +0 -1
  779. package/dist/chunks/providerValidation-1.1.32-srfcyanm.mjs +0 -6
  780. package/dist/chunks/registerSubcommands-1.1.32-af1r42j6.mjs +0 -26
  781. package/dist/chunks/registry-1.1.32-nvr3xen5.mjs +0 -1
  782. package/dist/chunks/release-notes-1.1.32-gtntbc84.mjs +0 -5
  783. package/dist/chunks/reload-plugins-1.1.32-qmx4b0zf.mjs +0 -2
  784. package/dist/chunks/remote-env-1.1.32-srz0skx2.mjs +0 -1
  785. package/dist/chunks/remoteBridgeCore-1.1.32-17erfh69.mjs +0 -1
  786. package/dist/chunks/rename-1.1.32-yww8w15q.mjs +0 -1
  787. package/dist/chunks/replLauncher-1.1.32-carhn5x3.mjs +0 -1
  788. package/dist/chunks/resume-1.1.32-y7g779fj.mjs +0 -2
  789. package/dist/chunks/rewind-1.1.32-xktcmbbk.mjs +0 -1
  790. package/dist/chunks/rootOptions-1.1.32-q7914mqe.mjs +0 -1
  791. package/dist/chunks/runWorkflowHeadless-1.1.32-yr1peyj2.mjs +0 -10
  792. package/dist/chunks/sandbox-adapter-1.1.32-kct2shfd.mjs +0 -1
  793. package/dist/chunks/sandbox-toggle-1.1.32-wa7kgd6b.mjs +0 -1
  794. package/dist/chunks/session-1.1.32-07pqmcyz.mjs +0 -2
  795. package/dist/chunks/sessionFileAccessHooks-1.1.32-1ekf9af3.mjs +0 -1
  796. package/dist/chunks/sessionStorage-1.1.32-vcm53ywe.mjs +0 -1
  797. package/dist/chunks/settings-1.1.32-kwtz4r22.mjs +0 -1
  798. package/dist/chunks/setup-1.1.32-695k1eyn.mjs +0 -12
  799. package/dist/chunks/sinks-1.1.32-3eh8hb97.mjs +0 -1
  800. package/dist/chunks/skills-1.1.32-ymdek4dt.mjs +0 -1
  801. package/dist/chunks/startupProfiler-1.1.32-sxxmxavv.mjs +0 -1
  802. package/dist/chunks/startupUpdateCheck-1.1.32-25e14c0p.mjs +0 -1
  803. package/dist/chunks/state-1.1.32-q2y7dv84.mjs +0 -1
  804. package/dist/chunks/stats-1.1.32-p79st2jy.mjs +0 -1
  805. package/dist/chunks/status-1.1.32-wsaad3gy.mjs +0 -1
  806. package/dist/chunks/stickers-1.1.32-erbhpqdc.mjs +0 -1
  807. package/dist/chunks/subprocessEnv-1.1.32-29m5mf2s.mjs +0 -1
  808. package/dist/chunks/tasks-1.1.32-fv2ze8ev.mjs +0 -1
  809. package/dist/chunks/teamHelpers-1.1.32-b2x5nsht.mjs +0 -1
  810. package/dist/chunks/teammateModeSnapshot-1.1.32-w65af42z.mjs +0 -1
  811. package/dist/chunks/teleport-1.1.32-6d4336gw.mjs +0 -1
  812. package/dist/chunks/terminalSetup-1.1.32-t82mfgh5.mjs +0 -1
  813. package/dist/chunks/theme-1.1.32-7qn5nf2j.mjs +0 -1
  814. package/dist/chunks/thinkback-1.1.32-awsxj77a.mjs +0 -1
  815. package/dist/chunks/thinkback-play-1.1.32-jz9fjb47.mjs +0 -1
  816. package/dist/chunks/toolPool-1.1.32-fjydq0km.mjs +0 -1
  817. package/dist/chunks/toolSearch-1.1.32-y8vfsj9n.mjs +0 -1
  818. package/dist/chunks/tools-1.1.32-pd8bskwj.mjs +0 -1
  819. package/dist/chunks/trustedDevice-1.1.32-891wyppj.mjs +0 -1
  820. package/dist/chunks/turndown.cjs-1.1.32-nsrwegv6.mjs +0 -69
  821. package/dist/chunks/types-1.1.32-v6b8jgxx.mjs +0 -1
  822. package/dist/chunks/ultrareviewCommand-1.1.32-wkj4mpew.mjs +0 -4
  823. package/dist/chunks/update-1.1.32-zz1tgpba.mjs +0 -72
  824. package/dist/chunks/upload-1.1.32-43gcqyx2.mjs +0 -7
  825. package/dist/chunks/upstreamproxy-1.1.32-nqwkbma5.mjs +0 -14
  826. package/dist/chunks/usage-1.1.32-80bkg4qd.mjs +0 -1
  827. package/dist/chunks/util-1.1.32-c7zmr7sf.mjs +0 -1
  828. package/dist/chunks/utils-1.1.32-x2mf8n7e.mjs +0 -1
  829. package/dist/chunks/vim-1.1.32-mz41whem.mjs +0 -1
  830. package/dist/chunks/watchLoop-1.1.32-yftqp4h6.mjs +0 -13
  831. package/dist/chunks/watcher-1.1.32-jy13qnvt.mjs +0 -1
  832. package/dist/chunks/wiki-1.1.32-z6ngme51.mjs +0 -132
  833. package/dist/chunks/workflows-1.1.32-mpyvb578.mjs +0 -1
  834. package/dist/chunks/worktree-1.1.32-qxw9fxfk.mjs +0 -1
  835. package/dist/chunks/worktreeModeEnabled-1.1.32-w3d8pgmt.mjs +0 -1
  836. package/dist/chunks/wrapper-1.1.32-5xty3sv5.mjs +0 -7
@@ -0,0 +1,10 @@
1
+ import{ig as dZ,jg as cZ,kg as zX}from"./cli-1.1.34-shm51n5s.mjs";import{Gi as DJ,Hi as Cz}from"./cli-1.1.34-w7vjt3vm.mjs";import{Si as MJ,Ti as yz}from"./cli-1.1.34-axnnzxpw.mjs";import{$Q as Gz,$j as mJ,BB as ZQ,Bx as kZ,Cy as xQ,Dy as uQ,Fx as Pz,Gx as MZ,Hx as RX,KJ as zz,KS as UQ,LC as eQ,LS as gZ,MC as $X,Nk as rZ,OQ as qz,OS as CQ,Ok as IX,Qx as NQ,RC as Zz,Rj as TZ,SC as xX,SS as jQ,Sj as iQ,Sx as pZ,TQ as Yz,VQ as aZ,WQ as Vz,XD as Jz,YD as uX,YL as _J,YQ as m0,ZQ as Hz,_j as gJ,aM as fz,aR as BQ,ax as OQ,ay as wQ,bE as ZZ,bR as LQ,bx as JX,cE as JQ,cR as Bz,dE as Qz,dR as Lz,eE as fX,ey as QX,fE as QQ,fO as Xz,fR as PZ,gE as zQ,gk as sJ,gm as OZ,hE as iz,hm as PJ,iO as pX,rx as aQ,sx as hX,vB as $Z,vy as RQ,wB as uZ,wy as $Q,xB as xZ,xy as oQ,yB as eJ,yy as tQ,zB as sQ}from"./cli-1.1.34-84707tma.mjs";import{LT as rQ,UT as TX}from"./cli-1.1.34-fgbv1rw4.mjs";import{AW as JJ,BX as lQ,CX as SX,DX as zJ,FX as Az,IX as D,JX as hQ,KX as p,LX as PX,bX as BZ,cX as Nz,hX as EZ,jX as Fz,mY as XJ,pY as I0,uW as wJ,vW as Ez,vX as QJ,wW as u0,wX as wz}from"./cli-1.1.34-59csbz1a.mjs";import{IZ as UJ,JZ as jJ,KZ as bz}from"./cli-1.1.34-5ffnhvmt.mjs";import{$0 as AJ,V0 as e0}from"./cli-1.1.34-bt9brnrs.mjs";import{S1 as E0,T1 as Y,U1 as T,V1 as G0}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as b0}from"./cli-1.1.34-7ad0dt89.mjs";import{$5 as ZX,C5 as FQ,L5 as KQ,g5 as QZ,i5 as zZ}from"./cli-1.1.34-yrk4mxjw.mjs";import{v6 as lZ,w6 as vX}from"./cli-1.1.34-7bxexffs.mjs";import{y6 as TQ,z6 as AX}from"./cli-1.1.34-4zj4kbw4.mjs";import{F_ as DZ,K9 as C0,Kba as nQ,L9 as OJ,Tea as DQ,eca as kX,oda as KZ,wda as NJ}from"./cli-1.1.34-wwjkncsv.mjs";import{Gga as JZ,Pga as sz,vga as jZ,wga as nJ}from"./cli-1.1.34-p5v4dwpg.mjs";import{Eha as fZ,Gha as ez,Rha as NZ,Wha as wZ,Xha as AZ,gia as uz}from"./cli-1.1.34-0t1h2v5v.mjs";import{qja as n0,tja as wX}from"./cli-1.1.34-xwg0x7p4.mjs";import{bka as mQ,jka as _X}from"./cli-1.1.34-ev8ffgr9.mjs";import{rpa as gQ,upa as yX}from"./cli-1.1.34-qef4zhc3.mjs";import{Eqa as K0,Iqa as q0}from"./cli-1.1.34-4x915j9t.mjs";function bZ(){if(x0!==null)clearTimeout(x0),x0=null;yZ=Date.now();for(let J of GZ)J()}function Kz(){if(x0!==null)return;let J=Date.now()-yZ;if(J>=EZ){bZ();return}x0=setTimeout(bZ,EZ-J)}function oZ(){return CZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function iX(){return CZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var CZ,$0=null,GZ,x0=null,yZ=0,s0;var tZ=q0(()=>{Fz();CZ=K0(b0(),1),GZ=new Set;s0={update(J){let Z=$0;if($0=J(Z),$0===Z)return;if(Z===null!==($0===null))bZ();else Kz()},clear(){s0.update(()=>null)},read(){return $0},subscribe(J){return GZ.add(J),()=>{GZ.delete(J)}},getSnapshot(){return $0},getPresenceSnapshot(){return $0!==null},resetForTesting(){if(x0!==null)clearTimeout(x0),x0=null;$0=null,yZ=0,GZ.clear()}}});function _Z(J){let Z=Math.floor(J/2);return{leftCols:Z,panelCols:J-Z}}function eZ(J,Z,Q){let{leftCols:z}=_Z(J);return[{lo:0,hi:z-1,rowHi:Z},{lo:z+(Q?Oz:0)+sZ,hi:J-1-sZ,rowHi:Z}]}function ZJ(J){return J>=120}var Oz=1,sZ=1;var vZ=()=>{};function WJ({mode:J,left:Z,bottom:Q,modal:z,panel:X,rows:W,columns:q,scrollRef:H}){let V=X!=null&&J==="split",[F]=JJ(),B=zJ(F).sidePanelBackground,N=!B,C=g0.useRef(null),[U,S]=g0.useState(()=>Math.max(1,W-jz));if(g0.useLayoutEffect(()=>{if(!V)return;let w=C.current;if(!w)return;let P=XJ(w).height;if(P>0)S((j)=>j===P?j:P)}),g0.useLayoutEffect(()=>{if(!V){BZ(null);return}return BZ(eZ(q,U-1,N)),()=>BZ(null)},[V,q,U,N]),z==null&&X==null)return T(E0,{children:[Z,Q]});let l=(w,P)=>{let j=P?0:Uz,M=P?0:1;return Y(kZ,{value:{rows:W-j-M,columns:q-4,scrollRef:H},children:T(D,{position:"absolute",bottom:0,left:0,right:0,height:P?W:void 0,maxHeight:W-j,flexDirection:"column",overflow:"hidden",opaque:!0,children:[P?null:Y(D,{flexShrink:0,children:Y(p,{color:"permission",children:"▔".repeat(q)})}),Y(D,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:w})]})})},_=z==null?null:l(z,!1);if(V){let{leftCols:w,panelCols:P}=_Z(q);return T(D,{flexDirection:"column",flexGrow:1,width:"100%",overflow:"hidden",children:[T(D,{ref:C,flexDirection:"row",flexGrow:1,width:"100%",overflow:"hidden",children:[Y(QJ,{value:{columns:w,rows:U},children:Y(D,{flexDirection:"column",width:w,flexShrink:0,overflow:"hidden",children:Z})}),Y(kZ,{value:{rows:U,columns:P-(N?1:0),scrollRef:H},children:Y(D,{flexDirection:"column",width:P,flexShrink:0,overflow:"hidden",borderStyle:N?"single":void 0,borderTop:!1,borderBottom:!1,borderRight:!1,borderColor:"subtle",backgroundColor:B?B:void 0,children:Y(D,{flexDirection:"column",flexShrink:0,overflow:"hidden",children:X})})})]}),Q,_]})}return T(E0,{children:[Z,Q,X==null?null:l(X,J==="takeover"),_]})}var g0,Uz=2,jz=6;var qJ=q0(()=>{Pz();wz();Nz();I0();Az();vZ();G0();g0=K0(b0(),1)});function BJ(J){let Z=LZ.c(6),{children:Q}=J,[z,X]=O0.useState(null),[W,q]=O0.useState(null),H;if(Z[0]!==Q||Z[1]!==W)H=Y(HJ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=H;else H=Z[2];let V;if(Z[3]!==z||Z[4]!==H)V=Y(VJ.Provider,{value:X,children:Y(GJ.Provider,{value:q,children:Y(YJ.Provider,{value:z,children:H})})}),Z[3]=z,Z[4]=H,Z[5]=V;else V=Z[5];return V}function LJ(){return O0.useContext(YJ)}function FJ(){return O0.useContext(HJ)}function W8(J){let Z=LZ.c(8),Q=O0.useContext(VJ),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];O0.useEffect(z,X),O0.useEffect(W,q)}function q8(J){let Z=LZ.c(8),Q=O0.useContext(GJ),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];O0.useEffect(z,X),O0.useEffect(W,q)}var LZ,O0,YJ,VJ,HJ,GJ;var KJ=q0(()=>{G0();LZ=K0(u0(),1),O0=K0(b0(),1),YJ=O0.createContext(null),VJ=O0.createContext(null),HJ=O0.createContext(null),GJ=O0.createContext(null)});function FZ(J){return J.type==="attachment"&&Mz.has(J.attachment.type)}var Dz,Mz;var IZ=q0(()=>{Dz=["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","bagel_console","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile","container_transition"],Mz=new Set(Dz)});import{fileURLToPath as _z}from"url";function C8(J){let[Z,Q]=Y0.useState(null),z=Y0.useRef(J);z.current=J;let X=Y0.useRef(null),W=Y0.useCallback(()=>{Q(null)},[]),q=Y0.useCallback((F)=>{let B=Math.max(0,F.getScrollHeight()-F.getViewportHeight());if(F.getScrollTop()+F.getPendingDelta()>=B)return;if(X.current===null)X.current=F.getScrollHeight(),Q(z.current)},[]),H=Y0.useCallback((F)=>{if(!F)return;F.scrollToBottom()},[]);Y0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let V=Y0.useCallback((F,B)=>{if(Q((N)=>N===null?null:N+F),X.current!==null)X.current+=B},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:H,shiftDivider:V}}function vz(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"&&!kz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function kz(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 y8(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||FZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=vz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function _8(J){let Z=l0.c(48),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:H,panel:V,scrollRef:F,dividerYRef:B,hidePill:N,hideSticky:C,newMessageCount:U,onPillClick:S}=J,l=N===void 0?!1:N,_=C===void 0?!1:C,w=U===void 0?0:U,{rows:P,columns:j}=OZ(),[M,E]=Y0.useState(null),R;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))R={setStickyPrompt:E},Z[0]=R;else R=Z[0];let Z0=R,y;if(Z[1]!==F)y=(n)=>F?.current?.subscribe(n)??Tz,Z[1]=F,Z[2]=y;else y=Z[2];let x=y,Q0;if(Z[3]!==B||Z[4]!==F)Q0=()=>{let n=F?.current,i=B?.current;if(!n||i==null)return!1;return n.getScrollTop()+n.getPendingDelta()+n.getViewportHeight()<i},Z[3]=B,Z[4]=F,Z[5]=Q0;else Q0=Z[5];let B0=Y0.useSyncExternalStore(x,Q0),r;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))r=[],Z[6]=r;else r=Z[6];if(Y0.useLayoutEffect(Iz,r),e0()){let n=_?null:M,i=n!=null&&n!=="clicked"&&X==null?n:null,j0=n!=null&&X==null,g;if(Z[7]!==i)g=i&&Y(Rz,{text:i.text,onClick:i.scrollTo}),Z[7]=i,Z[8]=g;else g=Z[8];let o=j0?0:1,t;if(Z[9]!==Q)t=Y(SZ,{value:Z0,children:Q}),Z[9]=Q,Z[10]=t;else t=Z[10];let W0;if(Z[11]!==X||Z[12]!==F||Z[13]!==t||Z[14]!==o)W0=T(MJ,{ref:F,flexGrow:1,flexDirection:"column",paddingTop:o,stickyScroll:!0,children:[t,X]}),Z[11]=X,Z[12]=F,Z[13]=t,Z[14]=o,Z[15]=W0;else W0=Z[15];let v;if(Z[16]!==l||Z[17]!==w||Z[18]!==S||Z[19]!==X||Z[20]!==B0)v=!l&&B0&&X==null&&Y(hz,{count:w,onClick:S}),Z[16]=l,Z[17]=w,Z[18]=S,Z[19]=X,Z[20]=B0,Z[21]=v;else v=Z[21];let z0;if(Z[22]!==W)z0=W!=null&&Y(D,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=z0;else z0=Z[23];let w0;if(Z[24]!==W0||Z[25]!==v||Z[26]!==z0||Z[27]!==g)w0=T(D,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[g,W0,v,z0]}),Z[24]=W0,Z[25]=v,Z[26]=z0,Z[27]=g,Z[28]=w0;else w0=Z[28];let O,I;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))O=Y($z,{}),I=Y(xz,{}),Z[29]=O,Z[30]=I;else O=Z[29],I=Z[30];let h;if(Z[31]!==z)h=T(D,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[O,I,Y(D,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=h;else h=Z[32];let L0,N0=V==null?"anchored":ZJ(j)?"split":"takeover";return Y(BJ,{children:Y(WJ,{mode:N0,left:w0,bottom:h,modal:q,panel:V,rows:P,columns:j,scrollRef:H??null})})}let a;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)a=T(E0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=a;else a=Z[46];return a}function Iz(){if(!e0())return;let J=wJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Sz,()=>{J.onHyperlinkClick=void 0}}function Sz(J){if(J.startsWith("file:"))try{UJ(_z(J))}catch{}else jJ(J)}function Tz(){}function hz(J){let Z=l0.c(10),{count:Q,onClick:z}=J,[X,W]=Y0.useState(!1),q,H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),H=()=>W(!1),Z[0]=q,Z[1]=H;else q=Z[0],H=Z[1];let V=X?"userMessageBackgroundHover":"userMessageBackground",F;if(Z[2]!==Q)F=Q>0?`${Q} new ${KZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=F;else F=Z[3];let B;if(Z[4]!==V||Z[5]!==F)B=T(p,{backgroundColor:V,dimColor:!0,children:[" ",F," ",C0.arrowDown," "]}),Z[4]=V,Z[5]=F,Z[6]=B;else B=Z[6];let N;if(Z[7]!==z||Z[8]!==B)N=Y(D,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:Y(D,{onClick:z,onMouseEnter:q,onMouseLeave:H,children:B})}),Z[7]=z,Z[8]=B,Z[9]=N;else N=Z[9];return N}function Rz(J){let Z=l0.c(8),{text:Q,onClick:z}=J,[X,W]=Y0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",H,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=()=>W(!0),V=()=>W(!1),Z[0]=H,Z[1]=V;else H=Z[0],V=Z[1];let F;if(Z[2]!==Q)F=T(p,{color:"subtle",wrap:"truncate-end",children:[C0.pointer," ",Q]}),Z[2]=Q,Z[3]=F;else F=Z[3];let B;if(Z[4]!==z||Z[5]!==q||Z[6]!==F)B=Y(D,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:H,onMouseLeave:V,children:F}),Z[4]=z,Z[5]=q,Z[6]=F,Z[7]=B;else B=Z[7];return B}function $z(){let J=l0.c(4),Z=LJ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=Y(D,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:Y(DJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function xz(){let J=l0.c(2),Z=FJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=Y(D,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var l0,Y0,SZ;var EJ=q0(()=>{OJ();qJ();vZ();KJ();PJ();yz();Ez();I0();bz();AJ();NJ();IZ();Cz();G0();l0=K0(u0(),1),Y0=K0(b0(),1),SZ=Y0.createContext({setStickyPrompt:()=>{}})});function bJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var CJ=()=>{};function yJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${NZ}`))return!1;if(TZ(Z.text,wZ)!=="completed")return!1;return TZ(Z.text,AZ)?.startsWith(_J)??!1}function vJ(J,Z){if(!e0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(yJ(X)){let W=0;while(z<J.length&&yJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${NZ}><${wZ}>completed</${wZ}><${AZ}>${W} background commands completed</${AZ}></${NZ}>`}]}})}else Q.push(X),z++}return Q}var kJ=q0(()=>{uz();fz();AJ();PZ()});function IJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function SJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(IJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!IJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,H)=>q+H.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 TJ=()=>{};function hJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function RJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(hJ(z)){let X=0;while(Q<J.length&&hJ(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 $J=()=>{};function pz(J){let Z=xJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),xJ.set(J,Z);return Z}function hZ(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 uJ(J,Z,Q=!1){if(Q)return{messages:J};let z=pz(Z),X=new Map;for(let B of J){let N=hZ(B);if(N&&z.has(N.toolName)){let C=`${N.messageId}:${N.toolName}`,U=X.get(C)??[];U.push(B),X.set(C,U)}}let W=new Map,q=new Set;for(let[B,N]of X)if(N.length>=2){W.set(B,N);for(let C of N){let U=hZ(C);if(U)q.add(U.toolUseId)}}let H=new Map;for(let B of J)if(B.type==="user"){for(let N of B.message.content)if(N.type==="tool_result"&&q.has(N.tool_use_id))H.set(N.tool_use_id,B)}let V=[],F=new Set;for(let B of J){let N=hZ(B);if(N){let C=`${N.messageId}:${N.toolName}`,U=W.get(C);if(U){if(!F.has(C)){F.add(C);let S=U[0],l=[];for(let w of U){let P=w.message.content[0].id,j=H.get(P);if(j)l.push(j)}let _={type:"grouped_tool_use",toolName:N.toolName,messages:U,results:l,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:N.messageId};V.push(_)}continue}}if(B.type==="user"){let C=B.message.content.filter((U)=>U.type==="tool_result");if(C.length>0){if(C.every((S)=>q.has(S.tool_use_id)))continue}}V.push(B)}return{messages:V}}var xJ;var fJ=q0(()=>{xJ=new WeakMap});function UZ(J){let Z=cJ.get(J);if(Z!==void 0)return Z;let Q=dz(J).toLowerCase();return cJ.set(J,Q),Q}function dz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=dJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!dJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(gz(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[cz(W.input)];return[]}).join(`
3
+ `);break}case"attachment":{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(`
4
+ `)}break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(pJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+pJ.length),z=Q.indexOf("<system-reminder>")}return Q}function cz(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(`
5
+ `)}function gz(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?`
6
+ `+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(`
7
+ `))}return Q.join(`
8
+ `)}var pJ="</system-reminder>",dJ,cJ;var RZ=q0(()=>{PZ();dJ=new Set([gJ,mJ]),cJ=new WeakMap});function lJ(J){let Z=iJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(mz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=Y(p,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let H;if(Z[2]!==W||Z[3]!==q)H=Y(D,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=H;else H=Z[4];return H}function mz(J){return J.type==="text"}var iJ;var rJ=q0(()=>{nJ();I0();G0();iJ=K0(u0(),1)});function oJ(J){let Z=aJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(nz)))return null;let W,q,H;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=D,H=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=H;else W=Z[1],q=Z[2],H=Z[3];let V;if(Z[4]!==q)V=Y(p,{dimColor:!0,children:q}),Z[4]=q,Z[5]=V;else V=Z[5];let F;if(Z[6]!==W||Z[7]!==H||Z[8]!==V)F=Y(W,{minWidth:H,children:V}),Z[6]=W,Z[7]=H,Z[8]=V,Z[9]=F;else F=Z[9];return F}function nz(J){return J.type==="text"}var aJ;var tJ=q0(()=>{nJ();I0();G0();aJ=K0(u0(),1)});function qQ(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($Z(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],H=q?.type==="tool_use"?q.input:void 0;if($Z(W.toolName,H,Q).isCollapsible)continue}return!0}return!1}function lz(J){let Z=XQ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:H,inProgressToolUseIDs:V,streamingToolUseIDs:F,screen:B,canAnimate:N,lastThinkingBlockId:C,latestBashOutputUUID:U,columns:S,isLoading:l,lookups:_}=J,w=B==="transcript",P=Q.type==="grouped_tool_use",j=Q.type==="collapsed_read_search",M;if(Z[0]!==X||Z[1]!==V||Z[2]!==j||Z[3]!==l||Z[4]!==Q)M=j&&(xZ(Q,V)||l&&!X),Z[0]=X,Z[1]=V,Z[2]=j,Z[3]=l,Z[4]=Q,Z[5]=M;else M=Z[5];let E=M,R;if(Z[6]!==j||Z[7]!==P||Z[8]!==Q)R=P?Q.displayMessage:j?eJ(Q):Q,Z[6]=j,Z[7]=P,Z[8]=Q,Z[9]=R;else R=Z[9];let Z0=R,y;if(Z[10]!==j||Z[11]!==P||Z[12]!==_||Z[13]!==Q)y=P||j?[]:LQ(Q,_),Z[10]=j,Z[11]=P,Z[12]=_,Z[13]=Q,Z[14]=y;else y=Z[14];let x=y,Q0;if(Z[15]!==V||Z[16]!==j||Z[17]!==P||Z[18]!==_||Z[19]!==Q||Z[20]!==B||Z[21]!==F){let v=P||j?sJ:BQ(Q,_);Q0=HQ(Q,F,V,v,B,_),Z[15]=V,Z[16]=j,Z[17]=P,Z[18]=_,Z[19]=Q,Z[20]=B,Z[21]=F,Z[22]=Q0}else Q0=Z[22];let B0=Q0,r=!1;if(N)if(P){let v;if(Z[23]!==V||Z[24]!==Q.messages){let z0;if(Z[26]!==V)z0=(w0)=>{let O=w0.message.content[0];return O?.type==="tool_use"&&V.has(O.id)},Z[26]=V,Z[27]=z0;else z0=Z[27];v=Q.messages.some(z0),Z[23]=V,Z[24]=Q.messages,Z[25]=v}else v=Z[25];r=v}else if(j){let v;if(Z[28]!==V||Z[29]!==Q)v=xZ(Q,V),Z[28]=V,Z[29]=Q,Z[30]=v;else v=Z[30];r=v}else{let v;if(Z[31]!==V||Z[32]!==Q){let z0=m0(Q);v=!z0||V.has(z0),Z[31]=V,Z[32]=Q,Z[33]=v}else v=Z[33];r=v}let a;if(Z[34]!==Z0||Z[35]!==w)a=w&&Z0.type==="assistant"&&Z0.message.content.some(rz)&&(Z0.timestamp||Z0.message.model),Z[34]=Z0,Z[35]=w,Z[36]=a;else a=Z[36];let n=a,i=!n,j0=n?void 0:S,g;if(Z[37]!==q||Z[38]!==V||Z[39]!==E||Z[40]!==B0||Z[41]!==w||Z[42]!==z||Z[43]!==C||Z[44]!==U||Z[45]!==_||Z[46]!==Q||Z[48]!==x||Z[49]!==r||Z[50]!==i||Z[51]!==j0||Z[52]!==W||Z[53]!==H)g=Y(zQ,{message:Q,lookups:_,addMargin:i,containerWidth:j0,tools:W,commands:q,verbose:H,inProgressToolUseIDs:V,progressMessagesForMessage:x,shouldAnimate:r,shouldShowDot:!0,isTranscriptMode:w,isStatic:B0,isActiveCollapsedGroup:E,isUserContinuation:z,lastThinkingBlockId:C,latestBashOutputUUID:U}),Z[37]=q,Z[38]=V,Z[39]=E,Z[40]=B0,Z[41]=w,Z[42]=z,Z[43]=C,Z[44]=U,Z[45]=_,Z[46]=Q,Z[48]=x,Z[49]=r,Z[50]=i,Z[51]=j0,Z[52]=W,Z[53]=H,Z[54]=g;else g=Z[54];let o=g;if(!n){let v;if(Z[55]!==o)v=Y(ZZ,{children:o}),Z[55]=o,Z[56]=v;else v=Z[56];return v}let t;if(Z[57]!==Z0||Z[58]!==w)t=T(D,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[Y(oJ,{message:Z0,isTranscriptMode:w}),Y(lJ,{message:Z0,isTranscriptMode:w})]}),Z[57]=Z0,Z[58]=w,Z[59]=t;else t=Z[59];let W0;if(Z[60]!==S||Z[61]!==o||Z[62]!==t)W0=Y(ZZ,{children:T(D,{width:S,flexDirection:"column",children:[t,o]})}),Z[60]=S,Z[61]=o,Z[62]=t,Z[63]=W0;else W0=Z[63];return W0}function rz(J){return J.type==="text"}function az(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 uZ(J).some((X)=>Z.has(X));let Q=m0(J);return!!Q&&Z.has(Q)}function oz(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 uZ(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=m0(J);return!Q||Z.has(Q)}function tz(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&&QQ(Z.message))return!1;let X=az(J.message,J.streamingToolUseIDs),W=oz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var XQ,WQ,YQ;var VQ=q0(()=>{I0();ZQ();PZ();iz();rJ();GQ();tJ();JQ();G0();XQ=K0(u0(),1),WQ=K0(b0(),1);YQ=WQ.memo(lz,tz)});import{relative as XX}from"path";function AQ(J){return BX.filter((Z)=>Z.isActive(J))}var WX,qX,YX,VX,HX,GX,BX;var PQ=q0(()=>{I0();jQ();OJ();ez();sz();ZX();zX();QX();JX();G0();WX={id:"large-memory-files",type:"warning",isActive:(J)=>gZ(J.memoryFiles).length>0,render:(J)=>{let Z=gZ(J.memoryFiles);return Y(E0,{children:Z.map((Q)=>{let z=Q.path.startsWith(fZ())?XX(fZ(),Q.path):Q.path;return T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Large ",Y(p,{bold:!0,children:z})," will impact performance (",JZ(Q.content.length)," chars >"," ",JZ(UQ),")",Y(p,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},qX={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=QZ();return KQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=QZ();return T(D,{flexDirection:"row",marginTop:1,children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},YX={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!FQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return T(D,{flexDirection:"row",marginTop:1,children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},VX={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return T(D,{flexDirection:"column",marginTop:1,children:[T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),T(D,{flexDirection:"column",marginLeft:3,children:[T(p,{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"]}),T(p,{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.`]})]})]})}},HX={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return cZ(J.agentDefinitions)>dZ},render:(J)=>{let Z=cZ(J.agentDefinitions);return T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",JZ(Z)," tokens >"," ",JZ(dZ),")",Y(p,{dimColor:!0,children:" · /agents to manage"})]})]})}},GX={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!NQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=pZ();return Q!==null&&!OQ(Q)},render:()=>{let J=pZ(),Z=wQ(J);return T(D,{flexDirection:"row",gap:1,marginLeft:1,children:[Y(p,{color:"ide",children:C0.arrowUp}),T(p,{children:["Install the ",Y(p,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",Y(p,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},BX=[WX,HX,qX,YX,VX,GX]});async function LX(){if(XZ)return XZ;return XZ=CQ().then((J)=>{WZ=J}).finally(()=>{XZ=null}),XZ}function EQ(J){let Z=MQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(WZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(WZ.length>0){X(WZ);return}LX().then(()=>{X(WZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let H={config:DZ(),agentDefinitions:Q,memoryFiles:z},V=AQ(H);if(V.length===0)return null;let F=D,B="column",N=1,C=V.map((S)=>Y(r0.Fragment,{children:S.render(H)},S.id)),U;if(Z[1]!==F||Z[2]!==C)U=Y(F,{flexDirection:B,paddingLeft:N,children:C}),Z[1]=F,Z[2]=C,Z[3]=U;else U=Z[3];return U}var MQ,r0,WZ,XZ=null;var bQ=q0(()=>{I0();jQ();DQ();PQ();G0();MQ=K0(u0(),1),r0=K0(b0(),1),WZ=[]});function yQ(J,Z,Q=200,z=50){let X=Z.current,W=X?J.findIndex((V)=>V.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 H=J[q];if(H&&(X?.uuid!==H.uuid||X.idx!==q))Z.current={uuid:H.uuid,idx:q};else if(!H&&X)Z.current=null;return q}var _Q=()=>{};function vQ(J,Z,Q){let z=c.useRef(new Map),X=c.useRef(0),W=c.useRef(0),q=c.useRef({arr:new Float64Array(0),version:-1,n:-1}),H=c.useRef(new Map),V=c.useRef(new Map),F=c.useRef(Q),B=c.useRef(!1),N=c.useRef(null),C=c.useRef(0);if(F.current!==Q){let O=F.current/Q;F.current=Q;for(let[I,h]of z.current)z.current.set(I,Math.max(1,Math.round(h*O)));X.current++,B.current=!0,C.current=2}let U=C.current>0?N.current:null,S=c.useRef(0),l=c.useRef(null),_=c.useCallback((O)=>J.current?.subscribe(O)??NX,[J]);c.useSyncExternalStore(_,()=>{let O=J.current;if(!O)return NaN;let I=O.getScrollTop()+O.getPendingDelta(),h=Math.floor(I/OX);return O.isSticky()?~h:h});let w=J.current?.getScrollTop()??-1,P=J.current?.getPendingDelta()??0,j=J.current?.getViewportHeight()??0,M=J.current?.isSticky()??!0;c.useMemo(()=>{let O=new Set(Z),I=!1;for(let h of z.current.keys())if(!O.has(h))z.current.delete(h),I=!0;for(let h of V.current.keys())if(!O.has(h))V.current.delete(h);if(I)X.current++},[Z]);let E=Z.length;if(q.current.version!==X.current||q.current.n!==E){let O=q.current.arr.length>=E+1?q.current.arr:new Float64Array(E+1);O[0]=0;for(let I=0;I<E;I++)O[I+1]=O[I]+(z.current.get(Z[I])??FX);q.current={arr:O,version:X.current,n:E}}let R=q.current.arr,Z0=R[E],y,x;if(U)[y,x]=U,y=Math.min(y,E),x=Math.min(x,E);else if(j===0||w<0)y=Math.max(0,E-KX),x=E;else{if(M){let J0=j+a0;y=E;while(y>0&&Z0-R[y-1]<J0)y--;x=E}else{let J0=S.current,V0=j*3,f0=Math.min(w,w+P),S0=Math.max(w,w+P),P0=S0-f0,T0=P0>V0?P<0?S0-V0:f0:f0,h0=T0+Math.min(P0,V0),p0=Math.max(0,T0-J0),d0=h0-J0,y0=p0-a0;{let G=0,K=E;while(G<K){let A=G+K>>1;if(R[A+1]<=y0)G=A+1;else K=A}y=G}{let G=N.current;if(G&&G[0]<y)for(let K=G[0];K<Math.min(y,G[1]);K++){let A=Z[K];if(H.current.has(A)&&!z.current.has(A)){y=K;break}}}let i0=j+2*a0,o0=Math.min(E,y+qZ),_0=0;x=y;while(x<o0&&(_0<i0||R[x]<d0+j+a0))_0+=z.current.get(Z[x])??mZ,x++}let O=j+2*a0,I=Math.max(0,x-qZ),h=0;for(let J0=y;J0<x;J0++)h+=z.current.get(Z[J0])??mZ;while(y>I&&h<O)y--,h+=z.current.get(Z[y])??mZ;let L0=N.current,N0=Math.abs(w-W.current)+Math.abs(P);if(L0&&N0>j*2){let[J0,V0]=L0;if(y<J0-YZ)y=J0-YZ;if(x>V0+YZ)x=V0+YZ;if(y>x)x=Math.min(y+YZ,E)}W.current=w}if(C.current>0)C.current--;else N.current=[y,x];let Q0=c.useDeferredValue(y),B0=c.useDeferredValue(x),r=y<Q0?Q0:y,a=x>B0?B0:x;if(r>a||M)r=y,a=x;if(P>0)a=x;if(a-r>qZ){let O=(R[r]+R[a])/2;if(w-S.current<O)a=r+qZ;else r=a-qZ}let n=S.current,i=R[r],j0=r===0?0:i+n,g=a===E?1/0:Math.max(i,R[a]-j)+n;c.useLayoutEffect(()=>{if(M)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(j0,g)}),c.useLayoutEffect(()=>{let O=l.current?.yogaNode;if(O&&O.getComputedWidth()>0)S.current=O.getComputedTop();if(B.current){B.current=!1;return}let I=!1;for(let[h,L0]of H.current){let N0=L0.yogaNode;if(!N0)continue;let J0=N0.getComputedHeight(),V0=z.current.get(h);if(J0>0){if(V0!==J0)z.current.set(h,J0),I=!0}else if(N0.getComputedWidth()>0&&V0!==0)z.current.set(h,0),I=!0}if(I)X.current++});let o=c.useCallback((O)=>{let I=V.current.get(O);if(!I)I=(h)=>{if(h)H.current.set(O,h);else{let L0=H.current.get(O)?.yogaNode;if(L0&&!B.current){let N0=L0.getComputedHeight();if((N0>0||L0.getComputedWidth()>0)&&z.current.get(O)!==N0)z.current.set(O,N0),X.current++}H.current.delete(O)}},V.current.set(O,I);return I},[]),t=c.useCallback((O)=>{let I=H.current.get(Z[O])?.yogaNode;if(!I||I.getComputedWidth()===0)return-1;return I.getComputedTop()},[Z]),W0=c.useCallback((O)=>H.current.get(Z[O])??null,[Z]),v=c.useCallback((O)=>z.current.get(Z[O]),[Z]),z0=c.useCallback((O)=>{let I=q.current;if(O<0||O>=I.n)return;J.current?.scrollTo(I.arr[O]+S.current)},[J]),w0=Z0-R[a];return{range:[r,a],topSpacer:i,bottomSpacer:w0,measureRef:o,spacerRef:l,offsets:R,getItemTop:t,getItemElement:W0,getItemHeight:v,scrollToIndex:z0}}var c,FX=3,a0=80,KX=30,OX,mZ=1,qZ=300,YZ=25,NX=()=>{};var kQ=q0(()=>{c=K0(b0(),1),OX=a0>>1});function UX(J){let Z=IQ.get(J);if(Z!==void 0)return Z;let Q=UZ(J);return IQ.set(J,Q),Q}function DX(J){let Z=SQ.get(J);if(Z!==void 0)return Z;let Q=MX(J);return SQ.set(J,Q),Q}function MX(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(`
9
+ `)}if(Z===null)return null;let Q=xQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function EX(J){let Z=fQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:H,clickable:V,onClickK:F,onEnterK:B,onLeaveK:N,renderItem:C}=J,U;if(Z[0]!==Q||Z[1]!==W)U=W(Q),Z[0]=Q,Z[1]=W,Z[2]=U;else U=Z[2];let S=q?"userMessageBackgroundHover":void 0,l=q?1:void 0,_;if(Z[3]!==V||Z[4]!==z||Z[5]!==F)_=V?(Z0)=>F(z,Z0.cellIsBlank):void 0,Z[3]=V,Z[4]=z,Z[5]=F,Z[6]=_;else _=Z[6];let w;if(Z[7]!==V||Z[8]!==Q||Z[9]!==B)w=V?()=>B(Q):void 0,Z[7]=V,Z[8]=Q,Z[9]=B,Z[10]=w;else w=Z[10];let P;if(Z[11]!==V||Z[12]!==Q||Z[13]!==N)P=V?()=>N(Q):void 0,Z[11]=V,Z[12]=Q,Z[13]=N,Z[14]=P;else P=Z[14];let j=H&&!q?"text":void 0,M;if(Z[15]!==X||Z[16]!==z||Z[17]!==C)M=C(z,X),Z[15]=X,Z[16]=z,Z[17]=C,Z[18]=M;else M=Z[18];let E;if(Z[19]!==j||Z[20]!==M)E=Y(hQ.Provider,{value:j,children:M}),Z[19]=j,Z[20]=M,Z[21]=E;else E=Z[21];let R;if(Z[22]!==U||Z[23]!==S||Z[24]!==l||Z[25]!==_||Z[26]!==w||Z[27]!==P||Z[28]!==E)R=Y(D,{ref:U,flexDirection:"column",backgroundColor:S,paddingBottom:l,onClick:_,onMouseEnter:w,onMouseLeave:P,children:E}),Z[22]=U,Z[23]=S,Z[24]=l,Z[25]=_,Z[26]=w,Z[27]=P,Z[28]=E,Z[29]=R;else R=Z[29];return R}function pQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:H,extractSearchText:V=UX,trackStickyPrompt:F,selectedIndex:B,cursorNavRef:N,setCursor:C,jumpRef:U,onSearchMatchesChange:S,scanElement:l,setPositions:_}){let w=k.useRef([]),P=k.useRef(J),j=k.useRef(z);if(j.current!==z||J.length<w.current.length||J[0]!==P.current[0])w.current=J.map((G)=>z(G));else for(let G=w.current.length;G<J.length;G++)w.current.push(z(J[G]));P.current=J,j.current=z;let M=w.current,{range:E,topSpacer:R,bottomSpacer:Z0,measureRef:y,spacerRef:x,offsets:Q0,getItemTop:B0,getItemElement:r,getItemHeight:a,scrollToIndex:n}=vQ(Z,M,Q),[i,j0]=E,g=k.useCallback((G)=>{if(a(G)===0)return!1;return RQ(J[G])},[a,J]);k.useImperativeHandle(N,()=>{let G=(u)=>C?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:$Q(u)?.name}),K=B??-1,A=(u,m,s=g)=>{for(let d=u;d>=0&&d<J.length;d+=m)if(s(d))return G(J[d]),!0;return!1},$=(u)=>g(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,$),navigatePrev:()=>A(K-1,-1),navigateNext:()=>{if(A(K+1,1))return;Z.current?.scrollToBottom(),C?.(null)},navigatePrevUser:()=>A(K-1,-1,$),navigateNextUser:()=>A(K+1,1,$),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>K>=0?J[K]??null:null}},[J,B,C,g]);let o=k.useRef({offsets:Q0,start:i,getItemElement:r,getItemTop:B0,messages:J,scrollToIndex:n});o.current={offsets:Q0,start:i,getItemElement:r,getItemTop:B0,messages:J,scrollToIndex:n},k.useEffect(()=>{if(B===void 0)return;let G=o.current,K=G.getItemElement(B);if(K)Z.current?.scrollToElement(K,1);else G.scrollToIndex(B)},[B,Z]);let t=k.useRef(null),W0=k.useRef({msgIdx:-1,positions:[]}),v=k.useRef(-1),z0=k.useRef(0),w0=k.useRef(0),O=k.useRef(()=>{}),I=k.useRef(()=>{}),h=k.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),L0=k.useRef(-1),N0=k.useRef(!1);function J0(G){let K=o.current.getItemTop(G);return Math.max(0,K-nZ)}function V0(G){let K=Z.current,{msgIdx:A,positions:$}=W0.current;if(!K||$.length===0||A<0){_?.(null);return}let u=Math.max(0,Math.min(G,$.length-1)),m=$[u],s=o.current.getItemTop(A),d=K.getViewportTop(),X0=s-K.getScrollTop(),R0=K.getViewportHeight(),A0=d+X0+m.row;if(A0<d||A0>=d+R0)K.scrollTo(Math.max(0,s+m.row-nZ)),X0=s-K.getScrollTop(),A0=d+X0+m.row;_?.({positions:$,rowOffset:d+X0,currentIdx:u});let M0=h.current,U0=M0.prefixSum.at(-1)??0,D0=(M0.prefixSum[M0.ptr]??0)+u+1;S?.(U0,D0),n0(`highlight(i=${A}, ord=${u}/${$.length}): pos={row:${m.row},col:${m.col}} lo=${X0} screenRow=${A0} badge=${D0}/${U0}`)}I.current=V0;let[f0,S0]=k.useState(0),P0=k.useCallback(()=>S0((G)=>G+1),[]);k.useEffect(()=>{let G=t.current;if(!G)return;let{idx:K,wantLast:A,tries:$}=G,u=Z.current;if(!u)return;let{getItemElement:m,getItemTop:s,scrollToIndex:d}=o.current,X0=m(K),R0=X0?.yogaNode?.getComputedHeight()??0;if(!X0||R0===0){if($>1){t.current=null,n0(`seek(i=${K}): no mount after scrollToIndex, skip`),O.current(A?-1:1);return}t.current={idx:K,wantLast:A,tries:$+1},d(K),P0();return}t.current=null,u.scrollTo(Math.max(0,s(K)-nZ));let A0=l?.(X0)??[];if(W0.current={msgIdx:K,positions:A0},n0(`seek(i=${K} t=${$}): ${A0.length} positions`),A0.length===0){if(++z0.current>20){z0.current=0;return}O.current(A?-1:1);return}z0.current=0;let M0=A?A0.length-1:0;h.current.screenOrd=M0,v.current=-1,I.current(M0);let U0=w0.current;if(U0)w0.current=0,O.current(U0)},[f0]);function T0(G,K){let A=Z.current;if(!A)return;let $=o.current,{getItemElement:u,scrollToIndex:m}=$;if(G<0||G>=$.messages.length)return;_?.(null),W0.current={msgIdx:-1,positions:[]},t.current={idx:G,wantLast:K,tries:0};let s=u(G),d=s?.yogaNode?.getComputedHeight()??0;if(s&&d>0)A.scrollTo(J0(G));else m(G);P0()}function h0(G){let K=h.current,{matches:A,prefixSum:$}=K,u=$.at(-1)??0;if(A.length===0)return;if(t.current){w0.current=G;return}if(v.current<0)v.current=K.ptr;let{positions:m}=W0.current,s=K.screenOrd+G;if(s>=0&&s<m.length){K.screenOrd=s,V0(s),v.current=-1;return}let d=(K.ptr+G+A.length)%A.length;if(d===v.current){_?.(null),v.current=-1,n0(`step: wraparound at ptr=${d}, all ${A.length} msgs phantoms`);return}K.ptr=d,K.screenOrd=0,T0(A[d],G<0);let X0=G<0?$[d+1]??u:$[d]+1;S?.(u,X0)}O.current=h0,k.useImperativeHandle(U,()=>({jumpToIndex:(G)=>{let K=Z.current;if(K)K.scrollTo(J0(G))},setSearchQuery:(G)=>{t.current=null,W0.current={msgIdx:-1,positions:[]},v.current=-1,_?.(null);let K=G.toLowerCase(),A=[],$=[0];if(K){let U0=o.current.messages;for(let D0=0;D0<U0.length;D0++){let v0=V(U0[D0]),L=v0.indexOf(K),b=0;while(L>=0)b++,L=v0.indexOf(K,L+K.length);if(b>0)A.push(D0),$.push($.at(-1)+b)}}let u=$.at(-1),m=0,s=Z.current,{offsets:d,start:X0,getItemTop:R0}=o.current,A0=R0(X0),M0=A0>=0?A0-d[X0]:0;if(A.length>0&&s){let U0=L0.current>=0?L0.current:s.getScrollTop(),D0=1/0;for(let v0=0;v0<A.length;v0++){let L=Math.abs(M0+d[A[v0]]-U0);if(L<=D0)D0=L,m=v0}n0(`setSearchQuery('${G}'): ${A.length} msgs · ptr=${m} msgIdx=${A[m]} curTop=${U0} origin=${M0}`)}if(h.current={matches:A,ptr:m,screenOrd:0,prefixSum:$},A.length>0)T0(A[m],!0);else if(L0.current>=0&&s)s.scrollTo(L0.current);S?.(u,A.length>0?$[m+1]??u:0)},nextMatch:()=>h0(1),prevMatch:()=>h0(-1),setAnchor:()=>{let G=Z.current;if(G)L0.current=G.getScrollTop()},disarmSearch:()=>{_?.(null),t.current=null,W0.current={msgIdx:-1,positions:[]},v.current=-1},warmSearchIndex:async()=>{if(N0.current)return 0;let G=o.current.messages,K=500,A=0,$=performance.now();for(let m=0;m<G.length;m+=K){await TQ(0);let s=performance.now(),d=Math.min(m+K,G.length);for(let X0=m;X0<d;X0++)V(G[X0]);A+=performance.now()-s}let u=Math.round(performance.now()-$);return n0(`warmSearchIndex: ${G.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(G.length/K)}`),N0.current=!0,Math.round(A)}}),[Z]);let[p0,d0]=k.useState(null),y0=k.useRef({onItemClick:W,setHoveredKey:d0});y0.current={onItemClick:W,setHoveredKey:d0};let i0=k.useCallback((G,K)=>{let A=y0.current;if(!K&&A.onItemClick)A.onItemClick(G)},[]),o0=k.useCallback((G)=>{y0.current.setHoveredKey(G)},[]),_0=k.useCallback((G)=>{y0.current.setHoveredKey((K)=>K===G?null:K)},[]);return T(E0,{children:[Y(D,{ref:x,height:R,flexShrink:0}),J.slice(i,j0).map((G,K)=>{let A=i+K,$=M[A],u=!!W&&(q?.(G)??!0),m=u&&p0===$,s=H?.(G);return Y(EX,{itemKey:$,msg:G,idx:A,measureRef:y,expanded:s,hovered:m,clickable:u,onClickK:i0,onEnterK:o0,onLeaveK:_0,renderItem:X},$)}),Z0>0&&Y(D,{height:Z0,flexShrink:0}),F&&Y(CX,{messages:J,start:i,end:j0,offsets:Q0,getItemTop:B0,getItemElement:r,scrollRef:Z})]})}function CX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:H}=k.useContext(SZ),V=k.useCallback((M)=>q.current?.subscribe(M)??bX,[q]);k.useSyncExternalStore(V,()=>{let M=q.current;if(!M)return NaN;let E=M.getScrollTop()+M.getPendingDelta();return M.isSticky()?-1-E:E});let F=q.current?.isSticky()??!0,B=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),N=Z,C=-1;for(let M=Q-1;M>=Z;M--){let E=X(M);if(E>=0){if(E<B)break;C=E}N=M}let U=-1,S=null;if(N>0&&!F)for(let M=N-1;M>=0;M--){let E=DX(J[M]);if(E===null)continue;let R=X(M);if(R>=0&&R+1>=B)continue;U=M,S=E;break}let l=C>=0?C-z[N]:0,_=U>=0?Math.max(0,l+z[U]):-1,w=k.useRef({idx:-1,tries:0}),P=k.useRef("none"),j=k.useRef(-1);return k.useEffect(()=>{if(w.current.idx>=0)return;if(P.current==="armed"){P.current="force";return}let M=P.current==="force";if(P.current="none",!M&&j.current===U)return;if(j.current=U,S===null){H(null);return}let E=S.trimStart(),R=E.search(/\n\s*\n/),Z0=(R>=0?E.slice(0,R):E).slice(0,jX).replace(/\s+/g," ").trim();if(Z0===""){H(null);return}let y=U,x=_;H({text:Z0,scrollTo:()=>{H("clicked"),P.current="armed";let Q0=W(y);if(Q0)q.current?.scrollToElement(Q0,1);else q.current?.scrollTo(x),w.current={idx:y,tries:0}}})}),k.useEffect(()=>{if(w.current.idx<0)return;let M=W(w.current.idx);if(M)q.current?.scrollToElement(M,1),w.current={idx:-1,tries:0};else if(++w.current.tries>5)w.current={idx:-1,tries:0}}),null}var fQ,k,nZ=3,IQ,jX=500,SQ,bX=()=>{};var dQ=q0(()=>{kQ();I0();PX();EJ();wX();AX();RZ();uQ();G0();fQ=K0(u0(),1),k=K0(b0(),1),IQ=new WeakMap;SQ=new WeakMap});function cQ(J){return(J.type==="assistant"||J.type==="user"?m0(J):null)??J.uuid}function mX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function HQ(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 H=J.message.content[0];if(H?.type==="server_tool_use")return W.resolvedToolUseIDs.has(H.id)}let q=m0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(Bz(q,"PostToolUse",W))return!1;return bJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((H)=>{let V=H.message.content[0];return V?.type==="tool_use"&&W.resolvedToolUseIDs.has(V.id)});case"collapsed_read_search":return!1}return!1}var Wz,VZ,f,dX,iZ=30,cX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:H,conversationId:V,screen:F,streamingToolUses:B,showAllInTranscript:N=!1,agentDefinitions:C,hideLogo:U=!1,isLoading:S,hidePastThinking:l=!1,streamingThinking:_,hasStreamingText:w=!1,isBriefOnly:P=!1,unseenDivider:j,scrollRef:M,trackStickyPrompt:E,jumpRef:R,onSearchMatchesChange:Z0,scanElement:y,setPositions:x,disableRenderCap:Q0=!1,cursor:B0=null,setCursor:r,cursorNavRef:a,renderRange:n})=>{let{columns:i}=OZ(),j0=aQ("transcript:toggleShowAll","Transcript","Ctrl+E"),g=f.useMemo(()=>aZ(J).filter(qz),[J]),o=f.useMemo(()=>{if(!_)return!1;if(_.isStreaming)return!0;if(_.streamingEndedAt)return Date.now()-_.streamingEndedAt<30000;return!1},[_]),t=f.useMemo(()=>{if(!l)return null;if(o)return"streaming";for(let L=g.length-1;L>=0;L--){let b=g[L];if(b?.type==="assistant"){let H0=b.message.content;for(let e=H0.length-1;e>=0;e--){let F0=H0[e];if(F0?.type==="thinking"&&!Qz(F0))return`${b.uuid}:${e}`}}else if(b?.type==="user"){if(!b.message.content.some((e)=>e.type==="tool_result"))return"no-thinking"}}return null},[g,l,o]),W0=f.useMemo(()=>{for(let L=g.length-1;L>=0;L--){let b=g[L];if(b?.type==="user"){let H0=b.message.content;for(let e of H0)if(e.type==="text"){let F0=e.text;if(F0.startsWith("<bash-stdout")||F0.startsWith("<bash-stderr"))return b.uuid}}}return null},[g]),v=f.useMemo(()=>Lz(g),[g]),z0=f.useMemo(()=>B.filter((L)=>!q.has(L.contentBlock.id)&&!v.has(L.contentBlock.id)),[B,q,v]),w0=f.useMemo(()=>z0.flatMap((L)=>{let b=zz({content:[L.contentBlock]});return b.uuid=iQ(L.contentBlock.id,0),aZ([b])}),[z0]),O=F==="transcript",I=f.useMemo(()=>mQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),h=M!=null&&!I,L0=O&&!N&&!h,N0=f.useRef(null),{collapsed:J0,lookups:V0,hasTruncatedMessages:f0,hiddenMessageCount:S0}=f.useMemo(()=>{let b=Vz(g.filter((t0)=>t0.type!=="progress").filter((t0)=>!FZ(t0)).filter((t0)=>Yz(t0,O)),w0),H0=L0?b.slice(-iZ):b,e=L0&&b.length>iZ,{messages:F0}=uJ(H0,Z,z),k0=vJ(SJ(RJ(Jz(sQ(F0,Z)))),z),HZ=Hz(g,H0),c0=b.length-iZ;return{collapsed:k0,lookups:HZ,hasTruncatedMessages:e,hiddenMessageCount:c0}},[z,g,O,w0,L0,Z,P]),P0=f.useMemo(()=>{let b=!h&&!Q0?yQ(J0,N0):0;return n?J0.slice(n[0],n[1]):b>0?J0.slice(b):J0},[J0,n,h,Q0]),T0=f.useMemo(()=>new Set(B.map((L)=>L.contentBlock.id)),[B]),h0=Xz((L)=>L.tasks),p0=V0.asyncLaunchedToolUseIDs,d0=f.useMemo(()=>{if(p0.size===0)return null;let L=new Set;for(let[b,H0]of p0){let e=h0?.[H0]?.status;if(e==="running"||e==="requested"||e==="queued")L.add(b)}return L.size>0?L:null},[h0,p0]),y0=V0.resolvedToolUseIDs,i0=f.useMemo(()=>Gz(q,y0,d0),[q,y0,d0]),o0=f.useMemo(()=>{if(!j)return-1;let L=j.firstUnseenUuid.slice(0,24);return P0.findIndex((b)=>b.uuid.slice(0,24)===L)},[j,P0]),_0=f.useMemo(()=>{if(!B0)return-1;return P0.findIndex((L)=>L.uuid===B0.uuid)},[B0,P0]),[G,K]=f.useState(()=>new Set),A=f.useCallback((L)=>{let b=cQ(L);K((H0)=>{let e=new Set(H0);if(e.has(b))e.delete(b);else e.add(b);return e})},[]),$=f.useCallback((L)=>G.size>0&&G.has(cQ(L)),[G]),u=f.useRef(V0);u.current=V0;let m=f.useCallback((L)=>{if(L.type==="collapsed_read_search")return!0;if(L.type==="assistant"){let F0=L.message.content[0];return F0!=null&&rQ(F0)&&F0.type==="advisor_tool_result"&&F0.content.type==="advisor_result"}if(L.type!=="user")return!1;let b=L.message.content[0];if(b?.type!=="tool_result"||b.is_error||!L.toolUseResult)return!1;let H0=u.current.toolUseByToolUseID.get(b.tool_use_id)?.name;return(H0?rZ(Z,H0):void 0)?.isResultTruncated?.(L.toolUseResult)??!1},[Z]),s=(!X||!!X.shouldContinueAnimation)&&!W.length&&!H,d=i0.size>0,{progress:X0}=lQ(),R0=f.useRef(null),A0=DZ().terminalProgressBarEnabled&&!gQ();f.useEffect(()=>{let L=A0?d?"indeterminate":"completed":null;if(R0.current===L)return;R0.current=L,X0(L)},[X0,A0,d]),f.useEffect(()=>{return()=>X0(null)},[X0]);let M0=f.useCallback((L)=>`${L.uuid}-${V}`,[V]),U0=(L,b)=>{if(L.type==="progress")return null;let H0=b>0?P0[b-1]?.type:void 0,e=L.type==="user"&&H0==="user",F0=L.type==="collapsed_read_search"&&(w||qQ(P0,b,Z,T0)),k0=M0(L),HZ=Y(YQ,{message:L,isUserContinuation:e,hasContentAfter:F0,tools:Z,commands:Q,verbose:z||$(L)||B0?.expanded===!0&&b===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:F,canAnimate:s,lastThinkingBlockId:t,latestBashOutputUUID:W0,columns:i,isLoading:S,lookups:V0},k0),c0=Y(oQ.Provider,{value:b===_0,children:HZ},k0);if(j&&b===o0)return[Y(D,{marginTop:1,children:Y(MZ,{title:`${j.count} new ${KZ(j.count,"message")}`,width:i,color:"inactive"})},"unseen-divider"),c0];return c0},D0=f.useRef(new WeakMap),v0=f.useCallback((L)=>{let b=D0.current.get(L);if(b!==void 0)return b;let H0=UZ(L);if(L.type==="user"&&L.toolUseResult&&Array.isArray(L.message.content)){let F0=L.message.content.find((k0)=>k0.type==="tool_result");if(F0&&"tool_use_id"in F0){let k0=V0.toolUseByToolUseID.get(F0.tool_use_id),c0=(k0&&rZ(Z,k0.name))?.extractSearchText?.(L.toolUseResult);if(c0!==void 0)H0=c0}}let e=H0.toLowerCase();return D0.current.set(L,e),e},[Z,V0]);return T(E0,{children:[!U&&!(n&&n[0]>0)&&Y(dX,{agentDefinitions:C}),f0&&Y(MZ,{title:`${j0} to show ${lZ.bold(S0)} previous messages`,width:i}),O&&N&&S0>0&&!Q0&&Y(MZ,{title:`${j0} to hide ${lZ.bold(S0)} previous messages`,width:i}),h?Y(tQ.Provider,{value:!0,children:Y(pQ,{messages:P0,scrollRef:M,columns:i,itemKey:M0,renderItem:U0,onItemClick:A,isItemClickable:m,isItemExpanded:$,trackStickyPrompt:E,selectedIndex:_0>=0?_0:void 0,cursorNavRef:a,setCursor:r,jumpRef:R,onSearchMatchesChange:Z0,scanElement:y,setPositions:x,extractSearchText:v0})}):P0.flatMap(U0),w&&!P&&Y(gX,{}),o&&_&&!P&&Y(D,{marginTop:1,children:Y(Zz,{param:{type:"thinking",thinking:_.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},gX=()=>{let J=oZ();if(!J)return null;return Y(D,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:T(D,{flexDirection:"row",children:[Y(D,{minWidth:2,children:Y(p,{color:"text",children:nQ})}),Y(D,{flexDirection:"column",children:Y(eQ,{children:J})})]})})},Nq;var GQ=q0(()=>{vX();CJ();yX();kX();PJ();SX();I0();hX();pX();IX();TX();kJ();TJ();uX();ZQ();$J();DQ();_X();fJ();PZ();NJ();RZ();RX();$X();tZ();VQ();uQ();xX();IZ();fX();JQ();bQ();_Q();dQ();G0();Wz=K0(u0(),1),VZ=K0(b0(),1),f=K0(b0(),1),dX=VZ.memo(function(Z){let Q=Wz.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=Y(ZZ,{children:T(D,{flexDirection:"column",gap:1,children:[X,Y(VZ.Suspense,{fallback:null,children:Y(EQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});Nq=VZ.memo(cX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(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,H)=>q.contentBlock===W[H]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(mX(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,H)=>q.name===W[H]?.name))continue}return!1}}return!0})});
10
+ export{s0 as fe,iX as ge,tZ as he,ZJ as ie,vZ as je,W8 as ke,q8 as le,KJ as me,C8 as ne,y8 as oe,_8 as pe,EJ as qe,Nq as re,GQ as se};
@@ -0,0 +1,2 @@
1
+ import{$$ as z,baa as H,nga as C,sga as J}from"./cli-1.1.34-wwjkncsv.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
+ export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -0,0 +1,2 @@
1
+ import{Hqa as x,Iqa as z}from"./cli-1.1.34-4x915j9t.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
2
+ export{A as GY,F as HY,G as IY,H as JY,J as KY};
@@ -0,0 +1,2 @@
1
+ import{Iqa as o}from"./cli-1.1.34-4x915j9t.mjs";var t=3,n=1,i=32,_="generativelanguage.googleapis.com",s,c="api.kimi.com",p="opencode.ai",r,a,E,S;var e=o(()=>{s=new Set(["api.moonshot.ai","api.moonshot.cn"]),r=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),a=new Set(["api.deepseek.com"]),E={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},S=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
+ export{t as o7,n as p7,i as q7,_ as r7,s as s7,c as t7,p as u7,r as v7,a as w7,E as x7,S as y7,e as z7};
@@ -0,0 +1,8 @@
1
+ import{gb as j}from"./cli-1.1.34-0f5qa0q0.mjs";import{If as Aq,Nf as lq}from"./cli-1.1.34-s8c2c7g3.mjs";import{MN as Nq,US as E,WS as aq,bO as uq}from"./cli-1.1.34-84707tma.mjs";import{j0 as l,p0 as Cq,q0 as a,r0 as hq}from"./cli-1.1.34-bt9brnrs.mjs";import{$5 as Lq,Q5 as Wq,S5 as Uq,U3 as Yq,U5 as A,Y3 as Zq,a4 as $q,j4 as Hq,m4 as P,o2 as U,o4 as Kq,t2 as x,t4 as Qq}from"./cli-1.1.34-yrk4mxjw.mjs";import{v6 as y,w6 as Fq}from"./cli-1.1.34-7bxexffs.mjs";import{$da as o,D_ as Y,F_ as J,M_ as T,Naa as r,O_ as pq,Oaa as t,Qaa as xq,Tda as H,Tea as W,Vda as Z,Yda as _q,f_ as d,jea as B,k_ as Eq,l_ as c,nga as V,o_ as jq,qba as p,sga as _,uba as bq}from"./cli-1.1.34-wwjkncsv.mjs";import{Uga as F,Yga as cq}from"./cli-1.1.34-p5v4dwpg.mjs";import{$ia as m,Yia as v,_ia as Iq,cja as S,gja as Pq}from"./cli-1.1.34-xwg0x7p4.mjs";import{yja as u,zja as Mq}from"./cli-1.1.34-fm4a40ta.mjs";import{Qja as R,Sja as f,Xja as Rq}from"./cli-1.1.34-d0sgyvr1.mjs";import{bka as Oq,jka as dq}from"./cli-1.1.34-ev8ffgr9.mjs";import{Jna as D,Nna as Dq,Ona as Gq,foa as C,poa as h,sna as G,una as O,upa as k}from"./cli-1.1.34-qef4zhc3.mjs";Fq();Cq();k();jq();Rq();Pq();Eq();_();Mq();bq();Dq();Iq();hq();import{readFileSync as fq}from"node:fs";var vq=/--inspect(-brk)?/,b=/--inspect(-brk)?|--debug(-brk)?/;function Jz(){let q=c()?vq:b,K=process.execArgv.some((X)=>q.test(X)),Q=!!process.env.NODE_OPTIONS&&b.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||K||Q}catch{return K||Q}}function Vz(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(l)}function Bz(z){if(typeof z!=="object"||z===null)return{};let q=z,K=q.teammateMode;return{agentId:typeof q.agentId==="string"?q.agentId:void 0,agentName:typeof q.agentName==="string"?q.agentName:void 0,teamName:typeof q.teamName==="string"?q.teamName:void 0,agentColor:typeof q.agentColor==="string"?q.agentColor:void 0,planModeRequired:typeof q.planModeRequired==="boolean"?q.planModeRequired:void 0,parentSessionId:typeof q.parentSessionId==="string"?q.parentSessionId:void 0,teammateMode:K==="auto"||K==="tmux"||K==="in-process"?K:void 0,agentType:typeof q.agentType==="string"?q.agentType:void 0}}function g(z){try{let q=z.trim(),K=q.startsWith("{")&&q.endsWith("}"),Q;if(K){if(!d(q))process.stderr.write(y.red(`Error: Invalid JSON provided to --settings
2
+ `)),process.exit(1);Q=a("claude-settings",".json",{contentHash:q}),v(Q,q,"utf8")}else{let{resolvedPath:X}=m(S(),z);try{fq(X,"utf8")}catch($){if(f($))process.stderr.write(y.red(`Error: Settings file not found: ${X}
3
+ `)),process.exit(1);throw $}Q=X}C(Q),D()}catch(q){if(q instanceof Error)V(q);process.stderr.write(y.red(`Error processing settings: ${R(q)}
4
+ `)),process.exit(1)}}function n(z){try{let q=p(z);h(q),D()}catch(q){if(q instanceof Error)V(q);process.stderr.write(y.red(`Error processing --setting-sources: ${R(q)}
5
+ `)),process.exit(1)}}async function Wz(z,q){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(q==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let K="",Q=($)=>{K+=$};process.stdin.on("data",Q);let X=await u(process.stdin,3000);if(process.stdin.off("data",Q),X)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
+ `);return[z,K].filter(Boolean).join(`
7
+ `)}return z}cq();aq();W();pq();dq();W();_();B();function i(){let z=J();if(z.autoUpdates!==!1||z.autoUpdatesProtectedForNative===!0)return;try{let q=H("userSettings")||{};Z("userSettings",{...q,env:{...q.env,DISABLE_AUTOUPDATER:"1"}}),process.env.DISABLE_AUTOUPDATER="1",Y((K)=>{let{autoUpdates:Q,autoUpdatesProtectedForNative:X,...$}=K;return $})}catch(q){V(Error(`Failed to migrate auto-updates: ${q}`))}}W();_();B();function s(){if(!J().bypassPermissionsModeAccepted)return;try{if(!o())Z("userSettings",{skipDangerousModePermissionPrompt:!0});Y((q)=>{if(!("bypassPermissionsModeAccepted"in q))return q;let{bypassPermissionsModeAccepted:K,...Q}=q;return Q})}catch(q){V(Error(`Failed to migrate bypass permissions accepted: ${q}`))}}W();_();B();function e(){let z=r(),q=z.enableAllProjectMcpServers!==void 0,K=z.enabledMcpjsonServers&&z.enabledMcpjsonServers.length>0,Q=z.disabledMcpjsonServers&&z.disabledMcpjsonServers.length>0;if(!q&&!K&&!Q)return;try{let X=H("localSettings")||{},$={},L=[];if(q&&X.enableAllProjectMcpServers===void 0)$.enableAllProjectMcpServers=z.enableAllProjectMcpServers,L.push("enableAllProjectMcpServers");else if(q)L.push("enableAllProjectMcpServers");if(K&&z.enabledMcpjsonServers){let N=X.enabledMcpjsonServers||[];$.enabledMcpjsonServers=[...new Set([...N,...z.enabledMcpjsonServers])],L.push("enabledMcpjsonServers")}if(Q&&z.disabledMcpjsonServers){let N=X.disabledMcpjsonServers||[];$.disabledMcpjsonServers=[...new Set([...N,...z.disabledMcpjsonServers])],L.push("disabledMcpjsonServers")}if(Object.keys($).length>0)Z("localSettings",$);if(L.includes("enableAllProjectMcpServers")||L.includes("enabledMcpjsonServers")||L.includes("disabledMcpjsonServers"))t((N)=>{let{enableAllProjectMcpServers:gq,enabledMcpjsonServers:nq,disabledMcpjsonServers:iq,...Tq}=N;return Tq})}catch(X){V(X)}}k();W();B();var I=new Map([["claude-fable-5","claude-fable-5-1"],["anthropic.claude-fable-5","anthropic.claude-fable-5-1"]]);function w(z){return I.get(z)??z}function mq(z){if(!z)return null;let q={};if(z.model!==void 0){let K=w(z.model);if(K!==z.model)q.model=K}if(z.advisorModel!==void 0){let K=w(z.advisorModel);if(K!==z.advisorModel)q.advisorModel=K}if(z.availableModels){let K=z.availableModels.map(w);if(K.some((Q,X)=>Q!==z.availableModels?.[X]))q.availableModels=K}if(z.modelOverrides){let K=Object.entries(z.modelOverrides),Q=K.filter(([X])=>I.has(X));if(Q.length>0)q.modelOverrides={...Object.fromEntries(Q.map(([X])=>[X,void 0])),...Object.fromEntries(K.map(([X,$])=>[w(X),$]))}}return Object.keys(q).length>0?q:null}function Sq(z){if(!z)return null;let K=Object.entries(z).filter(([,X])=>X.activeModelForProject!==void 0&&I.has(X.activeModelForProject));if(K.length===0)return null;let Q={...z};for(let[X,$]of K)Q[X]={...$,activeModelForProject:w($.activeModelForProject)};return Q}function qq(){let z=mq(H("userSettings"));if(z)Z("userSettings",z);let q=Sq(J().projects);if(q)Y((Q)=>({...Q,projects:q}));let K=G();if(K){let Q=w(K);if(Q!==K)O(Q)}}B();function zq(){let q=H("userSettings")?.model;if(typeof q==="string"){if(q.startsWith("fennec-latest[1m]"))Z("userSettings",{model:"opus[1m]"});else if(q.startsWith("fennec-latest"))Z("userSettings",{model:"opus"});else if(q.startsWith("fennec-fast-latest")||q.startsWith("opus-4-5-fast"))Z("userSettings",{model:"opus[1m]",fastMode:!0})}}W();Qq();x();B();function Xq(){if(U()!=="firstParty")return;if(!Kq())return;let z=H("userSettings")?.model;if(z!=="claude-opus-4-20250514"&&z!=="claude-opus-4-1-20250805"&&z!=="claude-opus-4-0"&&z!=="claude-opus-4-1")return;Z("userSettings",{model:"opus"}),Y((q)=>({...q,legacyOpusMigrationTimestamp:Date.now()}))}Qq();B();function Jq(){if(!Hq())return;if(H("userSettings")?.model!=="opus")return;if(Yq(Zq()))return;let q="opus[1m]",K=P(q)===P($q())?void 0:q;Z("userSettings",{model:K})}W();function Vq(){Y((z)=>{let q=z.replBridgeEnabled;if(q===void 0)return z;if(z.remoteControlAtStartup!==void 0)return z;let K={...z,remoteControlAtStartup:Boolean(q)};return delete K.replBridgeEnabled,K})}k();W();x();B();function Bq(){if(U()!=="firstParty")return;if(J().sonnet1m45MigrationComplete)return;if(H("userSettings")?.model==="sonnet[1m]")Z("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(G()==="sonnet[1m]")O("sonnet-4-5-20250929[1m]");Y((Q)=>({...Q,sonnet1m45MigrationComplete:!0}))}Lq();W();x();B();function wq(){if(U()!=="firstParty")return;if(!A()&&!Wq()&&!Uq())return;let z=H("userSettings")?.model;if(z!=="claude-sonnet-4-5-20250929"&&z!=="claude-sonnet-4-5-20250929[1m]"&&z!=="sonnet-4-5-20250929"&&z!=="sonnet-4-5-20250929[1m]")return;let q=z.endsWith("[1m]");if(Z("userSettings",{model:q?"sonnet[1m]":"sonnet"}),J().numStartups>1)Y((Q)=>({...Q,sonnet45To46MigrationTimestamp:Date.now()}))}W();_();uq();B();function yq(){if(J().hasResetAutoModeOptInForDefaultOffer)return;if(Nq()!=="enabled")return;try{let q=H("userSettings");if(q?.skipAutoPermissionPrompt&&q?.permissions?.defaultMode!=="auto")Z("userSettings",{skipAutoPermissionPrompt:void 0});Y((K)=>{if(K.hasResetAutoModeOptInForDefaultOffer)return K;return{...K,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(q){V(Error(`Failed to reset auto mode opt-in: ${q}`))}}Lq();W();x();B();function kq(){if(J().opusProMigrationComplete)return;if(U()!=="firstParty"||!A()){Y((Q)=>({...Q,opusProMigrationComplete:!0}));return}if(_q()?.model===void 0){let Q=Date.now();Y((X)=>({...X,opusProMigrationComplete:!0,opusProMigrationTimestamp:Q}))}else Y((Q)=>({...Q,opusProMigrationComplete:!0}))}lq();k();var M=13;function FK(){if(J().migrationVersion!==M)i(),s(),e(),kq(),Bq(),Xq(),wq(),zq(),Jq(),Vq(),qq(),yq(),Y((z)=>z.migrationVersion===M?z:{...z,migrationVersion:M});Aq().catch(()=>{})}function EK(){if(Gq()){T("info","prefetch_system_context_non_interactive"),E();return}if(xq())T("info","prefetch_system_context_has_trust"),E();else T("info","prefetch_system_context_skipped_no_trust")}function jK(){F("eagerLoadSettings_start");let z=j("--settings");if(z)g(z);let q=j("--setting-sources");if(q!==void 0)n(q);F("eagerLoadSettings_end")}function bK(z){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let q=process.argv.slice(2),K=q.indexOf("mcp");if(K!==-1&&q[K+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(Oq(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=z?"sdk-cli":"cli"}
8
+ export{Jz as E,Vz as F,Bz as G,Wz as H,FK as I,EK as J,jK as K,bK as L};
@@ -0,0 +1,24 @@
1
+ import{Lb as v0}from"./cli-1.1.34-h9h6119y.mjs";import{Wd as H0,Zd as u9}from"./cli-1.1.34-p9rd6dtm.mjs";import{ei as QZ,fi as b6}from"./cli-1.1.34-7npd3as5.mjs";import{Yi as O0,Zi as o9}from"./cli-1.1.34-5jnn83ne.mjs";import{$E as $Z,$M as AY,$w as O6,BP as Q6,CS as M0,GM as P0,GS as N0,Gr as lQ,Gx as jZ,HM as e9,Hr as h0,Hx as kY,Ir as UQ,JS as B0,Jr as _0,LJ as r,LQ as RQ,PQ as CQ,Pv as G0,Qv as k9,RJ as E0,Rj as XQ,TD as A0,Uj as _Z,VG as FZ,VM as DY,WD as i9,WG as cY,Wt as IZ,XM as _Y,Xt as sY,YJ as j0,Yt as V0,Zj as w0,Zt as x9,_w as n0,aF as uY,el as WY,fD as CZ,fO as bZ,fR as _Q,fl as F6,fo as wY,gD as SZ,gN as k6,gl as XY,gm as AZ,go as x6,hD as xZ,hl as KY,hm as CY,iD as kZ,iO as mY,il as $Q,ir as D0,jD as pZ,jK as J0,jl as tQ,kA as UZ,kD as uZ,kK as p9,kl as VY,kx as yZ,lD as xQ,ll as ZQ,lx as OZ,mD as kQ,ml as sQ,mx as SY,nA as PZ,nD as cZ,nP as $0,nl as GY,oA as TQ,oD as mZ,oE as y0,ol as JY,pD as dZ,pl as m0,pt as K0,px as EZ,qD as gZ,qE as r9,qt as S9,qx as xY,rD as lZ,rn as yQ,sA as pY,sD as aZ,sK as g,tD as nZ,tS as f0,uD as iZ,uK as t9,un as OQ,vD as rZ,vP as F0,vn as hZ,vp as u0,wD as Z9,wM as U0,xM as s9,xP as b0,yp as H6}from"./cli-1.1.34-84707tma.mjs";import{IX as k,KX as f,pY as RY,wW as IY}from"./cli-1.1.34-59csbz1a.mjs";import{S1 as m,T1 as y,U1 as M,V1 as XZ}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as hY}from"./cli-1.1.34-7ad0dt89.mjs";import{$5 as J6,A3 as k0,E3 as G6,i5 as p0}from"./cli-1.1.34-yrk4mxjw.mjs";import{$_ as v6,$ca as S0,Ica as qY,K9 as wQ,Kaa as C6,L9 as bY,M_ as X0,O_ as C9,Pca as S6,Q_ as c0,S$ as R6,Yda as x0,_ca as C0,bda as K6,f_ as a0,fba as fQ,gga as wZ,hba as fY,jea as V6,jga as TY,k_ as y6,naa as zY,nga as o,sga as DZ,v$ as LY}from"./cli-1.1.34-wwjkncsv.mjs";import{Bga as GZ,Jga as JZ,Pga as FY}from"./cli-1.1.34-p5v4dwpg.mjs";import{Aha as L,Bha as AQ,yha as Q,zha as GQ}from"./cli-1.1.34-92kps6jn.mjs";import{Eha as R0,Gha as X6,Iha as MQ,Lha as HZ,Mha as NZ,Nha as BZ,Oha as vZ,Qha as LZ,Rha as zZ,bia as qZ,gia as MY}from"./cli-1.1.34-0t1h2v5v.mjs";import{Via as s,Wia as Y0,_ia as jQ,qja as T,tia as l0,tja as VQ,via as A6}from"./cli-1.1.34-xwg0x7p4.mjs";import{vja as W0,zja as R9}from"./cli-1.1.34-fm4a40ta.mjs";import{Cja as Z0,Qja as vY,Rja as iQ,Xja as cQ}from"./cli-1.1.34-d0sgyvr1.mjs";import{Mka as L0,Poa as QY,Rka as HQ,Roa as ZY,Soa as eQ,Uoa as YY,Xka as ZZ,Yka as g0,upa as JQ,wna as I0,xoa as e0,yoa as LQ}from"./cli-1.1.34-qef4zhc3.mjs";import{Eqa as VZ,Hqa as IQ,Iqa as DQ,Jqa as gQ}from"./cli-1.1.34-4x915j9t.mjs";var oY={};IQ(oY,{selectableUserMessagesFilter:()=>TZ,messagesAfterAreOnlySynthetic:()=>rY,MessageSelector:()=>gY});import{randomUUID as dY}from"crypto";import*as QQ from"path";function fZ(Y){return Y.type==="text"}function hQ(Y){return Y==="summarize"||Y==="summarize_up_to"}function gY({messages:Y,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:K,onClose:J,preselectedMessage:G}){let V=bZ((A)=>A.fileHistory),[B,v]=I.useState(void 0),N=UZ(),w=I.useMemo(dY,[]),O=I.useMemo(()=>[...Y.filter(TZ),{...r({content:""}),uuid:w}],[Y,w]),[$,z]=I.useState(O.length-1),h=Math.max(0,Math.min($-Math.floor(bQ/2),O.length-bQ)),E=O.length>1,[D,_]=I.useState(G),[R,F]=I.useState(void 0);I.useEffect(()=>{if(!G||!N)return;let A=!1;return TQ(V,G.uuid).then((S)=>{if(!A)F(S)}),()=>{A=!0}},[G,N,V]);let[j,U]=I.useState(!1),[c,d]=I.useState(null),[n,C]=I.useState("both"),[x,q]=I.useState(""),[b,P]=I.useState("");function H(A){let S=A?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],p={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return S.push({value:"summarize",label:"Summarize from here",...p,onChange:q}),S.push({value:"nevermind",label:"Never mind"}),S}async function l(A){Z(),U(!0);try{await W(A),U(!1),J()}catch(S){o(S),U(!1),v(`Failed to restore the conversation:
2
+ ${S}`)}}async function i(A){let S=Y.indexOf(A),p=Y.length-1-S;if(!Y.includes(A)){J();return}if(!N){await l(A);return}let u=await TQ(V,A.uuid);_(A),F(u)}async function YQ(A){if(!D){v("Message not found.");return}if(A==="nevermind"){if(G)J();else _(void 0);return}if(hQ(A)){Z(),U(!0),d(A),v(void 0);try{let u=A==="summarize_up_to"?"up_to":"from",e=(u==="up_to"?b:x).trim()||void 0;await K(D,e,u),U(!1),d(null),_(void 0),J()}catch(u){o(u),U(!1),d(null),_(void 0),v(`Failed to summarize:
3
+ ${u}`)}return}Z(),U(!0),v(void 0);let S=null,p=null;if(A==="code"||A==="both")try{await X(D)}catch(u){S=u,o(S)}if(A==="conversation"||A==="both")try{await W(D)}catch(u){p=u,o(p)}if(U(!1),_(void 0),p&&S)v(`Failed to restore the conversation and code:
4
+ ${p}
5
+ ${S}`);else if(p)v(`Failed to restore the conversation:
6
+ ${p}`);else if(S)v(`Failed to restore the code:
7
+ ${S}`);else J()}let WQ=EZ(),t=I.useCallback(()=>{if(D&&!G){_(void 0);return}J()},[J,D,G]),OY=I.useCallback(()=>z((A)=>Math.max(0,A-1)),[]),EY=I.useCallback(()=>z((A)=>Math.min(O.length-1,A+1)),[O.length]),jY=I.useCallback(()=>z(0),[]),UY=I.useCallback(()=>z(O.length-1),[O.length]),PY=I.useCallback(()=>{let A=O[$];if(A)i(A)},[O,$,i]);yZ("confirm:no",t,{context:"Confirmation",isActive:!D}),OZ({"messageSelector:up":OY,"messageSelector:down":EY,"messageSelector:top":jY,"messageSelector:bottom":UY,"messageSelector:select":PY},{context:"MessageSelector",isActive:!j&&!B&&!D&&E});let[YZ,WZ]=I.useState({});I.useEffect(()=>{async function A(){if(!N)return;Promise.all(O.map(async(S,p)=>{if(S.uuid!==w){let u=PZ(V,S.uuid),e=O.at(p+1),qQ=u?iY(Y,S.uuid,e?.uuid!==w?e?.uuid:void 0):void 0;if(qQ!==void 0)WZ((a)=>({...a,[p]:qQ}));else WZ((a)=>({...a,[p]:void 0}))}}))}A()},[O,Y,w,V,N]);let zQ=N&&R?.filesChanged&&R.filesChanged.length>0,$Y=!B&&!D&&!G&&E;return M(k,{flexDirection:"column",width:"100%",children:[y(jZ,{color:"suggestion"}),M(k,{flexDirection:"column",marginX:1,gap:1,children:[y(f,{bold:!0,color:"suggestion",children:"Rewind"}),B&&y(m,{children:M(f,{color:"error",children:["Error: ",B]})}),!E&&y(m,{children:y(f,{children:"Nothing to rewind to yet."})}),!B&&D&&E&&M(m,{children:[M(f,{children:["Confirm you want to restore"," ",!R&&"the conversation ","to the point before you sent this message:"]}),M(k,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[y(KZ,{userMessage:D,color:"text",isCurrent:!1}),M(f,{dimColor:!0,children:["(",JZ(new Date(D.timestamp)),")"]})]}),y(aY,{selectedRestoreOption:n,canRestoreCode:!!zQ,diffStatsForRestore:R}),j&&hQ(c)?M(k,{flexDirection:"row",gap:1,children:[y(FZ,{}),y(f,{children:"Summarizing…"})]}):y($Z,{isDisabled:j,options:H(!!zQ),defaultFocusValue:zQ?"both":"conversation",onFocus:(A)=>C(A),onChange:(A)=>YQ(A),onCancel:()=>G?J():_(void 0)}),zQ&&y(k,{marginBottom:1,children:M(f,{dimColor:!0,children:[wQ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),$Y&&M(m,{children:[N?y(f,{children:"Restore the code and/or conversation to the point before…"}):y(f,{children:"Restore and fork the conversation to the point before…"}),y(k,{width:"100%",flexDirection:"column",children:O.slice(h,h+bQ).map((A,S)=>{let p=h+S,u=p===$,e=A.uuid===w,qQ=p in YZ,a=YZ[p],FQ=a?.filesChanged&&a.filesChanged.length;return M(k,{height:N?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[y(k,{width:2,minWidth:2,children:u?M(f,{color:"permission",bold:!0,children:[wQ.pointer," "]}):y(f,{children:" "})}),M(k,{flexDirection:"column",children:[y(k,{flexShrink:1,height:1,overflow:"hidden",children:y(KZ,{userMessage:A,color:u?"suggestion":void 0,isCurrent:e,paddingRight:10})}),N&&qQ&&y(k,{height:1,flexDirection:"row",children:a?y(m,{children:y(f,{dimColor:!u,color:"inactive",children:FQ?M(m,{children:[FQ===1&&a.filesChanged[0]?`${QQ.basename(a.filesChanged[0])} `:`${FQ} files changed `,y(MZ,{diffStats:a})]}):y(m,{children:"No code changes"})})}):M(f,{dimColor:!0,color:"warning",children:[wQ.warning," No code restore"]})})]})]},A.uuid)})})]}),!D&&y(f,{dimColor:!0,italic:!0,children:WQ.pending?M(m,{children:["Press ",WQ.keyName," again to exit"]}):M(m,{children:[!B&&E&&"Enter to continue · ","Esc to exit"]})})]})]})}function lY(Y){switch(Y){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function aY(Y){let Z=KQ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:K}=Y,J=X&&(W==="both"||W==="code"),G;if(Z[0]!==W)G=lY(W),Z[0]=W,Z[1]=G;else G=Z[1];let V;if(Z[2]!==G)V=y(f,{dimColor:!0,children:G}),Z[2]=G,Z[3]=V;else V=Z[3];let B;if(Z[4]!==K||Z[5]!==W||Z[6]!==J)B=!hQ(W)&&(J?y(nY,{diffStatsForRestore:K}):y(f,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=K,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let v;if(Z[8]!==V||Z[9]!==B)v=M(k,{flexDirection:"column",children:[V,B]}),Z[8]=V,Z[9]=B,Z[10]=v;else v=Z[10];return v}function nY(Y){let Z=KQ.c(14),{diffStatsForRestore:W}=Y;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=y(f,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=V;else V=Z[0];return V}let X=W.filesChanged.length,K;if(X===1){let V;if(Z[1]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=V;else V=Z[2];K=V}else if(X===2){let V;if(Z[3]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=V;else V=Z[4];let B=V,v;if(Z[5]!==W.filesChanged[1])v=QQ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=v;else v=Z[6];K=`${B} and ${v}`}else{let V;if(Z[7]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=V;else V=Z[8];K=`${V} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=y(MZ,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let G;if(Z[11]!==K||Z[12]!==J)G=y(m,{children:M(f,{dimColor:!0,children:["The code will be restored"," ",J," in ",K,"."]})}),Z[11]=K,Z[12]=J,Z[13]=G;else G=Z[13];return G}function MZ(Y){let Z=KQ.c(7),{diffStats:W}=Y;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(f,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let K;if(Z[2]!==W.deletions)K=M(f,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=K;else K=Z[3];let J;if(Z[4]!==X||Z[5]!==K)J=M(m,{children:[X,K]}),Z[4]=X,Z[5]=K,Z[6]=J;else J=Z[6];return J}function KZ(Y){let Z=KQ.c(31),{userMessage:W,color:X,dimColor:K,isCurrent:J,paddingRight:G}=Y,{columns:V}=AZ();if(J){let F;if(Z[0]!==X||Z[1]!==K)F=y(k,{width:"100%",children:y(f,{italic:!0,color:X,dimColor:K,children:"(current)"})}),Z[0]=X,Z[1]=K,Z[2]=F;else F=Z[2];return F}let B=W.message.content,v=typeof B==="string"?null:B[B.length-1],N,w,O,$,z,h,E,D;if(Z[3]!==X||Z[4]!==V||Z[5]!==B||Z[6]!==K||Z[7]!==v||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Q:{let F=typeof B==="string"?B.trim():v&&fZ(v)?v.text.trim():"(no prompt)",j=wZ(F);if(_Z(j)){let U;if(Z[17]!==X||Z[18]!==K)U=y(k,{flexDirection:"row",width:"100%",children:y(f,{italic:!0,color:X,dimColor:K,children:"((empty message))"})}),Z[17]=X,Z[18]=K,Z[19]=U;else U=Z[19];D=U;break Q}if(j.includes("<bash-input>")){let U=XQ(j,"bash-input");if(U){let c;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))c=y(f,{color:"bashBorder",children:"!"}),Z[20]=c;else c=Z[20];D=M(k,{flexDirection:"row",width:"100%",children:[c,M(f,{color:X,dimColor:K,children:[" ",U]})]});break Q}}if(j.includes(`<${MQ}>`)){let U=XQ(j,MQ),c=XQ(j,"command-args"),d=XQ(j,"skill-format")==="true";if(U)if(d){D=y(k,{flexDirection:"row",width:"100%",children:M(f,{color:X,dimColor:K,children:["Skill(",U,")"]})});break Q}else{D=y(k,{flexDirection:"row",width:"100%",children:M(f,{color:X,dimColor:K,children:["/",U," ",c]})});break Q}}w=k,h="row",E="100%",N=f,O=X,$=K,z=G?GZ(j,V-G,!0):j.slice(0,500).split(`
8
+ `).slice(0,4).join(`
9
+ `)}Z[3]=X,Z[4]=V,Z[5]=B,Z[6]=K,Z[7]=v,Z[8]=G,Z[9]=N,Z[10]=w,Z[11]=O,Z[12]=$,Z[13]=z,Z[14]=h,Z[15]=E,Z[16]=D}else N=Z[9],w=Z[10],O=Z[11],$=Z[12],z=Z[13],h=Z[14],E=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let _;if(Z[21]!==N||Z[22]!==O||Z[23]!==$||Z[24]!==z)_=y(N,{color:O,dimColor:$,children:z}),Z[21]=N,Z[22]=O,Z[23]=$,Z[24]=z,Z[25]=_;else _=Z[25];let R;if(Z[26]!==w||Z[27]!==h||Z[28]!==E||Z[29]!==_)R=y(w,{flexDirection:h,width:E,children:_}),Z[26]=w,Z[27]=h,Z[28]=E,Z[29]=_,Z[30]=R;else R=Z[30];return R}function iY(Y,Z,W){let X=Y.findIndex((B)=>B.uuid===Z);if(X===-1)return;let K=W?Y.findIndex((B)=>B.uuid===W):Y.length;if(K===-1)K=Y.length;let J=[],G=0,V=0;for(let B=X+1;B<K;B++){let v=Y[B];if(!v||!CQ(v))continue;let N=v.toolUseResult;if(!N||!N.filePath||!N.structuredPatch)continue;if(!J.includes(N.filePath))J.push(N.filePath);try{if("type"in N&&N.type==="create")G+=N.content.split(/\r?\n/).length;else for(let w of N.structuredPatch){let O=fQ(w.lines,(z)=>z.startsWith("+")),$=fQ(w.lines,(z)=>z.startsWith("-"));G+=O,V+=$}}catch{continue}}return{filesChanged:J,insertions:G,deletions:V}}function TZ(Y){if(Y.type!=="user")return!1;if(Array.isArray(Y.message.content)&&Y.message.content[0]?.type==="tool_result")return!1;if(RQ(Y))return!1;if(Y.isMeta)return!1;if(Y.isCompactSummary||Y.isVisibleInTranscriptOnly)return!1;let Z=Y.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&fZ(W)?W.text.trim():"";if(X.indexOf(`<${BZ}>`)!==-1||X.indexOf(`<${vZ}>`)!==-1||X.indexOf(`<${HZ}>`)!==-1||X.indexOf(`<${NZ}>`)!==-1||X.indexOf(`<${zZ}>`)!==-1||X.indexOf(`<${LZ}>`)!==-1||X.indexOf(`<${qZ}`)!==-1)return!1;return!0}function rY(Y,Z){for(let W=Z+1;W<Y.length;W++){let X=Y[W];if(!X)continue;if(RQ(X))continue;if(CQ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let K=X.message.content;if(Array.isArray(K)){if(K.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var KQ,I,bQ=7;var tY=DQ(()=>{bY();mY();pY();DZ();xY();RY();SY();TY();_Q();uY();cY();CY();MY();fY();FY();kY();XZ();KQ=VZ(IY(),1),I=VZ(hY(),1)});var D6={};IQ(D6,{getCronJitterConfig:()=>w6});function w6(){let Y=c0("tengu_kairos_cron_config",ZQ,L6),Z=q6().safeParse(Y);return Z.success?Z.data:ZQ}var L6=60000,aQ=1800000,z6=2592000000,q6;var _6=DQ(()=>{GQ();v6();m0();AQ();q6=L(()=>Q.object({recurringFrac:Q.number().min(0).max(1),recurringCapMs:Q.number().int().min(0).max(aQ),oneShotMaxMs:Q.number().int().min(0).max(aQ),oneShotFloorMs:Q.number().int().min(0).max(aQ),oneShotMinuteMod:Q.number().int().min(1).max(60),recurringMaxAgeMs:Q.number().int().min(0).max(z6).default(ZQ.recurringMaxAgeMs)}).refine((Y)=>Y.oneShotFloorMs<=Y.oneShotMaxMs))});import{mkdir as E6,readFile as j6,unlink as i0,writeFile as rQ}from"fs/promises";import{dirname as U6,join as r0}from"path";function BQ(Y){return r0(Y??g0(),P6)}async function o0(Y){let Z;try{Z=await j6(BQ(Y),"utf8")}catch{return}let W=$6().safeParse(a0(Z,!1));return W.success?W.data:void 0}async function d0(Y,Z){let W=BQ(Z),X=s(Y);try{return await rQ(W,X,{flag:"wx"}),!0}catch(K){let J=iQ(K);if(J==="EEXIST")return!1;if(J==="ENOENT"){await E6(U6(W),{recursive:!0});try{return await rQ(W,X,{flag:"wx"}),!0}catch(G){if(iQ(G)==="EEXIST")return!1;throw G}}throw K}}function nQ(Y){PQ?.(),PQ=l0(async()=>{await vQ(Y)})}async function oQ(Y){let Z=Y?.dir,W=Y?.lockIdentity??HQ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await d0(X,Z))return NQ=void 0,nQ(Y),T(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let K=await o0(Z);if(K?.sessionId===W){if(K.pid!==process.pid)await rQ(BQ(Z),s(X)),nQ(Y);return!0}if(K&&n0(K.pid)){if(NQ!==K.sessionId)NQ=K.sessionId,T(`[ScheduledTasks] scheduler lock held by session ${K.sessionId} (PID ${K.pid})`);return!1}if(K)T(`[ScheduledTasks] recovering stale scheduler lock from PID ${K.pid}`);if(await i0(BQ(Z)).catch(()=>{}),await d0(X,Z))return NQ=void 0,nQ(Y),!0;return!1}async function vQ(Y){PQ?.(),PQ=void 0,NQ=void 0;let Z=Y?.dir,W=Y?.lockIdentity??HQ(),X=await o0(Z);if(!X||X.sessionId!==W)return;try{await i0(BQ(Z)),T("[ScheduledTasks] released scheduler lock")}catch{}}var P6,$6,PQ,NQ;var t0=DQ(()=>{GQ();JQ();A6();VQ();cQ();O6();y6();AQ();jQ();P6=r0(".claudin","scheduled_tasks.lock"),$6=L(()=>Q.object({sessionId:Q.string(),pid:Q.number(),acquiredAt:Q.number()}))});var h6={};IQ(h6,{takeDueSessionWakeup:()=>NY,isRecurringTaskAged:()=>HY,createCronScheduler:()=>T6,buildMissedTaskNotification:()=>BY});function HY(Y,Z,W){if(W===0)return!1;return Boolean(Y.recurring&&!Y.permanent&&Z-Y.createdAt>=W)}function NY(Y){let Z=eQ();if(!Z||Y<Z.fireAtMs)return null;return YY(),{prompt:QZ(Z.prompt),reason:Z.reason}}function T6(Y){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:K,onMissed:J,onWakeupFire:G,dir:V,lockIdentity:B,getJitterConfig:v,isKilled:N,filter:w}=Y,O=V||B?{dir:V,lockIdentity:B}:void 0,$=[],z=new Map,h=new Set,E=new Set,D=null,_=null,R=null,F=null,j=!1,U=!1;async function c(C){let x=await KY(V);if(j)return;if($=x,!C)return;let q=Date.now(),b=JY(x,q).filter((P)=>!P.recurring&&!h.has(P.id)&&(!w||w(P)));if(b.length>0){for(let P of b)h.add(P.id),z.set(P.id,1/0);if(J)J(b);else Z(BY(b));tQ(b.map((P)=>P.id),V).catch((P)=>T(`[ScheduledTasks] failed to remove missed tasks: ${P}`)),T(`[ScheduledTasks] surfaced ${b.length} missed one-shot task(s)`)}}function d(){if(N?.())return;if(W()&&!X)return;let C=Date.now(),x=new Set,q=[],b=v?.()??ZQ;function P(H,l){if(w&&!w(H))return;if(x.add(H.id),E.has(H.id))return;let i=z.get(H.id);if(i===void 0)i=H.recurring?sQ(H.cron,H.lastFiredAt??H.createdAt,H.id,b)??1/0:GY(H.cron,H.createdAt,H.id,b)??1/0,z.set(H.id,i),T(`[ScheduledTasks] scheduled ${H.id} for ${i===1/0?"never":new Date(i).toISOString()}`);if(C<i)return;T(`[ScheduledTasks] firing ${H.id}${H.recurring?" (recurring)":""}`);let YQ=V===void 0?QZ(H.prompt,void 0,H.agentId):H.prompt;if(K)K(YQ===H.prompt?H:{...H,prompt:YQ});else Z(YQ);let WQ=HY(H,C,b.recurringMaxAgeMs);if(WQ){let t=Math.floor((C-H.createdAt)/1000/60/60);T(`[ScheduledTasks] recurring task ${H.id} aged out (${t}h since creation), deleting after final fire`)}if(H.recurring&&!WQ){let t=sQ(H.cron,C,H.id,b)??1/0;if(z.set(H.id,t),!l)q.push(H.id)}else if(l)ZY([H.id]),z.delete(H.id);else E.add(H.id),tQ([H.id],V).catch((t)=>T(`[ScheduledTasks] failed to remove task ${H.id}: ${t}`)).finally(()=>E.delete(H.id)),z.delete(H.id)}if(U){for(let H of $)P(H,!1);if(q.length>0){for(let H of q)E.add(H);VY(q,C,V).catch((H)=>T(`[ScheduledTasks] failed to persist lastFiredAt: ${H}`)).finally(()=>{for(let H of q)E.delete(H)})}}if(V===void 0){for(let l of QY())P(l,!0);let H=NY(C);if(H!==null)if(T("[ScheduledTasks] firing pending ScheduleWakeup"),G)G(H.prompt,H.reason);else Z(H.prompt)}if(x.size===0){z.clear();return}for(let H of z.keys())if(!x.has(H))z.delete(H)}async function n(){if(j)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-1.1.34-wgm8z1dz.mjs");if(j)return;if(U=await oQ(O).catch(()=>!1),j){if(U)U=!1,vQ(O);return}if(!U)R=setInterval(()=>{oQ(O).then((q)=>{if(j){if(q)vQ(O);return}if(q){if(U=!0,R)clearInterval(R),R=null}}).catch((q)=>T(String(q),{level:"error"}))},M6),R.unref?.();c(!0);let x=XY(V);F=C.watch(x,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:f6},ignorePermissionErrors:!0}),F.on("add",()=>void c(!1)),F.on("change",()=>void c(!1)),F.on("unlink",()=>{if(!j)$=[],z.clear()}),_=setInterval(d,s0),_.unref?.()}return{start(){if(j=!1,V!==void 0){T(`[ScheduledTasks] scheduler start() — dir=${V}, hasTasks=${$Q(V)}`),n();return}if(T(`[ScheduledTasks] scheduler start() — enabled=${LQ()}, hasTasks=${$Q()}`),!LQ()&&(X||$Q()))e0(!0);if(LQ()){n();return}D=setInterval((C)=>{if(LQ())C()},s0,n),D.unref?.()},stop(){if(j=!0,D)clearInterval(D),D=null;if(_)clearInterval(_),_=null;if(R)clearInterval(R),R=null;if(F?.close(),F=null,U)U=!1,vQ(O)},getNextFireTime(){let C=1/0;for(let x of z.values())if(x<C)C=x;if(V===void 0){let x=eQ();if(x&&x.fireAtMs<C)C=x.fireAtMs}return C===1/0?null:C}}}function BY(Y){let Z=Y.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
+
11
+ Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Y.map((K)=>{let J=`[${WY(K.cron)}, created ${new Date(K.createdAt).toLocaleString()}]`,G=(K.prompt.match(/`+/g)??[]).reduce((B,v)=>Math.max(B,v.length),0),V="`".repeat(Math.max(3,G+1));return`${J}
12
+ ${V}
13
+ ${K.prompt}
14
+ ${V}`});return`${W}
15
+
16
+ ${X.join(`
17
+
18
+ `)}`}var s0=1000,f6=300,M6=5000;var I6=DQ(()=>{JQ();F6();m0();t0();VQ();b6()});GQ();VQ();AQ();hZ();sY();var BW=L(()=>Q.object({tool_name:Q.string().describe("The name of the tool requesting permission"),input:Q.record(Q.string(),Q.unknown()).describe("The input for the tool"),tool_use_id:Q.string().optional().describe("The unique tool use request ID")})),RZ=L(()=>Q.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),eY=L(()=>Q.object({behavior:Q.literal("allow"),updatedInput:Q.record(Q.string(),Q.unknown()),updatedPermissions:Q.array(IZ()).optional().catch((Y)=>{T(`Malformed updatedPermissions from SDK host ignored: ${Y.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:Q.string().optional(),decisionClassification:RZ()})),Q9=L(()=>Q.object({behavior:Q.literal("deny"),message:Q.string(),interrupt:Q.boolean().optional(),toolUseID:Q.string().optional(),decisionClassification:RZ()})),SQ=L(()=>Q.union([eY(),Q9()]));function EQ(Y,Z,W,X){let K={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Y};if(Y.behavior==="allow"){let J=Y.updatedPermissions;if(J)X.setAppState((V)=>({...V,toolPermissionContext:yQ(V.toolPermissionContext,J)})),OQ(J);let G=Object.keys(Y.updatedInput).length>0?Y.updatedInput:W;return{...Y,updatedInput:G,decisionReason:K}}else if(Y.behavior==="deny"&&Y.interrupt)T(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Y.message}`),X.abortController.abort();return{...Y,decisionReason:K}}import{randomUUID as uQ}from"crypto";GQ();AQ();Z9();var Y9=L(()=>Q.unknown()),W9=L(()=>Q.object({matcher:Q.string().optional(),hookCallbackIds:Q.array(Q.string()),timeout:Q.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),X9=L(()=>Q.object({subtype:Q.literal("initialize"),hooks:Q.record(pZ(),Q.array(W9())).optional(),sdkMcpServers:Q.array(Q.string()).optional(),jsonSchema:Q.record(Q.string(),Q.unknown()).optional(),systemPrompt:Q.string().optional(),appendSystemPrompt:Q.string().optional(),agents:Q.record(Q.string(),dZ()).optional(),promptSuggestions:Q.boolean().optional(),agentProgressSummaries:Q.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),wW=L(()=>Q.object({commands:Q.array(xQ()),agents:Q.array(kQ()),output_style:Q.string(),available_output_styles:Q.array(Q.string()),models:Q.array(cZ()),account:mZ(),pid:Q.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:rZ().optional()}).describe("Response from session initialization with available commands, models, and account info.")),K9=L(()=>Q.object({subtype:Q.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),V9=L(()=>Q.object({subtype:Q.literal("can_use_tool"),tool_name:Q.string(),input:Q.record(Q.string(),Q.unknown()),permission_suggestions:Q.array(xZ()).optional(),blocked_path:Q.string().optional(),decision_reason:Q.string().optional(),title:Q.string().optional(),display_name:Q.string().optional(),tool_use_id:Q.string(),agent_id:Q.string().optional(),description:Q.string().optional()}).describe("Requests permission to use a tool with the given input.")),G9=L(()=>Q.object({subtype:Q.literal("set_permission_mode"),mode:kZ()}).describe("Sets the permission mode for tool execution handling.")),J9=L(()=>Q.object({subtype:Q.literal("set_model"),model:Q.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),H9=L(()=>Q.object({subtype:Q.literal("set_max_thinking_tokens"),max_thinking_tokens:Q.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),N9=L(()=>Q.object({subtype:Q.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),B9=L(()=>Q.object({subtype:Q.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),v9=L(()=>Q.object({name:Q.string(),tokens:Q.number(),color:Q.string(),isDeferred:Q.boolean().optional()})),L9=L(()=>Q.object({color:Q.string(),isFilled:Q.boolean(),categoryName:Q.string(),tokens:Q.number(),percentage:Q.number(),squareFullness:Q.number()})),DW=L(()=>Q.object({categories:Q.array(v9()),totalTokens:Q.number(),maxTokens:Q.number(),rawMaxTokens:Q.number(),percentage:Q.number(),gridRows:Q.array(Q.array(L9())),model:Q.string(),memoryFiles:Q.array(Q.object({path:Q.string(),type:Q.string(),tokens:Q.number()})),mcpTools:Q.array(Q.object({name:Q.string(),serverName:Q.string(),tokens:Q.number(),isLoaded:Q.boolean().optional()})),deferredBuiltinTools:Q.array(Q.object({name:Q.string(),tokens:Q.number(),isLoaded:Q.boolean()})).optional(),systemTools:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),systemPromptSections:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),agents:Q.array(Q.object({agentType:Q.string(),source:Q.string(),tokens:Q.number()})),slashCommands:Q.object({totalCommands:Q.number(),includedCommands:Q.number(),tokens:Q.number()}).optional(),skills:Q.object({totalSkills:Q.number(),includedSkills:Q.number(),tokens:Q.number(),skillFrontmatter:Q.array(Q.object({name:Q.string(),source:Q.string(),tokens:Q.number()}))}).optional(),autoCompactThreshold:Q.number().optional(),isAutoCompactEnabled:Q.boolean(),messageBreakdown:Q.object({toolCallTokens:Q.number(),toolResultTokens:Q.number(),attachmentTokens:Q.number(),assistantMessageTokens:Q.number(),userMessageTokens:Q.number(),toolCallsByType:Q.array(Q.object({name:Q.string(),callTokens:Q.number(),resultTokens:Q.number()})),attachmentsByType:Q.array(Q.object({name:Q.string(),tokens:Q.number()}))}).optional(),apiUsage:Q.object({input_tokens:Q.number(),output_tokens:Q.number(),cache_creation_input_tokens:Q.number(),cache_read_input_tokens:Q.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),z9=L(()=>Q.object({subtype:Q.literal("rewind_files"),user_message_id:Q.string(),dry_run:Q.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),q9=L(()=>Q.object({subtype:Q.literal("cancel_async_message"),message_uuid:Q.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),w9=L(()=>Q.object({subtype:Q.literal("seed_read_state"),path:Q.string(),mtime:Q.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),D9=L(()=>Q.object({subtype:Q.literal("hook_callback"),callback_id:Q.string(),input:uZ(),tool_use_id:Q.string().optional()}).describe("Delivers a hook callback with its input data.")),_9=L(()=>Q.object({subtype:Q.literal("mcp_message"),server_name:Q.string(),message:Y9()}).describe("Sends a JSON-RPC message to a specific MCP server.")),A9=L(()=>Q.object({subtype:Q.literal("mcp_set_servers"),servers:Q.record(Q.string(),CZ())}).describe("Replaces the set of dynamically managed MCP servers.")),_W=L(()=>Q.object({added:Q.array(Q.string()),removed:Q.array(Q.string()),errors:Q.record(Q.string(),Q.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),y9=L(()=>Q.object({subtype:Q.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),AW=L(()=>Q.object({commands:Q.array(xQ()),agents:Q.array(kQ()),plugins:Q.array(Q.object({name:Q.string(),path:Q.string(),source:Q.string().optional()})),mcpServers:Q.array(SZ()),error_count:Q.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),O9=L(()=>Q.object({subtype:Q.literal("mcp_reconnect"),serverName:Q.string()}).describe("Reconnects a disconnected or failed MCP server.")),E9=L(()=>Q.object({subtype:Q.literal("mcp_toggle"),serverName:Q.string(),enabled:Q.boolean()}).describe("Enables or disables an MCP server.")),j9=L(()=>Q.object({subtype:Q.literal("stop_task"),task_id:Q.string()}).describe("Stops a running task.")),U9=L(()=>Q.object({subtype:Q.literal("apply_flag_settings"),settings:Q.record(Q.string(),Q.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),P9=L(()=>Q.object({subtype:Q.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),yW=L(()=>Q.object({effective:Q.record(Q.string(),Q.unknown()),sources:Q.array(Q.object({source:Q.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Q.record(Q.string(),Q.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Q.object({model:Q.string(),effort:Q.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),$9=L(()=>Q.object({subtype:Q.literal("elicitation"),mcp_server_name:Q.string(),message:Q.string(),mode:Q.enum(["form","url"]).optional(),url:Q.string().optional(),elicitation_id:Q.string().optional(),requested_schema:Q.record(Q.string(),Q.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),oZ=L(()=>Q.object({action:Q.enum(["accept","decline","cancel"]),content:Q.record(Q.string(),Q.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),F9=L(()=>Q.union([K9(),V9(),X9(),G9(),J9(),H9(),N9(),B9(),D9(),_9(),z9(),q9(),w9(),A9(),y9(),O9(),E9(),j9(),U9(),P9(),$9()])),pQ=L(()=>Q.object({type:Q.literal("control_request"),request_id:Q.string(),request:F9()})),b9=L(()=>Q.object({subtype:Q.literal("success"),request_id:Q.string(),response:Q.record(Q.string(),Q.unknown()).optional()})),f9=L(()=>Q.object({subtype:Q.literal("error"),request_id:Q.string(),error:Q.string(),pending_permission_requests:Q.array(Q.lazy(()=>pQ())).optional()})),tZ=L(()=>Q.object({type:Q.literal("control_response"),response:Q.union([b9(),f9()])})),M9=L(()=>Q.object({type:Q.literal("control_cancel_request"),request_id:Q.string()}).describe("Cancels a currently open control request.")),sZ=L(()=>Q.object({type:Q.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),T9=L(()=>Q.object({type:Q.literal("update_environment_variables"),variables:Q.record(Q.string(),Q.string())}).describe("Updates environment variables at runtime.")),OW=L(()=>Q.union([iZ(),lZ(),aZ(),nZ(),tZ(),pQ(),M9(),sZ()])),EW=L(()=>Q.union([gZ(),pQ(),tZ(),sZ(),T9()]));x9();VQ();C9();cQ();S9();R9();jQ();GQ();k9();B0();hZ();u9();jQ();p9();jQ();var h9=/\u2028|\u2029/g;function I9(Y){return Y.replace(h9,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function eZ(Y){return I9(s(Y))}var c9="SandboxNetworkAccess";function m9(Y){if(!Y)return;if(Y.type==="classifier")return Y.reason;switch(Y.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Y.reason}}function d9(Y,Z,W,X){let K;try{K=Y.getActivityDescription?.(Z)??Y.getToolUseSummary?.(Z)??Y.userFacingName(Z)}catch{K=Y.name}return{tool_name:Y.name,action_description:K,tool_use_id:W,request_id:X,input:Z}}var g9=1000;class l9{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new J0;constructor(Y,Z){this.input=Y;this.replayUserMessages=Z;this.input=Y,this.structuredInput=this.read()}trackResolvedToolUseId(Y){if(Y.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Y.request.tool_use_id),this.resolvedToolUseIds.size>g9){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Y){this.prependedLines.push(s({type:"user",session_id:"",message:{role:"user",content:Y},parent_tool_use_id:null})+`
19
+ `)}async*read(){let Y="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Y=this.prependedLines.join("")+Y,this.prependedLines=[];let W=Y.indexOf(`
20
+ `);if(W===-1)break;let X=Y.slice(0,W);Y=Y.slice(W+1);let K=await this.processLine(X);if(K)X0("info","cli_stdin_message_parsed",{type:K.type}),yield K}}.bind(this);yield*Z();for await(let W of this.input)Y+=W,yield*Z();if(Y){let W=await this.processLine(Y);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Y)=>Y.request).filter((Y)=>Y.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Y){this.unexpectedResponseCallback=Y}injectControlResponse(Y){let Z=Y.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Y.response.subtype==="error")W.reject(Error(Y.response.error));else{let X=Y.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(K){W.reject(K)}else W.resolve({})}}setOnControlRequestSent(Y){this.onControlRequestSent=Y}setOnControlRequestResolved(Y){this.onControlRequestResolved=Y}async processLine(Y){if(!Y)return;try{let Z=v0(Y0(Y));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[K,J]of Object.entries(Z.variables))process.env[K]=J;T(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)G0(X,"completed");let K=this.pendingRequests.get(Z.response.request_id);if(!K){let V=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof V==="string"&&this.resolvedToolUseIds.has(V)){T(`Ignoring duplicate control_response for already-resolved toolUseID=${V} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(K.request),this.pendingRequests.delete(Z.response.request_id),K.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){K.reject(Error(Z.response.error));return}let J=Z.response.response;if(K.schema)try{K.resolve(K.schema.parse(J))}catch(G){K.reject(G)}else K.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){T(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)Q0("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;let W=Z.message;if(W.role!=="user")Q0(`Error: Expected message role 'user', got '${String(W.role)}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Y}: ${Z}`),process.exit(1)}}async write(Y){W0(eZ(Y)+`
21
+ `)}async sendRequest(Y,Z,W,X=uQ()){let K={type:"control_request",request_id:X,request:Y};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(K),Y.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(K);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let G=this.pendingRequests.get(X);if(G)this.trackResolvedToolUseId(G.request),G.reject(new Z0)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((G,V)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Y},resolve:(B)=>{G(B)},reject:V,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Y){return async(Z,W,X,K,J,G)=>{let V=G??await K0(Z,W,X,K,J);if(V.behavior==="allow"||V.behavior==="deny")return V;let B=new AbortController,v=X.abortController.signal,N=()=>B.abort();v.addEventListener("abort",N,{once:!0});try{let w=a9(Z.name,J,W,X,V.suggestions).then((h)=>({source:"hook",decision:h})),O=uQ();Y?.(d9(Z,W,J,O));let $=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:V.suggestions,blocked_path:V.blockedPath,decision_reason:m9(V.decisionReason),tool_use_id:J,agent_id:X.agentId},SQ(),B.signal,O).then((h)=>({source:"sdk",result:h})),z=await Promise.race([w,$]);if(z.source==="hook"){if(z.decision)return $.catch(()=>{}),B.abort(),z.decision;let h=await $;return EQ(h.result,Z,W,X)}return EQ(z.result,Z,W,X)}catch(w){return EQ({behavior:"deny",message:`Tool permission request failed: ${w}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)H0("running");v.removeEventListener("abort",N)}}}createHookCallback(Y,Z){return{type:"callback",timeout:Z,callback:async(W,X,K)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Y,input:W,tool_use_id:X||void 0},V0(),K)}catch(J){return console.error(`Error in hook callback ${Y}:`,J),{}}}}}async handleElicitation(Y,Z,W,X,K,J,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Y,message:Z,mode:K,url:J,elicitation_id:G,requested_schema:W},oZ(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Y)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:c9,input:{host:Y.host},tool_use_id:uQ(),description:`Allow network connection to ${Y.host}?`},SQ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Y,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Y,message:Z},Q.object({mcp_response:Q.any()}))).mcp_response}}function Q0(Y){console.error(Y),process.exit(1)}async function a9(Y,Z,W,X,K){let G=X.getAppState().toolPermissionContext.mode,V=N0(Y,Z,W,X,G,K,X.abortController.signal);for await(let B of V)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let v=B.permissionRequestResult;if(v.behavior==="allow"){let N=v.updatedInput||W,w=v.updatedPermissions??[];if(w.length>0){OQ(w);let O=X.getAppState(),$=yQ(O.toolPermissionContext,w);X.setAppState((z)=>{if(z.toolPermissionContext===$)return z;return{...z,toolPermissionContext:$}})}return{behavior:"allow",updatedInput:N,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:v.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Q();Q6();s9();e9();r9();B0();_0();i9();_Q();t9();o9();import{randomUUID as Z6}from"crypto";JQ();_Q();import{randomUUID as n9}from"crypto";function z0(Y,Z,W,X,K,J,G){let V=n9();if(L0(V),Z.length>0){let v=typeof Y==="string"?Y.trim()?[{type:"text",text:Y}]:[]:Y;return{messages:[r({content:[...v,...Z],uuid:K,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:G||void 0}),...X],shouldQuery:!0}}return{messages:[r({content:Y,uuid:K,permissionMode:J,isMeta:G||void 0}),...X],shouldQuery:!0}}async function HX({input:Y,mode:Z,setToolJSX:W,context:X,pastedContents:K,ideSelection:J,messages:G,setUserInputOnProcessing:V,uuid:B,isAlreadyProcessing:v,querySource:N,canUseTool:w,skipSlashCommands:O,bridgeOrigin:$,isMeta:z,skipAttachments:h}){let E=typeof Y==="string"?Y:null;if(Z==="prompt"&&E!==null&&!z)V?.(E);g("query_process_user_input_base_start");let D=X.getAppState(),_=await Y6(Y,Z,W,X,K,J,G,B,v,N,w,D.toolPermissionContext.mode,O,$,z,h);if(g("query_process_user_input_base_end"),!_.shouldQuery)return _;g("query_hooks_start");let R=w0(Y)||"";for await(let F of M0(R,D.toolPermissionContext.mode,X,X.requestPrompt)){if(F.message?.type==="progress")continue;if(F.blockingError){let U=f0(F.blockingError);return{messages:[E0(`${U}
22
+
23
+ Original prompt: ${Y}`,"warning")],shouldQuery:!1,allowedTools:_.allowedTools}}if(F.preventContinuation){let U=F.stopReason?`Operation stopped by hook: ${F.stopReason}`:"Operation stopped by hook";return _.messages.push(r({content:U})),_.shouldQuery=!1,_}if(F.additionalContexts&&F.additionalContexts.length>0)_.messages.push(D0({type:"hook_additional_context",content:F.additionalContexts.map(q0),hookName:"UserPromptSubmit",toolUseID:`hook-${Z6()}`,hookEvent:"UserPromptSubmit"}));let j=F.message;if(j&&j.type==="attachment")switch(j.attachment.type){case"hook_success":if(!j.attachment.content)break;_.messages.push({...j,attachment:{...j.attachment,content:q0(j.attachment.content)}});break;default:_.messages.push(j);break}else if(j)_.messages.push(j)}return g("query_hooks_end"),_}var mQ=1e4;function q0(Y){if(Y.length>mQ)return`${Y.substring(0,mQ)}… [output truncated - exceeded ${mQ} characters]`;return Y}async function Y6(Y,Z,W,X,K,J,G,V,B,v,N,w,O,$,z,h){let E=null,D=[],_=[],R=Y;if(typeof Y==="string")E=Y;else if(Y.length>0){g("query_image_processing_start");let q=[];for(let P of Y)if(P.type==="image"){let H=await lQ(P);if(H.dimensions){let l=UQ(H.dimensions);if(l)_.push(l)}q.push(H.block)}else q.push(P);R=q,g("query_image_processing_end");let b=q[q.length-1];if(b?.type==="text")E=b.text,D=q.slice(0,-1);else D=q}if(E===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let F=K?Object.values(K).filter(U0):[],j=F.map((q)=>q.id),U=K?await A0(K):new Map;g("query_pasted_image_processing_start");let c=await Promise.all(F.map(async(q)=>{let b={type:"image",source:{type:"base64",media_type:q.mediaType||"image/png",data:q.content}};return{resized:await lQ(b),originalDimensions:q.dimensions,sourcePath:q.sourcePath??U.get(q.id)}})),d=[];for(let{resized:q,originalDimensions:b,sourcePath:P}of c){if(q.dimensions){let H=UQ(q.dimensions,P);if(H)_.push(H)}else if(b){let H=UQ(b,P);if(H)_.push(H)}else if(P)_.push(`[Image source: ${P}]`);d.push(q.block)}g("query_pasted_image_processing_end");let n=O;if($&&E!==null&&E.startsWith("/")){let q=O0(E),b=q?b0(q.commandName,X.options.commands):void 0;if(b)if(F0(b))n=!1;else{let P=`/${$0(b)} isn't available over Remote Control.`;return{messages:[r({content:E,uuid:V}),j0(`<local-command-stdout>${P}</local-command-stdout>`)],shouldQuery:!1,resultText:P}}}let C=!h&&E!==null&&(Z!=="prompt"||n||!E.startsWith("/"));g("query_attachment_loading_start");let x=C?await y0(P0(E,X,J??null,[],G,v)):[];if(g("query_attachment_loading_end"),E!==null&&Z==="bash"){let{processBashCommand:q}=await import("./processBashCommand-1.1.34-gcydk2hd.mjs");return dQ(await q(E,D,x,X,W),_)}if(E!==null&&!n&&E.startsWith("/")){let{processSlashCommand:q}=await import("./processSlashCommand-1.1.34-a3q257ff.mjs"),b=await q(E,D,d,x,X,W,V,B,N);return dQ(b,_)}if(E!==null&&Z==="prompt"){let q=E.trim(),b=x.find((P)=>P.attachment.type==="agent_mention");if(b){let P=`@agent-${b.attachment.agentType}`,H=q===P,l=q.startsWith(P)&&!H}}return dQ(z0(R,d,j,x,V,w,z),_)}function dQ(Y,Z){if(Z.length>0)Y.messages.push(r({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Y}_0();function vX(Y){if(Y.type!=="user")return;let Z=Y.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Y&&typeof Y.uuid==="string"?Y.uuid:void 0;return{content:Array.isArray(Z)?W6(Z):Z,uuid:W}}function W6(Y){if(!Y.some(T0))return Y;return Y.map((Z)=>{if(!T0(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:h0(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function T0(Y){if(Y.type!=="image"||Y.source?.type!=="base64")return!1;return!Y.source.media_type}JQ();H6();K6();J6();X6();G6();V6();import{randomUUID as N6}from"crypto";function B6(Y){return Y===C0?S0:Y}function EX(Y){let W=x0()?.outputStyle??u0,X={type:"system",subtype:"init",cwd:R0(),session_id:HQ(),tools:Y.tools.map((K)=>B6(K.name)),mcp_servers:Y.mcpClients.map((K)=>({name:K.name,status:K.type})),model:Y.model,permissionMode:Y.permissionMode,slash_commands:Y.commands.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),apiKeySource:p0().source,betas:I0(),claude_code_version:"99.0.0",output_style:W,agents:Y.agents.map((K)=>K.agentType),skills:Y.skills.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),plugins:Y.plugins.map((K)=>({name:K.name,path:K.path,source:K.source})),uuid:N6()};return X.fast_mode_state=k0(Y.model,Y.fastMode),X}x6();JQ();VQ();cQ();R6();C6();DZ();k6();S6();import{isAbsolute as p6,resolve as u6}from"path";function c6(Y,Z,W){let X=[],K=[],J=[];for(let[G,V]of Object.entries(Y)){let B=Z[G],v=yY(V.source,W?.projectRoot);if(!B)X.push(G);else if(V.sourceIsFallback)J.push(G);else if(!wY(v,B.source))K.push({name:G,declaredSource:v,materializedSource:B.source});else J.push(G)}return{missing:X,sourceChanged:K,upToDate:J}}async function YK(Y){let Z=DY();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await _Y()}catch(N){o(N),W={}}let X=c6(Z,W,{projectRoot:ZZ()}),K=[...X.missing.map((N)=>({name:N,source:yY(Z[N].source),action:"install"})),...X.sourceChanged.map(({name:N,declaredSource:w})=>({name:N,source:w,action:"update"}))],J=[],G=[];for(let N of K){if(Y?.skip?.(N.name,N.source)){J.push(N.name);continue}if(N.action==="update"&&qY(N.source)&&!await LY(N.source.path)){T(`[reconcile] '${N.name}' declared path does not exist; keeping materialized entry`),J.push(N.name);continue}G.push(N)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};T(`[reconcile] ${G.length} marketplace(s): ${G.map((N)=>`${N.name}(${N.action})`).join(", ")}`);let V=[],B=[],v=[];for(let N=0;N<G.length;N++){let{name:w,source:O,action:$}=G[N];Y?.onProgress?.({type:"installing",name:w,action:$,index:N+1,total:G.length});try{let z=await AY(O);if($==="install")V.push(w);else B.push(w);Y?.onProgress?.({type:"installed",name:w,alreadyMaterialized:z.alreadyMaterialized})}catch(z){let h=vY(z);v.push({name:w,error:h}),Y?.onProgress?.({type:"failed",name:w,error:h}),o(z)}}return{installed:V,updated:B,failed:v,upToDate:X.upToDate,skipped:J}}function yY(Y,Z){if((Y.source==="directory"||Y.source==="file")&&!p6(Y.path)){let W=Z??ZZ(),X=zY(W);return{...Y,path:u6(X??W,Y.path)}}return Y}
24
+ export{SQ as ha,EQ as ia,eZ as ja,c9 as ka,l9 as la,gY as ma,TZ as na,rY as oa,oY as pa,tY as qa,HX as ra,vX as sa,B6 as ta,EX as ua,c6 as va,YK as wa,w6 as xa,D6 as ya,_6 as za,T6 as Aa,h6 as Ba,I6 as Ca};
@@ -0,0 +1,2 @@
1
+ import{$h as jf,_h as v}from"./cli-1.1.34-ctjatnq8.mjs";import{di as c,fi as bf}from"./cli-1.1.34-7npd3as5.mjs";import{$v as m,AG as M,BG as _f,El as e,Fl as ff,Gj as O,HL as u,Hj as s,IL as $f,JS as Kf,Jm as y,NB as T,OR as g,Ol as W,Om as Gf,Tu as L,UB as Yf,VB as I,VR as l,WB as Zf,Xv as h,dw as Vf,eu as N,fS as Df,fm as zf,fu as E,gS as S,gu as Jf,hS as p,nv as P,pB as C,pm as w,qB as Xf,qv as Qf,tj as H,vm as Bf,wR as A}from"./cli-1.1.34-84707tma.mjs";import{nga as F,sga as t}from"./cli-1.1.34-wwjkncsv.mjs";import{Rka as R,Ska as D,Uoa as x,Xka as K,gna as U,upa as a}from"./cli-1.1.34-qef4zhc3.mjs";import{Fqa as q,Iqa as o}from"./cli-1.1.34-4x915j9t.mjs";import{randomUUID as qf}from"crypto";async function vf({setMessages:V,readFileState:d,discoveredSkillNames:k,loadedNestedMemoryPaths:i,getAppState:G,setAppState:J,setConversationId:X}){let Y=p();await L("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Uf=U(),Q=new Set,Z=[],_=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if(_(f))continue;if(T(f))Q.add(f.agentId),Z.push(f);else if(M(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(v(Q),C(K()),d.clear(),k?.clear(),i?.clear(),J)J((f)=>{let B={};for(let[j,z]of Object.entries(f.tasks)){if(!_(z)){B[j]=z;continue}try{if(z.status==="running"){if(I(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(r){F(r)}N(j)}return{...f,tasks:B,attribution:u(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});w(),g(),x(),c(),m(),h();let n=R();D({setCurrentAsParent:!0}),y(n),await A();for(let f of Z){if(f.status!=="running")continue;E(f.id,H(O(f.agentId)))}{let{saveMode:f}=(S(),q(Df)),{isCoordinatorMode:B}=(ff(),q(e));f(B()?"coordinator":"normal")}let $=W();if($)l($);let b=await P("clear");if(b.length>0)V(()=>b)}var Rf=o(()=>{a();_f();Yf();Zf();s();Vf();$f();Kf();t();bf();Bf();Xf();Qf();S();Jf();Gf();zf();jf()});
2
+ export{vf as Yh,Rf as Zh};
@@ -0,0 +1,2 @@
1
+ import{wb as S,xb as R}from"./cli-1.1.34-d8bccy48.mjs";import{Cb as j}from"./cli-1.1.34-5mg7y1hs.mjs";import{mV as W,nV as A}from"./cli-1.1.34-9z887t80.mjs";import{y6 as T,z6 as F}from"./cli-1.1.34-4zj4kbw4.mjs";import{qja as Q,tja as P}from"./cli-1.1.34-xwg0x7p4.mjs";import{Qja as z,Xja as x}from"./cli-1.1.34-d0sgyvr1.mjs";P();x();A();function f(G){return{write:(J)=>G.write(J),writeBatch:(J)=>G.writeBatch(J),close:()=>G.close(),isConnectedStatus:()=>G.isConnectedStatus(),getStateLabel:()=>G.getStateLabel(),setOnData:(J)=>G.setOnData(J),setOnClose:(J)=>G.setOnClose(J),setOnConnect:(J)=>G.setOnConnect(J),connect:()=>void G.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return G.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function m(G){let{sessionUrl:J,ingressToken:X,sessionId:V,initialSequenceNum:_,getAuthToken:$}=G,O;if($)O=()=>{let B=$();if(!B)return{};return{Authorization:`Bearer ${B}`}};else W(X);let Y=G.epoch??await j(J,X);Q(`[bridge:repl] CCR v2: worker sessionId=${V} epoch=${Y}${G.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let Z=new URL(J);Z.pathname=Z.pathname.replace(/\/$/,"")+"/worker/events/stream";let L=new R(Z,{},V,void 0,_,O),q,K=new S(L,new URL(J),{getAuthHeaders:O,heartbeatIntervalMs:G.heartbeatIntervalMs,heartbeatJitterFraction:G.heartbeatJitterFraction,onEpochMismatch:()=>{Q("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{K.close(),L.close(),q?.(4090)}catch(B){Q(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${z(B)}`,{level:"error"})}throw Error("epoch superseded")}});L.setOnEvent((B)=>{K.reportDelivery(B.event_id,"received"),K.reportDelivery(B.event_id,"processed")});let H,E=!1,M=!1;return{write(B){return K.writeEvent(B)},async writeBatch(B){for(let N of B){if(M)break;await K.writeEvent(N)}},close(){M=!0,K.close(),L.close()},isConnectedStatus(){return E},getStateLabel(){if(L.isClosedStatus())return"closed";if(L.isConnectedStatus())return E?"connected":"init";return"connecting"},setOnData(B){L.setOnData(B)},setOnClose(B){q=B,L.setOnClose((N)=>{K.close(),B(N??4092)})},setOnConnect(B){H=B},getLastSequenceNum(){return L.getLastSequenceNum()},droppedBatchCount:0,reportState(B){K.reportState(B)},reportMetadata(B){K.reportMetadata(B)},reportDelivery(B,N){K.reportDelivery(B,N)},flush(){return K.flush()},connect(){if(!G.outboundOnly)L.connect();K.initialize(Y).then(()=>{E=!0,Q(`[bridge:repl] v2 transport ready for writes (epoch=${Y}, sse=${L.isConnectedStatus()?"open":"opening"})`),H?.()},(B)=>{Q(`[bridge:repl] CCR v2 initialize failed: ${z(B)}`,{level:"error"}),K.close(),L.close(),q?.(4091)})}}}class U{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...G){if(!this._active)return!1;return this._pending.push(...G),!0}drop(){this._active=!1;let G=this._pending.length;return this._pending.length=0,G}deactivate(){this._active=!1}}P();F();var g={maxAttempts:5,baseDelayMs:500,jitterFraction:0.25,maxDelayMs:4000};function I(G,J,X=Math.random){let V=J.baseDelayMs*2**(G-1),_=V*J.jitterFraction*(2*X()-1);return Math.min(V+_,J.maxDelayMs)}async function b(G,J){let{label:X,logPrefix:V="[bridge]",signal:_,isRetryable:$}=J;for(let O=1;O<=J.maxAttempts;O++){let Y=await G();if(Y!==null)return Y;if($&&!$())return Q(`${V} ${X} failed permanently on attempt ${O}/${J.maxAttempts}, not retrying`),null;if(_?.aborted)return Q(`${V} ${X} aborted after attempt ${O}/${J.maxAttempts}`),null;if(O<J.maxAttempts){let Z=I(O,J);Q(`${V} ${X} failed (attempt ${O}/${J.maxAttempts}), retrying in ${Math.round(Z)}ms`),await T(Z)}}return null}
2
+ export{f as pb,m as qb,U as rb,g as sb,b as tb};
@@ -0,0 +1,2 @@
1
+ import{hha as W,kha as M}from"./cli-1.1.34-92kps6jn.mjs";import{cja as k,gja as L}from"./cli-1.1.34-xwg0x7p4.mjs";import J from"node:path";import y from"node:os";import R from"node:process";var S=Object.freeze([""," ",".",".."," .",". "," ..",".. ","../","../foo","foo/../bar","foo/bar","foo\\bar","foo\x00bar"]);function x(u){if(typeof u!=="string")return!1;let O=u.trim();return O!==""&&O!=="."&&O!==".."&&!u.includes("/")&&!u.includes("\\")&&!u.includes("\x00")}function Q(u){if(typeof u!=="string")throw TypeError("Expected a string");if(!x(u))throw Error(`Unsafe filename: ${JSON.stringify(u)}`)}var U=y.homedir(),V=y.tmpdir(),{env:$}=R,w=(u)=>{let O=J.join(U,"Library");return{data:J.join(O,"Application Support",u),config:J.join(O,"Preferences",u),cache:J.join(O,"Caches",u),log:J.join(O,"Logs",u),temp:J.join(V,u)}},F=(u)=>{let O=$.APPDATA||J.join(U,"AppData","Roaming"),K=$.LOCALAPPDATA||J.join(U,"AppData","Local");return{data:J.join(K,u,"Data"),config:J.join(O,u,"Config"),cache:J.join(K,u,"Cache"),log:J.join(K,u,"Log"),temp:J.join(V,u)}},G=(u)=>{let O=J.basename(U);return{data:J.join($.XDG_DATA_HOME||J.join(U,".local","share"),u),config:J.join($.XDG_CONFIG_HOME||J.join(U,".config"),u),cache:J.join($.XDG_CACHE_HOME||J.join(U,".cache"),u),log:J.join($.XDG_STATE_HOME||J.join(U,".local","state"),u),temp:J.join(V,O,u)}};function Y(u,{suffix:O="nodejs"}={}){if(Q(u),O)u+=`-${O}`;if(Q(u),R.platform==="darwin")return w(u);if(R.platform==="win32")return F(u);return G(u)}L();M();import{join as q}from"path";var B=Y("claude-cli"),E=200;function b(u){let O=u.replace(/[^a-zA-Z0-9]/g,"-");if(O.length<=E)return O;return`${O.slice(0,E)}-${Math.abs(W(u)).toString(36)}`}function C(u){return b(u)}var A={baseLogs:()=>q(B.cache,C(k().cwd())),errors:()=>q(B.cache,C(k().cwd()),"errors"),messages:()=>q(B.cache,C(k().cwd()),"messages"),mcpLogs:(u)=>q(B.cache,C(k().cwd()),`mcp-logs-${b(u)}`)};
2
+ export{A as fb};
@@ -0,0 +1,4 @@
1
+ import{DR as n,ER as Xr,MR as s,Mp as L,PM as W,Px as M,QM as Jr,Rx as f,Tx as u,Vp as V,Wx as C,Xx as T,YK as E,YM as o,Yx as d,_x as A,aq as Y,ey as qr,gN as Kr,gS as Zr,jq as jr,kA as O,mN as i,nr as D,pN as Qr,rl as F,rr as kr,sA as Ir,ty as j,uy as zr,vl as Gr}from"./cli-1.1.34-84707tma.mjs";import{nW as l,tW as Wr}from"./cli-1.1.34-fgx6ej2m.mjs";import{GX as I,HX as Sr}from"./cli-1.1.34-59csbz1a.mjs";import{$5 as wr,N5 as $,V3 as H,W3 as B,t4 as yr}from"./cli-1.1.34-yrk4mxjw.mjs";import{v6 as b,w6 as g}from"./cli-1.1.34-7bxexffs.mjs";import{$_ as _,A_ as t,D_ as R,Eaa as m,F_ as G,Kaa as e,P_ as q,Tda as p,Tea as v,Yda as Q,h$ as Z,i$ as c,jea as rr,saa as z,y_ as k}from"./cli-1.1.34-wwjkncsv.mjs";import{qja as U,tja as a}from"./cli-1.1.34-xwg0x7p4.mjs";v();function Pr(r){let y=G().numStartups;R((w)=>{let S=w.tipsHistory??{};if(S[r]===y)return w;return{...w,tipsHistory:{...S,[r]:y}}})}function N(r){let y=G(),w=y.tipsHistory?.[r];if(!w)return 1/0;return y.numStartups-w}g();a();Ir();rr();Wr();Sr();zr();Gr();wr();Xr();v();jr();t();kr();e();qr();yr();c();Qr();Kr();Jr();Zr();_();var X;async function $r(){if(X!==void 0)return X;let r=await o();return X=W in r,X}async function P(r,y,w){if(!await $r())return!1;if(i(`${r}@${W}`))return!1;let{bashTools:S}=y??{};if(w.cli&&S?.size){if(w.cli.some((J)=>S.has(J)))return!0}if(w.filePath&&y?.readFileState){if(D(y.readFileState).some((h)=>w.filePath.test(h)))return!0}return!1}var hr=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return G().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${j("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let r=G();return(r.lastPlanModeUse?(Date.now()-r.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let r=G(),y=Q(),w=Boolean(r.lastPlanModeUse),S=Boolean(y?.permissions?.defaultMode);return w&&!S}catch(r){return U(`Failed to check default-permission-mode-config tip relevance: ${r}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let r=G();return await m()<=1&&r.numStartups>50}catch(r){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${j("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${j("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-source-cycle",content:async()=>`In /diff, ${j("diff:previousSource","DiffDialog","[")} and ${j("diff:nextSource","DiffDialog","]")} cycle what you are reviewing: the working tree, one diff per agent turn, then every stash.`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-line-selection",content:async()=>`Press ${j("diff:select","DiffDialog","v")} in the /diff pane to select lines, then Enter to drop them into your prompt as @file#L12-L30 — dragging the mouse over them does the same.`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-expand-context",content:async()=>`Need more context in /diff? Hit Enter on a "··· N lines" gap to reveal more around it, or ${j("diff:expandAll","DiffDialog","a")} to expand the whole file.`,cooldownSessions:20,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${j("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-changed-files",content:async()=>"The /explorer tree opens with a Changed group — every file git sees as modified, in one flat list at the top.",cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"explorer-editor-ex-commands",content:async()=>"In the /explorer editor, :w saves, :q quits, :wq does both, and :42 jumps to line 42.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-editor-motions",content:async()=>"The /explorer editor speaks vim: dd cuts a line, yy copies, p pastes, u undoes and ctrl+r redoes.",cooldownSessions:20,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let r=G();return r.numStartups>5&&r.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(s())return!1;return await n()>=2}},{id:"terminal-setup",content:async()=>k.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let r=G();if(k.terminal==="Apple_Terminal")return!r.optionAsMetaKeyInstalled;return!r.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>k.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let r=G();return Boolean((k.terminal==="Apple_Terminal"?r.optionAsMetaKeyInstalled:r.shiftEnterKeyBindingInstalled)&&r.numStartups>3)}},{id:"shift-enter-setup",content:async()=>k.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!l())return!1;let r=G();return!(k.terminal==="Apple_Terminal"?r.optionAsMetaKeyInstalled:r.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return G().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&b.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDIN_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>Z()==="windows"&&process.env.CLAUDIN_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>Q().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return G().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${k.terminal==="vscode"?"code":k.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!M())return!1;if(Z()!=="macos")return!1;switch(k.terminal){case"vscode":return!await d();case"cursor":return!await C();case"windsurf":return!await T();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(f())return!1;if((await u()).length!==0)return!1;return(await A()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!G().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!G().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return G().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!k.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>Z()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>E()&&G().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return G().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${j("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${j("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return G().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return G().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${j("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let r=G(),w=H()==="opusplan",S=r.lastPlanModeUse?(Date.now()-r.lastPlanModeUse)/86400000:1/0;return w&&S>3}},{id:"frontend-design-plugin",content:async(r)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
+ ${I("suggestion",r.theme)(`/plugin install frontend-design@${W}`)}`},cooldownSessions:3,isRelevant:async(r)=>P("frontend-design",r,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(r)=>{return`Working with Vercel? Install the vercel plugin:
3
+ ${I("suggestion",r.theme)(`/plugin install vercel@${W}`)}`},cooldownSessions:3,isRelevant:async(r)=>P("vercel",r,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(r)=>{let w=I("suggestion",r.theme)("/effort high");return q("tengu_tide_elm","off")==="copy_b"?`Use ${w} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${w} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;if(!L(B()))return!1;if(p("policySettings")?.effortLevel!==void 0)return!1;if(Y()!==void 0)return!1;let r=V();if(r==="high"||r==="max")return!1;return q("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(r)=>{let y=I("suggestion",r.theme);return q("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${y("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${y('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;return q("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(r)=>{let y=I("suggestion",r.theme);return q("tengu_timber_lark","off")==="copy_b"?`Use ${y("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${y("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;if(!F())return!1;return q("tengu_timber_lark","off")!=="off"}},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return G().numStartups>5}}],Or=[];function Rr(){let y=Q().spinnerTipsOverride;if(!y?.tips?.length)return[];return y.tips.map((w,S)=>({id:`custom-tip-${S}`,content:async()=>w,cooldownSessions:0,isRelevant:async()=>!0}))}async function ar(r){let w=Q().spinnerTipsOverride,S=Rr();if(w?.excludeDefault&&S.length>0)return S;let J=[...hr,...Or],h=await Promise.all(J.map((K)=>K.isRelevant(r)));return[...J.filter((K,x)=>h[x]).filter((K)=>N(K.id)>=K.cooldownSessions),...S]}
4
+ export{Pr as bb,N as cb,ar as db};
@@ -0,0 +1,2 @@
1
+ import{yC as m,zC as e}from"./cli-1.1.34-84707tma.mjs";import{Iqa as n}from"./cli-1.1.34-4x915j9t.mjs";function c(o){t.setState(()=>[...o])}var t,r=()=>t.getState(),d;var s=n(()=>{e();t=m([]),d=t.subscribe});
2
+ export{r as Sc,d as Tc,c as Uc,s as Vc};
@@ -0,0 +1,15 @@
1
+ import{Gqa as T,Iqa as J5,Jqa as M}from"./cli-1.1.34-4x915j9t.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
2
+ ]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
3
+ Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
4
+ Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
5
+ The chosen QR Code version cannot contain this amount of data.
6
+ Minimum version required to store current data is: `+F+`.
7
+ `);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
8
+ `);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
9
+ `}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
10
+ `;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
11
+ `}if(U+=R+`
12
+ `,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
13
+ `+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
14
+ `;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
15
+ export{T5 as te,X5 as ue};