@chrisjowen/wheelhouse 0.22.7 → 0.22.9

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 (862) hide show
  1. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css +1 -0
  2. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/0emaOfOx.js +7 -0
  5. package/build/client/_app/immutable/chunks/0emaOfOx.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/0emaOfOx.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/AATz5Vtc.js +7 -0
  8. package/build/client/_app/immutable/chunks/AATz5Vtc.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/AATz5Vtc.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/B0ZphyID.js +3 -0
  11. package/build/client/_app/immutable/chunks/B0ZphyID.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/B0ZphyID.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/BC_XNeHe.js +1 -0
  14. package/build/client/_app/immutable/chunks/BC_XNeHe.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BC_XNeHe.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/BFj9uA7a.js +1 -0
  17. package/build/client/_app/immutable/chunks/BFj9uA7a.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BFj9uA7a.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/BNnzQGRQ.js +1 -0
  20. package/build/client/_app/immutable/chunks/BNnzQGRQ.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BNnzQGRQ.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/BPz1qeSs.js +1 -0
  23. package/build/client/_app/immutable/chunks/BPz1qeSs.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/BPz1qeSs.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/BYQm-VHb.js +6 -0
  26. package/build/client/_app/immutable/chunks/BYQm-VHb.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/BYQm-VHb.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/B_GB-3Er.js +1 -0
  29. package/build/client/_app/immutable/chunks/B_GB-3Er.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/B_GB-3Er.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/Bb5KMHGW.js +1 -0
  32. package/build/client/_app/immutable/chunks/Bb5KMHGW.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/Bb5KMHGW.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/BgPPmbbW.js +1 -0
  35. package/build/client/_app/immutable/chunks/BgPPmbbW.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/BgPPmbbW.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/BnWhj1AH.js +2 -0
  38. package/build/client/_app/immutable/chunks/BnWhj1AH.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/BnWhj1AH.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/BrB0U8Br.js +1 -0
  41. package/build/client/_app/immutable/chunks/BrB0U8Br.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/BrB0U8Br.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/C303vUt4.js +1 -0
  44. package/build/client/_app/immutable/chunks/C303vUt4.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/C303vUt4.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/CJfafoqX.js +1 -0
  47. package/build/client/_app/immutable/chunks/CJfafoqX.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/CJfafoqX.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/CPV8trsz.js +1 -0
  50. package/build/client/_app/immutable/chunks/CPV8trsz.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/CPV8trsz.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/CRG7D48i.js +2 -0
  53. package/build/client/_app/immutable/chunks/CRG7D48i.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/CRG7D48i.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/CUWvH_Vt.js +2 -0
  56. package/build/client/_app/immutable/chunks/CUWvH_Vt.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/CUWvH_Vt.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/CjDEH2t9.js +1 -0
  59. package/build/client/_app/immutable/chunks/CjDEH2t9.js.br +2 -0
  60. package/build/client/_app/immutable/chunks/CjDEH2t9.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/CjSftIOB.js +6 -0
  62. package/build/client/_app/immutable/chunks/CjSftIOB.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/CjSftIOB.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/CpMvc8EL.js +3 -0
  65. package/build/client/_app/immutable/chunks/CpMvc8EL.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/CpMvc8EL.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/D2pY9EPU.js +1 -0
  68. package/build/client/_app/immutable/chunks/D2pY9EPU.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/D2pY9EPU.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/D8swcNrI.js +1 -0
  71. package/build/client/_app/immutable/chunks/D8swcNrI.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/D8swcNrI.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/DGK5viub.js +1 -0
  74. package/build/client/_app/immutable/chunks/DGK5viub.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/DGK5viub.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/DNA9TJ3s.js +1 -0
  77. package/build/client/_app/immutable/chunks/DNA9TJ3s.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/DNA9TJ3s.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/Do9MI93T.js +8 -0
  80. package/build/client/_app/immutable/chunks/Do9MI93T.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/Do9MI93T.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/Ds4LY5_S.js +1 -0
  83. package/build/client/_app/immutable/chunks/Ds4LY5_S.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/Ds4LY5_S.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/Fr_QipqL.js +3 -0
  86. package/build/client/_app/immutable/chunks/Fr_QipqL.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/Fr_QipqL.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/K8k-G-JQ.js +4 -0
  89. package/build/client/_app/immutable/chunks/K8k-G-JQ.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/K8k-G-JQ.js.gz +0 -0
  91. package/build/client/_app/immutable/chunks/N3-89cl-.js +3 -0
  92. package/build/client/_app/immutable/chunks/N3-89cl-.js.br +0 -0
  93. package/build/client/_app/immutable/chunks/N3-89cl-.js.gz +0 -0
  94. package/build/client/_app/immutable/chunks/XxOJwmzJ.js +1 -0
  95. package/build/client/_app/immutable/chunks/XxOJwmzJ.js.br +0 -0
  96. package/build/client/_app/immutable/chunks/XxOJwmzJ.js.gz +0 -0
  97. package/build/client/_app/immutable/chunks/jQN7UPrf.js +1 -0
  98. package/build/client/_app/immutable/chunks/jQN7UPrf.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/jQN7UPrf.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/m9V6PYwh.js +1 -0
  101. package/build/client/_app/immutable/chunks/m9V6PYwh.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/m9V6PYwh.js.gz +0 -0
  103. package/build/client/_app/immutable/entry/app.B9en0bhu.js +2 -0
  104. package/build/client/_app/immutable/entry/app.B9en0bhu.js.br +0 -0
  105. package/build/client/_app/immutable/entry/app.B9en0bhu.js.gz +0 -0
  106. package/build/client/_app/immutable/entry/start.C2j_2z1u.js +1 -0
  107. package/build/client/_app/immutable/entry/start.C2j_2z1u.js.br +0 -0
  108. package/build/client/_app/immutable/entry/start.C2j_2z1u.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/0.C0ZSel0O.js +9 -0
  110. package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/0.C0ZSel0O.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/1.BCCTjiZm.js +1 -0
  113. package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/1.BCCTjiZm.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/10.o5Se6edN.js +9 -0
  116. package/build/client/_app/immutable/nodes/10.o5Se6edN.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/10.o5Se6edN.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js +2 -0
  119. package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/11.Bxj3eLnH.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/12.BChGCUWY.js +6 -0
  122. package/build/client/_app/immutable/nodes/12.BChGCUWY.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/12.BChGCUWY.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/13.D1iQQlaj.js +1 -0
  125. package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/13.D1iQQlaj.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/14.B-f98he1.js +10 -0
  128. package/build/client/_app/immutable/nodes/14.B-f98he1.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/14.B-f98he1.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/15.CAZAUO5E.js +1 -0
  131. package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/15.CAZAUO5E.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/16.C_HhXPiU.js +3 -0
  134. package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/16.C_HhXPiU.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/17.CwSSNP0A.js +1 -0
  137. package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/17.CwSSNP0A.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/18.D0_QQFbK.js +14 -0
  140. package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/18.D0_QQFbK.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js +150 -0
  143. package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/19.DQ-n6j9n.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/2.BXQoi4t7.js +40 -0
  146. package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/2.BXQoi4t7.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js +25 -0
  149. package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/20.Cn6VQRiW.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/21.BUDY7k1-.js +5 -0
  152. package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/21.BUDY7k1-.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/22.B1LeXopM.js +18 -0
  155. package/build/client/_app/immutable/nodes/22.B1LeXopM.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/22.B1LeXopM.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/24.Bs2sEub2.js +4 -0
  158. package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/24.Bs2sEub2.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/26.CGTSTlhG.js +6 -0
  161. package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/26.CGTSTlhG.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/27.CugI13rk.js +8 -0
  164. package/build/client/_app/immutable/nodes/27.CugI13rk.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/27.CugI13rk.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/28.BAkIuprz.js +2 -0
  167. package/build/client/_app/immutable/nodes/28.BAkIuprz.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/28.BAkIuprz.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/29.CpVvRJy8.js +5 -0
  170. package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/29.CpVvRJy8.js.gz +0 -0
  172. package/build/client/_app/immutable/nodes/3.BV5EWo9M.js +2 -0
  173. package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.br +0 -0
  174. package/build/client/_app/immutable/nodes/3.BV5EWo9M.js.gz +0 -0
  175. package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js +4 -0
  176. package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.br +0 -0
  177. package/build/client/_app/immutable/nodes/30.Rn1Ae3Io.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/31.YPk2HgGn.js +3 -0
  179. package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/31.YPk2HgGn.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/32.3AVLrUzC.js +7 -0
  182. package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.br +0 -0
  183. package/build/client/_app/immutable/nodes/32.3AVLrUzC.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/33.DGIbo_U8.js +2 -0
  185. package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.br +0 -0
  186. package/build/client/_app/immutable/nodes/33.DGIbo_U8.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/34.YeJA6wco.js +4 -0
  188. package/build/client/_app/immutable/nodes/34.YeJA6wco.js.br +0 -0
  189. package/build/client/_app/immutable/nodes/34.YeJA6wco.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js +7 -0
  191. package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/35.DgZD2Wr-.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/36.gdjsdStK.js +6 -0
  194. package/build/client/_app/immutable/nodes/36.gdjsdStK.js.br +0 -0
  195. package/build/client/_app/immutable/nodes/36.gdjsdStK.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/37.DxIvHmCS.js +23 -0
  197. package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/37.DxIvHmCS.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/38.DkRJewhg.js +1 -0
  200. package/build/client/_app/immutable/nodes/38.DkRJewhg.js.br +1 -0
  201. package/build/client/_app/immutable/nodes/38.DkRJewhg.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js +5 -0
  203. package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/4.BcJ_bzQy.js.gz +0 -0
  205. package/build/client/_app/immutable/nodes/40.D1gVZSsj.js +6 -0
  206. package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.br +0 -0
  207. package/build/client/_app/immutable/nodes/40.D1gVZSsj.js.gz +0 -0
  208. package/build/client/_app/immutable/nodes/5.BT_2Zols.js +1 -0
  209. package/build/client/_app/immutable/nodes/5.BT_2Zols.js.br +0 -0
  210. package/build/client/_app/immutable/nodes/5.BT_2Zols.js.gz +0 -0
  211. package/build/client/_app/immutable/nodes/8.BWBS7lOw.js +3 -0
  212. package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.br +0 -0
  213. package/build/client/_app/immutable/nodes/8.BWBS7lOw.js.gz +0 -0
  214. package/build/client/_app/immutable/nodes/9.bYRuhKZc.js +10 -0
  215. package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.br +0 -0
  216. package/build/client/_app/immutable/nodes/9.bYRuhKZc.js.gz +0 -0
  217. package/build/client/_app/version.json +1 -1
  218. package/build/client/_app/version.json.br +0 -0
  219. package/build/client/_app/version.json.gz +0 -0
  220. package/build/handler.js +4 -4
  221. package/build/index.js +4 -4
  222. package/build/server/chunks/chunks/ConsoleWindow.js-BxF5jMFE.js +103 -0
  223. package/build/server/chunks/chunks/DecisionForm.js-BFfq6cr6.js +246 -0
  224. package/build/server/chunks/chunks/DecisionsBadge.js-CGVFdHf9.js +78 -0
  225. package/build/server/chunks/chunks/Discussion.js-D7IFpGpa.js +581 -0
  226. package/build/server/chunks/chunks/EtaLine.js-CBCXWQzg.js +41 -0
  227. package/build/server/chunks/chunks/ResizableRail.js-DYHpZhCB.js +864 -0
  228. package/build/server/chunks/chunks/Sheet.js-pEqPGqDd.js +3958 -0
  229. package/build/server/chunks/chunks/TaskView.js-CK9biTfX.js +3015 -0
  230. package/build/server/chunks/chunks/TimeBar.js-4ui3FQow.js +32 -0
  231. package/build/server/chunks/chunks/TimeLegend.js-BcJobfm0.js +29 -0
  232. package/build/server/chunks/chunks/bell.js-M4cNe9Wo.js +194 -0
  233. package/build/server/chunks/chunks/chat.svelte.js-vT8qTWLG.js +417 -0
  234. package/build/server/chunks/chunks/console.js-BV5qkqBU.js +64 -0
  235. package/build/server/chunks/chunks/decisionhome.js-CHke-Aet.js +311 -0
  236. package/build/server/chunks/chunks/detail.js-DzX_zEkI.js +149 -0
  237. package/build/server/chunks/chunks/features.js-B2GRQeLG.js +181 -0
  238. package/build/server/chunks/chunks/feedback.js-BmnlQB1X.js +67 -0
  239. package/build/server/chunks/chunks/handled.js-m3RTMfxd.js +20 -0
  240. package/build/server/chunks/chunks/inbox.js-CxcuKYoV.js +222 -0
  241. package/build/server/chunks/chunks/insights.js-D2D9kicC.js +142 -0
  242. package/build/server/chunks/chunks/insights.svelte.js-CcEJoKQH.js +567 -0
  243. package/build/server/chunks/chunks/internal.js-Bwnrl13Q.js +151 -0
  244. package/build/server/chunks/chunks/livereview.svelte.js-YZhYByZI.js +97 -0
  245. package/build/server/chunks/chunks/marketplace-service.js-BwjByFH7.js +557 -0
  246. package/build/server/chunks/chunks/ondeck.js-BLhFZI2l.js +119 -0
  247. package/build/server/chunks/chunks/package.js-BWopDYsw.js +160 -0
  248. package/build/server/chunks/chunks/page.js-C9qsE1U6.js +13 -0
  249. package/build/server/chunks/chunks/previewhelper2.js-Bro5Kyoe.js +210 -0
  250. package/build/server/chunks/chunks/runtime.js-B79JnWK2.js +25642 -0
  251. package/build/server/chunks/chunks/scribe.js-Dwxy2NkA.js +1376 -0
  252. package/build/server/chunks/chunks/service.js-rmCdUjBa.js +1339 -0
  253. package/build/server/chunks/chunks/service2.js-CuVjzjMp.js +835 -0
  254. package/build/server/chunks/chunks/service3.js-B_AwjFXe.js +234 -0
  255. package/build/server/chunks/chunks/settings.js-84gUkx7e.js +379 -0
  256. package/build/server/chunks/chunks/slots.svelte.js-CizfW0L7.js +54 -0
  257. package/build/server/chunks/chunks/starter.js-Bk0e4tp1.js +400 -0
  258. package/build/server/chunks/chunks/store.js-m6116Gee.js +332 -0
  259. package/build/server/chunks/chunks/uploads.js-Dj8oL0YP.js +107 -0
  260. package/build/server/chunks/chunks/view.js-CdbC9u-X.js +76 -0
  261. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DSbkbcih.js +112 -0
  262. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Cuh4l5cX.js +111 -0
  263. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CxqjNz9K.js +59 -0
  264. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BOkqzAso.js +75 -0
  265. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-DqWeZDnx.js +79 -0
  266. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Dp6d92o1.js +154 -0
  267. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CjMBduD9.js +56 -0
  268. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-sHIaJYuD.js +71 -0
  269. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DVLiAZXm.js +107 -0
  270. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-bcOD-UAG.js +83 -0
  271. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-XIdGfksa.js +73 -0
  272. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dvo2WaVg.js +66 -0
  273. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BFzvnUDG.js +66 -0
  274. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CZFPUyv7.js +67 -0
  275. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-xwvYiN0P.js +73 -0
  276. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-R8e7z94R.js +66 -0
  277. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BgE6HXps.js +115 -0
  278. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-CXfwTb-v.js +76 -0
  279. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DqS1e_EW.js +87 -0
  280. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-jf8PJ-20.js +75 -0
  281. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Cm3ek5GT.js +66 -0
  282. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-Csr4uwPB.js +32 -0
  283. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-A7LEzpUQ.js +40 -0
  284. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Dxmd5sWA.js +58 -0
  285. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-DdE-9v71.js +58 -0
  286. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-uZjy2F7t.js +85 -0
  287. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-DY1h0w69.js +83 -0
  288. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-C2OsWqIH.js +76 -0
  289. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-8DtekGgO.js +168 -0
  290. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Ba_gA_kn.js +58 -0
  291. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-knOqja0e.js +87 -0
  292. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-58SJEI-H.js +96 -0
  293. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-DpVQ0-gU.js +118 -0
  294. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-CDCEHZ2F.js +72 -0
  295. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-bXndbXtD.js +93 -0
  296. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-GqjxRGNr.js +82 -0
  297. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BIcthzJl.js +77 -0
  298. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-CDsa251C.js +74 -0
  299. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BXha7rBL.js +27 -0
  300. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-CglpfA_i.js +81 -0
  301. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DY6GpUvU.js +39 -0
  302. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CezMnMxX.js +58 -0
  303. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-n8aIgwiW.js +39 -0
  304. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Brc3Rir_.js +42 -0
  305. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-D_PpU_IB.js +63 -0
  306. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-wdUFeQpc.js +72 -0
  307. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CUvFLTtL.js +69 -0
  308. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-Di-7UkP0.js +73 -0
  309. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-GNyM42L2.js +27 -0
  310. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-RsBtJkWF.js +81 -0
  311. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-TUH5OYFz.js +63 -0
  312. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Bl5DdXd_.js +72 -0
  313. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8gJ1LMd2.js +84 -0
  314. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-lfPXl0y_.js +71 -0
  315. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-wnnWrfJX.js +94 -0
  316. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B2MBCiL5.js +77 -0
  317. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-C55ehr6a.js +473 -0
  318. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BH29IQL1.js +88 -0
  319. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-D-isqamt.js +67 -0
  320. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CQIibVRV.js +77 -0
  321. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-Cw9ILP_Q.js +137 -0
  322. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-BWgNfggv.js +66 -0
  323. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DsKFgPLd.js +80 -0
  324. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CAU01lOe.js +66 -0
  325. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BtLUIQuT.js +69 -0
  326. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CTQDnPYZ.js +63 -0
  327. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-KEGfpYIz.js +82 -0
  328. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-COkOxJYB.js +109 -0
  329. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-DVL8enNe.js +75 -0
  330. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-B31-eql9.js +104 -0
  331. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DlNfcbxs.js +123 -0
  332. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-xItkzpp3.js +77 -0
  333. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-V8xFvJTX.js +80 -0
  334. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DDRIjDs2.js +81 -0
  335. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-CPKTJr6D.js +24 -0
  336. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BtxwuwK2.js +31 -0
  337. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-Bl6WY6lX.js +33 -0
  338. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-BvEexih3.js +93 -0
  339. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-Cpw5TIJt.js +40 -0
  340. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BtiKFkKo.js +27 -0
  341. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-Bd8mHvHa.js +27 -0
  342. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DceVA1-i.js +82 -0
  343. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DlIQzyEF.js +62 -0
  344. package/build/server/chunks/entries/hooks.server.js-DrCOEIuz.js +104 -0
  345. package/build/server/chunks/entries/pages/_layout.server.ts.js-RXTNXalN.js +54 -0
  346. package/build/server/chunks/entries/pages/_layout.svelte.js-Bnx1zQNz.js +6028 -0
  347. package/build/server/chunks/entries/pages/_page.server.ts.js-CNkzwH65.js +16 -0
  348. package/build/server/chunks/entries/pages/_page.svelte.js-CEPxPR_I.js +5810 -0
  349. package/build/server/chunks/entries/pages/crew/_page.svelte.js-sAcZ9qNG.js +115 -0
  350. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-C0FE960w.js +14 -0
  351. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-mQE5Ht8_.js +226 -0
  352. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-zZ9qO_dt.js +16 -0
  353. package/build/server/chunks/entries/pages/deck/_page.svelte.js-u1WdGQom.js +93 -0
  354. package/build/server/chunks/entries/pages/files/_page.server.ts.js-DKnSppph.js +17 -0
  355. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-Git6SUxW.js +11 -0
  356. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-DjqtGoDH.js +296 -0
  357. package/build/server/chunks/entries/pages/health/_page.server.ts.js-CF0wP4Jt.js +16 -0
  358. package/build/server/chunks/entries/pages/health/_page.svelte.js-DA7MoO-y.js +517 -0
  359. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DMrngf0O.js +18 -0
  360. package/build/server/chunks/entries/pages/inbox/_page.svelte.js--GRUWFc_.js +653 -0
  361. package/build/server/chunks/entries/pages/more/_page.svelte.js-DxjJ6y39.js +152 -0
  362. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-B4GqGgPh.js +16 -0
  363. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-BaJy6ojj.js +60 -0
  364. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-DIXpFWB4.js +23 -0
  365. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-FodOZq2p.js +983 -0
  366. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CErk9FDM.js +21 -0
  367. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-D9gMeR7J.js +82 -0
  368. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-b1Pl3BCW.js +27 -0
  369. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-Di4LHBAx.js +420 -0
  370. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-BWXtnM6f.js +15 -0
  371. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-COOUFJWd.js +11 -0
  372. package/build/server/chunks/entries/pages/remotes/_page.svelte.js-Baz3X3kg.js +348 -0
  373. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DePfcsb_.js +13 -0
  374. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-djAsookJ.js +12 -0
  375. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-BF6kG2B5.js +18 -0
  376. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-B6uTAGl9.js +19 -0
  377. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-STPv_aQR.js +16 -0
  378. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9yV2bD6.js +15 -0
  379. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-BDXpdTTY.js +83 -0
  380. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BQJtnh5-.js +797 -0
  381. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-V4uJeIzJ.js +11 -0
  382. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-r7TgB6d3.js +261 -0
  383. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DlHvnbaR.js +19 -0
  384. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DD6EulII.js +17 -0
  385. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BdlfVJUR.js +11 -0
  386. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-D024t04u.js +11 -0
  387. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-CqU-yzLn.js +15 -0
  388. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bl3_Glym.js +18 -0
  389. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D1YzGPKz.js +36 -0
  390. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dm62wxMH.js +112 -0
  391. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BXQ0X1ko.js +24 -0
  392. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CzXN68NU.js +11 -0
  393. package/build/server/chunks/entries/pages/time/_page.svelte.js-BEJCthq-.js +109 -0
  394. package/build/server/chunks/handler-Bn1fUv6B.js +1474 -0
  395. package/build/server/chunks/index.js-Mx2dDARn.js +4296 -0
  396. package/build/server/chunks/manifest.js-B-YEp54X.js +969 -0
  397. package/build/server/chunks/nodes/0.js-BUBiSzRS.js +66 -0
  398. package/build/server/chunks/nodes/1.js-BLJ7Klm0.js +9 -0
  399. package/build/server/chunks/nodes/10.js-CtrWc2wn.js +65 -0
  400. package/build/server/chunks/nodes/11.js-DJ3Gaern.js +64 -0
  401. package/build/server/chunks/nodes/12.js-pLEUUewd.js +12 -0
  402. package/build/server/chunks/nodes/13.js-hX0iR3ZH.js +9 -0
  403. package/build/server/chunks/nodes/14.js-CGtz8B7y.js +9 -0
  404. package/build/server/chunks/nodes/15.js-8RVQO15R.js +63 -0
  405. package/build/server/chunks/nodes/16.js-D7bYd07V.js +66 -0
  406. package/build/server/chunks/nodes/17.js-DhdPdpU0.js +64 -0
  407. package/build/server/chunks/nodes/18.js-B0V_uhB9.js +65 -0
  408. package/build/server/chunks/nodes/19.js-CmWOSZcm.js +64 -0
  409. package/build/server/chunks/nodes/2.js-CLB-XV4H.js +63 -0
  410. package/build/server/chunks/nodes/20.js-Bv8mf2k9.js +24 -0
  411. package/build/server/chunks/nodes/21.js-Cj-sht45.js +25 -0
  412. package/build/server/chunks/nodes/22.js-BMWD13bW.js +9 -0
  413. package/build/server/chunks/nodes/23.js-BFPu5J7m.js +25 -0
  414. package/build/server/chunks/nodes/24.js-DmRx7lma.js +63 -0
  415. package/build/server/chunks/nodes/26.js-BzmxsP0K.js +64 -0
  416. package/build/server/chunks/nodes/27.js-BOBLm3Xv.js +63 -0
  417. package/build/server/chunks/nodes/28.js--5lcdSOl.js +25 -0
  418. package/build/server/chunks/nodes/29.js-BpFLyOWJ.js +63 -0
  419. package/build/server/chunks/nodes/3.js-B93UtyJs.js +9 -0
  420. package/build/server/chunks/nodes/30.js-B4DJpQXi.js +24 -0
  421. package/build/server/chunks/nodes/31.js-DOOOaYTt.js +22 -0
  422. package/build/server/chunks/nodes/32.js-BY7fFTcK.js +63 -0
  423. package/build/server/chunks/nodes/33.js-3D_1qIJ2.js +66 -0
  424. package/build/server/chunks/nodes/34.js-BYRFhIDN.js +65 -0
  425. package/build/server/chunks/nodes/35.js-CfsTfMZd.js +26 -0
  426. package/build/server/chunks/nodes/36.js-BLSBbLWX.js +65 -0
  427. package/build/server/chunks/nodes/37.js-D97cum02.js +67 -0
  428. package/build/server/chunks/nodes/38.js-DmCNtoo5.js +64 -0
  429. package/build/server/chunks/nodes/39.js-zevF1xrn.js +64 -0
  430. package/build/server/chunks/nodes/4.js-DkEAmKO9.js +64 -0
  431. package/build/server/chunks/nodes/40.js-9ki1tEOB.js +63 -0
  432. package/build/server/chunks/nodes/5.js-0Xrkj28g.js +63 -0
  433. package/build/server/chunks/nodes/7.js-BwbHOQcn.js +63 -0
  434. package/build/server/chunks/nodes/8.js-3pWfDfVU.js +14 -0
  435. package/build/server/chunks/nodes/9.js-BgyqCMp-.js +63 -0
  436. package/dist/cli.js +1 -1
  437. package/dist/wh-vault.js +1 -1
  438. package/firstmate-extension/firstmate-extension.json +1 -1
  439. package/package.json +1 -1
  440. package/build/client/_app/immutable/assets/0.DvoPFmNs.css +0 -1
  441. package/build/client/_app/immutable/assets/0.DvoPFmNs.css.br +0 -0
  442. package/build/client/_app/immutable/assets/0.DvoPFmNs.css.gz +0 -0
  443. package/build/client/_app/immutable/chunks/BBm_Fs-b.js +0 -6
  444. package/build/client/_app/immutable/chunks/BBm_Fs-b.js.br +0 -0
  445. package/build/client/_app/immutable/chunks/BBm_Fs-b.js.gz +0 -0
  446. package/build/client/_app/immutable/chunks/BCs6bnXY.js +0 -1
  447. package/build/client/_app/immutable/chunks/BCs6bnXY.js.br +0 -0
  448. package/build/client/_app/immutable/chunks/BCs6bnXY.js.gz +0 -0
  449. package/build/client/_app/immutable/chunks/BF_cZ9t1.js +0 -1
  450. package/build/client/_app/immutable/chunks/BF_cZ9t1.js.br +0 -0
  451. package/build/client/_app/immutable/chunks/BF_cZ9t1.js.gz +0 -0
  452. package/build/client/_app/immutable/chunks/BJ2W5Dwa.js +0 -1
  453. package/build/client/_app/immutable/chunks/BJ2W5Dwa.js.br +0 -0
  454. package/build/client/_app/immutable/chunks/BJ2W5Dwa.js.gz +0 -0
  455. package/build/client/_app/immutable/chunks/B_2dI8B-.js +0 -1
  456. package/build/client/_app/immutable/chunks/B_2dI8B-.js.br +0 -0
  457. package/build/client/_app/immutable/chunks/B_2dI8B-.js.gz +0 -0
  458. package/build/client/_app/immutable/chunks/B_vxNA4w.js +0 -1
  459. package/build/client/_app/immutable/chunks/B_vxNA4w.js.br +0 -0
  460. package/build/client/_app/immutable/chunks/B_vxNA4w.js.gz +0 -0
  461. package/build/client/_app/immutable/chunks/BhudhehD.js +0 -1
  462. package/build/client/_app/immutable/chunks/BhudhehD.js.br +0 -0
  463. package/build/client/_app/immutable/chunks/BhudhehD.js.gz +0 -0
  464. package/build/client/_app/immutable/chunks/BkMzJnu3.js +0 -3
  465. package/build/client/_app/immutable/chunks/BkMzJnu3.js.br +0 -0
  466. package/build/client/_app/immutable/chunks/BkMzJnu3.js.gz +0 -0
  467. package/build/client/_app/immutable/chunks/Bk_ZNhuN.js +0 -1
  468. package/build/client/_app/immutable/chunks/Bk_ZNhuN.js.br +0 -0
  469. package/build/client/_app/immutable/chunks/Bk_ZNhuN.js.gz +0 -0
  470. package/build/client/_app/immutable/chunks/C--OEIw2.js +0 -1
  471. package/build/client/_app/immutable/chunks/C--OEIw2.js.br +0 -0
  472. package/build/client/_app/immutable/chunks/C--OEIw2.js.gz +0 -0
  473. package/build/client/_app/immutable/chunks/C4rlO5ce.js +0 -2
  474. package/build/client/_app/immutable/chunks/C4rlO5ce.js.br +0 -0
  475. package/build/client/_app/immutable/chunks/C4rlO5ce.js.gz +0 -0
  476. package/build/client/_app/immutable/chunks/CU--1UbH.js +0 -1
  477. package/build/client/_app/immutable/chunks/CU--1UbH.js.br +0 -0
  478. package/build/client/_app/immutable/chunks/CU--1UbH.js.gz +0 -0
  479. package/build/client/_app/immutable/chunks/CWCjMcSQ.js +0 -1
  480. package/build/client/_app/immutable/chunks/CWCjMcSQ.js.br +0 -1
  481. package/build/client/_app/immutable/chunks/CWCjMcSQ.js.gz +0 -0
  482. package/build/client/_app/immutable/chunks/CuYc7d4s.js +0 -1
  483. package/build/client/_app/immutable/chunks/CuYc7d4s.js.br +0 -0
  484. package/build/client/_app/immutable/chunks/CuYc7d4s.js.gz +0 -0
  485. package/build/client/_app/immutable/chunks/DDdYnEAT.js +0 -1
  486. package/build/client/_app/immutable/chunks/DDdYnEAT.js.br +0 -0
  487. package/build/client/_app/immutable/chunks/DDdYnEAT.js.gz +0 -0
  488. package/build/client/_app/immutable/chunks/DFCS-1G4.js +0 -7
  489. package/build/client/_app/immutable/chunks/DFCS-1G4.js.br +0 -0
  490. package/build/client/_app/immutable/chunks/DFCS-1G4.js.gz +0 -0
  491. package/build/client/_app/immutable/chunks/DIVbIv6L.js +0 -1
  492. package/build/client/_app/immutable/chunks/DIVbIv6L.js.br +0 -0
  493. package/build/client/_app/immutable/chunks/DIVbIv6L.js.gz +0 -0
  494. package/build/client/_app/immutable/chunks/DKap1_6w.js +0 -1
  495. package/build/client/_app/immutable/chunks/DKap1_6w.js.br +0 -0
  496. package/build/client/_app/immutable/chunks/DKap1_6w.js.gz +0 -0
  497. package/build/client/_app/immutable/chunks/DOuX60Xh.js +0 -1
  498. package/build/client/_app/immutable/chunks/DOuX60Xh.js.br +0 -0
  499. package/build/client/_app/immutable/chunks/DOuX60Xh.js.gz +0 -0
  500. package/build/client/_app/immutable/chunks/DSX3BpgH.js +0 -7
  501. package/build/client/_app/immutable/chunks/DSX3BpgH.js.br +0 -0
  502. package/build/client/_app/immutable/chunks/DSX3BpgH.js.gz +0 -0
  503. package/build/client/_app/immutable/chunks/DUXFc1rr.js +0 -2
  504. package/build/client/_app/immutable/chunks/DUXFc1rr.js.br +0 -0
  505. package/build/client/_app/immutable/chunks/DUXFc1rr.js.gz +0 -0
  506. package/build/client/_app/immutable/chunks/DW78OM6E.js +0 -1
  507. package/build/client/_app/immutable/chunks/DW78OM6E.js.br +0 -0
  508. package/build/client/_app/immutable/chunks/DW78OM6E.js.gz +0 -0
  509. package/build/client/_app/immutable/chunks/DcngPT1B.js +0 -8
  510. package/build/client/_app/immutable/chunks/DcngPT1B.js.br +0 -0
  511. package/build/client/_app/immutable/chunks/DcngPT1B.js.gz +0 -0
  512. package/build/client/_app/immutable/chunks/DeI80PG9.js +0 -3
  513. package/build/client/_app/immutable/chunks/DeI80PG9.js.br +0 -0
  514. package/build/client/_app/immutable/chunks/DeI80PG9.js.gz +0 -0
  515. package/build/client/_app/immutable/chunks/DjaUBMdB.js +0 -1
  516. package/build/client/_app/immutable/chunks/DjaUBMdB.js.br +0 -0
  517. package/build/client/_app/immutable/chunks/DjaUBMdB.js.gz +0 -0
  518. package/build/client/_app/immutable/chunks/DkLM7lHB.js +0 -2
  519. package/build/client/_app/immutable/chunks/DkLM7lHB.js.br +0 -0
  520. package/build/client/_app/immutable/chunks/DkLM7lHB.js.gz +0 -0
  521. package/build/client/_app/immutable/chunks/H0f_fYvf.js +0 -4
  522. package/build/client/_app/immutable/chunks/H0f_fYvf.js.br +0 -0
  523. package/build/client/_app/immutable/chunks/H0f_fYvf.js.gz +0 -0
  524. package/build/client/_app/immutable/chunks/LJz6leLj.js +0 -3
  525. package/build/client/_app/immutable/chunks/LJz6leLj.js.br +0 -0
  526. package/build/client/_app/immutable/chunks/LJz6leLj.js.gz +0 -0
  527. package/build/client/_app/immutable/chunks/WrKGiNFc.js +0 -2
  528. package/build/client/_app/immutable/chunks/WrKGiNFc.js.br +0 -0
  529. package/build/client/_app/immutable/chunks/WrKGiNFc.js.gz +0 -0
  530. package/build/client/_app/immutable/chunks/bVnBahjY.js +0 -6
  531. package/build/client/_app/immutable/chunks/bVnBahjY.js.br +0 -0
  532. package/build/client/_app/immutable/chunks/bVnBahjY.js.gz +0 -0
  533. package/build/client/_app/immutable/chunks/jGjhSZaO.js +0 -1
  534. package/build/client/_app/immutable/chunks/jGjhSZaO.js.br +0 -0
  535. package/build/client/_app/immutable/chunks/jGjhSZaO.js.gz +0 -0
  536. package/build/client/_app/immutable/entry/app.CBd4ts86.js +0 -2
  537. package/build/client/_app/immutable/entry/app.CBd4ts86.js.br +0 -0
  538. package/build/client/_app/immutable/entry/app.CBd4ts86.js.gz +0 -0
  539. package/build/client/_app/immutable/entry/start.DsKQ0RT3.js +0 -1
  540. package/build/client/_app/immutable/entry/start.DsKQ0RT3.js.br +0 -0
  541. package/build/client/_app/immutable/entry/start.DsKQ0RT3.js.gz +0 -0
  542. package/build/client/_app/immutable/nodes/0.F-xI54ba.js +0 -9
  543. package/build/client/_app/immutable/nodes/0.F-xI54ba.js.br +0 -0
  544. package/build/client/_app/immutable/nodes/0.F-xI54ba.js.gz +0 -0
  545. package/build/client/_app/immutable/nodes/1.BeXAD0_3.js +0 -1
  546. package/build/client/_app/immutable/nodes/1.BeXAD0_3.js.br +0 -0
  547. package/build/client/_app/immutable/nodes/1.BeXAD0_3.js.gz +0 -0
  548. package/build/client/_app/immutable/nodes/10.MkZ74VF5.js +0 -9
  549. package/build/client/_app/immutable/nodes/10.MkZ74VF5.js.br +0 -0
  550. package/build/client/_app/immutable/nodes/10.MkZ74VF5.js.gz +0 -0
  551. package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js +0 -2
  552. package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js.br +0 -0
  553. package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js.gz +0 -0
  554. package/build/client/_app/immutable/nodes/12.pVeM3rSk.js +0 -6
  555. package/build/client/_app/immutable/nodes/12.pVeM3rSk.js.br +0 -0
  556. package/build/client/_app/immutable/nodes/12.pVeM3rSk.js.gz +0 -0
  557. package/build/client/_app/immutable/nodes/13.DftunDAR.js +0 -1
  558. package/build/client/_app/immutable/nodes/13.DftunDAR.js.br +0 -0
  559. package/build/client/_app/immutable/nodes/13.DftunDAR.js.gz +0 -0
  560. package/build/client/_app/immutable/nodes/14.CoquYL6y.js +0 -10
  561. package/build/client/_app/immutable/nodes/14.CoquYL6y.js.br +0 -0
  562. package/build/client/_app/immutable/nodes/14.CoquYL6y.js.gz +0 -0
  563. package/build/client/_app/immutable/nodes/15.DWSZSNt3.js +0 -1
  564. package/build/client/_app/immutable/nodes/15.DWSZSNt3.js.br +0 -0
  565. package/build/client/_app/immutable/nodes/15.DWSZSNt3.js.gz +0 -0
  566. package/build/client/_app/immutable/nodes/16.Cd97GqaU.js +0 -3
  567. package/build/client/_app/immutable/nodes/16.Cd97GqaU.js.br +0 -0
  568. package/build/client/_app/immutable/nodes/16.Cd97GqaU.js.gz +0 -0
  569. package/build/client/_app/immutable/nodes/17.CeIjKAJx.js +0 -1
  570. package/build/client/_app/immutable/nodes/17.CeIjKAJx.js.br +0 -0
  571. package/build/client/_app/immutable/nodes/17.CeIjKAJx.js.gz +0 -0
  572. package/build/client/_app/immutable/nodes/18.D5iwjrHU.js +0 -14
  573. package/build/client/_app/immutable/nodes/18.D5iwjrHU.js.br +0 -0
  574. package/build/client/_app/immutable/nodes/18.D5iwjrHU.js.gz +0 -0
  575. package/build/client/_app/immutable/nodes/19.C7weQjUV.js +0 -150
  576. package/build/client/_app/immutable/nodes/19.C7weQjUV.js.br +0 -0
  577. package/build/client/_app/immutable/nodes/19.C7weQjUV.js.gz +0 -0
  578. package/build/client/_app/immutable/nodes/2.1HiIWXTK.js +0 -40
  579. package/build/client/_app/immutable/nodes/2.1HiIWXTK.js.br +0 -0
  580. package/build/client/_app/immutable/nodes/2.1HiIWXTK.js.gz +0 -0
  581. package/build/client/_app/immutable/nodes/20.CI3Th2_V.js +0 -25
  582. package/build/client/_app/immutable/nodes/20.CI3Th2_V.js.br +0 -0
  583. package/build/client/_app/immutable/nodes/20.CI3Th2_V.js.gz +0 -0
  584. package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js +0 -5
  585. package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js.br +0 -0
  586. package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js.gz +0 -0
  587. package/build/client/_app/immutable/nodes/22.BeRzoSXH.js +0 -18
  588. package/build/client/_app/immutable/nodes/22.BeRzoSXH.js.br +0 -0
  589. package/build/client/_app/immutable/nodes/22.BeRzoSXH.js.gz +0 -0
  590. package/build/client/_app/immutable/nodes/24.BLuVZRkq.js +0 -4
  591. package/build/client/_app/immutable/nodes/24.BLuVZRkq.js.br +0 -0
  592. package/build/client/_app/immutable/nodes/24.BLuVZRkq.js.gz +0 -0
  593. package/build/client/_app/immutable/nodes/26.CYAb3esZ.js +0 -6
  594. package/build/client/_app/immutable/nodes/26.CYAb3esZ.js.br +0 -0
  595. package/build/client/_app/immutable/nodes/26.CYAb3esZ.js.gz +0 -0
  596. package/build/client/_app/immutable/nodes/27.CcQodI5j.js +0 -8
  597. package/build/client/_app/immutable/nodes/27.CcQodI5j.js.br +0 -0
  598. package/build/client/_app/immutable/nodes/27.CcQodI5j.js.gz +0 -0
  599. package/build/client/_app/immutable/nodes/28.B0JWWCYd.js +0 -2
  600. package/build/client/_app/immutable/nodes/28.B0JWWCYd.js.br +0 -0
  601. package/build/client/_app/immutable/nodes/28.B0JWWCYd.js.gz +0 -0
  602. package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js +0 -5
  603. package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js.br +0 -0
  604. package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js.gz +0 -0
  605. package/build/client/_app/immutable/nodes/3.j0BjUyv6.js +0 -2
  606. package/build/client/_app/immutable/nodes/3.j0BjUyv6.js.br +0 -0
  607. package/build/client/_app/immutable/nodes/3.j0BjUyv6.js.gz +0 -0
  608. package/build/client/_app/immutable/nodes/30.BEz9JoNL.js +0 -4
  609. package/build/client/_app/immutable/nodes/30.BEz9JoNL.js.br +0 -0
  610. package/build/client/_app/immutable/nodes/30.BEz9JoNL.js.gz +0 -0
  611. package/build/client/_app/immutable/nodes/31.keG04jdU.js +0 -3
  612. package/build/client/_app/immutable/nodes/31.keG04jdU.js.br +0 -0
  613. package/build/client/_app/immutable/nodes/31.keG04jdU.js.gz +0 -0
  614. package/build/client/_app/immutable/nodes/32.DvZix2vN.js +0 -7
  615. package/build/client/_app/immutable/nodes/32.DvZix2vN.js.br +0 -0
  616. package/build/client/_app/immutable/nodes/32.DvZix2vN.js.gz +0 -0
  617. package/build/client/_app/immutable/nodes/33.CsEI_wli.js +0 -2
  618. package/build/client/_app/immutable/nodes/33.CsEI_wli.js.br +0 -0
  619. package/build/client/_app/immutable/nodes/33.CsEI_wli.js.gz +0 -0
  620. package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js +0 -4
  621. package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js.br +0 -0
  622. package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js.gz +0 -0
  623. package/build/client/_app/immutable/nodes/35.ByNF3cvk.js +0 -7
  624. package/build/client/_app/immutable/nodes/35.ByNF3cvk.js.br +0 -0
  625. package/build/client/_app/immutable/nodes/35.ByNF3cvk.js.gz +0 -0
  626. package/build/client/_app/immutable/nodes/36.C0AqTZfD.js +0 -6
  627. package/build/client/_app/immutable/nodes/36.C0AqTZfD.js.br +0 -0
  628. package/build/client/_app/immutable/nodes/36.C0AqTZfD.js.gz +0 -0
  629. package/build/client/_app/immutable/nodes/37.C983Oc7Q.js +0 -23
  630. package/build/client/_app/immutable/nodes/37.C983Oc7Q.js.br +0 -0
  631. package/build/client/_app/immutable/nodes/37.C983Oc7Q.js.gz +0 -0
  632. package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js +0 -1
  633. package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js.br +0 -0
  634. package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js.gz +0 -0
  635. package/build/client/_app/immutable/nodes/4.CrCa5tPK.js +0 -5
  636. package/build/client/_app/immutable/nodes/4.CrCa5tPK.js.br +0 -0
  637. package/build/client/_app/immutable/nodes/4.CrCa5tPK.js.gz +0 -0
  638. package/build/client/_app/immutable/nodes/40.DuKLsUmt.js +0 -6
  639. package/build/client/_app/immutable/nodes/40.DuKLsUmt.js.br +0 -0
  640. package/build/client/_app/immutable/nodes/40.DuKLsUmt.js.gz +0 -0
  641. package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js +0 -1
  642. package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js.br +0 -0
  643. package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js.gz +0 -0
  644. package/build/client/_app/immutable/nodes/8.BV94HuPe.js +0 -3
  645. package/build/client/_app/immutable/nodes/8.BV94HuPe.js.br +0 -0
  646. package/build/client/_app/immutable/nodes/8.BV94HuPe.js.gz +0 -0
  647. package/build/client/_app/immutable/nodes/9.dDDTNF4u.js +0 -10
  648. package/build/client/_app/immutable/nodes/9.dDDTNF4u.js.br +0 -0
  649. package/build/client/_app/immutable/nodes/9.dDDTNF4u.js.gz +0 -0
  650. package/build/server/chunks/chunks/ConsoleWindow.js-Fy80ITde.js +0 -120
  651. package/build/server/chunks/chunks/DecisionForm.js-CGXVl0Ew.js +0 -246
  652. package/build/server/chunks/chunks/DecisionsBadge.js-B1u51GOK.js +0 -78
  653. package/build/server/chunks/chunks/Discussion.js-C0cR_sJ7.js +0 -581
  654. package/build/server/chunks/chunks/EtaLine.js-DZaZbteA.js +0 -41
  655. package/build/server/chunks/chunks/ResizableRail.js-D23G9R7d.js +0 -900
  656. package/build/server/chunks/chunks/Sheet.js-CjZDwlbd.js +0 -3958
  657. package/build/server/chunks/chunks/TaskView.js-DAZFWu1M.js +0 -3015
  658. package/build/server/chunks/chunks/TimeBar.js-BaEB0RHk.js +0 -32
  659. package/build/server/chunks/chunks/TimeLegend.js-Dk3obyPy.js +0 -29
  660. package/build/server/chunks/chunks/bell.js-CFf6k_A-.js +0 -194
  661. package/build/server/chunks/chunks/chat.svelte.js-o7Bx_hjm.js +0 -371
  662. package/build/server/chunks/chunks/decisionhome.js-B8fMEoGK.js +0 -311
  663. package/build/server/chunks/chunks/detail.js-AOyyGV6f.js +0 -149
  664. package/build/server/chunks/chunks/features.js-Dih8hX3K.js +0 -181
  665. package/build/server/chunks/chunks/feedback.js-Y_qeE4lk.js +0 -67
  666. package/build/server/chunks/chunks/handled.js-D9a3Vg06.js +0 -20
  667. package/build/server/chunks/chunks/inbox.js-BTGWlv8y.js +0 -222
  668. package/build/server/chunks/chunks/insights.js-CzzfyHGp.js +0 -100
  669. package/build/server/chunks/chunks/insights.svelte.js-F2Gg47lw.js +0 -564
  670. package/build/server/chunks/chunks/internal.js-YFFIkEGy.js +0 -151
  671. package/build/server/chunks/chunks/livereview.svelte.js-DeQC-NNP.js +0 -61
  672. package/build/server/chunks/chunks/marketplace-service.js-ByN9lMyn.js +0 -557
  673. package/build/server/chunks/chunks/ondeck.js-BV5Wby4b.js +0 -119
  674. package/build/server/chunks/chunks/package.js-CRRRb0vq.js +0 -160
  675. package/build/server/chunks/chunks/page.js-5YKGK16Q.js +0 -13
  676. package/build/server/chunks/chunks/previewhelper2.js-C8YozFzs.js +0 -210
  677. package/build/server/chunks/chunks/runtime.js-beTUQJvS.js +0 -25604
  678. package/build/server/chunks/chunks/scribe.js-sGGKDf0Q.js +0 -1317
  679. package/build/server/chunks/chunks/service.js-hNir0rQ0.js +0 -1339
  680. package/build/server/chunks/chunks/service2.js-CCi6VqWr.js +0 -835
  681. package/build/server/chunks/chunks/service3.js-CYxcsw27.js +0 -234
  682. package/build/server/chunks/chunks/settings.js-B5e9I92Q.js +0 -379
  683. package/build/server/chunks/chunks/slots.svelte.js-CLIV5nwM.js +0 -34
  684. package/build/server/chunks/chunks/starter.js-yK7UTpae.js +0 -400
  685. package/build/server/chunks/chunks/store.js-CNgqr3Sa.js +0 -332
  686. package/build/server/chunks/chunks/uploads.js-D6dIdsOn.js +0 -107
  687. package/build/server/chunks/chunks/view.js-C_sVwMxj.js +0 -76
  688. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DcDrpzQ0.js +0 -112
  689. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-PsKvo0EQ.js +0 -111
  690. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-ChKr8jQB.js +0 -59
  691. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BYOITfdX.js +0 -75
  692. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-Cuml2nA8.js +0 -79
  693. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-oUq7VB-c.js +0 -154
  694. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CoKMlAw2.js +0 -56
  695. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CFB---55.js +0 -71
  696. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-38TWOJFC.js +0 -107
  697. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-Ds4yFTov.js +0 -83
  698. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-BrfpEAdf.js +0 -73
  699. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-ClGkZJrE.js +0 -66
  700. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BAi2jIUa.js +0 -66
  701. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DU9fFldF.js +0 -67
  702. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-rmxE3GDI.js +0 -73
  703. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Er7ICTMc.js +0 -66
  704. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CzhSZtJx.js +0 -115
  705. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-C62koQm8.js +0 -76
  706. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DmH3adF3.js +0 -87
  707. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BTqcOxFr.js +0 -75
  708. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-0H1slVlF.js +0 -66
  709. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-pnIDY7K-.js +0 -32
  710. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-BBzkAG43.js +0 -40
  711. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-D9IhzsNZ.js +0 -58
  712. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Dzm8TJik.js +0 -58
  713. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-Cj-QPW9H.js +0 -85
  714. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CQPAH9lf.js +0 -83
  715. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-ByfBJSzN.js +0 -76
  716. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DPhhSbn9.js +0 -168
  717. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Bg9HUq2z.js +0 -58
  718. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DbDwbrB4.js +0 -87
  719. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-BCQlnrGe.js +0 -96
  720. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C4IE5onc.js +0 -118
  721. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BEQa9lj6.js +0 -72
  722. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-2JFQWMGG.js +0 -93
  723. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-Bu0VmgeG.js +0 -82
  724. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DMVzgRXs.js +0 -77
  725. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BkQZamil.js +0 -74
  726. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-Dz9dAgEt.js +0 -27
  727. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-D6m-gaJm.js +0 -81
  728. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-D2F2UeX3.js +0 -39
  729. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CMcKr8nq.js +0 -58
  730. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CyX2kUrz.js +0 -39
  731. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-CAgJLmfJ.js +0 -42
  732. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-C-YOUEeh.js +0 -63
  733. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BuB_aUcs.js +0 -72
  734. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-uFBc9qAF.js +0 -69
  735. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BwP7m1ne.js +0 -73
  736. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BDXiQIdE.js +0 -27
  737. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BHTqJRTV.js +0 -81
  738. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DaExrOG9.js +0 -63
  739. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-BBcgKi4i.js +0 -72
  740. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BPgyW_wK.js +0 -84
  741. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-B3_OvzWw.js +0 -71
  742. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-C1qyVk-B.js +0 -94
  743. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-CWjUpm9b.js +0 -77
  744. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Y6iM0S6h.js +0 -473
  745. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-C2XK2RjP.js +0 -88
  746. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-DOBoBUsW.js +0 -67
  747. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-ClGwOp1I.js +0 -77
  748. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-DrfL6cjv.js +0 -137
  749. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CcZPyGtL.js +0 -66
  750. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DA8MpdlA.js +0 -80
  751. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-C9MStV42.js +0 -66
  752. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-aiZABdT4.js +0 -69
  753. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CFWnCNhR.js +0 -63
  754. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-rUy8BKIx.js +0 -82
  755. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-B0sfWkfC.js +0 -109
  756. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-BwKBxIbZ.js +0 -75
  757. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-VsLkyd6z.js +0 -104
  758. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-sPq94TYM.js +0 -123
  759. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-dlImNVbc.js +0 -77
  760. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-Ajt27nH3.js +0 -80
  761. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-C7_DGaT1.js +0 -81
  762. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BPzYZcVX.js +0 -24
  763. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-tje_tDmn.js +0 -31
  764. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-CboOaWGF.js +0 -33
  765. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-ByGfzq0k.js +0 -93
  766. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-CAarY5F9.js +0 -40
  767. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CG8phUOI.js +0 -27
  768. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DVALJQwH.js +0 -27
  769. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DJbuQ133.js +0 -82
  770. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-C2GHSxyQ.js +0 -62
  771. package/build/server/chunks/entries/hooks.server.js-Glu4cfzQ.js +0 -104
  772. package/build/server/chunks/entries/pages/_layout.server.ts.js-C2Q75Dku.js +0 -54
  773. package/build/server/chunks/entries/pages/_layout.svelte.js-CvC6XBJv.js +0 -6027
  774. package/build/server/chunks/entries/pages/_page.server.ts.js-DdBa3OcX.js +0 -16
  775. package/build/server/chunks/entries/pages/_page.svelte.js-mP8Czi7r.js +0 -5776
  776. package/build/server/chunks/entries/pages/crew/_page.svelte.js-DPAqRea5.js +0 -114
  777. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CHrBjN6U.js +0 -11
  778. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-CpO0O1OU.js +0 -203
  779. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DVXZwj-D.js +0 -16
  780. package/build/server/chunks/entries/pages/deck/_page.svelte.js-BXRSYCJu.js +0 -92
  781. package/build/server/chunks/entries/pages/files/_page.server.ts.js-DPw8W3cO.js +0 -17
  782. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-BIxCYvRT.js +0 -11
  783. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-DpQNL_3w.js +0 -296
  784. package/build/server/chunks/entries/pages/health/_page.server.ts.js-BmvIfRNN.js +0 -16
  785. package/build/server/chunks/entries/pages/health/_page.svelte.js-Hv9ZBH4n.js +0 -517
  786. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DYmxSK6o.js +0 -11
  787. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-B0s298VF.js +0 -653
  788. package/build/server/chunks/entries/pages/more/_page.svelte.js-CufPJWN5.js +0 -152
  789. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BM100wYL.js +0 -16
  790. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-C5XPxJUP.js +0 -60
  791. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-CsxshObH.js +0 -23
  792. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-DHr4nadD.js +0 -982
  793. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CdLIMcCE.js +0 -21
  794. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Bf2ZytHx.js +0 -82
  795. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-UDHRJeTm.js +0 -27
  796. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-JqXcyM-3.js +0 -420
  797. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CRrQcUKj.js +0 -15
  798. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-Cb7pCLmf.js +0 -11
  799. package/build/server/chunks/entries/pages/remotes/_page.svelte.js-DTAfyct4.js +0 -347
  800. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-uBLPj30-.js +0 -13
  801. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-B3XP4Mv2.js +0 -12
  802. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-tOduOAOo.js +0 -18
  803. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-Dewu_3lC.js +0 -19
  804. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-Bosk4MgV.js +0 -16
  805. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-CZtFqHkG.js +0 -15
  806. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-DvO07PUQ.js +0 -83
  807. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-Dm16bW7a.js +0 -797
  808. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DKBRV1Kv.js +0 -11
  809. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-82UzMnWS.js +0 -258
  810. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BuXRLXt-.js +0 -19
  811. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-aYwltwyo.js +0 -17
  812. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CBnW3vAL.js +0 -11
  813. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-mmHvowRY.js +0 -11
  814. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-BtcArcMy.js +0 -15
  815. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CWVSledS.js +0 -18
  816. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-J4OLpWmN.js +0 -36
  817. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-DS5ww-c8.js +0 -111
  818. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-D9dQvbNO.js +0 -24
  819. package/build/server/chunks/entries/pages/time/_page.server.ts.js-DD-uGmhK.js +0 -11
  820. package/build/server/chunks/entries/pages/time/_page.svelte.js-CWz6ug4X.js +0 -109
  821. package/build/server/chunks/handler-Rlgr3qgp.js +0 -1474
  822. package/build/server/chunks/index.js-Cq8PeAYv.js +0 -4296
  823. package/build/server/chunks/manifest.js-D2nXE20x.js +0 -969
  824. package/build/server/chunks/nodes/0.js-D-AyokcK.js +0 -66
  825. package/build/server/chunks/nodes/1.js-CEP8Wkc6.js +0 -9
  826. package/build/server/chunks/nodes/10.js-DQ05XfkH.js +0 -65
  827. package/build/server/chunks/nodes/11.js-CUI7nHXF.js +0 -63
  828. package/build/server/chunks/nodes/12.js-D4Qq5-L5.js +0 -12
  829. package/build/server/chunks/nodes/13.js-B5b0noB_.js +0 -9
  830. package/build/server/chunks/nodes/14.js-Dz8rjKdf.js +0 -9
  831. package/build/server/chunks/nodes/15.js-CqjaR54q.js +0 -63
  832. package/build/server/chunks/nodes/16.js-CSFtMqSs.js +0 -66
  833. package/build/server/chunks/nodes/17.js-DIXFVzud.js +0 -64
  834. package/build/server/chunks/nodes/18.js-D0OLmYtB.js +0 -65
  835. package/build/server/chunks/nodes/19.js-CjK_nc0R.js +0 -64
  836. package/build/server/chunks/nodes/2.js-C5aTOTCK.js +0 -63
  837. package/build/server/chunks/nodes/20.js-F_X6MGKx.js +0 -24
  838. package/build/server/chunks/nodes/21.js-CLD608m1.js +0 -25
  839. package/build/server/chunks/nodes/22.js-DJDOD8dQ.js +0 -9
  840. package/build/server/chunks/nodes/23.js-DlV1Jrn6.js +0 -25
  841. package/build/server/chunks/nodes/24.js-1ccZSvaM.js +0 -63
  842. package/build/server/chunks/nodes/26.js-P2RkHNN_.js +0 -64
  843. package/build/server/chunks/nodes/27.js-CHcCaT46.js +0 -63
  844. package/build/server/chunks/nodes/28.js-mNdmkKwl.js +0 -25
  845. package/build/server/chunks/nodes/29.js-Cds-0H9b.js +0 -63
  846. package/build/server/chunks/nodes/3.js-Dm0t0ruE.js +0 -9
  847. package/build/server/chunks/nodes/30.js-CbuDQapx.js +0 -24
  848. package/build/server/chunks/nodes/31.js-DoqM4d_j.js +0 -22
  849. package/build/server/chunks/nodes/32.js-uWw9LwYe.js +0 -63
  850. package/build/server/chunks/nodes/33.js-Bi8tKoQ6.js +0 -66
  851. package/build/server/chunks/nodes/34.js-CPjjhmOm.js +0 -65
  852. package/build/server/chunks/nodes/35.js-CBKkzHgr.js +0 -26
  853. package/build/server/chunks/nodes/36.js-CTvFiRyW.js +0 -65
  854. package/build/server/chunks/nodes/37.js-1vY9OMcr.js +0 -67
  855. package/build/server/chunks/nodes/38.js-DhcBz8pw.js +0 -64
  856. package/build/server/chunks/nodes/39.js-5F3z7S6Q.js +0 -64
  857. package/build/server/chunks/nodes/4.js-KHEhlqP6.js +0 -63
  858. package/build/server/chunks/nodes/40.js-DcvGK4bV.js +0 -63
  859. package/build/server/chunks/nodes/5.js-_ddQMODI.js +0 -63
  860. package/build/server/chunks/nodes/7.js-CmYiMFTa.js +0 -63
  861. package/build/server/chunks/nodes/8.js-LyEm37G-.js +0 -14
  862. package/build/server/chunks/nodes/9.js-47Ps2sky.js +0 -63
