@claudiolabs/claudin 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) hide show
  1. package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +1 -0
  2. package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +1 -0
  31. package/dist/chunks/agents-1.1.2-n6dejn00.mjs +3 -0
  32. package/dist/chunks/agents-1.1.2-rxkey856.mjs +110 -0
  33. package/dist/chunks/api-1.1.2-fpd74byc.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +1 -0
  36. package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +1 -0
  37. package/dist/chunks/auth-1.1.2-s45hhsck.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +1 -0
  41. package/dist/chunks/branch-1.1.2-exyc66rb.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +1 -0
  47. package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +4 -0
  52. package/dist/chunks/caches-1.1.2-s4tektt8.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +1 -0
  55. package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +1 -0
  57. package/dist/chunks/cli-1.1.2-00hggnnf.mjs +9 -0
  58. package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +2 -0
  59. package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +2 -0
  60. package/dist/chunks/cli-1.1.2-0q8k3447.mjs +2 -0
  61. package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +2 -0
  62. package/dist/chunks/cli-1.1.2-12xajsdg.mjs +2 -0
  63. package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +2 -0
  64. package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +2 -0
  65. package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +133 -0
  66. package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +2 -0
  67. package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +2 -0
  68. package/dist/chunks/cli-1.1.2-22w1aakd.mjs +17 -0
  69. package/dist/chunks/cli-1.1.2-26xrf159.mjs +2 -0
  70. package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +25 -0
  71. package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +3 -0
  72. package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +4 -0
  73. package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +2 -0
  74. package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +15 -0
  75. package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +3 -0
  76. package/dist/chunks/cli-1.1.2-312r29db.mjs +2 -0
  77. package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +2 -0
  78. package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +24 -0
  79. package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +2 -0
  80. package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +2 -0
  81. package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +2 -0
  82. package/dist/chunks/cli-1.1.2-3vhc8676.mjs +2 -0
  83. package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +2 -0
  84. package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +2 -0
  85. package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +2 -0
  86. package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +2 -0
  87. package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +6 -0
  88. package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +67 -0
  89. package/dist/chunks/cli-1.1.2-51pdt76x.mjs +2 -0
  90. package/dist/chunks/cli-1.1.2-526csky8.mjs +2 -0
  91. package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +12 -0
  92. package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +25 -0
  93. package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +2 -0
  94. package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +2 -0
  95. package/dist/chunks/cli-1.1.2-61nmeckv.mjs +4 -0
  96. package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +2 -0
  97. package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +2 -0
  98. package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +5638 -0
  99. package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +2 -0
  100. package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +18 -0
  101. package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +7 -0
  102. package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +2 -0
  103. package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +2 -0
  104. package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +2 -0
  105. package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +2 -0
  106. package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +2 -0
  107. package/dist/chunks/cli-1.1.2-7swa79jc.mjs +24 -0
  108. package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +20 -0
  109. package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +2 -0
  110. package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +2 -0
  111. package/dist/chunks/cli-1.1.2-8trsbckp.mjs +2 -0
  112. package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +3 -0
  113. package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +2 -0
  114. package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +2 -0
  115. package/dist/chunks/cli-1.1.2-99rcxvch.mjs +2 -0
  116. package/dist/chunks/cli-1.1.2-9ash84j3.mjs +2 -0
  117. package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +2 -0
  118. package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +2 -0
  119. package/dist/chunks/cli-1.1.2-a69xymn7.mjs +2 -0
  120. package/dist/chunks/cli-1.1.2-a9n9p929.mjs +2 -0
  121. package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +2 -0
  122. package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +4 -0
  123. package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +2 -0
  124. package/dist/chunks/cli-1.1.2-ax711ayq.mjs +2 -0
  125. package/dist/chunks/cli-1.1.2-b850wzhk.mjs +2 -0
  126. package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +21 -0
  127. package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +4 -0
  128. package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +2 -0
  129. package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +2 -0
  130. package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +2 -0
  131. package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +4 -0
  132. package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +2 -0
  133. package/dist/chunks/cli-1.1.2-dg1134n2.mjs +2 -0
  134. package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +4 -0
  135. package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +2 -0
  136. package/dist/chunks/cli-1.1.2-efe0402v.mjs +2 -0
  137. package/dist/chunks/cli-1.1.2-em7hye78.mjs +4 -0
  138. package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +2 -0
  139. package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +2 -0
  140. package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +2 -0
  141. package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +16 -0
  142. package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +2 -0
  143. package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +2 -0
  144. package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +2 -0
  145. package/dist/chunks/cli-1.1.2-fnp913tz.mjs +2 -0
  146. package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +2 -0
  147. package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +15 -0
  148. package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +3 -0
  149. package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +2 -0
  150. package/dist/chunks/cli-1.1.2-g3ms995y.mjs +2 -0
  151. package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +24 -0
  152. package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +2 -0
  153. package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +2 -0
  154. package/dist/chunks/cli-1.1.2-gdcv810d.mjs +2 -0
  155. package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +2 -0
  156. package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +2 -0
  157. package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +6 -0
  158. package/dist/chunks/cli-1.1.2-gws9nr18.mjs +9 -0
  159. package/dist/chunks/cli-1.1.2-gxzwceae.mjs +2 -0
  160. package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +4 -0
  161. package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +2 -0
  162. package/dist/chunks/cli-1.1.2-h9csstnw.mjs +2 -0
  163. package/dist/chunks/cli-1.1.2-hpx774ph.mjs +3 -0
  164. package/dist/chunks/cli-1.1.2-hzaqg545.mjs +17 -0
  165. package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +2 -0
  166. package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +59 -0
  167. package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +2 -0
  168. package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +3 -0
  169. package/dist/chunks/cli-1.1.2-jxkffay4.mjs +2 -0
  170. package/dist/chunks/cli-1.1.2-k077a0s0.mjs +2 -0
  171. package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +2 -0
  172. package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +2 -0
  173. package/dist/chunks/cli-1.1.2-k61a86d8.mjs +3 -0
  174. package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +2 -0
  175. package/dist/chunks/cli-1.1.2-kav702qr.mjs +2 -0
  176. package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +2 -0
  177. package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +3 -0
  178. package/dist/chunks/cli-1.1.2-kq402xqd.mjs +2 -0
  179. package/dist/chunks/cli-1.1.2-m0529q09.mjs +45 -0
  180. package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +18 -0
  181. package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +2 -0
  182. package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +2 -0
  183. package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +2 -0
  184. package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +12 -0
  185. package/dist/chunks/cli-1.1.2-mr55880g.mjs +2 -0
  186. package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +2 -0
  187. package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +2 -0
  188. package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +2 -0
  189. package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +2 -0
  190. package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +5 -0
  191. package/dist/chunks/cli-1.1.2-p8amxd73.mjs +4 -0
  192. package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +2 -0
  193. package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +2 -0
  194. package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +2 -0
  195. package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +2 -0
  196. package/dist/chunks/cli-1.1.2-qm56km1n.mjs +4 -0
  197. package/dist/chunks/cli-1.1.2-qxjs641v.mjs +2 -0
  198. package/dist/chunks/cli-1.1.2-r32per66.mjs +2 -0
  199. package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +2 -0
  200. package/dist/chunks/cli-1.1.2-re4qc97z.mjs +6 -0
  201. package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +2 -0
  202. package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +2 -0
  203. package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +8 -0
  204. package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +15 -0
  205. package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +2 -0
  206. package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +2 -0
  207. package/dist/chunks/cli-1.1.2-s6et33a5.mjs +2 -0
  208. package/dist/chunks/cli-1.1.2-s76jqr70.mjs +2 -0
  209. package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +2 -0
  210. package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +34 -0
  211. package/dist/chunks/cli-1.1.2-se3yz188.mjs +2 -0
  212. package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +2 -0
  213. package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +133 -0
  214. package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +2 -0
  215. package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +2 -0
  216. package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +2 -0
  217. package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +2 -0
  218. package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +12 -0
  219. package/dist/chunks/cli-1.1.2-tkr9thek.mjs +6 -0
  220. package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +2 -0
  221. package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +2 -0
  222. package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +2 -0
  223. package/dist/chunks/cli-1.1.2-v5aq687d.mjs +4 -0
  224. package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +2 -0
  225. package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +3 -0
  226. package/dist/chunks/cli-1.1.2-vedfryrw.mjs +39 -0
  227. package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +2 -0
  228. package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +2 -0
  229. package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +2 -0
  230. package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +5 -0
  231. package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +2 -0
  232. package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +2 -0
  233. package/dist/chunks/cli-1.1.2-wfh9694n.mjs +42 -0
  234. package/dist/chunks/cli-1.1.2-whyrn26g.mjs +2 -0
  235. package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +2 -0
  236. package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +2 -0
  237. package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +58 -0
  238. package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +3 -0
  239. package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +50 -0
  240. package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +2 -0
  241. package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +2 -0
  242. package/dist/chunks/cli-1.1.2-xrfe457w.mjs +2 -0
  243. package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +2 -0
  244. package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +12 -0
  245. package/dist/chunks/cli-1.1.2-yajs5n37.mjs +18 -0
  246. package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +2 -0
  247. package/dist/chunks/cli-1.1.2-yj8m159m.mjs +2 -0
  248. package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +2 -0
  249. package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +202 -0
  250. package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +3 -0
  251. package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +2 -0
  252. package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +1 -0
  253. package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +2 -0
  254. package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +2 -0
  255. package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +6 -0
  256. package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +3 -0
  257. package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +2 -0
  258. package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +2 -0
  259. package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +2 -0
  260. package/dist/chunks/client-1.1.2-cfb4as3w.mjs +1 -0
  261. package/dist/chunks/color-1.1.2-1sf55h7k.mjs +1 -0
  262. package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +3 -0
  263. package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +1 -0
  264. package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +1 -0
  265. package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +1 -0
  266. package/dist/chunks/context-1.1.2-rw4msk80.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +1 -0
  270. package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +9 -0
  271. package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +1 -0
  274. package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.2-egp65wej.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +1 -0
  278. package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +1 -0
  279. package/dist/chunks/diff-1.1.2-29snp7ez.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +1 -0
  283. package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +13 -0
  284. package/dist/chunks/engine-1.1.2-071c5ycx.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +1 -0
  288. package/dist/chunks/environments-1.1.2-e0a09brc.mjs +1 -0
  289. package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +1 -0
  292. package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +1 -0
  294. package/dist/chunks/export-1.1.2-2m0sfme0.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +1 -0
  297. package/dist/chunks/fast-1.1.2-43wzezv3.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.2-92k099e0.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +1 -0
  300. package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +1 -0
  302. package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +4 -0
  303. package/dist/chunks/grove-1.1.2-74zq9th4.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +1 -0
  305. package/dist/chunks/headless-1.1.2-rhab73x2.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +6 -0
  307. package/dist/chunks/help-1.1.2-er6xvvy0.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +1 -0
  311. package/dist/chunks/ide-1.1.2-je812srr.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +1 -0
  314. package/dist/chunks/index-1.1.2-3evh58r7.mjs +1 -0
  315. package/dist/chunks/index-1.1.2-69bhefzj.mjs +1 -0
  316. package/dist/chunks/index-1.1.2-7kya3jrk.mjs +1 -0
  317. package/dist/chunks/index-1.1.2-7sphewt0.mjs +5 -0
  318. package/dist/chunks/index-1.1.2-947wna4y.mjs +1 -0
  319. package/dist/chunks/index-1.1.2-95c20hmc.mjs +1 -0
  320. package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +1 -0
  321. package/dist/chunks/index-1.1.2-bvpaf73z.mjs +2 -0
  322. package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +1 -0
  323. package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +9 -0
  324. package/dist/chunks/index-1.1.2-htmnqkfh.mjs +1 -0
  325. package/dist/chunks/index-1.1.2-kdaazhrb.mjs +1 -0
  326. package/dist/chunks/index-1.1.2-kzzb5289.mjs +1 -0
  327. package/dist/chunks/index-1.1.2-madt9yt1.mjs +1 -0
  328. package/dist/chunks/index-1.1.2-mvhaw48f.mjs +2 -0
  329. package/dist/chunks/index-1.1.2-pzx0977r.mjs +1 -0
  330. package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +1 -0
  331. package/dist/chunks/index-1.1.2-s1rqf88d.mjs +1 -0
  332. package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +1 -0
  333. package/dist/chunks/index-1.1.2-thaazk19.mjs +17 -0
  334. package/dist/chunks/index-1.1.2-wey7e6ag.mjs +30 -0
  335. package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +1 -0
  336. package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +9 -0
  337. package/dist/chunks/init-1.1.2-85zbvgkj.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +1 -0
  339. package/dist/chunks/ink-1.1.2-dqpj9964.mjs +1 -0
  340. package/dist/chunks/insights-1.1.2-y73zf53m.mjs +870 -0
  341. package/dist/chunks/install-1.1.2-89hhj53e.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +1 -0
  352. package/dist/chunks/log-1.1.2-8cc3djq5.mjs +1 -0
  353. package/dist/chunks/main-1.1.2-th8b6kt4.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +17 -0
  357. package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +4 -0
  358. package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +1 -0
  359. package/dist/chunks/memory-1.1.2-habj4cwz.mjs +72 -0
  360. package/dist/chunks/model-1.1.2-vdjmatpe.mjs +1 -0
  361. package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +2 -0
  362. package/dist/chunks/node-1.1.2-msn09mvf.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.2-95md8es8.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +1 -0
  368. package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +1 -0
  369. package/dist/chunks/passes-1.1.2-z98me43k.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +1 -0
  372. package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +1 -0
  373. package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +2 -0
  378. package/dist/chunks/print-1.1.2-9xz8kk84.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +1 -0
  380. package/dist/chunks/process-1.1.2-4ha9kngp.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.2-exabd70s.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +13 -0
  387. package/dist/chunks/provider-1.1.2-q784s7t1.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +34 -0
  392. package/dist/chunks/registry-1.1.2-bteqae43.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +1 -0
  398. package/dist/chunks/rename-1.1.2-99a39m1m.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +1 -0
  401. package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +1 -0
  407. package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +1 -0
  411. package/dist/chunks/settings-1.1.2-nf07eg97.mjs +1 -0
  412. package/dist/chunks/setup-1.1.2-5f344krn.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +1 -0
  414. package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +1 -0
  417. package/dist/chunks/state-1.1.2-4stfxgxw.mjs +1 -0
  418. package/dist/chunks/stats-1.1.2-x2men93c.mjs +6 -0
  419. package/dist/chunks/status-1.1.2-k6342tq7.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +1 -0
  427. package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +1 -0
  432. package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +69 -0
  435. package/dist/chunks/types-1.1.2-vst16v9y.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +4 -0
  437. package/dist/chunks/update-1.1.2-7daxbkja.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +1 -0
  439. package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +1 -0
  442. package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +1 -0
  443. package/dist/chunks/util-1.1.2-790z163z.mjs +1 -0
  444. package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +1 -0
  445. package/dist/chunks/vim-1.1.2-c8e520z8.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.1-s78q59z8.mjs +0 -1
  456. package/dist/chunks/App-1.1.1-efs19kgh.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.1-batyxczq.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.1-gxh3rb0c.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.1-xn0ghhf8.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.1-myj4gs4r.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.1-1f2wwv81.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.1-915bc3fz.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.1-zvp5dxyf.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.1-j54rpjza.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.1-my62gkan.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.1-shq78y5c.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.1-f7y0hygx.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.1-875g6ewa.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.1-1e52f3nk.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.1-f7qyyszc.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.1-ns4dbmkj.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.1-491ha27w.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.1-kkw6hq2j.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.1-whkx0y5w.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.1-j6jzkdg3.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.1-b37cg7xp.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.1-52gwqn04.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.1-83ejnp5w.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.1-4hre6f8b.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.1-7tb8517v.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.1-z9y2cj95.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.1-3c8p876v.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.1-z9eg0949.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.1-hnfrh305.mjs +0 -1
  485. package/dist/chunks/agents-1.1.1-hf8w814g.mjs +0 -3
  486. package/dist/chunks/agents-1.1.1-xqrqkwb5.mjs +0 -110
  487. package/dist/chunks/api-1.1.1-934f8zxk.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.1-e8353bvt.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.1-mzpss3sh.mjs +0 -1
  490. package/dist/chunks/auth-1.1.1-8xse81z1.mjs +0 -1
  491. package/dist/chunks/auth-1.1.1-9f3cp9gp.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.1-15ahwpy1.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.1-81k0pg1h.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.1-pndv2vca.mjs +0 -1
  495. package/dist/chunks/branch-1.1.1-wyjy4jfq.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.1-fz27rnbb.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.1-1srg7w12.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.1-hpve37v3.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.1-va485rwj.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.1-4e6545em.mjs +0 -1
  501. package/dist/chunks/btw-1.1.1-2hj5cz16.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.1-mbavcpyj.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.1-5brj0j0a.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.1-cy6xfej9.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.1-01qjcc1e.mjs +0 -4
  506. package/dist/chunks/caches-1.1.1-vcss5vxp.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.1-827j42dz.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.1-5j35wnk1.mjs +0 -1
  509. package/dist/chunks/clear-1.1.1-eb6r6tee.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.1-a2zg5e0p.mjs +0 -1
  511. package/dist/chunks/cli-1.1.1-01gn0bc1.mjs +0 -2
  512. package/dist/chunks/cli-1.1.1-01nvax13.mjs +0 -2
  513. package/dist/chunks/cli-1.1.1-05m3jbze.mjs +0 -2
  514. package/dist/chunks/cli-1.1.1-0eqyjkcc.mjs +0 -2
  515. package/dist/chunks/cli-1.1.1-0hn5dj2w.mjs +0 -2
  516. package/dist/chunks/cli-1.1.1-0rnw8vxn.mjs +0 -2
  517. package/dist/chunks/cli-1.1.1-0xwez66d.mjs +0 -67
  518. package/dist/chunks/cli-1.1.1-0xz1de77.mjs +0 -2
  519. package/dist/chunks/cli-1.1.1-152wk4rk.mjs +0 -2
  520. package/dist/chunks/cli-1.1.1-1987jcbz.mjs +0 -5
  521. package/dist/chunks/cli-1.1.1-19wm2xn6.mjs +0 -2
  522. package/dist/chunks/cli-1.1.1-1q3ezkgp.mjs +0 -4
  523. package/dist/chunks/cli-1.1.1-1rn8sc8r.mjs +0 -2
  524. package/dist/chunks/cli-1.1.1-1zr9ww4h.mjs +0 -2
  525. package/dist/chunks/cli-1.1.1-2b66vsz3.mjs +0 -3
  526. package/dist/chunks/cli-1.1.1-2ck5yx9f.mjs +0 -18
  527. package/dist/chunks/cli-1.1.1-2eervm4j.mjs +0 -2
  528. package/dist/chunks/cli-1.1.1-2g0asdx9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.1-2hr65a5m.mjs +0 -4
  530. package/dist/chunks/cli-1.1.1-2jscs5ek.mjs +0 -2
  531. package/dist/chunks/cli-1.1.1-2r6j3hc2.mjs +0 -2
  532. package/dist/chunks/cli-1.1.1-2wmsmw96.mjs +0 -2
  533. package/dist/chunks/cli-1.1.1-2xecrgas.mjs +0 -2
  534. package/dist/chunks/cli-1.1.1-2y2npk6a.mjs +0 -2
  535. package/dist/chunks/cli-1.1.1-2yqkaj2a.mjs +0 -4
  536. package/dist/chunks/cli-1.1.1-38kc1r2d.mjs +0 -2
  537. package/dist/chunks/cli-1.1.1-3avcamf3.mjs +0 -39
  538. package/dist/chunks/cli-1.1.1-3fb7zat9.mjs +0 -9
  539. package/dist/chunks/cli-1.1.1-3nhzbd0x.mjs +0 -2
  540. package/dist/chunks/cli-1.1.1-3pspjtmp.mjs +0 -18
  541. package/dist/chunks/cli-1.1.1-3wx8xt0d.mjs +0 -2
  542. package/dist/chunks/cli-1.1.1-3y91rx7d.mjs +0 -2
  543. package/dist/chunks/cli-1.1.1-3yhgq98b.mjs +0 -2
  544. package/dist/chunks/cli-1.1.1-3yk5zm2a.mjs +0 -2
  545. package/dist/chunks/cli-1.1.1-3zwjajhq.mjs +0 -2
  546. package/dist/chunks/cli-1.1.1-4232y84r.mjs +0 -2
  547. package/dist/chunks/cli-1.1.1-48eqv75k.mjs +0 -202
  548. package/dist/chunks/cli-1.1.1-4exyd7ra.mjs +0 -2
  549. package/dist/chunks/cli-1.1.1-4j7t9vcq.mjs +0 -2
  550. package/dist/chunks/cli-1.1.1-4nf2hftc.mjs +0 -24
  551. package/dist/chunks/cli-1.1.1-51qpx7j4.mjs +0 -2
  552. package/dist/chunks/cli-1.1.1-5a13gyb4.mjs +0 -2
  553. package/dist/chunks/cli-1.1.1-5yv8wq29.mjs +0 -2
  554. package/dist/chunks/cli-1.1.1-6121wy9f.mjs +0 -3
  555. package/dist/chunks/cli-1.1.1-6587ae95.mjs +0 -2
  556. package/dist/chunks/cli-1.1.1-65apqfps.mjs +0 -2
  557. package/dist/chunks/cli-1.1.1-6h5x77nq.mjs +0 -2
  558. package/dist/chunks/cli-1.1.1-6n2sxzhk.mjs +0 -2
  559. package/dist/chunks/cli-1.1.1-6tztmxpt.mjs +0 -2
  560. package/dist/chunks/cli-1.1.1-6wwgxn4p.mjs +0 -2
  561. package/dist/chunks/cli-1.1.1-6zke1wc8.mjs +0 -2
  562. package/dist/chunks/cli-1.1.1-71h16h6t.mjs +0 -4
  563. package/dist/chunks/cli-1.1.1-71vwpynf.mjs +0 -2
  564. package/dist/chunks/cli-1.1.1-774eebcf.mjs +0 -2
  565. package/dist/chunks/cli-1.1.1-783296xh.mjs +0 -6
  566. package/dist/chunks/cli-1.1.1-7bhncvpq.mjs +0 -4
  567. package/dist/chunks/cli-1.1.1-7gkmf39y.mjs +0 -25
  568. package/dist/chunks/cli-1.1.1-7t3w18nd.mjs +0 -2
  569. package/dist/chunks/cli-1.1.1-7x4t5f2a.mjs +0 -2
  570. package/dist/chunks/cli-1.1.1-85rrb9q4.mjs +0 -2
  571. package/dist/chunks/cli-1.1.1-884t9g0f.mjs +0 -2
  572. package/dist/chunks/cli-1.1.1-8ar2s628.mjs +0 -2
  573. package/dist/chunks/cli-1.1.1-8bt9x8md.mjs +0 -2
  574. package/dist/chunks/cli-1.1.1-8g62r2pb.mjs +0 -2
  575. package/dist/chunks/cli-1.1.1-8hpszz5x.mjs +0 -3
  576. package/dist/chunks/cli-1.1.1-8tzp0yrd.mjs +0 -2
  577. package/dist/chunks/cli-1.1.1-8zfnrs72.mjs +0 -2
  578. package/dist/chunks/cli-1.1.1-8zjem87v.mjs +0 -9
  579. package/dist/chunks/cli-1.1.1-8zzt6htb.mjs +0 -3
  580. package/dist/chunks/cli-1.1.1-94s27fva.mjs +0 -2
  581. package/dist/chunks/cli-1.1.1-98h55a72.mjs +0 -2
  582. package/dist/chunks/cli-1.1.1-9kv5a6f4.mjs +0 -2
  583. package/dist/chunks/cli-1.1.1-9p39qc3e.mjs +0 -5638
  584. package/dist/chunks/cli-1.1.1-9q6jbhm6.mjs +0 -6
  585. package/dist/chunks/cli-1.1.1-9rjrg0tv.mjs +0 -7
  586. package/dist/chunks/cli-1.1.1-9rrtz0k2.mjs +0 -2
  587. package/dist/chunks/cli-1.1.1-9syt3cqd.mjs +0 -2
  588. package/dist/chunks/cli-1.1.1-9tqznq04.mjs +0 -6
  589. package/dist/chunks/cli-1.1.1-9w0d3wxf.mjs +0 -2
  590. package/dist/chunks/cli-1.1.1-9wd4xvzd.mjs +0 -2
  591. package/dist/chunks/cli-1.1.1-9xxs59n0.mjs +0 -4
  592. package/dist/chunks/cli-1.1.1-a0pp3xv5.mjs +0 -2
  593. package/dist/chunks/cli-1.1.1-a2aanf2k.mjs +0 -2
  594. package/dist/chunks/cli-1.1.1-a8r32wr9.mjs +0 -2
  595. package/dist/chunks/cli-1.1.1-ajerx2nx.mjs +0 -2
  596. package/dist/chunks/cli-1.1.1-atzkmfy8.mjs +0 -2
  597. package/dist/chunks/cli-1.1.1-b1kqmh2w.mjs +0 -8
  598. package/dist/chunks/cli-1.1.1-b7abx3n7.mjs +0 -2
  599. package/dist/chunks/cli-1.1.1-bb95back.mjs +0 -2
  600. package/dist/chunks/cli-1.1.1-bkqayrk3.mjs +0 -2
  601. package/dist/chunks/cli-1.1.1-bzdx5f9h.mjs +0 -2
  602. package/dist/chunks/cli-1.1.1-bzqzhffr.mjs +0 -4
  603. package/dist/chunks/cli-1.1.1-ck3y4av6.mjs +0 -2
  604. package/dist/chunks/cli-1.1.1-cw6t7x5a.mjs +0 -2
  605. package/dist/chunks/cli-1.1.1-d21wwf9h.mjs +0 -2
  606. package/dist/chunks/cli-1.1.1-d63f9zds.mjs +0 -2
  607. package/dist/chunks/cli-1.1.1-daz59drp.mjs +0 -2
  608. package/dist/chunks/cli-1.1.1-dmd0wakf.mjs +0 -21
  609. package/dist/chunks/cli-1.1.1-e5sc3rwd.mjs +0 -1
  610. package/dist/chunks/cli-1.1.1-ea6eap5z.mjs +0 -2
  611. package/dist/chunks/cli-1.1.1-ebax5r8y.mjs +0 -2
  612. package/dist/chunks/cli-1.1.1-ec3zbk9q.mjs +0 -2
  613. package/dist/chunks/cli-1.1.1-egnem382.mjs +0 -24
  614. package/dist/chunks/cli-1.1.1-ekcthfcd.mjs +0 -25
  615. package/dist/chunks/cli-1.1.1-ex0sqz63.mjs +0 -2
  616. package/dist/chunks/cli-1.1.1-f4f8asne.mjs +0 -12
  617. package/dist/chunks/cli-1.1.1-fnhx5s3j.mjs +0 -18
  618. package/dist/chunks/cli-1.1.1-fwshj75j.mjs +0 -2
  619. package/dist/chunks/cli-1.1.1-g1awxrn4.mjs +0 -4
  620. package/dist/chunks/cli-1.1.1-g69kxy79.mjs +0 -2
  621. package/dist/chunks/cli-1.1.1-g76vwnqj.mjs +0 -2
  622. package/dist/chunks/cli-1.1.1-g7j0r82j.mjs +0 -2
  623. package/dist/chunks/cli-1.1.1-g96by86m.mjs +0 -2
  624. package/dist/chunks/cli-1.1.1-gkynj1h3.mjs +0 -133
  625. package/dist/chunks/cli-1.1.1-gmxcjwmv.mjs +0 -2
  626. package/dist/chunks/cli-1.1.1-gnhxj8zp.mjs +0 -2
  627. package/dist/chunks/cli-1.1.1-gtbama8g.mjs +0 -2
  628. package/dist/chunks/cli-1.1.1-gv6thx1d.mjs +0 -2
  629. package/dist/chunks/cli-1.1.1-h13exkfb.mjs +0 -2
  630. package/dist/chunks/cli-1.1.1-hd439wse.mjs +0 -2
  631. package/dist/chunks/cli-1.1.1-hjpxjf64.mjs +0 -2
  632. package/dist/chunks/cli-1.1.1-hz3enw9q.mjs +0 -5
  633. package/dist/chunks/cli-1.1.1-jebnfazq.mjs +0 -2
  634. package/dist/chunks/cli-1.1.1-jfy1zmx2.mjs +0 -15
  635. package/dist/chunks/cli-1.1.1-jht24afj.mjs +0 -2
  636. package/dist/chunks/cli-1.1.1-jhxy6tyz.mjs +0 -2
  637. package/dist/chunks/cli-1.1.1-jtdjbvbn.mjs +0 -50
  638. package/dist/chunks/cli-1.1.1-jv6s649f.mjs +0 -3
  639. package/dist/chunks/cli-1.1.1-jvcpm7sm.mjs +0 -58
  640. package/dist/chunks/cli-1.1.1-kb84b41j.mjs +0 -45
  641. package/dist/chunks/cli-1.1.1-kbqy5x92.mjs +0 -2
  642. package/dist/chunks/cli-1.1.1-kembhhn1.mjs +0 -3
  643. package/dist/chunks/cli-1.1.1-kwhspda1.mjs +0 -2
  644. package/dist/chunks/cli-1.1.1-ma5v2jch.mjs +0 -2
  645. package/dist/chunks/cli-1.1.1-matkcn4v.mjs +0 -3
  646. package/dist/chunks/cli-1.1.1-mfkfar88.mjs +0 -2
  647. package/dist/chunks/cli-1.1.1-mqrbnazn.mjs +0 -2
  648. package/dist/chunks/cli-1.1.1-mqx6avyz.mjs +0 -4
  649. package/dist/chunks/cli-1.1.1-mxx5vd6y.mjs +0 -2
  650. package/dist/chunks/cli-1.1.1-mymbst6p.mjs +0 -4
  651. package/dist/chunks/cli-1.1.1-n5zzg2fv.mjs +0 -2
  652. package/dist/chunks/cli-1.1.1-n70wqfbp.mjs +0 -2
  653. package/dist/chunks/cli-1.1.1-n7mc6bx5.mjs +0 -2
  654. package/dist/chunks/cli-1.1.1-npd8k2hb.mjs +0 -2
  655. package/dist/chunks/cli-1.1.1-nrfj4jj5.mjs +0 -6
  656. package/dist/chunks/cli-1.1.1-ntngssqy.mjs +0 -2
  657. package/dist/chunks/cli-1.1.1-nwg10cz1.mjs +0 -2
  658. package/dist/chunks/cli-1.1.1-p6v0z6hs.mjs +0 -2
  659. package/dist/chunks/cli-1.1.1-ped3g2j0.mjs +0 -16
  660. package/dist/chunks/cli-1.1.1-q40shhn8.mjs +0 -2
  661. package/dist/chunks/cli-1.1.1-q9wvkkjf.mjs +0 -59
  662. package/dist/chunks/cli-1.1.1-qfasf488.mjs +0 -3
  663. package/dist/chunks/cli-1.1.1-qx9beg4x.mjs +0 -2
  664. package/dist/chunks/cli-1.1.1-r0ewpxvn.mjs +0 -2
  665. package/dist/chunks/cli-1.1.1-r6d3a12p.mjs +0 -2
  666. package/dist/chunks/cli-1.1.1-r6rebhmb.mjs +0 -6
  667. package/dist/chunks/cli-1.1.1-r9nn4cq9.mjs +0 -2
  668. package/dist/chunks/cli-1.1.1-rcxk0q47.mjs +0 -3
  669. package/dist/chunks/cli-1.1.1-rd13jv1m.mjs +0 -2
  670. package/dist/chunks/cli-1.1.1-rkjpq1rt.mjs +0 -2
  671. package/dist/chunks/cli-1.1.1-rrfnctm7.mjs +0 -2
  672. package/dist/chunks/cli-1.1.1-s0qbvs8w.mjs +0 -2
  673. package/dist/chunks/cli-1.1.1-sbhptgsa.mjs +0 -2
  674. package/dist/chunks/cli-1.1.1-sj83jazr.mjs +0 -2
  675. package/dist/chunks/cli-1.1.1-sj9xzz88.mjs +0 -2
  676. package/dist/chunks/cli-1.1.1-str8bn0w.mjs +0 -20
  677. package/dist/chunks/cli-1.1.1-t3pmg9eh.mjs +0 -2
  678. package/dist/chunks/cli-1.1.1-tekhwq09.mjs +0 -2
  679. package/dist/chunks/cli-1.1.1-tmpebtqd.mjs +0 -24
  680. package/dist/chunks/cli-1.1.1-tmrnrx8v.mjs +0 -2
  681. package/dist/chunks/cli-1.1.1-tn50af03.mjs +0 -2
  682. package/dist/chunks/cli-1.1.1-v9ar4kzn.mjs +0 -15
  683. package/dist/chunks/cli-1.1.1-v9xqeqz0.mjs +0 -12
  684. package/dist/chunks/cli-1.1.1-ve2ye3ad.mjs +0 -2
  685. package/dist/chunks/cli-1.1.1-vj8vq3r2.mjs +0 -2
  686. package/dist/chunks/cli-1.1.1-vrj1t108.mjs +0 -2
  687. package/dist/chunks/cli-1.1.1-vsc2bhws.mjs +0 -2
  688. package/dist/chunks/cli-1.1.1-vvjjnyzw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.1-vyet04sj.mjs +0 -2
  690. package/dist/chunks/cli-1.1.1-wp27gqf3.mjs +0 -12
  691. package/dist/chunks/cli-1.1.1-wpky02br.mjs +0 -2
  692. package/dist/chunks/cli-1.1.1-wqdpr3ra.mjs +0 -2
  693. package/dist/chunks/cli-1.1.1-wtn7e4jz.mjs +0 -15
  694. package/dist/chunks/cli-1.1.1-wxtm9yxy.mjs +0 -34
  695. package/dist/chunks/cli-1.1.1-x3ae1bxc.mjs +0 -42
  696. package/dist/chunks/cli-1.1.1-x61tsmhm.mjs +0 -2
  697. package/dist/chunks/cli-1.1.1-x7n7cp4n.mjs +0 -3
  698. package/dist/chunks/cli-1.1.1-xdq9vz2v.mjs +0 -2
  699. package/dist/chunks/cli-1.1.1-xksd65yv.mjs +0 -3
  700. package/dist/chunks/cli-1.1.1-xx3e0bn5.mjs +0 -2
  701. package/dist/chunks/cli-1.1.1-ya166ffm.mjs +0 -17
  702. package/dist/chunks/cli-1.1.1-yc3xhtyn.mjs +0 -12
  703. package/dist/chunks/cli-1.1.1-ych7rrbd.mjs +0 -2
  704. package/dist/chunks/cli-1.1.1-ye3hmdgh.mjs +0 -3
  705. package/dist/chunks/cli-1.1.1-yga1m543.mjs +0 -2
  706. package/dist/chunks/cli-1.1.1-ypkgwx9d.mjs +0 -2
  707. package/dist/chunks/cli-1.1.1-yqss3x1b.mjs +0 -133
  708. package/dist/chunks/cli-1.1.1-z0pk7sm0.mjs +0 -2
  709. package/dist/chunks/cli-1.1.1-z31vnjht.mjs +0 -2
  710. package/dist/chunks/cli-1.1.1-zbnepy2q.mjs +0 -4
  711. package/dist/chunks/cli-1.1.1-zmzpxmeq.mjs +0 -2
  712. package/dist/chunks/cli-1.1.1-zve2w6c9.mjs +0 -17
  713. package/dist/chunks/cli-1.1.1-zxvwb38m.mjs +0 -2
  714. package/dist/chunks/client-1.1.1-j3w0pe6c.mjs +0 -1
  715. package/dist/chunks/color-1.1.1-h26c9ne7.mjs +0 -1
  716. package/dist/chunks/compact-1.1.1-w47181ep.mjs +0 -3
  717. package/dist/chunks/config-1.1.1-6zcy87ar.mjs +0 -1
  718. package/dist/chunks/config-1.1.1-trscazmb.mjs +0 -1
  719. package/dist/chunks/constants-1.1.1-ttnprx1k.mjs +0 -1
  720. package/dist/chunks/context-1.1.1-5sgcsmam.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.1-7hjf19rb.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.1-z6tpmna3.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.1-qv8vd2vd.mjs +0 -1
  724. package/dist/chunks/copy-1.1.1-x5m52tqg.mjs +0 -9
  725. package/dist/chunks/cost-1.1.1-rt2rxwm1.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.1-fgm4775d.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.1-878gtbt1.mjs +0 -1
  728. package/dist/chunks/debug-1.1.1-d8qa0g0j.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.1-bepehy24.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.1-abjyemqy.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.1-khq8s53d.mjs +0 -1
  732. package/dist/chunks/detection-1.1.1-hjbac0c8.mjs +0 -1
  733. package/dist/chunks/diff-1.1.1-9xwv88x6.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.1-fszqkj4v.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.1-w8ngdv52.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.1-c4n49v4q.mjs +0 -1
  737. package/dist/chunks/effort-1.1.1-esmpmzxn.mjs +0 -13
  738. package/dist/chunks/engine-1.1.1-07myw22m.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.1-byfwm61g.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.1-ww093azg.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.1-295v5dqy.mjs +0 -1
  742. package/dist/chunks/environments-1.1.1-hpwr5w28.mjs +0 -1
  743. package/dist/chunks/errors-1.1.1-hftq1zkm.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.1-f82pb78c.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.1-d1aydfab.mjs +0 -1
  746. package/dist/chunks/exit-1.1.1-yc9akff2.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.1-vmv967b9.mjs +0 -1
  748. package/dist/chunks/export-1.1.1-0z1e15hc.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.1-4twkmntw.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.1-jg9fj653.mjs +0 -1
  751. package/dist/chunks/fast-1.1.1-qys2km8z.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.1-tr4y0ch0.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.1-7wz7x5ra.mjs +0 -1
  754. package/dist/chunks/git-1.1.1-51pkabvr.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.1-2zygs5gw.mjs +0 -1
  756. package/dist/chunks/goal-1.1.1-e9phftpw.mjs +0 -4
  757. package/dist/chunks/grove-1.1.1-1ag8h7p5.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.1-qef68xgb.mjs +0 -1
  759. package/dist/chunks/headless-1.1.1-jy6w561r.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.1-ed456vky.mjs +0 -6
  761. package/dist/chunks/help-1.1.1-t8j5v83g.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.1-vhpc5ejj.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.1-sb1mqcpz.mjs +0 -79
  764. package/dist/chunks/hooks-1.1.1-v40qht7p.mjs +0 -1
  765. package/dist/chunks/ide-1.1.1-jq6fzrr8.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.1-4y6xb66j.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.1-kt406stw.mjs +0 -1
  768. package/dist/chunks/index-1.1.1-22g434vw.mjs +0 -1
  769. package/dist/chunks/index-1.1.1-3tqmdx42.mjs +0 -1
  770. package/dist/chunks/index-1.1.1-6b23qrhd.mjs +0 -1
  771. package/dist/chunks/index-1.1.1-831bha9e.mjs +0 -1
  772. package/dist/chunks/index-1.1.1-8cnva9ne.mjs +0 -1
  773. package/dist/chunks/index-1.1.1-8da5q9g0.mjs +0 -1
  774. package/dist/chunks/index-1.1.1-90ykavq0.mjs +0 -2
  775. package/dist/chunks/index-1.1.1-99zmp2ps.mjs +0 -30
  776. package/dist/chunks/index-1.1.1-9px0bvba.mjs +0 -1
  777. package/dist/chunks/index-1.1.1-9y71kyrj.mjs +0 -2
  778. package/dist/chunks/index-1.1.1-adq8vvcq.mjs +0 -5
  779. package/dist/chunks/index-1.1.1-d9d1y0xy.mjs +0 -1
  780. package/dist/chunks/index-1.1.1-f3c3172e.mjs +0 -9
  781. package/dist/chunks/index-1.1.1-faj87xfe.mjs +0 -1
  782. package/dist/chunks/index-1.1.1-g0ax59dw.mjs +0 -1
  783. package/dist/chunks/index-1.1.1-h17gbfyk.mjs +0 -1
  784. package/dist/chunks/index-1.1.1-q6fnrh31.mjs +0 -1
  785. package/dist/chunks/index-1.1.1-qzgt3tqq.mjs +0 -1
  786. package/dist/chunks/index-1.1.1-rkne46w2.mjs +0 -1
  787. package/dist/chunks/index-1.1.1-wy3wddv5.mjs +0 -17
  788. package/dist/chunks/index-1.1.1-x398ec1v.mjs +0 -1
  789. package/dist/chunks/index-1.1.1-y44m8pc8.mjs +0 -9
  790. package/dist/chunks/index-1.1.1-ymbhqb7a.mjs +0 -1
  791. package/dist/chunks/init-1.1.1-xz02rb2g.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.1-kv3zvcqm.mjs +0 -1
  793. package/dist/chunks/ink-1.1.1-ts8kz51v.mjs +0 -1
  794. package/dist/chunks/insights-1.1.1-ngjqkjt0.mjs +0 -870
  795. package/dist/chunks/install-1.1.1-4r1x1e7v.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.1-bwwf005w.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.1-adwykfa7.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.1-mgk4dsdp.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.1-2kmkwc3e.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.1-217cgz80.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.1-h9nvn3pk.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.1-v0bjj4j7.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.1-fvfkg4pz.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.1-09829bee.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.1-ks9c0rqf.mjs +0 -1
  806. package/dist/chunks/log-1.1.1-ny9tjyjz.mjs +0 -1
  807. package/dist/chunks/main-1.1.1-dk2pmpcr.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.1-vh54nadj.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.1-0xajrtdb.mjs +0 -17
  810. package/dist/chunks/mcp-1.1.1-vbcrdqmb.mjs +0 -4
  811. package/dist/chunks/mcp-1.1.1-xp78k98x.mjs +0 -1
  812. package/dist/chunks/mcpb-1.1.1-rhne101r.mjs +0 -1
  813. package/dist/chunks/memory-1.1.1-scrmwf7c.mjs +0 -72
  814. package/dist/chunks/model-1.1.1-as90vvvf.mjs +0 -1
  815. package/dist/chunks/model-1.1.1-jyf2vnvg.mjs +0 -2
  816. package/dist/chunks/node-1.1.1-ha7q8qzq.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.1-stj442qp.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.1-tbbj59s9.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.1-s7dgeq38.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.1-sw5txmkn.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.1-yq34k18v.mjs +0 -1
  822. package/dist/chunks/parser-1.1.1-905wxz1h.mjs +0 -1
  823. package/dist/chunks/passes-1.1.1-tzyxx4nr.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.1-32frrkp8.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.1-52vyx1cw.mjs +0 -1
  826. package/dist/chunks/plan-1.1.1-1xwn0q2w.mjs +0 -1
  827. package/dist/chunks/plist-1.1.1-x63x823y.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.1-2137mb81.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.1-vswc3yva.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.1-qwrzc7gx.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.1-81dgne38.mjs +0 -2
  832. package/dist/chunks/print-1.1.1-zxwjkq6w.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.1-7taqcgcn.mjs +0 -1
  834. package/dist/chunks/process-1.1.1-cmc5gnbm.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.1-7mebt6rm.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.1-hp957bf8.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.1-1ebtk0je.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.1-rghw84pr.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.1-x63nzadg.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.1-8006jsvm.mjs +0 -13
  841. package/dist/chunks/provider-1.1.1-znmbhpqc.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.1-tncrzs7g.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.1-hvgdx6gz.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.1-03pfc3mn.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.1-d7trtqbt.mjs +0 -34
  846. package/dist/chunks/registry-1.1.1-10hk5pdr.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.1-ymmqtngr.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.1-y2fq7m0b.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.1-09923mmx.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.1-shksn0qq.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.1-x6zsy3p0.mjs +0 -1
  852. package/dist/chunks/rename-1.1.1-33edcj9v.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.1-pm1k9p9p.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.1-v540zdz4.mjs +0 -1
  855. package/dist/chunks/resume-1.1.1-dh01es5c.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.1-c67qy3xg.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.1-ffyvn3c6.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.1-mm9fvkrt.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.1-t72pc0m1.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.1-ftncjx7h.mjs +0 -1
  861. package/dist/chunks/session-1.1.1-npa4qjy3.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.1-mnz0wg6k.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.1-rkn2r5h7.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.1-1swj757c.mjs +0 -1
  865. package/dist/chunks/settings-1.1.1-22mzj46y.mjs +0 -1
  866. package/dist/chunks/setup-1.1.1-f7fxdsa8.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.1-000q9sh0.mjs +0 -1
  868. package/dist/chunks/skills-1.1.1-e5343fy7.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.1-47a6124t.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.1-acthvy1s.mjs +0 -1
  871. package/dist/chunks/state-1.1.1-7pv2ergw.mjs +0 -1
  872. package/dist/chunks/stats-1.1.1-gkq9kw3d.mjs +0 -6
  873. package/dist/chunks/status-1.1.1-c8wh646y.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.1-x16691x3.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.1-s9eb1ebz.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.1-hf2m8vwd.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.1-bh0tny54.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.1-33rs06c9.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.1-8tegxvgv.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.1-dckvxw7f.mjs +0 -1
  881. package/dist/chunks/theme-1.1.1-xdyfpwgx.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.1-48dgjam0.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.1-ja387fza.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.1-7byzrvcw.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.1-ptantdef.mjs +0 -1
  886. package/dist/chunks/tools-1.1.1-ptw1g92g.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.1-adv5nypt.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.1-b28vqpjf.mjs +0 -69
  889. package/dist/chunks/types-1.1.1-8fh9zk18.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.1-g05tw4qq.mjs +0 -4
  891. package/dist/chunks/update-1.1.1-kbve1bfd.mjs +0 -88
  892. package/dist/chunks/upgrade-1.1.1-6kxsf3f3.mjs +0 -1
  893. package/dist/chunks/upload-1.1.1-ymhqntg7.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.1-e5mpv3vk.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.1-v5t4s4mm.mjs +0 -1
  896. package/dist/chunks/usage-1.1.1-7vhbkw6t.mjs +0 -1
  897. package/dist/chunks/util-1.1.1-1gy72074.mjs +0 -1
  898. package/dist/chunks/utils-1.1.1-dk86qenr.mjs +0 -1
  899. package/dist/chunks/vim-1.1.1-3xxzx58p.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.1-cs9xsv8s.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.1-36zhrjfn.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.1-wgesmc0j.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.1-gjxqq9he.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.1-2bwg78x8.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.1-d42z1v61.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.1-tevg51mj.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.1-x3ph4re0.mjs → cli-1.1.2-3vyt3jw9.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.1-10s3pxec.mjs → cli-1.1.2-6d3jf0sj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.1-xd0vsxbj.mjs → cli-1.1.2-6jbsqbdw.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.1-f1n1hjs0.mjs → cli-1.1.2-8t8veykp.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.1-kr5z77zj.mjs → cli-1.1.2-btgmqahb.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.1-y1n8t2yy.mjs → cli-1.1.2-pgz05ddc.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.1-ghx32shb.mjs → cli-1.1.2-r4rfggdk.mjs} +0 -0
@@ -1,24 +0,0 @@
1
- import{WX as T,fY as c}from"./cli-1.1.1-5yv8wq29.mjs";import{C2 as n,z2 as w}from"./cli-1.1.1-tn50af03.mjs";import{M_ as M,N$ as y,O$ as g,O_ as X,P_ as f}from"./cli-1.1.1-48eqv75k.mjs";import{Uja as K,Vja as v,Zja as m,pka as Z,sja as R,ska as h,uja as F}from"./cli-1.1.1-nrfj4jj5.mjs";import{Pka as Y,Uka as W,Wka as D}from"./cli-1.1.1-zbnepy2q.mjs";import{Zka as E,kla as S}from"./cli-1.1.1-gmxcjwmv.mjs";import{Pqa as j,Qma as k,Uma as A,Wma as N}from"./cli-1.1.1-s0qbvs8w.mjs";import{ysa as H}from"./cli-1.1.1-vsc2bhws.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
2
- $pid = ${String(q)}
3
- $ancestors = @()
4
- for ($i = 0; $i -lt ${J}; $i++) {
5
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
- if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
- $pid = $proc.ParentProcessId
8
- $ancestors += $pid
9
- }
10
- $ancestors -join ','
11
- `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
- `).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
13
- $currentPid = ${String(q)}
14
- $commands = @()
15
- for ($i = 0; $i -lt ${J}; $i++) {
16
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
- if (-not $proc) { break }
18
- if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
- if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
- $currentPid = $proc.ParentProcessId
21
- }
22
- $commands -join [char]0
23
- `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
24
- export{O as BX,i as CX,e as DX,qq as EX,_ as FX,Uq as GX,Bq as HX,C as IX,Mq as JX,I as KX,Aq as LX,d as MX,r as NX,t as OX};
@@ -1,2 +0,0 @@
1
- import{wZ as O}from"./cli-1.1.1-q9wvkkjf.mjs";import{h4 as X,j4 as Q}from"./cli-1.1.1-94s27fva.mjs";import{k4 as b}from"./cli-1.1.1-6zke1wc8.mjs";import{Wea as W,ifa as P}from"./cli-1.1.1-48eqv75k.mjs";import{usa as U}from"./cli-1.1.1-vsc2bhws.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
- export{V as qb,C as rb};
@@ -1,2 +0,0 @@
1
- import{xsa as x,ysa as z}from"./cli-1.1.1-vsc2bhws.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 y2,F as z2,G as A2,H as B2,J as C2};
@@ -1,15 +0,0 @@
1
- import{u2 as r,x2 as OJ}from"./cli-1.1.1-3wx8xt0d.mjs";import{Hga as q,Mea as N,O_ as W,Oda as o,P_ as D,Pga as f,Yda as MJ,ifa as P,xba as v,zba as _J}from"./cli-1.1.1-48eqv75k.mjs";import{mja as A,pja as GJ}from"./cli-1.1.1-h13exkfb.mjs";import{Uja as k,Vja as L,Zja as F,bka as O,fka as I,pka as K,ska as BJ}from"./cli-1.1.1-nrfj4jj5.mjs";import{Qka as M,Rka as _,Uka as p,Wka as x,zka as i}from"./cli-1.1.1-zbnepy2q.mjs";import{Zka as B,kla as b}from"./cli-1.1.1-gmxcjwmv.mjs";import{ysa as w}from"./cli-1.1.1-vsc2bhws.mjs";import{access as E,chmod as ZJ,writeFile as $J}from"fs/promises";import{homedir as m}from"os";import{join as y}from"path";function U(){return y(B(),"local")}function qJ(J=m()){return y(J,".claude","local")}function d(J){let Q=J?.homeDir??m(),Y=J?.configHomeDir??B();return Array.from(new Set([y(Y,"local"),qJ(Q)]))}function u(J){return[y(J,"node_modules",".bin","claudin"),y(J,"node_modules",".bin","claude")]}function KJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return y(U(),"claudin")}function uJ(){return KJ(process.argv[1]||"")}async function C(J,Q,Y){try{return await $J(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function WJ(){try{let J=U();await O().mkdir(J),await C(y(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await C(Q,`#!/bin/sh
2
- exec "${J}/node_modules/.bin/claudin" "$@"`,493))await ZJ(Q,493);return!0}catch(J){return q(J),!1}}async function hJ(J,Q){try{if(!await WJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:U(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return N(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function pJ(){for(let J of d())for(let Q of u(J))try{return await E(Q),!0}catch{}return!1}async function cJ(){for(let J of d())for(let Q of u(J))try{return await E(Q),J}catch{}return null}function gJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var h=w(()=>{P();b();x();D();I();f();F()});import{open as XJ,readFile as zJ,stat as HJ}from"fs/promises";import{homedir as c}from"os";import{join as T}from"path";function S(J){let Q=J?.homedir??c(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:T(Z,".zshrc"),bash:T(Q,".bashrc"),fish:T(Q,".config/fish/config.fish")}}function n(J){let Q=!1;return{filtered:J.filter((Z)=>{if(g.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function j(J){try{return(await zJ(J,{encoding:"utf8"})).split(`
3
- `)}catch(Q){if(p(Q))return null;throw Q}}async function s(J,Q){let Y=await XJ(J,"w");try{await Y.writeFile(Q.join(`
4
- `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function yJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await j(Y);if(!Z)continue;for(let $ of Z)if(g.test($)){let z=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(z&&z[1])return z[1]}}return null}async function oJ(J){let Q=await yJ(J);if(!Q)return null;let Y=J?.homedir??c(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await HJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var g;var a=w(()=>{x();h();g=/^\s*alias\s+claude\s*=/});import{constants as e}from"fs";import{access as JJ,stat as vJ,writeFile as t}from"fs/promises";import{homedir as X}from"os";import{join as R}from"path";function QJ(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function RJ(){let J=await W("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}function xJ(){let J=process.env.BUN_INSTALL||R(X(),".bun");return R(J,"install","global","node_modules","@claudiolabs/claudin")}async function UJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!wJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function VJ(){let J=xJ(),Q=R(J,"install.cjs"),Y=R(J,"bin","claudin.exe");try{await JJ(Q,e.F_OK)}catch(Z){if(!_(Z))q(Z);return!1}try{if((await vJ(Y)).size>NJ)return!1}catch(Z){if(!_(Z))return q(Z),!1}if(!await UJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function OQ(){}async function vQ(){return}async function RQ(){return}function NQ(J){let Y=o()?.minimumVersion;if(!Y)return!1;let Z=!r(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function YJ(){return R(B(),".update.lock")}async function TJ(){let J=O(),Q=YJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<l)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<l)return!1;await J.unlink(Q)}catch($){if(!_($))return q($),!1}}catch(Y){if(!_(Y))return q(Y),!1}try{return await t(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(B()),await t(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function SJ(){let J=O(),Q=YJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(_(Y))return;q(Y)}}async function jJ(){let J=v.isRunningWithBun()||QJ(),Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:X()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function AJ(){try{let J=await jJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await JJ(J,e.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function wQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function xQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=L(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function UQ(J){return null}async function VQ(){return{latest:null,stable:null}}async function TQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return L(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function SQ(J){if(!await TJ())return q(new G("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await LJ(),!v.isRunningWithBun()&&v.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
- Error: Windows NPM detected in WSL
6
-
7
- You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
- This configuration is not supported for updates.
9
-
10
- To fix this issue:
11
- 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
- 2. Make sure Linux NPM is in your PATH before the Windows version
13
- 3. Try updating again with 'claude update'
14
- `),"install_failed";let{hasPermissions:Q}=await AJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=v.isRunningWithBun()||QJ()?"bun":"npm",z=await W(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(z.code!==0){let H=new G(`Failed to install new version of claude: ${z.stdout} ${z.stderr}`);return q(H),"install_failed"}if(Z==="npm"&&await RJ()){let H=await W("bun",["install","-g",Y],{cwd:X()});if(H.code!==0)q(new G(`Failed to update bun global install: ${H.stdout} ${H.stderr}`))}return await VJ(),N((H)=>({...H,installMethod:"global"})),"success"}finally{await SJ()}}async function LJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await j(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=n(Y);if($)await s(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,NJ=4096,wJ,l=300000;var CJ=w(()=>{GJ();P();BJ();_J();b();x();D();I();f();OJ();MJ();a();F();G=class G extends i{};wJ=/ENOENT/i});
15
- export{uJ as jU,hJ as kU,pJ as lU,cJ as mU,gJ as nU,h as oU,S as pU,n as qU,j as rU,s as sU,yJ as tU,oJ as uU,a as vU,VJ as wU,OQ as xU,vQ as yU,RQ as zU,NQ as AU,YJ as BU,AJ as CU,wQ as DU,xQ as EU,UQ as FU,VQ as GU,TQ as HU,SQ as IU,CJ as JU};
@@ -1,12 +0,0 @@
1
- import{Ag as uZ,Bg as fz,zg as $Z}from"./cli-1.1.1-n5zzg2fv.mjs";import{Kh as HJ,Lh as Vz}from"./cli-1.1.1-a8r32wr9.mjs";import{Vh as GJ,Wh as Bz}from"./cli-1.1.1-bkqayrk3.mjs";import{Ao as uz,Ay as UQ,By as jQ,Cy as uQ,DA as SZ,Dy as fQ,EA as hZ,FA as TZ,GA as dJ,HA as cQ,Hy as MQ,IA as cJ,IR as nQ,Iy as EQ,KT as VQ,MR as iQ,NR as lQ,OA as e0,OT as KQ,On as zQ,PA as gJ,PR as nZ,Pn as $z,QA as mJ,QR as aQ,Qk as mZ,RA as nJ,RT as fZ,Rk as FX,SA as yz,SR as g0,TR as rQ,Uy as pQ,VR as eJ,Vy as PX,WR as ZQ,Wn as RQ,XR as oQ,Xn as wX,YR as tQ,_R as OZ,az as dQ,bU as BQ,bz as DX,gk as _Z,hk as TQ,iy as $Q,jK as gQ,ko as XQ,ly as AX,mo as xZ,nt as NJ,pk as IJ,qk as SJ,rt as Uz,wo as WQ,xk as pJ}from"./cli-1.1.1-9p39qc3e.mjs";import{cV as xQ,lV as OX}from"./cli-1.1.1-ya166ffm.mjs";import{BY as YJ,FY as qz,GY as UZ,HY as NX,gY as FZ,hY as qJ}from"./cli-1.1.1-kbqy5x92.mjs";import{A1 as p0,O0 as hQ,P0 as KX,UZ as c0,V0 as b,W0 as DQ,X0 as g,Y0 as JX,ZZ as vZ,mZ as WJ,nZ as Wz,w0 as jZ,wZ as u0,y0 as Jz}from"./cli-1.1.1-q9wvkkjf.mjs";import{g4 as f0,h4 as B,i4 as $,j4 as F0}from"./cli-1.1.1-94s27fva.mjs";import{k4 as S0}from"./cli-1.1.1-6zke1wc8.mjs";import{G4 as VJ,H4 as BJ,I4 as Yz}from"./cli-1.1.1-matkcn4v.mjs";import{A8 as QQ,P7 as PQ,Q7 as ZX,V7 as JZ,V8 as xz,Y7 as QZ,q8 as JQ}from"./cli-1.1.1-ped3g2j0.mjs";import{p9 as gZ,q9 as GX}from"./cli-1.1.1-r6rebhmb.mjs";import{Aba as SQ,Pea as DZ,Wba as LX,eda as LZ,ifa as HQ,mda as XJ,w_ as v0,x_ as zJ}from"./cli-1.1.1-48eqv75k.mjs";import{Uga as PZ,Vga as TJ,dha as ZZ,kha as hz}from"./cli-1.1.1-9xxs59n0.mjs";import{Aia as Rz,Lia as KZ,Qia as wZ,Ria as NZ,bja as Dz,zia as RZ}from"./cli-1.1.1-ma5v2jch.mjs";import{pka as m0,ska as ez}from"./cli-1.1.1-nrfj4jj5.mjs";import{ala as IQ,kla as HX}from"./cli-1.1.1-gmxcjwmv.mjs";import{Pqa as BX,kqa as kQ}from"./cli-1.1.1-s0qbvs8w.mjs";import{usa as N0,ysa as L0}from"./cli-1.1.1-vsc2bhws.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=jZ){MZ();return}$0=setTimeout(MZ,jZ-J)}function iZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var lZ=L0(()=>{Jz();EZ=N0(S0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),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];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),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];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta","task_reconcile"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(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"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(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 zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,S=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,w]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:w},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)i=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==S||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!S&&H0&&X==null&&B(Nz,{count:d,onClick:M}),Z[16]=S,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let I;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)I=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=I;else I=Z[28];let W0,N;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),N=B(Pz,{}),Z[29]=W0,Z[30]=N;else W0=Z[29],N=Z[30];let U;if(Z[31]!==z)U=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,N,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==I||Z[39]!==U||Z[40]!==R)s=$(sZ,{children:[I,U,R]}),Z[38]=I,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$(f0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function wz(){}function Nz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{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 Pz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{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 a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();a0=N0(u0(),1),q0=N0(S0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function wJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,wZ)!=="completed")return!1;return _Z(Z.text,NZ)?.startsWith(NJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${wZ}>completed</${wZ}><${NZ}>${W} background commands completed</${NZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.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 UJ=()=>{};function jJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=0;while(Q<J.length&&jJ(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 EJ=()=>{};function jz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(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 CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=jz(Z),X=new Map;for(let F of J){let P=kZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=kZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let S=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((S)=>q.has(S.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(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[Ez(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var yJ="</system-reminder>",_J,kJ;var IZ=L0(()=>{OZ();_J=new Set([IJ,SJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();p0();F0();hJ=N0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var fJ=L0(()=>{TJ();p0();F0();$J=N0(u0(),1)});function aJ(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(SZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(SZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:S,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",w=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==w||Z[3]!==d||Z[4]!==Q)D=w&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=w,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==w||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:w?dJ(Q):Q,Z[6]=w,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==w||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||w?[]:ZQ(Q,O),Z[10]=w,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==w||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let I=_||w?pJ:eJ(Q,O);Y0=tJ(Q,K,Y,I,F,O),Z[15]=Y,Z[16]=w,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let I;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(N)=>{let U=N.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];I=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=I}else I=Z[25];h=I}else if(w){let I;if(Z[28]!==Y||Z[29]!==Q)I=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=I;else I=Z[30];h=I}else{let I;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);I=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=I}else I=Z[33];h=I}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==S||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:S}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=S,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let I;if(Z[55]!==i)I=B(e0,{children:i}),Z[55]=i,Z[56]=I;else I=Z[56];return I}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Iz(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 hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Sz(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 hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function 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&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Sz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,lJ,rJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);rJ=lJ.memo(_z,Tz)});import{relative as pz}from"path";function qQ(J){return lz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,iz,lz;var YQ=L0(()=>{p0();BQ();zJ();Rz();hz();xz();fz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(f0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?pz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},lz=[dz,nz,cz,gz,mz,iz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",P=1,v=Y.map((S)=>B(r0.Fragment,{children:S.render(V)},S.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),r0=N0(S0(),1),XZ=[]});function wQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let N=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*N)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,S=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((N)=>J.current?.subscribe(N)??sz,[J]);m.useSyncExternalStore(d,()=>{let N=J.current;if(!N)return NaN;let U=N.getScrollTop()+N.getPendingDelta(),R=Math.floor(U/tz);return N.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,w=J.current?.isSticky()??!0;m.useMemo(()=>{let N=new Set(Z),U=!1;for(let R of z.current.keys())if(!N.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!N.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let N=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);N[0]=0;for(let U=0;U<D;U++)N[U+1]=N[U]+(z.current.get(Z[U])??rz);q.current={arr:N,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,k;if(M)[E,k]=M,E=Math.min(E,D),k=Math.min(k,D);else if(_===0||O<0)E=Math.max(0,D-oz),k=D;else{if(w){let V0=_+o0;E=D;while(E>0&&J0-p[E-1]<V0)E--;k=D}else{let V0=S.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,D0=y0>G0?C<0?n0-G0:M0:M0,T0=D0+Math.min(y0,G0),i0=Math.max(0,D0-V0),h0=T0-V0,b0=i0-o0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let l0=_+2*o0,t0=Math.min(D,E+WZ),_0=0;k=E;while(k<t0&&(_0<l0||p[k]<h0+_+o0))_0+=z.current.get(Z[k])??pZ,k++}let N=_+2*o0,U=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??pZ;while(E>U&&R<N)E--,R+=z.current.get(Z[E])??pZ;let s=P.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),l=E<H0?H0:E,h=k>Y0?Y0:k;if(l>h||w)l=E,h=k;if(C>0)h=k;if(h-l>WZ){let N=(p[l]+p[h])/2;if(O-S.current<N)h=l+WZ;else l=h-WZ}let z0=S.current,Q0=p[l],X0=l===0?0:Q0+z0,O0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(w)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let N=Z0.current?.yogaNode;if(N&&N.getComputedWidth()>0)S.current=N.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((N)=>{let U=Y.current.get(N);if(!U)U=(R)=>{if(R)V.current.set(N,R);else{let s=V.current.get(N)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(N)!==A0)z.current.set(N,A0),X.current++}V.current.delete(N)}},Y.current.set(N,U);return U},[]),i=m.useCallback((N)=>{let U=V.current.get(Z[N])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((N)=>V.current.get(Z[N])??null,[Z]),t=m.useCallback((N)=>z.current.get(Z[N]),[Z]),I=m.useCallback((N)=>{let U=q.current;if(N<0||N>=U.n)return;J.current?.scrollTo(U.arr[N]+S.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:I}}var m,rz=3,o0=80,oz=30,tz,pZ=1,WZ=300,qZ=25,sz=()=>{};var NQ=L0(()=>{m=N0(S0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let S=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)C=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,w;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)w=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=w;else w=Z[18];let D;if(Z[19]!==_||Z[20]!==w)D=B(DQ.Provider,{value:_,children:w}),Z[19]=_,Z[20]=w,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==S||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==D)p=B(b,{ref:M,flexDirection:"column",backgroundColor:S,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:D}),Z[22]=M,Z[23]=S,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=D,Z[29]=p;else p=Z[29];return p}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:S,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let w=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=wQ(Z,w,Q),[Q0,X0]=D,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:jQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),I=y.useRef(0),W0=y.useRef(0),N=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+u+1;S?.(U0,j0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),N.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},m0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++I.current>20){I.current=0;return}N.current(A?-1:1);return}I.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,N.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;S?.(u,e)}N.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let k0=Y(U0[j0]),G=k0.indexOf(L),j=0;while(G>=0)j++,G=k0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&r){let U0=s.current>=0?s.current:r.getScrollTop(),j0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-U0);if(G<=j0)j0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);S?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await PQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[i0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let l0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(f0,{children:[B(b,{ref:k,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=w[A],u=!!W&&(q?.(H)??!0),n=u&&i0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:l0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((w)=>q.current?.subscribe(w)??YX,[q]);y.useSyncExternalStore(Y,()=>{let w=q.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta();return w.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let w=Q-1;w>=Z;w--){let D=X(w);if(D>=0){if(D<F)break;v=D}P=w}let M=-1,S=null;if(P>0&&!K)for(let w=P-1;w>=0;w--){let D=XX(J[w]);if(D===null)continue;let p=X(w);if(p>=0&&p+1>=F)continue;M=w,S=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let w=C.current==="force";if(C.current="none",!w&&_.current===M)return;if(_.current=M,S===null){V(null);return}let D=S.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let w=W(O.current.idx);if(w)q.current?.scrollToElement(w,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{NQ();p0();JX();LJ();ez();ZX();IZ();EQ();F0();bQ=N0(u0(),1),y=N0(S0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function IX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(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 V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var mQ,YZ,f,UX,jX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:S=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:w,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=f.useMemo(()=>nZ(J).filter(nQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=f.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let a of B0)if(a.type==="text"){let w0=a.text;if(w0.startsWith("<bash-stdout")||w0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),I=f.useMemo(()=>tQ(T),[T]),W0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!I.has(G.contentBlock.id)),[F,q,I]),N=f.useMemo(()=>W0.flatMap((G)=>{let j=gQ({content:[G.contentBlock]});return j.uuid=TQ(G.contentBlock.id,0),nZ([j])}),[W0]),U=K==="transcript",R=f.useMemo(()=>IQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,A0=U&&!P&&!s,V0=f.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=f.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),j=aQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),a=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):a.length>0?bX(j,a):j:j,C0=A0?w0.slice(-cZ):w0,VZ=A0&&w0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(DJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=j.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,U,N,A0,Z,_]),D0=f.useMemo(()=>{let j=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),T0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=$Q((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=f.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[j,B0]of h0){let a=i0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(j)}return G.size>0?G:null},[i0,h0]),l0=f.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),t0=f.useMemo(()=>{if(!w)return-1;let G=w.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[w,D0]),_0=f.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),x=f.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=f.useRef(M0);u.current=M0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let w0=G.message.content[0];return w0!=null&&xQ(w0)&&w0.type==="advisor_tool_result"&&w0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=l0.size>0,{progress:e}=hQ(),R0=f.useRef(null),P0=DZ().terminalProgressBarEnabled&&!kQ()&&!(jX?.isProactiveActive()??!1);f.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,P0,c]),f.useEffect(()=>{return()=>e(null)},[e]);let E0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,a=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||aJ(D0,j,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B(uQ.Provider,{value:j===_0,children:VZ},C0);if(w&&j===t0)return[B(b,{marginTop:1,children:B(UZ,{title:`${w.count} new ${LZ(w.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},j0=f.useRef(new WeakMap),k0=f.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let w0=G.message.content.find((C0)=>C0.type==="tool_result");if(w0&&"tool_use_id"in w0){let C0=M0.toolUseByToolUseID.get(w0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return j0.current.set(G,a),a},[Z,M0]);return $(f0,{children:[!S&&!(Q0&&Q0[0]>0)&&B(UX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(fQ.Provider,{value:!0,children:B(CQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):D0.flatMap(U0),C&&!_&&B(kX,{}),i&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:SQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();p0();wX();AX();FX();OX();AJ();UJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();IZ();NX();PX();lZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();mQ=N0(u0(),1),YZ=N0(S0(),1),f=N0(S0(),1),UX=YZ.memo(function(Z){let Q=mQ.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=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(IX(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,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
- export{s0 as Ge,TX as He,lZ as Ie,xX as Je,$X as Ke,JJ as Le,QW as Me,zW as Ne,XW as Oe,LJ as Pe,g8 as Qe,sJ as Re};
@@ -1,2 +0,0 @@
1
- import{Df as R,Ff as d}from"./cli-1.1.1-mxx5vd6y.mjs";import{C2 as c,z2 as j}from"./cli-1.1.1-tn50af03.mjs";import{pka as K,ska as D}from"./cli-1.1.1-nrfj4jj5.mjs";import{Pka as C,Wka as h}from"./cli-1.1.1-zbnepy2q.mjs";import{ysa as I,zsa as J}from"./cli-1.1.1-vsc2bhws.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-1.1.1-9f3cp9gp.mjs"),{getOrganizationUUID:Z}=await import("./client-1.1.1-j3w0pe6c.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.1-stj442qp.mjs"),{getOAuthHeaders:P}=await import("./api-1.1.1-934f8zxk.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-1.1.1-khq8s53d.mjs"),{getDefaultBranch:_}=await import("./git-1.1.1-51pkabvr.mjs"),{getMainLoopModel:M}=await import("./model-1.1.1-as90vvvf.mjs"),{default:T}=await import("./index-1.1.1-ymbhqb7a.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-1.1.1-khq8s53d.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.1-9f3cp9gp.mjs"),{getOrganizationUUID:$}=await import("./client-1.1.1-j3w0pe6c.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.1-stj442qp.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.1-934f8zxk.mjs"),{default:G}=await import("./index-1.1.1-ymbhqb7a.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.1-9f3cp9gp.mjs"),{getOrganizationUUID:$}=await import("./client-1.1.1-j3w0pe6c.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.1-stj442qp.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.1-934f8zxk.mjs"),{default:G}=await import("./index-1.1.1-ymbhqb7a.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-1.1.1-9f3cp9gp.mjs"),{getOrganizationUUID:Y}=await import("./client-1.1.1-j3w0pe6c.mjs"),{getOauthConfig:z}=await import("./oauth-1.1.1-stj442qp.mjs"),{getOAuthHeaders:G}=await import("./api-1.1.1-934f8zxk.mjs"),{default:L}=await import("./index-1.1.1-ymbhqb7a.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
- export{i as uf,r as vf,t as wf,o as xf,p as yf};
@@ -1,2 +0,0 @@
1
- import{ap as Z,fp as G}from"./cli-1.1.1-9p39qc3e.mjs";import{Hga as X,Pga as R}from"./cli-1.1.1-48eqv75k.mjs";import{Uja as v,Vja as B,Zja as A,bka as C,fka as M,pka as U,ska as O}from"./cli-1.1.1-nrfj4jj5.mjs";import{ysa as b}from"./cli-1.1.1-vsc2bhws.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
- export{o as Cd,c as Dd,p as Ed,d as Fd,g as Gd,w as Hd};
@@ -1,2 +0,0 @@
1
- import{BS as i,EQ as r,_C as K,aD as I,bD as _,dD as p,hC as P,nC as b,tC as j,tQ as f,uQ as L,wv as T}from"./cli-1.1.1-9p39qc3e.mjs";import{iW as A,jW as n}from"./cli-1.1.1-cw6t7x5a.mjs";import{mja as E,pja as C}from"./cli-1.1.1-h13exkfb.mjs";import{bka as M,fka as m,pka as Z,sja as F,ska as u,uja as S}from"./cli-1.1.1-nrfj4jj5.mjs";import{Mma as Y,Nma as k,Pqa as c,rqa as v}from"./cli-1.1.1-s0qbvs8w.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
- export{Zq as fb};
@@ -1,2 +0,0 @@
1
- import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
2
- export{z as usa,A as vsa,B as wsa,C as xsa,D as ysa,F as zsa,G as Asa,H as Bsa};
@@ -1,2 +0,0 @@
1
- import{$F as e,QF as R,RF as E,SF as l,TF as i,UF as c,VF as w,WF as O,_F as y}from"./cli-1.1.1-9p39qc3e.mjs";import{gY as x,hY as s}from"./cli-1.1.1-kbqy5x92.mjs";import{A1 as K,K0 as j,L0 as r,V0 as k,X0 as W,p1 as Q,wZ as n}from"./cli-1.1.1-q9wvkkjf.mjs";import{g4 as A,h4 as V,i4 as D,j4 as v}from"./cli-1.1.1-94s27fva.mjs";import{k4 as t}from"./cli-1.1.1-6zke1wc8.mjs";import{usa as q,ysa as p}from"./cli-1.1.1-vsc2bhws.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
2
- export{X1 as ph,u as qh,W1 as rh,B1 as sh};
@@ -1,2 +0,0 @@
1
- import{Ri as H,Ti as C}from"./cli-1.1.1-38kc1r2d.mjs";import{Ui as k,Vi as y}from"./cli-1.1.1-01nvax13.mjs";import{A4 as Y,F4 as R,y4 as X}from"./cli-1.1.1-atzkmfy8.mjs";import{H4 as G,I4 as m}from"./cli-1.1.1-matkcn4v.mjs";import{G8 as B,V8 as f,k5 as w,l5 as E}from"./cli-1.1.1-ped3g2j0.mjs";import{Hga as Q,Mea as S,Pea as j,Pga as D,ifa as x}from"./cli-1.1.1-48eqv75k.mjs";import{kja as V,lja as b}from"./cli-1.1.1-rrfnctm7.mjs";import{$ra as I,Jra as W}from"./cli-1.1.1-2ck5yx9f.mjs";import{ysa as Z}from"./cli-1.1.1-vsc2bhws.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
2
- export{i as Oi,A as Pi};
@@ -1,12 +0,0 @@
1
- import{r9 as D}from"./cli-1.1.1-yqss3x1b.mjs";import{bka as L,fka as JG,pka as W,ska as a}from"./cli-1.1.1-nrfj4jj5.mjs";import{$ka as c,ala as jG,kla as GG}from"./cli-1.1.1-gmxcjwmv.mjs";import{mra as U,nra as g}from"./cli-1.1.1-01gn0bc1.mjs";import{$ra as RG,Jra as H}from"./cli-1.1.1-2ck5yx9f.mjs";import{dsa as wG}from"./cli-1.1.1-f4f8asne.mjs";import{usa as WG,ysa as j,zsa as e}from"./cli-1.1.1-vsc2bhws.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
- \r
4
- `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
- `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
- `;let $=n(K);K.write(`${w}\r
8
- `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
- `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
- `;let V=n(Y);Y.write(`${$}\r
11
- `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.1-rkne46w2.mjs"),import("./index-1.1.1-f3c3172e.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
- export{hG as W8,p as X8,F as Y8,gG as Z8,aG as _8,pG as $8,KG as a9,MJ as b9,HJ as c9,OG as d9,I as e9,h as f9,qJ as g9,jJ as h9,UJ as i9,_J as j9,FJ as k9,NJ as l9,TJ as m9,vG as n9};
@@ -1,2 +0,0 @@
1
- import{bU as z,ps as _}from"./cli-1.1.1-9p39qc3e.mjs";import{t4 as f}from"./cli-1.1.1-a0pp3xv5.mjs";import{Q7 as k,V8 as A,f5 as K}from"./cli-1.1.1-ped3g2j0.mjs";import{K_ as L,L$ as T,Yda as v,ifa as x,mba as W}from"./cli-1.1.1-48eqv75k.mjs";import{$ha as H}from"./cli-1.1.1-4exyd7ra.mjs";import{sia as b,uia as Q,via as q,wia as V}from"./cli-1.1.1-0xwez66d.mjs";import{lja as w}from"./cli-1.1.1-rrfnctm7.mjs";import{pja as O}from"./cli-1.1.1-h13exkfb.mjs";import{Wka as U}from"./cli-1.1.1-zbnepy2q.mjs";import{Lma as X,Pqa as B}from"./cli-1.1.1-s0qbvs8w.mjs";import{ysa as G}from"./cli-1.1.1-vsc2bhws.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
2
- export{Y as Id};
@@ -1,2 +0,0 @@
1
- import{A1 as e2,FZ as Z,V0 as Y,X0 as u,wZ as u2}from"./cli-1.1.1-q9wvkkjf.mjs";import{h4 as t,i4 as o,j4 as U}from"./cli-1.1.1-94s27fva.mjs";import{xba as X,zba as j}from"./cli-1.1.1-48eqv75k.mjs";import{usa as s}from"./cli-1.1.1-vsc2bhws.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.1"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.1"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.1.1"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.1.1"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as ba};
@@ -1,15 +0,0 @@
1
- import{wsa as T,ysa as J5,zsa as M}from"./cli-1.1.1-vsc2bhws.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 Se,X5 as Te};