@@ -0,0 +1 @@
1
+ import"./DsnmJJEf.js";import{p as N,u as v,g as c,m as f,k as y,f as U,s as P,t as j,a as S,b as F,h as _,i as g,o as W,c as T}from"./CEfkcOME.js";import{s as x}from"./CPPNfCxh.js";import{i as C}from"./D4ikcNuh.js";import{s as D}from"./BMjXQSgN.js";import{b as R}from"./DKCbih8n.js";import{p as E}from"./D42BPZCD.js";import{p as M}from"./CjDEH2t9.js";import{S as b}from"./BXN538J3.js";import{a as q}from"./D8swcNrI.js";async function J(r,e,a,o=`wh-${crypto.randomUUID()}`){try{const n=await fetch(`/api/plugins/${encodeURIComponent(r)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":o,[b]:a},body:JSON.stringify(e)});if(n.ok){const t=await n.json().catch(()=>null);return t?.message?.delivery==="failed"?{ok:!1,error:t.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:n.status===202}}return{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function B(r,e,a){try{const o=await fetch(`/api/plugins/${encodeURIComponent(r)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[b]:a},body:JSON.stringify(e)}),n=await o.json().catch(()=>null);return o.ok&&Array.isArray(n?.points)?{ok:!0,points:n.points}:{ok:!1,error:n?.message??`Wheelhouse answered ${o.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const H=r=>new URLSearchParams({plugin:r.plugin,service:r.service,...r.project?{project:r.project}:{}}).toString();async function z(r){try{const e=await fetch(`/api/services?${H(r)}`);return e.ok?await e.json():null}catch{return null}}async function L(r,e,a=null){const o=window.open("","_blank");try{o?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let n=null;try{const t=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[b]:e},body:JSON.stringify({plugin:r.plugin,service:r.service,project:r.project??null})});n=t.ok?await t.json():{...await t.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${t.status}).`}}catch{n=null}const s=n?.state==="running"?a??n.url:null;if(s){const t=q.view(s);o?o.location.href=t:window.open(t,"_blank")}else o?.close();return n}const G=5e3,k=new Map;function K(r,e){let a=k.get(r);return a||(a=e(r).catch(o=>{throw k.delete(r),o}),k.set(r,a)),a}const I=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function Q(r,e){const a=r.pluginId,o=(s,t)=>{if(typeof s!="string"||!s)throw new TypeError("Name a service.");const i=t===void 0?r.projectId:t;return{plugin:a,service:s,project:typeof i=="string"&&i?i:null}},n=s=>{const t=typeof s=="object"&&s!==null?s:{},i=typeof t.task=="string"&&t.task?t.task:r.taskId??null;return i?{taskId:i,subject:typeof t.subject=="string"?t.subject:null,items:Array.isArray(t.items)?t.items:[]}:null};return Object.freeze({pluginId:a,service:async(s,t={})=>e.status(o(s,t.project)),launch:async(s,t={})=>e.launch(o(s,t.project),e.token(),typeof t.open=="string"?t.open:null),sendFeedback:async s=>{if(!(e.clicked??I)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const t=n(s);return t?e.feedback(a,t,e.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async s=>{if(!(e.clicked??I)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!e.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const t=n(s);return t?e.summarise(a,t,e.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function V(r,e){if(!customElements.get(e.tag)){if(!e.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await K(e.ui,e.importer??(n=>import(n)))}catch(n){throw new Error(`its UI bundle did not load (${n instanceof Error?n.message:String(n)})`)}let o;try{await Promise.race([customElements.whenDefined(e.tag),new Promise((n,s)=>{o=setTimeout(()=>s(new Error(`its UI bundle does not define <${e.tag}>`)),e.timeoutMs??G)})])}finally{clearTimeout(o)}}const a=document.createElement(e.tag);return e.host&&(a.host=e.host),a.entry=e.entry,a.data=e.data,r.append(a),a}var X=T('<p class="text-sm text-muted-foreground"> </p>'),Y=T('<div class="contents"></div> <!>',1);function ce(r,e){N(e,!0);let a=E(e,"preview",3,void 0),o=E(e,"quiet",3,!1);const n=_(()=>"element"in e.entry.render?e.entry.render.element:""),s=_(()=>e.entry.ui??null);let t=g(null),i=g(null),m=g(null);v(()=>{if(!c(t)||!c(n))return;const l=c(t);let u=!1,h=null;return f(m,null),V(l,{tag:c(n),ui:c(s),data:y(()=>e.data),entry:y(()=>e.entry),host:Q(y(()=>e.entry),{status:z,launch:L,feedback:J,summarise:B,token:()=>M.data.sessionToken??""}),importer:e.importer}).then(d=>{h=d,u?d.remove():f(i,d,!0)},d=>{u||f(m,d.message,!0)}),()=>{u=!0,h?.remove(),f(i,null)}}),v(()=>{c(i)&&(a()!==void 0&&(c(i).preview=a()),c(i).entry=e.entry,c(i).data=e.data)});var w=Y(),p=U(w);R(p,l=>f(t,l),()=>c(t));var O=P(p,2);{var A=l=>{var u=X(),h=W(u);j(()=>x(h,`Not available. The ${e.entry.pluginId??""} plugin’s element could not be shown: ${c(m)??""}.`)),S(l,u)};C(O,l=>{c(m)&&!o()&&l(A)})}j(()=>D(p,"data-plugin-element",c(n))),S(r,w),F()}export{ce as P};
@@ -0,0 +1 @@
1
+ import"./DsnmJJEf.js";import{p as G,e as q,t as l,a as d,g as o,r as b,s as z,b as I,h,o as x,c as g}from"./CEfkcOME.js";import{d as J,s as _,a as K}from"./CPPNfCxh.js";import{i as S}from"./D4ikcNuh.js";import{e as M,d as k,s as c,h as N}from"./BMjXQSgN.js";import{p as u}from"./D42BPZCD.js";import{l as O}from"./BgPPmbbW.js";import{a as P,c as Q}from"./CjSftIOB.js";const R={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},j={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var U=g("<li></li>"),V=g("<span> </span>"),X=g('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),Y=g('<span class="text-foreground/80"> </span>'),Z=g('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function ie(F,a){G(a,!0);let H=u(a,"busy",3,!1),y=u(a,"lead",3,null),L=u(a,"leadClass",3,""),T=u(a,"size",3,"card"),n=u(a,"questions",3,null);const f=h(()=>a.pipeline.steps.map(e=>({s:e,tone:P(e,a.pipeline)}))),w=h(()=>Q(a.pipeline,O.now)),W=h(()=>`Checks: ${o(f).map(({s:e,tone:t})=>`${e.label} ${j[t]}`).join(", ")}`);var p=Z(),i=q(p);M(i,21,()=>o(f),({s:e,tone:t})=>e.key,(e,t)=>{let r=()=>o(t).s,s=()=>o(t).tone;var v=U();l(()=>{k(v,1,`h-1 rounded-full ${R[s()]??""} ${H()&&(s()==="active"||s()==="fixing")?"motion-safe:animate-pulse":""}`),c(v,"title",`${r().label??""}: ${j[s()]??""}`)}),d(e,v)}),b(i);var m=z(i,2),C=q(m);{var A=e=>{var t=V(),r=x(t);l(()=>{k(t,1,`font-medium ${L()??""}`),_(r,`${y()??""}.`)}),d(e,t)};S(C,e=>{y()&&e(A)})}var B=z(C,2);{var D=e=>{var t=X(),r=x(t,!0);l(()=>{c(t,"aria-expanded",n().expanded),c(t,"aria-controls",n().controls),c(t,"title",n().expanded?"Hide the questions":"Show the questions"),_(r,o(w))}),K("click",t,function(...s){n().toggle?.apply(this,s)}),d(e,t)},E=e=>{var t=Y(),r=x(t,!0);l(()=>_(r,o(w))),d(e,t)};S(B,e=>{n()?e(D):e(E,-1)})}b(m),b(p),l(()=>{N(i,`grid-template-columns: repeat(${o(f).length??""}, minmax(0, 1fr))`),c(i,"aria-label",o(W)),k(m,1,`tabular line-clamp-2 text-muted-foreground ${T()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),d(F,p),I()}J(["click"]);export{ie as C};
@@ -0,0 +1 @@
1
+ import{i as r,g as n,m as i,j as f}from"./CEfkcOME.js";import{p as d}from"./CjDEH2t9.js";import{w as g}from"./RYvdmj4W.js";const m="wheelhouse-live",w="wheelhouse-live-leader",y=2*6e4;class v{#e=r(null);get fleet(){return n(this.#e)}set fleet(e){i(this.#e,e)}#t=r(null);get eventsPaused(){return n(this.#t)}set eventsPaused(e){i(this.#t,e,!0)}#s=r(null);get health(){return n(this.#s)}set health(e){i(this.#s,e,!0)}#a=r(null);get messages(){return n(this.#a)}set messages(e){i(this.#a,e)}#r=r(null);get crew(){return n(this.#r)}set crew(e){i(this.#r,e,!0)}#n=r("connecting");get connection(){return n(this.#n)}set connection(e){i(this.#n,e,!0)}#i=r(f(Date.now()));get now(){return n(this.#i)}set now(e){i(this.#i,e,!0)}#l=r(0);get revision(){return n(this.#l)}set revision(e){i(this.#l,e,!0)}#h=r(!1);get leader(){return n(this.#h)}set leader(e){i(this.#h,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),l=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),l(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(m);this.channel=e,e.onmessage=h=>{const s=h.data;s.t==="hello"?this.leader&&this.replay():s.t==="connection"?this.leader||(this.connection=s.state):this.leader||this.apply(s.e)};const a=new AbortController;let l=()=>{};return navigator.locks.request(w,{signal:a.signal},()=>{const h=this.lead();return new Promise(s=>{l=()=>{h(),s()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),l(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=h=>{this.connection=h,this.post({t:"connection",state:h})},l=g("/api/events",h=>{const s=(t,o)=>h.addEventListener(t,p=>{const c=o(JSON.parse(p.data));this.remember(c),this.apply(c),this.post({t:"event",e:c}),c.type==="fleet"&&e("open")});s("server",t=>({type:"server",data:t})),s("events-status",t=>({type:"events-status",data:t})),s("fleet",t=>({type:"fleet",data:t})),s("health",t=>({type:"health",data:t})),s("messages",t=>({type:"messages",data:t})),s("crew",t=>({type:"crew",data:t})),s("alert",t=>({type:"alert",data:t,fresh:this.claim(t)})),s("settled",t=>({type:"settled",data:t})),s("alerts",t=>({type:"alerts",data:t.map(o=>{const p=this.claim(o);return{alert:o,fresh:p&&Date.now()-Date.parse(o.at)<=y}})}))},e);return()=>{l(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest["events-status"]&&this.post({t:"event",e:{type:"events-status",data:this.latest["events-status"]}}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.crew&&this.post({t:"event",e:{type:"crew",data:this.latest.crew}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"events-status":this.eventsPaused=e.data.paused;break;case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"crew":this.crew=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const l of this.restartListeners)l();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const u=new v;function C(){return u.fleet??d.data.fleet??null}function I(){return u.health??d.data.health??null}function P(){return u.messages??d.data.messages??null}function S(){return u.crew??d.data.crew??null}export{S as a,I as b,C as c,P as d,u as l};
@@ -0,0 +1,2 @@
1
+ import{s as vt}from"./B42VotjV.js";import{H as B,N as Y,r as me,n as O,i as Oe,b as T,s as $,a as Se,f as rt,g as Ie,c as oe,d as be,S as je,P as nt,p as I,e as bt,m as Et,h as kt,o as Ne,u as xe,j as At,w as St,k as Xe,l as X,q as It,t as at,v as Rt,x as Pt,y as ot}from"./BC_XNeHe.js";import{P as se,O as Lt,k as Tt}from"./CEfkcOME.js";class te{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class De{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ce extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Ot=/^\/\((?:[^)]+)\)$/;function jt(e){const t=[];return{pattern:e==="/"||Ot.test(e)?/^\/$/:new RegExp(`^${xt(e).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return t.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const s=n.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ee(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ee(String.fromCharCode(...c.slice(2).split("-").map(y=>parseInt(y,16))));const l=Ut.exec(c),[,h,d,u,p]=l;return t.push({name:u,matcher:p,optional:!!h,rest:!!d,chained:d?f===1&&s[0]==="":!1}),d?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Ee(c)}).join("")}).join("")}/?$`),params:t}}function Nt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function xt(e){return e.slice(1).split("/").filter(Nt)}function Dt(e,t,r){const n={},i=e.slice(1),a=i.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const c=t[o];let f=i[o-s];if(c.chained&&c.rest&&s&&(f=i.slice(o-s,o+1).filter(l=>l).join("/"),s=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[o+1],h=i[o+1];l&&!l.rest&&l.optional&&h&&c.chained&&(s=0),!l&&!h&&Object.keys(n).length===a.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ct({nodes:e,server_loads:t,dictionary:r,matchers:n}){const i=new Set(t);return Object.entries(r).map(([o,[c,f,l]])=>{const{pattern:h,params:d}=jt(o),u={id:o,exec:p=>{const y=h.exec(p);if(y)return Dt(y,d,n)},errors:[1,...l||[]].map(p=>e[p]),layouts:[0,...f||[]].map(s),leaf:a(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function s(o){return o===void 0?o:[i.has(o),e[o]]}}function st(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ze(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Bt=-1,Mt=-2,$t=-3,Ft=-4,qt=-5,Vt=-6,Ht=-7,it=2**32-1,Re=it-1;function Yt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function Kt(e){return!(!Number.isInteger(e)||e<0||e>it)}function Gt(e){return Uint8Array.fromBase64(e).buffer}function Xt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function zt(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}const Wt=typeof Uint8Array.fromBase64=="function",Jt=typeof process=="object"&&process.versions?.node!==void 0,Zt=Wt?Gt:Jt?Xt:zt;function Qt(e,t){return e}const er=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,We=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,tr={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{er.call(t)}catch(a){if(!We)throw a;We.call(t)}const i=globalThis[e];return r!==void 0?new i(t,r,n):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Re]=void 0,delete t[Re],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},rr=Object.freeze(tr);function nr(e,t,r){const n=Qt(rr);if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let s=null;function o(c,f=!1){if(c===Bt)return n.fromPrimitive(void 0);if(c===$t)return n.fromPrimitive(NaN);if(c===Ft)return n.fromPrimitive(1/0);if(c===qt)return n.fromPrimitive(-1/0);if(c===Vt)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in a)return a[c];if(c>=i.length)throw new Error("Invalid input");const l=i[c];if(!l||typeof l!="object")a[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const h=l[0],d=t&&Object.hasOwn(t,h)?t[h]:void 0;if(d){let u=l[1];if(typeof u!="number"&&(u=i.push(l[1])-1),Object.hasOwn(a,u))return a[c]=d(a[u]);if(s??=new Set,s.has(u))throw new Error("Invalid circular reference");return s.add(u),a[c]=d(o(u)),s.delete(u),a[c]}switch(h){case"Date":a[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();a[c]=u;for(let _=1;_<l.length;_+=1)n.addValue(u,o(l[_]));break;case"Map":const p=n.createMap();a[c]=p;for(let _=1;_<l.length;_+=2)n.addEntry(p,o(l[_]),o(l[_+1]));break;case"RegExp":a[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const _=l[1];if(typeof i[_]=="object"&&i[_][0]!=="BigInt")throw new Error("Invalid input");a[c]=n.box(o(_));break}case"BigInt":a[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const y=n.createNullPrototypeObject();a[c]=y;for(let _=1;_<l.length;_+=2){const m=l[_];if(typeof m!="string")throw new Error("Cannot parse an object with a non-string key");if(m==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(y,m,o(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=o(l[1]);a[c]=n.fromViewInfo(h,_,l[2],l[3]);break}case"ArrayBuffer":{const _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");a[c]=n.fromArrayBuffer(Zt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[c]=n.fromStringValue(h,l[1]);break}default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===Ht){const h=l[1];if(!Kt(h))throw new Error("Invalid input");const d=n.createSparseArray(h);a[c]=d;for(let u=2;u<l.length;u+=2){const p=l[u];if(!Yt(p)||p>=h)throw new Error("Invalid input");n.set(d,p,o(l[u+1]))}}else{const h=n.createArray(l.length);a[c]=h;for(let d=0;d<l.length;d+=1){const u=l[d];u!==Mt&&n.set(h,d,o(u))}}else{const h=n.createObject();a[c]=h;for(const d of Object.keys(l)){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(h,d,o(l[d]))}}return a[c]}return o(0)}function ar(e){return e.filter(t=>t!=null)}const or="x-sveltekit-invalidated",sr="x-sveltekit-trailing-slash";function F(e,t){return e+"/"+t}function ie(e){return e instanceof te||e instanceof Ce?e.status:500}function ir(e){return e instanceof Ce?e.text:"Internal Error"}const cr="/__data.json",lr=".html__data.json";function fr(e){return e.endsWith(".html")?e.replace(/\.html$/,lr):e.replace(/\/$/,"")+cr}const Je={spanContext(){return ur},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},ur={traceId:"",spanId:"",traceFlags:0};async function*dr(e,t){let r=!1,n="";const i=new TextDecoder;for(;;){let a=n.indexOf(t);for(;a!==-1;)yield n.slice(0,a),n=n.slice(a+t.length),a=n.indexOf(t);if(r){n&&(yield n);return}const s=await e.read();r=s.done,s.value&&(n+=i.decode(s.value,{stream:!0})),r&&(n+=i.decode())}}async function*hr(e){for await(const t of dr(e,`
2
+ `)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:pr}=vt,_r=Tt??(e=>e()),mr=new Set(["icon","shortcut icon","apple-touch-icon"]);let z=null;const D=st(ot)??{},Z=st(at)??{},x={url:Xe({}),page:Xe({}),navigating:St(null),updated:At()};function Be(e){D[e]=$()}function gr(e,t){let r=e+1;for(;D[r];)delete D[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(O)}async function ct(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,N,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,q={element:void 0,href:void 0}}const ae=new Map,$e=new Set,lt=new Set,V=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Ze=!0,ee=!1,W=!1,ft=!1,re=!1,ge,A,R,U;const J=new Set;let ke;const de=new Map,he=new Map;async function Nr(e,t,r){if(globalThis.__sveltekit_1socxfa.data){const{q:a={},p:s={},l:o={},f:c={}}=globalThis.__sveltekit_1socxfa.data;for(const f in a)a[f];for(const f in o)o[f];for(const f in c)c[f];for(const f in s)s[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Ct(e),N=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),A=history.state?.[B],R=history.state?.[Y],A||(A=R=Date.now(),history.replaceState({...history.state,[B]:A,[Y]:R},""));const n=D[A];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await Rr(Le,r)):(await H({type:"enter",url:me(E.hash?Tr(new URL(location.href)):location.href),replace_state:!0}),i()),Ir()}async function yr(e=!0,t=!0){if(await(ke||=Promise.resolve()),!ke)return;ke=null;const r=U={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const s of de.values())for(const{resource:o}of s.values())o.refresh();for(const[s,o]of he)for(const[c,{resource:f}]of o){const l=F(s,c),h=f.reconnect();h.catch(O),i.set(l,h)}}if(e){const s=I.state,o=n&&await Ye(n);if(!o||r!==U)return;if(o.type==="redirect")return qe(new URL(o.location,g.url).href,{replaceState:!0},1,r);t||(o.props.page.state=s),xe(o.props.page),g={...o.state,nav:g.nav},Te(),ge.$set(o.props)}else Te();const a=[];for(const s of de.values())for(const{resource:o}of s.values())a.push(o);for(const[s,o]of he)for(const c of o.keys()){const f=F(s,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(O)}function Te(){le.length=0,re=!1}function ut(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function dt(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Qe(){Be(A),ze(ot,D),ut(R),ze(at,Z)}async function qe(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[s,o]of de)for(const[c,f]of o)f.resource?.reset(),i.add(F(s,c));a=new Set;for(const[s,o]of he)for(const c of o.keys())a.add(F(s,c))}t.invalidate&&t.invalidate.forEach(Sr)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[s,o]of de)for(const[c,{resource:f}]of o)i?.has(F(s,c))&&f.start();for(const[s,o]of he)for(const[c,{resource:f}]of o)a?.has(F(s,c))&&f.reconnect()})}async function wr(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function Ae(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function ht(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},xe(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:x,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:D[A]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(a=>a(i))}dt(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:s,form:o}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const p of r)p?.slash!==void 0&&(c=p.slash);e.pathname=kt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:s},props:{constructors:ar(r).map(p=>p.node.component),page:we(I)}};o!==void 0&&(f.props.form=o);let l={},h=!I,d=0;for(let p=0;p<Math.max(r.length,g.branch.length);p+=1){const y=r[p],_=g.branch[p];y?.data!==_?.data&&(h=!0),y&&(l={...l,...y.data},h&&(f.props[`data_${d}`]=l),d+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||o!==void 0&&o!==I.form||h)&&(f.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:i,url:new URL(e),form:o??null,data:h?l:I.data}),f}async function Ve({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let s=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let l=function(...d){for(const u of d){const{href:p}=new URL(u,r);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:Je,current:Je},route:new Proxy(i,{get:(d,u)=>(o&&(c.route=!0),d[u])}),params:new Proxy(n,{get:(d,u)=>(o&&c.params.add(u),d[u])}),data:a?.data??null,url:Et(r,()=>{o&&(c.url=!0)},d=>{o&&c.search_params.add(d)},E.hash),async fetch(d,u){d instanceof Request&&(u={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d?.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...u});const{resolved:p,promise:y}=pt(d,u,r);return o&&l(p.href),y},setHeaders:O,depends:l,parent(){return o&&(c.parent=!0),t()},untrack(d){o=!1;try{return d()}finally{o=!0}}};s=await f.universal.load.call(null,h)??null}return{node:f,loader:e,server:a,universal:f.universal?.load?{type:"data",data:s,uses:c}:null,data:s??a?.data??null,slash:f.universal?.trailingSlash??a?.slash}}function pt(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?Rt(n,i.href,t):Pt(n,t);return{resolved:i,promise:a}}function et(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const s of i.search_params)if(n.has(s))return!0;for(const s of i.params)if(a[s]!==g.params[s])return!0;for(const s of i.dependencies)if(le.some(o=>o(new URL(s))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function vr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(s=>a.includes(s))&&a.every(s=>i.includes(s))&&r.delete(n)}return r}function tt({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:c}=i,f=[...o,c];s.forEach(w=>w?.().catch(O)),f.forEach(w=>w?.[1]().catch(O));let l=null;const h=g.url?e!==_e(g.url):!1,d=g.route?i.id!==g.route.id:!1,u=vr(g.url,r);let p=!1;{const w=f.map((v,k)=>{const S=g.branch[k],b=!!v?.[0]&&(S?.loader!==v[1]||et(p,d,h,u,S.server?.uses,n));return b&&(p=!0),b});if(w.some(Boolean)){try{l=await gt(r,w)}catch(v){const k=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?tt({error:k,url:r,params:n,route:i}):ye({status:ie(v),error:k,url:r,route:i})}if(l.type==="redirect")return l}}const y=l?.nodes;let _=!1;const m=f.map(async(w,v)=>{if(!w)return;const k=g.branch[v],S=y?.[v];if((!S||S.type==="skip")&&w[1]===k?.loader&&!et(_,d,h,u,k.universal?.uses,n))return k;if(_=!0,S?.type==="error")throw S;return Ve({loader:w[1],url:r,params:n,route:i,parent:async()=>{const j={};for(let C=0;C<v;C+=1)Object.assign(j,(await m[C])?.data);return j},server_data_node:He(S===void 0&&w[0]?{type:"skip"}:S??null,w[0]?k?.server:void 0)})});for(const w of m)w.catch(O);const P=[];for(let w=0;w<f.length;w+=1)if(f[w])try{P.push(await m[w])}catch(v){if(v instanceof De)return{type:"redirect",location:v.location};if(a&&J.has(a))return tt({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let k=ie(v),S;if(y?.includes(v))k=v.status??k,S=v.error;else if(v instanceof te)S=v.body;else{if(await x.updated.check())return await ct(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await br(w,P,s);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:s,status:k,error:S,route:i}):await mt(r,{id:i.id},S,k)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:s,status:200,error:null,route:i,form:t?void 0:null})}async function br(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const o=await gt(r,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;a=o.nodes[0]??null}catch(o){if(!(o instanceof te&&o.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const s=await Ve({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),o={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[s,o],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof De){await qe(new URL(s.location,location.href),{},0);return}const o=await E.get_error_template(),c=await M(s,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),l=o({status:e,message:f}),h=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(h.head),document.head),document.documentElement.replaceChild(document.adoptNode(h.body),document.body),s}}async function Er(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,s)=>pt(a,s,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!Oe(e,T,E.hash)){const r=await Er(e);if(!r)return;const n=kr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:bt(a),url:e}}}}function kr(e){return It(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function _t({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let s=!1;const o=Ge(g,r,e,t,a??null);n!==void 0&&(o.navigation.delta=n),i!==void 0&&(o.navigation.event=i);const c={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),s?null:o}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s={},redirect_count:o=0,nav_token:c={},accept:f=O,block:l=O,event:h}){const d=U;U=c;const u=await ne(t,!1),p=e==="enter"?Ge(g,u,t,e):_t({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:h});if(!p){l(),U===c&&(U=d);return}const y=A,_=R;f(),ee=!0,ue&&p.navigation.type!=="enter"&&x.navigating.set(Se.current=p.navigation);let m=u&&await Ye(u);if(!m){if(Oe(t,T,E.hash))return await K(t,a);m=await mt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,U!==c){p.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(o<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s,redirect_count:o+1,nav_token:c}),p.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await x.updated.check())return await ct(),await K(t,a);if(Te(),Be(y),ut(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),s=r?r.state:s,!r){const b=a?0:1,j={[B]:A+=b,[Y]:R+=b,[je]:s};(a?history.replaceState:history.pushState).call(history,j,"",t),a||gr(A,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,q={element:void 0,href:void 0}),m.props.page.state=s;let w;if(ue){const b=(await Promise.all(Array.from(lt,G=>G(p.navigation)))).filter(G=>typeof G=="function");if(b.length>0){let G=function(){b.forEach(ve=>{V.delete(ve)})};b.push(G),b.forEach(ve=>{V.add(ve)})}const j=p.navigation.to;g={...m.state,nav:{params:j.params,route:j.route,url:j.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?w=C.commit():(z=null,ge.$set(m.props),z&&Object.assign(m.props.page,z),xe(m.props.page),w=Lt?.()),ft=!0}else await ht(m,Le,!1);const{activeElement:v}=document;if(await w,await se(),await se(),U!==c){p.reject(new Error("navigation aborted"));return}m.props.page&&z&&Object.assign(m.props.page,z);let k=null;if(Ze){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(k=t.hash&&document.getElementById(wt(t)))?k.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Lr(t,!k),Ze=!0,ee=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=$()),V.forEach(b=>b(p.navigation)),e==="popstate"&&dt(R),x.navigating.set(Se.current=null)}async function mt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let q={element:void 0,href:void 0};function Ar(){let e,t;N.addEventListener("mousemove",s=>{const o=s.target;clearTimeout(e),e=setTimeout(()=>{i(o,X.hover)},20)});function r(s){s.defaultPrevented||i(s.composedPath()[0],X.tap)}N.addEventListener("mousedown",r),N.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(s=>{for(const o of s)o.isIntersecting&&(Ae(new URL(o.target.href)),n.unobserve(o.target))},{threshold:0});async function i(s,o){const c=rt(s,N),f=c===q.element&&c?.href===q.href&&o>=t;if(!c||f)return;const{url:l,external:h,download:d}=Ie(c,T,E.hash);if(h||d)return;const u=oe(c),p=l&&_e(g.url)===_e(l);if(!(u.reload||p))if(o<=u.preload_data){q={element:c,href:c.href},t=X.tap;const y=await ne(l,!1);if(!y)return;wr(y)}else o<=u.preload_code&&(q={element:c,href:c.href},t=o,Ae(l))}function a(){n.disconnect();for(const s of N.querySelectorAll("a")){const{url:o,external:c,download:f}=Ie(s,T,E.hash);if(c||f)continue;const l=oe(s);l.reload||(l.preload_code===X.viewport&&n.observe(s),l.preload_code===X.eager&&Ae(o))}}V.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ir(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){pr(()=>(e.add(t),()=>{e.delete(t)}))}function xr(e){Ke(V,e)}function Dr(e){Ke($e,e)}function Cr(e){Ke(lt,e)}function Br(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):qe(e,t,0)}function Sr(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function Mr(){return re=!0,yr()}function $r(e,t){const r={[B]:A,[Y]:R,[nt]:I.url.href,[je]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:_r(()=>we(I))})}function Ir(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Qe(),!ee){const n=Ge(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||Ar(),N.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=rt(t.composedPath()[0],N);if(!r)return;const{url:n,external:i,target:a,download:s}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const o=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||s)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),h=f===be(location);if(i||o.reload&&(!h||!l)){_t({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&h){const[,d]=g.url.href.split("#");if(d===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(A),e(n),!o.replace_state)return;W=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await H({type:"link",url:n,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??n.href===location.href,event:t})}),N.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const s=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(Oe(s,T,!1))return;const o=t.target,c=oe(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o,n);s.search=new URLSearchParams(f).toString(),H({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const r=t.state[B];if(U={},r===A)return;const n=D[r],i=t.state[je]??{},a=new URL(t.state[nt]??location.href),s=t.state[Y],o=g.url?be(location)===be(g.url):!1;if(s===R&&(ft||o)){i!==I.state&&(I.state=i),e(a),D[A]=$(),n&&scrollTo(n.x,n.y),A=r;return}const f=r-A;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{A=r,R=s},block:()=>{history.go(-f)},nav_token:U,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++A,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))mr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,x.page.set(we(I)),x.page.notify()}}async function Rr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:s,data:o,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let h,d=!0;try{const u=n.map(async(y,_)=>{const m=o[_];return m?.uses&&(m.uses=yt(m.uses)),Ve({loader:E.nodes[y],url:f,params:i,route:a,parent:async()=>{const P={};for(let w=0;w<_;w+=1)Object.assign(P,(await u[w]).data);return P},server_data_node:He(m)})}),p=await Promise.all(u);if(l){const y=l.layouts;for(let _=0;_<y.length;_++)y[_]||p.splice(_,0,void 0)}h=await pe({url:f,params:i,branch:p,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof De)return await K(new URL(u.location,location.href));h=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",d=!1}h&&(h.props.page&&(h.props.page.state={}),await ht(h,e,d))}async function gt(e,t){const r=new URL(e);r.pathname=fr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(sr,"1"),r.searchParams.append(or,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,s)=>{Pr(a,i).catch(s)})}async function Pr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return nr(a,{...E.decoders,Promise:s=>new Promise((o,c)=>{n.set(s,{fulfil:o,reject:c})})})}for await(const a of hr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(s=>{s?.type==="data"&&(s.uses=yt(s.uses),s.data=i(s.data))}),e(a);else if(a.type==="chunk"){const{id:s,data:o,error:c}=a,f=n.get(s);n.delete(s),c?f.reject(i(c)):f.fulfil(i(o))}}}function yt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function Lr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=wt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=$();setTimeout(()=>{const o=history.state;Ue=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(a,s),Ue=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let s=0;s<i.rangeCount;s+=1)a.push(i.getRangeAt(s));setTimeout(()=>{if(i.rangeCount===a.length){for(let s=0;s<i.rangeCount;s+=1){const o=a[s],c=i.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function Ge(e,t,r,n,i=null){let a,s;const o=new Promise((f,l)=>{a=f,s=l});return o.catch(O),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:o},fulfil:a,reject:s}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Tr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function wt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{xr as a,Dr as b,Br as g,Mr as i,Cr as o,$r as r,Nr as s};
@@ -0,0 +1 @@
1
+ import{n as F}from"./BUYzAikv.js";import"./DsnmJJEf.js";import{p as I,y as Q,f as S,g as t,a as P,b as W,h as c,e as p,r as f,s as m,o as k,t as Y,c as E}from"./CEfkcOME.js";import{s as h}from"./CPPNfCxh.js";import{i as G}from"./D4ikcNuh.js";import{s as C,d as b}from"./BMjXQSgN.js";import{p as J}from"./D42BPZCD.js";import{p as K}from"./CjDEH2t9.js";import{d as R,i as $,o as T,a as V,s as X}from"./Z_T9JZ0p.js";import{H as Z}from"./pY09PF5T.js";import{C as ee}from"./iInrZOCY.js";function me(s){return s?.replace(/[\\/]+$/,"").split(/[\\/]/).pop()?.trim()||null}function ge(s){const e=s.split(/[^\p{L}\p{N}]+/u).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[1][0]).toUpperCase():"?"}function he(s){let e=0;for(const i of s)e=e*31+i.codePointAt(0)>>>0;return e%6}const q=s=>s.status!=="queued"&&s.status!=="landed"&&s.status!=="closed",te=s=>s.status==="failed"||s.status==="blocked"||s.status==="lost"||s.pipeline?.outcome==="failed"||s.passage.steps.some(e=>e.failed);function be(s){const e=s.filter(q),i=e.filter(te).length;return{percent:e.length?Math.round((e.length-i)/e.length*100):100,failing:i,inPlay:e.length}}function ve(s,e,i=4){return s.map(r=>{const a=e.filter(o=>o.projectId===r.id),n=a.some(F),l=a.some(o=>o.busy||q(o)&&o.status==="working");return{id:r.id,name:r.name,landed:a.length?Math.round(a.filter(o=>o.status==="landed").length/a.length*100):0,word:n?"Needs you":l?"Working":"Quiet",tone:n?"needs":l?"busy":"quiet",tasks:a.length}}).filter(r=>r.tasks>0).sort((r,a)=>a.tasks-r.tasks||r.name.localeCompare(a.name)).slice(0,i)}var se=E('<a><span aria-hidden="true"><!></span> <span class="min-w-0 flex-1"><span class="flex items-baseline gap-1.5 text-sm"><span> </span> <span class="truncate text-muted-foreground"> </span></span> <span class="block truncate text-xs text-muted-foreground"> </span></span> <span> <!></span></a>');function xe(s,e){I(e,!0);let i=J(e,"compact",3,!1);const r=c(()=>K.data.inbox),a=c(()=>$.view(t(r))?.available?T($.cards(t(r)),e.filter):[]),n=c(()=>t(a).filter(d=>X(d)==="waiting").length),l=c(()=>t(a)[0]??null),o=c(()=>V(e.filter,t(a).length===1?t(a)[0].id:null));var z=Q(),A=S(z);{var B=d=>{var u=se(),g=p(u),L=p(g);{let y=c(()=>i()?"size-3.5":"size-4");Z(L,{get class(){return t(y)}})}f(g);var v=m(g,2),x=p(v),_=p(x),M=k(_,!0),N=m(_,2),O=k(N,!0);f(x);var D=m(x,2),U=k(D,!0);f(v);var w=m(v,2),H=p(w,!0),j=m(H);ee(j,{class:"size-4 transition-transform group-hover:translate-x-0.5","aria-hidden":"true"}),f(w),f(u),Y(y=>{C(u,"href",t(o)),b(u,1,`group flex w-full min-w-0 cursor-pointer items-center gap-3 rounded-lg border text-left transition-colors focus-visible:outline-2 focus-visible:outline-ring ${t(n)?"border-sea/40 bg-sea/[0.07] hover:bg-sea/[0.12]":"bg-card hover:bg-muted/60"} ${i()?"px-2.5 py-2":"px-3.5 py-2.5"}`),C(u,"data-decisions-badge",t(n)?"waiting":"open"),b(g,1,`grid shrink-0 place-items-center rounded-full ${t(n)?"bg-sea text-on-accent":"bg-muted text-foreground/70"} ${i()?"size-6":"size-7"}`),b(_,1,`shrink-0 font-semibold ${t(n)?"text-sea":""}`),h(M,y),h(O,t(n)?t(n)===t(a).length?t(a).length===1?"waiting on you":"all waiting on you":`${t(n)} waiting on you`:"Firstmate is handling"),C(D,"title",t(l).title),h(U,t(l).title),b(w,1,`flex shrink-0 items-center gap-0.5 text-sm font-medium ${t(n)?"text-sea":"text-muted-foreground"}`),h(H,t(n)?"Answer":"Open")},[()=>R(t(a).length)]),P(d,u)};G(A,d=>{t(l)&&d(B)})}P(s,z),W()}export{xe as D,me as a,q as b,be as c,ve as g,he as h,ge as i};
@@ -0,0 +1 @@
1
+ import"./DsnmJJEf.js";import{p as F,e as u,g as t,r as b,t as _,a as m,b as H,h as f,y,f as g,c as j}from"./CEfkcOME.js";import{i as k}from"./D4ikcNuh.js";import{s as w,d as x,h as M,e as I}from"./BMjXQSgN.js";import{p as S}from"./D42BPZCD.js";import{d as v,S as T}from"./Ds4LY5_S.js";var J=j("<span></span>"),K=j('<div class="w-full" role="img"><div><!></div></div>');function W(E,a){F(a,!0);let p=S(a,"height",3,"h-2.5"),B=S(a,"label",3,"");const s=f(()=>Object.values(a.seconds).reduce((e,l)=>e+l,0)),G=f(()=>a.scale?Math.max(2,Math.min(100,t(s)/a.scale*100)):100),N=f(()=>T.filter(e=>a.seconds[e.key]>0).map(e=>`${e.label} ${v(a.seconds[e.key])}`).join(", "));var d=K(),i=u(d),O=u(i);{var q=e=>{var l=y(),z=g(l);I(z,17,()=>T,n=>n.key,(n,r)=>{var h=y(),A=g(h);{var C=c=>{var o=J();_(D=>{x(o,1,`seg-${t(r).key??""} h-full border-r border-card last:border-r-0`),M(o,`width: ${a.seconds[t(r).key]/t(s)*100}%`),w(o,"title",`${t(r).label??""}: ${D??""}`)},[()=>v(a.seconds[t(r).key])]),m(c,o)};k(A,c=>{a.seconds[t(r).key]>0&&c(C)})}m(n,h)}),m(e,l)};k(O,e=>{t(s)>0&&e(q)})}b(i),b(d),_(e=>{w(d,"aria-label",`${B()??""} ${e??""}: ${t(N)??""}`),x(i,1,`flex overflow-hidden rounded-full bg-muted ${p()??""}`),M(i,`width: ${t(G)??""}%`)},[()=>v(t(s))]),m(E,d),H()}export{W as T};
@@ -0,0 +1 @@
1
+ import"./DsnmJJEf.js";import{t as m,a as d,c as u,p as I,f as J,g as e,s as $,b as K,h as v,o as A,e as F,r as x,y as ae}from"./CEfkcOME.js";import{s as M}from"./CPPNfCxh.js";import{i as _}from"./D4ikcNuh.js";import{d as b,e as j,s as y,h as q}from"./BMjXQSgN.js";import{t as re}from"./DBuj1e9B.js";import{p as N}from"./D42BPZCD.js";import{l as oe}from"./CjSftIOB.js";import{p as se}from"./Z0GxSwEl.js";import{t as ne,d as ie,a as de}from"./DrX7Uhja.js";import{S as le}from"./C1_mhCjD.js";var ue=u('<span aria-hidden="true"></span>');function pe(p,s){let n=N(s,"class",3,"");var a=ue();m(()=>b(a,1,`pointer-events-none absolute inset-0 rounded-full opacity-40 motion-safe:animate-ping ${n()??""}`)),d(p,a)}var ce=u('<p class="mb-1.5 text-xs font-medium text-muted-foreground" data-run-label=""> </p>'),G=u("<span></span>"),me=u("<span><!></span>"),fe=u('<span class="relative z-10 mt-[2px] size-2 rounded-full border border-dashed border-muted-foreground/50 bg-card"></span>'),ve=u('<li class="relative flex min-w-0 flex-col items-center"><!> <!> <span> </span></li>'),ge=u('<ol class="grid"></ol>'),he=u('<li class="min-w-0"><div></div> <p> </p></li>'),be=u('<ol class="grid gap-2"></ol>'),xe=u("<!> <!>",1);function Le(p,s){I(s,!0);let n=N(s,"size",3,"card");const a=v(()=>s.task.passage),k=v(()=>oe(s.task)),z=v(()=>de(s.task)),C=v(()=>`${e(k)?`Run ${e(k).n}, `:""}Step ${e(a).current+1} of ${e(a).steps.length}: ${e(a).steps[e(a).current]?.label??""}${e(a).steps[e(a).current]?.failed?", failed":""}${s.task.busy?", in progress":""}`),w=r=>r?"bg-danger":ie[e(z)],R=r=>r?"text-danger":ne[e(z)];var f=xe(),S=J(f);{var E=r=>{var o=ce(),c=A(o);m(()=>M(c,`Run ${e(k).n??""}`)),d(r,o)};_(S,r=>{e(k)&&r(E)})}var L=$(S,2);{var D=r=>{var o=ge();j(o,23,()=>e(a).steps,c=>c.key,(c,t,g)=>{var h=ve(),T=F(h);{var O=i=>{var l=G();m(()=>b(l,1,`absolute top-[5px] right-1/2 left-[-50%] ${e(g)<=e(a).current?"h-0.5 bg-foreground/50":"h-0 border-t border-dotted border-input"}`)),d(i,l)};_(T,i=>{e(g)>0&&i(O)})}var W=$(T,2);{var Q=i=>{var l=me(),Z=F(l);{var ee=B=>{{let te=v(()=>w(e(t).failed));pe(B,{get class(){return e(te)}})}};_(Z,B=>{s.task.busy&&B(ee)})}x(l),m(B=>b(l,1,`relative z-10 size-3 rounded-full ring-[3px] ring-card ${B??""}`),[()=>w(e(t).failed)]),re(1,l,()=>se),d(i,l)},U=i=>{var l=fe();d(i,l)},V=i=>{var l=G();m(()=>b(l,1,`relative z-10 mt-[2px] size-2 rounded-full ${e(t).state==="done"?"bg-foreground/50":"border border-border bg-card"}`)),d(i,l)};_(W,i=>{e(t).state==="current"?i(Q):e(t).state==="skipped"?i(U,1):i(V,-1)})}var Y=$(W,2),X=A(Y,!0);x(h),m(i=>{y(h,"title",e(t).note??void 0),b(Y,1,`mt-1.5 max-w-full truncate text-xs leading-none ${i??""}`),M(X,e(t).short)},[()=>e(t).state==="current"?`font-semibold ${R(e(t).failed)}`:e(t).state==="done"?"text-muted-foreground":e(t).state==="skipped"?"text-muted-foreground italic line-through":"text-muted-foreground italic"]),d(c,h)}),x(o),m(()=>{q(o,`grid-template-columns: repeat(${e(a).steps.length??""}, minmax(0, 1fr))`),y(o,"aria-label",e(C))}),d(r,o)},H=r=>{var o=be();j(o,21,()=>e(a).steps,c=>c.key,(c,t)=>{var g=he(),h=F(g),T=$(h,2),O=A(T);x(g),m(W=>{y(g,"title",e(t).note??void 0),b(h,1,`h-1.5 rounded-full transition-colors duration-500 ${W??""}`),b(T,1,`mt-2 truncate text-xs leading-tight ${e(t).state==="current"?`font-medium ${e(t).failed?"text-danger":"text-foreground"}`:e(t).state==="done"?"text-muted-foreground":"text-muted-foreground italic"} ${e(t).state==="skipped"?"line-through":""}`),M(O,`${e(t).label??""}${e(t).failed?" failed":""}`)},[()=>e(t).state==="done"?"bg-foreground/60":e(t).state==="current"?w(e(t).failed):e(t).state==="skipped"?"border border-dashed border-border":"bg-border"]),d(c,g)}),x(o),m(()=>{q(o,`grid-template-columns: repeat(${e(a).steps.length??""}, minmax(0, 1fr))`),y(o,"aria-label",e(C))}),d(r,o)};_(L,r=>{n()==="card"?r(D):r(H,-1)})}d(p,f),K()}const _e=/^fy-([a-z0-9][a-z0-9-]{0,62})$/;function P(p){return p&&_e.exec(p)?.[1]||null}function We(p){const s=P(p);return s?`via Fleetyard · ${s}`:`on ${p??"another host"}`}globalThis.process?.platform;var ke=u('<span class="font-normal opacity-70" data-second-mate-host=""> </span>'),$e=u('<span class="inline-flex max-w-full min-w-0 items-center gap-1 rounded-sm bg-brass/10 px-1.5 text-xs leading-[1.15rem] font-medium text-brass"><!><span class="truncate"> <!></span></span>');function Ae(p,s){I(s,!0);const n=v(()=>s.task.secondMate??null),a=v(()=>P(e(n)?.host)),k=v(()=>e(a)?`${e(a)}, through Fleetyard`:e(n)?.host??"another host");var z=ae(),C=J(z);{var w=R=>{var f=$e(),S=F(f);le(S,{class:"size-3 shrink-0","aria-hidden":"true"});var E=$(S),L=F(E,!0),D=$(L);{var H=r=>{var o=ke(),c=A(o,!0);m(()=>M(c,` · ${e(a)??e(n).host}`)),d(r,o)};_(D,r=>{e(n).where==="remote"&&e(n).host&&r(H)})}x(E),x(f),m(()=>{y(f,"title",e(n).where==="remote"?`Runs on second mate ${e(n).id}, on ${e(k)}`:`Runs on second mate ${e(n).id}, on this computer`),y(f,"data-second-mate-task",e(n).id),M(L,e(n).id)}),d(R,f)};_(C,R=>{e(n)&&R(w)})}d(p,z),K()}export{pe as B,Le as S,Ae as W,We as p};
@@ -0,0 +1 @@
1
+ import{i as f,g as h,m as u,j as v,h as m}from"./CEfkcOME.js";import{g as C,h as T,i as x,j as S,k as N}from"./DTpgmq3M.js";import{S as R}from"./BXN538J3.js";import{w as q}from"./RYvdmj4W.js";const z=[{kind:"pr-green",label:"PR green",hint:"A pull request passed its checks and waits on you"},{kind:"question",label:"Question waiting",hint:"Firstmate needs your decision"},{kind:"stuck",label:"Worker stuck",hint:"Blocked, failed, lost contact or gone quiet"},{kind:"landed",label:"Merge landed",hint:"A pull request was merged"},{kind:"issue",label:"New issue",hint:"A GitHub issue you watch, with the bell on"},{kind:"events-paused",label:"Events source paused",hint:"A source exceeded its event rate limit"},{kind:"health",label:"Health",hint:"Soundings found something on this computer or in Wheelhouse"}],D=20*6e4,$=220;function j(e,t){const s=[],i={taskId:e.id,projectId:e.projectId,title:e.shortTitle},n=M(e.id),r=(o,a=n)=>({kind:"open",label:o,href:a,external:!1}),c=o=>e.pr?[{kind:"open",label:o,href:e.pr.url,external:!0}]:[],d=e.pr?.number?`Pull request #${e.pr.number}`:"The pull request";if(e.status==="needs-review"&&e.attention?.kind==="review"&&e.pr){const o=`pr-green:${e.id}:${e.pr.url}`;s.push({...i,id:o,kind:"pr-green",captain:!0,text:`${d} is green and ready to merge.`,actions:[{kind:"note",label:"Merge",text:`Please merge ${e.pr.url} (${e.id}: ${e.shortTitle}). Sent from Wheelhouse's ship's bell.`,requestId:`wh-bell-merge-${g(o)}`,sent:"Asked Firstmate to merge"},...c("Open PR"),r("Open task")]})}else if(e.status==="needs-decision"&&e.attention?.owner==="captain")s.push({...i,id:`question:${e.id}:${g(e.attention.text)}`,kind:"question",captain:!0,text:I(e.attention.text),actions:[r("Open decision",e.secondMate?n:C(T(e.id))),r("Answer in chat",b(e.id))]});else if(e.status==="blocked"||e.status==="failed"||e.status==="lost")s.push({...i,id:`stuck:${e.id}:${e.status}:${g(e.summaryRaw??e.summary??e.statusLabel)}`,kind:"stuck",captain:!1,text:I(e.summary?`${e.statusLabel}: ${e.summary}`:e.statusLabel),actions:[r("Open task"),r("Ask Firstmate",b(e.id))]});else if(H(e,t)){const o=Math.round((t-Date.parse(e.activity.at))/6e4);s.push({...i,id:`stuck:${e.id}:quiet:${g(e.activity.text)}`,kind:"stuck",captain:!1,text:`Gone quiet: no word for ${o} minutes while working.`,actions:[r("Open task"),r("Ask Firstmate",b(e.id))]})}else e.status==="landed"&&s.push({...i,id:`landed:${e.id}`,kind:"landed",captain:!1,text:e.pr?`${d} was merged.`:"The work was merged.",actions:[r("Open task"),...c("View PR")]});return s}function F(e){return!e||e.state!=="ours"||e.picker||e.signIn?null:e.terminal?{detail:e.terminal.excerpt||null}:null}function Z(e){return`${e.id}@${e.at}`}function H(e,t){if(e.status!=="working"||e.busy||e.pipeline&&e.pipeline.outcome==="running")return!1;const s=e.activity?.at?Date.parse(e.activity.at):NaN;return Number.isFinite(s)&&t-s>=D}function tt(e,t){if(!e.captain||e.taskId===null||!t||!t.collectedAt)return!0;const s=t.tasks.find(i=>i.id===e.taskId);return s?j(s,Date.now()).some(i=>i.id===e.id):!1}function M(e){return`/tasks/${encodeURIComponent(e)}`}function b(e){return`/?chat=${encodeURIComponent(e)}`}function I(e){const t=e.replace(/\s+/g," ").trim();return t.length>$?`${t.slice(0,$-1).trimEnd()}…`:t}function g(e){let t=2166136261,s=1523705862;for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);t=Math.imul(t^n,16777619),s=Math.imul(s^n,1540483477)}return(t>>>0).toString(16).padStart(8,"0")+(s>>>0).toString(16).padStart(8,"0")}const _=2,k=e=>` ${e.replace(/\s+/g," ").trim()} `,E=e=>e[e.length-1]?.id??null,W=(e,t)=>t===null?-1:e.findIndex(s=>s.id===t),O=e=>e?.kind==="turn";function P(e,t){const s=new Map;return e.filter(i=>{if(i.state==="sending"||i.state==="failed")return!0;const n=W(t,i.after),r=t.slice(n+1);if(i.via==="inbox")return!r.some(O);const c=k(i.text),d=s.get(c)??0;return r.filter(a=>a.kind==="user"&&k(a.text).includes(c)).length>d?(s.set(c,d+1),!1):r.filter(a=>O(a)&&a.done).length<_})}function et(e){switch(e.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return e.error?`Not sent · ${e.error}`:"Not sent";default:return e.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const y=6e3,A=1500,U=6e3,L=8,J=6e4;class Y{#t=f(null);get session(){return h(this.#t)}set session(t){u(this.#t,t,!0)}#e=f(null);get source(){return h(this.#e)}set source(t){u(this.#e,t,!0)}#s=f([]);get records(){return h(this.#s)}set records(t){u(this.#s,t)}#i=f([]);get history(){return h(this.#i)}set history(t){u(this.#i,t)}#n=f("unknown");get older(){return h(this.#n)}set older(t){u(this.#n,t,!0)}#r=f("connecting");get connection(){return h(this.#r)}set connection(t){u(this.#r,t,!0)}#o=f(0);get resets(){return h(this.#o)}set resets(t){u(this.#o,t,!0)}#a=f(!1);get synced(){return h(this.#a)}set synced(t){u(this.#a,t,!0)}#h=f(v([]));get commands(){return h(this.#h)}set commands(t){u(this.#h,t,!0)}#u=m(()=>new Set(this.history.map(t=>t.uuid)));get historyIds(){return h(this.#u)}set historyIds(t){u(this.#u,t)}#c=m(()=>Math.max(0,this.history.findLastIndex(x)));get cut(){return h(this.#c)}set cut(t){u(this.#c,t)}#l=m(()=>S(this.history.slice(0,this.cut)));get earlier(){return h(this.#l)}set earlier(t){u(this.#l,t)}#d=m(()=>S(this.cut<this.history.length?[...this.history.slice(this.cut),...this.records]:this.records));get latest(){return h(this.#d)}set latest(t){u(this.#d,t)}#f=m(()=>N(this.earlier,this.latest));get chat(){return h(this.#f)}set chat(t){u(this.#f,t)}#m=m(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return h(this.#m)}set working(t){u(this.#m,t)}#p=m(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&!this.session.signIn&&!this.session.terminal&&this.working);get atWork(){return h(this.#p)}set atWork(t){u(this.#p,t)}#g=m(()=>this.connection==="open"&&this.session?.state==="ours"&&this.session.canSend&&(!!this.session.picker||!!this.session.signIn||!!F(this.session)));get needsYou(){return h(this.#g)}set needsYou(t){u(this.#g,t)}#y=f(v([]));get outbox(){return h(this.#y)}set outbox(t){u(this.#y,t,!0)}#b=m(()=>P(this.outbox,this.chat.items));get pending(){return h(this.#b)}set pending(t){u(this.#b,t)}close=null;left=null;archived=!1;connect(t=typeof document>"u"?null:document){if(this.close)return()=>{};const s=o=>{o.addEventListener("session",a=>{this.session=JSON.parse(a.data),this.connection="open"}),o.addEventListener("reset",a=>{const l=JSON.parse(a.data);this.records.length&&l?.file!==this.source?.file&&(this.history=[...this.history,...this.records],this.left=this.source?.file??null),l&&this.left&&(l.file!==this.left&&l.session&&(this.history=[...this.history,{type:"wh-session",uuid:`wh-session:${l.session}`,timestamp:new Date().toISOString(),first:!1}]),this.left=null),this.source=l,this.records=[],this.resets++}),o.addEventListener("records",a=>{const l=JSON.parse(a.data);this.leaveHistory(l);const p=[...this.records,...l];if(p.length>y){const w=y-A;this.history=[...this.history,...p.slice(0,p.length-w)],this.records=p.slice(-w)}else this.records=p}),o.addEventListener("replace",a=>{const l=JSON.parse(a.data);this.leaveHistory(l),this.records=l.length>y?l.slice(-y):l}),o.addEventListener("synced",()=>this.synced=!0)};let i=null;const n=()=>{this.synced=!1,i=q("/api/firstmate/chat",s,o=>this.connection=o)},r=()=>{i?.(),i=null,this.connection="connecting"};let c;const d=()=>{clearTimeout(c),t&&(t.hidden?c=setTimeout(()=>t.hidden&&r(),J):i||n())};return n(),t?.addEventListener("visibilitychange",d),t?.hidden&&d(),this.close=()=>{clearTimeout(c),t?.removeEventListener("visibilitychange",d),i?.(),i=null},this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}get all(){return[...this.history,...this.records]}leaveHistory(t){const s=this.historyIds;if(!t.some(n=>n.uuid&&s.has(n.uuid)))return;const i=new Set(t.map(n=>n.uuid));this.history=this.history.filter(n=>!i.has(n.uuid))}trim(){const t=this.history.length-U;if(t<=0)return;if(!this.archived)return void this.probeArchive();const s=this.history.findIndex((i,n)=>n>=t&&(x(i)||i.type==="wh-session"));this.history=this.history.slice(s>=0?s:t),this.older==="none"&&(this.older="more")}async loadOlder(t=null){if(this.older==="loading"||this.older==="unavailable"||this.older==="none"&&!t)return!1;const s=this.cursors(),i=s.find(r=>r.timestamp)?.timestamp,n=new URLSearchParams([["limit",String(A)],...s.map(r=>["before",r.uuid]),...i?[["at",i]]:[],...t?[["until",t]]:[]]);this.older="loading";try{const r=await fetch(`/api/firstmate/chat/history?${n}`);if(!r.ok)throw new Error(String(r.status));const c=await r.json();if(!c.available)return this.older="unavailable",this.archived=!1,!1;if(this.archived=!0,this.cursors()[0]?.uuid!==s[0]?.uuid)return this.older="unknown",!1;const d=new Set(this.all.map(a=>a.uuid)),o=c.records.filter(a=>!d.has(a.uuid));return this.history=[...o,...this.history],this.older=c.more&&o.length?"more":"none",o.length>0}catch{return this.older="failed",!1}}probing=!1;async probeArchive(){if(!(this.probing||this.older==="unavailable")){this.probing=!0;try{const t=await fetch("/api/firstmate/chat/history?limit=1");if(!t.ok)return;(await t.json()).available?(this.archived=!0,this.trim()):this.older="unavailable"}catch{}finally{this.probing=!1}}}cursors(){const t=[];for(const s of this.history)t.length<L&&s.uuid&&!s.isSidechain&&t.push(s);for(const s of this.records)t.length<L&&s.uuid&&!s.isSidechain&&t.push(s);return t}has(t){return this.historyIds.has(t)||this.records.some(s=>s.uuid===t)}async search(t){try{const s=await fetch(`/api/firstmate/chat/search?${new URLSearchParams({q:t})}`);if(!s.ok)return null;const i=await s.json();return i.available?i.hits:null}catch{return null}}async send(t,s,i,n){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:s,state:"sending",error:null,after:E(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],i,n)}retry(t,s,i){const n=this.outbox.find(r=>r.id===t);!n||n.state!=="failed"||(n.after=E(this.chat.items),this.deliver(n,s,i))}dismiss(t){this.outbox=this.outbox.filter(s=>s.id!==t)}async deliver(t,s,i){t.state="sending",t.error=null;const n=t.via==="inbox"?await K(t.text,s):await G("/api/firstmate/input",s,{text:t.text});return n.ok?t.state=i&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=n.error),n}prune(){const t=new Set(this.pending.map(s=>s.id));this.outbox=this.outbox.filter(s=>t.has(s.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const st=new Y;async function G(e,t,s){try{const i=await fetch(e,{method:"POST",headers:{"content-type":"application/json",[R]:t},body:JSON.stringify(s??{})});return i.ok?{ok:!0}:{ok:!1,error:(await i.json().catch(()=>null))?.message??`Wheelhouse answered ${i.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function K(e,t,s=null,i=`wh-${crypto.randomUUID()}`){try{const n=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":i,[R]:t},body:JSON.stringify({text:e,taskId:s})});return n.ok?{ok:!0,pending:n.status===202}:{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{z as A,G as a,tt as b,M as c,g as d,st as f,et as p,Z as r,K as s,F as t};
@@ -0,0 +1,2 @@
1
+ import"./DsnmJJEf.js";import{d as me,S as ue}from"./CUWvH_Vt.js";import{p as fe,e as c,s as a,o as n,r as f,g as D,t as u,a as v,b as _e,h as ce,f as g,n as ge,c as l}from"./CEfkcOME.js";import{s as i}from"./CPPNfCxh.js";import{i as _}from"./D4ikcNuh.js";import{s as xe,e as we}from"./BMjXQSgN.js";import{p as G}from"./D42BPZCD.js";import{T as he}from"./CiB1IASV.js";const k=m=>m.installed?m.settings.filter(e=>e.current===void 0):m.settings,Ne=m=>Object.fromEntries(k(m).map(e=>[e.key,me(e.current??e.default)])),Be=(m,e)=>k(m).find(x=>x.required&&!e[x.key]?.trim())??null,De=m=>Object.fromEntries(Object.entries(m).filter(([,e])=>e.trim()!==""));var pe=l('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),be=l('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),ye=l('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),je=l('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),ke=l('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),Ae=l('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),Ie=l('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),Se=l('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),Oe=l('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),We=l("<li> </li>"),Re=l('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),Te=l('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Ge(m,e){fe(e,!0);let x=G(e,"answers",15),A=G(e,"busy",19,()=>[]);const I=ce(()=>k(e.preview)),S=t=>t.slice(0,12);var h=Te(),p=c(h),b=c(p),O=c(b),H=a(O),J=n(H);f(b);var W=a(b,2);{var L=t=>{var r=pe(),d=n(r,!0);u(()=>i(d,e.preview.description)),v(t,r)};_(W,t=>{e.preview.description&&t(L)})}var R=a(W,2),T=a(c(R),2),M=n(T),E=a(T,2);{var Q=t=>{var r=be(),d=a(g(r),2),s=n(d);u(o=>i(s,`${e.preview.installed.version??""} · ${o??""}`),[()=>S(e.preview.installed.commit)]),v(t,r)};_(E,t=>{e.preview.installed&&t(Q)})}var y=a(E,4),F=c(y),V=a(F);{var X=t=>{var r=ye(),d=a(c(r));f(r),u(()=>xe(d,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),v(t,r)};_(V,t=>{e.preview.installed&&t(X)})}f(y);var P=a(y,2);{var Y=t=>{var r=je(),d=a(g(r),2),s=n(d,!0);u(()=>i(s,e.preview.author)),v(t,r)};_(P,t=>{e.preview.author&&t(Y)})}var U=a(P,4),Z=n(U),q=a(U,2);{var $=t=>{var r=ke(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.services.join(", ")]),v(t,r)};_(q,t=>{e.preview.services.length&&t($)})}var z=a(q,2);{var ee=t=>{var r=Ae(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.addresses.join("; ")]),v(t,r)};_(z,t=>{e.preview.addresses?.length&&t(ee)})}var C=a(z,2);{var te=t=>{var r=Ie(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.capabilities.join("; ")]),v(t,r)};_(C,t=>{e.preview.capabilities?.length&&t(te)})}var K=a(C,2);{var re=t=>{var r=Se(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.roles.join("; ")]),v(t,r)};_(K,t=>{e.preview.roles?.length&&t(re)})}var ae=a(K,4),de=n(ae,!0);f(R),f(p);var N=a(p,2);{var se=t=>{var r=Oe(),d=c(r),s=n(d,!0),o=a(d,2);ue(o,{get settings(){return D(I)},get answers(){return x()},set answers(w){x(w)}}),ge(2),f(r),u(()=>i(s,e.preview.installed?"Its new settings":"Its settings")),v(t,r)};_(N,t=>{D(I).length&&t(se)})}var j=a(N,2),B=c(j);he(B,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var ie=a(B,2),ne=n(ie);f(j);var oe=a(j,2);{var ve=t=>{var r=Re(),d=a(c(r));we(d,20,A,s=>s,(s,o)=>{var w=We(),le=n(w,!0);u(()=>i(le,o)),v(s,w)}),f(d),f(r),v(t,r)};_(oe,t=>{A().length&&t(ve)})}f(h),u((t,r)=>{i(O,`${e.preview.name??""} `),i(J,`${e.preview.id??""} ${e.preview.version??""}`),i(M,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),i(F,`${t??""} `),i(Z,`${r??""}${e.preview.ui?"; a UI bundle":""}`),i(de,e.preview.on),i(ne,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
2
+ sandbox it. ${e.preview.installed?"Update":"Install"} only plugins you trust.`)},[()=>S(e.preview.commit),()=>e.preview.slots.join(", ")||"nothing to the pages"]),v(m,h),_e()}export{Ge as P,De as f,Ne as i,Be as m};
@@ -0,0 +1,2 @@
1
+ import{l as ee}from"./BgPPmbbW.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{e as h,s as f,r as b,n as te,t as k,a as l,c as u,p as se,y as L,f as W,g as i,o as D,b as oe}from"./CEfkcOME.js";import{s as z}from"./CPPNfCxh.js";import{i as g}from"./D4ikcNuh.js";import{d as A,e as H,k as J,i as re,b as ie,r as ne,s as le}from"./BMjXQSgN.js";import{L as Y}from"./BMEfZRmb.js";import{C as B}from"./BftdAJED.js";import{b as pe}from"./B6yYMcjx.js";import{p as G}from"./D42BPZCD.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ne=()=>d("/api/plugins/updates",null),Oe=e=>d("/api/plugins/updates",e),Te=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),Ae=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Fe=(e,a)=>d("/api/plugins/inspect",a,e),Le=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),De=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function He(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const Je=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Ye=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Be=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
2
+ change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function Ge(e,a){var s=de(),p=h(s),v=h(p),w=h(v);{var I=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},R=o=>{B(o,{class:"size-4 text-success"})};g(w,o=>{a.phase==="saving"?o(I):o(R,-1)})}var r=f(w,1,!0);b(v);var _=f(v,2),S=h(_);{var q=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},E=o=>{B(o,{class:"size-4 text-success"})},N=o=>{var P=ce();l(o,P)};g(S,o=>{a.phase==="restarting"||a.phase==="slow"?o(q):a.phase==="done"?o(E,1):o(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var U=o=>{var P=ue();l(o,P)};g(O,o=>{a.phase==="slow"&&o(U)})}b(s),k(()=>{z(r,a.label),A(_,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,s)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Ke=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var me=u('<span class="text-danger" aria-hidden="true">&nbsp;*</span>'),fe=u('<span class="text-muted-foreground">&nbsp;(optional)</span>'),ge=u("<option>Not set</option>"),_e=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Me(e,a){se(a,!0);let s=G(a,"answers",15),p=G(a,"disabled",3,!1);const v="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,R=>R.key,(R,r)=>{var _=ke(),S=h(_),q=h(S,!0),E=f(q);{var N=n=>{var t=me();l(n,t)},O=n=>{var t=fe();l(n,t)};g(E,n=>{i(r).required?n(N):n(O,-1)})}b(S);var U=f(S,2);{var o=n=>{var t=be();A(t,1,J(v));var x=h(t);{var Q=c=>{var m=ge();m.value=m.__value="",l(c,m)};g(x,c=>{i(r).required||c(Q)})}var V=f(x);{var X=c=>{var m=L(),C=W(m);H(C,17,()=>i(r).options,y=>y.value,(y,F)=>{var j=_e(),$=D(j,!0),T={};k(()=>{z($,i(F).label),T!==(T=i(F).value)&&(j.value=(j.__value=T)??"")}),l(y,j)}),l(c,m)},Z=c=>{var m=he(),C=W(m);C.value=C.__value="yes";var y=f(C,2);y.value=y.__value="no",l(c,m)};g(V,c=>{i(r).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=i(r).required,t.disabled=p()}),ie(t,()=>s()[i(r).key],c=>s(s()[i(r).key]=c,!0)),l(n,t)},P=n=>{var t=xe();ne(t),A(t,1,J(v)),k(()=>{le(t,"inputmode",i(r).type==="number"?"decimal":void 0),t.required=i(r).required,t.disabled=p()}),pe(t,()=>s()[i(r).key],x=>s(s()[i(r).key]=x,!0)),l(n,t)};g(U,n=>{i(r).type==="boolean"||i(r).options?n(o):n(P,-1)})}var K=f(U,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${i(r).description??""??""}${i(r).type==="list"?`${i(r).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};g(K,n=>{(i(r).description||i(r).type==="list")&&n(M)})}b(_),k(()=>z(q,i(r).title)),l(R,_)}),l(e,w),oe()}export{Ge as C,Me as S,Ke as a,He as b,Je as c,ve as d,Fe as e,Oe as f,Ye as g,We as h,Le as i,Be as l,Te as m,Ne as p,Ae as r,De as u};
@@ -0,0 +1 @@
1
+ import{p as r}from"./BC_XNeHe.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
@@ -0,0 +1,2 @@
1
+ @d��_�x2�I/ZLf�, A �mi �v \f�-?Q�Iv�Q��-�F�����%�p��@+��q���:�|������G��r�f�1%3�Er� 8[�F�
2
+ Y�+�\��1LF�=�_m`�<��������
@@ -0,0 +1,6 @@
1
+ import{p as nn}from"./WRwU91GU.js";import"./DsnmJJEf.js";import{a as rn,o as zt}from"./B42VotjV.js";import{i as M,j as lt,g as n,m as w,p as Ne,u as Re,e as c,s as f,r as l,t as D,a as p,b as Oe,h as _,aB as an,o as G,y as Be,f as Se,c as b,n as ve,aA as jt,z as sn,P as St,aD as on}from"./CEfkcOME.js";import{i as z}from"./D4ikcNuh.js";import{s as Ue,r as He,p as q}from"./D42BPZCD.js";import{a as ln,M as dn,C as vt,b as cn,c as un,l as fn,d as hn}from"./Fr_QipqL.js";import{p as dt}from"./CjDEH2t9.js";import{d as ut,s as W,a as N,e as qt}from"./CPPNfCxh.js";import{I as Je,t as vn}from"./DBuj1e9B.js";import{d as Ee,s as R,k as pn,h as pt,j as mn,e as it,f as gn,r as bn,c as xn}from"./BMjXQSgN.js";import{b as Xe}from"./DKCbih8n.js";import{z as wn}from"./Z0GxSwEl.js";import{a as Ft,f as _n}from"./D8swcNrI.js";import{c as kn}from"./BgPPmbbW.js";import{p as ot}from"./BLcrDXJf.js";import{k as yn}from"./D5xbT1cY.js";import{b as Tt,M as Et}from"./B_GuTGoj.js";import{R as Wt}from"./RKJLUbAQ.js";import{E as Bt}from"./BexGUSY7.js";import{h as zn,m as Cn}from"./CJsvF1Ay.js";import{b as Ut}from"./B6yYMcjx.js";import{s as Sn}from"./CPV8trsz.js";import{S as Tn}from"./BXN538J3.js";import{c as Kt}from"./CrOCeWF7.js";import{X as Ye}from"./C6E-ekUK.js";import{M as bt}from"./DgIRKToT.js";import{A as En}from"./BicHgQHF.js";import{C as An}from"./CuD4TGYr.js";import{C as Mn}from"./BftdAJED.js";import{P as At}from"./B0iegdDx.js";import{s as Ln,a as Mt}from"./BNnzQGRQ.js";import{P as Pn}from"./B_GB-3Er.js";var Dn=new Set(["$$slots","$$events","$$legacy"]);function Lt(t,e){let r=He(e,Dn);const a={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var In=new Set(["$$slots","$$events","$$legacy"]);function Pt(t,e){let r=He(e,In);const a={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var $n=new Set(["$$slots","$$events","$$legacy"]);function Rn(t,e){let r=He(e,$n);const a={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var Nn=new Set(["$$slots","$$events","$$legacy"]);function On(t,e){let r=He(e,Nn);const a={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var Hn=new Set(["$$slots","$$events","$$legacy"]);function jn(t,e){let r=He(e,Hn);const a={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}var qn=new Set(["$$slots","$$events","$$legacy"]);function Fn(t,e){let r=He(e,qn);const a={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};Je(t,Ue(()=>r,{get icon(){return a}}))}const Wn={intent:"Reading the brief",rebase:"Catching up with the main branch",review:"Reviewing the change",test:"Running the tests",document:"Checking the docs",lint:"Checking code style",push:"Pushing the branch",pr:"Opening the pull request",ci:"Waiting for CI"},Bn={rebase:"resolving conflicts with the main branch",review:"fixing review findings",test:"fixing test failures",document:"fixing the docs",lint:"fixing code style",ci:"fixing CI failures"},mt={intent:"Brief read",rebase:"Up to date with the main branch",review:"No issues found",test:"Tests passed",document:"Docs up to date",lint:"Code style clean",push:"Branch pushed",pr:"Pull request opened",ci:"CI passed"},Un={rebase:"Could not catch up with the main branch",test:"Tests failed",push:"Could not push the branch",pr:"Could not open the pull request",ci:"CI failed"},xt=t=>t&&t[0].toUpperCase()+t.slice(1),Ce=(t,e,r)=>`${t} ${t===1?e:r}`,wt=t=>Wn[t.key]??`Running ${t.label.toLowerCase()}`,Gt=t=>Bn[t]??"applying fixes",_t=t=>Un[t.key]??`${t.label} failed`;function Dt(t){const e=Math.max(0,Math.round(t/1e3));if(e<60)return`${e}s`;const r=Math.floor(e/60);if(r<60)return e%60?`${r}m ${e%60}s`:`${r}m`;const a=Math.floor(r/60);return r%60?`${a}h ${r%60}m`:`${a}h`}function st(t,e,r){if(r===null)return null;const a=e?Date.parse(e):NaN;return Number.isNaN(a)?t?.durationMs!=null?Dt(t.durationMs):null:Dt(r-a)}const Ge=(...t)=>t.filter(Boolean).join(" · ");function Yt(t,e){const r=t.gate?.questions??0;if(r>0)return Ce(r,"question","questions")+" for Firstmate";const a=t.gate?.findings||e.findings;return a>0?`${Ce(a,"finding","findings")} waiting on Firstmate`:"waiting on Firstmate"}function Xt(t,e){return`${Gt(e.key)}${t.round?`, round ${t.round}`:""}`}const Kn=t=>t.steps.find(e=>e.key===t.step)??null;function ds(t,e){const r=t.ci==="green";if(t.outcome==="passed")return r?"All checks passed · CI green":"All checks passed";if(t.outcome==="cancelled")return"Checks stopped before finishing";const a=Kn(t);if(t.outcome==="failed")return a?.state==="failed"?_t(a):"Checks failed";if(!a)return`${t.label} step`;switch(a.state){case"waiting":return Ge(wt(a),st(a,null,e),Yt(t,a));case"fixing":return xt(Ge(t.answered&&"Answer received",Xt(t,a),st(a,t.roundStartedAt??t.startedAt,e)));case"failed":return _t(a);case"running":if(a.key==="ci"){if(r)return"All checks passed · CI green";if(t.ci==="red")return Ge("CI found problems",st(a,t.startedAt,e))}return Ge(wt(a),st(a,t.startedAt,e));case"upcoming":return"Waiting for the checks to start";default:return r?"All checks passed · CI green":"Checks finished"}}function Gn(t,e){const r=t.findings,a=t.fixes??0;switch(t.state){case"upcoming":return"";case"skipped":return"Skipped";case"waiting":return xt(Yt(e,t));case"fixing":return xt(Ge(r>0&&`Found ${Ce(r,"issue","issues")}`,t.key===e.step?Xt(e,t):Gt(t.key)));case"failed":return Ge(_t(t),r>0&&Ce(r,"finding","findings"));case"running":return t.key==="ci"?e.ci==="green"?"CI passed; watching until it merges":e.ci==="red"?"CI found problems":"Waiting for CI checks":`${wt(t)}…`;default:return t.key==="ci"&&e.ci==="red"?"CI found problems":t.fixes===null&&t.key==="review"?r>0?`Found ${Ce(r,"issue","issues")}`:"No issues left":r>0&&a>0?`Found ${Ce(r,"issue","issues")} · fixed in ${Ce(a,"round","rounds")}`:r>0?t.key==="review"?`Found ${Ce(r,"issue","issues")}; no changes needed`:`${mt[t.key]??"Done"} · ${Ce(r,"note","notes")}`:a>0?`${t.key==="review"?"No issues left":mt[t.key]??"Done"} after ${Ce(a,"round of fixes","rounds of fixes")}`:mt[t.key]??"Done"}}function cs(t){if(!t.length)return null;const e=t.length,r=i=>t.filter(d=>d.state===i).length,a=r("fail"),s=r("running")+r("pending");if(a)return`${a} of ${e} ${e===1?"check":"checks"} failed`;if(s)return`${s} of ${e} ${e===1?"check":"checks"} still running`;const o=r("pass");return o?`${o} of ${e} ${e===1?"check":"checks"} passed`:`${e} ${e===1?"check":"checks"} reported`}const us=t=>!!t.pipeline?.steps.length&&t.status!=="landed";function Yn(t,e){if(t.key==="ci"&&t.state!=="upcoming"&&t.state!=="skipped"){if(e.ci==="green")return"done";if(e.ci==="red"&&t.state!=="fixing")return"failed"}switch(t.state){case"done":return"done";case"running":return"active";case"waiting":return"waiting";case"fixing":return"fixing";case"failed":return"failed";case"skipped":return"skipped";default:return"todo"}}const Xn={done:"done",running:"active",waiting:"waiting",fixing:"fixing",failed:"failed",skipped:"skipped",upcoming:"todo"};function fs(t,e){const r=new Map((e?.steps??[]).map(a=>[a.key,a]));return t?.steps.length?t.steps.map(a=>({key:a.key,label:a.label,tone:Yn(a,t),summary:Gn(a,t),durationMs:a.durationMs,current:a.key===t.step&&t.outcome==="running",report:r.get(a.key)??null})):(e?.steps??[]).map(a=>({key:a.key,label:a.label,tone:Xn[a.state],summary:a.summary,durationMs:a.durationMs,current:!1,report:a}))}function hs(t){switch(t.outcome){case"passed":return"All checks passed";case"failed":return"Checks failed";case"cancelled":return"Checks stopped before finishing";case"running":return"Checks under way";default:return"Checks"}}const Jn=15e3,Jt=t=>`url:${t}`,Vn=t=>t.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(t.slice(4))}`:`/api/tasks/${encodeURIComponent(t)}/preview`,Qn=5e3;class Zn{#e=M(lt({}));get checks(){return n(this.#e)}set checks(e){w(this.#e,e,!0)}#n=M(lt({}));get failed(){return n(this.#n)}set failed(e){w(this.#n,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const r=this.watching.get(e);r?r.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let a=!1;return()=>{if(a)return;a=!0;const s=this.watching.get(e);!s||--s.count>0||(s.timer&&clearTimeout(s.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const r=this.running.get(e);if(r)return r;const a=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,a),a}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const r=await fetch(Vn(e));if(!r.ok)throw new Error(String(r.status));this.checks[e]=await r.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const r=this.watching.get(e);if(!r)return;r.timer&&clearTimeout(r.timer);const a=this.checks[e]?.state==="live"?Jn:Qn;r.timer=setTimeout(()=>{r.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},a)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const r of this.watching.keys())this.refresh(r)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const et=new Zn;class er{#e=M(0);get open(){return n(this.#e)}set open(e){w(this.#e,e,!0)}}const kt=new er,Vt="data-fullscreen-layer";function It(t){Qt(t.target)&&t.stopPropagation()}function tr(t){return t.setAttribute(Vt,""),t.style.pointerEvents="auto",document.body.appendChild(t),kt.open++===0&&window.addEventListener("focusin",It,!0),{destroy(){--kt.open===0&&window.removeEventListener("focusin",It,!0),t.remove()}}}function Qt(t){return t instanceof Element&&!!t.closest(`[${Vt}]`)}function vs(t){(kt.open>0||Qt(t.target))&&t.preventDefault()}const ps={review:"GitHub review",thread:"GitHub review comment",comment:"GitHub comment",preview:"Preview feedback",plugin:"Plugin feedback","pr-review":"Wheelhouse PR review",decision:"Decisions inbox"},ms={open:"To do",resolved:"Resolved on GitHub",addressed:"Worker reported it ready since"},gs=t=>t.where?`${t.where.path}${t.where.line!=null?`, line ${t.where.line}`:""}`:null;function nr(t){return{open:t.filter(e=>e.state==="open"),done:t.filter(e=>e.state!=="open")}}function bs(t){if(!t?.length)return null;const{open:e,done:r}=nr(t);return[e.length?`${e.length} ${nn(e.length,"change","changes")} to make`:null,r.length?`${r.length} done`:null].filter(Boolean).join(" · ")}const xs=t=>t.runs&&t.runs.current>1?t.runs.runs.at(-1)??null:null;function ws(t){if(!t.runs||t.runs.current<2)return null;const e=t.passage.steps[t.passage.current];return e?`Run ${t.runs.current} · ${e.label}`:`Run ${t.runs.current}`}const $t=500,tt=t=>t.replace(/\s+/g," ").trim(),rr=(t,e)=>t.length>e?t.slice(0,e-1).trimEnd()+"…":t;function gt(t){const e=t.y<.3333333333333333?"top":t.y<.6666666666666666?"middle":"bottom",r=t.x<1/3?"left":t.x<2/3?"":"right";return e==="middle"&&!r?"the middle":`the ${e}${r?` ${r}`:""}`}const ar={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function sr(t,e,r){const a=t?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??t;if(a&&a.tagName!=="HTML"&&a.tagName!=="BODY"){const s=a.tagName.toLowerCase(),o=a.getAttribute("role")==="button"?"button":ar[s]??"part of the page",i=rr(tt(a.value||a.getAttribute("aria-label")||a.getAttribute("alt")||a.textContent||""),60);return{kind:"element",label:i?`the “${i}” ${o}`:`a ${o} near ${gt(e)}`,detail:`<${s}>${i?` “${i}”`:""}, near ${gt(e)} of the page`}}return{kind:"spot",label:`a spot near ${gt(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${r.w}×${r.h})`}}const ir=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,or=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,lr="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",dr=t=>t.flatMap((e,r)=>[`${r+1}. ${tt(e.text)}`,...e.points&&tt(e.points)?[` Points at: ${tt(e.points)}`]:[]]);function cr(t,e,r){return[`Preview feedback for ${t.id} (${tt(t.title)}), sent together from the Preview tab (${e}):`,...dr(r.map(a=>({text:a.text,points:a.points?.label??null}))),"",lr].join(`
2
+ `)}function _s(t){const e=t.replace(/\r\n?/g,`
3
+ `).split(`
4
+ `),r=ir.exec(e[0]??""),a=r?null:or.exec(e[0]??""),s=r??a;if(!s)return null;const o=[];for(const i of e.slice(1)){const d=/^\d+\. (.+)$/.exec(i);if(d){o.push({text:d[1],points:null});continue}const u=/^ {3}Points at: (.+)$/.exec(i);u&&o.length&&(o[o.length-1].points=u[1])}return o.length?{taskId:s[1],title:s[2],url:r?r[3]:null,plugin:a?{id:a[4],name:a[3],subject:a[5]??null}:null,items:o}:null}var ur=b('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground max-md:grid max-md:size-11 max-md:place-items-center"><!></button>'),fr=b('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline max-md:min-h-11">Open in new tab<!></a>'),hr=b('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent max-md:min-h-11" data-preview-fullscreen=""><!>Full screen</button>'),vr=b('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),pr=b('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),mr=b('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),gr=b("<!> <!>",1),br=b('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),xr=b('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),wr=b('<iframe referrerpolicy="no-referrer"></iframe> <!>',1),_r=b('<span class="block text-xs"> </span>'),kr=b('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!></p></div>'),yr=b('<p class="text-sm"> </p>'),zr=b('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),Cr=b('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),Sr=b("<div><!> <div><!></div></div>");function Tr(t,e){Ne(e,!0);let r=q(e,"taskId",3,null),a=q(e,"url",3,null),s=q(e,"compact",3,!1),o=q(e,"fill",3,!1),i=q(e,"desktop",3,!1),d=q(e,"toolbar",3,!0),u=q(e,"pointing",3,!1),g=q(e,"pin",3,null),S=M(null);function Y(E){const v=E.currentTarget.getBoundingClientRect(),y=E.clientX-v.left,$=E.clientY-v.top;let H=null;const X=n(xe)?n(oe):1;try{H=n(S)?.contentDocument?.elementFromPoint(y/X,$/X)??null}catch{H=null}const j={x:v.width?y/v.width:0,y:v.height?$/v.height:0};e.onpoint?.(sr(H,j,{w:Math.round(v.width),h:Math.round(v.height)}),j)}const ne={w:1280,h:800};let pe=M(0),ee=M(0),O=M(0);const se=_(()=>r()??Jt(a()??""));Re(()=>et.watch(n(se)));const I=_(()=>et.checks[n(se)]??null),be=_(()=>!!et.failed[n(se)]),B=_(()=>n(I)?.state==="live"),ie=_(()=>n(I)?.url??null),re=_(()=>n(ie)&&n(I)?Ft.view(n(ie)):null),Ae=_(()=>n(re)?_n(n(re),location.origin):""),oe=_(()=>n(ee)?n(ee)/ne.w:0),xe=_(()=>o()&&i()&&n(oe)>0&&n(oe)<1);function Me(){an(pe),et.refresh(n(se))}var te={reload:Me},we=Sr(),me=c(we);{var Le=E=>{var v=vr(),y=c(v),$=G(y,!0),H=f(y,2);{var X=T=>{var P=ur(),V=c(P);Wt(V,{class:"size-3.5"}),l(P),D(()=>{R(P,"aria-label",n(B)?"Reload the preview":"Check the preview again"),R(P,"title",n(B)?"Reload":"Check again")}),N("click",P,Me),p(T,P)};z(H,T=>{(n(B)||n(I)?.state==="blocked"||n(I)?.state==="down")&&T(X)})}var j=f(H,2);{var fe=T=>{var P=fr(),V=f(c(P));Bt(V,{class:"size-3.5","aria-hidden":"true"}),l(P),D(()=>R(P,"href",n(re))),p(T,P)};z(j,T=>{(n(B)||n(I)?.state==="blocked")&&T(fe)})}var U=f(j,2);{var J=T=>{var P=hr(),V=c(P);Et(V,{class:"size-3.5","aria-hidden":"true"}),ve(),l(P),N("click",P,function(...Q){e.onfullscreen?.apply(this,Q)}),p(T,P)};z(U,T=>{e.onfullscreen&&n(B)&&T(J)})}l(v),D(()=>{R(y,"title",n(ie)??void 0),W($,n(ie)??"Live preview")}),p(E,v)};z(me,E=>{d()&&E(Le)})}var de=f(me,2),ke=c(de);{var Pe=E=>{var v=Be(),y=Se(v);yn(y,()=>`${n(re)} ${n(pe)}`,$=>{var H=Be(),X=Se(H);{var j=U=>{var J=gr(),T=Se(J);{var P=A=>{var C=pr();D(()=>{R(C,"src",n(re)),R(C,"title",`Live preview of ${n(ie)??""}`),R(C,"sandbox",n(Ae)),C.inert=!!e.onopen,Ee(C,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),pt(C,`width:${ne.w}px;height:${ne.h}px;transform:scale(${n(oe)??""})`)}),p(A,C)};z(T,A=>{n(oe)&&A(P)})}var V=f(T,2);{var Q=A=>{var C=mr(),ae=c(C),Z=c(ae);Et(Z,{class:"size-3.5","aria-hidden":"true"}),ve(),l(ae),l(C),N("click",C,function(...x){e.onopen?.apply(this,x)}),p(A,C)};z(V,A=>{e.onopen&&A(Q)})}p(U,J)},fe=U=>{var J=wr(),T=Se(J);Xe(T,A=>w(S,A),()=>n(S));var P=f(T,2);{var V=A=>{var C=br(),ae=c(C),Z=c(ae);ln(Z,{class:"size-4","aria-hidden":"true"}),ve(),l(ae),l(C),N("click",C,Y),p(A,C)},Q=A=>{var C=xr();D(()=>pt(C,`left:${g().x*100}%;top:${g().y*100}%`)),p(A,C)};z(P,A=>{u()?A(V):g()&&A(Q,1)})}D(()=>{R(T,"src",n(re)),R(T,"title",`Live preview of ${n(ie)??""}`),R(T,"sandbox",n(Ae)),Ee(T,1,pn(n(xe)?"absolute top-0 left-0 origin-top-left border-0 bg-white":"size-full border-0 bg-white")),pt(T,n(xe)?`width:${ne.w}px;height:${n(O)/n(oe)}px;transform:scale(${n(oe)})`:void 0)}),p(U,J)};z(X,U=>{s()?U(j):U(fe,-1)})}p($,H)}),p(E,v)},ye=E=>{const v=_(()=>!n(I)&&!n(be)),y=_(()=>n(v)?"Checking the preview…":n(be)?"Could not check the preview":n(I)?.state==="down"?"Preview stopped":n(I)?.state==="blocked"?"Preview cannot be embedded":n(I)?.state==="refused"?"Preview not shown here":"No live preview reported"),$=_(()=>n(v)?"":n(be)?"Wheelhouse did not answer; it will try again.":n(I)?.state==="blocked"?`${n(I).reason} Open it in a new tab instead.`:n(I)?.reason??"");var H=Be(),X=Se(H);{var j=U=>{var J=kr(),T=c(J);{var P=Z=>{Lt(Z,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};z(T,Z=>{n(v)||Z(P)})}var V=f(T,2),Q=c(V),A=G(Q,!0),C=f(Q,2);{var ae=Z=>{var x=_r(),k=G(x,!0);D(()=>W(k,n($))),p(Z,x)};z(C,Z=>{n($)&&Z(ae)})}l(V),l(J),D(()=>{Ee(Q,1,`font-medium ${n(v)?"":"text-foreground"}`),W(A,n(y))}),p(U,J)},fe=U=>{var J=Cr(),T=c(J),P=c(T);{var V=A=>{var C=yr(),ae=G(C,!0);D(()=>W(ae,n(y))),p(A,C)},Q=A=>{var C=zr(),ae=Se(C);Lt(ae,{class:"mx-auto size-6","aria-hidden":"true"});var Z=f(ae,2),x=G(Z,!0),k=f(Z,2),ce=G(k,!0);D(()=>{W(x,n(y)),W(ce,n($))}),p(A,C)};z(P,A=>{n(v)?A(V):A(Q,-1)})}l(T),l(J),p(U,J)};z(X,U=>{s()?U(j):U(fe,-1)})}p(E,H)};z(ke,E=>{n(B)&&n(re)?E(Pe):E(ye,-1)})}return l(de),l(we),D(()=>{Ee(we,1,`min-w-0 ${o()?"flex h-full flex-col":""}`),R(we,"data-live-preview",n(I)?.state??"checking"),Ee(de,1,`group relative w-full overflow-hidden bg-muted/40 ${d()?"mt-1.5 rounded-lg border":""} ${s()?n(B)?"aspect-[16/10]":"":o()?"min-h-0 flex-1":n(B)?"h-[70vh] min-h-80":"h-40"}`)}),Tt(de,"clientWidth",E=>w(ee,E)),Tt(de,"clientHeight",E=>w(O,E)),p(t,we),Oe(te)}ut(["click"]);const Ct=()=>dt.data.reviewSurface??null,Rt="wheelhouse-preview-helper",Zt=()=>({said:[],list:[],asking:!1,error:null,sent:null}),Er=Object.freeze(Zt()),Ze=()=>crypto.randomUUID();class Ar{#e=M(lt({}));get byTask(){return n(this.#e)}set byTask(e){w(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(Rt)??"{}");if(e&&typeof e=="object"){for(const r of Object.values(e))r.asking=!1;this.byTask=e}}catch{this.byTask={}}}}save(){try{localStorage.setItem(Rt,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??Er}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Zt()),this.byTask[e]}async ask(e,r,a,s){const o=this.of(e),i=r.trim();if(!i&&!a||o.asking)return;o.said.push({id:Ze(),who:"captain",text:i||"What about this?",points:a}),o.asking=!0,o.error=null,this.save();const d=o.said.filter(u=>!u.notice).map(u=>({who:u.who,text:u.text,points:u.points??null}));try{const u=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[Tn]:s},body:JSON.stringify({turns:d,list:o.list.map(S=>S.text)})}),g=await u.json().catch(()=>null);!u.ok||!g?.reply?o.error=g?.message??`The helper could not answer (${u.status}).`:o.said.push({id:Ze(),who:"helper",text:g.reply,suggest:g.suggest.map(S=>({text:S,added:!1}))})}catch{o.error="Wheelhouse could not be reached. Try again."}finally{o.asking=!1,this.save()}}accept(e,r,a){const s=this.of(e),o=s.said.findIndex(u=>u.id===r),i=s.said[o]?.suggest?.[a];if(!i||i.added)return;i.added=!0;const d=s.said.slice(0,o).reverse().find(u=>u.who==="captain");s.list.push({id:Ze(),text:i.text,points:d?.points??null}),s.sent=null,this.save()}addOwn(e,r,a=null){const s=r.trim().slice(0,$t);if(!s)return;const o=this.of(e);o.list.push({id:Ze(),text:s,points:a}),o.sent=null,this.save()}edit(e,r,a){const s=this.of(e).list.find(o=>o.id===r);s&&(s.text=a.slice(0,$t),this.save())}remove(e,r){const a=this.of(e),s=a.list.find(o=>o.id===r);a.list=a.list.filter(o=>o.id!==r);for(const o of a.said)for(const i of o.suggest??[])s&&i.text===s.text&&(i.added=!1);this.save()}async send(e,r,a){const s=this.of(e.id),o=s.list.filter(g=>g.text.trim());if(!o.length)return!1;s.error=null;const i=await Sn(cr(e,r,o),a,e.id);if(!i.ok)return s.error=i.error,this.save(),!1;s.sent={at:new Date().toISOString(),count:o.length};const d=e.id.lastIndexOf("@"),u=d>0?`second mate ${e.id.slice(d+1)}`:"Firstmate";return s.list=[],s.said.push({id:Ze(),who:"helper",notice:!0,text:`Sent to ${u}: ${o.length} ${o.length===1?"note":"notes"}, which it passes to this task. Keep going if you spot more; they make a new list.`}),this.save(),!0}clear(e){const r=this.of(e);r.said=[],r.error=null,this.save()}}const $e=new Ar;var Mr=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),Lr=b("<textarea></textarea>");function Pr(t,e){Ne(e,!0);let r=q(e,"ref",15,null),a=q(e,"value",15),s=q(e,"data-slot",3,"textarea"),o=He(e,Mr);var i=Lr();jt(i),mn(i,d=>({"data-slot":s(),class:d,...o}),[()=>Kt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e.class)]),Xe(i,d=>r(d),()=>r()),Ut(i,a),p(t,i),Oe()}const Dr={unsupported:"This browser cannot turn speech into text. Chrome and Edge can; you can still type.",blocked:"The microphone is blocked for Wheelhouse. Allow it from the icon in the address bar, then try again.","no-microphone":"No microphone was found. Connect one, then try again.","no-speech":"Nothing was heard. Try again a little closer to the microphone.",network:"The browser’s speech service could not be reached. Check the connection and try again.",failed:"Dictation stopped unexpectedly. Try again, or type instead."};function Nt(){if(typeof window>"u")return null;const t=window;return t.SpeechRecognition??t.webkitSpeechRecognition??null}const Ir={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},ct=t=>t.trim().split(/\s+/).filter(Boolean),$r=(t,e)=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")===e.toLowerCase().replace(/[^\p{L}\p{N}]/gu,""),en=(t,e)=>e.length<=t.length&&e.every((r,a)=>$r(r,t[a]));function Ot(t,e){const r=ct(t);return!r.length||en(ct(e),r)?e:/\s$/.test(t)||/^\s/.test(e)?t+e:`${t} ${e}`}function Rr(t,e){const r=ct(t),a=ct(e);return!r.length||!en(a,r)?e:a.slice(r.length).join(" ")}const Nr={privacyNote:"Dictation uses your browser’s speech service. In Chrome that sends what you say to Google to turn it into text, only while the microphone is on.",supported:()=>Nt()!==null,start(t,e){const r=Nt();if(!r)return e.problem("unsupported"),e.end(),{stop(){},abort(){}};const a=new r;a.lang=t,a.continuous=!0,a.interimResults=!0,a.onresult=s=>{let o="",i="";for(let d=0;d<s.results.length;d++){const u=s.results[d];u.isFinal?o=Ot(o,u[0].transcript):i=Ot(i,u[0].transcript)}e.text(o,Rr(o,i))},a.onerror=s=>{s.error!=="aborted"&&e.problem(Ir[s.error]??"failed")},a.onend=()=>e.end();try{a.start()}catch{e.problem("failed"),e.end()}return{stop:()=>a.stop(),abort:()=>a.abort()}}};let Or=Nr;const yt=()=>Or,Hr=2e3;class jr{#e=M(null);get owner(){return n(this.#e)}set owner(e){w(this.#e,e)}#n=M("idle");get phase(){return n(this.#n)}set phase(e){w(this.#n,e,!0)}#i=M(0);get startedAt(){return n(this.#i)}set startedAt(e){w(this.#i,e,!0)}#o=M(null);get problem(){return n(this.#o)}set problem(e){w(this.#o,e,!0)}#r=null;#t=null;#a=null;#l=[];active(e){return this.owner===e&&this.phase!=="idle"}start(e,r,a=qr()){this.phase!=="idle"&&this.commit();const s=yt();if(this.owner=e,this.problem=null,!s.supported()){this.problem="unsupported";return}this.#t=r,r.begin(),this.phase="listening",this.startedAt=Date.now();let o=null;const i=()=>o===null||this.#r===o;o=s.start(a,{text:(d,u)=>{i()&&this.#t===r&&r.show(...Fr(d,u))},problem:d=>{i()&&(this.problem=d)},end:()=>{i()&&this.#t===r&&this.#s("finish")}}),this.#t===r&&(this.#r=o)}stop(){if(this.phase==="idle")return Promise.resolve();const e=new Promise(r=>this.#l.push(r));return this.phase==="listening"&&(this.phase="stopping",this.#r?.stop(),this.#a=setTimeout(()=>this.#s("finish"),Hr)),e}commit(){this.phase!=="idle"&&this.#s("finish")}cancel(){this.phase!=="idle"&&this.#s("revert")}dismiss(){this.problem=null}#s(e){const r=this.#r,a=this.#t;this.#r=null,this.#t=null,this.#a&&clearTimeout(this.#a),this.#a=null,this.phase="idle",r?.abort(),a?.[e]();for(const s of this.#l.splice(0))s()}}const K=new jr;function qr(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function Fr(t,e){const r=t.replace(/\s+/g," ").trim(),a=e.replace(/\s+/g," ").trim();return[r,r&&a?` ${a}`:a]}const tn=t=>t&&!/\s$/.test(t)?" ":"",Wr=t=>/^[\p{L}\p{N}]/u.test(t)?" ":"";function Br(t){let e="",r="",a="",s=!1;const o=(i,d)=>{t.value=i;try{t.setSelectionRange(d,d)}catch{}t.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=t.value;const i=t.selectionStart??e.length,d=t.selectionEnd??i;r=e.slice(0,i),a=e.slice(d),s=!1},show(i,d){const u=i+d;if(!u)return;const g=r+tn(r)+u;o(g+Wr(a)+a,g.length),s=!0},finish(){},revert(){s&&o(e,r.length),s=!1}}}function ks(t,e){let r=null,a=null,s="";const o=i=>{const d=document.createRange();d.setStartAfter(i),d.collapse(!0);const u=window.getSelection();u?.removeAllRanges(),u?.addRange(d)};return{begin(){const i=window.getSelection();let d;i?.rangeCount&&t.contains(i.getRangeAt(0).startContainer)?(d=i.getRangeAt(0),a=d.extractContents()):(d=document.createRange(),d.selectNodeContents(t),d.collapse(!1),a=null);const u=document.createRange();u.setStart(t,0),u.setEnd(d.startContainer,d.startOffset),s=tn(u.toString().replace(/\u00a0/g," ")),r=document.createElement("span"),r.dataset.dictation="",d.insertNode(r)},show(i,d){if(!r)return;const u=document.createTextNode(i||d?s+i:""),g=document.createElement("span");g.className="dictation-forming",g.textContent=d,r.replaceChildren(u,...d?[g]:[]),e()},finish(){if(!r)return;const i=r.textContent??"";if(i){const d=document.createTextNode(i);r.replaceWith(d),(t.contains(document.activeElement)||document.activeElement===t)&&o(d)}else r.replaceWith(a??"");r=null,a=null,e()},revert(){r?.replaceWith(a??""),r=null,a=null,e()}}}const Ur=t=>t.code==="Space"&&t.shiftKey&&(t.metaKey||t.ctrlKey)&&!t.altKey,Kr=450;function Gr(t,e,r){let a=0;const s=i=>{if(Ur(i)){if(i.preventDefault(),i.repeat)return;K.active(e)?(a=0,K.stop()):(a=Date.now(),r());return}K.active(e)&&(i.key==="Escape"?(i.preventDefault(),i.stopPropagation(),a=0,K.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(i.key)||(a=0,K.commit()))},o=i=>{if(!a||!(i.code==="Space"||["Shift","Meta","Control"].includes(i.key)))return;const d=Date.now()-a;a=0,d>=Kr&&K.active(e)&&K.stop()};return t.addEventListener("keydown",s),t.addEventListener("keyup",o),()=>{t.removeEventListener("keydown",s),t.removeEventListener("keyup",o)}}var Yr=b('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),Xr=b('<div class="absolute right-0 bottom-full z-30 mb-2 w-72 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="dialog" aria-label="Before you dictate" data-dictation-note=""><p class="svelte-1uxx7q9"> </p> <p class="mt-1.5 text-muted-foreground svelte-1uxx7q9">Words appear in the box for you to check; nothing is sent until you send it.</p> <div class="mt-2.5 flex justify-end gap-2 svelte-1uxx7q9"><button type="button" class="rounded-md px-2 py-1 text-muted-foreground hover:bg-muted hover:text-foreground svelte-1uxx7q9">Not now</button> <button type="button" class="rounded-md bg-primary px-2.5 py-1 font-medium text-primary-foreground svelte-1uxx7q9">Start dictating</button></div></div>'),Jr=b('<div class="absolute right-0 bottom-full z-30 mb-2 flex w-72 items-start gap-2 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="alert" data-dictation-problem=""><p class="min-w-0 flex-1 svelte-1uxx7q9"> </p> <button type="button" class="-m-1 rounded-sm p-1 text-muted-foreground hover:text-foreground svelte-1uxx7q9" aria-label="Dismiss"><!></button></div>'),Vr=b('<span class="relative inline-flex shrink-0 items-center gap-1.5 svelte-1uxx7q9"><!> <button type="button"><!></button> <span class="sr-only svelte-1uxx7q9" aria-live="polite"> </span> <!></span>');function Qr(t,e){Ne(e,!0);let r=q(e,"label",3,"Dictate"),a=q(e,"size",3,"md"),s=q(e,"disabled",3,!1),o=q(e,"listening",15,!1);const i={};sn(()=>{o(K.active(i))});const d=_(()=>o()&&K.phase==="stopping"),u=_(()=>K.owner===i?K.problem:null);let g=M(!1),S=M(lt(Date.now())),Y=M("Ctrl+Shift+Space");const ne="wheelhouse.voice.noted";let pe=!1;function ee(){if(pe)return!0;try{return localStorage.getItem(ne)==="1"}catch{return!1}}function O(){if(s())return;const v=yt();if(v.supported()&&v.privacyNote&&!ee()){w(g,!0);return}K.start(i,e.target()),e.field?.focus()}function se(){pe=!0;try{localStorage.setItem(ne,"1")}catch{}w(g,!1),O()}let I=M(!1);function be(){O(),w(I,K.active(i),!0)}async function B(){return w(I,!1),K.active(i)?(await K.stop(),!0):!1}Re(()=>{o()||w(I,!1)});function ie(){o()?K.stop():n(g)?w(g,!1):O()}const re=_(()=>{const v=Math.max(0,Math.floor((n(S)-K.startedAt)/1e3));return`${Math.floor(v/60)}:${String(v%60).padStart(2,"0")}`});Re(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&w(Y,"⌘⇧Space")}),Re(()=>{if(!o())return;w(S,Date.now(),!0);const v=setInterval(()=>w(S,Date.now(),!0),250);return()=>clearInterval(v)}),Re(()=>{if(e.field)return Gr(e.field,i,O)}),Re(()=>{if(!o()&&!n(g))return;const v=y=>{y.key!=="Escape"||y.defaultPrevented||(y.preventDefault(),o()&&K.cancel(),w(g,!1))};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)}),rn(()=>{K.active(i)&&K.commit()});var Ae={hold:be,release:B},oe=Vr(),xe=c(oe);{var Me=v=>{var y=Yr(),$=G(y,!0);D(()=>W($,n(d)?"Finishing…":n(I)?`${n(re)} · let go of Space to send`:n(re))),p(v,y)};z(xe,v=>{o()&&v(Me)})}var te=f(xe,2),we=c(te);{var me=v=>{{let y=_(()=>a()==="md"?"size-3.5 fill-current":"size-3 fill-current");Fn(v,{get class(){return n(y)}})}},Le=v=>{{let y=_(()=>a()==="md"?"size-4.5":"size-4");dn(v,{get class(){return n(y)}})}};z(we,v=>{o()?v(me):v(Le,-1)})}l(te);var de=f(te,2),ke=G(de,!0),Pe=f(de,2);{var ye=v=>{var y=Xr(),$=c(y),H=G($,!0),X=f($,4),j=c(X),fe=f(j,2);l(X),l(y),D(U=>W(H,U),[()=>yt().privacyNote]),N("click",j,()=>w(g,!1)),N("click",fe,se),p(v,y)},E=v=>{var y=Jr(),$=c(y),H=G($,!0),X=f($,2),j=c(X);Ye(j,{class:"size-3.5"}),l(X),l(y),D(()=>W(H,Dr[n(u)])),N("click",X,()=>K.dismiss()),p(v,y)};z(Pe,v=>{n(g)?v(ye):n(u)&&v(E,1)})}return l(oe),D(()=>{R(te,"aria-label",o()?"Stop dictating":r()),R(te,"aria-pressed",o()),R(te,"title",o()?"Stop dictating · Esc cancels":`${r()} (${n(Y)}; hold for push-to-talk)`),te.disabled=s(),R(te,"data-dictating",o()?"":void 0),Ee(te,1,`mic flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-30 ${a()==="md"?"size-9 max-md:size-11":`size-7 ${ot.current?"touch-target":""}`} ${o()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),W(ke,o()?"Listening":"")}),N("mousedown",te,v=>v.preventDefault()),N("click",te,ie),p(t,oe),Oe(Ae)}ut(["mousedown","click"]);var Zr=new Set(["$$slots","$$events","$$legacy","value","class"]),ea=b('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function ta(t,e){Ne(e,!0);let r=q(e,"value",15),a=He(e,Zr),s=M(null),o=M(!1);var i=ea(),d=c(i);{let S=_(()=>Kt(e.class,n(o)?"pr-24":"pr-10"));Pr(d,Ue({get class(){return n(S)}},()=>a,{get ref(){return n(s)},set ref(Y){w(s,Y,!0)},get value(){return r()},set value(Y){r(Y)}}))}var u=f(d,2),g=c(u);{let S=_(()=>!!e.disabled);Qr(g,{get field(){return n(s)},target:()=>Br(n(s)),size:"sm",get disabled(){return n(S)},get listening(){return n(o)},set listening(Y){w(o,Y,!0)}})}l(u),l(i),p(t,i),Oe()}var na=b('<span class="inline-flex max-w-[85%] items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea"><!><span class="truncate"> </span></span>'),ra=b('<li class="flex flex-col items-end gap-1" data-said="captain"><!> <p class="max-w-[85%] rounded-xl rounded-br-sm border border-[var(--bubble-captain-border)] bg-[var(--bubble-captain)] px-3 py-2 text-sm leading-relaxed whitespace-pre-wrap"> </p></li>'),aa=b('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),sa=b('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),ia=b('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-sea/90" data-add-to-list=""><!>Add to the list</button>'),oa=b('<div class="mt-2 rounded-md border bg-card px-3 py-2" data-suggestion=""><p class="text-sm leading-snug"> </p> <div class="mt-1.5"><!></div></div>'),la=b('<li class="flex gap-2.5" data-said="helper"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <div class="min-w-0 flex-1"><div></div> <!> <!></div></li>'),da=b('<li class="flex gap-1 py-1 pl-9" role="status" aria-label="The helper is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></li>'),ca=b('<li class="text-sm text-danger" role="alert"> </li>'),ua=b('<div class="flex items-center gap-1.5 px-2.5 pt-2"><span class="inline-flex min-w-0 items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea" data-attached=""><!><span class="truncate"> </span></span> <button class="flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground hover:bg-muted" aria-label="Not about this part"><!></button></div>'),fa=b('<span class="text-xs text-muted-foreground">· not sent yet</span>'),ha=b('<p class="text-xs text-muted-foreground"> </p>'),va=b('<li class="group flex items-start gap-2 rounded-md border bg-background px-2 py-1"><span class="mt-0.5 w-4 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span> <div class="min-w-0 flex-1"><textarea rows="1" maxlength="500" class="no-scrollbar block field-sizing-content w-full resize-none rounded bg-transparent text-sm leading-snug outline-none focus:bg-accent/40 max-md:text-base"></textarea> <!></div> <button class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground opacity-60 group-hover:opacity-100 hover:bg-muted hover:text-foreground max-md:size-11" aria-label="Remove from the list"><!></button></li>'),pa=b('<ol class="flex flex-col gap-1.5"></ol>'),ma=b('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),ga=b('<div class="no-scrollbar max-h-48 overflow-y-auto px-4"><!> <form class="mt-1.5 flex items-center gap-1"><!> <input maxlength="500" placeholder="Add your own" aria-label="Add your own feedback" class="h-7 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-11 max-md:text-base"/></form></div>'),ba=b(`<section class="flex min-h-0 flex-col rounded-lg border bg-panel" aria-label="Talk about this preview" data-preview-helper=""><header class="border-b px-4 py-3"><h2 class="flex items-center gap-2 text-base"><!>Talk it through</h2> <p class="mt-0.5 text-xs text-muted-foreground">A helper that sees only this preview. Nothing goes to Firstmate until you send.</p></header> <div class="no-scrollbar min-h-40 flex-1 overflow-y-auto px-4 py-4"><ol class="flex flex-col gap-4"><li class="flex gap-2.5"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <p class="min-w-0 flex-1 text-sm leading-relaxed">I can see this preview, its screenshots, the task’s instructions and what the worker has
5
+ done so far. Point at anything, or just say what you think; I will turn it into a list for
6
+ the worker. <strong>Nothing goes to Firstmate until you send it.</strong></p></li> <!> <!> <!></ol></div> <div class="px-3 pb-3"><div class="rounded-lg border border-input bg-card shadow-sm focus-within:ring-2 focus-within:ring-ring/30"><!> <!> <div class="flex items-center gap-1 px-1.5 pb-1.5"><button title="Click a part of the page to say which part you mean" data-point=""><!> </button> <button aria-label="Say it" class="ml-auto flex size-8 cursor-pointer items-center justify-center rounded-full bg-foreground text-background disabled:cursor-not-allowed disabled:opacity-30 max-md:size-11"><!></button></div></div></div> <section class="border-t bg-card/60" aria-label="Your feedback" data-feedback-list=""><button class="flex w-full cursor-pointer items-center gap-2 px-4 py-2.5 text-left max-md:min-h-11"><h3 class="font-sans text-sm font-medium">Your feedback</h3> <span class="rounded-full bg-muted px-1.5 text-xs text-muted-foreground tabular-nums"> </span> <!> <!></button> <!> <div class="flex items-center gap-3 px-4 pt-2 pb-3"><button class="inline-flex h-9 shrink-0 cursor-pointer items-center gap-1.5 rounded-md bg-sea px-3.5 text-sm font-medium whitespace-nowrap text-on-accent hover:bg-sea/90 disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11" data-send-batch=""><!> </button> <span class="text-xs leading-snug text-muted-foreground">One message, for this same task</span></div></section></section>`);function xa(t,e){Ne(e,!0);let r=q(e,"pointing",15,!1),a=q(e,"attached",15,null);const s=_(()=>$e.view(e.task.id)),o=_(()=>dt.data.sessionToken??"");let i=M(""),d=M(""),u=M(!0),g=M(!1),S=M(null),Y=M(null);zt(()=>$e.load()),Re(()=>{n(s).said.length,n(s).asking,St().then(()=>n(S)?.scrollTo({top:n(S).scrollHeight,behavior:"smooth"}))}),Re(()=>{a()&&St().then(()=>n(Y)?.querySelector("textarea")?.focus())});function ne(){const x=n(i).trim();if(!x&&!a()||n(s).asking)return;const k=a()?.pointer??null;w(i,""),a(null),$e.ask(e.task.id,x,k,n(o))}async function pe(){!n(s).list.length||n(g)||(w(g,!0),await $e.send({id:e.task.id,title:e.task.shortTitle},e.url,n(o)),w(g,!1))}var ee=ba(),O=c(ee),se=c(O),I=c(se);bt(I,{class:"size-4 text-muted-foreground","aria-hidden":"true"}),ve(),l(se),ve(2),l(O);var be=f(O,2),B=c(be),ie=c(B),re=c(ie),Ae=c(re);Pt(Ae,{class:"size-3.5"}),l(re),ve(2),l(ie);var oe=f(ie,2);it(oe,17,()=>n(s).said,x=>x.id,(x,k)=>{var ce=Be(),De=Se(ce);{var je=m=>{var L=ra(),F=c(L);{var ue=_e=>{var ge=na(),qe=c(ge);vt(qe,{class:"size-3 shrink-0","aria-hidden":"true"});var Te=f(qe),ze=G(Te,!0);l(ge),D(()=>W(ze,n(k).points.label)),p(_e,ge)};z(F,_e=>{n(k).points&&_e(ue)})}var he=f(F,2),le=G(he,!0);l(L),D(()=>W(le,n(k).text)),p(m,L)},h=m=>{var L=la(),F=c(L),ue=c(F);Pt(ue,{class:"size-3.5"}),l(F);var he=f(F,2),le=c(he);zn(le,()=>Cn(n(k).text),!0),l(le);var _e=f(le,2);{var ge=Te=>{var ze=aa();p(Te,ze)};z(_e,Te=>{n(k).notice&&n(s).sent&&Te(ge)})}var qe=f(_e,2);it(qe,17,()=>n(k).suggest??[],gn,(Te,ze,Fe)=>{var Ve=oa(),nt=c(Ve),Qe=G(nt,!0),rt=f(nt,2),We=c(rt);{var at=Ke=>{var Ie=sa(),ht=c(Ie);Mn(ht,{class:"size-3.5","aria-hidden":"true"}),ve(),l(Ie),p(Ke,Ie)},ft=Ke=>{var Ie=ia(),ht=c(Ie);At(ht,{class:"size-3.5","aria-hidden":"true"}),ve(),l(Ie),N("click",Ie,()=>$e.accept(e.task.id,n(k).id,Fe)),p(Ke,Ie)};z(We,Ke=>{n(ze).added?Ke(at):Ke(ft,-1)})}l(rt),l(Ve),D(()=>W(Qe,n(ze).text)),p(Te,Ve)}),l(he),l(L),D(()=>Ee(le,1,`chat-md text-sm ${n(k).notice?"text-muted-foreground":""}`)),p(m,L)};z(De,m=>{n(k).who==="captain"?m(je):m(h,-1)})}p(x,ce)});var xe=f(oe,2);{var Me=x=>{var k=da();p(x,k)};z(xe,x=>{n(s).asking&&x(Me)})}var te=f(xe,2);{var we=x=>{var k=ca(),ce=G(k,!0);D(()=>W(ce,n(s).error)),p(x,k)};z(te,x=>{n(s).error&&x(we)})}l(B),l(be),Xe(be,x=>w(S,x),()=>n(S));var me=f(be,2),Le=c(me),de=c(Le);{var ke=x=>{var k=ua(),ce=c(k),De=c(ce);vt(De,{class:"size-3 shrink-0","aria-hidden":"true"});var je=f(De),h=G(je,!0);l(ce);var m=f(ce,2),L=c(m);Ye(L,{class:"size-3"}),l(m),l(k),D(()=>W(h,a().pointer.label)),N("click",m,()=>a(null)),p(x,k)};z(de,x=>{a()&&x(ke)})}var Pe=f(de,2);{let x=_(()=>a()?"What about it?":"What do you think? Ask anything about it");ta(Pe,{rows:2,maxlength:4e3,get placeholder(){return n(x)},"aria-label":"Talk about this preview",class:"no-scrollbar min-h-12 border-0 bg-transparent text-sm shadow-none focus-visible:ring-0 max-md:text-base",onkeydown:k=>{k.key==="Enter"&&!k.shiftKey&&!k.isComposing&&(k.preventDefault(),ne())},get value(){return n(i)},set value(k){w(i,k,!0)}})}var ye=f(Pe,2),E=c(ye),v=c(E);vt(v,{class:"size-3.5","aria-hidden":"true"});var y=f(v,1,!0);l(E);var $=f(E,2),H=c($);En(H,{class:"size-4"}),l($),l(ye),l(Le),l(me),Xe(me,x=>w(Y,x),()=>n(Y));var X=f(me,2),j=c(X),fe=f(c(j),2),U=G(fe,!0),J=f(fe,2);{var T=x=>{var k=fa();p(x,k)};z(J,x=>{n(s).list.length&&x(T)})}var P=f(J,2);{let x=_(()=>n(u)?"rotate-180":"");An(P,{get class(){return`ml-auto size-4 text-muted-foreground transition-transform ${n(x)??""}`},"aria-hidden":"true"})}l(j);var V=f(j,2);{var Q=x=>{var k=ga(),ce=c(k);{var De=F=>{var ue=pa();it(ue,23,()=>n(s).list,he=>he.id,(he,le,_e)=>{var ge=va(),qe=c(ge),Te=G(qe),ze=f(qe,2),Fe=c(ze);jt(Fe);var Ve=f(Fe,2);{var nt=We=>{var at=ha(),ft=G(at);D(()=>W(ft,`Points at ${n(le).points.label??""}`)),p(We,at)};z(Ve,We=>{n(le).points&&We(nt)})}l(ze);var Qe=f(ze,2),rt=c(Qe);Ye(rt,{class:"size-3.5"}),l(Qe),l(ge),D(()=>{W(Te,`${n(_e)+1}.`),xn(Fe,n(le).text),R(Fe,"aria-label",`Feedback ${n(_e)+1}`)}),N("input",Fe,We=>$e.edit(e.task.id,n(le).id,We.currentTarget.value)),N("click",Qe,()=>$e.remove(e.task.id,n(le).id)),p(he,ge)}),l(ue),p(F,ue)},je=F=>{var ue=ma();p(F,ue)};z(ce,F=>{n(s).list.length?F(De):F(je,-1)})}var h=f(ce,2),m=c(h);At(m,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var L=f(m,2);bn(L),l(h),l(k),qt("submit",h,F=>{F.preventDefault(),$e.addOwn(e.task.id,n(d)),w(d,"")}),Ut(L,()=>n(d),F=>w(d,F)),p(x,k)};z(V,x=>{n(u)&&x(Q)})}var A=f(V,2),C=c(A),ae=c(C);cn(ae,{class:"size-3.5","aria-hidden":"true"});var Z=f(ae,1,!0);l(C),ve(2),l(A),l(X),l(ee),D(x=>{Ee(E,1,`inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-md px-2 text-xs font-medium transition-colors max-md:h-11 max-md:px-3 max-md:text-sm ${r()?"bg-sea text-on-accent":"text-muted-foreground hover:bg-muted hover:text-foreground"}`),R(E,"aria-pressed",r()),W(y,r()?"Pointing…":"Point"),$.disabled=x,R(j,"aria-expanded",n(u)),W(U,n(s).list.length),C.disabled=!n(s).list.length||n(g),W(Z,n(g)?"Sending…":`Send to Firstmate${n(s).list.length?` (${n(s).list.length})`:""}`)},[()=>!n(i).trim()&&!a()||n(s).asking]),N("click",E,()=>r(!r())),N("click",$,ne),N("click",j,()=>w(u,!n(u))),N("click",C,pe),p(t,ee),Oe()}ut(["click","input"]);var wa=b('<span class="contents" data-slot="preview.action"><!></span>');function Ht(t,e){Ne(e,!0);const r=_(()=>dt.data.slots),a=_(()=>n(r)?.[Mt.fleet]?dt.data.slotsAt??0:0),s=_(()=>Ct()?.id??null),o=_(()=>Ln.entries(Mt.fleet,n(r),n(a)).filter(u=>u.slot==="preview.action"&&u.content.available).sort((u,g)=>+(g.pluginId===n(s))-+(u.pluginId===n(s))));var i=Be(),d=Se(i);it(d,17,()=>n(o),u=>u.key,(u,g)=>{var S=Be(),Y=Se(S);{var ne=pe=>{const ee=_(()=>n(g).pluginId===n(s));var O=wa(),se=c(O);{let I=_(()=>n(ee)?{...e.preview,primary:n(ee)}:e.preview);Pn(se,{get entry(){return n(g)},get data(){return n(g).content.value},get preview(){return n(I)},quiet:!0})}l(O),D(()=>R(O,"data-primary",n(ee)?"":void 0)),p(pe,O)};z(Y,pe=>{n(g).content.available&&pe(ne)})}p(u,S)}),p(t,i),Oe()}var _a=b('<button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"><!>Hide the helper</button>'),ka=b('<span class="flex flex-wrap items-center gap-1 text-xs" data-preview-surface=""><!></span>'),ya=b('<aside data-preview-helper-panel=""><div class="flex min-h-0 w-full flex-col"><div class="flex shrink-0 items-center justify-end md:hidden"><span class="absolute top-2 left-1/2 h-1 w-10 -translate-x-1/2 rounded-full bg-muted-foreground/40" aria-hidden="true"></span> <button type="button" class="grid size-11 place-items-center rounded-full text-muted-foreground hover:bg-accent hover:text-foreground" aria-label="Hide the helper"><!></button></div> <!></div></aside>'),za=b('<button type="button" class="absolute right-5 bottom-5 inline-flex items-center gap-2 rounded-full border bg-background px-4 py-2 text-sm font-medium shadow-lg hover:bg-accent max-md:hidden"><!>Talk it through</button>'),Ca=b('<a target="_blank" rel="noreferrer" class="grid size-11 shrink-0 place-items-center rounded-xl border hover:bg-accent" aria-label="Open in a new tab"><!></a>'),Sa=b('<button type="button" class="inline-flex h-11 shrink-0 items-center gap-2 rounded-xl border px-3 text-sm font-medium hover:bg-accent" aria-label="Talk it through"><!>Talk</button>'),Ta=b('<span class="flex min-w-0 flex-1 flex-wrap items-center justify-end gap-1"><!></span>'),Ea=b('<div class="fixed inset-0 z-50 flex flex-col bg-background outline-none" role="dialog" aria-modal="true" tabindex="-1" data-preview-studio=""><div class="flex h-12 shrink-0 items-center gap-3 border-b px-3 max-md:hidden sm:px-4"><p class="min-w-0 flex-1 truncate text-sm"><span class="font-medium"> </span> <span class="text-muted-foreground">· Live preview</span></p> <!> <!> <button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs hover:bg-accent" aria-label="Close full screen (Esc)" title="Close (Esc)"><!>Close</button></div> <div class="flex shrink-0 items-center gap-1 border-b px-1 pt-[env(safe-area-inset-top,0px)] md:hidden" data-preview-phone-bar=""><button type="button" class="grid size-11 shrink-0 place-items-center rounded-full hover:bg-accent" aria-label="Close full screen"><!></button> <div class="min-w-0 flex-1 py-1 text-center"><p class="truncate text-sm font-medium"> </p> <p class="truncate font-mono text-xs text-muted-foreground"> </p></div> <button type="button" class="grid size-11 shrink-0 place-items-center rounded-full hover:bg-accent disabled:opacity-40"><!></button></div> <div class="relative flex min-h-0 flex-1"><div class="min-w-0 flex-1 p-3 max-md:p-0"><!></div> <!></div> <div class="flex shrink-0 items-center gap-2 border-t bg-background px-3 pt-2 pb-[max(0.5rem,env(safe-area-inset-bottom,0px))] md:hidden" data-preview-dock=""><button type="button" class="grid size-11 shrink-0 place-items-center rounded-xl border hover:bg-accent"><!></button> <!> <!> <!></div></div>');function Aa(t,e){Ne(e,!0);let r=q(e,"talk",3,!0),a=q(e,"board",3,!1),s=q(e,"from",3,null);const o=_(Ct),i=_(()=>r()&&!!e.taskId&&!n(o));let d=M(!ot.current),u=M(!1),g=M(null);const S=_(()=>et.checks[e.taskId??Jt(e.url)]??null),Y=_(()=>n(S)?.state==="live"),ne=_(()=>Ft.view(n(S)?.url??e.url)),pe=_(()=>URL.parse(n(ne))?.host??n(ne)),ee=_(()=>n(Y)&&n(S)?.url?{url:n(S).url,taskId:e.taskId,title:e.title,projectId:e.taskId?kn()?.tasks.find(h=>h.id===e.taskId)?.projectId??null:null,board:a()}:null);let O=M(!1),se=M(null),I=M(null);zt(()=>{const h=document.activeElement,m=document.body.style.overflow;return document.body.style.overflow="hidden",n(I)?.focus(),()=>{document.body.style.overflow=m,h?.focus?.()}});function be(h){if(h.key!=="Escape")return;if(n(O)){h.preventDefault(),w(O,!1);return}const m=h.target;if(m instanceof HTMLTextAreaElement&&m.value.trim()){m.blur();return}h.preventDefault(),e.onclose()}var B=Ea();qt("keydown",on,be);var ie=c(B),re=c(ie),Ae=c(re),oe=G(Ae,!0);ve(2),l(re);var xe=f(re,2);{var Me=h=>{var m=_a(),L=c(m);On(L,{class:"size-4","aria-hidden":"true"}),ve(),l(m),N("click",m,()=>w(d,!1)),p(h,m)};z(xe,h=>{n(i)&&n(d)&&h(Me)})}var te=f(xe,2);{var we=h=>{var m=ka(),L=c(m);Ht(L,{get preview(){return n(ee)}}),l(m),p(h,m)};z(te,h=>{n(o)&&n(ee)&&h(we)})}var me=f(te,2),Le=c(me);Ye(Le,{class:"size-4","aria-hidden":"true"}),ve(),l(me),l(ie);var de=f(ie,2),ke=c(de),Pe=c(ke);Ye(Pe,{class:"size-5","aria-hidden":"true"}),l(ke);var ye=f(ke,2),E=c(ye),v=G(E,!0),y=f(E,2),$=G(y,!0);l(ye);var H=f(ye,2),X=c(H);Wt(X,{class:"size-5","aria-hidden":"true"}),l(H),l(de);var j=f(de,2),fe=c(j),U=c(fe);{let h=_(()=>e.taskId?null:e.url),m=_(()=>!ot.current),L=_(()=>ot.current&&n(u)),F=_(()=>n(i)&&n(d)&&n(O)),ue=_(()=>n(i)&&n(d)?n(se)?.at??null:null);Xe(Tr(U,{get taskId(){return e.taskId},get url(){return n(h)},fill:!0,get toolbar(){return n(m)},get desktop(){return n(L)},get pointing(){return n(F)},get pin(){return n(ue)},onpoint:(he,le)=>{w(se,{pointer:he,at:le},!0),w(O,!1)}}),he=>w(g,he,!0),()=>n(g))}l(fe);var J=f(fe,2);{var T=h=>{var m=ya(),L=c(m),F=c(L),ue=f(c(F),2),he=c(ue);Ye(he,{class:"size-5","aria-hidden":"true"}),l(ue),l(F);var le=f(F,2);{let _e=_(()=>({id:e.taskId,shortTitle:e.title}));xa(le,{get task(){return n(_e)},get url(){return e.url},get pointing(){return n(O)},set pointing(ge){w(O,ge,!0)},get attached(){return n(se)},set attached(ge){w(se,ge,!0)}})}l(L),l(m),D(()=>Ee(m,1,`flex min-h-0 w-[24rem] shrink-0 border-l bg-panel p-3 max-md:absolute max-md:inset-x-0 max-md:bottom-0 max-md:z-10 max-md:h-[88%] max-md:w-auto max-md:overflow-y-auto max-md:overscroll-contain max-md:rounded-t-2xl max-md:border-t max-md:border-l-0 max-md:px-2 max-md:pt-0 max-md:pb-2 max-md:shadow-2xl xl:w-[26rem] ${n(O)?"max-md:hidden":""}`)),N("click",ue,()=>w(d,!1)),p(h,m)},P=h=>{var m=za(),L=c(m);bt(L,{class:"size-4","aria-hidden":"true"}),ve(),l(m),N("click",m,()=>w(d,!0)),p(h,m)};z(J,h=>{n(i)&&n(d)&&e.taskId?h(T):n(i)&&h(P,1)})}l(j);var V=f(j,2),Q=c(V),A=c(Q);{var C=h=>{jn(h,{class:"size-5","aria-hidden":"true"})},ae=h=>{Rn(h,{class:"size-5","aria-hidden":"true"})};z(A,h=>{n(u)?h(C):h(ae,-1)})}l(Q);var Z=f(Q,2);{var x=h=>{var m=Ca(),L=c(m);Bt(L,{class:"size-5","aria-hidden":"true"}),l(m),D(()=>R(m,"href",n(ne))),p(h,m)};z(Z,h=>{(n(Y)||n(S)?.state==="blocked")&&h(x)})}var k=f(Z,2);{var ce=h=>{var m=Sa(),L=c(m);bt(L,{class:"size-4 shrink-0","aria-hidden":"true"}),ve(),l(m),N("click",m,()=>w(d,!0)),p(h,m)};z(k,h=>{n(i)&&!n(d)&&h(ce)})}var De=f(k,2);{var je=h=>{var m=Ta(),L=c(m);Ht(L,{get preview(){return n(ee)}}),l(m),p(h,m)};z(De,h=>{n(ee)&&h(je)})}l(V),l(B),Xe(B,h=>w(I,h),()=>n(I)),un(B,h=>tr?.(h)),D(()=>{R(B,"aria-label",`Live preview of ${e.title??""}, full screen`),W(oe,e.title),W(v,e.title),R(y,"title",n(ne)),W($,n(pe)),H.disabled=!n(S),R(H,"aria-label",n(Y)?"Reload the preview":"Check the preview again"),R(Q,"aria-pressed",n(u)),R(Q,"aria-label",n(u)?"Show at the phone’s width":"Show at a desktop’s width")}),N("click",me,function(...h){e.onclose?.apply(this,h)}),N("click",ke,function(...h){e.onclose?.apply(this,h)}),N("click",H,()=>n(g)?.reload()),N("click",Q,()=>w(u,!n(u))),vn(3,B,()=>wn,()=>({from:s()})),p(t,B),Oe()}ut(["click"]);function ys(t,e){Ne(e,!0);let r=q(e,"talk",3,!0),a=q(e,"board",3,!1),s=q(e,"from",3,null);const o=fn()&&!!e.taskId&&r()&&!a()&&!Ct();zt(()=>{if(!o||!e.taskId)return;const g=hn(e.taskId),S=window.open(g,"_blank");S?S.opener=null:location.assign(g),e.onclose()});var i=Be(),d=Se(i);{var u=g=>{Aa(g,{get taskId(){return e.taskId},get title(){return e.title},get url(){return e.url},get talk(){return r()},get board(){return a()},get from(){return s()},get onclose(){return e.onclose}})};z(d,g=>{o||g(u)})}p(t,i),Oe()}export{vs as A,Tr as L,Pt as M,ys as P,ms as S,Yn as a,Qr as b,ds as c,Ct as d,Lt as e,Br as f,bs as g,fs as h,hs as i,Dt as j,cs as k,xs as l,nr as m,ps as n,gs as o,et as p,xa as q,ws as r,us as s,Ht as t,Jt as u,yt as v,_s as w,K as x,ks as y,Fn as z};
@@ -0,0 +1,3 @@
1
+ import"./DsnmJJEf.js";import{o as ra}from"./B42VotjV.js";import{j as na,p as Nt,f as he,e as s,s as n,g as e,o as y,t as b,a as d,r as o,b as Pt,h as l,c,n as Me,aC as oa,m as Ee,i as et,y as sa,q as Tt}from"./CEfkcOME.js";import{d as Bt,s as f,a as ne}from"./CPPNfCxh.js";import{i as x}from"./D4ikcNuh.js";import{e as pe,s as m,d as B,k as ia,h as la}from"./BMjXQSgN.js";import{t as zt}from"./DBuj1e9B.js";import{p as ye}from"./D42BPZCD.js";import{S as da}from"./fGU1mdyw.js";import{p as ua}from"./CjDEH2t9.js";import{a as kt}from"./WRwU91GU.js";import{b as ca}from"./BUYzAikv.js";import{W as va,S as ma,p as ht}from"./CJfafoqX.js";import{t as fa,s as ga,d as pa}from"./Ds4LY5_S.js";import{D as ha,l as xa,s as Ut,d as _a,i as xt,c as ba,a as ka,O as Ze,A as $e,b as wa}from"./D2pY9EPU.js";import{i as _t}from"./Z_T9JZ0p.js";import{g as ya,e as Ca}from"./DTpgmq3M.js";import{a as ja,s as Sa}from"./Z0GxSwEl.js";import{T as Ia}from"./C303vUt4.js";import{S as Aa}from"./AATz5Vtc.js";import{M as Rt}from"./lQExwTPF.js";import{s as Ta}from"./CjSftIOB.js";import{d as za}from"./BUI64CqJ.js";import{g as Ra}from"./BnWhj1AH.js";import{E as Ea,C as Ma}from"./BPz1qeSs.js";import{C as Oa}from"./Bb5KMHGW.js";import{S as Et,G as La}from"./BUDmXDBn.js";import{M as bt}from"./DgIRKToT.js";import{A as qa}from"./aXaOr426.js";import{G as Ha}from"./CuBB2sQo.js";import{c as Da,g as Na,D as Pa}from"./BrB0U8Br.js";import{s as Mt}from"./DlBoDmKe.js";import{a as Ot,p as Ba}from"./-Ivlm0RJ.js";import{A as Lt}from"./POlOdWbo.js";import{X as Ua}from"./C6E-ekUK.js";import{S as qt}from"./C1_mhCjD.js";import{A as Ht}from"./BTPd4OWk.js";import{C as Wa}from"./iInrZOCY.js";import{C as Ga}from"./BftdAJED.js";import{S as Fa}from"./CcHpYnFJ.js";import{p as Ya}from"./XxOJwmzJ.js";const Ka=na({pending:null,draft:null,decision:null});var Qa=c('<span class="absolute inset-y-1.5 -left-1 w-[3px] rounded-full bg-gold" aria-hidden="true"></span>'),Va=c('<span class="mx-1" aria-hidden="true">·</span>'),Xa=c("<!><span> </span>",1),Ja=c('<button type="button" title="Chat about this"><!></button>'),Za=c('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),$a=c('<span class="text-muted-foreground"> </span>'),er=c('<span class="ml-auto text-muted-foreground"> </span>'),tr=c('<p class="leading-snug text-muted-foreground"> </p>'),ar=c('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),rr=c('<div class="pt-1"><!></div>'),nr=c('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),or=c('<div class="-mt-2"><!></div>'),sr=c('<div class="flex flex-col gap-2 text-xs"><div class="flex flex-wrap items-center gap-1.5"><span><!> </span> <!> <!> <!></div> <!> <!> <!> <!> <!> <!> <div class="-ml-1.5 flex flex-wrap gap-0.5"><a><!>Open</a> <button type="button"><!>Chat about this</button></div></div>'),ir=c('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),lr=c('<div><!> <button type="button" data-deck-line="" class="flex h-full min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md py-2 pr-1 pl-1 text-left focus-visible:outline-2 focus-visible:outline-ring"><!> <span class="min-w-0 flex-1"><span> </span> <span class="block truncate text-xs text-muted-foreground"></span></span></button> <!></div> <!>',1);function dr(Ce,r){Nt(r,!0);let ee=ye(r,"dim",3,!1),F=ye(r,"selected",3,!1);const U={danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",sea:"bg-sea/10 text-sea",muted:"bg-muted text-muted-foreground",busy:"bg-muted text-foreground",success:"bg-success/10 text-success",quiet:"bg-muted text-muted-foreground"},te=l(()=>r.line.kind==="task"?xa(r.line.task):ha),v=l(()=>r.line.kind==="task"?r.line.task:null),Q=l(()=>`deck-${r.line.key.replace(/[^\w-]/g,"-")}`),V=l(()=>e(v)&&r.line.text!==e(v).shortTitle?e(v).shortTitle:e(v)?.attention?.owner==="captain"&&e(v).attention.text&&e(v).attention.text!==r.line.text?e(v).attention.text:null),Y=l(()=>e(v)?e(v).activity?.text||e(v).summary||e(v).statusLabel:null),de=l(()=>[r.project?{key:"project",text:r.project.tag,title:r.project.name}:null,e(V)??(e(Y)&&e(Y)!==r.line.text?e(Y):null)?{key:"doing",text:e(V)??e(Y),title:void 0}:null,r.line.at?{key:"age",text:Ut(r.line.at,r.now),title:kt(r.line.at,r.now)}:null].filter(R=>R!==null)),ue=l(()=>e(v)?e(v).attention?.url??e(v).pr?.url??null:null),xe=l(()=>e(v)?`/tasks/${encodeURIComponent(e(v).id)}`:null),q=l(()=>!!(e(v)&&r.onOpen)||r.line.kind==="decision"),ce="flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring";var Oe=lr(),je=he(Oe),z=s(je);{var Ne=R=>{var k=Qa();d(R,k)};x(z,R=>{F()&&R(Ne)})}var oe=n(z,2),se=s(oe);Et(se,{get state(){return e(te)},class:"size-5 shrink-0"});var Se=n(se,2),_e=s(Se),K=y(_e,!0),Ie=n(_e,2);pe(Ie,23,()=>e(de),R=>R.key,(R,k,X)=>{var A=Xa(),ie=he(A);{var ve=ae=>{var Le=Va();d(ae,Le)};x(ie,ae=>{e(X)&&ae(ve)})}var le=n(ie),J=y(le,!0);b(()=>{m(le,"title",e(k).title),m(le,"data-project-tag",e(k).key==="project"||void 0),f(J,e(k).text)}),d(R,A)}),o(Ie),o(Se),o(oe);var tt=n(oe,2);{var Pe=R=>{var k=Ja(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(()=>{B(k,1,`flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${r.open?"opacity-100":""}`),m(k,"aria-label",`Chat about ${e(v).shortTitle??""}`)}),ne("click",k,()=>r.onChat(e(v))),d(R,k)},be=R=>{var k=Za(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(A=>{m(k,"href",A),B(k,1,`flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${r.open?"opacity-100":""}`)},[()=>za(r.line.card.id)]),d(R,k)};x(tt,R=>{e(v)?R(Pe):r.line.kind==="decision"&&R(be,1)})}o(je);var at=n(je,2);{var rt=R=>{var k=ir(),X=s(k);{var A=ie=>{var ve=sr(),le=s(ve),J=s(le),ae=s(J);Et(ae,{get state(){return e(te)},still:!0,decorative:!0,class:"size-3.5"});var Le=n(ae,1,!0);o(J);var Ae=n(J,2);va(Ae,{get task(){return e(v)}});var Be=n(Ae,2);{var nt=g=>{var C=$a(),D=y(C,!0);b(()=>f(D,r.project.name)),d(g,C)};x(Be,g=>{r.project&&g(nt)})}var Ue=n(Be,2);{var We=g=>{var C=er(),D=y(C,!0);b(Re=>f(D,Re),[()=>kt(r.line.at,r.now)]),d(g,C)};x(Ue,g=>{r.line.at&&g(We)})}o(le);var Ge=n(le,2);{var Fe=g=>{var C=tr(),D=y(C,!0);b(()=>f(D,e(V))),d(g,C)};x(Ge,g=>{e(V)&&g(Fe)})}var Ye=n(Ge,2);{var ot=g=>{Oa(g,{get pipeline(){return e(v).pipeline},get busy(){return e(v).busy},size:"rail"})},st=l(()=>Ta(e(v))),it=g=>{var C=ar(),D=y(C,!0);b(()=>f(D,e(Y))),d(g,C)};x(Ye,g=>{e(st)?g(ot):e(Y)&&e(Y)!==r.line.text&&g(it,1)})}var re=n(Ye,2);{var lt=g=>{var C=rr(),D=s(C);ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(re,g=>{e(v).passage.steps.length>1&&g(lt)})}var Z=n(re,2);{var Ke=g=>{Ea(g,{get eta(){return e(v).eta}})};x(Z,g=>{e(v).eta&&g(Ke)})}var qe=n(Z,2);{var He=g=>{var C=nr(),D=s(C);Ha(D,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var Re=n(D,1,!0);o(C),b(()=>{m(C,"href",e(ue)),f(Re,e(ue))}),d(g,C)};x(qe,g=>{e(ue)&&g(He)})}var De=n(qe,2);{var dt=g=>{var C=or(),D=s(C);Ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(De,g=>{e(v).preview&&g(dt)})}var Te=n(De,2),me=s(Te);B(me,1,ia(ce));var ut=s(me);qa(ut,{class:"size-3.5","aria-hidden":"true"}),Me(),o(me);var ze=n(me,2);B(ze,1,"flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring cursor-pointer");var ct=s(ze);bt(ct,{class:"size-3.5","aria-hidden":"true"}),Me(),o(ze),o(Te),o(ve),b(()=>{B(J,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${U[e(te).tone]??""}`),f(Le,e(te).label),m(me,"href",e(xe))}),ne("click",ze,()=>r.onChat(e(v))),d(ie,ve)};x(X,ie=>{e(v)&&ie(A)})}o(k),b(()=>m(k,"id",e(Q))),d(R,k)};x(at,R=>{r.open&&!e(q)&&R(rt)})}b(()=>{B(je,1,`group relative flex items-center border-b border-hair transition-colors ${r.open||F()?"bg-muted/70":"hover:bg-muted/50"}`),m(oe,"aria-expanded",e(q)?void 0:r.open),m(oe,"aria-controls",e(q)?void 0:e(Q)),m(oe,"aria-haspopup",e(q)?"dialog":void 0),m(Se,"title",e(V)?`${r.line.text} (${e(V)})`:r.line.text),B(_e,1,`block truncate text-[0.95rem] font-medium ${ee()?"text-muted-foreground":"text-foreground"}`),f(K,r.line.text)}),ne("click",oe,()=>r.line.kind==="decision"?void Ra(ya(r.line.card.id)):e(q)&&e(v)?r.onOpen?.(e(v)):r.onToggle()),d(Ce,Oe),Pt()}Bt(["click"]);var ur=oa('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),cr=c('<span class="gauge" aria-hidden="true"><svg viewBox="0 0 52 52"><circle cx="26" cy="26" class="gauge-track"></circle><!></svg> <span class="gauge-label"> </span></span>');function Dt(Ce,r){let ee=ye(r,"tone",3,"gold");const F=22,U=2*Math.PI*F,te=l(()=>r.value===null?0:Math.max(0,Math.min(100,Math.round(r.value))));var v=cr(),Q=s(v),V=s(Q);m(V,"r",F);var Y=n(V);{var de=q=>{var ce=ur();m(ce,"r",F),b(()=>m(ce,"stroke-dasharray",`${e(te)/100*U} 138.23007675795088`)),d(q,ce)};x(Y,q=>{r.value!==null&&e(te)>0&&q(de)})}o(Q);var ue=n(Q,2),xe=y(ue,!0);o(v),b(()=>{m(v,"data-tone",ee()),f(xe,r.value===null?"–":`${e(te)}%`)}),d(Ce,v)}var vr=c('<span class="min-w-0 truncate text-muted-foreground"> </span>'),mr=c('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),fr=c('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),gr=c('<p class="mb-1 flex items-center gap-2 px-1.5 text-xs text-muted-foreground"><!> <span class="min-w-0 truncate"> </span> <a class="ml-auto shrink-0 hover:text-foreground hover:underline">More</a></p>'),pr=c('<h3 class="mt-3 mb-0.5 first:mt-0"><button type="button"><!> <span class="shrink-0 text-muted-foreground tabular-nums"> </span> <span class="min-w-2 flex-1 border-t border-hair" aria-hidden="true"></span> <!></button></h3> <!>',1),hr=c("<span> <b> </b> left</span>"),xr=c('<a href="/headroom" class="ml-auto flex min-w-0 flex-col items-end rounded-md px-1.5 py-1 text-xs leading-tight text-muted-foreground hover:bg-muted hover:text-foreground max-md:min-h-11 max-md:justify-center" data-headroom=""><span class="sr-only">Claude headroom:</span> <!></a>'),_r=c('<a href="/headroom" class="ml-auto flex items-center gap-1.5 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground" title="Connect your Claude usage to see what is left"><!>Connect usage</a>'),br=c('<button aria-label="Close"><!></button>'),kr=c('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),wr=c('<div class="shrink-0 px-4 pt-4"><div class="flex flex-wrap gap-2 text-[0.9rem]" role="radiogroup" aria-label="Whose work" tabindex="-1"></div></div>'),yr=c("<span> </span>"),Cr=c('<button role="tab" aria-controls="rail-panel"> <!></button>'),jr=c('<div class="px-1.5" data-slot="home.card"><!></div>'),Sr=c('<button type="button" class="float-right -mt-1 ml-2 flex cursor-pointer items-center gap-0.5 rounded-md px-1.5 py-1 text-xs whitespace-nowrap text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring max-md:float-none max-md:mt-0 max-md:ml-auto max-md:min-h-11 max-md:text-sm"><!> </button>'),Ir=c('<div class="mb-2" data-needs-decisions=""><!></div>'),Ar=c("<li><!></li>"),Tr=c("<ul></ul>"),zr=c('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Rr=c("<section><!> <!></section>"),Er=c('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Mr=c('<li><a class="flex h-8 items-center gap-2 rounded-md px-1.5 hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1 truncate text-[0.875rem] text-muted-foreground"> </span> <span class="shrink-0 text-xs font-medium"> </span> <span class="w-7 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span></a></li>'),Or=c('<div class="mt-4 mb-0.5 flex items-center gap-2 px-1.5 text-xs"><h3 class="flex items-center gap-1.5 font-medium text-muted-foreground"><!>Decided for you</h3> <span class="flex-1 border-t border-hair" aria-hidden="true"></span> <a href="/decisions" class="text-muted-foreground hover:text-foreground">See all</a></div> <ul></ul>',1),Lr=c('<a href="/time" class="mt-4 block rounded-md px-1.5 py-1 hover:bg-muted/50"><span class="block text-xs text-muted-foreground"><span class="font-medium text-foreground"> </span> </span> <span class="mt-1.5 block"><!></span> <span class="mt-1.5 block text-xs text-muted-foreground"> </span></a>'),qr=c("<!> <div><!> <!></div> <!> <!>",1),Hr=c('<a href="/second-mates" class="flex items-center justify-between gap-3 border-t px-1 py-3.5 text-muted-foreground hover:text-foreground">Every second mate, with its queue, pull requests and a look at it <!></a>'),Dr=c('<li class="mt-3 max-md:mt-1"><a class="group block text-sm max-md:py-1.5"><span class="flex items-baseline justify-between gap-2" aria-hidden="true"><span class="truncate font-medium group-hover:underline"> </span> <span class="shrink-0 text-xs text-muted-foreground"> </span></span> <span class="glance-bar" aria-hidden="true"><span></span></span></a></li>'),Nr=c('<section class="mt-4 rounded-2xl border bg-card/70 px-4 pt-4 pb-4.5" aria-labelledby="rail-glance" data-glance=""><h3 id="rail-glance" class="font-semibold">Harbour at a glance</h3> <p class="text-sm text-muted-foreground">The fleet, without leaving the bridge.</p> <ul></ul></section>'),Pr=c('<aside class="flex h-full min-h-0 flex-col" aria-label="Tasks and decisions" aria-describedby="rail-headline"><p id="rail-headline" class="sr-only"> </p> <div class="flex h-16 shrink-0 items-center gap-2 border-b px-5 text-sm"><span class="font-title text-[2.15rem] leading-none">On <em class="text-gold">deck</em></span> <!> <!></div> <div class="grid shrink-0 grid-cols-2 gap-2.5 px-4 pt-4" data-gauges=""><a href="/headroom" class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold"> </span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a> <a class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold">Checks</span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a></div> <!> <div class="mt-3 no-scrollbar flex shrink-0 gap-5 overflow-x-auto border-b px-4" role="tablist" aria-label="On deck" tabindex="-1"></div> <div id="rail-panel" role="tabpanel" class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-3"><!> <nav class="mt-5 flex flex-col" aria-label="More on deck"><a class="flex items-center justify-between gap-3 border-t px-1 py-3.5 font-medium hover:text-gold"> <!></a> <!></nav> <!></div></aside>');function Rn(Ce,r){Nt(r,!0);const ee=(t,a=Tt,i=Tt)=>{var h=pr(),u=he(h),E=s(u),M=s(E);{var T=p=>{var I=mr(),j=he(I);qt(j,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var O=n(j,2),N=y(O,!0),L=n(O,2);{var H=G=>{var P=vr(),$=y(P,!0);b(we=>f($,we),[()=>a().mate.where==="remote"?ht(a().mate.host):"on this computer"]),d(G,P)};x(L,G=>{a().mate&&G(H)})}b(()=>f(N,a().label)),d(p,I)},W=p=>{var I=fr(),j=he(I);Ht(j,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var O=n(j,2),N=y(O,!0);b(()=>f(N,a().label)),d(p,I)};x(M,p=>{a().id!==Ze?p(T):p(W,-1)})}var fe=n(M,2),ke=y(fe,!0),ge=n(fe,4);{var w=p=>{Rt(p,{get health(){return a().mate.health}})};x(ge,p=>{a().mate&&(a().mate.health.online!=="online"||a().mate.health.cached)&&p(w)})}o(E),o(u);var _=n(u,2);{var S=p=>{var I=gr(),j=s(I);Rt(j,{get health(){return a().mate.health}});var O=n(j,2),N=y(O),L=n(O,2);o(I),b(H=>{m(I,"data-second-mate",a().mate.id),m(O,"title",a().mate.lastReport?.text),f(N,`${a().mate.stateLabel??""}${a().mate.queued.length?` · ${a().mate.queued.length} queued`:""}${a().mate.lastReport?` · “${a().mate.lastReport.text}”`:""}`),m(L,"href",`/second-mates#mate-${H??""}`)},[()=>encodeURIComponent(a().mate.id)]),d(p,I)};x(_,p=>{a().mate&&e(K)===a().id&&p(S)})}b(p=>{m(u,"data-crew",a().id),B(E,1,`flex h-6 w-full items-center gap-1.5 rounded-md px-1.5 text-left text-xs focus-visible:outline-2 focus-visible:outline-ring ${e(K)===a().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),m(E,"aria-label",`${a().label??""}${p??""}: ${i()??""}${e(K)===a().id?"":". Show only this crew"}`),f(ke,i())},[()=>a().mate?`, ${a().mate.where==="remote"?ht(a().mate.host):"on this computer"}`:""]),ne("click",E,()=>Ie(a().id)),d(t,h)};let F=ye(r,"insights",3,null),U=ye(r,"scope",3,null),te=ye(r,"cards",19,()=>[]),v=ye(r,"secondMates",19,()=>[]);const Q=t=>!U()||t===U(),V=l(()=>(F()?.decisions??[]).filter(t=>Q(t.projectId))),Y=l(()=>ga((F()?.today??[]).filter(t=>Q(t.projectId)))),de=l(()=>fa(e(Y))),ue=l(()=>(F()?.today??[]).filter(t=>Q(t.projectId)).length),xe=t=>e(de)?Math.round(e(Y)[t]/e(de)*100):0,q=l(()=>F()?.allowance??null),ce=l(()=>ua.data.inbox),Oe=l(()=>_t.view(e(ce))),je=l(()=>e(Oe)?.available?{shown:_t.shown(r.now,e(ce)).shown.filter(Ca),all:e(Oe).cards}:null),z=l(()=>_a(r.tasks,r.now,e(je),U())),Ne=l(()=>[...e(z).needs,...e(z).withFirstmate,...e(z).under,...e(z).next,...e(z).landed]),oe=l(()=>U()?v().filter(t=>e(Ne).some(a=>a.crew===t.id)):v()),se=l(()=>ba(e(oe),e(Ne))),Se="wheelhouse-rail-crew";let _e=et(null);const K=l(()=>ka(e(_e),e(se)));function Ie(t){Ee(_e,t,!0);try{localStorage.setItem(Se,t)}catch{}}function tt(t){if(!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const a=[$e,...e(se).map(u=>u.id)],i=a.indexOf(e(K)),h=t.key==="Home"?0:t.key==="End"?a.length-1:(i+(t.key==="ArrowRight"?1:a.length-1))%a.length;Ie(a[h]),document.getElementById(Pe(a[h]))?.focus()}const Pe=t=>`rail-crew-${t.replace(/[^\w-]/g,"-")}`,be=t=>t.filter(a=>xt(e(K),a.crew)),at=t=>[...e(z).needs,...e(z).withFirstmate,...e(z).under].filter(a=>xt(t,a.crew)).length,rt=t=>e(z).needs.filter(a=>xt(t,a.crew)).length,R="wheelhouse-rail-tab",k=l(()=>[{id:"under",label:"Under way",count:be(e(z).under).length,strong:!1},{id:"needs",label:"Needs you",count:be(e(z).needs).length,strong:!0},{id:"landed",label:"Landed",count:be(e(z).landed).length,strong:!1},...te().map(t=>({id:t.key,label:t.title,count:t.badge??0,strong:!1}))]);let X=et("under");const A=l(()=>e(k).some(t=>t.id===e(X))?e(X):"under"),ie=l(()=>te().find(t=>t.key===e(A))??null);ra(()=>{Ot.load();try{Ee(X,localStorage.getItem(R)||"under",!0),Ee(_e,localStorage.getItem(Se),!0)}catch{}});function ve(t){Ee(X,t,!0);try{localStorage.setItem(R,t)}catch{}}function le(t){if(t.key!=="ArrowLeft"&&t.key!=="ArrowRight")return;t.preventDefault();const a=e(k).findIndex(h=>h.id===e(A)),i=e(k)[(a+(t.key==="ArrowRight"?1:e(k).length-1))%e(k).length];ve(i.id),document.getElementById(`rail-tab-${i.id}`)?.focus()}let J=et(!1);const ae=new da;function Le(t){ae.has(t)?ae.delete(t):ae.add(t)}const Ae=l(()=>be(e(z).needs).filter(t=>t.kind==="decision").length),Be=l(()=>e(A)==="needs"?[...e(z).needs,...e(z).withFirstmate].filter(t=>t.kind!=="decision"):e(A)==="under"?[...e(z).under,...e(J)?e(z).next:[]]:e(A)==="landed"?e(z).landed:[]),nt=l(()=>wa(e(Be),e(se),e(K))),Ue=l(()=>be(e(z).next).length),We=l(()=>e(K)===$e||e(K)===Ze);function Ge(t){if(!["ArrowDown","ArrowUp","Home","End"].includes(t.key))return;const i=[...t.currentTarget.querySelectorAll("[data-deck-line]")],h=i.indexOf(document.activeElement);if(h<0)return;t.preventDefault();const u=t.key==="Home"?0:t.key==="End"?i.length-1:Math.max(0,Math.min(i.length-1,h+(t.key==="ArrowDown"?1:-1)));i[u]?.focus()}const Fe=t=>!t||t==="unassigned"?null:r.projects.find(a=>a.id===t)?.name??t,Ye=l(()=>Ba(r.projects,Ot.names));function ot(t){const a=t.kind==="task"?t.task.projectId:t.card.projectId,i=Fe(a);return i?{name:i,tag:e(Ye).get(a)?.label??i}:null}const st=l(()=>Mt.taskId);function it(t){Ka.pending={kind:"task",id:t.id,title:t.shortTitle,project:Fe(t.projectId),url:null},r.onChat?.()}const re=l(()=>e(q)?.state==="ok"?e(q).windows.find(t=>/week/i.test(t.label))??e(q).windows[0]??null:null),lt=l(()=>r.tasks.filter(t=>Q(t.projectId))),Z=l(()=>Da(e(lt))),Ke=l(()=>Na(r.projects.filter(t=>Q(t.id)&&t.id!=="unassigned"),r.tasks)),qe={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var He=Pr(),De=s(He),dt=y(De,!0),Te=n(De,2),me=n(s(Te),2);{var ut=t=>{var a=xr(),i=n(s(a),2);pe(i,17,()=>e(q).windows.slice(0,2),h=>h.id,(h,u)=>{var E=hr(),M=s(E),T=n(M),W=y(T);Me(),o(E),b(()=>{B(E,1,`whitespace-nowrap tabular-nums ${e(u).atRisk?"font-medium text-warning":e(u).id===e(re)?.id?"text-gold":""}`),f(M,`${e(u).label??""} `),B(T,1,`font-semibold ${e(u).id===e(re)?.id?"":"text-foreground"}`),f(W,`${e(u).percentLeft??""}%`)}),d(h,E)}),o(a),b(h=>m(a,"title",`Claude headroom: ${h??""}${F()?.atRisk?`. ${F().atRisk.label} may run out before it resets.`:""}`),[()=>e(q).windows.slice(0,2).map(h=>`${h.label} ${h.percentLeft}% left`).join(", ")]),d(t,a)},ze=t=>{var a=_r(),i=s(a);La(i,{class:"size-3.5","aria-hidden":"true"}),Me(),o(a),d(t,a)};x(me,t=>{e(q)?.state==="ok"&&e(q).windows.length?t(ut):e(q)?.state==="connect"&&t(ze,1)})}var ct=n(me,2);{var g=t=>{var a=br(),i=s(a);Ua(i,{class:"size-4"}),o(a),b(()=>B(a,1,`-mr-2 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground ${e(q)?.state==="ok"||e(q)?.state==="connect"?"":"ml-auto"}`)),ne("click",a,function(...h){r.onClose?.apply(this,h)}),d(t,a)};x(ct,t=>{r.onClose&&t(g)})}o(Te);var C=n(Te,2),D=s(C),Re=s(D);{let t=l(()=>e(re)?.percentLeft??null);Dt(Re,{get value(){return e(t)},tone:"gold"})}var wt=n(Re,2),yt=s(wt),Wt=y(yt,!0),Gt=n(yt,2),Ft=y(Gt,!0);o(wt),o(D);var Qe=n(D,2),Ct=s(Qe);Dt(Ct,{get value(){return e(Z).percent},tone:"teal"});var jt=n(Ct,2),Yt=n(s(jt),2),Kt=y(Yt,!0);o(jt),o(Qe),o(C);var St=n(C,2);{var Qt=t=>{var a=wr(),i=s(a);pe(i,21,()=>[{id:$e,label:"All",short:"All",mate:null},...e(se)],h=>h.id,(h,u)=>{const E=l(()=>at(e(u).id)),M=l(()=>rt(e(u).id));var T=kr(),W=s(T);{var fe=j=>{qt(j,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},ke=j=>{Ht(j,{class:"size-3 shrink-0","aria-hidden":"true"})};x(W,j=>{e(u).id!==Ze&&e(u).id!==$e?j(fe):e(u).id===Ze&&j(ke,1)})}var ge=n(W,2),w=y(ge,!0),_=n(ge,2),S=y(_),p=n(_,2),I=y(p,!0);o(T),b((j,O)=>{m(T,"id",j),m(T,"aria-checked",e(K)===e(u).id),m(T,"tabindex",e(K)===e(u).id?0:-1),B(T,1,`flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full border px-3.5 py-1.5 whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-ring ${e(K)===e(u).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),m(T,"title",`${e(u).label??""}${O??""}: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),f(w,e(u).short),f(S,`: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),B(p,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(M)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),f(I,e(M)||e(E))},[()=>Pe(e(u).id),()=>e(u).mate?.host?` ${ht(e(u).mate.host)}`:""]),ne("click",T,()=>Ie(e(u).id)),d(h,T)}),o(i),o(a),ne("keydown",i,tt),d(t,a)};x(St,t=>{e(se).length>1&&t(Qt)})}var Ve=n(St,2);pe(Ve,21,()=>e(k),t=>t.id,(t,a)=>{var i=Cr(),h=s(i,!0),u=n(h);{var E=M=>{var T=yr(),W=y(T,!0);b(()=>{B(T,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(a).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),f(W,e(a).count)}),d(M,T)};x(u,M=>{e(a).count&&M(E)})}o(i),b(()=>{m(i,"id",`rail-tab-${e(a).id??""}`),m(i,"aria-selected",e(A)===e(a).id),m(i,"tabindex",e(A)===e(a).id?0:-1),B(i,1,`-mb-px flex shrink-0 cursor-pointer items-center gap-1.5 border-b-[2.5px] px-0.5 py-2.5 text-base whitespace-nowrap transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-ring ${e(A)===e(a).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),f(h,e(a).label)}),ne("click",i,()=>ve(e(a).id)),d(t,i)}),o(Ve);var vt=n(Ve,2),It=s(vt);{var Vt=t=>{var a=jr(),i=s(a);Aa(i,{get entry(){return e(ie)},get now(){return r.now}}),o(a),d(t,a)},Xt=t=>{var a=qr(),i=he(a);{var h=w=>{var _=Sr(),S=s(_);{let I=l(()=>e(J)?"rotate-90":"");Wa(S,{get class(){return`size-3.5 transition-transform ${e(I)??""}`},"aria-hidden":"true"})}var p=n(S);o(_),b(()=>{m(_,"aria-expanded",e(J)),f(p,`Up next · ${e(Ue)??""}`)}),ne("click",_,()=>Ee(J,!e(J))),d(w,_)};x(i,w=>{e(A)==="under"&&e(Ue)&&w(h)})}var u=n(i,2),E=s(u);{var M=w=>{var _=Ir(),S=s(_);{let p=l(()=>({projectId:U()}));Pa(S,{get filter(){return e(p)},compact:!0})}o(_),d(w,_)};x(E,w=>{e(A)==="needs"&&e(Ae)&&w(M)})}var T=n(E,2);pe(T,17,()=>e(nt),w=>w.crew.id,(w,_)=>{var S=Rr(),p=s(S);{var I=L=>{ee(L,()=>e(_).crew,()=>e(_).lines.length)};x(p,L=>{e(se).length>1&&L(I)})}var j=n(p,2);{var O=L=>{var H=Tr();pe(H,21,()=>e(_).lines,G=>G.key,(G,P)=>{var $=Ar(),we=s($);{let Je=l(()=>ae.has(e(P).key)),ft=l(()=>ot(e(P))),gt=l(()=>e(P).kind==="task"&&(e(P).task.status==="queued"||e(P).task.status==="landed")),pt=l(()=>e(P).kind==="task"&&e(P).task.id===e(st));dr(we,{get line(){return e(P)},get now(){return r.now},get open(){return e(Je)},get project(){return e(ft)},get dim(){return e(gt)},get selected(){return e(pt)},onToggle:()=>Le(e(P).key),onOpen:aa=>Mt.openTask(aa.id),onChat:it})}o($),zt(1,$,()=>ja),zt(2,$,()=>Sa,()=>({word:e(P).kind==="decision"?_t.stampFor(e(P).card.id):null})),d(G,$)}),o(H),d(L,H)},N=L=>{var H=zr(),G=y(H,!0);b(()=>f(G,qe[e(A)])),d(L,H)};x(j,L=>{e(_).lines.length?L(O):e(A)==="needs"&&e(Ae)||L(N,1)})}o(S),b(()=>{m(S,"aria-label",e(_).crew.label),m(S,"data-crew-group",e(_).crew.id)}),d(w,S)},w=>{var _=sa(),S=he(_);{var p=I=>{var j=Er(),O=s(j);{var N=H=>{Ga(H,{class:"size-4 text-success","aria-hidden":"true"})};x(O,H=>{e(A)==="needs"&&H(N)})}var L=n(O,1,!0);o(j),b(()=>f(L,qe[e(A)])),d(I,j)};x(S,I=>{e(A)==="needs"&&e(Ae)||I(p)})}d(w,_)}),o(u);var W=n(u,2);{var fe=w=>{var _=Or(),S=he(_),p=s(S),I=s(p);Fa(I,{class:"size-3.5","aria-hidden":"true"}),Me(),o(p),Me(4),o(S);var j=n(S,2);pe(j,21,()=>e(V).slice(0,3),O=>O.id,(O,N)=>{var L=Mr(),H=s(L),G=s(H),P=y(G,!0),$=n(G,2),we=y($,!0),Je=n($,2),ft=y(Je,!0);o(H),o(L),b((gt,pt)=>{m(H,"href",`/decisions#${e(N).id??""}`),m(H,"title",e(N).question),f(P,e(N).taskTitle),f(we,e(N).verdict),m(Je,"title",gt),f(ft,pt)},[()=>kt(e(N).decidedAt,r.now),()=>Ut(e(N).decidedAt,r.now)]),d(O,L)}),o(j),d(w,_)};x(W,w=>{e(A)==="needs"&&e(V).length&&e(We)&&w(fe)})}var ke=n(W,2);{var ge=w=>{var _=Lr(),S=s(_),p=s(S),I=y(p,!0),j=n(p);o(S);var O=n(S,2),N=s(O);Ia(N,{get seconds(){return e(Y)},label:"Today"}),o(O);var L=n(O,2),H=y(L);o(_),b((G,P,$,we)=>{f(I,G),f(j,` of crew time today on ${e(ue)??""}
2
+ ${e(ue)===1?"task":"tasks"}`),f(H,`${P??""}% building · ${$??""}% automated review · ${we??""}%
3
+ waiting on you`)},[()=>pa(e(de)),()=>xe("build"),()=>xe("review"),()=>xe("captain")]),d(w,_)};x(ke,w=>{e(A)==="landed"&&e(de)>0&&e(We)&&w(ge)})}ne("keydown",u,Ge),d(t,a)};x(It,t=>{e(ie)?t(Vt):t(Xt,-1)})}var mt=n(It,2),Xe=s(mt),At=s(Xe),Jt=n(At);Lt(Jt,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),o(Xe);var Zt=n(Xe,2);{var $t=t=>{var a=Hr(),i=n(s(a));Lt(i,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),o(a),d(t,a)};x(Zt,t=>{e(oe).length&&t($t)})}o(mt);var ea=n(mt,2);{var ta=t=>{var a=Nr(),i=n(s(a),4);pe(i,21,()=>e(Ke),h=>h.id,(h,u)=>{var E=Dr(),M=s(E),T=s(M),W=s(T),fe=y(W,!0),ke=n(W,2),ge=y(ke,!0);o(T);var w=n(T,2),_=s(w);let S;o(w),o(M),o(E),b((p,I)=>{m(M,"href",`/projects/${p??""}`),m(M,"aria-label",`${e(u).name??""}: ${e(u).word??""}, ${e(u).landed??""}% of its work landed`),f(fe,e(u).name),f(ge,e(u).word),m(w,"data-tone",e(u).tone),S=la(_,"",S,{width:I})},[()=>encodeURIComponent(e(u).id),()=>`${Math.max(e(u).landed,3)}%`]),d(h,E)}),o(i),o(a),d(t,a)};x(ea,t=>{e(Ke).length&&t(ta)})}o(vt),o(He),b((t,a,i)=>{f(dt,t),m(D,"aria-label",e(re)?`Claude headroom: ${e(re).label}, ${e(re).percentLeft}% left`:"Claude headroom: not read yet"),f(Wt,e(re)?.label??"Headroom"),f(Ft,e(re)?"Of Claude’s allowance left until it resets":e(q)?.state==="connect"?"Connect your Claude usage to see it":"Claude’s limits are not read yet"),m(Qe,"href",a),m(Qe,"aria-label",`Checks: ${e(Z).percent??""}% of the work in play has nothing failing${e(Z).failing?`, ${e(Z).failing} failing`:""}`),f(Kt,e(Z).failing?`${e(Z).failing} of ${e(Z).inPlay} in play failing`:e(Z).inPlay?`Nothing failing across ${e(Z).inPlay} in play`:"Nothing in play"),m(vt,"aria-labelledby",`rail-tab-${e(A)??""}`),m(Xe,"href",i),f(At,`${U()?"Open the project’s page":"Open every project in Harbour"} `)},[()=>ca(e(z).h),()=>U()?`/projects/${encodeURIComponent(U())}`:"/harbour",()=>U()?`/projects/${encodeURIComponent(U())}`:"/harbour"]),ne("keydown",Ve,le),d(Ce,He),Pt()}Bt(["click","keydown"]);const Br=6e4;class Ur{#e=et(null);get value(){return e(this.#e)}set value(r){Ee(this.#e,r,!0)}seed(r){r&&(this.value=r)}connect(r=document){return Ya({load:async()=>{const ee=await fetch("/api/insights");return ee.ok?await ee.json():null},intervalMs:Br,immediate:!1,onresult:ee=>{ee&&(this.value=ee)},onerror:()=>{},doc:r})}}const En=new Ur;export{Rn as R,Ka as c,En as r};
@@ -0,0 +1 @@
1
+ import{r as k,s as y}from"./CjSftIOB.js";import{h as S,r as C}from"./BUYzAikv.js";import{e as M}from"./DTpgmq3M.js";const d=":firstmate",c="all",m=e=>e.secondMate?.id??d;function $(e,a){if(e.secondMate)return e.secondMate.id;const i=a.find(s=>s.id===e.taskId);return i?m(i):d}function I(e){if(e.length<2)return"";const a=e[0].match(/[-_.][^-_.]+$/)?.[0];return a&&e.every(i=>i.endsWith(a)&&i.length>a.length)?a:""}function v(e,a=[]){const i=[...new Set(a.map(t=>t.crew))].filter(t=>t!==d&&!e.some(l=>l.id===t)),s=I([...e.map(t=>t.id),...i]),r=t=>s?t.slice(0,-s.length):t;return[{id:d,label:"Firstmate",short:"Firstmate",mate:null},...e.map(t=>({id:t.id,label:t.id,short:r(t.id),mate:t})),...i.map(t=>({id:t,label:t,short:r(t),mate:null}))]}const W=(e,a)=>e&&a.some(i=>i.id===e)?e:c,O=(e,a)=>e===c||e===a;function Y(e){const a=e.passage.steps[e.passage.current];return a?.failed?{label:`${a.label} failed`,icon:"danger",tone:"danger"}:e.status==="failed"?{label:"Failed",icon:"danger",tone:"danger"}:e.status==="blocked"?{label:"Stuck",icon:"aground",tone:"danger"}:e.status==="lost"||e.status==="unknown"?{label:"Not responding",icon:"becalmed",tone:"warning"}:e.attention?.owner==="captain"?e.attention.kind==="review"?e.attention.approved?{label:"Your merge",icon:"flag",tone:"sea"}:{label:"Your review",icon:"flag",tone:"sea"}:{label:"Your call",icon:"flag",tone:"sea"}:e.attention?.owner==="reviewers"?{label:"With reviewers",icon:"spyglass",tone:"muted"}:e.addressingReview?{label:k(e)??"Changes requested",icon:e.busy?"sailing":"anchored",tone:e.busy?"busy":"muted"}:e.status==="with-firstmate"?{label:"Firstmate deciding",icon:"compass",tone:"warning"}:e.status==="queued"?{label:"Queued",icon:"buoy",tone:"quiet"}:e.status==="landed"?{label:"Landed",icon:"moored",tone:"success"}:y(e)?{label:`Checks: ${e.pipeline.label}`,icon:"lighthouse",tone:e.busy?"busy":"muted"}:e.busy?{label:"Working",icon:"sailing",tone:"busy"}:{label:"Idle",icon:"anchored",tone:"muted"}}const x={label:"Your call",icon:"flag",tone:"sea"};function A(e,a){const i=e?Date.parse(e):NaN;if(Number.isNaN(i))return"";const s=Math.max(0,(a-i)/1e3);if(s<60)return"now";const r=Math.round(s/60);if(r<60)return`${r}m`;const t=Math.round(r/60);return t<24?`${t}h`:`${Math.round(t/24)}d`}const o=(e,a)=>({kind:"task",key:`task:${e.id}`,task:e,text:a,crew:m(e),at:e.mergedAt??e.activity?.at??e.since});function _(e,a,i,s=null){const r=n=>!s||n===s,t=S(e,a),l=(i?.shown??[]).filter(n=>M(n)&&r(n.projectId)),f=n=>n.secondMate?.taskId?`${n.secondMate.taskId}@${n.secondMate.id}`:n.taskId,p=new Set((i?.all??[]).filter(n=>n.kind==="hold").map(f)),b=new Set(l.filter(n=>n.kind==="merge").map(f)),u=new Set(t.stepFailed.map(n=>n.id)),g=t.stepFailed.filter(n=>!t.needsYou.includes(n)),w=t.needsYou.filter(n=>!(n.attention?.kind==="decision"&&p.has(n.id))&&!(n.attention?.kind==="review"&&b.has(n.id))),h=n=>n.attention?.kind==="decision"&&n.attention.text||n.shortTitle;return{h:t,needs:[...l.map(n=>({kind:"decision",key:`decision:${n.id}`,card:n,text:n.title,crew:$(n,e),at:n.askedAt})),...g.map(n=>o(n,n.shortTitle)),...w.map(n=>o(n,h(n)))],withFirstmate:t.waitingOnFirstmate.filter(n=>!u.has(n.id)).map(n=>o(n,h(n))),under:C(t).filter(n=>!u.has(n.id)).map(n=>o(n,n.shortTitle)),next:t.queued.map(n=>o(n,n.shortTitle)),landed:t.landedRecent.filter(n=>!u.has(n.id)).map(n=>o(n,n.shortTitle))}}function q(e,a,i){return a.filter(s=>O(i,s.id)).map(s=>({crew:s,lines:e.filter(r=>r.crew===s.id)})).filter(s=>s.lines.length||i!==c)}export{c as A,x as D,d as O,W as a,q as b,v as c,_ as d,O as i,Y as l,A as s};